From b73e6aa1066f82b1224badaa1ab8ab4cecc23dd6 Mon Sep 17 00:00:00 2001 From: apilki Date: Fri, 21 Aug 2026 12:19:50 +0000 Subject: [PATCH] release 0.1.0 --- README.md | 103 +- dist/apis/APIkey.d.ts | 32 + dist/apis/APIkey.js | 72 + dist/apis/AnalyticsAPI.d.ts | 63 + dist/apis/AnalyticsAPI.js | 165 ++ dist/apis/BarcodeAPI.d.ts | 44 + dist/apis/BarcodeAPI.js | 97 + dist/apis/BetaMethod.d.ts | 280 +++ dist/apis/BetaMethod.js | 767 ++++++ dist/apis/BrandAPI.d.ts | 33 + dist/apis/BrandAPI.js | 77 + dist/apis/CancelReasonAPI.d.ts | 54 + dist/apis/CancelReasonAPI.js | 118 + dist/apis/CancellationAPI.d.ts | 57 + dist/apis/CancellationAPI.js | 127 + dist/apis/CarriageAPI.d.ts | 201 ++ dist/apis/CarriageAPI.js | 533 ++++ dist/apis/CategoryAPI.d.ts | 91 + dist/apis/CategoryAPI.js | 241 ++ dist/apis/CertificationAPI.d.ts | 241 ++ dist/apis/CertificationAPI.js | 699 ++++++ dist/apis/ChatAPI.d.ts | 63 + dist/apis/ChatAPI.js | 165 ++ dist/apis/DeliveryAPI.d.ts | 83 + dist/apis/DeliveryAPI.js | 181 ++ dist/apis/DeliveryFBP.d.ts | 163 ++ dist/apis/DeliveryFBP.js | 385 +++ dist/apis/DeliveryFBPDraft.d.ts | 58 + dist/apis/DeliveryFBPDraft.js | 136 ++ dist/apis/DeliveryFBS.d.ts | 433 ++++ dist/apis/DeliveryFBS.js | 1244 ++++++++++ dist/apis/DeliveryrFBS.d.ts | 123 + dist/apis/DeliveryrFBS.js | 341 +++ dist/apis/Digital.d.ts | 59 + dist/apis/Digital.js | 128 + dist/apis/DraftDirectFBP.d.ts | 156 ++ dist/apis/DraftDirectFBP.js | 389 +++ dist/apis/DraftDropOffFBP.d.ts | 138 ++ dist/apis/DraftDropOffFBP.js | 361 +++ dist/apis/DraftPickupFBP.d.ts | 85 + dist/apis/DraftPickupFBP.js | 202 ++ dist/apis/FBO.d.ts | 239 ++ dist/apis/FBO.js | 670 ++++++ dist/apis/FBOTransport.d.ts | 228 ++ dist/apis/FBOTransport.js | 640 +++++ dist/apis/FBOWarehouse.d.ts | 33 + dist/apis/FBOWarehouse.js | 77 + dist/apis/FBS.d.ts | 356 +++ dist/apis/FBS.js | 995 ++++++++ dist/apis/FBSWarehouseSetup.d.ts | 242 ++ dist/apis/FBSWarehouseSetup.js | 675 ++++++ dist/apis/FBSrFBSMarks.d.ts | 123 + dist/apis/FBSrFBSMarks.js | 339 +++ dist/apis/FboPostingAPI.d.ts | 55 + dist/apis/FboPostingAPI.js | 127 + dist/apis/FboSupplyRequest.d.ts | 360 +++ dist/apis/FboSupplyRequest.js | 977 ++++++++ dist/apis/FinanceAPI.d.ts | 158 ++ dist/apis/FinanceAPI.js | 410 ++++ dist/apis/Notification.d.ts | 121 + dist/apis/Notification.js | 327 +++ dist/apis/OrderAPI.d.ts | 68 + dist/apis/OrderAPI.js | 159 ++ dist/apis/OrderDirectFBP.d.ts | 70 + dist/apis/OrderDirectFBP.js | 161 ++ dist/apis/OrderDropOffFBP.d.ts | 63 + dist/apis/OrderDropOffFBP.js | 165 ++ dist/apis/OrderPickupFBP.d.ts | 44 + dist/apis/OrderPickupFBP.js | 97 + dist/apis/Pass.d.ts | 97 + dist/apis/Pass.js | 241 ++ dist/apis/PolygonAPI.d.ts | 113 + dist/apis/PolygonAPI.js | 312 +++ dist/apis/Premium.d.ts | 168 ++ dist/apis/Premium.js | 473 ++++ dist/apis/PricesStocksAPI.d.ts | 175 ++ dist/apis/PricesStocksAPI.js | 492 ++++ dist/apis/PricingStrategyAPI.d.ts | 172 ++ dist/apis/PricingStrategyAPI.js | 460 ++++ dist/apis/ProductAPI.d.ts | 309 +++ dist/apis/ProductAPI.js | 877 +++++++ dist/apis/Promos.d.ts | 119 + dist/apis/Promos.js | 278 +++ dist/apis/PromosBeta.d.ts | 78 + dist/apis/PromosBeta.js | 209 ++ dist/apis/Quants.d.ts | 48 + dist/apis/Quants.js | 121 + dist/apis/QuestionsAnswers.d.ts | 137 ++ dist/apis/QuestionsAnswers.js | 369 +++ dist/apis/RFBSReturnsAPI.d.ts | 57 + dist/apis/RFBSReturnsAPI.js | 148 ++ dist/apis/RFBSWarehouseSetup.d.ts | 123 + dist/apis/RFBSWarehouseSetup.js | 335 +++ dist/apis/Receipt.d.ts | 68 + dist/apis/Receipt.js | 201 ++ dist/apis/ReportAPI.d.ts | 183 ++ dist/apis/ReportAPI.js | 508 ++++ dist/apis/ReturnAPI.d.ts | 138 ++ dist/apis/ReturnAPI.js | 367 +++ dist/apis/ReturnsAPI.d.ts | 68 + dist/apis/ReturnsAPI.js | 174 ++ dist/apis/ReviewAPI.d.ts | 193 ++ dist/apis/ReviewAPI.js | 480 ++++ dist/apis/SellerActions.d.ts | 288 +++ dist/apis/SellerActions.js | 777 ++++++ dist/apis/SellerInfo.d.ts | 42 + dist/apis/SellerInfo.js | 107 + dist/apis/SellerRating.d.ts | 69 + dist/apis/SellerRating.js | 176 ++ dist/apis/SupplierAPI.d.ts | 66 + dist/apis/SupplierAPI.js | 157 ++ dist/apis/SupplyOrderAPI.d.ts | 78 + dist/apis/SupplyOrderAPI.js | 197 ++ dist/apis/WarehouseAPI.d.ts | 155 ++ dist/apis/WarehouseAPI.js | 438 ++++ dist/apis/index.d.ts | 57 + dist/apis/index.js | 75 + dist/esm/apis/APIkey.d.ts | 32 + dist/esm/apis/APIkey.js | 68 + dist/esm/apis/AnalyticsAPI.d.ts | 63 + dist/esm/apis/AnalyticsAPI.js | 161 ++ dist/esm/apis/BarcodeAPI.d.ts | 44 + dist/esm/apis/BarcodeAPI.js | 93 + dist/esm/apis/BetaMethod.d.ts | 280 +++ dist/esm/apis/BetaMethod.js | 763 ++++++ dist/esm/apis/BrandAPI.d.ts | 33 + dist/esm/apis/BrandAPI.js | 73 + dist/esm/apis/CancelReasonAPI.d.ts | 54 + dist/esm/apis/CancelReasonAPI.js | 114 + dist/esm/apis/CancellationAPI.d.ts | 57 + dist/esm/apis/CancellationAPI.js | 123 + dist/esm/apis/CarriageAPI.d.ts | 201 ++ dist/esm/apis/CarriageAPI.js | 529 ++++ dist/esm/apis/CategoryAPI.d.ts | 91 + dist/esm/apis/CategoryAPI.js | 237 ++ dist/esm/apis/CertificationAPI.d.ts | 241 ++ dist/esm/apis/CertificationAPI.js | 695 ++++++ dist/esm/apis/ChatAPI.d.ts | 63 + dist/esm/apis/ChatAPI.js | 161 ++ dist/esm/apis/DeliveryAPI.d.ts | 83 + dist/esm/apis/DeliveryAPI.js | 177 ++ dist/esm/apis/DeliveryFBP.d.ts | 163 ++ dist/esm/apis/DeliveryFBP.js | 381 +++ dist/esm/apis/DeliveryFBPDraft.d.ts | 58 + dist/esm/apis/DeliveryFBPDraft.js | 132 + dist/esm/apis/DeliveryFBS.d.ts | 433 ++++ dist/esm/apis/DeliveryFBS.js | 1240 ++++++++++ dist/esm/apis/DeliveryrFBS.d.ts | 123 + dist/esm/apis/DeliveryrFBS.js | 337 +++ dist/esm/apis/Digital.d.ts | 59 + dist/esm/apis/Digital.js | 124 + dist/esm/apis/DraftDirectFBP.d.ts | 156 ++ dist/esm/apis/DraftDirectFBP.js | 385 +++ dist/esm/apis/DraftDropOffFBP.d.ts | 138 ++ dist/esm/apis/DraftDropOffFBP.js | 357 +++ dist/esm/apis/DraftPickupFBP.d.ts | 85 + dist/esm/apis/DraftPickupFBP.js | 198 ++ dist/esm/apis/FBO.d.ts | 239 ++ dist/esm/apis/FBO.js | 666 +++++ dist/esm/apis/FBOTransport.d.ts | 228 ++ dist/esm/apis/FBOTransport.js | 636 +++++ dist/esm/apis/FBOWarehouse.d.ts | 33 + dist/esm/apis/FBOWarehouse.js | 73 + dist/esm/apis/FBS.d.ts | 356 +++ dist/esm/apis/FBS.js | 991 ++++++++ dist/esm/apis/FBSWarehouseSetup.d.ts | 242 ++ dist/esm/apis/FBSWarehouseSetup.js | 671 ++++++ dist/esm/apis/FBSrFBSMarks.d.ts | 123 + dist/esm/apis/FBSrFBSMarks.js | 335 +++ dist/esm/apis/FboPostingAPI.d.ts | 55 + dist/esm/apis/FboPostingAPI.js | 123 + dist/esm/apis/FboSupplyRequest.d.ts | 360 +++ dist/esm/apis/FboSupplyRequest.js | 973 ++++++++ dist/esm/apis/FinanceAPI.d.ts | 158 ++ dist/esm/apis/FinanceAPI.js | 406 ++++ dist/esm/apis/Notification.d.ts | 121 + dist/esm/apis/Notification.js | 323 +++ dist/esm/apis/OrderAPI.d.ts | 68 + dist/esm/apis/OrderAPI.js | 155 ++ dist/esm/apis/OrderDirectFBP.d.ts | 70 + dist/esm/apis/OrderDirectFBP.js | 157 ++ dist/esm/apis/OrderDropOffFBP.d.ts | 63 + dist/esm/apis/OrderDropOffFBP.js | 161 ++ dist/esm/apis/OrderPickupFBP.d.ts | 44 + dist/esm/apis/OrderPickupFBP.js | 93 + dist/esm/apis/Pass.d.ts | 97 + dist/esm/apis/Pass.js | 237 ++ dist/esm/apis/PolygonAPI.d.ts | 113 + dist/esm/apis/PolygonAPI.js | 308 +++ dist/esm/apis/Premium.d.ts | 168 ++ dist/esm/apis/Premium.js | 469 ++++ dist/esm/apis/PricesStocksAPI.d.ts | 175 ++ dist/esm/apis/PricesStocksAPI.js | 488 ++++ dist/esm/apis/PricingStrategyAPI.d.ts | 172 ++ dist/esm/apis/PricingStrategyAPI.js | 456 ++++ dist/esm/apis/ProductAPI.d.ts | 309 +++ dist/esm/apis/ProductAPI.js | 873 +++++++ dist/esm/apis/Promos.d.ts | 119 + dist/esm/apis/Promos.js | 274 +++ dist/esm/apis/PromosBeta.d.ts | 78 + dist/esm/apis/PromosBeta.js | 205 ++ dist/esm/apis/Quants.d.ts | 48 + dist/esm/apis/Quants.js | 117 + dist/esm/apis/QuestionsAnswers.d.ts | 137 ++ dist/esm/apis/QuestionsAnswers.js | 365 +++ dist/esm/apis/RFBSReturnsAPI.d.ts | 57 + dist/esm/apis/RFBSReturnsAPI.js | 144 ++ dist/esm/apis/RFBSWarehouseSetup.d.ts | 123 + dist/esm/apis/RFBSWarehouseSetup.js | 331 +++ dist/esm/apis/Receipt.d.ts | 68 + dist/esm/apis/Receipt.js | 197 ++ dist/esm/apis/ReportAPI.d.ts | 183 ++ dist/esm/apis/ReportAPI.js | 504 ++++ dist/esm/apis/ReturnAPI.d.ts | 138 ++ dist/esm/apis/ReturnAPI.js | 363 +++ dist/esm/apis/ReturnsAPI.d.ts | 68 + dist/esm/apis/ReturnsAPI.js | 170 ++ dist/esm/apis/ReviewAPI.d.ts | 193 ++ dist/esm/apis/ReviewAPI.js | 476 ++++ dist/esm/apis/SellerActions.d.ts | 288 +++ dist/esm/apis/SellerActions.js | 773 ++++++ dist/esm/apis/SellerInfo.d.ts | 42 + dist/esm/apis/SellerInfo.js | 103 + dist/esm/apis/SellerRating.d.ts | 69 + dist/esm/apis/SellerRating.js | 172 ++ dist/esm/apis/SupplierAPI.d.ts | 66 + dist/esm/apis/SupplierAPI.js | 153 ++ dist/esm/apis/SupplyOrderAPI.d.ts | 78 + dist/esm/apis/SupplyOrderAPI.js | 193 ++ dist/esm/apis/WarehouseAPI.d.ts | 155 ++ dist/esm/apis/WarehouseAPI.js | 434 ++++ dist/esm/apis/index.d.ts | 57 + dist/esm/apis/index.js | 59 + dist/esm/index.d.ts | 3 + dist/esm/index.js | 5 + dist/esm/models/ActionParameter.d.ts | 141 ++ dist/esm/models/ActionParameter.js | 79 + .../ActionParameterDiscountTypeEnum.d.ts | 35 + .../models/ActionParameterDiscountTypeEnum.js | 51 + .../ActionParameterVoucherParameter.d.ts | 45 + .../models/ActionParameterVoucherParameter.js | 43 + ...tionParameterVoucherParameterTypeEnum.d.ts | 31 + ...ActionParameterVoucherParameterTypeEnum.js | 47 + ...tionsAutoAddProductsCandidatesRequest.d.ts | 51 + ...ActionsAutoAddProductsCandidatesRequest.js | 50 + ...ionsAutoAddProductsCandidatesResponse.d.ts | 38 + ...ctionsAutoAddProductsCandidatesResponse.js | 41 + ...AddProductsCandidatesResponseProducts.d.ts | 103 + ...toAddProductsCandidatesResponseProducts.js | 62 + ...V1ActionsAutoAddProductsDeleteRequest.d.ts | 45 + ...nsV1ActionsAutoAddProductsDeleteRequest.js | 42 + ...1ActionsAutoAddProductsDeleteResponse.d.ts | 31 + ...sV1ActionsAutoAddProductsDeleteResponse.js | 38 + ...nsV1ActionsAutoAddProductsListRequest.d.ts | 51 + ...ionsV1ActionsAutoAddProductsListRequest.js | 50 + ...sV1ActionsAutoAddProductsListResponse.d.ts | 38 + ...onsV1ActionsAutoAddProductsListResponse.js | 41 + ...nsAutoAddProductsListResponseProducts.d.ts | 107 + ...ionsAutoAddProductsListResponseProducts.js | 62 + ...V1ActionsAutoAddProductsUpdateRequest.d.ts | 45 + ...nsV1ActionsAutoAddProductsUpdateRequest.js | 43 + ...sAutoAddProductsUpdateRequestToUpdate.d.ts | 49 + ...onsAutoAddProductsUpdateRequestToUpdate.js | 44 + ...1ActionsAutoAddProductsUpdateResponse.d.ts | 59 + ...sV1ActionsAutoAddProductsUpdateResponse.js | 50 + ...ddProductsUpdateResponseBelowMinPrice.d.ts | 37 + ...oAddProductsUpdateResponseBelowMinPrice.js | 40 + ...oductsUpdateResponseExtremelyLowPrice.d.ts | 37 + ...ProductsUpdateResponseExtremelyLowPrice.js | 40 + ...oAddProductsUpdateResponseFailedPrice.d.ts | 40 + ...utoAddProductsUpdateResponseFailedPrice.js | 40 + ...AutoAddProductsUpdateResponseRejected.d.ts | 44 + ...nsAutoAddProductsUpdateResponseRejected.js | 43 + ...roductsUpdateResponseRejectedCodeEnum.d.ts | 37 + ...dProductsUpdateResponseRejectedCodeEnum.js | 53 + .../models/AddStrategyItemsResponseError.d.ts | 43 + .../models/AddStrategyItemsResponseError.js | 42 + .../AnalyticsAnalyticsGetDataRequest.d.ts | 125 + .../AnalyticsAnalyticsGetDataRequest.js | 65 + .../AnalyticsAnalyticsGetDataResponse.d.ts | 38 + .../AnalyticsAnalyticsGetDataResponse.js | 41 + dist/esm/models/AnalyticsDataRow.d.ts | 38 + dist/esm/models/AnalyticsDataRow.js | 41 + .../esm/models/AnalyticsDataRowDimension.d.ts | 37 + dist/esm/models/AnalyticsDataRowDimension.js | 40 + dist/esm/models/AnalyticsFilter.d.ts | 51 + dist/esm/models/AnalyticsFilter.js | 42 + .../AnalyticsGetDataResponseResult.d.ts | 38 + .../models/AnalyticsGetDataResponseResult.js | 41 + ...StockOnWarehousesRequestWarehouseType.d.ts | 29 + ...etStockOnWarehousesRequestWarehouseType.js | 45 + ...icsProductQueriesDetailsResponseQuery.d.ts | 85 + ...yticsProductQueriesDetailsResponseQuery.js | 56 + .../AnalyticsProductQueriesRequestSortBy.d.ts | 33 + .../AnalyticsProductQueriesRequestSortBy.js | 49 + ...AnalyticsProductQueriesRequestSortDir.d.ts | 27 + .../AnalyticsProductQueriesRequestSortDir.js | 43 + ...ProductQueriesResponseAnalyticsPeriod.d.ts | 37 + ...csProductQueriesResponseAnalyticsPeriod.js | 40 + dist/esm/models/AnalyticsSorting.d.ts | 40 + dist/esm/models/AnalyticsSorting.js | 40 + .../AnalyticsStockOnWarehouseRequest.d.ts | 44 + .../AnalyticsStockOnWarehouseRequest.js | 45 + .../AnalyticsStockOnWarehouseResponse.d.ts | 32 + .../AnalyticsStockOnWarehouseResponse.js | 39 + ...alyticsStockOnWarehouseResponseResult.d.ts | 32 + ...AnalyticsStockOnWarehouseResponseResult.js | 39 + .../AnalyticsStockOnWarehouseResultRows.d.ts | 67 + .../AnalyticsStockOnWarehouseResultRows.js | 50 + ...eclineDiscountTasksResponseFailDetail.d.ts | 37 + ...eDeclineDiscountTasksResponseFailDetail.js | 40 + .../models/ArrivalPassListRequestFilter.d.ts | 63 + .../models/ArrivalPassListRequestFilter.js | 46 + .../ArrivalpassArrivalPassCreateRequest.d.ts | 32 + .../ArrivalpassArrivalPassCreateRequest.js | 41 + ...ssArrivalPassCreateRequestArrivalPass.d.ts | 69 + ...passArrivalPassCreateRequestArrivalPass.js | 64 + .../ArrivalpassArrivalPassCreateResponse.d.ts | 31 + .../ArrivalpassArrivalPassCreateResponse.js | 38 + .../ArrivalpassArrivalPassDeleteRequest.d.ts | 31 + .../ArrivalpassArrivalPassDeleteRequest.js | 40 + .../ArrivalpassArrivalPassListRequest.d.ts | 45 + .../ArrivalpassArrivalPassListRequest.js | 45 + .../ArrivalpassArrivalPassListResponse.d.ts | 40 + .../ArrivalpassArrivalPassListResponse.js | 41 + ...assArrivalPassListResponseArrivalPass.d.ts | 86 + ...lpassArrivalPassListResponseArrivalPass.js | 56 + .../ArrivalpassArrivalPassUpdateRequest.d.ts | 32 + .../ArrivalpassArrivalPassUpdateRequest.js | 41 + ...ssArrivalPassUpdateRequestArrivalPass.d.ts | 65 + ...passArrivalPassUpdateRequestArrivalPass.js | 60 + ...ssemblyFbsProductListResponseProducts.d.ts | 62 + .../AssemblyFbsProductListResponseProducts.js | 49 + dist/esm/models/AvailabilityReason.d.ts | 38 + dist/esm/models/AvailabilityReason.js | 41 + .../AvailabilityStatusInvalidReasonEnum.d.ts | 43 + .../AvailabilityStatusInvalidReasonEnum.js | 59 + .../models/AvailabilityStatusStateEnum.d.ts | 31 + .../esm/models/AvailabilityStatusStateEnum.js | 47 + ...dBrandCompanyCertificationListRequest.d.ts | 37 + ...andBrandCompanyCertificationListRequest.js | 44 + ...BrandCompanyCertificationListResponse.d.ts | 32 + ...ndBrandCompanyCertificationListResponse.js | 39 + ...icationListResponseBrandCertification.d.ts | 40 + ...ificationListResponseBrandCertification.js | 40 + ...nListResponseBrandCertificationResult.d.ts | 38 + ...ionListResponseBrandCertificationResult.js | 41 + .../CancelSupplyResultsCancelSupplyError.d.ts | 28 + .../CancelSupplyResultsCancelSupplyError.js | 44 + ...owabilityCanNotCancelSupplyReasonEnum.d.ts | 29 + ...llowabilityCanNotCancelSupplyReasonEnum.js | 45 + dist/esm/models/CancellationErrorCode.d.ts | 29 + dist/esm/models/CancellationErrorCode.js | 45 + .../CancellationStateCancellationError.d.ts | 38 + .../CancellationStateCancellationError.js | 41 + dist/esm/models/CargoInfoContentTypeEnum.d.ts | 31 + dist/esm/models/CargoInfoContentTypeEnum.js | 47 + .../CargoInfoPlacementZoneTypeEnum.d.ts | 31 + .../models/CargoInfoPlacementZoneTypeEnum.js | 47 + dist/esm/models/CargoInfoTrackingInfo.d.ts | 45 + dist/esm/models/CargoInfoTrackingInfo.js | 44 + .../CargoInfoTrackingInfoStatusEnum.d.ts | 47 + .../models/CargoInfoTrackingInfoStatusEnum.js | 63 + .../models/CargoInfoTrackingInfoTypeEnum.d.ts | 29 + .../models/CargoInfoTrackingInfoTypeEnum.js | 45 + dist/esm/models/CargoValue.d.ts | 31 + dist/esm/models/CargoValue.js | 38 + .../CargoesCreateErrorsErrorReason.d.ts | 32 + .../models/CargoesCreateErrorsErrorReason.js | 48 + .../CargoesCreateErrorsItemValidation.d.ts | 50 + .../CargoesCreateErrorsItemValidation.js | 45 + .../models/CargoesCreateErrorsReasonEnum.d.ts | 33 + .../models/CargoesCreateErrorsReasonEnum.js | 49 + .../CargoesCreateInfoV2ResponseResult.d.ts | 32 + .../CargoesCreateInfoV2ResponseResult.js | 39 + ...CargoesCreateInfoV2ResponseStatusEnum.d.ts | 30 + .../CargoesCreateInfoV2ResponseStatusEnum.js | 46 + .../CargoesCreateV2ErrorsItemValidation.d.ts | 50 + .../CargoesCreateV2ErrorsItemValidation.js | 45 + ...CargoesDeleteStatusResponseStatusEnum.d.ts | 31 + .../CargoesDeleteStatusResponseStatusEnum.js | 47 + dist/esm/models/CargoesGetResponseSupply.d.ts | 44 + dist/esm/models/CargoesGetResponseSupply.js | 43 + .../CargoesPresentRuleCargoCountPerType.d.ts | 38 + .../CargoesPresentRuleCargoCountPerType.js | 41 + ...rgoesPresentRuleCargoCountPerTypeEnum.d.ts | 27 + ...CargoesPresentRuleCargoCountPerTypeEnum.js | 43 + .../CargoesRulesGetResponseSupplyCheck.d.ts | 73 + .../CargoesRulesGetResponseSupplyCheck.js | 56 + ...oesLabelTransportByOrderCreateRequest.d.ts | 31 + ...rgoesLabelTransportByOrderCreateRequest.js | 40 + ...esLabelTransportByOrderCreateResponse.d.ts | 45 + ...goesLabelTransportByOrderCreateResponse.js | 41 + ...ByOrderCreateResponseErrorReasonsEnum.d.ts | 28 + ...rtByOrderCreateResponseErrorReasonsEnum.js | 44 + ...oesLabelTransportByOrderStatusRequest.d.ts | 31 + ...rgoesLabelTransportByOrderStatusRequest.js | 40 + ...esLabelTransportByOrderStatusResponse.d.ts | 53 + ...goesLabelTransportByOrderStatusResponse.js | 45 + ...ByOrderStatusResponseErrorReasonsEnum.d.ts | 28 + ...rtByOrderStatusResponseErrorReasonsEnum.js | 44 + ...lTransportByOrderStatusResponseResult.d.ts | 37 + ...belTransportByOrderStatusResponseResult.js | 40 + ...nsportByOrderStatusResponseStatusEnum.d.ts | 29 + ...ransportByOrderStatusResponseStatusEnum.js | 45 + ...sV1CargoesLabelTransportCreateRequest.d.ts | 37 + ...oesV1CargoesLabelTransportCreateRequest.js | 42 + ...V1CargoesLabelTransportCreateResponse.d.ts | 46 + ...esV1CargoesLabelTransportCreateResponse.js | 41 + ...ansportCreateResponseErrorReasonsEnum.d.ts | 29 + ...TransportCreateResponseErrorReasonsEnum.js | 45 + ...sV1CargoesLabelTransportStatusRequest.d.ts | 31 + ...oesV1CargoesLabelTransportStatusRequest.js | 38 + ...V1CargoesLabelTransportStatusResponse.d.ts | 54 + ...esV1CargoesLabelTransportStatusResponse.js | 45 + ...ansportStatusResponseErrorReasonsEnum.d.ts | 29 + ...TransportStatusResponseErrorReasonsEnum.js | 45 + ...oesLabelTransportStatusResponseResult.d.ts | 31 + ...rgoesLabelTransportStatusResponseResult.js | 38 + ...abelTransportStatusResponseStatusEnum.d.ts | 29 + ...sLabelTransportStatusResponseStatusEnum.js | 45 + .../CargoesV1CargoesSuppliesGetRequest.d.ts | 31 + .../CargoesV1CargoesSuppliesGetRequest.js | 40 + .../CargoesV1CargoesSuppliesGetResponse.d.ts | 38 + .../CargoesV1CargoesSuppliesGetResponse.js | 41 + ...oesSuppliesGetResponseSuppliesCargoes.d.ts | 51 + ...rgoesSuppliesGetResponseSuppliesCargoes.js | 46 + ...CargoesCargoesWithoutTransportCargoes.d.ts | 43 + ...esCargoesCargoesWithoutTransportCargoes.js | 42 + ...sponseSuppliesCargoesTransportCargoes.d.ts | 51 + ...ResponseSuppliesCargoesTransportCargoes.js | 46 + ...uppliesCargoesTransportCargoesCargoes.d.ts | 43 + ...eSuppliesCargoesTransportCargoesCargoes.js | 42 + ...ppliesCargoesTransportCargoesTypeEnum.d.ts | 24 + ...SuppliesCargoesTransportCargoesTypeEnum.js | 40 + ...goesV1CargoesTransportActivateRequest.d.ts | 38 + ...argoesV1CargoesTransportActivateRequest.js | 44 + ...oesV1CargoesTransportActivateResponse.d.ts | 31 + ...rgoesV1CargoesTransportActivateResponse.js | 38 + ...CargoesTransportActivateStatusRequest.d.ts | 31 + ...V1CargoesTransportActivateStatusRequest.js | 40 + ...argoesTransportActivateStatusResponse.d.ts | 43 + ...1CargoesTransportActivateStatusResponse.js | 42 + ...ctivateStatusResponseErrorReasonsEnum.d.ts | 26 + ...tActivateStatusResponseErrorReasonsEnum.js | 42 + ...sportActivateStatusResponseStatusEnum.d.ts | 29 + ...ansportActivateStatusResponseStatusEnum.js | 45 + .../CargoesV1CargoesTransportBindRequest.d.ts | 44 + .../CargoesV1CargoesTransportBindRequest.js | 45 + ...ransportBindRequestTransportCargoBind.d.ts | 37 + ...sTransportBindRequestTransportCargoBind.js | 44 + ...CargoesV1CargoesTransportBindResponse.d.ts | 50 + .../CargoesV1CargoesTransportBindResponse.js | 41 + ...TransportBindResponseErrorReasonsEnum.d.ts | 33 + ...esTransportBindResponseErrorReasonsEnum.js | 49 + ...esV1CargoesTransportBindStatusRequest.d.ts | 31 + ...goesV1CargoesTransportBindStatusRequest.js | 40 + ...sV1CargoesTransportBindStatusResponse.d.ts | 51 + ...oesV1CargoesTransportBindStatusResponse.js | 42 + ...ortBindStatusResponseErrorReasonsEnum.d.ts | 33 + ...sportBindStatusResponseErrorReasonsEnum.js | 49 + ...TransportBindStatusResponseStatusEnum.d.ts | 29 + ...esTransportBindStatusResponseStatusEnum.js | 45 + ...argoesV1CargoesTransportCreateRequest.d.ts | 38 + .../CargoesV1CargoesTransportCreateRequest.js | 45 + ...ransportCreateRequestTransportCargoes.d.ts | 38 + ...sTransportCreateRequestTransportCargoes.js | 45 + ...CreateRequestTransportCargoesTypeEnum.d.ts | 24 + ...rtCreateRequestTransportCargoesTypeEnum.js | 40 + ...rgoesV1CargoesTransportCreateResponse.d.ts | 50 + ...CargoesV1CargoesTransportCreateResponse.js | 41 + ...ansportCreateResponseErrorReasonsEnum.d.ts | 33 + ...TransportCreateResponseErrorReasonsEnum.js | 49 + ...V1CargoesTransportCreateStatusRequest.d.ts | 31 + ...esV1CargoesTransportCreateStatusRequest.js | 38 + ...1CargoesTransportCreateStatusResponse.d.ts | 58 + ...sV1CargoesTransportCreateStatusResponse.js | 45 + ...tCreateStatusResponseErrorReasonsEnum.d.ts | 33 + ...ortCreateStatusResponseErrorReasonsEnum.js | 49 + ...esTransportCreateStatusResponseResult.d.ts | 32 + ...goesTransportCreateStatusResponseResult.js | 39 + ...eStatusResponseResultTransportCargoes.d.ts | 38 + ...ateStatusResponseResultTransportCargoes.js | 41 + ...esponseResultTransportCargoesTypeEnum.d.ts | 24 + ...sResponseResultTransportCargoesTypeEnum.js | 40 + ...ansportCreateStatusResponseStatusEnum.d.ts | 29 + ...TransportCreateStatusResponseStatusEnum.js | 45 + .../models/CargoesV2CargoesDeleteRequest.d.ts | 50 + .../models/CargoesV2CargoesDeleteRequest.js | 49 + ...RequestTransportCargoDeletionTypeEnum.d.ts | 27 + ...teRequestTransportCargoDeletionTypeEnum.js | 43 + .../CargoesV2CargoesDeleteResponse.d.ts | 38 + .../models/CargoesV2CargoesDeleteResponse.js | 41 + .../CargoesV2CargoesDeleteResponseErrors.d.ts | 58 + .../CargoesV2CargoesDeleteResponseErrors.js | 45 + ...DeleteResponseErrorsCargoErrorReasons.d.ts | 41 + ...esDeleteResponseErrorsCargoErrorReasons.js | 41 + ...rorsCargoErrorReasonsErrorReasonsEnum.d.ts | 24 + ...ErrorsCargoErrorReasonsErrorReasonsEnum.js | 40 + ...eResponseErrorsSupplyErrorReasonsEnum.d.ts | 33 + ...eteResponseErrorsSupplyErrorReasonsEnum.js | 49 + ...ponseErrorsTransportCargoErrorReasons.d.ts | 41 + ...esponseErrorsTransportCargoErrorReasons.js | 41 + ...portCargoErrorReasonsErrorReasonsEnum.d.ts | 24 + ...nsportCargoErrorReasonsErrorReasonsEnum.js | 40 + .../CargoesV2CargoesDeleteStatusRequest.d.ts | 31 + .../CargoesV2CargoesDeleteStatusRequest.js | 40 + .../CargoesV2CargoesDeleteStatusResponse.d.ts | 39 + .../CargoesV2CargoesDeleteStatusResponse.js | 42 + ...esV2CargoesDeleteStatusResponseErrors.d.ts | 58 + ...goesV2CargoesDeleteStatusResponseErrors.js | 45 + ...StatusResponseErrorsCargoErrorReasons.d.ts | 41 + ...teStatusResponseErrorsCargoErrorReasons.js | 41 + ...rorsCargoErrorReasonsErrorReasonsEnum.d.ts | 24 + ...ErrorsCargoErrorReasonsErrorReasonsEnum.js | 40 + ...sResponseErrorsSupplyErrorReasonsEnum.d.ts | 33 + ...tusResponseErrorsSupplyErrorReasonsEnum.js | 49 + ...ponseErrorsTransportCargoErrorReasons.d.ts | 41 + ...esponseErrorsTransportCargoErrorReasons.js | 41 + ...portCargoErrorReasonsErrorReasonsEnum.d.ts | 24 + ...nsportCargoErrorReasonsErrorReasonsEnum.js | 40 + ...CargoesDeleteStatusResponseStatusEnum.d.ts | 31 + ...V2CargoesDeleteStatusResponseStatusEnum.js | 47 + .../models/CargoesV2CargoesGetRequest.d.ts | 32 + dist/esm/models/CargoesV2CargoesGetRequest.js | 41 + .../CargoesV2CargoesGetRequestSupplies.d.ts | 37 + .../CargoesV2CargoesGetRequestSupplies.js | 44 + .../models/CargoesV2CargoesGetResponse.d.ts | 32 + .../esm/models/CargoesV2CargoesGetResponse.js | 39 + .../CargoesV2CargoesGetResponseSupplies.d.ts | 64 + .../CargoesV2CargoesGetResponseSupplies.js | 51 + ...esV2CargoesGetResponseSuppliesCargoes.d.ts | 71 + ...goesV2CargoesGetResponseSuppliesCargoes.js | 54 + ...esponseSuppliesCargoesContentTypeEnum.d.ts | 31 + ...tResponseSuppliesCargoesContentTypeEnum.js | 47 + ...eSuppliesCargoesPlacementZoneTypeEnum.d.ts | 31 + ...nseSuppliesCargoesPlacementZoneTypeEnum.js | 47 + ...etResponseSuppliesCargoesTrackingInfo.d.ts | 46 + ...sGetResponseSuppliesCargoesTrackingInfo.js | 45 + ...eSuppliesCargoesTrackingInfoArrivalAt.d.ts | 38 + ...nseSuppliesCargoesTrackingInfoArrivalAt.js | 41 + ...goesTrackingInfoArrivalAtTimezoneInfo.d.ts | 37 + ...argoesTrackingInfoArrivalAtTimezoneInfo.js | 40 + ...SuppliesCargoesTrackingInfoStatusEnum.d.ts | 49 + ...seSuppliesCargoesTrackingInfoStatusEnum.js | 65 + ...seSuppliesCargoesTrackingInfoTypeEnum.d.ts | 29 + ...onseSuppliesCargoesTrackingInfoTypeEnum.js | 45 + ...oesGetResponseSuppliesCargoesTypeEnum.d.ts | 29 + ...rgoesGetResponseSuppliesCargoesTypeEnum.js | 45 + ...oesV2CargoesGetResponseSuppliesLimits.d.ts | 49 + ...rgoesV2CargoesGetResponseSuppliesLimits.js | 44 + ...esGetResponseSuppliesTransportCargoes.d.ts | 57 + ...goesGetResponseSuppliesTransportCargoes.js | 48 + ...eSuppliesTransportCargoesTrackingInfo.d.ts | 46 + ...nseSuppliesTransportCargoesTrackingInfo.js | 45 + ...TransportCargoesTrackingInfoArrivalAt.d.ts | 38 + ...esTransportCargoesTrackingInfoArrivalAt.js | 41 + ...tCargoesTrackingInfoArrivalAtTimezone.d.ts | 37 + ...ortCargoesTrackingInfoArrivalAtTimezone.js | 40 + ...ransportCargoesTrackingInfoStatusEnum.d.ts | 43 + ...sTransportCargoesTrackingInfoStatusEnum.js | 59 + ...sTransportCargoesTrackingInfoTypeEnum.d.ts | 29 + ...iesTransportCargoesTrackingInfoTypeEnum.js | 45 + ...ponseSuppliesTransportCargoesTypeEnum.d.ts | 27 + ...esponseSuppliesTransportCargoesTypeEnum.js | 43 + .../models/CarriageCarriageGetRequest.d.ts | 31 + dist/esm/models/CarriageCarriageGetRequest.js | 40 + .../models/CarriageCarriageGetResponse.d.ts | 186 ++ .../esm/models/CarriageCarriageGetResponse.js | 85 + ...CarriageGetResponseCancelAvailability.d.ts | 38 + ...geCarriageGetResponseCancelAvailability.js | 40 + .../CarriageDeliveryListV2RequestFilter.d.ts | 37 + .../CarriageDeliveryListV2RequestFilter.js | 40 + ...eDeliveryListV2ResponseDeliveryMethod.d.ts | 224 ++ ...ageDeliveryListV2ResponseDeliveryMethod.js | 102 + dist/esm/models/CarriagePickupFee.d.ts | 37 + dist/esm/models/CarriagePickupFee.js | 40 + ...iagev1CarriageContainerApproveRequest.d.ts | 31 + ...rriagev1CarriageContainerApproveRequest.js | 40 + ...agev1CarriageContainerApproveResponse.d.ts | 38 + ...riagev1CarriageContainerApproveResponse.js | 41 + ...ntainerApproveResponseErrorContainers.d.ts | 37 + ...ContainerApproveResponseErrorContainers.js | 40 + ...riagev1CarriageContainerCancelRequest.d.ts | 31 + ...arriagev1CarriageContainerCancelRequest.js | 40 + ...iagev1CarriageContainerCancelResponse.d.ts | 38 + ...rriagev1CarriageContainerCancelResponse.js | 41 + ...ontainerCancelResponseErrorContainers.d.ts | 37 + ...eContainerCancelResponseErrorContainers.js | 40 + ...riagev1CarriageContainerCreateRequest.d.ts | 55 + ...arriagev1CarriageContainerCreateRequest.js | 52 + ...iagev1CarriageContainerCreateResponse.d.ts | 31 + ...rriagev1CarriageContainerCreateResponse.js | 38 + ...v1CarriageContainerDocumentGetRequest.d.ts | 31 + ...gev1CarriageContainerDocumentGetRequest.js | 40 + ...1CarriageContainerDocumentGetResponse.d.ts | 44 + ...ev1CarriageContainerDocumentGetResponse.js | 42 + ...arriagev1CarriageContainerFillRequest.d.ts | 37 + .../Carriagev1CarriageContainerFillRequest.js | 44 + ...rriagev1CarriageContainerFillResponse.d.ts | 38 + ...Carriagev1CarriageContainerFillResponse.js | 41 + ...ageContainerFillResponseErrorPostings.d.ts | 37 + ...riageContainerFillResponseErrorPostings.js | 40 + ...Carriagev1CarriageContainerGetRequest.d.ts | 31 + .../Carriagev1CarriageContainerGetRequest.js | 40 + ...arriagev1CarriageContainerGetResponse.d.ts | 128 + .../Carriagev1CarriageContainerGetResponse.js | 67 + ...1CarriageContainerGetResponsePostings.d.ts | 65 + ...ev1CarriageContainerGetResponsePostings.js | 49 + ...eContainerGetResponsePostingsProducts.d.ts | 73 + ...ageContainerGetResponsePostingsProducts.js | 52 + ...agev1CarriageContainerLabelGetRequest.d.ts | 31 + ...riagev1CarriageContainerLabelGetRequest.js | 38 + ...gev1CarriageContainerLabelGetResponse.d.ts | 39 + ...iagev1CarriageContainerLabelGetResponse.js | 42 + ...riageContainerLabelGetResponseContent.d.ts | 43 + ...arriageContainerLabelGetResponseContent.js | 42 + ...tainerLabelGetResponseErrorContainers.d.ts | 37 + ...ontainerLabelGetResponseErrorContainers.js | 40 + ...arriagev1CarriageContainerListRequest.d.ts | 51 + .../Carriagev1CarriageContainerListRequest.js | 46 + ...ev1CarriageContainerListRequestFilter.d.ts | 79 + ...agev1CarriageContainerListRequestFilter.js | 54 + ...rriageContainerListRequestSortDirEnum.d.ts | 27 + ...CarriageContainerListRequestSortDirEnum.js | 43 + ...rriagev1CarriageContainerListResponse.d.ts | 38 + ...Carriagev1CarriageContainerListResponse.js | 41 + ...rriageContainerListResponseContainers.d.ts | 115 + ...CarriageContainerListResponseContainers.js | 62 + ...gev1CarriageContainerPlaceIntoRequest.d.ts | 37 + ...iagev1CarriageContainerPlaceIntoRequest.js | 44 + ...ev1CarriageContainerPlaceIntoResponse.d.ts | 38 + ...agev1CarriageContainerPlaceIntoResponse.js | 41 + ...ainerPlaceIntoResponseErrorContainers.d.ts | 37 + ...ntainerPlaceIntoResponseErrorContainers.js | 40 + ...ev1CarriageContainerRemoveFromRequest.d.ts | 37 + ...agev1CarriageContainerRemoveFromRequest.js | 44 + ...v1CarriageContainerRemoveFromResponse.d.ts | 38 + ...gev1CarriageContainerRemoveFromResponse.js | 41 + ...inerRemoveFromResponseErrorContainers.d.ts | 37 + ...tainerRemoveFromResponseErrorContainers.js | 40 + ...arriageContainerRemovePostingsRequest.d.ts | 37 + ...1CarriageContainerRemovePostingsRequest.js | 44 + ...rriageContainerRemovePostingsResponse.d.ts | 38 + ...CarriageContainerRemovePostingsResponse.js | 41 + ...erRemovePostingsResponseErrorPostings.d.ts | 37 + ...inerRemovePostingsResponseErrorPostings.js | 40 + ...gev1CarriageContainerStatusGetRequest.d.ts | 31 + ...iagev1CarriageContainerStatusGetRequest.js | 40 + ...ev1CarriageContainerStatusGetResponse.d.ts | 32 + ...agev1CarriageContainerStatusGetResponse.js | 39 + ...eContainerStatusGetResponseContainers.d.ts | 37 + ...ageContainerStatusGetResponseContainers.js | 40 + ...agev1CarriageContainerTaskInfoRequest.d.ts | 31 + ...riagev1CarriageContainerTaskInfoRequest.js | 38 + ...gev1CarriageContainerTaskInfoResponse.d.ts | 42 + ...iagev1CarriageContainerTaskInfoResponse.js | 40 + ...tionV2ProductCertificateCreateRequest.d.ts | 32 + ...cationV2ProductCertificateCreateRequest.js | 39 + ...ProductCertificateCreateRequestParams.d.ts | 96 + ...V2ProductCertificateCreateRequestParams.js | 63 + ...ionV2ProductCertificateCreateResponse.d.ts | 45 + ...ationV2ProductCertificateCreateResponse.js | 44 + ...ProductCertificateCreateResponseParam.d.ts | 57 + ...V2ProductCertificateCreateResponseParam.js | 43 + ...rtificateCreateResponseParamStateEnum.d.ts | 29 + ...CertificateCreateResponseParamStateEnum.js | 45 + ...ctCertificateCreateResponseStatusEnum.d.ts | 27 + ...ductCertificateCreateResponseStatusEnum.js | 43 + ...onV2ProductCertificateOptionsResponse.d.ts | 32 + ...tionV2ProductCertificateOptionsResponse.js | 39 + ...oductCertificateOptionsResponseOption.d.ts | 51 + ...ProductCertificateOptionsResponseOption.js | 40 + ...tionV2ProductCertificateParamsRequest.d.ts | 32 + ...cationV2ProductCertificateParamsRequest.js | 39 + ...ProductCertificateParamsRequestParams.d.ts | 96 + ...V2ProductCertificateParamsRequestParams.js | 63 + ...ParamsRequestParamsAccordanceTypeEnum.d.ts | 41 + ...teParamsRequestParamsAccordanceTypeEnum.js | 57 + ...aramsRequestParamsCertificateTypeEnum.d.ts | 39 + ...eParamsRequestParamsCertificateTypeEnum.js | 55 + ...ificateParamsRequestParamsExpiredDate.d.ts | 39 + ...rtificateParamsRequestParamsExpiredDate.js | 41 + ...uctCertificateParamsRequestParamsFile.d.ts | 37 + ...oductCertificateParamsRequestParamsFile.js | 44 + ...ateParamsRequestParamsProductTypeEnum.d.ts | 41 + ...icateParamsRequestParamsProductTypeEnum.js | 57 + ...ionV2ProductCertificateParamsResponse.d.ts | 32 + ...ationV2ProductCertificateParamsResponse.js | 39 + ...ProductCertificateParamsResponseParam.d.ts | 51 + ...V2ProductCertificateParamsResponseParam.js | 40 + dist/esm/models/ChatChatSendFileRequest.d.ts | 43 + dist/esm/models/ChatChatSendFileRequest.js | 48 + dist/esm/models/ChatChatSendFileResponse.d.ts | 31 + dist/esm/models/ChatChatSendFileResponse.js | 38 + .../models/ChatChatSendMessageRequest.d.ts | 37 + dist/esm/models/ChatChatSendMessageRequest.js | 44 + .../models/ChatChatSendMessageResponse.d.ts | 31 + .../esm/models/ChatChatSendMessageResponse.js | 38 + dist/esm/models/ChatChatStartRequest.d.ts | 31 + dist/esm/models/ChatChatStartRequest.js | 40 + dist/esm/models/ChatChatStartResponse.d.ts | 32 + dist/esm/models/ChatChatStartResponse.js | 39 + dist/esm/models/ChatHistoryRequestFilter.d.ts | 31 + dist/esm/models/ChatHistoryRequestFilter.js | 38 + dist/esm/models/ChatInfoChatStatusEnum.d.ts | 30 + dist/esm/models/ChatInfoChatStatusEnum.js | 46 + dist/esm/models/ChatInfoChatTypeEnum.d.ts | 43 + dist/esm/models/ChatInfoChatTypeEnum.js | 59 + dist/esm/models/ChatMessageContext.d.ts | 37 + dist/esm/models/ChatMessageContext.js | 40 + .../ChatMessageModerateImageStatus.d.ts | 29 + .../models/ChatMessageModerateImageStatus.js | 45 + dist/esm/models/ChatRead.d.ts | 37 + dist/esm/models/ChatRead.js | 42 + dist/esm/models/ChatStartResponseResult.d.ts | 31 + dist/esm/models/ChatStartResponseResult.js | 38 + dist/esm/models/ClientTimeslotDateRange.d.ts | 37 + dist/esm/models/ClientTimeslotDateRange.js | 40 + dist/esm/models/ClusterWarehouse.d.ts | 81 + dist/esm/models/ClusterWarehouse.js | 53 + .../models/CommentListResponseComment.d.ts | 95 + dist/esm/models/CommentListResponseComment.js | 58 + .../models/CommonCreateReportResponse.d.ts | 32 + dist/esm/models/CommonCreateReportResponse.js | 39 + dist/esm/models/CompanyTaxSystemEnum.d.ts | 37 + dist/esm/models/CompanyTaxSystemEnum.js | 53 + ...tentCanNotEditSupplyContentReasonEnum.d.ts | 31 + ...ontentCanNotEditSupplyContentReasonEnum.js | 47 + dist/esm/models/CourierCoordinates.d.ts | 37 + dist/esm/models/CourierCoordinates.js | 44 + ...reateCompanyPostingsReportRequestWith.d.ts | 53 + .../CreateCompanyPostingsReportRequestWith.js | 44 + ...cumentB2BSalesJSONReportResponseBuyer.d.ts | 49 + ...DocumentB2BSalesJSONReportResponseBuyer.js | 44 + ...B2BSalesJSONReportResponseInvoiceInfo.d.ts | 50 + ...ntB2BSalesJSONReportResponseInvoiceInfo.js | 45 + ...alesJSONReportResponseInvoiceInfoType.d.ts | 27 + ...BSalesJSONReportResponseInvoiceInfoType.js | 43 + ...lesJSONReportResponseLegalSaleInvoice.d.ts | 88 + ...SalesJSONReportResponseLegalSaleInvoice.js | 59 + ...sJSONReportResponseLegalSaleOperation.d.ts | 98 + ...lesJSONReportResponseLegalSaleOperation.js | 61 + ...NReportResponseLegalSaleOperationType.d.ts | 27 + ...SONReportResponseLegalSaleOperationType.js | 43 + ...tB2BSalesJSONReportResponseSellerInfo.d.ts | 43 + ...entB2BSalesJSONReportResponseSellerInfo.js | 42 + dist/esm/models/CreateReportResponse.d.ts | 32 + dist/esm/models/CreateReportResponse.js | 39 + dist/esm/models/CreateReportResponseCode.d.ts | 31 + dist/esm/models/CreateReportResponseCode.js | 38 + .../CreateReportResponseCodeNoDeadline.d.ts | 31 + .../CreateReportResponseCodeNoDeadline.js | 38 + ...WarehouseFBSRequestAddressCoordinates.d.ts | 37 + ...teWarehouseFBSRequestAddressCoordinates.js | 44 + ...eWarehouseFBSRequestFirstMileTypeEnum.d.ts | 27 + ...ateWarehouseFBSRequestFirstMileTypeEnum.js | 43 + .../CreateWarehouseFBSRequestOptions.d.ts | 51 + .../CreateWarehouseFBSRequestOptions.js | 44 + ...ateWarehouseFBSRequestWorkingDaysEnum.d.ts | 29 + ...reateWarehouseFBSRequestWorkingDaysEnum.js | 45 + dist/esm/models/CreatedAt.d.ts | 37 + dist/esm/models/CreatedAt.js | 40 + dist/esm/models/DataFulfillment.d.ts | 37 + dist/esm/models/DataFulfillment.js | 40 + dist/esm/models/DataMacrolocalCluster.d.ts | 38 + dist/esm/models/DataMacrolocalCluster.js | 41 + .../models/DeleteProductsRequestProduct.d.ts | 31 + .../models/DeleteProductsRequestProduct.js | 40 + .../DeleteProductsResponseDeleteStatus.d.ts | 43 + .../DeleteProductsResponseDeleteStatus.js | 42 + .../models/DeliveryCheckoutResponseSplit.d.ts | 66 + .../models/DeliveryCheckoutResponseSplit.js | 53 + ...iveryCheckoutResponseSplitCommissions.d.ts | 32 + ...eliveryCheckoutResponseSplitCommissions.js | 39 + ...ryCheckoutResponseSplitDeliveryMethod.d.ts | 70 + ...veryCheckoutResponseSplitDeliveryMethod.js | 53 + .../DeliveryCheckoutResponseSplitItem.d.ts | 43 + .../DeliveryCheckoutResponseSplitItem.js | 42 + ...CheckoutResponseUnavailableReasonEnum.d.ts | 121 + ...ryCheckoutResponseUnavailableReasonEnum.js | 137 ++ ...koutResponseV2SplitDeliverySchemaEnum.d.ts | 29 + ...eckoutResponseV2SplitDeliverySchemaEnum.js | 45 + dist/esm/models/DeliveryCourier.d.ts | 98 + dist/esm/models/DeliveryCourier.js | 69 + .../DeliveryDetailsDropOffPointDetails.d.ts | 44 + .../DeliveryDetailsDropOffPointDetails.js | 43 + .../esm/models/DeliveryDetailsSupplyType.d.ts | 33 + dist/esm/models/DeliveryDetailsSupplyType.js | 49 + ...veryMapRequestViewportCoordinatesLeft.d.ts | 37 + ...liveryMapRequestViewportCoordinatesLeft.js | 40 + ...eryMapRequestViewportCoordinatesRight.d.ts | 37 + ...iveryMapRequestViewportCoordinatesRight.js | 40 + .../models/DeliveryMapResponseCluster.d.ts | 58 + dist/esm/models/DeliveryMapResponseCluster.js | 48 + ...DeliveryMapResponseClusterCoordinates.d.ts | 37 + .../DeliveryMapResponseClusterCoordinates.js | 40 + ...veryMapResponseClusterCoordinatesLeft.d.ts | 37 + ...liveryMapResponseClusterCoordinatesLeft.js | 40 + ...eryMapResponseClusterCoordinatesRight.d.ts | 37 + ...iveryMapResponseClusterCoordinatesRight.js | 40 + .../DeliveryMapResponseClusterViewport.d.ts | 39 + .../DeliveryMapResponseClusterViewport.js | 42 + .../models/DeliveryMethodAddressDetails.d.ts | 49 + .../models/DeliveryMethodAddressDetails.js | 44 + dist/esm/models/DeliveryMethodCarriage.d.ts | 75 + dist/esm/models/DeliveryMethodCarriage.js | 53 + dist/esm/models/DeliveryMethodDateRange.d.ts | 37 + dist/esm/models/DeliveryMethodDateRange.js | 44 + .../models/DeliveryMethodDeliveryPolygon.d.ts | 50 + .../models/DeliveryMethodDeliveryPolygon.js | 56 + .../DeliveryMethodDeliveryTypeEnum.d.ts | 31 + .../models/DeliveryMethodDeliveryTypeEnum.js | 47 + dist/esm/models/DeliveryMethodError.d.ts | 43 + dist/esm/models/DeliveryMethodError.js | 42 + dist/esm/models/DeliveryMethodHolidays.d.ts | 37 + dist/esm/models/DeliveryMethodHolidays.js | 40 + .../DeliveryMethodListRequestFilter.d.ts | 48 + .../models/DeliveryMethodListRequestFilter.js | 42 + ...iveryMethodListResponseDeliveryMethod.d.ts | 96 + ...eliveryMethodListResponseDeliveryMethod.js | 58 + .../DeliveryMethodListV2RequestFilter.d.ts | 57 + .../DeliveryMethodListV2RequestFilter.js | 45 + ...eliveryMethodListV2RequestSortDirEnum.d.ts | 27 + .../DeliveryMethodListV2RequestSortDirEnum.js | 43 + ...eryMethodListV2ResponseDeliveryMethod.d.ts | 117 + ...iveryMethodListV2ResponseDeliveryMethod.js | 63 + dist/esm/models/DeliveryMethodProperties.d.ts | 38 + dist/esm/models/DeliveryMethodProperties.js | 40 + dist/esm/models/DeliveryMethodTimeslot.d.ts | 45 + dist/esm/models/DeliveryMethodTimeslot.js | 44 + .../models/DeliveryMethodWorkingHours.d.ts | 38 + dist/esm/models/DeliveryMethodWorkingHours.js | 41 + dist/esm/models/DeliveryPickUp.d.ts | 31 + dist/esm/models/DeliveryPickUp.js | 40 + ...yPointInfoResponsePointDeliveryMethod.d.ts | 128 + ...eryPointInfoResponsePointDeliveryMethod.js | 74 + ...sponsePointDeliveryMethodDeliveryType.d.ts | 37 + ...ResponsePointDeliveryMethodDeliveryType.js | 40 + ...veryPointListResponsePointCoordinates.d.ts | 37 + ...liveryPointListResponsePointCoordinates.js | 40 + dist/esm/models/DeliveryTypeCourier.d.ts | 32 + dist/esm/models/DeliveryTypeCourier.js | 39 + .../DeliveryTypeCourierCoordinates.d.ts | 37 + .../models/DeliveryTypeCourierCoordinates.js | 40 + dist/esm/models/DeliveryTypeEnum.d.ts | 29 + dist/esm/models/DeliveryTypeEnum.js | 45 + dist/esm/models/DeliveryTypePickUp.d.ts | 31 + dist/esm/models/DeliveryTypePickUp.js | 38 + dist/esm/models/DetailsDeliveryDetails.d.ts | 44 + dist/esm/models/DetailsDeliveryDetails.js | 43 + dist/esm/models/DetailsOthers.d.ts | 38 + dist/esm/models/DetailsOthers.js | 41 + dist/esm/models/DetailsPayment.d.ts | 37 + dist/esm/models/DetailsPayment.js | 40 + dist/esm/models/DetailsReturnDetails.d.ts | 44 + dist/esm/models/DetailsReturnDetails.js | 43 + dist/esm/models/DetailsReturns.d.ts | 38 + dist/esm/models/DetailsReturns.js | 41 + dist/esm/models/DetailsRfbsDetails.d.ts | 61 + dist/esm/models/DetailsRfbsDetails.js | 48 + dist/esm/models/DetailsService.d.ts | 38 + dist/esm/models/DetailsService.js | 41 + dist/esm/models/DetailsServices.d.ts | 38 + dist/esm/models/DetailsServices.js | 41 + dist/esm/models/DirEnum.d.ts | 27 + dist/esm/models/DirEnum.js | 43 + .../models/DirectDetailsBySellerDetails.d.ts | 43 + .../models/DirectDetailsBySellerDetails.js | 42 + .../esm/models/DirectDetailsByTplDetails.d.ts | 37 + dist/esm/models/DirectDetailsByTplDetails.js | 40 + .../models/DirectDetailsTimeslotDetails.d.ts | 38 + .../models/DirectDetailsTimeslotDetails.js | 41 + ...aftClusterListResponseLogisticCluster.d.ts | 32 + ...DraftClusterListResponseLogisticCluster.js | 39 + .../DraftCreateCommonResponseError.d.ts | 73 + .../models/DraftCreateCommonResponseError.js | 51 + ...ateCommonResponseErrorItemsValidation.d.ts | 38 + ...reateCommonResponseErrorItemsValidation.js | 41 + .../DraftCreateInfoResponseCluster.d.ts | 63 + .../models/DraftCreateInfoResponseCluster.js | 53 + .../models/DraftCreateInfoResponseError.d.ts | 74 + .../models/DraftCreateInfoResponseError.js | 51 + ...reateInfoResponseErrorErrorReasonEnum.d.ts | 35 + ...tCreateInfoResponseErrorErrorReasonEnum.js | 51 + ...GetWarehouseFboListResponseCoordinate.d.ts | 37 + ...ftGetWarehouseFboListResponseCoordinate.js | 40 + ...raftGetWarehouseFboListResponseSearch.d.ts | 57 + .../DraftGetWarehouseFboListResponseSearch.js | 48 + ...WarehouseFboListResponseWarehouseType.d.ts | 33 + ...etWarehouseFboListResponseWarehouseType.js | 49 + .../DraftTimeslotInfoResponseResult.d.ts | 44 + .../models/DraftTimeslotInfoResponseResult.js | 43 + dist/esm/models/DropOffPointCoordinates.d.ts | 37 + dist/esm/models/DropOffPointCoordinates.js | 40 + .../models/DropOffWarehouseTimeslotsDay.d.ts | 38 + .../models/DropOffWarehouseTimeslotsDay.js | 41 + .../DropOffWarehouseTimeslotsDayTimeslot.d.ts | 37 + .../DropOffWarehouseTimeslotsDayTimeslot.js | 40 + dist/esm/models/ErrorData.d.ts | 55 + dist/esm/models/ErrorData.js | 46 + dist/esm/models/ErrorErrorLevel.d.ts | 33 + dist/esm/models/ErrorErrorLevel.js | 49 + dist/esm/models/ErrorErrorMessageEnum.d.ts | 57 + dist/esm/models/ErrorErrorMessageEnum.js | 73 + dist/esm/models/ErrorErrorReasonEnum.d.ts | 34 + dist/esm/models/ErrorErrorReasonEnum.js | 50 + dist/esm/models/ErrorHumanTexts.d.ts | 62 + dist/esm/models/ErrorHumanTexts.js | 49 + dist/esm/models/ErrorItemsValidation.d.ts | 38 + dist/esm/models/ErrorItemsValidation.js | 41 + dist/esm/models/ExemplarMark.d.ts | 41 + dist/esm/models/ExemplarMark.js | 40 + dist/esm/models/ExemplarsMarks.d.ts | 41 + dist/esm/models/ExemplarsMarks.js | 40 + .../FboPostingFboPostingAnalyticsData.d.ts | 92 + .../FboPostingFboPostingAnalyticsData.js | 54 + .../FbpCheckActStateResponseErrorReason.d.ts | 33 + .../FbpCheckActStateResponseErrorReason.js | 49 + ...ConsignmentNoteStateResponseStateType.d.ts | 31 + ...ckConsignmentNoteStateResponseStateType.js | 47 + ...CreateActResponseCreateActErrorReason.d.ts | 24 + ...bpCreateActResponseCreateActErrorReason.js | 40 + ...tDropOffPointListResponseDropOffPoint.d.ts | 55 + ...aftDropOffPointListResponseDropOffPoint.js | 46 + ...ftDropOffProvinceListResponseProvince.d.ts | 43 + ...raftDropOffProvinceListResponseProvince.js | 42 + .../FbpDraftGetResponseDeclineReason.d.ts | 37 + .../FbpDraftGetResponseDeclineReason.js | 40 + ...belResponseLabelCreationStateTypeEnum.d.ts | 31 + ...LabelResponseLabelCreationStateTypeEnum.js | 47 + ...WarehouseListResponseAddressDetailing.d.ts | 61 + ...bpWarehouseListResponseAddressDetailing.js | 48 + .../FbpWarehouseListResponseWarehouse.d.ts | 69 + .../FbpWarehouseListResponseWarehouse.js | 51 + dist/esm/models/Fbpv1DeliveryDetails.d.ts | 53 + dist/esm/models/Fbpv1DeliveryDetails.js | 48 + dist/esm/models/Fbpv1Timeslot.d.ts | 37 + dist/esm/models/Fbpv1Timeslot.js | 40 + dist/esm/models/FbsPostingBarcodes.d.ts | 37 + dist/esm/models/FbsPostingBarcodes.js | 40 + dist/esm/models/FbsPostingDetailCourier.d.ts | 52 + dist/esm/models/FbsPostingDetailCourier.js | 44 + .../esm/models/FbsPostingDetailPrrOption.d.ts | 54 + dist/esm/models/FbsPostingDetailPrrOption.js | 44 + ...bsPostingMoveStatusResponseMoveStatus.d.ts | 43 + .../FbsPostingMoveStatusResponseMoveStatus.js | 42 + ...tExemplarCreateOrGetV6ResponseProduct.d.ts | 102 + ...uctExemplarCreateOrGetV6ResponseProduct.js | 61 + ...gProductExemplarSetV6RequestExemplars.d.ts | 68 + ...ingProductExemplarSetV6RequestExemplars.js | 53 + ...ngProductExemplarSetV6RequestProducts.d.ts | 38 + ...tingProductExemplarSetV6RequestProducts.js | 45 + .../FbsPostingShipV4RequestPackage.d.ts | 32 + .../models/FbsPostingShipV4RequestPackage.js | 41 + ...FbsPostingShipV4RequestPackageProduct.d.ts | 37 + .../FbsPostingShipV4RequestPackageProduct.js | 44 + .../models/FbsPostingShipV4RequestWith.d.ts | 31 + .../esm/models/FbsPostingShipV4RequestWith.js | 38 + ...stingShipV4ResponseShipAdditionalData.d.ts | 38 + ...PostingShipV4ResponseShipAdditionalData.js | 41 + ...rackingNumberSetRequestTrackingNumber.d.ts | 37 + ...gTrackingNumberSetRequestTrackingNumber.js | 44 + .../models/Fbsv4FbsPostingShipV4Request.d.ts | 45 + .../models/Fbsv4FbsPostingShipV4Request.js | 48 + .../models/Fbsv4FbsPostingShipV4Response.d.ts | 38 + .../models/Fbsv4FbsPostingShipV4Response.js | 41 + ...PostingProductDetailWithoutDimensions.d.ts | 76 + ...v4PostingProductDetailWithoutDimensions.js | 50 + dist/esm/models/FilterPeriod.d.ts | 45 + dist/esm/models/FilterPeriod.js | 40 + dist/esm/models/FilterStatusEnum.d.ts | 28 + dist/esm/models/FilterStatusEnum.js | 44 + dist/esm/models/FilterTimeslotFromRange.d.ts | 44 + dist/esm/models/FilterTimeslotFromRange.js | 43 + dist/esm/models/FilterWithQuant.d.ts | 37 + dist/esm/models/FilterWithQuant.js | 40 + ...CashFlowStatementListResponseCashFlow.d.ts | 68 + ...ceCashFlowStatementListResponseCashFlow.js | 51 + ...wStatementListResponseDeliveryService.d.ts | 45 + ...lowStatementListResponseDeliveryService.js | 40 + ...eCashFlowStatementListResponseDetails.d.ts | 98 + ...nceCashFlowStatementListResponseDetails.js | 65 + ...lowStatementListResponseDetailsOthers.d.ts | 44 + ...hFlowStatementListResponseDetailsOthers.js | 40 + ...lowStatementListResponseReturnService.d.ts | 42 + ...hFlowStatementListResponseReturnService.js | 40 + ...eCashFlowStatementListResponseService.d.ts | 59 + ...nceCashFlowStatementListResponseService.js | 40 + ...FinanceTransactionListV3RequestFilter.d.ts | 99 + .../FinanceTransactionListV3RequestFilter.js | 45 + ...nceTransactionListV3ResponseOperation.d.ts | 114 + ...nanceTransactionListV3ResponseOperation.js | 65 + ...FinanceTransactionTotalsV3RequestDate.d.ts | 45 + .../FinanceTransactionTotalsV3RequestDate.js | 40 + ...inanceV1GetFinanceAccrualByDayRequest.d.ts | 45 + .../FinanceV1GetFinanceAccrualByDayRequest.js | 44 + ...nanceV1GetFinanceAccrualByDayResponse.d.ts | 41 + ...FinanceV1GetFinanceAccrualByDayResponse.js | 41 + ...GetFinanceAccrualByDayResponseAccrual.d.ts | 85 + ...V1GetFinanceAccrualByDayResponseAccrual.js | 60 + ...DayResponseAccrualAccruedCategoryEnum.d.ts | 33 + ...ByDayResponseAccrualAccruedCategoryEnum.js | 49 + ...rualByDayResponseAccrualContainerFees.d.ts | 32 + ...ccrualByDayResponseAccrualContainerFees.js | 39 + ...ponseAccrualContainerFeesContainerFee.d.ts | 38 + ...esponseAccrualContainerFeesContainerFee.js | 41 + ...ceAccrualByDayResponseAccrualItemFees.d.ts | 32 + ...anceAccrualByDayResponseAccrualItemFees.js | 39 + ...alByDayResponseAccrualItemFeesItemFee.d.ts | 38 + ...rualByDayResponseAccrualItemFeesItemFee.js | 41 + ...yDayResponseAccrualItemFeesItemFeeFee.d.ts | 38 + ...lByDayResponseAccrualItemFeesItemFeeFee.js | 41 + ...AccrualByDayResponseAccrualNonItemFee.d.ts | 38 + ...ceAccrualByDayResponseAccrualNonItemFee.js | 41 + ...nceAccrualByDayResponseAccrualPosting.d.ts | 44 + ...nanceAccrualByDayResponseAccrualPosting.js | 43 + ...ualByDayResponseAccrualPostingProduct.d.ts | 45 + ...crualByDayResponseAccrualPostingProduct.js | 44 + ...sponseAccrualPostingProductCommission.d.ts | 80 + ...ResponseAccrualPostingProductCommission.js | 59 + ...ResponseAccrualPostingProductDelivery.d.ts | 39 + ...ayResponseAccrualPostingProductDelivery.js | 42 + ...eAccrualPostingProductDeliveryService.d.ts | 38 + ...nseAccrualPostingProductDeliveryService.js | 41 + ...nceV1GetFinanceAccrualPostingsRequest.d.ts | 31 + ...nanceV1GetFinanceAccrualPostingsRequest.js | 40 + ...ceV1GetFinanceAccrualPostingsResponse.d.ts | 32 + ...anceV1GetFinanceAccrualPostingsResponse.js | 39 + ...ccrualPostingsResponsePostingAccruals.d.ts | 38 + ...eAccrualPostingsResponsePostingAccruals.js | 41 + ...ostingsResponsePostingAccrualsAccrual.d.ts | 63 + ...lPostingsResponsePostingAccrualsAccrual.js | 50 + ...nanceV1GetFinanceAccrualTypesResponse.d.ts | 32 + ...FinanceV1GetFinanceAccrualTypesResponse.js | 39 + ...inanceAccrualTypesResponseAccrualType.d.ts | 43 + ...tFinanceAccrualTypesResponseAccrualType.js | 42 + ...ancev3FinanceTransactionListV3Request.d.ts | 44 + ...inancev3FinanceTransactionListV3Request.js | 47 + ...ncev3FinanceTransactionListV3Response.d.ts | 32 + ...nancev3FinanceTransactionListV3Response.js | 39 + ...inanceTransactionListV3ResponseResult.d.ts | 44 + ...3FinanceTransactionListV3ResponseResult.js | 43 + ...cev3FinanceTransactionTotalsV3Request.d.ts | 52 + ...ancev3FinanceTransactionTotalsV3Request.js | 43 + ...ev3FinanceTransactionTotalsV3Response.d.ts | 32 + ...ncev3FinanceTransactionTotalsV3Response.js | 39 + ...anceTransactionTotalsV3ResponseResult.d.ts | 83 + ...inanceTransactionTotalsV3ResponseResult.js | 52 + dist/esm/models/Financev3Period.d.ts | 37 + dist/esm/models/Financev3Period.js | 44 + dist/esm/models/FirstMileTypeEnum.d.ts | 25 + dist/esm/models/FirstMileTypeEnum.js | 41 + ...etCarriageAvailableListResponseResult.d.ts | 140 ++ .../GetCarriageAvailableListResponseResult.js | 75 + .../GetCompetitorsResponseCompetitorInfo.d.ts | 37 + .../GetCompetitorsResponseCompetitorInfo.js | 40 + ...ionalCancellationListV2RequestFilters.d.ts | 51 + ...itionalCancellationListV2RequestFilters.js | 44 + ...ditionalCancellationListV2RequestWith.d.ts | 31 + ...onditionalCancellationListV2RequestWith.js | 38 + ...ationListV2ResponseCancellationReason.d.ts | 37 + ...llationListV2ResponseCancellationReason.js | 40 + ...ionalCancellationListV2ResponseResult.d.ts | 109 + ...itionalCancellationListV2ResponseResult.js | 65 + ...tionalCancellationListV2ResponseState.d.ts | 44 + ...ditionalCancellationListV2ResponseState.js | 43 + ...ReturnSettingsV1ResponseReturnSetting.d.ts | 45 + ...odReturnSettingsV1ResponseReturnSetting.js | 44 + .../GetDiscountTaskListV2ResponseTask.d.ts | 179 ++ .../GetDiscountTaskListV2ResponseTask.js | 88 + ...tV2ResponseTaskDiscountTaskStatusEnum.d.ts | 31 + ...istV2ResponseTaskDiscountTaskStatusEnum.js | 47 + dist/esm/models/GetEtgbRequestDate.d.ts | 37 + dist/esm/models/GetEtgbRequestDate.js | 44 + dist/esm/models/GetEtgbResponseResult.d.ts | 38 + dist/esm/models/GetEtgbResponseResult.js | 41 + .../esm/models/GetEtgbResponseResultEtgb.d.ts | 46 + dist/esm/models/GetEtgbResponseResultEtgb.js | 42 + ...atingIndexInfoV1ResponseIndexDynamics.d.ts | 43 + ...SRatingIndexInfoV1ResponseIndexDynamics.js | 42 + .../GetFinanceBalanceV1ResponseCashflows.d.ts | 46 + .../GetFinanceBalanceV1ResponseCashflows.js | 45 + .../GetFinanceBalanceV1ResponseReturns.d.ts | 46 + .../GetFinanceBalanceV1ResponseReturns.js | 45 + ...inanceBalanceV1ResponseReturnsDetails.d.ts | 45 + ...tFinanceBalanceV1ResponseReturnsDetails.js | 44 + .../GetFinanceBalanceV1ResponseSales.d.ts | 46 + .../GetFinanceBalanceV1ResponseSales.js | 45 + ...tFinanceBalanceV1ResponseSalesDetails.d.ts | 45 + ...GetFinanceBalanceV1ResponseSalesDetails.js | 44 + .../GetFinanceBalanceV1ResponseService.d.ts | 38 + .../GetFinanceBalanceV1ResponseService.js | 41 + .../GetFinanceBalanceV1ResponseTotal.d.ts | 53 + .../GetFinanceBalanceV1ResponseTotal.js | 48 + ...tFinanceProductsBuyoutResponseProduct.d.ts | 85 + ...GetFinanceProductsBuyoutResponseProduct.js | 56 + ...tImportProductsInfoResponseResultItem.d.ts | 59 + ...GetImportProductsInfoResponseResultItem.js | 45 + .../GetProductAttributesResponseImage.d.ts | 44 + .../GetProductAttributesResponseImage.js | 42 + ...ctAttributesV3ResponseDictionaryValue.d.ts | 37 + ...ductAttributesV3ResponseDictionaryValue.js | 40 + ...tProductAttributesV4ResponseAttribute.d.ts | 44 + ...GetProductAttributesV4ResponseAttribute.js | 43 + ...etProductInfoListResponseAvailability.d.ts | 50 + .../GetProductInfoListResponseAvailability.js | 45 + .../GetProductInfoListResponseCommission.d.ts | 55 + .../GetProductInfoListResponseCommission.js | 46 + .../GetProductInfoListResponseError.d.ts | 63 + .../models/GetProductInfoListResponseError.js | 50 + .../GetProductInfoListResponseModelInfo.d.ts | 37 + .../GetProductInfoListResponseModelInfo.js | 40 + ...etProductInfoListResponsePriceIndexes.d.ts | 53 + .../GetProductInfoListResponsePriceIndexes.js | 48 + .../GetProductInfoListResponseSource.d.ts | 60 + .../GetProductInfoListResponseSource.js | 47 + .../GetProductInfoListResponseStatuses.d.ts | 80 + .../GetProductInfoListResponseStatuses.js | 54 + .../GetProductInfoListResponseStocks.d.ts | 39 + .../GetProductInfoListResponseStocks.js | 41 + ...GetProductInfoListResponseStocksStock.d.ts | 49 + .../GetProductInfoListResponseStocksStock.js | 44 + ...ductInfoListResponseVisibilityDetails.d.ts | 37 + ...roductInfoListResponseVisibilityDetails.js | 40 + ...uctInfoPricesResponseItemPriceIndexes.d.ts | 72 + ...oductInfoPricesResponseItemPriceIndexes.js | 57 + .../GetProductInfoStocksResponseStock.d.ts | 68 + .../GetProductInfoStocksResponseStock.js | 49 + ...ementZoneInfoResponseProductPlacement.d.ts | 38 + ...acementZoneInfoResponseProductPlacement.js | 41 + ...oductRatingBySkuResponseProductRating.d.ts | 45 + ...ProductRatingBySkuResponseProductRating.js | 43 + ...uctRatingBySkuResponseRatingCondition.d.ts | 49 + ...oductRatingBySkuResponseRatingCondition.js | 44 + ...ProductRatingBySkuResponseRatingGroup.d.ts | 69 + ...etProductRatingBySkuResponseRatingGroup.js | 52 + ...ngBySkuResponseRatingImproveAttribute.d.ts | 37 + ...tingBySkuResponseRatingImproveAttribute.js | 40 + .../GetRealizationReportByDayResponse.d.ts | 32 + .../GetRealizationReportByDayResponse.js | 39 + .../GetRealizationReportByDayResponseRow.d.ts | 64 + .../GetRealizationReportByDayResponseRow.js | 51 + .../GetRealizationReportResponseV2Header.d.ts | 103 + .../GetRealizationReportResponseV2Header.js | 62 + .../GetRealizationReportResponseV2Result.d.ts | 39 + .../GetRealizationReportResponseV2Result.js | 42 + .../GetRealizationReportResponseV2Row.d.ts | 64 + .../GetRealizationReportResponseV2Row.js | 51 + .../models/GetReturnsListRequestFilter.d.ts | 141 ++ .../esm/models/GetReturnsListRequestFilter.js | 63 + .../GetReturnsListResponseAdditionalInfo.d.ts | 39 + .../GetReturnsListResponseAdditionalInfo.js | 40 + .../GetReturnsListResponseCompensation.d.ts | 38 + .../GetReturnsListResponseCompensation.js | 41 + ...ReturnsListResponseCompensationStatus.d.ts | 53 + ...etReturnsListResponseCompensationStatus.js | 42 + .../GetReturnsListResponseExemplar.d.ts | 31 + .../models/GetReturnsListResponseExemplar.js | 38 + .../GetReturnsListResponseLogistic.d.ts | 55 + .../models/GetReturnsListResponseLogistic.js | 46 + .../GetReturnsListResponsePlaceNow.d.ts | 43 + .../models/GetReturnsListResponsePlaceNow.js | 42 + .../GetReturnsListResponsePlaceTarget.d.ts | 43 + .../GetReturnsListResponsePlaceTarget.js | 42 + .../models/GetReturnsListResponseProduct.d.ts | 76 + .../models/GetReturnsListResponseProduct.js | 55 + .../GetReturnsListResponseReturnsItem.d.ts | 163 ++ .../GetReturnsListResponseReturnsItem.js | 85 + .../models/GetReturnsListResponseStorage.d.ts | 69 + .../models/GetReturnsListResponseStorage.js | 52 + .../models/GetReturnsListResponseVisual.d.ts | 38 + .../models/GetReturnsListResponseVisual.js | 41 + .../GetReturnsListResponseVisualStatus.d.ts | 43 + .../GetReturnsListResponseVisualStatus.js | 42 + .../GetSellerActionsV1ResponseAction.d.ts | 132 + .../GetSellerActionsV1ResponseAction.js | 70 + ...rategyIDsByItemIDsResponseProductInfo.d.ts | 37 + ...StrategyIDsByItemIDsResponseProductInfo.js | 40 + .../GetStrategyListResponseStrategy.d.ts | 85 + .../models/GetStrategyListResponseStrategy.js | 52 + ...OrderBundleRequestItemTagsCalculation.d.ts | 37 + ...lyOrderBundleRequestItemTagsCalculation.js | 44 + .../GetUploadQuotaResponseDailyCreate.d.ts | 43 + .../GetUploadQuotaResponseDailyCreate.js | 42 + .../GetUploadQuotaResponseDailyUpdate.d.ts | 43 + .../GetUploadQuotaResponseDailyUpdate.js | 42 + .../models/GetUploadQuotaResponseTotal.d.ts | 37 + .../esm/models/GetUploadQuotaResponseTotal.js | 40 + ...ehouseFBSOperationStatusResponseError.d.ts | 37 + ...arehouseFBSOperationStatusResponseError.js | 40 + ...houseFBSOperationStatusResponseResult.d.ts | 31 + ...rehouseFBSOperationStatusResponseResult.js | 38 + ...eFBSOperationStatusResponseStatusEnum.d.ts | 31 + ...useFBSOperationStatusResponseStatusEnum.js | 47 + ...useFBSOperationStatusResponseTypeEnum.d.ts | 35 + ...houseFBSOperationStatusResponseTypeEnum.js | 51 + .../GiveoutInfoResponseArticleDetails.d.ts | 54 + .../GiveoutInfoResponseArticleDetails.js | 44 + .../GiveoutListResponseGiveoutDetails.d.ts | 79 + .../GiveoutListResponseGiveoutDetails.js | 52 + dist/esm/models/GoogleTypeDate.d.ts | 43 + dist/esm/models/GoogleTypeDate.js | 42 + dist/esm/models/GooglerpcStatus.d.ts | 44 + dist/esm/models/GooglerpcStatus.js | 43 + dist/esm/models/HumanTextsParam.d.ts | 37 + dist/esm/models/HumanTextsParam.js | 40 + .../models/ImportProductRequestPromotion.d.ts | 59 + .../models/ImportProductRequestPromotion.js | 54 + .../models/ImportProductsRequestPdfList.d.ts | 43 + .../models/ImportProductsRequestPdfList.js | 42 + .../models/InvoiceGetV2ResponseResult.d.ts | 74 + dist/esm/models/InvoiceGetV2ResponseResult.js | 49 + dist/esm/models/ItemBundleSummary.d.ts | 43 + dist/esm/models/ItemBundleSummary.js | 42 + dist/esm/models/ItemCommissionsv5.d.ts | 115 + dist/esm/models/ItemCommissionsv5.js | 64 + dist/esm/models/ItemMarketing.d.ts | 51 + dist/esm/models/ItemMarketing.js | 45 + dist/esm/models/ItemPricev5.d.ts | 96 + dist/esm/models/ItemPricev5.js | 56 + dist/esm/models/ItemSize.d.ts | 43 + dist/esm/models/ItemSize.js | 42 + dist/esm/models/ItemStatusError.d.ts | 37 + dist/esm/models/ItemStatusError.js | 40 + dist/esm/models/ItemValidationErrorType.d.ts | 47 + dist/esm/models/ItemValidationErrorType.js | 63 + .../models/ItemsValidationRejectedItems.d.ts | 64 + .../models/ItemsValidationRejectedItems.js | 41 + dist/esm/models/LanguageLanguage.d.ts | 34 + dist/esm/models/LanguageLanguage.js | 50 + ...ntsForCreateFBSWarehouseRequestSearch.d.ts | 42 + ...ointsForCreateFBSWarehouseRequestSearch.js | 41 + ...ouseRequestSearchDropOffPointTypeEnum.d.ts | 25 + ...ehouseRequestSearchDropOffPointTypeEnum.js | 41 + ...reateFBSWarehouseResponseDropOffPoint.d.ts | 64 + ...rCreateFBSWarehouseResponseDropOffPoint.js | 51 + ...ntsForUpdateFBSWarehouseRequestSearch.d.ts | 42 + ...ointsForUpdateFBSWarehouseRequestSearch.js | 41 + ...ouseRequestSearchDropOffPointTypeEnum.d.ts | 25 + ...ehouseRequestSearchDropOffPointTypeEnum.js | 41 + ...pdateFBSWarehouseResponseDropOffPoint.d.ts | 64 + ...rUpdateFBSWarehouseResponseDropOffPoint.js | 51 + ...ponseDropOffPointDropOffPointTypeEnum.d.ts | 29 + ...esponseDropOffPointDropOffPointTypeEnum.js | 45 + ...FBSRatingIndexPostingsV1RequestFilter.d.ts | 43 + ...stFBSRatingIndexPostingsV1RequestFilter.js | 46 + ...FBSRatingIndexPostingsV1ResponseError.d.ts | 111 + ...stFBSRatingIndexPostingsV1ResponseError.js | 59 + .../models/ListPostingCodesRequestFilter.d.ts | 43 + .../models/ListPostingCodesRequestFilter.js | 42 + .../ListPostingCodesRequestWithParams.d.ts | 43 + .../ListPostingCodesRequestWithParams.js | 42 + .../ListPostingCodesResponsePosting.d.ts | 109 + .../models/ListPostingCodesResponsePosting.js | 67 + .../esm/models/LogisticTimeslotDateRange.d.ts | 37 + dist/esm/models/LogisticTimeslotDateRange.js | 40 + dist/esm/models/MacrolocalClusterCountry.d.ts | 37 + dist/esm/models/MacrolocalClusterCountry.js | 40 + dist/esm/models/MarketingAction.d.ts | 49 + dist/esm/models/MarketingAction.js | 44 + dist/esm/models/MaxPeriodsPeriod.d.ts | 37 + dist/esm/models/MaxPeriodsPeriod.js | 40 + dist/esm/models/MinPeriodsPeriod.d.ts | 37 + dist/esm/models/MinPeriodsPeriod.js | 40 + dist/esm/models/MinUtilizationMoney.d.ts | 37 + dist/esm/models/MinUtilizationMoney.js | 40 + dist/esm/models/MoneyMoney.d.ts | 37 + dist/esm/models/MoneyMoney.js | 40 + dist/esm/models/MoneyMoneyAccrued.d.ts | 37 + dist/esm/models/MoneyMoneyAccrued.js | 40 + dist/esm/models/MoneyMoneyBonus.d.ts | 37 + dist/esm/models/MoneyMoneyBonus.js | 40 + dist/esm/models/MoneyMoneyCoinvestment.d.ts | 37 + dist/esm/models/MoneyMoneyCoinvestment.js | 40 + dist/esm/models/MoneyMoneyComissions.d.ts | 37 + dist/esm/models/MoneyMoneyComissions.js | 40 + dist/esm/models/MoneyMoneyCommission.d.ts | 37 + dist/esm/models/MoneyMoneyCommission.js | 40 + .../models/MoneyMoneyCurrentTariffCharge.d.ts | 37 + .../models/MoneyMoneyCurrentTariffCharge.js | 40 + .../MoneyMoneyCurrentTariffMinCharge.d.ts | 37 + .../MoneyMoneyCurrentTariffMinCharge.js | 40 + dist/esm/models/MoneyMoneyCustomerPrice.d.ts | 37 + dist/esm/models/MoneyMoneyCustomerPrice.js | 40 + dist/esm/models/MoneyMoneyFBPget.d.ts | 37 + dist/esm/models/MoneyMoneyFBPget.js | 40 + .../models/MoneyMoneyNextTariffCharge.d.ts | 37 + dist/esm/models/MoneyMoneyNextTariffCharge.js | 40 + .../models/MoneyMoneyNextTariffMinCharge.d.ts | 37 + .../models/MoneyMoneyNextTariffMinCharge.js | 40 + .../esm/models/MoneyMoneyPriceWithoutVat.d.ts | 37 + dist/esm/models/MoneyMoneyPriceWithoutVat.js | 40 + dist/esm/models/MoneyMoneySaleAmount.d.ts | 37 + dist/esm/models/MoneyMoneySaleAmount.js | 40 + dist/esm/models/MoneyMoneySaleCommission.d.ts | 37 + dist/esm/models/MoneyMoneySaleCommission.js | 40 + dist/esm/models/MoneyMoneySalePrice.d.ts | 37 + dist/esm/models/MoneyMoneySalePrice.js | 40 + dist/esm/models/MoneyMoneySelf.d.ts | 37 + dist/esm/models/MoneyMoneySelf.js | 40 + dist/esm/models/MoneyMoneySellerPrice.d.ts | 37 + dist/esm/models/MoneyMoneySellerPrice.js | 40 + .../esm/models/MoneyMoneySplitCommission.d.ts | 37 + dist/esm/models/MoneyMoneySplitCommission.js | 40 + .../esm/models/MoneyMoneySupplyActAmount.d.ts | 37 + dist/esm/models/MoneyMoneySupplyActAmount.js | 40 + .../models/MoneyMoneySupplyActAmountVat.d.ts | 37 + .../models/MoneyMoneySupplyActAmountVat.js | 40 + .../MoneyMoneySupplyActAmountWithoutVat.d.ts | 37 + .../MoneyMoneySupplyActAmountWithoutVat.js | 40 + dist/esm/models/MoneyMoneyTotalAccrued.d.ts | 37 + dist/esm/models/MoneyMoneyTotalAccrued.js | 40 + dist/esm/models/MoneyMoneyTotalAmount.d.ts | 37 + dist/esm/models/MoneyMoneyTotalAmount.js | 40 + dist/esm/models/MoneyPostingMoney.d.ts | 37 + dist/esm/models/MoneyPostingMoney.js | 40 + ...otificationV1CheckNotificationRequest.d.ts | 31 + .../NotificationV1CheckNotificationRequest.js | 40 + ...tificationV1CheckNotificationResponse.d.ts | 39 + ...NotificationV1CheckNotificationResponse.js | 43 + ...ationV1CheckNotificationResponseError.d.ts | 38 + ...icationV1CheckNotificationResponseError.js | 41 + ...heckNotificationResponseErrorTypeEnum.d.ts | 41 + ...1CheckNotificationResponseErrorTypeEnum.js | 57 + ...tificationV1DeleteNotificationRequest.d.ts | 31 + ...NotificationV1DeleteNotificationRequest.js | 40 + ...tificationV1EnableNotificationRequest.d.ts | 40 + ...NotificationV1EnableNotificationRequest.js | 44 + ...V1GetNotificationPushTypeListResponse.d.ts | 32 + ...onV1GetNotificationPushTypeListResponse.js | 41 + ...nPushTypeListResponseNotificationType.d.ts | 45 + ...ionPushTypeListResponseNotificationType.js | 48 + ...esponseNotificationTypeSellerEndpoint.d.ts | 37 + ...tResponseNotificationTypeSellerEndpoint.js | 44 + ...eListResponseNotificationTypeTypeEnum.d.ts | 65 + ...ypeListResponseNotificationTypeTypeEnum.js | 81 + ...otificationV1NotificationListResponse.d.ts | 32 + .../NotificationV1NotificationListResponse.js | 41 + ...1NotificationListResponseNotification.d.ts | 57 + ...nV1NotificationListResponseNotification.js | 57 + ...tResponseNotificationNotificationType.d.ts | 38 + ...istResponseNotificationNotificationType.js | 45 + ...eNotificationNotificationTypeTypeEnum.d.ts | 65 + ...nseNotificationNotificationTypeTypeEnum.js | 81 + .../NotificationV1SetNotificationRequest.d.ts | 60 + .../NotificationV1SetNotificationRequest.js | 45 + ...ationV1SetNotificationRequestTypeEnum.d.ts | 43 + ...icationV1SetNotificationRequestTypeEnum.js | 59 + ...tificationV1UpdateNotificationRequest.d.ts | 66 + ...NotificationV1UpdateNotificationRequest.js | 45 + ...onV1UpdateNotificationRequestTypeEnum.d.ts | 43 + ...tionV1UpdateNotificationRequestTypeEnum.js | 59 + dist/esm/models/OperationItem.d.ts | 37 + dist/esm/models/OperationItem.js | 40 + dist/esm/models/OperationPosting.d.ts | 57 + dist/esm/models/OperationPosting.js | 44 + dist/esm/models/OperationService.d.ts | 75 + dist/esm/models/OperationService.js | 40 + .../OrderCancelCheckResponsePosting.d.ts | 44 + .../models/OrderCancelCheckResponsePosting.js | 42 + .../OrderCancelCheckResponsePostingGroup.d.ts | 31 + .../OrderCancelCheckResponsePostingGroup.js | 38 + dist/esm/models/OrderCreateRequestBuyer.d.ts | 49 + dist/esm/models/OrderCreateRequestBuyer.js | 50 + .../models/OrderCreateRequestDelivery.d.ts | 39 + dist/esm/models/OrderCreateRequestDelivery.js | 42 + .../OrderCreateRequestDeliveryPrice.d.ts | 43 + .../models/OrderCreateRequestDeliveryPrice.js | 42 + dist/esm/models/OrderCreateRequestPrice.d.ts | 43 + dist/esm/models/OrderCreateRequestPrice.js | 46 + .../models/OrderCreateRequestRecipient.d.ts | 49 + .../esm/models/OrderCreateRequestRecipient.js | 50 + dist/esm/models/OrderCreateRequestSplit.d.ts | 45 + dist/esm/models/OrderCreateRequestSplit.js | 50 + ...rderCreateRequestV2DeliverySchemaEnum.d.ts | 29 + .../OrderCreateRequestV2DeliverySchemaEnum.js | 45 + dist/esm/models/OrderDropOffWarehouse.d.ts | 43 + dist/esm/models/OrderDropOffWarehouse.js | 42 + dist/esm/models/OrderOrderStateEnum.d.ts | 47 + dist/esm/models/OrderOrderStateEnum.js | 63 + dist/esm/models/OrderOrderTags.d.ts | 78 + dist/esm/models/OrderOrderTags.js | 52 + dist/esm/models/OrderSupply.d.ts | 71 + dist/esm/models/OrderSupply.js | 53 + dist/esm/models/OrderSupplyStateEnum.d.ts | 47 + dist/esm/models/OrderSupplyStateEnum.js | 63 + .../ParameterAutoStopActionReasonEnum.d.ts | 31 + .../ParameterAutoStopActionReasonEnum.js | 47 + dist/esm/models/ParameterDiscountLevels.d.ts | 37 + dist/esm/models/ParameterDiscountLevels.js | 40 + dist/esm/models/ParameterPickedSegment.d.ts | 32 + dist/esm/models/ParameterPickedSegment.js | 39 + dist/esm/models/PickedSegmentSegment.d.ts | 50 + dist/esm/models/PickedSegmentSegment.js | 45 + .../models/PickedSegmentSegmentTypeEnum.d.ts | 29 + .../models/PickedSegmentSegmentTypeEnum.js | 45 + .../PointDeliveryMethodCoordinates.d.ts | 37 + .../models/PointDeliveryMethodCoordinates.js | 40 + .../esm/models/PolygonBindRequestpolygon.d.ts | 37 + dist/esm/models/PolygonBindRequestpolygon.js | 44 + .../models/PolygonBindRequestwhLocation.d.ts | 37 + .../models/PolygonBindRequestwhLocation.js | 44 + .../models/PolygonListResponsePolygon.d.ts | 43 + dist/esm/models/PolygonListResponsePolygon.js | 42 + .../models/Polygonv1PolygonBindRequest.d.ts | 45 + .../esm/models/Polygonv1PolygonBindRequest.js | 50 + .../models/Polygonv1PolygonCreateRequest.d.ts | 32 + .../models/Polygonv1PolygonCreateRequest.js | 40 + .../Polygonv1PolygonCreateResponse.d.ts | 31 + .../models/Polygonv1PolygonCreateResponse.js | 38 + .../esm/models/PostingAdditionalDataItem.d.ts | 37 + dist/esm/models/PostingAdditionalDataItem.js | 40 + dist/esm/models/PostingBooleanResponse.d.ts | 31 + dist/esm/models/PostingBooleanResponse.js | 38 + .../PostingCancelFbsPostingRequest.d.ts | 43 + .../models/PostingCancelFbsPostingRequest.js | 46 + dist/esm/models/PostingCancelReason.d.ts | 53 + dist/esm/models/PostingCancelReason.js | 44 + .../PostingCancelReasonListResponse.d.ts | 32 + .../models/PostingCancelReasonListResponse.js | 39 + .../models/PostingCancelReasonRequest.d.ts | 31 + dist/esm/models/PostingCancelReasonRequest.js | 40 + .../models/PostingCancelReasonResponse.d.ts | 32 + .../esm/models/PostingCancelReasonResponse.js | 39 + dist/esm/models/PostingErrorTypeEnum.d.ts | 29 + dist/esm/models/PostingErrorTypeEnum.js | 45 + .../PostingExemplarInfoExemplarError.d.ts | 37 + .../PostingExemplarInfoExemplarError.js | 40 + ...ostingFBSActCheckStatusResponseStatus.d.ts | 80 + .../PostingFBSActCheckStatusResponseStatus.js | 50 + .../PostingFBSActCreateResponseAct.d.ts | 31 + .../models/PostingFBSActCreateResponseAct.js | 38 + .../models/PostingFboPostingWithParams.d.ts | 43 + .../esm/models/PostingFboPostingWithParams.js | 42 + .../PostingFbsPostingDeliveredRequest.d.ts | 31 + .../PostingFbsPostingDeliveredRequest.js | 40 + .../PostingFbsPostingDeliveringRequest.d.ts | 31 + .../PostingFbsPostingDeliveringRequest.js | 40 + .../PostingFbsPostingLastMileRequest.d.ts | 31 + .../PostingFbsPostingLastMileRequest.js | 40 + .../PostingFbsPostingMoveStatusResponse.d.ts | 32 + .../PostingFbsPostingMoveStatusResponse.js | 39 + ...ingFbsPostingTrackingNumberSetRequest.d.ts | 32 + ...stingFbsPostingTrackingNumberSetRequest.js | 41 + ...sTraceableSplitResponsePostingProduct.d.ts | 37 + ...FbsTraceableSplitResponsePostingProduct.js | 40 + .../models/PostingFinancialDataProduct.d.ts | 118 + .../esm/models/PostingFinancialDataProduct.js | 64 + .../models/PostingFinancialDataProductV2.d.ts | 106 + .../models/PostingFinancialDataProductV2.js | 60 + .../PostingGetFboPostingListRequest.d.ts | 69 + .../models/PostingGetFboPostingListRequest.js | 54 + ...PostingGetFboPostingListRequestFilter.d.ts | 49 + .../PostingGetFboPostingListRequestFilter.js | 46 + .../models/PostingGetFboPostingRequest.d.ts | 44 + .../esm/models/PostingGetFboPostingRequest.js | 45 + .../PostingGetFbsPostingByBarcodeRequest.d.ts | 32 + .../PostingGetFbsPostingByBarcodeRequest.js | 40 + dist/esm/models/PostingLegalInfo.d.ts | 43 + dist/esm/models/PostingLegalInfo.js | 42 + .../PostingMarksResponseIssuedExemplar.d.ts | 49 + .../PostingMarksResponseIssuedExemplar.js | 44 + ...PostingMarksResponseNonIssuedExemplar.d.ts | 43 + .../PostingMarksResponseNonIssuedExemplar.js | 42 + .../esm/models/PostingMovePostingRequest.d.ts | 31 + dist/esm/models/PostingMovePostingRequest.js | 40 + .../models/PostingPostingAnalyticsData.d.ts | 85 + .../esm/models/PostingPostingAnalyticsData.js | 52 + ...ostingPostingFBSActCheckStatusRequest.d.ts | 31 + .../PostingPostingFBSActCheckStatusRequest.js | 40 + ...stingPostingFBSActCheckStatusResponse.d.ts | 32 + ...PostingPostingFBSActCheckStatusResponse.js | 39 + .../PostingPostingFBSActCreateRequest.d.ts | 48 + .../PostingPostingFBSActCreateRequest.js | 44 + .../PostingPostingFBSActCreateResponse.d.ts | 32 + .../PostingPostingFBSActCreateResponse.js | 39 + ...ostingFBSActGetContainerLabelsRequest.d.ts | 31 + ...gPostingFBSActGetContainerLabelsRequest.js | 40 + ...stingFBSActGetContainerLabelsResponse.d.ts | 43 + ...PostingFBSActGetContainerLabelsResponse.js | 42 + .../PostingPostingFBSGetActRequest.d.ts | 31 + .../models/PostingPostingFBSGetActRequest.js | 40 + .../PostingPostingFBSGetActResponse.d.ts | 43 + .../models/PostingPostingFBSGetActResponse.js | 42 + .../PostingPostingFBSPackageLabelRequest.d.ts | 31 + .../PostingPostingFBSPackageLabelRequest.js | 40 + ...PostingPostingFBSPackageLabelResponse.d.ts | 43 + .../PostingPostingFBSPackageLabelResponse.js | 42 + .../models/PostingPostingFinancialData.d.ts | 44 + .../esm/models/PostingPostingFinancialData.js | 43 + dist/esm/models/PostingPostingProduct.d.ts | 71 + dist/esm/models/PostingPostingProduct.js | 48 + .../PostingPostingProductCancelRequest.d.ts | 50 + .../PostingPostingProductCancelRequest.js | 53 + .../PostingPostingProductCancelResponse.d.ts | 31 + .../PostingPostingProductCancelResponse.js | 38 + .../PostingProductCancelRequestItem.d.ts | 37 + .../models/PostingProductCancelRequestItem.js | 44 + .../models/PostingV1GetFbpPostingRequest.d.ts | 31 + .../models/PostingV1GetFbpPostingRequest.js | 40 + .../PostingV1GetFbpPostingResponse.d.ts | 32 + .../models/PostingV1GetFbpPostingResponse.js | 39 + ...PostingV1GetFbpPostingResponsePosting.d.ts | 101 + .../PostingV1GetFbpPostingResponsePosting.js | 64 + ...bpPostingResponsePostingAnalyticsData.d.ts | 61 + ...tFbpPostingResponsePostingAnalyticsData.js | 48 + ...FbpPostingResponsePostingCancellation.d.ts | 49 + ...etFbpPostingResponsePostingCancellation.js | 44 + ...bpPostingResponsePostingFinancialData.d.ts | 50 + ...tFbpPostingResponsePostingFinancialData.js | 45 + ...gResponsePostingFinancialDataProducts.d.ts | 97 + ...ingResponsePostingFinancialDataProducts.js | 64 + ...sePostingFinancialDataProductsActions.d.ts | 67 + ...onsePostingFinancialDataProductsActions.js | 50 + ...inancialDataProductsPostingCommission.d.ts | 43 + ...gFinancialDataProductsPostingCommission.js | 42 + ...FinancialDataProductsReturnCommission.d.ts | 43 + ...ngFinancialDataProductsReturnCommission.js | 42 + ...1GetFbpPostingResponsePostingProducts.d.ts | 69 + ...gV1GetFbpPostingResponsePostingProducts.js | 51 + .../PostingV1PostingFbpListRequest.d.ts | 60 + .../models/PostingV1PostingFbpListRequest.js | 48 + .../PostingV1PostingFbpListRequestFilter.d.ts | 61 + .../PostingV1PostingFbpListRequestFilter.js | 48 + ...ingV1PostingFbpListRequestSortDirEnum.d.ts | 27 + ...stingV1PostingFbpListRequestSortDirEnum.js | 43 + .../PostingV1PostingFbpListResponse.d.ts | 38 + .../models/PostingV1PostingFbpListResponse.js | 41 + ...stingV1PostingFbpListResponsePostings.d.ts | 81 + ...PostingV1PostingFbpListResponsePostings.js | 56 + ...gFbpListResponsePostingsFinancialData.d.ts | 50 + ...ingFbpListResponsePostingsFinancialData.js | 45 + ...ResponsePostingsFinancialDataProducts.d.ts | 88 + ...stResponsePostingsFinancialDataProducts.js | 59 + ...ePostingsFinancialDataProductsActions.d.ts | 68 + ...nsePostingsFinancialDataProductsActions.js | 50 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 42 + ...FinancialDataProductsReturnCommission.d.ts | 43 + ...gsFinancialDataProductsReturnCommission.js | 42 + ...ostingFbpListResponsePostingsProducts.d.ts | 70 + ...1PostingFbpListResponsePostingsProducts.js | 53 + ...ostingV2FboSinglePostingExternalOrder.d.ts | 38 + .../PostingV2FboSinglePostingExternalOrder.js | 40 + .../PostingV2PostingDigitalListRequest.d.ts | 58 + .../PostingV2PostingDigitalListRequest.js | 49 + ...tingV2PostingDigitalListRequestFilter.d.ts | 49 + ...ostingV2PostingDigitalListRequestFilter.js | 44 + ...2PostingDigitalListRequestSortDirEnum.d.ts | 27 + ...gV2PostingDigitalListRequestSortDirEnum.js | 43 + ...ostingV2PostingDigitalListRequestWith.d.ts | 46 + .../PostingV2PostingDigitalListRequestWith.js | 42 + .../PostingV2PostingDigitalListResponse.d.ts | 45 + .../PostingV2PostingDigitalListResponse.js | 43 + ...gV2PostingDigitalListResponsePostings.d.ts | 125 + ...ingV2PostingDigitalListResponsePostings.js | 73 + ...talListResponsePostingsAdditionalData.d.ts | 37 + ...gitalListResponsePostingsAdditionalData.js | 40 + ...italListResponsePostingsAnalyticsData.d.ts | 85 + ...igitalListResponsePostingsAnalyticsData.js | 52 + ...gitalListResponsePostingsCancellation.d.ts | 50 + ...DigitalListResponsePostingsCancellation.js | 40 + ...italListResponsePostingsExternalOrder.d.ts | 38 + ...igitalListResponsePostingsExternalOrder.js | 40 + ...italListResponsePostingsFinancialData.d.ts | 44 + ...igitalListResponsePostingsFinancialData.js | 43 + ...ResponsePostingsFinancialDataProducts.d.ts | 74 + ...stResponsePostingsFinancialDataProducts.js | 53 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 42 + ...gDigitalListResponsePostingsLegalInfo.d.ts | 43 + ...ingDigitalListResponsePostingsLegalInfo.js | 42 + ...ngDigitalListResponsePostingsProducts.d.ts | 62 + ...tingDigitalListResponsePostingsProducts.js | 49 + ...ingV3FbsPostingContainerCargoTypeEnum.d.ts | 27 + ...stingV3FbsPostingContainerCargoTypeEnum.js | 43 + ...ostingV3FbsPostingDetailExternalOrder.d.ts | 38 + .../PostingV3FbsPostingDetailExternalOrder.js | 40 + ...ostingV3FbsPostingDetailSortingCenter.d.ts | 39 + .../PostingV3FbsPostingDetailSortingCenter.js | 40 + .../PostingV3FbsPostingSortingCenter.d.ts | 39 + .../PostingV3FbsPostingSortingCenter.js | 40 + .../PostingV3PostingFboListRequest.d.ts | 65 + .../models/PostingV3PostingFboListRequest.js | 51 + .../PostingV3PostingFboListRequestFilter.d.ts | 61 + .../PostingV3PostingFboListRequestFilter.js | 46 + ...ingV3PostingFboListRequestSortDirEnum.d.ts | 27 + ...stingV3PostingFboListRequestSortDirEnum.js | 43 + .../PostingV3PostingFboListRequestWith.d.ts | 46 + .../PostingV3PostingFboListRequestWith.js | 42 + .../PostingV3PostingFboListResponse.d.ts | 45 + .../models/PostingV3PostingFboListResponse.js | 43 + ...stingV3PostingFboListResponsePostings.d.ts | 141 ++ ...PostingV3PostingFboListResponsePostings.js | 73 + ...FboListResponsePostingsAdditionalData.d.ts | 37 + ...ngFboListResponsePostingsAdditionalData.js | 40 + ...gFboListResponsePostingsAnalyticsData.d.ts | 91 + ...ingFboListResponsePostingsAnalyticsData.js | 54 + ...ngFboListResponsePostingsCancellation.d.ts | 56 + ...tingFboListResponsePostingsCancellation.js | 42 + ...gFboListResponsePostingsExternalOrder.d.ts | 38 + ...ingFboListResponsePostingsExternalOrder.js | 40 + ...gFboListResponsePostingsFinancialData.d.ts | 44 + ...ingFboListResponsePostingsFinancialData.js | 43 + ...ResponsePostingsFinancialDataProducts.d.ts | 74 + ...stResponsePostingsFinancialDataProducts.js | 53 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 42 + ...stingFboListResponsePostingsLegalInfo.d.ts | 43 + ...PostingFboListResponsePostingsLegalInfo.js | 42 + ...ostingFboListResponsePostingsProducts.d.ts | 71 + ...3PostingFboListResponsePostingsProducts.js | 51 + .../PostingV4PostingFbsListRequest.d.ts | 65 + .../models/PostingV4PostingFbsListRequest.js | 55 + .../PostingV4PostingFbsListRequestFilter.d.ts | 120 + .../PostingV4PostingFbsListRequestFilter.js | 63 + ...istRequestFilterLastChangedStatusDate.d.ts | 37 + ...sListRequestFilterLastChangedStatusDate.js | 40 + ...ingV4PostingFbsListRequestSortDirEnum.d.ts | 27 + ...stingV4PostingFbsListRequestSortDirEnum.js | 43 + .../PostingV4PostingFbsListRequestWith.d.ts | 53 + .../PostingV4PostingFbsListRequestWith.js | 44 + .../PostingV4PostingFbsListResponse.d.ts | 45 + .../models/PostingV4PostingFbsListResponse.js | 43 + ...stingV4PostingFbsListResponsePostings.d.ts | 415 ++++ ...PostingV4PostingFbsListResponsePostings.js | 140 ++ ...stingFbsListResponsePostingsAddressee.d.ts | 31 + ...PostingFbsListResponsePostingsAddressee.js | 38 + ...gFbsListResponsePostingsAnalyticsData.d.ts | 121 + ...ingFbsListResponsePostingsAnalyticsData.js | 64 + ...ostingFbsListResponsePostingsBarcodes.d.ts | 37 + ...4PostingFbsListResponsePostingsBarcodes.js | 40 + ...ngFbsListResponsePostingsCancellation.d.ts | 76 + ...tingFbsListResponsePostingsCancellation.js | 48 + ...stingFbsListResponsePostingsContainer.d.ts | 50 + ...PostingFbsListResponsePostingsContainer.js | 45 + ...ostingFbsListResponsePostingsCustomer.d.ts | 56 + ...4PostingFbsListResponsePostingsCustomer.js | 47 + ...bsListResponsePostingsCustomerAddress.d.ts | 91 + ...gFbsListResponsePostingsCustomerAddress.js | 58 + ...FbsListResponsePostingsDeliveryMethod.d.ts | 61 + ...ngFbsListResponsePostingsDeliveryMethod.js | 48 + ...gFbsListResponsePostingsExternalOrder.d.ts | 38 + ...ingFbsListResponsePostingsExternalOrder.js | 40 + ...gFbsListResponsePostingsFinancialData.d.ts | 44 + ...ingFbsListResponsePostingsFinancialData.js | 43 + ...ResponsePostingsFinancialDataProducts.d.ts | 87 + ...stResponsePostingsFinancialDataProducts.js | 58 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 42 + ...stingFbsListResponsePostingsLegalInfo.d.ts | 43 + ...PostingFbsListResponsePostingsLegalInfo.js | 42 + ...ostingFbsListResponsePostingsOptional.d.ts | 31 + ...4PostingFbsListResponsePostingsOptional.js | 38 + ...ostingFbsListResponsePostingsProducts.d.ts | 90 + ...4PostingFbsListResponsePostingsProducts.js | 57 + ...ngFbsListResponsePostingsRequirements.d.ts | 98 + ...tingFbsListResponsePostingsRequirements.js | 52 + ...gFbsListResponsePostingsSortingCenter.d.ts | 39 + ...ingFbsListResponsePostingsSortingCenter.js | 40 + ...gFbsListResponsePostingsTariffication.d.ts | 83 + ...ingFbsListResponsePostingsTariffication.js | 58 + ...ListResponsePostingsTarifficationStep.d.ts | 57 + ...bsListResponsePostingsTarifficationStep.js | 48 + ...ingV4PostingFbsUnfulfilledListRequest.d.ts | 65 + ...stingV4PostingFbsUnfulfilledListRequest.js | 51 + ...ostingFbsUnfulfilledListRequestFilter.d.ts | 99 + ...4PostingFbsUnfulfilledListRequestFilter.js | 55 + ...istRequestFilterLastChangedStatusDate.d.ts | 37 + ...dListRequestFilterLastChangedStatusDate.js | 40 + ...gFbsUnfulfilledListRequestSortDirEnum.d.ts | 27 + ...ingFbsUnfulfilledListRequestSortDirEnum.js | 43 + ...4PostingFbsUnfulfilledListRequestWith.d.ts | 53 + ...gV4PostingFbsUnfulfilledListRequestWith.js | 44 + ...ngV4PostingFbsUnfulfilledListResponse.d.ts | 51 + ...tingV4PostingFbsUnfulfilledListResponse.js | 45 + ...ingFbsUnfulfilledListResponsePostings.d.ts | 415 ++++ ...stingFbsUnfulfilledListResponsePostings.js | 140 ++ ...ulfilledListResponsePostingsAddressee.d.ts | 31 + ...nfulfilledListResponsePostingsAddressee.js | 38 + ...lledListResponsePostingsAnalyticsData.d.ts | 121 + ...filledListResponsePostingsAnalyticsData.js | 64 + ...fulfilledListResponsePostingsBarcodes.d.ts | 37 + ...UnfulfilledListResponsePostingsBarcodes.js | 40 + ...illedListResponsePostingsCancellation.d.ts | 76 + ...lfilledListResponsePostingsCancellation.js | 48 + ...ulfilledListResponsePostingsContainer.d.ts | 50 + ...nfulfilledListResponsePostingsContainer.js | 45 + ...esponsePostingsContainerCargoTypeEnum.d.ts | 27 + ...tResponsePostingsContainerCargoTypeEnum.js | 43 + ...fulfilledListResponsePostingsCustomer.d.ts | 56 + ...UnfulfilledListResponsePostingsCustomer.js | 47 + ...edListResponsePostingsCustomerAddress.d.ts | 91 + ...lledListResponsePostingsCustomerAddress.js | 58 + ...ledListResponsePostingsDeliveryMethod.d.ts | 61 + ...illedListResponsePostingsDeliveryMethod.js | 48 + ...lledListResponsePostingsExternalOrder.d.ts | 38 + ...filledListResponsePostingsExternalOrder.js | 40 + ...lledListResponsePostingsFinancialData.d.ts | 44 + ...filledListResponsePostingsFinancialData.js | 43 + ...ResponsePostingsFinancialDataProducts.d.ts | 87 + ...stResponsePostingsFinancialDataProducts.js | 58 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 42 + ...ulfilledListResponsePostingsLegalInfo.d.ts | 43 + ...nfulfilledListResponsePostingsLegalInfo.js | 42 + ...fulfilledListResponsePostingsOptional.d.ts | 31 + ...UnfulfilledListResponsePostingsOptional.js | 38 + ...fulfilledListResponsePostingsProducts.d.ts | 90 + ...UnfulfilledListResponsePostingsProducts.js | 57 + ...illedListResponsePostingsRequirements.d.ts | 98 + ...lfilledListResponsePostingsRequirements.js | 52 + ...lledListResponsePostingsSortingCenter.d.ts | 39 + ...filledListResponsePostingsSortingCenter.js | 40 + ...lledListResponsePostingsTariffication.d.ts | 83 + ...filledListResponsePostingsTariffication.js | 58 + ...ListResponsePostingsTarifficationStep.d.ts | 57 + ...edListResponsePostingsTarifficationStep.js | 48 + dist/esm/models/PostinglistV3status.d.ts | 37 + dist/esm/models/PostinglistV3status.js | 40 + ...tingv1GetCarriageAvailableListRequest.d.ts | 37 + ...ostingv1GetCarriageAvailableListRequest.js | 42 + ...ingv1GetCarriageAvailableListResponse.d.ts | 32 + ...stingv1GetCarriageAvailableListResponse.js | 39 + .../models/Postingv3FbsPostingWithParams.d.ts | 55 + .../models/Postingv3FbsPostingWithParams.js | 46 + ...ostingv3FbsPostingWithParamsExamplars.d.ts | 68 + .../Postingv3FbsPostingWithParamsExamplars.js | 50 + .../Postingv3GetFbsPostingListRequest.d.ts | 63 + .../Postingv3GetFbsPostingListRequest.js | 54 + ...stingv3GetFbsPostingListRequestFilter.d.ts | 131 + ...Postingv3GetFbsPostingListRequestFilter.js | 63 + .../models/Postingv3GetFbsPostingRequest.d.ts | 38 + .../models/Postingv3GetFbsPostingRequest.js | 43 + ...v3GetFbsPostingUnfulfilledListRequest.d.ts | 63 + ...ngv3GetFbsPostingUnfulfilledListRequest.js | 54 + ...bsPostingUnfulfilledListRequestFilter.d.ts | 116 + ...tFbsPostingUnfulfilledListRequestFilter.js | 61 + ...3GetFbsPostingUnfulfilledListResponse.d.ts | 32 + ...gv3GetFbsPostingUnfulfilledListResponse.js | 39 + ...sPostingUnfulfilledListResponseResult.d.ts | 38 + ...FbsPostingUnfulfilledListResponseResult.js | 41 + ...stingv3PostingMultiBoxQtySetV3Request.d.ts | 37 + ...Postingv3PostingMultiBoxQtySetV3Request.js | 44 + ...tingv3PostingMultiBoxQtySetV3Response.d.ts | 32 + ...ostingv3PostingMultiBoxQtySetV3Response.js | 39 + ...PostingMultiBoxQtySetV3ResponseResult.d.ts | 34 + ...v3PostingMultiBoxQtySetV3ResponseResult.js | 38 + dist/esm/models/PremiumScoresScore.d.ts | 43 + dist/esm/models/PremiumScoresScore.js | 42 + dist/esm/models/PriceIndexesColorIndex.d.ts | 37 + dist/esm/models/PriceIndexesColorIndex.js | 53 + .../models/PriceIndexesIndexDataExternal.d.ts | 43 + .../models/PriceIndexesIndexDataExternal.js | 42 + .../esm/models/PriceIndexesIndexDataOzon.d.ts | 43 + dist/esm/models/PriceIndexesIndexDataOzon.js | 42 + .../esm/models/PriceIndexesIndexDataSelf.d.ts | 43 + dist/esm/models/PriceIndexesIndexDataSelf.js | 42 + .../models/PriceIndexesIndexExternalData.d.ts | 43 + .../models/PriceIndexesIndexExternalData.js | 42 + .../esm/models/PriceIndexesIndexOzonData.d.ts | 43 + dist/esm/models/PriceIndexesIndexOzonData.js | 42 + .../esm/models/PriceIndexesIndexSelfData.d.ts | 43 + dist/esm/models/PriceIndexesIndexSelfData.js | 42 + dist/esm/models/ProductBooleanResponse.d.ts | 31 + dist/esm/models/ProductBooleanResponse.js | 38 + ...ertificateProductsListResponseProduct.d.ts | 43 + ...tCertificateProductsListResponseProduct.js | 42 + .../ProductCertificateUnbindResponseItem.d.ts | 46 + .../ProductCertificateUnbindResponseItem.js | 42 + ...ertificationListResponseCertification.d.ts | 37 + ...tCertificationListResponseCertification.js | 40 + ...cationListResponseCertificationResult.d.ts | 38 + ...ficationListResponseCertificationResult.js | 41 + ...tificationListResponseCertificationv2.d.ts | 55 + ...ertificationListResponseCertificationv2.js | 46 + dist/esm/models/ProductCurrencyEnum.d.ts | 35 + dist/esm/models/ProductCurrencyEnum.js | 51 + dist/esm/models/ProductExemplar.d.ts | 68 + dist/esm/models/ProductExemplar.js | 51 + .../ProductGetImportProductsInfoRequest.d.ts | 31 + .../ProductGetImportProductsInfoRequest.js | 40 + .../ProductGetImportProductsInfoResponse.d.ts | 32 + .../ProductGetImportProductsInfoResponse.js | 39 + ...ctGetImportProductsInfoResponseResult.d.ts | 38 + ...ductGetImportProductsInfoResponseResult.js | 41 + ...ctAttributesV3ResponseDictionaryValue.d.ts | 37 + ...ductAttributesV3ResponseDictionaryValue.js | 40 + ...tProductAttributesV4ResponseAttribute.d.ts | 44 + ...GetProductAttributesV4ResponseAttribute.js | 43 + ...oductGetProductInfoDescriptionRequest.d.ts | 37 + ...ProductGetProductInfoDescriptionRequest.js | 40 + ...ductGetProductInfoDescriptionResponse.d.ts | 32 + ...roductGetProductInfoDescriptionResponse.js | 39 + ...ProductInfoDescriptionResponseProduct.d.ts | 49 + ...etProductInfoDescriptionResponseProduct.js | 44 + ...uctGetProductInfoPricesV5ResponseItem.d.ts | 80 + ...oductGetProductInfoPricesV5ResponseItem.js | 56 + .../ProductImportProductsBySKURequest.d.ts | 32 + .../ProductImportProductsBySKURequest.js | 39 + ...ProductImportProductsBySKURequestItem.d.ts | 90 + .../ProductImportProductsBySKURequestItem.js | 52 + .../ProductImportProductsBySKUResponse.d.ts | 32 + .../ProductImportProductsBySKUResponse.js | 39 + ...ductImportProductsBySKUResponseResult.d.ts | 37 + ...roductImportProductsBySKUResponseResult.js | 40 + .../ProductImportProductsPricesRequest.d.ts | 32 + .../ProductImportProductsPricesRequest.js | 39 + ...oductImportProductsPricesRequestPrice.d.ts | 205 ++ ...ProductImportProductsPricesRequestPrice.js | 88 + .../ProductImportProductsPricesResponse.d.ts | 32 + .../ProductImportProductsPricesResponse.js | 39 + ...ductImportProductsPricesResponseError.d.ts | 37 + ...roductImportProductsPricesResponseError.js | 40 + ...rtProductsPricesResponseProcessResult.d.ts | 50 + ...portProductsPricesResponseProcessResult.js | 45 + ...ductInfoWarehouseStocksResponseStocks.d.ts | 73 + ...roductInfoWarehouseStocksResponseStocks.js | 52 + ...WrongVolumeResponseWrongVolumeProduct.d.ts | 73 + ...foWrongVolumeResponseWrongVolumeProduct.js | 52 + .../ProductPlacementPlacementZoneEnum.d.ts | 41 + .../ProductPlacementPlacementZoneEnum.js | 57 + .../models/ProductProductArchiveRequest.d.ts | 31 + .../models/ProductProductArchiveRequest.js | 40 + ...uctCertificateAccordanceTypesResponse.d.ts | 32 + ...oductCertificateAccordanceTypesResponse.js | 39 + ...ertificateAccordanceTypesResponseType.d.ts | 37 + ...tCertificateAccordanceTypesResponseType.js | 40 + .../ProductProductCertificateBindRequest.d.ts | 44 + .../ProductProductCertificateBindRequest.js | 44 + ...roductProductCertificateTypesResponse.d.ts | 32 + .../ProductProductCertificateTypesResponse.js | 39 + ...ctProductCertificateTypesResponseType.d.ts | 37 + ...ductProductCertificateTypesResponseType.js | 40 + ...roductProductCertificationListRequest.d.ts | 37 + .../ProductProductCertificationListRequest.js | 40 + ...oductProductCertificationListResponse.d.ts | 32 + ...ProductProductCertificationListResponse.js | 39 + ...uctProductInfoPicturesResponsePicture.d.ts | 59 + ...oductProductInfoPicturesResponsePicture.js | 46 + .../ProductProductUnarchiveRequest.d.ts | 36 + .../models/ProductProductUnarchiveRequest.js | 40 + ...ductUpdateOfferIdRequestUpdateOfferId.d.ts | 38 + ...roductUpdateOfferIdRequestUpdateOfferId.js | 44 + ...roductInfoStocksByWarehouseFboRequest.d.ts | 49 + ...tProductInfoStocksByWarehouseFboRequest.js | 46 + ...oductInfoStocksByWarehouseFboResponse.d.ts | 45 + ...ProductInfoStocksByWarehouseFboResponse.js | 43 + ...foStocksByWarehouseFboResponseProduct.d.ts | 61 + ...InfoStocksByWarehouseFboResponseProduct.js | 48 + ...tPricesDetailsResponsePricePriceIndex.d.ts | 39 + ...uctPricesDetailsResponsePricePriceIndex.js | 42 + ...tailsResponsePricePriceIndexIndexData.d.ts | 44 + ...DetailsResponsePricePriceIndexIndexData.js | 43 + ...sResponsePricePriceIndexIndexDataSelf.d.ts | 44 + ...ilsResponsePricePriceIndexIndexDataSelf.js | 43 + ...ProductV1ProductVisibilityInfoRequest.d.ts | 31 + .../ProductV1ProductVisibilityInfoRequest.js | 38 + ...roductV1ProductVisibilityInfoResponse.d.ts | 32 + .../ProductV1ProductVisibilityInfoResponse.js | 39 + ...ctV1ProductVisibilityInfoResponseItem.d.ts | 38 + ...ductV1ProductVisibilityInfoResponseItem.js | 41 + ...foResponseItemShowcasesVisibilityEnum.d.ts | 33 + ...InfoResponseItemShowcasesVisibilityEnum.js | 49 + .../ProductV1ProductVisibilitySetRequest.d.ts | 32 + .../ProductV1ProductVisibilitySetRequest.js | 41 + ...ductVisibilitySetRequestItemPlacement.d.ts | 38 + ...roductVisibilitySetRequestItemPlacement.js | 45 + ...ySetRequestItemPlacementPlacementEnum.d.ts | 31 + ...itySetRequestItemPlacementPlacementEnum.js | 47 + ...ProductV1ProductVisibilitySetResponse.d.ts | 39 + .../ProductV1ProductVisibilitySetResponse.js | 42 + ...ctV1ProductVisibilitySetResponseItems.d.ts | 80 + ...ductV1ProductVisibilitySetResponseItems.js | 55 + ...oductVisibilitySetResponseItemsErrors.d.ts | 37 + ...ProductVisibilitySetResponseItemsErrors.js | 40 + ...ySetResponseItemsSelectPermissionEnum.d.ts | 29 + ...itySetResponseItemsSelectPermissionEnum.js | 45 + ...tResponseItemsSellerItemPlacementEnum.d.ts | 33 + ...SetResponseItemsSellerItemPlacementEnum.js | 49 + ...ponseItemsSellerItemPlacementListEnum.d.ts | 25 + ...esponseItemsSellerItemPlacementListEnum.js | 41 + ...tResponseItemsShowcasesVisibilityEnum.d.ts | 33 + ...SetResponseItemsShowcasesVisibilityEnum.js | 49 + ...ponseItemsShowcasesVisibilityListEnum.d.ts | 25 + ...esponseItemsShowcasesVisibilityListEnum.js | 41 + .../esm/models/ProductV1QuantInfoRequest.d.ts | 32 + dist/esm/models/ProductV1QuantInfoRequest.js | 40 + .../models/ProductV1QuantInfoResponse.d.ts | 32 + dist/esm/models/ProductV1QuantInfoResponse.js | 39 + ...ProductV1QuantInfoResponseResultItems.d.ts | 44 + .../ProductV1QuantInfoResponseResultItems.js | 43 + ...QuantInfoResponseResultItemsQuantInfo.d.ts | 32 + ...V1QuantInfoResponseResultItemsQuantInfo.js | 39 + ...nfoResponseResultItemsQuantInfoQuants.d.ts | 95 + ...tInfoResponseResultItemsQuantInfoQuants.js | 62 + ...tItemsQuantInfoQuantsBarcodesExtended.d.ts | 43 + ...ultItemsQuantInfoQuantsBarcodesExtended.js | 42 + ...eResultItemsQuantInfoQuantsDimensions.d.ts | 49 + ...nseResultItemsQuantInfoQuantsDimensions.js | 44 + ...ultItemsQuantInfoQuantsMarketingPrice.d.ts | 37 + ...esultItemsQuantInfoQuantsMarketingPrice.js | 40 + ...sponseResultItemsQuantInfoQuantsTexts.d.ts | 49 + ...ResponseResultItemsQuantInfoQuantsTexts.js | 44 + .../esm/models/ProductV1QuantListRequest.d.ts | 96 + dist/esm/models/ProductV1QuantListRequest.js | 72 + .../models/ProductV1QuantListResponse.d.ts | 44 + dist/esm/models/ProductV1QuantListResponse.js | 43 + .../ProductV1QuantListResponseProducts.d.ts | 44 + .../ProductV1QuantListResponseProducts.js | 43 + ...ductV1QuantListResponseProductsQuants.d.ts | 37 + ...roductV1QuantListResponseProductsQuants.js | 40 + ...GetUploadQuotaResponseOperationLimits.d.ts | 38 + ...V4GetUploadQuotaResponseOperationLimits.js | 41 + ...aResponseOperationLimitsLimitTypeEnum.d.ts | 27 + ...otaResponseOperationLimitsLimitTypeEnum.js | 43 + dist/esm/models/ProductsPostings.d.ts | 37 + dist/esm/models/ProductsPostings.js | 40 + ...roductInfoStocksByWarehouseFbsRequest.d.ts | 37 + ...tProductInfoStocksByWarehouseFbsRequest.js | 40 + ...oductInfoStocksByWarehouseFbsResponse.d.ts | 32 + ...ProductInfoStocksByWarehouseFbsResponse.js | 39 + ...nfoStocksByWarehouseFbsResponseResult.d.ts | 67 + ...tInfoStocksByWarehouseFbsResponseResult.js | 50 + ...Productv1ProductImportPicturesRequest.d.ts | 46 + .../Productv1ProductImportPicturesRequest.js | 44 + .../Productv1ProductInfoPicturesResponse.d.ts | 32 + .../Productv1ProductInfoPicturesResponse.js | 39 + ...ctv1ProductInfoPicturesResponseResult.d.ts | 32 + ...ductv1ProductInfoPicturesResponseResult.js | 39 + .../Productv2DeleteProductsRequest.d.ts | 32 + .../models/Productv2DeleteProductsRequest.js | 41 + .../Productv2DeleteProductsResponse.d.ts | 32 + .../models/Productv2DeleteProductsResponse.js | 39 + ...ductListRequestFilterFilterVisibility.d.ts | 77 + ...roductListRequestFilterFilterVisibility.js | 93 + .../Productv2ProductsStocksRequest.d.ts | 32 + .../models/Productv2ProductsStocksRequest.js | 41 + .../Productv2ProductsStocksRequestStock.d.ts | 49 + .../Productv2ProductsStocksRequestStock.js | 50 + .../Productv2ProductsStocksResponse.d.ts | 32 + .../models/Productv2ProductsStocksResponse.js | 39 + .../Productv2ProductsStocksResponseError.d.ts | 37 + .../Productv2ProductsStocksResponseError.js | 40 + ...Productv2ProductsStocksResponseResult.d.ts | 56 + .../Productv2ProductsStocksResponseResult.js | 47 + .../Productv3GetProductListRequest.d.ts | 47 + .../models/Productv3GetProductListRequest.js | 43 + .../Productv3GetProductListRequestFilter.d.ts | 50 + .../Productv3GetProductListRequestFilter.js | 45 + ...ductListRequestFilterFilterVisibility.d.ts | 77 + ...roductListRequestFilterFilterVisibility.js | 93 + .../Productv3GetProductListResponse.d.ts | 32 + .../models/Productv3GetProductListResponse.js | 39 + .../Productv3GetProductListResponseItem.d.ts | 74 + .../Productv3GetProductListResponseItem.js | 53 + ...ductv3GetProductListResponseItemQuant.d.ts | 37 + ...roductv3GetProductListResponseItemQuant.js | 40 + ...Productv3GetProductListResponseResult.d.ts | 47 + .../Productv3GetProductListResponseResult.js | 43 + dist/esm/models/Productv4Filter.d.ts | 50 + dist/esm/models/Productv4Filter.js | 45 + ...roductv4GetProductAttributesV4Request.d.ts | 67 + .../Productv4GetProductAttributesV4Request.js | 47 + ...oductv4GetProductAttributesV4Response.d.ts | 47 + ...Productv4GetProductAttributesV4Response.js | 43 + ...4GetProductAttributesV4ResponseResult.d.ts | 168 ++ ...tv4GetProductAttributesV4ResponseResult.js | 85 + dist/esm/models/Productv5Filter.d.ts | 44 + dist/esm/models/Productv5Filter.js | 43 + ...roductv5GetProductInfoPricesV5Request.d.ts | 44 + .../Productv5GetProductInfoPricesV5Request.js | 47 + ...oductv5GetProductInfoPricesV5Response.d.ts | 44 + ...Productv5GetProductInfoPricesV5Response.js | 43 + ...ductListRequestFilterFilterVisibility.d.ts | 77 + ...roductListRequestFilterFilterVisibility.js | 93 + dist/esm/models/ProtobufAny.d.ts | 37 + dist/esm/models/ProtobufAny.js | 40 + .../models/ProtobufAnyV2DeliveryCheckout.d.ts | 46 + .../models/ProtobufAnyV2DeliveryCheckout.js | 42 + ...onV1GetQuestionListRequestSortDirEnum.d.ts | 27 + ...tionV1GetQuestionListRequestSortDirEnum.js | 43 + ...stResponseAnswerStatusPublicationEnum.d.ts | 31 + ...ListResponseAnswerStatusPublicationEnum.js | 47 + dist/esm/models/RatingItemChange.d.ts | 48 + dist/esm/models/RatingItemChange.js | 40 + dist/esm/models/RatingStatusEnum.d.ts | 31 + dist/esm/models/RatingStatusEnum.js | 47 + .../models/RatingSummaryV1ResponseGroup.d.ts | 38 + .../models/RatingSummaryV1ResponseGroup.js | 41 + .../RatingSummaryV1ResponseLocalIndex.d.ts | 37 + .../RatingSummaryV1ResponseLocalIndex.js | 40 + dist/esm/models/RatingValue.d.ts | 50 + dist/esm/models/RatingValue.js | 45 + dist/esm/models/RatingValueCurrent.d.ts | 56 + dist/esm/models/RatingValueCurrent.js | 47 + dist/esm/models/RatingValuePast.d.ts | 56 + dist/esm/models/RatingValuePast.js | 47 + dist/esm/models/ReasonHumanText.d.ts | 31 + dist/esm/models/ReasonHumanText.js | 38 + .../ReceiptsSellerListResponseReceipt.d.ts | 81 + .../ReceiptsSellerListResponseReceipt.js | 56 + ...rListResponseReceiptOperationTypeEnum.d.ts | 27 + ...lerListResponseReceiptOperationTypeEnum.js | 43 + ...iptsSellerListResponseReceiptTypeEnum.d.ts | 29 + ...ceiptsSellerListResponseReceiptTypeEnum.js | 45 + dist/esm/models/RejectedItemsReasonEnum.d.ts | 47 + dist/esm/models/RejectedItemsReasonEnum.js | 63 + .../RejectedItemsRejectionReasonEnum.d.ts | 47 + .../RejectedItemsRejectionReasonEnum.js | 63 + .../esm/models/RejectedItemsRestrictions.d.ts | 48 + dist/esm/models/RejectedItemsRestrictions.js | 43 + .../models/RelatedPostingCancelReason.d.ts | 38 + dist/esm/models/RelatedPostingCancelReason.js | 41 + .../models/RelatedPostingCancelReasons.d.ts | 54 + .../esm/models/RelatedPostingCancelReasons.js | 42 + .../ReportCommonReportAdditionalDataItem.d.ts | 37 + .../ReportCommonReportAdditionalDataItem.js | 40 + ...ortCreateCompanyPostingsReportRequest.d.ts | 48 + ...eportCreateCompanyPostingsReportRequest.js | 46 + ...ateCompanyPostingsReportRequestFilter.d.ts | 107 + ...reateCompanyPostingsReportRequestFilter.js | 64 + ...ortCreateCompanyProductsReportRequest.d.ts | 59 + ...eportCreateCompanyProductsReportRequest.js | 47 + ...ompanyProductsReportRequestVisibility.d.ts | 43 + ...eCompanyProductsReportRequestVisibility.js | 59 + .../ReportCreateDiscountedResponse.d.ts | 31 + .../models/ReportCreateDiscountedResponse.js | 38 + .../models/ReportCreateReportResponse.d.ts | 32 + dist/esm/models/ReportCreateReportResponse.js | 39 + dist/esm/models/ReportListResponseResult.d.ts | 38 + dist/esm/models/ReportListResponseResult.js | 41 + ...tMarkedProductsSalesCreateRequestDate.d.ts | 37 + ...ortMarkedProductsSalesCreateRequestDate.js | 44 + dist/esm/models/ReportReport.d.ts | 105 + dist/esm/models/ReportReport.js | 55 + dist/esm/models/ReportReportInfoRequest.d.ts | 31 + dist/esm/models/ReportReportInfoRequest.js | 40 + dist/esm/models/ReportReportInfoResponse.d.ts | 32 + dist/esm/models/ReportReportInfoResponse.js | 39 + dist/esm/models/ReportReportListRequest.d.ts | 60 + dist/esm/models/ReportReportListRequest.js | 46 + dist/esm/models/ReportReportListResponse.d.ts | 32 + dist/esm/models/ReportReportListResponse.js | 39 + dist/esm/models/ReportReportinfo.d.ts | 105 + dist/esm/models/ReportReportinfo.js | 55 + ...inanceRealizationPostingReportRequest.d.ts | 37 + ...yFinanceRealizationPostingReportRequest.js | 44 + ...nanceRealizationPostingReportResponse.d.ts | 31 + ...FinanceRealizationPostingReportResponse.js | 38 + dist/esm/models/RestrictionsReasonEnum.d.ts | 25 + dist/esm/models/RestrictionsReasonEnum.js | 41 + dist/esm/models/ResultCargo.d.ts | 38 + dist/esm/models/ResultCargo.js | 41 + dist/esm/models/ResultData.d.ts | 39 + dist/esm/models/ResultData.js | 42 + .../ResultDropOffWarehouseTimeslots.d.ts | 44 + .../models/ResultDropOffWarehouseTimeslots.js | 43 + dist/esm/models/ResultError.d.ts | 40 + dist/esm/models/ResultError.js | 40 + dist/esm/models/ResultUnprintedPosting.d.ts | 37 + dist/esm/models/ResultUnprintedPosting.js | 40 + .../models/ReturnSettingCourierDetails.d.ts | 31 + .../esm/models/ReturnSettingCourierDetails.js | 38 + .../ReturnSettingTransportCompanyDetails.d.ts | 37 + .../ReturnSettingTransportCompanyDetails.js | 40 + ...eturnsCompanyFbsInfoRequestPagination.d.ts | 40 + .../ReturnsCompanyFbsInfoRequestPagination.js | 42 + ...nsCompanyFbsInfoResponseDropOffPoints.d.ts | 80 + ...urnsCompanyFbsInfoResponseDropOffPoints.js | 55 + ...ReturnsCompanyFbsInfoResponsePassInfo.d.ts | 37 + .../ReturnsCompanyFbsInfoResponsePassInfo.js | 40 + .../models/ReturnsRfbsGetResponseReturns.d.ts | 135 ++ .../models/ReturnsRfbsGetResponseReturns.js | 76 + ...turnsRfbsGetV2ResponseAvailableAction.d.ts | 37 + ...ReturnsRfbsGetV2ResponseAvailableAction.js | 40 + ...bsGetV2ResponseClientReturnMethodType.d.ts | 37 + ...RfbsGetV2ResponseClientReturnMethodType.js | 40 + ...turnsRfbsGetV2ResponseRejectionReason.d.ts | 49 + ...ReturnsRfbsGetV2ResponseRejectionReason.js | 44 + .../ReturnsRfbsGetV2ResponseReturnReason.d.ts | 43 + .../ReturnsRfbsGetV2ResponseReturnReason.js | 42 + .../ReturnsRfbsListResponseReturns.d.ts | 76 + .../models/ReturnsRfbsListResponseReturns.js | 54 + ...ingsUtilizationHistoryResponseHistory.d.ts | 43 + ...ttingsUtilizationHistoryResponseHistory.js | 42 + ...zationInfoResponseUtilizationSettings.d.ts | 39 + ...lizationInfoResponseUtilizationSettings.js | 42 + ...lizationUpdateRequestUtilizationPrice.d.ts | 38 + ...tilizationUpdateRequestUtilizationPrice.js | 42 + ...nUpdateRequestUtilizationPriceDefects.d.ts | 38 + ...ionUpdateRequestUtilizationPriceDefects.js | 42 + dist/esm/models/ReviewInfoResponsePhoto.d.ts | 43 + dist/esm/models/ReviewInfoResponsePhoto.js | 42 + dist/esm/models/ReviewInfoResponseVideo.d.ts | 55 + dist/esm/models/ReviewInfoResponseVideo.js | 46 + dist/esm/models/ReviewListResponseReview.d.ts | 98 + dist/esm/models/ReviewListResponseReview.js | 58 + .../ReviewV1CommentListRequestFilter.d.ts | 43 + .../ReviewV1CommentListRequestFilter.js | 42 + .../ReviewV2ReviewChangeStatusV2Request.d.ts | 38 + .../ReviewV2ReviewChangeStatusV2Request.js | 41 + ...ReviewChangeStatusV2RequestStatusEnum.d.ts | 29 + ...V2ReviewChangeStatusV2RequestStatusEnum.js | 45 + .../ReviewV2ReviewCommentDeleteV2Request.d.ts | 37 + .../ReviewV2ReviewCommentDeleteV2Request.js | 44 + .../models/ReviewV2ReviewCountV2Response.d.ts | 49 + .../models/ReviewV2ReviewCountV2Response.js | 44 + .../models/ReviewV2ReviewInfoV2Request.d.ts | 31 + .../esm/models/ReviewV2ReviewInfoV2Request.js | 40 + .../models/ReviewV2ReviewInfoV2Response.d.ts | 120 + .../models/ReviewV2ReviewInfoV2Response.js | 70 + ...V2ReviewInfoV2ResponseOrderStatusEnum.d.ts | 27 + ...ewV2ReviewInfoV2ResponseOrderStatusEnum.js | 43 + .../ReviewV2ReviewInfoV2ResponsePhoto.d.ts | 43 + .../ReviewV2ReviewInfoV2ResponsePhoto.js | 42 + ...eviewV2ReviewInfoV2ResponseStatusEnum.d.ts | 29 + .../ReviewV2ReviewInfoV2ResponseStatusEnum.js | 45 + .../ReviewV2ReviewInfoV2ResponseVideo.d.ts | 55 + .../ReviewV2ReviewInfoV2ResponseVideo.js | 46 + .../models/ReviewV2ReviewListV2Request.d.ts | 51 + .../esm/models/ReviewV2ReviewListV2Request.js | 48 + .../ReviewV2ReviewListV2RequestFilters.d.ts | 57 + .../ReviewV2ReviewListV2RequestFilters.js | 48 + ...ewListV2RequestFiltersOrderStatusEnum.d.ts | 29 + ...viewListV2RequestFiltersOrderStatusEnum.js | 45 + ...2ReviewListV2RequestFiltersStatusEnum.d.ts | 31 + ...wV2ReviewListV2RequestFiltersStatusEnum.js | 47 + ...eviewV2ReviewListV2RequestSortDirEnum.d.ts | 27 + .../ReviewV2ReviewListV2RequestSortDirEnum.js | 43 + .../models/ReviewV2ReviewListV2Response.d.ts | 45 + .../models/ReviewV2ReviewListV2Response.js | 43 + .../ReviewV2ReviewListV2ResponseReview.d.ts | 94 + .../ReviewV2ReviewListV2ResponseReview.js | 60 + ...ewListV2ResponseReviewOrderStatusEnum.d.ts | 27 + ...viewListV2ResponseReviewOrderStatusEnum.js | 43 + ...2ReviewListV2ResponseReviewStatusEnum.d.ts | 29 + ...wV2ReviewListV2ResponseReviewStatusEnum.js | 45 + .../esm/models/RolesByTokenResponseRoles.d.ts | 37 + dist/esm/models/RolesByTokenResponseRoles.js | 40 + dist/esm/models/RowItem.d.ts | 49 + dist/esm/models/RowItem.js | 44 + dist/esm/models/RowItemCommission.d.ts | 101 + dist/esm/models/RowItemCommission.js | 58 + dist/esm/models/RowItemCommissionReturn.d.ts | 97 + dist/esm/models/RowItemCommissionReturn.js | 58 + .../models/RowItemLegalEntityDocument.d.ts | 37 + dist/esm/models/RowItemLegalEntityDocument.js | 40 + dist/esm/models/RowItemOrder.d.ts | 37 + dist/esm/models/RowItemOrder.js | 40 + dist/esm/models/RpcStatus.d.ts | 44 + dist/esm/models/RpcStatus.js | 43 + .../RpcStatusV1FinanceRealizationPosting.d.ts | 50 + .../RpcStatusV1FinanceRealizationPosting.js | 43 + dist/esm/models/RpcStatusV1PolygonBind.d.ts | 51 + dist/esm/models/RpcStatusV1PolygonBind.js | 43 + dist/esm/models/RpcStatusV1PolygonCreate.d.ts | 50 + dist/esm/models/RpcStatusV1PolygonCreate.js | 43 + .../models/RpcStatusV2DeliveryCheckout.d.ts | 44 + .../esm/models/RpcStatusV2DeliveryCheckout.js | 43 + .../SearchAttributeValuesResponseValue.d.ts | 49 + .../SearchAttributeValuesResponseValue.js | 44 + .../SearchQueriesTextRequestSortBy.d.ts | 31 + .../models/SearchQueriesTextRequestSortBy.js | 47 + .../SearchQueriesTextRequestSortDir.d.ts | 27 + .../models/SearchQueriesTextRequestSortDir.js | 43 + ...ellerActionsListRequestActionTypeEnum.d.ts | 37 + .../SellerActionsListRequestActionTypeEnum.js | 53 + .../SellerActionsListRequestStatusEnum.d.ts | 31 + .../SellerActionsListRequestStatusEnum.js | 47 + .../SellerActionsListResponseAction.d.ts | 78 + .../models/SellerActionsListResponseAction.js | 53 + ...tRequestActionParametersDiscountLevel.d.ts | 37 + ...untRequestActionParametersDiscountLevel.js | 44 + .../SellerApiActivateProductV1Request.d.ts | 38 + .../SellerApiActivateProductV1Request.js | 45 + .../SellerApiGetSellerActionsV1Response.d.ts | 32 + .../SellerApiGetSellerActionsV1Response.js | 39 + .../SellerApiGetSellerProductV1Request.d.ts | 43 + .../SellerApiGetSellerProductV1Request.js | 44 + .../SellerApiGetSellerProductV1Response.d.ts | 32 + .../SellerApiGetSellerProductV1Response.js | 39 + ...erApiGetSellerProductV1ResponseResult.d.ts | 44 + ...llerApiGetSellerProductV1ResponseResult.js | 43 + dist/esm/models/SellerApiProduct.d.ts | 111 + dist/esm/models/SellerApiProduct.js | 64 + .../models/SellerApiProductIDsV1Request.d.ts | 37 + .../models/SellerApiProductIDsV1Request.js | 44 + dist/esm/models/SellerApiProductPrice.d.ts | 43 + dist/esm/models/SellerApiProductPrice.js | 46 + .../models/SellerApiProductV1Response.d.ts | 32 + dist/esm/models/SellerApiProductV1Response.js | 39 + .../SellerApiProductV1ResponseDeactivate.d.ts | 32 + .../SellerApiProductV1ResponseDeactivate.js | 39 + .../SellerApiProductV1ResponseProduct.d.ts | 37 + .../SellerApiProductV1ResponseProduct.js | 40 + ...ApiProductV1ResponseProductDeactivate.d.ts | 37 + ...erApiProductV1ResponseProductDeactivate.js | 40 + .../SellerApiProductV1ResponseResult.d.ts | 38 + .../SellerApiProductV1ResponseResult.js | 41 + ...rApiProductV1ResponseResultDeactivate.d.ts | 38 + ...lerApiProductV1ResponseResultDeactivate.js | 41 + .../esm/models/SellerInfoResponseCompany.d.ts | 82 + dist/esm/models/SellerInfoResponseCompany.js | 53 + dist/esm/models/SellerInfoResponseRating.d.ts | 65 + dist/esm/models/SellerInfoResponseRating.js | 52 + .../SellerInfoResponseRatingTypeEnum.d.ts | 37 + .../SellerInfoResponseRatingTypeEnum.js | 53 + .../SellerInfoResponseSubscription.d.ts | 39 + .../models/SellerInfoResponseSubscription.js | 41 + ...ellerInfoResponseSubscriptionTypeEnum.d.ts | 35 + .../SellerInfoResponseSubscriptionTypeEnum.js | 51 + ...sticsInfoResponseAvailableSchemasEnum.d.ts | 25 + ...gisticsInfoResponseAvailableSchemasEnum.js | 41 + .../SellerReturnsv1MoneyCommission.d.ts | 37 + .../models/SellerReturnsv1MoneyCommission.js | 40 + .../models/SellerReturnsv1MoneyProduct.d.ts | 37 + .../esm/models/SellerReturnsv1MoneyProduct.js | 40 + .../models/SellerReturnsv1MoneyStorage.d.ts | 37 + .../esm/models/SellerReturnsv1MoneyStorage.js | 40 + .../SellerReturnsv1MoneyUtilization.d.ts | 37 + .../models/SellerReturnsv1MoneyUtilization.js | 40 + ...SellerReturnsv1MoneyWithoutCommission.d.ts | 37 + .../SellerReturnsv1MoneyWithoutCommission.js | 40 + ...llerSellerAPIArrivalPassCreateRequest.d.ts | 38 + ...SellerSellerAPIArrivalPassCreateRequest.js | 45 + ...PIArrivalPassCreateRequestArrivalPass.d.ts | 56 + ...rAPIArrivalPassCreateRequestArrivalPass.js | 54 + ...lerSellerAPIArrivalPassCreateResponse.d.ts | 31 + ...ellerSellerAPIArrivalPassCreateResponse.js | 38 + ...llerSellerAPIArrivalPassDeleteRequest.d.ts | 37 + ...SellerSellerAPIArrivalPassDeleteRequest.js | 44 + ...llerSellerAPIArrivalPassUpdateRequest.d.ts | 38 + ...SellerSellerAPIArrivalPassUpdateRequest.js | 45 + ...PIArrivalPassUpdateRequestArrivalPass.d.ts | 62 + ...rAPIArrivalPassUpdateRequestArrivalPass.js | 58 + .../SellerServiceanalyticsDimension.d.ts | 34 + .../models/SellerServiceanalyticsDimension.js | 50 + .../esm/models/SetPostingsResponseResult.d.ts | 44 + dist/esm/models/SetPostingsResponseResult.js | 42 + dist/esm/models/SourceShipmentType.d.ts | 31 + dist/esm/models/SourceShipmentType.js | 47 + dist/esm/models/SplitDeliveryMethod.d.ts | 58 + dist/esm/models/SplitDeliveryMethod.js | 57 + dist/esm/models/SplitItem.d.ts | 50 + dist/esm/models/SplitItem.js | 51 + dist/esm/models/StatusEnum.d.ts | 29 + dist/esm/models/StatusEnum.js | 45 + dist/esm/models/StockShipmentType.d.ts | 29 + dist/esm/models/StockShipmentType.js | 45 + .../models/StocksImportRequestItemStock.d.ts | 37 + .../models/StocksImportRequestItemStock.js | 44 + .../StocksImportResponseItemStatus.d.ts | 57 + .../models/StocksImportResponseItemStatus.js | 47 + ...erAvailableWarehousesResponseCapacity.d.ts | 43 + ...lierAvailableWarehousesResponseCapacity.js | 42 + ...lierAvailableWarehousesResponseResult.d.ts | 39 + ...pplierAvailableWarehousesResponseResult.js | 42 + ...erAvailableWarehousesResponseSchedule.d.ts | 38 + ...lierAvailableWarehousesResponseSchedule.js | 41 + ...rAvailableWarehousesResponseWarehouse.d.ts | 37 + ...ierAvailableWarehousesResponseWarehouse.js | 40 + .../SupplyCancellationAllowability.d.ts | 47 + .../models/SupplyCancellationAllowability.js | 41 + dist/esm/models/SupplyCargoInfo.d.ts | 65 + dist/esm/models/SupplyCargoInfo.js | 52 + dist/esm/models/SupplyCargoInfoTypeEnum.d.ts | 29 + dist/esm/models/SupplyCargoInfoTypeEnum.js | 45 + .../models/SupplyCheckCargoesPresentRule.d.ts | 45 + .../models/SupplyCheckCargoesPresentRule.js | 43 + .../SupplyCheckEditDeadlineExpireRule.d.ts | 46 + .../SupplyCheckEditDeadlineExpireRule.js | 42 + .../SupplyCheckExpireDatePresentedRule.d.ts | 58 + .../SupplyCheckExpireDatePresentedRule.js | 46 + .../SupplyCheckIsValidDistributionRule.d.ts | 57 + .../SupplyCheckIsValidDistributionRule.js | 46 + ...yCheckPackageUnitWithDistributionRule.d.ts | 58 + ...plyCheckPackageUnitWithDistributionRule.js | 46 + .../models/SupplyCheckPlacementZoneRule.d.ts | 51 + .../models/SupplyCheckPlacementZoneRule.js | 44 + dist/esm/models/SupplyContent.d.ts | 55 + dist/esm/models/SupplyContent.js | 43 + dist/esm/models/SupplyETTN.d.ts | 46 + dist/esm/models/SupplyETTN.js | 42 + ...rCancelStatusResponseCancelOrderError.d.ts | 27 + ...derCancelStatusResponseCancelOrderError.js | 43 + ...ncelStatusResponseCancelSupplyResults.d.ts | 52 + ...CancelStatusResponseCancelSupplyResults.js | 43 + ...SupplyOrderCancelStatusResponseResult.d.ts | 39 + .../SupplyOrderCancelStatusResponseResult.js | 41 + ...ContentUpdateStatusResponseStatusEnum.d.ts | 31 + ...erContentUpdateStatusResponseStatusEnum.js | 47 + ...UpdateValidationResponseApprovedItems.d.ts | 91 + ...ntUpdateValidationResponseApprovedItems.js | 58 + ...ateValidationResponseEditingErrorEnum.d.ts | 36 + ...pdateValidationResponseEditingErrorEnum.js | 52 + ...UpdateValidationResponseRejectedItems.d.ts | 113 + ...ntUpdateValidationResponseRejectedItems.js | 58 + ...ValidationResponseValidatedAssortment.d.ts | 69 + ...teValidationResponseValidatedAssortment.js | 52 + ...plyOrderDetailsResponseOrderStateEnum.d.ts | 47 + ...upplyOrderDetailsResponseOrderStateEnum.js | 63 + .../SupplyOrderDetailsResponseOrderTags.d.ts | 59 + .../SupplyOrderDetailsResponseOrderTags.js | 46 + .../SupplyOrderDetailsResponseSupply.d.ts | 93 + .../SupplyOrderDetailsResponseSupply.js | 63 + ...pplyOrderDetailsResponseTimeslotValue.d.ts | 39 + ...SupplyOrderDetailsResponseTimeslotValue.js | 42 + .../SupplyOrderDetailsResponseVehicle.d.ts | 52 + .../SupplyOrderDetailsResponseVehicle.js | 44 + ...upplyOrderDetailsResponseVehicleValue.d.ts | 63 + .../SupplyOrderDetailsResponseVehicleValue.js | 48 + .../models/SupplyOrderGetResponseOrder.d.ts | 90 + .../esm/models/SupplyOrderGetResponseOrder.js | 61 + .../SupplyOrderGetResponseTimeslotTZ.d.ts | 39 + .../SupplyOrderGetResponseTimeslotTZ.js | 42 + .../models/SupplyOrderListRequestFilter.d.ts | 63 + .../models/SupplyOrderListRequestFilter.js | 48 + ...SupplyOrderListRequestFilterStateEnum.d.ts | 33 + .../SupplyOrderListRequestFilterStateEnum.js | 49 + .../SupplyOrderListRequestSortByEnum.d.ts | 31 + .../SupplyOrderListRequestSortByEnum.js | 47 + .../SupplyOrderListRequestSortDirEnum.d.ts | 27 + .../SupplyOrderListRequestSortDirEnum.js | 43 + ...plyOrderV1SupplyOrderActAcceptRequest.d.ts | 31 + ...upplyOrderV1SupplyOrderActAcceptRequest.js | 40 + ...lyOrderV1SupplyOrderActAcceptResponse.d.ts | 42 + ...pplyOrderV1SupplyOrderActAcceptResponse.js | 41 + ...rderActAcceptResponseErrorReasonsEnum.d.ts | 25 + ...yOrderActAcceptResponseErrorReasonsEnum.js | 41 + ...erV1SupplyOrderActAcceptStatusRequest.d.ts | 31 + ...rderV1SupplyOrderActAcceptStatusRequest.js | 40 + ...rV1SupplyOrderActAcceptStatusResponse.d.ts | 38 + ...derV1SupplyOrderActAcceptStatusResponse.js | 41 + ...rderActAcceptStatusResponseStatusEnum.d.ts | 29 + ...yOrderActAcceptStatusResponseStatusEnum.js | 45 + ...rderV1SupplyOrderActProductGetRequest.d.ts | 31 + ...yOrderV1SupplyOrderActProductGetRequest.js | 40 + ...derV1SupplyOrderActProductGetResponse.d.ts | 45 + ...OrderV1SupplyOrderActProductGetResponse.js | 44 + ...OrderActProductGetResponseSkusDefects.d.ts | 37 + ...lyOrderActProductGetResponseSkusDefects.js | 40 + ...yOrderActProductGetResponseSupplyActs.d.ts | 51 + ...plyOrderActProductGetResponseSupplyActs.js | 46 + ...rActProductGetResponseSupplyActsItems.d.ts | 64 + ...derActProductGetResponseSupplyActsItems.js | 51 + ...ResponseSupplyActsItemsApprovedAmount.d.ts | 46 + ...etResponseSupplyActsItemsApprovedAmount.js | 45 + ...tGetResponseSupplyActsItemsFactAmount.d.ts | 46 + ...uctGetResponseSupplyActsItemsFactAmount.js | 45 + ...ductGetResponseSupplyActsItemsSkuInfo.d.ts | 68 + ...roductGetResponseSupplyActsItemsSkuInfo.js | 51 + ...tProductGetResponseSupplyActsTypeEnum.d.ts | 33 + ...ActProductGetResponseSupplyActsTypeEnum.js | 49 + ...rderV1SupplyOrderActSummaryGetRequest.d.ts | 31 + ...yOrderV1SupplyOrderActSummaryGetRequest.js | 40 + ...derV1SupplyOrderActSummaryGetResponse.d.ts | 32 + ...OrderV1SupplyOrderActSummaryGetResponse.js | 39 + ...rderActSummaryGetResponseSuppliesActs.d.ts | 45 + ...yOrderActSummaryGetResponseSuppliesActs.js | 43 + ...maryGetResponseSuppliesActsSupplyActs.d.ts | 70 + ...ummaryGetResponseSuppliesActsSupplyActs.js | 53 + ...nseSuppliesActsSupplyActsActStateEnum.d.ts | 33 + ...ponseSuppliesActsSupplyActsActStateEnum.js | 49 + ...ResponseSuppliesActsSupplyActsSummary.d.ts | 69 + ...etResponseSuppliesActsSupplyActsSummary.js | 52 + ...esActsSupplyActsSummaryApprovedAmount.d.ts | 46 + ...liesActsSupplyActsSummaryApprovedAmount.js | 45 + ...ppliesActsSupplyActsSummaryFactAmount.d.ts | 46 + ...SuppliesActsSupplyActsSummaryFactAmount.js | 45 + ...esponseSuppliesActsSupplyActsTypeEnum.d.ts | 33 + ...tResponseSuppliesActsSupplyActsTypeEnum.js | 49 + ...OrderV2SupplyOrderTimeslotListRequest.d.ts | 31 + ...lyOrderV2SupplyOrderTimeslotListRequest.js | 40 + ...rderV2SupplyOrderTimeslotListResponse.d.ts | 46 + ...yOrderV2SupplyOrderTimeslotListResponse.js | 45 + ...rderTimeslotListResponseLimitExceeded.d.ts | 31 + ...yOrderTimeslotListResponseLimitExceeded.js | 38 + ...otListResponseTimeslotChangeForbidden.d.ts | 37 + ...slotListResponseTimeslotChangeForbidden.js | 39 + ...meslotChangeForbiddenErrorReasonsEnum.d.ts | 26 + ...TimeslotChangeForbiddenErrorReasonsEnum.js | 42 + ...rderTimeslotListResponseTimeslotsInfo.d.ts | 46 + ...yOrderTimeslotListResponseTimeslotsInfo.js | 45 + ...tListResponseTimeslotsInfoLimitations.d.ts | 38 + ...lotListResponseTimeslotsInfoLimitations.js | 40 + ...lotListResponseTimeslotsInfoTimeslots.d.ts | 37 + ...eslotListResponseTimeslotsInfoTimeslots.js | 40 + ...slotListResponseTimeslotsInfoTimezone.d.ts | 37 + ...meslotListResponseTimeslotsInfoTimezone.js | 40 + dist/esm/models/SupplyOverdueReasonEnum.d.ts | 35 + dist/esm/models/SupplyOverdueReasonEnum.js | 51 + dist/esm/models/SupplyStateEnum.d.ts | 47 + dist/esm/models/SupplyStateEnum.js | 63 + dist/esm/models/SupplyStorageWarehouse.d.ts | 50 + dist/esm/models/SupplyStorageWarehouse.js | 44 + dist/esm/models/SupplySupplyTags.d.ts | 74 + dist/esm/models/SupplySupplyTags.js | 50 + dist/esm/models/SupplyTags.d.ts | 67 + dist/esm/models/SupplyTags.js | 48 + dist/esm/models/TaskAutoModeratedInfo.d.ts | 49 + dist/esm/models/TaskAutoModeratedInfo.js | 44 + .../TimeslotCanNotSetTimeslotReasonEnum.d.ts | 28 + .../TimeslotCanNotSetTimeslotReasonEnum.js | 44 + ...meslotFromRangeTimeslotFilterTypeEnum.d.ts | 27 + ...TimeslotFromRangeTimeslotFilterTypeEnum.js | 43 + dist/esm/models/TimeslotTZTimeslot.d.ts | 37 + dist/esm/models/TimeslotTZTimeslot.js | 40 + dist/esm/models/TimeslotTZTimezoneInfo.d.ts | 37 + dist/esm/models/TimeslotTZTimezoneInfo.js | 40 + dist/esm/models/TimeslotValueTimeslot.d.ts | 37 + dist/esm/models/TimeslotValueTimeslot.js | 40 + dist/esm/models/TimetableWorkingHours.d.ts | 37 + dist/esm/models/TimetableWorkingHours.js | 40 + dist/esm/models/TypeTimeOfDay.d.ts | 49 + dist/esm/models/TypeTimeOfDay.js | 44 + ...ngCodesRequestPostingLineExemplarInfo.d.ts | 49 + ...tingCodesRequestPostingLineExemplarInfo.js | 50 + ...stingCodesResponsePostingExemplarInfo.d.ts | 50 + ...PostingCodesResponsePostingExemplarInfo.js | 45 + dist/esm/models/UtilizationDefectsMoney.d.ts | 37 + dist/esm/models/UtilizationDefectsMoney.js | 40 + dist/esm/models/UtilizationMoney.d.ts | 37 + dist/esm/models/UtilizationMoney.js | 40 + dist/esm/models/V1AddBarcodeRequest.d.ts | 32 + dist/esm/models/V1AddBarcodeRequest.js | 41 + dist/esm/models/V1AddBarcodeResponse.d.ts | 32 + dist/esm/models/V1AddBarcodeResponse.js | 39 + dist/esm/models/V1AddBarcodeResult.d.ts | 49 + dist/esm/models/V1AddBarcodeResult.js | 44 + .../esm/models/V1AddStrategyItemsRequest.d.ts | 37 + dist/esm/models/V1AddStrategyItemsRequest.js | 44 + .../models/V1AddStrategyItemsResponse.d.ts | 32 + dist/esm/models/V1AddStrategyItemsResponse.js | 39 + .../V1AddStrategyItemsResponseResult.d.ts | 38 + .../V1AddStrategyItemsResponseResult.js | 41 + .../V1AnalyticsManageStocksRequest.d.ts | 48 + .../models/V1AnalyticsManageStocksRequest.js | 42 + .../V1AnalyticsManageStocksRequestFilter.d.ts | 58 + .../V1AnalyticsManageStocksRequestFilter.js | 51 + .../V1AnalyticsManageStocksResponse.d.ts | 32 + .../models/V1AnalyticsManageStocksResponse.js | 39 + .../V1AnalyticsManageStocksResponseItem.d.ts | 73 + .../V1AnalyticsManageStocksResponseItem.js | 52 + ...AnalyticsProductQueriesDetailsRequest.d.ts | 75 + ...V1AnalyticsProductQueriesDetailsRequest.js | 62 + ...icsProductQueriesDetailsRequestSortBy.d.ts | 35 + ...yticsProductQueriesDetailsRequestSortBy.js | 51 + ...csProductQueriesDetailsRequestSortDir.d.ts | 27 + ...ticsProductQueriesDetailsRequestSortDir.js | 43 + ...nalyticsProductQueriesDetailsResponse.d.ts | 51 + ...1AnalyticsProductQueriesDetailsResponse.js | 46 + ...QueriesDetailsResponseAnalyticsPeriod.d.ts | 37 + ...ctQueriesDetailsResponseAnalyticsPeriod.js | 40 + .../V1AnalyticsProductQueriesRequest.d.ts | 69 + .../V1AnalyticsProductQueriesRequest.js | 58 + .../V1AnalyticsProductQueriesResponse.d.ts | 51 + .../V1AnalyticsProductQueriesResponse.js | 46 + ...V1AnalyticsProductQueriesResponseItem.d.ts | 85 + .../V1AnalyticsProductQueriesResponseItem.js | 56 + dist/esm/models/V1AnalyticsStocksRequest.d.ts | 155 ++ dist/esm/models/V1AnalyticsStocksRequest.js | 99 + .../esm/models/V1AnalyticsStocksResponse.d.ts | 32 + dist/esm/models/V1AnalyticsStocksResponse.js | 39 + .../models/V1AnalyticsStocksResponseItem.d.ts | 333 +++ .../models/V1AnalyticsStocksResponseItem.js | 165 ++ .../V1AnalyticsTurnoverStocksRequest.d.ts | 47 + .../V1AnalyticsTurnoverStocksRequest.js | 42 + .../V1AnalyticsTurnoverStocksResponse.d.ts | 32 + .../V1AnalyticsTurnoverStocksResponse.js | 39 + ...V1AnalyticsTurnoverStocksResponseItem.d.ts | 117 + .../V1AnalyticsTurnoverStocksResponseItem.js | 76 + ...V1ApproveDeclineDiscountTasksResponse.d.ts | 32 + .../V1ApproveDeclineDiscountTasksResponse.js | 39 + ...oveDeclineDiscountTasksResponseResult.d.ts | 44 + ...proveDeclineDiscountTasksResponseResult.js | 43 + .../models/V1ApproveDiscountTasksRequest.d.ts | 32 + .../models/V1ApproveDiscountTasksRequest.js | 41 + .../V1ApproveDiscountTasksRequestTask.d.ts | 55 + .../V1ApproveDiscountTasksRequestTask.js | 54 + dist/esm/models/V1ArchiveDeclineReason.d.ts | 56 + dist/esm/models/V1ArchiveDeclineReason.js | 51 + dist/esm/models/V1ArchiveSkuSummary.d.ts | 43 + dist/esm/models/V1ArchiveSkuSummary.js | 42 + dist/esm/models/V1ArchiveStatusEnum.d.ts | 31 + dist/esm/models/V1ArchiveStatusEnum.js | 47 + .../models/V1ArchiveWarehouseFBSRequest.d.ts | 43 + .../models/V1ArchiveWarehouseFBSRequest.js | 46 + .../models/V1ArchiveWarehouseFBSResponse.d.ts | 31 + .../models/V1ArchiveWarehouseFBSResponse.js | 38 + .../V1AssemblyCarriagePostingListRequest.d.ts | 44 + .../V1AssemblyCarriagePostingListRequest.js | 47 + ...emblyCarriagePostingListRequestFilter.d.ts | 55 + ...ssemblyCarriagePostingListRequestFilter.js | 46 + ...V1AssemblyCarriagePostingListResponse.d.ts | 45 + .../V1AssemblyCarriagePostingListResponse.js | 43 + ...blyCarriagePostingListResponsePosting.d.ts | 51 + ...emblyCarriagePostingListResponsePosting.js | 45 + ...iagePostingListResponsePostingProduct.d.ts | 55 + ...rriagePostingListResponsePostingProduct.js | 46 + .../V1AssemblyCarriageProductListRequest.d.ts | 44 + .../V1AssemblyCarriageProductListRequest.js | 47 + ...emblyCarriageProductListRequestFilter.d.ts | 55 + ...ssemblyCarriageProductListRequestFilter.js | 46 + ...V1AssemblyCarriageProductListResponse.d.ts | 38 + .../V1AssemblyCarriageProductListResponse.js | 41 + ...blyCarriageProductListResponseProduct.d.ts | 61 + ...emblyCarriageProductListResponseProduct.js | 48 + .../V1AssemblyFbsPostingListRequest.d.ts | 51 + .../models/V1AssemblyFbsPostingListRequest.js | 52 + ...V1AssemblyFbsPostingListRequestFilter.d.ts | 49 + .../V1AssemblyFbsPostingListRequestFilter.js | 46 + ...emblyFbsPostingListRequestSortDirEnum.d.ts | 27 + ...ssemblyFbsPostingListRequestSortDirEnum.js | 43 + .../V1AssemblyFbsPostingListResponse.d.ts | 44 + .../V1AssemblyFbsPostingListResponse.js | 43 + ...AssemblyFbsPostingListResponsePosting.d.ts | 44 + ...V1AssemblyFbsPostingListResponsePosting.js | 43 + ...yFbsPostingListResponsePostingProduct.d.ts | 55 + ...blyFbsPostingListResponsePostingProduct.js | 46 + .../V1AssemblyFbsProductListRequest.d.ts | 51 + .../models/V1AssemblyFbsProductListRequest.js | 50 + ...V1AssemblyFbsProductListRequestFilter.d.ts | 49 + .../V1AssemblyFbsProductListRequestFilter.js | 46 + ...emblyFbsProductListRequestSortDirEnum.d.ts | 27 + ...ssemblyFbsProductListRequestSortDirEnum.js | 43 + .../V1AssemblyFbsProductListResponse.d.ts | 48 + .../V1AssemblyFbsProductListResponse.js | 43 + dist/esm/models/V1Barcode.d.ts | 37 + dist/esm/models/V1Barcode.js | 44 + dist/esm/models/V1BundleItemErrorEnum.d.ts | 36 + dist/esm/models/V1BundleItemErrorEnum.js | 52 + dist/esm/models/V1BundleItemShipmentType.d.ts | 29 + dist/esm/models/V1BundleItemShipmentType.js | 45 + .../V1CancelReasonListByOrderRequest.d.ts | 31 + .../V1CancelReasonListByOrderRequest.js | 40 + .../V1CancelReasonListByOrderResponse.d.ts | 32 + .../V1CancelReasonListByOrderResponse.js | 39 + ...CancelReasonListByOrderResponseReason.d.ts | 46 + ...V1CancelReasonListByOrderResponseReason.js | 40 + ...celReasonListByOrderResponseReasonFbo.d.ts | 37 + ...ancelReasonListByOrderResponseReasonFbo.js | 40 + .../V1CancelReasonListByPostingRequest.d.ts | 31 + .../V1CancelReasonListByPostingRequest.js | 40 + .../V1CancelReasonListByPostingResponse.d.ts | 32 + .../V1CancelReasonListByPostingResponse.js | 39 + ...ncelReasonListByPostingResponseReason.d.ts | 46 + ...CancelReasonListByPostingResponseReason.js | 40 + .../models/V1CancelReasonListResponse.d.ts | 32 + dist/esm/models/V1CancelReasonListResponse.js | 39 + .../models/V1CancelReasonListResponseFbo.d.ts | 32 + .../models/V1CancelReasonListResponseFbo.js | 39 + dist/esm/models/V1CancellationState.d.ts | 39 + dist/esm/models/V1CancellationState.js | 42 + .../esm/models/V1CancellationStateStatus.d.ts | 31 + dist/esm/models/V1CancellationStateStatus.js | 47 + dist/esm/models/V1CargoesCreateErrors.d.ts | 50 + dist/esm/models/V1CargoesCreateErrors.js | 42 + dist/esm/models/V1CargoesCreateRequest.d.ts | 45 + dist/esm/models/V1CargoesCreateRequest.js | 47 + .../models/V1CargoesCreateRequestCargo.d.ts | 38 + .../esm/models/V1CargoesCreateRequestCargo.js | 45 + .../V1CargoesCreateRequestCargoValue.d.ts | 39 + .../V1CargoesCreateRequestCargoValue.js | 44 + dist/esm/models/V1CargoesCreateResponse.d.ts | 38 + dist/esm/models/V1CargoesCreateResponse.js | 41 + dist/esm/models/V1CargoesDeleteRequest.d.ts | 40 + dist/esm/models/V1CargoesDeleteRequest.js | 44 + dist/esm/models/V1CargoesDeleteResponse.d.ts | 38 + dist/esm/models/V1CargoesDeleteResponse.js | 41 + .../models/V1CargoesDeleteResponseError.d.ts | 47 + .../models/V1CargoesDeleteResponseError.js | 42 + ...esDeleteResponseErrorCargoErrorReason.d.ts | 41 + ...goesDeleteResponseErrorCargoErrorReason.js | 41 + ...eErrorCargoErrorReasonErrorReasonEnum.d.ts | 23 + ...nseErrorCargoErrorReasonErrorReasonEnum.js | 39 + ...eteResponseErrorSupplyErrorReasonEnum.d.ts | 29 + ...eleteResponseErrorSupplyErrorReasonEnum.js | 45 + .../models/V1CargoesDeleteStatusRequest.d.ts | 31 + .../models/V1CargoesDeleteStatusRequest.js | 40 + .../models/V1CargoesDeleteStatusResponse.d.ts | 39 + .../models/V1CargoesDeleteStatusResponse.js | 42 + .../V1CargoesDeleteStatusResponseError.d.ts | 47 + .../V1CargoesDeleteStatusResponseError.js | 42 + ...teStatusResponseErrorCargoErrorReason.d.ts | 41 + ...leteStatusResponseErrorCargoErrorReason.js | 41 + ...eErrorCargoErrorReasonErrorReasonEnum.d.ts | 23 + ...nseErrorCargoErrorReasonErrorReasonEnum.js | 39 + ...tusResponseErrorSupplyErrorReasonEnum.d.ts | 29 + ...tatusResponseErrorSupplyErrorReasonEnum.js | 45 + dist/esm/models/V1CargoesGetRequest.d.ts | 31 + dist/esm/models/V1CargoesGetRequest.js | 40 + dist/esm/models/V1CargoesGetResponse.d.ts | 32 + dist/esm/models/V1CargoesGetResponse.js | 39 + .../models/V1CargoesLabelCreateErrors.d.ts | 40 + dist/esm/models/V1CargoesLabelCreateErrors.js | 39 + ...V1CargoesLabelCreateErrorsErrorReason.d.ts | 29 + .../V1CargoesLabelCreateErrorsErrorReason.js | 45 + .../models/V1CargoesLabelCreateRequest.d.ts | 38 + .../esm/models/V1CargoesLabelCreateRequest.js | 43 + .../V1CargoesLabelCreateRequestCargo.d.ts | 31 + .../V1CargoesLabelCreateRequestCargo.js | 38 + .../models/V1CargoesLabelCreateResponse.d.ts | 38 + .../models/V1CargoesLabelCreateResponse.js | 41 + dist/esm/models/V1CargoesLabelGetRequest.d.ts | 31 + dist/esm/models/V1CargoesLabelGetRequest.js | 40 + .../esm/models/V1CargoesLabelGetResponse.d.ts | 46 + dist/esm/models/V1CargoesLabelGetResponse.js | 45 + .../V1CargoesLabelGetResponseResult.d.ts | 38 + .../models/V1CargoesLabelGetResponseResult.js | 40 + .../V1CargoesLabelGetResponseStatus.d.ts | 29 + .../models/V1CargoesLabelGetResponseStatus.js | 45 + dist/esm/models/V1CargoesRulesGetRequest.d.ts | 34 + dist/esm/models/V1CargoesRulesGetRequest.js | 40 + .../esm/models/V1CargoesRulesGetResponse.d.ts | 32 + dist/esm/models/V1CargoesRulesGetResponse.js | 39 + .../V1CarriageActDiscrepancyPDFRequest.d.ts | 31 + .../V1CarriageActDiscrepancyPDFRequest.js | 40 + .../V1CarriageActDiscrepancyPDFResponse.d.ts | 43 + .../V1CarriageActDiscrepancyPDFResponse.js | 42 + dist/esm/models/V1CarriageApproveRequest.d.ts | 40 + dist/esm/models/V1CarriageApproveRequest.js | 42 + dist/esm/models/V1CarriageCancelRequest.d.ts | 31 + dist/esm/models/V1CarriageCancelRequest.js | 40 + dist/esm/models/V1CarriageCancelResponse.d.ts | 37 + dist/esm/models/V1CarriageCancelResponse.js | 40 + .../V1CarriageCourierContactGetRequest.d.ts | 31 + .../V1CarriageCourierContactGetRequest.js | 40 + .../V1CarriageCourierContactGetResponse.d.ts | 32 + .../V1CarriageCourierContactGetResponse.js | 39 + ...riageCourierContactGetResponseContact.d.ts | 55 + ...arriageCourierContactGetResponseContact.js | 46 + .../V1CarriageCourierContactSetRequest.d.ts | 49 + .../V1CarriageCourierContactSetRequest.js | 48 + dist/esm/models/V1CarriageCreateRequest.d.ts | 44 + dist/esm/models/V1CarriageCreateRequest.js | 42 + dist/esm/models/V1CarriageCreateResponse.d.ts | 31 + dist/esm/models/V1CarriageCreateResponse.js | 38 + .../models/V1CarriageDeliveryListRequest.d.ts | 37 + .../models/V1CarriageDeliveryListRequest.js | 40 + .../V1CarriageDeliveryListResponse.d.ts | 32 + .../models/V1CarriageDeliveryListResponse.js | 39 + .../V1CarriageDeliveryListResponseResult.d.ts | 260 ++ .../V1CarriageDeliveryListResponseResult.js | 114 + ...geDeliveryListResponseResultCarriages.d.ts | 49 + ...iageDeliveryListResponseResultCarriages.js | 44 + ...riageDeliveryListResponseResultErrors.d.ts | 43 + ...arriageDeliveryListResponseResultErrors.js | 42 + .../models/V1CarriageEttnStatusRequest.d.ts | 31 + .../esm/models/V1CarriageEttnStatusRequest.js | 40 + .../models/V1CarriageEttnStatusResponse.d.ts | 52 + .../models/V1CarriageEttnStatusResponse.js | 49 + dist/esm/models/V1Certificate.d.ts | 91 + dist/esm/models/V1Certificate.js | 58 + dist/esm/models/V1ClusterType.d.ts | 27 + dist/esm/models/V1ClusterType.js | 43 + dist/esm/models/V1CommentCreateRequest.d.ts | 52 + dist/esm/models/V1CommentCreateRequest.js | 48 + dist/esm/models/V1CommentCreateResponse.d.ts | 31 + dist/esm/models/V1CommentCreateResponse.js | 38 + dist/esm/models/V1CommentDeleteRequest.d.ts | 31 + dist/esm/models/V1CommentDeleteRequest.js | 40 + dist/esm/models/V1CommentListRequest.d.ts | 59 + dist/esm/models/V1CommentListRequest.js | 50 + dist/esm/models/V1CommentListResponse.d.ts | 38 + dist/esm/models/V1CommentListResponse.js | 41 + dist/esm/models/V1CommentSort.d.ts | 27 + dist/esm/models/V1CommentSort.js | 43 + dist/esm/models/V1Competitor.d.ts | 37 + dist/esm/models/V1Competitor.js | 44 + ...eateDocumentB2BSalesJSONReportRequest.d.ts | 31 + ...CreateDocumentB2BSalesJSONReportRequest.js | 40 + ...ateDocumentB2BSalesJSONReportResponse.d.ts | 51 + ...reateDocumentB2BSalesJSONReportResponse.js | 46 + ...V1CreateDocumentB2BSalesReportRequest.d.ts | 40 + .../V1CreateDocumentB2BSalesReportRequest.js | 42 + .../esm/models/V1CreateLabelBatchRequest.d.ts | 31 + dist/esm/models/V1CreateLabelBatchRequest.js | 40 + .../models/V1CreateLabelBatchResponse.d.ts | 32 + dist/esm/models/V1CreateLabelBatchResponse.js | 39 + .../V1CreateLabelBatchResponseResult.d.ts | 31 + .../V1CreateLabelBatchResponseResult.js | 38 + ...V1CreateMutualSettlementReportRequest.d.ts | 40 + .../V1CreateMutualSettlementReportRequest.js | 42 + ...reatePlacementByProductsReportRequest.d.ts | 40 + ...1CreatePlacementByProductsReportRequest.js | 44 + ...eatePlacementByProductsReportResponse.d.ts | 31 + ...CreatePlacementByProductsReportResponse.js | 38 + ...reatePlacementBySuppliesReportRequest.d.ts | 40 + ...1CreatePlacementBySuppliesReportRequest.js | 44 + ...eatePlacementBySuppliesReportResponse.d.ts | 31 + ...CreatePlacementBySuppliesReportResponse.js | 38 + .../V1CreatePricingStrategyRequest.d.ts | 38 + .../models/V1CreatePricingStrategyRequest.js | 45 + .../V1CreatePricingStrategyResponse.d.ts | 32 + .../models/V1CreatePricingStrategyResponse.js | 39 + ...V1CreatePricingStrategyResponseResult.d.ts | 31 + .../V1CreatePricingStrategyResponseResult.js | 38 + ...V1CreateStockByWarehouseReportRequest.d.ts | 42 + .../V1CreateStockByWarehouseReportRequest.js | 42 + dist/esm/models/V1CreateType.d.ts | 27 + dist/esm/models/V1CreateType.js | 43 + .../models/V1CreateWarehouseFBSRequest.d.ts | 105 + .../esm/models/V1CreateWarehouseFBSRequest.js | 76 + .../models/V1CreateWarehouseFBSResponse.d.ts | 31 + .../models/V1CreateWarehouseFBSResponse.js | 38 + dist/esm/models/V1DayOfWeek.d.ts | 39 + dist/esm/models/V1DayOfWeek.js | 55 + .../models/V1DeclineDiscountTasksRequest.d.ts | 32 + .../models/V1DeclineDiscountTasksRequest.js | 41 + .../V1DeclineDiscountTasksRequestTask.d.ts | 37 + .../V1DeclineDiscountTasksRequestTask.js | 42 + .../models/V1DeleteStrategyItemsResponse.d.ts | 32 + .../models/V1DeleteStrategyItemsResponse.js | 39 + .../V1DeleteStrategyItemsResponseResult.d.ts | 31 + .../V1DeleteStrategyItemsResponseResult.js | 38 + dist/esm/models/V1DeliveryCheckRequest.d.ts | 31 + dist/esm/models/V1DeliveryCheckRequest.js | 40 + dist/esm/models/V1DeliveryCheckResponse.d.ts | 32 + dist/esm/models/V1DeliveryCheckResponse.js | 38 + .../esm/models/V1DeliveryCheckoutRequest.d.ts | 52 + dist/esm/models/V1DeliveryCheckoutRequest.js | 47 + ...V1DeliveryCheckoutRequestDeliveryType.d.ts | 39 + .../V1DeliveryCheckoutRequestDeliveryType.js | 42 + .../models/V1DeliveryCheckoutRequestItem.d.ts | 43 + .../models/V1DeliveryCheckoutRequestItem.js | 42 + .../models/V1DeliveryCheckoutResponse.d.ts | 32 + dist/esm/models/V1DeliveryCheckoutResponse.js | 39 + .../V1DeliveryDetailsDirectDetails.d.ts | 46 + .../models/V1DeliveryDetailsDirectDetails.js | 45 + .../V1DeliveryDetailsPickUpDetails.d.ts | 55 + .../models/V1DeliveryDetailsPickUpDetails.js | 46 + dist/esm/models/V1DeliveryMapRequest.d.ts | 38 + dist/esm/models/V1DeliveryMapRequest.js | 41 + .../models/V1DeliveryMapRequestViewport.d.ts | 39 + .../models/V1DeliveryMapRequestViewport.js | 42 + dist/esm/models/V1DeliveryMapResponse.d.ts | 32 + dist/esm/models/V1DeliveryMapResponse.js | 39 + .../models/V1DeliveryPointInfoRequest.d.ts | 31 + dist/esm/models/V1DeliveryPointInfoRequest.js | 38 + .../models/V1DeliveryPointInfoResponse.d.ts | 32 + .../esm/models/V1DeliveryPointInfoResponse.js | 39 + .../V1DeliveryPointInfoResponsePoint.d.ts | 39 + .../V1DeliveryPointInfoResponsePoint.js | 41 + .../models/V1DeliveryPointListResponse.d.ts | 32 + .../esm/models/V1DeliveryPointListResponse.js | 39 + .../V1DeliveryPointListResponsePoint.d.ts | 38 + .../V1DeliveryPointListResponsePoint.js | 41 + dist/esm/models/V1DiscountTaskStatus.d.ts | 41 + dist/esm/models/V1DiscountTaskStatus.js | 57 + .../esm/models/V1DraftClusterListRequest.d.ts | 38 + dist/esm/models/V1DraftClusterListRequest.js | 43 + .../models/V1DraftClusterListResponse.d.ts | 32 + dist/esm/models/V1DraftClusterListResponse.js | 39 + .../V1DraftClusterListResponseCluster.d.ts | 67 + .../V1DraftClusterListResponseCluster.js | 54 + .../V1DraftClusterListResponseWarehouse.d.ts | 62 + .../V1DraftClusterListResponseWarehouse.js | 53 + .../models/V1DraftCreateCommonResponse.d.ts | 38 + .../esm/models/V1DraftCreateCommonResponse.js | 41 + .../models/V1DraftCrossdockCreateRequest.d.ts | 46 + .../models/V1DraftCrossdockCreateRequest.js | 51 + ...raftCrossdockCreateRequestClusterInfo.d.ts | 38 + ...1DraftCrossdockCreateRequestClusterInfo.js | 45 + ...CrossdockCreateRequestClusterInfoItem.d.ts | 37 + ...ftCrossdockCreateRequestClusterInfoItem.js | 44 + ...ossdockCreateRequestDeleteSkuModeEnum.d.ts | 29 + ...CrossdockCreateRequestDeleteSkuModeEnum.js | 45 + ...aftCrossdockCreateRequestDeliveryInfo.d.ts | 45 + ...DraftCrossdockCreateRequestDeliveryInfo.js | 46 + ...teRequestDeliveryInfoDropOffWarehouse.d.ts | 38 + ...eateRequestDeliveryInfoDropOffWarehouse.js | 45 + ...InfoDropOffWarehouseWarehouseTypeEnum.d.ts | 33 + ...ryInfoDropOffWarehouseWarehouseTypeEnum.js | 49 + ...dockCreateRequestDeliveryInfoTypeEnum.d.ts | 27 + ...ssdockCreateRequestDeliveryInfoTypeEnum.js | 43 + .../models/V1DraftDirectCreateRequest.d.ts | 39 + dist/esm/models/V1DraftDirectCreateRequest.js | 46 + ...V1DraftDirectCreateRequestClusterInfo.d.ts | 38 + .../V1DraftDirectCreateRequestClusterInfo.js | 45 + ...aftDirectCreateRequestClusterInfoItem.d.ts | 37 + ...DraftDirectCreateRequestClusterInfoItem.js | 44 + ...tDirectCreateRequestDeleteSkuModeEnum.d.ts | 29 + ...aftDirectCreateRequestDeleteSkuModeEnum.js | 45 + .../V1DraftGetWarehouseFboListRequest.d.ts | 41 + .../V1DraftGetWarehouseFboListRequest.js | 45 + .../V1DraftGetWarehouseFboListResponse.d.ts | 32 + .../V1DraftGetWarehouseFboListResponse.js | 39 + .../V1DraftMultiClusterCreateRequest.d.ts | 46 + .../V1DraftMultiClusterCreateRequest.js | 51 + ...tMultiClusterCreateRequestClusterInfo.d.ts | 38 + ...aftMultiClusterCreateRequestClusterInfo.js | 45 + ...tiClusterCreateRequestClusterInfoItem.d.ts | 37 + ...ultiClusterCreateRequestClusterInfoItem.js | 44 + ...ClusterCreateRequestDeleteSkuModeEnum.d.ts | 29 + ...tiClusterCreateRequestDeleteSkuModeEnum.js | 45 + ...MultiClusterCreateRequestDeliveryInfo.d.ts | 45 + ...ftMultiClusterCreateRequestDeliveryInfo.js | 46 + ...teRequestDeliveryInfoDropOffWarehouse.d.ts | 38 + ...eateRequestDeliveryInfoDropOffWarehouse.js | 45 + ...InfoDropOffWarehouseWarehouseTypeEnum.d.ts | 33 + ...ryInfoDropOffWarehouseWarehouseTypeEnum.js | 49 + ...sterCreateRequestDeliveryInfoTypeEnum.d.ts | 27 + ...lusterCreateRequestDeliveryInfoTypeEnum.js | 43 + dist/esm/models/V1DraftStatusEnum.d.ts | 31 + dist/esm/models/V1DraftStatusEnum.js | 47 + dist/esm/models/V1FbpArchiveGetRequest.d.ts | 31 + dist/esm/models/V1FbpArchiveGetRequest.js | 40 + dist/esm/models/V1FbpArchiveGetResponse.d.ts | 139 ++ dist/esm/models/V1FbpArchiveGetResponse.js | 76 + dist/esm/models/V1FbpArchiveListRequest.d.ts | 40 + dist/esm/models/V1FbpArchiveListRequest.js | 42 + dist/esm/models/V1FbpArchiveListResponse.d.ts | 45 + dist/esm/models/V1FbpArchiveListResponse.js | 43 + .../models/V1FbpArchiveListResponseItem.d.ts | 133 + .../models/V1FbpArchiveListResponseItem.js | 74 + .../V1FbpAvailableTimeslotListRequest.d.ts | 43 + .../V1FbpAvailableTimeslotListRequest.js | 48 + .../V1FbpAvailableTimeslotListResponse.d.ts | 57 + .../V1FbpAvailableTimeslotListResponse.js | 44 + ...eslotListResponseEmptyTimeslotsReason.d.ts | 33 + ...imeslotListResponseEmptyTimeslotsReason.js | 49 + .../esm/models/V1FbpCheckActStateRequest.d.ts | 31 + dist/esm/models/V1FbpCheckActStateRequest.js | 40 + .../models/V1FbpCheckActStateResponse.d.ts | 45 + dist/esm/models/V1FbpCheckActStateResponse.js | 44 + .../V1FbpCheckActStateResponseStatus.d.ts | 33 + .../V1FbpCheckActStateResponseStatus.js | 49 + ...V1FbpCheckConsignmentNoteStateRequest.d.ts | 37 + .../V1FbpCheckConsignmentNoteStateRequest.js | 44 + ...1FbpCheckConsignmentNoteStateResponse.d.ts | 44 + .../V1FbpCheckConsignmentNoteStateResponse.js | 43 + dist/esm/models/V1FbpCreateActRequest.d.ts | 31 + dist/esm/models/V1FbpCreateActRequest.js | 40 + dist/esm/models/V1FbpCreateActResponse.d.ts | 48 + dist/esm/models/V1FbpCreateActResponse.js | 43 + .../V1FbpCreateConsignmentNoteRequest.d.ts | 31 + .../V1FbpCreateConsignmentNoteRequest.js | 40 + .../V1FbpCreateConsignmentNoteResponse.d.ts | 31 + .../V1FbpCreateConsignmentNoteResponse.js | 38 + dist/esm/models/V1FbpCreateLabelRequest.d.ts | 31 + dist/esm/models/V1FbpCreateLabelRequest.js | 40 + dist/esm/models/V1FbpCreateLabelResponse.d.ts | 31 + dist/esm/models/V1FbpCreateLabelResponse.js | 38 + .../models/V1FbpDraftDirectCreateRequest.d.ts | 50 + .../models/V1FbpDraftDirectCreateRequest.js | 53 + ...DraftDirectCreateRequestDirectDetails.d.ts | 31 + ...bpDraftDirectCreateRequestDirectDetails.js | 40 + .../V1FbpDraftDirectCreateResponse.d.ts | 43 + .../models/V1FbpDraftDirectCreateResponse.js | 42 + .../models/V1FbpDraftDirectDeleteRequest.d.ts | 31 + .../models/V1FbpDraftDirectDeleteRequest.js | 40 + .../V1FbpDraftDirectDeleteResponse.d.ts | 38 + .../models/V1FbpDraftDirectDeleteResponse.js | 41 + .../V1FbpDraftDirectGetTimeslotRequest.d.ts | 49 + .../V1FbpDraftDirectGetTimeslotRequest.js | 52 + .../V1FbpDraftDirectGetTimeslotResponse.d.ts | 57 + .../V1FbpDraftDirectGetTimeslotResponse.js | 44 + ...tTimeslotResponseEmptyTimeslotsReason.d.ts | 33 + ...GetTimeslotResponseEmptyTimeslotsReason.js | 49 + ...raftDirectGetTimeslotResponseTimeslot.d.ts | 37 + ...pDraftDirectGetTimeslotResponseTimeslot.js | 40 + ...1FbpDraftDirectProductValidateRequest.d.ts | 38 + .../V1FbpDraftDirectProductValidateRequest.js | 45 + ...ftDirectProductValidateRequestSkuItem.d.ts | 37 + ...raftDirectProductValidateRequestSkuItem.js | 44 + ...FbpDraftDirectProductValidateResponse.d.ts | 51 + ...V1FbpDraftDirectProductValidateResponse.js | 46 + ...ctProductValidateResponseApprovedItem.d.ts | 67 + ...rectProductValidateResponseApprovedItem.js | 50 + ...ctProductValidateResponseRejectedItem.d.ts | 88 + ...rectProductValidateResponseRejectedItem.js | 53 + .../V1FbpDraftDirectRegistrateRequest.d.ts | 37 + .../V1FbpDraftDirectRegistrateRequest.js | 44 + .../V1FbpDraftDirectRegistrateResponse.d.ts | 44 + .../V1FbpDraftDirectRegistrateResponse.js | 43 + ...ctRegistrateResponseRegistrationError.d.ts | 39 + ...rectRegistrateResponseRegistrationError.js | 42 + ...eResponseRegistrationErrorBundleError.d.ts | 52 + ...ateResponseRegistrationErrorBundleError.js | 41 + ...1FbpDraftDirectSellerDlvCreateRequest.d.ts | 50 + .../V1FbpDraftDirectSellerDlvCreateRequest.js | 53 + ...ctSellerDlvCreateRequestDirectDetails.d.ts | 49 + ...rectSellerDlvCreateRequestDirectDetails.js | 52 + ...FbpDraftDirectSellerDlvCreateResponse.d.ts | 43 + ...V1FbpDraftDirectSellerDlvCreateResponse.js | 42 + .../V1FbpDraftDirectSellerDlvEditRequest.d.ts | 55 + .../V1FbpDraftDirectSellerDlvEditRequest.js | 56 + ...V1FbpDraftDirectSellerDlvEditResponse.d.ts | 45 + .../V1FbpDraftDirectSellerDlvEditResponse.js | 43 + .../V1FbpDraftDirectTimeslotEditRequest.d.ts | 43 + .../V1FbpDraftDirectTimeslotEditRequest.js | 48 + .../V1FbpDraftDirectTimeslotEditResponse.d.ts | 45 + .../V1FbpDraftDirectTimeslotEditResponse.js | 41 + ...imeslotEditResponseReserveFailureType.d.ts | 28 + ...tTimeslotEditResponseReserveFailureType.js | 44 + .../V1FbpDraftDirectTplDlvCreateRequest.d.ts | 50 + .../V1FbpDraftDirectTplDlvCreateRequest.js | 53 + ...irectTplDlvCreateRequestDirectDetails.d.ts | 43 + ...tDirectTplDlvCreateRequestDirectDetails.js | 48 + .../V1FbpDraftDirectTplDlvCreateResponse.d.ts | 43 + .../V1FbpDraftDirectTplDlvCreateResponse.js | 42 + .../V1FbpDraftDirectTplDlvEditRequest.d.ts | 49 + .../V1FbpDraftDirectTplDlvEditRequest.js | 52 + .../V1FbpDraftDirectTplDlvEditResponse.d.ts | 45 + .../V1FbpDraftDirectTplDlvEditResponse.js | 43 + .../V1FbpDraftDropOffCreateRequest.d.ts | 50 + .../models/V1FbpDraftDropOffCreateRequest.js | 53 + ...ftDropOffCreateRequestDeliveryDetails.d.ts | 43 + ...raftDropOffCreateRequestDeliveryDetails.js | 48 + .../V1FbpDraftDropOffCreateResponse.d.ts | 43 + .../models/V1FbpDraftDropOffCreateResponse.js | 42 + .../V1FbpDraftDropOffDeleteRequest.d.ts | 31 + .../models/V1FbpDraftDropOffDeleteRequest.js | 40 + .../V1FbpDraftDropOffDeleteResponse.d.ts | 38 + .../models/V1FbpDraftDropOffDeleteResponse.js | 41 + .../V1FbpDraftDropOffDlvEditRequest.d.ts | 55 + .../models/V1FbpDraftDropOffDlvEditRequest.js | 56 + .../V1FbpDraftDropOffDlvEditResponse.d.ts | 31 + .../V1FbpDraftDropOffDlvEditResponse.js | 38 + .../V1FbpDraftDropOffPointListRequest.d.ts | 49 + .../V1FbpDraftDropOffPointListRequest.js | 50 + .../V1FbpDraftDropOffPointListResponse.d.ts | 32 + .../V1FbpDraftDropOffPointListResponse.js | 39 + ...1FbpDraftDropOffPointTimetableRequest.d.ts | 43 + .../V1FbpDraftDropOffPointTimetableRequest.js | 48 + ...FbpDraftDropOffPointTimetableResponse.d.ts | 32 + ...V1FbpDraftDropOffPointTimetableResponse.js | 39 + ...DropOffPointTimetableResponseCalendar.d.ts | 39 + ...ftDropOffPointTimetableResponseCalendar.js | 42 + ...TimetableResponseCalendarCalendarItem.d.ts | 46 + ...ntTimetableResponseCalendarCalendarItem.js | 44 + ...eCalendarCalendarItemTimeslotWithTime.d.ts | 37 + ...nseCalendarCalendarItemTimeslotWithTime.js | 40 + ...arCalendarItemTimeslotWithTimeOpening.d.ts | 37 + ...ndarCalendarItemTimeslotWithTimeOpening.js | 40 + ...FbpDraftDropOffProductValidateRequest.d.ts | 38 + ...V1FbpDraftDropOffProductValidateRequest.js | 45 + ...tDropOffProductValidateRequestSkuItem.d.ts | 37 + ...aftDropOffProductValidateRequestSkuItem.js | 44 + ...bpDraftDropOffProductValidateResponse.d.ts | 52 + ...1FbpDraftDropOffProductValidateResponse.js | 46 + ...ffProductValidateResponseApprovedItem.d.ts | 67 + ...pOffProductValidateResponseApprovedItem.js | 50 + ...ffProductValidateResponseRejectedItem.d.ts | 88 + ...pOffProductValidateResponseRejectedItem.js | 53 + .../V1FbpDraftDropOffProvinceListRequest.d.ts | 31 + .../V1FbpDraftDropOffProvinceListRequest.js | 40 + ...V1FbpDraftDropOffProvinceListResponse.d.ts | 32 + .../V1FbpDraftDropOffProvinceListResponse.js | 39 + .../V1FbpDraftDropOffRegistrateRequest.d.ts | 37 + .../V1FbpDraftDropOffRegistrateRequest.js | 44 + .../V1FbpDraftDropOffRegistrateResponse.d.ts | 45 + .../V1FbpDraftDropOffRegistrateResponse.js | 43 + ...ffRegistrateResponseRegistrationError.d.ts | 39 + ...pOffRegistrateResponseRegistrationError.js | 42 + ...eResponseRegistrationErrorBundleError.d.ts | 52 + ...ateResponseRegistrationErrorBundleError.js | 41 + dist/esm/models/V1FbpDraftGetRequest.d.ts | 31 + dist/esm/models/V1FbpDraftGetRequest.js | 40 + dist/esm/models/V1FbpDraftGetResponse.d.ts | 136 ++ dist/esm/models/V1FbpDraftGetResponse.js | 74 + dist/esm/models/V1FbpDraftListRequest.d.ts | 40 + dist/esm/models/V1FbpDraftListRequest.js | 42 + dist/esm/models/V1FbpDraftListResponse.d.ts | 45 + dist/esm/models/V1FbpDraftListResponse.js | 43 + .../models/V1FbpDraftListResponseItem.d.ts | 116 + dist/esm/models/V1FbpDraftListResponseItem.js | 67 + .../models/V1FbpDraftPickUpDeleteRequest.d.ts | 31 + .../models/V1FbpDraftPickUpDeleteRequest.js | 40 + .../V1FbpDraftPickUpDeleteResponse.d.ts | 38 + .../models/V1FbpDraftPickUpDeleteResponse.js | 41 + ...1FbpDraftPickUpProductValidateRequest.d.ts | 38 + .../V1FbpDraftPickUpProductValidateRequest.js | 45 + ...ftPickUpProductValidateRequestSkuItem.d.ts | 37 + ...raftPickUpProductValidateRequestSkuItem.js | 44 + ...FbpDraftPickUpProductValidateResponse.d.ts | 52 + ...V1FbpDraftPickUpProductValidateResponse.js | 46 + ...UpProductValidateResponseApprovedItem.d.ts | 67 + ...ckUpProductValidateResponseApprovedItem.js | 50 + ...UpProductValidateResponseRejectedItem.d.ts | 88 + ...ckUpProductValidateResponseRejectedItem.js | 53 + .../V1FbpDraftPickUpRegistrateRequest.d.ts | 37 + .../V1FbpDraftPickUpRegistrateRequest.js | 44 + .../V1FbpDraftPickUpRegistrateResponse.d.ts | 45 + .../V1FbpDraftPickUpRegistrateResponse.js | 43 + ...UpRegistrateResponseRegistrationError.d.ts | 39 + ...ckUpRegistrateResponseRegistrationError.js | 42 + ...eResponseRegistrationErrorBundleError.d.ts | 52 + ...ateResponseRegistrationErrorBundleError.js | 41 + .../models/V1FbpDraftPickupCreateRequest.d.ts | 50 + .../models/V1FbpDraftPickupCreateRequest.js | 53 + ...aftPickupCreateRequestDeliveryDetails.d.ts | 55 + ...DraftPickupCreateRequestDeliveryDetails.js | 56 + .../V1FbpDraftPickupCreateResponse.d.ts | 43 + .../models/V1FbpDraftPickupCreateResponse.js | 42 + .../V1FbpDraftPickupDlvEditRequest.d.ts | 44 + .../models/V1FbpDraftPickupDlvEditRequest.js | 49 + ...ftPickupDlvEditRequestDeliveryDetails.d.ts | 55 + ...raftPickupDlvEditRequestDeliveryDetails.js | 56 + .../V1FbpDraftPickupDlvEditResponse.d.ts | 31 + .../models/V1FbpDraftPickupDlvEditResponse.js | 38 + dist/esm/models/V1FbpEditTimeslotRequest.d.ts | 43 + dist/esm/models/V1FbpEditTimeslotRequest.js | 48 + .../esm/models/V1FbpEditTimeslotResponse.d.ts | 44 + dist/esm/models/V1FbpEditTimeslotResponse.js | 41 + ...ditTimeslotResponseReserveFailureType.d.ts | 27 + ...pEditTimeslotResponseReserveFailureType.js | 43 + dist/esm/models/V1FbpGetLabelRequest.d.ts | 37 + dist/esm/models/V1FbpGetLabelRequest.js | 44 + dist/esm/models/V1FbpGetLabelResponse.d.ts | 38 + dist/esm/models/V1FbpGetLabelResponse.js | 41 + .../models/V1FbpOrderDirectCancelRequest.d.ts | 31 + .../models/V1FbpOrderDirectCancelRequest.js | 40 + .../V1FbpOrderDirectCancelResponse.d.ts | 45 + .../models/V1FbpOrderDirectCancelResponse.js | 43 + .../V1FbpOrderDirectSellerDlvEditRequest.d.ts | 55 + .../V1FbpOrderDirectSellerDlvEditRequest.js | 56 + ...V1FbpOrderDirectSellerDlvEditResponse.d.ts | 45 + .../V1FbpOrderDirectSellerDlvEditResponse.js | 43 + .../V1FbpOrderDropOffCancelRequest.d.ts | 31 + .../models/V1FbpOrderDropOffCancelRequest.js | 40 + .../V1FbpOrderDropOffCancelResponse.d.ts | 45 + .../models/V1FbpOrderDropOffCancelResponse.js | 43 + .../V1FbpOrderDropOffDlvEditRequest.d.ts | 43 + .../models/V1FbpOrderDropOffDlvEditRequest.js | 48 + .../V1FbpOrderDropOffDlvEditResponse.d.ts | 31 + .../V1FbpOrderDropOffDlvEditResponse.js | 38 + .../V1FbpOrderDropOffTimetableRequest.d.ts | 43 + .../V1FbpOrderDropOffTimetableRequest.js | 48 + .../V1FbpOrderDropOffTimetableResponse.d.ts | 32 + .../V1FbpOrderDropOffTimetableResponse.js | 39 + ...OrderDropOffTimetableResponseCalendar.d.ts | 39 + ...bpOrderDropOffTimetableResponseCalendar.js | 42 + ...TimetableResponseCalendarCalendarItem.d.ts | 46 + ...ffTimetableResponseCalendarCalendarItem.js | 44 + ...eCalendarCalendarItemTimeslotWithTime.d.ts | 37 + ...nseCalendarCalendarItemTimeslotWithTime.js | 40 + ...ndarCalendarItemTimeslotWithTimeBreak.d.ts | 37 + ...lendarCalendarItemTimeslotWithTimeBreak.js | 40 + dist/esm/models/V1FbpOrderGetRequest.d.ts | 31 + dist/esm/models/V1FbpOrderGetRequest.js | 40 + dist/esm/models/V1FbpOrderGetResponse.d.ts | 145 ++ dist/esm/models/V1FbpOrderGetResponse.js | 76 + dist/esm/models/V1FbpOrderListRequest.d.ts | 40 + dist/esm/models/V1FbpOrderListRequest.js | 42 + dist/esm/models/V1FbpOrderListResponse.d.ts | 45 + dist/esm/models/V1FbpOrderListResponse.js | 43 + .../models/V1FbpOrderListResponseItem.d.ts | 134 ++ dist/esm/models/V1FbpOrderListResponseItem.js | 73 + .../models/V1FbpOrderPickUpCancelRequest.d.ts | 31 + .../models/V1FbpOrderPickUpCancelRequest.js | 40 + .../V1FbpOrderPickUpCancelResponse.d.ts | 45 + .../models/V1FbpOrderPickUpCancelResponse.js | 43 + .../V1FbpOrderPickUpDlvEditRequest.d.ts | 44 + .../models/V1FbpOrderPickUpDlvEditRequest.js | 49 + ...rderPickUpDlvEditRequestPickUpDetails.d.ts | 37 + ...pOrderPickUpDlvEditRequestPickUpDetails.js | 44 + .../V1FbpOrderPickUpDlvEditResponse.d.ts | 45 + .../models/V1FbpOrderPickUpDlvEditResponse.js | 43 + .../models/V1FbpWarehouseListResponse.d.ts | 32 + dist/esm/models/V1FbpWarehouseListResponse.js | 39 + ...bsPostingProductExemplarUpdateRequest.d.ts | 31 + ...1FbsPostingProductExemplarUpdateRequest.js | 40 + dist/esm/models/V1GenerateBarcodeRequest.d.ts | 31 + dist/esm/models/V1GenerateBarcodeRequest.js | 40 + .../esm/models/V1GenerateBarcodeResponse.d.ts | 32 + dist/esm/models/V1GenerateBarcodeResponse.js | 39 + dist/esm/models/V1GenerateBarcodeResult.d.ts | 49 + dist/esm/models/V1GenerateBarcodeResult.js | 44 + .../models/V1GetAttributeValuesRequest.d.ts | 65 + .../esm/models/V1GetAttributeValuesRequest.js | 57 + .../models/V1GetAttributeValuesResponse.d.ts | 41 + .../models/V1GetAttributeValuesResponse.js | 41 + ...ttributeValuesResponseDictionaryValue.d.ts | 49 + ...tAttributeValuesResponseDictionaryValue.js | 44 + dist/esm/models/V1GetAttributesRequest.d.ts | 44 + dist/esm/models/V1GetAttributesRequest.js | 47 + dist/esm/models/V1GetAttributesResponse.d.ts | 32 + dist/esm/models/V1GetAttributesResponse.js | 39 + .../V1GetAttributesResponseAttribute.d.ts | 127 + .../V1GetAttributesResponseAttribute.js | 64 + .../V1GetCompensationReportRequest.d.ts | 40 + .../models/V1GetCompensationReportRequest.js | 42 + dist/esm/models/V1GetCompetitorsRequest.d.ts | 37 + dist/esm/models/V1GetCompetitorsRequest.js | 44 + dist/esm/models/V1GetCompetitorsResponse.d.ts | 38 + dist/esm/models/V1GetCompetitorsResponse.js | 41 + .../V1GetDecompensationReportRequest.d.ts | 40 + .../V1GetDecompensationReportRequest.js | 42 + ...DeliveryMethodReturnSettingsV1Request.d.ts | 31 + ...etDeliveryMethodReturnSettingsV1Request.js | 40 + ...eliveryMethodReturnSettingsV1Response.d.ts | 32 + ...tDeliveryMethodReturnSettingsV1Response.js | 39 + .../models/V1GetDiscountTaskListRequest.d.ts | 44 + .../models/V1GetDiscountTaskListRequest.js | 49 + .../models/V1GetDiscountTaskListResponse.d.ts | 32 + .../models/V1GetDiscountTaskListResponse.js | 39 + .../V1GetDiscountTaskListResponseTask.d.ts | 236 ++ .../V1GetDiscountTaskListResponseTask.js | 106 + dist/esm/models/V1GetEtgbRequest.d.ts | 32 + dist/esm/models/V1GetEtgbRequest.js | 41 + dist/esm/models/V1GetEtgbResponse.d.ts | 32 + dist/esm/models/V1GetEtgbResponse.js | 39 + .../V1GetFBSRatingIndexInfoV1Response.d.ts | 62 + .../V1GetFBSRatingIndexInfoV1Response.js | 49 + .../models/V1GetFinanceBalanceV1Request.d.ts | 37 + .../models/V1GetFinanceBalanceV1Request.js | 44 + .../models/V1GetFinanceBalanceV1Response.d.ts | 39 + .../models/V1GetFinanceBalanceV1Response.js | 42 + ...tFinanceBalanceV1ResponseAccruedMoney.d.ts | 37 + ...GetFinanceBalanceV1ResponseAccruedMoney.js | 40 + ...eBalanceV1ResponseClosingBalanceMoney.d.ts | 37 + ...nceBalanceV1ResponseClosingBalanceMoney.js | 40 + ...V1GetFinanceBalanceV1ResponseFeeMoney.d.ts | 37 + .../V1GetFinanceBalanceV1ResponseFeeMoney.js | 40 + ...eBalanceV1ResponseOpeningBalanceMoney.d.ts | 37 + ...nceBalanceV1ResponseOpeningBalanceMoney.js | 40 + ...tFinanceBalanceV1ResponsePartnerMoney.d.ts | 37 + ...GetFinanceBalanceV1ResponsePartnerMoney.js | 40 + ...FinanceBalanceV1ResponsePaymentsMoney.d.ts | 37 + ...etFinanceBalanceV1ResponsePaymentsMoney.js | 40 + ...tFinanceBalanceV1ResponseReturnsMoney.d.ts | 37 + ...GetFinanceBalanceV1ResponseReturnsMoney.js | 40 + ...tFinanceBalanceV1ResponseRevenueMoney.d.ts | 37 + ...GetFinanceBalanceV1ResponseRevenueMoney.js | 40 + ...GetFinanceBalanceV1ResponseSalesMoney.d.ts | 37 + ...V1GetFinanceBalanceV1ResponseSalesMoney.js | 40 + ...FinanceBalanceV1ResponseServicesMoney.d.ts | 37 + ...etFinanceBalanceV1ResponseServicesMoney.js | 40 + .../V1GetFinanceProductsBuyoutRequest.d.ts | 40 + .../V1GetFinanceProductsBuyoutRequest.js | 44 + .../V1GetFinanceProductsBuyoutResponse.d.ts | 32 + .../V1GetFinanceProductsBuyoutResponse.js | 39 + dist/esm/models/V1GetLabelBatchRequest.d.ts | 31 + dist/esm/models/V1GetLabelBatchRequest.js | 40 + dist/esm/models/V1GetLabelBatchResponse.d.ts | 32 + dist/esm/models/V1GetLabelBatchResponse.js | 39 + .../models/V1GetLabelBatchResponseResult.d.ts | 67 + .../models/V1GetLabelBatchResponseResult.js | 49 + .../V1GetProductInfoDiscountedRequest.d.ts | 31 + .../V1GetProductInfoDiscountedRequest.js | 40 + .../V1GetProductInfoDiscountedResponse.d.ts | 32 + .../V1GetProductInfoDiscountedResponse.js | 39 + ...1GetProductInfoDiscountedResponseItem.d.ts | 109 + .../V1GetProductInfoDiscountedResponseItem.js | 62 + .../V1GetProductInfoSubscriptionRequest.d.ts | 31 + .../V1GetProductInfoSubscriptionRequest.js | 40 + .../V1GetProductInfoSubscriptionResponse.d.ts | 32 + .../V1GetProductInfoSubscriptionResponse.js | 39 + ...ProductInfoSubscriptionResponseResult.d.ts | 37 + ...etProductInfoSubscriptionResponseResult.js | 40 + .../V1GetProductPlacementZoneInfoRequest.d.ts | 31 + .../V1GetProductPlacementZoneInfoRequest.js | 40 + ...V1GetProductPlacementZoneInfoResponse.d.ts | 32 + .../V1GetProductPlacementZoneInfoResponse.js | 39 + .../V1GetProductRatingBySkuRequest.d.ts | 31 + .../models/V1GetProductRatingBySkuRequest.js | 40 + .../V1GetProductRatingBySkuResponse.d.ts | 32 + .../models/V1GetProductRatingBySkuResponse.js | 39 + ...ductStairwayDiscountByQuantityRequest.d.ts | 31 + ...roductStairwayDiscountByQuantityRequest.js | 40 + ...uctStairwayDiscountByQuantityResponse.d.ts | 32 + ...oductStairwayDiscountByQuantityResponse.js | 39 + ...ayDiscountByQuantityResponseStairways.d.ts | 52 + ...rwayDiscountByQuantityResponseStairways.js | 46 + ...ntByQuantityResponseStairwaysStairway.d.ts | 32 + ...ountByQuantityResponseStairwaysStairway.js | 39 + ...QuantityResponseStairwaysStairwayStep.d.ts | 43 + ...ByQuantityResponseStairwaysStairwayStep.js | 42 + .../V1GetRealizationReportByDayRequest.d.ts | 43 + .../V1GetRealizationReportByDayRequest.js | 48 + .../V1GetRealizationReportPostingRequest.d.ts | 37 + .../V1GetRealizationReportPostingRequest.js | 44 + ...V1GetRealizationReportPostingResponse.d.ts | 39 + .../V1GetRealizationReportPostingResponse.js | 42 + ...etRealizationReportPostingResponseRow.d.ts | 78 + ...1GetRealizationReportPostingResponseRow.js | 57 + dist/esm/models/V1GetReceiptRequest.d.ts | 31 + dist/esm/models/V1GetReceiptRequest.js | 40 + dist/esm/models/V1GetReceiptResponse.d.ts | 31 + dist/esm/models/V1GetReceiptResponse.js | 38 + dist/esm/models/V1GetRestrictionsRequest.d.ts | 31 + dist/esm/models/V1GetRestrictionsRequest.js | 40 + .../esm/models/V1GetRestrictionsResponse.d.ts | 32 + dist/esm/models/V1GetRestrictionsResponse.js | 39 + dist/esm/models/V1GetReturnsListRequest.d.ts | 44 + dist/esm/models/V1GetReturnsListRequest.js | 45 + dist/esm/models/V1GetReturnsListResponse.d.ts | 39 + dist/esm/models/V1GetReturnsListResponse.js | 41 + .../V1GetStrategyIDsByItemIDsResponse.d.ts | 32 + .../V1GetStrategyIDsByItemIDsResponse.js | 39 + ...GetStrategyIDsByItemIDsResponseResult.d.ts | 32 + ...V1GetStrategyIDsByItemIDsResponseResult.js | 39 + .../models/V1GetStrategyItemInfoRequest.d.ts | 31 + .../models/V1GetStrategyItemInfoRequest.js | 40 + .../models/V1GetStrategyItemInfoResponse.d.ts | 32 + .../models/V1GetStrategyItemInfoResponse.js | 39 + .../V1GetStrategyItemInfoResponseResult.d.ts | 63 + .../V1GetStrategyItemInfoResponseResult.js | 48 + .../models/V1GetStrategyItemsResponse.d.ts | 32 + dist/esm/models/V1GetStrategyItemsResponse.js | 39 + .../V1GetStrategyItemsResponseResult.d.ts | 31 + .../V1GetStrategyItemsResponseResult.js | 38 + dist/esm/models/V1GetStrategyListRequest.d.ts | 37 + dist/esm/models/V1GetStrategyListRequest.js | 44 + .../esm/models/V1GetStrategyListResponse.d.ts | 38 + dist/esm/models/V1GetStrategyListResponse.js | 41 + dist/esm/models/V1GetStrategyResponse.d.ts | 32 + dist/esm/models/V1GetStrategyResponse.js | 39 + .../models/V1GetStrategyResponseResult.d.ts | 68 + .../esm/models/V1GetStrategyResponseResult.js | 47 + ...etSupplierReturnsSummaryReportRequest.d.ts | 49 + ...1GetSupplierReturnsSummaryReportRequest.js | 50 + ...tSupplierReturnsSummaryReportResponse.d.ts | 38 + ...GetSupplierReturnsSummaryReportResponse.js | 41 + ...pplierReturnsSummaryReportResponseRow.d.ts | 257 ++ ...SupplierReturnsSummaryReportResponseRow.js | 90 + .../models/V1GetSupplyOrderBundleRequest.d.ts | 71 + .../models/V1GetSupplyOrderBundleRequest.js | 56 + .../V1GetSupplyOrderBundleResponse.d.ts | 53 + .../models/V1GetSupplyOrderBundleResponse.js | 45 + ...V1GetSupplyOrderTimeslotStatusRequest.d.ts | 31 + .../V1GetSupplyOrderTimeslotStatusRequest.js | 40 + ...1GetSupplyOrderTimeslotStatusResponse.d.ts | 49 + .../V1GetSupplyOrderTimeslotStatusResponse.js | 42 + ...pplyOrderTimeslotStatusResponseStatus.d.ts | 31 + ...SupplyOrderTimeslotStatusResponseStatus.js | 47 + .../V1GetSupplyOrderTimeslotsRequest.d.ts | 31 + .../V1GetSupplyOrderTimeslotsRequest.js | 40 + .../V1GetSupplyOrderTimeslotsResponse.d.ts | 39 + .../V1GetSupplyOrderTimeslotsResponse.js | 42 + ...1GetSupplyReturnsSummaryReportRequest.d.ts | 49 + .../V1GetSupplyReturnsSummaryReportRequest.js | 50 + ...GetSupplyReturnsSummaryReportResponse.d.ts | 38 + ...V1GetSupplyReturnsSummaryReportResponse.js | 41 + ...SupplyReturnsSummaryReportResponseRow.d.ts | 257 ++ ...etSupplyReturnsSummaryReportResponseRow.js | 90 + dist/esm/models/V1GetTreeRequest.d.ts | 32 + dist/esm/models/V1GetTreeRequest.js | 39 + dist/esm/models/V1GetTreeResponse.d.ts | 32 + dist/esm/models/V1GetTreeResponse.js | 39 + dist/esm/models/V1GetTreeResponseItem.d.ts | 62 + dist/esm/models/V1GetTreeResponseItem.js | 48 + ...GetWarehouseFBSOperationStatusRequest.d.ts | 31 + ...V1GetWarehouseFBSOperationStatusRequest.js | 40 + ...etWarehouseFBSOperationStatusResponse.d.ts | 53 + ...1GetWarehouseFBSOperationStatusResponse.js | 48 + .../models/V1GiveoutBarcodeResetResponse.d.ts | 43 + .../models/V1GiveoutBarcodeResetResponse.js | 42 + .../models/V1GiveoutGetBarcodeResponse.d.ts | 31 + .../esm/models/V1GiveoutGetBarcodeResponse.js | 38 + dist/esm/models/V1GiveoutGetPDFResponse.d.ts | 43 + dist/esm/models/V1GiveoutGetPDFResponse.js | 42 + dist/esm/models/V1GiveoutGetPNGResponse.d.ts | 43 + dist/esm/models/V1GiveoutGetPNGResponse.js | 42 + dist/esm/models/V1GiveoutInfoRequest.d.ts | 31 + dist/esm/models/V1GiveoutInfoRequest.js | 40 + dist/esm/models/V1GiveoutInfoResponse.d.ts | 62 + dist/esm/models/V1GiveoutInfoResponse.js | 47 + .../models/V1GiveoutIsEnabledResponse.d.ts | 32 + dist/esm/models/V1GiveoutIsEnabledResponse.js | 38 + dist/esm/models/V1GiveoutListRequest.d.ts | 37 + dist/esm/models/V1GiveoutListRequest.js | 42 + dist/esm/models/V1GiveoutListResponse.d.ts | 32 + dist/esm/models/V1GiveoutListResponse.js | 39 + dist/esm/models/V1InvoiceDeleteRequest.d.ts | 31 + dist/esm/models/V1InvoiceDeleteRequest.js | 40 + dist/esm/models/V1InvoiceDeleteResponse.d.ts | 31 + dist/esm/models/V1InvoiceDeleteResponse.js | 38 + .../models/V1InvoiceFileUploadRequest.d.ts | 37 + dist/esm/models/V1InvoiceFileUploadRequest.js | 44 + .../models/V1InvoiceFileUploadResponse.d.ts | 31 + .../esm/models/V1InvoiceFileUploadResponse.js | 38 + dist/esm/models/V1InvoiceGetRequest.d.ts | 31 + dist/esm/models/V1InvoiceGetRequest.js | 40 + dist/esm/models/V1ItemError.d.ts | 73 + dist/esm/models/V1ItemError.js | 52 + dist/esm/models/V1ItemIDsRequest.d.ts | 31 + dist/esm/models/V1ItemIDsRequest.js | 40 + dist/esm/models/V1ItemResponse.d.ts | 172 ++ dist/esm/models/V1ItemResponse.js | 96 + dist/esm/models/V1ItemSfboAttribute.d.ts | 29 + dist/esm/models/V1ItemSfboAttribute.js | 45 + dist/esm/models/V1ItemSortField.d.ts | 31 + dist/esm/models/V1ItemSortField.js | 47 + ...OffPointsForCreateFBSWarehouseRequest.d.ts | 53 + ...opOffPointsForCreateFBSWarehouseRequest.js | 50 + ...rCreateFBSWarehouseRequestCoordinates.d.ts | 37 + ...ForCreateFBSWarehouseRequestCoordinates.js | 44 + ...ffPointsForCreateFBSWarehouseResponse.d.ts | 32 + ...pOffPointsForCreateFBSWarehouseResponse.js | 39 + ...CreateFBSWarehouseResponseCoordinates.d.ts | 37 + ...orCreateFBSWarehouseResponseCoordinates.js | 40 + ...WarehouseResponseDropOffPointTypeEnum.d.ts | 29 + ...BSWarehouseResponseDropOffPointTypeEnum.js | 45 + ...OffPointsForUpdateFBSWarehouseRequest.d.ts | 38 + ...opOffPointsForUpdateFBSWarehouseRequest.js | 43 + ...ffPointsForUpdateFBSWarehouseResponse.d.ts | 32 + ...pOffPointsForUpdateFBSWarehouseResponse.js | 39 + ...V1ListFBSRatingIndexPostingsV1Request.d.ts | 44 + .../V1ListFBSRatingIndexPostingsV1Request.js | 47 + ...1ListFBSRatingIndexPostingsV1Response.d.ts | 45 + .../V1ListFBSRatingIndexPostingsV1Response.js | 43 + .../esm/models/V1ListPostingCodesRequest.d.ts | 61 + dist/esm/models/V1ListPostingCodesRequest.js | 49 + .../models/V1ListPostingCodesResponse.d.ts | 32 + dist/esm/models/V1ListPostingCodesResponse.js | 39 + dist/esm/models/V1Money.d.ts | 37 + dist/esm/models/V1Money.js | 40 + dist/esm/models/V1OrderAttentionTypeEnum.d.ts | 25 + dist/esm/models/V1OrderAttentionTypeEnum.js | 41 + .../esm/models/V1OrderCancelCheckRequest.d.ts | 31 + dist/esm/models/V1OrderCancelCheckRequest.js | 40 + .../models/V1OrderCancelCheckResponse.d.ts | 52 + dist/esm/models/V1OrderCancelCheckResponse.js | 46 + dist/esm/models/V1OrderCancelRequest.d.ts | 43 + dist/esm/models/V1OrderCancelRequest.js | 46 + dist/esm/models/V1OrderCancelResponse.d.ts | 31 + dist/esm/models/V1OrderCancelResponse.js | 38 + .../models/V1OrderCancelStatusRequest.d.ts | 31 + dist/esm/models/V1OrderCancelStatusRequest.js | 40 + .../models/V1OrderCancelStatusResponse.d.ts | 48 + .../esm/models/V1OrderCancelStatusResponse.js | 42 + dist/esm/models/V1OrderCreateRequest.d.ts | 60 + dist/esm/models/V1OrderCreateRequest.js | 61 + dist/esm/models/V1OrderCreateResponse.d.ts | 37 + dist/esm/models/V1OrderCreateResponse.js | 40 + .../models/V1OrderDraftValidationError.d.ts | 48 + .../esm/models/V1OrderDraftValidationError.js | 39 + .../V1OrderDraftValidationErrorErrorType.d.ts | 37 + .../V1OrderDraftValidationErrorErrorType.js | 53 + dist/esm/models/V1OrderErrorTypeEnum.d.ts | 57 + dist/esm/models/V1OrderErrorTypeEnum.js | 73 + dist/esm/models/V1OrderState.d.ts | 45 + dist/esm/models/V1OrderState.js | 61 + dist/esm/models/V1OrderStatusEnum.d.ts | 41 + dist/esm/models/V1OrderStatusEnum.js | 57 + dist/esm/models/V1OrderValidationError.d.ts | 59 + dist/esm/models/V1OrderValidationError.js | 39 + .../V1OrderValidationErrorErrorType.d.ts | 51 + .../models/V1OrderValidationErrorErrorType.js | 67 + dist/esm/models/V1PolygonDeleteRequest.d.ts | 43 + dist/esm/models/V1PolygonDeleteRequest.js | 48 + dist/esm/models/V1PolygonListRequest.d.ts | 37 + dist/esm/models/V1PolygonListRequest.js | 44 + dist/esm/models/V1PolygonListResponse.d.ts | 32 + dist/esm/models/V1PolygonListResponse.js | 39 + ...V1PolygonTimeCoordinatesUpdateRequest.d.ts | 49 + .../V1PolygonTimeCoordinatesUpdateRequest.js | 52 + dist/esm/models/V1PolygonTimeSetRequest.d.ts | 81 + dist/esm/models/V1PolygonTimeSetRequest.js | 80 + dist/esm/models/V1PostingCancelRequest.d.ts | 43 + dist/esm/models/V1PostingCancelRequest.js | 46 + dist/esm/models/V1PostingCancelResponse.d.ts | 31 + dist/esm/models/V1PostingCancelResponse.js | 38 + .../models/V1PostingCancelStatusRequest.d.ts | 31 + .../models/V1PostingCancelStatusRequest.js | 38 + .../models/V1PostingCancelStatusResponse.d.ts | 48 + .../models/V1PostingCancelStatusResponse.js | 42 + .../V1PostingFBSPickupCodeVerifyRequest.d.ts | 37 + .../V1PostingFBSPickupCodeVerifyRequest.js | 44 + .../V1PostingFBSPickupCodeVerifyResponse.d.ts | 32 + .../V1PostingFBSPickupCodeVerifyResponse.js | 38 + ...ngFbsProductTraceableAttributeRequest.d.ts | 31 + ...tingFbsProductTraceableAttributeRequest.js | 40 + ...gFbsProductTraceableAttributeResponse.d.ts | 32 + ...ingFbsProductTraceableAttributeResponse.js | 39 + ...ductTraceableAttributeResponseProduct.d.ts | 37 + ...roductTraceableAttributeResponseProduct.js | 40 + dist/esm/models/V1PostingFbsSplitRequest.d.ts | 38 + dist/esm/models/V1PostingFbsSplitRequest.js | 45 + .../V1PostingFbsSplitRequestPosting.d.ts | 32 + .../models/V1PostingFbsSplitRequestPosting.js | 41 + .../esm/models/V1PostingFbsSplitResponse.d.ts | 39 + dist/esm/models/V1PostingFbsSplitResponse.js | 42 + .../V1PostingFbsSplitResponsePosting.d.ts | 38 + .../V1PostingFbsSplitResponsePosting.js | 41 + ...1PostingFbsSplitResponsePostingParent.d.ts | 38 + .../V1PostingFbsSplitResponsePostingParent.js | 41 + ...lotChangeRestrictionsDeliveryInterval.d.ts | 43 + ...eslotChangeRestrictionsDeliveryInterval.js | 40 + ...gFbsTimeslotChangeRestrictionsRequest.d.ts | 31 + ...ingFbsTimeslotChangeRestrictionsRequest.js | 40 + ...FbsTimeslotChangeRestrictionsResponse.d.ts | 38 + ...ngFbsTimeslotChangeRestrictionsResponse.js | 41 + .../V1PostingFbsTimeslotSetNewTimeslot.d.ts | 43 + .../V1PostingFbsTimeslotSetNewTimeslot.js | 44 + .../V1PostingFbsTimeslotSetRequest.d.ts | 38 + .../models/V1PostingFbsTimeslotSetRequest.js | 45 + .../V1PostingFbsTimeslotSetResponse.d.ts | 32 + .../models/V1PostingFbsTimeslotSetResponse.js | 38 + .../V1PostingFbsTraceableSplitRequest.d.ts | 31 + .../V1PostingFbsTraceableSplitRequest.js | 40 + .../V1PostingFbsTraceableSplitResponse.d.ts | 32 + .../V1PostingFbsTraceableSplitResponse.js | 39 + ...stingFbsTraceableSplitResponsePosting.d.ts | 47 + ...PostingFbsTraceableSplitResponsePosting.js | 43 + dist/esm/models/V1PostingMarksRequest.d.ts | 31 + dist/esm/models/V1PostingMarksRequest.js | 38 + dist/esm/models/V1PostingMarksResponse.d.ts | 45 + dist/esm/models/V1PostingMarksResponse.js | 44 + ...1PostingUnpaidLegalProductListRequest.d.ts | 38 + .../V1PostingUnpaidLegalProductListRequest.js | 42 + ...PostingUnpaidLegalProductListResponse.d.ts | 38 + ...V1PostingUnpaidLegalProductListResponse.js | 41 + ...npaidLegalProductListResponseProducts.d.ts | 55 + ...gUnpaidLegalProductListResponseProducts.js | 46 + dist/esm/models/V1PremiumScores.d.ts | 38 + dist/esm/models/V1PremiumScores.js | 41 + .../V1ProductActionTimerStatusRequest.d.ts | 31 + .../V1ProductActionTimerStatusRequest.js | 38 + .../V1ProductActionTimerStatusResponse.d.ts | 32 + .../V1ProductActionTimerStatusResponse.js | 39 + ...ductActionTimerStatusResponseStatuses.d.ts | 44 + ...roductActionTimerStatusResponseStatuses.js | 42 + .../V1ProductActionTimerUpdateRequest.d.ts | 31 + .../V1ProductActionTimerUpdateRequest.js | 38 + .../V1ProductCertificateDeleteRequest.d.ts | 31 + .../V1ProductCertificateDeleteRequest.js | 40 + .../V1ProductCertificateDeleteResponse.d.ts | 32 + .../V1ProductCertificateDeleteResponse.js | 39 + ...roductCertificateDeleteResponseResult.d.ts | 40 + ...1ProductCertificateDeleteResponseResult.js | 40 + .../V1ProductCertificateInfoRequest.d.ts | 31 + .../models/V1ProductCertificateInfoRequest.js | 40 + .../V1ProductCertificateInfoResponse.d.ts | 32 + .../V1ProductCertificateInfoResponse.js | 39 + .../V1ProductCertificateListRequest.d.ts | 55 + .../models/V1ProductCertificateListRequest.js | 50 + .../V1ProductCertificateListResponse.d.ts | 32 + .../V1ProductCertificateListResponse.js | 39 + ...1ProductCertificateListResponseResult.d.ts | 38 + .../V1ProductCertificateListResponseResult.js | 41 + ...tCertificateProductStatusListResponse.d.ts | 32 + ...uctCertificateProductStatusListResponse.js | 39 + ...ProductCertificateProductsListRequest.d.ts | 66 + ...V1ProductCertificateProductsListRequest.js | 50 + ...roductCertificateProductsListResponse.d.ts | 32 + ...1ProductCertificateProductsListResponse.js | 39 + ...CertificateProductsListResponseResult.d.ts | 38 + ...ctCertificateProductsListResponseResult.js | 41 + ...rtificateRejectionReasonsListResponse.d.ts | 32 + ...CertificateRejectionReasonsListResponse.js | 39 + ...1ProductCertificateStatusListResponse.d.ts | 32 + .../V1ProductCertificateStatusListResponse.js | 39 + .../V1ProductCertificateUnbindRequest.d.ts | 44 + .../V1ProductCertificateUnbindRequest.js | 44 + .../V1ProductCertificateUnbindResponse.d.ts | 32 + .../V1ProductCertificateUnbindResponse.js | 39 + dist/esm/models/V1ProductFbsSplit.d.ts | 37 + dist/esm/models/V1ProductFbsSplit.js | 44 + .../models/V1ProductGetRelatedSKURequest.d.ts | 31 + .../models/V1ProductGetRelatedSKURequest.js | 40 + .../V1ProductGetRelatedSKUResponse.d.ts | 39 + .../models/V1ProductGetRelatedSKUResponse.js | 42 + .../V1ProductGetRelatedSKUResponseError.d.ts | 43 + .../V1ProductGetRelatedSKUResponseError.js | 42 + .../V1ProductGetRelatedSKUResponseItem.d.ts | 64 + .../V1ProductGetRelatedSKUResponseItem.js | 46 + .../V1ProductInfoWarehouseStocksRequest.d.ts | 43 + .../V1ProductInfoWarehouseStocksRequest.js | 46 + .../V1ProductInfoWarehouseStocksResponse.d.ts | 47 + .../V1ProductInfoWarehouseStocksResponse.js | 43 + .../V1ProductInfoWrongVolumeRequest.d.ts | 37 + .../models/V1ProductInfoWrongVolumeRequest.js | 42 + .../V1ProductInfoWrongVolumeResponse.d.ts | 38 + .../V1ProductInfoWrongVolumeResponse.js | 41 + .../models/V1ProductPricesDetailsRequest.d.ts | 31 + .../models/V1ProductPricesDetailsRequest.js | 40 + .../V1ProductPricesDetailsResponse.d.ts | 32 + .../models/V1ProductPricesDetailsResponse.js | 39 + .../V1ProductPricesDetailsResponsePrice.d.ts | 65 + .../V1ProductPricesDetailsResponsePrice.js | 51 + .../V1ProductUpdateAttributesRequest.d.ts | 32 + .../V1ProductUpdateAttributesRequest.js | 39 + ...oductUpdateAttributesRequestAttribute.d.ts | 44 + ...ProductUpdateAttributesRequestAttribute.js | 43 + .../V1ProductUpdateAttributesRequestItem.d.ts | 38 + .../V1ProductUpdateAttributesRequestItem.js | 43 + ...V1ProductUpdateAttributesRequestValue.d.ts | 37 + .../V1ProductUpdateAttributesRequestValue.js | 40 + .../V1ProductUpdateAttributesResponse.d.ts | 34 + .../V1ProductUpdateAttributesResponse.js | 38 + .../V1ProductUpdateDiscountRequest.d.ts | 38 + .../models/V1ProductUpdateDiscountRequest.js | 44 + .../V1ProductUpdateDiscountResponse.d.ts | 31 + .../models/V1ProductUpdateDiscountResponse.js | 38 + .../models/V1ProductUpdateOfferIdRequest.d.ts | 32 + .../models/V1ProductUpdateOfferIdRequest.js | 41 + .../V1ProductUpdateOfferIdResponse.d.ts | 32 + .../models/V1ProductUpdateOfferIdResponse.js | 39 + .../V1ProductUpdateOfferIdResponseError.d.ts | 37 + .../V1ProductUpdateOfferIdResponseError.js | 40 + .../models/V1QuestionAnswerCreateDefault.d.ts | 43 + .../models/V1QuestionAnswerCreateDefault.js | 42 + .../models/V1QuestionAnswerCreateRequest.d.ts | 43 + .../models/V1QuestionAnswerCreateRequest.js | 48 + .../V1QuestionAnswerCreateResponse.d.ts | 31 + .../models/V1QuestionAnswerCreateResponse.js | 38 + .../models/V1QuestionAnswerDeleteRequest.d.ts | 37 + .../models/V1QuestionAnswerDeleteRequest.js | 44 + .../models/V1QuestionAnswerListRequest.d.ts | 46 + .../esm/models/V1QuestionAnswerListRequest.js | 46 + .../models/V1QuestionAnswerListResponse.d.ts | 41 + .../models/V1QuestionAnswerListResponse.js | 41 + .../V1QuestionAnswerListResponseAnswers.d.ts | 68 + .../V1QuestionAnswerListResponseAnswers.js | 51 + .../models/V1QuestionChangeStatusRequest.d.ts | 41 + .../models/V1QuestionChangeStatusRequest.js | 44 + dist/esm/models/V1QuestionCountResponse.d.ts | 55 + dist/esm/models/V1QuestionCountResponse.js | 46 + dist/esm/models/V1QuestionInfoRequest.d.ts | 31 + dist/esm/models/V1QuestionInfoRequest.js | 40 + dist/esm/models/V1QuestionInfoResponse.d.ts | 85 + dist/esm/models/V1QuestionInfoResponse.js | 54 + dist/esm/models/V1QuestionListRequest.d.ts | 54 + dist/esm/models/V1QuestionListRequest.js | 46 + .../models/V1QuestionListRequestFilter.d.ts | 49 + .../esm/models/V1QuestionListRequestFilter.js | 42 + dist/esm/models/V1QuestionListResponse.d.ts | 48 + dist/esm/models/V1QuestionListResponse.js | 43 + .../V1QuestionListResponseQuestions.d.ts | 85 + .../models/V1QuestionListResponseQuestions.js | 54 + dist/esm/models/V1QuestionTopSkuRequest.d.ts | 32 + dist/esm/models/V1QuestionTopSkuRequest.js | 40 + dist/esm/models/V1QuestionTopSkuResponse.d.ts | 31 + dist/esm/models/V1QuestionTopSkuResponse.js | 38 + dist/esm/models/V1Rating.d.ts | 56 + dist/esm/models/V1Rating.js | 47 + dist/esm/models/V1RatingHistoryV1Request.d.ts | 70 + dist/esm/models/V1RatingHistoryV1Request.js | 50 + .../esm/models/V1RatingHistoryV1Response.d.ts | 39 + dist/esm/models/V1RatingHistoryV1Response.js | 42 + dist/esm/models/V1RatingItem.d.ts | 92 + dist/esm/models/V1RatingItem.js | 53 + dist/esm/models/V1RatingStatus.d.ts | 43 + dist/esm/models/V1RatingStatus.js | 42 + .../esm/models/V1RatingSummaryV1Response.d.ts | 57 + dist/esm/models/V1RatingSummaryV1Response.js | 48 + .../models/V1ReceiptsSellerListRequest.d.ts | 43 + .../esm/models/V1ReceiptsSellerListRequest.js | 42 + .../models/V1ReceiptsSellerListResponse.d.ts | 41 + .../models/V1ReceiptsSellerListResponse.js | 41 + ...eportMarkedProductsSalesCreateRequest.d.ts | 32 + ...1ReportMarkedProductsSalesCreateRequest.js | 39 + dist/esm/models/V1Restriction.d.ts | 73 + dist/esm/models/V1Restriction.js | 52 + .../V1ReturnsCompanyFbsInfoRequest.d.ts | 39 + .../models/V1ReturnsCompanyFbsInfoRequest.js | 44 + .../V1ReturnsCompanyFbsInfoRequestFilter.d.ts | 31 + .../V1ReturnsCompanyFbsInfoRequestFilter.js | 38 + .../V1ReturnsCompanyFbsInfoResponse.d.ts | 38 + .../models/V1ReturnsCompanyFbsInfoResponse.js | 41 + .../models/V1ReturnsRfbsActionSetRequest.d.ts | 78 + .../models/V1ReturnsRfbsActionSetRequest.js | 50 + ...rnsSettingsUtilizationHistoryResponse.d.ts | 32 + ...turnsSettingsUtilizationHistoryResponse.js | 39 + ...eturnsSettingsUtilizationInfoResponse.d.ts | 39 + ...1ReturnsSettingsUtilizationInfoResponse.js | 42 + ...turnsSettingsUtilizationUpdateRequest.d.ts | 39 + ...ReturnsSettingsUtilizationUpdateRequest.js | 46 + .../models/V1ReviewChangeStatusRequest.d.ts | 40 + .../esm/models/V1ReviewChangeStatusRequest.js | 44 + dist/esm/models/V1ReviewCountResponse.d.ts | 43 + dist/esm/models/V1ReviewCountResponse.js | 42 + dist/esm/models/V1ReviewInfoRequest.d.ts | 31 + dist/esm/models/V1ReviewInfoRequest.js | 40 + dist/esm/models/V1ReviewInfoResponse.d.ts | 124 + dist/esm/models/V1ReviewInfoResponse.js | 68 + dist/esm/models/V1ReviewListRequest.d.ts | 56 + dist/esm/models/V1ReviewListRequest.js | 46 + dist/esm/models/V1ReviewListResponse.d.ts | 45 + dist/esm/models/V1ReviewListResponse.js | 43 + dist/esm/models/V1RolesByTokenResponse.d.ts | 38 + dist/esm/models/V1RolesByTokenResponse.js | 41 + .../V1SearchAttributeValuesRequest.d.ts | 58 + .../models/V1SearchAttributeValuesRequest.js | 56 + .../V1SearchAttributeValuesResponse.d.ts | 32 + .../models/V1SearchAttributeValuesResponse.js | 39 + .../models/V1SearchQueriesTextRequest.d.ts | 57 + dist/esm/models/V1SearchQueriesTextRequest.js | 54 + .../models/V1SearchQueriesTextResponse.d.ts | 44 + .../esm/models/V1SearchQueriesTextResponse.js | 43 + ...1SearchQueriesTextResponseSearchQuery.d.ts | 67 + .../V1SearchQueriesTextResponseSearchQuery.js | 50 + .../esm/models/V1SearchQueriesTopRequest.d.ts | 37 + dist/esm/models/V1SearchQueriesTopRequest.js | 44 + .../models/V1SearchQueriesTopResponse.d.ts | 44 + dist/esm/models/V1SearchQueriesTopResponse.js | 43 + ...V1SearchQueriesTopResponseSearchQuery.d.ts | 67 + .../V1SearchQueriesTopResponseSearchQuery.js | 50 + .../models/V1SellerActionsArchiveRequest.d.ts | 31 + .../models/V1SellerActionsArchiveRequest.js | 40 + .../V1SellerActionsChangeActivityRequest.d.ts | 38 + .../V1SellerActionsChangeActivityRequest.js | 44 + .../V1SellerActionsCreateDiscountRequest.d.ts | 49 + .../V1SellerActionsCreateDiscountRequest.js | 50 + ...V1SellerActionsCreateDiscountResponse.d.ts | 31 + .../V1SellerActionsCreateDiscountResponse.js | 38 + ...onsCreateDiscountWithConditionRequest.d.ts | 62 + ...tionsCreateDiscountWithConditionRequest.js | 59 + ...tWithConditionRequestDiscountTypeEnum.d.ts | 27 + ...untWithConditionRequestDiscountTypeEnum.js | 43 + ...nsCreateDiscountWithConditionResponse.d.ts | 31 + ...ionsCreateDiscountWithConditionResponse.js | 38 + ...SellerActionsCreateInstallmentRequest.d.ts | 37 + ...V1SellerActionsCreateInstallmentRequest.js | 44 + ...ellerActionsCreateInstallmentResponse.d.ts | 31 + ...1SellerActionsCreateInstallmentResponse.js | 38 + ...ctionsCreateMultiLevelDiscountRequest.d.ts | 64 + ...rActionsCreateMultiLevelDiscountRequest.js | 58 + ...ultiLevelDiscountRequestDiscountLevel.d.ts | 37 + ...eMultiLevelDiscountRequestDiscountLevel.js | 44 + ...iLevelDiscountRequestDiscountTypeEnum.d.ts | 27 + ...ltiLevelDiscountRequestDiscountTypeEnum.js | 43 + ...tionsCreateMultiLevelDiscountResponse.d.ts | 31 + ...ActionsCreateMultiLevelDiscountResponse.js | 38 + .../V1SellerActionsCreateVoucherRequest.d.ts | 75 + .../V1SellerActionsCreateVoucherRequest.js | 68 + ...sCreateVoucherRequestDiscountTypeEnum.d.ts | 27 + ...onsCreateVoucherRequestDiscountTypeEnum.js | 43 + ...sCreateVoucherRequestVoucherParameter.d.ts | 45 + ...onsCreateVoucherRequestVoucherParameter.js | 49 + ...oucherRequestVoucherParameterTypeEnum.d.ts | 29 + ...eVoucherRequestVoucherParameterTypeEnum.js | 45 + .../V1SellerActionsCreateVoucherResponse.d.ts | 31 + .../V1SellerActionsCreateVoucherResponse.js | 38 + .../models/V1SellerActionsListRequest.d.ts | 76 + dist/esm/models/V1SellerActionsListRequest.js | 52 + .../models/V1SellerActionsListResponse.d.ts | 38 + .../esm/models/V1SellerActionsListResponse.js | 41 + .../V1SellerActionsProductsAddRequest.d.ts | 38 + .../V1SellerActionsProductsAddRequest.js | 45 + ...ellerActionsProductsAddRequestProduct.d.ts | 44 + ...1SellerActionsProductsAddRequestProduct.js | 45 + ...ellerActionsProductsCandidatesRequest.d.ts | 43 + ...1SellerActionsProductsCandidatesRequest.js | 46 + ...llerActionsProductsCandidatesResponse.d.ts | 47 + ...SellerActionsProductsCandidatesResponse.js | 43 + ...ionsProductsCandidatesResponseProduct.d.ts | 105 + ...ctionsProductsCandidatesResponseProduct.js | 63 + ...andidatesResponseProductQuantTypeEnum.d.ts | 31 + ...sCandidatesResponseProductQuantTypeEnum.js | 47 + .../V1SellerActionsProductsDeleteRequest.d.ts | 37 + .../V1SellerActionsProductsDeleteRequest.js | 44 + .../V1SellerActionsProductsListRequest.d.ts | 43 + .../V1SellerActionsProductsListRequest.js | 46 + .../V1SellerActionsProductsListResponse.d.ts | 47 + .../V1SellerActionsProductsListResponse.js | 43 + ...lerActionsProductsListResponseProduct.d.ts | 105 + ...ellerActionsProductsListResponseProduct.js | 63 + .../V1SellerActionsUpdateDiscountRequest.d.ts | 38 + .../V1SellerActionsUpdateDiscountRequest.js | 41 + ...UpdateDiscountRequestActionParameters.d.ts | 43 + ...nsUpdateDiscountRequestActionParameters.js | 48 + ...onsUpdateDiscountWithConditionRequest.d.ts | 38 + ...tionsUpdateDiscountWithConditionRequest.js | 41 + ...tWithConditionRequestActionParameters.d.ts | 55 + ...untWithConditionRequestActionParameters.js | 56 + ...SellerActionsUpdateInstallmentRequest.d.ts | 38 + ...V1SellerActionsUpdateInstallmentRequest.js | 41 + ...ateInstallmentRequestActionParameters.d.ts | 37 + ...pdateInstallmentRequestActionParameters.js | 44 + ...ctionsUpdateMultiLevelDiscountRequest.d.ts | 38 + ...rActionsUpdateMultiLevelDiscountRequest.js | 41 + ...iLevelDiscountRequestActionParameters.d.ts | 57 + ...ltiLevelDiscountRequestActionParameters.js | 55 + .../V1SellerActionsUpdateVoucherRequest.d.ts | 38 + .../V1SellerActionsUpdateVoucherRequest.js | 41 + ...sUpdateVoucherRequestActionParameters.d.ts | 61 + ...onsUpdateVoucherRequestActionParameters.js | 58 + .../V1SellerActionsVoucherGetRequest.d.ts | 31 + .../V1SellerActionsVoucherGetRequest.js | 40 + .../V1SellerActionsVoucherGetResponse.d.ts | 31 + .../V1SellerActionsVoucherGetResponse.js | 38 + dist/esm/models/V1SellerInfoResponse.d.ts | 46 + dist/esm/models/V1SellerInfoResponse.js | 45 + .../V1SellerOzonLogisticsInfoResponse.d.ts | 43 + .../V1SellerOzonLogisticsInfoResponse.js | 41 + .../esm/models/V1SetPostingCutoffRequest.d.ts | 37 + dist/esm/models/V1SetPostingCutoffRequest.js | 44 + .../models/V1SetPostingCutoffResponse.d.ts | 32 + dist/esm/models/V1SetPostingCutoffResponse.js | 38 + dist/esm/models/V1SetPostingsRequest.d.ts | 37 + dist/esm/models/V1SetPostingsRequest.js | 44 + dist/esm/models/V1SetPostingsResponse.d.ts | 32 + dist/esm/models/V1SetPostingsResponse.js | 39 + ...ductStairwayDiscountByQuantityRequest.d.ts | 39 + ...roductStairwayDiscountByQuantityRequest.js | 43 + ...wayDiscountByQuantityRequestStairways.d.ts | 45 + ...irwayDiscountByQuantityRequestStairways.js | 49 + ...untByQuantityRequestStairwaysStairway.d.ts | 32 + ...countByQuantityRequestStairwaysStairway.js | 41 + ...yQuantityRequestStairwaysStairwayStep.d.ts | 43 + ...tByQuantityRequestStairwaysStairwayStep.js | 48 + ...uctStairwayDiscountByQuantityResponse.d.ts | 45 + ...oductStairwayDiscountByQuantityResponse.js | 43 + ...airwayDiscountByQuantityResponseError.d.ts | 38 + ...StairwayDiscountByQuantityResponseError.js | 41 + dist/esm/models/V1SetVehicleError.d.ts | 27 + dist/esm/models/V1SetVehicleError.js | 43 + dist/esm/models/V1StatusCodeNamePair.d.ts | 37 + dist/esm/models/V1StatusCodeNamePair.js | 40 + .../models/V1StatusCodeNamePairRejection.d.ts | 37 + .../models/V1StatusCodeNamePairRejection.js | 40 + .../models/V1StatusCodeNamePairStatuses.d.ts | 37 + .../models/V1StatusCodeNamePairStatuses.js | 40 + dist/esm/models/V1StocksImportRequest.d.ts | 32 + dist/esm/models/V1StocksImportRequest.js | 39 + dist/esm/models/V1StocksImportResponse.d.ts | 32 + dist/esm/models/V1StocksImportResponse.js | 39 + dist/esm/models/V1StrategyRequest.d.ts | 31 + dist/esm/models/V1StrategyRequest.js | 40 + ...V1SupplierAvailableWarehousesResponse.d.ts | 32 + .../V1SupplierAvailableWarehousesResponse.js | 39 + .../models/V1SupplyOrderCancelRequest.d.ts | 31 + dist/esm/models/V1SupplyOrderCancelRequest.js | 40 + .../models/V1SupplyOrderCancelResponse.d.ts | 31 + .../esm/models/V1SupplyOrderCancelResponse.js | 38 + .../V1SupplyOrderCancelStatusRequest.d.ts | 31 + .../V1SupplyOrderCancelStatusRequest.js | 40 + .../V1SupplyOrderCancelStatusResponse.d.ts | 52 + .../V1SupplyOrderCancelStatusResponse.js | 45 + ...SupplyOrderCancelStatusResponseStatus.d.ts | 29 + ...V1SupplyOrderCancelStatusResponseStatus.js | 45 + .../V1SupplyOrderContentUpdateRequest.d.ts | 47 + .../V1SupplyOrderContentUpdateRequest.js | 49 + ...V1SupplyOrderContentUpdateRequestItem.d.ts | 43 + .../V1SupplyOrderContentUpdateRequestItem.js | 48 + .../V1SupplyOrderContentUpdateResponse.d.ts | 62 + .../V1SupplyOrderContentUpdateResponse.js | 41 + ...lyOrderContentUpdateResponseErrorEnum.d.ts | 56 + ...pplyOrderContentUpdateResponseErrorEnum.js | 72 + ...SupplyOrderContentUpdateStatusRequest.d.ts | 31 + ...V1SupplyOrderContentUpdateStatusRequest.js | 40 + ...upplyOrderContentUpdateStatusResponse.d.ts | 68 + ...1SupplyOrderContentUpdateStatusResponse.js | 44 + ...rContentUpdateStatusResponseErrorEnum.d.ts | 46 + ...derContentUpdateStatusResponseErrorEnum.js | 62 + ...lyOrderContentUpdateValidationRequest.d.ts | 37 + ...pplyOrderContentUpdateValidationRequest.js | 44 + ...yOrderContentUpdateValidationResponse.d.ts | 53 + ...plyOrderContentUpdateValidationResponse.js | 42 + .../models/V1SupplyOrderDetailsRequest.d.ts | 31 + .../esm/models/V1SupplyOrderDetailsRequest.js | 40 + .../models/V1SupplyOrderDetailsResponse.d.ts | 96 + .../models/V1SupplyOrderDetailsResponse.js | 63 + .../V1SupplyOrderDetailsResponseTimeslot.d.ts | 53 + .../V1SupplyOrderDetailsResponseTimeslot.js | 44 + .../V1SupplyOrderPassCreateRequest.d.ts | 38 + .../models/V1SupplyOrderPassCreateRequest.js | 45 + .../V1SupplyOrderPassCreateResponse.d.ts | 44 + .../models/V1SupplyOrderPassCreateResponse.js | 41 + .../V1SupplyOrderPassStatusRequest.d.ts | 31 + .../models/V1SupplyOrderPassStatusRequest.js | 40 + .../V1SupplyOrderPassStatusResponse.d.ts | 45 + .../models/V1SupplyOrderPassStatusResponse.js | 42 + ...V1SupplyOrderPassStatusResponseStatus.d.ts | 31 + .../V1SupplyOrderPassStatusResponseStatus.js | 47 + .../V1SupplyOrderStatusCounterResponse.d.ts | 32 + .../V1SupplyOrderStatusCounterResponse.js | 39 + ...1SupplyOrderStatusCounterResponseItem.d.ts | 38 + .../V1SupplyOrderStatusCounterResponseItem.js | 41 + dist/esm/models/V1SupplyOrderTimeslot.d.ts | 37 + dist/esm/models/V1SupplyOrderTimeslot.js | 44 + dist/esm/models/V1TimeRangeReturnDate.d.ts | 37 + dist/esm/models/V1TimeRangeReturnDate.js | 40 + .../V1TimeRangeStorageTariffication.d.ts | 37 + .../models/V1TimeRangeStorageTariffication.js | 40 + dist/esm/models/V1TimeRangeVisualStatus.d.ts | 37 + dist/esm/models/V1TimeRangeVisualStatus.js | 40 + dist/esm/models/V1Timezone.d.ts | 37 + dist/esm/models/V1Timezone.js | 40 + .../V1UnarchiveWarehouseFBSRequest.d.ts | 37 + .../models/V1UnarchiveWarehouseFBSRequest.js | 42 + .../V1UnarchiveWarehouseFBSResponse.d.ts | 31 + .../models/V1UnarchiveWarehouseFBSResponse.js | 38 + .../V1UpdatePricingStrategyRequest.d.ts | 44 + .../models/V1UpdatePricingStrategyRequest.js | 49 + .../models/V1UpdateStatusStrategyRequest.d.ts | 40 + .../models/V1UpdateStatusStrategyRequest.js | 42 + .../V1UpdateSupplyOrderTimeslotRequest.d.ts | 38 + .../V1UpdateSupplyOrderTimeslotRequest.js | 45 + .../V1UpdateSupplyOrderTimeslotResponse.d.ts | 48 + .../V1UpdateSupplyOrderTimeslotResponse.js | 41 + dist/esm/models/V1UpdateTimeslotError.d.ts | 31 + dist/esm/models/V1UpdateTimeslotError.js | 47 + .../V1UpdateWarehouseFBSFirstMileRequest.d.ts | 63 + .../V1UpdateWarehouseFBSFirstMileRequest.js | 57 + ...eFBSFirstMileRequestFirstMileTypeEnum.d.ts | 27 + ...useFBSFirstMileRequestFirstMileTypeEnum.js | 43 + ...V1UpdateWarehouseFBSFirstMileResponse.d.ts | 31 + .../V1UpdateWarehouseFBSFirstMileResponse.js | 38 + .../models/V1UpdateWarehouseFBSRequest.d.ts | 72 + .../esm/models/V1UpdateWarehouseFBSRequest.js | 55 + ...WarehouseFBSRequestAddressCoordinates.d.ts | 37 + ...teWarehouseFBSRequestAddressCoordinates.js | 44 + .../V1UpdateWarehouseFBSRequestOptions.d.ts | 49 + .../V1UpdateWarehouseFBSRequestOptions.js | 44 + ...ateWarehouseFBSRequestWorkingDaysEnum.d.ts | 29 + ...pdateWarehouseFBSRequestWorkingDaysEnum.js | 45 + .../models/V1UpdateWarehouseFBSResponse.d.ts | 31 + .../models/V1UpdateWarehouseFBSResponse.js | 38 + .../models/V1UploadPostingCodesRequest.d.ts | 38 + .../esm/models/V1UploadPostingCodesRequest.js | 41 + .../models/V1UploadPostingCodesResponse.d.ts | 32 + .../models/V1UploadPostingCodesResponse.js | 39 + .../V1UploadReceiptRequestTypeEnum.d.ts | 27 + .../models/V1UploadReceiptRequestTypeEnum.js | 43 + dist/esm/models/V1UploadReceiptResponse.d.ts | 31 + dist/esm/models/V1UploadReceiptResponse.js | 38 + dist/esm/models/V1VehicleInfo.d.ts | 49 + dist/esm/models/V1VehicleInfo.js | 52 + ...WarehouseERFBSAggregatorCreateRequest.d.ts | 71 + ...V1WarehouseERFBSAggregatorCreateRequest.js | 63 + ...egatorCreateRequestAddressCoordinates.d.ts | 37 + ...gregatorCreateRequestAddressCoordinates.js | 44 + ...AggregatorCreateRequestDeliveryMethod.d.ts | 95 + ...BSAggregatorCreateRequestDeliveryMethod.js | 81 + ...teRequestDeliveryMethodReturnSettings.d.ts | 50 + ...eateRequestDeliveryMethodReturnSettings.js | 47 + ...yMethodReturnSettingsReturnMethodEnum.d.ts | 29 + ...eryMethodReturnSettingsReturnMethodEnum.js | 45 + ...eERFBSAggregatorCreateRequestHolidays.d.ts | 43 + ...useERFBSAggregatorCreateRequestHolidays.js | 42 + ...egatorCreateRequestTimetableWarehouse.d.ts | 39 + ...gregatorCreateRequestTimetableWarehouse.js | 44 + ...FBSAggregatorCreateRequestWorkingDays.d.ts | 44 + ...ERFBSAggregatorCreateRequestWorkingDays.js | 49 + ...egatorCreateRequestWorkingDaysDayEnum.d.ts | 39 + ...gregatorCreateRequestWorkingDaysDayEnum.js | 55 + ...arehouseERFBSAggregatorCreateResponse.d.ts | 31 + ...1WarehouseERFBSAggregatorCreateResponse.js | 38 + ...AggregatorDeliveryMethodUpdateRequest.d.ts | 107 + ...BSAggregatorDeliveryMethodUpdateRequest.js | 77 + ...iveryMethodUpdateRequestDeliveryCosts.d.ts | 55 + ...eliveryMethodUpdateRequestDeliveryCosts.js | 46 + ...veryMethodUpdateRequestReturnSettings.d.ts | 50 + ...liveryMethodUpdateRequestReturnSettings.js | 47 + ...RequestReturnSettingsReturnMethodEnum.d.ts | 27 + ...teRequestReturnSettingsReturnMethodEnum.js | 43 + ...ggregatorDeliveryMethodUpdateResponse.d.ts | 31 + ...SAggregatorDeliveryMethodUpdateResponse.js | 38 + ...ehouseERFBSNonIntegratedCreateRequest.d.ts | 71 + ...arehouseERFBSNonIntegratedCreateRequest.js | 63 + ...gratedCreateRequestAddressCoordinates.d.ts | 37 + ...tegratedCreateRequestAddressCoordinates.js | 44 + ...IntegratedCreateRequestDeliveryMethod.d.ts | 73 + ...onIntegratedCreateRequestDeliveryMethod.js | 73 + ...teRequestDeliveryMethodReturnSettings.d.ts | 50 + ...eateRequestDeliveryMethodReturnSettings.js | 47 + ...yMethodReturnSettingsReturnMethodEnum.d.ts | 27 + ...eryMethodReturnSettingsReturnMethodEnum.js | 43 + ...FBSNonIntegratedCreateRequestHolidays.d.ts | 43 + ...ERFBSNonIntegratedCreateRequestHolidays.js | 42 + ...gratedCreateRequestTimetableWarehouse.d.ts | 39 + ...tegratedCreateRequestTimetableWarehouse.js | 44 + ...NonIntegratedCreateRequestWorkingDays.d.ts | 44 + ...BSNonIntegratedCreateRequestWorkingDays.js | 49 + ...gratedCreateRequestWorkingDaysDayEnum.d.ts | 37 + ...tegratedCreateRequestWorkingDaysDayEnum.js | 53 + ...houseERFBSNonIntegratedCreateResponse.d.ts | 31 + ...rehouseERFBSNonIntegratedCreateResponse.js | 38 + ...IntegratedDeliveryMethodUpdateRequest.d.ts | 93 + ...onIntegratedDeliveryMethodUpdateRequest.js | 90 + ...veryMethodUpdateRequestReturnSettings.d.ts | 50 + ...liveryMethodUpdateRequestReturnSettings.js | 47 + ...RequestReturnSettingsReturnMethodEnum.d.ts | 27 + ...teRequestReturnSettingsReturnMethodEnum.js | 43 + ...ntegratedDeliveryMethodUpdateResponse.d.ts | 31 + ...nIntegratedDeliveryMethodUpdateResponse.js | 38 + .../models/V1WarehouseERFBSUpdateRequest.d.ts | 63 + .../models/V1WarehouseERFBSUpdateRequest.js | 51 + ...V1WarehouseERFBSUpdateRequestHolidays.d.ts | 43 + .../V1WarehouseERFBSUpdateRequestHolidays.js | 42 + ...eERFBSUpdateRequestTimetableWarehouse.d.ts | 39 + ...useERFBSUpdateRequestTimetableWarehouse.js | 42 + ...arehouseERFBSUpdateRequestWorkingDays.d.ts | 44 + ...1WarehouseERFBSUpdateRequestWorkingDays.js | 43 + ...eERFBSUpdateRequestWorkingDaysDayEnum.d.ts | 39 + ...useERFBSUpdateRequestWorkingDaysDayEnum.js | 55 + .../V1WarehouseERFBSUpdateResponse.d.ts | 31 + .../models/V1WarehouseERFBSUpdateResponse.js | 38 + ...ehouseFBSCreateReturnPointListRequest.d.ts | 63 + ...arehouseFBSCreateReturnPointListRequest.js | 56 + ...eateReturnPointListRequestCoordinates.d.ts | 37 + ...CreateReturnPointListRequestCoordinates.js | 44 + ...FBSCreateReturnPointListRequestSearch.d.ts | 42 + ...seFBSCreateReturnPointListRequestSearch.js | 41 + ...tListRequestSearchReturnPointTypeEnum.d.ts | 25 + ...intListRequestSearchReturnPointTypeEnum.js | 41 + ...houseFBSCreateReturnPointListResponse.d.ts | 50 + ...rehouseFBSCreateReturnPointListResponse.js | 45 + ...ateReturnPointListResponseCoordinates.d.ts | 37 + ...reateReturnPointListResponseCoordinates.js | 40 + ...ateReturnPointListResponseReturnPoint.d.ts | 70 + ...reateReturnPointListResponseReturnPoint.js | 53 + ...nPointListResponseReturnPointTypeEnum.d.ts | 31 + ...urnPointListResponseReturnPointTypeEnum.js | 47 + ...ateReturnPointListResponseWorkingDays.d.ts | 44 + ...reateReturnPointListResponseWorkingDays.js | 43 + ...rnPointListResponseWorkingDaysDayEnum.d.ts | 39 + ...turnPointListResponseWorkingDaysDayEnum.js | 55 + .../V1WarehouseFBSReturnMileInfoRequest.d.ts | 31 + .../V1WarehouseFBSReturnMileInfoRequest.js | 40 + .../V1WarehouseFBSReturnMileInfoResponse.d.ts | 32 + .../V1WarehouseFBSReturnMileInfoResponse.js | 39 + ...eFBSReturnMileInfoResponseCoordinates.d.ts | 37 + ...useFBSReturnMileInfoResponseCoordinates.js | 40 + ...eFBSReturnMileInfoResponseReturnPoint.d.ts | 70 + ...useFBSReturnMileInfoResponseReturnPoint.js | 53 + ...rnMileInfoResponseReturnPointTypeEnum.d.ts | 31 + ...turnMileInfoResponseReturnPointTypeEnum.js | 47 + ...eFBSReturnMileInfoResponseWorkingDays.d.ts | 44 + ...useFBSReturnMileInfoResponseWorkingDays.js | 43 + ...urnMileInfoResponseWorkingDaysDayEnum.d.ts | 39 + ...eturnMileInfoResponseWorkingDaysDayEnum.js | 55 + ...ehouseFBSUpdateReturnPointListRequest.d.ts | 62 + ...arehouseFBSUpdateReturnPointListRequest.js | 53 + ...FBSUpdateReturnPointListRequestSearch.d.ts | 42 + ...seFBSUpdateReturnPointListRequestSearch.js | 41 + ...tListRequestSearchReturnPointTypeEnum.d.ts | 25 + ...intListRequestSearchReturnPointTypeEnum.js | 41 + ...houseFBSUpdateReturnPointListResponse.d.ts | 50 + ...rehouseFBSUpdateReturnPointListResponse.js | 45 + ...ateReturnPointListResponseCoordinates.d.ts | 37 + ...pdateReturnPointListResponseCoordinates.js | 40 + ...ateReturnPointListResponseReturnPoint.d.ts | 70 + ...pdateReturnPointListResponseReturnPoint.js | 53 + ...nPointListResponseReturnPointTypeEnum.d.ts | 31 + ...urnPointListResponseReturnPointTypeEnum.js | 47 + ...ateReturnPointListResponseWorkingDays.d.ts | 44 + ...pdateReturnPointListResponseWorkingDays.js | 43 + ...rnPointListResponseWorkingDaysDayEnum.d.ts | 39 + ...turnPointListResponseWorkingDaysDayEnum.js | 55 + .../V1WarehouseFboSellerListResponse.d.ts | 32 + .../V1WarehouseFboSellerListResponse.js | 39 + ...rehouseFboSellerListResponseWarehouse.d.ts | 78 + ...WarehouseFboSellerListResponseWarehouse.js | 55 + ...seFbsCreateDropOffTimeslotListRequest.d.ts | 31 + ...ouseFbsCreateDropOffTimeslotListRequest.js | 40 + ...eFbsCreateDropOffTimeslotListResponse.d.ts | 32 + ...useFbsCreateDropOffTimeslotListResponse.js | 39 + ...teDropOffTimeslotListResponseTimeslot.d.ts | 55 + ...eateDropOffTimeslotListResponseTimeslot.js | 46 + ...useFbsCreatePickUpTimeslotListRequest.d.ts | 38 + ...houseFbsCreatePickUpTimeslotListRequest.js | 45 + ...TimeslotListRequestAddressCoordinates.d.ts | 37 + ...UpTimeslotListRequestAddressCoordinates.js | 44 + ...seFbsCreatePickUpTimeslotListResponse.d.ts | 38 + ...ouseFbsCreatePickUpTimeslotListResponse.js | 41 + ...atePickUpTimeslotListResponseTimeslot.d.ts | 43 + ...reatePickUpTimeslotListResponseTimeslot.js | 42 + ...arehouseFbsPickUpCourierCancelRequest.d.ts | 31 + ...1WarehouseFbsPickUpCourierCancelRequest.js | 40 + ...arehouseFbsPickUpCourierCreateRequest.d.ts | 34 + ...1WarehouseFbsPickUpCourierCreateRequest.js | 40 + ...1WarehouseFbsPickUpHistoryListRequest.d.ts | 44 + .../V1WarehouseFbsPickUpHistoryListRequest.js | 45 + ...ouseFbsPickUpHistoryListRequestFilter.d.ts | 44 + ...ehouseFbsPickUpHistoryListRequestFilter.js | 42 + ...WarehouseFbsPickUpHistoryListResponse.d.ts | 32 + ...V1WarehouseFbsPickUpHistoryListResponse.js | 39 + ...useFbsPickUpHistoryListResponseResult.d.ts | 38 + ...houseFbsPickUpHistoryListResponseResult.js | 41 + ...arehouseFbsPickUpPlanningListResponse.d.ts | 32 + ...1WarehouseFbsPickUpPlanningListResponse.js | 39 + ...seFbsPickUpPlanningListResponseResult.d.ts | 32 + ...ouseFbsPickUpPlanningListResponseResult.js | 39 + .../V1WarehouseFbsReturnMileCheckRequest.d.ts | 50 + .../V1WarehouseFbsReturnMileCheckRequest.js | 51 + ...turnMileCheckRequestFirstMileTypeEnum.d.ts | 27 + ...ReturnMileCheckRequestFirstMileTypeEnum.js | 43 + ...V1WarehouseFbsReturnMileCheckResponse.d.ts | 37 + .../V1WarehouseFbsReturnMileCheckResponse.js | 40 + ...seFbsUpdateDropOffTimeslotListRequest.d.ts | 37 + ...ouseFbsUpdateDropOffTimeslotListRequest.js | 44 + ...eFbsUpdateDropOffTimeslotListResponse.d.ts | 32 + ...useFbsUpdateDropOffTimeslotListResponse.js | 39 + ...teDropOffTimeslotListResponseTimeslot.d.ts | 55 + ...dateDropOffTimeslotListResponseTimeslot.js | 46 + ...useFbsUpdatePickUpTimeslotListRequest.d.ts | 31 + ...houseFbsUpdatePickUpTimeslotListRequest.js | 40 + ...seFbsUpdatePickUpTimeslotListResponse.d.ts | 32 + ...ouseFbsUpdatePickUpTimeslotListResponse.js | 39 + ...atePickUpTimeslotListResponseTimeslot.d.ts | 43 + ...pdatePickUpTimeslotListResponseTimeslot.js | 42 + .../V1WarehouseInvalidProductsGetRequest.d.ts | 40 + .../V1WarehouseInvalidProductsGetRequest.js | 42 + ...V1WarehouseInvalidProductsGetResponse.d.ts | 51 + .../V1WarehouseInvalidProductsGetResponse.js | 45 + dist/esm/models/V1WarehouseListRequest.d.ts | 44 + dist/esm/models/V1WarehouseListRequest.js | 45 + .../models/V1WarehouseListRequestWith.d.ts | 32 + dist/esm/models/V1WarehouseListRequestWith.js | 38 + .../models/V1WarehouseOZONListRequest.d.ts | 45 + dist/esm/models/V1WarehouseOZONListRequest.js | 39 + ...houseOZONListRequestWarehouseTypeEnum.d.ts | 34 + ...rehouseOZONListRequestWarehouseTypeEnum.js | 50 + .../models/V1WarehouseOZONListResponse.d.ts | 32 + .../esm/models/V1WarehouseOZONListResponse.js | 39 + .../V1WarehouseOZONListResponseWarehouse.d.ts | 110 + .../V1WarehouseOZONListResponseWarehouse.js | 63 + ...1WarehouseWithInvalidProductsResponse.d.ts | 31 + .../V1WarehouseWithInvalidProductsResponse.js | 38 + dist/esm/models/V1fbpDeliveryDetails.d.ts | 53 + dist/esm/models/V1fbpDeliveryDetails.js | 48 + dist/esm/models/V1fbpTimeslot.d.ts | 37 + dist/esm/models/V1fbpTimeslot.js | 40 + dist/esm/models/V2AdditionalDataItem.d.ts | 37 + dist/esm/models/V2AdditionalDataItem.js | 40 + .../models/V2CancellationInitiatorEnum.d.ts | 33 + .../esm/models/V2CancellationInitiatorEnum.js | 49 + dist/esm/models/V2CancellationStateEnum.d.ts | 29 + dist/esm/models/V2CancellationStateEnum.js | 45 + .../V2CancellationStateEnumFilters.d.ts | 31 + .../models/V2CancellationStateEnumFilters.js | 47 + dist/esm/models/V2CargoesCreateErrors.d.ts | 50 + dist/esm/models/V2CargoesCreateErrors.js | 42 + .../models/V2CargoesCreateInfoV2Request.d.ts | 31 + .../models/V2CargoesCreateInfoV2Request.js | 40 + .../models/V2CargoesCreateInfoV2Response.d.ts | 46 + .../models/V2CargoesCreateInfoV2Response.js | 45 + .../V2CarriageDeliveryListV2Request.d.ts | 44 + .../models/V2CarriageDeliveryListV2Request.js | 45 + .../V2CarriageDeliveryListV2Response.d.ts | 45 + .../V2CarriageDeliveryListV2Response.js | 43 + dist/esm/models/V2ChatReadResponse.d.ts | 31 + dist/esm/models/V2ChatReadResponse.js | 38 + ...2ConditionalCancellationMoveV2Request.d.ts | 37 + .../V2ConditionalCancellationMoveV2Request.js | 42 + .../models/V2CreateLabelBatchResponse.d.ts | 32 + dist/esm/models/V2CreateLabelBatchResponse.js | 39 + .../V2CreateLabelBatchResponseResult.d.ts | 32 + .../V2CreateLabelBatchResponseResult.js | 39 + ...V2CreateLabelBatchResponseResultTasks.d.ts | 40 + .../V2CreateLabelBatchResponseResultTasks.js | 40 + ...ryCheckoutRequestV2DeliverySchemaEnum.d.ts | 29 + ...veryCheckoutRequestV2DeliverySchemaEnum.js | 45 + .../models/V2DeliveryMethodListV2Request.d.ts | 51 + .../models/V2DeliveryMethodListV2Request.js | 48 + .../V2DeliveryMethodListV2Response.d.ts | 45 + .../models/V2DeliveryMethodListV2Response.js | 43 + .../models/V2DraftClusterListResponse.d.ts | 32 + dist/esm/models/V2DraftClusterListResponse.js | 39 + .../V2DraftClusterListResponseResult.d.ts | 38 + .../V2DraftClusterListResponseResult.js | 41 + dist/esm/models/V2DraftCreateInfoRequest.d.ts | 31 + dist/esm/models/V2DraftCreateInfoRequest.js | 40 + .../esm/models/V2DraftCreateInfoResponse.d.ts | 46 + dist/esm/models/V2DraftCreateInfoResponse.js | 45 + .../V2DraftCreateInfoResponseStatusEnum.d.ts | 31 + .../V2DraftCreateInfoResponseStatusEnum.js | 47 + .../models/V2DraftSupplyCreateRequest.d.ts | 64 + dist/esm/models/V2DraftSupplyCreateRequest.js | 60 + ...CreateRequestSelectedClusterWarehouse.d.ts | 37 + ...lyCreateRequestSelectedClusterWarehouse.js | 44 + .../V2DraftSupplyCreateRequestTimeslot.d.ts | 37 + .../V2DraftSupplyCreateRequestTimeslot.js | 40 + .../models/V2DraftSupplyCreateResponse.d.ts | 69 + .../esm/models/V2DraftSupplyCreateResponse.js | 41 + ...ftSupplyCreateResponseErrorReasonEnum.d.ts | 52 + ...raftSupplyCreateResponseErrorReasonEnum.js | 68 + .../V2DraftSupplyCreateStatusRequest.d.ts | 31 + .../V2DraftSupplyCreateStatusRequest.js | 40 + .../V2DraftSupplyCreateStatusResponse.d.ts | 75 + .../V2DraftSupplyCreateStatusResponse.js | 44 + ...lyCreateStatusResponseErrorReasonEnum.d.ts | 50 + ...pplyCreateStatusResponseErrorReasonEnum.js | 66 + ...tSupplyCreateStatusResponseStatusEnum.d.ts | 31 + ...aftSupplyCreateStatusResponseStatusEnum.js | 47 + .../models/V2DraftTimeslotInfoRequest.d.ts | 72 + dist/esm/models/V2DraftTimeslotInfoRequest.js | 65 + ...otInfoRequestSelectedClusterWarehouse.d.ts | 37 + ...slotInfoRequestSelectedClusterWarehouse.js | 40 + .../models/V2DraftTimeslotInfoResponse.d.ts | 39 + .../esm/models/V2DraftTimeslotInfoResponse.js | 42 + ...ftTimeslotInfoResponseErrorReasonEnum.d.ts | 32 + ...raftTimeslotInfoResponseErrorReasonEnum.js | 48 + dist/esm/models/V2FboPosting.d.ts | 140 ++ dist/esm/models/V2FboPosting.js | 72 + dist/esm/models/V2FboPostingListResponse.d.ts | 32 + dist/esm/models/V2FboPostingListResponse.js | 39 + dist/esm/models/V2FboPostingResponse.d.ts | 32 + dist/esm/models/V2FboPostingResponse.js | 39 + dist/esm/models/V2FboPostingV2.d.ts | 127 + dist/esm/models/V2FboPostingV2.js | 67 + .../models/V2FboSinglePostingLegalInfo.d.ts | 43 + .../esm/models/V2FboSinglePostingLegalInfo.js | 42 + dist/esm/models/V2FbsPosting.d.ts | 87 + dist/esm/models/V2FbsPosting.js | 58 + dist/esm/models/V2FbsPostingProduct.d.ts | 55 + dist/esm/models/V2FbsPostingProduct.js | 46 + ...V2FbsPostingProductCountryListRequest.d.ts | 31 + .../V2FbsPostingProductCountryListRequest.js | 38 + ...2FbsPostingProductCountryListResponse.d.ts | 32 + .../V2FbsPostingProductCountryListResponse.js | 39 + ...stingProductCountryListResponseResult.d.ts | 37 + ...PostingProductCountryListResponseResult.js | 40 + .../V2FbsPostingProductCountrySetRequest.d.ts | 46 + .../V2FbsPostingProductCountrySetRequest.js | 48 + ...V2FbsPostingProductCountrySetResponse.d.ts | 37 + .../V2FbsPostingProductCountrySetResponse.js | 40 + dist/esm/models/V2FbsPostingResponse.d.ts | 32 + dist/esm/models/V2FbsPostingResponse.js | 39 + ...tConditionalCancellationListV2Request.d.ts | 54 + ...GetConditionalCancellationListV2Request.js | 48 + ...ConditionalCancellationListV2Response.d.ts | 47 + ...etConditionalCancellationListV2Response.js | 43 + .../V2GetDiscountTaskListV2Request.d.ts | 56 + .../models/V2GetDiscountTaskListV2Request.js | 54 + ...skListV2RequestDiscountTaskStatusEnum.d.ts | 31 + ...TaskListV2RequestDiscountTaskStatusEnum.js | 47 + .../V2GetDiscountTaskListV2Response.d.ts | 32 + .../models/V2GetDiscountTaskListV2Response.js | 39 + ...ductInfoStocksByWarehouseFbsRequestV2.d.ts | 49 + ...roductInfoStocksByWarehouseFbsRequestV2.js | 46 + ...uctInfoStocksByWarehouseFbsResponseV2.d.ts | 45 + ...oductInfoStocksByWarehouseFbsResponseV2.js | 43 + ...StocksByWarehouseFbsResponseV2Product.d.ts | 73 + ...foStocksByWarehouseFbsResponseV2Product.js | 52 + .../V2GetRealizationReportRequestV2.d.ts | 37 + .../models/V2GetRealizationReportRequestV2.js | 44 + .../V2GetRealizationReportResponseV2.d.ts | 32 + .../V2GetRealizationReportResponseV2.js | 39 + dist/esm/models/V2HsCode.d.ts | 37 + dist/esm/models/V2HsCode.js | 40 + .../V2InvoiceCreateOrUpdateV2Request.d.ts | 77 + .../V2InvoiceCreateOrUpdateV2Request.js | 57 + .../V2InvoiceCreateOrUpdateV2Response.d.ts | 31 + .../V2InvoiceCreateOrUpdateV2Response.js | 38 + dist/esm/models/V2InvoiceGetV2Response.d.ts | 32 + dist/esm/models/V2InvoiceGetV2Response.js | 39 + ...2MovePostingToAwaitingDeliveryRequest.d.ts | 31 + .../V2MovePostingToAwaitingDeliveryRequest.js | 40 + dist/esm/models/V2PolygonBindRequest.d.ts | 62 + dist/esm/models/V2PolygonBindRequest.js | 64 + .../V2PostingFBSActGetPostingsRequest.d.ts | 31 + .../V2PostingFBSActGetPostingsRequest.js | 40 + .../V2PostingFBSActGetPostingsResponse.d.ts | 32 + .../V2PostingFBSActGetPostingsResponse.js | 39 + .../V2PostingFBSActGetPostingsResult.d.ts | 74 + .../V2PostingFBSActGetPostingsResult.js | 53 + .../models/V2PostingFBSActGetProducts.d.ts | 55 + dist/esm/models/V2PostingFBSActGetProducts.js | 46 + .../esm/models/V2PostingFBSActListFilter.d.ts | 73 + dist/esm/models/V2PostingFBSActListFilter.js | 48 + .../V2PostingFBSActListRelatedDocs.d.ts | 46 + .../models/V2PostingFBSActListRelatedDocs.js | 45 + ...gFBSActListRelatedDocsActOfAcceptance.d.ts | 45 + ...ingFBSActListRelatedDocsActOfAcceptance.js | 40 + ...stingFBSActListRelatedDocsActOfExcess.d.ts | 41 + ...PostingFBSActListRelatedDocsActOfExcess.js | 40 + ...ingFBSActListRelatedDocsActOfMismatch.d.ts | 44 + ...stingFBSActListRelatedDocsActOfMismatch.js | 40 + .../models/V2PostingFBSActListRequest.d.ts | 38 + dist/esm/models/V2PostingFBSActListRequest.js | 43 + .../models/V2PostingFBSActListResponse.d.ts | 32 + .../esm/models/V2PostingFBSActListResponse.js | 39 + .../esm/models/V2PostingFBSActListResult.d.ts | 116 + dist/esm/models/V2PostingFBSActListResult.js | 65 + ...ostingFBSDigitalActCheckStatusRequest.d.ts | 31 + ...2PostingFBSDigitalActCheckStatusRequest.js | 40 + ...stingFBSDigitalActCheckStatusResponse.d.ts | 44 + ...PostingFBSDigitalActCheckStatusResponse.js | 40 + .../models/V2PostingFBSGetBarcodeRequest.d.ts | 31 + .../models/V2PostingFBSGetBarcodeRequest.js | 40 + .../V2PostingFBSGetBarcodeResponse.d.ts | 43 + .../models/V2PostingFBSGetBarcodeResponse.js | 42 + .../V2PostingFBSGetBarcodeTextResponse.d.ts | 31 + .../V2PostingFBSGetBarcodeTextResponse.js | 38 + .../V2PostingFBSGetDigitalActRequest.d.ts | 42 + .../V2PostingFBSGetDigitalActRequest.js | 42 + .../V2PostingFBSGetDigitalActResponse.d.ts | 43 + .../V2PostingFBSGetDigitalActResponse.js | 42 + .../esm/models/V2PostingFinancialDataFBO.d.ts | 44 + dist/esm/models/V2PostingFinancialDataFBO.js | 43 + .../models/V2PostingFinancialDataFBOV2.d.ts | 44 + .../esm/models/V2PostingFinancialDataFBOV2.js | 43 + dist/esm/models/V2PostingProduct.d.ts | 85 + dist/esm/models/V2PostingProduct.js | 52 + dist/esm/models/V2Product.d.ts | 64 + dist/esm/models/V2Product.js | 46 + ...uctCertificateAccordanceTypesResponse.d.ts | 32 + ...oductCertificateAccordanceTypesResponse.js | 39 + ...tificateAccordanceTypesResponseResult.d.ts | 38 + ...ertificateAccordanceTypesResponseResult.js | 41 + ...ertificateAccordanceTypesResponseType.d.ts | 37 + ...tCertificateAccordanceTypesResponseType.js | 40 + .../V2ProductCertificationListRequest.d.ts | 37 + .../V2ProductCertificationListRequest.js | 44 + .../V2ProductCertificationListResponse.d.ts | 38 + .../V2ProductCertificationListResponse.js | 41 + .../models/V2ProductInfoPicturesRequest.d.ts | 31 + .../models/V2ProductInfoPicturesRequest.js | 40 + .../models/V2ProductInfoPicturesResponse.d.ts | 32 + .../models/V2ProductInfoPicturesResponse.js | 39 + .../V2ProductInfoPicturesResponseError.d.ts | 37 + .../V2ProductInfoPicturesResponseError.js | 40 + .../V2ProductInfoPicturesResponseItem.d.ts | 56 + .../V2ProductInfoPicturesResponseItem.js | 47 + .../models/V2ReportReturnsCreateRequest.d.ts | 41 + .../models/V2ReportReturnsCreateRequest.js | 42 + .../V2ReportReturnsCreateRequestFilter.d.ts | 143 ++ .../V2ReportReturnsCreateRequestFilter.js | 97 + .../models/V2ReportReturnsCreateResponse.d.ts | 32 + .../models/V2ReportReturnsCreateResponse.js | 39 + dist/esm/models/V2ReturnsRfbsFilter.d.ts | 58 + dist/esm/models/V2ReturnsRfbsFilter.js | 45 + dist/esm/models/V2ReturnsRfbsGetRequest.d.ts | 31 + dist/esm/models/V2ReturnsRfbsGetRequest.js | 40 + dist/esm/models/V2ReturnsRfbsGetResponse.d.ts | 32 + dist/esm/models/V2ReturnsRfbsGetResponse.js | 39 + .../V2ReturnsRfbsGetV2ResponseState.d.ts | 37 + .../models/V2ReturnsRfbsGetV2ResponseState.js | 40 + dist/esm/models/V2ReturnsRfbsListRequest.d.ts | 44 + dist/esm/models/V2ReturnsRfbsListRequest.js | 45 + .../esm/models/V2ReturnsRfbsListResponse.d.ts | 32 + dist/esm/models/V2ReturnsRfbsListResponse.js | 39 + .../V2ReturnsRfbsListV2ResponseState.d.ts | 49 + .../V2ReturnsRfbsListV2ResponseState.js | 44 + dist/esm/models/V2WarehouseListV2Request.d.ts | 43 + dist/esm/models/V2WarehouseListV2Request.js | 44 + .../esm/models/V2WarehouseListV2Response.d.ts | 45 + dist/esm/models/V2WarehouseListV2Response.js | 43 + dist/esm/models/V3AdditionalDataItem.d.ts | 37 + dist/esm/models/V3AdditionalDataItem.js | 40 + dist/esm/models/V3Address.d.ts | 91 + dist/esm/models/V3Address.js | 58 + dist/esm/models/V3Addressee.d.ts | 49 + dist/esm/models/V3Addressee.js | 42 + dist/esm/models/V3AddresseeFbsLists.d.ts | 38 + dist/esm/models/V3AddresseeFbsLists.js | 40 + dist/esm/models/V3Barcodes.d.ts | 37 + dist/esm/models/V3Barcodes.js | 40 + dist/esm/models/V3Cancellation.d.ts | 73 + dist/esm/models/V3Cancellation.js | 48 + dist/esm/models/V3ChatDetailsInfo.d.ts | 51 + dist/esm/models/V3ChatDetailsInfo.js | 46 + dist/esm/models/V3ChatHistoryRequest.d.ts | 64 + dist/esm/models/V3ChatHistoryRequest.js | 49 + dist/esm/models/V3ChatHistoryResponse.d.ts | 38 + dist/esm/models/V3ChatHistoryResponse.js | 41 + dist/esm/models/V3ChatInfo.d.ts | 50 + dist/esm/models/V3ChatInfo.js | 45 + dist/esm/models/V3ChatList.d.ts | 44 + dist/esm/models/V3ChatList.js | 45 + dist/esm/models/V3ChatListRequestFilter.d.ts | 38 + dist/esm/models/V3ChatListRequestFilter.js | 41 + .../V3ChatListRequestFilterChatStatus.d.ts | 29 + .../V3ChatListRequestFilterChatStatus.js | 45 + dist/esm/models/V3ChatListResponse.d.ts | 53 + dist/esm/models/V3ChatListResponse.js | 45 + dist/esm/models/V3ChatMessage.d.ts | 76 + dist/esm/models/V3ChatMessage.js | 55 + dist/esm/models/V3Customer.d.ts | 53 + dist/esm/models/V3Customer.js | 45 + dist/esm/models/V3CustomerFbsLists.d.ts | 57 + dist/esm/models/V3CustomerFbsLists.js | 47 + dist/esm/models/V3DeliveryMethod.d.ts | 61 + dist/esm/models/V3DeliveryMethod.js | 48 + dist/esm/models/V3Dimensions.d.ts | 49 + dist/esm/models/V3Dimensions.js | 44 + dist/esm/models/V3FbsPosting.d.ts | 383 +++ dist/esm/models/V3FbsPosting.js | 131 + .../esm/models/V3FbsPostingAnalyticsData.d.ts | 122 + dist/esm/models/V3FbsPostingAnalyticsData.js | 64 + dist/esm/models/V3FbsPostingDetail.d.ts | 444 ++++ dist/esm/models/V3FbsPostingDetail.js | 149 ++ .../models/V3FbsPostingDetailOptional.d.ts | 31 + dist/esm/models/V3FbsPostingDetailOptional.js | 38 + .../V3FbsPostingDetailRelatedPostings.d.ts | 31 + .../V3FbsPostingDetailRelatedPostings.js | 38 + .../models/V3FbsPostingExemplarProductV3.d.ts | 38 + .../models/V3FbsPostingExemplarProductV3.js | 41 + dist/esm/models/V3FbsPostingProduct.d.ts | 91 + dist/esm/models/V3FbsPostingProduct.js | 54 + .../V3FbsPostingProductExemplarInfoV3.d.ts | 73 + .../V3FbsPostingProductExemplarInfoV3.js | 52 + .../V3FbsPostingProductExemplarsV3.d.ts | 35 + .../models/V3FbsPostingProductExemplarsV3.js | 39 + .../models/V3FbsPostingRequirementsV3.d.ts | 89 + dist/esm/models/V3FbsPostingRequirementsV3.js | 52 + dist/esm/models/V3FbsTariffication.d.ts | 84 + dist/esm/models/V3FbsTariffication.js | 54 + ...V3FinanceCashFlowStatementListRequest.d.ts | 50 + .../V3FinanceCashFlowStatementListRequest.js | 51 + ...3FinanceCashFlowStatementListResponse.d.ts | 32 + .../V3FinanceCashFlowStatementListResponse.js | 39 + ...ceCashFlowStatementListResponsePeriod.d.ts | 43 + ...anceCashFlowStatementListResponsePeriod.js | 42 + ...ceCashFlowStatementListResponseResult.d.ts | 45 + ...anceCashFlowStatementListResponseResult.js | 44 + .../models/V3GetFbsPostingListResponseV3.d.ts | 32 + .../models/V3GetFbsPostingListResponseV3.js | 39 + .../V3GetFbsPostingListResponseV3Result.d.ts | 41 + .../V3GetFbsPostingListResponseV3Result.js | 41 + .../esm/models/V3GetFbsPostingResponseV3.d.ts | 32 + dist/esm/models/V3GetFbsPostingResponseV3.js | 39 + .../models/V3GetProductInfoListRequest.d.ts | 43 + .../esm/models/V3GetProductInfoListRequest.js | 42 + .../models/V3GetProductInfoListResponse.d.ts | 32 + .../models/V3GetProductInfoListResponse.js | 39 + .../V3GetProductInfoListResponseItem.d.ts | 266 ++ .../V3GetProductInfoListResponseItem.js | 118 + ...V3GetProductInfoListResponsePromotion.d.ts | 39 + .../V3GetProductInfoListResponsePromotion.js | 41 + ...tProductInfoListResponsePromotionType.d.ts | 27 + ...GetProductInfoListResponsePromotionType.js | 43 + dist/esm/models/V3ImportProductsRequest.d.ts | 32 + dist/esm/models/V3ImportProductsRequest.js | 39 + .../V3ImportProductsRequestAttribute.d.ts | 44 + .../V3ImportProductsRequestAttribute.js | 43 + ...ImportProductsRequestComplexAttribute.d.ts | 32 + ...V3ImportProductsRequestComplexAttribute.js | 39 + ...3ImportProductsRequestDictionaryValue.d.ts | 37 + .../V3ImportProductsRequestDictionaryValue.js | 40 + .../models/V3ImportProductsRequestItem.d.ts | 239 ++ .../esm/models/V3ImportProductsRequestItem.js | 99 + dist/esm/models/V3ImportProductsResponse.d.ts | 32 + dist/esm/models/V3ImportProductsResponse.js | 39 + .../V3ImportProductsResponseResult.d.ts | 31 + .../models/V3ImportProductsResponseResult.js | 38 + dist/esm/models/V3PostingFinancialData.d.ts | 44 + dist/esm/models/V3PostingFinancialData.js | 43 + dist/esm/models/V3PostingProductDetail.d.ts | 133 + dist/esm/models/V3PostingProductDetail.js | 67 + dist/esm/models/V3ServiceType.d.ts | 24 + dist/esm/models/V3ServiceType.js | 40 + dist/esm/models/V3SupplyOrderGetRequest.d.ts | 31 + dist/esm/models/V3SupplyOrderGetRequest.js | 40 + dist/esm/models/V3SupplyOrderGetResponse.d.ts | 32 + dist/esm/models/V3SupplyOrderGetResponse.js | 39 + dist/esm/models/V3SupplyOrderListRequest.d.ts | 61 + dist/esm/models/V3SupplyOrderListRequest.js | 55 + .../esm/models/V3SupplyOrderListResponse.d.ts | 40 + dist/esm/models/V3SupplyOrderListResponse.js | 40 + dist/esm/models/V3TimeRange.d.ts | 37 + dist/esm/models/V3TimeRange.js | 40 + dist/esm/models/V3User.d.ts | 44 + dist/esm/models/V3User.js | 40 + .../V4FbsPostingShipPackageV4Request.d.ts | 38 + .../V4FbsPostingShipPackageV4Request.js | 43 + ...FbsPostingShipPackageV4RequestProduct.d.ts | 43 + ...V4FbsPostingShipPackageV4RequestProduct.js | 46 + .../V4FbsPostingShipPackageV4Response.d.ts | 31 + .../V4FbsPostingShipPackageV4Response.js | 38 + ...GetProductAttributesResponseModelInfo.d.ts | 37 + ...V4GetProductAttributesResponseModelInfo.js | 40 + .../V4GetProductAttributesResponsePdf.d.ts | 37 + .../V4GetProductAttributesResponsePdf.js | 40 + .../models/V4GetProductInfoStocksRequest.d.ts | 44 + .../models/V4GetProductInfoStocksRequest.js | 47 + .../V4GetProductInfoStocksRequestFilter.d.ts | 51 + .../V4GetProductInfoStocksRequestFilter.js | 46 + .../V4GetProductInfoStocksResponse.d.ts | 44 + .../models/V4GetProductInfoStocksResponse.js | 43 + .../V4GetProductInfoStocksResponseItem.d.ts | 44 + .../V4GetProductInfoStocksResponseItem.js | 43 + dist/esm/models/V4GetUploadQuotaResponse.d.ts | 53 + dist/esm/models/V4GetUploadQuotaResponse.js | 48 + dist/esm/models/V4Visibility.d.ts | 79 + dist/esm/models/V4Visibility.js | 95 + ...PostingProductExemplarStatusV5Request.d.ts | 31 + ...bsPostingProductExemplarStatusV5Request.js | 40 + ...ostingProductExemplarStatusV5Response.d.ts | 50 + ...sPostingProductExemplarStatusV5Response.js | 43 + ...roductExemplarStatusV5ResponseProduct.d.ts | 38 + ...gProductExemplarStatusV5ResponseProduct.js | 41 + ...emplarStatusV5ResponseProductExemplar.d.ts | 104 + ...ExemplarStatusV5ResponseProductExemplar.js | 63 + ...arStatusV5ResponseProductExemplarMark.d.ts | 57 + ...plarStatusV5ResponseProductExemplarMark.js | 44 + ...stingProductExemplarValidateV5Request.d.ts | 38 + ...PostingProductExemplarValidateV5Request.js | 45 + ...oductExemplarValidateV5RequestProduct.d.ts | 38 + ...ProductExemplarValidateV5RequestProduct.js | 45 + ...mplarValidateV5RequestProductExemplar.d.ts | 50 + ...xemplarValidateV5RequestProductExemplar.js | 45 + ...rValidateV5RequestProductExemplarMark.d.ts | 41 + ...larValidateV5RequestProductExemplarMark.js | 40 + ...tingProductExemplarValidateV5Response.d.ts | 32 + ...ostingProductExemplarValidateV5Response.js | 39 + ...ductExemplarValidateV5ResponseProduct.d.ts | 50 + ...roductExemplarValidateV5ResponseProduct.js | 45 + ...plarValidateV5ResponseProductExemplar.d.ts | 62 + ...emplarValidateV5ResponseProductExemplar.js | 49 + ...ValidateV5ResponseProductExemplarMark.d.ts | 53 + ...arValidateV5ResponseProductExemplarMark.js | 44 + ...ngProductExemplarCreateOrGetV6Request.d.ts | 31 + ...tingProductExemplarCreateOrGetV6Request.js | 40 + ...gProductExemplarCreateOrGetV6Response.d.ts | 44 + ...ingProductExemplarCreateOrGetV6Response.js | 43 + ...FbsPostingProductExemplarSetV6Request.d.ts | 44 + ...V6FbsPostingProductExemplarSetV6Request.js | 47 + .../ValidationErrorCharacteristicEnum.d.ts | 45 + .../ValidationErrorCharacteristicEnum.js | 61 + dist/esm/models/ValidationResultItem.d.ts | 44 + dist/esm/models/ValidationResultItem.js | 43 + .../models/ValidationResultItemStateEnum.d.ts | 27 + .../models/ValidationResultItemStateEnum.js | 43 + .../ValidationResultValidationError.d.ts | 58 + .../models/ValidationResultValidationError.js | 49 + ...lidationResultValidationErrorTypeEnum.d.ts | 29 + ...ValidationResultValidationErrorTypeEnum.js | 45 + dist/esm/models/ValueCargoType.d.ts | 27 + dist/esm/models/ValueCargoType.js | 43 + dist/esm/models/ValueItem.d.ts | 55 + dist/esm/models/ValueItem.js | 46 + dist/esm/models/ValueTimezoneInfo.d.ts | 37 + dist/esm/models/ValueTimezoneInfo.js | 40 + .../VehicleCanNotSetVehicleReasonEnum.d.ts | 27 + .../VehicleCanNotSetVehicleReasonEnum.js | 43 + dist/esm/models/WarehouseAddress.d.ts | 68 + dist/esm/models/WarehouseAddress.js | 51 + .../models/WarehouseAddressCoordinates.d.ts | 37 + .../esm/models/WarehouseAddressCoordinates.js | 40 + dist/esm/models/WarehouseAddressInfo.d.ts | 49 + dist/esm/models/WarehouseAddressInfo.js | 44 + .../models/WarehouseAvailabilityStatus.d.ts | 39 + .../esm/models/WarehouseAvailabilityStatus.js | 42 + .../WarehouseCarriageLabelTypeEnum.d.ts | 29 + .../models/WarehouseCarriageLabelTypeEnum.js | 45 + dist/esm/models/WarehouseContacts.d.ts | 31 + dist/esm/models/WarehouseContacts.js | 38 + .../WarehouseDeliveryMethodListRequest.d.ts | 44 + .../WarehouseDeliveryMethodListRequest.js | 45 + .../WarehouseDeliveryMethodListResponse.d.ts | 41 + .../WarehouseDeliveryMethodListResponse.js | 41 + ...ateRequestDeliveryMethodDeliveryCosts.d.ts | 55 + ...reateRequestDeliveryMethodDeliveryCosts.js | 46 + ...foResponseWarehouseReturnMileSettings.d.ts | 44 + ...InfoResponseWarehouseReturnMileSettings.js | 43 + ...ickUpHistoryListResponseHistoryEntity.d.ts | 67 + ...sPickUpHistoryListResponseHistoryEntity.js | 48 + ...UpPlanningListResponseResultWarehouse.d.ts | 64 + ...ckUpPlanningListResponseResultWarehouse.js | 48 + dist/esm/models/WarehouseFirstMile.d.ts | 62 + dist/esm/models/WarehouseFirstMile.js | 49 + dist/esm/models/WarehouseFirstMileType.d.ts | 57 + dist/esm/models/WarehouseFirstMileType.js | 51 + ...idProductsGetResponseValidationResult.d.ts | 46 + ...alidProductsGetResponseValidationResult.js | 45 + .../WarehouseListResponseWarehouse.d.ts | 165 ++ .../models/WarehouseListResponseWarehouse.js | 85 + .../WarehouseListV2ResponseWarehouse.d.ts | 207 ++ .../WarehouseListV2ResponseWarehouse.js | 97 + ...istResponseWarehouseWarehouseTypeEnum.d.ts | 49 + ...NListResponseWarehouseWarehouseTypeEnum.js | 65 + .../esm/models/WarehouseStorageWarehouse.d.ts | 43 + dist/esm/models/WarehouseStorageWarehouse.js | 42 + dist/esm/models/WarehouseSupplyTagEnum.d.ts | 32 + dist/esm/models/WarehouseSupplyTagEnum.js | 48 + dist/esm/models/WarehouseTimetable.d.ts | 44 + dist/esm/models/WarehouseTimetable.js | 43 + .../WarehouseV1WarehouseRfbsPauseRequest.d.ts | 31 + .../WarehouseV1WarehouseRfbsPauseRequest.js | 38 + ...WarehouseV1WarehouseRfbsPauseResponse.d.ts | 31 + .../WarehouseV1WarehouseRfbsPauseResponse.js | 38 + ...arehouseV1WarehouseRfbsUnpauseRequest.d.ts | 31 + .../WarehouseV1WarehouseRfbsUnpauseRequest.js | 38 + ...rehouseV1WarehouseRfbsUnpauseResponse.d.ts | 31 + ...WarehouseV1WarehouseRfbsUnpauseResponse.js | 38 + ...ResponseDeliveryMethodTPLDropOffPoint.d.ts | 50 + ...V2ResponseDeliveryMethodTPLDropOffPoint.js | 45 + ...thodTPLDropOffPointAddressCoordinates.d.ts | 37 + ...MethodTPLDropOffPointAddressCoordinates.js | 40 + .../WarehouseWarehouseListResponse.d.ts | 32 + .../models/WarehouseWarehouseListResponse.js | 39 + dist/esm/models/WarehouseWorkingDay.d.ts | 44 + dist/esm/models/WarehouseWorkingDay.js | 43 + .../models/WarehouseWorkingDayDayEnum.d.ts | 39 + dist/esm/models/WarehouseWorkingDayDayEnum.js | 55 + dist/esm/models/WarehouseWorkingDaysEnum.d.ts | 30 + dist/esm/models/WarehouseWorkingDaysEnum.js | 46 + dist/esm/models/WorkingHoursPeriods.d.ts | 39 + dist/esm/models/WorkingHoursPeriods.js | 42 + dist/esm/models/index.d.ts | 2122 ++++++++++++++++ dist/esm/models/index.js | 2124 ++++++++++++++++ dist/esm/runtime.d.ts | 181 ++ dist/esm/runtime.js | 326 +++ dist/index.d.ts | 3 + dist/index.js | 21 + dist/models/ActionParameter.d.ts | 141 ++ dist/models/ActionParameter.js | 85 + .../ActionParameterDiscountTypeEnum.d.ts | 35 + .../models/ActionParameterDiscountTypeEnum.js | 58 + .../ActionParameterVoucherParameter.d.ts | 45 + .../models/ActionParameterVoucherParameter.js | 49 + ...tionParameterVoucherParameterTypeEnum.d.ts | 31 + ...ActionParameterVoucherParameterTypeEnum.js | 54 + ...tionsAutoAddProductsCandidatesRequest.d.ts | 51 + ...ActionsAutoAddProductsCandidatesRequest.js | 56 + ...ionsAutoAddProductsCandidatesResponse.d.ts | 38 + ...ctionsAutoAddProductsCandidatesResponse.js | 47 + ...AddProductsCandidatesResponseProducts.d.ts | 103 + ...toAddProductsCandidatesResponseProducts.js | 68 + ...V1ActionsAutoAddProductsDeleteRequest.d.ts | 45 + ...nsV1ActionsAutoAddProductsDeleteRequest.js | 48 + ...1ActionsAutoAddProductsDeleteResponse.d.ts | 31 + ...sV1ActionsAutoAddProductsDeleteResponse.js | 44 + ...nsV1ActionsAutoAddProductsListRequest.d.ts | 51 + ...ionsV1ActionsAutoAddProductsListRequest.js | 56 + ...sV1ActionsAutoAddProductsListResponse.d.ts | 38 + ...onsV1ActionsAutoAddProductsListResponse.js | 47 + ...nsAutoAddProductsListResponseProducts.d.ts | 107 + ...ionsAutoAddProductsListResponseProducts.js | 68 + ...V1ActionsAutoAddProductsUpdateRequest.d.ts | 45 + ...nsV1ActionsAutoAddProductsUpdateRequest.js | 49 + ...sAutoAddProductsUpdateRequestToUpdate.d.ts | 49 + ...onsAutoAddProductsUpdateRequestToUpdate.js | 50 + ...1ActionsAutoAddProductsUpdateResponse.d.ts | 59 + ...sV1ActionsAutoAddProductsUpdateResponse.js | 56 + ...ddProductsUpdateResponseBelowMinPrice.d.ts | 37 + ...oAddProductsUpdateResponseBelowMinPrice.js | 46 + ...oductsUpdateResponseExtremelyLowPrice.d.ts | 37 + ...ProductsUpdateResponseExtremelyLowPrice.js | 46 + ...oAddProductsUpdateResponseFailedPrice.d.ts | 40 + ...utoAddProductsUpdateResponseFailedPrice.js | 46 + ...AutoAddProductsUpdateResponseRejected.d.ts | 44 + ...nsAutoAddProductsUpdateResponseRejected.js | 49 + ...roductsUpdateResponseRejectedCodeEnum.d.ts | 37 + ...dProductsUpdateResponseRejectedCodeEnum.js | 60 + .../models/AddStrategyItemsResponseError.d.ts | 43 + dist/models/AddStrategyItemsResponseError.js | 48 + .../AnalyticsAnalyticsGetDataRequest.d.ts | 125 + .../AnalyticsAnalyticsGetDataRequest.js | 71 + .../AnalyticsAnalyticsGetDataResponse.d.ts | 38 + .../AnalyticsAnalyticsGetDataResponse.js | 47 + dist/models/AnalyticsDataRow.d.ts | 38 + dist/models/AnalyticsDataRow.js | 47 + dist/models/AnalyticsDataRowDimension.d.ts | 37 + dist/models/AnalyticsDataRowDimension.js | 46 + dist/models/AnalyticsFilter.d.ts | 51 + dist/models/AnalyticsFilter.js | 48 + .../AnalyticsGetDataResponseResult.d.ts | 38 + dist/models/AnalyticsGetDataResponseResult.js | 47 + ...StockOnWarehousesRequestWarehouseType.d.ts | 29 + ...etStockOnWarehousesRequestWarehouseType.js | 52 + ...icsProductQueriesDetailsResponseQuery.d.ts | 85 + ...yticsProductQueriesDetailsResponseQuery.js | 62 + .../AnalyticsProductQueriesRequestSortBy.d.ts | 33 + .../AnalyticsProductQueriesRequestSortBy.js | 56 + ...AnalyticsProductQueriesRequestSortDir.d.ts | 27 + .../AnalyticsProductQueriesRequestSortDir.js | 50 + ...ProductQueriesResponseAnalyticsPeriod.d.ts | 37 + ...csProductQueriesResponseAnalyticsPeriod.js | 46 + dist/models/AnalyticsSorting.d.ts | 40 + dist/models/AnalyticsSorting.js | 46 + .../AnalyticsStockOnWarehouseRequest.d.ts | 44 + .../AnalyticsStockOnWarehouseRequest.js | 51 + .../AnalyticsStockOnWarehouseResponse.d.ts | 32 + .../AnalyticsStockOnWarehouseResponse.js | 45 + ...alyticsStockOnWarehouseResponseResult.d.ts | 32 + ...AnalyticsStockOnWarehouseResponseResult.js | 45 + .../AnalyticsStockOnWarehouseResultRows.d.ts | 67 + .../AnalyticsStockOnWarehouseResultRows.js | 56 + ...eclineDiscountTasksResponseFailDetail.d.ts | 37 + ...eDeclineDiscountTasksResponseFailDetail.js | 46 + dist/models/ArrivalPassListRequestFilter.d.ts | 63 + dist/models/ArrivalPassListRequestFilter.js | 52 + .../ArrivalpassArrivalPassCreateRequest.d.ts | 32 + .../ArrivalpassArrivalPassCreateRequest.js | 47 + ...ssArrivalPassCreateRequestArrivalPass.d.ts | 69 + ...passArrivalPassCreateRequestArrivalPass.js | 70 + .../ArrivalpassArrivalPassCreateResponse.d.ts | 31 + .../ArrivalpassArrivalPassCreateResponse.js | 44 + .../ArrivalpassArrivalPassDeleteRequest.d.ts | 31 + .../ArrivalpassArrivalPassDeleteRequest.js | 46 + .../ArrivalpassArrivalPassListRequest.d.ts | 45 + .../ArrivalpassArrivalPassListRequest.js | 51 + .../ArrivalpassArrivalPassListResponse.d.ts | 40 + .../ArrivalpassArrivalPassListResponse.js | 47 + ...assArrivalPassListResponseArrivalPass.d.ts | 86 + ...lpassArrivalPassListResponseArrivalPass.js | 62 + .../ArrivalpassArrivalPassUpdateRequest.d.ts | 32 + .../ArrivalpassArrivalPassUpdateRequest.js | 47 + ...ssArrivalPassUpdateRequestArrivalPass.d.ts | 65 + ...passArrivalPassUpdateRequestArrivalPass.js | 66 + ...ssemblyFbsProductListResponseProducts.d.ts | 62 + .../AssemblyFbsProductListResponseProducts.js | 55 + dist/models/AvailabilityReason.d.ts | 38 + dist/models/AvailabilityReason.js | 47 + .../AvailabilityStatusInvalidReasonEnum.d.ts | 43 + .../AvailabilityStatusInvalidReasonEnum.js | 66 + dist/models/AvailabilityStatusStateEnum.d.ts | 31 + dist/models/AvailabilityStatusStateEnum.js | 54 + ...dBrandCompanyCertificationListRequest.d.ts | 37 + ...andBrandCompanyCertificationListRequest.js | 50 + ...BrandCompanyCertificationListResponse.d.ts | 32 + ...ndBrandCompanyCertificationListResponse.js | 45 + ...icationListResponseBrandCertification.d.ts | 40 + ...ificationListResponseBrandCertification.js | 46 + ...nListResponseBrandCertificationResult.d.ts | 38 + ...ionListResponseBrandCertificationResult.js | 47 + .../CancelSupplyResultsCancelSupplyError.d.ts | 28 + .../CancelSupplyResultsCancelSupplyError.js | 51 + ...owabilityCanNotCancelSupplyReasonEnum.d.ts | 29 + ...llowabilityCanNotCancelSupplyReasonEnum.js | 52 + dist/models/CancellationErrorCode.d.ts | 29 + dist/models/CancellationErrorCode.js | 52 + .../CancellationStateCancellationError.d.ts | 38 + .../CancellationStateCancellationError.js | 47 + dist/models/CargoInfoContentTypeEnum.d.ts | 31 + dist/models/CargoInfoContentTypeEnum.js | 54 + .../CargoInfoPlacementZoneTypeEnum.d.ts | 31 + dist/models/CargoInfoPlacementZoneTypeEnum.js | 54 + dist/models/CargoInfoTrackingInfo.d.ts | 45 + dist/models/CargoInfoTrackingInfo.js | 50 + .../CargoInfoTrackingInfoStatusEnum.d.ts | 47 + .../models/CargoInfoTrackingInfoStatusEnum.js | 70 + .../models/CargoInfoTrackingInfoTypeEnum.d.ts | 29 + dist/models/CargoInfoTrackingInfoTypeEnum.js | 52 + dist/models/CargoValue.d.ts | 31 + dist/models/CargoValue.js | 44 + .../CargoesCreateErrorsErrorReason.d.ts | 32 + dist/models/CargoesCreateErrorsErrorReason.js | 55 + .../CargoesCreateErrorsItemValidation.d.ts | 50 + .../CargoesCreateErrorsItemValidation.js | 51 + .../models/CargoesCreateErrorsReasonEnum.d.ts | 33 + dist/models/CargoesCreateErrorsReasonEnum.js | 56 + .../CargoesCreateInfoV2ResponseResult.d.ts | 32 + .../CargoesCreateInfoV2ResponseResult.js | 45 + ...CargoesCreateInfoV2ResponseStatusEnum.d.ts | 30 + .../CargoesCreateInfoV2ResponseStatusEnum.js | 53 + .../CargoesCreateV2ErrorsItemValidation.d.ts | 50 + .../CargoesCreateV2ErrorsItemValidation.js | 51 + ...CargoesDeleteStatusResponseStatusEnum.d.ts | 31 + .../CargoesDeleteStatusResponseStatusEnum.js | 54 + dist/models/CargoesGetResponseSupply.d.ts | 44 + dist/models/CargoesGetResponseSupply.js | 49 + .../CargoesPresentRuleCargoCountPerType.d.ts | 38 + .../CargoesPresentRuleCargoCountPerType.js | 47 + ...rgoesPresentRuleCargoCountPerTypeEnum.d.ts | 27 + ...CargoesPresentRuleCargoCountPerTypeEnum.js | 50 + .../CargoesRulesGetResponseSupplyCheck.d.ts | 73 + .../CargoesRulesGetResponseSupplyCheck.js | 62 + ...oesLabelTransportByOrderCreateRequest.d.ts | 31 + ...rgoesLabelTransportByOrderCreateRequest.js | 46 + ...esLabelTransportByOrderCreateResponse.d.ts | 45 + ...goesLabelTransportByOrderCreateResponse.js | 47 + ...ByOrderCreateResponseErrorReasonsEnum.d.ts | 28 + ...rtByOrderCreateResponseErrorReasonsEnum.js | 51 + ...oesLabelTransportByOrderStatusRequest.d.ts | 31 + ...rgoesLabelTransportByOrderStatusRequest.js | 46 + ...esLabelTransportByOrderStatusResponse.d.ts | 53 + ...goesLabelTransportByOrderStatusResponse.js | 51 + ...ByOrderStatusResponseErrorReasonsEnum.d.ts | 28 + ...rtByOrderStatusResponseErrorReasonsEnum.js | 51 + ...lTransportByOrderStatusResponseResult.d.ts | 37 + ...belTransportByOrderStatusResponseResult.js | 46 + ...nsportByOrderStatusResponseStatusEnum.d.ts | 29 + ...ransportByOrderStatusResponseStatusEnum.js | 52 + ...sV1CargoesLabelTransportCreateRequest.d.ts | 37 + ...oesV1CargoesLabelTransportCreateRequest.js | 48 + ...V1CargoesLabelTransportCreateResponse.d.ts | 46 + ...esV1CargoesLabelTransportCreateResponse.js | 47 + ...ansportCreateResponseErrorReasonsEnum.d.ts | 29 + ...TransportCreateResponseErrorReasonsEnum.js | 52 + ...sV1CargoesLabelTransportStatusRequest.d.ts | 31 + ...oesV1CargoesLabelTransportStatusRequest.js | 44 + ...V1CargoesLabelTransportStatusResponse.d.ts | 54 + ...esV1CargoesLabelTransportStatusResponse.js | 51 + ...ansportStatusResponseErrorReasonsEnum.d.ts | 29 + ...TransportStatusResponseErrorReasonsEnum.js | 52 + ...oesLabelTransportStatusResponseResult.d.ts | 31 + ...rgoesLabelTransportStatusResponseResult.js | 44 + ...abelTransportStatusResponseStatusEnum.d.ts | 29 + ...sLabelTransportStatusResponseStatusEnum.js | 52 + .../CargoesV1CargoesSuppliesGetRequest.d.ts | 31 + .../CargoesV1CargoesSuppliesGetRequest.js | 46 + .../CargoesV1CargoesSuppliesGetResponse.d.ts | 38 + .../CargoesV1CargoesSuppliesGetResponse.js | 47 + ...oesSuppliesGetResponseSuppliesCargoes.d.ts | 51 + ...rgoesSuppliesGetResponseSuppliesCargoes.js | 52 + ...CargoesCargoesWithoutTransportCargoes.d.ts | 43 + ...esCargoesCargoesWithoutTransportCargoes.js | 48 + ...sponseSuppliesCargoesTransportCargoes.d.ts | 51 + ...ResponseSuppliesCargoesTransportCargoes.js | 52 + ...uppliesCargoesTransportCargoesCargoes.d.ts | 43 + ...eSuppliesCargoesTransportCargoesCargoes.js | 48 + ...ppliesCargoesTransportCargoesTypeEnum.d.ts | 24 + ...SuppliesCargoesTransportCargoesTypeEnum.js | 47 + ...goesV1CargoesTransportActivateRequest.d.ts | 38 + ...argoesV1CargoesTransportActivateRequest.js | 50 + ...oesV1CargoesTransportActivateResponse.d.ts | 31 + ...rgoesV1CargoesTransportActivateResponse.js | 44 + ...CargoesTransportActivateStatusRequest.d.ts | 31 + ...V1CargoesTransportActivateStatusRequest.js | 46 + ...argoesTransportActivateStatusResponse.d.ts | 43 + ...1CargoesTransportActivateStatusResponse.js | 48 + ...ctivateStatusResponseErrorReasonsEnum.d.ts | 26 + ...tActivateStatusResponseErrorReasonsEnum.js | 49 + ...sportActivateStatusResponseStatusEnum.d.ts | 29 + ...ansportActivateStatusResponseStatusEnum.js | 52 + .../CargoesV1CargoesTransportBindRequest.d.ts | 44 + .../CargoesV1CargoesTransportBindRequest.js | 51 + ...ransportBindRequestTransportCargoBind.d.ts | 37 + ...sTransportBindRequestTransportCargoBind.js | 50 + ...CargoesV1CargoesTransportBindResponse.d.ts | 50 + .../CargoesV1CargoesTransportBindResponse.js | 47 + ...TransportBindResponseErrorReasonsEnum.d.ts | 33 + ...esTransportBindResponseErrorReasonsEnum.js | 56 + ...esV1CargoesTransportBindStatusRequest.d.ts | 31 + ...goesV1CargoesTransportBindStatusRequest.js | 46 + ...sV1CargoesTransportBindStatusResponse.d.ts | 51 + ...oesV1CargoesTransportBindStatusResponse.js | 48 + ...ortBindStatusResponseErrorReasonsEnum.d.ts | 33 + ...sportBindStatusResponseErrorReasonsEnum.js | 56 + ...TransportBindStatusResponseStatusEnum.d.ts | 29 + ...esTransportBindStatusResponseStatusEnum.js | 52 + ...argoesV1CargoesTransportCreateRequest.d.ts | 38 + .../CargoesV1CargoesTransportCreateRequest.js | 51 + ...ransportCreateRequestTransportCargoes.d.ts | 38 + ...sTransportCreateRequestTransportCargoes.js | 51 + ...CreateRequestTransportCargoesTypeEnum.d.ts | 24 + ...rtCreateRequestTransportCargoesTypeEnum.js | 47 + ...rgoesV1CargoesTransportCreateResponse.d.ts | 50 + ...CargoesV1CargoesTransportCreateResponse.js | 47 + ...ansportCreateResponseErrorReasonsEnum.d.ts | 33 + ...TransportCreateResponseErrorReasonsEnum.js | 56 + ...V1CargoesTransportCreateStatusRequest.d.ts | 31 + ...esV1CargoesTransportCreateStatusRequest.js | 44 + ...1CargoesTransportCreateStatusResponse.d.ts | 58 + ...sV1CargoesTransportCreateStatusResponse.js | 51 + ...tCreateStatusResponseErrorReasonsEnum.d.ts | 33 + ...ortCreateStatusResponseErrorReasonsEnum.js | 56 + ...esTransportCreateStatusResponseResult.d.ts | 32 + ...goesTransportCreateStatusResponseResult.js | 45 + ...eStatusResponseResultTransportCargoes.d.ts | 38 + ...ateStatusResponseResultTransportCargoes.js | 47 + ...esponseResultTransportCargoesTypeEnum.d.ts | 24 + ...sResponseResultTransportCargoesTypeEnum.js | 47 + ...ansportCreateStatusResponseStatusEnum.d.ts | 29 + ...TransportCreateStatusResponseStatusEnum.js | 52 + .../models/CargoesV2CargoesDeleteRequest.d.ts | 50 + dist/models/CargoesV2CargoesDeleteRequest.js | 55 + ...RequestTransportCargoDeletionTypeEnum.d.ts | 27 + ...teRequestTransportCargoDeletionTypeEnum.js | 50 + .../CargoesV2CargoesDeleteResponse.d.ts | 38 + dist/models/CargoesV2CargoesDeleteResponse.js | 47 + .../CargoesV2CargoesDeleteResponseErrors.d.ts | 58 + .../CargoesV2CargoesDeleteResponseErrors.js | 51 + ...DeleteResponseErrorsCargoErrorReasons.d.ts | 41 + ...esDeleteResponseErrorsCargoErrorReasons.js | 47 + ...rorsCargoErrorReasonsErrorReasonsEnum.d.ts | 24 + ...ErrorsCargoErrorReasonsErrorReasonsEnum.js | 47 + ...eResponseErrorsSupplyErrorReasonsEnum.d.ts | 33 + ...eteResponseErrorsSupplyErrorReasonsEnum.js | 56 + ...ponseErrorsTransportCargoErrorReasons.d.ts | 41 + ...esponseErrorsTransportCargoErrorReasons.js | 47 + ...portCargoErrorReasonsErrorReasonsEnum.d.ts | 24 + ...nsportCargoErrorReasonsErrorReasonsEnum.js | 47 + .../CargoesV2CargoesDeleteStatusRequest.d.ts | 31 + .../CargoesV2CargoesDeleteStatusRequest.js | 46 + .../CargoesV2CargoesDeleteStatusResponse.d.ts | 39 + .../CargoesV2CargoesDeleteStatusResponse.js | 48 + ...esV2CargoesDeleteStatusResponseErrors.d.ts | 58 + ...goesV2CargoesDeleteStatusResponseErrors.js | 51 + ...StatusResponseErrorsCargoErrorReasons.d.ts | 41 + ...teStatusResponseErrorsCargoErrorReasons.js | 47 + ...rorsCargoErrorReasonsErrorReasonsEnum.d.ts | 24 + ...ErrorsCargoErrorReasonsErrorReasonsEnum.js | 47 + ...sResponseErrorsSupplyErrorReasonsEnum.d.ts | 33 + ...tusResponseErrorsSupplyErrorReasonsEnum.js | 56 + ...ponseErrorsTransportCargoErrorReasons.d.ts | 41 + ...esponseErrorsTransportCargoErrorReasons.js | 47 + ...portCargoErrorReasonsErrorReasonsEnum.d.ts | 24 + ...nsportCargoErrorReasonsErrorReasonsEnum.js | 47 + ...CargoesDeleteStatusResponseStatusEnum.d.ts | 31 + ...V2CargoesDeleteStatusResponseStatusEnum.js | 54 + dist/models/CargoesV2CargoesGetRequest.d.ts | 32 + dist/models/CargoesV2CargoesGetRequest.js | 47 + .../CargoesV2CargoesGetRequestSupplies.d.ts | 37 + .../CargoesV2CargoesGetRequestSupplies.js | 50 + dist/models/CargoesV2CargoesGetResponse.d.ts | 32 + dist/models/CargoesV2CargoesGetResponse.js | 45 + .../CargoesV2CargoesGetResponseSupplies.d.ts | 64 + .../CargoesV2CargoesGetResponseSupplies.js | 57 + ...esV2CargoesGetResponseSuppliesCargoes.d.ts | 71 + ...goesV2CargoesGetResponseSuppliesCargoes.js | 60 + ...esponseSuppliesCargoesContentTypeEnum.d.ts | 31 + ...tResponseSuppliesCargoesContentTypeEnum.js | 54 + ...eSuppliesCargoesPlacementZoneTypeEnum.d.ts | 31 + ...nseSuppliesCargoesPlacementZoneTypeEnum.js | 54 + ...etResponseSuppliesCargoesTrackingInfo.d.ts | 46 + ...sGetResponseSuppliesCargoesTrackingInfo.js | 51 + ...eSuppliesCargoesTrackingInfoArrivalAt.d.ts | 38 + ...nseSuppliesCargoesTrackingInfoArrivalAt.js | 47 + ...goesTrackingInfoArrivalAtTimezoneInfo.d.ts | 37 + ...argoesTrackingInfoArrivalAtTimezoneInfo.js | 46 + ...SuppliesCargoesTrackingInfoStatusEnum.d.ts | 49 + ...seSuppliesCargoesTrackingInfoStatusEnum.js | 72 + ...seSuppliesCargoesTrackingInfoTypeEnum.d.ts | 29 + ...onseSuppliesCargoesTrackingInfoTypeEnum.js | 52 + ...oesGetResponseSuppliesCargoesTypeEnum.d.ts | 29 + ...rgoesGetResponseSuppliesCargoesTypeEnum.js | 52 + ...oesV2CargoesGetResponseSuppliesLimits.d.ts | 49 + ...rgoesV2CargoesGetResponseSuppliesLimits.js | 50 + ...esGetResponseSuppliesTransportCargoes.d.ts | 57 + ...goesGetResponseSuppliesTransportCargoes.js | 54 + ...eSuppliesTransportCargoesTrackingInfo.d.ts | 46 + ...nseSuppliesTransportCargoesTrackingInfo.js | 51 + ...TransportCargoesTrackingInfoArrivalAt.d.ts | 38 + ...esTransportCargoesTrackingInfoArrivalAt.js | 47 + ...tCargoesTrackingInfoArrivalAtTimezone.d.ts | 37 + ...ortCargoesTrackingInfoArrivalAtTimezone.js | 46 + ...ransportCargoesTrackingInfoStatusEnum.d.ts | 43 + ...sTransportCargoesTrackingInfoStatusEnum.js | 66 + ...sTransportCargoesTrackingInfoTypeEnum.d.ts | 29 + ...iesTransportCargoesTrackingInfoTypeEnum.js | 52 + ...ponseSuppliesTransportCargoesTypeEnum.d.ts | 27 + ...esponseSuppliesTransportCargoesTypeEnum.js | 50 + dist/models/CarriageCarriageGetRequest.d.ts | 31 + dist/models/CarriageCarriageGetRequest.js | 46 + dist/models/CarriageCarriageGetResponse.d.ts | 186 ++ dist/models/CarriageCarriageGetResponse.js | 91 + ...CarriageGetResponseCancelAvailability.d.ts | 38 + ...geCarriageGetResponseCancelAvailability.js | 46 + .../CarriageDeliveryListV2RequestFilter.d.ts | 37 + .../CarriageDeliveryListV2RequestFilter.js | 46 + ...eDeliveryListV2ResponseDeliveryMethod.d.ts | 224 ++ ...ageDeliveryListV2ResponseDeliveryMethod.js | 108 + dist/models/CarriagePickupFee.d.ts | 37 + dist/models/CarriagePickupFee.js | 46 + ...iagev1CarriageContainerApproveRequest.d.ts | 31 + ...rriagev1CarriageContainerApproveRequest.js | 46 + ...agev1CarriageContainerApproveResponse.d.ts | 38 + ...riagev1CarriageContainerApproveResponse.js | 47 + ...ntainerApproveResponseErrorContainers.d.ts | 37 + ...ContainerApproveResponseErrorContainers.js | 46 + ...riagev1CarriageContainerCancelRequest.d.ts | 31 + ...arriagev1CarriageContainerCancelRequest.js | 46 + ...iagev1CarriageContainerCancelResponse.d.ts | 38 + ...rriagev1CarriageContainerCancelResponse.js | 47 + ...ontainerCancelResponseErrorContainers.d.ts | 37 + ...eContainerCancelResponseErrorContainers.js | 46 + ...riagev1CarriageContainerCreateRequest.d.ts | 55 + ...arriagev1CarriageContainerCreateRequest.js | 58 + ...iagev1CarriageContainerCreateResponse.d.ts | 31 + ...rriagev1CarriageContainerCreateResponse.js | 44 + ...v1CarriageContainerDocumentGetRequest.d.ts | 31 + ...gev1CarriageContainerDocumentGetRequest.js | 46 + ...1CarriageContainerDocumentGetResponse.d.ts | 44 + ...ev1CarriageContainerDocumentGetResponse.js | 48 + ...arriagev1CarriageContainerFillRequest.d.ts | 37 + .../Carriagev1CarriageContainerFillRequest.js | 50 + ...rriagev1CarriageContainerFillResponse.d.ts | 38 + ...Carriagev1CarriageContainerFillResponse.js | 47 + ...ageContainerFillResponseErrorPostings.d.ts | 37 + ...riageContainerFillResponseErrorPostings.js | 46 + ...Carriagev1CarriageContainerGetRequest.d.ts | 31 + .../Carriagev1CarriageContainerGetRequest.js | 46 + ...arriagev1CarriageContainerGetResponse.d.ts | 128 + .../Carriagev1CarriageContainerGetResponse.js | 73 + ...1CarriageContainerGetResponsePostings.d.ts | 65 + ...ev1CarriageContainerGetResponsePostings.js | 55 + ...eContainerGetResponsePostingsProducts.d.ts | 73 + ...ageContainerGetResponsePostingsProducts.js | 58 + ...agev1CarriageContainerLabelGetRequest.d.ts | 31 + ...riagev1CarriageContainerLabelGetRequest.js | 44 + ...gev1CarriageContainerLabelGetResponse.d.ts | 39 + ...iagev1CarriageContainerLabelGetResponse.js | 48 + ...riageContainerLabelGetResponseContent.d.ts | 43 + ...arriageContainerLabelGetResponseContent.js | 48 + ...tainerLabelGetResponseErrorContainers.d.ts | 37 + ...ontainerLabelGetResponseErrorContainers.js | 46 + ...arriagev1CarriageContainerListRequest.d.ts | 51 + .../Carriagev1CarriageContainerListRequest.js | 52 + ...ev1CarriageContainerListRequestFilter.d.ts | 79 + ...agev1CarriageContainerListRequestFilter.js | 60 + ...rriageContainerListRequestSortDirEnum.d.ts | 27 + ...CarriageContainerListRequestSortDirEnum.js | 50 + ...rriagev1CarriageContainerListResponse.d.ts | 38 + ...Carriagev1CarriageContainerListResponse.js | 47 + ...rriageContainerListResponseContainers.d.ts | 115 + ...CarriageContainerListResponseContainers.js | 68 + ...gev1CarriageContainerPlaceIntoRequest.d.ts | 37 + ...iagev1CarriageContainerPlaceIntoRequest.js | 50 + ...ev1CarriageContainerPlaceIntoResponse.d.ts | 38 + ...agev1CarriageContainerPlaceIntoResponse.js | 47 + ...ainerPlaceIntoResponseErrorContainers.d.ts | 37 + ...ntainerPlaceIntoResponseErrorContainers.js | 46 + ...ev1CarriageContainerRemoveFromRequest.d.ts | 37 + ...agev1CarriageContainerRemoveFromRequest.js | 50 + ...v1CarriageContainerRemoveFromResponse.d.ts | 38 + ...gev1CarriageContainerRemoveFromResponse.js | 47 + ...inerRemoveFromResponseErrorContainers.d.ts | 37 + ...tainerRemoveFromResponseErrorContainers.js | 46 + ...arriageContainerRemovePostingsRequest.d.ts | 37 + ...1CarriageContainerRemovePostingsRequest.js | 50 + ...rriageContainerRemovePostingsResponse.d.ts | 38 + ...CarriageContainerRemovePostingsResponse.js | 47 + ...erRemovePostingsResponseErrorPostings.d.ts | 37 + ...inerRemovePostingsResponseErrorPostings.js | 46 + ...gev1CarriageContainerStatusGetRequest.d.ts | 31 + ...iagev1CarriageContainerStatusGetRequest.js | 46 + ...ev1CarriageContainerStatusGetResponse.d.ts | 32 + ...agev1CarriageContainerStatusGetResponse.js | 45 + ...eContainerStatusGetResponseContainers.d.ts | 37 + ...ageContainerStatusGetResponseContainers.js | 46 + ...agev1CarriageContainerTaskInfoRequest.d.ts | 31 + ...riagev1CarriageContainerTaskInfoRequest.js | 44 + ...gev1CarriageContainerTaskInfoResponse.d.ts | 42 + ...iagev1CarriageContainerTaskInfoResponse.js | 46 + ...tionV2ProductCertificateCreateRequest.d.ts | 32 + ...cationV2ProductCertificateCreateRequest.js | 45 + ...ProductCertificateCreateRequestParams.d.ts | 96 + ...V2ProductCertificateCreateRequestParams.js | 69 + ...ionV2ProductCertificateCreateResponse.d.ts | 45 + ...ationV2ProductCertificateCreateResponse.js | 50 + ...ProductCertificateCreateResponseParam.d.ts | 57 + ...V2ProductCertificateCreateResponseParam.js | 49 + ...rtificateCreateResponseParamStateEnum.d.ts | 29 + ...CertificateCreateResponseParamStateEnum.js | 52 + ...ctCertificateCreateResponseStatusEnum.d.ts | 27 + ...ductCertificateCreateResponseStatusEnum.js | 50 + ...onV2ProductCertificateOptionsResponse.d.ts | 32 + ...tionV2ProductCertificateOptionsResponse.js | 45 + ...oductCertificateOptionsResponseOption.d.ts | 51 + ...ProductCertificateOptionsResponseOption.js | 46 + ...tionV2ProductCertificateParamsRequest.d.ts | 32 + ...cationV2ProductCertificateParamsRequest.js | 45 + ...ProductCertificateParamsRequestParams.d.ts | 96 + ...V2ProductCertificateParamsRequestParams.js | 69 + ...ParamsRequestParamsAccordanceTypeEnum.d.ts | 41 + ...teParamsRequestParamsAccordanceTypeEnum.js | 64 + ...aramsRequestParamsCertificateTypeEnum.d.ts | 39 + ...eParamsRequestParamsCertificateTypeEnum.js | 62 + ...ificateParamsRequestParamsExpiredDate.d.ts | 39 + ...rtificateParamsRequestParamsExpiredDate.js | 47 + ...uctCertificateParamsRequestParamsFile.d.ts | 37 + ...oductCertificateParamsRequestParamsFile.js | 50 + ...ateParamsRequestParamsProductTypeEnum.d.ts | 41 + ...icateParamsRequestParamsProductTypeEnum.js | 64 + ...ionV2ProductCertificateParamsResponse.d.ts | 32 + ...ationV2ProductCertificateParamsResponse.js | 45 + ...ProductCertificateParamsResponseParam.d.ts | 51 + ...V2ProductCertificateParamsResponseParam.js | 46 + dist/models/ChatChatSendFileRequest.d.ts | 43 + dist/models/ChatChatSendFileRequest.js | 54 + dist/models/ChatChatSendFileResponse.d.ts | 31 + dist/models/ChatChatSendFileResponse.js | 44 + dist/models/ChatChatSendMessageRequest.d.ts | 37 + dist/models/ChatChatSendMessageRequest.js | 50 + dist/models/ChatChatSendMessageResponse.d.ts | 31 + dist/models/ChatChatSendMessageResponse.js | 44 + dist/models/ChatChatStartRequest.d.ts | 31 + dist/models/ChatChatStartRequest.js | 46 + dist/models/ChatChatStartResponse.d.ts | 32 + dist/models/ChatChatStartResponse.js | 45 + dist/models/ChatHistoryRequestFilter.d.ts | 31 + dist/models/ChatHistoryRequestFilter.js | 44 + dist/models/ChatInfoChatStatusEnum.d.ts | 30 + dist/models/ChatInfoChatStatusEnum.js | 53 + dist/models/ChatInfoChatTypeEnum.d.ts | 43 + dist/models/ChatInfoChatTypeEnum.js | 66 + dist/models/ChatMessageContext.d.ts | 37 + dist/models/ChatMessageContext.js | 46 + .../ChatMessageModerateImageStatus.d.ts | 29 + dist/models/ChatMessageModerateImageStatus.js | 52 + dist/models/ChatRead.d.ts | 37 + dist/models/ChatRead.js | 48 + dist/models/ChatStartResponseResult.d.ts | 31 + dist/models/ChatStartResponseResult.js | 44 + dist/models/ClientTimeslotDateRange.d.ts | 37 + dist/models/ClientTimeslotDateRange.js | 46 + dist/models/ClusterWarehouse.d.ts | 81 + dist/models/ClusterWarehouse.js | 59 + dist/models/CommentListResponseComment.d.ts | 95 + dist/models/CommentListResponseComment.js | 64 + dist/models/CommonCreateReportResponse.d.ts | 32 + dist/models/CommonCreateReportResponse.js | 45 + dist/models/CompanyTaxSystemEnum.d.ts | 37 + dist/models/CompanyTaxSystemEnum.js | 60 + ...tentCanNotEditSupplyContentReasonEnum.d.ts | 31 + ...ontentCanNotEditSupplyContentReasonEnum.js | 54 + dist/models/CourierCoordinates.d.ts | 37 + dist/models/CourierCoordinates.js | 50 + ...reateCompanyPostingsReportRequestWith.d.ts | 53 + .../CreateCompanyPostingsReportRequestWith.js | 50 + ...cumentB2BSalesJSONReportResponseBuyer.d.ts | 49 + ...DocumentB2BSalesJSONReportResponseBuyer.js | 50 + ...B2BSalesJSONReportResponseInvoiceInfo.d.ts | 50 + ...ntB2BSalesJSONReportResponseInvoiceInfo.js | 51 + ...alesJSONReportResponseInvoiceInfoType.d.ts | 27 + ...BSalesJSONReportResponseInvoiceInfoType.js | 50 + ...lesJSONReportResponseLegalSaleInvoice.d.ts | 88 + ...SalesJSONReportResponseLegalSaleInvoice.js | 65 + ...sJSONReportResponseLegalSaleOperation.d.ts | 98 + ...lesJSONReportResponseLegalSaleOperation.js | 67 + ...NReportResponseLegalSaleOperationType.d.ts | 27 + ...SONReportResponseLegalSaleOperationType.js | 50 + ...tB2BSalesJSONReportResponseSellerInfo.d.ts | 43 + ...entB2BSalesJSONReportResponseSellerInfo.js | 48 + dist/models/CreateReportResponse.d.ts | 32 + dist/models/CreateReportResponse.js | 45 + dist/models/CreateReportResponseCode.d.ts | 31 + dist/models/CreateReportResponseCode.js | 44 + .../CreateReportResponseCodeNoDeadline.d.ts | 31 + .../CreateReportResponseCodeNoDeadline.js | 44 + ...WarehouseFBSRequestAddressCoordinates.d.ts | 37 + ...teWarehouseFBSRequestAddressCoordinates.js | 50 + ...eWarehouseFBSRequestFirstMileTypeEnum.d.ts | 27 + ...ateWarehouseFBSRequestFirstMileTypeEnum.js | 50 + .../CreateWarehouseFBSRequestOptions.d.ts | 51 + .../CreateWarehouseFBSRequestOptions.js | 50 + ...ateWarehouseFBSRequestWorkingDaysEnum.d.ts | 29 + ...reateWarehouseFBSRequestWorkingDaysEnum.js | 52 + dist/models/CreatedAt.d.ts | 37 + dist/models/CreatedAt.js | 46 + dist/models/DataFulfillment.d.ts | 37 + dist/models/DataFulfillment.js | 46 + dist/models/DataMacrolocalCluster.d.ts | 38 + dist/models/DataMacrolocalCluster.js | 47 + dist/models/DeleteProductsRequestProduct.d.ts | 31 + dist/models/DeleteProductsRequestProduct.js | 46 + .../DeleteProductsResponseDeleteStatus.d.ts | 43 + .../DeleteProductsResponseDeleteStatus.js | 48 + .../models/DeliveryCheckoutResponseSplit.d.ts | 66 + dist/models/DeliveryCheckoutResponseSplit.js | 59 + ...iveryCheckoutResponseSplitCommissions.d.ts | 32 + ...eliveryCheckoutResponseSplitCommissions.js | 45 + ...ryCheckoutResponseSplitDeliveryMethod.d.ts | 70 + ...veryCheckoutResponseSplitDeliveryMethod.js | 59 + .../DeliveryCheckoutResponseSplitItem.d.ts | 43 + .../DeliveryCheckoutResponseSplitItem.js | 48 + ...CheckoutResponseUnavailableReasonEnum.d.ts | 121 + ...ryCheckoutResponseUnavailableReasonEnum.js | 144 ++ ...koutResponseV2SplitDeliverySchemaEnum.d.ts | 29 + ...eckoutResponseV2SplitDeliverySchemaEnum.js | 52 + dist/models/DeliveryCourier.d.ts | 98 + dist/models/DeliveryCourier.js | 75 + .../DeliveryDetailsDropOffPointDetails.d.ts | 44 + .../DeliveryDetailsDropOffPointDetails.js | 49 + dist/models/DeliveryDetailsSupplyType.d.ts | 33 + dist/models/DeliveryDetailsSupplyType.js | 56 + ...veryMapRequestViewportCoordinatesLeft.d.ts | 37 + ...liveryMapRequestViewportCoordinatesLeft.js | 46 + ...eryMapRequestViewportCoordinatesRight.d.ts | 37 + ...iveryMapRequestViewportCoordinatesRight.js | 46 + dist/models/DeliveryMapResponseCluster.d.ts | 58 + dist/models/DeliveryMapResponseCluster.js | 54 + ...DeliveryMapResponseClusterCoordinates.d.ts | 37 + .../DeliveryMapResponseClusterCoordinates.js | 46 + ...veryMapResponseClusterCoordinatesLeft.d.ts | 37 + ...liveryMapResponseClusterCoordinatesLeft.js | 46 + ...eryMapResponseClusterCoordinatesRight.d.ts | 37 + ...iveryMapResponseClusterCoordinatesRight.js | 46 + .../DeliveryMapResponseClusterViewport.d.ts | 39 + .../DeliveryMapResponseClusterViewport.js | 48 + dist/models/DeliveryMethodAddressDetails.d.ts | 49 + dist/models/DeliveryMethodAddressDetails.js | 50 + dist/models/DeliveryMethodCarriage.d.ts | 75 + dist/models/DeliveryMethodCarriage.js | 59 + dist/models/DeliveryMethodDateRange.d.ts | 37 + dist/models/DeliveryMethodDateRange.js | 50 + .../models/DeliveryMethodDeliveryPolygon.d.ts | 50 + dist/models/DeliveryMethodDeliveryPolygon.js | 63 + .../DeliveryMethodDeliveryTypeEnum.d.ts | 31 + dist/models/DeliveryMethodDeliveryTypeEnum.js | 54 + dist/models/DeliveryMethodError.d.ts | 43 + dist/models/DeliveryMethodError.js | 48 + dist/models/DeliveryMethodHolidays.d.ts | 37 + dist/models/DeliveryMethodHolidays.js | 46 + .../DeliveryMethodListRequestFilter.d.ts | 48 + .../models/DeliveryMethodListRequestFilter.js | 48 + ...iveryMethodListResponseDeliveryMethod.d.ts | 96 + ...eliveryMethodListResponseDeliveryMethod.js | 64 + .../DeliveryMethodListV2RequestFilter.d.ts | 57 + .../DeliveryMethodListV2RequestFilter.js | 51 + ...eliveryMethodListV2RequestSortDirEnum.d.ts | 27 + .../DeliveryMethodListV2RequestSortDirEnum.js | 50 + ...eryMethodListV2ResponseDeliveryMethod.d.ts | 117 + ...iveryMethodListV2ResponseDeliveryMethod.js | 69 + dist/models/DeliveryMethodProperties.d.ts | 38 + dist/models/DeliveryMethodProperties.js | 46 + dist/models/DeliveryMethodTimeslot.d.ts | 45 + dist/models/DeliveryMethodTimeslot.js | 50 + dist/models/DeliveryMethodWorkingHours.d.ts | 38 + dist/models/DeliveryMethodWorkingHours.js | 47 + dist/models/DeliveryPickUp.d.ts | 31 + dist/models/DeliveryPickUp.js | 46 + ...yPointInfoResponsePointDeliveryMethod.d.ts | 128 + ...eryPointInfoResponsePointDeliveryMethod.js | 80 + ...sponsePointDeliveryMethodDeliveryType.d.ts | 37 + ...ResponsePointDeliveryMethodDeliveryType.js | 46 + ...veryPointListResponsePointCoordinates.d.ts | 37 + ...liveryPointListResponsePointCoordinates.js | 46 + dist/models/DeliveryTypeCourier.d.ts | 32 + dist/models/DeliveryTypeCourier.js | 45 + .../DeliveryTypeCourierCoordinates.d.ts | 37 + dist/models/DeliveryTypeCourierCoordinates.js | 46 + dist/models/DeliveryTypeEnum.d.ts | 29 + dist/models/DeliveryTypeEnum.js | 52 + dist/models/DeliveryTypePickUp.d.ts | 31 + dist/models/DeliveryTypePickUp.js | 44 + dist/models/DetailsDeliveryDetails.d.ts | 44 + dist/models/DetailsDeliveryDetails.js | 49 + dist/models/DetailsOthers.d.ts | 38 + dist/models/DetailsOthers.js | 47 + dist/models/DetailsPayment.d.ts | 37 + dist/models/DetailsPayment.js | 46 + dist/models/DetailsReturnDetails.d.ts | 44 + dist/models/DetailsReturnDetails.js | 49 + dist/models/DetailsReturns.d.ts | 38 + dist/models/DetailsReturns.js | 47 + dist/models/DetailsRfbsDetails.d.ts | 61 + dist/models/DetailsRfbsDetails.js | 54 + dist/models/DetailsService.d.ts | 38 + dist/models/DetailsService.js | 47 + dist/models/DetailsServices.d.ts | 38 + dist/models/DetailsServices.js | 47 + dist/models/DirEnum.d.ts | 27 + dist/models/DirEnum.js | 50 + dist/models/DirectDetailsBySellerDetails.d.ts | 43 + dist/models/DirectDetailsBySellerDetails.js | 48 + dist/models/DirectDetailsByTplDetails.d.ts | 37 + dist/models/DirectDetailsByTplDetails.js | 46 + dist/models/DirectDetailsTimeslotDetails.d.ts | 38 + dist/models/DirectDetailsTimeslotDetails.js | 47 + ...aftClusterListResponseLogisticCluster.d.ts | 32 + ...DraftClusterListResponseLogisticCluster.js | 45 + .../DraftCreateCommonResponseError.d.ts | 73 + dist/models/DraftCreateCommonResponseError.js | 57 + ...ateCommonResponseErrorItemsValidation.d.ts | 38 + ...reateCommonResponseErrorItemsValidation.js | 47 + .../DraftCreateInfoResponseCluster.d.ts | 63 + dist/models/DraftCreateInfoResponseCluster.js | 60 + dist/models/DraftCreateInfoResponseError.d.ts | 74 + dist/models/DraftCreateInfoResponseError.js | 57 + ...reateInfoResponseErrorErrorReasonEnum.d.ts | 35 + ...tCreateInfoResponseErrorErrorReasonEnum.js | 58 + ...GetWarehouseFboListResponseCoordinate.d.ts | 37 + ...ftGetWarehouseFboListResponseCoordinate.js | 46 + ...raftGetWarehouseFboListResponseSearch.d.ts | 57 + .../DraftGetWarehouseFboListResponseSearch.js | 54 + ...WarehouseFboListResponseWarehouseType.d.ts | 33 + ...etWarehouseFboListResponseWarehouseType.js | 56 + .../DraftTimeslotInfoResponseResult.d.ts | 44 + .../models/DraftTimeslotInfoResponseResult.js | 49 + dist/models/DropOffPointCoordinates.d.ts | 37 + dist/models/DropOffPointCoordinates.js | 46 + dist/models/DropOffWarehouseTimeslotsDay.d.ts | 38 + dist/models/DropOffWarehouseTimeslotsDay.js | 47 + .../DropOffWarehouseTimeslotsDayTimeslot.d.ts | 37 + .../DropOffWarehouseTimeslotsDayTimeslot.js | 46 + dist/models/ErrorData.d.ts | 55 + dist/models/ErrorData.js | 52 + dist/models/ErrorErrorLevel.d.ts | 33 + dist/models/ErrorErrorLevel.js | 56 + dist/models/ErrorErrorMessageEnum.d.ts | 57 + dist/models/ErrorErrorMessageEnum.js | 80 + dist/models/ErrorErrorReasonEnum.d.ts | 34 + dist/models/ErrorErrorReasonEnum.js | 57 + dist/models/ErrorHumanTexts.d.ts | 62 + dist/models/ErrorHumanTexts.js | 55 + dist/models/ErrorItemsValidation.d.ts | 38 + dist/models/ErrorItemsValidation.js | 47 + dist/models/ExemplarMark.d.ts | 41 + dist/models/ExemplarMark.js | 46 + dist/models/ExemplarsMarks.d.ts | 41 + dist/models/ExemplarsMarks.js | 46 + .../FboPostingFboPostingAnalyticsData.d.ts | 92 + .../FboPostingFboPostingAnalyticsData.js | 60 + .../FbpCheckActStateResponseErrorReason.d.ts | 33 + .../FbpCheckActStateResponseErrorReason.js | 56 + ...ConsignmentNoteStateResponseStateType.d.ts | 31 + ...ckConsignmentNoteStateResponseStateType.js | 54 + ...CreateActResponseCreateActErrorReason.d.ts | 24 + ...bpCreateActResponseCreateActErrorReason.js | 47 + ...tDropOffPointListResponseDropOffPoint.d.ts | 55 + ...aftDropOffPointListResponseDropOffPoint.js | 52 + ...ftDropOffProvinceListResponseProvince.d.ts | 43 + ...raftDropOffProvinceListResponseProvince.js | 48 + .../FbpDraftGetResponseDeclineReason.d.ts | 37 + .../FbpDraftGetResponseDeclineReason.js | 46 + ...belResponseLabelCreationStateTypeEnum.d.ts | 31 + ...LabelResponseLabelCreationStateTypeEnum.js | 54 + ...WarehouseListResponseAddressDetailing.d.ts | 61 + ...bpWarehouseListResponseAddressDetailing.js | 54 + .../FbpWarehouseListResponseWarehouse.d.ts | 69 + .../FbpWarehouseListResponseWarehouse.js | 57 + dist/models/Fbpv1DeliveryDetails.d.ts | 53 + dist/models/Fbpv1DeliveryDetails.js | 54 + dist/models/Fbpv1Timeslot.d.ts | 37 + dist/models/Fbpv1Timeslot.js | 46 + dist/models/FbsPostingBarcodes.d.ts | 37 + dist/models/FbsPostingBarcodes.js | 46 + dist/models/FbsPostingDetailCourier.d.ts | 52 + dist/models/FbsPostingDetailCourier.js | 50 + dist/models/FbsPostingDetailPrrOption.d.ts | 54 + dist/models/FbsPostingDetailPrrOption.js | 50 + ...bsPostingMoveStatusResponseMoveStatus.d.ts | 43 + .../FbsPostingMoveStatusResponseMoveStatus.js | 48 + ...tExemplarCreateOrGetV6ResponseProduct.d.ts | 102 + ...uctExemplarCreateOrGetV6ResponseProduct.js | 67 + ...gProductExemplarSetV6RequestExemplars.d.ts | 68 + ...ingProductExemplarSetV6RequestExemplars.js | 59 + ...ngProductExemplarSetV6RequestProducts.d.ts | 38 + ...tingProductExemplarSetV6RequestProducts.js | 51 + .../FbsPostingShipV4RequestPackage.d.ts | 32 + dist/models/FbsPostingShipV4RequestPackage.js | 47 + ...FbsPostingShipV4RequestPackageProduct.d.ts | 37 + .../FbsPostingShipV4RequestPackageProduct.js | 50 + dist/models/FbsPostingShipV4RequestWith.d.ts | 31 + dist/models/FbsPostingShipV4RequestWith.js | 44 + ...stingShipV4ResponseShipAdditionalData.d.ts | 38 + ...PostingShipV4ResponseShipAdditionalData.js | 47 + ...rackingNumberSetRequestTrackingNumber.d.ts | 37 + ...gTrackingNumberSetRequestTrackingNumber.js | 50 + dist/models/Fbsv4FbsPostingShipV4Request.d.ts | 45 + dist/models/Fbsv4FbsPostingShipV4Request.js | 54 + .../models/Fbsv4FbsPostingShipV4Response.d.ts | 38 + dist/models/Fbsv4FbsPostingShipV4Response.js | 47 + ...PostingProductDetailWithoutDimensions.d.ts | 76 + ...v4PostingProductDetailWithoutDimensions.js | 56 + dist/models/FilterPeriod.d.ts | 45 + dist/models/FilterPeriod.js | 46 + dist/models/FilterStatusEnum.d.ts | 28 + dist/models/FilterStatusEnum.js | 51 + dist/models/FilterTimeslotFromRange.d.ts | 44 + dist/models/FilterTimeslotFromRange.js | 49 + dist/models/FilterWithQuant.d.ts | 37 + dist/models/FilterWithQuant.js | 46 + ...CashFlowStatementListResponseCashFlow.d.ts | 68 + ...ceCashFlowStatementListResponseCashFlow.js | 57 + ...wStatementListResponseDeliveryService.d.ts | 45 + ...lowStatementListResponseDeliveryService.js | 46 + ...eCashFlowStatementListResponseDetails.d.ts | 98 + ...nceCashFlowStatementListResponseDetails.js | 71 + ...lowStatementListResponseDetailsOthers.d.ts | 44 + ...hFlowStatementListResponseDetailsOthers.js | 46 + ...lowStatementListResponseReturnService.d.ts | 42 + ...hFlowStatementListResponseReturnService.js | 46 + ...eCashFlowStatementListResponseService.d.ts | 59 + ...nceCashFlowStatementListResponseService.js | 46 + ...FinanceTransactionListV3RequestFilter.d.ts | 99 + .../FinanceTransactionListV3RequestFilter.js | 51 + ...nceTransactionListV3ResponseOperation.d.ts | 114 + ...nanceTransactionListV3ResponseOperation.js | 71 + ...FinanceTransactionTotalsV3RequestDate.d.ts | 45 + .../FinanceTransactionTotalsV3RequestDate.js | 46 + ...inanceV1GetFinanceAccrualByDayRequest.d.ts | 45 + .../FinanceV1GetFinanceAccrualByDayRequest.js | 50 + ...nanceV1GetFinanceAccrualByDayResponse.d.ts | 41 + ...FinanceV1GetFinanceAccrualByDayResponse.js | 47 + ...GetFinanceAccrualByDayResponseAccrual.d.ts | 85 + ...V1GetFinanceAccrualByDayResponseAccrual.js | 66 + ...DayResponseAccrualAccruedCategoryEnum.d.ts | 33 + ...ByDayResponseAccrualAccruedCategoryEnum.js | 56 + ...rualByDayResponseAccrualContainerFees.d.ts | 32 + ...ccrualByDayResponseAccrualContainerFees.js | 45 + ...ponseAccrualContainerFeesContainerFee.d.ts | 38 + ...esponseAccrualContainerFeesContainerFee.js | 47 + ...ceAccrualByDayResponseAccrualItemFees.d.ts | 32 + ...anceAccrualByDayResponseAccrualItemFees.js | 45 + ...alByDayResponseAccrualItemFeesItemFee.d.ts | 38 + ...rualByDayResponseAccrualItemFeesItemFee.js | 47 + ...yDayResponseAccrualItemFeesItemFeeFee.d.ts | 38 + ...lByDayResponseAccrualItemFeesItemFeeFee.js | 47 + ...AccrualByDayResponseAccrualNonItemFee.d.ts | 38 + ...ceAccrualByDayResponseAccrualNonItemFee.js | 47 + ...nceAccrualByDayResponseAccrualPosting.d.ts | 44 + ...nanceAccrualByDayResponseAccrualPosting.js | 49 + ...ualByDayResponseAccrualPostingProduct.d.ts | 45 + ...crualByDayResponseAccrualPostingProduct.js | 50 + ...sponseAccrualPostingProductCommission.d.ts | 80 + ...ResponseAccrualPostingProductCommission.js | 65 + ...ResponseAccrualPostingProductDelivery.d.ts | 39 + ...ayResponseAccrualPostingProductDelivery.js | 48 + ...eAccrualPostingProductDeliveryService.d.ts | 38 + ...nseAccrualPostingProductDeliveryService.js | 47 + ...nceV1GetFinanceAccrualPostingsRequest.d.ts | 31 + ...nanceV1GetFinanceAccrualPostingsRequest.js | 46 + ...ceV1GetFinanceAccrualPostingsResponse.d.ts | 32 + ...anceV1GetFinanceAccrualPostingsResponse.js | 45 + ...ccrualPostingsResponsePostingAccruals.d.ts | 38 + ...eAccrualPostingsResponsePostingAccruals.js | 47 + ...ostingsResponsePostingAccrualsAccrual.d.ts | 63 + ...lPostingsResponsePostingAccrualsAccrual.js | 56 + ...nanceV1GetFinanceAccrualTypesResponse.d.ts | 32 + ...FinanceV1GetFinanceAccrualTypesResponse.js | 45 + ...inanceAccrualTypesResponseAccrualType.d.ts | 43 + ...tFinanceAccrualTypesResponseAccrualType.js | 48 + ...ancev3FinanceTransactionListV3Request.d.ts | 44 + ...inancev3FinanceTransactionListV3Request.js | 53 + ...ncev3FinanceTransactionListV3Response.d.ts | 32 + ...nancev3FinanceTransactionListV3Response.js | 45 + ...inanceTransactionListV3ResponseResult.d.ts | 44 + ...3FinanceTransactionListV3ResponseResult.js | 49 + ...cev3FinanceTransactionTotalsV3Request.d.ts | 52 + ...ancev3FinanceTransactionTotalsV3Request.js | 49 + ...ev3FinanceTransactionTotalsV3Response.d.ts | 32 + ...ncev3FinanceTransactionTotalsV3Response.js | 45 + ...anceTransactionTotalsV3ResponseResult.d.ts | 83 + ...inanceTransactionTotalsV3ResponseResult.js | 58 + dist/models/Financev3Period.d.ts | 37 + dist/models/Financev3Period.js | 50 + dist/models/FirstMileTypeEnum.d.ts | 25 + dist/models/FirstMileTypeEnum.js | 48 + ...etCarriageAvailableListResponseResult.d.ts | 140 ++ .../GetCarriageAvailableListResponseResult.js | 81 + .../GetCompetitorsResponseCompetitorInfo.d.ts | 37 + .../GetCompetitorsResponseCompetitorInfo.js | 46 + ...ionalCancellationListV2RequestFilters.d.ts | 51 + ...itionalCancellationListV2RequestFilters.js | 50 + ...ditionalCancellationListV2RequestWith.d.ts | 31 + ...onditionalCancellationListV2RequestWith.js | 44 + ...ationListV2ResponseCancellationReason.d.ts | 37 + ...llationListV2ResponseCancellationReason.js | 46 + ...ionalCancellationListV2ResponseResult.d.ts | 109 + ...itionalCancellationListV2ResponseResult.js | 71 + ...tionalCancellationListV2ResponseState.d.ts | 44 + ...ditionalCancellationListV2ResponseState.js | 49 + ...ReturnSettingsV1ResponseReturnSetting.d.ts | 45 + ...odReturnSettingsV1ResponseReturnSetting.js | 50 + .../GetDiscountTaskListV2ResponseTask.d.ts | 179 ++ .../GetDiscountTaskListV2ResponseTask.js | 94 + ...tV2ResponseTaskDiscountTaskStatusEnum.d.ts | 31 + ...istV2ResponseTaskDiscountTaskStatusEnum.js | 54 + dist/models/GetEtgbRequestDate.d.ts | 37 + dist/models/GetEtgbRequestDate.js | 50 + dist/models/GetEtgbResponseResult.d.ts | 38 + dist/models/GetEtgbResponseResult.js | 47 + dist/models/GetEtgbResponseResultEtgb.d.ts | 46 + dist/models/GetEtgbResponseResultEtgb.js | 48 + ...atingIndexInfoV1ResponseIndexDynamics.d.ts | 43 + ...SRatingIndexInfoV1ResponseIndexDynamics.js | 48 + .../GetFinanceBalanceV1ResponseCashflows.d.ts | 46 + .../GetFinanceBalanceV1ResponseCashflows.js | 51 + .../GetFinanceBalanceV1ResponseReturns.d.ts | 46 + .../GetFinanceBalanceV1ResponseReturns.js | 51 + ...inanceBalanceV1ResponseReturnsDetails.d.ts | 45 + ...tFinanceBalanceV1ResponseReturnsDetails.js | 50 + .../GetFinanceBalanceV1ResponseSales.d.ts | 46 + .../GetFinanceBalanceV1ResponseSales.js | 51 + ...tFinanceBalanceV1ResponseSalesDetails.d.ts | 45 + ...GetFinanceBalanceV1ResponseSalesDetails.js | 50 + .../GetFinanceBalanceV1ResponseService.d.ts | 38 + .../GetFinanceBalanceV1ResponseService.js | 47 + .../GetFinanceBalanceV1ResponseTotal.d.ts | 53 + .../GetFinanceBalanceV1ResponseTotal.js | 54 + ...tFinanceProductsBuyoutResponseProduct.d.ts | 85 + ...GetFinanceProductsBuyoutResponseProduct.js | 62 + ...tImportProductsInfoResponseResultItem.d.ts | 59 + ...GetImportProductsInfoResponseResultItem.js | 51 + .../GetProductAttributesResponseImage.d.ts | 44 + .../GetProductAttributesResponseImage.js | 48 + ...ctAttributesV3ResponseDictionaryValue.d.ts | 37 + ...ductAttributesV3ResponseDictionaryValue.js | 46 + ...tProductAttributesV4ResponseAttribute.d.ts | 44 + ...GetProductAttributesV4ResponseAttribute.js | 49 + ...etProductInfoListResponseAvailability.d.ts | 50 + .../GetProductInfoListResponseAvailability.js | 51 + .../GetProductInfoListResponseCommission.d.ts | 55 + .../GetProductInfoListResponseCommission.js | 52 + .../GetProductInfoListResponseError.d.ts | 63 + .../models/GetProductInfoListResponseError.js | 56 + .../GetProductInfoListResponseModelInfo.d.ts | 37 + .../GetProductInfoListResponseModelInfo.js | 46 + ...etProductInfoListResponsePriceIndexes.d.ts | 53 + .../GetProductInfoListResponsePriceIndexes.js | 54 + .../GetProductInfoListResponseSource.d.ts | 60 + .../GetProductInfoListResponseSource.js | 53 + .../GetProductInfoListResponseStatuses.d.ts | 80 + .../GetProductInfoListResponseStatuses.js | 60 + .../GetProductInfoListResponseStocks.d.ts | 39 + .../GetProductInfoListResponseStocks.js | 47 + ...GetProductInfoListResponseStocksStock.d.ts | 49 + .../GetProductInfoListResponseStocksStock.js | 50 + ...ductInfoListResponseVisibilityDetails.d.ts | 37 + ...roductInfoListResponseVisibilityDetails.js | 46 + ...uctInfoPricesResponseItemPriceIndexes.d.ts | 72 + ...oductInfoPricesResponseItemPriceIndexes.js | 64 + .../GetProductInfoStocksResponseStock.d.ts | 68 + .../GetProductInfoStocksResponseStock.js | 55 + ...ementZoneInfoResponseProductPlacement.d.ts | 38 + ...acementZoneInfoResponseProductPlacement.js | 47 + ...oductRatingBySkuResponseProductRating.d.ts | 45 + ...ProductRatingBySkuResponseProductRating.js | 49 + ...uctRatingBySkuResponseRatingCondition.d.ts | 49 + ...oductRatingBySkuResponseRatingCondition.js | 50 + ...ProductRatingBySkuResponseRatingGroup.d.ts | 69 + ...etProductRatingBySkuResponseRatingGroup.js | 58 + ...ngBySkuResponseRatingImproveAttribute.d.ts | 37 + ...tingBySkuResponseRatingImproveAttribute.js | 46 + .../GetRealizationReportByDayResponse.d.ts | 32 + .../GetRealizationReportByDayResponse.js | 45 + .../GetRealizationReportByDayResponseRow.d.ts | 64 + .../GetRealizationReportByDayResponseRow.js | 57 + .../GetRealizationReportResponseV2Header.d.ts | 103 + .../GetRealizationReportResponseV2Header.js | 68 + .../GetRealizationReportResponseV2Result.d.ts | 39 + .../GetRealizationReportResponseV2Result.js | 48 + .../GetRealizationReportResponseV2Row.d.ts | 64 + .../GetRealizationReportResponseV2Row.js | 57 + dist/models/GetReturnsListRequestFilter.d.ts | 141 ++ dist/models/GetReturnsListRequestFilter.js | 69 + .../GetReturnsListResponseAdditionalInfo.d.ts | 39 + .../GetReturnsListResponseAdditionalInfo.js | 46 + .../GetReturnsListResponseCompensation.d.ts | 38 + .../GetReturnsListResponseCompensation.js | 47 + ...ReturnsListResponseCompensationStatus.d.ts | 53 + ...etReturnsListResponseCompensationStatus.js | 48 + .../GetReturnsListResponseExemplar.d.ts | 31 + dist/models/GetReturnsListResponseExemplar.js | 44 + .../GetReturnsListResponseLogistic.d.ts | 55 + dist/models/GetReturnsListResponseLogistic.js | 52 + .../GetReturnsListResponsePlaceNow.d.ts | 43 + dist/models/GetReturnsListResponsePlaceNow.js | 48 + .../GetReturnsListResponsePlaceTarget.d.ts | 43 + .../GetReturnsListResponsePlaceTarget.js | 48 + .../models/GetReturnsListResponseProduct.d.ts | 76 + dist/models/GetReturnsListResponseProduct.js | 61 + .../GetReturnsListResponseReturnsItem.d.ts | 163 ++ .../GetReturnsListResponseReturnsItem.js | 91 + .../models/GetReturnsListResponseStorage.d.ts | 69 + dist/models/GetReturnsListResponseStorage.js | 58 + dist/models/GetReturnsListResponseVisual.d.ts | 38 + dist/models/GetReturnsListResponseVisual.js | 47 + .../GetReturnsListResponseVisualStatus.d.ts | 43 + .../GetReturnsListResponseVisualStatus.js | 48 + .../GetSellerActionsV1ResponseAction.d.ts | 132 + .../GetSellerActionsV1ResponseAction.js | 76 + ...rategyIDsByItemIDsResponseProductInfo.d.ts | 37 + ...StrategyIDsByItemIDsResponseProductInfo.js | 46 + .../GetStrategyListResponseStrategy.d.ts | 85 + .../models/GetStrategyListResponseStrategy.js | 58 + ...OrderBundleRequestItemTagsCalculation.d.ts | 37 + ...lyOrderBundleRequestItemTagsCalculation.js | 50 + .../GetUploadQuotaResponseDailyCreate.d.ts | 43 + .../GetUploadQuotaResponseDailyCreate.js | 48 + .../GetUploadQuotaResponseDailyUpdate.d.ts | 43 + .../GetUploadQuotaResponseDailyUpdate.js | 48 + dist/models/GetUploadQuotaResponseTotal.d.ts | 37 + dist/models/GetUploadQuotaResponseTotal.js | 46 + ...ehouseFBSOperationStatusResponseError.d.ts | 37 + ...arehouseFBSOperationStatusResponseError.js | 46 + ...houseFBSOperationStatusResponseResult.d.ts | 31 + ...rehouseFBSOperationStatusResponseResult.js | 44 + ...eFBSOperationStatusResponseStatusEnum.d.ts | 31 + ...useFBSOperationStatusResponseStatusEnum.js | 54 + ...useFBSOperationStatusResponseTypeEnum.d.ts | 35 + ...houseFBSOperationStatusResponseTypeEnum.js | 58 + .../GiveoutInfoResponseArticleDetails.d.ts | 54 + .../GiveoutInfoResponseArticleDetails.js | 50 + .../GiveoutListResponseGiveoutDetails.d.ts | 79 + .../GiveoutListResponseGiveoutDetails.js | 58 + dist/models/GoogleTypeDate.d.ts | 43 + dist/models/GoogleTypeDate.js | 48 + dist/models/GooglerpcStatus.d.ts | 44 + dist/models/GooglerpcStatus.js | 49 + dist/models/HumanTextsParam.d.ts | 37 + dist/models/HumanTextsParam.js | 46 + .../models/ImportProductRequestPromotion.d.ts | 59 + dist/models/ImportProductRequestPromotion.js | 61 + dist/models/ImportProductsRequestPdfList.d.ts | 43 + dist/models/ImportProductsRequestPdfList.js | 48 + dist/models/InvoiceGetV2ResponseResult.d.ts | 74 + dist/models/InvoiceGetV2ResponseResult.js | 55 + dist/models/ItemBundleSummary.d.ts | 43 + dist/models/ItemBundleSummary.js | 48 + dist/models/ItemCommissionsv5.d.ts | 115 + dist/models/ItemCommissionsv5.js | 70 + dist/models/ItemMarketing.d.ts | 51 + dist/models/ItemMarketing.js | 51 + dist/models/ItemPricev5.d.ts | 96 + dist/models/ItemPricev5.js | 62 + dist/models/ItemSize.d.ts | 43 + dist/models/ItemSize.js | 48 + dist/models/ItemStatusError.d.ts | 37 + dist/models/ItemStatusError.js | 46 + dist/models/ItemValidationErrorType.d.ts | 47 + dist/models/ItemValidationErrorType.js | 70 + dist/models/ItemsValidationRejectedItems.d.ts | 64 + dist/models/ItemsValidationRejectedItems.js | 47 + dist/models/LanguageLanguage.d.ts | 34 + dist/models/LanguageLanguage.js | 57 + ...ntsForCreateFBSWarehouseRequestSearch.d.ts | 42 + ...ointsForCreateFBSWarehouseRequestSearch.js | 47 + ...ouseRequestSearchDropOffPointTypeEnum.d.ts | 25 + ...ehouseRequestSearchDropOffPointTypeEnum.js | 48 + ...reateFBSWarehouseResponseDropOffPoint.d.ts | 64 + ...rCreateFBSWarehouseResponseDropOffPoint.js | 57 + ...ntsForUpdateFBSWarehouseRequestSearch.d.ts | 42 + ...ointsForUpdateFBSWarehouseRequestSearch.js | 47 + ...ouseRequestSearchDropOffPointTypeEnum.d.ts | 25 + ...ehouseRequestSearchDropOffPointTypeEnum.js | 48 + ...pdateFBSWarehouseResponseDropOffPoint.d.ts | 64 + ...rUpdateFBSWarehouseResponseDropOffPoint.js | 57 + ...ponseDropOffPointDropOffPointTypeEnum.d.ts | 29 + ...esponseDropOffPointDropOffPointTypeEnum.js | 52 + ...FBSRatingIndexPostingsV1RequestFilter.d.ts | 43 + ...stFBSRatingIndexPostingsV1RequestFilter.js | 52 + ...FBSRatingIndexPostingsV1ResponseError.d.ts | 111 + ...stFBSRatingIndexPostingsV1ResponseError.js | 65 + .../models/ListPostingCodesRequestFilter.d.ts | 43 + dist/models/ListPostingCodesRequestFilter.js | 48 + .../ListPostingCodesRequestWithParams.d.ts | 43 + .../ListPostingCodesRequestWithParams.js | 48 + .../ListPostingCodesResponsePosting.d.ts | 109 + .../models/ListPostingCodesResponsePosting.js | 73 + dist/models/LogisticTimeslotDateRange.d.ts | 37 + dist/models/LogisticTimeslotDateRange.js | 46 + dist/models/MacrolocalClusterCountry.d.ts | 37 + dist/models/MacrolocalClusterCountry.js | 46 + dist/models/MarketingAction.d.ts | 49 + dist/models/MarketingAction.js | 50 + dist/models/MaxPeriodsPeriod.d.ts | 37 + dist/models/MaxPeriodsPeriod.js | 46 + dist/models/MinPeriodsPeriod.d.ts | 37 + dist/models/MinPeriodsPeriod.js | 46 + dist/models/MinUtilizationMoney.d.ts | 37 + dist/models/MinUtilizationMoney.js | 46 + dist/models/MoneyMoney.d.ts | 37 + dist/models/MoneyMoney.js | 46 + dist/models/MoneyMoneyAccrued.d.ts | 37 + dist/models/MoneyMoneyAccrued.js | 46 + dist/models/MoneyMoneyBonus.d.ts | 37 + dist/models/MoneyMoneyBonus.js | 46 + dist/models/MoneyMoneyCoinvestment.d.ts | 37 + dist/models/MoneyMoneyCoinvestment.js | 46 + dist/models/MoneyMoneyComissions.d.ts | 37 + dist/models/MoneyMoneyComissions.js | 46 + dist/models/MoneyMoneyCommission.d.ts | 37 + dist/models/MoneyMoneyCommission.js | 46 + .../models/MoneyMoneyCurrentTariffCharge.d.ts | 37 + dist/models/MoneyMoneyCurrentTariffCharge.js | 46 + .../MoneyMoneyCurrentTariffMinCharge.d.ts | 37 + .../MoneyMoneyCurrentTariffMinCharge.js | 46 + dist/models/MoneyMoneyCustomerPrice.d.ts | 37 + dist/models/MoneyMoneyCustomerPrice.js | 46 + dist/models/MoneyMoneyFBPget.d.ts | 37 + dist/models/MoneyMoneyFBPget.js | 46 + dist/models/MoneyMoneyNextTariffCharge.d.ts | 37 + dist/models/MoneyMoneyNextTariffCharge.js | 46 + .../models/MoneyMoneyNextTariffMinCharge.d.ts | 37 + dist/models/MoneyMoneyNextTariffMinCharge.js | 46 + dist/models/MoneyMoneyPriceWithoutVat.d.ts | 37 + dist/models/MoneyMoneyPriceWithoutVat.js | 46 + dist/models/MoneyMoneySaleAmount.d.ts | 37 + dist/models/MoneyMoneySaleAmount.js | 46 + dist/models/MoneyMoneySaleCommission.d.ts | 37 + dist/models/MoneyMoneySaleCommission.js | 46 + dist/models/MoneyMoneySalePrice.d.ts | 37 + dist/models/MoneyMoneySalePrice.js | 46 + dist/models/MoneyMoneySelf.d.ts | 37 + dist/models/MoneyMoneySelf.js | 46 + dist/models/MoneyMoneySellerPrice.d.ts | 37 + dist/models/MoneyMoneySellerPrice.js | 46 + dist/models/MoneyMoneySplitCommission.d.ts | 37 + dist/models/MoneyMoneySplitCommission.js | 46 + dist/models/MoneyMoneySupplyActAmount.d.ts | 37 + dist/models/MoneyMoneySupplyActAmount.js | 46 + dist/models/MoneyMoneySupplyActAmountVat.d.ts | 37 + dist/models/MoneyMoneySupplyActAmountVat.js | 46 + .../MoneyMoneySupplyActAmountWithoutVat.d.ts | 37 + .../MoneyMoneySupplyActAmountWithoutVat.js | 46 + dist/models/MoneyMoneyTotalAccrued.d.ts | 37 + dist/models/MoneyMoneyTotalAccrued.js | 46 + dist/models/MoneyMoneyTotalAmount.d.ts | 37 + dist/models/MoneyMoneyTotalAmount.js | 46 + dist/models/MoneyPostingMoney.d.ts | 37 + dist/models/MoneyPostingMoney.js | 46 + ...otificationV1CheckNotificationRequest.d.ts | 31 + .../NotificationV1CheckNotificationRequest.js | 46 + ...tificationV1CheckNotificationResponse.d.ts | 39 + ...NotificationV1CheckNotificationResponse.js | 49 + ...ationV1CheckNotificationResponseError.d.ts | 38 + ...icationV1CheckNotificationResponseError.js | 47 + ...heckNotificationResponseErrorTypeEnum.d.ts | 41 + ...1CheckNotificationResponseErrorTypeEnum.js | 64 + ...tificationV1DeleteNotificationRequest.d.ts | 31 + ...NotificationV1DeleteNotificationRequest.js | 46 + ...tificationV1EnableNotificationRequest.d.ts | 40 + ...NotificationV1EnableNotificationRequest.js | 50 + ...V1GetNotificationPushTypeListResponse.d.ts | 32 + ...onV1GetNotificationPushTypeListResponse.js | 47 + ...nPushTypeListResponseNotificationType.d.ts | 45 + ...ionPushTypeListResponseNotificationType.js | 54 + ...esponseNotificationTypeSellerEndpoint.d.ts | 37 + ...tResponseNotificationTypeSellerEndpoint.js | 50 + ...eListResponseNotificationTypeTypeEnum.d.ts | 65 + ...ypeListResponseNotificationTypeTypeEnum.js | 88 + ...otificationV1NotificationListResponse.d.ts | 32 + .../NotificationV1NotificationListResponse.js | 47 + ...1NotificationListResponseNotification.d.ts | 57 + ...nV1NotificationListResponseNotification.js | 63 + ...tResponseNotificationNotificationType.d.ts | 38 + ...istResponseNotificationNotificationType.js | 51 + ...eNotificationNotificationTypeTypeEnum.d.ts | 65 + ...nseNotificationNotificationTypeTypeEnum.js | 88 + .../NotificationV1SetNotificationRequest.d.ts | 60 + .../NotificationV1SetNotificationRequest.js | 51 + ...ationV1SetNotificationRequestTypeEnum.d.ts | 43 + ...icationV1SetNotificationRequestTypeEnum.js | 66 + ...tificationV1UpdateNotificationRequest.d.ts | 66 + ...NotificationV1UpdateNotificationRequest.js | 51 + ...onV1UpdateNotificationRequestTypeEnum.d.ts | 43 + ...tionV1UpdateNotificationRequestTypeEnum.js | 66 + dist/models/OperationItem.d.ts | 37 + dist/models/OperationItem.js | 46 + dist/models/OperationPosting.d.ts | 57 + dist/models/OperationPosting.js | 50 + dist/models/OperationService.d.ts | 75 + dist/models/OperationService.js | 46 + .../OrderCancelCheckResponsePosting.d.ts | 44 + .../models/OrderCancelCheckResponsePosting.js | 48 + .../OrderCancelCheckResponsePostingGroup.d.ts | 31 + .../OrderCancelCheckResponsePostingGroup.js | 44 + dist/models/OrderCreateRequestBuyer.d.ts | 49 + dist/models/OrderCreateRequestBuyer.js | 56 + dist/models/OrderCreateRequestDelivery.d.ts | 39 + dist/models/OrderCreateRequestDelivery.js | 48 + .../OrderCreateRequestDeliveryPrice.d.ts | 43 + .../models/OrderCreateRequestDeliveryPrice.js | 48 + dist/models/OrderCreateRequestPrice.d.ts | 43 + dist/models/OrderCreateRequestPrice.js | 52 + dist/models/OrderCreateRequestRecipient.d.ts | 49 + dist/models/OrderCreateRequestRecipient.js | 56 + dist/models/OrderCreateRequestSplit.d.ts | 45 + dist/models/OrderCreateRequestSplit.js | 56 + ...rderCreateRequestV2DeliverySchemaEnum.d.ts | 29 + .../OrderCreateRequestV2DeliverySchemaEnum.js | 52 + dist/models/OrderDropOffWarehouse.d.ts | 43 + dist/models/OrderDropOffWarehouse.js | 48 + dist/models/OrderOrderStateEnum.d.ts | 47 + dist/models/OrderOrderStateEnum.js | 70 + dist/models/OrderOrderTags.d.ts | 78 + dist/models/OrderOrderTags.js | 58 + dist/models/OrderSupply.d.ts | 71 + dist/models/OrderSupply.js | 59 + dist/models/OrderSupplyStateEnum.d.ts | 47 + dist/models/OrderSupplyStateEnum.js | 70 + .../ParameterAutoStopActionReasonEnum.d.ts | 31 + .../ParameterAutoStopActionReasonEnum.js | 54 + dist/models/ParameterDiscountLevels.d.ts | 37 + dist/models/ParameterDiscountLevels.js | 46 + dist/models/ParameterPickedSegment.d.ts | 32 + dist/models/ParameterPickedSegment.js | 45 + dist/models/PickedSegmentSegment.d.ts | 50 + dist/models/PickedSegmentSegment.js | 51 + dist/models/PickedSegmentSegmentTypeEnum.d.ts | 29 + dist/models/PickedSegmentSegmentTypeEnum.js | 52 + .../PointDeliveryMethodCoordinates.d.ts | 37 + dist/models/PointDeliveryMethodCoordinates.js | 46 + dist/models/PolygonBindRequestpolygon.d.ts | 37 + dist/models/PolygonBindRequestpolygon.js | 50 + dist/models/PolygonBindRequestwhLocation.d.ts | 37 + dist/models/PolygonBindRequestwhLocation.js | 50 + dist/models/PolygonListResponsePolygon.d.ts | 43 + dist/models/PolygonListResponsePolygon.js | 48 + dist/models/Polygonv1PolygonBindRequest.d.ts | 45 + dist/models/Polygonv1PolygonBindRequest.js | 56 + .../models/Polygonv1PolygonCreateRequest.d.ts | 32 + dist/models/Polygonv1PolygonCreateRequest.js | 46 + .../Polygonv1PolygonCreateResponse.d.ts | 31 + dist/models/Polygonv1PolygonCreateResponse.js | 44 + dist/models/PostingAdditionalDataItem.d.ts | 37 + dist/models/PostingAdditionalDataItem.js | 46 + dist/models/PostingBooleanResponse.d.ts | 31 + dist/models/PostingBooleanResponse.js | 44 + .../PostingCancelFbsPostingRequest.d.ts | 43 + dist/models/PostingCancelFbsPostingRequest.js | 52 + dist/models/PostingCancelReason.d.ts | 53 + dist/models/PostingCancelReason.js | 50 + .../PostingCancelReasonListResponse.d.ts | 32 + .../models/PostingCancelReasonListResponse.js | 45 + dist/models/PostingCancelReasonRequest.d.ts | 31 + dist/models/PostingCancelReasonRequest.js | 46 + dist/models/PostingCancelReasonResponse.d.ts | 32 + dist/models/PostingCancelReasonResponse.js | 45 + dist/models/PostingErrorTypeEnum.d.ts | 29 + dist/models/PostingErrorTypeEnum.js | 52 + .../PostingExemplarInfoExemplarError.d.ts | 37 + .../PostingExemplarInfoExemplarError.js | 46 + ...ostingFBSActCheckStatusResponseStatus.d.ts | 80 + .../PostingFBSActCheckStatusResponseStatus.js | 56 + .../PostingFBSActCreateResponseAct.d.ts | 31 + dist/models/PostingFBSActCreateResponseAct.js | 44 + dist/models/PostingFboPostingWithParams.d.ts | 43 + dist/models/PostingFboPostingWithParams.js | 48 + .../PostingFbsPostingDeliveredRequest.d.ts | 31 + .../PostingFbsPostingDeliveredRequest.js | 46 + .../PostingFbsPostingDeliveringRequest.d.ts | 31 + .../PostingFbsPostingDeliveringRequest.js | 46 + .../PostingFbsPostingLastMileRequest.d.ts | 31 + .../PostingFbsPostingLastMileRequest.js | 46 + .../PostingFbsPostingMoveStatusResponse.d.ts | 32 + .../PostingFbsPostingMoveStatusResponse.js | 45 + ...ingFbsPostingTrackingNumberSetRequest.d.ts | 32 + ...stingFbsPostingTrackingNumberSetRequest.js | 47 + ...sTraceableSplitResponsePostingProduct.d.ts | 37 + ...FbsTraceableSplitResponsePostingProduct.js | 46 + dist/models/PostingFinancialDataProduct.d.ts | 118 + dist/models/PostingFinancialDataProduct.js | 70 + .../models/PostingFinancialDataProductV2.d.ts | 106 + dist/models/PostingFinancialDataProductV2.js | 66 + .../PostingGetFboPostingListRequest.d.ts | 69 + .../models/PostingGetFboPostingListRequest.js | 60 + ...PostingGetFboPostingListRequestFilter.d.ts | 49 + .../PostingGetFboPostingListRequestFilter.js | 52 + dist/models/PostingGetFboPostingRequest.d.ts | 44 + dist/models/PostingGetFboPostingRequest.js | 51 + .../PostingGetFbsPostingByBarcodeRequest.d.ts | 32 + .../PostingGetFbsPostingByBarcodeRequest.js | 46 + dist/models/PostingLegalInfo.d.ts | 43 + dist/models/PostingLegalInfo.js | 48 + .../PostingMarksResponseIssuedExemplar.d.ts | 49 + .../PostingMarksResponseIssuedExemplar.js | 50 + ...PostingMarksResponseNonIssuedExemplar.d.ts | 43 + .../PostingMarksResponseNonIssuedExemplar.js | 48 + dist/models/PostingMovePostingRequest.d.ts | 31 + dist/models/PostingMovePostingRequest.js | 46 + dist/models/PostingPostingAnalyticsData.d.ts | 85 + dist/models/PostingPostingAnalyticsData.js | 58 + ...ostingPostingFBSActCheckStatusRequest.d.ts | 31 + .../PostingPostingFBSActCheckStatusRequest.js | 46 + ...stingPostingFBSActCheckStatusResponse.d.ts | 32 + ...PostingPostingFBSActCheckStatusResponse.js | 45 + .../PostingPostingFBSActCreateRequest.d.ts | 48 + .../PostingPostingFBSActCreateRequest.js | 50 + .../PostingPostingFBSActCreateResponse.d.ts | 32 + .../PostingPostingFBSActCreateResponse.js | 45 + ...ostingFBSActGetContainerLabelsRequest.d.ts | 31 + ...gPostingFBSActGetContainerLabelsRequest.js | 46 + ...stingFBSActGetContainerLabelsResponse.d.ts | 43 + ...PostingFBSActGetContainerLabelsResponse.js | 48 + .../PostingPostingFBSGetActRequest.d.ts | 31 + dist/models/PostingPostingFBSGetActRequest.js | 46 + .../PostingPostingFBSGetActResponse.d.ts | 43 + .../models/PostingPostingFBSGetActResponse.js | 48 + .../PostingPostingFBSPackageLabelRequest.d.ts | 31 + .../PostingPostingFBSPackageLabelRequest.js | 46 + ...PostingPostingFBSPackageLabelResponse.d.ts | 43 + .../PostingPostingFBSPackageLabelResponse.js | 48 + dist/models/PostingPostingFinancialData.d.ts | 44 + dist/models/PostingPostingFinancialData.js | 49 + dist/models/PostingPostingProduct.d.ts | 71 + dist/models/PostingPostingProduct.js | 54 + .../PostingPostingProductCancelRequest.d.ts | 50 + .../PostingPostingProductCancelRequest.js | 59 + .../PostingPostingProductCancelResponse.d.ts | 31 + .../PostingPostingProductCancelResponse.js | 44 + .../PostingProductCancelRequestItem.d.ts | 37 + .../models/PostingProductCancelRequestItem.js | 50 + .../models/PostingV1GetFbpPostingRequest.d.ts | 31 + dist/models/PostingV1GetFbpPostingRequest.js | 46 + .../PostingV1GetFbpPostingResponse.d.ts | 32 + dist/models/PostingV1GetFbpPostingResponse.js | 45 + ...PostingV1GetFbpPostingResponsePosting.d.ts | 101 + .../PostingV1GetFbpPostingResponsePosting.js | 70 + ...bpPostingResponsePostingAnalyticsData.d.ts | 61 + ...tFbpPostingResponsePostingAnalyticsData.js | 54 + ...FbpPostingResponsePostingCancellation.d.ts | 49 + ...etFbpPostingResponsePostingCancellation.js | 50 + ...bpPostingResponsePostingFinancialData.d.ts | 50 + ...tFbpPostingResponsePostingFinancialData.js | 51 + ...gResponsePostingFinancialDataProducts.d.ts | 97 + ...ingResponsePostingFinancialDataProducts.js | 70 + ...sePostingFinancialDataProductsActions.d.ts | 67 + ...onsePostingFinancialDataProductsActions.js | 56 + ...inancialDataProductsPostingCommission.d.ts | 43 + ...gFinancialDataProductsPostingCommission.js | 48 + ...FinancialDataProductsReturnCommission.d.ts | 43 + ...ngFinancialDataProductsReturnCommission.js | 48 + ...1GetFbpPostingResponsePostingProducts.d.ts | 69 + ...gV1GetFbpPostingResponsePostingProducts.js | 57 + .../PostingV1PostingFbpListRequest.d.ts | 60 + dist/models/PostingV1PostingFbpListRequest.js | 54 + .../PostingV1PostingFbpListRequestFilter.d.ts | 61 + .../PostingV1PostingFbpListRequestFilter.js | 54 + ...ingV1PostingFbpListRequestSortDirEnum.d.ts | 27 + ...stingV1PostingFbpListRequestSortDirEnum.js | 50 + .../PostingV1PostingFbpListResponse.d.ts | 38 + .../models/PostingV1PostingFbpListResponse.js | 47 + ...stingV1PostingFbpListResponsePostings.d.ts | 81 + ...PostingV1PostingFbpListResponsePostings.js | 62 + ...gFbpListResponsePostingsFinancialData.d.ts | 50 + ...ingFbpListResponsePostingsFinancialData.js | 51 + ...ResponsePostingsFinancialDataProducts.d.ts | 88 + ...stResponsePostingsFinancialDataProducts.js | 65 + ...ePostingsFinancialDataProductsActions.d.ts | 68 + ...nsePostingsFinancialDataProductsActions.js | 56 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 48 + ...FinancialDataProductsReturnCommission.d.ts | 43 + ...gsFinancialDataProductsReturnCommission.js | 48 + ...ostingFbpListResponsePostingsProducts.d.ts | 70 + ...1PostingFbpListResponsePostingsProducts.js | 59 + ...ostingV2FboSinglePostingExternalOrder.d.ts | 38 + .../PostingV2FboSinglePostingExternalOrder.js | 46 + .../PostingV2PostingDigitalListRequest.d.ts | 58 + .../PostingV2PostingDigitalListRequest.js | 55 + ...tingV2PostingDigitalListRequestFilter.d.ts | 49 + ...ostingV2PostingDigitalListRequestFilter.js | 50 + ...2PostingDigitalListRequestSortDirEnum.d.ts | 27 + ...gV2PostingDigitalListRequestSortDirEnum.js | 50 + ...ostingV2PostingDigitalListRequestWith.d.ts | 46 + .../PostingV2PostingDigitalListRequestWith.js | 48 + .../PostingV2PostingDigitalListResponse.d.ts | 45 + .../PostingV2PostingDigitalListResponse.js | 49 + ...gV2PostingDigitalListResponsePostings.d.ts | 125 + ...ingV2PostingDigitalListResponsePostings.js | 79 + ...talListResponsePostingsAdditionalData.d.ts | 37 + ...gitalListResponsePostingsAdditionalData.js | 46 + ...italListResponsePostingsAnalyticsData.d.ts | 85 + ...igitalListResponsePostingsAnalyticsData.js | 58 + ...gitalListResponsePostingsCancellation.d.ts | 50 + ...DigitalListResponsePostingsCancellation.js | 46 + ...italListResponsePostingsExternalOrder.d.ts | 38 + ...igitalListResponsePostingsExternalOrder.js | 46 + ...italListResponsePostingsFinancialData.d.ts | 44 + ...igitalListResponsePostingsFinancialData.js | 49 + ...ResponsePostingsFinancialDataProducts.d.ts | 74 + ...stResponsePostingsFinancialDataProducts.js | 59 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 48 + ...gDigitalListResponsePostingsLegalInfo.d.ts | 43 + ...ingDigitalListResponsePostingsLegalInfo.js | 48 + ...ngDigitalListResponsePostingsProducts.d.ts | 62 + ...tingDigitalListResponsePostingsProducts.js | 55 + ...ingV3FbsPostingContainerCargoTypeEnum.d.ts | 27 + ...stingV3FbsPostingContainerCargoTypeEnum.js | 50 + ...ostingV3FbsPostingDetailExternalOrder.d.ts | 38 + .../PostingV3FbsPostingDetailExternalOrder.js | 46 + ...ostingV3FbsPostingDetailSortingCenter.d.ts | 39 + .../PostingV3FbsPostingDetailSortingCenter.js | 46 + .../PostingV3FbsPostingSortingCenter.d.ts | 39 + .../PostingV3FbsPostingSortingCenter.js | 46 + .../PostingV3PostingFboListRequest.d.ts | 65 + dist/models/PostingV3PostingFboListRequest.js | 57 + .../PostingV3PostingFboListRequestFilter.d.ts | 61 + .../PostingV3PostingFboListRequestFilter.js | 52 + ...ingV3PostingFboListRequestSortDirEnum.d.ts | 27 + ...stingV3PostingFboListRequestSortDirEnum.js | 50 + .../PostingV3PostingFboListRequestWith.d.ts | 46 + .../PostingV3PostingFboListRequestWith.js | 48 + .../PostingV3PostingFboListResponse.d.ts | 45 + .../models/PostingV3PostingFboListResponse.js | 49 + ...stingV3PostingFboListResponsePostings.d.ts | 141 ++ ...PostingV3PostingFboListResponsePostings.js | 79 + ...FboListResponsePostingsAdditionalData.d.ts | 37 + ...ngFboListResponsePostingsAdditionalData.js | 46 + ...gFboListResponsePostingsAnalyticsData.d.ts | 91 + ...ingFboListResponsePostingsAnalyticsData.js | 60 + ...ngFboListResponsePostingsCancellation.d.ts | 56 + ...tingFboListResponsePostingsCancellation.js | 48 + ...gFboListResponsePostingsExternalOrder.d.ts | 38 + ...ingFboListResponsePostingsExternalOrder.js | 46 + ...gFboListResponsePostingsFinancialData.d.ts | 44 + ...ingFboListResponsePostingsFinancialData.js | 49 + ...ResponsePostingsFinancialDataProducts.d.ts | 74 + ...stResponsePostingsFinancialDataProducts.js | 59 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 48 + ...stingFboListResponsePostingsLegalInfo.d.ts | 43 + ...PostingFboListResponsePostingsLegalInfo.js | 48 + ...ostingFboListResponsePostingsProducts.d.ts | 71 + ...3PostingFboListResponsePostingsProducts.js | 57 + .../PostingV4PostingFbsListRequest.d.ts | 65 + dist/models/PostingV4PostingFbsListRequest.js | 61 + .../PostingV4PostingFbsListRequestFilter.d.ts | 120 + .../PostingV4PostingFbsListRequestFilter.js | 69 + ...istRequestFilterLastChangedStatusDate.d.ts | 37 + ...sListRequestFilterLastChangedStatusDate.js | 46 + ...ingV4PostingFbsListRequestSortDirEnum.d.ts | 27 + ...stingV4PostingFbsListRequestSortDirEnum.js | 50 + .../PostingV4PostingFbsListRequestWith.d.ts | 53 + .../PostingV4PostingFbsListRequestWith.js | 50 + .../PostingV4PostingFbsListResponse.d.ts | 45 + .../models/PostingV4PostingFbsListResponse.js | 49 + ...stingV4PostingFbsListResponsePostings.d.ts | 415 ++++ ...PostingV4PostingFbsListResponsePostings.js | 146 ++ ...stingFbsListResponsePostingsAddressee.d.ts | 31 + ...PostingFbsListResponsePostingsAddressee.js | 44 + ...gFbsListResponsePostingsAnalyticsData.d.ts | 121 + ...ingFbsListResponsePostingsAnalyticsData.js | 70 + ...ostingFbsListResponsePostingsBarcodes.d.ts | 37 + ...4PostingFbsListResponsePostingsBarcodes.js | 46 + ...ngFbsListResponsePostingsCancellation.d.ts | 76 + ...tingFbsListResponsePostingsCancellation.js | 54 + ...stingFbsListResponsePostingsContainer.d.ts | 50 + ...PostingFbsListResponsePostingsContainer.js | 51 + ...ostingFbsListResponsePostingsCustomer.d.ts | 56 + ...4PostingFbsListResponsePostingsCustomer.js | 53 + ...bsListResponsePostingsCustomerAddress.d.ts | 91 + ...gFbsListResponsePostingsCustomerAddress.js | 64 + ...FbsListResponsePostingsDeliveryMethod.d.ts | 61 + ...ngFbsListResponsePostingsDeliveryMethod.js | 54 + ...gFbsListResponsePostingsExternalOrder.d.ts | 38 + ...ingFbsListResponsePostingsExternalOrder.js | 46 + ...gFbsListResponsePostingsFinancialData.d.ts | 44 + ...ingFbsListResponsePostingsFinancialData.js | 49 + ...ResponsePostingsFinancialDataProducts.d.ts | 87 + ...stResponsePostingsFinancialDataProducts.js | 64 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 48 + ...stingFbsListResponsePostingsLegalInfo.d.ts | 43 + ...PostingFbsListResponsePostingsLegalInfo.js | 48 + ...ostingFbsListResponsePostingsOptional.d.ts | 31 + ...4PostingFbsListResponsePostingsOptional.js | 44 + ...ostingFbsListResponsePostingsProducts.d.ts | 90 + ...4PostingFbsListResponsePostingsProducts.js | 63 + ...ngFbsListResponsePostingsRequirements.d.ts | 98 + ...tingFbsListResponsePostingsRequirements.js | 58 + ...gFbsListResponsePostingsSortingCenter.d.ts | 39 + ...ingFbsListResponsePostingsSortingCenter.js | 46 + ...gFbsListResponsePostingsTariffication.d.ts | 83 + ...ingFbsListResponsePostingsTariffication.js | 64 + ...ListResponsePostingsTarifficationStep.d.ts | 57 + ...bsListResponsePostingsTarifficationStep.js | 54 + ...ingV4PostingFbsUnfulfilledListRequest.d.ts | 65 + ...stingV4PostingFbsUnfulfilledListRequest.js | 57 + ...ostingFbsUnfulfilledListRequestFilter.d.ts | 99 + ...4PostingFbsUnfulfilledListRequestFilter.js | 61 + ...istRequestFilterLastChangedStatusDate.d.ts | 37 + ...dListRequestFilterLastChangedStatusDate.js | 46 + ...gFbsUnfulfilledListRequestSortDirEnum.d.ts | 27 + ...ingFbsUnfulfilledListRequestSortDirEnum.js | 50 + ...4PostingFbsUnfulfilledListRequestWith.d.ts | 53 + ...gV4PostingFbsUnfulfilledListRequestWith.js | 50 + ...ngV4PostingFbsUnfulfilledListResponse.d.ts | 51 + ...tingV4PostingFbsUnfulfilledListResponse.js | 51 + ...ingFbsUnfulfilledListResponsePostings.d.ts | 415 ++++ ...stingFbsUnfulfilledListResponsePostings.js | 146 ++ ...ulfilledListResponsePostingsAddressee.d.ts | 31 + ...nfulfilledListResponsePostingsAddressee.js | 44 + ...lledListResponsePostingsAnalyticsData.d.ts | 121 + ...filledListResponsePostingsAnalyticsData.js | 70 + ...fulfilledListResponsePostingsBarcodes.d.ts | 37 + ...UnfulfilledListResponsePostingsBarcodes.js | 46 + ...illedListResponsePostingsCancellation.d.ts | 76 + ...lfilledListResponsePostingsCancellation.js | 54 + ...ulfilledListResponsePostingsContainer.d.ts | 50 + ...nfulfilledListResponsePostingsContainer.js | 51 + ...esponsePostingsContainerCargoTypeEnum.d.ts | 27 + ...tResponsePostingsContainerCargoTypeEnum.js | 50 + ...fulfilledListResponsePostingsCustomer.d.ts | 56 + ...UnfulfilledListResponsePostingsCustomer.js | 53 + ...edListResponsePostingsCustomerAddress.d.ts | 91 + ...lledListResponsePostingsCustomerAddress.js | 64 + ...ledListResponsePostingsDeliveryMethod.d.ts | 61 + ...illedListResponsePostingsDeliveryMethod.js | 54 + ...lledListResponsePostingsExternalOrder.d.ts | 38 + ...filledListResponsePostingsExternalOrder.js | 46 + ...lledListResponsePostingsFinancialData.d.ts | 44 + ...filledListResponsePostingsFinancialData.js | 49 + ...ResponsePostingsFinancialDataProducts.d.ts | 87 + ...stResponsePostingsFinancialDataProducts.js | 64 + ...stingsFinancialDataProductsCommission.d.ts | 43 + ...PostingsFinancialDataProductsCommission.js | 48 + ...ulfilledListResponsePostingsLegalInfo.d.ts | 43 + ...nfulfilledListResponsePostingsLegalInfo.js | 48 + ...fulfilledListResponsePostingsOptional.d.ts | 31 + ...UnfulfilledListResponsePostingsOptional.js | 44 + ...fulfilledListResponsePostingsProducts.d.ts | 90 + ...UnfulfilledListResponsePostingsProducts.js | 63 + ...illedListResponsePostingsRequirements.d.ts | 98 + ...lfilledListResponsePostingsRequirements.js | 58 + ...lledListResponsePostingsSortingCenter.d.ts | 39 + ...filledListResponsePostingsSortingCenter.js | 46 + ...lledListResponsePostingsTariffication.d.ts | 83 + ...filledListResponsePostingsTariffication.js | 64 + ...ListResponsePostingsTarifficationStep.d.ts | 57 + ...edListResponsePostingsTarifficationStep.js | 54 + dist/models/PostinglistV3status.d.ts | 37 + dist/models/PostinglistV3status.js | 46 + ...tingv1GetCarriageAvailableListRequest.d.ts | 37 + ...ostingv1GetCarriageAvailableListRequest.js | 48 + ...ingv1GetCarriageAvailableListResponse.d.ts | 32 + ...stingv1GetCarriageAvailableListResponse.js | 45 + .../models/Postingv3FbsPostingWithParams.d.ts | 55 + dist/models/Postingv3FbsPostingWithParams.js | 52 + ...ostingv3FbsPostingWithParamsExamplars.d.ts | 68 + .../Postingv3FbsPostingWithParamsExamplars.js | 56 + .../Postingv3GetFbsPostingListRequest.d.ts | 63 + .../Postingv3GetFbsPostingListRequest.js | 60 + ...stingv3GetFbsPostingListRequestFilter.d.ts | 131 + ...Postingv3GetFbsPostingListRequestFilter.js | 69 + .../models/Postingv3GetFbsPostingRequest.d.ts | 38 + dist/models/Postingv3GetFbsPostingRequest.js | 49 + ...v3GetFbsPostingUnfulfilledListRequest.d.ts | 63 + ...ngv3GetFbsPostingUnfulfilledListRequest.js | 60 + ...bsPostingUnfulfilledListRequestFilter.d.ts | 116 + ...tFbsPostingUnfulfilledListRequestFilter.js | 67 + ...3GetFbsPostingUnfulfilledListResponse.d.ts | 32 + ...gv3GetFbsPostingUnfulfilledListResponse.js | 45 + ...sPostingUnfulfilledListResponseResult.d.ts | 38 + ...FbsPostingUnfulfilledListResponseResult.js | 47 + ...stingv3PostingMultiBoxQtySetV3Request.d.ts | 37 + ...Postingv3PostingMultiBoxQtySetV3Request.js | 50 + ...tingv3PostingMultiBoxQtySetV3Response.d.ts | 32 + ...ostingv3PostingMultiBoxQtySetV3Response.js | 45 + ...PostingMultiBoxQtySetV3ResponseResult.d.ts | 34 + ...v3PostingMultiBoxQtySetV3ResponseResult.js | 44 + dist/models/PremiumScoresScore.d.ts | 43 + dist/models/PremiumScoresScore.js | 48 + dist/models/PriceIndexesColorIndex.d.ts | 37 + dist/models/PriceIndexesColorIndex.js | 60 + .../models/PriceIndexesIndexDataExternal.d.ts | 43 + dist/models/PriceIndexesIndexDataExternal.js | 48 + dist/models/PriceIndexesIndexDataOzon.d.ts | 43 + dist/models/PriceIndexesIndexDataOzon.js | 48 + dist/models/PriceIndexesIndexDataSelf.d.ts | 43 + dist/models/PriceIndexesIndexDataSelf.js | 48 + .../models/PriceIndexesIndexExternalData.d.ts | 43 + dist/models/PriceIndexesIndexExternalData.js | 48 + dist/models/PriceIndexesIndexOzonData.d.ts | 43 + dist/models/PriceIndexesIndexOzonData.js | 48 + dist/models/PriceIndexesIndexSelfData.d.ts | 43 + dist/models/PriceIndexesIndexSelfData.js | 48 + dist/models/ProductBooleanResponse.d.ts | 31 + dist/models/ProductBooleanResponse.js | 44 + ...ertificateProductsListResponseProduct.d.ts | 43 + ...tCertificateProductsListResponseProduct.js | 48 + .../ProductCertificateUnbindResponseItem.d.ts | 46 + .../ProductCertificateUnbindResponseItem.js | 48 + ...ertificationListResponseCertification.d.ts | 37 + ...tCertificationListResponseCertification.js | 46 + ...cationListResponseCertificationResult.d.ts | 38 + ...ficationListResponseCertificationResult.js | 47 + ...tificationListResponseCertificationv2.d.ts | 55 + ...ertificationListResponseCertificationv2.js | 52 + dist/models/ProductCurrencyEnum.d.ts | 35 + dist/models/ProductCurrencyEnum.js | 58 + dist/models/ProductExemplar.d.ts | 68 + dist/models/ProductExemplar.js | 57 + .../ProductGetImportProductsInfoRequest.d.ts | 31 + .../ProductGetImportProductsInfoRequest.js | 46 + .../ProductGetImportProductsInfoResponse.d.ts | 32 + .../ProductGetImportProductsInfoResponse.js | 45 + ...ctGetImportProductsInfoResponseResult.d.ts | 38 + ...ductGetImportProductsInfoResponseResult.js | 47 + ...ctAttributesV3ResponseDictionaryValue.d.ts | 37 + ...ductAttributesV3ResponseDictionaryValue.js | 46 + ...tProductAttributesV4ResponseAttribute.d.ts | 44 + ...GetProductAttributesV4ResponseAttribute.js | 49 + ...oductGetProductInfoDescriptionRequest.d.ts | 37 + ...ProductGetProductInfoDescriptionRequest.js | 46 + ...ductGetProductInfoDescriptionResponse.d.ts | 32 + ...roductGetProductInfoDescriptionResponse.js | 45 + ...ProductInfoDescriptionResponseProduct.d.ts | 49 + ...etProductInfoDescriptionResponseProduct.js | 50 + ...uctGetProductInfoPricesV5ResponseItem.d.ts | 80 + ...oductGetProductInfoPricesV5ResponseItem.js | 62 + .../ProductImportProductsBySKURequest.d.ts | 32 + .../ProductImportProductsBySKURequest.js | 45 + ...ProductImportProductsBySKURequestItem.d.ts | 90 + .../ProductImportProductsBySKURequestItem.js | 58 + .../ProductImportProductsBySKUResponse.d.ts | 32 + .../ProductImportProductsBySKUResponse.js | 45 + ...ductImportProductsBySKUResponseResult.d.ts | 37 + ...roductImportProductsBySKUResponseResult.js | 46 + .../ProductImportProductsPricesRequest.d.ts | 32 + .../ProductImportProductsPricesRequest.js | 45 + ...oductImportProductsPricesRequestPrice.d.ts | 205 ++ ...ProductImportProductsPricesRequestPrice.js | 95 + .../ProductImportProductsPricesResponse.d.ts | 32 + .../ProductImportProductsPricesResponse.js | 45 + ...ductImportProductsPricesResponseError.d.ts | 37 + ...roductImportProductsPricesResponseError.js | 46 + ...rtProductsPricesResponseProcessResult.d.ts | 50 + ...portProductsPricesResponseProcessResult.js | 51 + ...ductInfoWarehouseStocksResponseStocks.d.ts | 73 + ...roductInfoWarehouseStocksResponseStocks.js | 58 + ...WrongVolumeResponseWrongVolumeProduct.d.ts | 73 + ...foWrongVolumeResponseWrongVolumeProduct.js | 58 + .../ProductPlacementPlacementZoneEnum.d.ts | 41 + .../ProductPlacementPlacementZoneEnum.js | 64 + dist/models/ProductProductArchiveRequest.d.ts | 31 + dist/models/ProductProductArchiveRequest.js | 46 + ...uctCertificateAccordanceTypesResponse.d.ts | 32 + ...oductCertificateAccordanceTypesResponse.js | 45 + ...ertificateAccordanceTypesResponseType.d.ts | 37 + ...tCertificateAccordanceTypesResponseType.js | 46 + .../ProductProductCertificateBindRequest.d.ts | 44 + .../ProductProductCertificateBindRequest.js | 50 + ...roductProductCertificateTypesResponse.d.ts | 32 + .../ProductProductCertificateTypesResponse.js | 45 + ...ctProductCertificateTypesResponseType.d.ts | 37 + ...ductProductCertificateTypesResponseType.js | 46 + ...roductProductCertificationListRequest.d.ts | 37 + .../ProductProductCertificationListRequest.js | 46 + ...oductProductCertificationListResponse.d.ts | 32 + ...ProductProductCertificationListResponse.js | 45 + ...uctProductInfoPicturesResponsePicture.d.ts | 59 + ...oductProductInfoPicturesResponsePicture.js | 52 + .../ProductProductUnarchiveRequest.d.ts | 36 + dist/models/ProductProductUnarchiveRequest.js | 46 + ...ductUpdateOfferIdRequestUpdateOfferId.d.ts | 38 + ...roductUpdateOfferIdRequestUpdateOfferId.js | 50 + ...roductInfoStocksByWarehouseFboRequest.d.ts | 49 + ...tProductInfoStocksByWarehouseFboRequest.js | 52 + ...oductInfoStocksByWarehouseFboResponse.d.ts | 45 + ...ProductInfoStocksByWarehouseFboResponse.js | 49 + ...foStocksByWarehouseFboResponseProduct.d.ts | 61 + ...InfoStocksByWarehouseFboResponseProduct.js | 54 + ...tPricesDetailsResponsePricePriceIndex.d.ts | 39 + ...uctPricesDetailsResponsePricePriceIndex.js | 48 + ...tailsResponsePricePriceIndexIndexData.d.ts | 44 + ...DetailsResponsePricePriceIndexIndexData.js | 49 + ...sResponsePricePriceIndexIndexDataSelf.d.ts | 44 + ...ilsResponsePricePriceIndexIndexDataSelf.js | 49 + ...ProductV1ProductVisibilityInfoRequest.d.ts | 31 + .../ProductV1ProductVisibilityInfoRequest.js | 44 + ...roductV1ProductVisibilityInfoResponse.d.ts | 32 + .../ProductV1ProductVisibilityInfoResponse.js | 45 + ...ctV1ProductVisibilityInfoResponseItem.d.ts | 38 + ...ductV1ProductVisibilityInfoResponseItem.js | 47 + ...foResponseItemShowcasesVisibilityEnum.d.ts | 33 + ...InfoResponseItemShowcasesVisibilityEnum.js | 56 + .../ProductV1ProductVisibilitySetRequest.d.ts | 32 + .../ProductV1ProductVisibilitySetRequest.js | 47 + ...ductVisibilitySetRequestItemPlacement.d.ts | 38 + ...roductVisibilitySetRequestItemPlacement.js | 51 + ...ySetRequestItemPlacementPlacementEnum.d.ts | 31 + ...itySetRequestItemPlacementPlacementEnum.js | 54 + ...ProductV1ProductVisibilitySetResponse.d.ts | 39 + .../ProductV1ProductVisibilitySetResponse.js | 48 + ...ctV1ProductVisibilitySetResponseItems.d.ts | 80 + ...ductV1ProductVisibilitySetResponseItems.js | 61 + ...oductVisibilitySetResponseItemsErrors.d.ts | 37 + ...ProductVisibilitySetResponseItemsErrors.js | 46 + ...ySetResponseItemsSelectPermissionEnum.d.ts | 29 + ...itySetResponseItemsSelectPermissionEnum.js | 52 + ...tResponseItemsSellerItemPlacementEnum.d.ts | 33 + ...SetResponseItemsSellerItemPlacementEnum.js | 56 + ...ponseItemsSellerItemPlacementListEnum.d.ts | 25 + ...esponseItemsSellerItemPlacementListEnum.js | 48 + ...tResponseItemsShowcasesVisibilityEnum.d.ts | 33 + ...SetResponseItemsShowcasesVisibilityEnum.js | 56 + ...ponseItemsShowcasesVisibilityListEnum.d.ts | 25 + ...esponseItemsShowcasesVisibilityListEnum.js | 48 + dist/models/ProductV1QuantInfoRequest.d.ts | 32 + dist/models/ProductV1QuantInfoRequest.js | 46 + dist/models/ProductV1QuantInfoResponse.d.ts | 32 + dist/models/ProductV1QuantInfoResponse.js | 45 + ...ProductV1QuantInfoResponseResultItems.d.ts | 44 + .../ProductV1QuantInfoResponseResultItems.js | 49 + ...QuantInfoResponseResultItemsQuantInfo.d.ts | 32 + ...V1QuantInfoResponseResultItemsQuantInfo.js | 45 + ...nfoResponseResultItemsQuantInfoQuants.d.ts | 95 + ...tInfoResponseResultItemsQuantInfoQuants.js | 68 + ...tItemsQuantInfoQuantsBarcodesExtended.d.ts | 43 + ...ultItemsQuantInfoQuantsBarcodesExtended.js | 48 + ...eResultItemsQuantInfoQuantsDimensions.d.ts | 49 + ...nseResultItemsQuantInfoQuantsDimensions.js | 50 + ...ultItemsQuantInfoQuantsMarketingPrice.d.ts | 37 + ...esultItemsQuantInfoQuantsMarketingPrice.js | 46 + ...sponseResultItemsQuantInfoQuantsTexts.d.ts | 49 + ...ResponseResultItemsQuantInfoQuantsTexts.js | 50 + dist/models/ProductV1QuantListRequest.d.ts | 96 + dist/models/ProductV1QuantListRequest.js | 79 + dist/models/ProductV1QuantListResponse.d.ts | 44 + dist/models/ProductV1QuantListResponse.js | 49 + .../ProductV1QuantListResponseProducts.d.ts | 44 + .../ProductV1QuantListResponseProducts.js | 49 + ...ductV1QuantListResponseProductsQuants.d.ts | 37 + ...roductV1QuantListResponseProductsQuants.js | 46 + ...GetUploadQuotaResponseOperationLimits.d.ts | 38 + ...V4GetUploadQuotaResponseOperationLimits.js | 47 + ...aResponseOperationLimitsLimitTypeEnum.d.ts | 27 + ...otaResponseOperationLimitsLimitTypeEnum.js | 50 + dist/models/ProductsPostings.d.ts | 37 + dist/models/ProductsPostings.js | 46 + ...roductInfoStocksByWarehouseFbsRequest.d.ts | 37 + ...tProductInfoStocksByWarehouseFbsRequest.js | 46 + ...oductInfoStocksByWarehouseFbsResponse.d.ts | 32 + ...ProductInfoStocksByWarehouseFbsResponse.js | 45 + ...nfoStocksByWarehouseFbsResponseResult.d.ts | 67 + ...tInfoStocksByWarehouseFbsResponseResult.js | 56 + ...Productv1ProductImportPicturesRequest.d.ts | 46 + .../Productv1ProductImportPicturesRequest.js | 50 + .../Productv1ProductInfoPicturesResponse.d.ts | 32 + .../Productv1ProductInfoPicturesResponse.js | 45 + ...ctv1ProductInfoPicturesResponseResult.d.ts | 32 + ...ductv1ProductInfoPicturesResponseResult.js | 45 + .../Productv2DeleteProductsRequest.d.ts | 32 + dist/models/Productv2DeleteProductsRequest.js | 47 + .../Productv2DeleteProductsResponse.d.ts | 32 + .../models/Productv2DeleteProductsResponse.js | 45 + ...ductListRequestFilterFilterVisibility.d.ts | 77 + ...roductListRequestFilterFilterVisibility.js | 100 + .../Productv2ProductsStocksRequest.d.ts | 32 + dist/models/Productv2ProductsStocksRequest.js | 47 + .../Productv2ProductsStocksRequestStock.d.ts | 49 + .../Productv2ProductsStocksRequestStock.js | 56 + .../Productv2ProductsStocksResponse.d.ts | 32 + .../models/Productv2ProductsStocksResponse.js | 45 + .../Productv2ProductsStocksResponseError.d.ts | 37 + .../Productv2ProductsStocksResponseError.js | 46 + ...Productv2ProductsStocksResponseResult.d.ts | 56 + .../Productv2ProductsStocksResponseResult.js | 53 + .../Productv3GetProductListRequest.d.ts | 47 + dist/models/Productv3GetProductListRequest.js | 49 + .../Productv3GetProductListRequestFilter.d.ts | 50 + .../Productv3GetProductListRequestFilter.js | 51 + ...ductListRequestFilterFilterVisibility.d.ts | 77 + ...roductListRequestFilterFilterVisibility.js | 100 + .../Productv3GetProductListResponse.d.ts | 32 + .../models/Productv3GetProductListResponse.js | 45 + .../Productv3GetProductListResponseItem.d.ts | 74 + .../Productv3GetProductListResponseItem.js | 59 + ...ductv3GetProductListResponseItemQuant.d.ts | 37 + ...roductv3GetProductListResponseItemQuant.js | 46 + ...Productv3GetProductListResponseResult.d.ts | 47 + .../Productv3GetProductListResponseResult.js | 49 + dist/models/Productv4Filter.d.ts | 50 + dist/models/Productv4Filter.js | 51 + ...roductv4GetProductAttributesV4Request.d.ts | 67 + .../Productv4GetProductAttributesV4Request.js | 53 + ...oductv4GetProductAttributesV4Response.d.ts | 47 + ...Productv4GetProductAttributesV4Response.js | 49 + ...4GetProductAttributesV4ResponseResult.d.ts | 168 ++ ...tv4GetProductAttributesV4ResponseResult.js | 91 + dist/models/Productv5Filter.d.ts | 44 + dist/models/Productv5Filter.js | 49 + ...roductv5GetProductInfoPricesV5Request.d.ts | 44 + .../Productv5GetProductInfoPricesV5Request.js | 53 + ...oductv5GetProductInfoPricesV5Response.d.ts | 44 + ...Productv5GetProductInfoPricesV5Response.js | 49 + ...ductListRequestFilterFilterVisibility.d.ts | 77 + ...roductListRequestFilterFilterVisibility.js | 100 + dist/models/ProtobufAny.d.ts | 37 + dist/models/ProtobufAny.js | 46 + .../models/ProtobufAnyV2DeliveryCheckout.d.ts | 46 + dist/models/ProtobufAnyV2DeliveryCheckout.js | 48 + ...onV1GetQuestionListRequestSortDirEnum.d.ts | 27 + ...tionV1GetQuestionListRequestSortDirEnum.js | 50 + ...stResponseAnswerStatusPublicationEnum.d.ts | 31 + ...ListResponseAnswerStatusPublicationEnum.js | 54 + dist/models/RatingItemChange.d.ts | 48 + dist/models/RatingItemChange.js | 46 + dist/models/RatingStatusEnum.d.ts | 31 + dist/models/RatingStatusEnum.js | 54 + dist/models/RatingSummaryV1ResponseGroup.d.ts | 38 + dist/models/RatingSummaryV1ResponseGroup.js | 47 + .../RatingSummaryV1ResponseLocalIndex.d.ts | 37 + .../RatingSummaryV1ResponseLocalIndex.js | 46 + dist/models/RatingValue.d.ts | 50 + dist/models/RatingValue.js | 51 + dist/models/RatingValueCurrent.d.ts | 56 + dist/models/RatingValueCurrent.js | 53 + dist/models/RatingValuePast.d.ts | 56 + dist/models/RatingValuePast.js | 53 + dist/models/ReasonHumanText.d.ts | 31 + dist/models/ReasonHumanText.js | 44 + .../ReceiptsSellerListResponseReceipt.d.ts | 81 + .../ReceiptsSellerListResponseReceipt.js | 62 + ...rListResponseReceiptOperationTypeEnum.d.ts | 27 + ...lerListResponseReceiptOperationTypeEnum.js | 50 + ...iptsSellerListResponseReceiptTypeEnum.d.ts | 29 + ...ceiptsSellerListResponseReceiptTypeEnum.js | 52 + dist/models/RejectedItemsReasonEnum.d.ts | 47 + dist/models/RejectedItemsReasonEnum.js | 70 + .../RejectedItemsRejectionReasonEnum.d.ts | 47 + .../RejectedItemsRejectionReasonEnum.js | 70 + dist/models/RejectedItemsRestrictions.d.ts | 48 + dist/models/RejectedItemsRestrictions.js | 49 + dist/models/RelatedPostingCancelReason.d.ts | 38 + dist/models/RelatedPostingCancelReason.js | 47 + dist/models/RelatedPostingCancelReasons.d.ts | 54 + dist/models/RelatedPostingCancelReasons.js | 48 + .../ReportCommonReportAdditionalDataItem.d.ts | 37 + .../ReportCommonReportAdditionalDataItem.js | 46 + ...ortCreateCompanyPostingsReportRequest.d.ts | 48 + ...eportCreateCompanyPostingsReportRequest.js | 52 + ...ateCompanyPostingsReportRequestFilter.d.ts | 107 + ...reateCompanyPostingsReportRequestFilter.js | 70 + ...ortCreateCompanyProductsReportRequest.d.ts | 59 + ...eportCreateCompanyProductsReportRequest.js | 53 + ...ompanyProductsReportRequestVisibility.d.ts | 43 + ...eCompanyProductsReportRequestVisibility.js | 66 + .../ReportCreateDiscountedResponse.d.ts | 31 + dist/models/ReportCreateDiscountedResponse.js | 44 + dist/models/ReportCreateReportResponse.d.ts | 32 + dist/models/ReportCreateReportResponse.js | 45 + dist/models/ReportListResponseResult.d.ts | 38 + dist/models/ReportListResponseResult.js | 47 + ...tMarkedProductsSalesCreateRequestDate.d.ts | 37 + ...ortMarkedProductsSalesCreateRequestDate.js | 50 + dist/models/ReportReport.d.ts | 105 + dist/models/ReportReport.js | 61 + dist/models/ReportReportInfoRequest.d.ts | 31 + dist/models/ReportReportInfoRequest.js | 46 + dist/models/ReportReportInfoResponse.d.ts | 32 + dist/models/ReportReportInfoResponse.js | 45 + dist/models/ReportReportListRequest.d.ts | 60 + dist/models/ReportReportListRequest.js | 52 + dist/models/ReportReportListResponse.d.ts | 32 + dist/models/ReportReportListResponse.js | 45 + dist/models/ReportReportinfo.d.ts | 105 + dist/models/ReportReportinfo.js | 61 + ...inanceRealizationPostingReportRequest.d.ts | 37 + ...yFinanceRealizationPostingReportRequest.js | 50 + ...nanceRealizationPostingReportResponse.d.ts | 31 + ...FinanceRealizationPostingReportResponse.js | 44 + dist/models/RestrictionsReasonEnum.d.ts | 25 + dist/models/RestrictionsReasonEnum.js | 48 + dist/models/ResultCargo.d.ts | 38 + dist/models/ResultCargo.js | 47 + dist/models/ResultData.d.ts | 39 + dist/models/ResultData.js | 48 + .../ResultDropOffWarehouseTimeslots.d.ts | 44 + .../models/ResultDropOffWarehouseTimeslots.js | 49 + dist/models/ResultError.d.ts | 40 + dist/models/ResultError.js | 46 + dist/models/ResultUnprintedPosting.d.ts | 37 + dist/models/ResultUnprintedPosting.js | 46 + dist/models/ReturnSettingCourierDetails.d.ts | 31 + dist/models/ReturnSettingCourierDetails.js | 44 + .../ReturnSettingTransportCompanyDetails.d.ts | 37 + .../ReturnSettingTransportCompanyDetails.js | 46 + ...eturnsCompanyFbsInfoRequestPagination.d.ts | 40 + .../ReturnsCompanyFbsInfoRequestPagination.js | 48 + ...nsCompanyFbsInfoResponseDropOffPoints.d.ts | 80 + ...urnsCompanyFbsInfoResponseDropOffPoints.js | 61 + ...ReturnsCompanyFbsInfoResponsePassInfo.d.ts | 37 + .../ReturnsCompanyFbsInfoResponsePassInfo.js | 46 + .../models/ReturnsRfbsGetResponseReturns.d.ts | 135 ++ dist/models/ReturnsRfbsGetResponseReturns.js | 82 + ...turnsRfbsGetV2ResponseAvailableAction.d.ts | 37 + ...ReturnsRfbsGetV2ResponseAvailableAction.js | 46 + ...bsGetV2ResponseClientReturnMethodType.d.ts | 37 + ...RfbsGetV2ResponseClientReturnMethodType.js | 46 + ...turnsRfbsGetV2ResponseRejectionReason.d.ts | 49 + ...ReturnsRfbsGetV2ResponseRejectionReason.js | 50 + .../ReturnsRfbsGetV2ResponseReturnReason.d.ts | 43 + .../ReturnsRfbsGetV2ResponseReturnReason.js | 48 + .../ReturnsRfbsListResponseReturns.d.ts | 76 + dist/models/ReturnsRfbsListResponseReturns.js | 60 + ...ingsUtilizationHistoryResponseHistory.d.ts | 43 + ...ttingsUtilizationHistoryResponseHistory.js | 48 + ...zationInfoResponseUtilizationSettings.d.ts | 39 + ...lizationInfoResponseUtilizationSettings.js | 48 + ...lizationUpdateRequestUtilizationPrice.d.ts | 38 + ...tilizationUpdateRequestUtilizationPrice.js | 48 + ...nUpdateRequestUtilizationPriceDefects.d.ts | 38 + ...ionUpdateRequestUtilizationPriceDefects.js | 48 + dist/models/ReviewInfoResponsePhoto.d.ts | 43 + dist/models/ReviewInfoResponsePhoto.js | 48 + dist/models/ReviewInfoResponseVideo.d.ts | 55 + dist/models/ReviewInfoResponseVideo.js | 52 + dist/models/ReviewListResponseReview.d.ts | 98 + dist/models/ReviewListResponseReview.js | 64 + .../ReviewV1CommentListRequestFilter.d.ts | 43 + .../ReviewV1CommentListRequestFilter.js | 48 + .../ReviewV2ReviewChangeStatusV2Request.d.ts | 38 + .../ReviewV2ReviewChangeStatusV2Request.js | 47 + ...ReviewChangeStatusV2RequestStatusEnum.d.ts | 29 + ...V2ReviewChangeStatusV2RequestStatusEnum.js | 52 + .../ReviewV2ReviewCommentDeleteV2Request.d.ts | 37 + .../ReviewV2ReviewCommentDeleteV2Request.js | 50 + .../models/ReviewV2ReviewCountV2Response.d.ts | 49 + dist/models/ReviewV2ReviewCountV2Response.js | 50 + dist/models/ReviewV2ReviewInfoV2Request.d.ts | 31 + dist/models/ReviewV2ReviewInfoV2Request.js | 46 + dist/models/ReviewV2ReviewInfoV2Response.d.ts | 120 + dist/models/ReviewV2ReviewInfoV2Response.js | 76 + ...V2ReviewInfoV2ResponseOrderStatusEnum.d.ts | 27 + ...ewV2ReviewInfoV2ResponseOrderStatusEnum.js | 50 + .../ReviewV2ReviewInfoV2ResponsePhoto.d.ts | 43 + .../ReviewV2ReviewInfoV2ResponsePhoto.js | 48 + ...eviewV2ReviewInfoV2ResponseStatusEnum.d.ts | 29 + .../ReviewV2ReviewInfoV2ResponseStatusEnum.js | 52 + .../ReviewV2ReviewInfoV2ResponseVideo.d.ts | 55 + .../ReviewV2ReviewInfoV2ResponseVideo.js | 52 + dist/models/ReviewV2ReviewListV2Request.d.ts | 51 + dist/models/ReviewV2ReviewListV2Request.js | 54 + .../ReviewV2ReviewListV2RequestFilters.d.ts | 57 + .../ReviewV2ReviewListV2RequestFilters.js | 54 + ...ewListV2RequestFiltersOrderStatusEnum.d.ts | 29 + ...viewListV2RequestFiltersOrderStatusEnum.js | 52 + ...2ReviewListV2RequestFiltersStatusEnum.d.ts | 31 + ...wV2ReviewListV2RequestFiltersStatusEnum.js | 54 + ...eviewV2ReviewListV2RequestSortDirEnum.d.ts | 27 + .../ReviewV2ReviewListV2RequestSortDirEnum.js | 50 + dist/models/ReviewV2ReviewListV2Response.d.ts | 45 + dist/models/ReviewV2ReviewListV2Response.js | 49 + .../ReviewV2ReviewListV2ResponseReview.d.ts | 94 + .../ReviewV2ReviewListV2ResponseReview.js | 66 + ...ewListV2ResponseReviewOrderStatusEnum.d.ts | 27 + ...viewListV2ResponseReviewOrderStatusEnum.js | 50 + ...2ReviewListV2ResponseReviewStatusEnum.d.ts | 29 + ...wV2ReviewListV2ResponseReviewStatusEnum.js | 52 + dist/models/RolesByTokenResponseRoles.d.ts | 37 + dist/models/RolesByTokenResponseRoles.js | 46 + dist/models/RowItem.d.ts | 49 + dist/models/RowItem.js | 50 + dist/models/RowItemCommission.d.ts | 101 + dist/models/RowItemCommission.js | 64 + dist/models/RowItemCommissionReturn.d.ts | 97 + dist/models/RowItemCommissionReturn.js | 64 + dist/models/RowItemLegalEntityDocument.d.ts | 37 + dist/models/RowItemLegalEntityDocument.js | 46 + dist/models/RowItemOrder.d.ts | 37 + dist/models/RowItemOrder.js | 46 + dist/models/RpcStatus.d.ts | 44 + dist/models/RpcStatus.js | 49 + .../RpcStatusV1FinanceRealizationPosting.d.ts | 50 + .../RpcStatusV1FinanceRealizationPosting.js | 49 + dist/models/RpcStatusV1PolygonBind.d.ts | 51 + dist/models/RpcStatusV1PolygonBind.js | 49 + dist/models/RpcStatusV1PolygonCreate.d.ts | 50 + dist/models/RpcStatusV1PolygonCreate.js | 49 + dist/models/RpcStatusV2DeliveryCheckout.d.ts | 44 + dist/models/RpcStatusV2DeliveryCheckout.js | 49 + .../SearchAttributeValuesResponseValue.d.ts | 49 + .../SearchAttributeValuesResponseValue.js | 50 + .../SearchQueriesTextRequestSortBy.d.ts | 31 + dist/models/SearchQueriesTextRequestSortBy.js | 54 + .../SearchQueriesTextRequestSortDir.d.ts | 27 + .../models/SearchQueriesTextRequestSortDir.js | 50 + ...ellerActionsListRequestActionTypeEnum.d.ts | 37 + .../SellerActionsListRequestActionTypeEnum.js | 60 + .../SellerActionsListRequestStatusEnum.d.ts | 31 + .../SellerActionsListRequestStatusEnum.js | 54 + .../SellerActionsListResponseAction.d.ts | 78 + .../models/SellerActionsListResponseAction.js | 59 + ...tRequestActionParametersDiscountLevel.d.ts | 37 + ...untRequestActionParametersDiscountLevel.js | 50 + .../SellerApiActivateProductV1Request.d.ts | 38 + .../SellerApiActivateProductV1Request.js | 51 + .../SellerApiGetSellerActionsV1Response.d.ts | 32 + .../SellerApiGetSellerActionsV1Response.js | 45 + .../SellerApiGetSellerProductV1Request.d.ts | 43 + .../SellerApiGetSellerProductV1Request.js | 50 + .../SellerApiGetSellerProductV1Response.d.ts | 32 + .../SellerApiGetSellerProductV1Response.js | 45 + ...erApiGetSellerProductV1ResponseResult.d.ts | 44 + ...llerApiGetSellerProductV1ResponseResult.js | 49 + dist/models/SellerApiProduct.d.ts | 111 + dist/models/SellerApiProduct.js | 70 + dist/models/SellerApiProductIDsV1Request.d.ts | 37 + dist/models/SellerApiProductIDsV1Request.js | 50 + dist/models/SellerApiProductPrice.d.ts | 43 + dist/models/SellerApiProductPrice.js | 52 + dist/models/SellerApiProductV1Response.d.ts | 32 + dist/models/SellerApiProductV1Response.js | 45 + .../SellerApiProductV1ResponseDeactivate.d.ts | 32 + .../SellerApiProductV1ResponseDeactivate.js | 45 + .../SellerApiProductV1ResponseProduct.d.ts | 37 + .../SellerApiProductV1ResponseProduct.js | 46 + ...ApiProductV1ResponseProductDeactivate.d.ts | 37 + ...erApiProductV1ResponseProductDeactivate.js | 46 + .../SellerApiProductV1ResponseResult.d.ts | 38 + .../SellerApiProductV1ResponseResult.js | 47 + ...rApiProductV1ResponseResultDeactivate.d.ts | 38 + ...lerApiProductV1ResponseResultDeactivate.js | 47 + dist/models/SellerInfoResponseCompany.d.ts | 82 + dist/models/SellerInfoResponseCompany.js | 59 + dist/models/SellerInfoResponseRating.d.ts | 65 + dist/models/SellerInfoResponseRating.js | 58 + .../SellerInfoResponseRatingTypeEnum.d.ts | 37 + .../SellerInfoResponseRatingTypeEnum.js | 60 + .../SellerInfoResponseSubscription.d.ts | 39 + dist/models/SellerInfoResponseSubscription.js | 47 + ...ellerInfoResponseSubscriptionTypeEnum.d.ts | 35 + .../SellerInfoResponseSubscriptionTypeEnum.js | 58 + ...sticsInfoResponseAvailableSchemasEnum.d.ts | 25 + ...gisticsInfoResponseAvailableSchemasEnum.js | 48 + .../SellerReturnsv1MoneyCommission.d.ts | 37 + dist/models/SellerReturnsv1MoneyCommission.js | 46 + dist/models/SellerReturnsv1MoneyProduct.d.ts | 37 + dist/models/SellerReturnsv1MoneyProduct.js | 46 + dist/models/SellerReturnsv1MoneyStorage.d.ts | 37 + dist/models/SellerReturnsv1MoneyStorage.js | 46 + .../SellerReturnsv1MoneyUtilization.d.ts | 37 + .../models/SellerReturnsv1MoneyUtilization.js | 46 + ...SellerReturnsv1MoneyWithoutCommission.d.ts | 37 + .../SellerReturnsv1MoneyWithoutCommission.js | 46 + ...llerSellerAPIArrivalPassCreateRequest.d.ts | 38 + ...SellerSellerAPIArrivalPassCreateRequest.js | 51 + ...PIArrivalPassCreateRequestArrivalPass.d.ts | 56 + ...rAPIArrivalPassCreateRequestArrivalPass.js | 60 + ...lerSellerAPIArrivalPassCreateResponse.d.ts | 31 + ...ellerSellerAPIArrivalPassCreateResponse.js | 44 + ...llerSellerAPIArrivalPassDeleteRequest.d.ts | 37 + ...SellerSellerAPIArrivalPassDeleteRequest.js | 50 + ...llerSellerAPIArrivalPassUpdateRequest.d.ts | 38 + ...SellerSellerAPIArrivalPassUpdateRequest.js | 51 + ...PIArrivalPassUpdateRequestArrivalPass.d.ts | 62 + ...rAPIArrivalPassUpdateRequestArrivalPass.js | 64 + .../SellerServiceanalyticsDimension.d.ts | 34 + .../models/SellerServiceanalyticsDimension.js | 57 + dist/models/SetPostingsResponseResult.d.ts | 44 + dist/models/SetPostingsResponseResult.js | 48 + dist/models/SourceShipmentType.d.ts | 31 + dist/models/SourceShipmentType.js | 54 + dist/models/SplitDeliveryMethod.d.ts | 58 + dist/models/SplitDeliveryMethod.js | 63 + dist/models/SplitItem.d.ts | 50 + dist/models/SplitItem.js | 57 + dist/models/StatusEnum.d.ts | 29 + dist/models/StatusEnum.js | 52 + dist/models/StockShipmentType.d.ts | 29 + dist/models/StockShipmentType.js | 52 + dist/models/StocksImportRequestItemStock.d.ts | 37 + dist/models/StocksImportRequestItemStock.js | 50 + .../StocksImportResponseItemStatus.d.ts | 57 + dist/models/StocksImportResponseItemStatus.js | 53 + ...erAvailableWarehousesResponseCapacity.d.ts | 43 + ...lierAvailableWarehousesResponseCapacity.js | 48 + ...lierAvailableWarehousesResponseResult.d.ts | 39 + ...pplierAvailableWarehousesResponseResult.js | 48 + ...erAvailableWarehousesResponseSchedule.d.ts | 38 + ...lierAvailableWarehousesResponseSchedule.js | 47 + ...rAvailableWarehousesResponseWarehouse.d.ts | 37 + ...ierAvailableWarehousesResponseWarehouse.js | 46 + .../SupplyCancellationAllowability.d.ts | 47 + dist/models/SupplyCancellationAllowability.js | 47 + dist/models/SupplyCargoInfo.d.ts | 65 + dist/models/SupplyCargoInfo.js | 58 + dist/models/SupplyCargoInfoTypeEnum.d.ts | 29 + dist/models/SupplyCargoInfoTypeEnum.js | 52 + .../models/SupplyCheckCargoesPresentRule.d.ts | 45 + dist/models/SupplyCheckCargoesPresentRule.js | 49 + .../SupplyCheckEditDeadlineExpireRule.d.ts | 46 + .../SupplyCheckEditDeadlineExpireRule.js | 48 + .../SupplyCheckExpireDatePresentedRule.d.ts | 58 + .../SupplyCheckExpireDatePresentedRule.js | 52 + .../SupplyCheckIsValidDistributionRule.d.ts | 57 + .../SupplyCheckIsValidDistributionRule.js | 52 + ...yCheckPackageUnitWithDistributionRule.d.ts | 58 + ...plyCheckPackageUnitWithDistributionRule.js | 52 + dist/models/SupplyCheckPlacementZoneRule.d.ts | 51 + dist/models/SupplyCheckPlacementZoneRule.js | 50 + dist/models/SupplyContent.d.ts | 55 + dist/models/SupplyContent.js | 49 + dist/models/SupplyETTN.d.ts | 46 + dist/models/SupplyETTN.js | 48 + ...rCancelStatusResponseCancelOrderError.d.ts | 27 + ...derCancelStatusResponseCancelOrderError.js | 50 + ...ncelStatusResponseCancelSupplyResults.d.ts | 52 + ...CancelStatusResponseCancelSupplyResults.js | 49 + ...SupplyOrderCancelStatusResponseResult.d.ts | 39 + .../SupplyOrderCancelStatusResponseResult.js | 47 + ...ContentUpdateStatusResponseStatusEnum.d.ts | 31 + ...erContentUpdateStatusResponseStatusEnum.js | 54 + ...UpdateValidationResponseApprovedItems.d.ts | 91 + ...ntUpdateValidationResponseApprovedItems.js | 64 + ...ateValidationResponseEditingErrorEnum.d.ts | 36 + ...pdateValidationResponseEditingErrorEnum.js | 59 + ...UpdateValidationResponseRejectedItems.d.ts | 113 + ...ntUpdateValidationResponseRejectedItems.js | 64 + ...ValidationResponseValidatedAssortment.d.ts | 69 + ...teValidationResponseValidatedAssortment.js | 58 + ...plyOrderDetailsResponseOrderStateEnum.d.ts | 47 + ...upplyOrderDetailsResponseOrderStateEnum.js | 70 + .../SupplyOrderDetailsResponseOrderTags.d.ts | 59 + .../SupplyOrderDetailsResponseOrderTags.js | 52 + .../SupplyOrderDetailsResponseSupply.d.ts | 93 + .../SupplyOrderDetailsResponseSupply.js | 69 + ...pplyOrderDetailsResponseTimeslotValue.d.ts | 39 + ...SupplyOrderDetailsResponseTimeslotValue.js | 48 + .../SupplyOrderDetailsResponseVehicle.d.ts | 52 + .../SupplyOrderDetailsResponseVehicle.js | 50 + ...upplyOrderDetailsResponseVehicleValue.d.ts | 63 + .../SupplyOrderDetailsResponseVehicleValue.js | 54 + dist/models/SupplyOrderGetResponseOrder.d.ts | 90 + dist/models/SupplyOrderGetResponseOrder.js | 67 + .../SupplyOrderGetResponseTimeslotTZ.d.ts | 39 + .../SupplyOrderGetResponseTimeslotTZ.js | 48 + dist/models/SupplyOrderListRequestFilter.d.ts | 63 + dist/models/SupplyOrderListRequestFilter.js | 54 + ...SupplyOrderListRequestFilterStateEnum.d.ts | 33 + .../SupplyOrderListRequestFilterStateEnum.js | 56 + .../SupplyOrderListRequestSortByEnum.d.ts | 31 + .../SupplyOrderListRequestSortByEnum.js | 54 + .../SupplyOrderListRequestSortDirEnum.d.ts | 27 + .../SupplyOrderListRequestSortDirEnum.js | 50 + ...plyOrderV1SupplyOrderActAcceptRequest.d.ts | 31 + ...upplyOrderV1SupplyOrderActAcceptRequest.js | 46 + ...lyOrderV1SupplyOrderActAcceptResponse.d.ts | 42 + ...pplyOrderV1SupplyOrderActAcceptResponse.js | 47 + ...rderActAcceptResponseErrorReasonsEnum.d.ts | 25 + ...yOrderActAcceptResponseErrorReasonsEnum.js | 48 + ...erV1SupplyOrderActAcceptStatusRequest.d.ts | 31 + ...rderV1SupplyOrderActAcceptStatusRequest.js | 46 + ...rV1SupplyOrderActAcceptStatusResponse.d.ts | 38 + ...derV1SupplyOrderActAcceptStatusResponse.js | 47 + ...rderActAcceptStatusResponseStatusEnum.d.ts | 29 + ...yOrderActAcceptStatusResponseStatusEnum.js | 52 + ...rderV1SupplyOrderActProductGetRequest.d.ts | 31 + ...yOrderV1SupplyOrderActProductGetRequest.js | 46 + ...derV1SupplyOrderActProductGetResponse.d.ts | 45 + ...OrderV1SupplyOrderActProductGetResponse.js | 50 + ...OrderActProductGetResponseSkusDefects.d.ts | 37 + ...lyOrderActProductGetResponseSkusDefects.js | 46 + ...yOrderActProductGetResponseSupplyActs.d.ts | 51 + ...plyOrderActProductGetResponseSupplyActs.js | 52 + ...rActProductGetResponseSupplyActsItems.d.ts | 64 + ...derActProductGetResponseSupplyActsItems.js | 57 + ...ResponseSupplyActsItemsApprovedAmount.d.ts | 46 + ...etResponseSupplyActsItemsApprovedAmount.js | 51 + ...tGetResponseSupplyActsItemsFactAmount.d.ts | 46 + ...uctGetResponseSupplyActsItemsFactAmount.js | 51 + ...ductGetResponseSupplyActsItemsSkuInfo.d.ts | 68 + ...roductGetResponseSupplyActsItemsSkuInfo.js | 57 + ...tProductGetResponseSupplyActsTypeEnum.d.ts | 33 + ...ActProductGetResponseSupplyActsTypeEnum.js | 56 + ...rderV1SupplyOrderActSummaryGetRequest.d.ts | 31 + ...yOrderV1SupplyOrderActSummaryGetRequest.js | 46 + ...derV1SupplyOrderActSummaryGetResponse.d.ts | 32 + ...OrderV1SupplyOrderActSummaryGetResponse.js | 45 + ...rderActSummaryGetResponseSuppliesActs.d.ts | 45 + ...yOrderActSummaryGetResponseSuppliesActs.js | 49 + ...maryGetResponseSuppliesActsSupplyActs.d.ts | 70 + ...ummaryGetResponseSuppliesActsSupplyActs.js | 59 + ...nseSuppliesActsSupplyActsActStateEnum.d.ts | 33 + ...ponseSuppliesActsSupplyActsActStateEnum.js | 56 + ...ResponseSuppliesActsSupplyActsSummary.d.ts | 69 + ...etResponseSuppliesActsSupplyActsSummary.js | 58 + ...esActsSupplyActsSummaryApprovedAmount.d.ts | 46 + ...liesActsSupplyActsSummaryApprovedAmount.js | 51 + ...ppliesActsSupplyActsSummaryFactAmount.d.ts | 46 + ...SuppliesActsSupplyActsSummaryFactAmount.js | 51 + ...esponseSuppliesActsSupplyActsTypeEnum.d.ts | 33 + ...tResponseSuppliesActsSupplyActsTypeEnum.js | 56 + ...OrderV2SupplyOrderTimeslotListRequest.d.ts | 31 + ...lyOrderV2SupplyOrderTimeslotListRequest.js | 46 + ...rderV2SupplyOrderTimeslotListResponse.d.ts | 46 + ...yOrderV2SupplyOrderTimeslotListResponse.js | 51 + ...rderTimeslotListResponseLimitExceeded.d.ts | 31 + ...yOrderTimeslotListResponseLimitExceeded.js | 44 + ...otListResponseTimeslotChangeForbidden.d.ts | 37 + ...slotListResponseTimeslotChangeForbidden.js | 45 + ...meslotChangeForbiddenErrorReasonsEnum.d.ts | 26 + ...TimeslotChangeForbiddenErrorReasonsEnum.js | 49 + ...rderTimeslotListResponseTimeslotsInfo.d.ts | 46 + ...yOrderTimeslotListResponseTimeslotsInfo.js | 51 + ...tListResponseTimeslotsInfoLimitations.d.ts | 38 + ...lotListResponseTimeslotsInfoLimitations.js | 46 + ...lotListResponseTimeslotsInfoTimeslots.d.ts | 37 + ...eslotListResponseTimeslotsInfoTimeslots.js | 46 + ...slotListResponseTimeslotsInfoTimezone.d.ts | 37 + ...meslotListResponseTimeslotsInfoTimezone.js | 46 + dist/models/SupplyOverdueReasonEnum.d.ts | 35 + dist/models/SupplyOverdueReasonEnum.js | 58 + dist/models/SupplyStateEnum.d.ts | 47 + dist/models/SupplyStateEnum.js | 70 + dist/models/SupplyStorageWarehouse.d.ts | 50 + dist/models/SupplyStorageWarehouse.js | 50 + dist/models/SupplySupplyTags.d.ts | 74 + dist/models/SupplySupplyTags.js | 56 + dist/models/SupplyTags.d.ts | 67 + dist/models/SupplyTags.js | 54 + dist/models/TaskAutoModeratedInfo.d.ts | 49 + dist/models/TaskAutoModeratedInfo.js | 50 + .../TimeslotCanNotSetTimeslotReasonEnum.d.ts | 28 + .../TimeslotCanNotSetTimeslotReasonEnum.js | 51 + ...meslotFromRangeTimeslotFilterTypeEnum.d.ts | 27 + ...TimeslotFromRangeTimeslotFilterTypeEnum.js | 50 + dist/models/TimeslotTZTimeslot.d.ts | 37 + dist/models/TimeslotTZTimeslot.js | 46 + dist/models/TimeslotTZTimezoneInfo.d.ts | 37 + dist/models/TimeslotTZTimezoneInfo.js | 46 + dist/models/TimeslotValueTimeslot.d.ts | 37 + dist/models/TimeslotValueTimeslot.js | 46 + dist/models/TimetableWorkingHours.d.ts | 37 + dist/models/TimetableWorkingHours.js | 46 + dist/models/TypeTimeOfDay.d.ts | 49 + dist/models/TypeTimeOfDay.js | 50 + ...ngCodesRequestPostingLineExemplarInfo.d.ts | 49 + ...tingCodesRequestPostingLineExemplarInfo.js | 56 + ...stingCodesResponsePostingExemplarInfo.d.ts | 50 + ...PostingCodesResponsePostingExemplarInfo.js | 51 + dist/models/UtilizationDefectsMoney.d.ts | 37 + dist/models/UtilizationDefectsMoney.js | 46 + dist/models/UtilizationMoney.d.ts | 37 + dist/models/UtilizationMoney.js | 46 + dist/models/V1AddBarcodeRequest.d.ts | 32 + dist/models/V1AddBarcodeRequest.js | 47 + dist/models/V1AddBarcodeResponse.d.ts | 32 + dist/models/V1AddBarcodeResponse.js | 45 + dist/models/V1AddBarcodeResult.d.ts | 49 + dist/models/V1AddBarcodeResult.js | 50 + dist/models/V1AddStrategyItemsRequest.d.ts | 37 + dist/models/V1AddStrategyItemsRequest.js | 50 + dist/models/V1AddStrategyItemsResponse.d.ts | 32 + dist/models/V1AddStrategyItemsResponse.js | 45 + .../V1AddStrategyItemsResponseResult.d.ts | 38 + .../V1AddStrategyItemsResponseResult.js | 47 + .../V1AnalyticsManageStocksRequest.d.ts | 48 + dist/models/V1AnalyticsManageStocksRequest.js | 48 + .../V1AnalyticsManageStocksRequestFilter.d.ts | 58 + .../V1AnalyticsManageStocksRequestFilter.js | 58 + .../V1AnalyticsManageStocksResponse.d.ts | 32 + .../models/V1AnalyticsManageStocksResponse.js | 45 + .../V1AnalyticsManageStocksResponseItem.d.ts | 73 + .../V1AnalyticsManageStocksResponseItem.js | 58 + ...AnalyticsProductQueriesDetailsRequest.d.ts | 75 + ...V1AnalyticsProductQueriesDetailsRequest.js | 68 + ...icsProductQueriesDetailsRequestSortBy.d.ts | 35 + ...yticsProductQueriesDetailsRequestSortBy.js | 58 + ...csProductQueriesDetailsRequestSortDir.d.ts | 27 + ...ticsProductQueriesDetailsRequestSortDir.js | 50 + ...nalyticsProductQueriesDetailsResponse.d.ts | 51 + ...1AnalyticsProductQueriesDetailsResponse.js | 52 + ...QueriesDetailsResponseAnalyticsPeriod.d.ts | 37 + ...ctQueriesDetailsResponseAnalyticsPeriod.js | 46 + .../V1AnalyticsProductQueriesRequest.d.ts | 69 + .../V1AnalyticsProductQueriesRequest.js | 64 + .../V1AnalyticsProductQueriesResponse.d.ts | 51 + .../V1AnalyticsProductQueriesResponse.js | 52 + ...V1AnalyticsProductQueriesResponseItem.d.ts | 85 + .../V1AnalyticsProductQueriesResponseItem.js | 62 + dist/models/V1AnalyticsStocksRequest.d.ts | 155 ++ dist/models/V1AnalyticsStocksRequest.js | 106 + dist/models/V1AnalyticsStocksResponse.d.ts | 32 + dist/models/V1AnalyticsStocksResponse.js | 45 + .../models/V1AnalyticsStocksResponseItem.d.ts | 333 +++ dist/models/V1AnalyticsStocksResponseItem.js | 172 ++ .../V1AnalyticsTurnoverStocksRequest.d.ts | 47 + .../V1AnalyticsTurnoverStocksRequest.js | 48 + .../V1AnalyticsTurnoverStocksResponse.d.ts | 32 + .../V1AnalyticsTurnoverStocksResponse.js | 45 + ...V1AnalyticsTurnoverStocksResponseItem.d.ts | 117 + .../V1AnalyticsTurnoverStocksResponseItem.js | 83 + ...V1ApproveDeclineDiscountTasksResponse.d.ts | 32 + .../V1ApproveDeclineDiscountTasksResponse.js | 45 + ...oveDeclineDiscountTasksResponseResult.d.ts | 44 + ...proveDeclineDiscountTasksResponseResult.js | 49 + .../models/V1ApproveDiscountTasksRequest.d.ts | 32 + dist/models/V1ApproveDiscountTasksRequest.js | 47 + .../V1ApproveDiscountTasksRequestTask.d.ts | 55 + .../V1ApproveDiscountTasksRequestTask.js | 60 + dist/models/V1ArchiveDeclineReason.d.ts | 56 + dist/models/V1ArchiveDeclineReason.js | 58 + dist/models/V1ArchiveSkuSummary.d.ts | 43 + dist/models/V1ArchiveSkuSummary.js | 48 + dist/models/V1ArchiveStatusEnum.d.ts | 31 + dist/models/V1ArchiveStatusEnum.js | 54 + dist/models/V1ArchiveWarehouseFBSRequest.d.ts | 43 + dist/models/V1ArchiveWarehouseFBSRequest.js | 52 + .../models/V1ArchiveWarehouseFBSResponse.d.ts | 31 + dist/models/V1ArchiveWarehouseFBSResponse.js | 44 + .../V1AssemblyCarriagePostingListRequest.d.ts | 44 + .../V1AssemblyCarriagePostingListRequest.js | 53 + ...emblyCarriagePostingListRequestFilter.d.ts | 55 + ...ssemblyCarriagePostingListRequestFilter.js | 52 + ...V1AssemblyCarriagePostingListResponse.d.ts | 45 + .../V1AssemblyCarriagePostingListResponse.js | 49 + ...blyCarriagePostingListResponsePosting.d.ts | 51 + ...emblyCarriagePostingListResponsePosting.js | 51 + ...iagePostingListResponsePostingProduct.d.ts | 55 + ...rriagePostingListResponsePostingProduct.js | 52 + .../V1AssemblyCarriageProductListRequest.d.ts | 44 + .../V1AssemblyCarriageProductListRequest.js | 53 + ...emblyCarriageProductListRequestFilter.d.ts | 55 + ...ssemblyCarriageProductListRequestFilter.js | 52 + ...V1AssemblyCarriageProductListResponse.d.ts | 38 + .../V1AssemblyCarriageProductListResponse.js | 47 + ...blyCarriageProductListResponseProduct.d.ts | 61 + ...emblyCarriageProductListResponseProduct.js | 54 + .../V1AssemblyFbsPostingListRequest.d.ts | 51 + .../models/V1AssemblyFbsPostingListRequest.js | 58 + ...V1AssemblyFbsPostingListRequestFilter.d.ts | 49 + .../V1AssemblyFbsPostingListRequestFilter.js | 52 + ...emblyFbsPostingListRequestSortDirEnum.d.ts | 27 + ...ssemblyFbsPostingListRequestSortDirEnum.js | 50 + .../V1AssemblyFbsPostingListResponse.d.ts | 44 + .../V1AssemblyFbsPostingListResponse.js | 49 + ...AssemblyFbsPostingListResponsePosting.d.ts | 44 + ...V1AssemblyFbsPostingListResponsePosting.js | 49 + ...yFbsPostingListResponsePostingProduct.d.ts | 55 + ...blyFbsPostingListResponsePostingProduct.js | 52 + .../V1AssemblyFbsProductListRequest.d.ts | 51 + .../models/V1AssemblyFbsProductListRequest.js | 56 + ...V1AssemblyFbsProductListRequestFilter.d.ts | 49 + .../V1AssemblyFbsProductListRequestFilter.js | 52 + ...emblyFbsProductListRequestSortDirEnum.d.ts | 27 + ...ssemblyFbsProductListRequestSortDirEnum.js | 50 + .../V1AssemblyFbsProductListResponse.d.ts | 48 + .../V1AssemblyFbsProductListResponse.js | 49 + dist/models/V1Barcode.d.ts | 37 + dist/models/V1Barcode.js | 50 + dist/models/V1BundleItemErrorEnum.d.ts | 36 + dist/models/V1BundleItemErrorEnum.js | 59 + dist/models/V1BundleItemShipmentType.d.ts | 29 + dist/models/V1BundleItemShipmentType.js | 52 + .../V1CancelReasonListByOrderRequest.d.ts | 31 + .../V1CancelReasonListByOrderRequest.js | 46 + .../V1CancelReasonListByOrderResponse.d.ts | 32 + .../V1CancelReasonListByOrderResponse.js | 45 + ...CancelReasonListByOrderResponseReason.d.ts | 46 + ...V1CancelReasonListByOrderResponseReason.js | 46 + ...celReasonListByOrderResponseReasonFbo.d.ts | 37 + ...ancelReasonListByOrderResponseReasonFbo.js | 46 + .../V1CancelReasonListByPostingRequest.d.ts | 31 + .../V1CancelReasonListByPostingRequest.js | 46 + .../V1CancelReasonListByPostingResponse.d.ts | 32 + .../V1CancelReasonListByPostingResponse.js | 45 + ...ncelReasonListByPostingResponseReason.d.ts | 46 + ...CancelReasonListByPostingResponseReason.js | 46 + dist/models/V1CancelReasonListResponse.d.ts | 32 + dist/models/V1CancelReasonListResponse.js | 45 + .../models/V1CancelReasonListResponseFbo.d.ts | 32 + dist/models/V1CancelReasonListResponseFbo.js | 45 + dist/models/V1CancellationState.d.ts | 39 + dist/models/V1CancellationState.js | 48 + dist/models/V1CancellationStateStatus.d.ts | 31 + dist/models/V1CancellationStateStatus.js | 54 + dist/models/V1CargoesCreateErrors.d.ts | 50 + dist/models/V1CargoesCreateErrors.js | 48 + dist/models/V1CargoesCreateRequest.d.ts | 45 + dist/models/V1CargoesCreateRequest.js | 53 + dist/models/V1CargoesCreateRequestCargo.d.ts | 38 + dist/models/V1CargoesCreateRequestCargo.js | 51 + .../V1CargoesCreateRequestCargoValue.d.ts | 39 + .../V1CargoesCreateRequestCargoValue.js | 50 + dist/models/V1CargoesCreateResponse.d.ts | 38 + dist/models/V1CargoesCreateResponse.js | 47 + dist/models/V1CargoesDeleteRequest.d.ts | 40 + dist/models/V1CargoesDeleteRequest.js | 50 + dist/models/V1CargoesDeleteResponse.d.ts | 38 + dist/models/V1CargoesDeleteResponse.js | 47 + dist/models/V1CargoesDeleteResponseError.d.ts | 47 + dist/models/V1CargoesDeleteResponseError.js | 48 + ...esDeleteResponseErrorCargoErrorReason.d.ts | 41 + ...goesDeleteResponseErrorCargoErrorReason.js | 47 + ...eErrorCargoErrorReasonErrorReasonEnum.d.ts | 23 + ...nseErrorCargoErrorReasonErrorReasonEnum.js | 46 + ...eteResponseErrorSupplyErrorReasonEnum.d.ts | 29 + ...eleteResponseErrorSupplyErrorReasonEnum.js | 52 + dist/models/V1CargoesDeleteStatusRequest.d.ts | 31 + dist/models/V1CargoesDeleteStatusRequest.js | 46 + .../models/V1CargoesDeleteStatusResponse.d.ts | 39 + dist/models/V1CargoesDeleteStatusResponse.js | 48 + .../V1CargoesDeleteStatusResponseError.d.ts | 47 + .../V1CargoesDeleteStatusResponseError.js | 48 + ...teStatusResponseErrorCargoErrorReason.d.ts | 41 + ...leteStatusResponseErrorCargoErrorReason.js | 47 + ...eErrorCargoErrorReasonErrorReasonEnum.d.ts | 23 + ...nseErrorCargoErrorReasonErrorReasonEnum.js | 46 + ...tusResponseErrorSupplyErrorReasonEnum.d.ts | 29 + ...tatusResponseErrorSupplyErrorReasonEnum.js | 52 + dist/models/V1CargoesGetRequest.d.ts | 31 + dist/models/V1CargoesGetRequest.js | 46 + dist/models/V1CargoesGetResponse.d.ts | 32 + dist/models/V1CargoesGetResponse.js | 45 + dist/models/V1CargoesLabelCreateErrors.d.ts | 40 + dist/models/V1CargoesLabelCreateErrors.js | 45 + ...V1CargoesLabelCreateErrorsErrorReason.d.ts | 29 + .../V1CargoesLabelCreateErrorsErrorReason.js | 52 + dist/models/V1CargoesLabelCreateRequest.d.ts | 38 + dist/models/V1CargoesLabelCreateRequest.js | 49 + .../V1CargoesLabelCreateRequestCargo.d.ts | 31 + .../V1CargoesLabelCreateRequestCargo.js | 44 + dist/models/V1CargoesLabelCreateResponse.d.ts | 38 + dist/models/V1CargoesLabelCreateResponse.js | 47 + dist/models/V1CargoesLabelGetRequest.d.ts | 31 + dist/models/V1CargoesLabelGetRequest.js | 46 + dist/models/V1CargoesLabelGetResponse.d.ts | 46 + dist/models/V1CargoesLabelGetResponse.js | 51 + .../V1CargoesLabelGetResponseResult.d.ts | 38 + .../models/V1CargoesLabelGetResponseResult.js | 46 + .../V1CargoesLabelGetResponseStatus.d.ts | 29 + .../models/V1CargoesLabelGetResponseStatus.js | 52 + dist/models/V1CargoesRulesGetRequest.d.ts | 34 + dist/models/V1CargoesRulesGetRequest.js | 46 + dist/models/V1CargoesRulesGetResponse.d.ts | 32 + dist/models/V1CargoesRulesGetResponse.js | 45 + .../V1CarriageActDiscrepancyPDFRequest.d.ts | 31 + .../V1CarriageActDiscrepancyPDFRequest.js | 46 + .../V1CarriageActDiscrepancyPDFResponse.d.ts | 43 + .../V1CarriageActDiscrepancyPDFResponse.js | 48 + dist/models/V1CarriageApproveRequest.d.ts | 40 + dist/models/V1CarriageApproveRequest.js | 48 + dist/models/V1CarriageCancelRequest.d.ts | 31 + dist/models/V1CarriageCancelRequest.js | 46 + dist/models/V1CarriageCancelResponse.d.ts | 37 + dist/models/V1CarriageCancelResponse.js | 46 + .../V1CarriageCourierContactGetRequest.d.ts | 31 + .../V1CarriageCourierContactGetRequest.js | 46 + .../V1CarriageCourierContactGetResponse.d.ts | 32 + .../V1CarriageCourierContactGetResponse.js | 45 + ...riageCourierContactGetResponseContact.d.ts | 55 + ...arriageCourierContactGetResponseContact.js | 52 + .../V1CarriageCourierContactSetRequest.d.ts | 49 + .../V1CarriageCourierContactSetRequest.js | 54 + dist/models/V1CarriageCreateRequest.d.ts | 44 + dist/models/V1CarriageCreateRequest.js | 48 + dist/models/V1CarriageCreateResponse.d.ts | 31 + dist/models/V1CarriageCreateResponse.js | 44 + .../models/V1CarriageDeliveryListRequest.d.ts | 37 + dist/models/V1CarriageDeliveryListRequest.js | 46 + .../V1CarriageDeliveryListResponse.d.ts | 32 + dist/models/V1CarriageDeliveryListResponse.js | 45 + .../V1CarriageDeliveryListResponseResult.d.ts | 260 ++ .../V1CarriageDeliveryListResponseResult.js | 120 + ...geDeliveryListResponseResultCarriages.d.ts | 49 + ...iageDeliveryListResponseResultCarriages.js | 50 + ...riageDeliveryListResponseResultErrors.d.ts | 43 + ...arriageDeliveryListResponseResultErrors.js | 48 + dist/models/V1CarriageEttnStatusRequest.d.ts | 31 + dist/models/V1CarriageEttnStatusRequest.js | 46 + dist/models/V1CarriageEttnStatusResponse.d.ts | 52 + dist/models/V1CarriageEttnStatusResponse.js | 56 + dist/models/V1Certificate.d.ts | 91 + dist/models/V1Certificate.js | 64 + dist/models/V1ClusterType.d.ts | 27 + dist/models/V1ClusterType.js | 50 + dist/models/V1CommentCreateRequest.d.ts | 52 + dist/models/V1CommentCreateRequest.js | 54 + dist/models/V1CommentCreateResponse.d.ts | 31 + dist/models/V1CommentCreateResponse.js | 44 + dist/models/V1CommentDeleteRequest.d.ts | 31 + dist/models/V1CommentDeleteRequest.js | 46 + dist/models/V1CommentListRequest.d.ts | 59 + dist/models/V1CommentListRequest.js | 56 + dist/models/V1CommentListResponse.d.ts | 38 + dist/models/V1CommentListResponse.js | 47 + dist/models/V1CommentSort.d.ts | 27 + dist/models/V1CommentSort.js | 50 + dist/models/V1Competitor.d.ts | 37 + dist/models/V1Competitor.js | 50 + ...eateDocumentB2BSalesJSONReportRequest.d.ts | 31 + ...CreateDocumentB2BSalesJSONReportRequest.js | 46 + ...ateDocumentB2BSalesJSONReportResponse.d.ts | 51 + ...reateDocumentB2BSalesJSONReportResponse.js | 52 + ...V1CreateDocumentB2BSalesReportRequest.d.ts | 40 + .../V1CreateDocumentB2BSalesReportRequest.js | 48 + dist/models/V1CreateLabelBatchRequest.d.ts | 31 + dist/models/V1CreateLabelBatchRequest.js | 46 + dist/models/V1CreateLabelBatchResponse.d.ts | 32 + dist/models/V1CreateLabelBatchResponse.js | 45 + .../V1CreateLabelBatchResponseResult.d.ts | 31 + .../V1CreateLabelBatchResponseResult.js | 44 + ...V1CreateMutualSettlementReportRequest.d.ts | 40 + .../V1CreateMutualSettlementReportRequest.js | 48 + ...reatePlacementByProductsReportRequest.d.ts | 40 + ...1CreatePlacementByProductsReportRequest.js | 50 + ...eatePlacementByProductsReportResponse.d.ts | 31 + ...CreatePlacementByProductsReportResponse.js | 44 + ...reatePlacementBySuppliesReportRequest.d.ts | 40 + ...1CreatePlacementBySuppliesReportRequest.js | 50 + ...eatePlacementBySuppliesReportResponse.d.ts | 31 + ...CreatePlacementBySuppliesReportResponse.js | 44 + .../V1CreatePricingStrategyRequest.d.ts | 38 + dist/models/V1CreatePricingStrategyRequest.js | 51 + .../V1CreatePricingStrategyResponse.d.ts | 32 + .../models/V1CreatePricingStrategyResponse.js | 45 + ...V1CreatePricingStrategyResponseResult.d.ts | 31 + .../V1CreatePricingStrategyResponseResult.js | 44 + ...V1CreateStockByWarehouseReportRequest.d.ts | 42 + .../V1CreateStockByWarehouseReportRequest.js | 48 + dist/models/V1CreateType.d.ts | 27 + dist/models/V1CreateType.js | 50 + dist/models/V1CreateWarehouseFBSRequest.d.ts | 105 + dist/models/V1CreateWarehouseFBSRequest.js | 82 + dist/models/V1CreateWarehouseFBSResponse.d.ts | 31 + dist/models/V1CreateWarehouseFBSResponse.js | 44 + dist/models/V1DayOfWeek.d.ts | 39 + dist/models/V1DayOfWeek.js | 62 + .../models/V1DeclineDiscountTasksRequest.d.ts | 32 + dist/models/V1DeclineDiscountTasksRequest.js | 47 + .../V1DeclineDiscountTasksRequestTask.d.ts | 37 + .../V1DeclineDiscountTasksRequestTask.js | 48 + .../models/V1DeleteStrategyItemsResponse.d.ts | 32 + dist/models/V1DeleteStrategyItemsResponse.js | 45 + .../V1DeleteStrategyItemsResponseResult.d.ts | 31 + .../V1DeleteStrategyItemsResponseResult.js | 44 + dist/models/V1DeliveryCheckRequest.d.ts | 31 + dist/models/V1DeliveryCheckRequest.js | 46 + dist/models/V1DeliveryCheckResponse.d.ts | 32 + dist/models/V1DeliveryCheckResponse.js | 44 + dist/models/V1DeliveryCheckoutRequest.d.ts | 52 + dist/models/V1DeliveryCheckoutRequest.js | 53 + ...V1DeliveryCheckoutRequestDeliveryType.d.ts | 39 + .../V1DeliveryCheckoutRequestDeliveryType.js | 48 + .../models/V1DeliveryCheckoutRequestItem.d.ts | 43 + dist/models/V1DeliveryCheckoutRequestItem.js | 48 + dist/models/V1DeliveryCheckoutResponse.d.ts | 32 + dist/models/V1DeliveryCheckoutResponse.js | 45 + .../V1DeliveryDetailsDirectDetails.d.ts | 46 + dist/models/V1DeliveryDetailsDirectDetails.js | 51 + .../V1DeliveryDetailsPickUpDetails.d.ts | 55 + dist/models/V1DeliveryDetailsPickUpDetails.js | 52 + dist/models/V1DeliveryMapRequest.d.ts | 38 + dist/models/V1DeliveryMapRequest.js | 47 + dist/models/V1DeliveryMapRequestViewport.d.ts | 39 + dist/models/V1DeliveryMapRequestViewport.js | 48 + dist/models/V1DeliveryMapResponse.d.ts | 32 + dist/models/V1DeliveryMapResponse.js | 45 + dist/models/V1DeliveryPointInfoRequest.d.ts | 31 + dist/models/V1DeliveryPointInfoRequest.js | 44 + dist/models/V1DeliveryPointInfoResponse.d.ts | 32 + dist/models/V1DeliveryPointInfoResponse.js | 45 + .../V1DeliveryPointInfoResponsePoint.d.ts | 39 + .../V1DeliveryPointInfoResponsePoint.js | 47 + dist/models/V1DeliveryPointListResponse.d.ts | 32 + dist/models/V1DeliveryPointListResponse.js | 45 + .../V1DeliveryPointListResponsePoint.d.ts | 38 + .../V1DeliveryPointListResponsePoint.js | 47 + dist/models/V1DiscountTaskStatus.d.ts | 41 + dist/models/V1DiscountTaskStatus.js | 64 + dist/models/V1DraftClusterListRequest.d.ts | 38 + dist/models/V1DraftClusterListRequest.js | 49 + dist/models/V1DraftClusterListResponse.d.ts | 32 + dist/models/V1DraftClusterListResponse.js | 45 + .../V1DraftClusterListResponseCluster.d.ts | 67 + .../V1DraftClusterListResponseCluster.js | 61 + .../V1DraftClusterListResponseWarehouse.d.ts | 62 + .../V1DraftClusterListResponseWarehouse.js | 60 + dist/models/V1DraftCreateCommonResponse.d.ts | 38 + dist/models/V1DraftCreateCommonResponse.js | 47 + .../models/V1DraftCrossdockCreateRequest.d.ts | 46 + dist/models/V1DraftCrossdockCreateRequest.js | 57 + ...raftCrossdockCreateRequestClusterInfo.d.ts | 38 + ...1DraftCrossdockCreateRequestClusterInfo.js | 51 + ...CrossdockCreateRequestClusterInfoItem.d.ts | 37 + ...ftCrossdockCreateRequestClusterInfoItem.js | 50 + ...ossdockCreateRequestDeleteSkuModeEnum.d.ts | 29 + ...CrossdockCreateRequestDeleteSkuModeEnum.js | 52 + ...aftCrossdockCreateRequestDeliveryInfo.d.ts | 45 + ...DraftCrossdockCreateRequestDeliveryInfo.js | 52 + ...teRequestDeliveryInfoDropOffWarehouse.d.ts | 38 + ...eateRequestDeliveryInfoDropOffWarehouse.js | 51 + ...InfoDropOffWarehouseWarehouseTypeEnum.d.ts | 33 + ...ryInfoDropOffWarehouseWarehouseTypeEnum.js | 56 + ...dockCreateRequestDeliveryInfoTypeEnum.d.ts | 27 + ...ssdockCreateRequestDeliveryInfoTypeEnum.js | 50 + dist/models/V1DraftDirectCreateRequest.d.ts | 39 + dist/models/V1DraftDirectCreateRequest.js | 52 + ...V1DraftDirectCreateRequestClusterInfo.d.ts | 38 + .../V1DraftDirectCreateRequestClusterInfo.js | 51 + ...aftDirectCreateRequestClusterInfoItem.d.ts | 37 + ...DraftDirectCreateRequestClusterInfoItem.js | 50 + ...tDirectCreateRequestDeleteSkuModeEnum.d.ts | 29 + ...aftDirectCreateRequestDeleteSkuModeEnum.js | 52 + .../V1DraftGetWarehouseFboListRequest.d.ts | 41 + .../V1DraftGetWarehouseFboListRequest.js | 51 + .../V1DraftGetWarehouseFboListResponse.d.ts | 32 + .../V1DraftGetWarehouseFboListResponse.js | 45 + .../V1DraftMultiClusterCreateRequest.d.ts | 46 + .../V1DraftMultiClusterCreateRequest.js | 57 + ...tMultiClusterCreateRequestClusterInfo.d.ts | 38 + ...aftMultiClusterCreateRequestClusterInfo.js | 51 + ...tiClusterCreateRequestClusterInfoItem.d.ts | 37 + ...ultiClusterCreateRequestClusterInfoItem.js | 50 + ...ClusterCreateRequestDeleteSkuModeEnum.d.ts | 29 + ...tiClusterCreateRequestDeleteSkuModeEnum.js | 52 + ...MultiClusterCreateRequestDeliveryInfo.d.ts | 45 + ...ftMultiClusterCreateRequestDeliveryInfo.js | 52 + ...teRequestDeliveryInfoDropOffWarehouse.d.ts | 38 + ...eateRequestDeliveryInfoDropOffWarehouse.js | 51 + ...InfoDropOffWarehouseWarehouseTypeEnum.d.ts | 33 + ...ryInfoDropOffWarehouseWarehouseTypeEnum.js | 56 + ...sterCreateRequestDeliveryInfoTypeEnum.d.ts | 27 + ...lusterCreateRequestDeliveryInfoTypeEnum.js | 50 + dist/models/V1DraftStatusEnum.d.ts | 31 + dist/models/V1DraftStatusEnum.js | 54 + dist/models/V1FbpArchiveGetRequest.d.ts | 31 + dist/models/V1FbpArchiveGetRequest.js | 46 + dist/models/V1FbpArchiveGetResponse.d.ts | 139 ++ dist/models/V1FbpArchiveGetResponse.js | 82 + dist/models/V1FbpArchiveListRequest.d.ts | 40 + dist/models/V1FbpArchiveListRequest.js | 48 + dist/models/V1FbpArchiveListResponse.d.ts | 45 + dist/models/V1FbpArchiveListResponse.js | 49 + dist/models/V1FbpArchiveListResponseItem.d.ts | 133 + dist/models/V1FbpArchiveListResponseItem.js | 80 + .../V1FbpAvailableTimeslotListRequest.d.ts | 43 + .../V1FbpAvailableTimeslotListRequest.js | 54 + .../V1FbpAvailableTimeslotListResponse.d.ts | 57 + .../V1FbpAvailableTimeslotListResponse.js | 50 + ...eslotListResponseEmptyTimeslotsReason.d.ts | 33 + ...imeslotListResponseEmptyTimeslotsReason.js | 56 + dist/models/V1FbpCheckActStateRequest.d.ts | 31 + dist/models/V1FbpCheckActStateRequest.js | 46 + dist/models/V1FbpCheckActStateResponse.d.ts | 45 + dist/models/V1FbpCheckActStateResponse.js | 50 + .../V1FbpCheckActStateResponseStatus.d.ts | 33 + .../V1FbpCheckActStateResponseStatus.js | 56 + ...V1FbpCheckConsignmentNoteStateRequest.d.ts | 37 + .../V1FbpCheckConsignmentNoteStateRequest.js | 50 + ...1FbpCheckConsignmentNoteStateResponse.d.ts | 44 + .../V1FbpCheckConsignmentNoteStateResponse.js | 49 + dist/models/V1FbpCreateActRequest.d.ts | 31 + dist/models/V1FbpCreateActRequest.js | 46 + dist/models/V1FbpCreateActResponse.d.ts | 48 + dist/models/V1FbpCreateActResponse.js | 49 + .../V1FbpCreateConsignmentNoteRequest.d.ts | 31 + .../V1FbpCreateConsignmentNoteRequest.js | 46 + .../V1FbpCreateConsignmentNoteResponse.d.ts | 31 + .../V1FbpCreateConsignmentNoteResponse.js | 44 + dist/models/V1FbpCreateLabelRequest.d.ts | 31 + dist/models/V1FbpCreateLabelRequest.js | 46 + dist/models/V1FbpCreateLabelResponse.d.ts | 31 + dist/models/V1FbpCreateLabelResponse.js | 44 + .../models/V1FbpDraftDirectCreateRequest.d.ts | 50 + dist/models/V1FbpDraftDirectCreateRequest.js | 59 + ...DraftDirectCreateRequestDirectDetails.d.ts | 31 + ...bpDraftDirectCreateRequestDirectDetails.js | 46 + .../V1FbpDraftDirectCreateResponse.d.ts | 43 + dist/models/V1FbpDraftDirectCreateResponse.js | 48 + .../models/V1FbpDraftDirectDeleteRequest.d.ts | 31 + dist/models/V1FbpDraftDirectDeleteRequest.js | 46 + .../V1FbpDraftDirectDeleteResponse.d.ts | 38 + dist/models/V1FbpDraftDirectDeleteResponse.js | 47 + .../V1FbpDraftDirectGetTimeslotRequest.d.ts | 49 + .../V1FbpDraftDirectGetTimeslotRequest.js | 58 + .../V1FbpDraftDirectGetTimeslotResponse.d.ts | 57 + .../V1FbpDraftDirectGetTimeslotResponse.js | 50 + ...tTimeslotResponseEmptyTimeslotsReason.d.ts | 33 + ...GetTimeslotResponseEmptyTimeslotsReason.js | 56 + ...raftDirectGetTimeslotResponseTimeslot.d.ts | 37 + ...pDraftDirectGetTimeslotResponseTimeslot.js | 46 + ...1FbpDraftDirectProductValidateRequest.d.ts | 38 + .../V1FbpDraftDirectProductValidateRequest.js | 51 + ...ftDirectProductValidateRequestSkuItem.d.ts | 37 + ...raftDirectProductValidateRequestSkuItem.js | 50 + ...FbpDraftDirectProductValidateResponse.d.ts | 51 + ...V1FbpDraftDirectProductValidateResponse.js | 52 + ...ctProductValidateResponseApprovedItem.d.ts | 67 + ...rectProductValidateResponseApprovedItem.js | 56 + ...ctProductValidateResponseRejectedItem.d.ts | 88 + ...rectProductValidateResponseRejectedItem.js | 59 + .../V1FbpDraftDirectRegistrateRequest.d.ts | 37 + .../V1FbpDraftDirectRegistrateRequest.js | 50 + .../V1FbpDraftDirectRegistrateResponse.d.ts | 44 + .../V1FbpDraftDirectRegistrateResponse.js | 49 + ...ctRegistrateResponseRegistrationError.d.ts | 39 + ...rectRegistrateResponseRegistrationError.js | 48 + ...eResponseRegistrationErrorBundleError.d.ts | 52 + ...ateResponseRegistrationErrorBundleError.js | 47 + ...1FbpDraftDirectSellerDlvCreateRequest.d.ts | 50 + .../V1FbpDraftDirectSellerDlvCreateRequest.js | 59 + ...ctSellerDlvCreateRequestDirectDetails.d.ts | 49 + ...rectSellerDlvCreateRequestDirectDetails.js | 58 + ...FbpDraftDirectSellerDlvCreateResponse.d.ts | 43 + ...V1FbpDraftDirectSellerDlvCreateResponse.js | 48 + .../V1FbpDraftDirectSellerDlvEditRequest.d.ts | 55 + .../V1FbpDraftDirectSellerDlvEditRequest.js | 62 + ...V1FbpDraftDirectSellerDlvEditResponse.d.ts | 45 + .../V1FbpDraftDirectSellerDlvEditResponse.js | 49 + .../V1FbpDraftDirectTimeslotEditRequest.d.ts | 43 + .../V1FbpDraftDirectTimeslotEditRequest.js | 54 + .../V1FbpDraftDirectTimeslotEditResponse.d.ts | 45 + .../V1FbpDraftDirectTimeslotEditResponse.js | 47 + ...imeslotEditResponseReserveFailureType.d.ts | 28 + ...tTimeslotEditResponseReserveFailureType.js | 51 + .../V1FbpDraftDirectTplDlvCreateRequest.d.ts | 50 + .../V1FbpDraftDirectTplDlvCreateRequest.js | 59 + ...irectTplDlvCreateRequestDirectDetails.d.ts | 43 + ...tDirectTplDlvCreateRequestDirectDetails.js | 54 + .../V1FbpDraftDirectTplDlvCreateResponse.d.ts | 43 + .../V1FbpDraftDirectTplDlvCreateResponse.js | 48 + .../V1FbpDraftDirectTplDlvEditRequest.d.ts | 49 + .../V1FbpDraftDirectTplDlvEditRequest.js | 58 + .../V1FbpDraftDirectTplDlvEditResponse.d.ts | 45 + .../V1FbpDraftDirectTplDlvEditResponse.js | 49 + .../V1FbpDraftDropOffCreateRequest.d.ts | 50 + dist/models/V1FbpDraftDropOffCreateRequest.js | 59 + ...ftDropOffCreateRequestDeliveryDetails.d.ts | 43 + ...raftDropOffCreateRequestDeliveryDetails.js | 54 + .../V1FbpDraftDropOffCreateResponse.d.ts | 43 + .../models/V1FbpDraftDropOffCreateResponse.js | 48 + .../V1FbpDraftDropOffDeleteRequest.d.ts | 31 + dist/models/V1FbpDraftDropOffDeleteRequest.js | 46 + .../V1FbpDraftDropOffDeleteResponse.d.ts | 38 + .../models/V1FbpDraftDropOffDeleteResponse.js | 47 + .../V1FbpDraftDropOffDlvEditRequest.d.ts | 55 + .../models/V1FbpDraftDropOffDlvEditRequest.js | 62 + .../V1FbpDraftDropOffDlvEditResponse.d.ts | 31 + .../V1FbpDraftDropOffDlvEditResponse.js | 44 + .../V1FbpDraftDropOffPointListRequest.d.ts | 49 + .../V1FbpDraftDropOffPointListRequest.js | 56 + .../V1FbpDraftDropOffPointListResponse.d.ts | 32 + .../V1FbpDraftDropOffPointListResponse.js | 45 + ...1FbpDraftDropOffPointTimetableRequest.d.ts | 43 + .../V1FbpDraftDropOffPointTimetableRequest.js | 54 + ...FbpDraftDropOffPointTimetableResponse.d.ts | 32 + ...V1FbpDraftDropOffPointTimetableResponse.js | 45 + ...DropOffPointTimetableResponseCalendar.d.ts | 39 + ...ftDropOffPointTimetableResponseCalendar.js | 48 + ...TimetableResponseCalendarCalendarItem.d.ts | 46 + ...ntTimetableResponseCalendarCalendarItem.js | 50 + ...eCalendarCalendarItemTimeslotWithTime.d.ts | 37 + ...nseCalendarCalendarItemTimeslotWithTime.js | 46 + ...arCalendarItemTimeslotWithTimeOpening.d.ts | 37 + ...ndarCalendarItemTimeslotWithTimeOpening.js | 46 + ...FbpDraftDropOffProductValidateRequest.d.ts | 38 + ...V1FbpDraftDropOffProductValidateRequest.js | 51 + ...tDropOffProductValidateRequestSkuItem.d.ts | 37 + ...aftDropOffProductValidateRequestSkuItem.js | 50 + ...bpDraftDropOffProductValidateResponse.d.ts | 52 + ...1FbpDraftDropOffProductValidateResponse.js | 52 + ...ffProductValidateResponseApprovedItem.d.ts | 67 + ...pOffProductValidateResponseApprovedItem.js | 56 + ...ffProductValidateResponseRejectedItem.d.ts | 88 + ...pOffProductValidateResponseRejectedItem.js | 59 + .../V1FbpDraftDropOffProvinceListRequest.d.ts | 31 + .../V1FbpDraftDropOffProvinceListRequest.js | 46 + ...V1FbpDraftDropOffProvinceListResponse.d.ts | 32 + .../V1FbpDraftDropOffProvinceListResponse.js | 45 + .../V1FbpDraftDropOffRegistrateRequest.d.ts | 37 + .../V1FbpDraftDropOffRegistrateRequest.js | 50 + .../V1FbpDraftDropOffRegistrateResponse.d.ts | 45 + .../V1FbpDraftDropOffRegistrateResponse.js | 49 + ...ffRegistrateResponseRegistrationError.d.ts | 39 + ...pOffRegistrateResponseRegistrationError.js | 48 + ...eResponseRegistrationErrorBundleError.d.ts | 52 + ...ateResponseRegistrationErrorBundleError.js | 47 + dist/models/V1FbpDraftGetRequest.d.ts | 31 + dist/models/V1FbpDraftGetRequest.js | 46 + dist/models/V1FbpDraftGetResponse.d.ts | 136 ++ dist/models/V1FbpDraftGetResponse.js | 80 + dist/models/V1FbpDraftListRequest.d.ts | 40 + dist/models/V1FbpDraftListRequest.js | 48 + dist/models/V1FbpDraftListResponse.d.ts | 45 + dist/models/V1FbpDraftListResponse.js | 49 + dist/models/V1FbpDraftListResponseItem.d.ts | 116 + dist/models/V1FbpDraftListResponseItem.js | 73 + .../models/V1FbpDraftPickUpDeleteRequest.d.ts | 31 + dist/models/V1FbpDraftPickUpDeleteRequest.js | 46 + .../V1FbpDraftPickUpDeleteResponse.d.ts | 38 + dist/models/V1FbpDraftPickUpDeleteResponse.js | 47 + ...1FbpDraftPickUpProductValidateRequest.d.ts | 38 + .../V1FbpDraftPickUpProductValidateRequest.js | 51 + ...ftPickUpProductValidateRequestSkuItem.d.ts | 37 + ...raftPickUpProductValidateRequestSkuItem.js | 50 + ...FbpDraftPickUpProductValidateResponse.d.ts | 52 + ...V1FbpDraftPickUpProductValidateResponse.js | 52 + ...UpProductValidateResponseApprovedItem.d.ts | 67 + ...ckUpProductValidateResponseApprovedItem.js | 56 + ...UpProductValidateResponseRejectedItem.d.ts | 88 + ...ckUpProductValidateResponseRejectedItem.js | 59 + .../V1FbpDraftPickUpRegistrateRequest.d.ts | 37 + .../V1FbpDraftPickUpRegistrateRequest.js | 50 + .../V1FbpDraftPickUpRegistrateResponse.d.ts | 45 + .../V1FbpDraftPickUpRegistrateResponse.js | 49 + ...UpRegistrateResponseRegistrationError.d.ts | 39 + ...ckUpRegistrateResponseRegistrationError.js | 48 + ...eResponseRegistrationErrorBundleError.d.ts | 52 + ...ateResponseRegistrationErrorBundleError.js | 47 + .../models/V1FbpDraftPickupCreateRequest.d.ts | 50 + dist/models/V1FbpDraftPickupCreateRequest.js | 59 + ...aftPickupCreateRequestDeliveryDetails.d.ts | 55 + ...DraftPickupCreateRequestDeliveryDetails.js | 62 + .../V1FbpDraftPickupCreateResponse.d.ts | 43 + dist/models/V1FbpDraftPickupCreateResponse.js | 48 + .../V1FbpDraftPickupDlvEditRequest.d.ts | 44 + dist/models/V1FbpDraftPickupDlvEditRequest.js | 55 + ...ftPickupDlvEditRequestDeliveryDetails.d.ts | 55 + ...raftPickupDlvEditRequestDeliveryDetails.js | 62 + .../V1FbpDraftPickupDlvEditResponse.d.ts | 31 + .../models/V1FbpDraftPickupDlvEditResponse.js | 44 + dist/models/V1FbpEditTimeslotRequest.d.ts | 43 + dist/models/V1FbpEditTimeslotRequest.js | 54 + dist/models/V1FbpEditTimeslotResponse.d.ts | 44 + dist/models/V1FbpEditTimeslotResponse.js | 47 + ...ditTimeslotResponseReserveFailureType.d.ts | 27 + ...pEditTimeslotResponseReserveFailureType.js | 50 + dist/models/V1FbpGetLabelRequest.d.ts | 37 + dist/models/V1FbpGetLabelRequest.js | 50 + dist/models/V1FbpGetLabelResponse.d.ts | 38 + dist/models/V1FbpGetLabelResponse.js | 47 + .../models/V1FbpOrderDirectCancelRequest.d.ts | 31 + dist/models/V1FbpOrderDirectCancelRequest.js | 46 + .../V1FbpOrderDirectCancelResponse.d.ts | 45 + dist/models/V1FbpOrderDirectCancelResponse.js | 49 + .../V1FbpOrderDirectSellerDlvEditRequest.d.ts | 55 + .../V1FbpOrderDirectSellerDlvEditRequest.js | 62 + ...V1FbpOrderDirectSellerDlvEditResponse.d.ts | 45 + .../V1FbpOrderDirectSellerDlvEditResponse.js | 49 + .../V1FbpOrderDropOffCancelRequest.d.ts | 31 + dist/models/V1FbpOrderDropOffCancelRequest.js | 46 + .../V1FbpOrderDropOffCancelResponse.d.ts | 45 + .../models/V1FbpOrderDropOffCancelResponse.js | 49 + .../V1FbpOrderDropOffDlvEditRequest.d.ts | 43 + .../models/V1FbpOrderDropOffDlvEditRequest.js | 54 + .../V1FbpOrderDropOffDlvEditResponse.d.ts | 31 + .../V1FbpOrderDropOffDlvEditResponse.js | 44 + .../V1FbpOrderDropOffTimetableRequest.d.ts | 43 + .../V1FbpOrderDropOffTimetableRequest.js | 54 + .../V1FbpOrderDropOffTimetableResponse.d.ts | 32 + .../V1FbpOrderDropOffTimetableResponse.js | 45 + ...OrderDropOffTimetableResponseCalendar.d.ts | 39 + ...bpOrderDropOffTimetableResponseCalendar.js | 48 + ...TimetableResponseCalendarCalendarItem.d.ts | 46 + ...ffTimetableResponseCalendarCalendarItem.js | 50 + ...eCalendarCalendarItemTimeslotWithTime.d.ts | 37 + ...nseCalendarCalendarItemTimeslotWithTime.js | 46 + ...ndarCalendarItemTimeslotWithTimeBreak.d.ts | 37 + ...lendarCalendarItemTimeslotWithTimeBreak.js | 46 + dist/models/V1FbpOrderGetRequest.d.ts | 31 + dist/models/V1FbpOrderGetRequest.js | 46 + dist/models/V1FbpOrderGetResponse.d.ts | 145 ++ dist/models/V1FbpOrderGetResponse.js | 82 + dist/models/V1FbpOrderListRequest.d.ts | 40 + dist/models/V1FbpOrderListRequest.js | 48 + dist/models/V1FbpOrderListResponse.d.ts | 45 + dist/models/V1FbpOrderListResponse.js | 49 + dist/models/V1FbpOrderListResponseItem.d.ts | 134 ++ dist/models/V1FbpOrderListResponseItem.js | 79 + .../models/V1FbpOrderPickUpCancelRequest.d.ts | 31 + dist/models/V1FbpOrderPickUpCancelRequest.js | 46 + .../V1FbpOrderPickUpCancelResponse.d.ts | 45 + dist/models/V1FbpOrderPickUpCancelResponse.js | 49 + .../V1FbpOrderPickUpDlvEditRequest.d.ts | 44 + dist/models/V1FbpOrderPickUpDlvEditRequest.js | 55 + ...rderPickUpDlvEditRequestPickUpDetails.d.ts | 37 + ...pOrderPickUpDlvEditRequestPickUpDetails.js | 50 + .../V1FbpOrderPickUpDlvEditResponse.d.ts | 45 + .../models/V1FbpOrderPickUpDlvEditResponse.js | 49 + dist/models/V1FbpWarehouseListResponse.d.ts | 32 + dist/models/V1FbpWarehouseListResponse.js | 45 + ...bsPostingProductExemplarUpdateRequest.d.ts | 31 + ...1FbsPostingProductExemplarUpdateRequest.js | 46 + dist/models/V1GenerateBarcodeRequest.d.ts | 31 + dist/models/V1GenerateBarcodeRequest.js | 46 + dist/models/V1GenerateBarcodeResponse.d.ts | 32 + dist/models/V1GenerateBarcodeResponse.js | 45 + dist/models/V1GenerateBarcodeResult.d.ts | 49 + dist/models/V1GenerateBarcodeResult.js | 50 + dist/models/V1GetAttributeValuesRequest.d.ts | 65 + dist/models/V1GetAttributeValuesRequest.js | 63 + dist/models/V1GetAttributeValuesResponse.d.ts | 41 + dist/models/V1GetAttributeValuesResponse.js | 47 + ...ttributeValuesResponseDictionaryValue.d.ts | 49 + ...tAttributeValuesResponseDictionaryValue.js | 50 + dist/models/V1GetAttributesRequest.d.ts | 44 + dist/models/V1GetAttributesRequest.js | 53 + dist/models/V1GetAttributesResponse.d.ts | 32 + dist/models/V1GetAttributesResponse.js | 45 + .../V1GetAttributesResponseAttribute.d.ts | 127 + .../V1GetAttributesResponseAttribute.js | 70 + .../V1GetCompensationReportRequest.d.ts | 40 + dist/models/V1GetCompensationReportRequest.js | 48 + dist/models/V1GetCompetitorsRequest.d.ts | 37 + dist/models/V1GetCompetitorsRequest.js | 50 + dist/models/V1GetCompetitorsResponse.d.ts | 38 + dist/models/V1GetCompetitorsResponse.js | 47 + .../V1GetDecompensationReportRequest.d.ts | 40 + .../V1GetDecompensationReportRequest.js | 48 + ...DeliveryMethodReturnSettingsV1Request.d.ts | 31 + ...etDeliveryMethodReturnSettingsV1Request.js | 46 + ...eliveryMethodReturnSettingsV1Response.d.ts | 32 + ...tDeliveryMethodReturnSettingsV1Response.js | 45 + dist/models/V1GetDiscountTaskListRequest.d.ts | 44 + dist/models/V1GetDiscountTaskListRequest.js | 55 + .../models/V1GetDiscountTaskListResponse.d.ts | 32 + dist/models/V1GetDiscountTaskListResponse.js | 45 + .../V1GetDiscountTaskListResponseTask.d.ts | 236 ++ .../V1GetDiscountTaskListResponseTask.js | 112 + dist/models/V1GetEtgbRequest.d.ts | 32 + dist/models/V1GetEtgbRequest.js | 47 + dist/models/V1GetEtgbResponse.d.ts | 32 + dist/models/V1GetEtgbResponse.js | 45 + .../V1GetFBSRatingIndexInfoV1Response.d.ts | 62 + .../V1GetFBSRatingIndexInfoV1Response.js | 55 + dist/models/V1GetFinanceBalanceV1Request.d.ts | 37 + dist/models/V1GetFinanceBalanceV1Request.js | 50 + .../models/V1GetFinanceBalanceV1Response.d.ts | 39 + dist/models/V1GetFinanceBalanceV1Response.js | 48 + ...tFinanceBalanceV1ResponseAccruedMoney.d.ts | 37 + ...GetFinanceBalanceV1ResponseAccruedMoney.js | 46 + ...eBalanceV1ResponseClosingBalanceMoney.d.ts | 37 + ...nceBalanceV1ResponseClosingBalanceMoney.js | 46 + ...V1GetFinanceBalanceV1ResponseFeeMoney.d.ts | 37 + .../V1GetFinanceBalanceV1ResponseFeeMoney.js | 46 + ...eBalanceV1ResponseOpeningBalanceMoney.d.ts | 37 + ...nceBalanceV1ResponseOpeningBalanceMoney.js | 46 + ...tFinanceBalanceV1ResponsePartnerMoney.d.ts | 37 + ...GetFinanceBalanceV1ResponsePartnerMoney.js | 46 + ...FinanceBalanceV1ResponsePaymentsMoney.d.ts | 37 + ...etFinanceBalanceV1ResponsePaymentsMoney.js | 46 + ...tFinanceBalanceV1ResponseReturnsMoney.d.ts | 37 + ...GetFinanceBalanceV1ResponseReturnsMoney.js | 46 + ...tFinanceBalanceV1ResponseRevenueMoney.d.ts | 37 + ...GetFinanceBalanceV1ResponseRevenueMoney.js | 46 + ...GetFinanceBalanceV1ResponseSalesMoney.d.ts | 37 + ...V1GetFinanceBalanceV1ResponseSalesMoney.js | 46 + ...FinanceBalanceV1ResponseServicesMoney.d.ts | 37 + ...etFinanceBalanceV1ResponseServicesMoney.js | 46 + .../V1GetFinanceProductsBuyoutRequest.d.ts | 40 + .../V1GetFinanceProductsBuyoutRequest.js | 50 + .../V1GetFinanceProductsBuyoutResponse.d.ts | 32 + .../V1GetFinanceProductsBuyoutResponse.js | 45 + dist/models/V1GetLabelBatchRequest.d.ts | 31 + dist/models/V1GetLabelBatchRequest.js | 46 + dist/models/V1GetLabelBatchResponse.d.ts | 32 + dist/models/V1GetLabelBatchResponse.js | 45 + .../models/V1GetLabelBatchResponseResult.d.ts | 67 + dist/models/V1GetLabelBatchResponseResult.js | 55 + .../V1GetProductInfoDiscountedRequest.d.ts | 31 + .../V1GetProductInfoDiscountedRequest.js | 46 + .../V1GetProductInfoDiscountedResponse.d.ts | 32 + .../V1GetProductInfoDiscountedResponse.js | 45 + ...1GetProductInfoDiscountedResponseItem.d.ts | 109 + .../V1GetProductInfoDiscountedResponseItem.js | 68 + .../V1GetProductInfoSubscriptionRequest.d.ts | 31 + .../V1GetProductInfoSubscriptionRequest.js | 46 + .../V1GetProductInfoSubscriptionResponse.d.ts | 32 + .../V1GetProductInfoSubscriptionResponse.js | 45 + ...ProductInfoSubscriptionResponseResult.d.ts | 37 + ...etProductInfoSubscriptionResponseResult.js | 46 + .../V1GetProductPlacementZoneInfoRequest.d.ts | 31 + .../V1GetProductPlacementZoneInfoRequest.js | 46 + ...V1GetProductPlacementZoneInfoResponse.d.ts | 32 + .../V1GetProductPlacementZoneInfoResponse.js | 45 + .../V1GetProductRatingBySkuRequest.d.ts | 31 + dist/models/V1GetProductRatingBySkuRequest.js | 46 + .../V1GetProductRatingBySkuResponse.d.ts | 32 + .../models/V1GetProductRatingBySkuResponse.js | 45 + ...ductStairwayDiscountByQuantityRequest.d.ts | 31 + ...roductStairwayDiscountByQuantityRequest.js | 46 + ...uctStairwayDiscountByQuantityResponse.d.ts | 32 + ...oductStairwayDiscountByQuantityResponse.js | 45 + ...ayDiscountByQuantityResponseStairways.d.ts | 52 + ...rwayDiscountByQuantityResponseStairways.js | 52 + ...ntByQuantityResponseStairwaysStairway.d.ts | 32 + ...ountByQuantityResponseStairwaysStairway.js | 45 + ...QuantityResponseStairwaysStairwayStep.d.ts | 43 + ...ByQuantityResponseStairwaysStairwayStep.js | 48 + .../V1GetRealizationReportByDayRequest.d.ts | 43 + .../V1GetRealizationReportByDayRequest.js | 54 + .../V1GetRealizationReportPostingRequest.d.ts | 37 + .../V1GetRealizationReportPostingRequest.js | 50 + ...V1GetRealizationReportPostingResponse.d.ts | 39 + .../V1GetRealizationReportPostingResponse.js | 48 + ...etRealizationReportPostingResponseRow.d.ts | 78 + ...1GetRealizationReportPostingResponseRow.js | 63 + dist/models/V1GetReceiptRequest.d.ts | 31 + dist/models/V1GetReceiptRequest.js | 46 + dist/models/V1GetReceiptResponse.d.ts | 31 + dist/models/V1GetReceiptResponse.js | 44 + dist/models/V1GetRestrictionsRequest.d.ts | 31 + dist/models/V1GetRestrictionsRequest.js | 46 + dist/models/V1GetRestrictionsResponse.d.ts | 32 + dist/models/V1GetRestrictionsResponse.js | 45 + dist/models/V1GetReturnsListRequest.d.ts | 44 + dist/models/V1GetReturnsListRequest.js | 51 + dist/models/V1GetReturnsListResponse.d.ts | 39 + dist/models/V1GetReturnsListResponse.js | 47 + .../V1GetStrategyIDsByItemIDsResponse.d.ts | 32 + .../V1GetStrategyIDsByItemIDsResponse.js | 45 + ...GetStrategyIDsByItemIDsResponseResult.d.ts | 32 + ...V1GetStrategyIDsByItemIDsResponseResult.js | 45 + dist/models/V1GetStrategyItemInfoRequest.d.ts | 31 + dist/models/V1GetStrategyItemInfoRequest.js | 46 + .../models/V1GetStrategyItemInfoResponse.d.ts | 32 + dist/models/V1GetStrategyItemInfoResponse.js | 45 + .../V1GetStrategyItemInfoResponseResult.d.ts | 63 + .../V1GetStrategyItemInfoResponseResult.js | 54 + dist/models/V1GetStrategyItemsResponse.d.ts | 32 + dist/models/V1GetStrategyItemsResponse.js | 45 + .../V1GetStrategyItemsResponseResult.d.ts | 31 + .../V1GetStrategyItemsResponseResult.js | 44 + dist/models/V1GetStrategyListRequest.d.ts | 37 + dist/models/V1GetStrategyListRequest.js | 50 + dist/models/V1GetStrategyListResponse.d.ts | 38 + dist/models/V1GetStrategyListResponse.js | 47 + dist/models/V1GetStrategyResponse.d.ts | 32 + dist/models/V1GetStrategyResponse.js | 45 + dist/models/V1GetStrategyResponseResult.d.ts | 68 + dist/models/V1GetStrategyResponseResult.js | 53 + ...etSupplierReturnsSummaryReportRequest.d.ts | 49 + ...1GetSupplierReturnsSummaryReportRequest.js | 56 + ...tSupplierReturnsSummaryReportResponse.d.ts | 38 + ...GetSupplierReturnsSummaryReportResponse.js | 47 + ...pplierReturnsSummaryReportResponseRow.d.ts | 257 ++ ...SupplierReturnsSummaryReportResponseRow.js | 96 + .../models/V1GetSupplyOrderBundleRequest.d.ts | 71 + dist/models/V1GetSupplyOrderBundleRequest.js | 62 + .../V1GetSupplyOrderBundleResponse.d.ts | 53 + dist/models/V1GetSupplyOrderBundleResponse.js | 51 + ...V1GetSupplyOrderTimeslotStatusRequest.d.ts | 31 + .../V1GetSupplyOrderTimeslotStatusRequest.js | 46 + ...1GetSupplyOrderTimeslotStatusResponse.d.ts | 49 + .../V1GetSupplyOrderTimeslotStatusResponse.js | 48 + ...pplyOrderTimeslotStatusResponseStatus.d.ts | 31 + ...SupplyOrderTimeslotStatusResponseStatus.js | 54 + .../V1GetSupplyOrderTimeslotsRequest.d.ts | 31 + .../V1GetSupplyOrderTimeslotsRequest.js | 46 + .../V1GetSupplyOrderTimeslotsResponse.d.ts | 39 + .../V1GetSupplyOrderTimeslotsResponse.js | 48 + ...1GetSupplyReturnsSummaryReportRequest.d.ts | 49 + .../V1GetSupplyReturnsSummaryReportRequest.js | 56 + ...GetSupplyReturnsSummaryReportResponse.d.ts | 38 + ...V1GetSupplyReturnsSummaryReportResponse.js | 47 + ...SupplyReturnsSummaryReportResponseRow.d.ts | 257 ++ ...etSupplyReturnsSummaryReportResponseRow.js | 96 + dist/models/V1GetTreeRequest.d.ts | 32 + dist/models/V1GetTreeRequest.js | 45 + dist/models/V1GetTreeResponse.d.ts | 32 + dist/models/V1GetTreeResponse.js | 45 + dist/models/V1GetTreeResponseItem.d.ts | 62 + dist/models/V1GetTreeResponseItem.js | 54 + ...GetWarehouseFBSOperationStatusRequest.d.ts | 31 + ...V1GetWarehouseFBSOperationStatusRequest.js | 46 + ...etWarehouseFBSOperationStatusResponse.d.ts | 53 + ...1GetWarehouseFBSOperationStatusResponse.js | 54 + .../models/V1GiveoutBarcodeResetResponse.d.ts | 43 + dist/models/V1GiveoutBarcodeResetResponse.js | 48 + dist/models/V1GiveoutGetBarcodeResponse.d.ts | 31 + dist/models/V1GiveoutGetBarcodeResponse.js | 44 + dist/models/V1GiveoutGetPDFResponse.d.ts | 43 + dist/models/V1GiveoutGetPDFResponse.js | 48 + dist/models/V1GiveoutGetPNGResponse.d.ts | 43 + dist/models/V1GiveoutGetPNGResponse.js | 48 + dist/models/V1GiveoutInfoRequest.d.ts | 31 + dist/models/V1GiveoutInfoRequest.js | 46 + dist/models/V1GiveoutInfoResponse.d.ts | 62 + dist/models/V1GiveoutInfoResponse.js | 53 + dist/models/V1GiveoutIsEnabledResponse.d.ts | 32 + dist/models/V1GiveoutIsEnabledResponse.js | 44 + dist/models/V1GiveoutListRequest.d.ts | 37 + dist/models/V1GiveoutListRequest.js | 48 + dist/models/V1GiveoutListResponse.d.ts | 32 + dist/models/V1GiveoutListResponse.js | 45 + dist/models/V1InvoiceDeleteRequest.d.ts | 31 + dist/models/V1InvoiceDeleteRequest.js | 46 + dist/models/V1InvoiceDeleteResponse.d.ts | 31 + dist/models/V1InvoiceDeleteResponse.js | 44 + dist/models/V1InvoiceFileUploadRequest.d.ts | 37 + dist/models/V1InvoiceFileUploadRequest.js | 50 + dist/models/V1InvoiceFileUploadResponse.d.ts | 31 + dist/models/V1InvoiceFileUploadResponse.js | 44 + dist/models/V1InvoiceGetRequest.d.ts | 31 + dist/models/V1InvoiceGetRequest.js | 46 + dist/models/V1ItemError.d.ts | 73 + dist/models/V1ItemError.js | 58 + dist/models/V1ItemIDsRequest.d.ts | 31 + dist/models/V1ItemIDsRequest.js | 46 + dist/models/V1ItemResponse.d.ts | 172 ++ dist/models/V1ItemResponse.js | 103 + dist/models/V1ItemSfboAttribute.d.ts | 29 + dist/models/V1ItemSfboAttribute.js | 52 + dist/models/V1ItemSortField.d.ts | 31 + dist/models/V1ItemSortField.js | 54 + ...OffPointsForCreateFBSWarehouseRequest.d.ts | 53 + ...opOffPointsForCreateFBSWarehouseRequest.js | 56 + ...rCreateFBSWarehouseRequestCoordinates.d.ts | 37 + ...ForCreateFBSWarehouseRequestCoordinates.js | 50 + ...ffPointsForCreateFBSWarehouseResponse.d.ts | 32 + ...pOffPointsForCreateFBSWarehouseResponse.js | 45 + ...CreateFBSWarehouseResponseCoordinates.d.ts | 37 + ...orCreateFBSWarehouseResponseCoordinates.js | 46 + ...WarehouseResponseDropOffPointTypeEnum.d.ts | 29 + ...BSWarehouseResponseDropOffPointTypeEnum.js | 52 + ...OffPointsForUpdateFBSWarehouseRequest.d.ts | 38 + ...opOffPointsForUpdateFBSWarehouseRequest.js | 49 + ...ffPointsForUpdateFBSWarehouseResponse.d.ts | 32 + ...pOffPointsForUpdateFBSWarehouseResponse.js | 45 + ...V1ListFBSRatingIndexPostingsV1Request.d.ts | 44 + .../V1ListFBSRatingIndexPostingsV1Request.js | 53 + ...1ListFBSRatingIndexPostingsV1Response.d.ts | 45 + .../V1ListFBSRatingIndexPostingsV1Response.js | 49 + dist/models/V1ListPostingCodesRequest.d.ts | 61 + dist/models/V1ListPostingCodesRequest.js | 55 + dist/models/V1ListPostingCodesResponse.d.ts | 32 + dist/models/V1ListPostingCodesResponse.js | 45 + dist/models/V1Money.d.ts | 37 + dist/models/V1Money.js | 46 + dist/models/V1OrderAttentionTypeEnum.d.ts | 25 + dist/models/V1OrderAttentionTypeEnum.js | 48 + dist/models/V1OrderCancelCheckRequest.d.ts | 31 + dist/models/V1OrderCancelCheckRequest.js | 46 + dist/models/V1OrderCancelCheckResponse.d.ts | 52 + dist/models/V1OrderCancelCheckResponse.js | 52 + dist/models/V1OrderCancelRequest.d.ts | 43 + dist/models/V1OrderCancelRequest.js | 52 + dist/models/V1OrderCancelResponse.d.ts | 31 + dist/models/V1OrderCancelResponse.js | 44 + dist/models/V1OrderCancelStatusRequest.d.ts | 31 + dist/models/V1OrderCancelStatusRequest.js | 46 + dist/models/V1OrderCancelStatusResponse.d.ts | 48 + dist/models/V1OrderCancelStatusResponse.js | 48 + dist/models/V1OrderCreateRequest.d.ts | 60 + dist/models/V1OrderCreateRequest.js | 67 + dist/models/V1OrderCreateResponse.d.ts | 37 + dist/models/V1OrderCreateResponse.js | 46 + dist/models/V1OrderDraftValidationError.d.ts | 48 + dist/models/V1OrderDraftValidationError.js | 45 + .../V1OrderDraftValidationErrorErrorType.d.ts | 37 + .../V1OrderDraftValidationErrorErrorType.js | 60 + dist/models/V1OrderErrorTypeEnum.d.ts | 57 + dist/models/V1OrderErrorTypeEnum.js | 80 + dist/models/V1OrderState.d.ts | 45 + dist/models/V1OrderState.js | 68 + dist/models/V1OrderStatusEnum.d.ts | 41 + dist/models/V1OrderStatusEnum.js | 64 + dist/models/V1OrderValidationError.d.ts | 59 + dist/models/V1OrderValidationError.js | 45 + .../V1OrderValidationErrorErrorType.d.ts | 51 + .../models/V1OrderValidationErrorErrorType.js | 74 + dist/models/V1PolygonDeleteRequest.d.ts | 43 + dist/models/V1PolygonDeleteRequest.js | 54 + dist/models/V1PolygonListRequest.d.ts | 37 + dist/models/V1PolygonListRequest.js | 50 + dist/models/V1PolygonListResponse.d.ts | 32 + dist/models/V1PolygonListResponse.js | 45 + ...V1PolygonTimeCoordinatesUpdateRequest.d.ts | 49 + .../V1PolygonTimeCoordinatesUpdateRequest.js | 58 + dist/models/V1PolygonTimeSetRequest.d.ts | 81 + dist/models/V1PolygonTimeSetRequest.js | 87 + dist/models/V1PostingCancelRequest.d.ts | 43 + dist/models/V1PostingCancelRequest.js | 52 + dist/models/V1PostingCancelResponse.d.ts | 31 + dist/models/V1PostingCancelResponse.js | 44 + dist/models/V1PostingCancelStatusRequest.d.ts | 31 + dist/models/V1PostingCancelStatusRequest.js | 44 + .../models/V1PostingCancelStatusResponse.d.ts | 48 + dist/models/V1PostingCancelStatusResponse.js | 48 + .../V1PostingFBSPickupCodeVerifyRequest.d.ts | 37 + .../V1PostingFBSPickupCodeVerifyRequest.js | 50 + .../V1PostingFBSPickupCodeVerifyResponse.d.ts | 32 + .../V1PostingFBSPickupCodeVerifyResponse.js | 44 + ...ngFbsProductTraceableAttributeRequest.d.ts | 31 + ...tingFbsProductTraceableAttributeRequest.js | 46 + ...gFbsProductTraceableAttributeResponse.d.ts | 32 + ...ingFbsProductTraceableAttributeResponse.js | 45 + ...ductTraceableAttributeResponseProduct.d.ts | 37 + ...roductTraceableAttributeResponseProduct.js | 46 + dist/models/V1PostingFbsSplitRequest.d.ts | 38 + dist/models/V1PostingFbsSplitRequest.js | 51 + .../V1PostingFbsSplitRequestPosting.d.ts | 32 + .../models/V1PostingFbsSplitRequestPosting.js | 47 + dist/models/V1PostingFbsSplitResponse.d.ts | 39 + dist/models/V1PostingFbsSplitResponse.js | 48 + .../V1PostingFbsSplitResponsePosting.d.ts | 38 + .../V1PostingFbsSplitResponsePosting.js | 47 + ...1PostingFbsSplitResponsePostingParent.d.ts | 38 + .../V1PostingFbsSplitResponsePostingParent.js | 47 + ...lotChangeRestrictionsDeliveryInterval.d.ts | 43 + ...eslotChangeRestrictionsDeliveryInterval.js | 46 + ...gFbsTimeslotChangeRestrictionsRequest.d.ts | 31 + ...ingFbsTimeslotChangeRestrictionsRequest.js | 46 + ...FbsTimeslotChangeRestrictionsResponse.d.ts | 38 + ...ngFbsTimeslotChangeRestrictionsResponse.js | 47 + .../V1PostingFbsTimeslotSetNewTimeslot.d.ts | 43 + .../V1PostingFbsTimeslotSetNewTimeslot.js | 50 + .../V1PostingFbsTimeslotSetRequest.d.ts | 38 + dist/models/V1PostingFbsTimeslotSetRequest.js | 51 + .../V1PostingFbsTimeslotSetResponse.d.ts | 32 + .../models/V1PostingFbsTimeslotSetResponse.js | 44 + .../V1PostingFbsTraceableSplitRequest.d.ts | 31 + .../V1PostingFbsTraceableSplitRequest.js | 46 + .../V1PostingFbsTraceableSplitResponse.d.ts | 32 + .../V1PostingFbsTraceableSplitResponse.js | 45 + ...stingFbsTraceableSplitResponsePosting.d.ts | 47 + ...PostingFbsTraceableSplitResponsePosting.js | 49 + dist/models/V1PostingMarksRequest.d.ts | 31 + dist/models/V1PostingMarksRequest.js | 44 + dist/models/V1PostingMarksResponse.d.ts | 45 + dist/models/V1PostingMarksResponse.js | 50 + ...1PostingUnpaidLegalProductListRequest.d.ts | 38 + .../V1PostingUnpaidLegalProductListRequest.js | 48 + ...PostingUnpaidLegalProductListResponse.d.ts | 38 + ...V1PostingUnpaidLegalProductListResponse.js | 47 + ...npaidLegalProductListResponseProducts.d.ts | 55 + ...gUnpaidLegalProductListResponseProducts.js | 52 + dist/models/V1PremiumScores.d.ts | 38 + dist/models/V1PremiumScores.js | 47 + .../V1ProductActionTimerStatusRequest.d.ts | 31 + .../V1ProductActionTimerStatusRequest.js | 44 + .../V1ProductActionTimerStatusResponse.d.ts | 32 + .../V1ProductActionTimerStatusResponse.js | 45 + ...ductActionTimerStatusResponseStatuses.d.ts | 44 + ...roductActionTimerStatusResponseStatuses.js | 48 + .../V1ProductActionTimerUpdateRequest.d.ts | 31 + .../V1ProductActionTimerUpdateRequest.js | 44 + .../V1ProductCertificateDeleteRequest.d.ts | 31 + .../V1ProductCertificateDeleteRequest.js | 46 + .../V1ProductCertificateDeleteResponse.d.ts | 32 + .../V1ProductCertificateDeleteResponse.js | 45 + ...roductCertificateDeleteResponseResult.d.ts | 40 + ...1ProductCertificateDeleteResponseResult.js | 46 + .../V1ProductCertificateInfoRequest.d.ts | 31 + .../models/V1ProductCertificateInfoRequest.js | 46 + .../V1ProductCertificateInfoResponse.d.ts | 32 + .../V1ProductCertificateInfoResponse.js | 45 + .../V1ProductCertificateListRequest.d.ts | 55 + .../models/V1ProductCertificateListRequest.js | 56 + .../V1ProductCertificateListResponse.d.ts | 32 + .../V1ProductCertificateListResponse.js | 45 + ...1ProductCertificateListResponseResult.d.ts | 38 + .../V1ProductCertificateListResponseResult.js | 47 + ...tCertificateProductStatusListResponse.d.ts | 32 + ...uctCertificateProductStatusListResponse.js | 45 + ...ProductCertificateProductsListRequest.d.ts | 66 + ...V1ProductCertificateProductsListRequest.js | 56 + ...roductCertificateProductsListResponse.d.ts | 32 + ...1ProductCertificateProductsListResponse.js | 45 + ...CertificateProductsListResponseResult.d.ts | 38 + ...ctCertificateProductsListResponseResult.js | 47 + ...rtificateRejectionReasonsListResponse.d.ts | 32 + ...CertificateRejectionReasonsListResponse.js | 45 + ...1ProductCertificateStatusListResponse.d.ts | 32 + .../V1ProductCertificateStatusListResponse.js | 45 + .../V1ProductCertificateUnbindRequest.d.ts | 44 + .../V1ProductCertificateUnbindRequest.js | 50 + .../V1ProductCertificateUnbindResponse.d.ts | 32 + .../V1ProductCertificateUnbindResponse.js | 45 + dist/models/V1ProductFbsSplit.d.ts | 37 + dist/models/V1ProductFbsSplit.js | 50 + .../models/V1ProductGetRelatedSKURequest.d.ts | 31 + dist/models/V1ProductGetRelatedSKURequest.js | 46 + .../V1ProductGetRelatedSKUResponse.d.ts | 39 + dist/models/V1ProductGetRelatedSKUResponse.js | 48 + .../V1ProductGetRelatedSKUResponseError.d.ts | 43 + .../V1ProductGetRelatedSKUResponseError.js | 48 + .../V1ProductGetRelatedSKUResponseItem.d.ts | 64 + .../V1ProductGetRelatedSKUResponseItem.js | 52 + .../V1ProductInfoWarehouseStocksRequest.d.ts | 43 + .../V1ProductInfoWarehouseStocksRequest.js | 52 + .../V1ProductInfoWarehouseStocksResponse.d.ts | 47 + .../V1ProductInfoWarehouseStocksResponse.js | 49 + .../V1ProductInfoWrongVolumeRequest.d.ts | 37 + .../models/V1ProductInfoWrongVolumeRequest.js | 48 + .../V1ProductInfoWrongVolumeResponse.d.ts | 38 + .../V1ProductInfoWrongVolumeResponse.js | 47 + .../models/V1ProductPricesDetailsRequest.d.ts | 31 + dist/models/V1ProductPricesDetailsRequest.js | 46 + .../V1ProductPricesDetailsResponse.d.ts | 32 + dist/models/V1ProductPricesDetailsResponse.js | 45 + .../V1ProductPricesDetailsResponsePrice.d.ts | 65 + .../V1ProductPricesDetailsResponsePrice.js | 57 + .../V1ProductUpdateAttributesRequest.d.ts | 32 + .../V1ProductUpdateAttributesRequest.js | 45 + ...oductUpdateAttributesRequestAttribute.d.ts | 44 + ...ProductUpdateAttributesRequestAttribute.js | 49 + .../V1ProductUpdateAttributesRequestItem.d.ts | 38 + .../V1ProductUpdateAttributesRequestItem.js | 49 + ...V1ProductUpdateAttributesRequestValue.d.ts | 37 + .../V1ProductUpdateAttributesRequestValue.js | 46 + .../V1ProductUpdateAttributesResponse.d.ts | 34 + .../V1ProductUpdateAttributesResponse.js | 44 + .../V1ProductUpdateDiscountRequest.d.ts | 38 + dist/models/V1ProductUpdateDiscountRequest.js | 50 + .../V1ProductUpdateDiscountResponse.d.ts | 31 + .../models/V1ProductUpdateDiscountResponse.js | 44 + .../models/V1ProductUpdateOfferIdRequest.d.ts | 32 + dist/models/V1ProductUpdateOfferIdRequest.js | 47 + .../V1ProductUpdateOfferIdResponse.d.ts | 32 + dist/models/V1ProductUpdateOfferIdResponse.js | 45 + .../V1ProductUpdateOfferIdResponseError.d.ts | 37 + .../V1ProductUpdateOfferIdResponseError.js | 46 + .../models/V1QuestionAnswerCreateDefault.d.ts | 43 + dist/models/V1QuestionAnswerCreateDefault.js | 48 + .../models/V1QuestionAnswerCreateRequest.d.ts | 43 + dist/models/V1QuestionAnswerCreateRequest.js | 54 + .../V1QuestionAnswerCreateResponse.d.ts | 31 + dist/models/V1QuestionAnswerCreateResponse.js | 44 + .../models/V1QuestionAnswerDeleteRequest.d.ts | 37 + dist/models/V1QuestionAnswerDeleteRequest.js | 50 + dist/models/V1QuestionAnswerListRequest.d.ts | 46 + dist/models/V1QuestionAnswerListRequest.js | 52 + dist/models/V1QuestionAnswerListResponse.d.ts | 41 + dist/models/V1QuestionAnswerListResponse.js | 47 + .../V1QuestionAnswerListResponseAnswers.d.ts | 68 + .../V1QuestionAnswerListResponseAnswers.js | 57 + .../models/V1QuestionChangeStatusRequest.d.ts | 41 + dist/models/V1QuestionChangeStatusRequest.js | 50 + dist/models/V1QuestionCountResponse.d.ts | 55 + dist/models/V1QuestionCountResponse.js | 52 + dist/models/V1QuestionInfoRequest.d.ts | 31 + dist/models/V1QuestionInfoRequest.js | 46 + dist/models/V1QuestionInfoResponse.d.ts | 85 + dist/models/V1QuestionInfoResponse.js | 60 + dist/models/V1QuestionListRequest.d.ts | 54 + dist/models/V1QuestionListRequest.js | 52 + dist/models/V1QuestionListRequestFilter.d.ts | 49 + dist/models/V1QuestionListRequestFilter.js | 48 + dist/models/V1QuestionListResponse.d.ts | 48 + dist/models/V1QuestionListResponse.js | 49 + .../V1QuestionListResponseQuestions.d.ts | 85 + .../models/V1QuestionListResponseQuestions.js | 60 + dist/models/V1QuestionTopSkuRequest.d.ts | 32 + dist/models/V1QuestionTopSkuRequest.js | 46 + dist/models/V1QuestionTopSkuResponse.d.ts | 31 + dist/models/V1QuestionTopSkuResponse.js | 44 + dist/models/V1Rating.d.ts | 56 + dist/models/V1Rating.js | 53 + dist/models/V1RatingHistoryV1Request.d.ts | 70 + dist/models/V1RatingHistoryV1Request.js | 56 + dist/models/V1RatingHistoryV1Response.d.ts | 39 + dist/models/V1RatingHistoryV1Response.js | 48 + dist/models/V1RatingItem.d.ts | 92 + dist/models/V1RatingItem.js | 59 + dist/models/V1RatingStatus.d.ts | 43 + dist/models/V1RatingStatus.js | 48 + dist/models/V1RatingSummaryV1Response.d.ts | 57 + dist/models/V1RatingSummaryV1Response.js | 54 + dist/models/V1ReceiptsSellerListRequest.d.ts | 43 + dist/models/V1ReceiptsSellerListRequest.js | 48 + dist/models/V1ReceiptsSellerListResponse.d.ts | 41 + dist/models/V1ReceiptsSellerListResponse.js | 47 + ...eportMarkedProductsSalesCreateRequest.d.ts | 32 + ...1ReportMarkedProductsSalesCreateRequest.js | 45 + dist/models/V1Restriction.d.ts | 73 + dist/models/V1Restriction.js | 58 + .../V1ReturnsCompanyFbsInfoRequest.d.ts | 39 + dist/models/V1ReturnsCompanyFbsInfoRequest.js | 50 + .../V1ReturnsCompanyFbsInfoRequestFilter.d.ts | 31 + .../V1ReturnsCompanyFbsInfoRequestFilter.js | 44 + .../V1ReturnsCompanyFbsInfoResponse.d.ts | 38 + .../models/V1ReturnsCompanyFbsInfoResponse.js | 47 + .../models/V1ReturnsRfbsActionSetRequest.d.ts | 78 + dist/models/V1ReturnsRfbsActionSetRequest.js | 56 + ...rnsSettingsUtilizationHistoryResponse.d.ts | 32 + ...turnsSettingsUtilizationHistoryResponse.js | 45 + ...eturnsSettingsUtilizationInfoResponse.d.ts | 39 + ...1ReturnsSettingsUtilizationInfoResponse.js | 48 + ...turnsSettingsUtilizationUpdateRequest.d.ts | 39 + ...ReturnsSettingsUtilizationUpdateRequest.js | 52 + dist/models/V1ReviewChangeStatusRequest.d.ts | 40 + dist/models/V1ReviewChangeStatusRequest.js | 50 + dist/models/V1ReviewCountResponse.d.ts | 43 + dist/models/V1ReviewCountResponse.js | 48 + dist/models/V1ReviewInfoRequest.d.ts | 31 + dist/models/V1ReviewInfoRequest.js | 46 + dist/models/V1ReviewInfoResponse.d.ts | 124 + dist/models/V1ReviewInfoResponse.js | 74 + dist/models/V1ReviewListRequest.d.ts | 56 + dist/models/V1ReviewListRequest.js | 52 + dist/models/V1ReviewListResponse.d.ts | 45 + dist/models/V1ReviewListResponse.js | 49 + dist/models/V1RolesByTokenResponse.d.ts | 38 + dist/models/V1RolesByTokenResponse.js | 47 + .../V1SearchAttributeValuesRequest.d.ts | 58 + dist/models/V1SearchAttributeValuesRequest.js | 62 + .../V1SearchAttributeValuesResponse.d.ts | 32 + .../models/V1SearchAttributeValuesResponse.js | 45 + dist/models/V1SearchQueriesTextRequest.d.ts | 57 + dist/models/V1SearchQueriesTextRequest.js | 60 + dist/models/V1SearchQueriesTextResponse.d.ts | 44 + dist/models/V1SearchQueriesTextResponse.js | 49 + ...1SearchQueriesTextResponseSearchQuery.d.ts | 67 + .../V1SearchQueriesTextResponseSearchQuery.js | 56 + dist/models/V1SearchQueriesTopRequest.d.ts | 37 + dist/models/V1SearchQueriesTopRequest.js | 50 + dist/models/V1SearchQueriesTopResponse.d.ts | 44 + dist/models/V1SearchQueriesTopResponse.js | 49 + ...V1SearchQueriesTopResponseSearchQuery.d.ts | 67 + .../V1SearchQueriesTopResponseSearchQuery.js | 56 + .../models/V1SellerActionsArchiveRequest.d.ts | 31 + dist/models/V1SellerActionsArchiveRequest.js | 46 + .../V1SellerActionsChangeActivityRequest.d.ts | 38 + .../V1SellerActionsChangeActivityRequest.js | 50 + .../V1SellerActionsCreateDiscountRequest.d.ts | 49 + .../V1SellerActionsCreateDiscountRequest.js | 56 + ...V1SellerActionsCreateDiscountResponse.d.ts | 31 + .../V1SellerActionsCreateDiscountResponse.js | 44 + ...onsCreateDiscountWithConditionRequest.d.ts | 62 + ...tionsCreateDiscountWithConditionRequest.js | 65 + ...tWithConditionRequestDiscountTypeEnum.d.ts | 27 + ...untWithConditionRequestDiscountTypeEnum.js | 50 + ...nsCreateDiscountWithConditionResponse.d.ts | 31 + ...ionsCreateDiscountWithConditionResponse.js | 44 + ...SellerActionsCreateInstallmentRequest.d.ts | 37 + ...V1SellerActionsCreateInstallmentRequest.js | 50 + ...ellerActionsCreateInstallmentResponse.d.ts | 31 + ...1SellerActionsCreateInstallmentResponse.js | 44 + ...ctionsCreateMultiLevelDiscountRequest.d.ts | 64 + ...rActionsCreateMultiLevelDiscountRequest.js | 64 + ...ultiLevelDiscountRequestDiscountLevel.d.ts | 37 + ...eMultiLevelDiscountRequestDiscountLevel.js | 50 + ...iLevelDiscountRequestDiscountTypeEnum.d.ts | 27 + ...ltiLevelDiscountRequestDiscountTypeEnum.js | 50 + ...tionsCreateMultiLevelDiscountResponse.d.ts | 31 + ...ActionsCreateMultiLevelDiscountResponse.js | 44 + .../V1SellerActionsCreateVoucherRequest.d.ts | 75 + .../V1SellerActionsCreateVoucherRequest.js | 74 + ...sCreateVoucherRequestDiscountTypeEnum.d.ts | 27 + ...onsCreateVoucherRequestDiscountTypeEnum.js | 50 + ...sCreateVoucherRequestVoucherParameter.d.ts | 45 + ...onsCreateVoucherRequestVoucherParameter.js | 55 + ...oucherRequestVoucherParameterTypeEnum.d.ts | 29 + ...eVoucherRequestVoucherParameterTypeEnum.js | 52 + .../V1SellerActionsCreateVoucherResponse.d.ts | 31 + .../V1SellerActionsCreateVoucherResponse.js | 44 + dist/models/V1SellerActionsListRequest.d.ts | 76 + dist/models/V1SellerActionsListRequest.js | 58 + dist/models/V1SellerActionsListResponse.d.ts | 38 + dist/models/V1SellerActionsListResponse.js | 47 + .../V1SellerActionsProductsAddRequest.d.ts | 38 + .../V1SellerActionsProductsAddRequest.js | 51 + ...ellerActionsProductsAddRequestProduct.d.ts | 44 + ...1SellerActionsProductsAddRequestProduct.js | 51 + ...ellerActionsProductsCandidatesRequest.d.ts | 43 + ...1SellerActionsProductsCandidatesRequest.js | 52 + ...llerActionsProductsCandidatesResponse.d.ts | 47 + ...SellerActionsProductsCandidatesResponse.js | 49 + ...ionsProductsCandidatesResponseProduct.d.ts | 105 + ...ctionsProductsCandidatesResponseProduct.js | 69 + ...andidatesResponseProductQuantTypeEnum.d.ts | 31 + ...sCandidatesResponseProductQuantTypeEnum.js | 54 + .../V1SellerActionsProductsDeleteRequest.d.ts | 37 + .../V1SellerActionsProductsDeleteRequest.js | 50 + .../V1SellerActionsProductsListRequest.d.ts | 43 + .../V1SellerActionsProductsListRequest.js | 52 + .../V1SellerActionsProductsListResponse.d.ts | 47 + .../V1SellerActionsProductsListResponse.js | 49 + ...lerActionsProductsListResponseProduct.d.ts | 105 + ...ellerActionsProductsListResponseProduct.js | 69 + .../V1SellerActionsUpdateDiscountRequest.d.ts | 38 + .../V1SellerActionsUpdateDiscountRequest.js | 47 + ...UpdateDiscountRequestActionParameters.d.ts | 43 + ...nsUpdateDiscountRequestActionParameters.js | 54 + ...onsUpdateDiscountWithConditionRequest.d.ts | 38 + ...tionsUpdateDiscountWithConditionRequest.js | 47 + ...tWithConditionRequestActionParameters.d.ts | 55 + ...untWithConditionRequestActionParameters.js | 62 + ...SellerActionsUpdateInstallmentRequest.d.ts | 38 + ...V1SellerActionsUpdateInstallmentRequest.js | 47 + ...ateInstallmentRequestActionParameters.d.ts | 37 + ...pdateInstallmentRequestActionParameters.js | 50 + ...ctionsUpdateMultiLevelDiscountRequest.d.ts | 38 + ...rActionsUpdateMultiLevelDiscountRequest.js | 47 + ...iLevelDiscountRequestActionParameters.d.ts | 57 + ...ltiLevelDiscountRequestActionParameters.js | 61 + .../V1SellerActionsUpdateVoucherRequest.d.ts | 38 + .../V1SellerActionsUpdateVoucherRequest.js | 47 + ...sUpdateVoucherRequestActionParameters.d.ts | 61 + ...onsUpdateVoucherRequestActionParameters.js | 64 + .../V1SellerActionsVoucherGetRequest.d.ts | 31 + .../V1SellerActionsVoucherGetRequest.js | 46 + .../V1SellerActionsVoucherGetResponse.d.ts | 31 + .../V1SellerActionsVoucherGetResponse.js | 44 + dist/models/V1SellerInfoResponse.d.ts | 46 + dist/models/V1SellerInfoResponse.js | 51 + .../V1SellerOzonLogisticsInfoResponse.d.ts | 43 + .../V1SellerOzonLogisticsInfoResponse.js | 47 + dist/models/V1SetPostingCutoffRequest.d.ts | 37 + dist/models/V1SetPostingCutoffRequest.js | 50 + dist/models/V1SetPostingCutoffResponse.d.ts | 32 + dist/models/V1SetPostingCutoffResponse.js | 44 + dist/models/V1SetPostingsRequest.d.ts | 37 + dist/models/V1SetPostingsRequest.js | 50 + dist/models/V1SetPostingsResponse.d.ts | 32 + dist/models/V1SetPostingsResponse.js | 45 + ...ductStairwayDiscountByQuantityRequest.d.ts | 39 + ...roductStairwayDiscountByQuantityRequest.js | 49 + ...wayDiscountByQuantityRequestStairways.d.ts | 45 + ...irwayDiscountByQuantityRequestStairways.js | 55 + ...untByQuantityRequestStairwaysStairway.d.ts | 32 + ...countByQuantityRequestStairwaysStairway.js | 47 + ...yQuantityRequestStairwaysStairwayStep.d.ts | 43 + ...tByQuantityRequestStairwaysStairwayStep.js | 54 + ...uctStairwayDiscountByQuantityResponse.d.ts | 45 + ...oductStairwayDiscountByQuantityResponse.js | 49 + ...airwayDiscountByQuantityResponseError.d.ts | 38 + ...StairwayDiscountByQuantityResponseError.js | 47 + dist/models/V1SetVehicleError.d.ts | 27 + dist/models/V1SetVehicleError.js | 50 + dist/models/V1StatusCodeNamePair.d.ts | 37 + dist/models/V1StatusCodeNamePair.js | 46 + .../models/V1StatusCodeNamePairRejection.d.ts | 37 + dist/models/V1StatusCodeNamePairRejection.js | 46 + dist/models/V1StatusCodeNamePairStatuses.d.ts | 37 + dist/models/V1StatusCodeNamePairStatuses.js | 46 + dist/models/V1StocksImportRequest.d.ts | 32 + dist/models/V1StocksImportRequest.js | 45 + dist/models/V1StocksImportResponse.d.ts | 32 + dist/models/V1StocksImportResponse.js | 45 + dist/models/V1StrategyRequest.d.ts | 31 + dist/models/V1StrategyRequest.js | 46 + ...V1SupplierAvailableWarehousesResponse.d.ts | 32 + .../V1SupplierAvailableWarehousesResponse.js | 45 + dist/models/V1SupplyOrderCancelRequest.d.ts | 31 + dist/models/V1SupplyOrderCancelRequest.js | 46 + dist/models/V1SupplyOrderCancelResponse.d.ts | 31 + dist/models/V1SupplyOrderCancelResponse.js | 44 + .../V1SupplyOrderCancelStatusRequest.d.ts | 31 + .../V1SupplyOrderCancelStatusRequest.js | 46 + .../V1SupplyOrderCancelStatusResponse.d.ts | 52 + .../V1SupplyOrderCancelStatusResponse.js | 51 + ...SupplyOrderCancelStatusResponseStatus.d.ts | 29 + ...V1SupplyOrderCancelStatusResponseStatus.js | 52 + .../V1SupplyOrderContentUpdateRequest.d.ts | 47 + .../V1SupplyOrderContentUpdateRequest.js | 55 + ...V1SupplyOrderContentUpdateRequestItem.d.ts | 43 + .../V1SupplyOrderContentUpdateRequestItem.js | 54 + .../V1SupplyOrderContentUpdateResponse.d.ts | 62 + .../V1SupplyOrderContentUpdateResponse.js | 47 + ...lyOrderContentUpdateResponseErrorEnum.d.ts | 56 + ...pplyOrderContentUpdateResponseErrorEnum.js | 79 + ...SupplyOrderContentUpdateStatusRequest.d.ts | 31 + ...V1SupplyOrderContentUpdateStatusRequest.js | 46 + ...upplyOrderContentUpdateStatusResponse.d.ts | 68 + ...1SupplyOrderContentUpdateStatusResponse.js | 50 + ...rContentUpdateStatusResponseErrorEnum.d.ts | 46 + ...derContentUpdateStatusResponseErrorEnum.js | 69 + ...lyOrderContentUpdateValidationRequest.d.ts | 37 + ...pplyOrderContentUpdateValidationRequest.js | 50 + ...yOrderContentUpdateValidationResponse.d.ts | 53 + ...plyOrderContentUpdateValidationResponse.js | 48 + dist/models/V1SupplyOrderDetailsRequest.d.ts | 31 + dist/models/V1SupplyOrderDetailsRequest.js | 46 + dist/models/V1SupplyOrderDetailsResponse.d.ts | 96 + dist/models/V1SupplyOrderDetailsResponse.js | 69 + .../V1SupplyOrderDetailsResponseTimeslot.d.ts | 53 + .../V1SupplyOrderDetailsResponseTimeslot.js | 50 + .../V1SupplyOrderPassCreateRequest.d.ts | 38 + dist/models/V1SupplyOrderPassCreateRequest.js | 51 + .../V1SupplyOrderPassCreateResponse.d.ts | 44 + .../models/V1SupplyOrderPassCreateResponse.js | 47 + .../V1SupplyOrderPassStatusRequest.d.ts | 31 + dist/models/V1SupplyOrderPassStatusRequest.js | 46 + .../V1SupplyOrderPassStatusResponse.d.ts | 45 + .../models/V1SupplyOrderPassStatusResponse.js | 48 + ...V1SupplyOrderPassStatusResponseStatus.d.ts | 31 + .../V1SupplyOrderPassStatusResponseStatus.js | 54 + .../V1SupplyOrderStatusCounterResponse.d.ts | 32 + .../V1SupplyOrderStatusCounterResponse.js | 45 + ...1SupplyOrderStatusCounterResponseItem.d.ts | 38 + .../V1SupplyOrderStatusCounterResponseItem.js | 47 + dist/models/V1SupplyOrderTimeslot.d.ts | 37 + dist/models/V1SupplyOrderTimeslot.js | 50 + dist/models/V1TimeRangeReturnDate.d.ts | 37 + dist/models/V1TimeRangeReturnDate.js | 46 + .../V1TimeRangeStorageTariffication.d.ts | 37 + .../models/V1TimeRangeStorageTariffication.js | 46 + dist/models/V1TimeRangeVisualStatus.d.ts | 37 + dist/models/V1TimeRangeVisualStatus.js | 46 + dist/models/V1Timezone.d.ts | 37 + dist/models/V1Timezone.js | 46 + .../V1UnarchiveWarehouseFBSRequest.d.ts | 37 + dist/models/V1UnarchiveWarehouseFBSRequest.js | 48 + .../V1UnarchiveWarehouseFBSResponse.d.ts | 31 + .../models/V1UnarchiveWarehouseFBSResponse.js | 44 + .../V1UpdatePricingStrategyRequest.d.ts | 44 + dist/models/V1UpdatePricingStrategyRequest.js | 55 + .../models/V1UpdateStatusStrategyRequest.d.ts | 40 + dist/models/V1UpdateStatusStrategyRequest.js | 48 + .../V1UpdateSupplyOrderTimeslotRequest.d.ts | 38 + .../V1UpdateSupplyOrderTimeslotRequest.js | 51 + .../V1UpdateSupplyOrderTimeslotResponse.d.ts | 48 + .../V1UpdateSupplyOrderTimeslotResponse.js | 47 + dist/models/V1UpdateTimeslotError.d.ts | 31 + dist/models/V1UpdateTimeslotError.js | 54 + .../V1UpdateWarehouseFBSFirstMileRequest.d.ts | 63 + .../V1UpdateWarehouseFBSFirstMileRequest.js | 63 + ...eFBSFirstMileRequestFirstMileTypeEnum.d.ts | 27 + ...useFBSFirstMileRequestFirstMileTypeEnum.js | 50 + ...V1UpdateWarehouseFBSFirstMileResponse.d.ts | 31 + .../V1UpdateWarehouseFBSFirstMileResponse.js | 44 + dist/models/V1UpdateWarehouseFBSRequest.d.ts | 72 + dist/models/V1UpdateWarehouseFBSRequest.js | 61 + ...WarehouseFBSRequestAddressCoordinates.d.ts | 37 + ...teWarehouseFBSRequestAddressCoordinates.js | 50 + .../V1UpdateWarehouseFBSRequestOptions.d.ts | 49 + .../V1UpdateWarehouseFBSRequestOptions.js | 50 + ...ateWarehouseFBSRequestWorkingDaysEnum.d.ts | 29 + ...pdateWarehouseFBSRequestWorkingDaysEnum.js | 52 + dist/models/V1UpdateWarehouseFBSResponse.d.ts | 31 + dist/models/V1UpdateWarehouseFBSResponse.js | 44 + dist/models/V1UploadPostingCodesRequest.d.ts | 38 + dist/models/V1UploadPostingCodesRequest.js | 47 + dist/models/V1UploadPostingCodesResponse.d.ts | 32 + dist/models/V1UploadPostingCodesResponse.js | 45 + .../V1UploadReceiptRequestTypeEnum.d.ts | 27 + dist/models/V1UploadReceiptRequestTypeEnum.js | 50 + dist/models/V1UploadReceiptResponse.d.ts | 31 + dist/models/V1UploadReceiptResponse.js | 44 + dist/models/V1VehicleInfo.d.ts | 49 + dist/models/V1VehicleInfo.js | 58 + ...WarehouseERFBSAggregatorCreateRequest.d.ts | 71 + ...V1WarehouseERFBSAggregatorCreateRequest.js | 69 + ...egatorCreateRequestAddressCoordinates.d.ts | 37 + ...gregatorCreateRequestAddressCoordinates.js | 50 + ...AggregatorCreateRequestDeliveryMethod.d.ts | 95 + ...BSAggregatorCreateRequestDeliveryMethod.js | 88 + ...teRequestDeliveryMethodReturnSettings.d.ts | 50 + ...eateRequestDeliveryMethodReturnSettings.js | 53 + ...yMethodReturnSettingsReturnMethodEnum.d.ts | 29 + ...eryMethodReturnSettingsReturnMethodEnum.js | 52 + ...eERFBSAggregatorCreateRequestHolidays.d.ts | 43 + ...useERFBSAggregatorCreateRequestHolidays.js | 48 + ...egatorCreateRequestTimetableWarehouse.d.ts | 39 + ...gregatorCreateRequestTimetableWarehouse.js | 50 + ...FBSAggregatorCreateRequestWorkingDays.d.ts | 44 + ...ERFBSAggregatorCreateRequestWorkingDays.js | 55 + ...egatorCreateRequestWorkingDaysDayEnum.d.ts | 39 + ...gregatorCreateRequestWorkingDaysDayEnum.js | 62 + ...arehouseERFBSAggregatorCreateResponse.d.ts | 31 + ...1WarehouseERFBSAggregatorCreateResponse.js | 44 + ...AggregatorDeliveryMethodUpdateRequest.d.ts | 107 + ...BSAggregatorDeliveryMethodUpdateRequest.js | 84 + ...iveryMethodUpdateRequestDeliveryCosts.d.ts | 55 + ...eliveryMethodUpdateRequestDeliveryCosts.js | 52 + ...veryMethodUpdateRequestReturnSettings.d.ts | 50 + ...liveryMethodUpdateRequestReturnSettings.js | 53 + ...RequestReturnSettingsReturnMethodEnum.d.ts | 27 + ...teRequestReturnSettingsReturnMethodEnum.js | 50 + ...ggregatorDeliveryMethodUpdateResponse.d.ts | 31 + ...SAggregatorDeliveryMethodUpdateResponse.js | 44 + ...ehouseERFBSNonIntegratedCreateRequest.d.ts | 71 + ...arehouseERFBSNonIntegratedCreateRequest.js | 69 + ...gratedCreateRequestAddressCoordinates.d.ts | 37 + ...tegratedCreateRequestAddressCoordinates.js | 50 + ...IntegratedCreateRequestDeliveryMethod.d.ts | 73 + ...onIntegratedCreateRequestDeliveryMethod.js | 80 + ...teRequestDeliveryMethodReturnSettings.d.ts | 50 + ...eateRequestDeliveryMethodReturnSettings.js | 53 + ...yMethodReturnSettingsReturnMethodEnum.d.ts | 27 + ...eryMethodReturnSettingsReturnMethodEnum.js | 50 + ...FBSNonIntegratedCreateRequestHolidays.d.ts | 43 + ...ERFBSNonIntegratedCreateRequestHolidays.js | 48 + ...gratedCreateRequestTimetableWarehouse.d.ts | 39 + ...tegratedCreateRequestTimetableWarehouse.js | 50 + ...NonIntegratedCreateRequestWorkingDays.d.ts | 44 + ...BSNonIntegratedCreateRequestWorkingDays.js | 55 + ...gratedCreateRequestWorkingDaysDayEnum.d.ts | 37 + ...tegratedCreateRequestWorkingDaysDayEnum.js | 60 + ...houseERFBSNonIntegratedCreateResponse.d.ts | 31 + ...rehouseERFBSNonIntegratedCreateResponse.js | 44 + ...IntegratedDeliveryMethodUpdateRequest.d.ts | 93 + ...onIntegratedDeliveryMethodUpdateRequest.js | 97 + ...veryMethodUpdateRequestReturnSettings.d.ts | 50 + ...liveryMethodUpdateRequestReturnSettings.js | 53 + ...RequestReturnSettingsReturnMethodEnum.d.ts | 27 + ...teRequestReturnSettingsReturnMethodEnum.js | 50 + ...ntegratedDeliveryMethodUpdateResponse.d.ts | 31 + ...nIntegratedDeliveryMethodUpdateResponse.js | 44 + .../models/V1WarehouseERFBSUpdateRequest.d.ts | 63 + dist/models/V1WarehouseERFBSUpdateRequest.js | 57 + ...V1WarehouseERFBSUpdateRequestHolidays.d.ts | 43 + .../V1WarehouseERFBSUpdateRequestHolidays.js | 48 + ...eERFBSUpdateRequestTimetableWarehouse.d.ts | 39 + ...useERFBSUpdateRequestTimetableWarehouse.js | 48 + ...arehouseERFBSUpdateRequestWorkingDays.d.ts | 44 + ...1WarehouseERFBSUpdateRequestWorkingDays.js | 49 + ...eERFBSUpdateRequestWorkingDaysDayEnum.d.ts | 39 + ...useERFBSUpdateRequestWorkingDaysDayEnum.js | 62 + .../V1WarehouseERFBSUpdateResponse.d.ts | 31 + dist/models/V1WarehouseERFBSUpdateResponse.js | 44 + ...ehouseFBSCreateReturnPointListRequest.d.ts | 63 + ...arehouseFBSCreateReturnPointListRequest.js | 62 + ...eateReturnPointListRequestCoordinates.d.ts | 37 + ...CreateReturnPointListRequestCoordinates.js | 50 + ...FBSCreateReturnPointListRequestSearch.d.ts | 42 + ...seFBSCreateReturnPointListRequestSearch.js | 47 + ...tListRequestSearchReturnPointTypeEnum.d.ts | 25 + ...intListRequestSearchReturnPointTypeEnum.js | 48 + ...houseFBSCreateReturnPointListResponse.d.ts | 50 + ...rehouseFBSCreateReturnPointListResponse.js | 51 + ...ateReturnPointListResponseCoordinates.d.ts | 37 + ...reateReturnPointListResponseCoordinates.js | 46 + ...ateReturnPointListResponseReturnPoint.d.ts | 70 + ...reateReturnPointListResponseReturnPoint.js | 59 + ...nPointListResponseReturnPointTypeEnum.d.ts | 31 + ...urnPointListResponseReturnPointTypeEnum.js | 54 + ...ateReturnPointListResponseWorkingDays.d.ts | 44 + ...reateReturnPointListResponseWorkingDays.js | 49 + ...rnPointListResponseWorkingDaysDayEnum.d.ts | 39 + ...turnPointListResponseWorkingDaysDayEnum.js | 62 + .../V1WarehouseFBSReturnMileInfoRequest.d.ts | 31 + .../V1WarehouseFBSReturnMileInfoRequest.js | 46 + .../V1WarehouseFBSReturnMileInfoResponse.d.ts | 32 + .../V1WarehouseFBSReturnMileInfoResponse.js | 45 + ...eFBSReturnMileInfoResponseCoordinates.d.ts | 37 + ...useFBSReturnMileInfoResponseCoordinates.js | 46 + ...eFBSReturnMileInfoResponseReturnPoint.d.ts | 70 + ...useFBSReturnMileInfoResponseReturnPoint.js | 59 + ...rnMileInfoResponseReturnPointTypeEnum.d.ts | 31 + ...turnMileInfoResponseReturnPointTypeEnum.js | 54 + ...eFBSReturnMileInfoResponseWorkingDays.d.ts | 44 + ...useFBSReturnMileInfoResponseWorkingDays.js | 49 + ...urnMileInfoResponseWorkingDaysDayEnum.d.ts | 39 + ...eturnMileInfoResponseWorkingDaysDayEnum.js | 62 + ...ehouseFBSUpdateReturnPointListRequest.d.ts | 62 + ...arehouseFBSUpdateReturnPointListRequest.js | 59 + ...FBSUpdateReturnPointListRequestSearch.d.ts | 42 + ...seFBSUpdateReturnPointListRequestSearch.js | 47 + ...tListRequestSearchReturnPointTypeEnum.d.ts | 25 + ...intListRequestSearchReturnPointTypeEnum.js | 48 + ...houseFBSUpdateReturnPointListResponse.d.ts | 50 + ...rehouseFBSUpdateReturnPointListResponse.js | 51 + ...ateReturnPointListResponseCoordinates.d.ts | 37 + ...pdateReturnPointListResponseCoordinates.js | 46 + ...ateReturnPointListResponseReturnPoint.d.ts | 70 + ...pdateReturnPointListResponseReturnPoint.js | 59 + ...nPointListResponseReturnPointTypeEnum.d.ts | 31 + ...urnPointListResponseReturnPointTypeEnum.js | 54 + ...ateReturnPointListResponseWorkingDays.d.ts | 44 + ...pdateReturnPointListResponseWorkingDays.js | 49 + ...rnPointListResponseWorkingDaysDayEnum.d.ts | 39 + ...turnPointListResponseWorkingDaysDayEnum.js | 62 + .../V1WarehouseFboSellerListResponse.d.ts | 32 + .../V1WarehouseFboSellerListResponse.js | 45 + ...rehouseFboSellerListResponseWarehouse.d.ts | 78 + ...WarehouseFboSellerListResponseWarehouse.js | 61 + ...seFbsCreateDropOffTimeslotListRequest.d.ts | 31 + ...ouseFbsCreateDropOffTimeslotListRequest.js | 46 + ...eFbsCreateDropOffTimeslotListResponse.d.ts | 32 + ...useFbsCreateDropOffTimeslotListResponse.js | 45 + ...teDropOffTimeslotListResponseTimeslot.d.ts | 55 + ...eateDropOffTimeslotListResponseTimeslot.js | 52 + ...useFbsCreatePickUpTimeslotListRequest.d.ts | 38 + ...houseFbsCreatePickUpTimeslotListRequest.js | 51 + ...TimeslotListRequestAddressCoordinates.d.ts | 37 + ...UpTimeslotListRequestAddressCoordinates.js | 50 + ...seFbsCreatePickUpTimeslotListResponse.d.ts | 38 + ...ouseFbsCreatePickUpTimeslotListResponse.js | 47 + ...atePickUpTimeslotListResponseTimeslot.d.ts | 43 + ...reatePickUpTimeslotListResponseTimeslot.js | 48 + ...arehouseFbsPickUpCourierCancelRequest.d.ts | 31 + ...1WarehouseFbsPickUpCourierCancelRequest.js | 46 + ...arehouseFbsPickUpCourierCreateRequest.d.ts | 34 + ...1WarehouseFbsPickUpCourierCreateRequest.js | 46 + ...1WarehouseFbsPickUpHistoryListRequest.d.ts | 44 + .../V1WarehouseFbsPickUpHistoryListRequest.js | 51 + ...ouseFbsPickUpHistoryListRequestFilter.d.ts | 44 + ...ehouseFbsPickUpHistoryListRequestFilter.js | 48 + ...WarehouseFbsPickUpHistoryListResponse.d.ts | 32 + ...V1WarehouseFbsPickUpHistoryListResponse.js | 45 + ...useFbsPickUpHistoryListResponseResult.d.ts | 38 + ...houseFbsPickUpHistoryListResponseResult.js | 47 + ...arehouseFbsPickUpPlanningListResponse.d.ts | 32 + ...1WarehouseFbsPickUpPlanningListResponse.js | 45 + ...seFbsPickUpPlanningListResponseResult.d.ts | 32 + ...ouseFbsPickUpPlanningListResponseResult.js | 45 + .../V1WarehouseFbsReturnMileCheckRequest.d.ts | 50 + .../V1WarehouseFbsReturnMileCheckRequest.js | 57 + ...turnMileCheckRequestFirstMileTypeEnum.d.ts | 27 + ...ReturnMileCheckRequestFirstMileTypeEnum.js | 50 + ...V1WarehouseFbsReturnMileCheckResponse.d.ts | 37 + .../V1WarehouseFbsReturnMileCheckResponse.js | 46 + ...seFbsUpdateDropOffTimeslotListRequest.d.ts | 37 + ...ouseFbsUpdateDropOffTimeslotListRequest.js | 50 + ...eFbsUpdateDropOffTimeslotListResponse.d.ts | 32 + ...useFbsUpdateDropOffTimeslotListResponse.js | 45 + ...teDropOffTimeslotListResponseTimeslot.d.ts | 55 + ...dateDropOffTimeslotListResponseTimeslot.js | 52 + ...useFbsUpdatePickUpTimeslotListRequest.d.ts | 31 + ...houseFbsUpdatePickUpTimeslotListRequest.js | 46 + ...seFbsUpdatePickUpTimeslotListResponse.d.ts | 32 + ...ouseFbsUpdatePickUpTimeslotListResponse.js | 45 + ...atePickUpTimeslotListResponseTimeslot.d.ts | 43 + ...pdatePickUpTimeslotListResponseTimeslot.js | 48 + .../V1WarehouseInvalidProductsGetRequest.d.ts | 40 + .../V1WarehouseInvalidProductsGetRequest.js | 48 + ...V1WarehouseInvalidProductsGetResponse.d.ts | 51 + .../V1WarehouseInvalidProductsGetResponse.js | 51 + dist/models/V1WarehouseListRequest.d.ts | 44 + dist/models/V1WarehouseListRequest.js | 51 + dist/models/V1WarehouseListRequestWith.d.ts | 32 + dist/models/V1WarehouseListRequestWith.js | 44 + dist/models/V1WarehouseOZONListRequest.d.ts | 45 + dist/models/V1WarehouseOZONListRequest.js | 45 + ...houseOZONListRequestWarehouseTypeEnum.d.ts | 34 + ...rehouseOZONListRequestWarehouseTypeEnum.js | 57 + dist/models/V1WarehouseOZONListResponse.d.ts | 32 + dist/models/V1WarehouseOZONListResponse.js | 45 + .../V1WarehouseOZONListResponseWarehouse.d.ts | 110 + .../V1WarehouseOZONListResponseWarehouse.js | 69 + ...1WarehouseWithInvalidProductsResponse.d.ts | 31 + .../V1WarehouseWithInvalidProductsResponse.js | 44 + dist/models/V1fbpDeliveryDetails.d.ts | 53 + dist/models/V1fbpDeliveryDetails.js | 54 + dist/models/V1fbpTimeslot.d.ts | 37 + dist/models/V1fbpTimeslot.js | 46 + dist/models/V2AdditionalDataItem.d.ts | 37 + dist/models/V2AdditionalDataItem.js | 46 + dist/models/V2CancellationInitiatorEnum.d.ts | 33 + dist/models/V2CancellationInitiatorEnum.js | 56 + dist/models/V2CancellationStateEnum.d.ts | 29 + dist/models/V2CancellationStateEnum.js | 52 + .../V2CancellationStateEnumFilters.d.ts | 31 + dist/models/V2CancellationStateEnumFilters.js | 54 + dist/models/V2CargoesCreateErrors.d.ts | 50 + dist/models/V2CargoesCreateErrors.js | 48 + dist/models/V2CargoesCreateInfoV2Request.d.ts | 31 + dist/models/V2CargoesCreateInfoV2Request.js | 46 + .../models/V2CargoesCreateInfoV2Response.d.ts | 46 + dist/models/V2CargoesCreateInfoV2Response.js | 51 + .../V2CarriageDeliveryListV2Request.d.ts | 44 + .../models/V2CarriageDeliveryListV2Request.js | 51 + .../V2CarriageDeliveryListV2Response.d.ts | 45 + .../V2CarriageDeliveryListV2Response.js | 49 + dist/models/V2ChatReadResponse.d.ts | 31 + dist/models/V2ChatReadResponse.js | 44 + ...2ConditionalCancellationMoveV2Request.d.ts | 37 + .../V2ConditionalCancellationMoveV2Request.js | 48 + dist/models/V2CreateLabelBatchResponse.d.ts | 32 + dist/models/V2CreateLabelBatchResponse.js | 45 + .../V2CreateLabelBatchResponseResult.d.ts | 32 + .../V2CreateLabelBatchResponseResult.js | 45 + ...V2CreateLabelBatchResponseResultTasks.d.ts | 40 + .../V2CreateLabelBatchResponseResultTasks.js | 46 + ...ryCheckoutRequestV2DeliverySchemaEnum.d.ts | 29 + ...veryCheckoutRequestV2DeliverySchemaEnum.js | 52 + .../models/V2DeliveryMethodListV2Request.d.ts | 51 + dist/models/V2DeliveryMethodListV2Request.js | 54 + .../V2DeliveryMethodListV2Response.d.ts | 45 + dist/models/V2DeliveryMethodListV2Response.js | 49 + dist/models/V2DraftClusterListResponse.d.ts | 32 + dist/models/V2DraftClusterListResponse.js | 45 + .../V2DraftClusterListResponseResult.d.ts | 38 + .../V2DraftClusterListResponseResult.js | 47 + dist/models/V2DraftCreateInfoRequest.d.ts | 31 + dist/models/V2DraftCreateInfoRequest.js | 46 + dist/models/V2DraftCreateInfoResponse.d.ts | 46 + dist/models/V2DraftCreateInfoResponse.js | 51 + .../V2DraftCreateInfoResponseStatusEnum.d.ts | 31 + .../V2DraftCreateInfoResponseStatusEnum.js | 54 + dist/models/V2DraftSupplyCreateRequest.d.ts | 64 + dist/models/V2DraftSupplyCreateRequest.js | 67 + ...CreateRequestSelectedClusterWarehouse.d.ts | 37 + ...lyCreateRequestSelectedClusterWarehouse.js | 50 + .../V2DraftSupplyCreateRequestTimeslot.d.ts | 37 + .../V2DraftSupplyCreateRequestTimeslot.js | 46 + dist/models/V2DraftSupplyCreateResponse.d.ts | 69 + dist/models/V2DraftSupplyCreateResponse.js | 47 + ...ftSupplyCreateResponseErrorReasonEnum.d.ts | 52 + ...raftSupplyCreateResponseErrorReasonEnum.js | 75 + .../V2DraftSupplyCreateStatusRequest.d.ts | 31 + .../V2DraftSupplyCreateStatusRequest.js | 46 + .../V2DraftSupplyCreateStatusResponse.d.ts | 75 + .../V2DraftSupplyCreateStatusResponse.js | 50 + ...lyCreateStatusResponseErrorReasonEnum.d.ts | 50 + ...pplyCreateStatusResponseErrorReasonEnum.js | 73 + ...tSupplyCreateStatusResponseStatusEnum.d.ts | 31 + ...aftSupplyCreateStatusResponseStatusEnum.js | 54 + dist/models/V2DraftTimeslotInfoRequest.d.ts | 72 + dist/models/V2DraftTimeslotInfoRequest.js | 72 + ...otInfoRequestSelectedClusterWarehouse.d.ts | 37 + ...slotInfoRequestSelectedClusterWarehouse.js | 46 + dist/models/V2DraftTimeslotInfoResponse.d.ts | 39 + dist/models/V2DraftTimeslotInfoResponse.js | 48 + ...ftTimeslotInfoResponseErrorReasonEnum.d.ts | 32 + ...raftTimeslotInfoResponseErrorReasonEnum.js | 55 + dist/models/V2FboPosting.d.ts | 140 ++ dist/models/V2FboPosting.js | 78 + dist/models/V2FboPostingListResponse.d.ts | 32 + dist/models/V2FboPostingListResponse.js | 45 + dist/models/V2FboPostingResponse.d.ts | 32 + dist/models/V2FboPostingResponse.js | 45 + dist/models/V2FboPostingV2.d.ts | 127 + dist/models/V2FboPostingV2.js | 73 + dist/models/V2FboSinglePostingLegalInfo.d.ts | 43 + dist/models/V2FboSinglePostingLegalInfo.js | 48 + dist/models/V2FbsPosting.d.ts | 87 + dist/models/V2FbsPosting.js | 64 + dist/models/V2FbsPostingProduct.d.ts | 55 + dist/models/V2FbsPostingProduct.js | 52 + ...V2FbsPostingProductCountryListRequest.d.ts | 31 + .../V2FbsPostingProductCountryListRequest.js | 44 + ...2FbsPostingProductCountryListResponse.d.ts | 32 + .../V2FbsPostingProductCountryListResponse.js | 45 + ...stingProductCountryListResponseResult.d.ts | 37 + ...PostingProductCountryListResponseResult.js | 46 + .../V2FbsPostingProductCountrySetRequest.d.ts | 46 + .../V2FbsPostingProductCountrySetRequest.js | 54 + ...V2FbsPostingProductCountrySetResponse.d.ts | 37 + .../V2FbsPostingProductCountrySetResponse.js | 46 + dist/models/V2FbsPostingResponse.d.ts | 32 + dist/models/V2FbsPostingResponse.js | 45 + ...tConditionalCancellationListV2Request.d.ts | 54 + ...GetConditionalCancellationListV2Request.js | 54 + ...ConditionalCancellationListV2Response.d.ts | 47 + ...etConditionalCancellationListV2Response.js | 49 + .../V2GetDiscountTaskListV2Request.d.ts | 56 + dist/models/V2GetDiscountTaskListV2Request.js | 61 + ...skListV2RequestDiscountTaskStatusEnum.d.ts | 31 + ...TaskListV2RequestDiscountTaskStatusEnum.js | 54 + .../V2GetDiscountTaskListV2Response.d.ts | 32 + .../models/V2GetDiscountTaskListV2Response.js | 45 + ...ductInfoStocksByWarehouseFbsRequestV2.d.ts | 49 + ...roductInfoStocksByWarehouseFbsRequestV2.js | 52 + ...uctInfoStocksByWarehouseFbsResponseV2.d.ts | 45 + ...oductInfoStocksByWarehouseFbsResponseV2.js | 49 + ...StocksByWarehouseFbsResponseV2Product.d.ts | 73 + ...foStocksByWarehouseFbsResponseV2Product.js | 58 + .../V2GetRealizationReportRequestV2.d.ts | 37 + .../models/V2GetRealizationReportRequestV2.js | 50 + .../V2GetRealizationReportResponseV2.d.ts | 32 + .../V2GetRealizationReportResponseV2.js | 45 + dist/models/V2HsCode.d.ts | 37 + dist/models/V2HsCode.js | 46 + .../V2InvoiceCreateOrUpdateV2Request.d.ts | 77 + .../V2InvoiceCreateOrUpdateV2Request.js | 63 + .../V2InvoiceCreateOrUpdateV2Response.d.ts | 31 + .../V2InvoiceCreateOrUpdateV2Response.js | 44 + dist/models/V2InvoiceGetV2Response.d.ts | 32 + dist/models/V2InvoiceGetV2Response.js | 45 + ...2MovePostingToAwaitingDeliveryRequest.d.ts | 31 + .../V2MovePostingToAwaitingDeliveryRequest.js | 46 + dist/models/V2PolygonBindRequest.d.ts | 62 + dist/models/V2PolygonBindRequest.js | 71 + .../V2PostingFBSActGetPostingsRequest.d.ts | 31 + .../V2PostingFBSActGetPostingsRequest.js | 46 + .../V2PostingFBSActGetPostingsResponse.d.ts | 32 + .../V2PostingFBSActGetPostingsResponse.js | 45 + .../V2PostingFBSActGetPostingsResult.d.ts | 74 + .../V2PostingFBSActGetPostingsResult.js | 59 + dist/models/V2PostingFBSActGetProducts.d.ts | 55 + dist/models/V2PostingFBSActGetProducts.js | 52 + dist/models/V2PostingFBSActListFilter.d.ts | 73 + dist/models/V2PostingFBSActListFilter.js | 54 + .../V2PostingFBSActListRelatedDocs.d.ts | 46 + dist/models/V2PostingFBSActListRelatedDocs.js | 51 + ...gFBSActListRelatedDocsActOfAcceptance.d.ts | 45 + ...ingFBSActListRelatedDocsActOfAcceptance.js | 46 + ...stingFBSActListRelatedDocsActOfExcess.d.ts | 41 + ...PostingFBSActListRelatedDocsActOfExcess.js | 46 + ...ingFBSActListRelatedDocsActOfMismatch.d.ts | 44 + ...stingFBSActListRelatedDocsActOfMismatch.js | 46 + dist/models/V2PostingFBSActListRequest.d.ts | 38 + dist/models/V2PostingFBSActListRequest.js | 49 + dist/models/V2PostingFBSActListResponse.d.ts | 32 + dist/models/V2PostingFBSActListResponse.js | 45 + dist/models/V2PostingFBSActListResult.d.ts | 116 + dist/models/V2PostingFBSActListResult.js | 71 + ...ostingFBSDigitalActCheckStatusRequest.d.ts | 31 + ...2PostingFBSDigitalActCheckStatusRequest.js | 46 + ...stingFBSDigitalActCheckStatusResponse.d.ts | 44 + ...PostingFBSDigitalActCheckStatusResponse.js | 46 + .../models/V2PostingFBSGetBarcodeRequest.d.ts | 31 + dist/models/V2PostingFBSGetBarcodeRequest.js | 46 + .../V2PostingFBSGetBarcodeResponse.d.ts | 43 + dist/models/V2PostingFBSGetBarcodeResponse.js | 48 + .../V2PostingFBSGetBarcodeTextResponse.d.ts | 31 + .../V2PostingFBSGetBarcodeTextResponse.js | 44 + .../V2PostingFBSGetDigitalActRequest.d.ts | 42 + .../V2PostingFBSGetDigitalActRequest.js | 48 + .../V2PostingFBSGetDigitalActResponse.d.ts | 43 + .../V2PostingFBSGetDigitalActResponse.js | 48 + dist/models/V2PostingFinancialDataFBO.d.ts | 44 + dist/models/V2PostingFinancialDataFBO.js | 49 + dist/models/V2PostingFinancialDataFBOV2.d.ts | 44 + dist/models/V2PostingFinancialDataFBOV2.js | 49 + dist/models/V2PostingProduct.d.ts | 85 + dist/models/V2PostingProduct.js | 58 + dist/models/V2Product.d.ts | 64 + dist/models/V2Product.js | 52 + ...uctCertificateAccordanceTypesResponse.d.ts | 32 + ...oductCertificateAccordanceTypesResponse.js | 45 + ...tificateAccordanceTypesResponseResult.d.ts | 38 + ...ertificateAccordanceTypesResponseResult.js | 47 + ...ertificateAccordanceTypesResponseType.d.ts | 37 + ...tCertificateAccordanceTypesResponseType.js | 46 + .../V2ProductCertificationListRequest.d.ts | 37 + .../V2ProductCertificationListRequest.js | 50 + .../V2ProductCertificationListResponse.d.ts | 38 + .../V2ProductCertificationListResponse.js | 47 + dist/models/V2ProductInfoPicturesRequest.d.ts | 31 + dist/models/V2ProductInfoPicturesRequest.js | 46 + .../models/V2ProductInfoPicturesResponse.d.ts | 32 + dist/models/V2ProductInfoPicturesResponse.js | 45 + .../V2ProductInfoPicturesResponseError.d.ts | 37 + .../V2ProductInfoPicturesResponseError.js | 46 + .../V2ProductInfoPicturesResponseItem.d.ts | 56 + .../V2ProductInfoPicturesResponseItem.js | 53 + dist/models/V2ReportReturnsCreateRequest.d.ts | 41 + dist/models/V2ReportReturnsCreateRequest.js | 48 + .../V2ReportReturnsCreateRequestFilter.d.ts | 143 ++ .../V2ReportReturnsCreateRequestFilter.js | 104 + .../models/V2ReportReturnsCreateResponse.d.ts | 32 + dist/models/V2ReportReturnsCreateResponse.js | 45 + dist/models/V2ReturnsRfbsFilter.d.ts | 58 + dist/models/V2ReturnsRfbsFilter.js | 51 + dist/models/V2ReturnsRfbsGetRequest.d.ts | 31 + dist/models/V2ReturnsRfbsGetRequest.js | 46 + dist/models/V2ReturnsRfbsGetResponse.d.ts | 32 + dist/models/V2ReturnsRfbsGetResponse.js | 45 + .../V2ReturnsRfbsGetV2ResponseState.d.ts | 37 + .../models/V2ReturnsRfbsGetV2ResponseState.js | 46 + dist/models/V2ReturnsRfbsListRequest.d.ts | 44 + dist/models/V2ReturnsRfbsListRequest.js | 51 + dist/models/V2ReturnsRfbsListResponse.d.ts | 32 + dist/models/V2ReturnsRfbsListResponse.js | 45 + .../V2ReturnsRfbsListV2ResponseState.d.ts | 49 + .../V2ReturnsRfbsListV2ResponseState.js | 50 + dist/models/V2WarehouseListV2Request.d.ts | 43 + dist/models/V2WarehouseListV2Request.js | 50 + dist/models/V2WarehouseListV2Response.d.ts | 45 + dist/models/V2WarehouseListV2Response.js | 49 + dist/models/V3AdditionalDataItem.d.ts | 37 + dist/models/V3AdditionalDataItem.js | 46 + dist/models/V3Address.d.ts | 91 + dist/models/V3Address.js | 64 + dist/models/V3Addressee.d.ts | 49 + dist/models/V3Addressee.js | 48 + dist/models/V3AddresseeFbsLists.d.ts | 38 + dist/models/V3AddresseeFbsLists.js | 46 + dist/models/V3Barcodes.d.ts | 37 + dist/models/V3Barcodes.js | 46 + dist/models/V3Cancellation.d.ts | 73 + dist/models/V3Cancellation.js | 54 + dist/models/V3ChatDetailsInfo.d.ts | 51 + dist/models/V3ChatDetailsInfo.js | 52 + dist/models/V3ChatHistoryRequest.d.ts | 64 + dist/models/V3ChatHistoryRequest.js | 55 + dist/models/V3ChatHistoryResponse.d.ts | 38 + dist/models/V3ChatHistoryResponse.js | 47 + dist/models/V3ChatInfo.d.ts | 50 + dist/models/V3ChatInfo.js | 51 + dist/models/V3ChatList.d.ts | 44 + dist/models/V3ChatList.js | 51 + dist/models/V3ChatListRequestFilter.d.ts | 38 + dist/models/V3ChatListRequestFilter.js | 47 + .../V3ChatListRequestFilterChatStatus.d.ts | 29 + .../V3ChatListRequestFilterChatStatus.js | 52 + dist/models/V3ChatListResponse.d.ts | 53 + dist/models/V3ChatListResponse.js | 51 + dist/models/V3ChatMessage.d.ts | 76 + dist/models/V3ChatMessage.js | 61 + dist/models/V3Customer.d.ts | 53 + dist/models/V3Customer.js | 51 + dist/models/V3CustomerFbsLists.d.ts | 57 + dist/models/V3CustomerFbsLists.js | 53 + dist/models/V3DeliveryMethod.d.ts | 61 + dist/models/V3DeliveryMethod.js | 54 + dist/models/V3Dimensions.d.ts | 49 + dist/models/V3Dimensions.js | 50 + dist/models/V3FbsPosting.d.ts | 383 +++ dist/models/V3FbsPosting.js | 137 ++ dist/models/V3FbsPostingAnalyticsData.d.ts | 122 + dist/models/V3FbsPostingAnalyticsData.js | 70 + dist/models/V3FbsPostingDetail.d.ts | 444 ++++ dist/models/V3FbsPostingDetail.js | 155 ++ dist/models/V3FbsPostingDetailOptional.d.ts | 31 + dist/models/V3FbsPostingDetailOptional.js | 44 + .../V3FbsPostingDetailRelatedPostings.d.ts | 31 + .../V3FbsPostingDetailRelatedPostings.js | 44 + .../models/V3FbsPostingExemplarProductV3.d.ts | 38 + dist/models/V3FbsPostingExemplarProductV3.js | 47 + dist/models/V3FbsPostingProduct.d.ts | 91 + dist/models/V3FbsPostingProduct.js | 60 + .../V3FbsPostingProductExemplarInfoV3.d.ts | 73 + .../V3FbsPostingProductExemplarInfoV3.js | 58 + .../V3FbsPostingProductExemplarsV3.d.ts | 35 + dist/models/V3FbsPostingProductExemplarsV3.js | 45 + dist/models/V3FbsPostingRequirementsV3.d.ts | 89 + dist/models/V3FbsPostingRequirementsV3.js | 58 + dist/models/V3FbsTariffication.d.ts | 84 + dist/models/V3FbsTariffication.js | 60 + ...V3FinanceCashFlowStatementListRequest.d.ts | 50 + .../V3FinanceCashFlowStatementListRequest.js | 57 + ...3FinanceCashFlowStatementListResponse.d.ts | 32 + .../V3FinanceCashFlowStatementListResponse.js | 45 + ...ceCashFlowStatementListResponsePeriod.d.ts | 43 + ...anceCashFlowStatementListResponsePeriod.js | 48 + ...ceCashFlowStatementListResponseResult.d.ts | 45 + ...anceCashFlowStatementListResponseResult.js | 50 + .../models/V3GetFbsPostingListResponseV3.d.ts | 32 + dist/models/V3GetFbsPostingListResponseV3.js | 45 + .../V3GetFbsPostingListResponseV3Result.d.ts | 41 + .../V3GetFbsPostingListResponseV3Result.js | 47 + dist/models/V3GetFbsPostingResponseV3.d.ts | 32 + dist/models/V3GetFbsPostingResponseV3.js | 45 + dist/models/V3GetProductInfoListRequest.d.ts | 43 + dist/models/V3GetProductInfoListRequest.js | 48 + dist/models/V3GetProductInfoListResponse.d.ts | 32 + dist/models/V3GetProductInfoListResponse.js | 45 + .../V3GetProductInfoListResponseItem.d.ts | 266 ++ .../V3GetProductInfoListResponseItem.js | 124 + ...V3GetProductInfoListResponsePromotion.d.ts | 39 + .../V3GetProductInfoListResponsePromotion.js | 47 + ...tProductInfoListResponsePromotionType.d.ts | 27 + ...GetProductInfoListResponsePromotionType.js | 50 + dist/models/V3ImportProductsRequest.d.ts | 32 + dist/models/V3ImportProductsRequest.js | 45 + .../V3ImportProductsRequestAttribute.d.ts | 44 + .../V3ImportProductsRequestAttribute.js | 49 + ...ImportProductsRequestComplexAttribute.d.ts | 32 + ...V3ImportProductsRequestComplexAttribute.js | 45 + ...3ImportProductsRequestDictionaryValue.d.ts | 37 + .../V3ImportProductsRequestDictionaryValue.js | 46 + dist/models/V3ImportProductsRequestItem.d.ts | 239 ++ dist/models/V3ImportProductsRequestItem.js | 105 + dist/models/V3ImportProductsResponse.d.ts | 32 + dist/models/V3ImportProductsResponse.js | 45 + .../V3ImportProductsResponseResult.d.ts | 31 + dist/models/V3ImportProductsResponseResult.js | 44 + dist/models/V3PostingFinancialData.d.ts | 44 + dist/models/V3PostingFinancialData.js | 49 + dist/models/V3PostingProductDetail.d.ts | 133 + dist/models/V3PostingProductDetail.js | 73 + dist/models/V3ServiceType.d.ts | 24 + dist/models/V3ServiceType.js | 47 + dist/models/V3SupplyOrderGetRequest.d.ts | 31 + dist/models/V3SupplyOrderGetRequest.js | 46 + dist/models/V3SupplyOrderGetResponse.d.ts | 32 + dist/models/V3SupplyOrderGetResponse.js | 45 + dist/models/V3SupplyOrderListRequest.d.ts | 61 + dist/models/V3SupplyOrderListRequest.js | 61 + dist/models/V3SupplyOrderListResponse.d.ts | 40 + dist/models/V3SupplyOrderListResponse.js | 46 + dist/models/V3TimeRange.d.ts | 37 + dist/models/V3TimeRange.js | 46 + dist/models/V3User.d.ts | 44 + dist/models/V3User.js | 46 + .../V4FbsPostingShipPackageV4Request.d.ts | 38 + .../V4FbsPostingShipPackageV4Request.js | 49 + ...FbsPostingShipPackageV4RequestProduct.d.ts | 43 + ...V4FbsPostingShipPackageV4RequestProduct.js | 52 + .../V4FbsPostingShipPackageV4Response.d.ts | 31 + .../V4FbsPostingShipPackageV4Response.js | 44 + ...GetProductAttributesResponseModelInfo.d.ts | 37 + ...V4GetProductAttributesResponseModelInfo.js | 46 + .../V4GetProductAttributesResponsePdf.d.ts | 37 + .../V4GetProductAttributesResponsePdf.js | 46 + .../models/V4GetProductInfoStocksRequest.d.ts | 44 + dist/models/V4GetProductInfoStocksRequest.js | 53 + .../V4GetProductInfoStocksRequestFilter.d.ts | 51 + .../V4GetProductInfoStocksRequestFilter.js | 52 + .../V4GetProductInfoStocksResponse.d.ts | 44 + dist/models/V4GetProductInfoStocksResponse.js | 49 + .../V4GetProductInfoStocksResponseItem.d.ts | 44 + .../V4GetProductInfoStocksResponseItem.js | 49 + dist/models/V4GetUploadQuotaResponse.d.ts | 53 + dist/models/V4GetUploadQuotaResponse.js | 54 + dist/models/V4Visibility.d.ts | 79 + dist/models/V4Visibility.js | 102 + ...PostingProductExemplarStatusV5Request.d.ts | 31 + ...bsPostingProductExemplarStatusV5Request.js | 46 + ...ostingProductExemplarStatusV5Response.d.ts | 50 + ...sPostingProductExemplarStatusV5Response.js | 49 + ...roductExemplarStatusV5ResponseProduct.d.ts | 38 + ...gProductExemplarStatusV5ResponseProduct.js | 47 + ...emplarStatusV5ResponseProductExemplar.d.ts | 104 + ...ExemplarStatusV5ResponseProductExemplar.js | 69 + ...arStatusV5ResponseProductExemplarMark.d.ts | 57 + ...plarStatusV5ResponseProductExemplarMark.js | 50 + ...stingProductExemplarValidateV5Request.d.ts | 38 + ...PostingProductExemplarValidateV5Request.js | 51 + ...oductExemplarValidateV5RequestProduct.d.ts | 38 + ...ProductExemplarValidateV5RequestProduct.js | 51 + ...mplarValidateV5RequestProductExemplar.d.ts | 50 + ...xemplarValidateV5RequestProductExemplar.js | 51 + ...rValidateV5RequestProductExemplarMark.d.ts | 41 + ...larValidateV5RequestProductExemplarMark.js | 46 + ...tingProductExemplarValidateV5Response.d.ts | 32 + ...ostingProductExemplarValidateV5Response.js | 45 + ...ductExemplarValidateV5ResponseProduct.d.ts | 50 + ...roductExemplarValidateV5ResponseProduct.js | 51 + ...plarValidateV5ResponseProductExemplar.d.ts | 62 + ...emplarValidateV5ResponseProductExemplar.js | 55 + ...ValidateV5ResponseProductExemplarMark.d.ts | 53 + ...arValidateV5ResponseProductExemplarMark.js | 50 + ...ngProductExemplarCreateOrGetV6Request.d.ts | 31 + ...tingProductExemplarCreateOrGetV6Request.js | 46 + ...gProductExemplarCreateOrGetV6Response.d.ts | 44 + ...ingProductExemplarCreateOrGetV6Response.js | 49 + ...FbsPostingProductExemplarSetV6Request.d.ts | 44 + ...V6FbsPostingProductExemplarSetV6Request.js | 53 + .../ValidationErrorCharacteristicEnum.d.ts | 45 + .../ValidationErrorCharacteristicEnum.js | 68 + dist/models/ValidationResultItem.d.ts | 44 + dist/models/ValidationResultItem.js | 49 + .../models/ValidationResultItemStateEnum.d.ts | 27 + dist/models/ValidationResultItemStateEnum.js | 50 + .../ValidationResultValidationError.d.ts | 58 + .../models/ValidationResultValidationError.js | 55 + ...lidationResultValidationErrorTypeEnum.d.ts | 29 + ...ValidationResultValidationErrorTypeEnum.js | 52 + dist/models/ValueCargoType.d.ts | 27 + dist/models/ValueCargoType.js | 50 + dist/models/ValueItem.d.ts | 55 + dist/models/ValueItem.js | 52 + dist/models/ValueTimezoneInfo.d.ts | 37 + dist/models/ValueTimezoneInfo.js | 46 + .../VehicleCanNotSetVehicleReasonEnum.d.ts | 27 + .../VehicleCanNotSetVehicleReasonEnum.js | 50 + dist/models/WarehouseAddress.d.ts | 68 + dist/models/WarehouseAddress.js | 57 + dist/models/WarehouseAddressCoordinates.d.ts | 37 + dist/models/WarehouseAddressCoordinates.js | 46 + dist/models/WarehouseAddressInfo.d.ts | 49 + dist/models/WarehouseAddressInfo.js | 50 + dist/models/WarehouseAvailabilityStatus.d.ts | 39 + dist/models/WarehouseAvailabilityStatus.js | 48 + .../WarehouseCarriageLabelTypeEnum.d.ts | 29 + dist/models/WarehouseCarriageLabelTypeEnum.js | 52 + dist/models/WarehouseContacts.d.ts | 31 + dist/models/WarehouseContacts.js | 44 + .../WarehouseDeliveryMethodListRequest.d.ts | 44 + .../WarehouseDeliveryMethodListRequest.js | 51 + .../WarehouseDeliveryMethodListResponse.d.ts | 41 + .../WarehouseDeliveryMethodListResponse.js | 47 + ...ateRequestDeliveryMethodDeliveryCosts.d.ts | 55 + ...reateRequestDeliveryMethodDeliveryCosts.js | 52 + ...foResponseWarehouseReturnMileSettings.d.ts | 44 + ...InfoResponseWarehouseReturnMileSettings.js | 49 + ...ickUpHistoryListResponseHistoryEntity.d.ts | 67 + ...sPickUpHistoryListResponseHistoryEntity.js | 54 + ...UpPlanningListResponseResultWarehouse.d.ts | 64 + ...ckUpPlanningListResponseResultWarehouse.js | 54 + dist/models/WarehouseFirstMile.d.ts | 62 + dist/models/WarehouseFirstMile.js | 55 + dist/models/WarehouseFirstMileType.d.ts | 57 + dist/models/WarehouseFirstMileType.js | 58 + ...idProductsGetResponseValidationResult.d.ts | 46 + ...alidProductsGetResponseValidationResult.js | 51 + .../WarehouseListResponseWarehouse.d.ts | 165 ++ dist/models/WarehouseListResponseWarehouse.js | 92 + .../WarehouseListV2ResponseWarehouse.d.ts | 207 ++ .../WarehouseListV2ResponseWarehouse.js | 103 + ...istResponseWarehouseWarehouseTypeEnum.d.ts | 49 + ...NListResponseWarehouseWarehouseTypeEnum.js | 72 + dist/models/WarehouseStorageWarehouse.d.ts | 43 + dist/models/WarehouseStorageWarehouse.js | 48 + dist/models/WarehouseSupplyTagEnum.d.ts | 32 + dist/models/WarehouseSupplyTagEnum.js | 55 + dist/models/WarehouseTimetable.d.ts | 44 + dist/models/WarehouseTimetable.js | 49 + .../WarehouseV1WarehouseRfbsPauseRequest.d.ts | 31 + .../WarehouseV1WarehouseRfbsPauseRequest.js | 44 + ...WarehouseV1WarehouseRfbsPauseResponse.d.ts | 31 + .../WarehouseV1WarehouseRfbsPauseResponse.js | 44 + ...arehouseV1WarehouseRfbsUnpauseRequest.d.ts | 31 + .../WarehouseV1WarehouseRfbsUnpauseRequest.js | 44 + ...rehouseV1WarehouseRfbsUnpauseResponse.d.ts | 31 + ...WarehouseV1WarehouseRfbsUnpauseResponse.js | 44 + ...ResponseDeliveryMethodTPLDropOffPoint.d.ts | 50 + ...V2ResponseDeliveryMethodTPLDropOffPoint.js | 51 + ...thodTPLDropOffPointAddressCoordinates.d.ts | 37 + ...MethodTPLDropOffPointAddressCoordinates.js | 46 + .../WarehouseWarehouseListResponse.d.ts | 32 + dist/models/WarehouseWarehouseListResponse.js | 45 + dist/models/WarehouseWorkingDay.d.ts | 44 + dist/models/WarehouseWorkingDay.js | 49 + dist/models/WarehouseWorkingDayDayEnum.d.ts | 39 + dist/models/WarehouseWorkingDayDayEnum.js | 62 + dist/models/WarehouseWorkingDaysEnum.d.ts | 30 + dist/models/WarehouseWorkingDaysEnum.js | 53 + dist/models/WorkingHoursPeriods.d.ts | 39 + dist/models/WorkingHoursPeriods.js | 48 + dist/models/index.d.ts | 2122 ++++++++++++++++ dist/models/index.js | 2140 +++++++++++++++++ dist/runtime.d.ts | 181 ++ dist/runtime.js | 341 +++ package.json | 25 + 8734 files changed, 470872 insertions(+), 2 deletions(-) create mode 100644 dist/apis/APIkey.d.ts create mode 100644 dist/apis/APIkey.js create mode 100644 dist/apis/AnalyticsAPI.d.ts create mode 100644 dist/apis/AnalyticsAPI.js create mode 100644 dist/apis/BarcodeAPI.d.ts create mode 100644 dist/apis/BarcodeAPI.js create mode 100644 dist/apis/BetaMethod.d.ts create mode 100644 dist/apis/BetaMethod.js create mode 100644 dist/apis/BrandAPI.d.ts create mode 100644 dist/apis/BrandAPI.js create mode 100644 dist/apis/CancelReasonAPI.d.ts create mode 100644 dist/apis/CancelReasonAPI.js create mode 100644 dist/apis/CancellationAPI.d.ts create mode 100644 dist/apis/CancellationAPI.js create mode 100644 dist/apis/CarriageAPI.d.ts create mode 100644 dist/apis/CarriageAPI.js create mode 100644 dist/apis/CategoryAPI.d.ts create mode 100644 dist/apis/CategoryAPI.js create mode 100644 dist/apis/CertificationAPI.d.ts create mode 100644 dist/apis/CertificationAPI.js create mode 100644 dist/apis/ChatAPI.d.ts create mode 100644 dist/apis/ChatAPI.js create mode 100644 dist/apis/DeliveryAPI.d.ts create mode 100644 dist/apis/DeliveryAPI.js create mode 100644 dist/apis/DeliveryFBP.d.ts create mode 100644 dist/apis/DeliveryFBP.js create mode 100644 dist/apis/DeliveryFBPDraft.d.ts create mode 100644 dist/apis/DeliveryFBPDraft.js create mode 100644 dist/apis/DeliveryFBS.d.ts create mode 100644 dist/apis/DeliveryFBS.js create mode 100644 dist/apis/DeliveryrFBS.d.ts create mode 100644 dist/apis/DeliveryrFBS.js create mode 100644 dist/apis/Digital.d.ts create mode 100644 dist/apis/Digital.js create mode 100644 dist/apis/DraftDirectFBP.d.ts create mode 100644 dist/apis/DraftDirectFBP.js create mode 100644 dist/apis/DraftDropOffFBP.d.ts create mode 100644 dist/apis/DraftDropOffFBP.js create mode 100644 dist/apis/DraftPickupFBP.d.ts create mode 100644 dist/apis/DraftPickupFBP.js create mode 100644 dist/apis/FBO.d.ts create mode 100644 dist/apis/FBO.js create mode 100644 dist/apis/FBOTransport.d.ts create mode 100644 dist/apis/FBOTransport.js create mode 100644 dist/apis/FBOWarehouse.d.ts create mode 100644 dist/apis/FBOWarehouse.js create mode 100644 dist/apis/FBS.d.ts create mode 100644 dist/apis/FBS.js create mode 100644 dist/apis/FBSWarehouseSetup.d.ts create mode 100644 dist/apis/FBSWarehouseSetup.js create mode 100644 dist/apis/FBSrFBSMarks.d.ts create mode 100644 dist/apis/FBSrFBSMarks.js create mode 100644 dist/apis/FboPostingAPI.d.ts create mode 100644 dist/apis/FboPostingAPI.js create mode 100644 dist/apis/FboSupplyRequest.d.ts create mode 100644 dist/apis/FboSupplyRequest.js create mode 100644 dist/apis/FinanceAPI.d.ts create mode 100644 dist/apis/FinanceAPI.js create mode 100644 dist/apis/Notification.d.ts create mode 100644 dist/apis/Notification.js create mode 100644 dist/apis/OrderAPI.d.ts create mode 100644 dist/apis/OrderAPI.js create mode 100644 dist/apis/OrderDirectFBP.d.ts create mode 100644 dist/apis/OrderDirectFBP.js create mode 100644 dist/apis/OrderDropOffFBP.d.ts create mode 100644 dist/apis/OrderDropOffFBP.js create mode 100644 dist/apis/OrderPickupFBP.d.ts create mode 100644 dist/apis/OrderPickupFBP.js create mode 100644 dist/apis/Pass.d.ts create mode 100644 dist/apis/Pass.js create mode 100644 dist/apis/PolygonAPI.d.ts create mode 100644 dist/apis/PolygonAPI.js create mode 100644 dist/apis/Premium.d.ts create mode 100644 dist/apis/Premium.js create mode 100644 dist/apis/PricesStocksAPI.d.ts create mode 100644 dist/apis/PricesStocksAPI.js create mode 100644 dist/apis/PricingStrategyAPI.d.ts create mode 100644 dist/apis/PricingStrategyAPI.js create mode 100644 dist/apis/ProductAPI.d.ts create mode 100644 dist/apis/ProductAPI.js create mode 100644 dist/apis/Promos.d.ts create mode 100644 dist/apis/Promos.js create mode 100644 dist/apis/PromosBeta.d.ts create mode 100644 dist/apis/PromosBeta.js create mode 100644 dist/apis/Quants.d.ts create mode 100644 dist/apis/Quants.js create mode 100644 dist/apis/QuestionsAnswers.d.ts create mode 100644 dist/apis/QuestionsAnswers.js create mode 100644 dist/apis/RFBSReturnsAPI.d.ts create mode 100644 dist/apis/RFBSReturnsAPI.js create mode 100644 dist/apis/RFBSWarehouseSetup.d.ts create mode 100644 dist/apis/RFBSWarehouseSetup.js create mode 100644 dist/apis/Receipt.d.ts create mode 100644 dist/apis/Receipt.js create mode 100644 dist/apis/ReportAPI.d.ts create mode 100644 dist/apis/ReportAPI.js create mode 100644 dist/apis/ReturnAPI.d.ts create mode 100644 dist/apis/ReturnAPI.js create mode 100644 dist/apis/ReturnsAPI.d.ts create mode 100644 dist/apis/ReturnsAPI.js create mode 100644 dist/apis/ReviewAPI.d.ts create mode 100644 dist/apis/ReviewAPI.js create mode 100644 dist/apis/SellerActions.d.ts create mode 100644 dist/apis/SellerActions.js create mode 100644 dist/apis/SellerInfo.d.ts create mode 100644 dist/apis/SellerInfo.js create mode 100644 dist/apis/SellerRating.d.ts create mode 100644 dist/apis/SellerRating.js create mode 100644 dist/apis/SupplierAPI.d.ts create mode 100644 dist/apis/SupplierAPI.js create mode 100644 dist/apis/SupplyOrderAPI.d.ts create mode 100644 dist/apis/SupplyOrderAPI.js create mode 100644 dist/apis/WarehouseAPI.d.ts create mode 100644 dist/apis/WarehouseAPI.js create mode 100644 dist/apis/index.d.ts create mode 100644 dist/apis/index.js create mode 100644 dist/esm/apis/APIkey.d.ts create mode 100644 dist/esm/apis/APIkey.js create mode 100644 dist/esm/apis/AnalyticsAPI.d.ts create mode 100644 dist/esm/apis/AnalyticsAPI.js create mode 100644 dist/esm/apis/BarcodeAPI.d.ts create mode 100644 dist/esm/apis/BarcodeAPI.js create mode 100644 dist/esm/apis/BetaMethod.d.ts create mode 100644 dist/esm/apis/BetaMethod.js create mode 100644 dist/esm/apis/BrandAPI.d.ts create mode 100644 dist/esm/apis/BrandAPI.js create mode 100644 dist/esm/apis/CancelReasonAPI.d.ts create mode 100644 dist/esm/apis/CancelReasonAPI.js create mode 100644 dist/esm/apis/CancellationAPI.d.ts create mode 100644 dist/esm/apis/CancellationAPI.js create mode 100644 dist/esm/apis/CarriageAPI.d.ts create mode 100644 dist/esm/apis/CarriageAPI.js create mode 100644 dist/esm/apis/CategoryAPI.d.ts create mode 100644 dist/esm/apis/CategoryAPI.js create mode 100644 dist/esm/apis/CertificationAPI.d.ts create mode 100644 dist/esm/apis/CertificationAPI.js create mode 100644 dist/esm/apis/ChatAPI.d.ts create mode 100644 dist/esm/apis/ChatAPI.js create mode 100644 dist/esm/apis/DeliveryAPI.d.ts create mode 100644 dist/esm/apis/DeliveryAPI.js create mode 100644 dist/esm/apis/DeliveryFBP.d.ts create mode 100644 dist/esm/apis/DeliveryFBP.js create mode 100644 dist/esm/apis/DeliveryFBPDraft.d.ts create mode 100644 dist/esm/apis/DeliveryFBPDraft.js create mode 100644 dist/esm/apis/DeliveryFBS.d.ts create mode 100644 dist/esm/apis/DeliveryFBS.js create mode 100644 dist/esm/apis/DeliveryrFBS.d.ts create mode 100644 dist/esm/apis/DeliveryrFBS.js create mode 100644 dist/esm/apis/Digital.d.ts create mode 100644 dist/esm/apis/Digital.js create mode 100644 dist/esm/apis/DraftDirectFBP.d.ts create mode 100644 dist/esm/apis/DraftDirectFBP.js create mode 100644 dist/esm/apis/DraftDropOffFBP.d.ts create mode 100644 dist/esm/apis/DraftDropOffFBP.js create mode 100644 dist/esm/apis/DraftPickupFBP.d.ts create mode 100644 dist/esm/apis/DraftPickupFBP.js create mode 100644 dist/esm/apis/FBO.d.ts create mode 100644 dist/esm/apis/FBO.js create mode 100644 dist/esm/apis/FBOTransport.d.ts create mode 100644 dist/esm/apis/FBOTransport.js create mode 100644 dist/esm/apis/FBOWarehouse.d.ts create mode 100644 dist/esm/apis/FBOWarehouse.js create mode 100644 dist/esm/apis/FBS.d.ts create mode 100644 dist/esm/apis/FBS.js create mode 100644 dist/esm/apis/FBSWarehouseSetup.d.ts create mode 100644 dist/esm/apis/FBSWarehouseSetup.js create mode 100644 dist/esm/apis/FBSrFBSMarks.d.ts create mode 100644 dist/esm/apis/FBSrFBSMarks.js create mode 100644 dist/esm/apis/FboPostingAPI.d.ts create mode 100644 dist/esm/apis/FboPostingAPI.js create mode 100644 dist/esm/apis/FboSupplyRequest.d.ts create mode 100644 dist/esm/apis/FboSupplyRequest.js create mode 100644 dist/esm/apis/FinanceAPI.d.ts create mode 100644 dist/esm/apis/FinanceAPI.js create mode 100644 dist/esm/apis/Notification.d.ts create mode 100644 dist/esm/apis/Notification.js create mode 100644 dist/esm/apis/OrderAPI.d.ts create mode 100644 dist/esm/apis/OrderAPI.js create mode 100644 dist/esm/apis/OrderDirectFBP.d.ts create mode 100644 dist/esm/apis/OrderDirectFBP.js create mode 100644 dist/esm/apis/OrderDropOffFBP.d.ts create mode 100644 dist/esm/apis/OrderDropOffFBP.js create mode 100644 dist/esm/apis/OrderPickupFBP.d.ts create mode 100644 dist/esm/apis/OrderPickupFBP.js create mode 100644 dist/esm/apis/Pass.d.ts create mode 100644 dist/esm/apis/Pass.js create mode 100644 dist/esm/apis/PolygonAPI.d.ts create mode 100644 dist/esm/apis/PolygonAPI.js create mode 100644 dist/esm/apis/Premium.d.ts create mode 100644 dist/esm/apis/Premium.js create mode 100644 dist/esm/apis/PricesStocksAPI.d.ts create mode 100644 dist/esm/apis/PricesStocksAPI.js create mode 100644 dist/esm/apis/PricingStrategyAPI.d.ts create mode 100644 dist/esm/apis/PricingStrategyAPI.js create mode 100644 dist/esm/apis/ProductAPI.d.ts create mode 100644 dist/esm/apis/ProductAPI.js create mode 100644 dist/esm/apis/Promos.d.ts create mode 100644 dist/esm/apis/Promos.js create mode 100644 dist/esm/apis/PromosBeta.d.ts create mode 100644 dist/esm/apis/PromosBeta.js create mode 100644 dist/esm/apis/Quants.d.ts create mode 100644 dist/esm/apis/Quants.js create mode 100644 dist/esm/apis/QuestionsAnswers.d.ts create mode 100644 dist/esm/apis/QuestionsAnswers.js create mode 100644 dist/esm/apis/RFBSReturnsAPI.d.ts create mode 100644 dist/esm/apis/RFBSReturnsAPI.js create mode 100644 dist/esm/apis/RFBSWarehouseSetup.d.ts create mode 100644 dist/esm/apis/RFBSWarehouseSetup.js create mode 100644 dist/esm/apis/Receipt.d.ts create mode 100644 dist/esm/apis/Receipt.js create mode 100644 dist/esm/apis/ReportAPI.d.ts create mode 100644 dist/esm/apis/ReportAPI.js create mode 100644 dist/esm/apis/ReturnAPI.d.ts create mode 100644 dist/esm/apis/ReturnAPI.js create mode 100644 dist/esm/apis/ReturnsAPI.d.ts create mode 100644 dist/esm/apis/ReturnsAPI.js create mode 100644 dist/esm/apis/ReviewAPI.d.ts create mode 100644 dist/esm/apis/ReviewAPI.js create mode 100644 dist/esm/apis/SellerActions.d.ts create mode 100644 dist/esm/apis/SellerActions.js create mode 100644 dist/esm/apis/SellerInfo.d.ts create mode 100644 dist/esm/apis/SellerInfo.js create mode 100644 dist/esm/apis/SellerRating.d.ts create mode 100644 dist/esm/apis/SellerRating.js create mode 100644 dist/esm/apis/SupplierAPI.d.ts create mode 100644 dist/esm/apis/SupplierAPI.js create mode 100644 dist/esm/apis/SupplyOrderAPI.d.ts create mode 100644 dist/esm/apis/SupplyOrderAPI.js create mode 100644 dist/esm/apis/WarehouseAPI.d.ts create mode 100644 dist/esm/apis/WarehouseAPI.js create mode 100644 dist/esm/apis/index.d.ts create mode 100644 dist/esm/apis/index.js create mode 100644 dist/esm/index.d.ts create mode 100644 dist/esm/index.js create mode 100644 dist/esm/models/ActionParameter.d.ts create mode 100644 dist/esm/models/ActionParameter.js create mode 100644 dist/esm/models/ActionParameterDiscountTypeEnum.d.ts create mode 100644 dist/esm/models/ActionParameterDiscountTypeEnum.js create mode 100644 dist/esm/models/ActionParameterVoucherParameter.d.ts create mode 100644 dist/esm/models/ActionParameterVoucherParameter.js create mode 100644 dist/esm/models/ActionParameterVoucherParameterTypeEnum.d.ts create mode 100644 dist/esm/models/ActionParameterVoucherParameterTypeEnum.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteRequest.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteRequest.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteResponse.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteResponse.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsListRequest.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsListRequest.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsListResponse.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsListResponse.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsListResponseProducts.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsListResponseProducts.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequest.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequest.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponse.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponse.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.js create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.d.ts create mode 100644 dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.js create mode 100644 dist/esm/models/AddStrategyItemsResponseError.d.ts create mode 100644 dist/esm/models/AddStrategyItemsResponseError.js create mode 100644 dist/esm/models/AnalyticsAnalyticsGetDataRequest.d.ts create mode 100644 dist/esm/models/AnalyticsAnalyticsGetDataRequest.js create mode 100644 dist/esm/models/AnalyticsAnalyticsGetDataResponse.d.ts create mode 100644 dist/esm/models/AnalyticsAnalyticsGetDataResponse.js create mode 100644 dist/esm/models/AnalyticsDataRow.d.ts create mode 100644 dist/esm/models/AnalyticsDataRow.js create mode 100644 dist/esm/models/AnalyticsDataRowDimension.d.ts create mode 100644 dist/esm/models/AnalyticsDataRowDimension.js create mode 100644 dist/esm/models/AnalyticsFilter.d.ts create mode 100644 dist/esm/models/AnalyticsFilter.js create mode 100644 dist/esm/models/AnalyticsGetDataResponseResult.d.ts create mode 100644 dist/esm/models/AnalyticsGetDataResponseResult.js create mode 100644 dist/esm/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.d.ts create mode 100644 dist/esm/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.js create mode 100644 dist/esm/models/AnalyticsProductQueriesDetailsResponseQuery.d.ts create mode 100644 dist/esm/models/AnalyticsProductQueriesDetailsResponseQuery.js create mode 100644 dist/esm/models/AnalyticsProductQueriesRequestSortBy.d.ts create mode 100644 dist/esm/models/AnalyticsProductQueriesRequestSortBy.js create mode 100644 dist/esm/models/AnalyticsProductQueriesRequestSortDir.d.ts create mode 100644 dist/esm/models/AnalyticsProductQueriesRequestSortDir.js create mode 100644 dist/esm/models/AnalyticsProductQueriesResponseAnalyticsPeriod.d.ts create mode 100644 dist/esm/models/AnalyticsProductQueriesResponseAnalyticsPeriod.js create mode 100644 dist/esm/models/AnalyticsSorting.d.ts create mode 100644 dist/esm/models/AnalyticsSorting.js create mode 100644 dist/esm/models/AnalyticsStockOnWarehouseRequest.d.ts create mode 100644 dist/esm/models/AnalyticsStockOnWarehouseRequest.js create mode 100644 dist/esm/models/AnalyticsStockOnWarehouseResponse.d.ts create mode 100644 dist/esm/models/AnalyticsStockOnWarehouseResponse.js create mode 100644 dist/esm/models/AnalyticsStockOnWarehouseResponseResult.d.ts create mode 100644 dist/esm/models/AnalyticsStockOnWarehouseResponseResult.js create mode 100644 dist/esm/models/AnalyticsStockOnWarehouseResultRows.d.ts create mode 100644 dist/esm/models/AnalyticsStockOnWarehouseResultRows.js create mode 100644 dist/esm/models/ApproveDeclineDiscountTasksResponseFailDetail.d.ts create mode 100644 dist/esm/models/ApproveDeclineDiscountTasksResponseFailDetail.js create mode 100644 dist/esm/models/ArrivalPassListRequestFilter.d.ts create mode 100644 dist/esm/models/ArrivalPassListRequestFilter.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassCreateRequest.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassCreateRequest.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassCreateRequestArrivalPass.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassCreateRequestArrivalPass.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassCreateResponse.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassCreateResponse.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassDeleteRequest.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassDeleteRequest.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassListRequest.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassListRequest.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassListResponse.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassListResponse.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassListResponseArrivalPass.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassListResponseArrivalPass.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassUpdateRequest.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassUpdateRequest.js create mode 100644 dist/esm/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.d.ts create mode 100644 dist/esm/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.js create mode 100644 dist/esm/models/AssemblyFbsProductListResponseProducts.d.ts create mode 100644 dist/esm/models/AssemblyFbsProductListResponseProducts.js create mode 100644 dist/esm/models/AvailabilityReason.d.ts create mode 100644 dist/esm/models/AvailabilityReason.js create mode 100644 dist/esm/models/AvailabilityStatusInvalidReasonEnum.d.ts create mode 100644 dist/esm/models/AvailabilityStatusInvalidReasonEnum.js create mode 100644 dist/esm/models/AvailabilityStatusStateEnum.d.ts create mode 100644 dist/esm/models/AvailabilityStatusStateEnum.js create mode 100644 dist/esm/models/BrandBrandCompanyCertificationListRequest.d.ts create mode 100644 dist/esm/models/BrandBrandCompanyCertificationListRequest.js create mode 100644 dist/esm/models/BrandBrandCompanyCertificationListResponse.d.ts create mode 100644 dist/esm/models/BrandBrandCompanyCertificationListResponse.js create mode 100644 dist/esm/models/BrandCompanyCertificationListResponseBrandCertification.d.ts create mode 100644 dist/esm/models/BrandCompanyCertificationListResponseBrandCertification.js create mode 100644 dist/esm/models/BrandCompanyCertificationListResponseBrandCertificationResult.d.ts create mode 100644 dist/esm/models/BrandCompanyCertificationListResponseBrandCertificationResult.js create mode 100644 dist/esm/models/CancelSupplyResultsCancelSupplyError.d.ts create mode 100644 dist/esm/models/CancelSupplyResultsCancelSupplyError.js create mode 100644 dist/esm/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.d.ts create mode 100644 dist/esm/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.js create mode 100644 dist/esm/models/CancellationErrorCode.d.ts create mode 100644 dist/esm/models/CancellationErrorCode.js create mode 100644 dist/esm/models/CancellationStateCancellationError.d.ts create mode 100644 dist/esm/models/CancellationStateCancellationError.js create mode 100644 dist/esm/models/CargoInfoContentTypeEnum.d.ts create mode 100644 dist/esm/models/CargoInfoContentTypeEnum.js create mode 100644 dist/esm/models/CargoInfoPlacementZoneTypeEnum.d.ts create mode 100644 dist/esm/models/CargoInfoPlacementZoneTypeEnum.js create mode 100644 dist/esm/models/CargoInfoTrackingInfo.d.ts create mode 100644 dist/esm/models/CargoInfoTrackingInfo.js create mode 100644 dist/esm/models/CargoInfoTrackingInfoStatusEnum.d.ts create mode 100644 dist/esm/models/CargoInfoTrackingInfoStatusEnum.js create mode 100644 dist/esm/models/CargoInfoTrackingInfoTypeEnum.d.ts create mode 100644 dist/esm/models/CargoInfoTrackingInfoTypeEnum.js create mode 100644 dist/esm/models/CargoValue.d.ts create mode 100644 dist/esm/models/CargoValue.js create mode 100644 dist/esm/models/CargoesCreateErrorsErrorReason.d.ts create mode 100644 dist/esm/models/CargoesCreateErrorsErrorReason.js create mode 100644 dist/esm/models/CargoesCreateErrorsItemValidation.d.ts create mode 100644 dist/esm/models/CargoesCreateErrorsItemValidation.js create mode 100644 dist/esm/models/CargoesCreateErrorsReasonEnum.d.ts create mode 100644 dist/esm/models/CargoesCreateErrorsReasonEnum.js create mode 100644 dist/esm/models/CargoesCreateInfoV2ResponseResult.d.ts create mode 100644 dist/esm/models/CargoesCreateInfoV2ResponseResult.js create mode 100644 dist/esm/models/CargoesCreateInfoV2ResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesCreateInfoV2ResponseStatusEnum.js create mode 100644 dist/esm/models/CargoesCreateV2ErrorsItemValidation.d.ts create mode 100644 dist/esm/models/CargoesCreateV2ErrorsItemValidation.js create mode 100644 dist/esm/models/CargoesDeleteStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesDeleteStatusResponseStatusEnum.js create mode 100644 dist/esm/models/CargoesGetResponseSupply.d.ts create mode 100644 dist/esm/models/CargoesGetResponseSupply.js create mode 100644 dist/esm/models/CargoesPresentRuleCargoCountPerType.d.ts create mode 100644 dist/esm/models/CargoesPresentRuleCargoCountPerType.js create mode 100644 dist/esm/models/CargoesPresentRuleCargoCountPerTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesPresentRuleCargoCountPerTypeEnum.js create mode 100644 dist/esm/models/CargoesRulesGetResponseSupplyCheck.d.ts create mode 100644 dist/esm/models/CargoesRulesGetResponseSupplyCheck.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportCreateRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportCreateRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportCreateResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportCreateResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseResult.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseResult.js create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.js create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.js create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.js create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.js create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateStatusRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateStatusRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateStatusResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateStatusResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindStatusRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindStatusRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindStatusResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindStatusResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusRequest.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusRequest.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponse.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponse.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResult.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResult.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.js create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteRequest.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteRequest.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponse.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponse.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrors.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrors.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusRequest.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusRequest.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponse.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponse.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrors.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrors.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesGetRequest.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetRequest.js create mode 100644 dist/esm/models/CargoesV2CargoesGetRequestSupplies.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetRequestSupplies.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponse.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponse.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSupplies.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSupplies.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoes.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoes.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesLimits.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesLimits.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.js create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.d.ts create mode 100644 dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.js create mode 100644 dist/esm/models/CarriageCarriageGetRequest.d.ts create mode 100644 dist/esm/models/CarriageCarriageGetRequest.js create mode 100644 dist/esm/models/CarriageCarriageGetResponse.d.ts create mode 100644 dist/esm/models/CarriageCarriageGetResponse.js create mode 100644 dist/esm/models/CarriageCarriageGetResponseCancelAvailability.d.ts create mode 100644 dist/esm/models/CarriageCarriageGetResponseCancelAvailability.js create mode 100644 dist/esm/models/CarriageDeliveryListV2RequestFilter.d.ts create mode 100644 dist/esm/models/CarriageDeliveryListV2RequestFilter.js create mode 100644 dist/esm/models/CarriageDeliveryListV2ResponseDeliveryMethod.d.ts create mode 100644 dist/esm/models/CarriageDeliveryListV2ResponseDeliveryMethod.js create mode 100644 dist/esm/models/CarriagePickupFee.d.ts create mode 100644 dist/esm/models/CarriagePickupFee.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerApproveRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerApproveRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerApproveResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerApproveResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerApproveResponseErrorContainers.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerApproveResponseErrorContainers.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerCancelRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerCancelRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerCancelResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerCancelResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerCancelResponseErrorContainers.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerCancelResponseErrorContainers.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerCreateRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerCreateRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerCreateResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerCreateResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerDocumentGetRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerDocumentGetRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerDocumentGetResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerDocumentGetResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerFillRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerFillRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerFillResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerFillResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerFillResponseErrorPostings.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerFillResponseErrorPostings.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerGetRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerGetRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerGetResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerGetResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerGetResponsePostings.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerGetResponsePostings.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerGetResponsePostingsProducts.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerGetResponsePostingsProducts.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerLabelGetRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerLabelGetRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerLabelGetResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerLabelGetResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerLabelGetResponseContent.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerLabelGetResponseContent.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerListRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerListRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerListRequestFilter.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerListRequestFilter.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerListRequestSortDirEnum.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerListResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerListResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerListResponseContainers.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerListResponseContainers.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerPlaceIntoRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerPlaceIntoRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemoveFromRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemoveFromRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemoveFromResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemoveFromResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemovePostingsRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemovePostingsRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerStatusGetRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerStatusGetRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerStatusGetResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerStatusGetResponse.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerStatusGetResponseContainers.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerStatusGetResponseContainers.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerTaskInfoRequest.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerTaskInfoRequest.js create mode 100644 dist/esm/models/Carriagev1CarriageContainerTaskInfoResponse.d.ts create mode 100644 dist/esm/models/Carriagev1CarriageContainerTaskInfoResponse.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateRequest.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateRequest.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateRequestParams.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateRequestParams.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateResponse.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateResponse.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateResponseParam.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateResponseParam.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateResponseStatusEnum.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateCreateResponseStatusEnum.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateOptionsResponse.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateOptionsResponse.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateOptionsResponseOption.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateOptionsResponseOption.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequest.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequest.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParams.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParams.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsFile.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsFile.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsResponse.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsResponse.js create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsResponseParam.d.ts create mode 100644 dist/esm/models/CertificationV2ProductCertificateParamsResponseParam.js create mode 100644 dist/esm/models/ChatChatSendFileRequest.d.ts create mode 100644 dist/esm/models/ChatChatSendFileRequest.js create mode 100644 dist/esm/models/ChatChatSendFileResponse.d.ts create mode 100644 dist/esm/models/ChatChatSendFileResponse.js create mode 100644 dist/esm/models/ChatChatSendMessageRequest.d.ts create mode 100644 dist/esm/models/ChatChatSendMessageRequest.js create mode 100644 dist/esm/models/ChatChatSendMessageResponse.d.ts create mode 100644 dist/esm/models/ChatChatSendMessageResponse.js create mode 100644 dist/esm/models/ChatChatStartRequest.d.ts create mode 100644 dist/esm/models/ChatChatStartRequest.js create mode 100644 dist/esm/models/ChatChatStartResponse.d.ts create mode 100644 dist/esm/models/ChatChatStartResponse.js create mode 100644 dist/esm/models/ChatHistoryRequestFilter.d.ts create mode 100644 dist/esm/models/ChatHistoryRequestFilter.js create mode 100644 dist/esm/models/ChatInfoChatStatusEnum.d.ts create mode 100644 dist/esm/models/ChatInfoChatStatusEnum.js create mode 100644 dist/esm/models/ChatInfoChatTypeEnum.d.ts create mode 100644 dist/esm/models/ChatInfoChatTypeEnum.js create mode 100644 dist/esm/models/ChatMessageContext.d.ts create mode 100644 dist/esm/models/ChatMessageContext.js create mode 100644 dist/esm/models/ChatMessageModerateImageStatus.d.ts create mode 100644 dist/esm/models/ChatMessageModerateImageStatus.js create mode 100644 dist/esm/models/ChatRead.d.ts create mode 100644 dist/esm/models/ChatRead.js create mode 100644 dist/esm/models/ChatStartResponseResult.d.ts create mode 100644 dist/esm/models/ChatStartResponseResult.js create mode 100644 dist/esm/models/ClientTimeslotDateRange.d.ts create mode 100644 dist/esm/models/ClientTimeslotDateRange.js create mode 100644 dist/esm/models/ClusterWarehouse.d.ts create mode 100644 dist/esm/models/ClusterWarehouse.js create mode 100644 dist/esm/models/CommentListResponseComment.d.ts create mode 100644 dist/esm/models/CommentListResponseComment.js create mode 100644 dist/esm/models/CommonCreateReportResponse.d.ts create mode 100644 dist/esm/models/CommonCreateReportResponse.js create mode 100644 dist/esm/models/CompanyTaxSystemEnum.d.ts create mode 100644 dist/esm/models/CompanyTaxSystemEnum.js create mode 100644 dist/esm/models/ContentCanNotEditSupplyContentReasonEnum.d.ts create mode 100644 dist/esm/models/ContentCanNotEditSupplyContentReasonEnum.js create mode 100644 dist/esm/models/CourierCoordinates.d.ts create mode 100644 dist/esm/models/CourierCoordinates.js create mode 100644 dist/esm/models/CreateCompanyPostingsReportRequestWith.d.ts create mode 100644 dist/esm/models/CreateCompanyPostingsReportRequestWith.js create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseBuyer.d.ts create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseBuyer.js create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.d.ts create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.js create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.d.ts create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.js create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.d.ts create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.js create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.d.ts create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.js create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.d.ts create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.js create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.d.ts create mode 100644 dist/esm/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.js create mode 100644 dist/esm/models/CreateReportResponse.d.ts create mode 100644 dist/esm/models/CreateReportResponse.js create mode 100644 dist/esm/models/CreateReportResponseCode.d.ts create mode 100644 dist/esm/models/CreateReportResponseCode.js create mode 100644 dist/esm/models/CreateReportResponseCodeNoDeadline.d.ts create mode 100644 dist/esm/models/CreateReportResponseCodeNoDeadline.js create mode 100644 dist/esm/models/CreateWarehouseFBSRequestAddressCoordinates.d.ts create mode 100644 dist/esm/models/CreateWarehouseFBSRequestAddressCoordinates.js create mode 100644 dist/esm/models/CreateWarehouseFBSRequestFirstMileTypeEnum.d.ts create mode 100644 dist/esm/models/CreateWarehouseFBSRequestFirstMileTypeEnum.js create mode 100644 dist/esm/models/CreateWarehouseFBSRequestOptions.d.ts create mode 100644 dist/esm/models/CreateWarehouseFBSRequestOptions.js create mode 100644 dist/esm/models/CreateWarehouseFBSRequestWorkingDaysEnum.d.ts create mode 100644 dist/esm/models/CreateWarehouseFBSRequestWorkingDaysEnum.js create mode 100644 dist/esm/models/CreatedAt.d.ts create mode 100644 dist/esm/models/CreatedAt.js create mode 100644 dist/esm/models/DataFulfillment.d.ts create mode 100644 dist/esm/models/DataFulfillment.js create mode 100644 dist/esm/models/DataMacrolocalCluster.d.ts create mode 100644 dist/esm/models/DataMacrolocalCluster.js create mode 100644 dist/esm/models/DeleteProductsRequestProduct.d.ts create mode 100644 dist/esm/models/DeleteProductsRequestProduct.js create mode 100644 dist/esm/models/DeleteProductsResponseDeleteStatus.d.ts create mode 100644 dist/esm/models/DeleteProductsResponseDeleteStatus.js create mode 100644 dist/esm/models/DeliveryCheckoutResponseSplit.d.ts create mode 100644 dist/esm/models/DeliveryCheckoutResponseSplit.js create mode 100644 dist/esm/models/DeliveryCheckoutResponseSplitCommissions.d.ts create mode 100644 dist/esm/models/DeliveryCheckoutResponseSplitCommissions.js create mode 100644 dist/esm/models/DeliveryCheckoutResponseSplitDeliveryMethod.d.ts create mode 100644 dist/esm/models/DeliveryCheckoutResponseSplitDeliveryMethod.js create mode 100644 dist/esm/models/DeliveryCheckoutResponseSplitItem.d.ts create mode 100644 dist/esm/models/DeliveryCheckoutResponseSplitItem.js create mode 100644 dist/esm/models/DeliveryCheckoutResponseUnavailableReasonEnum.d.ts create mode 100644 dist/esm/models/DeliveryCheckoutResponseUnavailableReasonEnum.js create mode 100644 dist/esm/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.d.ts create mode 100644 dist/esm/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.js create mode 100644 dist/esm/models/DeliveryCourier.d.ts create mode 100644 dist/esm/models/DeliveryCourier.js create mode 100644 dist/esm/models/DeliveryDetailsDropOffPointDetails.d.ts create mode 100644 dist/esm/models/DeliveryDetailsDropOffPointDetails.js create mode 100644 dist/esm/models/DeliveryDetailsSupplyType.d.ts create mode 100644 dist/esm/models/DeliveryDetailsSupplyType.js create mode 100644 dist/esm/models/DeliveryMapRequestViewportCoordinatesLeft.d.ts create mode 100644 dist/esm/models/DeliveryMapRequestViewportCoordinatesLeft.js create mode 100644 dist/esm/models/DeliveryMapRequestViewportCoordinatesRight.d.ts create mode 100644 dist/esm/models/DeliveryMapRequestViewportCoordinatesRight.js create mode 100644 dist/esm/models/DeliveryMapResponseCluster.d.ts create mode 100644 dist/esm/models/DeliveryMapResponseCluster.js create mode 100644 dist/esm/models/DeliveryMapResponseClusterCoordinates.d.ts create mode 100644 dist/esm/models/DeliveryMapResponseClusterCoordinates.js create mode 100644 dist/esm/models/DeliveryMapResponseClusterCoordinatesLeft.d.ts create mode 100644 dist/esm/models/DeliveryMapResponseClusterCoordinatesLeft.js create mode 100644 dist/esm/models/DeliveryMapResponseClusterCoordinatesRight.d.ts create mode 100644 dist/esm/models/DeliveryMapResponseClusterCoordinatesRight.js create mode 100644 dist/esm/models/DeliveryMapResponseClusterViewport.d.ts create mode 100644 dist/esm/models/DeliveryMapResponseClusterViewport.js create mode 100644 dist/esm/models/DeliveryMethodAddressDetails.d.ts create mode 100644 dist/esm/models/DeliveryMethodAddressDetails.js create mode 100644 dist/esm/models/DeliveryMethodCarriage.d.ts create mode 100644 dist/esm/models/DeliveryMethodCarriage.js create mode 100644 dist/esm/models/DeliveryMethodDateRange.d.ts create mode 100644 dist/esm/models/DeliveryMethodDateRange.js create mode 100644 dist/esm/models/DeliveryMethodDeliveryPolygon.d.ts create mode 100644 dist/esm/models/DeliveryMethodDeliveryPolygon.js create mode 100644 dist/esm/models/DeliveryMethodDeliveryTypeEnum.d.ts create mode 100644 dist/esm/models/DeliveryMethodDeliveryTypeEnum.js create mode 100644 dist/esm/models/DeliveryMethodError.d.ts create mode 100644 dist/esm/models/DeliveryMethodError.js create mode 100644 dist/esm/models/DeliveryMethodHolidays.d.ts create mode 100644 dist/esm/models/DeliveryMethodHolidays.js create mode 100644 dist/esm/models/DeliveryMethodListRequestFilter.d.ts create mode 100644 dist/esm/models/DeliveryMethodListRequestFilter.js create mode 100644 dist/esm/models/DeliveryMethodListResponseDeliveryMethod.d.ts create mode 100644 dist/esm/models/DeliveryMethodListResponseDeliveryMethod.js create mode 100644 dist/esm/models/DeliveryMethodListV2RequestFilter.d.ts create mode 100644 dist/esm/models/DeliveryMethodListV2RequestFilter.js create mode 100644 dist/esm/models/DeliveryMethodListV2RequestSortDirEnum.d.ts create mode 100644 dist/esm/models/DeliveryMethodListV2RequestSortDirEnum.js create mode 100644 dist/esm/models/DeliveryMethodListV2ResponseDeliveryMethod.d.ts create mode 100644 dist/esm/models/DeliveryMethodListV2ResponseDeliveryMethod.js create mode 100644 dist/esm/models/DeliveryMethodProperties.d.ts create mode 100644 dist/esm/models/DeliveryMethodProperties.js create mode 100644 dist/esm/models/DeliveryMethodTimeslot.d.ts create mode 100644 dist/esm/models/DeliveryMethodTimeslot.js create mode 100644 dist/esm/models/DeliveryMethodWorkingHours.d.ts create mode 100644 dist/esm/models/DeliveryMethodWorkingHours.js create mode 100644 dist/esm/models/DeliveryPickUp.d.ts create mode 100644 dist/esm/models/DeliveryPickUp.js create mode 100644 dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethod.d.ts create mode 100644 dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethod.js create mode 100644 dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.d.ts create mode 100644 dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.js create mode 100644 dist/esm/models/DeliveryPointListResponsePointCoordinates.d.ts create mode 100644 dist/esm/models/DeliveryPointListResponsePointCoordinates.js create mode 100644 dist/esm/models/DeliveryTypeCourier.d.ts create mode 100644 dist/esm/models/DeliveryTypeCourier.js create mode 100644 dist/esm/models/DeliveryTypeCourierCoordinates.d.ts create mode 100644 dist/esm/models/DeliveryTypeCourierCoordinates.js create mode 100644 dist/esm/models/DeliveryTypeEnum.d.ts create mode 100644 dist/esm/models/DeliveryTypeEnum.js create mode 100644 dist/esm/models/DeliveryTypePickUp.d.ts create mode 100644 dist/esm/models/DeliveryTypePickUp.js create mode 100644 dist/esm/models/DetailsDeliveryDetails.d.ts create mode 100644 dist/esm/models/DetailsDeliveryDetails.js create mode 100644 dist/esm/models/DetailsOthers.d.ts create mode 100644 dist/esm/models/DetailsOthers.js create mode 100644 dist/esm/models/DetailsPayment.d.ts create mode 100644 dist/esm/models/DetailsPayment.js create mode 100644 dist/esm/models/DetailsReturnDetails.d.ts create mode 100644 dist/esm/models/DetailsReturnDetails.js create mode 100644 dist/esm/models/DetailsReturns.d.ts create mode 100644 dist/esm/models/DetailsReturns.js create mode 100644 dist/esm/models/DetailsRfbsDetails.d.ts create mode 100644 dist/esm/models/DetailsRfbsDetails.js create mode 100644 dist/esm/models/DetailsService.d.ts create mode 100644 dist/esm/models/DetailsService.js create mode 100644 dist/esm/models/DetailsServices.d.ts create mode 100644 dist/esm/models/DetailsServices.js create mode 100644 dist/esm/models/DirEnum.d.ts create mode 100644 dist/esm/models/DirEnum.js create mode 100644 dist/esm/models/DirectDetailsBySellerDetails.d.ts create mode 100644 dist/esm/models/DirectDetailsBySellerDetails.js create mode 100644 dist/esm/models/DirectDetailsByTplDetails.d.ts create mode 100644 dist/esm/models/DirectDetailsByTplDetails.js create mode 100644 dist/esm/models/DirectDetailsTimeslotDetails.d.ts create mode 100644 dist/esm/models/DirectDetailsTimeslotDetails.js create mode 100644 dist/esm/models/DraftClusterListResponseLogisticCluster.d.ts create mode 100644 dist/esm/models/DraftClusterListResponseLogisticCluster.js create mode 100644 dist/esm/models/DraftCreateCommonResponseError.d.ts create mode 100644 dist/esm/models/DraftCreateCommonResponseError.js create mode 100644 dist/esm/models/DraftCreateCommonResponseErrorItemsValidation.d.ts create mode 100644 dist/esm/models/DraftCreateCommonResponseErrorItemsValidation.js create mode 100644 dist/esm/models/DraftCreateInfoResponseCluster.d.ts create mode 100644 dist/esm/models/DraftCreateInfoResponseCluster.js create mode 100644 dist/esm/models/DraftCreateInfoResponseError.d.ts create mode 100644 dist/esm/models/DraftCreateInfoResponseError.js create mode 100644 dist/esm/models/DraftCreateInfoResponseErrorErrorReasonEnum.d.ts create mode 100644 dist/esm/models/DraftCreateInfoResponseErrorErrorReasonEnum.js create mode 100644 dist/esm/models/DraftGetWarehouseFboListResponseCoordinate.d.ts create mode 100644 dist/esm/models/DraftGetWarehouseFboListResponseCoordinate.js create mode 100644 dist/esm/models/DraftGetWarehouseFboListResponseSearch.d.ts create mode 100644 dist/esm/models/DraftGetWarehouseFboListResponseSearch.js create mode 100644 dist/esm/models/DraftGetWarehouseFboListResponseWarehouseType.d.ts create mode 100644 dist/esm/models/DraftGetWarehouseFboListResponseWarehouseType.js create mode 100644 dist/esm/models/DraftTimeslotInfoResponseResult.d.ts create mode 100644 dist/esm/models/DraftTimeslotInfoResponseResult.js create mode 100644 dist/esm/models/DropOffPointCoordinates.d.ts create mode 100644 dist/esm/models/DropOffPointCoordinates.js create mode 100644 dist/esm/models/DropOffWarehouseTimeslotsDay.d.ts create mode 100644 dist/esm/models/DropOffWarehouseTimeslotsDay.js create mode 100644 dist/esm/models/DropOffWarehouseTimeslotsDayTimeslot.d.ts create mode 100644 dist/esm/models/DropOffWarehouseTimeslotsDayTimeslot.js create mode 100644 dist/esm/models/ErrorData.d.ts create mode 100644 dist/esm/models/ErrorData.js create mode 100644 dist/esm/models/ErrorErrorLevel.d.ts create mode 100644 dist/esm/models/ErrorErrorLevel.js create mode 100644 dist/esm/models/ErrorErrorMessageEnum.d.ts create mode 100644 dist/esm/models/ErrorErrorMessageEnum.js create mode 100644 dist/esm/models/ErrorErrorReasonEnum.d.ts create mode 100644 dist/esm/models/ErrorErrorReasonEnum.js create mode 100644 dist/esm/models/ErrorHumanTexts.d.ts create mode 100644 dist/esm/models/ErrorHumanTexts.js create mode 100644 dist/esm/models/ErrorItemsValidation.d.ts create mode 100644 dist/esm/models/ErrorItemsValidation.js create mode 100644 dist/esm/models/ExemplarMark.d.ts create mode 100644 dist/esm/models/ExemplarMark.js create mode 100644 dist/esm/models/ExemplarsMarks.d.ts create mode 100644 dist/esm/models/ExemplarsMarks.js create mode 100644 dist/esm/models/FboPostingFboPostingAnalyticsData.d.ts create mode 100644 dist/esm/models/FboPostingFboPostingAnalyticsData.js create mode 100644 dist/esm/models/FbpCheckActStateResponseErrorReason.d.ts create mode 100644 dist/esm/models/FbpCheckActStateResponseErrorReason.js create mode 100644 dist/esm/models/FbpCheckConsignmentNoteStateResponseStateType.d.ts create mode 100644 dist/esm/models/FbpCheckConsignmentNoteStateResponseStateType.js create mode 100644 dist/esm/models/FbpCreateActResponseCreateActErrorReason.d.ts create mode 100644 dist/esm/models/FbpCreateActResponseCreateActErrorReason.js create mode 100644 dist/esm/models/FbpDraftDropOffPointListResponseDropOffPoint.d.ts create mode 100644 dist/esm/models/FbpDraftDropOffPointListResponseDropOffPoint.js create mode 100644 dist/esm/models/FbpDraftDropOffProvinceListResponseProvince.d.ts create mode 100644 dist/esm/models/FbpDraftDropOffProvinceListResponseProvince.js create mode 100644 dist/esm/models/FbpDraftGetResponseDeclineReason.d.ts create mode 100644 dist/esm/models/FbpDraftGetResponseDeclineReason.js create mode 100644 dist/esm/models/FbpGetLabelResponseLabelCreationStateTypeEnum.d.ts create mode 100644 dist/esm/models/FbpGetLabelResponseLabelCreationStateTypeEnum.js create mode 100644 dist/esm/models/FbpWarehouseListResponseAddressDetailing.d.ts create mode 100644 dist/esm/models/FbpWarehouseListResponseAddressDetailing.js create mode 100644 dist/esm/models/FbpWarehouseListResponseWarehouse.d.ts create mode 100644 dist/esm/models/FbpWarehouseListResponseWarehouse.js create mode 100644 dist/esm/models/Fbpv1DeliveryDetails.d.ts create mode 100644 dist/esm/models/Fbpv1DeliveryDetails.js create mode 100644 dist/esm/models/Fbpv1Timeslot.d.ts create mode 100644 dist/esm/models/Fbpv1Timeslot.js create mode 100644 dist/esm/models/FbsPostingBarcodes.d.ts create mode 100644 dist/esm/models/FbsPostingBarcodes.js create mode 100644 dist/esm/models/FbsPostingDetailCourier.d.ts create mode 100644 dist/esm/models/FbsPostingDetailCourier.js create mode 100644 dist/esm/models/FbsPostingDetailPrrOption.d.ts create mode 100644 dist/esm/models/FbsPostingDetailPrrOption.js create mode 100644 dist/esm/models/FbsPostingMoveStatusResponseMoveStatus.d.ts create mode 100644 dist/esm/models/FbsPostingMoveStatusResponseMoveStatus.js create mode 100644 dist/esm/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.d.ts create mode 100644 dist/esm/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.js create mode 100644 dist/esm/models/FbsPostingProductExemplarSetV6RequestExemplars.d.ts create mode 100644 dist/esm/models/FbsPostingProductExemplarSetV6RequestExemplars.js create mode 100644 dist/esm/models/FbsPostingProductExemplarSetV6RequestProducts.d.ts create mode 100644 dist/esm/models/FbsPostingProductExemplarSetV6RequestProducts.js create mode 100644 dist/esm/models/FbsPostingShipV4RequestPackage.d.ts create mode 100644 dist/esm/models/FbsPostingShipV4RequestPackage.js create mode 100644 dist/esm/models/FbsPostingShipV4RequestPackageProduct.d.ts create mode 100644 dist/esm/models/FbsPostingShipV4RequestPackageProduct.js create mode 100644 dist/esm/models/FbsPostingShipV4RequestWith.d.ts create mode 100644 dist/esm/models/FbsPostingShipV4RequestWith.js create mode 100644 dist/esm/models/FbsPostingShipV4ResponseShipAdditionalData.d.ts create mode 100644 dist/esm/models/FbsPostingShipV4ResponseShipAdditionalData.js create mode 100644 dist/esm/models/FbsPostingTrackingNumberSetRequestTrackingNumber.d.ts create mode 100644 dist/esm/models/FbsPostingTrackingNumberSetRequestTrackingNumber.js create mode 100644 dist/esm/models/Fbsv4FbsPostingShipV4Request.d.ts create mode 100644 dist/esm/models/Fbsv4FbsPostingShipV4Request.js create mode 100644 dist/esm/models/Fbsv4FbsPostingShipV4Response.d.ts create mode 100644 dist/esm/models/Fbsv4FbsPostingShipV4Response.js create mode 100644 dist/esm/models/Fbsv4PostingProductDetailWithoutDimensions.d.ts create mode 100644 dist/esm/models/Fbsv4PostingProductDetailWithoutDimensions.js create mode 100644 dist/esm/models/FilterPeriod.d.ts create mode 100644 dist/esm/models/FilterPeriod.js create mode 100644 dist/esm/models/FilterStatusEnum.d.ts create mode 100644 dist/esm/models/FilterStatusEnum.js create mode 100644 dist/esm/models/FilterTimeslotFromRange.d.ts create mode 100644 dist/esm/models/FilterTimeslotFromRange.js create mode 100644 dist/esm/models/FilterWithQuant.d.ts create mode 100644 dist/esm/models/FilterWithQuant.js create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseCashFlow.d.ts create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseCashFlow.js create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseDeliveryService.d.ts create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseDeliveryService.js create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseDetails.d.ts create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseDetails.js create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseDetailsOthers.d.ts create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseDetailsOthers.js create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseReturnService.d.ts create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseReturnService.js create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseService.d.ts create mode 100644 dist/esm/models/FinanceCashFlowStatementListResponseService.js create mode 100644 dist/esm/models/FinanceTransactionListV3RequestFilter.d.ts create mode 100644 dist/esm/models/FinanceTransactionListV3RequestFilter.js create mode 100644 dist/esm/models/FinanceTransactionListV3ResponseOperation.d.ts create mode 100644 dist/esm/models/FinanceTransactionListV3ResponseOperation.js create mode 100644 dist/esm/models/FinanceTransactionTotalsV3RequestDate.d.ts create mode 100644 dist/esm/models/FinanceTransactionTotalsV3RequestDate.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayRequest.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayRequest.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponse.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponse.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualPostingsRequest.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualPostingsRequest.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponse.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponse.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualTypesResponse.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualTypesResponse.js create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.d.ts create mode 100644 dist/esm/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.js create mode 100644 dist/esm/models/Financev3FinanceTransactionListV3Request.d.ts create mode 100644 dist/esm/models/Financev3FinanceTransactionListV3Request.js create mode 100644 dist/esm/models/Financev3FinanceTransactionListV3Response.d.ts create mode 100644 dist/esm/models/Financev3FinanceTransactionListV3Response.js create mode 100644 dist/esm/models/Financev3FinanceTransactionListV3ResponseResult.d.ts create mode 100644 dist/esm/models/Financev3FinanceTransactionListV3ResponseResult.js create mode 100644 dist/esm/models/Financev3FinanceTransactionTotalsV3Request.d.ts create mode 100644 dist/esm/models/Financev3FinanceTransactionTotalsV3Request.js create mode 100644 dist/esm/models/Financev3FinanceTransactionTotalsV3Response.d.ts create mode 100644 dist/esm/models/Financev3FinanceTransactionTotalsV3Response.js create mode 100644 dist/esm/models/Financev3FinanceTransactionTotalsV3ResponseResult.d.ts create mode 100644 dist/esm/models/Financev3FinanceTransactionTotalsV3ResponseResult.js create mode 100644 dist/esm/models/Financev3Period.d.ts create mode 100644 dist/esm/models/Financev3Period.js create mode 100644 dist/esm/models/FirstMileTypeEnum.d.ts create mode 100644 dist/esm/models/FirstMileTypeEnum.js create mode 100644 dist/esm/models/GetCarriageAvailableListResponseResult.d.ts create mode 100644 dist/esm/models/GetCarriageAvailableListResponseResult.js create mode 100644 dist/esm/models/GetCompetitorsResponseCompetitorInfo.d.ts create mode 100644 dist/esm/models/GetCompetitorsResponseCompetitorInfo.js create mode 100644 dist/esm/models/GetConditionalCancellationListV2RequestFilters.d.ts create mode 100644 dist/esm/models/GetConditionalCancellationListV2RequestFilters.js create mode 100644 dist/esm/models/GetConditionalCancellationListV2RequestWith.d.ts create mode 100644 dist/esm/models/GetConditionalCancellationListV2RequestWith.js create mode 100644 dist/esm/models/GetConditionalCancellationListV2ResponseCancellationReason.d.ts create mode 100644 dist/esm/models/GetConditionalCancellationListV2ResponseCancellationReason.js create mode 100644 dist/esm/models/GetConditionalCancellationListV2ResponseResult.d.ts create mode 100644 dist/esm/models/GetConditionalCancellationListV2ResponseResult.js create mode 100644 dist/esm/models/GetConditionalCancellationListV2ResponseState.d.ts create mode 100644 dist/esm/models/GetConditionalCancellationListV2ResponseState.js create mode 100644 dist/esm/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.d.ts create mode 100644 dist/esm/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.js create mode 100644 dist/esm/models/GetDiscountTaskListV2ResponseTask.d.ts create mode 100644 dist/esm/models/GetDiscountTaskListV2ResponseTask.js create mode 100644 dist/esm/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.d.ts create mode 100644 dist/esm/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.js create mode 100644 dist/esm/models/GetEtgbRequestDate.d.ts create mode 100644 dist/esm/models/GetEtgbRequestDate.js create mode 100644 dist/esm/models/GetEtgbResponseResult.d.ts create mode 100644 dist/esm/models/GetEtgbResponseResult.js create mode 100644 dist/esm/models/GetEtgbResponseResultEtgb.d.ts create mode 100644 dist/esm/models/GetEtgbResponseResultEtgb.js create mode 100644 dist/esm/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.d.ts create mode 100644 dist/esm/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.js create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseCashflows.d.ts create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseCashflows.js create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseReturns.d.ts create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseReturns.js create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseReturnsDetails.d.ts create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseReturnsDetails.js create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseSales.d.ts create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseSales.js create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseSalesDetails.d.ts create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseSalesDetails.js create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseService.d.ts create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseService.js create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseTotal.d.ts create mode 100644 dist/esm/models/GetFinanceBalanceV1ResponseTotal.js create mode 100644 dist/esm/models/GetFinanceProductsBuyoutResponseProduct.d.ts create mode 100644 dist/esm/models/GetFinanceProductsBuyoutResponseProduct.js create mode 100644 dist/esm/models/GetImportProductsInfoResponseResultItem.d.ts create mode 100644 dist/esm/models/GetImportProductsInfoResponseResultItem.js create mode 100644 dist/esm/models/GetProductAttributesResponseImage.d.ts create mode 100644 dist/esm/models/GetProductAttributesResponseImage.js create mode 100644 dist/esm/models/GetProductAttributesV3ResponseDictionaryValue.d.ts create mode 100644 dist/esm/models/GetProductAttributesV3ResponseDictionaryValue.js create mode 100644 dist/esm/models/GetProductAttributesV4ResponseAttribute.d.ts create mode 100644 dist/esm/models/GetProductAttributesV4ResponseAttribute.js create mode 100644 dist/esm/models/GetProductInfoListResponseAvailability.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseAvailability.js create mode 100644 dist/esm/models/GetProductInfoListResponseCommission.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseCommission.js create mode 100644 dist/esm/models/GetProductInfoListResponseError.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseError.js create mode 100644 dist/esm/models/GetProductInfoListResponseModelInfo.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseModelInfo.js create mode 100644 dist/esm/models/GetProductInfoListResponsePriceIndexes.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponsePriceIndexes.js create mode 100644 dist/esm/models/GetProductInfoListResponseSource.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseSource.js create mode 100644 dist/esm/models/GetProductInfoListResponseStatuses.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseStatuses.js create mode 100644 dist/esm/models/GetProductInfoListResponseStocks.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseStocks.js create mode 100644 dist/esm/models/GetProductInfoListResponseStocksStock.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseStocksStock.js create mode 100644 dist/esm/models/GetProductInfoListResponseVisibilityDetails.d.ts create mode 100644 dist/esm/models/GetProductInfoListResponseVisibilityDetails.js create mode 100644 dist/esm/models/GetProductInfoPricesResponseItemPriceIndexes.d.ts create mode 100644 dist/esm/models/GetProductInfoPricesResponseItemPriceIndexes.js create mode 100644 dist/esm/models/GetProductInfoStocksResponseStock.d.ts create mode 100644 dist/esm/models/GetProductInfoStocksResponseStock.js create mode 100644 dist/esm/models/GetProductPlacementZoneInfoResponseProductPlacement.d.ts create mode 100644 dist/esm/models/GetProductPlacementZoneInfoResponseProductPlacement.js create mode 100644 dist/esm/models/GetProductRatingBySkuResponseProductRating.d.ts create mode 100644 dist/esm/models/GetProductRatingBySkuResponseProductRating.js create mode 100644 dist/esm/models/GetProductRatingBySkuResponseRatingCondition.d.ts create mode 100644 dist/esm/models/GetProductRatingBySkuResponseRatingCondition.js create mode 100644 dist/esm/models/GetProductRatingBySkuResponseRatingGroup.d.ts create mode 100644 dist/esm/models/GetProductRatingBySkuResponseRatingGroup.js create mode 100644 dist/esm/models/GetProductRatingBySkuResponseRatingImproveAttribute.d.ts create mode 100644 dist/esm/models/GetProductRatingBySkuResponseRatingImproveAttribute.js create mode 100644 dist/esm/models/GetRealizationReportByDayResponse.d.ts create mode 100644 dist/esm/models/GetRealizationReportByDayResponse.js create mode 100644 dist/esm/models/GetRealizationReportByDayResponseRow.d.ts create mode 100644 dist/esm/models/GetRealizationReportByDayResponseRow.js create mode 100644 dist/esm/models/GetRealizationReportResponseV2Header.d.ts create mode 100644 dist/esm/models/GetRealizationReportResponseV2Header.js create mode 100644 dist/esm/models/GetRealizationReportResponseV2Result.d.ts create mode 100644 dist/esm/models/GetRealizationReportResponseV2Result.js create mode 100644 dist/esm/models/GetRealizationReportResponseV2Row.d.ts create mode 100644 dist/esm/models/GetRealizationReportResponseV2Row.js create mode 100644 dist/esm/models/GetReturnsListRequestFilter.d.ts create mode 100644 dist/esm/models/GetReturnsListRequestFilter.js create mode 100644 dist/esm/models/GetReturnsListResponseAdditionalInfo.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseAdditionalInfo.js create mode 100644 dist/esm/models/GetReturnsListResponseCompensation.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseCompensation.js create mode 100644 dist/esm/models/GetReturnsListResponseCompensationStatus.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseCompensationStatus.js create mode 100644 dist/esm/models/GetReturnsListResponseExemplar.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseExemplar.js create mode 100644 dist/esm/models/GetReturnsListResponseLogistic.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseLogistic.js create mode 100644 dist/esm/models/GetReturnsListResponsePlaceNow.d.ts create mode 100644 dist/esm/models/GetReturnsListResponsePlaceNow.js create mode 100644 dist/esm/models/GetReturnsListResponsePlaceTarget.d.ts create mode 100644 dist/esm/models/GetReturnsListResponsePlaceTarget.js create mode 100644 dist/esm/models/GetReturnsListResponseProduct.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseProduct.js create mode 100644 dist/esm/models/GetReturnsListResponseReturnsItem.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseReturnsItem.js create mode 100644 dist/esm/models/GetReturnsListResponseStorage.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseStorage.js create mode 100644 dist/esm/models/GetReturnsListResponseVisual.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseVisual.js create mode 100644 dist/esm/models/GetReturnsListResponseVisualStatus.d.ts create mode 100644 dist/esm/models/GetReturnsListResponseVisualStatus.js create mode 100644 dist/esm/models/GetSellerActionsV1ResponseAction.d.ts create mode 100644 dist/esm/models/GetSellerActionsV1ResponseAction.js create mode 100644 dist/esm/models/GetStrategyIDsByItemIDsResponseProductInfo.d.ts create mode 100644 dist/esm/models/GetStrategyIDsByItemIDsResponseProductInfo.js create mode 100644 dist/esm/models/GetStrategyListResponseStrategy.d.ts create mode 100644 dist/esm/models/GetStrategyListResponseStrategy.js create mode 100644 dist/esm/models/GetSupplyOrderBundleRequestItemTagsCalculation.d.ts create mode 100644 dist/esm/models/GetSupplyOrderBundleRequestItemTagsCalculation.js create mode 100644 dist/esm/models/GetUploadQuotaResponseDailyCreate.d.ts create mode 100644 dist/esm/models/GetUploadQuotaResponseDailyCreate.js create mode 100644 dist/esm/models/GetUploadQuotaResponseDailyUpdate.d.ts create mode 100644 dist/esm/models/GetUploadQuotaResponseDailyUpdate.js create mode 100644 dist/esm/models/GetUploadQuotaResponseTotal.d.ts create mode 100644 dist/esm/models/GetUploadQuotaResponseTotal.js create mode 100644 dist/esm/models/GetWarehouseFBSOperationStatusResponseError.d.ts create mode 100644 dist/esm/models/GetWarehouseFBSOperationStatusResponseError.js create mode 100644 dist/esm/models/GetWarehouseFBSOperationStatusResponseResult.d.ts create mode 100644 dist/esm/models/GetWarehouseFBSOperationStatusResponseResult.js create mode 100644 dist/esm/models/GetWarehouseFBSOperationStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/GetWarehouseFBSOperationStatusResponseStatusEnum.js create mode 100644 dist/esm/models/GetWarehouseFBSOperationStatusResponseTypeEnum.d.ts create mode 100644 dist/esm/models/GetWarehouseFBSOperationStatusResponseTypeEnum.js create mode 100644 dist/esm/models/GiveoutInfoResponseArticleDetails.d.ts create mode 100644 dist/esm/models/GiveoutInfoResponseArticleDetails.js create mode 100644 dist/esm/models/GiveoutListResponseGiveoutDetails.d.ts create mode 100644 dist/esm/models/GiveoutListResponseGiveoutDetails.js create mode 100644 dist/esm/models/GoogleTypeDate.d.ts create mode 100644 dist/esm/models/GoogleTypeDate.js create mode 100644 dist/esm/models/GooglerpcStatus.d.ts create mode 100644 dist/esm/models/GooglerpcStatus.js create mode 100644 dist/esm/models/HumanTextsParam.d.ts create mode 100644 dist/esm/models/HumanTextsParam.js create mode 100644 dist/esm/models/ImportProductRequestPromotion.d.ts create mode 100644 dist/esm/models/ImportProductRequestPromotion.js create mode 100644 dist/esm/models/ImportProductsRequestPdfList.d.ts create mode 100644 dist/esm/models/ImportProductsRequestPdfList.js create mode 100644 dist/esm/models/InvoiceGetV2ResponseResult.d.ts create mode 100644 dist/esm/models/InvoiceGetV2ResponseResult.js create mode 100644 dist/esm/models/ItemBundleSummary.d.ts create mode 100644 dist/esm/models/ItemBundleSummary.js create mode 100644 dist/esm/models/ItemCommissionsv5.d.ts create mode 100644 dist/esm/models/ItemCommissionsv5.js create mode 100644 dist/esm/models/ItemMarketing.d.ts create mode 100644 dist/esm/models/ItemMarketing.js create mode 100644 dist/esm/models/ItemPricev5.d.ts create mode 100644 dist/esm/models/ItemPricev5.js create mode 100644 dist/esm/models/ItemSize.d.ts create mode 100644 dist/esm/models/ItemSize.js create mode 100644 dist/esm/models/ItemStatusError.d.ts create mode 100644 dist/esm/models/ItemStatusError.js create mode 100644 dist/esm/models/ItemValidationErrorType.d.ts create mode 100644 dist/esm/models/ItemValidationErrorType.js create mode 100644 dist/esm/models/ItemsValidationRejectedItems.d.ts create mode 100644 dist/esm/models/ItemsValidationRejectedItems.js create mode 100644 dist/esm/models/LanguageLanguage.d.ts create mode 100644 dist/esm/models/LanguageLanguage.js create mode 100644 dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.d.ts create mode 100644 dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.js create mode 100644 dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts create mode 100644 dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.js create mode 100644 dist/esm/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.d.ts create mode 100644 dist/esm/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.js create mode 100644 dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.d.ts create mode 100644 dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.js create mode 100644 dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts create mode 100644 dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.js create mode 100644 dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.d.ts create mode 100644 dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.js create mode 100644 dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.d.ts create mode 100644 dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.js create mode 100644 dist/esm/models/ListFBSRatingIndexPostingsV1RequestFilter.d.ts create mode 100644 dist/esm/models/ListFBSRatingIndexPostingsV1RequestFilter.js create mode 100644 dist/esm/models/ListFBSRatingIndexPostingsV1ResponseError.d.ts create mode 100644 dist/esm/models/ListFBSRatingIndexPostingsV1ResponseError.js create mode 100644 dist/esm/models/ListPostingCodesRequestFilter.d.ts create mode 100644 dist/esm/models/ListPostingCodesRequestFilter.js create mode 100644 dist/esm/models/ListPostingCodesRequestWithParams.d.ts create mode 100644 dist/esm/models/ListPostingCodesRequestWithParams.js create mode 100644 dist/esm/models/ListPostingCodesResponsePosting.d.ts create mode 100644 dist/esm/models/ListPostingCodesResponsePosting.js create mode 100644 dist/esm/models/LogisticTimeslotDateRange.d.ts create mode 100644 dist/esm/models/LogisticTimeslotDateRange.js create mode 100644 dist/esm/models/MacrolocalClusterCountry.d.ts create mode 100644 dist/esm/models/MacrolocalClusterCountry.js create mode 100644 dist/esm/models/MarketingAction.d.ts create mode 100644 dist/esm/models/MarketingAction.js create mode 100644 dist/esm/models/MaxPeriodsPeriod.d.ts create mode 100644 dist/esm/models/MaxPeriodsPeriod.js create mode 100644 dist/esm/models/MinPeriodsPeriod.d.ts create mode 100644 dist/esm/models/MinPeriodsPeriod.js create mode 100644 dist/esm/models/MinUtilizationMoney.d.ts create mode 100644 dist/esm/models/MinUtilizationMoney.js create mode 100644 dist/esm/models/MoneyMoney.d.ts create mode 100644 dist/esm/models/MoneyMoney.js create mode 100644 dist/esm/models/MoneyMoneyAccrued.d.ts create mode 100644 dist/esm/models/MoneyMoneyAccrued.js create mode 100644 dist/esm/models/MoneyMoneyBonus.d.ts create mode 100644 dist/esm/models/MoneyMoneyBonus.js create mode 100644 dist/esm/models/MoneyMoneyCoinvestment.d.ts create mode 100644 dist/esm/models/MoneyMoneyCoinvestment.js create mode 100644 dist/esm/models/MoneyMoneyComissions.d.ts create mode 100644 dist/esm/models/MoneyMoneyComissions.js create mode 100644 dist/esm/models/MoneyMoneyCommission.d.ts create mode 100644 dist/esm/models/MoneyMoneyCommission.js create mode 100644 dist/esm/models/MoneyMoneyCurrentTariffCharge.d.ts create mode 100644 dist/esm/models/MoneyMoneyCurrentTariffCharge.js create mode 100644 dist/esm/models/MoneyMoneyCurrentTariffMinCharge.d.ts create mode 100644 dist/esm/models/MoneyMoneyCurrentTariffMinCharge.js create mode 100644 dist/esm/models/MoneyMoneyCustomerPrice.d.ts create mode 100644 dist/esm/models/MoneyMoneyCustomerPrice.js create mode 100644 dist/esm/models/MoneyMoneyFBPget.d.ts create mode 100644 dist/esm/models/MoneyMoneyFBPget.js create mode 100644 dist/esm/models/MoneyMoneyNextTariffCharge.d.ts create mode 100644 dist/esm/models/MoneyMoneyNextTariffCharge.js create mode 100644 dist/esm/models/MoneyMoneyNextTariffMinCharge.d.ts create mode 100644 dist/esm/models/MoneyMoneyNextTariffMinCharge.js create mode 100644 dist/esm/models/MoneyMoneyPriceWithoutVat.d.ts create mode 100644 dist/esm/models/MoneyMoneyPriceWithoutVat.js create mode 100644 dist/esm/models/MoneyMoneySaleAmount.d.ts create mode 100644 dist/esm/models/MoneyMoneySaleAmount.js create mode 100644 dist/esm/models/MoneyMoneySaleCommission.d.ts create mode 100644 dist/esm/models/MoneyMoneySaleCommission.js create mode 100644 dist/esm/models/MoneyMoneySalePrice.d.ts create mode 100644 dist/esm/models/MoneyMoneySalePrice.js create mode 100644 dist/esm/models/MoneyMoneySelf.d.ts create mode 100644 dist/esm/models/MoneyMoneySelf.js create mode 100644 dist/esm/models/MoneyMoneySellerPrice.d.ts create mode 100644 dist/esm/models/MoneyMoneySellerPrice.js create mode 100644 dist/esm/models/MoneyMoneySplitCommission.d.ts create mode 100644 dist/esm/models/MoneyMoneySplitCommission.js create mode 100644 dist/esm/models/MoneyMoneySupplyActAmount.d.ts create mode 100644 dist/esm/models/MoneyMoneySupplyActAmount.js create mode 100644 dist/esm/models/MoneyMoneySupplyActAmountVat.d.ts create mode 100644 dist/esm/models/MoneyMoneySupplyActAmountVat.js create mode 100644 dist/esm/models/MoneyMoneySupplyActAmountWithoutVat.d.ts create mode 100644 dist/esm/models/MoneyMoneySupplyActAmountWithoutVat.js create mode 100644 dist/esm/models/MoneyMoneyTotalAccrued.d.ts create mode 100644 dist/esm/models/MoneyMoneyTotalAccrued.js create mode 100644 dist/esm/models/MoneyMoneyTotalAmount.d.ts create mode 100644 dist/esm/models/MoneyMoneyTotalAmount.js create mode 100644 dist/esm/models/MoneyPostingMoney.d.ts create mode 100644 dist/esm/models/MoneyPostingMoney.js create mode 100644 dist/esm/models/NotificationV1CheckNotificationRequest.d.ts create mode 100644 dist/esm/models/NotificationV1CheckNotificationRequest.js create mode 100644 dist/esm/models/NotificationV1CheckNotificationResponse.d.ts create mode 100644 dist/esm/models/NotificationV1CheckNotificationResponse.js create mode 100644 dist/esm/models/NotificationV1CheckNotificationResponseError.d.ts create mode 100644 dist/esm/models/NotificationV1CheckNotificationResponseError.js create mode 100644 dist/esm/models/NotificationV1CheckNotificationResponseErrorTypeEnum.d.ts create mode 100644 dist/esm/models/NotificationV1CheckNotificationResponseErrorTypeEnum.js create mode 100644 dist/esm/models/NotificationV1DeleteNotificationRequest.d.ts create mode 100644 dist/esm/models/NotificationV1DeleteNotificationRequest.js create mode 100644 dist/esm/models/NotificationV1EnableNotificationRequest.d.ts create mode 100644 dist/esm/models/NotificationV1EnableNotificationRequest.js create mode 100644 dist/esm/models/NotificationV1GetNotificationPushTypeListResponse.d.ts create mode 100644 dist/esm/models/NotificationV1GetNotificationPushTypeListResponse.js create mode 100644 dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.d.ts create mode 100644 dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.js create mode 100644 dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.d.ts create mode 100644 dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.js create mode 100644 dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.d.ts create mode 100644 dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.js create mode 100644 dist/esm/models/NotificationV1NotificationListResponse.d.ts create mode 100644 dist/esm/models/NotificationV1NotificationListResponse.js create mode 100644 dist/esm/models/NotificationV1NotificationListResponseNotification.d.ts create mode 100644 dist/esm/models/NotificationV1NotificationListResponseNotification.js create mode 100644 dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationType.d.ts create mode 100644 dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationType.js create mode 100644 dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.d.ts create mode 100644 dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.js create mode 100644 dist/esm/models/NotificationV1SetNotificationRequest.d.ts create mode 100644 dist/esm/models/NotificationV1SetNotificationRequest.js create mode 100644 dist/esm/models/NotificationV1SetNotificationRequestTypeEnum.d.ts create mode 100644 dist/esm/models/NotificationV1SetNotificationRequestTypeEnum.js create mode 100644 dist/esm/models/NotificationV1UpdateNotificationRequest.d.ts create mode 100644 dist/esm/models/NotificationV1UpdateNotificationRequest.js create mode 100644 dist/esm/models/NotificationV1UpdateNotificationRequestTypeEnum.d.ts create mode 100644 dist/esm/models/NotificationV1UpdateNotificationRequestTypeEnum.js create mode 100644 dist/esm/models/OperationItem.d.ts create mode 100644 dist/esm/models/OperationItem.js create mode 100644 dist/esm/models/OperationPosting.d.ts create mode 100644 dist/esm/models/OperationPosting.js create mode 100644 dist/esm/models/OperationService.d.ts create mode 100644 dist/esm/models/OperationService.js create mode 100644 dist/esm/models/OrderCancelCheckResponsePosting.d.ts create mode 100644 dist/esm/models/OrderCancelCheckResponsePosting.js create mode 100644 dist/esm/models/OrderCancelCheckResponsePostingGroup.d.ts create mode 100644 dist/esm/models/OrderCancelCheckResponsePostingGroup.js create mode 100644 dist/esm/models/OrderCreateRequestBuyer.d.ts create mode 100644 dist/esm/models/OrderCreateRequestBuyer.js create mode 100644 dist/esm/models/OrderCreateRequestDelivery.d.ts create mode 100644 dist/esm/models/OrderCreateRequestDelivery.js create mode 100644 dist/esm/models/OrderCreateRequestDeliveryPrice.d.ts create mode 100644 dist/esm/models/OrderCreateRequestDeliveryPrice.js create mode 100644 dist/esm/models/OrderCreateRequestPrice.d.ts create mode 100644 dist/esm/models/OrderCreateRequestPrice.js create mode 100644 dist/esm/models/OrderCreateRequestRecipient.d.ts create mode 100644 dist/esm/models/OrderCreateRequestRecipient.js create mode 100644 dist/esm/models/OrderCreateRequestSplit.d.ts create mode 100644 dist/esm/models/OrderCreateRequestSplit.js create mode 100644 dist/esm/models/OrderCreateRequestV2DeliverySchemaEnum.d.ts create mode 100644 dist/esm/models/OrderCreateRequestV2DeliverySchemaEnum.js create mode 100644 dist/esm/models/OrderDropOffWarehouse.d.ts create mode 100644 dist/esm/models/OrderDropOffWarehouse.js create mode 100644 dist/esm/models/OrderOrderStateEnum.d.ts create mode 100644 dist/esm/models/OrderOrderStateEnum.js create mode 100644 dist/esm/models/OrderOrderTags.d.ts create mode 100644 dist/esm/models/OrderOrderTags.js create mode 100644 dist/esm/models/OrderSupply.d.ts create mode 100644 dist/esm/models/OrderSupply.js create mode 100644 dist/esm/models/OrderSupplyStateEnum.d.ts create mode 100644 dist/esm/models/OrderSupplyStateEnum.js create mode 100644 dist/esm/models/ParameterAutoStopActionReasonEnum.d.ts create mode 100644 dist/esm/models/ParameterAutoStopActionReasonEnum.js create mode 100644 dist/esm/models/ParameterDiscountLevels.d.ts create mode 100644 dist/esm/models/ParameterDiscountLevels.js create mode 100644 dist/esm/models/ParameterPickedSegment.d.ts create mode 100644 dist/esm/models/ParameterPickedSegment.js create mode 100644 dist/esm/models/PickedSegmentSegment.d.ts create mode 100644 dist/esm/models/PickedSegmentSegment.js create mode 100644 dist/esm/models/PickedSegmentSegmentTypeEnum.d.ts create mode 100644 dist/esm/models/PickedSegmentSegmentTypeEnum.js create mode 100644 dist/esm/models/PointDeliveryMethodCoordinates.d.ts create mode 100644 dist/esm/models/PointDeliveryMethodCoordinates.js create mode 100644 dist/esm/models/PolygonBindRequestpolygon.d.ts create mode 100644 dist/esm/models/PolygonBindRequestpolygon.js create mode 100644 dist/esm/models/PolygonBindRequestwhLocation.d.ts create mode 100644 dist/esm/models/PolygonBindRequestwhLocation.js create mode 100644 dist/esm/models/PolygonListResponsePolygon.d.ts create mode 100644 dist/esm/models/PolygonListResponsePolygon.js create mode 100644 dist/esm/models/Polygonv1PolygonBindRequest.d.ts create mode 100644 dist/esm/models/Polygonv1PolygonBindRequest.js create mode 100644 dist/esm/models/Polygonv1PolygonCreateRequest.d.ts create mode 100644 dist/esm/models/Polygonv1PolygonCreateRequest.js create mode 100644 dist/esm/models/Polygonv1PolygonCreateResponse.d.ts create mode 100644 dist/esm/models/Polygonv1PolygonCreateResponse.js create mode 100644 dist/esm/models/PostingAdditionalDataItem.d.ts create mode 100644 dist/esm/models/PostingAdditionalDataItem.js create mode 100644 dist/esm/models/PostingBooleanResponse.d.ts create mode 100644 dist/esm/models/PostingBooleanResponse.js create mode 100644 dist/esm/models/PostingCancelFbsPostingRequest.d.ts create mode 100644 dist/esm/models/PostingCancelFbsPostingRequest.js create mode 100644 dist/esm/models/PostingCancelReason.d.ts create mode 100644 dist/esm/models/PostingCancelReason.js create mode 100644 dist/esm/models/PostingCancelReasonListResponse.d.ts create mode 100644 dist/esm/models/PostingCancelReasonListResponse.js create mode 100644 dist/esm/models/PostingCancelReasonRequest.d.ts create mode 100644 dist/esm/models/PostingCancelReasonRequest.js create mode 100644 dist/esm/models/PostingCancelReasonResponse.d.ts create mode 100644 dist/esm/models/PostingCancelReasonResponse.js create mode 100644 dist/esm/models/PostingErrorTypeEnum.d.ts create mode 100644 dist/esm/models/PostingErrorTypeEnum.js create mode 100644 dist/esm/models/PostingExemplarInfoExemplarError.d.ts create mode 100644 dist/esm/models/PostingExemplarInfoExemplarError.js create mode 100644 dist/esm/models/PostingFBSActCheckStatusResponseStatus.d.ts create mode 100644 dist/esm/models/PostingFBSActCheckStatusResponseStatus.js create mode 100644 dist/esm/models/PostingFBSActCreateResponseAct.d.ts create mode 100644 dist/esm/models/PostingFBSActCreateResponseAct.js create mode 100644 dist/esm/models/PostingFboPostingWithParams.d.ts create mode 100644 dist/esm/models/PostingFboPostingWithParams.js create mode 100644 dist/esm/models/PostingFbsPostingDeliveredRequest.d.ts create mode 100644 dist/esm/models/PostingFbsPostingDeliveredRequest.js create mode 100644 dist/esm/models/PostingFbsPostingDeliveringRequest.d.ts create mode 100644 dist/esm/models/PostingFbsPostingDeliveringRequest.js create mode 100644 dist/esm/models/PostingFbsPostingLastMileRequest.d.ts create mode 100644 dist/esm/models/PostingFbsPostingLastMileRequest.js create mode 100644 dist/esm/models/PostingFbsPostingMoveStatusResponse.d.ts create mode 100644 dist/esm/models/PostingFbsPostingMoveStatusResponse.js create mode 100644 dist/esm/models/PostingFbsPostingTrackingNumberSetRequest.d.ts create mode 100644 dist/esm/models/PostingFbsPostingTrackingNumberSetRequest.js create mode 100644 dist/esm/models/PostingFbsTraceableSplitResponsePostingProduct.d.ts create mode 100644 dist/esm/models/PostingFbsTraceableSplitResponsePostingProduct.js create mode 100644 dist/esm/models/PostingFinancialDataProduct.d.ts create mode 100644 dist/esm/models/PostingFinancialDataProduct.js create mode 100644 dist/esm/models/PostingFinancialDataProductV2.d.ts create mode 100644 dist/esm/models/PostingFinancialDataProductV2.js create mode 100644 dist/esm/models/PostingGetFboPostingListRequest.d.ts create mode 100644 dist/esm/models/PostingGetFboPostingListRequest.js create mode 100644 dist/esm/models/PostingGetFboPostingListRequestFilter.d.ts create mode 100644 dist/esm/models/PostingGetFboPostingListRequestFilter.js create mode 100644 dist/esm/models/PostingGetFboPostingRequest.d.ts create mode 100644 dist/esm/models/PostingGetFboPostingRequest.js create mode 100644 dist/esm/models/PostingGetFbsPostingByBarcodeRequest.d.ts create mode 100644 dist/esm/models/PostingGetFbsPostingByBarcodeRequest.js create mode 100644 dist/esm/models/PostingLegalInfo.d.ts create mode 100644 dist/esm/models/PostingLegalInfo.js create mode 100644 dist/esm/models/PostingMarksResponseIssuedExemplar.d.ts create mode 100644 dist/esm/models/PostingMarksResponseIssuedExemplar.js create mode 100644 dist/esm/models/PostingMarksResponseNonIssuedExemplar.d.ts create mode 100644 dist/esm/models/PostingMarksResponseNonIssuedExemplar.js create mode 100644 dist/esm/models/PostingMovePostingRequest.d.ts create mode 100644 dist/esm/models/PostingMovePostingRequest.js create mode 100644 dist/esm/models/PostingPostingAnalyticsData.d.ts create mode 100644 dist/esm/models/PostingPostingAnalyticsData.js create mode 100644 dist/esm/models/PostingPostingFBSActCheckStatusRequest.d.ts create mode 100644 dist/esm/models/PostingPostingFBSActCheckStatusRequest.js create mode 100644 dist/esm/models/PostingPostingFBSActCheckStatusResponse.d.ts create mode 100644 dist/esm/models/PostingPostingFBSActCheckStatusResponse.js create mode 100644 dist/esm/models/PostingPostingFBSActCreateRequest.d.ts create mode 100644 dist/esm/models/PostingPostingFBSActCreateRequest.js create mode 100644 dist/esm/models/PostingPostingFBSActCreateResponse.d.ts create mode 100644 dist/esm/models/PostingPostingFBSActCreateResponse.js create mode 100644 dist/esm/models/PostingPostingFBSActGetContainerLabelsRequest.d.ts create mode 100644 dist/esm/models/PostingPostingFBSActGetContainerLabelsRequest.js create mode 100644 dist/esm/models/PostingPostingFBSActGetContainerLabelsResponse.d.ts create mode 100644 dist/esm/models/PostingPostingFBSActGetContainerLabelsResponse.js create mode 100644 dist/esm/models/PostingPostingFBSGetActRequest.d.ts create mode 100644 dist/esm/models/PostingPostingFBSGetActRequest.js create mode 100644 dist/esm/models/PostingPostingFBSGetActResponse.d.ts create mode 100644 dist/esm/models/PostingPostingFBSGetActResponse.js create mode 100644 dist/esm/models/PostingPostingFBSPackageLabelRequest.d.ts create mode 100644 dist/esm/models/PostingPostingFBSPackageLabelRequest.js create mode 100644 dist/esm/models/PostingPostingFBSPackageLabelResponse.d.ts create mode 100644 dist/esm/models/PostingPostingFBSPackageLabelResponse.js create mode 100644 dist/esm/models/PostingPostingFinancialData.d.ts create mode 100644 dist/esm/models/PostingPostingFinancialData.js create mode 100644 dist/esm/models/PostingPostingProduct.d.ts create mode 100644 dist/esm/models/PostingPostingProduct.js create mode 100644 dist/esm/models/PostingPostingProductCancelRequest.d.ts create mode 100644 dist/esm/models/PostingPostingProductCancelRequest.js create mode 100644 dist/esm/models/PostingPostingProductCancelResponse.d.ts create mode 100644 dist/esm/models/PostingPostingProductCancelResponse.js create mode 100644 dist/esm/models/PostingProductCancelRequestItem.d.ts create mode 100644 dist/esm/models/PostingProductCancelRequestItem.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingRequest.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingRequest.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponse.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponse.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePosting.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePosting.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingCancellation.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingCancellation.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialData.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialData.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.js create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingProducts.d.ts create mode 100644 dist/esm/models/PostingV1GetFbpPostingResponsePostingProducts.js create mode 100644 dist/esm/models/PostingV1PostingFbpListRequest.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListRequest.js create mode 100644 dist/esm/models/PostingV1PostingFbpListRequestFilter.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListRequestFilter.js create mode 100644 dist/esm/models/PostingV1PostingFbpListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListRequestSortDirEnum.js create mode 100644 dist/esm/models/PostingV1PostingFbpListResponse.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListResponse.js create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostings.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostings.js create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialData.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialData.js create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.js create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.js create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.js create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsProducts.d.ts create mode 100644 dist/esm/models/PostingV1PostingFbpListResponsePostingsProducts.js create mode 100644 dist/esm/models/PostingV2FboSinglePostingExternalOrder.d.ts create mode 100644 dist/esm/models/PostingV2FboSinglePostingExternalOrder.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListRequest.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListRequest.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListRequestFilter.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListRequestFilter.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListRequestSortDirEnum.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListRequestWith.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListRequestWith.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponse.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponse.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostings.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostings.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsCancellation.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsCancellation.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialData.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialData.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.js create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsProducts.d.ts create mode 100644 dist/esm/models/PostingV2PostingDigitalListResponsePostingsProducts.js create mode 100644 dist/esm/models/PostingV3FbsPostingContainerCargoTypeEnum.d.ts create mode 100644 dist/esm/models/PostingV3FbsPostingContainerCargoTypeEnum.js create mode 100644 dist/esm/models/PostingV3FbsPostingDetailExternalOrder.d.ts create mode 100644 dist/esm/models/PostingV3FbsPostingDetailExternalOrder.js create mode 100644 dist/esm/models/PostingV3FbsPostingDetailSortingCenter.d.ts create mode 100644 dist/esm/models/PostingV3FbsPostingDetailSortingCenter.js create mode 100644 dist/esm/models/PostingV3FbsPostingSortingCenter.d.ts create mode 100644 dist/esm/models/PostingV3FbsPostingSortingCenter.js create mode 100644 dist/esm/models/PostingV3PostingFboListRequest.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListRequest.js create mode 100644 dist/esm/models/PostingV3PostingFboListRequestFilter.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListRequestFilter.js create mode 100644 dist/esm/models/PostingV3PostingFboListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListRequestSortDirEnum.js create mode 100644 dist/esm/models/PostingV3PostingFboListRequestWith.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListRequestWith.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponse.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponse.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostings.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostings.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsAdditionalData.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsAdditionalData.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsAnalyticsData.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsAnalyticsData.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsCancellation.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsCancellation.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsExternalOrder.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsExternalOrder.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialData.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialData.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsLegalInfo.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsLegalInfo.js create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsProducts.d.ts create mode 100644 dist/esm/models/PostingV3PostingFboListResponsePostingsProducts.js create mode 100644 dist/esm/models/PostingV4PostingFbsListRequest.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListRequest.js create mode 100644 dist/esm/models/PostingV4PostingFbsListRequestFilter.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListRequestFilter.js create mode 100644 dist/esm/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.js create mode 100644 dist/esm/models/PostingV4PostingFbsListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListRequestSortDirEnum.js create mode 100644 dist/esm/models/PostingV4PostingFbsListRequestWith.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListRequestWith.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponse.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponse.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostings.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostings.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsAddressee.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsAddressee.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsBarcodes.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsBarcodes.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsCancellation.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsCancellation.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsContainer.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsContainer.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomer.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomer.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsExternalOrder.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsExternalOrder.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialData.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialData.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsLegalInfo.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsLegalInfo.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsOptional.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsOptional.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsProducts.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsProducts.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsRequirements.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsRequirements.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsSortingCenter.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsSortingCenter.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsTariffication.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsTariffication.js create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequest.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequest.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilter.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilter.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestWith.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestWith.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponse.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponse.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostings.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostings.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.js create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.d.ts create mode 100644 dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.js create mode 100644 dist/esm/models/PostinglistV3status.d.ts create mode 100644 dist/esm/models/PostinglistV3status.js create mode 100644 dist/esm/models/Postingv1GetCarriageAvailableListRequest.d.ts create mode 100644 dist/esm/models/Postingv1GetCarriageAvailableListRequest.js create mode 100644 dist/esm/models/Postingv1GetCarriageAvailableListResponse.d.ts create mode 100644 dist/esm/models/Postingv1GetCarriageAvailableListResponse.js create mode 100644 dist/esm/models/Postingv3FbsPostingWithParams.d.ts create mode 100644 dist/esm/models/Postingv3FbsPostingWithParams.js create mode 100644 dist/esm/models/Postingv3FbsPostingWithParamsExamplars.d.ts create mode 100644 dist/esm/models/Postingv3FbsPostingWithParamsExamplars.js create mode 100644 dist/esm/models/Postingv3GetFbsPostingListRequest.d.ts create mode 100644 dist/esm/models/Postingv3GetFbsPostingListRequest.js create mode 100644 dist/esm/models/Postingv3GetFbsPostingListRequestFilter.d.ts create mode 100644 dist/esm/models/Postingv3GetFbsPostingListRequestFilter.js create mode 100644 dist/esm/models/Postingv3GetFbsPostingRequest.d.ts create mode 100644 dist/esm/models/Postingv3GetFbsPostingRequest.js create mode 100644 dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequest.d.ts create mode 100644 dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequest.js create mode 100644 dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.d.ts create mode 100644 dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.js create mode 100644 dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponse.d.ts create mode 100644 dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponse.js create mode 100644 dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.d.ts create mode 100644 dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.js create mode 100644 dist/esm/models/Postingv3PostingMultiBoxQtySetV3Request.d.ts create mode 100644 dist/esm/models/Postingv3PostingMultiBoxQtySetV3Request.js create mode 100644 dist/esm/models/Postingv3PostingMultiBoxQtySetV3Response.d.ts create mode 100644 dist/esm/models/Postingv3PostingMultiBoxQtySetV3Response.js create mode 100644 dist/esm/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.d.ts create mode 100644 dist/esm/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.js create mode 100644 dist/esm/models/PremiumScoresScore.d.ts create mode 100644 dist/esm/models/PremiumScoresScore.js create mode 100644 dist/esm/models/PriceIndexesColorIndex.d.ts create mode 100644 dist/esm/models/PriceIndexesColorIndex.js create mode 100644 dist/esm/models/PriceIndexesIndexDataExternal.d.ts create mode 100644 dist/esm/models/PriceIndexesIndexDataExternal.js create mode 100644 dist/esm/models/PriceIndexesIndexDataOzon.d.ts create mode 100644 dist/esm/models/PriceIndexesIndexDataOzon.js create mode 100644 dist/esm/models/PriceIndexesIndexDataSelf.d.ts create mode 100644 dist/esm/models/PriceIndexesIndexDataSelf.js create mode 100644 dist/esm/models/PriceIndexesIndexExternalData.d.ts create mode 100644 dist/esm/models/PriceIndexesIndexExternalData.js create mode 100644 dist/esm/models/PriceIndexesIndexOzonData.d.ts create mode 100644 dist/esm/models/PriceIndexesIndexOzonData.js create mode 100644 dist/esm/models/PriceIndexesIndexSelfData.d.ts create mode 100644 dist/esm/models/PriceIndexesIndexSelfData.js create mode 100644 dist/esm/models/ProductBooleanResponse.d.ts create mode 100644 dist/esm/models/ProductBooleanResponse.js create mode 100644 dist/esm/models/ProductCertificateProductsListResponseProduct.d.ts create mode 100644 dist/esm/models/ProductCertificateProductsListResponseProduct.js create mode 100644 dist/esm/models/ProductCertificateUnbindResponseItem.d.ts create mode 100644 dist/esm/models/ProductCertificateUnbindResponseItem.js create mode 100644 dist/esm/models/ProductCertificationListResponseCertification.d.ts create mode 100644 dist/esm/models/ProductCertificationListResponseCertification.js create mode 100644 dist/esm/models/ProductCertificationListResponseCertificationResult.d.ts create mode 100644 dist/esm/models/ProductCertificationListResponseCertificationResult.js create mode 100644 dist/esm/models/ProductCertificationListResponseCertificationv2.d.ts create mode 100644 dist/esm/models/ProductCertificationListResponseCertificationv2.js create mode 100644 dist/esm/models/ProductCurrencyEnum.d.ts create mode 100644 dist/esm/models/ProductCurrencyEnum.js create mode 100644 dist/esm/models/ProductExemplar.d.ts create mode 100644 dist/esm/models/ProductExemplar.js create mode 100644 dist/esm/models/ProductGetImportProductsInfoRequest.d.ts create mode 100644 dist/esm/models/ProductGetImportProductsInfoRequest.js create mode 100644 dist/esm/models/ProductGetImportProductsInfoResponse.d.ts create mode 100644 dist/esm/models/ProductGetImportProductsInfoResponse.js create mode 100644 dist/esm/models/ProductGetImportProductsInfoResponseResult.d.ts create mode 100644 dist/esm/models/ProductGetImportProductsInfoResponseResult.js create mode 100644 dist/esm/models/ProductGetProductAttributesV3ResponseDictionaryValue.d.ts create mode 100644 dist/esm/models/ProductGetProductAttributesV3ResponseDictionaryValue.js create mode 100644 dist/esm/models/ProductGetProductAttributesV4ResponseAttribute.d.ts create mode 100644 dist/esm/models/ProductGetProductAttributesV4ResponseAttribute.js create mode 100644 dist/esm/models/ProductGetProductInfoDescriptionRequest.d.ts create mode 100644 dist/esm/models/ProductGetProductInfoDescriptionRequest.js create mode 100644 dist/esm/models/ProductGetProductInfoDescriptionResponse.d.ts create mode 100644 dist/esm/models/ProductGetProductInfoDescriptionResponse.js create mode 100644 dist/esm/models/ProductGetProductInfoDescriptionResponseProduct.d.ts create mode 100644 dist/esm/models/ProductGetProductInfoDescriptionResponseProduct.js create mode 100644 dist/esm/models/ProductGetProductInfoPricesV5ResponseItem.d.ts create mode 100644 dist/esm/models/ProductGetProductInfoPricesV5ResponseItem.js create mode 100644 dist/esm/models/ProductImportProductsBySKURequest.d.ts create mode 100644 dist/esm/models/ProductImportProductsBySKURequest.js create mode 100644 dist/esm/models/ProductImportProductsBySKURequestItem.d.ts create mode 100644 dist/esm/models/ProductImportProductsBySKURequestItem.js create mode 100644 dist/esm/models/ProductImportProductsBySKUResponse.d.ts create mode 100644 dist/esm/models/ProductImportProductsBySKUResponse.js create mode 100644 dist/esm/models/ProductImportProductsBySKUResponseResult.d.ts create mode 100644 dist/esm/models/ProductImportProductsBySKUResponseResult.js create mode 100644 dist/esm/models/ProductImportProductsPricesRequest.d.ts create mode 100644 dist/esm/models/ProductImportProductsPricesRequest.js create mode 100644 dist/esm/models/ProductImportProductsPricesRequestPrice.d.ts create mode 100644 dist/esm/models/ProductImportProductsPricesRequestPrice.js create mode 100644 dist/esm/models/ProductImportProductsPricesResponse.d.ts create mode 100644 dist/esm/models/ProductImportProductsPricesResponse.js create mode 100644 dist/esm/models/ProductImportProductsPricesResponseError.d.ts create mode 100644 dist/esm/models/ProductImportProductsPricesResponseError.js create mode 100644 dist/esm/models/ProductImportProductsPricesResponseProcessResult.d.ts create mode 100644 dist/esm/models/ProductImportProductsPricesResponseProcessResult.js create mode 100644 dist/esm/models/ProductInfoWarehouseStocksResponseStocks.d.ts create mode 100644 dist/esm/models/ProductInfoWarehouseStocksResponseStocks.js create mode 100644 dist/esm/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.d.ts create mode 100644 dist/esm/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.js create mode 100644 dist/esm/models/ProductPlacementPlacementZoneEnum.d.ts create mode 100644 dist/esm/models/ProductPlacementPlacementZoneEnum.js create mode 100644 dist/esm/models/ProductProductArchiveRequest.d.ts create mode 100644 dist/esm/models/ProductProductArchiveRequest.js create mode 100644 dist/esm/models/ProductProductCertificateAccordanceTypesResponse.d.ts create mode 100644 dist/esm/models/ProductProductCertificateAccordanceTypesResponse.js create mode 100644 dist/esm/models/ProductProductCertificateAccordanceTypesResponseType.d.ts create mode 100644 dist/esm/models/ProductProductCertificateAccordanceTypesResponseType.js create mode 100644 dist/esm/models/ProductProductCertificateBindRequest.d.ts create mode 100644 dist/esm/models/ProductProductCertificateBindRequest.js create mode 100644 dist/esm/models/ProductProductCertificateTypesResponse.d.ts create mode 100644 dist/esm/models/ProductProductCertificateTypesResponse.js create mode 100644 dist/esm/models/ProductProductCertificateTypesResponseType.d.ts create mode 100644 dist/esm/models/ProductProductCertificateTypesResponseType.js create mode 100644 dist/esm/models/ProductProductCertificationListRequest.d.ts create mode 100644 dist/esm/models/ProductProductCertificationListRequest.js create mode 100644 dist/esm/models/ProductProductCertificationListResponse.d.ts create mode 100644 dist/esm/models/ProductProductCertificationListResponse.js create mode 100644 dist/esm/models/ProductProductInfoPicturesResponsePicture.d.ts create mode 100644 dist/esm/models/ProductProductInfoPicturesResponsePicture.js create mode 100644 dist/esm/models/ProductProductUnarchiveRequest.d.ts create mode 100644 dist/esm/models/ProductProductUnarchiveRequest.js create mode 100644 dist/esm/models/ProductUpdateOfferIdRequestUpdateOfferId.d.ts create mode 100644 dist/esm/models/ProductUpdateOfferIdRequestUpdateOfferId.js create mode 100644 dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.d.ts create mode 100644 dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.js create mode 100644 dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.d.ts create mode 100644 dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.js create mode 100644 dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.d.ts create mode 100644 dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.js create mode 100644 dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.d.ts create mode 100644 dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.js create mode 100644 dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.d.ts create mode 100644 dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.js create mode 100644 dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.d.ts create mode 100644 dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.js create mode 100644 dist/esm/models/ProductV1ProductVisibilityInfoRequest.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilityInfoRequest.js create mode 100644 dist/esm/models/ProductV1ProductVisibilityInfoResponse.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilityInfoResponse.js create mode 100644 dist/esm/models/ProductV1ProductVisibilityInfoResponseItem.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilityInfoResponseItem.js create mode 100644 dist/esm/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetRequest.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetRequest.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacement.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacement.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponse.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponse.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItems.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItems.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsErrors.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsErrors.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.js create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.d.ts create mode 100644 dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.js create mode 100644 dist/esm/models/ProductV1QuantInfoRequest.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoRequest.js create mode 100644 dist/esm/models/ProductV1QuantInfoResponse.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoResponse.js create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItems.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItems.js create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfo.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfo.js create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.js create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.js create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.js create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.js create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.d.ts create mode 100644 dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.js create mode 100644 dist/esm/models/ProductV1QuantListRequest.d.ts create mode 100644 dist/esm/models/ProductV1QuantListRequest.js create mode 100644 dist/esm/models/ProductV1QuantListResponse.d.ts create mode 100644 dist/esm/models/ProductV1QuantListResponse.js create mode 100644 dist/esm/models/ProductV1QuantListResponseProducts.d.ts create mode 100644 dist/esm/models/ProductV1QuantListResponseProducts.js create mode 100644 dist/esm/models/ProductV1QuantListResponseProductsQuants.d.ts create mode 100644 dist/esm/models/ProductV1QuantListResponseProductsQuants.js create mode 100644 dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimits.d.ts create mode 100644 dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimits.js create mode 100644 dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.d.ts create mode 100644 dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.js create mode 100644 dist/esm/models/ProductsPostings.d.ts create mode 100644 dist/esm/models/ProductsPostings.js create mode 100644 dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.d.ts create mode 100644 dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.js create mode 100644 dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.d.ts create mode 100644 dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.js create mode 100644 dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.d.ts create mode 100644 dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.js create mode 100644 dist/esm/models/Productv1ProductImportPicturesRequest.d.ts create mode 100644 dist/esm/models/Productv1ProductImportPicturesRequest.js create mode 100644 dist/esm/models/Productv1ProductInfoPicturesResponse.d.ts create mode 100644 dist/esm/models/Productv1ProductInfoPicturesResponse.js create mode 100644 dist/esm/models/Productv1ProductInfoPicturesResponseResult.d.ts create mode 100644 dist/esm/models/Productv1ProductInfoPicturesResponseResult.js create mode 100644 dist/esm/models/Productv2DeleteProductsRequest.d.ts create mode 100644 dist/esm/models/Productv2DeleteProductsRequest.js create mode 100644 dist/esm/models/Productv2DeleteProductsResponse.d.ts create mode 100644 dist/esm/models/Productv2DeleteProductsResponse.js create mode 100644 dist/esm/models/Productv2GetProductListRequestFilterFilterVisibility.d.ts create mode 100644 dist/esm/models/Productv2GetProductListRequestFilterFilterVisibility.js create mode 100644 dist/esm/models/Productv2ProductsStocksRequest.d.ts create mode 100644 dist/esm/models/Productv2ProductsStocksRequest.js create mode 100644 dist/esm/models/Productv2ProductsStocksRequestStock.d.ts create mode 100644 dist/esm/models/Productv2ProductsStocksRequestStock.js create mode 100644 dist/esm/models/Productv2ProductsStocksResponse.d.ts create mode 100644 dist/esm/models/Productv2ProductsStocksResponse.js create mode 100644 dist/esm/models/Productv2ProductsStocksResponseError.d.ts create mode 100644 dist/esm/models/Productv2ProductsStocksResponseError.js create mode 100644 dist/esm/models/Productv2ProductsStocksResponseResult.d.ts create mode 100644 dist/esm/models/Productv2ProductsStocksResponseResult.js create mode 100644 dist/esm/models/Productv3GetProductListRequest.d.ts create mode 100644 dist/esm/models/Productv3GetProductListRequest.js create mode 100644 dist/esm/models/Productv3GetProductListRequestFilter.d.ts create mode 100644 dist/esm/models/Productv3GetProductListRequestFilter.js create mode 100644 dist/esm/models/Productv3GetProductListRequestFilterFilterVisibility.d.ts create mode 100644 dist/esm/models/Productv3GetProductListRequestFilterFilterVisibility.js create mode 100644 dist/esm/models/Productv3GetProductListResponse.d.ts create mode 100644 dist/esm/models/Productv3GetProductListResponse.js create mode 100644 dist/esm/models/Productv3GetProductListResponseItem.d.ts create mode 100644 dist/esm/models/Productv3GetProductListResponseItem.js create mode 100644 dist/esm/models/Productv3GetProductListResponseItemQuant.d.ts create mode 100644 dist/esm/models/Productv3GetProductListResponseItemQuant.js create mode 100644 dist/esm/models/Productv3GetProductListResponseResult.d.ts create mode 100644 dist/esm/models/Productv3GetProductListResponseResult.js create mode 100644 dist/esm/models/Productv4Filter.d.ts create mode 100644 dist/esm/models/Productv4Filter.js create mode 100644 dist/esm/models/Productv4GetProductAttributesV4Request.d.ts create mode 100644 dist/esm/models/Productv4GetProductAttributesV4Request.js create mode 100644 dist/esm/models/Productv4GetProductAttributesV4Response.d.ts create mode 100644 dist/esm/models/Productv4GetProductAttributesV4Response.js create mode 100644 dist/esm/models/Productv4GetProductAttributesV4ResponseResult.d.ts create mode 100644 dist/esm/models/Productv4GetProductAttributesV4ResponseResult.js create mode 100644 dist/esm/models/Productv5Filter.d.ts create mode 100644 dist/esm/models/Productv5Filter.js create mode 100644 dist/esm/models/Productv5GetProductInfoPricesV5Request.d.ts create mode 100644 dist/esm/models/Productv5GetProductInfoPricesV5Request.js create mode 100644 dist/esm/models/Productv5GetProductInfoPricesV5Response.d.ts create mode 100644 dist/esm/models/Productv5GetProductInfoPricesV5Response.js create mode 100644 dist/esm/models/Productv5GetProductListRequestFilterFilterVisibility.d.ts create mode 100644 dist/esm/models/Productv5GetProductListRequestFilterFilterVisibility.js create mode 100644 dist/esm/models/ProtobufAny.d.ts create mode 100644 dist/esm/models/ProtobufAny.js create mode 100644 dist/esm/models/ProtobufAnyV2DeliveryCheckout.d.ts create mode 100644 dist/esm/models/ProtobufAnyV2DeliveryCheckout.js create mode 100644 dist/esm/models/QuestionV1GetQuestionListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/QuestionV1GetQuestionListRequestSortDirEnum.js create mode 100644 dist/esm/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.d.ts create mode 100644 dist/esm/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.js create mode 100644 dist/esm/models/RatingItemChange.d.ts create mode 100644 dist/esm/models/RatingItemChange.js create mode 100644 dist/esm/models/RatingStatusEnum.d.ts create mode 100644 dist/esm/models/RatingStatusEnum.js create mode 100644 dist/esm/models/RatingSummaryV1ResponseGroup.d.ts create mode 100644 dist/esm/models/RatingSummaryV1ResponseGroup.js create mode 100644 dist/esm/models/RatingSummaryV1ResponseLocalIndex.d.ts create mode 100644 dist/esm/models/RatingSummaryV1ResponseLocalIndex.js create mode 100644 dist/esm/models/RatingValue.d.ts create mode 100644 dist/esm/models/RatingValue.js create mode 100644 dist/esm/models/RatingValueCurrent.d.ts create mode 100644 dist/esm/models/RatingValueCurrent.js create mode 100644 dist/esm/models/RatingValuePast.d.ts create mode 100644 dist/esm/models/RatingValuePast.js create mode 100644 dist/esm/models/ReasonHumanText.d.ts create mode 100644 dist/esm/models/ReasonHumanText.js create mode 100644 dist/esm/models/ReceiptsSellerListResponseReceipt.d.ts create mode 100644 dist/esm/models/ReceiptsSellerListResponseReceipt.js create mode 100644 dist/esm/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.d.ts create mode 100644 dist/esm/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.js create mode 100644 dist/esm/models/ReceiptsSellerListResponseReceiptTypeEnum.d.ts create mode 100644 dist/esm/models/ReceiptsSellerListResponseReceiptTypeEnum.js create mode 100644 dist/esm/models/RejectedItemsReasonEnum.d.ts create mode 100644 dist/esm/models/RejectedItemsReasonEnum.js create mode 100644 dist/esm/models/RejectedItemsRejectionReasonEnum.d.ts create mode 100644 dist/esm/models/RejectedItemsRejectionReasonEnum.js create mode 100644 dist/esm/models/RejectedItemsRestrictions.d.ts create mode 100644 dist/esm/models/RejectedItemsRestrictions.js create mode 100644 dist/esm/models/RelatedPostingCancelReason.d.ts create mode 100644 dist/esm/models/RelatedPostingCancelReason.js create mode 100644 dist/esm/models/RelatedPostingCancelReasons.d.ts create mode 100644 dist/esm/models/RelatedPostingCancelReasons.js create mode 100644 dist/esm/models/ReportCommonReportAdditionalDataItem.d.ts create mode 100644 dist/esm/models/ReportCommonReportAdditionalDataItem.js create mode 100644 dist/esm/models/ReportCreateCompanyPostingsReportRequest.d.ts create mode 100644 dist/esm/models/ReportCreateCompanyPostingsReportRequest.js create mode 100644 dist/esm/models/ReportCreateCompanyPostingsReportRequestFilter.d.ts create mode 100644 dist/esm/models/ReportCreateCompanyPostingsReportRequestFilter.js create mode 100644 dist/esm/models/ReportCreateCompanyProductsReportRequest.d.ts create mode 100644 dist/esm/models/ReportCreateCompanyProductsReportRequest.js create mode 100644 dist/esm/models/ReportCreateCompanyProductsReportRequestVisibility.d.ts create mode 100644 dist/esm/models/ReportCreateCompanyProductsReportRequestVisibility.js create mode 100644 dist/esm/models/ReportCreateDiscountedResponse.d.ts create mode 100644 dist/esm/models/ReportCreateDiscountedResponse.js create mode 100644 dist/esm/models/ReportCreateReportResponse.d.ts create mode 100644 dist/esm/models/ReportCreateReportResponse.js create mode 100644 dist/esm/models/ReportListResponseResult.d.ts create mode 100644 dist/esm/models/ReportListResponseResult.js create mode 100644 dist/esm/models/ReportMarkedProductsSalesCreateRequestDate.d.ts create mode 100644 dist/esm/models/ReportMarkedProductsSalesCreateRequestDate.js create mode 100644 dist/esm/models/ReportReport.d.ts create mode 100644 dist/esm/models/ReportReport.js create mode 100644 dist/esm/models/ReportReportInfoRequest.d.ts create mode 100644 dist/esm/models/ReportReportInfoRequest.js create mode 100644 dist/esm/models/ReportReportInfoResponse.d.ts create mode 100644 dist/esm/models/ReportReportInfoResponse.js create mode 100644 dist/esm/models/ReportReportListRequest.d.ts create mode 100644 dist/esm/models/ReportReportListRequest.js create mode 100644 dist/esm/models/ReportReportListResponse.d.ts create mode 100644 dist/esm/models/ReportReportListResponse.js create mode 100644 dist/esm/models/ReportReportinfo.d.ts create mode 100644 dist/esm/models/ReportReportinfo.js create mode 100644 dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.d.ts create mode 100644 dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.js create mode 100644 dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.d.ts create mode 100644 dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.js create mode 100644 dist/esm/models/RestrictionsReasonEnum.d.ts create mode 100644 dist/esm/models/RestrictionsReasonEnum.js create mode 100644 dist/esm/models/ResultCargo.d.ts create mode 100644 dist/esm/models/ResultCargo.js create mode 100644 dist/esm/models/ResultData.d.ts create mode 100644 dist/esm/models/ResultData.js create mode 100644 dist/esm/models/ResultDropOffWarehouseTimeslots.d.ts create mode 100644 dist/esm/models/ResultDropOffWarehouseTimeslots.js create mode 100644 dist/esm/models/ResultError.d.ts create mode 100644 dist/esm/models/ResultError.js create mode 100644 dist/esm/models/ResultUnprintedPosting.d.ts create mode 100644 dist/esm/models/ResultUnprintedPosting.js create mode 100644 dist/esm/models/ReturnSettingCourierDetails.d.ts create mode 100644 dist/esm/models/ReturnSettingCourierDetails.js create mode 100644 dist/esm/models/ReturnSettingTransportCompanyDetails.d.ts create mode 100644 dist/esm/models/ReturnSettingTransportCompanyDetails.js create mode 100644 dist/esm/models/ReturnsCompanyFbsInfoRequestPagination.d.ts create mode 100644 dist/esm/models/ReturnsCompanyFbsInfoRequestPagination.js create mode 100644 dist/esm/models/ReturnsCompanyFbsInfoResponseDropOffPoints.d.ts create mode 100644 dist/esm/models/ReturnsCompanyFbsInfoResponseDropOffPoints.js create mode 100644 dist/esm/models/ReturnsCompanyFbsInfoResponsePassInfo.d.ts create mode 100644 dist/esm/models/ReturnsCompanyFbsInfoResponsePassInfo.js create mode 100644 dist/esm/models/ReturnsRfbsGetResponseReturns.d.ts create mode 100644 dist/esm/models/ReturnsRfbsGetResponseReturns.js create mode 100644 dist/esm/models/ReturnsRfbsGetV2ResponseAvailableAction.d.ts create mode 100644 dist/esm/models/ReturnsRfbsGetV2ResponseAvailableAction.js create mode 100644 dist/esm/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.d.ts create mode 100644 dist/esm/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.js create mode 100644 dist/esm/models/ReturnsRfbsGetV2ResponseRejectionReason.d.ts create mode 100644 dist/esm/models/ReturnsRfbsGetV2ResponseRejectionReason.js create mode 100644 dist/esm/models/ReturnsRfbsGetV2ResponseReturnReason.d.ts create mode 100644 dist/esm/models/ReturnsRfbsGetV2ResponseReturnReason.js create mode 100644 dist/esm/models/ReturnsRfbsListResponseReturns.d.ts create mode 100644 dist/esm/models/ReturnsRfbsListResponseReturns.js create mode 100644 dist/esm/models/ReturnsSettingsUtilizationHistoryResponseHistory.d.ts create mode 100644 dist/esm/models/ReturnsSettingsUtilizationHistoryResponseHistory.js create mode 100644 dist/esm/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.d.ts create mode 100644 dist/esm/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.js create mode 100644 dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.d.ts create mode 100644 dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.js create mode 100644 dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.d.ts create mode 100644 dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.js create mode 100644 dist/esm/models/ReviewInfoResponsePhoto.d.ts create mode 100644 dist/esm/models/ReviewInfoResponsePhoto.js create mode 100644 dist/esm/models/ReviewInfoResponseVideo.d.ts create mode 100644 dist/esm/models/ReviewInfoResponseVideo.js create mode 100644 dist/esm/models/ReviewListResponseReview.d.ts create mode 100644 dist/esm/models/ReviewListResponseReview.js create mode 100644 dist/esm/models/ReviewV1CommentListRequestFilter.d.ts create mode 100644 dist/esm/models/ReviewV1CommentListRequestFilter.js create mode 100644 dist/esm/models/ReviewV2ReviewChangeStatusV2Request.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewChangeStatusV2Request.js create mode 100644 dist/esm/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.js create mode 100644 dist/esm/models/ReviewV2ReviewCommentDeleteV2Request.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewCommentDeleteV2Request.js create mode 100644 dist/esm/models/ReviewV2ReviewCountV2Response.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewCountV2Response.js create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2Request.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2Request.js create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2Response.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2Response.js create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.js create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2ResponsePhoto.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2ResponsePhoto.js create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2ResponseStatusEnum.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2ResponseStatusEnum.js create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2ResponseVideo.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewInfoV2ResponseVideo.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2Request.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2Request.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2RequestFilters.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2RequestFilters.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2RequestSortDirEnum.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2RequestSortDirEnum.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2Response.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2Response.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2ResponseReview.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2ResponseReview.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.js create mode 100644 dist/esm/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.d.ts create mode 100644 dist/esm/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.js create mode 100644 dist/esm/models/RolesByTokenResponseRoles.d.ts create mode 100644 dist/esm/models/RolesByTokenResponseRoles.js create mode 100644 dist/esm/models/RowItem.d.ts create mode 100644 dist/esm/models/RowItem.js create mode 100644 dist/esm/models/RowItemCommission.d.ts create mode 100644 dist/esm/models/RowItemCommission.js create mode 100644 dist/esm/models/RowItemCommissionReturn.d.ts create mode 100644 dist/esm/models/RowItemCommissionReturn.js create mode 100644 dist/esm/models/RowItemLegalEntityDocument.d.ts create mode 100644 dist/esm/models/RowItemLegalEntityDocument.js create mode 100644 dist/esm/models/RowItemOrder.d.ts create mode 100644 dist/esm/models/RowItemOrder.js create mode 100644 dist/esm/models/RpcStatus.d.ts create mode 100644 dist/esm/models/RpcStatus.js create mode 100644 dist/esm/models/RpcStatusV1FinanceRealizationPosting.d.ts create mode 100644 dist/esm/models/RpcStatusV1FinanceRealizationPosting.js create mode 100644 dist/esm/models/RpcStatusV1PolygonBind.d.ts create mode 100644 dist/esm/models/RpcStatusV1PolygonBind.js create mode 100644 dist/esm/models/RpcStatusV1PolygonCreate.d.ts create mode 100644 dist/esm/models/RpcStatusV1PolygonCreate.js create mode 100644 dist/esm/models/RpcStatusV2DeliveryCheckout.d.ts create mode 100644 dist/esm/models/RpcStatusV2DeliveryCheckout.js create mode 100644 dist/esm/models/SearchAttributeValuesResponseValue.d.ts create mode 100644 dist/esm/models/SearchAttributeValuesResponseValue.js create mode 100644 dist/esm/models/SearchQueriesTextRequestSortBy.d.ts create mode 100644 dist/esm/models/SearchQueriesTextRequestSortBy.js create mode 100644 dist/esm/models/SearchQueriesTextRequestSortDir.d.ts create mode 100644 dist/esm/models/SearchQueriesTextRequestSortDir.js create mode 100644 dist/esm/models/SellerActionsListRequestActionTypeEnum.d.ts create mode 100644 dist/esm/models/SellerActionsListRequestActionTypeEnum.js create mode 100644 dist/esm/models/SellerActionsListRequestStatusEnum.d.ts create mode 100644 dist/esm/models/SellerActionsListRequestStatusEnum.js create mode 100644 dist/esm/models/SellerActionsListResponseAction.d.ts create mode 100644 dist/esm/models/SellerActionsListResponseAction.js create mode 100644 dist/esm/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.d.ts create mode 100644 dist/esm/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.js create mode 100644 dist/esm/models/SellerApiActivateProductV1Request.d.ts create mode 100644 dist/esm/models/SellerApiActivateProductV1Request.js create mode 100644 dist/esm/models/SellerApiGetSellerActionsV1Response.d.ts create mode 100644 dist/esm/models/SellerApiGetSellerActionsV1Response.js create mode 100644 dist/esm/models/SellerApiGetSellerProductV1Request.d.ts create mode 100644 dist/esm/models/SellerApiGetSellerProductV1Request.js create mode 100644 dist/esm/models/SellerApiGetSellerProductV1Response.d.ts create mode 100644 dist/esm/models/SellerApiGetSellerProductV1Response.js create mode 100644 dist/esm/models/SellerApiGetSellerProductV1ResponseResult.d.ts create mode 100644 dist/esm/models/SellerApiGetSellerProductV1ResponseResult.js create mode 100644 dist/esm/models/SellerApiProduct.d.ts create mode 100644 dist/esm/models/SellerApiProduct.js create mode 100644 dist/esm/models/SellerApiProductIDsV1Request.d.ts create mode 100644 dist/esm/models/SellerApiProductIDsV1Request.js create mode 100644 dist/esm/models/SellerApiProductPrice.d.ts create mode 100644 dist/esm/models/SellerApiProductPrice.js create mode 100644 dist/esm/models/SellerApiProductV1Response.d.ts create mode 100644 dist/esm/models/SellerApiProductV1Response.js create mode 100644 dist/esm/models/SellerApiProductV1ResponseDeactivate.d.ts create mode 100644 dist/esm/models/SellerApiProductV1ResponseDeactivate.js create mode 100644 dist/esm/models/SellerApiProductV1ResponseProduct.d.ts create mode 100644 dist/esm/models/SellerApiProductV1ResponseProduct.js create mode 100644 dist/esm/models/SellerApiProductV1ResponseProductDeactivate.d.ts create mode 100644 dist/esm/models/SellerApiProductV1ResponseProductDeactivate.js create mode 100644 dist/esm/models/SellerApiProductV1ResponseResult.d.ts create mode 100644 dist/esm/models/SellerApiProductV1ResponseResult.js create mode 100644 dist/esm/models/SellerApiProductV1ResponseResultDeactivate.d.ts create mode 100644 dist/esm/models/SellerApiProductV1ResponseResultDeactivate.js create mode 100644 dist/esm/models/SellerInfoResponseCompany.d.ts create mode 100644 dist/esm/models/SellerInfoResponseCompany.js create mode 100644 dist/esm/models/SellerInfoResponseRating.d.ts create mode 100644 dist/esm/models/SellerInfoResponseRating.js create mode 100644 dist/esm/models/SellerInfoResponseRatingTypeEnum.d.ts create mode 100644 dist/esm/models/SellerInfoResponseRatingTypeEnum.js create mode 100644 dist/esm/models/SellerInfoResponseSubscription.d.ts create mode 100644 dist/esm/models/SellerInfoResponseSubscription.js create mode 100644 dist/esm/models/SellerInfoResponseSubscriptionTypeEnum.d.ts create mode 100644 dist/esm/models/SellerInfoResponseSubscriptionTypeEnum.js create mode 100644 dist/esm/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.d.ts create mode 100644 dist/esm/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.js create mode 100644 dist/esm/models/SellerReturnsv1MoneyCommission.d.ts create mode 100644 dist/esm/models/SellerReturnsv1MoneyCommission.js create mode 100644 dist/esm/models/SellerReturnsv1MoneyProduct.d.ts create mode 100644 dist/esm/models/SellerReturnsv1MoneyProduct.js create mode 100644 dist/esm/models/SellerReturnsv1MoneyStorage.d.ts create mode 100644 dist/esm/models/SellerReturnsv1MoneyStorage.js create mode 100644 dist/esm/models/SellerReturnsv1MoneyUtilization.d.ts create mode 100644 dist/esm/models/SellerReturnsv1MoneyUtilization.js create mode 100644 dist/esm/models/SellerReturnsv1MoneyWithoutCommission.d.ts create mode 100644 dist/esm/models/SellerReturnsv1MoneyWithoutCommission.js create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassCreateRequest.d.ts create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassCreateRequest.js create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.d.ts create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.js create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassCreateResponse.d.ts create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassCreateResponse.js create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassDeleteRequest.d.ts create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassDeleteRequest.js create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassUpdateRequest.d.ts create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassUpdateRequest.js create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.d.ts create mode 100644 dist/esm/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.js create mode 100644 dist/esm/models/SellerServiceanalyticsDimension.d.ts create mode 100644 dist/esm/models/SellerServiceanalyticsDimension.js create mode 100644 dist/esm/models/SetPostingsResponseResult.d.ts create mode 100644 dist/esm/models/SetPostingsResponseResult.js create mode 100644 dist/esm/models/SourceShipmentType.d.ts create mode 100644 dist/esm/models/SourceShipmentType.js create mode 100644 dist/esm/models/SplitDeliveryMethod.d.ts create mode 100644 dist/esm/models/SplitDeliveryMethod.js create mode 100644 dist/esm/models/SplitItem.d.ts create mode 100644 dist/esm/models/SplitItem.js create mode 100644 dist/esm/models/StatusEnum.d.ts create mode 100644 dist/esm/models/StatusEnum.js create mode 100644 dist/esm/models/StockShipmentType.d.ts create mode 100644 dist/esm/models/StockShipmentType.js create mode 100644 dist/esm/models/StocksImportRequestItemStock.d.ts create mode 100644 dist/esm/models/StocksImportRequestItemStock.js create mode 100644 dist/esm/models/StocksImportResponseItemStatus.d.ts create mode 100644 dist/esm/models/StocksImportResponseItemStatus.js create mode 100644 dist/esm/models/SupplierAvailableWarehousesResponseCapacity.d.ts create mode 100644 dist/esm/models/SupplierAvailableWarehousesResponseCapacity.js create mode 100644 dist/esm/models/SupplierAvailableWarehousesResponseResult.d.ts create mode 100644 dist/esm/models/SupplierAvailableWarehousesResponseResult.js create mode 100644 dist/esm/models/SupplierAvailableWarehousesResponseSchedule.d.ts create mode 100644 dist/esm/models/SupplierAvailableWarehousesResponseSchedule.js create mode 100644 dist/esm/models/SupplierAvailableWarehousesResponseWarehouse.d.ts create mode 100644 dist/esm/models/SupplierAvailableWarehousesResponseWarehouse.js create mode 100644 dist/esm/models/SupplyCancellationAllowability.d.ts create mode 100644 dist/esm/models/SupplyCancellationAllowability.js create mode 100644 dist/esm/models/SupplyCargoInfo.d.ts create mode 100644 dist/esm/models/SupplyCargoInfo.js create mode 100644 dist/esm/models/SupplyCargoInfoTypeEnum.d.ts create mode 100644 dist/esm/models/SupplyCargoInfoTypeEnum.js create mode 100644 dist/esm/models/SupplyCheckCargoesPresentRule.d.ts create mode 100644 dist/esm/models/SupplyCheckCargoesPresentRule.js create mode 100644 dist/esm/models/SupplyCheckEditDeadlineExpireRule.d.ts create mode 100644 dist/esm/models/SupplyCheckEditDeadlineExpireRule.js create mode 100644 dist/esm/models/SupplyCheckExpireDatePresentedRule.d.ts create mode 100644 dist/esm/models/SupplyCheckExpireDatePresentedRule.js create mode 100644 dist/esm/models/SupplyCheckIsValidDistributionRule.d.ts create mode 100644 dist/esm/models/SupplyCheckIsValidDistributionRule.js create mode 100644 dist/esm/models/SupplyCheckPackageUnitWithDistributionRule.d.ts create mode 100644 dist/esm/models/SupplyCheckPackageUnitWithDistributionRule.js create mode 100644 dist/esm/models/SupplyCheckPlacementZoneRule.d.ts create mode 100644 dist/esm/models/SupplyCheckPlacementZoneRule.js create mode 100644 dist/esm/models/SupplyContent.d.ts create mode 100644 dist/esm/models/SupplyContent.js create mode 100644 dist/esm/models/SupplyETTN.d.ts create mode 100644 dist/esm/models/SupplyETTN.js create mode 100644 dist/esm/models/SupplyOrderCancelStatusResponseCancelOrderError.d.ts create mode 100644 dist/esm/models/SupplyOrderCancelStatusResponseCancelOrderError.js create mode 100644 dist/esm/models/SupplyOrderCancelStatusResponseCancelSupplyResults.d.ts create mode 100644 dist/esm/models/SupplyOrderCancelStatusResponseCancelSupplyResults.js create mode 100644 dist/esm/models/SupplyOrderCancelStatusResponseResult.d.ts create mode 100644 dist/esm/models/SupplyOrderCancelStatusResponseResult.js create mode 100644 dist/esm/models/SupplyOrderContentUpdateStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderContentUpdateStatusResponseStatusEnum.js create mode 100644 dist/esm/models/SupplyOrderContentUpdateValidationResponseApprovedItems.d.ts create mode 100644 dist/esm/models/SupplyOrderContentUpdateValidationResponseApprovedItems.js create mode 100644 dist/esm/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.js create mode 100644 dist/esm/models/SupplyOrderContentUpdateValidationResponseRejectedItems.d.ts create mode 100644 dist/esm/models/SupplyOrderContentUpdateValidationResponseRejectedItems.js create mode 100644 dist/esm/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.d.ts create mode 100644 dist/esm/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.js create mode 100644 dist/esm/models/SupplyOrderDetailsResponseOrderStateEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderDetailsResponseOrderStateEnum.js create mode 100644 dist/esm/models/SupplyOrderDetailsResponseOrderTags.d.ts create mode 100644 dist/esm/models/SupplyOrderDetailsResponseOrderTags.js create mode 100644 dist/esm/models/SupplyOrderDetailsResponseSupply.d.ts create mode 100644 dist/esm/models/SupplyOrderDetailsResponseSupply.js create mode 100644 dist/esm/models/SupplyOrderDetailsResponseTimeslotValue.d.ts create mode 100644 dist/esm/models/SupplyOrderDetailsResponseTimeslotValue.js create mode 100644 dist/esm/models/SupplyOrderDetailsResponseVehicle.d.ts create mode 100644 dist/esm/models/SupplyOrderDetailsResponseVehicle.js create mode 100644 dist/esm/models/SupplyOrderDetailsResponseVehicleValue.d.ts create mode 100644 dist/esm/models/SupplyOrderDetailsResponseVehicleValue.js create mode 100644 dist/esm/models/SupplyOrderGetResponseOrder.d.ts create mode 100644 dist/esm/models/SupplyOrderGetResponseOrder.js create mode 100644 dist/esm/models/SupplyOrderGetResponseTimeslotTZ.d.ts create mode 100644 dist/esm/models/SupplyOrderGetResponseTimeslotTZ.js create mode 100644 dist/esm/models/SupplyOrderListRequestFilter.d.ts create mode 100644 dist/esm/models/SupplyOrderListRequestFilter.js create mode 100644 dist/esm/models/SupplyOrderListRequestFilterStateEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderListRequestFilterStateEnum.js create mode 100644 dist/esm/models/SupplyOrderListRequestSortByEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderListRequestSortByEnum.js create mode 100644 dist/esm/models/SupplyOrderListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderListRequestSortDirEnum.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptRequest.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptRequest.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponse.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponse.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetRequest.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetRequest.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponse.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponse.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.js create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListRequest.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListRequest.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponse.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponse.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.js create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.d.ts create mode 100644 dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.js create mode 100644 dist/esm/models/SupplyOverdueReasonEnum.d.ts create mode 100644 dist/esm/models/SupplyOverdueReasonEnum.js create mode 100644 dist/esm/models/SupplyStateEnum.d.ts create mode 100644 dist/esm/models/SupplyStateEnum.js create mode 100644 dist/esm/models/SupplyStorageWarehouse.d.ts create mode 100644 dist/esm/models/SupplyStorageWarehouse.js create mode 100644 dist/esm/models/SupplySupplyTags.d.ts create mode 100644 dist/esm/models/SupplySupplyTags.js create mode 100644 dist/esm/models/SupplyTags.d.ts create mode 100644 dist/esm/models/SupplyTags.js create mode 100644 dist/esm/models/TaskAutoModeratedInfo.d.ts create mode 100644 dist/esm/models/TaskAutoModeratedInfo.js create mode 100644 dist/esm/models/TimeslotCanNotSetTimeslotReasonEnum.d.ts create mode 100644 dist/esm/models/TimeslotCanNotSetTimeslotReasonEnum.js create mode 100644 dist/esm/models/TimeslotFromRangeTimeslotFilterTypeEnum.d.ts create mode 100644 dist/esm/models/TimeslotFromRangeTimeslotFilterTypeEnum.js create mode 100644 dist/esm/models/TimeslotTZTimeslot.d.ts create mode 100644 dist/esm/models/TimeslotTZTimeslot.js create mode 100644 dist/esm/models/TimeslotTZTimezoneInfo.d.ts create mode 100644 dist/esm/models/TimeslotTZTimezoneInfo.js create mode 100644 dist/esm/models/TimeslotValueTimeslot.d.ts create mode 100644 dist/esm/models/TimeslotValueTimeslot.js create mode 100644 dist/esm/models/TimetableWorkingHours.d.ts create mode 100644 dist/esm/models/TimetableWorkingHours.js create mode 100644 dist/esm/models/TypeTimeOfDay.d.ts create mode 100644 dist/esm/models/TypeTimeOfDay.js create mode 100644 dist/esm/models/UploadPostingCodesRequestPostingLineExemplarInfo.d.ts create mode 100644 dist/esm/models/UploadPostingCodesRequestPostingLineExemplarInfo.js create mode 100644 dist/esm/models/UploadPostingCodesResponsePostingExemplarInfo.d.ts create mode 100644 dist/esm/models/UploadPostingCodesResponsePostingExemplarInfo.js create mode 100644 dist/esm/models/UtilizationDefectsMoney.d.ts create mode 100644 dist/esm/models/UtilizationDefectsMoney.js create mode 100644 dist/esm/models/UtilizationMoney.d.ts create mode 100644 dist/esm/models/UtilizationMoney.js create mode 100644 dist/esm/models/V1AddBarcodeRequest.d.ts create mode 100644 dist/esm/models/V1AddBarcodeRequest.js create mode 100644 dist/esm/models/V1AddBarcodeResponse.d.ts create mode 100644 dist/esm/models/V1AddBarcodeResponse.js create mode 100644 dist/esm/models/V1AddBarcodeResult.d.ts create mode 100644 dist/esm/models/V1AddBarcodeResult.js create mode 100644 dist/esm/models/V1AddStrategyItemsRequest.d.ts create mode 100644 dist/esm/models/V1AddStrategyItemsRequest.js create mode 100644 dist/esm/models/V1AddStrategyItemsResponse.d.ts create mode 100644 dist/esm/models/V1AddStrategyItemsResponse.js create mode 100644 dist/esm/models/V1AddStrategyItemsResponseResult.d.ts create mode 100644 dist/esm/models/V1AddStrategyItemsResponseResult.js create mode 100644 dist/esm/models/V1AnalyticsManageStocksRequest.d.ts create mode 100644 dist/esm/models/V1AnalyticsManageStocksRequest.js create mode 100644 dist/esm/models/V1AnalyticsManageStocksRequestFilter.d.ts create mode 100644 dist/esm/models/V1AnalyticsManageStocksRequestFilter.js create mode 100644 dist/esm/models/V1AnalyticsManageStocksResponse.d.ts create mode 100644 dist/esm/models/V1AnalyticsManageStocksResponse.js create mode 100644 dist/esm/models/V1AnalyticsManageStocksResponseItem.d.ts create mode 100644 dist/esm/models/V1AnalyticsManageStocksResponseItem.js create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsRequest.d.ts create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsRequest.js create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortBy.d.ts create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortBy.js create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortDir.d.ts create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortDir.js create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsResponse.d.ts create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsResponse.js create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.d.ts create mode 100644 dist/esm/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.js create mode 100644 dist/esm/models/V1AnalyticsProductQueriesRequest.d.ts create mode 100644 dist/esm/models/V1AnalyticsProductQueriesRequest.js create mode 100644 dist/esm/models/V1AnalyticsProductQueriesResponse.d.ts create mode 100644 dist/esm/models/V1AnalyticsProductQueriesResponse.js create mode 100644 dist/esm/models/V1AnalyticsProductQueriesResponseItem.d.ts create mode 100644 dist/esm/models/V1AnalyticsProductQueriesResponseItem.js create mode 100644 dist/esm/models/V1AnalyticsStocksRequest.d.ts create mode 100644 dist/esm/models/V1AnalyticsStocksRequest.js create mode 100644 dist/esm/models/V1AnalyticsStocksResponse.d.ts create mode 100644 dist/esm/models/V1AnalyticsStocksResponse.js create mode 100644 dist/esm/models/V1AnalyticsStocksResponseItem.d.ts create mode 100644 dist/esm/models/V1AnalyticsStocksResponseItem.js create mode 100644 dist/esm/models/V1AnalyticsTurnoverStocksRequest.d.ts create mode 100644 dist/esm/models/V1AnalyticsTurnoverStocksRequest.js create mode 100644 dist/esm/models/V1AnalyticsTurnoverStocksResponse.d.ts create mode 100644 dist/esm/models/V1AnalyticsTurnoverStocksResponse.js create mode 100644 dist/esm/models/V1AnalyticsTurnoverStocksResponseItem.d.ts create mode 100644 dist/esm/models/V1AnalyticsTurnoverStocksResponseItem.js create mode 100644 dist/esm/models/V1ApproveDeclineDiscountTasksResponse.d.ts create mode 100644 dist/esm/models/V1ApproveDeclineDiscountTasksResponse.js create mode 100644 dist/esm/models/V1ApproveDeclineDiscountTasksResponseResult.d.ts create mode 100644 dist/esm/models/V1ApproveDeclineDiscountTasksResponseResult.js create mode 100644 dist/esm/models/V1ApproveDiscountTasksRequest.d.ts create mode 100644 dist/esm/models/V1ApproveDiscountTasksRequest.js create mode 100644 dist/esm/models/V1ApproveDiscountTasksRequestTask.d.ts create mode 100644 dist/esm/models/V1ApproveDiscountTasksRequestTask.js create mode 100644 dist/esm/models/V1ArchiveDeclineReason.d.ts create mode 100644 dist/esm/models/V1ArchiveDeclineReason.js create mode 100644 dist/esm/models/V1ArchiveSkuSummary.d.ts create mode 100644 dist/esm/models/V1ArchiveSkuSummary.js create mode 100644 dist/esm/models/V1ArchiveStatusEnum.d.ts create mode 100644 dist/esm/models/V1ArchiveStatusEnum.js create mode 100644 dist/esm/models/V1ArchiveWarehouseFBSRequest.d.ts create mode 100644 dist/esm/models/V1ArchiveWarehouseFBSRequest.js create mode 100644 dist/esm/models/V1ArchiveWarehouseFBSResponse.d.ts create mode 100644 dist/esm/models/V1ArchiveWarehouseFBSResponse.js create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListRequest.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListRequest.js create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListRequestFilter.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListRequestFilter.js create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListResponse.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListResponse.js create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListResponsePosting.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListResponsePosting.js create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListResponsePostingProduct.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriagePostingListResponsePostingProduct.js create mode 100644 dist/esm/models/V1AssemblyCarriageProductListRequest.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriageProductListRequest.js create mode 100644 dist/esm/models/V1AssemblyCarriageProductListRequestFilter.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriageProductListRequestFilter.js create mode 100644 dist/esm/models/V1AssemblyCarriageProductListResponse.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriageProductListResponse.js create mode 100644 dist/esm/models/V1AssemblyCarriageProductListResponseProduct.d.ts create mode 100644 dist/esm/models/V1AssemblyCarriageProductListResponseProduct.js create mode 100644 dist/esm/models/V1AssemblyFbsPostingListRequest.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsPostingListRequest.js create mode 100644 dist/esm/models/V1AssemblyFbsPostingListRequestFilter.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsPostingListRequestFilter.js create mode 100644 dist/esm/models/V1AssemblyFbsPostingListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsPostingListRequestSortDirEnum.js create mode 100644 dist/esm/models/V1AssemblyFbsPostingListResponse.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsPostingListResponse.js create mode 100644 dist/esm/models/V1AssemblyFbsPostingListResponsePosting.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsPostingListResponsePosting.js create mode 100644 dist/esm/models/V1AssemblyFbsPostingListResponsePostingProduct.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsPostingListResponsePostingProduct.js create mode 100644 dist/esm/models/V1AssemblyFbsProductListRequest.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsProductListRequest.js create mode 100644 dist/esm/models/V1AssemblyFbsProductListRequestFilter.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsProductListRequestFilter.js create mode 100644 dist/esm/models/V1AssemblyFbsProductListRequestSortDirEnum.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsProductListRequestSortDirEnum.js create mode 100644 dist/esm/models/V1AssemblyFbsProductListResponse.d.ts create mode 100644 dist/esm/models/V1AssemblyFbsProductListResponse.js create mode 100644 dist/esm/models/V1Barcode.d.ts create mode 100644 dist/esm/models/V1Barcode.js create mode 100644 dist/esm/models/V1BundleItemErrorEnum.d.ts create mode 100644 dist/esm/models/V1BundleItemErrorEnum.js create mode 100644 dist/esm/models/V1BundleItemShipmentType.d.ts create mode 100644 dist/esm/models/V1BundleItemShipmentType.js create mode 100644 dist/esm/models/V1CancelReasonListByOrderRequest.d.ts create mode 100644 dist/esm/models/V1CancelReasonListByOrderRequest.js create mode 100644 dist/esm/models/V1CancelReasonListByOrderResponse.d.ts create mode 100644 dist/esm/models/V1CancelReasonListByOrderResponse.js create mode 100644 dist/esm/models/V1CancelReasonListByOrderResponseReason.d.ts create mode 100644 dist/esm/models/V1CancelReasonListByOrderResponseReason.js create mode 100644 dist/esm/models/V1CancelReasonListByOrderResponseReasonFbo.d.ts create mode 100644 dist/esm/models/V1CancelReasonListByOrderResponseReasonFbo.js create mode 100644 dist/esm/models/V1CancelReasonListByPostingRequest.d.ts create mode 100644 dist/esm/models/V1CancelReasonListByPostingRequest.js create mode 100644 dist/esm/models/V1CancelReasonListByPostingResponse.d.ts create mode 100644 dist/esm/models/V1CancelReasonListByPostingResponse.js create mode 100644 dist/esm/models/V1CancelReasonListByPostingResponseReason.d.ts create mode 100644 dist/esm/models/V1CancelReasonListByPostingResponseReason.js create mode 100644 dist/esm/models/V1CancelReasonListResponse.d.ts create mode 100644 dist/esm/models/V1CancelReasonListResponse.js create mode 100644 dist/esm/models/V1CancelReasonListResponseFbo.d.ts create mode 100644 dist/esm/models/V1CancelReasonListResponseFbo.js create mode 100644 dist/esm/models/V1CancellationState.d.ts create mode 100644 dist/esm/models/V1CancellationState.js create mode 100644 dist/esm/models/V1CancellationStateStatus.d.ts create mode 100644 dist/esm/models/V1CancellationStateStatus.js create mode 100644 dist/esm/models/V1CargoesCreateErrors.d.ts create mode 100644 dist/esm/models/V1CargoesCreateErrors.js create mode 100644 dist/esm/models/V1CargoesCreateRequest.d.ts create mode 100644 dist/esm/models/V1CargoesCreateRequest.js create mode 100644 dist/esm/models/V1CargoesCreateRequestCargo.d.ts create mode 100644 dist/esm/models/V1CargoesCreateRequestCargo.js create mode 100644 dist/esm/models/V1CargoesCreateRequestCargoValue.d.ts create mode 100644 dist/esm/models/V1CargoesCreateRequestCargoValue.js create mode 100644 dist/esm/models/V1CargoesCreateResponse.d.ts create mode 100644 dist/esm/models/V1CargoesCreateResponse.js create mode 100644 dist/esm/models/V1CargoesDeleteRequest.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteRequest.js create mode 100644 dist/esm/models/V1CargoesDeleteResponse.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteResponse.js create mode 100644 dist/esm/models/V1CargoesDeleteResponseError.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteResponseError.js create mode 100644 dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReason.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReason.js create mode 100644 dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.js create mode 100644 dist/esm/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.js create mode 100644 dist/esm/models/V1CargoesDeleteStatusRequest.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteStatusRequest.js create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponse.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponse.js create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponseError.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponseError.js create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.js create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.js create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.d.ts create mode 100644 dist/esm/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.js create mode 100644 dist/esm/models/V1CargoesGetRequest.d.ts create mode 100644 dist/esm/models/V1CargoesGetRequest.js create mode 100644 dist/esm/models/V1CargoesGetResponse.d.ts create mode 100644 dist/esm/models/V1CargoesGetResponse.js create mode 100644 dist/esm/models/V1CargoesLabelCreateErrors.d.ts create mode 100644 dist/esm/models/V1CargoesLabelCreateErrors.js create mode 100644 dist/esm/models/V1CargoesLabelCreateErrorsErrorReason.d.ts create mode 100644 dist/esm/models/V1CargoesLabelCreateErrorsErrorReason.js create mode 100644 dist/esm/models/V1CargoesLabelCreateRequest.d.ts create mode 100644 dist/esm/models/V1CargoesLabelCreateRequest.js create mode 100644 dist/esm/models/V1CargoesLabelCreateRequestCargo.d.ts create mode 100644 dist/esm/models/V1CargoesLabelCreateRequestCargo.js create mode 100644 dist/esm/models/V1CargoesLabelCreateResponse.d.ts create mode 100644 dist/esm/models/V1CargoesLabelCreateResponse.js create mode 100644 dist/esm/models/V1CargoesLabelGetRequest.d.ts create mode 100644 dist/esm/models/V1CargoesLabelGetRequest.js create mode 100644 dist/esm/models/V1CargoesLabelGetResponse.d.ts create mode 100644 dist/esm/models/V1CargoesLabelGetResponse.js create mode 100644 dist/esm/models/V1CargoesLabelGetResponseResult.d.ts create mode 100644 dist/esm/models/V1CargoesLabelGetResponseResult.js create mode 100644 dist/esm/models/V1CargoesLabelGetResponseStatus.d.ts create mode 100644 dist/esm/models/V1CargoesLabelGetResponseStatus.js create mode 100644 dist/esm/models/V1CargoesRulesGetRequest.d.ts create mode 100644 dist/esm/models/V1CargoesRulesGetRequest.js create mode 100644 dist/esm/models/V1CargoesRulesGetResponse.d.ts create mode 100644 dist/esm/models/V1CargoesRulesGetResponse.js create mode 100644 dist/esm/models/V1CarriageActDiscrepancyPDFRequest.d.ts create mode 100644 dist/esm/models/V1CarriageActDiscrepancyPDFRequest.js create mode 100644 dist/esm/models/V1CarriageActDiscrepancyPDFResponse.d.ts create mode 100644 dist/esm/models/V1CarriageActDiscrepancyPDFResponse.js create mode 100644 dist/esm/models/V1CarriageApproveRequest.d.ts create mode 100644 dist/esm/models/V1CarriageApproveRequest.js create mode 100644 dist/esm/models/V1CarriageCancelRequest.d.ts create mode 100644 dist/esm/models/V1CarriageCancelRequest.js create mode 100644 dist/esm/models/V1CarriageCancelResponse.d.ts create mode 100644 dist/esm/models/V1CarriageCancelResponse.js create mode 100644 dist/esm/models/V1CarriageCourierContactGetRequest.d.ts create mode 100644 dist/esm/models/V1CarriageCourierContactGetRequest.js create mode 100644 dist/esm/models/V1CarriageCourierContactGetResponse.d.ts create mode 100644 dist/esm/models/V1CarriageCourierContactGetResponse.js create mode 100644 dist/esm/models/V1CarriageCourierContactGetResponseContact.d.ts create mode 100644 dist/esm/models/V1CarriageCourierContactGetResponseContact.js create mode 100644 dist/esm/models/V1CarriageCourierContactSetRequest.d.ts create mode 100644 dist/esm/models/V1CarriageCourierContactSetRequest.js create mode 100644 dist/esm/models/V1CarriageCreateRequest.d.ts create mode 100644 dist/esm/models/V1CarriageCreateRequest.js create mode 100644 dist/esm/models/V1CarriageCreateResponse.d.ts create mode 100644 dist/esm/models/V1CarriageCreateResponse.js create mode 100644 dist/esm/models/V1CarriageDeliveryListRequest.d.ts create mode 100644 dist/esm/models/V1CarriageDeliveryListRequest.js create mode 100644 dist/esm/models/V1CarriageDeliveryListResponse.d.ts create mode 100644 dist/esm/models/V1CarriageDeliveryListResponse.js create mode 100644 dist/esm/models/V1CarriageDeliveryListResponseResult.d.ts create mode 100644 dist/esm/models/V1CarriageDeliveryListResponseResult.js create mode 100644 dist/esm/models/V1CarriageDeliveryListResponseResultCarriages.d.ts create mode 100644 dist/esm/models/V1CarriageDeliveryListResponseResultCarriages.js create mode 100644 dist/esm/models/V1CarriageDeliveryListResponseResultErrors.d.ts create mode 100644 dist/esm/models/V1CarriageDeliveryListResponseResultErrors.js create mode 100644 dist/esm/models/V1CarriageEttnStatusRequest.d.ts create mode 100644 dist/esm/models/V1CarriageEttnStatusRequest.js create mode 100644 dist/esm/models/V1CarriageEttnStatusResponse.d.ts create mode 100644 dist/esm/models/V1CarriageEttnStatusResponse.js create mode 100644 dist/esm/models/V1Certificate.d.ts create mode 100644 dist/esm/models/V1Certificate.js create mode 100644 dist/esm/models/V1ClusterType.d.ts create mode 100644 dist/esm/models/V1ClusterType.js create mode 100644 dist/esm/models/V1CommentCreateRequest.d.ts create mode 100644 dist/esm/models/V1CommentCreateRequest.js create mode 100644 dist/esm/models/V1CommentCreateResponse.d.ts create mode 100644 dist/esm/models/V1CommentCreateResponse.js create mode 100644 dist/esm/models/V1CommentDeleteRequest.d.ts create mode 100644 dist/esm/models/V1CommentDeleteRequest.js create mode 100644 dist/esm/models/V1CommentListRequest.d.ts create mode 100644 dist/esm/models/V1CommentListRequest.js create mode 100644 dist/esm/models/V1CommentListResponse.d.ts create mode 100644 dist/esm/models/V1CommentListResponse.js create mode 100644 dist/esm/models/V1CommentSort.d.ts create mode 100644 dist/esm/models/V1CommentSort.js create mode 100644 dist/esm/models/V1Competitor.d.ts create mode 100644 dist/esm/models/V1Competitor.js create mode 100644 dist/esm/models/V1CreateDocumentB2BSalesJSONReportRequest.d.ts create mode 100644 dist/esm/models/V1CreateDocumentB2BSalesJSONReportRequest.js create mode 100644 dist/esm/models/V1CreateDocumentB2BSalesJSONReportResponse.d.ts create mode 100644 dist/esm/models/V1CreateDocumentB2BSalesJSONReportResponse.js create mode 100644 dist/esm/models/V1CreateDocumentB2BSalesReportRequest.d.ts create mode 100644 dist/esm/models/V1CreateDocumentB2BSalesReportRequest.js create mode 100644 dist/esm/models/V1CreateLabelBatchRequest.d.ts create mode 100644 dist/esm/models/V1CreateLabelBatchRequest.js create mode 100644 dist/esm/models/V1CreateLabelBatchResponse.d.ts create mode 100644 dist/esm/models/V1CreateLabelBatchResponse.js create mode 100644 dist/esm/models/V1CreateLabelBatchResponseResult.d.ts create mode 100644 dist/esm/models/V1CreateLabelBatchResponseResult.js create mode 100644 dist/esm/models/V1CreateMutualSettlementReportRequest.d.ts create mode 100644 dist/esm/models/V1CreateMutualSettlementReportRequest.js create mode 100644 dist/esm/models/V1CreatePlacementByProductsReportRequest.d.ts create mode 100644 dist/esm/models/V1CreatePlacementByProductsReportRequest.js create mode 100644 dist/esm/models/V1CreatePlacementByProductsReportResponse.d.ts create mode 100644 dist/esm/models/V1CreatePlacementByProductsReportResponse.js create mode 100644 dist/esm/models/V1CreatePlacementBySuppliesReportRequest.d.ts create mode 100644 dist/esm/models/V1CreatePlacementBySuppliesReportRequest.js create mode 100644 dist/esm/models/V1CreatePlacementBySuppliesReportResponse.d.ts create mode 100644 dist/esm/models/V1CreatePlacementBySuppliesReportResponse.js create mode 100644 dist/esm/models/V1CreatePricingStrategyRequest.d.ts create mode 100644 dist/esm/models/V1CreatePricingStrategyRequest.js create mode 100644 dist/esm/models/V1CreatePricingStrategyResponse.d.ts create mode 100644 dist/esm/models/V1CreatePricingStrategyResponse.js create mode 100644 dist/esm/models/V1CreatePricingStrategyResponseResult.d.ts create mode 100644 dist/esm/models/V1CreatePricingStrategyResponseResult.js create mode 100644 dist/esm/models/V1CreateStockByWarehouseReportRequest.d.ts create mode 100644 dist/esm/models/V1CreateStockByWarehouseReportRequest.js create mode 100644 dist/esm/models/V1CreateType.d.ts create mode 100644 dist/esm/models/V1CreateType.js create mode 100644 dist/esm/models/V1CreateWarehouseFBSRequest.d.ts create mode 100644 dist/esm/models/V1CreateWarehouseFBSRequest.js create mode 100644 dist/esm/models/V1CreateWarehouseFBSResponse.d.ts create mode 100644 dist/esm/models/V1CreateWarehouseFBSResponse.js create mode 100644 dist/esm/models/V1DayOfWeek.d.ts create mode 100644 dist/esm/models/V1DayOfWeek.js create mode 100644 dist/esm/models/V1DeclineDiscountTasksRequest.d.ts create mode 100644 dist/esm/models/V1DeclineDiscountTasksRequest.js create mode 100644 dist/esm/models/V1DeclineDiscountTasksRequestTask.d.ts create mode 100644 dist/esm/models/V1DeclineDiscountTasksRequestTask.js create mode 100644 dist/esm/models/V1DeleteStrategyItemsResponse.d.ts create mode 100644 dist/esm/models/V1DeleteStrategyItemsResponse.js create mode 100644 dist/esm/models/V1DeleteStrategyItemsResponseResult.d.ts create mode 100644 dist/esm/models/V1DeleteStrategyItemsResponseResult.js create mode 100644 dist/esm/models/V1DeliveryCheckRequest.d.ts create mode 100644 dist/esm/models/V1DeliveryCheckRequest.js create mode 100644 dist/esm/models/V1DeliveryCheckResponse.d.ts create mode 100644 dist/esm/models/V1DeliveryCheckResponse.js create mode 100644 dist/esm/models/V1DeliveryCheckoutRequest.d.ts create mode 100644 dist/esm/models/V1DeliveryCheckoutRequest.js create mode 100644 dist/esm/models/V1DeliveryCheckoutRequestDeliveryType.d.ts create mode 100644 dist/esm/models/V1DeliveryCheckoutRequestDeliveryType.js create mode 100644 dist/esm/models/V1DeliveryCheckoutRequestItem.d.ts create mode 100644 dist/esm/models/V1DeliveryCheckoutRequestItem.js create mode 100644 dist/esm/models/V1DeliveryCheckoutResponse.d.ts create mode 100644 dist/esm/models/V1DeliveryCheckoutResponse.js create mode 100644 dist/esm/models/V1DeliveryDetailsDirectDetails.d.ts create mode 100644 dist/esm/models/V1DeliveryDetailsDirectDetails.js create mode 100644 dist/esm/models/V1DeliveryDetailsPickUpDetails.d.ts create mode 100644 dist/esm/models/V1DeliveryDetailsPickUpDetails.js create mode 100644 dist/esm/models/V1DeliveryMapRequest.d.ts create mode 100644 dist/esm/models/V1DeliveryMapRequest.js create mode 100644 dist/esm/models/V1DeliveryMapRequestViewport.d.ts create mode 100644 dist/esm/models/V1DeliveryMapRequestViewport.js create mode 100644 dist/esm/models/V1DeliveryMapResponse.d.ts create mode 100644 dist/esm/models/V1DeliveryMapResponse.js create mode 100644 dist/esm/models/V1DeliveryPointInfoRequest.d.ts create mode 100644 dist/esm/models/V1DeliveryPointInfoRequest.js create mode 100644 dist/esm/models/V1DeliveryPointInfoResponse.d.ts create mode 100644 dist/esm/models/V1DeliveryPointInfoResponse.js create mode 100644 dist/esm/models/V1DeliveryPointInfoResponsePoint.d.ts create mode 100644 dist/esm/models/V1DeliveryPointInfoResponsePoint.js create mode 100644 dist/esm/models/V1DeliveryPointListResponse.d.ts create mode 100644 dist/esm/models/V1DeliveryPointListResponse.js create mode 100644 dist/esm/models/V1DeliveryPointListResponsePoint.d.ts create mode 100644 dist/esm/models/V1DeliveryPointListResponsePoint.js create mode 100644 dist/esm/models/V1DiscountTaskStatus.d.ts create mode 100644 dist/esm/models/V1DiscountTaskStatus.js create mode 100644 dist/esm/models/V1DraftClusterListRequest.d.ts create mode 100644 dist/esm/models/V1DraftClusterListRequest.js create mode 100644 dist/esm/models/V1DraftClusterListResponse.d.ts create mode 100644 dist/esm/models/V1DraftClusterListResponse.js create mode 100644 dist/esm/models/V1DraftClusterListResponseCluster.d.ts create mode 100644 dist/esm/models/V1DraftClusterListResponseCluster.js create mode 100644 dist/esm/models/V1DraftClusterListResponseWarehouse.d.ts create mode 100644 dist/esm/models/V1DraftClusterListResponseWarehouse.js create mode 100644 dist/esm/models/V1DraftCreateCommonResponse.d.ts create mode 100644 dist/esm/models/V1DraftCreateCommonResponse.js create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequest.d.ts create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequest.js create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestClusterInfo.d.ts create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestClusterInfo.js create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestClusterInfoItem.d.ts create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestClusterInfoItem.js create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.d.ts create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.js create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfo.d.ts create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfo.js create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.d.ts create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.js create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.d.ts create mode 100644 dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.js create mode 100644 dist/esm/models/V1DraftDirectCreateRequest.d.ts create mode 100644 dist/esm/models/V1DraftDirectCreateRequest.js create mode 100644 dist/esm/models/V1DraftDirectCreateRequestClusterInfo.d.ts create mode 100644 dist/esm/models/V1DraftDirectCreateRequestClusterInfo.js create mode 100644 dist/esm/models/V1DraftDirectCreateRequestClusterInfoItem.d.ts create mode 100644 dist/esm/models/V1DraftDirectCreateRequestClusterInfoItem.js create mode 100644 dist/esm/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.d.ts create mode 100644 dist/esm/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.js create mode 100644 dist/esm/models/V1DraftGetWarehouseFboListRequest.d.ts create mode 100644 dist/esm/models/V1DraftGetWarehouseFboListRequest.js create mode 100644 dist/esm/models/V1DraftGetWarehouseFboListResponse.d.ts create mode 100644 dist/esm/models/V1DraftGetWarehouseFboListResponse.js create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequest.d.ts create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequest.js create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfo.d.ts create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfo.js create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfoItem.d.ts create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfoItem.js create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.d.ts create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.js create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfo.d.ts create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfo.js create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.d.ts create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.js create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.d.ts create mode 100644 dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.js create mode 100644 dist/esm/models/V1DraftStatusEnum.d.ts create mode 100644 dist/esm/models/V1DraftStatusEnum.js create mode 100644 dist/esm/models/V1FbpArchiveGetRequest.d.ts create mode 100644 dist/esm/models/V1FbpArchiveGetRequest.js create mode 100644 dist/esm/models/V1FbpArchiveGetResponse.d.ts create mode 100644 dist/esm/models/V1FbpArchiveGetResponse.js create mode 100644 dist/esm/models/V1FbpArchiveListRequest.d.ts create mode 100644 dist/esm/models/V1FbpArchiveListRequest.js create mode 100644 dist/esm/models/V1FbpArchiveListResponse.d.ts create mode 100644 dist/esm/models/V1FbpArchiveListResponse.js create mode 100644 dist/esm/models/V1FbpArchiveListResponseItem.d.ts create mode 100644 dist/esm/models/V1FbpArchiveListResponseItem.js create mode 100644 dist/esm/models/V1FbpAvailableTimeslotListRequest.d.ts create mode 100644 dist/esm/models/V1FbpAvailableTimeslotListRequest.js create mode 100644 dist/esm/models/V1FbpAvailableTimeslotListResponse.d.ts create mode 100644 dist/esm/models/V1FbpAvailableTimeslotListResponse.js create mode 100644 dist/esm/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.d.ts create mode 100644 dist/esm/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.js create mode 100644 dist/esm/models/V1FbpCheckActStateRequest.d.ts create mode 100644 dist/esm/models/V1FbpCheckActStateRequest.js create mode 100644 dist/esm/models/V1FbpCheckActStateResponse.d.ts create mode 100644 dist/esm/models/V1FbpCheckActStateResponse.js create mode 100644 dist/esm/models/V1FbpCheckActStateResponseStatus.d.ts create mode 100644 dist/esm/models/V1FbpCheckActStateResponseStatus.js create mode 100644 dist/esm/models/V1FbpCheckConsignmentNoteStateRequest.d.ts create mode 100644 dist/esm/models/V1FbpCheckConsignmentNoteStateRequest.js create mode 100644 dist/esm/models/V1FbpCheckConsignmentNoteStateResponse.d.ts create mode 100644 dist/esm/models/V1FbpCheckConsignmentNoteStateResponse.js create mode 100644 dist/esm/models/V1FbpCreateActRequest.d.ts create mode 100644 dist/esm/models/V1FbpCreateActRequest.js create mode 100644 dist/esm/models/V1FbpCreateActResponse.d.ts create mode 100644 dist/esm/models/V1FbpCreateActResponse.js create mode 100644 dist/esm/models/V1FbpCreateConsignmentNoteRequest.d.ts create mode 100644 dist/esm/models/V1FbpCreateConsignmentNoteRequest.js create mode 100644 dist/esm/models/V1FbpCreateConsignmentNoteResponse.d.ts create mode 100644 dist/esm/models/V1FbpCreateConsignmentNoteResponse.js create mode 100644 dist/esm/models/V1FbpCreateLabelRequest.d.ts create mode 100644 dist/esm/models/V1FbpCreateLabelRequest.js create mode 100644 dist/esm/models/V1FbpCreateLabelResponse.d.ts create mode 100644 dist/esm/models/V1FbpCreateLabelResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectCreateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectCreateRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectCreateRequestDirectDetails.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectCreateRequestDirectDetails.js create mode 100644 dist/esm/models/V1FbpDraftDirectCreateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectCreateResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectDeleteRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectDeleteRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectDeleteResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectDeleteResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectGetTimeslotRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectGetTimeslotRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectGetTimeslotResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectGetTimeslotResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.js create mode 100644 dist/esm/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.js create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateRequestSkuItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateRequestSkuItem.js create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateResponseApprovedItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateResponseApprovedItem.js create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateResponseRejectedItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectProductValidateResponseRejectedItem.js create mode 100644 dist/esm/models/V1FbpDraftDirectRegistrateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectRegistrateRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectRegistrateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectRegistrateResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationError.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationError.js create mode 100644 dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.js create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.js create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvCreateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvCreateResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvEditRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvEditRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvEditResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectSellerDlvEditResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectTimeslotEditRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectTimeslotEditRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectTimeslotEditResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectTimeslotEditResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.js create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvCreateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvCreateRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.js create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvCreateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvCreateResponse.js create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvEditRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvEditRequest.js create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvEditResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDirectTplDlvEditResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffCreateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffCreateRequest.js create mode 100644 dist/esm/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.js create mode 100644 dist/esm/models/V1FbpDraftDropOffCreateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffCreateResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffDeleteRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffDeleteRequest.js create mode 100644 dist/esm/models/V1FbpDraftDropOffDeleteResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffDeleteResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffDlvEditRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffDlvEditRequest.js create mode 100644 dist/esm/models/V1FbpDraftDropOffDlvEditResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffDlvEditResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffPointListRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffPointListRequest.js create mode 100644 dist/esm/models/V1FbpDraftDropOffPointListResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffPointListResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableRequest.js create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendar.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendar.js create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.js create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.js create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.js create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateRequest.js create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateRequestSkuItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateRequestSkuItem.js create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.js create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.js create mode 100644 dist/esm/models/V1FbpDraftDropOffProvinceListRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffProvinceListRequest.js create mode 100644 dist/esm/models/V1FbpDraftDropOffProvinceListResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffProvinceListResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffRegistrateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffRegistrateRequest.js create mode 100644 dist/esm/models/V1FbpDraftDropOffRegistrateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffRegistrateResponse.js create mode 100644 dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.js create mode 100644 dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.d.ts create mode 100644 dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.js create mode 100644 dist/esm/models/V1FbpDraftGetRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftGetRequest.js create mode 100644 dist/esm/models/V1FbpDraftGetResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftGetResponse.js create mode 100644 dist/esm/models/V1FbpDraftListRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftListRequest.js create mode 100644 dist/esm/models/V1FbpDraftListResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftListResponse.js create mode 100644 dist/esm/models/V1FbpDraftListResponseItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftListResponseItem.js create mode 100644 dist/esm/models/V1FbpDraftPickUpDeleteRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpDeleteRequest.js create mode 100644 dist/esm/models/V1FbpDraftPickUpDeleteResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpDeleteResponse.js create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateRequest.js create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateRequestSkuItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateRequestSkuItem.js create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateResponse.js create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.js create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.js create mode 100644 dist/esm/models/V1FbpDraftPickUpRegistrateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpRegistrateRequest.js create mode 100644 dist/esm/models/V1FbpDraftPickUpRegistrateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpRegistrateResponse.js create mode 100644 dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.js create mode 100644 dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.js create mode 100644 dist/esm/models/V1FbpDraftPickupCreateRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickupCreateRequest.js create mode 100644 dist/esm/models/V1FbpDraftPickupCreateRequestDeliveryDetails.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickupCreateRequestDeliveryDetails.js create mode 100644 dist/esm/models/V1FbpDraftPickupCreateResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickupCreateResponse.js create mode 100644 dist/esm/models/V1FbpDraftPickupDlvEditRequest.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickupDlvEditRequest.js create mode 100644 dist/esm/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.js create mode 100644 dist/esm/models/V1FbpDraftPickupDlvEditResponse.d.ts create mode 100644 dist/esm/models/V1FbpDraftPickupDlvEditResponse.js create mode 100644 dist/esm/models/V1FbpEditTimeslotRequest.d.ts create mode 100644 dist/esm/models/V1FbpEditTimeslotRequest.js create mode 100644 dist/esm/models/V1FbpEditTimeslotResponse.d.ts create mode 100644 dist/esm/models/V1FbpEditTimeslotResponse.js create mode 100644 dist/esm/models/V1FbpEditTimeslotResponseReserveFailureType.d.ts create mode 100644 dist/esm/models/V1FbpEditTimeslotResponseReserveFailureType.js create mode 100644 dist/esm/models/V1FbpGetLabelRequest.d.ts create mode 100644 dist/esm/models/V1FbpGetLabelRequest.js create mode 100644 dist/esm/models/V1FbpGetLabelResponse.d.ts create mode 100644 dist/esm/models/V1FbpGetLabelResponse.js create mode 100644 dist/esm/models/V1FbpOrderDirectCancelRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderDirectCancelRequest.js create mode 100644 dist/esm/models/V1FbpOrderDirectCancelResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderDirectCancelResponse.js create mode 100644 dist/esm/models/V1FbpOrderDirectSellerDlvEditRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderDirectSellerDlvEditRequest.js create mode 100644 dist/esm/models/V1FbpOrderDirectSellerDlvEditResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderDirectSellerDlvEditResponse.js create mode 100644 dist/esm/models/V1FbpOrderDropOffCancelRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffCancelRequest.js create mode 100644 dist/esm/models/V1FbpOrderDropOffCancelResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffCancelResponse.js create mode 100644 dist/esm/models/V1FbpOrderDropOffDlvEditRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffDlvEditRequest.js create mode 100644 dist/esm/models/V1FbpOrderDropOffDlvEditResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffDlvEditResponse.js create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableRequest.js create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponse.js create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendar.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendar.js create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.js create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.js create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.d.ts create mode 100644 dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.js create mode 100644 dist/esm/models/V1FbpOrderGetRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderGetRequest.js create mode 100644 dist/esm/models/V1FbpOrderGetResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderGetResponse.js create mode 100644 dist/esm/models/V1FbpOrderListRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderListRequest.js create mode 100644 dist/esm/models/V1FbpOrderListResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderListResponse.js create mode 100644 dist/esm/models/V1FbpOrderListResponseItem.d.ts create mode 100644 dist/esm/models/V1FbpOrderListResponseItem.js create mode 100644 dist/esm/models/V1FbpOrderPickUpCancelRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderPickUpCancelRequest.js create mode 100644 dist/esm/models/V1FbpOrderPickUpCancelResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderPickUpCancelResponse.js create mode 100644 dist/esm/models/V1FbpOrderPickUpDlvEditRequest.d.ts create mode 100644 dist/esm/models/V1FbpOrderPickUpDlvEditRequest.js create mode 100644 dist/esm/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.d.ts create mode 100644 dist/esm/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.js create mode 100644 dist/esm/models/V1FbpOrderPickUpDlvEditResponse.d.ts create mode 100644 dist/esm/models/V1FbpOrderPickUpDlvEditResponse.js create mode 100644 dist/esm/models/V1FbpWarehouseListResponse.d.ts create mode 100644 dist/esm/models/V1FbpWarehouseListResponse.js create mode 100644 dist/esm/models/V1FbsPostingProductExemplarUpdateRequest.d.ts create mode 100644 dist/esm/models/V1FbsPostingProductExemplarUpdateRequest.js create mode 100644 dist/esm/models/V1GenerateBarcodeRequest.d.ts create mode 100644 dist/esm/models/V1GenerateBarcodeRequest.js create mode 100644 dist/esm/models/V1GenerateBarcodeResponse.d.ts create mode 100644 dist/esm/models/V1GenerateBarcodeResponse.js create mode 100644 dist/esm/models/V1GenerateBarcodeResult.d.ts create mode 100644 dist/esm/models/V1GenerateBarcodeResult.js create mode 100644 dist/esm/models/V1GetAttributeValuesRequest.d.ts create mode 100644 dist/esm/models/V1GetAttributeValuesRequest.js create mode 100644 dist/esm/models/V1GetAttributeValuesResponse.d.ts create mode 100644 dist/esm/models/V1GetAttributeValuesResponse.js create mode 100644 dist/esm/models/V1GetAttributeValuesResponseDictionaryValue.d.ts create mode 100644 dist/esm/models/V1GetAttributeValuesResponseDictionaryValue.js create mode 100644 dist/esm/models/V1GetAttributesRequest.d.ts create mode 100644 dist/esm/models/V1GetAttributesRequest.js create mode 100644 dist/esm/models/V1GetAttributesResponse.d.ts create mode 100644 dist/esm/models/V1GetAttributesResponse.js create mode 100644 dist/esm/models/V1GetAttributesResponseAttribute.d.ts create mode 100644 dist/esm/models/V1GetAttributesResponseAttribute.js create mode 100644 dist/esm/models/V1GetCompensationReportRequest.d.ts create mode 100644 dist/esm/models/V1GetCompensationReportRequest.js create mode 100644 dist/esm/models/V1GetCompetitorsRequest.d.ts create mode 100644 dist/esm/models/V1GetCompetitorsRequest.js create mode 100644 dist/esm/models/V1GetCompetitorsResponse.d.ts create mode 100644 dist/esm/models/V1GetCompetitorsResponse.js create mode 100644 dist/esm/models/V1GetDecompensationReportRequest.d.ts create mode 100644 dist/esm/models/V1GetDecompensationReportRequest.js create mode 100644 dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Request.d.ts create mode 100644 dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Request.js create mode 100644 dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Response.d.ts create mode 100644 dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Response.js create mode 100644 dist/esm/models/V1GetDiscountTaskListRequest.d.ts create mode 100644 dist/esm/models/V1GetDiscountTaskListRequest.js create mode 100644 dist/esm/models/V1GetDiscountTaskListResponse.d.ts create mode 100644 dist/esm/models/V1GetDiscountTaskListResponse.js create mode 100644 dist/esm/models/V1GetDiscountTaskListResponseTask.d.ts create mode 100644 dist/esm/models/V1GetDiscountTaskListResponseTask.js create mode 100644 dist/esm/models/V1GetEtgbRequest.d.ts create mode 100644 dist/esm/models/V1GetEtgbRequest.js create mode 100644 dist/esm/models/V1GetEtgbResponse.d.ts create mode 100644 dist/esm/models/V1GetEtgbResponse.js create mode 100644 dist/esm/models/V1GetFBSRatingIndexInfoV1Response.d.ts create mode 100644 dist/esm/models/V1GetFBSRatingIndexInfoV1Response.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1Request.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1Request.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1Response.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1Response.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseAccruedMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseAccruedMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseFeeMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseFeeMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponsePartnerMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponsePartnerMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseReturnsMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseReturnsMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseRevenueMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseRevenueMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseSalesMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseSalesMoney.js create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseServicesMoney.d.ts create mode 100644 dist/esm/models/V1GetFinanceBalanceV1ResponseServicesMoney.js create mode 100644 dist/esm/models/V1GetFinanceProductsBuyoutRequest.d.ts create mode 100644 dist/esm/models/V1GetFinanceProductsBuyoutRequest.js create mode 100644 dist/esm/models/V1GetFinanceProductsBuyoutResponse.d.ts create mode 100644 dist/esm/models/V1GetFinanceProductsBuyoutResponse.js create mode 100644 dist/esm/models/V1GetLabelBatchRequest.d.ts create mode 100644 dist/esm/models/V1GetLabelBatchRequest.js create mode 100644 dist/esm/models/V1GetLabelBatchResponse.d.ts create mode 100644 dist/esm/models/V1GetLabelBatchResponse.js create mode 100644 dist/esm/models/V1GetLabelBatchResponseResult.d.ts create mode 100644 dist/esm/models/V1GetLabelBatchResponseResult.js create mode 100644 dist/esm/models/V1GetProductInfoDiscountedRequest.d.ts create mode 100644 dist/esm/models/V1GetProductInfoDiscountedRequest.js create mode 100644 dist/esm/models/V1GetProductInfoDiscountedResponse.d.ts create mode 100644 dist/esm/models/V1GetProductInfoDiscountedResponse.js create mode 100644 dist/esm/models/V1GetProductInfoDiscountedResponseItem.d.ts create mode 100644 dist/esm/models/V1GetProductInfoDiscountedResponseItem.js create mode 100644 dist/esm/models/V1GetProductInfoSubscriptionRequest.d.ts create mode 100644 dist/esm/models/V1GetProductInfoSubscriptionRequest.js create mode 100644 dist/esm/models/V1GetProductInfoSubscriptionResponse.d.ts create mode 100644 dist/esm/models/V1GetProductInfoSubscriptionResponse.js create mode 100644 dist/esm/models/V1GetProductInfoSubscriptionResponseResult.d.ts create mode 100644 dist/esm/models/V1GetProductInfoSubscriptionResponseResult.js create mode 100644 dist/esm/models/V1GetProductPlacementZoneInfoRequest.d.ts create mode 100644 dist/esm/models/V1GetProductPlacementZoneInfoRequest.js create mode 100644 dist/esm/models/V1GetProductPlacementZoneInfoResponse.d.ts create mode 100644 dist/esm/models/V1GetProductPlacementZoneInfoResponse.js create mode 100644 dist/esm/models/V1GetProductRatingBySkuRequest.d.ts create mode 100644 dist/esm/models/V1GetProductRatingBySkuRequest.js create mode 100644 dist/esm/models/V1GetProductRatingBySkuResponse.d.ts create mode 100644 dist/esm/models/V1GetProductRatingBySkuResponse.js create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityRequest.d.ts create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityRequest.js create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityResponse.d.ts create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityResponse.js create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairways.d.ts create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairways.js create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.d.ts create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.js create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.d.ts create mode 100644 dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.js create mode 100644 dist/esm/models/V1GetRealizationReportByDayRequest.d.ts create mode 100644 dist/esm/models/V1GetRealizationReportByDayRequest.js create mode 100644 dist/esm/models/V1GetRealizationReportPostingRequest.d.ts create mode 100644 dist/esm/models/V1GetRealizationReportPostingRequest.js create mode 100644 dist/esm/models/V1GetRealizationReportPostingResponse.d.ts create mode 100644 dist/esm/models/V1GetRealizationReportPostingResponse.js create mode 100644 dist/esm/models/V1GetRealizationReportPostingResponseRow.d.ts create mode 100644 dist/esm/models/V1GetRealizationReportPostingResponseRow.js create mode 100644 dist/esm/models/V1GetReceiptRequest.d.ts create mode 100644 dist/esm/models/V1GetReceiptRequest.js create mode 100644 dist/esm/models/V1GetReceiptResponse.d.ts create mode 100644 dist/esm/models/V1GetReceiptResponse.js create mode 100644 dist/esm/models/V1GetRestrictionsRequest.d.ts create mode 100644 dist/esm/models/V1GetRestrictionsRequest.js create mode 100644 dist/esm/models/V1GetRestrictionsResponse.d.ts create mode 100644 dist/esm/models/V1GetRestrictionsResponse.js create mode 100644 dist/esm/models/V1GetReturnsListRequest.d.ts create mode 100644 dist/esm/models/V1GetReturnsListRequest.js create mode 100644 dist/esm/models/V1GetReturnsListResponse.d.ts create mode 100644 dist/esm/models/V1GetReturnsListResponse.js create mode 100644 dist/esm/models/V1GetStrategyIDsByItemIDsResponse.d.ts create mode 100644 dist/esm/models/V1GetStrategyIDsByItemIDsResponse.js create mode 100644 dist/esm/models/V1GetStrategyIDsByItemIDsResponseResult.d.ts create mode 100644 dist/esm/models/V1GetStrategyIDsByItemIDsResponseResult.js create mode 100644 dist/esm/models/V1GetStrategyItemInfoRequest.d.ts create mode 100644 dist/esm/models/V1GetStrategyItemInfoRequest.js create mode 100644 dist/esm/models/V1GetStrategyItemInfoResponse.d.ts create mode 100644 dist/esm/models/V1GetStrategyItemInfoResponse.js create mode 100644 dist/esm/models/V1GetStrategyItemInfoResponseResult.d.ts create mode 100644 dist/esm/models/V1GetStrategyItemInfoResponseResult.js create mode 100644 dist/esm/models/V1GetStrategyItemsResponse.d.ts create mode 100644 dist/esm/models/V1GetStrategyItemsResponse.js create mode 100644 dist/esm/models/V1GetStrategyItemsResponseResult.d.ts create mode 100644 dist/esm/models/V1GetStrategyItemsResponseResult.js create mode 100644 dist/esm/models/V1GetStrategyListRequest.d.ts create mode 100644 dist/esm/models/V1GetStrategyListRequest.js create mode 100644 dist/esm/models/V1GetStrategyListResponse.d.ts create mode 100644 dist/esm/models/V1GetStrategyListResponse.js create mode 100644 dist/esm/models/V1GetStrategyResponse.d.ts create mode 100644 dist/esm/models/V1GetStrategyResponse.js create mode 100644 dist/esm/models/V1GetStrategyResponseResult.d.ts create mode 100644 dist/esm/models/V1GetStrategyResponseResult.js create mode 100644 dist/esm/models/V1GetSupplierReturnsSummaryReportRequest.d.ts create mode 100644 dist/esm/models/V1GetSupplierReturnsSummaryReportRequest.js create mode 100644 dist/esm/models/V1GetSupplierReturnsSummaryReportResponse.d.ts create mode 100644 dist/esm/models/V1GetSupplierReturnsSummaryReportResponse.js create mode 100644 dist/esm/models/V1GetSupplierReturnsSummaryReportResponseRow.d.ts create mode 100644 dist/esm/models/V1GetSupplierReturnsSummaryReportResponseRow.js create mode 100644 dist/esm/models/V1GetSupplyOrderBundleRequest.d.ts create mode 100644 dist/esm/models/V1GetSupplyOrderBundleRequest.js create mode 100644 dist/esm/models/V1GetSupplyOrderBundleResponse.d.ts create mode 100644 dist/esm/models/V1GetSupplyOrderBundleResponse.js create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotStatusRequest.d.ts create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotStatusRequest.js create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotStatusResponse.d.ts create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotStatusResponse.js create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotStatusResponseStatus.d.ts create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotStatusResponseStatus.js create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotsRequest.d.ts create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotsRequest.js create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotsResponse.d.ts create mode 100644 dist/esm/models/V1GetSupplyOrderTimeslotsResponse.js create mode 100644 dist/esm/models/V1GetSupplyReturnsSummaryReportRequest.d.ts create mode 100644 dist/esm/models/V1GetSupplyReturnsSummaryReportRequest.js create mode 100644 dist/esm/models/V1GetSupplyReturnsSummaryReportResponse.d.ts create mode 100644 dist/esm/models/V1GetSupplyReturnsSummaryReportResponse.js create mode 100644 dist/esm/models/V1GetSupplyReturnsSummaryReportResponseRow.d.ts create mode 100644 dist/esm/models/V1GetSupplyReturnsSummaryReportResponseRow.js create mode 100644 dist/esm/models/V1GetTreeRequest.d.ts create mode 100644 dist/esm/models/V1GetTreeRequest.js create mode 100644 dist/esm/models/V1GetTreeResponse.d.ts create mode 100644 dist/esm/models/V1GetTreeResponse.js create mode 100644 dist/esm/models/V1GetTreeResponseItem.d.ts create mode 100644 dist/esm/models/V1GetTreeResponseItem.js create mode 100644 dist/esm/models/V1GetWarehouseFBSOperationStatusRequest.d.ts create mode 100644 dist/esm/models/V1GetWarehouseFBSOperationStatusRequest.js create mode 100644 dist/esm/models/V1GetWarehouseFBSOperationStatusResponse.d.ts create mode 100644 dist/esm/models/V1GetWarehouseFBSOperationStatusResponse.js create mode 100644 dist/esm/models/V1GiveoutBarcodeResetResponse.d.ts create mode 100644 dist/esm/models/V1GiveoutBarcodeResetResponse.js create mode 100644 dist/esm/models/V1GiveoutGetBarcodeResponse.d.ts create mode 100644 dist/esm/models/V1GiveoutGetBarcodeResponse.js create mode 100644 dist/esm/models/V1GiveoutGetPDFResponse.d.ts create mode 100644 dist/esm/models/V1GiveoutGetPDFResponse.js create mode 100644 dist/esm/models/V1GiveoutGetPNGResponse.d.ts create mode 100644 dist/esm/models/V1GiveoutGetPNGResponse.js create mode 100644 dist/esm/models/V1GiveoutInfoRequest.d.ts create mode 100644 dist/esm/models/V1GiveoutInfoRequest.js create mode 100644 dist/esm/models/V1GiveoutInfoResponse.d.ts create mode 100644 dist/esm/models/V1GiveoutInfoResponse.js create mode 100644 dist/esm/models/V1GiveoutIsEnabledResponse.d.ts create mode 100644 dist/esm/models/V1GiveoutIsEnabledResponse.js create mode 100644 dist/esm/models/V1GiveoutListRequest.d.ts create mode 100644 dist/esm/models/V1GiveoutListRequest.js create mode 100644 dist/esm/models/V1GiveoutListResponse.d.ts create mode 100644 dist/esm/models/V1GiveoutListResponse.js create mode 100644 dist/esm/models/V1InvoiceDeleteRequest.d.ts create mode 100644 dist/esm/models/V1InvoiceDeleteRequest.js create mode 100644 dist/esm/models/V1InvoiceDeleteResponse.d.ts create mode 100644 dist/esm/models/V1InvoiceDeleteResponse.js create mode 100644 dist/esm/models/V1InvoiceFileUploadRequest.d.ts create mode 100644 dist/esm/models/V1InvoiceFileUploadRequest.js create mode 100644 dist/esm/models/V1InvoiceFileUploadResponse.d.ts create mode 100644 dist/esm/models/V1InvoiceFileUploadResponse.js create mode 100644 dist/esm/models/V1InvoiceGetRequest.d.ts create mode 100644 dist/esm/models/V1InvoiceGetRequest.js create mode 100644 dist/esm/models/V1ItemError.d.ts create mode 100644 dist/esm/models/V1ItemError.js create mode 100644 dist/esm/models/V1ItemIDsRequest.d.ts create mode 100644 dist/esm/models/V1ItemIDsRequest.js create mode 100644 dist/esm/models/V1ItemResponse.d.ts create mode 100644 dist/esm/models/V1ItemResponse.js create mode 100644 dist/esm/models/V1ItemSfboAttribute.d.ts create mode 100644 dist/esm/models/V1ItemSfboAttribute.js create mode 100644 dist/esm/models/V1ItemSortField.d.ts create mode 100644 dist/esm/models/V1ItemSortField.js create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.d.ts create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.js create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.d.ts create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.js create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.d.ts create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.js create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.d.ts create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.js create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.d.ts create mode 100644 dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.js create mode 100644 dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.d.ts create mode 100644 dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.js create mode 100644 dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.d.ts create mode 100644 dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.js create mode 100644 dist/esm/models/V1ListFBSRatingIndexPostingsV1Request.d.ts create mode 100644 dist/esm/models/V1ListFBSRatingIndexPostingsV1Request.js create mode 100644 dist/esm/models/V1ListFBSRatingIndexPostingsV1Response.d.ts create mode 100644 dist/esm/models/V1ListFBSRatingIndexPostingsV1Response.js create mode 100644 dist/esm/models/V1ListPostingCodesRequest.d.ts create mode 100644 dist/esm/models/V1ListPostingCodesRequest.js create mode 100644 dist/esm/models/V1ListPostingCodesResponse.d.ts create mode 100644 dist/esm/models/V1ListPostingCodesResponse.js create mode 100644 dist/esm/models/V1Money.d.ts create mode 100644 dist/esm/models/V1Money.js create mode 100644 dist/esm/models/V1OrderAttentionTypeEnum.d.ts create mode 100644 dist/esm/models/V1OrderAttentionTypeEnum.js create mode 100644 dist/esm/models/V1OrderCancelCheckRequest.d.ts create mode 100644 dist/esm/models/V1OrderCancelCheckRequest.js create mode 100644 dist/esm/models/V1OrderCancelCheckResponse.d.ts create mode 100644 dist/esm/models/V1OrderCancelCheckResponse.js create mode 100644 dist/esm/models/V1OrderCancelRequest.d.ts create mode 100644 dist/esm/models/V1OrderCancelRequest.js create mode 100644 dist/esm/models/V1OrderCancelResponse.d.ts create mode 100644 dist/esm/models/V1OrderCancelResponse.js create mode 100644 dist/esm/models/V1OrderCancelStatusRequest.d.ts create mode 100644 dist/esm/models/V1OrderCancelStatusRequest.js create mode 100644 dist/esm/models/V1OrderCancelStatusResponse.d.ts create mode 100644 dist/esm/models/V1OrderCancelStatusResponse.js create mode 100644 dist/esm/models/V1OrderCreateRequest.d.ts create mode 100644 dist/esm/models/V1OrderCreateRequest.js create mode 100644 dist/esm/models/V1OrderCreateResponse.d.ts create mode 100644 dist/esm/models/V1OrderCreateResponse.js create mode 100644 dist/esm/models/V1OrderDraftValidationError.d.ts create mode 100644 dist/esm/models/V1OrderDraftValidationError.js create mode 100644 dist/esm/models/V1OrderDraftValidationErrorErrorType.d.ts create mode 100644 dist/esm/models/V1OrderDraftValidationErrorErrorType.js create mode 100644 dist/esm/models/V1OrderErrorTypeEnum.d.ts create mode 100644 dist/esm/models/V1OrderErrorTypeEnum.js create mode 100644 dist/esm/models/V1OrderState.d.ts create mode 100644 dist/esm/models/V1OrderState.js create mode 100644 dist/esm/models/V1OrderStatusEnum.d.ts create mode 100644 dist/esm/models/V1OrderStatusEnum.js create mode 100644 dist/esm/models/V1OrderValidationError.d.ts create mode 100644 dist/esm/models/V1OrderValidationError.js create mode 100644 dist/esm/models/V1OrderValidationErrorErrorType.d.ts create mode 100644 dist/esm/models/V1OrderValidationErrorErrorType.js create mode 100644 dist/esm/models/V1PolygonDeleteRequest.d.ts create mode 100644 dist/esm/models/V1PolygonDeleteRequest.js create mode 100644 dist/esm/models/V1PolygonListRequest.d.ts create mode 100644 dist/esm/models/V1PolygonListRequest.js create mode 100644 dist/esm/models/V1PolygonListResponse.d.ts create mode 100644 dist/esm/models/V1PolygonListResponse.js create mode 100644 dist/esm/models/V1PolygonTimeCoordinatesUpdateRequest.d.ts create mode 100644 dist/esm/models/V1PolygonTimeCoordinatesUpdateRequest.js create mode 100644 dist/esm/models/V1PolygonTimeSetRequest.d.ts create mode 100644 dist/esm/models/V1PolygonTimeSetRequest.js create mode 100644 dist/esm/models/V1PostingCancelRequest.d.ts create mode 100644 dist/esm/models/V1PostingCancelRequest.js create mode 100644 dist/esm/models/V1PostingCancelResponse.d.ts create mode 100644 dist/esm/models/V1PostingCancelResponse.js create mode 100644 dist/esm/models/V1PostingCancelStatusRequest.d.ts create mode 100644 dist/esm/models/V1PostingCancelStatusRequest.js create mode 100644 dist/esm/models/V1PostingCancelStatusResponse.d.ts create mode 100644 dist/esm/models/V1PostingCancelStatusResponse.js create mode 100644 dist/esm/models/V1PostingFBSPickupCodeVerifyRequest.d.ts create mode 100644 dist/esm/models/V1PostingFBSPickupCodeVerifyRequest.js create mode 100644 dist/esm/models/V1PostingFBSPickupCodeVerifyResponse.d.ts create mode 100644 dist/esm/models/V1PostingFBSPickupCodeVerifyResponse.js create mode 100644 dist/esm/models/V1PostingFbsProductTraceableAttributeRequest.d.ts create mode 100644 dist/esm/models/V1PostingFbsProductTraceableAttributeRequest.js create mode 100644 dist/esm/models/V1PostingFbsProductTraceableAttributeResponse.d.ts create mode 100644 dist/esm/models/V1PostingFbsProductTraceableAttributeResponse.js create mode 100644 dist/esm/models/V1PostingFbsProductTraceableAttributeResponseProduct.d.ts create mode 100644 dist/esm/models/V1PostingFbsProductTraceableAttributeResponseProduct.js create mode 100644 dist/esm/models/V1PostingFbsSplitRequest.d.ts create mode 100644 dist/esm/models/V1PostingFbsSplitRequest.js create mode 100644 dist/esm/models/V1PostingFbsSplitRequestPosting.d.ts create mode 100644 dist/esm/models/V1PostingFbsSplitRequestPosting.js create mode 100644 dist/esm/models/V1PostingFbsSplitResponse.d.ts create mode 100644 dist/esm/models/V1PostingFbsSplitResponse.js create mode 100644 dist/esm/models/V1PostingFbsSplitResponsePosting.d.ts create mode 100644 dist/esm/models/V1PostingFbsSplitResponsePosting.js create mode 100644 dist/esm/models/V1PostingFbsSplitResponsePostingParent.d.ts create mode 100644 dist/esm/models/V1PostingFbsSplitResponsePostingParent.js create mode 100644 dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.d.ts create mode 100644 dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.js create mode 100644 dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsRequest.d.ts create mode 100644 dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsRequest.js create mode 100644 dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsResponse.d.ts create mode 100644 dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsResponse.js create mode 100644 dist/esm/models/V1PostingFbsTimeslotSetNewTimeslot.d.ts create mode 100644 dist/esm/models/V1PostingFbsTimeslotSetNewTimeslot.js create mode 100644 dist/esm/models/V1PostingFbsTimeslotSetRequest.d.ts create mode 100644 dist/esm/models/V1PostingFbsTimeslotSetRequest.js create mode 100644 dist/esm/models/V1PostingFbsTimeslotSetResponse.d.ts create mode 100644 dist/esm/models/V1PostingFbsTimeslotSetResponse.js create mode 100644 dist/esm/models/V1PostingFbsTraceableSplitRequest.d.ts create mode 100644 dist/esm/models/V1PostingFbsTraceableSplitRequest.js create mode 100644 dist/esm/models/V1PostingFbsTraceableSplitResponse.d.ts create mode 100644 dist/esm/models/V1PostingFbsTraceableSplitResponse.js create mode 100644 dist/esm/models/V1PostingFbsTraceableSplitResponsePosting.d.ts create mode 100644 dist/esm/models/V1PostingFbsTraceableSplitResponsePosting.js create mode 100644 dist/esm/models/V1PostingMarksRequest.d.ts create mode 100644 dist/esm/models/V1PostingMarksRequest.js create mode 100644 dist/esm/models/V1PostingMarksResponse.d.ts create mode 100644 dist/esm/models/V1PostingMarksResponse.js create mode 100644 dist/esm/models/V1PostingUnpaidLegalProductListRequest.d.ts create mode 100644 dist/esm/models/V1PostingUnpaidLegalProductListRequest.js create mode 100644 dist/esm/models/V1PostingUnpaidLegalProductListResponse.d.ts create mode 100644 dist/esm/models/V1PostingUnpaidLegalProductListResponse.js create mode 100644 dist/esm/models/V1PostingUnpaidLegalProductListResponseProducts.d.ts create mode 100644 dist/esm/models/V1PostingUnpaidLegalProductListResponseProducts.js create mode 100644 dist/esm/models/V1PremiumScores.d.ts create mode 100644 dist/esm/models/V1PremiumScores.js create mode 100644 dist/esm/models/V1ProductActionTimerStatusRequest.d.ts create mode 100644 dist/esm/models/V1ProductActionTimerStatusRequest.js create mode 100644 dist/esm/models/V1ProductActionTimerStatusResponse.d.ts create mode 100644 dist/esm/models/V1ProductActionTimerStatusResponse.js create mode 100644 dist/esm/models/V1ProductActionTimerStatusResponseStatuses.d.ts create mode 100644 dist/esm/models/V1ProductActionTimerStatusResponseStatuses.js create mode 100644 dist/esm/models/V1ProductActionTimerUpdateRequest.d.ts create mode 100644 dist/esm/models/V1ProductActionTimerUpdateRequest.js create mode 100644 dist/esm/models/V1ProductCertificateDeleteRequest.d.ts create mode 100644 dist/esm/models/V1ProductCertificateDeleteRequest.js create mode 100644 dist/esm/models/V1ProductCertificateDeleteResponse.d.ts create mode 100644 dist/esm/models/V1ProductCertificateDeleteResponse.js create mode 100644 dist/esm/models/V1ProductCertificateDeleteResponseResult.d.ts create mode 100644 dist/esm/models/V1ProductCertificateDeleteResponseResult.js create mode 100644 dist/esm/models/V1ProductCertificateInfoRequest.d.ts create mode 100644 dist/esm/models/V1ProductCertificateInfoRequest.js create mode 100644 dist/esm/models/V1ProductCertificateInfoResponse.d.ts create mode 100644 dist/esm/models/V1ProductCertificateInfoResponse.js create mode 100644 dist/esm/models/V1ProductCertificateListRequest.d.ts create mode 100644 dist/esm/models/V1ProductCertificateListRequest.js create mode 100644 dist/esm/models/V1ProductCertificateListResponse.d.ts create mode 100644 dist/esm/models/V1ProductCertificateListResponse.js create mode 100644 dist/esm/models/V1ProductCertificateListResponseResult.d.ts create mode 100644 dist/esm/models/V1ProductCertificateListResponseResult.js create mode 100644 dist/esm/models/V1ProductCertificateProductStatusListResponse.d.ts create mode 100644 dist/esm/models/V1ProductCertificateProductStatusListResponse.js create mode 100644 dist/esm/models/V1ProductCertificateProductsListRequest.d.ts create mode 100644 dist/esm/models/V1ProductCertificateProductsListRequest.js create mode 100644 dist/esm/models/V1ProductCertificateProductsListResponse.d.ts create mode 100644 dist/esm/models/V1ProductCertificateProductsListResponse.js create mode 100644 dist/esm/models/V1ProductCertificateProductsListResponseResult.d.ts create mode 100644 dist/esm/models/V1ProductCertificateProductsListResponseResult.js create mode 100644 dist/esm/models/V1ProductCertificateRejectionReasonsListResponse.d.ts create mode 100644 dist/esm/models/V1ProductCertificateRejectionReasonsListResponse.js create mode 100644 dist/esm/models/V1ProductCertificateStatusListResponse.d.ts create mode 100644 dist/esm/models/V1ProductCertificateStatusListResponse.js create mode 100644 dist/esm/models/V1ProductCertificateUnbindRequest.d.ts create mode 100644 dist/esm/models/V1ProductCertificateUnbindRequest.js create mode 100644 dist/esm/models/V1ProductCertificateUnbindResponse.d.ts create mode 100644 dist/esm/models/V1ProductCertificateUnbindResponse.js create mode 100644 dist/esm/models/V1ProductFbsSplit.d.ts create mode 100644 dist/esm/models/V1ProductFbsSplit.js create mode 100644 dist/esm/models/V1ProductGetRelatedSKURequest.d.ts create mode 100644 dist/esm/models/V1ProductGetRelatedSKURequest.js create mode 100644 dist/esm/models/V1ProductGetRelatedSKUResponse.d.ts create mode 100644 dist/esm/models/V1ProductGetRelatedSKUResponse.js create mode 100644 dist/esm/models/V1ProductGetRelatedSKUResponseError.d.ts create mode 100644 dist/esm/models/V1ProductGetRelatedSKUResponseError.js create mode 100644 dist/esm/models/V1ProductGetRelatedSKUResponseItem.d.ts create mode 100644 dist/esm/models/V1ProductGetRelatedSKUResponseItem.js create mode 100644 dist/esm/models/V1ProductInfoWarehouseStocksRequest.d.ts create mode 100644 dist/esm/models/V1ProductInfoWarehouseStocksRequest.js create mode 100644 dist/esm/models/V1ProductInfoWarehouseStocksResponse.d.ts create mode 100644 dist/esm/models/V1ProductInfoWarehouseStocksResponse.js create mode 100644 dist/esm/models/V1ProductInfoWrongVolumeRequest.d.ts create mode 100644 dist/esm/models/V1ProductInfoWrongVolumeRequest.js create mode 100644 dist/esm/models/V1ProductInfoWrongVolumeResponse.d.ts create mode 100644 dist/esm/models/V1ProductInfoWrongVolumeResponse.js create mode 100644 dist/esm/models/V1ProductPricesDetailsRequest.d.ts create mode 100644 dist/esm/models/V1ProductPricesDetailsRequest.js create mode 100644 dist/esm/models/V1ProductPricesDetailsResponse.d.ts create mode 100644 dist/esm/models/V1ProductPricesDetailsResponse.js create mode 100644 dist/esm/models/V1ProductPricesDetailsResponsePrice.d.ts create mode 100644 dist/esm/models/V1ProductPricesDetailsResponsePrice.js create mode 100644 dist/esm/models/V1ProductUpdateAttributesRequest.d.ts create mode 100644 dist/esm/models/V1ProductUpdateAttributesRequest.js create mode 100644 dist/esm/models/V1ProductUpdateAttributesRequestAttribute.d.ts create mode 100644 dist/esm/models/V1ProductUpdateAttributesRequestAttribute.js create mode 100644 dist/esm/models/V1ProductUpdateAttributesRequestItem.d.ts create mode 100644 dist/esm/models/V1ProductUpdateAttributesRequestItem.js create mode 100644 dist/esm/models/V1ProductUpdateAttributesRequestValue.d.ts create mode 100644 dist/esm/models/V1ProductUpdateAttributesRequestValue.js create mode 100644 dist/esm/models/V1ProductUpdateAttributesResponse.d.ts create mode 100644 dist/esm/models/V1ProductUpdateAttributesResponse.js create mode 100644 dist/esm/models/V1ProductUpdateDiscountRequest.d.ts create mode 100644 dist/esm/models/V1ProductUpdateDiscountRequest.js create mode 100644 dist/esm/models/V1ProductUpdateDiscountResponse.d.ts create mode 100644 dist/esm/models/V1ProductUpdateDiscountResponse.js create mode 100644 dist/esm/models/V1ProductUpdateOfferIdRequest.d.ts create mode 100644 dist/esm/models/V1ProductUpdateOfferIdRequest.js create mode 100644 dist/esm/models/V1ProductUpdateOfferIdResponse.d.ts create mode 100644 dist/esm/models/V1ProductUpdateOfferIdResponse.js create mode 100644 dist/esm/models/V1ProductUpdateOfferIdResponseError.d.ts create mode 100644 dist/esm/models/V1ProductUpdateOfferIdResponseError.js create mode 100644 dist/esm/models/V1QuestionAnswerCreateDefault.d.ts create mode 100644 dist/esm/models/V1QuestionAnswerCreateDefault.js create mode 100644 dist/esm/models/V1QuestionAnswerCreateRequest.d.ts create mode 100644 dist/esm/models/V1QuestionAnswerCreateRequest.js create mode 100644 dist/esm/models/V1QuestionAnswerCreateResponse.d.ts create mode 100644 dist/esm/models/V1QuestionAnswerCreateResponse.js create mode 100644 dist/esm/models/V1QuestionAnswerDeleteRequest.d.ts create mode 100644 dist/esm/models/V1QuestionAnswerDeleteRequest.js create mode 100644 dist/esm/models/V1QuestionAnswerListRequest.d.ts create mode 100644 dist/esm/models/V1QuestionAnswerListRequest.js create mode 100644 dist/esm/models/V1QuestionAnswerListResponse.d.ts create mode 100644 dist/esm/models/V1QuestionAnswerListResponse.js create mode 100644 dist/esm/models/V1QuestionAnswerListResponseAnswers.d.ts create mode 100644 dist/esm/models/V1QuestionAnswerListResponseAnswers.js create mode 100644 dist/esm/models/V1QuestionChangeStatusRequest.d.ts create mode 100644 dist/esm/models/V1QuestionChangeStatusRequest.js create mode 100644 dist/esm/models/V1QuestionCountResponse.d.ts create mode 100644 dist/esm/models/V1QuestionCountResponse.js create mode 100644 dist/esm/models/V1QuestionInfoRequest.d.ts create mode 100644 dist/esm/models/V1QuestionInfoRequest.js create mode 100644 dist/esm/models/V1QuestionInfoResponse.d.ts create mode 100644 dist/esm/models/V1QuestionInfoResponse.js create mode 100644 dist/esm/models/V1QuestionListRequest.d.ts create mode 100644 dist/esm/models/V1QuestionListRequest.js create mode 100644 dist/esm/models/V1QuestionListRequestFilter.d.ts create mode 100644 dist/esm/models/V1QuestionListRequestFilter.js create mode 100644 dist/esm/models/V1QuestionListResponse.d.ts create mode 100644 dist/esm/models/V1QuestionListResponse.js create mode 100644 dist/esm/models/V1QuestionListResponseQuestions.d.ts create mode 100644 dist/esm/models/V1QuestionListResponseQuestions.js create mode 100644 dist/esm/models/V1QuestionTopSkuRequest.d.ts create mode 100644 dist/esm/models/V1QuestionTopSkuRequest.js create mode 100644 dist/esm/models/V1QuestionTopSkuResponse.d.ts create mode 100644 dist/esm/models/V1QuestionTopSkuResponse.js create mode 100644 dist/esm/models/V1Rating.d.ts create mode 100644 dist/esm/models/V1Rating.js create mode 100644 dist/esm/models/V1RatingHistoryV1Request.d.ts create mode 100644 dist/esm/models/V1RatingHistoryV1Request.js create mode 100644 dist/esm/models/V1RatingHistoryV1Response.d.ts create mode 100644 dist/esm/models/V1RatingHistoryV1Response.js create mode 100644 dist/esm/models/V1RatingItem.d.ts create mode 100644 dist/esm/models/V1RatingItem.js create mode 100644 dist/esm/models/V1RatingStatus.d.ts create mode 100644 dist/esm/models/V1RatingStatus.js create mode 100644 dist/esm/models/V1RatingSummaryV1Response.d.ts create mode 100644 dist/esm/models/V1RatingSummaryV1Response.js create mode 100644 dist/esm/models/V1ReceiptsSellerListRequest.d.ts create mode 100644 dist/esm/models/V1ReceiptsSellerListRequest.js create mode 100644 dist/esm/models/V1ReceiptsSellerListResponse.d.ts create mode 100644 dist/esm/models/V1ReceiptsSellerListResponse.js create mode 100644 dist/esm/models/V1ReportMarkedProductsSalesCreateRequest.d.ts create mode 100644 dist/esm/models/V1ReportMarkedProductsSalesCreateRequest.js create mode 100644 dist/esm/models/V1Restriction.d.ts create mode 100644 dist/esm/models/V1Restriction.js create mode 100644 dist/esm/models/V1ReturnsCompanyFbsInfoRequest.d.ts create mode 100644 dist/esm/models/V1ReturnsCompanyFbsInfoRequest.js create mode 100644 dist/esm/models/V1ReturnsCompanyFbsInfoRequestFilter.d.ts create mode 100644 dist/esm/models/V1ReturnsCompanyFbsInfoRequestFilter.js create mode 100644 dist/esm/models/V1ReturnsCompanyFbsInfoResponse.d.ts create mode 100644 dist/esm/models/V1ReturnsCompanyFbsInfoResponse.js create mode 100644 dist/esm/models/V1ReturnsRfbsActionSetRequest.d.ts create mode 100644 dist/esm/models/V1ReturnsRfbsActionSetRequest.js create mode 100644 dist/esm/models/V1ReturnsSettingsUtilizationHistoryResponse.d.ts create mode 100644 dist/esm/models/V1ReturnsSettingsUtilizationHistoryResponse.js create mode 100644 dist/esm/models/V1ReturnsSettingsUtilizationInfoResponse.d.ts create mode 100644 dist/esm/models/V1ReturnsSettingsUtilizationInfoResponse.js create mode 100644 dist/esm/models/V1ReturnsSettingsUtilizationUpdateRequest.d.ts create mode 100644 dist/esm/models/V1ReturnsSettingsUtilizationUpdateRequest.js create mode 100644 dist/esm/models/V1ReviewChangeStatusRequest.d.ts create mode 100644 dist/esm/models/V1ReviewChangeStatusRequest.js create mode 100644 dist/esm/models/V1ReviewCountResponse.d.ts create mode 100644 dist/esm/models/V1ReviewCountResponse.js create mode 100644 dist/esm/models/V1ReviewInfoRequest.d.ts create mode 100644 dist/esm/models/V1ReviewInfoRequest.js create mode 100644 dist/esm/models/V1ReviewInfoResponse.d.ts create mode 100644 dist/esm/models/V1ReviewInfoResponse.js create mode 100644 dist/esm/models/V1ReviewListRequest.d.ts create mode 100644 dist/esm/models/V1ReviewListRequest.js create mode 100644 dist/esm/models/V1ReviewListResponse.d.ts create mode 100644 dist/esm/models/V1ReviewListResponse.js create mode 100644 dist/esm/models/V1RolesByTokenResponse.d.ts create mode 100644 dist/esm/models/V1RolesByTokenResponse.js create mode 100644 dist/esm/models/V1SearchAttributeValuesRequest.d.ts create mode 100644 dist/esm/models/V1SearchAttributeValuesRequest.js create mode 100644 dist/esm/models/V1SearchAttributeValuesResponse.d.ts create mode 100644 dist/esm/models/V1SearchAttributeValuesResponse.js create mode 100644 dist/esm/models/V1SearchQueriesTextRequest.d.ts create mode 100644 dist/esm/models/V1SearchQueriesTextRequest.js create mode 100644 dist/esm/models/V1SearchQueriesTextResponse.d.ts create mode 100644 dist/esm/models/V1SearchQueriesTextResponse.js create mode 100644 dist/esm/models/V1SearchQueriesTextResponseSearchQuery.d.ts create mode 100644 dist/esm/models/V1SearchQueriesTextResponseSearchQuery.js create mode 100644 dist/esm/models/V1SearchQueriesTopRequest.d.ts create mode 100644 dist/esm/models/V1SearchQueriesTopRequest.js create mode 100644 dist/esm/models/V1SearchQueriesTopResponse.d.ts create mode 100644 dist/esm/models/V1SearchQueriesTopResponse.js create mode 100644 dist/esm/models/V1SearchQueriesTopResponseSearchQuery.d.ts create mode 100644 dist/esm/models/V1SearchQueriesTopResponseSearchQuery.js create mode 100644 dist/esm/models/V1SellerActionsArchiveRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsArchiveRequest.js create mode 100644 dist/esm/models/V1SellerActionsChangeActivityRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsChangeActivityRequest.js create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountRequest.js create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountResponse.js create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequest.js create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.js create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountWithConditionResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateDiscountWithConditionResponse.js create mode 100644 dist/esm/models/V1SellerActionsCreateInstallmentRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateInstallmentRequest.js create mode 100644 dist/esm/models/V1SellerActionsCreateInstallmentResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateInstallmentResponse.js create mode 100644 dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequest.js create mode 100644 dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.js create mode 100644 dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.js create mode 100644 dist/esm/models/V1SellerActionsCreateMultiLevelDiscountResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateMultiLevelDiscountResponse.js create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherRequest.js create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.js create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameter.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameter.js create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.js create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsCreateVoucherResponse.js create mode 100644 dist/esm/models/V1SellerActionsListRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsListRequest.js create mode 100644 dist/esm/models/V1SellerActionsListResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsListResponse.js create mode 100644 dist/esm/models/V1SellerActionsProductsAddRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsAddRequest.js create mode 100644 dist/esm/models/V1SellerActionsProductsAddRequestProduct.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsAddRequestProduct.js create mode 100644 dist/esm/models/V1SellerActionsProductsCandidatesRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsCandidatesRequest.js create mode 100644 dist/esm/models/V1SellerActionsProductsCandidatesResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsCandidatesResponse.js create mode 100644 dist/esm/models/V1SellerActionsProductsCandidatesResponseProduct.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsCandidatesResponseProduct.js create mode 100644 dist/esm/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.js create mode 100644 dist/esm/models/V1SellerActionsProductsDeleteRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsDeleteRequest.js create mode 100644 dist/esm/models/V1SellerActionsProductsListRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsListRequest.js create mode 100644 dist/esm/models/V1SellerActionsProductsListResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsListResponse.js create mode 100644 dist/esm/models/V1SellerActionsProductsListResponseProduct.d.ts create mode 100644 dist/esm/models/V1SellerActionsProductsListResponseProduct.js create mode 100644 dist/esm/models/V1SellerActionsUpdateDiscountRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateDiscountRequest.js create mode 100644 dist/esm/models/V1SellerActionsUpdateDiscountRequestActionParameters.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateDiscountRequestActionParameters.js create mode 100644 dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequest.js create mode 100644 dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.js create mode 100644 dist/esm/models/V1SellerActionsUpdateInstallmentRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateInstallmentRequest.js create mode 100644 dist/esm/models/V1SellerActionsUpdateInstallmentRequestActionParameters.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateInstallmentRequestActionParameters.js create mode 100644 dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequest.js create mode 100644 dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.js create mode 100644 dist/esm/models/V1SellerActionsUpdateVoucherRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateVoucherRequest.js create mode 100644 dist/esm/models/V1SellerActionsUpdateVoucherRequestActionParameters.d.ts create mode 100644 dist/esm/models/V1SellerActionsUpdateVoucherRequestActionParameters.js create mode 100644 dist/esm/models/V1SellerActionsVoucherGetRequest.d.ts create mode 100644 dist/esm/models/V1SellerActionsVoucherGetRequest.js create mode 100644 dist/esm/models/V1SellerActionsVoucherGetResponse.d.ts create mode 100644 dist/esm/models/V1SellerActionsVoucherGetResponse.js create mode 100644 dist/esm/models/V1SellerInfoResponse.d.ts create mode 100644 dist/esm/models/V1SellerInfoResponse.js create mode 100644 dist/esm/models/V1SellerOzonLogisticsInfoResponse.d.ts create mode 100644 dist/esm/models/V1SellerOzonLogisticsInfoResponse.js create mode 100644 dist/esm/models/V1SetPostingCutoffRequest.d.ts create mode 100644 dist/esm/models/V1SetPostingCutoffRequest.js create mode 100644 dist/esm/models/V1SetPostingCutoffResponse.d.ts create mode 100644 dist/esm/models/V1SetPostingCutoffResponse.js create mode 100644 dist/esm/models/V1SetPostingsRequest.d.ts create mode 100644 dist/esm/models/V1SetPostingsRequest.js create mode 100644 dist/esm/models/V1SetPostingsResponse.d.ts create mode 100644 dist/esm/models/V1SetPostingsResponse.js create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityRequest.d.ts create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityRequest.js create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairways.d.ts create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairways.js create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.d.ts create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.js create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.d.ts create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.js create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityResponse.d.ts create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityResponse.js create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityResponseError.d.ts create mode 100644 dist/esm/models/V1SetProductStairwayDiscountByQuantityResponseError.js create mode 100644 dist/esm/models/V1SetVehicleError.d.ts create mode 100644 dist/esm/models/V1SetVehicleError.js create mode 100644 dist/esm/models/V1StatusCodeNamePair.d.ts create mode 100644 dist/esm/models/V1StatusCodeNamePair.js create mode 100644 dist/esm/models/V1StatusCodeNamePairRejection.d.ts create mode 100644 dist/esm/models/V1StatusCodeNamePairRejection.js create mode 100644 dist/esm/models/V1StatusCodeNamePairStatuses.d.ts create mode 100644 dist/esm/models/V1StatusCodeNamePairStatuses.js create mode 100644 dist/esm/models/V1StocksImportRequest.d.ts create mode 100644 dist/esm/models/V1StocksImportRequest.js create mode 100644 dist/esm/models/V1StocksImportResponse.d.ts create mode 100644 dist/esm/models/V1StocksImportResponse.js create mode 100644 dist/esm/models/V1StrategyRequest.d.ts create mode 100644 dist/esm/models/V1StrategyRequest.js create mode 100644 dist/esm/models/V1SupplierAvailableWarehousesResponse.d.ts create mode 100644 dist/esm/models/V1SupplierAvailableWarehousesResponse.js create mode 100644 dist/esm/models/V1SupplyOrderCancelRequest.d.ts create mode 100644 dist/esm/models/V1SupplyOrderCancelRequest.js create mode 100644 dist/esm/models/V1SupplyOrderCancelResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderCancelResponse.js create mode 100644 dist/esm/models/V1SupplyOrderCancelStatusRequest.d.ts create mode 100644 dist/esm/models/V1SupplyOrderCancelStatusRequest.js create mode 100644 dist/esm/models/V1SupplyOrderCancelStatusResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderCancelStatusResponse.js create mode 100644 dist/esm/models/V1SupplyOrderCancelStatusResponseStatus.d.ts create mode 100644 dist/esm/models/V1SupplyOrderCancelStatusResponseStatus.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateRequest.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateRequest.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateRequestItem.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateRequestItem.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateResponse.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateResponseErrorEnum.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateResponseErrorEnum.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateStatusRequest.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateStatusRequest.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateStatusResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateStatusResponse.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateValidationRequest.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateValidationRequest.js create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateValidationResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderContentUpdateValidationResponse.js create mode 100644 dist/esm/models/V1SupplyOrderDetailsRequest.d.ts create mode 100644 dist/esm/models/V1SupplyOrderDetailsRequest.js create mode 100644 dist/esm/models/V1SupplyOrderDetailsResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderDetailsResponse.js create mode 100644 dist/esm/models/V1SupplyOrderDetailsResponseTimeslot.d.ts create mode 100644 dist/esm/models/V1SupplyOrderDetailsResponseTimeslot.js create mode 100644 dist/esm/models/V1SupplyOrderPassCreateRequest.d.ts create mode 100644 dist/esm/models/V1SupplyOrderPassCreateRequest.js create mode 100644 dist/esm/models/V1SupplyOrderPassCreateResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderPassCreateResponse.js create mode 100644 dist/esm/models/V1SupplyOrderPassStatusRequest.d.ts create mode 100644 dist/esm/models/V1SupplyOrderPassStatusRequest.js create mode 100644 dist/esm/models/V1SupplyOrderPassStatusResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderPassStatusResponse.js create mode 100644 dist/esm/models/V1SupplyOrderPassStatusResponseStatus.d.ts create mode 100644 dist/esm/models/V1SupplyOrderPassStatusResponseStatus.js create mode 100644 dist/esm/models/V1SupplyOrderStatusCounterResponse.d.ts create mode 100644 dist/esm/models/V1SupplyOrderStatusCounterResponse.js create mode 100644 dist/esm/models/V1SupplyOrderStatusCounterResponseItem.d.ts create mode 100644 dist/esm/models/V1SupplyOrderStatusCounterResponseItem.js create mode 100644 dist/esm/models/V1SupplyOrderTimeslot.d.ts create mode 100644 dist/esm/models/V1SupplyOrderTimeslot.js create mode 100644 dist/esm/models/V1TimeRangeReturnDate.d.ts create mode 100644 dist/esm/models/V1TimeRangeReturnDate.js create mode 100644 dist/esm/models/V1TimeRangeStorageTariffication.d.ts create mode 100644 dist/esm/models/V1TimeRangeStorageTariffication.js create mode 100644 dist/esm/models/V1TimeRangeVisualStatus.d.ts create mode 100644 dist/esm/models/V1TimeRangeVisualStatus.js create mode 100644 dist/esm/models/V1Timezone.d.ts create mode 100644 dist/esm/models/V1Timezone.js create mode 100644 dist/esm/models/V1UnarchiveWarehouseFBSRequest.d.ts create mode 100644 dist/esm/models/V1UnarchiveWarehouseFBSRequest.js create mode 100644 dist/esm/models/V1UnarchiveWarehouseFBSResponse.d.ts create mode 100644 dist/esm/models/V1UnarchiveWarehouseFBSResponse.js create mode 100644 dist/esm/models/V1UpdatePricingStrategyRequest.d.ts create mode 100644 dist/esm/models/V1UpdatePricingStrategyRequest.js create mode 100644 dist/esm/models/V1UpdateStatusStrategyRequest.d.ts create mode 100644 dist/esm/models/V1UpdateStatusStrategyRequest.js create mode 100644 dist/esm/models/V1UpdateSupplyOrderTimeslotRequest.d.ts create mode 100644 dist/esm/models/V1UpdateSupplyOrderTimeslotRequest.js create mode 100644 dist/esm/models/V1UpdateSupplyOrderTimeslotResponse.d.ts create mode 100644 dist/esm/models/V1UpdateSupplyOrderTimeslotResponse.js create mode 100644 dist/esm/models/V1UpdateTimeslotError.d.ts create mode 100644 dist/esm/models/V1UpdateTimeslotError.js create mode 100644 dist/esm/models/V1UpdateWarehouseFBSFirstMileRequest.d.ts create mode 100644 dist/esm/models/V1UpdateWarehouseFBSFirstMileRequest.js create mode 100644 dist/esm/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.d.ts create mode 100644 dist/esm/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.js create mode 100644 dist/esm/models/V1UpdateWarehouseFBSFirstMileResponse.d.ts create mode 100644 dist/esm/models/V1UpdateWarehouseFBSFirstMileResponse.js create mode 100644 dist/esm/models/V1UpdateWarehouseFBSRequest.d.ts create mode 100644 dist/esm/models/V1UpdateWarehouseFBSRequest.js create mode 100644 dist/esm/models/V1UpdateWarehouseFBSRequestAddressCoordinates.d.ts create mode 100644 dist/esm/models/V1UpdateWarehouseFBSRequestAddressCoordinates.js create mode 100644 dist/esm/models/V1UpdateWarehouseFBSRequestOptions.d.ts create mode 100644 dist/esm/models/V1UpdateWarehouseFBSRequestOptions.js create mode 100644 dist/esm/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.d.ts create mode 100644 dist/esm/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.js create mode 100644 dist/esm/models/V1UpdateWarehouseFBSResponse.d.ts create mode 100644 dist/esm/models/V1UpdateWarehouseFBSResponse.js create mode 100644 dist/esm/models/V1UploadPostingCodesRequest.d.ts create mode 100644 dist/esm/models/V1UploadPostingCodesRequest.js create mode 100644 dist/esm/models/V1UploadPostingCodesResponse.d.ts create mode 100644 dist/esm/models/V1UploadPostingCodesResponse.js create mode 100644 dist/esm/models/V1UploadReceiptRequestTypeEnum.d.ts create mode 100644 dist/esm/models/V1UploadReceiptRequestTypeEnum.js create mode 100644 dist/esm/models/V1UploadReceiptResponse.d.ts create mode 100644 dist/esm/models/V1UploadReceiptResponse.js create mode 100644 dist/esm/models/V1VehicleInfo.d.ts create mode 100644 dist/esm/models/V1VehicleInfo.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequest.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorCreateResponse.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequest.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedCreateResponse.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.js create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequest.js create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequestHolidays.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequestHolidays.js create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.js create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDays.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDays.js create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.js create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseERFBSUpdateResponse.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListRequest.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearch.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearch.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponse.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.js create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.js create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoRequest.js create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponse.js create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.js create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.js create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.js create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.js create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequest.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponse.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.js create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.js create mode 100644 dist/esm/models/V1WarehouseFboSellerListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFboSellerListResponse.js create mode 100644 dist/esm/models/V1WarehouseFboSellerListResponseWarehouse.d.ts create mode 100644 dist/esm/models/V1WarehouseFboSellerListResponseWarehouse.js create mode 100644 dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.js create mode 100644 dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.js create mode 100644 dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.js create mode 100644 dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.js create mode 100644 dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.js create mode 100644 dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.js create mode 100644 dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.js create mode 100644 dist/esm/models/V1WarehouseFbsPickUpCourierCancelRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsPickUpCourierCancelRequest.js create mode 100644 dist/esm/models/V1WarehouseFbsPickUpCourierCreateRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsPickUpCourierCreateRequest.js create mode 100644 dist/esm/models/V1WarehouseFbsPickUpHistoryListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsPickUpHistoryListRequest.js create mode 100644 dist/esm/models/V1WarehouseFbsPickUpHistoryListRequestFilter.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsPickUpHistoryListRequestFilter.js create mode 100644 dist/esm/models/V1WarehouseFbsPickUpHistoryListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsPickUpHistoryListResponse.js create mode 100644 dist/esm/models/V1WarehouseFbsPickUpHistoryListResponseResult.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsPickUpHistoryListResponseResult.js create mode 100644 dist/esm/models/V1WarehouseFbsPickUpPlanningListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsPickUpPlanningListResponse.js create mode 100644 dist/esm/models/V1WarehouseFbsPickUpPlanningListResponseResult.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsPickUpPlanningListResponseResult.js create mode 100644 dist/esm/models/V1WarehouseFbsReturnMileCheckRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsReturnMileCheckRequest.js create mode 100644 dist/esm/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.js create mode 100644 dist/esm/models/V1WarehouseFbsReturnMileCheckResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsReturnMileCheckResponse.js create mode 100644 dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.js create mode 100644 dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.js create mode 100644 dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.js create mode 100644 dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.js create mode 100644 dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.js create mode 100644 dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.d.ts create mode 100644 dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.js create mode 100644 dist/esm/models/V1WarehouseInvalidProductsGetRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseInvalidProductsGetRequest.js create mode 100644 dist/esm/models/V1WarehouseInvalidProductsGetResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseInvalidProductsGetResponse.js create mode 100644 dist/esm/models/V1WarehouseListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseListRequest.js create mode 100644 dist/esm/models/V1WarehouseListRequestWith.d.ts create mode 100644 dist/esm/models/V1WarehouseListRequestWith.js create mode 100644 dist/esm/models/V1WarehouseOZONListRequest.d.ts create mode 100644 dist/esm/models/V1WarehouseOZONListRequest.js create mode 100644 dist/esm/models/V1WarehouseOZONListRequestWarehouseTypeEnum.d.ts create mode 100644 dist/esm/models/V1WarehouseOZONListRequestWarehouseTypeEnum.js create mode 100644 dist/esm/models/V1WarehouseOZONListResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseOZONListResponse.js create mode 100644 dist/esm/models/V1WarehouseOZONListResponseWarehouse.d.ts create mode 100644 dist/esm/models/V1WarehouseOZONListResponseWarehouse.js create mode 100644 dist/esm/models/V1WarehouseWithInvalidProductsResponse.d.ts create mode 100644 dist/esm/models/V1WarehouseWithInvalidProductsResponse.js create mode 100644 dist/esm/models/V1fbpDeliveryDetails.d.ts create mode 100644 dist/esm/models/V1fbpDeliveryDetails.js create mode 100644 dist/esm/models/V1fbpTimeslot.d.ts create mode 100644 dist/esm/models/V1fbpTimeslot.js create mode 100644 dist/esm/models/V2AdditionalDataItem.d.ts create mode 100644 dist/esm/models/V2AdditionalDataItem.js create mode 100644 dist/esm/models/V2CancellationInitiatorEnum.d.ts create mode 100644 dist/esm/models/V2CancellationInitiatorEnum.js create mode 100644 dist/esm/models/V2CancellationStateEnum.d.ts create mode 100644 dist/esm/models/V2CancellationStateEnum.js create mode 100644 dist/esm/models/V2CancellationStateEnumFilters.d.ts create mode 100644 dist/esm/models/V2CancellationStateEnumFilters.js create mode 100644 dist/esm/models/V2CargoesCreateErrors.d.ts create mode 100644 dist/esm/models/V2CargoesCreateErrors.js create mode 100644 dist/esm/models/V2CargoesCreateInfoV2Request.d.ts create mode 100644 dist/esm/models/V2CargoesCreateInfoV2Request.js create mode 100644 dist/esm/models/V2CargoesCreateInfoV2Response.d.ts create mode 100644 dist/esm/models/V2CargoesCreateInfoV2Response.js create mode 100644 dist/esm/models/V2CarriageDeliveryListV2Request.d.ts create mode 100644 dist/esm/models/V2CarriageDeliveryListV2Request.js create mode 100644 dist/esm/models/V2CarriageDeliveryListV2Response.d.ts create mode 100644 dist/esm/models/V2CarriageDeliveryListV2Response.js create mode 100644 dist/esm/models/V2ChatReadResponse.d.ts create mode 100644 dist/esm/models/V2ChatReadResponse.js create mode 100644 dist/esm/models/V2ConditionalCancellationMoveV2Request.d.ts create mode 100644 dist/esm/models/V2ConditionalCancellationMoveV2Request.js create mode 100644 dist/esm/models/V2CreateLabelBatchResponse.d.ts create mode 100644 dist/esm/models/V2CreateLabelBatchResponse.js create mode 100644 dist/esm/models/V2CreateLabelBatchResponseResult.d.ts create mode 100644 dist/esm/models/V2CreateLabelBatchResponseResult.js create mode 100644 dist/esm/models/V2CreateLabelBatchResponseResultTasks.d.ts create mode 100644 dist/esm/models/V2CreateLabelBatchResponseResultTasks.js create mode 100644 dist/esm/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.d.ts create mode 100644 dist/esm/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.js create mode 100644 dist/esm/models/V2DeliveryMethodListV2Request.d.ts create mode 100644 dist/esm/models/V2DeliveryMethodListV2Request.js create mode 100644 dist/esm/models/V2DeliveryMethodListV2Response.d.ts create mode 100644 dist/esm/models/V2DeliveryMethodListV2Response.js create mode 100644 dist/esm/models/V2DraftClusterListResponse.d.ts create mode 100644 dist/esm/models/V2DraftClusterListResponse.js create mode 100644 dist/esm/models/V2DraftClusterListResponseResult.d.ts create mode 100644 dist/esm/models/V2DraftClusterListResponseResult.js create mode 100644 dist/esm/models/V2DraftCreateInfoRequest.d.ts create mode 100644 dist/esm/models/V2DraftCreateInfoRequest.js create mode 100644 dist/esm/models/V2DraftCreateInfoResponse.d.ts create mode 100644 dist/esm/models/V2DraftCreateInfoResponse.js create mode 100644 dist/esm/models/V2DraftCreateInfoResponseStatusEnum.d.ts create mode 100644 dist/esm/models/V2DraftCreateInfoResponseStatusEnum.js create mode 100644 dist/esm/models/V2DraftSupplyCreateRequest.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateRequest.js create mode 100644 dist/esm/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.js create mode 100644 dist/esm/models/V2DraftSupplyCreateRequestTimeslot.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateRequestTimeslot.js create mode 100644 dist/esm/models/V2DraftSupplyCreateResponse.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateResponse.js create mode 100644 dist/esm/models/V2DraftSupplyCreateResponseErrorReasonEnum.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateResponseErrorReasonEnum.js create mode 100644 dist/esm/models/V2DraftSupplyCreateStatusRequest.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateStatusRequest.js create mode 100644 dist/esm/models/V2DraftSupplyCreateStatusResponse.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateStatusResponse.js create mode 100644 dist/esm/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.js create mode 100644 dist/esm/models/V2DraftSupplyCreateStatusResponseStatusEnum.d.ts create mode 100644 dist/esm/models/V2DraftSupplyCreateStatusResponseStatusEnum.js create mode 100644 dist/esm/models/V2DraftTimeslotInfoRequest.d.ts create mode 100644 dist/esm/models/V2DraftTimeslotInfoRequest.js create mode 100644 dist/esm/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.d.ts create mode 100644 dist/esm/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.js create mode 100644 dist/esm/models/V2DraftTimeslotInfoResponse.d.ts create mode 100644 dist/esm/models/V2DraftTimeslotInfoResponse.js create mode 100644 dist/esm/models/V2DraftTimeslotInfoResponseErrorReasonEnum.d.ts create mode 100644 dist/esm/models/V2DraftTimeslotInfoResponseErrorReasonEnum.js create mode 100644 dist/esm/models/V2FboPosting.d.ts create mode 100644 dist/esm/models/V2FboPosting.js create mode 100644 dist/esm/models/V2FboPostingListResponse.d.ts create mode 100644 dist/esm/models/V2FboPostingListResponse.js create mode 100644 dist/esm/models/V2FboPostingResponse.d.ts create mode 100644 dist/esm/models/V2FboPostingResponse.js create mode 100644 dist/esm/models/V2FboPostingV2.d.ts create mode 100644 dist/esm/models/V2FboPostingV2.js create mode 100644 dist/esm/models/V2FboSinglePostingLegalInfo.d.ts create mode 100644 dist/esm/models/V2FboSinglePostingLegalInfo.js create mode 100644 dist/esm/models/V2FbsPosting.d.ts create mode 100644 dist/esm/models/V2FbsPosting.js create mode 100644 dist/esm/models/V2FbsPostingProduct.d.ts create mode 100644 dist/esm/models/V2FbsPostingProduct.js create mode 100644 dist/esm/models/V2FbsPostingProductCountryListRequest.d.ts create mode 100644 dist/esm/models/V2FbsPostingProductCountryListRequest.js create mode 100644 dist/esm/models/V2FbsPostingProductCountryListResponse.d.ts create mode 100644 dist/esm/models/V2FbsPostingProductCountryListResponse.js create mode 100644 dist/esm/models/V2FbsPostingProductCountryListResponseResult.d.ts create mode 100644 dist/esm/models/V2FbsPostingProductCountryListResponseResult.js create mode 100644 dist/esm/models/V2FbsPostingProductCountrySetRequest.d.ts create mode 100644 dist/esm/models/V2FbsPostingProductCountrySetRequest.js create mode 100644 dist/esm/models/V2FbsPostingProductCountrySetResponse.d.ts create mode 100644 dist/esm/models/V2FbsPostingProductCountrySetResponse.js create mode 100644 dist/esm/models/V2FbsPostingResponse.d.ts create mode 100644 dist/esm/models/V2FbsPostingResponse.js create mode 100644 dist/esm/models/V2GetConditionalCancellationListV2Request.d.ts create mode 100644 dist/esm/models/V2GetConditionalCancellationListV2Request.js create mode 100644 dist/esm/models/V2GetConditionalCancellationListV2Response.d.ts create mode 100644 dist/esm/models/V2GetConditionalCancellationListV2Response.js create mode 100644 dist/esm/models/V2GetDiscountTaskListV2Request.d.ts create mode 100644 dist/esm/models/V2GetDiscountTaskListV2Request.js create mode 100644 dist/esm/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.d.ts create mode 100644 dist/esm/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.js create mode 100644 dist/esm/models/V2GetDiscountTaskListV2Response.d.ts create mode 100644 dist/esm/models/V2GetDiscountTaskListV2Response.js create mode 100644 dist/esm/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.d.ts create mode 100644 dist/esm/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.js create mode 100644 dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.d.ts create mode 100644 dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.js create mode 100644 dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.d.ts create mode 100644 dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.js create mode 100644 dist/esm/models/V2GetRealizationReportRequestV2.d.ts create mode 100644 dist/esm/models/V2GetRealizationReportRequestV2.js create mode 100644 dist/esm/models/V2GetRealizationReportResponseV2.d.ts create mode 100644 dist/esm/models/V2GetRealizationReportResponseV2.js create mode 100644 dist/esm/models/V2HsCode.d.ts create mode 100644 dist/esm/models/V2HsCode.js create mode 100644 dist/esm/models/V2InvoiceCreateOrUpdateV2Request.d.ts create mode 100644 dist/esm/models/V2InvoiceCreateOrUpdateV2Request.js create mode 100644 dist/esm/models/V2InvoiceCreateOrUpdateV2Response.d.ts create mode 100644 dist/esm/models/V2InvoiceCreateOrUpdateV2Response.js create mode 100644 dist/esm/models/V2InvoiceGetV2Response.d.ts create mode 100644 dist/esm/models/V2InvoiceGetV2Response.js create mode 100644 dist/esm/models/V2MovePostingToAwaitingDeliveryRequest.d.ts create mode 100644 dist/esm/models/V2MovePostingToAwaitingDeliveryRequest.js create mode 100644 dist/esm/models/V2PolygonBindRequest.d.ts create mode 100644 dist/esm/models/V2PolygonBindRequest.js create mode 100644 dist/esm/models/V2PostingFBSActGetPostingsRequest.d.ts create mode 100644 dist/esm/models/V2PostingFBSActGetPostingsRequest.js create mode 100644 dist/esm/models/V2PostingFBSActGetPostingsResponse.d.ts create mode 100644 dist/esm/models/V2PostingFBSActGetPostingsResponse.js create mode 100644 dist/esm/models/V2PostingFBSActGetPostingsResult.d.ts create mode 100644 dist/esm/models/V2PostingFBSActGetPostingsResult.js create mode 100644 dist/esm/models/V2PostingFBSActGetProducts.d.ts create mode 100644 dist/esm/models/V2PostingFBSActGetProducts.js create mode 100644 dist/esm/models/V2PostingFBSActListFilter.d.ts create mode 100644 dist/esm/models/V2PostingFBSActListFilter.js create mode 100644 dist/esm/models/V2PostingFBSActListRelatedDocs.d.ts create mode 100644 dist/esm/models/V2PostingFBSActListRelatedDocs.js create mode 100644 dist/esm/models/V2PostingFBSActListRelatedDocsActOfAcceptance.d.ts create mode 100644 dist/esm/models/V2PostingFBSActListRelatedDocsActOfAcceptance.js create mode 100644 dist/esm/models/V2PostingFBSActListRelatedDocsActOfExcess.d.ts create mode 100644 dist/esm/models/V2PostingFBSActListRelatedDocsActOfExcess.js create mode 100644 dist/esm/models/V2PostingFBSActListRelatedDocsActOfMismatch.d.ts create mode 100644 dist/esm/models/V2PostingFBSActListRelatedDocsActOfMismatch.js create mode 100644 dist/esm/models/V2PostingFBSActListRequest.d.ts create mode 100644 dist/esm/models/V2PostingFBSActListRequest.js create mode 100644 dist/esm/models/V2PostingFBSActListResponse.d.ts create mode 100644 dist/esm/models/V2PostingFBSActListResponse.js create mode 100644 dist/esm/models/V2PostingFBSActListResult.d.ts create mode 100644 dist/esm/models/V2PostingFBSActListResult.js create mode 100644 dist/esm/models/V2PostingFBSDigitalActCheckStatusRequest.d.ts create mode 100644 dist/esm/models/V2PostingFBSDigitalActCheckStatusRequest.js create mode 100644 dist/esm/models/V2PostingFBSDigitalActCheckStatusResponse.d.ts create mode 100644 dist/esm/models/V2PostingFBSDigitalActCheckStatusResponse.js create mode 100644 dist/esm/models/V2PostingFBSGetBarcodeRequest.d.ts create mode 100644 dist/esm/models/V2PostingFBSGetBarcodeRequest.js create mode 100644 dist/esm/models/V2PostingFBSGetBarcodeResponse.d.ts create mode 100644 dist/esm/models/V2PostingFBSGetBarcodeResponse.js create mode 100644 dist/esm/models/V2PostingFBSGetBarcodeTextResponse.d.ts create mode 100644 dist/esm/models/V2PostingFBSGetBarcodeTextResponse.js create mode 100644 dist/esm/models/V2PostingFBSGetDigitalActRequest.d.ts create mode 100644 dist/esm/models/V2PostingFBSGetDigitalActRequest.js create mode 100644 dist/esm/models/V2PostingFBSGetDigitalActResponse.d.ts create mode 100644 dist/esm/models/V2PostingFBSGetDigitalActResponse.js create mode 100644 dist/esm/models/V2PostingFinancialDataFBO.d.ts create mode 100644 dist/esm/models/V2PostingFinancialDataFBO.js create mode 100644 dist/esm/models/V2PostingFinancialDataFBOV2.d.ts create mode 100644 dist/esm/models/V2PostingFinancialDataFBOV2.js create mode 100644 dist/esm/models/V2PostingProduct.d.ts create mode 100644 dist/esm/models/V2PostingProduct.js create mode 100644 dist/esm/models/V2Product.d.ts create mode 100644 dist/esm/models/V2Product.js create mode 100644 dist/esm/models/V2ProductCertificateAccordanceTypesResponse.d.ts create mode 100644 dist/esm/models/V2ProductCertificateAccordanceTypesResponse.js create mode 100644 dist/esm/models/V2ProductCertificateAccordanceTypesResponseResult.d.ts create mode 100644 dist/esm/models/V2ProductCertificateAccordanceTypesResponseResult.js create mode 100644 dist/esm/models/V2ProductCertificateAccordanceTypesResponseType.d.ts create mode 100644 dist/esm/models/V2ProductCertificateAccordanceTypesResponseType.js create mode 100644 dist/esm/models/V2ProductCertificationListRequest.d.ts create mode 100644 dist/esm/models/V2ProductCertificationListRequest.js create mode 100644 dist/esm/models/V2ProductCertificationListResponse.d.ts create mode 100644 dist/esm/models/V2ProductCertificationListResponse.js create mode 100644 dist/esm/models/V2ProductInfoPicturesRequest.d.ts create mode 100644 dist/esm/models/V2ProductInfoPicturesRequest.js create mode 100644 dist/esm/models/V2ProductInfoPicturesResponse.d.ts create mode 100644 dist/esm/models/V2ProductInfoPicturesResponse.js create mode 100644 dist/esm/models/V2ProductInfoPicturesResponseError.d.ts create mode 100644 dist/esm/models/V2ProductInfoPicturesResponseError.js create mode 100644 dist/esm/models/V2ProductInfoPicturesResponseItem.d.ts create mode 100644 dist/esm/models/V2ProductInfoPicturesResponseItem.js create mode 100644 dist/esm/models/V2ReportReturnsCreateRequest.d.ts create mode 100644 dist/esm/models/V2ReportReturnsCreateRequest.js create mode 100644 dist/esm/models/V2ReportReturnsCreateRequestFilter.d.ts create mode 100644 dist/esm/models/V2ReportReturnsCreateRequestFilter.js create mode 100644 dist/esm/models/V2ReportReturnsCreateResponse.d.ts create mode 100644 dist/esm/models/V2ReportReturnsCreateResponse.js create mode 100644 dist/esm/models/V2ReturnsRfbsFilter.d.ts create mode 100644 dist/esm/models/V2ReturnsRfbsFilter.js create mode 100644 dist/esm/models/V2ReturnsRfbsGetRequest.d.ts create mode 100644 dist/esm/models/V2ReturnsRfbsGetRequest.js create mode 100644 dist/esm/models/V2ReturnsRfbsGetResponse.d.ts create mode 100644 dist/esm/models/V2ReturnsRfbsGetResponse.js create mode 100644 dist/esm/models/V2ReturnsRfbsGetV2ResponseState.d.ts create mode 100644 dist/esm/models/V2ReturnsRfbsGetV2ResponseState.js create mode 100644 dist/esm/models/V2ReturnsRfbsListRequest.d.ts create mode 100644 dist/esm/models/V2ReturnsRfbsListRequest.js create mode 100644 dist/esm/models/V2ReturnsRfbsListResponse.d.ts create mode 100644 dist/esm/models/V2ReturnsRfbsListResponse.js create mode 100644 dist/esm/models/V2ReturnsRfbsListV2ResponseState.d.ts create mode 100644 dist/esm/models/V2ReturnsRfbsListV2ResponseState.js create mode 100644 dist/esm/models/V2WarehouseListV2Request.d.ts create mode 100644 dist/esm/models/V2WarehouseListV2Request.js create mode 100644 dist/esm/models/V2WarehouseListV2Response.d.ts create mode 100644 dist/esm/models/V2WarehouseListV2Response.js create mode 100644 dist/esm/models/V3AdditionalDataItem.d.ts create mode 100644 dist/esm/models/V3AdditionalDataItem.js create mode 100644 dist/esm/models/V3Address.d.ts create mode 100644 dist/esm/models/V3Address.js create mode 100644 dist/esm/models/V3Addressee.d.ts create mode 100644 dist/esm/models/V3Addressee.js create mode 100644 dist/esm/models/V3AddresseeFbsLists.d.ts create mode 100644 dist/esm/models/V3AddresseeFbsLists.js create mode 100644 dist/esm/models/V3Barcodes.d.ts create mode 100644 dist/esm/models/V3Barcodes.js create mode 100644 dist/esm/models/V3Cancellation.d.ts create mode 100644 dist/esm/models/V3Cancellation.js create mode 100644 dist/esm/models/V3ChatDetailsInfo.d.ts create mode 100644 dist/esm/models/V3ChatDetailsInfo.js create mode 100644 dist/esm/models/V3ChatHistoryRequest.d.ts create mode 100644 dist/esm/models/V3ChatHistoryRequest.js create mode 100644 dist/esm/models/V3ChatHistoryResponse.d.ts create mode 100644 dist/esm/models/V3ChatHistoryResponse.js create mode 100644 dist/esm/models/V3ChatInfo.d.ts create mode 100644 dist/esm/models/V3ChatInfo.js create mode 100644 dist/esm/models/V3ChatList.d.ts create mode 100644 dist/esm/models/V3ChatList.js create mode 100644 dist/esm/models/V3ChatListRequestFilter.d.ts create mode 100644 dist/esm/models/V3ChatListRequestFilter.js create mode 100644 dist/esm/models/V3ChatListRequestFilterChatStatus.d.ts create mode 100644 dist/esm/models/V3ChatListRequestFilterChatStatus.js create mode 100644 dist/esm/models/V3ChatListResponse.d.ts create mode 100644 dist/esm/models/V3ChatListResponse.js create mode 100644 dist/esm/models/V3ChatMessage.d.ts create mode 100644 dist/esm/models/V3ChatMessage.js create mode 100644 dist/esm/models/V3Customer.d.ts create mode 100644 dist/esm/models/V3Customer.js create mode 100644 dist/esm/models/V3CustomerFbsLists.d.ts create mode 100644 dist/esm/models/V3CustomerFbsLists.js create mode 100644 dist/esm/models/V3DeliveryMethod.d.ts create mode 100644 dist/esm/models/V3DeliveryMethod.js create mode 100644 dist/esm/models/V3Dimensions.d.ts create mode 100644 dist/esm/models/V3Dimensions.js create mode 100644 dist/esm/models/V3FbsPosting.d.ts create mode 100644 dist/esm/models/V3FbsPosting.js create mode 100644 dist/esm/models/V3FbsPostingAnalyticsData.d.ts create mode 100644 dist/esm/models/V3FbsPostingAnalyticsData.js create mode 100644 dist/esm/models/V3FbsPostingDetail.d.ts create mode 100644 dist/esm/models/V3FbsPostingDetail.js create mode 100644 dist/esm/models/V3FbsPostingDetailOptional.d.ts create mode 100644 dist/esm/models/V3FbsPostingDetailOptional.js create mode 100644 dist/esm/models/V3FbsPostingDetailRelatedPostings.d.ts create mode 100644 dist/esm/models/V3FbsPostingDetailRelatedPostings.js create mode 100644 dist/esm/models/V3FbsPostingExemplarProductV3.d.ts create mode 100644 dist/esm/models/V3FbsPostingExemplarProductV3.js create mode 100644 dist/esm/models/V3FbsPostingProduct.d.ts create mode 100644 dist/esm/models/V3FbsPostingProduct.js create mode 100644 dist/esm/models/V3FbsPostingProductExemplarInfoV3.d.ts create mode 100644 dist/esm/models/V3FbsPostingProductExemplarInfoV3.js create mode 100644 dist/esm/models/V3FbsPostingProductExemplarsV3.d.ts create mode 100644 dist/esm/models/V3FbsPostingProductExemplarsV3.js create mode 100644 dist/esm/models/V3FbsPostingRequirementsV3.d.ts create mode 100644 dist/esm/models/V3FbsPostingRequirementsV3.js create mode 100644 dist/esm/models/V3FbsTariffication.d.ts create mode 100644 dist/esm/models/V3FbsTariffication.js create mode 100644 dist/esm/models/V3FinanceCashFlowStatementListRequest.d.ts create mode 100644 dist/esm/models/V3FinanceCashFlowStatementListRequest.js create mode 100644 dist/esm/models/V3FinanceCashFlowStatementListResponse.d.ts create mode 100644 dist/esm/models/V3FinanceCashFlowStatementListResponse.js create mode 100644 dist/esm/models/V3FinanceCashFlowStatementListResponsePeriod.d.ts create mode 100644 dist/esm/models/V3FinanceCashFlowStatementListResponsePeriod.js create mode 100644 dist/esm/models/V3FinanceCashFlowStatementListResponseResult.d.ts create mode 100644 dist/esm/models/V3FinanceCashFlowStatementListResponseResult.js create mode 100644 dist/esm/models/V3GetFbsPostingListResponseV3.d.ts create mode 100644 dist/esm/models/V3GetFbsPostingListResponseV3.js create mode 100644 dist/esm/models/V3GetFbsPostingListResponseV3Result.d.ts create mode 100644 dist/esm/models/V3GetFbsPostingListResponseV3Result.js create mode 100644 dist/esm/models/V3GetFbsPostingResponseV3.d.ts create mode 100644 dist/esm/models/V3GetFbsPostingResponseV3.js create mode 100644 dist/esm/models/V3GetProductInfoListRequest.d.ts create mode 100644 dist/esm/models/V3GetProductInfoListRequest.js create mode 100644 dist/esm/models/V3GetProductInfoListResponse.d.ts create mode 100644 dist/esm/models/V3GetProductInfoListResponse.js create mode 100644 dist/esm/models/V3GetProductInfoListResponseItem.d.ts create mode 100644 dist/esm/models/V3GetProductInfoListResponseItem.js create mode 100644 dist/esm/models/V3GetProductInfoListResponsePromotion.d.ts create mode 100644 dist/esm/models/V3GetProductInfoListResponsePromotion.js create mode 100644 dist/esm/models/V3GetProductInfoListResponsePromotionType.d.ts create mode 100644 dist/esm/models/V3GetProductInfoListResponsePromotionType.js create mode 100644 dist/esm/models/V3ImportProductsRequest.d.ts create mode 100644 dist/esm/models/V3ImportProductsRequest.js create mode 100644 dist/esm/models/V3ImportProductsRequestAttribute.d.ts create mode 100644 dist/esm/models/V3ImportProductsRequestAttribute.js create mode 100644 dist/esm/models/V3ImportProductsRequestComplexAttribute.d.ts create mode 100644 dist/esm/models/V3ImportProductsRequestComplexAttribute.js create mode 100644 dist/esm/models/V3ImportProductsRequestDictionaryValue.d.ts create mode 100644 dist/esm/models/V3ImportProductsRequestDictionaryValue.js create mode 100644 dist/esm/models/V3ImportProductsRequestItem.d.ts create mode 100644 dist/esm/models/V3ImportProductsRequestItem.js create mode 100644 dist/esm/models/V3ImportProductsResponse.d.ts create mode 100644 dist/esm/models/V3ImportProductsResponse.js create mode 100644 dist/esm/models/V3ImportProductsResponseResult.d.ts create mode 100644 dist/esm/models/V3ImportProductsResponseResult.js create mode 100644 dist/esm/models/V3PostingFinancialData.d.ts create mode 100644 dist/esm/models/V3PostingFinancialData.js create mode 100644 dist/esm/models/V3PostingProductDetail.d.ts create mode 100644 dist/esm/models/V3PostingProductDetail.js create mode 100644 dist/esm/models/V3ServiceType.d.ts create mode 100644 dist/esm/models/V3ServiceType.js create mode 100644 dist/esm/models/V3SupplyOrderGetRequest.d.ts create mode 100644 dist/esm/models/V3SupplyOrderGetRequest.js create mode 100644 dist/esm/models/V3SupplyOrderGetResponse.d.ts create mode 100644 dist/esm/models/V3SupplyOrderGetResponse.js create mode 100644 dist/esm/models/V3SupplyOrderListRequest.d.ts create mode 100644 dist/esm/models/V3SupplyOrderListRequest.js create mode 100644 dist/esm/models/V3SupplyOrderListResponse.d.ts create mode 100644 dist/esm/models/V3SupplyOrderListResponse.js create mode 100644 dist/esm/models/V3TimeRange.d.ts create mode 100644 dist/esm/models/V3TimeRange.js create mode 100644 dist/esm/models/V3User.d.ts create mode 100644 dist/esm/models/V3User.js create mode 100644 dist/esm/models/V4FbsPostingShipPackageV4Request.d.ts create mode 100644 dist/esm/models/V4FbsPostingShipPackageV4Request.js create mode 100644 dist/esm/models/V4FbsPostingShipPackageV4RequestProduct.d.ts create mode 100644 dist/esm/models/V4FbsPostingShipPackageV4RequestProduct.js create mode 100644 dist/esm/models/V4FbsPostingShipPackageV4Response.d.ts create mode 100644 dist/esm/models/V4FbsPostingShipPackageV4Response.js create mode 100644 dist/esm/models/V4GetProductAttributesResponseModelInfo.d.ts create mode 100644 dist/esm/models/V4GetProductAttributesResponseModelInfo.js create mode 100644 dist/esm/models/V4GetProductAttributesResponsePdf.d.ts create mode 100644 dist/esm/models/V4GetProductAttributesResponsePdf.js create mode 100644 dist/esm/models/V4GetProductInfoStocksRequest.d.ts create mode 100644 dist/esm/models/V4GetProductInfoStocksRequest.js create mode 100644 dist/esm/models/V4GetProductInfoStocksRequestFilter.d.ts create mode 100644 dist/esm/models/V4GetProductInfoStocksRequestFilter.js create mode 100644 dist/esm/models/V4GetProductInfoStocksResponse.d.ts create mode 100644 dist/esm/models/V4GetProductInfoStocksResponse.js create mode 100644 dist/esm/models/V4GetProductInfoStocksResponseItem.d.ts create mode 100644 dist/esm/models/V4GetProductInfoStocksResponseItem.js create mode 100644 dist/esm/models/V4GetUploadQuotaResponse.d.ts create mode 100644 dist/esm/models/V4GetUploadQuotaResponse.js create mode 100644 dist/esm/models/V4Visibility.d.ts create mode 100644 dist/esm/models/V4Visibility.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5Request.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5Request.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5Response.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5Response.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5Request.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5Request.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProduct.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProduct.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5Response.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5Response.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.js create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.d.ts create mode 100644 dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.js create mode 100644 dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Request.d.ts create mode 100644 dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Request.js create mode 100644 dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Response.d.ts create mode 100644 dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Response.js create mode 100644 dist/esm/models/V6FbsPostingProductExemplarSetV6Request.d.ts create mode 100644 dist/esm/models/V6FbsPostingProductExemplarSetV6Request.js create mode 100644 dist/esm/models/ValidationErrorCharacteristicEnum.d.ts create mode 100644 dist/esm/models/ValidationErrorCharacteristicEnum.js create mode 100644 dist/esm/models/ValidationResultItem.d.ts create mode 100644 dist/esm/models/ValidationResultItem.js create mode 100644 dist/esm/models/ValidationResultItemStateEnum.d.ts create mode 100644 dist/esm/models/ValidationResultItemStateEnum.js create mode 100644 dist/esm/models/ValidationResultValidationError.d.ts create mode 100644 dist/esm/models/ValidationResultValidationError.js create mode 100644 dist/esm/models/ValidationResultValidationErrorTypeEnum.d.ts create mode 100644 dist/esm/models/ValidationResultValidationErrorTypeEnum.js create mode 100644 dist/esm/models/ValueCargoType.d.ts create mode 100644 dist/esm/models/ValueCargoType.js create mode 100644 dist/esm/models/ValueItem.d.ts create mode 100644 dist/esm/models/ValueItem.js create mode 100644 dist/esm/models/ValueTimezoneInfo.d.ts create mode 100644 dist/esm/models/ValueTimezoneInfo.js create mode 100644 dist/esm/models/VehicleCanNotSetVehicleReasonEnum.d.ts create mode 100644 dist/esm/models/VehicleCanNotSetVehicleReasonEnum.js create mode 100644 dist/esm/models/WarehouseAddress.d.ts create mode 100644 dist/esm/models/WarehouseAddress.js create mode 100644 dist/esm/models/WarehouseAddressCoordinates.d.ts create mode 100644 dist/esm/models/WarehouseAddressCoordinates.js create mode 100644 dist/esm/models/WarehouseAddressInfo.d.ts create mode 100644 dist/esm/models/WarehouseAddressInfo.js create mode 100644 dist/esm/models/WarehouseAvailabilityStatus.d.ts create mode 100644 dist/esm/models/WarehouseAvailabilityStatus.js create mode 100644 dist/esm/models/WarehouseCarriageLabelTypeEnum.d.ts create mode 100644 dist/esm/models/WarehouseCarriageLabelTypeEnum.js create mode 100644 dist/esm/models/WarehouseContacts.d.ts create mode 100644 dist/esm/models/WarehouseContacts.js create mode 100644 dist/esm/models/WarehouseDeliveryMethodListRequest.d.ts create mode 100644 dist/esm/models/WarehouseDeliveryMethodListRequest.js create mode 100644 dist/esm/models/WarehouseDeliveryMethodListResponse.d.ts create mode 100644 dist/esm/models/WarehouseDeliveryMethodListResponse.js create mode 100644 dist/esm/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.d.ts create mode 100644 dist/esm/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.js create mode 100644 dist/esm/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.d.ts create mode 100644 dist/esm/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.js create mode 100644 dist/esm/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.d.ts create mode 100644 dist/esm/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.js create mode 100644 dist/esm/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.d.ts create mode 100644 dist/esm/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.js create mode 100644 dist/esm/models/WarehouseFirstMile.d.ts create mode 100644 dist/esm/models/WarehouseFirstMile.js create mode 100644 dist/esm/models/WarehouseFirstMileType.d.ts create mode 100644 dist/esm/models/WarehouseFirstMileType.js create mode 100644 dist/esm/models/WarehouseInvalidProductsGetResponseValidationResult.d.ts create mode 100644 dist/esm/models/WarehouseInvalidProductsGetResponseValidationResult.js create mode 100644 dist/esm/models/WarehouseListResponseWarehouse.d.ts create mode 100644 dist/esm/models/WarehouseListResponseWarehouse.js create mode 100644 dist/esm/models/WarehouseListV2ResponseWarehouse.d.ts create mode 100644 dist/esm/models/WarehouseListV2ResponseWarehouse.js create mode 100644 dist/esm/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.d.ts create mode 100644 dist/esm/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.js create mode 100644 dist/esm/models/WarehouseStorageWarehouse.d.ts create mode 100644 dist/esm/models/WarehouseStorageWarehouse.js create mode 100644 dist/esm/models/WarehouseSupplyTagEnum.d.ts create mode 100644 dist/esm/models/WarehouseSupplyTagEnum.js create mode 100644 dist/esm/models/WarehouseTimetable.d.ts create mode 100644 dist/esm/models/WarehouseTimetable.js create mode 100644 dist/esm/models/WarehouseV1WarehouseRfbsPauseRequest.d.ts create mode 100644 dist/esm/models/WarehouseV1WarehouseRfbsPauseRequest.js create mode 100644 dist/esm/models/WarehouseV1WarehouseRfbsPauseResponse.d.ts create mode 100644 dist/esm/models/WarehouseV1WarehouseRfbsPauseResponse.js create mode 100644 dist/esm/models/WarehouseV1WarehouseRfbsUnpauseRequest.d.ts create mode 100644 dist/esm/models/WarehouseV1WarehouseRfbsUnpauseRequest.js create mode 100644 dist/esm/models/WarehouseV1WarehouseRfbsUnpauseResponse.d.ts create mode 100644 dist/esm/models/WarehouseV1WarehouseRfbsUnpauseResponse.js create mode 100644 dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.d.ts create mode 100644 dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.js create mode 100644 dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.d.ts create mode 100644 dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.js create mode 100644 dist/esm/models/WarehouseWarehouseListResponse.d.ts create mode 100644 dist/esm/models/WarehouseWarehouseListResponse.js create mode 100644 dist/esm/models/WarehouseWorkingDay.d.ts create mode 100644 dist/esm/models/WarehouseWorkingDay.js create mode 100644 dist/esm/models/WarehouseWorkingDayDayEnum.d.ts create mode 100644 dist/esm/models/WarehouseWorkingDayDayEnum.js create mode 100644 dist/esm/models/WarehouseWorkingDaysEnum.d.ts create mode 100644 dist/esm/models/WarehouseWorkingDaysEnum.js create mode 100644 dist/esm/models/WorkingHoursPeriods.d.ts create mode 100644 dist/esm/models/WorkingHoursPeriods.js create mode 100644 dist/esm/models/index.d.ts create mode 100644 dist/esm/models/index.js create mode 100644 dist/esm/runtime.d.ts create mode 100644 dist/esm/runtime.js create mode 100644 dist/index.d.ts create mode 100644 dist/index.js create mode 100644 dist/models/ActionParameter.d.ts create mode 100644 dist/models/ActionParameter.js create mode 100644 dist/models/ActionParameterDiscountTypeEnum.d.ts create mode 100644 dist/models/ActionParameterDiscountTypeEnum.js create mode 100644 dist/models/ActionParameterVoucherParameter.d.ts create mode 100644 dist/models/ActionParameterVoucherParameter.js create mode 100644 dist/models/ActionParameterVoucherParameterTypeEnum.d.ts create mode 100644 dist/models/ActionParameterVoucherParameterTypeEnum.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsDeleteRequest.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsDeleteRequest.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsDeleteResponse.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsDeleteResponse.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsListRequest.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsListRequest.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsListResponse.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsListResponse.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsListResponseProducts.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsListResponseProducts.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateRequest.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateRequest.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponse.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponse.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.js create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.d.ts create mode 100644 dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.js create mode 100644 dist/models/AddStrategyItemsResponseError.d.ts create mode 100644 dist/models/AddStrategyItemsResponseError.js create mode 100644 dist/models/AnalyticsAnalyticsGetDataRequest.d.ts create mode 100644 dist/models/AnalyticsAnalyticsGetDataRequest.js create mode 100644 dist/models/AnalyticsAnalyticsGetDataResponse.d.ts create mode 100644 dist/models/AnalyticsAnalyticsGetDataResponse.js create mode 100644 dist/models/AnalyticsDataRow.d.ts create mode 100644 dist/models/AnalyticsDataRow.js create mode 100644 dist/models/AnalyticsDataRowDimension.d.ts create mode 100644 dist/models/AnalyticsDataRowDimension.js create mode 100644 dist/models/AnalyticsFilter.d.ts create mode 100644 dist/models/AnalyticsFilter.js create mode 100644 dist/models/AnalyticsGetDataResponseResult.d.ts create mode 100644 dist/models/AnalyticsGetDataResponseResult.js create mode 100644 dist/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.d.ts create mode 100644 dist/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.js create mode 100644 dist/models/AnalyticsProductQueriesDetailsResponseQuery.d.ts create mode 100644 dist/models/AnalyticsProductQueriesDetailsResponseQuery.js create mode 100644 dist/models/AnalyticsProductQueriesRequestSortBy.d.ts create mode 100644 dist/models/AnalyticsProductQueriesRequestSortBy.js create mode 100644 dist/models/AnalyticsProductQueriesRequestSortDir.d.ts create mode 100644 dist/models/AnalyticsProductQueriesRequestSortDir.js create mode 100644 dist/models/AnalyticsProductQueriesResponseAnalyticsPeriod.d.ts create mode 100644 dist/models/AnalyticsProductQueriesResponseAnalyticsPeriod.js create mode 100644 dist/models/AnalyticsSorting.d.ts create mode 100644 dist/models/AnalyticsSorting.js create mode 100644 dist/models/AnalyticsStockOnWarehouseRequest.d.ts create mode 100644 dist/models/AnalyticsStockOnWarehouseRequest.js create mode 100644 dist/models/AnalyticsStockOnWarehouseResponse.d.ts create mode 100644 dist/models/AnalyticsStockOnWarehouseResponse.js create mode 100644 dist/models/AnalyticsStockOnWarehouseResponseResult.d.ts create mode 100644 dist/models/AnalyticsStockOnWarehouseResponseResult.js create mode 100644 dist/models/AnalyticsStockOnWarehouseResultRows.d.ts create mode 100644 dist/models/AnalyticsStockOnWarehouseResultRows.js create mode 100644 dist/models/ApproveDeclineDiscountTasksResponseFailDetail.d.ts create mode 100644 dist/models/ApproveDeclineDiscountTasksResponseFailDetail.js create mode 100644 dist/models/ArrivalPassListRequestFilter.d.ts create mode 100644 dist/models/ArrivalPassListRequestFilter.js create mode 100644 dist/models/ArrivalpassArrivalPassCreateRequest.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassCreateRequest.js create mode 100644 dist/models/ArrivalpassArrivalPassCreateRequestArrivalPass.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassCreateRequestArrivalPass.js create mode 100644 dist/models/ArrivalpassArrivalPassCreateResponse.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassCreateResponse.js create mode 100644 dist/models/ArrivalpassArrivalPassDeleteRequest.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassDeleteRequest.js create mode 100644 dist/models/ArrivalpassArrivalPassListRequest.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassListRequest.js create mode 100644 dist/models/ArrivalpassArrivalPassListResponse.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassListResponse.js create mode 100644 dist/models/ArrivalpassArrivalPassListResponseArrivalPass.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassListResponseArrivalPass.js create mode 100644 dist/models/ArrivalpassArrivalPassUpdateRequest.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassUpdateRequest.js create mode 100644 dist/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.d.ts create mode 100644 dist/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.js create mode 100644 dist/models/AssemblyFbsProductListResponseProducts.d.ts create mode 100644 dist/models/AssemblyFbsProductListResponseProducts.js create mode 100644 dist/models/AvailabilityReason.d.ts create mode 100644 dist/models/AvailabilityReason.js create mode 100644 dist/models/AvailabilityStatusInvalidReasonEnum.d.ts create mode 100644 dist/models/AvailabilityStatusInvalidReasonEnum.js create mode 100644 dist/models/AvailabilityStatusStateEnum.d.ts create mode 100644 dist/models/AvailabilityStatusStateEnum.js create mode 100644 dist/models/BrandBrandCompanyCertificationListRequest.d.ts create mode 100644 dist/models/BrandBrandCompanyCertificationListRequest.js create mode 100644 dist/models/BrandBrandCompanyCertificationListResponse.d.ts create mode 100644 dist/models/BrandBrandCompanyCertificationListResponse.js create mode 100644 dist/models/BrandCompanyCertificationListResponseBrandCertification.d.ts create mode 100644 dist/models/BrandCompanyCertificationListResponseBrandCertification.js create mode 100644 dist/models/BrandCompanyCertificationListResponseBrandCertificationResult.d.ts create mode 100644 dist/models/BrandCompanyCertificationListResponseBrandCertificationResult.js create mode 100644 dist/models/CancelSupplyResultsCancelSupplyError.d.ts create mode 100644 dist/models/CancelSupplyResultsCancelSupplyError.js create mode 100644 dist/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.d.ts create mode 100644 dist/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.js create mode 100644 dist/models/CancellationErrorCode.d.ts create mode 100644 dist/models/CancellationErrorCode.js create mode 100644 dist/models/CancellationStateCancellationError.d.ts create mode 100644 dist/models/CancellationStateCancellationError.js create mode 100644 dist/models/CargoInfoContentTypeEnum.d.ts create mode 100644 dist/models/CargoInfoContentTypeEnum.js create mode 100644 dist/models/CargoInfoPlacementZoneTypeEnum.d.ts create mode 100644 dist/models/CargoInfoPlacementZoneTypeEnum.js create mode 100644 dist/models/CargoInfoTrackingInfo.d.ts create mode 100644 dist/models/CargoInfoTrackingInfo.js create mode 100644 dist/models/CargoInfoTrackingInfoStatusEnum.d.ts create mode 100644 dist/models/CargoInfoTrackingInfoStatusEnum.js create mode 100644 dist/models/CargoInfoTrackingInfoTypeEnum.d.ts create mode 100644 dist/models/CargoInfoTrackingInfoTypeEnum.js create mode 100644 dist/models/CargoValue.d.ts create mode 100644 dist/models/CargoValue.js create mode 100644 dist/models/CargoesCreateErrorsErrorReason.d.ts create mode 100644 dist/models/CargoesCreateErrorsErrorReason.js create mode 100644 dist/models/CargoesCreateErrorsItemValidation.d.ts create mode 100644 dist/models/CargoesCreateErrorsItemValidation.js create mode 100644 dist/models/CargoesCreateErrorsReasonEnum.d.ts create mode 100644 dist/models/CargoesCreateErrorsReasonEnum.js create mode 100644 dist/models/CargoesCreateInfoV2ResponseResult.d.ts create mode 100644 dist/models/CargoesCreateInfoV2ResponseResult.js create mode 100644 dist/models/CargoesCreateInfoV2ResponseStatusEnum.d.ts create mode 100644 dist/models/CargoesCreateInfoV2ResponseStatusEnum.js create mode 100644 dist/models/CargoesCreateV2ErrorsItemValidation.d.ts create mode 100644 dist/models/CargoesCreateV2ErrorsItemValidation.js create mode 100644 dist/models/CargoesDeleteStatusResponseStatusEnum.d.ts create mode 100644 dist/models/CargoesDeleteStatusResponseStatusEnum.js create mode 100644 dist/models/CargoesGetResponseSupply.d.ts create mode 100644 dist/models/CargoesGetResponseSupply.js create mode 100644 dist/models/CargoesPresentRuleCargoCountPerType.d.ts create mode 100644 dist/models/CargoesPresentRuleCargoCountPerType.js create mode 100644 dist/models/CargoesPresentRuleCargoCountPerTypeEnum.d.ts create mode 100644 dist/models/CargoesPresentRuleCargoCountPerTypeEnum.js create mode 100644 dist/models/CargoesRulesGetResponseSupplyCheck.d.ts create mode 100644 dist/models/CargoesRulesGetResponseSupplyCheck.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportCreateRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportCreateRequest.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportCreateResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportCreateResponse.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusRequest.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusResponse.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusResponseResult.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusResponseResult.js create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.js create mode 100644 dist/models/CargoesV1CargoesSuppliesGetRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesSuppliesGetRequest.js create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponse.js create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.d.ts create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.js create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.d.ts create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.js create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.d.ts create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.js create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.d.ts create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.js create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportActivateRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportActivateRequest.js create mode 100644 dist/models/CargoesV1CargoesTransportActivateResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportActivateResponse.js create mode 100644 dist/models/CargoesV1CargoesTransportActivateStatusRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportActivateStatusRequest.js create mode 100644 dist/models/CargoesV1CargoesTransportActivateStatusResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportActivateStatusResponse.js create mode 100644 dist/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportBindRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportBindRequest.js create mode 100644 dist/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.js create mode 100644 dist/models/CargoesV1CargoesTransportBindResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportBindResponse.js create mode 100644 dist/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportBindStatusRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportBindStatusRequest.js create mode 100644 dist/models/CargoesV1CargoesTransportBindStatusResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportBindStatusResponse.js create mode 100644 dist/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateRequest.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateResponse.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusRequest.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusRequest.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponse.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponse.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseResult.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseResult.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.js create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.d.ts create mode 100644 dist/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.js create mode 100644 dist/models/CargoesV2CargoesDeleteRequest.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteRequest.js create mode 100644 dist/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.js create mode 100644 dist/models/CargoesV2CargoesDeleteResponse.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteResponse.js create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrors.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrors.js create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.js create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.js create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.js create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.js create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusRequest.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusRequest.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponse.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponse.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrors.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrors.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.js create mode 100644 dist/models/CargoesV2CargoesGetRequest.d.ts create mode 100644 dist/models/CargoesV2CargoesGetRequest.js create mode 100644 dist/models/CargoesV2CargoesGetRequestSupplies.d.ts create mode 100644 dist/models/CargoesV2CargoesGetRequestSupplies.js create mode 100644 dist/models/CargoesV2CargoesGetResponse.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponse.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSupplies.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSupplies.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoes.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoes.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesLimits.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesLimits.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.js create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.d.ts create mode 100644 dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.js create mode 100644 dist/models/CarriageCarriageGetRequest.d.ts create mode 100644 dist/models/CarriageCarriageGetRequest.js create mode 100644 dist/models/CarriageCarriageGetResponse.d.ts create mode 100644 dist/models/CarriageCarriageGetResponse.js create mode 100644 dist/models/CarriageCarriageGetResponseCancelAvailability.d.ts create mode 100644 dist/models/CarriageCarriageGetResponseCancelAvailability.js create mode 100644 dist/models/CarriageDeliveryListV2RequestFilter.d.ts create mode 100644 dist/models/CarriageDeliveryListV2RequestFilter.js create mode 100644 dist/models/CarriageDeliveryListV2ResponseDeliveryMethod.d.ts create mode 100644 dist/models/CarriageDeliveryListV2ResponseDeliveryMethod.js create mode 100644 dist/models/CarriagePickupFee.d.ts create mode 100644 dist/models/CarriagePickupFee.js create mode 100644 dist/models/Carriagev1CarriageContainerApproveRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerApproveRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerApproveResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerApproveResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerApproveResponseErrorContainers.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerApproveResponseErrorContainers.js create mode 100644 dist/models/Carriagev1CarriageContainerCancelRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerCancelRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerCancelResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerCancelResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerCancelResponseErrorContainers.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerCancelResponseErrorContainers.js create mode 100644 dist/models/Carriagev1CarriageContainerCreateRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerCreateRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerCreateResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerCreateResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerDocumentGetRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerDocumentGetRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerDocumentGetResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerDocumentGetResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerFillRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerFillRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerFillResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerFillResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerFillResponseErrorPostings.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerFillResponseErrorPostings.js create mode 100644 dist/models/Carriagev1CarriageContainerGetRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerGetRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerGetResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerGetResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerGetResponsePostings.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerGetResponsePostings.js create mode 100644 dist/models/Carriagev1CarriageContainerGetResponsePostingsProducts.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerGetResponsePostingsProducts.js create mode 100644 dist/models/Carriagev1CarriageContainerLabelGetRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerLabelGetRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerLabelGetResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerLabelGetResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerLabelGetResponseContent.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerLabelGetResponseContent.js create mode 100644 dist/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.js create mode 100644 dist/models/Carriagev1CarriageContainerListRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerListRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerListRequestFilter.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerListRequestFilter.js create mode 100644 dist/models/Carriagev1CarriageContainerListRequestSortDirEnum.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerListRequestSortDirEnum.js create mode 100644 dist/models/Carriagev1CarriageContainerListResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerListResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerListResponseContainers.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerListResponseContainers.js create mode 100644 dist/models/Carriagev1CarriageContainerPlaceIntoRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerPlaceIntoRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerPlaceIntoResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerPlaceIntoResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.js create mode 100644 dist/models/Carriagev1CarriageContainerRemoveFromRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerRemoveFromRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerRemoveFromResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerRemoveFromResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.js create mode 100644 dist/models/Carriagev1CarriageContainerRemovePostingsRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerRemovePostingsRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerRemovePostingsResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerRemovePostingsResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.js create mode 100644 dist/models/Carriagev1CarriageContainerStatusGetRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerStatusGetRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerStatusGetResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerStatusGetResponse.js create mode 100644 dist/models/Carriagev1CarriageContainerStatusGetResponseContainers.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerStatusGetResponseContainers.js create mode 100644 dist/models/Carriagev1CarriageContainerTaskInfoRequest.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerTaskInfoRequest.js create mode 100644 dist/models/Carriagev1CarriageContainerTaskInfoResponse.d.ts create mode 100644 dist/models/Carriagev1CarriageContainerTaskInfoResponse.js create mode 100644 dist/models/CertificationV2ProductCertificateCreateRequest.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateCreateRequest.js create mode 100644 dist/models/CertificationV2ProductCertificateCreateRequestParams.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateCreateRequestParams.js create mode 100644 dist/models/CertificationV2ProductCertificateCreateResponse.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateCreateResponse.js create mode 100644 dist/models/CertificationV2ProductCertificateCreateResponseParam.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateCreateResponseParam.js create mode 100644 dist/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.js create mode 100644 dist/models/CertificationV2ProductCertificateCreateResponseStatusEnum.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateCreateResponseStatusEnum.js create mode 100644 dist/models/CertificationV2ProductCertificateOptionsResponse.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateOptionsResponse.js create mode 100644 dist/models/CertificationV2ProductCertificateOptionsResponseOption.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateOptionsResponseOption.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequest.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequest.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParams.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParams.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsFile.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsFile.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsResponse.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsResponse.js create mode 100644 dist/models/CertificationV2ProductCertificateParamsResponseParam.d.ts create mode 100644 dist/models/CertificationV2ProductCertificateParamsResponseParam.js create mode 100644 dist/models/ChatChatSendFileRequest.d.ts create mode 100644 dist/models/ChatChatSendFileRequest.js create mode 100644 dist/models/ChatChatSendFileResponse.d.ts create mode 100644 dist/models/ChatChatSendFileResponse.js create mode 100644 dist/models/ChatChatSendMessageRequest.d.ts create mode 100644 dist/models/ChatChatSendMessageRequest.js create mode 100644 dist/models/ChatChatSendMessageResponse.d.ts create mode 100644 dist/models/ChatChatSendMessageResponse.js create mode 100644 dist/models/ChatChatStartRequest.d.ts create mode 100644 dist/models/ChatChatStartRequest.js create mode 100644 dist/models/ChatChatStartResponse.d.ts create mode 100644 dist/models/ChatChatStartResponse.js create mode 100644 dist/models/ChatHistoryRequestFilter.d.ts create mode 100644 dist/models/ChatHistoryRequestFilter.js create mode 100644 dist/models/ChatInfoChatStatusEnum.d.ts create mode 100644 dist/models/ChatInfoChatStatusEnum.js create mode 100644 dist/models/ChatInfoChatTypeEnum.d.ts create mode 100644 dist/models/ChatInfoChatTypeEnum.js create mode 100644 dist/models/ChatMessageContext.d.ts create mode 100644 dist/models/ChatMessageContext.js create mode 100644 dist/models/ChatMessageModerateImageStatus.d.ts create mode 100644 dist/models/ChatMessageModerateImageStatus.js create mode 100644 dist/models/ChatRead.d.ts create mode 100644 dist/models/ChatRead.js create mode 100644 dist/models/ChatStartResponseResult.d.ts create mode 100644 dist/models/ChatStartResponseResult.js create mode 100644 dist/models/ClientTimeslotDateRange.d.ts create mode 100644 dist/models/ClientTimeslotDateRange.js create mode 100644 dist/models/ClusterWarehouse.d.ts create mode 100644 dist/models/ClusterWarehouse.js create mode 100644 dist/models/CommentListResponseComment.d.ts create mode 100644 dist/models/CommentListResponseComment.js create mode 100644 dist/models/CommonCreateReportResponse.d.ts create mode 100644 dist/models/CommonCreateReportResponse.js create mode 100644 dist/models/CompanyTaxSystemEnum.d.ts create mode 100644 dist/models/CompanyTaxSystemEnum.js create mode 100644 dist/models/ContentCanNotEditSupplyContentReasonEnum.d.ts create mode 100644 dist/models/ContentCanNotEditSupplyContentReasonEnum.js create mode 100644 dist/models/CourierCoordinates.d.ts create mode 100644 dist/models/CourierCoordinates.js create mode 100644 dist/models/CreateCompanyPostingsReportRequestWith.d.ts create mode 100644 dist/models/CreateCompanyPostingsReportRequestWith.js create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseBuyer.d.ts create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseBuyer.js create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.d.ts create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.js create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.d.ts create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.js create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.d.ts create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.js create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.d.ts create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.js create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.d.ts create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.js create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.d.ts create mode 100644 dist/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.js create mode 100644 dist/models/CreateReportResponse.d.ts create mode 100644 dist/models/CreateReportResponse.js create mode 100644 dist/models/CreateReportResponseCode.d.ts create mode 100644 dist/models/CreateReportResponseCode.js create mode 100644 dist/models/CreateReportResponseCodeNoDeadline.d.ts create mode 100644 dist/models/CreateReportResponseCodeNoDeadline.js create mode 100644 dist/models/CreateWarehouseFBSRequestAddressCoordinates.d.ts create mode 100644 dist/models/CreateWarehouseFBSRequestAddressCoordinates.js create mode 100644 dist/models/CreateWarehouseFBSRequestFirstMileTypeEnum.d.ts create mode 100644 dist/models/CreateWarehouseFBSRequestFirstMileTypeEnum.js create mode 100644 dist/models/CreateWarehouseFBSRequestOptions.d.ts create mode 100644 dist/models/CreateWarehouseFBSRequestOptions.js create mode 100644 dist/models/CreateWarehouseFBSRequestWorkingDaysEnum.d.ts create mode 100644 dist/models/CreateWarehouseFBSRequestWorkingDaysEnum.js create mode 100644 dist/models/CreatedAt.d.ts create mode 100644 dist/models/CreatedAt.js create mode 100644 dist/models/DataFulfillment.d.ts create mode 100644 dist/models/DataFulfillment.js create mode 100644 dist/models/DataMacrolocalCluster.d.ts create mode 100644 dist/models/DataMacrolocalCluster.js create mode 100644 dist/models/DeleteProductsRequestProduct.d.ts create mode 100644 dist/models/DeleteProductsRequestProduct.js create mode 100644 dist/models/DeleteProductsResponseDeleteStatus.d.ts create mode 100644 dist/models/DeleteProductsResponseDeleteStatus.js create mode 100644 dist/models/DeliveryCheckoutResponseSplit.d.ts create mode 100644 dist/models/DeliveryCheckoutResponseSplit.js create mode 100644 dist/models/DeliveryCheckoutResponseSplitCommissions.d.ts create mode 100644 dist/models/DeliveryCheckoutResponseSplitCommissions.js create mode 100644 dist/models/DeliveryCheckoutResponseSplitDeliveryMethod.d.ts create mode 100644 dist/models/DeliveryCheckoutResponseSplitDeliveryMethod.js create mode 100644 dist/models/DeliveryCheckoutResponseSplitItem.d.ts create mode 100644 dist/models/DeliveryCheckoutResponseSplitItem.js create mode 100644 dist/models/DeliveryCheckoutResponseUnavailableReasonEnum.d.ts create mode 100644 dist/models/DeliveryCheckoutResponseUnavailableReasonEnum.js create mode 100644 dist/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.d.ts create mode 100644 dist/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.js create mode 100644 dist/models/DeliveryCourier.d.ts create mode 100644 dist/models/DeliveryCourier.js create mode 100644 dist/models/DeliveryDetailsDropOffPointDetails.d.ts create mode 100644 dist/models/DeliveryDetailsDropOffPointDetails.js create mode 100644 dist/models/DeliveryDetailsSupplyType.d.ts create mode 100644 dist/models/DeliveryDetailsSupplyType.js create mode 100644 dist/models/DeliveryMapRequestViewportCoordinatesLeft.d.ts create mode 100644 dist/models/DeliveryMapRequestViewportCoordinatesLeft.js create mode 100644 dist/models/DeliveryMapRequestViewportCoordinatesRight.d.ts create mode 100644 dist/models/DeliveryMapRequestViewportCoordinatesRight.js create mode 100644 dist/models/DeliveryMapResponseCluster.d.ts create mode 100644 dist/models/DeliveryMapResponseCluster.js create mode 100644 dist/models/DeliveryMapResponseClusterCoordinates.d.ts create mode 100644 dist/models/DeliveryMapResponseClusterCoordinates.js create mode 100644 dist/models/DeliveryMapResponseClusterCoordinatesLeft.d.ts create mode 100644 dist/models/DeliveryMapResponseClusterCoordinatesLeft.js create mode 100644 dist/models/DeliveryMapResponseClusterCoordinatesRight.d.ts create mode 100644 dist/models/DeliveryMapResponseClusterCoordinatesRight.js create mode 100644 dist/models/DeliveryMapResponseClusterViewport.d.ts create mode 100644 dist/models/DeliveryMapResponseClusterViewport.js create mode 100644 dist/models/DeliveryMethodAddressDetails.d.ts create mode 100644 dist/models/DeliveryMethodAddressDetails.js create mode 100644 dist/models/DeliveryMethodCarriage.d.ts create mode 100644 dist/models/DeliveryMethodCarriage.js create mode 100644 dist/models/DeliveryMethodDateRange.d.ts create mode 100644 dist/models/DeliveryMethodDateRange.js create mode 100644 dist/models/DeliveryMethodDeliveryPolygon.d.ts create mode 100644 dist/models/DeliveryMethodDeliveryPolygon.js create mode 100644 dist/models/DeliveryMethodDeliveryTypeEnum.d.ts create mode 100644 dist/models/DeliveryMethodDeliveryTypeEnum.js create mode 100644 dist/models/DeliveryMethodError.d.ts create mode 100644 dist/models/DeliveryMethodError.js create mode 100644 dist/models/DeliveryMethodHolidays.d.ts create mode 100644 dist/models/DeliveryMethodHolidays.js create mode 100644 dist/models/DeliveryMethodListRequestFilter.d.ts create mode 100644 dist/models/DeliveryMethodListRequestFilter.js create mode 100644 dist/models/DeliveryMethodListResponseDeliveryMethod.d.ts create mode 100644 dist/models/DeliveryMethodListResponseDeliveryMethod.js create mode 100644 dist/models/DeliveryMethodListV2RequestFilter.d.ts create mode 100644 dist/models/DeliveryMethodListV2RequestFilter.js create mode 100644 dist/models/DeliveryMethodListV2RequestSortDirEnum.d.ts create mode 100644 dist/models/DeliveryMethodListV2RequestSortDirEnum.js create mode 100644 dist/models/DeliveryMethodListV2ResponseDeliveryMethod.d.ts create mode 100644 dist/models/DeliveryMethodListV2ResponseDeliveryMethod.js create mode 100644 dist/models/DeliveryMethodProperties.d.ts create mode 100644 dist/models/DeliveryMethodProperties.js create mode 100644 dist/models/DeliveryMethodTimeslot.d.ts create mode 100644 dist/models/DeliveryMethodTimeslot.js create mode 100644 dist/models/DeliveryMethodWorkingHours.d.ts create mode 100644 dist/models/DeliveryMethodWorkingHours.js create mode 100644 dist/models/DeliveryPickUp.d.ts create mode 100644 dist/models/DeliveryPickUp.js create mode 100644 dist/models/DeliveryPointInfoResponsePointDeliveryMethod.d.ts create mode 100644 dist/models/DeliveryPointInfoResponsePointDeliveryMethod.js create mode 100644 dist/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.d.ts create mode 100644 dist/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.js create mode 100644 dist/models/DeliveryPointListResponsePointCoordinates.d.ts create mode 100644 dist/models/DeliveryPointListResponsePointCoordinates.js create mode 100644 dist/models/DeliveryTypeCourier.d.ts create mode 100644 dist/models/DeliveryTypeCourier.js create mode 100644 dist/models/DeliveryTypeCourierCoordinates.d.ts create mode 100644 dist/models/DeliveryTypeCourierCoordinates.js create mode 100644 dist/models/DeliveryTypeEnum.d.ts create mode 100644 dist/models/DeliveryTypeEnum.js create mode 100644 dist/models/DeliveryTypePickUp.d.ts create mode 100644 dist/models/DeliveryTypePickUp.js create mode 100644 dist/models/DetailsDeliveryDetails.d.ts create mode 100644 dist/models/DetailsDeliveryDetails.js create mode 100644 dist/models/DetailsOthers.d.ts create mode 100644 dist/models/DetailsOthers.js create mode 100644 dist/models/DetailsPayment.d.ts create mode 100644 dist/models/DetailsPayment.js create mode 100644 dist/models/DetailsReturnDetails.d.ts create mode 100644 dist/models/DetailsReturnDetails.js create mode 100644 dist/models/DetailsReturns.d.ts create mode 100644 dist/models/DetailsReturns.js create mode 100644 dist/models/DetailsRfbsDetails.d.ts create mode 100644 dist/models/DetailsRfbsDetails.js create mode 100644 dist/models/DetailsService.d.ts create mode 100644 dist/models/DetailsService.js create mode 100644 dist/models/DetailsServices.d.ts create mode 100644 dist/models/DetailsServices.js create mode 100644 dist/models/DirEnum.d.ts create mode 100644 dist/models/DirEnum.js create mode 100644 dist/models/DirectDetailsBySellerDetails.d.ts create mode 100644 dist/models/DirectDetailsBySellerDetails.js create mode 100644 dist/models/DirectDetailsByTplDetails.d.ts create mode 100644 dist/models/DirectDetailsByTplDetails.js create mode 100644 dist/models/DirectDetailsTimeslotDetails.d.ts create mode 100644 dist/models/DirectDetailsTimeslotDetails.js create mode 100644 dist/models/DraftClusterListResponseLogisticCluster.d.ts create mode 100644 dist/models/DraftClusterListResponseLogisticCluster.js create mode 100644 dist/models/DraftCreateCommonResponseError.d.ts create mode 100644 dist/models/DraftCreateCommonResponseError.js create mode 100644 dist/models/DraftCreateCommonResponseErrorItemsValidation.d.ts create mode 100644 dist/models/DraftCreateCommonResponseErrorItemsValidation.js create mode 100644 dist/models/DraftCreateInfoResponseCluster.d.ts create mode 100644 dist/models/DraftCreateInfoResponseCluster.js create mode 100644 dist/models/DraftCreateInfoResponseError.d.ts create mode 100644 dist/models/DraftCreateInfoResponseError.js create mode 100644 dist/models/DraftCreateInfoResponseErrorErrorReasonEnum.d.ts create mode 100644 dist/models/DraftCreateInfoResponseErrorErrorReasonEnum.js create mode 100644 dist/models/DraftGetWarehouseFboListResponseCoordinate.d.ts create mode 100644 dist/models/DraftGetWarehouseFboListResponseCoordinate.js create mode 100644 dist/models/DraftGetWarehouseFboListResponseSearch.d.ts create mode 100644 dist/models/DraftGetWarehouseFboListResponseSearch.js create mode 100644 dist/models/DraftGetWarehouseFboListResponseWarehouseType.d.ts create mode 100644 dist/models/DraftGetWarehouseFboListResponseWarehouseType.js create mode 100644 dist/models/DraftTimeslotInfoResponseResult.d.ts create mode 100644 dist/models/DraftTimeslotInfoResponseResult.js create mode 100644 dist/models/DropOffPointCoordinates.d.ts create mode 100644 dist/models/DropOffPointCoordinates.js create mode 100644 dist/models/DropOffWarehouseTimeslotsDay.d.ts create mode 100644 dist/models/DropOffWarehouseTimeslotsDay.js create mode 100644 dist/models/DropOffWarehouseTimeslotsDayTimeslot.d.ts create mode 100644 dist/models/DropOffWarehouseTimeslotsDayTimeslot.js create mode 100644 dist/models/ErrorData.d.ts create mode 100644 dist/models/ErrorData.js create mode 100644 dist/models/ErrorErrorLevel.d.ts create mode 100644 dist/models/ErrorErrorLevel.js create mode 100644 dist/models/ErrorErrorMessageEnum.d.ts create mode 100644 dist/models/ErrorErrorMessageEnum.js create mode 100644 dist/models/ErrorErrorReasonEnum.d.ts create mode 100644 dist/models/ErrorErrorReasonEnum.js create mode 100644 dist/models/ErrorHumanTexts.d.ts create mode 100644 dist/models/ErrorHumanTexts.js create mode 100644 dist/models/ErrorItemsValidation.d.ts create mode 100644 dist/models/ErrorItemsValidation.js create mode 100644 dist/models/ExemplarMark.d.ts create mode 100644 dist/models/ExemplarMark.js create mode 100644 dist/models/ExemplarsMarks.d.ts create mode 100644 dist/models/ExemplarsMarks.js create mode 100644 dist/models/FboPostingFboPostingAnalyticsData.d.ts create mode 100644 dist/models/FboPostingFboPostingAnalyticsData.js create mode 100644 dist/models/FbpCheckActStateResponseErrorReason.d.ts create mode 100644 dist/models/FbpCheckActStateResponseErrorReason.js create mode 100644 dist/models/FbpCheckConsignmentNoteStateResponseStateType.d.ts create mode 100644 dist/models/FbpCheckConsignmentNoteStateResponseStateType.js create mode 100644 dist/models/FbpCreateActResponseCreateActErrorReason.d.ts create mode 100644 dist/models/FbpCreateActResponseCreateActErrorReason.js create mode 100644 dist/models/FbpDraftDropOffPointListResponseDropOffPoint.d.ts create mode 100644 dist/models/FbpDraftDropOffPointListResponseDropOffPoint.js create mode 100644 dist/models/FbpDraftDropOffProvinceListResponseProvince.d.ts create mode 100644 dist/models/FbpDraftDropOffProvinceListResponseProvince.js create mode 100644 dist/models/FbpDraftGetResponseDeclineReason.d.ts create mode 100644 dist/models/FbpDraftGetResponseDeclineReason.js create mode 100644 dist/models/FbpGetLabelResponseLabelCreationStateTypeEnum.d.ts create mode 100644 dist/models/FbpGetLabelResponseLabelCreationStateTypeEnum.js create mode 100644 dist/models/FbpWarehouseListResponseAddressDetailing.d.ts create mode 100644 dist/models/FbpWarehouseListResponseAddressDetailing.js create mode 100644 dist/models/FbpWarehouseListResponseWarehouse.d.ts create mode 100644 dist/models/FbpWarehouseListResponseWarehouse.js create mode 100644 dist/models/Fbpv1DeliveryDetails.d.ts create mode 100644 dist/models/Fbpv1DeliveryDetails.js create mode 100644 dist/models/Fbpv1Timeslot.d.ts create mode 100644 dist/models/Fbpv1Timeslot.js create mode 100644 dist/models/FbsPostingBarcodes.d.ts create mode 100644 dist/models/FbsPostingBarcodes.js create mode 100644 dist/models/FbsPostingDetailCourier.d.ts create mode 100644 dist/models/FbsPostingDetailCourier.js create mode 100644 dist/models/FbsPostingDetailPrrOption.d.ts create mode 100644 dist/models/FbsPostingDetailPrrOption.js create mode 100644 dist/models/FbsPostingMoveStatusResponseMoveStatus.d.ts create mode 100644 dist/models/FbsPostingMoveStatusResponseMoveStatus.js create mode 100644 dist/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.d.ts create mode 100644 dist/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.js create mode 100644 dist/models/FbsPostingProductExemplarSetV6RequestExemplars.d.ts create mode 100644 dist/models/FbsPostingProductExemplarSetV6RequestExemplars.js create mode 100644 dist/models/FbsPostingProductExemplarSetV6RequestProducts.d.ts create mode 100644 dist/models/FbsPostingProductExemplarSetV6RequestProducts.js create mode 100644 dist/models/FbsPostingShipV4RequestPackage.d.ts create mode 100644 dist/models/FbsPostingShipV4RequestPackage.js create mode 100644 dist/models/FbsPostingShipV4RequestPackageProduct.d.ts create mode 100644 dist/models/FbsPostingShipV4RequestPackageProduct.js create mode 100644 dist/models/FbsPostingShipV4RequestWith.d.ts create mode 100644 dist/models/FbsPostingShipV4RequestWith.js create mode 100644 dist/models/FbsPostingShipV4ResponseShipAdditionalData.d.ts create mode 100644 dist/models/FbsPostingShipV4ResponseShipAdditionalData.js create mode 100644 dist/models/FbsPostingTrackingNumberSetRequestTrackingNumber.d.ts create mode 100644 dist/models/FbsPostingTrackingNumberSetRequestTrackingNumber.js create mode 100644 dist/models/Fbsv4FbsPostingShipV4Request.d.ts create mode 100644 dist/models/Fbsv4FbsPostingShipV4Request.js create mode 100644 dist/models/Fbsv4FbsPostingShipV4Response.d.ts create mode 100644 dist/models/Fbsv4FbsPostingShipV4Response.js create mode 100644 dist/models/Fbsv4PostingProductDetailWithoutDimensions.d.ts create mode 100644 dist/models/Fbsv4PostingProductDetailWithoutDimensions.js create mode 100644 dist/models/FilterPeriod.d.ts create mode 100644 dist/models/FilterPeriod.js create mode 100644 dist/models/FilterStatusEnum.d.ts create mode 100644 dist/models/FilterStatusEnum.js create mode 100644 dist/models/FilterTimeslotFromRange.d.ts create mode 100644 dist/models/FilterTimeslotFromRange.js create mode 100644 dist/models/FilterWithQuant.d.ts create mode 100644 dist/models/FilterWithQuant.js create mode 100644 dist/models/FinanceCashFlowStatementListResponseCashFlow.d.ts create mode 100644 dist/models/FinanceCashFlowStatementListResponseCashFlow.js create mode 100644 dist/models/FinanceCashFlowStatementListResponseDeliveryService.d.ts create mode 100644 dist/models/FinanceCashFlowStatementListResponseDeliveryService.js create mode 100644 dist/models/FinanceCashFlowStatementListResponseDetails.d.ts create mode 100644 dist/models/FinanceCashFlowStatementListResponseDetails.js create mode 100644 dist/models/FinanceCashFlowStatementListResponseDetailsOthers.d.ts create mode 100644 dist/models/FinanceCashFlowStatementListResponseDetailsOthers.js create mode 100644 dist/models/FinanceCashFlowStatementListResponseReturnService.d.ts create mode 100644 dist/models/FinanceCashFlowStatementListResponseReturnService.js create mode 100644 dist/models/FinanceCashFlowStatementListResponseService.d.ts create mode 100644 dist/models/FinanceCashFlowStatementListResponseService.js create mode 100644 dist/models/FinanceTransactionListV3RequestFilter.d.ts create mode 100644 dist/models/FinanceTransactionListV3RequestFilter.js create mode 100644 dist/models/FinanceTransactionListV3ResponseOperation.d.ts create mode 100644 dist/models/FinanceTransactionListV3ResponseOperation.js create mode 100644 dist/models/FinanceTransactionTotalsV3RequestDate.d.ts create mode 100644 dist/models/FinanceTransactionTotalsV3RequestDate.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayRequest.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayRequest.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponse.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponse.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualPostingsRequest.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualPostingsRequest.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualPostingsResponse.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualPostingsResponse.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualTypesResponse.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualTypesResponse.js create mode 100644 dist/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.d.ts create mode 100644 dist/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.js create mode 100644 dist/models/Financev3FinanceTransactionListV3Request.d.ts create mode 100644 dist/models/Financev3FinanceTransactionListV3Request.js create mode 100644 dist/models/Financev3FinanceTransactionListV3Response.d.ts create mode 100644 dist/models/Financev3FinanceTransactionListV3Response.js create mode 100644 dist/models/Financev3FinanceTransactionListV3ResponseResult.d.ts create mode 100644 dist/models/Financev3FinanceTransactionListV3ResponseResult.js create mode 100644 dist/models/Financev3FinanceTransactionTotalsV3Request.d.ts create mode 100644 dist/models/Financev3FinanceTransactionTotalsV3Request.js create mode 100644 dist/models/Financev3FinanceTransactionTotalsV3Response.d.ts create mode 100644 dist/models/Financev3FinanceTransactionTotalsV3Response.js create mode 100644 dist/models/Financev3FinanceTransactionTotalsV3ResponseResult.d.ts create mode 100644 dist/models/Financev3FinanceTransactionTotalsV3ResponseResult.js create mode 100644 dist/models/Financev3Period.d.ts create mode 100644 dist/models/Financev3Period.js create mode 100644 dist/models/FirstMileTypeEnum.d.ts create mode 100644 dist/models/FirstMileTypeEnum.js create mode 100644 dist/models/GetCarriageAvailableListResponseResult.d.ts create mode 100644 dist/models/GetCarriageAvailableListResponseResult.js create mode 100644 dist/models/GetCompetitorsResponseCompetitorInfo.d.ts create mode 100644 dist/models/GetCompetitorsResponseCompetitorInfo.js create mode 100644 dist/models/GetConditionalCancellationListV2RequestFilters.d.ts create mode 100644 dist/models/GetConditionalCancellationListV2RequestFilters.js create mode 100644 dist/models/GetConditionalCancellationListV2RequestWith.d.ts create mode 100644 dist/models/GetConditionalCancellationListV2RequestWith.js create mode 100644 dist/models/GetConditionalCancellationListV2ResponseCancellationReason.d.ts create mode 100644 dist/models/GetConditionalCancellationListV2ResponseCancellationReason.js create mode 100644 dist/models/GetConditionalCancellationListV2ResponseResult.d.ts create mode 100644 dist/models/GetConditionalCancellationListV2ResponseResult.js create mode 100644 dist/models/GetConditionalCancellationListV2ResponseState.d.ts create mode 100644 dist/models/GetConditionalCancellationListV2ResponseState.js create mode 100644 dist/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.d.ts create mode 100644 dist/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.js create mode 100644 dist/models/GetDiscountTaskListV2ResponseTask.d.ts create mode 100644 dist/models/GetDiscountTaskListV2ResponseTask.js create mode 100644 dist/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.d.ts create mode 100644 dist/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.js create mode 100644 dist/models/GetEtgbRequestDate.d.ts create mode 100644 dist/models/GetEtgbRequestDate.js create mode 100644 dist/models/GetEtgbResponseResult.d.ts create mode 100644 dist/models/GetEtgbResponseResult.js create mode 100644 dist/models/GetEtgbResponseResultEtgb.d.ts create mode 100644 dist/models/GetEtgbResponseResultEtgb.js create mode 100644 dist/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.d.ts create mode 100644 dist/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.js create mode 100644 dist/models/GetFinanceBalanceV1ResponseCashflows.d.ts create mode 100644 dist/models/GetFinanceBalanceV1ResponseCashflows.js create mode 100644 dist/models/GetFinanceBalanceV1ResponseReturns.d.ts create mode 100644 dist/models/GetFinanceBalanceV1ResponseReturns.js create mode 100644 dist/models/GetFinanceBalanceV1ResponseReturnsDetails.d.ts create mode 100644 dist/models/GetFinanceBalanceV1ResponseReturnsDetails.js create mode 100644 dist/models/GetFinanceBalanceV1ResponseSales.d.ts create mode 100644 dist/models/GetFinanceBalanceV1ResponseSales.js create mode 100644 dist/models/GetFinanceBalanceV1ResponseSalesDetails.d.ts create mode 100644 dist/models/GetFinanceBalanceV1ResponseSalesDetails.js create mode 100644 dist/models/GetFinanceBalanceV1ResponseService.d.ts create mode 100644 dist/models/GetFinanceBalanceV1ResponseService.js create mode 100644 dist/models/GetFinanceBalanceV1ResponseTotal.d.ts create mode 100644 dist/models/GetFinanceBalanceV1ResponseTotal.js create mode 100644 dist/models/GetFinanceProductsBuyoutResponseProduct.d.ts create mode 100644 dist/models/GetFinanceProductsBuyoutResponseProduct.js create mode 100644 dist/models/GetImportProductsInfoResponseResultItem.d.ts create mode 100644 dist/models/GetImportProductsInfoResponseResultItem.js create mode 100644 dist/models/GetProductAttributesResponseImage.d.ts create mode 100644 dist/models/GetProductAttributesResponseImage.js create mode 100644 dist/models/GetProductAttributesV3ResponseDictionaryValue.d.ts create mode 100644 dist/models/GetProductAttributesV3ResponseDictionaryValue.js create mode 100644 dist/models/GetProductAttributesV4ResponseAttribute.d.ts create mode 100644 dist/models/GetProductAttributesV4ResponseAttribute.js create mode 100644 dist/models/GetProductInfoListResponseAvailability.d.ts create mode 100644 dist/models/GetProductInfoListResponseAvailability.js create mode 100644 dist/models/GetProductInfoListResponseCommission.d.ts create mode 100644 dist/models/GetProductInfoListResponseCommission.js create mode 100644 dist/models/GetProductInfoListResponseError.d.ts create mode 100644 dist/models/GetProductInfoListResponseError.js create mode 100644 dist/models/GetProductInfoListResponseModelInfo.d.ts create mode 100644 dist/models/GetProductInfoListResponseModelInfo.js create mode 100644 dist/models/GetProductInfoListResponsePriceIndexes.d.ts create mode 100644 dist/models/GetProductInfoListResponsePriceIndexes.js create mode 100644 dist/models/GetProductInfoListResponseSource.d.ts create mode 100644 dist/models/GetProductInfoListResponseSource.js create mode 100644 dist/models/GetProductInfoListResponseStatuses.d.ts create mode 100644 dist/models/GetProductInfoListResponseStatuses.js create mode 100644 dist/models/GetProductInfoListResponseStocks.d.ts create mode 100644 dist/models/GetProductInfoListResponseStocks.js create mode 100644 dist/models/GetProductInfoListResponseStocksStock.d.ts create mode 100644 dist/models/GetProductInfoListResponseStocksStock.js create mode 100644 dist/models/GetProductInfoListResponseVisibilityDetails.d.ts create mode 100644 dist/models/GetProductInfoListResponseVisibilityDetails.js create mode 100644 dist/models/GetProductInfoPricesResponseItemPriceIndexes.d.ts create mode 100644 dist/models/GetProductInfoPricesResponseItemPriceIndexes.js create mode 100644 dist/models/GetProductInfoStocksResponseStock.d.ts create mode 100644 dist/models/GetProductInfoStocksResponseStock.js create mode 100644 dist/models/GetProductPlacementZoneInfoResponseProductPlacement.d.ts create mode 100644 dist/models/GetProductPlacementZoneInfoResponseProductPlacement.js create mode 100644 dist/models/GetProductRatingBySkuResponseProductRating.d.ts create mode 100644 dist/models/GetProductRatingBySkuResponseProductRating.js create mode 100644 dist/models/GetProductRatingBySkuResponseRatingCondition.d.ts create mode 100644 dist/models/GetProductRatingBySkuResponseRatingCondition.js create mode 100644 dist/models/GetProductRatingBySkuResponseRatingGroup.d.ts create mode 100644 dist/models/GetProductRatingBySkuResponseRatingGroup.js create mode 100644 dist/models/GetProductRatingBySkuResponseRatingImproveAttribute.d.ts create mode 100644 dist/models/GetProductRatingBySkuResponseRatingImproveAttribute.js create mode 100644 dist/models/GetRealizationReportByDayResponse.d.ts create mode 100644 dist/models/GetRealizationReportByDayResponse.js create mode 100644 dist/models/GetRealizationReportByDayResponseRow.d.ts create mode 100644 dist/models/GetRealizationReportByDayResponseRow.js create mode 100644 dist/models/GetRealizationReportResponseV2Header.d.ts create mode 100644 dist/models/GetRealizationReportResponseV2Header.js create mode 100644 dist/models/GetRealizationReportResponseV2Result.d.ts create mode 100644 dist/models/GetRealizationReportResponseV2Result.js create mode 100644 dist/models/GetRealizationReportResponseV2Row.d.ts create mode 100644 dist/models/GetRealizationReportResponseV2Row.js create mode 100644 dist/models/GetReturnsListRequestFilter.d.ts create mode 100644 dist/models/GetReturnsListRequestFilter.js create mode 100644 dist/models/GetReturnsListResponseAdditionalInfo.d.ts create mode 100644 dist/models/GetReturnsListResponseAdditionalInfo.js create mode 100644 dist/models/GetReturnsListResponseCompensation.d.ts create mode 100644 dist/models/GetReturnsListResponseCompensation.js create mode 100644 dist/models/GetReturnsListResponseCompensationStatus.d.ts create mode 100644 dist/models/GetReturnsListResponseCompensationStatus.js create mode 100644 dist/models/GetReturnsListResponseExemplar.d.ts create mode 100644 dist/models/GetReturnsListResponseExemplar.js create mode 100644 dist/models/GetReturnsListResponseLogistic.d.ts create mode 100644 dist/models/GetReturnsListResponseLogistic.js create mode 100644 dist/models/GetReturnsListResponsePlaceNow.d.ts create mode 100644 dist/models/GetReturnsListResponsePlaceNow.js create mode 100644 dist/models/GetReturnsListResponsePlaceTarget.d.ts create mode 100644 dist/models/GetReturnsListResponsePlaceTarget.js create mode 100644 dist/models/GetReturnsListResponseProduct.d.ts create mode 100644 dist/models/GetReturnsListResponseProduct.js create mode 100644 dist/models/GetReturnsListResponseReturnsItem.d.ts create mode 100644 dist/models/GetReturnsListResponseReturnsItem.js create mode 100644 dist/models/GetReturnsListResponseStorage.d.ts create mode 100644 dist/models/GetReturnsListResponseStorage.js create mode 100644 dist/models/GetReturnsListResponseVisual.d.ts create mode 100644 dist/models/GetReturnsListResponseVisual.js create mode 100644 dist/models/GetReturnsListResponseVisualStatus.d.ts create mode 100644 dist/models/GetReturnsListResponseVisualStatus.js create mode 100644 dist/models/GetSellerActionsV1ResponseAction.d.ts create mode 100644 dist/models/GetSellerActionsV1ResponseAction.js create mode 100644 dist/models/GetStrategyIDsByItemIDsResponseProductInfo.d.ts create mode 100644 dist/models/GetStrategyIDsByItemIDsResponseProductInfo.js create mode 100644 dist/models/GetStrategyListResponseStrategy.d.ts create mode 100644 dist/models/GetStrategyListResponseStrategy.js create mode 100644 dist/models/GetSupplyOrderBundleRequestItemTagsCalculation.d.ts create mode 100644 dist/models/GetSupplyOrderBundleRequestItemTagsCalculation.js create mode 100644 dist/models/GetUploadQuotaResponseDailyCreate.d.ts create mode 100644 dist/models/GetUploadQuotaResponseDailyCreate.js create mode 100644 dist/models/GetUploadQuotaResponseDailyUpdate.d.ts create mode 100644 dist/models/GetUploadQuotaResponseDailyUpdate.js create mode 100644 dist/models/GetUploadQuotaResponseTotal.d.ts create mode 100644 dist/models/GetUploadQuotaResponseTotal.js create mode 100644 dist/models/GetWarehouseFBSOperationStatusResponseError.d.ts create mode 100644 dist/models/GetWarehouseFBSOperationStatusResponseError.js create mode 100644 dist/models/GetWarehouseFBSOperationStatusResponseResult.d.ts create mode 100644 dist/models/GetWarehouseFBSOperationStatusResponseResult.js create mode 100644 dist/models/GetWarehouseFBSOperationStatusResponseStatusEnum.d.ts create mode 100644 dist/models/GetWarehouseFBSOperationStatusResponseStatusEnum.js create mode 100644 dist/models/GetWarehouseFBSOperationStatusResponseTypeEnum.d.ts create mode 100644 dist/models/GetWarehouseFBSOperationStatusResponseTypeEnum.js create mode 100644 dist/models/GiveoutInfoResponseArticleDetails.d.ts create mode 100644 dist/models/GiveoutInfoResponseArticleDetails.js create mode 100644 dist/models/GiveoutListResponseGiveoutDetails.d.ts create mode 100644 dist/models/GiveoutListResponseGiveoutDetails.js create mode 100644 dist/models/GoogleTypeDate.d.ts create mode 100644 dist/models/GoogleTypeDate.js create mode 100644 dist/models/GooglerpcStatus.d.ts create mode 100644 dist/models/GooglerpcStatus.js create mode 100644 dist/models/HumanTextsParam.d.ts create mode 100644 dist/models/HumanTextsParam.js create mode 100644 dist/models/ImportProductRequestPromotion.d.ts create mode 100644 dist/models/ImportProductRequestPromotion.js create mode 100644 dist/models/ImportProductsRequestPdfList.d.ts create mode 100644 dist/models/ImportProductsRequestPdfList.js create mode 100644 dist/models/InvoiceGetV2ResponseResult.d.ts create mode 100644 dist/models/InvoiceGetV2ResponseResult.js create mode 100644 dist/models/ItemBundleSummary.d.ts create mode 100644 dist/models/ItemBundleSummary.js create mode 100644 dist/models/ItemCommissionsv5.d.ts create mode 100644 dist/models/ItemCommissionsv5.js create mode 100644 dist/models/ItemMarketing.d.ts create mode 100644 dist/models/ItemMarketing.js create mode 100644 dist/models/ItemPricev5.d.ts create mode 100644 dist/models/ItemPricev5.js create mode 100644 dist/models/ItemSize.d.ts create mode 100644 dist/models/ItemSize.js create mode 100644 dist/models/ItemStatusError.d.ts create mode 100644 dist/models/ItemStatusError.js create mode 100644 dist/models/ItemValidationErrorType.d.ts create mode 100644 dist/models/ItemValidationErrorType.js create mode 100644 dist/models/ItemsValidationRejectedItems.d.ts create mode 100644 dist/models/ItemsValidationRejectedItems.js create mode 100644 dist/models/LanguageLanguage.d.ts create mode 100644 dist/models/LanguageLanguage.js create mode 100644 dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.d.ts create mode 100644 dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.js create mode 100644 dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts create mode 100644 dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.js create mode 100644 dist/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.d.ts create mode 100644 dist/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.js create mode 100644 dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.d.ts create mode 100644 dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.js create mode 100644 dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts create mode 100644 dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.js create mode 100644 dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.d.ts create mode 100644 dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.js create mode 100644 dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.d.ts create mode 100644 dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.js create mode 100644 dist/models/ListFBSRatingIndexPostingsV1RequestFilter.d.ts create mode 100644 dist/models/ListFBSRatingIndexPostingsV1RequestFilter.js create mode 100644 dist/models/ListFBSRatingIndexPostingsV1ResponseError.d.ts create mode 100644 dist/models/ListFBSRatingIndexPostingsV1ResponseError.js create mode 100644 dist/models/ListPostingCodesRequestFilter.d.ts create mode 100644 dist/models/ListPostingCodesRequestFilter.js create mode 100644 dist/models/ListPostingCodesRequestWithParams.d.ts create mode 100644 dist/models/ListPostingCodesRequestWithParams.js create mode 100644 dist/models/ListPostingCodesResponsePosting.d.ts create mode 100644 dist/models/ListPostingCodesResponsePosting.js create mode 100644 dist/models/LogisticTimeslotDateRange.d.ts create mode 100644 dist/models/LogisticTimeslotDateRange.js create mode 100644 dist/models/MacrolocalClusterCountry.d.ts create mode 100644 dist/models/MacrolocalClusterCountry.js create mode 100644 dist/models/MarketingAction.d.ts create mode 100644 dist/models/MarketingAction.js create mode 100644 dist/models/MaxPeriodsPeriod.d.ts create mode 100644 dist/models/MaxPeriodsPeriod.js create mode 100644 dist/models/MinPeriodsPeriod.d.ts create mode 100644 dist/models/MinPeriodsPeriod.js create mode 100644 dist/models/MinUtilizationMoney.d.ts create mode 100644 dist/models/MinUtilizationMoney.js create mode 100644 dist/models/MoneyMoney.d.ts create mode 100644 dist/models/MoneyMoney.js create mode 100644 dist/models/MoneyMoneyAccrued.d.ts create mode 100644 dist/models/MoneyMoneyAccrued.js create mode 100644 dist/models/MoneyMoneyBonus.d.ts create mode 100644 dist/models/MoneyMoneyBonus.js create mode 100644 dist/models/MoneyMoneyCoinvestment.d.ts create mode 100644 dist/models/MoneyMoneyCoinvestment.js create mode 100644 dist/models/MoneyMoneyComissions.d.ts create mode 100644 dist/models/MoneyMoneyComissions.js create mode 100644 dist/models/MoneyMoneyCommission.d.ts create mode 100644 dist/models/MoneyMoneyCommission.js create mode 100644 dist/models/MoneyMoneyCurrentTariffCharge.d.ts create mode 100644 dist/models/MoneyMoneyCurrentTariffCharge.js create mode 100644 dist/models/MoneyMoneyCurrentTariffMinCharge.d.ts create mode 100644 dist/models/MoneyMoneyCurrentTariffMinCharge.js create mode 100644 dist/models/MoneyMoneyCustomerPrice.d.ts create mode 100644 dist/models/MoneyMoneyCustomerPrice.js create mode 100644 dist/models/MoneyMoneyFBPget.d.ts create mode 100644 dist/models/MoneyMoneyFBPget.js create mode 100644 dist/models/MoneyMoneyNextTariffCharge.d.ts create mode 100644 dist/models/MoneyMoneyNextTariffCharge.js create mode 100644 dist/models/MoneyMoneyNextTariffMinCharge.d.ts create mode 100644 dist/models/MoneyMoneyNextTariffMinCharge.js create mode 100644 dist/models/MoneyMoneyPriceWithoutVat.d.ts create mode 100644 dist/models/MoneyMoneyPriceWithoutVat.js create mode 100644 dist/models/MoneyMoneySaleAmount.d.ts create mode 100644 dist/models/MoneyMoneySaleAmount.js create mode 100644 dist/models/MoneyMoneySaleCommission.d.ts create mode 100644 dist/models/MoneyMoneySaleCommission.js create mode 100644 dist/models/MoneyMoneySalePrice.d.ts create mode 100644 dist/models/MoneyMoneySalePrice.js create mode 100644 dist/models/MoneyMoneySelf.d.ts create mode 100644 dist/models/MoneyMoneySelf.js create mode 100644 dist/models/MoneyMoneySellerPrice.d.ts create mode 100644 dist/models/MoneyMoneySellerPrice.js create mode 100644 dist/models/MoneyMoneySplitCommission.d.ts create mode 100644 dist/models/MoneyMoneySplitCommission.js create mode 100644 dist/models/MoneyMoneySupplyActAmount.d.ts create mode 100644 dist/models/MoneyMoneySupplyActAmount.js create mode 100644 dist/models/MoneyMoneySupplyActAmountVat.d.ts create mode 100644 dist/models/MoneyMoneySupplyActAmountVat.js create mode 100644 dist/models/MoneyMoneySupplyActAmountWithoutVat.d.ts create mode 100644 dist/models/MoneyMoneySupplyActAmountWithoutVat.js create mode 100644 dist/models/MoneyMoneyTotalAccrued.d.ts create mode 100644 dist/models/MoneyMoneyTotalAccrued.js create mode 100644 dist/models/MoneyMoneyTotalAmount.d.ts create mode 100644 dist/models/MoneyMoneyTotalAmount.js create mode 100644 dist/models/MoneyPostingMoney.d.ts create mode 100644 dist/models/MoneyPostingMoney.js create mode 100644 dist/models/NotificationV1CheckNotificationRequest.d.ts create mode 100644 dist/models/NotificationV1CheckNotificationRequest.js create mode 100644 dist/models/NotificationV1CheckNotificationResponse.d.ts create mode 100644 dist/models/NotificationV1CheckNotificationResponse.js create mode 100644 dist/models/NotificationV1CheckNotificationResponseError.d.ts create mode 100644 dist/models/NotificationV1CheckNotificationResponseError.js create mode 100644 dist/models/NotificationV1CheckNotificationResponseErrorTypeEnum.d.ts create mode 100644 dist/models/NotificationV1CheckNotificationResponseErrorTypeEnum.js create mode 100644 dist/models/NotificationV1DeleteNotificationRequest.d.ts create mode 100644 dist/models/NotificationV1DeleteNotificationRequest.js create mode 100644 dist/models/NotificationV1EnableNotificationRequest.d.ts create mode 100644 dist/models/NotificationV1EnableNotificationRequest.js create mode 100644 dist/models/NotificationV1GetNotificationPushTypeListResponse.d.ts create mode 100644 dist/models/NotificationV1GetNotificationPushTypeListResponse.js create mode 100644 dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.d.ts create mode 100644 dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.js create mode 100644 dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.d.ts create mode 100644 dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.js create mode 100644 dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.d.ts create mode 100644 dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.js create mode 100644 dist/models/NotificationV1NotificationListResponse.d.ts create mode 100644 dist/models/NotificationV1NotificationListResponse.js create mode 100644 dist/models/NotificationV1NotificationListResponseNotification.d.ts create mode 100644 dist/models/NotificationV1NotificationListResponseNotification.js create mode 100644 dist/models/NotificationV1NotificationListResponseNotificationNotificationType.d.ts create mode 100644 dist/models/NotificationV1NotificationListResponseNotificationNotificationType.js create mode 100644 dist/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.d.ts create mode 100644 dist/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.js create mode 100644 dist/models/NotificationV1SetNotificationRequest.d.ts create mode 100644 dist/models/NotificationV1SetNotificationRequest.js create mode 100644 dist/models/NotificationV1SetNotificationRequestTypeEnum.d.ts create mode 100644 dist/models/NotificationV1SetNotificationRequestTypeEnum.js create mode 100644 dist/models/NotificationV1UpdateNotificationRequest.d.ts create mode 100644 dist/models/NotificationV1UpdateNotificationRequest.js create mode 100644 dist/models/NotificationV1UpdateNotificationRequestTypeEnum.d.ts create mode 100644 dist/models/NotificationV1UpdateNotificationRequestTypeEnum.js create mode 100644 dist/models/OperationItem.d.ts create mode 100644 dist/models/OperationItem.js create mode 100644 dist/models/OperationPosting.d.ts create mode 100644 dist/models/OperationPosting.js create mode 100644 dist/models/OperationService.d.ts create mode 100644 dist/models/OperationService.js create mode 100644 dist/models/OrderCancelCheckResponsePosting.d.ts create mode 100644 dist/models/OrderCancelCheckResponsePosting.js create mode 100644 dist/models/OrderCancelCheckResponsePostingGroup.d.ts create mode 100644 dist/models/OrderCancelCheckResponsePostingGroup.js create mode 100644 dist/models/OrderCreateRequestBuyer.d.ts create mode 100644 dist/models/OrderCreateRequestBuyer.js create mode 100644 dist/models/OrderCreateRequestDelivery.d.ts create mode 100644 dist/models/OrderCreateRequestDelivery.js create mode 100644 dist/models/OrderCreateRequestDeliveryPrice.d.ts create mode 100644 dist/models/OrderCreateRequestDeliveryPrice.js create mode 100644 dist/models/OrderCreateRequestPrice.d.ts create mode 100644 dist/models/OrderCreateRequestPrice.js create mode 100644 dist/models/OrderCreateRequestRecipient.d.ts create mode 100644 dist/models/OrderCreateRequestRecipient.js create mode 100644 dist/models/OrderCreateRequestSplit.d.ts create mode 100644 dist/models/OrderCreateRequestSplit.js create mode 100644 dist/models/OrderCreateRequestV2DeliverySchemaEnum.d.ts create mode 100644 dist/models/OrderCreateRequestV2DeliverySchemaEnum.js create mode 100644 dist/models/OrderDropOffWarehouse.d.ts create mode 100644 dist/models/OrderDropOffWarehouse.js create mode 100644 dist/models/OrderOrderStateEnum.d.ts create mode 100644 dist/models/OrderOrderStateEnum.js create mode 100644 dist/models/OrderOrderTags.d.ts create mode 100644 dist/models/OrderOrderTags.js create mode 100644 dist/models/OrderSupply.d.ts create mode 100644 dist/models/OrderSupply.js create mode 100644 dist/models/OrderSupplyStateEnum.d.ts create mode 100644 dist/models/OrderSupplyStateEnum.js create mode 100644 dist/models/ParameterAutoStopActionReasonEnum.d.ts create mode 100644 dist/models/ParameterAutoStopActionReasonEnum.js create mode 100644 dist/models/ParameterDiscountLevels.d.ts create mode 100644 dist/models/ParameterDiscountLevels.js create mode 100644 dist/models/ParameterPickedSegment.d.ts create mode 100644 dist/models/ParameterPickedSegment.js create mode 100644 dist/models/PickedSegmentSegment.d.ts create mode 100644 dist/models/PickedSegmentSegment.js create mode 100644 dist/models/PickedSegmentSegmentTypeEnum.d.ts create mode 100644 dist/models/PickedSegmentSegmentTypeEnum.js create mode 100644 dist/models/PointDeliveryMethodCoordinates.d.ts create mode 100644 dist/models/PointDeliveryMethodCoordinates.js create mode 100644 dist/models/PolygonBindRequestpolygon.d.ts create mode 100644 dist/models/PolygonBindRequestpolygon.js create mode 100644 dist/models/PolygonBindRequestwhLocation.d.ts create mode 100644 dist/models/PolygonBindRequestwhLocation.js create mode 100644 dist/models/PolygonListResponsePolygon.d.ts create mode 100644 dist/models/PolygonListResponsePolygon.js create mode 100644 dist/models/Polygonv1PolygonBindRequest.d.ts create mode 100644 dist/models/Polygonv1PolygonBindRequest.js create mode 100644 dist/models/Polygonv1PolygonCreateRequest.d.ts create mode 100644 dist/models/Polygonv1PolygonCreateRequest.js create mode 100644 dist/models/Polygonv1PolygonCreateResponse.d.ts create mode 100644 dist/models/Polygonv1PolygonCreateResponse.js create mode 100644 dist/models/PostingAdditionalDataItem.d.ts create mode 100644 dist/models/PostingAdditionalDataItem.js create mode 100644 dist/models/PostingBooleanResponse.d.ts create mode 100644 dist/models/PostingBooleanResponse.js create mode 100644 dist/models/PostingCancelFbsPostingRequest.d.ts create mode 100644 dist/models/PostingCancelFbsPostingRequest.js create mode 100644 dist/models/PostingCancelReason.d.ts create mode 100644 dist/models/PostingCancelReason.js create mode 100644 dist/models/PostingCancelReasonListResponse.d.ts create mode 100644 dist/models/PostingCancelReasonListResponse.js create mode 100644 dist/models/PostingCancelReasonRequest.d.ts create mode 100644 dist/models/PostingCancelReasonRequest.js create mode 100644 dist/models/PostingCancelReasonResponse.d.ts create mode 100644 dist/models/PostingCancelReasonResponse.js create mode 100644 dist/models/PostingErrorTypeEnum.d.ts create mode 100644 dist/models/PostingErrorTypeEnum.js create mode 100644 dist/models/PostingExemplarInfoExemplarError.d.ts create mode 100644 dist/models/PostingExemplarInfoExemplarError.js create mode 100644 dist/models/PostingFBSActCheckStatusResponseStatus.d.ts create mode 100644 dist/models/PostingFBSActCheckStatusResponseStatus.js create mode 100644 dist/models/PostingFBSActCreateResponseAct.d.ts create mode 100644 dist/models/PostingFBSActCreateResponseAct.js create mode 100644 dist/models/PostingFboPostingWithParams.d.ts create mode 100644 dist/models/PostingFboPostingWithParams.js create mode 100644 dist/models/PostingFbsPostingDeliveredRequest.d.ts create mode 100644 dist/models/PostingFbsPostingDeliveredRequest.js create mode 100644 dist/models/PostingFbsPostingDeliveringRequest.d.ts create mode 100644 dist/models/PostingFbsPostingDeliveringRequest.js create mode 100644 dist/models/PostingFbsPostingLastMileRequest.d.ts create mode 100644 dist/models/PostingFbsPostingLastMileRequest.js create mode 100644 dist/models/PostingFbsPostingMoveStatusResponse.d.ts create mode 100644 dist/models/PostingFbsPostingMoveStatusResponse.js create mode 100644 dist/models/PostingFbsPostingTrackingNumberSetRequest.d.ts create mode 100644 dist/models/PostingFbsPostingTrackingNumberSetRequest.js create mode 100644 dist/models/PostingFbsTraceableSplitResponsePostingProduct.d.ts create mode 100644 dist/models/PostingFbsTraceableSplitResponsePostingProduct.js create mode 100644 dist/models/PostingFinancialDataProduct.d.ts create mode 100644 dist/models/PostingFinancialDataProduct.js create mode 100644 dist/models/PostingFinancialDataProductV2.d.ts create mode 100644 dist/models/PostingFinancialDataProductV2.js create mode 100644 dist/models/PostingGetFboPostingListRequest.d.ts create mode 100644 dist/models/PostingGetFboPostingListRequest.js create mode 100644 dist/models/PostingGetFboPostingListRequestFilter.d.ts create mode 100644 dist/models/PostingGetFboPostingListRequestFilter.js create mode 100644 dist/models/PostingGetFboPostingRequest.d.ts create mode 100644 dist/models/PostingGetFboPostingRequest.js create mode 100644 dist/models/PostingGetFbsPostingByBarcodeRequest.d.ts create mode 100644 dist/models/PostingGetFbsPostingByBarcodeRequest.js create mode 100644 dist/models/PostingLegalInfo.d.ts create mode 100644 dist/models/PostingLegalInfo.js create mode 100644 dist/models/PostingMarksResponseIssuedExemplar.d.ts create mode 100644 dist/models/PostingMarksResponseIssuedExemplar.js create mode 100644 dist/models/PostingMarksResponseNonIssuedExemplar.d.ts create mode 100644 dist/models/PostingMarksResponseNonIssuedExemplar.js create mode 100644 dist/models/PostingMovePostingRequest.d.ts create mode 100644 dist/models/PostingMovePostingRequest.js create mode 100644 dist/models/PostingPostingAnalyticsData.d.ts create mode 100644 dist/models/PostingPostingAnalyticsData.js create mode 100644 dist/models/PostingPostingFBSActCheckStatusRequest.d.ts create mode 100644 dist/models/PostingPostingFBSActCheckStatusRequest.js create mode 100644 dist/models/PostingPostingFBSActCheckStatusResponse.d.ts create mode 100644 dist/models/PostingPostingFBSActCheckStatusResponse.js create mode 100644 dist/models/PostingPostingFBSActCreateRequest.d.ts create mode 100644 dist/models/PostingPostingFBSActCreateRequest.js create mode 100644 dist/models/PostingPostingFBSActCreateResponse.d.ts create mode 100644 dist/models/PostingPostingFBSActCreateResponse.js create mode 100644 dist/models/PostingPostingFBSActGetContainerLabelsRequest.d.ts create mode 100644 dist/models/PostingPostingFBSActGetContainerLabelsRequest.js create mode 100644 dist/models/PostingPostingFBSActGetContainerLabelsResponse.d.ts create mode 100644 dist/models/PostingPostingFBSActGetContainerLabelsResponse.js create mode 100644 dist/models/PostingPostingFBSGetActRequest.d.ts create mode 100644 dist/models/PostingPostingFBSGetActRequest.js create mode 100644 dist/models/PostingPostingFBSGetActResponse.d.ts create mode 100644 dist/models/PostingPostingFBSGetActResponse.js create mode 100644 dist/models/PostingPostingFBSPackageLabelRequest.d.ts create mode 100644 dist/models/PostingPostingFBSPackageLabelRequest.js create mode 100644 dist/models/PostingPostingFBSPackageLabelResponse.d.ts create mode 100644 dist/models/PostingPostingFBSPackageLabelResponse.js create mode 100644 dist/models/PostingPostingFinancialData.d.ts create mode 100644 dist/models/PostingPostingFinancialData.js create mode 100644 dist/models/PostingPostingProduct.d.ts create mode 100644 dist/models/PostingPostingProduct.js create mode 100644 dist/models/PostingPostingProductCancelRequest.d.ts create mode 100644 dist/models/PostingPostingProductCancelRequest.js create mode 100644 dist/models/PostingPostingProductCancelResponse.d.ts create mode 100644 dist/models/PostingPostingProductCancelResponse.js create mode 100644 dist/models/PostingProductCancelRequestItem.d.ts create mode 100644 dist/models/PostingProductCancelRequestItem.js create mode 100644 dist/models/PostingV1GetFbpPostingRequest.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingRequest.js create mode 100644 dist/models/PostingV1GetFbpPostingResponse.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponse.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePosting.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePosting.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingCancellation.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingCancellation.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialData.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialData.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.js create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingProducts.d.ts create mode 100644 dist/models/PostingV1GetFbpPostingResponsePostingProducts.js create mode 100644 dist/models/PostingV1PostingFbpListRequest.d.ts create mode 100644 dist/models/PostingV1PostingFbpListRequest.js create mode 100644 dist/models/PostingV1PostingFbpListRequestFilter.d.ts create mode 100644 dist/models/PostingV1PostingFbpListRequestFilter.js create mode 100644 dist/models/PostingV1PostingFbpListRequestSortDirEnum.d.ts create mode 100644 dist/models/PostingV1PostingFbpListRequestSortDirEnum.js create mode 100644 dist/models/PostingV1PostingFbpListResponse.d.ts create mode 100644 dist/models/PostingV1PostingFbpListResponse.js create mode 100644 dist/models/PostingV1PostingFbpListResponsePostings.d.ts create mode 100644 dist/models/PostingV1PostingFbpListResponsePostings.js create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialData.d.ts create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialData.js create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.js create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.d.ts create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.js create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.d.ts create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.js create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsProducts.d.ts create mode 100644 dist/models/PostingV1PostingFbpListResponsePostingsProducts.js create mode 100644 dist/models/PostingV2FboSinglePostingExternalOrder.d.ts create mode 100644 dist/models/PostingV2FboSinglePostingExternalOrder.js create mode 100644 dist/models/PostingV2PostingDigitalListRequest.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListRequest.js create mode 100644 dist/models/PostingV2PostingDigitalListRequestFilter.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListRequestFilter.js create mode 100644 dist/models/PostingV2PostingDigitalListRequestSortDirEnum.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListRequestSortDirEnum.js create mode 100644 dist/models/PostingV2PostingDigitalListRequestWith.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListRequestWith.js create mode 100644 dist/models/PostingV2PostingDigitalListResponse.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponse.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostings.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostings.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsCancellation.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsCancellation.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsFinancialData.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsFinancialData.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.js create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsProducts.d.ts create mode 100644 dist/models/PostingV2PostingDigitalListResponsePostingsProducts.js create mode 100644 dist/models/PostingV3FbsPostingContainerCargoTypeEnum.d.ts create mode 100644 dist/models/PostingV3FbsPostingContainerCargoTypeEnum.js create mode 100644 dist/models/PostingV3FbsPostingDetailExternalOrder.d.ts create mode 100644 dist/models/PostingV3FbsPostingDetailExternalOrder.js create mode 100644 dist/models/PostingV3FbsPostingDetailSortingCenter.d.ts create mode 100644 dist/models/PostingV3FbsPostingDetailSortingCenter.js create mode 100644 dist/models/PostingV3FbsPostingSortingCenter.d.ts create mode 100644 dist/models/PostingV3FbsPostingSortingCenter.js create mode 100644 dist/models/PostingV3PostingFboListRequest.d.ts create mode 100644 dist/models/PostingV3PostingFboListRequest.js create mode 100644 dist/models/PostingV3PostingFboListRequestFilter.d.ts create mode 100644 dist/models/PostingV3PostingFboListRequestFilter.js create mode 100644 dist/models/PostingV3PostingFboListRequestSortDirEnum.d.ts create mode 100644 dist/models/PostingV3PostingFboListRequestSortDirEnum.js create mode 100644 dist/models/PostingV3PostingFboListRequestWith.d.ts create mode 100644 dist/models/PostingV3PostingFboListRequestWith.js create mode 100644 dist/models/PostingV3PostingFboListResponse.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponse.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostings.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostings.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsAdditionalData.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsAdditionalData.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsAnalyticsData.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsAnalyticsData.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsCancellation.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsCancellation.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsExternalOrder.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsExternalOrder.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsFinancialData.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsFinancialData.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsLegalInfo.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsLegalInfo.js create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsProducts.d.ts create mode 100644 dist/models/PostingV3PostingFboListResponsePostingsProducts.js create mode 100644 dist/models/PostingV4PostingFbsListRequest.d.ts create mode 100644 dist/models/PostingV4PostingFbsListRequest.js create mode 100644 dist/models/PostingV4PostingFbsListRequestFilter.d.ts create mode 100644 dist/models/PostingV4PostingFbsListRequestFilter.js create mode 100644 dist/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.d.ts create mode 100644 dist/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.js create mode 100644 dist/models/PostingV4PostingFbsListRequestSortDirEnum.d.ts create mode 100644 dist/models/PostingV4PostingFbsListRequestSortDirEnum.js create mode 100644 dist/models/PostingV4PostingFbsListRequestWith.d.ts create mode 100644 dist/models/PostingV4PostingFbsListRequestWith.js create mode 100644 dist/models/PostingV4PostingFbsListResponse.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponse.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostings.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostings.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsAddressee.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsAddressee.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsBarcodes.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsBarcodes.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsCancellation.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsCancellation.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsContainer.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsContainer.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsCustomer.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsCustomer.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsExternalOrder.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsExternalOrder.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsFinancialData.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsFinancialData.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsLegalInfo.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsLegalInfo.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsOptional.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsOptional.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsProducts.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsProducts.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsRequirements.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsRequirements.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsSortingCenter.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsSortingCenter.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsTariffication.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsTariffication.js create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.d.ts create mode 100644 dist/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequest.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequest.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequestFilter.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequestFilter.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequestWith.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListRequestWith.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponse.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponse.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostings.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostings.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.js create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.d.ts create mode 100644 dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.js create mode 100644 dist/models/PostinglistV3status.d.ts create mode 100644 dist/models/PostinglistV3status.js create mode 100644 dist/models/Postingv1GetCarriageAvailableListRequest.d.ts create mode 100644 dist/models/Postingv1GetCarriageAvailableListRequest.js create mode 100644 dist/models/Postingv1GetCarriageAvailableListResponse.d.ts create mode 100644 dist/models/Postingv1GetCarriageAvailableListResponse.js create mode 100644 dist/models/Postingv3FbsPostingWithParams.d.ts create mode 100644 dist/models/Postingv3FbsPostingWithParams.js create mode 100644 dist/models/Postingv3FbsPostingWithParamsExamplars.d.ts create mode 100644 dist/models/Postingv3FbsPostingWithParamsExamplars.js create mode 100644 dist/models/Postingv3GetFbsPostingListRequest.d.ts create mode 100644 dist/models/Postingv3GetFbsPostingListRequest.js create mode 100644 dist/models/Postingv3GetFbsPostingListRequestFilter.d.ts create mode 100644 dist/models/Postingv3GetFbsPostingListRequestFilter.js create mode 100644 dist/models/Postingv3GetFbsPostingRequest.d.ts create mode 100644 dist/models/Postingv3GetFbsPostingRequest.js create mode 100644 dist/models/Postingv3GetFbsPostingUnfulfilledListRequest.d.ts create mode 100644 dist/models/Postingv3GetFbsPostingUnfulfilledListRequest.js create mode 100644 dist/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.d.ts create mode 100644 dist/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.js create mode 100644 dist/models/Postingv3GetFbsPostingUnfulfilledListResponse.d.ts create mode 100644 dist/models/Postingv3GetFbsPostingUnfulfilledListResponse.js create mode 100644 dist/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.d.ts create mode 100644 dist/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.js create mode 100644 dist/models/Postingv3PostingMultiBoxQtySetV3Request.d.ts create mode 100644 dist/models/Postingv3PostingMultiBoxQtySetV3Request.js create mode 100644 dist/models/Postingv3PostingMultiBoxQtySetV3Response.d.ts create mode 100644 dist/models/Postingv3PostingMultiBoxQtySetV3Response.js create mode 100644 dist/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.d.ts create mode 100644 dist/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.js create mode 100644 dist/models/PremiumScoresScore.d.ts create mode 100644 dist/models/PremiumScoresScore.js create mode 100644 dist/models/PriceIndexesColorIndex.d.ts create mode 100644 dist/models/PriceIndexesColorIndex.js create mode 100644 dist/models/PriceIndexesIndexDataExternal.d.ts create mode 100644 dist/models/PriceIndexesIndexDataExternal.js create mode 100644 dist/models/PriceIndexesIndexDataOzon.d.ts create mode 100644 dist/models/PriceIndexesIndexDataOzon.js create mode 100644 dist/models/PriceIndexesIndexDataSelf.d.ts create mode 100644 dist/models/PriceIndexesIndexDataSelf.js create mode 100644 dist/models/PriceIndexesIndexExternalData.d.ts create mode 100644 dist/models/PriceIndexesIndexExternalData.js create mode 100644 dist/models/PriceIndexesIndexOzonData.d.ts create mode 100644 dist/models/PriceIndexesIndexOzonData.js create mode 100644 dist/models/PriceIndexesIndexSelfData.d.ts create mode 100644 dist/models/PriceIndexesIndexSelfData.js create mode 100644 dist/models/ProductBooleanResponse.d.ts create mode 100644 dist/models/ProductBooleanResponse.js create mode 100644 dist/models/ProductCertificateProductsListResponseProduct.d.ts create mode 100644 dist/models/ProductCertificateProductsListResponseProduct.js create mode 100644 dist/models/ProductCertificateUnbindResponseItem.d.ts create mode 100644 dist/models/ProductCertificateUnbindResponseItem.js create mode 100644 dist/models/ProductCertificationListResponseCertification.d.ts create mode 100644 dist/models/ProductCertificationListResponseCertification.js create mode 100644 dist/models/ProductCertificationListResponseCertificationResult.d.ts create mode 100644 dist/models/ProductCertificationListResponseCertificationResult.js create mode 100644 dist/models/ProductCertificationListResponseCertificationv2.d.ts create mode 100644 dist/models/ProductCertificationListResponseCertificationv2.js create mode 100644 dist/models/ProductCurrencyEnum.d.ts create mode 100644 dist/models/ProductCurrencyEnum.js create mode 100644 dist/models/ProductExemplar.d.ts create mode 100644 dist/models/ProductExemplar.js create mode 100644 dist/models/ProductGetImportProductsInfoRequest.d.ts create mode 100644 dist/models/ProductGetImportProductsInfoRequest.js create mode 100644 dist/models/ProductGetImportProductsInfoResponse.d.ts create mode 100644 dist/models/ProductGetImportProductsInfoResponse.js create mode 100644 dist/models/ProductGetImportProductsInfoResponseResult.d.ts create mode 100644 dist/models/ProductGetImportProductsInfoResponseResult.js create mode 100644 dist/models/ProductGetProductAttributesV3ResponseDictionaryValue.d.ts create mode 100644 dist/models/ProductGetProductAttributesV3ResponseDictionaryValue.js create mode 100644 dist/models/ProductGetProductAttributesV4ResponseAttribute.d.ts create mode 100644 dist/models/ProductGetProductAttributesV4ResponseAttribute.js create mode 100644 dist/models/ProductGetProductInfoDescriptionRequest.d.ts create mode 100644 dist/models/ProductGetProductInfoDescriptionRequest.js create mode 100644 dist/models/ProductGetProductInfoDescriptionResponse.d.ts create mode 100644 dist/models/ProductGetProductInfoDescriptionResponse.js create mode 100644 dist/models/ProductGetProductInfoDescriptionResponseProduct.d.ts create mode 100644 dist/models/ProductGetProductInfoDescriptionResponseProduct.js create mode 100644 dist/models/ProductGetProductInfoPricesV5ResponseItem.d.ts create mode 100644 dist/models/ProductGetProductInfoPricesV5ResponseItem.js create mode 100644 dist/models/ProductImportProductsBySKURequest.d.ts create mode 100644 dist/models/ProductImportProductsBySKURequest.js create mode 100644 dist/models/ProductImportProductsBySKURequestItem.d.ts create mode 100644 dist/models/ProductImportProductsBySKURequestItem.js create mode 100644 dist/models/ProductImportProductsBySKUResponse.d.ts create mode 100644 dist/models/ProductImportProductsBySKUResponse.js create mode 100644 dist/models/ProductImportProductsBySKUResponseResult.d.ts create mode 100644 dist/models/ProductImportProductsBySKUResponseResult.js create mode 100644 dist/models/ProductImportProductsPricesRequest.d.ts create mode 100644 dist/models/ProductImportProductsPricesRequest.js create mode 100644 dist/models/ProductImportProductsPricesRequestPrice.d.ts create mode 100644 dist/models/ProductImportProductsPricesRequestPrice.js create mode 100644 dist/models/ProductImportProductsPricesResponse.d.ts create mode 100644 dist/models/ProductImportProductsPricesResponse.js create mode 100644 dist/models/ProductImportProductsPricesResponseError.d.ts create mode 100644 dist/models/ProductImportProductsPricesResponseError.js create mode 100644 dist/models/ProductImportProductsPricesResponseProcessResult.d.ts create mode 100644 dist/models/ProductImportProductsPricesResponseProcessResult.js create mode 100644 dist/models/ProductInfoWarehouseStocksResponseStocks.d.ts create mode 100644 dist/models/ProductInfoWarehouseStocksResponseStocks.js create mode 100644 dist/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.d.ts create mode 100644 dist/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.js create mode 100644 dist/models/ProductPlacementPlacementZoneEnum.d.ts create mode 100644 dist/models/ProductPlacementPlacementZoneEnum.js create mode 100644 dist/models/ProductProductArchiveRequest.d.ts create mode 100644 dist/models/ProductProductArchiveRequest.js create mode 100644 dist/models/ProductProductCertificateAccordanceTypesResponse.d.ts create mode 100644 dist/models/ProductProductCertificateAccordanceTypesResponse.js create mode 100644 dist/models/ProductProductCertificateAccordanceTypesResponseType.d.ts create mode 100644 dist/models/ProductProductCertificateAccordanceTypesResponseType.js create mode 100644 dist/models/ProductProductCertificateBindRequest.d.ts create mode 100644 dist/models/ProductProductCertificateBindRequest.js create mode 100644 dist/models/ProductProductCertificateTypesResponse.d.ts create mode 100644 dist/models/ProductProductCertificateTypesResponse.js create mode 100644 dist/models/ProductProductCertificateTypesResponseType.d.ts create mode 100644 dist/models/ProductProductCertificateTypesResponseType.js create mode 100644 dist/models/ProductProductCertificationListRequest.d.ts create mode 100644 dist/models/ProductProductCertificationListRequest.js create mode 100644 dist/models/ProductProductCertificationListResponse.d.ts create mode 100644 dist/models/ProductProductCertificationListResponse.js create mode 100644 dist/models/ProductProductInfoPicturesResponsePicture.d.ts create mode 100644 dist/models/ProductProductInfoPicturesResponsePicture.js create mode 100644 dist/models/ProductProductUnarchiveRequest.d.ts create mode 100644 dist/models/ProductProductUnarchiveRequest.js create mode 100644 dist/models/ProductUpdateOfferIdRequestUpdateOfferId.d.ts create mode 100644 dist/models/ProductUpdateOfferIdRequestUpdateOfferId.js create mode 100644 dist/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.d.ts create mode 100644 dist/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.js create mode 100644 dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.d.ts create mode 100644 dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.js create mode 100644 dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.d.ts create mode 100644 dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.js create mode 100644 dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.d.ts create mode 100644 dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.js create mode 100644 dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.d.ts create mode 100644 dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.js create mode 100644 dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.d.ts create mode 100644 dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.js create mode 100644 dist/models/ProductV1ProductVisibilityInfoRequest.d.ts create mode 100644 dist/models/ProductV1ProductVisibilityInfoRequest.js create mode 100644 dist/models/ProductV1ProductVisibilityInfoResponse.d.ts create mode 100644 dist/models/ProductV1ProductVisibilityInfoResponse.js create mode 100644 dist/models/ProductV1ProductVisibilityInfoResponseItem.d.ts create mode 100644 dist/models/ProductV1ProductVisibilityInfoResponseItem.js create mode 100644 dist/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.d.ts create mode 100644 dist/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.js create mode 100644 dist/models/ProductV1ProductVisibilitySetRequest.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetRequest.js create mode 100644 dist/models/ProductV1ProductVisibilitySetRequestItemPlacement.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetRequestItemPlacement.js create mode 100644 dist/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.js create mode 100644 dist/models/ProductV1ProductVisibilitySetResponse.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetResponse.js create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItems.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItems.js create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsErrors.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsErrors.js create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.js create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.js create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.js create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.js create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.d.ts create mode 100644 dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.js create mode 100644 dist/models/ProductV1QuantInfoRequest.d.ts create mode 100644 dist/models/ProductV1QuantInfoRequest.js create mode 100644 dist/models/ProductV1QuantInfoResponse.d.ts create mode 100644 dist/models/ProductV1QuantInfoResponse.js create mode 100644 dist/models/ProductV1QuantInfoResponseResultItems.d.ts create mode 100644 dist/models/ProductV1QuantInfoResponseResultItems.js create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfo.d.ts create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfo.js create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.d.ts create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.js create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.d.ts create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.js create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.d.ts create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.js create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.d.ts create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.js create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.d.ts create mode 100644 dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.js create mode 100644 dist/models/ProductV1QuantListRequest.d.ts create mode 100644 dist/models/ProductV1QuantListRequest.js create mode 100644 dist/models/ProductV1QuantListResponse.d.ts create mode 100644 dist/models/ProductV1QuantListResponse.js create mode 100644 dist/models/ProductV1QuantListResponseProducts.d.ts create mode 100644 dist/models/ProductV1QuantListResponseProducts.js create mode 100644 dist/models/ProductV1QuantListResponseProductsQuants.d.ts create mode 100644 dist/models/ProductV1QuantListResponseProductsQuants.js create mode 100644 dist/models/ProductV4GetUploadQuotaResponseOperationLimits.d.ts create mode 100644 dist/models/ProductV4GetUploadQuotaResponseOperationLimits.js create mode 100644 dist/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.d.ts create mode 100644 dist/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.js create mode 100644 dist/models/ProductsPostings.d.ts create mode 100644 dist/models/ProductsPostings.js create mode 100644 dist/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.d.ts create mode 100644 dist/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.js create mode 100644 dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.d.ts create mode 100644 dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.js create mode 100644 dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.d.ts create mode 100644 dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.js create mode 100644 dist/models/Productv1ProductImportPicturesRequest.d.ts create mode 100644 dist/models/Productv1ProductImportPicturesRequest.js create mode 100644 dist/models/Productv1ProductInfoPicturesResponse.d.ts create mode 100644 dist/models/Productv1ProductInfoPicturesResponse.js create mode 100644 dist/models/Productv1ProductInfoPicturesResponseResult.d.ts create mode 100644 dist/models/Productv1ProductInfoPicturesResponseResult.js create mode 100644 dist/models/Productv2DeleteProductsRequest.d.ts create mode 100644 dist/models/Productv2DeleteProductsRequest.js create mode 100644 dist/models/Productv2DeleteProductsResponse.d.ts create mode 100644 dist/models/Productv2DeleteProductsResponse.js create mode 100644 dist/models/Productv2GetProductListRequestFilterFilterVisibility.d.ts create mode 100644 dist/models/Productv2GetProductListRequestFilterFilterVisibility.js create mode 100644 dist/models/Productv2ProductsStocksRequest.d.ts create mode 100644 dist/models/Productv2ProductsStocksRequest.js create mode 100644 dist/models/Productv2ProductsStocksRequestStock.d.ts create mode 100644 dist/models/Productv2ProductsStocksRequestStock.js create mode 100644 dist/models/Productv2ProductsStocksResponse.d.ts create mode 100644 dist/models/Productv2ProductsStocksResponse.js create mode 100644 dist/models/Productv2ProductsStocksResponseError.d.ts create mode 100644 dist/models/Productv2ProductsStocksResponseError.js create mode 100644 dist/models/Productv2ProductsStocksResponseResult.d.ts create mode 100644 dist/models/Productv2ProductsStocksResponseResult.js create mode 100644 dist/models/Productv3GetProductListRequest.d.ts create mode 100644 dist/models/Productv3GetProductListRequest.js create mode 100644 dist/models/Productv3GetProductListRequestFilter.d.ts create mode 100644 dist/models/Productv3GetProductListRequestFilter.js create mode 100644 dist/models/Productv3GetProductListRequestFilterFilterVisibility.d.ts create mode 100644 dist/models/Productv3GetProductListRequestFilterFilterVisibility.js create mode 100644 dist/models/Productv3GetProductListResponse.d.ts create mode 100644 dist/models/Productv3GetProductListResponse.js create mode 100644 dist/models/Productv3GetProductListResponseItem.d.ts create mode 100644 dist/models/Productv3GetProductListResponseItem.js create mode 100644 dist/models/Productv3GetProductListResponseItemQuant.d.ts create mode 100644 dist/models/Productv3GetProductListResponseItemQuant.js create mode 100644 dist/models/Productv3GetProductListResponseResult.d.ts create mode 100644 dist/models/Productv3GetProductListResponseResult.js create mode 100644 dist/models/Productv4Filter.d.ts create mode 100644 dist/models/Productv4Filter.js create mode 100644 dist/models/Productv4GetProductAttributesV4Request.d.ts create mode 100644 dist/models/Productv4GetProductAttributesV4Request.js create mode 100644 dist/models/Productv4GetProductAttributesV4Response.d.ts create mode 100644 dist/models/Productv4GetProductAttributesV4Response.js create mode 100644 dist/models/Productv4GetProductAttributesV4ResponseResult.d.ts create mode 100644 dist/models/Productv4GetProductAttributesV4ResponseResult.js create mode 100644 dist/models/Productv5Filter.d.ts create mode 100644 dist/models/Productv5Filter.js create mode 100644 dist/models/Productv5GetProductInfoPricesV5Request.d.ts create mode 100644 dist/models/Productv5GetProductInfoPricesV5Request.js create mode 100644 dist/models/Productv5GetProductInfoPricesV5Response.d.ts create mode 100644 dist/models/Productv5GetProductInfoPricesV5Response.js create mode 100644 dist/models/Productv5GetProductListRequestFilterFilterVisibility.d.ts create mode 100644 dist/models/Productv5GetProductListRequestFilterFilterVisibility.js create mode 100644 dist/models/ProtobufAny.d.ts create mode 100644 dist/models/ProtobufAny.js create mode 100644 dist/models/ProtobufAnyV2DeliveryCheckout.d.ts create mode 100644 dist/models/ProtobufAnyV2DeliveryCheckout.js create mode 100644 dist/models/QuestionV1GetQuestionListRequestSortDirEnum.d.ts create mode 100644 dist/models/QuestionV1GetQuestionListRequestSortDirEnum.js create mode 100644 dist/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.d.ts create mode 100644 dist/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.js create mode 100644 dist/models/RatingItemChange.d.ts create mode 100644 dist/models/RatingItemChange.js create mode 100644 dist/models/RatingStatusEnum.d.ts create mode 100644 dist/models/RatingStatusEnum.js create mode 100644 dist/models/RatingSummaryV1ResponseGroup.d.ts create mode 100644 dist/models/RatingSummaryV1ResponseGroup.js create mode 100644 dist/models/RatingSummaryV1ResponseLocalIndex.d.ts create mode 100644 dist/models/RatingSummaryV1ResponseLocalIndex.js create mode 100644 dist/models/RatingValue.d.ts create mode 100644 dist/models/RatingValue.js create mode 100644 dist/models/RatingValueCurrent.d.ts create mode 100644 dist/models/RatingValueCurrent.js create mode 100644 dist/models/RatingValuePast.d.ts create mode 100644 dist/models/RatingValuePast.js create mode 100644 dist/models/ReasonHumanText.d.ts create mode 100644 dist/models/ReasonHumanText.js create mode 100644 dist/models/ReceiptsSellerListResponseReceipt.d.ts create mode 100644 dist/models/ReceiptsSellerListResponseReceipt.js create mode 100644 dist/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.d.ts create mode 100644 dist/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.js create mode 100644 dist/models/ReceiptsSellerListResponseReceiptTypeEnum.d.ts create mode 100644 dist/models/ReceiptsSellerListResponseReceiptTypeEnum.js create mode 100644 dist/models/RejectedItemsReasonEnum.d.ts create mode 100644 dist/models/RejectedItemsReasonEnum.js create mode 100644 dist/models/RejectedItemsRejectionReasonEnum.d.ts create mode 100644 dist/models/RejectedItemsRejectionReasonEnum.js create mode 100644 dist/models/RejectedItemsRestrictions.d.ts create mode 100644 dist/models/RejectedItemsRestrictions.js create mode 100644 dist/models/RelatedPostingCancelReason.d.ts create mode 100644 dist/models/RelatedPostingCancelReason.js create mode 100644 dist/models/RelatedPostingCancelReasons.d.ts create mode 100644 dist/models/RelatedPostingCancelReasons.js create mode 100644 dist/models/ReportCommonReportAdditionalDataItem.d.ts create mode 100644 dist/models/ReportCommonReportAdditionalDataItem.js create mode 100644 dist/models/ReportCreateCompanyPostingsReportRequest.d.ts create mode 100644 dist/models/ReportCreateCompanyPostingsReportRequest.js create mode 100644 dist/models/ReportCreateCompanyPostingsReportRequestFilter.d.ts create mode 100644 dist/models/ReportCreateCompanyPostingsReportRequestFilter.js create mode 100644 dist/models/ReportCreateCompanyProductsReportRequest.d.ts create mode 100644 dist/models/ReportCreateCompanyProductsReportRequest.js create mode 100644 dist/models/ReportCreateCompanyProductsReportRequestVisibility.d.ts create mode 100644 dist/models/ReportCreateCompanyProductsReportRequestVisibility.js create mode 100644 dist/models/ReportCreateDiscountedResponse.d.ts create mode 100644 dist/models/ReportCreateDiscountedResponse.js create mode 100644 dist/models/ReportCreateReportResponse.d.ts create mode 100644 dist/models/ReportCreateReportResponse.js create mode 100644 dist/models/ReportListResponseResult.d.ts create mode 100644 dist/models/ReportListResponseResult.js create mode 100644 dist/models/ReportMarkedProductsSalesCreateRequestDate.d.ts create mode 100644 dist/models/ReportMarkedProductsSalesCreateRequestDate.js create mode 100644 dist/models/ReportReport.d.ts create mode 100644 dist/models/ReportReport.js create mode 100644 dist/models/ReportReportInfoRequest.d.ts create mode 100644 dist/models/ReportReportInfoRequest.js create mode 100644 dist/models/ReportReportInfoResponse.d.ts create mode 100644 dist/models/ReportReportInfoResponse.js create mode 100644 dist/models/ReportReportListRequest.d.ts create mode 100644 dist/models/ReportReportListRequest.js create mode 100644 dist/models/ReportReportListResponse.d.ts create mode 100644 dist/models/ReportReportListResponse.js create mode 100644 dist/models/ReportReportinfo.d.ts create mode 100644 dist/models/ReportReportinfo.js create mode 100644 dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.d.ts create mode 100644 dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.js create mode 100644 dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.d.ts create mode 100644 dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.js create mode 100644 dist/models/RestrictionsReasonEnum.d.ts create mode 100644 dist/models/RestrictionsReasonEnum.js create mode 100644 dist/models/ResultCargo.d.ts create mode 100644 dist/models/ResultCargo.js create mode 100644 dist/models/ResultData.d.ts create mode 100644 dist/models/ResultData.js create mode 100644 dist/models/ResultDropOffWarehouseTimeslots.d.ts create mode 100644 dist/models/ResultDropOffWarehouseTimeslots.js create mode 100644 dist/models/ResultError.d.ts create mode 100644 dist/models/ResultError.js create mode 100644 dist/models/ResultUnprintedPosting.d.ts create mode 100644 dist/models/ResultUnprintedPosting.js create mode 100644 dist/models/ReturnSettingCourierDetails.d.ts create mode 100644 dist/models/ReturnSettingCourierDetails.js create mode 100644 dist/models/ReturnSettingTransportCompanyDetails.d.ts create mode 100644 dist/models/ReturnSettingTransportCompanyDetails.js create mode 100644 dist/models/ReturnsCompanyFbsInfoRequestPagination.d.ts create mode 100644 dist/models/ReturnsCompanyFbsInfoRequestPagination.js create mode 100644 dist/models/ReturnsCompanyFbsInfoResponseDropOffPoints.d.ts create mode 100644 dist/models/ReturnsCompanyFbsInfoResponseDropOffPoints.js create mode 100644 dist/models/ReturnsCompanyFbsInfoResponsePassInfo.d.ts create mode 100644 dist/models/ReturnsCompanyFbsInfoResponsePassInfo.js create mode 100644 dist/models/ReturnsRfbsGetResponseReturns.d.ts create mode 100644 dist/models/ReturnsRfbsGetResponseReturns.js create mode 100644 dist/models/ReturnsRfbsGetV2ResponseAvailableAction.d.ts create mode 100644 dist/models/ReturnsRfbsGetV2ResponseAvailableAction.js create mode 100644 dist/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.d.ts create mode 100644 dist/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.js create mode 100644 dist/models/ReturnsRfbsGetV2ResponseRejectionReason.d.ts create mode 100644 dist/models/ReturnsRfbsGetV2ResponseRejectionReason.js create mode 100644 dist/models/ReturnsRfbsGetV2ResponseReturnReason.d.ts create mode 100644 dist/models/ReturnsRfbsGetV2ResponseReturnReason.js create mode 100644 dist/models/ReturnsRfbsListResponseReturns.d.ts create mode 100644 dist/models/ReturnsRfbsListResponseReturns.js create mode 100644 dist/models/ReturnsSettingsUtilizationHistoryResponseHistory.d.ts create mode 100644 dist/models/ReturnsSettingsUtilizationHistoryResponseHistory.js create mode 100644 dist/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.d.ts create mode 100644 dist/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.js create mode 100644 dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.d.ts create mode 100644 dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.js create mode 100644 dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.d.ts create mode 100644 dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.js create mode 100644 dist/models/ReviewInfoResponsePhoto.d.ts create mode 100644 dist/models/ReviewInfoResponsePhoto.js create mode 100644 dist/models/ReviewInfoResponseVideo.d.ts create mode 100644 dist/models/ReviewInfoResponseVideo.js create mode 100644 dist/models/ReviewListResponseReview.d.ts create mode 100644 dist/models/ReviewListResponseReview.js create mode 100644 dist/models/ReviewV1CommentListRequestFilter.d.ts create mode 100644 dist/models/ReviewV1CommentListRequestFilter.js create mode 100644 dist/models/ReviewV2ReviewChangeStatusV2Request.d.ts create mode 100644 dist/models/ReviewV2ReviewChangeStatusV2Request.js create mode 100644 dist/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.d.ts create mode 100644 dist/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.js create mode 100644 dist/models/ReviewV2ReviewCommentDeleteV2Request.d.ts create mode 100644 dist/models/ReviewV2ReviewCommentDeleteV2Request.js create mode 100644 dist/models/ReviewV2ReviewCountV2Response.d.ts create mode 100644 dist/models/ReviewV2ReviewCountV2Response.js create mode 100644 dist/models/ReviewV2ReviewInfoV2Request.d.ts create mode 100644 dist/models/ReviewV2ReviewInfoV2Request.js create mode 100644 dist/models/ReviewV2ReviewInfoV2Response.d.ts create mode 100644 dist/models/ReviewV2ReviewInfoV2Response.js create mode 100644 dist/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.d.ts create mode 100644 dist/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.js create mode 100644 dist/models/ReviewV2ReviewInfoV2ResponsePhoto.d.ts create mode 100644 dist/models/ReviewV2ReviewInfoV2ResponsePhoto.js create mode 100644 dist/models/ReviewV2ReviewInfoV2ResponseStatusEnum.d.ts create mode 100644 dist/models/ReviewV2ReviewInfoV2ResponseStatusEnum.js create mode 100644 dist/models/ReviewV2ReviewInfoV2ResponseVideo.d.ts create mode 100644 dist/models/ReviewV2ReviewInfoV2ResponseVideo.js create mode 100644 dist/models/ReviewV2ReviewListV2Request.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2Request.js create mode 100644 dist/models/ReviewV2ReviewListV2RequestFilters.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2RequestFilters.js create mode 100644 dist/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.js create mode 100644 dist/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.js create mode 100644 dist/models/ReviewV2ReviewListV2RequestSortDirEnum.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2RequestSortDirEnum.js create mode 100644 dist/models/ReviewV2ReviewListV2Response.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2Response.js create mode 100644 dist/models/ReviewV2ReviewListV2ResponseReview.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2ResponseReview.js create mode 100644 dist/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.js create mode 100644 dist/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.d.ts create mode 100644 dist/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.js create mode 100644 dist/models/RolesByTokenResponseRoles.d.ts create mode 100644 dist/models/RolesByTokenResponseRoles.js create mode 100644 dist/models/RowItem.d.ts create mode 100644 dist/models/RowItem.js create mode 100644 dist/models/RowItemCommission.d.ts create mode 100644 dist/models/RowItemCommission.js create mode 100644 dist/models/RowItemCommissionReturn.d.ts create mode 100644 dist/models/RowItemCommissionReturn.js create mode 100644 dist/models/RowItemLegalEntityDocument.d.ts create mode 100644 dist/models/RowItemLegalEntityDocument.js create mode 100644 dist/models/RowItemOrder.d.ts create mode 100644 dist/models/RowItemOrder.js create mode 100644 dist/models/RpcStatus.d.ts create mode 100644 dist/models/RpcStatus.js create mode 100644 dist/models/RpcStatusV1FinanceRealizationPosting.d.ts create mode 100644 dist/models/RpcStatusV1FinanceRealizationPosting.js create mode 100644 dist/models/RpcStatusV1PolygonBind.d.ts create mode 100644 dist/models/RpcStatusV1PolygonBind.js create mode 100644 dist/models/RpcStatusV1PolygonCreate.d.ts create mode 100644 dist/models/RpcStatusV1PolygonCreate.js create mode 100644 dist/models/RpcStatusV2DeliveryCheckout.d.ts create mode 100644 dist/models/RpcStatusV2DeliveryCheckout.js create mode 100644 dist/models/SearchAttributeValuesResponseValue.d.ts create mode 100644 dist/models/SearchAttributeValuesResponseValue.js create mode 100644 dist/models/SearchQueriesTextRequestSortBy.d.ts create mode 100644 dist/models/SearchQueriesTextRequestSortBy.js create mode 100644 dist/models/SearchQueriesTextRequestSortDir.d.ts create mode 100644 dist/models/SearchQueriesTextRequestSortDir.js create mode 100644 dist/models/SellerActionsListRequestActionTypeEnum.d.ts create mode 100644 dist/models/SellerActionsListRequestActionTypeEnum.js create mode 100644 dist/models/SellerActionsListRequestStatusEnum.d.ts create mode 100644 dist/models/SellerActionsListRequestStatusEnum.js create mode 100644 dist/models/SellerActionsListResponseAction.d.ts create mode 100644 dist/models/SellerActionsListResponseAction.js create mode 100644 dist/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.d.ts create mode 100644 dist/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.js create mode 100644 dist/models/SellerApiActivateProductV1Request.d.ts create mode 100644 dist/models/SellerApiActivateProductV1Request.js create mode 100644 dist/models/SellerApiGetSellerActionsV1Response.d.ts create mode 100644 dist/models/SellerApiGetSellerActionsV1Response.js create mode 100644 dist/models/SellerApiGetSellerProductV1Request.d.ts create mode 100644 dist/models/SellerApiGetSellerProductV1Request.js create mode 100644 dist/models/SellerApiGetSellerProductV1Response.d.ts create mode 100644 dist/models/SellerApiGetSellerProductV1Response.js create mode 100644 dist/models/SellerApiGetSellerProductV1ResponseResult.d.ts create mode 100644 dist/models/SellerApiGetSellerProductV1ResponseResult.js create mode 100644 dist/models/SellerApiProduct.d.ts create mode 100644 dist/models/SellerApiProduct.js create mode 100644 dist/models/SellerApiProductIDsV1Request.d.ts create mode 100644 dist/models/SellerApiProductIDsV1Request.js create mode 100644 dist/models/SellerApiProductPrice.d.ts create mode 100644 dist/models/SellerApiProductPrice.js create mode 100644 dist/models/SellerApiProductV1Response.d.ts create mode 100644 dist/models/SellerApiProductV1Response.js create mode 100644 dist/models/SellerApiProductV1ResponseDeactivate.d.ts create mode 100644 dist/models/SellerApiProductV1ResponseDeactivate.js create mode 100644 dist/models/SellerApiProductV1ResponseProduct.d.ts create mode 100644 dist/models/SellerApiProductV1ResponseProduct.js create mode 100644 dist/models/SellerApiProductV1ResponseProductDeactivate.d.ts create mode 100644 dist/models/SellerApiProductV1ResponseProductDeactivate.js create mode 100644 dist/models/SellerApiProductV1ResponseResult.d.ts create mode 100644 dist/models/SellerApiProductV1ResponseResult.js create mode 100644 dist/models/SellerApiProductV1ResponseResultDeactivate.d.ts create mode 100644 dist/models/SellerApiProductV1ResponseResultDeactivate.js create mode 100644 dist/models/SellerInfoResponseCompany.d.ts create mode 100644 dist/models/SellerInfoResponseCompany.js create mode 100644 dist/models/SellerInfoResponseRating.d.ts create mode 100644 dist/models/SellerInfoResponseRating.js create mode 100644 dist/models/SellerInfoResponseRatingTypeEnum.d.ts create mode 100644 dist/models/SellerInfoResponseRatingTypeEnum.js create mode 100644 dist/models/SellerInfoResponseSubscription.d.ts create mode 100644 dist/models/SellerInfoResponseSubscription.js create mode 100644 dist/models/SellerInfoResponseSubscriptionTypeEnum.d.ts create mode 100644 dist/models/SellerInfoResponseSubscriptionTypeEnum.js create mode 100644 dist/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.d.ts create mode 100644 dist/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.js create mode 100644 dist/models/SellerReturnsv1MoneyCommission.d.ts create mode 100644 dist/models/SellerReturnsv1MoneyCommission.js create mode 100644 dist/models/SellerReturnsv1MoneyProduct.d.ts create mode 100644 dist/models/SellerReturnsv1MoneyProduct.js create mode 100644 dist/models/SellerReturnsv1MoneyStorage.d.ts create mode 100644 dist/models/SellerReturnsv1MoneyStorage.js create mode 100644 dist/models/SellerReturnsv1MoneyUtilization.d.ts create mode 100644 dist/models/SellerReturnsv1MoneyUtilization.js create mode 100644 dist/models/SellerReturnsv1MoneyWithoutCommission.d.ts create mode 100644 dist/models/SellerReturnsv1MoneyWithoutCommission.js create mode 100644 dist/models/SellerSellerAPIArrivalPassCreateRequest.d.ts create mode 100644 dist/models/SellerSellerAPIArrivalPassCreateRequest.js create mode 100644 dist/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.d.ts create mode 100644 dist/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.js create mode 100644 dist/models/SellerSellerAPIArrivalPassCreateResponse.d.ts create mode 100644 dist/models/SellerSellerAPIArrivalPassCreateResponse.js create mode 100644 dist/models/SellerSellerAPIArrivalPassDeleteRequest.d.ts create mode 100644 dist/models/SellerSellerAPIArrivalPassDeleteRequest.js create mode 100644 dist/models/SellerSellerAPIArrivalPassUpdateRequest.d.ts create mode 100644 dist/models/SellerSellerAPIArrivalPassUpdateRequest.js create mode 100644 dist/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.d.ts create mode 100644 dist/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.js create mode 100644 dist/models/SellerServiceanalyticsDimension.d.ts create mode 100644 dist/models/SellerServiceanalyticsDimension.js create mode 100644 dist/models/SetPostingsResponseResult.d.ts create mode 100644 dist/models/SetPostingsResponseResult.js create mode 100644 dist/models/SourceShipmentType.d.ts create mode 100644 dist/models/SourceShipmentType.js create mode 100644 dist/models/SplitDeliveryMethod.d.ts create mode 100644 dist/models/SplitDeliveryMethod.js create mode 100644 dist/models/SplitItem.d.ts create mode 100644 dist/models/SplitItem.js create mode 100644 dist/models/StatusEnum.d.ts create mode 100644 dist/models/StatusEnum.js create mode 100644 dist/models/StockShipmentType.d.ts create mode 100644 dist/models/StockShipmentType.js create mode 100644 dist/models/StocksImportRequestItemStock.d.ts create mode 100644 dist/models/StocksImportRequestItemStock.js create mode 100644 dist/models/StocksImportResponseItemStatus.d.ts create mode 100644 dist/models/StocksImportResponseItemStatus.js create mode 100644 dist/models/SupplierAvailableWarehousesResponseCapacity.d.ts create mode 100644 dist/models/SupplierAvailableWarehousesResponseCapacity.js create mode 100644 dist/models/SupplierAvailableWarehousesResponseResult.d.ts create mode 100644 dist/models/SupplierAvailableWarehousesResponseResult.js create mode 100644 dist/models/SupplierAvailableWarehousesResponseSchedule.d.ts create mode 100644 dist/models/SupplierAvailableWarehousesResponseSchedule.js create mode 100644 dist/models/SupplierAvailableWarehousesResponseWarehouse.d.ts create mode 100644 dist/models/SupplierAvailableWarehousesResponseWarehouse.js create mode 100644 dist/models/SupplyCancellationAllowability.d.ts create mode 100644 dist/models/SupplyCancellationAllowability.js create mode 100644 dist/models/SupplyCargoInfo.d.ts create mode 100644 dist/models/SupplyCargoInfo.js create mode 100644 dist/models/SupplyCargoInfoTypeEnum.d.ts create mode 100644 dist/models/SupplyCargoInfoTypeEnum.js create mode 100644 dist/models/SupplyCheckCargoesPresentRule.d.ts create mode 100644 dist/models/SupplyCheckCargoesPresentRule.js create mode 100644 dist/models/SupplyCheckEditDeadlineExpireRule.d.ts create mode 100644 dist/models/SupplyCheckEditDeadlineExpireRule.js create mode 100644 dist/models/SupplyCheckExpireDatePresentedRule.d.ts create mode 100644 dist/models/SupplyCheckExpireDatePresentedRule.js create mode 100644 dist/models/SupplyCheckIsValidDistributionRule.d.ts create mode 100644 dist/models/SupplyCheckIsValidDistributionRule.js create mode 100644 dist/models/SupplyCheckPackageUnitWithDistributionRule.d.ts create mode 100644 dist/models/SupplyCheckPackageUnitWithDistributionRule.js create mode 100644 dist/models/SupplyCheckPlacementZoneRule.d.ts create mode 100644 dist/models/SupplyCheckPlacementZoneRule.js create mode 100644 dist/models/SupplyContent.d.ts create mode 100644 dist/models/SupplyContent.js create mode 100644 dist/models/SupplyETTN.d.ts create mode 100644 dist/models/SupplyETTN.js create mode 100644 dist/models/SupplyOrderCancelStatusResponseCancelOrderError.d.ts create mode 100644 dist/models/SupplyOrderCancelStatusResponseCancelOrderError.js create mode 100644 dist/models/SupplyOrderCancelStatusResponseCancelSupplyResults.d.ts create mode 100644 dist/models/SupplyOrderCancelStatusResponseCancelSupplyResults.js create mode 100644 dist/models/SupplyOrderCancelStatusResponseResult.d.ts create mode 100644 dist/models/SupplyOrderCancelStatusResponseResult.js create mode 100644 dist/models/SupplyOrderContentUpdateStatusResponseStatusEnum.d.ts create mode 100644 dist/models/SupplyOrderContentUpdateStatusResponseStatusEnum.js create mode 100644 dist/models/SupplyOrderContentUpdateValidationResponseApprovedItems.d.ts create mode 100644 dist/models/SupplyOrderContentUpdateValidationResponseApprovedItems.js create mode 100644 dist/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.d.ts create mode 100644 dist/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.js create mode 100644 dist/models/SupplyOrderContentUpdateValidationResponseRejectedItems.d.ts create mode 100644 dist/models/SupplyOrderContentUpdateValidationResponseRejectedItems.js create mode 100644 dist/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.d.ts create mode 100644 dist/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.js create mode 100644 dist/models/SupplyOrderDetailsResponseOrderStateEnum.d.ts create mode 100644 dist/models/SupplyOrderDetailsResponseOrderStateEnum.js create mode 100644 dist/models/SupplyOrderDetailsResponseOrderTags.d.ts create mode 100644 dist/models/SupplyOrderDetailsResponseOrderTags.js create mode 100644 dist/models/SupplyOrderDetailsResponseSupply.d.ts create mode 100644 dist/models/SupplyOrderDetailsResponseSupply.js create mode 100644 dist/models/SupplyOrderDetailsResponseTimeslotValue.d.ts create mode 100644 dist/models/SupplyOrderDetailsResponseTimeslotValue.js create mode 100644 dist/models/SupplyOrderDetailsResponseVehicle.d.ts create mode 100644 dist/models/SupplyOrderDetailsResponseVehicle.js create mode 100644 dist/models/SupplyOrderDetailsResponseVehicleValue.d.ts create mode 100644 dist/models/SupplyOrderDetailsResponseVehicleValue.js create mode 100644 dist/models/SupplyOrderGetResponseOrder.d.ts create mode 100644 dist/models/SupplyOrderGetResponseOrder.js create mode 100644 dist/models/SupplyOrderGetResponseTimeslotTZ.d.ts create mode 100644 dist/models/SupplyOrderGetResponseTimeslotTZ.js create mode 100644 dist/models/SupplyOrderListRequestFilter.d.ts create mode 100644 dist/models/SupplyOrderListRequestFilter.js create mode 100644 dist/models/SupplyOrderListRequestFilterStateEnum.d.ts create mode 100644 dist/models/SupplyOrderListRequestFilterStateEnum.js create mode 100644 dist/models/SupplyOrderListRequestSortByEnum.d.ts create mode 100644 dist/models/SupplyOrderListRequestSortByEnum.js create mode 100644 dist/models/SupplyOrderListRequestSortDirEnum.d.ts create mode 100644 dist/models/SupplyOrderListRequestSortDirEnum.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptRequest.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptRequest.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptResponse.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptResponse.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetRequest.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetRequest.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponse.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponse.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.js create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.d.ts create mode 100644 dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListRequest.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListRequest.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponse.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponse.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.js create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.d.ts create mode 100644 dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.js create mode 100644 dist/models/SupplyOverdueReasonEnum.d.ts create mode 100644 dist/models/SupplyOverdueReasonEnum.js create mode 100644 dist/models/SupplyStateEnum.d.ts create mode 100644 dist/models/SupplyStateEnum.js create mode 100644 dist/models/SupplyStorageWarehouse.d.ts create mode 100644 dist/models/SupplyStorageWarehouse.js create mode 100644 dist/models/SupplySupplyTags.d.ts create mode 100644 dist/models/SupplySupplyTags.js create mode 100644 dist/models/SupplyTags.d.ts create mode 100644 dist/models/SupplyTags.js create mode 100644 dist/models/TaskAutoModeratedInfo.d.ts create mode 100644 dist/models/TaskAutoModeratedInfo.js create mode 100644 dist/models/TimeslotCanNotSetTimeslotReasonEnum.d.ts create mode 100644 dist/models/TimeslotCanNotSetTimeslotReasonEnum.js create mode 100644 dist/models/TimeslotFromRangeTimeslotFilterTypeEnum.d.ts create mode 100644 dist/models/TimeslotFromRangeTimeslotFilterTypeEnum.js create mode 100644 dist/models/TimeslotTZTimeslot.d.ts create mode 100644 dist/models/TimeslotTZTimeslot.js create mode 100644 dist/models/TimeslotTZTimezoneInfo.d.ts create mode 100644 dist/models/TimeslotTZTimezoneInfo.js create mode 100644 dist/models/TimeslotValueTimeslot.d.ts create mode 100644 dist/models/TimeslotValueTimeslot.js create mode 100644 dist/models/TimetableWorkingHours.d.ts create mode 100644 dist/models/TimetableWorkingHours.js create mode 100644 dist/models/TypeTimeOfDay.d.ts create mode 100644 dist/models/TypeTimeOfDay.js create mode 100644 dist/models/UploadPostingCodesRequestPostingLineExemplarInfo.d.ts create mode 100644 dist/models/UploadPostingCodesRequestPostingLineExemplarInfo.js create mode 100644 dist/models/UploadPostingCodesResponsePostingExemplarInfo.d.ts create mode 100644 dist/models/UploadPostingCodesResponsePostingExemplarInfo.js create mode 100644 dist/models/UtilizationDefectsMoney.d.ts create mode 100644 dist/models/UtilizationDefectsMoney.js create mode 100644 dist/models/UtilizationMoney.d.ts create mode 100644 dist/models/UtilizationMoney.js create mode 100644 dist/models/V1AddBarcodeRequest.d.ts create mode 100644 dist/models/V1AddBarcodeRequest.js create mode 100644 dist/models/V1AddBarcodeResponse.d.ts create mode 100644 dist/models/V1AddBarcodeResponse.js create mode 100644 dist/models/V1AddBarcodeResult.d.ts create mode 100644 dist/models/V1AddBarcodeResult.js create mode 100644 dist/models/V1AddStrategyItemsRequest.d.ts create mode 100644 dist/models/V1AddStrategyItemsRequest.js create mode 100644 dist/models/V1AddStrategyItemsResponse.d.ts create mode 100644 dist/models/V1AddStrategyItemsResponse.js create mode 100644 dist/models/V1AddStrategyItemsResponseResult.d.ts create mode 100644 dist/models/V1AddStrategyItemsResponseResult.js create mode 100644 dist/models/V1AnalyticsManageStocksRequest.d.ts create mode 100644 dist/models/V1AnalyticsManageStocksRequest.js create mode 100644 dist/models/V1AnalyticsManageStocksRequestFilter.d.ts create mode 100644 dist/models/V1AnalyticsManageStocksRequestFilter.js create mode 100644 dist/models/V1AnalyticsManageStocksResponse.d.ts create mode 100644 dist/models/V1AnalyticsManageStocksResponse.js create mode 100644 dist/models/V1AnalyticsManageStocksResponseItem.d.ts create mode 100644 dist/models/V1AnalyticsManageStocksResponseItem.js create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsRequest.d.ts create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsRequest.js create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsRequestSortBy.d.ts create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsRequestSortBy.js create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsRequestSortDir.d.ts create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsRequestSortDir.js create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsResponse.d.ts create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsResponse.js create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.d.ts create mode 100644 dist/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.js create mode 100644 dist/models/V1AnalyticsProductQueriesRequest.d.ts create mode 100644 dist/models/V1AnalyticsProductQueriesRequest.js create mode 100644 dist/models/V1AnalyticsProductQueriesResponse.d.ts create mode 100644 dist/models/V1AnalyticsProductQueriesResponse.js create mode 100644 dist/models/V1AnalyticsProductQueriesResponseItem.d.ts create mode 100644 dist/models/V1AnalyticsProductQueriesResponseItem.js create mode 100644 dist/models/V1AnalyticsStocksRequest.d.ts create mode 100644 dist/models/V1AnalyticsStocksRequest.js create mode 100644 dist/models/V1AnalyticsStocksResponse.d.ts create mode 100644 dist/models/V1AnalyticsStocksResponse.js create mode 100644 dist/models/V1AnalyticsStocksResponseItem.d.ts create mode 100644 dist/models/V1AnalyticsStocksResponseItem.js create mode 100644 dist/models/V1AnalyticsTurnoverStocksRequest.d.ts create mode 100644 dist/models/V1AnalyticsTurnoverStocksRequest.js create mode 100644 dist/models/V1AnalyticsTurnoverStocksResponse.d.ts create mode 100644 dist/models/V1AnalyticsTurnoverStocksResponse.js create mode 100644 dist/models/V1AnalyticsTurnoverStocksResponseItem.d.ts create mode 100644 dist/models/V1AnalyticsTurnoverStocksResponseItem.js create mode 100644 dist/models/V1ApproveDeclineDiscountTasksResponse.d.ts create mode 100644 dist/models/V1ApproveDeclineDiscountTasksResponse.js create mode 100644 dist/models/V1ApproveDeclineDiscountTasksResponseResult.d.ts create mode 100644 dist/models/V1ApproveDeclineDiscountTasksResponseResult.js create mode 100644 dist/models/V1ApproveDiscountTasksRequest.d.ts create mode 100644 dist/models/V1ApproveDiscountTasksRequest.js create mode 100644 dist/models/V1ApproveDiscountTasksRequestTask.d.ts create mode 100644 dist/models/V1ApproveDiscountTasksRequestTask.js create mode 100644 dist/models/V1ArchiveDeclineReason.d.ts create mode 100644 dist/models/V1ArchiveDeclineReason.js create mode 100644 dist/models/V1ArchiveSkuSummary.d.ts create mode 100644 dist/models/V1ArchiveSkuSummary.js create mode 100644 dist/models/V1ArchiveStatusEnum.d.ts create mode 100644 dist/models/V1ArchiveStatusEnum.js create mode 100644 dist/models/V1ArchiveWarehouseFBSRequest.d.ts create mode 100644 dist/models/V1ArchiveWarehouseFBSRequest.js create mode 100644 dist/models/V1ArchiveWarehouseFBSResponse.d.ts create mode 100644 dist/models/V1ArchiveWarehouseFBSResponse.js create mode 100644 dist/models/V1AssemblyCarriagePostingListRequest.d.ts create mode 100644 dist/models/V1AssemblyCarriagePostingListRequest.js create mode 100644 dist/models/V1AssemblyCarriagePostingListRequestFilter.d.ts create mode 100644 dist/models/V1AssemblyCarriagePostingListRequestFilter.js create mode 100644 dist/models/V1AssemblyCarriagePostingListResponse.d.ts create mode 100644 dist/models/V1AssemblyCarriagePostingListResponse.js create mode 100644 dist/models/V1AssemblyCarriagePostingListResponsePosting.d.ts create mode 100644 dist/models/V1AssemblyCarriagePostingListResponsePosting.js create mode 100644 dist/models/V1AssemblyCarriagePostingListResponsePostingProduct.d.ts create mode 100644 dist/models/V1AssemblyCarriagePostingListResponsePostingProduct.js create mode 100644 dist/models/V1AssemblyCarriageProductListRequest.d.ts create mode 100644 dist/models/V1AssemblyCarriageProductListRequest.js create mode 100644 dist/models/V1AssemblyCarriageProductListRequestFilter.d.ts create mode 100644 dist/models/V1AssemblyCarriageProductListRequestFilter.js create mode 100644 dist/models/V1AssemblyCarriageProductListResponse.d.ts create mode 100644 dist/models/V1AssemblyCarriageProductListResponse.js create mode 100644 dist/models/V1AssemblyCarriageProductListResponseProduct.d.ts create mode 100644 dist/models/V1AssemblyCarriageProductListResponseProduct.js create mode 100644 dist/models/V1AssemblyFbsPostingListRequest.d.ts create mode 100644 dist/models/V1AssemblyFbsPostingListRequest.js create mode 100644 dist/models/V1AssemblyFbsPostingListRequestFilter.d.ts create mode 100644 dist/models/V1AssemblyFbsPostingListRequestFilter.js create mode 100644 dist/models/V1AssemblyFbsPostingListRequestSortDirEnum.d.ts create mode 100644 dist/models/V1AssemblyFbsPostingListRequestSortDirEnum.js create mode 100644 dist/models/V1AssemblyFbsPostingListResponse.d.ts create mode 100644 dist/models/V1AssemblyFbsPostingListResponse.js create mode 100644 dist/models/V1AssemblyFbsPostingListResponsePosting.d.ts create mode 100644 dist/models/V1AssemblyFbsPostingListResponsePosting.js create mode 100644 dist/models/V1AssemblyFbsPostingListResponsePostingProduct.d.ts create mode 100644 dist/models/V1AssemblyFbsPostingListResponsePostingProduct.js create mode 100644 dist/models/V1AssemblyFbsProductListRequest.d.ts create mode 100644 dist/models/V1AssemblyFbsProductListRequest.js create mode 100644 dist/models/V1AssemblyFbsProductListRequestFilter.d.ts create mode 100644 dist/models/V1AssemblyFbsProductListRequestFilter.js create mode 100644 dist/models/V1AssemblyFbsProductListRequestSortDirEnum.d.ts create mode 100644 dist/models/V1AssemblyFbsProductListRequestSortDirEnum.js create mode 100644 dist/models/V1AssemblyFbsProductListResponse.d.ts create mode 100644 dist/models/V1AssemblyFbsProductListResponse.js create mode 100644 dist/models/V1Barcode.d.ts create mode 100644 dist/models/V1Barcode.js create mode 100644 dist/models/V1BundleItemErrorEnum.d.ts create mode 100644 dist/models/V1BundleItemErrorEnum.js create mode 100644 dist/models/V1BundleItemShipmentType.d.ts create mode 100644 dist/models/V1BundleItemShipmentType.js create mode 100644 dist/models/V1CancelReasonListByOrderRequest.d.ts create mode 100644 dist/models/V1CancelReasonListByOrderRequest.js create mode 100644 dist/models/V1CancelReasonListByOrderResponse.d.ts create mode 100644 dist/models/V1CancelReasonListByOrderResponse.js create mode 100644 dist/models/V1CancelReasonListByOrderResponseReason.d.ts create mode 100644 dist/models/V1CancelReasonListByOrderResponseReason.js create mode 100644 dist/models/V1CancelReasonListByOrderResponseReasonFbo.d.ts create mode 100644 dist/models/V1CancelReasonListByOrderResponseReasonFbo.js create mode 100644 dist/models/V1CancelReasonListByPostingRequest.d.ts create mode 100644 dist/models/V1CancelReasonListByPostingRequest.js create mode 100644 dist/models/V1CancelReasonListByPostingResponse.d.ts create mode 100644 dist/models/V1CancelReasonListByPostingResponse.js create mode 100644 dist/models/V1CancelReasonListByPostingResponseReason.d.ts create mode 100644 dist/models/V1CancelReasonListByPostingResponseReason.js create mode 100644 dist/models/V1CancelReasonListResponse.d.ts create mode 100644 dist/models/V1CancelReasonListResponse.js create mode 100644 dist/models/V1CancelReasonListResponseFbo.d.ts create mode 100644 dist/models/V1CancelReasonListResponseFbo.js create mode 100644 dist/models/V1CancellationState.d.ts create mode 100644 dist/models/V1CancellationState.js create mode 100644 dist/models/V1CancellationStateStatus.d.ts create mode 100644 dist/models/V1CancellationStateStatus.js create mode 100644 dist/models/V1CargoesCreateErrors.d.ts create mode 100644 dist/models/V1CargoesCreateErrors.js create mode 100644 dist/models/V1CargoesCreateRequest.d.ts create mode 100644 dist/models/V1CargoesCreateRequest.js create mode 100644 dist/models/V1CargoesCreateRequestCargo.d.ts create mode 100644 dist/models/V1CargoesCreateRequestCargo.js create mode 100644 dist/models/V1CargoesCreateRequestCargoValue.d.ts create mode 100644 dist/models/V1CargoesCreateRequestCargoValue.js create mode 100644 dist/models/V1CargoesCreateResponse.d.ts create mode 100644 dist/models/V1CargoesCreateResponse.js create mode 100644 dist/models/V1CargoesDeleteRequest.d.ts create mode 100644 dist/models/V1CargoesDeleteRequest.js create mode 100644 dist/models/V1CargoesDeleteResponse.d.ts create mode 100644 dist/models/V1CargoesDeleteResponse.js create mode 100644 dist/models/V1CargoesDeleteResponseError.d.ts create mode 100644 dist/models/V1CargoesDeleteResponseError.js create mode 100644 dist/models/V1CargoesDeleteResponseErrorCargoErrorReason.d.ts create mode 100644 dist/models/V1CargoesDeleteResponseErrorCargoErrorReason.js create mode 100644 dist/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.d.ts create mode 100644 dist/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.js create mode 100644 dist/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.d.ts create mode 100644 dist/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.js create mode 100644 dist/models/V1CargoesDeleteStatusRequest.d.ts create mode 100644 dist/models/V1CargoesDeleteStatusRequest.js create mode 100644 dist/models/V1CargoesDeleteStatusResponse.d.ts create mode 100644 dist/models/V1CargoesDeleteStatusResponse.js create mode 100644 dist/models/V1CargoesDeleteStatusResponseError.d.ts create mode 100644 dist/models/V1CargoesDeleteStatusResponseError.js create mode 100644 dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.d.ts create mode 100644 dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.js create mode 100644 dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.d.ts create mode 100644 dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.js create mode 100644 dist/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.d.ts create mode 100644 dist/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.js create mode 100644 dist/models/V1CargoesGetRequest.d.ts create mode 100644 dist/models/V1CargoesGetRequest.js create mode 100644 dist/models/V1CargoesGetResponse.d.ts create mode 100644 dist/models/V1CargoesGetResponse.js create mode 100644 dist/models/V1CargoesLabelCreateErrors.d.ts create mode 100644 dist/models/V1CargoesLabelCreateErrors.js create mode 100644 dist/models/V1CargoesLabelCreateErrorsErrorReason.d.ts create mode 100644 dist/models/V1CargoesLabelCreateErrorsErrorReason.js create mode 100644 dist/models/V1CargoesLabelCreateRequest.d.ts create mode 100644 dist/models/V1CargoesLabelCreateRequest.js create mode 100644 dist/models/V1CargoesLabelCreateRequestCargo.d.ts create mode 100644 dist/models/V1CargoesLabelCreateRequestCargo.js create mode 100644 dist/models/V1CargoesLabelCreateResponse.d.ts create mode 100644 dist/models/V1CargoesLabelCreateResponse.js create mode 100644 dist/models/V1CargoesLabelGetRequest.d.ts create mode 100644 dist/models/V1CargoesLabelGetRequest.js create mode 100644 dist/models/V1CargoesLabelGetResponse.d.ts create mode 100644 dist/models/V1CargoesLabelGetResponse.js create mode 100644 dist/models/V1CargoesLabelGetResponseResult.d.ts create mode 100644 dist/models/V1CargoesLabelGetResponseResult.js create mode 100644 dist/models/V1CargoesLabelGetResponseStatus.d.ts create mode 100644 dist/models/V1CargoesLabelGetResponseStatus.js create mode 100644 dist/models/V1CargoesRulesGetRequest.d.ts create mode 100644 dist/models/V1CargoesRulesGetRequest.js create mode 100644 dist/models/V1CargoesRulesGetResponse.d.ts create mode 100644 dist/models/V1CargoesRulesGetResponse.js create mode 100644 dist/models/V1CarriageActDiscrepancyPDFRequest.d.ts create mode 100644 dist/models/V1CarriageActDiscrepancyPDFRequest.js create mode 100644 dist/models/V1CarriageActDiscrepancyPDFResponse.d.ts create mode 100644 dist/models/V1CarriageActDiscrepancyPDFResponse.js create mode 100644 dist/models/V1CarriageApproveRequest.d.ts create mode 100644 dist/models/V1CarriageApproveRequest.js create mode 100644 dist/models/V1CarriageCancelRequest.d.ts create mode 100644 dist/models/V1CarriageCancelRequest.js create mode 100644 dist/models/V1CarriageCancelResponse.d.ts create mode 100644 dist/models/V1CarriageCancelResponse.js create mode 100644 dist/models/V1CarriageCourierContactGetRequest.d.ts create mode 100644 dist/models/V1CarriageCourierContactGetRequest.js create mode 100644 dist/models/V1CarriageCourierContactGetResponse.d.ts create mode 100644 dist/models/V1CarriageCourierContactGetResponse.js create mode 100644 dist/models/V1CarriageCourierContactGetResponseContact.d.ts create mode 100644 dist/models/V1CarriageCourierContactGetResponseContact.js create mode 100644 dist/models/V1CarriageCourierContactSetRequest.d.ts create mode 100644 dist/models/V1CarriageCourierContactSetRequest.js create mode 100644 dist/models/V1CarriageCreateRequest.d.ts create mode 100644 dist/models/V1CarriageCreateRequest.js create mode 100644 dist/models/V1CarriageCreateResponse.d.ts create mode 100644 dist/models/V1CarriageCreateResponse.js create mode 100644 dist/models/V1CarriageDeliveryListRequest.d.ts create mode 100644 dist/models/V1CarriageDeliveryListRequest.js create mode 100644 dist/models/V1CarriageDeliveryListResponse.d.ts create mode 100644 dist/models/V1CarriageDeliveryListResponse.js create mode 100644 dist/models/V1CarriageDeliveryListResponseResult.d.ts create mode 100644 dist/models/V1CarriageDeliveryListResponseResult.js create mode 100644 dist/models/V1CarriageDeliveryListResponseResultCarriages.d.ts create mode 100644 dist/models/V1CarriageDeliveryListResponseResultCarriages.js create mode 100644 dist/models/V1CarriageDeliveryListResponseResultErrors.d.ts create mode 100644 dist/models/V1CarriageDeliveryListResponseResultErrors.js create mode 100644 dist/models/V1CarriageEttnStatusRequest.d.ts create mode 100644 dist/models/V1CarriageEttnStatusRequest.js create mode 100644 dist/models/V1CarriageEttnStatusResponse.d.ts create mode 100644 dist/models/V1CarriageEttnStatusResponse.js create mode 100644 dist/models/V1Certificate.d.ts create mode 100644 dist/models/V1Certificate.js create mode 100644 dist/models/V1ClusterType.d.ts create mode 100644 dist/models/V1ClusterType.js create mode 100644 dist/models/V1CommentCreateRequest.d.ts create mode 100644 dist/models/V1CommentCreateRequest.js create mode 100644 dist/models/V1CommentCreateResponse.d.ts create mode 100644 dist/models/V1CommentCreateResponse.js create mode 100644 dist/models/V1CommentDeleteRequest.d.ts create mode 100644 dist/models/V1CommentDeleteRequest.js create mode 100644 dist/models/V1CommentListRequest.d.ts create mode 100644 dist/models/V1CommentListRequest.js create mode 100644 dist/models/V1CommentListResponse.d.ts create mode 100644 dist/models/V1CommentListResponse.js create mode 100644 dist/models/V1CommentSort.d.ts create mode 100644 dist/models/V1CommentSort.js create mode 100644 dist/models/V1Competitor.d.ts create mode 100644 dist/models/V1Competitor.js create mode 100644 dist/models/V1CreateDocumentB2BSalesJSONReportRequest.d.ts create mode 100644 dist/models/V1CreateDocumentB2BSalesJSONReportRequest.js create mode 100644 dist/models/V1CreateDocumentB2BSalesJSONReportResponse.d.ts create mode 100644 dist/models/V1CreateDocumentB2BSalesJSONReportResponse.js create mode 100644 dist/models/V1CreateDocumentB2BSalesReportRequest.d.ts create mode 100644 dist/models/V1CreateDocumentB2BSalesReportRequest.js create mode 100644 dist/models/V1CreateLabelBatchRequest.d.ts create mode 100644 dist/models/V1CreateLabelBatchRequest.js create mode 100644 dist/models/V1CreateLabelBatchResponse.d.ts create mode 100644 dist/models/V1CreateLabelBatchResponse.js create mode 100644 dist/models/V1CreateLabelBatchResponseResult.d.ts create mode 100644 dist/models/V1CreateLabelBatchResponseResult.js create mode 100644 dist/models/V1CreateMutualSettlementReportRequest.d.ts create mode 100644 dist/models/V1CreateMutualSettlementReportRequest.js create mode 100644 dist/models/V1CreatePlacementByProductsReportRequest.d.ts create mode 100644 dist/models/V1CreatePlacementByProductsReportRequest.js create mode 100644 dist/models/V1CreatePlacementByProductsReportResponse.d.ts create mode 100644 dist/models/V1CreatePlacementByProductsReportResponse.js create mode 100644 dist/models/V1CreatePlacementBySuppliesReportRequest.d.ts create mode 100644 dist/models/V1CreatePlacementBySuppliesReportRequest.js create mode 100644 dist/models/V1CreatePlacementBySuppliesReportResponse.d.ts create mode 100644 dist/models/V1CreatePlacementBySuppliesReportResponse.js create mode 100644 dist/models/V1CreatePricingStrategyRequest.d.ts create mode 100644 dist/models/V1CreatePricingStrategyRequest.js create mode 100644 dist/models/V1CreatePricingStrategyResponse.d.ts create mode 100644 dist/models/V1CreatePricingStrategyResponse.js create mode 100644 dist/models/V1CreatePricingStrategyResponseResult.d.ts create mode 100644 dist/models/V1CreatePricingStrategyResponseResult.js create mode 100644 dist/models/V1CreateStockByWarehouseReportRequest.d.ts create mode 100644 dist/models/V1CreateStockByWarehouseReportRequest.js create mode 100644 dist/models/V1CreateType.d.ts create mode 100644 dist/models/V1CreateType.js create mode 100644 dist/models/V1CreateWarehouseFBSRequest.d.ts create mode 100644 dist/models/V1CreateWarehouseFBSRequest.js create mode 100644 dist/models/V1CreateWarehouseFBSResponse.d.ts create mode 100644 dist/models/V1CreateWarehouseFBSResponse.js create mode 100644 dist/models/V1DayOfWeek.d.ts create mode 100644 dist/models/V1DayOfWeek.js create mode 100644 dist/models/V1DeclineDiscountTasksRequest.d.ts create mode 100644 dist/models/V1DeclineDiscountTasksRequest.js create mode 100644 dist/models/V1DeclineDiscountTasksRequestTask.d.ts create mode 100644 dist/models/V1DeclineDiscountTasksRequestTask.js create mode 100644 dist/models/V1DeleteStrategyItemsResponse.d.ts create mode 100644 dist/models/V1DeleteStrategyItemsResponse.js create mode 100644 dist/models/V1DeleteStrategyItemsResponseResult.d.ts create mode 100644 dist/models/V1DeleteStrategyItemsResponseResult.js create mode 100644 dist/models/V1DeliveryCheckRequest.d.ts create mode 100644 dist/models/V1DeliveryCheckRequest.js create mode 100644 dist/models/V1DeliveryCheckResponse.d.ts create mode 100644 dist/models/V1DeliveryCheckResponse.js create mode 100644 dist/models/V1DeliveryCheckoutRequest.d.ts create mode 100644 dist/models/V1DeliveryCheckoutRequest.js create mode 100644 dist/models/V1DeliveryCheckoutRequestDeliveryType.d.ts create mode 100644 dist/models/V1DeliveryCheckoutRequestDeliveryType.js create mode 100644 dist/models/V1DeliveryCheckoutRequestItem.d.ts create mode 100644 dist/models/V1DeliveryCheckoutRequestItem.js create mode 100644 dist/models/V1DeliveryCheckoutResponse.d.ts create mode 100644 dist/models/V1DeliveryCheckoutResponse.js create mode 100644 dist/models/V1DeliveryDetailsDirectDetails.d.ts create mode 100644 dist/models/V1DeliveryDetailsDirectDetails.js create mode 100644 dist/models/V1DeliveryDetailsPickUpDetails.d.ts create mode 100644 dist/models/V1DeliveryDetailsPickUpDetails.js create mode 100644 dist/models/V1DeliveryMapRequest.d.ts create mode 100644 dist/models/V1DeliveryMapRequest.js create mode 100644 dist/models/V1DeliveryMapRequestViewport.d.ts create mode 100644 dist/models/V1DeliveryMapRequestViewport.js create mode 100644 dist/models/V1DeliveryMapResponse.d.ts create mode 100644 dist/models/V1DeliveryMapResponse.js create mode 100644 dist/models/V1DeliveryPointInfoRequest.d.ts create mode 100644 dist/models/V1DeliveryPointInfoRequest.js create mode 100644 dist/models/V1DeliveryPointInfoResponse.d.ts create mode 100644 dist/models/V1DeliveryPointInfoResponse.js create mode 100644 dist/models/V1DeliveryPointInfoResponsePoint.d.ts create mode 100644 dist/models/V1DeliveryPointInfoResponsePoint.js create mode 100644 dist/models/V1DeliveryPointListResponse.d.ts create mode 100644 dist/models/V1DeliveryPointListResponse.js create mode 100644 dist/models/V1DeliveryPointListResponsePoint.d.ts create mode 100644 dist/models/V1DeliveryPointListResponsePoint.js create mode 100644 dist/models/V1DiscountTaskStatus.d.ts create mode 100644 dist/models/V1DiscountTaskStatus.js create mode 100644 dist/models/V1DraftClusterListRequest.d.ts create mode 100644 dist/models/V1DraftClusterListRequest.js create mode 100644 dist/models/V1DraftClusterListResponse.d.ts create mode 100644 dist/models/V1DraftClusterListResponse.js create mode 100644 dist/models/V1DraftClusterListResponseCluster.d.ts create mode 100644 dist/models/V1DraftClusterListResponseCluster.js create mode 100644 dist/models/V1DraftClusterListResponseWarehouse.d.ts create mode 100644 dist/models/V1DraftClusterListResponseWarehouse.js create mode 100644 dist/models/V1DraftCreateCommonResponse.d.ts create mode 100644 dist/models/V1DraftCreateCommonResponse.js create mode 100644 dist/models/V1DraftCrossdockCreateRequest.d.ts create mode 100644 dist/models/V1DraftCrossdockCreateRequest.js create mode 100644 dist/models/V1DraftCrossdockCreateRequestClusterInfo.d.ts create mode 100644 dist/models/V1DraftCrossdockCreateRequestClusterInfo.js create mode 100644 dist/models/V1DraftCrossdockCreateRequestClusterInfoItem.d.ts create mode 100644 dist/models/V1DraftCrossdockCreateRequestClusterInfoItem.js create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.d.ts create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.js create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeliveryInfo.d.ts create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeliveryInfo.js create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.d.ts create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.js create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.d.ts create mode 100644 dist/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.js create mode 100644 dist/models/V1DraftDirectCreateRequest.d.ts create mode 100644 dist/models/V1DraftDirectCreateRequest.js create mode 100644 dist/models/V1DraftDirectCreateRequestClusterInfo.d.ts create mode 100644 dist/models/V1DraftDirectCreateRequestClusterInfo.js create mode 100644 dist/models/V1DraftDirectCreateRequestClusterInfoItem.d.ts create mode 100644 dist/models/V1DraftDirectCreateRequestClusterInfoItem.js create mode 100644 dist/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.d.ts create mode 100644 dist/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.js create mode 100644 dist/models/V1DraftGetWarehouseFboListRequest.d.ts create mode 100644 dist/models/V1DraftGetWarehouseFboListRequest.js create mode 100644 dist/models/V1DraftGetWarehouseFboListResponse.d.ts create mode 100644 dist/models/V1DraftGetWarehouseFboListResponse.js create mode 100644 dist/models/V1DraftMultiClusterCreateRequest.d.ts create mode 100644 dist/models/V1DraftMultiClusterCreateRequest.js create mode 100644 dist/models/V1DraftMultiClusterCreateRequestClusterInfo.d.ts create mode 100644 dist/models/V1DraftMultiClusterCreateRequestClusterInfo.js create mode 100644 dist/models/V1DraftMultiClusterCreateRequestClusterInfoItem.d.ts create mode 100644 dist/models/V1DraftMultiClusterCreateRequestClusterInfoItem.js create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.d.ts create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.js create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeliveryInfo.d.ts create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeliveryInfo.js create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.d.ts create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.js create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.d.ts create mode 100644 dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.js create mode 100644 dist/models/V1DraftStatusEnum.d.ts create mode 100644 dist/models/V1DraftStatusEnum.js create mode 100644 dist/models/V1FbpArchiveGetRequest.d.ts create mode 100644 dist/models/V1FbpArchiveGetRequest.js create mode 100644 dist/models/V1FbpArchiveGetResponse.d.ts create mode 100644 dist/models/V1FbpArchiveGetResponse.js create mode 100644 dist/models/V1FbpArchiveListRequest.d.ts create mode 100644 dist/models/V1FbpArchiveListRequest.js create mode 100644 dist/models/V1FbpArchiveListResponse.d.ts create mode 100644 dist/models/V1FbpArchiveListResponse.js create mode 100644 dist/models/V1FbpArchiveListResponseItem.d.ts create mode 100644 dist/models/V1FbpArchiveListResponseItem.js create mode 100644 dist/models/V1FbpAvailableTimeslotListRequest.d.ts create mode 100644 dist/models/V1FbpAvailableTimeslotListRequest.js create mode 100644 dist/models/V1FbpAvailableTimeslotListResponse.d.ts create mode 100644 dist/models/V1FbpAvailableTimeslotListResponse.js create mode 100644 dist/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.d.ts create mode 100644 dist/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.js create mode 100644 dist/models/V1FbpCheckActStateRequest.d.ts create mode 100644 dist/models/V1FbpCheckActStateRequest.js create mode 100644 dist/models/V1FbpCheckActStateResponse.d.ts create mode 100644 dist/models/V1FbpCheckActStateResponse.js create mode 100644 dist/models/V1FbpCheckActStateResponseStatus.d.ts create mode 100644 dist/models/V1FbpCheckActStateResponseStatus.js create mode 100644 dist/models/V1FbpCheckConsignmentNoteStateRequest.d.ts create mode 100644 dist/models/V1FbpCheckConsignmentNoteStateRequest.js create mode 100644 dist/models/V1FbpCheckConsignmentNoteStateResponse.d.ts create mode 100644 dist/models/V1FbpCheckConsignmentNoteStateResponse.js create mode 100644 dist/models/V1FbpCreateActRequest.d.ts create mode 100644 dist/models/V1FbpCreateActRequest.js create mode 100644 dist/models/V1FbpCreateActResponse.d.ts create mode 100644 dist/models/V1FbpCreateActResponse.js create mode 100644 dist/models/V1FbpCreateConsignmentNoteRequest.d.ts create mode 100644 dist/models/V1FbpCreateConsignmentNoteRequest.js create mode 100644 dist/models/V1FbpCreateConsignmentNoteResponse.d.ts create mode 100644 dist/models/V1FbpCreateConsignmentNoteResponse.js create mode 100644 dist/models/V1FbpCreateLabelRequest.d.ts create mode 100644 dist/models/V1FbpCreateLabelRequest.js create mode 100644 dist/models/V1FbpCreateLabelResponse.d.ts create mode 100644 dist/models/V1FbpCreateLabelResponse.js create mode 100644 dist/models/V1FbpDraftDirectCreateRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectCreateRequest.js create mode 100644 dist/models/V1FbpDraftDirectCreateRequestDirectDetails.d.ts create mode 100644 dist/models/V1FbpDraftDirectCreateRequestDirectDetails.js create mode 100644 dist/models/V1FbpDraftDirectCreateResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectCreateResponse.js create mode 100644 dist/models/V1FbpDraftDirectDeleteRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectDeleteRequest.js create mode 100644 dist/models/V1FbpDraftDirectDeleteResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectDeleteResponse.js create mode 100644 dist/models/V1FbpDraftDirectGetTimeslotRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectGetTimeslotRequest.js create mode 100644 dist/models/V1FbpDraftDirectGetTimeslotResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectGetTimeslotResponse.js create mode 100644 dist/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.d.ts create mode 100644 dist/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.js create mode 100644 dist/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.d.ts create mode 100644 dist/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.js create mode 100644 dist/models/V1FbpDraftDirectProductValidateRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectProductValidateRequest.js create mode 100644 dist/models/V1FbpDraftDirectProductValidateRequestSkuItem.d.ts create mode 100644 dist/models/V1FbpDraftDirectProductValidateRequestSkuItem.js create mode 100644 dist/models/V1FbpDraftDirectProductValidateResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectProductValidateResponse.js create mode 100644 dist/models/V1FbpDraftDirectProductValidateResponseApprovedItem.d.ts create mode 100644 dist/models/V1FbpDraftDirectProductValidateResponseApprovedItem.js create mode 100644 dist/models/V1FbpDraftDirectProductValidateResponseRejectedItem.d.ts create mode 100644 dist/models/V1FbpDraftDirectProductValidateResponseRejectedItem.js create mode 100644 dist/models/V1FbpDraftDirectRegistrateRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectRegistrateRequest.js create mode 100644 dist/models/V1FbpDraftDirectRegistrateResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectRegistrateResponse.js create mode 100644 dist/models/V1FbpDraftDirectRegistrateResponseRegistrationError.d.ts create mode 100644 dist/models/V1FbpDraftDirectRegistrateResponseRegistrationError.js create mode 100644 dist/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.d.ts create mode 100644 dist/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.js create mode 100644 dist/models/V1FbpDraftDirectSellerDlvCreateRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectSellerDlvCreateRequest.js create mode 100644 dist/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.d.ts create mode 100644 dist/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.js create mode 100644 dist/models/V1FbpDraftDirectSellerDlvCreateResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectSellerDlvCreateResponse.js create mode 100644 dist/models/V1FbpDraftDirectSellerDlvEditRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectSellerDlvEditRequest.js create mode 100644 dist/models/V1FbpDraftDirectSellerDlvEditResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectSellerDlvEditResponse.js create mode 100644 dist/models/V1FbpDraftDirectTimeslotEditRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectTimeslotEditRequest.js create mode 100644 dist/models/V1FbpDraftDirectTimeslotEditResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectTimeslotEditResponse.js create mode 100644 dist/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.d.ts create mode 100644 dist/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.js create mode 100644 dist/models/V1FbpDraftDirectTplDlvCreateRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectTplDlvCreateRequest.js create mode 100644 dist/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.d.ts create mode 100644 dist/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.js create mode 100644 dist/models/V1FbpDraftDirectTplDlvCreateResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectTplDlvCreateResponse.js create mode 100644 dist/models/V1FbpDraftDirectTplDlvEditRequest.d.ts create mode 100644 dist/models/V1FbpDraftDirectTplDlvEditRequest.js create mode 100644 dist/models/V1FbpDraftDirectTplDlvEditResponse.d.ts create mode 100644 dist/models/V1FbpDraftDirectTplDlvEditResponse.js create mode 100644 dist/models/V1FbpDraftDropOffCreateRequest.d.ts create mode 100644 dist/models/V1FbpDraftDropOffCreateRequest.js create mode 100644 dist/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.d.ts create mode 100644 dist/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.js create mode 100644 dist/models/V1FbpDraftDropOffCreateResponse.d.ts create mode 100644 dist/models/V1FbpDraftDropOffCreateResponse.js create mode 100644 dist/models/V1FbpDraftDropOffDeleteRequest.d.ts create mode 100644 dist/models/V1FbpDraftDropOffDeleteRequest.js create mode 100644 dist/models/V1FbpDraftDropOffDeleteResponse.d.ts create mode 100644 dist/models/V1FbpDraftDropOffDeleteResponse.js create mode 100644 dist/models/V1FbpDraftDropOffDlvEditRequest.d.ts create mode 100644 dist/models/V1FbpDraftDropOffDlvEditRequest.js create mode 100644 dist/models/V1FbpDraftDropOffDlvEditResponse.d.ts create mode 100644 dist/models/V1FbpDraftDropOffDlvEditResponse.js create mode 100644 dist/models/V1FbpDraftDropOffPointListRequest.d.ts create mode 100644 dist/models/V1FbpDraftDropOffPointListRequest.js create mode 100644 dist/models/V1FbpDraftDropOffPointListResponse.d.ts create mode 100644 dist/models/V1FbpDraftDropOffPointListResponse.js create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableRequest.d.ts create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableRequest.js create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponse.d.ts create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponse.js create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponseCalendar.d.ts create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponseCalendar.js create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.d.ts create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.js create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.js create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.d.ts create mode 100644 dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.js create mode 100644 dist/models/V1FbpDraftDropOffProductValidateRequest.d.ts create mode 100644 dist/models/V1FbpDraftDropOffProductValidateRequest.js create mode 100644 dist/models/V1FbpDraftDropOffProductValidateRequestSkuItem.d.ts create mode 100644 dist/models/V1FbpDraftDropOffProductValidateRequestSkuItem.js create mode 100644 dist/models/V1FbpDraftDropOffProductValidateResponse.d.ts create mode 100644 dist/models/V1FbpDraftDropOffProductValidateResponse.js create mode 100644 dist/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.d.ts create mode 100644 dist/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.js create mode 100644 dist/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.d.ts create mode 100644 dist/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.js create mode 100644 dist/models/V1FbpDraftDropOffProvinceListRequest.d.ts create mode 100644 dist/models/V1FbpDraftDropOffProvinceListRequest.js create mode 100644 dist/models/V1FbpDraftDropOffProvinceListResponse.d.ts create mode 100644 dist/models/V1FbpDraftDropOffProvinceListResponse.js create mode 100644 dist/models/V1FbpDraftDropOffRegistrateRequest.d.ts create mode 100644 dist/models/V1FbpDraftDropOffRegistrateRequest.js create mode 100644 dist/models/V1FbpDraftDropOffRegistrateResponse.d.ts create mode 100644 dist/models/V1FbpDraftDropOffRegistrateResponse.js create mode 100644 dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.d.ts create mode 100644 dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.js create mode 100644 dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.d.ts create mode 100644 dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.js create mode 100644 dist/models/V1FbpDraftGetRequest.d.ts create mode 100644 dist/models/V1FbpDraftGetRequest.js create mode 100644 dist/models/V1FbpDraftGetResponse.d.ts create mode 100644 dist/models/V1FbpDraftGetResponse.js create mode 100644 dist/models/V1FbpDraftListRequest.d.ts create mode 100644 dist/models/V1FbpDraftListRequest.js create mode 100644 dist/models/V1FbpDraftListResponse.d.ts create mode 100644 dist/models/V1FbpDraftListResponse.js create mode 100644 dist/models/V1FbpDraftListResponseItem.d.ts create mode 100644 dist/models/V1FbpDraftListResponseItem.js create mode 100644 dist/models/V1FbpDraftPickUpDeleteRequest.d.ts create mode 100644 dist/models/V1FbpDraftPickUpDeleteRequest.js create mode 100644 dist/models/V1FbpDraftPickUpDeleteResponse.d.ts create mode 100644 dist/models/V1FbpDraftPickUpDeleteResponse.js create mode 100644 dist/models/V1FbpDraftPickUpProductValidateRequest.d.ts create mode 100644 dist/models/V1FbpDraftPickUpProductValidateRequest.js create mode 100644 dist/models/V1FbpDraftPickUpProductValidateRequestSkuItem.d.ts create mode 100644 dist/models/V1FbpDraftPickUpProductValidateRequestSkuItem.js create mode 100644 dist/models/V1FbpDraftPickUpProductValidateResponse.d.ts create mode 100644 dist/models/V1FbpDraftPickUpProductValidateResponse.js create mode 100644 dist/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.d.ts create mode 100644 dist/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.js create mode 100644 dist/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.d.ts create mode 100644 dist/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.js create mode 100644 dist/models/V1FbpDraftPickUpRegistrateRequest.d.ts create mode 100644 dist/models/V1FbpDraftPickUpRegistrateRequest.js create mode 100644 dist/models/V1FbpDraftPickUpRegistrateResponse.d.ts create mode 100644 dist/models/V1FbpDraftPickUpRegistrateResponse.js create mode 100644 dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.d.ts create mode 100644 dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.js create mode 100644 dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.d.ts create mode 100644 dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.js create mode 100644 dist/models/V1FbpDraftPickupCreateRequest.d.ts create mode 100644 dist/models/V1FbpDraftPickupCreateRequest.js create mode 100644 dist/models/V1FbpDraftPickupCreateRequestDeliveryDetails.d.ts create mode 100644 dist/models/V1FbpDraftPickupCreateRequestDeliveryDetails.js create mode 100644 dist/models/V1FbpDraftPickupCreateResponse.d.ts create mode 100644 dist/models/V1FbpDraftPickupCreateResponse.js create mode 100644 dist/models/V1FbpDraftPickupDlvEditRequest.d.ts create mode 100644 dist/models/V1FbpDraftPickupDlvEditRequest.js create mode 100644 dist/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.d.ts create mode 100644 dist/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.js create mode 100644 dist/models/V1FbpDraftPickupDlvEditResponse.d.ts create mode 100644 dist/models/V1FbpDraftPickupDlvEditResponse.js create mode 100644 dist/models/V1FbpEditTimeslotRequest.d.ts create mode 100644 dist/models/V1FbpEditTimeslotRequest.js create mode 100644 dist/models/V1FbpEditTimeslotResponse.d.ts create mode 100644 dist/models/V1FbpEditTimeslotResponse.js create mode 100644 dist/models/V1FbpEditTimeslotResponseReserveFailureType.d.ts create mode 100644 dist/models/V1FbpEditTimeslotResponseReserveFailureType.js create mode 100644 dist/models/V1FbpGetLabelRequest.d.ts create mode 100644 dist/models/V1FbpGetLabelRequest.js create mode 100644 dist/models/V1FbpGetLabelResponse.d.ts create mode 100644 dist/models/V1FbpGetLabelResponse.js create mode 100644 dist/models/V1FbpOrderDirectCancelRequest.d.ts create mode 100644 dist/models/V1FbpOrderDirectCancelRequest.js create mode 100644 dist/models/V1FbpOrderDirectCancelResponse.d.ts create mode 100644 dist/models/V1FbpOrderDirectCancelResponse.js create mode 100644 dist/models/V1FbpOrderDirectSellerDlvEditRequest.d.ts create mode 100644 dist/models/V1FbpOrderDirectSellerDlvEditRequest.js create mode 100644 dist/models/V1FbpOrderDirectSellerDlvEditResponse.d.ts create mode 100644 dist/models/V1FbpOrderDirectSellerDlvEditResponse.js create mode 100644 dist/models/V1FbpOrderDropOffCancelRequest.d.ts create mode 100644 dist/models/V1FbpOrderDropOffCancelRequest.js create mode 100644 dist/models/V1FbpOrderDropOffCancelResponse.d.ts create mode 100644 dist/models/V1FbpOrderDropOffCancelResponse.js create mode 100644 dist/models/V1FbpOrderDropOffDlvEditRequest.d.ts create mode 100644 dist/models/V1FbpOrderDropOffDlvEditRequest.js create mode 100644 dist/models/V1FbpOrderDropOffDlvEditResponse.d.ts create mode 100644 dist/models/V1FbpOrderDropOffDlvEditResponse.js create mode 100644 dist/models/V1FbpOrderDropOffTimetableRequest.d.ts create mode 100644 dist/models/V1FbpOrderDropOffTimetableRequest.js create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponse.d.ts create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponse.js create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponseCalendar.d.ts create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponseCalendar.js create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.d.ts create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.js create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.js create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.d.ts create mode 100644 dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.js create mode 100644 dist/models/V1FbpOrderGetRequest.d.ts create mode 100644 dist/models/V1FbpOrderGetRequest.js create mode 100644 dist/models/V1FbpOrderGetResponse.d.ts create mode 100644 dist/models/V1FbpOrderGetResponse.js create mode 100644 dist/models/V1FbpOrderListRequest.d.ts create mode 100644 dist/models/V1FbpOrderListRequest.js create mode 100644 dist/models/V1FbpOrderListResponse.d.ts create mode 100644 dist/models/V1FbpOrderListResponse.js create mode 100644 dist/models/V1FbpOrderListResponseItem.d.ts create mode 100644 dist/models/V1FbpOrderListResponseItem.js create mode 100644 dist/models/V1FbpOrderPickUpCancelRequest.d.ts create mode 100644 dist/models/V1FbpOrderPickUpCancelRequest.js create mode 100644 dist/models/V1FbpOrderPickUpCancelResponse.d.ts create mode 100644 dist/models/V1FbpOrderPickUpCancelResponse.js create mode 100644 dist/models/V1FbpOrderPickUpDlvEditRequest.d.ts create mode 100644 dist/models/V1FbpOrderPickUpDlvEditRequest.js create mode 100644 dist/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.d.ts create mode 100644 dist/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.js create mode 100644 dist/models/V1FbpOrderPickUpDlvEditResponse.d.ts create mode 100644 dist/models/V1FbpOrderPickUpDlvEditResponse.js create mode 100644 dist/models/V1FbpWarehouseListResponse.d.ts create mode 100644 dist/models/V1FbpWarehouseListResponse.js create mode 100644 dist/models/V1FbsPostingProductExemplarUpdateRequest.d.ts create mode 100644 dist/models/V1FbsPostingProductExemplarUpdateRequest.js create mode 100644 dist/models/V1GenerateBarcodeRequest.d.ts create mode 100644 dist/models/V1GenerateBarcodeRequest.js create mode 100644 dist/models/V1GenerateBarcodeResponse.d.ts create mode 100644 dist/models/V1GenerateBarcodeResponse.js create mode 100644 dist/models/V1GenerateBarcodeResult.d.ts create mode 100644 dist/models/V1GenerateBarcodeResult.js create mode 100644 dist/models/V1GetAttributeValuesRequest.d.ts create mode 100644 dist/models/V1GetAttributeValuesRequest.js create mode 100644 dist/models/V1GetAttributeValuesResponse.d.ts create mode 100644 dist/models/V1GetAttributeValuesResponse.js create mode 100644 dist/models/V1GetAttributeValuesResponseDictionaryValue.d.ts create mode 100644 dist/models/V1GetAttributeValuesResponseDictionaryValue.js create mode 100644 dist/models/V1GetAttributesRequest.d.ts create mode 100644 dist/models/V1GetAttributesRequest.js create mode 100644 dist/models/V1GetAttributesResponse.d.ts create mode 100644 dist/models/V1GetAttributesResponse.js create mode 100644 dist/models/V1GetAttributesResponseAttribute.d.ts create mode 100644 dist/models/V1GetAttributesResponseAttribute.js create mode 100644 dist/models/V1GetCompensationReportRequest.d.ts create mode 100644 dist/models/V1GetCompensationReportRequest.js create mode 100644 dist/models/V1GetCompetitorsRequest.d.ts create mode 100644 dist/models/V1GetCompetitorsRequest.js create mode 100644 dist/models/V1GetCompetitorsResponse.d.ts create mode 100644 dist/models/V1GetCompetitorsResponse.js create mode 100644 dist/models/V1GetDecompensationReportRequest.d.ts create mode 100644 dist/models/V1GetDecompensationReportRequest.js create mode 100644 dist/models/V1GetDeliveryMethodReturnSettingsV1Request.d.ts create mode 100644 dist/models/V1GetDeliveryMethodReturnSettingsV1Request.js create mode 100644 dist/models/V1GetDeliveryMethodReturnSettingsV1Response.d.ts create mode 100644 dist/models/V1GetDeliveryMethodReturnSettingsV1Response.js create mode 100644 dist/models/V1GetDiscountTaskListRequest.d.ts create mode 100644 dist/models/V1GetDiscountTaskListRequest.js create mode 100644 dist/models/V1GetDiscountTaskListResponse.d.ts create mode 100644 dist/models/V1GetDiscountTaskListResponse.js create mode 100644 dist/models/V1GetDiscountTaskListResponseTask.d.ts create mode 100644 dist/models/V1GetDiscountTaskListResponseTask.js create mode 100644 dist/models/V1GetEtgbRequest.d.ts create mode 100644 dist/models/V1GetEtgbRequest.js create mode 100644 dist/models/V1GetEtgbResponse.d.ts create mode 100644 dist/models/V1GetEtgbResponse.js create mode 100644 dist/models/V1GetFBSRatingIndexInfoV1Response.d.ts create mode 100644 dist/models/V1GetFBSRatingIndexInfoV1Response.js create mode 100644 dist/models/V1GetFinanceBalanceV1Request.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1Request.js create mode 100644 dist/models/V1GetFinanceBalanceV1Response.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1Response.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseAccruedMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseAccruedMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseFeeMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseFeeMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponsePartnerMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponsePartnerMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseReturnsMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseReturnsMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseRevenueMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseRevenueMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseSalesMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseSalesMoney.js create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseServicesMoney.d.ts create mode 100644 dist/models/V1GetFinanceBalanceV1ResponseServicesMoney.js create mode 100644 dist/models/V1GetFinanceProductsBuyoutRequest.d.ts create mode 100644 dist/models/V1GetFinanceProductsBuyoutRequest.js create mode 100644 dist/models/V1GetFinanceProductsBuyoutResponse.d.ts create mode 100644 dist/models/V1GetFinanceProductsBuyoutResponse.js create mode 100644 dist/models/V1GetLabelBatchRequest.d.ts create mode 100644 dist/models/V1GetLabelBatchRequest.js create mode 100644 dist/models/V1GetLabelBatchResponse.d.ts create mode 100644 dist/models/V1GetLabelBatchResponse.js create mode 100644 dist/models/V1GetLabelBatchResponseResult.d.ts create mode 100644 dist/models/V1GetLabelBatchResponseResult.js create mode 100644 dist/models/V1GetProductInfoDiscountedRequest.d.ts create mode 100644 dist/models/V1GetProductInfoDiscountedRequest.js create mode 100644 dist/models/V1GetProductInfoDiscountedResponse.d.ts create mode 100644 dist/models/V1GetProductInfoDiscountedResponse.js create mode 100644 dist/models/V1GetProductInfoDiscountedResponseItem.d.ts create mode 100644 dist/models/V1GetProductInfoDiscountedResponseItem.js create mode 100644 dist/models/V1GetProductInfoSubscriptionRequest.d.ts create mode 100644 dist/models/V1GetProductInfoSubscriptionRequest.js create mode 100644 dist/models/V1GetProductInfoSubscriptionResponse.d.ts create mode 100644 dist/models/V1GetProductInfoSubscriptionResponse.js create mode 100644 dist/models/V1GetProductInfoSubscriptionResponseResult.d.ts create mode 100644 dist/models/V1GetProductInfoSubscriptionResponseResult.js create mode 100644 dist/models/V1GetProductPlacementZoneInfoRequest.d.ts create mode 100644 dist/models/V1GetProductPlacementZoneInfoRequest.js create mode 100644 dist/models/V1GetProductPlacementZoneInfoResponse.d.ts create mode 100644 dist/models/V1GetProductPlacementZoneInfoResponse.js create mode 100644 dist/models/V1GetProductRatingBySkuRequest.d.ts create mode 100644 dist/models/V1GetProductRatingBySkuRequest.js create mode 100644 dist/models/V1GetProductRatingBySkuResponse.d.ts create mode 100644 dist/models/V1GetProductRatingBySkuResponse.js create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityRequest.d.ts create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityRequest.js create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityResponse.d.ts create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityResponse.js create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityResponseStairways.d.ts create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityResponseStairways.js create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.d.ts create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.js create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.d.ts create mode 100644 dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.js create mode 100644 dist/models/V1GetRealizationReportByDayRequest.d.ts create mode 100644 dist/models/V1GetRealizationReportByDayRequest.js create mode 100644 dist/models/V1GetRealizationReportPostingRequest.d.ts create mode 100644 dist/models/V1GetRealizationReportPostingRequest.js create mode 100644 dist/models/V1GetRealizationReportPostingResponse.d.ts create mode 100644 dist/models/V1GetRealizationReportPostingResponse.js create mode 100644 dist/models/V1GetRealizationReportPostingResponseRow.d.ts create mode 100644 dist/models/V1GetRealizationReportPostingResponseRow.js create mode 100644 dist/models/V1GetReceiptRequest.d.ts create mode 100644 dist/models/V1GetReceiptRequest.js create mode 100644 dist/models/V1GetReceiptResponse.d.ts create mode 100644 dist/models/V1GetReceiptResponse.js create mode 100644 dist/models/V1GetRestrictionsRequest.d.ts create mode 100644 dist/models/V1GetRestrictionsRequest.js create mode 100644 dist/models/V1GetRestrictionsResponse.d.ts create mode 100644 dist/models/V1GetRestrictionsResponse.js create mode 100644 dist/models/V1GetReturnsListRequest.d.ts create mode 100644 dist/models/V1GetReturnsListRequest.js create mode 100644 dist/models/V1GetReturnsListResponse.d.ts create mode 100644 dist/models/V1GetReturnsListResponse.js create mode 100644 dist/models/V1GetStrategyIDsByItemIDsResponse.d.ts create mode 100644 dist/models/V1GetStrategyIDsByItemIDsResponse.js create mode 100644 dist/models/V1GetStrategyIDsByItemIDsResponseResult.d.ts create mode 100644 dist/models/V1GetStrategyIDsByItemIDsResponseResult.js create mode 100644 dist/models/V1GetStrategyItemInfoRequest.d.ts create mode 100644 dist/models/V1GetStrategyItemInfoRequest.js create mode 100644 dist/models/V1GetStrategyItemInfoResponse.d.ts create mode 100644 dist/models/V1GetStrategyItemInfoResponse.js create mode 100644 dist/models/V1GetStrategyItemInfoResponseResult.d.ts create mode 100644 dist/models/V1GetStrategyItemInfoResponseResult.js create mode 100644 dist/models/V1GetStrategyItemsResponse.d.ts create mode 100644 dist/models/V1GetStrategyItemsResponse.js create mode 100644 dist/models/V1GetStrategyItemsResponseResult.d.ts create mode 100644 dist/models/V1GetStrategyItemsResponseResult.js create mode 100644 dist/models/V1GetStrategyListRequest.d.ts create mode 100644 dist/models/V1GetStrategyListRequest.js create mode 100644 dist/models/V1GetStrategyListResponse.d.ts create mode 100644 dist/models/V1GetStrategyListResponse.js create mode 100644 dist/models/V1GetStrategyResponse.d.ts create mode 100644 dist/models/V1GetStrategyResponse.js create mode 100644 dist/models/V1GetStrategyResponseResult.d.ts create mode 100644 dist/models/V1GetStrategyResponseResult.js create mode 100644 dist/models/V1GetSupplierReturnsSummaryReportRequest.d.ts create mode 100644 dist/models/V1GetSupplierReturnsSummaryReportRequest.js create mode 100644 dist/models/V1GetSupplierReturnsSummaryReportResponse.d.ts create mode 100644 dist/models/V1GetSupplierReturnsSummaryReportResponse.js create mode 100644 dist/models/V1GetSupplierReturnsSummaryReportResponseRow.d.ts create mode 100644 dist/models/V1GetSupplierReturnsSummaryReportResponseRow.js create mode 100644 dist/models/V1GetSupplyOrderBundleRequest.d.ts create mode 100644 dist/models/V1GetSupplyOrderBundleRequest.js create mode 100644 dist/models/V1GetSupplyOrderBundleResponse.d.ts create mode 100644 dist/models/V1GetSupplyOrderBundleResponse.js create mode 100644 dist/models/V1GetSupplyOrderTimeslotStatusRequest.d.ts create mode 100644 dist/models/V1GetSupplyOrderTimeslotStatusRequest.js create mode 100644 dist/models/V1GetSupplyOrderTimeslotStatusResponse.d.ts create mode 100644 dist/models/V1GetSupplyOrderTimeslotStatusResponse.js create mode 100644 dist/models/V1GetSupplyOrderTimeslotStatusResponseStatus.d.ts create mode 100644 dist/models/V1GetSupplyOrderTimeslotStatusResponseStatus.js create mode 100644 dist/models/V1GetSupplyOrderTimeslotsRequest.d.ts create mode 100644 dist/models/V1GetSupplyOrderTimeslotsRequest.js create mode 100644 dist/models/V1GetSupplyOrderTimeslotsResponse.d.ts create mode 100644 dist/models/V1GetSupplyOrderTimeslotsResponse.js create mode 100644 dist/models/V1GetSupplyReturnsSummaryReportRequest.d.ts create mode 100644 dist/models/V1GetSupplyReturnsSummaryReportRequest.js create mode 100644 dist/models/V1GetSupplyReturnsSummaryReportResponse.d.ts create mode 100644 dist/models/V1GetSupplyReturnsSummaryReportResponse.js create mode 100644 dist/models/V1GetSupplyReturnsSummaryReportResponseRow.d.ts create mode 100644 dist/models/V1GetSupplyReturnsSummaryReportResponseRow.js create mode 100644 dist/models/V1GetTreeRequest.d.ts create mode 100644 dist/models/V1GetTreeRequest.js create mode 100644 dist/models/V1GetTreeResponse.d.ts create mode 100644 dist/models/V1GetTreeResponse.js create mode 100644 dist/models/V1GetTreeResponseItem.d.ts create mode 100644 dist/models/V1GetTreeResponseItem.js create mode 100644 dist/models/V1GetWarehouseFBSOperationStatusRequest.d.ts create mode 100644 dist/models/V1GetWarehouseFBSOperationStatusRequest.js create mode 100644 dist/models/V1GetWarehouseFBSOperationStatusResponse.d.ts create mode 100644 dist/models/V1GetWarehouseFBSOperationStatusResponse.js create mode 100644 dist/models/V1GiveoutBarcodeResetResponse.d.ts create mode 100644 dist/models/V1GiveoutBarcodeResetResponse.js create mode 100644 dist/models/V1GiveoutGetBarcodeResponse.d.ts create mode 100644 dist/models/V1GiveoutGetBarcodeResponse.js create mode 100644 dist/models/V1GiveoutGetPDFResponse.d.ts create mode 100644 dist/models/V1GiveoutGetPDFResponse.js create mode 100644 dist/models/V1GiveoutGetPNGResponse.d.ts create mode 100644 dist/models/V1GiveoutGetPNGResponse.js create mode 100644 dist/models/V1GiveoutInfoRequest.d.ts create mode 100644 dist/models/V1GiveoutInfoRequest.js create mode 100644 dist/models/V1GiveoutInfoResponse.d.ts create mode 100644 dist/models/V1GiveoutInfoResponse.js create mode 100644 dist/models/V1GiveoutIsEnabledResponse.d.ts create mode 100644 dist/models/V1GiveoutIsEnabledResponse.js create mode 100644 dist/models/V1GiveoutListRequest.d.ts create mode 100644 dist/models/V1GiveoutListRequest.js create mode 100644 dist/models/V1GiveoutListResponse.d.ts create mode 100644 dist/models/V1GiveoutListResponse.js create mode 100644 dist/models/V1InvoiceDeleteRequest.d.ts create mode 100644 dist/models/V1InvoiceDeleteRequest.js create mode 100644 dist/models/V1InvoiceDeleteResponse.d.ts create mode 100644 dist/models/V1InvoiceDeleteResponse.js create mode 100644 dist/models/V1InvoiceFileUploadRequest.d.ts create mode 100644 dist/models/V1InvoiceFileUploadRequest.js create mode 100644 dist/models/V1InvoiceFileUploadResponse.d.ts create mode 100644 dist/models/V1InvoiceFileUploadResponse.js create mode 100644 dist/models/V1InvoiceGetRequest.d.ts create mode 100644 dist/models/V1InvoiceGetRequest.js create mode 100644 dist/models/V1ItemError.d.ts create mode 100644 dist/models/V1ItemError.js create mode 100644 dist/models/V1ItemIDsRequest.d.ts create mode 100644 dist/models/V1ItemIDsRequest.js create mode 100644 dist/models/V1ItemResponse.d.ts create mode 100644 dist/models/V1ItemResponse.js create mode 100644 dist/models/V1ItemSfboAttribute.d.ts create mode 100644 dist/models/V1ItemSfboAttribute.js create mode 100644 dist/models/V1ItemSortField.d.ts create mode 100644 dist/models/V1ItemSortField.js create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.d.ts create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.js create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.d.ts create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.js create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.d.ts create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.js create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.d.ts create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.js create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.d.ts create mode 100644 dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.js create mode 100644 dist/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.d.ts create mode 100644 dist/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.js create mode 100644 dist/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.d.ts create mode 100644 dist/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.js create mode 100644 dist/models/V1ListFBSRatingIndexPostingsV1Request.d.ts create mode 100644 dist/models/V1ListFBSRatingIndexPostingsV1Request.js create mode 100644 dist/models/V1ListFBSRatingIndexPostingsV1Response.d.ts create mode 100644 dist/models/V1ListFBSRatingIndexPostingsV1Response.js create mode 100644 dist/models/V1ListPostingCodesRequest.d.ts create mode 100644 dist/models/V1ListPostingCodesRequest.js create mode 100644 dist/models/V1ListPostingCodesResponse.d.ts create mode 100644 dist/models/V1ListPostingCodesResponse.js create mode 100644 dist/models/V1Money.d.ts create mode 100644 dist/models/V1Money.js create mode 100644 dist/models/V1OrderAttentionTypeEnum.d.ts create mode 100644 dist/models/V1OrderAttentionTypeEnum.js create mode 100644 dist/models/V1OrderCancelCheckRequest.d.ts create mode 100644 dist/models/V1OrderCancelCheckRequest.js create mode 100644 dist/models/V1OrderCancelCheckResponse.d.ts create mode 100644 dist/models/V1OrderCancelCheckResponse.js create mode 100644 dist/models/V1OrderCancelRequest.d.ts create mode 100644 dist/models/V1OrderCancelRequest.js create mode 100644 dist/models/V1OrderCancelResponse.d.ts create mode 100644 dist/models/V1OrderCancelResponse.js create mode 100644 dist/models/V1OrderCancelStatusRequest.d.ts create mode 100644 dist/models/V1OrderCancelStatusRequest.js create mode 100644 dist/models/V1OrderCancelStatusResponse.d.ts create mode 100644 dist/models/V1OrderCancelStatusResponse.js create mode 100644 dist/models/V1OrderCreateRequest.d.ts create mode 100644 dist/models/V1OrderCreateRequest.js create mode 100644 dist/models/V1OrderCreateResponse.d.ts create mode 100644 dist/models/V1OrderCreateResponse.js create mode 100644 dist/models/V1OrderDraftValidationError.d.ts create mode 100644 dist/models/V1OrderDraftValidationError.js create mode 100644 dist/models/V1OrderDraftValidationErrorErrorType.d.ts create mode 100644 dist/models/V1OrderDraftValidationErrorErrorType.js create mode 100644 dist/models/V1OrderErrorTypeEnum.d.ts create mode 100644 dist/models/V1OrderErrorTypeEnum.js create mode 100644 dist/models/V1OrderState.d.ts create mode 100644 dist/models/V1OrderState.js create mode 100644 dist/models/V1OrderStatusEnum.d.ts create mode 100644 dist/models/V1OrderStatusEnum.js create mode 100644 dist/models/V1OrderValidationError.d.ts create mode 100644 dist/models/V1OrderValidationError.js create mode 100644 dist/models/V1OrderValidationErrorErrorType.d.ts create mode 100644 dist/models/V1OrderValidationErrorErrorType.js create mode 100644 dist/models/V1PolygonDeleteRequest.d.ts create mode 100644 dist/models/V1PolygonDeleteRequest.js create mode 100644 dist/models/V1PolygonListRequest.d.ts create mode 100644 dist/models/V1PolygonListRequest.js create mode 100644 dist/models/V1PolygonListResponse.d.ts create mode 100644 dist/models/V1PolygonListResponse.js create mode 100644 dist/models/V1PolygonTimeCoordinatesUpdateRequest.d.ts create mode 100644 dist/models/V1PolygonTimeCoordinatesUpdateRequest.js create mode 100644 dist/models/V1PolygonTimeSetRequest.d.ts create mode 100644 dist/models/V1PolygonTimeSetRequest.js create mode 100644 dist/models/V1PostingCancelRequest.d.ts create mode 100644 dist/models/V1PostingCancelRequest.js create mode 100644 dist/models/V1PostingCancelResponse.d.ts create mode 100644 dist/models/V1PostingCancelResponse.js create mode 100644 dist/models/V1PostingCancelStatusRequest.d.ts create mode 100644 dist/models/V1PostingCancelStatusRequest.js create mode 100644 dist/models/V1PostingCancelStatusResponse.d.ts create mode 100644 dist/models/V1PostingCancelStatusResponse.js create mode 100644 dist/models/V1PostingFBSPickupCodeVerifyRequest.d.ts create mode 100644 dist/models/V1PostingFBSPickupCodeVerifyRequest.js create mode 100644 dist/models/V1PostingFBSPickupCodeVerifyResponse.d.ts create mode 100644 dist/models/V1PostingFBSPickupCodeVerifyResponse.js create mode 100644 dist/models/V1PostingFbsProductTraceableAttributeRequest.d.ts create mode 100644 dist/models/V1PostingFbsProductTraceableAttributeRequest.js create mode 100644 dist/models/V1PostingFbsProductTraceableAttributeResponse.d.ts create mode 100644 dist/models/V1PostingFbsProductTraceableAttributeResponse.js create mode 100644 dist/models/V1PostingFbsProductTraceableAttributeResponseProduct.d.ts create mode 100644 dist/models/V1PostingFbsProductTraceableAttributeResponseProduct.js create mode 100644 dist/models/V1PostingFbsSplitRequest.d.ts create mode 100644 dist/models/V1PostingFbsSplitRequest.js create mode 100644 dist/models/V1PostingFbsSplitRequestPosting.d.ts create mode 100644 dist/models/V1PostingFbsSplitRequestPosting.js create mode 100644 dist/models/V1PostingFbsSplitResponse.d.ts create mode 100644 dist/models/V1PostingFbsSplitResponse.js create mode 100644 dist/models/V1PostingFbsSplitResponsePosting.d.ts create mode 100644 dist/models/V1PostingFbsSplitResponsePosting.js create mode 100644 dist/models/V1PostingFbsSplitResponsePostingParent.d.ts create mode 100644 dist/models/V1PostingFbsSplitResponsePostingParent.js create mode 100644 dist/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.d.ts create mode 100644 dist/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.js create mode 100644 dist/models/V1PostingFbsTimeslotChangeRestrictionsRequest.d.ts create mode 100644 dist/models/V1PostingFbsTimeslotChangeRestrictionsRequest.js create mode 100644 dist/models/V1PostingFbsTimeslotChangeRestrictionsResponse.d.ts create mode 100644 dist/models/V1PostingFbsTimeslotChangeRestrictionsResponse.js create mode 100644 dist/models/V1PostingFbsTimeslotSetNewTimeslot.d.ts create mode 100644 dist/models/V1PostingFbsTimeslotSetNewTimeslot.js create mode 100644 dist/models/V1PostingFbsTimeslotSetRequest.d.ts create mode 100644 dist/models/V1PostingFbsTimeslotSetRequest.js create mode 100644 dist/models/V1PostingFbsTimeslotSetResponse.d.ts create mode 100644 dist/models/V1PostingFbsTimeslotSetResponse.js create mode 100644 dist/models/V1PostingFbsTraceableSplitRequest.d.ts create mode 100644 dist/models/V1PostingFbsTraceableSplitRequest.js create mode 100644 dist/models/V1PostingFbsTraceableSplitResponse.d.ts create mode 100644 dist/models/V1PostingFbsTraceableSplitResponse.js create mode 100644 dist/models/V1PostingFbsTraceableSplitResponsePosting.d.ts create mode 100644 dist/models/V1PostingFbsTraceableSplitResponsePosting.js create mode 100644 dist/models/V1PostingMarksRequest.d.ts create mode 100644 dist/models/V1PostingMarksRequest.js create mode 100644 dist/models/V1PostingMarksResponse.d.ts create mode 100644 dist/models/V1PostingMarksResponse.js create mode 100644 dist/models/V1PostingUnpaidLegalProductListRequest.d.ts create mode 100644 dist/models/V1PostingUnpaidLegalProductListRequest.js create mode 100644 dist/models/V1PostingUnpaidLegalProductListResponse.d.ts create mode 100644 dist/models/V1PostingUnpaidLegalProductListResponse.js create mode 100644 dist/models/V1PostingUnpaidLegalProductListResponseProducts.d.ts create mode 100644 dist/models/V1PostingUnpaidLegalProductListResponseProducts.js create mode 100644 dist/models/V1PremiumScores.d.ts create mode 100644 dist/models/V1PremiumScores.js create mode 100644 dist/models/V1ProductActionTimerStatusRequest.d.ts create mode 100644 dist/models/V1ProductActionTimerStatusRequest.js create mode 100644 dist/models/V1ProductActionTimerStatusResponse.d.ts create mode 100644 dist/models/V1ProductActionTimerStatusResponse.js create mode 100644 dist/models/V1ProductActionTimerStatusResponseStatuses.d.ts create mode 100644 dist/models/V1ProductActionTimerStatusResponseStatuses.js create mode 100644 dist/models/V1ProductActionTimerUpdateRequest.d.ts create mode 100644 dist/models/V1ProductActionTimerUpdateRequest.js create mode 100644 dist/models/V1ProductCertificateDeleteRequest.d.ts create mode 100644 dist/models/V1ProductCertificateDeleteRequest.js create mode 100644 dist/models/V1ProductCertificateDeleteResponse.d.ts create mode 100644 dist/models/V1ProductCertificateDeleteResponse.js create mode 100644 dist/models/V1ProductCertificateDeleteResponseResult.d.ts create mode 100644 dist/models/V1ProductCertificateDeleteResponseResult.js create mode 100644 dist/models/V1ProductCertificateInfoRequest.d.ts create mode 100644 dist/models/V1ProductCertificateInfoRequest.js create mode 100644 dist/models/V1ProductCertificateInfoResponse.d.ts create mode 100644 dist/models/V1ProductCertificateInfoResponse.js create mode 100644 dist/models/V1ProductCertificateListRequest.d.ts create mode 100644 dist/models/V1ProductCertificateListRequest.js create mode 100644 dist/models/V1ProductCertificateListResponse.d.ts create mode 100644 dist/models/V1ProductCertificateListResponse.js create mode 100644 dist/models/V1ProductCertificateListResponseResult.d.ts create mode 100644 dist/models/V1ProductCertificateListResponseResult.js create mode 100644 dist/models/V1ProductCertificateProductStatusListResponse.d.ts create mode 100644 dist/models/V1ProductCertificateProductStatusListResponse.js create mode 100644 dist/models/V1ProductCertificateProductsListRequest.d.ts create mode 100644 dist/models/V1ProductCertificateProductsListRequest.js create mode 100644 dist/models/V1ProductCertificateProductsListResponse.d.ts create mode 100644 dist/models/V1ProductCertificateProductsListResponse.js create mode 100644 dist/models/V1ProductCertificateProductsListResponseResult.d.ts create mode 100644 dist/models/V1ProductCertificateProductsListResponseResult.js create mode 100644 dist/models/V1ProductCertificateRejectionReasonsListResponse.d.ts create mode 100644 dist/models/V1ProductCertificateRejectionReasonsListResponse.js create mode 100644 dist/models/V1ProductCertificateStatusListResponse.d.ts create mode 100644 dist/models/V1ProductCertificateStatusListResponse.js create mode 100644 dist/models/V1ProductCertificateUnbindRequest.d.ts create mode 100644 dist/models/V1ProductCertificateUnbindRequest.js create mode 100644 dist/models/V1ProductCertificateUnbindResponse.d.ts create mode 100644 dist/models/V1ProductCertificateUnbindResponse.js create mode 100644 dist/models/V1ProductFbsSplit.d.ts create mode 100644 dist/models/V1ProductFbsSplit.js create mode 100644 dist/models/V1ProductGetRelatedSKURequest.d.ts create mode 100644 dist/models/V1ProductGetRelatedSKURequest.js create mode 100644 dist/models/V1ProductGetRelatedSKUResponse.d.ts create mode 100644 dist/models/V1ProductGetRelatedSKUResponse.js create mode 100644 dist/models/V1ProductGetRelatedSKUResponseError.d.ts create mode 100644 dist/models/V1ProductGetRelatedSKUResponseError.js create mode 100644 dist/models/V1ProductGetRelatedSKUResponseItem.d.ts create mode 100644 dist/models/V1ProductGetRelatedSKUResponseItem.js create mode 100644 dist/models/V1ProductInfoWarehouseStocksRequest.d.ts create mode 100644 dist/models/V1ProductInfoWarehouseStocksRequest.js create mode 100644 dist/models/V1ProductInfoWarehouseStocksResponse.d.ts create mode 100644 dist/models/V1ProductInfoWarehouseStocksResponse.js create mode 100644 dist/models/V1ProductInfoWrongVolumeRequest.d.ts create mode 100644 dist/models/V1ProductInfoWrongVolumeRequest.js create mode 100644 dist/models/V1ProductInfoWrongVolumeResponse.d.ts create mode 100644 dist/models/V1ProductInfoWrongVolumeResponse.js create mode 100644 dist/models/V1ProductPricesDetailsRequest.d.ts create mode 100644 dist/models/V1ProductPricesDetailsRequest.js create mode 100644 dist/models/V1ProductPricesDetailsResponse.d.ts create mode 100644 dist/models/V1ProductPricesDetailsResponse.js create mode 100644 dist/models/V1ProductPricesDetailsResponsePrice.d.ts create mode 100644 dist/models/V1ProductPricesDetailsResponsePrice.js create mode 100644 dist/models/V1ProductUpdateAttributesRequest.d.ts create mode 100644 dist/models/V1ProductUpdateAttributesRequest.js create mode 100644 dist/models/V1ProductUpdateAttributesRequestAttribute.d.ts create mode 100644 dist/models/V1ProductUpdateAttributesRequestAttribute.js create mode 100644 dist/models/V1ProductUpdateAttributesRequestItem.d.ts create mode 100644 dist/models/V1ProductUpdateAttributesRequestItem.js create mode 100644 dist/models/V1ProductUpdateAttributesRequestValue.d.ts create mode 100644 dist/models/V1ProductUpdateAttributesRequestValue.js create mode 100644 dist/models/V1ProductUpdateAttributesResponse.d.ts create mode 100644 dist/models/V1ProductUpdateAttributesResponse.js create mode 100644 dist/models/V1ProductUpdateDiscountRequest.d.ts create mode 100644 dist/models/V1ProductUpdateDiscountRequest.js create mode 100644 dist/models/V1ProductUpdateDiscountResponse.d.ts create mode 100644 dist/models/V1ProductUpdateDiscountResponse.js create mode 100644 dist/models/V1ProductUpdateOfferIdRequest.d.ts create mode 100644 dist/models/V1ProductUpdateOfferIdRequest.js create mode 100644 dist/models/V1ProductUpdateOfferIdResponse.d.ts create mode 100644 dist/models/V1ProductUpdateOfferIdResponse.js create mode 100644 dist/models/V1ProductUpdateOfferIdResponseError.d.ts create mode 100644 dist/models/V1ProductUpdateOfferIdResponseError.js create mode 100644 dist/models/V1QuestionAnswerCreateDefault.d.ts create mode 100644 dist/models/V1QuestionAnswerCreateDefault.js create mode 100644 dist/models/V1QuestionAnswerCreateRequest.d.ts create mode 100644 dist/models/V1QuestionAnswerCreateRequest.js create mode 100644 dist/models/V1QuestionAnswerCreateResponse.d.ts create mode 100644 dist/models/V1QuestionAnswerCreateResponse.js create mode 100644 dist/models/V1QuestionAnswerDeleteRequest.d.ts create mode 100644 dist/models/V1QuestionAnswerDeleteRequest.js create mode 100644 dist/models/V1QuestionAnswerListRequest.d.ts create mode 100644 dist/models/V1QuestionAnswerListRequest.js create mode 100644 dist/models/V1QuestionAnswerListResponse.d.ts create mode 100644 dist/models/V1QuestionAnswerListResponse.js create mode 100644 dist/models/V1QuestionAnswerListResponseAnswers.d.ts create mode 100644 dist/models/V1QuestionAnswerListResponseAnswers.js create mode 100644 dist/models/V1QuestionChangeStatusRequest.d.ts create mode 100644 dist/models/V1QuestionChangeStatusRequest.js create mode 100644 dist/models/V1QuestionCountResponse.d.ts create mode 100644 dist/models/V1QuestionCountResponse.js create mode 100644 dist/models/V1QuestionInfoRequest.d.ts create mode 100644 dist/models/V1QuestionInfoRequest.js create mode 100644 dist/models/V1QuestionInfoResponse.d.ts create mode 100644 dist/models/V1QuestionInfoResponse.js create mode 100644 dist/models/V1QuestionListRequest.d.ts create mode 100644 dist/models/V1QuestionListRequest.js create mode 100644 dist/models/V1QuestionListRequestFilter.d.ts create mode 100644 dist/models/V1QuestionListRequestFilter.js create mode 100644 dist/models/V1QuestionListResponse.d.ts create mode 100644 dist/models/V1QuestionListResponse.js create mode 100644 dist/models/V1QuestionListResponseQuestions.d.ts create mode 100644 dist/models/V1QuestionListResponseQuestions.js create mode 100644 dist/models/V1QuestionTopSkuRequest.d.ts create mode 100644 dist/models/V1QuestionTopSkuRequest.js create mode 100644 dist/models/V1QuestionTopSkuResponse.d.ts create mode 100644 dist/models/V1QuestionTopSkuResponse.js create mode 100644 dist/models/V1Rating.d.ts create mode 100644 dist/models/V1Rating.js create mode 100644 dist/models/V1RatingHistoryV1Request.d.ts create mode 100644 dist/models/V1RatingHistoryV1Request.js create mode 100644 dist/models/V1RatingHistoryV1Response.d.ts create mode 100644 dist/models/V1RatingHistoryV1Response.js create mode 100644 dist/models/V1RatingItem.d.ts create mode 100644 dist/models/V1RatingItem.js create mode 100644 dist/models/V1RatingStatus.d.ts create mode 100644 dist/models/V1RatingStatus.js create mode 100644 dist/models/V1RatingSummaryV1Response.d.ts create mode 100644 dist/models/V1RatingSummaryV1Response.js create mode 100644 dist/models/V1ReceiptsSellerListRequest.d.ts create mode 100644 dist/models/V1ReceiptsSellerListRequest.js create mode 100644 dist/models/V1ReceiptsSellerListResponse.d.ts create mode 100644 dist/models/V1ReceiptsSellerListResponse.js create mode 100644 dist/models/V1ReportMarkedProductsSalesCreateRequest.d.ts create mode 100644 dist/models/V1ReportMarkedProductsSalesCreateRequest.js create mode 100644 dist/models/V1Restriction.d.ts create mode 100644 dist/models/V1Restriction.js create mode 100644 dist/models/V1ReturnsCompanyFbsInfoRequest.d.ts create mode 100644 dist/models/V1ReturnsCompanyFbsInfoRequest.js create mode 100644 dist/models/V1ReturnsCompanyFbsInfoRequestFilter.d.ts create mode 100644 dist/models/V1ReturnsCompanyFbsInfoRequestFilter.js create mode 100644 dist/models/V1ReturnsCompanyFbsInfoResponse.d.ts create mode 100644 dist/models/V1ReturnsCompanyFbsInfoResponse.js create mode 100644 dist/models/V1ReturnsRfbsActionSetRequest.d.ts create mode 100644 dist/models/V1ReturnsRfbsActionSetRequest.js create mode 100644 dist/models/V1ReturnsSettingsUtilizationHistoryResponse.d.ts create mode 100644 dist/models/V1ReturnsSettingsUtilizationHistoryResponse.js create mode 100644 dist/models/V1ReturnsSettingsUtilizationInfoResponse.d.ts create mode 100644 dist/models/V1ReturnsSettingsUtilizationInfoResponse.js create mode 100644 dist/models/V1ReturnsSettingsUtilizationUpdateRequest.d.ts create mode 100644 dist/models/V1ReturnsSettingsUtilizationUpdateRequest.js create mode 100644 dist/models/V1ReviewChangeStatusRequest.d.ts create mode 100644 dist/models/V1ReviewChangeStatusRequest.js create mode 100644 dist/models/V1ReviewCountResponse.d.ts create mode 100644 dist/models/V1ReviewCountResponse.js create mode 100644 dist/models/V1ReviewInfoRequest.d.ts create mode 100644 dist/models/V1ReviewInfoRequest.js create mode 100644 dist/models/V1ReviewInfoResponse.d.ts create mode 100644 dist/models/V1ReviewInfoResponse.js create mode 100644 dist/models/V1ReviewListRequest.d.ts create mode 100644 dist/models/V1ReviewListRequest.js create mode 100644 dist/models/V1ReviewListResponse.d.ts create mode 100644 dist/models/V1ReviewListResponse.js create mode 100644 dist/models/V1RolesByTokenResponse.d.ts create mode 100644 dist/models/V1RolesByTokenResponse.js create mode 100644 dist/models/V1SearchAttributeValuesRequest.d.ts create mode 100644 dist/models/V1SearchAttributeValuesRequest.js create mode 100644 dist/models/V1SearchAttributeValuesResponse.d.ts create mode 100644 dist/models/V1SearchAttributeValuesResponse.js create mode 100644 dist/models/V1SearchQueriesTextRequest.d.ts create mode 100644 dist/models/V1SearchQueriesTextRequest.js create mode 100644 dist/models/V1SearchQueriesTextResponse.d.ts create mode 100644 dist/models/V1SearchQueriesTextResponse.js create mode 100644 dist/models/V1SearchQueriesTextResponseSearchQuery.d.ts create mode 100644 dist/models/V1SearchQueriesTextResponseSearchQuery.js create mode 100644 dist/models/V1SearchQueriesTopRequest.d.ts create mode 100644 dist/models/V1SearchQueriesTopRequest.js create mode 100644 dist/models/V1SearchQueriesTopResponse.d.ts create mode 100644 dist/models/V1SearchQueriesTopResponse.js create mode 100644 dist/models/V1SearchQueriesTopResponseSearchQuery.d.ts create mode 100644 dist/models/V1SearchQueriesTopResponseSearchQuery.js create mode 100644 dist/models/V1SellerActionsArchiveRequest.d.ts create mode 100644 dist/models/V1SellerActionsArchiveRequest.js create mode 100644 dist/models/V1SellerActionsChangeActivityRequest.d.ts create mode 100644 dist/models/V1SellerActionsChangeActivityRequest.js create mode 100644 dist/models/V1SellerActionsCreateDiscountRequest.d.ts create mode 100644 dist/models/V1SellerActionsCreateDiscountRequest.js create mode 100644 dist/models/V1SellerActionsCreateDiscountResponse.d.ts create mode 100644 dist/models/V1SellerActionsCreateDiscountResponse.js create mode 100644 dist/models/V1SellerActionsCreateDiscountWithConditionRequest.d.ts create mode 100644 dist/models/V1SellerActionsCreateDiscountWithConditionRequest.js create mode 100644 dist/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.d.ts create mode 100644 dist/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.js create mode 100644 dist/models/V1SellerActionsCreateDiscountWithConditionResponse.d.ts create mode 100644 dist/models/V1SellerActionsCreateDiscountWithConditionResponse.js create mode 100644 dist/models/V1SellerActionsCreateInstallmentRequest.d.ts create mode 100644 dist/models/V1SellerActionsCreateInstallmentRequest.js create mode 100644 dist/models/V1SellerActionsCreateInstallmentResponse.d.ts create mode 100644 dist/models/V1SellerActionsCreateInstallmentResponse.js create mode 100644 dist/models/V1SellerActionsCreateMultiLevelDiscountRequest.d.ts create mode 100644 dist/models/V1SellerActionsCreateMultiLevelDiscountRequest.js create mode 100644 dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.d.ts create mode 100644 dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.js create mode 100644 dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.d.ts create mode 100644 dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.js create mode 100644 dist/models/V1SellerActionsCreateMultiLevelDiscountResponse.d.ts create mode 100644 dist/models/V1SellerActionsCreateMultiLevelDiscountResponse.js create mode 100644 dist/models/V1SellerActionsCreateVoucherRequest.d.ts create mode 100644 dist/models/V1SellerActionsCreateVoucherRequest.js create mode 100644 dist/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.d.ts create mode 100644 dist/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.js create mode 100644 dist/models/V1SellerActionsCreateVoucherRequestVoucherParameter.d.ts create mode 100644 dist/models/V1SellerActionsCreateVoucherRequestVoucherParameter.js create mode 100644 dist/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.d.ts create mode 100644 dist/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.js create mode 100644 dist/models/V1SellerActionsCreateVoucherResponse.d.ts create mode 100644 dist/models/V1SellerActionsCreateVoucherResponse.js create mode 100644 dist/models/V1SellerActionsListRequest.d.ts create mode 100644 dist/models/V1SellerActionsListRequest.js create mode 100644 dist/models/V1SellerActionsListResponse.d.ts create mode 100644 dist/models/V1SellerActionsListResponse.js create mode 100644 dist/models/V1SellerActionsProductsAddRequest.d.ts create mode 100644 dist/models/V1SellerActionsProductsAddRequest.js create mode 100644 dist/models/V1SellerActionsProductsAddRequestProduct.d.ts create mode 100644 dist/models/V1SellerActionsProductsAddRequestProduct.js create mode 100644 dist/models/V1SellerActionsProductsCandidatesRequest.d.ts create mode 100644 dist/models/V1SellerActionsProductsCandidatesRequest.js create mode 100644 dist/models/V1SellerActionsProductsCandidatesResponse.d.ts create mode 100644 dist/models/V1SellerActionsProductsCandidatesResponse.js create mode 100644 dist/models/V1SellerActionsProductsCandidatesResponseProduct.d.ts create mode 100644 dist/models/V1SellerActionsProductsCandidatesResponseProduct.js create mode 100644 dist/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.d.ts create mode 100644 dist/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.js create mode 100644 dist/models/V1SellerActionsProductsDeleteRequest.d.ts create mode 100644 dist/models/V1SellerActionsProductsDeleteRequest.js create mode 100644 dist/models/V1SellerActionsProductsListRequest.d.ts create mode 100644 dist/models/V1SellerActionsProductsListRequest.js create mode 100644 dist/models/V1SellerActionsProductsListResponse.d.ts create mode 100644 dist/models/V1SellerActionsProductsListResponse.js create mode 100644 dist/models/V1SellerActionsProductsListResponseProduct.d.ts create mode 100644 dist/models/V1SellerActionsProductsListResponseProduct.js create mode 100644 dist/models/V1SellerActionsUpdateDiscountRequest.d.ts create mode 100644 dist/models/V1SellerActionsUpdateDiscountRequest.js create mode 100644 dist/models/V1SellerActionsUpdateDiscountRequestActionParameters.d.ts create mode 100644 dist/models/V1SellerActionsUpdateDiscountRequestActionParameters.js create mode 100644 dist/models/V1SellerActionsUpdateDiscountWithConditionRequest.d.ts create mode 100644 dist/models/V1SellerActionsUpdateDiscountWithConditionRequest.js create mode 100644 dist/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.d.ts create mode 100644 dist/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.js create mode 100644 dist/models/V1SellerActionsUpdateInstallmentRequest.d.ts create mode 100644 dist/models/V1SellerActionsUpdateInstallmentRequest.js create mode 100644 dist/models/V1SellerActionsUpdateInstallmentRequestActionParameters.d.ts create mode 100644 dist/models/V1SellerActionsUpdateInstallmentRequestActionParameters.js create mode 100644 dist/models/V1SellerActionsUpdateMultiLevelDiscountRequest.d.ts create mode 100644 dist/models/V1SellerActionsUpdateMultiLevelDiscountRequest.js create mode 100644 dist/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.d.ts create mode 100644 dist/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.js create mode 100644 dist/models/V1SellerActionsUpdateVoucherRequest.d.ts create mode 100644 dist/models/V1SellerActionsUpdateVoucherRequest.js create mode 100644 dist/models/V1SellerActionsUpdateVoucherRequestActionParameters.d.ts create mode 100644 dist/models/V1SellerActionsUpdateVoucherRequestActionParameters.js create mode 100644 dist/models/V1SellerActionsVoucherGetRequest.d.ts create mode 100644 dist/models/V1SellerActionsVoucherGetRequest.js create mode 100644 dist/models/V1SellerActionsVoucherGetResponse.d.ts create mode 100644 dist/models/V1SellerActionsVoucherGetResponse.js create mode 100644 dist/models/V1SellerInfoResponse.d.ts create mode 100644 dist/models/V1SellerInfoResponse.js create mode 100644 dist/models/V1SellerOzonLogisticsInfoResponse.d.ts create mode 100644 dist/models/V1SellerOzonLogisticsInfoResponse.js create mode 100644 dist/models/V1SetPostingCutoffRequest.d.ts create mode 100644 dist/models/V1SetPostingCutoffRequest.js create mode 100644 dist/models/V1SetPostingCutoffResponse.d.ts create mode 100644 dist/models/V1SetPostingCutoffResponse.js create mode 100644 dist/models/V1SetPostingsRequest.d.ts create mode 100644 dist/models/V1SetPostingsRequest.js create mode 100644 dist/models/V1SetPostingsResponse.d.ts create mode 100644 dist/models/V1SetPostingsResponse.js create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityRequest.d.ts create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityRequest.js create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityRequestStairways.d.ts create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityRequestStairways.js create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.d.ts create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.js create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.d.ts create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.js create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityResponse.d.ts create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityResponse.js create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityResponseError.d.ts create mode 100644 dist/models/V1SetProductStairwayDiscountByQuantityResponseError.js create mode 100644 dist/models/V1SetVehicleError.d.ts create mode 100644 dist/models/V1SetVehicleError.js create mode 100644 dist/models/V1StatusCodeNamePair.d.ts create mode 100644 dist/models/V1StatusCodeNamePair.js create mode 100644 dist/models/V1StatusCodeNamePairRejection.d.ts create mode 100644 dist/models/V1StatusCodeNamePairRejection.js create mode 100644 dist/models/V1StatusCodeNamePairStatuses.d.ts create mode 100644 dist/models/V1StatusCodeNamePairStatuses.js create mode 100644 dist/models/V1StocksImportRequest.d.ts create mode 100644 dist/models/V1StocksImportRequest.js create mode 100644 dist/models/V1StocksImportResponse.d.ts create mode 100644 dist/models/V1StocksImportResponse.js create mode 100644 dist/models/V1StrategyRequest.d.ts create mode 100644 dist/models/V1StrategyRequest.js create mode 100644 dist/models/V1SupplierAvailableWarehousesResponse.d.ts create mode 100644 dist/models/V1SupplierAvailableWarehousesResponse.js create mode 100644 dist/models/V1SupplyOrderCancelRequest.d.ts create mode 100644 dist/models/V1SupplyOrderCancelRequest.js create mode 100644 dist/models/V1SupplyOrderCancelResponse.d.ts create mode 100644 dist/models/V1SupplyOrderCancelResponse.js create mode 100644 dist/models/V1SupplyOrderCancelStatusRequest.d.ts create mode 100644 dist/models/V1SupplyOrderCancelStatusRequest.js create mode 100644 dist/models/V1SupplyOrderCancelStatusResponse.d.ts create mode 100644 dist/models/V1SupplyOrderCancelStatusResponse.js create mode 100644 dist/models/V1SupplyOrderCancelStatusResponseStatus.d.ts create mode 100644 dist/models/V1SupplyOrderCancelStatusResponseStatus.js create mode 100644 dist/models/V1SupplyOrderContentUpdateRequest.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateRequest.js create mode 100644 dist/models/V1SupplyOrderContentUpdateRequestItem.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateRequestItem.js create mode 100644 dist/models/V1SupplyOrderContentUpdateResponse.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateResponse.js create mode 100644 dist/models/V1SupplyOrderContentUpdateResponseErrorEnum.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateResponseErrorEnum.js create mode 100644 dist/models/V1SupplyOrderContentUpdateStatusRequest.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateStatusRequest.js create mode 100644 dist/models/V1SupplyOrderContentUpdateStatusResponse.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateStatusResponse.js create mode 100644 dist/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.js create mode 100644 dist/models/V1SupplyOrderContentUpdateValidationRequest.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateValidationRequest.js create mode 100644 dist/models/V1SupplyOrderContentUpdateValidationResponse.d.ts create mode 100644 dist/models/V1SupplyOrderContentUpdateValidationResponse.js create mode 100644 dist/models/V1SupplyOrderDetailsRequest.d.ts create mode 100644 dist/models/V1SupplyOrderDetailsRequest.js create mode 100644 dist/models/V1SupplyOrderDetailsResponse.d.ts create mode 100644 dist/models/V1SupplyOrderDetailsResponse.js create mode 100644 dist/models/V1SupplyOrderDetailsResponseTimeslot.d.ts create mode 100644 dist/models/V1SupplyOrderDetailsResponseTimeslot.js create mode 100644 dist/models/V1SupplyOrderPassCreateRequest.d.ts create mode 100644 dist/models/V1SupplyOrderPassCreateRequest.js create mode 100644 dist/models/V1SupplyOrderPassCreateResponse.d.ts create mode 100644 dist/models/V1SupplyOrderPassCreateResponse.js create mode 100644 dist/models/V1SupplyOrderPassStatusRequest.d.ts create mode 100644 dist/models/V1SupplyOrderPassStatusRequest.js create mode 100644 dist/models/V1SupplyOrderPassStatusResponse.d.ts create mode 100644 dist/models/V1SupplyOrderPassStatusResponse.js create mode 100644 dist/models/V1SupplyOrderPassStatusResponseStatus.d.ts create mode 100644 dist/models/V1SupplyOrderPassStatusResponseStatus.js create mode 100644 dist/models/V1SupplyOrderStatusCounterResponse.d.ts create mode 100644 dist/models/V1SupplyOrderStatusCounterResponse.js create mode 100644 dist/models/V1SupplyOrderStatusCounterResponseItem.d.ts create mode 100644 dist/models/V1SupplyOrderStatusCounterResponseItem.js create mode 100644 dist/models/V1SupplyOrderTimeslot.d.ts create mode 100644 dist/models/V1SupplyOrderTimeslot.js create mode 100644 dist/models/V1TimeRangeReturnDate.d.ts create mode 100644 dist/models/V1TimeRangeReturnDate.js create mode 100644 dist/models/V1TimeRangeStorageTariffication.d.ts create mode 100644 dist/models/V1TimeRangeStorageTariffication.js create mode 100644 dist/models/V1TimeRangeVisualStatus.d.ts create mode 100644 dist/models/V1TimeRangeVisualStatus.js create mode 100644 dist/models/V1Timezone.d.ts create mode 100644 dist/models/V1Timezone.js create mode 100644 dist/models/V1UnarchiveWarehouseFBSRequest.d.ts create mode 100644 dist/models/V1UnarchiveWarehouseFBSRequest.js create mode 100644 dist/models/V1UnarchiveWarehouseFBSResponse.d.ts create mode 100644 dist/models/V1UnarchiveWarehouseFBSResponse.js create mode 100644 dist/models/V1UpdatePricingStrategyRequest.d.ts create mode 100644 dist/models/V1UpdatePricingStrategyRequest.js create mode 100644 dist/models/V1UpdateStatusStrategyRequest.d.ts create mode 100644 dist/models/V1UpdateStatusStrategyRequest.js create mode 100644 dist/models/V1UpdateSupplyOrderTimeslotRequest.d.ts create mode 100644 dist/models/V1UpdateSupplyOrderTimeslotRequest.js create mode 100644 dist/models/V1UpdateSupplyOrderTimeslotResponse.d.ts create mode 100644 dist/models/V1UpdateSupplyOrderTimeslotResponse.js create mode 100644 dist/models/V1UpdateTimeslotError.d.ts create mode 100644 dist/models/V1UpdateTimeslotError.js create mode 100644 dist/models/V1UpdateWarehouseFBSFirstMileRequest.d.ts create mode 100644 dist/models/V1UpdateWarehouseFBSFirstMileRequest.js create mode 100644 dist/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.d.ts create mode 100644 dist/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.js create mode 100644 dist/models/V1UpdateWarehouseFBSFirstMileResponse.d.ts create mode 100644 dist/models/V1UpdateWarehouseFBSFirstMileResponse.js create mode 100644 dist/models/V1UpdateWarehouseFBSRequest.d.ts create mode 100644 dist/models/V1UpdateWarehouseFBSRequest.js create mode 100644 dist/models/V1UpdateWarehouseFBSRequestAddressCoordinates.d.ts create mode 100644 dist/models/V1UpdateWarehouseFBSRequestAddressCoordinates.js create mode 100644 dist/models/V1UpdateWarehouseFBSRequestOptions.d.ts create mode 100644 dist/models/V1UpdateWarehouseFBSRequestOptions.js create mode 100644 dist/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.d.ts create mode 100644 dist/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.js create mode 100644 dist/models/V1UpdateWarehouseFBSResponse.d.ts create mode 100644 dist/models/V1UpdateWarehouseFBSResponse.js create mode 100644 dist/models/V1UploadPostingCodesRequest.d.ts create mode 100644 dist/models/V1UploadPostingCodesRequest.js create mode 100644 dist/models/V1UploadPostingCodesResponse.d.ts create mode 100644 dist/models/V1UploadPostingCodesResponse.js create mode 100644 dist/models/V1UploadReceiptRequestTypeEnum.d.ts create mode 100644 dist/models/V1UploadReceiptRequestTypeEnum.js create mode 100644 dist/models/V1UploadReceiptResponse.d.ts create mode 100644 dist/models/V1UploadReceiptResponse.js create mode 100644 dist/models/V1VehicleInfo.d.ts create mode 100644 dist/models/V1VehicleInfo.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequest.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequest.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateResponse.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorCreateResponse.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.d.ts create mode 100644 dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequest.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequest.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateResponse.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedCreateResponse.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.d.ts create mode 100644 dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.js create mode 100644 dist/models/V1WarehouseERFBSUpdateRequest.d.ts create mode 100644 dist/models/V1WarehouseERFBSUpdateRequest.js create mode 100644 dist/models/V1WarehouseERFBSUpdateRequestHolidays.d.ts create mode 100644 dist/models/V1WarehouseERFBSUpdateRequestHolidays.js create mode 100644 dist/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.d.ts create mode 100644 dist/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.js create mode 100644 dist/models/V1WarehouseERFBSUpdateRequestWorkingDays.d.ts create mode 100644 dist/models/V1WarehouseERFBSUpdateRequestWorkingDays.js create mode 100644 dist/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.d.ts create mode 100644 dist/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.js create mode 100644 dist/models/V1WarehouseERFBSUpdateResponse.d.ts create mode 100644 dist/models/V1WarehouseERFBSUpdateResponse.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListRequest.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListRequest.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListRequestSearch.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListRequestSearch.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponse.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponse.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.js create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.d.ts create mode 100644 dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.js create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoRequest.d.ts create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoRequest.js create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponse.d.ts create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponse.js create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.d.ts create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.js create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.d.ts create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.js create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.d.ts create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.js create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.d.ts create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.js create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.d.ts create mode 100644 dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListRequest.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListRequest.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponse.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponse.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.js create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.d.ts create mode 100644 dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.js create mode 100644 dist/models/V1WarehouseFboSellerListResponse.d.ts create mode 100644 dist/models/V1WarehouseFboSellerListResponse.js create mode 100644 dist/models/V1WarehouseFboSellerListResponseWarehouse.d.ts create mode 100644 dist/models/V1WarehouseFboSellerListResponseWarehouse.js create mode 100644 dist/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.d.ts create mode 100644 dist/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.js create mode 100644 dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.d.ts create mode 100644 dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.js create mode 100644 dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.d.ts create mode 100644 dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.js create mode 100644 dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.d.ts create mode 100644 dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.js create mode 100644 dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.d.ts create mode 100644 dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.js create mode 100644 dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.d.ts create mode 100644 dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.js create mode 100644 dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.d.ts create mode 100644 dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.js create mode 100644 dist/models/V1WarehouseFbsPickUpCourierCancelRequest.d.ts create mode 100644 dist/models/V1WarehouseFbsPickUpCourierCancelRequest.js create mode 100644 dist/models/V1WarehouseFbsPickUpCourierCreateRequest.d.ts create mode 100644 dist/models/V1WarehouseFbsPickUpCourierCreateRequest.js create mode 100644 dist/models/V1WarehouseFbsPickUpHistoryListRequest.d.ts create mode 100644 dist/models/V1WarehouseFbsPickUpHistoryListRequest.js create mode 100644 dist/models/V1WarehouseFbsPickUpHistoryListRequestFilter.d.ts create mode 100644 dist/models/V1WarehouseFbsPickUpHistoryListRequestFilter.js create mode 100644 dist/models/V1WarehouseFbsPickUpHistoryListResponse.d.ts create mode 100644 dist/models/V1WarehouseFbsPickUpHistoryListResponse.js create mode 100644 dist/models/V1WarehouseFbsPickUpHistoryListResponseResult.d.ts create mode 100644 dist/models/V1WarehouseFbsPickUpHistoryListResponseResult.js create mode 100644 dist/models/V1WarehouseFbsPickUpPlanningListResponse.d.ts create mode 100644 dist/models/V1WarehouseFbsPickUpPlanningListResponse.js create mode 100644 dist/models/V1WarehouseFbsPickUpPlanningListResponseResult.d.ts create mode 100644 dist/models/V1WarehouseFbsPickUpPlanningListResponseResult.js create mode 100644 dist/models/V1WarehouseFbsReturnMileCheckRequest.d.ts create mode 100644 dist/models/V1WarehouseFbsReturnMileCheckRequest.js create mode 100644 dist/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.d.ts create mode 100644 dist/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.js create mode 100644 dist/models/V1WarehouseFbsReturnMileCheckResponse.d.ts create mode 100644 dist/models/V1WarehouseFbsReturnMileCheckResponse.js create mode 100644 dist/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.d.ts create mode 100644 dist/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.js create mode 100644 dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.d.ts create mode 100644 dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.js create mode 100644 dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.d.ts create mode 100644 dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.js create mode 100644 dist/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.d.ts create mode 100644 dist/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.js create mode 100644 dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.d.ts create mode 100644 dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.js create mode 100644 dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.d.ts create mode 100644 dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.js create mode 100644 dist/models/V1WarehouseInvalidProductsGetRequest.d.ts create mode 100644 dist/models/V1WarehouseInvalidProductsGetRequest.js create mode 100644 dist/models/V1WarehouseInvalidProductsGetResponse.d.ts create mode 100644 dist/models/V1WarehouseInvalidProductsGetResponse.js create mode 100644 dist/models/V1WarehouseListRequest.d.ts create mode 100644 dist/models/V1WarehouseListRequest.js create mode 100644 dist/models/V1WarehouseListRequestWith.d.ts create mode 100644 dist/models/V1WarehouseListRequestWith.js create mode 100644 dist/models/V1WarehouseOZONListRequest.d.ts create mode 100644 dist/models/V1WarehouseOZONListRequest.js create mode 100644 dist/models/V1WarehouseOZONListRequestWarehouseTypeEnum.d.ts create mode 100644 dist/models/V1WarehouseOZONListRequestWarehouseTypeEnum.js create mode 100644 dist/models/V1WarehouseOZONListResponse.d.ts create mode 100644 dist/models/V1WarehouseOZONListResponse.js create mode 100644 dist/models/V1WarehouseOZONListResponseWarehouse.d.ts create mode 100644 dist/models/V1WarehouseOZONListResponseWarehouse.js create mode 100644 dist/models/V1WarehouseWithInvalidProductsResponse.d.ts create mode 100644 dist/models/V1WarehouseWithInvalidProductsResponse.js create mode 100644 dist/models/V1fbpDeliveryDetails.d.ts create mode 100644 dist/models/V1fbpDeliveryDetails.js create mode 100644 dist/models/V1fbpTimeslot.d.ts create mode 100644 dist/models/V1fbpTimeslot.js create mode 100644 dist/models/V2AdditionalDataItem.d.ts create mode 100644 dist/models/V2AdditionalDataItem.js create mode 100644 dist/models/V2CancellationInitiatorEnum.d.ts create mode 100644 dist/models/V2CancellationInitiatorEnum.js create mode 100644 dist/models/V2CancellationStateEnum.d.ts create mode 100644 dist/models/V2CancellationStateEnum.js create mode 100644 dist/models/V2CancellationStateEnumFilters.d.ts create mode 100644 dist/models/V2CancellationStateEnumFilters.js create mode 100644 dist/models/V2CargoesCreateErrors.d.ts create mode 100644 dist/models/V2CargoesCreateErrors.js create mode 100644 dist/models/V2CargoesCreateInfoV2Request.d.ts create mode 100644 dist/models/V2CargoesCreateInfoV2Request.js create mode 100644 dist/models/V2CargoesCreateInfoV2Response.d.ts create mode 100644 dist/models/V2CargoesCreateInfoV2Response.js create mode 100644 dist/models/V2CarriageDeliveryListV2Request.d.ts create mode 100644 dist/models/V2CarriageDeliveryListV2Request.js create mode 100644 dist/models/V2CarriageDeliveryListV2Response.d.ts create mode 100644 dist/models/V2CarriageDeliveryListV2Response.js create mode 100644 dist/models/V2ChatReadResponse.d.ts create mode 100644 dist/models/V2ChatReadResponse.js create mode 100644 dist/models/V2ConditionalCancellationMoveV2Request.d.ts create mode 100644 dist/models/V2ConditionalCancellationMoveV2Request.js create mode 100644 dist/models/V2CreateLabelBatchResponse.d.ts create mode 100644 dist/models/V2CreateLabelBatchResponse.js create mode 100644 dist/models/V2CreateLabelBatchResponseResult.d.ts create mode 100644 dist/models/V2CreateLabelBatchResponseResult.js create mode 100644 dist/models/V2CreateLabelBatchResponseResultTasks.d.ts create mode 100644 dist/models/V2CreateLabelBatchResponseResultTasks.js create mode 100644 dist/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.d.ts create mode 100644 dist/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.js create mode 100644 dist/models/V2DeliveryMethodListV2Request.d.ts create mode 100644 dist/models/V2DeliveryMethodListV2Request.js create mode 100644 dist/models/V2DeliveryMethodListV2Response.d.ts create mode 100644 dist/models/V2DeliveryMethodListV2Response.js create mode 100644 dist/models/V2DraftClusterListResponse.d.ts create mode 100644 dist/models/V2DraftClusterListResponse.js create mode 100644 dist/models/V2DraftClusterListResponseResult.d.ts create mode 100644 dist/models/V2DraftClusterListResponseResult.js create mode 100644 dist/models/V2DraftCreateInfoRequest.d.ts create mode 100644 dist/models/V2DraftCreateInfoRequest.js create mode 100644 dist/models/V2DraftCreateInfoResponse.d.ts create mode 100644 dist/models/V2DraftCreateInfoResponse.js create mode 100644 dist/models/V2DraftCreateInfoResponseStatusEnum.d.ts create mode 100644 dist/models/V2DraftCreateInfoResponseStatusEnum.js create mode 100644 dist/models/V2DraftSupplyCreateRequest.d.ts create mode 100644 dist/models/V2DraftSupplyCreateRequest.js create mode 100644 dist/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.d.ts create mode 100644 dist/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.js create mode 100644 dist/models/V2DraftSupplyCreateRequestTimeslot.d.ts create mode 100644 dist/models/V2DraftSupplyCreateRequestTimeslot.js create mode 100644 dist/models/V2DraftSupplyCreateResponse.d.ts create mode 100644 dist/models/V2DraftSupplyCreateResponse.js create mode 100644 dist/models/V2DraftSupplyCreateResponseErrorReasonEnum.d.ts create mode 100644 dist/models/V2DraftSupplyCreateResponseErrorReasonEnum.js create mode 100644 dist/models/V2DraftSupplyCreateStatusRequest.d.ts create mode 100644 dist/models/V2DraftSupplyCreateStatusRequest.js create mode 100644 dist/models/V2DraftSupplyCreateStatusResponse.d.ts create mode 100644 dist/models/V2DraftSupplyCreateStatusResponse.js create mode 100644 dist/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.d.ts create mode 100644 dist/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.js create mode 100644 dist/models/V2DraftSupplyCreateStatusResponseStatusEnum.d.ts create mode 100644 dist/models/V2DraftSupplyCreateStatusResponseStatusEnum.js create mode 100644 dist/models/V2DraftTimeslotInfoRequest.d.ts create mode 100644 dist/models/V2DraftTimeslotInfoRequest.js create mode 100644 dist/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.d.ts create mode 100644 dist/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.js create mode 100644 dist/models/V2DraftTimeslotInfoResponse.d.ts create mode 100644 dist/models/V2DraftTimeslotInfoResponse.js create mode 100644 dist/models/V2DraftTimeslotInfoResponseErrorReasonEnum.d.ts create mode 100644 dist/models/V2DraftTimeslotInfoResponseErrorReasonEnum.js create mode 100644 dist/models/V2FboPosting.d.ts create mode 100644 dist/models/V2FboPosting.js create mode 100644 dist/models/V2FboPostingListResponse.d.ts create mode 100644 dist/models/V2FboPostingListResponse.js create mode 100644 dist/models/V2FboPostingResponse.d.ts create mode 100644 dist/models/V2FboPostingResponse.js create mode 100644 dist/models/V2FboPostingV2.d.ts create mode 100644 dist/models/V2FboPostingV2.js create mode 100644 dist/models/V2FboSinglePostingLegalInfo.d.ts create mode 100644 dist/models/V2FboSinglePostingLegalInfo.js create mode 100644 dist/models/V2FbsPosting.d.ts create mode 100644 dist/models/V2FbsPosting.js create mode 100644 dist/models/V2FbsPostingProduct.d.ts create mode 100644 dist/models/V2FbsPostingProduct.js create mode 100644 dist/models/V2FbsPostingProductCountryListRequest.d.ts create mode 100644 dist/models/V2FbsPostingProductCountryListRequest.js create mode 100644 dist/models/V2FbsPostingProductCountryListResponse.d.ts create mode 100644 dist/models/V2FbsPostingProductCountryListResponse.js create mode 100644 dist/models/V2FbsPostingProductCountryListResponseResult.d.ts create mode 100644 dist/models/V2FbsPostingProductCountryListResponseResult.js create mode 100644 dist/models/V2FbsPostingProductCountrySetRequest.d.ts create mode 100644 dist/models/V2FbsPostingProductCountrySetRequest.js create mode 100644 dist/models/V2FbsPostingProductCountrySetResponse.d.ts create mode 100644 dist/models/V2FbsPostingProductCountrySetResponse.js create mode 100644 dist/models/V2FbsPostingResponse.d.ts create mode 100644 dist/models/V2FbsPostingResponse.js create mode 100644 dist/models/V2GetConditionalCancellationListV2Request.d.ts create mode 100644 dist/models/V2GetConditionalCancellationListV2Request.js create mode 100644 dist/models/V2GetConditionalCancellationListV2Response.d.ts create mode 100644 dist/models/V2GetConditionalCancellationListV2Response.js create mode 100644 dist/models/V2GetDiscountTaskListV2Request.d.ts create mode 100644 dist/models/V2GetDiscountTaskListV2Request.js create mode 100644 dist/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.d.ts create mode 100644 dist/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.js create mode 100644 dist/models/V2GetDiscountTaskListV2Response.d.ts create mode 100644 dist/models/V2GetDiscountTaskListV2Response.js create mode 100644 dist/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.d.ts create mode 100644 dist/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.js create mode 100644 dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.d.ts create mode 100644 dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.js create mode 100644 dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.d.ts create mode 100644 dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.js create mode 100644 dist/models/V2GetRealizationReportRequestV2.d.ts create mode 100644 dist/models/V2GetRealizationReportRequestV2.js create mode 100644 dist/models/V2GetRealizationReportResponseV2.d.ts create mode 100644 dist/models/V2GetRealizationReportResponseV2.js create mode 100644 dist/models/V2HsCode.d.ts create mode 100644 dist/models/V2HsCode.js create mode 100644 dist/models/V2InvoiceCreateOrUpdateV2Request.d.ts create mode 100644 dist/models/V2InvoiceCreateOrUpdateV2Request.js create mode 100644 dist/models/V2InvoiceCreateOrUpdateV2Response.d.ts create mode 100644 dist/models/V2InvoiceCreateOrUpdateV2Response.js create mode 100644 dist/models/V2InvoiceGetV2Response.d.ts create mode 100644 dist/models/V2InvoiceGetV2Response.js create mode 100644 dist/models/V2MovePostingToAwaitingDeliveryRequest.d.ts create mode 100644 dist/models/V2MovePostingToAwaitingDeliveryRequest.js create mode 100644 dist/models/V2PolygonBindRequest.d.ts create mode 100644 dist/models/V2PolygonBindRequest.js create mode 100644 dist/models/V2PostingFBSActGetPostingsRequest.d.ts create mode 100644 dist/models/V2PostingFBSActGetPostingsRequest.js create mode 100644 dist/models/V2PostingFBSActGetPostingsResponse.d.ts create mode 100644 dist/models/V2PostingFBSActGetPostingsResponse.js create mode 100644 dist/models/V2PostingFBSActGetPostingsResult.d.ts create mode 100644 dist/models/V2PostingFBSActGetPostingsResult.js create mode 100644 dist/models/V2PostingFBSActGetProducts.d.ts create mode 100644 dist/models/V2PostingFBSActGetProducts.js create mode 100644 dist/models/V2PostingFBSActListFilter.d.ts create mode 100644 dist/models/V2PostingFBSActListFilter.js create mode 100644 dist/models/V2PostingFBSActListRelatedDocs.d.ts create mode 100644 dist/models/V2PostingFBSActListRelatedDocs.js create mode 100644 dist/models/V2PostingFBSActListRelatedDocsActOfAcceptance.d.ts create mode 100644 dist/models/V2PostingFBSActListRelatedDocsActOfAcceptance.js create mode 100644 dist/models/V2PostingFBSActListRelatedDocsActOfExcess.d.ts create mode 100644 dist/models/V2PostingFBSActListRelatedDocsActOfExcess.js create mode 100644 dist/models/V2PostingFBSActListRelatedDocsActOfMismatch.d.ts create mode 100644 dist/models/V2PostingFBSActListRelatedDocsActOfMismatch.js create mode 100644 dist/models/V2PostingFBSActListRequest.d.ts create mode 100644 dist/models/V2PostingFBSActListRequest.js create mode 100644 dist/models/V2PostingFBSActListResponse.d.ts create mode 100644 dist/models/V2PostingFBSActListResponse.js create mode 100644 dist/models/V2PostingFBSActListResult.d.ts create mode 100644 dist/models/V2PostingFBSActListResult.js create mode 100644 dist/models/V2PostingFBSDigitalActCheckStatusRequest.d.ts create mode 100644 dist/models/V2PostingFBSDigitalActCheckStatusRequest.js create mode 100644 dist/models/V2PostingFBSDigitalActCheckStatusResponse.d.ts create mode 100644 dist/models/V2PostingFBSDigitalActCheckStatusResponse.js create mode 100644 dist/models/V2PostingFBSGetBarcodeRequest.d.ts create mode 100644 dist/models/V2PostingFBSGetBarcodeRequest.js create mode 100644 dist/models/V2PostingFBSGetBarcodeResponse.d.ts create mode 100644 dist/models/V2PostingFBSGetBarcodeResponse.js create mode 100644 dist/models/V2PostingFBSGetBarcodeTextResponse.d.ts create mode 100644 dist/models/V2PostingFBSGetBarcodeTextResponse.js create mode 100644 dist/models/V2PostingFBSGetDigitalActRequest.d.ts create mode 100644 dist/models/V2PostingFBSGetDigitalActRequest.js create mode 100644 dist/models/V2PostingFBSGetDigitalActResponse.d.ts create mode 100644 dist/models/V2PostingFBSGetDigitalActResponse.js create mode 100644 dist/models/V2PostingFinancialDataFBO.d.ts create mode 100644 dist/models/V2PostingFinancialDataFBO.js create mode 100644 dist/models/V2PostingFinancialDataFBOV2.d.ts create mode 100644 dist/models/V2PostingFinancialDataFBOV2.js create mode 100644 dist/models/V2PostingProduct.d.ts create mode 100644 dist/models/V2PostingProduct.js create mode 100644 dist/models/V2Product.d.ts create mode 100644 dist/models/V2Product.js create mode 100644 dist/models/V2ProductCertificateAccordanceTypesResponse.d.ts create mode 100644 dist/models/V2ProductCertificateAccordanceTypesResponse.js create mode 100644 dist/models/V2ProductCertificateAccordanceTypesResponseResult.d.ts create mode 100644 dist/models/V2ProductCertificateAccordanceTypesResponseResult.js create mode 100644 dist/models/V2ProductCertificateAccordanceTypesResponseType.d.ts create mode 100644 dist/models/V2ProductCertificateAccordanceTypesResponseType.js create mode 100644 dist/models/V2ProductCertificationListRequest.d.ts create mode 100644 dist/models/V2ProductCertificationListRequest.js create mode 100644 dist/models/V2ProductCertificationListResponse.d.ts create mode 100644 dist/models/V2ProductCertificationListResponse.js create mode 100644 dist/models/V2ProductInfoPicturesRequest.d.ts create mode 100644 dist/models/V2ProductInfoPicturesRequest.js create mode 100644 dist/models/V2ProductInfoPicturesResponse.d.ts create mode 100644 dist/models/V2ProductInfoPicturesResponse.js create mode 100644 dist/models/V2ProductInfoPicturesResponseError.d.ts create mode 100644 dist/models/V2ProductInfoPicturesResponseError.js create mode 100644 dist/models/V2ProductInfoPicturesResponseItem.d.ts create mode 100644 dist/models/V2ProductInfoPicturesResponseItem.js create mode 100644 dist/models/V2ReportReturnsCreateRequest.d.ts create mode 100644 dist/models/V2ReportReturnsCreateRequest.js create mode 100644 dist/models/V2ReportReturnsCreateRequestFilter.d.ts create mode 100644 dist/models/V2ReportReturnsCreateRequestFilter.js create mode 100644 dist/models/V2ReportReturnsCreateResponse.d.ts create mode 100644 dist/models/V2ReportReturnsCreateResponse.js create mode 100644 dist/models/V2ReturnsRfbsFilter.d.ts create mode 100644 dist/models/V2ReturnsRfbsFilter.js create mode 100644 dist/models/V2ReturnsRfbsGetRequest.d.ts create mode 100644 dist/models/V2ReturnsRfbsGetRequest.js create mode 100644 dist/models/V2ReturnsRfbsGetResponse.d.ts create mode 100644 dist/models/V2ReturnsRfbsGetResponse.js create mode 100644 dist/models/V2ReturnsRfbsGetV2ResponseState.d.ts create mode 100644 dist/models/V2ReturnsRfbsGetV2ResponseState.js create mode 100644 dist/models/V2ReturnsRfbsListRequest.d.ts create mode 100644 dist/models/V2ReturnsRfbsListRequest.js create mode 100644 dist/models/V2ReturnsRfbsListResponse.d.ts create mode 100644 dist/models/V2ReturnsRfbsListResponse.js create mode 100644 dist/models/V2ReturnsRfbsListV2ResponseState.d.ts create mode 100644 dist/models/V2ReturnsRfbsListV2ResponseState.js create mode 100644 dist/models/V2WarehouseListV2Request.d.ts create mode 100644 dist/models/V2WarehouseListV2Request.js create mode 100644 dist/models/V2WarehouseListV2Response.d.ts create mode 100644 dist/models/V2WarehouseListV2Response.js create mode 100644 dist/models/V3AdditionalDataItem.d.ts create mode 100644 dist/models/V3AdditionalDataItem.js create mode 100644 dist/models/V3Address.d.ts create mode 100644 dist/models/V3Address.js create mode 100644 dist/models/V3Addressee.d.ts create mode 100644 dist/models/V3Addressee.js create mode 100644 dist/models/V3AddresseeFbsLists.d.ts create mode 100644 dist/models/V3AddresseeFbsLists.js create mode 100644 dist/models/V3Barcodes.d.ts create mode 100644 dist/models/V3Barcodes.js create mode 100644 dist/models/V3Cancellation.d.ts create mode 100644 dist/models/V3Cancellation.js create mode 100644 dist/models/V3ChatDetailsInfo.d.ts create mode 100644 dist/models/V3ChatDetailsInfo.js create mode 100644 dist/models/V3ChatHistoryRequest.d.ts create mode 100644 dist/models/V3ChatHistoryRequest.js create mode 100644 dist/models/V3ChatHistoryResponse.d.ts create mode 100644 dist/models/V3ChatHistoryResponse.js create mode 100644 dist/models/V3ChatInfo.d.ts create mode 100644 dist/models/V3ChatInfo.js create mode 100644 dist/models/V3ChatList.d.ts create mode 100644 dist/models/V3ChatList.js create mode 100644 dist/models/V3ChatListRequestFilter.d.ts create mode 100644 dist/models/V3ChatListRequestFilter.js create mode 100644 dist/models/V3ChatListRequestFilterChatStatus.d.ts create mode 100644 dist/models/V3ChatListRequestFilterChatStatus.js create mode 100644 dist/models/V3ChatListResponse.d.ts create mode 100644 dist/models/V3ChatListResponse.js create mode 100644 dist/models/V3ChatMessage.d.ts create mode 100644 dist/models/V3ChatMessage.js create mode 100644 dist/models/V3Customer.d.ts create mode 100644 dist/models/V3Customer.js create mode 100644 dist/models/V3CustomerFbsLists.d.ts create mode 100644 dist/models/V3CustomerFbsLists.js create mode 100644 dist/models/V3DeliveryMethod.d.ts create mode 100644 dist/models/V3DeliveryMethod.js create mode 100644 dist/models/V3Dimensions.d.ts create mode 100644 dist/models/V3Dimensions.js create mode 100644 dist/models/V3FbsPosting.d.ts create mode 100644 dist/models/V3FbsPosting.js create mode 100644 dist/models/V3FbsPostingAnalyticsData.d.ts create mode 100644 dist/models/V3FbsPostingAnalyticsData.js create mode 100644 dist/models/V3FbsPostingDetail.d.ts create mode 100644 dist/models/V3FbsPostingDetail.js create mode 100644 dist/models/V3FbsPostingDetailOptional.d.ts create mode 100644 dist/models/V3FbsPostingDetailOptional.js create mode 100644 dist/models/V3FbsPostingDetailRelatedPostings.d.ts create mode 100644 dist/models/V3FbsPostingDetailRelatedPostings.js create mode 100644 dist/models/V3FbsPostingExemplarProductV3.d.ts create mode 100644 dist/models/V3FbsPostingExemplarProductV3.js create mode 100644 dist/models/V3FbsPostingProduct.d.ts create mode 100644 dist/models/V3FbsPostingProduct.js create mode 100644 dist/models/V3FbsPostingProductExemplarInfoV3.d.ts create mode 100644 dist/models/V3FbsPostingProductExemplarInfoV3.js create mode 100644 dist/models/V3FbsPostingProductExemplarsV3.d.ts create mode 100644 dist/models/V3FbsPostingProductExemplarsV3.js create mode 100644 dist/models/V3FbsPostingRequirementsV3.d.ts create mode 100644 dist/models/V3FbsPostingRequirementsV3.js create mode 100644 dist/models/V3FbsTariffication.d.ts create mode 100644 dist/models/V3FbsTariffication.js create mode 100644 dist/models/V3FinanceCashFlowStatementListRequest.d.ts create mode 100644 dist/models/V3FinanceCashFlowStatementListRequest.js create mode 100644 dist/models/V3FinanceCashFlowStatementListResponse.d.ts create mode 100644 dist/models/V3FinanceCashFlowStatementListResponse.js create mode 100644 dist/models/V3FinanceCashFlowStatementListResponsePeriod.d.ts create mode 100644 dist/models/V3FinanceCashFlowStatementListResponsePeriod.js create mode 100644 dist/models/V3FinanceCashFlowStatementListResponseResult.d.ts create mode 100644 dist/models/V3FinanceCashFlowStatementListResponseResult.js create mode 100644 dist/models/V3GetFbsPostingListResponseV3.d.ts create mode 100644 dist/models/V3GetFbsPostingListResponseV3.js create mode 100644 dist/models/V3GetFbsPostingListResponseV3Result.d.ts create mode 100644 dist/models/V3GetFbsPostingListResponseV3Result.js create mode 100644 dist/models/V3GetFbsPostingResponseV3.d.ts create mode 100644 dist/models/V3GetFbsPostingResponseV3.js create mode 100644 dist/models/V3GetProductInfoListRequest.d.ts create mode 100644 dist/models/V3GetProductInfoListRequest.js create mode 100644 dist/models/V3GetProductInfoListResponse.d.ts create mode 100644 dist/models/V3GetProductInfoListResponse.js create mode 100644 dist/models/V3GetProductInfoListResponseItem.d.ts create mode 100644 dist/models/V3GetProductInfoListResponseItem.js create mode 100644 dist/models/V3GetProductInfoListResponsePromotion.d.ts create mode 100644 dist/models/V3GetProductInfoListResponsePromotion.js create mode 100644 dist/models/V3GetProductInfoListResponsePromotionType.d.ts create mode 100644 dist/models/V3GetProductInfoListResponsePromotionType.js create mode 100644 dist/models/V3ImportProductsRequest.d.ts create mode 100644 dist/models/V3ImportProductsRequest.js create mode 100644 dist/models/V3ImportProductsRequestAttribute.d.ts create mode 100644 dist/models/V3ImportProductsRequestAttribute.js create mode 100644 dist/models/V3ImportProductsRequestComplexAttribute.d.ts create mode 100644 dist/models/V3ImportProductsRequestComplexAttribute.js create mode 100644 dist/models/V3ImportProductsRequestDictionaryValue.d.ts create mode 100644 dist/models/V3ImportProductsRequestDictionaryValue.js create mode 100644 dist/models/V3ImportProductsRequestItem.d.ts create mode 100644 dist/models/V3ImportProductsRequestItem.js create mode 100644 dist/models/V3ImportProductsResponse.d.ts create mode 100644 dist/models/V3ImportProductsResponse.js create mode 100644 dist/models/V3ImportProductsResponseResult.d.ts create mode 100644 dist/models/V3ImportProductsResponseResult.js create mode 100644 dist/models/V3PostingFinancialData.d.ts create mode 100644 dist/models/V3PostingFinancialData.js create mode 100644 dist/models/V3PostingProductDetail.d.ts create mode 100644 dist/models/V3PostingProductDetail.js create mode 100644 dist/models/V3ServiceType.d.ts create mode 100644 dist/models/V3ServiceType.js create mode 100644 dist/models/V3SupplyOrderGetRequest.d.ts create mode 100644 dist/models/V3SupplyOrderGetRequest.js create mode 100644 dist/models/V3SupplyOrderGetResponse.d.ts create mode 100644 dist/models/V3SupplyOrderGetResponse.js create mode 100644 dist/models/V3SupplyOrderListRequest.d.ts create mode 100644 dist/models/V3SupplyOrderListRequest.js create mode 100644 dist/models/V3SupplyOrderListResponse.d.ts create mode 100644 dist/models/V3SupplyOrderListResponse.js create mode 100644 dist/models/V3TimeRange.d.ts create mode 100644 dist/models/V3TimeRange.js create mode 100644 dist/models/V3User.d.ts create mode 100644 dist/models/V3User.js create mode 100644 dist/models/V4FbsPostingShipPackageV4Request.d.ts create mode 100644 dist/models/V4FbsPostingShipPackageV4Request.js create mode 100644 dist/models/V4FbsPostingShipPackageV4RequestProduct.d.ts create mode 100644 dist/models/V4FbsPostingShipPackageV4RequestProduct.js create mode 100644 dist/models/V4FbsPostingShipPackageV4Response.d.ts create mode 100644 dist/models/V4FbsPostingShipPackageV4Response.js create mode 100644 dist/models/V4GetProductAttributesResponseModelInfo.d.ts create mode 100644 dist/models/V4GetProductAttributesResponseModelInfo.js create mode 100644 dist/models/V4GetProductAttributesResponsePdf.d.ts create mode 100644 dist/models/V4GetProductAttributesResponsePdf.js create mode 100644 dist/models/V4GetProductInfoStocksRequest.d.ts create mode 100644 dist/models/V4GetProductInfoStocksRequest.js create mode 100644 dist/models/V4GetProductInfoStocksRequestFilter.d.ts create mode 100644 dist/models/V4GetProductInfoStocksRequestFilter.js create mode 100644 dist/models/V4GetProductInfoStocksResponse.d.ts create mode 100644 dist/models/V4GetProductInfoStocksResponse.js create mode 100644 dist/models/V4GetProductInfoStocksResponseItem.d.ts create mode 100644 dist/models/V4GetProductInfoStocksResponseItem.js create mode 100644 dist/models/V4GetUploadQuotaResponse.d.ts create mode 100644 dist/models/V4GetUploadQuotaResponse.js create mode 100644 dist/models/V4Visibility.d.ts create mode 100644 dist/models/V4Visibility.js create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5Request.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5Request.js create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5Response.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5Response.js create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.js create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.js create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.js create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5Request.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5Request.js create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5RequestProduct.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5RequestProduct.js create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.js create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.js create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5Response.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5Response.js create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.js create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.js create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.d.ts create mode 100644 dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.js create mode 100644 dist/models/V6FbsPostingProductExemplarCreateOrGetV6Request.d.ts create mode 100644 dist/models/V6FbsPostingProductExemplarCreateOrGetV6Request.js create mode 100644 dist/models/V6FbsPostingProductExemplarCreateOrGetV6Response.d.ts create mode 100644 dist/models/V6FbsPostingProductExemplarCreateOrGetV6Response.js create mode 100644 dist/models/V6FbsPostingProductExemplarSetV6Request.d.ts create mode 100644 dist/models/V6FbsPostingProductExemplarSetV6Request.js create mode 100644 dist/models/ValidationErrorCharacteristicEnum.d.ts create mode 100644 dist/models/ValidationErrorCharacteristicEnum.js create mode 100644 dist/models/ValidationResultItem.d.ts create mode 100644 dist/models/ValidationResultItem.js create mode 100644 dist/models/ValidationResultItemStateEnum.d.ts create mode 100644 dist/models/ValidationResultItemStateEnum.js create mode 100644 dist/models/ValidationResultValidationError.d.ts create mode 100644 dist/models/ValidationResultValidationError.js create mode 100644 dist/models/ValidationResultValidationErrorTypeEnum.d.ts create mode 100644 dist/models/ValidationResultValidationErrorTypeEnum.js create mode 100644 dist/models/ValueCargoType.d.ts create mode 100644 dist/models/ValueCargoType.js create mode 100644 dist/models/ValueItem.d.ts create mode 100644 dist/models/ValueItem.js create mode 100644 dist/models/ValueTimezoneInfo.d.ts create mode 100644 dist/models/ValueTimezoneInfo.js create mode 100644 dist/models/VehicleCanNotSetVehicleReasonEnum.d.ts create mode 100644 dist/models/VehicleCanNotSetVehicleReasonEnum.js create mode 100644 dist/models/WarehouseAddress.d.ts create mode 100644 dist/models/WarehouseAddress.js create mode 100644 dist/models/WarehouseAddressCoordinates.d.ts create mode 100644 dist/models/WarehouseAddressCoordinates.js create mode 100644 dist/models/WarehouseAddressInfo.d.ts create mode 100644 dist/models/WarehouseAddressInfo.js create mode 100644 dist/models/WarehouseAvailabilityStatus.d.ts create mode 100644 dist/models/WarehouseAvailabilityStatus.js create mode 100644 dist/models/WarehouseCarriageLabelTypeEnum.d.ts create mode 100644 dist/models/WarehouseCarriageLabelTypeEnum.js create mode 100644 dist/models/WarehouseContacts.d.ts create mode 100644 dist/models/WarehouseContacts.js create mode 100644 dist/models/WarehouseDeliveryMethodListRequest.d.ts create mode 100644 dist/models/WarehouseDeliveryMethodListRequest.js create mode 100644 dist/models/WarehouseDeliveryMethodListResponse.d.ts create mode 100644 dist/models/WarehouseDeliveryMethodListResponse.js create mode 100644 dist/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.d.ts create mode 100644 dist/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.js create mode 100644 dist/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.d.ts create mode 100644 dist/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.js create mode 100644 dist/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.d.ts create mode 100644 dist/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.js create mode 100644 dist/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.d.ts create mode 100644 dist/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.js create mode 100644 dist/models/WarehouseFirstMile.d.ts create mode 100644 dist/models/WarehouseFirstMile.js create mode 100644 dist/models/WarehouseFirstMileType.d.ts create mode 100644 dist/models/WarehouseFirstMileType.js create mode 100644 dist/models/WarehouseInvalidProductsGetResponseValidationResult.d.ts create mode 100644 dist/models/WarehouseInvalidProductsGetResponseValidationResult.js create mode 100644 dist/models/WarehouseListResponseWarehouse.d.ts create mode 100644 dist/models/WarehouseListResponseWarehouse.js create mode 100644 dist/models/WarehouseListV2ResponseWarehouse.d.ts create mode 100644 dist/models/WarehouseListV2ResponseWarehouse.js create mode 100644 dist/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.d.ts create mode 100644 dist/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.js create mode 100644 dist/models/WarehouseStorageWarehouse.d.ts create mode 100644 dist/models/WarehouseStorageWarehouse.js create mode 100644 dist/models/WarehouseSupplyTagEnum.d.ts create mode 100644 dist/models/WarehouseSupplyTagEnum.js create mode 100644 dist/models/WarehouseTimetable.d.ts create mode 100644 dist/models/WarehouseTimetable.js create mode 100644 dist/models/WarehouseV1WarehouseRfbsPauseRequest.d.ts create mode 100644 dist/models/WarehouseV1WarehouseRfbsPauseRequest.js create mode 100644 dist/models/WarehouseV1WarehouseRfbsPauseResponse.d.ts create mode 100644 dist/models/WarehouseV1WarehouseRfbsPauseResponse.js create mode 100644 dist/models/WarehouseV1WarehouseRfbsUnpauseRequest.d.ts create mode 100644 dist/models/WarehouseV1WarehouseRfbsUnpauseRequest.js create mode 100644 dist/models/WarehouseV1WarehouseRfbsUnpauseResponse.d.ts create mode 100644 dist/models/WarehouseV1WarehouseRfbsUnpauseResponse.js create mode 100644 dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.d.ts create mode 100644 dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.js create mode 100644 dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.d.ts create mode 100644 dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.js create mode 100644 dist/models/WarehouseWarehouseListResponse.d.ts create mode 100644 dist/models/WarehouseWarehouseListResponse.js create mode 100644 dist/models/WarehouseWorkingDay.d.ts create mode 100644 dist/models/WarehouseWorkingDay.js create mode 100644 dist/models/WarehouseWorkingDayDayEnum.d.ts create mode 100644 dist/models/WarehouseWorkingDayDayEnum.js create mode 100644 dist/models/WarehouseWorkingDaysEnum.d.ts create mode 100644 dist/models/WarehouseWorkingDaysEnum.js create mode 100644 dist/models/WorkingHoursPeriods.d.ts create mode 100644 dist/models/WorkingHoursPeriods.js create mode 100644 dist/models/index.d.ts create mode 100644 dist/models/index.js create mode 100644 dist/runtime.d.ts create mode 100644 dist/runtime.js create mode 100644 package.json diff --git a/README.md b/README.md index 46b0492..53c5f61 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,102 @@ -# ozon-seller-typescript +# @apilki/ozon-seller — JavaScript/TypeScript клиент -JavaScript/TypeScript client for OZON Seller API (MIT) \ No newline at end of file +**Версия: 0.1.0 · API от 2026-08-20** + +**@apilki/ozon-seller** — generated TypeScript/JavaScript client for the **OZON Seller API** (fetch-based; works in Node.js ≥ 18 and browsers). + +```bash +npm install @apilki/ozon-seller +``` + +Docs: · Полное описание (RU) — ниже. + +--- + +## Что это + +JavaScript/TypeScript клиент для **OZON Seller API** (продавец-сторона): товары, заказы, FBO/FBS, цены и остатки, отчёты, аналитика, финансы, отзывы и вопросы. Сгенерирован из официального сваггера, построен на базе `fetch` API — работает и в Node.js (≥ 18), и в браузере. Публикуется в npm-скоупе `@apilki` (GitHub-орг `apilki`). + +## Установка + +```bash +npm install @apilki/ozon-seller +``` + +## Быстрый старт + +Авторизация OZON — пара заголовков `Client-Id` и `Api-Key` (личный кабинет продавца → Настройки → API-ключи). Клиент передаёт их первыми двумя аргументами каждого метода. + +```javascript +import { Configuration, ProductAPI } from '@apilki/ozon-seller'; + +const config = new Configuration({ + basePath: 'https://api-seller.ozon.ru', +}); + +const productApi = new ProductAPI(config); + +const clientId = 'YOUR_CLIENT_ID'; +const apiKey = 'YOUR_API_KEY'; + +// POST /v3/product/info/list — информация о товарах по идентификаторам +const result = await productApi.productAPIGetProductInfoList(clientId, apiKey, { + offer_id: ['offer-1'], + product_id: [], + sku: [], +}); + +console.log(result.result?.items); +``` + +### Работа с несколькими кабинетами + +Ключ и Client-Id передаются в каждый вызов — один клиент обслуживает сколько угодно продавцов: + +```javascript +await productApi.productAPIGetProductInfoList(ALICE_CLIENT_ID, ALICE_API_KEY, body); +await productApi.productAPIGetProductInfoList(BOB_CLIENT_ID, BOB_API_KEY, body); +``` + +### Отладка (middleware) + +```javascript +const config = new Configuration({ + basePath: 'https://api-seller.ozon.ru', + middleware: [{ + pre: async (context) => { console.log(`[OZON] ${context.init?.method} ${context.url}`); return context; }, + }], +}); +``` + +## Ошибки + +На 4xx/5xx клиент бросает `ResponseError` — у него есть `.response` (fetch-Response), тело ошибки OZON читается из него. + +```javascript +import { ResponseError } from '@apilki/ozon-seller'; + +try { + await productApi.productAPIGetProductInfoList(clientId, apiKey, body); +} catch (error) { + if (error instanceof ResponseError) { + const body = await error.response.json(); // { error: { code, message, details } } + console.error(`OZON ${error.response.status}:`, body.error?.message); + } +} +``` + +## Покрытие API + +Полный сваггер OZON Seller API: **463 операции, 58 API-классов** (товары, заказы, FBO/FBS, цены и остатки, отчёты, аналитика, финансы, отзывы, вопросы и ответы, категории и др.). + +## Postman-коллекция + +Готовая Postman Collection v2.1 (463 запроса) — отдельным артефактом: `apilki/ozon-seller-postman`. + +## Языки + +TypeScript/JavaScript сейчас; Python и Go — в планах (скоуп `@apilki`). + +## Лицензия + +MIT © apilki. Документация OZON Seller API: . diff --git a/dist/apis/APIkey.d.ts b/dist/apis/APIkey.d.ts new file mode 100644 index 0000000..c1e8968 --- /dev/null +++ b/dist/apis/APIkey.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1RolesByTokenResponse } from '../models/index'; +export interface AccessAPIRolesByTokenRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class APIkey extends runtime.BaseAPI { + /** + * Метод для получения информации и ролях и методах, привязанных к API-ключу. + * Получить список ролей и методов по API-ключу + */ + accessAPIRolesByTokenRaw(requestParameters: AccessAPIRolesByTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации и ролях и методах, привязанных к API-ключу. + * Получить список ролей и методов по API-ключу + */ + accessAPIRolesByToken(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/APIkey.js b/dist/apis/APIkey.js new file mode 100644 index 0000000..fdf27f2 --- /dev/null +++ b/dist/apis/APIkey.js @@ -0,0 +1,72 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.APIkey = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class APIkey extends runtime.BaseAPI { + /** + * Метод для получения информации и ролях и методах, привязанных к API-ключу. + * Получить список ролей и методов по API-ключу + */ + accessAPIRolesByTokenRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling accessAPIRolesByToken().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling accessAPIRolesByToken().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/roles`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1RolesByTokenResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения информации и ролях и методах, привязанных к API-ключу. + * Получить список ролей и методов по API-ключу + */ + accessAPIRolesByToken(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.accessAPIRolesByTokenRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} +exports.APIkey = APIkey; diff --git a/dist/apis/AnalyticsAPI.d.ts b/dist/apis/AnalyticsAPI.d.ts new file mode 100644 index 0000000..b7e86c7 --- /dev/null +++ b/dist/apis/AnalyticsAPI.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { AnalyticsStockOnWarehouseRequest, AnalyticsStockOnWarehouseResponse, V1AnalyticsStocksRequest, V1AnalyticsStocksResponse, V1AnalyticsTurnoverStocksRequest, V1AnalyticsTurnoverStocksResponse } from '../models/index'; +export interface AnalyticsAPIAnalyticsGetStockOnWarehousesV2Request { + clientId: string; + apiKey: string; + analyticsStockOnWarehouseRequest: AnalyticsStockOnWarehouseRequest; +} +export interface AnalyticsAPIAnalyticsStocksRequest { + clientId: string; + apiKey: string; + v1AnalyticsStocksRequest: V1AnalyticsStocksRequest; +} +export interface AnalyticsAPIStocksTurnoverRequest { + clientId: string; + apiKey: string; + v1AnalyticsTurnoverStocksRequest: V1AnalyticsTurnoverStocksRequest; +} +/** + * + */ +export declare class AnalyticsAPI extends runtime.BaseAPI { + /** + * Метод для получения отчёта по остаткам и товарам в перемещении по складам Ozon. + * Отчёт по остаткам и товарам + */ + analyticsAPIAnalyticsGetStockOnWarehousesV2Raw(requestParameters: AnalyticsAPIAnalyticsGetStockOnWarehousesV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта по остаткам и товарам в перемещении по складам Ozon. + * Отчёт по остаткам и товарам + */ + analyticsAPIAnalyticsGetStockOnWarehousesV2(clientId: string, apiKey: string, analyticsStockOnWarehouseRequest: AnalyticsStockOnWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить аналитику по остаткам товаров на складах. Метод соответствует разделу [**FBO → Управление остатками**](https://seller.ozon.ru/app/fbo-stocks/stocks-management/) в личном кабинете. Аналитика обновляется два раза в день: примерно в 07:00 и 16:00 по UTC. В запросе используйте только одно из полей: `cluster_ids` или `macrolocal_cluster_ids`, иначе вернётся ошибка. + * Получить аналитику по остаткам + */ + analyticsAPIAnalyticsStocksRaw(requestParameters: AnalyticsAPIAnalyticsStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить аналитику по остаткам товаров на складах. Метод соответствует разделу [**FBO → Управление остатками**](https://seller.ozon.ru/app/fbo-stocks/stocks-management/) в личном кабинете. Аналитика обновляется два раза в день: примерно в 07:00 и 16:00 по UTC. В запросе используйте только одно из полей: `cluster_ids` или `macrolocal_cluster_ids`, иначе вернётся ошибка. + * Получить аналитику по остаткам + */ + analyticsAPIAnalyticsStocks(clientId: string, apiKey: string, v1AnalyticsStocksRequest: V1AnalyticsStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы узнать оборачиваемость товара и количество дней, на которое хватит текущего остатка. Метод соответствует разделу [**FBO -> Управление остатками**](https://seller.ozon.ru/app/supply/stocks-management) в личном кабинете. Вы можете делать не больше 1 запроса в минуту по одному кабинету `Client-Id`. Если вы запрашиваете список товаров по `sku`, параметры `limit` и `offset` необязательны. + * Оборачиваемость товара + */ + analyticsAPIStocksTurnoverRaw(requestParameters: AnalyticsAPIStocksTurnoverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы узнать оборачиваемость товара и количество дней, на которое хватит текущего остатка. Метод соответствует разделу [**FBO -> Управление остатками**](https://seller.ozon.ru/app/supply/stocks-management) в личном кабинете. Вы можете делать не больше 1 запроса в минуту по одному кабинету `Client-Id`. Если вы запрашиваете список товаров по `sku`, параметры `limit` и `offset` необязательны. + * Оборачиваемость товара + */ + analyticsAPIStocksTurnover(clientId: string, apiKey: string, v1AnalyticsTurnoverStocksRequest: V1AnalyticsTurnoverStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/AnalyticsAPI.js b/dist/apis/AnalyticsAPI.js new file mode 100644 index 0000000..bd864b4 --- /dev/null +++ b/dist/apis/AnalyticsAPI.js @@ -0,0 +1,165 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AnalyticsAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class AnalyticsAPI extends runtime.BaseAPI { + /** + * Метод для получения отчёта по остаткам и товарам в перемещении по складам Ozon. + * Отчёт по остаткам и товарам + */ + analyticsAPIAnalyticsGetStockOnWarehousesV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsGetStockOnWarehousesV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsGetStockOnWarehousesV2().'); + } + if (requestParameters['analyticsStockOnWarehouseRequest'] == null) { + throw new runtime.RequiredError('analyticsStockOnWarehouseRequest', 'Required parameter "analyticsStockOnWarehouseRequest" was null or undefined when calling analyticsAPIAnalyticsGetStockOnWarehousesV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/analytics/stock_on_warehouses`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.AnalyticsStockOnWarehouseRequestToJSON)(requestParameters['analyticsStockOnWarehouseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AnalyticsStockOnWarehouseResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения отчёта по остаткам и товарам в перемещении по складам Ozon. + * Отчёт по остаткам и товарам + */ + analyticsAPIAnalyticsGetStockOnWarehousesV2(clientId, apiKey, analyticsStockOnWarehouseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsGetStockOnWarehousesV2Raw({ clientId: clientId, apiKey: apiKey, analyticsStockOnWarehouseRequest: analyticsStockOnWarehouseRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить аналитику по остаткам товаров на складах. Метод соответствует разделу [**FBO → Управление остатками**](https://seller.ozon.ru/app/fbo-stocks/stocks-management/) в личном кабинете. Аналитика обновляется два раза в день: примерно в 07:00 и 16:00 по UTC. В запросе используйте только одно из полей: `cluster_ids` или `macrolocal_cluster_ids`, иначе вернётся ошибка. + * Получить аналитику по остаткам + */ + analyticsAPIAnalyticsStocksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsStocks().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsStocks().'); + } + if (requestParameters['v1AnalyticsStocksRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsStocksRequest', 'Required parameter "v1AnalyticsStocksRequest" was null or undefined when calling analyticsAPIAnalyticsStocks().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AnalyticsStocksRequestToJSON)(requestParameters['v1AnalyticsStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AnalyticsStocksResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить аналитику по остаткам товаров на складах. Метод соответствует разделу [**FBO → Управление остатками**](https://seller.ozon.ru/app/fbo-stocks/stocks-management/) в личном кабинете. Аналитика обновляется два раза в день: примерно в 07:00 и 16:00 по UTC. В запросе используйте только одно из полей: `cluster_ids` или `macrolocal_cluster_ids`, иначе вернётся ошибка. + * Получить аналитику по остаткам + */ + analyticsAPIAnalyticsStocks(clientId, apiKey, v1AnalyticsStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsStocksRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsStocksRequest: v1AnalyticsStocksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы узнать оборачиваемость товара и количество дней, на которое хватит текущего остатка. Метод соответствует разделу [**FBO -> Управление остатками**](https://seller.ozon.ru/app/supply/stocks-management) в личном кабинете. Вы можете делать не больше 1 запроса в минуту по одному кабинету `Client-Id`. Если вы запрашиваете список товаров по `sku`, параметры `limit` и `offset` необязательны. + * Оборачиваемость товара + */ + analyticsAPIStocksTurnoverRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIStocksTurnover().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIStocksTurnover().'); + } + if (requestParameters['v1AnalyticsTurnoverStocksRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsTurnoverStocksRequest', 'Required parameter "v1AnalyticsTurnoverStocksRequest" was null or undefined when calling analyticsAPIStocksTurnover().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/turnover/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AnalyticsTurnoverStocksRequestToJSON)(requestParameters['v1AnalyticsTurnoverStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AnalyticsTurnoverStocksResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы узнать оборачиваемость товара и количество дней, на которое хватит текущего остатка. Метод соответствует разделу [**FBO -> Управление остатками**](https://seller.ozon.ru/app/supply/stocks-management) в личном кабинете. Вы можете делать не больше 1 запроса в минуту по одному кабинету `Client-Id`. Если вы запрашиваете список товаров по `sku`, параметры `limit` и `offset` необязательны. + * Оборачиваемость товара + */ + analyticsAPIStocksTurnover(clientId, apiKey, v1AnalyticsTurnoverStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIStocksTurnoverRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsTurnoverStocksRequest: v1AnalyticsTurnoverStocksRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.AnalyticsAPI = AnalyticsAPI; diff --git a/dist/apis/BarcodeAPI.d.ts b/dist/apis/BarcodeAPI.d.ts new file mode 100644 index 0000000..e614132 --- /dev/null +++ b/dist/apis/BarcodeAPI.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1AddBarcodeRequest, V1AddBarcodeResponse, V1GenerateBarcodeRequest, V1GenerateBarcodeResponse } from '../models/index'; +export interface AddBarcodeRequest { + v1AddBarcodeRequest: V1AddBarcodeRequest; +} +export interface GenerateBarcodeRequest { + v1GenerateBarcodeRequest: V1GenerateBarcodeRequest; +} +/** + * + */ +export declare class BarcodeAPI extends runtime.BaseAPI { + /** + * Если у товара есть штрихкод, который не указан в системе Ozon, привяжите его с помощью этого метода. Чтобы сгенерировать штрихкод, используйте метод [/v1/barcode/generate]( #operation/generate-barcode).
[Подробнее о требованиях к штрихкодам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/rabota-so-shtrihkodami#какие-требования-у-штрихкодов) На одном товаре может быть до 100 штрихкодов. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Привязать штрихкод к товару + */ + addBarcodeRaw(requestParameters: AddBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если у товара есть штрихкод, который не указан в системе Ozon, привяжите его с помощью этого метода. Чтобы сгенерировать штрихкод, используйте метод [/v1/barcode/generate]( #operation/generate-barcode).
[Подробнее о требованиях к штрихкодам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/rabota-so-shtrihkodami#какие-требования-у-штрихкодов) На одном товаре может быть до 100 штрихкодов. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Привязать штрихкод к товару + */ + addBarcode(v1AddBarcodeRequest: V1AddBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если у товара нет штрихкода, вы можете создать его с помощью этого метода. Если штрихкод уже есть, но он не указан в системе Ozon, вы можете привязать его через метод [/v1/barcode/add](#operation/add-barcode). За один запрос вы можете создать штрихкоды не больше чем для 100 товаров. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Создать штрихкод для товара + */ + generateBarcodeRaw(requestParameters: GenerateBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если у товара нет штрихкода, вы можете создать его с помощью этого метода. Если штрихкод уже есть, но он не указан в системе Ozon, вы можете привязать его через метод [/v1/barcode/add](#operation/add-barcode). За один запрос вы можете создать штрихкоды не больше чем для 100 товаров. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Создать штрихкод для товара + */ + generateBarcode(v1GenerateBarcodeRequest: V1GenerateBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/BarcodeAPI.js b/dist/apis/BarcodeAPI.js new file mode 100644 index 0000000..07d985a --- /dev/null +++ b/dist/apis/BarcodeAPI.js @@ -0,0 +1,97 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BarcodeAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class BarcodeAPI extends runtime.BaseAPI { + /** + * Если у товара есть штрихкод, который не указан в системе Ozon, привяжите его с помощью этого метода. Чтобы сгенерировать штрихкод, используйте метод [/v1/barcode/generate]( #operation/generate-barcode).
[Подробнее о требованиях к штрихкодам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/rabota-so-shtrihkodami#какие-требования-у-штрихкодов) На одном товаре может быть до 100 штрихкодов. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Привязать штрихкод к товару + */ + addBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1AddBarcodeRequest'] == null) { + throw new runtime.RequiredError('v1AddBarcodeRequest', 'Required parameter "v1AddBarcodeRequest" was null or undefined when calling addBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/barcode/add`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AddBarcodeRequestToJSON)(requestParameters['v1AddBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AddBarcodeResponseFromJSON)(jsonValue)); + }); + } + /** + * Если у товара есть штрихкод, который не указан в системе Ozon, привяжите его с помощью этого метода. Чтобы сгенерировать штрихкод, используйте метод [/v1/barcode/generate]( #operation/generate-barcode).
[Подробнее о требованиях к штрихкодам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/rabota-so-shtrihkodami#какие-требования-у-штрихкодов) На одном товаре может быть до 100 штрихкодов. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Привязать штрихкод к товару + */ + addBarcode(v1AddBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.addBarcodeRaw({ v1AddBarcodeRequest: v1AddBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если у товара нет штрихкода, вы можете создать его с помощью этого метода. Если штрихкод уже есть, но он не указан в системе Ozon, вы можете привязать его через метод [/v1/barcode/add](#operation/add-barcode). За один запрос вы можете создать штрихкоды не больше чем для 100 товаров. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Создать штрихкод для товара + */ + generateBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GenerateBarcodeRequest'] == null) { + throw new runtime.RequiredError('v1GenerateBarcodeRequest', 'Required parameter "v1GenerateBarcodeRequest" was null or undefined when calling generateBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/barcode/generate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GenerateBarcodeRequestToJSON)(requestParameters['v1GenerateBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GenerateBarcodeResponseFromJSON)(jsonValue)); + }); + } + /** + * Если у товара нет штрихкода, вы можете создать его с помощью этого метода. Если штрихкод уже есть, но он не указан в системе Ozon, вы можете привязать его через метод [/v1/barcode/add](#operation/add-barcode). За один запрос вы можете создать штрихкоды не больше чем для 100 товаров. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Создать штрихкод для товара + */ + generateBarcode(v1GenerateBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.generateBarcodeRaw({ v1GenerateBarcodeRequest: v1GenerateBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.BarcodeAPI = BarcodeAPI; diff --git a/dist/apis/BetaMethod.d.ts b/dist/apis/BetaMethod.d.ts new file mode 100644 index 0000000..c1c9dde --- /dev/null +++ b/dist/apis/BetaMethod.d.ts @@ -0,0 +1,280 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CertificationV2ProductCertificateCreateRequest, CertificationV2ProductCertificateCreateResponse, CertificationV2ProductCertificateOptionsResponse, CertificationV2ProductCertificateParamsRequest, CertificationV2ProductCertificateParamsResponse, FinanceV1GetFinanceAccrualByDayRequest, FinanceV1GetFinanceAccrualByDayResponse, FinanceV1GetFinanceAccrualPostingsRequest, FinanceV1GetFinanceAccrualPostingsResponse, FinanceV1GetFinanceAccrualTypesResponse, PostingV1GetFbpPostingRequest, PostingV1GetFbpPostingResponse, PostingV2PostingDigitalListRequest, PostingV2PostingDigitalListResponse, ProductV1ProductVisibilityInfoRequest, ProductV1ProductVisibilityInfoResponse, ProductV1ProductVisibilitySetRequest, ProductV1ProductVisibilitySetResponse, ReportV1CreateCompanyFinanceRealizationPostingReportRequest, ReportV1CreateCompanyFinanceRealizationPostingReportResponse, V1AnalyticsManageStocksRequest, V1AnalyticsManageStocksResponse, V1GetFinanceBalanceV1Request, V1GetFinanceBalanceV1Response, V1GetProductStairwayDiscountByQuantityRequest, V1GetProductStairwayDiscountByQuantityResponse, V1GetSupplierReturnsSummaryReportRequest, V1GetSupplierReturnsSummaryReportResponse, V1GetSupplyReturnsSummaryReportRequest, V1GetSupplyReturnsSummaryReportResponse, V1SetProductStairwayDiscountByQuantityRequest, V1SetProductStairwayDiscountByQuantityResponse, V2GetDiscountTaskListV2Request, V2GetDiscountTaskListV2Response } from '../models/index'; +export interface AnalyticsAPIManageStocksRequest { + clientId: string; + apiKey: string; + v1AnalyticsManageStocksRequest: V1AnalyticsManageStocksRequest; +} +export interface CreateCompanyFinanceRealizationPostingReportRequest { + clientId: string; + apiKey: string; + reportV1CreateCompanyFinanceRealizationPostingReportRequest: ReportV1CreateCompanyFinanceRealizationPostingReportRequest; +} +export interface GetDiscountTaskListV2Request { + clientId: string; + apiKey: string; + v2GetDiscountTaskListV2Request?: V2GetDiscountTaskListV2Request; +} +export interface GetFbpPostingRequest { + postingV1GetFbpPostingRequest?: PostingV1GetFbpPostingRequest; +} +export interface GetFinanceAccrualByDayRequest { + clientId: string; + apiKey: string; + financeV1GetFinanceAccrualByDayRequest: FinanceV1GetFinanceAccrualByDayRequest; +} +export interface GetFinanceAccrualPostingsRequest { + clientId: string; + apiKey: string; + financeV1GetFinanceAccrualPostingsRequest: FinanceV1GetFinanceAccrualPostingsRequest; +} +export interface GetFinanceAccrualTypesRequest { + clientId: string; + apiKey: string; +} +export interface GetFinanceBalanceV1Request { + v1GetFinanceBalanceV1Request: V1GetFinanceBalanceV1Request; +} +export interface GetSupplierReturnsSummaryReportRequest { + clientId: string; + apiKey: string; + v1GetSupplierReturnsSummaryReportRequest: V1GetSupplierReturnsSummaryReportRequest; +} +export interface GetSupplyReturnsSummaryReportRequest { + clientId: string; + apiKey: string; + v1GetSupplyReturnsSummaryReportRequest: V1GetSupplyReturnsSummaryReportRequest; +} +export interface PostingDigitalListRequest { + clientId: string; + apiKey: string; + postingV2PostingDigitalListRequest: PostingV2PostingDigitalListRequest; +} +export interface ProductAPIGetProductStairwayDiscountByQuantityRequest { + clientId: string; + apiKey: string; + v1GetProductStairwayDiscountByQuantityRequest: V1GetProductStairwayDiscountByQuantityRequest; +} +export interface ProductAPISetProductStairwayDiscountByQuantityRequest { + clientId: string; + apiKey: string; + v1SetProductStairwayDiscountByQuantityRequest: V1SetProductStairwayDiscountByQuantityRequest; +} +export interface ProductCertificateCreateRequest { + clientId: string; + apiKey: string; + certificationV2ProductCertificateCreateRequest: CertificationV2ProductCertificateCreateRequest; +} +export interface ProductCertificateOptionsRequest { + clientId: string; + apiKey: string; +} +export interface ProductCertificateParamsRequest { + clientId: string; + apiKey: string; + certificationV2ProductCertificateParamsRequest: CertificationV2ProductCertificateParamsRequest; +} +export interface ProductVisibilityInfoRequest { + clientId: string; + apiKey: string; + productV1ProductVisibilityInfoRequest?: ProductV1ProductVisibilityInfoRequest; +} +export interface ProductVisibilitySetRequest { + productV1ProductVisibilitySetRequest?: ProductV1ProductVisibilitySetRequest; +} +/** + * + */ +export declare class BetaMethod extends runtime.BaseAPI { + /** + * Используйте метод, чтобы узнать, сколько товаров осталось на складах FBO. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1106-Razdel-upravleniia-ostatkami-analytics-manage-stocks) в сообществе разработчиков Ozon for dev. + * Управление остатками + */ + analyticsAPIManageStocksRaw(requestParameters: AnalyticsAPIManageStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы узнать, сколько товаров осталось на складах FBO. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1106-Razdel-upravleniia-ostatkami-analytics-manage-stocks) в сообществе разработчиков Ozon for dev. + * Управление остатками + */ + analyticsAPIManageStocks(clientId: string, apiKey: string, v1AnalyticsManageStocksRequest: V1AnalyticsManageStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev. + * Получить позаказный отчёт о реализации товаров + */ + createCompanyFinanceRealizationPostingReportRaw(requestParameters: CreateCompanyFinanceRealizationPostingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev. + * Получить позаказный отчёт о реализации товаров + */ + createCompanyFinanceRealizationPostingReport(clientId: string, apiKey: string, reportV1CreateCompanyFinanceRealizationPostingReportRequest: ReportV1CreateCompanyFinanceRealizationPostingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список товаров, которые покупатели хотят купить со скидкой. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1856-Novye-metody-dlia-raboty-s-polucheniem-Spiska-zaiavok-na-skidku/) в сообществе разработчиков Ozon for dev. + * Получить список заявок на скидку + */ + getDiscountTaskListV2Raw(requestParameters: GetDiscountTaskListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список товаров, которые покупатели хотят купить со скидкой. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1856-Novye-metody-dlia-raboty-s-polucheniem-Spiska-zaiavok-na-skidku/) в сообществе разработчиков Ozon for dev. + * Получить список заявок на скидку + */ + getDiscountTaskListV2(clientId: string, apiKey: string, v2GetDiscountTaskListV2Request?: V2GetDiscountTaskListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2237-Novyi-metod-polucheniia-FBP-postingov-po-identifikatoru-otpravleniia/) в сообществе разработчиков Ozon for dev. + * Получить информацию об отправлении по идентификатору + */ + getFbpPostingRaw(requestParameters: GetFbpPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2237-Novyi-metod-polucheniia-FBP-postingov-po-identifikatoru-otpravleniia/) в сообществе разработчиков Ozon for dev. + * Получить информацию об отправлении по идентификатору + */ + getFbpPosting(postingV1GetFbpPostingRequest?: PostingV1GetFbpPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления за день + */ + getFinanceAccrualByDayRaw(requestParameters: GetFinanceAccrualByDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления за день + */ + getFinanceAccrualByDay(clientId: string, apiKey: string, financeV1GetFinanceAccrualByDayRequest: FinanceV1GetFinanceAccrualByDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления по отправлениям + */ + getFinanceAccrualPostingsRaw(requestParameters: GetFinanceAccrualPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления по отправлениям + */ + getFinanceAccrualPostings(clientId: string, apiKey: string, financeV1GetFinanceAccrualPostingsRequest: FinanceV1GetFinanceAccrualPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить справочник начислений + */ + getFinanceAccrualTypesRaw(requestParameters: GetFinanceAccrualTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить справочник начислений + */ + getFinanceAccrualTypes(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Соответствует разделу **Финансы → Баланс** в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1732-Novyi-metod-polucheniia-dannykh-po-balansu/) в сообществе разработчиков Ozon for dev. + * Получить отчёт о балансе + */ + getFinanceBalanceV1Raw(requestParameters: GetFinanceBalanceV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Соответствует разделу **Финансы → Баланс** в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1732-Novyi-metod-polucheniia-dannykh-po-balansu/) в сообществе разработчиков Ozon for dev. + * Получить отчёт о балансе + */ + getFinanceBalanceV1(v1GetFinanceBalanceV1Request: V1GetFinanceBalanceV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации со стока FBO + */ + getSupplierReturnsSummaryReportRaw(requestParameters: GetSupplierReturnsSummaryReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации со стока FBO + */ + getSupplierReturnsSummaryReport(clientId: string, apiKey: string, v1GetSupplierReturnsSummaryReportRequest: V1GetSupplierReturnsSummaryReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации с поставки FBO + */ + getSupplyReturnsSummaryReportRaw(requestParameters: GetSupplyReturnsSummaryReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации с поставки FBO + */ + getSupplyReturnsSummaryReport(clientId: string, apiKey: string, v1GetSupplyReturnsSummaryReportRequest: V1GetSupplyReturnsSummaryReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, которые работают с цифровыми товарами. Чтобы получить список отправлений в любом статусе, используйте метод [/v3/posting/fbo/list](#operation/PostingFboList). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2050-Novyi-beta-metod-dlia-postingov-s-zagruzkoi-kodov-tsifrovykh-tovarov-v-Seller-API/) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingDigitalListRaw(requestParameters: PostingDigitalListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, которые работают с цифровыми товарами. Чтобы получить список отправлений в любом статусе, используйте метод [/v3/posting/fbo/list](#operation/PostingFboList). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2050-Novyi-beta-metod-dlia-postingov-s-zagruzkoi-kodov-tsifrovykh-tovarov-v-Seller-API/) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingDigitalList(clientId: string, apiKey: string, postingV2PostingDigitalListRequest: PostingV2PostingDigitalListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает информацию о скидке на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Получить информацию о скидке от количества + */ + productAPIGetProductStairwayDiscountByQuantityRaw(requestParameters: ProductAPIGetProductStairwayDiscountByQuantityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию о скидке на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Получить информацию о скидке от количества + */ + productAPIGetProductStairwayDiscountByQuantity(clientId: string, apiKey: string, v1GetProductStairwayDiscountByQuantityRequest: V1GetProductStairwayDiscountByQuantityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Устанавливает или удаляет скидку на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Управлять скидкой от количества + */ + productAPISetProductStairwayDiscountByQuantityRaw(requestParameters: ProductAPISetProductStairwayDiscountByQuantityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Устанавливает или удаляет скидку на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Управлять скидкой от количества + */ + productAPISetProductStairwayDiscountByQuantity(clientId: string, apiKey: string, v1SetProductStairwayDiscountByQuantityRequest: V1SetProductStairwayDiscountByQuantityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Создать сертификат качества + */ + productCertificateCreateRaw(requestParameters: ProductCertificateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Создать сертификат качества + */ + productCertificateCreate(clientId: string, apiKey: string, certificationV2ProductCertificateCreateRequest: CertificationV2ProductCertificateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certification/params](#operation/ProductCertificateParams). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить параметры для создания сертификата качества + */ + productCertificateOptionsRaw(requestParameters: ProductCertificateOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certification/params](#operation/ProductCertificateParams). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить параметры для создания сертификата качества + */ + productCertificateOptions(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certificate/create](#operation/ProductCertificateCreate). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить обязательные параметры для создания сертификата качества + */ + productCertificateParamsRaw(requestParameters: ProductCertificateParamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certificate/create](#operation/ProductCertificateCreate). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить обязательные параметры для создания сертификата качества + */ + productCertificateParams(clientId: string, apiKey: string, certificationV2ProductCertificateParamsRequest: CertificationV2ProductCertificateParamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Получить информацию о видимости товара + */ + productVisibilityInfoRaw(requestParameters: ProductVisibilityInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Получить информацию о видимости товара + */ + productVisibilityInfo(clientId: string, apiKey: string, productV1ProductVisibilityInfoRequest?: ProductV1ProductVisibilityInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Настроить видимость товара на витрине Ozon и Ozon Селект + */ + productVisibilitySetRaw(requestParameters: ProductVisibilitySetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Настроить видимость товара на витрине Ozon и Ozon Селект + */ + productVisibilitySet(productV1ProductVisibilitySetRequest?: ProductV1ProductVisibilitySetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/BetaMethod.js b/dist/apis/BetaMethod.js new file mode 100644 index 0000000..00be43c --- /dev/null +++ b/dist/apis/BetaMethod.js @@ -0,0 +1,767 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BetaMethod = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class BetaMethod extends runtime.BaseAPI { + /** + * Используйте метод, чтобы узнать, сколько товаров осталось на складах FBO. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1106-Razdel-upravleniia-ostatkami-analytics-manage-stocks) в сообществе разработчиков Ozon for dev. + * Управление остатками + */ + analyticsAPIManageStocksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIManageStocks().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIManageStocks().'); + } + if (requestParameters['v1AnalyticsManageStocksRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsManageStocksRequest', 'Required parameter "v1AnalyticsManageStocksRequest" was null or undefined when calling analyticsAPIManageStocks().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/manage/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AnalyticsManageStocksRequestToJSON)(requestParameters['v1AnalyticsManageStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AnalyticsManageStocksResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы узнать, сколько товаров осталось на складах FBO. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1106-Razdel-upravleniia-ostatkami-analytics-manage-stocks) в сообществе разработчиков Ozon for dev. + * Управление остатками + */ + analyticsAPIManageStocks(clientId, apiKey, v1AnalyticsManageStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIManageStocksRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsManageStocksRequest: v1AnalyticsManageStocksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev. + * Получить позаказный отчёт о реализации товаров + */ + createCompanyFinanceRealizationPostingReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createCompanyFinanceRealizationPostingReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling createCompanyFinanceRealizationPostingReport().'); + } + if (requestParameters['reportV1CreateCompanyFinanceRealizationPostingReportRequest'] == null) { + throw new runtime.RequiredError('reportV1CreateCompanyFinanceRealizationPostingReportRequest', 'Required parameter "reportV1CreateCompanyFinanceRealizationPostingReportRequest" was null or undefined when calling createCompanyFinanceRealizationPostingReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/realization/posting/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON)(requestParameters['reportV1CreateCompanyFinanceRealizationPostingReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev. + * Получить позаказный отчёт о реализации товаров + */ + createCompanyFinanceRealizationPostingReport(clientId, apiKey, reportV1CreateCompanyFinanceRealizationPostingReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createCompanyFinanceRealizationPostingReportRaw({ clientId: clientId, apiKey: apiKey, reportV1CreateCompanyFinanceRealizationPostingReportRequest: reportV1CreateCompanyFinanceRealizationPostingReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список товаров, которые покупатели хотят купить со скидкой. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1856-Novye-metody-dlia-raboty-s-polucheniem-Spiska-zaiavok-na-skidku/) в сообществе разработчиков Ozon for dev. + * Получить список заявок на скидку + */ + getDiscountTaskListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getDiscountTaskListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getDiscountTaskListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/actions/discounts-task/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2GetDiscountTaskListV2RequestToJSON)(requestParameters['v2GetDiscountTaskListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2GetDiscountTaskListV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список товаров, которые покупатели хотят купить со скидкой. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1856-Novye-metody-dlia-raboty-s-polucheniem-Spiska-zaiavok-na-skidku/) в сообществе разработчиков Ozon for dev. + * Получить список заявок на скидку + */ + getDiscountTaskListV2(clientId, apiKey, v2GetDiscountTaskListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getDiscountTaskListV2Raw({ clientId: clientId, apiKey: apiKey, v2GetDiscountTaskListV2Request: v2GetDiscountTaskListV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2237-Novyi-metod-polucheniia-FBP-postingov-po-identifikatoru-otpravleniia/) в сообществе разработчиков Ozon for dev. + * Получить информацию об отправлении по идентификатору + */ + getFbpPostingRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/fbp/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingV1GetFbpPostingRequestToJSON)(requestParameters['postingV1GetFbpPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingV1GetFbpPostingResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2237-Novyi-metod-polucheniia-FBP-postingov-po-identifikatoru-otpravleniia/) в сообществе разработчиков Ozon for dev. + * Получить информацию об отправлении по идентификатору + */ + getFbpPosting(postingV1GetFbpPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFbpPostingRaw({ postingV1GetFbpPostingRequest: postingV1GetFbpPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления за день + */ + getFinanceAccrualByDayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getFinanceAccrualByDay().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getFinanceAccrualByDay().'); + } + if (requestParameters['financeV1GetFinanceAccrualByDayRequest'] == null) { + throw new runtime.RequiredError('financeV1GetFinanceAccrualByDayRequest', 'Required parameter "financeV1GetFinanceAccrualByDayRequest" was null or undefined when calling getFinanceAccrualByDay().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/accrual/by-day`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.FinanceV1GetFinanceAccrualByDayRequestToJSON)(requestParameters['financeV1GetFinanceAccrualByDayRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FinanceV1GetFinanceAccrualByDayResponseFromJSON)(jsonValue)); + }); + } + /** + * Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления за день + */ + getFinanceAccrualByDay(clientId, apiKey, financeV1GetFinanceAccrualByDayRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceAccrualByDayRaw({ clientId: clientId, apiKey: apiKey, financeV1GetFinanceAccrualByDayRequest: financeV1GetFinanceAccrualByDayRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления по отправлениям + */ + getFinanceAccrualPostingsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getFinanceAccrualPostings().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getFinanceAccrualPostings().'); + } + if (requestParameters['financeV1GetFinanceAccrualPostingsRequest'] == null) { + throw new runtime.RequiredError('financeV1GetFinanceAccrualPostingsRequest', 'Required parameter "financeV1GetFinanceAccrualPostingsRequest" was null or undefined when calling getFinanceAccrualPostings().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/accrual/postings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.FinanceV1GetFinanceAccrualPostingsRequestToJSON)(requestParameters['financeV1GetFinanceAccrualPostingsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FinanceV1GetFinanceAccrualPostingsResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления по отправлениям + */ + getFinanceAccrualPostings(clientId, apiKey, financeV1GetFinanceAccrualPostingsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceAccrualPostingsRaw({ clientId: clientId, apiKey: apiKey, financeV1GetFinanceAccrualPostingsRequest: financeV1GetFinanceAccrualPostingsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить справочник начислений + */ + getFinanceAccrualTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getFinanceAccrualTypes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getFinanceAccrualTypes().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/accrual/types`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FinanceV1GetFinanceAccrualTypesResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить справочник начислений + */ + getFinanceAccrualTypes(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceAccrualTypesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Соответствует разделу **Финансы → Баланс** в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1732-Novyi-metod-polucheniia-dannykh-po-balansu/) в сообществе разработчиков Ozon for dev. + * Получить отчёт о балансе + */ + getFinanceBalanceV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetFinanceBalanceV1Request'] == null) { + throw new runtime.RequiredError('v1GetFinanceBalanceV1Request', 'Required parameter "v1GetFinanceBalanceV1Request" was null or undefined when calling getFinanceBalanceV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/balance`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetFinanceBalanceV1RequestToJSON)(requestParameters['v1GetFinanceBalanceV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetFinanceBalanceV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Соответствует разделу **Финансы → Баланс** в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1732-Novyi-metod-polucheniia-dannykh-po-balansu/) в сообществе разработчиков Ozon for dev. + * Получить отчёт о балансе + */ + getFinanceBalanceV1(v1GetFinanceBalanceV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceBalanceV1Raw({ v1GetFinanceBalanceV1Request: v1GetFinanceBalanceV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации со стока FBO + */ + getSupplierReturnsSummaryReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getSupplierReturnsSummaryReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getSupplierReturnsSummaryReport().'); + } + if (requestParameters['v1GetSupplierReturnsSummaryReportRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplierReturnsSummaryReportRequest', 'Required parameter "v1GetSupplierReturnsSummaryReportRequest" was null or undefined when calling getSupplierReturnsSummaryReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/removal/from-stock/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetSupplierReturnsSummaryReportRequestToJSON)(requestParameters['v1GetSupplierReturnsSummaryReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetSupplierReturnsSummaryReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации со стока FBO + */ + getSupplierReturnsSummaryReport(clientId, apiKey, v1GetSupplierReturnsSummaryReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getSupplierReturnsSummaryReportRaw({ clientId: clientId, apiKey: apiKey, v1GetSupplierReturnsSummaryReportRequest: v1GetSupplierReturnsSummaryReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации с поставки FBO + */ + getSupplyReturnsSummaryReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getSupplyReturnsSummaryReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getSupplyReturnsSummaryReport().'); + } + if (requestParameters['v1GetSupplyReturnsSummaryReportRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplyReturnsSummaryReportRequest', 'Required parameter "v1GetSupplyReturnsSummaryReportRequest" was null or undefined when calling getSupplyReturnsSummaryReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/removal/from-supply/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetSupplyReturnsSummaryReportRequestToJSON)(requestParameters['v1GetSupplyReturnsSummaryReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetSupplyReturnsSummaryReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации с поставки FBO + */ + getSupplyReturnsSummaryReport(clientId, apiKey, v1GetSupplyReturnsSummaryReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getSupplyReturnsSummaryReportRaw({ clientId: clientId, apiKey: apiKey, v1GetSupplyReturnsSummaryReportRequest: v1GetSupplyReturnsSummaryReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, которые работают с цифровыми товарами. Чтобы получить список отправлений в любом статусе, используйте метод [/v3/posting/fbo/list](#operation/PostingFboList). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2050-Novyi-beta-metod-dlia-postingov-s-zagruzkoi-kodov-tsifrovykh-tovarov-v-Seller-API/) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingDigitalListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingDigitalList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingDigitalList().'); + } + if (requestParameters['postingV2PostingDigitalListRequest'] == null) { + throw new runtime.RequiredError('postingV2PostingDigitalListRequest', 'Required parameter "postingV2PostingDigitalListRequest" was null or undefined when calling postingDigitalList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/digital/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingV2PostingDigitalListRequestToJSON)(requestParameters['postingV2PostingDigitalListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingV2PostingDigitalListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, которые работают с цифровыми товарами. Чтобы получить список отправлений в любом статусе, используйте метод [/v3/posting/fbo/list](#operation/PostingFboList). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2050-Novyi-beta-metod-dlia-postingov-s-zagruzkoi-kodov-tsifrovykh-tovarov-v-Seller-API/) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingDigitalList(clientId, apiKey, postingV2PostingDigitalListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingDigitalListRaw({ clientId: clientId, apiKey: apiKey, postingV2PostingDigitalListRequest: postingV2PostingDigitalListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает информацию о скидке на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Получить информацию о скидке от количества + */ + productAPIGetProductStairwayDiscountByQuantityRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductStairwayDiscountByQuantity().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductStairwayDiscountByQuantity().'); + } + if (requestParameters['v1GetProductStairwayDiscountByQuantityRequest'] == null) { + throw new runtime.RequiredError('v1GetProductStairwayDiscountByQuantityRequest', 'Required parameter "v1GetProductStairwayDiscountByQuantityRequest" was null or undefined when calling productAPIGetProductStairwayDiscountByQuantity().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/stairway-discount/by-quantity/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetProductStairwayDiscountByQuantityRequestToJSON)(requestParameters['v1GetProductStairwayDiscountByQuantityRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetProductStairwayDiscountByQuantityResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает информацию о скидке на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Получить информацию о скидке от количества + */ + productAPIGetProductStairwayDiscountByQuantity(clientId, apiKey, v1GetProductStairwayDiscountByQuantityRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductStairwayDiscountByQuantityRaw({ clientId: clientId, apiKey: apiKey, v1GetProductStairwayDiscountByQuantityRequest: v1GetProductStairwayDiscountByQuantityRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Устанавливает или удаляет скидку на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Управлять скидкой от количества + */ + productAPISetProductStairwayDiscountByQuantityRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPISetProductStairwayDiscountByQuantity().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPISetProductStairwayDiscountByQuantity().'); + } + if (requestParameters['v1SetProductStairwayDiscountByQuantityRequest'] == null) { + throw new runtime.RequiredError('v1SetProductStairwayDiscountByQuantityRequest', 'Required parameter "v1SetProductStairwayDiscountByQuantityRequest" was null or undefined when calling productAPISetProductStairwayDiscountByQuantity().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/stairway-discount/by-quantity/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SetProductStairwayDiscountByQuantityRequestToJSON)(requestParameters['v1SetProductStairwayDiscountByQuantityRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SetProductStairwayDiscountByQuantityResponseFromJSON)(jsonValue)); + }); + } + /** + * Устанавливает или удаляет скидку на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Управлять скидкой от количества + */ + productAPISetProductStairwayDiscountByQuantity(clientId, apiKey, v1SetProductStairwayDiscountByQuantityRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPISetProductStairwayDiscountByQuantityRaw({ clientId: clientId, apiKey: apiKey, v1SetProductStairwayDiscountByQuantityRequest: v1SetProductStairwayDiscountByQuantityRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Создать сертификат качества + */ + productCertificateCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productCertificateCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productCertificateCreate().'); + } + if (requestParameters['certificationV2ProductCertificateCreateRequest'] == null) { + throw new runtime.RequiredError('certificationV2ProductCertificateCreateRequest', 'Required parameter "certificationV2ProductCertificateCreateRequest" was null or undefined when calling productCertificateCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certificate/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CertificationV2ProductCertificateCreateRequestToJSON)(requestParameters['certificationV2ProductCertificateCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificationV2ProductCertificateCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Создать сертификат качества + */ + productCertificateCreate(clientId, apiKey, certificationV2ProductCertificateCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productCertificateCreateRaw({ clientId: clientId, apiKey: apiKey, certificationV2ProductCertificateCreateRequest: certificationV2ProductCertificateCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certification/params](#operation/ProductCertificateParams). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить параметры для создания сертификата качества + */ + productCertificateOptionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productCertificateOptions().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productCertificateOptions().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certification/options`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificationV2ProductCertificateOptionsResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certification/params](#operation/ProductCertificateParams). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить параметры для создания сертификата качества + */ + productCertificateOptions(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productCertificateOptionsRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certificate/create](#operation/ProductCertificateCreate). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить обязательные параметры для создания сертификата качества + */ + productCertificateParamsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productCertificateParams().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productCertificateParams().'); + } + if (requestParameters['certificationV2ProductCertificateParamsRequest'] == null) { + throw new runtime.RequiredError('certificationV2ProductCertificateParamsRequest', 'Required parameter "certificationV2ProductCertificateParamsRequest" was null or undefined when calling productCertificateParams().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certification/params`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CertificationV2ProductCertificateParamsRequestToJSON)(requestParameters['certificationV2ProductCertificateParamsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificationV2ProductCertificateParamsResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certificate/create](#operation/ProductCertificateCreate). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить обязательные параметры для создания сертификата качества + */ + productCertificateParams(clientId, apiKey, certificationV2ProductCertificateParamsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productCertificateParamsRaw({ clientId: clientId, apiKey: apiKey, certificationV2ProductCertificateParamsRequest: certificationV2ProductCertificateParamsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Получить информацию о видимости товара + */ + productVisibilityInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productVisibilityInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productVisibilityInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/visibility/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductV1ProductVisibilityInfoRequestToJSON)(requestParameters['productV1ProductVisibilityInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductV1ProductVisibilityInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Получить информацию о видимости товара + */ + productVisibilityInfo(clientId, apiKey, productV1ProductVisibilityInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productVisibilityInfoRaw({ clientId: clientId, apiKey: apiKey, productV1ProductVisibilityInfoRequest: productV1ProductVisibilityInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Настроить видимость товара на витрине Ozon и Ozon Селект + */ + productVisibilitySetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/visibility/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductV1ProductVisibilitySetRequestToJSON)(requestParameters['productV1ProductVisibilitySetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductV1ProductVisibilitySetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Настроить видимость товара на витрине Ozon и Ozon Селект + */ + productVisibilitySet(productV1ProductVisibilitySetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productVisibilitySetRaw({ productV1ProductVisibilitySetRequest: productV1ProductVisibilitySetRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.BetaMethod = BetaMethod; diff --git a/dist/apis/BrandAPI.d.ts b/dist/apis/BrandAPI.d.ts new file mode 100644 index 0000000..4feaa48 --- /dev/null +++ b/dist/apis/BrandAPI.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { BrandBrandCompanyCertificationListRequest, BrandBrandCompanyCertificationListResponse } from '../models/index'; +export interface BrandAPIBrandCompanyCertificationListRequest { + clientId: string; + apiKey: string; + brandBrandCompanyCertificationListRequest: BrandBrandCompanyCertificationListRequest; +} +/** + * + */ +export declare class BrandAPI extends runtime.BaseAPI { + /** + * Метод для получения списка брендов, для которых требуется предоставить сертификат. Ответ содержит список брендов, товары которых есть в вашем личном кабинете. Список брендов может изменяться, если Ozon получит требование от бренда предоставлять сертификат. [Подробнее о работе с брендами в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/characteristics/brendy) + * Список сертифицируемых брендов + */ + brandAPIBrandCompanyCertificationListRaw(requestParameters: BrandAPIBrandCompanyCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка брендов, для которых требуется предоставить сертификат. Ответ содержит список брендов, товары которых есть в вашем личном кабинете. Список брендов может изменяться, если Ozon получит требование от бренда предоставлять сертификат. [Подробнее о работе с брендами в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/characteristics/brendy) + * Список сертифицируемых брендов + */ + brandAPIBrandCompanyCertificationList(clientId: string, apiKey: string, brandBrandCompanyCertificationListRequest: BrandBrandCompanyCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/BrandAPI.js b/dist/apis/BrandAPI.js new file mode 100644 index 0000000..6020c46 --- /dev/null +++ b/dist/apis/BrandAPI.js @@ -0,0 +1,77 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BrandAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class BrandAPI extends runtime.BaseAPI { + /** + * Метод для получения списка брендов, для которых требуется предоставить сертификат. Ответ содержит список брендов, товары которых есть в вашем личном кабинете. Список брендов может изменяться, если Ozon получит требование от бренда предоставлять сертификат. [Подробнее о работе с брендами в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/characteristics/brendy) + * Список сертифицируемых брендов + */ + brandAPIBrandCompanyCertificationListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling brandAPIBrandCompanyCertificationList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling brandAPIBrandCompanyCertificationList().'); + } + if (requestParameters['brandBrandCompanyCertificationListRequest'] == null) { + throw new runtime.RequiredError('brandBrandCompanyCertificationListRequest', 'Required parameter "brandBrandCompanyCertificationListRequest" was null or undefined when calling brandAPIBrandCompanyCertificationList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/brand/company-certification/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.BrandBrandCompanyCertificationListRequestToJSON)(requestParameters['brandBrandCompanyCertificationListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandBrandCompanyCertificationListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка брендов, для которых требуется предоставить сертификат. Ответ содержит список брендов, товары которых есть в вашем личном кабинете. Список брендов может изменяться, если Ozon получит требование от бренда предоставлять сертификат. [Подробнее о работе с брендами в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/characteristics/brendy) + * Список сертифицируемых брендов + */ + brandAPIBrandCompanyCertificationList(clientId, apiKey, brandBrandCompanyCertificationListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.brandAPIBrandCompanyCertificationListRaw({ clientId: clientId, apiKey: apiKey, brandBrandCompanyCertificationListRequest: brandBrandCompanyCertificationListRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.BrandAPI = BrandAPI; diff --git a/dist/apis/CancelReasonAPI.d.ts b/dist/apis/CancelReasonAPI.d.ts new file mode 100644 index 0000000..7be823d --- /dev/null +++ b/dist/apis/CancelReasonAPI.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1CancelReasonListByOrderRequest, V1CancelReasonListByOrderResponse, V1CancelReasonListByPostingRequest, V1CancelReasonListByPostingResponse, V1CancelReasonListResponse } from '../models/index'; +export interface CancelReasonAPICancelReasonListByPostingRequest { + v1CancelReasonListByPostingRequest?: V1CancelReasonListByPostingRequest; +} +export interface CancelReasonListByOrderRequest { + v1CancelReasonListByOrderRequest?: V1CancelReasonListByOrderRequest; +} +/** + * + */ +export declare class CancelReasonAPI extends runtime.BaseAPI { + /** + * Возвращает возможные причины отмены для отправления. + * Причины отмены отправления + */ + cancelReasonAPICancelReasonListByPostingRaw(requestParameters: CancelReasonAPICancelReasonListByPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает возможные причины отмены для отправления. + * Причины отмены отправления + */ + cancelReasonAPICancelReasonListByPosting(v1CancelReasonListByPostingRequest?: V1CancelReasonListByPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает возможные причины отмены отправлений и заказов. + * Причины отмены отправлений + */ + cancelReasonListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает возможные причины отмены отправлений и заказов. + * Причины отмены отправлений + */ + cancelReasonList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает возможные причины отмены для заказа. + * Причины отмены заказа + */ + cancelReasonListByOrderRaw(requestParameters: CancelReasonListByOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает возможные причины отмены для заказа. + * Причины отмены заказа + */ + cancelReasonListByOrder(v1CancelReasonListByOrderRequest?: V1CancelReasonListByOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/CancelReasonAPI.js b/dist/apis/CancelReasonAPI.js new file mode 100644 index 0000000..720f080 --- /dev/null +++ b/dist/apis/CancelReasonAPI.js @@ -0,0 +1,118 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CancelReasonAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class CancelReasonAPI extends runtime.BaseAPI { + /** + * Возвращает возможные причины отмены для отправления. + * Причины отмены отправления + */ + cancelReasonAPICancelReasonListByPostingRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cancel-reason/list-by-posting`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CancelReasonListByPostingRequestToJSON)(requestParameters['v1CancelReasonListByPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CancelReasonListByPostingResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает возможные причины отмены для отправления. + * Причины отмены отправления + */ + cancelReasonAPICancelReasonListByPosting(v1CancelReasonListByPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cancelReasonAPICancelReasonListByPostingRaw({ v1CancelReasonListByPostingRequest: v1CancelReasonListByPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает возможные причины отмены отправлений и заказов. + * Причины отмены отправлений + */ + cancelReasonListRaw(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + const response = yield this.request({ + path: `/v1/cancel-reason/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CancelReasonListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает возможные причины отмены отправлений и заказов. + * Причины отмены отправлений + */ + cancelReasonList(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cancelReasonListRaw(initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает возможные причины отмены для заказа. + * Причины отмены заказа + */ + cancelReasonListByOrderRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cancel-reason/list-by-order`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CancelReasonListByOrderRequestToJSON)(requestParameters['v1CancelReasonListByOrderRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CancelReasonListByOrderResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает возможные причины отмены для заказа. + * Причины отмены заказа + */ + cancelReasonListByOrder(v1CancelReasonListByOrderRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cancelReasonListByOrderRaw({ v1CancelReasonListByOrderRequest: v1CancelReasonListByOrderRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.CancelReasonAPI = CancelReasonAPI; diff --git a/dist/apis/CancellationAPI.d.ts b/dist/apis/CancellationAPI.d.ts new file mode 100644 index 0000000..8b2feff --- /dev/null +++ b/dist/apis/CancellationAPI.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V2ConditionalCancellationMoveV2Request, V2GetConditionalCancellationListV2Request, V2GetConditionalCancellationListV2Response } from '../models/index'; +export interface CancellationAPIConditionalCancellationApproveV2Request { + v2ConditionalCancellationMoveV2Request: V2ConditionalCancellationMoveV2Request; +} +export interface CancellationAPIConditionalCancellationRejectV2Request { + v2ConditionalCancellationMoveV2Request: V2ConditionalCancellationMoveV2Request; +} +export interface CancellationAPIGetConditionalCancellationListV2Request { + v2GetConditionalCancellationListV2Request: V2GetConditionalCancellationListV2Request; +} +/** + * + */ +export declare class CancellationAPI extends runtime.BaseAPI { + /** + * Метод позволяет согласовать заявку на отмену в статусе `ON_APPROVAL`. Заказ будет отменён, а деньги вернутся покупателю. + * Подтвердить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationApproveV2Raw(requestParameters: CancellationAPIConditionalCancellationApproveV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет согласовать заявку на отмену в статусе `ON_APPROVAL`. Заказ будет отменён, а деньги вернутся покупателю. + * Подтвердить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationApproveV2(v2ConditionalCancellationMoveV2Request: V2ConditionalCancellationMoveV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет отклонить заявку на отмену в статусе `ON_APPROVAL`. В параметре `comment` опишите причину. Заказ останется в том же статусе, и его нужно будет доставить покупателю. + * Отклонить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationRejectV2Raw(requestParameters: CancellationAPIConditionalCancellationRejectV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет отклонить заявку на отмену в статусе `ON_APPROVAL`. В параметре `comment` опишите причину. Заказ останется в том же статусе, и его нужно будет доставить покупателю. + * Отклонить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationRejectV2(v2ConditionalCancellationMoveV2Request: V2ConditionalCancellationMoveV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка заявок на отмену rFBS-заказов. + * Получить список заявок на отмену rFBS + */ + cancellationAPIGetConditionalCancellationListV2Raw(requestParameters: CancellationAPIGetConditionalCancellationListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка заявок на отмену rFBS-заказов. + * Получить список заявок на отмену rFBS + */ + cancellationAPIGetConditionalCancellationListV2(v2GetConditionalCancellationListV2Request: V2GetConditionalCancellationListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/CancellationAPI.js b/dist/apis/CancellationAPI.js new file mode 100644 index 0000000..57ccaf6 --- /dev/null +++ b/dist/apis/CancellationAPI.js @@ -0,0 +1,127 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CancellationAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class CancellationAPI extends runtime.BaseAPI { + /** + * Метод позволяет согласовать заявку на отмену в статусе `ON_APPROVAL`. Заказ будет отменён, а деньги вернутся покупателю. + * Подтвердить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationApproveV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2ConditionalCancellationMoveV2Request'] == null) { + throw new runtime.RequiredError('v2ConditionalCancellationMoveV2Request', 'Required parameter "v2ConditionalCancellationMoveV2Request" was null or undefined when calling cancellationAPIConditionalCancellationApproveV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/conditional-cancellation/approve`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2ConditionalCancellationMoveV2RequestToJSON)(requestParameters['v2ConditionalCancellationMoveV2Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод позволяет согласовать заявку на отмену в статусе `ON_APPROVAL`. Заказ будет отменён, а деньги вернутся покупателю. + * Подтвердить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationApproveV2(v2ConditionalCancellationMoveV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.cancellationAPIConditionalCancellationApproveV2Raw({ v2ConditionalCancellationMoveV2Request: v2ConditionalCancellationMoveV2Request }, initOverrides); + }); + } + /** + * Метод позволяет отклонить заявку на отмену в статусе `ON_APPROVAL`. В параметре `comment` опишите причину. Заказ останется в том же статусе, и его нужно будет доставить покупателю. + * Отклонить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationRejectV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2ConditionalCancellationMoveV2Request'] == null) { + throw new runtime.RequiredError('v2ConditionalCancellationMoveV2Request', 'Required parameter "v2ConditionalCancellationMoveV2Request" was null or undefined when calling cancellationAPIConditionalCancellationRejectV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/conditional-cancellation/reject`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2ConditionalCancellationMoveV2RequestToJSON)(requestParameters['v2ConditionalCancellationMoveV2Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод позволяет отклонить заявку на отмену в статусе `ON_APPROVAL`. В параметре `comment` опишите причину. Заказ останется в том же статусе, и его нужно будет доставить покупателю. + * Отклонить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationRejectV2(v2ConditionalCancellationMoveV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.cancellationAPIConditionalCancellationRejectV2Raw({ v2ConditionalCancellationMoveV2Request: v2ConditionalCancellationMoveV2Request }, initOverrides); + }); + } + /** + * Метод для получения списка заявок на отмену rFBS-заказов. + * Получить список заявок на отмену rFBS + */ + cancellationAPIGetConditionalCancellationListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2GetConditionalCancellationListV2Request'] == null) { + throw new runtime.RequiredError('v2GetConditionalCancellationListV2Request', 'Required parameter "v2GetConditionalCancellationListV2Request" was null or undefined when calling cancellationAPIGetConditionalCancellationListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/conditional-cancellation/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2GetConditionalCancellationListV2RequestToJSON)(requestParameters['v2GetConditionalCancellationListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2GetConditionalCancellationListV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка заявок на отмену rFBS-заказов. + * Получить список заявок на отмену rFBS + */ + cancellationAPIGetConditionalCancellationListV2(v2GetConditionalCancellationListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cancellationAPIGetConditionalCancellationListV2Raw({ v2GetConditionalCancellationListV2Request: v2GetConditionalCancellationListV2Request }, initOverrides); + return yield response.value(); + }); + } +} +exports.CancellationAPI = CancellationAPI; diff --git a/dist/apis/CarriageAPI.d.ts b/dist/apis/CarriageAPI.d.ts new file mode 100644 index 0000000..2a28ce0 --- /dev/null +++ b/dist/apis/CarriageAPI.d.ts @@ -0,0 +1,201 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Carriagev1CarriageContainerApproveRequest, Carriagev1CarriageContainerApproveResponse, Carriagev1CarriageContainerCancelRequest, Carriagev1CarriageContainerCancelResponse, Carriagev1CarriageContainerCreateRequest, Carriagev1CarriageContainerCreateResponse, Carriagev1CarriageContainerDocumentGetRequest, Carriagev1CarriageContainerDocumentGetResponse, Carriagev1CarriageContainerFillRequest, Carriagev1CarriageContainerFillResponse, Carriagev1CarriageContainerGetRequest, Carriagev1CarriageContainerGetResponse, Carriagev1CarriageContainerLabelGetRequest, Carriagev1CarriageContainerLabelGetResponse, Carriagev1CarriageContainerListRequest, Carriagev1CarriageContainerListResponse, Carriagev1CarriageContainerPlaceIntoRequest, Carriagev1CarriageContainerPlaceIntoResponse, Carriagev1CarriageContainerRemoveFromRequest, Carriagev1CarriageContainerRemoveFromResponse, Carriagev1CarriageContainerRemovePostingsRequest, Carriagev1CarriageContainerRemovePostingsResponse, Carriagev1CarriageContainerStatusGetRequest, Carriagev1CarriageContainerStatusGetResponse, Carriagev1CarriageContainerTaskInfoRequest, Carriagev1CarriageContainerTaskInfoResponse } from '../models/index'; +export interface CarriageContainerApproveRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerApproveRequest: Carriagev1CarriageContainerApproveRequest; +} +export interface CarriageContainerCancelRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerCancelRequest: Carriagev1CarriageContainerCancelRequest; +} +export interface CarriageContainerCreateRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerCreateRequest: Carriagev1CarriageContainerCreateRequest; +} +export interface CarriageContainerDocumentGetRequest { + carriagev1CarriageContainerDocumentGetRequest: Carriagev1CarriageContainerDocumentGetRequest; +} +export interface CarriageContainerFillRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerFillRequest: Carriagev1CarriageContainerFillRequest; +} +export interface CarriageContainerGetRequest { + carriagev1CarriageContainerGetRequest: Carriagev1CarriageContainerGetRequest; +} +export interface CarriageContainerLabelGetRequest { + carriagev1CarriageContainerLabelGetRequest: Carriagev1CarriageContainerLabelGetRequest; +} +export interface CarriageContainerListRequest { + carriagev1CarriageContainerListRequest: Carriagev1CarriageContainerListRequest; +} +export interface CarriageContainerPlaceIntoRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerPlaceIntoRequest: Carriagev1CarriageContainerPlaceIntoRequest; +} +export interface CarriageContainerRemoveFromRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerRemoveFromRequest: Carriagev1CarriageContainerRemoveFromRequest; +} +export interface CarriageContainerRemovePostingsRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerRemovePostingsRequest: Carriagev1CarriageContainerRemovePostingsRequest; +} +export interface CarriageContainerStatusGetRequest { + carriagev1CarriageContainerStatusGetRequest: Carriagev1CarriageContainerStatusGetRequest; +} +export interface CarriageContainerTaskInfoRequest { + carriagev1CarriageContainerTaskInfoRequest: Carriagev1CarriageContainerTaskInfoRequest; +} +/** + * + */ +export declare class CarriageAPI extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Подтвердить состав грузоместа + */ + carriageContainerApproveRaw(requestParameters: CarriageContainerApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Подтвердить состав грузоместа + */ + carriageContainerApprove(clientId: string, apiKey: string, carriagev1CarriageContainerApproveRequest: Carriagev1CarriageContainerApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Отменить грузоместо + */ + carriageContainerCancelRaw(requestParameters: CarriageContainerCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Отменить грузоместо + */ + carriageContainerCancel(clientId: string, apiKey: string, carriagev1CarriageContainerCancelRequest: Carriagev1CarriageContainerCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Создать грузоместо + */ + carriageContainerCreateRaw(requestParameters: CarriageContainerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Создать грузоместо + */ + carriageContainerCreate(clientId: string, apiKey: string, carriagev1CarriageContainerCreateRequest: Carriagev1CarriageContainerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить документы по грузоместам — ТрН и лист отгрузки + */ + carriageContainerDocumentGetRaw(requestParameters: CarriageContainerDocumentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить документы по грузоместам — ТрН и лист отгрузки + */ + carriageContainerDocumentGet(carriagev1CarriageContainerDocumentGetRequest: Carriagev1CarriageContainerDocumentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Наполнить грузоместо отправлениями + */ + carriageContainerFillRaw(requestParameters: CarriageContainerFillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Наполнить грузоместо отправлениями + */ + carriageContainerFill(clientId: string, apiKey: string, carriagev1CarriageContainerFillRequest: Carriagev1CarriageContainerFillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить информацию о грузоместах + */ + carriageContainerGetRaw(requestParameters: CarriageContainerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить информацию о грузоместах + */ + carriageContainerGet(carriagev1CarriageContainerGetRequest: Carriagev1CarriageContainerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить этикетку по грузоместам + */ + carriageContainerLabelGetRaw(requestParameters: CarriageContainerLabelGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить этикетку по грузоместам + */ + carriageContainerLabelGet(carriagev1CarriageContainerLabelGetRequest: Carriagev1CarriageContainerLabelGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить список грузомест + */ + carriageContainerListRaw(requestParameters: CarriageContainerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить список грузомест + */ + carriageContainerList(carriagev1CarriageContainerListRequest: Carriagev1CarriageContainerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Разместить коробки на палете + */ + carriageContainerPlaceIntoRaw(requestParameters: CarriageContainerPlaceIntoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Разместить коробки на палете + */ + carriageContainerPlaceInto(clientId: string, apiKey: string, carriagev1CarriageContainerPlaceIntoRequest: Carriagev1CarriageContainerPlaceIntoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать коробки с палеты + */ + carriageContainerRemoveFromRaw(requestParameters: CarriageContainerRemoveFromRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать коробки с палеты + */ + carriageContainerRemoveFrom(clientId: string, apiKey: string, carriagev1CarriageContainerRemoveFromRequest: Carriagev1CarriageContainerRemoveFromRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать отправления из грузоместа + */ + carriageContainerRemovePostingsRaw(requestParameters: CarriageContainerRemovePostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать отправления из грузоместа + */ + carriageContainerRemovePostings(clientId: string, apiKey: string, carriagev1CarriageContainerRemovePostingsRequest: Carriagev1CarriageContainerRemovePostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус грузомест FBS + */ + carriageContainerStatusGetRaw(requestParameters: CarriageContainerStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус грузомест FBS + */ + carriageContainerStatusGet(carriagev1CarriageContainerStatusGetRequest: Carriagev1CarriageContainerStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус задачи грузового места + */ + carriageContainerTaskInfoRaw(requestParameters: CarriageContainerTaskInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус задачи грузового места + */ + carriageContainerTaskInfo(carriagev1CarriageContainerTaskInfoRequest: Carriagev1CarriageContainerTaskInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/CarriageAPI.js b/dist/apis/CarriageAPI.js new file mode 100644 index 0000000..6255ac0 --- /dev/null +++ b/dist/apis/CarriageAPI.js @@ -0,0 +1,533 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CarriageAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class CarriageAPI extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Подтвердить состав грузоместа + */ + carriageContainerApproveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerApprove().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerApprove().'); + } + if (requestParameters['carriagev1CarriageContainerApproveRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerApproveRequest', 'Required parameter "carriagev1CarriageContainerApproveRequest" was null or undefined when calling carriageContainerApprove().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/approve`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerApproveRequestToJSON)(requestParameters['carriagev1CarriageContainerApproveRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerApproveResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Подтвердить состав грузоместа + */ + carriageContainerApprove(clientId, apiKey, carriagev1CarriageContainerApproveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerApproveRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerApproveRequest: carriagev1CarriageContainerApproveRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Отменить грузоместо + */ + carriageContainerCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerCancel().'); + } + if (requestParameters['carriagev1CarriageContainerCancelRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerCancelRequest', 'Required parameter "carriagev1CarriageContainerCancelRequest" was null or undefined when calling carriageContainerCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerCancelRequestToJSON)(requestParameters['carriagev1CarriageContainerCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Отменить грузоместо + */ + carriageContainerCancel(clientId, apiKey, carriagev1CarriageContainerCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerCancelRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerCancelRequest: carriagev1CarriageContainerCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Создать грузоместо + */ + carriageContainerCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerCreate().'); + } + if (requestParameters['carriagev1CarriageContainerCreateRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerCreateRequest', 'Required parameter "carriagev1CarriageContainerCreateRequest" was null or undefined when calling carriageContainerCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerCreateRequestToJSON)(requestParameters['carriagev1CarriageContainerCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Создать грузоместо + */ + carriageContainerCreate(clientId, apiKey, carriagev1CarriageContainerCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerCreateRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerCreateRequest: carriagev1CarriageContainerCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить документы по грузоместам — ТрН и лист отгрузки + */ + carriageContainerDocumentGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerDocumentGetRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerDocumentGetRequest', 'Required parameter "carriagev1CarriageContainerDocumentGetRequest" was null or undefined when calling carriageContainerDocumentGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/document/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerDocumentGetRequestToJSON)(requestParameters['carriagev1CarriageContainerDocumentGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerDocumentGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить документы по грузоместам — ТрН и лист отгрузки + */ + carriageContainerDocumentGet(carriagev1CarriageContainerDocumentGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerDocumentGetRaw({ carriagev1CarriageContainerDocumentGetRequest: carriagev1CarriageContainerDocumentGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Наполнить грузоместо отправлениями + */ + carriageContainerFillRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerFill().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerFill().'); + } + if (requestParameters['carriagev1CarriageContainerFillRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerFillRequest', 'Required parameter "carriagev1CarriageContainerFillRequest" was null or undefined when calling carriageContainerFill().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/fill`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerFillRequestToJSON)(requestParameters['carriagev1CarriageContainerFillRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerFillResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Наполнить грузоместо отправлениями + */ + carriageContainerFill(clientId, apiKey, carriagev1CarriageContainerFillRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerFillRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerFillRequest: carriagev1CarriageContainerFillRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить информацию о грузоместах + */ + carriageContainerGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerGetRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerGetRequest', 'Required parameter "carriagev1CarriageContainerGetRequest" was null or undefined when calling carriageContainerGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerGetRequestToJSON)(requestParameters['carriagev1CarriageContainerGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить информацию о грузоместах + */ + carriageContainerGet(carriagev1CarriageContainerGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerGetRaw({ carriagev1CarriageContainerGetRequest: carriagev1CarriageContainerGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить этикетку по грузоместам + */ + carriageContainerLabelGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerLabelGetRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerLabelGetRequest', 'Required parameter "carriagev1CarriageContainerLabelGetRequest" was null or undefined when calling carriageContainerLabelGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/label/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerLabelGetRequestToJSON)(requestParameters['carriagev1CarriageContainerLabelGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerLabelGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить этикетку по грузоместам + */ + carriageContainerLabelGet(carriagev1CarriageContainerLabelGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerLabelGetRaw({ carriagev1CarriageContainerLabelGetRequest: carriagev1CarriageContainerLabelGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить список грузомест + */ + carriageContainerListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerListRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerListRequest', 'Required parameter "carriagev1CarriageContainerListRequest" was null or undefined when calling carriageContainerList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerListRequestToJSON)(requestParameters['carriagev1CarriageContainerListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить список грузомест + */ + carriageContainerList(carriagev1CarriageContainerListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerListRaw({ carriagev1CarriageContainerListRequest: carriagev1CarriageContainerListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Разместить коробки на палете + */ + carriageContainerPlaceIntoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerPlaceInto().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerPlaceInto().'); + } + if (requestParameters['carriagev1CarriageContainerPlaceIntoRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerPlaceIntoRequest', 'Required parameter "carriagev1CarriageContainerPlaceIntoRequest" was null or undefined when calling carriageContainerPlaceInto().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/place-into`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerPlaceIntoRequestToJSON)(requestParameters['carriagev1CarriageContainerPlaceIntoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerPlaceIntoResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Разместить коробки на палете + */ + carriageContainerPlaceInto(clientId, apiKey, carriagev1CarriageContainerPlaceIntoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerPlaceIntoRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerPlaceIntoRequest: carriagev1CarriageContainerPlaceIntoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать коробки с палеты + */ + carriageContainerRemoveFromRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerRemoveFrom().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerRemoveFrom().'); + } + if (requestParameters['carriagev1CarriageContainerRemoveFromRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerRemoveFromRequest', 'Required parameter "carriagev1CarriageContainerRemoveFromRequest" was null or undefined when calling carriageContainerRemoveFrom().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/remove-from`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerRemoveFromRequestToJSON)(requestParameters['carriagev1CarriageContainerRemoveFromRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerRemoveFromResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать коробки с палеты + */ + carriageContainerRemoveFrom(clientId, apiKey, carriagev1CarriageContainerRemoveFromRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerRemoveFromRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerRemoveFromRequest: carriagev1CarriageContainerRemoveFromRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать отправления из грузоместа + */ + carriageContainerRemovePostingsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerRemovePostings().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerRemovePostings().'); + } + if (requestParameters['carriagev1CarriageContainerRemovePostingsRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerRemovePostingsRequest', 'Required parameter "carriagev1CarriageContainerRemovePostingsRequest" was null or undefined when calling carriageContainerRemovePostings().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/remove-postings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerRemovePostingsRequestToJSON)(requestParameters['carriagev1CarriageContainerRemovePostingsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerRemovePostingsResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать отправления из грузоместа + */ + carriageContainerRemovePostings(clientId, apiKey, carriagev1CarriageContainerRemovePostingsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerRemovePostingsRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerRemovePostingsRequest: carriagev1CarriageContainerRemovePostingsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус грузомест FBS + */ + carriageContainerStatusGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerStatusGetRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerStatusGetRequest', 'Required parameter "carriagev1CarriageContainerStatusGetRequest" was null or undefined when calling carriageContainerStatusGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/status/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerStatusGetRequestToJSON)(requestParameters['carriagev1CarriageContainerStatusGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerStatusGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус грузомест FBS + */ + carriageContainerStatusGet(carriagev1CarriageContainerStatusGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerStatusGetRaw({ carriagev1CarriageContainerStatusGetRequest: carriagev1CarriageContainerStatusGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус задачи грузового места + */ + carriageContainerTaskInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerTaskInfoRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerTaskInfoRequest', 'Required parameter "carriagev1CarriageContainerTaskInfoRequest" was null or undefined when calling carriageContainerTaskInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/task/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Carriagev1CarriageContainerTaskInfoRequestToJSON)(requestParameters['carriagev1CarriageContainerTaskInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Carriagev1CarriageContainerTaskInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус задачи грузового места + */ + carriageContainerTaskInfo(carriagev1CarriageContainerTaskInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerTaskInfoRaw({ carriagev1CarriageContainerTaskInfoRequest: carriagev1CarriageContainerTaskInfoRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.CarriageAPI = CarriageAPI; diff --git a/dist/apis/CategoryAPI.d.ts b/dist/apis/CategoryAPI.d.ts new file mode 100644 index 0000000..c810036 --- /dev/null +++ b/dist/apis/CategoryAPI.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GetAttributeValuesRequest, V1GetAttributeValuesResponse, V1GetAttributesRequest, V1GetAttributesResponse, V1GetProductPlacementZoneInfoRequest, V1GetProductPlacementZoneInfoResponse, V1GetTreeRequest, V1GetTreeResponse, V1SearchAttributeValuesRequest, V1SearchAttributeValuesResponse } from '../models/index'; +export interface DescriptionCategoryAPIGetAttributeValuesRequest { + clientId: string; + apiKey: string; + v1GetAttributeValuesRequest: V1GetAttributeValuesRequest; +} +export interface DescriptionCategoryAPIGetAttributesRequest { + clientId: string; + apiKey: string; + v1GetAttributesRequest: V1GetAttributesRequest; +} +export interface DescriptionCategoryAPIGetTreeRequest { + clientId: string; + apiKey: string; + v1GetTreeRequest: V1GetTreeRequest; +} +export interface DescriptionCategoryAPISearchAttributeValuesRequest { + clientId: string; + apiKey: string; + v1SearchAttributeValuesRequest: V1SearchAttributeValuesRequest; +} +export interface ProductAPIGetProductPlacementZoneInfoRequest { + v1GetProductPlacementZoneInfoRequest: V1GetProductPlacementZoneInfoRequest; +} +/** + * + */ +export declare class CategoryAPI extends runtime.BaseAPI { + /** + * Возвращает справочник значений характеристики. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Справочник значений характеристики + */ + descriptionCategoryAPIGetAttributeValuesRaw(requestParameters: DescriptionCategoryAPIGetAttributeValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает справочник значений характеристики. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Справочник значений характеристики + */ + descriptionCategoryAPIGetAttributeValues(clientId: string, apiKey: string, v1GetAttributeValuesRequest: V1GetAttributeValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получение характеристик для указанных категории и типа товара. Если у `dictionary_id` значение `0`, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Запросите их методом [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * Список характеристик категории + */ + descriptionCategoryAPIGetAttributesRaw(requestParameters: DescriptionCategoryAPIGetAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получение характеристик для указанных категории и типа товара. Если у `dictionary_id` значение `0`, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Запросите их методом [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * Список характеристик категории + */ + descriptionCategoryAPIGetAttributes(clientId: string, apiKey: string, v1GetAttributesRequest: V1GetAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает категории и типы для товаров в виде дерева. Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя. + * Дерево категорий и типов товаров + */ + descriptionCategoryAPIGetTreeRaw(requestParameters: DescriptionCategoryAPIGetTreeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает категории и типы для товаров в виде дерева. Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя. + * Дерево категорий и типов товаров + */ + descriptionCategoryAPIGetTree(clientId: string, apiKey: string, v1GetTreeRequest: V1GetTreeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает справочные значения характеристики по заданному значению `value` в запросе. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Поиск по справочным значениям характеристики + */ + descriptionCategoryAPISearchAttributeValuesRaw(requestParameters: DescriptionCategoryAPISearchAttributeValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает справочные значения характеристики по заданному значению `value` в запросе. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Поиск по справочным значениям характеристики + */ + descriptionCategoryAPISearchAttributeValues(clientId: string, apiKey: string, v1SearchAttributeValuesRequest: V1SearchAttributeValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете отправить не больше 10 запросов в секунду. [Подробнее о зонах размещения в Базе знаний продавца](https://seller-edu.ozon.ru/libra/fbo/gruzomesta-i-podgotovka-k-otgruzke/k-kakoi-zone-otnositsya-tovar) + * Получить зоны размещения товаров по SKU перед поставкой + */ + productAPIGetProductPlacementZoneInfoRaw(requestParameters: ProductAPIGetProductPlacementZoneInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете отправить не больше 10 запросов в секунду. [Подробнее о зонах размещения в Базе знаний продавца](https://seller-edu.ozon.ru/libra/fbo/gruzomesta-i-podgotovka-k-otgruzke/k-kakoi-zone-otnositsya-tovar) + * Получить зоны размещения товаров по SKU перед поставкой + */ + productAPIGetProductPlacementZoneInfo(v1GetProductPlacementZoneInfoRequest: V1GetProductPlacementZoneInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/CategoryAPI.js b/dist/apis/CategoryAPI.js new file mode 100644 index 0000000..abf3cf3 --- /dev/null +++ b/dist/apis/CategoryAPI.js @@ -0,0 +1,241 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CategoryAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class CategoryAPI extends runtime.BaseAPI { + /** + * Возвращает справочник значений характеристики. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Справочник значений характеристики + */ + descriptionCategoryAPIGetAttributeValuesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling descriptionCategoryAPIGetAttributeValues().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling descriptionCategoryAPIGetAttributeValues().'); + } + if (requestParameters['v1GetAttributeValuesRequest'] == null) { + throw new runtime.RequiredError('v1GetAttributeValuesRequest', 'Required parameter "v1GetAttributeValuesRequest" was null or undefined when calling descriptionCategoryAPIGetAttributeValues().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/description-category/attribute/values`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetAttributeValuesRequestToJSON)(requestParameters['v1GetAttributeValuesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetAttributeValuesResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает справочник значений характеристики. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Справочник значений характеристики + */ + descriptionCategoryAPIGetAttributeValues(clientId, apiKey, v1GetAttributeValuesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.descriptionCategoryAPIGetAttributeValuesRaw({ clientId: clientId, apiKey: apiKey, v1GetAttributeValuesRequest: v1GetAttributeValuesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получение характеристик для указанных категории и типа товара. Если у `dictionary_id` значение `0`, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Запросите их методом [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * Список характеристик категории + */ + descriptionCategoryAPIGetAttributesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling descriptionCategoryAPIGetAttributes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling descriptionCategoryAPIGetAttributes().'); + } + if (requestParameters['v1GetAttributesRequest'] == null) { + throw new runtime.RequiredError('v1GetAttributesRequest', 'Required parameter "v1GetAttributesRequest" was null or undefined when calling descriptionCategoryAPIGetAttributes().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/description-category/attribute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetAttributesRequestToJSON)(requestParameters['v1GetAttributesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetAttributesResponseFromJSON)(jsonValue)); + }); + } + /** + * Получение характеристик для указанных категории и типа товара. Если у `dictionary_id` значение `0`, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Запросите их методом [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * Список характеристик категории + */ + descriptionCategoryAPIGetAttributes(clientId, apiKey, v1GetAttributesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.descriptionCategoryAPIGetAttributesRaw({ clientId: clientId, apiKey: apiKey, v1GetAttributesRequest: v1GetAttributesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает категории и типы для товаров в виде дерева. Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя. + * Дерево категорий и типов товаров + */ + descriptionCategoryAPIGetTreeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling descriptionCategoryAPIGetTree().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling descriptionCategoryAPIGetTree().'); + } + if (requestParameters['v1GetTreeRequest'] == null) { + throw new runtime.RequiredError('v1GetTreeRequest', 'Required parameter "v1GetTreeRequest" was null or undefined when calling descriptionCategoryAPIGetTree().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/description-category/tree`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetTreeRequestToJSON)(requestParameters['v1GetTreeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetTreeResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает категории и типы для товаров в виде дерева. Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя. + * Дерево категорий и типов товаров + */ + descriptionCategoryAPIGetTree(clientId, apiKey, v1GetTreeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.descriptionCategoryAPIGetTreeRaw({ clientId: clientId, apiKey: apiKey, v1GetTreeRequest: v1GetTreeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает справочные значения характеристики по заданному значению `value` в запросе. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Поиск по справочным значениям характеристики + */ + descriptionCategoryAPISearchAttributeValuesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling descriptionCategoryAPISearchAttributeValues().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling descriptionCategoryAPISearchAttributeValues().'); + } + if (requestParameters['v1SearchAttributeValuesRequest'] == null) { + throw new runtime.RequiredError('v1SearchAttributeValuesRequest', 'Required parameter "v1SearchAttributeValuesRequest" was null or undefined when calling descriptionCategoryAPISearchAttributeValues().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/description-category/attribute/values/search`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SearchAttributeValuesRequestToJSON)(requestParameters['v1SearchAttributeValuesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SearchAttributeValuesResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает справочные значения характеристики по заданному значению `value` в запросе. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Поиск по справочным значениям характеристики + */ + descriptionCategoryAPISearchAttributeValues(clientId, apiKey, v1SearchAttributeValuesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.descriptionCategoryAPISearchAttributeValuesRaw({ clientId: clientId, apiKey: apiKey, v1SearchAttributeValuesRequest: v1SearchAttributeValuesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете отправить не больше 10 запросов в секунду. [Подробнее о зонах размещения в Базе знаний продавца](https://seller-edu.ozon.ru/libra/fbo/gruzomesta-i-podgotovka-k-otgruzke/k-kakoi-zone-otnositsya-tovar) + * Получить зоны размещения товаров по SKU перед поставкой + */ + productAPIGetProductPlacementZoneInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetProductPlacementZoneInfoRequest'] == null) { + throw new runtime.RequiredError('v1GetProductPlacementZoneInfoRequest', 'Required parameter "v1GetProductPlacementZoneInfoRequest" was null or undefined when calling productAPIGetProductPlacementZoneInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/placement-zone/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetProductPlacementZoneInfoRequestToJSON)(requestParameters['v1GetProductPlacementZoneInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetProductPlacementZoneInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете отправить не больше 10 запросов в секунду. [Подробнее о зонах размещения в Базе знаний продавца](https://seller-edu.ozon.ru/libra/fbo/gruzomesta-i-podgotovka-k-otgruzke/k-kakoi-zone-otnositsya-tovar) + * Получить зоны размещения товаров по SKU перед поставкой + */ + productAPIGetProductPlacementZoneInfo(v1GetProductPlacementZoneInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductPlacementZoneInfoRaw({ v1GetProductPlacementZoneInfoRequest: v1GetProductPlacementZoneInfoRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.CategoryAPI = CategoryAPI; diff --git a/dist/apis/CertificationAPI.d.ts b/dist/apis/CertificationAPI.d.ts new file mode 100644 index 0000000..be30671 --- /dev/null +++ b/dist/apis/CertificationAPI.d.ts @@ -0,0 +1,241 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ProductBooleanResponse, ProductProductCertificateAccordanceTypesResponse, ProductProductCertificateBindRequest, ProductProductCertificateTypesResponse, ProductProductCertificationListRequest, ProductProductCertificationListResponse, V1ProductCertificateDeleteRequest, V1ProductCertificateDeleteResponse, V1ProductCertificateInfoRequest, V1ProductCertificateInfoResponse, V1ProductCertificateListRequest, V1ProductCertificateListResponse, V1ProductCertificateProductStatusListResponse, V1ProductCertificateProductsListRequest, V1ProductCertificateProductsListResponse, V1ProductCertificateRejectionReasonsListResponse, V1ProductCertificateStatusListResponse, V1ProductCertificateUnbindRequest, V1ProductCertificateUnbindResponse, V2ProductCertificateAccordanceTypesResponse, V2ProductCertificationListRequest, V2ProductCertificationListResponse } from '../models/index'; +export interface CertificateAccordanceTypesRequest { + clientId: string; + apiKey: string; +} +export interface CertificateDeleteRequest { + v1ProductCertificateDeleteRequest: V1ProductCertificateDeleteRequest; +} +export interface CertificateInfoRequest { + clientId: string; + apiKey: string; + v1ProductCertificateInfoRequest: V1ProductCertificateInfoRequest; +} +export interface CertificateListRequest { + clientId: string; + apiKey: string; + v1ProductCertificateListRequest: V1ProductCertificateListRequest; +} +export interface CertificateProductsListRequest { + clientId: string; + apiKey: string; + v1ProductCertificateProductsListRequest: V1ProductCertificateProductsListRequest | null; +} +export interface CertificateStatusListRequest { + clientId: string; + apiKey: string; +} +export interface CertificateUnbindRequest { + clientId: string; + apiKey: string; + v1ProductCertificateUnbindRequest: V1ProductCertificateUnbindRequest | null; +} +export interface ProductAPIProductCertificateAccordanceTypesRequest { + clientId: string; + apiKey: string; +} +export interface ProductAPIProductCertificateBindRequest { + clientId: string; + apiKey: string; + productProductCertificateBindRequest: ProductProductCertificateBindRequest | null; +} +export interface ProductAPIProductCertificateCreateRequest { + clientId: string; + apiKey: string; + files: Array; + name: string; + number: string; + typeCode: ProductAPIProductCertificateCreateTypeCodeEnum; + issueDate: string; + accordanceTypeCode?: ProductAPIProductCertificateCreateAccordanceTypeCodeEnum; + expireDate?: string; +} +export interface ProductAPIProductCertificateTypesRequest { + clientId: string; + apiKey: string; +} +export interface ProductAPIProductCertificationListRequest { + clientId: string; + apiKey: string; + v2ProductCertificationListRequest: V2ProductCertificationListRequest; +} +export interface ProductAPIV1ProductCertificationListRequest { + clientId: string; + apiKey: string; + productProductCertificationListRequest: ProductProductCertificationListRequest; +} +export interface ProductStatusListRequest { + clientId: string; + apiKey: string; +} +export interface RejectionReasonsListRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class CertificationAPI extends runtime.BaseAPI { + /** + * Список типов соответствия требованиям (версия 2) + */ + certificateAccordanceTypesRaw(requestParameters: CertificateAccordanceTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список типов соответствия требованиям (версия 2) + */ + certificateAccordanceTypes(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить сертификат + */ + certificateDeleteRaw(requestParameters: CertificateDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить сертификат + */ + certificateDelete(v1ProductCertificateDeleteRequest: V1ProductCertificateDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о сертификате + */ + certificateInfoRaw(requestParameters: CertificateInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о сертификате + */ + certificateInfo(clientId: string, apiKey: string, v1ProductCertificateInfoRequest: V1ProductCertificateInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список сертификатов + */ + certificateListRaw(requestParameters: CertificateListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список сертификатов + */ + certificateList(clientId: string, apiKey: string, v1ProductCertificateListRequest: V1ProductCertificateListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список товаров, привязанных к сертификату + */ + certificateProductsListRaw(requestParameters: CertificateProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список товаров, привязанных к сертификату + */ + certificateProductsList(clientId: string, apiKey: string, v1ProductCertificateProductsListRequest: V1ProductCertificateProductsListRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возможные статусы сертификатов + */ + certificateStatusListRaw(requestParameters: CertificateStatusListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возможные статусы сертификатов + */ + certificateStatusList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отвязать товар от сертификата + */ + certificateUnbindRaw(requestParameters: CertificateUnbindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отвязать товар от сертификата + */ + certificateUnbind(clientId: string, apiKey: string, v1ProductCertificateUnbindRequest: V1ProductCertificateUnbindRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список типов соответствия требованиям (версия 1) + */ + productAPIProductCertificateAccordanceTypesRaw(requestParameters: ProductAPIProductCertificateAccordanceTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список типов соответствия требованиям (версия 1) + */ + productAPIProductCertificateAccordanceTypes(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Привязать сертификат к товару + */ + productAPIProductCertificateBindRaw(requestParameters: ProductAPIProductCertificateBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Привязать сертификат к товару + */ + productAPIProductCertificateBind(clientId: string, apiKey: string, productProductCertificateBindRequest: ProductProductCertificateBindRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Добавить сертификаты для товаров + * @deprecated + */ + productAPIProductCertificateCreateRaw(requestParameters: ProductAPIProductCertificateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Добавить сертификаты для товаров + * @deprecated + */ + productAPIProductCertificateCreate(clientId: string, apiKey: string, files: Array, name: string, number: string, typeCode: ProductAPIProductCertificateCreateTypeCodeEnum, issueDate: string, accordanceTypeCode?: ProductAPIProductCertificateCreateAccordanceTypeCodeEnum, expireDate?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Справочник типов документов + */ + productAPIProductCertificateTypesRaw(requestParameters: ProductAPIProductCertificateTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Справочник типов документов + */ + productAPIProductCertificateTypes(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список сертифицируемых категорий + */ + productAPIProductCertificationListRaw(requestParameters: ProductAPIProductCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список сертифицируемых категорий + */ + productAPIProductCertificationList(clientId: string, apiKey: string, v2ProductCertificationListRequest: V2ProductCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Список сертифицируемых категорий + */ + productAPIV1ProductCertificationListRaw(requestParameters: ProductAPIV1ProductCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Список сертифицируемых категорий + */ + productAPIV1ProductCertificationList(clientId: string, apiKey: string, productProductCertificationListRequest: ProductProductCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка возможных статусов товаров при их привязке к сертификату. + * Список возможных статусов товаров + */ + productStatusListRaw(requestParameters: ProductStatusListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка возможных статусов товаров при их привязке к сертификату. + * Список возможных статусов товаров + */ + productStatusList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возможные причины отклонения сертификата + */ + rejectionReasonsListRaw(requestParameters: RejectionReasonsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возможные причины отклонения сертификата + */ + rejectionReasonsList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * @export + */ +export declare const ProductAPIProductCertificateCreateTypeCodeEnum: { + readonly certificate_of_conformity: "certificate_of_conformity"; + readonly declaration: "declaration"; + readonly certificate_of_registration: "certificate_of_registration"; + readonly registration_certificate: "registration_certificate"; + readonly refused_letter: "refused_letter"; + readonly veterinary_cover_document: "veterinary_cover_document"; + readonly safety_data_sheet: "safety_data_sheet"; +}; +export type ProductAPIProductCertificateCreateTypeCodeEnum = typeof ProductAPIProductCertificateCreateTypeCodeEnum[keyof typeof ProductAPIProductCertificateCreateTypeCodeEnum]; +/** + * @export + */ +export declare const ProductAPIProductCertificateCreateAccordanceTypeCodeEnum: { + readonly technical_regulations_rf: "technical_regulations_rf"; + readonly technical_regulations_cu: "technical_regulations_cu"; + readonly gost: "gost"; +}; +export type ProductAPIProductCertificateCreateAccordanceTypeCodeEnum = typeof ProductAPIProductCertificateCreateAccordanceTypeCodeEnum[keyof typeof ProductAPIProductCertificateCreateAccordanceTypeCodeEnum]; diff --git a/dist/apis/CertificationAPI.js b/dist/apis/CertificationAPI.js new file mode 100644 index 0000000..0b2d99a --- /dev/null +++ b/dist/apis/CertificationAPI.js @@ -0,0 +1,699 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductAPIProductCertificateCreateAccordanceTypeCodeEnum = exports.ProductAPIProductCertificateCreateTypeCodeEnum = exports.CertificationAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class CertificationAPI extends runtime.BaseAPI { + /** + * Список типов соответствия требованиям (версия 2) + */ + certificateAccordanceTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateAccordanceTypes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateAccordanceTypes().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certificate/accordance-types/list`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2ProductCertificateAccordanceTypesResponseFromJSON)(jsonValue)); + }); + } + /** + * Список типов соответствия требованиям (версия 2) + */ + certificateAccordanceTypes(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateAccordanceTypesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить сертификат + */ + certificateDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ProductCertificateDeleteRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateDeleteRequest', 'Required parameter "v1ProductCertificateDeleteRequest" was null or undefined when calling certificateDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/certificate/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductCertificateDeleteRequestToJSON)(requestParameters['v1ProductCertificateDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductCertificateDeleteResponseFromJSON)(jsonValue)); + }); + } + /** + * Удалить сертификат + */ + certificateDelete(v1ProductCertificateDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateDeleteRaw({ v1ProductCertificateDeleteRequest: v1ProductCertificateDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о сертификате + */ + certificateInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateInfo().'); + } + if (requestParameters['v1ProductCertificateInfoRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateInfoRequest', 'Required parameter "v1ProductCertificateInfoRequest" was null or undefined when calling certificateInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductCertificateInfoRequestToJSON)(requestParameters['v1ProductCertificateInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductCertificateInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Информация о сертификате + */ + certificateInfo(clientId, apiKey, v1ProductCertificateInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateInfoRaw({ clientId: clientId, apiKey: apiKey, v1ProductCertificateInfoRequest: v1ProductCertificateInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список сертификатов + */ + certificateListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateList().'); + } + if (requestParameters['v1ProductCertificateListRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateListRequest', 'Required parameter "v1ProductCertificateListRequest" was null or undefined when calling certificateList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductCertificateListRequestToJSON)(requestParameters['v1ProductCertificateListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductCertificateListResponseFromJSON)(jsonValue)); + }); + } + /** + * Список сертификатов + */ + certificateList(clientId, apiKey, v1ProductCertificateListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateListRaw({ clientId: clientId, apiKey: apiKey, v1ProductCertificateListRequest: v1ProductCertificateListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список товаров, привязанных к сертификату + */ + certificateProductsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateProductsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateProductsList().'); + } + if (requestParameters['v1ProductCertificateProductsListRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateProductsListRequest', 'Required parameter "v1ProductCertificateProductsListRequest" was null or undefined when calling certificateProductsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/products/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductCertificateProductsListRequestToJSON)(requestParameters['v1ProductCertificateProductsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductCertificateProductsListResponseFromJSON)(jsonValue)); + }); + } + /** + * Список товаров, привязанных к сертификату + */ + certificateProductsList(clientId, apiKey, v1ProductCertificateProductsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateProductsListRaw({ clientId: clientId, apiKey: apiKey, v1ProductCertificateProductsListRequest: v1ProductCertificateProductsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возможные статусы сертификатов + */ + certificateStatusListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateStatusList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateStatusList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/status/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductCertificateStatusListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возможные статусы сертификатов + */ + certificateStatusList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateStatusListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Отвязать товар от сертификата + */ + certificateUnbindRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateUnbind().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateUnbind().'); + } + if (requestParameters['v1ProductCertificateUnbindRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateUnbindRequest', 'Required parameter "v1ProductCertificateUnbindRequest" was null or undefined when calling certificateUnbind().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/unbind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductCertificateUnbindRequestToJSON)(requestParameters['v1ProductCertificateUnbindRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductCertificateUnbindResponseFromJSON)(jsonValue)); + }); + } + /** + * Отвязать товар от сертификата + */ + certificateUnbind(clientId, apiKey, v1ProductCertificateUnbindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateUnbindRaw({ clientId: clientId, apiKey: apiKey, v1ProductCertificateUnbindRequest: v1ProductCertificateUnbindRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список типов соответствия требованиям (версия 1) + */ + productAPIProductCertificateAccordanceTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificateAccordanceTypes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificateAccordanceTypes().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/accordance-types`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductProductCertificateAccordanceTypesResponseFromJSON)(jsonValue)); + }); + } + /** + * Список типов соответствия требованиям (версия 1) + */ + productAPIProductCertificateAccordanceTypes(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificateAccordanceTypesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Привязать сертификат к товару + */ + productAPIProductCertificateBindRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificateBind().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificateBind().'); + } + if (requestParameters['productProductCertificateBindRequest'] == null) { + throw new runtime.RequiredError('productProductCertificateBindRequest', 'Required parameter "productProductCertificateBindRequest" was null or undefined when calling productAPIProductCertificateBind().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/bind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductProductCertificateBindRequestToJSON)(requestParameters['productProductCertificateBindRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductBooleanResponseFromJSON)(jsonValue)); + }); + } + /** + * Привязать сертификат к товару + */ + productAPIProductCertificateBind(clientId, apiKey, productProductCertificateBindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificateBindRaw({ clientId: clientId, apiKey: apiKey, productProductCertificateBindRequest: productProductCertificateBindRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Добавить сертификаты для товаров + * @deprecated + */ + productAPIProductCertificateCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['files'] == null) { + throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['name'] == null) { + throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['number'] == null) { + throw new runtime.RequiredError('number', 'Required parameter "number" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['typeCode'] == null) { + throw new runtime.RequiredError('typeCode', 'Required parameter "typeCode" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['issueDate'] == null) { + throw new runtime.RequiredError('issueDate', 'Required parameter "issueDate" was null or undefined when calling productAPIProductCertificateCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const consumes = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + let formParams; + let useForm = false; + if (useForm) { + formParams = new FormData(); + } + else { + formParams = new URLSearchParams(); + } + if (requestParameters['files'] != null) { + formParams.append('files', requestParameters['files'].join(runtime.COLLECTION_FORMATS["csv"])); + } + if (requestParameters['name'] != null) { + formParams.append('name', requestParameters['name']); + } + if (requestParameters['number'] != null) { + formParams.append('number', requestParameters['number']); + } + if (requestParameters['typeCode'] != null) { + formParams.append('type_code', requestParameters['typeCode']); + } + if (requestParameters['accordanceTypeCode'] != null) { + formParams.append('accordance_type_code', requestParameters['accordanceTypeCode']); + } + if (requestParameters['issueDate'] != null) { + formParams.append('issue_date', requestParameters['issueDate']); + } + if (requestParameters['expireDate'] != null) { + formParams.append('expire_date', requestParameters['expireDate']); + } + const response = yield this.request({ + path: `/v1/product/certificate/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } + else { + return new runtime.TextApiResponse(response); + } + }); + } + /** + * + * Добавить сертификаты для товаров + * @deprecated + */ + productAPIProductCertificateCreate(clientId, apiKey, files, name, number, typeCode, issueDate, accordanceTypeCode, expireDate, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificateCreateRaw({ clientId: clientId, apiKey: apiKey, files: files, name: name, number: number, typeCode: typeCode, issueDate: issueDate, accordanceTypeCode: accordanceTypeCode, expireDate: expireDate }, initOverrides); + return yield response.value(); + }); + } + /** + * Справочник типов документов + */ + productAPIProductCertificateTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificateTypes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificateTypes().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/types`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductProductCertificateTypesResponseFromJSON)(jsonValue)); + }); + } + /** + * Справочник типов документов + */ + productAPIProductCertificateTypes(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificateTypesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Список сертифицируемых категорий + */ + productAPIProductCertificationListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificationList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificationList().'); + } + if (requestParameters['v2ProductCertificationListRequest'] == null) { + throw new runtime.RequiredError('v2ProductCertificationListRequest', 'Required parameter "v2ProductCertificationListRequest" was null or undefined when calling productAPIProductCertificationList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certification/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2ProductCertificationListRequestToJSON)(requestParameters['v2ProductCertificationListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2ProductCertificationListResponseFromJSON)(jsonValue)); + }); + } + /** + * Список сертифицируемых категорий + */ + productAPIProductCertificationList(clientId, apiKey, v2ProductCertificationListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificationListRaw({ clientId: clientId, apiKey: apiKey, v2ProductCertificationListRequest: v2ProductCertificationListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Список сертифицируемых категорий + */ + productAPIV1ProductCertificationListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIV1ProductCertificationList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIV1ProductCertificationList().'); + } + if (requestParameters['productProductCertificationListRequest'] == null) { + throw new runtime.RequiredError('productProductCertificationListRequest', 'Required parameter "productProductCertificationListRequest" was null or undefined when calling productAPIV1ProductCertificationList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certification/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductProductCertificationListRequestToJSON)(requestParameters['productProductCertificationListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductProductCertificationListResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Список сертифицируемых категорий + */ + productAPIV1ProductCertificationList(clientId, apiKey, productProductCertificationListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIV1ProductCertificationListRaw({ clientId: clientId, apiKey: apiKey, productProductCertificationListRequest: productProductCertificationListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка возможных статусов товаров при их привязке к сертификату. + * Список возможных статусов товаров + */ + productStatusListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productStatusList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productStatusList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/product_status/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductCertificateProductStatusListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка возможных статусов товаров при их привязке к сертификату. + * Список возможных статусов товаров + */ + productStatusList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productStatusListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Возможные причины отклонения сертификата + */ + rejectionReasonsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling rejectionReasonsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling rejectionReasonsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/rejection_reasons/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductCertificateRejectionReasonsListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возможные причины отклонения сертификата + */ + rejectionReasonsList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rejectionReasonsListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} +exports.CertificationAPI = CertificationAPI; +/** + * @export + */ +exports.ProductAPIProductCertificateCreateTypeCodeEnum = { + certificate_of_conformity: 'certificate_of_conformity', + declaration: 'declaration', + certificate_of_registration: 'certificate_of_registration', + registration_certificate: 'registration_certificate', + refused_letter: 'refused_letter', + veterinary_cover_document: 'veterinary_cover_document', + safety_data_sheet: 'safety_data_sheet' +}; +/** + * @export + */ +exports.ProductAPIProductCertificateCreateAccordanceTypeCodeEnum = { + technical_regulations_rf: 'technical_regulations_rf', + technical_regulations_cu: 'technical_regulations_cu', + gost: 'gost' +}; diff --git a/dist/apis/ChatAPI.d.ts b/dist/apis/ChatAPI.d.ts new file mode 100644 index 0000000..2257573 --- /dev/null +++ b/dist/apis/ChatAPI.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ChatChatSendFileRequest, ChatChatSendFileResponse, V3ChatHistoryRequest, V3ChatHistoryResponse, V3ChatList, V3ChatListResponse } from '../models/index'; +export interface ChatAPIChatHistoryV3Request { + clientId: string; + apiKey: string; + v3ChatHistoryRequest: V3ChatHistoryRequest; +} +export interface ChatAPIChatListV3Request { + clientId: string; + apiKey: string; + v3ChatList: V3ChatList; +} +export interface ChatAPIChatSendFileRequest { + clientId: string; + apiKey: string; + chatChatSendFileRequest: ChatChatSendFileRequest; +} +/** + * + */ +export declare class ChatAPI extends runtime.BaseAPI { + /** + * Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * История чата + */ + chatAPIChatHistoryV3Raw(requestParameters: ChatAPIChatHistoryV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * История чата + */ + chatAPIChatHistoryV3(clientId: string, apiKey: string, v3ChatHistoryRequest: V3ChatHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает информацию о чатах по указанным фильтрам. + * Список чатов + */ + chatAPIChatListV3Raw(requestParameters: ChatAPIChatListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию о чатах по указанным фильтрам. + * Список чатов + */ + chatAPIChatListV3(clientId: string, apiKey: string, v3ChatList: V3ChatList, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отправляет файл в существующий чат по его идентификатору.

Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить файл + */ + chatAPIChatSendFileRaw(requestParameters: ChatAPIChatSendFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отправляет файл в существующий чат по его идентификатору.

Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить файл + */ + chatAPIChatSendFile(clientId: string, apiKey: string, chatChatSendFileRequest: ChatChatSendFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/ChatAPI.js b/dist/apis/ChatAPI.js new file mode 100644 index 0000000..c0fcdd8 --- /dev/null +++ b/dist/apis/ChatAPI.js @@ -0,0 +1,165 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChatAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class ChatAPI extends runtime.BaseAPI { + /** + * Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * История чата + */ + chatAPIChatHistoryV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatHistoryV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatHistoryV3().'); + } + if (requestParameters['v3ChatHistoryRequest'] == null) { + throw new runtime.RequiredError('v3ChatHistoryRequest', 'Required parameter "v3ChatHistoryRequest" was null or undefined when calling chatAPIChatHistoryV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/chat/history`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V3ChatHistoryRequestToJSON)(requestParameters['v3ChatHistoryRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3ChatHistoryResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * История чата + */ + chatAPIChatHistoryV3(clientId, apiKey, v3ChatHistoryRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatHistoryV3Raw({ clientId: clientId, apiKey: apiKey, v3ChatHistoryRequest: v3ChatHistoryRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает информацию о чатах по указанным фильтрам. + * Список чатов + */ + chatAPIChatListV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatListV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatListV3().'); + } + if (requestParameters['v3ChatList'] == null) { + throw new runtime.RequiredError('v3ChatList', 'Required parameter "v3ChatList" was null or undefined when calling chatAPIChatListV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/chat/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V3ChatListToJSON)(requestParameters['v3ChatList']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3ChatListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает информацию о чатах по указанным фильтрам. + * Список чатов + */ + chatAPIChatListV3(clientId, apiKey, v3ChatList, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatListV3Raw({ clientId: clientId, apiKey: apiKey, v3ChatList: v3ChatList }, initOverrides); + return yield response.value(); + }); + } + /** + * Отправляет файл в существующий чат по его идентификатору.

Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить файл + */ + chatAPIChatSendFileRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatSendFile().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatSendFile().'); + } + if (requestParameters['chatChatSendFileRequest'] == null) { + throw new runtime.RequiredError('chatChatSendFileRequest', 'Required parameter "chatChatSendFileRequest" was null or undefined when calling chatAPIChatSendFile().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/chat/send/file`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ChatChatSendFileRequestToJSON)(requestParameters['chatChatSendFileRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatChatSendFileResponseFromJSON)(jsonValue)); + }); + } + /** + * Отправляет файл в существующий чат по его идентификатору.

Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить файл + */ + chatAPIChatSendFile(clientId, apiKey, chatChatSendFileRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatSendFileRaw({ clientId: clientId, apiKey: apiKey, chatChatSendFileRequest: chatChatSendFileRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.ChatAPI = ChatAPI; diff --git a/dist/apis/DeliveryAPI.d.ts b/dist/apis/DeliveryAPI.d.ts new file mode 100644 index 0000000..57e6df6 --- /dev/null +++ b/dist/apis/DeliveryAPI.d.ts @@ -0,0 +1,83 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1DeliveryCheckRequest, V1DeliveryCheckResponse, V1DeliveryCheckoutRequest, V1DeliveryCheckoutResponse, V1DeliveryMapRequest, V1DeliveryMapResponse, V1DeliveryPointInfoRequest, V1DeliveryPointInfoResponse, V1DeliveryPointListResponse } from '../models/index'; +export interface DeliveryAPIDeliveryPointListRequest { + body?: object; +} +export interface DeliveryCheckRequest { + v1DeliveryCheckRequest?: V1DeliveryCheckRequest; +} +export interface DeliveryCheckoutRequest { + v1DeliveryCheckoutRequest: V1DeliveryCheckoutRequest; +} +export interface DeliveryMapRequest { + v1DeliveryMapRequest?: V1DeliveryMapRequest; +} +export interface DeliveryPointInfoRequest { + v1DeliveryPointInfoRequest?: V1DeliveryPointInfoRequest; +} +/** + * + */ +export declare class DeliveryAPI extends runtime.BaseAPI { + /** + * Возвращает координаты всех точек самовывоза без объединения в кластеры. + * Получить список точек самовывоза + */ + deliveryAPIDeliveryPointListRaw(requestParameters: DeliveryAPIDeliveryPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает координаты всех точек самовывоза без объединения в кластеры. + * Получить список точек самовывоза + */ + deliveryAPIDeliveryPointList(body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Проверяет доступность доставки Ozon для покупателя. Не учитывает ограничения по сумме покупки, категории товаров и географии. + * Проверить доступность доставки для покупателя + */ + deliveryCheckRaw(requestParameters: DeliveryCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Проверяет доступность доставки Ozon для покупателя. Не учитывает ограничения по сумме покупки, категории товаров и географии. + * Проверить доступность доставки для покупателя + */ + deliveryCheck(v1DeliveryCheckRequest?: V1DeliveryCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Проверяет доступность доставки товаров на указанный адрес или в точку выдачи и отображает сроки доставки. Проверяйте наличие товаров и маршруты во время оформления заказа, чтобы точно рассчитать сроки доставки. + * Получить доступные варианты доставки + */ + deliveryCheckoutRaw(requestParameters: DeliveryCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Проверяет доступность доставки товаров на указанный адрес или в точку выдачи и отображает сроки доставки. Проверяйте наличие товаров и маршруты во время оформления заказа, чтобы точно рассчитать сроки доставки. + * Получить доступные варианты доставки + */ + deliveryCheckout(v1DeliveryCheckoutRequest: V1DeliveryCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает объединённые кластеры точек самовывоза на области из параметра `viewport`. Используйте значения из параметра `clusters.viewport`, чтобы получить список точек или мелких кластеров внутри большого кластера. Используйте метод [/v1/delivery/point/info](#operation/DeliveryPointInfo), чтобы получить информацию о конкретной точке самовывоза. + * Отрисовать точки на карте + */ + deliveryMapRaw(requestParameters: DeliveryMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает объединённые кластеры точек самовывоза на области из параметра `viewport`. Используйте значения из параметра `clusters.viewport`, чтобы получить список точек или мелких кластеров внутри большого кластера. Используйте метод [/v1/delivery/point/info](#operation/DeliveryPointInfo), чтобы получить информацию о конкретной точке самовывоза. + * Отрисовать точки на карте + */ + deliveryMap(v1DeliveryMapRequest?: V1DeliveryMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает подробную информацию о точке самовывоза для пользователя. + * Получить информацию о точке самовывоза + */ + deliveryPointInfoRaw(requestParameters: DeliveryPointInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает подробную информацию о точке самовывоза для пользователя. + * Получить информацию о точке самовывоза + */ + deliveryPointInfo(v1DeliveryPointInfoRequest?: V1DeliveryPointInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/DeliveryAPI.js b/dist/apis/DeliveryAPI.js new file mode 100644 index 0000000..faa7ef2 --- /dev/null +++ b/dist/apis/DeliveryAPI.js @@ -0,0 +1,181 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class DeliveryAPI extends runtime.BaseAPI { + /** + * Возвращает координаты всех точек самовывоза без объединения в кластеры. + * Получить список точек самовывоза + */ + deliveryAPIDeliveryPointListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/delivery/point/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DeliveryPointListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает координаты всех точек самовывоза без объединения в кластеры. + * Получить список точек самовывоза + */ + deliveryAPIDeliveryPointList(body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryAPIDeliveryPointListRaw({ body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Проверяет доступность доставки Ozon для покупателя. Не учитывает ограничения по сумме покупки, категории товаров и географии. + * Проверить доступность доставки для покупателя + */ + deliveryCheckRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/delivery/check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DeliveryCheckRequestToJSON)(requestParameters['v1DeliveryCheckRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DeliveryCheckResponseFromJSON)(jsonValue)); + }); + } + /** + * Проверяет доступность доставки Ozon для покупателя. Не учитывает ограничения по сумме покупки, категории товаров и географии. + * Проверить доступность доставки для покупателя + */ + deliveryCheck(v1DeliveryCheckRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryCheckRaw({ v1DeliveryCheckRequest: v1DeliveryCheckRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Проверяет доступность доставки товаров на указанный адрес или в точку выдачи и отображает сроки доставки. Проверяйте наличие товаров и маршруты во время оформления заказа, чтобы точно рассчитать сроки доставки. + * Получить доступные варианты доставки + */ + deliveryCheckoutRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1DeliveryCheckoutRequest'] == null) { + throw new runtime.RequiredError('v1DeliveryCheckoutRequest', 'Required parameter "v1DeliveryCheckoutRequest" was null or undefined when calling deliveryCheckout().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/delivery/checkout`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DeliveryCheckoutRequestToJSON)(requestParameters['v1DeliveryCheckoutRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DeliveryCheckoutResponseFromJSON)(jsonValue)); + }); + } + /** + * Проверяет доступность доставки товаров на указанный адрес или в точку выдачи и отображает сроки доставки. Проверяйте наличие товаров и маршруты во время оформления заказа, чтобы точно рассчитать сроки доставки. + * Получить доступные варианты доставки + */ + deliveryCheckout(v1DeliveryCheckoutRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryCheckoutRaw({ v1DeliveryCheckoutRequest: v1DeliveryCheckoutRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает объединённые кластеры точек самовывоза на области из параметра `viewport`. Используйте значения из параметра `clusters.viewport`, чтобы получить список точек или мелких кластеров внутри большого кластера. Используйте метод [/v1/delivery/point/info](#operation/DeliveryPointInfo), чтобы получить информацию о конкретной точке самовывоза. + * Отрисовать точки на карте + */ + deliveryMapRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/delivery/map`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DeliveryMapRequestToJSON)(requestParameters['v1DeliveryMapRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DeliveryMapResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает объединённые кластеры точек самовывоза на области из параметра `viewport`. Используйте значения из параметра `clusters.viewport`, чтобы получить список точек или мелких кластеров внутри большого кластера. Используйте метод [/v1/delivery/point/info](#operation/DeliveryPointInfo), чтобы получить информацию о конкретной точке самовывоза. + * Отрисовать точки на карте + */ + deliveryMap(v1DeliveryMapRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryMapRaw({ v1DeliveryMapRequest: v1DeliveryMapRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает подробную информацию о точке самовывоза для пользователя. + * Получить информацию о точке самовывоза + */ + deliveryPointInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/delivery/point/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DeliveryPointInfoRequestToJSON)(requestParameters['v1DeliveryPointInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DeliveryPointInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает подробную информацию о точке самовывоза для пользователя. + * Получить информацию о точке самовывоза + */ + deliveryPointInfo(v1DeliveryPointInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryPointInfoRaw({ v1DeliveryPointInfoRequest: v1DeliveryPointInfoRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.DeliveryAPI = DeliveryAPI; diff --git a/dist/apis/DeliveryFBP.d.ts b/dist/apis/DeliveryFBP.d.ts new file mode 100644 index 0000000..f2a7495 --- /dev/null +++ b/dist/apis/DeliveryFBP.d.ts @@ -0,0 +1,163 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PostingV1PostingFbpListRequest, PostingV1PostingFbpListResponse, V1FbpArchiveGetRequest, V1FbpArchiveGetResponse, V1FbpArchiveListRequest, V1FbpArchiveListResponse, V1FbpCheckActStateRequest, V1FbpCheckActStateResponse, V1FbpCheckConsignmentNoteStateRequest, V1FbpCheckConsignmentNoteStateResponse, V1FbpCreateActRequest, V1FbpCreateActResponse, V1FbpCreateConsignmentNoteRequest, V1FbpCreateConsignmentNoteResponse, V1FbpCreateLabelRequest, V1FbpCreateLabelResponse, V1FbpGetLabelRequest, V1FbpGetLabelResponse, V1FbpOrderGetRequest, V1FbpOrderGetResponse, V1FbpOrderListRequest, V1FbpOrderListResponse } from '../models/index'; +export interface FbpAPIFbpArchiveGetRequest { + v1FbpArchiveGetRequest?: V1FbpArchiveGetRequest; +} +export interface FbpAPIFbpArchiveListRequest { + v1FbpArchiveListRequest?: V1FbpArchiveListRequest; +} +export interface FbpAPIFbpCheckActStateRequest { + v1FbpCheckActStateRequest: V1FbpCheckActStateRequest; +} +export interface FbpAPIFbpCheckConsignmentNoteStateRequest { + v1FbpCheckConsignmentNoteStateRequest: V1FbpCheckConsignmentNoteStateRequest; +} +export interface FbpAPIFbpCreateActRequest { + v1FbpCreateActRequest: V1FbpCreateActRequest; +} +export interface FbpAPIFbpCreateConsignmentNoteRequest { + v1FbpCreateConsignmentNoteRequest: V1FbpCreateConsignmentNoteRequest; +} +export interface FbpAPIFbpCreateLabelRequest { + v1FbpCreateLabelRequest?: V1FbpCreateLabelRequest; +} +export interface FbpAPIFbpGetLabelRequest { + v1FbpGetLabelRequest?: V1FbpGetLabelRequest; +} +export interface FbpAPIFbpOrderGetRequest { + v1FbpOrderGetRequest: V1FbpOrderGetRequest; +} +export interface FbpAPIFbpOrderListRequest { + v1FbpOrderListRequest: V1FbpOrderListRequest; +} +export interface PostingFbpListRequest { + clientId: string; + apiKey: string; + postingV1PostingFbpListRequest: PostingV1PostingFbpListRequest; +} +/** + * + */ +export declare class DeliveryFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о завершённой поставке + */ + fbpAPIFbpArchiveGetRaw(requestParameters: FbpAPIFbpArchiveGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о завершённой поставке + */ + fbpAPIFbpArchiveGet(v1FbpArchiveGetRequest?: V1FbpArchiveGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список завершённых поставок + */ + fbpAPIFbpArchiveListRaw(requestParameters: FbpAPIFbpArchiveListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список завершённых поставок + */ + fbpAPIFbpArchiveList(v1FbpArchiveListRequest?: V1FbpArchiveListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации акта приёмки + */ + fbpAPIFbpCheckActStateRaw(requestParameters: FbpAPIFbpCheckActStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации акта приёмки + */ + fbpAPIFbpCheckActState(v1FbpCheckActStateRequest: V1FbpCheckActStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации транспортной накладной + */ + fbpAPIFbpCheckConsignmentNoteStateRaw(requestParameters: FbpAPIFbpCheckConsignmentNoteStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации транспортной накладной + */ + fbpAPIFbpCheckConsignmentNoteState(v1FbpCheckConsignmentNoteStateRequest: V1FbpCheckConsignmentNoteStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать акт приёмки + */ + fbpAPIFbpCreateActRaw(requestParameters: FbpAPIFbpCreateActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать акт приёмки + */ + fbpAPIFbpCreateAct(v1FbpCreateActRequest: V1FbpCreateActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать транспортную накладную + */ + fbpAPIFbpCreateConsignmentNoteRaw(requestParameters: FbpAPIFbpCreateConsignmentNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать транспортную накладную + */ + fbpAPIFbpCreateConsignmentNote(v1FbpCreateConsignmentNoteRequest: V1FbpCreateConsignmentNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Cоздать задание на генерацию этикеток + */ + fbpAPIFbpCreateLabelRaw(requestParameters: FbpAPIFbpCreateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Cоздать задание на генерацию этикеток + */ + fbpAPIFbpCreateLabel(v1FbpCreateLabelRequest?: V1FbpCreateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус задания на генерацию этикеток + */ + fbpAPIFbpGetLabelRaw(requestParameters: FbpAPIFbpGetLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус задания на генерацию этикеток + */ + fbpAPIFbpGetLabel(v1FbpGetLabelRequest?: V1FbpGetLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о конкретной поставке + */ + fbpAPIFbpOrderGetRaw(requestParameters: FbpAPIFbpOrderGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о конкретной поставке + */ + fbpAPIFbpOrderGet(v1FbpOrderGetRequest: V1FbpOrderGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список поставок + */ + fbpAPIFbpOrderListRaw(requestParameters: FbpAPIFbpOrderListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список поставок + */ + fbpAPIFbpOrderList(v1FbpOrderListRequest: V1FbpOrderListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2054-Novyi-beta-metod-dlia-raboty-s-FBP-postingami-v-Seller-API/ ) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingFbpListRaw(requestParameters: PostingFbpListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2054-Novyi-beta-metod-dlia-raboty-s-FBP-postingami-v-Seller-API/ ) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingFbpList(clientId: string, apiKey: string, postingV1PostingFbpListRequest: PostingV1PostingFbpListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/DeliveryFBP.js b/dist/apis/DeliveryFBP.js new file mode 100644 index 0000000..5ef0b26 --- /dev/null +++ b/dist/apis/DeliveryFBP.js @@ -0,0 +1,385 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryFBP = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class DeliveryFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о завершённой поставке + */ + fbpAPIFbpArchiveGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/archive/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpArchiveGetRequestToJSON)(requestParameters['v1FbpArchiveGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpArchiveGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о завершённой поставке + */ + fbpAPIFbpArchiveGet(v1FbpArchiveGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpArchiveGetRaw({ v1FbpArchiveGetRequest: v1FbpArchiveGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список завершённых поставок + */ + fbpAPIFbpArchiveListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/archive/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpArchiveListRequestToJSON)(requestParameters['v1FbpArchiveListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpArchiveListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список завершённых поставок + */ + fbpAPIFbpArchiveList(v1FbpArchiveListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpArchiveListRaw({ v1FbpArchiveListRequest: v1FbpArchiveListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации акта приёмки + */ + fbpAPIFbpCheckActStateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpCheckActStateRequest'] == null) { + throw new runtime.RequiredError('v1FbpCheckActStateRequest', 'Required parameter "v1FbpCheckActStateRequest" was null or undefined when calling fbpAPIFbpCheckActState().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/act-from/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpCheckActStateRequestToJSON)(requestParameters['v1FbpCheckActStateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpCheckActStateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации акта приёмки + */ + fbpAPIFbpCheckActState(v1FbpCheckActStateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCheckActStateRaw({ v1FbpCheckActStateRequest: v1FbpCheckActStateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации транспортной накладной + */ + fbpAPIFbpCheckConsignmentNoteStateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpCheckConsignmentNoteStateRequest'] == null) { + throw new runtime.RequiredError('v1FbpCheckConsignmentNoteStateRequest', 'Required parameter "v1FbpCheckConsignmentNoteStateRequest" was null or undefined when calling fbpAPIFbpCheckConsignmentNoteState().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/act-to/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpCheckConsignmentNoteStateRequestToJSON)(requestParameters['v1FbpCheckConsignmentNoteStateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpCheckConsignmentNoteStateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации транспортной накладной + */ + fbpAPIFbpCheckConsignmentNoteState(v1FbpCheckConsignmentNoteStateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCheckConsignmentNoteStateRaw({ v1FbpCheckConsignmentNoteStateRequest: v1FbpCheckConsignmentNoteStateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать акт приёмки + */ + fbpAPIFbpCreateActRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpCreateActRequest'] == null) { + throw new runtime.RequiredError('v1FbpCreateActRequest', 'Required parameter "v1FbpCreateActRequest" was null or undefined when calling fbpAPIFbpCreateAct().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/act-from/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpCreateActRequestToJSON)(requestParameters['v1FbpCreateActRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpCreateActResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать акт приёмки + */ + fbpAPIFbpCreateAct(v1FbpCreateActRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCreateActRaw({ v1FbpCreateActRequest: v1FbpCreateActRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать транспортную накладную + */ + fbpAPIFbpCreateConsignmentNoteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpCreateConsignmentNoteRequest'] == null) { + throw new runtime.RequiredError('v1FbpCreateConsignmentNoteRequest', 'Required parameter "v1FbpCreateConsignmentNoteRequest" was null or undefined when calling fbpAPIFbpCreateConsignmentNote().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/act-to/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpCreateConsignmentNoteRequestToJSON)(requestParameters['v1FbpCreateConsignmentNoteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpCreateConsignmentNoteResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать транспортную накладную + */ + fbpAPIFbpCreateConsignmentNote(v1FbpCreateConsignmentNoteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCreateConsignmentNoteRaw({ v1FbpCreateConsignmentNoteRequest: v1FbpCreateConsignmentNoteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Cоздать задание на генерацию этикеток + */ + fbpAPIFbpCreateLabelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/label/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpCreateLabelRequestToJSON)(requestParameters['v1FbpCreateLabelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpCreateLabelResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Cоздать задание на генерацию этикеток + */ + fbpAPIFbpCreateLabel(v1FbpCreateLabelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCreateLabelRaw({ v1FbpCreateLabelRequest: v1FbpCreateLabelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус задания на генерацию этикеток + */ + fbpAPIFbpGetLabelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/label/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpGetLabelRequestToJSON)(requestParameters['v1FbpGetLabelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpGetLabelResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус задания на генерацию этикеток + */ + fbpAPIFbpGetLabel(v1FbpGetLabelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpGetLabelRaw({ v1FbpGetLabelRequest: v1FbpGetLabelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о конкретной поставке + */ + fbpAPIFbpOrderGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderGetRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderGetRequest', 'Required parameter "v1FbpOrderGetRequest" was null or undefined when calling fbpAPIFbpOrderGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderGetRequestToJSON)(requestParameters['v1FbpOrderGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о конкретной поставке + */ + fbpAPIFbpOrderGet(v1FbpOrderGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderGetRaw({ v1FbpOrderGetRequest: v1FbpOrderGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список поставок + */ + fbpAPIFbpOrderListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderListRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderListRequest', 'Required parameter "v1FbpOrderListRequest" was null or undefined when calling fbpAPIFbpOrderList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderListRequestToJSON)(requestParameters['v1FbpOrderListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список поставок + */ + fbpAPIFbpOrderList(v1FbpOrderListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderListRaw({ v1FbpOrderListRequest: v1FbpOrderListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2054-Novyi-beta-metod-dlia-raboty-s-FBP-postingami-v-Seller-API/ ) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingFbpListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbpList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbpList().'); + } + if (requestParameters['postingV1PostingFbpListRequest'] == null) { + throw new runtime.RequiredError('postingV1PostingFbpListRequest', 'Required parameter "postingV1PostingFbpListRequest" was null or undefined when calling postingFbpList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbp/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingV1PostingFbpListRequestToJSON)(requestParameters['postingV1PostingFbpListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingV1PostingFbpListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2054-Novyi-beta-metod-dlia-raboty-s-FBP-postingami-v-Seller-API/ ) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingFbpList(clientId, apiKey, postingV1PostingFbpListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbpListRaw({ clientId: clientId, apiKey: apiKey, postingV1PostingFbpListRequest: postingV1PostingFbpListRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.DeliveryFBP = DeliveryFBP; diff --git a/dist/apis/DeliveryFBPDraft.d.ts b/dist/apis/DeliveryFBPDraft.d.ts new file mode 100644 index 0000000..802c3c1 --- /dev/null +++ b/dist/apis/DeliveryFBPDraft.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpDraftGetRequest, V1FbpDraftGetResponse, V1FbpDraftListRequest, V1FbpDraftListResponse, V1FbpWarehouseListResponse } from '../models/index'; +export interface FbpAPIFbpDraftGetRequest { + v1FbpDraftGetRequest: V1FbpDraftGetRequest; +} +export interface FbpAPIFbpDraftListRequest { + v1FbpDraftListRequest: V1FbpDraftListRequest; +} +export interface FbpWarehouseListRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class DeliveryFBPDraft extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о черновике поставки + */ + fbpAPIFbpDraftGetRaw(requestParameters: FbpAPIFbpDraftGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о черновике поставки + */ + fbpAPIFbpDraftGet(v1FbpDraftGetRequest: V1FbpDraftGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Список черновиков поставки + */ + fbpAPIFbpDraftListRaw(requestParameters: FbpAPIFbpDraftListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Список черновиков поставки + */ + fbpAPIFbpDraftList(v1FbpDraftListRequest: V1FbpDraftListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список партнёрских складов + */ + fbpWarehouseListRaw(requestParameters: FbpWarehouseListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список партнёрских складов + */ + fbpWarehouseList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/DeliveryFBPDraft.js b/dist/apis/DeliveryFBPDraft.js new file mode 100644 index 0000000..f456d38 --- /dev/null +++ b/dist/apis/DeliveryFBPDraft.js @@ -0,0 +1,136 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryFBPDraft = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class DeliveryFBPDraft extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о черновике поставки + */ + fbpAPIFbpDraftGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftGetRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftGetRequest', 'Required parameter "v1FbpDraftGetRequest" was null or undefined when calling fbpAPIFbpDraftGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftGetRequestToJSON)(requestParameters['v1FbpDraftGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о черновике поставки + */ + fbpAPIFbpDraftGet(v1FbpDraftGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftGetRaw({ v1FbpDraftGetRequest: v1FbpDraftGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Список черновиков поставки + */ + fbpAPIFbpDraftListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftListRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftListRequest', 'Required parameter "v1FbpDraftListRequest" was null or undefined when calling fbpAPIFbpDraftList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftListRequestToJSON)(requestParameters['v1FbpDraftListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Список черновиков поставки + */ + fbpAPIFbpDraftList(v1FbpDraftListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftListRaw({ v1FbpDraftListRequest: v1FbpDraftListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список партнёрских складов + */ + fbpWarehouseListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpWarehouseList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpWarehouseList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/warehouse/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpWarehouseListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список партнёрских складов + */ + fbpWarehouseList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpWarehouseListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} +exports.DeliveryFBPDraft = DeliveryFBPDraft; diff --git a/dist/apis/DeliveryFBS.d.ts b/dist/apis/DeliveryFBS.d.ts new file mode 100644 index 0000000..1068745 --- /dev/null +++ b/dist/apis/DeliveryFBS.d.ts @@ -0,0 +1,433 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CarriageCarriageGetRequest, CarriageCarriageGetResponse, PostingPostingFBSActCheckStatusRequest, PostingPostingFBSActCheckStatusResponse, PostingPostingFBSActCreateRequest, PostingPostingFBSActCreateResponse, PostingPostingFBSActGetContainerLabelsRequest, PostingPostingFBSActGetContainerLabelsResponse, PostingPostingFBSGetActRequest, PostingPostingFBSGetActResponse, Postingv1GetCarriageAvailableListRequest, Postingv1GetCarriageAvailableListResponse, V1AssemblyCarriagePostingListRequest, V1AssemblyCarriagePostingListResponse, V1AssemblyCarriageProductListRequest, V1AssemblyCarriageProductListResponse, V1AssemblyFbsPostingListRequest, V1AssemblyFbsPostingListResponse, V1AssemblyFbsProductListRequest, V1AssemblyFbsProductListResponse, V1CarriageActDiscrepancyPDFRequest, V1CarriageActDiscrepancyPDFResponse, V1CarriageApproveRequest, V1CarriageCancelRequest, V1CarriageCancelResponse, V1CarriageCourierContactGetRequest, V1CarriageCourierContactGetResponse, V1CarriageCourierContactSetRequest, V1CarriageCreateRequest, V1CarriageCreateResponse, V1CarriageDeliveryListRequest, V1CarriageDeliveryListResponse, V1CarriageEttnStatusRequest, V1CarriageEttnStatusResponse, V1PostingFbsProductTraceableAttributeRequest, V1PostingFbsProductTraceableAttributeResponse, V1PostingFbsSplitRequest, V1PostingFbsSplitResponse, V1PostingFbsTraceableSplitRequest, V1PostingFbsTraceableSplitResponse, V1SetPostingsRequest, V1SetPostingsResponse, V2CarriageDeliveryListV2Request, V2CarriageDeliveryListV2Response, V2PostingFBSActGetPostingsRequest, V2PostingFBSActGetPostingsResponse, V2PostingFBSActListRequest, V2PostingFBSActListResponse, V2PostingFBSDigitalActCheckStatusRequest, V2PostingFBSDigitalActCheckStatusResponse, V2PostingFBSGetBarcodeRequest, V2PostingFBSGetBarcodeResponse, V2PostingFBSGetBarcodeTextResponse, V2PostingFBSGetDigitalActRequest, V2PostingFBSGetDigitalActResponse } from '../models/index'; +export interface AssemblyCarriagePostingListRequest { + clientId: string; + apiKey: string; + v1AssemblyCarriagePostingListRequest?: V1AssemblyCarriagePostingListRequest; +} +export interface AssemblyCarriageProductListRequest { + clientId: string; + apiKey: string; + v1AssemblyCarriageProductListRequest?: V1AssemblyCarriageProductListRequest; +} +export interface AssemblyFbsPostingListRequest { + clientId: string; + apiKey: string; + v1AssemblyFbsPostingListRequest?: V1AssemblyFbsPostingListRequest; +} +export interface AssemblyFbsProductListRequest { + clientId: string; + apiKey: string; + v1AssemblyFbsProductListRequest?: V1AssemblyFbsProductListRequest; +} +export interface CarriageAPICarriageApproveRequest { + clientId: string; + apiKey: string; + v1CarriageApproveRequest: V1CarriageApproveRequest; +} +export interface CarriageAPICarriageCancelRequest { + clientId: string; + apiKey: string; + v1CarriageCancelRequest: V1CarriageCancelRequest; +} +export interface CarriageAPICarriageCreateRequest { + clientId: string; + apiKey: string; + v1CarriageCreateRequest: V1CarriageCreateRequest; +} +export interface CarriageAPICarriageDeliveryListRequest { + clientId: string; + apiKey: string; + v1CarriageDeliveryListRequest: V1CarriageDeliveryListRequest; +} +export interface CarriageAPICarriageDeliveryListV2Request { + clientId: string; + apiKey: string; + v2CarriageDeliveryListV2Request: V2CarriageDeliveryListV2Request; +} +export interface CarriageAPISetPostingsRequest { + clientId: string; + apiKey: string; + v1SetPostingsRequest: V1SetPostingsRequest; +} +export interface CarriageActDiscrepancyPDFRequest { + clientId: string; + apiKey: string; + v1CarriageActDiscrepancyPDFRequest: V1CarriageActDiscrepancyPDFRequest; +} +export interface CarriageCourierContactGetRequest { + clientId: string; + apiKey: string; + v1CarriageCourierContactGetRequest: V1CarriageCourierContactGetRequest; +} +export interface CarriageCourierContactSetRequest { + clientId: string; + apiKey: string; + v1CarriageCourierContactSetRequest: V1CarriageCourierContactSetRequest; +} +export interface CarriageEttnStatusRequest { + clientId: string; + apiKey: string; + v1CarriageEttnStatusRequest?: V1CarriageEttnStatusRequest; +} +export interface CarriageGetRequest { + carriageCarriageGetRequest: CarriageCarriageGetRequest; +} +export interface FbsSplitRequest { + v1PostingFbsSplitRequest: V1PostingFbsSplitRequest; +} +export interface PostingAPIActPostingListRequest { + clientId: string; + apiKey: string; + v2PostingFBSActGetPostingsRequest: V2PostingFBSActGetPostingsRequest; +} +export interface PostingAPIFbsActListRequest { + clientId: string; + apiKey: string; + v2PostingFBSActListRequest: V2PostingFBSActListRequest; +} +export interface PostingAPIGetCarriageAvailableListRequest { + clientId: string; + apiKey: string; + postingv1GetCarriageAvailableListRequest: Postingv1GetCarriageAvailableListRequest; +} +export interface PostingAPIPostingFBSActCheckStatusRequest { + clientId: string; + apiKey: string; + postingPostingFBSActCheckStatusRequest: PostingPostingFBSActCheckStatusRequest; +} +export interface PostingAPIPostingFBSActCreateRequest { + clientId: string; + apiKey: string; + postingPostingFBSActCreateRequest: PostingPostingFBSActCreateRequest; +} +export interface PostingAPIPostingFBSActGetContainerLabelsRequest { + clientId: string; + apiKey: string; + postingPostingFBSActGetContainerLabelsRequest: PostingPostingFBSActGetContainerLabelsRequest; +} +export interface PostingAPIPostingFBSDigitalActCheckStatusRequest { + clientId: string; + apiKey: string; + v2PostingFBSDigitalActCheckStatusRequest: V2PostingFBSDigitalActCheckStatusRequest; +} +export interface PostingAPIPostingFBSGetActRequest { + clientId: string; + apiKey: string; + postingPostingFBSGetActRequest: PostingPostingFBSGetActRequest; +} +export interface PostingAPIPostingFBSGetBarcodeRequest { + clientId: string; + apiKey: string; + v2PostingFBSGetBarcodeRequest: V2PostingFBSGetBarcodeRequest; +} +export interface PostingAPIPostingFBSGetBarcodeTextRequest { + clientId: string; + apiKey: string; + v2PostingFBSGetBarcodeRequest?: V2PostingFBSGetBarcodeRequest; +} +export interface PostingAPIPostingFBSGetDigitalActRequest { + clientId: string; + apiKey: string; + v2PostingFBSGetDigitalActRequest: V2PostingFBSGetDigitalActRequest; +} +export interface PostingFbsProductTraceableAttributeRequest { + clientId: string; + apiKey: string; + v1PostingFbsProductTraceableAttributeRequest?: V1PostingFbsProductTraceableAttributeRequest; +} +export interface PostingFbsTraceableSplitRequest { + clientId: string; + apiKey: string; + v1PostingFbsTraceableSplitRequest?: V1PostingFbsTraceableSplitRequest; +} +/** + * + */ +export declare class DeliveryFBS extends runtime.BaseAPI { + /** + * Получить список отправлений в отгрузке + */ + assemblyCarriagePostingListRaw(requestParameters: AssemblyCarriagePostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список отправлений в отгрузке + */ + assemblyCarriagePostingList(clientId: string, apiKey: string, v1AssemblyCarriagePostingListRequest?: V1AssemblyCarriagePostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список товаров в отгрузке + */ + assemblyCarriageProductListRaw(requestParameters: AssemblyCarriageProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список товаров в отгрузке + */ + assemblyCarriageProductList(clientId: string, apiKey: string, v1AssemblyCarriageProductListRequest?: V1AssemblyCarriageProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список отправлений + */ + assemblyFbsPostingListRaw(requestParameters: AssemblyFbsPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список отправлений + */ + assemblyFbsPostingList(clientId: string, apiKey: string, v1AssemblyFbsPostingListRequest?: V1AssemblyFbsPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список товаров в отправлениях + */ + assemblyFbsProductListRaw(requestParameters: AssemblyFbsProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список товаров в отправлениях + */ + assemblyFbsProductList(clientId: string, apiKey: string, v1AssemblyFbsProductListRequest?: V1AssemblyFbsProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы подтвердить отгрузку после её создания. После подтверждения отгрузка перейдёт в статус «Сформирована». После подтверждения отгрузки вы можете получить лист отгрузки методом [/v2/posting/fbs/act/get-pdf](#operation/PostingAPI_PostingFBSGetAct) и штрихкод отгрузки методом [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode). + * Подтверждение отгрузки + */ + carriageAPICarriageApproveRaw(requestParameters: CarriageAPICarriageApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы подтвердить отгрузку после её создания. После подтверждения отгрузка перейдёт в статус «Сформирована». После подтверждения отгрузки вы можете получить лист отгрузки методом [/v2/posting/fbs/act/get-pdf](#operation/PostingAPI_PostingFBSGetAct) и штрихкод отгрузки методом [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode). + * Подтверждение отгрузки + */ + carriageAPICarriageApprove(clientId: string, apiKey: string, v1CarriageApproveRequest: V1CarriageApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удаление отгрузки + */ + carriageAPICarriageCancelRaw(requestParameters: CarriageAPICarriageCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удаление отгрузки + */ + carriageAPICarriageCancel(clientId: string, apiKey: string, v1CarriageCancelRequest: V1CarriageCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод для создания первой FBS отгрузки. В неё попадут все отправления со статусом «Готов к отгрузке». Созданная отгрузка получит статус `new`. Для отгрузки в статусе `new` можно перезаписать состав отправлений методом [/v1/carriage/set-postings](#operation/CarriageAPI_SetPostings). Если из отгрузки исключить часть отправлений, они могут попасть в следующую отгрузку. Чтобы получить список отправлений в отгрузке, используйте метод [/v2/posting/fbs/act/get-postings](#operation/PostingAPI_ActPostingList). + * Создание отгрузки + */ + carriageAPICarriageCreateRaw(requestParameters: CarriageAPICarriageCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод для создания первой FBS отгрузки. В неё попадут все отправления со статусом «Готов к отгрузке». Созданная отгрузка получит статус `new`. Для отгрузки в статусе `new` можно перезаписать состав отправлений методом [/v1/carriage/set-postings](#operation/CarriageAPI_SetPostings). Если из отгрузки исключить часть отправлений, они могут попасть в следующую отгрузку. Чтобы получить список отправлений в отгрузке, используйте метод [/v2/posting/fbs/act/get-postings](#operation/PostingAPI_ActPostingList). + * Создание отгрузки + */ + carriageAPICarriageCreate(clientId: string, apiKey: string, v1CarriageCreateRequest: V1CarriageCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить список созданных отгрузок для метода доставки и их статусы. + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListRaw(requestParameters: CarriageAPICarriageDeliveryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить список созданных отгрузок для метода доставки и их статусы. + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryList(clientId: string, apiKey: string, v1CarriageDeliveryListRequest: V1CarriageDeliveryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListV2Raw(requestParameters: CarriageAPICarriageDeliveryListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListV2(clientId: string, apiKey: string, v2CarriageDeliveryListV2Request: V2CarriageDeliveryListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + *
+ * Изменение состава отгрузки + */ + carriageAPISetPostingsRaw(requestParameters: CarriageAPISetPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + *
+ * Изменение состава отгрузки + */ + carriageAPISetPostings(clientId: string, apiKey: string, v1SetPostingsRequest: V1SetPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Акт о расхождениях доступен только для отгрузок в статусе `closed` и только для продавцов из СНГ. + * Получить акт о расхождениях по отгрузке FBS + */ + carriageActDiscrepancyPDFRaw(requestParameters: CarriageActDiscrepancyPDFRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Акт о расхождениях доступен только для отгрузок в статусе `closed` и только для продавцов из СНГ. + * Получить акт о расхождениях по отгрузке FBS + */ + carriageActDiscrepancyPDF(clientId: string, apiKey: string, v1CarriageActDiscrepancyPDFRequest: V1CarriageActDiscrepancyPDFRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает контактные данные продавца, которые добавили или обновили методом [/v1/carriage/courier-contact/set](#operation/CarriageCourierContactSet). + * Получить контактные данные продавца для курьера + */ + carriageCourierContactGetRaw(requestParameters: CarriageCourierContactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает контактные данные продавца, которые добавили или обновили методом [/v1/carriage/courier-contact/set](#operation/CarriageCourierContactSet). + * Получить контактные данные продавца для курьера + */ + carriageCourierContactGet(clientId: string, apiKey: string, v1CarriageCourierContactGetRequest: V1CarriageCourierContactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы добавить или обновить контактные данные продавца, которые передаются курьеру для перевозок с `first_mile_type = pickup` и `integration_type = ozon_outsourced`. Получите значения параметров `first_mile_type` и `integration_type` в ответе метода [/v1/carriage/get](#operation/CarriageGet). + * Добавить или обновить контактные данные продавца для курьера + */ + carriageCourierContactSetRaw(requestParameters: CarriageCourierContactSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы добавить или обновить контактные данные продавца, которые передаются курьеру для перевозок с `first_mile_type = pickup` и `integration_type = ozon_outsourced`. Получите значения параметров `first_mile_type` и `integration_type` в ответе метода [/v1/carriage/get](#operation/CarriageGet). + * Добавить или обновить контактные данные продавца для курьера + */ + carriageCourierContactSet(clientId: string, apiKey: string, v1CarriageCourierContactSetRequest: V1CarriageCourierContactSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить статус проверки электронной ТТН на прослеживаемой перевозке FBS + */ + carriageEttnStatusRaw(requestParameters: CarriageEttnStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус проверки электронной ТТН на прослеживаемой перевозке FBS + */ + carriageEttnStatus(clientId: string, apiKey: string, v1CarriageEttnStatusRequest?: V1CarriageEttnStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о перевозке + */ + carriageGetRaw(requestParameters: CarriageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о перевозке + */ + carriageGet(carriageCarriageGetRequest: CarriageCarriageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Разделить заказ на отправления без сборки + */ + fbsSplitRaw(requestParameters: FbsSplitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Разделить заказ на отправления без сборки + */ + fbsSplit(v1PostingFbsSplitRequest: V1PostingFbsSplitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений в акте по его идентификатору. + * Список отправлений в акте + */ + postingAPIActPostingListRaw(requestParameters: PostingAPIActPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений в акте по его идентификатору. + * Список отправлений в акте + */ + postingAPIActPostingList(clientId: string, apiKey: string, v2PostingFBSActGetPostingsRequest: V2PostingFBSActGetPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список актов по отгрузкам с возможностью отфильтровать отгрузки по периоду, статусу и типу интеграции. + * Список актов по отгрузкам + */ + postingAPIFbsActListRaw(requestParameters: PostingAPIFbsActListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список актов по отгрузкам с возможностью отфильтровать отгрузки по периоду, статусу и типу интеграции. + * Список актов по отгрузкам + */ + postingAPIFbsActList(clientId: string, apiKey: string, v2PostingFBSActListRequest: V2PostingFBSActListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения перевозок, по которым нужно распечатать штрихкод для отгрузки и документы: - для продацов из России — лист отгрузки и транспортную накладную; - для продавцов из СНГ — акт и транспортную накладную. + * Список доступных перевозок + */ + postingAPIGetCarriageAvailableListRaw(requestParameters: PostingAPIGetCarriageAvailableListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения перевозок, по которым нужно распечатать штрихкод для отгрузки и документы: - для продацов из России — лист отгрузки и транспортную накладную; - для продавцов из СНГ — акт и транспортную накладную. + * Список доступных перевозок + */ + postingAPIGetCarriageAvailableList(clientId: string, apiKey: string, postingv1GetCarriageAvailableListRequest: Postingv1GetCarriageAvailableListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает статус формирования штрихкода для отгрузки и документов: - для продавцов из России — транспортной накладной и листа отгрузки; - для продавцов из СНГ — транспортной накладной и акта приёма-передачи. + * Статус отгрузки и документов + */ + postingAPIPostingFBSActCheckStatusRaw(requestParameters: PostingAPIPostingFBSActCheckStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает статус формирования штрихкода для отгрузки и документов: - для продавцов из России — транспортной накладной и листа отгрузки; - для продавцов из СНГ — транспортной накладной и акта приёма-передачи. + * Статус отгрузки и документов + */ + postingAPIPostingFBSActCheckStatus(clientId: string, apiKey: string, postingPostingFBSActCheckStatusRequest: PostingPostingFBSActCheckStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Подтверждает отгрузку и запускает формирование транспортной накладной и штрихкода для отгрузки. Для продавцов из России также запускается формирование листа отгрузки, а для продавцов из СНГ — акта приёма-передачи. Чтобы сформировать и получить документы, переведите отправление в статус `awaiting_deliver`. + * Подтвердить отгрузку и создать документы + */ + postingAPIPostingFBSActCreateRaw(requestParameters: PostingAPIPostingFBSActCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Подтверждает отгрузку и запускает формирование транспортной накладной и штрихкода для отгрузки. Для продавцов из России также запускается формирование листа отгрузки, а для продавцов из СНГ — акта приёма-передачи. Чтобы сформировать и получить документы, переведите отправление в статус `awaiting_deliver`. + * Подтвердить отгрузку и создать документы + */ + postingAPIPostingFBSActCreate(clientId: string, apiKey: string, postingPostingFBSActCreateRequest: PostingPostingFBSActCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод создает этикетки для грузового места. + * Этикетки для грузового места + */ + postingAPIPostingFBSActGetContainerLabelsRaw(requestParameters: PostingAPIPostingFBSActGetContainerLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод создает этикетки для грузового места. + * Этикетки для грузового места + */ + postingAPIPostingFBSActGetContainerLabels(clientId: string, apiKey: string, postingPostingFBSActGetContainerLabelsRequest: PostingPostingFBSActGetContainerLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Статус формирования накладной + * @deprecated + */ + postingAPIPostingFBSDigitalActCheckStatusRaw(requestParameters: PostingAPIPostingFBSDigitalActCheckStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Статус формирования накладной + * @deprecated + */ + postingAPIPostingFBSDigitalActCheckStatus(clientId: string, apiKey: string, v2PostingFBSDigitalActCheckStatusRequest: V2PostingFBSDigitalActCheckStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * С помощью метода можно получить: - продацам из России — лист отгрузки и транспортную накладную; - продавцам из СНГ — акт и транспортную накладную. Получите список доступных документов для отгрузки в параметре `available_actions` метода [/v1/carriage/get](#operation/CarriageGet). + * Получить PDF c документами + */ + postingAPIPostingFBSGetActRaw(requestParameters: PostingAPIPostingFBSGetActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * С помощью метода можно получить: - продацам из России — лист отгрузки и транспортную накладную; - продавцам из СНГ — акт и транспортную накладную. Получите список доступных документов для отгрузки в параметре `available_actions` метода [/v1/carriage/get](#operation/CarriageGet). + * Получить PDF c документами + */ + postingAPIPostingFBSGetAct(clientId: string, apiKey: string, postingPostingFBSGetActRequest: PostingPostingFBSGetActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения штрихкода, который нужно показать в пункте выдачи или сортировочном центре при отгрузке отправления. + * Штрихкод для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeRaw(requestParameters: PostingAPIPostingFBSGetBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения штрихкода, который нужно показать в пункте выдачи или сортировочном центре при отгрузке отправления. + * Штрихкод для отгрузки отправления + */ + postingAPIPostingFBSGetBarcode(clientId: string, apiKey: string, v2PostingFBSGetBarcodeRequest: V2PostingFBSGetBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте этот метод, чтобы получить штрихкод из ответа [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode) в текстовом виде. + * Значение штрихкода для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeTextRaw(requestParameters: PostingAPIPostingFBSGetBarcodeTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте этот метод, чтобы получить штрихкод из ответа [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode) в текстовом виде. + * Значение штрихкода для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeText(clientId: string, apiKey: string, v2PostingFBSGetBarcodeRequest?: V2PostingFBSGetBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете получить документы, если в ответе метода [/v2/posting/fbs/digital/act/check-status](#operation/PostingAPI_PostingFBSDigitalActCheckStatus) был один из статусов: - `FORMED` — перевозка сформирована успешно, - `CONFIRMED` — перевозка подтверждена Ozon, - `CONFIRMED_WITH_MISMATCH` — перевозка принята Ozon с расхождениями. + * Получить лист отгрузки по перевозке + * @deprecated + */ + postingAPIPostingFBSGetDigitalActRaw(requestParameters: PostingAPIPostingFBSGetDigitalActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете получить документы, если в ответе метода [/v2/posting/fbs/digital/act/check-status](#operation/PostingAPI_PostingFBSDigitalActCheckStatus) был один из статусов: - `FORMED` — перевозка сформирована успешно, - `CONFIRMED` — перевозка подтверждена Ozon, - `CONFIRMED_WITH_MISMATCH` — перевозка принята Ozon с расхождениями. + * Получить лист отгрузки по перевозке + * @deprecated + */ + postingAPIPostingFBSGetDigitalAct(clientId: string, apiKey: string, v2PostingFBSGetDigitalActRequest: V2PostingFBSGetDigitalActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список незаполненных атрибутов для прослеживаемых товаров + */ + postingFbsProductTraceableAttributeRaw(requestParameters: PostingFbsProductTraceableAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список незаполненных атрибутов для прослеживаемых товаров + */ + postingFbsProductTraceableAttribute(clientId: string, apiKey: string, v1PostingFbsProductTraceableAttributeRequest?: V1PostingFbsProductTraceableAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Разделить отправление с прослеживаемыми товарами + */ + postingFbsTraceableSplitRaw(requestParameters: PostingFbsTraceableSplitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Разделить отправление с прослеживаемыми товарами + */ + postingFbsTraceableSplit(clientId: string, apiKey: string, v1PostingFbsTraceableSplitRequest?: V1PostingFbsTraceableSplitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/DeliveryFBS.js b/dist/apis/DeliveryFBS.js new file mode 100644 index 0000000..67471f2 --- /dev/null +++ b/dist/apis/DeliveryFBS.js @@ -0,0 +1,1244 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryFBS = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class DeliveryFBS extends runtime.BaseAPI { + /** + * Получить список отправлений в отгрузке + */ + assemblyCarriagePostingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling assemblyCarriagePostingList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling assemblyCarriagePostingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/assembly/carriage/posting/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AssemblyCarriagePostingListRequestToJSON)(requestParameters['v1AssemblyCarriagePostingListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AssemblyCarriagePostingListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список отправлений в отгрузке + */ + assemblyCarriagePostingList(clientId, apiKey, v1AssemblyCarriagePostingListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.assemblyCarriagePostingListRaw({ clientId: clientId, apiKey: apiKey, v1AssemblyCarriagePostingListRequest: v1AssemblyCarriagePostingListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список товаров в отгрузке + */ + assemblyCarriageProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling assemblyCarriageProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling assemblyCarriageProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/assembly/carriage/product/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AssemblyCarriageProductListRequestToJSON)(requestParameters['v1AssemblyCarriageProductListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AssemblyCarriageProductListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список товаров в отгрузке + */ + assemblyCarriageProductList(clientId, apiKey, v1AssemblyCarriageProductListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.assemblyCarriageProductListRaw({ clientId: clientId, apiKey: apiKey, v1AssemblyCarriageProductListRequest: v1AssemblyCarriageProductListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список отправлений + */ + assemblyFbsPostingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling assemblyFbsPostingList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling assemblyFbsPostingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/assembly/fbs/posting/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AssemblyFbsPostingListRequestToJSON)(requestParameters['v1AssemblyFbsPostingListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AssemblyFbsPostingListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список отправлений + */ + assemblyFbsPostingList(clientId, apiKey, v1AssemblyFbsPostingListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.assemblyFbsPostingListRaw({ clientId: clientId, apiKey: apiKey, v1AssemblyFbsPostingListRequest: v1AssemblyFbsPostingListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список товаров в отправлениях + */ + assemblyFbsProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling assemblyFbsProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling assemblyFbsProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/assembly/fbs/product/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AssemblyFbsProductListRequestToJSON)(requestParameters['v1AssemblyFbsProductListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AssemblyFbsProductListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список товаров в отправлениях + */ + assemblyFbsProductList(clientId, apiKey, v1AssemblyFbsProductListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.assemblyFbsProductListRaw({ clientId: clientId, apiKey: apiKey, v1AssemblyFbsProductListRequest: v1AssemblyFbsProductListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы подтвердить отгрузку после её создания. После подтверждения отгрузка перейдёт в статус «Сформирована». После подтверждения отгрузки вы можете получить лист отгрузки методом [/v2/posting/fbs/act/get-pdf](#operation/PostingAPI_PostingFBSGetAct) и штрихкод отгрузки методом [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode). + * Подтверждение отгрузки + */ + carriageAPICarriageApproveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageApprove().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageApprove().'); + } + if (requestParameters['v1CarriageApproveRequest'] == null) { + throw new runtime.RequiredError('v1CarriageApproveRequest', 'Required parameter "v1CarriageApproveRequest" was null or undefined when calling carriageAPICarriageApprove().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/approve`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CarriageApproveRequestToJSON)(requestParameters['v1CarriageApproveRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Используйте метод, чтобы подтвердить отгрузку после её создания. После подтверждения отгрузка перейдёт в статус «Сформирована». После подтверждения отгрузки вы можете получить лист отгрузки методом [/v2/posting/fbs/act/get-pdf](#operation/PostingAPI_PostingFBSGetAct) и штрихкод отгрузки методом [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode). + * Подтверждение отгрузки + */ + carriageAPICarriageApprove(clientId, apiKey, v1CarriageApproveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageApproveRaw({ clientId: clientId, apiKey: apiKey, v1CarriageApproveRequest: v1CarriageApproveRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Удаление отгрузки + */ + carriageAPICarriageCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageCancel().'); + } + if (requestParameters['v1CarriageCancelRequest'] == null) { + throw new runtime.RequiredError('v1CarriageCancelRequest', 'Required parameter "v1CarriageCancelRequest" was null or undefined when calling carriageAPICarriageCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CarriageCancelRequestToJSON)(requestParameters['v1CarriageCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CarriageCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Удаление отгрузки + */ + carriageAPICarriageCancel(clientId, apiKey, v1CarriageCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageCancelRaw({ clientId: clientId, apiKey: apiKey, v1CarriageCancelRequest: v1CarriageCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод для создания первой FBS отгрузки. В неё попадут все отправления со статусом «Готов к отгрузке». Созданная отгрузка получит статус `new`. Для отгрузки в статусе `new` можно перезаписать состав отправлений методом [/v1/carriage/set-postings](#operation/CarriageAPI_SetPostings). Если из отгрузки исключить часть отправлений, они могут попасть в следующую отгрузку. Чтобы получить список отправлений в отгрузке, используйте метод [/v2/posting/fbs/act/get-postings](#operation/PostingAPI_ActPostingList). + * Создание отгрузки + */ + carriageAPICarriageCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageCreate().'); + } + if (requestParameters['v1CarriageCreateRequest'] == null) { + throw new runtime.RequiredError('v1CarriageCreateRequest', 'Required parameter "v1CarriageCreateRequest" was null or undefined when calling carriageAPICarriageCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CarriageCreateRequestToJSON)(requestParameters['v1CarriageCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CarriageCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод для создания первой FBS отгрузки. В неё попадут все отправления со статусом «Готов к отгрузке». Созданная отгрузка получит статус `new`. Для отгрузки в статусе `new` можно перезаписать состав отправлений методом [/v1/carriage/set-postings](#operation/CarriageAPI_SetPostings). Если из отгрузки исключить часть отправлений, они могут попасть в следующую отгрузку. Чтобы получить список отправлений в отгрузке, используйте метод [/v2/posting/fbs/act/get-postings](#operation/PostingAPI_ActPostingList). + * Создание отгрузки + */ + carriageAPICarriageCreate(clientId, apiKey, v1CarriageCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageCreateRaw({ clientId: clientId, apiKey: apiKey, v1CarriageCreateRequest: v1CarriageCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить список созданных отгрузок для метода доставки и их статусы. + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageDeliveryList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageDeliveryList().'); + } + if (requestParameters['v1CarriageDeliveryListRequest'] == null) { + throw new runtime.RequiredError('v1CarriageDeliveryListRequest', 'Required parameter "v1CarriageDeliveryListRequest" was null or undefined when calling carriageAPICarriageDeliveryList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/delivery/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CarriageDeliveryListRequestToJSON)(requestParameters['v1CarriageDeliveryListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CarriageDeliveryListResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить список созданных отгрузок для метода доставки и их статусы. + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryList(clientId, apiKey, v1CarriageDeliveryListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageDeliveryListRaw({ clientId: clientId, apiKey: apiKey, v1CarriageDeliveryListRequest: v1CarriageDeliveryListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageDeliveryListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageDeliveryListV2().'); + } + if (requestParameters['v2CarriageDeliveryListV2Request'] == null) { + throw new runtime.RequiredError('v2CarriageDeliveryListV2Request', 'Required parameter "v2CarriageDeliveryListV2Request" was null or undefined when calling carriageAPICarriageDeliveryListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/carriage/delivery/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2CarriageDeliveryListV2RequestToJSON)(requestParameters['v2CarriageDeliveryListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2CarriageDeliveryListV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListV2(clientId, apiKey, v2CarriageDeliveryListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageDeliveryListV2Raw({ clientId: clientId, apiKey: apiKey, v2CarriageDeliveryListV2Request: v2CarriageDeliveryListV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + *
+ * Изменение состава отгрузки + */ + carriageAPISetPostingsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPISetPostings().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPISetPostings().'); + } + if (requestParameters['v1SetPostingsRequest'] == null) { + throw new runtime.RequiredError('v1SetPostingsRequest', 'Required parameter "v1SetPostingsRequest" was null or undefined when calling carriageAPISetPostings().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/set-postings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SetPostingsRequestToJSON)(requestParameters['v1SetPostingsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SetPostingsResponseFromJSON)(jsonValue)); + }); + } + /** + *
+ * Изменение состава отгрузки + */ + carriageAPISetPostings(clientId, apiKey, v1SetPostingsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPISetPostingsRaw({ clientId: clientId, apiKey: apiKey, v1SetPostingsRequest: v1SetPostingsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Акт о расхождениях доступен только для отгрузок в статусе `closed` и только для продавцов из СНГ. + * Получить акт о расхождениях по отгрузке FBS + */ + carriageActDiscrepancyPDFRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageActDiscrepancyPDF().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageActDiscrepancyPDF().'); + } + if (requestParameters['v1CarriageActDiscrepancyPDFRequest'] == null) { + throw new runtime.RequiredError('v1CarriageActDiscrepancyPDFRequest', 'Required parameter "v1CarriageActDiscrepancyPDFRequest" was null or undefined when calling carriageActDiscrepancyPDF().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/act-discrepancy/pdf`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CarriageActDiscrepancyPDFRequestToJSON)(requestParameters['v1CarriageActDiscrepancyPDFRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CarriageActDiscrepancyPDFResponseFromJSON)(jsonValue)); + }); + } + /** + * Акт о расхождениях доступен только для отгрузок в статусе `closed` и только для продавцов из СНГ. + * Получить акт о расхождениях по отгрузке FBS + */ + carriageActDiscrepancyPDF(clientId, apiKey, v1CarriageActDiscrepancyPDFRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageActDiscrepancyPDFRaw({ clientId: clientId, apiKey: apiKey, v1CarriageActDiscrepancyPDFRequest: v1CarriageActDiscrepancyPDFRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает контактные данные продавца, которые добавили или обновили методом [/v1/carriage/courier-contact/set](#operation/CarriageCourierContactSet). + * Получить контактные данные продавца для курьера + */ + carriageCourierContactGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageCourierContactGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageCourierContactGet().'); + } + if (requestParameters['v1CarriageCourierContactGetRequest'] == null) { + throw new runtime.RequiredError('v1CarriageCourierContactGetRequest', 'Required parameter "v1CarriageCourierContactGetRequest" was null or undefined when calling carriageCourierContactGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/courier-contact/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CarriageCourierContactGetRequestToJSON)(requestParameters['v1CarriageCourierContactGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CarriageCourierContactGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает контактные данные продавца, которые добавили или обновили методом [/v1/carriage/courier-contact/set](#operation/CarriageCourierContactSet). + * Получить контактные данные продавца для курьера + */ + carriageCourierContactGet(clientId, apiKey, v1CarriageCourierContactGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageCourierContactGetRaw({ clientId: clientId, apiKey: apiKey, v1CarriageCourierContactGetRequest: v1CarriageCourierContactGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы добавить или обновить контактные данные продавца, которые передаются курьеру для перевозок с `first_mile_type = pickup` и `integration_type = ozon_outsourced`. Получите значения параметров `first_mile_type` и `integration_type` в ответе метода [/v1/carriage/get](#operation/CarriageGet). + * Добавить или обновить контактные данные продавца для курьера + */ + carriageCourierContactSetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageCourierContactSet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageCourierContactSet().'); + } + if (requestParameters['v1CarriageCourierContactSetRequest'] == null) { + throw new runtime.RequiredError('v1CarriageCourierContactSetRequest', 'Required parameter "v1CarriageCourierContactSetRequest" was null or undefined when calling carriageCourierContactSet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/courier-contact/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CarriageCourierContactSetRequestToJSON)(requestParameters['v1CarriageCourierContactSetRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Используйте метод, чтобы добавить или обновить контактные данные продавца, которые передаются курьеру для перевозок с `first_mile_type = pickup` и `integration_type = ozon_outsourced`. Получите значения параметров `first_mile_type` и `integration_type` в ответе метода [/v1/carriage/get](#operation/CarriageGet). + * Добавить или обновить контактные данные продавца для курьера + */ + carriageCourierContactSet(clientId, apiKey, v1CarriageCourierContactSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.carriageCourierContactSetRaw({ clientId: clientId, apiKey: apiKey, v1CarriageCourierContactSetRequest: v1CarriageCourierContactSetRequest }, initOverrides); + }); + } + /** + * Получить статус проверки электронной ТТН на прослеживаемой перевозке FBS + */ + carriageEttnStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageEttnStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageEttnStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/ettn/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CarriageEttnStatusRequestToJSON)(requestParameters['v1CarriageEttnStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CarriageEttnStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить статус проверки электронной ТТН на прослеживаемой перевозке FBS + */ + carriageEttnStatus(clientId, apiKey, v1CarriageEttnStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageEttnStatusRaw({ clientId: clientId, apiKey: apiKey, v1CarriageEttnStatusRequest: v1CarriageEttnStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о перевозке + */ + carriageGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriageCarriageGetRequest'] == null) { + throw new runtime.RequiredError('carriageCarriageGetRequest', 'Required parameter "carriageCarriageGetRequest" was null or undefined when calling carriageGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CarriageCarriageGetRequestToJSON)(requestParameters['carriageCarriageGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CarriageCarriageGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Информация о перевозке + */ + carriageGet(carriageCarriageGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageGetRaw({ carriageCarriageGetRequest: carriageCarriageGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Разделить заказ на отправления без сборки + */ + fbsSplitRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingFbsSplitRequest'] == null) { + throw new runtime.RequiredError('v1PostingFbsSplitRequest', 'Required parameter "v1PostingFbsSplitRequest" was null or undefined when calling fbsSplit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/fbs/split`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingFbsSplitRequestToJSON)(requestParameters['v1PostingFbsSplitRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingFbsSplitResponseFromJSON)(jsonValue)); + }); + } + /** + * Разделить заказ на отправления без сборки + */ + fbsSplit(v1PostingFbsSplitRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbsSplitRaw({ v1PostingFbsSplitRequest: v1PostingFbsSplitRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений в акте по его идентификатору. + * Список отправлений в акте + */ + postingAPIActPostingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIActPostingList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIActPostingList().'); + } + if (requestParameters['v2PostingFBSActGetPostingsRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSActGetPostingsRequest', 'Required parameter "v2PostingFBSActGetPostingsRequest" was null or undefined when calling postingAPIActPostingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-postings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2PostingFBSActGetPostingsRequestToJSON)(requestParameters['v2PostingFBSActGetPostingsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2PostingFBSActGetPostingsResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список отправлений в акте по его идентификатору. + * Список отправлений в акте + */ + postingAPIActPostingList(clientId, apiKey, v2PostingFBSActGetPostingsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIActPostingListRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSActGetPostingsRequest: v2PostingFBSActGetPostingsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список актов по отгрузкам с возможностью отфильтровать отгрузки по периоду, статусу и типу интеграции. + * Список актов по отгрузкам + */ + postingAPIFbsActListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsActList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsActList().'); + } + if (requestParameters['v2PostingFBSActListRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSActListRequest', 'Required parameter "v2PostingFBSActListRequest" was null or undefined when calling postingAPIFbsActList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2PostingFBSActListRequestToJSON)(requestParameters['v2PostingFBSActListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2PostingFBSActListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список актов по отгрузкам с возможностью отфильтровать отгрузки по периоду, статусу и типу интеграции. + * Список актов по отгрузкам + */ + postingAPIFbsActList(clientId, apiKey, v2PostingFBSActListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsActListRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSActListRequest: v2PostingFBSActListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения перевозок, по которым нужно распечатать штрихкод для отгрузки и документы: - для продацов из России — лист отгрузки и транспортную накладную; - для продавцов из СНГ — акт и транспортную накладную. + * Список доступных перевозок + */ + postingAPIGetCarriageAvailableListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetCarriageAvailableList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetCarriageAvailableList().'); + } + if (requestParameters['postingv1GetCarriageAvailableListRequest'] == null) { + throw new runtime.RequiredError('postingv1GetCarriageAvailableListRequest', 'Required parameter "postingv1GetCarriageAvailableListRequest" was null or undefined when calling postingAPIGetCarriageAvailableList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/carriage-available/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Postingv1GetCarriageAvailableListRequestToJSON)(requestParameters['postingv1GetCarriageAvailableListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Postingv1GetCarriageAvailableListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения перевозок, по которым нужно распечатать штрихкод для отгрузки и документы: - для продацов из России — лист отгрузки и транспортную накладную; - для продавцов из СНГ — акт и транспортную накладную. + * Список доступных перевозок + */ + postingAPIGetCarriageAvailableList(clientId, apiKey, postingv1GetCarriageAvailableListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetCarriageAvailableListRaw({ clientId: clientId, apiKey: apiKey, postingv1GetCarriageAvailableListRequest: postingv1GetCarriageAvailableListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает статус формирования штрихкода для отгрузки и документов: - для продавцов из России — транспортной накладной и листа отгрузки; - для продавцов из СНГ — транспортной накладной и акта приёма-передачи. + * Статус отгрузки и документов + */ + postingAPIPostingFBSActCheckStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSActCheckStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSActCheckStatus().'); + } + if (requestParameters['postingPostingFBSActCheckStatusRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSActCheckStatusRequest', 'Required parameter "postingPostingFBSActCheckStatusRequest" was null or undefined when calling postingAPIPostingFBSActCheckStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/check-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingPostingFBSActCheckStatusRequestToJSON)(requestParameters['postingPostingFBSActCheckStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingPostingFBSActCheckStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает статус формирования штрихкода для отгрузки и документов: - для продавцов из России — транспортной накладной и листа отгрузки; - для продавцов из СНГ — транспортной накладной и акта приёма-передачи. + * Статус отгрузки и документов + */ + postingAPIPostingFBSActCheckStatus(clientId, apiKey, postingPostingFBSActCheckStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSActCheckStatusRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSActCheckStatusRequest: postingPostingFBSActCheckStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Подтверждает отгрузку и запускает формирование транспортной накладной и штрихкода для отгрузки. Для продавцов из России также запускается формирование листа отгрузки, а для продавцов из СНГ — акта приёма-передачи. Чтобы сформировать и получить документы, переведите отправление в статус `awaiting_deliver`. + * Подтвердить отгрузку и создать документы + */ + postingAPIPostingFBSActCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSActCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSActCreate().'); + } + if (requestParameters['postingPostingFBSActCreateRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSActCreateRequest', 'Required parameter "postingPostingFBSActCreateRequest" was null or undefined when calling postingAPIPostingFBSActCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingPostingFBSActCreateRequestToJSON)(requestParameters['postingPostingFBSActCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingPostingFBSActCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Подтверждает отгрузку и запускает формирование транспортной накладной и штрихкода для отгрузки. Для продавцов из России также запускается формирование листа отгрузки, а для продавцов из СНГ — акта приёма-передачи. Чтобы сформировать и получить документы, переведите отправление в статус `awaiting_deliver`. + * Подтвердить отгрузку и создать документы + */ + postingAPIPostingFBSActCreate(clientId, apiKey, postingPostingFBSActCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSActCreateRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSActCreateRequest: postingPostingFBSActCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод создает этикетки для грузового места. + * Этикетки для грузового места + */ + postingAPIPostingFBSActGetContainerLabelsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSActGetContainerLabels().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSActGetContainerLabels().'); + } + if (requestParameters['postingPostingFBSActGetContainerLabelsRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSActGetContainerLabelsRequest', 'Required parameter "postingPostingFBSActGetContainerLabelsRequest" was null or undefined when calling postingAPIPostingFBSActGetContainerLabels().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-container-labels`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingPostingFBSActGetContainerLabelsRequestToJSON)(requestParameters['postingPostingFBSActGetContainerLabelsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingPostingFBSActGetContainerLabelsResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод создает этикетки для грузового места. + * Этикетки для грузового места + */ + postingAPIPostingFBSActGetContainerLabels(clientId, apiKey, postingPostingFBSActGetContainerLabelsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSActGetContainerLabelsRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSActGetContainerLabelsRequest: postingPostingFBSActGetContainerLabelsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Статус формирования накладной + * @deprecated + */ + postingAPIPostingFBSDigitalActCheckStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSDigitalActCheckStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSDigitalActCheckStatus().'); + } + if (requestParameters['v2PostingFBSDigitalActCheckStatusRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSDigitalActCheckStatusRequest', 'Required parameter "v2PostingFBSDigitalActCheckStatusRequest" was null or undefined when calling postingAPIPostingFBSDigitalActCheckStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/digital/act/check-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2PostingFBSDigitalActCheckStatusRequestToJSON)(requestParameters['v2PostingFBSDigitalActCheckStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2PostingFBSDigitalActCheckStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Статус формирования накладной + * @deprecated + */ + postingAPIPostingFBSDigitalActCheckStatus(clientId, apiKey, v2PostingFBSDigitalActCheckStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSDigitalActCheckStatusRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSDigitalActCheckStatusRequest: v2PostingFBSDigitalActCheckStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * С помощью метода можно получить: - продацам из России — лист отгрузки и транспортную накладную; - продавцам из СНГ — акт и транспортную накладную. Получите список доступных документов для отгрузки в параметре `available_actions` метода [/v1/carriage/get](#operation/CarriageGet). + * Получить PDF c документами + */ + postingAPIPostingFBSGetActRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSGetAct().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSGetAct().'); + } + if (requestParameters['postingPostingFBSGetActRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSGetActRequest', 'Required parameter "postingPostingFBSGetActRequest" was null or undefined when calling postingAPIPostingFBSGetAct().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-pdf`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingPostingFBSGetActRequestToJSON)(requestParameters['postingPostingFBSGetActRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingPostingFBSGetActResponseFromJSON)(jsonValue)); + }); + } + /** + * С помощью метода можно получить: - продацам из России — лист отгрузки и транспортную накладную; - продавцам из СНГ — акт и транспортную накладную. Получите список доступных документов для отгрузки в параметре `available_actions` метода [/v1/carriage/get](#operation/CarriageGet). + * Получить PDF c документами + */ + postingAPIPostingFBSGetAct(clientId, apiKey, postingPostingFBSGetActRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSGetActRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSGetActRequest: postingPostingFBSGetActRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения штрихкода, который нужно показать в пункте выдачи или сортировочном центре при отгрузке отправления. + * Штрихкод для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSGetBarcode().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSGetBarcode().'); + } + if (requestParameters['v2PostingFBSGetBarcodeRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSGetBarcodeRequest', 'Required parameter "v2PostingFBSGetBarcodeRequest" was null or undefined when calling postingAPIPostingFBSGetBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-barcode`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2PostingFBSGetBarcodeRequestToJSON)(requestParameters['v2PostingFBSGetBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2PostingFBSGetBarcodeResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения штрихкода, который нужно показать в пункте выдачи или сортировочном центре при отгрузке отправления. + * Штрихкод для отгрузки отправления + */ + postingAPIPostingFBSGetBarcode(clientId, apiKey, v2PostingFBSGetBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSGetBarcodeRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSGetBarcodeRequest: v2PostingFBSGetBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте этот метод, чтобы получить штрихкод из ответа [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode) в текстовом виде. + * Значение штрихкода для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeTextRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSGetBarcodeText().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSGetBarcodeText().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-barcode/text`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2PostingFBSGetBarcodeRequestToJSON)(requestParameters['v2PostingFBSGetBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2PostingFBSGetBarcodeTextResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте этот метод, чтобы получить штрихкод из ответа [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode) в текстовом виде. + * Значение штрихкода для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeText(clientId, apiKey, v2PostingFBSGetBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSGetBarcodeTextRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSGetBarcodeRequest: v2PostingFBSGetBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете получить документы, если в ответе метода [/v2/posting/fbs/digital/act/check-status](#operation/PostingAPI_PostingFBSDigitalActCheckStatus) был один из статусов: - `FORMED` — перевозка сформирована успешно, - `CONFIRMED` — перевозка подтверждена Ozon, - `CONFIRMED_WITH_MISMATCH` — перевозка принята Ozon с расхождениями. + * Получить лист отгрузки по перевозке + * @deprecated + */ + postingAPIPostingFBSGetDigitalActRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSGetDigitalAct().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSGetDigitalAct().'); + } + if (requestParameters['v2PostingFBSGetDigitalActRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSGetDigitalActRequest', 'Required parameter "v2PostingFBSGetDigitalActRequest" was null or undefined when calling postingAPIPostingFBSGetDigitalAct().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/digital/act/get-pdf`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2PostingFBSGetDigitalActRequestToJSON)(requestParameters['v2PostingFBSGetDigitalActRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2PostingFBSGetDigitalActResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете получить документы, если в ответе метода [/v2/posting/fbs/digital/act/check-status](#operation/PostingAPI_PostingFBSDigitalActCheckStatus) был один из статусов: - `FORMED` — перевозка сформирована успешно, - `CONFIRMED` — перевозка подтверждена Ozon, - `CONFIRMED_WITH_MISMATCH` — перевозка принята Ozon с расхождениями. + * Получить лист отгрузки по перевозке + * @deprecated + */ + postingAPIPostingFBSGetDigitalAct(clientId, apiKey, v2PostingFBSGetDigitalActRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSGetDigitalActRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSGetDigitalActRequest: v2PostingFBSGetDigitalActRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список незаполненных атрибутов для прослеживаемых товаров + */ + postingFbsProductTraceableAttributeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbsProductTraceableAttribute().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbsProductTraceableAttribute().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/product/traceable/attribute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingFbsProductTraceableAttributeRequestToJSON)(requestParameters['v1PostingFbsProductTraceableAttributeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingFbsProductTraceableAttributeResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список незаполненных атрибутов для прослеживаемых товаров + */ + postingFbsProductTraceableAttribute(clientId, apiKey, v1PostingFbsProductTraceableAttributeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbsProductTraceableAttributeRaw({ clientId: clientId, apiKey: apiKey, v1PostingFbsProductTraceableAttributeRequest: v1PostingFbsProductTraceableAttributeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Разделить отправление с прослеживаемыми товарами + */ + postingFbsTraceableSplitRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbsTraceableSplit().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbsTraceableSplit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/traceable/split`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingFbsTraceableSplitRequestToJSON)(requestParameters['v1PostingFbsTraceableSplitRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingFbsTraceableSplitResponseFromJSON)(jsonValue)); + }); + } + /** + * Разделить отправление с прослеживаемыми товарами + */ + postingFbsTraceableSplit(clientId, apiKey, v1PostingFbsTraceableSplitRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbsTraceableSplitRaw({ clientId: clientId, apiKey: apiKey, v1PostingFbsTraceableSplitRequest: v1PostingFbsTraceableSplitRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.DeliveryFBS = DeliveryFBS; diff --git a/dist/apis/DeliveryrFBS.d.ts b/dist/apis/DeliveryrFBS.d.ts new file mode 100644 index 0000000..01128ff --- /dev/null +++ b/dist/apis/DeliveryrFBS.d.ts @@ -0,0 +1,123 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PostingFbsPostingDeliveredRequest, PostingFbsPostingDeliveringRequest, PostingFbsPostingLastMileRequest, PostingFbsPostingMoveStatusResponse, PostingFbsPostingTrackingNumberSetRequest, V1PostingFbsTimeslotChangeRestrictionsRequest, V1PostingFbsTimeslotChangeRestrictionsResponse, V1PostingFbsTimeslotSetRequest, V1PostingFbsTimeslotSetResponse, V1SetPostingCutoffRequest, V1SetPostingCutoffResponse } from '../models/index'; +export interface PostingAPIFbsPostingDeliveredRequest { + clientId: string; + apiKey: string; + postingFbsPostingDeliveredRequest: PostingFbsPostingDeliveredRequest; +} +export interface PostingAPIFbsPostingDeliveringRequest { + clientId: string; + apiKey: string; + postingFbsPostingDeliveringRequest: PostingFbsPostingDeliveringRequest; +} +export interface PostingAPIFbsPostingLastMileRequest { + clientId: string; + apiKey: string; + postingFbsPostingLastMileRequest: PostingFbsPostingLastMileRequest; +} +export interface PostingAPIFbsPostingTrackingNumberSetRequest { + clientId: string; + apiKey: string; + postingFbsPostingTrackingNumberSetRequest: PostingFbsPostingTrackingNumberSetRequest; +} +export interface PostingAPIPostingTimeslotChangeRestrictionsRequest { + clientId: string; + apiKey: string; + v1PostingFbsTimeslotChangeRestrictionsRequest: V1PostingFbsTimeslotChangeRestrictionsRequest; +} +export interface PostingAPISetPostingCutoffRequest { + clientId: string; + apiKey: string; + v1SetPostingCutoffRequest: V1SetPostingCutoffRequest; +} +export interface PostingAPISetPostingTimeslotRequest { + clientId: string; + apiKey: string; + v1PostingFbsTimeslotSetRequest: V1PostingFbsTimeslotSetRequest; +} +/** + * + */ +export declare class DeliveryrFBS extends runtime.BaseAPI { + /** + * Перевести отправление в статус «Доставлено», если используется сторонняя служба доставки. + * Изменить статус на «Доставлено» + */ + postingAPIFbsPostingDeliveredRaw(requestParameters: PostingAPIFbsPostingDeliveredRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перевести отправление в статус «Доставлено», если используется сторонняя служба доставки. + * Изменить статус на «Доставлено» + */ + postingAPIFbsPostingDelivered(clientId: string, apiKey: string, postingFbsPostingDeliveredRequest: PostingFbsPostingDeliveredRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Перевести отправление в статус «Доставляется», если используется сторонняя служба доставки. + * Изменить статус на «Доставляется» + */ + postingAPIFbsPostingDeliveringRaw(requestParameters: PostingAPIFbsPostingDeliveringRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перевести отправление в статус «Доставляется», если используется сторонняя служба доставки. + * Изменить статус на «Доставляется» + */ + postingAPIFbsPostingDelivering(clientId: string, apiKey: string, postingFbsPostingDeliveringRequest: PostingFbsPostingDeliveringRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Перевести отправление в статус «Последняя миля», если используется сторонняя служба доставки. + * Изменить статус на «Последняя миля» + */ + postingAPIFbsPostingLastMileRaw(requestParameters: PostingAPIFbsPostingLastMileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перевести отправление в статус «Последняя миля», если используется сторонняя служба доставки. + * Изменить статус на «Последняя миля» + */ + postingAPIFbsPostingLastMile(clientId: string, apiKey: string, postingFbsPostingLastMileRequest: PostingFbsPostingLastMileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Добавить трек-номера к отправлениям. Вы можете передать до 20 трек-номеров за раз. + * Добавить трек-номера + */ + postingAPIFbsPostingTrackingNumberSetRaw(requestParameters: PostingAPIFbsPostingTrackingNumberSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Добавить трек-номера к отправлениям. Вы можете передать до 20 трек-номеров за раз. + * Добавить трек-номера + */ + postingAPIFbsPostingTrackingNumberSet(clientId: string, apiKey: string, postingFbsPostingTrackingNumberSetRequest: PostingFbsPostingTrackingNumberSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения доступных дат для переноса доставки и количества доступных переносов. + * Доступные даты для переноса доставки + */ + postingAPIPostingTimeslotChangeRestrictionsRaw(requestParameters: PostingAPIPostingTimeslotChangeRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения доступных дат для переноса доставки и количества доступных переносов. + * Доступные даты для переноса доставки + */ + postingAPIPostingTimeslotChangeRestrictions(clientId: string, apiKey: string, v1PostingFbsTimeslotChangeRestrictionsRequest: V1PostingFbsTimeslotChangeRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для отправлений, которые доставляет продавец или неинтегрированный перевозчик. + * Уточнить дату отгрузки отправления + */ + postingAPISetPostingCutoffRaw(requestParameters: PostingAPISetPostingCutoffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для отправлений, которые доставляет продавец или неинтегрированный перевозчик. + * Уточнить дату отгрузки отправления + */ + postingAPISetPostingCutoff(clientId: string, apiKey: string, v1SetPostingCutoffRequest: V1SetPostingCutoffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете изменить дату доставки отправления не больше двух раз. + * Перенести дату доставки + */ + postingAPISetPostingTimeslotRaw(requestParameters: PostingAPISetPostingTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете изменить дату доставки отправления не больше двух раз. + * Перенести дату доставки + */ + postingAPISetPostingTimeslot(clientId: string, apiKey: string, v1PostingFbsTimeslotSetRequest: V1PostingFbsTimeslotSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/DeliveryrFBS.js b/dist/apis/DeliveryrFBS.js new file mode 100644 index 0000000..916abd6 --- /dev/null +++ b/dist/apis/DeliveryrFBS.js @@ -0,0 +1,341 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryrFBS = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class DeliveryrFBS extends runtime.BaseAPI { + /** + * Перевести отправление в статус «Доставлено», если используется сторонняя служба доставки. + * Изменить статус на «Доставлено» + */ + postingAPIFbsPostingDeliveredRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingDelivered().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingDelivered().'); + } + if (requestParameters['postingFbsPostingDeliveredRequest'] == null) { + throw new runtime.RequiredError('postingFbsPostingDeliveredRequest', 'Required parameter "postingFbsPostingDeliveredRequest" was null or undefined when calling postingAPIFbsPostingDelivered().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/fbs/posting/delivered`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingFbsPostingDeliveredRequestToJSON)(requestParameters['postingFbsPostingDeliveredRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingFbsPostingMoveStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Перевести отправление в статус «Доставлено», если используется сторонняя служба доставки. + * Изменить статус на «Доставлено» + */ + postingAPIFbsPostingDelivered(clientId, apiKey, postingFbsPostingDeliveredRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingDeliveredRaw({ clientId: clientId, apiKey: apiKey, postingFbsPostingDeliveredRequest: postingFbsPostingDeliveredRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Перевести отправление в статус «Доставляется», если используется сторонняя служба доставки. + * Изменить статус на «Доставляется» + */ + postingAPIFbsPostingDeliveringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingDelivering().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingDelivering().'); + } + if (requestParameters['postingFbsPostingDeliveringRequest'] == null) { + throw new runtime.RequiredError('postingFbsPostingDeliveringRequest', 'Required parameter "postingFbsPostingDeliveringRequest" was null or undefined when calling postingAPIFbsPostingDelivering().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/fbs/posting/delivering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingFbsPostingDeliveringRequestToJSON)(requestParameters['postingFbsPostingDeliveringRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingFbsPostingMoveStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Перевести отправление в статус «Доставляется», если используется сторонняя служба доставки. + * Изменить статус на «Доставляется» + */ + postingAPIFbsPostingDelivering(clientId, apiKey, postingFbsPostingDeliveringRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingDeliveringRaw({ clientId: clientId, apiKey: apiKey, postingFbsPostingDeliveringRequest: postingFbsPostingDeliveringRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Перевести отправление в статус «Последняя миля», если используется сторонняя служба доставки. + * Изменить статус на «Последняя миля» + */ + postingAPIFbsPostingLastMileRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingLastMile().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingLastMile().'); + } + if (requestParameters['postingFbsPostingLastMileRequest'] == null) { + throw new runtime.RequiredError('postingFbsPostingLastMileRequest', 'Required parameter "postingFbsPostingLastMileRequest" was null or undefined when calling postingAPIFbsPostingLastMile().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/fbs/posting/last-mile`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingFbsPostingLastMileRequestToJSON)(requestParameters['postingFbsPostingLastMileRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingFbsPostingMoveStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Перевести отправление в статус «Последняя миля», если используется сторонняя служба доставки. + * Изменить статус на «Последняя миля» + */ + postingAPIFbsPostingLastMile(clientId, apiKey, postingFbsPostingLastMileRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingLastMileRaw({ clientId: clientId, apiKey: apiKey, postingFbsPostingLastMileRequest: postingFbsPostingLastMileRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Добавить трек-номера к отправлениям. Вы можете передать до 20 трек-номеров за раз. + * Добавить трек-номера + */ + postingAPIFbsPostingTrackingNumberSetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingTrackingNumberSet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingTrackingNumberSet().'); + } + if (requestParameters['postingFbsPostingTrackingNumberSetRequest'] == null) { + throw new runtime.RequiredError('postingFbsPostingTrackingNumberSetRequest', 'Required parameter "postingFbsPostingTrackingNumberSetRequest" was null or undefined when calling postingAPIFbsPostingTrackingNumberSet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/fbs/posting/tracking-number/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingFbsPostingTrackingNumberSetRequestToJSON)(requestParameters['postingFbsPostingTrackingNumberSetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingFbsPostingMoveStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Добавить трек-номера к отправлениям. Вы можете передать до 20 трек-номеров за раз. + * Добавить трек-номера + */ + postingAPIFbsPostingTrackingNumberSet(clientId, apiKey, postingFbsPostingTrackingNumberSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingTrackingNumberSetRaw({ clientId: clientId, apiKey: apiKey, postingFbsPostingTrackingNumberSetRequest: postingFbsPostingTrackingNumberSetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения доступных дат для переноса доставки и количества доступных переносов. + * Доступные даты для переноса доставки + */ + postingAPIPostingTimeslotChangeRestrictionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingTimeslotChangeRestrictions().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingTimeslotChangeRestrictions().'); + } + if (requestParameters['v1PostingFbsTimeslotChangeRestrictionsRequest'] == null) { + throw new runtime.RequiredError('v1PostingFbsTimeslotChangeRestrictionsRequest', 'Required parameter "v1PostingFbsTimeslotChangeRestrictionsRequest" was null or undefined when calling postingAPIPostingTimeslotChangeRestrictions().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/timeslot/change-restrictions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingFbsTimeslotChangeRestrictionsRequestToJSON)(requestParameters['v1PostingFbsTimeslotChangeRestrictionsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения доступных дат для переноса доставки и количества доступных переносов. + * Доступные даты для переноса доставки + */ + postingAPIPostingTimeslotChangeRestrictions(clientId, apiKey, v1PostingFbsTimeslotChangeRestrictionsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingTimeslotChangeRestrictionsRaw({ clientId: clientId, apiKey: apiKey, v1PostingFbsTimeslotChangeRestrictionsRequest: v1PostingFbsTimeslotChangeRestrictionsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для отправлений, которые доставляет продавец или неинтегрированный перевозчик. + * Уточнить дату отгрузки отправления + */ + postingAPISetPostingCutoffRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPISetPostingCutoff().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPISetPostingCutoff().'); + } + if (requestParameters['v1SetPostingCutoffRequest'] == null) { + throw new runtime.RequiredError('v1SetPostingCutoffRequest', 'Required parameter "v1SetPostingCutoffRequest" was null or undefined when calling postingAPISetPostingCutoff().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/cutoff/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SetPostingCutoffRequestToJSON)(requestParameters['v1SetPostingCutoffRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SetPostingCutoffResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для отправлений, которые доставляет продавец или неинтегрированный перевозчик. + * Уточнить дату отгрузки отправления + */ + postingAPISetPostingCutoff(clientId, apiKey, v1SetPostingCutoffRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPISetPostingCutoffRaw({ clientId: clientId, apiKey: apiKey, v1SetPostingCutoffRequest: v1SetPostingCutoffRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете изменить дату доставки отправления не больше двух раз. + * Перенести дату доставки + */ + postingAPISetPostingTimeslotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPISetPostingTimeslot().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPISetPostingTimeslot().'); + } + if (requestParameters['v1PostingFbsTimeslotSetRequest'] == null) { + throw new runtime.RequiredError('v1PostingFbsTimeslotSetRequest', 'Required parameter "v1PostingFbsTimeslotSetRequest" was null or undefined when calling postingAPISetPostingTimeslot().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/timeslot/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingFbsTimeslotSetRequestToJSON)(requestParameters['v1PostingFbsTimeslotSetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingFbsTimeslotSetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете изменить дату доставки отправления не больше двух раз. + * Перенести дату доставки + */ + postingAPISetPostingTimeslot(clientId, apiKey, v1PostingFbsTimeslotSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPISetPostingTimeslotRaw({ clientId: clientId, apiKey: apiKey, v1PostingFbsTimeslotSetRequest: v1PostingFbsTimeslotSetRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.DeliveryrFBS = DeliveryrFBS; diff --git a/dist/apis/Digital.d.ts b/dist/apis/Digital.d.ts new file mode 100644 index 0000000..de7e5e9 --- /dev/null +++ b/dist/apis/Digital.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1ListPostingCodesRequest, V1ListPostingCodesResponse, V1StocksImportRequest, V1StocksImportResponse, V1UploadPostingCodesRequest, V1UploadPostingCodesResponse } from '../models/index'; +export interface DigitalProductAPIStocksImportRequest { + v1StocksImportRequest: V1StocksImportRequest; +} +export interface ListPostingCodesRequest { + v1ListPostingCodesRequest: V1ListPostingCodesRequest; +} +export interface UploadPostingCodesRequest { + v1UploadPostingCodesRequest?: V1UploadPostingCodesRequest; +} +/** + * + */ +export declare class Digital extends runtime.BaseAPI { + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Используйте метод, чтобы изменить информацию о количестве товара в наличии. + * Обновить количество цифровых товаров + */ + digitalProductAPIStocksImportRaw(requestParameters: DigitalProductAPIStocksImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Используйте метод, чтобы изменить информацию о количестве товара в наличии. + * Обновить количество цифровых товаров + */ + digitalProductAPIStocksImport(v1StocksImportRequest: V1StocksImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, работающим с цифровыми товарами. Чтобы получить список отправлений в любом статусе, воспользуйтесь методом [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList). + * Получить список отправлений + * @deprecated + */ + listPostingCodesRaw(requestParameters: ListPostingCodesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, работающим с цифровыми товарами. Чтобы получить список отправлений в любом статусе, воспользуйтесь методом [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList). + * Получить список отправлений + * @deprecated + */ + listPostingCodes(v1ListPostingCodesRequest: V1ListPostingCodesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Вы можете загрузить коды цифровых товаров в течение 24 часов с момента получения заказа. Передайте все коды цифровых товаров к каждому товару в заказе за один запрос. Если передадите не все коды, запрос вернётся с ошибкой. + * Загрузить коды цифровых товаров для отправления + */ + uploadPostingCodesRaw(requestParameters: UploadPostingCodesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Вы можете загрузить коды цифровых товаров в течение 24 часов с момента получения заказа. Передайте все коды цифровых товаров к каждому товару в заказе за один запрос. Если передадите не все коды, запрос вернётся с ошибкой. + * Загрузить коды цифровых товаров для отправления + */ + uploadPostingCodes(v1UploadPostingCodesRequest?: V1UploadPostingCodesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/Digital.js b/dist/apis/Digital.js new file mode 100644 index 0000000..19a2d12 --- /dev/null +++ b/dist/apis/Digital.js @@ -0,0 +1,128 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Digital = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class Digital extends runtime.BaseAPI { + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Используйте метод, чтобы изменить информацию о количестве товара в наличии. + * Обновить количество цифровых товаров + */ + digitalProductAPIStocksImportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1StocksImportRequest'] == null) { + throw new runtime.RequiredError('v1StocksImportRequest', 'Required parameter "v1StocksImportRequest" was null or undefined when calling digitalProductAPIStocksImport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/digital/stocks/import`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1StocksImportRequestToJSON)(requestParameters['v1StocksImportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1StocksImportResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Используйте метод, чтобы изменить информацию о количестве товара в наличии. + * Обновить количество цифровых товаров + */ + digitalProductAPIStocksImport(v1StocksImportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.digitalProductAPIStocksImportRaw({ v1StocksImportRequest: v1StocksImportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, работающим с цифровыми товарами. Чтобы получить список отправлений в любом статусе, воспользуйтесь методом [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList). + * Получить список отправлений + * @deprecated + */ + listPostingCodesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ListPostingCodesRequest'] == null) { + throw new runtime.RequiredError('v1ListPostingCodesRequest', 'Required parameter "v1ListPostingCodesRequest" was null or undefined when calling listPostingCodes().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/digital/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ListPostingCodesRequestToJSON)(requestParameters['v1ListPostingCodesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ListPostingCodesResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, работающим с цифровыми товарами. Чтобы получить список отправлений в любом статусе, воспользуйтесь методом [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList). + * Получить список отправлений + * @deprecated + */ + listPostingCodes(v1ListPostingCodesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.listPostingCodesRaw({ v1ListPostingCodesRequest: v1ListPostingCodesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Вы можете загрузить коды цифровых товаров в течение 24 часов с момента получения заказа. Передайте все коды цифровых товаров к каждому товару в заказе за один запрос. Если передадите не все коды, запрос вернётся с ошибкой. + * Загрузить коды цифровых товаров для отправления + */ + uploadPostingCodesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/digital/codes/upload`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1UploadPostingCodesRequestToJSON)(requestParameters['v1UploadPostingCodesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1UploadPostingCodesResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Вы можете загрузить коды цифровых товаров в течение 24 часов с момента получения заказа. Передайте все коды цифровых товаров к каждому товару в заказе за один запрос. Если передадите не все коды, запрос вернётся с ошибкой. + * Загрузить коды цифровых товаров для отправления + */ + uploadPostingCodes(v1UploadPostingCodesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.uploadPostingCodesRaw({ v1UploadPostingCodesRequest: v1UploadPostingCodesRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.Digital = Digital; diff --git a/dist/apis/DraftDirectFBP.d.ts b/dist/apis/DraftDirectFBP.d.ts new file mode 100644 index 0000000..84c1352 --- /dev/null +++ b/dist/apis/DraftDirectFBP.d.ts @@ -0,0 +1,156 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpDraftDirectCreateRequest, V1FbpDraftDirectCreateResponse, V1FbpDraftDirectDeleteRequest, V1FbpDraftDirectDeleteResponse, V1FbpDraftDirectGetTimeslotRequest, V1FbpDraftDirectGetTimeslotResponse, V1FbpDraftDirectProductValidateRequest, V1FbpDraftDirectProductValidateResponse, V1FbpDraftDirectRegistrateRequest, V1FbpDraftDirectRegistrateResponse, V1FbpDraftDirectSellerDlvCreateRequest, V1FbpDraftDirectSellerDlvCreateResponse, V1FbpDraftDirectSellerDlvEditRequest, V1FbpDraftDirectSellerDlvEditResponse, V1FbpDraftDirectTimeslotEditRequest, V1FbpDraftDirectTimeslotEditResponse, V1FbpDraftDirectTplDlvCreateRequest, V1FbpDraftDirectTplDlvCreateResponse, V1FbpDraftDirectTplDlvEditRequest, V1FbpDraftDirectTplDlvEditResponse } from '../models/index'; +export interface FbpAPIFbpDraftDirectTplDlvCreateRequest { + v1FbpDraftDirectTplDlvCreateRequest: V1FbpDraftDirectTplDlvCreateRequest; +} +export interface FbpAPIFbpDraftDirectTplDlvEditRequest { + v1FbpDraftDirectTplDlvEditRequest: V1FbpDraftDirectTplDlvEditRequest; +} +export interface FbpDraftDirectCreateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDirectCreateRequest: V1FbpDraftDirectCreateRequest; +} +export interface FbpDraftDirectDeleteRequest { + clientId: string; + apiKey: string; + v1FbpDraftDirectDeleteRequest: V1FbpDraftDirectDeleteRequest; +} +export interface FbpDraftDirectGetTimeslotRequest { + v1FbpDraftDirectGetTimeslotRequest?: V1FbpDraftDirectGetTimeslotRequest; +} +export interface FbpDraftDirectProductValidateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDirectProductValidateRequest: V1FbpDraftDirectProductValidateRequest; +} +export interface FbpDraftDirectRegistrateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDirectRegistrateRequest: V1FbpDraftDirectRegistrateRequest; +} +export interface FbpDraftDirectSellerDlvCreateRequest { + v1FbpDraftDirectSellerDlvCreateRequest?: V1FbpDraftDirectSellerDlvCreateRequest; +} +export interface FbpDraftDirectSellerDlvEditRequest { + v1FbpDraftDirectSellerDlvEditRequest?: V1FbpDraftDirectSellerDlvEditRequest; +} +export interface FbpDraftDirectTimeslotEditRequest { + v1FbpDraftDirectTimeslotEditRequest?: V1FbpDraftDirectTimeslotEditRequest; +} +/** + * + */ +export declare class DraftDirectFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на доставку сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvCreateRaw(requestParameters: FbpAPIFbpDraftDirectTplDlvCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на доставку сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvCreate(v1FbpDraftDirectTplDlvCreateRequest: V1FbpDraftDirectTplDlvCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Редактировать черновик поставки со способом доставки сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvEditRaw(requestParameters: FbpAPIFbpDraftDirectTplDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Редактировать черновик поставки со способом доставки сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvEdit(v1FbpDraftDirectTplDlvEditRequest: V1FbpDraftDirectTplDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на поставку без указания способа доставки + */ + fbpDraftDirectCreateRaw(requestParameters: FbpDraftDirectCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на поставку без указания способа доставки + */ + fbpDraftDirectCreate(clientId: string, apiKey: string, v1FbpDraftDirectCreateRequest: V1FbpDraftDirectCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик заявки на поставку + */ + fbpDraftDirectDeleteRaw(requestParameters: FbpDraftDirectDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик заявки на поставку + */ + fbpDraftDirectDelete(clientId: string, apiKey: string, v1FbpDraftDirectDeleteRequest: V1FbpDraftDirectDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для прямой поставки + */ + fbpDraftDirectGetTimeslotRaw(requestParameters: FbpDraftDirectGetTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для прямой поставки + */ + fbpDraftDirectGetTimeslot(v1FbpDraftDirectGetTimeslotRequest?: V1FbpDraftDirectGetTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров для склада партнёра + */ + fbpDraftDirectProductValidateRaw(requestParameters: FbpDraftDirectProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров для склада партнёра + */ + fbpDraftDirectProductValidate(clientId: string, apiKey: string, v1FbpDraftDirectProductValidateRequest: V1FbpDraftDirectProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDirectRegistrateRaw(requestParameters: FbpDraftDirectRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDirectRegistrate(clientId: string, apiKey: string, v1FbpDraftDirectRegistrateRequest: V1FbpDraftDirectRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик с доставкой силами продавца + */ + fbpDraftDirectSellerDlvCreateRaw(requestParameters: FbpDraftDirectSellerDlvCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик с доставкой силами продавца + */ + fbpDraftDirectSellerDlvCreate(v1FbpDraftDirectSellerDlvCreateRequest?: V1FbpDraftDirectSellerDlvCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца в черновике + */ + fbpDraftDirectSellerDlvEditRaw(requestParameters: FbpDraftDirectSellerDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца в черновике + */ + fbpDraftDirectSellerDlvEdit(v1FbpDraftDirectSellerDlvEditRequest?: V1FbpDraftDirectSellerDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в черновике + */ + fbpDraftDirectTimeslotEditRaw(requestParameters: FbpDraftDirectTimeslotEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в черновике + */ + fbpDraftDirectTimeslotEdit(v1FbpDraftDirectTimeslotEditRequest?: V1FbpDraftDirectTimeslotEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/DraftDirectFBP.js b/dist/apis/DraftDirectFBP.js new file mode 100644 index 0000000..87724d3 --- /dev/null +++ b/dist/apis/DraftDirectFBP.js @@ -0,0 +1,389 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DraftDirectFBP = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class DraftDirectFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на доставку сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftDirectTplDlvCreateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectTplDlvCreateRequest', 'Required parameter "v1FbpDraftDirectTplDlvCreateRequest" was null or undefined when calling fbpAPIFbpDraftDirectTplDlvCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/tpl-dlv/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectTplDlvCreateRequestToJSON)(requestParameters['v1FbpDraftDirectTplDlvCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectTplDlvCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на доставку сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvCreate(v1FbpDraftDirectTplDlvCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftDirectTplDlvCreateRaw({ v1FbpDraftDirectTplDlvCreateRequest: v1FbpDraftDirectTplDlvCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Редактировать черновик поставки со способом доставки сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftDirectTplDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectTplDlvEditRequest', 'Required parameter "v1FbpDraftDirectTplDlvEditRequest" was null or undefined when calling fbpAPIFbpDraftDirectTplDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/tpl-dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectTplDlvEditRequestToJSON)(requestParameters['v1FbpDraftDirectTplDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectTplDlvEditResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Редактировать черновик поставки со способом доставки сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvEdit(v1FbpDraftDirectTplDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftDirectTplDlvEditRaw({ v1FbpDraftDirectTplDlvEditRequest: v1FbpDraftDirectTplDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на поставку без указания способа доставки + */ + fbpDraftDirectCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDirectCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDirectCreate().'); + } + if (requestParameters['v1FbpDraftDirectCreateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectCreateRequest', 'Required parameter "v1FbpDraftDirectCreateRequest" was null or undefined when calling fbpDraftDirectCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/direct/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectCreateRequestToJSON)(requestParameters['v1FbpDraftDirectCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на поставку без указания способа доставки + */ + fbpDraftDirectCreate(clientId, apiKey, v1FbpDraftDirectCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectCreateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDirectCreateRequest: v1FbpDraftDirectCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик заявки на поставку + */ + fbpDraftDirectDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDirectDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDirectDelete().'); + } + if (requestParameters['v1FbpDraftDirectDeleteRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectDeleteRequest', 'Required parameter "v1FbpDraftDirectDeleteRequest" was null or undefined when calling fbpDraftDirectDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/direct/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectDeleteRequestToJSON)(requestParameters['v1FbpDraftDirectDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectDeleteResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик заявки на поставку + */ + fbpDraftDirectDelete(clientId, apiKey, v1FbpDraftDirectDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectDeleteRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDirectDeleteRequest: v1FbpDraftDirectDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для прямой поставки + */ + fbpDraftDirectGetTimeslotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/timeslot/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectGetTimeslotRequestToJSON)(requestParameters['v1FbpDraftDirectGetTimeslotRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectGetTimeslotResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для прямой поставки + */ + fbpDraftDirectGetTimeslot(v1FbpDraftDirectGetTimeslotRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectGetTimeslotRaw({ v1FbpDraftDirectGetTimeslotRequest: v1FbpDraftDirectGetTimeslotRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров для склада партнёра + */ + fbpDraftDirectProductValidateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDirectProductValidate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDirectProductValidate().'); + } + if (requestParameters['v1FbpDraftDirectProductValidateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectProductValidateRequest', 'Required parameter "v1FbpDraftDirectProductValidateRequest" was null or undefined when calling fbpDraftDirectProductValidate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/direct/product/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectProductValidateRequestToJSON)(requestParameters['v1FbpDraftDirectProductValidateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectProductValidateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров для склада партнёра + */ + fbpDraftDirectProductValidate(clientId, apiKey, v1FbpDraftDirectProductValidateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectProductValidateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDirectProductValidateRequest: v1FbpDraftDirectProductValidateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDirectRegistrateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDirectRegistrate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDirectRegistrate().'); + } + if (requestParameters['v1FbpDraftDirectRegistrateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectRegistrateRequest', 'Required parameter "v1FbpDraftDirectRegistrateRequest" was null or undefined when calling fbpDraftDirectRegistrate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/direct/registrate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectRegistrateRequestToJSON)(requestParameters['v1FbpDraftDirectRegistrateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectRegistrateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDirectRegistrate(clientId, apiKey, v1FbpDraftDirectRegistrateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectRegistrateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDirectRegistrateRequest: v1FbpDraftDirectRegistrateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик с доставкой силами продавца + */ + fbpDraftDirectSellerDlvCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/seller-dlv/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectSellerDlvCreateRequestToJSON)(requestParameters['v1FbpDraftDirectSellerDlvCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectSellerDlvCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик с доставкой силами продавца + */ + fbpDraftDirectSellerDlvCreate(v1FbpDraftDirectSellerDlvCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectSellerDlvCreateRaw({ v1FbpDraftDirectSellerDlvCreateRequest: v1FbpDraftDirectSellerDlvCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца в черновике + */ + fbpDraftDirectSellerDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/seller-dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectSellerDlvEditRequestToJSON)(requestParameters['v1FbpDraftDirectSellerDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectSellerDlvEditResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца в черновике + */ + fbpDraftDirectSellerDlvEdit(v1FbpDraftDirectSellerDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectSellerDlvEditRaw({ v1FbpDraftDirectSellerDlvEditRequest: v1FbpDraftDirectSellerDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в черновике + */ + fbpDraftDirectTimeslotEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/timeslot/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDirectTimeslotEditRequestToJSON)(requestParameters['v1FbpDraftDirectTimeslotEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDirectTimeslotEditResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в черновике + */ + fbpDraftDirectTimeslotEdit(v1FbpDraftDirectTimeslotEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectTimeslotEditRaw({ v1FbpDraftDirectTimeslotEditRequest: v1FbpDraftDirectTimeslotEditRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.DraftDirectFBP = DraftDirectFBP; diff --git a/dist/apis/DraftDropOffFBP.d.ts b/dist/apis/DraftDropOffFBP.d.ts new file mode 100644 index 0000000..8be5e8e --- /dev/null +++ b/dist/apis/DraftDropOffFBP.d.ts @@ -0,0 +1,138 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpDraftDropOffCreateRequest, V1FbpDraftDropOffCreateResponse, V1FbpDraftDropOffDeleteRequest, V1FbpDraftDropOffDeleteResponse, V1FbpDraftDropOffDlvEditRequest, V1FbpDraftDropOffDlvEditResponse, V1FbpDraftDropOffPointListRequest, V1FbpDraftDropOffPointListResponse, V1FbpDraftDropOffPointTimetableRequest, V1FbpDraftDropOffPointTimetableResponse, V1FbpDraftDropOffProductValidateRequest, V1FbpDraftDropOffProductValidateResponse, V1FbpDraftDropOffProvinceListRequest, V1FbpDraftDropOffProvinceListResponse, V1FbpDraftDropOffRegistrateRequest, V1FbpDraftDropOffRegistrateResponse } from '../models/index'; +export interface FbpDraftDropOffCreateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffCreateRequest?: V1FbpDraftDropOffCreateRequest; +} +export interface FbpDraftDropOffDeleteRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffDeleteRequest?: V1FbpDraftDropOffDeleteRequest; +} +export interface FbpDraftDropOffDlvEditRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffDlvEditRequest?: V1FbpDraftDropOffDlvEditRequest; +} +export interface FbpDraftDropOffPointListRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffPointListRequest?: V1FbpDraftDropOffPointListRequest; +} +export interface FbpDraftDropOffPointTimetableRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffPointTimetableRequest?: V1FbpDraftDropOffPointTimetableRequest; +} +export interface FbpDraftDropOffProductValidateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffProductValidateRequest?: V1FbpDraftDropOffProductValidateRequest; +} +export interface FbpDraftDropOffProvinceListRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffProvinceListRequest?: V1FbpDraftDropOffProvinceListRequest; +} +export interface FbpDraftDropOffRegistrateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffRegistrateRequest?: V1FbpDraftDropOffRegistrateRequest; +} +/** + * + */ +export declare class DraftDropOffFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик для доставки в drop-off пункт + */ + fbpDraftDropOffCreateRaw(requestParameters: FbpDraftDropOffCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик для доставки в drop-off пункт + */ + fbpDraftDropOffCreate(clientId: string, apiKey: string, v1FbpDraftDropOffCreateRequest?: V1FbpDraftDropOffCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик для доставки в drop-off пункт + */ + fbpDraftDropOffDeleteRaw(requestParameters: FbpDraftDropOffDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик для доставки в drop-off пункт + */ + fbpDraftDropOffDelete(clientId: string, apiKey: string, v1FbpDraftDropOffDeleteRequest?: V1FbpDraftDropOffDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать детали доставки для drop-off черновика + */ + fbpDraftDropOffDlvEditRaw(requestParameters: FbpDraftDropOffDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать детали доставки для drop-off черновика + */ + fbpDraftDropOffDlvEdit(clientId: string, apiKey: string, v1FbpDraftDropOffDlvEditRequest?: V1FbpDraftDropOffDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список drop-off пунктов в провинции + */ + fbpDraftDropOffPointListRaw(requestParameters: FbpDraftDropOffPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список drop-off пунктов в провинции + */ + fbpDraftDropOffPointList(clientId: string, apiKey: string, v1FbpDraftDropOffPointListRequest?: V1FbpDraftDropOffPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить расписание работы drop-off пункта + */ + fbpDraftDropOffPointTimetableRaw(requestParameters: FbpDraftDropOffPointTimetableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить расписание работы drop-off пункта + */ + fbpDraftDropOffPointTimetable(clientId: string, apiKey: string, v1FbpDraftDropOffPointTimetableRequest?: V1FbpDraftDropOffPointTimetableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров, которые склад партнёра может принять + */ + fbpDraftDropOffProductValidateRaw(requestParameters: FbpDraftDropOffProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров, которые склад партнёра может принять + */ + fbpDraftDropOffProductValidate(clientId: string, apiKey: string, v1FbpDraftDropOffProductValidateRequest?: V1FbpDraftDropOffProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список провинций + */ + fbpDraftDropOffProvinceListRaw(requestParameters: FbpDraftDropOffProvinceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список провинций + */ + fbpDraftDropOffProvinceList(clientId: string, apiKey: string, v1FbpDraftDropOffProvinceListRequest?: V1FbpDraftDropOffProvinceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDropOffRegistrateRaw(requestParameters: FbpDraftDropOffRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDropOffRegistrate(clientId: string, apiKey: string, v1FbpDraftDropOffRegistrateRequest?: V1FbpDraftDropOffRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/DraftDropOffFBP.js b/dist/apis/DraftDropOffFBP.js new file mode 100644 index 0000000..10dcfeb --- /dev/null +++ b/dist/apis/DraftDropOffFBP.js @@ -0,0 +1,361 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DraftDropOffFBP = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class DraftDropOffFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик для доставки в drop-off пункт + */ + fbpDraftDropOffCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDropOffCreateRequestToJSON)(requestParameters['v1FbpDraftDropOffCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDropOffCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик для доставки в drop-off пункт + */ + fbpDraftDropOffCreate(clientId, apiKey, v1FbpDraftDropOffCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffCreateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffCreateRequest: v1FbpDraftDropOffCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик для доставки в drop-off пункт + */ + fbpDraftDropOffDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDropOffDeleteRequestToJSON)(requestParameters['v1FbpDraftDropOffDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDropOffDeleteResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик для доставки в drop-off пункт + */ + fbpDraftDropOffDelete(clientId, apiKey, v1FbpDraftDropOffDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffDeleteRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffDeleteRequest: v1FbpDraftDropOffDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать детали доставки для drop-off черновика + */ + fbpDraftDropOffDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffDlvEdit().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDropOffDlvEditRequestToJSON)(requestParameters['v1FbpDraftDropOffDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDropOffDlvEditResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать детали доставки для drop-off черновика + */ + fbpDraftDropOffDlvEdit(clientId, apiKey, v1FbpDraftDropOffDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffDlvEditRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffDlvEditRequest: v1FbpDraftDropOffDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список drop-off пунктов в провинции + */ + fbpDraftDropOffPointListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffPointList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffPointList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/point/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDropOffPointListRequestToJSON)(requestParameters['v1FbpDraftDropOffPointListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDropOffPointListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список drop-off пунктов в провинции + */ + fbpDraftDropOffPointList(clientId, apiKey, v1FbpDraftDropOffPointListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffPointListRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffPointListRequest: v1FbpDraftDropOffPointListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить расписание работы drop-off пункта + */ + fbpDraftDropOffPointTimetableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffPointTimetable().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffPointTimetable().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/point/timetable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDropOffPointTimetableRequestToJSON)(requestParameters['v1FbpDraftDropOffPointTimetableRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDropOffPointTimetableResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить расписание работы drop-off пункта + */ + fbpDraftDropOffPointTimetable(clientId, apiKey, v1FbpDraftDropOffPointTimetableRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffPointTimetableRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffPointTimetableRequest: v1FbpDraftDropOffPointTimetableRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров, которые склад партнёра может принять + */ + fbpDraftDropOffProductValidateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffProductValidate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffProductValidate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/product/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDropOffProductValidateRequestToJSON)(requestParameters['v1FbpDraftDropOffProductValidateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDropOffProductValidateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров, которые склад партнёра может принять + */ + fbpDraftDropOffProductValidate(clientId, apiKey, v1FbpDraftDropOffProductValidateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffProductValidateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffProductValidateRequest: v1FbpDraftDropOffProductValidateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список провинций + */ + fbpDraftDropOffProvinceListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffProvinceList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffProvinceList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/province/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDropOffProvinceListRequestToJSON)(requestParameters['v1FbpDraftDropOffProvinceListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDropOffProvinceListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список провинций + */ + fbpDraftDropOffProvinceList(clientId, apiKey, v1FbpDraftDropOffProvinceListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffProvinceListRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffProvinceListRequest: v1FbpDraftDropOffProvinceListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDropOffRegistrateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffRegistrate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffRegistrate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/registrate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftDropOffRegistrateRequestToJSON)(requestParameters['v1FbpDraftDropOffRegistrateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftDropOffRegistrateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDropOffRegistrate(clientId, apiKey, v1FbpDraftDropOffRegistrateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffRegistrateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffRegistrateRequest: v1FbpDraftDropOffRegistrateRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.DraftDropOffFBP = DraftDropOffFBP; diff --git a/dist/apis/DraftPickupFBP.d.ts b/dist/apis/DraftPickupFBP.d.ts new file mode 100644 index 0000000..2dc7746 --- /dev/null +++ b/dist/apis/DraftPickupFBP.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpDraftPickUpDeleteRequest, V1FbpDraftPickUpDeleteResponse, V1FbpDraftPickUpProductValidateRequest, V1FbpDraftPickUpProductValidateResponse, V1FbpDraftPickUpRegistrateRequest, V1FbpDraftPickUpRegistrateResponse, V1FbpDraftPickupCreateRequest, V1FbpDraftPickupCreateResponse, V1FbpDraftPickupDlvEditRequest, V1FbpDraftPickupDlvEditResponse } from '../models/index'; +export interface FbpAPIFbpDraftPickUpDeleteRequest { + v1FbpDraftPickUpDeleteRequest: V1FbpDraftPickUpDeleteRequest; +} +export interface FbpAPIFbpDraftPickUpProductValidateRequest { + v1FbpDraftPickUpProductValidateRequest: V1FbpDraftPickUpProductValidateRequest; +} +export interface FbpAPIFbpDraftPickupCreateRequest { + v1FbpDraftPickupCreateRequest: V1FbpDraftPickupCreateRequest; +} +export interface FbpAPIFbpDraftPickupDlvEditRequest { + v1FbpDraftPickupDlvEditRequest: V1FbpDraftPickupDlvEditRequest; +} +export interface FbpDraftPickUpRegistrateRequest { + clientId: string; + apiKey: string; + v1FbpDraftPickUpRegistrateRequest?: V1FbpDraftPickUpRegistrateRequest; +} +/** + * + */ +export declare class DraftPickupFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickUpDeleteRaw(requestParameters: FbpAPIFbpDraftPickUpDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickUpDelete(v1FbpDraftPickUpDeleteRequest: V1FbpDraftPickUpDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Провалидировать список товаров для pick-up поставки + */ + fbpAPIFbpDraftPickUpProductValidateRaw(requestParameters: FbpAPIFbpDraftPickUpProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Провалидировать список товаров для pick-up поставки + */ + fbpAPIFbpDraftPickUpProductValidate(v1FbpDraftPickUpProductValidateRequest: V1FbpDraftPickUpProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupCreateRaw(requestParameters: FbpAPIFbpDraftPickupCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupCreate(v1FbpDraftPickupCreateRequest: V1FbpDraftPickupCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupDlvEditRaw(requestParameters: FbpAPIFbpDraftPickupDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupDlvEdit(v1FbpDraftPickupDlvEditRequest: V1FbpDraftPickupDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftPickUpRegistrateRaw(requestParameters: FbpDraftPickUpRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftPickUpRegistrate(clientId: string, apiKey: string, v1FbpDraftPickUpRegistrateRequest?: V1FbpDraftPickUpRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/DraftPickupFBP.js b/dist/apis/DraftPickupFBP.js new file mode 100644 index 0000000..11dc0e9 --- /dev/null +++ b/dist/apis/DraftPickupFBP.js @@ -0,0 +1,202 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DraftPickupFBP = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class DraftPickupFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickUpDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftPickUpDeleteRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftPickUpDeleteRequest', 'Required parameter "v1FbpDraftPickUpDeleteRequest" was null or undefined when calling fbpAPIFbpDraftPickUpDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftPickUpDeleteRequestToJSON)(requestParameters['v1FbpDraftPickUpDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftPickUpDeleteResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickUpDelete(v1FbpDraftPickUpDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftPickUpDeleteRaw({ v1FbpDraftPickUpDeleteRequest: v1FbpDraftPickUpDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Провалидировать список товаров для pick-up поставки + */ + fbpAPIFbpDraftPickUpProductValidateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftPickUpProductValidateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftPickUpProductValidateRequest', 'Required parameter "v1FbpDraftPickUpProductValidateRequest" was null or undefined when calling fbpAPIFbpDraftPickUpProductValidate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/product/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftPickUpProductValidateRequestToJSON)(requestParameters['v1FbpDraftPickUpProductValidateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftPickUpProductValidateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Провалидировать список товаров для pick-up поставки + */ + fbpAPIFbpDraftPickUpProductValidate(v1FbpDraftPickUpProductValidateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftPickUpProductValidateRaw({ v1FbpDraftPickUpProductValidateRequest: v1FbpDraftPickUpProductValidateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftPickupCreateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftPickupCreateRequest', 'Required parameter "v1FbpDraftPickupCreateRequest" was null or undefined when calling fbpAPIFbpDraftPickupCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftPickupCreateRequestToJSON)(requestParameters['v1FbpDraftPickupCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftPickupCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupCreate(v1FbpDraftPickupCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftPickupCreateRaw({ v1FbpDraftPickupCreateRequest: v1FbpDraftPickupCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftPickupDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftPickupDlvEditRequest', 'Required parameter "v1FbpDraftPickupDlvEditRequest" was null or undefined when calling fbpAPIFbpDraftPickupDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftPickupDlvEditRequestToJSON)(requestParameters['v1FbpDraftPickupDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftPickupDlvEditResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupDlvEdit(v1FbpDraftPickupDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftPickupDlvEditRaw({ v1FbpDraftPickupDlvEditRequest: v1FbpDraftPickupDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftPickUpRegistrateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftPickUpRegistrate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftPickUpRegistrate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/registrate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpDraftPickUpRegistrateRequestToJSON)(requestParameters['v1FbpDraftPickUpRegistrateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpDraftPickUpRegistrateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftPickUpRegistrate(clientId, apiKey, v1FbpDraftPickUpRegistrateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftPickUpRegistrateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftPickUpRegistrateRequest: v1FbpDraftPickUpRegistrateRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.DraftPickupFBP = DraftPickupFBP; diff --git a/dist/apis/FBO.d.ts b/dist/apis/FBO.d.ts new file mode 100644 index 0000000..c02e32f --- /dev/null +++ b/dist/apis/FBO.d.ts @@ -0,0 +1,239 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PostingGetFboPostingListRequest, PostingGetFboPostingRequest, PostingV3PostingFboListRequest, PostingV3PostingFboListResponse, SupplyOrderV2SupplyOrderTimeslotListRequest, SupplyOrderV2SupplyOrderTimeslotListResponse, V1CancelReasonListResponseFbo, V1GetSupplyOrderBundleRequest, V1GetSupplyOrderBundleResponse, V1GetSupplyOrderTimeslotStatusRequest, V1GetSupplyOrderTimeslotStatusResponse, V1GetSupplyOrderTimeslotsRequest, V1GetSupplyOrderTimeslotsResponse, V1SupplierAvailableWarehousesResponse, V1SupplyOrderDetailsRequest, V1SupplyOrderDetailsResponse, V1SupplyOrderPassCreateRequest, V1SupplyOrderPassCreateResponse, V1SupplyOrderPassStatusRequest, V1SupplyOrderPassStatusResponse, V1SupplyOrderStatusCounterResponse, V1UpdateSupplyOrderTimeslotRequest, V1UpdateSupplyOrderTimeslotResponse, V2FboPostingListResponse, V2FboPostingResponse, V3SupplyOrderGetRequest, V3SupplyOrderGetResponse, V3SupplyOrderListRequest, V3SupplyOrderListResponse } from '../models/index'; +export interface PostingAPIGetFboPostingRequest { + clientId: string; + apiKey: string; + postingGetFboPostingRequest: PostingGetFboPostingRequest; +} +export interface PostingAPIGetFboPostingListRequest { + clientId: string; + apiKey: string; + postingGetFboPostingListRequest: PostingGetFboPostingListRequest; +} +export interface PostingAPIGetPostingFboCancelReasonListRequest { + clientId: string; + apiKey: string; +} +export interface PostingFboListRequest { + clientId: string; + apiKey: string; + postingV3PostingFboListRequest: PostingV3PostingFboListRequest; +} +export interface SupplierAPISupplierAvailableWarehousesRequest { + clientId: string; + apiKey: string; +} +export interface SupplyOrderAPIGetSupplyOrderTimeslotStatusRequest { + clientId: string; + apiKey: string; + v1GetSupplyOrderTimeslotStatusRequest: V1GetSupplyOrderTimeslotStatusRequest; +} +export interface SupplyOrderAPIGetSupplyOrderTimeslotsRequest { + clientId: string; + apiKey: string; + v1GetSupplyOrderTimeslotsRequest: V1GetSupplyOrderTimeslotsRequest; +} +export interface SupplyOrderAPISupplyOrderDetailsRequest { + clientId: string; + apiKey: string; + v1SupplyOrderDetailsRequest: V1SupplyOrderDetailsRequest; +} +export interface SupplyOrderAPISupplyOrderPassCreateRequest { + clientId: string; + apiKey: string; + v1SupplyOrderPassCreateRequest: V1SupplyOrderPassCreateRequest; +} +export interface SupplyOrderAPISupplyOrderPassStatusRequest { + clientId: string; + apiKey: string; + v1SupplyOrderPassStatusRequest: V1SupplyOrderPassStatusRequest; +} +export interface SupplyOrderAPISupplyOrderStatusCounterRequest { + clientId: string; + apiKey: string; +} +export interface SupplyOrderAPIUpdateSupplyOrderTimeslotRequest { + clientId: string; + apiKey: string; + v1UpdateSupplyOrderTimeslotRequest: V1UpdateSupplyOrderTimeslotRequest; +} +export interface SupplyOrderBundleRequest { + v1GetSupplyOrderBundleRequest: V1GetSupplyOrderBundleRequest; +} +export interface SupplyOrderGetRequest { + v3SupplyOrderGetRequest?: V3SupplyOrderGetRequest; +} +export interface SupplyOrderListRequest { + v3SupplyOrderListRequest?: V3SupplyOrderListRequest; +} +export interface SupplyOrderTimeslotListRequest { + clientId: string; + apiKey: string; + supplyOrderV2SupplyOrderTimeslotListRequest: SupplyOrderV2SupplyOrderTimeslotListRequest; +} +/** + * + */ +export declare class FBO extends runtime.BaseAPI { + /** + * Возвращает информацию об отправлении по его идентификатору. + * Информация об отправлении + */ + postingAPIGetFboPostingRaw(requestParameters: PostingAPIGetFboPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию об отправлении по его идентификатору. + * Информация об отправлении + */ + postingAPIGetFboPosting(clientId: string, apiKey: string, postingGetFboPostingRequest: PostingGetFboPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Список отправлений + * @deprecated + */ + postingAPIGetFboPostingListRaw(requestParameters: PostingAPIGetFboPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Список отправлений + * @deprecated + */ + postingAPIGetFboPostingList(clientId: string, apiKey: string, postingGetFboPostingListRequest: PostingGetFboPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список причин отмены для всех FBO-отправлений. + * Причины отмены отправлений по схеме FBO + */ + postingAPIGetPostingFboCancelReasonListRaw(requestParameters: PostingAPIGetPostingFboCancelReasonListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список причин отмены для всех FBO-отправлений. + * Причины отмены отправлений по схеме FBO + */ + postingAPIGetPostingFboCancelReasonList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Получить список отправлений + */ + postingFboListRaw(requestParameters: PostingFboListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Получить список отправлений + */ + postingFboList(clientId: string, apiKey: string, postingV3PostingFboListRequest: PostingV3PostingFboListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод возвращает список активных складов Ozon с информацией об их средней загруженности на ближайшее время. + * Загруженность складов Ozon + */ + supplierAPISupplierAvailableWarehousesRaw(requestParameters: SupplierAPISupplierAvailableWarehousesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод возвращает список активных складов Ozon с информацией об их средней загруженности на ближайшее время. + * Загруженность складов Ozon + */ + supplierAPISupplierAvailableWarehouses(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Статус интервала поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotStatusRaw(requestParameters: SupplyOrderAPIGetSupplyOrderTimeslotStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Статус интервала поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotStatus(clientId: string, apiKey: string, v1GetSupplyOrderTimeslotStatusRequest: V1GetSupplyOrderTimeslotStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Интервалы поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotsRaw(requestParameters: SupplyOrderAPIGetSupplyOrderTimeslotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Интервалы поставки + */ + supplyOrderAPIGetSupplyOrderTimeslots(clientId: string, apiKey: string, v1GetSupplyOrderTimeslotsRequest: V1GetSupplyOrderTimeslotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить подробную информацию о заявке на поставку + */ + supplyOrderAPISupplyOrderDetailsRaw(requestParameters: SupplyOrderAPISupplyOrderDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить подробную информацию о заявке на поставку + */ + supplyOrderAPISupplyOrderDetails(clientId: string, apiKey: string, v1SupplyOrderDetailsRequest: V1SupplyOrderDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Указать данные о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassCreateRaw(requestParameters: SupplyOrderAPISupplyOrderPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Указать данные о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassCreate(clientId: string, apiKey: string, v1SupplyOrderPassCreateRequest: V1SupplyOrderPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Статус ввода данных о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassStatusRaw(requestParameters: SupplyOrderAPISupplyOrderPassStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Статус ввода данных о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassStatus(clientId: string, apiKey: string, v1SupplyOrderPassStatusRequest: V1SupplyOrderPassStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает количество заявок в конкретном статусе. + * Количество заявок по статусам + */ + supplyOrderAPISupplyOrderStatusCounterRaw(requestParameters: SupplyOrderAPISupplyOrderStatusCounterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает количество заявок в конкретном статусе. + * Количество заявок по статусам + */ + supplyOrderAPISupplyOrderStatusCounter(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить интервал поставки + */ + supplyOrderAPIUpdateSupplyOrderTimeslotRaw(requestParameters: SupplyOrderAPIUpdateSupplyOrderTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить интервал поставки + */ + supplyOrderAPIUpdateSupplyOrderTimeslot(clientId: string, apiKey: string, v1UpdateSupplyOrderTimeslotRequest: V1UpdateSupplyOrderTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить товарный состав поставки или черновика заявки на поставку. Одним вызовом метода можно получить состав одной поставки или черновика заявки. + * Состав поставки или заявки на поставку + */ + supplyOrderBundleRaw(requestParameters: SupplyOrderBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить товарный состав поставки или черновика заявки на поставку. Одним вызовом метода можно получить состав одной поставки или черновика заявки. + * Состав поставки или заявки на поставку + */ + supplyOrderBundle(v1GetSupplyOrderBundleRequest: V1GetSupplyOrderBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Информация о заявке на поставку + */ + supplyOrderGetRaw(requestParameters: SupplyOrderGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Информация о заявке на поставку + */ + supplyOrderGet(v3SupplyOrderGetRequest?: V3SupplyOrderGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Список заявок на поставку на склад Ozon + */ + supplyOrderListRaw(requestParameters: SupplyOrderListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Список заявок на поставку на склад Ozon + */ + supplyOrderList(v3SupplyOrderListRequest?: V3SupplyOrderListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список доступных интервалов поставки + */ + supplyOrderTimeslotListRaw(requestParameters: SupplyOrderTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список доступных интервалов поставки + */ + supplyOrderTimeslotList(clientId: string, apiKey: string, supplyOrderV2SupplyOrderTimeslotListRequest: SupplyOrderV2SupplyOrderTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FBO.js b/dist/apis/FBO.js new file mode 100644 index 0000000..3efd28a --- /dev/null +++ b/dist/apis/FBO.js @@ -0,0 +1,670 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FBO = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FBO extends runtime.BaseAPI { + /** + * Возвращает информацию об отправлении по его идентификатору. + * Информация об отправлении + */ + postingAPIGetFboPostingRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFboPosting().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFboPosting().'); + } + if (requestParameters['postingGetFboPostingRequest'] == null) { + throw new runtime.RequiredError('postingGetFboPostingRequest', 'Required parameter "postingGetFboPostingRequest" was null or undefined when calling postingAPIGetFboPosting().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbo/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingGetFboPostingRequestToJSON)(requestParameters['postingGetFboPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2FboPostingResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает информацию об отправлении по его идентификатору. + * Информация об отправлении + */ + postingAPIGetFboPosting(clientId, apiKey, postingGetFboPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFboPostingRaw({ clientId: clientId, apiKey: apiKey, postingGetFboPostingRequest: postingGetFboPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Список отправлений + * @deprecated + */ + postingAPIGetFboPostingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFboPostingList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFboPostingList().'); + } + if (requestParameters['postingGetFboPostingListRequest'] == null) { + throw new runtime.RequiredError('postingGetFboPostingListRequest', 'Required parameter "postingGetFboPostingListRequest" was null or undefined when calling postingAPIGetFboPostingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbo/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingGetFboPostingListRequestToJSON)(requestParameters['postingGetFboPostingListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2FboPostingListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Список отправлений + * @deprecated + */ + postingAPIGetFboPostingList(clientId, apiKey, postingGetFboPostingListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFboPostingListRaw({ clientId: clientId, apiKey: apiKey, postingGetFboPostingListRequest: postingGetFboPostingListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список причин отмены для всех FBO-отправлений. + * Причины отмены отправлений по схеме FBO + */ + postingAPIGetPostingFboCancelReasonListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetPostingFboCancelReasonList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetPostingFboCancelReasonList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbo/cancel-reason/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CancelReasonListResponseFboFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список причин отмены для всех FBO-отправлений. + * Причины отмены отправлений по схеме FBO + */ + postingAPIGetPostingFboCancelReasonList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetPostingFboCancelReasonListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Получить список отправлений + */ + postingFboListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFboList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFboList().'); + } + if (requestParameters['postingV3PostingFboListRequest'] == null) { + throw new runtime.RequiredError('postingV3PostingFboListRequest', 'Required parameter "postingV3PostingFboListRequest" was null or undefined when calling postingFboList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/fbo/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingV3PostingFboListRequestToJSON)(requestParameters['postingV3PostingFboListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingV3PostingFboListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Получить список отправлений + */ + postingFboList(clientId, apiKey, postingV3PostingFboListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFboListRaw({ clientId: clientId, apiKey: apiKey, postingV3PostingFboListRequest: postingV3PostingFboListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод возвращает список активных складов Ozon с информацией об их средней загруженности на ближайшее время. + * Загруженность складов Ozon + */ + supplierAPISupplierAvailableWarehousesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplierAPISupplierAvailableWarehouses().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplierAPISupplierAvailableWarehouses().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supplier/available_warehouses`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplierAvailableWarehousesResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод возвращает список активных складов Ozon с информацией об их средней загруженности на ближайшее время. + * Загруженность складов Ozon + */ + supplierAPISupplierAvailableWarehouses(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplierAPISupplierAvailableWarehousesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Статус интервала поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslotStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslotStatus().'); + } + if (requestParameters['v1GetSupplyOrderTimeslotStatusRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplyOrderTimeslotStatusRequest', 'Required parameter "v1GetSupplyOrderTimeslotStatusRequest" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslotStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/timeslot/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetSupplyOrderTimeslotStatusRequestToJSON)(requestParameters['v1GetSupplyOrderTimeslotStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetSupplyOrderTimeslotStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Статус интервала поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotStatus(clientId, apiKey, v1GetSupplyOrderTimeslotStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPIGetSupplyOrderTimeslotStatusRaw({ clientId: clientId, apiKey: apiKey, v1GetSupplyOrderTimeslotStatusRequest: v1GetSupplyOrderTimeslotStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Интервалы поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslots().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslots().'); + } + if (requestParameters['v1GetSupplyOrderTimeslotsRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplyOrderTimeslotsRequest', 'Required parameter "v1GetSupplyOrderTimeslotsRequest" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslots().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/timeslot/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetSupplyOrderTimeslotsRequestToJSON)(requestParameters['v1GetSupplyOrderTimeslotsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetSupplyOrderTimeslotsResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Интервалы поставки + */ + supplyOrderAPIGetSupplyOrderTimeslots(clientId, apiKey, v1GetSupplyOrderTimeslotsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPIGetSupplyOrderTimeslotsRaw({ clientId: clientId, apiKey: apiKey, v1GetSupplyOrderTimeslotsRequest: v1GetSupplyOrderTimeslotsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить подробную информацию о заявке на поставку + */ + supplyOrderAPISupplyOrderDetailsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderDetails().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderDetails().'); + } + if (requestParameters['v1SupplyOrderDetailsRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderDetailsRequest', 'Required parameter "v1SupplyOrderDetailsRequest" was null or undefined when calling supplyOrderAPISupplyOrderDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/details`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SupplyOrderDetailsRequestToJSON)(requestParameters['v1SupplyOrderDetailsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderDetailsResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить подробную информацию о заявке на поставку + */ + supplyOrderAPISupplyOrderDetails(clientId, apiKey, v1SupplyOrderDetailsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderDetailsRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderDetailsRequest: v1SupplyOrderDetailsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Указать данные о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderPassCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderPassCreate().'); + } + if (requestParameters['v1SupplyOrderPassCreateRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderPassCreateRequest', 'Required parameter "v1SupplyOrderPassCreateRequest" was null or undefined when calling supplyOrderAPISupplyOrderPassCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/pass/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SupplyOrderPassCreateRequestToJSON)(requestParameters['v1SupplyOrderPassCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderPassCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Указать данные о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassCreate(clientId, apiKey, v1SupplyOrderPassCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderPassCreateRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderPassCreateRequest: v1SupplyOrderPassCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Статус ввода данных о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderPassStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderPassStatus().'); + } + if (requestParameters['v1SupplyOrderPassStatusRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderPassStatusRequest', 'Required parameter "v1SupplyOrderPassStatusRequest" was null or undefined when calling supplyOrderAPISupplyOrderPassStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/pass/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SupplyOrderPassStatusRequestToJSON)(requestParameters['v1SupplyOrderPassStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderPassStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Статус ввода данных о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassStatus(clientId, apiKey, v1SupplyOrderPassStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderPassStatusRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderPassStatusRequest: v1SupplyOrderPassStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает количество заявок в конкретном статусе. + * Количество заявок по статусам + */ + supplyOrderAPISupplyOrderStatusCounterRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderStatusCounter().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderStatusCounter().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/status/counter`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderStatusCounterResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает количество заявок в конкретном статусе. + * Количество заявок по статусам + */ + supplyOrderAPISupplyOrderStatusCounter(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderStatusCounterRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Обновить интервал поставки + */ + supplyOrderAPIUpdateSupplyOrderTimeslotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPIUpdateSupplyOrderTimeslot().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPIUpdateSupplyOrderTimeslot().'); + } + if (requestParameters['v1UpdateSupplyOrderTimeslotRequest'] == null) { + throw new runtime.RequiredError('v1UpdateSupplyOrderTimeslotRequest', 'Required parameter "v1UpdateSupplyOrderTimeslotRequest" was null or undefined when calling supplyOrderAPIUpdateSupplyOrderTimeslot().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/timeslot/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1UpdateSupplyOrderTimeslotRequestToJSON)(requestParameters['v1UpdateSupplyOrderTimeslotRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1UpdateSupplyOrderTimeslotResponseFromJSON)(jsonValue)); + }); + } + /** + * Обновить интервал поставки + */ + supplyOrderAPIUpdateSupplyOrderTimeslot(clientId, apiKey, v1UpdateSupplyOrderTimeslotRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPIUpdateSupplyOrderTimeslotRaw({ clientId: clientId, apiKey: apiKey, v1UpdateSupplyOrderTimeslotRequest: v1UpdateSupplyOrderTimeslotRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить товарный состав поставки или черновика заявки на поставку. Одним вызовом метода можно получить состав одной поставки или черновика заявки. + * Состав поставки или заявки на поставку + */ + supplyOrderBundleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetSupplyOrderBundleRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplyOrderBundleRequest', 'Required parameter "v1GetSupplyOrderBundleRequest" was null or undefined when calling supplyOrderBundle().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/supply-order/bundle`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetSupplyOrderBundleRequestToJSON)(requestParameters['v1GetSupplyOrderBundleRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetSupplyOrderBundleResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить товарный состав поставки или черновика заявки на поставку. Одним вызовом метода можно получить состав одной поставки или черновика заявки. + * Состав поставки или заявки на поставку + */ + supplyOrderBundle(v1GetSupplyOrderBundleRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderBundleRaw({ v1GetSupplyOrderBundleRequest: v1GetSupplyOrderBundleRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Информация о заявке на поставку + */ + supplyOrderGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v3/supply-order/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V3SupplyOrderGetRequestToJSON)(requestParameters['v3SupplyOrderGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3SupplyOrderGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Информация о заявке на поставку + */ + supplyOrderGet(v3SupplyOrderGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderGetRaw({ v3SupplyOrderGetRequest: v3SupplyOrderGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Список заявок на поставку на склад Ozon + */ + supplyOrderListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v3/supply-order/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V3SupplyOrderListRequestToJSON)(requestParameters['v3SupplyOrderListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3SupplyOrderListResponseFromJSON)(jsonValue)); + }); + } + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Список заявок на поставку на склад Ozon + */ + supplyOrderList(v3SupplyOrderListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderListRaw({ v3SupplyOrderListRequest: v3SupplyOrderListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список доступных интервалов поставки + */ + supplyOrderTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderTimeslotList().'); + } + if (requestParameters['supplyOrderV2SupplyOrderTimeslotListRequest'] == null) { + throw new runtime.RequiredError('supplyOrderV2SupplyOrderTimeslotListRequest', 'Required parameter "supplyOrderV2SupplyOrderTimeslotListRequest" was null or undefined when calling supplyOrderTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/supply-order/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SupplyOrderV2SupplyOrderTimeslotListRequestToJSON)(requestParameters['supplyOrderV2SupplyOrderTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список доступных интервалов поставки + */ + supplyOrderTimeslotList(clientId, apiKey, supplyOrderV2SupplyOrderTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderTimeslotListRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV2SupplyOrderTimeslotListRequest: supplyOrderV2SupplyOrderTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.FBO = FBO; diff --git a/dist/apis/FBOTransport.d.ts b/dist/apis/FBOTransport.d.ts new file mode 100644 index 0000000..502dff1 --- /dev/null +++ b/dist/apis/FBOTransport.d.ts @@ -0,0 +1,228 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CargoesV1CargoesLabelTransportByOrderCreateRequest, CargoesV1CargoesLabelTransportByOrderCreateResponse, CargoesV1CargoesLabelTransportByOrderStatusRequest, CargoesV1CargoesLabelTransportByOrderStatusResponse, CargoesV1CargoesLabelTransportCreateRequest, CargoesV1CargoesLabelTransportCreateResponse, CargoesV1CargoesLabelTransportStatusRequest, CargoesV1CargoesLabelTransportStatusResponse, CargoesV1CargoesSuppliesGetRequest, CargoesV1CargoesSuppliesGetResponse, CargoesV1CargoesTransportActivateRequest, CargoesV1CargoesTransportActivateResponse, CargoesV1CargoesTransportActivateStatusRequest, CargoesV1CargoesTransportActivateStatusResponse, CargoesV1CargoesTransportBindRequest, CargoesV1CargoesTransportBindResponse, CargoesV1CargoesTransportBindStatusRequest, CargoesV1CargoesTransportBindStatusResponse, CargoesV1CargoesTransportCreateRequest, CargoesV1CargoesTransportCreateResponse, CargoesV1CargoesTransportCreateStatusRequest, CargoesV1CargoesTransportCreateStatusResponse, CargoesV2CargoesDeleteRequest, CargoesV2CargoesDeleteResponse, CargoesV2CargoesDeleteStatusRequest, CargoesV2CargoesDeleteStatusResponse, CargoesV2CargoesGetRequest, CargoesV2CargoesGetResponse } from '../models/index'; +export interface CargoesDeleteStatusV2Request { + clientId: string; + apiKey: string; + cargoesV2CargoesDeleteStatusRequest?: CargoesV2CargoesDeleteStatusRequest; +} +export interface CargoesDeleteV2Request { + clientId: string; + apiKey: string; + cargoesV2CargoesDeleteRequest?: CargoesV2CargoesDeleteRequest | null; +} +export interface CargoesGetV2Request { + clientId: string; + apiKey: string; + cargoesV2CargoesGetRequest?: CargoesV2CargoesGetRequest; +} +export interface CargoesLabelTransportByOrderCreateRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesLabelTransportByOrderCreateRequest: CargoesV1CargoesLabelTransportByOrderCreateRequest; +} +export interface CargoesLabelTransportByOrderStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesLabelTransportByOrderStatusRequest: CargoesV1CargoesLabelTransportByOrderStatusRequest; +} +export interface CargoesLabelTransportCreateRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesLabelTransportCreateRequest: CargoesV1CargoesLabelTransportCreateRequest; +} +export interface CargoesLabelTransportStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesLabelTransportStatusRequest: CargoesV1CargoesLabelTransportStatusRequest; +} +export interface CargoesSuppliesGetRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesSuppliesGetRequest: CargoesV1CargoesSuppliesGetRequest; +} +export interface CargoesTransportActivateRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportActivateRequest: CargoesV1CargoesTransportActivateRequest; +} +export interface CargoesTransportActivateStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportActivateStatusRequest: CargoesV1CargoesTransportActivateStatusRequest; +} +export interface CargoesTransportBindRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportBindRequest: CargoesV1CargoesTransportBindRequest | null; +} +export interface CargoesTransportBindStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportBindStatusRequest: CargoesV1CargoesTransportBindStatusRequest; +} +export interface CargoesTransportCreateRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportCreateRequest: CargoesV1CargoesTransportCreateRequest; +} +export interface CargoesTransportCreateStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportCreateStatusRequest: CargoesV1CargoesTransportCreateStatusRequest; +} +/** + * + */ +export declare class FBOTransport extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о статусе удаления грузомест и транспортных грузомест + */ + cargoesDeleteStatusV2Raw(requestParameters: CargoesDeleteStatusV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о статусе удаления грузомест и транспортных грузомест + */ + cargoesDeleteStatusV2(clientId: string, apiKey: string, cargoesV2CargoesDeleteStatusRequest?: CargoesV2CargoesDeleteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Удалить грузоместа и транспортные грузоместа в заявке на поставку + */ + cargoesDeleteV2Raw(requestParameters: CargoesDeleteV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Удалить грузоместа и транспортные грузоместа в заявке на поставку + */ + cargoesDeleteV2(clientId: string, apiKey: string, cargoesV2CargoesDeleteRequest?: CargoesV2CargoesDeleteRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о грузоместах + */ + cargoesGetV2Raw(requestParameters: CargoesGetV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о грузоместах + */ + cargoesGetV2(clientId: string, apiKey: string, cargoesV2CargoesGetRequest?: CargoesV2CargoesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки для транспортных грузомест по идентификатору поставки + */ + cargoesLabelTransportByOrderCreateRaw(requestParameters: CargoesLabelTransportByOrderCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки для транспортных грузомест по идентификатору поставки + */ + cargoesLabelTransportByOrderCreate(clientId: string, apiKey: string, cargoesV1CargoesLabelTransportByOrderCreateRequest: CargoesV1CargoesLabelTransportByOrderCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток для транспортных грузомеcт по идентификатору поставки + */ + cargoesLabelTransportByOrderStatusRaw(requestParameters: CargoesLabelTransportByOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток для транспортных грузомеcт по идентификатору поставки + */ + cargoesLabelTransportByOrderStatus(clientId: string, apiKey: string, cargoesV1CargoesLabelTransportByOrderStatusRequest: CargoesV1CargoesLabelTransportByOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportCreateRaw(requestParameters: CargoesLabelTransportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportCreate(clientId: string, apiKey: string, cargoesV1CargoesLabelTransportCreateRequest: CargoesV1CargoesLabelTransportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportStatusRaw(requestParameters: CargoesLabelTransportStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportStatus(clientId: string, apiKey: string, cargoesV1CargoesLabelTransportStatusRequest: CargoesV1CargoesLabelTransportStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить информацию о грузоместах в поставках + */ + cargoesSuppliesGetRaw(requestParameters: CargoesSuppliesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить информацию о грузоместах в поставках + */ + cargoesSuppliesGet(clientId: string, apiKey: string, cargoesV1CargoesSuppliesGetRequest: CargoesV1CargoesSuppliesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если в поставке создано грузоместо, отключить транспортные грузоместа не получится. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Включить или отключить транспортные грузоместа в поставке + */ + cargoesTransportActivateRaw(requestParameters: CargoesTransportActivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если в поставке создано грузоместо, отключить транспортные грузоместа не получится. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Включить или отключить транспортные грузоместа в поставке + */ + cargoesTransportActivate(clientId: string, apiKey: string, cargoesV1CargoesTransportActivateRequest: CargoesV1CargoesTransportActivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус включения или отключения транспортных грузомест + */ + cargoesTransportActivateStatusRaw(requestParameters: CargoesTransportActivateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус включения или отключения транспортных грузомест + */ + cargoesTransportActivateStatus(clientId: string, apiKey: string, cargoesV1CargoesTransportActivateStatusRequest: CargoesV1CargoesTransportActivateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Связать или отвязать грузоместа и транспортные грузоместа + */ + cargoesTransportBindRaw(requestParameters: CargoesTransportBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Связать или отвязать грузоместа и транспортные грузоместа + */ + cargoesTransportBind(clientId: string, apiKey: string, cargoesV1CargoesTransportBindRequest: CargoesV1CargoesTransportBindRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус связывания или отвязывания грузомест и транспортных грузомест + */ + cargoesTransportBindStatusRaw(requestParameters: CargoesTransportBindStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус связывания или отвязывания грузомест и транспортных грузомест + */ + cargoesTransportBindStatus(clientId: string, apiKey: string, cargoesV1CargoesTransportBindStatusRequest: CargoesV1CargoesTransportBindStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Создать транспортное грузоместо + */ + cargoesTransportCreateRaw(requestParameters: CargoesTransportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Создать транспортное грузоместо + */ + cargoesTransportCreate(clientId: string, apiKey: string, cargoesV1CargoesTransportCreateRequest: CargoesV1CargoesTransportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус создания транспортного грузоместа + */ + cargoesTransportCreateStatusRaw(requestParameters: CargoesTransportCreateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус создания транспортного грузоместа + */ + cargoesTransportCreateStatus(clientId: string, apiKey: string, cargoesV1CargoesTransportCreateStatusRequest: CargoesV1CargoesTransportCreateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FBOTransport.js b/dist/apis/FBOTransport.js new file mode 100644 index 0000000..42872ea --- /dev/null +++ b/dist/apis/FBOTransport.js @@ -0,0 +1,640 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FBOTransport = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FBOTransport extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о статусе удаления грузомест и транспортных грузомест + */ + cargoesDeleteStatusV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesDeleteStatusV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesDeleteStatusV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cargoes/delete/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV2CargoesDeleteStatusRequestToJSON)(requestParameters['cargoesV2CargoesDeleteStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV2CargoesDeleteStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о статусе удаления грузомест и транспортных грузомест + */ + cargoesDeleteStatusV2(clientId, apiKey, cargoesV2CargoesDeleteStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesDeleteStatusV2Raw({ clientId: clientId, apiKey: apiKey, cargoesV2CargoesDeleteStatusRequest: cargoesV2CargoesDeleteStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Удалить грузоместа и транспортные грузоместа в заявке на поставку + */ + cargoesDeleteV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesDeleteV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesDeleteV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cargoes/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV2CargoesDeleteRequestToJSON)(requestParameters['cargoesV2CargoesDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV2CargoesDeleteResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Удалить грузоместа и транспортные грузоместа в заявке на поставку + */ + cargoesDeleteV2(clientId, apiKey, cargoesV2CargoesDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesDeleteV2Raw({ clientId: clientId, apiKey: apiKey, cargoesV2CargoesDeleteRequest: cargoesV2CargoesDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о грузоместах + */ + cargoesGetV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesGetV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesGetV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cargoes/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV2CargoesGetRequestToJSON)(requestParameters['cargoesV2CargoesGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV2CargoesGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о грузоместах + */ + cargoesGetV2(clientId, apiKey, cargoesV2CargoesGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesGetV2Raw({ clientId: clientId, apiKey: apiKey, cargoesV2CargoesGetRequest: cargoesV2CargoesGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки для транспортных грузомест по идентификатору поставки + */ + cargoesLabelTransportByOrderCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesLabelTransportByOrderCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesLabelTransportByOrderCreate().'); + } + if (requestParameters['cargoesV1CargoesLabelTransportByOrderCreateRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesLabelTransportByOrderCreateRequest', 'Required parameter "cargoesV1CargoesLabelTransportByOrderCreateRequest" was null or undefined when calling cargoesLabelTransportByOrderCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/label/transport-by-order/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON)(requestParameters['cargoesV1CargoesLabelTransportByOrderCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки для транспортных грузомест по идентификатору поставки + */ + cargoesLabelTransportByOrderCreate(clientId, apiKey, cargoesV1CargoesLabelTransportByOrderCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesLabelTransportByOrderCreateRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesLabelTransportByOrderCreateRequest: cargoesV1CargoesLabelTransportByOrderCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток для транспортных грузомеcт по идентификатору поставки + */ + cargoesLabelTransportByOrderStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesLabelTransportByOrderStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesLabelTransportByOrderStatus().'); + } + if (requestParameters['cargoesV1CargoesLabelTransportByOrderStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesLabelTransportByOrderStatusRequest', 'Required parameter "cargoesV1CargoesLabelTransportByOrderStatusRequest" was null or undefined when calling cargoesLabelTransportByOrderStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/label/transport-by-order/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON)(requestParameters['cargoesV1CargoesLabelTransportByOrderStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток для транспортных грузомеcт по идентификатору поставки + */ + cargoesLabelTransportByOrderStatus(clientId, apiKey, cargoesV1CargoesLabelTransportByOrderStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesLabelTransportByOrderStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesLabelTransportByOrderStatusRequest: cargoesV1CargoesLabelTransportByOrderStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesLabelTransportCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesLabelTransportCreate().'); + } + if (requestParameters['cargoesV1CargoesLabelTransportCreateRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesLabelTransportCreateRequest', 'Required parameter "cargoesV1CargoesLabelTransportCreateRequest" was null or undefined when calling cargoesLabelTransportCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/label/transport/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesLabelTransportCreateRequestToJSON)(requestParameters['cargoesV1CargoesLabelTransportCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesLabelTransportCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportCreate(clientId, apiKey, cargoesV1CargoesLabelTransportCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesLabelTransportCreateRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesLabelTransportCreateRequest: cargoesV1CargoesLabelTransportCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesLabelTransportStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesLabelTransportStatus().'); + } + if (requestParameters['cargoesV1CargoesLabelTransportStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesLabelTransportStatusRequest', 'Required parameter "cargoesV1CargoesLabelTransportStatusRequest" was null or undefined when calling cargoesLabelTransportStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/label/transport/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesLabelTransportStatusRequestToJSON)(requestParameters['cargoesV1CargoesLabelTransportStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesLabelTransportStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportStatus(clientId, apiKey, cargoesV1CargoesLabelTransportStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesLabelTransportStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesLabelTransportStatusRequest: cargoesV1CargoesLabelTransportStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить информацию о грузоместах в поставках + */ + cargoesSuppliesGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesSuppliesGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesSuppliesGet().'); + } + if (requestParameters['cargoesV1CargoesSuppliesGetRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesSuppliesGetRequest', 'Required parameter "cargoesV1CargoesSuppliesGetRequest" was null or undefined when calling cargoesSuppliesGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/supplies/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesSuppliesGetRequestToJSON)(requestParameters['cargoesV1CargoesSuppliesGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesSuppliesGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить информацию о грузоместах в поставках + */ + cargoesSuppliesGet(clientId, apiKey, cargoesV1CargoesSuppliesGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesSuppliesGetRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesSuppliesGetRequest: cargoesV1CargoesSuppliesGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если в поставке создано грузоместо, отключить транспортные грузоместа не получится. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Включить или отключить транспортные грузоместа в поставке + */ + cargoesTransportActivateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportActivate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportActivate().'); + } + if (requestParameters['cargoesV1CargoesTransportActivateRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportActivateRequest', 'Required parameter "cargoesV1CargoesTransportActivateRequest" was null or undefined when calling cargoesTransportActivate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/activate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesTransportActivateRequestToJSON)(requestParameters['cargoesV1CargoesTransportActivateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesTransportActivateResponseFromJSON)(jsonValue)); + }); + } + /** + * Если в поставке создано грузоместо, отключить транспортные грузоместа не получится. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Включить или отключить транспортные грузоместа в поставке + */ + cargoesTransportActivate(clientId, apiKey, cargoesV1CargoesTransportActivateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportActivateRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportActivateRequest: cargoesV1CargoesTransportActivateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус включения или отключения транспортных грузомест + */ + cargoesTransportActivateStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportActivateStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportActivateStatus().'); + } + if (requestParameters['cargoesV1CargoesTransportActivateStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportActivateStatusRequest', 'Required parameter "cargoesV1CargoesTransportActivateStatusRequest" was null or undefined when calling cargoesTransportActivateStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/activate/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesTransportActivateStatusRequestToJSON)(requestParameters['cargoesV1CargoesTransportActivateStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesTransportActivateStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус включения или отключения транспортных грузомест + */ + cargoesTransportActivateStatus(clientId, apiKey, cargoesV1CargoesTransportActivateStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportActivateStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportActivateStatusRequest: cargoesV1CargoesTransportActivateStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Связать или отвязать грузоместа и транспортные грузоместа + */ + cargoesTransportBindRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportBind().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportBind().'); + } + if (requestParameters['cargoesV1CargoesTransportBindRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportBindRequest', 'Required parameter "cargoesV1CargoesTransportBindRequest" was null or undefined when calling cargoesTransportBind().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/bind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesTransportBindRequestToJSON)(requestParameters['cargoesV1CargoesTransportBindRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesTransportBindResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Связать или отвязать грузоместа и транспортные грузоместа + */ + cargoesTransportBind(clientId, apiKey, cargoesV1CargoesTransportBindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportBindRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportBindRequest: cargoesV1CargoesTransportBindRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус связывания или отвязывания грузомест и транспортных грузомест + */ + cargoesTransportBindStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportBindStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportBindStatus().'); + } + if (requestParameters['cargoesV1CargoesTransportBindStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportBindStatusRequest', 'Required parameter "cargoesV1CargoesTransportBindStatusRequest" was null or undefined when calling cargoesTransportBindStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/bind/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesTransportBindStatusRequestToJSON)(requestParameters['cargoesV1CargoesTransportBindStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesTransportBindStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус связывания или отвязывания грузомест и транспортных грузомест + */ + cargoesTransportBindStatus(clientId, apiKey, cargoesV1CargoesTransportBindStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportBindStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportBindStatusRequest: cargoesV1CargoesTransportBindStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Создать транспортное грузоместо + */ + cargoesTransportCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportCreate().'); + } + if (requestParameters['cargoesV1CargoesTransportCreateRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportCreateRequest', 'Required parameter "cargoesV1CargoesTransportCreateRequest" was null or undefined when calling cargoesTransportCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesTransportCreateRequestToJSON)(requestParameters['cargoesV1CargoesTransportCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesTransportCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Создать транспортное грузоместо + */ + cargoesTransportCreate(clientId, apiKey, cargoesV1CargoesTransportCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportCreateRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportCreateRequest: cargoesV1CargoesTransportCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус создания транспортного грузоместа + */ + cargoesTransportCreateStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportCreateStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportCreateStatus().'); + } + if (requestParameters['cargoesV1CargoesTransportCreateStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportCreateStatusRequest', 'Required parameter "cargoesV1CargoesTransportCreateStatusRequest" was null or undefined when calling cargoesTransportCreateStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/create/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CargoesV1CargoesTransportCreateStatusRequestToJSON)(requestParameters['cargoesV1CargoesTransportCreateStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CargoesV1CargoesTransportCreateStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус создания транспортного грузоместа + */ + cargoesTransportCreateStatus(clientId, apiKey, cargoesV1CargoesTransportCreateStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportCreateStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportCreateStatusRequest: cargoesV1CargoesTransportCreateStatusRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.FBOTransport = FBOTransport; diff --git a/dist/apis/FBOWarehouse.d.ts b/dist/apis/FBOWarehouse.d.ts new file mode 100644 index 0000000..305361e --- /dev/null +++ b/dist/apis/FBOWarehouse.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1WarehouseOZONListRequest, V1WarehouseOZONListResponse } from '../models/index'; +export interface WarehouseOZONListRequest { + clientId: string; + apiKey: string; + v1WarehouseOZONListRequest: V1WarehouseOZONListRequest; +} +/** + * + */ +export declare class FBOWarehouse extends runtime.BaseAPI { + /** + * Возвращает список складов Ozon, которые работают по схемам FBO и FBO Fresh, и возвратных складов. + * Получить список складов Ozon + */ + warehouseOZONListRaw(requestParameters: WarehouseOZONListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список складов Ozon, которые работают по схемам FBO и FBO Fresh, и возвратных складов. + * Получить список складов Ozon + */ + warehouseOZONList(clientId: string, apiKey: string, v1WarehouseOZONListRequest: V1WarehouseOZONListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FBOWarehouse.js b/dist/apis/FBOWarehouse.js new file mode 100644 index 0000000..d5f1dce --- /dev/null +++ b/dist/apis/FBOWarehouse.js @@ -0,0 +1,77 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FBOWarehouse = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FBOWarehouse extends runtime.BaseAPI { + /** + * Возвращает список складов Ozon, которые работают по схемам FBO и FBO Fresh, и возвратных складов. + * Получить список складов Ozon + */ + warehouseOZONListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseOZONList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseOZONList().'); + } + if (requestParameters['v1WarehouseOZONListRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseOZONListRequest', 'Required parameter "v1WarehouseOZONListRequest" was null or undefined when calling warehouseOZONList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/ozon/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseOZONListRequestToJSON)(requestParameters['v1WarehouseOZONListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseOZONListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список складов Ozon, которые работают по схемам FBO и FBO Fresh, и возвратных складов. + * Получить список складов Ozon + */ + warehouseOZONList(clientId, apiKey, v1WarehouseOZONListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseOZONListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseOZONListRequest: v1WarehouseOZONListRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.FBOWarehouse = FBOWarehouse; diff --git a/dist/apis/FBS.d.ts b/dist/apis/FBS.d.ts new file mode 100644 index 0000000..568c0f9 --- /dev/null +++ b/dist/apis/FBS.d.ts @@ -0,0 +1,356 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PostingBooleanResponse, PostingCancelFbsPostingRequest, PostingCancelReasonListResponse, PostingCancelReasonRequest, PostingCancelReasonResponse, PostingGetFbsPostingByBarcodeRequest, PostingMovePostingRequest, PostingPostingFBSPackageLabelRequest, PostingPostingFBSPackageLabelResponse, PostingPostingProductCancelRequest, PostingPostingProductCancelResponse, PostingV4PostingFbsListRequest, PostingV4PostingFbsListResponse, PostingV4PostingFbsUnfulfilledListRequest, PostingV4PostingFbsUnfulfilledListResponse, Postingv3GetFbsPostingListRequest, Postingv3GetFbsPostingRequest, Postingv3GetFbsPostingUnfulfilledListRequest, Postingv3GetFbsPostingUnfulfilledListResponse, Postingv3PostingMultiBoxQtySetV3Request, Postingv3PostingMultiBoxQtySetV3Response, V1CreateLabelBatchRequest, V1CreateLabelBatchResponse, V1GetEtgbRequest, V1GetEtgbResponse, V1GetLabelBatchRequest, V1GetLabelBatchResponse, V1GetRestrictionsRequest, V1GetRestrictionsResponse, V1PostingFBSPickupCodeVerifyRequest, V1PostingFBSPickupCodeVerifyResponse, V1PostingUnpaidLegalProductListRequest, V1PostingUnpaidLegalProductListResponse, V2CreateLabelBatchResponse, V2FbsPostingProductCountryListRequest, V2FbsPostingProductCountryListResponse, V2FbsPostingProductCountrySetRequest, V2FbsPostingProductCountrySetResponse, V2FbsPostingResponse, V2MovePostingToAwaitingDeliveryRequest, V3GetFbsPostingListResponseV3, V3GetFbsPostingResponseV3 } from '../models/index'; +export interface PostingAPICancelFbsPostingRequest { + clientId: string; + apiKey: string; + postingCancelFbsPostingRequest: PostingCancelFbsPostingRequest; +} +export interface PostingAPICancelFbsPostingProductRequest { + clientId: string; + apiKey: string; + postingPostingProductCancelRequest?: PostingPostingProductCancelRequest; +} +export interface PostingAPICreateLabelBatchRequest { + clientId: string; + apiKey: string; + v1CreateLabelBatchRequest: V1CreateLabelBatchRequest; +} +export interface PostingAPICreateLabelBatchV2Request { + clientId: string; + apiKey: string; + v1CreateLabelBatchRequest: V1CreateLabelBatchRequest; +} +export interface PostingAPIGetEtgbRequest { + clientId: string; + apiKey: string; + v1GetEtgbRequest: V1GetEtgbRequest; +} +export interface PostingAPIGetFbsPostingByBarcodeRequest { + clientId: string; + apiKey: string; + postingGetFbsPostingByBarcodeRequest: PostingGetFbsPostingByBarcodeRequest; +} +export interface PostingAPIGetFbsPostingListV3Request { + clientId: string; + apiKey: string; + postingv3GetFbsPostingListRequest: Postingv3GetFbsPostingListRequest; +} +export interface PostingAPIGetFbsPostingUnfulfilledListRequest { + clientId: string; + apiKey: string; + postingv3GetFbsPostingUnfulfilledListRequest: Postingv3GetFbsPostingUnfulfilledListRequest; +} +export interface PostingAPIGetFbsPostingV3Request { + clientId: string; + apiKey: string; + postingv3GetFbsPostingRequest: Postingv3GetFbsPostingRequest; +} +export interface PostingAPIGetLabelBatchRequest { + clientId: string; + apiKey: string; + v1GetLabelBatchRequest: V1GetLabelBatchRequest; +} +export interface PostingAPIGetPostingFbsCancelReasonListRequest { + clientId: string; + apiKey: string; +} +export interface PostingAPIGetPostingFbsCancelReasonV1Request { + clientId: string; + apiKey: string; + postingCancelReasonRequest: PostingCancelReasonRequest; +} +export interface PostingAPIGetRestrictionsRequest { + clientId: string; + apiKey: string; + v1GetRestrictionsRequest: V1GetRestrictionsRequest; +} +export interface PostingAPIListCountryProductFbsPostingV2Request { + v2FbsPostingProductCountryListRequest: V2FbsPostingProductCountryListRequest; +} +export interface PostingAPIMoveFbsPostingToArbitrationRequest { + clientId: string; + apiKey: string; + postingMovePostingRequest?: PostingMovePostingRequest; +} +export interface PostingAPIMoveFbsPostingToAwaitingDeliveryRequest { + clientId: string; + apiKey: string; + v2MovePostingToAwaitingDeliveryRequest?: V2MovePostingToAwaitingDeliveryRequest; +} +export interface PostingAPIPostingFBSPackageLabelRequest { + clientId: string; + apiKey: string; + postingPostingFBSPackageLabelRequest: PostingPostingFBSPackageLabelRequest; +} +export interface PostingAPIPostingFBSPickupCodeVerifyRequest { + v1PostingFBSPickupCodeVerifyRequest: V1PostingFBSPickupCodeVerifyRequest; +} +export interface PostingAPIPostingMultiBoxQtySetV3Request { + clientId: string; + apiKey: string; + postingv3PostingMultiBoxQtySetV3Request: Postingv3PostingMultiBoxQtySetV3Request; +} +export interface PostingAPISetCountryProductFbsPostingV2Request { + v2FbsPostingProductCountrySetRequest: V2FbsPostingProductCountrySetRequest; +} +export interface PostingAPIUnpaidLegalProductListRequest { + clientId: string; + apiKey: string; + v1PostingUnpaidLegalProductListRequest: V1PostingUnpaidLegalProductListRequest; +} +export interface PostingFbsListRequest { + clientId: string; + apiKey: string; + postingV4PostingFbsListRequest: PostingV4PostingFbsListRequest; +} +export interface PostingFbsUnfulfilledListRequest { + clientId: string; + apiKey: string; + postingV4PostingFbsUnfulfilledListRequest: PostingV4PostingFbsUnfulfilledListRequest; +} +/** + * + */ +export declare class FBS extends runtime.BaseAPI { + /** + * Меняет статус отправления на `cancelled`. Перед началом работы проверьте причины отмены для конкретного отправления методом [/v1/posting/fbs/cancel-reason](#operation/PostingAPI_GetPostingFbsCancelReasonV1). Условно-доставленные отправления отменить нельзя. Если значение параметра `cancel_reason_id` — 402, заполните поле `cancel_reason_message`. + * Отменить отправление + */ + postingAPICancelFbsPostingRaw(requestParameters: PostingAPICancelFbsPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Меняет статус отправления на `cancelled`. Перед началом работы проверьте причины отмены для конкретного отправления методом [/v1/posting/fbs/cancel-reason](#operation/PostingAPI_GetPostingFbsCancelReasonV1). Условно-доставленные отправления отменить нельзя. Если значение параметра `cancel_reason_id` — 402, заполните поле `cancel_reason_message`. + * Отменить отправление + */ + postingAPICancelFbsPosting(clientId: string, apiKey: string, postingCancelFbsPostingRequest: PostingCancelFbsPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, если вы не можете отправить часть продуктов из отправления. Чтобы получить идентификаторы причин отмены `cancel_reason_id` при работе по схемам FBS или rFBS, используйте метод [/v2/posting/fbs/cancel-reason/list](#operation/PostingAPI_GetPostingFbsCancelReasonList). Условно-доставленные отправления отменить нельзя. + * Отменить отправку некоторых товаров в отправлении + */ + postingAPICancelFbsPostingProductRaw(requestParameters: PostingAPICancelFbsPostingProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, если вы не можете отправить часть продуктов из отправления. Чтобы получить идентификаторы причин отмены `cancel_reason_id` при работе по схемам FBS или rFBS, используйте метод [/v2/posting/fbs/cancel-reason/list](#operation/PostingAPI_GetPostingFbsCancelReasonList). Условно-доставленные отправления отменить нельзя. + * Отменить отправку некоторых товаров в отправлении + */ + postingAPICancelFbsPostingProduct(clientId: string, apiKey: string, postingPostingProductCancelRequest?: PostingPostingProductCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для создания задания на асинхронное формирование этикеток. Для получения этикеток, созданных в результате вызова метода, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на выгрузку этикеток + */ + postingAPICreateLabelBatchRaw(requestParameters: PostingAPICreateLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для создания задания на асинхронное формирование этикеток. Для получения этикеток, созданных в результате вызова метода, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на выгрузку этикеток + */ + postingAPICreateLabelBatch(clientId: string, apiKey: string, v1CreateLabelBatchRequest: V1CreateLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для создания задания на асинхронное формирование этикеток для отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. Метод может вернуть несколько заданий: на формирование маленькой и большой этикетки. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Чтобы получить созданные этикетки, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на формирование этикеток + */ + postingAPICreateLabelBatchV2Raw(requestParameters: PostingAPICreateLabelBatchV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для создания задания на асинхронное формирование этикеток для отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. Метод может вернуть несколько заданий: на формирование маленькой и большой этикетки. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Чтобы получить созданные этикетки, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на формирование этикеток + */ + postingAPICreateLabelBatchV2(clientId: string, apiKey: string, v1CreateLabelBatchRequest: V1CreateLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения таможенных деклараций Elektronik Ticaret Gümrük Beyannamesi (ETGB) для продавцов из Турции. + * Таможенные декларации ETGB + */ + postingAPIGetEtgbRaw(requestParameters: PostingAPIGetEtgbRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения таможенных деклараций Elektronik Ticaret Gümrük Beyannamesi (ETGB) для продавцов из Турции. + * Таможенные декларации ETGB + */ + postingAPIGetEtgb(clientId: string, apiKey: string, v1GetEtgbRequest: V1GetEtgbRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию об отправлении по штрихкоду + */ + postingAPIGetFbsPostingByBarcodeRaw(requestParameters: PostingAPIGetFbsPostingByBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию об отправлении по штрихкоду + */ + postingAPIGetFbsPostingByBarcode(clientId: string, apiKey: string, postingGetFbsPostingByBarcodeRequest: PostingGetFbsPostingByBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. `has_next = true` в ответе может значить, что вернули не весь массив отправлений. Чтобы получить информацию об остальных отправлениях, сделайте новый запрос с другим значением `offset`. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список отправлений + * @deprecated + */ + postingAPIGetFbsPostingListV3Raw(requestParameters: PostingAPIGetFbsPostingListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. `has_next = true` в ответе может значить, что вернули не весь массив отправлений. Чтобы получить информацию об остальных отправлениях, сделайте новый запрос с другим значением `offset`. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список отправлений + * @deprecated + */ + postingAPIGetFbsPostingListV3(clientId: string, apiKey: string, postingv3GetFbsPostingListRequest: Postingv3GetFbsPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации, - `acceptance_in_progress` — идёт приёмка, - `awaiting_approve` — ожидает подтверждения, - `awaiting_packaging` — ожидает упаковки, - `awaiting_deliver` — ожидает отгрузки, - `arbitration` — арбитраж, - `client_arbitration` — клиентский арбитраж доставки, - `delivering` — доставляется, - `driver_pickup` — у водителя, - `cancelled` — отменено, - `not_accepted` — не принят на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список необработанных отправлений + * @deprecated + */ + postingAPIGetFbsPostingUnfulfilledListRaw(requestParameters: PostingAPIGetFbsPostingUnfulfilledListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации, - `acceptance_in_progress` — идёт приёмка, - `awaiting_approve` — ожидает подтверждения, - `awaiting_packaging` — ожидает упаковки, - `awaiting_deliver` — ожидает отгрузки, - `arbitration` — арбитраж, - `client_arbitration` — клиентский арбитраж доставки, - `delivering` — доставляется, - `driver_pickup` — у водителя, - `cancelled` — отменено, - `not_accepted` — не принят на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список необработанных отправлений + * @deprecated + */ + postingAPIGetFbsPostingUnfulfilledList(clientId: string, apiKey: string, postingv3GetFbsPostingUnfulfilledListRequest: Postingv3GetFbsPostingUnfulfilledListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить информацию об отправлении по идентификатору + */ + postingAPIGetFbsPostingV3Raw(requestParameters: PostingAPIGetFbsPostingV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить информацию об отправлении по идентификатору + */ + postingAPIGetFbsPostingV3(clientId: string, apiKey: string, postingv3GetFbsPostingRequest: Postingv3GetFbsPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения этикеток после вызова [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * Получить файл с этикетками + */ + postingAPIGetLabelBatchRaw(requestParameters: PostingAPIGetLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения этикеток после вызова [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * Получить файл с этикетками + */ + postingAPIGetLabelBatch(clientId: string, apiKey: string, v1GetLabelBatchRequest: V1GetLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список причин отмены для всех отправлений. + * Причины отмены отправлений + */ + postingAPIGetPostingFbsCancelReasonListRaw(requestParameters: PostingAPIGetPostingFbsCancelReasonListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список причин отмены для всех отправлений. + * Причины отмены отправлений + */ + postingAPIGetPostingFbsCancelReasonList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список причин отмены для конкретных отправлений. + * Причины отмены отправления + */ + postingAPIGetPostingFbsCancelReasonV1Raw(requestParameters: PostingAPIGetPostingFbsCancelReasonV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список причин отмены для конкретных отправлений. + * Причины отмены отправления + */ + postingAPIGetPostingFbsCancelReasonV1(clientId: string, apiKey: string, postingCancelReasonRequest: PostingCancelReasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения габаритных, весовых и прочих ограничений пункта приёма по номеру отправления. Метод применим только для работы по схеме FBS. + * Получить ограничения пункта приёма + */ + postingAPIGetRestrictionsRaw(requestParameters: PostingAPIGetRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения габаритных, весовых и прочих ограничений пункта приёма по номеру отправления. Метод применим только для работы по схеме FBS. + * Получить ограничения пункта приёма + */ + postingAPIGetRestrictions(clientId: string, apiKey: string, v1GetRestrictionsRequest: V1GetRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка доступных стран-изготовителей и их ISO кодов. + * Список доступных стран-изготовителей + */ + postingAPIListCountryProductFbsPostingV2Raw(requestParameters: PostingAPIListCountryProductFbsPostingV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка доступных стран-изготовителей и их ISO кодов. + * Список доступных стран-изготовителей + */ + postingAPIListCountryProductFbsPostingV2(v2FbsPostingProductCountryListRequest: V2FbsPostingProductCountryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если отправление передано в доставку, но не просканировано в сортировочном центре, можно открыть спор. Открытый спор переведёт отправление в статус `arbitration`. + * Открыть спор по отправлению + */ + postingAPIMoveFbsPostingToArbitrationRaw(requestParameters: PostingAPIMoveFbsPostingToArbitrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если отправление передано в доставку, но не просканировано в сортировочном центре, можно открыть спор. Открытый спор переведёт отправление в статус `arbitration`. + * Открыть спор по отправлению + */ + postingAPIMoveFbsPostingToArbitration(clientId: string, apiKey: string, postingMovePostingRequest?: PostingMovePostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Передает спорные заказы к отгрузке. Статус отправления изменится на `awaiting_deliver`. + * Передать отправление к отгрузке + */ + postingAPIMoveFbsPostingToAwaitingDeliveryRaw(requestParameters: PostingAPIMoveFbsPostingToAwaitingDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Передает спорные заказы к отгрузке. Статус отправления изменится на `awaiting_deliver`. + * Передать отправление к отгрузке + */ + postingAPIMoveFbsPostingToAwaitingDelivery(clientId: string, apiKey: string, v2MovePostingToAwaitingDeliveryRequest?: V2MovePostingToAwaitingDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Генерирует PDF-файл с этикетками для указанных отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. В одном запросе можно передать не больше 20 идентификаторов. Если хотя бы для одного отправления возникнет ошибка, этикетки не будут подготовлены для всех отправлений в запросе. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Ошибка `The next postings aren\'t ready` означает, что этикетки ещё не готовы, повторите запрос позднее. + * Напечатать этикетку + */ + postingAPIPostingFBSPackageLabelRaw(requestParameters: PostingAPIPostingFBSPackageLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Генерирует PDF-файл с этикетками для указанных отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. В одном запросе можно передать не больше 20 идентификаторов. Если хотя бы для одного отправления возникнет ошибка, этикетки не будут подготовлены для всех отправлений в запросе. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Ошибка `The next postings aren\'t ready` означает, что этикетки ещё не готовы, повторите запрос позднее. + * Напечатать этикетку + */ + postingAPIPostingFBSPackageLabel(clientId: string, apiKey: string, postingPostingFBSPackageLabelRequest: PostingPostingFBSPackageLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет проверить код курьера при передаче отправлений realFBS Express. Подробнее о передаче отправлений в [Базе знаний продавца](https://seller-edu.ozon.ru/contract-for-sellers/regulations-fbs-realfbs/reglament-prodaji-so-svoego-sklada-fbs-express#7-порядок-передачи-отправлении-через-партнёров-ozon-при-экспресс-доставке). + * Проверить код курьера + */ + postingAPIPostingFBSPickupCodeVerifyRaw(requestParameters: PostingAPIPostingFBSPickupCodeVerifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет проверить код курьера при передаче отправлений realFBS Express. Подробнее о передаче отправлений в [Базе знаний продавца](https://seller-edu.ozon.ru/contract-for-sellers/regulations-fbs-realfbs/reglament-prodaji-so-svoego-sklada-fbs-express#7-порядок-передачи-отправлении-через-партнёров-ozon-при-экспресс-доставке). + * Проверить код курьера + */ + postingAPIPostingFBSPickupCodeVerify(v1PostingFBSPickupCodeVerifyRequest: V1PostingFBSPickupCodeVerifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для передачи количества коробок для отправлений, в которых есть многокоробочные товары. Используйте метод при работе по схеме rFBS Агрегатор — c доставкой партнёрами Ozon. + * Указать количество коробок для многокоробочных отправлений + */ + postingAPIPostingMultiBoxQtySetV3Raw(requestParameters: PostingAPIPostingMultiBoxQtySetV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для передачи количества коробок для отправлений, в которых есть многокоробочные товары. Используйте метод при работе по схеме rFBS Агрегатор — c доставкой партнёрами Ozon. + * Указать количество коробок для многокоробочных отправлений + */ + postingAPIPostingMultiBoxQtySetV3(clientId: string, apiKey: string, postingv3PostingMultiBoxQtySetV3Request: Postingv3PostingMultiBoxQtySetV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для добавления на продукт атрибута «Страна-изготовитель», если он не был указан. + * Добавить информацию о стране-изготовителе товара + */ + postingAPISetCountryProductFbsPostingV2Raw(requestParameters: PostingAPISetCountryProductFbsPostingV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для добавления на продукт атрибута «Страна-изготовитель», если он не был указан. + * Добавить информацию о стране-изготовителе товара + */ + postingAPISetCountryProductFbsPostingV2(v2FbsPostingProductCountrySetRequest: V2FbsPostingProductCountrySetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список неоплаченных товаров, заказанных юридическими лицами + */ + postingAPIUnpaidLegalProductListRaw(requestParameters: PostingAPIUnpaidLegalProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список неоплаченных товаров, заказанных юридическими лицами + */ + postingAPIUnpaidLegalProductList(clientId: string, apiKey: string, v1PostingUnpaidLegalProductListRequest: V1PostingUnpaidLegalProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список отправлений + */ + postingFbsListRaw(requestParameters: PostingFbsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список отправлений + */ + postingFbsList(clientId: string, apiKey: string, postingV4PostingFbsListRequest: PostingV4PostingFbsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации; - `acceptance_in_progress` — идёт приёмка; - `awaiting_approve` — ожидает подтверждения; - `awaiting_packaging` — ожидает упаковки; - `awaiting_deliver` — ожидает отгрузки; - `arbitration` — арбитраж; - `client_arbitration` — клиентский арбитраж доставки; - `delivering` — доставляется; - `driver_pickup` — у водителя; - `cancelled` — отменено; - `not_accepted` — не принято на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список необработанных отправлений + */ + postingFbsUnfulfilledListRaw(requestParameters: PostingFbsUnfulfilledListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации; - `acceptance_in_progress` — идёт приёмка; - `awaiting_approve` — ожидает подтверждения; - `awaiting_packaging` — ожидает упаковки; - `awaiting_deliver` — ожидает отгрузки; - `arbitration` — арбитраж; - `client_arbitration` — клиентский арбитраж доставки; - `delivering` — доставляется; - `driver_pickup` — у водителя; - `cancelled` — отменено; - `not_accepted` — не принято на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список необработанных отправлений + */ + postingFbsUnfulfilledList(clientId: string, apiKey: string, postingV4PostingFbsUnfulfilledListRequest: PostingV4PostingFbsUnfulfilledListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FBS.js b/dist/apis/FBS.js new file mode 100644 index 0000000..ae0c0a2 --- /dev/null +++ b/dist/apis/FBS.js @@ -0,0 +1,995 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FBS = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FBS extends runtime.BaseAPI { + /** + * Меняет статус отправления на `cancelled`. Перед началом работы проверьте причины отмены для конкретного отправления методом [/v1/posting/fbs/cancel-reason](#operation/PostingAPI_GetPostingFbsCancelReasonV1). Условно-доставленные отправления отменить нельзя. Если значение параметра `cancel_reason_id` — 402, заполните поле `cancel_reason_message`. + * Отменить отправление + */ + postingAPICancelFbsPostingRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPICancelFbsPosting().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPICancelFbsPosting().'); + } + if (requestParameters['postingCancelFbsPostingRequest'] == null) { + throw new runtime.RequiredError('postingCancelFbsPostingRequest', 'Required parameter "postingCancelFbsPostingRequest" was null or undefined when calling postingAPICancelFbsPosting().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingCancelFbsPostingRequestToJSON)(requestParameters['postingCancelFbsPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingBooleanResponseFromJSON)(jsonValue)); + }); + } + /** + * Меняет статус отправления на `cancelled`. Перед началом работы проверьте причины отмены для конкретного отправления методом [/v1/posting/fbs/cancel-reason](#operation/PostingAPI_GetPostingFbsCancelReasonV1). Условно-доставленные отправления отменить нельзя. Если значение параметра `cancel_reason_id` — 402, заполните поле `cancel_reason_message`. + * Отменить отправление + */ + postingAPICancelFbsPosting(clientId, apiKey, postingCancelFbsPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPICancelFbsPostingRaw({ clientId: clientId, apiKey: apiKey, postingCancelFbsPostingRequest: postingCancelFbsPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, если вы не можете отправить часть продуктов из отправления. Чтобы получить идентификаторы причин отмены `cancel_reason_id` при работе по схемам FBS или rFBS, используйте метод [/v2/posting/fbs/cancel-reason/list](#operation/PostingAPI_GetPostingFbsCancelReasonList). Условно-доставленные отправления отменить нельзя. + * Отменить отправку некоторых товаров в отправлении + */ + postingAPICancelFbsPostingProductRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPICancelFbsPostingProduct().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPICancelFbsPostingProduct().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/product/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingPostingProductCancelRequestToJSON)(requestParameters['postingPostingProductCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingPostingProductCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, если вы не можете отправить часть продуктов из отправления. Чтобы получить идентификаторы причин отмены `cancel_reason_id` при работе по схемам FBS или rFBS, используйте метод [/v2/posting/fbs/cancel-reason/list](#operation/PostingAPI_GetPostingFbsCancelReasonList). Условно-доставленные отправления отменить нельзя. + * Отменить отправку некоторых товаров в отправлении + */ + postingAPICancelFbsPostingProduct(clientId, apiKey, postingPostingProductCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPICancelFbsPostingProductRaw({ clientId: clientId, apiKey: apiKey, postingPostingProductCancelRequest: postingPostingProductCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для создания задания на асинхронное формирование этикеток. Для получения этикеток, созданных в результате вызова метода, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на выгрузку этикеток + */ + postingAPICreateLabelBatchRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPICreateLabelBatch().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPICreateLabelBatch().'); + } + if (requestParameters['v1CreateLabelBatchRequest'] == null) { + throw new runtime.RequiredError('v1CreateLabelBatchRequest', 'Required parameter "v1CreateLabelBatchRequest" was null or undefined when calling postingAPICreateLabelBatch().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/package-label/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreateLabelBatchRequestToJSON)(requestParameters['v1CreateLabelBatchRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CreateLabelBatchResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для создания задания на асинхронное формирование этикеток. Для получения этикеток, созданных в результате вызова метода, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на выгрузку этикеток + */ + postingAPICreateLabelBatch(clientId, apiKey, v1CreateLabelBatchRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPICreateLabelBatchRaw({ clientId: clientId, apiKey: apiKey, v1CreateLabelBatchRequest: v1CreateLabelBatchRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для создания задания на асинхронное формирование этикеток для отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. Метод может вернуть несколько заданий: на формирование маленькой и большой этикетки. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Чтобы получить созданные этикетки, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на формирование этикеток + */ + postingAPICreateLabelBatchV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPICreateLabelBatchV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPICreateLabelBatchV2().'); + } + if (requestParameters['v1CreateLabelBatchRequest'] == null) { + throw new runtime.RequiredError('v1CreateLabelBatchRequest', 'Required parameter "v1CreateLabelBatchRequest" was null or undefined when calling postingAPICreateLabelBatchV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/package-label/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreateLabelBatchRequestToJSON)(requestParameters['v1CreateLabelBatchRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2CreateLabelBatchResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для создания задания на асинхронное формирование этикеток для отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. Метод может вернуть несколько заданий: на формирование маленькой и большой этикетки. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Чтобы получить созданные этикетки, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на формирование этикеток + */ + postingAPICreateLabelBatchV2(clientId, apiKey, v1CreateLabelBatchRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPICreateLabelBatchV2Raw({ clientId: clientId, apiKey: apiKey, v1CreateLabelBatchRequest: v1CreateLabelBatchRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения таможенных деклараций Elektronik Ticaret Gümrük Beyannamesi (ETGB) для продавцов из Турции. + * Таможенные декларации ETGB + */ + postingAPIGetEtgbRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetEtgb().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetEtgb().'); + } + if (requestParameters['v1GetEtgbRequest'] == null) { + throw new runtime.RequiredError('v1GetEtgbRequest', 'Required parameter "v1GetEtgbRequest" was null or undefined when calling postingAPIGetEtgb().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/global/etgb`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetEtgbRequestToJSON)(requestParameters['v1GetEtgbRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetEtgbResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения таможенных деклараций Elektronik Ticaret Gümrük Beyannamesi (ETGB) для продавцов из Турции. + * Таможенные декларации ETGB + */ + postingAPIGetEtgb(clientId, apiKey, v1GetEtgbRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetEtgbRaw({ clientId: clientId, apiKey: apiKey, v1GetEtgbRequest: v1GetEtgbRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию об отправлении по штрихкоду + */ + postingAPIGetFbsPostingByBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFbsPostingByBarcode().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFbsPostingByBarcode().'); + } + if (requestParameters['postingGetFbsPostingByBarcodeRequest'] == null) { + throw new runtime.RequiredError('postingGetFbsPostingByBarcodeRequest', 'Required parameter "postingGetFbsPostingByBarcodeRequest" was null or undefined when calling postingAPIGetFbsPostingByBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/get-by-barcode`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingGetFbsPostingByBarcodeRequestToJSON)(requestParameters['postingGetFbsPostingByBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2FbsPostingResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить информацию об отправлении по штрихкоду + */ + postingAPIGetFbsPostingByBarcode(clientId, apiKey, postingGetFbsPostingByBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFbsPostingByBarcodeRaw({ clientId: clientId, apiKey: apiKey, postingGetFbsPostingByBarcodeRequest: postingGetFbsPostingByBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. `has_next = true` в ответе может значить, что вернули не весь массив отправлений. Чтобы получить информацию об остальных отправлениях, сделайте новый запрос с другим значением `offset`. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список отправлений + * @deprecated + */ + postingAPIGetFbsPostingListV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFbsPostingListV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFbsPostingListV3().'); + } + if (requestParameters['postingv3GetFbsPostingListRequest'] == null) { + throw new runtime.RequiredError('postingv3GetFbsPostingListRequest', 'Required parameter "postingv3GetFbsPostingListRequest" was null or undefined when calling postingAPIGetFbsPostingListV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/fbs/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Postingv3GetFbsPostingListRequestToJSON)(requestParameters['postingv3GetFbsPostingListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3GetFbsPostingListResponseV3FromJSON)(jsonValue)); + }); + } + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. `has_next = true` в ответе может значить, что вернули не весь массив отправлений. Чтобы получить информацию об остальных отправлениях, сделайте новый запрос с другим значением `offset`. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список отправлений + * @deprecated + */ + postingAPIGetFbsPostingListV3(clientId, apiKey, postingv3GetFbsPostingListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFbsPostingListV3Raw({ clientId: clientId, apiKey: apiKey, postingv3GetFbsPostingListRequest: postingv3GetFbsPostingListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации, - `acceptance_in_progress` — идёт приёмка, - `awaiting_approve` — ожидает подтверждения, - `awaiting_packaging` — ожидает упаковки, - `awaiting_deliver` — ожидает отгрузки, - `arbitration` — арбитраж, - `client_arbitration` — клиентский арбитраж доставки, - `delivering` — доставляется, - `driver_pickup` — у водителя, - `cancelled` — отменено, - `not_accepted` — не принят на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список необработанных отправлений + * @deprecated + */ + postingAPIGetFbsPostingUnfulfilledListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFbsPostingUnfulfilledList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFbsPostingUnfulfilledList().'); + } + if (requestParameters['postingv3GetFbsPostingUnfulfilledListRequest'] == null) { + throw new runtime.RequiredError('postingv3GetFbsPostingUnfulfilledListRequest', 'Required parameter "postingv3GetFbsPostingUnfulfilledListRequest" was null or undefined when calling postingAPIGetFbsPostingUnfulfilledList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/fbs/unfulfilled/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Postingv3GetFbsPostingUnfulfilledListRequestToJSON)(requestParameters['postingv3GetFbsPostingUnfulfilledListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Postingv3GetFbsPostingUnfulfilledListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации, - `acceptance_in_progress` — идёт приёмка, - `awaiting_approve` — ожидает подтверждения, - `awaiting_packaging` — ожидает упаковки, - `awaiting_deliver` — ожидает отгрузки, - `arbitration` — арбитраж, - `client_arbitration` — клиентский арбитраж доставки, - `delivering` — доставляется, - `driver_pickup` — у водителя, - `cancelled` — отменено, - `not_accepted` — не принят на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список необработанных отправлений + * @deprecated + */ + postingAPIGetFbsPostingUnfulfilledList(clientId, apiKey, postingv3GetFbsPostingUnfulfilledListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFbsPostingUnfulfilledListRaw({ clientId: clientId, apiKey: apiKey, postingv3GetFbsPostingUnfulfilledListRequest: postingv3GetFbsPostingUnfulfilledListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить информацию об отправлении по идентификатору + */ + postingAPIGetFbsPostingV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFbsPostingV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFbsPostingV3().'); + } + if (requestParameters['postingv3GetFbsPostingRequest'] == null) { + throw new runtime.RequiredError('postingv3GetFbsPostingRequest', 'Required parameter "postingv3GetFbsPostingRequest" was null or undefined when calling postingAPIGetFbsPostingV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/fbs/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Postingv3GetFbsPostingRequestToJSON)(requestParameters['postingv3GetFbsPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3GetFbsPostingResponseV3FromJSON)(jsonValue)); + }); + } + /** + * Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить информацию об отправлении по идентификатору + */ + postingAPIGetFbsPostingV3(clientId, apiKey, postingv3GetFbsPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFbsPostingV3Raw({ clientId: clientId, apiKey: apiKey, postingv3GetFbsPostingRequest: postingv3GetFbsPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения этикеток после вызова [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * Получить файл с этикетками + */ + postingAPIGetLabelBatchRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetLabelBatch().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetLabelBatch().'); + } + if (requestParameters['v1GetLabelBatchRequest'] == null) { + throw new runtime.RequiredError('v1GetLabelBatchRequest', 'Required parameter "v1GetLabelBatchRequest" was null or undefined when calling postingAPIGetLabelBatch().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/package-label/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetLabelBatchRequestToJSON)(requestParameters['v1GetLabelBatchRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetLabelBatchResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения этикеток после вызова [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * Получить файл с этикетками + */ + postingAPIGetLabelBatch(clientId, apiKey, v1GetLabelBatchRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetLabelBatchRaw({ clientId: clientId, apiKey: apiKey, v1GetLabelBatchRequest: v1GetLabelBatchRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список причин отмены для всех отправлений. + * Причины отмены отправлений + */ + postingAPIGetPostingFbsCancelReasonListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetPostingFbsCancelReasonList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetPostingFbsCancelReasonList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/cancel-reason/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingCancelReasonListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список причин отмены для всех отправлений. + * Причины отмены отправлений + */ + postingAPIGetPostingFbsCancelReasonList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetPostingFbsCancelReasonListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список причин отмены для конкретных отправлений. + * Причины отмены отправления + */ + postingAPIGetPostingFbsCancelReasonV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetPostingFbsCancelReasonV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetPostingFbsCancelReasonV1().'); + } + if (requestParameters['postingCancelReasonRequest'] == null) { + throw new runtime.RequiredError('postingCancelReasonRequest', 'Required parameter "postingCancelReasonRequest" was null or undefined when calling postingAPIGetPostingFbsCancelReasonV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/cancel-reason`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingCancelReasonRequestToJSON)(requestParameters['postingCancelReasonRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingCancelReasonResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список причин отмены для конкретных отправлений. + * Причины отмены отправления + */ + postingAPIGetPostingFbsCancelReasonV1(clientId, apiKey, postingCancelReasonRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetPostingFbsCancelReasonV1Raw({ clientId: clientId, apiKey: apiKey, postingCancelReasonRequest: postingCancelReasonRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения габаритных, весовых и прочих ограничений пункта приёма по номеру отправления. Метод применим только для работы по схеме FBS. + * Получить ограничения пункта приёма + */ + postingAPIGetRestrictionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetRestrictions().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetRestrictions().'); + } + if (requestParameters['v1GetRestrictionsRequest'] == null) { + throw new runtime.RequiredError('v1GetRestrictionsRequest', 'Required parameter "v1GetRestrictionsRequest" was null or undefined when calling postingAPIGetRestrictions().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/restrictions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetRestrictionsRequestToJSON)(requestParameters['v1GetRestrictionsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetRestrictionsResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения габаритных, весовых и прочих ограничений пункта приёма по номеру отправления. Метод применим только для работы по схеме FBS. + * Получить ограничения пункта приёма + */ + postingAPIGetRestrictions(clientId, apiKey, v1GetRestrictionsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetRestrictionsRaw({ clientId: clientId, apiKey: apiKey, v1GetRestrictionsRequest: v1GetRestrictionsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка доступных стран-изготовителей и их ISO кодов. + * Список доступных стран-изготовителей + */ + postingAPIListCountryProductFbsPostingV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2FbsPostingProductCountryListRequest'] == null) { + throw new runtime.RequiredError('v2FbsPostingProductCountryListRequest', 'Required parameter "v2FbsPostingProductCountryListRequest" was null or undefined when calling postingAPIListCountryProductFbsPostingV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/posting/fbs/product/country/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2FbsPostingProductCountryListRequestToJSON)(requestParameters['v2FbsPostingProductCountryListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2FbsPostingProductCountryListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка доступных стран-изготовителей и их ISO кодов. + * Список доступных стран-изготовителей + */ + postingAPIListCountryProductFbsPostingV2(v2FbsPostingProductCountryListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIListCountryProductFbsPostingV2Raw({ v2FbsPostingProductCountryListRequest: v2FbsPostingProductCountryListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если отправление передано в доставку, но не просканировано в сортировочном центре, можно открыть спор. Открытый спор переведёт отправление в статус `arbitration`. + * Открыть спор по отправлению + */ + postingAPIMoveFbsPostingToArbitrationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIMoveFbsPostingToArbitration().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIMoveFbsPostingToArbitration().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/arbitration`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingMovePostingRequestToJSON)(requestParameters['postingMovePostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingBooleanResponseFromJSON)(jsonValue)); + }); + } + /** + * Если отправление передано в доставку, но не просканировано в сортировочном центре, можно открыть спор. Открытый спор переведёт отправление в статус `arbitration`. + * Открыть спор по отправлению + */ + postingAPIMoveFbsPostingToArbitration(clientId, apiKey, postingMovePostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIMoveFbsPostingToArbitrationRaw({ clientId: clientId, apiKey: apiKey, postingMovePostingRequest: postingMovePostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Передает спорные заказы к отгрузке. Статус отправления изменится на `awaiting_deliver`. + * Передать отправление к отгрузке + */ + postingAPIMoveFbsPostingToAwaitingDeliveryRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIMoveFbsPostingToAwaitingDelivery().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIMoveFbsPostingToAwaitingDelivery().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/awaiting-delivery`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2MovePostingToAwaitingDeliveryRequestToJSON)(requestParameters['v2MovePostingToAwaitingDeliveryRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingBooleanResponseFromJSON)(jsonValue)); + }); + } + /** + * Передает спорные заказы к отгрузке. Статус отправления изменится на `awaiting_deliver`. + * Передать отправление к отгрузке + */ + postingAPIMoveFbsPostingToAwaitingDelivery(clientId, apiKey, v2MovePostingToAwaitingDeliveryRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIMoveFbsPostingToAwaitingDeliveryRaw({ clientId: clientId, apiKey: apiKey, v2MovePostingToAwaitingDeliveryRequest: v2MovePostingToAwaitingDeliveryRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Генерирует PDF-файл с этикетками для указанных отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. В одном запросе можно передать не больше 20 идентификаторов. Если хотя бы для одного отправления возникнет ошибка, этикетки не будут подготовлены для всех отправлений в запросе. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Ошибка `The next postings aren\'t ready` означает, что этикетки ещё не готовы, повторите запрос позднее. + * Напечатать этикетку + */ + postingAPIPostingFBSPackageLabelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSPackageLabel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSPackageLabel().'); + } + if (requestParameters['postingPostingFBSPackageLabelRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSPackageLabelRequest', 'Required parameter "postingPostingFBSPackageLabelRequest" was null or undefined when calling postingAPIPostingFBSPackageLabel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/package-label`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingPostingFBSPackageLabelRequestToJSON)(requestParameters['postingPostingFBSPackageLabelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingPostingFBSPackageLabelResponseFromJSON)(jsonValue)); + }); + } + /** + * Генерирует PDF-файл с этикетками для указанных отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. В одном запросе можно передать не больше 20 идентификаторов. Если хотя бы для одного отправления возникнет ошибка, этикетки не будут подготовлены для всех отправлений в запросе. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Ошибка `The next postings aren\'t ready` означает, что этикетки ещё не готовы, повторите запрос позднее. + * Напечатать этикетку + */ + postingAPIPostingFBSPackageLabel(clientId, apiKey, postingPostingFBSPackageLabelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSPackageLabelRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSPackageLabelRequest: postingPostingFBSPackageLabelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод позволяет проверить код курьера при передаче отправлений realFBS Express. Подробнее о передаче отправлений в [Базе знаний продавца](https://seller-edu.ozon.ru/contract-for-sellers/regulations-fbs-realfbs/reglament-prodaji-so-svoego-sklada-fbs-express#7-порядок-передачи-отправлении-через-партнёров-ozon-при-экспресс-доставке). + * Проверить код курьера + */ + postingAPIPostingFBSPickupCodeVerifyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingFBSPickupCodeVerifyRequest'] == null) { + throw new runtime.RequiredError('v1PostingFBSPickupCodeVerifyRequest', 'Required parameter "v1PostingFBSPickupCodeVerifyRequest" was null or undefined when calling postingAPIPostingFBSPickupCodeVerify().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/fbs/pick-up-code/verify`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingFBSPickupCodeVerifyRequestToJSON)(requestParameters['v1PostingFBSPickupCodeVerifyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingFBSPickupCodeVerifyResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод позволяет проверить код курьера при передаче отправлений realFBS Express. Подробнее о передаче отправлений в [Базе знаний продавца](https://seller-edu.ozon.ru/contract-for-sellers/regulations-fbs-realfbs/reglament-prodaji-so-svoego-sklada-fbs-express#7-порядок-передачи-отправлении-через-партнёров-ozon-при-экспресс-доставке). + * Проверить код курьера + */ + postingAPIPostingFBSPickupCodeVerify(v1PostingFBSPickupCodeVerifyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSPickupCodeVerifyRaw({ v1PostingFBSPickupCodeVerifyRequest: v1PostingFBSPickupCodeVerifyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для передачи количества коробок для отправлений, в которых есть многокоробочные товары. Используйте метод при работе по схеме rFBS Агрегатор — c доставкой партнёрами Ozon. + * Указать количество коробок для многокоробочных отправлений + */ + postingAPIPostingMultiBoxQtySetV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingMultiBoxQtySetV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingMultiBoxQtySetV3().'); + } + if (requestParameters['postingv3PostingMultiBoxQtySetV3Request'] == null) { + throw new runtime.RequiredError('postingv3PostingMultiBoxQtySetV3Request', 'Required parameter "postingv3PostingMultiBoxQtySetV3Request" was null or undefined when calling postingAPIPostingMultiBoxQtySetV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/multiboxqty/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Postingv3PostingMultiBoxQtySetV3RequestToJSON)(requestParameters['postingv3PostingMultiBoxQtySetV3Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Postingv3PostingMultiBoxQtySetV3ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для передачи количества коробок для отправлений, в которых есть многокоробочные товары. Используйте метод при работе по схеме rFBS Агрегатор — c доставкой партнёрами Ozon. + * Указать количество коробок для многокоробочных отправлений + */ + postingAPIPostingMultiBoxQtySetV3(clientId, apiKey, postingv3PostingMultiBoxQtySetV3Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingMultiBoxQtySetV3Raw({ clientId: clientId, apiKey: apiKey, postingv3PostingMultiBoxQtySetV3Request: postingv3PostingMultiBoxQtySetV3Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для добавления на продукт атрибута «Страна-изготовитель», если он не был указан. + * Добавить информацию о стране-изготовителе товара + */ + postingAPISetCountryProductFbsPostingV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2FbsPostingProductCountrySetRequest'] == null) { + throw new runtime.RequiredError('v2FbsPostingProductCountrySetRequest', 'Required parameter "v2FbsPostingProductCountrySetRequest" was null or undefined when calling postingAPISetCountryProductFbsPostingV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/posting/fbs/product/country/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2FbsPostingProductCountrySetRequestToJSON)(requestParameters['v2FbsPostingProductCountrySetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2FbsPostingProductCountrySetResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для добавления на продукт атрибута «Страна-изготовитель», если он не был указан. + * Добавить информацию о стране-изготовителе товара + */ + postingAPISetCountryProductFbsPostingV2(v2FbsPostingProductCountrySetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPISetCountryProductFbsPostingV2Raw({ v2FbsPostingProductCountrySetRequest: v2FbsPostingProductCountrySetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список неоплаченных товаров, заказанных юридическими лицами + */ + postingAPIUnpaidLegalProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIUnpaidLegalProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIUnpaidLegalProductList().'); + } + if (requestParameters['v1PostingUnpaidLegalProductListRequest'] == null) { + throw new runtime.RequiredError('v1PostingUnpaidLegalProductListRequest', 'Required parameter "v1PostingUnpaidLegalProductListRequest" was null or undefined when calling postingAPIUnpaidLegalProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/unpaid-legal/product/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingUnpaidLegalProductListRequestToJSON)(requestParameters['v1PostingUnpaidLegalProductListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingUnpaidLegalProductListResponseFromJSON)(jsonValue)); + }); + } + /** + * Список неоплаченных товаров, заказанных юридическими лицами + */ + postingAPIUnpaidLegalProductList(clientId, apiKey, v1PostingUnpaidLegalProductListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIUnpaidLegalProductListRaw({ clientId: clientId, apiKey: apiKey, v1PostingUnpaidLegalProductListRequest: v1PostingUnpaidLegalProductListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список отправлений + */ + postingFbsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbsList().'); + } + if (requestParameters['postingV4PostingFbsListRequest'] == null) { + throw new runtime.RequiredError('postingV4PostingFbsListRequest', 'Required parameter "postingV4PostingFbsListRequest" was null or undefined when calling postingFbsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/posting/fbs/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingV4PostingFbsListRequestToJSON)(requestParameters['postingV4PostingFbsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingV4PostingFbsListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список отправлений + */ + postingFbsList(clientId, apiKey, postingV4PostingFbsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbsListRaw({ clientId: clientId, apiKey: apiKey, postingV4PostingFbsListRequest: postingV4PostingFbsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации; - `acceptance_in_progress` — идёт приёмка; - `awaiting_approve` — ожидает подтверждения; - `awaiting_packaging` — ожидает упаковки; - `awaiting_deliver` — ожидает отгрузки; - `arbitration` — арбитраж; - `client_arbitration` — клиентский арбитраж доставки; - `delivering` — доставляется; - `driver_pickup` — у водителя; - `cancelled` — отменено; - `not_accepted` — не принято на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список необработанных отправлений + */ + postingFbsUnfulfilledListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbsUnfulfilledList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbsUnfulfilledList().'); + } + if (requestParameters['postingV4PostingFbsUnfulfilledListRequest'] == null) { + throw new runtime.RequiredError('postingV4PostingFbsUnfulfilledListRequest', 'Required parameter "postingV4PostingFbsUnfulfilledListRequest" was null or undefined when calling postingFbsUnfulfilledList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/posting/fbs/unfulfilled/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PostingV4PostingFbsUnfulfilledListRequestToJSON)(requestParameters['postingV4PostingFbsUnfulfilledListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostingV4PostingFbsUnfulfilledListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации; - `acceptance_in_progress` — идёт приёмка; - `awaiting_approve` — ожидает подтверждения; - `awaiting_packaging` — ожидает упаковки; - `awaiting_deliver` — ожидает отгрузки; - `arbitration` — арбитраж; - `client_arbitration` — клиентский арбитраж доставки; - `delivering` — доставляется; - `driver_pickup` — у водителя; - `cancelled` — отменено; - `not_accepted` — не принято на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список необработанных отправлений + */ + postingFbsUnfulfilledList(clientId, apiKey, postingV4PostingFbsUnfulfilledListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbsUnfulfilledListRaw({ clientId: clientId, apiKey: apiKey, postingV4PostingFbsUnfulfilledListRequest: postingV4PostingFbsUnfulfilledListRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.FBS = FBS; diff --git a/dist/apis/FBSWarehouseSetup.d.ts b/dist/apis/FBSWarehouseSetup.d.ts new file mode 100644 index 0000000..9a8d3e5 --- /dev/null +++ b/dist/apis/FBSWarehouseSetup.d.ts @@ -0,0 +1,242 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1CreateWarehouseFBSRequest, V1CreateWarehouseFBSResponse, V1ListDropOffPointsForCreateFBSWarehouseRequest, V1ListDropOffPointsForCreateFBSWarehouseResponse, V1ListDropOffPointsForUpdateFBSWarehouseRequest, V1ListDropOffPointsForUpdateFBSWarehouseResponse, V1UpdateWarehouseFBSFirstMileRequest, V1UpdateWarehouseFBSFirstMileResponse, V1UpdateWarehouseFBSRequest, V1UpdateWarehouseFBSResponse, V1WarehouseFBSCreateReturnPointListRequest, V1WarehouseFBSCreateReturnPointListResponse, V1WarehouseFBSReturnMileInfoRequest, V1WarehouseFBSReturnMileInfoResponse, V1WarehouseFBSUpdateReturnPointListRequest, V1WarehouseFBSUpdateReturnPointListResponse, V1WarehouseFbsCreateDropOffTimeslotListRequest, V1WarehouseFbsCreateDropOffTimeslotListResponse, V1WarehouseFbsCreatePickUpTimeslotListRequest, V1WarehouseFbsCreatePickUpTimeslotListResponse, V1WarehouseFbsPickUpCourierCancelRequest, V1WarehouseFbsPickUpCourierCreateRequest, V1WarehouseFbsPickUpHistoryListRequest, V1WarehouseFbsPickUpHistoryListResponse, V1WarehouseFbsPickUpPlanningListResponse, V1WarehouseFbsReturnMileCheckRequest, V1WarehouseFbsReturnMileCheckResponse, V1WarehouseFbsUpdateDropOffTimeslotListRequest, V1WarehouseFbsUpdateDropOffTimeslotListResponse, V1WarehouseFbsUpdatePickUpTimeslotListRequest, V1WarehouseFbsUpdatePickUpTimeslotListResponse } from '../models/index'; +export interface UpdateWarehouseFBSRequest { + clientId: string; + apiKey: string; + v1UpdateWarehouseFBSRequest?: V1UpdateWarehouseFBSRequest; +} +export interface UpdateWarehouseFBSFirstMileRequest { + clientId: string; + apiKey: string; + v1UpdateWarehouseFBSFirstMileRequest?: V1UpdateWarehouseFBSFirstMileRequest; +} +export interface WarehouseAPICreateWarehouseFBSRequest { + v1CreateWarehouseFBSRequest?: V1CreateWarehouseFBSRequest; +} +export interface WarehouseAPIListDropOffPointsForCreateFBSWarehouseRequest { + v1ListDropOffPointsForCreateFBSWarehouseRequest?: V1ListDropOffPointsForCreateFBSWarehouseRequest; +} +export interface WarehouseAPIListDropOffPointsForUpdateFBSWarehouseRequest { + v1ListDropOffPointsForUpdateFBSWarehouseRequest?: V1ListDropOffPointsForUpdateFBSWarehouseRequest; +} +export interface WarehouseFBSCreateReturnPointListRequest { + clientId: string; + apiKey: string; + v1WarehouseFBSCreateReturnPointListRequest?: V1WarehouseFBSCreateReturnPointListRequest; +} +export interface WarehouseFBSReturnMileInfoRequest { + clientId: string; + apiKey: string; + v1WarehouseFBSReturnMileInfoRequest?: V1WarehouseFBSReturnMileInfoRequest; +} +export interface WarehouseFBSUpdateReturnPointListRequest { + clientId: string; + apiKey: string; + v1WarehouseFBSUpdateReturnPointListRequest?: V1WarehouseFBSUpdateReturnPointListRequest; +} +export interface WarehouseFbsCreateDropOffTimeslotListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsCreateDropOffTimeslotListRequest?: V1WarehouseFbsCreateDropOffTimeslotListRequest; +} +export interface WarehouseFbsCreatePickUpTimeslotListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsCreatePickUpTimeslotListRequest?: V1WarehouseFbsCreatePickUpTimeslotListRequest; +} +export interface WarehouseFbsPickUpCourierCancelRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsPickUpCourierCancelRequest: V1WarehouseFbsPickUpCourierCancelRequest; +} +export interface WarehouseFbsPickUpCourierCreateRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsPickUpCourierCreateRequest: V1WarehouseFbsPickUpCourierCreateRequest; +} +export interface WarehouseFbsPickUpHistoryListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsPickUpHistoryListRequest: V1WarehouseFbsPickUpHistoryListRequest; +} +export interface WarehouseFbsPickUpPlanningListRequest { + clientId: string; + apiKey: string; +} +export interface WarehouseFbsReturnMileCheckRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsReturnMileCheckRequest?: V1WarehouseFbsReturnMileCheckRequest; +} +export interface WarehouseFbsUpdateDropOffTimeslotListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsUpdateDropOffTimeslotListRequest?: V1WarehouseFbsUpdateDropOffTimeslotListRequest; +} +export interface WarehouseFbsUpdatePickUpTimeslotListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsUpdatePickUpTimeslotListRequest?: V1WarehouseFbsUpdatePickUpTimeslotListRequest; +} +/** + * + */ +export declare class FBSWarehouseSetup extends runtime.BaseAPI { + /** + * Обновить склад + */ + updateWarehouseFBSRaw(requestParameters: UpdateWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить склад + */ + updateWarehouseFBS(clientId: string, apiKey: string, v1UpdateWarehouseFBSRequest?: V1UpdateWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить первую милю + */ + updateWarehouseFBSFirstMileRaw(requestParameters: UpdateWarehouseFBSFirstMileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить первую милю + */ + updateWarehouseFBSFirstMile(clientId: string, apiKey: string, v1UpdateWarehouseFBSFirstMileRequest?: V1UpdateWarehouseFBSFirstMileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если создаёте склад с доставкой в drop-off пункт, используйте метод [/v1/warehouse/fbs/create/drop-off/list](#operation/WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse), чтобы получить точки. + * Создать склад + */ + warehouseAPICreateWarehouseFBSRaw(requestParameters: WarehouseAPICreateWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если создаёте склад с доставкой в drop-off пункт, используйте метод [/v1/warehouse/fbs/create/drop-off/list](#operation/WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse), чтобы получить точки. + * Создать склад + */ + warehouseAPICreateWarehouseFBS(v1CreateWarehouseFBSRequest?: V1CreateWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список drop-off пунктов для создания склада + */ + warehouseAPIListDropOffPointsForCreateFBSWarehouseRaw(requestParameters: WarehouseAPIListDropOffPointsForCreateFBSWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список drop-off пунктов для создания склада + */ + warehouseAPIListDropOffPointsForCreateFBSWarehouse(v1ListDropOffPointsForCreateFBSWarehouseRequest?: V1ListDropOffPointsForCreateFBSWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список drop-off пунктов для изменения информации склада + */ + warehouseAPIListDropOffPointsForUpdateFBSWarehouseRaw(requestParameters: WarehouseAPIListDropOffPointsForUpdateFBSWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список drop-off пунктов для изменения информации склада + */ + warehouseAPIListDropOffPointsForUpdateFBSWarehouse(v1ListDropOffPointsForUpdateFBSWarehouseRequest?: V1ListDropOffPointsForUpdateFBSWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список пунктов возврата для создания склада + */ + warehouseFBSCreateReturnPointListRaw(requestParameters: WarehouseFBSCreateReturnPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список пунктов возврата для создания склада + */ + warehouseFBSCreateReturnPointList(clientId: string, apiKey: string, v1WarehouseFBSCreateReturnPointListRequest?: V1WarehouseFBSCreateReturnPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о возвратной миле + */ + warehouseFBSReturnMileInfoRaw(requestParameters: WarehouseFBSReturnMileInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о возвратной миле + */ + warehouseFBSReturnMileInfo(clientId: string, apiKey: string, v1WarehouseFBSReturnMileInfoRequest?: V1WarehouseFBSReturnMileInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список пунктов возврата для обновления склада + */ + warehouseFBSUpdateReturnPointListRaw(requestParameters: WarehouseFBSUpdateReturnPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список пунктов возврата для обновления склада + */ + warehouseFBSUpdateReturnPointList(clientId: string, apiKey: string, v1WarehouseFBSUpdateReturnPointListRequest?: V1WarehouseFBSUpdateReturnPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список таймслотов для создания склада с отгрузкой drop-off + */ + warehouseFbsCreateDropOffTimeslotListRaw(requestParameters: WarehouseFbsCreateDropOffTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список таймслотов для создания склада с отгрузкой drop-off + */ + warehouseFbsCreateDropOffTimeslotList(clientId: string, apiKey: string, v1WarehouseFbsCreateDropOffTimeslotListRequest?: V1WarehouseFbsCreateDropOffTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список таймслотов для создания склада с отгрузкой pick-up + */ + warehouseFbsCreatePickUpTimeslotListRaw(requestParameters: WarehouseFbsCreatePickUpTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список таймслотов для создания склада с отгрузкой pick-up + */ + warehouseFbsCreatePickUpTimeslotList(clientId: string, apiKey: string, v1WarehouseFbsCreatePickUpTimeslotListRequest?: V1WarehouseFbsCreatePickUpTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет отменить запланированный приезд курьера. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Отменить вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCancelRaw(requestParameters: WarehouseFbsPickUpCourierCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет отменить запланированный приезд курьера. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Отменить вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCancel(clientId: string, apiKey: string, v1WarehouseFbsPickUpCourierCancelRequest: V1WarehouseFbsPickUpCourierCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет запланировать приезд курьера для отгрузки ему отправлений. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Создать вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCreateRaw(requestParameters: WarehouseFbsPickUpCourierCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет запланировать приезд курьера для отгрузки ему отправлений. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Создать вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCreate(clientId: string, apiKey: string, v1WarehouseFbsPickUpCourierCreateRequest: V1WarehouseFbsPickUpCourierCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее об отгрузках курьеру в Базе знаний продавца](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить историю отгрузок курьерам + */ + warehouseFbsPickUpHistoryListRaw(requestParameters: WarehouseFbsPickUpHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее об отгрузках курьеру в Базе знаний продавца](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить историю отгрузок курьерам + */ + warehouseFbsPickUpHistoryList(clientId: string, apiKey: string, v1WarehouseFbsPickUpHistoryListRequest: V1WarehouseFbsPickUpHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Чтобы создать отгрузку, используйте метод [/v1/warehouse/fbs/pickup/courier/create](#operation/WarehouseFbsPickUpCourierCreate). [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить список складов для планирования отгрузок курьеру + */ + warehouseFbsPickUpPlanningListRaw(requestParameters: WarehouseFbsPickUpPlanningListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Чтобы создать отгрузку, используйте метод [/v1/warehouse/fbs/pickup/courier/create](#operation/WarehouseFbsPickUpCourierCreate). [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить список складов для планирования отгрузок курьеру + */ + warehouseFbsPickUpPlanningList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Проверить необходимость установки возвратной мили на склад + */ + warehouseFbsReturnMileCheckRaw(requestParameters: WarehouseFbsReturnMileCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Проверить необходимость установки возвратной мили на склад + */ + warehouseFbsReturnMileCheck(clientId: string, apiKey: string, v1WarehouseFbsReturnMileCheckRequest?: V1WarehouseFbsReturnMileCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список таймслотов для обновления склада с отгрузкой drop-off + */ + warehouseFbsUpdateDropOffTimeslotListRaw(requestParameters: WarehouseFbsUpdateDropOffTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список таймслотов для обновления склада с отгрузкой drop-off + */ + warehouseFbsUpdateDropOffTimeslotList(clientId: string, apiKey: string, v1WarehouseFbsUpdateDropOffTimeslotListRequest?: V1WarehouseFbsUpdateDropOffTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список таймслотов для обновления склада с отгрузкой pick-up + */ + warehouseFbsUpdatePickUpTimeslotListRaw(requestParameters: WarehouseFbsUpdatePickUpTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список таймслотов для обновления склада с отгрузкой pick-up + */ + warehouseFbsUpdatePickUpTimeslotList(clientId: string, apiKey: string, v1WarehouseFbsUpdatePickUpTimeslotListRequest?: V1WarehouseFbsUpdatePickUpTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FBSWarehouseSetup.js b/dist/apis/FBSWarehouseSetup.js new file mode 100644 index 0000000..e945d12 --- /dev/null +++ b/dist/apis/FBSWarehouseSetup.js @@ -0,0 +1,675 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FBSWarehouseSetup = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FBSWarehouseSetup extends runtime.BaseAPI { + /** + * Обновить склад + */ + updateWarehouseFBSRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling updateWarehouseFBS().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling updateWarehouseFBS().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1UpdateWarehouseFBSRequestToJSON)(requestParameters['v1UpdateWarehouseFBSRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1UpdateWarehouseFBSResponseFromJSON)(jsonValue)); + }); + } + /** + * Обновить склад + */ + updateWarehouseFBS(clientId, apiKey, v1UpdateWarehouseFBSRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateWarehouseFBSRaw({ clientId: clientId, apiKey: apiKey, v1UpdateWarehouseFBSRequest: v1UpdateWarehouseFBSRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Обновить первую милю + */ + updateWarehouseFBSFirstMileRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling updateWarehouseFBSFirstMile().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling updateWarehouseFBSFirstMile().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/first-mile/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1UpdateWarehouseFBSFirstMileRequestToJSON)(requestParameters['v1UpdateWarehouseFBSFirstMileRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1UpdateWarehouseFBSFirstMileResponseFromJSON)(jsonValue)); + }); + } + /** + * Обновить первую милю + */ + updateWarehouseFBSFirstMile(clientId, apiKey, v1UpdateWarehouseFBSFirstMileRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateWarehouseFBSFirstMileRaw({ clientId: clientId, apiKey: apiKey, v1UpdateWarehouseFBSFirstMileRequest: v1UpdateWarehouseFBSFirstMileRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если создаёте склад с доставкой в drop-off пункт, используйте метод [/v1/warehouse/fbs/create/drop-off/list](#operation/WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse), чтобы получить точки. + * Создать склад + */ + warehouseAPICreateWarehouseFBSRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/warehouse/fbs/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreateWarehouseFBSRequestToJSON)(requestParameters['v1CreateWarehouseFBSRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CreateWarehouseFBSResponseFromJSON)(jsonValue)); + }); + } + /** + * Если создаёте склад с доставкой в drop-off пункт, используйте метод [/v1/warehouse/fbs/create/drop-off/list](#operation/WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse), чтобы получить точки. + * Создать склад + */ + warehouseAPICreateWarehouseFBS(v1CreateWarehouseFBSRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPICreateWarehouseFBSRaw({ v1CreateWarehouseFBSRequest: v1CreateWarehouseFBSRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список drop-off пунктов для создания склада + */ + warehouseAPIListDropOffPointsForCreateFBSWarehouseRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/warehouse/fbs/create/drop-off/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON)(requestParameters['v1ListDropOffPointsForCreateFBSWarehouseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список drop-off пунктов для создания склада + */ + warehouseAPIListDropOffPointsForCreateFBSWarehouse(v1ListDropOffPointsForCreateFBSWarehouseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIListDropOffPointsForCreateFBSWarehouseRaw({ v1ListDropOffPointsForCreateFBSWarehouseRequest: v1ListDropOffPointsForCreateFBSWarehouseRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список drop-off пунктов для изменения информации склада + */ + warehouseAPIListDropOffPointsForUpdateFBSWarehouseRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/warehouse/fbs/update/drop-off/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON)(requestParameters['v1ListDropOffPointsForUpdateFBSWarehouseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список drop-off пунктов для изменения информации склада + */ + warehouseAPIListDropOffPointsForUpdateFBSWarehouse(v1ListDropOffPointsForUpdateFBSWarehouseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIListDropOffPointsForUpdateFBSWarehouseRaw({ v1ListDropOffPointsForUpdateFBSWarehouseRequest: v1ListDropOffPointsForUpdateFBSWarehouseRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список пунктов возврата для создания склада + */ + warehouseFBSCreateReturnPointListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFBSCreateReturnPointList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFBSCreateReturnPointList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/create/return-point/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFBSCreateReturnPointListRequestToJSON)(requestParameters['v1WarehouseFBSCreateReturnPointListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFBSCreateReturnPointListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список пунктов возврата для создания склада + */ + warehouseFBSCreateReturnPointList(clientId, apiKey, v1WarehouseFBSCreateReturnPointListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFBSCreateReturnPointListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFBSCreateReturnPointListRequest: v1WarehouseFBSCreateReturnPointListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о возвратной миле + */ + warehouseFBSReturnMileInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFBSReturnMileInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFBSReturnMileInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/return-mile/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFBSReturnMileInfoRequestToJSON)(requestParameters['v1WarehouseFBSReturnMileInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFBSReturnMileInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить информацию о возвратной миле + */ + warehouseFBSReturnMileInfo(clientId, apiKey, v1WarehouseFBSReturnMileInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFBSReturnMileInfoRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFBSReturnMileInfoRequest: v1WarehouseFBSReturnMileInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список пунктов возврата для обновления склада + */ + warehouseFBSUpdateReturnPointListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFBSUpdateReturnPointList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFBSUpdateReturnPointList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/update/return-point/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFBSUpdateReturnPointListRequestToJSON)(requestParameters['v1WarehouseFBSUpdateReturnPointListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFBSUpdateReturnPointListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список пунктов возврата для обновления склада + */ + warehouseFBSUpdateReturnPointList(clientId, apiKey, v1WarehouseFBSUpdateReturnPointListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFBSUpdateReturnPointListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFBSUpdateReturnPointListRequest: v1WarehouseFBSUpdateReturnPointListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список таймслотов для создания склада с отгрузкой drop-off + */ + warehouseFbsCreateDropOffTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsCreateDropOffTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsCreateDropOffTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/create/drop-off/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON)(requestParameters['v1WarehouseFbsCreateDropOffTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список таймслотов для создания склада с отгрузкой drop-off + */ + warehouseFbsCreateDropOffTimeslotList(clientId, apiKey, v1WarehouseFbsCreateDropOffTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsCreateDropOffTimeslotListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsCreateDropOffTimeslotListRequest: v1WarehouseFbsCreateDropOffTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список таймслотов для создания склада с отгрузкой pick-up + */ + warehouseFbsCreatePickUpTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsCreatePickUpTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsCreatePickUpTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/create/pick-up/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON)(requestParameters['v1WarehouseFbsCreatePickUpTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список таймслотов для создания склада с отгрузкой pick-up + */ + warehouseFbsCreatePickUpTimeslotList(clientId, apiKey, v1WarehouseFbsCreatePickUpTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsCreatePickUpTimeslotListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsCreatePickUpTimeslotListRequest: v1WarehouseFbsCreatePickUpTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод позволяет отменить запланированный приезд курьера. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Отменить вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsPickUpCourierCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsPickUpCourierCancel().'); + } + if (requestParameters['v1WarehouseFbsPickUpCourierCancelRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseFbsPickUpCourierCancelRequest', 'Required parameter "v1WarehouseFbsPickUpCourierCancelRequest" was null or undefined when calling warehouseFbsPickUpCourierCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/pickup/courier/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFbsPickUpCourierCancelRequestToJSON)(requestParameters['v1WarehouseFbsPickUpCourierCancelRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод позволяет отменить запланированный приезд курьера. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Отменить вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCancel(clientId, apiKey, v1WarehouseFbsPickUpCourierCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.warehouseFbsPickUpCourierCancelRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsPickUpCourierCancelRequest: v1WarehouseFbsPickUpCourierCancelRequest }, initOverrides); + }); + } + /** + * Метод позволяет запланировать приезд курьера для отгрузки ему отправлений. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Создать вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsPickUpCourierCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsPickUpCourierCreate().'); + } + if (requestParameters['v1WarehouseFbsPickUpCourierCreateRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseFbsPickUpCourierCreateRequest', 'Required parameter "v1WarehouseFbsPickUpCourierCreateRequest" was null or undefined when calling warehouseFbsPickUpCourierCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/pickup/courier/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFbsPickUpCourierCreateRequestToJSON)(requestParameters['v1WarehouseFbsPickUpCourierCreateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод позволяет запланировать приезд курьера для отгрузки ему отправлений. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Создать вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCreate(clientId, apiKey, v1WarehouseFbsPickUpCourierCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.warehouseFbsPickUpCourierCreateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsPickUpCourierCreateRequest: v1WarehouseFbsPickUpCourierCreateRequest }, initOverrides); + }); + } + /** + * [Подробнее об отгрузках курьеру в Базе знаний продавца](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить историю отгрузок курьерам + */ + warehouseFbsPickUpHistoryListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsPickUpHistoryList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsPickUpHistoryList().'); + } + if (requestParameters['v1WarehouseFbsPickUpHistoryListRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseFbsPickUpHistoryListRequest', 'Required parameter "v1WarehouseFbsPickUpHistoryListRequest" was null or undefined when calling warehouseFbsPickUpHistoryList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/pickup/history/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFbsPickUpHistoryListRequestToJSON)(requestParameters['v1WarehouseFbsPickUpHistoryListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFbsPickUpHistoryListResponseFromJSON)(jsonValue)); + }); + } + /** + * [Подробнее об отгрузках курьеру в Базе знаний продавца](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить историю отгрузок курьерам + */ + warehouseFbsPickUpHistoryList(clientId, apiKey, v1WarehouseFbsPickUpHistoryListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsPickUpHistoryListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsPickUpHistoryListRequest: v1WarehouseFbsPickUpHistoryListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Чтобы создать отгрузку, используйте метод [/v1/warehouse/fbs/pickup/courier/create](#operation/WarehouseFbsPickUpCourierCreate). [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить список складов для планирования отгрузок курьеру + */ + warehouseFbsPickUpPlanningListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsPickUpPlanningList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsPickUpPlanningList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/pickup/planning/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFbsPickUpPlanningListResponseFromJSON)(jsonValue)); + }); + } + /** + * Чтобы создать отгрузку, используйте метод [/v1/warehouse/fbs/pickup/courier/create](#operation/WarehouseFbsPickUpCourierCreate). [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить список складов для планирования отгрузок курьеру + */ + warehouseFbsPickUpPlanningList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsPickUpPlanningListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Проверить необходимость установки возвратной мили на склад + */ + warehouseFbsReturnMileCheckRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsReturnMileCheck().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsReturnMileCheck().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/return-mile/check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFbsReturnMileCheckRequestToJSON)(requestParameters['v1WarehouseFbsReturnMileCheckRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFbsReturnMileCheckResponseFromJSON)(jsonValue)); + }); + } + /** + * Проверить необходимость установки возвратной мили на склад + */ + warehouseFbsReturnMileCheck(clientId, apiKey, v1WarehouseFbsReturnMileCheckRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsReturnMileCheckRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsReturnMileCheckRequest: v1WarehouseFbsReturnMileCheckRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список таймслотов для обновления склада с отгрузкой drop-off + */ + warehouseFbsUpdateDropOffTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsUpdateDropOffTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsUpdateDropOffTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/update/drop-off/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON)(requestParameters['v1WarehouseFbsUpdateDropOffTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список таймслотов для обновления склада с отгрузкой drop-off + */ + warehouseFbsUpdateDropOffTimeslotList(clientId, apiKey, v1WarehouseFbsUpdateDropOffTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsUpdateDropOffTimeslotListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsUpdateDropOffTimeslotListRequest: v1WarehouseFbsUpdateDropOffTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список таймслотов для обновления склада с отгрузкой pick-up + */ + warehouseFbsUpdatePickUpTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsUpdatePickUpTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsUpdatePickUpTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/update/pick-up/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON)(requestParameters['v1WarehouseFbsUpdatePickUpTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список таймслотов для обновления склада с отгрузкой pick-up + */ + warehouseFbsUpdatePickUpTimeslotList(clientId, apiKey, v1WarehouseFbsUpdatePickUpTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsUpdatePickUpTimeslotListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsUpdatePickUpTimeslotListRequest: v1WarehouseFbsUpdatePickUpTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.FBSWarehouseSetup = FBSWarehouseSetup; diff --git a/dist/apis/FBSrFBSMarks.d.ts b/dist/apis/FBSrFBSMarks.d.ts new file mode 100644 index 0000000..521dee8 --- /dev/null +++ b/dist/apis/FBSrFBSMarks.d.ts @@ -0,0 +1,123 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Fbsv4FbsPostingShipV4Request, Fbsv4FbsPostingShipV4Response, V1FbsPostingProductExemplarUpdateRequest, V4FbsPostingShipPackageV4Request, V4FbsPostingShipPackageV4Response, V5FbsPostingProductExemplarStatusV5Request, V5FbsPostingProductExemplarStatusV5Response, V5FbsPostingProductExemplarValidateV5Request, V5FbsPostingProductExemplarValidateV5Response, V6FbsPostingProductExemplarCreateOrGetV6Request, V6FbsPostingProductExemplarCreateOrGetV6Response, V6FbsPostingProductExemplarSetV6Request } from '../models/index'; +export interface PostingAPIFbsPostingProductExemplarCreateOrGetV6Request { + clientId: string; + apiKey: string; + v6FbsPostingProductExemplarCreateOrGetV6Request: V6FbsPostingProductExemplarCreateOrGetV6Request; +} +export interface PostingAPIFbsPostingProductExemplarSetV6Request { + clientId: string; + apiKey: string; + v6FbsPostingProductExemplarSetV6Request: V6FbsPostingProductExemplarSetV6Request; +} +export interface PostingAPIFbsPostingProductExemplarStatusV5Request { + clientId: string; + apiKey: string; + v5FbsPostingProductExemplarStatusV5Request: V5FbsPostingProductExemplarStatusV5Request; +} +export interface PostingAPIFbsPostingProductExemplarUpdateRequest { + clientId: string; + apiKey: string; + v1FbsPostingProductExemplarUpdateRequest: V1FbsPostingProductExemplarUpdateRequest; +} +export interface PostingAPIFbsPostingProductExemplarValidateV5Request { + clientId: string; + apiKey: string; + v5FbsPostingProductExemplarValidateV5Request: V5FbsPostingProductExemplarValidateV5Request; +} +export interface PostingAPIShipFbsPostingPackageRequest { + clientId: string; + apiKey: string; + v4FbsPostingShipPackageV4Request: V4FbsPostingShipPackageV4Request; +} +export interface PostingAPIShipFbsPostingV4Request { + clientId: string; + apiKey: string; + fbsv4FbsPostingShipV4Request: Fbsv4FbsPostingShipV4Request; +} +/** + * + */ +export declare class FBSrFBSMarks extends runtime.BaseAPI { + /** + * Метод для получения информации по экземплярам товаров из отправления, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Используйте метод для получения `exemplar_id`. + * Получить данные созданных экземпляров + */ + postingAPIFbsPostingProductExemplarCreateOrGetV6Raw(requestParameters: PostingAPIFbsPostingProductExemplarCreateOrGetV6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации по экземплярам товаров из отправления, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Используйте метод для получения `exemplar_id`. + * Получить данные созданных экземпляров + */ + postingAPIFbsPostingProductExemplarCreateOrGetV6(clientId: string, apiKey: string, v6FbsPostingProductExemplarCreateOrGetV6Request: V6FbsPostingProductExemplarCreateOrGetV6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Асинхронный метод: - для проверки наличия экземпляров в обороте в системе «Честный ЗНАК»; - для сохранения данных экземпляров. Чтобы получить результаты проверок, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). Для получения данных о созданных экземплярах, используйте метод [/v6/fbs/posting/product/exemplar/create-or-get](#operation/PostingAPI_FbsPostingProductExemplarCreateOrGetV6). Если у вас несколько одинаковых товаров в отправлении, укажите один `product_id` и массив `exemplars` для каждого товара из отправления. Всегда передавайте полный набор данных по экземплярам и продуктам. Например, в вашей системе 10 экземпляров. Вы передали их для проверки и сохранения. Потом добавили в своей системе ещё 60 экземпляров. При повторной передаче экземпляров для проверки и сохранения укажите все экземпляры: и старые, и только что добавленные. Код ответа 200 не гарантирует, что данные об экземплярах приняты. Он указывает, что создана задача для добавления информации. Чтобы проверить статус задачи, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). + * Проверить и сохранить данные экземпляров + */ + postingAPIFbsPostingProductExemplarSetV6Raw(requestParameters: PostingAPIFbsPostingProductExemplarSetV6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Асинхронный метод: - для проверки наличия экземпляров в обороте в системе «Честный ЗНАК»; - для сохранения данных экземпляров. Чтобы получить результаты проверок, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). Для получения данных о созданных экземплярах, используйте метод [/v6/fbs/posting/product/exemplar/create-or-get](#operation/PostingAPI_FbsPostingProductExemplarCreateOrGetV6). Если у вас несколько одинаковых товаров в отправлении, укажите один `product_id` и массив `exemplars` для каждого товара из отправления. Всегда передавайте полный набор данных по экземплярам и продуктам. Например, в вашей системе 10 экземпляров. Вы передали их для проверки и сохранения. Потом добавили в своей системе ещё 60 экземпляров. При повторной передаче экземпляров для проверки и сохранения укажите все экземпляры: и старые, и только что добавленные. Код ответа 200 не гарантирует, что данные об экземплярах приняты. Он указывает, что создана задача для добавления информации. Чтобы проверить статус задачи, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). + * Проверить и сохранить данные экземпляров + */ + postingAPIFbsPostingProductExemplarSetV6(clientId: string, apiKey: string, v6FbsPostingProductExemplarSetV6Request: V6FbsPostingProductExemplarSetV6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения статусов добавления экземпляров, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Также возвращает данные по этим экземплярам. + * Получить статус добавления экземпляров + */ + postingAPIFbsPostingProductExemplarStatusV5Raw(requestParameters: PostingAPIFbsPostingProductExemplarStatusV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения статусов добавления экземпляров, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Также возвращает данные по этим экземплярам. + * Получить статус добавления экземпляров + */ + postingAPIFbsPostingProductExemplarStatusV5(clientId: string, apiKey: string, v5FbsPostingProductExemplarStatusV5Request: V5FbsPostingProductExemplarStatusV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод после передачи информации по экземплярам методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6), чтобы сохранить обновлённые данные по экземплярам для отправлений в статусе «Ожидает отгрузки». + * Обновить данные экземпляров + */ + postingAPIFbsPostingProductExemplarUpdateRaw(requestParameters: PostingAPIFbsPostingProductExemplarUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод после передачи информации по экземплярам методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6), чтобы сохранить обновлённые данные по экземплярам для отправлений в статусе «Ожидает отгрузки». + * Обновить данные экземпляров + */ + postingAPIFbsPostingProductExemplarUpdate(clientId: string, apiKey: string, v1FbsPostingProductExemplarUpdateRequest: V1FbsPostingProductExemplarUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для проверки кодов на соответствие требованиям системы «Честный ЗНАК» по количеству и составу символов, а также других маркировок. Если у вас нет номера грузовой таможенной декларации (ГТД), вы можете его не указывать. + * Валидация кодов маркировки + */ + postingAPIFbsPostingProductExemplarValidateV5Raw(requestParameters: PostingAPIFbsPostingProductExemplarValidateV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для проверки кодов на соответствие требованиям системы «Честный ЗНАК» по количеству и составу символов, а также других маркировок. Если у вас нет номера грузовой таможенной декларации (ГТД), вы можете его не указывать. + * Валидация кодов маркировки + */ + postingAPIFbsPostingProductExemplarValidateV5(clientId: string, apiKey: string, v5FbsPostingProductExemplarValidateV5Request: V5FbsPostingProductExemplarValidateV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если в запросе передать часть товаров из отправления, метод разделит первичное отправление на две части. В первичном несобранном отправлении останется часть товаров, которую не передали в запросе. По умолчанию статус созданных отправлений `awaiting_packaging` — ожидает сборки. Статус изначального отправления изменится только после изменения статуса отправлений, на которые он разделился. + * Частичная сборка отправления (версия 4) + */ + postingAPIShipFbsPostingPackageRaw(requestParameters: PostingAPIShipFbsPostingPackageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если в запросе передать часть товаров из отправления, метод разделит первичное отправление на две части. В первичном несобранном отправлении останется часть товаров, которую не передали в запросе. По умолчанию статус созданных отправлений `awaiting_packaging` — ожидает сборки. Статус изначального отправления изменится только после изменения статуса отправлений, на которые он разделился. + * Частичная сборка отправления (версия 4) + */ + postingAPIShipFbsPostingPackage(clientId: string, apiKey: string, v4FbsPostingShipPackageV4Request: V4FbsPostingShipPackageV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Делит заказ на отправления и переводит его в статус `awaiting_deliver`. Каждый элемент в `packages` может содержать несколько элементов `products` или отправлений. Каждый элемент в `products` — это товар, включённый в данное отправление. Разделить заказ нужно, если: - товары не помещаются в одну упаковку, - товары нельзя сложить в одну упаковку. Чтобы разделить заказ, передайте в массиве `packages` несколько объектов. Пример запроса, когда заказ разделять не нужно: 2 товара будут в одном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 2 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Пример запроса, когда заказ нужно разделить: каждый товар будет в отдельном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] }, { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Чтобы внести информацию по экземплярам, используйте метод [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * Собрать заказ (версия 4) + */ + postingAPIShipFbsPostingV4Raw(requestParameters: PostingAPIShipFbsPostingV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Делит заказ на отправления и переводит его в статус `awaiting_deliver`. Каждый элемент в `packages` может содержать несколько элементов `products` или отправлений. Каждый элемент в `products` — это товар, включённый в данное отправление. Разделить заказ нужно, если: - товары не помещаются в одну упаковку, - товары нельзя сложить в одну упаковку. Чтобы разделить заказ, передайте в массиве `packages` несколько объектов. Пример запроса, когда заказ разделять не нужно: 2 товара будут в одном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 2 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Пример запроса, когда заказ нужно разделить: каждый товар будет в отдельном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] }, { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Чтобы внести информацию по экземплярам, используйте метод [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * Собрать заказ (версия 4) + */ + postingAPIShipFbsPostingV4(clientId: string, apiKey: string, fbsv4FbsPostingShipV4Request: Fbsv4FbsPostingShipV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FBSrFBSMarks.js b/dist/apis/FBSrFBSMarks.js new file mode 100644 index 0000000..ee1d11f --- /dev/null +++ b/dist/apis/FBSrFBSMarks.js @@ -0,0 +1,339 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FBSrFBSMarks = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FBSrFBSMarks extends runtime.BaseAPI { + /** + * Метод для получения информации по экземплярам товаров из отправления, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Используйте метод для получения `exemplar_id`. + * Получить данные созданных экземпляров + */ + postingAPIFbsPostingProductExemplarCreateOrGetV6Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarCreateOrGetV6().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarCreateOrGetV6().'); + } + if (requestParameters['v6FbsPostingProductExemplarCreateOrGetV6Request'] == null) { + throw new runtime.RequiredError('v6FbsPostingProductExemplarCreateOrGetV6Request', 'Required parameter "v6FbsPostingProductExemplarCreateOrGetV6Request" was null or undefined when calling postingAPIFbsPostingProductExemplarCreateOrGetV6().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v6/fbs/posting/product/exemplar/create-or-get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON)(requestParameters['v6FbsPostingProductExemplarCreateOrGetV6Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения информации по экземплярам товаров из отправления, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Используйте метод для получения `exemplar_id`. + * Получить данные созданных экземпляров + */ + postingAPIFbsPostingProductExemplarCreateOrGetV6(clientId, apiKey, v6FbsPostingProductExemplarCreateOrGetV6Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingProductExemplarCreateOrGetV6Raw({ clientId: clientId, apiKey: apiKey, v6FbsPostingProductExemplarCreateOrGetV6Request: v6FbsPostingProductExemplarCreateOrGetV6Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Асинхронный метод: - для проверки наличия экземпляров в обороте в системе «Честный ЗНАК»; - для сохранения данных экземпляров. Чтобы получить результаты проверок, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). Для получения данных о созданных экземплярах, используйте метод [/v6/fbs/posting/product/exemplar/create-or-get](#operation/PostingAPI_FbsPostingProductExemplarCreateOrGetV6). Если у вас несколько одинаковых товаров в отправлении, укажите один `product_id` и массив `exemplars` для каждого товара из отправления. Всегда передавайте полный набор данных по экземплярам и продуктам. Например, в вашей системе 10 экземпляров. Вы передали их для проверки и сохранения. Потом добавили в своей системе ещё 60 экземпляров. При повторной передаче экземпляров для проверки и сохранения укажите все экземпляры: и старые, и только что добавленные. Код ответа 200 не гарантирует, что данные об экземплярах приняты. Он указывает, что создана задача для добавления информации. Чтобы проверить статус задачи, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). + * Проверить и сохранить данные экземпляров + */ + postingAPIFbsPostingProductExemplarSetV6Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarSetV6().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarSetV6().'); + } + if (requestParameters['v6FbsPostingProductExemplarSetV6Request'] == null) { + throw new runtime.RequiredError('v6FbsPostingProductExemplarSetV6Request', 'Required parameter "v6FbsPostingProductExemplarSetV6Request" was null or undefined when calling postingAPIFbsPostingProductExemplarSetV6().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v6/fbs/posting/product/exemplar/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V6FbsPostingProductExemplarSetV6RequestToJSON)(requestParameters['v6FbsPostingProductExemplarSetV6Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Асинхронный метод: - для проверки наличия экземпляров в обороте в системе «Честный ЗНАК»; - для сохранения данных экземпляров. Чтобы получить результаты проверок, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). Для получения данных о созданных экземплярах, используйте метод [/v6/fbs/posting/product/exemplar/create-or-get](#operation/PostingAPI_FbsPostingProductExemplarCreateOrGetV6). Если у вас несколько одинаковых товаров в отправлении, укажите один `product_id` и массив `exemplars` для каждого товара из отправления. Всегда передавайте полный набор данных по экземплярам и продуктам. Например, в вашей системе 10 экземпляров. Вы передали их для проверки и сохранения. Потом добавили в своей системе ещё 60 экземпляров. При повторной передаче экземпляров для проверки и сохранения укажите все экземпляры: и старые, и только что добавленные. Код ответа 200 не гарантирует, что данные об экземплярах приняты. Он указывает, что создана задача для добавления информации. Чтобы проверить статус задачи, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). + * Проверить и сохранить данные экземпляров + */ + postingAPIFbsPostingProductExemplarSetV6(clientId, apiKey, v6FbsPostingProductExemplarSetV6Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.postingAPIFbsPostingProductExemplarSetV6Raw({ clientId: clientId, apiKey: apiKey, v6FbsPostingProductExemplarSetV6Request: v6FbsPostingProductExemplarSetV6Request }, initOverrides); + }); + } + /** + * Метод для получения статусов добавления экземпляров, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Также возвращает данные по этим экземплярам. + * Получить статус добавления экземпляров + */ + postingAPIFbsPostingProductExemplarStatusV5Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarStatusV5().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarStatusV5().'); + } + if (requestParameters['v5FbsPostingProductExemplarStatusV5Request'] == null) { + throw new runtime.RequiredError('v5FbsPostingProductExemplarStatusV5Request', 'Required parameter "v5FbsPostingProductExemplarStatusV5Request" was null or undefined when calling postingAPIFbsPostingProductExemplarStatusV5().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v5/fbs/posting/product/exemplar/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V5FbsPostingProductExemplarStatusV5RequestToJSON)(requestParameters['v5FbsPostingProductExemplarStatusV5Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V5FbsPostingProductExemplarStatusV5ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения статусов добавления экземпляров, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Также возвращает данные по этим экземплярам. + * Получить статус добавления экземпляров + */ + postingAPIFbsPostingProductExemplarStatusV5(clientId, apiKey, v5FbsPostingProductExemplarStatusV5Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingProductExemplarStatusV5Raw({ clientId: clientId, apiKey: apiKey, v5FbsPostingProductExemplarStatusV5Request: v5FbsPostingProductExemplarStatusV5Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод после передачи информации по экземплярам методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6), чтобы сохранить обновлённые данные по экземплярам для отправлений в статусе «Ожидает отгрузки». + * Обновить данные экземпляров + */ + postingAPIFbsPostingProductExemplarUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarUpdate().'); + } + if (requestParameters['v1FbsPostingProductExemplarUpdateRequest'] == null) { + throw new runtime.RequiredError('v1FbsPostingProductExemplarUpdateRequest', 'Required parameter "v1FbsPostingProductExemplarUpdateRequest" was null or undefined when calling postingAPIFbsPostingProductExemplarUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbs/posting/product/exemplar/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbsPostingProductExemplarUpdateRequestToJSON)(requestParameters['v1FbsPostingProductExemplarUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Используйте метод после передачи информации по экземплярам методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6), чтобы сохранить обновлённые данные по экземплярам для отправлений в статусе «Ожидает отгрузки». + * Обновить данные экземпляров + */ + postingAPIFbsPostingProductExemplarUpdate(clientId, apiKey, v1FbsPostingProductExemplarUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.postingAPIFbsPostingProductExemplarUpdateRaw({ clientId: clientId, apiKey: apiKey, v1FbsPostingProductExemplarUpdateRequest: v1FbsPostingProductExemplarUpdateRequest }, initOverrides); + }); + } + /** + * Метод для проверки кодов на соответствие требованиям системы «Честный ЗНАК» по количеству и составу символов, а также других маркировок. Если у вас нет номера грузовой таможенной декларации (ГТД), вы можете его не указывать. + * Валидация кодов маркировки + */ + postingAPIFbsPostingProductExemplarValidateV5Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarValidateV5().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarValidateV5().'); + } + if (requestParameters['v5FbsPostingProductExemplarValidateV5Request'] == null) { + throw new runtime.RequiredError('v5FbsPostingProductExemplarValidateV5Request', 'Required parameter "v5FbsPostingProductExemplarValidateV5Request" was null or undefined when calling postingAPIFbsPostingProductExemplarValidateV5().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v5/fbs/posting/product/exemplar/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V5FbsPostingProductExemplarValidateV5RequestToJSON)(requestParameters['v5FbsPostingProductExemplarValidateV5Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V5FbsPostingProductExemplarValidateV5ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для проверки кодов на соответствие требованиям системы «Честный ЗНАК» по количеству и составу символов, а также других маркировок. Если у вас нет номера грузовой таможенной декларации (ГТД), вы можете его не указывать. + * Валидация кодов маркировки + */ + postingAPIFbsPostingProductExemplarValidateV5(clientId, apiKey, v5FbsPostingProductExemplarValidateV5Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingProductExemplarValidateV5Raw({ clientId: clientId, apiKey: apiKey, v5FbsPostingProductExemplarValidateV5Request: v5FbsPostingProductExemplarValidateV5Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Если в запросе передать часть товаров из отправления, метод разделит первичное отправление на две части. В первичном несобранном отправлении останется часть товаров, которую не передали в запросе. По умолчанию статус созданных отправлений `awaiting_packaging` — ожидает сборки. Статус изначального отправления изменится только после изменения статуса отправлений, на которые он разделился. + * Частичная сборка отправления (версия 4) + */ + postingAPIShipFbsPostingPackageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIShipFbsPostingPackage().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIShipFbsPostingPackage().'); + } + if (requestParameters['v4FbsPostingShipPackageV4Request'] == null) { + throw new runtime.RequiredError('v4FbsPostingShipPackageV4Request', 'Required parameter "v4FbsPostingShipPackageV4Request" was null or undefined when calling postingAPIShipFbsPostingPackage().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/posting/fbs/ship/package`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V4FbsPostingShipPackageV4RequestToJSON)(requestParameters['v4FbsPostingShipPackageV4Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V4FbsPostingShipPackageV4ResponseFromJSON)(jsonValue)); + }); + } + /** + * Если в запросе передать часть товаров из отправления, метод разделит первичное отправление на две части. В первичном несобранном отправлении останется часть товаров, которую не передали в запросе. По умолчанию статус созданных отправлений `awaiting_packaging` — ожидает сборки. Статус изначального отправления изменится только после изменения статуса отправлений, на которые он разделился. + * Частичная сборка отправления (версия 4) + */ + postingAPIShipFbsPostingPackage(clientId, apiKey, v4FbsPostingShipPackageV4Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIShipFbsPostingPackageRaw({ clientId: clientId, apiKey: apiKey, v4FbsPostingShipPackageV4Request: v4FbsPostingShipPackageV4Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Делит заказ на отправления и переводит его в статус `awaiting_deliver`. Каждый элемент в `packages` может содержать несколько элементов `products` или отправлений. Каждый элемент в `products` — это товар, включённый в данное отправление. Разделить заказ нужно, если: - товары не помещаются в одну упаковку, - товары нельзя сложить в одну упаковку. Чтобы разделить заказ, передайте в массиве `packages` несколько объектов. Пример запроса, когда заказ разделять не нужно: 2 товара будут в одном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 2 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Пример запроса, когда заказ нужно разделить: каждый товар будет в отдельном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] }, { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Чтобы внести информацию по экземплярам, используйте метод [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * Собрать заказ (версия 4) + */ + postingAPIShipFbsPostingV4Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIShipFbsPostingV4().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIShipFbsPostingV4().'); + } + if (requestParameters['fbsv4FbsPostingShipV4Request'] == null) { + throw new runtime.RequiredError('fbsv4FbsPostingShipV4Request', 'Required parameter "fbsv4FbsPostingShipV4Request" was null or undefined when calling postingAPIShipFbsPostingV4().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/posting/fbs/ship`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Fbsv4FbsPostingShipV4RequestToJSON)(requestParameters['fbsv4FbsPostingShipV4Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Fbsv4FbsPostingShipV4ResponseFromJSON)(jsonValue)); + }); + } + /** + * Делит заказ на отправления и переводит его в статус `awaiting_deliver`. Каждый элемент в `packages` может содержать несколько элементов `products` или отправлений. Каждый элемент в `products` — это товар, включённый в данное отправление. Разделить заказ нужно, если: - товары не помещаются в одну упаковку, - товары нельзя сложить в одну упаковку. Чтобы разделить заказ, передайте в массиве `packages` несколько объектов. Пример запроса, когда заказ разделять не нужно: 2 товара будут в одном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 2 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Пример запроса, когда заказ нужно разделить: каждый товар будет в отдельном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] }, { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Чтобы внести информацию по экземплярам, используйте метод [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * Собрать заказ (версия 4) + */ + postingAPIShipFbsPostingV4(clientId, apiKey, fbsv4FbsPostingShipV4Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIShipFbsPostingV4Raw({ clientId: clientId, apiKey: apiKey, fbsv4FbsPostingShipV4Request: fbsv4FbsPostingShipV4Request }, initOverrides); + return yield response.value(); + }); + } +} +exports.FBSrFBSMarks = FBSrFBSMarks; diff --git a/dist/apis/FboPostingAPI.d.ts b/dist/apis/FboPostingAPI.d.ts new file mode 100644 index 0000000..f9d1df5 --- /dev/null +++ b/dist/apis/FboPostingAPI.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1PostingCancelRequest, V1PostingCancelResponse, V1PostingCancelStatusRequest, V1PostingCancelStatusResponse, V1PostingMarksRequest, V1PostingMarksResponse } from '../models/index'; +export interface PostingAPIPostingCancelRequest { + v1PostingCancelRequest: V1PostingCancelRequest; +} +export interface PostingAPIPostingCancelStatusRequest { + v1PostingCancelStatusRequest: V1PostingCancelStatusRequest; +} +export interface PostingAPIPostingMarksRequest { + v1PostingMarksRequest: V1PostingMarksRequest; +} +/** + * + */ +export declare class FboPostingAPI extends runtime.BaseAPI { + /** + * Отменяет отправление из заказа. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-posting](#operation/CancelReasonAPI_CancelReasonListByPosting). + * Отменить отправление из заказа + */ + postingAPIPostingCancelRaw(requestParameters: PostingAPIPostingCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отменяет отправление из заказа. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-posting](#operation/CancelReasonAPI_CancelReasonListByPosting). + * Отменить отправление из заказа + */ + postingAPIPostingCancel(v1PostingCancelRequest: V1PostingCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Проверить статус отмены отправления + */ + postingAPIPostingCancelStatusRaw(requestParameters: PostingAPIPostingCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Проверить статус отмены отправления + */ + postingAPIPostingCancelStatus(v1PostingCancelStatusRequest: V1PostingCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает статусы выдачи экземпляров и коды маркировки «Честный ЗНАК» для каждого отправления. Укажите в чеке и выведите из оборота маркировки экземпляров из параметра `issued_exemplars` в ответе. + * Получить маркировки экземпляров из отправления + */ + postingAPIPostingMarksRaw(requestParameters: PostingAPIPostingMarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает статусы выдачи экземпляров и коды маркировки «Честный ЗНАК» для каждого отправления. Укажите в чеке и выведите из оборота маркировки экземпляров из параметра `issued_exemplars` в ответе. + * Получить маркировки экземпляров из отправления + */ + postingAPIPostingMarks(v1PostingMarksRequest: V1PostingMarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FboPostingAPI.js b/dist/apis/FboPostingAPI.js new file mode 100644 index 0000000..4d1d3f4 --- /dev/null +++ b/dist/apis/FboPostingAPI.js @@ -0,0 +1,127 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FboPostingAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FboPostingAPI extends runtime.BaseAPI { + /** + * Отменяет отправление из заказа. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-posting](#operation/CancelReasonAPI_CancelReasonListByPosting). + * Отменить отправление из заказа + */ + postingAPIPostingCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingCancelRequest'] == null) { + throw new runtime.RequiredError('v1PostingCancelRequest', 'Required parameter "v1PostingCancelRequest" was null or undefined when calling postingAPIPostingCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingCancelRequestToJSON)(requestParameters['v1PostingCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Отменяет отправление из заказа. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-posting](#operation/CancelReasonAPI_CancelReasonListByPosting). + * Отменить отправление из заказа + */ + postingAPIPostingCancel(v1PostingCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingCancelRaw({ v1PostingCancelRequest: v1PostingCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Проверить статус отмены отправления + */ + postingAPIPostingCancelStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingCancelStatusRequest'] == null) { + throw new runtime.RequiredError('v1PostingCancelStatusRequest', 'Required parameter "v1PostingCancelStatusRequest" was null or undefined when calling postingAPIPostingCancelStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/cancel/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingCancelStatusRequestToJSON)(requestParameters['v1PostingCancelStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingCancelStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Проверить статус отмены отправления + */ + postingAPIPostingCancelStatus(v1PostingCancelStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingCancelStatusRaw({ v1PostingCancelStatusRequest: v1PostingCancelStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает статусы выдачи экземпляров и коды маркировки «Честный ЗНАК» для каждого отправления. Укажите в чеке и выведите из оборота маркировки экземпляров из параметра `issued_exemplars` в ответе. + * Получить маркировки экземпляров из отправления + */ + postingAPIPostingMarksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingMarksRequest'] == null) { + throw new runtime.RequiredError('v1PostingMarksRequest', 'Required parameter "v1PostingMarksRequest" was null or undefined when calling postingAPIPostingMarks().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/marks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PostingMarksRequestToJSON)(requestParameters['v1PostingMarksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PostingMarksResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает статусы выдачи экземпляров и коды маркировки «Честный ЗНАК» для каждого отправления. Укажите в чеке и выведите из оборота маркировки экземпляров из параметра `issued_exemplars` в ответе. + * Получить маркировки экземпляров из отправления + */ + postingAPIPostingMarks(v1PostingMarksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingMarksRaw({ v1PostingMarksRequest: v1PostingMarksRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.FboPostingAPI = FboPostingAPI; diff --git a/dist/apis/FboSupplyRequest.d.ts b/dist/apis/FboSupplyRequest.d.ts new file mode 100644 index 0000000..76c8b29 --- /dev/null +++ b/dist/apis/FboSupplyRequest.d.ts @@ -0,0 +1,360 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1CargoesCreateRequest, V1CargoesCreateResponse, V1CargoesDeleteRequest, V1CargoesDeleteResponse, V1CargoesDeleteStatusRequest, V1CargoesDeleteStatusResponse, V1CargoesGetRequest, V1CargoesGetResponse, V1CargoesLabelCreateRequest, V1CargoesLabelCreateResponse, V1CargoesLabelGetRequest, V1CargoesLabelGetResponse, V1CargoesRulesGetRequest, V1CargoesRulesGetResponse, V1DraftClusterListRequest, V1DraftClusterListResponse, V1DraftCreateCommonResponse, V1DraftCrossdockCreateRequest, V1DraftDirectCreateRequest, V1DraftGetWarehouseFboListRequest, V1DraftGetWarehouseFboListResponse, V1DraftMultiClusterCreateRequest, V1SupplyOrderCancelRequest, V1SupplyOrderCancelResponse, V1SupplyOrderCancelStatusRequest, V1SupplyOrderCancelStatusResponse, V1SupplyOrderContentUpdateRequest, V1SupplyOrderContentUpdateResponse, V1SupplyOrderContentUpdateStatusRequest, V1SupplyOrderContentUpdateStatusResponse, V1SupplyOrderContentUpdateValidationRequest, V1SupplyOrderContentUpdateValidationResponse, V1WarehouseFboSellerListResponse, V2CargoesCreateInfoV2Request, V2CargoesCreateInfoV2Response, V2DraftClusterListResponse, V2DraftCreateInfoRequest, V2DraftCreateInfoResponse, V2DraftSupplyCreateRequest, V2DraftSupplyCreateResponse, V2DraftSupplyCreateStatusRequest, V2DraftSupplyCreateStatusResponse, V2DraftTimeslotInfoRequest, V2DraftTimeslotInfoResponse } from '../models/index'; +export interface CargoesAPICargoesCreateRequest { + clientId: string; + apiKey: string; + v1CargoesCreateRequest: V1CargoesCreateRequest; +} +export interface CargoesAPICargoesDeleteRequest { + v1CargoesDeleteRequest: V1CargoesDeleteRequest; +} +export interface CargoesAPICargoesDeleteStatusRequest { + v1CargoesDeleteStatusRequest: V1CargoesDeleteStatusRequest; +} +export interface CargoesAPICargoesLabelCreateRequest { + clientId: string; + apiKey: string; + v1CargoesLabelCreateRequest: V1CargoesLabelCreateRequest; +} +export interface CargoesAPICargoesLabelFileRequest { + clientId: string; + apiKey: string; +} +export interface CargoesAPICargoesLabelGetRequest { + clientId: string; + apiKey: string; + v1CargoesLabelGetRequest: V1CargoesLabelGetRequest; +} +export interface CargoesAPICargoesRulesGetRequest { + v1CargoesRulesGetRequest: V1CargoesRulesGetRequest; +} +export interface CargoesCreateInfoV2Request { + clientId: string; + apiKey: string; + v2CargoesCreateInfoV2Request?: V2CargoesCreateInfoV2Request; +} +export interface CargoesGetRequest { + clientId: string; + apiKey: string; + v1CargoesGetRequest?: V1CargoesGetRequest; +} +export interface DraftClusterListRequest { + clientId: string; + apiKey: string; +} +export interface DraftCreateInfoRequest { + clientId: string; + apiKey: string; + v2DraftCreateInfoRequest?: V2DraftCreateInfoRequest; +} +export interface DraftCrossdockCreateRequest { + clientId: string; + apiKey: string; + v1DraftCrossdockCreateRequest?: V1DraftCrossdockCreateRequest; +} +export interface DraftDirectCreateRequest { + clientId: string; + apiKey: string; + v1DraftDirectCreateRequest?: V1DraftDirectCreateRequest; +} +export interface DraftMultiClusterCreateRequest { + clientId: string; + apiKey: string; + v1DraftMultiClusterCreateRequest?: V1DraftMultiClusterCreateRequest; +} +export interface DraftSupplyCreateRequest { + clientId: string; + apiKey: string; + v2DraftSupplyCreateRequest?: V2DraftSupplyCreateRequest; +} +export interface DraftSupplyCreateStatusRequest { + clientId: string; + apiKey: string; + v2DraftSupplyCreateStatusRequest?: V2DraftSupplyCreateStatusRequest; +} +export interface DraftTimeslotInfoRequest { + clientId: string; + apiKey: string; + v2DraftTimeslotInfoRequest?: V2DraftTimeslotInfoRequest; +} +export interface SupplyDraftAPIDraftClusterListRequest { + v1DraftClusterListRequest: V1DraftClusterListRequest; +} +export interface SupplyDraftAPIDraftGetWarehouseFboListRequest { + v1DraftGetWarehouseFboListRequest: V1DraftGetWarehouseFboListRequest; +} +export interface SupplyOrderAPISupplyOrderCancelRequest { + clientId: string; + apiKey: string; + v1SupplyOrderCancelRequest: V1SupplyOrderCancelRequest; +} +export interface SupplyOrderAPISupplyOrderCancelStatusRequest { + clientId: string; + apiKey: string; + v1SupplyOrderCancelStatusRequest: V1SupplyOrderCancelStatusRequest; +} +export interface SupplyOrderAPISupplyOrderContentUpdateRequest { + v1SupplyOrderContentUpdateRequest: V1SupplyOrderContentUpdateRequest; +} +export interface SupplyOrderAPISupplyOrderContentUpdateStatusRequest { + v1SupplyOrderContentUpdateStatusRequest: V1SupplyOrderContentUpdateStatusRequest; +} +export interface SupplyOrderContentUpdateValidationRequest { + v1SupplyOrderContentUpdateValidationRequest?: V1SupplyOrderContentUpdateValidationRequest; +} +export interface WarehouseFboSellerListRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class FboSupplyRequest extends runtime.BaseAPI { + /** + * Используйте метод, чтобы передать грузоместа и товарный состав в заявку на поставку. + * Установка грузомест + */ + cargoesAPICargoesCreateRaw(requestParameters: CargoesAPICargoesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы передать грузоместа и товарный состав в заявку на поставку. + * Установка грузомест + */ + cargoesAPICargoesCreate(clientId: string, apiKey: string, v1CargoesCreateRequest: V1CargoesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для удаления грузомест в заявке на поставку. Чтобы проверить статус удаления, используйте метод [/v1/cargoes/delete/status](#operation/CargoesAPI_CargoesDeleteStatus). + * Удалить грузоместо в заявке на поставку + */ + cargoesAPICargoesDeleteRaw(requestParameters: CargoesAPICargoesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для удаления грузомест в заявке на поставку. Чтобы проверить статус удаления, используйте метод [/v1/cargoes/delete/status](#operation/CargoesAPI_CargoesDeleteStatus). + * Удалить грузоместо в заявке на поставку + */ + cargoesAPICargoesDelete(v1CargoesDeleteRequest: V1CargoesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения статуса удаления грузомест в заявке на поставку. + * Информация о статусе удаления грузоместа + */ + cargoesAPICargoesDeleteStatusRaw(requestParameters: CargoesAPICargoesDeleteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения статуса удаления грузомест в заявке на поставку. + * Информация о статусе удаления грузоместа + */ + cargoesAPICargoesDeleteStatus(v1CargoesDeleteStatusRequest: V1CargoesDeleteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы сгенерировать этикетки для грузомест из заявки на поставку. + * Сгенерировать этикетки для грузомест + */ + cargoesAPICargoesLabelCreateRaw(requestParameters: CargoesAPICargoesLabelCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы сгенерировать этикетки для грузомест из заявки на поставку. + * Сгенерировать этикетки для грузомест + */ + cargoesAPICargoesLabelCreate(clientId: string, apiKey: string, v1CargoesLabelCreateRequest: V1CargoesLabelCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Получить PDF с этикетками грузовых мест + */ + cargoesAPICargoesLabelFileRaw(requestParameters: CargoesAPICargoesLabelFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Получить PDF с этикетками грузовых мест + */ + cargoesAPICargoesLabelFile(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает статус формирования этикеток и ссылку на PDF-файл с ними. + * Получить идентификатор этикетки для грузомест + */ + cargoesAPICargoesLabelGetRaw(requestParameters: CargoesAPICargoesLabelGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает статус формирования этикеток и ссылку на PDF-файл с ними. + * Получить идентификатор этикетки для грузомест + */ + cargoesAPICargoesLabelGet(clientId: string, apiKey: string, v1CargoesLabelGetRequest: V1CargoesLabelGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения чек-листа с правилами по установке грузомест. + * Чек-лист по установке грузомест FBO + */ + cargoesAPICargoesRulesGetRaw(requestParameters: CargoesAPICargoesRulesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения чек-листа с правилами по установке грузомест. + * Чек-лист по установке грузомест FBO + */ + cargoesAPICargoesRulesGet(v1CargoesRulesGetRequest: V1CargoesRulesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1721-Novyi-metod-dlia-peredachi-offer-id-pri-ustanovke-GM) в сообществе разработчиков Ozon for dev. + * Получить информацию по установке грузомест + */ + cargoesCreateInfoV2Raw(requestParameters: CargoesCreateInfoV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1721-Novyi-metod-dlia-peredachi-offer-id-pri-ustanovke-GM) в сообществе разработчиков Ozon for dev. + * Получить информацию по установке грузомест + */ + cargoesCreateInfoV2(clientId: string, apiKey: string, v2CargoesCreateInfoV2Request?: V2CargoesCreateInfoV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о грузоместах + */ + cargoesGetRaw(requestParameters: CargoesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о грузоместах + */ + cargoesGet(clientId: string, apiKey: string, v1CargoesGetRequest?: V1CargoesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о макролокальных кластерах + */ + draftClusterListRaw(requestParameters: DraftClusterListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о макролокальных кластерах + */ + draftClusterList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать черновики заявки на поставку 2 раза в минуту и 50 раз в час. Если превысите лимит, вернётся ошибка 429. + * Получить информацию о черновике заявки на поставку + */ + draftCreateInfoRaw(requestParameters: DraftCreateInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать черновики заявки на поставку 2 раза в минуту и 50 раз в час. Если превысите лимит, вернётся ошибка 429. + * Получить информацию о черновике заявки на поставку + */ + draftCreateInfo(clientId: string, apiKey: string, v2DraftCreateInfoRequest?: V2DraftCreateInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку кросс-докингом + */ + draftCrossdockCreateRaw(requestParameters: DraftCrossdockCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку кросс-докингом + */ + draftCrossdockCreate(clientId: string, apiKey: string, v1DraftCrossdockCreateRequest?: V1DraftCrossdockCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на прямую поставку + */ + draftDirectCreateRaw(requestParameters: DraftDirectCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на прямую поставку + */ + draftDirectCreate(clientId: string, apiKey: string, v1DraftDirectCreateRequest?: V1DraftDirectCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку для нескольких кластеров + */ + draftMultiClusterCreateRaw(requestParameters: DraftMultiClusterCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку для нескольких кластеров + */ + draftMultiClusterCreate(clientId: string, apiKey: string, v1DraftMultiClusterCreateRequest?: V1DraftMultiClusterCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать заявку на поставку по черновику: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать заявку на поставку по черновику + */ + draftSupplyCreateRaw(requestParameters: DraftSupplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать заявку на поставку по черновику: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать заявку на поставку по черновику + */ + draftSupplyCreate(clientId: string, apiKey: string, v2DraftSupplyCreateRequest?: V2DraftSupplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о создании заявки на поставку + */ + draftSupplyCreateStatusRaw(requestParameters: DraftSupplyCreateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о создании заявки на поставку + */ + draftSupplyCreateStatus(clientId: string, apiKey: string, v2DraftSupplyCreateStatusRequest?: V2DraftSupplyCreateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список доступных таймслотов + */ + draftTimeslotInfoRaw(requestParameters: DraftTimeslotInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список доступных таймслотов + */ + draftTimeslotInfo(clientId: string, apiKey: string, v2DraftTimeslotInfoRequest?: V2DraftTimeslotInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Информация о кластерах и их складах + */ + supplyDraftAPIDraftClusterListRaw(requestParameters: SupplyDraftAPIDraftClusterListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Информация о кластерах и их складах + */ + supplyDraftAPIDraftClusterList(v1DraftClusterListRequest: V1DraftClusterListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы найти точки отгрузки для кросс-докинга и прямых поставок. Вы можете посмотреть адреса всех точек на карте и в виде таблицы в [Базе знаний](https://seller-edu.ozon.ru/fbo/warehouses/adresa-skladov-fbo). + * Поиск точек для отгрузки поставки + */ + supplyDraftAPIDraftGetWarehouseFboListRaw(requestParameters: SupplyDraftAPIDraftGetWarehouseFboListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы найти точки отгрузки для кросс-докинга и прямых поставок. Вы можете посмотреть адреса всех точек на карте и в виде таблицы в [Базе знаний](https://seller-edu.ozon.ru/fbo/warehouses/adresa-skladov-fbo). + * Поиск точек для отгрузки поставки + */ + supplyDraftAPIDraftGetWarehouseFboList(v1DraftGetWarehouseFboListRequest: V1DraftGetWarehouseFboListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отменить заявку на поставку + */ + supplyOrderAPISupplyOrderCancelRaw(requestParameters: SupplyOrderAPISupplyOrderCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отменить заявку на поставку + */ + supplyOrderAPISupplyOrderCancel(clientId: string, apiKey: string, v1SupplyOrderCancelRequest: V1SupplyOrderCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить статус отмены заявки на поставку + */ + supplyOrderAPISupplyOrderCancelStatusRaw(requestParameters: SupplyOrderAPISupplyOrderCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус отмены заявки на поставку + */ + supplyOrderAPISupplyOrderCancelStatus(clientId: string, apiKey: string, v1SupplyOrderCancelStatusRequest: V1SupplyOrderCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для редактирования товарного состава в заявке на поставку. Чтобы проверить статус редактирования, используйте метод [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus). + * Редактирование товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateRaw(requestParameters: SupplyOrderAPISupplyOrderContentUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для редактирования товарного состава в заявке на поставку. Чтобы проверить статус редактирования, используйте метод [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus). + * Редактирование товарного состава + */ + supplyOrderAPISupplyOrderContentUpdate(v1SupplyOrderContentUpdateRequest: V1SupplyOrderContentUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения статуса редактирования товарного состава. + * Информация о статусе редактирования товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateStatusRaw(requestParameters: SupplyOrderAPISupplyOrderContentUpdateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения статуса редактирования товарного состава. + * Информация о статусе редактирования товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateStatus(v1SupplyOrderContentUpdateStatusRequest: V1SupplyOrderContentUpdateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте этот метод, если в [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus) вы получили ошибку `SUPPLY_CONTENT_NOT_VALID`. + * Проверить новый товарный состав + */ + supplyOrderContentUpdateValidationRaw(requestParameters: SupplyOrderContentUpdateValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте этот метод, если в [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus) вы получили ошибку `SUPPLY_CONTENT_NOT_VALID`. + * Проверить новый товарный состав + */ + supplyOrderContentUpdateValidation(v1SupplyOrderContentUpdateValidationRequest?: V1SupplyOrderContentUpdateValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список складов продавца + */ + warehouseFboSellerListRaw(requestParameters: WarehouseFboSellerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список складов продавца + */ + warehouseFboSellerList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FboSupplyRequest.js b/dist/apis/FboSupplyRequest.js new file mode 100644 index 0000000..b589c11 --- /dev/null +++ b/dist/apis/FboSupplyRequest.js @@ -0,0 +1,977 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FboSupplyRequest = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FboSupplyRequest extends runtime.BaseAPI { + /** + * Используйте метод, чтобы передать грузоместа и товарный состав в заявку на поставку. + * Установка грузомест + */ + cargoesAPICargoesCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesAPICargoesCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesAPICargoesCreate().'); + } + if (requestParameters['v1CargoesCreateRequest'] == null) { + throw new runtime.RequiredError('v1CargoesCreateRequest', 'Required parameter "v1CargoesCreateRequest" was null or undefined when calling cargoesAPICargoesCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CargoesCreateRequestToJSON)(requestParameters['v1CargoesCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CargoesCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы передать грузоместа и товарный состав в заявку на поставку. + * Установка грузомест + */ + cargoesAPICargoesCreate(clientId, apiKey, v1CargoesCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesCreateRaw({ clientId: clientId, apiKey: apiKey, v1CargoesCreateRequest: v1CargoesCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для удаления грузомест в заявке на поставку. Чтобы проверить статус удаления, используйте метод [/v1/cargoes/delete/status](#operation/CargoesAPI_CargoesDeleteStatus). + * Удалить грузоместо в заявке на поставку + */ + cargoesAPICargoesDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CargoesDeleteRequest'] == null) { + throw new runtime.RequiredError('v1CargoesDeleteRequest', 'Required parameter "v1CargoesDeleteRequest" was null or undefined when calling cargoesAPICargoesDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cargoes/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CargoesDeleteRequestToJSON)(requestParameters['v1CargoesDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CargoesDeleteResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для удаления грузомест в заявке на поставку. Чтобы проверить статус удаления, используйте метод [/v1/cargoes/delete/status](#operation/CargoesAPI_CargoesDeleteStatus). + * Удалить грузоместо в заявке на поставку + */ + cargoesAPICargoesDelete(v1CargoesDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesDeleteRaw({ v1CargoesDeleteRequest: v1CargoesDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения статуса удаления грузомест в заявке на поставку. + * Информация о статусе удаления грузоместа + */ + cargoesAPICargoesDeleteStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CargoesDeleteStatusRequest'] == null) { + throw new runtime.RequiredError('v1CargoesDeleteStatusRequest', 'Required parameter "v1CargoesDeleteStatusRequest" was null or undefined when calling cargoesAPICargoesDeleteStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cargoes/delete/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CargoesDeleteStatusRequestToJSON)(requestParameters['v1CargoesDeleteStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CargoesDeleteStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения статуса удаления грузомест в заявке на поставку. + * Информация о статусе удаления грузоместа + */ + cargoesAPICargoesDeleteStatus(v1CargoesDeleteStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesDeleteStatusRaw({ v1CargoesDeleteStatusRequest: v1CargoesDeleteStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы сгенерировать этикетки для грузомест из заявки на поставку. + * Сгенерировать этикетки для грузомест + */ + cargoesAPICargoesLabelCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesAPICargoesLabelCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesAPICargoesLabelCreate().'); + } + if (requestParameters['v1CargoesLabelCreateRequest'] == null) { + throw new runtime.RequiredError('v1CargoesLabelCreateRequest', 'Required parameter "v1CargoesLabelCreateRequest" was null or undefined when calling cargoesAPICargoesLabelCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes-label/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CargoesLabelCreateRequestToJSON)(requestParameters['v1CargoesLabelCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CargoesLabelCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы сгенерировать этикетки для грузомест из заявки на поставку. + * Сгенерировать этикетки для грузомест + */ + cargoesAPICargoesLabelCreate(clientId, apiKey, v1CargoesLabelCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesLabelCreateRaw({ clientId: clientId, apiKey: apiKey, v1CargoesLabelCreateRequest: v1CargoesLabelCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Получить PDF с этикетками грузовых мест + */ + cargoesAPICargoesLabelFileRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesAPICargoesLabelFile().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesAPICargoesLabelFile().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes-label/file/{file_guid}`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * + * Получить PDF с этикетками грузовых мест + */ + cargoesAPICargoesLabelFile(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.cargoesAPICargoesLabelFileRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + }); + } + /** + * Возвращает статус формирования этикеток и ссылку на PDF-файл с ними. + * Получить идентификатор этикетки для грузомест + */ + cargoesAPICargoesLabelGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesAPICargoesLabelGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesAPICargoesLabelGet().'); + } + if (requestParameters['v1CargoesLabelGetRequest'] == null) { + throw new runtime.RequiredError('v1CargoesLabelGetRequest', 'Required parameter "v1CargoesLabelGetRequest" was null or undefined when calling cargoesAPICargoesLabelGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes-label/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CargoesLabelGetRequestToJSON)(requestParameters['v1CargoesLabelGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CargoesLabelGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает статус формирования этикеток и ссылку на PDF-файл с ними. + * Получить идентификатор этикетки для грузомест + */ + cargoesAPICargoesLabelGet(clientId, apiKey, v1CargoesLabelGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesLabelGetRaw({ clientId: clientId, apiKey: apiKey, v1CargoesLabelGetRequest: v1CargoesLabelGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения чек-листа с правилами по установке грузомест. + * Чек-лист по установке грузомест FBO + */ + cargoesAPICargoesRulesGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CargoesRulesGetRequest'] == null) { + throw new runtime.RequiredError('v1CargoesRulesGetRequest', 'Required parameter "v1CargoesRulesGetRequest" was null or undefined when calling cargoesAPICargoesRulesGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cargoes/rules/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CargoesRulesGetRequestToJSON)(requestParameters['v1CargoesRulesGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CargoesRulesGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения чек-листа с правилами по установке грузомест. + * Чек-лист по установке грузомест FBO + */ + cargoesAPICargoesRulesGet(v1CargoesRulesGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesRulesGetRaw({ v1CargoesRulesGetRequest: v1CargoesRulesGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1721-Novyi-metod-dlia-peredachi-offer-id-pri-ustanovke-GM) в сообществе разработчиков Ozon for dev. + * Получить информацию по установке грузомест + */ + cargoesCreateInfoV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesCreateInfoV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesCreateInfoV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cargoes/create/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2CargoesCreateInfoV2RequestToJSON)(requestParameters['v2CargoesCreateInfoV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2CargoesCreateInfoV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1721-Novyi-metod-dlia-peredachi-offer-id-pri-ustanovke-GM) в сообществе разработчиков Ozon for dev. + * Получить информацию по установке грузомест + */ + cargoesCreateInfoV2(clientId, apiKey, v2CargoesCreateInfoV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesCreateInfoV2Raw({ clientId: clientId, apiKey: apiKey, v2CargoesCreateInfoV2Request: v2CargoesCreateInfoV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о грузоместах + */ + cargoesGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CargoesGetRequestToJSON)(requestParameters['v1CargoesGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CargoesGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить информацию о грузоместах + */ + cargoesGet(clientId, apiKey, v1CargoesGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesGetRaw({ clientId: clientId, apiKey: apiKey, v1CargoesGetRequest: v1CargoesGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о макролокальных кластерах + */ + draftClusterListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftClusterList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftClusterList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cluster/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2DraftClusterListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить информацию о макролокальных кластерах + */ + draftClusterList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftClusterListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать черновики заявки на поставку 2 раза в минуту и 50 раз в час. Если превысите лимит, вернётся ошибка 429. + * Получить информацию о черновике заявки на поставку + */ + draftCreateInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftCreateInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftCreateInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/draft/create/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2DraftCreateInfoRequestToJSON)(requestParameters['v2DraftCreateInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2DraftCreateInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете создавать черновики заявки на поставку 2 раза в минуту и 50 раз в час. Если превысите лимит, вернётся ошибка 429. + * Получить информацию о черновике заявки на поставку + */ + draftCreateInfo(clientId, apiKey, v2DraftCreateInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftCreateInfoRaw({ clientId: clientId, apiKey: apiKey, v2DraftCreateInfoRequest: v2DraftCreateInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку кросс-докингом + */ + draftCrossdockCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftCrossdockCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftCrossdockCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/draft/crossdock/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DraftCrossdockCreateRequestToJSON)(requestParameters['v1DraftCrossdockCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DraftCreateCommonResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку кросс-докингом + */ + draftCrossdockCreate(clientId, apiKey, v1DraftCrossdockCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftCrossdockCreateRaw({ clientId: clientId, apiKey: apiKey, v1DraftCrossdockCreateRequest: v1DraftCrossdockCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на прямую поставку + */ + draftDirectCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftDirectCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftDirectCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/draft/direct/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DraftDirectCreateRequestToJSON)(requestParameters['v1DraftDirectCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DraftCreateCommonResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на прямую поставку + */ + draftDirectCreate(clientId, apiKey, v1DraftDirectCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftDirectCreateRaw({ clientId: clientId, apiKey: apiKey, v1DraftDirectCreateRequest: v1DraftDirectCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку для нескольких кластеров + */ + draftMultiClusterCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftMultiClusterCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftMultiClusterCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/draft/multi-cluster/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DraftMultiClusterCreateRequestToJSON)(requestParameters['v1DraftMultiClusterCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DraftCreateCommonResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку для нескольких кластеров + */ + draftMultiClusterCreate(clientId, apiKey, v1DraftMultiClusterCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftMultiClusterCreateRaw({ clientId: clientId, apiKey: apiKey, v1DraftMultiClusterCreateRequest: v1DraftMultiClusterCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать заявку на поставку по черновику: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать заявку на поставку по черновику + */ + draftSupplyCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftSupplyCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftSupplyCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/draft/supply/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2DraftSupplyCreateRequestToJSON)(requestParameters['v2DraftSupplyCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2DraftSupplyCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете создавать заявку на поставку по черновику: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать заявку на поставку по черновику + */ + draftSupplyCreate(clientId, apiKey, v2DraftSupplyCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftSupplyCreateRaw({ clientId: clientId, apiKey: apiKey, v2DraftSupplyCreateRequest: v2DraftSupplyCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о создании заявки на поставку + */ + draftSupplyCreateStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftSupplyCreateStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftSupplyCreateStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/draft/supply/create/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2DraftSupplyCreateStatusRequestToJSON)(requestParameters['v2DraftSupplyCreateStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2DraftSupplyCreateStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить информацию о создании заявки на поставку + */ + draftSupplyCreateStatus(clientId, apiKey, v2DraftSupplyCreateStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftSupplyCreateStatusRaw({ clientId: clientId, apiKey: apiKey, v2DraftSupplyCreateStatusRequest: v2DraftSupplyCreateStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список доступных таймслотов + */ + draftTimeslotInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftTimeslotInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftTimeslotInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/draft/timeslot/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2DraftTimeslotInfoRequestToJSON)(requestParameters['v2DraftTimeslotInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2DraftTimeslotInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список доступных таймслотов + */ + draftTimeslotInfo(clientId, apiKey, v2DraftTimeslotInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftTimeslotInfoRaw({ clientId: clientId, apiKey: apiKey, v2DraftTimeslotInfoRequest: v2DraftTimeslotInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Информация о кластерах и их складах + */ + supplyDraftAPIDraftClusterListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1DraftClusterListRequest'] == null) { + throw new runtime.RequiredError('v1DraftClusterListRequest', 'Required parameter "v1DraftClusterListRequest" was null or undefined when calling supplyDraftAPIDraftClusterList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cluster/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DraftClusterListRequestToJSON)(requestParameters['v1DraftClusterListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DraftClusterListResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Информация о кластерах и их складах + */ + supplyDraftAPIDraftClusterList(v1DraftClusterListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyDraftAPIDraftClusterListRaw({ v1DraftClusterListRequest: v1DraftClusterListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы найти точки отгрузки для кросс-докинга и прямых поставок. Вы можете посмотреть адреса всех точек на карте и в виде таблицы в [Базе знаний](https://seller-edu.ozon.ru/fbo/warehouses/adresa-skladov-fbo). + * Поиск точек для отгрузки поставки + */ + supplyDraftAPIDraftGetWarehouseFboListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1DraftGetWarehouseFboListRequest'] == null) { + throw new runtime.RequiredError('v1DraftGetWarehouseFboListRequest', 'Required parameter "v1DraftGetWarehouseFboListRequest" was null or undefined when calling supplyDraftAPIDraftGetWarehouseFboList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/warehouse/fbo/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DraftGetWarehouseFboListRequestToJSON)(requestParameters['v1DraftGetWarehouseFboListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DraftGetWarehouseFboListResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы найти точки отгрузки для кросс-докинга и прямых поставок. Вы можете посмотреть адреса всех точек на карте и в виде таблицы в [Базе знаний](https://seller-edu.ozon.ru/fbo/warehouses/adresa-skladov-fbo). + * Поиск точек для отгрузки поставки + */ + supplyDraftAPIDraftGetWarehouseFboList(v1DraftGetWarehouseFboListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyDraftAPIDraftGetWarehouseFboListRaw({ v1DraftGetWarehouseFboListRequest: v1DraftGetWarehouseFboListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Отменить заявку на поставку + */ + supplyOrderAPISupplyOrderCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderCancel().'); + } + if (requestParameters['v1SupplyOrderCancelRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderCancelRequest', 'Required parameter "v1SupplyOrderCancelRequest" was null or undefined when calling supplyOrderAPISupplyOrderCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SupplyOrderCancelRequestToJSON)(requestParameters['v1SupplyOrderCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Отменить заявку на поставку + */ + supplyOrderAPISupplyOrderCancel(clientId, apiKey, v1SupplyOrderCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderCancelRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderCancelRequest: v1SupplyOrderCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить статус отмены заявки на поставку + */ + supplyOrderAPISupplyOrderCancelStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderCancelStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderCancelStatus().'); + } + if (requestParameters['v1SupplyOrderCancelStatusRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderCancelStatusRequest', 'Required parameter "v1SupplyOrderCancelStatusRequest" was null or undefined when calling supplyOrderAPISupplyOrderCancelStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/cancel/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SupplyOrderCancelStatusRequestToJSON)(requestParameters['v1SupplyOrderCancelStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderCancelStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить статус отмены заявки на поставку + */ + supplyOrderAPISupplyOrderCancelStatus(clientId, apiKey, v1SupplyOrderCancelStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderCancelStatusRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderCancelStatusRequest: v1SupplyOrderCancelStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для редактирования товарного состава в заявке на поставку. Чтобы проверить статус редактирования, используйте метод [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus). + * Редактирование товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1SupplyOrderContentUpdateRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderContentUpdateRequest', 'Required parameter "v1SupplyOrderContentUpdateRequest" was null or undefined when calling supplyOrderAPISupplyOrderContentUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/supply-order/content/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SupplyOrderContentUpdateRequestToJSON)(requestParameters['v1SupplyOrderContentUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderContentUpdateResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для редактирования товарного состава в заявке на поставку. Чтобы проверить статус редактирования, используйте метод [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus). + * Редактирование товарного состава + */ + supplyOrderAPISupplyOrderContentUpdate(v1SupplyOrderContentUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderContentUpdateRaw({ v1SupplyOrderContentUpdateRequest: v1SupplyOrderContentUpdateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения статуса редактирования товарного состава. + * Информация о статусе редактирования товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1SupplyOrderContentUpdateStatusRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderContentUpdateStatusRequest', 'Required parameter "v1SupplyOrderContentUpdateStatusRequest" was null or undefined when calling supplyOrderAPISupplyOrderContentUpdateStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/supply-order/content/update/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SupplyOrderContentUpdateStatusRequestToJSON)(requestParameters['v1SupplyOrderContentUpdateStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderContentUpdateStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения статуса редактирования товарного состава. + * Информация о статусе редактирования товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateStatus(v1SupplyOrderContentUpdateStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderContentUpdateStatusRaw({ v1SupplyOrderContentUpdateStatusRequest: v1SupplyOrderContentUpdateStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте этот метод, если в [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus) вы получили ошибку `SUPPLY_CONTENT_NOT_VALID`. + * Проверить новый товарный состав + */ + supplyOrderContentUpdateValidationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/supply-order/content/update/validation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SupplyOrderContentUpdateValidationRequestToJSON)(requestParameters['v1SupplyOrderContentUpdateValidationRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SupplyOrderContentUpdateValidationResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте этот метод, если в [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus) вы получили ошибку `SUPPLY_CONTENT_NOT_VALID`. + * Проверить новый товарный состав + */ + supplyOrderContentUpdateValidation(v1SupplyOrderContentUpdateValidationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderContentUpdateValidationRaw({ v1SupplyOrderContentUpdateValidationRequest: v1SupplyOrderContentUpdateValidationRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список складов продавца + */ + warehouseFboSellerListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFboSellerList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFboSellerList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbo/seller/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseFboSellerListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список складов продавца + */ + warehouseFboSellerList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFboSellerListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} +exports.FboSupplyRequest = FboSupplyRequest; diff --git a/dist/apis/FinanceAPI.d.ts b/dist/apis/FinanceAPI.d.ts new file mode 100644 index 0000000..9c721f3 --- /dev/null +++ b/dist/apis/FinanceAPI.d.ts @@ -0,0 +1,158 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CommonCreateReportResponse, CreateReportResponse, Financev3FinanceTransactionListV3Request, Financev3FinanceTransactionListV3Response, Financev3FinanceTransactionTotalsV3Request, Financev3FinanceTransactionTotalsV3Response, V1CreateDocumentB2BSalesJSONReportRequest, V1CreateDocumentB2BSalesJSONReportResponse, V1CreateDocumentB2BSalesReportRequest, V1CreateMutualSettlementReportRequest, V1GetCompensationReportRequest, V1GetDecompensationReportRequest, V1GetFinanceProductsBuyoutRequest, V1GetFinanceProductsBuyoutResponse, V1GetRealizationReportPostingRequest, V1GetRealizationReportPostingResponse, V2GetRealizationReportRequestV2, V2GetRealizationReportResponseV2 } from '../models/index'; +export interface FinanceAPIFinanceTransactionListV3Request { + clientId: string; + apiKey: string; + financev3FinanceTransactionListV3Request: Financev3FinanceTransactionListV3Request; +} +export interface FinanceAPIFinanceTransactionTotalV3Request { + clientId: string; + apiKey: string; + financev3FinanceTransactionTotalsV3Request: Financev3FinanceTransactionTotalsV3Request | null; +} +export interface FinanceAPIGetRealizationReportV1Request { + clientId: string; + apiKey: string; + v1GetRealizationReportPostingRequest: V1GetRealizationReportPostingRequest; +} +export interface FinanceAPIGetRealizationReportV2Request { + clientId: string; + apiKey: string; + v2GetRealizationReportRequestV2: V2GetRealizationReportRequestV2; +} +export interface GetFinanceProductsBuyoutRequest { + v1GetFinanceProductsBuyoutRequest?: V1GetFinanceProductsBuyoutRequest; +} +export interface ReportAPICreateDocumentB2BSalesJSONReportRequest { + v1CreateDocumentB2BSalesJSONReportRequest: V1CreateDocumentB2BSalesJSONReportRequest; +} +export interface ReportAPICreateDocumentB2BSalesReportRequest { + v1CreateDocumentB2BSalesReportRequest: V1CreateDocumentB2BSalesReportRequest; +} +export interface ReportAPICreateMutualSettlementReportRequest { + clientId: string; + apiKey: string; + v1CreateMutualSettlementReportRequest: V1CreateMutualSettlementReportRequest; +} +export interface ReportAPIGetCompensationReportRequest { + v1GetCompensationReportRequest: V1GetCompensationReportRequest; +} +export interface ReportAPIGetDecompensationReportRequest { + v1GetDecompensationReportRequest: V1GetDecompensationReportRequest; +} +/** + * + */ +export declare class FinanceAPI extends runtime.BaseAPI { + /** + * Возвращает подробную информацию по всем начислениям. Максимальный период, за который можно получить информацию в одном запросе — 1 месяц. Если в запросе не указывать `posting_number`, то в ответе будут все отправления за указанный период или отправления определённого типа. + * Список транзакций + */ + financeAPIFinanceTransactionListV3Raw(requestParameters: FinanceAPIFinanceTransactionListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает подробную информацию по всем начислениям. Максимальный период, за который можно получить информацию в одном запросе — 1 месяц. Если в запросе не указывать `posting_number`, то в ответе будут все отправления за указанный период или отправления определённого типа. + * Список транзакций + */ + financeAPIFinanceTransactionListV3(clientId: string, apiKey: string, financev3FinanceTransactionListV3Request: Financev3FinanceTransactionListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает итоговые суммы по транзакциям за указанный период. Если вы неправильно заполните номера отправлений, в ответе вернутся нулевые значения. + * Суммы транзакций + */ + financeAPIFinanceTransactionTotalV3Raw(requestParameters: FinanceAPIFinanceTransactionTotalV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает итоговые суммы по транзакциям за указанный период. Если вы неправильно заполните номера отправлений, в ответе вернутся нулевые значения. + * Суммы транзакций + */ + financeAPIFinanceTransactionTotalV3(clientId: string, apiKey: string, financev3FinanceTransactionTotalsV3Request: Financev3FinanceTransactionTotalsV3Request | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Отмены и невыкупы не включаются. Отчёт доступен с настоящего времени по август 2023 года включительно. + * Позаказный отчёт о реализации товаров + */ + financeAPIGetRealizationReportV1Raw(requestParameters: FinanceAPIGetRealizationReportV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Отмены и невыкупы не включаются. Отчёт доступен с настоящего времени по август 2023 года включительно. + * Позаказный отчёт о реализации товаров + */ + financeAPIGetRealizationReportV1(clientId: string, apiKey: string, v1GetRealizationReportPostingRequest: V1GetRealizationReportPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт о реализации доставленных и возвращённых товаров за месяц. Отмены и невыкупы не включаются. Соответствует разделу **Финансы → Документы → Отчёты о реализации → Отчёт о реализации товара** в личном кабинете. Отчёт придёт не позднее 5-го числа следующего месяца. [Подробнее об отчёте в Базе знаний продавца](https://seller-edu.ozon.ru/docs/finances-documents/calculations-documents/otchet-o-realizacii-tovarov.html) + * Отчёт о реализации товаров (версия 2) + */ + financeAPIGetRealizationReportV2Raw(requestParameters: FinanceAPIGetRealizationReportV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт о реализации доставленных и возвращённых товаров за месяц. Отмены и невыкупы не включаются. Соответствует разделу **Финансы → Документы → Отчёты о реализации → Отчёт о реализации товара** в личном кабинете. Отчёт придёт не позднее 5-го числа следующего месяца. [Подробнее об отчёте в Базе знаний продавца](https://seller-edu.ozon.ru/docs/finances-documents/calculations-documents/otchet-o-realizacii-tovarov.html) + * Отчёт о реализации товаров (версия 2) + */ + financeAPIGetRealizationReportV2(clientId: string, apiKey: string, v2GetRealizationReportRequestV2: V2GetRealizationReportRequestV2, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает отчёт о товарах, которые выкупил Ozon. Соответствует разделу **Финансы → Документы → УПД по сделкам с юр. лицами → УПД по выкупленным товарам** в личном кабинете. [Подробнее о выкупе товаров в Базе знаний](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany?search=выкупленные+товары) + * Отчёт о выкупленных товарах + */ + getFinanceProductsBuyoutRaw(requestParameters: GetFinanceProductsBuyoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает отчёт о товарах, которые выкупил Ozon. Соответствует разделу **Финансы → Документы → УПД по сделкам с юр. лицами → УПД по выкупленным товарам** в личном кабинете. [Подробнее о выкупе товаров в Базе знаний](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany?search=выкупленные+товары) + * Отчёт о выкупленных товарах + */ + getFinanceProductsBuyout(v1GetFinanceProductsBuyoutRequest?: V1GetFinanceProductsBuyoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам в JSON-формате. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам в JSON-формате + */ + reportAPICreateDocumentB2BSalesJSONReportRaw(requestParameters: ReportAPICreateDocumentB2BSalesJSONReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам в JSON-формате. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам в JSON-формате + */ + reportAPICreateDocumentB2BSalesJSONReport(v1CreateDocumentB2BSalesJSONReportRequest: V1CreateDocumentB2BSalesJSONReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам + */ + reportAPICreateDocumentB2BSalesReportRaw(requestParameters: ReportAPICreateDocumentB2BSalesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам + */ + reportAPICreateDocumentB2BSalesReport(v1CreateDocumentB2BSalesReportRequest: V1CreateDocumentB2BSalesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить отчёт о взаиморасчетах. Соответствует разделу **Финансы → Документы → Аналитические отчеты → Отчет о взаиморасчетах** в личном кабинете. + * Отчёт о взаиморасчётах + */ + reportAPICreateMutualSettlementReportRaw(requestParameters: ReportAPICreateMutualSettlementReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить отчёт о взаиморасчетах. Соответствует разделу **Финансы → Документы → Аналитические отчеты → Отчет о взаиморасчетах** в личном кабинете. + * Отчёт о взаиморасчётах + */ + reportAPICreateMutualSettlementReport(clientId: string, apiKey: string, v1CreateMutualSettlementReportRequest: V1CreateMutualSettlementReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения отчёта о компенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о компенсациях + */ + reportAPIGetCompensationReportRaw(requestParameters: ReportAPIGetCompensationReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта о компенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о компенсациях + */ + reportAPIGetCompensationReport(v1GetCompensationReportRequest: V1GetCompensationReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения отчёта о декомпенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о декомпенсациях + */ + reportAPIGetDecompensationReportRaw(requestParameters: ReportAPIGetDecompensationReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта о декомпенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о декомпенсациях + */ + reportAPIGetDecompensationReport(v1GetDecompensationReportRequest: V1GetDecompensationReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/FinanceAPI.js b/dist/apis/FinanceAPI.js new file mode 100644 index 0000000..0c309c9 --- /dev/null +++ b/dist/apis/FinanceAPI.js @@ -0,0 +1,410 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FinanceAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class FinanceAPI extends runtime.BaseAPI { + /** + * Возвращает подробную информацию по всем начислениям. Максимальный период, за который можно получить информацию в одном запросе — 1 месяц. Если в запросе не указывать `posting_number`, то в ответе будут все отправления за указанный период или отправления определённого типа. + * Список транзакций + */ + financeAPIFinanceTransactionListV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIFinanceTransactionListV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIFinanceTransactionListV3().'); + } + if (requestParameters['financev3FinanceTransactionListV3Request'] == null) { + throw new runtime.RequiredError('financev3FinanceTransactionListV3Request', 'Required parameter "financev3FinanceTransactionListV3Request" was null or undefined when calling financeAPIFinanceTransactionListV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/finance/transaction/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Financev3FinanceTransactionListV3RequestToJSON)(requestParameters['financev3FinanceTransactionListV3Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Financev3FinanceTransactionListV3ResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает подробную информацию по всем начислениям. Максимальный период, за который можно получить информацию в одном запросе — 1 месяц. Если в запросе не указывать `posting_number`, то в ответе будут все отправления за указанный период или отправления определённого типа. + * Список транзакций + */ + financeAPIFinanceTransactionListV3(clientId, apiKey, financev3FinanceTransactionListV3Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIFinanceTransactionListV3Raw({ clientId: clientId, apiKey: apiKey, financev3FinanceTransactionListV3Request: financev3FinanceTransactionListV3Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает итоговые суммы по транзакциям за указанный период. Если вы неправильно заполните номера отправлений, в ответе вернутся нулевые значения. + * Суммы транзакций + */ + financeAPIFinanceTransactionTotalV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIFinanceTransactionTotalV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIFinanceTransactionTotalV3().'); + } + if (requestParameters['financev3FinanceTransactionTotalsV3Request'] == null) { + throw new runtime.RequiredError('financev3FinanceTransactionTotalsV3Request', 'Required parameter "financev3FinanceTransactionTotalsV3Request" was null or undefined when calling financeAPIFinanceTransactionTotalV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/finance/transaction/totals`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Financev3FinanceTransactionTotalsV3RequestToJSON)(requestParameters['financev3FinanceTransactionTotalsV3Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Financev3FinanceTransactionTotalsV3ResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает итоговые суммы по транзакциям за указанный период. Если вы неправильно заполните номера отправлений, в ответе вернутся нулевые значения. + * Суммы транзакций + */ + financeAPIFinanceTransactionTotalV3(clientId, apiKey, financev3FinanceTransactionTotalsV3Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIFinanceTransactionTotalV3Raw({ clientId: clientId, apiKey: apiKey, financev3FinanceTransactionTotalsV3Request: financev3FinanceTransactionTotalsV3Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Отмены и невыкупы не включаются. Отчёт доступен с настоящего времени по август 2023 года включительно. + * Позаказный отчёт о реализации товаров + */ + financeAPIGetRealizationReportV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIGetRealizationReportV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIGetRealizationReportV1().'); + } + if (requestParameters['v1GetRealizationReportPostingRequest'] == null) { + throw new runtime.RequiredError('v1GetRealizationReportPostingRequest', 'Required parameter "v1GetRealizationReportPostingRequest" was null or undefined when calling financeAPIGetRealizationReportV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/realization/posting`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetRealizationReportPostingRequestToJSON)(requestParameters['v1GetRealizationReportPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetRealizationReportPostingResponseFromJSON)(jsonValue)); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Отмены и невыкупы не включаются. Отчёт доступен с настоящего времени по август 2023 года включительно. + * Позаказный отчёт о реализации товаров + */ + financeAPIGetRealizationReportV1(clientId, apiKey, v1GetRealizationReportPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIGetRealizationReportV1Raw({ clientId: clientId, apiKey: apiKey, v1GetRealizationReportPostingRequest: v1GetRealizationReportPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров за месяц. Отмены и невыкупы не включаются. Соответствует разделу **Финансы → Документы → Отчёты о реализации → Отчёт о реализации товара** в личном кабинете. Отчёт придёт не позднее 5-го числа следующего месяца. [Подробнее об отчёте в Базе знаний продавца](https://seller-edu.ozon.ru/docs/finances-documents/calculations-documents/otchet-o-realizacii-tovarov.html) + * Отчёт о реализации товаров (версия 2) + */ + financeAPIGetRealizationReportV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIGetRealizationReportV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIGetRealizationReportV2().'); + } + if (requestParameters['v2GetRealizationReportRequestV2'] == null) { + throw new runtime.RequiredError('v2GetRealizationReportRequestV2', 'Required parameter "v2GetRealizationReportRequestV2" was null or undefined when calling financeAPIGetRealizationReportV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/finance/realization`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2GetRealizationReportRequestV2ToJSON)(requestParameters['v2GetRealizationReportRequestV2']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2GetRealizationReportResponseV2FromJSON)(jsonValue)); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров за месяц. Отмены и невыкупы не включаются. Соответствует разделу **Финансы → Документы → Отчёты о реализации → Отчёт о реализации товара** в личном кабинете. Отчёт придёт не позднее 5-го числа следующего месяца. [Подробнее об отчёте в Базе знаний продавца](https://seller-edu.ozon.ru/docs/finances-documents/calculations-documents/otchet-o-realizacii-tovarov.html) + * Отчёт о реализации товаров (версия 2) + */ + financeAPIGetRealizationReportV2(clientId, apiKey, v2GetRealizationReportRequestV2, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIGetRealizationReportV2Raw({ clientId: clientId, apiKey: apiKey, v2GetRealizationReportRequestV2: v2GetRealizationReportRequestV2 }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает отчёт о товарах, которые выкупил Ozon. Соответствует разделу **Финансы → Документы → УПД по сделкам с юр. лицами → УПД по выкупленным товарам** в личном кабинете. [Подробнее о выкупе товаров в Базе знаний](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany?search=выкупленные+товары) + * Отчёт о выкупленных товарах + */ + getFinanceProductsBuyoutRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/products/buyout`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetFinanceProductsBuyoutRequestToJSON)(requestParameters['v1GetFinanceProductsBuyoutRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetFinanceProductsBuyoutResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает отчёт о товарах, которые выкупил Ozon. Соответствует разделу **Финансы → Документы → УПД по сделкам с юр. лицами → УПД по выкупленным товарам** в личном кабинете. [Подробнее о выкупе товаров в Базе знаний](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany?search=выкупленные+товары) + * Отчёт о выкупленных товарах + */ + getFinanceProductsBuyout(v1GetFinanceProductsBuyoutRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceProductsBuyoutRaw({ v1GetFinanceProductsBuyoutRequest: v1GetFinanceProductsBuyoutRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам в JSON-формате. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам в JSON-формате + */ + reportAPICreateDocumentB2BSalesJSONReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CreateDocumentB2BSalesJSONReportRequest'] == null) { + throw new runtime.RequiredError('v1CreateDocumentB2BSalesJSONReportRequest', 'Required parameter "v1CreateDocumentB2BSalesJSONReportRequest" was null or undefined when calling reportAPICreateDocumentB2BSalesJSONReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/document-b2b-sales/json`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreateDocumentB2BSalesJSONReportRequestToJSON)(requestParameters['v1CreateDocumentB2BSalesJSONReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CreateDocumentB2BSalesJSONReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам в JSON-формате. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам в JSON-формате + */ + reportAPICreateDocumentB2BSalesJSONReport(v1CreateDocumentB2BSalesJSONReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateDocumentB2BSalesJSONReportRaw({ v1CreateDocumentB2BSalesJSONReportRequest: v1CreateDocumentB2BSalesJSONReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам + */ + reportAPICreateDocumentB2BSalesReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CreateDocumentB2BSalesReportRequest'] == null) { + throw new runtime.RequiredError('v1CreateDocumentB2BSalesReportRequest', 'Required parameter "v1CreateDocumentB2BSalesReportRequest" was null or undefined when calling reportAPICreateDocumentB2BSalesReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/document-b2b-sales`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreateDocumentB2BSalesReportRequestToJSON)(requestParameters['v1CreateDocumentB2BSalesReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CommonCreateReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам + */ + reportAPICreateDocumentB2BSalesReport(v1CreateDocumentB2BSalesReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateDocumentB2BSalesReportRaw({ v1CreateDocumentB2BSalesReportRequest: v1CreateDocumentB2BSalesReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить отчёт о взаиморасчетах. Соответствует разделу **Финансы → Документы → Аналитические отчеты → Отчет о взаиморасчетах** в личном кабинете. + * Отчёт о взаиморасчётах + */ + reportAPICreateMutualSettlementReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateMutualSettlementReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateMutualSettlementReport().'); + } + if (requestParameters['v1CreateMutualSettlementReportRequest'] == null) { + throw new runtime.RequiredError('v1CreateMutualSettlementReportRequest', 'Required parameter "v1CreateMutualSettlementReportRequest" was null or undefined when calling reportAPICreateMutualSettlementReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/mutual-settlement`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreateMutualSettlementReportRequestToJSON)(requestParameters['v1CreateMutualSettlementReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CommonCreateReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить отчёт о взаиморасчетах. Соответствует разделу **Финансы → Документы → Аналитические отчеты → Отчет о взаиморасчетах** в личном кабинете. + * Отчёт о взаиморасчётах + */ + reportAPICreateMutualSettlementReport(clientId, apiKey, v1CreateMutualSettlementReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateMutualSettlementReportRaw({ clientId: clientId, apiKey: apiKey, v1CreateMutualSettlementReportRequest: v1CreateMutualSettlementReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения отчёта о компенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о компенсациях + */ + reportAPIGetCompensationReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetCompensationReportRequest'] == null) { + throw new runtime.RequiredError('v1GetCompensationReportRequest', 'Required parameter "v1GetCompensationReportRequest" was null or undefined when calling reportAPIGetCompensationReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/compensation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetCompensationReportRequestToJSON)(requestParameters['v1GetCompensationReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения отчёта о компенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о компенсациях + */ + reportAPIGetCompensationReport(v1GetCompensationReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIGetCompensationReportRaw({ v1GetCompensationReportRequest: v1GetCompensationReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения отчёта о декомпенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о декомпенсациях + */ + reportAPIGetDecompensationReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetDecompensationReportRequest'] == null) { + throw new runtime.RequiredError('v1GetDecompensationReportRequest', 'Required parameter "v1GetDecompensationReportRequest" was null or undefined when calling reportAPIGetDecompensationReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/decompensation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetDecompensationReportRequestToJSON)(requestParameters['v1GetDecompensationReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения отчёта о декомпенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о декомпенсациях + */ + reportAPIGetDecompensationReport(v1GetDecompensationReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIGetDecompensationReportRaw({ v1GetDecompensationReportRequest: v1GetDecompensationReportRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.FinanceAPI = FinanceAPI; diff --git a/dist/apis/Notification.d.ts b/dist/apis/Notification.d.ts new file mode 100644 index 0000000..8af09f0 --- /dev/null +++ b/dist/apis/Notification.d.ts @@ -0,0 +1,121 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { NotificationV1CheckNotificationRequest, NotificationV1CheckNotificationResponse, NotificationV1DeleteNotificationRequest, NotificationV1EnableNotificationRequest, NotificationV1GetNotificationPushTypeListResponse, NotificationV1NotificationListResponse, NotificationV1SetNotificationRequest, NotificationV1UpdateNotificationRequest } from '../models/index'; +export interface CheckNotificationRequest { + clientId: string; + apiKey: string; + notificationV1CheckNotificationRequest: NotificationV1CheckNotificationRequest; +} +export interface DeleteNotificationRequest { + clientId: string; + apiKey: string; + notificationV1DeleteNotificationRequest: NotificationV1DeleteNotificationRequest; +} +export interface EnableNotificationRequest { + clientId: string; + apiKey: string; + notificationV1EnableNotificationRequest: NotificationV1EnableNotificationRequest; +} +export interface GetNotificationPushTypeListRequest { + clientId: string; + apiKey: string; +} +export interface NotificationListRequest { + clientId: string; + apiKey: string; +} +export interface SetNotificationRequest { + clientId: string; + apiKey: string; + notificationV1SetNotificationRequest: NotificationV1SetNotificationRequest; +} +export interface UpdateNotificationRequest { + clientId: string; + apiKey: string; + notificationV1UpdateNotificationRequest: NotificationV1UpdateNotificationRequest; +} +/** + * + */ +export declare class Notification extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Проверить URL-адрес для уведомлений + */ + checkNotificationRaw(requestParameters: CheckNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Проверить URL-адрес для уведомлений + */ + checkNotification(clientId: string, apiKey: string, notificationV1CheckNotificationRequest: NotificationV1CheckNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Удалить URL-адрес для уведомлений + */ + deleteNotificationRaw(requestParameters: DeleteNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Удалить URL-адрес для уведомлений + */ + deleteNotification(clientId: string, apiKey: string, notificationV1DeleteNotificationRequest: NotificationV1DeleteNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Включить или выключить уведомления на URL-адрес + */ + enableNotificationRaw(requestParameters: EnableNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Включить или выключить уведомления на URL-адрес + */ + enableNotification(clientId: string, apiKey: string, notificationV1EnableNotificationRequest: NotificationV1EnableNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить типы пуш-уведомлений + */ + getNotificationPushTypeListRaw(requestParameters: GetNotificationPushTypeListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить типы пуш-уведомлений + */ + getNotificationPushTypeList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить информацию по подключённым URL-адресам + */ + notificationListRaw(requestParameters: NotificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить информацию по подключённым URL-адресам + */ + notificationList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Подключить URL-адрес для уведомлений + */ + setNotificationRaw(requestParameters: SetNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Подключить URL-адрес для уведомлений + */ + setNotification(clientId: string, apiKey: string, notificationV1SetNotificationRequest: NotificationV1SetNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Изменить URL-адрес для уведомлений + */ + updateNotificationRaw(requestParameters: UpdateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Изменить URL-адрес для уведомлений + */ + updateNotification(clientId: string, apiKey: string, notificationV1UpdateNotificationRequest: NotificationV1UpdateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/Notification.js b/dist/apis/Notification.js new file mode 100644 index 0000000..a580821 --- /dev/null +++ b/dist/apis/Notification.js @@ -0,0 +1,327 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Notification = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class Notification extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Проверить URL-адрес для уведомлений + */ + checkNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling checkNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling checkNotification().'); + } + if (requestParameters['notificationV1CheckNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1CheckNotificationRequest', 'Required parameter "notificationV1CheckNotificationRequest" was null or undefined when calling checkNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.NotificationV1CheckNotificationRequestToJSON)(requestParameters['notificationV1CheckNotificationRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NotificationV1CheckNotificationResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Проверить URL-адрес для уведомлений + */ + checkNotification(clientId, apiKey, notificationV1CheckNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.checkNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1CheckNotificationRequest: notificationV1CheckNotificationRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Удалить URL-адрес для уведомлений + */ + deleteNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling deleteNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling deleteNotification().'); + } + if (requestParameters['notificationV1DeleteNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1DeleteNotificationRequest', 'Required parameter "notificationV1DeleteNotificationRequest" was null or undefined when calling deleteNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.NotificationV1DeleteNotificationRequestToJSON)(requestParameters['notificationV1DeleteNotificationRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Удалить URL-адрес для уведомлений + */ + deleteNotification(clientId, apiKey, notificationV1DeleteNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.deleteNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1DeleteNotificationRequest: notificationV1DeleteNotificationRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Включить или выключить уведомления на URL-адрес + */ + enableNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling enableNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling enableNotification().'); + } + if (requestParameters['notificationV1EnableNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1EnableNotificationRequest', 'Required parameter "notificationV1EnableNotificationRequest" was null or undefined when calling enableNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/enable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.NotificationV1EnableNotificationRequestToJSON)(requestParameters['notificationV1EnableNotificationRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Включить или выключить уведомления на URL-адрес + */ + enableNotification(clientId, apiKey, notificationV1EnableNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.enableNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1EnableNotificationRequest: notificationV1EnableNotificationRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить типы пуш-уведомлений + */ + getNotificationPushTypeListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getNotificationPushTypeList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getNotificationPushTypeList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/push-type/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NotificationV1GetNotificationPushTypeListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить типы пуш-уведомлений + */ + getNotificationPushTypeList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getNotificationPushTypeListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить информацию по подключённым URL-адресам + */ + notificationListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling notificationList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling notificationList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NotificationV1NotificationListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить информацию по подключённым URL-адресам + */ + notificationList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.notificationListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Подключить URL-адрес для уведомлений + */ + setNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling setNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling setNotification().'); + } + if (requestParameters['notificationV1SetNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1SetNotificationRequest', 'Required parameter "notificationV1SetNotificationRequest" was null or undefined when calling setNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.NotificationV1SetNotificationRequestToJSON)(requestParameters['notificationV1SetNotificationRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Подключить URL-адрес для уведомлений + */ + setNotification(clientId, apiKey, notificationV1SetNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.setNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1SetNotificationRequest: notificationV1SetNotificationRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Изменить URL-адрес для уведомлений + */ + updateNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling updateNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling updateNotification().'); + } + if (requestParameters['notificationV1UpdateNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1UpdateNotificationRequest', 'Required parameter "notificationV1UpdateNotificationRequest" was null or undefined when calling updateNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.NotificationV1UpdateNotificationRequestToJSON)(requestParameters['notificationV1UpdateNotificationRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Изменить URL-адрес для уведомлений + */ + updateNotification(clientId, apiKey, notificationV1UpdateNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.updateNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1UpdateNotificationRequest: notificationV1UpdateNotificationRequest }, initOverrides); + }); + } +} +exports.Notification = Notification; diff --git a/dist/apis/OrderAPI.d.ts b/dist/apis/OrderAPI.d.ts new file mode 100644 index 0000000..531c2de --- /dev/null +++ b/dist/apis/OrderAPI.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1OrderCancelCheckRequest, V1OrderCancelCheckResponse, V1OrderCancelRequest, V1OrderCancelResponse, V1OrderCancelStatusRequest, V1OrderCancelStatusResponse, V1OrderCreateRequest, V1OrderCreateResponse } from '../models/index'; +export interface OrderAPIOrderCancelRequest { + v1OrderCancelRequest: V1OrderCancelRequest; +} +export interface OrderAPIOrderCancelCheckRequest { + v1OrderCancelCheckRequest: V1OrderCancelCheckRequest; +} +export interface OrderAPIOrderCancelStatusRequest { + v1OrderCancelStatusRequest: V1OrderCancelStatusRequest; +} +export interface OrderAPIOrderCreateRequest { + v1OrderCreateRequest: V1OrderCreateRequest; +} +/** + * + */ +export declare class OrderAPI extends runtime.BaseAPI { + /** + * Отменяет заказ со всеми отправлениями. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-order](#operation/CancelReasonListByOrder). + * Отменить заказ + */ + orderAPIOrderCancelRaw(requestParameters: OrderAPIOrderCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отменяет заказ со всеми отправлениями. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-order](#operation/CancelReasonListByOrder). + * Отменить заказ + */ + orderAPIOrderCancel(v1OrderCancelRequest: V1OrderCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает возможность отмены заказа для покупателя. + * Проверить возможность отмены заказа + */ + orderAPIOrderCancelCheckRaw(requestParameters: OrderAPIOrderCancelCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает возможность отмены заказа для покупателя. + * Проверить возможность отмены заказа + */ + orderAPIOrderCancelCheck(v1OrderCancelCheckRequest: V1OrderCancelCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить статус отмены заказа + */ + orderAPIOrderCancelStatusRaw(requestParameters: OrderAPIOrderCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус отмены заказа + */ + orderAPIOrderCancelStatus(v1OrderCancelStatusRequest: V1OrderCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Создаёт заказ для покупателя и получателя в системе Ozon. Передайте вариант доставки из ответа метода [/v2/delivery/checkout](#operation/DeliveryCheckout). В ответе могут быть не все отправления. Получите список всех отправлений по номеру заказа `order_number` методом: - [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList) — для схемы FBO; - [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) — для схемы FBS. Значение параметра `delivery_schema` должно совпадать с тем, что вы передали в [/v2/delivery/checkout](#operation/DeliveryCheckout). + * Создать заказ + */ + orderAPIOrderCreateRaw(requestParameters: OrderAPIOrderCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Создаёт заказ для покупателя и получателя в системе Ozon. Передайте вариант доставки из ответа метода [/v2/delivery/checkout](#operation/DeliveryCheckout). В ответе могут быть не все отправления. Получите список всех отправлений по номеру заказа `order_number` методом: - [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList) — для схемы FBO; - [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) — для схемы FBS. Значение параметра `delivery_schema` должно совпадать с тем, что вы передали в [/v2/delivery/checkout](#operation/DeliveryCheckout). + * Создать заказ + */ + orderAPIOrderCreate(v1OrderCreateRequest: V1OrderCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/OrderAPI.js b/dist/apis/OrderAPI.js new file mode 100644 index 0000000..b337a65 --- /dev/null +++ b/dist/apis/OrderAPI.js @@ -0,0 +1,159 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class OrderAPI extends runtime.BaseAPI { + /** + * Отменяет заказ со всеми отправлениями. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-order](#operation/CancelReasonListByOrder). + * Отменить заказ + */ + orderAPIOrderCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1OrderCancelRequest'] == null) { + throw new runtime.RequiredError('v1OrderCancelRequest', 'Required parameter "v1OrderCancelRequest" was null or undefined when calling orderAPIOrderCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/order/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1OrderCancelRequestToJSON)(requestParameters['v1OrderCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1OrderCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Отменяет заказ со всеми отправлениями. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-order](#operation/CancelReasonListByOrder). + * Отменить заказ + */ + orderAPIOrderCancel(v1OrderCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.orderAPIOrderCancelRaw({ v1OrderCancelRequest: v1OrderCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает возможность отмены заказа для покупателя. + * Проверить возможность отмены заказа + */ + orderAPIOrderCancelCheckRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1OrderCancelCheckRequest'] == null) { + throw new runtime.RequiredError('v1OrderCancelCheckRequest', 'Required parameter "v1OrderCancelCheckRequest" was null or undefined when calling orderAPIOrderCancelCheck().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/order/cancel/check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1OrderCancelCheckRequestToJSON)(requestParameters['v1OrderCancelCheckRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1OrderCancelCheckResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает возможность отмены заказа для покупателя. + * Проверить возможность отмены заказа + */ + orderAPIOrderCancelCheck(v1OrderCancelCheckRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.orderAPIOrderCancelCheckRaw({ v1OrderCancelCheckRequest: v1OrderCancelCheckRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить статус отмены заказа + */ + orderAPIOrderCancelStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1OrderCancelStatusRequest'] == null) { + throw new runtime.RequiredError('v1OrderCancelStatusRequest', 'Required parameter "v1OrderCancelStatusRequest" was null or undefined when calling orderAPIOrderCancelStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/order/cancel/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1OrderCancelStatusRequestToJSON)(requestParameters['v1OrderCancelStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1OrderCancelStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить статус отмены заказа + */ + orderAPIOrderCancelStatus(v1OrderCancelStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.orderAPIOrderCancelStatusRaw({ v1OrderCancelStatusRequest: v1OrderCancelStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Создаёт заказ для покупателя и получателя в системе Ozon. Передайте вариант доставки из ответа метода [/v2/delivery/checkout](#operation/DeliveryCheckout). В ответе могут быть не все отправления. Получите список всех отправлений по номеру заказа `order_number` методом: - [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList) — для схемы FBO; - [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) — для схемы FBS. Значение параметра `delivery_schema` должно совпадать с тем, что вы передали в [/v2/delivery/checkout](#operation/DeliveryCheckout). + * Создать заказ + */ + orderAPIOrderCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1OrderCreateRequest'] == null) { + throw new runtime.RequiredError('v1OrderCreateRequest', 'Required parameter "v1OrderCreateRequest" was null or undefined when calling orderAPIOrderCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/order/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1OrderCreateRequestToJSON)(requestParameters['v1OrderCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1OrderCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Создаёт заказ для покупателя и получателя в системе Ozon. Передайте вариант доставки из ответа метода [/v2/delivery/checkout](#operation/DeliveryCheckout). В ответе могут быть не все отправления. Получите список всех отправлений по номеру заказа `order_number` методом: - [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList) — для схемы FBO; - [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) — для схемы FBS. Значение параметра `delivery_schema` должно совпадать с тем, что вы передали в [/v2/delivery/checkout](#operation/DeliveryCheckout). + * Создать заказ + */ + orderAPIOrderCreate(v1OrderCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.orderAPIOrderCreateRaw({ v1OrderCreateRequest: v1OrderCreateRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.OrderAPI = OrderAPI; diff --git a/dist/apis/OrderDirectFBP.d.ts b/dist/apis/OrderDirectFBP.d.ts new file mode 100644 index 0000000..be4a6d5 --- /dev/null +++ b/dist/apis/OrderDirectFBP.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpAvailableTimeslotListRequest, V1FbpAvailableTimeslotListResponse, V1FbpEditTimeslotRequest, V1FbpEditTimeslotResponse, V1FbpOrderDirectCancelRequest, V1FbpOrderDirectCancelResponse, V1FbpOrderDirectSellerDlvEditRequest, V1FbpOrderDirectSellerDlvEditResponse } from '../models/index'; +export interface FbpAPIFbpAvailableTimeslotListRequest { + v1FbpAvailableTimeslotListRequest: V1FbpAvailableTimeslotListRequest; +} +export interface FbpAPIFbpEditTimeslotRequest { + v1FbpEditTimeslotRequest: V1FbpEditTimeslotRequest; +} +export interface FbpAPIFbpOrderDirectCancelRequest { + v1FbpOrderDirectCancelRequest: V1FbpOrderDirectCancelRequest; +} +export interface FbpAPIFbpOrderDirectSellerDlvEditRequest { + v1FbpOrderDirectSellerDlvEditRequest: V1FbpOrderDirectSellerDlvEditRequest; +} +/** + * + */ +export declare class OrderDirectFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для поставки + */ + fbpAPIFbpAvailableTimeslotListRaw(requestParameters: FbpAPIFbpAvailableTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для поставки + */ + fbpAPIFbpAvailableTimeslotList(v1FbpAvailableTimeslotListRequest: V1FbpAvailableTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в заявке на поставку + */ + fbpAPIFbpEditTimeslotRaw(requestParameters: FbpAPIFbpEditTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в заявке на поставку + */ + fbpAPIFbpEditTimeslot(v1FbpEditTimeslotRequest: V1FbpEditTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку + */ + fbpAPIFbpOrderDirectCancelRaw(requestParameters: FbpAPIFbpOrderDirectCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку + */ + fbpAPIFbpOrderDirectCancel(v1FbpOrderDirectCancelRequest: V1FbpOrderDirectCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца + */ + fbpAPIFbpOrderDirectSellerDlvEditRaw(requestParameters: FbpAPIFbpOrderDirectSellerDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца + */ + fbpAPIFbpOrderDirectSellerDlvEdit(v1FbpOrderDirectSellerDlvEditRequest: V1FbpOrderDirectSellerDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/OrderDirectFBP.js b/dist/apis/OrderDirectFBP.js new file mode 100644 index 0000000..9f378ce --- /dev/null +++ b/dist/apis/OrderDirectFBP.js @@ -0,0 +1,161 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderDirectFBP = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class OrderDirectFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для поставки + */ + fbpAPIFbpAvailableTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpAvailableTimeslotListRequest'] == null) { + throw new runtime.RequiredError('v1FbpAvailableTimeslotListRequest', 'Required parameter "v1FbpAvailableTimeslotListRequest" was null or undefined when calling fbpAPIFbpAvailableTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/direct/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpAvailableTimeslotListRequestToJSON)(requestParameters['v1FbpAvailableTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpAvailableTimeslotListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для поставки + */ + fbpAPIFbpAvailableTimeslotList(v1FbpAvailableTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpAvailableTimeslotListRaw({ v1FbpAvailableTimeslotListRequest: v1FbpAvailableTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в заявке на поставку + */ + fbpAPIFbpEditTimeslotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpEditTimeslotRequest'] == null) { + throw new runtime.RequiredError('v1FbpEditTimeslotRequest', 'Required parameter "v1FbpEditTimeslotRequest" was null or undefined when calling fbpAPIFbpEditTimeslot().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/direct/timeslot/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpEditTimeslotRequestToJSON)(requestParameters['v1FbpEditTimeslotRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpEditTimeslotResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в заявке на поставку + */ + fbpAPIFbpEditTimeslot(v1FbpEditTimeslotRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpEditTimeslotRaw({ v1FbpEditTimeslotRequest: v1FbpEditTimeslotRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку + */ + fbpAPIFbpOrderDirectCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderDirectCancelRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDirectCancelRequest', 'Required parameter "v1FbpOrderDirectCancelRequest" was null or undefined when calling fbpAPIFbpOrderDirectCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/direct/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderDirectCancelRequestToJSON)(requestParameters['v1FbpOrderDirectCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderDirectCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку + */ + fbpAPIFbpOrderDirectCancel(v1FbpOrderDirectCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDirectCancelRaw({ v1FbpOrderDirectCancelRequest: v1FbpOrderDirectCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца + */ + fbpAPIFbpOrderDirectSellerDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderDirectSellerDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDirectSellerDlvEditRequest', 'Required parameter "v1FbpOrderDirectSellerDlvEditRequest" was null or undefined when calling fbpAPIFbpOrderDirectSellerDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/direct/seller-dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderDirectSellerDlvEditRequestToJSON)(requestParameters['v1FbpOrderDirectSellerDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderDirectSellerDlvEditResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца + */ + fbpAPIFbpOrderDirectSellerDlvEdit(v1FbpOrderDirectSellerDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDirectSellerDlvEditRaw({ v1FbpOrderDirectSellerDlvEditRequest: v1FbpOrderDirectSellerDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.OrderDirectFBP = OrderDirectFBP; diff --git a/dist/apis/OrderDropOffFBP.d.ts b/dist/apis/OrderDropOffFBP.d.ts new file mode 100644 index 0000000..a953307 --- /dev/null +++ b/dist/apis/OrderDropOffFBP.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpOrderDropOffCancelRequest, V1FbpOrderDropOffCancelResponse, V1FbpOrderDropOffDlvEditRequest, V1FbpOrderDropOffDlvEditResponse, V1FbpOrderDropOffTimetableRequest, V1FbpOrderDropOffTimetableResponse } from '../models/index'; +export interface FbpAPIFbpOrderDropOffCancelRequest { + clientId: string; + apiKey: string; + v1FbpOrderDropOffCancelRequest: V1FbpOrderDropOffCancelRequest; +} +export interface FbpAPIFbpOrderDropOffDlvEditRequest { + clientId: string; + apiKey: string; + v1FbpOrderDropOffDlvEditRequest: V1FbpOrderDropOffDlvEditRequest; +} +export interface FbpAPIFbpOrderDropOffTimetableRequest { + clientId: string; + apiKey: string; + v1FbpOrderDropOffTimetableRequest: V1FbpOrderDropOffTimetableRequest; +} +/** + * + */ +export declare class OrderDropOffFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку drop-off + */ + fbpAPIFbpOrderDropOffCancelRaw(requestParameters: FbpAPIFbpOrderDropOffCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку drop-off + */ + fbpAPIFbpOrderDropOffCancel(clientId: string, apiKey: string, v1FbpOrderDropOffCancelRequest: V1FbpOrderDropOffCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать информацию о поставке на drop-off пункт + */ + fbpAPIFbpOrderDropOffDlvEditRaw(requestParameters: FbpAPIFbpOrderDropOffDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать информацию о поставке на drop-off пункт + */ + fbpAPIFbpOrderDropOffDlvEdit(clientId: string, apiKey: string, v1FbpOrderDropOffDlvEditRequest: V1FbpOrderDropOffDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить график работы drop-off пункта + */ + fbpAPIFbpOrderDropOffTimetableRaw(requestParameters: FbpAPIFbpOrderDropOffTimetableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить график работы drop-off пункта + */ + fbpAPIFbpOrderDropOffTimetable(clientId: string, apiKey: string, v1FbpOrderDropOffTimetableRequest: V1FbpOrderDropOffTimetableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/OrderDropOffFBP.js b/dist/apis/OrderDropOffFBP.js new file mode 100644 index 0000000..b1a255f --- /dev/null +++ b/dist/apis/OrderDropOffFBP.js @@ -0,0 +1,165 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderDropOffFBP = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class OrderDropOffFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку drop-off + */ + fbpAPIFbpOrderDropOffCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpAPIFbpOrderDropOffCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpAPIFbpOrderDropOffCancel().'); + } + if (requestParameters['v1FbpOrderDropOffCancelRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDropOffCancelRequest', 'Required parameter "v1FbpOrderDropOffCancelRequest" was null or undefined when calling fbpAPIFbpOrderDropOffCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/order/drop-off/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderDropOffCancelRequestToJSON)(requestParameters['v1FbpOrderDropOffCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderDropOffCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку drop-off + */ + fbpAPIFbpOrderDropOffCancel(clientId, apiKey, v1FbpOrderDropOffCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDropOffCancelRaw({ clientId: clientId, apiKey: apiKey, v1FbpOrderDropOffCancelRequest: v1FbpOrderDropOffCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать информацию о поставке на drop-off пункт + */ + fbpAPIFbpOrderDropOffDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpAPIFbpOrderDropOffDlvEdit().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpAPIFbpOrderDropOffDlvEdit().'); + } + if (requestParameters['v1FbpOrderDropOffDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDropOffDlvEditRequest', 'Required parameter "v1FbpOrderDropOffDlvEditRequest" was null or undefined when calling fbpAPIFbpOrderDropOffDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/order/drop-off/dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderDropOffDlvEditRequestToJSON)(requestParameters['v1FbpOrderDropOffDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderDropOffDlvEditResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать информацию о поставке на drop-off пункт + */ + fbpAPIFbpOrderDropOffDlvEdit(clientId, apiKey, v1FbpOrderDropOffDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDropOffDlvEditRaw({ clientId: clientId, apiKey: apiKey, v1FbpOrderDropOffDlvEditRequest: v1FbpOrderDropOffDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить график работы drop-off пункта + */ + fbpAPIFbpOrderDropOffTimetableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpAPIFbpOrderDropOffTimetable().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpAPIFbpOrderDropOffTimetable().'); + } + if (requestParameters['v1FbpOrderDropOffTimetableRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDropOffTimetableRequest', 'Required parameter "v1FbpOrderDropOffTimetableRequest" was null or undefined when calling fbpAPIFbpOrderDropOffTimetable().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/order/drop-off/timetable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderDropOffTimetableRequestToJSON)(requestParameters['v1FbpOrderDropOffTimetableRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderDropOffTimetableResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить график работы drop-off пункта + */ + fbpAPIFbpOrderDropOffTimetable(clientId, apiKey, v1FbpOrderDropOffTimetableRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDropOffTimetableRaw({ clientId: clientId, apiKey: apiKey, v1FbpOrderDropOffTimetableRequest: v1FbpOrderDropOffTimetableRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.OrderDropOffFBP = OrderDropOffFBP; diff --git a/dist/apis/OrderPickupFBP.d.ts b/dist/apis/OrderPickupFBP.d.ts new file mode 100644 index 0000000..79bcd32 --- /dev/null +++ b/dist/apis/OrderPickupFBP.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpOrderPickUpCancelRequest, V1FbpOrderPickUpCancelResponse, V1FbpOrderPickUpDlvEditRequest, V1FbpOrderPickUpDlvEditResponse } from '../models/index'; +export interface FbpAPIFbpOrderPickUpCancelRequest { + v1FbpOrderPickUpCancelRequest: V1FbpOrderPickUpCancelRequest; +} +export interface FbpAPIFbpOrderPickUpDlvEditRequest { + v1FbpOrderPickUpDlvEditRequest: V1FbpOrderPickUpDlvEditRequest; +} +/** + * + */ +export declare class OrderPickupFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить pick-up поставку + */ + fbpAPIFbpOrderPickUpCancelRaw(requestParameters: FbpAPIFbpOrderPickUpCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить pick-up поставку + */ + fbpAPIFbpOrderPickUpCancel(v1FbpOrderPickUpCancelRequest: V1FbpOrderPickUpCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить данные о точке забора + */ + fbpAPIFbpOrderPickUpDlvEditRaw(requestParameters: FbpAPIFbpOrderPickUpDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить данные о точке забора + */ + fbpAPIFbpOrderPickUpDlvEdit(v1FbpOrderPickUpDlvEditRequest: V1FbpOrderPickUpDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/OrderPickupFBP.js b/dist/apis/OrderPickupFBP.js new file mode 100644 index 0000000..4698d7c --- /dev/null +++ b/dist/apis/OrderPickupFBP.js @@ -0,0 +1,97 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderPickupFBP = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class OrderPickupFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить pick-up поставку + */ + fbpAPIFbpOrderPickUpCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderPickUpCancelRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderPickUpCancelRequest', 'Required parameter "v1FbpOrderPickUpCancelRequest" was null or undefined when calling fbpAPIFbpOrderPickUpCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/pick-up/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderPickUpCancelRequestToJSON)(requestParameters['v1FbpOrderPickUpCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderPickUpCancelResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить pick-up поставку + */ + fbpAPIFbpOrderPickUpCancel(v1FbpOrderPickUpCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderPickUpCancelRaw({ v1FbpOrderPickUpCancelRequest: v1FbpOrderPickUpCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить данные о точке забора + */ + fbpAPIFbpOrderPickUpDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderPickUpDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderPickUpDlvEditRequest', 'Required parameter "v1FbpOrderPickUpDlvEditRequest" was null or undefined when calling fbpAPIFbpOrderPickUpDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/pick-up/dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1FbpOrderPickUpDlvEditRequestToJSON)(requestParameters['v1FbpOrderPickUpDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1FbpOrderPickUpDlvEditResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить данные о точке забора + */ + fbpAPIFbpOrderPickUpDlvEdit(v1FbpOrderPickUpDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderPickUpDlvEditRaw({ v1FbpOrderPickUpDlvEditRequest: v1FbpOrderPickUpDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.OrderPickupFBP = OrderPickupFBP; diff --git a/dist/apis/Pass.d.ts b/dist/apis/Pass.d.ts new file mode 100644 index 0000000..196eb73 --- /dev/null +++ b/dist/apis/Pass.d.ts @@ -0,0 +1,97 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ArrivalpassArrivalPassCreateRequest, ArrivalpassArrivalPassCreateResponse, ArrivalpassArrivalPassDeleteRequest, ArrivalpassArrivalPassListRequest, ArrivalpassArrivalPassListResponse, ArrivalpassArrivalPassUpdateRequest, SellerSellerAPIArrivalPassCreateRequest, SellerSellerAPIArrivalPassCreateResponse, SellerSellerAPIArrivalPassDeleteRequest, SellerSellerAPIArrivalPassUpdateRequest } from '../models/index'; +export interface CarriagePassCreateRequest { + sellerSellerAPIArrivalPassCreateRequest: SellerSellerAPIArrivalPassCreateRequest; +} +export interface CarriagePassDeleteRequest { + sellerSellerAPIArrivalPassDeleteRequest: SellerSellerAPIArrivalPassDeleteRequest; +} +export interface CarriagePassUpdateRequest { + sellerSellerAPIArrivalPassUpdateRequest: SellerSellerAPIArrivalPassUpdateRequest; +} +export interface PassListRequest { + arrivalpassArrivalPassListRequest: ArrivalpassArrivalPassListRequest; +} +export interface ReturnPassCreateRequest { + arrivalpassArrivalPassCreateRequest: ArrivalpassArrivalPassCreateRequest; +} +export interface ReturnPassDeleteRequest { + arrivalpassArrivalPassDeleteRequest: ArrivalpassArrivalPassDeleteRequest; +} +export interface ReturnPassUpdateRequest { + arrivalpassArrivalPassUpdateRequest: ArrivalpassArrivalPassUpdateRequest; +} +/** + * + */ +export declare class Pass extends runtime.BaseAPI { + /** + * Идентификатор созданного пропуска добавится к перевозке. + * Создать пропуск + */ + carriagePassCreateRaw(requestParameters: CarriagePassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Идентификатор созданного пропуска добавится к перевозке. + * Создать пропуск + */ + carriagePassCreate(sellerSellerAPIArrivalPassCreateRequest: SellerSellerAPIArrivalPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить пропуск + */ + carriagePassDeleteRaw(requestParameters: CarriagePassDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить пропуск + */ + carriagePassDelete(sellerSellerAPIArrivalPassDeleteRequest: SellerSellerAPIArrivalPassDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить пропуск + */ + carriagePassUpdateRaw(requestParameters: CarriagePassUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить пропуск + */ + carriagePassUpdate(sellerSellerAPIArrivalPassUpdateRequest: SellerSellerAPIArrivalPassUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список пропусков + */ + passListRaw(requestParameters: PassListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список пропусков + */ + passList(arrivalpassArrivalPassListRequest: ArrivalpassArrivalPassListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Создать пропуск для возврата + */ + returnPassCreateRaw(requestParameters: ReturnPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Создать пропуск для возврата + */ + returnPassCreate(arrivalpassArrivalPassCreateRequest: ArrivalpassArrivalPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить пропуск для возврата + */ + returnPassDeleteRaw(requestParameters: ReturnPassDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить пропуск для возврата + */ + returnPassDelete(arrivalpassArrivalPassDeleteRequest: ArrivalpassArrivalPassDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить пропуск для возврата + */ + returnPassUpdateRaw(requestParameters: ReturnPassUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить пропуск для возврата + */ + returnPassUpdate(arrivalpassArrivalPassUpdateRequest: ArrivalpassArrivalPassUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/Pass.js b/dist/apis/Pass.js new file mode 100644 index 0000000..12a600b --- /dev/null +++ b/dist/apis/Pass.js @@ -0,0 +1,241 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Pass = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class Pass extends runtime.BaseAPI { + /** + * Идентификатор созданного пропуска добавится к перевозке. + * Создать пропуск + */ + carriagePassCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerSellerAPIArrivalPassCreateRequest'] == null) { + throw new runtime.RequiredError('sellerSellerAPIArrivalPassCreateRequest', 'Required parameter "sellerSellerAPIArrivalPassCreateRequest" was null or undefined when calling carriagePassCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/pass/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SellerSellerAPIArrivalPassCreateRequestToJSON)(requestParameters['sellerSellerAPIArrivalPassCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SellerSellerAPIArrivalPassCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Идентификатор созданного пропуска добавится к перевозке. + * Создать пропуск + */ + carriagePassCreate(sellerSellerAPIArrivalPassCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriagePassCreateRaw({ sellerSellerAPIArrivalPassCreateRequest: sellerSellerAPIArrivalPassCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить пропуск + */ + carriagePassDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerSellerAPIArrivalPassDeleteRequest'] == null) { + throw new runtime.RequiredError('sellerSellerAPIArrivalPassDeleteRequest', 'Required parameter "sellerSellerAPIArrivalPassDeleteRequest" was null or undefined when calling carriagePassDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/pass/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SellerSellerAPIArrivalPassDeleteRequestToJSON)(requestParameters['sellerSellerAPIArrivalPassDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Удалить пропуск + */ + carriagePassDelete(sellerSellerAPIArrivalPassDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.carriagePassDeleteRaw({ sellerSellerAPIArrivalPassDeleteRequest: sellerSellerAPIArrivalPassDeleteRequest }, initOverrides); + }); + } + /** + * Обновить пропуск + */ + carriagePassUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerSellerAPIArrivalPassUpdateRequest'] == null) { + throw new runtime.RequiredError('sellerSellerAPIArrivalPassUpdateRequest', 'Required parameter "sellerSellerAPIArrivalPassUpdateRequest" was null or undefined when calling carriagePassUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/pass/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SellerSellerAPIArrivalPassUpdateRequestToJSON)(requestParameters['sellerSellerAPIArrivalPassUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Обновить пропуск + */ + carriagePassUpdate(sellerSellerAPIArrivalPassUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.carriagePassUpdateRaw({ sellerSellerAPIArrivalPassUpdateRequest: sellerSellerAPIArrivalPassUpdateRequest }, initOverrides); + }); + } + /** + * Список пропусков + */ + passListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['arrivalpassArrivalPassListRequest'] == null) { + throw new runtime.RequiredError('arrivalpassArrivalPassListRequest', 'Required parameter "arrivalpassArrivalPassListRequest" was null or undefined when calling passList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pass/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ArrivalpassArrivalPassListRequestToJSON)(requestParameters['arrivalpassArrivalPassListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ArrivalpassArrivalPassListResponseFromJSON)(jsonValue)); + }); + } + /** + * Список пропусков + */ + passList(arrivalpassArrivalPassListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.passListRaw({ arrivalpassArrivalPassListRequest: arrivalpassArrivalPassListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Создать пропуск для возврата + */ + returnPassCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['arrivalpassArrivalPassCreateRequest'] == null) { + throw new runtime.RequiredError('arrivalpassArrivalPassCreateRequest', 'Required parameter "arrivalpassArrivalPassCreateRequest" was null or undefined when calling returnPassCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/return/pass/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ArrivalpassArrivalPassCreateRequestToJSON)(requestParameters['arrivalpassArrivalPassCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ArrivalpassArrivalPassCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Создать пропуск для возврата + */ + returnPassCreate(arrivalpassArrivalPassCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnPassCreateRaw({ arrivalpassArrivalPassCreateRequest: arrivalpassArrivalPassCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить пропуск для возврата + */ + returnPassDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['arrivalpassArrivalPassDeleteRequest'] == null) { + throw new runtime.RequiredError('arrivalpassArrivalPassDeleteRequest', 'Required parameter "arrivalpassArrivalPassDeleteRequest" was null or undefined when calling returnPassDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/return/pass/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ArrivalpassArrivalPassDeleteRequestToJSON)(requestParameters['arrivalpassArrivalPassDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Удалить пропуск для возврата + */ + returnPassDelete(arrivalpassArrivalPassDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.returnPassDeleteRaw({ arrivalpassArrivalPassDeleteRequest: arrivalpassArrivalPassDeleteRequest }, initOverrides); + }); + } + /** + * Обновить пропуск для возврата + */ + returnPassUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['arrivalpassArrivalPassUpdateRequest'] == null) { + throw new runtime.RequiredError('arrivalpassArrivalPassUpdateRequest', 'Required parameter "arrivalpassArrivalPassUpdateRequest" was null or undefined when calling returnPassUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/return/pass/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ArrivalpassArrivalPassUpdateRequestToJSON)(requestParameters['arrivalpassArrivalPassUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Обновить пропуск для возврата + */ + returnPassUpdate(arrivalpassArrivalPassUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.returnPassUpdateRaw({ arrivalpassArrivalPassUpdateRequest: arrivalpassArrivalPassUpdateRequest }, initOverrides); + }); + } +} +exports.Pass = Pass; diff --git a/dist/apis/PolygonAPI.d.ts b/dist/apis/PolygonAPI.d.ts new file mode 100644 index 0000000..d72573f --- /dev/null +++ b/dist/apis/PolygonAPI.d.ts @@ -0,0 +1,113 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Polygonv1PolygonBindRequest, Polygonv1PolygonCreateRequest, Polygonv1PolygonCreateResponse, V1PolygonDeleteRequest, V1PolygonListRequest, V1PolygonListResponse, V1PolygonTimeCoordinatesUpdateRequest, V1PolygonTimeSetRequest, V2PolygonBindRequest } from '../models/index'; +export interface PolygonAPIBindPolygonRequest { + clientId: string; + apiKey: string; + polygonv1PolygonBindRequest: Polygonv1PolygonBindRequest; +} +export interface PolygonAPICreatePolygonRequest { + clientId: string; + apiKey: string; + polygonv1PolygonCreateRequest: Polygonv1PolygonCreateRequest; +} +export interface PolygonBindRequest { + clientId: string; + apiKey: string; + v2PolygonBindRequest?: V2PolygonBindRequest; +} +export interface PolygonDeleteRequest { + clientId: string; + apiKey: string; + v1PolygonDeleteRequest?: V1PolygonDeleteRequest; +} +export interface PolygonListRequest { + clientId: string; + apiKey: string; + v1PolygonListRequest?: V1PolygonListRequest; +} +export interface PolygonTimeCoordinatesUpdateRequest { + clientId: string; + apiKey: string; + v1PolygonTimeCoordinatesUpdateRequest?: V1PolygonTimeCoordinatesUpdateRequest; +} +export interface PolygonTimeSetRequest { + clientId: string; + apiKey: string; + v1PolygonTimeSetRequest?: V1PolygonTimeSetRequest; +} +/** + * + */ +export declare class PolygonAPI extends runtime.BaseAPI { + /** + * + * Свяжите метод доставки с полигоном доставки + */ + polygonAPIBindPolygonRaw(requestParameters: PolygonAPIBindPolygonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Свяжите метод доставки с полигоном доставки + */ + polygonAPIBindPolygon(clientId: string, apiKey: string, polygonv1PolygonBindRequest: Polygonv1PolygonBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете добавить полигон к методу доставки. Создайте полигон, получив его координаты на https://geojson.io: отметьте на карте минимум 3 точки и соедините их линиями. + * Создайте полигон доставки + */ + polygonAPICreatePolygonRaw(requestParameters: PolygonAPICreatePolygonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете добавить полигон к методу доставки. Создайте полигон, получив его координаты на https://geojson.io: отметьте на карте минимум 3 точки и соедините их линиями. + * Создайте полигон доставки + */ + polygonAPICreatePolygon(clientId: string, apiKey: string, polygonv1PolygonCreateRequest: Polygonv1PolygonCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Связать метод доставки с полигоном + */ + polygonBindRaw(requestParameters: PolygonBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Связать метод доставки с полигоном + */ + polygonBind(clientId: string, apiKey: string, v2PolygonBindRequest?: V2PolygonBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить полигон из области доставки + */ + polygonDeleteRaw(requestParameters: PolygonDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить полигон из области доставки + */ + polygonDelete(clientId: string, apiKey: string, v1PolygonDeleteRequest?: V1PolygonDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список установленных полигонов на метод доставки + */ + polygonListRaw(requestParameters: PolygonListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список установленных полигонов на метод доставки + */ + polygonList(clientId: string, apiKey: string, v1PolygonListRequest?: V1PolygonListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить координаты полигона доставки + */ + polygonTimeCoordinatesUpdateRaw(requestParameters: PolygonTimeCoordinatesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить координаты полигона доставки + */ + polygonTimeCoordinatesUpdate(clientId: string, apiKey: string, v1PolygonTimeCoordinatesUpdateRequest?: V1PolygonTimeCoordinatesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Установить новое время доставки в полигоне + */ + polygonTimeSetRaw(requestParameters: PolygonTimeSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Установить новое время доставки в полигоне + */ + polygonTimeSet(clientId: string, apiKey: string, v1PolygonTimeSetRequest?: V1PolygonTimeSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/PolygonAPI.js b/dist/apis/PolygonAPI.js new file mode 100644 index 0000000..926df12 --- /dev/null +++ b/dist/apis/PolygonAPI.js @@ -0,0 +1,312 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PolygonAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class PolygonAPI extends runtime.BaseAPI { + /** + * + * Свяжите метод доставки с полигоном доставки + */ + polygonAPIBindPolygonRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonAPIBindPolygon().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonAPIBindPolygon().'); + } + if (requestParameters['polygonv1PolygonBindRequest'] == null) { + throw new runtime.RequiredError('polygonv1PolygonBindRequest', 'Required parameter "polygonv1PolygonBindRequest" was null or undefined when calling polygonAPIBindPolygon().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/bind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Polygonv1PolygonBindRequestToJSON)(requestParameters['polygonv1PolygonBindRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * + * Свяжите метод доставки с полигоном доставки + */ + polygonAPIBindPolygon(clientId, apiKey, polygonv1PolygonBindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.polygonAPIBindPolygonRaw({ clientId: clientId, apiKey: apiKey, polygonv1PolygonBindRequest: polygonv1PolygonBindRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете добавить полигон к методу доставки. Создайте полигон, получив его координаты на https://geojson.io: отметьте на карте минимум 3 точки и соедините их линиями. + * Создайте полигон доставки + */ + polygonAPICreatePolygonRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonAPICreatePolygon().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonAPICreatePolygon().'); + } + if (requestParameters['polygonv1PolygonCreateRequest'] == null) { + throw new runtime.RequiredError('polygonv1PolygonCreateRequest', 'Required parameter "polygonv1PolygonCreateRequest" was null or undefined when calling polygonAPICreatePolygon().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Polygonv1PolygonCreateRequestToJSON)(requestParameters['polygonv1PolygonCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Polygonv1PolygonCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете добавить полигон к методу доставки. Создайте полигон, получив его координаты на https://geojson.io: отметьте на карте минимум 3 точки и соедините их линиями. + * Создайте полигон доставки + */ + polygonAPICreatePolygon(clientId, apiKey, polygonv1PolygonCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.polygonAPICreatePolygonRaw({ clientId: clientId, apiKey: apiKey, polygonv1PolygonCreateRequest: polygonv1PolygonCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Связать метод доставки с полигоном + */ + polygonBindRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonBind().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonBind().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/polygon/bind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2PolygonBindRequestToJSON)(requestParameters['v2PolygonBindRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Связать метод доставки с полигоном + */ + polygonBind(clientId, apiKey, v2PolygonBindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.polygonBindRaw({ clientId: clientId, apiKey: apiKey, v2PolygonBindRequest: v2PolygonBindRequest }, initOverrides); + }); + } + /** + * Удалить полигон из области доставки + */ + polygonDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PolygonDeleteRequestToJSON)(requestParameters['v1PolygonDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Удалить полигон из области доставки + */ + polygonDelete(clientId, apiKey, v1PolygonDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.polygonDeleteRaw({ clientId: clientId, apiKey: apiKey, v1PolygonDeleteRequest: v1PolygonDeleteRequest }, initOverrides); + }); + } + /** + * Получить список установленных полигонов на метод доставки + */ + polygonListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PolygonListRequestToJSON)(requestParameters['v1PolygonListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1PolygonListResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список установленных полигонов на метод доставки + */ + polygonList(clientId, apiKey, v1PolygonListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.polygonListRaw({ clientId: clientId, apiKey: apiKey, v1PolygonListRequest: v1PolygonListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Обновить координаты полигона доставки + */ + polygonTimeCoordinatesUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonTimeCoordinatesUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonTimeCoordinatesUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/time/coordinates/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PolygonTimeCoordinatesUpdateRequestToJSON)(requestParameters['v1PolygonTimeCoordinatesUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Обновить координаты полигона доставки + */ + polygonTimeCoordinatesUpdate(clientId, apiKey, v1PolygonTimeCoordinatesUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.polygonTimeCoordinatesUpdateRaw({ clientId: clientId, apiKey: apiKey, v1PolygonTimeCoordinatesUpdateRequest: v1PolygonTimeCoordinatesUpdateRequest }, initOverrides); + }); + } + /** + * Установить новое время доставки в полигоне + */ + polygonTimeSetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonTimeSet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonTimeSet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/time/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1PolygonTimeSetRequestToJSON)(requestParameters['v1PolygonTimeSetRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Установить новое время доставки в полигоне + */ + polygonTimeSet(clientId, apiKey, v1PolygonTimeSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.polygonTimeSetRaw({ clientId: clientId, apiKey: apiKey, v1PolygonTimeSetRequest: v1PolygonTimeSetRequest }, initOverrides); + }); + } +} +exports.PolygonAPI = PolygonAPI; diff --git a/dist/apis/Premium.d.ts b/dist/apis/Premium.d.ts new file mode 100644 index 0000000..3c34f00 --- /dev/null +++ b/dist/apis/Premium.d.ts @@ -0,0 +1,168 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { AnalyticsAnalyticsGetDataRequest, AnalyticsAnalyticsGetDataResponse, ChatChatSendMessageRequest, ChatChatSendMessageResponse, ChatChatStartRequest, ChatChatStartResponse, ChatRead, GetRealizationReportByDayResponse, V1AnalyticsProductQueriesDetailsRequest, V1AnalyticsProductQueriesDetailsResponse, V1AnalyticsProductQueriesRequest, V1AnalyticsProductQueriesResponse, V1GetRealizationReportByDayRequest, V1ProductPricesDetailsRequest, V1ProductPricesDetailsResponse, V1SearchQueriesTextRequest, V1SearchQueriesTextResponse, V1SearchQueriesTopRequest, V1SearchQueriesTopResponse, V2ChatReadResponse } from '../models/index'; +export interface AnalyticsAPIAnalyticsGetDataRequest { + clientId: string; + apiKey: string; + analyticsAnalyticsGetDataRequest: AnalyticsAnalyticsGetDataRequest; +} +export interface AnalyticsAPIAnalyticsProductQueriesRequest { + clientId: string; + apiKey: string; + v1AnalyticsProductQueriesRequest: V1AnalyticsProductQueriesRequest; +} +export interface AnalyticsAPIAnalyticsProductQueriesDetailsRequest { + clientId: string; + apiKey: string; + v1AnalyticsProductQueriesDetailsRequest: V1AnalyticsProductQueriesDetailsRequest; +} +export interface ChatAPIChatReadV2Request { + clientId: string; + apiKey: string; + chatRead: ChatRead; +} +export interface ChatAPIChatSendMessageRequest { + clientId: string; + apiKey: string; + chatChatSendMessageRequest: ChatChatSendMessageRequest; +} +export interface ChatAPIChatStartRequest { + clientId: string; + apiKey: string; + chatChatStartRequest: ChatChatStartRequest; +} +export interface FinanceAPIGetRealizationByDayReportV1Request { + clientId: string; + apiKey: string; + v1GetRealizationReportByDayRequest: V1GetRealizationReportByDayRequest; +} +export interface ProductPricesDetailsRequest { + clientId: string; + apiKey: string; + v1ProductPricesDetailsRequest: V1ProductPricesDetailsRequest; +} +export interface SearchQueriesAPISearchQueriesTextRequest { + clientId: string; + apiKey: string; + v1SearchQueriesTextRequest: V1SearchQueriesTextRequest; +} +export interface SearchQueriesAPISearchQueriesTopRequest { + clientId: string; + apiKey: string; + v1SearchQueriesTopRequest: V1SearchQueriesTopRequest; +} +/** + * + */ +export declare class Premium extends runtime.BaseAPI { + /** + * Уĸажите период и метриĸи, ĸоторые нужно посчитать. В ответе будет аналитиĸа, сгруппированная по параметру `dimensions`. Для продавцов без подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): - доступны данные за последние 3 месяца, - есть ограничения по способам группировки данных и метрикам. Для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) ограничений нет. Метод можно использовать не больше 1 раза в минуту. Соответствует разделу **Аналитика → Графики** в личном кабинете. + * Данные аналитики + */ + analyticsAPIAnalyticsGetDataRaw(requestParameters: AnalyticsAPIAnalyticsGetDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Уĸажите период и метриĸи, ĸоторые нужно посчитать. В ответе будет аналитиĸа, сгруппированная по параметру `dimensions`. Для продавцов без подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): - доступны данные за последние 3 месяца, - есть ограничения по способам группировки данных и метрикам. Для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) ограничений нет. Метод можно использовать не больше 1 раза в минуту. Соответствует разделу **Аналитика → Графики** в личном кабинете. + * Данные аналитики + */ + analyticsAPIAnalyticsGetData(clientId: string, apiKey: string, analyticsAnalyticsGetDataRequest: AnalyticsAnalyticsGetDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить данные о запросах ваших товаров. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить информацию о запросах моих товаров + */ + analyticsAPIAnalyticsProductQueriesRaw(requestParameters: AnalyticsAPIAnalyticsProductQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить данные о запросах ваших товаров. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить информацию о запросах моих товаров + */ + analyticsAPIAnalyticsProductQueries(clientId: string, apiKey: string, v1AnalyticsProductQueriesRequest: V1AnalyticsProductQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить данные по запросам на конкретный товар. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен просмотру данных по товару на вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить детализацию запросов по товару + */ + analyticsAPIAnalyticsProductQueriesDetailsRaw(requestParameters: AnalyticsAPIAnalyticsProductQueriesDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить данные по запросам на конкретный товар. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен просмотру данных по товару на вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить детализацию запросов по товару + */ + analyticsAPIAnalyticsProductQueriesDetails(clientId: string, apiKey: string, v1AnalyticsProductQueriesDetailsRequest: V1AnalyticsProductQueriesDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод для отметки выбранного сообщения и сообщений до него прочитанными.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * Отметить сообщения как прочитанные + */ + chatAPIChatReadV2Raw(requestParameters: ChatAPIChatReadV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод для отметки выбранного сообщения и сообщений до него прочитанными.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * Отметить сообщения как прочитанные + */ + chatAPIChatReadV2(clientId: string, apiKey: string, chatRead: ChatRead, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Отправляет сообщение в существующий чат по его идентификатору.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить сообщение в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить сообщение покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить сообщение + */ + chatAPIChatSendMessageRaw(requestParameters: ChatAPIChatSendMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Отправляет сообщение в существующий чат по его идентификатору.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить сообщение в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить сообщение покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить сообщение + */ + chatAPIChatSendMessage(clientId: string, apiKey: string, chatChatSendMessageRequest: ChatChatSendMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Создает новый чат с покупателем по отправлению. Например, чтобы уточнить адрес или модель товара. Для отправлений: - FBO — начать чат может только покупатель. - FBS и rFBS — вы можете открыть чат в течение 72 часов после оплаты или доставки отправления. + * Создать новый чат + */ + chatAPIChatStartRaw(requestParameters: ChatAPIChatStartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Создает новый чат с покупателем по отправлению. Например, чтобы уточнить адрес или модель товара. Для отправлений: - FBO — начать чат может только покупатель. - FBS и rFBS — вы можете открыть чат в течение 72 часов после оплаты или доставки отправления. + * Создать новый чат + */ + chatAPIChatStart(clientId: string, apiKey: string, chatChatStartRequest: ChatChatStartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Возвращает данные о суммах реализации из [отчёта о реализации товаров](#operation/FinanceAPI_GetRealizationReportV2) за день. Отмены и невыкупы не включаются. Данные доступны не более чем за 32 календарных дня от текущей даты. + * Отчёт о реализации товаров за день + */ + financeAPIGetRealizationByDayReportV1Raw(requestParameters: FinanceAPIGetRealizationByDayReportV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Возвращает данные о суммах реализации из [отчёта о реализации товаров](#operation/FinanceAPI_GetRealizationReportV2) за день. Отмены и невыкупы не включаются. Данные доступны не более чем за 32 календарных дня от текущей даты. + * Отчёт о реализации товаров за день + */ + financeAPIGetRealizationByDayReportV1(clientId: string, apiKey: string, v1GetRealizationReportByDayRequest: V1GetRealizationReportByDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской Premium Pro. + * Получить подробную информацию о ценах товаров + */ + productPricesDetailsRaw(requestParameters: ProductPricesDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской Premium Pro. + * Получить подробную информацию о ценах товаров + */ + productPricesDetails(clientId: string, apiKey: string, v1ProductPricesDetailsRequest: V1ProductPricesDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список поисковых запросов по тексту + */ + searchQueriesAPISearchQueriesTextRaw(requestParameters: SearchQueriesAPISearchQueriesTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список поисковых запросов по тексту + */ + searchQueriesAPISearchQueriesText(clientId: string, apiKey: string, v1SearchQueriesTextRequest: V1SearchQueriesTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список популярных поисковых запросов + */ + searchQueriesAPISearchQueriesTopRaw(requestParameters: SearchQueriesAPISearchQueriesTopRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список популярных поисковых запросов + */ + searchQueriesAPISearchQueriesTop(clientId: string, apiKey: string, v1SearchQueriesTopRequest: V1SearchQueriesTopRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/Premium.js b/dist/apis/Premium.js new file mode 100644 index 0000000..01c3ebe --- /dev/null +++ b/dist/apis/Premium.js @@ -0,0 +1,473 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Premium = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class Premium extends runtime.BaseAPI { + /** + * Уĸажите период и метриĸи, ĸоторые нужно посчитать. В ответе будет аналитиĸа, сгруппированная по параметру `dimensions`. Для продавцов без подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): - доступны данные за последние 3 месяца, - есть ограничения по способам группировки данных и метрикам. Для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) ограничений нет. Метод можно использовать не больше 1 раза в минуту. Соответствует разделу **Аналитика → Графики** в личном кабинете. + * Данные аналитики + */ + analyticsAPIAnalyticsGetDataRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsGetData().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsGetData().'); + } + if (requestParameters['analyticsAnalyticsGetDataRequest'] == null) { + throw new runtime.RequiredError('analyticsAnalyticsGetDataRequest', 'Required parameter "analyticsAnalyticsGetDataRequest" was null or undefined when calling analyticsAPIAnalyticsGetData().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/data`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.AnalyticsAnalyticsGetDataRequestToJSON)(requestParameters['analyticsAnalyticsGetDataRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AnalyticsAnalyticsGetDataResponseFromJSON)(jsonValue)); + }); + } + /** + * Уĸажите период и метриĸи, ĸоторые нужно посчитать. В ответе будет аналитиĸа, сгруппированная по параметру `dimensions`. Для продавцов без подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): - доступны данные за последние 3 месяца, - есть ограничения по способам группировки данных и метрикам. Для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) ограничений нет. Метод можно использовать не больше 1 раза в минуту. Соответствует разделу **Аналитика → Графики** в личном кабинете. + * Данные аналитики + */ + analyticsAPIAnalyticsGetData(clientId, apiKey, analyticsAnalyticsGetDataRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsGetDataRaw({ clientId: clientId, apiKey: apiKey, analyticsAnalyticsGetDataRequest: analyticsAnalyticsGetDataRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить данные о запросах ваших товаров. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить информацию о запросах моих товаров + */ + analyticsAPIAnalyticsProductQueriesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsProductQueries().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsProductQueries().'); + } + if (requestParameters['v1AnalyticsProductQueriesRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsProductQueriesRequest', 'Required parameter "v1AnalyticsProductQueriesRequest" was null or undefined when calling analyticsAPIAnalyticsProductQueries().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/product-queries`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AnalyticsProductQueriesRequestToJSON)(requestParameters['v1AnalyticsProductQueriesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AnalyticsProductQueriesResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить данные о запросах ваших товаров. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить информацию о запросах моих товаров + */ + analyticsAPIAnalyticsProductQueries(clientId, apiKey, v1AnalyticsProductQueriesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsProductQueriesRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsProductQueriesRequest: v1AnalyticsProductQueriesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить данные по запросам на конкретный товар. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен просмотру данных по товару на вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить детализацию запросов по товару + */ + analyticsAPIAnalyticsProductQueriesDetailsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsProductQueriesDetails().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsProductQueriesDetails().'); + } + if (requestParameters['v1AnalyticsProductQueriesDetailsRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsProductQueriesDetailsRequest', 'Required parameter "v1AnalyticsProductQueriesDetailsRequest" was null or undefined when calling analyticsAPIAnalyticsProductQueriesDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/product-queries/details`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AnalyticsProductQueriesDetailsRequestToJSON)(requestParameters['v1AnalyticsProductQueriesDetailsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AnalyticsProductQueriesDetailsResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить данные по запросам на конкретный товар. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен просмотру данных по товару на вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить детализацию запросов по товару + */ + analyticsAPIAnalyticsProductQueriesDetails(clientId, apiKey, v1AnalyticsProductQueriesDetailsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsProductQueriesDetailsRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsProductQueriesDetailsRequest: v1AnalyticsProductQueriesDetailsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод для отметки выбранного сообщения и сообщений до него прочитанными.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * Отметить сообщения как прочитанные + */ + chatAPIChatReadV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatReadV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatReadV2().'); + } + if (requestParameters['chatRead'] == null) { + throw new runtime.RequiredError('chatRead', 'Required parameter "chatRead" was null or undefined when calling chatAPIChatReadV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/chat/read`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ChatReadToJSON)(requestParameters['chatRead']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2ChatReadResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод для отметки выбранного сообщения и сообщений до него прочитанными.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * Отметить сообщения как прочитанные + */ + chatAPIChatReadV2(clientId, apiKey, chatRead, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatReadV2Raw({ clientId: clientId, apiKey: apiKey, chatRead: chatRead }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Отправляет сообщение в существующий чат по его идентификатору.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить сообщение в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить сообщение покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить сообщение + */ + chatAPIChatSendMessageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatSendMessage().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatSendMessage().'); + } + if (requestParameters['chatChatSendMessageRequest'] == null) { + throw new runtime.RequiredError('chatChatSendMessageRequest', 'Required parameter "chatChatSendMessageRequest" was null or undefined when calling chatAPIChatSendMessage().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/chat/send/message`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ChatChatSendMessageRequestToJSON)(requestParameters['chatChatSendMessageRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatChatSendMessageResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Отправляет сообщение в существующий чат по его идентификатору.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить сообщение в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить сообщение покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить сообщение + */ + chatAPIChatSendMessage(clientId, apiKey, chatChatSendMessageRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatSendMessageRaw({ clientId: clientId, apiKey: apiKey, chatChatSendMessageRequest: chatChatSendMessageRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Создает новый чат с покупателем по отправлению. Например, чтобы уточнить адрес или модель товара. Для отправлений: - FBO — начать чат может только покупатель. - FBS и rFBS — вы можете открыть чат в течение 72 часов после оплаты или доставки отправления. + * Создать новый чат + */ + chatAPIChatStartRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatStart().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatStart().'); + } + if (requestParameters['chatChatStartRequest'] == null) { + throw new runtime.RequiredError('chatChatStartRequest', 'Required parameter "chatChatStartRequest" was null or undefined when calling chatAPIChatStart().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/chat/start`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ChatChatStartRequestToJSON)(requestParameters['chatChatStartRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatChatStartResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Создает новый чат с покупателем по отправлению. Например, чтобы уточнить адрес или модель товара. Для отправлений: - FBO — начать чат может только покупатель. - FBS и rFBS — вы можете открыть чат в течение 72 часов после оплаты или доставки отправления. + * Создать новый чат + */ + chatAPIChatStart(clientId, apiKey, chatChatStartRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatStartRaw({ clientId: clientId, apiKey: apiKey, chatChatStartRequest: chatChatStartRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Возвращает данные о суммах реализации из [отчёта о реализации товаров](#operation/FinanceAPI_GetRealizationReportV2) за день. Отмены и невыкупы не включаются. Данные доступны не более чем за 32 календарных дня от текущей даты. + * Отчёт о реализации товаров за день + */ + financeAPIGetRealizationByDayReportV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIGetRealizationByDayReportV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIGetRealizationByDayReportV1().'); + } + if (requestParameters['v1GetRealizationReportByDayRequest'] == null) { + throw new runtime.RequiredError('v1GetRealizationReportByDayRequest', 'Required parameter "v1GetRealizationReportByDayRequest" was null or undefined when calling financeAPIGetRealizationByDayReportV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/realization/by-day`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetRealizationReportByDayRequestToJSON)(requestParameters['v1GetRealizationReportByDayRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetRealizationReportByDayResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Возвращает данные о суммах реализации из [отчёта о реализации товаров](#operation/FinanceAPI_GetRealizationReportV2) за день. Отмены и невыкупы не включаются. Данные доступны не более чем за 32 календарных дня от текущей даты. + * Отчёт о реализации товаров за день + */ + financeAPIGetRealizationByDayReportV1(clientId, apiKey, v1GetRealizationReportByDayRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIGetRealizationByDayReportV1Raw({ clientId: clientId, apiKey: apiKey, v1GetRealizationReportByDayRequest: v1GetRealizationReportByDayRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской Premium Pro. + * Получить подробную информацию о ценах товаров + */ + productPricesDetailsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productPricesDetails().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productPricesDetails().'); + } + if (requestParameters['v1ProductPricesDetailsRequest'] == null) { + throw new runtime.RequiredError('v1ProductPricesDetailsRequest', 'Required parameter "v1ProductPricesDetailsRequest" was null or undefined when calling productPricesDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/prices/details`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductPricesDetailsRequestToJSON)(requestParameters['v1ProductPricesDetailsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductPricesDetailsResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской Premium Pro. + * Получить подробную информацию о ценах товаров + */ + productPricesDetails(clientId, apiKey, v1ProductPricesDetailsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productPricesDetailsRaw({ clientId: clientId, apiKey: apiKey, v1ProductPricesDetailsRequest: v1ProductPricesDetailsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список поисковых запросов по тексту + */ + searchQueriesAPISearchQueriesTextRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling searchQueriesAPISearchQueriesText().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling searchQueriesAPISearchQueriesText().'); + } + if (requestParameters['v1SearchQueriesTextRequest'] == null) { + throw new runtime.RequiredError('v1SearchQueriesTextRequest', 'Required parameter "v1SearchQueriesTextRequest" was null or undefined when calling searchQueriesAPISearchQueriesText().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/search-queries/text`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SearchQueriesTextRequestToJSON)(requestParameters['v1SearchQueriesTextRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SearchQueriesTextResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список поисковых запросов по тексту + */ + searchQueriesAPISearchQueriesText(clientId, apiKey, v1SearchQueriesTextRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.searchQueriesAPISearchQueriesTextRaw({ clientId: clientId, apiKey: apiKey, v1SearchQueriesTextRequest: v1SearchQueriesTextRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список популярных поисковых запросов + */ + searchQueriesAPISearchQueriesTopRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling searchQueriesAPISearchQueriesTop().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling searchQueriesAPISearchQueriesTop().'); + } + if (requestParameters['v1SearchQueriesTopRequest'] == null) { + throw new runtime.RequiredError('v1SearchQueriesTopRequest', 'Required parameter "v1SearchQueriesTopRequest" was null or undefined when calling searchQueriesAPISearchQueriesTop().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/search-queries/top`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SearchQueriesTopRequestToJSON)(requestParameters['v1SearchQueriesTopRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SearchQueriesTopResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список популярных поисковых запросов + */ + searchQueriesAPISearchQueriesTop(clientId, apiKey, v1SearchQueriesTopRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.searchQueriesAPISearchQueriesTopRaw({ clientId: clientId, apiKey: apiKey, v1SearchQueriesTopRequest: v1SearchQueriesTopRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.Premium = Premium; diff --git a/dist/apis/PricesStocksAPI.d.ts b/dist/apis/PricesStocksAPI.d.ts new file mode 100644 index 0000000..5504a65 --- /dev/null +++ b/dist/apis/PricesStocksAPI.d.ts @@ -0,0 +1,175 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ProductImportProductsPricesRequest, ProductImportProductsPricesResponse, Productsv1GetProductInfoStocksByWarehouseFbsRequest, Productsv1GetProductInfoStocksByWarehouseFbsResponse, Productv2ProductsStocksRequest, Productv2ProductsStocksResponse, Productv5GetProductInfoPricesV5Request, Productv5GetProductInfoPricesV5Response, V1GetProductInfoDiscountedRequest, V1GetProductInfoDiscountedResponse, V1ProductActionTimerStatusRequest, V1ProductActionTimerStatusResponse, V1ProductActionTimerUpdateRequest, V1ProductInfoWarehouseStocksRequest, V1ProductInfoWarehouseStocksResponse, V1ProductUpdateDiscountRequest, V1ProductUpdateDiscountResponse, V2GetProductInfoStocksByWarehouseFbsRequestV2, V2GetProductInfoStocksByWarehouseFbsResponseV2, V4GetProductInfoStocksRequest, V4GetProductInfoStocksResponse } from '../models/index'; +export interface ProductAPIActionTimerStatusRequest { + clientId: string; + apiKey: string; + v1ProductActionTimerStatusRequest: V1ProductActionTimerStatusRequest; +} +export interface ProductAPIActionTimerUpdateRequest { + clientId: string; + apiKey: string; + v1ProductActionTimerUpdateRequest: V1ProductActionTimerUpdateRequest; +} +export interface ProductAPIGetProductInfoDiscountedRequest { + clientId: string; + apiKey: string; + v1GetProductInfoDiscountedRequest: V1GetProductInfoDiscountedRequest; +} +export interface ProductAPIGetProductInfoPricesRequest { + clientId: string; + apiKey: string; + productv5GetProductInfoPricesV5Request: Productv5GetProductInfoPricesV5Request; +} +export interface ProductAPIGetProductInfoStocksRequest { + clientId: string; + apiKey: string; + v4GetProductInfoStocksRequest: V4GetProductInfoStocksRequest; +} +export interface ProductAPIGetProductInfoStocksByWarehouseFbsV2Request { + clientId: string; + apiKey: string; + v2GetProductInfoStocksByWarehouseFbsRequestV2: V2GetProductInfoStocksByWarehouseFbsRequestV2 | null; +} +export interface ProductAPIImportProductsPricesRequest { + clientId: string; + apiKey: string; + productImportProductsPricesRequest?: ProductImportProductsPricesRequest; +} +export interface ProductAPIProductStocksByWarehouseFbsRequest { + clientId: string; + apiKey: string; + productsv1GetProductInfoStocksByWarehouseFbsRequest: Productsv1GetProductInfoStocksByWarehouseFbsRequest | null; +} +export interface ProductAPIProductUpdateDiscountRequest { + clientId: string; + apiKey: string; + v1ProductUpdateDiscountRequest: V1ProductUpdateDiscountRequest; +} +export interface ProductAPIProductsStocksV2Request { + clientId: string; + apiKey: string; + productv2ProductsStocksRequest: Productv2ProductsStocksRequest; +} +export interface ProductInfoWarehouseStocksRequest { + v1ProductInfoWarehouseStocksRequest?: V1ProductInfoWarehouseStocksRequest; +} +/** + * + */ +export declare class PricesStocksAPI extends runtime.BaseAPI { + /** + * Получить статус установленного таймера + */ + productAPIActionTimerStatusRaw(requestParameters: ProductAPIActionTimerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус установленного таймера + */ + productAPIActionTimerStatus(clientId: string, apiKey: string, v1ProductActionTimerStatusRequest: V1ProductActionTimerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Минимальная цена действует 30 дней после установки. После этого настройка выключается. Вы можете продлить её: вызовите метод повторно и укажите `product_ids`. + * Обновление таймера актуальности минимальной цены + */ + productAPIActionTimerUpdateRaw(requestParameters: ProductAPIActionTimerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Минимальная цена действует 30 дней после установки. После этого настройка выключается. Вы можете продлить её: вызовите метод повторно и укажите `product_ids`. + * Обновление таймера актуальности минимальной цены + */ + productAPIActionTimerUpdate(clientId: string, apiKey: string, v1ProductActionTimerUpdateRequest: V1ProductActionTimerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о состоянии и дефектах уценённого товара по его SKU. Работает только с уценёнными товарами по схеме FBO. Также метод возвращает SKU основного товара. + * Узнать информацию об уценке и основном товаре по SKU уценённого товара + */ + productAPIGetProductInfoDiscountedRaw(requestParameters: ProductAPIGetProductInfoDiscountedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о состоянии и дефектах уценённого товара по его SKU. Работает только с уценёнными товарами по схеме FBO. Также метод возвращает SKU основного товара. + * Узнать информацию об уценке и основном товаре по SKU уценённого товара + */ + productAPIGetProductInfoDiscounted(clientId: string, apiKey: string, v1GetProductInfoDiscountedRequest: V1GetProductInfoDiscountedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Получить информацию о цене товара + */ + productAPIGetProductInfoPricesRaw(requestParameters: ProductAPIGetProductInfoPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Получить информацию о цене товара + */ + productAPIGetProductInfoPrices(clientId: string, apiKey: string, productv5GetProductInfoPricesV5Request: Productv5GetProductInfoPricesV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает информацию о ĸоличестве товаров по схемам FBS, rFBS и FBP: - сĸольĸо единиц есть в наличии, - сĸольĸо зарезервировано поĸупателями. Чтобы получить информацию об остатках по схеме FBO, используйте метод [/v1/analytics/stocks](#operation/AnalyticsAPI_AnalyticsStocks). + * Информация о количестве товаров + */ + productAPIGetProductInfoStocksRaw(requestParameters: ProductAPIGetProductInfoStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию о ĸоличестве товаров по схемам FBS, rFBS и FBP: - сĸольĸо единиц есть в наличии, - сĸольĸо зарезервировано поĸупателями. Чтобы получить информацию об остатках по схеме FBO, используйте метод [/v1/analytics/stocks](#operation/AnalyticsAPI_AnalyticsStocks). + * Информация о количестве товаров + */ + productAPIGetProductInfoStocks(clientId: string, apiKey: string, v4GetProductInfoStocksRequest: V4GetProductInfoStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию об остатках на складах продавца + */ + productAPIGetProductInfoStocksByWarehouseFbsV2Raw(requestParameters: ProductAPIGetProductInfoStocksByWarehouseFbsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию об остатках на складах продавца + */ + productAPIGetProductInfoStocksByWarehouseFbsV2(clientId: string, apiKey: string, v2GetProductInfoStocksByWarehouseFbsRequestV2: V2GetProductInfoStocksByWarehouseFbsRequestV2 | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Позволяет изменить цену одного или нескольких товаров. Цену каждого товара можно обновлять не больше 10 раз в час. Чтобы сбросить `old_price`, поставьте `0` у этого параметра. Если у товара установлена минимальная цена и включено автоприменение в акции, отключите его и обновите минимальную цену. Иначе вернётся ошибка `action_price_enabled_min_price_missing`. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить цену + */ + productAPIImportProductsPricesRaw(requestParameters: ProductAPIImportProductsPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Позволяет изменить цену одного или нескольких товаров. Цену каждого товара можно обновлять не больше 10 раз в час. Чтобы сбросить `old_price`, поставьте `0` у этого параметра. Если у товара установлена минимальная цена и включено автоприменение в акции, отключите его и обновите минимальную цену. Иначе вернётся ошибка `action_price_enabled_min_price_missing`. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить цену + */ + productAPIImportProductsPrices(clientId: string, apiKey: string, productImportProductsPricesRequest?: ProductImportProductsPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Передайте в запросе `offer_id` или `sku`. Если укажете оба, будет использован только `sku`. + * Информация об остатках на складах продавца (FBS и rFBS) + */ + productAPIProductStocksByWarehouseFbsRaw(requestParameters: ProductAPIProductStocksByWarehouseFbsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Передайте в запросе `offer_id` или `sku`. Если укажете оба, будет использован только `sku`. + * Информация об остатках на складах продавца (FBS и rFBS) + */ + productAPIProductStocksByWarehouseFbs(clientId: string, apiKey: string, productsv1GetProductInfoStocksByWarehouseFbsRequest: Productsv1GetProductInfoStocksByWarehouseFbsRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для установки размера скидки на уценённые товары, продающиеся по схеме FBS. + * Установить скидку на уценённый товар + */ + productAPIProductUpdateDiscountRaw(requestParameters: ProductAPIProductUpdateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для установки размера скидки на уценённые товары, продающиеся по схеме FBS. + * Установить скидку на уценённый товар + */ + productAPIProductUpdateDiscount(clientId: string, apiKey: string, v1ProductUpdateDiscountRequest: V1ProductUpdateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Позволяет изменить информацию о количестве товара в наличии. За один запрос можно изменить наличие для 100 пар товар-склад. С одного аккаунта продавца можно отправить до 80 запросов в минуту. Вы можете задать наличие товара только после того, как его статус сменится на `price_sent`. Остатки крупногабаритных товаров можно обновлять только на предназначенных для них складах. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить количество товаров на складах + */ + productAPIProductsStocksV2Raw(requestParameters: ProductAPIProductsStocksV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Позволяет изменить информацию о количестве товара в наличии. За один запрос можно изменить наличие для 100 пар товар-склад. С одного аккаунта продавца можно отправить до 80 запросов в минуту. Вы можете задать наличие товара только после того, как его статус сменится на `price_sent`. Остатки крупногабаритных товаров можно обновлять только на предназначенных для них складах. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить количество товаров на складах + */ + productAPIProductsStocksV2(clientId: string, apiKey: string, productv2ProductsStocksRequest: Productv2ProductsStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию по остаткам на складе FBS и rFBS + */ + productInfoWarehouseStocksRaw(requestParameters: ProductInfoWarehouseStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию по остаткам на складе FBS и rFBS + */ + productInfoWarehouseStocks(v1ProductInfoWarehouseStocksRequest?: V1ProductInfoWarehouseStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/PricesStocksAPI.js b/dist/apis/PricesStocksAPI.js new file mode 100644 index 0000000..e590530 --- /dev/null +++ b/dist/apis/PricesStocksAPI.js @@ -0,0 +1,492 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PricesStocksAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class PricesStocksAPI extends runtime.BaseAPI { + /** + * Получить статус установленного таймера + */ + productAPIActionTimerStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIActionTimerStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIActionTimerStatus().'); + } + if (requestParameters['v1ProductActionTimerStatusRequest'] == null) { + throw new runtime.RequiredError('v1ProductActionTimerStatusRequest', 'Required parameter "v1ProductActionTimerStatusRequest" was null or undefined when calling productAPIActionTimerStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/action/timer/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductActionTimerStatusRequestToJSON)(requestParameters['v1ProductActionTimerStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductActionTimerStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить статус установленного таймера + */ + productAPIActionTimerStatus(clientId, apiKey, v1ProductActionTimerStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIActionTimerStatusRaw({ clientId: clientId, apiKey: apiKey, v1ProductActionTimerStatusRequest: v1ProductActionTimerStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Минимальная цена действует 30 дней после установки. После этого настройка выключается. Вы можете продлить её: вызовите метод повторно и укажите `product_ids`. + * Обновление таймера актуальности минимальной цены + */ + productAPIActionTimerUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIActionTimerUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIActionTimerUpdate().'); + } + if (requestParameters['v1ProductActionTimerUpdateRequest'] == null) { + throw new runtime.RequiredError('v1ProductActionTimerUpdateRequest', 'Required parameter "v1ProductActionTimerUpdateRequest" was null or undefined when calling productAPIActionTimerUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/action/timer/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductActionTimerUpdateRequestToJSON)(requestParameters['v1ProductActionTimerUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Минимальная цена действует 30 дней после установки. После этого настройка выключается. Вы можете продлить её: вызовите метод повторно и укажите `product_ids`. + * Обновление таймера актуальности минимальной цены + */ + productAPIActionTimerUpdate(clientId, apiKey, v1ProductActionTimerUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.productAPIActionTimerUpdateRaw({ clientId: clientId, apiKey: apiKey, v1ProductActionTimerUpdateRequest: v1ProductActionTimerUpdateRequest }, initOverrides); + }); + } + /** + * Метод для получения информации о состоянии и дефектах уценённого товара по его SKU. Работает только с уценёнными товарами по схеме FBO. Также метод возвращает SKU основного товара. + * Узнать информацию об уценке и основном товаре по SKU уценённого товара + */ + productAPIGetProductInfoDiscountedRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoDiscounted().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoDiscounted().'); + } + if (requestParameters['v1GetProductInfoDiscountedRequest'] == null) { + throw new runtime.RequiredError('v1GetProductInfoDiscountedRequest', 'Required parameter "v1GetProductInfoDiscountedRequest" was null or undefined when calling productAPIGetProductInfoDiscounted().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/info/discounted`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetProductInfoDiscountedRequestToJSON)(requestParameters['v1GetProductInfoDiscountedRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetProductInfoDiscountedResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения информации о состоянии и дефектах уценённого товара по его SKU. Работает только с уценёнными товарами по схеме FBO. Также метод возвращает SKU основного товара. + * Узнать информацию об уценке и основном товаре по SKU уценённого товара + */ + productAPIGetProductInfoDiscounted(clientId, apiKey, v1GetProductInfoDiscountedRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoDiscountedRaw({ clientId: clientId, apiKey: apiKey, v1GetProductInfoDiscountedRequest: v1GetProductInfoDiscountedRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Получить информацию о цене товара + */ + productAPIGetProductInfoPricesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoPrices().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoPrices().'); + } + if (requestParameters['productv5GetProductInfoPricesV5Request'] == null) { + throw new runtime.RequiredError('productv5GetProductInfoPricesV5Request', 'Required parameter "productv5GetProductInfoPricesV5Request" was null or undefined when calling productAPIGetProductInfoPrices().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v5/product/info/prices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Productv5GetProductInfoPricesV5RequestToJSON)(requestParameters['productv5GetProductInfoPricesV5Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Productv5GetProductInfoPricesV5ResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Получить информацию о цене товара + */ + productAPIGetProductInfoPrices(clientId, apiKey, productv5GetProductInfoPricesV5Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoPricesRaw({ clientId: clientId, apiKey: apiKey, productv5GetProductInfoPricesV5Request: productv5GetProductInfoPricesV5Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает информацию о ĸоличестве товаров по схемам FBS, rFBS и FBP: - сĸольĸо единиц есть в наличии, - сĸольĸо зарезервировано поĸупателями. Чтобы получить информацию об остатках по схеме FBO, используйте метод [/v1/analytics/stocks](#operation/AnalyticsAPI_AnalyticsStocks). + * Информация о количестве товаров + */ + productAPIGetProductInfoStocksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoStocks().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoStocks().'); + } + if (requestParameters['v4GetProductInfoStocksRequest'] == null) { + throw new runtime.RequiredError('v4GetProductInfoStocksRequest', 'Required parameter "v4GetProductInfoStocksRequest" was null or undefined when calling productAPIGetProductInfoStocks().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/product/info/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V4GetProductInfoStocksRequestToJSON)(requestParameters['v4GetProductInfoStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V4GetProductInfoStocksResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает информацию о ĸоличестве товаров по схемам FBS, rFBS и FBP: - сĸольĸо единиц есть в наличии, - сĸольĸо зарезервировано поĸупателями. Чтобы получить информацию об остатках по схеме FBO, используйте метод [/v1/analytics/stocks](#operation/AnalyticsAPI_AnalyticsStocks). + * Информация о количестве товаров + */ + productAPIGetProductInfoStocks(clientId, apiKey, v4GetProductInfoStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoStocksRaw({ clientId: clientId, apiKey: apiKey, v4GetProductInfoStocksRequest: v4GetProductInfoStocksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию об остатках на складах продавца + */ + productAPIGetProductInfoStocksByWarehouseFbsV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoStocksByWarehouseFbsV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoStocksByWarehouseFbsV2().'); + } + if (requestParameters['v2GetProductInfoStocksByWarehouseFbsRequestV2'] == null) { + throw new runtime.RequiredError('v2GetProductInfoStocksByWarehouseFbsRequestV2', 'Required parameter "v2GetProductInfoStocksByWarehouseFbsRequestV2" was null or undefined when calling productAPIGetProductInfoStocksByWarehouseFbsV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/info/stocks-by-warehouse/fbs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON)(requestParameters['v2GetProductInfoStocksByWarehouseFbsRequestV2']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON)(jsonValue)); + }); + } + /** + * Получить информацию об остатках на складах продавца + */ + productAPIGetProductInfoStocksByWarehouseFbsV2(clientId, apiKey, v2GetProductInfoStocksByWarehouseFbsRequestV2, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoStocksByWarehouseFbsV2Raw({ clientId: clientId, apiKey: apiKey, v2GetProductInfoStocksByWarehouseFbsRequestV2: v2GetProductInfoStocksByWarehouseFbsRequestV2 }, initOverrides); + return yield response.value(); + }); + } + /** + * Позволяет изменить цену одного или нескольких товаров. Цену каждого товара можно обновлять не больше 10 раз в час. Чтобы сбросить `old_price`, поставьте `0` у этого параметра. Если у товара установлена минимальная цена и включено автоприменение в акции, отключите его и обновите минимальную цену. Иначе вернётся ошибка `action_price_enabled_min_price_missing`. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить цену + */ + productAPIImportProductsPricesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIImportProductsPrices().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIImportProductsPrices().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/import/prices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductImportProductsPricesRequestToJSON)(requestParameters['productImportProductsPricesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductImportProductsPricesResponseFromJSON)(jsonValue)); + }); + } + /** + * Позволяет изменить цену одного или нескольких товаров. Цену каждого товара можно обновлять не больше 10 раз в час. Чтобы сбросить `old_price`, поставьте `0` у этого параметра. Если у товара установлена минимальная цена и включено автоприменение в акции, отключите его и обновите минимальную цену. Иначе вернётся ошибка `action_price_enabled_min_price_missing`. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить цену + */ + productAPIImportProductsPrices(clientId, apiKey, productImportProductsPricesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIImportProductsPricesRaw({ clientId: clientId, apiKey: apiKey, productImportProductsPricesRequest: productImportProductsPricesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Передайте в запросе `offer_id` или `sku`. Если укажете оба, будет использован только `sku`. + * Информация об остатках на складах продавца (FBS и rFBS) + */ + productAPIProductStocksByWarehouseFbsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductStocksByWarehouseFbs().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductStocksByWarehouseFbs().'); + } + if (requestParameters['productsv1GetProductInfoStocksByWarehouseFbsRequest'] == null) { + throw new runtime.RequiredError('productsv1GetProductInfoStocksByWarehouseFbsRequest', 'Required parameter "productsv1GetProductInfoStocksByWarehouseFbsRequest" was null or undefined when calling productAPIProductStocksByWarehouseFbs().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/info/stocks-by-warehouse/fbs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON)(requestParameters['productsv1GetProductInfoStocksByWarehouseFbsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON)(jsonValue)); + }); + } + /** + * Передайте в запросе `offer_id` или `sku`. Если укажете оба, будет использован только `sku`. + * Информация об остатках на складах продавца (FBS и rFBS) + */ + productAPIProductStocksByWarehouseFbs(clientId, apiKey, productsv1GetProductInfoStocksByWarehouseFbsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductStocksByWarehouseFbsRaw({ clientId: clientId, apiKey: apiKey, productsv1GetProductInfoStocksByWarehouseFbsRequest: productsv1GetProductInfoStocksByWarehouseFbsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для установки размера скидки на уценённые товары, продающиеся по схеме FBS. + * Установить скидку на уценённый товар + */ + productAPIProductUpdateDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductUpdateDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductUpdateDiscount().'); + } + if (requestParameters['v1ProductUpdateDiscountRequest'] == null) { + throw new runtime.RequiredError('v1ProductUpdateDiscountRequest', 'Required parameter "v1ProductUpdateDiscountRequest" was null or undefined when calling productAPIProductUpdateDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/update/discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductUpdateDiscountRequestToJSON)(requestParameters['v1ProductUpdateDiscountRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductUpdateDiscountResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для установки размера скидки на уценённые товары, продающиеся по схеме FBS. + * Установить скидку на уценённый товар + */ + productAPIProductUpdateDiscount(clientId, apiKey, v1ProductUpdateDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductUpdateDiscountRaw({ clientId: clientId, apiKey: apiKey, v1ProductUpdateDiscountRequest: v1ProductUpdateDiscountRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Позволяет изменить информацию о количестве товара в наличии. За один запрос можно изменить наличие для 100 пар товар-склад. С одного аккаунта продавца можно отправить до 80 запросов в минуту. Вы можете задать наличие товара только после того, как его статус сменится на `price_sent`. Остатки крупногабаритных товаров можно обновлять только на предназначенных для них складах. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить количество товаров на складах + */ + productAPIProductsStocksV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductsStocksV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductsStocksV2().'); + } + if (requestParameters['productv2ProductsStocksRequest'] == null) { + throw new runtime.RequiredError('productv2ProductsStocksRequest', 'Required parameter "productv2ProductsStocksRequest" was null or undefined when calling productAPIProductsStocksV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/products/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Productv2ProductsStocksRequestToJSON)(requestParameters['productv2ProductsStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Productv2ProductsStocksResponseFromJSON)(jsonValue)); + }); + } + /** + * Позволяет изменить информацию о количестве товара в наличии. За один запрос можно изменить наличие для 100 пар товар-склад. С одного аккаунта продавца можно отправить до 80 запросов в минуту. Вы можете задать наличие товара только после того, как его статус сменится на `price_sent`. Остатки крупногабаритных товаров можно обновлять только на предназначенных для них складах. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить количество товаров на складах + */ + productAPIProductsStocksV2(clientId, apiKey, productv2ProductsStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductsStocksV2Raw({ clientId: clientId, apiKey: apiKey, productv2ProductsStocksRequest: productv2ProductsStocksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию по остаткам на складе FBS и rFBS + */ + productInfoWarehouseStocksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/info/warehouse/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductInfoWarehouseStocksRequestToJSON)(requestParameters['v1ProductInfoWarehouseStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductInfoWarehouseStocksResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить информацию по остаткам на складе FBS и rFBS + */ + productInfoWarehouseStocks(v1ProductInfoWarehouseStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productInfoWarehouseStocksRaw({ v1ProductInfoWarehouseStocksRequest: v1ProductInfoWarehouseStocksRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.PricesStocksAPI = PricesStocksAPI; diff --git a/dist/apis/PricingStrategyAPI.d.ts b/dist/apis/PricingStrategyAPI.d.ts new file mode 100644 index 0000000..c7f238e --- /dev/null +++ b/dist/apis/PricingStrategyAPI.d.ts @@ -0,0 +1,172 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1AddStrategyItemsRequest, V1AddStrategyItemsResponse, V1CreatePricingStrategyRequest, V1CreatePricingStrategyResponse, V1DeleteStrategyItemsResponse, V1GetCompetitorsRequest, V1GetCompetitorsResponse, V1GetStrategyIDsByItemIDsResponse, V1GetStrategyItemInfoRequest, V1GetStrategyItemInfoResponse, V1GetStrategyItemsResponse, V1GetStrategyListRequest, V1GetStrategyListResponse, V1GetStrategyResponse, V1ItemIDsRequest, V1StrategyRequest, V1UpdatePricingStrategyRequest, V1UpdateStatusStrategyRequest } from '../models/index'; +export interface PricingCompetitorsRequest { + v1GetCompetitorsRequest: V1GetCompetitorsRequest; +} +export interface PricingCreateRequest { + v1CreatePricingStrategyRequest: V1CreatePricingStrategyRequest; +} +export interface PricingDeleteRequest { + clientId: string; + apiKey: string; + v1StrategyRequest?: V1StrategyRequest; +} +export interface PricingIdsRequest { + clientId: string; + apiKey: string; + v1ItemIDsRequest?: V1ItemIDsRequest; +} +export interface PricingInfoRequest { + clientId: string; + apiKey: string; + v1StrategyRequest?: V1StrategyRequest; +} +export interface PricingItemsAddRequest { + v1AddStrategyItemsRequest: V1AddStrategyItemsRequest; +} +export interface PricingItemsDeleteRequest { + clientId: string; + apiKey: string; + v1ItemIDsRequest?: V1ItemIDsRequest; +} +export interface PricingItemsInfoRequest { + clientId: string; + apiKey: string; + v1GetStrategyItemInfoRequest: V1GetStrategyItemInfoRequest; +} +export interface PricingItemsListRequest { + clientId: string; + apiKey: string; + v1StrategyRequest?: V1StrategyRequest; +} +export interface PricingListRequest { + v1GetStrategyListRequest: V1GetStrategyListRequest; +} +export interface PricingStatusRequest { + v1UpdateStatusStrategyRequest: V1UpdateStatusStrategyRequest; +} +export interface PricingUpdateRequest { + v1UpdatePricingStrategyRequest: V1UpdatePricingStrategyRequest; +} +/** + * + */ +export declare class PricingStrategyAPI extends runtime.BaseAPI { + /** + * Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах. + * Список конкурентов + */ + pricingCompetitorsRaw(requestParameters: PricingCompetitorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах. + * Список конкурентов + */ + pricingCompetitors(v1GetCompetitorsRequest: V1GetCompetitorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Создать стратегию + */ + pricingCreateRaw(requestParameters: PricingCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Создать стратегию + */ + pricingCreate(v1CreatePricingStrategyRequest: V1CreatePricingStrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Можно удалить любую стратегию кроме системной. + * Удалить стратегию + */ + pricingDeleteRaw(requestParameters: PricingDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Можно удалить любую стратегию кроме системной. + * Удалить стратегию + */ + pricingDelete(clientId: string, apiKey: string, v1StrategyRequest?: V1StrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список идентификаторов стратегий + */ + pricingIdsRaw(requestParameters: PricingIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список идентификаторов стратегий + */ + pricingIds(clientId: string, apiKey: string, v1ItemIDsRequest?: V1ItemIDsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о стратегии + */ + pricingInfoRaw(requestParameters: PricingInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о стратегии + */ + pricingInfo(clientId: string, apiKey: string, v1StrategyRequest?: V1StrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Добавить товары в стратегию + */ + pricingItemsAddRaw(requestParameters: PricingItemsAddRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Добавить товары в стратегию + */ + pricingItemsAdd(v1AddStrategyItemsRequest: V1AddStrategyItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить товары из стратегии + */ + pricingItemsDeleteRaw(requestParameters: PricingItemsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить товары из стратегии + */ + pricingItemsDelete(clientId: string, apiKey: string, v1ItemIDsRequest?: V1ItemIDsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента. + * Цена товара у конкурента + */ + pricingItemsInfoRaw(requestParameters: PricingItemsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента. + * Цена товара у конкурента + */ + pricingItemsInfo(clientId: string, apiKey: string, v1GetStrategyItemInfoRequest: V1GetStrategyItemInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список товаров в стратегии + */ + pricingItemsListRaw(requestParameters: PricingItemsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список товаров в стратегии + */ + pricingItemsList(clientId: string, apiKey: string, v1StrategyRequest?: V1StrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список стратегий + */ + pricingListRaw(requestParameters: PricingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список стратегий + */ + pricingList(v1GetStrategyListRequest: V1GetStrategyListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Можно изменить статус любой стратегии кроме системной. + * Изменить статус стратегии + */ + pricingStatusRaw(requestParameters: PricingStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Можно изменить статус любой стратегии кроме системной. + * Изменить статус стратегии + */ + pricingStatus(v1UpdateStatusStrategyRequest: V1UpdateStatusStrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Можно обновить все стратегии кроме системной. + * Обновить стратегию + */ + pricingUpdateRaw(requestParameters: PricingUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Можно обновить все стратегии кроме системной. + * Обновить стратегию + */ + pricingUpdate(v1UpdatePricingStrategyRequest: V1UpdatePricingStrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/PricingStrategyAPI.js b/dist/apis/PricingStrategyAPI.js new file mode 100644 index 0000000..306b4cb --- /dev/null +++ b/dist/apis/PricingStrategyAPI.js @@ -0,0 +1,460 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PricingStrategyAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class PricingStrategyAPI extends runtime.BaseAPI { + /** + * Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах. + * Список конкурентов + */ + pricingCompetitorsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetCompetitorsRequest'] == null) { + throw new runtime.RequiredError('v1GetCompetitorsRequest', 'Required parameter "v1GetCompetitorsRequest" was null or undefined when calling pricingCompetitors().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/competitors/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetCompetitorsRequestToJSON)(requestParameters['v1GetCompetitorsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetCompetitorsResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах. + * Список конкурентов + */ + pricingCompetitors(v1GetCompetitorsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingCompetitorsRaw({ v1GetCompetitorsRequest: v1GetCompetitorsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Создать стратегию + */ + pricingCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CreatePricingStrategyRequest'] == null) { + throw new runtime.RequiredError('v1CreatePricingStrategyRequest', 'Required parameter "v1CreatePricingStrategyRequest" was null or undefined when calling pricingCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreatePricingStrategyRequestToJSON)(requestParameters['v1CreatePricingStrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CreatePricingStrategyResponseFromJSON)(jsonValue)); + }); + } + /** + * Создать стратегию + */ + pricingCreate(v1CreatePricingStrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingCreateRaw({ v1CreatePricingStrategyRequest: v1CreatePricingStrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Можно удалить любую стратегию кроме системной. + * Удалить стратегию + */ + pricingDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1StrategyRequestToJSON)(requestParameters['v1StrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Можно удалить любую стратегию кроме системной. + * Удалить стратегию + */ + pricingDelete(clientId, apiKey, v1StrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingDeleteRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список идентификаторов стратегий + */ + pricingIdsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingIds().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingIds().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/strategy-ids-by-product-ids`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ItemIDsRequestToJSON)(requestParameters['v1ItemIDsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyIDsByItemIDsResponseFromJSON)(jsonValue)); + }); + } + /** + * Список идентификаторов стратегий + */ + pricingIds(clientId, apiKey, v1ItemIDsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingIdsRaw({ clientId: clientId, apiKey: apiKey, v1ItemIDsRequest: v1ItemIDsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о стратегии + */ + pricingInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1StrategyRequestToJSON)(requestParameters['v1StrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyResponseFromJSON)(jsonValue)); + }); + } + /** + * Информация о стратегии + */ + pricingInfo(clientId, apiKey, v1StrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingInfoRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Добавить товары в стратегию + */ + pricingItemsAddRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1AddStrategyItemsRequest'] == null) { + throw new runtime.RequiredError('v1AddStrategyItemsRequest', 'Required parameter "v1AddStrategyItemsRequest" was null or undefined when calling pricingItemsAdd().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/products/add`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1AddStrategyItemsRequestToJSON)(requestParameters['v1AddStrategyItemsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1AddStrategyItemsResponseFromJSON)(jsonValue)); + }); + } + /** + * Добавить товары в стратегию + */ + pricingItemsAdd(v1AddStrategyItemsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingItemsAddRaw({ v1AddStrategyItemsRequest: v1AddStrategyItemsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить товары из стратегии + */ + pricingItemsDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/products/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ItemIDsRequestToJSON)(requestParameters['v1ItemIDsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1DeleteStrategyItemsResponseFromJSON)(jsonValue)); + }); + } + /** + * Удалить товары из стратегии + */ + pricingItemsDelete(clientId, apiKey, v1ItemIDsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingItemsDeleteRaw({ clientId: clientId, apiKey: apiKey, v1ItemIDsRequest: v1ItemIDsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента. + * Цена товара у конкурента + */ + pricingItemsInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsInfo().'); + } + if (requestParameters['v1GetStrategyItemInfoRequest'] == null) { + throw new runtime.RequiredError('v1GetStrategyItemInfoRequest', 'Required parameter "v1GetStrategyItemInfoRequest" was null or undefined when calling pricingItemsInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/product/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetStrategyItemInfoRequestToJSON)(requestParameters['v1GetStrategyItemInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyItemInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента. + * Цена товара у конкурента + */ + pricingItemsInfo(clientId, apiKey, v1GetStrategyItemInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingItemsInfoRaw({ clientId: clientId, apiKey: apiKey, v1GetStrategyItemInfoRequest: v1GetStrategyItemInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список товаров в стратегии + */ + pricingItemsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/products/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1StrategyRequestToJSON)(requestParameters['v1StrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyItemsResponseFromJSON)(jsonValue)); + }); + } + /** + * Список товаров в стратегии + */ + pricingItemsList(clientId, apiKey, v1StrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingItemsListRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список стратегий + */ + pricingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetStrategyListRequest'] == null) { + throw new runtime.RequiredError('v1GetStrategyListRequest', 'Required parameter "v1GetStrategyListRequest" was null or undefined when calling pricingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetStrategyListRequestToJSON)(requestParameters['v1GetStrategyListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetStrategyListResponseFromJSON)(jsonValue)); + }); + } + /** + * Список стратегий + */ + pricingList(v1GetStrategyListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingListRaw({ v1GetStrategyListRequest: v1GetStrategyListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Можно изменить статус любой стратегии кроме системной. + * Изменить статус стратегии + */ + pricingStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1UpdateStatusStrategyRequest'] == null) { + throw new runtime.RequiredError('v1UpdateStatusStrategyRequest', 'Required parameter "v1UpdateStatusStrategyRequest" was null or undefined when calling pricingStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1UpdateStatusStrategyRequestToJSON)(requestParameters['v1UpdateStatusStrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Можно изменить статус любой стратегии кроме системной. + * Изменить статус стратегии + */ + pricingStatus(v1UpdateStatusStrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingStatusRaw({ v1UpdateStatusStrategyRequest: v1UpdateStatusStrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Можно обновить все стратегии кроме системной. + * Обновить стратегию + */ + pricingUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1UpdatePricingStrategyRequest'] == null) { + throw new runtime.RequiredError('v1UpdatePricingStrategyRequest', 'Required parameter "v1UpdatePricingStrategyRequest" was null or undefined when calling pricingUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1UpdatePricingStrategyRequestToJSON)(requestParameters['v1UpdatePricingStrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Можно обновить все стратегии кроме системной. + * Обновить стратегию + */ + pricingUpdate(v1UpdatePricingStrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingUpdateRaw({ v1UpdatePricingStrategyRequest: v1UpdatePricingStrategyRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.PricingStrategyAPI = PricingStrategyAPI; diff --git a/dist/apis/ProductAPI.d.ts b/dist/apis/ProductAPI.d.ts new file mode 100644 index 0000000..1a9b694 --- /dev/null +++ b/dist/apis/ProductAPI.d.ts @@ -0,0 +1,309 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ProductBooleanResponse, ProductGetImportProductsInfoRequest, ProductGetImportProductsInfoResponse, ProductGetProductInfoDescriptionRequest, ProductGetProductInfoDescriptionResponse, ProductImportProductsBySKURequest, ProductImportProductsBySKUResponse, ProductProductArchiveRequest, ProductProductUnarchiveRequest, ProductV1GetProductInfoStocksByWarehouseFboRequest, ProductV1GetProductInfoStocksByWarehouseFboResponse, Productv1ProductImportPicturesRequest, Productv1ProductInfoPicturesResponse, Productv2DeleteProductsRequest, Productv2DeleteProductsResponse, Productv3GetProductListRequest, Productv3GetProductListResponse, Productv4GetProductAttributesV4Request, Productv4GetProductAttributesV4Response, V1GetProductInfoSubscriptionRequest, V1GetProductInfoSubscriptionResponse, V1GetProductRatingBySkuRequest, V1GetProductRatingBySkuResponse, V1ProductGetRelatedSKURequest, V1ProductGetRelatedSKUResponse, V1ProductInfoWrongVolumeRequest, V1ProductInfoWrongVolumeResponse, V1ProductUpdateAttributesRequest, V1ProductUpdateAttributesResponse, V1ProductUpdateOfferIdRequest, V1ProductUpdateOfferIdResponse, V2ProductInfoPicturesRequest, V2ProductInfoPicturesResponse, V3GetProductInfoListRequest, V3GetProductInfoListResponse, V3ImportProductsRequest, V3ImportProductsResponse, V4GetUploadQuotaResponse } from '../models/index'; +export interface GetProductInfoStocksByWarehouseFboRequest { + productV1GetProductInfoStocksByWarehouseFboRequest: ProductV1GetProductInfoStocksByWarehouseFboRequest; +} +export interface ProductAPIDeleteProductsRequest { + clientId: string; + apiKey: string; + productv2DeleteProductsRequest: Productv2DeleteProductsRequest; +} +export interface ProductAPIGetImportProductsInfoRequest { + clientId: string; + apiKey: string; + productGetImportProductsInfoRequest: ProductGetImportProductsInfoRequest; +} +export interface ProductAPIGetProductAttributesV4Request { + clientId: string; + apiKey: string; + productv4GetProductAttributesV4Request: Productv4GetProductAttributesV4Request; +} +export interface ProductAPIGetProductInfoDescriptionRequest { + clientId: string; + apiKey: string; + productGetProductInfoDescriptionRequest: ProductGetProductInfoDescriptionRequest | null; +} +export interface ProductAPIGetProductInfoListRequest { + clientId: string; + apiKey: string; + v3GetProductInfoListRequest: V3GetProductInfoListRequest; +} +export interface ProductAPIGetProductInfoSubscriptionRequest { + v1GetProductInfoSubscriptionRequest: V1GetProductInfoSubscriptionRequest; +} +export interface ProductAPIGetProductListRequest { + clientId: string; + apiKey: string; + productv3GetProductListRequest: Productv3GetProductListRequest; +} +export interface ProductAPIGetProductRatingBySkuRequest { + clientId: string; + apiKey: string; + v1GetProductRatingBySkuRequest: V1GetProductRatingBySkuRequest; +} +export interface ProductAPIGetUploadQuotaRequest { + clientId: string; + apiKey: string; +} +export interface ProductAPIImportProductsBySKURequest { + clientId: string; + apiKey: string; + productImportProductsBySKURequest: ProductImportProductsBySKURequest; +} +export interface ProductAPIImportProductsV3Request { + clientId: string; + apiKey: string; + v3ImportProductsRequest?: V3ImportProductsRequest; +} +export interface ProductAPIProductArchiveRequest { + clientId: string; + apiKey: string; + productProductArchiveRequest: ProductProductArchiveRequest; +} +export interface ProductAPIProductGetRelatedSKURequest { + clientId: string; + apiKey: string; + v1ProductGetRelatedSKURequest: V1ProductGetRelatedSKURequest; +} +export interface ProductAPIProductImportPicturesRequest { + clientId: string; + apiKey: string; + productv1ProductImportPicturesRequest: Productv1ProductImportPicturesRequest; +} +export interface ProductAPIProductInfoPicturesV2Request { + clientId: string; + apiKey: string; + v2ProductInfoPicturesRequest: V2ProductInfoPicturesRequest; +} +export interface ProductAPIProductInfoWrongVolumeRequest { + clientId: string; + apiKey: string; + v1ProductInfoWrongVolumeRequest: V1ProductInfoWrongVolumeRequest; +} +export interface ProductAPIProductUnarchiveRequest { + clientId: string; + apiKey: string; + productProductUnarchiveRequest: ProductProductUnarchiveRequest; +} +export interface ProductAPIProductUpdateAttributesRequest { + clientId: string; + apiKey: string; + v1ProductUpdateAttributesRequest: V1ProductUpdateAttributesRequest; +} +export interface ProductAPIProductUpdateOfferIDRequest { + clientId: string; + apiKey: string; + v1ProductUpdateOfferIdRequest: V1ProductUpdateOfferIdRequest; +} +/** + * + */ +export declare class ProductAPI extends runtime.BaseAPI { + /** + * Передайте в запросе `offer_ids` или `skus`. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2177-Novyi-metod-dlia-polucheniia-ostatkov-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о стоках на складах FBO + */ + getProductInfoStocksByWarehouseFboRaw(requestParameters: GetProductInfoStocksByWarehouseFboRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Передайте в запросе `offer_ids` или `skus`. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2177-Novyi-metod-dlia-polucheniia-ostatkov-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о стоках на складах FBO + */ + getProductInfoStocksByWarehouseFbo(productV1GetProductInfoStocksByWarehouseFboRequest: ProductV1GetProductInfoStocksByWarehouseFboRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * В одном запросе можно передать до 500 идентификаторов. + * Удалить товар без SKU из архива + */ + productAPIDeleteProductsRaw(requestParameters: ProductAPIDeleteProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * В одном запросе можно передать до 500 идентификаторов. + * Удалить товар без SKU из архива + */ + productAPIDeleteProducts(clientId: string, apiKey: string, productv2DeleteProductsRequest: Productv2DeleteProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Позволяет получить статус создания или обновления карточки товара. Если вы обновили изображение или видео по ссылке, но ссылка не изменилась, для изображения или видео в параметре `result.items.status` вернётся `skipped`. + * Узнать статус добавления или обновления товара + */ + productAPIGetImportProductsInfoRaw(requestParameters: ProductAPIGetImportProductsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Позволяет получить статус создания или обновления карточки товара. Если вы обновили изображение или видео по ссылке, но ссылка не изменилась, для изображения или видео в параметре `result.items.status` вернётся `skipped`. + * Узнать статус добавления или обновления товара + */ + productAPIGetImportProductsInfo(clientId: string, apiKey: string, productGetImportProductsInfoRequest: ProductGetImportProductsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает описание характеристик товаров по идентификатору и видимости. Товар можно искать по `offer_id`, `product_id` или `sku`. + * Получить описание характеристик товара + */ + productAPIGetProductAttributesV4Raw(requestParameters: ProductAPIGetProductAttributesV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает описание характеристик товаров по идентификатору и видимости. Товар можно искать по `offer_id`, `product_id` или `sku`. + * Получить описание характеристик товара + */ + productAPIGetProductAttributesV4(clientId: string, apiKey: string, productv4GetProductAttributesV4Request: Productv4GetProductAttributesV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить описание товара + */ + productAPIGetProductInfoDescriptionRaw(requestParameters: ProductAPIGetProductInfoDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить описание товара + */ + productAPIGetProductInfoDescription(clientId: string, apiKey: string, productGetProductInfoDescriptionRequest: ProductGetProductInfoDescriptionRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о товарах по их идентификаторам. В теле запроса должен быть массив однотипных идентификаторов, в ответе будет массив `items`. В одном запросе вы можете передать не больше 1000 товаров по параметрам `offer_id`, `product_id` и `sku` в сумме. + * Получить информацию о товарах по идентификаторам + */ + productAPIGetProductInfoListRaw(requestParameters: ProductAPIGetProductInfoListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о товарах по их идентификаторам. В теле запроса должен быть массив однотипных идентификаторов, в ответе будет массив `items`. В одном запросе вы можете передать не больше 1000 товаров по параметрам `offer_id`, `product_id` и `sku` в сумме. + * Получить информацию о товарах по идентификаторам + */ + productAPIGetProductInfoList(clientId: string, apiKey: string, v3GetProductInfoListRequest: V3GetProductInfoListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения количества пользователей, которые нажали **Узнать о поступлении** на странице товара. Вы можете передать несколько товаров в запросе. + * Количество подписавшихся на товар пользователей + */ + productAPIGetProductInfoSubscriptionRaw(requestParameters: ProductAPIGetProductInfoSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения количества пользователей, которые нажали **Узнать о поступлении** на странице товара. Вы можете передать несколько товаров в запросе. + * Количество подписавшихся на товар пользователей + */ + productAPIGetProductInfoSubscription(v1GetProductInfoSubscriptionRequest: V1GetProductInfoSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка всех товаров. Если вы используете фильтр по идентификатору `offer_id` или `product_id`, остальные параметры заполнять не обязательно. Вернутся все товары с указанными идентификаторами, независимо от видимости. За один раз вы можете использовать только одну группу идентификаторов, не больше 1000 товаров. Если вы не используете для отображения идентификаторы, укажите `limit` и `last_id` в следующих запросах. + * Список товаров + */ + productAPIGetProductListRaw(requestParameters: ProductAPIGetProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка всех товаров. Если вы используете фильтр по идентификатору `offer_id` или `product_id`, остальные параметры заполнять не обязательно. Вернутся все товары с указанными идентификаторами, независимо от видимости. За один раз вы можете использовать только одну группу идентификаторов, не больше 1000 товаров. Если вы не используете для отображения идентификаторы, укажите `limit` и `last_id` в следующих запросах. + * Список товаров + */ + productAPIGetProductList(clientId: string, apiKey: string, productv3GetProductListRequest: Productv3GetProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения контент-рейтинга товаров, а также рекомендаций по его увеличению. [Подробнее о контент-рейтинге](https://seller-edu.ozon.ru/docs/work-with-goods/content-rating.html) + * Получить контент-рейтинг товаров по SKU + */ + productAPIGetProductRatingBySkuRaw(requestParameters: ProductAPIGetProductRatingBySkuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения контент-рейтинга товаров, а также рекомендаций по его увеличению. [Подробнее о контент-рейтинге](https://seller-edu.ozon.ru/docs/work-with-goods/content-rating.html) + * Получить контент-рейтинг товаров по SKU + */ + productAPIGetProductRatingBySku(clientId: string, apiKey: string, v1GetProductRatingBySkuRequest: V1GetProductRatingBySkuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о лимитах: - На ассортимент — сколько всего товаров можно создать в вашем личном кабинете. - На создание товаров — сколько товаров можно создать в сутки. - На обновление товаров — сколько товаров можно отредактировать в сутки. - На работу с товарами — сколько товаров можно создать в минуту. - На разархивацию — сколько товаров можно восстановить из архива за сутки. Если у вас есть лимит на ассортимент и вы израсходуете его, вы не сможете создавать новые товары. [Подробнее о лимитах в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/creating-goods/limit) + * Лимиты на ассортимент, создание и обновление товаров + */ + productAPIGetUploadQuotaRaw(requestParameters: ProductAPIGetUploadQuotaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о лимитах: - На ассортимент — сколько всего товаров можно создать в вашем личном кабинете. - На создание товаров — сколько товаров можно создать в сутки. - На обновление товаров — сколько товаров можно отредактировать в сутки. - На работу с товарами — сколько товаров можно создать в минуту. - На разархивацию — сколько товаров можно восстановить из архива за сутки. Если у вас есть лимит на ассортимент и вы израсходуете его, вы не сможете создавать новые товары. [Подробнее о лимитах в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/creating-goods/limit) + * Лимиты на ассортимент, создание и обновление товаров + */ + productAPIGetUploadQuota(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод создаёт [копию карточки товара](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/cherez-kopirovanie) с указанным SKU. Метод копирует только карточку товара другого продавца, скопировать свой товар не получится. Создать копию не получится, если продавец запретил копирование своих карточек. Нельзя: - обновить товар по SKU; - копировать товар, если вы самозанятый. Продавцам из России и СНГ можно копировать товары любой страны. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Создать товар по SKU + */ + productAPIImportProductsBySKURaw(requestParameters: ProductAPIImportProductsBySKURequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод создаёт [копию карточки товара](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/cherez-kopirovanie) с указанным SKU. Метод копирует только карточку товара другого продавца, скопировать свой товар не получится. Создать копию не получится, если продавец запретил копирование своих карточек. Нельзя: - обновить товар по SKU; - копировать товар, если вы самозанятый. Продавцам из России и СНГ можно копировать товары любой страны. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Создать товар по SKU + */ + productAPIImportProductsBySKU(clientId: string, apiKey: string, productImportProductsBySKURequest: ProductImportProductsBySKURequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для создания товаров и обновления информации о них. В сутки можно создать или обновить определённое количество товаров. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). Если количество загрузок и обновлений товаров превысит лимит, появится ошибка `item_limit_exceeded`. У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. В одном запросе можно передать до 100 товаров. Каждый товар — это отдельный элемент в массиве `items`. Укажите всю информацию о товаре: его характеристики, штрихкод, изображения, габариты, цену и валюту цены. При обновлении товара передайте в запросе всю информацию о нём. Указанная валюта должна совпадать с той, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. Например, если у вас установлена валюта юань, передавайте значение `CNY`, иначе вернётся ошибка. Товар не будет создан или обновлён, если вы заполните неправильно или не укажете: - **Обязательные характеристики**: характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://global-help.ozon.com/products/requirements/product-info/product-characteristics/#обязательные-характеристики) или получить методом [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). - **Реальные объёмно-весовые характеристики**: `depth`, `width`, `height`, `dimension_unit`, `weight`, `weight_unit`. Не пропускайте эти параметры в запросе и не указывайте 0. Для некоторых характеристик можно использовать HTML-теги. Получите статус модерации созданного или обновлённого товара в параметре `items.statuses.moderate_status` метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). После модерации товар появится в вашем личном кабинете, но не будет виден пользователям, пока вы не выставите его на продажу. Каждый товар в запросе — отдельный элемент массива `items`. Чтобы объединить две карточки, для каждой передайте `9048` в массиве `attributes`. Все атрибуты в этих карточках, кроме размера или цвета, должны совпадать. ## Загрузка изображений Для загрузки передайте в запросе ссылки на изображения в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Для загрузки главного изображения товара используйте параметр `primary_image`. Если не передать значение `primary_image`, главным будет первое изображение в массиве `images`. Чтобы загрузить главное изображение для Ozon Селект: 1. Проверьте, что в ответе метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) возвращается характеристика с `result.id = 23500`. 2. Передайте ссылку на изображение в параметре `items.attributes.values.value` с `id = 23500`. Для каждого товара вы можете загрузить до 30 изображений, включая главное. Если передать значение `primary_image`, максимальное количество изображений в `images` — 29. Если параметр `primary_image` пустой, то в `images` можно передать до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. ## Загрузка видео Для загрузки передайте в запросе ссылки на видео длительностью от 8 секунд до 5 минут. Формат видео по ссылке — MP4, MOV. [Подробнее о требованиях к видео в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#каким-должно-быть-видео) Для этого в параметре `complex_attributes` передайте объект. В нём в массиве `attributes` передайте 2 объекта с `complex_id = 100001`: - В первом укажите `id = 21841` и в массиве `values` передайте объект с ссылкой на видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" } ] } ``` - Во втором укажите значение `id = 21837` и в массиве `values` передайте объект с названием видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" } ] } ``` Если вы хотите загрузить несколько видео, передавайте значения для каждого видео в разных объектах массива `values`. Объекты в массиве располагайте в соответствии с желаемым порядком на сайте. Максимальное количество видео — 5. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" }, { \"value\": \"videoName_2\" } ] }, { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" }, { \"value\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" } ] } ``` ## Загрузка видеообложки Вы можете загрузить видеообложку через `complex_attributes`. [Подробнее о требованиях к видеообложкам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какои-должна-быть-видеообложка) __Пример__: ``` \"complex_attributes\": [ { \"attributes\": [ { \"id\": 21845, \"complex_id\": 100002, \"values\": [ { \"dictionary_value_id\": 0, \"value\": \"https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4\" } ] } ] } ] ``` [Подробнее о видеообложке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/zagruzka-media/videooblozhka) ## Загрузка таблицы размеров Вы можете добавить в карточку товара таблицу размеров, созданную с помощью [конструктора](https://table-constructor.ozon.ru/visual-editor). Передайте её в массиве `attributes` в формате JSON как Rich-контент `id = 13164`.

[Конструктор в формате JSON](https://table-constructor.ozon.ru/schema.json)
[Подробнее о конструкторе в Базе знаний продавца](https://global-help.ozon.com/products/requirements/size-table-constructor/) + * Создать или обновить товар + */ + productAPIImportProductsV3Raw(requestParameters: ProductAPIImportProductsV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для создания товаров и обновления информации о них. В сутки можно создать или обновить определённое количество товаров. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). Если количество загрузок и обновлений товаров превысит лимит, появится ошибка `item_limit_exceeded`. У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. В одном запросе можно передать до 100 товаров. Каждый товар — это отдельный элемент в массиве `items`. Укажите всю информацию о товаре: его характеристики, штрихкод, изображения, габариты, цену и валюту цены. При обновлении товара передайте в запросе всю информацию о нём. Указанная валюта должна совпадать с той, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. Например, если у вас установлена валюта юань, передавайте значение `CNY`, иначе вернётся ошибка. Товар не будет создан или обновлён, если вы заполните неправильно или не укажете: - **Обязательные характеристики**: характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://global-help.ozon.com/products/requirements/product-info/product-characteristics/#обязательные-характеристики) или получить методом [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). - **Реальные объёмно-весовые характеристики**: `depth`, `width`, `height`, `dimension_unit`, `weight`, `weight_unit`. Не пропускайте эти параметры в запросе и не указывайте 0. Для некоторых характеристик можно использовать HTML-теги. Получите статус модерации созданного или обновлённого товара в параметре `items.statuses.moderate_status` метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). После модерации товар появится в вашем личном кабинете, но не будет виден пользователям, пока вы не выставите его на продажу. Каждый товар в запросе — отдельный элемент массива `items`. Чтобы объединить две карточки, для каждой передайте `9048` в массиве `attributes`. Все атрибуты в этих карточках, кроме размера или цвета, должны совпадать. ## Загрузка изображений Для загрузки передайте в запросе ссылки на изображения в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Для загрузки главного изображения товара используйте параметр `primary_image`. Если не передать значение `primary_image`, главным будет первое изображение в массиве `images`. Чтобы загрузить главное изображение для Ozon Селект: 1. Проверьте, что в ответе метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) возвращается характеристика с `result.id = 23500`. 2. Передайте ссылку на изображение в параметре `items.attributes.values.value` с `id = 23500`. Для каждого товара вы можете загрузить до 30 изображений, включая главное. Если передать значение `primary_image`, максимальное количество изображений в `images` — 29. Если параметр `primary_image` пустой, то в `images` можно передать до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. ## Загрузка видео Для загрузки передайте в запросе ссылки на видео длительностью от 8 секунд до 5 минут. Формат видео по ссылке — MP4, MOV. [Подробнее о требованиях к видео в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#каким-должно-быть-видео) Для этого в параметре `complex_attributes` передайте объект. В нём в массиве `attributes` передайте 2 объекта с `complex_id = 100001`: - В первом укажите `id = 21841` и в массиве `values` передайте объект с ссылкой на видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" } ] } ``` - Во втором укажите значение `id = 21837` и в массиве `values` передайте объект с названием видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" } ] } ``` Если вы хотите загрузить несколько видео, передавайте значения для каждого видео в разных объектах массива `values`. Объекты в массиве располагайте в соответствии с желаемым порядком на сайте. Максимальное количество видео — 5. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" }, { \"value\": \"videoName_2\" } ] }, { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" }, { \"value\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" } ] } ``` ## Загрузка видеообложки Вы можете загрузить видеообложку через `complex_attributes`. [Подробнее о требованиях к видеообложкам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какои-должна-быть-видеообложка) __Пример__: ``` \"complex_attributes\": [ { \"attributes\": [ { \"id\": 21845, \"complex_id\": 100002, \"values\": [ { \"dictionary_value_id\": 0, \"value\": \"https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4\" } ] } ] } ] ``` [Подробнее о видеообложке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/zagruzka-media/videooblozhka) ## Загрузка таблицы размеров Вы можете добавить в карточку товара таблицу размеров, созданную с помощью [конструктора](https://table-constructor.ozon.ru/visual-editor). Передайте её в массиве `attributes` в формате JSON как Rich-контент `id = 13164`.

[Конструктор в формате JSON](https://table-constructor.ozon.ru/schema.json)
[Подробнее о конструкторе в Базе знаний продавца](https://global-help.ozon.com/products/requirements/size-table-constructor/) + * Создать или обновить товар + */ + productAPIImportProductsV3(clientId: string, apiKey: string, v3ImportProductsRequest?: V3ImportProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает статус запроса на архивацию.

Чтобы проверить фактическое состояние товара после архивации, используйте метод [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList).
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) + * Перенести товар в архив + */ + productAPIProductArchiveRaw(requestParameters: ProductAPIProductArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает статус запроса на архивацию.

Чтобы проверить фактическое состояние товара после архивации, используйте метод [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList).
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) + * Перенести товар в архив + */ + productAPIProductArchive(clientId: string, apiKey: string, productProductArchiveRequest: ProductProductArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения единого SKU по старым идентификаторам SKU FBS и SKU FBO. В ответе будут все SKU, связанные с переданными. Метод может обработать любые SKU, даже скрытые или удалённые. Передавайте до 200 SKU в одном запросе. + * Получить связанные SKU + */ + productAPIProductGetRelatedSKURaw(requestParameters: ProductAPIProductGetRelatedSKURequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения единого SKU по старым идентификаторам SKU FBS и SKU FBO. В ответе будут все SKU, связанные с переданными. Метод может обработать любые SKU, даже скрытые или удалённые. Передавайте до 200 SKU в одном запросе. + * Получить связанные SKU + */ + productAPIProductGetRelatedSKU(clientId: string, apiKey: string, v1ProductGetRelatedSKURequest: V1ProductGetRelatedSKURequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для загрузки или обновления изображений товара. При каждом вызове метода передавайте все изображения, которые должны быть на карточке товара. Например, если вы вызвали метод и загрузили 10 изображений, а затем вызвали метод второй раз и загрузили ещё одно, то все 10 предыдущих сотрутся. Для загрузки передайте адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Главным будет первое изображение в массиве. Для каждого товара вы можете загрузить до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. Если вы обновили изображение по ссылке, но ссылка не изменилась, в методе [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo) для изображения в параметре `result.items.status` вернётся `skipped`. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Загрузить или обновить изображения товара + */ + productAPIProductImportPicturesRaw(requestParameters: ProductAPIProductImportPicturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для загрузки или обновления изображений товара. При каждом вызове метода передавайте все изображения, которые должны быть на карточке товара. Например, если вы вызвали метод и загрузили 10 изображений, а затем вызвали метод второй раз и загрузили ещё одно, то все 10 предыдущих сотрутся. Для загрузки передайте адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Главным будет первое изображение в массиве. Для каждого товара вы можете загрузить до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. Если вы обновили изображение по ссылке, но ссылка не изменилась, в методе [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo) для изображения в параметре `result.items.status` вернётся `skipped`. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Загрузить или обновить изображения товара + */ + productAPIProductImportPictures(clientId: string, apiKey: string, productv1ProductImportPicturesRequest: Productv1ProductImportPicturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить изображения товаров + */ + productAPIProductInfoPicturesV2Raw(requestParameters: ProductAPIProductInfoPicturesV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить изображения товаров + */ + productAPIProductInfoPicturesV2(clientId: string, apiKey: string, v2ProductInfoPicturesRequest: V2ProductInfoPicturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список товаров с некорректными объёмно-весовыми характеристиками (ОВХ). Если вы указали размеры правильно, обратитесь в поддержку Ozon. [Подробнее об объёмно-весовых характеристиках в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/ovh) + * Список товаров с некорректными ОВХ + */ + productAPIProductInfoWrongVolumeRaw(requestParameters: ProductAPIProductInfoWrongVolumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список товаров с некорректными объёмно-весовыми характеристиками (ОВХ). Если вы указали размеры правильно, обратитесь в поддержку Ozon. [Подробнее об объёмно-весовых характеристиках в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/ovh) + * Список товаров с некорректными ОВХ + */ + productAPIProductInfoWrongVolume(clientId: string, apiKey: string, v1ProductInfoWrongVolumeRequest: V1ProductInfoWrongVolumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если вы превысите лимит на восстановление, вернётся ошибка `autoarchive_restore_failed`.
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Вернуть товар из архива + */ + productAPIProductUnarchiveRaw(requestParameters: ProductAPIProductUnarchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если вы превысите лимит на восстановление, вернётся ошибка `autoarchive_restore_failed`.
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Вернуть товар из архива + */ + productAPIProductUnarchive(clientId: string, apiKey: string, productProductUnarchiveRequest: ProductProductUnarchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет добавлять характеристики и изменять их значения. Изменятся только характеристики, которые вы указали в запросе. Удалить уже заполненные характеристики не получится. Для полного обновления характеристик используйте /v3/product/import. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Обновить характеристики товара + */ + productAPIProductUpdateAttributesRaw(requestParameters: ProductAPIProductUpdateAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет добавлять характеристики и изменять их значения. Изменятся только характеристики, которые вы указали в запросе. Удалить уже заполненные характеристики не получится. Для полного обновления характеристик используйте /v3/product/import. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Обновить характеристики товара + */ + productAPIProductUpdateAttributes(clientId: string, apiKey: string, v1ProductUpdateAttributesRequest: V1ProductUpdateAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для изменения `offer_id`, привязанных к товарам. Вы можете изменить несколько `offer_id`. Если `offer_id` уже используется для другого товара, вернётся ошибка `OFFER_ID_ALREADY_EXISTS`.
[Подробнее о требованиях к артикулам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/articyl-tovara#какие-есть-требования-к-артикулу) У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Изменить артикулы товаров из системы продавца + */ + productAPIProductUpdateOfferIDRaw(requestParameters: ProductAPIProductUpdateOfferIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для изменения `offer_id`, привязанных к товарам. Вы можете изменить несколько `offer_id`. Если `offer_id` уже используется для другого товара, вернётся ошибка `OFFER_ID_ALREADY_EXISTS`.
[Подробнее о требованиях к артикулам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/articyl-tovara#какие-есть-требования-к-артикулу) У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Изменить артикулы товаров из системы продавца + */ + productAPIProductUpdateOfferID(clientId: string, apiKey: string, v1ProductUpdateOfferIdRequest: V1ProductUpdateOfferIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/ProductAPI.js b/dist/apis/ProductAPI.js new file mode 100644 index 0000000..7c9fa7f --- /dev/null +++ b/dist/apis/ProductAPI.js @@ -0,0 +1,877 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class ProductAPI extends runtime.BaseAPI { + /** + * Передайте в запросе `offer_ids` или `skus`. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2177-Novyi-metod-dlia-polucheniia-ostatkov-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о стоках на складах FBO + */ + getProductInfoStocksByWarehouseFboRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['productV1GetProductInfoStocksByWarehouseFboRequest'] == null) { + throw new runtime.RequiredError('productV1GetProductInfoStocksByWarehouseFboRequest', 'Required parameter "productV1GetProductInfoStocksByWarehouseFboRequest" was null or undefined when calling getProductInfoStocksByWarehouseFbo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/info/stocks-by-warehouse/fbo`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON)(requestParameters['productV1GetProductInfoStocksByWarehouseFboRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON)(jsonValue)); + }); + } + /** + * Передайте в запросе `offer_ids` или `skus`. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2177-Novyi-metod-dlia-polucheniia-ostatkov-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о стоках на складах FBO + */ + getProductInfoStocksByWarehouseFbo(productV1GetProductInfoStocksByWarehouseFboRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getProductInfoStocksByWarehouseFboRaw({ productV1GetProductInfoStocksByWarehouseFboRequest: productV1GetProductInfoStocksByWarehouseFboRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * В одном запросе можно передать до 500 идентификаторов. + * Удалить товар без SKU из архива + */ + productAPIDeleteProductsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIDeleteProducts().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIDeleteProducts().'); + } + if (requestParameters['productv2DeleteProductsRequest'] == null) { + throw new runtime.RequiredError('productv2DeleteProductsRequest', 'Required parameter "productv2DeleteProductsRequest" was null or undefined when calling productAPIDeleteProducts().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/products/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Productv2DeleteProductsRequestToJSON)(requestParameters['productv2DeleteProductsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Productv2DeleteProductsResponseFromJSON)(jsonValue)); + }); + } + /** + * В одном запросе можно передать до 500 идентификаторов. + * Удалить товар без SKU из архива + */ + productAPIDeleteProducts(clientId, apiKey, productv2DeleteProductsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIDeleteProductsRaw({ clientId: clientId, apiKey: apiKey, productv2DeleteProductsRequest: productv2DeleteProductsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Позволяет получить статус создания или обновления карточки товара. Если вы обновили изображение или видео по ссылке, но ссылка не изменилась, для изображения или видео в параметре `result.items.status` вернётся `skipped`. + * Узнать статус добавления или обновления товара + */ + productAPIGetImportProductsInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetImportProductsInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetImportProductsInfo().'); + } + if (requestParameters['productGetImportProductsInfoRequest'] == null) { + throw new runtime.RequiredError('productGetImportProductsInfoRequest', 'Required parameter "productGetImportProductsInfoRequest" was null or undefined when calling productAPIGetImportProductsInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/import/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductGetImportProductsInfoRequestToJSON)(requestParameters['productGetImportProductsInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductGetImportProductsInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Позволяет получить статус создания или обновления карточки товара. Если вы обновили изображение или видео по ссылке, но ссылка не изменилась, для изображения или видео в параметре `result.items.status` вернётся `skipped`. + * Узнать статус добавления или обновления товара + */ + productAPIGetImportProductsInfo(clientId, apiKey, productGetImportProductsInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetImportProductsInfoRaw({ clientId: clientId, apiKey: apiKey, productGetImportProductsInfoRequest: productGetImportProductsInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает описание характеристик товаров по идентификатору и видимости. Товар можно искать по `offer_id`, `product_id` или `sku`. + * Получить описание характеристик товара + */ + productAPIGetProductAttributesV4Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductAttributesV4().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductAttributesV4().'); + } + if (requestParameters['productv4GetProductAttributesV4Request'] == null) { + throw new runtime.RequiredError('productv4GetProductAttributesV4Request', 'Required parameter "productv4GetProductAttributesV4Request" was null or undefined when calling productAPIGetProductAttributesV4().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/product/info/attributes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Productv4GetProductAttributesV4RequestToJSON)(requestParameters['productv4GetProductAttributesV4Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Productv4GetProductAttributesV4ResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает описание характеристик товаров по идентификатору и видимости. Товар можно искать по `offer_id`, `product_id` или `sku`. + * Получить описание характеристик товара + */ + productAPIGetProductAttributesV4(clientId, apiKey, productv4GetProductAttributesV4Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductAttributesV4Raw({ clientId: clientId, apiKey: apiKey, productv4GetProductAttributesV4Request: productv4GetProductAttributesV4Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить описание товара + */ + productAPIGetProductInfoDescriptionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoDescription().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoDescription().'); + } + if (requestParameters['productGetProductInfoDescriptionRequest'] == null) { + throw new runtime.RequiredError('productGetProductInfoDescriptionRequest', 'Required parameter "productGetProductInfoDescriptionRequest" was null or undefined when calling productAPIGetProductInfoDescription().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/info/description`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductGetProductInfoDescriptionRequestToJSON)(requestParameters['productGetProductInfoDescriptionRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductGetProductInfoDescriptionResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить описание товара + */ + productAPIGetProductInfoDescription(clientId, apiKey, productGetProductInfoDescriptionRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoDescriptionRaw({ clientId: clientId, apiKey: apiKey, productGetProductInfoDescriptionRequest: productGetProductInfoDescriptionRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения информации о товарах по их идентификаторам. В теле запроса должен быть массив однотипных идентификаторов, в ответе будет массив `items`. В одном запросе вы можете передать не больше 1000 товаров по параметрам `offer_id`, `product_id` и `sku` в сумме. + * Получить информацию о товарах по идентификаторам + */ + productAPIGetProductInfoListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoList().'); + } + if (requestParameters['v3GetProductInfoListRequest'] == null) { + throw new runtime.RequiredError('v3GetProductInfoListRequest', 'Required parameter "v3GetProductInfoListRequest" was null or undefined when calling productAPIGetProductInfoList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/product/info/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V3GetProductInfoListRequestToJSON)(requestParameters['v3GetProductInfoListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3GetProductInfoListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения информации о товарах по их идентификаторам. В теле запроса должен быть массив однотипных идентификаторов, в ответе будет массив `items`. В одном запросе вы можете передать не больше 1000 товаров по параметрам `offer_id`, `product_id` и `sku` в сумме. + * Получить информацию о товарах по идентификаторам + */ + productAPIGetProductInfoList(clientId, apiKey, v3GetProductInfoListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoListRaw({ clientId: clientId, apiKey: apiKey, v3GetProductInfoListRequest: v3GetProductInfoListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения количества пользователей, которые нажали **Узнать о поступлении** на странице товара. Вы можете передать несколько товаров в запросе. + * Количество подписавшихся на товар пользователей + */ + productAPIGetProductInfoSubscriptionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetProductInfoSubscriptionRequest'] == null) { + throw new runtime.RequiredError('v1GetProductInfoSubscriptionRequest', 'Required parameter "v1GetProductInfoSubscriptionRequest" was null or undefined when calling productAPIGetProductInfoSubscription().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/info/subscription`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetProductInfoSubscriptionRequestToJSON)(requestParameters['v1GetProductInfoSubscriptionRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetProductInfoSubscriptionResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения количества пользователей, которые нажали **Узнать о поступлении** на странице товара. Вы можете передать несколько товаров в запросе. + * Количество подписавшихся на товар пользователей + */ + productAPIGetProductInfoSubscription(v1GetProductInfoSubscriptionRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoSubscriptionRaw({ v1GetProductInfoSubscriptionRequest: v1GetProductInfoSubscriptionRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка всех товаров. Если вы используете фильтр по идентификатору `offer_id` или `product_id`, остальные параметры заполнять не обязательно. Вернутся все товары с указанными идентификаторами, независимо от видимости. За один раз вы можете использовать только одну группу идентификаторов, не больше 1000 товаров. Если вы не используете для отображения идентификаторы, укажите `limit` и `last_id` в следующих запросах. + * Список товаров + */ + productAPIGetProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductList().'); + } + if (requestParameters['productv3GetProductListRequest'] == null) { + throw new runtime.RequiredError('productv3GetProductListRequest', 'Required parameter "productv3GetProductListRequest" was null or undefined when calling productAPIGetProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/product/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Productv3GetProductListRequestToJSON)(requestParameters['productv3GetProductListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Productv3GetProductListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка всех товаров. Если вы используете фильтр по идентификатору `offer_id` или `product_id`, остальные параметры заполнять не обязательно. Вернутся все товары с указанными идентификаторами, независимо от видимости. За один раз вы можете использовать только одну группу идентификаторов, не больше 1000 товаров. Если вы не используете для отображения идентификаторы, укажите `limit` и `last_id` в следующих запросах. + * Список товаров + */ + productAPIGetProductList(clientId, apiKey, productv3GetProductListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductListRaw({ clientId: clientId, apiKey: apiKey, productv3GetProductListRequest: productv3GetProductListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения контент-рейтинга товаров, а также рекомендаций по его увеличению. [Подробнее о контент-рейтинге](https://seller-edu.ozon.ru/docs/work-with-goods/content-rating.html) + * Получить контент-рейтинг товаров по SKU + */ + productAPIGetProductRatingBySkuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductRatingBySku().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductRatingBySku().'); + } + if (requestParameters['v1GetProductRatingBySkuRequest'] == null) { + throw new runtime.RequiredError('v1GetProductRatingBySkuRequest', 'Required parameter "v1GetProductRatingBySkuRequest" was null or undefined when calling productAPIGetProductRatingBySku().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/rating-by-sku`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetProductRatingBySkuRequestToJSON)(requestParameters['v1GetProductRatingBySkuRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetProductRatingBySkuResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения контент-рейтинга товаров, а также рекомендаций по его увеличению. [Подробнее о контент-рейтинге](https://seller-edu.ozon.ru/docs/work-with-goods/content-rating.html) + * Получить контент-рейтинг товаров по SKU + */ + productAPIGetProductRatingBySku(clientId, apiKey, v1GetProductRatingBySkuRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductRatingBySkuRaw({ clientId: clientId, apiKey: apiKey, v1GetProductRatingBySkuRequest: v1GetProductRatingBySkuRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения информации о лимитах: - На ассортимент — сколько всего товаров можно создать в вашем личном кабинете. - На создание товаров — сколько товаров можно создать в сутки. - На обновление товаров — сколько товаров можно отредактировать в сутки. - На работу с товарами — сколько товаров можно создать в минуту. - На разархивацию — сколько товаров можно восстановить из архива за сутки. Если у вас есть лимит на ассортимент и вы израсходуете его, вы не сможете создавать новые товары. [Подробнее о лимитах в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/creating-goods/limit) + * Лимиты на ассортимент, создание и обновление товаров + */ + productAPIGetUploadQuotaRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetUploadQuota().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetUploadQuota().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/product/info/limit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V4GetUploadQuotaResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения информации о лимитах: - На ассортимент — сколько всего товаров можно создать в вашем личном кабинете. - На создание товаров — сколько товаров можно создать в сутки. - На обновление товаров — сколько товаров можно отредактировать в сутки. - На работу с товарами — сколько товаров можно создать в минуту. - На разархивацию — сколько товаров можно восстановить из архива за сутки. Если у вас есть лимит на ассортимент и вы израсходуете его, вы не сможете создавать новые товары. [Подробнее о лимитах в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/creating-goods/limit) + * Лимиты на ассортимент, создание и обновление товаров + */ + productAPIGetUploadQuota(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetUploadQuotaRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод создаёт [копию карточки товара](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/cherez-kopirovanie) с указанным SKU. Метод копирует только карточку товара другого продавца, скопировать свой товар не получится. Создать копию не получится, если продавец запретил копирование своих карточек. Нельзя: - обновить товар по SKU; - копировать товар, если вы самозанятый. Продавцам из России и СНГ можно копировать товары любой страны. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Создать товар по SKU + */ + productAPIImportProductsBySKURaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIImportProductsBySKU().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIImportProductsBySKU().'); + } + if (requestParameters['productImportProductsBySKURequest'] == null) { + throw new runtime.RequiredError('productImportProductsBySKURequest', 'Required parameter "productImportProductsBySKURequest" was null or undefined when calling productAPIImportProductsBySKU().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/import-by-sku`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductImportProductsBySKURequestToJSON)(requestParameters['productImportProductsBySKURequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductImportProductsBySKUResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод создаёт [копию карточки товара](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/cherez-kopirovanie) с указанным SKU. Метод копирует только карточку товара другого продавца, скопировать свой товар не получится. Создать копию не получится, если продавец запретил копирование своих карточек. Нельзя: - обновить товар по SKU; - копировать товар, если вы самозанятый. Продавцам из России и СНГ можно копировать товары любой страны. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Создать товар по SKU + */ + productAPIImportProductsBySKU(clientId, apiKey, productImportProductsBySKURequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIImportProductsBySKURaw({ clientId: clientId, apiKey: apiKey, productImportProductsBySKURequest: productImportProductsBySKURequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для создания товаров и обновления информации о них. В сутки можно создать или обновить определённое количество товаров. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). Если количество загрузок и обновлений товаров превысит лимит, появится ошибка `item_limit_exceeded`. У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. В одном запросе можно передать до 100 товаров. Каждый товар — это отдельный элемент в массиве `items`. Укажите всю информацию о товаре: его характеристики, штрихкод, изображения, габариты, цену и валюту цены. При обновлении товара передайте в запросе всю информацию о нём. Указанная валюта должна совпадать с той, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. Например, если у вас установлена валюта юань, передавайте значение `CNY`, иначе вернётся ошибка. Товар не будет создан или обновлён, если вы заполните неправильно или не укажете: - **Обязательные характеристики**: характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://global-help.ozon.com/products/requirements/product-info/product-characteristics/#обязательные-характеристики) или получить методом [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). - **Реальные объёмно-весовые характеристики**: `depth`, `width`, `height`, `dimension_unit`, `weight`, `weight_unit`. Не пропускайте эти параметры в запросе и не указывайте 0. Для некоторых характеристик можно использовать HTML-теги. Получите статус модерации созданного или обновлённого товара в параметре `items.statuses.moderate_status` метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). После модерации товар появится в вашем личном кабинете, но не будет виден пользователям, пока вы не выставите его на продажу. Каждый товар в запросе — отдельный элемент массива `items`. Чтобы объединить две карточки, для каждой передайте `9048` в массиве `attributes`. Все атрибуты в этих карточках, кроме размера или цвета, должны совпадать. ## Загрузка изображений Для загрузки передайте в запросе ссылки на изображения в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Для загрузки главного изображения товара используйте параметр `primary_image`. Если не передать значение `primary_image`, главным будет первое изображение в массиве `images`. Чтобы загрузить главное изображение для Ozon Селект: 1. Проверьте, что в ответе метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) возвращается характеристика с `result.id = 23500`. 2. Передайте ссылку на изображение в параметре `items.attributes.values.value` с `id = 23500`. Для каждого товара вы можете загрузить до 30 изображений, включая главное. Если передать значение `primary_image`, максимальное количество изображений в `images` — 29. Если параметр `primary_image` пустой, то в `images` можно передать до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. ## Загрузка видео Для загрузки передайте в запросе ссылки на видео длительностью от 8 секунд до 5 минут. Формат видео по ссылке — MP4, MOV. [Подробнее о требованиях к видео в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#каким-должно-быть-видео) Для этого в параметре `complex_attributes` передайте объект. В нём в массиве `attributes` передайте 2 объекта с `complex_id = 100001`: - В первом укажите `id = 21841` и в массиве `values` передайте объект с ссылкой на видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" } ] } ``` - Во втором укажите значение `id = 21837` и в массиве `values` передайте объект с названием видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" } ] } ``` Если вы хотите загрузить несколько видео, передавайте значения для каждого видео в разных объектах массива `values`. Объекты в массиве располагайте в соответствии с желаемым порядком на сайте. Максимальное количество видео — 5. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" }, { \"value\": \"videoName_2\" } ] }, { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" }, { \"value\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" } ] } ``` ## Загрузка видеообложки Вы можете загрузить видеообложку через `complex_attributes`. [Подробнее о требованиях к видеообложкам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какои-должна-быть-видеообложка) __Пример__: ``` \"complex_attributes\": [ { \"attributes\": [ { \"id\": 21845, \"complex_id\": 100002, \"values\": [ { \"dictionary_value_id\": 0, \"value\": \"https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4\" } ] } ] } ] ``` [Подробнее о видеообложке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/zagruzka-media/videooblozhka) ## Загрузка таблицы размеров Вы можете добавить в карточку товара таблицу размеров, созданную с помощью [конструктора](https://table-constructor.ozon.ru/visual-editor). Передайте её в массиве `attributes` в формате JSON как Rich-контент `id = 13164`.

[Конструктор в формате JSON](https://table-constructor.ozon.ru/schema.json)
[Подробнее о конструкторе в Базе знаний продавца](https://global-help.ozon.com/products/requirements/size-table-constructor/) + * Создать или обновить товар + */ + productAPIImportProductsV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIImportProductsV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIImportProductsV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/product/import`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V3ImportProductsRequestToJSON)(requestParameters['v3ImportProductsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3ImportProductsResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для создания товаров и обновления информации о них. В сутки можно создать или обновить определённое количество товаров. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). Если количество загрузок и обновлений товаров превысит лимит, появится ошибка `item_limit_exceeded`. У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. В одном запросе можно передать до 100 товаров. Каждый товар — это отдельный элемент в массиве `items`. Укажите всю информацию о товаре: его характеристики, штрихкод, изображения, габариты, цену и валюту цены. При обновлении товара передайте в запросе всю информацию о нём. Указанная валюта должна совпадать с той, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. Например, если у вас установлена валюта юань, передавайте значение `CNY`, иначе вернётся ошибка. Товар не будет создан или обновлён, если вы заполните неправильно или не укажете: - **Обязательные характеристики**: характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://global-help.ozon.com/products/requirements/product-info/product-characteristics/#обязательные-характеристики) или получить методом [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). - **Реальные объёмно-весовые характеристики**: `depth`, `width`, `height`, `dimension_unit`, `weight`, `weight_unit`. Не пропускайте эти параметры в запросе и не указывайте 0. Для некоторых характеристик можно использовать HTML-теги. Получите статус модерации созданного или обновлённого товара в параметре `items.statuses.moderate_status` метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). После модерации товар появится в вашем личном кабинете, но не будет виден пользователям, пока вы не выставите его на продажу. Каждый товар в запросе — отдельный элемент массива `items`. Чтобы объединить две карточки, для каждой передайте `9048` в массиве `attributes`. Все атрибуты в этих карточках, кроме размера или цвета, должны совпадать. ## Загрузка изображений Для загрузки передайте в запросе ссылки на изображения в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Для загрузки главного изображения товара используйте параметр `primary_image`. Если не передать значение `primary_image`, главным будет первое изображение в массиве `images`. Чтобы загрузить главное изображение для Ozon Селект: 1. Проверьте, что в ответе метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) возвращается характеристика с `result.id = 23500`. 2. Передайте ссылку на изображение в параметре `items.attributes.values.value` с `id = 23500`. Для каждого товара вы можете загрузить до 30 изображений, включая главное. Если передать значение `primary_image`, максимальное количество изображений в `images` — 29. Если параметр `primary_image` пустой, то в `images` можно передать до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. ## Загрузка видео Для загрузки передайте в запросе ссылки на видео длительностью от 8 секунд до 5 минут. Формат видео по ссылке — MP4, MOV. [Подробнее о требованиях к видео в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#каким-должно-быть-видео) Для этого в параметре `complex_attributes` передайте объект. В нём в массиве `attributes` передайте 2 объекта с `complex_id = 100001`: - В первом укажите `id = 21841` и в массиве `values` передайте объект с ссылкой на видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" } ] } ``` - Во втором укажите значение `id = 21837` и в массиве `values` передайте объект с названием видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" } ] } ``` Если вы хотите загрузить несколько видео, передавайте значения для каждого видео в разных объектах массива `values`. Объекты в массиве располагайте в соответствии с желаемым порядком на сайте. Максимальное количество видео — 5. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" }, { \"value\": \"videoName_2\" } ] }, { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" }, { \"value\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" } ] } ``` ## Загрузка видеообложки Вы можете загрузить видеообложку через `complex_attributes`. [Подробнее о требованиях к видеообложкам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какои-должна-быть-видеообложка) __Пример__: ``` \"complex_attributes\": [ { \"attributes\": [ { \"id\": 21845, \"complex_id\": 100002, \"values\": [ { \"dictionary_value_id\": 0, \"value\": \"https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4\" } ] } ] } ] ``` [Подробнее о видеообложке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/zagruzka-media/videooblozhka) ## Загрузка таблицы размеров Вы можете добавить в карточку товара таблицу размеров, созданную с помощью [конструктора](https://table-constructor.ozon.ru/visual-editor). Передайте её в массиве `attributes` в формате JSON как Rich-контент `id = 13164`.

[Конструктор в формате JSON](https://table-constructor.ozon.ru/schema.json)
[Подробнее о конструкторе в Базе знаний продавца](https://global-help.ozon.com/products/requirements/size-table-constructor/) + * Создать или обновить товар + */ + productAPIImportProductsV3(clientId, apiKey, v3ImportProductsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIImportProductsV3Raw({ clientId: clientId, apiKey: apiKey, v3ImportProductsRequest: v3ImportProductsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает статус запроса на архивацию.

Чтобы проверить фактическое состояние товара после архивации, используйте метод [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList).
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) + * Перенести товар в архив + */ + productAPIProductArchiveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductArchive().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductArchive().'); + } + if (requestParameters['productProductArchiveRequest'] == null) { + throw new runtime.RequiredError('productProductArchiveRequest', 'Required parameter "productProductArchiveRequest" was null or undefined when calling productAPIProductArchive().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/archive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductProductArchiveRequestToJSON)(requestParameters['productProductArchiveRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductBooleanResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает статус запроса на архивацию.

Чтобы проверить фактическое состояние товара после архивации, используйте метод [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList).
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) + * Перенести товар в архив + */ + productAPIProductArchive(clientId, apiKey, productProductArchiveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductArchiveRaw({ clientId: clientId, apiKey: apiKey, productProductArchiveRequest: productProductArchiveRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения единого SKU по старым идентификаторам SKU FBS и SKU FBO. В ответе будут все SKU, связанные с переданными. Метод может обработать любые SKU, даже скрытые или удалённые. Передавайте до 200 SKU в одном запросе. + * Получить связанные SKU + */ + productAPIProductGetRelatedSKURaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductGetRelatedSKU().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductGetRelatedSKU().'); + } + if (requestParameters['v1ProductGetRelatedSKURequest'] == null) { + throw new runtime.RequiredError('v1ProductGetRelatedSKURequest', 'Required parameter "v1ProductGetRelatedSKURequest" was null or undefined when calling productAPIProductGetRelatedSKU().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/related-sku/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductGetRelatedSKURequestToJSON)(requestParameters['v1ProductGetRelatedSKURequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductGetRelatedSKUResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения единого SKU по старым идентификаторам SKU FBS и SKU FBO. В ответе будут все SKU, связанные с переданными. Метод может обработать любые SKU, даже скрытые или удалённые. Передавайте до 200 SKU в одном запросе. + * Получить связанные SKU + */ + productAPIProductGetRelatedSKU(clientId, apiKey, v1ProductGetRelatedSKURequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductGetRelatedSKURaw({ clientId: clientId, apiKey: apiKey, v1ProductGetRelatedSKURequest: v1ProductGetRelatedSKURequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для загрузки или обновления изображений товара. При каждом вызове метода передавайте все изображения, которые должны быть на карточке товара. Например, если вы вызвали метод и загрузили 10 изображений, а затем вызвали метод второй раз и загрузили ещё одно, то все 10 предыдущих сотрутся. Для загрузки передайте адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Главным будет первое изображение в массиве. Для каждого товара вы можете загрузить до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. Если вы обновили изображение по ссылке, но ссылка не изменилась, в методе [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo) для изображения в параметре `result.items.status` вернётся `skipped`. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Загрузить или обновить изображения товара + */ + productAPIProductImportPicturesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductImportPictures().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductImportPictures().'); + } + if (requestParameters['productv1ProductImportPicturesRequest'] == null) { + throw new runtime.RequiredError('productv1ProductImportPicturesRequest', 'Required parameter "productv1ProductImportPicturesRequest" was null or undefined when calling productAPIProductImportPictures().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/pictures/import`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.Productv1ProductImportPicturesRequestToJSON)(requestParameters['productv1ProductImportPicturesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Productv1ProductInfoPicturesResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для загрузки или обновления изображений товара. При каждом вызове метода передавайте все изображения, которые должны быть на карточке товара. Например, если вы вызвали метод и загрузили 10 изображений, а затем вызвали метод второй раз и загрузили ещё одно, то все 10 предыдущих сотрутся. Для загрузки передайте адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Главным будет первое изображение в массиве. Для каждого товара вы можете загрузить до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. Если вы обновили изображение по ссылке, но ссылка не изменилась, в методе [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo) для изображения в параметре `result.items.status` вернётся `skipped`. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Загрузить или обновить изображения товара + */ + productAPIProductImportPictures(clientId, apiKey, productv1ProductImportPicturesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductImportPicturesRaw({ clientId: clientId, apiKey: apiKey, productv1ProductImportPicturesRequest: productv1ProductImportPicturesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить изображения товаров + */ + productAPIProductInfoPicturesV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductInfoPicturesV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductInfoPicturesV2().'); + } + if (requestParameters['v2ProductInfoPicturesRequest'] == null) { + throw new runtime.RequiredError('v2ProductInfoPicturesRequest', 'Required parameter "v2ProductInfoPicturesRequest" was null or undefined when calling productAPIProductInfoPicturesV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/pictures/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2ProductInfoPicturesRequestToJSON)(requestParameters['v2ProductInfoPicturesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2ProductInfoPicturesResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить изображения товаров + */ + productAPIProductInfoPicturesV2(clientId, apiKey, v2ProductInfoPicturesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductInfoPicturesV2Raw({ clientId: clientId, apiKey: apiKey, v2ProductInfoPicturesRequest: v2ProductInfoPicturesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список товаров с некорректными объёмно-весовыми характеристиками (ОВХ). Если вы указали размеры правильно, обратитесь в поддержку Ozon. [Подробнее об объёмно-весовых характеристиках в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/ovh) + * Список товаров с некорректными ОВХ + */ + productAPIProductInfoWrongVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductInfoWrongVolume().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductInfoWrongVolume().'); + } + if (requestParameters['v1ProductInfoWrongVolumeRequest'] == null) { + throw new runtime.RequiredError('v1ProductInfoWrongVolumeRequest', 'Required parameter "v1ProductInfoWrongVolumeRequest" was null or undefined when calling productAPIProductInfoWrongVolume().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/info/wrong-volume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductInfoWrongVolumeRequestToJSON)(requestParameters['v1ProductInfoWrongVolumeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductInfoWrongVolumeResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список товаров с некорректными объёмно-весовыми характеристиками (ОВХ). Если вы указали размеры правильно, обратитесь в поддержку Ozon. [Подробнее об объёмно-весовых характеристиках в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/ovh) + * Список товаров с некорректными ОВХ + */ + productAPIProductInfoWrongVolume(clientId, apiKey, v1ProductInfoWrongVolumeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductInfoWrongVolumeRaw({ clientId: clientId, apiKey: apiKey, v1ProductInfoWrongVolumeRequest: v1ProductInfoWrongVolumeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если вы превысите лимит на восстановление, вернётся ошибка `autoarchive_restore_failed`.
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Вернуть товар из архива + */ + productAPIProductUnarchiveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductUnarchive().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductUnarchive().'); + } + if (requestParameters['productProductUnarchiveRequest'] == null) { + throw new runtime.RequiredError('productProductUnarchiveRequest', 'Required parameter "productProductUnarchiveRequest" was null or undefined when calling productAPIProductUnarchive().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/unarchive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductProductUnarchiveRequestToJSON)(requestParameters['productProductUnarchiveRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductBooleanResponseFromJSON)(jsonValue)); + }); + } + /** + * Если вы превысите лимит на восстановление, вернётся ошибка `autoarchive_restore_failed`.
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Вернуть товар из архива + */ + productAPIProductUnarchive(clientId, apiKey, productProductUnarchiveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductUnarchiveRaw({ clientId: clientId, apiKey: apiKey, productProductUnarchiveRequest: productProductUnarchiveRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод позволяет добавлять характеристики и изменять их значения. Изменятся только характеристики, которые вы указали в запросе. Удалить уже заполненные характеристики не получится. Для полного обновления характеристик используйте /v3/product/import. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Обновить характеристики товара + */ + productAPIProductUpdateAttributesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductUpdateAttributes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductUpdateAttributes().'); + } + if (requestParameters['v1ProductUpdateAttributesRequest'] == null) { + throw new runtime.RequiredError('v1ProductUpdateAttributesRequest', 'Required parameter "v1ProductUpdateAttributesRequest" was null or undefined when calling productAPIProductUpdateAttributes().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/attributes/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductUpdateAttributesRequestToJSON)(requestParameters['v1ProductUpdateAttributesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductUpdateAttributesResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод позволяет добавлять характеристики и изменять их значения. Изменятся только характеристики, которые вы указали в запросе. Удалить уже заполненные характеристики не получится. Для полного обновления характеристик используйте /v3/product/import. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Обновить характеристики товара + */ + productAPIProductUpdateAttributes(clientId, apiKey, v1ProductUpdateAttributesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductUpdateAttributesRaw({ clientId: clientId, apiKey: apiKey, v1ProductUpdateAttributesRequest: v1ProductUpdateAttributesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для изменения `offer_id`, привязанных к товарам. Вы можете изменить несколько `offer_id`. Если `offer_id` уже используется для другого товара, вернётся ошибка `OFFER_ID_ALREADY_EXISTS`.
[Подробнее о требованиях к артикулам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/articyl-tovara#какие-есть-требования-к-артикулу) У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Изменить артикулы товаров из системы продавца + */ + productAPIProductUpdateOfferIDRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductUpdateOfferID().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductUpdateOfferID().'); + } + if (requestParameters['v1ProductUpdateOfferIdRequest'] == null) { + throw new runtime.RequiredError('v1ProductUpdateOfferIdRequest', 'Required parameter "v1ProductUpdateOfferIdRequest" was null or undefined when calling productAPIProductUpdateOfferID().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/update/offer-id`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ProductUpdateOfferIdRequestToJSON)(requestParameters['v1ProductUpdateOfferIdRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ProductUpdateOfferIdResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для изменения `offer_id`, привязанных к товарам. Вы можете изменить несколько `offer_id`. Если `offer_id` уже используется для другого товара, вернётся ошибка `OFFER_ID_ALREADY_EXISTS`.
[Подробнее о требованиях к артикулам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/articyl-tovara#какие-есть-требования-к-артикулу) У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Изменить артикулы товаров из системы продавца + */ + productAPIProductUpdateOfferID(clientId, apiKey, v1ProductUpdateOfferIdRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductUpdateOfferIDRaw({ clientId: clientId, apiKey: apiKey, v1ProductUpdateOfferIdRequest: v1ProductUpdateOfferIdRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.ProductAPI = ProductAPI; diff --git a/dist/apis/Promos.d.ts b/dist/apis/Promos.d.ts new file mode 100644 index 0000000..0837d84 --- /dev/null +++ b/dist/apis/Promos.d.ts @@ -0,0 +1,119 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { SellerApiActivateProductV1Request, SellerApiGetSellerActionsV1Response, SellerApiGetSellerProductV1Request, SellerApiGetSellerProductV1Response, SellerApiProductIDsV1Request, SellerApiProductV1Response, SellerApiProductV1ResponseDeactivate, V1ApproveDeclineDiscountTasksResponse, V1ApproveDiscountTasksRequest, V1DeclineDiscountTasksRequest, V1GetDiscountTaskListRequest, V1GetDiscountTaskListResponse } from '../models/index'; +export interface PromosCandidatesRequest { + sellerApiGetSellerProductV1Request?: SellerApiGetSellerProductV1Request; +} +export interface PromosProductsRequest { + sellerApiGetSellerProductV1Request?: SellerApiGetSellerProductV1Request; +} +export interface PromosProductsActivateRequest { + sellerApiActivateProductV1Request: SellerApiActivateProductV1Request; +} +export interface PromosProductsDeactivateRequest { + sellerApiProductIDsV1Request: SellerApiProductIDsV1Request; +} +export interface PromosTaskApproveRequest { + v1ApproveDiscountTasksRequest: V1ApproveDiscountTasksRequest; +} +export interface PromosTaskDeclineRequest { + v1DeclineDiscountTasksRequest: V1DeclineDiscountTasksRequest; +} +export interface PromosTaskListRequest { + v1GetDiscountTaskListRequest: V1GetDiscountTaskListRequest; +} +/** + * + */ +export declare class Promos extends runtime.BaseAPI { + /** + * Метод для получения списка акций Ozon, в которых можно участвовать. [Подробнее об акциях Ozon](https://seller-edu.ozon.ru/ceny-i-akcii/akcii-skidki-i-kupony/promo) + * Список акций + */ + promosRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка акций Ozon, в которых можно участвовать. [Подробнее об акциях Ozon](https://seller-edu.ozon.ru/ceny-i-akcii/akcii-skidki-i-kupony/promo) + * Список акций + */ + promos(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка товаров, которые могут участвовать в акции, по её идентификатору. + * Список доступных для акции товаров + */ + promosCandidatesRaw(requestParameters: PromosCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка товаров, которые могут участвовать в акции, по её идентификатору. + * Список доступных для акции товаров + */ + promosCandidates(sellerApiGetSellerProductV1Request?: SellerApiGetSellerProductV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка товаров, участвующих в акции, по её идентификатору. + * Список участвующих в акции товаров + */ + promosProductsRaw(requestParameters: PromosProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка товаров, участвующих в акции, по её идентификатору. + * Список участвующих в акции товаров + */ + promosProducts(sellerApiGetSellerProductV1Request?: SellerApiGetSellerProductV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для добавления товаров в доступную акцию. + * Добавить товар в акцию + */ + promosProductsActivateRaw(requestParameters: PromosProductsActivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для добавления товаров в доступную акцию. + * Добавить товар в акцию + */ + promosProductsActivate(sellerApiActivateProductV1Request: SellerApiActivateProductV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для удаления товаров из акции. + * Удалить товары из акции + */ + promosProductsDeactivateRaw(requestParameters: PromosProductsDeactivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для удаления товаров из акции. + * Удалить товары из акции + */ + promosProductsDeactivate(sellerApiProductIDsV1Request: SellerApiProductIDsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете согласовывать заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Согласовать заявку на скидку + */ + promosTaskApproveRaw(requestParameters: PromosTaskApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете согласовывать заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Согласовать заявку на скидку + */ + promosTaskApprove(v1ApproveDiscountTasksRequest: V1ApproveDiscountTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете отклонить заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Отклонить заявку на скидку + */ + promosTaskDeclineRaw(requestParameters: PromosTaskDeclineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете отклонить заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Отклонить заявку на скидку + */ + promosTaskDecline(v1DeclineDiscountTasksRequest: V1DeclineDiscountTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка товаров, которые покупатели хотят купить со скидкой. + * Список заявок на скидку + */ + promosTaskListRaw(requestParameters: PromosTaskListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка товаров, которые покупатели хотят купить со скидкой. + * Список заявок на скидку + */ + promosTaskList(v1GetDiscountTaskListRequest: V1GetDiscountTaskListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/Promos.js b/dist/apis/Promos.js new file mode 100644 index 0000000..99d278d --- /dev/null +++ b/dist/apis/Promos.js @@ -0,0 +1,278 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Promos = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class Promos extends runtime.BaseAPI { + /** + * Метод для получения списка акций Ozon, в которых можно участвовать. [Подробнее об акциях Ozon](https://seller-edu.ozon.ru/ceny-i-akcii/akcii-skidki-i-kupony/promo) + * Список акций + */ + promosRaw(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + const response = yield this.request({ + path: `/v1/actions`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SellerApiGetSellerActionsV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка акций Ozon, в которых можно участвовать. [Подробнее об акциях Ozon](https://seller-edu.ozon.ru/ceny-i-akcii/akcii-skidki-i-kupony/promo) + * Список акций + */ + promos(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosRaw(initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка товаров, которые могут участвовать в акции, по её идентификатору. + * Список доступных для акции товаров + */ + promosCandidatesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/candidates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SellerApiGetSellerProductV1RequestToJSON)(requestParameters['sellerApiGetSellerProductV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SellerApiGetSellerProductV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка товаров, которые могут участвовать в акции, по её идентификатору. + * Список доступных для акции товаров + */ + promosCandidates(sellerApiGetSellerProductV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosCandidatesRaw({ sellerApiGetSellerProductV1Request: sellerApiGetSellerProductV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка товаров, участвующих в акции, по её идентификатору. + * Список участвующих в акции товаров + */ + promosProductsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/products`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SellerApiGetSellerProductV1RequestToJSON)(requestParameters['sellerApiGetSellerProductV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SellerApiGetSellerProductV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка товаров, участвующих в акции, по её идентификатору. + * Список участвующих в акции товаров + */ + promosProducts(sellerApiGetSellerProductV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosProductsRaw({ sellerApiGetSellerProductV1Request: sellerApiGetSellerProductV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для добавления товаров в доступную акцию. + * Добавить товар в акцию + */ + promosProductsActivateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerApiActivateProductV1Request'] == null) { + throw new runtime.RequiredError('sellerApiActivateProductV1Request', 'Required parameter "sellerApiActivateProductV1Request" was null or undefined when calling promosProductsActivate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/products/activate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SellerApiActivateProductV1RequestToJSON)(requestParameters['sellerApiActivateProductV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SellerApiProductV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для добавления товаров в доступную акцию. + * Добавить товар в акцию + */ + promosProductsActivate(sellerApiActivateProductV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosProductsActivateRaw({ sellerApiActivateProductV1Request: sellerApiActivateProductV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для удаления товаров из акции. + * Удалить товары из акции + */ + promosProductsDeactivateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerApiProductIDsV1Request'] == null) { + throw new runtime.RequiredError('sellerApiProductIDsV1Request', 'Required parameter "sellerApiProductIDsV1Request" was null or undefined when calling promosProductsDeactivate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/products/deactivate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SellerApiProductIDsV1RequestToJSON)(requestParameters['sellerApiProductIDsV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SellerApiProductV1ResponseDeactivateFromJSON)(jsonValue)); + }); + } + /** + * Метод для удаления товаров из акции. + * Удалить товары из акции + */ + promosProductsDeactivate(sellerApiProductIDsV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosProductsDeactivateRaw({ sellerApiProductIDsV1Request: sellerApiProductIDsV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете согласовывать заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Согласовать заявку на скидку + */ + promosTaskApproveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ApproveDiscountTasksRequest'] == null) { + throw new runtime.RequiredError('v1ApproveDiscountTasksRequest', 'Required parameter "v1ApproveDiscountTasksRequest" was null or undefined when calling promosTaskApprove().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/discounts-task/approve`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ApproveDiscountTasksRequestToJSON)(requestParameters['v1ApproveDiscountTasksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ApproveDeclineDiscountTasksResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете согласовывать заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Согласовать заявку на скидку + */ + promosTaskApprove(v1ApproveDiscountTasksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosTaskApproveRaw({ v1ApproveDiscountTasksRequest: v1ApproveDiscountTasksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете отклонить заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Отклонить заявку на скидку + */ + promosTaskDeclineRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1DeclineDiscountTasksRequest'] == null) { + throw new runtime.RequiredError('v1DeclineDiscountTasksRequest', 'Required parameter "v1DeclineDiscountTasksRequest" was null or undefined when calling promosTaskDecline().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/discounts-task/decline`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1DeclineDiscountTasksRequestToJSON)(requestParameters['v1DeclineDiscountTasksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ApproveDeclineDiscountTasksResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете отклонить заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Отклонить заявку на скидку + */ + promosTaskDecline(v1DeclineDiscountTasksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosTaskDeclineRaw({ v1DeclineDiscountTasksRequest: v1DeclineDiscountTasksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка товаров, которые покупатели хотят купить со скидкой. + * Список заявок на скидку + */ + promosTaskListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetDiscountTaskListRequest'] == null) { + throw new runtime.RequiredError('v1GetDiscountTaskListRequest', 'Required parameter "v1GetDiscountTaskListRequest" was null or undefined when calling promosTaskList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/discounts-task/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetDiscountTaskListRequestToJSON)(requestParameters['v1GetDiscountTaskListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetDiscountTaskListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка товаров, которые покупатели хотят купить со скидкой. + * Список заявок на скидку + */ + promosTaskList(v1GetDiscountTaskListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosTaskListRaw({ v1GetDiscountTaskListRequest: v1GetDiscountTaskListRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.Promos = Promos; diff --git a/dist/apis/PromosBeta.d.ts b/dist/apis/PromosBeta.d.ts new file mode 100644 index 0000000..e5858ae --- /dev/null +++ b/dist/apis/PromosBeta.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ActionsV1ActionsAutoAddProductsCandidatesRequest, ActionsV1ActionsAutoAddProductsCandidatesResponse, ActionsV1ActionsAutoAddProductsDeleteRequest, ActionsV1ActionsAutoAddProductsDeleteResponse, ActionsV1ActionsAutoAddProductsListRequest, ActionsV1ActionsAutoAddProductsListResponse, ActionsV1ActionsAutoAddProductsUpdateRequest, ActionsV1ActionsAutoAddProductsUpdateResponse } from '../models/index'; +export interface ActionsAutoAddProductsCandidatesRequest { + clientId: string; + apiKey: string; + actionsV1ActionsAutoAddProductsCandidatesRequest: ActionsV1ActionsAutoAddProductsCandidatesRequest; +} +export interface ActionsAutoAddProductsDeleteRequest { + clientId: string; + apiKey: string; + actionsV1ActionsAutoAddProductsDeleteRequest: ActionsV1ActionsAutoAddProductsDeleteRequest; +} +export interface ActionsAutoAddProductsListRequest { + clientId: string; + apiKey: string; + actionsV1ActionsAutoAddProductsListRequest: ActionsV1ActionsAutoAddProductsListRequest; +} +export interface ActionsAutoAddProductsUpdateRequest { + clientId: string; + apiKey: string; + actionsV1ActionsAutoAddProductsUpdateRequest: ActionsV1ActionsAutoAddProductsUpdateRequest; +} +/** + * + */ +export declare class PromosBeta extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список доступных товаров для автодобавления в акцию + */ + actionsAutoAddProductsCandidatesRaw(requestParameters: ActionsAutoAddProductsCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список доступных товаров для автодобавления в акцию + */ + actionsAutoAddProductsCandidates(clientId: string, apiKey: string, actionsV1ActionsAutoAddProductsCandidatesRequest: ActionsV1ActionsAutoAddProductsCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Удалить товары из автодобавления в акцию + */ + actionsAutoAddProductsDeleteRaw(requestParameters: ActionsAutoAddProductsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Удалить товары из автодобавления в акцию + */ + actionsAutoAddProductsDelete(clientId: string, apiKey: string, actionsV1ActionsAutoAddProductsDeleteRequest: ActionsV1ActionsAutoAddProductsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список товаров из автодобавления в акцию + */ + actionsAutoAddProductsListRaw(requestParameters: ActionsAutoAddProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список товаров из автодобавления в акцию + */ + actionsAutoAddProductsList(clientId: string, apiKey: string, actionsV1ActionsAutoAddProductsListRequest: ActionsV1ActionsAutoAddProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Добавить или обновить товары в автодобавлении в акцию + */ + actionsAutoAddProductsUpdateRaw(requestParameters: ActionsAutoAddProductsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Добавить или обновить товары в автодобавлении в акцию + */ + actionsAutoAddProductsUpdate(clientId: string, apiKey: string, actionsV1ActionsAutoAddProductsUpdateRequest: ActionsV1ActionsAutoAddProductsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/PromosBeta.js b/dist/apis/PromosBeta.js new file mode 100644 index 0000000..182cd56 --- /dev/null +++ b/dist/apis/PromosBeta.js @@ -0,0 +1,209 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PromosBeta = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class PromosBeta extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список доступных товаров для автодобавления в акцию + */ + actionsAutoAddProductsCandidatesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling actionsAutoAddProductsCandidates().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling actionsAutoAddProductsCandidates().'); + } + if (requestParameters['actionsV1ActionsAutoAddProductsCandidatesRequest'] == null) { + throw new runtime.RequiredError('actionsV1ActionsAutoAddProductsCandidatesRequest', 'Required parameter "actionsV1ActionsAutoAddProductsCandidatesRequest" was null or undefined when calling actionsAutoAddProductsCandidates().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/actions/auto-add/products/candidates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON)(requestParameters['actionsV1ActionsAutoAddProductsCandidatesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список доступных товаров для автодобавления в акцию + */ + actionsAutoAddProductsCandidates(clientId, apiKey, actionsV1ActionsAutoAddProductsCandidatesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.actionsAutoAddProductsCandidatesRaw({ clientId: clientId, apiKey: apiKey, actionsV1ActionsAutoAddProductsCandidatesRequest: actionsV1ActionsAutoAddProductsCandidatesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Удалить товары из автодобавления в акцию + */ + actionsAutoAddProductsDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling actionsAutoAddProductsDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling actionsAutoAddProductsDelete().'); + } + if (requestParameters['actionsV1ActionsAutoAddProductsDeleteRequest'] == null) { + throw new runtime.RequiredError('actionsV1ActionsAutoAddProductsDeleteRequest', 'Required parameter "actionsV1ActionsAutoAddProductsDeleteRequest" was null or undefined when calling actionsAutoAddProductsDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/actions/auto-add/products/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ActionsV1ActionsAutoAddProductsDeleteRequestToJSON)(requestParameters['actionsV1ActionsAutoAddProductsDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Удалить товары из автодобавления в акцию + */ + actionsAutoAddProductsDelete(clientId, apiKey, actionsV1ActionsAutoAddProductsDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.actionsAutoAddProductsDeleteRaw({ clientId: clientId, apiKey: apiKey, actionsV1ActionsAutoAddProductsDeleteRequest: actionsV1ActionsAutoAddProductsDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список товаров из автодобавления в акцию + */ + actionsAutoAddProductsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling actionsAutoAddProductsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling actionsAutoAddProductsList().'); + } + if (requestParameters['actionsV1ActionsAutoAddProductsListRequest'] == null) { + throw new runtime.RequiredError('actionsV1ActionsAutoAddProductsListRequest', 'Required parameter "actionsV1ActionsAutoAddProductsListRequest" was null or undefined when calling actionsAutoAddProductsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/actions/auto-add/products/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ActionsV1ActionsAutoAddProductsListRequestToJSON)(requestParameters['actionsV1ActionsAutoAddProductsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ActionsV1ActionsAutoAddProductsListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список товаров из автодобавления в акцию + */ + actionsAutoAddProductsList(clientId, apiKey, actionsV1ActionsAutoAddProductsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.actionsAutoAddProductsListRaw({ clientId: clientId, apiKey: apiKey, actionsV1ActionsAutoAddProductsListRequest: actionsV1ActionsAutoAddProductsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Добавить или обновить товары в автодобавлении в акцию + */ + actionsAutoAddProductsUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling actionsAutoAddProductsUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling actionsAutoAddProductsUpdate().'); + } + if (requestParameters['actionsV1ActionsAutoAddProductsUpdateRequest'] == null) { + throw new runtime.RequiredError('actionsV1ActionsAutoAddProductsUpdateRequest', 'Required parameter "actionsV1ActionsAutoAddProductsUpdateRequest" was null or undefined when calling actionsAutoAddProductsUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/actions/auto-add/products/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ActionsV1ActionsAutoAddProductsUpdateRequestToJSON)(requestParameters['actionsV1ActionsAutoAddProductsUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Добавить или обновить товары в автодобавлении в акцию + */ + actionsAutoAddProductsUpdate(clientId, apiKey, actionsV1ActionsAutoAddProductsUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.actionsAutoAddProductsUpdateRaw({ clientId: clientId, apiKey: apiKey, actionsV1ActionsAutoAddProductsUpdateRequest: actionsV1ActionsAutoAddProductsUpdateRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.PromosBeta = PromosBeta; diff --git a/dist/apis/Quants.d.ts b/dist/apis/Quants.d.ts new file mode 100644 index 0000000..36b997e --- /dev/null +++ b/dist/apis/Quants.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ProductV1QuantInfoRequest, ProductV1QuantInfoResponse, ProductV1QuantListRequest, ProductV1QuantListResponse } from '../models/index'; +export interface QuantGetInfoRequest { + clientId: string; + apiKey: string; + productV1QuantInfoRequest: ProductV1QuantInfoRequest; +} +export interface QuantProductListRequest { + clientId: string; + apiKey: string; + productV1QuantListRequest: ProductV1QuantListRequest; +} +/** + * + */ +export declare class Quants extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Информация об эконом-товаре + */ + quantGetInfoRaw(requestParameters: QuantGetInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Информация об эконом-товаре + */ + quantGetInfo(clientId: string, apiKey: string, productV1QuantInfoRequest: ProductV1QuantInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Список эконом-товаров + */ + quantProductListRaw(requestParameters: QuantProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Список эконом-товаров + */ + quantProductList(clientId: string, apiKey: string, productV1QuantListRequest: ProductV1QuantListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/Quants.js b/dist/apis/Quants.js new file mode 100644 index 0000000..4c49564 --- /dev/null +++ b/dist/apis/Quants.js @@ -0,0 +1,121 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Quants = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class Quants extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Информация об эконом-товаре + */ + quantGetInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling quantGetInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling quantGetInfo().'); + } + if (requestParameters['productV1QuantInfoRequest'] == null) { + throw new runtime.RequiredError('productV1QuantInfoRequest', 'Required parameter "productV1QuantInfoRequest" was null or undefined when calling quantGetInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/quant/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductV1QuantInfoRequestToJSON)(requestParameters['productV1QuantInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductV1QuantInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Информация об эконом-товаре + */ + quantGetInfo(clientId, apiKey, productV1QuantInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.quantGetInfoRaw({ clientId: clientId, apiKey: apiKey, productV1QuantInfoRequest: productV1QuantInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Список эконом-товаров + */ + quantProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling quantProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling quantProductList().'); + } + if (requestParameters['productV1QuantListRequest'] == null) { + throw new runtime.RequiredError('productV1QuantListRequest', 'Required parameter "productV1QuantListRequest" was null or undefined when calling quantProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/quant/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ProductV1QuantListRequestToJSON)(requestParameters['productV1QuantListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductV1QuantListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Список эконом-товаров + */ + quantProductList(clientId, apiKey, productV1QuantListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.quantProductListRaw({ clientId: clientId, apiKey: apiKey, productV1QuantListRequest: productV1QuantListRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.Quants = Quants; diff --git a/dist/apis/QuestionsAnswers.d.ts b/dist/apis/QuestionsAnswers.d.ts new file mode 100644 index 0000000..35c1a53 --- /dev/null +++ b/dist/apis/QuestionsAnswers.d.ts @@ -0,0 +1,137 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1QuestionAnswerCreateRequest, V1QuestionAnswerCreateResponse, V1QuestionAnswerDeleteRequest, V1QuestionAnswerListRequest, V1QuestionAnswerListResponse, V1QuestionChangeStatusRequest, V1QuestionCountResponse, V1QuestionInfoRequest, V1QuestionInfoResponse, V1QuestionListRequest, V1QuestionListResponse, V1QuestionTopSkuRequest, V1QuestionTopSkuResponse } from '../models/index'; +export interface QuestionAnswerCreateRequest { + clientId: string; + apiKey: string; + v1QuestionAnswerCreateRequest: V1QuestionAnswerCreateRequest; +} +export interface QuestionAnswerDeleteRequest { + clientId: string; + apiKey: string; + v1QuestionAnswerDeleteRequest: V1QuestionAnswerDeleteRequest; +} +export interface QuestionAnswerListRequest { + clientId: string; + apiKey: string; + v1QuestionAnswerListRequest: V1QuestionAnswerListRequest; +} +export interface QuestionChangeStatusRequest { + clientId: string; + apiKey: string; + v1QuestionChangeStatusRequest?: V1QuestionChangeStatusRequest; +} +export interface QuestionCountRequest { + clientId: string; + apiKey: string; +} +export interface QuestionInfoRequest { + clientId: string; + apiKey: string; + v1QuestionInfoRequest?: V1QuestionInfoRequest; +} +export interface QuestionListRequest { + clientId: string; + apiKey: string; + v1QuestionListRequest: V1QuestionListRequest; +} +export interface QuestionTopSkuRequest { + clientId: string; + apiKey: string; + v1QuestionTopSkuRequest?: V1QuestionTopSkuRequest; +} +/** + * + */ +export declare class QuestionsAnswers extends runtime.BaseAPI { + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Создать ответ на вопрос + */ + questionAnswerCreateRaw(requestParameters: QuestionAnswerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Создать ответ на вопрос + */ + questionAnswerCreate(clientId: string, apiKey: string, v1QuestionAnswerCreateRequest: V1QuestionAnswerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Удалить ответ на вопрос + */ + questionAnswerDeleteRaw(requestParameters: QuestionAnswerDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Удалить ответ на вопрос + */ + questionAnswerDelete(clientId: string, apiKey: string, v1QuestionAnswerDeleteRequest: V1QuestionAnswerDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список ответов на вопрос + */ + questionAnswerListRaw(requestParameters: QuestionAnswerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список ответов на вопрос + */ + questionAnswerList(clientId: string, apiKey: string, v1QuestionAnswerListRequest: V1QuestionAnswerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Изменить статус вопросов + */ + questionChangeStatusRaw(requestParameters: QuestionChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Изменить статус вопросов + */ + questionChangeStatus(clientId: string, apiKey: string, v1QuestionChangeStatusRequest?: V1QuestionChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Количество вопросов по статусам + */ + questionCountRaw(requestParameters: QuestionCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Количество вопросов по статусам + */ + questionCount(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Информация о вопросе + */ + questionInfoRaw(requestParameters: QuestionInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Информация о вопросе + */ + questionInfo(clientId: string, apiKey: string, v1QuestionInfoRequest?: V1QuestionInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список вопросов + */ + questionListRaw(requestParameters: QuestionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список вопросов + */ + questionList(clientId: string, apiKey: string, v1QuestionListRequest: V1QuestionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Товары с наибольшим количеством вопросов + */ + questionTopSkuRaw(requestParameters: QuestionTopSkuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Товары с наибольшим количеством вопросов + */ + questionTopSku(clientId: string, apiKey: string, v1QuestionTopSkuRequest?: V1QuestionTopSkuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/QuestionsAnswers.js b/dist/apis/QuestionsAnswers.js new file mode 100644 index 0000000..0b341a4 --- /dev/null +++ b/dist/apis/QuestionsAnswers.js @@ -0,0 +1,369 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QuestionsAnswers = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class QuestionsAnswers extends runtime.BaseAPI { + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Создать ответ на вопрос + */ + questionAnswerCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionAnswerCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionAnswerCreate().'); + } + if (requestParameters['v1QuestionAnswerCreateRequest'] == null) { + throw new runtime.RequiredError('v1QuestionAnswerCreateRequest', 'Required parameter "v1QuestionAnswerCreateRequest" was null or undefined when calling questionAnswerCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/answer/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1QuestionAnswerCreateRequestToJSON)(requestParameters['v1QuestionAnswerCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1QuestionAnswerCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Создать ответ на вопрос + */ + questionAnswerCreate(clientId, apiKey, v1QuestionAnswerCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionAnswerCreateRaw({ clientId: clientId, apiKey: apiKey, v1QuestionAnswerCreateRequest: v1QuestionAnswerCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Удалить ответ на вопрос + */ + questionAnswerDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionAnswerDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionAnswerDelete().'); + } + if (requestParameters['v1QuestionAnswerDeleteRequest'] == null) { + throw new runtime.RequiredError('v1QuestionAnswerDeleteRequest', 'Required parameter "v1QuestionAnswerDeleteRequest" was null or undefined when calling questionAnswerDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/answer/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1QuestionAnswerDeleteRequestToJSON)(requestParameters['v1QuestionAnswerDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Удалить ответ на вопрос + */ + questionAnswerDelete(clientId, apiKey, v1QuestionAnswerDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.questionAnswerDeleteRaw({ clientId: clientId, apiKey: apiKey, v1QuestionAnswerDeleteRequest: v1QuestionAnswerDeleteRequest }, initOverrides); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список ответов на вопрос + */ + questionAnswerListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionAnswerList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionAnswerList().'); + } + if (requestParameters['v1QuestionAnswerListRequest'] == null) { + throw new runtime.RequiredError('v1QuestionAnswerListRequest', 'Required parameter "v1QuestionAnswerListRequest" was null or undefined when calling questionAnswerList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/answer/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1QuestionAnswerListRequestToJSON)(requestParameters['v1QuestionAnswerListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1QuestionAnswerListResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список ответов на вопрос + */ + questionAnswerList(clientId, apiKey, v1QuestionAnswerListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionAnswerListRaw({ clientId: clientId, apiKey: apiKey, v1QuestionAnswerListRequest: v1QuestionAnswerListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Изменить статус вопросов + */ + questionChangeStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionChangeStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionChangeStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/change-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1QuestionChangeStatusRequestToJSON)(requestParameters['v1QuestionChangeStatusRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Изменить статус вопросов + */ + questionChangeStatus(clientId, apiKey, v1QuestionChangeStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.questionChangeStatusRaw({ clientId: clientId, apiKey: apiKey, v1QuestionChangeStatusRequest: v1QuestionChangeStatusRequest }, initOverrides); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Количество вопросов по статусам + */ + questionCountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionCount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionCount().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/count`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1QuestionCountResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Количество вопросов по статусам + */ + questionCount(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionCountRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Информация о вопросе + */ + questionInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1QuestionInfoRequestToJSON)(requestParameters['v1QuestionInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1QuestionInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Информация о вопросе + */ + questionInfo(clientId, apiKey, v1QuestionInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionInfoRaw({ clientId: clientId, apiKey: apiKey, v1QuestionInfoRequest: v1QuestionInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список вопросов + */ + questionListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionList().'); + } + if (requestParameters['v1QuestionListRequest'] == null) { + throw new runtime.RequiredError('v1QuestionListRequest', 'Required parameter "v1QuestionListRequest" was null or undefined when calling questionList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1QuestionListRequestToJSON)(requestParameters['v1QuestionListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1QuestionListResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список вопросов + */ + questionList(clientId, apiKey, v1QuestionListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionListRaw({ clientId: clientId, apiKey: apiKey, v1QuestionListRequest: v1QuestionListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Товары с наибольшим количеством вопросов + */ + questionTopSkuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionTopSku().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionTopSku().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/top-sku`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1QuestionTopSkuRequestToJSON)(requestParameters['v1QuestionTopSkuRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1QuestionTopSkuResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Товары с наибольшим количеством вопросов + */ + questionTopSku(clientId, apiKey, v1QuestionTopSkuRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionTopSkuRaw({ clientId: clientId, apiKey: apiKey, v1QuestionTopSkuRequest: v1QuestionTopSkuRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.QuestionsAnswers = QuestionsAnswers; diff --git a/dist/apis/RFBSReturnsAPI.d.ts b/dist/apis/RFBSReturnsAPI.d.ts new file mode 100644 index 0000000..4cf208a --- /dev/null +++ b/dist/apis/RFBSReturnsAPI.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1ReturnsRfbsActionSetRequest, V2ReturnsRfbsGetRequest, V2ReturnsRfbsGetResponse, V2ReturnsRfbsListRequest, V2ReturnsRfbsListResponse } from '../models/index'; +export interface RFBSReturnsAPIReturnsRfbsGetV2Request { + clientId: string; + apiKey: string; + v2ReturnsRfbsGetRequest: V2ReturnsRfbsGetRequest; +} +export interface RFBSReturnsAPIReturnsRfbsListV2Request { + clientId: string; + apiKey: string; + v2ReturnsRfbsListRequest: V2ReturnsRfbsListRequest; +} +export interface ReturnsAPIReturnsRfbsActionSetRequest { + v1ReturnsRfbsActionSetRequest: V1ReturnsRfbsActionSetRequest; +} +/** + * + */ +export declare class RFBSReturnsAPI extends runtime.BaseAPI { + /** + * Информация о заявке на возврат + */ + rFBSReturnsAPIReturnsRfbsGetV2Raw(requestParameters: RFBSReturnsAPIReturnsRfbsGetV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о заявке на возврат + */ + rFBSReturnsAPIReturnsRfbsGetV2(clientId: string, apiKey: string, v2ReturnsRfbsGetRequest: V2ReturnsRfbsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список заявок на возврат + */ + rFBSReturnsAPIReturnsRfbsListV2Raw(requestParameters: RFBSReturnsAPIReturnsRfbsListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список заявок на возврат + */ + rFBSReturnsAPIReturnsRfbsListV2(clientId: string, apiKey: string, v2ReturnsRfbsListRequest: V2ReturnsRfbsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для передачи действий для возврата rFBS. + * Передать доступные действия для rFBS возвратов + */ + returnsAPIReturnsRfbsActionSetRaw(requestParameters: ReturnsAPIReturnsRfbsActionSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для передачи действий для возврата rFBS. + * Передать доступные действия для rFBS возвратов + */ + returnsAPIReturnsRfbsActionSet(v1ReturnsRfbsActionSetRequest: V1ReturnsRfbsActionSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/RFBSReturnsAPI.js b/dist/apis/RFBSReturnsAPI.js new file mode 100644 index 0000000..3be326b --- /dev/null +++ b/dist/apis/RFBSReturnsAPI.js @@ -0,0 +1,148 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RFBSReturnsAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class RFBSReturnsAPI extends runtime.BaseAPI { + /** + * Информация о заявке на возврат + */ + rFBSReturnsAPIReturnsRfbsGetV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling rFBSReturnsAPIReturnsRfbsGetV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling rFBSReturnsAPIReturnsRfbsGetV2().'); + } + if (requestParameters['v2ReturnsRfbsGetRequest'] == null) { + throw new runtime.RequiredError('v2ReturnsRfbsGetRequest', 'Required parameter "v2ReturnsRfbsGetRequest" was null or undefined when calling rFBSReturnsAPIReturnsRfbsGetV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/returns/rfbs/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2ReturnsRfbsGetRequestToJSON)(requestParameters['v2ReturnsRfbsGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2ReturnsRfbsGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Информация о заявке на возврат + */ + rFBSReturnsAPIReturnsRfbsGetV2(clientId, apiKey, v2ReturnsRfbsGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rFBSReturnsAPIReturnsRfbsGetV2Raw({ clientId: clientId, apiKey: apiKey, v2ReturnsRfbsGetRequest: v2ReturnsRfbsGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список заявок на возврат + */ + rFBSReturnsAPIReturnsRfbsListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling rFBSReturnsAPIReturnsRfbsListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling rFBSReturnsAPIReturnsRfbsListV2().'); + } + if (requestParameters['v2ReturnsRfbsListRequest'] == null) { + throw new runtime.RequiredError('v2ReturnsRfbsListRequest', 'Required parameter "v2ReturnsRfbsListRequest" was null or undefined when calling rFBSReturnsAPIReturnsRfbsListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/returns/rfbs/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2ReturnsRfbsListRequestToJSON)(requestParameters['v2ReturnsRfbsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2ReturnsRfbsListResponseFromJSON)(jsonValue)); + }); + } + /** + * Список заявок на возврат + */ + rFBSReturnsAPIReturnsRfbsListV2(clientId, apiKey, v2ReturnsRfbsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rFBSReturnsAPIReturnsRfbsListV2Raw({ clientId: clientId, apiKey: apiKey, v2ReturnsRfbsListRequest: v2ReturnsRfbsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для передачи действий для возврата rFBS. + * Передать доступные действия для rFBS возвратов + */ + returnsAPIReturnsRfbsActionSetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ReturnsRfbsActionSetRequest'] == null) { + throw new runtime.RequiredError('v1ReturnsRfbsActionSetRequest', 'Required parameter "v1ReturnsRfbsActionSetRequest" was null or undefined when calling returnsAPIReturnsRfbsActionSet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/returns/rfbs/action/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ReturnsRfbsActionSetRequestToJSON)(requestParameters['v1ReturnsRfbsActionSetRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод для передачи действий для возврата rFBS. + * Передать доступные действия для rFBS возвратов + */ + returnsAPIReturnsRfbsActionSet(v1ReturnsRfbsActionSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.returnsAPIReturnsRfbsActionSetRaw({ v1ReturnsRfbsActionSetRequest: v1ReturnsRfbsActionSetRequest }, initOverrides); + }); + } +} +exports.RFBSReturnsAPI = RFBSReturnsAPI; diff --git a/dist/apis/RFBSWarehouseSetup.d.ts b/dist/apis/RFBSWarehouseSetup.d.ts new file mode 100644 index 0000000..a761b17 --- /dev/null +++ b/dist/apis/RFBSWarehouseSetup.d.ts @@ -0,0 +1,123 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1WarehouseERFBSAggregatorCreateRequest, V1WarehouseERFBSAggregatorCreateResponse, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest, V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse, V1WarehouseERFBSNonIntegratedCreateRequest, V1WarehouseERFBSNonIntegratedCreateResponse, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse, V1WarehouseERFBSUpdateRequest, V1WarehouseERFBSUpdateResponse, WarehouseV1WarehouseRfbsPauseRequest, WarehouseV1WarehouseRfbsPauseResponse, WarehouseV1WarehouseRfbsUnpauseRequest, WarehouseV1WarehouseRfbsUnpauseResponse } from '../models/index'; +export interface WarehouseERFBSAggregatorCreateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSAggregatorCreateRequest: V1WarehouseERFBSAggregatorCreateRequest; +} +export interface WarehouseERFBSAggregatorDeliveryMethodUpdateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +} +export interface WarehouseERFBSNonIntegratedCreateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSNonIntegratedCreateRequest: V1WarehouseERFBSNonIntegratedCreateRequest; +} +export interface WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +} +export interface WarehouseERFBSUpdateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSUpdateRequest: V1WarehouseERFBSUpdateRequest; +} +export interface WarehouseRfbsPauseRequest { + clientId: string; + apiKey: string; + warehouseV1WarehouseRfbsPauseRequest: WarehouseV1WarehouseRfbsPauseRequest; +} +export interface WarehouseRfbsUnpauseRequest { + clientId: string; + apiKey: string; + warehouseV1WarehouseRfbsUnpauseRequest: WarehouseV1WarehouseRfbsUnpauseRequest; +} +/** + * + */ +export declare class RFBSWarehouseSetup extends runtime.BaseAPI { + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorCreateRaw(requestParameters: WarehouseERFBSAggregatorCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorCreate(clientId: string, apiKey: string, v1WarehouseERFBSAggregatorCreateRequest: V1WarehouseERFBSAggregatorCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorDeliveryMethodUpdateRaw(requestParameters: WarehouseERFBSAggregatorDeliveryMethodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorDeliveryMethodUpdate(clientId: string, apiKey: string, v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedCreateRaw(requestParameters: WarehouseERFBSNonIntegratedCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedCreate(clientId: string, apiKey: string, v1WarehouseERFBSNonIntegratedCreateRequest: V1WarehouseERFBSNonIntegratedCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedDeliveryMethodUpdateRaw(requestParameters: WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedDeliveryMethodUpdate(clientId: string, apiKey: string, v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить склад + */ + warehouseERFBSUpdateRaw(requestParameters: WarehouseERFBSUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить склад + */ + warehouseERFBSUpdate(clientId: string, apiKey: string, v1WarehouseERFBSUpdateRequest: V1WarehouseERFBSUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Скрывает товары склада с витрины. Изменять сток не нужно. + * Поставить rFBS-склад на паузу + */ + warehouseRfbsPauseRaw(requestParameters: WarehouseRfbsPauseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Скрывает товары склада с витрины. Изменять сток не нужно. + * Поставить rFBS-склад на паузу + */ + warehouseRfbsPause(clientId: string, apiKey: string, warehouseV1WarehouseRfbsPauseRequest: WarehouseV1WarehouseRfbsPauseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает товары склада на витрину. + * Снять rFBS-склад с паузы + */ + warehouseRfbsUnpauseRaw(requestParameters: WarehouseRfbsUnpauseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает товары склада на витрину. + * Снять rFBS-склад с паузы + */ + warehouseRfbsUnpause(clientId: string, apiKey: string, warehouseV1WarehouseRfbsUnpauseRequest: WarehouseV1WarehouseRfbsUnpauseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/RFBSWarehouseSetup.js b/dist/apis/RFBSWarehouseSetup.js new file mode 100644 index 0000000..cf9d487 --- /dev/null +++ b/dist/apis/RFBSWarehouseSetup.js @@ -0,0 +1,335 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RFBSWarehouseSetup = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class RFBSWarehouseSetup extends runtime.BaseAPI { + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSAggregatorCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSAggregatorCreate().'); + } + if (requestParameters['v1WarehouseERFBSAggregatorCreateRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseERFBSAggregatorCreateRequest', 'Required parameter "v1WarehouseERFBSAggregatorCreateRequest" was null or undefined when calling warehouseERFBSAggregatorCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/aggregator/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseERFBSAggregatorCreateRequestToJSON)(requestParameters['v1WarehouseERFBSAggregatorCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseERFBSAggregatorCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorCreate(clientId, apiKey, v1WarehouseERFBSAggregatorCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSAggregatorCreateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSAggregatorCreateRequest: v1WarehouseERFBSAggregatorCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorDeliveryMethodUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSAggregatorDeliveryMethodUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSAggregatorDeliveryMethodUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/aggregator/delivery-method/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON)(requestParameters['v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON)(jsonValue)); + }); + } + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorDeliveryMethodUpdate(clientId, apiKey, v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSAggregatorDeliveryMethodUpdateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest: v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSNonIntegratedCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSNonIntegratedCreate().'); + } + if (requestParameters['v1WarehouseERFBSNonIntegratedCreateRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseERFBSNonIntegratedCreateRequest', 'Required parameter "v1WarehouseERFBSNonIntegratedCreateRequest" was null or undefined when calling warehouseERFBSNonIntegratedCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/non-integrated/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseERFBSNonIntegratedCreateRequestToJSON)(requestParameters['v1WarehouseERFBSNonIntegratedCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseERFBSNonIntegratedCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedCreate(clientId, apiKey, v1WarehouseERFBSNonIntegratedCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSNonIntegratedCreateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSNonIntegratedCreateRequest: v1WarehouseERFBSNonIntegratedCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedDeliveryMethodUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSNonIntegratedDeliveryMethodUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSNonIntegratedDeliveryMethodUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/non-integrated/delivery-method/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON)(requestParameters['v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON)(jsonValue)); + }); + } + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedDeliveryMethodUpdate(clientId, apiKey, v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSNonIntegratedDeliveryMethodUpdateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest: v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить склад + */ + warehouseERFBSUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSUpdate().'); + } + if (requestParameters['v1WarehouseERFBSUpdateRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseERFBSUpdateRequest', 'Required parameter "v1WarehouseERFBSUpdateRequest" was null or undefined when calling warehouseERFBSUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseERFBSUpdateRequestToJSON)(requestParameters['v1WarehouseERFBSUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseERFBSUpdateResponseFromJSON)(jsonValue)); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить склад + */ + warehouseERFBSUpdate(clientId, apiKey, v1WarehouseERFBSUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSUpdateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSUpdateRequest: v1WarehouseERFBSUpdateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Скрывает товары склада с витрины. Изменять сток не нужно. + * Поставить rFBS-склад на паузу + */ + warehouseRfbsPauseRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseRfbsPause().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseRfbsPause().'); + } + if (requestParameters['warehouseV1WarehouseRfbsPauseRequest'] == null) { + throw new runtime.RequiredError('warehouseV1WarehouseRfbsPauseRequest', 'Required parameter "warehouseV1WarehouseRfbsPauseRequest" was null or undefined when calling warehouseRfbsPause().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/rfbs/pause`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.WarehouseV1WarehouseRfbsPauseRequestToJSON)(requestParameters['warehouseV1WarehouseRfbsPauseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WarehouseV1WarehouseRfbsPauseResponseFromJSON)(jsonValue)); + }); + } + /** + * Скрывает товары склада с витрины. Изменять сток не нужно. + * Поставить rFBS-склад на паузу + */ + warehouseRfbsPause(clientId, apiKey, warehouseV1WarehouseRfbsPauseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseRfbsPauseRaw({ clientId: clientId, apiKey: apiKey, warehouseV1WarehouseRfbsPauseRequest: warehouseV1WarehouseRfbsPauseRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает товары склада на витрину. + * Снять rFBS-склад с паузы + */ + warehouseRfbsUnpauseRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseRfbsUnpause().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseRfbsUnpause().'); + } + if (requestParameters['warehouseV1WarehouseRfbsUnpauseRequest'] == null) { + throw new runtime.RequiredError('warehouseV1WarehouseRfbsUnpauseRequest', 'Required parameter "warehouseV1WarehouseRfbsUnpauseRequest" was null or undefined when calling warehouseRfbsUnpause().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/rfbs/unpause`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.WarehouseV1WarehouseRfbsUnpauseRequestToJSON)(requestParameters['warehouseV1WarehouseRfbsUnpauseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WarehouseV1WarehouseRfbsUnpauseResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает товары склада на витрину. + * Снять rFBS-склад с паузы + */ + warehouseRfbsUnpause(clientId, apiKey, warehouseV1WarehouseRfbsUnpauseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseRfbsUnpauseRaw({ clientId: clientId, apiKey: apiKey, warehouseV1WarehouseRfbsUnpauseRequest: warehouseV1WarehouseRfbsUnpauseRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.RFBSWarehouseSetup = RFBSWarehouseSetup; diff --git a/dist/apis/Receipt.d.ts b/dist/apis/Receipt.d.ts new file mode 100644 index 0000000..2be77e6 --- /dev/null +++ b/dist/apis/Receipt.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GetReceiptRequest, V1GetReceiptResponse, V1ReceiptsSellerListRequest, V1ReceiptsSellerListResponse, V1UploadReceiptRequestTypeEnum, V1UploadReceiptResponse } from '../models/index'; +export interface GetReceiptRequest { + clientId: string; + apiKey: string; + v1GetReceiptRequest?: V1GetReceiptRequest; +} +export interface ReceiptsSellerListRequest { + clientId: string; + apiKey: string; + v1ReceiptsSellerListRequest?: V1ReceiptsSellerListRequest; +} +export interface UploadReceiptRequest { + clientId: string; + apiKey: string; + content: string; + operationType: string; + postingNumbers: Array; + receiptNumber: string; + type: V1UploadReceiptRequestTypeEnum; + parentReceiptId?: string; +} +/** + * + */ +export declare class Receipt extends runtime.BaseAPI { + /** + * + * Получить чек в формате PDF + */ + getReceiptRaw(requestParameters: GetReceiptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Получить чек в формате PDF + */ + getReceipt(clientId: string, apiKey: string, v1GetReceiptRequest?: V1GetReceiptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Получить список чеков продавца + */ + receiptsSellerListRaw(requestParameters: ReceiptsSellerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Получить список чеков продавца + */ + receiptsSellerList(clientId: string, apiKey: string, v1ReceiptsSellerListRequest?: V1ReceiptsSellerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Загрузить чек + */ + uploadReceiptRaw(requestParameters: UploadReceiptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Загрузить чек + */ + uploadReceipt(clientId: string, apiKey: string, content: string, operationType: string, postingNumbers: Array, receiptNumber: string, type: V1UploadReceiptRequestTypeEnum, parentReceiptId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/Receipt.js b/dist/apis/Receipt.js new file mode 100644 index 0000000..1cabda7 --- /dev/null +++ b/dist/apis/Receipt.js @@ -0,0 +1,201 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Receipt = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class Receipt extends runtime.BaseAPI { + /** + * + * Получить чек в формате PDF + */ + getReceiptRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getReceipt().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getReceipt().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/receipts/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetReceiptRequestToJSON)(requestParameters['v1GetReceiptRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetReceiptResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Получить чек в формате PDF + */ + getReceipt(clientId, apiKey, v1GetReceiptRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getReceiptRaw({ clientId: clientId, apiKey: apiKey, v1GetReceiptRequest: v1GetReceiptRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Получить список чеков продавца + */ + receiptsSellerListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling receiptsSellerList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling receiptsSellerList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/receipts/seller/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ReceiptsSellerListRequestToJSON)(requestParameters['v1ReceiptsSellerListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ReceiptsSellerListResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Получить список чеков продавца + */ + receiptsSellerList(clientId, apiKey, v1ReceiptsSellerListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.receiptsSellerListRaw({ clientId: clientId, apiKey: apiKey, v1ReceiptsSellerListRequest: v1ReceiptsSellerListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Загрузить чек + */ + uploadReceiptRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['content'] == null) { + throw new runtime.RequiredError('content', 'Required parameter "content" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['operationType'] == null) { + throw new runtime.RequiredError('operationType', 'Required parameter "operationType" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['postingNumbers'] == null) { + throw new runtime.RequiredError('postingNumbers', 'Required parameter "postingNumbers" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['receiptNumber'] == null) { + throw new runtime.RequiredError('receiptNumber', 'Required parameter "receiptNumber" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['type'] == null) { + throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling uploadReceipt().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const consumes = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + let formParams; + let useForm = false; + if (useForm) { + formParams = new FormData(); + } + else { + formParams = new URLSearchParams(); + } + if (requestParameters['content'] != null) { + formParams.append('content', requestParameters['content']); + } + if (requestParameters['operationType'] != null) { + formParams.append('operation_type', requestParameters['operationType']); + } + if (requestParameters['parentReceiptId'] != null) { + formParams.append('parent_receipt_id', requestParameters['parentReceiptId']); + } + if (requestParameters['postingNumbers'] != null) { + formParams.append('posting_numbers', requestParameters['postingNumbers'].join(runtime.COLLECTION_FORMATS["csv"])); + } + if (requestParameters['receiptNumber'] != null) { + formParams.append('receipt_number', requestParameters['receiptNumber']); + } + if (requestParameters['type'] != null) { + formParams.append('type', requestParameters['type']); + } + const response = yield this.request({ + path: `/v1/receipts/upload`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1UploadReceiptResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Загрузить чек + */ + uploadReceipt(clientId, apiKey, content, operationType, postingNumbers, receiptNumber, type, parentReceiptId, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.uploadReceiptRaw({ clientId: clientId, apiKey: apiKey, content: content, operationType: operationType, postingNumbers: postingNumbers, receiptNumber: receiptNumber, type: type, parentReceiptId: parentReceiptId }, initOverrides); + return yield response.value(); + }); + } +} +exports.Receipt = Receipt; diff --git a/dist/apis/ReportAPI.d.ts b/dist/apis/ReportAPI.d.ts new file mode 100644 index 0000000..f9e8c97 --- /dev/null +++ b/dist/apis/ReportAPI.d.ts @@ -0,0 +1,183 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CommonCreateReportResponse, ReportCreateCompanyPostingsReportRequest, ReportCreateCompanyProductsReportRequest, ReportCreateDiscountedResponse, ReportCreateReportResponse, ReportReportInfoRequest, ReportReportInfoResponse, ReportReportListRequest, ReportReportListResponse, V1CreatePlacementByProductsReportRequest, V1CreatePlacementByProductsReportResponse, V1CreatePlacementBySuppliesReportRequest, V1CreatePlacementBySuppliesReportResponse, V1CreateStockByWarehouseReportRequest, V1ReportMarkedProductsSalesCreateRequest, V2ReportReturnsCreateRequest, V2ReportReturnsCreateResponse, V3FinanceCashFlowStatementListRequest, V3FinanceCashFlowStatementListResponse } from '../models/index'; +export interface CreateCompanyMarkedProductsSalesReportRequest { + clientId: string; + apiKey: string; + v1ReportMarkedProductsSalesCreateRequest?: V1ReportMarkedProductsSalesCreateRequest; +} +export interface CreatePlacementByProductsReportRequest { + clientId: string; + apiKey: string; + v1CreatePlacementByProductsReportRequest?: V1CreatePlacementByProductsReportRequest; +} +export interface CreatePlacementBySuppliesReportRequest { + clientId: string; + apiKey: string; + v1CreatePlacementBySuppliesReportRequest?: V1CreatePlacementBySuppliesReportRequest; +} +export interface FinanceAPIFinanceCashFlowStatementListRequest { + clientId: string; + apiKey: string; + v3FinanceCashFlowStatementListRequest: V3FinanceCashFlowStatementListRequest; +} +export interface ReportAPICreateCompanyPostingsReportRequest { + clientId: string; + apiKey: string; + reportCreateCompanyPostingsReportRequest: ReportCreateCompanyPostingsReportRequest; +} +export interface ReportAPICreateCompanyProductsReportRequest { + clientId: string; + apiKey: string; + reportCreateCompanyProductsReportRequest: ReportCreateCompanyProductsReportRequest; +} +export interface ReportAPICreateDiscountedReportRequest { + clientId: string; + apiKey: string; + body: object; +} +export interface ReportAPICreateStockByWarehouseReportRequest { + clientId: string; + apiKey: string; + v1CreateStockByWarehouseReportRequest: V1CreateStockByWarehouseReportRequest; +} +export interface ReportAPIReportInfoRequest { + clientId: string; + apiKey: string; + reportReportInfoRequest: ReportReportInfoRequest; +} +export interface ReportAPIReportListRequest { + clientId: string; + apiKey: string; + reportReportListRequest: ReportReportListRequest; +} +export interface ReportAPIReportReturnsCreateRequest { + clientId: string; + apiKey: string; + v2ReportReturnsCreateRequest: V2ReportReturnsCreateRequest; +} +/** + * + */ +export declare class ReportAPI extends runtime.BaseAPI { + /** + * В одном отчёте вы можете получить не больше 50 000 кодов маркировки. Чтобы получить остальные данные, уменьшите период формирования отчёта. + * Сгенерировать отчёт по продажам товаров с маркировкой + */ + createCompanyMarkedProductsSalesReportRaw(requestParameters: CreateCompanyMarkedProductsSalesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * В одном отчёте вы можете получить не больше 50 000 кодов маркировки. Чтобы получить остальные данные, уменьшите период формирования отчёта. + * Сгенерировать отчёт по продажам товаров с маркировкой + */ + createCompanyMarkedProductsSalesReport(clientId: string, apiKey: string, v1ReportMarkedProductsSalesCreateRequest?: V1ReportMarkedProductsSalesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по товарам + */ + createPlacementByProductsReportRaw(requestParameters: CreatePlacementByProductsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по товарам + */ + createPlacementByProductsReport(clientId: string, apiKey: string, v1CreatePlacementByProductsReportRequest?: V1CreatePlacementByProductsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по поставкам + */ + createPlacementBySuppliesReportRaw(requestParameters: CreatePlacementBySuppliesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по поставкам + */ + createPlacementBySuppliesReport(clientId: string, apiKey: string, v1CreatePlacementBySuppliesReportRequest?: V1CreatePlacementBySuppliesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения финансового отчёта за периоды с 01 по 15 и с 16 по 31. Запросить отчёт за отдельные дни не получится. Соответствует разделу **Финансы → Баланс → Доходы и расходы** в личном кабинете. + * Финансовый отчёт + */ + financeAPIFinanceCashFlowStatementListRaw(requestParameters: FinanceAPIFinanceCashFlowStatementListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения финансового отчёта за периоды с 01 по 15 и с 16 по 31. Запросить отчёт за отдельные дни не получится. Соответствует разделу **Финансы → Баланс → Доходы и расходы** в личном кабинете. + * Финансовый отчёт + */ + financeAPIFinanceCashFlowStatementList(clientId: string, apiKey: string, v3FinanceCashFlowStatementListRequest: V3FinanceCashFlowStatementListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт об отправлениях с информацией по заказам: - статусы заказов, - дата начала обработки, - номера заказов, - номера отправлений, - стоимость отправлений, - содержимое отправлений. Соответствует разделу **FBO → Заказы со склада Ozon** и **FBS → Заказы с моих складов → CSV** в личном кабинете. + * Отчёт об отправлениях + */ + reportAPICreateCompanyPostingsReportRaw(requestParameters: ReportAPICreateCompanyPostingsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт об отправлениях с информацией по заказам: - статусы заказов, - дата начала обработки, - номера заказов, - номера отправлений, - стоимость отправлений, - содержимое отправлений. Соответствует разделу **FBO → Заказы со склада Ozon** и **FBS → Заказы с моих складов → CSV** в личном кабинете. + * Отчёт об отправлениях + */ + reportAPICreateCompanyPostingsReport(clientId: string, apiKey: string, reportCreateCompanyPostingsReportRequest: ReportCreateCompanyPostingsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения отчёта с данными о товарах. Например, Ozon ID, количества товаров, цен, статуса. Соответствует разделу/действию **Товары и цены → Список товаров → Скачать → Товары CSV** в личном кабинете. Пояснения к некоторым полям: - __Ozon Product ID__ — идентификатор товара в нашей системе. Например, если вы продаёте товар со склада Ozon и со своего склада, Ozon Product ID будет для них одинаковым. - __FBO Ozon SKU ID__ — идентификатор товара, который продаётся со склада Ozon. - __FBS Ozon SKU ID__ — идентификатор товара, который продаётся с вашего склада. - __CrossBorder Ozon SKU__ — идентификатор товара, который продаётся из-за границы. - __Barcode__ — штрихкод товара, который печатается на маркировке. - __Статус товара__ — можно ли купить товар на Ozon. Если статус «Готов к продаже», товар купить нельзя. - __Доступно на складе Ozon, шт__ — сколько штук товара на складе доступно для продажи. Это количество не включает зарезервированные товары. - __Зарезервировано, шт__ — сколько штук товара со статусом «Зарезервировано». Товар зарезервирован с момента получения заказа на Ozon и до упаковки для передачи покупателю. - __Текущая цена с учётом скидки, руб.__ — цена, по которой товар продаётся сейчас (на момент загрузки отчёта, с учётом скидки). Если товар участвует в акции, указана цена без её учёта. - __Базовая цена (цена до скидок), руб.__ — цена без учёта скидки. - __Цена Premium, руб.__ — цена для покупателей с подпиской Ozon Premium. - __Рекомендованная цена, руб.__ — минимальная цена на товар на другой торговой площадке. - __Актуальная ссылка на рекомендованную цену__ — ссылка на товар с рекомендованной ценой на другой торговой площадке. + * Отчёт по товарам + */ + reportAPICreateCompanyProductsReportRaw(requestParameters: ReportAPICreateCompanyProductsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта с данными о товарах. Например, Ozon ID, количества товаров, цен, статуса. Соответствует разделу/действию **Товары и цены → Список товаров → Скачать → Товары CSV** в личном кабинете. Пояснения к некоторым полям: - __Ozon Product ID__ — идентификатор товара в нашей системе. Например, если вы продаёте товар со склада Ozon и со своего склада, Ozon Product ID будет для них одинаковым. - __FBO Ozon SKU ID__ — идентификатор товара, который продаётся со склада Ozon. - __FBS Ozon SKU ID__ — идентификатор товара, который продаётся с вашего склада. - __CrossBorder Ozon SKU__ — идентификатор товара, который продаётся из-за границы. - __Barcode__ — штрихкод товара, который печатается на маркировке. - __Статус товара__ — можно ли купить товар на Ozon. Если статус «Готов к продаже», товар купить нельзя. - __Доступно на складе Ozon, шт__ — сколько штук товара на складе доступно для продажи. Это количество не включает зарезервированные товары. - __Зарезервировано, шт__ — сколько штук товара со статусом «Зарезервировано». Товар зарезервирован с момента получения заказа на Ozon и до упаковки для передачи покупателю. - __Текущая цена с учётом скидки, руб.__ — цена, по которой товар продаётся сейчас (на момент загрузки отчёта, с учётом скидки). Если товар участвует в акции, указана цена без её учёта. - __Базовая цена (цена до скидок), руб.__ — цена без учёта скидки. - __Цена Premium, руб.__ — цена для покупателей с подпиской Ozon Premium. - __Рекомендованная цена, руб.__ — минимальная цена на товар на другой торговой площадке. - __Актуальная ссылка на рекомендованную цену__ — ссылка на товар с рекомендованной ценой на другой торговой площадке. + * Отчёт по товарам + */ + reportAPICreateCompanyProductsReport(clientId: string, apiKey: string, reportCreateCompanyProductsReportRequest: ReportCreateCompanyProductsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Запускает генерацию отчёта по уценённым товарам на складе Ozon. Ozon может сам уценить товар, например, при повреждении. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). С одного аккаунта продавца можно отправить 1 запрос в минуту. Соответствует разделу **Аналитика → Отчёты → Продажи со склада Ozon → Товары, уценённые Ozon** в личном кабинете. + * Отчёт об уценённых товарах + */ + reportAPICreateDiscountedReportRaw(requestParameters: ReportAPICreateDiscountedReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Запускает генерацию отчёта по уценённым товарам на складе Ozon. Ozon может сам уценить товар, например, при повреждении. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). С одного аккаунта продавца можно отправить 1 запрос в минуту. Соответствует разделу **Аналитика → Отчёты → Продажи со склада Ozon → Товары, уценённые Ozon** в личном кабинете. + * Отчёт об уценённых товарах + */ + reportAPICreateDiscountedReport(clientId: string, apiKey: string, body: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт с информацией о количестве доступных и зарезервированных единиц товара на складе. Соответствует разделу **FBS → Управление логистикой → Управление остатками → Скачать в XLS** в личном кабинете. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). + * Отчёт об остатках на FBS-складе + */ + reportAPICreateStockByWarehouseReportRaw(requestParameters: ReportAPICreateStockByWarehouseReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт с информацией о количестве доступных и зарезервированных единиц товара на складе. Соответствует разделу **FBS → Управление логистикой → Управление остатками → Скачать в XLS** в личном кабинете. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). + * Отчёт об остатках на FBS-складе + */ + reportAPICreateStockByWarehouseReport(clientId: string, apiKey: string, v1CreateStockByWarehouseReportRequest: V1CreateStockByWarehouseReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает информацию о созданном ранее отчёте по его идентификатору. + * Информация об отчёте + */ + reportAPIReportInfoRaw(requestParameters: ReportAPIReportInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию о созданном ранее отчёте по его идентификатору. + * Информация об отчёте + */ + reportAPIReportInfo(clientId: string, apiKey: string, reportReportInfoRequest: ReportReportInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отчётов, которые были сформированы раньше. + * Список отчётов + */ + reportAPIReportListRaw(requestParameters: ReportAPIReportListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отчётов, которые были сформированы раньше. + * Список отчётов + */ + reportAPIReportList(clientId: string, apiKey: string, reportReportListRequest: ReportReportListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения отчёта о возвратах FBO и FBS. + * Отчёт о возвратах + */ + reportAPIReportReturnsCreateRaw(requestParameters: ReportAPIReportReturnsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта о возвратах FBO и FBS. + * Отчёт о возвратах + */ + reportAPIReportReturnsCreate(clientId: string, apiKey: string, v2ReportReturnsCreateRequest: V2ReportReturnsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/ReportAPI.js b/dist/apis/ReportAPI.js new file mode 100644 index 0000000..067001a --- /dev/null +++ b/dist/apis/ReportAPI.js @@ -0,0 +1,508 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReportAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class ReportAPI extends runtime.BaseAPI { + /** + * В одном отчёте вы можете получить не больше 50 000 кодов маркировки. Чтобы получить остальные данные, уменьшите период формирования отчёта. + * Сгенерировать отчёт по продажам товаров с маркировкой + */ + createCompanyMarkedProductsSalesReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createCompanyMarkedProductsSalesReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling createCompanyMarkedProductsSalesReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/marked-products-sales/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ReportMarkedProductsSalesCreateRequestToJSON)(requestParameters['v1ReportMarkedProductsSalesCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CommonCreateReportResponseFromJSON)(jsonValue)); + }); + } + /** + * В одном отчёте вы можете получить не больше 50 000 кодов маркировки. Чтобы получить остальные данные, уменьшите период формирования отчёта. + * Сгенерировать отчёт по продажам товаров с маркировкой + */ + createCompanyMarkedProductsSalesReport(clientId, apiKey, v1ReportMarkedProductsSalesCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createCompanyMarkedProductsSalesReportRaw({ clientId: clientId, apiKey: apiKey, v1ReportMarkedProductsSalesCreateRequest: v1ReportMarkedProductsSalesCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по товарам + */ + createPlacementByProductsReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createPlacementByProductsReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling createPlacementByProductsReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/placement/by-products/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreatePlacementByProductsReportRequestToJSON)(requestParameters['v1CreatePlacementByProductsReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CreatePlacementByProductsReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по товарам + */ + createPlacementByProductsReport(clientId, apiKey, v1CreatePlacementByProductsReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createPlacementByProductsReportRaw({ clientId: clientId, apiKey: apiKey, v1CreatePlacementByProductsReportRequest: v1CreatePlacementByProductsReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по поставкам + */ + createPlacementBySuppliesReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createPlacementBySuppliesReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling createPlacementBySuppliesReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/placement/by-supplies/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreatePlacementBySuppliesReportRequestToJSON)(requestParameters['v1CreatePlacementBySuppliesReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CreatePlacementBySuppliesReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по поставкам + */ + createPlacementBySuppliesReport(clientId, apiKey, v1CreatePlacementBySuppliesReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createPlacementBySuppliesReportRaw({ clientId: clientId, apiKey: apiKey, v1CreatePlacementBySuppliesReportRequest: v1CreatePlacementBySuppliesReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения финансового отчёта за периоды с 01 по 15 и с 16 по 31. Запросить отчёт за отдельные дни не получится. Соответствует разделу **Финансы → Баланс → Доходы и расходы** в личном кабинете. + * Финансовый отчёт + */ + financeAPIFinanceCashFlowStatementListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIFinanceCashFlowStatementList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIFinanceCashFlowStatementList().'); + } + if (requestParameters['v3FinanceCashFlowStatementListRequest'] == null) { + throw new runtime.RequiredError('v3FinanceCashFlowStatementListRequest', 'Required parameter "v3FinanceCashFlowStatementListRequest" was null or undefined when calling financeAPIFinanceCashFlowStatementList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/cash-flow-statement/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V3FinanceCashFlowStatementListRequestToJSON)(requestParameters['v3FinanceCashFlowStatementListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V3FinanceCashFlowStatementListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения финансового отчёта за периоды с 01 по 15 и с 16 по 31. Запросить отчёт за отдельные дни не получится. Соответствует разделу **Финансы → Баланс → Доходы и расходы** в личном кабинете. + * Финансовый отчёт + */ + financeAPIFinanceCashFlowStatementList(clientId, apiKey, v3FinanceCashFlowStatementListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIFinanceCashFlowStatementListRaw({ clientId: clientId, apiKey: apiKey, v3FinanceCashFlowStatementListRequest: v3FinanceCashFlowStatementListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт об отправлениях с информацией по заказам: - статусы заказов, - дата начала обработки, - номера заказов, - номера отправлений, - стоимость отправлений, - содержимое отправлений. Соответствует разделу **FBO → Заказы со склада Ozon** и **FBS → Заказы с моих складов → CSV** в личном кабинете. + * Отчёт об отправлениях + */ + reportAPICreateCompanyPostingsReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateCompanyPostingsReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateCompanyPostingsReport().'); + } + if (requestParameters['reportCreateCompanyPostingsReportRequest'] == null) { + throw new runtime.RequiredError('reportCreateCompanyPostingsReportRequest', 'Required parameter "reportCreateCompanyPostingsReportRequest" was null or undefined when calling reportAPICreateCompanyPostingsReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/postings/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReportCreateCompanyPostingsReportRequestToJSON)(requestParameters['reportCreateCompanyPostingsReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReportCreateReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Отчёт об отправлениях с информацией по заказам: - статусы заказов, - дата начала обработки, - номера заказов, - номера отправлений, - стоимость отправлений, - содержимое отправлений. Соответствует разделу **FBO → Заказы со склада Ozon** и **FBS → Заказы с моих складов → CSV** в личном кабинете. + * Отчёт об отправлениях + */ + reportAPICreateCompanyPostingsReport(clientId, apiKey, reportCreateCompanyPostingsReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateCompanyPostingsReportRaw({ clientId: clientId, apiKey: apiKey, reportCreateCompanyPostingsReportRequest: reportCreateCompanyPostingsReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения отчёта с данными о товарах. Например, Ozon ID, количества товаров, цен, статуса. Соответствует разделу/действию **Товары и цены → Список товаров → Скачать → Товары CSV** в личном кабинете. Пояснения к некоторым полям: - __Ozon Product ID__ — идентификатор товара в нашей системе. Например, если вы продаёте товар со склада Ozon и со своего склада, Ozon Product ID будет для них одинаковым. - __FBO Ozon SKU ID__ — идентификатор товара, который продаётся со склада Ozon. - __FBS Ozon SKU ID__ — идентификатор товара, который продаётся с вашего склада. - __CrossBorder Ozon SKU__ — идентификатор товара, который продаётся из-за границы. - __Barcode__ — штрихкод товара, который печатается на маркировке. - __Статус товара__ — можно ли купить товар на Ozon. Если статус «Готов к продаже», товар купить нельзя. - __Доступно на складе Ozon, шт__ — сколько штук товара на складе доступно для продажи. Это количество не включает зарезервированные товары. - __Зарезервировано, шт__ — сколько штук товара со статусом «Зарезервировано». Товар зарезервирован с момента получения заказа на Ozon и до упаковки для передачи покупателю. - __Текущая цена с учётом скидки, руб.__ — цена, по которой товар продаётся сейчас (на момент загрузки отчёта, с учётом скидки). Если товар участвует в акции, указана цена без её учёта. - __Базовая цена (цена до скидок), руб.__ — цена без учёта скидки. - __Цена Premium, руб.__ — цена для покупателей с подпиской Ozon Premium. - __Рекомендованная цена, руб.__ — минимальная цена на товар на другой торговой площадке. - __Актуальная ссылка на рекомендованную цену__ — ссылка на товар с рекомендованной ценой на другой торговой площадке. + * Отчёт по товарам + */ + reportAPICreateCompanyProductsReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateCompanyProductsReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateCompanyProductsReport().'); + } + if (requestParameters['reportCreateCompanyProductsReportRequest'] == null) { + throw new runtime.RequiredError('reportCreateCompanyProductsReportRequest', 'Required parameter "reportCreateCompanyProductsReportRequest" was null or undefined when calling reportAPICreateCompanyProductsReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/products/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReportCreateCompanyProductsReportRequestToJSON)(requestParameters['reportCreateCompanyProductsReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReportCreateReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения отчёта с данными о товарах. Например, Ozon ID, количества товаров, цен, статуса. Соответствует разделу/действию **Товары и цены → Список товаров → Скачать → Товары CSV** в личном кабинете. Пояснения к некоторым полям: - __Ozon Product ID__ — идентификатор товара в нашей системе. Например, если вы продаёте товар со склада Ozon и со своего склада, Ozon Product ID будет для них одинаковым. - __FBO Ozon SKU ID__ — идентификатор товара, который продаётся со склада Ozon. - __FBS Ozon SKU ID__ — идентификатор товара, который продаётся с вашего склада. - __CrossBorder Ozon SKU__ — идентификатор товара, который продаётся из-за границы. - __Barcode__ — штрихкод товара, который печатается на маркировке. - __Статус товара__ — можно ли купить товар на Ozon. Если статус «Готов к продаже», товар купить нельзя. - __Доступно на складе Ozon, шт__ — сколько штук товара на складе доступно для продажи. Это количество не включает зарезервированные товары. - __Зарезервировано, шт__ — сколько штук товара со статусом «Зарезервировано». Товар зарезервирован с момента получения заказа на Ozon и до упаковки для передачи покупателю. - __Текущая цена с учётом скидки, руб.__ — цена, по которой товар продаётся сейчас (на момент загрузки отчёта, с учётом скидки). Если товар участвует в акции, указана цена без её учёта. - __Базовая цена (цена до скидок), руб.__ — цена без учёта скидки. - __Цена Premium, руб.__ — цена для покупателей с подпиской Ozon Premium. - __Рекомендованная цена, руб.__ — минимальная цена на товар на другой торговой площадке. - __Актуальная ссылка на рекомендованную цену__ — ссылка на товар с рекомендованной ценой на другой торговой площадке. + * Отчёт по товарам + */ + reportAPICreateCompanyProductsReport(clientId, apiKey, reportCreateCompanyProductsReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateCompanyProductsReportRaw({ clientId: clientId, apiKey: apiKey, reportCreateCompanyProductsReportRequest: reportCreateCompanyProductsReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Запускает генерацию отчёта по уценённым товарам на складе Ozon. Ozon может сам уценить товар, например, при повреждении. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). С одного аккаунта продавца можно отправить 1 запрос в минуту. Соответствует разделу **Аналитика → Отчёты → Продажи со склада Ozon → Товары, уценённые Ozon** в личном кабинете. + * Отчёт об уценённых товарах + */ + reportAPICreateDiscountedReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateDiscountedReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateDiscountedReport().'); + } + if (requestParameters['body'] == null) { + throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling reportAPICreateDiscountedReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/discounted/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReportCreateDiscountedResponseFromJSON)(jsonValue)); + }); + } + /** + * Запускает генерацию отчёта по уценённым товарам на складе Ozon. Ozon может сам уценить товар, например, при повреждении. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). С одного аккаунта продавца можно отправить 1 запрос в минуту. Соответствует разделу **Аналитика → Отчёты → Продажи со склада Ozon → Товары, уценённые Ozon** в личном кабинете. + * Отчёт об уценённых товарах + */ + reportAPICreateDiscountedReport(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateDiscountedReportRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт с информацией о количестве доступных и зарезервированных единиц товара на складе. Соответствует разделу **FBS → Управление логистикой → Управление остатками → Скачать в XLS** в личном кабинете. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). + * Отчёт об остатках на FBS-складе + */ + reportAPICreateStockByWarehouseReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateStockByWarehouseReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateStockByWarehouseReport().'); + } + if (requestParameters['v1CreateStockByWarehouseReportRequest'] == null) { + throw new runtime.RequiredError('v1CreateStockByWarehouseReportRequest', 'Required parameter "v1CreateStockByWarehouseReportRequest" was null or undefined when calling reportAPICreateStockByWarehouseReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/warehouse/stock`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CreateStockByWarehouseReportRequestToJSON)(requestParameters['v1CreateStockByWarehouseReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CommonCreateReportResponseFromJSON)(jsonValue)); + }); + } + /** + * Отчёт с информацией о количестве доступных и зарезервированных единиц товара на складе. Соответствует разделу **FBS → Управление логистикой → Управление остатками → Скачать в XLS** в личном кабинете. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). + * Отчёт об остатках на FBS-складе + */ + reportAPICreateStockByWarehouseReport(clientId, apiKey, v1CreateStockByWarehouseReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateStockByWarehouseReportRaw({ clientId: clientId, apiKey: apiKey, v1CreateStockByWarehouseReportRequest: v1CreateStockByWarehouseReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает информацию о созданном ранее отчёте по его идентификатору. + * Информация об отчёте + */ + reportAPIReportInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPIReportInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPIReportInfo().'); + } + if (requestParameters['reportReportInfoRequest'] == null) { + throw new runtime.RequiredError('reportReportInfoRequest', 'Required parameter "reportReportInfoRequest" was null or undefined when calling reportAPIReportInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReportReportInfoRequestToJSON)(requestParameters['reportReportInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReportReportInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает информацию о созданном ранее отчёте по его идентификатору. + * Информация об отчёте + */ + reportAPIReportInfo(clientId, apiKey, reportReportInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIReportInfoRaw({ clientId: clientId, apiKey: apiKey, reportReportInfoRequest: reportReportInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отчётов, которые были сформированы раньше. + * Список отчётов + */ + reportAPIReportListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPIReportList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPIReportList().'); + } + if (requestParameters['reportReportListRequest'] == null) { + throw new runtime.RequiredError('reportReportListRequest', 'Required parameter "reportReportListRequest" was null or undefined when calling reportAPIReportList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReportReportListRequestToJSON)(requestParameters['reportReportListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReportReportListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список отчётов, которые были сформированы раньше. + * Список отчётов + */ + reportAPIReportList(clientId, apiKey, reportReportListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIReportListRaw({ clientId: clientId, apiKey: apiKey, reportReportListRequest: reportReportListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения отчёта о возвратах FBO и FBS. + * Отчёт о возвратах + */ + reportAPIReportReturnsCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPIReportReturnsCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPIReportReturnsCreate().'); + } + if (requestParameters['v2ReportReturnsCreateRequest'] == null) { + throw new runtime.RequiredError('v2ReportReturnsCreateRequest', 'Required parameter "v2ReportReturnsCreateRequest" was null or undefined when calling reportAPIReportReturnsCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/report/returns/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2ReportReturnsCreateRequestToJSON)(requestParameters['v2ReportReturnsCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2ReportReturnsCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения отчёта о возвратах FBO и FBS. + * Отчёт о возвратах + */ + reportAPIReportReturnsCreate(clientId, apiKey, v2ReportReturnsCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIReportReturnsCreateRaw({ clientId: clientId, apiKey: apiKey, v2ReportReturnsCreateRequest: v2ReportReturnsCreateRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.ReportAPI = ReportAPI; diff --git a/dist/apis/ReturnAPI.d.ts b/dist/apis/ReturnAPI.d.ts new file mode 100644 index 0000000..ae6c968 --- /dev/null +++ b/dist/apis/ReturnAPI.d.ts @@ -0,0 +1,138 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GiveoutBarcodeResetResponse, V1GiveoutGetBarcodeResponse, V1GiveoutGetPDFResponse, V1GiveoutGetPNGResponse, V1GiveoutInfoRequest, V1GiveoutInfoResponse, V1GiveoutIsEnabledResponse, V1GiveoutListRequest, V1GiveoutListResponse, V1ReturnsCompanyFbsInfoRequest, V1ReturnsCompanyFbsInfoResponse } from '../models/index'; +export interface ReturnAPIGiveoutBarcodeResetRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutGetBarcodeRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutGetPDFRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutGetPNGRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutInfoRequest { + clientId: string; + apiKey: string; + v1GiveoutInfoRequest: V1GiveoutInfoRequest; +} +export interface ReturnAPIGiveoutIsEnabledRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutListRequest { + clientId: string; + apiKey: string; + v1GiveoutListRequest: V1GiveoutListRequest; +} +export interface ReturnsCompanyFBSInfoRequest { + clientId: string; + apiKey: string; + v1ReturnsCompanyFbsInfoRequest?: V1ReturnsCompanyFbsInfoRequest; +} +/** + * + */ +export declare class ReturnAPI extends runtime.BaseAPI { + /** + * Используйте метод, если ваш штрихкод попал в посторонние руки. Метод возвращает PNG-файл с новым штрихкодом. После использования метода вы не сможете получить возвратную отгрузку по старым штрихкодам. Чтобы получить новый штрихкод в PDF-формате, запросите его методом [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF). + * Сгенерировать новый штрихкод + */ + returnAPIGiveoutBarcodeResetRaw(requestParameters: ReturnAPIGiveoutBarcodeResetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, если ваш штрихкод попал в посторонние руки. Метод возвращает PNG-файл с новым штрихкодом. После использования метода вы не сможете получить возвратную отгрузку по старым штрихкодам. Чтобы получить новый штрихкод в PDF-формате, запросите его методом [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF). + * Сгенерировать новый штрихкод + */ + returnAPIGiveoutBarcodeReset(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте этот метод, чтобы получить штрихкод из ответа методов [/v1/return/giveout/get-png](#operation/ReturnAPI_GiveoutGetPNG) и [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF) в текстовом виде. + * Значение штрихкода для возвратных отгрузок + */ + returnAPIGiveoutGetBarcodeRaw(requestParameters: ReturnAPIGiveoutGetBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте этот метод, чтобы получить штрихкод из ответа методов [/v1/return/giveout/get-png](#operation/ReturnAPI_GiveoutGetPNG) и [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF) в текстовом виде. + * Значение штрихкода для возвратных отгрузок + */ + returnAPIGiveoutGetBarcode(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает PDF-файл со штрихкодом. Метод работает только для схемы FBS. + * Штрихкод для получения возвратной отгрузки в формате PDF + */ + returnAPIGiveoutGetPDFRaw(requestParameters: ReturnAPIGiveoutGetPDFRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает PDF-файл со штрихкодом. Метод работает только для схемы FBS. + * Штрихкод для получения возвратной отгрузки в формате PDF + */ + returnAPIGiveoutGetPDF(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает PNG-файл со штрихкодом. + * Штрихкод для получения возвратной отгрузки в формате PNG + */ + returnAPIGiveoutGetPNGRaw(requestParameters: ReturnAPIGiveoutGetPNGRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает PNG-файл со штрихкодом. + * Штрихкод для получения возвратной отгрузки в формате PNG + */ + returnAPIGiveoutGetPNG(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о возвратной отгрузке. В параметр `giveout_id` передаётся значение, полученное в методе [/v1/return/giveout/list](#operation/ReturnAPI_GiveoutList). + * Информация о возвратной отгрузке + */ + returnAPIGiveoutInfoRaw(requestParameters: ReturnAPIGiveoutInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о возвратной отгрузке. В параметр `giveout_id` передаётся значение, полученное в методе [/v1/return/giveout/list](#operation/ReturnAPI_GiveoutList). + * Информация о возвратной отгрузке + */ + returnAPIGiveoutInfo(clientId: string, apiKey: string, v1GiveoutInfoRequest: V1GiveoutInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если у вас есть доступ, в параметре `enabled` будет указано значение `true`. + * Проверить возможность получения возвратных отгрузок по штрихкоду + */ + returnAPIGiveoutIsEnabledRaw(requestParameters: ReturnAPIGiveoutIsEnabledRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если у вас есть доступ, в параметре `enabled` будет указано значение `true`. + * Проверить возможность получения возвратных отгрузок по штрихкоду + */ + returnAPIGiveoutIsEnabled(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка активных возвратов. Возвратная отгрузка становится активной после сканирования штрихкода. После сканирования штрихкода второй раз активная выдача переходит в статус неактивной. + * Список возвратных отгрузок + */ + returnAPIGiveoutListRaw(requestParameters: ReturnAPIGiveoutListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка активных возвратов. Возвратная отгрузка становится активной после сканирования штрихкода. После сканирования штрихкода второй раз активная выдача переходит в статус неактивной. + * Список возвратных отгрузок + */ + returnAPIGiveoutList(clientId: string, apiKey: string, v1GiveoutListRequest: V1GiveoutListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о возвратах FBS и их количестве. + * Количество возвратов FBS + */ + returnsCompanyFBSInfoRaw(requestParameters: ReturnsCompanyFBSInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о возвратах FBS и их количестве. + * Количество возвратов FBS + */ + returnsCompanyFBSInfo(clientId: string, apiKey: string, v1ReturnsCompanyFbsInfoRequest?: V1ReturnsCompanyFbsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/ReturnAPI.js b/dist/apis/ReturnAPI.js new file mode 100644 index 0000000..dd147e7 --- /dev/null +++ b/dist/apis/ReturnAPI.js @@ -0,0 +1,367 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReturnAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class ReturnAPI extends runtime.BaseAPI { + /** + * Используйте метод, если ваш штрихкод попал в посторонние руки. Метод возвращает PNG-файл с новым штрихкодом. После использования метода вы не сможете получить возвратную отгрузку по старым штрихкодам. Чтобы получить новый штрихкод в PDF-формате, запросите его методом [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF). + * Сгенерировать новый штрихкод + */ + returnAPIGiveoutBarcodeResetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutBarcodeReset().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutBarcodeReset().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/barcode-reset`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GiveoutBarcodeResetResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте метод, если ваш штрихкод попал в посторонние руки. Метод возвращает PNG-файл с новым штрихкодом. После использования метода вы не сможете получить возвратную отгрузку по старым штрихкодам. Чтобы получить новый штрихкод в PDF-формате, запросите его методом [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF). + * Сгенерировать новый штрихкод + */ + returnAPIGiveoutBarcodeReset(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutBarcodeResetRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте этот метод, чтобы получить штрихкод из ответа методов [/v1/return/giveout/get-png](#operation/ReturnAPI_GiveoutGetPNG) и [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF) в текстовом виде. + * Значение штрихкода для возвратных отгрузок + */ + returnAPIGiveoutGetBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutGetBarcode().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutGetBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/barcode`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GiveoutGetBarcodeResponseFromJSON)(jsonValue)); + }); + } + /** + * Используйте этот метод, чтобы получить штрихкод из ответа методов [/v1/return/giveout/get-png](#operation/ReturnAPI_GiveoutGetPNG) и [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF) в текстовом виде. + * Значение штрихкода для возвратных отгрузок + */ + returnAPIGiveoutGetBarcode(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutGetBarcodeRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает PDF-файл со штрихкодом. Метод работает только для схемы FBS. + * Штрихкод для получения возвратной отгрузки в формате PDF + */ + returnAPIGiveoutGetPDFRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutGetPDF().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutGetPDF().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/get-pdf`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GiveoutGetPDFResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает PDF-файл со штрихкодом. Метод работает только для схемы FBS. + * Штрихкод для получения возвратной отгрузки в формате PDF + */ + returnAPIGiveoutGetPDF(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutGetPDFRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает PNG-файл со штрихкодом. + * Штрихкод для получения возвратной отгрузки в формате PNG + */ + returnAPIGiveoutGetPNGRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutGetPNG().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutGetPNG().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/get-png`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GiveoutGetPNGResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает PNG-файл со штрихкодом. + * Штрихкод для получения возвратной отгрузки в формате PNG + */ + returnAPIGiveoutGetPNG(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutGetPNGRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения информации о возвратной отгрузке. В параметр `giveout_id` передаётся значение, полученное в методе [/v1/return/giveout/list](#operation/ReturnAPI_GiveoutList). + * Информация о возвратной отгрузке + */ + returnAPIGiveoutInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutInfo().'); + } + if (requestParameters['v1GiveoutInfoRequest'] == null) { + throw new runtime.RequiredError('v1GiveoutInfoRequest', 'Required parameter "v1GiveoutInfoRequest" was null or undefined when calling returnAPIGiveoutInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GiveoutInfoRequestToJSON)(requestParameters['v1GiveoutInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GiveoutInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения информации о возвратной отгрузке. В параметр `giveout_id` передаётся значение, полученное в методе [/v1/return/giveout/list](#operation/ReturnAPI_GiveoutList). + * Информация о возвратной отгрузке + */ + returnAPIGiveoutInfo(clientId, apiKey, v1GiveoutInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutInfoRaw({ clientId: clientId, apiKey: apiKey, v1GiveoutInfoRequest: v1GiveoutInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если у вас есть доступ, в параметре `enabled` будет указано значение `true`. + * Проверить возможность получения возвратных отгрузок по штрихкоду + */ + returnAPIGiveoutIsEnabledRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutIsEnabled().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutIsEnabled().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/is-enabled`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GiveoutIsEnabledResponseFromJSON)(jsonValue)); + }); + } + /** + * Если у вас есть доступ, в параметре `enabled` будет указано значение `true`. + * Проверить возможность получения возвратных отгрузок по штрихкоду + */ + returnAPIGiveoutIsEnabled(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutIsEnabledRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка активных возвратов. Возвратная отгрузка становится активной после сканирования штрихкода. После сканирования штрихкода второй раз активная выдача переходит в статус неактивной. + * Список возвратных отгрузок + */ + returnAPIGiveoutListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutList().'); + } + if (requestParameters['v1GiveoutListRequest'] == null) { + throw new runtime.RequiredError('v1GiveoutListRequest', 'Required parameter "v1GiveoutListRequest" was null or undefined when calling returnAPIGiveoutList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GiveoutListRequestToJSON)(requestParameters['v1GiveoutListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GiveoutListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения списка активных возвратов. Возвратная отгрузка становится активной после сканирования штрихкода. После сканирования штрихкода второй раз активная выдача переходит в статус неактивной. + * Список возвратных отгрузок + */ + returnAPIGiveoutList(clientId, apiKey, v1GiveoutListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutListRaw({ clientId: clientId, apiKey: apiKey, v1GiveoutListRequest: v1GiveoutListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения информации о возвратах FBS и их количестве. + * Количество возвратов FBS + */ + returnsCompanyFBSInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnsCompanyFBSInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnsCompanyFBSInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/returns/company/fbs/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ReturnsCompanyFbsInfoRequestToJSON)(requestParameters['v1ReturnsCompanyFbsInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ReturnsCompanyFbsInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения информации о возвратах FBS и их количестве. + * Количество возвратов FBS + */ + returnsCompanyFBSInfo(clientId, apiKey, v1ReturnsCompanyFbsInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnsCompanyFBSInfoRaw({ clientId: clientId, apiKey: apiKey, v1ReturnsCompanyFbsInfoRequest: v1ReturnsCompanyFbsInfoRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.ReturnAPI = ReturnAPI; diff --git a/dist/apis/ReturnsAPI.d.ts b/dist/apis/ReturnsAPI.d.ts new file mode 100644 index 0000000..8f1e943 --- /dev/null +++ b/dist/apis/ReturnsAPI.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GetReturnsListRequest, V1GetReturnsListResponse, V1ReturnsSettingsUtilizationHistoryResponse, V1ReturnsSettingsUtilizationInfoResponse, V1ReturnsSettingsUtilizationUpdateRequest } from '../models/index'; +export interface ReturnsListRequest { + v1GetReturnsListRequest?: V1GetReturnsListRequest; +} +export interface UtilizationHistoryRequest { + clientId: string; + apiKey: string; +} +export interface UtilizationInfoRequest { + clientId: string; + apiKey: string; +} +export interface UtilizationUpdateRequest { + clientId: string; + apiKey: string; + v1ReturnsSettingsUtilizationUpdateRequest?: V1ReturnsSettingsUtilizationUpdateRequest; +} +/** + * + */ +export declare class ReturnsAPI extends runtime.BaseAPI { + /** + * Метод для получения информации о возвратах FBO и FBS. + * Информация о возвратах FBO и FBS + */ + returnsListRaw(requestParameters: ReturnsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о возвратах FBO и FBS. + * Информация о возвратах FBO и FBS + */ + returnsList(v1GetReturnsListRequest?: V1GetReturnsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить историю изменений автоутилизации + */ + utilizationHistoryRaw(requestParameters: UtilizationHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить историю изменений автоутилизации + */ + utilizationHistory(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить настройки автоутилизации + */ + utilizationInfoRaw(requestParameters: UtilizationInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить настройки автоутилизации + */ + utilizationInfo(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить настройки автоутилизации + */ + utilizationUpdateRaw(requestParameters: UtilizationUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить настройки автоутилизации + */ + utilizationUpdate(clientId: string, apiKey: string, v1ReturnsSettingsUtilizationUpdateRequest?: V1ReturnsSettingsUtilizationUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/ReturnsAPI.js b/dist/apis/ReturnsAPI.js new file mode 100644 index 0000000..5735697 --- /dev/null +++ b/dist/apis/ReturnsAPI.js @@ -0,0 +1,174 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReturnsAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class ReturnsAPI extends runtime.BaseAPI { + /** + * Метод для получения информации о возвратах FBO и FBS. + * Информация о возвратах FBO и FBS + */ + returnsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/returns/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetReturnsListRequestToJSON)(requestParameters['v1GetReturnsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetReturnsListResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод для получения информации о возвратах FBO и FBS. + * Информация о возвратах FBO и FBS + */ + returnsList(v1GetReturnsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnsListRaw({ v1GetReturnsListRequest: v1GetReturnsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить историю изменений автоутилизации + */ + utilizationHistoryRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling utilizationHistory().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling utilizationHistory().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/returns/settings/utilization/history`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ReturnsSettingsUtilizationHistoryResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить историю изменений автоутилизации + */ + utilizationHistory(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.utilizationHistoryRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить настройки автоутилизации + */ + utilizationInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling utilizationInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling utilizationInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/returns/settings/utilization/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ReturnsSettingsUtilizationInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить настройки автоутилизации + */ + utilizationInfo(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.utilizationInfoRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Обновить настройки автоутилизации + */ + utilizationUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling utilizationUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling utilizationUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/returns/settings/utilization/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ReturnsSettingsUtilizationUpdateRequestToJSON)(requestParameters['v1ReturnsSettingsUtilizationUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Обновить настройки автоутилизации + */ + utilizationUpdate(clientId, apiKey, v1ReturnsSettingsUtilizationUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.utilizationUpdateRaw({ clientId: clientId, apiKey: apiKey, v1ReturnsSettingsUtilizationUpdateRequest: v1ReturnsSettingsUtilizationUpdateRequest }, initOverrides); + }); + } +} +exports.ReturnsAPI = ReturnsAPI; diff --git a/dist/apis/ReviewAPI.d.ts b/dist/apis/ReviewAPI.d.ts new file mode 100644 index 0000000..7a1684d --- /dev/null +++ b/dist/apis/ReviewAPI.d.ts @@ -0,0 +1,193 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ReviewV2ReviewChangeStatusV2Request, ReviewV2ReviewCommentDeleteV2Request, ReviewV2ReviewCountV2Response, ReviewV2ReviewInfoV2Request, ReviewV2ReviewInfoV2Response, ReviewV2ReviewListV2Request, ReviewV2ReviewListV2Response, V1CommentCreateRequest, V1CommentCreateResponse, V1CommentDeleteRequest, V1CommentListRequest, V1CommentListResponse, V1ReviewChangeStatusRequest, V1ReviewCountResponse, V1ReviewInfoRequest, V1ReviewInfoResponse, V1ReviewListRequest, V1ReviewListResponse } from '../models/index'; +export interface ReviewAPICommentCreateRequest { + v1CommentCreateRequest: V1CommentCreateRequest; +} +export interface ReviewAPICommentDeleteRequest { + v1CommentDeleteRequest: V1CommentDeleteRequest; +} +export interface ReviewAPICommentListRequest { + v1CommentListRequest: V1CommentListRequest | null; +} +export interface ReviewAPIReviewChangeStatusRequest { + v1ReviewChangeStatusRequest: V1ReviewChangeStatusRequest; +} +export interface ReviewAPIReviewCountRequest { + body: object; +} +export interface ReviewAPIReviewInfoRequest { + v1ReviewInfoRequest: V1ReviewInfoRequest; +} +export interface ReviewAPIReviewListRequest { + v1ReviewListRequest: V1ReviewListRequest; +} +export interface ReviewChangeStatusV2Request { + clientId: string; + apiKey: string; + reviewV2ReviewChangeStatusV2Request: ReviewV2ReviewChangeStatusV2Request; +} +export interface ReviewCommentDeleteV2Request { + clientId: string; + apiKey: string; + reviewV2ReviewCommentDeleteV2Request: ReviewV2ReviewCommentDeleteV2Request; +} +export interface ReviewCountV2Request { + clientId: string; + apiKey: string; +} +export interface ReviewInfoV2Request { + clientId: string; + apiKey: string; + reviewV2ReviewInfoV2Request: ReviewV2ReviewInfoV2Request; +} +export interface ReviewListV2Request { + clientId: string; + apiKey: string; + reviewV2ReviewListV2Request: ReviewV2ReviewListV2Request; +} +/** + * + */ +export declare class ReviewAPI extends runtime.BaseAPI { + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Оставить комментарий на отзыв + */ + reviewAPICommentCreateRaw(requestParameters: ReviewAPICommentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Оставить комментарий на отзыв + */ + reviewAPICommentCreate(v1CommentCreateRequest: V1CommentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + * @deprecated + */ + reviewAPICommentDeleteRaw(requestParameters: ReviewAPICommentDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + * @deprecated + */ + reviewAPICommentDelete(v1CommentDeleteRequest: V1CommentDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод возвращает информацию по комментариям на отзывы, которые прошли модерацию. + * Получить список комментариев на отзыв + */ + reviewAPICommentListRaw(requestParameters: ReviewAPICommentListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод возвращает информацию по комментариям на отзывы, которые прошли модерацию. + * Получить список комментариев на отзыв + */ + reviewAPICommentList(v1CommentListRequest: V1CommentListRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + * @deprecated + */ + reviewAPIReviewChangeStatusRaw(requestParameters: ReviewAPIReviewChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + * @deprecated + */ + reviewAPIReviewChangeStatus(v1ReviewChangeStatusRequest: V1ReviewChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Количество отзывов по статусам + * @deprecated + */ + reviewAPIReviewCountRaw(requestParameters: ReviewAPIReviewCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Количество отзывов по статусам + * @deprecated + */ + reviewAPIReviewCount(body: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию об отзыве + * @deprecated + */ + reviewAPIReviewInfoRaw(requestParameters: ReviewAPIReviewInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию об отзыве + * @deprecated + */ + reviewAPIReviewInfo(v1ReviewInfoRequest: V1ReviewInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод не возвращает параметры «Достоинства» и «Недостатки», если они есть в отзывах на товар. Эти параметры устарели, в новых отзывах их нет. + * Получить список отзывов + * @deprecated + */ + reviewAPIReviewListRaw(requestParameters: ReviewAPIReviewListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод не возвращает параметры «Достоинства» и «Недостатки», если они есть в отзывах на товар. Эти параметры устарели, в новых отзывах их нет. + * Получить список отзывов + * @deprecated + */ + reviewAPIReviewList(v1ReviewListRequest: V1ReviewListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + */ + reviewChangeStatusV2Raw(requestParameters: ReviewChangeStatusV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + */ + reviewChangeStatusV2(clientId: string, apiKey: string, reviewV2ReviewChangeStatusV2Request: ReviewV2ReviewChangeStatusV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + */ + reviewCommentDeleteV2Raw(requestParameters: ReviewCommentDeleteV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + */ + reviewCommentDeleteV2(clientId: string, apiKey: string, reviewV2ReviewCommentDeleteV2Request: ReviewV2ReviewCommentDeleteV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить количество отзывов по статусам + */ + reviewCountV2Raw(requestParameters: ReviewCountV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить количество отзывов по статусам + */ + reviewCountV2(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию по отзыву + */ + reviewInfoV2Raw(requestParameters: ReviewInfoV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию по отзыву + */ + reviewInfoV2(clientId: string, apiKey: string, reviewV2ReviewInfoV2Request: ReviewV2ReviewInfoV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список отзывов + */ + reviewListV2Raw(requestParameters: ReviewListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список отзывов + */ + reviewListV2(clientId: string, apiKey: string, reviewV2ReviewListV2Request: ReviewV2ReviewListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/ReviewAPI.js b/dist/apis/ReviewAPI.js new file mode 100644 index 0000000..1025ab2 --- /dev/null +++ b/dist/apis/ReviewAPI.js @@ -0,0 +1,480 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class ReviewAPI extends runtime.BaseAPI { + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Оставить комментарий на отзыв + */ + reviewAPICommentCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CommentCreateRequest'] == null) { + throw new runtime.RequiredError('v1CommentCreateRequest', 'Required parameter "v1CommentCreateRequest" was null or undefined when calling reviewAPICommentCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/comment/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CommentCreateRequestToJSON)(requestParameters['v1CommentCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CommentCreateResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Оставить комментарий на отзыв + */ + reviewAPICommentCreate(v1CommentCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPICommentCreateRaw({ v1CommentCreateRequest: v1CommentCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + * @deprecated + */ + reviewAPICommentDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CommentDeleteRequest'] == null) { + throw new runtime.RequiredError('v1CommentDeleteRequest', 'Required parameter "v1CommentDeleteRequest" was null or undefined when calling reviewAPICommentDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/comment/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CommentDeleteRequestToJSON)(requestParameters['v1CommentDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + * @deprecated + */ + reviewAPICommentDelete(v1CommentDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPICommentDeleteRaw({ v1CommentDeleteRequest: v1CommentDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод возвращает информацию по комментариям на отзывы, которые прошли модерацию. + * Получить список комментариев на отзыв + */ + reviewAPICommentListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CommentListRequest'] == null) { + throw new runtime.RequiredError('v1CommentListRequest', 'Required parameter "v1CommentListRequest" was null or undefined when calling reviewAPICommentList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/comment/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1CommentListRequestToJSON)(requestParameters['v1CommentListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1CommentListResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод возвращает информацию по комментариям на отзывы, которые прошли модерацию. + * Получить список комментариев на отзыв + */ + reviewAPICommentList(v1CommentListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPICommentListRaw({ v1CommentListRequest: v1CommentListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + * @deprecated + */ + reviewAPIReviewChangeStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ReviewChangeStatusRequest'] == null) { + throw new runtime.RequiredError('v1ReviewChangeStatusRequest', 'Required parameter "v1ReviewChangeStatusRequest" was null or undefined when calling reviewAPIReviewChangeStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/change-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ReviewChangeStatusRequestToJSON)(requestParameters['v1ReviewChangeStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + * @deprecated + */ + reviewAPIReviewChangeStatus(v1ReviewChangeStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPIReviewChangeStatusRaw({ v1ReviewChangeStatusRequest: v1ReviewChangeStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Количество отзывов по статусам + * @deprecated + */ + reviewAPIReviewCountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['body'] == null) { + throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling reviewAPIReviewCount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/count`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ReviewCountResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Количество отзывов по статусам + * @deprecated + */ + reviewAPIReviewCount(body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPIReviewCountRaw({ body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию об отзыве + * @deprecated + */ + reviewAPIReviewInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ReviewInfoRequest'] == null) { + throw new runtime.RequiredError('v1ReviewInfoRequest', 'Required parameter "v1ReviewInfoRequest" was null or undefined when calling reviewAPIReviewInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ReviewInfoRequestToJSON)(requestParameters['v1ReviewInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ReviewInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию об отзыве + * @deprecated + */ + reviewAPIReviewInfo(v1ReviewInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPIReviewInfoRaw({ v1ReviewInfoRequest: v1ReviewInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод не возвращает параметры «Достоинства» и «Недостатки», если они есть в отзывах на товар. Эти параметры устарели, в новых отзывах их нет. + * Получить список отзывов + * @deprecated + */ + reviewAPIReviewListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ReviewListRequest'] == null) { + throw new runtime.RequiredError('v1ReviewListRequest', 'Required parameter "v1ReviewListRequest" was null or undefined when calling reviewAPIReviewList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ReviewListRequestToJSON)(requestParameters['v1ReviewListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ReviewListResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод не возвращает параметры «Достоинства» и «Недостатки», если они есть в отзывах на товар. Эти параметры устарели, в новых отзывах их нет. + * Получить список отзывов + * @deprecated + */ + reviewAPIReviewList(v1ReviewListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPIReviewListRaw({ v1ReviewListRequest: v1ReviewListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + */ + reviewChangeStatusV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewChangeStatusV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewChangeStatusV2().'); + } + if (requestParameters['reviewV2ReviewChangeStatusV2Request'] == null) { + throw new runtime.RequiredError('reviewV2ReviewChangeStatusV2Request', 'Required parameter "reviewV2ReviewChangeStatusV2Request" was null or undefined when calling reviewChangeStatusV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/change-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReviewV2ReviewChangeStatusV2RequestToJSON)(requestParameters['reviewV2ReviewChangeStatusV2Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + */ + reviewChangeStatusV2(clientId, apiKey, reviewV2ReviewChangeStatusV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.reviewChangeStatusV2Raw({ clientId: clientId, apiKey: apiKey, reviewV2ReviewChangeStatusV2Request: reviewV2ReviewChangeStatusV2Request }, initOverrides); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + */ + reviewCommentDeleteV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewCommentDeleteV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewCommentDeleteV2().'); + } + if (requestParameters['reviewV2ReviewCommentDeleteV2Request'] == null) { + throw new runtime.RequiredError('reviewV2ReviewCommentDeleteV2Request', 'Required parameter "reviewV2ReviewCommentDeleteV2Request" was null or undefined when calling reviewCommentDeleteV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/comment/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReviewV2ReviewCommentDeleteV2RequestToJSON)(requestParameters['reviewV2ReviewCommentDeleteV2Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + */ + reviewCommentDeleteV2(clientId, apiKey, reviewV2ReviewCommentDeleteV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.reviewCommentDeleteV2Raw({ clientId: clientId, apiKey: apiKey, reviewV2ReviewCommentDeleteV2Request: reviewV2ReviewCommentDeleteV2Request }, initOverrides); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить количество отзывов по статусам + */ + reviewCountV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewCountV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewCountV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/count`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReviewV2ReviewCountV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить количество отзывов по статусам + */ + reviewCountV2(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewCountV2Raw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию по отзыву + */ + reviewInfoV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewInfoV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewInfoV2().'); + } + if (requestParameters['reviewV2ReviewInfoV2Request'] == null) { + throw new runtime.RequiredError('reviewV2ReviewInfoV2Request', 'Required parameter "reviewV2ReviewInfoV2Request" was null or undefined when calling reviewInfoV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReviewV2ReviewInfoV2RequestToJSON)(requestParameters['reviewV2ReviewInfoV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReviewV2ReviewInfoV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию по отзыву + */ + reviewInfoV2(clientId, apiKey, reviewV2ReviewInfoV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewInfoV2Raw({ clientId: clientId, apiKey: apiKey, reviewV2ReviewInfoV2Request: reviewV2ReviewInfoV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список отзывов + */ + reviewListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewListV2().'); + } + if (requestParameters['reviewV2ReviewListV2Request'] == null) { + throw new runtime.RequiredError('reviewV2ReviewListV2Request', 'Required parameter "reviewV2ReviewListV2Request" was null or undefined when calling reviewListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.ReviewV2ReviewListV2RequestToJSON)(requestParameters['reviewV2ReviewListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReviewV2ReviewListV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список отзывов + */ + reviewListV2(clientId, apiKey, reviewV2ReviewListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewListV2Raw({ clientId: clientId, apiKey: apiKey, reviewV2ReviewListV2Request: reviewV2ReviewListV2Request }, initOverrides); + return yield response.value(); + }); + } +} +exports.ReviewAPI = ReviewAPI; diff --git a/dist/apis/SellerActions.d.ts b/dist/apis/SellerActions.d.ts new file mode 100644 index 0000000..ff24f7d --- /dev/null +++ b/dist/apis/SellerActions.d.ts @@ -0,0 +1,288 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1SellerActionsArchiveRequest, V1SellerActionsChangeActivityRequest, V1SellerActionsCreateDiscountRequest, V1SellerActionsCreateDiscountResponse, V1SellerActionsCreateDiscountWithConditionRequest, V1SellerActionsCreateDiscountWithConditionResponse, V1SellerActionsCreateInstallmentRequest, V1SellerActionsCreateInstallmentResponse, V1SellerActionsCreateMultiLevelDiscountRequest, V1SellerActionsCreateMultiLevelDiscountResponse, V1SellerActionsCreateVoucherRequest, V1SellerActionsCreateVoucherResponse, V1SellerActionsListRequest, V1SellerActionsListResponse, V1SellerActionsProductsAddRequest, V1SellerActionsProductsCandidatesRequest, V1SellerActionsProductsCandidatesResponse, V1SellerActionsProductsDeleteRequest, V1SellerActionsProductsListRequest, V1SellerActionsProductsListResponse, V1SellerActionsUpdateDiscountRequest, V1SellerActionsUpdateDiscountWithConditionRequest, V1SellerActionsUpdateInstallmentRequest, V1SellerActionsUpdateMultiLevelDiscountRequest, V1SellerActionsUpdateVoucherRequest, V1SellerActionsVoucherGetRequest, V1SellerActionsVoucherGetResponse } from '../models/index'; +export interface SellerActionsArchiveRequest { + clientId: string; + apiKey: string; + v1SellerActionsArchiveRequest?: V1SellerActionsArchiveRequest; +} +export interface SellerActionsChangeActivityRequest { + clientId: string; + apiKey: string; + v1SellerActionsChangeActivityRequest?: V1SellerActionsChangeActivityRequest; +} +export interface SellerActionsCreateDiscountRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateDiscountRequest?: V1SellerActionsCreateDiscountRequest; +} +export interface SellerActionsCreateDiscountWithConditionRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateDiscountWithConditionRequest?: V1SellerActionsCreateDiscountWithConditionRequest; +} +export interface SellerActionsCreateInstallmentRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateInstallmentRequest?: V1SellerActionsCreateInstallmentRequest; +} +export interface SellerActionsCreateMultiLevelDiscountRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateMultiLevelDiscountRequest?: V1SellerActionsCreateMultiLevelDiscountRequest; +} +export interface SellerActionsCreateVoucherRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateVoucherRequest?: V1SellerActionsCreateVoucherRequest; +} +export interface SellerActionsListRequest { + clientId: string; + apiKey: string; + v1SellerActionsListRequest?: V1SellerActionsListRequest; +} +export interface SellerActionsProductsAddRequest { + clientId: string; + apiKey: string; + v1SellerActionsProductsAddRequest?: V1SellerActionsProductsAddRequest; +} +export interface SellerActionsProductsCandidatesRequest { + clientId: string; + apiKey: string; + v1SellerActionsProductsCandidatesRequest?: V1SellerActionsProductsCandidatesRequest; +} +export interface SellerActionsProductsDeleteRequest { + clientId: string; + apiKey: string; + v1SellerActionsProductsDeleteRequest?: V1SellerActionsProductsDeleteRequest; +} +export interface SellerActionsProductsListRequest { + clientId: string; + apiKey: string; + v1SellerActionsProductsListRequest?: V1SellerActionsProductsListRequest; +} +export interface SellerActionsUpdateDiscountRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateDiscountRequest: V1SellerActionsUpdateDiscountRequest; +} +export interface SellerActionsUpdateDiscountWithConditionRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateDiscountWithConditionRequest: V1SellerActionsUpdateDiscountWithConditionRequest; +} +export interface SellerActionsUpdateInstallmentRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateInstallmentRequest: V1SellerActionsUpdateInstallmentRequest; +} +export interface SellerActionsUpdateMultiLevelDiscountRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateMultiLevelDiscountRequest: V1SellerActionsUpdateMultiLevelDiscountRequest; +} +export interface SellerActionsUpdateVoucherRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateVoucherRequest: V1SellerActionsUpdateVoucherRequest; +} +export interface SellerActionsVoucherGetRequest { + clientId: string; + apiKey: string; + v1SellerActionsVoucherGetRequest?: V1SellerActionsVoucherGetRequest; +} +/** + * + */ +export declare class SellerActions extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Перенести акцию в архив + */ + sellerActionsArchiveRaw(requestParameters: SellerActionsArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Перенести акцию в архив + */ + sellerActionsArchive(clientId: string, apiKey: string, v1SellerActionsArchiveRequest?: V1SellerActionsArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Включить или выключить акцию + */ + sellerActionsChangeActivityRaw(requestParameters: SellerActionsChangeActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Включить или выключить акцию + */ + sellerActionsChangeActivity(clientId: string, apiKey: string, v1SellerActionsChangeActivityRequest?: V1SellerActionsChangeActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка» + */ + sellerActionsCreateDiscountRaw(requestParameters: SellerActionsCreateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка» + */ + sellerActionsCreateDiscount(clientId: string, apiKey: string, v1SellerActionsCreateDiscountRequest?: V1SellerActionsCreateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsCreateDiscountWithConditionRaw(requestParameters: SellerActionsCreateDiscountWithConditionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsCreateDiscountWithCondition(clientId: string, apiKey: string, v1SellerActionsCreateDiscountWithConditionRequest?: V1SellerActionsCreateDiscountWithConditionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsCreateInstallmentRaw(requestParameters: SellerActionsCreateInstallmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsCreateInstallment(clientId: string, apiKey: string, v1SellerActionsCreateInstallmentRequest?: V1SellerActionsCreateInstallmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Товары в акцию добавляются автоматически, использовать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsCreateMultiLevelDiscountRaw(requestParameters: SellerActionsCreateMultiLevelDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Товары в акцию добавляются автоматически, использовать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsCreateMultiLevelDiscount(clientId: string, apiKey: string, v1SellerActionsCreateMultiLevelDiscountRequest?: V1SellerActionsCreateMultiLevelDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка по промокоду» + */ + sellerActionsCreateVoucherRaw(requestParameters: SellerActionsCreateVoucherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка по промокоду» + */ + sellerActionsCreateVoucher(clientId: string, apiKey: string, v1SellerActionsCreateVoucherRequest?: V1SellerActionsCreateVoucherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список акций + */ + sellerActionsListRaw(requestParameters: SellerActionsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список акций + */ + sellerActionsList(clientId: string, apiKey: string, v1SellerActionsListRequest?: V1SellerActionsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Добавить товары в акцию + */ + sellerActionsProductsAddRaw(requestParameters: SellerActionsProductsAddRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Добавить товары в акцию + */ + sellerActionsProductsAdd(clientId: string, apiKey: string, v1SellerActionsProductsAddRequest?: V1SellerActionsProductsAddRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список доступных для акции товаров + */ + sellerActionsProductsCandidatesRaw(requestParameters: SellerActionsProductsCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список доступных для акции товаров + */ + sellerActionsProductsCandidates(clientId: string, apiKey: string, v1SellerActionsProductsCandidatesRequest?: V1SellerActionsProductsCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Удалить товары из акции + */ + sellerActionsProductsDeleteRaw(requestParameters: SellerActionsProductsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Удалить товары из акции + */ + sellerActionsProductsDelete(clientId: string, apiKey: string, v1SellerActionsProductsDeleteRequest?: V1SellerActionsProductsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список участвующих в акции товаров + */ + sellerActionsProductsListRaw(requestParameters: SellerActionsProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список участвующих в акции товаров + */ + sellerActionsProductsList(clientId: string, apiKey: string, v1SellerActionsProductsListRequest?: V1SellerActionsProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка» + */ + sellerActionsUpdateDiscountRaw(requestParameters: SellerActionsUpdateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка» + */ + sellerActionsUpdateDiscount(clientId: string, apiKey: string, v1SellerActionsUpdateDiscountRequest: V1SellerActionsUpdateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsUpdateDiscountWithConditionRaw(requestParameters: SellerActionsUpdateDiscountWithConditionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsUpdateDiscountWithCondition(clientId: string, apiKey: string, v1SellerActionsUpdateDiscountWithConditionRequest: V1SellerActionsUpdateDiscountWithConditionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsUpdateInstallmentRaw(requestParameters: SellerActionsUpdateInstallmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsUpdateInstallment(clientId: string, apiKey: string, v1SellerActionsUpdateInstallmentRequest: V1SellerActionsUpdateInstallmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Товары в акцию добавляются автоматически, вызывать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsUpdateMultiLevelDiscountRaw(requestParameters: SellerActionsUpdateMultiLevelDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Товары в акцию добавляются автоматически, вызывать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsUpdateMultiLevelDiscount(clientId: string, apiKey: string, v1SellerActionsUpdateMultiLevelDiscountRequest: V1SellerActionsUpdateMultiLevelDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка по промокоду» + */ + sellerActionsUpdateVoucherRaw(requestParameters: SellerActionsUpdateVoucherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка по промокоду» + */ + sellerActionsUpdateVoucher(clientId: string, apiKey: string, v1SellerActionsUpdateVoucherRequest: V1SellerActionsUpdateVoucherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить файл с промокодами в формате CSV + */ + sellerActionsVoucherGetRaw(requestParameters: SellerActionsVoucherGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить файл с промокодами в формате CSV + */ + sellerActionsVoucherGet(clientId: string, apiKey: string, v1SellerActionsVoucherGetRequest?: V1SellerActionsVoucherGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/SellerActions.js b/dist/apis/SellerActions.js new file mode 100644 index 0000000..3a3d490 --- /dev/null +++ b/dist/apis/SellerActions.js @@ -0,0 +1,777 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerActions = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class SellerActions extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Перенести акцию в архив + */ + sellerActionsArchiveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsArchive().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsArchive().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/archive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsArchiveRequestToJSON)(requestParameters['v1SellerActionsArchiveRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Перенести акцию в архив + */ + sellerActionsArchive(clientId, apiKey, v1SellerActionsArchiveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsArchiveRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsArchiveRequest: v1SellerActionsArchiveRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Включить или выключить акцию + */ + sellerActionsChangeActivityRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsChangeActivity().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsChangeActivity().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/change-activity`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsChangeActivityRequestToJSON)(requestParameters['v1SellerActionsChangeActivityRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Включить или выключить акцию + */ + sellerActionsChangeActivity(clientId, apiKey, v1SellerActionsChangeActivityRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsChangeActivityRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsChangeActivityRequest: v1SellerActionsChangeActivityRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка» + */ + sellerActionsCreateDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsCreateDiscountRequestToJSON)(requestParameters['v1SellerActionsCreateDiscountRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsCreateDiscountResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка» + */ + sellerActionsCreateDiscount(clientId, apiKey, v1SellerActionsCreateDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateDiscountRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateDiscountRequest: v1SellerActionsCreateDiscountRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsCreateDiscountWithConditionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateDiscountWithCondition().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateDiscountWithCondition().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/discount-with-condition`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsCreateDiscountWithConditionRequestToJSON)(requestParameters['v1SellerActionsCreateDiscountWithConditionRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsCreateDiscountWithConditionResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsCreateDiscountWithCondition(clientId, apiKey, v1SellerActionsCreateDiscountWithConditionRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateDiscountWithConditionRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateDiscountWithConditionRequest: v1SellerActionsCreateDiscountWithConditionRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsCreateInstallmentRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateInstallment().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateInstallment().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/installment`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsCreateInstallmentRequestToJSON)(requestParameters['v1SellerActionsCreateInstallmentRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsCreateInstallmentResponseFromJSON)(jsonValue)); + }); + } + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsCreateInstallment(clientId, apiKey, v1SellerActionsCreateInstallmentRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateInstallmentRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateInstallmentRequest: v1SellerActionsCreateInstallmentRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Товары в акцию добавляются автоматически, использовать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsCreateMultiLevelDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateMultiLevelDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateMultiLevelDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/multi-level-discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsCreateMultiLevelDiscountRequestToJSON)(requestParameters['v1SellerActionsCreateMultiLevelDiscountRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsCreateMultiLevelDiscountResponseFromJSON)(jsonValue)); + }); + } + /** + * Товары в акцию добавляются автоматически, использовать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsCreateMultiLevelDiscount(clientId, apiKey, v1SellerActionsCreateMultiLevelDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateMultiLevelDiscountRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateMultiLevelDiscountRequest: v1SellerActionsCreateMultiLevelDiscountRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка по промокоду» + */ + sellerActionsCreateVoucherRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateVoucher().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateVoucher().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/voucher`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsCreateVoucherRequestToJSON)(requestParameters['v1SellerActionsCreateVoucherRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsCreateVoucherResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка по промокоду» + */ + sellerActionsCreateVoucher(clientId, apiKey, v1SellerActionsCreateVoucherRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateVoucherRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateVoucherRequest: v1SellerActionsCreateVoucherRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список акций + */ + sellerActionsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsListRequestToJSON)(requestParameters['v1SellerActionsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список акций + */ + sellerActionsList(clientId, apiKey, v1SellerActionsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsListRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsListRequest: v1SellerActionsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Добавить товары в акцию + */ + sellerActionsProductsAddRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsProductsAdd().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsProductsAdd().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/products/add`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsProductsAddRequestToJSON)(requestParameters['v1SellerActionsProductsAddRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Добавить товары в акцию + */ + sellerActionsProductsAdd(clientId, apiKey, v1SellerActionsProductsAddRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsProductsAddRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsProductsAddRequest: v1SellerActionsProductsAddRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список доступных для акции товаров + */ + sellerActionsProductsCandidatesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsProductsCandidates().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsProductsCandidates().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/products/candidates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsProductsCandidatesRequestToJSON)(requestParameters['v1SellerActionsProductsCandidatesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsProductsCandidatesResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список доступных для акции товаров + */ + sellerActionsProductsCandidates(clientId, apiKey, v1SellerActionsProductsCandidatesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsProductsCandidatesRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsProductsCandidatesRequest: v1SellerActionsProductsCandidatesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Удалить товары из акции + */ + sellerActionsProductsDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsProductsDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsProductsDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/products/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsProductsDeleteRequestToJSON)(requestParameters['v1SellerActionsProductsDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Удалить товары из акции + */ + sellerActionsProductsDelete(clientId, apiKey, v1SellerActionsProductsDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsProductsDeleteRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsProductsDeleteRequest: v1SellerActionsProductsDeleteRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список участвующих в акции товаров + */ + sellerActionsProductsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsProductsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsProductsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/products/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsProductsListRequestToJSON)(requestParameters['v1SellerActionsProductsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsProductsListResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список участвующих в акции товаров + */ + sellerActionsProductsList(clientId, apiKey, v1SellerActionsProductsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsProductsListRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsProductsListRequest: v1SellerActionsProductsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка» + */ + sellerActionsUpdateDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateDiscount().'); + } + if (requestParameters['v1SellerActionsUpdateDiscountRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateDiscountRequest', 'Required parameter "v1SellerActionsUpdateDiscountRequest" was null or undefined when calling sellerActionsUpdateDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsUpdateDiscountRequestToJSON)(requestParameters['v1SellerActionsUpdateDiscountRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка» + */ + sellerActionsUpdateDiscount(clientId, apiKey, v1SellerActionsUpdateDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateDiscountRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateDiscountRequest: v1SellerActionsUpdateDiscountRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsUpdateDiscountWithConditionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateDiscountWithCondition().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateDiscountWithCondition().'); + } + if (requestParameters['v1SellerActionsUpdateDiscountWithConditionRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateDiscountWithConditionRequest', 'Required parameter "v1SellerActionsUpdateDiscountWithConditionRequest" was null or undefined when calling sellerActionsUpdateDiscountWithCondition().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/discount-with-condition`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsUpdateDiscountWithConditionRequestToJSON)(requestParameters['v1SellerActionsUpdateDiscountWithConditionRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsUpdateDiscountWithCondition(clientId, apiKey, v1SellerActionsUpdateDiscountWithConditionRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateDiscountWithConditionRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateDiscountWithConditionRequest: v1SellerActionsUpdateDiscountWithConditionRequest }, initOverrides); + }); + } + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsUpdateInstallmentRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateInstallment().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateInstallment().'); + } + if (requestParameters['v1SellerActionsUpdateInstallmentRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateInstallmentRequest', 'Required parameter "v1SellerActionsUpdateInstallmentRequest" was null or undefined when calling sellerActionsUpdateInstallment().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/installment`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsUpdateInstallmentRequestToJSON)(requestParameters['v1SellerActionsUpdateInstallmentRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsUpdateInstallment(clientId, apiKey, v1SellerActionsUpdateInstallmentRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateInstallmentRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateInstallmentRequest: v1SellerActionsUpdateInstallmentRequest }, initOverrides); + }); + } + /** + * Товары в акцию добавляются автоматически, вызывать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsUpdateMultiLevelDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateMultiLevelDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateMultiLevelDiscount().'); + } + if (requestParameters['v1SellerActionsUpdateMultiLevelDiscountRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateMultiLevelDiscountRequest', 'Required parameter "v1SellerActionsUpdateMultiLevelDiscountRequest" was null or undefined when calling sellerActionsUpdateMultiLevelDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/multi-level-discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsUpdateMultiLevelDiscountRequestToJSON)(requestParameters['v1SellerActionsUpdateMultiLevelDiscountRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Товары в акцию добавляются автоматически, вызывать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsUpdateMultiLevelDiscount(clientId, apiKey, v1SellerActionsUpdateMultiLevelDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateMultiLevelDiscountRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateMultiLevelDiscountRequest: v1SellerActionsUpdateMultiLevelDiscountRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка по промокоду» + */ + sellerActionsUpdateVoucherRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateVoucher().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateVoucher().'); + } + if (requestParameters['v1SellerActionsUpdateVoucherRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateVoucherRequest', 'Required parameter "v1SellerActionsUpdateVoucherRequest" was null or undefined when calling sellerActionsUpdateVoucher().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/voucher`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsUpdateVoucherRequestToJSON)(requestParameters['v1SellerActionsUpdateVoucherRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка по промокоду» + */ + sellerActionsUpdateVoucher(clientId, apiKey, v1SellerActionsUpdateVoucherRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateVoucherRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateVoucherRequest: v1SellerActionsUpdateVoucherRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить файл с промокодами в формате CSV + */ + sellerActionsVoucherGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsVoucherGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsVoucherGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/voucher/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1SellerActionsVoucherGetRequestToJSON)(requestParameters['v1SellerActionsVoucherGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerActionsVoucherGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить файл с промокодами в формате CSV + */ + sellerActionsVoucherGet(clientId, apiKey, v1SellerActionsVoucherGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsVoucherGetRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsVoucherGetRequest: v1SellerActionsVoucherGetRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.SellerActions = SellerActions; diff --git a/dist/apis/SellerInfo.d.ts b/dist/apis/SellerInfo.d.ts new file mode 100644 index 0000000..f4a6222 --- /dev/null +++ b/dist/apis/SellerInfo.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1SellerInfoResponse, V1SellerOzonLogisticsInfoResponse } from '../models/index'; +export interface SellerAPISellerInfoRequest { + clientId: string; + apiKey: string; +} +export interface SellerAPISellerOzonLogisticsInfoRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class SellerInfo extends runtime.BaseAPI { + /** + * Информация о кабинете продавца + */ + sellerAPISellerInfoRaw(requestParameters: SellerAPISellerInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о кабинете продавца + */ + sellerAPISellerInfo(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о подключении Ozon Доставки + */ + sellerAPISellerOzonLogisticsInfoRaw(requestParameters: SellerAPISellerOzonLogisticsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о подключении Ozon Доставки + */ + sellerAPISellerOzonLogisticsInfo(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/SellerInfo.js b/dist/apis/SellerInfo.js new file mode 100644 index 0000000..710f791 --- /dev/null +++ b/dist/apis/SellerInfo.js @@ -0,0 +1,107 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerInfo = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class SellerInfo extends runtime.BaseAPI { + /** + * Информация о кабинете продавца + */ + sellerAPISellerInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerAPISellerInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerAPISellerInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Информация о кабинете продавца + */ + sellerAPISellerInfo(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerAPISellerInfoRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о подключении Ozon Доставки + */ + sellerAPISellerOzonLogisticsInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerAPISellerOzonLogisticsInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerAPISellerOzonLogisticsInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller/ozon-logistics/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1SellerOzonLogisticsInfoResponseFromJSON)(jsonValue)); + }); + } + /** + * Информация о подключении Ozon Доставки + */ + sellerAPISellerOzonLogisticsInfo(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerAPISellerOzonLogisticsInfoRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} +exports.SellerInfo = SellerInfo; diff --git a/dist/apis/SellerRating.d.ts b/dist/apis/SellerRating.d.ts new file mode 100644 index 0000000..a0b4c9e --- /dev/null +++ b/dist/apis/SellerRating.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GetFBSRatingIndexInfoV1Response, V1ListFBSRatingIndexPostingsV1Request, V1ListFBSRatingIndexPostingsV1Response, V1RatingHistoryV1Request, V1RatingHistoryV1Response, V1RatingSummaryV1Response } from '../models/index'; +export interface RatingAPIGetFBSRatingIndexInfoV1Request { + clientId: string; + apiKey: string; +} +export interface RatingAPIListFBSRatingIndexPostingsV1Request { + clientId: string; + apiKey: string; + v1ListFBSRatingIndexPostingsV1Request: V1ListFBSRatingIndexPostingsV1Request; +} +export interface RatingAPIRatingHistoryV1Request { + v1RatingHistoryV1Request: V1RatingHistoryV1Request; +} +export interface RatingAPIRatingSummaryV1Request { + body: object; +} +/** + * + */ +export declare class SellerRating extends runtime.BaseAPI { + /** + * Получить индекс ошибок FBS и rFBS + */ + ratingAPIGetFBSRatingIndexInfoV1Raw(requestParameters: RatingAPIGetFBSRatingIndexInfoV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить индекс ошибок FBS и rFBS + */ + ratingAPIGetFBSRatingIndexInfoV1(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список отправлений, которые повлияли на индекс ошибок FBS и rFBS + */ + ratingAPIListFBSRatingIndexPostingsV1Raw(requestParameters: RatingAPIListFBSRatingIndexPostingsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список отправлений, которые повлияли на индекс ошибок FBS и rFBS + */ + ratingAPIListFBSRatingIndexPostingsV1(clientId: string, apiKey: string, v1ListFBSRatingIndexPostingsV1Request: V1ListFBSRatingIndexPostingsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о рейтингах за заданный период и с фильтром по нужному рейтингу. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о рейтингах продавца за период + */ + ratingAPIRatingHistoryV1Raw(requestParameters: RatingAPIRatingHistoryV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о рейтингах за заданный период и с фильтром по нужному рейтингу. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о рейтингах продавца за период + */ + ratingAPIRatingHistoryV1(v1RatingHistoryV1Request: V1RatingHistoryV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Рейтинг продавца по следующим показателям: индекс цен, доставки вовремя, процент отмен, жалобы и другие. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о текущих рейтингах продавца + */ + ratingAPIRatingSummaryV1Raw(requestParameters: RatingAPIRatingSummaryV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Рейтинг продавца по следующим показателям: индекс цен, доставки вовремя, процент отмен, жалобы и другие. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о текущих рейтингах продавца + */ + ratingAPIRatingSummaryV1(body: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/SellerRating.js b/dist/apis/SellerRating.js new file mode 100644 index 0000000..76819ea --- /dev/null +++ b/dist/apis/SellerRating.js @@ -0,0 +1,176 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerRating = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class SellerRating extends runtime.BaseAPI { + /** + * Получить индекс ошибок FBS и rFBS + */ + ratingAPIGetFBSRatingIndexInfoV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling ratingAPIGetFBSRatingIndexInfoV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling ratingAPIGetFBSRatingIndexInfoV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/rating/index/fbs/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetFBSRatingIndexInfoV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить индекс ошибок FBS и rFBS + */ + ratingAPIGetFBSRatingIndexInfoV1(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.ratingAPIGetFBSRatingIndexInfoV1Raw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Список отправлений, которые повлияли на индекс ошибок FBS и rFBS + */ + ratingAPIListFBSRatingIndexPostingsV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling ratingAPIListFBSRatingIndexPostingsV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling ratingAPIListFBSRatingIndexPostingsV1().'); + } + if (requestParameters['v1ListFBSRatingIndexPostingsV1Request'] == null) { + throw new runtime.RequiredError('v1ListFBSRatingIndexPostingsV1Request', 'Required parameter "v1ListFBSRatingIndexPostingsV1Request" was null or undefined when calling ratingAPIListFBSRatingIndexPostingsV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/rating/index/fbs/posting/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ListFBSRatingIndexPostingsV1RequestToJSON)(requestParameters['v1ListFBSRatingIndexPostingsV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ListFBSRatingIndexPostingsV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Список отправлений, которые повлияли на индекс ошибок FBS и rFBS + */ + ratingAPIListFBSRatingIndexPostingsV1(clientId, apiKey, v1ListFBSRatingIndexPostingsV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.ratingAPIListFBSRatingIndexPostingsV1Raw({ clientId: clientId, apiKey: apiKey, v1ListFBSRatingIndexPostingsV1Request: v1ListFBSRatingIndexPostingsV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о рейтингах за заданный период и с фильтром по нужному рейтингу. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о рейтингах продавца за период + */ + ratingAPIRatingHistoryV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1RatingHistoryV1Request'] == null) { + throw new runtime.RequiredError('v1RatingHistoryV1Request', 'Required parameter "v1RatingHistoryV1Request" was null or undefined when calling ratingAPIRatingHistoryV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/rating/history`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1RatingHistoryV1RequestToJSON)(requestParameters['v1RatingHistoryV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1RatingHistoryV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Информация о рейтингах за заданный период и с фильтром по нужному рейтингу. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о рейтингах продавца за период + */ + ratingAPIRatingHistoryV1(v1RatingHistoryV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.ratingAPIRatingHistoryV1Raw({ v1RatingHistoryV1Request: v1RatingHistoryV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Рейтинг продавца по следующим показателям: индекс цен, доставки вовремя, процент отмен, жалобы и другие. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о текущих рейтингах продавца + */ + ratingAPIRatingSummaryV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['body'] == null) { + throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling ratingAPIRatingSummaryV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/rating/summary`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1RatingSummaryV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Рейтинг продавца по следующим показателям: индекс цен, доставки вовремя, процент отмен, жалобы и другие. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о текущих рейтингах продавца + */ + ratingAPIRatingSummaryV1(body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.ratingAPIRatingSummaryV1Raw({ body: body }, initOverrides); + return yield response.value(); + }); + } +} +exports.SellerRating = SellerRating; diff --git a/dist/apis/SupplierAPI.d.ts b/dist/apis/SupplierAPI.d.ts new file mode 100644 index 0000000..729b9a1 --- /dev/null +++ b/dist/apis/SupplierAPI.d.ts @@ -0,0 +1,66 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1InvoiceDeleteRequest, V1InvoiceDeleteResponse, V1InvoiceFileUploadRequest, V1InvoiceFileUploadResponse, V1InvoiceGetRequest, V2InvoiceCreateOrUpdateV2Request, V2InvoiceCreateOrUpdateV2Response, V2InvoiceGetV2Response } from '../models/index'; +export interface InvoiceAPIInvoiceCreateOrUpdateV2Request { + v2InvoiceCreateOrUpdateV2Request: V2InvoiceCreateOrUpdateV2Request; +} +export interface InvoiceDeleteRequest { + v1InvoiceDeleteRequest: V1InvoiceDeleteRequest; +} +export interface InvoiceGetV2Request { + v1InvoiceGetRequest: V1InvoiceGetRequest; +} +export interface InvoiceUploadRequest { + v1InvoiceFileUploadRequest: V1InvoiceFileUploadRequest; +} +/** + * + */ +export declare class SupplierAPI extends runtime.BaseAPI { + /** + * Создание или изменение таможенного счёта-фактуры для возврата НДС продавцам из Турции. Вы можете создать счёт-фактуру только для отправлений в статусах `awaiting_approve` или `awaiting_packaging`. + * Создать или изменить счёт-фактуру + */ + invoiceAPIInvoiceCreateOrUpdateV2Raw(requestParameters: InvoiceAPIInvoiceCreateOrUpdateV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Создание или изменение таможенного счёта-фактуры для возврата НДС продавцам из Турции. Вы можете создать счёт-фактуру только для отправлений в статусах `awaiting_approve` или `awaiting_packaging`. + * Создать или изменить счёт-фактуру + */ + invoiceAPIInvoiceCreateOrUpdateV2(v2InvoiceCreateOrUpdateV2Request: V2InvoiceCreateOrUpdateV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить ссылку на счёт-фактуру + */ + invoiceDeleteRaw(requestParameters: InvoiceDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить ссылку на счёт-фактуру + */ + invoiceDelete(v1InvoiceDeleteRequest: V1InvoiceDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о счёте-фактуре + */ + invoiceGetV2Raw(requestParameters: InvoiceGetV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о счёте-фактуре + */ + invoiceGetV2(v1InvoiceGetRequest: V1InvoiceGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступные форматы: JPEG и PDF. Максимальный размер файла: 10 МБ. + * Загрузка счёта-фактуры + */ + invoiceUploadRaw(requestParameters: InvoiceUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступные форматы: JPEG и PDF. Максимальный размер файла: 10 МБ. + * Загрузка счёта-фактуры + */ + invoiceUpload(v1InvoiceFileUploadRequest: V1InvoiceFileUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/SupplierAPI.js b/dist/apis/SupplierAPI.js new file mode 100644 index 0000000..5311f2c --- /dev/null +++ b/dist/apis/SupplierAPI.js @@ -0,0 +1,157 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplierAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class SupplierAPI extends runtime.BaseAPI { + /** + * Создание или изменение таможенного счёта-фактуры для возврата НДС продавцам из Турции. Вы можете создать счёт-фактуру только для отправлений в статусах `awaiting_approve` или `awaiting_packaging`. + * Создать или изменить счёт-фактуру + */ + invoiceAPIInvoiceCreateOrUpdateV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2InvoiceCreateOrUpdateV2Request'] == null) { + throw new runtime.RequiredError('v2InvoiceCreateOrUpdateV2Request', 'Required parameter "v2InvoiceCreateOrUpdateV2Request" was null or undefined when calling invoiceAPIInvoiceCreateOrUpdateV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/invoice/create-or-update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2InvoiceCreateOrUpdateV2RequestToJSON)(requestParameters['v2InvoiceCreateOrUpdateV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2InvoiceCreateOrUpdateV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Создание или изменение таможенного счёта-фактуры для возврата НДС продавцам из Турции. Вы можете создать счёт-фактуру только для отправлений в статусах `awaiting_approve` или `awaiting_packaging`. + * Создать или изменить счёт-фактуру + */ + invoiceAPIInvoiceCreateOrUpdateV2(v2InvoiceCreateOrUpdateV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.invoiceAPIInvoiceCreateOrUpdateV2Raw({ v2InvoiceCreateOrUpdateV2Request: v2InvoiceCreateOrUpdateV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить ссылку на счёт-фактуру + */ + invoiceDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1InvoiceDeleteRequest'] == null) { + throw new runtime.RequiredError('v1InvoiceDeleteRequest', 'Required parameter "v1InvoiceDeleteRequest" was null or undefined when calling invoiceDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/invoice/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1InvoiceDeleteRequestToJSON)(requestParameters['v1InvoiceDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1InvoiceDeleteResponseFromJSON)(jsonValue)); + }); + } + /** + * Удалить ссылку на счёт-фактуру + */ + invoiceDelete(v1InvoiceDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.invoiceDeleteRaw({ v1InvoiceDeleteRequest: v1InvoiceDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о счёте-фактуре + */ + invoiceGetV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1InvoiceGetRequest'] == null) { + throw new runtime.RequiredError('v1InvoiceGetRequest', 'Required parameter "v1InvoiceGetRequest" was null or undefined when calling invoiceGetV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/invoice/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1InvoiceGetRequestToJSON)(requestParameters['v1InvoiceGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2InvoiceGetV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить информацию о счёте-фактуре + */ + invoiceGetV2(v1InvoiceGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.invoiceGetV2Raw({ v1InvoiceGetRequest: v1InvoiceGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступные форматы: JPEG и PDF. Максимальный размер файла: 10 МБ. + * Загрузка счёта-фактуры + */ + invoiceUploadRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1InvoiceFileUploadRequest'] == null) { + throw new runtime.RequiredError('v1InvoiceFileUploadRequest', 'Required parameter "v1InvoiceFileUploadRequest" was null or undefined when calling invoiceUpload().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/invoice/file/upload`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1InvoiceFileUploadRequestToJSON)(requestParameters['v1InvoiceFileUploadRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1InvoiceFileUploadResponseFromJSON)(jsonValue)); + }); + } + /** + * Доступные форматы: JPEG и PDF. Максимальный размер файла: 10 МБ. + * Загрузка счёта-фактуры + */ + invoiceUpload(v1InvoiceFileUploadRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.invoiceUploadRaw({ v1InvoiceFileUploadRequest: v1InvoiceFileUploadRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.SupplierAPI = SupplierAPI; diff --git a/dist/apis/SupplyOrderAPI.d.ts b/dist/apis/SupplyOrderAPI.d.ts new file mode 100644 index 0000000..c7aaf16 --- /dev/null +++ b/dist/apis/SupplyOrderAPI.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { SupplyOrderV1SupplyOrderActAcceptRequest, SupplyOrderV1SupplyOrderActAcceptResponse, SupplyOrderV1SupplyOrderActAcceptStatusRequest, SupplyOrderV1SupplyOrderActAcceptStatusResponse, SupplyOrderV1SupplyOrderActProductGetRequest, SupplyOrderV1SupplyOrderActProductGetResponse, SupplyOrderV1SupplyOrderActSummaryGetRequest, SupplyOrderV1SupplyOrderActSummaryGetResponse } from '../models/index'; +export interface SupplyOrderActAcceptRequest { + clientId: string; + apiKey: string; + supplyOrderV1SupplyOrderActAcceptRequest?: SupplyOrderV1SupplyOrderActAcceptRequest; +} +export interface SupplyOrderActAcceptStatusRequest { + clientId: string; + apiKey: string; + supplyOrderV1SupplyOrderActAcceptStatusRequest?: SupplyOrderV1SupplyOrderActAcceptStatusRequest; +} +export interface SupplyOrderActProductGetRequest { + clientId: string; + apiKey: string; + supplyOrderV1SupplyOrderActProductGetRequest?: SupplyOrderV1SupplyOrderActProductGetRequest; +} +export interface SupplyOrderActSummaryGetRequest { + clientId: string; + apiKey: string; + supplyOrderV1SupplyOrderActSummaryGetRequest?: SupplyOrderV1SupplyOrderActSummaryGetRequest; +} +/** + * + */ +export declare class SupplyOrderAPI extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Согласовать акт + */ + supplyOrderActAcceptRaw(requestParameters: SupplyOrderActAcceptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Согласовать акт + */ + supplyOrderActAccept(clientId: string, apiKey: string, supplyOrderV1SupplyOrderActAcceptRequest?: SupplyOrderV1SupplyOrderActAcceptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить статус согласования акта + */ + supplyOrderActAcceptStatusRaw(requestParameters: SupplyOrderActAcceptStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить статус согласования акта + */ + supplyOrderActAcceptStatus(clientId: string, apiKey: string, supplyOrderV1SupplyOrderActAcceptStatusRequest?: SupplyOrderV1SupplyOrderActAcceptStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о товарах в акте + */ + supplyOrderActProductGetRaw(requestParameters: SupplyOrderActProductGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о товарах в акте + */ + supplyOrderActProductGet(clientId: string, apiKey: string, supplyOrderV1SupplyOrderActProductGetRequest?: SupplyOrderV1SupplyOrderActProductGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию об акте + */ + supplyOrderActSummaryGetRaw(requestParameters: SupplyOrderActSummaryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию об акте + */ + supplyOrderActSummaryGet(clientId: string, apiKey: string, supplyOrderV1SupplyOrderActSummaryGetRequest?: SupplyOrderV1SupplyOrderActSummaryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/SupplyOrderAPI.js b/dist/apis/SupplyOrderAPI.js new file mode 100644 index 0000000..01de953 --- /dev/null +++ b/dist/apis/SupplyOrderAPI.js @@ -0,0 +1,197 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class SupplyOrderAPI extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Согласовать акт + */ + supplyOrderActAcceptRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderActAccept().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderActAccept().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/act/accept`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SupplyOrderV1SupplyOrderActAcceptRequestToJSON)(requestParameters['supplyOrderV1SupplyOrderActAcceptRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupplyOrderV1SupplyOrderActAcceptResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Согласовать акт + */ + supplyOrderActAccept(clientId, apiKey, supplyOrderV1SupplyOrderActAcceptRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderActAcceptRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV1SupplyOrderActAcceptRequest: supplyOrderV1SupplyOrderActAcceptRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить статус согласования акта + */ + supplyOrderActAcceptStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderActAcceptStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderActAcceptStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/act/accept/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON)(requestParameters['supplyOrderV1SupplyOrderActAcceptStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить статус согласования акта + */ + supplyOrderActAcceptStatus(clientId, apiKey, supplyOrderV1SupplyOrderActAcceptStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderActAcceptStatusRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV1SupplyOrderActAcceptStatusRequest: supplyOrderV1SupplyOrderActAcceptStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о товарах в акте + */ + supplyOrderActProductGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderActProductGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderActProductGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/act/product/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SupplyOrderV1SupplyOrderActProductGetRequestToJSON)(requestParameters['supplyOrderV1SupplyOrderActProductGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupplyOrderV1SupplyOrderActProductGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о товарах в акте + */ + supplyOrderActProductGet(clientId, apiKey, supplyOrderV1SupplyOrderActProductGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderActProductGetRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV1SupplyOrderActProductGetRequest: supplyOrderV1SupplyOrderActProductGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию об акте + */ + supplyOrderActSummaryGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderActSummaryGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderActSummaryGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/act/summary/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON)(requestParameters['supplyOrderV1SupplyOrderActSummaryGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию об акте + */ + supplyOrderActSummaryGet(clientId, apiKey, supplyOrderV1SupplyOrderActSummaryGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderActSummaryGetRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV1SupplyOrderActSummaryGetRequest: supplyOrderV1SupplyOrderActSummaryGetRequest }, initOverrides); + return yield response.value(); + }); + } +} +exports.SupplyOrderAPI = SupplyOrderAPI; diff --git a/dist/apis/WarehouseAPI.d.ts b/dist/apis/WarehouseAPI.d.ts new file mode 100644 index 0000000..719b430 --- /dev/null +++ b/dist/apis/WarehouseAPI.d.ts @@ -0,0 +1,155 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1ArchiveWarehouseFBSRequest, V1ArchiveWarehouseFBSResponse, V1GetDeliveryMethodReturnSettingsV1Request, V1GetDeliveryMethodReturnSettingsV1Response, V1GetWarehouseFBSOperationStatusRequest, V1GetWarehouseFBSOperationStatusResponse, V1UnarchiveWarehouseFBSRequest, V1UnarchiveWarehouseFBSResponse, V1WarehouseInvalidProductsGetRequest, V1WarehouseInvalidProductsGetResponse, V1WarehouseListRequest, V1WarehouseWithInvalidProductsResponse, V2DeliveryMethodListV2Request, V2DeliveryMethodListV2Response, V2WarehouseListV2Request, V2WarehouseListV2Response, WarehouseDeliveryMethodListRequest, WarehouseDeliveryMethodListResponse, WarehouseWarehouseListResponse } from '../models/index'; +export interface ArchiveWarehouseFBSRequest { + clientId: string; + apiKey: string; + v1ArchiveWarehouseFBSRequest?: V1ArchiveWarehouseFBSRequest; +} +export interface GetDeliveryMethodReturnSettingsV1Request { + clientId: string; + apiKey: string; + v1GetDeliveryMethodReturnSettingsV1Request?: V1GetDeliveryMethodReturnSettingsV1Request; +} +export interface GetWarehouseFBSOperationStatusRequest { + clientId: string; + apiKey: string; + v1GetWarehouseFBSOperationStatusRequest?: V1GetWarehouseFBSOperationStatusRequest; +} +export interface UnarchiveWarehouseFBSRequest { + clientId: string; + apiKey: string; + v1UnarchiveWarehouseFBSRequest?: V1UnarchiveWarehouseFBSRequest; +} +export interface WarehouseAPIDeliveryMethodListRequest { + clientId: string; + apiKey: string; + warehouseDeliveryMethodListRequest: WarehouseDeliveryMethodListRequest; +} +export interface WarehouseAPIDeliveryMethodListV2Request { + clientId: string; + apiKey: string; + v2DeliveryMethodListV2Request: V2DeliveryMethodListV2Request; +} +export interface WarehouseAPIWarehouseListRequest { + clientId: string; + apiKey: string; + v1WarehouseListRequest: V1WarehouseListRequest; +} +export interface WarehouseInvalidProductsGetRequest { + clientId: string; + apiKey: string; + v1WarehouseInvalidProductsGetRequest?: V1WarehouseInvalidProductsGetRequest; +} +export interface WarehouseListV2Request { + clientId: string; + apiKey: string; + v2WarehouseListV2Request?: V2WarehouseListV2Request; +} +export interface WarehouseWithInvalidProductsRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class WarehouseAPI extends runtime.BaseAPI { + /** + * Перенести склад в архив + */ + archiveWarehouseFBSRaw(requestParameters: ArchiveWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перенести склад в архив + */ + archiveWarehouseFBS(clientId: string, apiKey: string, v1ArchiveWarehouseFBSRequest?: V1ArchiveWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию по возвратным настройкам rFBS и rFBS Express + */ + getDeliveryMethodReturnSettingsV1Raw(requestParameters: GetDeliveryMethodReturnSettingsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию по возвратным настройкам rFBS и rFBS Express + */ + getDeliveryMethodReturnSettingsV1(clientId: string, apiKey: string, v1GetDeliveryMethodReturnSettingsV1Request?: V1GetDeliveryMethodReturnSettingsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить статус операции + */ + getWarehouseFBSOperationStatusRaw(requestParameters: GetWarehouseFBSOperationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус операции + */ + getWarehouseFBSOperationStatus(clientId: string, apiKey: string, v1GetWarehouseFBSOperationStatusRequest?: V1GetWarehouseFBSOperationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Перенести склад из архива + */ + unarchiveWarehouseFBSRaw(requestParameters: UnarchiveWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перенести склад из архива + */ + unarchiveWarehouseFBS(clientId: string, apiKey: string, v1UnarchiveWarehouseFBSRequest?: V1UnarchiveWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Список методов доставки склада + */ + warehouseAPIDeliveryMethodListRaw(requestParameters: WarehouseAPIDeliveryMethodListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Список методов доставки склада + */ + warehouseAPIDeliveryMethodList(clientId: string, apiKey: string, warehouseDeliveryMethodListRequest: WarehouseDeliveryMethodListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список методов доставки realFBS-склада + */ + warehouseAPIDeliveryMethodListV2Raw(requestParameters: WarehouseAPIDeliveryMethodListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список методов доставки realFBS-склада + */ + warehouseAPIDeliveryMethodListV2(clientId: string, apiKey: string, v2DeliveryMethodListV2Request: V2DeliveryMethodListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). Метод можно использовать 1 раз в минуту. + * Список складов + */ + warehouseAPIWarehouseListRaw(requestParameters: WarehouseAPIWarehouseListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). Метод можно использовать 1 раз в минуту. + * Список складов + */ + warehouseAPIWarehouseList(clientId: string, apiKey: string, v1WarehouseListRequest: V1WarehouseListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список товаров с ограничениями по доставке + */ + warehouseInvalidProductsGetRaw(requestParameters: WarehouseInvalidProductsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список товаров с ограничениями по доставке + */ + warehouseInvalidProductsGet(clientId: string, apiKey: string, v1WarehouseInvalidProductsGetRequest?: V1WarehouseInvalidProductsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/warehouse/fbo/list](#operation/SupplyDraftAPI_DraftGetWarehouseFboList). + * Список складов + */ + warehouseListV2Raw(requestParameters: WarehouseListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/warehouse/fbo/list](#operation/SupplyDraftAPI_DraftGetWarehouseFboList). + * Список складов + */ + warehouseListV2(clientId: string, apiKey: string, v2WarehouseListV2Request?: V2WarehouseListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает идентификаторы складов, на которых находятся товары с ограничениями. Такие товары недоступны для доставки со склада. + * Получить список складов с ограниченными для доставки товарами + */ + warehouseWithInvalidProductsRaw(requestParameters: WarehouseWithInvalidProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает идентификаторы складов, на которых находятся товары с ограничениями. Такие товары недоступны для доставки со склада. + * Получить список складов с ограниченными для доставки товарами + */ + warehouseWithInvalidProducts(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/apis/WarehouseAPI.js b/dist/apis/WarehouseAPI.js new file mode 100644 index 0000000..8bf88ac --- /dev/null +++ b/dist/apis/WarehouseAPI.js @@ -0,0 +1,438 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WarehouseAPI = void 0; +const runtime = require("../runtime"); +const index_1 = require("../models/index"); +/** + * + */ +class WarehouseAPI extends runtime.BaseAPI { + /** + * Перенести склад в архив + */ + archiveWarehouseFBSRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling archiveWarehouseFBS().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling archiveWarehouseFBS().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/archive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1ArchiveWarehouseFBSRequestToJSON)(requestParameters['v1ArchiveWarehouseFBSRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1ArchiveWarehouseFBSResponseFromJSON)(jsonValue)); + }); + } + /** + * Перенести склад в архив + */ + archiveWarehouseFBS(clientId, apiKey, v1ArchiveWarehouseFBSRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.archiveWarehouseFBSRaw({ clientId: clientId, apiKey: apiKey, v1ArchiveWarehouseFBSRequest: v1ArchiveWarehouseFBSRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию по возвратным настройкам rFBS и rFBS Express + */ + getDeliveryMethodReturnSettingsV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getDeliveryMethodReturnSettingsV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getDeliveryMethodReturnSettingsV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/delivery-method/return/settings/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetDeliveryMethodReturnSettingsV1RequestToJSON)(requestParameters['v1GetDeliveryMethodReturnSettingsV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить информацию по возвратным настройкам rFBS и rFBS Express + */ + getDeliveryMethodReturnSettingsV1(clientId, apiKey, v1GetDeliveryMethodReturnSettingsV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getDeliveryMethodReturnSettingsV1Raw({ clientId: clientId, apiKey: apiKey, v1GetDeliveryMethodReturnSettingsV1Request: v1GetDeliveryMethodReturnSettingsV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить статус операции + */ + getWarehouseFBSOperationStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getWarehouseFBSOperationStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getWarehouseFBSOperationStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/operation/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1GetWarehouseFBSOperationStatusRequestToJSON)(requestParameters['v1GetWarehouseFBSOperationStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1GetWarehouseFBSOperationStatusResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить статус операции + */ + getWarehouseFBSOperationStatus(clientId, apiKey, v1GetWarehouseFBSOperationStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getWarehouseFBSOperationStatusRaw({ clientId: clientId, apiKey: apiKey, v1GetWarehouseFBSOperationStatusRequest: v1GetWarehouseFBSOperationStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Перенести склад из архива + */ + unarchiveWarehouseFBSRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling unarchiveWarehouseFBS().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling unarchiveWarehouseFBS().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/unarchive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1UnarchiveWarehouseFBSRequestToJSON)(requestParameters['v1UnarchiveWarehouseFBSRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1UnarchiveWarehouseFBSResponseFromJSON)(jsonValue)); + }); + } + /** + * Перенести склад из архива + */ + unarchiveWarehouseFBS(clientId, apiKey, v1UnarchiveWarehouseFBSRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unarchiveWarehouseFBSRaw({ clientId: clientId, apiKey: apiKey, v1UnarchiveWarehouseFBSRequest: v1UnarchiveWarehouseFBSRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Список методов доставки склада + */ + warehouseAPIDeliveryMethodListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseAPIDeliveryMethodList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseAPIDeliveryMethodList().'); + } + if (requestParameters['warehouseDeliveryMethodListRequest'] == null) { + throw new runtime.RequiredError('warehouseDeliveryMethodListRequest', 'Required parameter "warehouseDeliveryMethodListRequest" was null or undefined when calling warehouseAPIDeliveryMethodList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/delivery-method/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.WarehouseDeliveryMethodListRequestToJSON)(requestParameters['warehouseDeliveryMethodListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WarehouseDeliveryMethodListResponseFromJSON)(jsonValue)); + }); + } + /** + * + * Список методов доставки склада + */ + warehouseAPIDeliveryMethodList(clientId, apiKey, warehouseDeliveryMethodListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIDeliveryMethodListRaw({ clientId: clientId, apiKey: apiKey, warehouseDeliveryMethodListRequest: warehouseDeliveryMethodListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список методов доставки realFBS-склада + */ + warehouseAPIDeliveryMethodListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseAPIDeliveryMethodListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseAPIDeliveryMethodListV2().'); + } + if (requestParameters['v2DeliveryMethodListV2Request'] == null) { + throw new runtime.RequiredError('v2DeliveryMethodListV2Request', 'Required parameter "v2DeliveryMethodListV2Request" was null or undefined when calling warehouseAPIDeliveryMethodListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/delivery-method/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2DeliveryMethodListV2RequestToJSON)(requestParameters['v2DeliveryMethodListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2DeliveryMethodListV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Список методов доставки realFBS-склада + */ + warehouseAPIDeliveryMethodListV2(clientId, apiKey, v2DeliveryMethodListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIDeliveryMethodListV2Raw({ clientId: clientId, apiKey: apiKey, v2DeliveryMethodListV2Request: v2DeliveryMethodListV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). Метод можно использовать 1 раз в минуту. + * Список складов + */ + warehouseAPIWarehouseListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseAPIWarehouseList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseAPIWarehouseList().'); + } + if (requestParameters['v1WarehouseListRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseListRequest', 'Required parameter "v1WarehouseListRequest" was null or undefined when calling warehouseAPIWarehouseList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseListRequestToJSON)(requestParameters['v1WarehouseListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WarehouseWarehouseListResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). Метод можно использовать 1 раз в минуту. + * Список складов + */ + warehouseAPIWarehouseList(clientId, apiKey, v1WarehouseListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIWarehouseListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseListRequest: v1WarehouseListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список товаров с ограничениями по доставке + */ + warehouseInvalidProductsGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseInvalidProductsGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseInvalidProductsGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/invalid-products/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V1WarehouseInvalidProductsGetRequestToJSON)(requestParameters['v1WarehouseInvalidProductsGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseInvalidProductsGetResponseFromJSON)(jsonValue)); + }); + } + /** + * Получить список товаров с ограничениями по доставке + */ + warehouseInvalidProductsGet(clientId, apiKey, v1WarehouseInvalidProductsGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseInvalidProductsGetRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseInvalidProductsGetRequest: v1WarehouseInvalidProductsGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/warehouse/fbo/list](#operation/SupplyDraftAPI_DraftGetWarehouseFboList). + * Список складов + */ + warehouseListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/warehouse/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.V2WarehouseListV2RequestToJSON)(requestParameters['v2WarehouseListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V2WarehouseListV2ResponseFromJSON)(jsonValue)); + }); + } + /** + * Метод возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/warehouse/fbo/list](#operation/SupplyDraftAPI_DraftGetWarehouseFboList). + * Список складов + */ + warehouseListV2(clientId, apiKey, v2WarehouseListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseListV2Raw({ clientId: clientId, apiKey: apiKey, v2WarehouseListV2Request: v2WarehouseListV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает идентификаторы складов, на которых находятся товары с ограничениями. Такие товары недоступны для доставки со склада. + * Получить список складов с ограниченными для доставки товарами + */ + warehouseWithInvalidProductsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseWithInvalidProducts().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseWithInvalidProducts().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/warehouses-with-invalid-products`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.V1WarehouseWithInvalidProductsResponseFromJSON)(jsonValue)); + }); + } + /** + * Возвращает идентификаторы складов, на которых находятся товары с ограничениями. Такие товары недоступны для доставки со склада. + * Получить список складов с ограниченными для доставки товарами + */ + warehouseWithInvalidProducts(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseWithInvalidProductsRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} +exports.WarehouseAPI = WarehouseAPI; diff --git a/dist/apis/index.d.ts b/dist/apis/index.d.ts new file mode 100644 index 0000000..a2311ef --- /dev/null +++ b/dist/apis/index.d.ts @@ -0,0 +1,57 @@ +export * from './APIkey'; +export * from './AnalyticsAPI'; +export * from './BarcodeAPI'; +export * from './BetaMethod'; +export * from './BrandAPI'; +export * from './CancelReasonAPI'; +export * from './CancellationAPI'; +export * from './CarriageAPI'; +export * from './CategoryAPI'; +export * from './CertificationAPI'; +export * from './ChatAPI'; +export * from './DeliveryAPI'; +export * from './DeliveryFBP'; +export * from './DeliveryFBPDraft'; +export * from './DeliveryFBS'; +export * from './DeliveryrFBS'; +export * from './Digital'; +export * from './DraftDirectFBP'; +export * from './DraftDropOffFBP'; +export * from './DraftPickupFBP'; +export * from './FBO'; +export * from './FBOTransport'; +export * from './FBOWarehouse'; +export * from './FBS'; +export * from './FBSWarehouseSetup'; +export * from './FBSrFBSMarks'; +export * from './FboPostingAPI'; +export * from './FboSupplyRequest'; +export * from './FinanceAPI'; +export * from './Notification'; +export * from './OrderAPI'; +export * from './OrderDirectFBP'; +export * from './OrderDropOffFBP'; +export * from './OrderPickupFBP'; +export * from './Pass'; +export * from './PolygonAPI'; +export * from './Premium'; +export * from './PricesStocksAPI'; +export * from './PricingStrategyAPI'; +export * from './ProductAPI'; +export * from './Promos'; +export * from './PromosBeta'; +export * from './Quants'; +export * from './QuestionsAnswers'; +export * from './RFBSReturnsAPI'; +export * from './RFBSWarehouseSetup'; +export * from './Receipt'; +export * from './ReportAPI'; +export * from './ReturnAPI'; +export * from './ReturnsAPI'; +export * from './ReviewAPI'; +export * from './SellerActions'; +export * from './SellerInfo'; +export * from './SellerRating'; +export * from './SupplierAPI'; +export * from './SupplyOrderAPI'; +export * from './WarehouseAPI'; diff --git a/dist/apis/index.js b/dist/apis/index.js new file mode 100644 index 0000000..8635d55 --- /dev/null +++ b/dist/apis/index.js @@ -0,0 +1,75 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +/* tslint:disable */ +/* eslint-disable */ +__exportStar(require("./APIkey"), exports); +__exportStar(require("./AnalyticsAPI"), exports); +__exportStar(require("./BarcodeAPI"), exports); +__exportStar(require("./BetaMethod"), exports); +__exportStar(require("./BrandAPI"), exports); +__exportStar(require("./CancelReasonAPI"), exports); +__exportStar(require("./CancellationAPI"), exports); +__exportStar(require("./CarriageAPI"), exports); +__exportStar(require("./CategoryAPI"), exports); +__exportStar(require("./CertificationAPI"), exports); +__exportStar(require("./ChatAPI"), exports); +__exportStar(require("./DeliveryAPI"), exports); +__exportStar(require("./DeliveryFBP"), exports); +__exportStar(require("./DeliveryFBPDraft"), exports); +__exportStar(require("./DeliveryFBS"), exports); +__exportStar(require("./DeliveryrFBS"), exports); +__exportStar(require("./Digital"), exports); +__exportStar(require("./DraftDirectFBP"), exports); +__exportStar(require("./DraftDropOffFBP"), exports); +__exportStar(require("./DraftPickupFBP"), exports); +__exportStar(require("./FBO"), exports); +__exportStar(require("./FBOTransport"), exports); +__exportStar(require("./FBOWarehouse"), exports); +__exportStar(require("./FBS"), exports); +__exportStar(require("./FBSWarehouseSetup"), exports); +__exportStar(require("./FBSrFBSMarks"), exports); +__exportStar(require("./FboPostingAPI"), exports); +__exportStar(require("./FboSupplyRequest"), exports); +__exportStar(require("./FinanceAPI"), exports); +__exportStar(require("./Notification"), exports); +__exportStar(require("./OrderAPI"), exports); +__exportStar(require("./OrderDirectFBP"), exports); +__exportStar(require("./OrderDropOffFBP"), exports); +__exportStar(require("./OrderPickupFBP"), exports); +__exportStar(require("./Pass"), exports); +__exportStar(require("./PolygonAPI"), exports); +__exportStar(require("./Premium"), exports); +__exportStar(require("./PricesStocksAPI"), exports); +__exportStar(require("./PricingStrategyAPI"), exports); +__exportStar(require("./ProductAPI"), exports); +__exportStar(require("./Promos"), exports); +__exportStar(require("./PromosBeta"), exports); +__exportStar(require("./Quants"), exports); +__exportStar(require("./QuestionsAnswers"), exports); +__exportStar(require("./RFBSReturnsAPI"), exports); +__exportStar(require("./RFBSWarehouseSetup"), exports); +__exportStar(require("./Receipt"), exports); +__exportStar(require("./ReportAPI"), exports); +__exportStar(require("./ReturnAPI"), exports); +__exportStar(require("./ReturnsAPI"), exports); +__exportStar(require("./ReviewAPI"), exports); +__exportStar(require("./SellerActions"), exports); +__exportStar(require("./SellerInfo"), exports); +__exportStar(require("./SellerRating"), exports); +__exportStar(require("./SupplierAPI"), exports); +__exportStar(require("./SupplyOrderAPI"), exports); +__exportStar(require("./WarehouseAPI"), exports); diff --git a/dist/esm/apis/APIkey.d.ts b/dist/esm/apis/APIkey.d.ts new file mode 100644 index 0000000..c1e8968 --- /dev/null +++ b/dist/esm/apis/APIkey.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1RolesByTokenResponse } from '../models/index'; +export interface AccessAPIRolesByTokenRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class APIkey extends runtime.BaseAPI { + /** + * Метод для получения информации и ролях и методах, привязанных к API-ключу. + * Получить список ролей и методов по API-ключу + */ + accessAPIRolesByTokenRaw(requestParameters: AccessAPIRolesByTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации и ролях и методах, привязанных к API-ключу. + * Получить список ролей и методов по API-ключу + */ + accessAPIRolesByToken(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/APIkey.js b/dist/esm/apis/APIkey.js new file mode 100644 index 0000000..5426840 --- /dev/null +++ b/dist/esm/apis/APIkey.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1RolesByTokenResponseFromJSON, } from '../models/index'; +/** + * + */ +export class APIkey extends runtime.BaseAPI { + /** + * Метод для получения информации и ролях и методах, привязанных к API-ключу. + * Получить список ролей и методов по API-ключу + */ + accessAPIRolesByTokenRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling accessAPIRolesByToken().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling accessAPIRolesByToken().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/roles`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1RolesByTokenResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения информации и ролях и методах, привязанных к API-ключу. + * Получить список ролей и методов по API-ключу + */ + accessAPIRolesByToken(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.accessAPIRolesByTokenRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/AnalyticsAPI.d.ts b/dist/esm/apis/AnalyticsAPI.d.ts new file mode 100644 index 0000000..b7e86c7 --- /dev/null +++ b/dist/esm/apis/AnalyticsAPI.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { AnalyticsStockOnWarehouseRequest, AnalyticsStockOnWarehouseResponse, V1AnalyticsStocksRequest, V1AnalyticsStocksResponse, V1AnalyticsTurnoverStocksRequest, V1AnalyticsTurnoverStocksResponse } from '../models/index'; +export interface AnalyticsAPIAnalyticsGetStockOnWarehousesV2Request { + clientId: string; + apiKey: string; + analyticsStockOnWarehouseRequest: AnalyticsStockOnWarehouseRequest; +} +export interface AnalyticsAPIAnalyticsStocksRequest { + clientId: string; + apiKey: string; + v1AnalyticsStocksRequest: V1AnalyticsStocksRequest; +} +export interface AnalyticsAPIStocksTurnoverRequest { + clientId: string; + apiKey: string; + v1AnalyticsTurnoverStocksRequest: V1AnalyticsTurnoverStocksRequest; +} +/** + * + */ +export declare class AnalyticsAPI extends runtime.BaseAPI { + /** + * Метод для получения отчёта по остаткам и товарам в перемещении по складам Ozon. + * Отчёт по остаткам и товарам + */ + analyticsAPIAnalyticsGetStockOnWarehousesV2Raw(requestParameters: AnalyticsAPIAnalyticsGetStockOnWarehousesV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта по остаткам и товарам в перемещении по складам Ozon. + * Отчёт по остаткам и товарам + */ + analyticsAPIAnalyticsGetStockOnWarehousesV2(clientId: string, apiKey: string, analyticsStockOnWarehouseRequest: AnalyticsStockOnWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить аналитику по остаткам товаров на складах. Метод соответствует разделу [**FBO → Управление остатками**](https://seller.ozon.ru/app/fbo-stocks/stocks-management/) в личном кабинете. Аналитика обновляется два раза в день: примерно в 07:00 и 16:00 по UTC. В запросе используйте только одно из полей: `cluster_ids` или `macrolocal_cluster_ids`, иначе вернётся ошибка. + * Получить аналитику по остаткам + */ + analyticsAPIAnalyticsStocksRaw(requestParameters: AnalyticsAPIAnalyticsStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить аналитику по остаткам товаров на складах. Метод соответствует разделу [**FBO → Управление остатками**](https://seller.ozon.ru/app/fbo-stocks/stocks-management/) в личном кабинете. Аналитика обновляется два раза в день: примерно в 07:00 и 16:00 по UTC. В запросе используйте только одно из полей: `cluster_ids` или `macrolocal_cluster_ids`, иначе вернётся ошибка. + * Получить аналитику по остаткам + */ + analyticsAPIAnalyticsStocks(clientId: string, apiKey: string, v1AnalyticsStocksRequest: V1AnalyticsStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы узнать оборачиваемость товара и количество дней, на которое хватит текущего остатка. Метод соответствует разделу [**FBO -> Управление остатками**](https://seller.ozon.ru/app/supply/stocks-management) в личном кабинете. Вы можете делать не больше 1 запроса в минуту по одному кабинету `Client-Id`. Если вы запрашиваете список товаров по `sku`, параметры `limit` и `offset` необязательны. + * Оборачиваемость товара + */ + analyticsAPIStocksTurnoverRaw(requestParameters: AnalyticsAPIStocksTurnoverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы узнать оборачиваемость товара и количество дней, на которое хватит текущего остатка. Метод соответствует разделу [**FBO -> Управление остатками**](https://seller.ozon.ru/app/supply/stocks-management) в личном кабинете. Вы можете делать не больше 1 запроса в минуту по одному кабинету `Client-Id`. Если вы запрашиваете список товаров по `sku`, параметры `limit` и `offset` необязательны. + * Оборачиваемость товара + */ + analyticsAPIStocksTurnover(clientId: string, apiKey: string, v1AnalyticsTurnoverStocksRequest: V1AnalyticsTurnoverStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/AnalyticsAPI.js b/dist/esm/apis/AnalyticsAPI.js new file mode 100644 index 0000000..26fc36e --- /dev/null +++ b/dist/esm/apis/AnalyticsAPI.js @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { AnalyticsStockOnWarehouseRequestToJSON, AnalyticsStockOnWarehouseResponseFromJSON, V1AnalyticsStocksRequestToJSON, V1AnalyticsStocksResponseFromJSON, V1AnalyticsTurnoverStocksRequestToJSON, V1AnalyticsTurnoverStocksResponseFromJSON, } from '../models/index'; +/** + * + */ +export class AnalyticsAPI extends runtime.BaseAPI { + /** + * Метод для получения отчёта по остаткам и товарам в перемещении по складам Ozon. + * Отчёт по остаткам и товарам + */ + analyticsAPIAnalyticsGetStockOnWarehousesV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsGetStockOnWarehousesV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsGetStockOnWarehousesV2().'); + } + if (requestParameters['analyticsStockOnWarehouseRequest'] == null) { + throw new runtime.RequiredError('analyticsStockOnWarehouseRequest', 'Required parameter "analyticsStockOnWarehouseRequest" was null or undefined when calling analyticsAPIAnalyticsGetStockOnWarehousesV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/analytics/stock_on_warehouses`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AnalyticsStockOnWarehouseRequestToJSON(requestParameters['analyticsStockOnWarehouseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => AnalyticsStockOnWarehouseResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения отчёта по остаткам и товарам в перемещении по складам Ozon. + * Отчёт по остаткам и товарам + */ + analyticsAPIAnalyticsGetStockOnWarehousesV2(clientId, apiKey, analyticsStockOnWarehouseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsGetStockOnWarehousesV2Raw({ clientId: clientId, apiKey: apiKey, analyticsStockOnWarehouseRequest: analyticsStockOnWarehouseRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить аналитику по остаткам товаров на складах. Метод соответствует разделу [**FBO → Управление остатками**](https://seller.ozon.ru/app/fbo-stocks/stocks-management/) в личном кабинете. Аналитика обновляется два раза в день: примерно в 07:00 и 16:00 по UTC. В запросе используйте только одно из полей: `cluster_ids` или `macrolocal_cluster_ids`, иначе вернётся ошибка. + * Получить аналитику по остаткам + */ + analyticsAPIAnalyticsStocksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsStocks().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsStocks().'); + } + if (requestParameters['v1AnalyticsStocksRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsStocksRequest', 'Required parameter "v1AnalyticsStocksRequest" was null or undefined when calling analyticsAPIAnalyticsStocks().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AnalyticsStocksRequestToJSON(requestParameters['v1AnalyticsStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AnalyticsStocksResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить аналитику по остаткам товаров на складах. Метод соответствует разделу [**FBO → Управление остатками**](https://seller.ozon.ru/app/fbo-stocks/stocks-management/) в личном кабинете. Аналитика обновляется два раза в день: примерно в 07:00 и 16:00 по UTC. В запросе используйте только одно из полей: `cluster_ids` или `macrolocal_cluster_ids`, иначе вернётся ошибка. + * Получить аналитику по остаткам + */ + analyticsAPIAnalyticsStocks(clientId, apiKey, v1AnalyticsStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsStocksRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsStocksRequest: v1AnalyticsStocksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы узнать оборачиваемость товара и количество дней, на которое хватит текущего остатка. Метод соответствует разделу [**FBO -> Управление остатками**](https://seller.ozon.ru/app/supply/stocks-management) в личном кабинете. Вы можете делать не больше 1 запроса в минуту по одному кабинету `Client-Id`. Если вы запрашиваете список товаров по `sku`, параметры `limit` и `offset` необязательны. + * Оборачиваемость товара + */ + analyticsAPIStocksTurnoverRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIStocksTurnover().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIStocksTurnover().'); + } + if (requestParameters['v1AnalyticsTurnoverStocksRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsTurnoverStocksRequest', 'Required parameter "v1AnalyticsTurnoverStocksRequest" was null or undefined when calling analyticsAPIStocksTurnover().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/turnover/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AnalyticsTurnoverStocksRequestToJSON(requestParameters['v1AnalyticsTurnoverStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AnalyticsTurnoverStocksResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы узнать оборачиваемость товара и количество дней, на которое хватит текущего остатка. Метод соответствует разделу [**FBO -> Управление остатками**](https://seller.ozon.ru/app/supply/stocks-management) в личном кабинете. Вы можете делать не больше 1 запроса в минуту по одному кабинету `Client-Id`. Если вы запрашиваете список товаров по `sku`, параметры `limit` и `offset` необязательны. + * Оборачиваемость товара + */ + analyticsAPIStocksTurnover(clientId, apiKey, v1AnalyticsTurnoverStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIStocksTurnoverRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsTurnoverStocksRequest: v1AnalyticsTurnoverStocksRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/BarcodeAPI.d.ts b/dist/esm/apis/BarcodeAPI.d.ts new file mode 100644 index 0000000..e614132 --- /dev/null +++ b/dist/esm/apis/BarcodeAPI.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1AddBarcodeRequest, V1AddBarcodeResponse, V1GenerateBarcodeRequest, V1GenerateBarcodeResponse } from '../models/index'; +export interface AddBarcodeRequest { + v1AddBarcodeRequest: V1AddBarcodeRequest; +} +export interface GenerateBarcodeRequest { + v1GenerateBarcodeRequest: V1GenerateBarcodeRequest; +} +/** + * + */ +export declare class BarcodeAPI extends runtime.BaseAPI { + /** + * Если у товара есть штрихкод, который не указан в системе Ozon, привяжите его с помощью этого метода. Чтобы сгенерировать штрихкод, используйте метод [/v1/barcode/generate]( #operation/generate-barcode).
[Подробнее о требованиях к штрихкодам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/rabota-so-shtrihkodami#какие-требования-у-штрихкодов) На одном товаре может быть до 100 штрихкодов. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Привязать штрихкод к товару + */ + addBarcodeRaw(requestParameters: AddBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если у товара есть штрихкод, который не указан в системе Ozon, привяжите его с помощью этого метода. Чтобы сгенерировать штрихкод, используйте метод [/v1/barcode/generate]( #operation/generate-barcode).
[Подробнее о требованиях к штрихкодам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/rabota-so-shtrihkodami#какие-требования-у-штрихкодов) На одном товаре может быть до 100 штрихкодов. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Привязать штрихкод к товару + */ + addBarcode(v1AddBarcodeRequest: V1AddBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если у товара нет штрихкода, вы можете создать его с помощью этого метода. Если штрихкод уже есть, но он не указан в системе Ozon, вы можете привязать его через метод [/v1/barcode/add](#operation/add-barcode). За один запрос вы можете создать штрихкоды не больше чем для 100 товаров. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Создать штрихкод для товара + */ + generateBarcodeRaw(requestParameters: GenerateBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если у товара нет штрихкода, вы можете создать его с помощью этого метода. Если штрихкод уже есть, но он не указан в системе Ozon, вы можете привязать его через метод [/v1/barcode/add](#operation/add-barcode). За один запрос вы можете создать штрихкоды не больше чем для 100 товаров. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Создать штрихкод для товара + */ + generateBarcode(v1GenerateBarcodeRequest: V1GenerateBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/BarcodeAPI.js b/dist/esm/apis/BarcodeAPI.js new file mode 100644 index 0000000..903a94d --- /dev/null +++ b/dist/esm/apis/BarcodeAPI.js @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1AddBarcodeRequestToJSON, V1AddBarcodeResponseFromJSON, V1GenerateBarcodeRequestToJSON, V1GenerateBarcodeResponseFromJSON, } from '../models/index'; +/** + * + */ +export class BarcodeAPI extends runtime.BaseAPI { + /** + * Если у товара есть штрихкод, который не указан в системе Ozon, привяжите его с помощью этого метода. Чтобы сгенерировать штрихкод, используйте метод [/v1/barcode/generate]( #operation/generate-barcode).
[Подробнее о требованиях к штрихкодам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/rabota-so-shtrihkodami#какие-требования-у-штрихкодов) На одном товаре может быть до 100 штрихкодов. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Привязать штрихкод к товару + */ + addBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1AddBarcodeRequest'] == null) { + throw new runtime.RequiredError('v1AddBarcodeRequest', 'Required parameter "v1AddBarcodeRequest" was null or undefined when calling addBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/barcode/add`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AddBarcodeRequestToJSON(requestParameters['v1AddBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AddBarcodeResponseFromJSON(jsonValue)); + }); + } + /** + * Если у товара есть штрихкод, который не указан в системе Ozon, привяжите его с помощью этого метода. Чтобы сгенерировать штрихкод, используйте метод [/v1/barcode/generate]( #operation/generate-barcode).
[Подробнее о требованиях к штрихкодам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/rabota-so-shtrihkodami#какие-требования-у-штрихкодов) На одном товаре может быть до 100 штрихкодов. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Привязать штрихкод к товару + */ + addBarcode(v1AddBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.addBarcodeRaw({ v1AddBarcodeRequest: v1AddBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если у товара нет штрихкода, вы можете создать его с помощью этого метода. Если штрихкод уже есть, но он не указан в системе Ozon, вы можете привязать его через метод [/v1/barcode/add](#operation/add-barcode). За один запрос вы можете создать штрихкоды не больше чем для 100 товаров. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Создать штрихкод для товара + */ + generateBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GenerateBarcodeRequest'] == null) { + throw new runtime.RequiredError('v1GenerateBarcodeRequest', 'Required parameter "v1GenerateBarcodeRequest" was null or undefined when calling generateBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/barcode/generate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GenerateBarcodeRequestToJSON(requestParameters['v1GenerateBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GenerateBarcodeResponseFromJSON(jsonValue)); + }); + } + /** + * Если у товара нет штрихкода, вы можете создать его с помощью этого метода. Если штрихкод уже есть, но он не указан в системе Ozon, вы можете привязать его через метод [/v1/barcode/add](#operation/add-barcode). За один запрос вы можете создать штрихкоды не больше чем для 100 товаров. С одного аккаунта продавца можно использовать метод не больше 20 раз в минуту. + * Создать штрихкод для товара + */ + generateBarcode(v1GenerateBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.generateBarcodeRaw({ v1GenerateBarcodeRequest: v1GenerateBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/BetaMethod.d.ts b/dist/esm/apis/BetaMethod.d.ts new file mode 100644 index 0000000..c1c9dde --- /dev/null +++ b/dist/esm/apis/BetaMethod.d.ts @@ -0,0 +1,280 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CertificationV2ProductCertificateCreateRequest, CertificationV2ProductCertificateCreateResponse, CertificationV2ProductCertificateOptionsResponse, CertificationV2ProductCertificateParamsRequest, CertificationV2ProductCertificateParamsResponse, FinanceV1GetFinanceAccrualByDayRequest, FinanceV1GetFinanceAccrualByDayResponse, FinanceV1GetFinanceAccrualPostingsRequest, FinanceV1GetFinanceAccrualPostingsResponse, FinanceV1GetFinanceAccrualTypesResponse, PostingV1GetFbpPostingRequest, PostingV1GetFbpPostingResponse, PostingV2PostingDigitalListRequest, PostingV2PostingDigitalListResponse, ProductV1ProductVisibilityInfoRequest, ProductV1ProductVisibilityInfoResponse, ProductV1ProductVisibilitySetRequest, ProductV1ProductVisibilitySetResponse, ReportV1CreateCompanyFinanceRealizationPostingReportRequest, ReportV1CreateCompanyFinanceRealizationPostingReportResponse, V1AnalyticsManageStocksRequest, V1AnalyticsManageStocksResponse, V1GetFinanceBalanceV1Request, V1GetFinanceBalanceV1Response, V1GetProductStairwayDiscountByQuantityRequest, V1GetProductStairwayDiscountByQuantityResponse, V1GetSupplierReturnsSummaryReportRequest, V1GetSupplierReturnsSummaryReportResponse, V1GetSupplyReturnsSummaryReportRequest, V1GetSupplyReturnsSummaryReportResponse, V1SetProductStairwayDiscountByQuantityRequest, V1SetProductStairwayDiscountByQuantityResponse, V2GetDiscountTaskListV2Request, V2GetDiscountTaskListV2Response } from '../models/index'; +export interface AnalyticsAPIManageStocksRequest { + clientId: string; + apiKey: string; + v1AnalyticsManageStocksRequest: V1AnalyticsManageStocksRequest; +} +export interface CreateCompanyFinanceRealizationPostingReportRequest { + clientId: string; + apiKey: string; + reportV1CreateCompanyFinanceRealizationPostingReportRequest: ReportV1CreateCompanyFinanceRealizationPostingReportRequest; +} +export interface GetDiscountTaskListV2Request { + clientId: string; + apiKey: string; + v2GetDiscountTaskListV2Request?: V2GetDiscountTaskListV2Request; +} +export interface GetFbpPostingRequest { + postingV1GetFbpPostingRequest?: PostingV1GetFbpPostingRequest; +} +export interface GetFinanceAccrualByDayRequest { + clientId: string; + apiKey: string; + financeV1GetFinanceAccrualByDayRequest: FinanceV1GetFinanceAccrualByDayRequest; +} +export interface GetFinanceAccrualPostingsRequest { + clientId: string; + apiKey: string; + financeV1GetFinanceAccrualPostingsRequest: FinanceV1GetFinanceAccrualPostingsRequest; +} +export interface GetFinanceAccrualTypesRequest { + clientId: string; + apiKey: string; +} +export interface GetFinanceBalanceV1Request { + v1GetFinanceBalanceV1Request: V1GetFinanceBalanceV1Request; +} +export interface GetSupplierReturnsSummaryReportRequest { + clientId: string; + apiKey: string; + v1GetSupplierReturnsSummaryReportRequest: V1GetSupplierReturnsSummaryReportRequest; +} +export interface GetSupplyReturnsSummaryReportRequest { + clientId: string; + apiKey: string; + v1GetSupplyReturnsSummaryReportRequest: V1GetSupplyReturnsSummaryReportRequest; +} +export interface PostingDigitalListRequest { + clientId: string; + apiKey: string; + postingV2PostingDigitalListRequest: PostingV2PostingDigitalListRequest; +} +export interface ProductAPIGetProductStairwayDiscountByQuantityRequest { + clientId: string; + apiKey: string; + v1GetProductStairwayDiscountByQuantityRequest: V1GetProductStairwayDiscountByQuantityRequest; +} +export interface ProductAPISetProductStairwayDiscountByQuantityRequest { + clientId: string; + apiKey: string; + v1SetProductStairwayDiscountByQuantityRequest: V1SetProductStairwayDiscountByQuantityRequest; +} +export interface ProductCertificateCreateRequest { + clientId: string; + apiKey: string; + certificationV2ProductCertificateCreateRequest: CertificationV2ProductCertificateCreateRequest; +} +export interface ProductCertificateOptionsRequest { + clientId: string; + apiKey: string; +} +export interface ProductCertificateParamsRequest { + clientId: string; + apiKey: string; + certificationV2ProductCertificateParamsRequest: CertificationV2ProductCertificateParamsRequest; +} +export interface ProductVisibilityInfoRequest { + clientId: string; + apiKey: string; + productV1ProductVisibilityInfoRequest?: ProductV1ProductVisibilityInfoRequest; +} +export interface ProductVisibilitySetRequest { + productV1ProductVisibilitySetRequest?: ProductV1ProductVisibilitySetRequest; +} +/** + * + */ +export declare class BetaMethod extends runtime.BaseAPI { + /** + * Используйте метод, чтобы узнать, сколько товаров осталось на складах FBO. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1106-Razdel-upravleniia-ostatkami-analytics-manage-stocks) в сообществе разработчиков Ozon for dev. + * Управление остатками + */ + analyticsAPIManageStocksRaw(requestParameters: AnalyticsAPIManageStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы узнать, сколько товаров осталось на складах FBO. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1106-Razdel-upravleniia-ostatkami-analytics-manage-stocks) в сообществе разработчиков Ozon for dev. + * Управление остатками + */ + analyticsAPIManageStocks(clientId: string, apiKey: string, v1AnalyticsManageStocksRequest: V1AnalyticsManageStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev. + * Получить позаказный отчёт о реализации товаров + */ + createCompanyFinanceRealizationPostingReportRaw(requestParameters: CreateCompanyFinanceRealizationPostingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev. + * Получить позаказный отчёт о реализации товаров + */ + createCompanyFinanceRealizationPostingReport(clientId: string, apiKey: string, reportV1CreateCompanyFinanceRealizationPostingReportRequest: ReportV1CreateCompanyFinanceRealizationPostingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список товаров, которые покупатели хотят купить со скидкой. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1856-Novye-metody-dlia-raboty-s-polucheniem-Spiska-zaiavok-na-skidku/) в сообществе разработчиков Ozon for dev. + * Получить список заявок на скидку + */ + getDiscountTaskListV2Raw(requestParameters: GetDiscountTaskListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список товаров, которые покупатели хотят купить со скидкой. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1856-Novye-metody-dlia-raboty-s-polucheniem-Spiska-zaiavok-na-skidku/) в сообществе разработчиков Ozon for dev. + * Получить список заявок на скидку + */ + getDiscountTaskListV2(clientId: string, apiKey: string, v2GetDiscountTaskListV2Request?: V2GetDiscountTaskListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2237-Novyi-metod-polucheniia-FBP-postingov-po-identifikatoru-otpravleniia/) в сообществе разработчиков Ozon for dev. + * Получить информацию об отправлении по идентификатору + */ + getFbpPostingRaw(requestParameters: GetFbpPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2237-Novyi-metod-polucheniia-FBP-postingov-po-identifikatoru-otpravleniia/) в сообществе разработчиков Ozon for dev. + * Получить информацию об отправлении по идентификатору + */ + getFbpPosting(postingV1GetFbpPostingRequest?: PostingV1GetFbpPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления за день + */ + getFinanceAccrualByDayRaw(requestParameters: GetFinanceAccrualByDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления за день + */ + getFinanceAccrualByDay(clientId: string, apiKey: string, financeV1GetFinanceAccrualByDayRequest: FinanceV1GetFinanceAccrualByDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления по отправлениям + */ + getFinanceAccrualPostingsRaw(requestParameters: GetFinanceAccrualPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления по отправлениям + */ + getFinanceAccrualPostings(clientId: string, apiKey: string, financeV1GetFinanceAccrualPostingsRequest: FinanceV1GetFinanceAccrualPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить справочник начислений + */ + getFinanceAccrualTypesRaw(requestParameters: GetFinanceAccrualTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить справочник начислений + */ + getFinanceAccrualTypes(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Соответствует разделу **Финансы → Баланс** в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1732-Novyi-metod-polucheniia-dannykh-po-balansu/) в сообществе разработчиков Ozon for dev. + * Получить отчёт о балансе + */ + getFinanceBalanceV1Raw(requestParameters: GetFinanceBalanceV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Соответствует разделу **Финансы → Баланс** в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1732-Novyi-metod-polucheniia-dannykh-po-balansu/) в сообществе разработчиков Ozon for dev. + * Получить отчёт о балансе + */ + getFinanceBalanceV1(v1GetFinanceBalanceV1Request: V1GetFinanceBalanceV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации со стока FBO + */ + getSupplierReturnsSummaryReportRaw(requestParameters: GetSupplierReturnsSummaryReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации со стока FBO + */ + getSupplierReturnsSummaryReport(clientId: string, apiKey: string, v1GetSupplierReturnsSummaryReportRequest: V1GetSupplierReturnsSummaryReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации с поставки FBO + */ + getSupplyReturnsSummaryReportRaw(requestParameters: GetSupplyReturnsSummaryReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации с поставки FBO + */ + getSupplyReturnsSummaryReport(clientId: string, apiKey: string, v1GetSupplyReturnsSummaryReportRequest: V1GetSupplyReturnsSummaryReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, которые работают с цифровыми товарами. Чтобы получить список отправлений в любом статусе, используйте метод [/v3/posting/fbo/list](#operation/PostingFboList). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2050-Novyi-beta-metod-dlia-postingov-s-zagruzkoi-kodov-tsifrovykh-tovarov-v-Seller-API/) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingDigitalListRaw(requestParameters: PostingDigitalListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, которые работают с цифровыми товарами. Чтобы получить список отправлений в любом статусе, используйте метод [/v3/posting/fbo/list](#operation/PostingFboList). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2050-Novyi-beta-metod-dlia-postingov-s-zagruzkoi-kodov-tsifrovykh-tovarov-v-Seller-API/) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingDigitalList(clientId: string, apiKey: string, postingV2PostingDigitalListRequest: PostingV2PostingDigitalListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает информацию о скидке на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Получить информацию о скидке от количества + */ + productAPIGetProductStairwayDiscountByQuantityRaw(requestParameters: ProductAPIGetProductStairwayDiscountByQuantityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию о скидке на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Получить информацию о скидке от количества + */ + productAPIGetProductStairwayDiscountByQuantity(clientId: string, apiKey: string, v1GetProductStairwayDiscountByQuantityRequest: V1GetProductStairwayDiscountByQuantityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Устанавливает или удаляет скидку на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Управлять скидкой от количества + */ + productAPISetProductStairwayDiscountByQuantityRaw(requestParameters: ProductAPISetProductStairwayDiscountByQuantityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Устанавливает или удаляет скидку на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Управлять скидкой от количества + */ + productAPISetProductStairwayDiscountByQuantity(clientId: string, apiKey: string, v1SetProductStairwayDiscountByQuantityRequest: V1SetProductStairwayDiscountByQuantityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Создать сертификат качества + */ + productCertificateCreateRaw(requestParameters: ProductCertificateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Создать сертификат качества + */ + productCertificateCreate(clientId: string, apiKey: string, certificationV2ProductCertificateCreateRequest: CertificationV2ProductCertificateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certification/params](#operation/ProductCertificateParams). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить параметры для создания сертификата качества + */ + productCertificateOptionsRaw(requestParameters: ProductCertificateOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certification/params](#operation/ProductCertificateParams). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить параметры для создания сертификата качества + */ + productCertificateOptions(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certificate/create](#operation/ProductCertificateCreate). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить обязательные параметры для создания сертификата качества + */ + productCertificateParamsRaw(requestParameters: ProductCertificateParamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certificate/create](#operation/ProductCertificateCreate). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить обязательные параметры для создания сертификата качества + */ + productCertificateParams(clientId: string, apiKey: string, certificationV2ProductCertificateParamsRequest: CertificationV2ProductCertificateParamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Получить информацию о видимости товара + */ + productVisibilityInfoRaw(requestParameters: ProductVisibilityInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Получить информацию о видимости товара + */ + productVisibilityInfo(clientId: string, apiKey: string, productV1ProductVisibilityInfoRequest?: ProductV1ProductVisibilityInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Настроить видимость товара на витрине Ozon и Ozon Селект + */ + productVisibilitySetRaw(requestParameters: ProductVisibilitySetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Настроить видимость товара на витрине Ozon и Ozon Селект + */ + productVisibilitySet(productV1ProductVisibilitySetRequest?: ProductV1ProductVisibilitySetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/BetaMethod.js b/dist/esm/apis/BetaMethod.js new file mode 100644 index 0000000..f67faef --- /dev/null +++ b/dist/esm/apis/BetaMethod.js @@ -0,0 +1,763 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CertificationV2ProductCertificateCreateRequestToJSON, CertificationV2ProductCertificateCreateResponseFromJSON, CertificationV2ProductCertificateOptionsResponseFromJSON, CertificationV2ProductCertificateParamsRequestToJSON, CertificationV2ProductCertificateParamsResponseFromJSON, FinanceV1GetFinanceAccrualByDayRequestToJSON, FinanceV1GetFinanceAccrualByDayResponseFromJSON, FinanceV1GetFinanceAccrualPostingsRequestToJSON, FinanceV1GetFinanceAccrualPostingsResponseFromJSON, FinanceV1GetFinanceAccrualTypesResponseFromJSON, PostingV1GetFbpPostingRequestToJSON, PostingV1GetFbpPostingResponseFromJSON, PostingV2PostingDigitalListRequestToJSON, PostingV2PostingDigitalListResponseFromJSON, ProductV1ProductVisibilityInfoRequestToJSON, ProductV1ProductVisibilityInfoResponseFromJSON, ProductV1ProductVisibilitySetRequestToJSON, ProductV1ProductVisibilitySetResponseFromJSON, ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON, ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON, V1AnalyticsManageStocksRequestToJSON, V1AnalyticsManageStocksResponseFromJSON, V1GetFinanceBalanceV1RequestToJSON, V1GetFinanceBalanceV1ResponseFromJSON, V1GetProductStairwayDiscountByQuantityRequestToJSON, V1GetProductStairwayDiscountByQuantityResponseFromJSON, V1GetSupplierReturnsSummaryReportRequestToJSON, V1GetSupplierReturnsSummaryReportResponseFromJSON, V1GetSupplyReturnsSummaryReportRequestToJSON, V1GetSupplyReturnsSummaryReportResponseFromJSON, V1SetProductStairwayDiscountByQuantityRequestToJSON, V1SetProductStairwayDiscountByQuantityResponseFromJSON, V2GetDiscountTaskListV2RequestToJSON, V2GetDiscountTaskListV2ResponseFromJSON, } from '../models/index'; +/** + * + */ +export class BetaMethod extends runtime.BaseAPI { + /** + * Используйте метод, чтобы узнать, сколько товаров осталось на складах FBO. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1106-Razdel-upravleniia-ostatkami-analytics-manage-stocks) в сообществе разработчиков Ozon for dev. + * Управление остатками + */ + analyticsAPIManageStocksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIManageStocks().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIManageStocks().'); + } + if (requestParameters['v1AnalyticsManageStocksRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsManageStocksRequest', 'Required parameter "v1AnalyticsManageStocksRequest" was null or undefined when calling analyticsAPIManageStocks().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/manage/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AnalyticsManageStocksRequestToJSON(requestParameters['v1AnalyticsManageStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AnalyticsManageStocksResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы узнать, сколько товаров осталось на складах FBO. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1106-Razdel-upravleniia-ostatkami-analytics-manage-stocks) в сообществе разработчиков Ozon for dev. + * Управление остатками + */ + analyticsAPIManageStocks(clientId, apiKey, v1AnalyticsManageStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIManageStocksRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsManageStocksRequest: v1AnalyticsManageStocksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev. + * Получить позаказный отчёт о реализации товаров + */ + createCompanyFinanceRealizationPostingReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createCompanyFinanceRealizationPostingReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling createCompanyFinanceRealizationPostingReport().'); + } + if (requestParameters['reportV1CreateCompanyFinanceRealizationPostingReportRequest'] == null) { + throw new runtime.RequiredError('reportV1CreateCompanyFinanceRealizationPostingReportRequest', 'Required parameter "reportV1CreateCompanyFinanceRealizationPostingReportRequest" was null or undefined when calling createCompanyFinanceRealizationPostingReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/realization/posting/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON(requestParameters['reportV1CreateCompanyFinanceRealizationPostingReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON(jsonValue)); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Не включает отмены и невыкупы. Отчёт доступен с настоящего времени по август 2023 года включительно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2280-Novyi-beta-metod-dlia-polucheniia-otcheta-o-realizatsii-po-postingam/) в сообществе разработчиков Ozon for dev. + * Получить позаказный отчёт о реализации товаров + */ + createCompanyFinanceRealizationPostingReport(clientId, apiKey, reportV1CreateCompanyFinanceRealizationPostingReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createCompanyFinanceRealizationPostingReportRaw({ clientId: clientId, apiKey: apiKey, reportV1CreateCompanyFinanceRealizationPostingReportRequest: reportV1CreateCompanyFinanceRealizationPostingReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список товаров, которые покупатели хотят купить со скидкой. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1856-Novye-metody-dlia-raboty-s-polucheniem-Spiska-zaiavok-na-skidku/) в сообществе разработчиков Ozon for dev. + * Получить список заявок на скидку + */ + getDiscountTaskListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getDiscountTaskListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getDiscountTaskListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/actions/discounts-task/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2GetDiscountTaskListV2RequestToJSON(requestParameters['v2GetDiscountTaskListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2GetDiscountTaskListV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список товаров, которые покупатели хотят купить со скидкой. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1856-Novye-metody-dlia-raboty-s-polucheniem-Spiska-zaiavok-na-skidku/) в сообществе разработчиков Ozon for dev. + * Получить список заявок на скидку + */ + getDiscountTaskListV2(clientId, apiKey, v2GetDiscountTaskListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getDiscountTaskListV2Raw({ clientId: clientId, apiKey: apiKey, v2GetDiscountTaskListV2Request: v2GetDiscountTaskListV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2237-Novyi-metod-polucheniia-FBP-postingov-po-identifikatoru-otpravleniia/) в сообществе разработчиков Ozon for dev. + * Получить информацию об отправлении по идентификатору + */ + getFbpPostingRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/fbp/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingV1GetFbpPostingRequestToJSON(requestParameters['postingV1GetFbpPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingV1GetFbpPostingResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2237-Novyi-metod-polucheniia-FBP-postingov-po-identifikatoru-otpravleniia/) в сообществе разработчиков Ozon for dev. + * Получить информацию об отправлении по идентификатору + */ + getFbpPosting(postingV1GetFbpPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFbpPostingRaw({ postingV1GetFbpPostingRequest: postingV1GetFbpPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления за день + */ + getFinanceAccrualByDayRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getFinanceAccrualByDay().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getFinanceAccrualByDay().'); + } + if (requestParameters['financeV1GetFinanceAccrualByDayRequest'] == null) { + throw new runtime.RequiredError('financeV1GetFinanceAccrualByDayRequest', 'Required parameter "financeV1GetFinanceAccrualByDayRequest" was null or undefined when calling getFinanceAccrualByDay().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/accrual/by-day`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: FinanceV1GetFinanceAccrualByDayRequestToJSON(requestParameters['financeV1GetFinanceAccrualByDayRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => FinanceV1GetFinanceAccrualByDayResponseFromJSON(jsonValue)); + }); + } + /** + * Если укажете `last_id` в запросе, передайте значение `date` из предыдущего запроса, иначе вернётся ошибка `400 Bad Request`. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления за день + */ + getFinanceAccrualByDay(clientId, apiKey, financeV1GetFinanceAccrualByDayRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceAccrualByDayRaw({ clientId: clientId, apiKey: apiKey, financeV1GetFinanceAccrualByDayRequest: financeV1GetFinanceAccrualByDayRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления по отправлениям + */ + getFinanceAccrualPostingsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getFinanceAccrualPostings().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getFinanceAccrualPostings().'); + } + if (requestParameters['financeV1GetFinanceAccrualPostingsRequest'] == null) { + throw new runtime.RequiredError('financeV1GetFinanceAccrualPostingsRequest', 'Required parameter "financeV1GetFinanceAccrualPostingsRequest" was null or undefined when calling getFinanceAccrualPostings().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/accrual/postings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: FinanceV1GetFinanceAccrualPostingsRequestToJSON(requestParameters['financeV1GetFinanceAccrualPostingsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => FinanceV1GetFinanceAccrualPostingsResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить начисления по отправлениям + */ + getFinanceAccrualPostings(clientId, apiKey, financeV1GetFinanceAccrualPostingsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceAccrualPostingsRaw({ clientId: clientId, apiKey: apiKey, financeV1GetFinanceAccrualPostingsRequest: financeV1GetFinanceAccrualPostingsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить справочник начислений + */ + getFinanceAccrualTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getFinanceAccrualTypes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getFinanceAccrualTypes().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/accrual/types`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => FinanceV1GetFinanceAccrualTypesResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2008-Novye-beta-metody-dlia-polucheniia-nachislenii/) в сообществе разработчиков Ozon for dev. + * Получить справочник начислений + */ + getFinanceAccrualTypes(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceAccrualTypesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Соответствует разделу **Финансы → Баланс** в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1732-Novyi-metod-polucheniia-dannykh-po-balansu/) в сообществе разработчиков Ozon for dev. + * Получить отчёт о балансе + */ + getFinanceBalanceV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetFinanceBalanceV1Request'] == null) { + throw new runtime.RequiredError('v1GetFinanceBalanceV1Request', 'Required parameter "v1GetFinanceBalanceV1Request" was null or undefined when calling getFinanceBalanceV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/balance`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetFinanceBalanceV1RequestToJSON(requestParameters['v1GetFinanceBalanceV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetFinanceBalanceV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Соответствует разделу **Финансы → Баланс** в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1732-Novyi-metod-polucheniia-dannykh-po-balansu/) в сообществе разработчиков Ozon for dev. + * Получить отчёт о балансе + */ + getFinanceBalanceV1(v1GetFinanceBalanceV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceBalanceV1Raw({ v1GetFinanceBalanceV1Request: v1GetFinanceBalanceV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации со стока FBO + */ + getSupplierReturnsSummaryReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getSupplierReturnsSummaryReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getSupplierReturnsSummaryReport().'); + } + if (requestParameters['v1GetSupplierReturnsSummaryReportRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplierReturnsSummaryReportRequest', 'Required parameter "v1GetSupplierReturnsSummaryReportRequest" was null or undefined when calling getSupplierReturnsSummaryReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/removal/from-stock/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetSupplierReturnsSummaryReportRequestToJSON(requestParameters['v1GetSupplierReturnsSummaryReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetSupplierReturnsSummaryReportResponseFromJSON(jsonValue)); + }); + } + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации со стока FBO + */ + getSupplierReturnsSummaryReport(clientId, apiKey, v1GetSupplierReturnsSummaryReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getSupplierReturnsSummaryReportRaw({ clientId: clientId, apiKey: apiKey, v1GetSupplierReturnsSummaryReportRequest: v1GetSupplierReturnsSummaryReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации с поставки FBO + */ + getSupplyReturnsSummaryReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getSupplyReturnsSummaryReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getSupplyReturnsSummaryReport().'); + } + if (requestParameters['v1GetSupplyReturnsSummaryReportRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplyReturnsSummaryReportRequest', 'Required parameter "v1GetSupplyReturnsSummaryReportRequest" was null or undefined when calling getSupplyReturnsSummaryReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/removal/from-supply/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetSupplyReturnsSummaryReportRequestToJSON(requestParameters['v1GetSupplyReturnsSummaryReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetSupplyReturnsSummaryReportResponseFromJSON(jsonValue)); + }); + } + /** + * Метод соответствует разделу [**FBO → Вывоз и утилизация**](https://seller.ozon.ru/app/fbo-operations/returns) в личном кабинете. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1608-Novye-metody-po-vyvozu-i-utilizatsii) в сообществе разработчиков Ozon for dev. + * Отчёт по вывозу и утилизации с поставки FBO + */ + getSupplyReturnsSummaryReport(clientId, apiKey, v1GetSupplyReturnsSummaryReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getSupplyReturnsSummaryReportRaw({ clientId: clientId, apiKey: apiKey, v1GetSupplyReturnsSummaryReportRequest: v1GetSupplyReturnsSummaryReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, которые работают с цифровыми товарами. Чтобы получить список отправлений в любом статусе, используйте метод [/v3/posting/fbo/list](#operation/PostingFboList). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2050-Novyi-beta-metod-dlia-postingov-s-zagruzkoi-kodov-tsifrovykh-tovarov-v-Seller-API/) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingDigitalListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingDigitalList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingDigitalList().'); + } + if (requestParameters['postingV2PostingDigitalListRequest'] == null) { + throw new runtime.RequiredError('postingV2PostingDigitalListRequest', 'Required parameter "postingV2PostingDigitalListRequest" was null or undefined when calling postingDigitalList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/digital/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingV2PostingDigitalListRequestToJSON(requestParameters['postingV2PostingDigitalListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingV2PostingDigitalListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, которые работают с цифровыми товарами. Чтобы получить список отправлений в любом статусе, используйте метод [/v3/posting/fbo/list](#operation/PostingFboList). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2050-Novyi-beta-metod-dlia-postingov-s-zagruzkoi-kodov-tsifrovykh-tovarov-v-Seller-API/) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingDigitalList(clientId, apiKey, postingV2PostingDigitalListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingDigitalListRaw({ clientId: clientId, apiKey: apiKey, postingV2PostingDigitalListRequest: postingV2PostingDigitalListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает информацию о скидке на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Получить информацию о скидке от количества + */ + productAPIGetProductStairwayDiscountByQuantityRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductStairwayDiscountByQuantity().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductStairwayDiscountByQuantity().'); + } + if (requestParameters['v1GetProductStairwayDiscountByQuantityRequest'] == null) { + throw new runtime.RequiredError('v1GetProductStairwayDiscountByQuantityRequest', 'Required parameter "v1GetProductStairwayDiscountByQuantityRequest" was null or undefined when calling productAPIGetProductStairwayDiscountByQuantity().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/stairway-discount/by-quantity/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetProductStairwayDiscountByQuantityRequestToJSON(requestParameters['v1GetProductStairwayDiscountByQuantityRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetProductStairwayDiscountByQuantityResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает информацию о скидке на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Получить информацию о скидке от количества + */ + productAPIGetProductStairwayDiscountByQuantity(clientId, apiKey, v1GetProductStairwayDiscountByQuantityRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductStairwayDiscountByQuantityRaw({ clientId: clientId, apiKey: apiKey, v1GetProductStairwayDiscountByQuantityRequest: v1GetProductStairwayDiscountByQuantityRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Устанавливает или удаляет скидку на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Управлять скидкой от количества + */ + productAPISetProductStairwayDiscountByQuantityRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPISetProductStairwayDiscountByQuantity().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPISetProductStairwayDiscountByQuantity().'); + } + if (requestParameters['v1SetProductStairwayDiscountByQuantityRequest'] == null) { + throw new runtime.RequiredError('v1SetProductStairwayDiscountByQuantityRequest', 'Required parameter "v1SetProductStairwayDiscountByQuantityRequest" was null or undefined when calling productAPISetProductStairwayDiscountByQuantity().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/stairway-discount/by-quantity/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SetProductStairwayDiscountByQuantityRequestToJSON(requestParameters['v1SetProductStairwayDiscountByQuantityRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SetProductStairwayDiscountByQuantityResponseFromJSON(jsonValue)); + }); + } + /** + * Устанавливает или удаляет скидку на товар в зависимости от его количества в заказе. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1719-Novye-metody-dlia-raboty-so-skidkoi-ot-kolichestva/) в сообществе разработчиков Ozon for dev. + * Управлять скидкой от количества + */ + productAPISetProductStairwayDiscountByQuantity(clientId, apiKey, v1SetProductStairwayDiscountByQuantityRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPISetProductStairwayDiscountByQuantityRaw({ clientId: clientId, apiKey: apiKey, v1SetProductStairwayDiscountByQuantityRequest: v1SetProductStairwayDiscountByQuantityRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Создать сертификат качества + */ + productCertificateCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productCertificateCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productCertificateCreate().'); + } + if (requestParameters['certificationV2ProductCertificateCreateRequest'] == null) { + throw new runtime.RequiredError('certificationV2ProductCertificateCreateRequest', 'Required parameter "certificationV2ProductCertificateCreateRequest" was null or undefined when calling productCertificateCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certificate/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CertificationV2ProductCertificateCreateRequestToJSON(requestParameters['certificationV2ProductCertificateCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CertificationV2ProductCertificateCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Создать сертификат качества + */ + productCertificateCreate(clientId, apiKey, certificationV2ProductCertificateCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productCertificateCreateRaw({ clientId: clientId, apiKey: apiKey, certificationV2ProductCertificateCreateRequest: certificationV2ProductCertificateCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certification/params](#operation/ProductCertificateParams). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить параметры для создания сертификата качества + */ + productCertificateOptionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productCertificateOptions().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productCertificateOptions().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certification/options`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CertificationV2ProductCertificateOptionsResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certification/params](#operation/ProductCertificateParams). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить параметры для создания сертификата качества + */ + productCertificateOptions(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productCertificateOptionsRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certificate/create](#operation/ProductCertificateCreate). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить обязательные параметры для создания сертификата качества + */ + productCertificateParamsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productCertificateParams().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productCertificateParams().'); + } + if (requestParameters['certificationV2ProductCertificateParamsRequest'] == null) { + throw new runtime.RequiredError('certificationV2ProductCertificateParamsRequest', 'Required parameter "certificationV2ProductCertificateParamsRequest" was null or undefined when calling productCertificateParams().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certification/params`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CertificationV2ProductCertificateParamsRequestToJSON(requestParameters['certificationV2ProductCertificateParamsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CertificationV2ProductCertificateParamsResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте информацию о параметрах в запросе метода [/v2/product/certificate/create](#operation/ProductCertificateCreate). Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2278-Novye-beta-metody-dlia-dobavleniia-sertifikatov-kachestva/) в сообществе разработчиков Ozon for dev. + * Получить обязательные параметры для создания сертификата качества + */ + productCertificateParams(clientId, apiKey, certificationV2ProductCertificateParamsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productCertificateParamsRaw({ clientId: clientId, apiKey: apiKey, certificationV2ProductCertificateParamsRequest: certificationV2ProductCertificateParamsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Получить информацию о видимости товара + */ + productVisibilityInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productVisibilityInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productVisibilityInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/visibility/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductV1ProductVisibilityInfoRequestToJSON(requestParameters['productV1ProductVisibilityInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductV1ProductVisibilityInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Получить информацию о видимости товара + */ + productVisibilityInfo(clientId, apiKey, productV1ProductVisibilityInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productVisibilityInfoRaw({ clientId: clientId, apiKey: apiKey, productV1ProductVisibilityInfoRequest: productV1ProductVisibilityInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Настроить видимость товара на витрине Ozon и Ozon Селект + */ + productVisibilitySetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/visibility/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductV1ProductVisibilitySetRequestToJSON(requestParameters['productV1ProductVisibilitySetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductV1ProductVisibilitySetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1951-Novyi-metod-upravleniia-vidimostiu-na-vitrinakh/) в сообществе разработчиков Ozon for dev. + * Настроить видимость товара на витрине Ozon и Ozon Селект + */ + productVisibilitySet(productV1ProductVisibilitySetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productVisibilitySetRaw({ productV1ProductVisibilitySetRequest: productV1ProductVisibilitySetRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/BrandAPI.d.ts b/dist/esm/apis/BrandAPI.d.ts new file mode 100644 index 0000000..4feaa48 --- /dev/null +++ b/dist/esm/apis/BrandAPI.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { BrandBrandCompanyCertificationListRequest, BrandBrandCompanyCertificationListResponse } from '../models/index'; +export interface BrandAPIBrandCompanyCertificationListRequest { + clientId: string; + apiKey: string; + brandBrandCompanyCertificationListRequest: BrandBrandCompanyCertificationListRequest; +} +/** + * + */ +export declare class BrandAPI extends runtime.BaseAPI { + /** + * Метод для получения списка брендов, для которых требуется предоставить сертификат. Ответ содержит список брендов, товары которых есть в вашем личном кабинете. Список брендов может изменяться, если Ozon получит требование от бренда предоставлять сертификат. [Подробнее о работе с брендами в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/characteristics/brendy) + * Список сертифицируемых брендов + */ + brandAPIBrandCompanyCertificationListRaw(requestParameters: BrandAPIBrandCompanyCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка брендов, для которых требуется предоставить сертификат. Ответ содержит список брендов, товары которых есть в вашем личном кабинете. Список брендов может изменяться, если Ozon получит требование от бренда предоставлять сертификат. [Подробнее о работе с брендами в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/characteristics/brendy) + * Список сертифицируемых брендов + */ + brandAPIBrandCompanyCertificationList(clientId: string, apiKey: string, brandBrandCompanyCertificationListRequest: BrandBrandCompanyCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/BrandAPI.js b/dist/esm/apis/BrandAPI.js new file mode 100644 index 0000000..ce38e67 --- /dev/null +++ b/dist/esm/apis/BrandAPI.js @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { BrandBrandCompanyCertificationListRequestToJSON, BrandBrandCompanyCertificationListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class BrandAPI extends runtime.BaseAPI { + /** + * Метод для получения списка брендов, для которых требуется предоставить сертификат. Ответ содержит список брендов, товары которых есть в вашем личном кабинете. Список брендов может изменяться, если Ozon получит требование от бренда предоставлять сертификат. [Подробнее о работе с брендами в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/characteristics/brendy) + * Список сертифицируемых брендов + */ + brandAPIBrandCompanyCertificationListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling brandAPIBrandCompanyCertificationList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling brandAPIBrandCompanyCertificationList().'); + } + if (requestParameters['brandBrandCompanyCertificationListRequest'] == null) { + throw new runtime.RequiredError('brandBrandCompanyCertificationListRequest', 'Required parameter "brandBrandCompanyCertificationListRequest" was null or undefined when calling brandAPIBrandCompanyCertificationList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/brand/company-certification/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: BrandBrandCompanyCertificationListRequestToJSON(requestParameters['brandBrandCompanyCertificationListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => BrandBrandCompanyCertificationListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка брендов, для которых требуется предоставить сертификат. Ответ содержит список брендов, товары которых есть в вашем личном кабинете. Список брендов может изменяться, если Ozon получит требование от бренда предоставлять сертификат. [Подробнее о работе с брендами в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/characteristics/brendy) + * Список сертифицируемых брендов + */ + brandAPIBrandCompanyCertificationList(clientId, apiKey, brandBrandCompanyCertificationListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.brandAPIBrandCompanyCertificationListRaw({ clientId: clientId, apiKey: apiKey, brandBrandCompanyCertificationListRequest: brandBrandCompanyCertificationListRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/CancelReasonAPI.d.ts b/dist/esm/apis/CancelReasonAPI.d.ts new file mode 100644 index 0000000..7be823d --- /dev/null +++ b/dist/esm/apis/CancelReasonAPI.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1CancelReasonListByOrderRequest, V1CancelReasonListByOrderResponse, V1CancelReasonListByPostingRequest, V1CancelReasonListByPostingResponse, V1CancelReasonListResponse } from '../models/index'; +export interface CancelReasonAPICancelReasonListByPostingRequest { + v1CancelReasonListByPostingRequest?: V1CancelReasonListByPostingRequest; +} +export interface CancelReasonListByOrderRequest { + v1CancelReasonListByOrderRequest?: V1CancelReasonListByOrderRequest; +} +/** + * + */ +export declare class CancelReasonAPI extends runtime.BaseAPI { + /** + * Возвращает возможные причины отмены для отправления. + * Причины отмены отправления + */ + cancelReasonAPICancelReasonListByPostingRaw(requestParameters: CancelReasonAPICancelReasonListByPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает возможные причины отмены для отправления. + * Причины отмены отправления + */ + cancelReasonAPICancelReasonListByPosting(v1CancelReasonListByPostingRequest?: V1CancelReasonListByPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает возможные причины отмены отправлений и заказов. + * Причины отмены отправлений + */ + cancelReasonListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает возможные причины отмены отправлений и заказов. + * Причины отмены отправлений + */ + cancelReasonList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает возможные причины отмены для заказа. + * Причины отмены заказа + */ + cancelReasonListByOrderRaw(requestParameters: CancelReasonListByOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает возможные причины отмены для заказа. + * Причины отмены заказа + */ + cancelReasonListByOrder(v1CancelReasonListByOrderRequest?: V1CancelReasonListByOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/CancelReasonAPI.js b/dist/esm/apis/CancelReasonAPI.js new file mode 100644 index 0000000..a894869 --- /dev/null +++ b/dist/esm/apis/CancelReasonAPI.js @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1CancelReasonListByOrderRequestToJSON, V1CancelReasonListByOrderResponseFromJSON, V1CancelReasonListByPostingRequestToJSON, V1CancelReasonListByPostingResponseFromJSON, V1CancelReasonListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class CancelReasonAPI extends runtime.BaseAPI { + /** + * Возвращает возможные причины отмены для отправления. + * Причины отмены отправления + */ + cancelReasonAPICancelReasonListByPostingRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cancel-reason/list-by-posting`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CancelReasonListByPostingRequestToJSON(requestParameters['v1CancelReasonListByPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CancelReasonListByPostingResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает возможные причины отмены для отправления. + * Причины отмены отправления + */ + cancelReasonAPICancelReasonListByPosting(v1CancelReasonListByPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cancelReasonAPICancelReasonListByPostingRaw({ v1CancelReasonListByPostingRequest: v1CancelReasonListByPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает возможные причины отмены отправлений и заказов. + * Причины отмены отправлений + */ + cancelReasonListRaw(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + const response = yield this.request({ + path: `/v1/cancel-reason/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CancelReasonListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает возможные причины отмены отправлений и заказов. + * Причины отмены отправлений + */ + cancelReasonList(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cancelReasonListRaw(initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает возможные причины отмены для заказа. + * Причины отмены заказа + */ + cancelReasonListByOrderRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cancel-reason/list-by-order`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CancelReasonListByOrderRequestToJSON(requestParameters['v1CancelReasonListByOrderRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CancelReasonListByOrderResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает возможные причины отмены для заказа. + * Причины отмены заказа + */ + cancelReasonListByOrder(v1CancelReasonListByOrderRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cancelReasonListByOrderRaw({ v1CancelReasonListByOrderRequest: v1CancelReasonListByOrderRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/CancellationAPI.d.ts b/dist/esm/apis/CancellationAPI.d.ts new file mode 100644 index 0000000..8b2feff --- /dev/null +++ b/dist/esm/apis/CancellationAPI.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V2ConditionalCancellationMoveV2Request, V2GetConditionalCancellationListV2Request, V2GetConditionalCancellationListV2Response } from '../models/index'; +export interface CancellationAPIConditionalCancellationApproveV2Request { + v2ConditionalCancellationMoveV2Request: V2ConditionalCancellationMoveV2Request; +} +export interface CancellationAPIConditionalCancellationRejectV2Request { + v2ConditionalCancellationMoveV2Request: V2ConditionalCancellationMoveV2Request; +} +export interface CancellationAPIGetConditionalCancellationListV2Request { + v2GetConditionalCancellationListV2Request: V2GetConditionalCancellationListV2Request; +} +/** + * + */ +export declare class CancellationAPI extends runtime.BaseAPI { + /** + * Метод позволяет согласовать заявку на отмену в статусе `ON_APPROVAL`. Заказ будет отменён, а деньги вернутся покупателю. + * Подтвердить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationApproveV2Raw(requestParameters: CancellationAPIConditionalCancellationApproveV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет согласовать заявку на отмену в статусе `ON_APPROVAL`. Заказ будет отменён, а деньги вернутся покупателю. + * Подтвердить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationApproveV2(v2ConditionalCancellationMoveV2Request: V2ConditionalCancellationMoveV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет отклонить заявку на отмену в статусе `ON_APPROVAL`. В параметре `comment` опишите причину. Заказ останется в том же статусе, и его нужно будет доставить покупателю. + * Отклонить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationRejectV2Raw(requestParameters: CancellationAPIConditionalCancellationRejectV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет отклонить заявку на отмену в статусе `ON_APPROVAL`. В параметре `comment` опишите причину. Заказ останется в том же статусе, и его нужно будет доставить покупателю. + * Отклонить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationRejectV2(v2ConditionalCancellationMoveV2Request: V2ConditionalCancellationMoveV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка заявок на отмену rFBS-заказов. + * Получить список заявок на отмену rFBS + */ + cancellationAPIGetConditionalCancellationListV2Raw(requestParameters: CancellationAPIGetConditionalCancellationListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка заявок на отмену rFBS-заказов. + * Получить список заявок на отмену rFBS + */ + cancellationAPIGetConditionalCancellationListV2(v2GetConditionalCancellationListV2Request: V2GetConditionalCancellationListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/CancellationAPI.js b/dist/esm/apis/CancellationAPI.js new file mode 100644 index 0000000..cc99a07 --- /dev/null +++ b/dist/esm/apis/CancellationAPI.js @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V2ConditionalCancellationMoveV2RequestToJSON, V2GetConditionalCancellationListV2RequestToJSON, V2GetConditionalCancellationListV2ResponseFromJSON, } from '../models/index'; +/** + * + */ +export class CancellationAPI extends runtime.BaseAPI { + /** + * Метод позволяет согласовать заявку на отмену в статусе `ON_APPROVAL`. Заказ будет отменён, а деньги вернутся покупателю. + * Подтвердить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationApproveV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2ConditionalCancellationMoveV2Request'] == null) { + throw new runtime.RequiredError('v2ConditionalCancellationMoveV2Request', 'Required parameter "v2ConditionalCancellationMoveV2Request" was null or undefined when calling cancellationAPIConditionalCancellationApproveV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/conditional-cancellation/approve`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2ConditionalCancellationMoveV2RequestToJSON(requestParameters['v2ConditionalCancellationMoveV2Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод позволяет согласовать заявку на отмену в статусе `ON_APPROVAL`. Заказ будет отменён, а деньги вернутся покупателю. + * Подтвердить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationApproveV2(v2ConditionalCancellationMoveV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.cancellationAPIConditionalCancellationApproveV2Raw({ v2ConditionalCancellationMoveV2Request: v2ConditionalCancellationMoveV2Request }, initOverrides); + }); + } + /** + * Метод позволяет отклонить заявку на отмену в статусе `ON_APPROVAL`. В параметре `comment` опишите причину. Заказ останется в том же статусе, и его нужно будет доставить покупателю. + * Отклонить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationRejectV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2ConditionalCancellationMoveV2Request'] == null) { + throw new runtime.RequiredError('v2ConditionalCancellationMoveV2Request', 'Required parameter "v2ConditionalCancellationMoveV2Request" was null or undefined when calling cancellationAPIConditionalCancellationRejectV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/conditional-cancellation/reject`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2ConditionalCancellationMoveV2RequestToJSON(requestParameters['v2ConditionalCancellationMoveV2Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод позволяет отклонить заявку на отмену в статусе `ON_APPROVAL`. В параметре `comment` опишите причину. Заказ останется в том же статусе, и его нужно будет доставить покупателю. + * Отклонить заявку на отмену rFBS + */ + cancellationAPIConditionalCancellationRejectV2(v2ConditionalCancellationMoveV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.cancellationAPIConditionalCancellationRejectV2Raw({ v2ConditionalCancellationMoveV2Request: v2ConditionalCancellationMoveV2Request }, initOverrides); + }); + } + /** + * Метод для получения списка заявок на отмену rFBS-заказов. + * Получить список заявок на отмену rFBS + */ + cancellationAPIGetConditionalCancellationListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2GetConditionalCancellationListV2Request'] == null) { + throw new runtime.RequiredError('v2GetConditionalCancellationListV2Request', 'Required parameter "v2GetConditionalCancellationListV2Request" was null or undefined when calling cancellationAPIGetConditionalCancellationListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/conditional-cancellation/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2GetConditionalCancellationListV2RequestToJSON(requestParameters['v2GetConditionalCancellationListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2GetConditionalCancellationListV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка заявок на отмену rFBS-заказов. + * Получить список заявок на отмену rFBS + */ + cancellationAPIGetConditionalCancellationListV2(v2GetConditionalCancellationListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cancellationAPIGetConditionalCancellationListV2Raw({ v2GetConditionalCancellationListV2Request: v2GetConditionalCancellationListV2Request }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/CarriageAPI.d.ts b/dist/esm/apis/CarriageAPI.d.ts new file mode 100644 index 0000000..2a28ce0 --- /dev/null +++ b/dist/esm/apis/CarriageAPI.d.ts @@ -0,0 +1,201 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Carriagev1CarriageContainerApproveRequest, Carriagev1CarriageContainerApproveResponse, Carriagev1CarriageContainerCancelRequest, Carriagev1CarriageContainerCancelResponse, Carriagev1CarriageContainerCreateRequest, Carriagev1CarriageContainerCreateResponse, Carriagev1CarriageContainerDocumentGetRequest, Carriagev1CarriageContainerDocumentGetResponse, Carriagev1CarriageContainerFillRequest, Carriagev1CarriageContainerFillResponse, Carriagev1CarriageContainerGetRequest, Carriagev1CarriageContainerGetResponse, Carriagev1CarriageContainerLabelGetRequest, Carriagev1CarriageContainerLabelGetResponse, Carriagev1CarriageContainerListRequest, Carriagev1CarriageContainerListResponse, Carriagev1CarriageContainerPlaceIntoRequest, Carriagev1CarriageContainerPlaceIntoResponse, Carriagev1CarriageContainerRemoveFromRequest, Carriagev1CarriageContainerRemoveFromResponse, Carriagev1CarriageContainerRemovePostingsRequest, Carriagev1CarriageContainerRemovePostingsResponse, Carriagev1CarriageContainerStatusGetRequest, Carriagev1CarriageContainerStatusGetResponse, Carriagev1CarriageContainerTaskInfoRequest, Carriagev1CarriageContainerTaskInfoResponse } from '../models/index'; +export interface CarriageContainerApproveRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerApproveRequest: Carriagev1CarriageContainerApproveRequest; +} +export interface CarriageContainerCancelRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerCancelRequest: Carriagev1CarriageContainerCancelRequest; +} +export interface CarriageContainerCreateRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerCreateRequest: Carriagev1CarriageContainerCreateRequest; +} +export interface CarriageContainerDocumentGetRequest { + carriagev1CarriageContainerDocumentGetRequest: Carriagev1CarriageContainerDocumentGetRequest; +} +export interface CarriageContainerFillRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerFillRequest: Carriagev1CarriageContainerFillRequest; +} +export interface CarriageContainerGetRequest { + carriagev1CarriageContainerGetRequest: Carriagev1CarriageContainerGetRequest; +} +export interface CarriageContainerLabelGetRequest { + carriagev1CarriageContainerLabelGetRequest: Carriagev1CarriageContainerLabelGetRequest; +} +export interface CarriageContainerListRequest { + carriagev1CarriageContainerListRequest: Carriagev1CarriageContainerListRequest; +} +export interface CarriageContainerPlaceIntoRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerPlaceIntoRequest: Carriagev1CarriageContainerPlaceIntoRequest; +} +export interface CarriageContainerRemoveFromRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerRemoveFromRequest: Carriagev1CarriageContainerRemoveFromRequest; +} +export interface CarriageContainerRemovePostingsRequest { + clientId: string; + apiKey: string; + carriagev1CarriageContainerRemovePostingsRequest: Carriagev1CarriageContainerRemovePostingsRequest; +} +export interface CarriageContainerStatusGetRequest { + carriagev1CarriageContainerStatusGetRequest: Carriagev1CarriageContainerStatusGetRequest; +} +export interface CarriageContainerTaskInfoRequest { + carriagev1CarriageContainerTaskInfoRequest: Carriagev1CarriageContainerTaskInfoRequest; +} +/** + * + */ +export declare class CarriageAPI extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Подтвердить состав грузоместа + */ + carriageContainerApproveRaw(requestParameters: CarriageContainerApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Подтвердить состав грузоместа + */ + carriageContainerApprove(clientId: string, apiKey: string, carriagev1CarriageContainerApproveRequest: Carriagev1CarriageContainerApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Отменить грузоместо + */ + carriageContainerCancelRaw(requestParameters: CarriageContainerCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Отменить грузоместо + */ + carriageContainerCancel(clientId: string, apiKey: string, carriagev1CarriageContainerCancelRequest: Carriagev1CarriageContainerCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Создать грузоместо + */ + carriageContainerCreateRaw(requestParameters: CarriageContainerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Создать грузоместо + */ + carriageContainerCreate(clientId: string, apiKey: string, carriagev1CarriageContainerCreateRequest: Carriagev1CarriageContainerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить документы по грузоместам — ТрН и лист отгрузки + */ + carriageContainerDocumentGetRaw(requestParameters: CarriageContainerDocumentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить документы по грузоместам — ТрН и лист отгрузки + */ + carriageContainerDocumentGet(carriagev1CarriageContainerDocumentGetRequest: Carriagev1CarriageContainerDocumentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Наполнить грузоместо отправлениями + */ + carriageContainerFillRaw(requestParameters: CarriageContainerFillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Наполнить грузоместо отправлениями + */ + carriageContainerFill(clientId: string, apiKey: string, carriagev1CarriageContainerFillRequest: Carriagev1CarriageContainerFillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить информацию о грузоместах + */ + carriageContainerGetRaw(requestParameters: CarriageContainerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить информацию о грузоместах + */ + carriageContainerGet(carriagev1CarriageContainerGetRequest: Carriagev1CarriageContainerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить этикетку по грузоместам + */ + carriageContainerLabelGetRaw(requestParameters: CarriageContainerLabelGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить этикетку по грузоместам + */ + carriageContainerLabelGet(carriagev1CarriageContainerLabelGetRequest: Carriagev1CarriageContainerLabelGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить список грузомест + */ + carriageContainerListRaw(requestParameters: CarriageContainerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить список грузомест + */ + carriageContainerList(carriagev1CarriageContainerListRequest: Carriagev1CarriageContainerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Разместить коробки на палете + */ + carriageContainerPlaceIntoRaw(requestParameters: CarriageContainerPlaceIntoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Разместить коробки на палете + */ + carriageContainerPlaceInto(clientId: string, apiKey: string, carriagev1CarriageContainerPlaceIntoRequest: Carriagev1CarriageContainerPlaceIntoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать коробки с палеты + */ + carriageContainerRemoveFromRaw(requestParameters: CarriageContainerRemoveFromRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать коробки с палеты + */ + carriageContainerRemoveFrom(clientId: string, apiKey: string, carriagev1CarriageContainerRemoveFromRequest: Carriagev1CarriageContainerRemoveFromRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать отправления из грузоместа + */ + carriageContainerRemovePostingsRaw(requestParameters: CarriageContainerRemovePostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать отправления из грузоместа + */ + carriageContainerRemovePostings(clientId: string, apiKey: string, carriagev1CarriageContainerRemovePostingsRequest: Carriagev1CarriageContainerRemovePostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус грузомест FBS + */ + carriageContainerStatusGetRaw(requestParameters: CarriageContainerStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус грузомест FBS + */ + carriageContainerStatusGet(carriagev1CarriageContainerStatusGetRequest: Carriagev1CarriageContainerStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус задачи грузового места + */ + carriageContainerTaskInfoRaw(requestParameters: CarriageContainerTaskInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус задачи грузового места + */ + carriageContainerTaskInfo(carriagev1CarriageContainerTaskInfoRequest: Carriagev1CarriageContainerTaskInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/CarriageAPI.js b/dist/esm/apis/CarriageAPI.js new file mode 100644 index 0000000..bb4af70 --- /dev/null +++ b/dist/esm/apis/CarriageAPI.js @@ -0,0 +1,529 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { Carriagev1CarriageContainerApproveRequestToJSON, Carriagev1CarriageContainerApproveResponseFromJSON, Carriagev1CarriageContainerCancelRequestToJSON, Carriagev1CarriageContainerCancelResponseFromJSON, Carriagev1CarriageContainerCreateRequestToJSON, Carriagev1CarriageContainerCreateResponseFromJSON, Carriagev1CarriageContainerDocumentGetRequestToJSON, Carriagev1CarriageContainerDocumentGetResponseFromJSON, Carriagev1CarriageContainerFillRequestToJSON, Carriagev1CarriageContainerFillResponseFromJSON, Carriagev1CarriageContainerGetRequestToJSON, Carriagev1CarriageContainerGetResponseFromJSON, Carriagev1CarriageContainerLabelGetRequestToJSON, Carriagev1CarriageContainerLabelGetResponseFromJSON, Carriagev1CarriageContainerListRequestToJSON, Carriagev1CarriageContainerListResponseFromJSON, Carriagev1CarriageContainerPlaceIntoRequestToJSON, Carriagev1CarriageContainerPlaceIntoResponseFromJSON, Carriagev1CarriageContainerRemoveFromRequestToJSON, Carriagev1CarriageContainerRemoveFromResponseFromJSON, Carriagev1CarriageContainerRemovePostingsRequestToJSON, Carriagev1CarriageContainerRemovePostingsResponseFromJSON, Carriagev1CarriageContainerStatusGetRequestToJSON, Carriagev1CarriageContainerStatusGetResponseFromJSON, Carriagev1CarriageContainerTaskInfoRequestToJSON, Carriagev1CarriageContainerTaskInfoResponseFromJSON, } from '../models/index'; +/** + * + */ +export class CarriageAPI extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Подтвердить состав грузоместа + */ + carriageContainerApproveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerApprove().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerApprove().'); + } + if (requestParameters['carriagev1CarriageContainerApproveRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerApproveRequest', 'Required parameter "carriagev1CarriageContainerApproveRequest" was null or undefined when calling carriageContainerApprove().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/approve`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerApproveRequestToJSON(requestParameters['carriagev1CarriageContainerApproveRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerApproveResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Подтвердить состав грузоместа + */ + carriageContainerApprove(clientId, apiKey, carriagev1CarriageContainerApproveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerApproveRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerApproveRequest: carriagev1CarriageContainerApproveRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Отменить грузоместо + */ + carriageContainerCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerCancel().'); + } + if (requestParameters['carriagev1CarriageContainerCancelRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerCancelRequest', 'Required parameter "carriagev1CarriageContainerCancelRequest" was null or undefined when calling carriageContainerCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerCancelRequestToJSON(requestParameters['carriagev1CarriageContainerCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Отменить грузоместо + */ + carriageContainerCancel(clientId, apiKey, carriagev1CarriageContainerCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerCancelRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerCancelRequest: carriagev1CarriageContainerCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Создать грузоместо + */ + carriageContainerCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerCreate().'); + } + if (requestParameters['carriagev1CarriageContainerCreateRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerCreateRequest', 'Required parameter "carriagev1CarriageContainerCreateRequest" was null or undefined when calling carriageContainerCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerCreateRequestToJSON(requestParameters['carriagev1CarriageContainerCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Создать грузоместо + */ + carriageContainerCreate(clientId, apiKey, carriagev1CarriageContainerCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerCreateRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerCreateRequest: carriagev1CarriageContainerCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить документы по грузоместам — ТрН и лист отгрузки + */ + carriageContainerDocumentGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerDocumentGetRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerDocumentGetRequest', 'Required parameter "carriagev1CarriageContainerDocumentGetRequest" was null or undefined when calling carriageContainerDocumentGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/document/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerDocumentGetRequestToJSON(requestParameters['carriagev1CarriageContainerDocumentGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerDocumentGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить документы по грузоместам — ТрН и лист отгрузки + */ + carriageContainerDocumentGet(carriagev1CarriageContainerDocumentGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerDocumentGetRaw({ carriagev1CarriageContainerDocumentGetRequest: carriagev1CarriageContainerDocumentGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Наполнить грузоместо отправлениями + */ + carriageContainerFillRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerFill().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerFill().'); + } + if (requestParameters['carriagev1CarriageContainerFillRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerFillRequest', 'Required parameter "carriagev1CarriageContainerFillRequest" was null or undefined when calling carriageContainerFill().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/fill`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerFillRequestToJSON(requestParameters['carriagev1CarriageContainerFillRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerFillResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Наполнить грузоместо отправлениями + */ + carriageContainerFill(clientId, apiKey, carriagev1CarriageContainerFillRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerFillRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerFillRequest: carriagev1CarriageContainerFillRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить информацию о грузоместах + */ + carriageContainerGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerGetRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerGetRequest', 'Required parameter "carriagev1CarriageContainerGetRequest" was null or undefined when calling carriageContainerGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerGetRequestToJSON(requestParameters['carriagev1CarriageContainerGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить информацию о грузоместах + */ + carriageContainerGet(carriagev1CarriageContainerGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerGetRaw({ carriagev1CarriageContainerGetRequest: carriagev1CarriageContainerGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить этикетку по грузоместам + */ + carriageContainerLabelGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerLabelGetRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerLabelGetRequest', 'Required parameter "carriagev1CarriageContainerLabelGetRequest" was null or undefined when calling carriageContainerLabelGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/label/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerLabelGetRequestToJSON(requestParameters['carriagev1CarriageContainerLabelGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerLabelGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить этикетку по грузоместам + */ + carriageContainerLabelGet(carriagev1CarriageContainerLabelGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerLabelGetRaw({ carriagev1CarriageContainerLabelGetRequest: carriagev1CarriageContainerLabelGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить список грузомест + */ + carriageContainerListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerListRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerListRequest', 'Required parameter "carriagev1CarriageContainerListRequest" was null or undefined when calling carriageContainerList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerListRequestToJSON(requestParameters['carriagev1CarriageContainerListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить список грузомест + */ + carriageContainerList(carriagev1CarriageContainerListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerListRaw({ carriagev1CarriageContainerListRequest: carriagev1CarriageContainerListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Разместить коробки на палете + */ + carriageContainerPlaceIntoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerPlaceInto().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerPlaceInto().'); + } + if (requestParameters['carriagev1CarriageContainerPlaceIntoRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerPlaceIntoRequest', 'Required parameter "carriagev1CarriageContainerPlaceIntoRequest" was null or undefined when calling carriageContainerPlaceInto().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/place-into`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerPlaceIntoRequestToJSON(requestParameters['carriagev1CarriageContainerPlaceIntoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerPlaceIntoResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Разместить коробки на палете + */ + carriageContainerPlaceInto(clientId, apiKey, carriagev1CarriageContainerPlaceIntoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerPlaceIntoRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerPlaceIntoRequest: carriagev1CarriageContainerPlaceIntoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать коробки с палеты + */ + carriageContainerRemoveFromRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerRemoveFrom().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerRemoveFrom().'); + } + if (requestParameters['carriagev1CarriageContainerRemoveFromRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerRemoveFromRequest', 'Required parameter "carriagev1CarriageContainerRemoveFromRequest" was null or undefined when calling carriageContainerRemoveFrom().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/remove-from`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerRemoveFromRequestToJSON(requestParameters['carriagev1CarriageContainerRemoveFromRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerRemoveFromResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать коробки с палеты + */ + carriageContainerRemoveFrom(clientId, apiKey, carriagev1CarriageContainerRemoveFromRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerRemoveFromRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerRemoveFromRequest: carriagev1CarriageContainerRemoveFromRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать отправления из грузоместа + */ + carriageContainerRemovePostingsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageContainerRemovePostings().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageContainerRemovePostings().'); + } + if (requestParameters['carriagev1CarriageContainerRemovePostingsRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerRemovePostingsRequest', 'Required parameter "carriagev1CarriageContainerRemovePostingsRequest" was null or undefined when calling carriageContainerRemovePostings().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/container/remove-postings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerRemovePostingsRequestToJSON(requestParameters['carriagev1CarriageContainerRemovePostingsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerRemovePostingsResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Убрать отправления из грузоместа + */ + carriageContainerRemovePostings(clientId, apiKey, carriagev1CarriageContainerRemovePostingsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerRemovePostingsRaw({ clientId: clientId, apiKey: apiKey, carriagev1CarriageContainerRemovePostingsRequest: carriagev1CarriageContainerRemovePostingsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус грузомест FBS + */ + carriageContainerStatusGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerStatusGetRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerStatusGetRequest', 'Required parameter "carriagev1CarriageContainerStatusGetRequest" was null or undefined when calling carriageContainerStatusGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/status/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerStatusGetRequestToJSON(requestParameters['carriagev1CarriageContainerStatusGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerStatusGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус грузомест FBS + */ + carriageContainerStatusGet(carriagev1CarriageContainerStatusGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerStatusGetRaw({ carriagev1CarriageContainerStatusGetRequest: carriagev1CarriageContainerStatusGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус задачи грузового места + */ + carriageContainerTaskInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriagev1CarriageContainerTaskInfoRequest'] == null) { + throw new runtime.RequiredError('carriagev1CarriageContainerTaskInfoRequest', 'Required parameter "carriagev1CarriageContainerTaskInfoRequest" was null or undefined when calling carriageContainerTaskInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/container/task/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Carriagev1CarriageContainerTaskInfoRequestToJSON(requestParameters['carriagev1CarriageContainerTaskInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Carriagev1CarriageContainerTaskInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к обсуждению в [сообществе разработчиков Ozon for dev](https://dev.ozon.ru/community/2059-Beta-metody-dlia-raboty-s-doveritelnoi-priemkoi/). + * Получить статус задачи грузового места + */ + carriageContainerTaskInfo(carriagev1CarriageContainerTaskInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageContainerTaskInfoRaw({ carriagev1CarriageContainerTaskInfoRequest: carriagev1CarriageContainerTaskInfoRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/CategoryAPI.d.ts b/dist/esm/apis/CategoryAPI.d.ts new file mode 100644 index 0000000..c810036 --- /dev/null +++ b/dist/esm/apis/CategoryAPI.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GetAttributeValuesRequest, V1GetAttributeValuesResponse, V1GetAttributesRequest, V1GetAttributesResponse, V1GetProductPlacementZoneInfoRequest, V1GetProductPlacementZoneInfoResponse, V1GetTreeRequest, V1GetTreeResponse, V1SearchAttributeValuesRequest, V1SearchAttributeValuesResponse } from '../models/index'; +export interface DescriptionCategoryAPIGetAttributeValuesRequest { + clientId: string; + apiKey: string; + v1GetAttributeValuesRequest: V1GetAttributeValuesRequest; +} +export interface DescriptionCategoryAPIGetAttributesRequest { + clientId: string; + apiKey: string; + v1GetAttributesRequest: V1GetAttributesRequest; +} +export interface DescriptionCategoryAPIGetTreeRequest { + clientId: string; + apiKey: string; + v1GetTreeRequest: V1GetTreeRequest; +} +export interface DescriptionCategoryAPISearchAttributeValuesRequest { + clientId: string; + apiKey: string; + v1SearchAttributeValuesRequest: V1SearchAttributeValuesRequest; +} +export interface ProductAPIGetProductPlacementZoneInfoRequest { + v1GetProductPlacementZoneInfoRequest: V1GetProductPlacementZoneInfoRequest; +} +/** + * + */ +export declare class CategoryAPI extends runtime.BaseAPI { + /** + * Возвращает справочник значений характеристики. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Справочник значений характеристики + */ + descriptionCategoryAPIGetAttributeValuesRaw(requestParameters: DescriptionCategoryAPIGetAttributeValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает справочник значений характеристики. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Справочник значений характеристики + */ + descriptionCategoryAPIGetAttributeValues(clientId: string, apiKey: string, v1GetAttributeValuesRequest: V1GetAttributeValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получение характеристик для указанных категории и типа товара. Если у `dictionary_id` значение `0`, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Запросите их методом [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * Список характеристик категории + */ + descriptionCategoryAPIGetAttributesRaw(requestParameters: DescriptionCategoryAPIGetAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получение характеристик для указанных категории и типа товара. Если у `dictionary_id` значение `0`, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Запросите их методом [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * Список характеристик категории + */ + descriptionCategoryAPIGetAttributes(clientId: string, apiKey: string, v1GetAttributesRequest: V1GetAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает категории и типы для товаров в виде дерева. Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя. + * Дерево категорий и типов товаров + */ + descriptionCategoryAPIGetTreeRaw(requestParameters: DescriptionCategoryAPIGetTreeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает категории и типы для товаров в виде дерева. Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя. + * Дерево категорий и типов товаров + */ + descriptionCategoryAPIGetTree(clientId: string, apiKey: string, v1GetTreeRequest: V1GetTreeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает справочные значения характеристики по заданному значению `value` в запросе. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Поиск по справочным значениям характеристики + */ + descriptionCategoryAPISearchAttributeValuesRaw(requestParameters: DescriptionCategoryAPISearchAttributeValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает справочные значения характеристики по заданному значению `value` в запросе. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Поиск по справочным значениям характеристики + */ + descriptionCategoryAPISearchAttributeValues(clientId: string, apiKey: string, v1SearchAttributeValuesRequest: V1SearchAttributeValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете отправить не больше 10 запросов в секунду. [Подробнее о зонах размещения в Базе знаний продавца](https://seller-edu.ozon.ru/libra/fbo/gruzomesta-i-podgotovka-k-otgruzke/k-kakoi-zone-otnositsya-tovar) + * Получить зоны размещения товаров по SKU перед поставкой + */ + productAPIGetProductPlacementZoneInfoRaw(requestParameters: ProductAPIGetProductPlacementZoneInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете отправить не больше 10 запросов в секунду. [Подробнее о зонах размещения в Базе знаний продавца](https://seller-edu.ozon.ru/libra/fbo/gruzomesta-i-podgotovka-k-otgruzke/k-kakoi-zone-otnositsya-tovar) + * Получить зоны размещения товаров по SKU перед поставкой + */ + productAPIGetProductPlacementZoneInfo(v1GetProductPlacementZoneInfoRequest: V1GetProductPlacementZoneInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/CategoryAPI.js b/dist/esm/apis/CategoryAPI.js new file mode 100644 index 0000000..a58ae0f --- /dev/null +++ b/dist/esm/apis/CategoryAPI.js @@ -0,0 +1,237 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1GetAttributeValuesRequestToJSON, V1GetAttributeValuesResponseFromJSON, V1GetAttributesRequestToJSON, V1GetAttributesResponseFromJSON, V1GetProductPlacementZoneInfoRequestToJSON, V1GetProductPlacementZoneInfoResponseFromJSON, V1GetTreeRequestToJSON, V1GetTreeResponseFromJSON, V1SearchAttributeValuesRequestToJSON, V1SearchAttributeValuesResponseFromJSON, } from '../models/index'; +/** + * + */ +export class CategoryAPI extends runtime.BaseAPI { + /** + * Возвращает справочник значений характеристики. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Справочник значений характеристики + */ + descriptionCategoryAPIGetAttributeValuesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling descriptionCategoryAPIGetAttributeValues().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling descriptionCategoryAPIGetAttributeValues().'); + } + if (requestParameters['v1GetAttributeValuesRequest'] == null) { + throw new runtime.RequiredError('v1GetAttributeValuesRequest', 'Required parameter "v1GetAttributeValuesRequest" was null or undefined when calling descriptionCategoryAPIGetAttributeValues().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/description-category/attribute/values`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetAttributeValuesRequestToJSON(requestParameters['v1GetAttributeValuesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetAttributeValuesResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает справочник значений характеристики. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Справочник значений характеристики + */ + descriptionCategoryAPIGetAttributeValues(clientId, apiKey, v1GetAttributeValuesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.descriptionCategoryAPIGetAttributeValuesRaw({ clientId: clientId, apiKey: apiKey, v1GetAttributeValuesRequest: v1GetAttributeValuesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получение характеристик для указанных категории и типа товара. Если у `dictionary_id` значение `0`, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Запросите их методом [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * Список характеристик категории + */ + descriptionCategoryAPIGetAttributesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling descriptionCategoryAPIGetAttributes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling descriptionCategoryAPIGetAttributes().'); + } + if (requestParameters['v1GetAttributesRequest'] == null) { + throw new runtime.RequiredError('v1GetAttributesRequest', 'Required parameter "v1GetAttributesRequest" was null or undefined when calling descriptionCategoryAPIGetAttributes().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/description-category/attribute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetAttributesRequestToJSON(requestParameters['v1GetAttributesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetAttributesResponseFromJSON(jsonValue)); + }); + } + /** + * Получение характеристик для указанных категории и типа товара. Если у `dictionary_id` значение `0`, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Запросите их методом [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * Список характеристик категории + */ + descriptionCategoryAPIGetAttributes(clientId, apiKey, v1GetAttributesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.descriptionCategoryAPIGetAttributesRaw({ clientId: clientId, apiKey: apiKey, v1GetAttributesRequest: v1GetAttributesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает категории и типы для товаров в виде дерева. Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя. + * Дерево категорий и типов товаров + */ + descriptionCategoryAPIGetTreeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling descriptionCategoryAPIGetTree().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling descriptionCategoryAPIGetTree().'); + } + if (requestParameters['v1GetTreeRequest'] == null) { + throw new runtime.RequiredError('v1GetTreeRequest', 'Required parameter "v1GetTreeRequest" was null or undefined when calling descriptionCategoryAPIGetTree().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/description-category/tree`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetTreeRequestToJSON(requestParameters['v1GetTreeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetTreeResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает категории и типы для товаров в виде дерева. Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя. + * Дерево категорий и типов товаров + */ + descriptionCategoryAPIGetTree(clientId, apiKey, v1GetTreeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.descriptionCategoryAPIGetTreeRaw({ clientId: clientId, apiKey: apiKey, v1GetTreeRequest: v1GetTreeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает справочные значения характеристики по заданному значению `value` в запросе. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Поиск по справочным значениям характеристики + */ + descriptionCategoryAPISearchAttributeValuesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling descriptionCategoryAPISearchAttributeValues().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling descriptionCategoryAPISearchAttributeValues().'); + } + if (requestParameters['v1SearchAttributeValuesRequest'] == null) { + throw new runtime.RequiredError('v1SearchAttributeValuesRequest', 'Required parameter "v1SearchAttributeValuesRequest" was null or undefined when calling descriptionCategoryAPISearchAttributeValues().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/description-category/attribute/values/search`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SearchAttributeValuesRequestToJSON(requestParameters['v1SearchAttributeValuesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SearchAttributeValuesResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает справочные значения характеристики по заданному значению `value` в запросе. Узнать, есть ли вложенный справочник, можно через метод [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * Поиск по справочным значениям характеристики + */ + descriptionCategoryAPISearchAttributeValues(clientId, apiKey, v1SearchAttributeValuesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.descriptionCategoryAPISearchAttributeValuesRaw({ clientId: clientId, apiKey: apiKey, v1SearchAttributeValuesRequest: v1SearchAttributeValuesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете отправить не больше 10 запросов в секунду. [Подробнее о зонах размещения в Базе знаний продавца](https://seller-edu.ozon.ru/libra/fbo/gruzomesta-i-podgotovka-k-otgruzke/k-kakoi-zone-otnositsya-tovar) + * Получить зоны размещения товаров по SKU перед поставкой + */ + productAPIGetProductPlacementZoneInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetProductPlacementZoneInfoRequest'] == null) { + throw new runtime.RequiredError('v1GetProductPlacementZoneInfoRequest', 'Required parameter "v1GetProductPlacementZoneInfoRequest" was null or undefined when calling productAPIGetProductPlacementZoneInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/placement-zone/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetProductPlacementZoneInfoRequestToJSON(requestParameters['v1GetProductPlacementZoneInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetProductPlacementZoneInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете отправить не больше 10 запросов в секунду. [Подробнее о зонах размещения в Базе знаний продавца](https://seller-edu.ozon.ru/libra/fbo/gruzomesta-i-podgotovka-k-otgruzke/k-kakoi-zone-otnositsya-tovar) + * Получить зоны размещения товаров по SKU перед поставкой + */ + productAPIGetProductPlacementZoneInfo(v1GetProductPlacementZoneInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductPlacementZoneInfoRaw({ v1GetProductPlacementZoneInfoRequest: v1GetProductPlacementZoneInfoRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/CertificationAPI.d.ts b/dist/esm/apis/CertificationAPI.d.ts new file mode 100644 index 0000000..be30671 --- /dev/null +++ b/dist/esm/apis/CertificationAPI.d.ts @@ -0,0 +1,241 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ProductBooleanResponse, ProductProductCertificateAccordanceTypesResponse, ProductProductCertificateBindRequest, ProductProductCertificateTypesResponse, ProductProductCertificationListRequest, ProductProductCertificationListResponse, V1ProductCertificateDeleteRequest, V1ProductCertificateDeleteResponse, V1ProductCertificateInfoRequest, V1ProductCertificateInfoResponse, V1ProductCertificateListRequest, V1ProductCertificateListResponse, V1ProductCertificateProductStatusListResponse, V1ProductCertificateProductsListRequest, V1ProductCertificateProductsListResponse, V1ProductCertificateRejectionReasonsListResponse, V1ProductCertificateStatusListResponse, V1ProductCertificateUnbindRequest, V1ProductCertificateUnbindResponse, V2ProductCertificateAccordanceTypesResponse, V2ProductCertificationListRequest, V2ProductCertificationListResponse } from '../models/index'; +export interface CertificateAccordanceTypesRequest { + clientId: string; + apiKey: string; +} +export interface CertificateDeleteRequest { + v1ProductCertificateDeleteRequest: V1ProductCertificateDeleteRequest; +} +export interface CertificateInfoRequest { + clientId: string; + apiKey: string; + v1ProductCertificateInfoRequest: V1ProductCertificateInfoRequest; +} +export interface CertificateListRequest { + clientId: string; + apiKey: string; + v1ProductCertificateListRequest: V1ProductCertificateListRequest; +} +export interface CertificateProductsListRequest { + clientId: string; + apiKey: string; + v1ProductCertificateProductsListRequest: V1ProductCertificateProductsListRequest | null; +} +export interface CertificateStatusListRequest { + clientId: string; + apiKey: string; +} +export interface CertificateUnbindRequest { + clientId: string; + apiKey: string; + v1ProductCertificateUnbindRequest: V1ProductCertificateUnbindRequest | null; +} +export interface ProductAPIProductCertificateAccordanceTypesRequest { + clientId: string; + apiKey: string; +} +export interface ProductAPIProductCertificateBindRequest { + clientId: string; + apiKey: string; + productProductCertificateBindRequest: ProductProductCertificateBindRequest | null; +} +export interface ProductAPIProductCertificateCreateRequest { + clientId: string; + apiKey: string; + files: Array; + name: string; + number: string; + typeCode: ProductAPIProductCertificateCreateTypeCodeEnum; + issueDate: string; + accordanceTypeCode?: ProductAPIProductCertificateCreateAccordanceTypeCodeEnum; + expireDate?: string; +} +export interface ProductAPIProductCertificateTypesRequest { + clientId: string; + apiKey: string; +} +export interface ProductAPIProductCertificationListRequest { + clientId: string; + apiKey: string; + v2ProductCertificationListRequest: V2ProductCertificationListRequest; +} +export interface ProductAPIV1ProductCertificationListRequest { + clientId: string; + apiKey: string; + productProductCertificationListRequest: ProductProductCertificationListRequest; +} +export interface ProductStatusListRequest { + clientId: string; + apiKey: string; +} +export interface RejectionReasonsListRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class CertificationAPI extends runtime.BaseAPI { + /** + * Список типов соответствия требованиям (версия 2) + */ + certificateAccordanceTypesRaw(requestParameters: CertificateAccordanceTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список типов соответствия требованиям (версия 2) + */ + certificateAccordanceTypes(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить сертификат + */ + certificateDeleteRaw(requestParameters: CertificateDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить сертификат + */ + certificateDelete(v1ProductCertificateDeleteRequest: V1ProductCertificateDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о сертификате + */ + certificateInfoRaw(requestParameters: CertificateInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о сертификате + */ + certificateInfo(clientId: string, apiKey: string, v1ProductCertificateInfoRequest: V1ProductCertificateInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список сертификатов + */ + certificateListRaw(requestParameters: CertificateListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список сертификатов + */ + certificateList(clientId: string, apiKey: string, v1ProductCertificateListRequest: V1ProductCertificateListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список товаров, привязанных к сертификату + */ + certificateProductsListRaw(requestParameters: CertificateProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список товаров, привязанных к сертификату + */ + certificateProductsList(clientId: string, apiKey: string, v1ProductCertificateProductsListRequest: V1ProductCertificateProductsListRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возможные статусы сертификатов + */ + certificateStatusListRaw(requestParameters: CertificateStatusListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возможные статусы сертификатов + */ + certificateStatusList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отвязать товар от сертификата + */ + certificateUnbindRaw(requestParameters: CertificateUnbindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отвязать товар от сертификата + */ + certificateUnbind(clientId: string, apiKey: string, v1ProductCertificateUnbindRequest: V1ProductCertificateUnbindRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список типов соответствия требованиям (версия 1) + */ + productAPIProductCertificateAccordanceTypesRaw(requestParameters: ProductAPIProductCertificateAccordanceTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список типов соответствия требованиям (версия 1) + */ + productAPIProductCertificateAccordanceTypes(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Привязать сертификат к товару + */ + productAPIProductCertificateBindRaw(requestParameters: ProductAPIProductCertificateBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Привязать сертификат к товару + */ + productAPIProductCertificateBind(clientId: string, apiKey: string, productProductCertificateBindRequest: ProductProductCertificateBindRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Добавить сертификаты для товаров + * @deprecated + */ + productAPIProductCertificateCreateRaw(requestParameters: ProductAPIProductCertificateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Добавить сертификаты для товаров + * @deprecated + */ + productAPIProductCertificateCreate(clientId: string, apiKey: string, files: Array, name: string, number: string, typeCode: ProductAPIProductCertificateCreateTypeCodeEnum, issueDate: string, accordanceTypeCode?: ProductAPIProductCertificateCreateAccordanceTypeCodeEnum, expireDate?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Справочник типов документов + */ + productAPIProductCertificateTypesRaw(requestParameters: ProductAPIProductCertificateTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Справочник типов документов + */ + productAPIProductCertificateTypes(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список сертифицируемых категорий + */ + productAPIProductCertificationListRaw(requestParameters: ProductAPIProductCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список сертифицируемых категорий + */ + productAPIProductCertificationList(clientId: string, apiKey: string, v2ProductCertificationListRequest: V2ProductCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Список сертифицируемых категорий + */ + productAPIV1ProductCertificationListRaw(requestParameters: ProductAPIV1ProductCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Список сертифицируемых категорий + */ + productAPIV1ProductCertificationList(clientId: string, apiKey: string, productProductCertificationListRequest: ProductProductCertificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка возможных статусов товаров при их привязке к сертификату. + * Список возможных статусов товаров + */ + productStatusListRaw(requestParameters: ProductStatusListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка возможных статусов товаров при их привязке к сертификату. + * Список возможных статусов товаров + */ + productStatusList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возможные причины отклонения сертификата + */ + rejectionReasonsListRaw(requestParameters: RejectionReasonsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возможные причины отклонения сертификата + */ + rejectionReasonsList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * @export + */ +export declare const ProductAPIProductCertificateCreateTypeCodeEnum: { + readonly certificate_of_conformity: "certificate_of_conformity"; + readonly declaration: "declaration"; + readonly certificate_of_registration: "certificate_of_registration"; + readonly registration_certificate: "registration_certificate"; + readonly refused_letter: "refused_letter"; + readonly veterinary_cover_document: "veterinary_cover_document"; + readonly safety_data_sheet: "safety_data_sheet"; +}; +export type ProductAPIProductCertificateCreateTypeCodeEnum = typeof ProductAPIProductCertificateCreateTypeCodeEnum[keyof typeof ProductAPIProductCertificateCreateTypeCodeEnum]; +/** + * @export + */ +export declare const ProductAPIProductCertificateCreateAccordanceTypeCodeEnum: { + readonly technical_regulations_rf: "technical_regulations_rf"; + readonly technical_regulations_cu: "technical_regulations_cu"; + readonly gost: "gost"; +}; +export type ProductAPIProductCertificateCreateAccordanceTypeCodeEnum = typeof ProductAPIProductCertificateCreateAccordanceTypeCodeEnum[keyof typeof ProductAPIProductCertificateCreateAccordanceTypeCodeEnum]; diff --git a/dist/esm/apis/CertificationAPI.js b/dist/esm/apis/CertificationAPI.js new file mode 100644 index 0000000..be64437 --- /dev/null +++ b/dist/esm/apis/CertificationAPI.js @@ -0,0 +1,695 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ProductBooleanResponseFromJSON, ProductProductCertificateAccordanceTypesResponseFromJSON, ProductProductCertificateBindRequestToJSON, ProductProductCertificateTypesResponseFromJSON, ProductProductCertificationListRequestToJSON, ProductProductCertificationListResponseFromJSON, V1ProductCertificateDeleteRequestToJSON, V1ProductCertificateDeleteResponseFromJSON, V1ProductCertificateInfoRequestToJSON, V1ProductCertificateInfoResponseFromJSON, V1ProductCertificateListRequestToJSON, V1ProductCertificateListResponseFromJSON, V1ProductCertificateProductStatusListResponseFromJSON, V1ProductCertificateProductsListRequestToJSON, V1ProductCertificateProductsListResponseFromJSON, V1ProductCertificateRejectionReasonsListResponseFromJSON, V1ProductCertificateStatusListResponseFromJSON, V1ProductCertificateUnbindRequestToJSON, V1ProductCertificateUnbindResponseFromJSON, V2ProductCertificateAccordanceTypesResponseFromJSON, V2ProductCertificationListRequestToJSON, V2ProductCertificationListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class CertificationAPI extends runtime.BaseAPI { + /** + * Список типов соответствия требованиям (версия 2) + */ + certificateAccordanceTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateAccordanceTypes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateAccordanceTypes().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certificate/accordance-types/list`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2ProductCertificateAccordanceTypesResponseFromJSON(jsonValue)); + }); + } + /** + * Список типов соответствия требованиям (версия 2) + */ + certificateAccordanceTypes(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateAccordanceTypesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить сертификат + */ + certificateDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ProductCertificateDeleteRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateDeleteRequest', 'Required parameter "v1ProductCertificateDeleteRequest" was null or undefined when calling certificateDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/certificate/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductCertificateDeleteRequestToJSON(requestParameters['v1ProductCertificateDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductCertificateDeleteResponseFromJSON(jsonValue)); + }); + } + /** + * Удалить сертификат + */ + certificateDelete(v1ProductCertificateDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateDeleteRaw({ v1ProductCertificateDeleteRequest: v1ProductCertificateDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о сертификате + */ + certificateInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateInfo().'); + } + if (requestParameters['v1ProductCertificateInfoRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateInfoRequest', 'Required parameter "v1ProductCertificateInfoRequest" was null or undefined when calling certificateInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductCertificateInfoRequestToJSON(requestParameters['v1ProductCertificateInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductCertificateInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Информация о сертификате + */ + certificateInfo(clientId, apiKey, v1ProductCertificateInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateInfoRaw({ clientId: clientId, apiKey: apiKey, v1ProductCertificateInfoRequest: v1ProductCertificateInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список сертификатов + */ + certificateListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateList().'); + } + if (requestParameters['v1ProductCertificateListRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateListRequest', 'Required parameter "v1ProductCertificateListRequest" was null or undefined when calling certificateList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductCertificateListRequestToJSON(requestParameters['v1ProductCertificateListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductCertificateListResponseFromJSON(jsonValue)); + }); + } + /** + * Список сертификатов + */ + certificateList(clientId, apiKey, v1ProductCertificateListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateListRaw({ clientId: clientId, apiKey: apiKey, v1ProductCertificateListRequest: v1ProductCertificateListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список товаров, привязанных к сертификату + */ + certificateProductsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateProductsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateProductsList().'); + } + if (requestParameters['v1ProductCertificateProductsListRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateProductsListRequest', 'Required parameter "v1ProductCertificateProductsListRequest" was null or undefined when calling certificateProductsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/products/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductCertificateProductsListRequestToJSON(requestParameters['v1ProductCertificateProductsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductCertificateProductsListResponseFromJSON(jsonValue)); + }); + } + /** + * Список товаров, привязанных к сертификату + */ + certificateProductsList(clientId, apiKey, v1ProductCertificateProductsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateProductsListRaw({ clientId: clientId, apiKey: apiKey, v1ProductCertificateProductsListRequest: v1ProductCertificateProductsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возможные статусы сертификатов + */ + certificateStatusListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateStatusList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateStatusList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/status/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductCertificateStatusListResponseFromJSON(jsonValue)); + }); + } + /** + * Возможные статусы сертификатов + */ + certificateStatusList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateStatusListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Отвязать товар от сертификата + */ + certificateUnbindRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling certificateUnbind().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling certificateUnbind().'); + } + if (requestParameters['v1ProductCertificateUnbindRequest'] == null) { + throw new runtime.RequiredError('v1ProductCertificateUnbindRequest', 'Required parameter "v1ProductCertificateUnbindRequest" was null or undefined when calling certificateUnbind().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/unbind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductCertificateUnbindRequestToJSON(requestParameters['v1ProductCertificateUnbindRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductCertificateUnbindResponseFromJSON(jsonValue)); + }); + } + /** + * Отвязать товар от сертификата + */ + certificateUnbind(clientId, apiKey, v1ProductCertificateUnbindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.certificateUnbindRaw({ clientId: clientId, apiKey: apiKey, v1ProductCertificateUnbindRequest: v1ProductCertificateUnbindRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список типов соответствия требованиям (версия 1) + */ + productAPIProductCertificateAccordanceTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificateAccordanceTypes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificateAccordanceTypes().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/accordance-types`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductProductCertificateAccordanceTypesResponseFromJSON(jsonValue)); + }); + } + /** + * Список типов соответствия требованиям (версия 1) + */ + productAPIProductCertificateAccordanceTypes(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificateAccordanceTypesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Привязать сертификат к товару + */ + productAPIProductCertificateBindRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificateBind().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificateBind().'); + } + if (requestParameters['productProductCertificateBindRequest'] == null) { + throw new runtime.RequiredError('productProductCertificateBindRequest', 'Required parameter "productProductCertificateBindRequest" was null or undefined when calling productAPIProductCertificateBind().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/bind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductProductCertificateBindRequestToJSON(requestParameters['productProductCertificateBindRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductBooleanResponseFromJSON(jsonValue)); + }); + } + /** + * Привязать сертификат к товару + */ + productAPIProductCertificateBind(clientId, apiKey, productProductCertificateBindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificateBindRaw({ clientId: clientId, apiKey: apiKey, productProductCertificateBindRequest: productProductCertificateBindRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Добавить сертификаты для товаров + * @deprecated + */ + productAPIProductCertificateCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['files'] == null) { + throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['name'] == null) { + throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['number'] == null) { + throw new runtime.RequiredError('number', 'Required parameter "number" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['typeCode'] == null) { + throw new runtime.RequiredError('typeCode', 'Required parameter "typeCode" was null or undefined when calling productAPIProductCertificateCreate().'); + } + if (requestParameters['issueDate'] == null) { + throw new runtime.RequiredError('issueDate', 'Required parameter "issueDate" was null or undefined when calling productAPIProductCertificateCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const consumes = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + let formParams; + let useForm = false; + if (useForm) { + formParams = new FormData(); + } + else { + formParams = new URLSearchParams(); + } + if (requestParameters['files'] != null) { + formParams.append('files', requestParameters['files'].join(runtime.COLLECTION_FORMATS["csv"])); + } + if (requestParameters['name'] != null) { + formParams.append('name', requestParameters['name']); + } + if (requestParameters['number'] != null) { + formParams.append('number', requestParameters['number']); + } + if (requestParameters['typeCode'] != null) { + formParams.append('type_code', requestParameters['typeCode']); + } + if (requestParameters['accordanceTypeCode'] != null) { + formParams.append('accordance_type_code', requestParameters['accordanceTypeCode']); + } + if (requestParameters['issueDate'] != null) { + formParams.append('issue_date', requestParameters['issueDate']); + } + if (requestParameters['expireDate'] != null) { + formParams.append('expire_date', requestParameters['expireDate']); + } + const response = yield this.request({ + path: `/v1/product/certificate/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } + else { + return new runtime.TextApiResponse(response); + } + }); + } + /** + * + * Добавить сертификаты для товаров + * @deprecated + */ + productAPIProductCertificateCreate(clientId, apiKey, files, name, number, typeCode, issueDate, accordanceTypeCode, expireDate, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificateCreateRaw({ clientId: clientId, apiKey: apiKey, files: files, name: name, number: number, typeCode: typeCode, issueDate: issueDate, accordanceTypeCode: accordanceTypeCode, expireDate: expireDate }, initOverrides); + return yield response.value(); + }); + } + /** + * Справочник типов документов + */ + productAPIProductCertificateTypesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificateTypes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificateTypes().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/types`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductProductCertificateTypesResponseFromJSON(jsonValue)); + }); + } + /** + * Справочник типов документов + */ + productAPIProductCertificateTypes(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificateTypesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Список сертифицируемых категорий + */ + productAPIProductCertificationListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductCertificationList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductCertificationList().'); + } + if (requestParameters['v2ProductCertificationListRequest'] == null) { + throw new runtime.RequiredError('v2ProductCertificationListRequest', 'Required parameter "v2ProductCertificationListRequest" was null or undefined when calling productAPIProductCertificationList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/certification/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2ProductCertificationListRequestToJSON(requestParameters['v2ProductCertificationListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2ProductCertificationListResponseFromJSON(jsonValue)); + }); + } + /** + * Список сертифицируемых категорий + */ + productAPIProductCertificationList(clientId, apiKey, v2ProductCertificationListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductCertificationListRaw({ clientId: clientId, apiKey: apiKey, v2ProductCertificationListRequest: v2ProductCertificationListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Список сертифицируемых категорий + */ + productAPIV1ProductCertificationListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIV1ProductCertificationList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIV1ProductCertificationList().'); + } + if (requestParameters['productProductCertificationListRequest'] == null) { + throw new runtime.RequiredError('productProductCertificationListRequest', 'Required parameter "productProductCertificationListRequest" was null or undefined when calling productAPIV1ProductCertificationList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certification/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductProductCertificationListRequestToJSON(requestParameters['productProductCertificationListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductProductCertificationListResponseFromJSON(jsonValue)); + }); + } + /** + * + * Список сертифицируемых категорий + */ + productAPIV1ProductCertificationList(clientId, apiKey, productProductCertificationListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIV1ProductCertificationListRaw({ clientId: clientId, apiKey: apiKey, productProductCertificationListRequest: productProductCertificationListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка возможных статусов товаров при их привязке к сертификату. + * Список возможных статусов товаров + */ + productStatusListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productStatusList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productStatusList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/product_status/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductCertificateProductStatusListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка возможных статусов товаров при их привязке к сертификату. + * Список возможных статусов товаров + */ + productStatusList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productStatusListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Возможные причины отклонения сертификата + */ + rejectionReasonsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling rejectionReasonsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling rejectionReasonsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/certificate/rejection_reasons/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductCertificateRejectionReasonsListResponseFromJSON(jsonValue)); + }); + } + /** + * Возможные причины отклонения сертификата + */ + rejectionReasonsList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rejectionReasonsListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} +/** + * @export + */ +export const ProductAPIProductCertificateCreateTypeCodeEnum = { + certificate_of_conformity: 'certificate_of_conformity', + declaration: 'declaration', + certificate_of_registration: 'certificate_of_registration', + registration_certificate: 'registration_certificate', + refused_letter: 'refused_letter', + veterinary_cover_document: 'veterinary_cover_document', + safety_data_sheet: 'safety_data_sheet' +}; +/** + * @export + */ +export const ProductAPIProductCertificateCreateAccordanceTypeCodeEnum = { + technical_regulations_rf: 'technical_regulations_rf', + technical_regulations_cu: 'technical_regulations_cu', + gost: 'gost' +}; diff --git a/dist/esm/apis/ChatAPI.d.ts b/dist/esm/apis/ChatAPI.d.ts new file mode 100644 index 0000000..2257573 --- /dev/null +++ b/dist/esm/apis/ChatAPI.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ChatChatSendFileRequest, ChatChatSendFileResponse, V3ChatHistoryRequest, V3ChatHistoryResponse, V3ChatList, V3ChatListResponse } from '../models/index'; +export interface ChatAPIChatHistoryV3Request { + clientId: string; + apiKey: string; + v3ChatHistoryRequest: V3ChatHistoryRequest; +} +export interface ChatAPIChatListV3Request { + clientId: string; + apiKey: string; + v3ChatList: V3ChatList; +} +export interface ChatAPIChatSendFileRequest { + clientId: string; + apiKey: string; + chatChatSendFileRequest: ChatChatSendFileRequest; +} +/** + * + */ +export declare class ChatAPI extends runtime.BaseAPI { + /** + * Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * История чата + */ + chatAPIChatHistoryV3Raw(requestParameters: ChatAPIChatHistoryV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * История чата + */ + chatAPIChatHistoryV3(clientId: string, apiKey: string, v3ChatHistoryRequest: V3ChatHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает информацию о чатах по указанным фильтрам. + * Список чатов + */ + chatAPIChatListV3Raw(requestParameters: ChatAPIChatListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию о чатах по указанным фильтрам. + * Список чатов + */ + chatAPIChatListV3(clientId: string, apiKey: string, v3ChatList: V3ChatList, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отправляет файл в существующий чат по его идентификатору.

Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить файл + */ + chatAPIChatSendFileRaw(requestParameters: ChatAPIChatSendFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отправляет файл в существующий чат по его идентификатору.

Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить файл + */ + chatAPIChatSendFile(clientId: string, apiKey: string, chatChatSendFileRequest: ChatChatSendFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/ChatAPI.js b/dist/esm/apis/ChatAPI.js new file mode 100644 index 0000000..8cf6f27 --- /dev/null +++ b/dist/esm/apis/ChatAPI.js @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ChatChatSendFileRequestToJSON, ChatChatSendFileResponseFromJSON, V3ChatHistoryRequestToJSON, V3ChatHistoryResponseFromJSON, V3ChatListToJSON, V3ChatListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class ChatAPI extends runtime.BaseAPI { + /** + * Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * История чата + */ + chatAPIChatHistoryV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatHistoryV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatHistoryV3().'); + } + if (requestParameters['v3ChatHistoryRequest'] == null) { + throw new runtime.RequiredError('v3ChatHistoryRequest', 'Required parameter "v3ChatHistoryRequest" was null or undefined when calling chatAPIChatHistoryV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/chat/history`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V3ChatHistoryRequestToJSON(requestParameters['v3ChatHistoryRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3ChatHistoryResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * История чата + */ + chatAPIChatHistoryV3(clientId, apiKey, v3ChatHistoryRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatHistoryV3Raw({ clientId: clientId, apiKey: apiKey, v3ChatHistoryRequest: v3ChatHistoryRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает информацию о чатах по указанным фильтрам. + * Список чатов + */ + chatAPIChatListV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatListV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatListV3().'); + } + if (requestParameters['v3ChatList'] == null) { + throw new runtime.RequiredError('v3ChatList', 'Required parameter "v3ChatList" was null or undefined when calling chatAPIChatListV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/chat/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V3ChatListToJSON(requestParameters['v3ChatList']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3ChatListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает информацию о чатах по указанным фильтрам. + * Список чатов + */ + chatAPIChatListV3(clientId, apiKey, v3ChatList, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatListV3Raw({ clientId: clientId, apiKey: apiKey, v3ChatList: v3ChatList }, initOverrides); + return yield response.value(); + }); + } + /** + * Отправляет файл в существующий чат по его идентификатору.

Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить файл + */ + chatAPIChatSendFileRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatSendFile().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatSendFile().'); + } + if (requestParameters['chatChatSendFileRequest'] == null) { + throw new runtime.RequiredError('chatChatSendFileRequest', 'Required parameter "chatChatSendFileRequest" was null or undefined when calling chatAPIChatSendFile().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/chat/send/file`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ChatChatSendFileRequestToJSON(requestParameters['chatChatSendFileRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ChatChatSendFileResponseFromJSON(jsonValue)); + }); + } + /** + * Отправляет файл в существующий чат по его идентификатору.

Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить файл + */ + chatAPIChatSendFile(clientId, apiKey, chatChatSendFileRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatSendFileRaw({ clientId: clientId, apiKey: apiKey, chatChatSendFileRequest: chatChatSendFileRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DeliveryAPI.d.ts b/dist/esm/apis/DeliveryAPI.d.ts new file mode 100644 index 0000000..57e6df6 --- /dev/null +++ b/dist/esm/apis/DeliveryAPI.d.ts @@ -0,0 +1,83 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1DeliveryCheckRequest, V1DeliveryCheckResponse, V1DeliveryCheckoutRequest, V1DeliveryCheckoutResponse, V1DeliveryMapRequest, V1DeliveryMapResponse, V1DeliveryPointInfoRequest, V1DeliveryPointInfoResponse, V1DeliveryPointListResponse } from '../models/index'; +export interface DeliveryAPIDeliveryPointListRequest { + body?: object; +} +export interface DeliveryCheckRequest { + v1DeliveryCheckRequest?: V1DeliveryCheckRequest; +} +export interface DeliveryCheckoutRequest { + v1DeliveryCheckoutRequest: V1DeliveryCheckoutRequest; +} +export interface DeliveryMapRequest { + v1DeliveryMapRequest?: V1DeliveryMapRequest; +} +export interface DeliveryPointInfoRequest { + v1DeliveryPointInfoRequest?: V1DeliveryPointInfoRequest; +} +/** + * + */ +export declare class DeliveryAPI extends runtime.BaseAPI { + /** + * Возвращает координаты всех точек самовывоза без объединения в кластеры. + * Получить список точек самовывоза + */ + deliveryAPIDeliveryPointListRaw(requestParameters: DeliveryAPIDeliveryPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает координаты всех точек самовывоза без объединения в кластеры. + * Получить список точек самовывоза + */ + deliveryAPIDeliveryPointList(body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Проверяет доступность доставки Ozon для покупателя. Не учитывает ограничения по сумме покупки, категории товаров и географии. + * Проверить доступность доставки для покупателя + */ + deliveryCheckRaw(requestParameters: DeliveryCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Проверяет доступность доставки Ozon для покупателя. Не учитывает ограничения по сумме покупки, категории товаров и географии. + * Проверить доступность доставки для покупателя + */ + deliveryCheck(v1DeliveryCheckRequest?: V1DeliveryCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Проверяет доступность доставки товаров на указанный адрес или в точку выдачи и отображает сроки доставки. Проверяйте наличие товаров и маршруты во время оформления заказа, чтобы точно рассчитать сроки доставки. + * Получить доступные варианты доставки + */ + deliveryCheckoutRaw(requestParameters: DeliveryCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Проверяет доступность доставки товаров на указанный адрес или в точку выдачи и отображает сроки доставки. Проверяйте наличие товаров и маршруты во время оформления заказа, чтобы точно рассчитать сроки доставки. + * Получить доступные варианты доставки + */ + deliveryCheckout(v1DeliveryCheckoutRequest: V1DeliveryCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает объединённые кластеры точек самовывоза на области из параметра `viewport`. Используйте значения из параметра `clusters.viewport`, чтобы получить список точек или мелких кластеров внутри большого кластера. Используйте метод [/v1/delivery/point/info](#operation/DeliveryPointInfo), чтобы получить информацию о конкретной точке самовывоза. + * Отрисовать точки на карте + */ + deliveryMapRaw(requestParameters: DeliveryMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает объединённые кластеры точек самовывоза на области из параметра `viewport`. Используйте значения из параметра `clusters.viewport`, чтобы получить список точек или мелких кластеров внутри большого кластера. Используйте метод [/v1/delivery/point/info](#operation/DeliveryPointInfo), чтобы получить информацию о конкретной точке самовывоза. + * Отрисовать точки на карте + */ + deliveryMap(v1DeliveryMapRequest?: V1DeliveryMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает подробную информацию о точке самовывоза для пользователя. + * Получить информацию о точке самовывоза + */ + deliveryPointInfoRaw(requestParameters: DeliveryPointInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает подробную информацию о точке самовывоза для пользователя. + * Получить информацию о точке самовывоза + */ + deliveryPointInfo(v1DeliveryPointInfoRequest?: V1DeliveryPointInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/DeliveryAPI.js b/dist/esm/apis/DeliveryAPI.js new file mode 100644 index 0000000..1d9d4c0 --- /dev/null +++ b/dist/esm/apis/DeliveryAPI.js @@ -0,0 +1,177 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1DeliveryCheckRequestToJSON, V1DeliveryCheckResponseFromJSON, V1DeliveryCheckoutRequestToJSON, V1DeliveryCheckoutResponseFromJSON, V1DeliveryMapRequestToJSON, V1DeliveryMapResponseFromJSON, V1DeliveryPointInfoRequestToJSON, V1DeliveryPointInfoResponseFromJSON, V1DeliveryPointListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class DeliveryAPI extends runtime.BaseAPI { + /** + * Возвращает координаты всех точек самовывоза без объединения в кластеры. + * Получить список точек самовывоза + */ + deliveryAPIDeliveryPointListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/delivery/point/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DeliveryPointListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает координаты всех точек самовывоза без объединения в кластеры. + * Получить список точек самовывоза + */ + deliveryAPIDeliveryPointList(body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryAPIDeliveryPointListRaw({ body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Проверяет доступность доставки Ozon для покупателя. Не учитывает ограничения по сумме покупки, категории товаров и географии. + * Проверить доступность доставки для покупателя + */ + deliveryCheckRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/delivery/check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DeliveryCheckRequestToJSON(requestParameters['v1DeliveryCheckRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DeliveryCheckResponseFromJSON(jsonValue)); + }); + } + /** + * Проверяет доступность доставки Ozon для покупателя. Не учитывает ограничения по сумме покупки, категории товаров и географии. + * Проверить доступность доставки для покупателя + */ + deliveryCheck(v1DeliveryCheckRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryCheckRaw({ v1DeliveryCheckRequest: v1DeliveryCheckRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Проверяет доступность доставки товаров на указанный адрес или в точку выдачи и отображает сроки доставки. Проверяйте наличие товаров и маршруты во время оформления заказа, чтобы точно рассчитать сроки доставки. + * Получить доступные варианты доставки + */ + deliveryCheckoutRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1DeliveryCheckoutRequest'] == null) { + throw new runtime.RequiredError('v1DeliveryCheckoutRequest', 'Required parameter "v1DeliveryCheckoutRequest" was null or undefined when calling deliveryCheckout().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/delivery/checkout`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DeliveryCheckoutRequestToJSON(requestParameters['v1DeliveryCheckoutRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DeliveryCheckoutResponseFromJSON(jsonValue)); + }); + } + /** + * Проверяет доступность доставки товаров на указанный адрес или в точку выдачи и отображает сроки доставки. Проверяйте наличие товаров и маршруты во время оформления заказа, чтобы точно рассчитать сроки доставки. + * Получить доступные варианты доставки + */ + deliveryCheckout(v1DeliveryCheckoutRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryCheckoutRaw({ v1DeliveryCheckoutRequest: v1DeliveryCheckoutRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает объединённые кластеры точек самовывоза на области из параметра `viewport`. Используйте значения из параметра `clusters.viewport`, чтобы получить список точек или мелких кластеров внутри большого кластера. Используйте метод [/v1/delivery/point/info](#operation/DeliveryPointInfo), чтобы получить информацию о конкретной точке самовывоза. + * Отрисовать точки на карте + */ + deliveryMapRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/delivery/map`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DeliveryMapRequestToJSON(requestParameters['v1DeliveryMapRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DeliveryMapResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает объединённые кластеры точек самовывоза на области из параметра `viewport`. Используйте значения из параметра `clusters.viewport`, чтобы получить список точек или мелких кластеров внутри большого кластера. Используйте метод [/v1/delivery/point/info](#operation/DeliveryPointInfo), чтобы получить информацию о конкретной точке самовывоза. + * Отрисовать точки на карте + */ + deliveryMap(v1DeliveryMapRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryMapRaw({ v1DeliveryMapRequest: v1DeliveryMapRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает подробную информацию о точке самовывоза для пользователя. + * Получить информацию о точке самовывоза + */ + deliveryPointInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/delivery/point/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DeliveryPointInfoRequestToJSON(requestParameters['v1DeliveryPointInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DeliveryPointInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает подробную информацию о точке самовывоза для пользователя. + * Получить информацию о точке самовывоза + */ + deliveryPointInfo(v1DeliveryPointInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.deliveryPointInfoRaw({ v1DeliveryPointInfoRequest: v1DeliveryPointInfoRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DeliveryFBP.d.ts b/dist/esm/apis/DeliveryFBP.d.ts new file mode 100644 index 0000000..f2a7495 --- /dev/null +++ b/dist/esm/apis/DeliveryFBP.d.ts @@ -0,0 +1,163 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PostingV1PostingFbpListRequest, PostingV1PostingFbpListResponse, V1FbpArchiveGetRequest, V1FbpArchiveGetResponse, V1FbpArchiveListRequest, V1FbpArchiveListResponse, V1FbpCheckActStateRequest, V1FbpCheckActStateResponse, V1FbpCheckConsignmentNoteStateRequest, V1FbpCheckConsignmentNoteStateResponse, V1FbpCreateActRequest, V1FbpCreateActResponse, V1FbpCreateConsignmentNoteRequest, V1FbpCreateConsignmentNoteResponse, V1FbpCreateLabelRequest, V1FbpCreateLabelResponse, V1FbpGetLabelRequest, V1FbpGetLabelResponse, V1FbpOrderGetRequest, V1FbpOrderGetResponse, V1FbpOrderListRequest, V1FbpOrderListResponse } from '../models/index'; +export interface FbpAPIFbpArchiveGetRequest { + v1FbpArchiveGetRequest?: V1FbpArchiveGetRequest; +} +export interface FbpAPIFbpArchiveListRequest { + v1FbpArchiveListRequest?: V1FbpArchiveListRequest; +} +export interface FbpAPIFbpCheckActStateRequest { + v1FbpCheckActStateRequest: V1FbpCheckActStateRequest; +} +export interface FbpAPIFbpCheckConsignmentNoteStateRequest { + v1FbpCheckConsignmentNoteStateRequest: V1FbpCheckConsignmentNoteStateRequest; +} +export interface FbpAPIFbpCreateActRequest { + v1FbpCreateActRequest: V1FbpCreateActRequest; +} +export interface FbpAPIFbpCreateConsignmentNoteRequest { + v1FbpCreateConsignmentNoteRequest: V1FbpCreateConsignmentNoteRequest; +} +export interface FbpAPIFbpCreateLabelRequest { + v1FbpCreateLabelRequest?: V1FbpCreateLabelRequest; +} +export interface FbpAPIFbpGetLabelRequest { + v1FbpGetLabelRequest?: V1FbpGetLabelRequest; +} +export interface FbpAPIFbpOrderGetRequest { + v1FbpOrderGetRequest: V1FbpOrderGetRequest; +} +export interface FbpAPIFbpOrderListRequest { + v1FbpOrderListRequest: V1FbpOrderListRequest; +} +export interface PostingFbpListRequest { + clientId: string; + apiKey: string; + postingV1PostingFbpListRequest: PostingV1PostingFbpListRequest; +} +/** + * + */ +export declare class DeliveryFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о завершённой поставке + */ + fbpAPIFbpArchiveGetRaw(requestParameters: FbpAPIFbpArchiveGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о завершённой поставке + */ + fbpAPIFbpArchiveGet(v1FbpArchiveGetRequest?: V1FbpArchiveGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список завершённых поставок + */ + fbpAPIFbpArchiveListRaw(requestParameters: FbpAPIFbpArchiveListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список завершённых поставок + */ + fbpAPIFbpArchiveList(v1FbpArchiveListRequest?: V1FbpArchiveListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации акта приёмки + */ + fbpAPIFbpCheckActStateRaw(requestParameters: FbpAPIFbpCheckActStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации акта приёмки + */ + fbpAPIFbpCheckActState(v1FbpCheckActStateRequest: V1FbpCheckActStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации транспортной накладной + */ + fbpAPIFbpCheckConsignmentNoteStateRaw(requestParameters: FbpAPIFbpCheckConsignmentNoteStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации транспортной накладной + */ + fbpAPIFbpCheckConsignmentNoteState(v1FbpCheckConsignmentNoteStateRequest: V1FbpCheckConsignmentNoteStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать акт приёмки + */ + fbpAPIFbpCreateActRaw(requestParameters: FbpAPIFbpCreateActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать акт приёмки + */ + fbpAPIFbpCreateAct(v1FbpCreateActRequest: V1FbpCreateActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать транспортную накладную + */ + fbpAPIFbpCreateConsignmentNoteRaw(requestParameters: FbpAPIFbpCreateConsignmentNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать транспортную накладную + */ + fbpAPIFbpCreateConsignmentNote(v1FbpCreateConsignmentNoteRequest: V1FbpCreateConsignmentNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Cоздать задание на генерацию этикеток + */ + fbpAPIFbpCreateLabelRaw(requestParameters: FbpAPIFbpCreateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Cоздать задание на генерацию этикеток + */ + fbpAPIFbpCreateLabel(v1FbpCreateLabelRequest?: V1FbpCreateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус задания на генерацию этикеток + */ + fbpAPIFbpGetLabelRaw(requestParameters: FbpAPIFbpGetLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус задания на генерацию этикеток + */ + fbpAPIFbpGetLabel(v1FbpGetLabelRequest?: V1FbpGetLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о конкретной поставке + */ + fbpAPIFbpOrderGetRaw(requestParameters: FbpAPIFbpOrderGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о конкретной поставке + */ + fbpAPIFbpOrderGet(v1FbpOrderGetRequest: V1FbpOrderGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список поставок + */ + fbpAPIFbpOrderListRaw(requestParameters: FbpAPIFbpOrderListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список поставок + */ + fbpAPIFbpOrderList(v1FbpOrderListRequest: V1FbpOrderListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2054-Novyi-beta-metod-dlia-raboty-s-FBP-postingami-v-Seller-API/ ) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingFbpListRaw(requestParameters: PostingFbpListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2054-Novyi-beta-metod-dlia-raboty-s-FBP-postingami-v-Seller-API/ ) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingFbpList(clientId: string, apiKey: string, postingV1PostingFbpListRequest: PostingV1PostingFbpListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/DeliveryFBP.js b/dist/esm/apis/DeliveryFBP.js new file mode 100644 index 0000000..437a3f3 --- /dev/null +++ b/dist/esm/apis/DeliveryFBP.js @@ -0,0 +1,381 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { PostingV1PostingFbpListRequestToJSON, PostingV1PostingFbpListResponseFromJSON, V1FbpArchiveGetRequestToJSON, V1FbpArchiveGetResponseFromJSON, V1FbpArchiveListRequestToJSON, V1FbpArchiveListResponseFromJSON, V1FbpCheckActStateRequestToJSON, V1FbpCheckActStateResponseFromJSON, V1FbpCheckConsignmentNoteStateRequestToJSON, V1FbpCheckConsignmentNoteStateResponseFromJSON, V1FbpCreateActRequestToJSON, V1FbpCreateActResponseFromJSON, V1FbpCreateConsignmentNoteRequestToJSON, V1FbpCreateConsignmentNoteResponseFromJSON, V1FbpCreateLabelRequestToJSON, V1FbpCreateLabelResponseFromJSON, V1FbpGetLabelRequestToJSON, V1FbpGetLabelResponseFromJSON, V1FbpOrderGetRequestToJSON, V1FbpOrderGetResponseFromJSON, V1FbpOrderListRequestToJSON, V1FbpOrderListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class DeliveryFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о завершённой поставке + */ + fbpAPIFbpArchiveGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/archive/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpArchiveGetRequestToJSON(requestParameters['v1FbpArchiveGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpArchiveGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о завершённой поставке + */ + fbpAPIFbpArchiveGet(v1FbpArchiveGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpArchiveGetRaw({ v1FbpArchiveGetRequest: v1FbpArchiveGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список завершённых поставок + */ + fbpAPIFbpArchiveListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/archive/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpArchiveListRequestToJSON(requestParameters['v1FbpArchiveListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpArchiveListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список завершённых поставок + */ + fbpAPIFbpArchiveList(v1FbpArchiveListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpArchiveListRaw({ v1FbpArchiveListRequest: v1FbpArchiveListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации акта приёмки + */ + fbpAPIFbpCheckActStateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpCheckActStateRequest'] == null) { + throw new runtime.RequiredError('v1FbpCheckActStateRequest', 'Required parameter "v1FbpCheckActStateRequest" was null or undefined when calling fbpAPIFbpCheckActState().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/act-from/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpCheckActStateRequestToJSON(requestParameters['v1FbpCheckActStateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpCheckActStateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации акта приёмки + */ + fbpAPIFbpCheckActState(v1FbpCheckActStateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCheckActStateRaw({ v1FbpCheckActStateRequest: v1FbpCheckActStateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации транспортной накладной + */ + fbpAPIFbpCheckConsignmentNoteStateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpCheckConsignmentNoteStateRequest'] == null) { + throw new runtime.RequiredError('v1FbpCheckConsignmentNoteStateRequest', 'Required parameter "v1FbpCheckConsignmentNoteStateRequest" was null or undefined when calling fbpAPIFbpCheckConsignmentNoteState().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/act-to/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpCheckConsignmentNoteStateRequestToJSON(requestParameters['v1FbpCheckConsignmentNoteStateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpCheckConsignmentNoteStateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус генерации транспортной накладной + */ + fbpAPIFbpCheckConsignmentNoteState(v1FbpCheckConsignmentNoteStateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCheckConsignmentNoteStateRaw({ v1FbpCheckConsignmentNoteStateRequest: v1FbpCheckConsignmentNoteStateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать акт приёмки + */ + fbpAPIFbpCreateActRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpCreateActRequest'] == null) { + throw new runtime.RequiredError('v1FbpCreateActRequest', 'Required parameter "v1FbpCreateActRequest" was null or undefined when calling fbpAPIFbpCreateAct().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/act-from/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpCreateActRequestToJSON(requestParameters['v1FbpCreateActRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpCreateActResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать акт приёмки + */ + fbpAPIFbpCreateAct(v1FbpCreateActRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCreateActRaw({ v1FbpCreateActRequest: v1FbpCreateActRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать транспортную накладную + */ + fbpAPIFbpCreateConsignmentNoteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpCreateConsignmentNoteRequest'] == null) { + throw new runtime.RequiredError('v1FbpCreateConsignmentNoteRequest', 'Required parameter "v1FbpCreateConsignmentNoteRequest" was null or undefined when calling fbpAPIFbpCreateConsignmentNote().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/act-to/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpCreateConsignmentNoteRequestToJSON(requestParameters['v1FbpCreateConsignmentNoteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpCreateConsignmentNoteResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Сгенерировать транспортную накладную + */ + fbpAPIFbpCreateConsignmentNote(v1FbpCreateConsignmentNoteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCreateConsignmentNoteRaw({ v1FbpCreateConsignmentNoteRequest: v1FbpCreateConsignmentNoteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Cоздать задание на генерацию этикеток + */ + fbpAPIFbpCreateLabelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/label/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpCreateLabelRequestToJSON(requestParameters['v1FbpCreateLabelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpCreateLabelResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Cоздать задание на генерацию этикеток + */ + fbpAPIFbpCreateLabel(v1FbpCreateLabelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpCreateLabelRaw({ v1FbpCreateLabelRequest: v1FbpCreateLabelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус задания на генерацию этикеток + */ + fbpAPIFbpGetLabelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/label/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpGetLabelRequestToJSON(requestParameters['v1FbpGetLabelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpGetLabelResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить статус задания на генерацию этикеток + */ + fbpAPIFbpGetLabel(v1FbpGetLabelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpGetLabelRaw({ v1FbpGetLabelRequest: v1FbpGetLabelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о конкретной поставке + */ + fbpAPIFbpOrderGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderGetRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderGetRequest', 'Required parameter "v1FbpOrderGetRequest" was null or undefined when calling fbpAPIFbpOrderGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderGetRequestToJSON(requestParameters['v1FbpOrderGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о конкретной поставке + */ + fbpAPIFbpOrderGet(v1FbpOrderGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderGetRaw({ v1FbpOrderGetRequest: v1FbpOrderGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список поставок + */ + fbpAPIFbpOrderListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderListRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderListRequest', 'Required parameter "v1FbpOrderListRequest" was null or undefined when calling fbpAPIFbpOrderList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderListRequestToJSON(requestParameters['v1FbpOrderListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список поставок + */ + fbpAPIFbpOrderList(v1FbpOrderListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderListRaw({ v1FbpOrderListRequest: v1FbpOrderListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2054-Novyi-beta-metod-dlia-raboty-s-FBP-postingami-v-Seller-API/ ) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingFbpListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbpList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbpList().'); + } + if (requestParameters['postingV1PostingFbpListRequest'] == null) { + throw new runtime.RequiredError('postingV1PostingFbpListRequest', 'Required parameter "postingV1PostingFbpListRequest" was null or undefined when calling postingFbpList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbp/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingV1PostingFbpListRequestToJSON(requestParameters['postingV1PostingFbpListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingV1PostingFbpListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2054-Novyi-beta-metod-dlia-raboty-s-FBP-postingami-v-Seller-API/ ) в сообществе разработчиков Ozon for dev. + * Получить список отправлений + */ + postingFbpList(clientId, apiKey, postingV1PostingFbpListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbpListRaw({ clientId: clientId, apiKey: apiKey, postingV1PostingFbpListRequest: postingV1PostingFbpListRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DeliveryFBPDraft.d.ts b/dist/esm/apis/DeliveryFBPDraft.d.ts new file mode 100644 index 0000000..802c3c1 --- /dev/null +++ b/dist/esm/apis/DeliveryFBPDraft.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpDraftGetRequest, V1FbpDraftGetResponse, V1FbpDraftListRequest, V1FbpDraftListResponse, V1FbpWarehouseListResponse } from '../models/index'; +export interface FbpAPIFbpDraftGetRequest { + v1FbpDraftGetRequest: V1FbpDraftGetRequest; +} +export interface FbpAPIFbpDraftListRequest { + v1FbpDraftListRequest: V1FbpDraftListRequest; +} +export interface FbpWarehouseListRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class DeliveryFBPDraft extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о черновике поставки + */ + fbpAPIFbpDraftGetRaw(requestParameters: FbpAPIFbpDraftGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о черновике поставки + */ + fbpAPIFbpDraftGet(v1FbpDraftGetRequest: V1FbpDraftGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Список черновиков поставки + */ + fbpAPIFbpDraftListRaw(requestParameters: FbpAPIFbpDraftListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Список черновиков поставки + */ + fbpAPIFbpDraftList(v1FbpDraftListRequest: V1FbpDraftListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список партнёрских складов + */ + fbpWarehouseListRaw(requestParameters: FbpWarehouseListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список партнёрских складов + */ + fbpWarehouseList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/DeliveryFBPDraft.js b/dist/esm/apis/DeliveryFBPDraft.js new file mode 100644 index 0000000..b36bdaa --- /dev/null +++ b/dist/esm/apis/DeliveryFBPDraft.js @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1FbpDraftGetRequestToJSON, V1FbpDraftGetResponseFromJSON, V1FbpDraftListRequestToJSON, V1FbpDraftListResponseFromJSON, V1FbpWarehouseListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class DeliveryFBPDraft extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о черновике поставки + */ + fbpAPIFbpDraftGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftGetRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftGetRequest', 'Required parameter "v1FbpDraftGetRequest" was null or undefined when calling fbpAPIFbpDraftGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftGetRequestToJSON(requestParameters['v1FbpDraftGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить информацию о черновике поставки + */ + fbpAPIFbpDraftGet(v1FbpDraftGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftGetRaw({ v1FbpDraftGetRequest: v1FbpDraftGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Список черновиков поставки + */ + fbpAPIFbpDraftListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftListRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftListRequest', 'Required parameter "v1FbpDraftListRequest" was null or undefined when calling fbpAPIFbpDraftList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftListRequestToJSON(requestParameters['v1FbpDraftListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Список черновиков поставки + */ + fbpAPIFbpDraftList(v1FbpDraftListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftListRaw({ v1FbpDraftListRequest: v1FbpDraftListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список партнёрских складов + */ + fbpWarehouseListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpWarehouseList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpWarehouseList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/warehouse/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpWarehouseListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список партнёрских складов + */ + fbpWarehouseList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpWarehouseListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DeliveryFBS.d.ts b/dist/esm/apis/DeliveryFBS.d.ts new file mode 100644 index 0000000..1068745 --- /dev/null +++ b/dist/esm/apis/DeliveryFBS.d.ts @@ -0,0 +1,433 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CarriageCarriageGetRequest, CarriageCarriageGetResponse, PostingPostingFBSActCheckStatusRequest, PostingPostingFBSActCheckStatusResponse, PostingPostingFBSActCreateRequest, PostingPostingFBSActCreateResponse, PostingPostingFBSActGetContainerLabelsRequest, PostingPostingFBSActGetContainerLabelsResponse, PostingPostingFBSGetActRequest, PostingPostingFBSGetActResponse, Postingv1GetCarriageAvailableListRequest, Postingv1GetCarriageAvailableListResponse, V1AssemblyCarriagePostingListRequest, V1AssemblyCarriagePostingListResponse, V1AssemblyCarriageProductListRequest, V1AssemblyCarriageProductListResponse, V1AssemblyFbsPostingListRequest, V1AssemblyFbsPostingListResponse, V1AssemblyFbsProductListRequest, V1AssemblyFbsProductListResponse, V1CarriageActDiscrepancyPDFRequest, V1CarriageActDiscrepancyPDFResponse, V1CarriageApproveRequest, V1CarriageCancelRequest, V1CarriageCancelResponse, V1CarriageCourierContactGetRequest, V1CarriageCourierContactGetResponse, V1CarriageCourierContactSetRequest, V1CarriageCreateRequest, V1CarriageCreateResponse, V1CarriageDeliveryListRequest, V1CarriageDeliveryListResponse, V1CarriageEttnStatusRequest, V1CarriageEttnStatusResponse, V1PostingFbsProductTraceableAttributeRequest, V1PostingFbsProductTraceableAttributeResponse, V1PostingFbsSplitRequest, V1PostingFbsSplitResponse, V1PostingFbsTraceableSplitRequest, V1PostingFbsTraceableSplitResponse, V1SetPostingsRequest, V1SetPostingsResponse, V2CarriageDeliveryListV2Request, V2CarriageDeliveryListV2Response, V2PostingFBSActGetPostingsRequest, V2PostingFBSActGetPostingsResponse, V2PostingFBSActListRequest, V2PostingFBSActListResponse, V2PostingFBSDigitalActCheckStatusRequest, V2PostingFBSDigitalActCheckStatusResponse, V2PostingFBSGetBarcodeRequest, V2PostingFBSGetBarcodeResponse, V2PostingFBSGetBarcodeTextResponse, V2PostingFBSGetDigitalActRequest, V2PostingFBSGetDigitalActResponse } from '../models/index'; +export interface AssemblyCarriagePostingListRequest { + clientId: string; + apiKey: string; + v1AssemblyCarriagePostingListRequest?: V1AssemblyCarriagePostingListRequest; +} +export interface AssemblyCarriageProductListRequest { + clientId: string; + apiKey: string; + v1AssemblyCarriageProductListRequest?: V1AssemblyCarriageProductListRequest; +} +export interface AssemblyFbsPostingListRequest { + clientId: string; + apiKey: string; + v1AssemblyFbsPostingListRequest?: V1AssemblyFbsPostingListRequest; +} +export interface AssemblyFbsProductListRequest { + clientId: string; + apiKey: string; + v1AssemblyFbsProductListRequest?: V1AssemblyFbsProductListRequest; +} +export interface CarriageAPICarriageApproveRequest { + clientId: string; + apiKey: string; + v1CarriageApproveRequest: V1CarriageApproveRequest; +} +export interface CarriageAPICarriageCancelRequest { + clientId: string; + apiKey: string; + v1CarriageCancelRequest: V1CarriageCancelRequest; +} +export interface CarriageAPICarriageCreateRequest { + clientId: string; + apiKey: string; + v1CarriageCreateRequest: V1CarriageCreateRequest; +} +export interface CarriageAPICarriageDeliveryListRequest { + clientId: string; + apiKey: string; + v1CarriageDeliveryListRequest: V1CarriageDeliveryListRequest; +} +export interface CarriageAPICarriageDeliveryListV2Request { + clientId: string; + apiKey: string; + v2CarriageDeliveryListV2Request: V2CarriageDeliveryListV2Request; +} +export interface CarriageAPISetPostingsRequest { + clientId: string; + apiKey: string; + v1SetPostingsRequest: V1SetPostingsRequest; +} +export interface CarriageActDiscrepancyPDFRequest { + clientId: string; + apiKey: string; + v1CarriageActDiscrepancyPDFRequest: V1CarriageActDiscrepancyPDFRequest; +} +export interface CarriageCourierContactGetRequest { + clientId: string; + apiKey: string; + v1CarriageCourierContactGetRequest: V1CarriageCourierContactGetRequest; +} +export interface CarriageCourierContactSetRequest { + clientId: string; + apiKey: string; + v1CarriageCourierContactSetRequest: V1CarriageCourierContactSetRequest; +} +export interface CarriageEttnStatusRequest { + clientId: string; + apiKey: string; + v1CarriageEttnStatusRequest?: V1CarriageEttnStatusRequest; +} +export interface CarriageGetRequest { + carriageCarriageGetRequest: CarriageCarriageGetRequest; +} +export interface FbsSplitRequest { + v1PostingFbsSplitRequest: V1PostingFbsSplitRequest; +} +export interface PostingAPIActPostingListRequest { + clientId: string; + apiKey: string; + v2PostingFBSActGetPostingsRequest: V2PostingFBSActGetPostingsRequest; +} +export interface PostingAPIFbsActListRequest { + clientId: string; + apiKey: string; + v2PostingFBSActListRequest: V2PostingFBSActListRequest; +} +export interface PostingAPIGetCarriageAvailableListRequest { + clientId: string; + apiKey: string; + postingv1GetCarriageAvailableListRequest: Postingv1GetCarriageAvailableListRequest; +} +export interface PostingAPIPostingFBSActCheckStatusRequest { + clientId: string; + apiKey: string; + postingPostingFBSActCheckStatusRequest: PostingPostingFBSActCheckStatusRequest; +} +export interface PostingAPIPostingFBSActCreateRequest { + clientId: string; + apiKey: string; + postingPostingFBSActCreateRequest: PostingPostingFBSActCreateRequest; +} +export interface PostingAPIPostingFBSActGetContainerLabelsRequest { + clientId: string; + apiKey: string; + postingPostingFBSActGetContainerLabelsRequest: PostingPostingFBSActGetContainerLabelsRequest; +} +export interface PostingAPIPostingFBSDigitalActCheckStatusRequest { + clientId: string; + apiKey: string; + v2PostingFBSDigitalActCheckStatusRequest: V2PostingFBSDigitalActCheckStatusRequest; +} +export interface PostingAPIPostingFBSGetActRequest { + clientId: string; + apiKey: string; + postingPostingFBSGetActRequest: PostingPostingFBSGetActRequest; +} +export interface PostingAPIPostingFBSGetBarcodeRequest { + clientId: string; + apiKey: string; + v2PostingFBSGetBarcodeRequest: V2PostingFBSGetBarcodeRequest; +} +export interface PostingAPIPostingFBSGetBarcodeTextRequest { + clientId: string; + apiKey: string; + v2PostingFBSGetBarcodeRequest?: V2PostingFBSGetBarcodeRequest; +} +export interface PostingAPIPostingFBSGetDigitalActRequest { + clientId: string; + apiKey: string; + v2PostingFBSGetDigitalActRequest: V2PostingFBSGetDigitalActRequest; +} +export interface PostingFbsProductTraceableAttributeRequest { + clientId: string; + apiKey: string; + v1PostingFbsProductTraceableAttributeRequest?: V1PostingFbsProductTraceableAttributeRequest; +} +export interface PostingFbsTraceableSplitRequest { + clientId: string; + apiKey: string; + v1PostingFbsTraceableSplitRequest?: V1PostingFbsTraceableSplitRequest; +} +/** + * + */ +export declare class DeliveryFBS extends runtime.BaseAPI { + /** + * Получить список отправлений в отгрузке + */ + assemblyCarriagePostingListRaw(requestParameters: AssemblyCarriagePostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список отправлений в отгрузке + */ + assemblyCarriagePostingList(clientId: string, apiKey: string, v1AssemblyCarriagePostingListRequest?: V1AssemblyCarriagePostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список товаров в отгрузке + */ + assemblyCarriageProductListRaw(requestParameters: AssemblyCarriageProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список товаров в отгрузке + */ + assemblyCarriageProductList(clientId: string, apiKey: string, v1AssemblyCarriageProductListRequest?: V1AssemblyCarriageProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список отправлений + */ + assemblyFbsPostingListRaw(requestParameters: AssemblyFbsPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список отправлений + */ + assemblyFbsPostingList(clientId: string, apiKey: string, v1AssemblyFbsPostingListRequest?: V1AssemblyFbsPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список товаров в отправлениях + */ + assemblyFbsProductListRaw(requestParameters: AssemblyFbsProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список товаров в отправлениях + */ + assemblyFbsProductList(clientId: string, apiKey: string, v1AssemblyFbsProductListRequest?: V1AssemblyFbsProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы подтвердить отгрузку после её создания. После подтверждения отгрузка перейдёт в статус «Сформирована». После подтверждения отгрузки вы можете получить лист отгрузки методом [/v2/posting/fbs/act/get-pdf](#operation/PostingAPI_PostingFBSGetAct) и штрихкод отгрузки методом [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode). + * Подтверждение отгрузки + */ + carriageAPICarriageApproveRaw(requestParameters: CarriageAPICarriageApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы подтвердить отгрузку после её создания. После подтверждения отгрузка перейдёт в статус «Сформирована». После подтверждения отгрузки вы можете получить лист отгрузки методом [/v2/posting/fbs/act/get-pdf](#operation/PostingAPI_PostingFBSGetAct) и штрихкод отгрузки методом [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode). + * Подтверждение отгрузки + */ + carriageAPICarriageApprove(clientId: string, apiKey: string, v1CarriageApproveRequest: V1CarriageApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удаление отгрузки + */ + carriageAPICarriageCancelRaw(requestParameters: CarriageAPICarriageCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удаление отгрузки + */ + carriageAPICarriageCancel(clientId: string, apiKey: string, v1CarriageCancelRequest: V1CarriageCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод для создания первой FBS отгрузки. В неё попадут все отправления со статусом «Готов к отгрузке». Созданная отгрузка получит статус `new`. Для отгрузки в статусе `new` можно перезаписать состав отправлений методом [/v1/carriage/set-postings](#operation/CarriageAPI_SetPostings). Если из отгрузки исключить часть отправлений, они могут попасть в следующую отгрузку. Чтобы получить список отправлений в отгрузке, используйте метод [/v2/posting/fbs/act/get-postings](#operation/PostingAPI_ActPostingList). + * Создание отгрузки + */ + carriageAPICarriageCreateRaw(requestParameters: CarriageAPICarriageCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод для создания первой FBS отгрузки. В неё попадут все отправления со статусом «Готов к отгрузке». Созданная отгрузка получит статус `new`. Для отгрузки в статусе `new` можно перезаписать состав отправлений методом [/v1/carriage/set-postings](#operation/CarriageAPI_SetPostings). Если из отгрузки исключить часть отправлений, они могут попасть в следующую отгрузку. Чтобы получить список отправлений в отгрузке, используйте метод [/v2/posting/fbs/act/get-postings](#operation/PostingAPI_ActPostingList). + * Создание отгрузки + */ + carriageAPICarriageCreate(clientId: string, apiKey: string, v1CarriageCreateRequest: V1CarriageCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить список созданных отгрузок для метода доставки и их статусы. + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListRaw(requestParameters: CarriageAPICarriageDeliveryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить список созданных отгрузок для метода доставки и их статусы. + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryList(clientId: string, apiKey: string, v1CarriageDeliveryListRequest: V1CarriageDeliveryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListV2Raw(requestParameters: CarriageAPICarriageDeliveryListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListV2(clientId: string, apiKey: string, v2CarriageDeliveryListV2Request: V2CarriageDeliveryListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + *
+ * Изменение состава отгрузки + */ + carriageAPISetPostingsRaw(requestParameters: CarriageAPISetPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + *
+ * Изменение состава отгрузки + */ + carriageAPISetPostings(clientId: string, apiKey: string, v1SetPostingsRequest: V1SetPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Акт о расхождениях доступен только для отгрузок в статусе `closed` и только для продавцов из СНГ. + * Получить акт о расхождениях по отгрузке FBS + */ + carriageActDiscrepancyPDFRaw(requestParameters: CarriageActDiscrepancyPDFRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Акт о расхождениях доступен только для отгрузок в статусе `closed` и только для продавцов из СНГ. + * Получить акт о расхождениях по отгрузке FBS + */ + carriageActDiscrepancyPDF(clientId: string, apiKey: string, v1CarriageActDiscrepancyPDFRequest: V1CarriageActDiscrepancyPDFRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает контактные данные продавца, которые добавили или обновили методом [/v1/carriage/courier-contact/set](#operation/CarriageCourierContactSet). + * Получить контактные данные продавца для курьера + */ + carriageCourierContactGetRaw(requestParameters: CarriageCourierContactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает контактные данные продавца, которые добавили или обновили методом [/v1/carriage/courier-contact/set](#operation/CarriageCourierContactSet). + * Получить контактные данные продавца для курьера + */ + carriageCourierContactGet(clientId: string, apiKey: string, v1CarriageCourierContactGetRequest: V1CarriageCourierContactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы добавить или обновить контактные данные продавца, которые передаются курьеру для перевозок с `first_mile_type = pickup` и `integration_type = ozon_outsourced`. Получите значения параметров `first_mile_type` и `integration_type` в ответе метода [/v1/carriage/get](#operation/CarriageGet). + * Добавить или обновить контактные данные продавца для курьера + */ + carriageCourierContactSetRaw(requestParameters: CarriageCourierContactSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы добавить или обновить контактные данные продавца, которые передаются курьеру для перевозок с `first_mile_type = pickup` и `integration_type = ozon_outsourced`. Получите значения параметров `first_mile_type` и `integration_type` в ответе метода [/v1/carriage/get](#operation/CarriageGet). + * Добавить или обновить контактные данные продавца для курьера + */ + carriageCourierContactSet(clientId: string, apiKey: string, v1CarriageCourierContactSetRequest: V1CarriageCourierContactSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить статус проверки электронной ТТН на прослеживаемой перевозке FBS + */ + carriageEttnStatusRaw(requestParameters: CarriageEttnStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус проверки электронной ТТН на прослеживаемой перевозке FBS + */ + carriageEttnStatus(clientId: string, apiKey: string, v1CarriageEttnStatusRequest?: V1CarriageEttnStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о перевозке + */ + carriageGetRaw(requestParameters: CarriageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о перевозке + */ + carriageGet(carriageCarriageGetRequest: CarriageCarriageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Разделить заказ на отправления без сборки + */ + fbsSplitRaw(requestParameters: FbsSplitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Разделить заказ на отправления без сборки + */ + fbsSplit(v1PostingFbsSplitRequest: V1PostingFbsSplitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений в акте по его идентификатору. + * Список отправлений в акте + */ + postingAPIActPostingListRaw(requestParameters: PostingAPIActPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений в акте по его идентификатору. + * Список отправлений в акте + */ + postingAPIActPostingList(clientId: string, apiKey: string, v2PostingFBSActGetPostingsRequest: V2PostingFBSActGetPostingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список актов по отгрузкам с возможностью отфильтровать отгрузки по периоду, статусу и типу интеграции. + * Список актов по отгрузкам + */ + postingAPIFbsActListRaw(requestParameters: PostingAPIFbsActListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список актов по отгрузкам с возможностью отфильтровать отгрузки по периоду, статусу и типу интеграции. + * Список актов по отгрузкам + */ + postingAPIFbsActList(clientId: string, apiKey: string, v2PostingFBSActListRequest: V2PostingFBSActListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения перевозок, по которым нужно распечатать штрихкод для отгрузки и документы: - для продацов из России — лист отгрузки и транспортную накладную; - для продавцов из СНГ — акт и транспортную накладную. + * Список доступных перевозок + */ + postingAPIGetCarriageAvailableListRaw(requestParameters: PostingAPIGetCarriageAvailableListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения перевозок, по которым нужно распечатать штрихкод для отгрузки и документы: - для продацов из России — лист отгрузки и транспортную накладную; - для продавцов из СНГ — акт и транспортную накладную. + * Список доступных перевозок + */ + postingAPIGetCarriageAvailableList(clientId: string, apiKey: string, postingv1GetCarriageAvailableListRequest: Postingv1GetCarriageAvailableListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает статус формирования штрихкода для отгрузки и документов: - для продавцов из России — транспортной накладной и листа отгрузки; - для продавцов из СНГ — транспортной накладной и акта приёма-передачи. + * Статус отгрузки и документов + */ + postingAPIPostingFBSActCheckStatusRaw(requestParameters: PostingAPIPostingFBSActCheckStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает статус формирования штрихкода для отгрузки и документов: - для продавцов из России — транспортной накладной и листа отгрузки; - для продавцов из СНГ — транспортной накладной и акта приёма-передачи. + * Статус отгрузки и документов + */ + postingAPIPostingFBSActCheckStatus(clientId: string, apiKey: string, postingPostingFBSActCheckStatusRequest: PostingPostingFBSActCheckStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Подтверждает отгрузку и запускает формирование транспортной накладной и штрихкода для отгрузки. Для продавцов из России также запускается формирование листа отгрузки, а для продавцов из СНГ — акта приёма-передачи. Чтобы сформировать и получить документы, переведите отправление в статус `awaiting_deliver`. + * Подтвердить отгрузку и создать документы + */ + postingAPIPostingFBSActCreateRaw(requestParameters: PostingAPIPostingFBSActCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Подтверждает отгрузку и запускает формирование транспортной накладной и штрихкода для отгрузки. Для продавцов из России также запускается формирование листа отгрузки, а для продавцов из СНГ — акта приёма-передачи. Чтобы сформировать и получить документы, переведите отправление в статус `awaiting_deliver`. + * Подтвердить отгрузку и создать документы + */ + postingAPIPostingFBSActCreate(clientId: string, apiKey: string, postingPostingFBSActCreateRequest: PostingPostingFBSActCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод создает этикетки для грузового места. + * Этикетки для грузового места + */ + postingAPIPostingFBSActGetContainerLabelsRaw(requestParameters: PostingAPIPostingFBSActGetContainerLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод создает этикетки для грузового места. + * Этикетки для грузового места + */ + postingAPIPostingFBSActGetContainerLabels(clientId: string, apiKey: string, postingPostingFBSActGetContainerLabelsRequest: PostingPostingFBSActGetContainerLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Статус формирования накладной + * @deprecated + */ + postingAPIPostingFBSDigitalActCheckStatusRaw(requestParameters: PostingAPIPostingFBSDigitalActCheckStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Статус формирования накладной + * @deprecated + */ + postingAPIPostingFBSDigitalActCheckStatus(clientId: string, apiKey: string, v2PostingFBSDigitalActCheckStatusRequest: V2PostingFBSDigitalActCheckStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * С помощью метода можно получить: - продацам из России — лист отгрузки и транспортную накладную; - продавцам из СНГ — акт и транспортную накладную. Получите список доступных документов для отгрузки в параметре `available_actions` метода [/v1/carriage/get](#operation/CarriageGet). + * Получить PDF c документами + */ + postingAPIPostingFBSGetActRaw(requestParameters: PostingAPIPostingFBSGetActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * С помощью метода можно получить: - продацам из России — лист отгрузки и транспортную накладную; - продавцам из СНГ — акт и транспортную накладную. Получите список доступных документов для отгрузки в параметре `available_actions` метода [/v1/carriage/get](#operation/CarriageGet). + * Получить PDF c документами + */ + postingAPIPostingFBSGetAct(clientId: string, apiKey: string, postingPostingFBSGetActRequest: PostingPostingFBSGetActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения штрихкода, который нужно показать в пункте выдачи или сортировочном центре при отгрузке отправления. + * Штрихкод для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeRaw(requestParameters: PostingAPIPostingFBSGetBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения штрихкода, который нужно показать в пункте выдачи или сортировочном центре при отгрузке отправления. + * Штрихкод для отгрузки отправления + */ + postingAPIPostingFBSGetBarcode(clientId: string, apiKey: string, v2PostingFBSGetBarcodeRequest: V2PostingFBSGetBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте этот метод, чтобы получить штрихкод из ответа [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode) в текстовом виде. + * Значение штрихкода для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeTextRaw(requestParameters: PostingAPIPostingFBSGetBarcodeTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте этот метод, чтобы получить штрихкод из ответа [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode) в текстовом виде. + * Значение штрихкода для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeText(clientId: string, apiKey: string, v2PostingFBSGetBarcodeRequest?: V2PostingFBSGetBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете получить документы, если в ответе метода [/v2/posting/fbs/digital/act/check-status](#operation/PostingAPI_PostingFBSDigitalActCheckStatus) был один из статусов: - `FORMED` — перевозка сформирована успешно, - `CONFIRMED` — перевозка подтверждена Ozon, - `CONFIRMED_WITH_MISMATCH` — перевозка принята Ozon с расхождениями. + * Получить лист отгрузки по перевозке + * @deprecated + */ + postingAPIPostingFBSGetDigitalActRaw(requestParameters: PostingAPIPostingFBSGetDigitalActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете получить документы, если в ответе метода [/v2/posting/fbs/digital/act/check-status](#operation/PostingAPI_PostingFBSDigitalActCheckStatus) был один из статусов: - `FORMED` — перевозка сформирована успешно, - `CONFIRMED` — перевозка подтверждена Ozon, - `CONFIRMED_WITH_MISMATCH` — перевозка принята Ozon с расхождениями. + * Получить лист отгрузки по перевозке + * @deprecated + */ + postingAPIPostingFBSGetDigitalAct(clientId: string, apiKey: string, v2PostingFBSGetDigitalActRequest: V2PostingFBSGetDigitalActRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список незаполненных атрибутов для прослеживаемых товаров + */ + postingFbsProductTraceableAttributeRaw(requestParameters: PostingFbsProductTraceableAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список незаполненных атрибутов для прослеживаемых товаров + */ + postingFbsProductTraceableAttribute(clientId: string, apiKey: string, v1PostingFbsProductTraceableAttributeRequest?: V1PostingFbsProductTraceableAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Разделить отправление с прослеживаемыми товарами + */ + postingFbsTraceableSplitRaw(requestParameters: PostingFbsTraceableSplitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Разделить отправление с прослеживаемыми товарами + */ + postingFbsTraceableSplit(clientId: string, apiKey: string, v1PostingFbsTraceableSplitRequest?: V1PostingFbsTraceableSplitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/DeliveryFBS.js b/dist/esm/apis/DeliveryFBS.js new file mode 100644 index 0000000..c8fc8d0 --- /dev/null +++ b/dist/esm/apis/DeliveryFBS.js @@ -0,0 +1,1240 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CarriageCarriageGetRequestToJSON, CarriageCarriageGetResponseFromJSON, PostingPostingFBSActCheckStatusRequestToJSON, PostingPostingFBSActCheckStatusResponseFromJSON, PostingPostingFBSActCreateRequestToJSON, PostingPostingFBSActCreateResponseFromJSON, PostingPostingFBSActGetContainerLabelsRequestToJSON, PostingPostingFBSActGetContainerLabelsResponseFromJSON, PostingPostingFBSGetActRequestToJSON, PostingPostingFBSGetActResponseFromJSON, Postingv1GetCarriageAvailableListRequestToJSON, Postingv1GetCarriageAvailableListResponseFromJSON, V1AssemblyCarriagePostingListRequestToJSON, V1AssemblyCarriagePostingListResponseFromJSON, V1AssemblyCarriageProductListRequestToJSON, V1AssemblyCarriageProductListResponseFromJSON, V1AssemblyFbsPostingListRequestToJSON, V1AssemblyFbsPostingListResponseFromJSON, V1AssemblyFbsProductListRequestToJSON, V1AssemblyFbsProductListResponseFromJSON, V1CarriageActDiscrepancyPDFRequestToJSON, V1CarriageActDiscrepancyPDFResponseFromJSON, V1CarriageApproveRequestToJSON, V1CarriageCancelRequestToJSON, V1CarriageCancelResponseFromJSON, V1CarriageCourierContactGetRequestToJSON, V1CarriageCourierContactGetResponseFromJSON, V1CarriageCourierContactSetRequestToJSON, V1CarriageCreateRequestToJSON, V1CarriageCreateResponseFromJSON, V1CarriageDeliveryListRequestToJSON, V1CarriageDeliveryListResponseFromJSON, V1CarriageEttnStatusRequestToJSON, V1CarriageEttnStatusResponseFromJSON, V1PostingFbsProductTraceableAttributeRequestToJSON, V1PostingFbsProductTraceableAttributeResponseFromJSON, V1PostingFbsSplitRequestToJSON, V1PostingFbsSplitResponseFromJSON, V1PostingFbsTraceableSplitRequestToJSON, V1PostingFbsTraceableSplitResponseFromJSON, V1SetPostingsRequestToJSON, V1SetPostingsResponseFromJSON, V2CarriageDeliveryListV2RequestToJSON, V2CarriageDeliveryListV2ResponseFromJSON, V2PostingFBSActGetPostingsRequestToJSON, V2PostingFBSActGetPostingsResponseFromJSON, V2PostingFBSActListRequestToJSON, V2PostingFBSActListResponseFromJSON, V2PostingFBSDigitalActCheckStatusRequestToJSON, V2PostingFBSDigitalActCheckStatusResponseFromJSON, V2PostingFBSGetBarcodeRequestToJSON, V2PostingFBSGetBarcodeResponseFromJSON, V2PostingFBSGetBarcodeTextResponseFromJSON, V2PostingFBSGetDigitalActRequestToJSON, V2PostingFBSGetDigitalActResponseFromJSON, } from '../models/index'; +/** + * + */ +export class DeliveryFBS extends runtime.BaseAPI { + /** + * Получить список отправлений в отгрузке + */ + assemblyCarriagePostingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling assemblyCarriagePostingList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling assemblyCarriagePostingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/assembly/carriage/posting/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AssemblyCarriagePostingListRequestToJSON(requestParameters['v1AssemblyCarriagePostingListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AssemblyCarriagePostingListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список отправлений в отгрузке + */ + assemblyCarriagePostingList(clientId, apiKey, v1AssemblyCarriagePostingListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.assemblyCarriagePostingListRaw({ clientId: clientId, apiKey: apiKey, v1AssemblyCarriagePostingListRequest: v1AssemblyCarriagePostingListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список товаров в отгрузке + */ + assemblyCarriageProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling assemblyCarriageProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling assemblyCarriageProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/assembly/carriage/product/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AssemblyCarriageProductListRequestToJSON(requestParameters['v1AssemblyCarriageProductListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AssemblyCarriageProductListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список товаров в отгрузке + */ + assemblyCarriageProductList(clientId, apiKey, v1AssemblyCarriageProductListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.assemblyCarriageProductListRaw({ clientId: clientId, apiKey: apiKey, v1AssemblyCarriageProductListRequest: v1AssemblyCarriageProductListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список отправлений + */ + assemblyFbsPostingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling assemblyFbsPostingList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling assemblyFbsPostingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/assembly/fbs/posting/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AssemblyFbsPostingListRequestToJSON(requestParameters['v1AssemblyFbsPostingListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AssemblyFbsPostingListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список отправлений + */ + assemblyFbsPostingList(clientId, apiKey, v1AssemblyFbsPostingListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.assemblyFbsPostingListRaw({ clientId: clientId, apiKey: apiKey, v1AssemblyFbsPostingListRequest: v1AssemblyFbsPostingListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список товаров в отправлениях + */ + assemblyFbsProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling assemblyFbsProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling assemblyFbsProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/assembly/fbs/product/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AssemblyFbsProductListRequestToJSON(requestParameters['v1AssemblyFbsProductListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AssemblyFbsProductListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список товаров в отправлениях + */ + assemblyFbsProductList(clientId, apiKey, v1AssemblyFbsProductListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.assemblyFbsProductListRaw({ clientId: clientId, apiKey: apiKey, v1AssemblyFbsProductListRequest: v1AssemblyFbsProductListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы подтвердить отгрузку после её создания. После подтверждения отгрузка перейдёт в статус «Сформирована». После подтверждения отгрузки вы можете получить лист отгрузки методом [/v2/posting/fbs/act/get-pdf](#operation/PostingAPI_PostingFBSGetAct) и штрихкод отгрузки методом [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode). + * Подтверждение отгрузки + */ + carriageAPICarriageApproveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageApprove().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageApprove().'); + } + if (requestParameters['v1CarriageApproveRequest'] == null) { + throw new runtime.RequiredError('v1CarriageApproveRequest', 'Required parameter "v1CarriageApproveRequest" was null or undefined when calling carriageAPICarriageApprove().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/approve`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CarriageApproveRequestToJSON(requestParameters['v1CarriageApproveRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Используйте метод, чтобы подтвердить отгрузку после её создания. После подтверждения отгрузка перейдёт в статус «Сформирована». После подтверждения отгрузки вы можете получить лист отгрузки методом [/v2/posting/fbs/act/get-pdf](#operation/PostingAPI_PostingFBSGetAct) и штрихкод отгрузки методом [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode). + * Подтверждение отгрузки + */ + carriageAPICarriageApprove(clientId, apiKey, v1CarriageApproveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageApproveRaw({ clientId: clientId, apiKey: apiKey, v1CarriageApproveRequest: v1CarriageApproveRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Удаление отгрузки + */ + carriageAPICarriageCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageCancel().'); + } + if (requestParameters['v1CarriageCancelRequest'] == null) { + throw new runtime.RequiredError('v1CarriageCancelRequest', 'Required parameter "v1CarriageCancelRequest" was null or undefined when calling carriageAPICarriageCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CarriageCancelRequestToJSON(requestParameters['v1CarriageCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CarriageCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Удаление отгрузки + */ + carriageAPICarriageCancel(clientId, apiKey, v1CarriageCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageCancelRaw({ clientId: clientId, apiKey: apiKey, v1CarriageCancelRequest: v1CarriageCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод для создания первой FBS отгрузки. В неё попадут все отправления со статусом «Готов к отгрузке». Созданная отгрузка получит статус `new`. Для отгрузки в статусе `new` можно перезаписать состав отправлений методом [/v1/carriage/set-postings](#operation/CarriageAPI_SetPostings). Если из отгрузки исключить часть отправлений, они могут попасть в следующую отгрузку. Чтобы получить список отправлений в отгрузке, используйте метод [/v2/posting/fbs/act/get-postings](#operation/PostingAPI_ActPostingList). + * Создание отгрузки + */ + carriageAPICarriageCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageCreate().'); + } + if (requestParameters['v1CarriageCreateRequest'] == null) { + throw new runtime.RequiredError('v1CarriageCreateRequest', 'Required parameter "v1CarriageCreateRequest" was null or undefined when calling carriageAPICarriageCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CarriageCreateRequestToJSON(requestParameters['v1CarriageCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CarriageCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод для создания первой FBS отгрузки. В неё попадут все отправления со статусом «Готов к отгрузке». Созданная отгрузка получит статус `new`. Для отгрузки в статусе `new` можно перезаписать состав отправлений методом [/v1/carriage/set-postings](#operation/CarriageAPI_SetPostings). Если из отгрузки исключить часть отправлений, они могут попасть в следующую отгрузку. Чтобы получить список отправлений в отгрузке, используйте метод [/v2/posting/fbs/act/get-postings](#operation/PostingAPI_ActPostingList). + * Создание отгрузки + */ + carriageAPICarriageCreate(clientId, apiKey, v1CarriageCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageCreateRaw({ clientId: clientId, apiKey: apiKey, v1CarriageCreateRequest: v1CarriageCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить список созданных отгрузок для метода доставки и их статусы. + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageDeliveryList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageDeliveryList().'); + } + if (requestParameters['v1CarriageDeliveryListRequest'] == null) { + throw new runtime.RequiredError('v1CarriageDeliveryListRequest', 'Required parameter "v1CarriageDeliveryListRequest" was null or undefined when calling carriageAPICarriageDeliveryList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/delivery/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CarriageDeliveryListRequestToJSON(requestParameters['v1CarriageDeliveryListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CarriageDeliveryListResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить список созданных отгрузок для метода доставки и их статусы. + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryList(clientId, apiKey, v1CarriageDeliveryListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageDeliveryListRaw({ clientId: clientId, apiKey: apiKey, v1CarriageDeliveryListRequest: v1CarriageDeliveryListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPICarriageDeliveryListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPICarriageDeliveryListV2().'); + } + if (requestParameters['v2CarriageDeliveryListV2Request'] == null) { + throw new runtime.RequiredError('v2CarriageDeliveryListV2Request', 'Required parameter "v2CarriageDeliveryListV2Request" was null or undefined when calling carriageAPICarriageDeliveryListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/carriage/delivery/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2CarriageDeliveryListV2RequestToJSON(requestParameters['v2CarriageDeliveryListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2CarriageDeliveryListV2ResponseFromJSON(jsonValue)); + }); + } + /** + * + * Список методов доставки и отгрузок + */ + carriageAPICarriageDeliveryListV2(clientId, apiKey, v2CarriageDeliveryListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPICarriageDeliveryListV2Raw({ clientId: clientId, apiKey: apiKey, v2CarriageDeliveryListV2Request: v2CarriageDeliveryListV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + *
+ * Изменение состава отгрузки + */ + carriageAPISetPostingsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageAPISetPostings().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageAPISetPostings().'); + } + if (requestParameters['v1SetPostingsRequest'] == null) { + throw new runtime.RequiredError('v1SetPostingsRequest', 'Required parameter "v1SetPostingsRequest" was null or undefined when calling carriageAPISetPostings().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/set-postings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SetPostingsRequestToJSON(requestParameters['v1SetPostingsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SetPostingsResponseFromJSON(jsonValue)); + }); + } + /** + *
+ * Изменение состава отгрузки + */ + carriageAPISetPostings(clientId, apiKey, v1SetPostingsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageAPISetPostingsRaw({ clientId: clientId, apiKey: apiKey, v1SetPostingsRequest: v1SetPostingsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Акт о расхождениях доступен только для отгрузок в статусе `closed` и только для продавцов из СНГ. + * Получить акт о расхождениях по отгрузке FBS + */ + carriageActDiscrepancyPDFRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageActDiscrepancyPDF().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageActDiscrepancyPDF().'); + } + if (requestParameters['v1CarriageActDiscrepancyPDFRequest'] == null) { + throw new runtime.RequiredError('v1CarriageActDiscrepancyPDFRequest', 'Required parameter "v1CarriageActDiscrepancyPDFRequest" was null or undefined when calling carriageActDiscrepancyPDF().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/act-discrepancy/pdf`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CarriageActDiscrepancyPDFRequestToJSON(requestParameters['v1CarriageActDiscrepancyPDFRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CarriageActDiscrepancyPDFResponseFromJSON(jsonValue)); + }); + } + /** + * Акт о расхождениях доступен только для отгрузок в статусе `closed` и только для продавцов из СНГ. + * Получить акт о расхождениях по отгрузке FBS + */ + carriageActDiscrepancyPDF(clientId, apiKey, v1CarriageActDiscrepancyPDFRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageActDiscrepancyPDFRaw({ clientId: clientId, apiKey: apiKey, v1CarriageActDiscrepancyPDFRequest: v1CarriageActDiscrepancyPDFRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает контактные данные продавца, которые добавили или обновили методом [/v1/carriage/courier-contact/set](#operation/CarriageCourierContactSet). + * Получить контактные данные продавца для курьера + */ + carriageCourierContactGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageCourierContactGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageCourierContactGet().'); + } + if (requestParameters['v1CarriageCourierContactGetRequest'] == null) { + throw new runtime.RequiredError('v1CarriageCourierContactGetRequest', 'Required parameter "v1CarriageCourierContactGetRequest" was null or undefined when calling carriageCourierContactGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/courier-contact/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CarriageCourierContactGetRequestToJSON(requestParameters['v1CarriageCourierContactGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CarriageCourierContactGetResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает контактные данные продавца, которые добавили или обновили методом [/v1/carriage/courier-contact/set](#operation/CarriageCourierContactSet). + * Получить контактные данные продавца для курьера + */ + carriageCourierContactGet(clientId, apiKey, v1CarriageCourierContactGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageCourierContactGetRaw({ clientId: clientId, apiKey: apiKey, v1CarriageCourierContactGetRequest: v1CarriageCourierContactGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы добавить или обновить контактные данные продавца, которые передаются курьеру для перевозок с `first_mile_type = pickup` и `integration_type = ozon_outsourced`. Получите значения параметров `first_mile_type` и `integration_type` в ответе метода [/v1/carriage/get](#operation/CarriageGet). + * Добавить или обновить контактные данные продавца для курьера + */ + carriageCourierContactSetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageCourierContactSet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageCourierContactSet().'); + } + if (requestParameters['v1CarriageCourierContactSetRequest'] == null) { + throw new runtime.RequiredError('v1CarriageCourierContactSetRequest', 'Required parameter "v1CarriageCourierContactSetRequest" was null or undefined when calling carriageCourierContactSet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/courier-contact/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CarriageCourierContactSetRequestToJSON(requestParameters['v1CarriageCourierContactSetRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Используйте метод, чтобы добавить или обновить контактные данные продавца, которые передаются курьеру для перевозок с `first_mile_type = pickup` и `integration_type = ozon_outsourced`. Получите значения параметров `first_mile_type` и `integration_type` в ответе метода [/v1/carriage/get](#operation/CarriageGet). + * Добавить или обновить контактные данные продавца для курьера + */ + carriageCourierContactSet(clientId, apiKey, v1CarriageCourierContactSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.carriageCourierContactSetRaw({ clientId: clientId, apiKey: apiKey, v1CarriageCourierContactSetRequest: v1CarriageCourierContactSetRequest }, initOverrides); + }); + } + /** + * Получить статус проверки электронной ТТН на прослеживаемой перевозке FBS + */ + carriageEttnStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling carriageEttnStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling carriageEttnStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/carriage/ettn/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CarriageEttnStatusRequestToJSON(requestParameters['v1CarriageEttnStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CarriageEttnStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Получить статус проверки электронной ТТН на прослеживаемой перевозке FBS + */ + carriageEttnStatus(clientId, apiKey, v1CarriageEttnStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageEttnStatusRaw({ clientId: clientId, apiKey: apiKey, v1CarriageEttnStatusRequest: v1CarriageEttnStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о перевозке + */ + carriageGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['carriageCarriageGetRequest'] == null) { + throw new runtime.RequiredError('carriageCarriageGetRequest', 'Required parameter "carriageCarriageGetRequest" was null or undefined when calling carriageGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CarriageCarriageGetRequestToJSON(requestParameters['carriageCarriageGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CarriageCarriageGetResponseFromJSON(jsonValue)); + }); + } + /** + * Информация о перевозке + */ + carriageGet(carriageCarriageGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriageGetRaw({ carriageCarriageGetRequest: carriageCarriageGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Разделить заказ на отправления без сборки + */ + fbsSplitRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingFbsSplitRequest'] == null) { + throw new runtime.RequiredError('v1PostingFbsSplitRequest', 'Required parameter "v1PostingFbsSplitRequest" was null or undefined when calling fbsSplit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/fbs/split`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingFbsSplitRequestToJSON(requestParameters['v1PostingFbsSplitRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingFbsSplitResponseFromJSON(jsonValue)); + }); + } + /** + * Разделить заказ на отправления без сборки + */ + fbsSplit(v1PostingFbsSplitRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbsSplitRaw({ v1PostingFbsSplitRequest: v1PostingFbsSplitRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений в акте по его идентификатору. + * Список отправлений в акте + */ + postingAPIActPostingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIActPostingList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIActPostingList().'); + } + if (requestParameters['v2PostingFBSActGetPostingsRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSActGetPostingsRequest', 'Required parameter "v2PostingFBSActGetPostingsRequest" was null or undefined when calling postingAPIActPostingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-postings`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2PostingFBSActGetPostingsRequestToJSON(requestParameters['v2PostingFBSActGetPostingsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2PostingFBSActGetPostingsResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список отправлений в акте по его идентификатору. + * Список отправлений в акте + */ + postingAPIActPostingList(clientId, apiKey, v2PostingFBSActGetPostingsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIActPostingListRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSActGetPostingsRequest: v2PostingFBSActGetPostingsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список актов по отгрузкам с возможностью отфильтровать отгрузки по периоду, статусу и типу интеграции. + * Список актов по отгрузкам + */ + postingAPIFbsActListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsActList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsActList().'); + } + if (requestParameters['v2PostingFBSActListRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSActListRequest', 'Required parameter "v2PostingFBSActListRequest" was null or undefined when calling postingAPIFbsActList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2PostingFBSActListRequestToJSON(requestParameters['v2PostingFBSActListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2PostingFBSActListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список актов по отгрузкам с возможностью отфильтровать отгрузки по периоду, статусу и типу интеграции. + * Список актов по отгрузкам + */ + postingAPIFbsActList(clientId, apiKey, v2PostingFBSActListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsActListRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSActListRequest: v2PostingFBSActListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения перевозок, по которым нужно распечатать штрихкод для отгрузки и документы: - для продацов из России — лист отгрузки и транспортную накладную; - для продавцов из СНГ — акт и транспортную накладную. + * Список доступных перевозок + */ + postingAPIGetCarriageAvailableListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetCarriageAvailableList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetCarriageAvailableList().'); + } + if (requestParameters['postingv1GetCarriageAvailableListRequest'] == null) { + throw new runtime.RequiredError('postingv1GetCarriageAvailableListRequest', 'Required parameter "postingv1GetCarriageAvailableListRequest" was null or undefined when calling postingAPIGetCarriageAvailableList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/carriage-available/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Postingv1GetCarriageAvailableListRequestToJSON(requestParameters['postingv1GetCarriageAvailableListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Postingv1GetCarriageAvailableListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения перевозок, по которым нужно распечатать штрихкод для отгрузки и документы: - для продацов из России — лист отгрузки и транспортную накладную; - для продавцов из СНГ — акт и транспортную накладную. + * Список доступных перевозок + */ + postingAPIGetCarriageAvailableList(clientId, apiKey, postingv1GetCarriageAvailableListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetCarriageAvailableListRaw({ clientId: clientId, apiKey: apiKey, postingv1GetCarriageAvailableListRequest: postingv1GetCarriageAvailableListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает статус формирования штрихкода для отгрузки и документов: - для продавцов из России — транспортной накладной и листа отгрузки; - для продавцов из СНГ — транспортной накладной и акта приёма-передачи. + * Статус отгрузки и документов + */ + postingAPIPostingFBSActCheckStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSActCheckStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSActCheckStatus().'); + } + if (requestParameters['postingPostingFBSActCheckStatusRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSActCheckStatusRequest', 'Required parameter "postingPostingFBSActCheckStatusRequest" was null or undefined when calling postingAPIPostingFBSActCheckStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/check-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingPostingFBSActCheckStatusRequestToJSON(requestParameters['postingPostingFBSActCheckStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingPostingFBSActCheckStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает статус формирования штрихкода для отгрузки и документов: - для продавцов из России — транспортной накладной и листа отгрузки; - для продавцов из СНГ — транспортной накладной и акта приёма-передачи. + * Статус отгрузки и документов + */ + postingAPIPostingFBSActCheckStatus(clientId, apiKey, postingPostingFBSActCheckStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSActCheckStatusRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSActCheckStatusRequest: postingPostingFBSActCheckStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Подтверждает отгрузку и запускает формирование транспортной накладной и штрихкода для отгрузки. Для продавцов из России также запускается формирование листа отгрузки, а для продавцов из СНГ — акта приёма-передачи. Чтобы сформировать и получить документы, переведите отправление в статус `awaiting_deliver`. + * Подтвердить отгрузку и создать документы + */ + postingAPIPostingFBSActCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSActCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSActCreate().'); + } + if (requestParameters['postingPostingFBSActCreateRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSActCreateRequest', 'Required parameter "postingPostingFBSActCreateRequest" was null or undefined when calling postingAPIPostingFBSActCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingPostingFBSActCreateRequestToJSON(requestParameters['postingPostingFBSActCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingPostingFBSActCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Подтверждает отгрузку и запускает формирование транспортной накладной и штрихкода для отгрузки. Для продавцов из России также запускается формирование листа отгрузки, а для продавцов из СНГ — акта приёма-передачи. Чтобы сформировать и получить документы, переведите отправление в статус `awaiting_deliver`. + * Подтвердить отгрузку и создать документы + */ + postingAPIPostingFBSActCreate(clientId, apiKey, postingPostingFBSActCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSActCreateRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSActCreateRequest: postingPostingFBSActCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод создает этикетки для грузового места. + * Этикетки для грузового места + */ + postingAPIPostingFBSActGetContainerLabelsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSActGetContainerLabels().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSActGetContainerLabels().'); + } + if (requestParameters['postingPostingFBSActGetContainerLabelsRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSActGetContainerLabelsRequest', 'Required parameter "postingPostingFBSActGetContainerLabelsRequest" was null or undefined when calling postingAPIPostingFBSActGetContainerLabels().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-container-labels`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingPostingFBSActGetContainerLabelsRequestToJSON(requestParameters['postingPostingFBSActGetContainerLabelsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingPostingFBSActGetContainerLabelsResponseFromJSON(jsonValue)); + }); + } + /** + * Метод создает этикетки для грузового места. + * Этикетки для грузового места + */ + postingAPIPostingFBSActGetContainerLabels(clientId, apiKey, postingPostingFBSActGetContainerLabelsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSActGetContainerLabelsRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSActGetContainerLabelsRequest: postingPostingFBSActGetContainerLabelsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Статус формирования накладной + * @deprecated + */ + postingAPIPostingFBSDigitalActCheckStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSDigitalActCheckStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSDigitalActCheckStatus().'); + } + if (requestParameters['v2PostingFBSDigitalActCheckStatusRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSDigitalActCheckStatusRequest', 'Required parameter "v2PostingFBSDigitalActCheckStatusRequest" was null or undefined when calling postingAPIPostingFBSDigitalActCheckStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/digital/act/check-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2PostingFBSDigitalActCheckStatusRequestToJSON(requestParameters['v2PostingFBSDigitalActCheckStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2PostingFBSDigitalActCheckStatusResponseFromJSON(jsonValue)); + }); + } + /** + * + * Статус формирования накладной + * @deprecated + */ + postingAPIPostingFBSDigitalActCheckStatus(clientId, apiKey, v2PostingFBSDigitalActCheckStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSDigitalActCheckStatusRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSDigitalActCheckStatusRequest: v2PostingFBSDigitalActCheckStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * С помощью метода можно получить: - продацам из России — лист отгрузки и транспортную накладную; - продавцам из СНГ — акт и транспортную накладную. Получите список доступных документов для отгрузки в параметре `available_actions` метода [/v1/carriage/get](#operation/CarriageGet). + * Получить PDF c документами + */ + postingAPIPostingFBSGetActRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSGetAct().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSGetAct().'); + } + if (requestParameters['postingPostingFBSGetActRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSGetActRequest', 'Required parameter "postingPostingFBSGetActRequest" was null or undefined when calling postingAPIPostingFBSGetAct().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-pdf`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingPostingFBSGetActRequestToJSON(requestParameters['postingPostingFBSGetActRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingPostingFBSGetActResponseFromJSON(jsonValue)); + }); + } + /** + * С помощью метода можно получить: - продацам из России — лист отгрузки и транспортную накладную; - продавцам из СНГ — акт и транспортную накладную. Получите список доступных документов для отгрузки в параметре `available_actions` метода [/v1/carriage/get](#operation/CarriageGet). + * Получить PDF c документами + */ + postingAPIPostingFBSGetAct(clientId, apiKey, postingPostingFBSGetActRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSGetActRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSGetActRequest: postingPostingFBSGetActRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения штрихкода, который нужно показать в пункте выдачи или сортировочном центре при отгрузке отправления. + * Штрихкод для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSGetBarcode().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSGetBarcode().'); + } + if (requestParameters['v2PostingFBSGetBarcodeRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSGetBarcodeRequest', 'Required parameter "v2PostingFBSGetBarcodeRequest" was null or undefined when calling postingAPIPostingFBSGetBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-barcode`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2PostingFBSGetBarcodeRequestToJSON(requestParameters['v2PostingFBSGetBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2PostingFBSGetBarcodeResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения штрихкода, который нужно показать в пункте выдачи или сортировочном центре при отгрузке отправления. + * Штрихкод для отгрузки отправления + */ + postingAPIPostingFBSGetBarcode(clientId, apiKey, v2PostingFBSGetBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSGetBarcodeRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSGetBarcodeRequest: v2PostingFBSGetBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте этот метод, чтобы получить штрихкод из ответа [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode) в текстовом виде. + * Значение штрихкода для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeTextRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSGetBarcodeText().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSGetBarcodeText().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/act/get-barcode/text`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2PostingFBSGetBarcodeRequestToJSON(requestParameters['v2PostingFBSGetBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2PostingFBSGetBarcodeTextResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте этот метод, чтобы получить штрихкод из ответа [/v2/posting/fbs/act/get-barcode](#operation/PostingAPI_PostingFBSGetBarcode) в текстовом виде. + * Значение штрихкода для отгрузки отправления + */ + postingAPIPostingFBSGetBarcodeText(clientId, apiKey, v2PostingFBSGetBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSGetBarcodeTextRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSGetBarcodeRequest: v2PostingFBSGetBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете получить документы, если в ответе метода [/v2/posting/fbs/digital/act/check-status](#operation/PostingAPI_PostingFBSDigitalActCheckStatus) был один из статусов: - `FORMED` — перевозка сформирована успешно, - `CONFIRMED` — перевозка подтверждена Ozon, - `CONFIRMED_WITH_MISMATCH` — перевозка принята Ozon с расхождениями. + * Получить лист отгрузки по перевозке + * @deprecated + */ + postingAPIPostingFBSGetDigitalActRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSGetDigitalAct().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSGetDigitalAct().'); + } + if (requestParameters['v2PostingFBSGetDigitalActRequest'] == null) { + throw new runtime.RequiredError('v2PostingFBSGetDigitalActRequest', 'Required parameter "v2PostingFBSGetDigitalActRequest" was null or undefined when calling postingAPIPostingFBSGetDigitalAct().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/digital/act/get-pdf`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2PostingFBSGetDigitalActRequestToJSON(requestParameters['v2PostingFBSGetDigitalActRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2PostingFBSGetDigitalActResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете получить документы, если в ответе метода [/v2/posting/fbs/digital/act/check-status](#operation/PostingAPI_PostingFBSDigitalActCheckStatus) был один из статусов: - `FORMED` — перевозка сформирована успешно, - `CONFIRMED` — перевозка подтверждена Ozon, - `CONFIRMED_WITH_MISMATCH` — перевозка принята Ozon с расхождениями. + * Получить лист отгрузки по перевозке + * @deprecated + */ + postingAPIPostingFBSGetDigitalAct(clientId, apiKey, v2PostingFBSGetDigitalActRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSGetDigitalActRaw({ clientId: clientId, apiKey: apiKey, v2PostingFBSGetDigitalActRequest: v2PostingFBSGetDigitalActRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список незаполненных атрибутов для прослеживаемых товаров + */ + postingFbsProductTraceableAttributeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbsProductTraceableAttribute().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbsProductTraceableAttribute().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/product/traceable/attribute`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingFbsProductTraceableAttributeRequestToJSON(requestParameters['v1PostingFbsProductTraceableAttributeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingFbsProductTraceableAttributeResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список незаполненных атрибутов для прослеживаемых товаров + */ + postingFbsProductTraceableAttribute(clientId, apiKey, v1PostingFbsProductTraceableAttributeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbsProductTraceableAttributeRaw({ clientId: clientId, apiKey: apiKey, v1PostingFbsProductTraceableAttributeRequest: v1PostingFbsProductTraceableAttributeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Разделить отправление с прослеживаемыми товарами + */ + postingFbsTraceableSplitRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbsTraceableSplit().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbsTraceableSplit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/traceable/split`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingFbsTraceableSplitRequestToJSON(requestParameters['v1PostingFbsTraceableSplitRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingFbsTraceableSplitResponseFromJSON(jsonValue)); + }); + } + /** + * Разделить отправление с прослеживаемыми товарами + */ + postingFbsTraceableSplit(clientId, apiKey, v1PostingFbsTraceableSplitRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbsTraceableSplitRaw({ clientId: clientId, apiKey: apiKey, v1PostingFbsTraceableSplitRequest: v1PostingFbsTraceableSplitRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DeliveryrFBS.d.ts b/dist/esm/apis/DeliveryrFBS.d.ts new file mode 100644 index 0000000..01128ff --- /dev/null +++ b/dist/esm/apis/DeliveryrFBS.d.ts @@ -0,0 +1,123 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PostingFbsPostingDeliveredRequest, PostingFbsPostingDeliveringRequest, PostingFbsPostingLastMileRequest, PostingFbsPostingMoveStatusResponse, PostingFbsPostingTrackingNumberSetRequest, V1PostingFbsTimeslotChangeRestrictionsRequest, V1PostingFbsTimeslotChangeRestrictionsResponse, V1PostingFbsTimeslotSetRequest, V1PostingFbsTimeslotSetResponse, V1SetPostingCutoffRequest, V1SetPostingCutoffResponse } from '../models/index'; +export interface PostingAPIFbsPostingDeliveredRequest { + clientId: string; + apiKey: string; + postingFbsPostingDeliveredRequest: PostingFbsPostingDeliveredRequest; +} +export interface PostingAPIFbsPostingDeliveringRequest { + clientId: string; + apiKey: string; + postingFbsPostingDeliveringRequest: PostingFbsPostingDeliveringRequest; +} +export interface PostingAPIFbsPostingLastMileRequest { + clientId: string; + apiKey: string; + postingFbsPostingLastMileRequest: PostingFbsPostingLastMileRequest; +} +export interface PostingAPIFbsPostingTrackingNumberSetRequest { + clientId: string; + apiKey: string; + postingFbsPostingTrackingNumberSetRequest: PostingFbsPostingTrackingNumberSetRequest; +} +export interface PostingAPIPostingTimeslotChangeRestrictionsRequest { + clientId: string; + apiKey: string; + v1PostingFbsTimeslotChangeRestrictionsRequest: V1PostingFbsTimeslotChangeRestrictionsRequest; +} +export interface PostingAPISetPostingCutoffRequest { + clientId: string; + apiKey: string; + v1SetPostingCutoffRequest: V1SetPostingCutoffRequest; +} +export interface PostingAPISetPostingTimeslotRequest { + clientId: string; + apiKey: string; + v1PostingFbsTimeslotSetRequest: V1PostingFbsTimeslotSetRequest; +} +/** + * + */ +export declare class DeliveryrFBS extends runtime.BaseAPI { + /** + * Перевести отправление в статус «Доставлено», если используется сторонняя служба доставки. + * Изменить статус на «Доставлено» + */ + postingAPIFbsPostingDeliveredRaw(requestParameters: PostingAPIFbsPostingDeliveredRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перевести отправление в статус «Доставлено», если используется сторонняя служба доставки. + * Изменить статус на «Доставлено» + */ + postingAPIFbsPostingDelivered(clientId: string, apiKey: string, postingFbsPostingDeliveredRequest: PostingFbsPostingDeliveredRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Перевести отправление в статус «Доставляется», если используется сторонняя служба доставки. + * Изменить статус на «Доставляется» + */ + postingAPIFbsPostingDeliveringRaw(requestParameters: PostingAPIFbsPostingDeliveringRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перевести отправление в статус «Доставляется», если используется сторонняя служба доставки. + * Изменить статус на «Доставляется» + */ + postingAPIFbsPostingDelivering(clientId: string, apiKey: string, postingFbsPostingDeliveringRequest: PostingFbsPostingDeliveringRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Перевести отправление в статус «Последняя миля», если используется сторонняя служба доставки. + * Изменить статус на «Последняя миля» + */ + postingAPIFbsPostingLastMileRaw(requestParameters: PostingAPIFbsPostingLastMileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перевести отправление в статус «Последняя миля», если используется сторонняя служба доставки. + * Изменить статус на «Последняя миля» + */ + postingAPIFbsPostingLastMile(clientId: string, apiKey: string, postingFbsPostingLastMileRequest: PostingFbsPostingLastMileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Добавить трек-номера к отправлениям. Вы можете передать до 20 трек-номеров за раз. + * Добавить трек-номера + */ + postingAPIFbsPostingTrackingNumberSetRaw(requestParameters: PostingAPIFbsPostingTrackingNumberSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Добавить трек-номера к отправлениям. Вы можете передать до 20 трек-номеров за раз. + * Добавить трек-номера + */ + postingAPIFbsPostingTrackingNumberSet(clientId: string, apiKey: string, postingFbsPostingTrackingNumberSetRequest: PostingFbsPostingTrackingNumberSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения доступных дат для переноса доставки и количества доступных переносов. + * Доступные даты для переноса доставки + */ + postingAPIPostingTimeslotChangeRestrictionsRaw(requestParameters: PostingAPIPostingTimeslotChangeRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения доступных дат для переноса доставки и количества доступных переносов. + * Доступные даты для переноса доставки + */ + postingAPIPostingTimeslotChangeRestrictions(clientId: string, apiKey: string, v1PostingFbsTimeslotChangeRestrictionsRequest: V1PostingFbsTimeslotChangeRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для отправлений, которые доставляет продавец или неинтегрированный перевозчик. + * Уточнить дату отгрузки отправления + */ + postingAPISetPostingCutoffRaw(requestParameters: PostingAPISetPostingCutoffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для отправлений, которые доставляет продавец или неинтегрированный перевозчик. + * Уточнить дату отгрузки отправления + */ + postingAPISetPostingCutoff(clientId: string, apiKey: string, v1SetPostingCutoffRequest: V1SetPostingCutoffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете изменить дату доставки отправления не больше двух раз. + * Перенести дату доставки + */ + postingAPISetPostingTimeslotRaw(requestParameters: PostingAPISetPostingTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете изменить дату доставки отправления не больше двух раз. + * Перенести дату доставки + */ + postingAPISetPostingTimeslot(clientId: string, apiKey: string, v1PostingFbsTimeslotSetRequest: V1PostingFbsTimeslotSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/DeliveryrFBS.js b/dist/esm/apis/DeliveryrFBS.js new file mode 100644 index 0000000..113f7f8 --- /dev/null +++ b/dist/esm/apis/DeliveryrFBS.js @@ -0,0 +1,337 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { PostingFbsPostingDeliveredRequestToJSON, PostingFbsPostingDeliveringRequestToJSON, PostingFbsPostingLastMileRequestToJSON, PostingFbsPostingMoveStatusResponseFromJSON, PostingFbsPostingTrackingNumberSetRequestToJSON, V1PostingFbsTimeslotChangeRestrictionsRequestToJSON, V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON, V1PostingFbsTimeslotSetRequestToJSON, V1PostingFbsTimeslotSetResponseFromJSON, V1SetPostingCutoffRequestToJSON, V1SetPostingCutoffResponseFromJSON, } from '../models/index'; +/** + * + */ +export class DeliveryrFBS extends runtime.BaseAPI { + /** + * Перевести отправление в статус «Доставлено», если используется сторонняя служба доставки. + * Изменить статус на «Доставлено» + */ + postingAPIFbsPostingDeliveredRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingDelivered().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingDelivered().'); + } + if (requestParameters['postingFbsPostingDeliveredRequest'] == null) { + throw new runtime.RequiredError('postingFbsPostingDeliveredRequest', 'Required parameter "postingFbsPostingDeliveredRequest" was null or undefined when calling postingAPIFbsPostingDelivered().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/fbs/posting/delivered`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingFbsPostingDeliveredRequestToJSON(requestParameters['postingFbsPostingDeliveredRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingFbsPostingMoveStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Перевести отправление в статус «Доставлено», если используется сторонняя служба доставки. + * Изменить статус на «Доставлено» + */ + postingAPIFbsPostingDelivered(clientId, apiKey, postingFbsPostingDeliveredRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingDeliveredRaw({ clientId: clientId, apiKey: apiKey, postingFbsPostingDeliveredRequest: postingFbsPostingDeliveredRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Перевести отправление в статус «Доставляется», если используется сторонняя служба доставки. + * Изменить статус на «Доставляется» + */ + postingAPIFbsPostingDeliveringRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingDelivering().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingDelivering().'); + } + if (requestParameters['postingFbsPostingDeliveringRequest'] == null) { + throw new runtime.RequiredError('postingFbsPostingDeliveringRequest', 'Required parameter "postingFbsPostingDeliveringRequest" was null or undefined when calling postingAPIFbsPostingDelivering().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/fbs/posting/delivering`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingFbsPostingDeliveringRequestToJSON(requestParameters['postingFbsPostingDeliveringRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingFbsPostingMoveStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Перевести отправление в статус «Доставляется», если используется сторонняя служба доставки. + * Изменить статус на «Доставляется» + */ + postingAPIFbsPostingDelivering(clientId, apiKey, postingFbsPostingDeliveringRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingDeliveringRaw({ clientId: clientId, apiKey: apiKey, postingFbsPostingDeliveringRequest: postingFbsPostingDeliveringRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Перевести отправление в статус «Последняя миля», если используется сторонняя служба доставки. + * Изменить статус на «Последняя миля» + */ + postingAPIFbsPostingLastMileRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingLastMile().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingLastMile().'); + } + if (requestParameters['postingFbsPostingLastMileRequest'] == null) { + throw new runtime.RequiredError('postingFbsPostingLastMileRequest', 'Required parameter "postingFbsPostingLastMileRequest" was null or undefined when calling postingAPIFbsPostingLastMile().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/fbs/posting/last-mile`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingFbsPostingLastMileRequestToJSON(requestParameters['postingFbsPostingLastMileRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingFbsPostingMoveStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Перевести отправление в статус «Последняя миля», если используется сторонняя служба доставки. + * Изменить статус на «Последняя миля» + */ + postingAPIFbsPostingLastMile(clientId, apiKey, postingFbsPostingLastMileRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingLastMileRaw({ clientId: clientId, apiKey: apiKey, postingFbsPostingLastMileRequest: postingFbsPostingLastMileRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Добавить трек-номера к отправлениям. Вы можете передать до 20 трек-номеров за раз. + * Добавить трек-номера + */ + postingAPIFbsPostingTrackingNumberSetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingTrackingNumberSet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingTrackingNumberSet().'); + } + if (requestParameters['postingFbsPostingTrackingNumberSetRequest'] == null) { + throw new runtime.RequiredError('postingFbsPostingTrackingNumberSetRequest', 'Required parameter "postingFbsPostingTrackingNumberSetRequest" was null or undefined when calling postingAPIFbsPostingTrackingNumberSet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/fbs/posting/tracking-number/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingFbsPostingTrackingNumberSetRequestToJSON(requestParameters['postingFbsPostingTrackingNumberSetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingFbsPostingMoveStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Добавить трек-номера к отправлениям. Вы можете передать до 20 трек-номеров за раз. + * Добавить трек-номера + */ + postingAPIFbsPostingTrackingNumberSet(clientId, apiKey, postingFbsPostingTrackingNumberSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingTrackingNumberSetRaw({ clientId: clientId, apiKey: apiKey, postingFbsPostingTrackingNumberSetRequest: postingFbsPostingTrackingNumberSetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения доступных дат для переноса доставки и количества доступных переносов. + * Доступные даты для переноса доставки + */ + postingAPIPostingTimeslotChangeRestrictionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingTimeslotChangeRestrictions().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingTimeslotChangeRestrictions().'); + } + if (requestParameters['v1PostingFbsTimeslotChangeRestrictionsRequest'] == null) { + throw new runtime.RequiredError('v1PostingFbsTimeslotChangeRestrictionsRequest', 'Required parameter "v1PostingFbsTimeslotChangeRestrictionsRequest" was null or undefined when calling postingAPIPostingTimeslotChangeRestrictions().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/timeslot/change-restrictions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingFbsTimeslotChangeRestrictionsRequestToJSON(requestParameters['v1PostingFbsTimeslotChangeRestrictionsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения доступных дат для переноса доставки и количества доступных переносов. + * Доступные даты для переноса доставки + */ + postingAPIPostingTimeslotChangeRestrictions(clientId, apiKey, v1PostingFbsTimeslotChangeRestrictionsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingTimeslotChangeRestrictionsRaw({ clientId: clientId, apiKey: apiKey, v1PostingFbsTimeslotChangeRestrictionsRequest: v1PostingFbsTimeslotChangeRestrictionsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для отправлений, которые доставляет продавец или неинтегрированный перевозчик. + * Уточнить дату отгрузки отправления + */ + postingAPISetPostingCutoffRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPISetPostingCutoff().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPISetPostingCutoff().'); + } + if (requestParameters['v1SetPostingCutoffRequest'] == null) { + throw new runtime.RequiredError('v1SetPostingCutoffRequest', 'Required parameter "v1SetPostingCutoffRequest" was null or undefined when calling postingAPISetPostingCutoff().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/cutoff/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SetPostingCutoffRequestToJSON(requestParameters['v1SetPostingCutoffRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SetPostingCutoffResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для отправлений, которые доставляет продавец или неинтегрированный перевозчик. + * Уточнить дату отгрузки отправления + */ + postingAPISetPostingCutoff(clientId, apiKey, v1SetPostingCutoffRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPISetPostingCutoffRaw({ clientId: clientId, apiKey: apiKey, v1SetPostingCutoffRequest: v1SetPostingCutoffRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете изменить дату доставки отправления не больше двух раз. + * Перенести дату доставки + */ + postingAPISetPostingTimeslotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPISetPostingTimeslot().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPISetPostingTimeslot().'); + } + if (requestParameters['v1PostingFbsTimeslotSetRequest'] == null) { + throw new runtime.RequiredError('v1PostingFbsTimeslotSetRequest', 'Required parameter "v1PostingFbsTimeslotSetRequest" was null or undefined when calling postingAPISetPostingTimeslot().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/timeslot/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingFbsTimeslotSetRequestToJSON(requestParameters['v1PostingFbsTimeslotSetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingFbsTimeslotSetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете изменить дату доставки отправления не больше двух раз. + * Перенести дату доставки + */ + postingAPISetPostingTimeslot(clientId, apiKey, v1PostingFbsTimeslotSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPISetPostingTimeslotRaw({ clientId: clientId, apiKey: apiKey, v1PostingFbsTimeslotSetRequest: v1PostingFbsTimeslotSetRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/Digital.d.ts b/dist/esm/apis/Digital.d.ts new file mode 100644 index 0000000..de7e5e9 --- /dev/null +++ b/dist/esm/apis/Digital.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1ListPostingCodesRequest, V1ListPostingCodesResponse, V1StocksImportRequest, V1StocksImportResponse, V1UploadPostingCodesRequest, V1UploadPostingCodesResponse } from '../models/index'; +export interface DigitalProductAPIStocksImportRequest { + v1StocksImportRequest: V1StocksImportRequest; +} +export interface ListPostingCodesRequest { + v1ListPostingCodesRequest: V1ListPostingCodesRequest; +} +export interface UploadPostingCodesRequest { + v1UploadPostingCodesRequest?: V1UploadPostingCodesRequest; +} +/** + * + */ +export declare class Digital extends runtime.BaseAPI { + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Используйте метод, чтобы изменить информацию о количестве товара в наличии. + * Обновить количество цифровых товаров + */ + digitalProductAPIStocksImportRaw(requestParameters: DigitalProductAPIStocksImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Используйте метод, чтобы изменить информацию о количестве товара в наличии. + * Обновить количество цифровых товаров + */ + digitalProductAPIStocksImport(v1StocksImportRequest: V1StocksImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, работающим с цифровыми товарами. Чтобы получить список отправлений в любом статусе, воспользуйтесь методом [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList). + * Получить список отправлений + * @deprecated + */ + listPostingCodesRaw(requestParameters: ListPostingCodesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, работающим с цифровыми товарами. Чтобы получить список отправлений в любом статусе, воспользуйтесь методом [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList). + * Получить список отправлений + * @deprecated + */ + listPostingCodes(v1ListPostingCodesRequest: V1ListPostingCodesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Вы можете загрузить коды цифровых товаров в течение 24 часов с момента получения заказа. Передайте все коды цифровых товаров к каждому товару в заказе за один запрос. Если передадите не все коды, запрос вернётся с ошибкой. + * Загрузить коды цифровых товаров для отправления + */ + uploadPostingCodesRaw(requestParameters: UploadPostingCodesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Вы можете загрузить коды цифровых товаров в течение 24 часов с момента получения заказа. Передайте все коды цифровых товаров к каждому товару в заказе за один запрос. Если передадите не все коды, запрос вернётся с ошибкой. + * Загрузить коды цифровых товаров для отправления + */ + uploadPostingCodes(v1UploadPostingCodesRequest?: V1UploadPostingCodesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/Digital.js b/dist/esm/apis/Digital.js new file mode 100644 index 0000000..9055a0c --- /dev/null +++ b/dist/esm/apis/Digital.js @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1ListPostingCodesRequestToJSON, V1ListPostingCodesResponseFromJSON, V1StocksImportRequestToJSON, V1StocksImportResponseFromJSON, V1UploadPostingCodesRequestToJSON, V1UploadPostingCodesResponseFromJSON, } from '../models/index'; +/** + * + */ +export class Digital extends runtime.BaseAPI { + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Используйте метод, чтобы изменить информацию о количестве товара в наличии. + * Обновить количество цифровых товаров + */ + digitalProductAPIStocksImportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1StocksImportRequest'] == null) { + throw new runtime.RequiredError('v1StocksImportRequest', 'Required parameter "v1StocksImportRequest" was null or undefined when calling digitalProductAPIStocksImport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/digital/stocks/import`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1StocksImportRequestToJSON(requestParameters['v1StocksImportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1StocksImportResponseFromJSON(jsonValue)); + }); + } + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Используйте метод, чтобы изменить информацию о количестве товара в наличии. + * Обновить количество цифровых товаров + */ + digitalProductAPIStocksImport(v1StocksImportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.digitalProductAPIStocksImportRaw({ v1StocksImportRequest: v1StocksImportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, работающим с цифровыми товарами. Чтобы получить список отправлений в любом статусе, воспользуйтесь методом [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList). + * Получить список отправлений + * @deprecated + */ + listPostingCodesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ListPostingCodesRequest'] == null) { + throw new runtime.RequiredError('v1ListPostingCodesRequest', 'Required parameter "v1ListPostingCodesRequest" was null or undefined when calling listPostingCodes().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/digital/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ListPostingCodesRequestToJSON(requestParameters['v1ListPostingCodesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ListPostingCodesResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список отправлений, по которым нужно загрузить коды цифровых товаров. Метод доступен только продавцам, работающим с цифровыми товарами. Чтобы получить список отправлений в любом статусе, воспользуйтесь методом [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList). + * Получить список отправлений + * @deprecated + */ + listPostingCodes(v1ListPostingCodesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.listPostingCodesRaw({ v1ListPostingCodesRequest: v1ListPostingCodesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Вы можете загрузить коды цифровых товаров в течение 24 часов с момента получения заказа. Передайте все коды цифровых товаров к каждому товару в заказе за один запрос. Если передадите не все коды, запрос вернётся с ошибкой. + * Загрузить коды цифровых товаров для отправления + */ + uploadPostingCodesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/digital/codes/upload`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1UploadPostingCodesRequestToJSON(requestParameters['v1UploadPostingCodesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1UploadPostingCodesResponseFromJSON(jsonValue)); + }); + } + /** + * Метод доступен только продавцам, работающим с цифровыми товарами. Вы можете загрузить коды цифровых товаров в течение 24 часов с момента получения заказа. Передайте все коды цифровых товаров к каждому товару в заказе за один запрос. Если передадите не все коды, запрос вернётся с ошибкой. + * Загрузить коды цифровых товаров для отправления + */ + uploadPostingCodes(v1UploadPostingCodesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.uploadPostingCodesRaw({ v1UploadPostingCodesRequest: v1UploadPostingCodesRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DraftDirectFBP.d.ts b/dist/esm/apis/DraftDirectFBP.d.ts new file mode 100644 index 0000000..84c1352 --- /dev/null +++ b/dist/esm/apis/DraftDirectFBP.d.ts @@ -0,0 +1,156 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpDraftDirectCreateRequest, V1FbpDraftDirectCreateResponse, V1FbpDraftDirectDeleteRequest, V1FbpDraftDirectDeleteResponse, V1FbpDraftDirectGetTimeslotRequest, V1FbpDraftDirectGetTimeslotResponse, V1FbpDraftDirectProductValidateRequest, V1FbpDraftDirectProductValidateResponse, V1FbpDraftDirectRegistrateRequest, V1FbpDraftDirectRegistrateResponse, V1FbpDraftDirectSellerDlvCreateRequest, V1FbpDraftDirectSellerDlvCreateResponse, V1FbpDraftDirectSellerDlvEditRequest, V1FbpDraftDirectSellerDlvEditResponse, V1FbpDraftDirectTimeslotEditRequest, V1FbpDraftDirectTimeslotEditResponse, V1FbpDraftDirectTplDlvCreateRequest, V1FbpDraftDirectTplDlvCreateResponse, V1FbpDraftDirectTplDlvEditRequest, V1FbpDraftDirectTplDlvEditResponse } from '../models/index'; +export interface FbpAPIFbpDraftDirectTplDlvCreateRequest { + v1FbpDraftDirectTplDlvCreateRequest: V1FbpDraftDirectTplDlvCreateRequest; +} +export interface FbpAPIFbpDraftDirectTplDlvEditRequest { + v1FbpDraftDirectTplDlvEditRequest: V1FbpDraftDirectTplDlvEditRequest; +} +export interface FbpDraftDirectCreateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDirectCreateRequest: V1FbpDraftDirectCreateRequest; +} +export interface FbpDraftDirectDeleteRequest { + clientId: string; + apiKey: string; + v1FbpDraftDirectDeleteRequest: V1FbpDraftDirectDeleteRequest; +} +export interface FbpDraftDirectGetTimeslotRequest { + v1FbpDraftDirectGetTimeslotRequest?: V1FbpDraftDirectGetTimeslotRequest; +} +export interface FbpDraftDirectProductValidateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDirectProductValidateRequest: V1FbpDraftDirectProductValidateRequest; +} +export interface FbpDraftDirectRegistrateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDirectRegistrateRequest: V1FbpDraftDirectRegistrateRequest; +} +export interface FbpDraftDirectSellerDlvCreateRequest { + v1FbpDraftDirectSellerDlvCreateRequest?: V1FbpDraftDirectSellerDlvCreateRequest; +} +export interface FbpDraftDirectSellerDlvEditRequest { + v1FbpDraftDirectSellerDlvEditRequest?: V1FbpDraftDirectSellerDlvEditRequest; +} +export interface FbpDraftDirectTimeslotEditRequest { + v1FbpDraftDirectTimeslotEditRequest?: V1FbpDraftDirectTimeslotEditRequest; +} +/** + * + */ +export declare class DraftDirectFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на доставку сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvCreateRaw(requestParameters: FbpAPIFbpDraftDirectTplDlvCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на доставку сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvCreate(v1FbpDraftDirectTplDlvCreateRequest: V1FbpDraftDirectTplDlvCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Редактировать черновик поставки со способом доставки сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvEditRaw(requestParameters: FbpAPIFbpDraftDirectTplDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Редактировать черновик поставки со способом доставки сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvEdit(v1FbpDraftDirectTplDlvEditRequest: V1FbpDraftDirectTplDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на поставку без указания способа доставки + */ + fbpDraftDirectCreateRaw(requestParameters: FbpDraftDirectCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на поставку без указания способа доставки + */ + fbpDraftDirectCreate(clientId: string, apiKey: string, v1FbpDraftDirectCreateRequest: V1FbpDraftDirectCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик заявки на поставку + */ + fbpDraftDirectDeleteRaw(requestParameters: FbpDraftDirectDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик заявки на поставку + */ + fbpDraftDirectDelete(clientId: string, apiKey: string, v1FbpDraftDirectDeleteRequest: V1FbpDraftDirectDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для прямой поставки + */ + fbpDraftDirectGetTimeslotRaw(requestParameters: FbpDraftDirectGetTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для прямой поставки + */ + fbpDraftDirectGetTimeslot(v1FbpDraftDirectGetTimeslotRequest?: V1FbpDraftDirectGetTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров для склада партнёра + */ + fbpDraftDirectProductValidateRaw(requestParameters: FbpDraftDirectProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров для склада партнёра + */ + fbpDraftDirectProductValidate(clientId: string, apiKey: string, v1FbpDraftDirectProductValidateRequest: V1FbpDraftDirectProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDirectRegistrateRaw(requestParameters: FbpDraftDirectRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDirectRegistrate(clientId: string, apiKey: string, v1FbpDraftDirectRegistrateRequest: V1FbpDraftDirectRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик с доставкой силами продавца + */ + fbpDraftDirectSellerDlvCreateRaw(requestParameters: FbpDraftDirectSellerDlvCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик с доставкой силами продавца + */ + fbpDraftDirectSellerDlvCreate(v1FbpDraftDirectSellerDlvCreateRequest?: V1FbpDraftDirectSellerDlvCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца в черновике + */ + fbpDraftDirectSellerDlvEditRaw(requestParameters: FbpDraftDirectSellerDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца в черновике + */ + fbpDraftDirectSellerDlvEdit(v1FbpDraftDirectSellerDlvEditRequest?: V1FbpDraftDirectSellerDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в черновике + */ + fbpDraftDirectTimeslotEditRaw(requestParameters: FbpDraftDirectTimeslotEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в черновике + */ + fbpDraftDirectTimeslotEdit(v1FbpDraftDirectTimeslotEditRequest?: V1FbpDraftDirectTimeslotEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/DraftDirectFBP.js b/dist/esm/apis/DraftDirectFBP.js new file mode 100644 index 0000000..fe06461 --- /dev/null +++ b/dist/esm/apis/DraftDirectFBP.js @@ -0,0 +1,385 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1FbpDraftDirectCreateRequestToJSON, V1FbpDraftDirectCreateResponseFromJSON, V1FbpDraftDirectDeleteRequestToJSON, V1FbpDraftDirectDeleteResponseFromJSON, V1FbpDraftDirectGetTimeslotRequestToJSON, V1FbpDraftDirectGetTimeslotResponseFromJSON, V1FbpDraftDirectProductValidateRequestToJSON, V1FbpDraftDirectProductValidateResponseFromJSON, V1FbpDraftDirectRegistrateRequestToJSON, V1FbpDraftDirectRegistrateResponseFromJSON, V1FbpDraftDirectSellerDlvCreateRequestToJSON, V1FbpDraftDirectSellerDlvCreateResponseFromJSON, V1FbpDraftDirectSellerDlvEditRequestToJSON, V1FbpDraftDirectSellerDlvEditResponseFromJSON, V1FbpDraftDirectTimeslotEditRequestToJSON, V1FbpDraftDirectTimeslotEditResponseFromJSON, V1FbpDraftDirectTplDlvCreateRequestToJSON, V1FbpDraftDirectTplDlvCreateResponseFromJSON, V1FbpDraftDirectTplDlvEditRequestToJSON, V1FbpDraftDirectTplDlvEditResponseFromJSON, } from '../models/index'; +/** + * + */ +export class DraftDirectFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на доставку сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftDirectTplDlvCreateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectTplDlvCreateRequest', 'Required parameter "v1FbpDraftDirectTplDlvCreateRequest" was null or undefined when calling fbpAPIFbpDraftDirectTplDlvCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/tpl-dlv/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectTplDlvCreateRequestToJSON(requestParameters['v1FbpDraftDirectTplDlvCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectTplDlvCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на доставку сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvCreate(v1FbpDraftDirectTplDlvCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftDirectTplDlvCreateRaw({ v1FbpDraftDirectTplDlvCreateRequest: v1FbpDraftDirectTplDlvCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Редактировать черновик поставки со способом доставки сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftDirectTplDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectTplDlvEditRequest', 'Required parameter "v1FbpDraftDirectTplDlvEditRequest" was null or undefined when calling fbpAPIFbpDraftDirectTplDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/tpl-dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectTplDlvEditRequestToJSON(requestParameters['v1FbpDraftDirectTplDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectTplDlvEditResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Редактировать черновик поставки со способом доставки сторонней транспортной компанией + */ + fbpAPIFbpDraftDirectTplDlvEdit(v1FbpDraftDirectTplDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftDirectTplDlvEditRaw({ v1FbpDraftDirectTplDlvEditRequest: v1FbpDraftDirectTplDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на поставку без указания способа доставки + */ + fbpDraftDirectCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDirectCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDirectCreate().'); + } + if (requestParameters['v1FbpDraftDirectCreateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectCreateRequest', 'Required parameter "v1FbpDraftDirectCreateRequest" was null or undefined when calling fbpDraftDirectCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/direct/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectCreateRequestToJSON(requestParameters['v1FbpDraftDirectCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на поставку без указания способа доставки + */ + fbpDraftDirectCreate(clientId, apiKey, v1FbpDraftDirectCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectCreateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDirectCreateRequest: v1FbpDraftDirectCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик заявки на поставку + */ + fbpDraftDirectDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDirectDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDirectDelete().'); + } + if (requestParameters['v1FbpDraftDirectDeleteRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectDeleteRequest', 'Required parameter "v1FbpDraftDirectDeleteRequest" was null or undefined when calling fbpDraftDirectDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/direct/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectDeleteRequestToJSON(requestParameters['v1FbpDraftDirectDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectDeleteResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик заявки на поставку + */ + fbpDraftDirectDelete(clientId, apiKey, v1FbpDraftDirectDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectDeleteRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDirectDeleteRequest: v1FbpDraftDirectDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для прямой поставки + */ + fbpDraftDirectGetTimeslotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/timeslot/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectGetTimeslotRequestToJSON(requestParameters['v1FbpDraftDirectGetTimeslotRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectGetTimeslotResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для прямой поставки + */ + fbpDraftDirectGetTimeslot(v1FbpDraftDirectGetTimeslotRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectGetTimeslotRaw({ v1FbpDraftDirectGetTimeslotRequest: v1FbpDraftDirectGetTimeslotRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров для склада партнёра + */ + fbpDraftDirectProductValidateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDirectProductValidate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDirectProductValidate().'); + } + if (requestParameters['v1FbpDraftDirectProductValidateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectProductValidateRequest', 'Required parameter "v1FbpDraftDirectProductValidateRequest" was null or undefined when calling fbpDraftDirectProductValidate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/direct/product/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectProductValidateRequestToJSON(requestParameters['v1FbpDraftDirectProductValidateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectProductValidateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров для склада партнёра + */ + fbpDraftDirectProductValidate(clientId, apiKey, v1FbpDraftDirectProductValidateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectProductValidateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDirectProductValidateRequest: v1FbpDraftDirectProductValidateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDirectRegistrateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDirectRegistrate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDirectRegistrate().'); + } + if (requestParameters['v1FbpDraftDirectRegistrateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftDirectRegistrateRequest', 'Required parameter "v1FbpDraftDirectRegistrateRequest" was null or undefined when calling fbpDraftDirectRegistrate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/direct/registrate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectRegistrateRequestToJSON(requestParameters['v1FbpDraftDirectRegistrateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectRegistrateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDirectRegistrate(clientId, apiKey, v1FbpDraftDirectRegistrateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectRegistrateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDirectRegistrateRequest: v1FbpDraftDirectRegistrateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик с доставкой силами продавца + */ + fbpDraftDirectSellerDlvCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/seller-dlv/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectSellerDlvCreateRequestToJSON(requestParameters['v1FbpDraftDirectSellerDlvCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectSellerDlvCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик с доставкой силами продавца + */ + fbpDraftDirectSellerDlvCreate(v1FbpDraftDirectSellerDlvCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectSellerDlvCreateRaw({ v1FbpDraftDirectSellerDlvCreateRequest: v1FbpDraftDirectSellerDlvCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца в черновике + */ + fbpDraftDirectSellerDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/seller-dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectSellerDlvEditRequestToJSON(requestParameters['v1FbpDraftDirectSellerDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectSellerDlvEditResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца в черновике + */ + fbpDraftDirectSellerDlvEdit(v1FbpDraftDirectSellerDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectSellerDlvEditRaw({ v1FbpDraftDirectSellerDlvEditRequest: v1FbpDraftDirectSellerDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в черновике + */ + fbpDraftDirectTimeslotEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/direct/timeslot/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDirectTimeslotEditRequestToJSON(requestParameters['v1FbpDraftDirectTimeslotEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDirectTimeslotEditResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в черновике + */ + fbpDraftDirectTimeslotEdit(v1FbpDraftDirectTimeslotEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDirectTimeslotEditRaw({ v1FbpDraftDirectTimeslotEditRequest: v1FbpDraftDirectTimeslotEditRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DraftDropOffFBP.d.ts b/dist/esm/apis/DraftDropOffFBP.d.ts new file mode 100644 index 0000000..8be5e8e --- /dev/null +++ b/dist/esm/apis/DraftDropOffFBP.d.ts @@ -0,0 +1,138 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpDraftDropOffCreateRequest, V1FbpDraftDropOffCreateResponse, V1FbpDraftDropOffDeleteRequest, V1FbpDraftDropOffDeleteResponse, V1FbpDraftDropOffDlvEditRequest, V1FbpDraftDropOffDlvEditResponse, V1FbpDraftDropOffPointListRequest, V1FbpDraftDropOffPointListResponse, V1FbpDraftDropOffPointTimetableRequest, V1FbpDraftDropOffPointTimetableResponse, V1FbpDraftDropOffProductValidateRequest, V1FbpDraftDropOffProductValidateResponse, V1FbpDraftDropOffProvinceListRequest, V1FbpDraftDropOffProvinceListResponse, V1FbpDraftDropOffRegistrateRequest, V1FbpDraftDropOffRegistrateResponse } from '../models/index'; +export interface FbpDraftDropOffCreateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffCreateRequest?: V1FbpDraftDropOffCreateRequest; +} +export interface FbpDraftDropOffDeleteRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffDeleteRequest?: V1FbpDraftDropOffDeleteRequest; +} +export interface FbpDraftDropOffDlvEditRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffDlvEditRequest?: V1FbpDraftDropOffDlvEditRequest; +} +export interface FbpDraftDropOffPointListRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffPointListRequest?: V1FbpDraftDropOffPointListRequest; +} +export interface FbpDraftDropOffPointTimetableRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffPointTimetableRequest?: V1FbpDraftDropOffPointTimetableRequest; +} +export interface FbpDraftDropOffProductValidateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffProductValidateRequest?: V1FbpDraftDropOffProductValidateRequest; +} +export interface FbpDraftDropOffProvinceListRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffProvinceListRequest?: V1FbpDraftDropOffProvinceListRequest; +} +export interface FbpDraftDropOffRegistrateRequest { + clientId: string; + apiKey: string; + v1FbpDraftDropOffRegistrateRequest?: V1FbpDraftDropOffRegistrateRequest; +} +/** + * + */ +export declare class DraftDropOffFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик для доставки в drop-off пункт + */ + fbpDraftDropOffCreateRaw(requestParameters: FbpDraftDropOffCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик для доставки в drop-off пункт + */ + fbpDraftDropOffCreate(clientId: string, apiKey: string, v1FbpDraftDropOffCreateRequest?: V1FbpDraftDropOffCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик для доставки в drop-off пункт + */ + fbpDraftDropOffDeleteRaw(requestParameters: FbpDraftDropOffDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик для доставки в drop-off пункт + */ + fbpDraftDropOffDelete(clientId: string, apiKey: string, v1FbpDraftDropOffDeleteRequest?: V1FbpDraftDropOffDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать детали доставки для drop-off черновика + */ + fbpDraftDropOffDlvEditRaw(requestParameters: FbpDraftDropOffDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать детали доставки для drop-off черновика + */ + fbpDraftDropOffDlvEdit(clientId: string, apiKey: string, v1FbpDraftDropOffDlvEditRequest?: V1FbpDraftDropOffDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список drop-off пунктов в провинции + */ + fbpDraftDropOffPointListRaw(requestParameters: FbpDraftDropOffPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список drop-off пунктов в провинции + */ + fbpDraftDropOffPointList(clientId: string, apiKey: string, v1FbpDraftDropOffPointListRequest?: V1FbpDraftDropOffPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить расписание работы drop-off пункта + */ + fbpDraftDropOffPointTimetableRaw(requestParameters: FbpDraftDropOffPointTimetableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить расписание работы drop-off пункта + */ + fbpDraftDropOffPointTimetable(clientId: string, apiKey: string, v1FbpDraftDropOffPointTimetableRequest?: V1FbpDraftDropOffPointTimetableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров, которые склад партнёра может принять + */ + fbpDraftDropOffProductValidateRaw(requestParameters: FbpDraftDropOffProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров, которые склад партнёра может принять + */ + fbpDraftDropOffProductValidate(clientId: string, apiKey: string, v1FbpDraftDropOffProductValidateRequest?: V1FbpDraftDropOffProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список провинций + */ + fbpDraftDropOffProvinceListRaw(requestParameters: FbpDraftDropOffProvinceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список провинций + */ + fbpDraftDropOffProvinceList(clientId: string, apiKey: string, v1FbpDraftDropOffProvinceListRequest?: V1FbpDraftDropOffProvinceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDropOffRegistrateRaw(requestParameters: FbpDraftDropOffRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDropOffRegistrate(clientId: string, apiKey: string, v1FbpDraftDropOffRegistrateRequest?: V1FbpDraftDropOffRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/DraftDropOffFBP.js b/dist/esm/apis/DraftDropOffFBP.js new file mode 100644 index 0000000..e30713f --- /dev/null +++ b/dist/esm/apis/DraftDropOffFBP.js @@ -0,0 +1,357 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1FbpDraftDropOffCreateRequestToJSON, V1FbpDraftDropOffCreateResponseFromJSON, V1FbpDraftDropOffDeleteRequestToJSON, V1FbpDraftDropOffDeleteResponseFromJSON, V1FbpDraftDropOffDlvEditRequestToJSON, V1FbpDraftDropOffDlvEditResponseFromJSON, V1FbpDraftDropOffPointListRequestToJSON, V1FbpDraftDropOffPointListResponseFromJSON, V1FbpDraftDropOffPointTimetableRequestToJSON, V1FbpDraftDropOffPointTimetableResponseFromJSON, V1FbpDraftDropOffProductValidateRequestToJSON, V1FbpDraftDropOffProductValidateResponseFromJSON, V1FbpDraftDropOffProvinceListRequestToJSON, V1FbpDraftDropOffProvinceListResponseFromJSON, V1FbpDraftDropOffRegistrateRequestToJSON, V1FbpDraftDropOffRegistrateResponseFromJSON, } from '../models/index'; +/** + * + */ +export class DraftDropOffFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик для доставки в drop-off пункт + */ + fbpDraftDropOffCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDropOffCreateRequestToJSON(requestParameters['v1FbpDraftDropOffCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDropOffCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик для доставки в drop-off пункт + */ + fbpDraftDropOffCreate(clientId, apiKey, v1FbpDraftDropOffCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffCreateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffCreateRequest: v1FbpDraftDropOffCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик для доставки в drop-off пункт + */ + fbpDraftDropOffDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDropOffDeleteRequestToJSON(requestParameters['v1FbpDraftDropOffDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDropOffDeleteResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Удалить черновик для доставки в drop-off пункт + */ + fbpDraftDropOffDelete(clientId, apiKey, v1FbpDraftDropOffDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffDeleteRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffDeleteRequest: v1FbpDraftDropOffDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать детали доставки для drop-off черновика + */ + fbpDraftDropOffDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffDlvEdit().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDropOffDlvEditRequestToJSON(requestParameters['v1FbpDraftDropOffDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDropOffDlvEditResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать детали доставки для drop-off черновика + */ + fbpDraftDropOffDlvEdit(clientId, apiKey, v1FbpDraftDropOffDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffDlvEditRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffDlvEditRequest: v1FbpDraftDropOffDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список drop-off пунктов в провинции + */ + fbpDraftDropOffPointListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffPointList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffPointList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/point/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDropOffPointListRequestToJSON(requestParameters['v1FbpDraftDropOffPointListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDropOffPointListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список drop-off пунктов в провинции + */ + fbpDraftDropOffPointList(clientId, apiKey, v1FbpDraftDropOffPointListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffPointListRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffPointListRequest: v1FbpDraftDropOffPointListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить расписание работы drop-off пункта + */ + fbpDraftDropOffPointTimetableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffPointTimetable().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffPointTimetable().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/point/timetable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDropOffPointTimetableRequestToJSON(requestParameters['v1FbpDraftDropOffPointTimetableRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDropOffPointTimetableResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить расписание работы drop-off пункта + */ + fbpDraftDropOffPointTimetable(clientId, apiKey, v1FbpDraftDropOffPointTimetableRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffPointTimetableRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffPointTimetableRequest: v1FbpDraftDropOffPointTimetableRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров, которые склад партнёра может принять + */ + fbpDraftDropOffProductValidateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffProductValidate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffProductValidate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/product/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDropOffProductValidateRequestToJSON(requestParameters['v1FbpDraftDropOffProductValidateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDropOffProductValidateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Проверить список товаров, которые склад партнёра может принять + */ + fbpDraftDropOffProductValidate(clientId, apiKey, v1FbpDraftDropOffProductValidateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffProductValidateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffProductValidateRequest: v1FbpDraftDropOffProductValidateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список провинций + */ + fbpDraftDropOffProvinceListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffProvinceList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffProvinceList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/province/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDropOffProvinceListRequestToJSON(requestParameters['v1FbpDraftDropOffProvinceListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDropOffProvinceListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список провинций + */ + fbpDraftDropOffProvinceList(clientId, apiKey, v1FbpDraftDropOffProvinceListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffProvinceListRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffProvinceListRequest: v1FbpDraftDropOffProvinceListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDropOffRegistrateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftDropOffRegistrate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftDropOffRegistrate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/drop-off/registrate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftDropOffRegistrateRequestToJSON(requestParameters['v1FbpDraftDropOffRegistrateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftDropOffRegistrateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftDropOffRegistrate(clientId, apiKey, v1FbpDraftDropOffRegistrateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftDropOffRegistrateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftDropOffRegistrateRequest: v1FbpDraftDropOffRegistrateRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/DraftPickupFBP.d.ts b/dist/esm/apis/DraftPickupFBP.d.ts new file mode 100644 index 0000000..2dc7746 --- /dev/null +++ b/dist/esm/apis/DraftPickupFBP.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpDraftPickUpDeleteRequest, V1FbpDraftPickUpDeleteResponse, V1FbpDraftPickUpProductValidateRequest, V1FbpDraftPickUpProductValidateResponse, V1FbpDraftPickUpRegistrateRequest, V1FbpDraftPickUpRegistrateResponse, V1FbpDraftPickupCreateRequest, V1FbpDraftPickupCreateResponse, V1FbpDraftPickupDlvEditRequest, V1FbpDraftPickupDlvEditResponse } from '../models/index'; +export interface FbpAPIFbpDraftPickUpDeleteRequest { + v1FbpDraftPickUpDeleteRequest: V1FbpDraftPickUpDeleteRequest; +} +export interface FbpAPIFbpDraftPickUpProductValidateRequest { + v1FbpDraftPickUpProductValidateRequest: V1FbpDraftPickUpProductValidateRequest; +} +export interface FbpAPIFbpDraftPickupCreateRequest { + v1FbpDraftPickupCreateRequest: V1FbpDraftPickupCreateRequest; +} +export interface FbpAPIFbpDraftPickupDlvEditRequest { + v1FbpDraftPickupDlvEditRequest: V1FbpDraftPickupDlvEditRequest; +} +export interface FbpDraftPickUpRegistrateRequest { + clientId: string; + apiKey: string; + v1FbpDraftPickUpRegistrateRequest?: V1FbpDraftPickUpRegistrateRequest; +} +/** + * + */ +export declare class DraftPickupFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickUpDeleteRaw(requestParameters: FbpAPIFbpDraftPickUpDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickUpDelete(v1FbpDraftPickUpDeleteRequest: V1FbpDraftPickUpDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Провалидировать список товаров для pick-up поставки + */ + fbpAPIFbpDraftPickUpProductValidateRaw(requestParameters: FbpAPIFbpDraftPickUpProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Провалидировать список товаров для pick-up поставки + */ + fbpAPIFbpDraftPickUpProductValidate(v1FbpDraftPickUpProductValidateRequest: V1FbpDraftPickUpProductValidateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupCreateRaw(requestParameters: FbpAPIFbpDraftPickupCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupCreate(v1FbpDraftPickupCreateRequest: V1FbpDraftPickupCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupDlvEditRaw(requestParameters: FbpAPIFbpDraftPickupDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupDlvEdit(v1FbpDraftPickupDlvEditRequest: V1FbpDraftPickupDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftPickUpRegistrateRaw(requestParameters: FbpDraftPickUpRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftPickUpRegistrate(clientId: string, apiKey: string, v1FbpDraftPickUpRegistrateRequest?: V1FbpDraftPickUpRegistrateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/DraftPickupFBP.js b/dist/esm/apis/DraftPickupFBP.js new file mode 100644 index 0000000..4e69cec --- /dev/null +++ b/dist/esm/apis/DraftPickupFBP.js @@ -0,0 +1,198 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1FbpDraftPickUpDeleteRequestToJSON, V1FbpDraftPickUpDeleteResponseFromJSON, V1FbpDraftPickUpProductValidateRequestToJSON, V1FbpDraftPickUpProductValidateResponseFromJSON, V1FbpDraftPickUpRegistrateRequestToJSON, V1FbpDraftPickUpRegistrateResponseFromJSON, V1FbpDraftPickupCreateRequestToJSON, V1FbpDraftPickupCreateResponseFromJSON, V1FbpDraftPickupDlvEditRequestToJSON, V1FbpDraftPickupDlvEditResponseFromJSON, } from '../models/index'; +/** + * + */ +export class DraftPickupFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickUpDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftPickUpDeleteRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftPickUpDeleteRequest', 'Required parameter "v1FbpDraftPickUpDeleteRequest" was null or undefined when calling fbpAPIFbpDraftPickUpDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftPickUpDeleteRequestToJSON(requestParameters['v1FbpDraftPickUpDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftPickUpDeleteResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickUpDelete(v1FbpDraftPickUpDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftPickUpDeleteRaw({ v1FbpDraftPickUpDeleteRequest: v1FbpDraftPickUpDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Провалидировать список товаров для pick-up поставки + */ + fbpAPIFbpDraftPickUpProductValidateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftPickUpProductValidateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftPickUpProductValidateRequest', 'Required parameter "v1FbpDraftPickUpProductValidateRequest" was null or undefined when calling fbpAPIFbpDraftPickUpProductValidate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/product/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftPickUpProductValidateRequestToJSON(requestParameters['v1FbpDraftPickUpProductValidateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftPickUpProductValidateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Провалидировать список товаров для pick-up поставки + */ + fbpAPIFbpDraftPickUpProductValidate(v1FbpDraftPickUpProductValidateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftPickUpProductValidateRaw({ v1FbpDraftPickUpProductValidateRequest: v1FbpDraftPickUpProductValidateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftPickupCreateRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftPickupCreateRequest', 'Required parameter "v1FbpDraftPickupCreateRequest" was null or undefined when calling fbpAPIFbpDraftPickupCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftPickupCreateRequestToJSON(requestParameters['v1FbpDraftPickupCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftPickupCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Создать черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupCreate(v1FbpDraftPickupCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftPickupCreateRaw({ v1FbpDraftPickupCreateRequest: v1FbpDraftPickupCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpDraftPickupDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpDraftPickupDlvEditRequest', 'Required parameter "v1FbpDraftPickupDlvEditRequest" was null or undefined when calling fbpAPIFbpDraftPickupDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftPickupDlvEditRequestToJSON(requestParameters['v1FbpDraftPickupDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftPickupDlvEditResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить черновик заявки на pick-up поставку + */ + fbpAPIFbpDraftPickupDlvEdit(v1FbpDraftPickupDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpDraftPickupDlvEditRaw({ v1FbpDraftPickupDlvEditRequest: v1FbpDraftPickupDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftPickUpRegistrateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpDraftPickUpRegistrate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpDraftPickUpRegistrate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/draft/pick-up/registrate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpDraftPickUpRegistrateRequestToJSON(requestParameters['v1FbpDraftPickUpRegistrateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpDraftPickUpRegistrateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Перевести черновик в действующую поставку + */ + fbpDraftPickUpRegistrate(clientId, apiKey, v1FbpDraftPickUpRegistrateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpDraftPickUpRegistrateRaw({ clientId: clientId, apiKey: apiKey, v1FbpDraftPickUpRegistrateRequest: v1FbpDraftPickUpRegistrateRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FBO.d.ts b/dist/esm/apis/FBO.d.ts new file mode 100644 index 0000000..c02e32f --- /dev/null +++ b/dist/esm/apis/FBO.d.ts @@ -0,0 +1,239 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PostingGetFboPostingListRequest, PostingGetFboPostingRequest, PostingV3PostingFboListRequest, PostingV3PostingFboListResponse, SupplyOrderV2SupplyOrderTimeslotListRequest, SupplyOrderV2SupplyOrderTimeslotListResponse, V1CancelReasonListResponseFbo, V1GetSupplyOrderBundleRequest, V1GetSupplyOrderBundleResponse, V1GetSupplyOrderTimeslotStatusRequest, V1GetSupplyOrderTimeslotStatusResponse, V1GetSupplyOrderTimeslotsRequest, V1GetSupplyOrderTimeslotsResponse, V1SupplierAvailableWarehousesResponse, V1SupplyOrderDetailsRequest, V1SupplyOrderDetailsResponse, V1SupplyOrderPassCreateRequest, V1SupplyOrderPassCreateResponse, V1SupplyOrderPassStatusRequest, V1SupplyOrderPassStatusResponse, V1SupplyOrderStatusCounterResponse, V1UpdateSupplyOrderTimeslotRequest, V1UpdateSupplyOrderTimeslotResponse, V2FboPostingListResponse, V2FboPostingResponse, V3SupplyOrderGetRequest, V3SupplyOrderGetResponse, V3SupplyOrderListRequest, V3SupplyOrderListResponse } from '../models/index'; +export interface PostingAPIGetFboPostingRequest { + clientId: string; + apiKey: string; + postingGetFboPostingRequest: PostingGetFboPostingRequest; +} +export interface PostingAPIGetFboPostingListRequest { + clientId: string; + apiKey: string; + postingGetFboPostingListRequest: PostingGetFboPostingListRequest; +} +export interface PostingAPIGetPostingFboCancelReasonListRequest { + clientId: string; + apiKey: string; +} +export interface PostingFboListRequest { + clientId: string; + apiKey: string; + postingV3PostingFboListRequest: PostingV3PostingFboListRequest; +} +export interface SupplierAPISupplierAvailableWarehousesRequest { + clientId: string; + apiKey: string; +} +export interface SupplyOrderAPIGetSupplyOrderTimeslotStatusRequest { + clientId: string; + apiKey: string; + v1GetSupplyOrderTimeslotStatusRequest: V1GetSupplyOrderTimeslotStatusRequest; +} +export interface SupplyOrderAPIGetSupplyOrderTimeslotsRequest { + clientId: string; + apiKey: string; + v1GetSupplyOrderTimeslotsRequest: V1GetSupplyOrderTimeslotsRequest; +} +export interface SupplyOrderAPISupplyOrderDetailsRequest { + clientId: string; + apiKey: string; + v1SupplyOrderDetailsRequest: V1SupplyOrderDetailsRequest; +} +export interface SupplyOrderAPISupplyOrderPassCreateRequest { + clientId: string; + apiKey: string; + v1SupplyOrderPassCreateRequest: V1SupplyOrderPassCreateRequest; +} +export interface SupplyOrderAPISupplyOrderPassStatusRequest { + clientId: string; + apiKey: string; + v1SupplyOrderPassStatusRequest: V1SupplyOrderPassStatusRequest; +} +export interface SupplyOrderAPISupplyOrderStatusCounterRequest { + clientId: string; + apiKey: string; +} +export interface SupplyOrderAPIUpdateSupplyOrderTimeslotRequest { + clientId: string; + apiKey: string; + v1UpdateSupplyOrderTimeslotRequest: V1UpdateSupplyOrderTimeslotRequest; +} +export interface SupplyOrderBundleRequest { + v1GetSupplyOrderBundleRequest: V1GetSupplyOrderBundleRequest; +} +export interface SupplyOrderGetRequest { + v3SupplyOrderGetRequest?: V3SupplyOrderGetRequest; +} +export interface SupplyOrderListRequest { + v3SupplyOrderListRequest?: V3SupplyOrderListRequest; +} +export interface SupplyOrderTimeslotListRequest { + clientId: string; + apiKey: string; + supplyOrderV2SupplyOrderTimeslotListRequest: SupplyOrderV2SupplyOrderTimeslotListRequest; +} +/** + * + */ +export declare class FBO extends runtime.BaseAPI { + /** + * Возвращает информацию об отправлении по его идентификатору. + * Информация об отправлении + */ + postingAPIGetFboPostingRaw(requestParameters: PostingAPIGetFboPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию об отправлении по его идентификатору. + * Информация об отправлении + */ + postingAPIGetFboPosting(clientId: string, apiKey: string, postingGetFboPostingRequest: PostingGetFboPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Список отправлений + * @deprecated + */ + postingAPIGetFboPostingListRaw(requestParameters: PostingAPIGetFboPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Список отправлений + * @deprecated + */ + postingAPIGetFboPostingList(clientId: string, apiKey: string, postingGetFboPostingListRequest: PostingGetFboPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список причин отмены для всех FBO-отправлений. + * Причины отмены отправлений по схеме FBO + */ + postingAPIGetPostingFboCancelReasonListRaw(requestParameters: PostingAPIGetPostingFboCancelReasonListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список причин отмены для всех FBO-отправлений. + * Причины отмены отправлений по схеме FBO + */ + postingAPIGetPostingFboCancelReasonList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Получить список отправлений + */ + postingFboListRaw(requestParameters: PostingFboListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Получить список отправлений + */ + postingFboList(clientId: string, apiKey: string, postingV3PostingFboListRequest: PostingV3PostingFboListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод возвращает список активных складов Ozon с информацией об их средней загруженности на ближайшее время. + * Загруженность складов Ozon + */ + supplierAPISupplierAvailableWarehousesRaw(requestParameters: SupplierAPISupplierAvailableWarehousesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод возвращает список активных складов Ozon с информацией об их средней загруженности на ближайшее время. + * Загруженность складов Ozon + */ + supplierAPISupplierAvailableWarehouses(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Статус интервала поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotStatusRaw(requestParameters: SupplyOrderAPIGetSupplyOrderTimeslotStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Статус интервала поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotStatus(clientId: string, apiKey: string, v1GetSupplyOrderTimeslotStatusRequest: V1GetSupplyOrderTimeslotStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Интервалы поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotsRaw(requestParameters: SupplyOrderAPIGetSupplyOrderTimeslotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Интервалы поставки + */ + supplyOrderAPIGetSupplyOrderTimeslots(clientId: string, apiKey: string, v1GetSupplyOrderTimeslotsRequest: V1GetSupplyOrderTimeslotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить подробную информацию о заявке на поставку + */ + supplyOrderAPISupplyOrderDetailsRaw(requestParameters: SupplyOrderAPISupplyOrderDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить подробную информацию о заявке на поставку + */ + supplyOrderAPISupplyOrderDetails(clientId: string, apiKey: string, v1SupplyOrderDetailsRequest: V1SupplyOrderDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Указать данные о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassCreateRaw(requestParameters: SupplyOrderAPISupplyOrderPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Указать данные о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassCreate(clientId: string, apiKey: string, v1SupplyOrderPassCreateRequest: V1SupplyOrderPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Статус ввода данных о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassStatusRaw(requestParameters: SupplyOrderAPISupplyOrderPassStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Статус ввода данных о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassStatus(clientId: string, apiKey: string, v1SupplyOrderPassStatusRequest: V1SupplyOrderPassStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает количество заявок в конкретном статусе. + * Количество заявок по статусам + */ + supplyOrderAPISupplyOrderStatusCounterRaw(requestParameters: SupplyOrderAPISupplyOrderStatusCounterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает количество заявок в конкретном статусе. + * Количество заявок по статусам + */ + supplyOrderAPISupplyOrderStatusCounter(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить интервал поставки + */ + supplyOrderAPIUpdateSupplyOrderTimeslotRaw(requestParameters: SupplyOrderAPIUpdateSupplyOrderTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить интервал поставки + */ + supplyOrderAPIUpdateSupplyOrderTimeslot(clientId: string, apiKey: string, v1UpdateSupplyOrderTimeslotRequest: V1UpdateSupplyOrderTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить товарный состав поставки или черновика заявки на поставку. Одним вызовом метода можно получить состав одной поставки или черновика заявки. + * Состав поставки или заявки на поставку + */ + supplyOrderBundleRaw(requestParameters: SupplyOrderBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить товарный состав поставки или черновика заявки на поставку. Одним вызовом метода можно получить состав одной поставки или черновика заявки. + * Состав поставки или заявки на поставку + */ + supplyOrderBundle(v1GetSupplyOrderBundleRequest: V1GetSupplyOrderBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Информация о заявке на поставку + */ + supplyOrderGetRaw(requestParameters: SupplyOrderGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Информация о заявке на поставку + */ + supplyOrderGet(v3SupplyOrderGetRequest?: V3SupplyOrderGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Список заявок на поставку на склад Ozon + */ + supplyOrderListRaw(requestParameters: SupplyOrderListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Список заявок на поставку на склад Ozon + */ + supplyOrderList(v3SupplyOrderListRequest?: V3SupplyOrderListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список доступных интервалов поставки + */ + supplyOrderTimeslotListRaw(requestParameters: SupplyOrderTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список доступных интервалов поставки + */ + supplyOrderTimeslotList(clientId: string, apiKey: string, supplyOrderV2SupplyOrderTimeslotListRequest: SupplyOrderV2SupplyOrderTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FBO.js b/dist/esm/apis/FBO.js new file mode 100644 index 0000000..553520b --- /dev/null +++ b/dist/esm/apis/FBO.js @@ -0,0 +1,666 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { PostingGetFboPostingListRequestToJSON, PostingGetFboPostingRequestToJSON, PostingV3PostingFboListRequestToJSON, PostingV3PostingFboListResponseFromJSON, SupplyOrderV2SupplyOrderTimeslotListRequestToJSON, SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON, V1CancelReasonListResponseFboFromJSON, V1GetSupplyOrderBundleRequestToJSON, V1GetSupplyOrderBundleResponseFromJSON, V1GetSupplyOrderTimeslotStatusRequestToJSON, V1GetSupplyOrderTimeslotStatusResponseFromJSON, V1GetSupplyOrderTimeslotsRequestToJSON, V1GetSupplyOrderTimeslotsResponseFromJSON, V1SupplierAvailableWarehousesResponseFromJSON, V1SupplyOrderDetailsRequestToJSON, V1SupplyOrderDetailsResponseFromJSON, V1SupplyOrderPassCreateRequestToJSON, V1SupplyOrderPassCreateResponseFromJSON, V1SupplyOrderPassStatusRequestToJSON, V1SupplyOrderPassStatusResponseFromJSON, V1SupplyOrderStatusCounterResponseFromJSON, V1UpdateSupplyOrderTimeslotRequestToJSON, V1UpdateSupplyOrderTimeslotResponseFromJSON, V2FboPostingListResponseFromJSON, V2FboPostingResponseFromJSON, V3SupplyOrderGetRequestToJSON, V3SupplyOrderGetResponseFromJSON, V3SupplyOrderListRequestToJSON, V3SupplyOrderListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class FBO extends runtime.BaseAPI { + /** + * Возвращает информацию об отправлении по его идентификатору. + * Информация об отправлении + */ + postingAPIGetFboPostingRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFboPosting().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFboPosting().'); + } + if (requestParameters['postingGetFboPostingRequest'] == null) { + throw new runtime.RequiredError('postingGetFboPostingRequest', 'Required parameter "postingGetFboPostingRequest" was null or undefined when calling postingAPIGetFboPosting().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbo/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingGetFboPostingRequestToJSON(requestParameters['postingGetFboPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2FboPostingResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает информацию об отправлении по его идентификатору. + * Информация об отправлении + */ + postingAPIGetFboPosting(clientId, apiKey, postingGetFboPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFboPostingRaw({ clientId: clientId, apiKey: apiKey, postingGetFboPostingRequest: postingGetFboPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Список отправлений + * @deprecated + */ + postingAPIGetFboPostingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFboPostingList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFboPostingList().'); + } + if (requestParameters['postingGetFboPostingListRequest'] == null) { + throw new runtime.RequiredError('postingGetFboPostingListRequest', 'Required parameter "postingGetFboPostingListRequest" was null or undefined when calling postingAPIGetFboPostingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbo/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingGetFboPostingListRequestToJSON(requestParameters['postingGetFboPostingListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2FboPostingListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Список отправлений + * @deprecated + */ + postingAPIGetFboPostingList(clientId, apiKey, postingGetFboPostingListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFboPostingListRaw({ clientId: clientId, apiKey: apiKey, postingGetFboPostingListRequest: postingGetFboPostingListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список причин отмены для всех FBO-отправлений. + * Причины отмены отправлений по схеме FBO + */ + postingAPIGetPostingFboCancelReasonListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetPostingFboCancelReasonList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetPostingFboCancelReasonList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbo/cancel-reason/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CancelReasonListResponseFboFromJSON(jsonValue)); + }); + } + /** + * Возвращает список причин отмены для всех FBO-отправлений. + * Причины отмены отправлений по схеме FBO + */ + postingAPIGetPostingFboCancelReasonList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetPostingFboCancelReasonListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Получить список отправлений + */ + postingFboListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFboList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFboList().'); + } + if (requestParameters['postingV3PostingFboListRequest'] == null) { + throw new runtime.RequiredError('postingV3PostingFboListRequest', 'Required parameter "postingV3PostingFboListRequest" was null or undefined when calling postingFboList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/fbo/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingV3PostingFboListRequestToJSON(requestParameters['postingV3PostingFboListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingV3PostingFboListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список отправлений за указанный период времени. Если период больше года, вернётся ошибка `PERIOD_IS_TOO_LONG`. Дополнительно можно отфильтровать отправления по их статусу. + * Получить список отправлений + */ + postingFboList(clientId, apiKey, postingV3PostingFboListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFboListRaw({ clientId: clientId, apiKey: apiKey, postingV3PostingFboListRequest: postingV3PostingFboListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод возвращает список активных складов Ozon с информацией об их средней загруженности на ближайшее время. + * Загруженность складов Ozon + */ + supplierAPISupplierAvailableWarehousesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplierAPISupplierAvailableWarehouses().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplierAPISupplierAvailableWarehouses().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supplier/available_warehouses`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplierAvailableWarehousesResponseFromJSON(jsonValue)); + }); + } + /** + * Метод возвращает список активных складов Ozon с информацией об их средней загруженности на ближайшее время. + * Загруженность складов Ozon + */ + supplierAPISupplierAvailableWarehouses(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplierAPISupplierAvailableWarehousesRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Статус интервала поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslotStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslotStatus().'); + } + if (requestParameters['v1GetSupplyOrderTimeslotStatusRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplyOrderTimeslotStatusRequest', 'Required parameter "v1GetSupplyOrderTimeslotStatusRequest" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslotStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/timeslot/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetSupplyOrderTimeslotStatusRequestToJSON(requestParameters['v1GetSupplyOrderTimeslotStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetSupplyOrderTimeslotStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Статус интервала поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotStatus(clientId, apiKey, v1GetSupplyOrderTimeslotStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPIGetSupplyOrderTimeslotStatusRaw({ clientId: clientId, apiKey: apiKey, v1GetSupplyOrderTimeslotStatusRequest: v1GetSupplyOrderTimeslotStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Интервалы поставки + */ + supplyOrderAPIGetSupplyOrderTimeslotsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslots().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslots().'); + } + if (requestParameters['v1GetSupplyOrderTimeslotsRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplyOrderTimeslotsRequest', 'Required parameter "v1GetSupplyOrderTimeslotsRequest" was null or undefined when calling supplyOrderAPIGetSupplyOrderTimeslots().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/timeslot/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetSupplyOrderTimeslotsRequestToJSON(requestParameters['v1GetSupplyOrderTimeslotsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetSupplyOrderTimeslotsResponseFromJSON(jsonValue)); + }); + } + /** + * + * Интервалы поставки + */ + supplyOrderAPIGetSupplyOrderTimeslots(clientId, apiKey, v1GetSupplyOrderTimeslotsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPIGetSupplyOrderTimeslotsRaw({ clientId: clientId, apiKey: apiKey, v1GetSupplyOrderTimeslotsRequest: v1GetSupplyOrderTimeslotsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить подробную информацию о заявке на поставку + */ + supplyOrderAPISupplyOrderDetailsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderDetails().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderDetails().'); + } + if (requestParameters['v1SupplyOrderDetailsRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderDetailsRequest', 'Required parameter "v1SupplyOrderDetailsRequest" was null or undefined when calling supplyOrderAPISupplyOrderDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/details`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SupplyOrderDetailsRequestToJSON(requestParameters['v1SupplyOrderDetailsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderDetailsResponseFromJSON(jsonValue)); + }); + } + /** + * Получить подробную информацию о заявке на поставку + */ + supplyOrderAPISupplyOrderDetails(clientId, apiKey, v1SupplyOrderDetailsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderDetailsRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderDetailsRequest: v1SupplyOrderDetailsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Указать данные о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderPassCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderPassCreate().'); + } + if (requestParameters['v1SupplyOrderPassCreateRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderPassCreateRequest', 'Required parameter "v1SupplyOrderPassCreateRequest" was null or undefined when calling supplyOrderAPISupplyOrderPassCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/pass/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SupplyOrderPassCreateRequestToJSON(requestParameters['v1SupplyOrderPassCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderPassCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Указать данные о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassCreate(clientId, apiKey, v1SupplyOrderPassCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderPassCreateRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderPassCreateRequest: v1SupplyOrderPassCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Статус ввода данных о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderPassStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderPassStatus().'); + } + if (requestParameters['v1SupplyOrderPassStatusRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderPassStatusRequest', 'Required parameter "v1SupplyOrderPassStatusRequest" was null or undefined when calling supplyOrderAPISupplyOrderPassStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/pass/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SupplyOrderPassStatusRequestToJSON(requestParameters['v1SupplyOrderPassStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderPassStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Статус ввода данных о водителе и автомобиле + */ + supplyOrderAPISupplyOrderPassStatus(clientId, apiKey, v1SupplyOrderPassStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderPassStatusRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderPassStatusRequest: v1SupplyOrderPassStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает количество заявок в конкретном статусе. + * Количество заявок по статусам + */ + supplyOrderAPISupplyOrderStatusCounterRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderStatusCounter().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderStatusCounter().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/status/counter`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderStatusCounterResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает количество заявок в конкретном статусе. + * Количество заявок по статусам + */ + supplyOrderAPISupplyOrderStatusCounter(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderStatusCounterRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Обновить интервал поставки + */ + supplyOrderAPIUpdateSupplyOrderTimeslotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPIUpdateSupplyOrderTimeslot().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPIUpdateSupplyOrderTimeslot().'); + } + if (requestParameters['v1UpdateSupplyOrderTimeslotRequest'] == null) { + throw new runtime.RequiredError('v1UpdateSupplyOrderTimeslotRequest', 'Required parameter "v1UpdateSupplyOrderTimeslotRequest" was null or undefined when calling supplyOrderAPIUpdateSupplyOrderTimeslot().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/timeslot/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1UpdateSupplyOrderTimeslotRequestToJSON(requestParameters['v1UpdateSupplyOrderTimeslotRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1UpdateSupplyOrderTimeslotResponseFromJSON(jsonValue)); + }); + } + /** + * Обновить интервал поставки + */ + supplyOrderAPIUpdateSupplyOrderTimeslot(clientId, apiKey, v1UpdateSupplyOrderTimeslotRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPIUpdateSupplyOrderTimeslotRaw({ clientId: clientId, apiKey: apiKey, v1UpdateSupplyOrderTimeslotRequest: v1UpdateSupplyOrderTimeslotRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить товарный состав поставки или черновика заявки на поставку. Одним вызовом метода можно получить состав одной поставки или черновика заявки. + * Состав поставки или заявки на поставку + */ + supplyOrderBundleRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetSupplyOrderBundleRequest'] == null) { + throw new runtime.RequiredError('v1GetSupplyOrderBundleRequest', 'Required parameter "v1GetSupplyOrderBundleRequest" was null or undefined when calling supplyOrderBundle().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/supply-order/bundle`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetSupplyOrderBundleRequestToJSON(requestParameters['v1GetSupplyOrderBundleRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetSupplyOrderBundleResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить товарный состав поставки или черновика заявки на поставку. Одним вызовом метода можно получить состав одной поставки или черновика заявки. + * Состав поставки или заявки на поставку + */ + supplyOrderBundle(v1GetSupplyOrderBundleRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderBundleRaw({ v1GetSupplyOrderBundleRequest: v1GetSupplyOrderBundleRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Информация о заявке на поставку + */ + supplyOrderGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v3/supply-order/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V3SupplyOrderGetRequestToJSON(requestParameters['v3SupplyOrderGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3SupplyOrderGetResponseFromJSON(jsonValue)); + }); + } + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Информация о заявке на поставку + */ + supplyOrderGet(v3SupplyOrderGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderGetRaw({ v3SupplyOrderGetRequest: v3SupplyOrderGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Список заявок на поставку на склад Ozon + */ + supplyOrderListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v3/supply-order/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V3SupplyOrderListRequestToJSON(requestParameters['v3SupplyOrderListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3SupplyOrderListResponseFromJSON(jsonValue)); + }); + } + /** + * Учитываются заявки с поставкой на конкретный склад и через [виртуальный распределительный центр (вРЦ)](https://seller-edu.ozon.ru/fbo/scheme-of-work/about#чем-отличаются-процессы-при-заявках-через-врц-и-напрямую-на-склад). + * Список заявок на поставку на склад Ozon + */ + supplyOrderList(v3SupplyOrderListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderListRaw({ v3SupplyOrderListRequest: v3SupplyOrderListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список доступных интервалов поставки + */ + supplyOrderTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderTimeslotList().'); + } + if (requestParameters['supplyOrderV2SupplyOrderTimeslotListRequest'] == null) { + throw new runtime.RequiredError('supplyOrderV2SupplyOrderTimeslotListRequest', 'Required parameter "supplyOrderV2SupplyOrderTimeslotListRequest" was null or undefined when calling supplyOrderTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/supply-order/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SupplyOrderV2SupplyOrderTimeslotListRequestToJSON(requestParameters['supplyOrderV2SupplyOrderTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список доступных интервалов поставки + */ + supplyOrderTimeslotList(clientId, apiKey, supplyOrderV2SupplyOrderTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderTimeslotListRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV2SupplyOrderTimeslotListRequest: supplyOrderV2SupplyOrderTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FBOTransport.d.ts b/dist/esm/apis/FBOTransport.d.ts new file mode 100644 index 0000000..502dff1 --- /dev/null +++ b/dist/esm/apis/FBOTransport.d.ts @@ -0,0 +1,228 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CargoesV1CargoesLabelTransportByOrderCreateRequest, CargoesV1CargoesLabelTransportByOrderCreateResponse, CargoesV1CargoesLabelTransportByOrderStatusRequest, CargoesV1CargoesLabelTransportByOrderStatusResponse, CargoesV1CargoesLabelTransportCreateRequest, CargoesV1CargoesLabelTransportCreateResponse, CargoesV1CargoesLabelTransportStatusRequest, CargoesV1CargoesLabelTransportStatusResponse, CargoesV1CargoesSuppliesGetRequest, CargoesV1CargoesSuppliesGetResponse, CargoesV1CargoesTransportActivateRequest, CargoesV1CargoesTransportActivateResponse, CargoesV1CargoesTransportActivateStatusRequest, CargoesV1CargoesTransportActivateStatusResponse, CargoesV1CargoesTransportBindRequest, CargoesV1CargoesTransportBindResponse, CargoesV1CargoesTransportBindStatusRequest, CargoesV1CargoesTransportBindStatusResponse, CargoesV1CargoesTransportCreateRequest, CargoesV1CargoesTransportCreateResponse, CargoesV1CargoesTransportCreateStatusRequest, CargoesV1CargoesTransportCreateStatusResponse, CargoesV2CargoesDeleteRequest, CargoesV2CargoesDeleteResponse, CargoesV2CargoesDeleteStatusRequest, CargoesV2CargoesDeleteStatusResponse, CargoesV2CargoesGetRequest, CargoesV2CargoesGetResponse } from '../models/index'; +export interface CargoesDeleteStatusV2Request { + clientId: string; + apiKey: string; + cargoesV2CargoesDeleteStatusRequest?: CargoesV2CargoesDeleteStatusRequest; +} +export interface CargoesDeleteV2Request { + clientId: string; + apiKey: string; + cargoesV2CargoesDeleteRequest?: CargoesV2CargoesDeleteRequest | null; +} +export interface CargoesGetV2Request { + clientId: string; + apiKey: string; + cargoesV2CargoesGetRequest?: CargoesV2CargoesGetRequest; +} +export interface CargoesLabelTransportByOrderCreateRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesLabelTransportByOrderCreateRequest: CargoesV1CargoesLabelTransportByOrderCreateRequest; +} +export interface CargoesLabelTransportByOrderStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesLabelTransportByOrderStatusRequest: CargoesV1CargoesLabelTransportByOrderStatusRequest; +} +export interface CargoesLabelTransportCreateRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesLabelTransportCreateRequest: CargoesV1CargoesLabelTransportCreateRequest; +} +export interface CargoesLabelTransportStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesLabelTransportStatusRequest: CargoesV1CargoesLabelTransportStatusRequest; +} +export interface CargoesSuppliesGetRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesSuppliesGetRequest: CargoesV1CargoesSuppliesGetRequest; +} +export interface CargoesTransportActivateRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportActivateRequest: CargoesV1CargoesTransportActivateRequest; +} +export interface CargoesTransportActivateStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportActivateStatusRequest: CargoesV1CargoesTransportActivateStatusRequest; +} +export interface CargoesTransportBindRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportBindRequest: CargoesV1CargoesTransportBindRequest | null; +} +export interface CargoesTransportBindStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportBindStatusRequest: CargoesV1CargoesTransportBindStatusRequest; +} +export interface CargoesTransportCreateRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportCreateRequest: CargoesV1CargoesTransportCreateRequest; +} +export interface CargoesTransportCreateStatusRequest { + clientId: string; + apiKey: string; + cargoesV1CargoesTransportCreateStatusRequest: CargoesV1CargoesTransportCreateStatusRequest; +} +/** + * + */ +export declare class FBOTransport extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о статусе удаления грузомест и транспортных грузомест + */ + cargoesDeleteStatusV2Raw(requestParameters: CargoesDeleteStatusV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о статусе удаления грузомест и транспортных грузомест + */ + cargoesDeleteStatusV2(clientId: string, apiKey: string, cargoesV2CargoesDeleteStatusRequest?: CargoesV2CargoesDeleteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Удалить грузоместа и транспортные грузоместа в заявке на поставку + */ + cargoesDeleteV2Raw(requestParameters: CargoesDeleteV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Удалить грузоместа и транспортные грузоместа в заявке на поставку + */ + cargoesDeleteV2(clientId: string, apiKey: string, cargoesV2CargoesDeleteRequest?: CargoesV2CargoesDeleteRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о грузоместах + */ + cargoesGetV2Raw(requestParameters: CargoesGetV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о грузоместах + */ + cargoesGetV2(clientId: string, apiKey: string, cargoesV2CargoesGetRequest?: CargoesV2CargoesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки для транспортных грузомест по идентификатору поставки + */ + cargoesLabelTransportByOrderCreateRaw(requestParameters: CargoesLabelTransportByOrderCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки для транспортных грузомест по идентификатору поставки + */ + cargoesLabelTransportByOrderCreate(clientId: string, apiKey: string, cargoesV1CargoesLabelTransportByOrderCreateRequest: CargoesV1CargoesLabelTransportByOrderCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток для транспортных грузомеcт по идентификатору поставки + */ + cargoesLabelTransportByOrderStatusRaw(requestParameters: CargoesLabelTransportByOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток для транспортных грузомеcт по идентификатору поставки + */ + cargoesLabelTransportByOrderStatus(clientId: string, apiKey: string, cargoesV1CargoesLabelTransportByOrderStatusRequest: CargoesV1CargoesLabelTransportByOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportCreateRaw(requestParameters: CargoesLabelTransportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportCreate(clientId: string, apiKey: string, cargoesV1CargoesLabelTransportCreateRequest: CargoesV1CargoesLabelTransportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportStatusRaw(requestParameters: CargoesLabelTransportStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportStatus(clientId: string, apiKey: string, cargoesV1CargoesLabelTransportStatusRequest: CargoesV1CargoesLabelTransportStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить информацию о грузоместах в поставках + */ + cargoesSuppliesGetRaw(requestParameters: CargoesSuppliesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить информацию о грузоместах в поставках + */ + cargoesSuppliesGet(clientId: string, apiKey: string, cargoesV1CargoesSuppliesGetRequest: CargoesV1CargoesSuppliesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если в поставке создано грузоместо, отключить транспортные грузоместа не получится. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Включить или отключить транспортные грузоместа в поставке + */ + cargoesTransportActivateRaw(requestParameters: CargoesTransportActivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если в поставке создано грузоместо, отключить транспортные грузоместа не получится. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Включить или отключить транспортные грузоместа в поставке + */ + cargoesTransportActivate(clientId: string, apiKey: string, cargoesV1CargoesTransportActivateRequest: CargoesV1CargoesTransportActivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус включения или отключения транспортных грузомест + */ + cargoesTransportActivateStatusRaw(requestParameters: CargoesTransportActivateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус включения или отключения транспортных грузомест + */ + cargoesTransportActivateStatus(clientId: string, apiKey: string, cargoesV1CargoesTransportActivateStatusRequest: CargoesV1CargoesTransportActivateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Связать или отвязать грузоместа и транспортные грузоместа + */ + cargoesTransportBindRaw(requestParameters: CargoesTransportBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Связать или отвязать грузоместа и транспортные грузоместа + */ + cargoesTransportBind(clientId: string, apiKey: string, cargoesV1CargoesTransportBindRequest: CargoesV1CargoesTransportBindRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус связывания или отвязывания грузомест и транспортных грузомест + */ + cargoesTransportBindStatusRaw(requestParameters: CargoesTransportBindStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус связывания или отвязывания грузомест и транспортных грузомест + */ + cargoesTransportBindStatus(clientId: string, apiKey: string, cargoesV1CargoesTransportBindStatusRequest: CargoesV1CargoesTransportBindStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Создать транспортное грузоместо + */ + cargoesTransportCreateRaw(requestParameters: CargoesTransportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Создать транспортное грузоместо + */ + cargoesTransportCreate(clientId: string, apiKey: string, cargoesV1CargoesTransportCreateRequest: CargoesV1CargoesTransportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус создания транспортного грузоместа + */ + cargoesTransportCreateStatusRaw(requestParameters: CargoesTransportCreateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус создания транспортного грузоместа + */ + cargoesTransportCreateStatus(clientId: string, apiKey: string, cargoesV1CargoesTransportCreateStatusRequest: CargoesV1CargoesTransportCreateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FBOTransport.js b/dist/esm/apis/FBOTransport.js new file mode 100644 index 0000000..9de7130 --- /dev/null +++ b/dist/esm/apis/FBOTransport.js @@ -0,0 +1,636 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON, CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON, CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON, CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON, CargoesV1CargoesLabelTransportCreateRequestToJSON, CargoesV1CargoesLabelTransportCreateResponseFromJSON, CargoesV1CargoesLabelTransportStatusRequestToJSON, CargoesV1CargoesLabelTransportStatusResponseFromJSON, CargoesV1CargoesSuppliesGetRequestToJSON, CargoesV1CargoesSuppliesGetResponseFromJSON, CargoesV1CargoesTransportActivateRequestToJSON, CargoesV1CargoesTransportActivateResponseFromJSON, CargoesV1CargoesTransportActivateStatusRequestToJSON, CargoesV1CargoesTransportActivateStatusResponseFromJSON, CargoesV1CargoesTransportBindRequestToJSON, CargoesV1CargoesTransportBindResponseFromJSON, CargoesV1CargoesTransportBindStatusRequestToJSON, CargoesV1CargoesTransportBindStatusResponseFromJSON, CargoesV1CargoesTransportCreateRequestToJSON, CargoesV1CargoesTransportCreateResponseFromJSON, CargoesV1CargoesTransportCreateStatusRequestToJSON, CargoesV1CargoesTransportCreateStatusResponseFromJSON, CargoesV2CargoesDeleteRequestToJSON, CargoesV2CargoesDeleteResponseFromJSON, CargoesV2CargoesDeleteStatusRequestToJSON, CargoesV2CargoesDeleteStatusResponseFromJSON, CargoesV2CargoesGetRequestToJSON, CargoesV2CargoesGetResponseFromJSON, } from '../models/index'; +/** + * + */ +export class FBOTransport extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о статусе удаления грузомест и транспортных грузомест + */ + cargoesDeleteStatusV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesDeleteStatusV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesDeleteStatusV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cargoes/delete/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV2CargoesDeleteStatusRequestToJSON(requestParameters['cargoesV2CargoesDeleteStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV2CargoesDeleteStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о статусе удаления грузомест и транспортных грузомест + */ + cargoesDeleteStatusV2(clientId, apiKey, cargoesV2CargoesDeleteStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesDeleteStatusV2Raw({ clientId: clientId, apiKey: apiKey, cargoesV2CargoesDeleteStatusRequest: cargoesV2CargoesDeleteStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Удалить грузоместа и транспортные грузоместа в заявке на поставку + */ + cargoesDeleteV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesDeleteV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesDeleteV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cargoes/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV2CargoesDeleteRequestToJSON(requestParameters['cargoesV2CargoesDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV2CargoesDeleteResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Удалить грузоместа и транспортные грузоместа в заявке на поставку + */ + cargoesDeleteV2(clientId, apiKey, cargoesV2CargoesDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesDeleteV2Raw({ clientId: clientId, apiKey: apiKey, cargoesV2CargoesDeleteRequest: cargoesV2CargoesDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о грузоместах + */ + cargoesGetV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesGetV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesGetV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cargoes/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV2CargoesGetRequestToJSON(requestParameters['cargoesV2CargoesGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV2CargoesGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. + * Получить информацию о грузоместах + */ + cargoesGetV2(clientId, apiKey, cargoesV2CargoesGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesGetV2Raw({ clientId: clientId, apiKey: apiKey, cargoesV2CargoesGetRequest: cargoesV2CargoesGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки для транспортных грузомест по идентификатору поставки + */ + cargoesLabelTransportByOrderCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesLabelTransportByOrderCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesLabelTransportByOrderCreate().'); + } + if (requestParameters['cargoesV1CargoesLabelTransportByOrderCreateRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesLabelTransportByOrderCreateRequest', 'Required parameter "cargoesV1CargoesLabelTransportByOrderCreateRequest" was null or undefined when calling cargoesLabelTransportByOrderCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/label/transport-by-order/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON(requestParameters['cargoesV1CargoesLabelTransportByOrderCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки для транспортных грузомест по идентификатору поставки + */ + cargoesLabelTransportByOrderCreate(clientId, apiKey, cargoesV1CargoesLabelTransportByOrderCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesLabelTransportByOrderCreateRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesLabelTransportByOrderCreateRequest: cargoesV1CargoesLabelTransportByOrderCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток для транспортных грузомеcт по идентификатору поставки + */ + cargoesLabelTransportByOrderStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesLabelTransportByOrderStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesLabelTransportByOrderStatus().'); + } + if (requestParameters['cargoesV1CargoesLabelTransportByOrderStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesLabelTransportByOrderStatusRequest', 'Required parameter "cargoesV1CargoesLabelTransportByOrderStatusRequest" was null or undefined when calling cargoesLabelTransportByOrderStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/label/transport-by-order/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON(requestParameters['cargoesV1CargoesLabelTransportByOrderStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток для транспортных грузомеcт по идентификатору поставки + */ + cargoesLabelTransportByOrderStatus(clientId, apiKey, cargoesV1CargoesLabelTransportByOrderStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesLabelTransportByOrderStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesLabelTransportByOrderStatusRequest: cargoesV1CargoesLabelTransportByOrderStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesLabelTransportCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesLabelTransportCreate().'); + } + if (requestParameters['cargoesV1CargoesLabelTransportCreateRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesLabelTransportCreateRequest', 'Required parameter "cargoesV1CargoesLabelTransportCreateRequest" was null or undefined when calling cargoesLabelTransportCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/label/transport/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesLabelTransportCreateRequestToJSON(requestParameters['cargoesV1CargoesLabelTransportCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesLabelTransportCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Сгенерировать этикетки транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportCreate(clientId, apiKey, cargoesV1CargoesLabelTransportCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesLabelTransportCreateRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesLabelTransportCreateRequest: cargoesV1CargoesLabelTransportCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesLabelTransportStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesLabelTransportStatus().'); + } + if (requestParameters['cargoesV1CargoesLabelTransportStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesLabelTransportStatusRequest', 'Required parameter "cargoesV1CargoesLabelTransportStatusRequest" was null or undefined when calling cargoesLabelTransportStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/label/transport/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesLabelTransportStatusRequestToJSON(requestParameters['cargoesV1CargoesLabelTransportStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesLabelTransportStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус генерации этикеток транспортных грузомест по идентификатору грузоместа + */ + cargoesLabelTransportStatus(clientId, apiKey, cargoesV1CargoesLabelTransportStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesLabelTransportStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesLabelTransportStatusRequest: cargoesV1CargoesLabelTransportStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить информацию о грузоместах в поставках + */ + cargoesSuppliesGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesSuppliesGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesSuppliesGet().'); + } + if (requestParameters['cargoesV1CargoesSuppliesGetRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesSuppliesGetRequest', 'Required parameter "cargoesV1CargoesSuppliesGetRequest" was null or undefined when calling cargoesSuppliesGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/supplies/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesSuppliesGetRequestToJSON(requestParameters['cargoesV1CargoesSuppliesGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesSuppliesGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить информацию о грузоместах в поставках + */ + cargoesSuppliesGet(clientId, apiKey, cargoesV1CargoesSuppliesGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesSuppliesGetRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesSuppliesGetRequest: cargoesV1CargoesSuppliesGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если в поставке создано грузоместо, отключить транспортные грузоместа не получится. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Включить или отключить транспортные грузоместа в поставке + */ + cargoesTransportActivateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportActivate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportActivate().'); + } + if (requestParameters['cargoesV1CargoesTransportActivateRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportActivateRequest', 'Required parameter "cargoesV1CargoesTransportActivateRequest" was null or undefined when calling cargoesTransportActivate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/activate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesTransportActivateRequestToJSON(requestParameters['cargoesV1CargoesTransportActivateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesTransportActivateResponseFromJSON(jsonValue)); + }); + } + /** + * Если в поставке создано грузоместо, отключить транспортные грузоместа не получится. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Включить или отключить транспортные грузоместа в поставке + */ + cargoesTransportActivate(clientId, apiKey, cargoesV1CargoesTransportActivateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportActivateRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportActivateRequest: cargoesV1CargoesTransportActivateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус включения или отключения транспортных грузомест + */ + cargoesTransportActivateStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportActivateStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportActivateStatus().'); + } + if (requestParameters['cargoesV1CargoesTransportActivateStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportActivateStatusRequest', 'Required parameter "cargoesV1CargoesTransportActivateStatusRequest" was null or undefined when calling cargoesTransportActivateStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/activate/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesTransportActivateStatusRequestToJSON(requestParameters['cargoesV1CargoesTransportActivateStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesTransportActivateStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус включения или отключения транспортных грузомест + */ + cargoesTransportActivateStatus(clientId, apiKey, cargoesV1CargoesTransportActivateStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportActivateStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportActivateStatusRequest: cargoesV1CargoesTransportActivateStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Связать или отвязать грузоместа и транспортные грузоместа + */ + cargoesTransportBindRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportBind().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportBind().'); + } + if (requestParameters['cargoesV1CargoesTransportBindRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportBindRequest', 'Required parameter "cargoesV1CargoesTransportBindRequest" was null or undefined when calling cargoesTransportBind().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/bind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesTransportBindRequestToJSON(requestParameters['cargoesV1CargoesTransportBindRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesTransportBindResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Связать или отвязать грузоместа и транспортные грузоместа + */ + cargoesTransportBind(clientId, apiKey, cargoesV1CargoesTransportBindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportBindRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportBindRequest: cargoesV1CargoesTransportBindRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус связывания или отвязывания грузомест и транспортных грузомест + */ + cargoesTransportBindStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportBindStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportBindStatus().'); + } + if (requestParameters['cargoesV1CargoesTransportBindStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportBindStatusRequest', 'Required parameter "cargoesV1CargoesTransportBindStatusRequest" was null or undefined when calling cargoesTransportBindStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/bind/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesTransportBindStatusRequestToJSON(requestParameters['cargoesV1CargoesTransportBindStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesTransportBindStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус связывания или отвязывания грузомест и транспортных грузомест + */ + cargoesTransportBindStatus(clientId, apiKey, cargoesV1CargoesTransportBindStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportBindStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportBindStatusRequest: cargoesV1CargoesTransportBindStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Создать транспортное грузоместо + */ + cargoesTransportCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportCreate().'); + } + if (requestParameters['cargoesV1CargoesTransportCreateRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportCreateRequest', 'Required parameter "cargoesV1CargoesTransportCreateRequest" was null or undefined when calling cargoesTransportCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesTransportCreateRequestToJSON(requestParameters['cargoesV1CargoesTransportCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesTransportCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Создать транспортное грузоместо + */ + cargoesTransportCreate(clientId, apiKey, cargoesV1CargoesTransportCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportCreateRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportCreateRequest: cargoesV1CargoesTransportCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус создания транспортного грузоместа + */ + cargoesTransportCreateStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesTransportCreateStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesTransportCreateStatus().'); + } + if (requestParameters['cargoesV1CargoesTransportCreateStatusRequest'] == null) { + throw new runtime.RequiredError('cargoesV1CargoesTransportCreateStatusRequest', 'Required parameter "cargoesV1CargoesTransportCreateStatusRequest" was null or undefined when calling cargoesTransportCreateStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/transport/create/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CargoesV1CargoesTransportCreateStatusRequestToJSON(requestParameters['cargoesV1CargoesTransportCreateStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CargoesV1CargoesTransportCreateStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2179-Novye-beta-metody-dlia-raboty-s-transportnymi-gruzr/) в сообществе разработчиков Ozon for dev. [Подробнее о работе с транспортными грузоместами](https://dev.ozon.ru/start/525-Rabota-s-transportnymi-gruzomestami-TGM-v-postavkakh-FBO/) + * Получить статус создания транспортного грузоместа + */ + cargoesTransportCreateStatus(clientId, apiKey, cargoesV1CargoesTransportCreateStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesTransportCreateStatusRaw({ clientId: clientId, apiKey: apiKey, cargoesV1CargoesTransportCreateStatusRequest: cargoesV1CargoesTransportCreateStatusRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FBOWarehouse.d.ts b/dist/esm/apis/FBOWarehouse.d.ts new file mode 100644 index 0000000..305361e --- /dev/null +++ b/dist/esm/apis/FBOWarehouse.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1WarehouseOZONListRequest, V1WarehouseOZONListResponse } from '../models/index'; +export interface WarehouseOZONListRequest { + clientId: string; + apiKey: string; + v1WarehouseOZONListRequest: V1WarehouseOZONListRequest; +} +/** + * + */ +export declare class FBOWarehouse extends runtime.BaseAPI { + /** + * Возвращает список складов Ozon, которые работают по схемам FBO и FBO Fresh, и возвратных складов. + * Получить список складов Ozon + */ + warehouseOZONListRaw(requestParameters: WarehouseOZONListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список складов Ozon, которые работают по схемам FBO и FBO Fresh, и возвратных складов. + * Получить список складов Ozon + */ + warehouseOZONList(clientId: string, apiKey: string, v1WarehouseOZONListRequest: V1WarehouseOZONListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FBOWarehouse.js b/dist/esm/apis/FBOWarehouse.js new file mode 100644 index 0000000..4198baa --- /dev/null +++ b/dist/esm/apis/FBOWarehouse.js @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1WarehouseOZONListRequestToJSON, V1WarehouseOZONListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class FBOWarehouse extends runtime.BaseAPI { + /** + * Возвращает список складов Ozon, которые работают по схемам FBO и FBO Fresh, и возвратных складов. + * Получить список складов Ozon + */ + warehouseOZONListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseOZONList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseOZONList().'); + } + if (requestParameters['v1WarehouseOZONListRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseOZONListRequest', 'Required parameter "v1WarehouseOZONListRequest" was null or undefined when calling warehouseOZONList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/ozon/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseOZONListRequestToJSON(requestParameters['v1WarehouseOZONListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseOZONListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список складов Ozon, которые работают по схемам FBO и FBO Fresh, и возвратных складов. + * Получить список складов Ozon + */ + warehouseOZONList(clientId, apiKey, v1WarehouseOZONListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseOZONListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseOZONListRequest: v1WarehouseOZONListRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FBS.d.ts b/dist/esm/apis/FBS.d.ts new file mode 100644 index 0000000..568c0f9 --- /dev/null +++ b/dist/esm/apis/FBS.d.ts @@ -0,0 +1,356 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PostingBooleanResponse, PostingCancelFbsPostingRequest, PostingCancelReasonListResponse, PostingCancelReasonRequest, PostingCancelReasonResponse, PostingGetFbsPostingByBarcodeRequest, PostingMovePostingRequest, PostingPostingFBSPackageLabelRequest, PostingPostingFBSPackageLabelResponse, PostingPostingProductCancelRequest, PostingPostingProductCancelResponse, PostingV4PostingFbsListRequest, PostingV4PostingFbsListResponse, PostingV4PostingFbsUnfulfilledListRequest, PostingV4PostingFbsUnfulfilledListResponse, Postingv3GetFbsPostingListRequest, Postingv3GetFbsPostingRequest, Postingv3GetFbsPostingUnfulfilledListRequest, Postingv3GetFbsPostingUnfulfilledListResponse, Postingv3PostingMultiBoxQtySetV3Request, Postingv3PostingMultiBoxQtySetV3Response, V1CreateLabelBatchRequest, V1CreateLabelBatchResponse, V1GetEtgbRequest, V1GetEtgbResponse, V1GetLabelBatchRequest, V1GetLabelBatchResponse, V1GetRestrictionsRequest, V1GetRestrictionsResponse, V1PostingFBSPickupCodeVerifyRequest, V1PostingFBSPickupCodeVerifyResponse, V1PostingUnpaidLegalProductListRequest, V1PostingUnpaidLegalProductListResponse, V2CreateLabelBatchResponse, V2FbsPostingProductCountryListRequest, V2FbsPostingProductCountryListResponse, V2FbsPostingProductCountrySetRequest, V2FbsPostingProductCountrySetResponse, V2FbsPostingResponse, V2MovePostingToAwaitingDeliveryRequest, V3GetFbsPostingListResponseV3, V3GetFbsPostingResponseV3 } from '../models/index'; +export interface PostingAPICancelFbsPostingRequest { + clientId: string; + apiKey: string; + postingCancelFbsPostingRequest: PostingCancelFbsPostingRequest; +} +export interface PostingAPICancelFbsPostingProductRequest { + clientId: string; + apiKey: string; + postingPostingProductCancelRequest?: PostingPostingProductCancelRequest; +} +export interface PostingAPICreateLabelBatchRequest { + clientId: string; + apiKey: string; + v1CreateLabelBatchRequest: V1CreateLabelBatchRequest; +} +export interface PostingAPICreateLabelBatchV2Request { + clientId: string; + apiKey: string; + v1CreateLabelBatchRequest: V1CreateLabelBatchRequest; +} +export interface PostingAPIGetEtgbRequest { + clientId: string; + apiKey: string; + v1GetEtgbRequest: V1GetEtgbRequest; +} +export interface PostingAPIGetFbsPostingByBarcodeRequest { + clientId: string; + apiKey: string; + postingGetFbsPostingByBarcodeRequest: PostingGetFbsPostingByBarcodeRequest; +} +export interface PostingAPIGetFbsPostingListV3Request { + clientId: string; + apiKey: string; + postingv3GetFbsPostingListRequest: Postingv3GetFbsPostingListRequest; +} +export interface PostingAPIGetFbsPostingUnfulfilledListRequest { + clientId: string; + apiKey: string; + postingv3GetFbsPostingUnfulfilledListRequest: Postingv3GetFbsPostingUnfulfilledListRequest; +} +export interface PostingAPIGetFbsPostingV3Request { + clientId: string; + apiKey: string; + postingv3GetFbsPostingRequest: Postingv3GetFbsPostingRequest; +} +export interface PostingAPIGetLabelBatchRequest { + clientId: string; + apiKey: string; + v1GetLabelBatchRequest: V1GetLabelBatchRequest; +} +export interface PostingAPIGetPostingFbsCancelReasonListRequest { + clientId: string; + apiKey: string; +} +export interface PostingAPIGetPostingFbsCancelReasonV1Request { + clientId: string; + apiKey: string; + postingCancelReasonRequest: PostingCancelReasonRequest; +} +export interface PostingAPIGetRestrictionsRequest { + clientId: string; + apiKey: string; + v1GetRestrictionsRequest: V1GetRestrictionsRequest; +} +export interface PostingAPIListCountryProductFbsPostingV2Request { + v2FbsPostingProductCountryListRequest: V2FbsPostingProductCountryListRequest; +} +export interface PostingAPIMoveFbsPostingToArbitrationRequest { + clientId: string; + apiKey: string; + postingMovePostingRequest?: PostingMovePostingRequest; +} +export interface PostingAPIMoveFbsPostingToAwaitingDeliveryRequest { + clientId: string; + apiKey: string; + v2MovePostingToAwaitingDeliveryRequest?: V2MovePostingToAwaitingDeliveryRequest; +} +export interface PostingAPIPostingFBSPackageLabelRequest { + clientId: string; + apiKey: string; + postingPostingFBSPackageLabelRequest: PostingPostingFBSPackageLabelRequest; +} +export interface PostingAPIPostingFBSPickupCodeVerifyRequest { + v1PostingFBSPickupCodeVerifyRequest: V1PostingFBSPickupCodeVerifyRequest; +} +export interface PostingAPIPostingMultiBoxQtySetV3Request { + clientId: string; + apiKey: string; + postingv3PostingMultiBoxQtySetV3Request: Postingv3PostingMultiBoxQtySetV3Request; +} +export interface PostingAPISetCountryProductFbsPostingV2Request { + v2FbsPostingProductCountrySetRequest: V2FbsPostingProductCountrySetRequest; +} +export interface PostingAPIUnpaidLegalProductListRequest { + clientId: string; + apiKey: string; + v1PostingUnpaidLegalProductListRequest: V1PostingUnpaidLegalProductListRequest; +} +export interface PostingFbsListRequest { + clientId: string; + apiKey: string; + postingV4PostingFbsListRequest: PostingV4PostingFbsListRequest; +} +export interface PostingFbsUnfulfilledListRequest { + clientId: string; + apiKey: string; + postingV4PostingFbsUnfulfilledListRequest: PostingV4PostingFbsUnfulfilledListRequest; +} +/** + * + */ +export declare class FBS extends runtime.BaseAPI { + /** + * Меняет статус отправления на `cancelled`. Перед началом работы проверьте причины отмены для конкретного отправления методом [/v1/posting/fbs/cancel-reason](#operation/PostingAPI_GetPostingFbsCancelReasonV1). Условно-доставленные отправления отменить нельзя. Если значение параметра `cancel_reason_id` — 402, заполните поле `cancel_reason_message`. + * Отменить отправление + */ + postingAPICancelFbsPostingRaw(requestParameters: PostingAPICancelFbsPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Меняет статус отправления на `cancelled`. Перед началом работы проверьте причины отмены для конкретного отправления методом [/v1/posting/fbs/cancel-reason](#operation/PostingAPI_GetPostingFbsCancelReasonV1). Условно-доставленные отправления отменить нельзя. Если значение параметра `cancel_reason_id` — 402, заполните поле `cancel_reason_message`. + * Отменить отправление + */ + postingAPICancelFbsPosting(clientId: string, apiKey: string, postingCancelFbsPostingRequest: PostingCancelFbsPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, если вы не можете отправить часть продуктов из отправления. Чтобы получить идентификаторы причин отмены `cancel_reason_id` при работе по схемам FBS или rFBS, используйте метод [/v2/posting/fbs/cancel-reason/list](#operation/PostingAPI_GetPostingFbsCancelReasonList). Условно-доставленные отправления отменить нельзя. + * Отменить отправку некоторых товаров в отправлении + */ + postingAPICancelFbsPostingProductRaw(requestParameters: PostingAPICancelFbsPostingProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, если вы не можете отправить часть продуктов из отправления. Чтобы получить идентификаторы причин отмены `cancel_reason_id` при работе по схемам FBS или rFBS, используйте метод [/v2/posting/fbs/cancel-reason/list](#operation/PostingAPI_GetPostingFbsCancelReasonList). Условно-доставленные отправления отменить нельзя. + * Отменить отправку некоторых товаров в отправлении + */ + postingAPICancelFbsPostingProduct(clientId: string, apiKey: string, postingPostingProductCancelRequest?: PostingPostingProductCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для создания задания на асинхронное формирование этикеток. Для получения этикеток, созданных в результате вызова метода, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на выгрузку этикеток + */ + postingAPICreateLabelBatchRaw(requestParameters: PostingAPICreateLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для создания задания на асинхронное формирование этикеток. Для получения этикеток, созданных в результате вызова метода, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на выгрузку этикеток + */ + postingAPICreateLabelBatch(clientId: string, apiKey: string, v1CreateLabelBatchRequest: V1CreateLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для создания задания на асинхронное формирование этикеток для отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. Метод может вернуть несколько заданий: на формирование маленькой и большой этикетки. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Чтобы получить созданные этикетки, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на формирование этикеток + */ + postingAPICreateLabelBatchV2Raw(requestParameters: PostingAPICreateLabelBatchV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для создания задания на асинхронное формирование этикеток для отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. Метод может вернуть несколько заданий: на формирование маленькой и большой этикетки. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Чтобы получить созданные этикетки, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на формирование этикеток + */ + postingAPICreateLabelBatchV2(clientId: string, apiKey: string, v1CreateLabelBatchRequest: V1CreateLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения таможенных деклараций Elektronik Ticaret Gümrük Beyannamesi (ETGB) для продавцов из Турции. + * Таможенные декларации ETGB + */ + postingAPIGetEtgbRaw(requestParameters: PostingAPIGetEtgbRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения таможенных деклараций Elektronik Ticaret Gümrük Beyannamesi (ETGB) для продавцов из Турции. + * Таможенные декларации ETGB + */ + postingAPIGetEtgb(clientId: string, apiKey: string, v1GetEtgbRequest: V1GetEtgbRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию об отправлении по штрихкоду + */ + postingAPIGetFbsPostingByBarcodeRaw(requestParameters: PostingAPIGetFbsPostingByBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию об отправлении по штрихкоду + */ + postingAPIGetFbsPostingByBarcode(clientId: string, apiKey: string, postingGetFbsPostingByBarcodeRequest: PostingGetFbsPostingByBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. `has_next = true` в ответе может значить, что вернули не весь массив отправлений. Чтобы получить информацию об остальных отправлениях, сделайте новый запрос с другим значением `offset`. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список отправлений + * @deprecated + */ + postingAPIGetFbsPostingListV3Raw(requestParameters: PostingAPIGetFbsPostingListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. `has_next = true` в ответе может значить, что вернули не весь массив отправлений. Чтобы получить информацию об остальных отправлениях, сделайте новый запрос с другим значением `offset`. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список отправлений + * @deprecated + */ + postingAPIGetFbsPostingListV3(clientId: string, apiKey: string, postingv3GetFbsPostingListRequest: Postingv3GetFbsPostingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации, - `acceptance_in_progress` — идёт приёмка, - `awaiting_approve` — ожидает подтверждения, - `awaiting_packaging` — ожидает упаковки, - `awaiting_deliver` — ожидает отгрузки, - `arbitration` — арбитраж, - `client_arbitration` — клиентский арбитраж доставки, - `delivering` — доставляется, - `driver_pickup` — у водителя, - `cancelled` — отменено, - `not_accepted` — не принят на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список необработанных отправлений + * @deprecated + */ + postingAPIGetFbsPostingUnfulfilledListRaw(requestParameters: PostingAPIGetFbsPostingUnfulfilledListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации, - `acceptance_in_progress` — идёт приёмка, - `awaiting_approve` — ожидает подтверждения, - `awaiting_packaging` — ожидает упаковки, - `awaiting_deliver` — ожидает отгрузки, - `arbitration` — арбитраж, - `client_arbitration` — клиентский арбитраж доставки, - `delivering` — доставляется, - `driver_pickup` — у водителя, - `cancelled` — отменено, - `not_accepted` — не принят на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список необработанных отправлений + * @deprecated + */ + postingAPIGetFbsPostingUnfulfilledList(clientId: string, apiKey: string, postingv3GetFbsPostingUnfulfilledListRequest: Postingv3GetFbsPostingUnfulfilledListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить информацию об отправлении по идентификатору + */ + postingAPIGetFbsPostingV3Raw(requestParameters: PostingAPIGetFbsPostingV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить информацию об отправлении по идентификатору + */ + postingAPIGetFbsPostingV3(clientId: string, apiKey: string, postingv3GetFbsPostingRequest: Postingv3GetFbsPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения этикеток после вызова [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * Получить файл с этикетками + */ + postingAPIGetLabelBatchRaw(requestParameters: PostingAPIGetLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения этикеток после вызова [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * Получить файл с этикетками + */ + postingAPIGetLabelBatch(clientId: string, apiKey: string, v1GetLabelBatchRequest: V1GetLabelBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список причин отмены для всех отправлений. + * Причины отмены отправлений + */ + postingAPIGetPostingFbsCancelReasonListRaw(requestParameters: PostingAPIGetPostingFbsCancelReasonListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список причин отмены для всех отправлений. + * Причины отмены отправлений + */ + postingAPIGetPostingFbsCancelReasonList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список причин отмены для конкретных отправлений. + * Причины отмены отправления + */ + postingAPIGetPostingFbsCancelReasonV1Raw(requestParameters: PostingAPIGetPostingFbsCancelReasonV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список причин отмены для конкретных отправлений. + * Причины отмены отправления + */ + postingAPIGetPostingFbsCancelReasonV1(clientId: string, apiKey: string, postingCancelReasonRequest: PostingCancelReasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения габаритных, весовых и прочих ограничений пункта приёма по номеру отправления. Метод применим только для работы по схеме FBS. + * Получить ограничения пункта приёма + */ + postingAPIGetRestrictionsRaw(requestParameters: PostingAPIGetRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения габаритных, весовых и прочих ограничений пункта приёма по номеру отправления. Метод применим только для работы по схеме FBS. + * Получить ограничения пункта приёма + */ + postingAPIGetRestrictions(clientId: string, apiKey: string, v1GetRestrictionsRequest: V1GetRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка доступных стран-изготовителей и их ISO кодов. + * Список доступных стран-изготовителей + */ + postingAPIListCountryProductFbsPostingV2Raw(requestParameters: PostingAPIListCountryProductFbsPostingV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка доступных стран-изготовителей и их ISO кодов. + * Список доступных стран-изготовителей + */ + postingAPIListCountryProductFbsPostingV2(v2FbsPostingProductCountryListRequest: V2FbsPostingProductCountryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если отправление передано в доставку, но не просканировано в сортировочном центре, можно открыть спор. Открытый спор переведёт отправление в статус `arbitration`. + * Открыть спор по отправлению + */ + postingAPIMoveFbsPostingToArbitrationRaw(requestParameters: PostingAPIMoveFbsPostingToArbitrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если отправление передано в доставку, но не просканировано в сортировочном центре, можно открыть спор. Открытый спор переведёт отправление в статус `arbitration`. + * Открыть спор по отправлению + */ + postingAPIMoveFbsPostingToArbitration(clientId: string, apiKey: string, postingMovePostingRequest?: PostingMovePostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Передает спорные заказы к отгрузке. Статус отправления изменится на `awaiting_deliver`. + * Передать отправление к отгрузке + */ + postingAPIMoveFbsPostingToAwaitingDeliveryRaw(requestParameters: PostingAPIMoveFbsPostingToAwaitingDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Передает спорные заказы к отгрузке. Статус отправления изменится на `awaiting_deliver`. + * Передать отправление к отгрузке + */ + postingAPIMoveFbsPostingToAwaitingDelivery(clientId: string, apiKey: string, v2MovePostingToAwaitingDeliveryRequest?: V2MovePostingToAwaitingDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Генерирует PDF-файл с этикетками для указанных отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. В одном запросе можно передать не больше 20 идентификаторов. Если хотя бы для одного отправления возникнет ошибка, этикетки не будут подготовлены для всех отправлений в запросе. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Ошибка `The next postings aren\'t ready` означает, что этикетки ещё не готовы, повторите запрос позднее. + * Напечатать этикетку + */ + postingAPIPostingFBSPackageLabelRaw(requestParameters: PostingAPIPostingFBSPackageLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Генерирует PDF-файл с этикетками для указанных отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. В одном запросе можно передать не больше 20 идентификаторов. Если хотя бы для одного отправления возникнет ошибка, этикетки не будут подготовлены для всех отправлений в запросе. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Ошибка `The next postings aren\'t ready` означает, что этикетки ещё не готовы, повторите запрос позднее. + * Напечатать этикетку + */ + postingAPIPostingFBSPackageLabel(clientId: string, apiKey: string, postingPostingFBSPackageLabelRequest: PostingPostingFBSPackageLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет проверить код курьера при передаче отправлений realFBS Express. Подробнее о передаче отправлений в [Базе знаний продавца](https://seller-edu.ozon.ru/contract-for-sellers/regulations-fbs-realfbs/reglament-prodaji-so-svoego-sklada-fbs-express#7-порядок-передачи-отправлении-через-партнёров-ozon-при-экспресс-доставке). + * Проверить код курьера + */ + postingAPIPostingFBSPickupCodeVerifyRaw(requestParameters: PostingAPIPostingFBSPickupCodeVerifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет проверить код курьера при передаче отправлений realFBS Express. Подробнее о передаче отправлений в [Базе знаний продавца](https://seller-edu.ozon.ru/contract-for-sellers/regulations-fbs-realfbs/reglament-prodaji-so-svoego-sklada-fbs-express#7-порядок-передачи-отправлении-через-партнёров-ozon-при-экспресс-доставке). + * Проверить код курьера + */ + postingAPIPostingFBSPickupCodeVerify(v1PostingFBSPickupCodeVerifyRequest: V1PostingFBSPickupCodeVerifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для передачи количества коробок для отправлений, в которых есть многокоробочные товары. Используйте метод при работе по схеме rFBS Агрегатор — c доставкой партнёрами Ozon. + * Указать количество коробок для многокоробочных отправлений + */ + postingAPIPostingMultiBoxQtySetV3Raw(requestParameters: PostingAPIPostingMultiBoxQtySetV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для передачи количества коробок для отправлений, в которых есть многокоробочные товары. Используйте метод при работе по схеме rFBS Агрегатор — c доставкой партнёрами Ozon. + * Указать количество коробок для многокоробочных отправлений + */ + postingAPIPostingMultiBoxQtySetV3(clientId: string, apiKey: string, postingv3PostingMultiBoxQtySetV3Request: Postingv3PostingMultiBoxQtySetV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для добавления на продукт атрибута «Страна-изготовитель», если он не был указан. + * Добавить информацию о стране-изготовителе товара + */ + postingAPISetCountryProductFbsPostingV2Raw(requestParameters: PostingAPISetCountryProductFbsPostingV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для добавления на продукт атрибута «Страна-изготовитель», если он не был указан. + * Добавить информацию о стране-изготовителе товара + */ + postingAPISetCountryProductFbsPostingV2(v2FbsPostingProductCountrySetRequest: V2FbsPostingProductCountrySetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список неоплаченных товаров, заказанных юридическими лицами + */ + postingAPIUnpaidLegalProductListRaw(requestParameters: PostingAPIUnpaidLegalProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список неоплаченных товаров, заказанных юридическими лицами + */ + postingAPIUnpaidLegalProductList(clientId: string, apiKey: string, v1PostingUnpaidLegalProductListRequest: V1PostingUnpaidLegalProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список отправлений + */ + postingFbsListRaw(requestParameters: PostingFbsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список отправлений + */ + postingFbsList(clientId: string, apiKey: string, postingV4PostingFbsListRequest: PostingV4PostingFbsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации; - `acceptance_in_progress` — идёт приёмка; - `awaiting_approve` — ожидает подтверждения; - `awaiting_packaging` — ожидает упаковки; - `awaiting_deliver` — ожидает отгрузки; - `arbitration` — арбитраж; - `client_arbitration` — клиентский арбитраж доставки; - `delivering` — доставляется; - `driver_pickup` — у водителя; - `cancelled` — отменено; - `not_accepted` — не принято на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список необработанных отправлений + */ + postingFbsUnfulfilledListRaw(requestParameters: PostingFbsUnfulfilledListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации; - `acceptance_in_progress` — идёт приёмка; - `awaiting_approve` — ожидает подтверждения; - `awaiting_packaging` — ожидает упаковки; - `awaiting_deliver` — ожидает отгрузки; - `arbitration` — арбитраж; - `client_arbitration` — клиентский арбитраж доставки; - `delivering` — доставляется; - `driver_pickup` — у водителя; - `cancelled` — отменено; - `not_accepted` — не принято на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список необработанных отправлений + */ + postingFbsUnfulfilledList(clientId: string, apiKey: string, postingV4PostingFbsUnfulfilledListRequest: PostingV4PostingFbsUnfulfilledListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FBS.js b/dist/esm/apis/FBS.js new file mode 100644 index 0000000..2a06055 --- /dev/null +++ b/dist/esm/apis/FBS.js @@ -0,0 +1,991 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { PostingBooleanResponseFromJSON, PostingCancelFbsPostingRequestToJSON, PostingCancelReasonListResponseFromJSON, PostingCancelReasonRequestToJSON, PostingCancelReasonResponseFromJSON, PostingGetFbsPostingByBarcodeRequestToJSON, PostingMovePostingRequestToJSON, PostingPostingFBSPackageLabelRequestToJSON, PostingPostingFBSPackageLabelResponseFromJSON, PostingPostingProductCancelRequestToJSON, PostingPostingProductCancelResponseFromJSON, PostingV4PostingFbsListRequestToJSON, PostingV4PostingFbsListResponseFromJSON, PostingV4PostingFbsUnfulfilledListRequestToJSON, PostingV4PostingFbsUnfulfilledListResponseFromJSON, Postingv3GetFbsPostingListRequestToJSON, Postingv3GetFbsPostingRequestToJSON, Postingv3GetFbsPostingUnfulfilledListRequestToJSON, Postingv3GetFbsPostingUnfulfilledListResponseFromJSON, Postingv3PostingMultiBoxQtySetV3RequestToJSON, Postingv3PostingMultiBoxQtySetV3ResponseFromJSON, V1CreateLabelBatchRequestToJSON, V1CreateLabelBatchResponseFromJSON, V1GetEtgbRequestToJSON, V1GetEtgbResponseFromJSON, V1GetLabelBatchRequestToJSON, V1GetLabelBatchResponseFromJSON, V1GetRestrictionsRequestToJSON, V1GetRestrictionsResponseFromJSON, V1PostingFBSPickupCodeVerifyRequestToJSON, V1PostingFBSPickupCodeVerifyResponseFromJSON, V1PostingUnpaidLegalProductListRequestToJSON, V1PostingUnpaidLegalProductListResponseFromJSON, V2CreateLabelBatchResponseFromJSON, V2FbsPostingProductCountryListRequestToJSON, V2FbsPostingProductCountryListResponseFromJSON, V2FbsPostingProductCountrySetRequestToJSON, V2FbsPostingProductCountrySetResponseFromJSON, V2FbsPostingResponseFromJSON, V2MovePostingToAwaitingDeliveryRequestToJSON, V3GetFbsPostingListResponseV3FromJSON, V3GetFbsPostingResponseV3FromJSON, } from '../models/index'; +/** + * + */ +export class FBS extends runtime.BaseAPI { + /** + * Меняет статус отправления на `cancelled`. Перед началом работы проверьте причины отмены для конкретного отправления методом [/v1/posting/fbs/cancel-reason](#operation/PostingAPI_GetPostingFbsCancelReasonV1). Условно-доставленные отправления отменить нельзя. Если значение параметра `cancel_reason_id` — 402, заполните поле `cancel_reason_message`. + * Отменить отправление + */ + postingAPICancelFbsPostingRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPICancelFbsPosting().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPICancelFbsPosting().'); + } + if (requestParameters['postingCancelFbsPostingRequest'] == null) { + throw new runtime.RequiredError('postingCancelFbsPostingRequest', 'Required parameter "postingCancelFbsPostingRequest" was null or undefined when calling postingAPICancelFbsPosting().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingCancelFbsPostingRequestToJSON(requestParameters['postingCancelFbsPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingBooleanResponseFromJSON(jsonValue)); + }); + } + /** + * Меняет статус отправления на `cancelled`. Перед началом работы проверьте причины отмены для конкретного отправления методом [/v1/posting/fbs/cancel-reason](#operation/PostingAPI_GetPostingFbsCancelReasonV1). Условно-доставленные отправления отменить нельзя. Если значение параметра `cancel_reason_id` — 402, заполните поле `cancel_reason_message`. + * Отменить отправление + */ + postingAPICancelFbsPosting(clientId, apiKey, postingCancelFbsPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPICancelFbsPostingRaw({ clientId: clientId, apiKey: apiKey, postingCancelFbsPostingRequest: postingCancelFbsPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, если вы не можете отправить часть продуктов из отправления. Чтобы получить идентификаторы причин отмены `cancel_reason_id` при работе по схемам FBS или rFBS, используйте метод [/v2/posting/fbs/cancel-reason/list](#operation/PostingAPI_GetPostingFbsCancelReasonList). Условно-доставленные отправления отменить нельзя. + * Отменить отправку некоторых товаров в отправлении + */ + postingAPICancelFbsPostingProductRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPICancelFbsPostingProduct().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPICancelFbsPostingProduct().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/product/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingPostingProductCancelRequestToJSON(requestParameters['postingPostingProductCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingPostingProductCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, если вы не можете отправить часть продуктов из отправления. Чтобы получить идентификаторы причин отмены `cancel_reason_id` при работе по схемам FBS или rFBS, используйте метод [/v2/posting/fbs/cancel-reason/list](#operation/PostingAPI_GetPostingFbsCancelReasonList). Условно-доставленные отправления отменить нельзя. + * Отменить отправку некоторых товаров в отправлении + */ + postingAPICancelFbsPostingProduct(clientId, apiKey, postingPostingProductCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPICancelFbsPostingProductRaw({ clientId: clientId, apiKey: apiKey, postingPostingProductCancelRequest: postingPostingProductCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для создания задания на асинхронное формирование этикеток. Для получения этикеток, созданных в результате вызова метода, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на выгрузку этикеток + */ + postingAPICreateLabelBatchRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPICreateLabelBatch().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPICreateLabelBatch().'); + } + if (requestParameters['v1CreateLabelBatchRequest'] == null) { + throw new runtime.RequiredError('v1CreateLabelBatchRequest', 'Required parameter "v1CreateLabelBatchRequest" was null or undefined when calling postingAPICreateLabelBatch().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/package-label/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreateLabelBatchRequestToJSON(requestParameters['v1CreateLabelBatchRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CreateLabelBatchResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для создания задания на асинхронное формирование этикеток. Для получения этикеток, созданных в результате вызова метода, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на выгрузку этикеток + */ + postingAPICreateLabelBatch(clientId, apiKey, v1CreateLabelBatchRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPICreateLabelBatchRaw({ clientId: clientId, apiKey: apiKey, v1CreateLabelBatchRequest: v1CreateLabelBatchRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для создания задания на асинхронное формирование этикеток для отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. Метод может вернуть несколько заданий: на формирование маленькой и большой этикетки. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Чтобы получить созданные этикетки, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на формирование этикеток + */ + postingAPICreateLabelBatchV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPICreateLabelBatchV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPICreateLabelBatchV2().'); + } + if (requestParameters['v1CreateLabelBatchRequest'] == null) { + throw new runtime.RequiredError('v1CreateLabelBatchRequest', 'Required parameter "v1CreateLabelBatchRequest" was null or undefined when calling postingAPICreateLabelBatchV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/package-label/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreateLabelBatchRequestToJSON(requestParameters['v1CreateLabelBatchRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2CreateLabelBatchResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для создания задания на асинхронное формирование этикеток для отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. Метод может вернуть несколько заданий: на формирование маленькой и большой этикетки. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Чтобы получить созданные этикетки, используйте [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * Создать задание на формирование этикеток + */ + postingAPICreateLabelBatchV2(clientId, apiKey, v1CreateLabelBatchRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPICreateLabelBatchV2Raw({ clientId: clientId, apiKey: apiKey, v1CreateLabelBatchRequest: v1CreateLabelBatchRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения таможенных деклараций Elektronik Ticaret Gümrük Beyannamesi (ETGB) для продавцов из Турции. + * Таможенные декларации ETGB + */ + postingAPIGetEtgbRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetEtgb().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetEtgb().'); + } + if (requestParameters['v1GetEtgbRequest'] == null) { + throw new runtime.RequiredError('v1GetEtgbRequest', 'Required parameter "v1GetEtgbRequest" was null or undefined when calling postingAPIGetEtgb().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/global/etgb`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetEtgbRequestToJSON(requestParameters['v1GetEtgbRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetEtgbResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения таможенных деклараций Elektronik Ticaret Gümrük Beyannamesi (ETGB) для продавцов из Турции. + * Таможенные декларации ETGB + */ + postingAPIGetEtgb(clientId, apiKey, v1GetEtgbRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetEtgbRaw({ clientId: clientId, apiKey: apiKey, v1GetEtgbRequest: v1GetEtgbRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию об отправлении по штрихкоду + */ + postingAPIGetFbsPostingByBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFbsPostingByBarcode().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFbsPostingByBarcode().'); + } + if (requestParameters['postingGetFbsPostingByBarcodeRequest'] == null) { + throw new runtime.RequiredError('postingGetFbsPostingByBarcodeRequest', 'Required parameter "postingGetFbsPostingByBarcodeRequest" was null or undefined when calling postingAPIGetFbsPostingByBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/get-by-barcode`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingGetFbsPostingByBarcodeRequestToJSON(requestParameters['postingGetFbsPostingByBarcodeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2FbsPostingResponseFromJSON(jsonValue)); + }); + } + /** + * Получить информацию об отправлении по штрихкоду + */ + postingAPIGetFbsPostingByBarcode(clientId, apiKey, postingGetFbsPostingByBarcodeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFbsPostingByBarcodeRaw({ clientId: clientId, apiKey: apiKey, postingGetFbsPostingByBarcodeRequest: postingGetFbsPostingByBarcodeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. `has_next = true` в ответе может значить, что вернули не весь массив отправлений. Чтобы получить информацию об остальных отправлениях, сделайте новый запрос с другим значением `offset`. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список отправлений + * @deprecated + */ + postingAPIGetFbsPostingListV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFbsPostingListV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFbsPostingListV3().'); + } + if (requestParameters['postingv3GetFbsPostingListRequest'] == null) { + throw new runtime.RequiredError('postingv3GetFbsPostingListRequest', 'Required parameter "postingv3GetFbsPostingListRequest" was null or undefined when calling postingAPIGetFbsPostingListV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/fbs/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Postingv3GetFbsPostingListRequestToJSON(requestParameters['postingv3GetFbsPostingListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3GetFbsPostingListResponseV3FromJSON(jsonValue)); + }); + } + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. `has_next = true` в ответе может значить, что вернули не весь массив отправлений. Чтобы получить информацию об остальных отправлениях, сделайте новый запрос с другим значением `offset`. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список отправлений + * @deprecated + */ + postingAPIGetFbsPostingListV3(clientId, apiKey, postingv3GetFbsPostingListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFbsPostingListV3Raw({ clientId: clientId, apiKey: apiKey, postingv3GetFbsPostingListRequest: postingv3GetFbsPostingListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации, - `acceptance_in_progress` — идёт приёмка, - `awaiting_approve` — ожидает подтверждения, - `awaiting_packaging` — ожидает упаковки, - `awaiting_deliver` — ожидает отгрузки, - `arbitration` — арбитраж, - `client_arbitration` — клиентский арбитраж доставки, - `delivering` — доставляется, - `driver_pickup` — у водителя, - `cancelled` — отменено, - `not_accepted` — не принят на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список необработанных отправлений + * @deprecated + */ + postingAPIGetFbsPostingUnfulfilledListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFbsPostingUnfulfilledList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFbsPostingUnfulfilledList().'); + } + if (requestParameters['postingv3GetFbsPostingUnfulfilledListRequest'] == null) { + throw new runtime.RequiredError('postingv3GetFbsPostingUnfulfilledListRequest', 'Required parameter "postingv3GetFbsPostingUnfulfilledListRequest" was null or undefined when calling postingAPIGetFbsPostingUnfulfilledList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/fbs/unfulfilled/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Postingv3GetFbsPostingUnfulfilledListRequestToJSON(requestParameters['postingv3GetFbsPostingUnfulfilledListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Postingv3GetFbsPostingUnfulfilledListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации, - `acceptance_in_progress` — идёт приёмка, - `awaiting_approve` — ожидает подтверждения, - `awaiting_packaging` — ожидает упаковки, - `awaiting_deliver` — ожидает отгрузки, - `arbitration` — арбитраж, - `client_arbitration` — клиентский арбитраж доставки, - `delivering` — доставляется, - `driver_pickup` — у водителя, - `cancelled` — отменено, - `not_accepted` — не принят на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Список необработанных отправлений + * @deprecated + */ + postingAPIGetFbsPostingUnfulfilledList(clientId, apiKey, postingv3GetFbsPostingUnfulfilledListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFbsPostingUnfulfilledListRaw({ clientId: clientId, apiKey: apiKey, postingv3GetFbsPostingUnfulfilledListRequest: postingv3GetFbsPostingUnfulfilledListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить информацию об отправлении по идентификатору + */ + postingAPIGetFbsPostingV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetFbsPostingV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetFbsPostingV3().'); + } + if (requestParameters['postingv3GetFbsPostingRequest'] == null) { + throw new runtime.RequiredError('postingv3GetFbsPostingRequest', 'Required parameter "postingv3GetFbsPostingRequest" was null or undefined when calling postingAPIGetFbsPostingV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/fbs/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Postingv3GetFbsPostingRequestToJSON(requestParameters['postingv3GetFbsPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3GetFbsPostingResponseV3FromJSON(jsonValue)); + }); + } + /** + * Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить информацию об отправлении по идентификатору + */ + postingAPIGetFbsPostingV3(clientId, apiKey, postingv3GetFbsPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetFbsPostingV3Raw({ clientId: clientId, apiKey: apiKey, postingv3GetFbsPostingRequest: postingv3GetFbsPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения этикеток после вызова [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * Получить файл с этикетками + */ + postingAPIGetLabelBatchRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetLabelBatch().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetLabelBatch().'); + } + if (requestParameters['v1GetLabelBatchRequest'] == null) { + throw new runtime.RequiredError('v1GetLabelBatchRequest', 'Required parameter "v1GetLabelBatchRequest" was null or undefined when calling postingAPIGetLabelBatch().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/package-label/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetLabelBatchRequestToJSON(requestParameters['v1GetLabelBatchRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetLabelBatchResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения этикеток после вызова [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * Получить файл с этикетками + */ + postingAPIGetLabelBatch(clientId, apiKey, v1GetLabelBatchRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetLabelBatchRaw({ clientId: clientId, apiKey: apiKey, v1GetLabelBatchRequest: v1GetLabelBatchRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список причин отмены для всех отправлений. + * Причины отмены отправлений + */ + postingAPIGetPostingFbsCancelReasonListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetPostingFbsCancelReasonList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetPostingFbsCancelReasonList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/cancel-reason/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingCancelReasonListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список причин отмены для всех отправлений. + * Причины отмены отправлений + */ + postingAPIGetPostingFbsCancelReasonList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetPostingFbsCancelReasonListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список причин отмены для конкретных отправлений. + * Причины отмены отправления + */ + postingAPIGetPostingFbsCancelReasonV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetPostingFbsCancelReasonV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetPostingFbsCancelReasonV1().'); + } + if (requestParameters['postingCancelReasonRequest'] == null) { + throw new runtime.RequiredError('postingCancelReasonRequest', 'Required parameter "postingCancelReasonRequest" was null or undefined when calling postingAPIGetPostingFbsCancelReasonV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/cancel-reason`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingCancelReasonRequestToJSON(requestParameters['postingCancelReasonRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingCancelReasonResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список причин отмены для конкретных отправлений. + * Причины отмены отправления + */ + postingAPIGetPostingFbsCancelReasonV1(clientId, apiKey, postingCancelReasonRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetPostingFbsCancelReasonV1Raw({ clientId: clientId, apiKey: apiKey, postingCancelReasonRequest: postingCancelReasonRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения габаритных, весовых и прочих ограничений пункта приёма по номеру отправления. Метод применим только для работы по схеме FBS. + * Получить ограничения пункта приёма + */ + postingAPIGetRestrictionsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIGetRestrictions().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIGetRestrictions().'); + } + if (requestParameters['v1GetRestrictionsRequest'] == null) { + throw new runtime.RequiredError('v1GetRestrictionsRequest', 'Required parameter "v1GetRestrictionsRequest" was null or undefined when calling postingAPIGetRestrictions().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/fbs/restrictions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetRestrictionsRequestToJSON(requestParameters['v1GetRestrictionsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetRestrictionsResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения габаритных, весовых и прочих ограничений пункта приёма по номеру отправления. Метод применим только для работы по схеме FBS. + * Получить ограничения пункта приёма + */ + postingAPIGetRestrictions(clientId, apiKey, v1GetRestrictionsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIGetRestrictionsRaw({ clientId: clientId, apiKey: apiKey, v1GetRestrictionsRequest: v1GetRestrictionsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка доступных стран-изготовителей и их ISO кодов. + * Список доступных стран-изготовителей + */ + postingAPIListCountryProductFbsPostingV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2FbsPostingProductCountryListRequest'] == null) { + throw new runtime.RequiredError('v2FbsPostingProductCountryListRequest', 'Required parameter "v2FbsPostingProductCountryListRequest" was null or undefined when calling postingAPIListCountryProductFbsPostingV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/posting/fbs/product/country/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2FbsPostingProductCountryListRequestToJSON(requestParameters['v2FbsPostingProductCountryListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2FbsPostingProductCountryListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка доступных стран-изготовителей и их ISO кодов. + * Список доступных стран-изготовителей + */ + postingAPIListCountryProductFbsPostingV2(v2FbsPostingProductCountryListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIListCountryProductFbsPostingV2Raw({ v2FbsPostingProductCountryListRequest: v2FbsPostingProductCountryListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если отправление передано в доставку, но не просканировано в сортировочном центре, можно открыть спор. Открытый спор переведёт отправление в статус `arbitration`. + * Открыть спор по отправлению + */ + postingAPIMoveFbsPostingToArbitrationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIMoveFbsPostingToArbitration().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIMoveFbsPostingToArbitration().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/arbitration`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingMovePostingRequestToJSON(requestParameters['postingMovePostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingBooleanResponseFromJSON(jsonValue)); + }); + } + /** + * Если отправление передано в доставку, но не просканировано в сортировочном центре, можно открыть спор. Открытый спор переведёт отправление в статус `arbitration`. + * Открыть спор по отправлению + */ + postingAPIMoveFbsPostingToArbitration(clientId, apiKey, postingMovePostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIMoveFbsPostingToArbitrationRaw({ clientId: clientId, apiKey: apiKey, postingMovePostingRequest: postingMovePostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Передает спорные заказы к отгрузке. Статус отправления изменится на `awaiting_deliver`. + * Передать отправление к отгрузке + */ + postingAPIMoveFbsPostingToAwaitingDeliveryRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIMoveFbsPostingToAwaitingDelivery().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIMoveFbsPostingToAwaitingDelivery().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/awaiting-delivery`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2MovePostingToAwaitingDeliveryRequestToJSON(requestParameters['v2MovePostingToAwaitingDeliveryRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingBooleanResponseFromJSON(jsonValue)); + }); + } + /** + * Передает спорные заказы к отгрузке. Статус отправления изменится на `awaiting_deliver`. + * Передать отправление к отгрузке + */ + postingAPIMoveFbsPostingToAwaitingDelivery(clientId, apiKey, v2MovePostingToAwaitingDeliveryRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIMoveFbsPostingToAwaitingDeliveryRaw({ clientId: clientId, apiKey: apiKey, v2MovePostingToAwaitingDeliveryRequest: v2MovePostingToAwaitingDeliveryRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Генерирует PDF-файл с этикетками для указанных отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. В одном запросе можно передать не больше 20 идентификаторов. Если хотя бы для одного отправления возникнет ошибка, этикетки не будут подготовлены для всех отправлений в запросе. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Ошибка `The next postings aren\'t ready` означает, что этикетки ещё не готовы, повторите запрос позднее. + * Напечатать этикетку + */ + postingAPIPostingFBSPackageLabelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingFBSPackageLabel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingFBSPackageLabel().'); + } + if (requestParameters['postingPostingFBSPackageLabelRequest'] == null) { + throw new runtime.RequiredError('postingPostingFBSPackageLabelRequest', 'Required parameter "postingPostingFBSPackageLabelRequest" was null or undefined when calling postingAPIPostingFBSPackageLabel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/posting/fbs/package-label`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingPostingFBSPackageLabelRequestToJSON(requestParameters['postingPostingFBSPackageLabelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingPostingFBSPackageLabelResponseFromJSON(jsonValue)); + }); + } + /** + * Генерирует PDF-файл с этикетками для указанных отправлений в статусе «Ожидает отгрузки» — `awaiting_deliver`. В одном запросе можно передать не больше 20 идентификаторов. Если хотя бы для одного отправления возникнет ошибка, этикетки не будут подготовлены для всех отправлений в запросе. Рекомендуем запрашивать этикетки через 45–60 секунд после сборки заказа. Ошибка `The next postings aren\'t ready` означает, что этикетки ещё не готовы, повторите запрос позднее. + * Напечатать этикетку + */ + postingAPIPostingFBSPackageLabel(clientId, apiKey, postingPostingFBSPackageLabelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSPackageLabelRaw({ clientId: clientId, apiKey: apiKey, postingPostingFBSPackageLabelRequest: postingPostingFBSPackageLabelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод позволяет проверить код курьера при передаче отправлений realFBS Express. Подробнее о передаче отправлений в [Базе знаний продавца](https://seller-edu.ozon.ru/contract-for-sellers/regulations-fbs-realfbs/reglament-prodaji-so-svoego-sklada-fbs-express#7-порядок-передачи-отправлении-через-партнёров-ozon-при-экспресс-доставке). + * Проверить код курьера + */ + postingAPIPostingFBSPickupCodeVerifyRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingFBSPickupCodeVerifyRequest'] == null) { + throw new runtime.RequiredError('v1PostingFBSPickupCodeVerifyRequest', 'Required parameter "v1PostingFBSPickupCodeVerifyRequest" was null or undefined when calling postingAPIPostingFBSPickupCodeVerify().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/fbs/pick-up-code/verify`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingFBSPickupCodeVerifyRequestToJSON(requestParameters['v1PostingFBSPickupCodeVerifyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingFBSPickupCodeVerifyResponseFromJSON(jsonValue)); + }); + } + /** + * Метод позволяет проверить код курьера при передаче отправлений realFBS Express. Подробнее о передаче отправлений в [Базе знаний продавца](https://seller-edu.ozon.ru/contract-for-sellers/regulations-fbs-realfbs/reglament-prodaji-so-svoego-sklada-fbs-express#7-порядок-передачи-отправлении-через-партнёров-ozon-при-экспресс-доставке). + * Проверить код курьера + */ + postingAPIPostingFBSPickupCodeVerify(v1PostingFBSPickupCodeVerifyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingFBSPickupCodeVerifyRaw({ v1PostingFBSPickupCodeVerifyRequest: v1PostingFBSPickupCodeVerifyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для передачи количества коробок для отправлений, в которых есть многокоробочные товары. Используйте метод при работе по схеме rFBS Агрегатор — c доставкой партнёрами Ozon. + * Указать количество коробок для многокоробочных отправлений + */ + postingAPIPostingMultiBoxQtySetV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIPostingMultiBoxQtySetV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIPostingMultiBoxQtySetV3().'); + } + if (requestParameters['postingv3PostingMultiBoxQtySetV3Request'] == null) { + throw new runtime.RequiredError('postingv3PostingMultiBoxQtySetV3Request', 'Required parameter "postingv3PostingMultiBoxQtySetV3Request" was null or undefined when calling postingAPIPostingMultiBoxQtySetV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/posting/multiboxqty/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Postingv3PostingMultiBoxQtySetV3RequestToJSON(requestParameters['postingv3PostingMultiBoxQtySetV3Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Postingv3PostingMultiBoxQtySetV3ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для передачи количества коробок для отправлений, в которых есть многокоробочные товары. Используйте метод при работе по схеме rFBS Агрегатор — c доставкой партнёрами Ozon. + * Указать количество коробок для многокоробочных отправлений + */ + postingAPIPostingMultiBoxQtySetV3(clientId, apiKey, postingv3PostingMultiBoxQtySetV3Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingMultiBoxQtySetV3Raw({ clientId: clientId, apiKey: apiKey, postingv3PostingMultiBoxQtySetV3Request: postingv3PostingMultiBoxQtySetV3Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для добавления на продукт атрибута «Страна-изготовитель», если он не был указан. + * Добавить информацию о стране-изготовителе товара + */ + postingAPISetCountryProductFbsPostingV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2FbsPostingProductCountrySetRequest'] == null) { + throw new runtime.RequiredError('v2FbsPostingProductCountrySetRequest', 'Required parameter "v2FbsPostingProductCountrySetRequest" was null or undefined when calling postingAPISetCountryProductFbsPostingV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/posting/fbs/product/country/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2FbsPostingProductCountrySetRequestToJSON(requestParameters['v2FbsPostingProductCountrySetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2FbsPostingProductCountrySetResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для добавления на продукт атрибута «Страна-изготовитель», если он не был указан. + * Добавить информацию о стране-изготовителе товара + */ + postingAPISetCountryProductFbsPostingV2(v2FbsPostingProductCountrySetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPISetCountryProductFbsPostingV2Raw({ v2FbsPostingProductCountrySetRequest: v2FbsPostingProductCountrySetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список неоплаченных товаров, заказанных юридическими лицами + */ + postingAPIUnpaidLegalProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIUnpaidLegalProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIUnpaidLegalProductList().'); + } + if (requestParameters['v1PostingUnpaidLegalProductListRequest'] == null) { + throw new runtime.RequiredError('v1PostingUnpaidLegalProductListRequest', 'Required parameter "v1PostingUnpaidLegalProductListRequest" was null or undefined when calling postingAPIUnpaidLegalProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/posting/unpaid-legal/product/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingUnpaidLegalProductListRequestToJSON(requestParameters['v1PostingUnpaidLegalProductListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingUnpaidLegalProductListResponseFromJSON(jsonValue)); + }); + } + /** + * Список неоплаченных товаров, заказанных юридическими лицами + */ + postingAPIUnpaidLegalProductList(clientId, apiKey, v1PostingUnpaidLegalProductListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIUnpaidLegalProductListRaw({ clientId: clientId, apiKey: apiKey, v1PostingUnpaidLegalProductListRequest: v1PostingUnpaidLegalProductListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список отправлений + */ + postingFbsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbsList().'); + } + if (requestParameters['postingV4PostingFbsListRequest'] == null) { + throw new runtime.RequiredError('postingV4PostingFbsListRequest', 'Required parameter "postingV4PostingFbsListRequest" was null or undefined when calling postingFbsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/posting/fbs/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingV4PostingFbsListRequestToJSON(requestParameters['postingV4PostingFbsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingV4PostingFbsListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список отправлений за указанный период времени — он должен быть не больше одного года. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список отправлений + */ + postingFbsList(clientId, apiKey, postingV4PostingFbsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbsListRaw({ clientId: clientId, apiKey: apiKey, postingV4PostingFbsListRequest: postingV4PostingFbsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации; - `acceptance_in_progress` — идёт приёмка; - `awaiting_approve` — ожидает подтверждения; - `awaiting_packaging` — ожидает упаковки; - `awaiting_deliver` — ожидает отгрузки; - `arbitration` — арбитраж; - `client_arbitration` — клиентский арбитраж доставки; - `delivering` — доставляется; - `driver_pickup` — у водителя; - `cancelled` — отменено; - `not_accepted` — не принято на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список необработанных отправлений + */ + postingFbsUnfulfilledListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingFbsUnfulfilledList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingFbsUnfulfilledList().'); + } + if (requestParameters['postingV4PostingFbsUnfulfilledListRequest'] == null) { + throw new runtime.RequiredError('postingV4PostingFbsUnfulfilledListRequest', 'Required parameter "postingV4PostingFbsUnfulfilledListRequest" was null or undefined when calling postingFbsUnfulfilledList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/posting/fbs/unfulfilled/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PostingV4PostingFbsUnfulfilledListRequestToJSON(requestParameters['postingV4PostingFbsUnfulfilledListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => PostingV4PostingFbsUnfulfilledListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список необработанных отправлений за указанный период времени — он должен быть не больше одного года. Возможные статусы отправлений: - `awaiting_registration` — ожидает регистрации; - `acceptance_in_progress` — идёт приёмка; - `awaiting_approve` — ожидает подтверждения; - `awaiting_packaging` — ожидает упаковки; - `awaiting_deliver` — ожидает отгрузки; - `arbitration` — арбитраж; - `client_arbitration` — клиентский арбитраж доставки; - `delivering` — доставляется; - `driver_pickup` — у водителя; - `cancelled` — отменено; - `not_accepted` — не принято на сортировочном центре. Чтобы получать актуальную дату отгрузки, регулярно обновляйте информацию об отправлениях или подключите [пуш-уведомления](#tag/push_start). + * Получить список необработанных отправлений + */ + postingFbsUnfulfilledList(clientId, apiKey, postingV4PostingFbsUnfulfilledListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingFbsUnfulfilledListRaw({ clientId: clientId, apiKey: apiKey, postingV4PostingFbsUnfulfilledListRequest: postingV4PostingFbsUnfulfilledListRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FBSWarehouseSetup.d.ts b/dist/esm/apis/FBSWarehouseSetup.d.ts new file mode 100644 index 0000000..9a8d3e5 --- /dev/null +++ b/dist/esm/apis/FBSWarehouseSetup.d.ts @@ -0,0 +1,242 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1CreateWarehouseFBSRequest, V1CreateWarehouseFBSResponse, V1ListDropOffPointsForCreateFBSWarehouseRequest, V1ListDropOffPointsForCreateFBSWarehouseResponse, V1ListDropOffPointsForUpdateFBSWarehouseRequest, V1ListDropOffPointsForUpdateFBSWarehouseResponse, V1UpdateWarehouseFBSFirstMileRequest, V1UpdateWarehouseFBSFirstMileResponse, V1UpdateWarehouseFBSRequest, V1UpdateWarehouseFBSResponse, V1WarehouseFBSCreateReturnPointListRequest, V1WarehouseFBSCreateReturnPointListResponse, V1WarehouseFBSReturnMileInfoRequest, V1WarehouseFBSReturnMileInfoResponse, V1WarehouseFBSUpdateReturnPointListRequest, V1WarehouseFBSUpdateReturnPointListResponse, V1WarehouseFbsCreateDropOffTimeslotListRequest, V1WarehouseFbsCreateDropOffTimeslotListResponse, V1WarehouseFbsCreatePickUpTimeslotListRequest, V1WarehouseFbsCreatePickUpTimeslotListResponse, V1WarehouseFbsPickUpCourierCancelRequest, V1WarehouseFbsPickUpCourierCreateRequest, V1WarehouseFbsPickUpHistoryListRequest, V1WarehouseFbsPickUpHistoryListResponse, V1WarehouseFbsPickUpPlanningListResponse, V1WarehouseFbsReturnMileCheckRequest, V1WarehouseFbsReturnMileCheckResponse, V1WarehouseFbsUpdateDropOffTimeslotListRequest, V1WarehouseFbsUpdateDropOffTimeslotListResponse, V1WarehouseFbsUpdatePickUpTimeslotListRequest, V1WarehouseFbsUpdatePickUpTimeslotListResponse } from '../models/index'; +export interface UpdateWarehouseFBSRequest { + clientId: string; + apiKey: string; + v1UpdateWarehouseFBSRequest?: V1UpdateWarehouseFBSRequest; +} +export interface UpdateWarehouseFBSFirstMileRequest { + clientId: string; + apiKey: string; + v1UpdateWarehouseFBSFirstMileRequest?: V1UpdateWarehouseFBSFirstMileRequest; +} +export interface WarehouseAPICreateWarehouseFBSRequest { + v1CreateWarehouseFBSRequest?: V1CreateWarehouseFBSRequest; +} +export interface WarehouseAPIListDropOffPointsForCreateFBSWarehouseRequest { + v1ListDropOffPointsForCreateFBSWarehouseRequest?: V1ListDropOffPointsForCreateFBSWarehouseRequest; +} +export interface WarehouseAPIListDropOffPointsForUpdateFBSWarehouseRequest { + v1ListDropOffPointsForUpdateFBSWarehouseRequest?: V1ListDropOffPointsForUpdateFBSWarehouseRequest; +} +export interface WarehouseFBSCreateReturnPointListRequest { + clientId: string; + apiKey: string; + v1WarehouseFBSCreateReturnPointListRequest?: V1WarehouseFBSCreateReturnPointListRequest; +} +export interface WarehouseFBSReturnMileInfoRequest { + clientId: string; + apiKey: string; + v1WarehouseFBSReturnMileInfoRequest?: V1WarehouseFBSReturnMileInfoRequest; +} +export interface WarehouseFBSUpdateReturnPointListRequest { + clientId: string; + apiKey: string; + v1WarehouseFBSUpdateReturnPointListRequest?: V1WarehouseFBSUpdateReturnPointListRequest; +} +export interface WarehouseFbsCreateDropOffTimeslotListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsCreateDropOffTimeslotListRequest?: V1WarehouseFbsCreateDropOffTimeslotListRequest; +} +export interface WarehouseFbsCreatePickUpTimeslotListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsCreatePickUpTimeslotListRequest?: V1WarehouseFbsCreatePickUpTimeslotListRequest; +} +export interface WarehouseFbsPickUpCourierCancelRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsPickUpCourierCancelRequest: V1WarehouseFbsPickUpCourierCancelRequest; +} +export interface WarehouseFbsPickUpCourierCreateRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsPickUpCourierCreateRequest: V1WarehouseFbsPickUpCourierCreateRequest; +} +export interface WarehouseFbsPickUpHistoryListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsPickUpHistoryListRequest: V1WarehouseFbsPickUpHistoryListRequest; +} +export interface WarehouseFbsPickUpPlanningListRequest { + clientId: string; + apiKey: string; +} +export interface WarehouseFbsReturnMileCheckRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsReturnMileCheckRequest?: V1WarehouseFbsReturnMileCheckRequest; +} +export interface WarehouseFbsUpdateDropOffTimeslotListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsUpdateDropOffTimeslotListRequest?: V1WarehouseFbsUpdateDropOffTimeslotListRequest; +} +export interface WarehouseFbsUpdatePickUpTimeslotListRequest { + clientId: string; + apiKey: string; + v1WarehouseFbsUpdatePickUpTimeslotListRequest?: V1WarehouseFbsUpdatePickUpTimeslotListRequest; +} +/** + * + */ +export declare class FBSWarehouseSetup extends runtime.BaseAPI { + /** + * Обновить склад + */ + updateWarehouseFBSRaw(requestParameters: UpdateWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить склад + */ + updateWarehouseFBS(clientId: string, apiKey: string, v1UpdateWarehouseFBSRequest?: V1UpdateWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить первую милю + */ + updateWarehouseFBSFirstMileRaw(requestParameters: UpdateWarehouseFBSFirstMileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить первую милю + */ + updateWarehouseFBSFirstMile(clientId: string, apiKey: string, v1UpdateWarehouseFBSFirstMileRequest?: V1UpdateWarehouseFBSFirstMileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если создаёте склад с доставкой в drop-off пункт, используйте метод [/v1/warehouse/fbs/create/drop-off/list](#operation/WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse), чтобы получить точки. + * Создать склад + */ + warehouseAPICreateWarehouseFBSRaw(requestParameters: WarehouseAPICreateWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если создаёте склад с доставкой в drop-off пункт, используйте метод [/v1/warehouse/fbs/create/drop-off/list](#operation/WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse), чтобы получить точки. + * Создать склад + */ + warehouseAPICreateWarehouseFBS(v1CreateWarehouseFBSRequest?: V1CreateWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список drop-off пунктов для создания склада + */ + warehouseAPIListDropOffPointsForCreateFBSWarehouseRaw(requestParameters: WarehouseAPIListDropOffPointsForCreateFBSWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список drop-off пунктов для создания склада + */ + warehouseAPIListDropOffPointsForCreateFBSWarehouse(v1ListDropOffPointsForCreateFBSWarehouseRequest?: V1ListDropOffPointsForCreateFBSWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список drop-off пунктов для изменения информации склада + */ + warehouseAPIListDropOffPointsForUpdateFBSWarehouseRaw(requestParameters: WarehouseAPIListDropOffPointsForUpdateFBSWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список drop-off пунктов для изменения информации склада + */ + warehouseAPIListDropOffPointsForUpdateFBSWarehouse(v1ListDropOffPointsForUpdateFBSWarehouseRequest?: V1ListDropOffPointsForUpdateFBSWarehouseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список пунктов возврата для создания склада + */ + warehouseFBSCreateReturnPointListRaw(requestParameters: WarehouseFBSCreateReturnPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список пунктов возврата для создания склада + */ + warehouseFBSCreateReturnPointList(clientId: string, apiKey: string, v1WarehouseFBSCreateReturnPointListRequest?: V1WarehouseFBSCreateReturnPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о возвратной миле + */ + warehouseFBSReturnMileInfoRaw(requestParameters: WarehouseFBSReturnMileInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о возвратной миле + */ + warehouseFBSReturnMileInfo(clientId: string, apiKey: string, v1WarehouseFBSReturnMileInfoRequest?: V1WarehouseFBSReturnMileInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список пунктов возврата для обновления склада + */ + warehouseFBSUpdateReturnPointListRaw(requestParameters: WarehouseFBSUpdateReturnPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список пунктов возврата для обновления склада + */ + warehouseFBSUpdateReturnPointList(clientId: string, apiKey: string, v1WarehouseFBSUpdateReturnPointListRequest?: V1WarehouseFBSUpdateReturnPointListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список таймслотов для создания склада с отгрузкой drop-off + */ + warehouseFbsCreateDropOffTimeslotListRaw(requestParameters: WarehouseFbsCreateDropOffTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список таймслотов для создания склада с отгрузкой drop-off + */ + warehouseFbsCreateDropOffTimeslotList(clientId: string, apiKey: string, v1WarehouseFbsCreateDropOffTimeslotListRequest?: V1WarehouseFbsCreateDropOffTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список таймслотов для создания склада с отгрузкой pick-up + */ + warehouseFbsCreatePickUpTimeslotListRaw(requestParameters: WarehouseFbsCreatePickUpTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список таймслотов для создания склада с отгрузкой pick-up + */ + warehouseFbsCreatePickUpTimeslotList(clientId: string, apiKey: string, v1WarehouseFbsCreatePickUpTimeslotListRequest?: V1WarehouseFbsCreatePickUpTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет отменить запланированный приезд курьера. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Отменить вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCancelRaw(requestParameters: WarehouseFbsPickUpCourierCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет отменить запланированный приезд курьера. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Отменить вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCancel(clientId: string, apiKey: string, v1WarehouseFbsPickUpCourierCancelRequest: V1WarehouseFbsPickUpCourierCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет запланировать приезд курьера для отгрузки ему отправлений. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Создать вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCreateRaw(requestParameters: WarehouseFbsPickUpCourierCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет запланировать приезд курьера для отгрузки ему отправлений. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Создать вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCreate(clientId: string, apiKey: string, v1WarehouseFbsPickUpCourierCreateRequest: V1WarehouseFbsPickUpCourierCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее об отгрузках курьеру в Базе знаний продавца](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить историю отгрузок курьерам + */ + warehouseFbsPickUpHistoryListRaw(requestParameters: WarehouseFbsPickUpHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее об отгрузках курьеру в Базе знаний продавца](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить историю отгрузок курьерам + */ + warehouseFbsPickUpHistoryList(clientId: string, apiKey: string, v1WarehouseFbsPickUpHistoryListRequest: V1WarehouseFbsPickUpHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Чтобы создать отгрузку, используйте метод [/v1/warehouse/fbs/pickup/courier/create](#operation/WarehouseFbsPickUpCourierCreate). [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить список складов для планирования отгрузок курьеру + */ + warehouseFbsPickUpPlanningListRaw(requestParameters: WarehouseFbsPickUpPlanningListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Чтобы создать отгрузку, используйте метод [/v1/warehouse/fbs/pickup/courier/create](#operation/WarehouseFbsPickUpCourierCreate). [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить список складов для планирования отгрузок курьеру + */ + warehouseFbsPickUpPlanningList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Проверить необходимость установки возвратной мили на склад + */ + warehouseFbsReturnMileCheckRaw(requestParameters: WarehouseFbsReturnMileCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Проверить необходимость установки возвратной мили на склад + */ + warehouseFbsReturnMileCheck(clientId: string, apiKey: string, v1WarehouseFbsReturnMileCheckRequest?: V1WarehouseFbsReturnMileCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список таймслотов для обновления склада с отгрузкой drop-off + */ + warehouseFbsUpdateDropOffTimeslotListRaw(requestParameters: WarehouseFbsUpdateDropOffTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список таймслотов для обновления склада с отгрузкой drop-off + */ + warehouseFbsUpdateDropOffTimeslotList(clientId: string, apiKey: string, v1WarehouseFbsUpdateDropOffTimeslotListRequest?: V1WarehouseFbsUpdateDropOffTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список таймслотов для обновления склада с отгрузкой pick-up + */ + warehouseFbsUpdatePickUpTimeslotListRaw(requestParameters: WarehouseFbsUpdatePickUpTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список таймслотов для обновления склада с отгрузкой pick-up + */ + warehouseFbsUpdatePickUpTimeslotList(clientId: string, apiKey: string, v1WarehouseFbsUpdatePickUpTimeslotListRequest?: V1WarehouseFbsUpdatePickUpTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FBSWarehouseSetup.js b/dist/esm/apis/FBSWarehouseSetup.js new file mode 100644 index 0000000..ddc4206 --- /dev/null +++ b/dist/esm/apis/FBSWarehouseSetup.js @@ -0,0 +1,671 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1CreateWarehouseFBSRequestToJSON, V1CreateWarehouseFBSResponseFromJSON, V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON, V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON, V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON, V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON, V1UpdateWarehouseFBSFirstMileRequestToJSON, V1UpdateWarehouseFBSFirstMileResponseFromJSON, V1UpdateWarehouseFBSRequestToJSON, V1UpdateWarehouseFBSResponseFromJSON, V1WarehouseFBSCreateReturnPointListRequestToJSON, V1WarehouseFBSCreateReturnPointListResponseFromJSON, V1WarehouseFBSReturnMileInfoRequestToJSON, V1WarehouseFBSReturnMileInfoResponseFromJSON, V1WarehouseFBSUpdateReturnPointListRequestToJSON, V1WarehouseFBSUpdateReturnPointListResponseFromJSON, V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON, V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON, V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON, V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON, V1WarehouseFbsPickUpCourierCancelRequestToJSON, V1WarehouseFbsPickUpCourierCreateRequestToJSON, V1WarehouseFbsPickUpHistoryListRequestToJSON, V1WarehouseFbsPickUpHistoryListResponseFromJSON, V1WarehouseFbsPickUpPlanningListResponseFromJSON, V1WarehouseFbsReturnMileCheckRequestToJSON, V1WarehouseFbsReturnMileCheckResponseFromJSON, V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON, V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON, V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON, V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class FBSWarehouseSetup extends runtime.BaseAPI { + /** + * Обновить склад + */ + updateWarehouseFBSRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling updateWarehouseFBS().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling updateWarehouseFBS().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1UpdateWarehouseFBSRequestToJSON(requestParameters['v1UpdateWarehouseFBSRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1UpdateWarehouseFBSResponseFromJSON(jsonValue)); + }); + } + /** + * Обновить склад + */ + updateWarehouseFBS(clientId, apiKey, v1UpdateWarehouseFBSRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateWarehouseFBSRaw({ clientId: clientId, apiKey: apiKey, v1UpdateWarehouseFBSRequest: v1UpdateWarehouseFBSRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Обновить первую милю + */ + updateWarehouseFBSFirstMileRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling updateWarehouseFBSFirstMile().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling updateWarehouseFBSFirstMile().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/first-mile/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1UpdateWarehouseFBSFirstMileRequestToJSON(requestParameters['v1UpdateWarehouseFBSFirstMileRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1UpdateWarehouseFBSFirstMileResponseFromJSON(jsonValue)); + }); + } + /** + * Обновить первую милю + */ + updateWarehouseFBSFirstMile(clientId, apiKey, v1UpdateWarehouseFBSFirstMileRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.updateWarehouseFBSFirstMileRaw({ clientId: clientId, apiKey: apiKey, v1UpdateWarehouseFBSFirstMileRequest: v1UpdateWarehouseFBSFirstMileRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если создаёте склад с доставкой в drop-off пункт, используйте метод [/v1/warehouse/fbs/create/drop-off/list](#operation/WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse), чтобы получить точки. + * Создать склад + */ + warehouseAPICreateWarehouseFBSRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/warehouse/fbs/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreateWarehouseFBSRequestToJSON(requestParameters['v1CreateWarehouseFBSRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CreateWarehouseFBSResponseFromJSON(jsonValue)); + }); + } + /** + * Если создаёте склад с доставкой в drop-off пункт, используйте метод [/v1/warehouse/fbs/create/drop-off/list](#operation/WarehouseAPI_ListDropOffPointsForCreateFBSWarehouse), чтобы получить точки. + * Создать склад + */ + warehouseAPICreateWarehouseFBS(v1CreateWarehouseFBSRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPICreateWarehouseFBSRaw({ v1CreateWarehouseFBSRequest: v1CreateWarehouseFBSRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список drop-off пунктов для создания склада + */ + warehouseAPIListDropOffPointsForCreateFBSWarehouseRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/warehouse/fbs/create/drop-off/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON(requestParameters['v1ListDropOffPointsForCreateFBSWarehouseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список drop-off пунктов для создания склада + */ + warehouseAPIListDropOffPointsForCreateFBSWarehouse(v1ListDropOffPointsForCreateFBSWarehouseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIListDropOffPointsForCreateFBSWarehouseRaw({ v1ListDropOffPointsForCreateFBSWarehouseRequest: v1ListDropOffPointsForCreateFBSWarehouseRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список drop-off пунктов для изменения информации склада + */ + warehouseAPIListDropOffPointsForUpdateFBSWarehouseRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/warehouse/fbs/update/drop-off/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON(requestParameters['v1ListDropOffPointsForUpdateFBSWarehouseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список drop-off пунктов для изменения информации склада + */ + warehouseAPIListDropOffPointsForUpdateFBSWarehouse(v1ListDropOffPointsForUpdateFBSWarehouseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIListDropOffPointsForUpdateFBSWarehouseRaw({ v1ListDropOffPointsForUpdateFBSWarehouseRequest: v1ListDropOffPointsForUpdateFBSWarehouseRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список пунктов возврата для создания склада + */ + warehouseFBSCreateReturnPointListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFBSCreateReturnPointList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFBSCreateReturnPointList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/create/return-point/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFBSCreateReturnPointListRequestToJSON(requestParameters['v1WarehouseFBSCreateReturnPointListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFBSCreateReturnPointListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список пунктов возврата для создания склада + */ + warehouseFBSCreateReturnPointList(clientId, apiKey, v1WarehouseFBSCreateReturnPointListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFBSCreateReturnPointListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFBSCreateReturnPointListRequest: v1WarehouseFBSCreateReturnPointListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о возвратной миле + */ + warehouseFBSReturnMileInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFBSReturnMileInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFBSReturnMileInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/return-mile/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFBSReturnMileInfoRequestToJSON(requestParameters['v1WarehouseFBSReturnMileInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFBSReturnMileInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Получить информацию о возвратной миле + */ + warehouseFBSReturnMileInfo(clientId, apiKey, v1WarehouseFBSReturnMileInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFBSReturnMileInfoRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFBSReturnMileInfoRequest: v1WarehouseFBSReturnMileInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список пунктов возврата для обновления склада + */ + warehouseFBSUpdateReturnPointListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFBSUpdateReturnPointList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFBSUpdateReturnPointList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/update/return-point/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFBSUpdateReturnPointListRequestToJSON(requestParameters['v1WarehouseFBSUpdateReturnPointListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFBSUpdateReturnPointListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список пунктов возврата для обновления склада + */ + warehouseFBSUpdateReturnPointList(clientId, apiKey, v1WarehouseFBSUpdateReturnPointListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFBSUpdateReturnPointListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFBSUpdateReturnPointListRequest: v1WarehouseFBSUpdateReturnPointListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список таймслотов для создания склада с отгрузкой drop-off + */ + warehouseFbsCreateDropOffTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsCreateDropOffTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsCreateDropOffTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/create/drop-off/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON(requestParameters['v1WarehouseFbsCreateDropOffTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список таймслотов для создания склада с отгрузкой drop-off + */ + warehouseFbsCreateDropOffTimeslotList(clientId, apiKey, v1WarehouseFbsCreateDropOffTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsCreateDropOffTimeslotListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsCreateDropOffTimeslotListRequest: v1WarehouseFbsCreateDropOffTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список таймслотов для создания склада с отгрузкой pick-up + */ + warehouseFbsCreatePickUpTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsCreatePickUpTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsCreatePickUpTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/create/pick-up/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON(requestParameters['v1WarehouseFbsCreatePickUpTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список таймслотов для создания склада с отгрузкой pick-up + */ + warehouseFbsCreatePickUpTimeslotList(clientId, apiKey, v1WarehouseFbsCreatePickUpTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsCreatePickUpTimeslotListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsCreatePickUpTimeslotListRequest: v1WarehouseFbsCreatePickUpTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод позволяет отменить запланированный приезд курьера. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Отменить вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsPickUpCourierCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsPickUpCourierCancel().'); + } + if (requestParameters['v1WarehouseFbsPickUpCourierCancelRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseFbsPickUpCourierCancelRequest', 'Required parameter "v1WarehouseFbsPickUpCourierCancelRequest" was null or undefined when calling warehouseFbsPickUpCourierCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/pickup/courier/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFbsPickUpCourierCancelRequestToJSON(requestParameters['v1WarehouseFbsPickUpCourierCancelRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод позволяет отменить запланированный приезд курьера. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Отменить вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCancel(clientId, apiKey, v1WarehouseFbsPickUpCourierCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.warehouseFbsPickUpCourierCancelRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsPickUpCourierCancelRequest: v1WarehouseFbsPickUpCourierCancelRequest }, initOverrides); + }); + } + /** + * Метод позволяет запланировать приезд курьера для отгрузки ему отправлений. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Создать вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsPickUpCourierCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsPickUpCourierCreate().'); + } + if (requestParameters['v1WarehouseFbsPickUpCourierCreateRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseFbsPickUpCourierCreateRequest', 'Required parameter "v1WarehouseFbsPickUpCourierCreateRequest" was null or undefined when calling warehouseFbsPickUpCourierCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/pickup/courier/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFbsPickUpCourierCreateRequestToJSON(requestParameters['v1WarehouseFbsPickUpCourierCreateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод позволяет запланировать приезд курьера для отгрузки ему отправлений. [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Создать вызов курьера на забор отгрузки pick-up + */ + warehouseFbsPickUpCourierCreate(clientId, apiKey, v1WarehouseFbsPickUpCourierCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.warehouseFbsPickUpCourierCreateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsPickUpCourierCreateRequest: v1WarehouseFbsPickUpCourierCreateRequest }, initOverrides); + }); + } + /** + * [Подробнее об отгрузках курьеру в Базе знаний продавца](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить историю отгрузок курьерам + */ + warehouseFbsPickUpHistoryListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsPickUpHistoryList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsPickUpHistoryList().'); + } + if (requestParameters['v1WarehouseFbsPickUpHistoryListRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseFbsPickUpHistoryListRequest', 'Required parameter "v1WarehouseFbsPickUpHistoryListRequest" was null or undefined when calling warehouseFbsPickUpHistoryList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/pickup/history/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFbsPickUpHistoryListRequestToJSON(requestParameters['v1WarehouseFbsPickUpHistoryListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFbsPickUpHistoryListResponseFromJSON(jsonValue)); + }); + } + /** + * [Подробнее об отгрузках курьеру в Базе знаний продавца](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить историю отгрузок курьерам + */ + warehouseFbsPickUpHistoryList(clientId, apiKey, v1WarehouseFbsPickUpHistoryListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsPickUpHistoryListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsPickUpHistoryListRequest: v1WarehouseFbsPickUpHistoryListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Чтобы создать отгрузку, используйте метод [/v1/warehouse/fbs/pickup/courier/create](#operation/WarehouseFbsPickUpCourierCreate). [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить список складов для планирования отгрузок курьеру + */ + warehouseFbsPickUpPlanningListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsPickUpPlanningList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsPickUpPlanningList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/pickup/planning/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFbsPickUpPlanningListResponseFromJSON(jsonValue)); + }); + } + /** + * Чтобы создать отгрузку, используйте метод [/v1/warehouse/fbs/pickup/courier/create](#operation/WarehouseFbsPickUpCourierCreate). [Подробнее об отгрузках курьеру на FBS в Базе знаний](https://seller-edu.ozon.ru/fbs/ozon-logistika/otgruzka-kyruery) + * Получить список складов для планирования отгрузок курьеру + */ + warehouseFbsPickUpPlanningList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsPickUpPlanningListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Проверить необходимость установки возвратной мили на склад + */ + warehouseFbsReturnMileCheckRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsReturnMileCheck().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsReturnMileCheck().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/return-mile/check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFbsReturnMileCheckRequestToJSON(requestParameters['v1WarehouseFbsReturnMileCheckRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFbsReturnMileCheckResponseFromJSON(jsonValue)); + }); + } + /** + * Проверить необходимость установки возвратной мили на склад + */ + warehouseFbsReturnMileCheck(clientId, apiKey, v1WarehouseFbsReturnMileCheckRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsReturnMileCheckRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsReturnMileCheckRequest: v1WarehouseFbsReturnMileCheckRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список таймслотов для обновления склада с отгрузкой drop-off + */ + warehouseFbsUpdateDropOffTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsUpdateDropOffTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsUpdateDropOffTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/update/drop-off/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON(requestParameters['v1WarehouseFbsUpdateDropOffTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список таймслотов для обновления склада с отгрузкой drop-off + */ + warehouseFbsUpdateDropOffTimeslotList(clientId, apiKey, v1WarehouseFbsUpdateDropOffTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsUpdateDropOffTimeslotListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsUpdateDropOffTimeslotListRequest: v1WarehouseFbsUpdateDropOffTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список таймслотов для обновления склада с отгрузкой pick-up + */ + warehouseFbsUpdatePickUpTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFbsUpdatePickUpTimeslotList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFbsUpdatePickUpTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbs/update/pick-up/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON(requestParameters['v1WarehouseFbsUpdatePickUpTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список таймслотов для обновления склада с отгрузкой pick-up + */ + warehouseFbsUpdatePickUpTimeslotList(clientId, apiKey, v1WarehouseFbsUpdatePickUpTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFbsUpdatePickUpTimeslotListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseFbsUpdatePickUpTimeslotListRequest: v1WarehouseFbsUpdatePickUpTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FBSrFBSMarks.d.ts b/dist/esm/apis/FBSrFBSMarks.d.ts new file mode 100644 index 0000000..521dee8 --- /dev/null +++ b/dist/esm/apis/FBSrFBSMarks.d.ts @@ -0,0 +1,123 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Fbsv4FbsPostingShipV4Request, Fbsv4FbsPostingShipV4Response, V1FbsPostingProductExemplarUpdateRequest, V4FbsPostingShipPackageV4Request, V4FbsPostingShipPackageV4Response, V5FbsPostingProductExemplarStatusV5Request, V5FbsPostingProductExemplarStatusV5Response, V5FbsPostingProductExemplarValidateV5Request, V5FbsPostingProductExemplarValidateV5Response, V6FbsPostingProductExemplarCreateOrGetV6Request, V6FbsPostingProductExemplarCreateOrGetV6Response, V6FbsPostingProductExemplarSetV6Request } from '../models/index'; +export interface PostingAPIFbsPostingProductExemplarCreateOrGetV6Request { + clientId: string; + apiKey: string; + v6FbsPostingProductExemplarCreateOrGetV6Request: V6FbsPostingProductExemplarCreateOrGetV6Request; +} +export interface PostingAPIFbsPostingProductExemplarSetV6Request { + clientId: string; + apiKey: string; + v6FbsPostingProductExemplarSetV6Request: V6FbsPostingProductExemplarSetV6Request; +} +export interface PostingAPIFbsPostingProductExemplarStatusV5Request { + clientId: string; + apiKey: string; + v5FbsPostingProductExemplarStatusV5Request: V5FbsPostingProductExemplarStatusV5Request; +} +export interface PostingAPIFbsPostingProductExemplarUpdateRequest { + clientId: string; + apiKey: string; + v1FbsPostingProductExemplarUpdateRequest: V1FbsPostingProductExemplarUpdateRequest; +} +export interface PostingAPIFbsPostingProductExemplarValidateV5Request { + clientId: string; + apiKey: string; + v5FbsPostingProductExemplarValidateV5Request: V5FbsPostingProductExemplarValidateV5Request; +} +export interface PostingAPIShipFbsPostingPackageRequest { + clientId: string; + apiKey: string; + v4FbsPostingShipPackageV4Request: V4FbsPostingShipPackageV4Request; +} +export interface PostingAPIShipFbsPostingV4Request { + clientId: string; + apiKey: string; + fbsv4FbsPostingShipV4Request: Fbsv4FbsPostingShipV4Request; +} +/** + * + */ +export declare class FBSrFBSMarks extends runtime.BaseAPI { + /** + * Метод для получения информации по экземплярам товаров из отправления, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Используйте метод для получения `exemplar_id`. + * Получить данные созданных экземпляров + */ + postingAPIFbsPostingProductExemplarCreateOrGetV6Raw(requestParameters: PostingAPIFbsPostingProductExemplarCreateOrGetV6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации по экземплярам товаров из отправления, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Используйте метод для получения `exemplar_id`. + * Получить данные созданных экземпляров + */ + postingAPIFbsPostingProductExemplarCreateOrGetV6(clientId: string, apiKey: string, v6FbsPostingProductExemplarCreateOrGetV6Request: V6FbsPostingProductExemplarCreateOrGetV6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Асинхронный метод: - для проверки наличия экземпляров в обороте в системе «Честный ЗНАК»; - для сохранения данных экземпляров. Чтобы получить результаты проверок, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). Для получения данных о созданных экземплярах, используйте метод [/v6/fbs/posting/product/exemplar/create-or-get](#operation/PostingAPI_FbsPostingProductExemplarCreateOrGetV6). Если у вас несколько одинаковых товаров в отправлении, укажите один `product_id` и массив `exemplars` для каждого товара из отправления. Всегда передавайте полный набор данных по экземплярам и продуктам. Например, в вашей системе 10 экземпляров. Вы передали их для проверки и сохранения. Потом добавили в своей системе ещё 60 экземпляров. При повторной передаче экземпляров для проверки и сохранения укажите все экземпляры: и старые, и только что добавленные. Код ответа 200 не гарантирует, что данные об экземплярах приняты. Он указывает, что создана задача для добавления информации. Чтобы проверить статус задачи, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). + * Проверить и сохранить данные экземпляров + */ + postingAPIFbsPostingProductExemplarSetV6Raw(requestParameters: PostingAPIFbsPostingProductExemplarSetV6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Асинхронный метод: - для проверки наличия экземпляров в обороте в системе «Честный ЗНАК»; - для сохранения данных экземпляров. Чтобы получить результаты проверок, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). Для получения данных о созданных экземплярах, используйте метод [/v6/fbs/posting/product/exemplar/create-or-get](#operation/PostingAPI_FbsPostingProductExemplarCreateOrGetV6). Если у вас несколько одинаковых товаров в отправлении, укажите один `product_id` и массив `exemplars` для каждого товара из отправления. Всегда передавайте полный набор данных по экземплярам и продуктам. Например, в вашей системе 10 экземпляров. Вы передали их для проверки и сохранения. Потом добавили в своей системе ещё 60 экземпляров. При повторной передаче экземпляров для проверки и сохранения укажите все экземпляры: и старые, и только что добавленные. Код ответа 200 не гарантирует, что данные об экземплярах приняты. Он указывает, что создана задача для добавления информации. Чтобы проверить статус задачи, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). + * Проверить и сохранить данные экземпляров + */ + postingAPIFbsPostingProductExemplarSetV6(clientId: string, apiKey: string, v6FbsPostingProductExemplarSetV6Request: V6FbsPostingProductExemplarSetV6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения статусов добавления экземпляров, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Также возвращает данные по этим экземплярам. + * Получить статус добавления экземпляров + */ + postingAPIFbsPostingProductExemplarStatusV5Raw(requestParameters: PostingAPIFbsPostingProductExemplarStatusV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения статусов добавления экземпляров, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Также возвращает данные по этим экземплярам. + * Получить статус добавления экземпляров + */ + postingAPIFbsPostingProductExemplarStatusV5(clientId: string, apiKey: string, v5FbsPostingProductExemplarStatusV5Request: V5FbsPostingProductExemplarStatusV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод после передачи информации по экземплярам методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6), чтобы сохранить обновлённые данные по экземплярам для отправлений в статусе «Ожидает отгрузки». + * Обновить данные экземпляров + */ + postingAPIFbsPostingProductExemplarUpdateRaw(requestParameters: PostingAPIFbsPostingProductExemplarUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод после передачи информации по экземплярам методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6), чтобы сохранить обновлённые данные по экземплярам для отправлений в статусе «Ожидает отгрузки». + * Обновить данные экземпляров + */ + postingAPIFbsPostingProductExemplarUpdate(clientId: string, apiKey: string, v1FbsPostingProductExemplarUpdateRequest: V1FbsPostingProductExemplarUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для проверки кодов на соответствие требованиям системы «Честный ЗНАК» по количеству и составу символов, а также других маркировок. Если у вас нет номера грузовой таможенной декларации (ГТД), вы можете его не указывать. + * Валидация кодов маркировки + */ + postingAPIFbsPostingProductExemplarValidateV5Raw(requestParameters: PostingAPIFbsPostingProductExemplarValidateV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для проверки кодов на соответствие требованиям системы «Честный ЗНАК» по количеству и составу символов, а также других маркировок. Если у вас нет номера грузовой таможенной декларации (ГТД), вы можете его не указывать. + * Валидация кодов маркировки + */ + postingAPIFbsPostingProductExemplarValidateV5(clientId: string, apiKey: string, v5FbsPostingProductExemplarValidateV5Request: V5FbsPostingProductExemplarValidateV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если в запросе передать часть товаров из отправления, метод разделит первичное отправление на две части. В первичном несобранном отправлении останется часть товаров, которую не передали в запросе. По умолчанию статус созданных отправлений `awaiting_packaging` — ожидает сборки. Статус изначального отправления изменится только после изменения статуса отправлений, на которые он разделился. + * Частичная сборка отправления (версия 4) + */ + postingAPIShipFbsPostingPackageRaw(requestParameters: PostingAPIShipFbsPostingPackageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если в запросе передать часть товаров из отправления, метод разделит первичное отправление на две части. В первичном несобранном отправлении останется часть товаров, которую не передали в запросе. По умолчанию статус созданных отправлений `awaiting_packaging` — ожидает сборки. Статус изначального отправления изменится только после изменения статуса отправлений, на которые он разделился. + * Частичная сборка отправления (версия 4) + */ + postingAPIShipFbsPostingPackage(clientId: string, apiKey: string, v4FbsPostingShipPackageV4Request: V4FbsPostingShipPackageV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Делит заказ на отправления и переводит его в статус `awaiting_deliver`. Каждый элемент в `packages` может содержать несколько элементов `products` или отправлений. Каждый элемент в `products` — это товар, включённый в данное отправление. Разделить заказ нужно, если: - товары не помещаются в одну упаковку, - товары нельзя сложить в одну упаковку. Чтобы разделить заказ, передайте в массиве `packages` несколько объектов. Пример запроса, когда заказ разделять не нужно: 2 товара будут в одном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 2 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Пример запроса, когда заказ нужно разделить: каждый товар будет в отдельном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] }, { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Чтобы внести информацию по экземплярам, используйте метод [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * Собрать заказ (версия 4) + */ + postingAPIShipFbsPostingV4Raw(requestParameters: PostingAPIShipFbsPostingV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Делит заказ на отправления и переводит его в статус `awaiting_deliver`. Каждый элемент в `packages` может содержать несколько элементов `products` или отправлений. Каждый элемент в `products` — это товар, включённый в данное отправление. Разделить заказ нужно, если: - товары не помещаются в одну упаковку, - товары нельзя сложить в одну упаковку. Чтобы разделить заказ, передайте в массиве `packages` несколько объектов. Пример запроса, когда заказ разделять не нужно: 2 товара будут в одном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 2 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Пример запроса, когда заказ нужно разделить: каждый товар будет в отдельном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] }, { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Чтобы внести информацию по экземплярам, используйте метод [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * Собрать заказ (версия 4) + */ + postingAPIShipFbsPostingV4(clientId: string, apiKey: string, fbsv4FbsPostingShipV4Request: Fbsv4FbsPostingShipV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FBSrFBSMarks.js b/dist/esm/apis/FBSrFBSMarks.js new file mode 100644 index 0000000..0bddfbb --- /dev/null +++ b/dist/esm/apis/FBSrFBSMarks.js @@ -0,0 +1,335 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { Fbsv4FbsPostingShipV4RequestToJSON, Fbsv4FbsPostingShipV4ResponseFromJSON, V1FbsPostingProductExemplarUpdateRequestToJSON, V4FbsPostingShipPackageV4RequestToJSON, V4FbsPostingShipPackageV4ResponseFromJSON, V5FbsPostingProductExemplarStatusV5RequestToJSON, V5FbsPostingProductExemplarStatusV5ResponseFromJSON, V5FbsPostingProductExemplarValidateV5RequestToJSON, V5FbsPostingProductExemplarValidateV5ResponseFromJSON, V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON, V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON, V6FbsPostingProductExemplarSetV6RequestToJSON, } from '../models/index'; +/** + * + */ +export class FBSrFBSMarks extends runtime.BaseAPI { + /** + * Метод для получения информации по экземплярам товаров из отправления, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Используйте метод для получения `exemplar_id`. + * Получить данные созданных экземпляров + */ + postingAPIFbsPostingProductExemplarCreateOrGetV6Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarCreateOrGetV6().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarCreateOrGetV6().'); + } + if (requestParameters['v6FbsPostingProductExemplarCreateOrGetV6Request'] == null) { + throw new runtime.RequiredError('v6FbsPostingProductExemplarCreateOrGetV6Request', 'Required parameter "v6FbsPostingProductExemplarCreateOrGetV6Request" was null or undefined when calling postingAPIFbsPostingProductExemplarCreateOrGetV6().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v6/fbs/posting/product/exemplar/create-or-get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON(requestParameters['v6FbsPostingProductExemplarCreateOrGetV6Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения информации по экземплярам товаров из отправления, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Используйте метод для получения `exemplar_id`. + * Получить данные созданных экземпляров + */ + postingAPIFbsPostingProductExemplarCreateOrGetV6(clientId, apiKey, v6FbsPostingProductExemplarCreateOrGetV6Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingProductExemplarCreateOrGetV6Raw({ clientId: clientId, apiKey: apiKey, v6FbsPostingProductExemplarCreateOrGetV6Request: v6FbsPostingProductExemplarCreateOrGetV6Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Асинхронный метод: - для проверки наличия экземпляров в обороте в системе «Честный ЗНАК»; - для сохранения данных экземпляров. Чтобы получить результаты проверок, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). Для получения данных о созданных экземплярах, используйте метод [/v6/fbs/posting/product/exemplar/create-or-get](#operation/PostingAPI_FbsPostingProductExemplarCreateOrGetV6). Если у вас несколько одинаковых товаров в отправлении, укажите один `product_id` и массив `exemplars` для каждого товара из отправления. Всегда передавайте полный набор данных по экземплярам и продуктам. Например, в вашей системе 10 экземпляров. Вы передали их для проверки и сохранения. Потом добавили в своей системе ещё 60 экземпляров. При повторной передаче экземпляров для проверки и сохранения укажите все экземпляры: и старые, и только что добавленные. Код ответа 200 не гарантирует, что данные об экземплярах приняты. Он указывает, что создана задача для добавления информации. Чтобы проверить статус задачи, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). + * Проверить и сохранить данные экземпляров + */ + postingAPIFbsPostingProductExemplarSetV6Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarSetV6().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarSetV6().'); + } + if (requestParameters['v6FbsPostingProductExemplarSetV6Request'] == null) { + throw new runtime.RequiredError('v6FbsPostingProductExemplarSetV6Request', 'Required parameter "v6FbsPostingProductExemplarSetV6Request" was null or undefined when calling postingAPIFbsPostingProductExemplarSetV6().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v6/fbs/posting/product/exemplar/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V6FbsPostingProductExemplarSetV6RequestToJSON(requestParameters['v6FbsPostingProductExemplarSetV6Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Асинхронный метод: - для проверки наличия экземпляров в обороте в системе «Честный ЗНАК»; - для сохранения данных экземпляров. Чтобы получить результаты проверок, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). Для получения данных о созданных экземплярах, используйте метод [/v6/fbs/posting/product/exemplar/create-or-get](#operation/PostingAPI_FbsPostingProductExemplarCreateOrGetV6). Если у вас несколько одинаковых товаров в отправлении, укажите один `product_id` и массив `exemplars` для каждого товара из отправления. Всегда передавайте полный набор данных по экземплярам и продуктам. Например, в вашей системе 10 экземпляров. Вы передали их для проверки и сохранения. Потом добавили в своей системе ещё 60 экземпляров. При повторной передаче экземпляров для проверки и сохранения укажите все экземпляры: и старые, и только что добавленные. Код ответа 200 не гарантирует, что данные об экземплярах приняты. Он указывает, что создана задача для добавления информации. Чтобы проверить статус задачи, используйте метод [/v5/fbs/posting/product/exemplar/status](#operation/PostingAPI_FbsPostingProductExemplarStatusV5). + * Проверить и сохранить данные экземпляров + */ + postingAPIFbsPostingProductExemplarSetV6(clientId, apiKey, v6FbsPostingProductExemplarSetV6Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.postingAPIFbsPostingProductExemplarSetV6Raw({ clientId: clientId, apiKey: apiKey, v6FbsPostingProductExemplarSetV6Request: v6FbsPostingProductExemplarSetV6Request }, initOverrides); + }); + } + /** + * Метод для получения статусов добавления экземпляров, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Также возвращает данные по этим экземплярам. + * Получить статус добавления экземпляров + */ + postingAPIFbsPostingProductExemplarStatusV5Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarStatusV5().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarStatusV5().'); + } + if (requestParameters['v5FbsPostingProductExemplarStatusV5Request'] == null) { + throw new runtime.RequiredError('v5FbsPostingProductExemplarStatusV5Request', 'Required parameter "v5FbsPostingProductExemplarStatusV5Request" was null or undefined when calling postingAPIFbsPostingProductExemplarStatusV5().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v5/fbs/posting/product/exemplar/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V5FbsPostingProductExemplarStatusV5RequestToJSON(requestParameters['v5FbsPostingProductExemplarStatusV5Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V5FbsPostingProductExemplarStatusV5ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения статусов добавления экземпляров, переданных в методе [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). Также возвращает данные по этим экземплярам. + * Получить статус добавления экземпляров + */ + postingAPIFbsPostingProductExemplarStatusV5(clientId, apiKey, v5FbsPostingProductExemplarStatusV5Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingProductExemplarStatusV5Raw({ clientId: clientId, apiKey: apiKey, v5FbsPostingProductExemplarStatusV5Request: v5FbsPostingProductExemplarStatusV5Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод после передачи информации по экземплярам методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6), чтобы сохранить обновлённые данные по экземплярам для отправлений в статусе «Ожидает отгрузки». + * Обновить данные экземпляров + */ + postingAPIFbsPostingProductExemplarUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarUpdate().'); + } + if (requestParameters['v1FbsPostingProductExemplarUpdateRequest'] == null) { + throw new runtime.RequiredError('v1FbsPostingProductExemplarUpdateRequest', 'Required parameter "v1FbsPostingProductExemplarUpdateRequest" was null or undefined when calling postingAPIFbsPostingProductExemplarUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbs/posting/product/exemplar/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbsPostingProductExemplarUpdateRequestToJSON(requestParameters['v1FbsPostingProductExemplarUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Используйте метод после передачи информации по экземплярам методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6), чтобы сохранить обновлённые данные по экземплярам для отправлений в статусе «Ожидает отгрузки». + * Обновить данные экземпляров + */ + postingAPIFbsPostingProductExemplarUpdate(clientId, apiKey, v1FbsPostingProductExemplarUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.postingAPIFbsPostingProductExemplarUpdateRaw({ clientId: clientId, apiKey: apiKey, v1FbsPostingProductExemplarUpdateRequest: v1FbsPostingProductExemplarUpdateRequest }, initOverrides); + }); + } + /** + * Метод для проверки кодов на соответствие требованиям системы «Честный ЗНАК» по количеству и составу символов, а также других маркировок. Если у вас нет номера грузовой таможенной декларации (ГТД), вы можете его не указывать. + * Валидация кодов маркировки + */ + postingAPIFbsPostingProductExemplarValidateV5Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIFbsPostingProductExemplarValidateV5().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIFbsPostingProductExemplarValidateV5().'); + } + if (requestParameters['v5FbsPostingProductExemplarValidateV5Request'] == null) { + throw new runtime.RequiredError('v5FbsPostingProductExemplarValidateV5Request', 'Required parameter "v5FbsPostingProductExemplarValidateV5Request" was null or undefined when calling postingAPIFbsPostingProductExemplarValidateV5().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v5/fbs/posting/product/exemplar/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V5FbsPostingProductExemplarValidateV5RequestToJSON(requestParameters['v5FbsPostingProductExemplarValidateV5Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V5FbsPostingProductExemplarValidateV5ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для проверки кодов на соответствие требованиям системы «Честный ЗНАК» по количеству и составу символов, а также других маркировок. Если у вас нет номера грузовой таможенной декларации (ГТД), вы можете его не указывать. + * Валидация кодов маркировки + */ + postingAPIFbsPostingProductExemplarValidateV5(clientId, apiKey, v5FbsPostingProductExemplarValidateV5Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIFbsPostingProductExemplarValidateV5Raw({ clientId: clientId, apiKey: apiKey, v5FbsPostingProductExemplarValidateV5Request: v5FbsPostingProductExemplarValidateV5Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Если в запросе передать часть товаров из отправления, метод разделит первичное отправление на две части. В первичном несобранном отправлении останется часть товаров, которую не передали в запросе. По умолчанию статус созданных отправлений `awaiting_packaging` — ожидает сборки. Статус изначального отправления изменится только после изменения статуса отправлений, на которые он разделился. + * Частичная сборка отправления (версия 4) + */ + postingAPIShipFbsPostingPackageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIShipFbsPostingPackage().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIShipFbsPostingPackage().'); + } + if (requestParameters['v4FbsPostingShipPackageV4Request'] == null) { + throw new runtime.RequiredError('v4FbsPostingShipPackageV4Request', 'Required parameter "v4FbsPostingShipPackageV4Request" was null or undefined when calling postingAPIShipFbsPostingPackage().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/posting/fbs/ship/package`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V4FbsPostingShipPackageV4RequestToJSON(requestParameters['v4FbsPostingShipPackageV4Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V4FbsPostingShipPackageV4ResponseFromJSON(jsonValue)); + }); + } + /** + * Если в запросе передать часть товаров из отправления, метод разделит первичное отправление на две части. В первичном несобранном отправлении останется часть товаров, которую не передали в запросе. По умолчанию статус созданных отправлений `awaiting_packaging` — ожидает сборки. Статус изначального отправления изменится только после изменения статуса отправлений, на которые он разделился. + * Частичная сборка отправления (версия 4) + */ + postingAPIShipFbsPostingPackage(clientId, apiKey, v4FbsPostingShipPackageV4Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIShipFbsPostingPackageRaw({ clientId: clientId, apiKey: apiKey, v4FbsPostingShipPackageV4Request: v4FbsPostingShipPackageV4Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Делит заказ на отправления и переводит его в статус `awaiting_deliver`. Каждый элемент в `packages` может содержать несколько элементов `products` или отправлений. Каждый элемент в `products` — это товар, включённый в данное отправление. Разделить заказ нужно, если: - товары не помещаются в одну упаковку, - товары нельзя сложить в одну упаковку. Чтобы разделить заказ, передайте в массиве `packages` несколько объектов. Пример запроса, когда заказ разделять не нужно: 2 товара будут в одном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 2 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Пример запроса, когда заказ нужно разделить: каждый товар будет в отдельном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] }, { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Чтобы внести информацию по экземплярам, используйте метод [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * Собрать заказ (версия 4) + */ + postingAPIShipFbsPostingV4Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling postingAPIShipFbsPostingV4().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling postingAPIShipFbsPostingV4().'); + } + if (requestParameters['fbsv4FbsPostingShipV4Request'] == null) { + throw new runtime.RequiredError('fbsv4FbsPostingShipV4Request', 'Required parameter "fbsv4FbsPostingShipV4Request" was null or undefined when calling postingAPIShipFbsPostingV4().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/posting/fbs/ship`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Fbsv4FbsPostingShipV4RequestToJSON(requestParameters['fbsv4FbsPostingShipV4Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Fbsv4FbsPostingShipV4ResponseFromJSON(jsonValue)); + }); + } + /** + * Делит заказ на отправления и переводит его в статус `awaiting_deliver`. Каждый элемент в `packages` может содержать несколько элементов `products` или отправлений. Каждый элемент в `products` — это товар, включённый в данное отправление. Разделить заказ нужно, если: - товары не помещаются в одну упаковку, - товары нельзя сложить в одну упаковку. Чтобы разделить заказ, передайте в массиве `packages` несколько объектов. Пример запроса, когда заказ разделять не нужно: 2 товара будут в одном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 2 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Пример запроса, когда заказ нужно разделить: каждый товар будет в отдельном отправлении. ``` { \"packages\": [ { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] }, { \"products\": [ { \"product_id\": 185479045, \"quantity\": 1 } ] } ], \"posting_number\": \"89491381-0072-1\" } ``` Чтобы внести информацию по экземплярам, используйте метод [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * Собрать заказ (версия 4) + */ + postingAPIShipFbsPostingV4(clientId, apiKey, fbsv4FbsPostingShipV4Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIShipFbsPostingV4Raw({ clientId: clientId, apiKey: apiKey, fbsv4FbsPostingShipV4Request: fbsv4FbsPostingShipV4Request }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FboPostingAPI.d.ts b/dist/esm/apis/FboPostingAPI.d.ts new file mode 100644 index 0000000..f9d1df5 --- /dev/null +++ b/dist/esm/apis/FboPostingAPI.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1PostingCancelRequest, V1PostingCancelResponse, V1PostingCancelStatusRequest, V1PostingCancelStatusResponse, V1PostingMarksRequest, V1PostingMarksResponse } from '../models/index'; +export interface PostingAPIPostingCancelRequest { + v1PostingCancelRequest: V1PostingCancelRequest; +} +export interface PostingAPIPostingCancelStatusRequest { + v1PostingCancelStatusRequest: V1PostingCancelStatusRequest; +} +export interface PostingAPIPostingMarksRequest { + v1PostingMarksRequest: V1PostingMarksRequest; +} +/** + * + */ +export declare class FboPostingAPI extends runtime.BaseAPI { + /** + * Отменяет отправление из заказа. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-posting](#operation/CancelReasonAPI_CancelReasonListByPosting). + * Отменить отправление из заказа + */ + postingAPIPostingCancelRaw(requestParameters: PostingAPIPostingCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отменяет отправление из заказа. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-posting](#operation/CancelReasonAPI_CancelReasonListByPosting). + * Отменить отправление из заказа + */ + postingAPIPostingCancel(v1PostingCancelRequest: V1PostingCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Проверить статус отмены отправления + */ + postingAPIPostingCancelStatusRaw(requestParameters: PostingAPIPostingCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Проверить статус отмены отправления + */ + postingAPIPostingCancelStatus(v1PostingCancelStatusRequest: V1PostingCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает статусы выдачи экземпляров и коды маркировки «Честный ЗНАК» для каждого отправления. Укажите в чеке и выведите из оборота маркировки экземпляров из параметра `issued_exemplars` в ответе. + * Получить маркировки экземпляров из отправления + */ + postingAPIPostingMarksRaw(requestParameters: PostingAPIPostingMarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает статусы выдачи экземпляров и коды маркировки «Честный ЗНАК» для каждого отправления. Укажите в чеке и выведите из оборота маркировки экземпляров из параметра `issued_exemplars` в ответе. + * Получить маркировки экземпляров из отправления + */ + postingAPIPostingMarks(v1PostingMarksRequest: V1PostingMarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FboPostingAPI.js b/dist/esm/apis/FboPostingAPI.js new file mode 100644 index 0000000..5ca1e01 --- /dev/null +++ b/dist/esm/apis/FboPostingAPI.js @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1PostingCancelRequestToJSON, V1PostingCancelResponseFromJSON, V1PostingCancelStatusRequestToJSON, V1PostingCancelStatusResponseFromJSON, V1PostingMarksRequestToJSON, V1PostingMarksResponseFromJSON, } from '../models/index'; +/** + * + */ +export class FboPostingAPI extends runtime.BaseAPI { + /** + * Отменяет отправление из заказа. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-posting](#operation/CancelReasonAPI_CancelReasonListByPosting). + * Отменить отправление из заказа + */ + postingAPIPostingCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingCancelRequest'] == null) { + throw new runtime.RequiredError('v1PostingCancelRequest', 'Required parameter "v1PostingCancelRequest" was null or undefined when calling postingAPIPostingCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingCancelRequestToJSON(requestParameters['v1PostingCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Отменяет отправление из заказа. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-posting](#operation/CancelReasonAPI_CancelReasonListByPosting). + * Отменить отправление из заказа + */ + postingAPIPostingCancel(v1PostingCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingCancelRaw({ v1PostingCancelRequest: v1PostingCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Проверить статус отмены отправления + */ + postingAPIPostingCancelStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingCancelStatusRequest'] == null) { + throw new runtime.RequiredError('v1PostingCancelStatusRequest', 'Required parameter "v1PostingCancelStatusRequest" was null or undefined when calling postingAPIPostingCancelStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/cancel/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingCancelStatusRequestToJSON(requestParameters['v1PostingCancelStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingCancelStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Проверить статус отмены отправления + */ + postingAPIPostingCancelStatus(v1PostingCancelStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingCancelStatusRaw({ v1PostingCancelStatusRequest: v1PostingCancelStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает статусы выдачи экземпляров и коды маркировки «Честный ЗНАК» для каждого отправления. Укажите в чеке и выведите из оборота маркировки экземпляров из параметра `issued_exemplars` в ответе. + * Получить маркировки экземпляров из отправления + */ + postingAPIPostingMarksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1PostingMarksRequest'] == null) { + throw new runtime.RequiredError('v1PostingMarksRequest', 'Required parameter "v1PostingMarksRequest" was null or undefined when calling postingAPIPostingMarks().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/posting/marks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PostingMarksRequestToJSON(requestParameters['v1PostingMarksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PostingMarksResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает статусы выдачи экземпляров и коды маркировки «Честный ЗНАК» для каждого отправления. Укажите в чеке и выведите из оборота маркировки экземпляров из параметра `issued_exemplars` в ответе. + * Получить маркировки экземпляров из отправления + */ + postingAPIPostingMarks(v1PostingMarksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.postingAPIPostingMarksRaw({ v1PostingMarksRequest: v1PostingMarksRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FboSupplyRequest.d.ts b/dist/esm/apis/FboSupplyRequest.d.ts new file mode 100644 index 0000000..76c8b29 --- /dev/null +++ b/dist/esm/apis/FboSupplyRequest.d.ts @@ -0,0 +1,360 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1CargoesCreateRequest, V1CargoesCreateResponse, V1CargoesDeleteRequest, V1CargoesDeleteResponse, V1CargoesDeleteStatusRequest, V1CargoesDeleteStatusResponse, V1CargoesGetRequest, V1CargoesGetResponse, V1CargoesLabelCreateRequest, V1CargoesLabelCreateResponse, V1CargoesLabelGetRequest, V1CargoesLabelGetResponse, V1CargoesRulesGetRequest, V1CargoesRulesGetResponse, V1DraftClusterListRequest, V1DraftClusterListResponse, V1DraftCreateCommonResponse, V1DraftCrossdockCreateRequest, V1DraftDirectCreateRequest, V1DraftGetWarehouseFboListRequest, V1DraftGetWarehouseFboListResponse, V1DraftMultiClusterCreateRequest, V1SupplyOrderCancelRequest, V1SupplyOrderCancelResponse, V1SupplyOrderCancelStatusRequest, V1SupplyOrderCancelStatusResponse, V1SupplyOrderContentUpdateRequest, V1SupplyOrderContentUpdateResponse, V1SupplyOrderContentUpdateStatusRequest, V1SupplyOrderContentUpdateStatusResponse, V1SupplyOrderContentUpdateValidationRequest, V1SupplyOrderContentUpdateValidationResponse, V1WarehouseFboSellerListResponse, V2CargoesCreateInfoV2Request, V2CargoesCreateInfoV2Response, V2DraftClusterListResponse, V2DraftCreateInfoRequest, V2DraftCreateInfoResponse, V2DraftSupplyCreateRequest, V2DraftSupplyCreateResponse, V2DraftSupplyCreateStatusRequest, V2DraftSupplyCreateStatusResponse, V2DraftTimeslotInfoRequest, V2DraftTimeslotInfoResponse } from '../models/index'; +export interface CargoesAPICargoesCreateRequest { + clientId: string; + apiKey: string; + v1CargoesCreateRequest: V1CargoesCreateRequest; +} +export interface CargoesAPICargoesDeleteRequest { + v1CargoesDeleteRequest: V1CargoesDeleteRequest; +} +export interface CargoesAPICargoesDeleteStatusRequest { + v1CargoesDeleteStatusRequest: V1CargoesDeleteStatusRequest; +} +export interface CargoesAPICargoesLabelCreateRequest { + clientId: string; + apiKey: string; + v1CargoesLabelCreateRequest: V1CargoesLabelCreateRequest; +} +export interface CargoesAPICargoesLabelFileRequest { + clientId: string; + apiKey: string; +} +export interface CargoesAPICargoesLabelGetRequest { + clientId: string; + apiKey: string; + v1CargoesLabelGetRequest: V1CargoesLabelGetRequest; +} +export interface CargoesAPICargoesRulesGetRequest { + v1CargoesRulesGetRequest: V1CargoesRulesGetRequest; +} +export interface CargoesCreateInfoV2Request { + clientId: string; + apiKey: string; + v2CargoesCreateInfoV2Request?: V2CargoesCreateInfoV2Request; +} +export interface CargoesGetRequest { + clientId: string; + apiKey: string; + v1CargoesGetRequest?: V1CargoesGetRequest; +} +export interface DraftClusterListRequest { + clientId: string; + apiKey: string; +} +export interface DraftCreateInfoRequest { + clientId: string; + apiKey: string; + v2DraftCreateInfoRequest?: V2DraftCreateInfoRequest; +} +export interface DraftCrossdockCreateRequest { + clientId: string; + apiKey: string; + v1DraftCrossdockCreateRequest?: V1DraftCrossdockCreateRequest; +} +export interface DraftDirectCreateRequest { + clientId: string; + apiKey: string; + v1DraftDirectCreateRequest?: V1DraftDirectCreateRequest; +} +export interface DraftMultiClusterCreateRequest { + clientId: string; + apiKey: string; + v1DraftMultiClusterCreateRequest?: V1DraftMultiClusterCreateRequest; +} +export interface DraftSupplyCreateRequest { + clientId: string; + apiKey: string; + v2DraftSupplyCreateRequest?: V2DraftSupplyCreateRequest; +} +export interface DraftSupplyCreateStatusRequest { + clientId: string; + apiKey: string; + v2DraftSupplyCreateStatusRequest?: V2DraftSupplyCreateStatusRequest; +} +export interface DraftTimeslotInfoRequest { + clientId: string; + apiKey: string; + v2DraftTimeslotInfoRequest?: V2DraftTimeslotInfoRequest; +} +export interface SupplyDraftAPIDraftClusterListRequest { + v1DraftClusterListRequest: V1DraftClusterListRequest; +} +export interface SupplyDraftAPIDraftGetWarehouseFboListRequest { + v1DraftGetWarehouseFboListRequest: V1DraftGetWarehouseFboListRequest; +} +export interface SupplyOrderAPISupplyOrderCancelRequest { + clientId: string; + apiKey: string; + v1SupplyOrderCancelRequest: V1SupplyOrderCancelRequest; +} +export interface SupplyOrderAPISupplyOrderCancelStatusRequest { + clientId: string; + apiKey: string; + v1SupplyOrderCancelStatusRequest: V1SupplyOrderCancelStatusRequest; +} +export interface SupplyOrderAPISupplyOrderContentUpdateRequest { + v1SupplyOrderContentUpdateRequest: V1SupplyOrderContentUpdateRequest; +} +export interface SupplyOrderAPISupplyOrderContentUpdateStatusRequest { + v1SupplyOrderContentUpdateStatusRequest: V1SupplyOrderContentUpdateStatusRequest; +} +export interface SupplyOrderContentUpdateValidationRequest { + v1SupplyOrderContentUpdateValidationRequest?: V1SupplyOrderContentUpdateValidationRequest; +} +export interface WarehouseFboSellerListRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class FboSupplyRequest extends runtime.BaseAPI { + /** + * Используйте метод, чтобы передать грузоместа и товарный состав в заявку на поставку. + * Установка грузомест + */ + cargoesAPICargoesCreateRaw(requestParameters: CargoesAPICargoesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы передать грузоместа и товарный состав в заявку на поставку. + * Установка грузомест + */ + cargoesAPICargoesCreate(clientId: string, apiKey: string, v1CargoesCreateRequest: V1CargoesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для удаления грузомест в заявке на поставку. Чтобы проверить статус удаления, используйте метод [/v1/cargoes/delete/status](#operation/CargoesAPI_CargoesDeleteStatus). + * Удалить грузоместо в заявке на поставку + */ + cargoesAPICargoesDeleteRaw(requestParameters: CargoesAPICargoesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для удаления грузомест в заявке на поставку. Чтобы проверить статус удаления, используйте метод [/v1/cargoes/delete/status](#operation/CargoesAPI_CargoesDeleteStatus). + * Удалить грузоместо в заявке на поставку + */ + cargoesAPICargoesDelete(v1CargoesDeleteRequest: V1CargoesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения статуса удаления грузомест в заявке на поставку. + * Информация о статусе удаления грузоместа + */ + cargoesAPICargoesDeleteStatusRaw(requestParameters: CargoesAPICargoesDeleteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения статуса удаления грузомест в заявке на поставку. + * Информация о статусе удаления грузоместа + */ + cargoesAPICargoesDeleteStatus(v1CargoesDeleteStatusRequest: V1CargoesDeleteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы сгенерировать этикетки для грузомест из заявки на поставку. + * Сгенерировать этикетки для грузомест + */ + cargoesAPICargoesLabelCreateRaw(requestParameters: CargoesAPICargoesLabelCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы сгенерировать этикетки для грузомест из заявки на поставку. + * Сгенерировать этикетки для грузомест + */ + cargoesAPICargoesLabelCreate(clientId: string, apiKey: string, v1CargoesLabelCreateRequest: V1CargoesLabelCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Получить PDF с этикетками грузовых мест + */ + cargoesAPICargoesLabelFileRaw(requestParameters: CargoesAPICargoesLabelFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Получить PDF с этикетками грузовых мест + */ + cargoesAPICargoesLabelFile(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает статус формирования этикеток и ссылку на PDF-файл с ними. + * Получить идентификатор этикетки для грузомест + */ + cargoesAPICargoesLabelGetRaw(requestParameters: CargoesAPICargoesLabelGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает статус формирования этикеток и ссылку на PDF-файл с ними. + * Получить идентификатор этикетки для грузомест + */ + cargoesAPICargoesLabelGet(clientId: string, apiKey: string, v1CargoesLabelGetRequest: V1CargoesLabelGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения чек-листа с правилами по установке грузомест. + * Чек-лист по установке грузомест FBO + */ + cargoesAPICargoesRulesGetRaw(requestParameters: CargoesAPICargoesRulesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения чек-листа с правилами по установке грузомест. + * Чек-лист по установке грузомест FBO + */ + cargoesAPICargoesRulesGet(v1CargoesRulesGetRequest: V1CargoesRulesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1721-Novyi-metod-dlia-peredachi-offer-id-pri-ustanovke-GM) в сообществе разработчиков Ozon for dev. + * Получить информацию по установке грузомест + */ + cargoesCreateInfoV2Raw(requestParameters: CargoesCreateInfoV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1721-Novyi-metod-dlia-peredachi-offer-id-pri-ustanovke-GM) в сообществе разработчиков Ozon for dev. + * Получить информацию по установке грузомест + */ + cargoesCreateInfoV2(clientId: string, apiKey: string, v2CargoesCreateInfoV2Request?: V2CargoesCreateInfoV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о грузоместах + */ + cargoesGetRaw(requestParameters: CargoesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о грузоместах + */ + cargoesGet(clientId: string, apiKey: string, v1CargoesGetRequest?: V1CargoesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о макролокальных кластерах + */ + draftClusterListRaw(requestParameters: DraftClusterListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о макролокальных кластерах + */ + draftClusterList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать черновики заявки на поставку 2 раза в минуту и 50 раз в час. Если превысите лимит, вернётся ошибка 429. + * Получить информацию о черновике заявки на поставку + */ + draftCreateInfoRaw(requestParameters: DraftCreateInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать черновики заявки на поставку 2 раза в минуту и 50 раз в час. Если превысите лимит, вернётся ошибка 429. + * Получить информацию о черновике заявки на поставку + */ + draftCreateInfo(clientId: string, apiKey: string, v2DraftCreateInfoRequest?: V2DraftCreateInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку кросс-докингом + */ + draftCrossdockCreateRaw(requestParameters: DraftCrossdockCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку кросс-докингом + */ + draftCrossdockCreate(clientId: string, apiKey: string, v1DraftCrossdockCreateRequest?: V1DraftCrossdockCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на прямую поставку + */ + draftDirectCreateRaw(requestParameters: DraftDirectCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на прямую поставку + */ + draftDirectCreate(clientId: string, apiKey: string, v1DraftDirectCreateRequest?: V1DraftDirectCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку для нескольких кластеров + */ + draftMultiClusterCreateRaw(requestParameters: DraftMultiClusterCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку для нескольких кластеров + */ + draftMultiClusterCreate(clientId: string, apiKey: string, v1DraftMultiClusterCreateRequest?: V1DraftMultiClusterCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете создавать заявку на поставку по черновику: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать заявку на поставку по черновику + */ + draftSupplyCreateRaw(requestParameters: DraftSupplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете создавать заявку на поставку по черновику: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать заявку на поставку по черновику + */ + draftSupplyCreate(clientId: string, apiKey: string, v2DraftSupplyCreateRequest?: V2DraftSupplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о создании заявки на поставку + */ + draftSupplyCreateStatusRaw(requestParameters: DraftSupplyCreateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о создании заявки на поставку + */ + draftSupplyCreateStatus(clientId: string, apiKey: string, v2DraftSupplyCreateStatusRequest?: V2DraftSupplyCreateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список доступных таймслотов + */ + draftTimeslotInfoRaw(requestParameters: DraftTimeslotInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список доступных таймслотов + */ + draftTimeslotInfo(clientId: string, apiKey: string, v2DraftTimeslotInfoRequest?: V2DraftTimeslotInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Информация о кластерах и их складах + */ + supplyDraftAPIDraftClusterListRaw(requestParameters: SupplyDraftAPIDraftClusterListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Информация о кластерах и их складах + */ + supplyDraftAPIDraftClusterList(v1DraftClusterListRequest: V1DraftClusterListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы найти точки отгрузки для кросс-докинга и прямых поставок. Вы можете посмотреть адреса всех точек на карте и в виде таблицы в [Базе знаний](https://seller-edu.ozon.ru/fbo/warehouses/adresa-skladov-fbo). + * Поиск точек для отгрузки поставки + */ + supplyDraftAPIDraftGetWarehouseFboListRaw(requestParameters: SupplyDraftAPIDraftGetWarehouseFboListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы найти точки отгрузки для кросс-докинга и прямых поставок. Вы можете посмотреть адреса всех точек на карте и в виде таблицы в [Базе знаний](https://seller-edu.ozon.ru/fbo/warehouses/adresa-skladov-fbo). + * Поиск точек для отгрузки поставки + */ + supplyDraftAPIDraftGetWarehouseFboList(v1DraftGetWarehouseFboListRequest: V1DraftGetWarehouseFboListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отменить заявку на поставку + */ + supplyOrderAPISupplyOrderCancelRaw(requestParameters: SupplyOrderAPISupplyOrderCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отменить заявку на поставку + */ + supplyOrderAPISupplyOrderCancel(clientId: string, apiKey: string, v1SupplyOrderCancelRequest: V1SupplyOrderCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить статус отмены заявки на поставку + */ + supplyOrderAPISupplyOrderCancelStatusRaw(requestParameters: SupplyOrderAPISupplyOrderCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус отмены заявки на поставку + */ + supplyOrderAPISupplyOrderCancelStatus(clientId: string, apiKey: string, v1SupplyOrderCancelStatusRequest: V1SupplyOrderCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для редактирования товарного состава в заявке на поставку. Чтобы проверить статус редактирования, используйте метод [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus). + * Редактирование товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateRaw(requestParameters: SupplyOrderAPISupplyOrderContentUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для редактирования товарного состава в заявке на поставку. Чтобы проверить статус редактирования, используйте метод [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus). + * Редактирование товарного состава + */ + supplyOrderAPISupplyOrderContentUpdate(v1SupplyOrderContentUpdateRequest: V1SupplyOrderContentUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения статуса редактирования товарного состава. + * Информация о статусе редактирования товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateStatusRaw(requestParameters: SupplyOrderAPISupplyOrderContentUpdateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения статуса редактирования товарного состава. + * Информация о статусе редактирования товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateStatus(v1SupplyOrderContentUpdateStatusRequest: V1SupplyOrderContentUpdateStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте этот метод, если в [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus) вы получили ошибку `SUPPLY_CONTENT_NOT_VALID`. + * Проверить новый товарный состав + */ + supplyOrderContentUpdateValidationRaw(requestParameters: SupplyOrderContentUpdateValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте этот метод, если в [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus) вы получили ошибку `SUPPLY_CONTENT_NOT_VALID`. + * Проверить новый товарный состав + */ + supplyOrderContentUpdateValidation(v1SupplyOrderContentUpdateValidationRequest?: V1SupplyOrderContentUpdateValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список складов продавца + */ + warehouseFboSellerListRaw(requestParameters: WarehouseFboSellerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список складов продавца + */ + warehouseFboSellerList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FboSupplyRequest.js b/dist/esm/apis/FboSupplyRequest.js new file mode 100644 index 0000000..07ce2ea --- /dev/null +++ b/dist/esm/apis/FboSupplyRequest.js @@ -0,0 +1,973 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1CargoesCreateRequestToJSON, V1CargoesCreateResponseFromJSON, V1CargoesDeleteRequestToJSON, V1CargoesDeleteResponseFromJSON, V1CargoesDeleteStatusRequestToJSON, V1CargoesDeleteStatusResponseFromJSON, V1CargoesGetRequestToJSON, V1CargoesGetResponseFromJSON, V1CargoesLabelCreateRequestToJSON, V1CargoesLabelCreateResponseFromJSON, V1CargoesLabelGetRequestToJSON, V1CargoesLabelGetResponseFromJSON, V1CargoesRulesGetRequestToJSON, V1CargoesRulesGetResponseFromJSON, V1DraftClusterListRequestToJSON, V1DraftClusterListResponseFromJSON, V1DraftCreateCommonResponseFromJSON, V1DraftCrossdockCreateRequestToJSON, V1DraftDirectCreateRequestToJSON, V1DraftGetWarehouseFboListRequestToJSON, V1DraftGetWarehouseFboListResponseFromJSON, V1DraftMultiClusterCreateRequestToJSON, V1SupplyOrderCancelRequestToJSON, V1SupplyOrderCancelResponseFromJSON, V1SupplyOrderCancelStatusRequestToJSON, V1SupplyOrderCancelStatusResponseFromJSON, V1SupplyOrderContentUpdateRequestToJSON, V1SupplyOrderContentUpdateResponseFromJSON, V1SupplyOrderContentUpdateStatusRequestToJSON, V1SupplyOrderContentUpdateStatusResponseFromJSON, V1SupplyOrderContentUpdateValidationRequestToJSON, V1SupplyOrderContentUpdateValidationResponseFromJSON, V1WarehouseFboSellerListResponseFromJSON, V2CargoesCreateInfoV2RequestToJSON, V2CargoesCreateInfoV2ResponseFromJSON, V2DraftClusterListResponseFromJSON, V2DraftCreateInfoRequestToJSON, V2DraftCreateInfoResponseFromJSON, V2DraftSupplyCreateRequestToJSON, V2DraftSupplyCreateResponseFromJSON, V2DraftSupplyCreateStatusRequestToJSON, V2DraftSupplyCreateStatusResponseFromJSON, V2DraftTimeslotInfoRequestToJSON, V2DraftTimeslotInfoResponseFromJSON, } from '../models/index'; +/** + * + */ +export class FboSupplyRequest extends runtime.BaseAPI { + /** + * Используйте метод, чтобы передать грузоместа и товарный состав в заявку на поставку. + * Установка грузомест + */ + cargoesAPICargoesCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesAPICargoesCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesAPICargoesCreate().'); + } + if (requestParameters['v1CargoesCreateRequest'] == null) { + throw new runtime.RequiredError('v1CargoesCreateRequest', 'Required parameter "v1CargoesCreateRequest" was null or undefined when calling cargoesAPICargoesCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CargoesCreateRequestToJSON(requestParameters['v1CargoesCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CargoesCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы передать грузоместа и товарный состав в заявку на поставку. + * Установка грузомест + */ + cargoesAPICargoesCreate(clientId, apiKey, v1CargoesCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesCreateRaw({ clientId: clientId, apiKey: apiKey, v1CargoesCreateRequest: v1CargoesCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для удаления грузомест в заявке на поставку. Чтобы проверить статус удаления, используйте метод [/v1/cargoes/delete/status](#operation/CargoesAPI_CargoesDeleteStatus). + * Удалить грузоместо в заявке на поставку + */ + cargoesAPICargoesDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CargoesDeleteRequest'] == null) { + throw new runtime.RequiredError('v1CargoesDeleteRequest', 'Required parameter "v1CargoesDeleteRequest" was null or undefined when calling cargoesAPICargoesDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cargoes/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CargoesDeleteRequestToJSON(requestParameters['v1CargoesDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CargoesDeleteResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для удаления грузомест в заявке на поставку. Чтобы проверить статус удаления, используйте метод [/v1/cargoes/delete/status](#operation/CargoesAPI_CargoesDeleteStatus). + * Удалить грузоместо в заявке на поставку + */ + cargoesAPICargoesDelete(v1CargoesDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesDeleteRaw({ v1CargoesDeleteRequest: v1CargoesDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения статуса удаления грузомест в заявке на поставку. + * Информация о статусе удаления грузоместа + */ + cargoesAPICargoesDeleteStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CargoesDeleteStatusRequest'] == null) { + throw new runtime.RequiredError('v1CargoesDeleteStatusRequest', 'Required parameter "v1CargoesDeleteStatusRequest" was null or undefined when calling cargoesAPICargoesDeleteStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cargoes/delete/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CargoesDeleteStatusRequestToJSON(requestParameters['v1CargoesDeleteStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CargoesDeleteStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения статуса удаления грузомест в заявке на поставку. + * Информация о статусе удаления грузоместа + */ + cargoesAPICargoesDeleteStatus(v1CargoesDeleteStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesDeleteStatusRaw({ v1CargoesDeleteStatusRequest: v1CargoesDeleteStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы сгенерировать этикетки для грузомест из заявки на поставку. + * Сгенерировать этикетки для грузомест + */ + cargoesAPICargoesLabelCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesAPICargoesLabelCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesAPICargoesLabelCreate().'); + } + if (requestParameters['v1CargoesLabelCreateRequest'] == null) { + throw new runtime.RequiredError('v1CargoesLabelCreateRequest', 'Required parameter "v1CargoesLabelCreateRequest" was null or undefined when calling cargoesAPICargoesLabelCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes-label/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CargoesLabelCreateRequestToJSON(requestParameters['v1CargoesLabelCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CargoesLabelCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы сгенерировать этикетки для грузомест из заявки на поставку. + * Сгенерировать этикетки для грузомест + */ + cargoesAPICargoesLabelCreate(clientId, apiKey, v1CargoesLabelCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesLabelCreateRaw({ clientId: clientId, apiKey: apiKey, v1CargoesLabelCreateRequest: v1CargoesLabelCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Получить PDF с этикетками грузовых мест + */ + cargoesAPICargoesLabelFileRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesAPICargoesLabelFile().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesAPICargoesLabelFile().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes-label/file/{file_guid}`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * + * Получить PDF с этикетками грузовых мест + */ + cargoesAPICargoesLabelFile(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.cargoesAPICargoesLabelFileRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + }); + } + /** + * Возвращает статус формирования этикеток и ссылку на PDF-файл с ними. + * Получить идентификатор этикетки для грузомест + */ + cargoesAPICargoesLabelGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesAPICargoesLabelGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesAPICargoesLabelGet().'); + } + if (requestParameters['v1CargoesLabelGetRequest'] == null) { + throw new runtime.RequiredError('v1CargoesLabelGetRequest', 'Required parameter "v1CargoesLabelGetRequest" was null or undefined when calling cargoesAPICargoesLabelGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes-label/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CargoesLabelGetRequestToJSON(requestParameters['v1CargoesLabelGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CargoesLabelGetResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает статус формирования этикеток и ссылку на PDF-файл с ними. + * Получить идентификатор этикетки для грузомест + */ + cargoesAPICargoesLabelGet(clientId, apiKey, v1CargoesLabelGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesLabelGetRaw({ clientId: clientId, apiKey: apiKey, v1CargoesLabelGetRequest: v1CargoesLabelGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения чек-листа с правилами по установке грузомест. + * Чек-лист по установке грузомест FBO + */ + cargoesAPICargoesRulesGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CargoesRulesGetRequest'] == null) { + throw new runtime.RequiredError('v1CargoesRulesGetRequest', 'Required parameter "v1CargoesRulesGetRequest" was null or undefined when calling cargoesAPICargoesRulesGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cargoes/rules/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CargoesRulesGetRequestToJSON(requestParameters['v1CargoesRulesGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CargoesRulesGetResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения чек-листа с правилами по установке грузомест. + * Чек-лист по установке грузомест FBO + */ + cargoesAPICargoesRulesGet(v1CargoesRulesGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesAPICargoesRulesGetRaw({ v1CargoesRulesGetRequest: v1CargoesRulesGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1721-Novyi-metod-dlia-peredachi-offer-id-pri-ustanovke-GM) в сообществе разработчиков Ozon for dev. + * Получить информацию по установке грузомест + */ + cargoesCreateInfoV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesCreateInfoV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesCreateInfoV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cargoes/create/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2CargoesCreateInfoV2RequestToJSON(requestParameters['v2CargoesCreateInfoV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2CargoesCreateInfoV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1721-Novyi-metod-dlia-peredachi-offer-id-pri-ustanovke-GM) в сообществе разработчиков Ozon for dev. + * Получить информацию по установке грузомест + */ + cargoesCreateInfoV2(clientId, apiKey, v2CargoesCreateInfoV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesCreateInfoV2Raw({ clientId: clientId, apiKey: apiKey, v2CargoesCreateInfoV2Request: v2CargoesCreateInfoV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о грузоместах + */ + cargoesGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling cargoesGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling cargoesGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/cargoes/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CargoesGetRequestToJSON(requestParameters['v1CargoesGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CargoesGetResponseFromJSON(jsonValue)); + }); + } + /** + * Получить информацию о грузоместах + */ + cargoesGet(clientId, apiKey, v1CargoesGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.cargoesGetRaw({ clientId: clientId, apiKey: apiKey, v1CargoesGetRequest: v1CargoesGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о макролокальных кластерах + */ + draftClusterListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftClusterList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftClusterList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/cluster/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2DraftClusterListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить информацию о макролокальных кластерах + */ + draftClusterList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftClusterListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать черновики заявки на поставку 2 раза в минуту и 50 раз в час. Если превысите лимит, вернётся ошибка 429. + * Получить информацию о черновике заявки на поставку + */ + draftCreateInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftCreateInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftCreateInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/draft/create/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2DraftCreateInfoRequestToJSON(requestParameters['v2DraftCreateInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2DraftCreateInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете создавать черновики заявки на поставку 2 раза в минуту и 50 раз в час. Если превысите лимит, вернётся ошибка 429. + * Получить информацию о черновике заявки на поставку + */ + draftCreateInfo(clientId, apiKey, v2DraftCreateInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftCreateInfoRaw({ clientId: clientId, apiKey: apiKey, v2DraftCreateInfoRequest: v2DraftCreateInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку кросс-докингом + */ + draftCrossdockCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftCrossdockCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftCrossdockCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/draft/crossdock/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DraftCrossdockCreateRequestToJSON(requestParameters['v1DraftCrossdockCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DraftCreateCommonResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку кросс-докингом + */ + draftCrossdockCreate(clientId, apiKey, v1DraftCrossdockCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftCrossdockCreateRaw({ clientId: clientId, apiKey: apiKey, v1DraftCrossdockCreateRequest: v1DraftCrossdockCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на прямую поставку + */ + draftDirectCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftDirectCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftDirectCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/draft/direct/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DraftDirectCreateRequestToJSON(requestParameters['v1DraftDirectCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DraftCreateCommonResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на прямую поставку + */ + draftDirectCreate(clientId, apiKey, v1DraftDirectCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftDirectCreateRaw({ clientId: clientId, apiKey: apiKey, v1DraftDirectCreateRequest: v1DraftDirectCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку для нескольких кластеров + */ + draftMultiClusterCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftMultiClusterCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftMultiClusterCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/draft/multi-cluster/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DraftMultiClusterCreateRequestToJSON(requestParameters['v1DraftMultiClusterCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DraftCreateCommonResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете создавать черновики заявки на поставку: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать черновик заявки на поставку для нескольких кластеров + */ + draftMultiClusterCreate(clientId, apiKey, v1DraftMultiClusterCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftMultiClusterCreateRaw({ clientId: clientId, apiKey: apiKey, v1DraftMultiClusterCreateRequest: v1DraftMultiClusterCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете создавать заявку на поставку по черновику: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать заявку на поставку по черновику + */ + draftSupplyCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftSupplyCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftSupplyCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/draft/supply/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2DraftSupplyCreateRequestToJSON(requestParameters['v2DraftSupplyCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2DraftSupplyCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете создавать заявку на поставку по черновику: - 2 раза в минуту; - 50 раз в час; - 500 раз в день. Если превысите лимит, вернётся ошибка 429. + * Создать заявку на поставку по черновику + */ + draftSupplyCreate(clientId, apiKey, v2DraftSupplyCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftSupplyCreateRaw({ clientId: clientId, apiKey: apiKey, v2DraftSupplyCreateRequest: v2DraftSupplyCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о создании заявки на поставку + */ + draftSupplyCreateStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftSupplyCreateStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftSupplyCreateStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/draft/supply/create/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2DraftSupplyCreateStatusRequestToJSON(requestParameters['v2DraftSupplyCreateStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2DraftSupplyCreateStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Получить информацию о создании заявки на поставку + */ + draftSupplyCreateStatus(clientId, apiKey, v2DraftSupplyCreateStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftSupplyCreateStatusRaw({ clientId: clientId, apiKey: apiKey, v2DraftSupplyCreateStatusRequest: v2DraftSupplyCreateStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список доступных таймслотов + */ + draftTimeslotInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling draftTimeslotInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling draftTimeslotInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/draft/timeslot/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2DraftTimeslotInfoRequestToJSON(requestParameters['v2DraftTimeslotInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2DraftTimeslotInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список доступных таймслотов + */ + draftTimeslotInfo(clientId, apiKey, v2DraftTimeslotInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.draftTimeslotInfoRaw({ clientId: clientId, apiKey: apiKey, v2DraftTimeslotInfoRequest: v2DraftTimeslotInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Информация о кластерах и их складах + */ + supplyDraftAPIDraftClusterListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1DraftClusterListRequest'] == null) { + throw new runtime.RequiredError('v1DraftClusterListRequest', 'Required parameter "v1DraftClusterListRequest" was null or undefined when calling supplyDraftAPIDraftClusterList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/cluster/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DraftClusterListRequestToJSON(requestParameters['v1DraftClusterListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DraftClusterListResponseFromJSON(jsonValue)); + }); + } + /** + * + * Информация о кластерах и их складах + */ + supplyDraftAPIDraftClusterList(v1DraftClusterListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyDraftAPIDraftClusterListRaw({ v1DraftClusterListRequest: v1DraftClusterListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы найти точки отгрузки для кросс-докинга и прямых поставок. Вы можете посмотреть адреса всех точек на карте и в виде таблицы в [Базе знаний](https://seller-edu.ozon.ru/fbo/warehouses/adresa-skladov-fbo). + * Поиск точек для отгрузки поставки + */ + supplyDraftAPIDraftGetWarehouseFboListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1DraftGetWarehouseFboListRequest'] == null) { + throw new runtime.RequiredError('v1DraftGetWarehouseFboListRequest', 'Required parameter "v1DraftGetWarehouseFboListRequest" was null or undefined when calling supplyDraftAPIDraftGetWarehouseFboList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/warehouse/fbo/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DraftGetWarehouseFboListRequestToJSON(requestParameters['v1DraftGetWarehouseFboListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DraftGetWarehouseFboListResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы найти точки отгрузки для кросс-докинга и прямых поставок. Вы можете посмотреть адреса всех точек на карте и в виде таблицы в [Базе знаний](https://seller-edu.ozon.ru/fbo/warehouses/adresa-skladov-fbo). + * Поиск точек для отгрузки поставки + */ + supplyDraftAPIDraftGetWarehouseFboList(v1DraftGetWarehouseFboListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyDraftAPIDraftGetWarehouseFboListRaw({ v1DraftGetWarehouseFboListRequest: v1DraftGetWarehouseFboListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Отменить заявку на поставку + */ + supplyOrderAPISupplyOrderCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderCancel().'); + } + if (requestParameters['v1SupplyOrderCancelRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderCancelRequest', 'Required parameter "v1SupplyOrderCancelRequest" was null or undefined when calling supplyOrderAPISupplyOrderCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SupplyOrderCancelRequestToJSON(requestParameters['v1SupplyOrderCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Отменить заявку на поставку + */ + supplyOrderAPISupplyOrderCancel(clientId, apiKey, v1SupplyOrderCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderCancelRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderCancelRequest: v1SupplyOrderCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить статус отмены заявки на поставку + */ + supplyOrderAPISupplyOrderCancelStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderAPISupplyOrderCancelStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderAPISupplyOrderCancelStatus().'); + } + if (requestParameters['v1SupplyOrderCancelStatusRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderCancelStatusRequest', 'Required parameter "v1SupplyOrderCancelStatusRequest" was null or undefined when calling supplyOrderAPISupplyOrderCancelStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/cancel/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SupplyOrderCancelStatusRequestToJSON(requestParameters['v1SupplyOrderCancelStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderCancelStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Получить статус отмены заявки на поставку + */ + supplyOrderAPISupplyOrderCancelStatus(clientId, apiKey, v1SupplyOrderCancelStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderCancelStatusRaw({ clientId: clientId, apiKey: apiKey, v1SupplyOrderCancelStatusRequest: v1SupplyOrderCancelStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для редактирования товарного состава в заявке на поставку. Чтобы проверить статус редактирования, используйте метод [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus). + * Редактирование товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1SupplyOrderContentUpdateRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderContentUpdateRequest', 'Required parameter "v1SupplyOrderContentUpdateRequest" was null or undefined when calling supplyOrderAPISupplyOrderContentUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/supply-order/content/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SupplyOrderContentUpdateRequestToJSON(requestParameters['v1SupplyOrderContentUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderContentUpdateResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для редактирования товарного состава в заявке на поставку. Чтобы проверить статус редактирования, используйте метод [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus). + * Редактирование товарного состава + */ + supplyOrderAPISupplyOrderContentUpdate(v1SupplyOrderContentUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderContentUpdateRaw({ v1SupplyOrderContentUpdateRequest: v1SupplyOrderContentUpdateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения статуса редактирования товарного состава. + * Информация о статусе редактирования товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1SupplyOrderContentUpdateStatusRequest'] == null) { + throw new runtime.RequiredError('v1SupplyOrderContentUpdateStatusRequest', 'Required parameter "v1SupplyOrderContentUpdateStatusRequest" was null or undefined when calling supplyOrderAPISupplyOrderContentUpdateStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/supply-order/content/update/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SupplyOrderContentUpdateStatusRequestToJSON(requestParameters['v1SupplyOrderContentUpdateStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderContentUpdateStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения статуса редактирования товарного состава. + * Информация о статусе редактирования товарного состава + */ + supplyOrderAPISupplyOrderContentUpdateStatus(v1SupplyOrderContentUpdateStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderAPISupplyOrderContentUpdateStatusRaw({ v1SupplyOrderContentUpdateStatusRequest: v1SupplyOrderContentUpdateStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте этот метод, если в [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus) вы получили ошибку `SUPPLY_CONTENT_NOT_VALID`. + * Проверить новый товарный состав + */ + supplyOrderContentUpdateValidationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/supply-order/content/update/validation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SupplyOrderContentUpdateValidationRequestToJSON(requestParameters['v1SupplyOrderContentUpdateValidationRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SupplyOrderContentUpdateValidationResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте этот метод, если в [/v1/supply-order/content/update/status](#operation/SupplyOrderAPI_SupplyOrderContentUpdateStatus) вы получили ошибку `SUPPLY_CONTENT_NOT_VALID`. + * Проверить новый товарный состав + */ + supplyOrderContentUpdateValidation(v1SupplyOrderContentUpdateValidationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderContentUpdateValidationRaw({ v1SupplyOrderContentUpdateValidationRequest: v1SupplyOrderContentUpdateValidationRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список складов продавца + */ + warehouseFboSellerListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseFboSellerList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseFboSellerList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/fbo/seller/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseFboSellerListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список складов продавца + */ + warehouseFboSellerList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseFboSellerListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/FinanceAPI.d.ts b/dist/esm/apis/FinanceAPI.d.ts new file mode 100644 index 0000000..9c721f3 --- /dev/null +++ b/dist/esm/apis/FinanceAPI.d.ts @@ -0,0 +1,158 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CommonCreateReportResponse, CreateReportResponse, Financev3FinanceTransactionListV3Request, Financev3FinanceTransactionListV3Response, Financev3FinanceTransactionTotalsV3Request, Financev3FinanceTransactionTotalsV3Response, V1CreateDocumentB2BSalesJSONReportRequest, V1CreateDocumentB2BSalesJSONReportResponse, V1CreateDocumentB2BSalesReportRequest, V1CreateMutualSettlementReportRequest, V1GetCompensationReportRequest, V1GetDecompensationReportRequest, V1GetFinanceProductsBuyoutRequest, V1GetFinanceProductsBuyoutResponse, V1GetRealizationReportPostingRequest, V1GetRealizationReportPostingResponse, V2GetRealizationReportRequestV2, V2GetRealizationReportResponseV2 } from '../models/index'; +export interface FinanceAPIFinanceTransactionListV3Request { + clientId: string; + apiKey: string; + financev3FinanceTransactionListV3Request: Financev3FinanceTransactionListV3Request; +} +export interface FinanceAPIFinanceTransactionTotalV3Request { + clientId: string; + apiKey: string; + financev3FinanceTransactionTotalsV3Request: Financev3FinanceTransactionTotalsV3Request | null; +} +export interface FinanceAPIGetRealizationReportV1Request { + clientId: string; + apiKey: string; + v1GetRealizationReportPostingRequest: V1GetRealizationReportPostingRequest; +} +export interface FinanceAPIGetRealizationReportV2Request { + clientId: string; + apiKey: string; + v2GetRealizationReportRequestV2: V2GetRealizationReportRequestV2; +} +export interface GetFinanceProductsBuyoutRequest { + v1GetFinanceProductsBuyoutRequest?: V1GetFinanceProductsBuyoutRequest; +} +export interface ReportAPICreateDocumentB2BSalesJSONReportRequest { + v1CreateDocumentB2BSalesJSONReportRequest: V1CreateDocumentB2BSalesJSONReportRequest; +} +export interface ReportAPICreateDocumentB2BSalesReportRequest { + v1CreateDocumentB2BSalesReportRequest: V1CreateDocumentB2BSalesReportRequest; +} +export interface ReportAPICreateMutualSettlementReportRequest { + clientId: string; + apiKey: string; + v1CreateMutualSettlementReportRequest: V1CreateMutualSettlementReportRequest; +} +export interface ReportAPIGetCompensationReportRequest { + v1GetCompensationReportRequest: V1GetCompensationReportRequest; +} +export interface ReportAPIGetDecompensationReportRequest { + v1GetDecompensationReportRequest: V1GetDecompensationReportRequest; +} +/** + * + */ +export declare class FinanceAPI extends runtime.BaseAPI { + /** + * Возвращает подробную информацию по всем начислениям. Максимальный период, за который можно получить информацию в одном запросе — 1 месяц. Если в запросе не указывать `posting_number`, то в ответе будут все отправления за указанный период или отправления определённого типа. + * Список транзакций + */ + financeAPIFinanceTransactionListV3Raw(requestParameters: FinanceAPIFinanceTransactionListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает подробную информацию по всем начислениям. Максимальный период, за который можно получить информацию в одном запросе — 1 месяц. Если в запросе не указывать `posting_number`, то в ответе будут все отправления за указанный период или отправления определённого типа. + * Список транзакций + */ + financeAPIFinanceTransactionListV3(clientId: string, apiKey: string, financev3FinanceTransactionListV3Request: Financev3FinanceTransactionListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает итоговые суммы по транзакциям за указанный период. Если вы неправильно заполните номера отправлений, в ответе вернутся нулевые значения. + * Суммы транзакций + */ + financeAPIFinanceTransactionTotalV3Raw(requestParameters: FinanceAPIFinanceTransactionTotalV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает итоговые суммы по транзакциям за указанный период. Если вы неправильно заполните номера отправлений, в ответе вернутся нулевые значения. + * Суммы транзакций + */ + financeAPIFinanceTransactionTotalV3(clientId: string, apiKey: string, financev3FinanceTransactionTotalsV3Request: Financev3FinanceTransactionTotalsV3Request | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Отмены и невыкупы не включаются. Отчёт доступен с настоящего времени по август 2023 года включительно. + * Позаказный отчёт о реализации товаров + */ + financeAPIGetRealizationReportV1Raw(requestParameters: FinanceAPIGetRealizationReportV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Отмены и невыкупы не включаются. Отчёт доступен с настоящего времени по август 2023 года включительно. + * Позаказный отчёт о реализации товаров + */ + financeAPIGetRealizationReportV1(clientId: string, apiKey: string, v1GetRealizationReportPostingRequest: V1GetRealizationReportPostingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт о реализации доставленных и возвращённых товаров за месяц. Отмены и невыкупы не включаются. Соответствует разделу **Финансы → Документы → Отчёты о реализации → Отчёт о реализации товара** в личном кабинете. Отчёт придёт не позднее 5-го числа следующего месяца. [Подробнее об отчёте в Базе знаний продавца](https://seller-edu.ozon.ru/docs/finances-documents/calculations-documents/otchet-o-realizacii-tovarov.html) + * Отчёт о реализации товаров (версия 2) + */ + financeAPIGetRealizationReportV2Raw(requestParameters: FinanceAPIGetRealizationReportV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт о реализации доставленных и возвращённых товаров за месяц. Отмены и невыкупы не включаются. Соответствует разделу **Финансы → Документы → Отчёты о реализации → Отчёт о реализации товара** в личном кабинете. Отчёт придёт не позднее 5-го числа следующего месяца. [Подробнее об отчёте в Базе знаний продавца](https://seller-edu.ozon.ru/docs/finances-documents/calculations-documents/otchet-o-realizacii-tovarov.html) + * Отчёт о реализации товаров (версия 2) + */ + financeAPIGetRealizationReportV2(clientId: string, apiKey: string, v2GetRealizationReportRequestV2: V2GetRealizationReportRequestV2, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает отчёт о товарах, которые выкупил Ozon. Соответствует разделу **Финансы → Документы → УПД по сделкам с юр. лицами → УПД по выкупленным товарам** в личном кабинете. [Подробнее о выкупе товаров в Базе знаний](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany?search=выкупленные+товары) + * Отчёт о выкупленных товарах + */ + getFinanceProductsBuyoutRaw(requestParameters: GetFinanceProductsBuyoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает отчёт о товарах, которые выкупил Ozon. Соответствует разделу **Финансы → Документы → УПД по сделкам с юр. лицами → УПД по выкупленным товарам** в личном кабинете. [Подробнее о выкупе товаров в Базе знаний](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany?search=выкупленные+товары) + * Отчёт о выкупленных товарах + */ + getFinanceProductsBuyout(v1GetFinanceProductsBuyoutRequest?: V1GetFinanceProductsBuyoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам в JSON-формате. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам в JSON-формате + */ + reportAPICreateDocumentB2BSalesJSONReportRaw(requestParameters: ReportAPICreateDocumentB2BSalesJSONReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам в JSON-формате. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам в JSON-формате + */ + reportAPICreateDocumentB2BSalesJSONReport(v1CreateDocumentB2BSalesJSONReportRequest: V1CreateDocumentB2BSalesJSONReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам + */ + reportAPICreateDocumentB2BSalesReportRaw(requestParameters: ReportAPICreateDocumentB2BSalesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам + */ + reportAPICreateDocumentB2BSalesReport(v1CreateDocumentB2BSalesReportRequest: V1CreateDocumentB2BSalesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить отчёт о взаиморасчетах. Соответствует разделу **Финансы → Документы → Аналитические отчеты → Отчет о взаиморасчетах** в личном кабинете. + * Отчёт о взаиморасчётах + */ + reportAPICreateMutualSettlementReportRaw(requestParameters: ReportAPICreateMutualSettlementReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить отчёт о взаиморасчетах. Соответствует разделу **Финансы → Документы → Аналитические отчеты → Отчет о взаиморасчетах** в личном кабинете. + * Отчёт о взаиморасчётах + */ + reportAPICreateMutualSettlementReport(clientId: string, apiKey: string, v1CreateMutualSettlementReportRequest: V1CreateMutualSettlementReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения отчёта о компенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о компенсациях + */ + reportAPIGetCompensationReportRaw(requestParameters: ReportAPIGetCompensationReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта о компенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о компенсациях + */ + reportAPIGetCompensationReport(v1GetCompensationReportRequest: V1GetCompensationReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения отчёта о декомпенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о декомпенсациях + */ + reportAPIGetDecompensationReportRaw(requestParameters: ReportAPIGetDecompensationReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта о декомпенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о декомпенсациях + */ + reportAPIGetDecompensationReport(v1GetDecompensationReportRequest: V1GetDecompensationReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/FinanceAPI.js b/dist/esm/apis/FinanceAPI.js new file mode 100644 index 0000000..a7a0082 --- /dev/null +++ b/dist/esm/apis/FinanceAPI.js @@ -0,0 +1,406 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CommonCreateReportResponseFromJSON, CreateReportResponseFromJSON, Financev3FinanceTransactionListV3RequestToJSON, Financev3FinanceTransactionListV3ResponseFromJSON, Financev3FinanceTransactionTotalsV3RequestToJSON, Financev3FinanceTransactionTotalsV3ResponseFromJSON, V1CreateDocumentB2BSalesJSONReportRequestToJSON, V1CreateDocumentB2BSalesJSONReportResponseFromJSON, V1CreateDocumentB2BSalesReportRequestToJSON, V1CreateMutualSettlementReportRequestToJSON, V1GetCompensationReportRequestToJSON, V1GetDecompensationReportRequestToJSON, V1GetFinanceProductsBuyoutRequestToJSON, V1GetFinanceProductsBuyoutResponseFromJSON, V1GetRealizationReportPostingRequestToJSON, V1GetRealizationReportPostingResponseFromJSON, V2GetRealizationReportRequestV2ToJSON, V2GetRealizationReportResponseV2FromJSON, } from '../models/index'; +/** + * + */ +export class FinanceAPI extends runtime.BaseAPI { + /** + * Возвращает подробную информацию по всем начислениям. Максимальный период, за который можно получить информацию в одном запросе — 1 месяц. Если в запросе не указывать `posting_number`, то в ответе будут все отправления за указанный период или отправления определённого типа. + * Список транзакций + */ + financeAPIFinanceTransactionListV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIFinanceTransactionListV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIFinanceTransactionListV3().'); + } + if (requestParameters['financev3FinanceTransactionListV3Request'] == null) { + throw new runtime.RequiredError('financev3FinanceTransactionListV3Request', 'Required parameter "financev3FinanceTransactionListV3Request" was null or undefined when calling financeAPIFinanceTransactionListV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/finance/transaction/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Financev3FinanceTransactionListV3RequestToJSON(requestParameters['financev3FinanceTransactionListV3Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Financev3FinanceTransactionListV3ResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает подробную информацию по всем начислениям. Максимальный период, за который можно получить информацию в одном запросе — 1 месяц. Если в запросе не указывать `posting_number`, то в ответе будут все отправления за указанный период или отправления определённого типа. + * Список транзакций + */ + financeAPIFinanceTransactionListV3(clientId, apiKey, financev3FinanceTransactionListV3Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIFinanceTransactionListV3Raw({ clientId: clientId, apiKey: apiKey, financev3FinanceTransactionListV3Request: financev3FinanceTransactionListV3Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает итоговые суммы по транзакциям за указанный период. Если вы неправильно заполните номера отправлений, в ответе вернутся нулевые значения. + * Суммы транзакций + */ + financeAPIFinanceTransactionTotalV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIFinanceTransactionTotalV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIFinanceTransactionTotalV3().'); + } + if (requestParameters['financev3FinanceTransactionTotalsV3Request'] == null) { + throw new runtime.RequiredError('financev3FinanceTransactionTotalsV3Request', 'Required parameter "financev3FinanceTransactionTotalsV3Request" was null or undefined when calling financeAPIFinanceTransactionTotalV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/finance/transaction/totals`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Financev3FinanceTransactionTotalsV3RequestToJSON(requestParameters['financev3FinanceTransactionTotalsV3Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Financev3FinanceTransactionTotalsV3ResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает итоговые суммы по транзакциям за указанный период. Если вы неправильно заполните номера отправлений, в ответе вернутся нулевые значения. + * Суммы транзакций + */ + financeAPIFinanceTransactionTotalV3(clientId, apiKey, financev3FinanceTransactionTotalsV3Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIFinanceTransactionTotalV3Raw({ clientId: clientId, apiKey: apiKey, financev3FinanceTransactionTotalsV3Request: financev3FinanceTransactionTotalsV3Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Отмены и невыкупы не включаются. Отчёт доступен с настоящего времени по август 2023 года включительно. + * Позаказный отчёт о реализации товаров + */ + financeAPIGetRealizationReportV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIGetRealizationReportV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIGetRealizationReportV1().'); + } + if (requestParameters['v1GetRealizationReportPostingRequest'] == null) { + throw new runtime.RequiredError('v1GetRealizationReportPostingRequest', 'Required parameter "v1GetRealizationReportPostingRequest" was null or undefined when calling financeAPIGetRealizationReportV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/realization/posting`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetRealizationReportPostingRequestToJSON(requestParameters['v1GetRealizationReportPostingRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetRealizationReportPostingResponseFromJSON(jsonValue)); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров с детализацией по каждому заказу. Отмены и невыкупы не включаются. Отчёт доступен с настоящего времени по август 2023 года включительно. + * Позаказный отчёт о реализации товаров + */ + financeAPIGetRealizationReportV1(clientId, apiKey, v1GetRealizationReportPostingRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIGetRealizationReportV1Raw({ clientId: clientId, apiKey: apiKey, v1GetRealizationReportPostingRequest: v1GetRealizationReportPostingRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров за месяц. Отмены и невыкупы не включаются. Соответствует разделу **Финансы → Документы → Отчёты о реализации → Отчёт о реализации товара** в личном кабинете. Отчёт придёт не позднее 5-го числа следующего месяца. [Подробнее об отчёте в Базе знаний продавца](https://seller-edu.ozon.ru/docs/finances-documents/calculations-documents/otchet-o-realizacii-tovarov.html) + * Отчёт о реализации товаров (версия 2) + */ + financeAPIGetRealizationReportV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIGetRealizationReportV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIGetRealizationReportV2().'); + } + if (requestParameters['v2GetRealizationReportRequestV2'] == null) { + throw new runtime.RequiredError('v2GetRealizationReportRequestV2', 'Required parameter "v2GetRealizationReportRequestV2" was null or undefined when calling financeAPIGetRealizationReportV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/finance/realization`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2GetRealizationReportRequestV2ToJSON(requestParameters['v2GetRealizationReportRequestV2']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2GetRealizationReportResponseV2FromJSON(jsonValue)); + }); + } + /** + * Отчёт о реализации доставленных и возвращённых товаров за месяц. Отмены и невыкупы не включаются. Соответствует разделу **Финансы → Документы → Отчёты о реализации → Отчёт о реализации товара** в личном кабинете. Отчёт придёт не позднее 5-го числа следующего месяца. [Подробнее об отчёте в Базе знаний продавца](https://seller-edu.ozon.ru/docs/finances-documents/calculations-documents/otchet-o-realizacii-tovarov.html) + * Отчёт о реализации товаров (версия 2) + */ + financeAPIGetRealizationReportV2(clientId, apiKey, v2GetRealizationReportRequestV2, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIGetRealizationReportV2Raw({ clientId: clientId, apiKey: apiKey, v2GetRealizationReportRequestV2: v2GetRealizationReportRequestV2 }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает отчёт о товарах, которые выкупил Ozon. Соответствует разделу **Финансы → Документы → УПД по сделкам с юр. лицами → УПД по выкупленным товарам** в личном кабинете. [Подробнее о выкупе товаров в Базе знаний](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany?search=выкупленные+товары) + * Отчёт о выкупленных товарах + */ + getFinanceProductsBuyoutRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/products/buyout`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetFinanceProductsBuyoutRequestToJSON(requestParameters['v1GetFinanceProductsBuyoutRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetFinanceProductsBuyoutResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает отчёт о товарах, которые выкупил Ozon. Соответствует разделу **Финансы → Документы → УПД по сделкам с юр. лицами → УПД по выкупленным товарам** в личном кабинете. [Подробнее о выкупе товаров в Базе знаний](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany?search=выкупленные+товары) + * Отчёт о выкупленных товарах + */ + getFinanceProductsBuyout(v1GetFinanceProductsBuyoutRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getFinanceProductsBuyoutRaw({ v1GetFinanceProductsBuyoutRequest: v1GetFinanceProductsBuyoutRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам в JSON-формате. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам в JSON-формате + */ + reportAPICreateDocumentB2BSalesJSONReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CreateDocumentB2BSalesJSONReportRequest'] == null) { + throw new runtime.RequiredError('v1CreateDocumentB2BSalesJSONReportRequest', 'Required parameter "v1CreateDocumentB2BSalesJSONReportRequest" was null or undefined when calling reportAPICreateDocumentB2BSalesJSONReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/document-b2b-sales/json`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreateDocumentB2BSalesJSONReportRequestToJSON(requestParameters['v1CreateDocumentB2BSalesJSONReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CreateDocumentB2BSalesJSONReportResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам в JSON-формате. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам в JSON-формате + */ + reportAPICreateDocumentB2BSalesJSONReport(v1CreateDocumentB2BSalesJSONReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateDocumentB2BSalesJSONReportRaw({ v1CreateDocumentB2BSalesJSONReportRequest: v1CreateDocumentB2BSalesJSONReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам + */ + reportAPICreateDocumentB2BSalesReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CreateDocumentB2BSalesReportRequest'] == null) { + throw new runtime.RequiredError('v1CreateDocumentB2BSalesReportRequest', 'Required parameter "v1CreateDocumentB2BSalesReportRequest" was null or undefined when calling reportAPICreateDocumentB2BSalesReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/document-b2b-sales`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreateDocumentB2BSalesReportRequestToJSON(requestParameters['v1CreateDocumentB2BSalesReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CommonCreateReportResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить отчёт по продажам юридическим лицам. Соответствует разделу **Финансы → Документы → Реестр продаж юр. лицам** в личном кабинете. + * Реестр продаж юридическим лицам + */ + reportAPICreateDocumentB2BSalesReport(v1CreateDocumentB2BSalesReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateDocumentB2BSalesReportRaw({ v1CreateDocumentB2BSalesReportRequest: v1CreateDocumentB2BSalesReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить отчёт о взаиморасчетах. Соответствует разделу **Финансы → Документы → Аналитические отчеты → Отчет о взаиморасчетах** в личном кабинете. + * Отчёт о взаиморасчётах + */ + reportAPICreateMutualSettlementReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateMutualSettlementReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateMutualSettlementReport().'); + } + if (requestParameters['v1CreateMutualSettlementReportRequest'] == null) { + throw new runtime.RequiredError('v1CreateMutualSettlementReportRequest', 'Required parameter "v1CreateMutualSettlementReportRequest" was null or undefined when calling reportAPICreateMutualSettlementReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/mutual-settlement`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreateMutualSettlementReportRequestToJSON(requestParameters['v1CreateMutualSettlementReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CommonCreateReportResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить отчёт о взаиморасчетах. Соответствует разделу **Финансы → Документы → Аналитические отчеты → Отчет о взаиморасчетах** в личном кабинете. + * Отчёт о взаиморасчётах + */ + reportAPICreateMutualSettlementReport(clientId, apiKey, v1CreateMutualSettlementReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateMutualSettlementReportRaw({ clientId: clientId, apiKey: apiKey, v1CreateMutualSettlementReportRequest: v1CreateMutualSettlementReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения отчёта о компенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о компенсациях + */ + reportAPIGetCompensationReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetCompensationReportRequest'] == null) { + throw new runtime.RequiredError('v1GetCompensationReportRequest', 'Required parameter "v1GetCompensationReportRequest" was null or undefined when calling reportAPIGetCompensationReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/compensation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetCompensationReportRequestToJSON(requestParameters['v1GetCompensationReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateReportResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения отчёта о компенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о компенсациях + */ + reportAPIGetCompensationReport(v1GetCompensationReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIGetCompensationReportRaw({ v1GetCompensationReportRequest: v1GetCompensationReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения отчёта о декомпенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о декомпенсациях + */ + reportAPIGetDecompensationReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetDecompensationReportRequest'] == null) { + throw new runtime.RequiredError('v1GetDecompensationReportRequest', 'Required parameter "v1GetDecompensationReportRequest" was null or undefined when calling reportAPIGetDecompensationReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/finance/decompensation`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetDecompensationReportRequestToJSON(requestParameters['v1GetDecompensationReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CreateReportResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения отчёта о декомпенсациях. Соответствует отчёту из раздела **Финансы → Документы → Компенсации и прочие начисления** в личном кабинете. + * Отчёт о декомпенсациях + */ + reportAPIGetDecompensationReport(v1GetDecompensationReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIGetDecompensationReportRaw({ v1GetDecompensationReportRequest: v1GetDecompensationReportRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/Notification.d.ts b/dist/esm/apis/Notification.d.ts new file mode 100644 index 0000000..8af09f0 --- /dev/null +++ b/dist/esm/apis/Notification.d.ts @@ -0,0 +1,121 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { NotificationV1CheckNotificationRequest, NotificationV1CheckNotificationResponse, NotificationV1DeleteNotificationRequest, NotificationV1EnableNotificationRequest, NotificationV1GetNotificationPushTypeListResponse, NotificationV1NotificationListResponse, NotificationV1SetNotificationRequest, NotificationV1UpdateNotificationRequest } from '../models/index'; +export interface CheckNotificationRequest { + clientId: string; + apiKey: string; + notificationV1CheckNotificationRequest: NotificationV1CheckNotificationRequest; +} +export interface DeleteNotificationRequest { + clientId: string; + apiKey: string; + notificationV1DeleteNotificationRequest: NotificationV1DeleteNotificationRequest; +} +export interface EnableNotificationRequest { + clientId: string; + apiKey: string; + notificationV1EnableNotificationRequest: NotificationV1EnableNotificationRequest; +} +export interface GetNotificationPushTypeListRequest { + clientId: string; + apiKey: string; +} +export interface NotificationListRequest { + clientId: string; + apiKey: string; +} +export interface SetNotificationRequest { + clientId: string; + apiKey: string; + notificationV1SetNotificationRequest: NotificationV1SetNotificationRequest; +} +export interface UpdateNotificationRequest { + clientId: string; + apiKey: string; + notificationV1UpdateNotificationRequest: NotificationV1UpdateNotificationRequest; +} +/** + * + */ +export declare class Notification extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Проверить URL-адрес для уведомлений + */ + checkNotificationRaw(requestParameters: CheckNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Проверить URL-адрес для уведомлений + */ + checkNotification(clientId: string, apiKey: string, notificationV1CheckNotificationRequest: NotificationV1CheckNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Удалить URL-адрес для уведомлений + */ + deleteNotificationRaw(requestParameters: DeleteNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Удалить URL-адрес для уведомлений + */ + deleteNotification(clientId: string, apiKey: string, notificationV1DeleteNotificationRequest: NotificationV1DeleteNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Включить или выключить уведомления на URL-адрес + */ + enableNotificationRaw(requestParameters: EnableNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Включить или выключить уведомления на URL-адрес + */ + enableNotification(clientId: string, apiKey: string, notificationV1EnableNotificationRequest: NotificationV1EnableNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить типы пуш-уведомлений + */ + getNotificationPushTypeListRaw(requestParameters: GetNotificationPushTypeListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить типы пуш-уведомлений + */ + getNotificationPushTypeList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить информацию по подключённым URL-адресам + */ + notificationListRaw(requestParameters: NotificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить информацию по подключённым URL-адресам + */ + notificationList(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Подключить URL-адрес для уведомлений + */ + setNotificationRaw(requestParameters: SetNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Подключить URL-адрес для уведомлений + */ + setNotification(clientId: string, apiKey: string, notificationV1SetNotificationRequest: NotificationV1SetNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Изменить URL-адрес для уведомлений + */ + updateNotificationRaw(requestParameters: UpdateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Изменить URL-адрес для уведомлений + */ + updateNotification(clientId: string, apiKey: string, notificationV1UpdateNotificationRequest: NotificationV1UpdateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/Notification.js b/dist/esm/apis/Notification.js new file mode 100644 index 0000000..95562e8 --- /dev/null +++ b/dist/esm/apis/Notification.js @@ -0,0 +1,323 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { NotificationV1CheckNotificationRequestToJSON, NotificationV1CheckNotificationResponseFromJSON, NotificationV1DeleteNotificationRequestToJSON, NotificationV1EnableNotificationRequestToJSON, NotificationV1GetNotificationPushTypeListResponseFromJSON, NotificationV1NotificationListResponseFromJSON, NotificationV1SetNotificationRequestToJSON, NotificationV1UpdateNotificationRequestToJSON, } from '../models/index'; +/** + * + */ +export class Notification extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Проверить URL-адрес для уведомлений + */ + checkNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling checkNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling checkNotification().'); + } + if (requestParameters['notificationV1CheckNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1CheckNotificationRequest', 'Required parameter "notificationV1CheckNotificationRequest" was null or undefined when calling checkNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: NotificationV1CheckNotificationRequestToJSON(requestParameters['notificationV1CheckNotificationRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => NotificationV1CheckNotificationResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Проверить URL-адрес для уведомлений + */ + checkNotification(clientId, apiKey, notificationV1CheckNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.checkNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1CheckNotificationRequest: notificationV1CheckNotificationRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Удалить URL-адрес для уведомлений + */ + deleteNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling deleteNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling deleteNotification().'); + } + if (requestParameters['notificationV1DeleteNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1DeleteNotificationRequest', 'Required parameter "notificationV1DeleteNotificationRequest" was null or undefined when calling deleteNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: NotificationV1DeleteNotificationRequestToJSON(requestParameters['notificationV1DeleteNotificationRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Удалить URL-адрес для уведомлений + */ + deleteNotification(clientId, apiKey, notificationV1DeleteNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.deleteNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1DeleteNotificationRequest: notificationV1DeleteNotificationRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Включить или выключить уведомления на URL-адрес + */ + enableNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling enableNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling enableNotification().'); + } + if (requestParameters['notificationV1EnableNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1EnableNotificationRequest', 'Required parameter "notificationV1EnableNotificationRequest" was null or undefined when calling enableNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/enable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: NotificationV1EnableNotificationRequestToJSON(requestParameters['notificationV1EnableNotificationRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Включить или выключить уведомления на URL-адрес + */ + enableNotification(clientId, apiKey, notificationV1EnableNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.enableNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1EnableNotificationRequest: notificationV1EnableNotificationRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить типы пуш-уведомлений + */ + getNotificationPushTypeListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getNotificationPushTypeList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getNotificationPushTypeList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/push-type/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => NotificationV1GetNotificationPushTypeListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить типы пуш-уведомлений + */ + getNotificationPushTypeList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getNotificationPushTypeListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить информацию по подключённым URL-адресам + */ + notificationListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling notificationList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling notificationList().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => NotificationV1NotificationListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Получить информацию по подключённым URL-адресам + */ + notificationList(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.notificationListRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Подключить URL-адрес для уведомлений + */ + setNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling setNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling setNotification().'); + } + if (requestParameters['notificationV1SetNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1SetNotificationRequest', 'Required parameter "notificationV1SetNotificationRequest" was null or undefined when calling setNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: NotificationV1SetNotificationRequestToJSON(requestParameters['notificationV1SetNotificationRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Подключить URL-адрес для уведомлений + */ + setNotification(clientId, apiKey, notificationV1SetNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.setNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1SetNotificationRequest: notificationV1SetNotificationRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Изменить URL-адрес для уведомлений + */ + updateNotificationRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling updateNotification().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling updateNotification().'); + } + if (requestParameters['notificationV1UpdateNotificationRequest'] == null) { + throw new runtime.RequiredError('notificationV1UpdateNotificationRequest', 'Required parameter "notificationV1UpdateNotificationRequest" was null or undefined when calling updateNotification().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/notification/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: NotificationV1UpdateNotificationRequestToJSON(requestParameters['notificationV1UpdateNotificationRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1978-Novye-beta-metody-dlia-upravleniia-podkliucheniiami-PUSH-uvedomlenii/) в сообществе разработчиков Ozon for dev. + * Изменить URL-адрес для уведомлений + */ + updateNotification(clientId, apiKey, notificationV1UpdateNotificationRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.updateNotificationRaw({ clientId: clientId, apiKey: apiKey, notificationV1UpdateNotificationRequest: notificationV1UpdateNotificationRequest }, initOverrides); + }); + } +} diff --git a/dist/esm/apis/OrderAPI.d.ts b/dist/esm/apis/OrderAPI.d.ts new file mode 100644 index 0000000..531c2de --- /dev/null +++ b/dist/esm/apis/OrderAPI.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1OrderCancelCheckRequest, V1OrderCancelCheckResponse, V1OrderCancelRequest, V1OrderCancelResponse, V1OrderCancelStatusRequest, V1OrderCancelStatusResponse, V1OrderCreateRequest, V1OrderCreateResponse } from '../models/index'; +export interface OrderAPIOrderCancelRequest { + v1OrderCancelRequest: V1OrderCancelRequest; +} +export interface OrderAPIOrderCancelCheckRequest { + v1OrderCancelCheckRequest: V1OrderCancelCheckRequest; +} +export interface OrderAPIOrderCancelStatusRequest { + v1OrderCancelStatusRequest: V1OrderCancelStatusRequest; +} +export interface OrderAPIOrderCreateRequest { + v1OrderCreateRequest: V1OrderCreateRequest; +} +/** + * + */ +export declare class OrderAPI extends runtime.BaseAPI { + /** + * Отменяет заказ со всеми отправлениями. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-order](#operation/CancelReasonListByOrder). + * Отменить заказ + */ + orderAPIOrderCancelRaw(requestParameters: OrderAPIOrderCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отменяет заказ со всеми отправлениями. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-order](#operation/CancelReasonListByOrder). + * Отменить заказ + */ + orderAPIOrderCancel(v1OrderCancelRequest: V1OrderCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает возможность отмены заказа для покупателя. + * Проверить возможность отмены заказа + */ + orderAPIOrderCancelCheckRaw(requestParameters: OrderAPIOrderCancelCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает возможность отмены заказа для покупателя. + * Проверить возможность отмены заказа + */ + orderAPIOrderCancelCheck(v1OrderCancelCheckRequest: V1OrderCancelCheckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить статус отмены заказа + */ + orderAPIOrderCancelStatusRaw(requestParameters: OrderAPIOrderCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус отмены заказа + */ + orderAPIOrderCancelStatus(v1OrderCancelStatusRequest: V1OrderCancelStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Создаёт заказ для покупателя и получателя в системе Ozon. Передайте вариант доставки из ответа метода [/v2/delivery/checkout](#operation/DeliveryCheckout). В ответе могут быть не все отправления. Получите список всех отправлений по номеру заказа `order_number` методом: - [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList) — для схемы FBO; - [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) — для схемы FBS. Значение параметра `delivery_schema` должно совпадать с тем, что вы передали в [/v2/delivery/checkout](#operation/DeliveryCheckout). + * Создать заказ + */ + orderAPIOrderCreateRaw(requestParameters: OrderAPIOrderCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Создаёт заказ для покупателя и получателя в системе Ozon. Передайте вариант доставки из ответа метода [/v2/delivery/checkout](#operation/DeliveryCheckout). В ответе могут быть не все отправления. Получите список всех отправлений по номеру заказа `order_number` методом: - [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList) — для схемы FBO; - [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) — для схемы FBS. Значение параметра `delivery_schema` должно совпадать с тем, что вы передали в [/v2/delivery/checkout](#operation/DeliveryCheckout). + * Создать заказ + */ + orderAPIOrderCreate(v1OrderCreateRequest: V1OrderCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/OrderAPI.js b/dist/esm/apis/OrderAPI.js new file mode 100644 index 0000000..93309ae --- /dev/null +++ b/dist/esm/apis/OrderAPI.js @@ -0,0 +1,155 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1OrderCancelCheckRequestToJSON, V1OrderCancelCheckResponseFromJSON, V1OrderCancelRequestToJSON, V1OrderCancelResponseFromJSON, V1OrderCancelStatusRequestToJSON, V1OrderCancelStatusResponseFromJSON, V1OrderCreateRequestToJSON, V1OrderCreateResponseFromJSON, } from '../models/index'; +/** + * + */ +export class OrderAPI extends runtime.BaseAPI { + /** + * Отменяет заказ со всеми отправлениями. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-order](#operation/CancelReasonListByOrder). + * Отменить заказ + */ + orderAPIOrderCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1OrderCancelRequest'] == null) { + throw new runtime.RequiredError('v1OrderCancelRequest', 'Required parameter "v1OrderCancelRequest" was null or undefined when calling orderAPIOrderCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/order/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1OrderCancelRequestToJSON(requestParameters['v1OrderCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1OrderCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Отменяет заказ со всеми отправлениями. Используйте идентификатор причины отмены `reasons.id` из метода [/v1/cancel-reason/list-by-order](#operation/CancelReasonListByOrder). + * Отменить заказ + */ + orderAPIOrderCancel(v1OrderCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.orderAPIOrderCancelRaw({ v1OrderCancelRequest: v1OrderCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает возможность отмены заказа для покупателя. + * Проверить возможность отмены заказа + */ + orderAPIOrderCancelCheckRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1OrderCancelCheckRequest'] == null) { + throw new runtime.RequiredError('v1OrderCancelCheckRequest', 'Required parameter "v1OrderCancelCheckRequest" was null or undefined when calling orderAPIOrderCancelCheck().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/order/cancel/check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1OrderCancelCheckRequestToJSON(requestParameters['v1OrderCancelCheckRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1OrderCancelCheckResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает возможность отмены заказа для покупателя. + * Проверить возможность отмены заказа + */ + orderAPIOrderCancelCheck(v1OrderCancelCheckRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.orderAPIOrderCancelCheckRaw({ v1OrderCancelCheckRequest: v1OrderCancelCheckRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить статус отмены заказа + */ + orderAPIOrderCancelStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1OrderCancelStatusRequest'] == null) { + throw new runtime.RequiredError('v1OrderCancelStatusRequest', 'Required parameter "v1OrderCancelStatusRequest" was null or undefined when calling orderAPIOrderCancelStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/order/cancel/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1OrderCancelStatusRequestToJSON(requestParameters['v1OrderCancelStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1OrderCancelStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Получить статус отмены заказа + */ + orderAPIOrderCancelStatus(v1OrderCancelStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.orderAPIOrderCancelStatusRaw({ v1OrderCancelStatusRequest: v1OrderCancelStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Создаёт заказ для покупателя и получателя в системе Ozon. Передайте вариант доставки из ответа метода [/v2/delivery/checkout](#operation/DeliveryCheckout). В ответе могут быть не все отправления. Получите список всех отправлений по номеру заказа `order_number` методом: - [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList) — для схемы FBO; - [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) — для схемы FBS. Значение параметра `delivery_schema` должно совпадать с тем, что вы передали в [/v2/delivery/checkout](#operation/DeliveryCheckout). + * Создать заказ + */ + orderAPIOrderCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1OrderCreateRequest'] == null) { + throw new runtime.RequiredError('v1OrderCreateRequest', 'Required parameter "v1OrderCreateRequest" was null or undefined when calling orderAPIOrderCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/order/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1OrderCreateRequestToJSON(requestParameters['v1OrderCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1OrderCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Создаёт заказ для покупателя и получателя в системе Ozon. Передайте вариант доставки из ответа метода [/v2/delivery/checkout](#operation/DeliveryCheckout). В ответе могут быть не все отправления. Получите список всех отправлений по номеру заказа `order_number` методом: - [/v2/posting/fbo/list](#operation/PostingAPI_GetFboPostingList) — для схемы FBO; - [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) — для схемы FBS. Значение параметра `delivery_schema` должно совпадать с тем, что вы передали в [/v2/delivery/checkout](#operation/DeliveryCheckout). + * Создать заказ + */ + orderAPIOrderCreate(v1OrderCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.orderAPIOrderCreateRaw({ v1OrderCreateRequest: v1OrderCreateRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/OrderDirectFBP.d.ts b/dist/esm/apis/OrderDirectFBP.d.ts new file mode 100644 index 0000000..be4a6d5 --- /dev/null +++ b/dist/esm/apis/OrderDirectFBP.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpAvailableTimeslotListRequest, V1FbpAvailableTimeslotListResponse, V1FbpEditTimeslotRequest, V1FbpEditTimeslotResponse, V1FbpOrderDirectCancelRequest, V1FbpOrderDirectCancelResponse, V1FbpOrderDirectSellerDlvEditRequest, V1FbpOrderDirectSellerDlvEditResponse } from '../models/index'; +export interface FbpAPIFbpAvailableTimeslotListRequest { + v1FbpAvailableTimeslotListRequest: V1FbpAvailableTimeslotListRequest; +} +export interface FbpAPIFbpEditTimeslotRequest { + v1FbpEditTimeslotRequest: V1FbpEditTimeslotRequest; +} +export interface FbpAPIFbpOrderDirectCancelRequest { + v1FbpOrderDirectCancelRequest: V1FbpOrderDirectCancelRequest; +} +export interface FbpAPIFbpOrderDirectSellerDlvEditRequest { + v1FbpOrderDirectSellerDlvEditRequest: V1FbpOrderDirectSellerDlvEditRequest; +} +/** + * + */ +export declare class OrderDirectFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для поставки + */ + fbpAPIFbpAvailableTimeslotListRaw(requestParameters: FbpAPIFbpAvailableTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для поставки + */ + fbpAPIFbpAvailableTimeslotList(v1FbpAvailableTimeslotListRequest: V1FbpAvailableTimeslotListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в заявке на поставку + */ + fbpAPIFbpEditTimeslotRaw(requestParameters: FbpAPIFbpEditTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в заявке на поставку + */ + fbpAPIFbpEditTimeslot(v1FbpEditTimeslotRequest: V1FbpEditTimeslotRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку + */ + fbpAPIFbpOrderDirectCancelRaw(requestParameters: FbpAPIFbpOrderDirectCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку + */ + fbpAPIFbpOrderDirectCancel(v1FbpOrderDirectCancelRequest: V1FbpOrderDirectCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца + */ + fbpAPIFbpOrderDirectSellerDlvEditRaw(requestParameters: FbpAPIFbpOrderDirectSellerDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца + */ + fbpAPIFbpOrderDirectSellerDlvEdit(v1FbpOrderDirectSellerDlvEditRequest: V1FbpOrderDirectSellerDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/OrderDirectFBP.js b/dist/esm/apis/OrderDirectFBP.js new file mode 100644 index 0000000..b74cbbe --- /dev/null +++ b/dist/esm/apis/OrderDirectFBP.js @@ -0,0 +1,157 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1FbpAvailableTimeslotListRequestToJSON, V1FbpAvailableTimeslotListResponseFromJSON, V1FbpEditTimeslotRequestToJSON, V1FbpEditTimeslotResponseFromJSON, V1FbpOrderDirectCancelRequestToJSON, V1FbpOrderDirectCancelResponseFromJSON, V1FbpOrderDirectSellerDlvEditRequestToJSON, V1FbpOrderDirectSellerDlvEditResponseFromJSON, } from '../models/index'; +/** + * + */ +export class OrderDirectFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для поставки + */ + fbpAPIFbpAvailableTimeslotListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpAvailableTimeslotListRequest'] == null) { + throw new runtime.RequiredError('v1FbpAvailableTimeslotListRequest', 'Required parameter "v1FbpAvailableTimeslotListRequest" was null or undefined when calling fbpAPIFbpAvailableTimeslotList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/direct/timeslot/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpAvailableTimeslotListRequestToJSON(requestParameters['v1FbpAvailableTimeslotListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpAvailableTimeslotListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить список таймслотов для поставки + */ + fbpAPIFbpAvailableTimeslotList(v1FbpAvailableTimeslotListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpAvailableTimeslotListRaw({ v1FbpAvailableTimeslotListRequest: v1FbpAvailableTimeslotListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в заявке на поставку + */ + fbpAPIFbpEditTimeslotRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpEditTimeslotRequest'] == null) { + throw new runtime.RequiredError('v1FbpEditTimeslotRequest', 'Required parameter "v1FbpEditTimeslotRequest" was null or undefined when calling fbpAPIFbpEditTimeslot().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/direct/timeslot/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpEditTimeslotRequestToJSON(requestParameters['v1FbpEditTimeslotRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpEditTimeslotResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать таймслот в заявке на поставку + */ + fbpAPIFbpEditTimeslot(v1FbpEditTimeslotRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpEditTimeslotRaw({ v1FbpEditTimeslotRequest: v1FbpEditTimeslotRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку + */ + fbpAPIFbpOrderDirectCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderDirectCancelRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDirectCancelRequest', 'Required parameter "v1FbpOrderDirectCancelRequest" was null or undefined when calling fbpAPIFbpOrderDirectCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/direct/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderDirectCancelRequestToJSON(requestParameters['v1FbpOrderDirectCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderDirectCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку + */ + fbpAPIFbpOrderDirectCancel(v1FbpOrderDirectCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDirectCancelRaw({ v1FbpOrderDirectCancelRequest: v1FbpOrderDirectCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца + */ + fbpAPIFbpOrderDirectSellerDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderDirectSellerDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDirectSellerDlvEditRequest', 'Required parameter "v1FbpOrderDirectSellerDlvEditRequest" was null or undefined when calling fbpAPIFbpOrderDirectSellerDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/direct/seller-dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderDirectSellerDlvEditRequestToJSON(requestParameters['v1FbpOrderDirectSellerDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderDirectSellerDlvEditResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Обновить информацию о доставке силами продавца + */ + fbpAPIFbpOrderDirectSellerDlvEdit(v1FbpOrderDirectSellerDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDirectSellerDlvEditRaw({ v1FbpOrderDirectSellerDlvEditRequest: v1FbpOrderDirectSellerDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/OrderDropOffFBP.d.ts b/dist/esm/apis/OrderDropOffFBP.d.ts new file mode 100644 index 0000000..a953307 --- /dev/null +++ b/dist/esm/apis/OrderDropOffFBP.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpOrderDropOffCancelRequest, V1FbpOrderDropOffCancelResponse, V1FbpOrderDropOffDlvEditRequest, V1FbpOrderDropOffDlvEditResponse, V1FbpOrderDropOffTimetableRequest, V1FbpOrderDropOffTimetableResponse } from '../models/index'; +export interface FbpAPIFbpOrderDropOffCancelRequest { + clientId: string; + apiKey: string; + v1FbpOrderDropOffCancelRequest: V1FbpOrderDropOffCancelRequest; +} +export interface FbpAPIFbpOrderDropOffDlvEditRequest { + clientId: string; + apiKey: string; + v1FbpOrderDropOffDlvEditRequest: V1FbpOrderDropOffDlvEditRequest; +} +export interface FbpAPIFbpOrderDropOffTimetableRequest { + clientId: string; + apiKey: string; + v1FbpOrderDropOffTimetableRequest: V1FbpOrderDropOffTimetableRequest; +} +/** + * + */ +export declare class OrderDropOffFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку drop-off + */ + fbpAPIFbpOrderDropOffCancelRaw(requestParameters: FbpAPIFbpOrderDropOffCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку drop-off + */ + fbpAPIFbpOrderDropOffCancel(clientId: string, apiKey: string, v1FbpOrderDropOffCancelRequest: V1FbpOrderDropOffCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать информацию о поставке на drop-off пункт + */ + fbpAPIFbpOrderDropOffDlvEditRaw(requestParameters: FbpAPIFbpOrderDropOffDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать информацию о поставке на drop-off пункт + */ + fbpAPIFbpOrderDropOffDlvEdit(clientId: string, apiKey: string, v1FbpOrderDropOffDlvEditRequest: V1FbpOrderDropOffDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить график работы drop-off пункта + */ + fbpAPIFbpOrderDropOffTimetableRaw(requestParameters: FbpAPIFbpOrderDropOffTimetableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить график работы drop-off пункта + */ + fbpAPIFbpOrderDropOffTimetable(clientId: string, apiKey: string, v1FbpOrderDropOffTimetableRequest: V1FbpOrderDropOffTimetableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/OrderDropOffFBP.js b/dist/esm/apis/OrderDropOffFBP.js new file mode 100644 index 0000000..2f5a29c --- /dev/null +++ b/dist/esm/apis/OrderDropOffFBP.js @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1FbpOrderDropOffCancelRequestToJSON, V1FbpOrderDropOffCancelResponseFromJSON, V1FbpOrderDropOffDlvEditRequestToJSON, V1FbpOrderDropOffDlvEditResponseFromJSON, V1FbpOrderDropOffTimetableRequestToJSON, V1FbpOrderDropOffTimetableResponseFromJSON, } from '../models/index'; +/** + * + */ +export class OrderDropOffFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку drop-off + */ + fbpAPIFbpOrderDropOffCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpAPIFbpOrderDropOffCancel().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpAPIFbpOrderDropOffCancel().'); + } + if (requestParameters['v1FbpOrderDropOffCancelRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDropOffCancelRequest', 'Required parameter "v1FbpOrderDropOffCancelRequest" was null or undefined when calling fbpAPIFbpOrderDropOffCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/order/drop-off/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderDropOffCancelRequestToJSON(requestParameters['v1FbpOrderDropOffCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderDropOffCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить поставку drop-off + */ + fbpAPIFbpOrderDropOffCancel(clientId, apiKey, v1FbpOrderDropOffCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDropOffCancelRaw({ clientId: clientId, apiKey: apiKey, v1FbpOrderDropOffCancelRequest: v1FbpOrderDropOffCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать информацию о поставке на drop-off пункт + */ + fbpAPIFbpOrderDropOffDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpAPIFbpOrderDropOffDlvEdit().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpAPIFbpOrderDropOffDlvEdit().'); + } + if (requestParameters['v1FbpOrderDropOffDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDropOffDlvEditRequest', 'Required parameter "v1FbpOrderDropOffDlvEditRequest" was null or undefined when calling fbpAPIFbpOrderDropOffDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/order/drop-off/dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderDropOffDlvEditRequestToJSON(requestParameters['v1FbpOrderDropOffDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderDropOffDlvEditResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отредактировать информацию о поставке на drop-off пункт + */ + fbpAPIFbpOrderDropOffDlvEdit(clientId, apiKey, v1FbpOrderDropOffDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDropOffDlvEditRaw({ clientId: clientId, apiKey: apiKey, v1FbpOrderDropOffDlvEditRequest: v1FbpOrderDropOffDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить график работы drop-off пункта + */ + fbpAPIFbpOrderDropOffTimetableRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling fbpAPIFbpOrderDropOffTimetable().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling fbpAPIFbpOrderDropOffTimetable().'); + } + if (requestParameters['v1FbpOrderDropOffTimetableRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderDropOffTimetableRequest', 'Required parameter "v1FbpOrderDropOffTimetableRequest" was null or undefined when calling fbpAPIFbpOrderDropOffTimetable().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/fbp/order/drop-off/timetable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderDropOffTimetableRequestToJSON(requestParameters['v1FbpOrderDropOffTimetableRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderDropOffTimetableResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Получить график работы drop-off пункта + */ + fbpAPIFbpOrderDropOffTimetable(clientId, apiKey, v1FbpOrderDropOffTimetableRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderDropOffTimetableRaw({ clientId: clientId, apiKey: apiKey, v1FbpOrderDropOffTimetableRequest: v1FbpOrderDropOffTimetableRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/OrderPickupFBP.d.ts b/dist/esm/apis/OrderPickupFBP.d.ts new file mode 100644 index 0000000..79bcd32 --- /dev/null +++ b/dist/esm/apis/OrderPickupFBP.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1FbpOrderPickUpCancelRequest, V1FbpOrderPickUpCancelResponse, V1FbpOrderPickUpDlvEditRequest, V1FbpOrderPickUpDlvEditResponse } from '../models/index'; +export interface FbpAPIFbpOrderPickUpCancelRequest { + v1FbpOrderPickUpCancelRequest: V1FbpOrderPickUpCancelRequest; +} +export interface FbpAPIFbpOrderPickUpDlvEditRequest { + v1FbpOrderPickUpDlvEditRequest: V1FbpOrderPickUpDlvEditRequest; +} +/** + * + */ +export declare class OrderPickupFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить pick-up поставку + */ + fbpAPIFbpOrderPickUpCancelRaw(requestParameters: FbpAPIFbpOrderPickUpCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить pick-up поставку + */ + fbpAPIFbpOrderPickUpCancel(v1FbpOrderPickUpCancelRequest: V1FbpOrderPickUpCancelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить данные о точке забора + */ + fbpAPIFbpOrderPickUpDlvEditRaw(requestParameters: FbpAPIFbpOrderPickUpDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить данные о точке забора + */ + fbpAPIFbpOrderPickUpDlvEdit(v1FbpOrderPickUpDlvEditRequest: V1FbpOrderPickUpDlvEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/OrderPickupFBP.js b/dist/esm/apis/OrderPickupFBP.js new file mode 100644 index 0000000..0b5bd91 --- /dev/null +++ b/dist/esm/apis/OrderPickupFBP.js @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1FbpOrderPickUpCancelRequestToJSON, V1FbpOrderPickUpCancelResponseFromJSON, V1FbpOrderPickUpDlvEditRequestToJSON, V1FbpOrderPickUpDlvEditResponseFromJSON, } from '../models/index'; +/** + * + */ +export class OrderPickupFBP extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить pick-up поставку + */ + fbpAPIFbpOrderPickUpCancelRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderPickUpCancelRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderPickUpCancelRequest', 'Required parameter "v1FbpOrderPickUpCancelRequest" was null or undefined when calling fbpAPIFbpOrderPickUpCancel().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/pick-up/cancel`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderPickUpCancelRequestToJSON(requestParameters['v1FbpOrderPickUpCancelRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderPickUpCancelResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Отменить pick-up поставку + */ + fbpAPIFbpOrderPickUpCancel(v1FbpOrderPickUpCancelRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderPickUpCancelRaw({ v1FbpOrderPickUpCancelRequest: v1FbpOrderPickUpCancelRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить данные о точке забора + */ + fbpAPIFbpOrderPickUpDlvEditRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1FbpOrderPickUpDlvEditRequest'] == null) { + throw new runtime.RequiredError('v1FbpOrderPickUpDlvEditRequest', 'Required parameter "v1FbpOrderPickUpDlvEditRequest" was null or undefined when calling fbpAPIFbpOrderPickUpDlvEdit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/fbp/order/pick-up/dlv/edit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1FbpOrderPickUpDlvEditRequestToJSON(requestParameters['v1FbpOrderPickUpDlvEditRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1FbpOrderPickUpDlvEditResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1700-FBP-metody/) в сообществе разработчиков Ozon for dev. + * Изменить данные о точке забора + */ + fbpAPIFbpOrderPickUpDlvEdit(v1FbpOrderPickUpDlvEditRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.fbpAPIFbpOrderPickUpDlvEditRaw({ v1FbpOrderPickUpDlvEditRequest: v1FbpOrderPickUpDlvEditRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/Pass.d.ts b/dist/esm/apis/Pass.d.ts new file mode 100644 index 0000000..196eb73 --- /dev/null +++ b/dist/esm/apis/Pass.d.ts @@ -0,0 +1,97 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ArrivalpassArrivalPassCreateRequest, ArrivalpassArrivalPassCreateResponse, ArrivalpassArrivalPassDeleteRequest, ArrivalpassArrivalPassListRequest, ArrivalpassArrivalPassListResponse, ArrivalpassArrivalPassUpdateRequest, SellerSellerAPIArrivalPassCreateRequest, SellerSellerAPIArrivalPassCreateResponse, SellerSellerAPIArrivalPassDeleteRequest, SellerSellerAPIArrivalPassUpdateRequest } from '../models/index'; +export interface CarriagePassCreateRequest { + sellerSellerAPIArrivalPassCreateRequest: SellerSellerAPIArrivalPassCreateRequest; +} +export interface CarriagePassDeleteRequest { + sellerSellerAPIArrivalPassDeleteRequest: SellerSellerAPIArrivalPassDeleteRequest; +} +export interface CarriagePassUpdateRequest { + sellerSellerAPIArrivalPassUpdateRequest: SellerSellerAPIArrivalPassUpdateRequest; +} +export interface PassListRequest { + arrivalpassArrivalPassListRequest: ArrivalpassArrivalPassListRequest; +} +export interface ReturnPassCreateRequest { + arrivalpassArrivalPassCreateRequest: ArrivalpassArrivalPassCreateRequest; +} +export interface ReturnPassDeleteRequest { + arrivalpassArrivalPassDeleteRequest: ArrivalpassArrivalPassDeleteRequest; +} +export interface ReturnPassUpdateRequest { + arrivalpassArrivalPassUpdateRequest: ArrivalpassArrivalPassUpdateRequest; +} +/** + * + */ +export declare class Pass extends runtime.BaseAPI { + /** + * Идентификатор созданного пропуска добавится к перевозке. + * Создать пропуск + */ + carriagePassCreateRaw(requestParameters: CarriagePassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Идентификатор созданного пропуска добавится к перевозке. + * Создать пропуск + */ + carriagePassCreate(sellerSellerAPIArrivalPassCreateRequest: SellerSellerAPIArrivalPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить пропуск + */ + carriagePassDeleteRaw(requestParameters: CarriagePassDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить пропуск + */ + carriagePassDelete(sellerSellerAPIArrivalPassDeleteRequest: SellerSellerAPIArrivalPassDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить пропуск + */ + carriagePassUpdateRaw(requestParameters: CarriagePassUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить пропуск + */ + carriagePassUpdate(sellerSellerAPIArrivalPassUpdateRequest: SellerSellerAPIArrivalPassUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список пропусков + */ + passListRaw(requestParameters: PassListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список пропусков + */ + passList(arrivalpassArrivalPassListRequest: ArrivalpassArrivalPassListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Создать пропуск для возврата + */ + returnPassCreateRaw(requestParameters: ReturnPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Создать пропуск для возврата + */ + returnPassCreate(arrivalpassArrivalPassCreateRequest: ArrivalpassArrivalPassCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить пропуск для возврата + */ + returnPassDeleteRaw(requestParameters: ReturnPassDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить пропуск для возврата + */ + returnPassDelete(arrivalpassArrivalPassDeleteRequest: ArrivalpassArrivalPassDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить пропуск для возврата + */ + returnPassUpdateRaw(requestParameters: ReturnPassUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить пропуск для возврата + */ + returnPassUpdate(arrivalpassArrivalPassUpdateRequest: ArrivalpassArrivalPassUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/Pass.js b/dist/esm/apis/Pass.js new file mode 100644 index 0000000..489694c --- /dev/null +++ b/dist/esm/apis/Pass.js @@ -0,0 +1,237 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ArrivalpassArrivalPassCreateRequestToJSON, ArrivalpassArrivalPassCreateResponseFromJSON, ArrivalpassArrivalPassDeleteRequestToJSON, ArrivalpassArrivalPassListRequestToJSON, ArrivalpassArrivalPassListResponseFromJSON, ArrivalpassArrivalPassUpdateRequestToJSON, SellerSellerAPIArrivalPassCreateRequestToJSON, SellerSellerAPIArrivalPassCreateResponseFromJSON, SellerSellerAPIArrivalPassDeleteRequestToJSON, SellerSellerAPIArrivalPassUpdateRequestToJSON, } from '../models/index'; +/** + * + */ +export class Pass extends runtime.BaseAPI { + /** + * Идентификатор созданного пропуска добавится к перевозке. + * Создать пропуск + */ + carriagePassCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerSellerAPIArrivalPassCreateRequest'] == null) { + throw new runtime.RequiredError('sellerSellerAPIArrivalPassCreateRequest', 'Required parameter "sellerSellerAPIArrivalPassCreateRequest" was null or undefined when calling carriagePassCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/pass/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SellerSellerAPIArrivalPassCreateRequestToJSON(requestParameters['sellerSellerAPIArrivalPassCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SellerSellerAPIArrivalPassCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Идентификатор созданного пропуска добавится к перевозке. + * Создать пропуск + */ + carriagePassCreate(sellerSellerAPIArrivalPassCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.carriagePassCreateRaw({ sellerSellerAPIArrivalPassCreateRequest: sellerSellerAPIArrivalPassCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить пропуск + */ + carriagePassDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerSellerAPIArrivalPassDeleteRequest'] == null) { + throw new runtime.RequiredError('sellerSellerAPIArrivalPassDeleteRequest', 'Required parameter "sellerSellerAPIArrivalPassDeleteRequest" was null or undefined when calling carriagePassDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/pass/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SellerSellerAPIArrivalPassDeleteRequestToJSON(requestParameters['sellerSellerAPIArrivalPassDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Удалить пропуск + */ + carriagePassDelete(sellerSellerAPIArrivalPassDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.carriagePassDeleteRaw({ sellerSellerAPIArrivalPassDeleteRequest: sellerSellerAPIArrivalPassDeleteRequest }, initOverrides); + }); + } + /** + * Обновить пропуск + */ + carriagePassUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerSellerAPIArrivalPassUpdateRequest'] == null) { + throw new runtime.RequiredError('sellerSellerAPIArrivalPassUpdateRequest', 'Required parameter "sellerSellerAPIArrivalPassUpdateRequest" was null or undefined when calling carriagePassUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/carriage/pass/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SellerSellerAPIArrivalPassUpdateRequestToJSON(requestParameters['sellerSellerAPIArrivalPassUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Обновить пропуск + */ + carriagePassUpdate(sellerSellerAPIArrivalPassUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.carriagePassUpdateRaw({ sellerSellerAPIArrivalPassUpdateRequest: sellerSellerAPIArrivalPassUpdateRequest }, initOverrides); + }); + } + /** + * Список пропусков + */ + passListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['arrivalpassArrivalPassListRequest'] == null) { + throw new runtime.RequiredError('arrivalpassArrivalPassListRequest', 'Required parameter "arrivalpassArrivalPassListRequest" was null or undefined when calling passList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pass/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ArrivalpassArrivalPassListRequestToJSON(requestParameters['arrivalpassArrivalPassListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ArrivalpassArrivalPassListResponseFromJSON(jsonValue)); + }); + } + /** + * Список пропусков + */ + passList(arrivalpassArrivalPassListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.passListRaw({ arrivalpassArrivalPassListRequest: arrivalpassArrivalPassListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Создать пропуск для возврата + */ + returnPassCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['arrivalpassArrivalPassCreateRequest'] == null) { + throw new runtime.RequiredError('arrivalpassArrivalPassCreateRequest', 'Required parameter "arrivalpassArrivalPassCreateRequest" was null or undefined when calling returnPassCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/return/pass/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ArrivalpassArrivalPassCreateRequestToJSON(requestParameters['arrivalpassArrivalPassCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ArrivalpassArrivalPassCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Создать пропуск для возврата + */ + returnPassCreate(arrivalpassArrivalPassCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnPassCreateRaw({ arrivalpassArrivalPassCreateRequest: arrivalpassArrivalPassCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить пропуск для возврата + */ + returnPassDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['arrivalpassArrivalPassDeleteRequest'] == null) { + throw new runtime.RequiredError('arrivalpassArrivalPassDeleteRequest', 'Required parameter "arrivalpassArrivalPassDeleteRequest" was null or undefined when calling returnPassDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/return/pass/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ArrivalpassArrivalPassDeleteRequestToJSON(requestParameters['arrivalpassArrivalPassDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Удалить пропуск для возврата + */ + returnPassDelete(arrivalpassArrivalPassDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.returnPassDeleteRaw({ arrivalpassArrivalPassDeleteRequest: arrivalpassArrivalPassDeleteRequest }, initOverrides); + }); + } + /** + * Обновить пропуск для возврата + */ + returnPassUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['arrivalpassArrivalPassUpdateRequest'] == null) { + throw new runtime.RequiredError('arrivalpassArrivalPassUpdateRequest', 'Required parameter "arrivalpassArrivalPassUpdateRequest" was null or undefined when calling returnPassUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/return/pass/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ArrivalpassArrivalPassUpdateRequestToJSON(requestParameters['arrivalpassArrivalPassUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Обновить пропуск для возврата + */ + returnPassUpdate(arrivalpassArrivalPassUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.returnPassUpdateRaw({ arrivalpassArrivalPassUpdateRequest: arrivalpassArrivalPassUpdateRequest }, initOverrides); + }); + } +} diff --git a/dist/esm/apis/PolygonAPI.d.ts b/dist/esm/apis/PolygonAPI.d.ts new file mode 100644 index 0000000..d72573f --- /dev/null +++ b/dist/esm/apis/PolygonAPI.d.ts @@ -0,0 +1,113 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Polygonv1PolygonBindRequest, Polygonv1PolygonCreateRequest, Polygonv1PolygonCreateResponse, V1PolygonDeleteRequest, V1PolygonListRequest, V1PolygonListResponse, V1PolygonTimeCoordinatesUpdateRequest, V1PolygonTimeSetRequest, V2PolygonBindRequest } from '../models/index'; +export interface PolygonAPIBindPolygonRequest { + clientId: string; + apiKey: string; + polygonv1PolygonBindRequest: Polygonv1PolygonBindRequest; +} +export interface PolygonAPICreatePolygonRequest { + clientId: string; + apiKey: string; + polygonv1PolygonCreateRequest: Polygonv1PolygonCreateRequest; +} +export interface PolygonBindRequest { + clientId: string; + apiKey: string; + v2PolygonBindRequest?: V2PolygonBindRequest; +} +export interface PolygonDeleteRequest { + clientId: string; + apiKey: string; + v1PolygonDeleteRequest?: V1PolygonDeleteRequest; +} +export interface PolygonListRequest { + clientId: string; + apiKey: string; + v1PolygonListRequest?: V1PolygonListRequest; +} +export interface PolygonTimeCoordinatesUpdateRequest { + clientId: string; + apiKey: string; + v1PolygonTimeCoordinatesUpdateRequest?: V1PolygonTimeCoordinatesUpdateRequest; +} +export interface PolygonTimeSetRequest { + clientId: string; + apiKey: string; + v1PolygonTimeSetRequest?: V1PolygonTimeSetRequest; +} +/** + * + */ +export declare class PolygonAPI extends runtime.BaseAPI { + /** + * + * Свяжите метод доставки с полигоном доставки + */ + polygonAPIBindPolygonRaw(requestParameters: PolygonAPIBindPolygonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Свяжите метод доставки с полигоном доставки + */ + polygonAPIBindPolygon(clientId: string, apiKey: string, polygonv1PolygonBindRequest: Polygonv1PolygonBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете добавить полигон к методу доставки. Создайте полигон, получив его координаты на https://geojson.io: отметьте на карте минимум 3 точки и соедините их линиями. + * Создайте полигон доставки + */ + polygonAPICreatePolygonRaw(requestParameters: PolygonAPICreatePolygonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете добавить полигон к методу доставки. Создайте полигон, получив его координаты на https://geojson.io: отметьте на карте минимум 3 точки и соедините их линиями. + * Создайте полигон доставки + */ + polygonAPICreatePolygon(clientId: string, apiKey: string, polygonv1PolygonCreateRequest: Polygonv1PolygonCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Связать метод доставки с полигоном + */ + polygonBindRaw(requestParameters: PolygonBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Связать метод доставки с полигоном + */ + polygonBind(clientId: string, apiKey: string, v2PolygonBindRequest?: V2PolygonBindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить полигон из области доставки + */ + polygonDeleteRaw(requestParameters: PolygonDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить полигон из области доставки + */ + polygonDelete(clientId: string, apiKey: string, v1PolygonDeleteRequest?: V1PolygonDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список установленных полигонов на метод доставки + */ + polygonListRaw(requestParameters: PolygonListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список установленных полигонов на метод доставки + */ + polygonList(clientId: string, apiKey: string, v1PolygonListRequest?: V1PolygonListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить координаты полигона доставки + */ + polygonTimeCoordinatesUpdateRaw(requestParameters: PolygonTimeCoordinatesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить координаты полигона доставки + */ + polygonTimeCoordinatesUpdate(clientId: string, apiKey: string, v1PolygonTimeCoordinatesUpdateRequest?: V1PolygonTimeCoordinatesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Установить новое время доставки в полигоне + */ + polygonTimeSetRaw(requestParameters: PolygonTimeSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Установить новое время доставки в полигоне + */ + polygonTimeSet(clientId: string, apiKey: string, v1PolygonTimeSetRequest?: V1PolygonTimeSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/PolygonAPI.js b/dist/esm/apis/PolygonAPI.js new file mode 100644 index 0000000..dbb6a7a --- /dev/null +++ b/dist/esm/apis/PolygonAPI.js @@ -0,0 +1,308 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { Polygonv1PolygonBindRequestToJSON, Polygonv1PolygonCreateRequestToJSON, Polygonv1PolygonCreateResponseFromJSON, V1PolygonDeleteRequestToJSON, V1PolygonListRequestToJSON, V1PolygonListResponseFromJSON, V1PolygonTimeCoordinatesUpdateRequestToJSON, V1PolygonTimeSetRequestToJSON, V2PolygonBindRequestToJSON, } from '../models/index'; +/** + * + */ +export class PolygonAPI extends runtime.BaseAPI { + /** + * + * Свяжите метод доставки с полигоном доставки + */ + polygonAPIBindPolygonRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonAPIBindPolygon().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonAPIBindPolygon().'); + } + if (requestParameters['polygonv1PolygonBindRequest'] == null) { + throw new runtime.RequiredError('polygonv1PolygonBindRequest', 'Required parameter "polygonv1PolygonBindRequest" was null or undefined when calling polygonAPIBindPolygon().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/bind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Polygonv1PolygonBindRequestToJSON(requestParameters['polygonv1PolygonBindRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * + * Свяжите метод доставки с полигоном доставки + */ + polygonAPIBindPolygon(clientId, apiKey, polygonv1PolygonBindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.polygonAPIBindPolygonRaw({ clientId: clientId, apiKey: apiKey, polygonv1PolygonBindRequest: polygonv1PolygonBindRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете добавить полигон к методу доставки. Создайте полигон, получив его координаты на https://geojson.io: отметьте на карте минимум 3 точки и соедините их линиями. + * Создайте полигон доставки + */ + polygonAPICreatePolygonRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonAPICreatePolygon().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonAPICreatePolygon().'); + } + if (requestParameters['polygonv1PolygonCreateRequest'] == null) { + throw new runtime.RequiredError('polygonv1PolygonCreateRequest', 'Required parameter "polygonv1PolygonCreateRequest" was null or undefined when calling polygonAPICreatePolygon().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Polygonv1PolygonCreateRequestToJSON(requestParameters['polygonv1PolygonCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Polygonv1PolygonCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете добавить полигон к методу доставки. Создайте полигон, получив его координаты на https://geojson.io: отметьте на карте минимум 3 точки и соедините их линиями. + * Создайте полигон доставки + */ + polygonAPICreatePolygon(clientId, apiKey, polygonv1PolygonCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.polygonAPICreatePolygonRaw({ clientId: clientId, apiKey: apiKey, polygonv1PolygonCreateRequest: polygonv1PolygonCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Связать метод доставки с полигоном + */ + polygonBindRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonBind().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonBind().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/polygon/bind`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2PolygonBindRequestToJSON(requestParameters['v2PolygonBindRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Связать метод доставки с полигоном + */ + polygonBind(clientId, apiKey, v2PolygonBindRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.polygonBindRaw({ clientId: clientId, apiKey: apiKey, v2PolygonBindRequest: v2PolygonBindRequest }, initOverrides); + }); + } + /** + * Удалить полигон из области доставки + */ + polygonDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PolygonDeleteRequestToJSON(requestParameters['v1PolygonDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Удалить полигон из области доставки + */ + polygonDelete(clientId, apiKey, v1PolygonDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.polygonDeleteRaw({ clientId: clientId, apiKey: apiKey, v1PolygonDeleteRequest: v1PolygonDeleteRequest }, initOverrides); + }); + } + /** + * Получить список установленных полигонов на метод доставки + */ + polygonListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PolygonListRequestToJSON(requestParameters['v1PolygonListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1PolygonListResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список установленных полигонов на метод доставки + */ + polygonList(clientId, apiKey, v1PolygonListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.polygonListRaw({ clientId: clientId, apiKey: apiKey, v1PolygonListRequest: v1PolygonListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Обновить координаты полигона доставки + */ + polygonTimeCoordinatesUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonTimeCoordinatesUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonTimeCoordinatesUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/time/coordinates/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PolygonTimeCoordinatesUpdateRequestToJSON(requestParameters['v1PolygonTimeCoordinatesUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Обновить координаты полигона доставки + */ + polygonTimeCoordinatesUpdate(clientId, apiKey, v1PolygonTimeCoordinatesUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.polygonTimeCoordinatesUpdateRaw({ clientId: clientId, apiKey: apiKey, v1PolygonTimeCoordinatesUpdateRequest: v1PolygonTimeCoordinatesUpdateRequest }, initOverrides); + }); + } + /** + * Установить новое время доставки в полигоне + */ + polygonTimeSetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling polygonTimeSet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling polygonTimeSet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/polygon/time/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1PolygonTimeSetRequestToJSON(requestParameters['v1PolygonTimeSetRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Установить новое время доставки в полигоне + */ + polygonTimeSet(clientId, apiKey, v1PolygonTimeSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.polygonTimeSetRaw({ clientId: clientId, apiKey: apiKey, v1PolygonTimeSetRequest: v1PolygonTimeSetRequest }, initOverrides); + }); + } +} diff --git a/dist/esm/apis/Premium.d.ts b/dist/esm/apis/Premium.d.ts new file mode 100644 index 0000000..3c34f00 --- /dev/null +++ b/dist/esm/apis/Premium.d.ts @@ -0,0 +1,168 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { AnalyticsAnalyticsGetDataRequest, AnalyticsAnalyticsGetDataResponse, ChatChatSendMessageRequest, ChatChatSendMessageResponse, ChatChatStartRequest, ChatChatStartResponse, ChatRead, GetRealizationReportByDayResponse, V1AnalyticsProductQueriesDetailsRequest, V1AnalyticsProductQueriesDetailsResponse, V1AnalyticsProductQueriesRequest, V1AnalyticsProductQueriesResponse, V1GetRealizationReportByDayRequest, V1ProductPricesDetailsRequest, V1ProductPricesDetailsResponse, V1SearchQueriesTextRequest, V1SearchQueriesTextResponse, V1SearchQueriesTopRequest, V1SearchQueriesTopResponse, V2ChatReadResponse } from '../models/index'; +export interface AnalyticsAPIAnalyticsGetDataRequest { + clientId: string; + apiKey: string; + analyticsAnalyticsGetDataRequest: AnalyticsAnalyticsGetDataRequest; +} +export interface AnalyticsAPIAnalyticsProductQueriesRequest { + clientId: string; + apiKey: string; + v1AnalyticsProductQueriesRequest: V1AnalyticsProductQueriesRequest; +} +export interface AnalyticsAPIAnalyticsProductQueriesDetailsRequest { + clientId: string; + apiKey: string; + v1AnalyticsProductQueriesDetailsRequest: V1AnalyticsProductQueriesDetailsRequest; +} +export interface ChatAPIChatReadV2Request { + clientId: string; + apiKey: string; + chatRead: ChatRead; +} +export interface ChatAPIChatSendMessageRequest { + clientId: string; + apiKey: string; + chatChatSendMessageRequest: ChatChatSendMessageRequest; +} +export interface ChatAPIChatStartRequest { + clientId: string; + apiKey: string; + chatChatStartRequest: ChatChatStartRequest; +} +export interface FinanceAPIGetRealizationByDayReportV1Request { + clientId: string; + apiKey: string; + v1GetRealizationReportByDayRequest: V1GetRealizationReportByDayRequest; +} +export interface ProductPricesDetailsRequest { + clientId: string; + apiKey: string; + v1ProductPricesDetailsRequest: V1ProductPricesDetailsRequest; +} +export interface SearchQueriesAPISearchQueriesTextRequest { + clientId: string; + apiKey: string; + v1SearchQueriesTextRequest: V1SearchQueriesTextRequest; +} +export interface SearchQueriesAPISearchQueriesTopRequest { + clientId: string; + apiKey: string; + v1SearchQueriesTopRequest: V1SearchQueriesTopRequest; +} +/** + * + */ +export declare class Premium extends runtime.BaseAPI { + /** + * Уĸажите период и метриĸи, ĸоторые нужно посчитать. В ответе будет аналитиĸа, сгруппированная по параметру `dimensions`. Для продавцов без подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): - доступны данные за последние 3 месяца, - есть ограничения по способам группировки данных и метрикам. Для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) ограничений нет. Метод можно использовать не больше 1 раза в минуту. Соответствует разделу **Аналитика → Графики** в личном кабинете. + * Данные аналитики + */ + analyticsAPIAnalyticsGetDataRaw(requestParameters: AnalyticsAPIAnalyticsGetDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Уĸажите период и метриĸи, ĸоторые нужно посчитать. В ответе будет аналитиĸа, сгруппированная по параметру `dimensions`. Для продавцов без подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): - доступны данные за последние 3 месяца, - есть ограничения по способам группировки данных и метрикам. Для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) ограничений нет. Метод можно использовать не больше 1 раза в минуту. Соответствует разделу **Аналитика → Графики** в личном кабинете. + * Данные аналитики + */ + analyticsAPIAnalyticsGetData(clientId: string, apiKey: string, analyticsAnalyticsGetDataRequest: AnalyticsAnalyticsGetDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить данные о запросах ваших товаров. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить информацию о запросах моих товаров + */ + analyticsAPIAnalyticsProductQueriesRaw(requestParameters: AnalyticsAPIAnalyticsProductQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить данные о запросах ваших товаров. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить информацию о запросах моих товаров + */ + analyticsAPIAnalyticsProductQueries(clientId: string, apiKey: string, v1AnalyticsProductQueriesRequest: V1AnalyticsProductQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте метод, чтобы получить данные по запросам на конкретный товар. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен просмотру данных по товару на вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить детализацию запросов по товару + */ + analyticsAPIAnalyticsProductQueriesDetailsRaw(requestParameters: AnalyticsAPIAnalyticsProductQueriesDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, чтобы получить данные по запросам на конкретный товар. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен просмотру данных по товару на вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить детализацию запросов по товару + */ + analyticsAPIAnalyticsProductQueriesDetails(clientId: string, apiKey: string, v1AnalyticsProductQueriesDetailsRequest: V1AnalyticsProductQueriesDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод для отметки выбранного сообщения и сообщений до него прочитанными.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * Отметить сообщения как прочитанные + */ + chatAPIChatReadV2Raw(requestParameters: ChatAPIChatReadV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод для отметки выбранного сообщения и сообщений до него прочитанными.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * Отметить сообщения как прочитанные + */ + chatAPIChatReadV2(clientId: string, apiKey: string, chatRead: ChatRead, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Отправляет сообщение в существующий чат по его идентификатору.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить сообщение в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить сообщение покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить сообщение + */ + chatAPIChatSendMessageRaw(requestParameters: ChatAPIChatSendMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Отправляет сообщение в существующий чат по его идентификатору.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить сообщение в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить сообщение покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить сообщение + */ + chatAPIChatSendMessage(clientId: string, apiKey: string, chatChatSendMessageRequest: ChatChatSendMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Создает новый чат с покупателем по отправлению. Например, чтобы уточнить адрес или модель товара. Для отправлений: - FBO — начать чат может только покупатель. - FBS и rFBS — вы можете открыть чат в течение 72 часов после оплаты или доставки отправления. + * Создать новый чат + */ + chatAPIChatStartRaw(requestParameters: ChatAPIChatStartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Создает новый чат с покупателем по отправлению. Например, чтобы уточнить адрес или модель товара. Для отправлений: - FBO — начать чат может только покупатель. - FBS и rFBS — вы можете открыть чат в течение 72 часов после оплаты или доставки отправления. + * Создать новый чат + */ + chatAPIChatStart(clientId: string, apiKey: string, chatChatStartRequest: ChatChatStartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Возвращает данные о суммах реализации из [отчёта о реализации товаров](#operation/FinanceAPI_GetRealizationReportV2) за день. Отмены и невыкупы не включаются. Данные доступны не более чем за 32 календарных дня от текущей даты. + * Отчёт о реализации товаров за день + */ + financeAPIGetRealizationByDayReportV1Raw(requestParameters: FinanceAPIGetRealizationByDayReportV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Возвращает данные о суммах реализации из [отчёта о реализации товаров](#operation/FinanceAPI_GetRealizationReportV2) за день. Отмены и невыкупы не включаются. Данные доступны не более чем за 32 календарных дня от текущей даты. + * Отчёт о реализации товаров за день + */ + financeAPIGetRealizationByDayReportV1(clientId: string, apiKey: string, v1GetRealizationReportByDayRequest: V1GetRealizationReportByDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской Premium Pro. + * Получить подробную информацию о ценах товаров + */ + productPricesDetailsRaw(requestParameters: ProductPricesDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской Premium Pro. + * Получить подробную информацию о ценах товаров + */ + productPricesDetails(clientId: string, apiKey: string, v1ProductPricesDetailsRequest: V1ProductPricesDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список поисковых запросов по тексту + */ + searchQueriesAPISearchQueriesTextRaw(requestParameters: SearchQueriesAPISearchQueriesTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список поисковых запросов по тексту + */ + searchQueriesAPISearchQueriesText(clientId: string, apiKey: string, v1SearchQueriesTextRequest: V1SearchQueriesTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список популярных поисковых запросов + */ + searchQueriesAPISearchQueriesTopRaw(requestParameters: SearchQueriesAPISearchQueriesTopRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список популярных поисковых запросов + */ + searchQueriesAPISearchQueriesTop(clientId: string, apiKey: string, v1SearchQueriesTopRequest: V1SearchQueriesTopRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/Premium.js b/dist/esm/apis/Premium.js new file mode 100644 index 0000000..68f084d --- /dev/null +++ b/dist/esm/apis/Premium.js @@ -0,0 +1,469 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { AnalyticsAnalyticsGetDataRequestToJSON, AnalyticsAnalyticsGetDataResponseFromJSON, ChatChatSendMessageRequestToJSON, ChatChatSendMessageResponseFromJSON, ChatChatStartRequestToJSON, ChatChatStartResponseFromJSON, ChatReadToJSON, GetRealizationReportByDayResponseFromJSON, V1AnalyticsProductQueriesDetailsRequestToJSON, V1AnalyticsProductQueriesDetailsResponseFromJSON, V1AnalyticsProductQueriesRequestToJSON, V1AnalyticsProductQueriesResponseFromJSON, V1GetRealizationReportByDayRequestToJSON, V1ProductPricesDetailsRequestToJSON, V1ProductPricesDetailsResponseFromJSON, V1SearchQueriesTextRequestToJSON, V1SearchQueriesTextResponseFromJSON, V1SearchQueriesTopRequestToJSON, V1SearchQueriesTopResponseFromJSON, V2ChatReadResponseFromJSON, } from '../models/index'; +/** + * + */ +export class Premium extends runtime.BaseAPI { + /** + * Уĸажите период и метриĸи, ĸоторые нужно посчитать. В ответе будет аналитиĸа, сгруппированная по параметру `dimensions`. Для продавцов без подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): - доступны данные за последние 3 месяца, - есть ограничения по способам группировки данных и метрикам. Для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) ограничений нет. Метод можно использовать не больше 1 раза в минуту. Соответствует разделу **Аналитика → Графики** в личном кабинете. + * Данные аналитики + */ + analyticsAPIAnalyticsGetDataRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsGetData().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsGetData().'); + } + if (requestParameters['analyticsAnalyticsGetDataRequest'] == null) { + throw new runtime.RequiredError('analyticsAnalyticsGetDataRequest', 'Required parameter "analyticsAnalyticsGetDataRequest" was null or undefined when calling analyticsAPIAnalyticsGetData().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/data`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AnalyticsAnalyticsGetDataRequestToJSON(requestParameters['analyticsAnalyticsGetDataRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => AnalyticsAnalyticsGetDataResponseFromJSON(jsonValue)); + }); + } + /** + * Уĸажите период и метриĸи, ĸоторые нужно посчитать. В ответе будет аналитиĸа, сгруппированная по параметру `dimensions`. Для продавцов без подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): - доступны данные за последние 3 месяца, - есть ограничения по способам группировки данных и метрикам. Для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) ограничений нет. Метод можно использовать не больше 1 раза в минуту. Соответствует разделу **Аналитика → Графики** в личном кабинете. + * Данные аналитики + */ + analyticsAPIAnalyticsGetData(clientId, apiKey, analyticsAnalyticsGetDataRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsGetDataRaw({ clientId: clientId, apiKey: apiKey, analyticsAnalyticsGetDataRequest: analyticsAnalyticsGetDataRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить данные о запросах ваших товаров. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить информацию о запросах моих товаров + */ + analyticsAPIAnalyticsProductQueriesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsProductQueries().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsProductQueries().'); + } + if (requestParameters['v1AnalyticsProductQueriesRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsProductQueriesRequest', 'Required parameter "v1AnalyticsProductQueriesRequest" was null or undefined when calling analyticsAPIAnalyticsProductQueries().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/product-queries`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AnalyticsProductQueriesRequestToJSON(requestParameters['v1AnalyticsProductQueriesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AnalyticsProductQueriesResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить данные о запросах ваших товаров. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить информацию о запросах моих товаров + */ + analyticsAPIAnalyticsProductQueries(clientId, apiKey, v1AnalyticsProductQueriesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsProductQueriesRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsProductQueriesRequest: v1AnalyticsProductQueriesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте метод, чтобы получить данные по запросам на конкретный товар. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен просмотру данных по товару на вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить детализацию запросов по товару + */ + analyticsAPIAnalyticsProductQueriesDetailsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling analyticsAPIAnalyticsProductQueriesDetails().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling analyticsAPIAnalyticsProductQueriesDetails().'); + } + if (requestParameters['v1AnalyticsProductQueriesDetailsRequest'] == null) { + throw new runtime.RequiredError('v1AnalyticsProductQueriesDetailsRequest', 'Required parameter "v1AnalyticsProductQueriesDetailsRequest" was null or undefined when calling analyticsAPIAnalyticsProductQueriesDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/analytics/product-queries/details`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AnalyticsProductQueriesDetailsRequestToJSON(requestParameters['v1AnalyticsProductQueriesDetailsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AnalyticsProductQueriesDetailsResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, чтобы получить данные по запросам на конкретный товар. Полная аналитика доступна с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Без подписки вы можете посмотреть часть показателей. Метод аналогичен просмотру данных по товару на вкладке **Товары в поиске → Запросы моего товара** в личном кабинете. Аналитику по запросам можно проверить за определённые даты. Для этого укажите интервал в полях `date_from` и `date_to`. Данные за последний месяц доступны в любом интервале, кроме текущей даты — расчёт происходит в течение 1–2 дней. Аналитика за даты раньше месяца назад доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program), [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro) и только по неделям — в запросе укажите параметр `date_from`. [Подробнее о работе с запросами товара в Базе знаний продавца](https://seller-edu.ozon.ru/analytics-and-metrics/graphs/analitika-po-zaprosu) + * Получить детализацию запросов по товару + */ + analyticsAPIAnalyticsProductQueriesDetails(clientId, apiKey, v1AnalyticsProductQueriesDetailsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.analyticsAPIAnalyticsProductQueriesDetailsRaw({ clientId: clientId, apiKey: apiKey, v1AnalyticsProductQueriesDetailsRequest: v1AnalyticsProductQueriesDetailsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод для отметки выбранного сообщения и сообщений до него прочитанными.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * Отметить сообщения как прочитанные + */ + chatAPIChatReadV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatReadV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatReadV2().'); + } + if (requestParameters['chatRead'] == null) { + throw new runtime.RequiredError('chatRead', 'Required parameter "chatRead" was null or undefined when calling chatAPIChatReadV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/chat/read`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ChatReadToJSON(requestParameters['chatRead']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2ChatReadResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод для отметки выбранного сообщения и сообщений до него прочитанными.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). + * Отметить сообщения как прочитанные + */ + chatAPIChatReadV2(clientId, apiKey, chatRead, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatReadV2Raw({ clientId: clientId, apiKey: apiKey, chatRead: chatRead }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Отправляет сообщение в существующий чат по его идентификатору.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить сообщение в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить сообщение покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить сообщение + */ + chatAPIChatSendMessageRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatSendMessage().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatSendMessage().'); + } + if (requestParameters['chatChatSendMessageRequest'] == null) { + throw new runtime.RequiredError('chatChatSendMessageRequest', 'Required parameter "chatChatSendMessageRequest" was null or undefined when calling chatAPIChatSendMessage().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/chat/send/message`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ChatChatSendMessageRequestToJSON(requestParameters['chatChatSendMessageRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ChatChatSendMessageResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Отправляет сообщение в существующий чат по его идентификатору.

Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить сообщение в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить сообщение покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя. + * Отправить сообщение + */ + chatAPIChatSendMessage(clientId, apiKey, chatChatSendMessageRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatSendMessageRaw({ clientId: clientId, apiKey: apiKey, chatChatSendMessageRequest: chatChatSendMessageRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Создает новый чат с покупателем по отправлению. Например, чтобы уточнить адрес или модель товара. Для отправлений: - FBO — начать чат может только покупатель. - FBS и rFBS — вы можете открыть чат в течение 72 часов после оплаты или доставки отправления. + * Создать новый чат + */ + chatAPIChatStartRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling chatAPIChatStart().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling chatAPIChatStart().'); + } + if (requestParameters['chatChatStartRequest'] == null) { + throw new runtime.RequiredError('chatChatStartRequest', 'Required parameter "chatChatStartRequest" was null or undefined when calling chatAPIChatStart().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/chat/start`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ChatChatStartRequestToJSON(requestParameters['chatChatStartRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ChatChatStartResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Создает новый чат с покупателем по отправлению. Например, чтобы уточнить адрес или модель товара. Для отправлений: - FBO — начать чат может только покупатель. - FBS и rFBS — вы можете открыть чат в течение 72 часов после оплаты или доставки отправления. + * Создать новый чат + */ + chatAPIChatStart(clientId, apiKey, chatChatStartRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.chatAPIChatStartRaw({ clientId: clientId, apiKey: apiKey, chatChatStartRequest: chatChatStartRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Возвращает данные о суммах реализации из [отчёта о реализации товаров](#operation/FinanceAPI_GetRealizationReportV2) за день. Отмены и невыкупы не включаются. Данные доступны не более чем за 32 календарных дня от текущей даты. + * Отчёт о реализации товаров за день + */ + financeAPIGetRealizationByDayReportV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIGetRealizationByDayReportV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIGetRealizationByDayReportV1().'); + } + if (requestParameters['v1GetRealizationReportByDayRequest'] == null) { + throw new runtime.RequiredError('v1GetRealizationReportByDayRequest', 'Required parameter "v1GetRealizationReportByDayRequest" was null or undefined when calling financeAPIGetRealizationByDayReportV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/realization/by-day`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetRealizationReportByDayRequestToJSON(requestParameters['v1GetRealizationReportByDayRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => GetRealizationReportByDayResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Возвращает данные о суммах реализации из [отчёта о реализации товаров](#operation/FinanceAPI_GetRealizationReportV2) за день. Отмены и невыкупы не включаются. Данные доступны не более чем за 32 календарных дня от текущей даты. + * Отчёт о реализации товаров за день + */ + financeAPIGetRealizationByDayReportV1(clientId, apiKey, v1GetRealizationReportByDayRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIGetRealizationByDayReportV1Raw({ clientId: clientId, apiKey: apiKey, v1GetRealizationReportByDayRequest: v1GetRealizationReportByDayRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской Premium Pro. + * Получить подробную информацию о ценах товаров + */ + productPricesDetailsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productPricesDetails().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productPricesDetails().'); + } + if (requestParameters['v1ProductPricesDetailsRequest'] == null) { + throw new runtime.RequiredError('v1ProductPricesDetailsRequest', 'Required parameter "v1ProductPricesDetailsRequest" was null or undefined when calling productPricesDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/prices/details`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductPricesDetailsRequestToJSON(requestParameters['v1ProductPricesDetailsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductPricesDetailsResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской Premium Pro. + * Получить подробную информацию о ценах товаров + */ + productPricesDetails(clientId, apiKey, v1ProductPricesDetailsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productPricesDetailsRaw({ clientId: clientId, apiKey: apiKey, v1ProductPricesDetailsRequest: v1ProductPricesDetailsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список поисковых запросов по тексту + */ + searchQueriesAPISearchQueriesTextRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling searchQueriesAPISearchQueriesText().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling searchQueriesAPISearchQueriesText().'); + } + if (requestParameters['v1SearchQueriesTextRequest'] == null) { + throw new runtime.RequiredError('v1SearchQueriesTextRequest', 'Required parameter "v1SearchQueriesTextRequest" was null or undefined when calling searchQueriesAPISearchQueriesText().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/search-queries/text`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SearchQueriesTextRequestToJSON(requestParameters['v1SearchQueriesTextRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SearchQueriesTextResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список поисковых запросов по тексту + */ + searchQueriesAPISearchQueriesText(clientId, apiKey, v1SearchQueriesTextRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.searchQueriesAPISearchQueriesTextRaw({ clientId: clientId, apiKey: apiKey, v1SearchQueriesTextRequest: v1SearchQueriesTextRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список популярных поисковых запросов + */ + searchQueriesAPISearchQueriesTopRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling searchQueriesAPISearchQueriesTop().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling searchQueriesAPISearchQueriesTop().'); + } + if (requestParameters['v1SearchQueriesTopRequest'] == null) { + throw new runtime.RequiredError('v1SearchQueriesTopRequest', 'Required parameter "v1SearchQueriesTopRequest" was null or undefined when calling searchQueriesAPISearchQueriesTop().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/search-queries/top`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SearchQueriesTopRequestToJSON(requestParameters['v1SearchQueriesTopRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SearchQueriesTopResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список популярных поисковых запросов + */ + searchQueriesAPISearchQueriesTop(clientId, apiKey, v1SearchQueriesTopRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.searchQueriesAPISearchQueriesTopRaw({ clientId: clientId, apiKey: apiKey, v1SearchQueriesTopRequest: v1SearchQueriesTopRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/PricesStocksAPI.d.ts b/dist/esm/apis/PricesStocksAPI.d.ts new file mode 100644 index 0000000..5504a65 --- /dev/null +++ b/dist/esm/apis/PricesStocksAPI.d.ts @@ -0,0 +1,175 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ProductImportProductsPricesRequest, ProductImportProductsPricesResponse, Productsv1GetProductInfoStocksByWarehouseFbsRequest, Productsv1GetProductInfoStocksByWarehouseFbsResponse, Productv2ProductsStocksRequest, Productv2ProductsStocksResponse, Productv5GetProductInfoPricesV5Request, Productv5GetProductInfoPricesV5Response, V1GetProductInfoDiscountedRequest, V1GetProductInfoDiscountedResponse, V1ProductActionTimerStatusRequest, V1ProductActionTimerStatusResponse, V1ProductActionTimerUpdateRequest, V1ProductInfoWarehouseStocksRequest, V1ProductInfoWarehouseStocksResponse, V1ProductUpdateDiscountRequest, V1ProductUpdateDiscountResponse, V2GetProductInfoStocksByWarehouseFbsRequestV2, V2GetProductInfoStocksByWarehouseFbsResponseV2, V4GetProductInfoStocksRequest, V4GetProductInfoStocksResponse } from '../models/index'; +export interface ProductAPIActionTimerStatusRequest { + clientId: string; + apiKey: string; + v1ProductActionTimerStatusRequest: V1ProductActionTimerStatusRequest; +} +export interface ProductAPIActionTimerUpdateRequest { + clientId: string; + apiKey: string; + v1ProductActionTimerUpdateRequest: V1ProductActionTimerUpdateRequest; +} +export interface ProductAPIGetProductInfoDiscountedRequest { + clientId: string; + apiKey: string; + v1GetProductInfoDiscountedRequest: V1GetProductInfoDiscountedRequest; +} +export interface ProductAPIGetProductInfoPricesRequest { + clientId: string; + apiKey: string; + productv5GetProductInfoPricesV5Request: Productv5GetProductInfoPricesV5Request; +} +export interface ProductAPIGetProductInfoStocksRequest { + clientId: string; + apiKey: string; + v4GetProductInfoStocksRequest: V4GetProductInfoStocksRequest; +} +export interface ProductAPIGetProductInfoStocksByWarehouseFbsV2Request { + clientId: string; + apiKey: string; + v2GetProductInfoStocksByWarehouseFbsRequestV2: V2GetProductInfoStocksByWarehouseFbsRequestV2 | null; +} +export interface ProductAPIImportProductsPricesRequest { + clientId: string; + apiKey: string; + productImportProductsPricesRequest?: ProductImportProductsPricesRequest; +} +export interface ProductAPIProductStocksByWarehouseFbsRequest { + clientId: string; + apiKey: string; + productsv1GetProductInfoStocksByWarehouseFbsRequest: Productsv1GetProductInfoStocksByWarehouseFbsRequest | null; +} +export interface ProductAPIProductUpdateDiscountRequest { + clientId: string; + apiKey: string; + v1ProductUpdateDiscountRequest: V1ProductUpdateDiscountRequest; +} +export interface ProductAPIProductsStocksV2Request { + clientId: string; + apiKey: string; + productv2ProductsStocksRequest: Productv2ProductsStocksRequest; +} +export interface ProductInfoWarehouseStocksRequest { + v1ProductInfoWarehouseStocksRequest?: V1ProductInfoWarehouseStocksRequest; +} +/** + * + */ +export declare class PricesStocksAPI extends runtime.BaseAPI { + /** + * Получить статус установленного таймера + */ + productAPIActionTimerStatusRaw(requestParameters: ProductAPIActionTimerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус установленного таймера + */ + productAPIActionTimerStatus(clientId: string, apiKey: string, v1ProductActionTimerStatusRequest: V1ProductActionTimerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Минимальная цена действует 30 дней после установки. После этого настройка выключается. Вы можете продлить её: вызовите метод повторно и укажите `product_ids`. + * Обновление таймера актуальности минимальной цены + */ + productAPIActionTimerUpdateRaw(requestParameters: ProductAPIActionTimerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Минимальная цена действует 30 дней после установки. После этого настройка выключается. Вы можете продлить её: вызовите метод повторно и укажите `product_ids`. + * Обновление таймера актуальности минимальной цены + */ + productAPIActionTimerUpdate(clientId: string, apiKey: string, v1ProductActionTimerUpdateRequest: V1ProductActionTimerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о состоянии и дефектах уценённого товара по его SKU. Работает только с уценёнными товарами по схеме FBO. Также метод возвращает SKU основного товара. + * Узнать информацию об уценке и основном товаре по SKU уценённого товара + */ + productAPIGetProductInfoDiscountedRaw(requestParameters: ProductAPIGetProductInfoDiscountedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о состоянии и дефектах уценённого товара по его SKU. Работает только с уценёнными товарами по схеме FBO. Также метод возвращает SKU основного товара. + * Узнать информацию об уценке и основном товаре по SKU уценённого товара + */ + productAPIGetProductInfoDiscounted(clientId: string, apiKey: string, v1GetProductInfoDiscountedRequest: V1GetProductInfoDiscountedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Получить информацию о цене товара + */ + productAPIGetProductInfoPricesRaw(requestParameters: ProductAPIGetProductInfoPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Получить информацию о цене товара + */ + productAPIGetProductInfoPrices(clientId: string, apiKey: string, productv5GetProductInfoPricesV5Request: Productv5GetProductInfoPricesV5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает информацию о ĸоличестве товаров по схемам FBS, rFBS и FBP: - сĸольĸо единиц есть в наличии, - сĸольĸо зарезервировано поĸупателями. Чтобы получить информацию об остатках по схеме FBO, используйте метод [/v1/analytics/stocks](#operation/AnalyticsAPI_AnalyticsStocks). + * Информация о количестве товаров + */ + productAPIGetProductInfoStocksRaw(requestParameters: ProductAPIGetProductInfoStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию о ĸоличестве товаров по схемам FBS, rFBS и FBP: - сĸольĸо единиц есть в наличии, - сĸольĸо зарезервировано поĸупателями. Чтобы получить информацию об остатках по схеме FBO, используйте метод [/v1/analytics/stocks](#operation/AnalyticsAPI_AnalyticsStocks). + * Информация о количестве товаров + */ + productAPIGetProductInfoStocks(clientId: string, apiKey: string, v4GetProductInfoStocksRequest: V4GetProductInfoStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию об остатках на складах продавца + */ + productAPIGetProductInfoStocksByWarehouseFbsV2Raw(requestParameters: ProductAPIGetProductInfoStocksByWarehouseFbsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию об остатках на складах продавца + */ + productAPIGetProductInfoStocksByWarehouseFbsV2(clientId: string, apiKey: string, v2GetProductInfoStocksByWarehouseFbsRequestV2: V2GetProductInfoStocksByWarehouseFbsRequestV2 | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Позволяет изменить цену одного или нескольких товаров. Цену каждого товара можно обновлять не больше 10 раз в час. Чтобы сбросить `old_price`, поставьте `0` у этого параметра. Если у товара установлена минимальная цена и включено автоприменение в акции, отключите его и обновите минимальную цену. Иначе вернётся ошибка `action_price_enabled_min_price_missing`. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить цену + */ + productAPIImportProductsPricesRaw(requestParameters: ProductAPIImportProductsPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Позволяет изменить цену одного или нескольких товаров. Цену каждого товара можно обновлять не больше 10 раз в час. Чтобы сбросить `old_price`, поставьте `0` у этого параметра. Если у товара установлена минимальная цена и включено автоприменение в акции, отключите его и обновите минимальную цену. Иначе вернётся ошибка `action_price_enabled_min_price_missing`. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить цену + */ + productAPIImportProductsPrices(clientId: string, apiKey: string, productImportProductsPricesRequest?: ProductImportProductsPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Передайте в запросе `offer_id` или `sku`. Если укажете оба, будет использован только `sku`. + * Информация об остатках на складах продавца (FBS и rFBS) + */ + productAPIProductStocksByWarehouseFbsRaw(requestParameters: ProductAPIProductStocksByWarehouseFbsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Передайте в запросе `offer_id` или `sku`. Если укажете оба, будет использован только `sku`. + * Информация об остатках на складах продавца (FBS и rFBS) + */ + productAPIProductStocksByWarehouseFbs(clientId: string, apiKey: string, productsv1GetProductInfoStocksByWarehouseFbsRequest: Productsv1GetProductInfoStocksByWarehouseFbsRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для установки размера скидки на уценённые товары, продающиеся по схеме FBS. + * Установить скидку на уценённый товар + */ + productAPIProductUpdateDiscountRaw(requestParameters: ProductAPIProductUpdateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для установки размера скидки на уценённые товары, продающиеся по схеме FBS. + * Установить скидку на уценённый товар + */ + productAPIProductUpdateDiscount(clientId: string, apiKey: string, v1ProductUpdateDiscountRequest: V1ProductUpdateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Позволяет изменить информацию о количестве товара в наличии. За один запрос можно изменить наличие для 100 пар товар-склад. С одного аккаунта продавца можно отправить до 80 запросов в минуту. Вы можете задать наличие товара только после того, как его статус сменится на `price_sent`. Остатки крупногабаритных товаров можно обновлять только на предназначенных для них складах. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить количество товаров на складах + */ + productAPIProductsStocksV2Raw(requestParameters: ProductAPIProductsStocksV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Позволяет изменить информацию о количестве товара в наличии. За один запрос можно изменить наличие для 100 пар товар-склад. С одного аккаунта продавца можно отправить до 80 запросов в минуту. Вы можете задать наличие товара только после того, как его статус сменится на `price_sent`. Остатки крупногабаритных товаров можно обновлять только на предназначенных для них складах. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить количество товаров на складах + */ + productAPIProductsStocksV2(clientId: string, apiKey: string, productv2ProductsStocksRequest: Productv2ProductsStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию по остаткам на складе FBS и rFBS + */ + productInfoWarehouseStocksRaw(requestParameters: ProductInfoWarehouseStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию по остаткам на складе FBS и rFBS + */ + productInfoWarehouseStocks(v1ProductInfoWarehouseStocksRequest?: V1ProductInfoWarehouseStocksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/PricesStocksAPI.js b/dist/esm/apis/PricesStocksAPI.js new file mode 100644 index 0000000..ebbd700 --- /dev/null +++ b/dist/esm/apis/PricesStocksAPI.js @@ -0,0 +1,488 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ProductImportProductsPricesRequestToJSON, ProductImportProductsPricesResponseFromJSON, Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON, Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON, Productv2ProductsStocksRequestToJSON, Productv2ProductsStocksResponseFromJSON, Productv5GetProductInfoPricesV5RequestToJSON, Productv5GetProductInfoPricesV5ResponseFromJSON, V1GetProductInfoDiscountedRequestToJSON, V1GetProductInfoDiscountedResponseFromJSON, V1ProductActionTimerStatusRequestToJSON, V1ProductActionTimerStatusResponseFromJSON, V1ProductActionTimerUpdateRequestToJSON, V1ProductInfoWarehouseStocksRequestToJSON, V1ProductInfoWarehouseStocksResponseFromJSON, V1ProductUpdateDiscountRequestToJSON, V1ProductUpdateDiscountResponseFromJSON, V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON, V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON, V4GetProductInfoStocksRequestToJSON, V4GetProductInfoStocksResponseFromJSON, } from '../models/index'; +/** + * + */ +export class PricesStocksAPI extends runtime.BaseAPI { + /** + * Получить статус установленного таймера + */ + productAPIActionTimerStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIActionTimerStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIActionTimerStatus().'); + } + if (requestParameters['v1ProductActionTimerStatusRequest'] == null) { + throw new runtime.RequiredError('v1ProductActionTimerStatusRequest', 'Required parameter "v1ProductActionTimerStatusRequest" was null or undefined when calling productAPIActionTimerStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/action/timer/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductActionTimerStatusRequestToJSON(requestParameters['v1ProductActionTimerStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductActionTimerStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Получить статус установленного таймера + */ + productAPIActionTimerStatus(clientId, apiKey, v1ProductActionTimerStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIActionTimerStatusRaw({ clientId: clientId, apiKey: apiKey, v1ProductActionTimerStatusRequest: v1ProductActionTimerStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Минимальная цена действует 30 дней после установки. После этого настройка выключается. Вы можете продлить её: вызовите метод повторно и укажите `product_ids`. + * Обновление таймера актуальности минимальной цены + */ + productAPIActionTimerUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIActionTimerUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIActionTimerUpdate().'); + } + if (requestParameters['v1ProductActionTimerUpdateRequest'] == null) { + throw new runtime.RequiredError('v1ProductActionTimerUpdateRequest', 'Required parameter "v1ProductActionTimerUpdateRequest" was null or undefined when calling productAPIActionTimerUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/action/timer/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductActionTimerUpdateRequestToJSON(requestParameters['v1ProductActionTimerUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Минимальная цена действует 30 дней после установки. После этого настройка выключается. Вы можете продлить её: вызовите метод повторно и укажите `product_ids`. + * Обновление таймера актуальности минимальной цены + */ + productAPIActionTimerUpdate(clientId, apiKey, v1ProductActionTimerUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.productAPIActionTimerUpdateRaw({ clientId: clientId, apiKey: apiKey, v1ProductActionTimerUpdateRequest: v1ProductActionTimerUpdateRequest }, initOverrides); + }); + } + /** + * Метод для получения информации о состоянии и дефектах уценённого товара по его SKU. Работает только с уценёнными товарами по схеме FBO. Также метод возвращает SKU основного товара. + * Узнать информацию об уценке и основном товаре по SKU уценённого товара + */ + productAPIGetProductInfoDiscountedRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoDiscounted().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoDiscounted().'); + } + if (requestParameters['v1GetProductInfoDiscountedRequest'] == null) { + throw new runtime.RequiredError('v1GetProductInfoDiscountedRequest', 'Required parameter "v1GetProductInfoDiscountedRequest" was null or undefined when calling productAPIGetProductInfoDiscounted().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/info/discounted`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetProductInfoDiscountedRequestToJSON(requestParameters['v1GetProductInfoDiscountedRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetProductInfoDiscountedResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения информации о состоянии и дефектах уценённого товара по его SKU. Работает только с уценёнными товарами по схеме FBO. Также метод возвращает SKU основного товара. + * Узнать информацию об уценке и основном товаре по SKU уценённого товара + */ + productAPIGetProductInfoDiscounted(clientId, apiKey, v1GetProductInfoDiscountedRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoDiscountedRaw({ clientId: clientId, apiKey: apiKey, v1GetProductInfoDiscountedRequest: v1GetProductInfoDiscountedRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Получить информацию о цене товара + */ + productAPIGetProductInfoPricesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoPrices().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoPrices().'); + } + if (requestParameters['productv5GetProductInfoPricesV5Request'] == null) { + throw new runtime.RequiredError('productv5GetProductInfoPricesV5Request', 'Required parameter "productv5GetProductInfoPricesV5Request" was null or undefined when calling productAPIGetProductInfoPrices().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v5/product/info/prices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Productv5GetProductInfoPricesV5RequestToJSON(requestParameters['productv5GetProductInfoPricesV5Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Productv5GetProductInfoPricesV5ResponseFromJSON(jsonValue)); + }); + } + /** + * + * Получить информацию о цене товара + */ + productAPIGetProductInfoPrices(clientId, apiKey, productv5GetProductInfoPricesV5Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoPricesRaw({ clientId: clientId, apiKey: apiKey, productv5GetProductInfoPricesV5Request: productv5GetProductInfoPricesV5Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает информацию о ĸоличестве товаров по схемам FBS, rFBS и FBP: - сĸольĸо единиц есть в наличии, - сĸольĸо зарезервировано поĸупателями. Чтобы получить информацию об остатках по схеме FBO, используйте метод [/v1/analytics/stocks](#operation/AnalyticsAPI_AnalyticsStocks). + * Информация о количестве товаров + */ + productAPIGetProductInfoStocksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoStocks().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoStocks().'); + } + if (requestParameters['v4GetProductInfoStocksRequest'] == null) { + throw new runtime.RequiredError('v4GetProductInfoStocksRequest', 'Required parameter "v4GetProductInfoStocksRequest" was null or undefined when calling productAPIGetProductInfoStocks().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/product/info/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V4GetProductInfoStocksRequestToJSON(requestParameters['v4GetProductInfoStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V4GetProductInfoStocksResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает информацию о ĸоличестве товаров по схемам FBS, rFBS и FBP: - сĸольĸо единиц есть в наличии, - сĸольĸо зарезервировано поĸупателями. Чтобы получить информацию об остатках по схеме FBO, используйте метод [/v1/analytics/stocks](#operation/AnalyticsAPI_AnalyticsStocks). + * Информация о количестве товаров + */ + productAPIGetProductInfoStocks(clientId, apiKey, v4GetProductInfoStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoStocksRaw({ clientId: clientId, apiKey: apiKey, v4GetProductInfoStocksRequest: v4GetProductInfoStocksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию об остатках на складах продавца + */ + productAPIGetProductInfoStocksByWarehouseFbsV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoStocksByWarehouseFbsV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoStocksByWarehouseFbsV2().'); + } + if (requestParameters['v2GetProductInfoStocksByWarehouseFbsRequestV2'] == null) { + throw new runtime.RequiredError('v2GetProductInfoStocksByWarehouseFbsRequestV2', 'Required parameter "v2GetProductInfoStocksByWarehouseFbsRequestV2" was null or undefined when calling productAPIGetProductInfoStocksByWarehouseFbsV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/info/stocks-by-warehouse/fbs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON(requestParameters['v2GetProductInfoStocksByWarehouseFbsRequestV2']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON(jsonValue)); + }); + } + /** + * Получить информацию об остатках на складах продавца + */ + productAPIGetProductInfoStocksByWarehouseFbsV2(clientId, apiKey, v2GetProductInfoStocksByWarehouseFbsRequestV2, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoStocksByWarehouseFbsV2Raw({ clientId: clientId, apiKey: apiKey, v2GetProductInfoStocksByWarehouseFbsRequestV2: v2GetProductInfoStocksByWarehouseFbsRequestV2 }, initOverrides); + return yield response.value(); + }); + } + /** + * Позволяет изменить цену одного или нескольких товаров. Цену каждого товара можно обновлять не больше 10 раз в час. Чтобы сбросить `old_price`, поставьте `0` у этого параметра. Если у товара установлена минимальная цена и включено автоприменение в акции, отключите его и обновите минимальную цену. Иначе вернётся ошибка `action_price_enabled_min_price_missing`. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить цену + */ + productAPIImportProductsPricesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIImportProductsPrices().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIImportProductsPrices().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/import/prices`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductImportProductsPricesRequestToJSON(requestParameters['productImportProductsPricesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductImportProductsPricesResponseFromJSON(jsonValue)); + }); + } + /** + * Позволяет изменить цену одного или нескольких товаров. Цену каждого товара можно обновлять не больше 10 раз в час. Чтобы сбросить `old_price`, поставьте `0` у этого параметра. Если у товара установлена минимальная цена и включено автоприменение в акции, отключите его и обновите минимальную цену. Иначе вернётся ошибка `action_price_enabled_min_price_missing`. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить цену + */ + productAPIImportProductsPrices(clientId, apiKey, productImportProductsPricesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIImportProductsPricesRaw({ clientId: clientId, apiKey: apiKey, productImportProductsPricesRequest: productImportProductsPricesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Передайте в запросе `offer_id` или `sku`. Если укажете оба, будет использован только `sku`. + * Информация об остатках на складах продавца (FBS и rFBS) + */ + productAPIProductStocksByWarehouseFbsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductStocksByWarehouseFbs().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductStocksByWarehouseFbs().'); + } + if (requestParameters['productsv1GetProductInfoStocksByWarehouseFbsRequest'] == null) { + throw new runtime.RequiredError('productsv1GetProductInfoStocksByWarehouseFbsRequest', 'Required parameter "productsv1GetProductInfoStocksByWarehouseFbsRequest" was null or undefined when calling productAPIProductStocksByWarehouseFbs().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/info/stocks-by-warehouse/fbs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON(requestParameters['productsv1GetProductInfoStocksByWarehouseFbsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON(jsonValue)); + }); + } + /** + * Передайте в запросе `offer_id` или `sku`. Если укажете оба, будет использован только `sku`. + * Информация об остатках на складах продавца (FBS и rFBS) + */ + productAPIProductStocksByWarehouseFbs(clientId, apiKey, productsv1GetProductInfoStocksByWarehouseFbsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductStocksByWarehouseFbsRaw({ clientId: clientId, apiKey: apiKey, productsv1GetProductInfoStocksByWarehouseFbsRequest: productsv1GetProductInfoStocksByWarehouseFbsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для установки размера скидки на уценённые товары, продающиеся по схеме FBS. + * Установить скидку на уценённый товар + */ + productAPIProductUpdateDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductUpdateDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductUpdateDiscount().'); + } + if (requestParameters['v1ProductUpdateDiscountRequest'] == null) { + throw new runtime.RequiredError('v1ProductUpdateDiscountRequest', 'Required parameter "v1ProductUpdateDiscountRequest" was null or undefined when calling productAPIProductUpdateDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/update/discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductUpdateDiscountRequestToJSON(requestParameters['v1ProductUpdateDiscountRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductUpdateDiscountResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для установки размера скидки на уценённые товары, продающиеся по схеме FBS. + * Установить скидку на уценённый товар + */ + productAPIProductUpdateDiscount(clientId, apiKey, v1ProductUpdateDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductUpdateDiscountRaw({ clientId: clientId, apiKey: apiKey, v1ProductUpdateDiscountRequest: v1ProductUpdateDiscountRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Позволяет изменить информацию о количестве товара в наличии. За один запрос можно изменить наличие для 100 пар товар-склад. С одного аккаунта продавца можно отправить до 80 запросов в минуту. Вы можете задать наличие товара только после того, как его статус сменится на `price_sent`. Остатки крупногабаритных товаров можно обновлять только на предназначенных для них складах. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить количество товаров на складах + */ + productAPIProductsStocksV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductsStocksV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductsStocksV2().'); + } + if (requestParameters['productv2ProductsStocksRequest'] == null) { + throw new runtime.RequiredError('productv2ProductsStocksRequest', 'Required parameter "productv2ProductsStocksRequest" was null or undefined when calling productAPIProductsStocksV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/products/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Productv2ProductsStocksRequestToJSON(requestParameters['productv2ProductsStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Productv2ProductsStocksResponseFromJSON(jsonValue)); + }); + } + /** + * Позволяет изменить информацию о количестве товара в наличии. За один запрос можно изменить наличие для 100 пар товар-склад. С одного аккаунта продавца можно отправить до 80 запросов в минуту. Вы можете задать наличие товара только после того, как его статус сменится на `price_sent`. Остатки крупногабаритных товаров можно обновлять только на предназначенных для них складах. Если запрос содержит оба параметра — `offer_id` и `product_id`, изменения применятся к товару с `offer_id`. Для избежания неоднозначности используйте только один из параметров. + * Обновить количество товаров на складах + */ + productAPIProductsStocksV2(clientId, apiKey, productv2ProductsStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductsStocksV2Raw({ clientId: clientId, apiKey: apiKey, productv2ProductsStocksRequest: productv2ProductsStocksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию по остаткам на складе FBS и rFBS + */ + productInfoWarehouseStocksRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/info/warehouse/stocks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductInfoWarehouseStocksRequestToJSON(requestParameters['v1ProductInfoWarehouseStocksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductInfoWarehouseStocksResponseFromJSON(jsonValue)); + }); + } + /** + * Получить информацию по остаткам на складе FBS и rFBS + */ + productInfoWarehouseStocks(v1ProductInfoWarehouseStocksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productInfoWarehouseStocksRaw({ v1ProductInfoWarehouseStocksRequest: v1ProductInfoWarehouseStocksRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/PricingStrategyAPI.d.ts b/dist/esm/apis/PricingStrategyAPI.d.ts new file mode 100644 index 0000000..c7f238e --- /dev/null +++ b/dist/esm/apis/PricingStrategyAPI.d.ts @@ -0,0 +1,172 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1AddStrategyItemsRequest, V1AddStrategyItemsResponse, V1CreatePricingStrategyRequest, V1CreatePricingStrategyResponse, V1DeleteStrategyItemsResponse, V1GetCompetitorsRequest, V1GetCompetitorsResponse, V1GetStrategyIDsByItemIDsResponse, V1GetStrategyItemInfoRequest, V1GetStrategyItemInfoResponse, V1GetStrategyItemsResponse, V1GetStrategyListRequest, V1GetStrategyListResponse, V1GetStrategyResponse, V1ItemIDsRequest, V1StrategyRequest, V1UpdatePricingStrategyRequest, V1UpdateStatusStrategyRequest } from '../models/index'; +export interface PricingCompetitorsRequest { + v1GetCompetitorsRequest: V1GetCompetitorsRequest; +} +export interface PricingCreateRequest { + v1CreatePricingStrategyRequest: V1CreatePricingStrategyRequest; +} +export interface PricingDeleteRequest { + clientId: string; + apiKey: string; + v1StrategyRequest?: V1StrategyRequest; +} +export interface PricingIdsRequest { + clientId: string; + apiKey: string; + v1ItemIDsRequest?: V1ItemIDsRequest; +} +export interface PricingInfoRequest { + clientId: string; + apiKey: string; + v1StrategyRequest?: V1StrategyRequest; +} +export interface PricingItemsAddRequest { + v1AddStrategyItemsRequest: V1AddStrategyItemsRequest; +} +export interface PricingItemsDeleteRequest { + clientId: string; + apiKey: string; + v1ItemIDsRequest?: V1ItemIDsRequest; +} +export interface PricingItemsInfoRequest { + clientId: string; + apiKey: string; + v1GetStrategyItemInfoRequest: V1GetStrategyItemInfoRequest; +} +export interface PricingItemsListRequest { + clientId: string; + apiKey: string; + v1StrategyRequest?: V1StrategyRequest; +} +export interface PricingListRequest { + v1GetStrategyListRequest: V1GetStrategyListRequest; +} +export interface PricingStatusRequest { + v1UpdateStatusStrategyRequest: V1UpdateStatusStrategyRequest; +} +export interface PricingUpdateRequest { + v1UpdatePricingStrategyRequest: V1UpdatePricingStrategyRequest; +} +/** + * + */ +export declare class PricingStrategyAPI extends runtime.BaseAPI { + /** + * Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах. + * Список конкурентов + */ + pricingCompetitorsRaw(requestParameters: PricingCompetitorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах. + * Список конкурентов + */ + pricingCompetitors(v1GetCompetitorsRequest: V1GetCompetitorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Создать стратегию + */ + pricingCreateRaw(requestParameters: PricingCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Создать стратегию + */ + pricingCreate(v1CreatePricingStrategyRequest: V1CreatePricingStrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Можно удалить любую стратегию кроме системной. + * Удалить стратегию + */ + pricingDeleteRaw(requestParameters: PricingDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Можно удалить любую стратегию кроме системной. + * Удалить стратегию + */ + pricingDelete(clientId: string, apiKey: string, v1StrategyRequest?: V1StrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список идентификаторов стратегий + */ + pricingIdsRaw(requestParameters: PricingIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список идентификаторов стратегий + */ + pricingIds(clientId: string, apiKey: string, v1ItemIDsRequest?: V1ItemIDsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о стратегии + */ + pricingInfoRaw(requestParameters: PricingInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о стратегии + */ + pricingInfo(clientId: string, apiKey: string, v1StrategyRequest?: V1StrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Добавить товары в стратегию + */ + pricingItemsAddRaw(requestParameters: PricingItemsAddRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Добавить товары в стратегию + */ + pricingItemsAdd(v1AddStrategyItemsRequest: V1AddStrategyItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить товары из стратегии + */ + pricingItemsDeleteRaw(requestParameters: PricingItemsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить товары из стратегии + */ + pricingItemsDelete(clientId: string, apiKey: string, v1ItemIDsRequest?: V1ItemIDsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента. + * Цена товара у конкурента + */ + pricingItemsInfoRaw(requestParameters: PricingItemsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента. + * Цена товара у конкурента + */ + pricingItemsInfo(clientId: string, apiKey: string, v1GetStrategyItemInfoRequest: V1GetStrategyItemInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список товаров в стратегии + */ + pricingItemsListRaw(requestParameters: PricingItemsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список товаров в стратегии + */ + pricingItemsList(clientId: string, apiKey: string, v1StrategyRequest?: V1StrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список стратегий + */ + pricingListRaw(requestParameters: PricingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список стратегий + */ + pricingList(v1GetStrategyListRequest: V1GetStrategyListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Можно изменить статус любой стратегии кроме системной. + * Изменить статус стратегии + */ + pricingStatusRaw(requestParameters: PricingStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Можно изменить статус любой стратегии кроме системной. + * Изменить статус стратегии + */ + pricingStatus(v1UpdateStatusStrategyRequest: V1UpdateStatusStrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Можно обновить все стратегии кроме системной. + * Обновить стратегию + */ + pricingUpdateRaw(requestParameters: PricingUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Можно обновить все стратегии кроме системной. + * Обновить стратегию + */ + pricingUpdate(v1UpdatePricingStrategyRequest: V1UpdatePricingStrategyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/PricingStrategyAPI.js b/dist/esm/apis/PricingStrategyAPI.js new file mode 100644 index 0000000..d247a04 --- /dev/null +++ b/dist/esm/apis/PricingStrategyAPI.js @@ -0,0 +1,456 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1AddStrategyItemsRequestToJSON, V1AddStrategyItemsResponseFromJSON, V1CreatePricingStrategyRequestToJSON, V1CreatePricingStrategyResponseFromJSON, V1DeleteStrategyItemsResponseFromJSON, V1GetCompetitorsRequestToJSON, V1GetCompetitorsResponseFromJSON, V1GetStrategyIDsByItemIDsResponseFromJSON, V1GetStrategyItemInfoRequestToJSON, V1GetStrategyItemInfoResponseFromJSON, V1GetStrategyItemsResponseFromJSON, V1GetStrategyListRequestToJSON, V1GetStrategyListResponseFromJSON, V1GetStrategyResponseFromJSON, V1ItemIDsRequestToJSON, V1StrategyRequestToJSON, V1UpdatePricingStrategyRequestToJSON, V1UpdateStatusStrategyRequestToJSON, } from '../models/index'; +/** + * + */ +export class PricingStrategyAPI extends runtime.BaseAPI { + /** + * Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах. + * Список конкурентов + */ + pricingCompetitorsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetCompetitorsRequest'] == null) { + throw new runtime.RequiredError('v1GetCompetitorsRequest', 'Required parameter "v1GetCompetitorsRequest" was null or undefined when calling pricingCompetitors().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/competitors/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetCompetitorsRequestToJSON(requestParameters['v1GetCompetitorsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetCompetitorsResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка конкурентов — продавцов с похожими товарами в других интернет-магазинах и маркетплейсах. + * Список конкурентов + */ + pricingCompetitors(v1GetCompetitorsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingCompetitorsRaw({ v1GetCompetitorsRequest: v1GetCompetitorsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Создать стратегию + */ + pricingCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CreatePricingStrategyRequest'] == null) { + throw new runtime.RequiredError('v1CreatePricingStrategyRequest', 'Required parameter "v1CreatePricingStrategyRequest" was null or undefined when calling pricingCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreatePricingStrategyRequestToJSON(requestParameters['v1CreatePricingStrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CreatePricingStrategyResponseFromJSON(jsonValue)); + }); + } + /** + * Создать стратегию + */ + pricingCreate(v1CreatePricingStrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingCreateRaw({ v1CreatePricingStrategyRequest: v1CreatePricingStrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Можно удалить любую стратегию кроме системной. + * Удалить стратегию + */ + pricingDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1StrategyRequestToJSON(requestParameters['v1StrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Можно удалить любую стратегию кроме системной. + * Удалить стратегию + */ + pricingDelete(clientId, apiKey, v1StrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingDeleteRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список идентификаторов стратегий + */ + pricingIdsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingIds().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingIds().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/strategy-ids-by-product-ids`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ItemIDsRequestToJSON(requestParameters['v1ItemIDsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetStrategyIDsByItemIDsResponseFromJSON(jsonValue)); + }); + } + /** + * Список идентификаторов стратегий + */ + pricingIds(clientId, apiKey, v1ItemIDsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingIdsRaw({ clientId: clientId, apiKey: apiKey, v1ItemIDsRequest: v1ItemIDsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о стратегии + */ + pricingInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1StrategyRequestToJSON(requestParameters['v1StrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetStrategyResponseFromJSON(jsonValue)); + }); + } + /** + * Информация о стратегии + */ + pricingInfo(clientId, apiKey, v1StrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingInfoRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Добавить товары в стратегию + */ + pricingItemsAddRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1AddStrategyItemsRequest'] == null) { + throw new runtime.RequiredError('v1AddStrategyItemsRequest', 'Required parameter "v1AddStrategyItemsRequest" was null or undefined when calling pricingItemsAdd().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/products/add`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1AddStrategyItemsRequestToJSON(requestParameters['v1AddStrategyItemsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1AddStrategyItemsResponseFromJSON(jsonValue)); + }); + } + /** + * Добавить товары в стратегию + */ + pricingItemsAdd(v1AddStrategyItemsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingItemsAddRaw({ v1AddStrategyItemsRequest: v1AddStrategyItemsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить товары из стратегии + */ + pricingItemsDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/products/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ItemIDsRequestToJSON(requestParameters['v1ItemIDsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1DeleteStrategyItemsResponseFromJSON(jsonValue)); + }); + } + /** + * Удалить товары из стратегии + */ + pricingItemsDelete(clientId, apiKey, v1ItemIDsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingItemsDeleteRaw({ clientId: clientId, apiKey: apiKey, v1ItemIDsRequest: v1ItemIDsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента. + * Цена товара у конкурента + */ + pricingItemsInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsInfo().'); + } + if (requestParameters['v1GetStrategyItemInfoRequest'] == null) { + throw new runtime.RequiredError('v1GetStrategyItemInfoRequest', 'Required parameter "v1GetStrategyItemInfoRequest" was null or undefined when calling pricingItemsInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/product/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetStrategyItemInfoRequestToJSON(requestParameters['v1GetStrategyItemInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetStrategyItemInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Если вы добавили товар в стратегию ценообразования, метод вернёт цену и ссылку на товар у конкурента. + * Цена товара у конкурента + */ + pricingItemsInfo(clientId, apiKey, v1GetStrategyItemInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingItemsInfoRaw({ clientId: clientId, apiKey: apiKey, v1GetStrategyItemInfoRequest: v1GetStrategyItemInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список товаров в стратегии + */ + pricingItemsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling pricingItemsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling pricingItemsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/pricing-strategy/products/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1StrategyRequestToJSON(requestParameters['v1StrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetStrategyItemsResponseFromJSON(jsonValue)); + }); + } + /** + * Список товаров в стратегии + */ + pricingItemsList(clientId, apiKey, v1StrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingItemsListRaw({ clientId: clientId, apiKey: apiKey, v1StrategyRequest: v1StrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список стратегий + */ + pricingListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetStrategyListRequest'] == null) { + throw new runtime.RequiredError('v1GetStrategyListRequest', 'Required parameter "v1GetStrategyListRequest" was null or undefined when calling pricingList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetStrategyListRequestToJSON(requestParameters['v1GetStrategyListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetStrategyListResponseFromJSON(jsonValue)); + }); + } + /** + * Список стратегий + */ + pricingList(v1GetStrategyListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingListRaw({ v1GetStrategyListRequest: v1GetStrategyListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Можно изменить статус любой стратегии кроме системной. + * Изменить статус стратегии + */ + pricingStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1UpdateStatusStrategyRequest'] == null) { + throw new runtime.RequiredError('v1UpdateStatusStrategyRequest', 'Required parameter "v1UpdateStatusStrategyRequest" was null or undefined when calling pricingStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1UpdateStatusStrategyRequestToJSON(requestParameters['v1UpdateStatusStrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Можно изменить статус любой стратегии кроме системной. + * Изменить статус стратегии + */ + pricingStatus(v1UpdateStatusStrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingStatusRaw({ v1UpdateStatusStrategyRequest: v1UpdateStatusStrategyRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Можно обновить все стратегии кроме системной. + * Обновить стратегию + */ + pricingUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1UpdatePricingStrategyRequest'] == null) { + throw new runtime.RequiredError('v1UpdatePricingStrategyRequest', 'Required parameter "v1UpdatePricingStrategyRequest" was null or undefined when calling pricingUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/pricing-strategy/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1UpdatePricingStrategyRequestToJSON(requestParameters['v1UpdatePricingStrategyRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Можно обновить все стратегии кроме системной. + * Обновить стратегию + */ + pricingUpdate(v1UpdatePricingStrategyRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.pricingUpdateRaw({ v1UpdatePricingStrategyRequest: v1UpdatePricingStrategyRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ProductAPI.d.ts b/dist/esm/apis/ProductAPI.d.ts new file mode 100644 index 0000000..1a9b694 --- /dev/null +++ b/dist/esm/apis/ProductAPI.d.ts @@ -0,0 +1,309 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ProductBooleanResponse, ProductGetImportProductsInfoRequest, ProductGetImportProductsInfoResponse, ProductGetProductInfoDescriptionRequest, ProductGetProductInfoDescriptionResponse, ProductImportProductsBySKURequest, ProductImportProductsBySKUResponse, ProductProductArchiveRequest, ProductProductUnarchiveRequest, ProductV1GetProductInfoStocksByWarehouseFboRequest, ProductV1GetProductInfoStocksByWarehouseFboResponse, Productv1ProductImportPicturesRequest, Productv1ProductInfoPicturesResponse, Productv2DeleteProductsRequest, Productv2DeleteProductsResponse, Productv3GetProductListRequest, Productv3GetProductListResponse, Productv4GetProductAttributesV4Request, Productv4GetProductAttributesV4Response, V1GetProductInfoSubscriptionRequest, V1GetProductInfoSubscriptionResponse, V1GetProductRatingBySkuRequest, V1GetProductRatingBySkuResponse, V1ProductGetRelatedSKURequest, V1ProductGetRelatedSKUResponse, V1ProductInfoWrongVolumeRequest, V1ProductInfoWrongVolumeResponse, V1ProductUpdateAttributesRequest, V1ProductUpdateAttributesResponse, V1ProductUpdateOfferIdRequest, V1ProductUpdateOfferIdResponse, V2ProductInfoPicturesRequest, V2ProductInfoPicturesResponse, V3GetProductInfoListRequest, V3GetProductInfoListResponse, V3ImportProductsRequest, V3ImportProductsResponse, V4GetUploadQuotaResponse } from '../models/index'; +export interface GetProductInfoStocksByWarehouseFboRequest { + productV1GetProductInfoStocksByWarehouseFboRequest: ProductV1GetProductInfoStocksByWarehouseFboRequest; +} +export interface ProductAPIDeleteProductsRequest { + clientId: string; + apiKey: string; + productv2DeleteProductsRequest: Productv2DeleteProductsRequest; +} +export interface ProductAPIGetImportProductsInfoRequest { + clientId: string; + apiKey: string; + productGetImportProductsInfoRequest: ProductGetImportProductsInfoRequest; +} +export interface ProductAPIGetProductAttributesV4Request { + clientId: string; + apiKey: string; + productv4GetProductAttributesV4Request: Productv4GetProductAttributesV4Request; +} +export interface ProductAPIGetProductInfoDescriptionRequest { + clientId: string; + apiKey: string; + productGetProductInfoDescriptionRequest: ProductGetProductInfoDescriptionRequest | null; +} +export interface ProductAPIGetProductInfoListRequest { + clientId: string; + apiKey: string; + v3GetProductInfoListRequest: V3GetProductInfoListRequest; +} +export interface ProductAPIGetProductInfoSubscriptionRequest { + v1GetProductInfoSubscriptionRequest: V1GetProductInfoSubscriptionRequest; +} +export interface ProductAPIGetProductListRequest { + clientId: string; + apiKey: string; + productv3GetProductListRequest: Productv3GetProductListRequest; +} +export interface ProductAPIGetProductRatingBySkuRequest { + clientId: string; + apiKey: string; + v1GetProductRatingBySkuRequest: V1GetProductRatingBySkuRequest; +} +export interface ProductAPIGetUploadQuotaRequest { + clientId: string; + apiKey: string; +} +export interface ProductAPIImportProductsBySKURequest { + clientId: string; + apiKey: string; + productImportProductsBySKURequest: ProductImportProductsBySKURequest; +} +export interface ProductAPIImportProductsV3Request { + clientId: string; + apiKey: string; + v3ImportProductsRequest?: V3ImportProductsRequest; +} +export interface ProductAPIProductArchiveRequest { + clientId: string; + apiKey: string; + productProductArchiveRequest: ProductProductArchiveRequest; +} +export interface ProductAPIProductGetRelatedSKURequest { + clientId: string; + apiKey: string; + v1ProductGetRelatedSKURequest: V1ProductGetRelatedSKURequest; +} +export interface ProductAPIProductImportPicturesRequest { + clientId: string; + apiKey: string; + productv1ProductImportPicturesRequest: Productv1ProductImportPicturesRequest; +} +export interface ProductAPIProductInfoPicturesV2Request { + clientId: string; + apiKey: string; + v2ProductInfoPicturesRequest: V2ProductInfoPicturesRequest; +} +export interface ProductAPIProductInfoWrongVolumeRequest { + clientId: string; + apiKey: string; + v1ProductInfoWrongVolumeRequest: V1ProductInfoWrongVolumeRequest; +} +export interface ProductAPIProductUnarchiveRequest { + clientId: string; + apiKey: string; + productProductUnarchiveRequest: ProductProductUnarchiveRequest; +} +export interface ProductAPIProductUpdateAttributesRequest { + clientId: string; + apiKey: string; + v1ProductUpdateAttributesRequest: V1ProductUpdateAttributesRequest; +} +export interface ProductAPIProductUpdateOfferIDRequest { + clientId: string; + apiKey: string; + v1ProductUpdateOfferIdRequest: V1ProductUpdateOfferIdRequest; +} +/** + * + */ +export declare class ProductAPI extends runtime.BaseAPI { + /** + * Передайте в запросе `offer_ids` или `skus`. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2177-Novyi-metod-dlia-polucheniia-ostatkov-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о стоках на складах FBO + */ + getProductInfoStocksByWarehouseFboRaw(requestParameters: GetProductInfoStocksByWarehouseFboRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Передайте в запросе `offer_ids` или `skus`. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2177-Novyi-metod-dlia-polucheniia-ostatkov-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о стоках на складах FBO + */ + getProductInfoStocksByWarehouseFbo(productV1GetProductInfoStocksByWarehouseFboRequest: ProductV1GetProductInfoStocksByWarehouseFboRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * В одном запросе можно передать до 500 идентификаторов. + * Удалить товар без SKU из архива + */ + productAPIDeleteProductsRaw(requestParameters: ProductAPIDeleteProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * В одном запросе можно передать до 500 идентификаторов. + * Удалить товар без SKU из архива + */ + productAPIDeleteProducts(clientId: string, apiKey: string, productv2DeleteProductsRequest: Productv2DeleteProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Позволяет получить статус создания или обновления карточки товара. Если вы обновили изображение или видео по ссылке, но ссылка не изменилась, для изображения или видео в параметре `result.items.status` вернётся `skipped`. + * Узнать статус добавления или обновления товара + */ + productAPIGetImportProductsInfoRaw(requestParameters: ProductAPIGetImportProductsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Позволяет получить статус создания или обновления карточки товара. Если вы обновили изображение или видео по ссылке, но ссылка не изменилась, для изображения или видео в параметре `result.items.status` вернётся `skipped`. + * Узнать статус добавления или обновления товара + */ + productAPIGetImportProductsInfo(clientId: string, apiKey: string, productGetImportProductsInfoRequest: ProductGetImportProductsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает описание характеристик товаров по идентификатору и видимости. Товар можно искать по `offer_id`, `product_id` или `sku`. + * Получить описание характеристик товара + */ + productAPIGetProductAttributesV4Raw(requestParameters: ProductAPIGetProductAttributesV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает описание характеристик товаров по идентификатору и видимости. Товар можно искать по `offer_id`, `product_id` или `sku`. + * Получить описание характеристик товара + */ + productAPIGetProductAttributesV4(clientId: string, apiKey: string, productv4GetProductAttributesV4Request: Productv4GetProductAttributesV4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить описание товара + */ + productAPIGetProductInfoDescriptionRaw(requestParameters: ProductAPIGetProductInfoDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить описание товара + */ + productAPIGetProductInfoDescription(clientId: string, apiKey: string, productGetProductInfoDescriptionRequest: ProductGetProductInfoDescriptionRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о товарах по их идентификаторам. В теле запроса должен быть массив однотипных идентификаторов, в ответе будет массив `items`. В одном запросе вы можете передать не больше 1000 товаров по параметрам `offer_id`, `product_id` и `sku` в сумме. + * Получить информацию о товарах по идентификаторам + */ + productAPIGetProductInfoListRaw(requestParameters: ProductAPIGetProductInfoListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о товарах по их идентификаторам. В теле запроса должен быть массив однотипных идентификаторов, в ответе будет массив `items`. В одном запросе вы можете передать не больше 1000 товаров по параметрам `offer_id`, `product_id` и `sku` в сумме. + * Получить информацию о товарах по идентификаторам + */ + productAPIGetProductInfoList(clientId: string, apiKey: string, v3GetProductInfoListRequest: V3GetProductInfoListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения количества пользователей, которые нажали **Узнать о поступлении** на странице товара. Вы можете передать несколько товаров в запросе. + * Количество подписавшихся на товар пользователей + */ + productAPIGetProductInfoSubscriptionRaw(requestParameters: ProductAPIGetProductInfoSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения количества пользователей, которые нажали **Узнать о поступлении** на странице товара. Вы можете передать несколько товаров в запросе. + * Количество подписавшихся на товар пользователей + */ + productAPIGetProductInfoSubscription(v1GetProductInfoSubscriptionRequest: V1GetProductInfoSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка всех товаров. Если вы используете фильтр по идентификатору `offer_id` или `product_id`, остальные параметры заполнять не обязательно. Вернутся все товары с указанными идентификаторами, независимо от видимости. За один раз вы можете использовать только одну группу идентификаторов, не больше 1000 товаров. Если вы не используете для отображения идентификаторы, укажите `limit` и `last_id` в следующих запросах. + * Список товаров + */ + productAPIGetProductListRaw(requestParameters: ProductAPIGetProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка всех товаров. Если вы используете фильтр по идентификатору `offer_id` или `product_id`, остальные параметры заполнять не обязательно. Вернутся все товары с указанными идентификаторами, независимо от видимости. За один раз вы можете использовать только одну группу идентификаторов, не больше 1000 товаров. Если вы не используете для отображения идентификаторы, укажите `limit` и `last_id` в следующих запросах. + * Список товаров + */ + productAPIGetProductList(clientId: string, apiKey: string, productv3GetProductListRequest: Productv3GetProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения контент-рейтинга товаров, а также рекомендаций по его увеличению. [Подробнее о контент-рейтинге](https://seller-edu.ozon.ru/docs/work-with-goods/content-rating.html) + * Получить контент-рейтинг товаров по SKU + */ + productAPIGetProductRatingBySkuRaw(requestParameters: ProductAPIGetProductRatingBySkuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения контент-рейтинга товаров, а также рекомендаций по его увеличению. [Подробнее о контент-рейтинге](https://seller-edu.ozon.ru/docs/work-with-goods/content-rating.html) + * Получить контент-рейтинг товаров по SKU + */ + productAPIGetProductRatingBySku(clientId: string, apiKey: string, v1GetProductRatingBySkuRequest: V1GetProductRatingBySkuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о лимитах: - На ассортимент — сколько всего товаров можно создать в вашем личном кабинете. - На создание товаров — сколько товаров можно создать в сутки. - На обновление товаров — сколько товаров можно отредактировать в сутки. - На работу с товарами — сколько товаров можно создать в минуту. - На разархивацию — сколько товаров можно восстановить из архива за сутки. Если у вас есть лимит на ассортимент и вы израсходуете его, вы не сможете создавать новые товары. [Подробнее о лимитах в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/creating-goods/limit) + * Лимиты на ассортимент, создание и обновление товаров + */ + productAPIGetUploadQuotaRaw(requestParameters: ProductAPIGetUploadQuotaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о лимитах: - На ассортимент — сколько всего товаров можно создать в вашем личном кабинете. - На создание товаров — сколько товаров можно создать в сутки. - На обновление товаров — сколько товаров можно отредактировать в сутки. - На работу с товарами — сколько товаров можно создать в минуту. - На разархивацию — сколько товаров можно восстановить из архива за сутки. Если у вас есть лимит на ассортимент и вы израсходуете его, вы не сможете создавать новые товары. [Подробнее о лимитах в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/creating-goods/limit) + * Лимиты на ассортимент, создание и обновление товаров + */ + productAPIGetUploadQuota(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод создаёт [копию карточки товара](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/cherez-kopirovanie) с указанным SKU. Метод копирует только карточку товара другого продавца, скопировать свой товар не получится. Создать копию не получится, если продавец запретил копирование своих карточек. Нельзя: - обновить товар по SKU; - копировать товар, если вы самозанятый. Продавцам из России и СНГ можно копировать товары любой страны. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Создать товар по SKU + */ + productAPIImportProductsBySKURaw(requestParameters: ProductAPIImportProductsBySKURequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод создаёт [копию карточки товара](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/cherez-kopirovanie) с указанным SKU. Метод копирует только карточку товара другого продавца, скопировать свой товар не получится. Создать копию не получится, если продавец запретил копирование своих карточек. Нельзя: - обновить товар по SKU; - копировать товар, если вы самозанятый. Продавцам из России и СНГ можно копировать товары любой страны. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Создать товар по SKU + */ + productAPIImportProductsBySKU(clientId: string, apiKey: string, productImportProductsBySKURequest: ProductImportProductsBySKURequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для создания товаров и обновления информации о них. В сутки можно создать или обновить определённое количество товаров. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). Если количество загрузок и обновлений товаров превысит лимит, появится ошибка `item_limit_exceeded`. У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. В одном запросе можно передать до 100 товаров. Каждый товар — это отдельный элемент в массиве `items`. Укажите всю информацию о товаре: его характеристики, штрихкод, изображения, габариты, цену и валюту цены. При обновлении товара передайте в запросе всю информацию о нём. Указанная валюта должна совпадать с той, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. Например, если у вас установлена валюта юань, передавайте значение `CNY`, иначе вернётся ошибка. Товар не будет создан или обновлён, если вы заполните неправильно или не укажете: - **Обязательные характеристики**: характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://global-help.ozon.com/products/requirements/product-info/product-characteristics/#обязательные-характеристики) или получить методом [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). - **Реальные объёмно-весовые характеристики**: `depth`, `width`, `height`, `dimension_unit`, `weight`, `weight_unit`. Не пропускайте эти параметры в запросе и не указывайте 0. Для некоторых характеристик можно использовать HTML-теги. Получите статус модерации созданного или обновлённого товара в параметре `items.statuses.moderate_status` метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). После модерации товар появится в вашем личном кабинете, но не будет виден пользователям, пока вы не выставите его на продажу. Каждый товар в запросе — отдельный элемент массива `items`. Чтобы объединить две карточки, для каждой передайте `9048` в массиве `attributes`. Все атрибуты в этих карточках, кроме размера или цвета, должны совпадать. ## Загрузка изображений Для загрузки передайте в запросе ссылки на изображения в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Для загрузки главного изображения товара используйте параметр `primary_image`. Если не передать значение `primary_image`, главным будет первое изображение в массиве `images`. Чтобы загрузить главное изображение для Ozon Селект: 1. Проверьте, что в ответе метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) возвращается характеристика с `result.id = 23500`. 2. Передайте ссылку на изображение в параметре `items.attributes.values.value` с `id = 23500`. Для каждого товара вы можете загрузить до 30 изображений, включая главное. Если передать значение `primary_image`, максимальное количество изображений в `images` — 29. Если параметр `primary_image` пустой, то в `images` можно передать до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. ## Загрузка видео Для загрузки передайте в запросе ссылки на видео длительностью от 8 секунд до 5 минут. Формат видео по ссылке — MP4, MOV. [Подробнее о требованиях к видео в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#каким-должно-быть-видео) Для этого в параметре `complex_attributes` передайте объект. В нём в массиве `attributes` передайте 2 объекта с `complex_id = 100001`: - В первом укажите `id = 21841` и в массиве `values` передайте объект с ссылкой на видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" } ] } ``` - Во втором укажите значение `id = 21837` и в массиве `values` передайте объект с названием видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" } ] } ``` Если вы хотите загрузить несколько видео, передавайте значения для каждого видео в разных объектах массива `values`. Объекты в массиве располагайте в соответствии с желаемым порядком на сайте. Максимальное количество видео — 5. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" }, { \"value\": \"videoName_2\" } ] }, { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" }, { \"value\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" } ] } ``` ## Загрузка видеообложки Вы можете загрузить видеообложку через `complex_attributes`. [Подробнее о требованиях к видеообложкам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какои-должна-быть-видеообложка) __Пример__: ``` \"complex_attributes\": [ { \"attributes\": [ { \"id\": 21845, \"complex_id\": 100002, \"values\": [ { \"dictionary_value_id\": 0, \"value\": \"https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4\" } ] } ] } ] ``` [Подробнее о видеообложке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/zagruzka-media/videooblozhka) ## Загрузка таблицы размеров Вы можете добавить в карточку товара таблицу размеров, созданную с помощью [конструктора](https://table-constructor.ozon.ru/visual-editor). Передайте её в массиве `attributes` в формате JSON как Rich-контент `id = 13164`.

[Конструктор в формате JSON](https://table-constructor.ozon.ru/schema.json)
[Подробнее о конструкторе в Базе знаний продавца](https://global-help.ozon.com/products/requirements/size-table-constructor/) + * Создать или обновить товар + */ + productAPIImportProductsV3Raw(requestParameters: ProductAPIImportProductsV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для создания товаров и обновления информации о них. В сутки можно создать или обновить определённое количество товаров. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). Если количество загрузок и обновлений товаров превысит лимит, появится ошибка `item_limit_exceeded`. У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. В одном запросе можно передать до 100 товаров. Каждый товар — это отдельный элемент в массиве `items`. Укажите всю информацию о товаре: его характеристики, штрихкод, изображения, габариты, цену и валюту цены. При обновлении товара передайте в запросе всю информацию о нём. Указанная валюта должна совпадать с той, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. Например, если у вас установлена валюта юань, передавайте значение `CNY`, иначе вернётся ошибка. Товар не будет создан или обновлён, если вы заполните неправильно или не укажете: - **Обязательные характеристики**: характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://global-help.ozon.com/products/requirements/product-info/product-characteristics/#обязательные-характеристики) или получить методом [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). - **Реальные объёмно-весовые характеристики**: `depth`, `width`, `height`, `dimension_unit`, `weight`, `weight_unit`. Не пропускайте эти параметры в запросе и не указывайте 0. Для некоторых характеристик можно использовать HTML-теги. Получите статус модерации созданного или обновлённого товара в параметре `items.statuses.moderate_status` метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). После модерации товар появится в вашем личном кабинете, но не будет виден пользователям, пока вы не выставите его на продажу. Каждый товар в запросе — отдельный элемент массива `items`. Чтобы объединить две карточки, для каждой передайте `9048` в массиве `attributes`. Все атрибуты в этих карточках, кроме размера или цвета, должны совпадать. ## Загрузка изображений Для загрузки передайте в запросе ссылки на изображения в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Для загрузки главного изображения товара используйте параметр `primary_image`. Если не передать значение `primary_image`, главным будет первое изображение в массиве `images`. Чтобы загрузить главное изображение для Ozon Селект: 1. Проверьте, что в ответе метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) возвращается характеристика с `result.id = 23500`. 2. Передайте ссылку на изображение в параметре `items.attributes.values.value` с `id = 23500`. Для каждого товара вы можете загрузить до 30 изображений, включая главное. Если передать значение `primary_image`, максимальное количество изображений в `images` — 29. Если параметр `primary_image` пустой, то в `images` можно передать до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. ## Загрузка видео Для загрузки передайте в запросе ссылки на видео длительностью от 8 секунд до 5 минут. Формат видео по ссылке — MP4, MOV. [Подробнее о требованиях к видео в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#каким-должно-быть-видео) Для этого в параметре `complex_attributes` передайте объект. В нём в массиве `attributes` передайте 2 объекта с `complex_id = 100001`: - В первом укажите `id = 21841` и в массиве `values` передайте объект с ссылкой на видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" } ] } ``` - Во втором укажите значение `id = 21837` и в массиве `values` передайте объект с названием видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" } ] } ``` Если вы хотите загрузить несколько видео, передавайте значения для каждого видео в разных объектах массива `values`. Объекты в массиве располагайте в соответствии с желаемым порядком на сайте. Максимальное количество видео — 5. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" }, { \"value\": \"videoName_2\" } ] }, { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" }, { \"value\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" } ] } ``` ## Загрузка видеообложки Вы можете загрузить видеообложку через `complex_attributes`. [Подробнее о требованиях к видеообложкам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какои-должна-быть-видеообложка) __Пример__: ``` \"complex_attributes\": [ { \"attributes\": [ { \"id\": 21845, \"complex_id\": 100002, \"values\": [ { \"dictionary_value_id\": 0, \"value\": \"https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4\" } ] } ] } ] ``` [Подробнее о видеообложке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/zagruzka-media/videooblozhka) ## Загрузка таблицы размеров Вы можете добавить в карточку товара таблицу размеров, созданную с помощью [конструктора](https://table-constructor.ozon.ru/visual-editor). Передайте её в массиве `attributes` в формате JSON как Rich-контент `id = 13164`.

[Конструктор в формате JSON](https://table-constructor.ozon.ru/schema.json)
[Подробнее о конструкторе в Базе знаний продавца](https://global-help.ozon.com/products/requirements/size-table-constructor/) + * Создать или обновить товар + */ + productAPIImportProductsV3(clientId: string, apiKey: string, v3ImportProductsRequest?: V3ImportProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает статус запроса на архивацию.

Чтобы проверить фактическое состояние товара после архивации, используйте метод [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList).
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) + * Перенести товар в архив + */ + productAPIProductArchiveRaw(requestParameters: ProductAPIProductArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает статус запроса на архивацию.

Чтобы проверить фактическое состояние товара после архивации, используйте метод [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList).
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) + * Перенести товар в архив + */ + productAPIProductArchive(clientId: string, apiKey: string, productProductArchiveRequest: ProductProductArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения единого SKU по старым идентификаторам SKU FBS и SKU FBO. В ответе будут все SKU, связанные с переданными. Метод может обработать любые SKU, даже скрытые или удалённые. Передавайте до 200 SKU в одном запросе. + * Получить связанные SKU + */ + productAPIProductGetRelatedSKURaw(requestParameters: ProductAPIProductGetRelatedSKURequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения единого SKU по старым идентификаторам SKU FBS и SKU FBO. В ответе будут все SKU, связанные с переданными. Метод может обработать любые SKU, даже скрытые или удалённые. Передавайте до 200 SKU в одном запросе. + * Получить связанные SKU + */ + productAPIProductGetRelatedSKU(clientId: string, apiKey: string, v1ProductGetRelatedSKURequest: V1ProductGetRelatedSKURequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для загрузки или обновления изображений товара. При каждом вызове метода передавайте все изображения, которые должны быть на карточке товара. Например, если вы вызвали метод и загрузили 10 изображений, а затем вызвали метод второй раз и загрузили ещё одно, то все 10 предыдущих сотрутся. Для загрузки передайте адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Главным будет первое изображение в массиве. Для каждого товара вы можете загрузить до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. Если вы обновили изображение по ссылке, но ссылка не изменилась, в методе [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo) для изображения в параметре `result.items.status` вернётся `skipped`. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Загрузить или обновить изображения товара + */ + productAPIProductImportPicturesRaw(requestParameters: ProductAPIProductImportPicturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для загрузки или обновления изображений товара. При каждом вызове метода передавайте все изображения, которые должны быть на карточке товара. Например, если вы вызвали метод и загрузили 10 изображений, а затем вызвали метод второй раз и загрузили ещё одно, то все 10 предыдущих сотрутся. Для загрузки передайте адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Главным будет первое изображение в массиве. Для каждого товара вы можете загрузить до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. Если вы обновили изображение по ссылке, но ссылка не изменилась, в методе [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo) для изображения в параметре `result.items.status` вернётся `skipped`. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Загрузить или обновить изображения товара + */ + productAPIProductImportPictures(clientId: string, apiKey: string, productv1ProductImportPicturesRequest: Productv1ProductImportPicturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить изображения товаров + */ + productAPIProductInfoPicturesV2Raw(requestParameters: ProductAPIProductInfoPicturesV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить изображения товаров + */ + productAPIProductInfoPicturesV2(clientId: string, apiKey: string, v2ProductInfoPicturesRequest: V2ProductInfoPicturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список товаров с некорректными объёмно-весовыми характеристиками (ОВХ). Если вы указали размеры правильно, обратитесь в поддержку Ozon. [Подробнее об объёмно-весовых характеристиках в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/ovh) + * Список товаров с некорректными ОВХ + */ + productAPIProductInfoWrongVolumeRaw(requestParameters: ProductAPIProductInfoWrongVolumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список товаров с некорректными объёмно-весовыми характеристиками (ОВХ). Если вы указали размеры правильно, обратитесь в поддержку Ozon. [Подробнее об объёмно-весовых характеристиках в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/ovh) + * Список товаров с некорректными ОВХ + */ + productAPIProductInfoWrongVolume(clientId: string, apiKey: string, v1ProductInfoWrongVolumeRequest: V1ProductInfoWrongVolumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если вы превысите лимит на восстановление, вернётся ошибка `autoarchive_restore_failed`.
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Вернуть товар из архива + */ + productAPIProductUnarchiveRaw(requestParameters: ProductAPIProductUnarchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если вы превысите лимит на восстановление, вернётся ошибка `autoarchive_restore_failed`.
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Вернуть товар из архива + */ + productAPIProductUnarchive(clientId: string, apiKey: string, productProductUnarchiveRequest: ProductProductUnarchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод позволяет добавлять характеристики и изменять их значения. Изменятся только характеристики, которые вы указали в запросе. Удалить уже заполненные характеристики не получится. Для полного обновления характеристик используйте /v3/product/import. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Обновить характеристики товара + */ + productAPIProductUpdateAttributesRaw(requestParameters: ProductAPIProductUpdateAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод позволяет добавлять характеристики и изменять их значения. Изменятся только характеристики, которые вы указали в запросе. Удалить уже заполненные характеристики не получится. Для полного обновления характеристик используйте /v3/product/import. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Обновить характеристики товара + */ + productAPIProductUpdateAttributes(clientId: string, apiKey: string, v1ProductUpdateAttributesRequest: V1ProductUpdateAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для изменения `offer_id`, привязанных к товарам. Вы можете изменить несколько `offer_id`. Если `offer_id` уже используется для другого товара, вернётся ошибка `OFFER_ID_ALREADY_EXISTS`.
[Подробнее о требованиях к артикулам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/articyl-tovara#какие-есть-требования-к-артикулу) У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Изменить артикулы товаров из системы продавца + */ + productAPIProductUpdateOfferIDRaw(requestParameters: ProductAPIProductUpdateOfferIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для изменения `offer_id`, привязанных к товарам. Вы можете изменить несколько `offer_id`. Если `offer_id` уже используется для другого товара, вернётся ошибка `OFFER_ID_ALREADY_EXISTS`.
[Подробнее о требованиях к артикулам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/articyl-tovara#какие-есть-требования-к-артикулу) У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Изменить артикулы товаров из системы продавца + */ + productAPIProductUpdateOfferID(clientId: string, apiKey: string, v1ProductUpdateOfferIdRequest: V1ProductUpdateOfferIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/ProductAPI.js b/dist/esm/apis/ProductAPI.js new file mode 100644 index 0000000..219b502 --- /dev/null +++ b/dist/esm/apis/ProductAPI.js @@ -0,0 +1,873 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ProductBooleanResponseFromJSON, ProductGetImportProductsInfoRequestToJSON, ProductGetImportProductsInfoResponseFromJSON, ProductGetProductInfoDescriptionRequestToJSON, ProductGetProductInfoDescriptionResponseFromJSON, ProductImportProductsBySKURequestToJSON, ProductImportProductsBySKUResponseFromJSON, ProductProductArchiveRequestToJSON, ProductProductUnarchiveRequestToJSON, ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON, ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON, Productv1ProductImportPicturesRequestToJSON, Productv1ProductInfoPicturesResponseFromJSON, Productv2DeleteProductsRequestToJSON, Productv2DeleteProductsResponseFromJSON, Productv3GetProductListRequestToJSON, Productv3GetProductListResponseFromJSON, Productv4GetProductAttributesV4RequestToJSON, Productv4GetProductAttributesV4ResponseFromJSON, V1GetProductInfoSubscriptionRequestToJSON, V1GetProductInfoSubscriptionResponseFromJSON, V1GetProductRatingBySkuRequestToJSON, V1GetProductRatingBySkuResponseFromJSON, V1ProductGetRelatedSKURequestToJSON, V1ProductGetRelatedSKUResponseFromJSON, V1ProductInfoWrongVolumeRequestToJSON, V1ProductInfoWrongVolumeResponseFromJSON, V1ProductUpdateAttributesRequestToJSON, V1ProductUpdateAttributesResponseFromJSON, V1ProductUpdateOfferIdRequestToJSON, V1ProductUpdateOfferIdResponseFromJSON, V2ProductInfoPicturesRequestToJSON, V2ProductInfoPicturesResponseFromJSON, V3GetProductInfoListRequestToJSON, V3GetProductInfoListResponseFromJSON, V3ImportProductsRequestToJSON, V3ImportProductsResponseFromJSON, V4GetUploadQuotaResponseFromJSON, } from '../models/index'; +/** + * + */ +export class ProductAPI extends runtime.BaseAPI { + /** + * Передайте в запросе `offer_ids` или `skus`. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2177-Novyi-metod-dlia-polucheniia-ostatkov-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о стоках на складах FBO + */ + getProductInfoStocksByWarehouseFboRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['productV1GetProductInfoStocksByWarehouseFboRequest'] == null) { + throw new runtime.RequiredError('productV1GetProductInfoStocksByWarehouseFboRequest', 'Required parameter "productV1GetProductInfoStocksByWarehouseFboRequest" was null or undefined when calling getProductInfoStocksByWarehouseFbo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/info/stocks-by-warehouse/fbo`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON(requestParameters['productV1GetProductInfoStocksByWarehouseFboRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON(jsonValue)); + }); + } + /** + * Передайте в запросе `offer_ids` или `skus`. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/2177-Novyi-metod-dlia-polucheniia-ostatkov-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о стоках на складах FBO + */ + getProductInfoStocksByWarehouseFbo(productV1GetProductInfoStocksByWarehouseFboRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getProductInfoStocksByWarehouseFboRaw({ productV1GetProductInfoStocksByWarehouseFboRequest: productV1GetProductInfoStocksByWarehouseFboRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * В одном запросе можно передать до 500 идентификаторов. + * Удалить товар без SKU из архива + */ + productAPIDeleteProductsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIDeleteProducts().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIDeleteProducts().'); + } + if (requestParameters['productv2DeleteProductsRequest'] == null) { + throw new runtime.RequiredError('productv2DeleteProductsRequest', 'Required parameter "productv2DeleteProductsRequest" was null or undefined when calling productAPIDeleteProducts().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/products/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Productv2DeleteProductsRequestToJSON(requestParameters['productv2DeleteProductsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Productv2DeleteProductsResponseFromJSON(jsonValue)); + }); + } + /** + * В одном запросе можно передать до 500 идентификаторов. + * Удалить товар без SKU из архива + */ + productAPIDeleteProducts(clientId, apiKey, productv2DeleteProductsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIDeleteProductsRaw({ clientId: clientId, apiKey: apiKey, productv2DeleteProductsRequest: productv2DeleteProductsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Позволяет получить статус создания или обновления карточки товара. Если вы обновили изображение или видео по ссылке, но ссылка не изменилась, для изображения или видео в параметре `result.items.status` вернётся `skipped`. + * Узнать статус добавления или обновления товара + */ + productAPIGetImportProductsInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetImportProductsInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetImportProductsInfo().'); + } + if (requestParameters['productGetImportProductsInfoRequest'] == null) { + throw new runtime.RequiredError('productGetImportProductsInfoRequest', 'Required parameter "productGetImportProductsInfoRequest" was null or undefined when calling productAPIGetImportProductsInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/import/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductGetImportProductsInfoRequestToJSON(requestParameters['productGetImportProductsInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductGetImportProductsInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Позволяет получить статус создания или обновления карточки товара. Если вы обновили изображение или видео по ссылке, но ссылка не изменилась, для изображения или видео в параметре `result.items.status` вернётся `skipped`. + * Узнать статус добавления или обновления товара + */ + productAPIGetImportProductsInfo(clientId, apiKey, productGetImportProductsInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetImportProductsInfoRaw({ clientId: clientId, apiKey: apiKey, productGetImportProductsInfoRequest: productGetImportProductsInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает описание характеристик товаров по идентификатору и видимости. Товар можно искать по `offer_id`, `product_id` или `sku`. + * Получить описание характеристик товара + */ + productAPIGetProductAttributesV4Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductAttributesV4().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductAttributesV4().'); + } + if (requestParameters['productv4GetProductAttributesV4Request'] == null) { + throw new runtime.RequiredError('productv4GetProductAttributesV4Request', 'Required parameter "productv4GetProductAttributesV4Request" was null or undefined when calling productAPIGetProductAttributesV4().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/product/info/attributes`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Productv4GetProductAttributesV4RequestToJSON(requestParameters['productv4GetProductAttributesV4Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Productv4GetProductAttributesV4ResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает описание характеристик товаров по идентификатору и видимости. Товар можно искать по `offer_id`, `product_id` или `sku`. + * Получить описание характеристик товара + */ + productAPIGetProductAttributesV4(clientId, apiKey, productv4GetProductAttributesV4Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductAttributesV4Raw({ clientId: clientId, apiKey: apiKey, productv4GetProductAttributesV4Request: productv4GetProductAttributesV4Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить описание товара + */ + productAPIGetProductInfoDescriptionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoDescription().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoDescription().'); + } + if (requestParameters['productGetProductInfoDescriptionRequest'] == null) { + throw new runtime.RequiredError('productGetProductInfoDescriptionRequest', 'Required parameter "productGetProductInfoDescriptionRequest" was null or undefined when calling productAPIGetProductInfoDescription().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/info/description`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductGetProductInfoDescriptionRequestToJSON(requestParameters['productGetProductInfoDescriptionRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductGetProductInfoDescriptionResponseFromJSON(jsonValue)); + }); + } + /** + * Получить описание товара + */ + productAPIGetProductInfoDescription(clientId, apiKey, productGetProductInfoDescriptionRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoDescriptionRaw({ clientId: clientId, apiKey: apiKey, productGetProductInfoDescriptionRequest: productGetProductInfoDescriptionRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения информации о товарах по их идентификаторам. В теле запроса должен быть массив однотипных идентификаторов, в ответе будет массив `items`. В одном запросе вы можете передать не больше 1000 товаров по параметрам `offer_id`, `product_id` и `sku` в сумме. + * Получить информацию о товарах по идентификаторам + */ + productAPIGetProductInfoListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductInfoList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductInfoList().'); + } + if (requestParameters['v3GetProductInfoListRequest'] == null) { + throw new runtime.RequiredError('v3GetProductInfoListRequest', 'Required parameter "v3GetProductInfoListRequest" was null or undefined when calling productAPIGetProductInfoList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/product/info/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V3GetProductInfoListRequestToJSON(requestParameters['v3GetProductInfoListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3GetProductInfoListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения информации о товарах по их идентификаторам. В теле запроса должен быть массив однотипных идентификаторов, в ответе будет массив `items`. В одном запросе вы можете передать не больше 1000 товаров по параметрам `offer_id`, `product_id` и `sku` в сумме. + * Получить информацию о товарах по идентификаторам + */ + productAPIGetProductInfoList(clientId, apiKey, v3GetProductInfoListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoListRaw({ clientId: clientId, apiKey: apiKey, v3GetProductInfoListRequest: v3GetProductInfoListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения количества пользователей, которые нажали **Узнать о поступлении** на странице товара. Вы можете передать несколько товаров в запросе. + * Количество подписавшихся на товар пользователей + */ + productAPIGetProductInfoSubscriptionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetProductInfoSubscriptionRequest'] == null) { + throw new runtime.RequiredError('v1GetProductInfoSubscriptionRequest', 'Required parameter "v1GetProductInfoSubscriptionRequest" was null or undefined when calling productAPIGetProductInfoSubscription().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/product/info/subscription`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetProductInfoSubscriptionRequestToJSON(requestParameters['v1GetProductInfoSubscriptionRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetProductInfoSubscriptionResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения количества пользователей, которые нажали **Узнать о поступлении** на странице товара. Вы можете передать несколько товаров в запросе. + * Количество подписавшихся на товар пользователей + */ + productAPIGetProductInfoSubscription(v1GetProductInfoSubscriptionRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductInfoSubscriptionRaw({ v1GetProductInfoSubscriptionRequest: v1GetProductInfoSubscriptionRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка всех товаров. Если вы используете фильтр по идентификатору `offer_id` или `product_id`, остальные параметры заполнять не обязательно. Вернутся все товары с указанными идентификаторами, независимо от видимости. За один раз вы можете использовать только одну группу идентификаторов, не больше 1000 товаров. Если вы не используете для отображения идентификаторы, укажите `limit` и `last_id` в следующих запросах. + * Список товаров + */ + productAPIGetProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductList().'); + } + if (requestParameters['productv3GetProductListRequest'] == null) { + throw new runtime.RequiredError('productv3GetProductListRequest', 'Required parameter "productv3GetProductListRequest" was null or undefined when calling productAPIGetProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/product/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Productv3GetProductListRequestToJSON(requestParameters['productv3GetProductListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Productv3GetProductListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка всех товаров. Если вы используете фильтр по идентификатору `offer_id` или `product_id`, остальные параметры заполнять не обязательно. Вернутся все товары с указанными идентификаторами, независимо от видимости. За один раз вы можете использовать только одну группу идентификаторов, не больше 1000 товаров. Если вы не используете для отображения идентификаторы, укажите `limit` и `last_id` в следующих запросах. + * Список товаров + */ + productAPIGetProductList(clientId, apiKey, productv3GetProductListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductListRaw({ clientId: clientId, apiKey: apiKey, productv3GetProductListRequest: productv3GetProductListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения контент-рейтинга товаров, а также рекомендаций по его увеличению. [Подробнее о контент-рейтинге](https://seller-edu.ozon.ru/docs/work-with-goods/content-rating.html) + * Получить контент-рейтинг товаров по SKU + */ + productAPIGetProductRatingBySkuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetProductRatingBySku().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetProductRatingBySku().'); + } + if (requestParameters['v1GetProductRatingBySkuRequest'] == null) { + throw new runtime.RequiredError('v1GetProductRatingBySkuRequest', 'Required parameter "v1GetProductRatingBySkuRequest" was null or undefined when calling productAPIGetProductRatingBySku().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/rating-by-sku`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetProductRatingBySkuRequestToJSON(requestParameters['v1GetProductRatingBySkuRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetProductRatingBySkuResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения контент-рейтинга товаров, а также рекомендаций по его увеличению. [Подробнее о контент-рейтинге](https://seller-edu.ozon.ru/docs/work-with-goods/content-rating.html) + * Получить контент-рейтинг товаров по SKU + */ + productAPIGetProductRatingBySku(clientId, apiKey, v1GetProductRatingBySkuRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetProductRatingBySkuRaw({ clientId: clientId, apiKey: apiKey, v1GetProductRatingBySkuRequest: v1GetProductRatingBySkuRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения информации о лимитах: - На ассортимент — сколько всего товаров можно создать в вашем личном кабинете. - На создание товаров — сколько товаров можно создать в сутки. - На обновление товаров — сколько товаров можно отредактировать в сутки. - На работу с товарами — сколько товаров можно создать в минуту. - На разархивацию — сколько товаров можно восстановить из архива за сутки. Если у вас есть лимит на ассортимент и вы израсходуете его, вы не сможете создавать новые товары. [Подробнее о лимитах в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/creating-goods/limit) + * Лимиты на ассортимент, создание и обновление товаров + */ + productAPIGetUploadQuotaRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIGetUploadQuota().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIGetUploadQuota().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v4/product/info/limit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V4GetUploadQuotaResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения информации о лимитах: - На ассортимент — сколько всего товаров можно создать в вашем личном кабинете. - На создание товаров — сколько товаров можно создать в сутки. - На обновление товаров — сколько товаров можно отредактировать в сутки. - На работу с товарами — сколько товаров можно создать в минуту. - На разархивацию — сколько товаров можно восстановить из архива за сутки. Если у вас есть лимит на ассортимент и вы израсходуете его, вы не сможете создавать новые товары. [Подробнее о лимитах в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/creating-goods/limit) + * Лимиты на ассортимент, создание и обновление товаров + */ + productAPIGetUploadQuota(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIGetUploadQuotaRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод создаёт [копию карточки товара](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/cherez-kopirovanie) с указанным SKU. Метод копирует только карточку товара другого продавца, скопировать свой товар не получится. Создать копию не получится, если продавец запретил копирование своих карточек. Нельзя: - обновить товар по SKU; - копировать товар, если вы самозанятый. Продавцам из России и СНГ можно копировать товары любой страны. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Создать товар по SKU + */ + productAPIImportProductsBySKURaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIImportProductsBySKU().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIImportProductsBySKU().'); + } + if (requestParameters['productImportProductsBySKURequest'] == null) { + throw new runtime.RequiredError('productImportProductsBySKURequest', 'Required parameter "productImportProductsBySKURequest" was null or undefined when calling productAPIImportProductsBySKU().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/import-by-sku`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductImportProductsBySKURequestToJSON(requestParameters['productImportProductsBySKURequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductImportProductsBySKUResponseFromJSON(jsonValue)); + }); + } + /** + * Метод создаёт [копию карточки товара](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/cherez-kopirovanie) с указанным SKU. Метод копирует только карточку товара другого продавца, скопировать свой товар не получится. Создать копию не получится, если продавец запретил копирование своих карточек. Нельзя: - обновить товар по SKU; - копировать товар, если вы самозанятый. Продавцам из России и СНГ можно копировать товары любой страны. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Создать товар по SKU + */ + productAPIImportProductsBySKU(clientId, apiKey, productImportProductsBySKURequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIImportProductsBySKURaw({ clientId: clientId, apiKey: apiKey, productImportProductsBySKURequest: productImportProductsBySKURequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для создания товаров и обновления информации о них. В сутки можно создать или обновить определённое количество товаров. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). Если количество загрузок и обновлений товаров превысит лимит, появится ошибка `item_limit_exceeded`. У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. В одном запросе можно передать до 100 товаров. Каждый товар — это отдельный элемент в массиве `items`. Укажите всю информацию о товаре: его характеристики, штрихкод, изображения, габариты, цену и валюту цены. При обновлении товара передайте в запросе всю информацию о нём. Указанная валюта должна совпадать с той, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. Например, если у вас установлена валюта юань, передавайте значение `CNY`, иначе вернётся ошибка. Товар не будет создан или обновлён, если вы заполните неправильно или не укажете: - **Обязательные характеристики**: характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://global-help.ozon.com/products/requirements/product-info/product-characteristics/#обязательные-характеристики) или получить методом [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). - **Реальные объёмно-весовые характеристики**: `depth`, `width`, `height`, `dimension_unit`, `weight`, `weight_unit`. Не пропускайте эти параметры в запросе и не указывайте 0. Для некоторых характеристик можно использовать HTML-теги. Получите статус модерации созданного или обновлённого товара в параметре `items.statuses.moderate_status` метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). После модерации товар появится в вашем личном кабинете, но не будет виден пользователям, пока вы не выставите его на продажу. Каждый товар в запросе — отдельный элемент массива `items`. Чтобы объединить две карточки, для каждой передайте `9048` в массиве `attributes`. Все атрибуты в этих карточках, кроме размера или цвета, должны совпадать. ## Загрузка изображений Для загрузки передайте в запросе ссылки на изображения в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Для загрузки главного изображения товара используйте параметр `primary_image`. Если не передать значение `primary_image`, главным будет первое изображение в массиве `images`. Чтобы загрузить главное изображение для Ozon Селект: 1. Проверьте, что в ответе метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) возвращается характеристика с `result.id = 23500`. 2. Передайте ссылку на изображение в параметре `items.attributes.values.value` с `id = 23500`. Для каждого товара вы можете загрузить до 30 изображений, включая главное. Если передать значение `primary_image`, максимальное количество изображений в `images` — 29. Если параметр `primary_image` пустой, то в `images` можно передать до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. ## Загрузка видео Для загрузки передайте в запросе ссылки на видео длительностью от 8 секунд до 5 минут. Формат видео по ссылке — MP4, MOV. [Подробнее о требованиях к видео в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#каким-должно-быть-видео) Для этого в параметре `complex_attributes` передайте объект. В нём в массиве `attributes` передайте 2 объекта с `complex_id = 100001`: - В первом укажите `id = 21841` и в массиве `values` передайте объект с ссылкой на видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" } ] } ``` - Во втором укажите значение `id = 21837` и в массиве `values` передайте объект с названием видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" } ] } ``` Если вы хотите загрузить несколько видео, передавайте значения для каждого видео в разных объектах массива `values`. Объекты в массиве располагайте в соответствии с желаемым порядком на сайте. Максимальное количество видео — 5. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" }, { \"value\": \"videoName_2\" } ] }, { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" }, { \"value\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" } ] } ``` ## Загрузка видеообложки Вы можете загрузить видеообложку через `complex_attributes`. [Подробнее о требованиях к видеообложкам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какои-должна-быть-видеообложка) __Пример__: ``` \"complex_attributes\": [ { \"attributes\": [ { \"id\": 21845, \"complex_id\": 100002, \"values\": [ { \"dictionary_value_id\": 0, \"value\": \"https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4\" } ] } ] } ] ``` [Подробнее о видеообложке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/zagruzka-media/videooblozhka) ## Загрузка таблицы размеров Вы можете добавить в карточку товара таблицу размеров, созданную с помощью [конструктора](https://table-constructor.ozon.ru/visual-editor). Передайте её в массиве `attributes` в формате JSON как Rich-контент `id = 13164`.

[Конструктор в формате JSON](https://table-constructor.ozon.ru/schema.json)
[Подробнее о конструкторе в Базе знаний продавца](https://global-help.ozon.com/products/requirements/size-table-constructor/) + * Создать или обновить товар + */ + productAPIImportProductsV3Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIImportProductsV3().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIImportProductsV3().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v3/product/import`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V3ImportProductsRequestToJSON(requestParameters['v3ImportProductsRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3ImportProductsResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для создания товаров и обновления информации о них. В сутки можно создать или обновить определённое количество товаров. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). Если количество загрузок и обновлений товаров превысит лимит, появится ошибка `item_limit_exceeded`. У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. В одном запросе можно передать до 100 товаров. Каждый товар — это отдельный элемент в массиве `items`. Укажите всю информацию о товаре: его характеристики, штрихкод, изображения, габариты, цену и валюту цены. При обновлении товара передайте в запросе всю информацию о нём. Указанная валюта должна совпадать с той, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. Например, если у вас установлена валюта юань, передавайте значение `CNY`, иначе вернётся ошибка. Товар не будет создан или обновлён, если вы заполните неправильно или не укажете: - **Обязательные характеристики**: характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://global-help.ozon.com/products/requirements/product-info/product-characteristics/#обязательные-характеристики) или получить методом [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). - **Реальные объёмно-весовые характеристики**: `depth`, `width`, `height`, `dimension_unit`, `weight`, `weight_unit`. Не пропускайте эти параметры в запросе и не указывайте 0. Для некоторых характеристик можно использовать HTML-теги. Получите статус модерации созданного или обновлённого товара в параметре `items.statuses.moderate_status` метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). После модерации товар появится в вашем личном кабинете, но не будет виден пользователям, пока вы не выставите его на продажу. Каждый товар в запросе — отдельный элемент массива `items`. Чтобы объединить две карточки, для каждой передайте `9048` в массиве `attributes`. Все атрибуты в этих карточках, кроме размера или цвета, должны совпадать. ## Загрузка изображений Для загрузки передайте в запросе ссылки на изображения в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Для загрузки главного изображения товара используйте параметр `primary_image`. Если не передать значение `primary_image`, главным будет первое изображение в массиве `images`. Чтобы загрузить главное изображение для Ozon Селект: 1. Проверьте, что в ответе метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) возвращается характеристика с `result.id = 23500`. 2. Передайте ссылку на изображение в параметре `items.attributes.values.value` с `id = 23500`. Для каждого товара вы можете загрузить до 30 изображений, включая главное. Если передать значение `primary_image`, максимальное количество изображений в `images` — 29. Если параметр `primary_image` пустой, то в `images` можно передать до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. ## Загрузка видео Для загрузки передайте в запросе ссылки на видео длительностью от 8 секунд до 5 минут. Формат видео по ссылке — MP4, MOV. [Подробнее о требованиях к видео в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#каким-должно-быть-видео) Для этого в параметре `complex_attributes` передайте объект. В нём в массиве `attributes` передайте 2 объекта с `complex_id = 100001`: - В первом укажите `id = 21841` и в массиве `values` передайте объект с ссылкой на видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" } ] } ``` - Во втором укажите значение `id = 21837` и в массиве `values` передайте объект с названием видео. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" } ] } ``` Если вы хотите загрузить несколько видео, передавайте значения для каждого видео в разных объектах массива `values`. Объекты в массиве располагайте в соответствии с желаемым порядком на сайте. Максимальное количество видео — 5. __Пример__: ``` { \"complex_id\": 100001, \"id\": 21837, \"values\": [ { \"value\": \"videoName_1\" }, { \"value\": \"videoName_2\" } ] }, { \"complex_id\": 100001, \"id\": 21841, \"values\": [ { \"value\": \"https://www.youtube.com/watch?v=ZwM0iBn03dY\" }, { \"value\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" } ] } ``` ## Загрузка видеообложки Вы можете загрузить видеообложку через `complex_attributes`. [Подробнее о требованиях к видеообложкам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какои-должна-быть-видеообложка) __Пример__: ``` \"complex_attributes\": [ { \"attributes\": [ { \"id\": 21845, \"complex_id\": 100002, \"values\": [ { \"dictionary_value_id\": 0, \"value\": \"https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4\" } ] } ] } ] ``` [Подробнее о видеообложке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/zagruzka-media/videooblozhka) ## Загрузка таблицы размеров Вы можете добавить в карточку товара таблицу размеров, созданную с помощью [конструктора](https://table-constructor.ozon.ru/visual-editor). Передайте её в массиве `attributes` в формате JSON как Rich-контент `id = 13164`.

[Конструктор в формате JSON](https://table-constructor.ozon.ru/schema.json)
[Подробнее о конструкторе в Базе знаний продавца](https://global-help.ozon.com/products/requirements/size-table-constructor/) + * Создать или обновить товар + */ + productAPIImportProductsV3(clientId, apiKey, v3ImportProductsRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIImportProductsV3Raw({ clientId: clientId, apiKey: apiKey, v3ImportProductsRequest: v3ImportProductsRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает статус запроса на архивацию.

Чтобы проверить фактическое состояние товара после архивации, используйте метод [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList).
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) + * Перенести товар в архив + */ + productAPIProductArchiveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductArchive().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductArchive().'); + } + if (requestParameters['productProductArchiveRequest'] == null) { + throw new runtime.RequiredError('productProductArchiveRequest', 'Required parameter "productProductArchiveRequest" was null or undefined when calling productAPIProductArchive().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/archive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductProductArchiveRequestToJSON(requestParameters['productProductArchiveRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductBooleanResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает статус запроса на архивацию.

Чтобы проверить фактическое состояние товара после архивации, используйте метод [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList).
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) + * Перенести товар в архив + */ + productAPIProductArchive(clientId, apiKey, productProductArchiveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductArchiveRaw({ clientId: clientId, apiKey: apiKey, productProductArchiveRequest: productProductArchiveRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения единого SKU по старым идентификаторам SKU FBS и SKU FBO. В ответе будут все SKU, связанные с переданными. Метод может обработать любые SKU, даже скрытые или удалённые. Передавайте до 200 SKU в одном запросе. + * Получить связанные SKU + */ + productAPIProductGetRelatedSKURaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductGetRelatedSKU().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductGetRelatedSKU().'); + } + if (requestParameters['v1ProductGetRelatedSKURequest'] == null) { + throw new runtime.RequiredError('v1ProductGetRelatedSKURequest', 'Required parameter "v1ProductGetRelatedSKURequest" was null or undefined when calling productAPIProductGetRelatedSKU().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/related-sku/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductGetRelatedSKURequestToJSON(requestParameters['v1ProductGetRelatedSKURequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductGetRelatedSKUResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения единого SKU по старым идентификаторам SKU FBS и SKU FBO. В ответе будут все SKU, связанные с переданными. Метод может обработать любые SKU, даже скрытые или удалённые. Передавайте до 200 SKU в одном запросе. + * Получить связанные SKU + */ + productAPIProductGetRelatedSKU(clientId, apiKey, v1ProductGetRelatedSKURequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductGetRelatedSKURaw({ clientId: clientId, apiKey: apiKey, v1ProductGetRelatedSKURequest: v1ProductGetRelatedSKURequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для загрузки или обновления изображений товара. При каждом вызове метода передавайте все изображения, которые должны быть на карточке товара. Например, если вы вызвали метод и загрузили 10 изображений, а затем вызвали метод второй раз и загрузили ещё одно, то все 10 предыдущих сотрутся. Для загрузки передайте адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Главным будет первое изображение в массиве. Для каждого товара вы можете загрузить до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. Если вы обновили изображение по ссылке, но ссылка не изменилась, в методе [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo) для изображения в параметре `result.items.status` вернётся `skipped`. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Загрузить или обновить изображения товара + */ + productAPIProductImportPicturesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductImportPictures().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductImportPictures().'); + } + if (requestParameters['productv1ProductImportPicturesRequest'] == null) { + throw new runtime.RequiredError('productv1ProductImportPicturesRequest', 'Required parameter "productv1ProductImportPicturesRequest" was null or undefined when calling productAPIProductImportPictures().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/pictures/import`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: Productv1ProductImportPicturesRequestToJSON(requestParameters['productv1ProductImportPicturesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => Productv1ProductInfoPicturesResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для загрузки или обновления изображений товара. При каждом вызове метода передавайте все изображения, которые должны быть на карточке товара. Например, если вы вызвали метод и загрузили 10 изображений, а затем вызвали метод второй раз и загрузили ещё одно, то все 10 предыдущих сотрутся. Для загрузки передайте адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. Изображения в массиве `images` располагайте в соответствии с желаемым порядком на сайте. Главным будет первое изображение в массиве. Для каждого товара вы можете загрузить до 30 изображений. Для загрузки маркетингового цвета используйте поле `color_image`. [Подробнее о требованиях к фото в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/media/foto-i-video-tovara#какие-общие-требования-есть-для-фотографии-товара) Если вы хотите изменить состав или порядок изображений, получите информацию с помощью метода [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList) — в нём отображается текущий порядок и состав изображений. Скопируйте данные полей `images` и `color_image`, измените и дополните состав или порядок в соответствии с необходимостью. Если вы обновили изображение по ссылке, но ссылка не изменилась, в методе [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo) для изображения в параметре `result.items.status` вернётся `skipped`. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Загрузить или обновить изображения товара + */ + productAPIProductImportPictures(clientId, apiKey, productv1ProductImportPicturesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductImportPicturesRaw({ clientId: clientId, apiKey: apiKey, productv1ProductImportPicturesRequest: productv1ProductImportPicturesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить изображения товаров + */ + productAPIProductInfoPicturesV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductInfoPicturesV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductInfoPicturesV2().'); + } + if (requestParameters['v2ProductInfoPicturesRequest'] == null) { + throw new runtime.RequiredError('v2ProductInfoPicturesRequest', 'Required parameter "v2ProductInfoPicturesRequest" was null or undefined when calling productAPIProductInfoPicturesV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/product/pictures/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2ProductInfoPicturesRequestToJSON(requestParameters['v2ProductInfoPicturesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2ProductInfoPicturesResponseFromJSON(jsonValue)); + }); + } + /** + * Получить изображения товаров + */ + productAPIProductInfoPicturesV2(clientId, apiKey, v2ProductInfoPicturesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductInfoPicturesV2Raw({ clientId: clientId, apiKey: apiKey, v2ProductInfoPicturesRequest: v2ProductInfoPicturesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список товаров с некорректными объёмно-весовыми характеристиками (ОВХ). Если вы указали размеры правильно, обратитесь в поддержку Ozon. [Подробнее об объёмно-весовых характеристиках в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/ovh) + * Список товаров с некорректными ОВХ + */ + productAPIProductInfoWrongVolumeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductInfoWrongVolume().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductInfoWrongVolume().'); + } + if (requestParameters['v1ProductInfoWrongVolumeRequest'] == null) { + throw new runtime.RequiredError('v1ProductInfoWrongVolumeRequest', 'Required parameter "v1ProductInfoWrongVolumeRequest" was null or undefined when calling productAPIProductInfoWrongVolume().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/info/wrong-volume`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductInfoWrongVolumeRequestToJSON(requestParameters['v1ProductInfoWrongVolumeRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductInfoWrongVolumeResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список товаров с некорректными объёмно-весовыми характеристиками (ОВХ). Если вы указали размеры правильно, обратитесь в поддержку Ozon. [Подробнее об объёмно-весовых характеристиках в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/ovh) + * Список товаров с некорректными ОВХ + */ + productAPIProductInfoWrongVolume(clientId, apiKey, v1ProductInfoWrongVolumeRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductInfoWrongVolumeRaw({ clientId: clientId, apiKey: apiKey, v1ProductInfoWrongVolumeRequest: v1ProductInfoWrongVolumeRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если вы превысите лимит на восстановление, вернётся ошибка `autoarchive_restore_failed`.
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Вернуть товар из архива + */ + productAPIProductUnarchiveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductUnarchive().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductUnarchive().'); + } + if (requestParameters['productProductUnarchiveRequest'] == null) { + throw new runtime.RequiredError('productProductUnarchiveRequest', 'Required parameter "productProductUnarchiveRequest" was null or undefined when calling productAPIProductUnarchive().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/unarchive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductProductUnarchiveRequestToJSON(requestParameters['productProductUnarchiveRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductBooleanResponseFromJSON(jsonValue)); + }); + } + /** + * Если вы превысите лимит на восстановление, вернётся ошибка `autoarchive_restore_failed`.
[Подробнее об управлении товарами в архиве в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/zagruzka-tovarov/created-goods/upravlyat-tovarami-v-arhive) У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Вернуть товар из архива + */ + productAPIProductUnarchive(clientId, apiKey, productProductUnarchiveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductUnarchiveRaw({ clientId: clientId, apiKey: apiKey, productProductUnarchiveRequest: productProductUnarchiveRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод позволяет добавлять характеристики и изменять их значения. Изменятся только характеристики, которые вы указали в запросе. Удалить уже заполненные характеристики не получится. Для полного обновления характеристик используйте /v3/product/import. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Обновить характеристики товара + */ + productAPIProductUpdateAttributesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductUpdateAttributes().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductUpdateAttributes().'); + } + if (requestParameters['v1ProductUpdateAttributesRequest'] == null) { + throw new runtime.RequiredError('v1ProductUpdateAttributesRequest', 'Required parameter "v1ProductUpdateAttributesRequest" was null or undefined when calling productAPIProductUpdateAttributes().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/attributes/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductUpdateAttributesRequestToJSON(requestParameters['v1ProductUpdateAttributesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductUpdateAttributesResponseFromJSON(jsonValue)); + }); + } + /** + * Метод позволяет добавлять характеристики и изменять их значения. Изменятся только характеристики, которые вы указали в запросе. Удалить уже заполненные характеристики не получится. Для полного обновления характеристик используйте /v3/product/import. У метода есть лимит на количество операций c товарами в минуту и в сутки. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Обновить характеристики товара + */ + productAPIProductUpdateAttributes(clientId, apiKey, v1ProductUpdateAttributesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductUpdateAttributesRaw({ clientId: clientId, apiKey: apiKey, v1ProductUpdateAttributesRequest: v1ProductUpdateAttributesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для изменения `offer_id`, привязанных к товарам. Вы можете изменить несколько `offer_id`. Если `offer_id` уже используется для другого товара, вернётся ошибка `OFFER_ID_ALREADY_EXISTS`.
[Подробнее о требованиях к артикулам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/articyl-tovara#какие-есть-требования-к-артикулу) У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Изменить артикулы товаров из системы продавца + */ + productAPIProductUpdateOfferIDRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling productAPIProductUpdateOfferID().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling productAPIProductUpdateOfferID().'); + } + if (requestParameters['v1ProductUpdateOfferIdRequest'] == null) { + throw new runtime.RequiredError('v1ProductUpdateOfferIdRequest', 'Required parameter "v1ProductUpdateOfferIdRequest" was null or undefined when calling productAPIProductUpdateOfferID().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/update/offer-id`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ProductUpdateOfferIdRequestToJSON(requestParameters['v1ProductUpdateOfferIdRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ProductUpdateOfferIdResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для изменения `offer_id`, привязанных к товарам. Вы можете изменить несколько `offer_id`. Если `offer_id` уже используется для другого товара, вернётся ошибка `OFFER_ID_ALREADY_EXISTS`.
[Подробнее о требованиях к артикулам в Базе знаний продавца](https://seller-edu.ozon.ru/libra/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/articyl-tovara#какие-есть-требования-к-артикулу) У метода есть лимит на количество операций c товарами в минуту. Если вы превысите лимит, вернётся ошибка `429` с описанием в поле `message` и заголовками: - `Item-Retry-After` — время в минутах до обновления лимита. Для суточного лимита — время до 03:00 по московскому времени. - `Item-Rate-Limit-Remaining` — остаток операций до следующего сброса лимита. Чтобы узнать лимит, используйте [/v4/product/info/limit](#operation/ProductAPI_GetUploadQuota). + * Изменить артикулы товаров из системы продавца + */ + productAPIProductUpdateOfferID(clientId, apiKey, v1ProductUpdateOfferIdRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.productAPIProductUpdateOfferIDRaw({ clientId: clientId, apiKey: apiKey, v1ProductUpdateOfferIdRequest: v1ProductUpdateOfferIdRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/Promos.d.ts b/dist/esm/apis/Promos.d.ts new file mode 100644 index 0000000..0837d84 --- /dev/null +++ b/dist/esm/apis/Promos.d.ts @@ -0,0 +1,119 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { SellerApiActivateProductV1Request, SellerApiGetSellerActionsV1Response, SellerApiGetSellerProductV1Request, SellerApiGetSellerProductV1Response, SellerApiProductIDsV1Request, SellerApiProductV1Response, SellerApiProductV1ResponseDeactivate, V1ApproveDeclineDiscountTasksResponse, V1ApproveDiscountTasksRequest, V1DeclineDiscountTasksRequest, V1GetDiscountTaskListRequest, V1GetDiscountTaskListResponse } from '../models/index'; +export interface PromosCandidatesRequest { + sellerApiGetSellerProductV1Request?: SellerApiGetSellerProductV1Request; +} +export interface PromosProductsRequest { + sellerApiGetSellerProductV1Request?: SellerApiGetSellerProductV1Request; +} +export interface PromosProductsActivateRequest { + sellerApiActivateProductV1Request: SellerApiActivateProductV1Request; +} +export interface PromosProductsDeactivateRequest { + sellerApiProductIDsV1Request: SellerApiProductIDsV1Request; +} +export interface PromosTaskApproveRequest { + v1ApproveDiscountTasksRequest: V1ApproveDiscountTasksRequest; +} +export interface PromosTaskDeclineRequest { + v1DeclineDiscountTasksRequest: V1DeclineDiscountTasksRequest; +} +export interface PromosTaskListRequest { + v1GetDiscountTaskListRequest: V1GetDiscountTaskListRequest; +} +/** + * + */ +export declare class Promos extends runtime.BaseAPI { + /** + * Метод для получения списка акций Ozon, в которых можно участвовать. [Подробнее об акциях Ozon](https://seller-edu.ozon.ru/ceny-i-akcii/akcii-skidki-i-kupony/promo) + * Список акций + */ + promosRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка акций Ozon, в которых можно участвовать. [Подробнее об акциях Ozon](https://seller-edu.ozon.ru/ceny-i-akcii/akcii-skidki-i-kupony/promo) + * Список акций + */ + promos(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка товаров, которые могут участвовать в акции, по её идентификатору. + * Список доступных для акции товаров + */ + promosCandidatesRaw(requestParameters: PromosCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка товаров, которые могут участвовать в акции, по её идентификатору. + * Список доступных для акции товаров + */ + promosCandidates(sellerApiGetSellerProductV1Request?: SellerApiGetSellerProductV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка товаров, участвующих в акции, по её идентификатору. + * Список участвующих в акции товаров + */ + promosProductsRaw(requestParameters: PromosProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка товаров, участвующих в акции, по её идентификатору. + * Список участвующих в акции товаров + */ + promosProducts(sellerApiGetSellerProductV1Request?: SellerApiGetSellerProductV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для добавления товаров в доступную акцию. + * Добавить товар в акцию + */ + promosProductsActivateRaw(requestParameters: PromosProductsActivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для добавления товаров в доступную акцию. + * Добавить товар в акцию + */ + promosProductsActivate(sellerApiActivateProductV1Request: SellerApiActivateProductV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для удаления товаров из акции. + * Удалить товары из акции + */ + promosProductsDeactivateRaw(requestParameters: PromosProductsDeactivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для удаления товаров из акции. + * Удалить товары из акции + */ + promosProductsDeactivate(sellerApiProductIDsV1Request: SellerApiProductIDsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете согласовывать заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Согласовать заявку на скидку + */ + promosTaskApproveRaw(requestParameters: PromosTaskApproveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете согласовывать заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Согласовать заявку на скидку + */ + promosTaskApprove(v1ApproveDiscountTasksRequest: V1ApproveDiscountTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете отклонить заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Отклонить заявку на скидку + */ + promosTaskDeclineRaw(requestParameters: PromosTaskDeclineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете отклонить заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Отклонить заявку на скидку + */ + promosTaskDecline(v1DeclineDiscountTasksRequest: V1DeclineDiscountTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка товаров, которые покупатели хотят купить со скидкой. + * Список заявок на скидку + */ + promosTaskListRaw(requestParameters: PromosTaskListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка товаров, которые покупатели хотят купить со скидкой. + * Список заявок на скидку + */ + promosTaskList(v1GetDiscountTaskListRequest: V1GetDiscountTaskListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/Promos.js b/dist/esm/apis/Promos.js new file mode 100644 index 0000000..acded6c --- /dev/null +++ b/dist/esm/apis/Promos.js @@ -0,0 +1,274 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { SellerApiActivateProductV1RequestToJSON, SellerApiGetSellerActionsV1ResponseFromJSON, SellerApiGetSellerProductV1RequestToJSON, SellerApiGetSellerProductV1ResponseFromJSON, SellerApiProductIDsV1RequestToJSON, SellerApiProductV1ResponseFromJSON, SellerApiProductV1ResponseDeactivateFromJSON, V1ApproveDeclineDiscountTasksResponseFromJSON, V1ApproveDiscountTasksRequestToJSON, V1DeclineDiscountTasksRequestToJSON, V1GetDiscountTaskListRequestToJSON, V1GetDiscountTaskListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class Promos extends runtime.BaseAPI { + /** + * Метод для получения списка акций Ozon, в которых можно участвовать. [Подробнее об акциях Ozon](https://seller-edu.ozon.ru/ceny-i-akcii/akcii-skidki-i-kupony/promo) + * Список акций + */ + promosRaw(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + const response = yield this.request({ + path: `/v1/actions`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SellerApiGetSellerActionsV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка акций Ozon, в которых можно участвовать. [Подробнее об акциях Ozon](https://seller-edu.ozon.ru/ceny-i-akcii/akcii-skidki-i-kupony/promo) + * Список акций + */ + promos(initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosRaw(initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка товаров, которые могут участвовать в акции, по её идентификатору. + * Список доступных для акции товаров + */ + promosCandidatesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/candidates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SellerApiGetSellerProductV1RequestToJSON(requestParameters['sellerApiGetSellerProductV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SellerApiGetSellerProductV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка товаров, которые могут участвовать в акции, по её идентификатору. + * Список доступных для акции товаров + */ + promosCandidates(sellerApiGetSellerProductV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosCandidatesRaw({ sellerApiGetSellerProductV1Request: sellerApiGetSellerProductV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка товаров, участвующих в акции, по её идентификатору. + * Список участвующих в акции товаров + */ + promosProductsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/products`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SellerApiGetSellerProductV1RequestToJSON(requestParameters['sellerApiGetSellerProductV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SellerApiGetSellerProductV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка товаров, участвующих в акции, по её идентификатору. + * Список участвующих в акции товаров + */ + promosProducts(sellerApiGetSellerProductV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosProductsRaw({ sellerApiGetSellerProductV1Request: sellerApiGetSellerProductV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для добавления товаров в доступную акцию. + * Добавить товар в акцию + */ + promosProductsActivateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerApiActivateProductV1Request'] == null) { + throw new runtime.RequiredError('sellerApiActivateProductV1Request', 'Required parameter "sellerApiActivateProductV1Request" was null or undefined when calling promosProductsActivate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/products/activate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SellerApiActivateProductV1RequestToJSON(requestParameters['sellerApiActivateProductV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SellerApiProductV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для добавления товаров в доступную акцию. + * Добавить товар в акцию + */ + promosProductsActivate(sellerApiActivateProductV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosProductsActivateRaw({ sellerApiActivateProductV1Request: sellerApiActivateProductV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для удаления товаров из акции. + * Удалить товары из акции + */ + promosProductsDeactivateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['sellerApiProductIDsV1Request'] == null) { + throw new runtime.RequiredError('sellerApiProductIDsV1Request', 'Required parameter "sellerApiProductIDsV1Request" was null or undefined when calling promosProductsDeactivate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/products/deactivate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SellerApiProductIDsV1RequestToJSON(requestParameters['sellerApiProductIDsV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SellerApiProductV1ResponseDeactivateFromJSON(jsonValue)); + }); + } + /** + * Метод для удаления товаров из акции. + * Удалить товары из акции + */ + promosProductsDeactivate(sellerApiProductIDsV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosProductsDeactivateRaw({ sellerApiProductIDsV1Request: sellerApiProductIDsV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете согласовывать заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Согласовать заявку на скидку + */ + promosTaskApproveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ApproveDiscountTasksRequest'] == null) { + throw new runtime.RequiredError('v1ApproveDiscountTasksRequest', 'Required parameter "v1ApproveDiscountTasksRequest" was null or undefined when calling promosTaskApprove().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/discounts-task/approve`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ApproveDiscountTasksRequestToJSON(requestParameters['v1ApproveDiscountTasksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ApproveDeclineDiscountTasksResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете согласовывать заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Согласовать заявку на скидку + */ + promosTaskApprove(v1ApproveDiscountTasksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosTaskApproveRaw({ v1ApproveDiscountTasksRequest: v1ApproveDiscountTasksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете отклонить заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Отклонить заявку на скидку + */ + promosTaskDeclineRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1DeclineDiscountTasksRequest'] == null) { + throw new runtime.RequiredError('v1DeclineDiscountTasksRequest', 'Required parameter "v1DeclineDiscountTasksRequest" was null or undefined when calling promosTaskDecline().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/discounts-task/decline`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1DeclineDiscountTasksRequestToJSON(requestParameters['v1DeclineDiscountTasksRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ApproveDeclineDiscountTasksResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете отклонить заявки в статусах: `NEW` — новые, `SEEN` — просмотренные. + * Отклонить заявку на скидку + */ + promosTaskDecline(v1DeclineDiscountTasksRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosTaskDeclineRaw({ v1DeclineDiscountTasksRequest: v1DeclineDiscountTasksRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка товаров, которые покупатели хотят купить со скидкой. + * Список заявок на скидку + */ + promosTaskListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1GetDiscountTaskListRequest'] == null) { + throw new runtime.RequiredError('v1GetDiscountTaskListRequest', 'Required parameter "v1GetDiscountTaskListRequest" was null or undefined when calling promosTaskList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/actions/discounts-task/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetDiscountTaskListRequestToJSON(requestParameters['v1GetDiscountTaskListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetDiscountTaskListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка товаров, которые покупатели хотят купить со скидкой. + * Список заявок на скидку + */ + promosTaskList(v1GetDiscountTaskListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.promosTaskListRaw({ v1GetDiscountTaskListRequest: v1GetDiscountTaskListRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/PromosBeta.d.ts b/dist/esm/apis/PromosBeta.d.ts new file mode 100644 index 0000000..e5858ae --- /dev/null +++ b/dist/esm/apis/PromosBeta.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ActionsV1ActionsAutoAddProductsCandidatesRequest, ActionsV1ActionsAutoAddProductsCandidatesResponse, ActionsV1ActionsAutoAddProductsDeleteRequest, ActionsV1ActionsAutoAddProductsDeleteResponse, ActionsV1ActionsAutoAddProductsListRequest, ActionsV1ActionsAutoAddProductsListResponse, ActionsV1ActionsAutoAddProductsUpdateRequest, ActionsV1ActionsAutoAddProductsUpdateResponse } from '../models/index'; +export interface ActionsAutoAddProductsCandidatesRequest { + clientId: string; + apiKey: string; + actionsV1ActionsAutoAddProductsCandidatesRequest: ActionsV1ActionsAutoAddProductsCandidatesRequest; +} +export interface ActionsAutoAddProductsDeleteRequest { + clientId: string; + apiKey: string; + actionsV1ActionsAutoAddProductsDeleteRequest: ActionsV1ActionsAutoAddProductsDeleteRequest; +} +export interface ActionsAutoAddProductsListRequest { + clientId: string; + apiKey: string; + actionsV1ActionsAutoAddProductsListRequest: ActionsV1ActionsAutoAddProductsListRequest; +} +export interface ActionsAutoAddProductsUpdateRequest { + clientId: string; + apiKey: string; + actionsV1ActionsAutoAddProductsUpdateRequest: ActionsV1ActionsAutoAddProductsUpdateRequest; +} +/** + * + */ +export declare class PromosBeta extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список доступных товаров для автодобавления в акцию + */ + actionsAutoAddProductsCandidatesRaw(requestParameters: ActionsAutoAddProductsCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список доступных товаров для автодобавления в акцию + */ + actionsAutoAddProductsCandidates(clientId: string, apiKey: string, actionsV1ActionsAutoAddProductsCandidatesRequest: ActionsV1ActionsAutoAddProductsCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Удалить товары из автодобавления в акцию + */ + actionsAutoAddProductsDeleteRaw(requestParameters: ActionsAutoAddProductsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Удалить товары из автодобавления в акцию + */ + actionsAutoAddProductsDelete(clientId: string, apiKey: string, actionsV1ActionsAutoAddProductsDeleteRequest: ActionsV1ActionsAutoAddProductsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список товаров из автодобавления в акцию + */ + actionsAutoAddProductsListRaw(requestParameters: ActionsAutoAddProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список товаров из автодобавления в акцию + */ + actionsAutoAddProductsList(clientId: string, apiKey: string, actionsV1ActionsAutoAddProductsListRequest: ActionsV1ActionsAutoAddProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Добавить или обновить товары в автодобавлении в акцию + */ + actionsAutoAddProductsUpdateRaw(requestParameters: ActionsAutoAddProductsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Добавить или обновить товары в автодобавлении в акцию + */ + actionsAutoAddProductsUpdate(clientId: string, apiKey: string, actionsV1ActionsAutoAddProductsUpdateRequest: ActionsV1ActionsAutoAddProductsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/PromosBeta.js b/dist/esm/apis/PromosBeta.js new file mode 100644 index 0000000..a20153f --- /dev/null +++ b/dist/esm/apis/PromosBeta.js @@ -0,0 +1,205 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON, ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON, ActionsV1ActionsAutoAddProductsDeleteRequestToJSON, ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON, ActionsV1ActionsAutoAddProductsListRequestToJSON, ActionsV1ActionsAutoAddProductsListResponseFromJSON, ActionsV1ActionsAutoAddProductsUpdateRequestToJSON, ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON, } from '../models/index'; +/** + * + */ +export class PromosBeta extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список доступных товаров для автодобавления в акцию + */ + actionsAutoAddProductsCandidatesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling actionsAutoAddProductsCandidates().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling actionsAutoAddProductsCandidates().'); + } + if (requestParameters['actionsV1ActionsAutoAddProductsCandidatesRequest'] == null) { + throw new runtime.RequiredError('actionsV1ActionsAutoAddProductsCandidatesRequest', 'Required parameter "actionsV1ActionsAutoAddProductsCandidatesRequest" was null or undefined when calling actionsAutoAddProductsCandidates().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/actions/auto-add/products/candidates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON(requestParameters['actionsV1ActionsAutoAddProductsCandidatesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список доступных товаров для автодобавления в акцию + */ + actionsAutoAddProductsCandidates(clientId, apiKey, actionsV1ActionsAutoAddProductsCandidatesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.actionsAutoAddProductsCandidatesRaw({ clientId: clientId, apiKey: apiKey, actionsV1ActionsAutoAddProductsCandidatesRequest: actionsV1ActionsAutoAddProductsCandidatesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Удалить товары из автодобавления в акцию + */ + actionsAutoAddProductsDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling actionsAutoAddProductsDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling actionsAutoAddProductsDelete().'); + } + if (requestParameters['actionsV1ActionsAutoAddProductsDeleteRequest'] == null) { + throw new runtime.RequiredError('actionsV1ActionsAutoAddProductsDeleteRequest', 'Required parameter "actionsV1ActionsAutoAddProductsDeleteRequest" was null or undefined when calling actionsAutoAddProductsDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/actions/auto-add/products/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ActionsV1ActionsAutoAddProductsDeleteRequestToJSON(requestParameters['actionsV1ActionsAutoAddProductsDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Удалить товары из автодобавления в акцию + */ + actionsAutoAddProductsDelete(clientId, apiKey, actionsV1ActionsAutoAddProductsDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.actionsAutoAddProductsDeleteRaw({ clientId: clientId, apiKey: apiKey, actionsV1ActionsAutoAddProductsDeleteRequest: actionsV1ActionsAutoAddProductsDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список товаров из автодобавления в акцию + */ + actionsAutoAddProductsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling actionsAutoAddProductsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling actionsAutoAddProductsList().'); + } + if (requestParameters['actionsV1ActionsAutoAddProductsListRequest'] == null) { + throw new runtime.RequiredError('actionsV1ActionsAutoAddProductsListRequest', 'Required parameter "actionsV1ActionsAutoAddProductsListRequest" was null or undefined when calling actionsAutoAddProductsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/actions/auto-add/products/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ActionsV1ActionsAutoAddProductsListRequestToJSON(requestParameters['actionsV1ActionsAutoAddProductsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ActionsV1ActionsAutoAddProductsListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Получить список товаров из автодобавления в акцию + */ + actionsAutoAddProductsList(clientId, apiKey, actionsV1ActionsAutoAddProductsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.actionsAutoAddProductsListRaw({ clientId: clientId, apiKey: apiKey, actionsV1ActionsAutoAddProductsListRequest: actionsV1ActionsAutoAddProductsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Добавить или обновить товары в автодобавлении в акцию + */ + actionsAutoAddProductsUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling actionsAutoAddProductsUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling actionsAutoAddProductsUpdate().'); + } + if (requestParameters['actionsV1ActionsAutoAddProductsUpdateRequest'] == null) { + throw new runtime.RequiredError('actionsV1ActionsAutoAddProductsUpdateRequest', 'Required parameter "actionsV1ActionsAutoAddProductsUpdateRequest" was null or undefined when calling actionsAutoAddProductsUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/actions/auto-add/products/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ActionsV1ActionsAutoAddProductsUpdateRequestToJSON(requestParameters['actionsV1ActionsAutoAddProductsUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2009-Novye-metody-dlia-upravleniia-avtodobavleniem-tovarov-v-aktsii/) в сообществе разработчиков Ozon for dev. + * Добавить или обновить товары в автодобавлении в акцию + */ + actionsAutoAddProductsUpdate(clientId, apiKey, actionsV1ActionsAutoAddProductsUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.actionsAutoAddProductsUpdateRaw({ clientId: clientId, apiKey: apiKey, actionsV1ActionsAutoAddProductsUpdateRequest: actionsV1ActionsAutoAddProductsUpdateRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/Quants.d.ts b/dist/esm/apis/Quants.d.ts new file mode 100644 index 0000000..36b997e --- /dev/null +++ b/dist/esm/apis/Quants.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ProductV1QuantInfoRequest, ProductV1QuantInfoResponse, ProductV1QuantListRequest, ProductV1QuantListResponse } from '../models/index'; +export interface QuantGetInfoRequest { + clientId: string; + apiKey: string; + productV1QuantInfoRequest: ProductV1QuantInfoRequest; +} +export interface QuantProductListRequest { + clientId: string; + apiKey: string; + productV1QuantListRequest: ProductV1QuantListRequest; +} +/** + * + */ +export declare class Quants extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Информация об эконом-товаре + */ + quantGetInfoRaw(requestParameters: QuantGetInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Информация об эконом-товаре + */ + quantGetInfo(clientId: string, apiKey: string, productV1QuantInfoRequest: ProductV1QuantInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Список эконом-товаров + */ + quantProductListRaw(requestParameters: QuantProductListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Список эконом-товаров + */ + quantProductList(clientId: string, apiKey: string, productV1QuantListRequest: ProductV1QuantListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/Quants.js b/dist/esm/apis/Quants.js new file mode 100644 index 0000000..29b044a --- /dev/null +++ b/dist/esm/apis/Quants.js @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ProductV1QuantInfoRequestToJSON, ProductV1QuantInfoResponseFromJSON, ProductV1QuantListRequestToJSON, ProductV1QuantListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class Quants extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Информация об эконом-товаре + */ + quantGetInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling quantGetInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling quantGetInfo().'); + } + if (requestParameters['productV1QuantInfoRequest'] == null) { + throw new runtime.RequiredError('productV1QuantInfoRequest', 'Required parameter "productV1QuantInfoRequest" was null or undefined when calling quantGetInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/quant/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductV1QuantInfoRequestToJSON(requestParameters['productV1QuantInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductV1QuantInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Информация об эконом-товаре + */ + quantGetInfo(clientId, apiKey, productV1QuantInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.quantGetInfoRaw({ clientId: clientId, apiKey: apiKey, productV1QuantInfoRequest: productV1QuantInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Список эконом-товаров + */ + quantProductListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling quantProductList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling quantProductList().'); + } + if (requestParameters['productV1QuantListRequest'] == null) { + throw new runtime.RequiredError('productV1QuantListRequest', 'Required parameter "productV1QuantListRequest" was null or undefined when calling quantProductList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/product/quant/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ProductV1QuantListRequestToJSON(requestParameters['productV1QuantListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ProductV1QuantListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1084-Metody-po-tarifu-Ekonom) в сообществе разработчиков Ozon for dev. + * Список эконом-товаров + */ + quantProductList(clientId, apiKey, productV1QuantListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.quantProductListRaw({ clientId: clientId, apiKey: apiKey, productV1QuantListRequest: productV1QuantListRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/QuestionsAnswers.d.ts b/dist/esm/apis/QuestionsAnswers.d.ts new file mode 100644 index 0000000..35c1a53 --- /dev/null +++ b/dist/esm/apis/QuestionsAnswers.d.ts @@ -0,0 +1,137 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1QuestionAnswerCreateRequest, V1QuestionAnswerCreateResponse, V1QuestionAnswerDeleteRequest, V1QuestionAnswerListRequest, V1QuestionAnswerListResponse, V1QuestionChangeStatusRequest, V1QuestionCountResponse, V1QuestionInfoRequest, V1QuestionInfoResponse, V1QuestionListRequest, V1QuestionListResponse, V1QuestionTopSkuRequest, V1QuestionTopSkuResponse } from '../models/index'; +export interface QuestionAnswerCreateRequest { + clientId: string; + apiKey: string; + v1QuestionAnswerCreateRequest: V1QuestionAnswerCreateRequest; +} +export interface QuestionAnswerDeleteRequest { + clientId: string; + apiKey: string; + v1QuestionAnswerDeleteRequest: V1QuestionAnswerDeleteRequest; +} +export interface QuestionAnswerListRequest { + clientId: string; + apiKey: string; + v1QuestionAnswerListRequest: V1QuestionAnswerListRequest; +} +export interface QuestionChangeStatusRequest { + clientId: string; + apiKey: string; + v1QuestionChangeStatusRequest?: V1QuestionChangeStatusRequest; +} +export interface QuestionCountRequest { + clientId: string; + apiKey: string; +} +export interface QuestionInfoRequest { + clientId: string; + apiKey: string; + v1QuestionInfoRequest?: V1QuestionInfoRequest; +} +export interface QuestionListRequest { + clientId: string; + apiKey: string; + v1QuestionListRequest: V1QuestionListRequest; +} +export interface QuestionTopSkuRequest { + clientId: string; + apiKey: string; + v1QuestionTopSkuRequest?: V1QuestionTopSkuRequest; +} +/** + * + */ +export declare class QuestionsAnswers extends runtime.BaseAPI { + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Создать ответ на вопрос + */ + questionAnswerCreateRaw(requestParameters: QuestionAnswerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Создать ответ на вопрос + */ + questionAnswerCreate(clientId: string, apiKey: string, v1QuestionAnswerCreateRequest: V1QuestionAnswerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Удалить ответ на вопрос + */ + questionAnswerDeleteRaw(requestParameters: QuestionAnswerDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Удалить ответ на вопрос + */ + questionAnswerDelete(clientId: string, apiKey: string, v1QuestionAnswerDeleteRequest: V1QuestionAnswerDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список ответов на вопрос + */ + questionAnswerListRaw(requestParameters: QuestionAnswerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список ответов на вопрос + */ + questionAnswerList(clientId: string, apiKey: string, v1QuestionAnswerListRequest: V1QuestionAnswerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Изменить статус вопросов + */ + questionChangeStatusRaw(requestParameters: QuestionChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Изменить статус вопросов + */ + questionChangeStatus(clientId: string, apiKey: string, v1QuestionChangeStatusRequest?: V1QuestionChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Количество вопросов по статусам + */ + questionCountRaw(requestParameters: QuestionCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Количество вопросов по статусам + */ + questionCount(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Информация о вопросе + */ + questionInfoRaw(requestParameters: QuestionInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Информация о вопросе + */ + questionInfo(clientId: string, apiKey: string, v1QuestionInfoRequest?: V1QuestionInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список вопросов + */ + questionListRaw(requestParameters: QuestionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список вопросов + */ + questionList(clientId: string, apiKey: string, v1QuestionListRequest: V1QuestionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Товары с наибольшим количеством вопросов + */ + questionTopSkuRaw(requestParameters: QuestionTopSkuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Товары с наибольшим количеством вопросов + */ + questionTopSku(clientId: string, apiKey: string, v1QuestionTopSkuRequest?: V1QuestionTopSkuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/QuestionsAnswers.js b/dist/esm/apis/QuestionsAnswers.js new file mode 100644 index 0000000..8a6cf74 --- /dev/null +++ b/dist/esm/apis/QuestionsAnswers.js @@ -0,0 +1,365 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1QuestionAnswerCreateRequestToJSON, V1QuestionAnswerCreateResponseFromJSON, V1QuestionAnswerDeleteRequestToJSON, V1QuestionAnswerListRequestToJSON, V1QuestionAnswerListResponseFromJSON, V1QuestionChangeStatusRequestToJSON, V1QuestionCountResponseFromJSON, V1QuestionInfoRequestToJSON, V1QuestionInfoResponseFromJSON, V1QuestionListRequestToJSON, V1QuestionListResponseFromJSON, V1QuestionTopSkuRequestToJSON, V1QuestionTopSkuResponseFromJSON, } from '../models/index'; +/** + * + */ +export class QuestionsAnswers extends runtime.BaseAPI { + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Создать ответ на вопрос + */ + questionAnswerCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionAnswerCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionAnswerCreate().'); + } + if (requestParameters['v1QuestionAnswerCreateRequest'] == null) { + throw new runtime.RequiredError('v1QuestionAnswerCreateRequest', 'Required parameter "v1QuestionAnswerCreateRequest" was null or undefined when calling questionAnswerCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/answer/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1QuestionAnswerCreateRequestToJSON(requestParameters['v1QuestionAnswerCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1QuestionAnswerCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Создать ответ на вопрос + */ + questionAnswerCreate(clientId, apiKey, v1QuestionAnswerCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionAnswerCreateRaw({ clientId: clientId, apiKey: apiKey, v1QuestionAnswerCreateRequest: v1QuestionAnswerCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Удалить ответ на вопрос + */ + questionAnswerDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionAnswerDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionAnswerDelete().'); + } + if (requestParameters['v1QuestionAnswerDeleteRequest'] == null) { + throw new runtime.RequiredError('v1QuestionAnswerDeleteRequest', 'Required parameter "v1QuestionAnswerDeleteRequest" was null or undefined when calling questionAnswerDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/answer/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1QuestionAnswerDeleteRequestToJSON(requestParameters['v1QuestionAnswerDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Удалить ответ на вопрос + */ + questionAnswerDelete(clientId, apiKey, v1QuestionAnswerDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.questionAnswerDeleteRaw({ clientId: clientId, apiKey: apiKey, v1QuestionAnswerDeleteRequest: v1QuestionAnswerDeleteRequest }, initOverrides); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список ответов на вопрос + */ + questionAnswerListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionAnswerList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionAnswerList().'); + } + if (requestParameters['v1QuestionAnswerListRequest'] == null) { + throw new runtime.RequiredError('v1QuestionAnswerListRequest', 'Required parameter "v1QuestionAnswerListRequest" was null or undefined when calling questionAnswerList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/answer/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1QuestionAnswerListRequestToJSON(requestParameters['v1QuestionAnswerListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1QuestionAnswerListResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список ответов на вопрос + */ + questionAnswerList(clientId, apiKey, v1QuestionAnswerListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionAnswerListRaw({ clientId: clientId, apiKey: apiKey, v1QuestionAnswerListRequest: v1QuestionAnswerListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Изменить статус вопросов + */ + questionChangeStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionChangeStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionChangeStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/change-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1QuestionChangeStatusRequestToJSON(requestParameters['v1QuestionChangeStatusRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Изменить статус вопросов + */ + questionChangeStatus(clientId, apiKey, v1QuestionChangeStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.questionChangeStatusRaw({ clientId: clientId, apiKey: apiKey, v1QuestionChangeStatusRequest: v1QuestionChangeStatusRequest }, initOverrides); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Количество вопросов по статусам + */ + questionCountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionCount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionCount().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/count`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1QuestionCountResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Количество вопросов по статусам + */ + questionCount(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionCountRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Информация о вопросе + */ + questionInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1QuestionInfoRequestToJSON(requestParameters['v1QuestionInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1QuestionInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Информация о вопросе + */ + questionInfo(clientId, apiKey, v1QuestionInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionInfoRaw({ clientId: clientId, apiKey: apiKey, v1QuestionInfoRequest: v1QuestionInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список вопросов + */ + questionListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionList().'); + } + if (requestParameters['v1QuestionListRequest'] == null) { + throw new runtime.RequiredError('v1QuestionListRequest', 'Required parameter "v1QuestionListRequest" was null or undefined when calling questionList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1QuestionListRequestToJSON(requestParameters['v1QuestionListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1QuestionListResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Список вопросов + */ + questionList(clientId, apiKey, v1QuestionListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionListRaw({ clientId: clientId, apiKey: apiKey, v1QuestionListRequest: v1QuestionListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Товары с наибольшим количеством вопросов + */ + questionTopSkuRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling questionTopSku().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling questionTopSku().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/question/top-sku`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1QuestionTopSkuRequestToJSON(requestParameters['v1QuestionTopSkuRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1QuestionTopSkuResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * Товары с наибольшим количеством вопросов + */ + questionTopSku(clientId, apiKey, v1QuestionTopSkuRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.questionTopSkuRaw({ clientId: clientId, apiKey: apiKey, v1QuestionTopSkuRequest: v1QuestionTopSkuRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/RFBSReturnsAPI.d.ts b/dist/esm/apis/RFBSReturnsAPI.d.ts new file mode 100644 index 0000000..4cf208a --- /dev/null +++ b/dist/esm/apis/RFBSReturnsAPI.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1ReturnsRfbsActionSetRequest, V2ReturnsRfbsGetRequest, V2ReturnsRfbsGetResponse, V2ReturnsRfbsListRequest, V2ReturnsRfbsListResponse } from '../models/index'; +export interface RFBSReturnsAPIReturnsRfbsGetV2Request { + clientId: string; + apiKey: string; + v2ReturnsRfbsGetRequest: V2ReturnsRfbsGetRequest; +} +export interface RFBSReturnsAPIReturnsRfbsListV2Request { + clientId: string; + apiKey: string; + v2ReturnsRfbsListRequest: V2ReturnsRfbsListRequest; +} +export interface ReturnsAPIReturnsRfbsActionSetRequest { + v1ReturnsRfbsActionSetRequest: V1ReturnsRfbsActionSetRequest; +} +/** + * + */ +export declare class RFBSReturnsAPI extends runtime.BaseAPI { + /** + * Информация о заявке на возврат + */ + rFBSReturnsAPIReturnsRfbsGetV2Raw(requestParameters: RFBSReturnsAPIReturnsRfbsGetV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о заявке на возврат + */ + rFBSReturnsAPIReturnsRfbsGetV2(clientId: string, apiKey: string, v2ReturnsRfbsGetRequest: V2ReturnsRfbsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список заявок на возврат + */ + rFBSReturnsAPIReturnsRfbsListV2Raw(requestParameters: RFBSReturnsAPIReturnsRfbsListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список заявок на возврат + */ + rFBSReturnsAPIReturnsRfbsListV2(clientId: string, apiKey: string, v2ReturnsRfbsListRequest: V2ReturnsRfbsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для передачи действий для возврата rFBS. + * Передать доступные действия для rFBS возвратов + */ + returnsAPIReturnsRfbsActionSetRaw(requestParameters: ReturnsAPIReturnsRfbsActionSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для передачи действий для возврата rFBS. + * Передать доступные действия для rFBS возвратов + */ + returnsAPIReturnsRfbsActionSet(v1ReturnsRfbsActionSetRequest: V1ReturnsRfbsActionSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/RFBSReturnsAPI.js b/dist/esm/apis/RFBSReturnsAPI.js new file mode 100644 index 0000000..175f81a --- /dev/null +++ b/dist/esm/apis/RFBSReturnsAPI.js @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1ReturnsRfbsActionSetRequestToJSON, V2ReturnsRfbsGetRequestToJSON, V2ReturnsRfbsGetResponseFromJSON, V2ReturnsRfbsListRequestToJSON, V2ReturnsRfbsListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class RFBSReturnsAPI extends runtime.BaseAPI { + /** + * Информация о заявке на возврат + */ + rFBSReturnsAPIReturnsRfbsGetV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling rFBSReturnsAPIReturnsRfbsGetV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling rFBSReturnsAPIReturnsRfbsGetV2().'); + } + if (requestParameters['v2ReturnsRfbsGetRequest'] == null) { + throw new runtime.RequiredError('v2ReturnsRfbsGetRequest', 'Required parameter "v2ReturnsRfbsGetRequest" was null or undefined when calling rFBSReturnsAPIReturnsRfbsGetV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/returns/rfbs/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2ReturnsRfbsGetRequestToJSON(requestParameters['v2ReturnsRfbsGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2ReturnsRfbsGetResponseFromJSON(jsonValue)); + }); + } + /** + * Информация о заявке на возврат + */ + rFBSReturnsAPIReturnsRfbsGetV2(clientId, apiKey, v2ReturnsRfbsGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rFBSReturnsAPIReturnsRfbsGetV2Raw({ clientId: clientId, apiKey: apiKey, v2ReturnsRfbsGetRequest: v2ReturnsRfbsGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список заявок на возврат + */ + rFBSReturnsAPIReturnsRfbsListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling rFBSReturnsAPIReturnsRfbsListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling rFBSReturnsAPIReturnsRfbsListV2().'); + } + if (requestParameters['v2ReturnsRfbsListRequest'] == null) { + throw new runtime.RequiredError('v2ReturnsRfbsListRequest', 'Required parameter "v2ReturnsRfbsListRequest" was null or undefined when calling rFBSReturnsAPIReturnsRfbsListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/returns/rfbs/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2ReturnsRfbsListRequestToJSON(requestParameters['v2ReturnsRfbsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2ReturnsRfbsListResponseFromJSON(jsonValue)); + }); + } + /** + * Список заявок на возврат + */ + rFBSReturnsAPIReturnsRfbsListV2(clientId, apiKey, v2ReturnsRfbsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.rFBSReturnsAPIReturnsRfbsListV2Raw({ clientId: clientId, apiKey: apiKey, v2ReturnsRfbsListRequest: v2ReturnsRfbsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для передачи действий для возврата rFBS. + * Передать доступные действия для rFBS возвратов + */ + returnsAPIReturnsRfbsActionSetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ReturnsRfbsActionSetRequest'] == null) { + throw new runtime.RequiredError('v1ReturnsRfbsActionSetRequest', 'Required parameter "v1ReturnsRfbsActionSetRequest" was null or undefined when calling returnsAPIReturnsRfbsActionSet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/returns/rfbs/action/set`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ReturnsRfbsActionSetRequestToJSON(requestParameters['v1ReturnsRfbsActionSetRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Метод для передачи действий для возврата rFBS. + * Передать доступные действия для rFBS возвратов + */ + returnsAPIReturnsRfbsActionSet(v1ReturnsRfbsActionSetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.returnsAPIReturnsRfbsActionSetRaw({ v1ReturnsRfbsActionSetRequest: v1ReturnsRfbsActionSetRequest }, initOverrides); + }); + } +} diff --git a/dist/esm/apis/RFBSWarehouseSetup.d.ts b/dist/esm/apis/RFBSWarehouseSetup.d.ts new file mode 100644 index 0000000..a761b17 --- /dev/null +++ b/dist/esm/apis/RFBSWarehouseSetup.d.ts @@ -0,0 +1,123 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1WarehouseERFBSAggregatorCreateRequest, V1WarehouseERFBSAggregatorCreateResponse, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest, V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse, V1WarehouseERFBSNonIntegratedCreateRequest, V1WarehouseERFBSNonIntegratedCreateResponse, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse, V1WarehouseERFBSUpdateRequest, V1WarehouseERFBSUpdateResponse, WarehouseV1WarehouseRfbsPauseRequest, WarehouseV1WarehouseRfbsPauseResponse, WarehouseV1WarehouseRfbsUnpauseRequest, WarehouseV1WarehouseRfbsUnpauseResponse } from '../models/index'; +export interface WarehouseERFBSAggregatorCreateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSAggregatorCreateRequest: V1WarehouseERFBSAggregatorCreateRequest; +} +export interface WarehouseERFBSAggregatorDeliveryMethodUpdateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +} +export interface WarehouseERFBSNonIntegratedCreateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSNonIntegratedCreateRequest: V1WarehouseERFBSNonIntegratedCreateRequest; +} +export interface WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +} +export interface WarehouseERFBSUpdateRequest { + clientId: string; + apiKey: string; + v1WarehouseERFBSUpdateRequest: V1WarehouseERFBSUpdateRequest; +} +export interface WarehouseRfbsPauseRequest { + clientId: string; + apiKey: string; + warehouseV1WarehouseRfbsPauseRequest: WarehouseV1WarehouseRfbsPauseRequest; +} +export interface WarehouseRfbsUnpauseRequest { + clientId: string; + apiKey: string; + warehouseV1WarehouseRfbsUnpauseRequest: WarehouseV1WarehouseRfbsUnpauseRequest; +} +/** + * + */ +export declare class RFBSWarehouseSetup extends runtime.BaseAPI { + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorCreateRaw(requestParameters: WarehouseERFBSAggregatorCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorCreate(clientId: string, apiKey: string, v1WarehouseERFBSAggregatorCreateRequest: V1WarehouseERFBSAggregatorCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorDeliveryMethodUpdateRaw(requestParameters: WarehouseERFBSAggregatorDeliveryMethodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorDeliveryMethodUpdate(clientId: string, apiKey: string, v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedCreateRaw(requestParameters: WarehouseERFBSNonIntegratedCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedCreate(clientId: string, apiKey: string, v1WarehouseERFBSNonIntegratedCreateRequest: V1WarehouseERFBSNonIntegratedCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedDeliveryMethodUpdateRaw(requestParameters: WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedDeliveryMethodUpdate(clientId: string, apiKey: string, v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить склад + */ + warehouseERFBSUpdateRaw(requestParameters: WarehouseERFBSUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить склад + */ + warehouseERFBSUpdate(clientId: string, apiKey: string, v1WarehouseERFBSUpdateRequest: V1WarehouseERFBSUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Скрывает товары склада с витрины. Изменять сток не нужно. + * Поставить rFBS-склад на паузу + */ + warehouseRfbsPauseRaw(requestParameters: WarehouseRfbsPauseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Скрывает товары склада с витрины. Изменять сток не нужно. + * Поставить rFBS-склад на паузу + */ + warehouseRfbsPause(clientId: string, apiKey: string, warehouseV1WarehouseRfbsPauseRequest: WarehouseV1WarehouseRfbsPauseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает товары склада на витрину. + * Снять rFBS-склад с паузы + */ + warehouseRfbsUnpauseRaw(requestParameters: WarehouseRfbsUnpauseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает товары склада на витрину. + * Снять rFBS-склад с паузы + */ + warehouseRfbsUnpause(clientId: string, apiKey: string, warehouseV1WarehouseRfbsUnpauseRequest: WarehouseV1WarehouseRfbsUnpauseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/RFBSWarehouseSetup.js b/dist/esm/apis/RFBSWarehouseSetup.js new file mode 100644 index 0000000..ae1c3d1 --- /dev/null +++ b/dist/esm/apis/RFBSWarehouseSetup.js @@ -0,0 +1,331 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1WarehouseERFBSAggregatorCreateRequestToJSON, V1WarehouseERFBSAggregatorCreateResponseFromJSON, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON, V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestToJSON, V1WarehouseERFBSNonIntegratedCreateResponseFromJSON, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON, V1WarehouseERFBSUpdateRequestToJSON, V1WarehouseERFBSUpdateResponseFromJSON, WarehouseV1WarehouseRfbsPauseRequestToJSON, WarehouseV1WarehouseRfbsPauseResponseFromJSON, WarehouseV1WarehouseRfbsUnpauseRequestToJSON, WarehouseV1WarehouseRfbsUnpauseResponseFromJSON, } from '../models/index'; +/** + * + */ +export class RFBSWarehouseSetup extends runtime.BaseAPI { + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSAggregatorCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSAggregatorCreate().'); + } + if (requestParameters['v1WarehouseERFBSAggregatorCreateRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseERFBSAggregatorCreateRequest', 'Required parameter "v1WarehouseERFBSAggregatorCreateRequest" was null or undefined when calling warehouseERFBSAggregatorCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/aggregator/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseERFBSAggregatorCreateRequestToJSON(requestParameters['v1WarehouseERFBSAggregatorCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseERFBSAggregatorCreateResponseFromJSON(jsonValue)); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorCreate(clientId, apiKey, v1WarehouseERFBSAggregatorCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSAggregatorCreateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSAggregatorCreateRequest: v1WarehouseERFBSAggregatorCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorDeliveryMethodUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSAggregatorDeliveryMethodUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSAggregatorDeliveryMethodUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/aggregator/delivery-method/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON(requestParameters['v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON(jsonValue)); + }); + } + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Партнёры Ozon» + */ + warehouseERFBSAggregatorDeliveryMethodUpdate(clientId, apiKey, v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSAggregatorDeliveryMethodUpdateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest: v1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSNonIntegratedCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSNonIntegratedCreate().'); + } + if (requestParameters['v1WarehouseERFBSNonIntegratedCreateRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseERFBSNonIntegratedCreateRequest', 'Required parameter "v1WarehouseERFBSNonIntegratedCreateRequest" was null or undefined when calling warehouseERFBSNonIntegratedCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/non-integrated/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseERFBSNonIntegratedCreateRequestToJSON(requestParameters['v1WarehouseERFBSNonIntegratedCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseERFBSNonIntegratedCreateResponseFromJSON(jsonValue)); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Создать склад с методом доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedCreate(clientId, apiKey, v1WarehouseERFBSNonIntegratedCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSNonIntegratedCreateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSNonIntegratedCreateRequest: v1WarehouseERFBSNonIntegratedCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedDeliveryMethodUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSNonIntegratedDeliveryMethodUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSNonIntegratedDeliveryMethodUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/non-integrated/delivery-method/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON(requestParameters['v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON(jsonValue)); + }); + } + /** + * [Подробнее о схеме rFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить метод доставки «Вы или сторонняя служба» + */ + warehouseERFBSNonIntegratedDeliveryMethodUpdate(clientId, apiKey, v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSNonIntegratedDeliveryMethodUpdateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest: v1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить склад + */ + warehouseERFBSUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseERFBSUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseERFBSUpdate().'); + } + if (requestParameters['v1WarehouseERFBSUpdateRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseERFBSUpdateRequest', 'Required parameter "v1WarehouseERFBSUpdateRequest" was null or undefined when calling warehouseERFBSUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/erfbs/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseERFBSUpdateRequestToJSON(requestParameters['v1WarehouseERFBSUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseERFBSUpdateResponseFromJSON(jsonValue)); + }); + } + /** + * [Подробнее о схеме realFBS Express](https://seller-edu.ozon.ru/rfbs/scheme-of-work/rfbs-express#%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-realfbs-express) + * Обновить склад + */ + warehouseERFBSUpdate(clientId, apiKey, v1WarehouseERFBSUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseERFBSUpdateRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseERFBSUpdateRequest: v1WarehouseERFBSUpdateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Скрывает товары склада с витрины. Изменять сток не нужно. + * Поставить rFBS-склад на паузу + */ + warehouseRfbsPauseRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseRfbsPause().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseRfbsPause().'); + } + if (requestParameters['warehouseV1WarehouseRfbsPauseRequest'] == null) { + throw new runtime.RequiredError('warehouseV1WarehouseRfbsPauseRequest', 'Required parameter "warehouseV1WarehouseRfbsPauseRequest" was null or undefined when calling warehouseRfbsPause().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/rfbs/pause`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: WarehouseV1WarehouseRfbsPauseRequestToJSON(requestParameters['warehouseV1WarehouseRfbsPauseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => WarehouseV1WarehouseRfbsPauseResponseFromJSON(jsonValue)); + }); + } + /** + * Скрывает товары склада с витрины. Изменять сток не нужно. + * Поставить rFBS-склад на паузу + */ + warehouseRfbsPause(clientId, apiKey, warehouseV1WarehouseRfbsPauseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseRfbsPauseRaw({ clientId: clientId, apiKey: apiKey, warehouseV1WarehouseRfbsPauseRequest: warehouseV1WarehouseRfbsPauseRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает товары склада на витрину. + * Снять rFBS-склад с паузы + */ + warehouseRfbsUnpauseRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseRfbsUnpause().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseRfbsUnpause().'); + } + if (requestParameters['warehouseV1WarehouseRfbsUnpauseRequest'] == null) { + throw new runtime.RequiredError('warehouseV1WarehouseRfbsUnpauseRequest', 'Required parameter "warehouseV1WarehouseRfbsUnpauseRequest" was null or undefined when calling warehouseRfbsUnpause().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/rfbs/unpause`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: WarehouseV1WarehouseRfbsUnpauseRequestToJSON(requestParameters['warehouseV1WarehouseRfbsUnpauseRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => WarehouseV1WarehouseRfbsUnpauseResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает товары склада на витрину. + * Снять rFBS-склад с паузы + */ + warehouseRfbsUnpause(clientId, apiKey, warehouseV1WarehouseRfbsUnpauseRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseRfbsUnpauseRaw({ clientId: clientId, apiKey: apiKey, warehouseV1WarehouseRfbsUnpauseRequest: warehouseV1WarehouseRfbsUnpauseRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/Receipt.d.ts b/dist/esm/apis/Receipt.d.ts new file mode 100644 index 0000000..2be77e6 --- /dev/null +++ b/dist/esm/apis/Receipt.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GetReceiptRequest, V1GetReceiptResponse, V1ReceiptsSellerListRequest, V1ReceiptsSellerListResponse, V1UploadReceiptRequestTypeEnum, V1UploadReceiptResponse } from '../models/index'; +export interface GetReceiptRequest { + clientId: string; + apiKey: string; + v1GetReceiptRequest?: V1GetReceiptRequest; +} +export interface ReceiptsSellerListRequest { + clientId: string; + apiKey: string; + v1ReceiptsSellerListRequest?: V1ReceiptsSellerListRequest; +} +export interface UploadReceiptRequest { + clientId: string; + apiKey: string; + content: string; + operationType: string; + postingNumbers: Array; + receiptNumber: string; + type: V1UploadReceiptRequestTypeEnum; + parentReceiptId?: string; +} +/** + * + */ +export declare class Receipt extends runtime.BaseAPI { + /** + * + * Получить чек в формате PDF + */ + getReceiptRaw(requestParameters: GetReceiptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Получить чек в формате PDF + */ + getReceipt(clientId: string, apiKey: string, v1GetReceiptRequest?: V1GetReceiptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Получить список чеков продавца + */ + receiptsSellerListRaw(requestParameters: ReceiptsSellerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Получить список чеков продавца + */ + receiptsSellerList(clientId: string, apiKey: string, v1ReceiptsSellerListRequest?: V1ReceiptsSellerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Загрузить чек + */ + uploadReceiptRaw(requestParameters: UploadReceiptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Загрузить чек + */ + uploadReceipt(clientId: string, apiKey: string, content: string, operationType: string, postingNumbers: Array, receiptNumber: string, type: V1UploadReceiptRequestTypeEnum, parentReceiptId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/Receipt.js b/dist/esm/apis/Receipt.js new file mode 100644 index 0000000..71af798 --- /dev/null +++ b/dist/esm/apis/Receipt.js @@ -0,0 +1,197 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1GetReceiptRequestToJSON, V1GetReceiptResponseFromJSON, V1ReceiptsSellerListRequestToJSON, V1ReceiptsSellerListResponseFromJSON, V1UploadReceiptResponseFromJSON, } from '../models/index'; +/** + * + */ +export class Receipt extends runtime.BaseAPI { + /** + * + * Получить чек в формате PDF + */ + getReceiptRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getReceipt().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getReceipt().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/receipts/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetReceiptRequestToJSON(requestParameters['v1GetReceiptRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetReceiptResponseFromJSON(jsonValue)); + }); + } + /** + * + * Получить чек в формате PDF + */ + getReceipt(clientId, apiKey, v1GetReceiptRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getReceiptRaw({ clientId: clientId, apiKey: apiKey, v1GetReceiptRequest: v1GetReceiptRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Получить список чеков продавца + */ + receiptsSellerListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling receiptsSellerList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling receiptsSellerList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/receipts/seller/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ReceiptsSellerListRequestToJSON(requestParameters['v1ReceiptsSellerListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ReceiptsSellerListResponseFromJSON(jsonValue)); + }); + } + /** + * + * Получить список чеков продавца + */ + receiptsSellerList(clientId, apiKey, v1ReceiptsSellerListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.receiptsSellerListRaw({ clientId: clientId, apiKey: apiKey, v1ReceiptsSellerListRequest: v1ReceiptsSellerListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Загрузить чек + */ + uploadReceiptRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['content'] == null) { + throw new runtime.RequiredError('content', 'Required parameter "content" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['operationType'] == null) { + throw new runtime.RequiredError('operationType', 'Required parameter "operationType" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['postingNumbers'] == null) { + throw new runtime.RequiredError('postingNumbers', 'Required parameter "postingNumbers" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['receiptNumber'] == null) { + throw new runtime.RequiredError('receiptNumber', 'Required parameter "receiptNumber" was null or undefined when calling uploadReceipt().'); + } + if (requestParameters['type'] == null) { + throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling uploadReceipt().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const consumes = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + let formParams; + let useForm = false; + if (useForm) { + formParams = new FormData(); + } + else { + formParams = new URLSearchParams(); + } + if (requestParameters['content'] != null) { + formParams.append('content', requestParameters['content']); + } + if (requestParameters['operationType'] != null) { + formParams.append('operation_type', requestParameters['operationType']); + } + if (requestParameters['parentReceiptId'] != null) { + formParams.append('parent_receipt_id', requestParameters['parentReceiptId']); + } + if (requestParameters['postingNumbers'] != null) { + formParams.append('posting_numbers', requestParameters['postingNumbers'].join(runtime.COLLECTION_FORMATS["csv"])); + } + if (requestParameters['receiptNumber'] != null) { + formParams.append('receipt_number', requestParameters['receiptNumber']); + } + if (requestParameters['type'] != null) { + formParams.append('type', requestParameters['type']); + } + const response = yield this.request({ + path: `/v1/receipts/upload`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1UploadReceiptResponseFromJSON(jsonValue)); + }); + } + /** + * + * Загрузить чек + */ + uploadReceipt(clientId, apiKey, content, operationType, postingNumbers, receiptNumber, type, parentReceiptId, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.uploadReceiptRaw({ clientId: clientId, apiKey: apiKey, content: content, operationType: operationType, postingNumbers: postingNumbers, receiptNumber: receiptNumber, type: type, parentReceiptId: parentReceiptId }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ReportAPI.d.ts b/dist/esm/apis/ReportAPI.d.ts new file mode 100644 index 0000000..f9e8c97 --- /dev/null +++ b/dist/esm/apis/ReportAPI.d.ts @@ -0,0 +1,183 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CommonCreateReportResponse, ReportCreateCompanyPostingsReportRequest, ReportCreateCompanyProductsReportRequest, ReportCreateDiscountedResponse, ReportCreateReportResponse, ReportReportInfoRequest, ReportReportInfoResponse, ReportReportListRequest, ReportReportListResponse, V1CreatePlacementByProductsReportRequest, V1CreatePlacementByProductsReportResponse, V1CreatePlacementBySuppliesReportRequest, V1CreatePlacementBySuppliesReportResponse, V1CreateStockByWarehouseReportRequest, V1ReportMarkedProductsSalesCreateRequest, V2ReportReturnsCreateRequest, V2ReportReturnsCreateResponse, V3FinanceCashFlowStatementListRequest, V3FinanceCashFlowStatementListResponse } from '../models/index'; +export interface CreateCompanyMarkedProductsSalesReportRequest { + clientId: string; + apiKey: string; + v1ReportMarkedProductsSalesCreateRequest?: V1ReportMarkedProductsSalesCreateRequest; +} +export interface CreatePlacementByProductsReportRequest { + clientId: string; + apiKey: string; + v1CreatePlacementByProductsReportRequest?: V1CreatePlacementByProductsReportRequest; +} +export interface CreatePlacementBySuppliesReportRequest { + clientId: string; + apiKey: string; + v1CreatePlacementBySuppliesReportRequest?: V1CreatePlacementBySuppliesReportRequest; +} +export interface FinanceAPIFinanceCashFlowStatementListRequest { + clientId: string; + apiKey: string; + v3FinanceCashFlowStatementListRequest: V3FinanceCashFlowStatementListRequest; +} +export interface ReportAPICreateCompanyPostingsReportRequest { + clientId: string; + apiKey: string; + reportCreateCompanyPostingsReportRequest: ReportCreateCompanyPostingsReportRequest; +} +export interface ReportAPICreateCompanyProductsReportRequest { + clientId: string; + apiKey: string; + reportCreateCompanyProductsReportRequest: ReportCreateCompanyProductsReportRequest; +} +export interface ReportAPICreateDiscountedReportRequest { + clientId: string; + apiKey: string; + body: object; +} +export interface ReportAPICreateStockByWarehouseReportRequest { + clientId: string; + apiKey: string; + v1CreateStockByWarehouseReportRequest: V1CreateStockByWarehouseReportRequest; +} +export interface ReportAPIReportInfoRequest { + clientId: string; + apiKey: string; + reportReportInfoRequest: ReportReportInfoRequest; +} +export interface ReportAPIReportListRequest { + clientId: string; + apiKey: string; + reportReportListRequest: ReportReportListRequest; +} +export interface ReportAPIReportReturnsCreateRequest { + clientId: string; + apiKey: string; + v2ReportReturnsCreateRequest: V2ReportReturnsCreateRequest; +} +/** + * + */ +export declare class ReportAPI extends runtime.BaseAPI { + /** + * В одном отчёте вы можете получить не больше 50 000 кодов маркировки. Чтобы получить остальные данные, уменьшите период формирования отчёта. + * Сгенерировать отчёт по продажам товаров с маркировкой + */ + createCompanyMarkedProductsSalesReportRaw(requestParameters: CreateCompanyMarkedProductsSalesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * В одном отчёте вы можете получить не больше 50 000 кодов маркировки. Чтобы получить остальные данные, уменьшите период формирования отчёта. + * Сгенерировать отчёт по продажам товаров с маркировкой + */ + createCompanyMarkedProductsSalesReport(clientId: string, apiKey: string, v1ReportMarkedProductsSalesCreateRequest?: V1ReportMarkedProductsSalesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по товарам + */ + createPlacementByProductsReportRaw(requestParameters: CreatePlacementByProductsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по товарам + */ + createPlacementByProductsReport(clientId: string, apiKey: string, v1CreatePlacementByProductsReportRequest?: V1CreatePlacementByProductsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по поставкам + */ + createPlacementBySuppliesReportRaw(requestParameters: CreatePlacementBySuppliesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по поставкам + */ + createPlacementBySuppliesReport(clientId: string, apiKey: string, v1CreatePlacementBySuppliesReportRequest?: V1CreatePlacementBySuppliesReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения финансового отчёта за периоды с 01 по 15 и с 16 по 31. Запросить отчёт за отдельные дни не получится. Соответствует разделу **Финансы → Баланс → Доходы и расходы** в личном кабинете. + * Финансовый отчёт + */ + financeAPIFinanceCashFlowStatementListRaw(requestParameters: FinanceAPIFinanceCashFlowStatementListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения финансового отчёта за периоды с 01 по 15 и с 16 по 31. Запросить отчёт за отдельные дни не получится. Соответствует разделу **Финансы → Баланс → Доходы и расходы** в личном кабинете. + * Финансовый отчёт + */ + financeAPIFinanceCashFlowStatementList(clientId: string, apiKey: string, v3FinanceCashFlowStatementListRequest: V3FinanceCashFlowStatementListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт об отправлениях с информацией по заказам: - статусы заказов, - дата начала обработки, - номера заказов, - номера отправлений, - стоимость отправлений, - содержимое отправлений. Соответствует разделу **FBO → Заказы со склада Ozon** и **FBS → Заказы с моих складов → CSV** в личном кабинете. + * Отчёт об отправлениях + */ + reportAPICreateCompanyPostingsReportRaw(requestParameters: ReportAPICreateCompanyPostingsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт об отправлениях с информацией по заказам: - статусы заказов, - дата начала обработки, - номера заказов, - номера отправлений, - стоимость отправлений, - содержимое отправлений. Соответствует разделу **FBO → Заказы со склада Ozon** и **FBS → Заказы с моих складов → CSV** в личном кабинете. + * Отчёт об отправлениях + */ + reportAPICreateCompanyPostingsReport(clientId: string, apiKey: string, reportCreateCompanyPostingsReportRequest: ReportCreateCompanyPostingsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения отчёта с данными о товарах. Например, Ozon ID, количества товаров, цен, статуса. Соответствует разделу/действию **Товары и цены → Список товаров → Скачать → Товары CSV** в личном кабинете. Пояснения к некоторым полям: - __Ozon Product ID__ — идентификатор товара в нашей системе. Например, если вы продаёте товар со склада Ozon и со своего склада, Ozon Product ID будет для них одинаковым. - __FBO Ozon SKU ID__ — идентификатор товара, который продаётся со склада Ozon. - __FBS Ozon SKU ID__ — идентификатор товара, который продаётся с вашего склада. - __CrossBorder Ozon SKU__ — идентификатор товара, который продаётся из-за границы. - __Barcode__ — штрихкод товара, который печатается на маркировке. - __Статус товара__ — можно ли купить товар на Ozon. Если статус «Готов к продаже», товар купить нельзя. - __Доступно на складе Ozon, шт__ — сколько штук товара на складе доступно для продажи. Это количество не включает зарезервированные товары. - __Зарезервировано, шт__ — сколько штук товара со статусом «Зарезервировано». Товар зарезервирован с момента получения заказа на Ozon и до упаковки для передачи покупателю. - __Текущая цена с учётом скидки, руб.__ — цена, по которой товар продаётся сейчас (на момент загрузки отчёта, с учётом скидки). Если товар участвует в акции, указана цена без её учёта. - __Базовая цена (цена до скидок), руб.__ — цена без учёта скидки. - __Цена Premium, руб.__ — цена для покупателей с подпиской Ozon Premium. - __Рекомендованная цена, руб.__ — минимальная цена на товар на другой торговой площадке. - __Актуальная ссылка на рекомендованную цену__ — ссылка на товар с рекомендованной ценой на другой торговой площадке. + * Отчёт по товарам + */ + reportAPICreateCompanyProductsReportRaw(requestParameters: ReportAPICreateCompanyProductsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта с данными о товарах. Например, Ozon ID, количества товаров, цен, статуса. Соответствует разделу/действию **Товары и цены → Список товаров → Скачать → Товары CSV** в личном кабинете. Пояснения к некоторым полям: - __Ozon Product ID__ — идентификатор товара в нашей системе. Например, если вы продаёте товар со склада Ozon и со своего склада, Ozon Product ID будет для них одинаковым. - __FBO Ozon SKU ID__ — идентификатор товара, который продаётся со склада Ozon. - __FBS Ozon SKU ID__ — идентификатор товара, который продаётся с вашего склада. - __CrossBorder Ozon SKU__ — идентификатор товара, который продаётся из-за границы. - __Barcode__ — штрихкод товара, который печатается на маркировке. - __Статус товара__ — можно ли купить товар на Ozon. Если статус «Готов к продаже», товар купить нельзя. - __Доступно на складе Ozon, шт__ — сколько штук товара на складе доступно для продажи. Это количество не включает зарезервированные товары. - __Зарезервировано, шт__ — сколько штук товара со статусом «Зарезервировано». Товар зарезервирован с момента получения заказа на Ozon и до упаковки для передачи покупателю. - __Текущая цена с учётом скидки, руб.__ — цена, по которой товар продаётся сейчас (на момент загрузки отчёта, с учётом скидки). Если товар участвует в акции, указана цена без её учёта. - __Базовая цена (цена до скидок), руб.__ — цена без учёта скидки. - __Цена Premium, руб.__ — цена для покупателей с подпиской Ozon Premium. - __Рекомендованная цена, руб.__ — минимальная цена на товар на другой торговой площадке. - __Актуальная ссылка на рекомендованную цену__ — ссылка на товар с рекомендованной ценой на другой торговой площадке. + * Отчёт по товарам + */ + reportAPICreateCompanyProductsReport(clientId: string, apiKey: string, reportCreateCompanyProductsReportRequest: ReportCreateCompanyProductsReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Запускает генерацию отчёта по уценённым товарам на складе Ozon. Ozon может сам уценить товар, например, при повреждении. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). С одного аккаунта продавца можно отправить 1 запрос в минуту. Соответствует разделу **Аналитика → Отчёты → Продажи со склада Ozon → Товары, уценённые Ozon** в личном кабинете. + * Отчёт об уценённых товарах + */ + reportAPICreateDiscountedReportRaw(requestParameters: ReportAPICreateDiscountedReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Запускает генерацию отчёта по уценённым товарам на складе Ozon. Ozon может сам уценить товар, например, при повреждении. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). С одного аккаунта продавца можно отправить 1 запрос в минуту. Соответствует разделу **Аналитика → Отчёты → Продажи со склада Ozon → Товары, уценённые Ozon** в личном кабинете. + * Отчёт об уценённых товарах + */ + reportAPICreateDiscountedReport(clientId: string, apiKey: string, body: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Отчёт с информацией о количестве доступных и зарезервированных единиц товара на складе. Соответствует разделу **FBS → Управление логистикой → Управление остатками → Скачать в XLS** в личном кабинете. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). + * Отчёт об остатках на FBS-складе + */ + reportAPICreateStockByWarehouseReportRaw(requestParameters: ReportAPICreateStockByWarehouseReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Отчёт с информацией о количестве доступных и зарезервированных единиц товара на складе. Соответствует разделу **FBS → Управление логистикой → Управление остатками → Скачать в XLS** в личном кабинете. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). + * Отчёт об остатках на FBS-складе + */ + reportAPICreateStockByWarehouseReport(clientId: string, apiKey: string, v1CreateStockByWarehouseReportRequest: V1CreateStockByWarehouseReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает информацию о созданном ранее отчёте по его идентификатору. + * Информация об отчёте + */ + reportAPIReportInfoRaw(requestParameters: ReportAPIReportInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает информацию о созданном ранее отчёте по его идентификатору. + * Информация об отчёте + */ + reportAPIReportInfo(clientId: string, apiKey: string, reportReportInfoRequest: ReportReportInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список отчётов, которые были сформированы раньше. + * Список отчётов + */ + reportAPIReportListRaw(requestParameters: ReportAPIReportListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список отчётов, которые были сформированы раньше. + * Список отчётов + */ + reportAPIReportList(clientId: string, apiKey: string, reportReportListRequest: ReportReportListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения отчёта о возвратах FBO и FBS. + * Отчёт о возвратах + */ + reportAPIReportReturnsCreateRaw(requestParameters: ReportAPIReportReturnsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения отчёта о возвратах FBO и FBS. + * Отчёт о возвратах + */ + reportAPIReportReturnsCreate(clientId: string, apiKey: string, v2ReportReturnsCreateRequest: V2ReportReturnsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/ReportAPI.js b/dist/esm/apis/ReportAPI.js new file mode 100644 index 0000000..0e9e35a --- /dev/null +++ b/dist/esm/apis/ReportAPI.js @@ -0,0 +1,504 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { CommonCreateReportResponseFromJSON, ReportCreateCompanyPostingsReportRequestToJSON, ReportCreateCompanyProductsReportRequestToJSON, ReportCreateDiscountedResponseFromJSON, ReportCreateReportResponseFromJSON, ReportReportInfoRequestToJSON, ReportReportInfoResponseFromJSON, ReportReportListRequestToJSON, ReportReportListResponseFromJSON, V1CreatePlacementByProductsReportRequestToJSON, V1CreatePlacementByProductsReportResponseFromJSON, V1CreatePlacementBySuppliesReportRequestToJSON, V1CreatePlacementBySuppliesReportResponseFromJSON, V1CreateStockByWarehouseReportRequestToJSON, V1ReportMarkedProductsSalesCreateRequestToJSON, V2ReportReturnsCreateRequestToJSON, V2ReportReturnsCreateResponseFromJSON, V3FinanceCashFlowStatementListRequestToJSON, V3FinanceCashFlowStatementListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class ReportAPI extends runtime.BaseAPI { + /** + * В одном отчёте вы можете получить не больше 50 000 кодов маркировки. Чтобы получить остальные данные, уменьшите период формирования отчёта. + * Сгенерировать отчёт по продажам товаров с маркировкой + */ + createCompanyMarkedProductsSalesReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createCompanyMarkedProductsSalesReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling createCompanyMarkedProductsSalesReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/marked-products-sales/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ReportMarkedProductsSalesCreateRequestToJSON(requestParameters['v1ReportMarkedProductsSalesCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CommonCreateReportResponseFromJSON(jsonValue)); + }); + } + /** + * В одном отчёте вы можете получить не больше 50 000 кодов маркировки. Чтобы получить остальные данные, уменьшите период формирования отчёта. + * Сгенерировать отчёт по продажам товаров с маркировкой + */ + createCompanyMarkedProductsSalesReport(clientId, apiKey, v1ReportMarkedProductsSalesCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createCompanyMarkedProductsSalesReportRaw({ clientId: clientId, apiKey: apiKey, v1ReportMarkedProductsSalesCreateRequest: v1ReportMarkedProductsSalesCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по товарам + */ + createPlacementByProductsReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createPlacementByProductsReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling createPlacementByProductsReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/placement/by-products/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreatePlacementByProductsReportRequestToJSON(requestParameters['v1CreatePlacementByProductsReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CreatePlacementByProductsReportResponseFromJSON(jsonValue)); + }); + } + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по товарам + */ + createPlacementByProductsReport(clientId, apiKey, v1CreatePlacementByProductsReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createPlacementByProductsReportRaw({ clientId: clientId, apiKey: apiKey, v1CreatePlacementByProductsReportRequest: v1CreatePlacementByProductsReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по поставкам + */ + createPlacementBySuppliesReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling createPlacementBySuppliesReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling createPlacementBySuppliesReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/placement/by-supplies/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreatePlacementBySuppliesReportRequestToJSON(requestParameters['v1CreatePlacementBySuppliesReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CreatePlacementBySuppliesReportResponseFromJSON(jsonValue)); + }); + } + /** + * Соответствует разделу **FBO → Стоимость размещения** в личном кабинете. Отчёт можно получить не больше 5 раз в день. + * Получить отчёт о стоимости размещения по поставкам + */ + createPlacementBySuppliesReport(clientId, apiKey, v1CreatePlacementBySuppliesReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.createPlacementBySuppliesReportRaw({ clientId: clientId, apiKey: apiKey, v1CreatePlacementBySuppliesReportRequest: v1CreatePlacementBySuppliesReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения финансового отчёта за периоды с 01 по 15 и с 16 по 31. Запросить отчёт за отдельные дни не получится. Соответствует разделу **Финансы → Баланс → Доходы и расходы** в личном кабинете. + * Финансовый отчёт + */ + financeAPIFinanceCashFlowStatementListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling financeAPIFinanceCashFlowStatementList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling financeAPIFinanceCashFlowStatementList().'); + } + if (requestParameters['v3FinanceCashFlowStatementListRequest'] == null) { + throw new runtime.RequiredError('v3FinanceCashFlowStatementListRequest', 'Required parameter "v3FinanceCashFlowStatementListRequest" was null or undefined when calling financeAPIFinanceCashFlowStatementList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/finance/cash-flow-statement/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V3FinanceCashFlowStatementListRequestToJSON(requestParameters['v3FinanceCashFlowStatementListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V3FinanceCashFlowStatementListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения финансового отчёта за периоды с 01 по 15 и с 16 по 31. Запросить отчёт за отдельные дни не получится. Соответствует разделу **Финансы → Баланс → Доходы и расходы** в личном кабинете. + * Финансовый отчёт + */ + financeAPIFinanceCashFlowStatementList(clientId, apiKey, v3FinanceCashFlowStatementListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.financeAPIFinanceCashFlowStatementListRaw({ clientId: clientId, apiKey: apiKey, v3FinanceCashFlowStatementListRequest: v3FinanceCashFlowStatementListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт об отправлениях с информацией по заказам: - статусы заказов, - дата начала обработки, - номера заказов, - номера отправлений, - стоимость отправлений, - содержимое отправлений. Соответствует разделу **FBO → Заказы со склада Ozon** и **FBS → Заказы с моих складов → CSV** в личном кабинете. + * Отчёт об отправлениях + */ + reportAPICreateCompanyPostingsReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateCompanyPostingsReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateCompanyPostingsReport().'); + } + if (requestParameters['reportCreateCompanyPostingsReportRequest'] == null) { + throw new runtime.RequiredError('reportCreateCompanyPostingsReportRequest', 'Required parameter "reportCreateCompanyPostingsReportRequest" was null or undefined when calling reportAPICreateCompanyPostingsReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/postings/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReportCreateCompanyPostingsReportRequestToJSON(requestParameters['reportCreateCompanyPostingsReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReportCreateReportResponseFromJSON(jsonValue)); + }); + } + /** + * Отчёт об отправлениях с информацией по заказам: - статусы заказов, - дата начала обработки, - номера заказов, - номера отправлений, - стоимость отправлений, - содержимое отправлений. Соответствует разделу **FBO → Заказы со склада Ozon** и **FBS → Заказы с моих складов → CSV** в личном кабинете. + * Отчёт об отправлениях + */ + reportAPICreateCompanyPostingsReport(clientId, apiKey, reportCreateCompanyPostingsReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateCompanyPostingsReportRaw({ clientId: clientId, apiKey: apiKey, reportCreateCompanyPostingsReportRequest: reportCreateCompanyPostingsReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения отчёта с данными о товарах. Например, Ozon ID, количества товаров, цен, статуса. Соответствует разделу/действию **Товары и цены → Список товаров → Скачать → Товары CSV** в личном кабинете. Пояснения к некоторым полям: - __Ozon Product ID__ — идентификатор товара в нашей системе. Например, если вы продаёте товар со склада Ozon и со своего склада, Ozon Product ID будет для них одинаковым. - __FBO Ozon SKU ID__ — идентификатор товара, который продаётся со склада Ozon. - __FBS Ozon SKU ID__ — идентификатор товара, который продаётся с вашего склада. - __CrossBorder Ozon SKU__ — идентификатор товара, который продаётся из-за границы. - __Barcode__ — штрихкод товара, который печатается на маркировке. - __Статус товара__ — можно ли купить товар на Ozon. Если статус «Готов к продаже», товар купить нельзя. - __Доступно на складе Ozon, шт__ — сколько штук товара на складе доступно для продажи. Это количество не включает зарезервированные товары. - __Зарезервировано, шт__ — сколько штук товара со статусом «Зарезервировано». Товар зарезервирован с момента получения заказа на Ozon и до упаковки для передачи покупателю. - __Текущая цена с учётом скидки, руб.__ — цена, по которой товар продаётся сейчас (на момент загрузки отчёта, с учётом скидки). Если товар участвует в акции, указана цена без её учёта. - __Базовая цена (цена до скидок), руб.__ — цена без учёта скидки. - __Цена Premium, руб.__ — цена для покупателей с подпиской Ozon Premium. - __Рекомендованная цена, руб.__ — минимальная цена на товар на другой торговой площадке. - __Актуальная ссылка на рекомендованную цену__ — ссылка на товар с рекомендованной ценой на другой торговой площадке. + * Отчёт по товарам + */ + reportAPICreateCompanyProductsReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateCompanyProductsReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateCompanyProductsReport().'); + } + if (requestParameters['reportCreateCompanyProductsReportRequest'] == null) { + throw new runtime.RequiredError('reportCreateCompanyProductsReportRequest', 'Required parameter "reportCreateCompanyProductsReportRequest" was null or undefined when calling reportAPICreateCompanyProductsReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/products/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReportCreateCompanyProductsReportRequestToJSON(requestParameters['reportCreateCompanyProductsReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReportCreateReportResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения отчёта с данными о товарах. Например, Ozon ID, количества товаров, цен, статуса. Соответствует разделу/действию **Товары и цены → Список товаров → Скачать → Товары CSV** в личном кабинете. Пояснения к некоторым полям: - __Ozon Product ID__ — идентификатор товара в нашей системе. Например, если вы продаёте товар со склада Ozon и со своего склада, Ozon Product ID будет для них одинаковым. - __FBO Ozon SKU ID__ — идентификатор товара, который продаётся со склада Ozon. - __FBS Ozon SKU ID__ — идентификатор товара, который продаётся с вашего склада. - __CrossBorder Ozon SKU__ — идентификатор товара, который продаётся из-за границы. - __Barcode__ — штрихкод товара, который печатается на маркировке. - __Статус товара__ — можно ли купить товар на Ozon. Если статус «Готов к продаже», товар купить нельзя. - __Доступно на складе Ozon, шт__ — сколько штук товара на складе доступно для продажи. Это количество не включает зарезервированные товары. - __Зарезервировано, шт__ — сколько штук товара со статусом «Зарезервировано». Товар зарезервирован с момента получения заказа на Ozon и до упаковки для передачи покупателю. - __Текущая цена с учётом скидки, руб.__ — цена, по которой товар продаётся сейчас (на момент загрузки отчёта, с учётом скидки). Если товар участвует в акции, указана цена без её учёта. - __Базовая цена (цена до скидок), руб.__ — цена без учёта скидки. - __Цена Premium, руб.__ — цена для покупателей с подпиской Ozon Premium. - __Рекомендованная цена, руб.__ — минимальная цена на товар на другой торговой площадке. - __Актуальная ссылка на рекомендованную цену__ — ссылка на товар с рекомендованной ценой на другой торговой площадке. + * Отчёт по товарам + */ + reportAPICreateCompanyProductsReport(clientId, apiKey, reportCreateCompanyProductsReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateCompanyProductsReportRaw({ clientId: clientId, apiKey: apiKey, reportCreateCompanyProductsReportRequest: reportCreateCompanyProductsReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Запускает генерацию отчёта по уценённым товарам на складе Ozon. Ozon может сам уценить товар, например, при повреждении. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). С одного аккаунта продавца можно отправить 1 запрос в минуту. Соответствует разделу **Аналитика → Отчёты → Продажи со склада Ozon → Товары, уценённые Ozon** в личном кабинете. + * Отчёт об уценённых товарах + */ + reportAPICreateDiscountedReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateDiscountedReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateDiscountedReport().'); + } + if (requestParameters['body'] == null) { + throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling reportAPICreateDiscountedReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/discounted/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReportCreateDiscountedResponseFromJSON(jsonValue)); + }); + } + /** + * Запускает генерацию отчёта по уценённым товарам на складе Ozon. Ozon может сам уценить товар, например, при повреждении. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). С одного аккаунта продавца можно отправить 1 запрос в минуту. Соответствует разделу **Аналитика → Отчёты → Продажи со склада Ozon → Товары, уценённые Ozon** в личном кабинете. + * Отчёт об уценённых товарах + */ + reportAPICreateDiscountedReport(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateDiscountedReportRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Отчёт с информацией о количестве доступных и зарезервированных единиц товара на складе. Соответствует разделу **FBS → Управление логистикой → Управление остатками → Скачать в XLS** в личном кабинете. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). + * Отчёт об остатках на FBS-складе + */ + reportAPICreateStockByWarehouseReportRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPICreateStockByWarehouseReport().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPICreateStockByWarehouseReport().'); + } + if (requestParameters['v1CreateStockByWarehouseReportRequest'] == null) { + throw new runtime.RequiredError('v1CreateStockByWarehouseReportRequest', 'Required parameter "v1CreateStockByWarehouseReportRequest" was null or undefined when calling reportAPICreateStockByWarehouseReport().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/warehouse/stock`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CreateStockByWarehouseReportRequestToJSON(requestParameters['v1CreateStockByWarehouseReportRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => CommonCreateReportResponseFromJSON(jsonValue)); + }); + } + /** + * Отчёт с информацией о количестве доступных и зарезервированных единиц товара на складе. Соответствует разделу **FBS → Управление логистикой → Управление остатками → Скачать в XLS** в личном кабинете. В результате запроса будет не сам отчёт, а его уникальный идентификатор. Чтобы получить отчёт, отправьте идентификатор в запросе метода [/v1/report/info](#operation/ReportAPI_ReportInfo). + * Отчёт об остатках на FBS-складе + */ + reportAPICreateStockByWarehouseReport(clientId, apiKey, v1CreateStockByWarehouseReportRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPICreateStockByWarehouseReportRaw({ clientId: clientId, apiKey: apiKey, v1CreateStockByWarehouseReportRequest: v1CreateStockByWarehouseReportRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает информацию о созданном ранее отчёте по его идентификатору. + * Информация об отчёте + */ + reportAPIReportInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPIReportInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPIReportInfo().'); + } + if (requestParameters['reportReportInfoRequest'] == null) { + throw new runtime.RequiredError('reportReportInfoRequest', 'Required parameter "reportReportInfoRequest" was null or undefined when calling reportAPIReportInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReportReportInfoRequestToJSON(requestParameters['reportReportInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReportReportInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает информацию о созданном ранее отчёте по его идентификатору. + * Информация об отчёте + */ + reportAPIReportInfo(clientId, apiKey, reportReportInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIReportInfoRaw({ clientId: clientId, apiKey: apiKey, reportReportInfoRequest: reportReportInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список отчётов, которые были сформированы раньше. + * Список отчётов + */ + reportAPIReportListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPIReportList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPIReportList().'); + } + if (requestParameters['reportReportListRequest'] == null) { + throw new runtime.RequiredError('reportReportListRequest', 'Required parameter "reportReportListRequest" was null or undefined when calling reportAPIReportList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/report/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReportReportListRequestToJSON(requestParameters['reportReportListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReportReportListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список отчётов, которые были сформированы раньше. + * Список отчётов + */ + reportAPIReportList(clientId, apiKey, reportReportListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIReportListRaw({ clientId: clientId, apiKey: apiKey, reportReportListRequest: reportReportListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения отчёта о возвратах FBO и FBS. + * Отчёт о возвратах + */ + reportAPIReportReturnsCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reportAPIReportReturnsCreate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reportAPIReportReturnsCreate().'); + } + if (requestParameters['v2ReportReturnsCreateRequest'] == null) { + throw new runtime.RequiredError('v2ReportReturnsCreateRequest', 'Required parameter "v2ReportReturnsCreateRequest" was null or undefined when calling reportAPIReportReturnsCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/report/returns/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2ReportReturnsCreateRequestToJSON(requestParameters['v2ReportReturnsCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2ReportReturnsCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения отчёта о возвратах FBO и FBS. + * Отчёт о возвратах + */ + reportAPIReportReturnsCreate(clientId, apiKey, v2ReportReturnsCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reportAPIReportReturnsCreateRaw({ clientId: clientId, apiKey: apiKey, v2ReportReturnsCreateRequest: v2ReportReturnsCreateRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ReturnAPI.d.ts b/dist/esm/apis/ReturnAPI.d.ts new file mode 100644 index 0000000..ae6c968 --- /dev/null +++ b/dist/esm/apis/ReturnAPI.d.ts @@ -0,0 +1,138 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GiveoutBarcodeResetResponse, V1GiveoutGetBarcodeResponse, V1GiveoutGetPDFResponse, V1GiveoutGetPNGResponse, V1GiveoutInfoRequest, V1GiveoutInfoResponse, V1GiveoutIsEnabledResponse, V1GiveoutListRequest, V1GiveoutListResponse, V1ReturnsCompanyFbsInfoRequest, V1ReturnsCompanyFbsInfoResponse } from '../models/index'; +export interface ReturnAPIGiveoutBarcodeResetRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutGetBarcodeRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutGetPDFRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutGetPNGRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutInfoRequest { + clientId: string; + apiKey: string; + v1GiveoutInfoRequest: V1GiveoutInfoRequest; +} +export interface ReturnAPIGiveoutIsEnabledRequest { + clientId: string; + apiKey: string; + body?: object; +} +export interface ReturnAPIGiveoutListRequest { + clientId: string; + apiKey: string; + v1GiveoutListRequest: V1GiveoutListRequest; +} +export interface ReturnsCompanyFBSInfoRequest { + clientId: string; + apiKey: string; + v1ReturnsCompanyFbsInfoRequest?: V1ReturnsCompanyFbsInfoRequest; +} +/** + * + */ +export declare class ReturnAPI extends runtime.BaseAPI { + /** + * Используйте метод, если ваш штрихкод попал в посторонние руки. Метод возвращает PNG-файл с новым штрихкодом. После использования метода вы не сможете получить возвратную отгрузку по старым штрихкодам. Чтобы получить новый штрихкод в PDF-формате, запросите его методом [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF). + * Сгенерировать новый штрихкод + */ + returnAPIGiveoutBarcodeResetRaw(requestParameters: ReturnAPIGiveoutBarcodeResetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте метод, если ваш штрихкод попал в посторонние руки. Метод возвращает PNG-файл с новым штрихкодом. После использования метода вы не сможете получить возвратную отгрузку по старым штрихкодам. Чтобы получить новый штрихкод в PDF-формате, запросите его методом [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF). + * Сгенерировать новый штрихкод + */ + returnAPIGiveoutBarcodeReset(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Используйте этот метод, чтобы получить штрихкод из ответа методов [/v1/return/giveout/get-png](#operation/ReturnAPI_GiveoutGetPNG) и [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF) в текстовом виде. + * Значение штрихкода для возвратных отгрузок + */ + returnAPIGiveoutGetBarcodeRaw(requestParameters: ReturnAPIGiveoutGetBarcodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Используйте этот метод, чтобы получить штрихкод из ответа методов [/v1/return/giveout/get-png](#operation/ReturnAPI_GiveoutGetPNG) и [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF) в текстовом виде. + * Значение штрихкода для возвратных отгрузок + */ + returnAPIGiveoutGetBarcode(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает PDF-файл со штрихкодом. Метод работает только для схемы FBS. + * Штрихкод для получения возвратной отгрузки в формате PDF + */ + returnAPIGiveoutGetPDFRaw(requestParameters: ReturnAPIGiveoutGetPDFRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает PDF-файл со штрихкодом. Метод работает только для схемы FBS. + * Штрихкод для получения возвратной отгрузки в формате PDF + */ + returnAPIGiveoutGetPDF(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает PNG-файл со штрихкодом. + * Штрихкод для получения возвратной отгрузки в формате PNG + */ + returnAPIGiveoutGetPNGRaw(requestParameters: ReturnAPIGiveoutGetPNGRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает PNG-файл со штрихкодом. + * Штрихкод для получения возвратной отгрузки в формате PNG + */ + returnAPIGiveoutGetPNG(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о возвратной отгрузке. В параметр `giveout_id` передаётся значение, полученное в методе [/v1/return/giveout/list](#operation/ReturnAPI_GiveoutList). + * Информация о возвратной отгрузке + */ + returnAPIGiveoutInfoRaw(requestParameters: ReturnAPIGiveoutInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о возвратной отгрузке. В параметр `giveout_id` передаётся значение, полученное в методе [/v1/return/giveout/list](#operation/ReturnAPI_GiveoutList). + * Информация о возвратной отгрузке + */ + returnAPIGiveoutInfo(clientId: string, apiKey: string, v1GiveoutInfoRequest: V1GiveoutInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Если у вас есть доступ, в параметре `enabled` будет указано значение `true`. + * Проверить возможность получения возвратных отгрузок по штрихкоду + */ + returnAPIGiveoutIsEnabledRaw(requestParameters: ReturnAPIGiveoutIsEnabledRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Если у вас есть доступ, в параметре `enabled` будет указано значение `true`. + * Проверить возможность получения возвратных отгрузок по штрихкоду + */ + returnAPIGiveoutIsEnabled(clientId: string, apiKey: string, body?: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения списка активных возвратов. Возвратная отгрузка становится активной после сканирования штрихкода. После сканирования штрихкода второй раз активная выдача переходит в статус неактивной. + * Список возвратных отгрузок + */ + returnAPIGiveoutListRaw(requestParameters: ReturnAPIGiveoutListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения списка активных возвратов. Возвратная отгрузка становится активной после сканирования штрихкода. После сканирования штрихкода второй раз активная выдача переходит в статус неактивной. + * Список возвратных отгрузок + */ + returnAPIGiveoutList(clientId: string, apiKey: string, v1GiveoutListRequest: V1GiveoutListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод для получения информации о возвратах FBS и их количестве. + * Количество возвратов FBS + */ + returnsCompanyFBSInfoRaw(requestParameters: ReturnsCompanyFBSInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о возвратах FBS и их количестве. + * Количество возвратов FBS + */ + returnsCompanyFBSInfo(clientId: string, apiKey: string, v1ReturnsCompanyFbsInfoRequest?: V1ReturnsCompanyFbsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/ReturnAPI.js b/dist/esm/apis/ReturnAPI.js new file mode 100644 index 0000000..1f489b0 --- /dev/null +++ b/dist/esm/apis/ReturnAPI.js @@ -0,0 +1,363 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1GiveoutBarcodeResetResponseFromJSON, V1GiveoutGetBarcodeResponseFromJSON, V1GiveoutGetPDFResponseFromJSON, V1GiveoutGetPNGResponseFromJSON, V1GiveoutInfoRequestToJSON, V1GiveoutInfoResponseFromJSON, V1GiveoutIsEnabledResponseFromJSON, V1GiveoutListRequestToJSON, V1GiveoutListResponseFromJSON, V1ReturnsCompanyFbsInfoRequestToJSON, V1ReturnsCompanyFbsInfoResponseFromJSON, } from '../models/index'; +/** + * + */ +export class ReturnAPI extends runtime.BaseAPI { + /** + * Используйте метод, если ваш штрихкод попал в посторонние руки. Метод возвращает PNG-файл с новым штрихкодом. После использования метода вы не сможете получить возвратную отгрузку по старым штрихкодам. Чтобы получить новый штрихкод в PDF-формате, запросите его методом [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF). + * Сгенерировать новый штрихкод + */ + returnAPIGiveoutBarcodeResetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutBarcodeReset().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutBarcodeReset().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/barcode-reset`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GiveoutBarcodeResetResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте метод, если ваш штрихкод попал в посторонние руки. Метод возвращает PNG-файл с новым штрихкодом. После использования метода вы не сможете получить возвратную отгрузку по старым штрихкодам. Чтобы получить новый штрихкод в PDF-формате, запросите его методом [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF). + * Сгенерировать новый штрихкод + */ + returnAPIGiveoutBarcodeReset(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutBarcodeResetRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Используйте этот метод, чтобы получить штрихкод из ответа методов [/v1/return/giveout/get-png](#operation/ReturnAPI_GiveoutGetPNG) и [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF) в текстовом виде. + * Значение штрихкода для возвратных отгрузок + */ + returnAPIGiveoutGetBarcodeRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutGetBarcode().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutGetBarcode().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/barcode`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GiveoutGetBarcodeResponseFromJSON(jsonValue)); + }); + } + /** + * Используйте этот метод, чтобы получить штрихкод из ответа методов [/v1/return/giveout/get-png](#operation/ReturnAPI_GiveoutGetPNG) и [/v1/return/giveout/get-pdf](#operation/ReturnAPI_GiveoutGetPDF) в текстовом виде. + * Значение штрихкода для возвратных отгрузок + */ + returnAPIGiveoutGetBarcode(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutGetBarcodeRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает PDF-файл со штрихкодом. Метод работает только для схемы FBS. + * Штрихкод для получения возвратной отгрузки в формате PDF + */ + returnAPIGiveoutGetPDFRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutGetPDF().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutGetPDF().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/get-pdf`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GiveoutGetPDFResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает PDF-файл со штрихкодом. Метод работает только для схемы FBS. + * Штрихкод для получения возвратной отгрузки в формате PDF + */ + returnAPIGiveoutGetPDF(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutGetPDFRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает PNG-файл со штрихкодом. + * Штрихкод для получения возвратной отгрузки в формате PNG + */ + returnAPIGiveoutGetPNGRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutGetPNG().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutGetPNG().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/get-png`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GiveoutGetPNGResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает PNG-файл со штрихкодом. + * Штрихкод для получения возвратной отгрузки в формате PNG + */ + returnAPIGiveoutGetPNG(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutGetPNGRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения информации о возвратной отгрузке. В параметр `giveout_id` передаётся значение, полученное в методе [/v1/return/giveout/list](#operation/ReturnAPI_GiveoutList). + * Информация о возвратной отгрузке + */ + returnAPIGiveoutInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutInfo().'); + } + if (requestParameters['v1GiveoutInfoRequest'] == null) { + throw new runtime.RequiredError('v1GiveoutInfoRequest', 'Required parameter "v1GiveoutInfoRequest" was null or undefined when calling returnAPIGiveoutInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GiveoutInfoRequestToJSON(requestParameters['v1GiveoutInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GiveoutInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения информации о возвратной отгрузке. В параметр `giveout_id` передаётся значение, полученное в методе [/v1/return/giveout/list](#operation/ReturnAPI_GiveoutList). + * Информация о возвратной отгрузке + */ + returnAPIGiveoutInfo(clientId, apiKey, v1GiveoutInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutInfoRaw({ clientId: clientId, apiKey: apiKey, v1GiveoutInfoRequest: v1GiveoutInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Если у вас есть доступ, в параметре `enabled` будет указано значение `true`. + * Проверить возможность получения возвратных отгрузок по штрихкоду + */ + returnAPIGiveoutIsEnabledRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutIsEnabled().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutIsEnabled().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/is-enabled`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GiveoutIsEnabledResponseFromJSON(jsonValue)); + }); + } + /** + * Если у вас есть доступ, в параметре `enabled` будет указано значение `true`. + * Проверить возможность получения возвратных отгрузок по штрихкоду + */ + returnAPIGiveoutIsEnabled(clientId, apiKey, body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutIsEnabledRaw({ clientId: clientId, apiKey: apiKey, body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения списка активных возвратов. Возвратная отгрузка становится активной после сканирования штрихкода. После сканирования штрихкода второй раз активная выдача переходит в статус неактивной. + * Список возвратных отгрузок + */ + returnAPIGiveoutListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnAPIGiveoutList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnAPIGiveoutList().'); + } + if (requestParameters['v1GiveoutListRequest'] == null) { + throw new runtime.RequiredError('v1GiveoutListRequest', 'Required parameter "v1GiveoutListRequest" was null or undefined when calling returnAPIGiveoutList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/return/giveout/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GiveoutListRequestToJSON(requestParameters['v1GiveoutListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GiveoutListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения списка активных возвратов. Возвратная отгрузка становится активной после сканирования штрихкода. После сканирования штрихкода второй раз активная выдача переходит в статус неактивной. + * Список возвратных отгрузок + */ + returnAPIGiveoutList(clientId, apiKey, v1GiveoutListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnAPIGiveoutListRaw({ clientId: clientId, apiKey: apiKey, v1GiveoutListRequest: v1GiveoutListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод для получения информации о возвратах FBS и их количестве. + * Количество возвратов FBS + */ + returnsCompanyFBSInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling returnsCompanyFBSInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling returnsCompanyFBSInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/returns/company/fbs/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ReturnsCompanyFbsInfoRequestToJSON(requestParameters['v1ReturnsCompanyFbsInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ReturnsCompanyFbsInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения информации о возвратах FBS и их количестве. + * Количество возвратов FBS + */ + returnsCompanyFBSInfo(clientId, apiKey, v1ReturnsCompanyFbsInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnsCompanyFBSInfoRaw({ clientId: clientId, apiKey: apiKey, v1ReturnsCompanyFbsInfoRequest: v1ReturnsCompanyFbsInfoRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/ReturnsAPI.d.ts b/dist/esm/apis/ReturnsAPI.d.ts new file mode 100644 index 0000000..8f1e943 --- /dev/null +++ b/dist/esm/apis/ReturnsAPI.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GetReturnsListRequest, V1GetReturnsListResponse, V1ReturnsSettingsUtilizationHistoryResponse, V1ReturnsSettingsUtilizationInfoResponse, V1ReturnsSettingsUtilizationUpdateRequest } from '../models/index'; +export interface ReturnsListRequest { + v1GetReturnsListRequest?: V1GetReturnsListRequest; +} +export interface UtilizationHistoryRequest { + clientId: string; + apiKey: string; +} +export interface UtilizationInfoRequest { + clientId: string; + apiKey: string; +} +export interface UtilizationUpdateRequest { + clientId: string; + apiKey: string; + v1ReturnsSettingsUtilizationUpdateRequest?: V1ReturnsSettingsUtilizationUpdateRequest; +} +/** + * + */ +export declare class ReturnsAPI extends runtime.BaseAPI { + /** + * Метод для получения информации о возвратах FBO и FBS. + * Информация о возвратах FBO и FBS + */ + returnsListRaw(requestParameters: ReturnsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод для получения информации о возвратах FBO и FBS. + * Информация о возвратах FBO и FBS + */ + returnsList(v1GetReturnsListRequest?: V1GetReturnsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить историю изменений автоутилизации + */ + utilizationHistoryRaw(requestParameters: UtilizationHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить историю изменений автоутилизации + */ + utilizationHistory(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить настройки автоутилизации + */ + utilizationInfoRaw(requestParameters: UtilizationInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить настройки автоутилизации + */ + utilizationInfo(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Обновить настройки автоутилизации + */ + utilizationUpdateRaw(requestParameters: UtilizationUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Обновить настройки автоутилизации + */ + utilizationUpdate(clientId: string, apiKey: string, v1ReturnsSettingsUtilizationUpdateRequest?: V1ReturnsSettingsUtilizationUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/ReturnsAPI.js b/dist/esm/apis/ReturnsAPI.js new file mode 100644 index 0000000..e95a81e --- /dev/null +++ b/dist/esm/apis/ReturnsAPI.js @@ -0,0 +1,170 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1GetReturnsListRequestToJSON, V1GetReturnsListResponseFromJSON, V1ReturnsSettingsUtilizationHistoryResponseFromJSON, V1ReturnsSettingsUtilizationInfoResponseFromJSON, V1ReturnsSettingsUtilizationUpdateRequestToJSON, } from '../models/index'; +/** + * + */ +export class ReturnsAPI extends runtime.BaseAPI { + /** + * Метод для получения информации о возвратах FBO и FBS. + * Информация о возвратах FBO и FBS + */ + returnsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/returns/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetReturnsListRequestToJSON(requestParameters['v1GetReturnsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetReturnsListResponseFromJSON(jsonValue)); + }); + } + /** + * Метод для получения информации о возвратах FBO и FBS. + * Информация о возвратах FBO и FBS + */ + returnsList(v1GetReturnsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.returnsListRaw({ v1GetReturnsListRequest: v1GetReturnsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить историю изменений автоутилизации + */ + utilizationHistoryRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling utilizationHistory().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling utilizationHistory().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/returns/settings/utilization/history`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ReturnsSettingsUtilizationHistoryResponseFromJSON(jsonValue)); + }); + } + /** + * Получить историю изменений автоутилизации + */ + utilizationHistory(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.utilizationHistoryRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить настройки автоутилизации + */ + utilizationInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling utilizationInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling utilizationInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/returns/settings/utilization/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ReturnsSettingsUtilizationInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Получить настройки автоутилизации + */ + utilizationInfo(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.utilizationInfoRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Обновить настройки автоутилизации + */ + utilizationUpdateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling utilizationUpdate().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling utilizationUpdate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/returns/settings/utilization/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ReturnsSettingsUtilizationUpdateRequestToJSON(requestParameters['v1ReturnsSettingsUtilizationUpdateRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Обновить настройки автоутилизации + */ + utilizationUpdate(clientId, apiKey, v1ReturnsSettingsUtilizationUpdateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.utilizationUpdateRaw({ clientId: clientId, apiKey: apiKey, v1ReturnsSettingsUtilizationUpdateRequest: v1ReturnsSettingsUtilizationUpdateRequest }, initOverrides); + }); + } +} diff --git a/dist/esm/apis/ReviewAPI.d.ts b/dist/esm/apis/ReviewAPI.d.ts new file mode 100644 index 0000000..7a1684d --- /dev/null +++ b/dist/esm/apis/ReviewAPI.d.ts @@ -0,0 +1,193 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ReviewV2ReviewChangeStatusV2Request, ReviewV2ReviewCommentDeleteV2Request, ReviewV2ReviewCountV2Response, ReviewV2ReviewInfoV2Request, ReviewV2ReviewInfoV2Response, ReviewV2ReviewListV2Request, ReviewV2ReviewListV2Response, V1CommentCreateRequest, V1CommentCreateResponse, V1CommentDeleteRequest, V1CommentListRequest, V1CommentListResponse, V1ReviewChangeStatusRequest, V1ReviewCountResponse, V1ReviewInfoRequest, V1ReviewInfoResponse, V1ReviewListRequest, V1ReviewListResponse } from '../models/index'; +export interface ReviewAPICommentCreateRequest { + v1CommentCreateRequest: V1CommentCreateRequest; +} +export interface ReviewAPICommentDeleteRequest { + v1CommentDeleteRequest: V1CommentDeleteRequest; +} +export interface ReviewAPICommentListRequest { + v1CommentListRequest: V1CommentListRequest | null; +} +export interface ReviewAPIReviewChangeStatusRequest { + v1ReviewChangeStatusRequest: V1ReviewChangeStatusRequest; +} +export interface ReviewAPIReviewCountRequest { + body: object; +} +export interface ReviewAPIReviewInfoRequest { + v1ReviewInfoRequest: V1ReviewInfoRequest; +} +export interface ReviewAPIReviewListRequest { + v1ReviewListRequest: V1ReviewListRequest; +} +export interface ReviewChangeStatusV2Request { + clientId: string; + apiKey: string; + reviewV2ReviewChangeStatusV2Request: ReviewV2ReviewChangeStatusV2Request; +} +export interface ReviewCommentDeleteV2Request { + clientId: string; + apiKey: string; + reviewV2ReviewCommentDeleteV2Request: ReviewV2ReviewCommentDeleteV2Request; +} +export interface ReviewCountV2Request { + clientId: string; + apiKey: string; +} +export interface ReviewInfoV2Request { + clientId: string; + apiKey: string; + reviewV2ReviewInfoV2Request: ReviewV2ReviewInfoV2Request; +} +export interface ReviewListV2Request { + clientId: string; + apiKey: string; + reviewV2ReviewListV2Request: ReviewV2ReviewListV2Request; +} +/** + * + */ +export declare class ReviewAPI extends runtime.BaseAPI { + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Оставить комментарий на отзыв + */ + reviewAPICommentCreateRaw(requestParameters: ReviewAPICommentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Оставить комментарий на отзыв + */ + reviewAPICommentCreate(v1CommentCreateRequest: V1CommentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + * @deprecated + */ + reviewAPICommentDeleteRaw(requestParameters: ReviewAPICommentDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + * @deprecated + */ + reviewAPICommentDelete(v1CommentDeleteRequest: V1CommentDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод возвращает информацию по комментариям на отзывы, которые прошли модерацию. + * Получить список комментариев на отзыв + */ + reviewAPICommentListRaw(requestParameters: ReviewAPICommentListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод возвращает информацию по комментариям на отзывы, которые прошли модерацию. + * Получить список комментариев на отзыв + */ + reviewAPICommentList(v1CommentListRequest: V1CommentListRequest | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + * @deprecated + */ + reviewAPIReviewChangeStatusRaw(requestParameters: ReviewAPIReviewChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + * @deprecated + */ + reviewAPIReviewChangeStatus(v1ReviewChangeStatusRequest: V1ReviewChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Количество отзывов по статусам + * @deprecated + */ + reviewAPIReviewCountRaw(requestParameters: ReviewAPIReviewCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Количество отзывов по статусам + * @deprecated + */ + reviewAPIReviewCount(body: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию об отзыве + * @deprecated + */ + reviewAPIReviewInfoRaw(requestParameters: ReviewAPIReviewInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию об отзыве + * @deprecated + */ + reviewAPIReviewInfo(v1ReviewInfoRequest: V1ReviewInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод не возвращает параметры «Достоинства» и «Недостатки», если они есть в отзывах на товар. Эти параметры устарели, в новых отзывах их нет. + * Получить список отзывов + * @deprecated + */ + reviewAPIReviewListRaw(requestParameters: ReviewAPIReviewListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод не возвращает параметры «Достоинства» и «Недостатки», если они есть в отзывах на товар. Эти параметры устарели, в новых отзывах их нет. + * Получить список отзывов + * @deprecated + */ + reviewAPIReviewList(v1ReviewListRequest: V1ReviewListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + */ + reviewChangeStatusV2Raw(requestParameters: ReviewChangeStatusV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + */ + reviewChangeStatusV2(clientId: string, apiKey: string, reviewV2ReviewChangeStatusV2Request: ReviewV2ReviewChangeStatusV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + */ + reviewCommentDeleteV2Raw(requestParameters: ReviewCommentDeleteV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + */ + reviewCommentDeleteV2(clientId: string, apiKey: string, reviewV2ReviewCommentDeleteV2Request: ReviewV2ReviewCommentDeleteV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить количество отзывов по статусам + */ + reviewCountV2Raw(requestParameters: ReviewCountV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить количество отзывов по статусам + */ + reviewCountV2(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию по отзыву + */ + reviewInfoV2Raw(requestParameters: ReviewInfoV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию по отзыву + */ + reviewInfoV2(clientId: string, apiKey: string, reviewV2ReviewInfoV2Request: ReviewV2ReviewInfoV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список отзывов + */ + reviewListV2Raw(requestParameters: ReviewListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список отзывов + */ + reviewListV2(clientId: string, apiKey: string, reviewV2ReviewListV2Request: ReviewV2ReviewListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/ReviewAPI.js b/dist/esm/apis/ReviewAPI.js new file mode 100644 index 0000000..b722314 --- /dev/null +++ b/dist/esm/apis/ReviewAPI.js @@ -0,0 +1,476 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { ReviewV2ReviewChangeStatusV2RequestToJSON, ReviewV2ReviewCommentDeleteV2RequestToJSON, ReviewV2ReviewCountV2ResponseFromJSON, ReviewV2ReviewInfoV2RequestToJSON, ReviewV2ReviewInfoV2ResponseFromJSON, ReviewV2ReviewListV2RequestToJSON, ReviewV2ReviewListV2ResponseFromJSON, V1CommentCreateRequestToJSON, V1CommentCreateResponseFromJSON, V1CommentDeleteRequestToJSON, V1CommentListRequestToJSON, V1CommentListResponseFromJSON, V1ReviewChangeStatusRequestToJSON, V1ReviewCountResponseFromJSON, V1ReviewInfoRequestToJSON, V1ReviewInfoResponseFromJSON, V1ReviewListRequestToJSON, V1ReviewListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class ReviewAPI extends runtime.BaseAPI { + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Оставить комментарий на отзыв + */ + reviewAPICommentCreateRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CommentCreateRequest'] == null) { + throw new runtime.RequiredError('v1CommentCreateRequest', 'Required parameter "v1CommentCreateRequest" was null or undefined when calling reviewAPICommentCreate().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/comment/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CommentCreateRequestToJSON(requestParameters['v1CommentCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CommentCreateResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Оставить комментарий на отзыв + */ + reviewAPICommentCreate(v1CommentCreateRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPICommentCreateRaw({ v1CommentCreateRequest: v1CommentCreateRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + * @deprecated + */ + reviewAPICommentDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CommentDeleteRequest'] == null) { + throw new runtime.RequiredError('v1CommentDeleteRequest', 'Required parameter "v1CommentDeleteRequest" was null or undefined when calling reviewAPICommentDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/comment/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CommentDeleteRequestToJSON(requestParameters['v1CommentDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + * @deprecated + */ + reviewAPICommentDelete(v1CommentDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPICommentDeleteRaw({ v1CommentDeleteRequest: v1CommentDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод возвращает информацию по комментариям на отзывы, которые прошли модерацию. + * Получить список комментариев на отзыв + */ + reviewAPICommentListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1CommentListRequest'] == null) { + throw new runtime.RequiredError('v1CommentListRequest', 'Required parameter "v1CommentListRequest" was null or undefined when calling reviewAPICommentList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/comment/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1CommentListRequestToJSON(requestParameters['v1CommentListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1CommentListResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод возвращает информацию по комментариям на отзывы, которые прошли модерацию. + * Получить список комментариев на отзыв + */ + reviewAPICommentList(v1CommentListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPICommentListRaw({ v1CommentListRequest: v1CommentListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + * @deprecated + */ + reviewAPIReviewChangeStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ReviewChangeStatusRequest'] == null) { + throw new runtime.RequiredError('v1ReviewChangeStatusRequest', 'Required parameter "v1ReviewChangeStatusRequest" was null or undefined when calling reviewAPIReviewChangeStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/change-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ReviewChangeStatusRequestToJSON(requestParameters['v1ReviewChangeStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + * @deprecated + */ + reviewAPIReviewChangeStatus(v1ReviewChangeStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPIReviewChangeStatusRaw({ v1ReviewChangeStatusRequest: v1ReviewChangeStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Количество отзывов по статусам + * @deprecated + */ + reviewAPIReviewCountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['body'] == null) { + throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling reviewAPIReviewCount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/count`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ReviewCountResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Количество отзывов по статусам + * @deprecated + */ + reviewAPIReviewCount(body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPIReviewCountRaw({ body: body }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию об отзыве + * @deprecated + */ + reviewAPIReviewInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ReviewInfoRequest'] == null) { + throw new runtime.RequiredError('v1ReviewInfoRequest', 'Required parameter "v1ReviewInfoRequest" was null or undefined when calling reviewAPIReviewInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ReviewInfoRequestToJSON(requestParameters['v1ReviewInfoRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ReviewInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию об отзыве + * @deprecated + */ + reviewAPIReviewInfo(v1ReviewInfoRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPIReviewInfoRaw({ v1ReviewInfoRequest: v1ReviewInfoRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод не возвращает параметры «Достоинства» и «Недостатки», если они есть в отзывах на товар. Эти параметры устарели, в новых отзывах их нет. + * Получить список отзывов + * @deprecated + */ + reviewAPIReviewListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1ReviewListRequest'] == null) { + throw new runtime.RequiredError('v1ReviewListRequest', 'Required parameter "v1ReviewListRequest" was null or undefined when calling reviewAPIReviewList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/review/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ReviewListRequestToJSON(requestParameters['v1ReviewListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ReviewListResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Метод не возвращает параметры «Достоинства» и «Недостатки», если они есть в отзывах на товар. Эти параметры устарели, в новых отзывах их нет. + * Получить список отзывов + * @deprecated + */ + reviewAPIReviewList(v1ReviewListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewAPIReviewListRaw({ v1ReviewListRequest: v1ReviewListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + */ + reviewChangeStatusV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewChangeStatusV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewChangeStatusV2().'); + } + if (requestParameters['reviewV2ReviewChangeStatusV2Request'] == null) { + throw new runtime.RequiredError('reviewV2ReviewChangeStatusV2Request', 'Required parameter "reviewV2ReviewChangeStatusV2Request" was null or undefined when calling reviewChangeStatusV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/change-status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReviewV2ReviewChangeStatusV2RequestToJSON(requestParameters['reviewV2ReviewChangeStatusV2Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Изменить статус отзывов + */ + reviewChangeStatusV2(clientId, apiKey, reviewV2ReviewChangeStatusV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.reviewChangeStatusV2Raw({ clientId: clientId, apiKey: apiKey, reviewV2ReviewChangeStatusV2Request: reviewV2ReviewChangeStatusV2Request }, initOverrides); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + */ + reviewCommentDeleteV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewCommentDeleteV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewCommentDeleteV2().'); + } + if (requestParameters['reviewV2ReviewCommentDeleteV2Request'] == null) { + throw new runtime.RequiredError('reviewV2ReviewCommentDeleteV2Request', 'Required parameter "reviewV2ReviewCommentDeleteV2Request" was null or undefined when calling reviewCommentDeleteV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/comment/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReviewV2ReviewCommentDeleteV2RequestToJSON(requestParameters['reviewV2ReviewCommentDeleteV2Request']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Удалить комментарий на отзыв + */ + reviewCommentDeleteV2(clientId, apiKey, reviewV2ReviewCommentDeleteV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.reviewCommentDeleteV2Raw({ clientId: clientId, apiKey: apiKey, reviewV2ReviewCommentDeleteV2Request: reviewV2ReviewCommentDeleteV2Request }, initOverrides); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить количество отзывов по статусам + */ + reviewCountV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewCountV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewCountV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/count`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReviewV2ReviewCountV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить количество отзывов по статусам + */ + reviewCountV2(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewCountV2Raw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию по отзыву + */ + reviewInfoV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewInfoV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewInfoV2().'); + } + if (requestParameters['reviewV2ReviewInfoV2Request'] == null) { + throw new runtime.RequiredError('reviewV2ReviewInfoV2Request', 'Required parameter "reviewV2ReviewInfoV2Request" was null or undefined when calling reviewInfoV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReviewV2ReviewInfoV2RequestToJSON(requestParameters['reviewV2ReviewInfoV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReviewV2ReviewInfoV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить информацию по отзыву + */ + reviewInfoV2(clientId, apiKey, reviewV2ReviewInfoV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewInfoV2Raw({ clientId: clientId, apiKey: apiKey, reviewV2ReviewInfoV2Request: reviewV2ReviewInfoV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список отзывов + */ + reviewListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling reviewListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling reviewListV2().'); + } + if (requestParameters['reviewV2ReviewListV2Request'] == null) { + throw new runtime.RequiredError('reviewV2ReviewListV2Request', 'Required parameter "reviewV2ReviewListV2Request" was null or undefined when calling reviewListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/review/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReviewV2ReviewListV2RequestToJSON(requestParameters['reviewV2ReviewListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => ReviewV2ReviewListV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Доступно для продавцов с подпиской [Управление отзывами](https://seller-edu.ozon.ru/libra/seller-rating/podpiska-upravlenie-otzyvami) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). + * Получить список отзывов + */ + reviewListV2(clientId, apiKey, reviewV2ReviewListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.reviewListV2Raw({ clientId: clientId, apiKey: apiKey, reviewV2ReviewListV2Request: reviewV2ReviewListV2Request }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SellerActions.d.ts b/dist/esm/apis/SellerActions.d.ts new file mode 100644 index 0000000..ff24f7d --- /dev/null +++ b/dist/esm/apis/SellerActions.d.ts @@ -0,0 +1,288 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1SellerActionsArchiveRequest, V1SellerActionsChangeActivityRequest, V1SellerActionsCreateDiscountRequest, V1SellerActionsCreateDiscountResponse, V1SellerActionsCreateDiscountWithConditionRequest, V1SellerActionsCreateDiscountWithConditionResponse, V1SellerActionsCreateInstallmentRequest, V1SellerActionsCreateInstallmentResponse, V1SellerActionsCreateMultiLevelDiscountRequest, V1SellerActionsCreateMultiLevelDiscountResponse, V1SellerActionsCreateVoucherRequest, V1SellerActionsCreateVoucherResponse, V1SellerActionsListRequest, V1SellerActionsListResponse, V1SellerActionsProductsAddRequest, V1SellerActionsProductsCandidatesRequest, V1SellerActionsProductsCandidatesResponse, V1SellerActionsProductsDeleteRequest, V1SellerActionsProductsListRequest, V1SellerActionsProductsListResponse, V1SellerActionsUpdateDiscountRequest, V1SellerActionsUpdateDiscountWithConditionRequest, V1SellerActionsUpdateInstallmentRequest, V1SellerActionsUpdateMultiLevelDiscountRequest, V1SellerActionsUpdateVoucherRequest, V1SellerActionsVoucherGetRequest, V1SellerActionsVoucherGetResponse } from '../models/index'; +export interface SellerActionsArchiveRequest { + clientId: string; + apiKey: string; + v1SellerActionsArchiveRequest?: V1SellerActionsArchiveRequest; +} +export interface SellerActionsChangeActivityRequest { + clientId: string; + apiKey: string; + v1SellerActionsChangeActivityRequest?: V1SellerActionsChangeActivityRequest; +} +export interface SellerActionsCreateDiscountRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateDiscountRequest?: V1SellerActionsCreateDiscountRequest; +} +export interface SellerActionsCreateDiscountWithConditionRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateDiscountWithConditionRequest?: V1SellerActionsCreateDiscountWithConditionRequest; +} +export interface SellerActionsCreateInstallmentRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateInstallmentRequest?: V1SellerActionsCreateInstallmentRequest; +} +export interface SellerActionsCreateMultiLevelDiscountRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateMultiLevelDiscountRequest?: V1SellerActionsCreateMultiLevelDiscountRequest; +} +export interface SellerActionsCreateVoucherRequest { + clientId: string; + apiKey: string; + v1SellerActionsCreateVoucherRequest?: V1SellerActionsCreateVoucherRequest; +} +export interface SellerActionsListRequest { + clientId: string; + apiKey: string; + v1SellerActionsListRequest?: V1SellerActionsListRequest; +} +export interface SellerActionsProductsAddRequest { + clientId: string; + apiKey: string; + v1SellerActionsProductsAddRequest?: V1SellerActionsProductsAddRequest; +} +export interface SellerActionsProductsCandidatesRequest { + clientId: string; + apiKey: string; + v1SellerActionsProductsCandidatesRequest?: V1SellerActionsProductsCandidatesRequest; +} +export interface SellerActionsProductsDeleteRequest { + clientId: string; + apiKey: string; + v1SellerActionsProductsDeleteRequest?: V1SellerActionsProductsDeleteRequest; +} +export interface SellerActionsProductsListRequest { + clientId: string; + apiKey: string; + v1SellerActionsProductsListRequest?: V1SellerActionsProductsListRequest; +} +export interface SellerActionsUpdateDiscountRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateDiscountRequest: V1SellerActionsUpdateDiscountRequest; +} +export interface SellerActionsUpdateDiscountWithConditionRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateDiscountWithConditionRequest: V1SellerActionsUpdateDiscountWithConditionRequest; +} +export interface SellerActionsUpdateInstallmentRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateInstallmentRequest: V1SellerActionsUpdateInstallmentRequest; +} +export interface SellerActionsUpdateMultiLevelDiscountRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateMultiLevelDiscountRequest: V1SellerActionsUpdateMultiLevelDiscountRequest; +} +export interface SellerActionsUpdateVoucherRequest { + clientId: string; + apiKey: string; + v1SellerActionsUpdateVoucherRequest: V1SellerActionsUpdateVoucherRequest; +} +export interface SellerActionsVoucherGetRequest { + clientId: string; + apiKey: string; + v1SellerActionsVoucherGetRequest?: V1SellerActionsVoucherGetRequest; +} +/** + * + */ +export declare class SellerActions extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Перенести акцию в архив + */ + sellerActionsArchiveRaw(requestParameters: SellerActionsArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Перенести акцию в архив + */ + sellerActionsArchive(clientId: string, apiKey: string, v1SellerActionsArchiveRequest?: V1SellerActionsArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Включить или выключить акцию + */ + sellerActionsChangeActivityRaw(requestParameters: SellerActionsChangeActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Включить или выключить акцию + */ + sellerActionsChangeActivity(clientId: string, apiKey: string, v1SellerActionsChangeActivityRequest?: V1SellerActionsChangeActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка» + */ + sellerActionsCreateDiscountRaw(requestParameters: SellerActionsCreateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка» + */ + sellerActionsCreateDiscount(clientId: string, apiKey: string, v1SellerActionsCreateDiscountRequest?: V1SellerActionsCreateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsCreateDiscountWithConditionRaw(requestParameters: SellerActionsCreateDiscountWithConditionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsCreateDiscountWithCondition(clientId: string, apiKey: string, v1SellerActionsCreateDiscountWithConditionRequest?: V1SellerActionsCreateDiscountWithConditionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsCreateInstallmentRaw(requestParameters: SellerActionsCreateInstallmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsCreateInstallment(clientId: string, apiKey: string, v1SellerActionsCreateInstallmentRequest?: V1SellerActionsCreateInstallmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Товары в акцию добавляются автоматически, использовать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsCreateMultiLevelDiscountRaw(requestParameters: SellerActionsCreateMultiLevelDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Товары в акцию добавляются автоматически, использовать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsCreateMultiLevelDiscount(clientId: string, apiKey: string, v1SellerActionsCreateMultiLevelDiscountRequest?: V1SellerActionsCreateMultiLevelDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка по промокоду» + */ + sellerActionsCreateVoucherRaw(requestParameters: SellerActionsCreateVoucherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка по промокоду» + */ + sellerActionsCreateVoucher(clientId: string, apiKey: string, v1SellerActionsCreateVoucherRequest?: V1SellerActionsCreateVoucherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список акций + */ + sellerActionsListRaw(requestParameters: SellerActionsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список акций + */ + sellerActionsList(clientId: string, apiKey: string, v1SellerActionsListRequest?: V1SellerActionsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Добавить товары в акцию + */ + sellerActionsProductsAddRaw(requestParameters: SellerActionsProductsAddRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Добавить товары в акцию + */ + sellerActionsProductsAdd(clientId: string, apiKey: string, v1SellerActionsProductsAddRequest?: V1SellerActionsProductsAddRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список доступных для акции товаров + */ + sellerActionsProductsCandidatesRaw(requestParameters: SellerActionsProductsCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список доступных для акции товаров + */ + sellerActionsProductsCandidates(clientId: string, apiKey: string, v1SellerActionsProductsCandidatesRequest?: V1SellerActionsProductsCandidatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Удалить товары из акции + */ + sellerActionsProductsDeleteRaw(requestParameters: SellerActionsProductsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Удалить товары из акции + */ + sellerActionsProductsDelete(clientId: string, apiKey: string, v1SellerActionsProductsDeleteRequest?: V1SellerActionsProductsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список участвующих в акции товаров + */ + sellerActionsProductsListRaw(requestParameters: SellerActionsProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список участвующих в акции товаров + */ + sellerActionsProductsList(clientId: string, apiKey: string, v1SellerActionsProductsListRequest?: V1SellerActionsProductsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка» + */ + sellerActionsUpdateDiscountRaw(requestParameters: SellerActionsUpdateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка» + */ + sellerActionsUpdateDiscount(clientId: string, apiKey: string, v1SellerActionsUpdateDiscountRequest: V1SellerActionsUpdateDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsUpdateDiscountWithConditionRaw(requestParameters: SellerActionsUpdateDiscountWithConditionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsUpdateDiscountWithCondition(clientId: string, apiKey: string, v1SellerActionsUpdateDiscountWithConditionRequest: V1SellerActionsUpdateDiscountWithConditionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsUpdateInstallmentRaw(requestParameters: SellerActionsUpdateInstallmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsUpdateInstallment(clientId: string, apiKey: string, v1SellerActionsUpdateInstallmentRequest: V1SellerActionsUpdateInstallmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Товары в акцию добавляются автоматически, вызывать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsUpdateMultiLevelDiscountRaw(requestParameters: SellerActionsUpdateMultiLevelDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Товары в акцию добавляются автоматически, вызывать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsUpdateMultiLevelDiscount(clientId: string, apiKey: string, v1SellerActionsUpdateMultiLevelDiscountRequest: V1SellerActionsUpdateMultiLevelDiscountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка по промокоду» + */ + sellerActionsUpdateVoucherRaw(requestParameters: SellerActionsUpdateVoucherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка по промокоду» + */ + sellerActionsUpdateVoucher(clientId: string, apiKey: string, v1SellerActionsUpdateVoucherRequest: V1SellerActionsUpdateVoucherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить файл с промокодами в формате CSV + */ + sellerActionsVoucherGetRaw(requestParameters: SellerActionsVoucherGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить файл с промокодами в формате CSV + */ + sellerActionsVoucherGet(clientId: string, apiKey: string, v1SellerActionsVoucherGetRequest?: V1SellerActionsVoucherGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/SellerActions.js b/dist/esm/apis/SellerActions.js new file mode 100644 index 0000000..279918b --- /dev/null +++ b/dist/esm/apis/SellerActions.js @@ -0,0 +1,773 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1SellerActionsArchiveRequestToJSON, V1SellerActionsChangeActivityRequestToJSON, V1SellerActionsCreateDiscountRequestToJSON, V1SellerActionsCreateDiscountResponseFromJSON, V1SellerActionsCreateDiscountWithConditionRequestToJSON, V1SellerActionsCreateDiscountWithConditionResponseFromJSON, V1SellerActionsCreateInstallmentRequestToJSON, V1SellerActionsCreateInstallmentResponseFromJSON, V1SellerActionsCreateMultiLevelDiscountRequestToJSON, V1SellerActionsCreateMultiLevelDiscountResponseFromJSON, V1SellerActionsCreateVoucherRequestToJSON, V1SellerActionsCreateVoucherResponseFromJSON, V1SellerActionsListRequestToJSON, V1SellerActionsListResponseFromJSON, V1SellerActionsProductsAddRequestToJSON, V1SellerActionsProductsCandidatesRequestToJSON, V1SellerActionsProductsCandidatesResponseFromJSON, V1SellerActionsProductsDeleteRequestToJSON, V1SellerActionsProductsListRequestToJSON, V1SellerActionsProductsListResponseFromJSON, V1SellerActionsUpdateDiscountRequestToJSON, V1SellerActionsUpdateDiscountWithConditionRequestToJSON, V1SellerActionsUpdateInstallmentRequestToJSON, V1SellerActionsUpdateMultiLevelDiscountRequestToJSON, V1SellerActionsUpdateVoucherRequestToJSON, V1SellerActionsVoucherGetRequestToJSON, V1SellerActionsVoucherGetResponseFromJSON, } from '../models/index'; +/** + * + */ +export class SellerActions extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Перенести акцию в архив + */ + sellerActionsArchiveRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsArchive().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsArchive().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/archive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsArchiveRequestToJSON(requestParameters['v1SellerActionsArchiveRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Перенести акцию в архив + */ + sellerActionsArchive(clientId, apiKey, v1SellerActionsArchiveRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsArchiveRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsArchiveRequest: v1SellerActionsArchiveRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Включить или выключить акцию + */ + sellerActionsChangeActivityRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsChangeActivity().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsChangeActivity().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/change-activity`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsChangeActivityRequestToJSON(requestParameters['v1SellerActionsChangeActivityRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Включить или выключить акцию + */ + sellerActionsChangeActivity(clientId, apiKey, v1SellerActionsChangeActivityRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsChangeActivityRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsChangeActivityRequest: v1SellerActionsChangeActivityRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка» + */ + sellerActionsCreateDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsCreateDiscountRequestToJSON(requestParameters['v1SellerActionsCreateDiscountRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsCreateDiscountResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка» + */ + sellerActionsCreateDiscount(clientId, apiKey, v1SellerActionsCreateDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateDiscountRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateDiscountRequest: v1SellerActionsCreateDiscountRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsCreateDiscountWithConditionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateDiscountWithCondition().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateDiscountWithCondition().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/discount-with-condition`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsCreateDiscountWithConditionRequestToJSON(requestParameters['v1SellerActionsCreateDiscountWithConditionRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsCreateDiscountWithConditionResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsCreateDiscountWithCondition(clientId, apiKey, v1SellerActionsCreateDiscountWithConditionRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateDiscountWithConditionRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateDiscountWithConditionRequest: v1SellerActionsCreateDiscountWithConditionRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsCreateInstallmentRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateInstallment().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateInstallment().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/installment`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsCreateInstallmentRequestToJSON(requestParameters['v1SellerActionsCreateInstallmentRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsCreateInstallmentResponseFromJSON(jsonValue)); + }); + } + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsCreateInstallment(clientId, apiKey, v1SellerActionsCreateInstallmentRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateInstallmentRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateInstallmentRequest: v1SellerActionsCreateInstallmentRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Товары в акцию добавляются автоматически, использовать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsCreateMultiLevelDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateMultiLevelDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateMultiLevelDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/multi-level-discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsCreateMultiLevelDiscountRequestToJSON(requestParameters['v1SellerActionsCreateMultiLevelDiscountRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsCreateMultiLevelDiscountResponseFromJSON(jsonValue)); + }); + } + /** + * Товары в акцию добавляются автоматически, использовать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsCreateMultiLevelDiscount(clientId, apiKey, v1SellerActionsCreateMultiLevelDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateMultiLevelDiscountRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateMultiLevelDiscountRequest: v1SellerActionsCreateMultiLevelDiscountRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка по промокоду» + */ + sellerActionsCreateVoucherRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsCreateVoucher().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsCreateVoucher().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/create/voucher`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsCreateVoucherRequestToJSON(requestParameters['v1SellerActionsCreateVoucherRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsCreateVoucherResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Создать акцию с механикой «Скидка по промокоду» + */ + sellerActionsCreateVoucher(clientId, apiKey, v1SellerActionsCreateVoucherRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsCreateVoucherRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsCreateVoucherRequest: v1SellerActionsCreateVoucherRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список акций + */ + sellerActionsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsListRequestToJSON(requestParameters['v1SellerActionsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список акций + */ + sellerActionsList(clientId, apiKey, v1SellerActionsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsListRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsListRequest: v1SellerActionsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Добавить товары в акцию + */ + sellerActionsProductsAddRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsProductsAdd().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsProductsAdd().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/products/add`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsProductsAddRequestToJSON(requestParameters['v1SellerActionsProductsAddRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Добавить товары в акцию + */ + sellerActionsProductsAdd(clientId, apiKey, v1SellerActionsProductsAddRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsProductsAddRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsProductsAddRequest: v1SellerActionsProductsAddRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список доступных для акции товаров + */ + sellerActionsProductsCandidatesRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsProductsCandidates().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsProductsCandidates().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/products/candidates`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsProductsCandidatesRequestToJSON(requestParameters['v1SellerActionsProductsCandidatesRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsProductsCandidatesResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список доступных для акции товаров + */ + sellerActionsProductsCandidates(clientId, apiKey, v1SellerActionsProductsCandidatesRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsProductsCandidatesRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsProductsCandidatesRequest: v1SellerActionsProductsCandidatesRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Удалить товары из акции + */ + sellerActionsProductsDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsProductsDelete().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsProductsDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/products/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsProductsDeleteRequestToJSON(requestParameters['v1SellerActionsProductsDeleteRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Удалить товары из акции + */ + sellerActionsProductsDelete(clientId, apiKey, v1SellerActionsProductsDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsProductsDeleteRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsProductsDeleteRequest: v1SellerActionsProductsDeleteRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список участвующих в акции товаров + */ + sellerActionsProductsListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsProductsList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsProductsList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/products/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsProductsListRequestToJSON(requestParameters['v1SellerActionsProductsListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsProductsListResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить список участвующих в акции товаров + */ + sellerActionsProductsList(clientId, apiKey, v1SellerActionsProductsListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsProductsListRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsProductsListRequest: v1SellerActionsProductsListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка» + */ + sellerActionsUpdateDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateDiscount().'); + } + if (requestParameters['v1SellerActionsUpdateDiscountRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateDiscountRequest', 'Required parameter "v1SellerActionsUpdateDiscountRequest" was null or undefined when calling sellerActionsUpdateDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsUpdateDiscountRequestToJSON(requestParameters['v1SellerActionsUpdateDiscountRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка» + */ + sellerActionsUpdateDiscount(clientId, apiKey, v1SellerActionsUpdateDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateDiscountRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateDiscountRequest: v1SellerActionsUpdateDiscountRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsUpdateDiscountWithConditionRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateDiscountWithCondition().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateDiscountWithCondition().'); + } + if (requestParameters['v1SellerActionsUpdateDiscountWithConditionRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateDiscountWithConditionRequest', 'Required parameter "v1SellerActionsUpdateDiscountWithConditionRequest" was null or undefined when calling sellerActionsUpdateDiscountWithCondition().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/discount-with-condition`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsUpdateDiscountWithConditionRequestToJSON(requestParameters['v1SellerActionsUpdateDiscountWithConditionRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка от суммы заказа» + */ + sellerActionsUpdateDiscountWithCondition(clientId, apiKey, v1SellerActionsUpdateDiscountWithConditionRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateDiscountWithConditionRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateDiscountWithConditionRequest: v1SellerActionsUpdateDiscountWithConditionRequest }, initOverrides); + }); + } + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsUpdateInstallmentRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateInstallment().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateInstallment().'); + } + if (requestParameters['v1SellerActionsUpdateInstallmentRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateInstallmentRequest', 'Required parameter "v1SellerActionsUpdateInstallmentRequest" was null or undefined when calling sellerActionsUpdateInstallment().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/installment`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsUpdateInstallmentRequestToJSON(requestParameters['v1SellerActionsUpdateInstallmentRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Период рассрочки — 6 месяцев. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Беспроцентная рассрочка» + */ + sellerActionsUpdateInstallment(clientId, apiKey, v1SellerActionsUpdateInstallmentRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateInstallmentRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateInstallmentRequest: v1SellerActionsUpdateInstallmentRequest }, initOverrides); + }); + } + /** + * Товары в акцию добавляются автоматически, вызывать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsUpdateMultiLevelDiscountRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateMultiLevelDiscount().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateMultiLevelDiscount().'); + } + if (requestParameters['v1SellerActionsUpdateMultiLevelDiscountRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateMultiLevelDiscountRequest', 'Required parameter "v1SellerActionsUpdateMultiLevelDiscountRequest" was null or undefined when calling sellerActionsUpdateMultiLevelDiscount().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/multi-level-discount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsUpdateMultiLevelDiscountRequestToJSON(requestParameters['v1SellerActionsUpdateMultiLevelDiscountRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Товары в акцию добавляются автоматически, вызывать метод [/v1/seller-actions/products/add](#operation/SellerActionsProductsAdd) не нужно. Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Многоуровневая скидка от суммы» + */ + sellerActionsUpdateMultiLevelDiscount(clientId, apiKey, v1SellerActionsUpdateMultiLevelDiscountRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateMultiLevelDiscountRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateMultiLevelDiscountRequest: v1SellerActionsUpdateMultiLevelDiscountRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка по промокоду» + */ + sellerActionsUpdateVoucherRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsUpdateVoucher().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsUpdateVoucher().'); + } + if (requestParameters['v1SellerActionsUpdateVoucherRequest'] == null) { + throw new runtime.RequiredError('v1SellerActionsUpdateVoucherRequest', 'Required parameter "v1SellerActionsUpdateVoucherRequest" was null or undefined when calling sellerActionsUpdateVoucher().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/update/voucher`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsUpdateVoucherRequestToJSON(requestParameters['v1SellerActionsUpdateVoucherRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + }); + } + /** + * Вы можете оставить обратную связь по этому методу в комментариях к [обсуждению](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera/) в сообществе разработчиков Ozon for dev. + * Обновить акцию с механикой «Скидка по промокоду» + */ + sellerActionsUpdateVoucher(clientId, apiKey, v1SellerActionsUpdateVoucherRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + yield this.sellerActionsUpdateVoucherRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsUpdateVoucherRequest: v1SellerActionsUpdateVoucherRequest }, initOverrides); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить файл с промокодами в формате CSV + */ + sellerActionsVoucherGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerActionsVoucherGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerActionsVoucherGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller-actions/voucher/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1SellerActionsVoucherGetRequestToJSON(requestParameters['v1SellerActionsVoucherGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerActionsVoucherGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/1872-Novye-metody-dlia-raboty-s-aktsiiami-sellera) в сообществе разработчиков Ozon for dev. + * Получить файл с промокодами в формате CSV + */ + sellerActionsVoucherGet(clientId, apiKey, v1SellerActionsVoucherGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerActionsVoucherGetRaw({ clientId: clientId, apiKey: apiKey, v1SellerActionsVoucherGetRequest: v1SellerActionsVoucherGetRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SellerInfo.d.ts b/dist/esm/apis/SellerInfo.d.ts new file mode 100644 index 0000000..f4a6222 --- /dev/null +++ b/dist/esm/apis/SellerInfo.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1SellerInfoResponse, V1SellerOzonLogisticsInfoResponse } from '../models/index'; +export interface SellerAPISellerInfoRequest { + clientId: string; + apiKey: string; +} +export interface SellerAPISellerOzonLogisticsInfoRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class SellerInfo extends runtime.BaseAPI { + /** + * Информация о кабинете продавца + */ + sellerAPISellerInfoRaw(requestParameters: SellerAPISellerInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о кабинете продавца + */ + sellerAPISellerInfo(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о подключении Ozon Доставки + */ + sellerAPISellerOzonLogisticsInfoRaw(requestParameters: SellerAPISellerOzonLogisticsInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о подключении Ozon Доставки + */ + sellerAPISellerOzonLogisticsInfo(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/SellerInfo.js b/dist/esm/apis/SellerInfo.js new file mode 100644 index 0000000..92c6e5a --- /dev/null +++ b/dist/esm/apis/SellerInfo.js @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1SellerInfoResponseFromJSON, V1SellerOzonLogisticsInfoResponseFromJSON, } from '../models/index'; +/** + * + */ +export class SellerInfo extends runtime.BaseAPI { + /** + * Информация о кабинете продавца + */ + sellerAPISellerInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerAPISellerInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerAPISellerInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Информация о кабинете продавца + */ + sellerAPISellerInfo(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerAPISellerInfoRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о подключении Ozon Доставки + */ + sellerAPISellerOzonLogisticsInfoRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling sellerAPISellerOzonLogisticsInfo().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling sellerAPISellerOzonLogisticsInfo().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/seller/ozon-logistics/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1SellerOzonLogisticsInfoResponseFromJSON(jsonValue)); + }); + } + /** + * Информация о подключении Ozon Доставки + */ + sellerAPISellerOzonLogisticsInfo(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.sellerAPISellerOzonLogisticsInfoRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SellerRating.d.ts b/dist/esm/apis/SellerRating.d.ts new file mode 100644 index 0000000..a0b4c9e --- /dev/null +++ b/dist/esm/apis/SellerRating.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1GetFBSRatingIndexInfoV1Response, V1ListFBSRatingIndexPostingsV1Request, V1ListFBSRatingIndexPostingsV1Response, V1RatingHistoryV1Request, V1RatingHistoryV1Response, V1RatingSummaryV1Response } from '../models/index'; +export interface RatingAPIGetFBSRatingIndexInfoV1Request { + clientId: string; + apiKey: string; +} +export interface RatingAPIListFBSRatingIndexPostingsV1Request { + clientId: string; + apiKey: string; + v1ListFBSRatingIndexPostingsV1Request: V1ListFBSRatingIndexPostingsV1Request; +} +export interface RatingAPIRatingHistoryV1Request { + v1RatingHistoryV1Request: V1RatingHistoryV1Request; +} +export interface RatingAPIRatingSummaryV1Request { + body: object; +} +/** + * + */ +export declare class SellerRating extends runtime.BaseAPI { + /** + * Получить индекс ошибок FBS и rFBS + */ + ratingAPIGetFBSRatingIndexInfoV1Raw(requestParameters: RatingAPIGetFBSRatingIndexInfoV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить индекс ошибок FBS и rFBS + */ + ratingAPIGetFBSRatingIndexInfoV1(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список отправлений, которые повлияли на индекс ошибок FBS и rFBS + */ + ratingAPIListFBSRatingIndexPostingsV1Raw(requestParameters: RatingAPIListFBSRatingIndexPostingsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список отправлений, которые повлияли на индекс ошибок FBS и rFBS + */ + ratingAPIListFBSRatingIndexPostingsV1(clientId: string, apiKey: string, v1ListFBSRatingIndexPostingsV1Request: V1ListFBSRatingIndexPostingsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Информация о рейтингах за заданный период и с фильтром по нужному рейтингу. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о рейтингах продавца за период + */ + ratingAPIRatingHistoryV1Raw(requestParameters: RatingAPIRatingHistoryV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Информация о рейтингах за заданный период и с фильтром по нужному рейтингу. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о рейтингах продавца за период + */ + ratingAPIRatingHistoryV1(v1RatingHistoryV1Request: V1RatingHistoryV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Рейтинг продавца по следующим показателям: индекс цен, доставки вовремя, процент отмен, жалобы и другие. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о текущих рейтингах продавца + */ + ratingAPIRatingSummaryV1Raw(requestParameters: RatingAPIRatingSummaryV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Рейтинг продавца по следующим показателям: индекс цен, доставки вовремя, процент отмен, жалобы и другие. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о текущих рейтингах продавца + */ + ratingAPIRatingSummaryV1(body: object, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/SellerRating.js b/dist/esm/apis/SellerRating.js new file mode 100644 index 0000000..4c1782a --- /dev/null +++ b/dist/esm/apis/SellerRating.js @@ -0,0 +1,172 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1GetFBSRatingIndexInfoV1ResponseFromJSON, V1ListFBSRatingIndexPostingsV1RequestToJSON, V1ListFBSRatingIndexPostingsV1ResponseFromJSON, V1RatingHistoryV1RequestToJSON, V1RatingHistoryV1ResponseFromJSON, V1RatingSummaryV1ResponseFromJSON, } from '../models/index'; +/** + * + */ +export class SellerRating extends runtime.BaseAPI { + /** + * Получить индекс ошибок FBS и rFBS + */ + ratingAPIGetFBSRatingIndexInfoV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling ratingAPIGetFBSRatingIndexInfoV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling ratingAPIGetFBSRatingIndexInfoV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/rating/index/fbs/info`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetFBSRatingIndexInfoV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Получить индекс ошибок FBS и rFBS + */ + ratingAPIGetFBSRatingIndexInfoV1(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.ratingAPIGetFBSRatingIndexInfoV1Raw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } + /** + * Список отправлений, которые повлияли на индекс ошибок FBS и rFBS + */ + ratingAPIListFBSRatingIndexPostingsV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling ratingAPIListFBSRatingIndexPostingsV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling ratingAPIListFBSRatingIndexPostingsV1().'); + } + if (requestParameters['v1ListFBSRatingIndexPostingsV1Request'] == null) { + throw new runtime.RequiredError('v1ListFBSRatingIndexPostingsV1Request', 'Required parameter "v1ListFBSRatingIndexPostingsV1Request" was null or undefined when calling ratingAPIListFBSRatingIndexPostingsV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/rating/index/fbs/posting/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ListFBSRatingIndexPostingsV1RequestToJSON(requestParameters['v1ListFBSRatingIndexPostingsV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ListFBSRatingIndexPostingsV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Список отправлений, которые повлияли на индекс ошибок FBS и rFBS + */ + ratingAPIListFBSRatingIndexPostingsV1(clientId, apiKey, v1ListFBSRatingIndexPostingsV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.ratingAPIListFBSRatingIndexPostingsV1Raw({ clientId: clientId, apiKey: apiKey, v1ListFBSRatingIndexPostingsV1Request: v1ListFBSRatingIndexPostingsV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Информация о рейтингах за заданный период и с фильтром по нужному рейтингу. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о рейтингах продавца за период + */ + ratingAPIRatingHistoryV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1RatingHistoryV1Request'] == null) { + throw new runtime.RequiredError('v1RatingHistoryV1Request', 'Required parameter "v1RatingHistoryV1Request" was null or undefined when calling ratingAPIRatingHistoryV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/rating/history`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1RatingHistoryV1RequestToJSON(requestParameters['v1RatingHistoryV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1RatingHistoryV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Информация о рейтингах за заданный период и с фильтром по нужному рейтингу. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о рейтингах продавца за период + */ + ratingAPIRatingHistoryV1(v1RatingHistoryV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.ratingAPIRatingHistoryV1Raw({ v1RatingHistoryV1Request: v1RatingHistoryV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Рейтинг продавца по следующим показателям: индекс цен, доставки вовремя, процент отмен, жалобы и другие. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о текущих рейтингах продавца + */ + ratingAPIRatingSummaryV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['body'] == null) { + throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling ratingAPIRatingSummaryV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/rating/summary`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'], + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1RatingSummaryV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Рейтинг продавца по следующим показателям: индекс цен, доставки вовремя, процент отмен, жалобы и другие. Соответствует разделу **Рейтинги → Рейтинги продавца** в личном кабинете. + * Получить информацию о текущих рейтингах продавца + */ + ratingAPIRatingSummaryV1(body, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.ratingAPIRatingSummaryV1Raw({ body: body }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SupplierAPI.d.ts b/dist/esm/apis/SupplierAPI.d.ts new file mode 100644 index 0000000..729b9a1 --- /dev/null +++ b/dist/esm/apis/SupplierAPI.d.ts @@ -0,0 +1,66 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1InvoiceDeleteRequest, V1InvoiceDeleteResponse, V1InvoiceFileUploadRequest, V1InvoiceFileUploadResponse, V1InvoiceGetRequest, V2InvoiceCreateOrUpdateV2Request, V2InvoiceCreateOrUpdateV2Response, V2InvoiceGetV2Response } from '../models/index'; +export interface InvoiceAPIInvoiceCreateOrUpdateV2Request { + v2InvoiceCreateOrUpdateV2Request: V2InvoiceCreateOrUpdateV2Request; +} +export interface InvoiceDeleteRequest { + v1InvoiceDeleteRequest: V1InvoiceDeleteRequest; +} +export interface InvoiceGetV2Request { + v1InvoiceGetRequest: V1InvoiceGetRequest; +} +export interface InvoiceUploadRequest { + v1InvoiceFileUploadRequest: V1InvoiceFileUploadRequest; +} +/** + * + */ +export declare class SupplierAPI extends runtime.BaseAPI { + /** + * Создание или изменение таможенного счёта-фактуры для возврата НДС продавцам из Турции. Вы можете создать счёт-фактуру только для отправлений в статусах `awaiting_approve` или `awaiting_packaging`. + * Создать или изменить счёт-фактуру + */ + invoiceAPIInvoiceCreateOrUpdateV2Raw(requestParameters: InvoiceAPIInvoiceCreateOrUpdateV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Создание или изменение таможенного счёта-фактуры для возврата НДС продавцам из Турции. Вы можете создать счёт-фактуру только для отправлений в статусах `awaiting_approve` или `awaiting_packaging`. + * Создать или изменить счёт-фактуру + */ + invoiceAPIInvoiceCreateOrUpdateV2(v2InvoiceCreateOrUpdateV2Request: V2InvoiceCreateOrUpdateV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Удалить ссылку на счёт-фактуру + */ + invoiceDeleteRaw(requestParameters: InvoiceDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Удалить ссылку на счёт-фактуру + */ + invoiceDelete(v1InvoiceDeleteRequest: V1InvoiceDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию о счёте-фактуре + */ + invoiceGetV2Raw(requestParameters: InvoiceGetV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию о счёте-фактуре + */ + invoiceGetV2(v1InvoiceGetRequest: V1InvoiceGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Доступные форматы: JPEG и PDF. Максимальный размер файла: 10 МБ. + * Загрузка счёта-фактуры + */ + invoiceUploadRaw(requestParameters: InvoiceUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Доступные форматы: JPEG и PDF. Максимальный размер файла: 10 МБ. + * Загрузка счёта-фактуры + */ + invoiceUpload(v1InvoiceFileUploadRequest: V1InvoiceFileUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/SupplierAPI.js b/dist/esm/apis/SupplierAPI.js new file mode 100644 index 0000000..0ad27ae --- /dev/null +++ b/dist/esm/apis/SupplierAPI.js @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1InvoiceDeleteRequestToJSON, V1InvoiceDeleteResponseFromJSON, V1InvoiceFileUploadRequestToJSON, V1InvoiceFileUploadResponseFromJSON, V1InvoiceGetRequestToJSON, V2InvoiceCreateOrUpdateV2RequestToJSON, V2InvoiceCreateOrUpdateV2ResponseFromJSON, V2InvoiceGetV2ResponseFromJSON, } from '../models/index'; +/** + * + */ +export class SupplierAPI extends runtime.BaseAPI { + /** + * Создание или изменение таможенного счёта-фактуры для возврата НДС продавцам из Турции. Вы можете создать счёт-фактуру только для отправлений в статусах `awaiting_approve` или `awaiting_packaging`. + * Создать или изменить счёт-фактуру + */ + invoiceAPIInvoiceCreateOrUpdateV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v2InvoiceCreateOrUpdateV2Request'] == null) { + throw new runtime.RequiredError('v2InvoiceCreateOrUpdateV2Request', 'Required parameter "v2InvoiceCreateOrUpdateV2Request" was null or undefined when calling invoiceAPIInvoiceCreateOrUpdateV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/invoice/create-or-update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2InvoiceCreateOrUpdateV2RequestToJSON(requestParameters['v2InvoiceCreateOrUpdateV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2InvoiceCreateOrUpdateV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Создание или изменение таможенного счёта-фактуры для возврата НДС продавцам из Турции. Вы можете создать счёт-фактуру только для отправлений в статусах `awaiting_approve` или `awaiting_packaging`. + * Создать или изменить счёт-фактуру + */ + invoiceAPIInvoiceCreateOrUpdateV2(v2InvoiceCreateOrUpdateV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.invoiceAPIInvoiceCreateOrUpdateV2Raw({ v2InvoiceCreateOrUpdateV2Request: v2InvoiceCreateOrUpdateV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Удалить ссылку на счёт-фактуру + */ + invoiceDeleteRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1InvoiceDeleteRequest'] == null) { + throw new runtime.RequiredError('v1InvoiceDeleteRequest', 'Required parameter "v1InvoiceDeleteRequest" was null or undefined when calling invoiceDelete().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/invoice/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1InvoiceDeleteRequestToJSON(requestParameters['v1InvoiceDeleteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1InvoiceDeleteResponseFromJSON(jsonValue)); + }); + } + /** + * Удалить ссылку на счёт-фактуру + */ + invoiceDelete(v1InvoiceDeleteRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.invoiceDeleteRaw({ v1InvoiceDeleteRequest: v1InvoiceDeleteRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию о счёте-фактуре + */ + invoiceGetV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1InvoiceGetRequest'] == null) { + throw new runtime.RequiredError('v1InvoiceGetRequest', 'Required parameter "v1InvoiceGetRequest" was null or undefined when calling invoiceGetV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v2/invoice/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1InvoiceGetRequestToJSON(requestParameters['v1InvoiceGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2InvoiceGetV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Получить информацию о счёте-фактуре + */ + invoiceGetV2(v1InvoiceGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.invoiceGetV2Raw({ v1InvoiceGetRequest: v1InvoiceGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Доступные форматы: JPEG и PDF. Максимальный размер файла: 10 МБ. + * Загрузка счёта-фактуры + */ + invoiceUploadRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['v1InvoiceFileUploadRequest'] == null) { + throw new runtime.RequiredError('v1InvoiceFileUploadRequest', 'Required parameter "v1InvoiceFileUploadRequest" was null or undefined when calling invoiceUpload().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = yield this.request({ + path: `/v1/invoice/file/upload`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1InvoiceFileUploadRequestToJSON(requestParameters['v1InvoiceFileUploadRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1InvoiceFileUploadResponseFromJSON(jsonValue)); + }); + } + /** + * Доступные форматы: JPEG и PDF. Максимальный размер файла: 10 МБ. + * Загрузка счёта-фактуры + */ + invoiceUpload(v1InvoiceFileUploadRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.invoiceUploadRaw({ v1InvoiceFileUploadRequest: v1InvoiceFileUploadRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/SupplyOrderAPI.d.ts b/dist/esm/apis/SupplyOrderAPI.d.ts new file mode 100644 index 0000000..c7aaf16 --- /dev/null +++ b/dist/esm/apis/SupplyOrderAPI.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { SupplyOrderV1SupplyOrderActAcceptRequest, SupplyOrderV1SupplyOrderActAcceptResponse, SupplyOrderV1SupplyOrderActAcceptStatusRequest, SupplyOrderV1SupplyOrderActAcceptStatusResponse, SupplyOrderV1SupplyOrderActProductGetRequest, SupplyOrderV1SupplyOrderActProductGetResponse, SupplyOrderV1SupplyOrderActSummaryGetRequest, SupplyOrderV1SupplyOrderActSummaryGetResponse } from '../models/index'; +export interface SupplyOrderActAcceptRequest { + clientId: string; + apiKey: string; + supplyOrderV1SupplyOrderActAcceptRequest?: SupplyOrderV1SupplyOrderActAcceptRequest; +} +export interface SupplyOrderActAcceptStatusRequest { + clientId: string; + apiKey: string; + supplyOrderV1SupplyOrderActAcceptStatusRequest?: SupplyOrderV1SupplyOrderActAcceptStatusRequest; +} +export interface SupplyOrderActProductGetRequest { + clientId: string; + apiKey: string; + supplyOrderV1SupplyOrderActProductGetRequest?: SupplyOrderV1SupplyOrderActProductGetRequest; +} +export interface SupplyOrderActSummaryGetRequest { + clientId: string; + apiKey: string; + supplyOrderV1SupplyOrderActSummaryGetRequest?: SupplyOrderV1SupplyOrderActSummaryGetRequest; +} +/** + * + */ +export declare class SupplyOrderAPI extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Согласовать акт + */ + supplyOrderActAcceptRaw(requestParameters: SupplyOrderActAcceptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Согласовать акт + */ + supplyOrderActAccept(clientId: string, apiKey: string, supplyOrderV1SupplyOrderActAcceptRequest?: SupplyOrderV1SupplyOrderActAcceptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить статус согласования акта + */ + supplyOrderActAcceptStatusRaw(requestParameters: SupplyOrderActAcceptStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить статус согласования акта + */ + supplyOrderActAcceptStatus(clientId: string, apiKey: string, supplyOrderV1SupplyOrderActAcceptStatusRequest?: SupplyOrderV1SupplyOrderActAcceptStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о товарах в акте + */ + supplyOrderActProductGetRaw(requestParameters: SupplyOrderActProductGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о товарах в акте + */ + supplyOrderActProductGet(clientId: string, apiKey: string, supplyOrderV1SupplyOrderActProductGetRequest?: SupplyOrderV1SupplyOrderActProductGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию об акте + */ + supplyOrderActSummaryGetRaw(requestParameters: SupplyOrderActSummaryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию об акте + */ + supplyOrderActSummaryGet(clientId: string, apiKey: string, supplyOrderV1SupplyOrderActSummaryGetRequest?: SupplyOrderV1SupplyOrderActSummaryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/SupplyOrderAPI.js b/dist/esm/apis/SupplyOrderAPI.js new file mode 100644 index 0000000..45ac677 --- /dev/null +++ b/dist/esm/apis/SupplyOrderAPI.js @@ -0,0 +1,193 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { SupplyOrderV1SupplyOrderActAcceptRequestToJSON, SupplyOrderV1SupplyOrderActAcceptResponseFromJSON, SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON, SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON, SupplyOrderV1SupplyOrderActProductGetRequestToJSON, SupplyOrderV1SupplyOrderActProductGetResponseFromJSON, SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON, SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON, } from '../models/index'; +/** + * + */ +export class SupplyOrderAPI extends runtime.BaseAPI { + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Согласовать акт + */ + supplyOrderActAcceptRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderActAccept().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderActAccept().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/act/accept`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SupplyOrderV1SupplyOrderActAcceptRequestToJSON(requestParameters['supplyOrderV1SupplyOrderActAcceptRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SupplyOrderV1SupplyOrderActAcceptResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Согласовать акт + */ + supplyOrderActAccept(clientId, apiKey, supplyOrderV1SupplyOrderActAcceptRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderActAcceptRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV1SupplyOrderActAcceptRequest: supplyOrderV1SupplyOrderActAcceptRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить статус согласования акта + */ + supplyOrderActAcceptStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderActAcceptStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderActAcceptStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/act/accept/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON(requestParameters['supplyOrderV1SupplyOrderActAcceptStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить статус согласования акта + */ + supplyOrderActAcceptStatus(clientId, apiKey, supplyOrderV1SupplyOrderActAcceptStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderActAcceptStatusRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV1SupplyOrderActAcceptStatusRequest: supplyOrderV1SupplyOrderActAcceptStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о товарах в акте + */ + supplyOrderActProductGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderActProductGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderActProductGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/act/product/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SupplyOrderV1SupplyOrderActProductGetRequestToJSON(requestParameters['supplyOrderV1SupplyOrderActProductGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SupplyOrderV1SupplyOrderActProductGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию о товарах в акте + */ + supplyOrderActProductGet(clientId, apiKey, supplyOrderV1SupplyOrderActProductGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderActProductGetRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV1SupplyOrderActProductGetRequest: supplyOrderV1SupplyOrderActProductGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию об акте + */ + supplyOrderActSummaryGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling supplyOrderActSummaryGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling supplyOrderActSummaryGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/supply-order/act/summary/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON(requestParameters['supplyOrderV1SupplyOrderActSummaryGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON(jsonValue)); + }); + } + /** + * Вы можете оставить обратную связь о работе метода в [комментариях](https://dev.ozon.ru/community/2294-Novye-beta-metody-dlia-raboty-s-aktami-FBO/) в сообществе разработчиков Ozon for dev. + * Получить информацию об акте + */ + supplyOrderActSummaryGet(clientId, apiKey, supplyOrderV1SupplyOrderActSummaryGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.supplyOrderActSummaryGetRaw({ clientId: clientId, apiKey: apiKey, supplyOrderV1SupplyOrderActSummaryGetRequest: supplyOrderV1SupplyOrderActSummaryGetRequest }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/WarehouseAPI.d.ts b/dist/esm/apis/WarehouseAPI.d.ts new file mode 100644 index 0000000..719b430 --- /dev/null +++ b/dist/esm/apis/WarehouseAPI.d.ts @@ -0,0 +1,155 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { V1ArchiveWarehouseFBSRequest, V1ArchiveWarehouseFBSResponse, V1GetDeliveryMethodReturnSettingsV1Request, V1GetDeliveryMethodReturnSettingsV1Response, V1GetWarehouseFBSOperationStatusRequest, V1GetWarehouseFBSOperationStatusResponse, V1UnarchiveWarehouseFBSRequest, V1UnarchiveWarehouseFBSResponse, V1WarehouseInvalidProductsGetRequest, V1WarehouseInvalidProductsGetResponse, V1WarehouseListRequest, V1WarehouseWithInvalidProductsResponse, V2DeliveryMethodListV2Request, V2DeliveryMethodListV2Response, V2WarehouseListV2Request, V2WarehouseListV2Response, WarehouseDeliveryMethodListRequest, WarehouseDeliveryMethodListResponse, WarehouseWarehouseListResponse } from '../models/index'; +export interface ArchiveWarehouseFBSRequest { + clientId: string; + apiKey: string; + v1ArchiveWarehouseFBSRequest?: V1ArchiveWarehouseFBSRequest; +} +export interface GetDeliveryMethodReturnSettingsV1Request { + clientId: string; + apiKey: string; + v1GetDeliveryMethodReturnSettingsV1Request?: V1GetDeliveryMethodReturnSettingsV1Request; +} +export interface GetWarehouseFBSOperationStatusRequest { + clientId: string; + apiKey: string; + v1GetWarehouseFBSOperationStatusRequest?: V1GetWarehouseFBSOperationStatusRequest; +} +export interface UnarchiveWarehouseFBSRequest { + clientId: string; + apiKey: string; + v1UnarchiveWarehouseFBSRequest?: V1UnarchiveWarehouseFBSRequest; +} +export interface WarehouseAPIDeliveryMethodListRequest { + clientId: string; + apiKey: string; + warehouseDeliveryMethodListRequest: WarehouseDeliveryMethodListRequest; +} +export interface WarehouseAPIDeliveryMethodListV2Request { + clientId: string; + apiKey: string; + v2DeliveryMethodListV2Request: V2DeliveryMethodListV2Request; +} +export interface WarehouseAPIWarehouseListRequest { + clientId: string; + apiKey: string; + v1WarehouseListRequest: V1WarehouseListRequest; +} +export interface WarehouseInvalidProductsGetRequest { + clientId: string; + apiKey: string; + v1WarehouseInvalidProductsGetRequest?: V1WarehouseInvalidProductsGetRequest; +} +export interface WarehouseListV2Request { + clientId: string; + apiKey: string; + v2WarehouseListV2Request?: V2WarehouseListV2Request; +} +export interface WarehouseWithInvalidProductsRequest { + clientId: string; + apiKey: string; +} +/** + * + */ +export declare class WarehouseAPI extends runtime.BaseAPI { + /** + * Перенести склад в архив + */ + archiveWarehouseFBSRaw(requestParameters: ArchiveWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перенести склад в архив + */ + archiveWarehouseFBS(clientId: string, apiKey: string, v1ArchiveWarehouseFBSRequest?: V1ArchiveWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить информацию по возвратным настройкам rFBS и rFBS Express + */ + getDeliveryMethodReturnSettingsV1Raw(requestParameters: GetDeliveryMethodReturnSettingsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить информацию по возвратным настройкам rFBS и rFBS Express + */ + getDeliveryMethodReturnSettingsV1(clientId: string, apiKey: string, v1GetDeliveryMethodReturnSettingsV1Request?: V1GetDeliveryMethodReturnSettingsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить статус операции + */ + getWarehouseFBSOperationStatusRaw(requestParameters: GetWarehouseFBSOperationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить статус операции + */ + getWarehouseFBSOperationStatus(clientId: string, apiKey: string, v1GetWarehouseFBSOperationStatusRequest?: V1GetWarehouseFBSOperationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Перенести склад из архива + */ + unarchiveWarehouseFBSRaw(requestParameters: UnarchiveWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Перенести склад из архива + */ + unarchiveWarehouseFBS(clientId: string, apiKey: string, v1UnarchiveWarehouseFBSRequest?: V1UnarchiveWarehouseFBSRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * Список методов доставки склада + */ + warehouseAPIDeliveryMethodListRaw(requestParameters: WarehouseAPIDeliveryMethodListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * + * Список методов доставки склада + */ + warehouseAPIDeliveryMethodList(clientId: string, apiKey: string, warehouseDeliveryMethodListRequest: WarehouseDeliveryMethodListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Список методов доставки realFBS-склада + */ + warehouseAPIDeliveryMethodListV2Raw(requestParameters: WarehouseAPIDeliveryMethodListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Список методов доставки realFBS-склада + */ + warehouseAPIDeliveryMethodListV2(clientId: string, apiKey: string, v2DeliveryMethodListV2Request: V2DeliveryMethodListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). Метод можно использовать 1 раз в минуту. + * Список складов + */ + warehouseAPIWarehouseListRaw(requestParameters: WarehouseAPIWarehouseListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). Метод можно использовать 1 раз в минуту. + * Список складов + */ + warehouseAPIWarehouseList(clientId: string, apiKey: string, v1WarehouseListRequest: V1WarehouseListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Получить список товаров с ограничениями по доставке + */ + warehouseInvalidProductsGetRaw(requestParameters: WarehouseInvalidProductsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Получить список товаров с ограничениями по доставке + */ + warehouseInvalidProductsGet(clientId: string, apiKey: string, v1WarehouseInvalidProductsGetRequest?: V1WarehouseInvalidProductsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Метод возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/warehouse/fbo/list](#operation/SupplyDraftAPI_DraftGetWarehouseFboList). + * Список складов + */ + warehouseListV2Raw(requestParameters: WarehouseListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Метод возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/warehouse/fbo/list](#operation/SupplyDraftAPI_DraftGetWarehouseFboList). + * Список складов + */ + warehouseListV2(clientId: string, apiKey: string, v2WarehouseListV2Request?: V2WarehouseListV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Возвращает идентификаторы складов, на которых находятся товары с ограничениями. Такие товары недоступны для доставки со склада. + * Получить список складов с ограниченными для доставки товарами + */ + warehouseWithInvalidProductsRaw(requestParameters: WarehouseWithInvalidProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Возвращает идентификаторы складов, на которых находятся товары с ограничениями. Такие товары недоступны для доставки со склада. + * Получить список складов с ограниченными для доставки товарами + */ + warehouseWithInvalidProducts(clientId: string, apiKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} diff --git a/dist/esm/apis/WarehouseAPI.js b/dist/esm/apis/WarehouseAPI.js new file mode 100644 index 0000000..1c6d446 --- /dev/null +++ b/dist/esm/apis/WarehouseAPI.js @@ -0,0 +1,434 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import * as runtime from '../runtime'; +import { V1ArchiveWarehouseFBSRequestToJSON, V1ArchiveWarehouseFBSResponseFromJSON, V1GetDeliveryMethodReturnSettingsV1RequestToJSON, V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON, V1GetWarehouseFBSOperationStatusRequestToJSON, V1GetWarehouseFBSOperationStatusResponseFromJSON, V1UnarchiveWarehouseFBSRequestToJSON, V1UnarchiveWarehouseFBSResponseFromJSON, V1WarehouseInvalidProductsGetRequestToJSON, V1WarehouseInvalidProductsGetResponseFromJSON, V1WarehouseListRequestToJSON, V1WarehouseWithInvalidProductsResponseFromJSON, V2DeliveryMethodListV2RequestToJSON, V2DeliveryMethodListV2ResponseFromJSON, V2WarehouseListV2RequestToJSON, V2WarehouseListV2ResponseFromJSON, WarehouseDeliveryMethodListRequestToJSON, WarehouseDeliveryMethodListResponseFromJSON, WarehouseWarehouseListResponseFromJSON, } from '../models/index'; +/** + * + */ +export class WarehouseAPI extends runtime.BaseAPI { + /** + * Перенести склад в архив + */ + archiveWarehouseFBSRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling archiveWarehouseFBS().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling archiveWarehouseFBS().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/archive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1ArchiveWarehouseFBSRequestToJSON(requestParameters['v1ArchiveWarehouseFBSRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1ArchiveWarehouseFBSResponseFromJSON(jsonValue)); + }); + } + /** + * Перенести склад в архив + */ + archiveWarehouseFBS(clientId, apiKey, v1ArchiveWarehouseFBSRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.archiveWarehouseFBSRaw({ clientId: clientId, apiKey: apiKey, v1ArchiveWarehouseFBSRequest: v1ArchiveWarehouseFBSRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить информацию по возвратным настройкам rFBS и rFBS Express + */ + getDeliveryMethodReturnSettingsV1Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getDeliveryMethodReturnSettingsV1().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getDeliveryMethodReturnSettingsV1().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/delivery-method/return/settings/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetDeliveryMethodReturnSettingsV1RequestToJSON(requestParameters['v1GetDeliveryMethodReturnSettingsV1Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON(jsonValue)); + }); + } + /** + * Получить информацию по возвратным настройкам rFBS и rFBS Express + */ + getDeliveryMethodReturnSettingsV1(clientId, apiKey, v1GetDeliveryMethodReturnSettingsV1Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getDeliveryMethodReturnSettingsV1Raw({ clientId: clientId, apiKey: apiKey, v1GetDeliveryMethodReturnSettingsV1Request: v1GetDeliveryMethodReturnSettingsV1Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить статус операции + */ + getWarehouseFBSOperationStatusRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling getWarehouseFBSOperationStatus().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling getWarehouseFBSOperationStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/operation/status`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1GetWarehouseFBSOperationStatusRequestToJSON(requestParameters['v1GetWarehouseFBSOperationStatusRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1GetWarehouseFBSOperationStatusResponseFromJSON(jsonValue)); + }); + } + /** + * Получить статус операции + */ + getWarehouseFBSOperationStatus(clientId, apiKey, v1GetWarehouseFBSOperationStatusRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.getWarehouseFBSOperationStatusRaw({ clientId: clientId, apiKey: apiKey, v1GetWarehouseFBSOperationStatusRequest: v1GetWarehouseFBSOperationStatusRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Перенести склад из архива + */ + unarchiveWarehouseFBSRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling unarchiveWarehouseFBS().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling unarchiveWarehouseFBS().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/unarchive`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1UnarchiveWarehouseFBSRequestToJSON(requestParameters['v1UnarchiveWarehouseFBSRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1UnarchiveWarehouseFBSResponseFromJSON(jsonValue)); + }); + } + /** + * Перенести склад из архива + */ + unarchiveWarehouseFBS(clientId, apiKey, v1UnarchiveWarehouseFBSRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.unarchiveWarehouseFBSRaw({ clientId: clientId, apiKey: apiKey, v1UnarchiveWarehouseFBSRequest: v1UnarchiveWarehouseFBSRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * + * Список методов доставки склада + */ + warehouseAPIDeliveryMethodListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseAPIDeliveryMethodList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseAPIDeliveryMethodList().'); + } + if (requestParameters['warehouseDeliveryMethodListRequest'] == null) { + throw new runtime.RequiredError('warehouseDeliveryMethodListRequest', 'Required parameter "warehouseDeliveryMethodListRequest" was null or undefined when calling warehouseAPIDeliveryMethodList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/delivery-method/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: WarehouseDeliveryMethodListRequestToJSON(requestParameters['warehouseDeliveryMethodListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => WarehouseDeliveryMethodListResponseFromJSON(jsonValue)); + }); + } + /** + * + * Список методов доставки склада + */ + warehouseAPIDeliveryMethodList(clientId, apiKey, warehouseDeliveryMethodListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIDeliveryMethodListRaw({ clientId: clientId, apiKey: apiKey, warehouseDeliveryMethodListRequest: warehouseDeliveryMethodListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Список методов доставки realFBS-склада + */ + warehouseAPIDeliveryMethodListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseAPIDeliveryMethodListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseAPIDeliveryMethodListV2().'); + } + if (requestParameters['v2DeliveryMethodListV2Request'] == null) { + throw new runtime.RequiredError('v2DeliveryMethodListV2Request', 'Required parameter "v2DeliveryMethodListV2Request" was null or undefined when calling warehouseAPIDeliveryMethodListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/delivery-method/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2DeliveryMethodListV2RequestToJSON(requestParameters['v2DeliveryMethodListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2DeliveryMethodListV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Список методов доставки realFBS-склада + */ + warehouseAPIDeliveryMethodListV2(clientId, apiKey, v2DeliveryMethodListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIDeliveryMethodListV2Raw({ clientId: clientId, apiKey: apiKey, v2DeliveryMethodListV2Request: v2DeliveryMethodListV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). Метод можно использовать 1 раз в минуту. + * Список складов + */ + warehouseAPIWarehouseListRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseAPIWarehouseList().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseAPIWarehouseList().'); + } + if (requestParameters['v1WarehouseListRequest'] == null) { + throw new runtime.RequiredError('v1WarehouseListRequest', 'Required parameter "v1WarehouseListRequest" was null or undefined when calling warehouseAPIWarehouseList().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseListRequestToJSON(requestParameters['v1WarehouseListRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => WarehouseWarehouseListResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). Метод можно использовать 1 раз в минуту. + * Список складов + */ + warehouseAPIWarehouseList(clientId, apiKey, v1WarehouseListRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseAPIWarehouseListRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseListRequest: v1WarehouseListRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Получить список товаров с ограничениями по доставке + */ + warehouseInvalidProductsGetRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseInvalidProductsGet().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseInvalidProductsGet().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/invalid-products/get`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V1WarehouseInvalidProductsGetRequestToJSON(requestParameters['v1WarehouseInvalidProductsGetRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseInvalidProductsGetResponseFromJSON(jsonValue)); + }); + } + /** + * Получить список товаров с ограничениями по доставке + */ + warehouseInvalidProductsGet(clientId, apiKey, v1WarehouseInvalidProductsGetRequest, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseInvalidProductsGetRaw({ clientId: clientId, apiKey: apiKey, v1WarehouseInvalidProductsGetRequest: v1WarehouseInvalidProductsGetRequest }, initOverrides); + return yield response.value(); + }); + } + /** + * Метод возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/warehouse/fbo/list](#operation/SupplyDraftAPI_DraftGetWarehouseFboList). + * Список складов + */ + warehouseListV2Raw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseListV2().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseListV2().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v2/warehouse/list`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: V2WarehouseListV2RequestToJSON(requestParameters['v2WarehouseListV2Request']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V2WarehouseListV2ResponseFromJSON(jsonValue)); + }); + } + /** + * Метод возвращает список складов FBS и rFBS. Чтобы получить список складов FBO, используйте метод [/v1/warehouse/fbo/list](#operation/SupplyDraftAPI_DraftGetWarehouseFboList). + * Список складов + */ + warehouseListV2(clientId, apiKey, v2WarehouseListV2Request, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseListV2Raw({ clientId: clientId, apiKey: apiKey, v2WarehouseListV2Request: v2WarehouseListV2Request }, initOverrides); + return yield response.value(); + }); + } + /** + * Возвращает идентификаторы складов, на которых находятся товары с ограничениями. Такие товары недоступны для доставки со склада. + * Получить список складов с ограниченными для доставки товарами + */ + warehouseWithInvalidProductsRaw(requestParameters, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + if (requestParameters['clientId'] == null) { + throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling warehouseWithInvalidProducts().'); + } + if (requestParameters['apiKey'] == null) { + throw new runtime.RequiredError('apiKey', 'Required parameter "apiKey" was null or undefined when calling warehouseWithInvalidProducts().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (requestParameters['clientId'] != null) { + headerParameters['Client-Id'] = String(requestParameters['clientId']); + } + if (requestParameters['apiKey'] != null) { + headerParameters['Api-Key'] = String(requestParameters['apiKey']); + } + const response = yield this.request({ + path: `/v1/warehouse/warehouses-with-invalid-products`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => V1WarehouseWithInvalidProductsResponseFromJSON(jsonValue)); + }); + } + /** + * Возвращает идентификаторы складов, на которых находятся товары с ограничениями. Такие товары недоступны для доставки со склада. + * Получить список складов с ограниченными для доставки товарами + */ + warehouseWithInvalidProducts(clientId, apiKey, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield this.warehouseWithInvalidProductsRaw({ clientId: clientId, apiKey: apiKey }, initOverrides); + return yield response.value(); + }); + } +} diff --git a/dist/esm/apis/index.d.ts b/dist/esm/apis/index.d.ts new file mode 100644 index 0000000..a2311ef --- /dev/null +++ b/dist/esm/apis/index.d.ts @@ -0,0 +1,57 @@ +export * from './APIkey'; +export * from './AnalyticsAPI'; +export * from './BarcodeAPI'; +export * from './BetaMethod'; +export * from './BrandAPI'; +export * from './CancelReasonAPI'; +export * from './CancellationAPI'; +export * from './CarriageAPI'; +export * from './CategoryAPI'; +export * from './CertificationAPI'; +export * from './ChatAPI'; +export * from './DeliveryAPI'; +export * from './DeliveryFBP'; +export * from './DeliveryFBPDraft'; +export * from './DeliveryFBS'; +export * from './DeliveryrFBS'; +export * from './Digital'; +export * from './DraftDirectFBP'; +export * from './DraftDropOffFBP'; +export * from './DraftPickupFBP'; +export * from './FBO'; +export * from './FBOTransport'; +export * from './FBOWarehouse'; +export * from './FBS'; +export * from './FBSWarehouseSetup'; +export * from './FBSrFBSMarks'; +export * from './FboPostingAPI'; +export * from './FboSupplyRequest'; +export * from './FinanceAPI'; +export * from './Notification'; +export * from './OrderAPI'; +export * from './OrderDirectFBP'; +export * from './OrderDropOffFBP'; +export * from './OrderPickupFBP'; +export * from './Pass'; +export * from './PolygonAPI'; +export * from './Premium'; +export * from './PricesStocksAPI'; +export * from './PricingStrategyAPI'; +export * from './ProductAPI'; +export * from './Promos'; +export * from './PromosBeta'; +export * from './Quants'; +export * from './QuestionsAnswers'; +export * from './RFBSReturnsAPI'; +export * from './RFBSWarehouseSetup'; +export * from './Receipt'; +export * from './ReportAPI'; +export * from './ReturnAPI'; +export * from './ReturnsAPI'; +export * from './ReviewAPI'; +export * from './SellerActions'; +export * from './SellerInfo'; +export * from './SellerRating'; +export * from './SupplierAPI'; +export * from './SupplyOrderAPI'; +export * from './WarehouseAPI'; diff --git a/dist/esm/apis/index.js b/dist/esm/apis/index.js new file mode 100644 index 0000000..772758c --- /dev/null +++ b/dist/esm/apis/index.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './APIkey'; +export * from './AnalyticsAPI'; +export * from './BarcodeAPI'; +export * from './BetaMethod'; +export * from './BrandAPI'; +export * from './CancelReasonAPI'; +export * from './CancellationAPI'; +export * from './CarriageAPI'; +export * from './CategoryAPI'; +export * from './CertificationAPI'; +export * from './ChatAPI'; +export * from './DeliveryAPI'; +export * from './DeliveryFBP'; +export * from './DeliveryFBPDraft'; +export * from './DeliveryFBS'; +export * from './DeliveryrFBS'; +export * from './Digital'; +export * from './DraftDirectFBP'; +export * from './DraftDropOffFBP'; +export * from './DraftPickupFBP'; +export * from './FBO'; +export * from './FBOTransport'; +export * from './FBOWarehouse'; +export * from './FBS'; +export * from './FBSWarehouseSetup'; +export * from './FBSrFBSMarks'; +export * from './FboPostingAPI'; +export * from './FboSupplyRequest'; +export * from './FinanceAPI'; +export * from './Notification'; +export * from './OrderAPI'; +export * from './OrderDirectFBP'; +export * from './OrderDropOffFBP'; +export * from './OrderPickupFBP'; +export * from './Pass'; +export * from './PolygonAPI'; +export * from './Premium'; +export * from './PricesStocksAPI'; +export * from './PricingStrategyAPI'; +export * from './ProductAPI'; +export * from './Promos'; +export * from './PromosBeta'; +export * from './Quants'; +export * from './QuestionsAnswers'; +export * from './RFBSReturnsAPI'; +export * from './RFBSWarehouseSetup'; +export * from './Receipt'; +export * from './ReportAPI'; +export * from './ReturnAPI'; +export * from './ReturnsAPI'; +export * from './ReviewAPI'; +export * from './SellerActions'; +export * from './SellerInfo'; +export * from './SellerRating'; +export * from './SupplierAPI'; +export * from './SupplyOrderAPI'; +export * from './WarehouseAPI'; diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts new file mode 100644 index 0000000..f6e3226 --- /dev/null +++ b/dist/esm/index.d.ts @@ -0,0 +1,3 @@ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; diff --git a/dist/esm/index.js b/dist/esm/index.js new file mode 100644 index 0000000..bebe8bb --- /dev/null +++ b/dist/esm/index.js @@ -0,0 +1,5 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; diff --git a/dist/esm/models/ActionParameter.d.ts b/dist/esm/models/ActionParameter.d.ts new file mode 100644 index 0000000..6545a67 --- /dev/null +++ b/dist/esm/models/ActionParameter.d.ts @@ -0,0 +1,141 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ParameterAutoStopActionReasonEnum } from './ParameterAutoStopActionReasonEnum'; +import type { SellerActionsListRequestStatusEnum } from './SellerActionsListRequestStatusEnum'; +import type { ParameterDiscountLevels } from './ParameterDiscountLevels'; +import type { ActionParameterDiscountTypeEnum } from './ActionParameterDiscountTypeEnum'; +import type { ParameterPickedSegment } from './ParameterPickedSegment'; +import type { SellerActionsListRequestActionTypeEnum } from './SellerActionsListRequestActionTypeEnum'; +import type { ActionParameterVoucherParameter } from './ActionParameterVoucherParameter'; +/** + * Параметры акции. + * @export + * @interface ActionParameter + */ +export interface ActionParameter { + /** + * Список адресов. + * @type {Array} + * @memberof ActionParameter + */ + addresses?: Array; + /** + * + * @type {ParameterAutoStopActionReasonEnum} + * @memberof ActionParameter + */ + auto_stop_action_reason?: ParameterAutoStopActionReasonEnum; + /** + * Бюджет акции. Если бюджет закончится, акция остановится. + * @type {number} + * @memberof ActionParameter + */ + budget?: number; + /** + * Расходы бюджета акции. + * @type {number} + * @memberof ActionParameter + */ + budget_spent?: number; + /** + * Дата и время окончания акции. + * @type {string} + * @memberof ActionParameter + */ + date_end?: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof ActionParameter + */ + date_start?: string; + /** + * Уровни скидки. + * @type {Array} + * @memberof ActionParameter + */ + discount_levels?: Array; + /** + * + * @type {ActionParameterDiscountTypeEnum} + * @memberof ActionParameter + */ + discount_type?: ActionParameterDiscountTypeEnum; + /** + * Размер скидки. Если механика акции «Беспроцентная рассрочка», вернётся период рассрочки. + * @type {number} + * @memberof ActionParameter + */ + discount_value?: number; + /** + * `true`, если акция для юридических лиц. + * + * @type {boolean} + * @memberof ActionParameter + */ + is_legal_entities_segment?: boolean; + /** + * Минимальный процент скидки. + * @type {number} + * @memberof ActionParameter + */ + min_action_percent?: number; + /** + * Сумма заказа, с которой действует скидка. + * @type {number} + * @memberof ActionParameter + */ + min_order_amount?: number; + /** + * Список сегментов аудиторий. + * @type {Array} + * @memberof ActionParameter + */ + picked_segments?: Array; + /** + * + * @type {SellerActionsListRequestStatusEnum} + * @memberof ActionParameter + */ + status?: SellerActionsListRequestStatusEnum; + /** + * Название акции. + * @type {string} + * @memberof ActionParameter + */ + title?: string; + /** + * + * @type {SellerActionsListRequestActionTypeEnum} + * @memberof ActionParameter + */ + type?: SellerActionsListRequestActionTypeEnum; + /** + * + * @type {ActionParameterVoucherParameter} + * @memberof ActionParameter + */ + voucher_parameters?: ActionParameterVoucherParameter; + /** + * Список складов. + * @type {Array} + * @memberof ActionParameter + */ + warehouses?: Array; +} +/** + * Check if a given object implements the ActionParameter interface. + */ +export declare function instanceOfActionParameter(value: object): value is ActionParameter; +export declare function ActionParameterFromJSON(json: any): ActionParameter; +export declare function ActionParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionParameter; +export declare function ActionParameterToJSON(value?: ActionParameter | null): any; diff --git a/dist/esm/models/ActionParameter.js b/dist/esm/models/ActionParameter.js new file mode 100644 index 0000000..41937cb --- /dev/null +++ b/dist/esm/models/ActionParameter.js @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ParameterAutoStopActionReasonEnumFromJSON, ParameterAutoStopActionReasonEnumToJSON, } from './ParameterAutoStopActionReasonEnum'; +import { SellerActionsListRequestStatusEnumFromJSON, SellerActionsListRequestStatusEnumToJSON, } from './SellerActionsListRequestStatusEnum'; +import { ParameterDiscountLevelsFromJSON, ParameterDiscountLevelsToJSON, } from './ParameterDiscountLevels'; +import { ActionParameterDiscountTypeEnumFromJSON, ActionParameterDiscountTypeEnumToJSON, } from './ActionParameterDiscountTypeEnum'; +import { ParameterPickedSegmentFromJSON, ParameterPickedSegmentToJSON, } from './ParameterPickedSegment'; +import { SellerActionsListRequestActionTypeEnumFromJSON, SellerActionsListRequestActionTypeEnumToJSON, } from './SellerActionsListRequestActionTypeEnum'; +import { ActionParameterVoucherParameterFromJSON, ActionParameterVoucherParameterToJSON, } from './ActionParameterVoucherParameter'; +/** + * Check if a given object implements the ActionParameter interface. + */ +export function instanceOfActionParameter(value) { + return true; +} +export function ActionParameterFromJSON(json) { + return ActionParameterFromJSONTyped(json, false); +} +export function ActionParameterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'addresses': json['addresses'] == null ? undefined : json['addresses'], + 'auto_stop_action_reason': json['auto_stop_action_reason'] == null ? undefined : ParameterAutoStopActionReasonEnumFromJSON(json['auto_stop_action_reason']), + 'budget': json['budget'] == null ? undefined : json['budget'], + 'budget_spent': json['budget_spent'] == null ? undefined : json['budget_spent'], + 'date_end': json['date_end'] == null ? undefined : json['date_end'], + 'date_start': json['date_start'] == null ? undefined : json['date_start'], + 'discount_levels': json['discount_levels'] == null ? undefined : (json['discount_levels'].map(ParameterDiscountLevelsFromJSON)), + 'discount_type': json['discount_type'] == null ? undefined : ActionParameterDiscountTypeEnumFromJSON(json['discount_type']), + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + 'is_legal_entities_segment': json['is_legal_entities_segment'] == null ? undefined : json['is_legal_entities_segment'], + 'min_action_percent': json['min_action_percent'] == null ? undefined : json['min_action_percent'], + 'min_order_amount': json['min_order_amount'] == null ? undefined : json['min_order_amount'], + 'picked_segments': json['picked_segments'] == null ? undefined : (json['picked_segments'].map(ParameterPickedSegmentFromJSON)), + 'status': json['status'] == null ? undefined : SellerActionsListRequestStatusEnumFromJSON(json['status']), + 'title': json['title'] == null ? undefined : json['title'], + 'type': json['type'] == null ? undefined : SellerActionsListRequestActionTypeEnumFromJSON(json['type']), + 'voucher_parameters': json['voucher_parameters'] == null ? undefined : ActionParameterVoucherParameterFromJSON(json['voucher_parameters']), + 'warehouses': json['warehouses'] == null ? undefined : json['warehouses'], + }; +} +export function ActionParameterToJSON(value) { + if (value == null) { + return value; + } + return { + 'addresses': value['addresses'], + 'auto_stop_action_reason': ParameterAutoStopActionReasonEnumToJSON(value['auto_stop_action_reason']), + 'budget': value['budget'], + 'budget_spent': value['budget_spent'], + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_levels': value['discount_levels'] == null ? undefined : (value['discount_levels'].map(ParameterDiscountLevelsToJSON)), + 'discount_type': ActionParameterDiscountTypeEnumToJSON(value['discount_type']), + 'discount_value': value['discount_value'], + 'is_legal_entities_segment': value['is_legal_entities_segment'], + 'min_action_percent': value['min_action_percent'], + 'min_order_amount': value['min_order_amount'], + 'picked_segments': value['picked_segments'] == null ? undefined : (value['picked_segments'].map(ParameterPickedSegmentToJSON)), + 'status': SellerActionsListRequestStatusEnumToJSON(value['status']), + 'title': value['title'], + 'type': SellerActionsListRequestActionTypeEnumToJSON(value['type']), + 'voucher_parameters': ActionParameterVoucherParameterToJSON(value['voucher_parameters']), + 'warehouses': value['warehouses'], + }; +} diff --git a/dist/esm/models/ActionParameterDiscountTypeEnum.d.ts b/dist/esm/models/ActionParameterDiscountTypeEnum.d.ts new file mode 100644 index 0000000..53b797f --- /dev/null +++ b/dist/esm/models/ActionParameterDiscountTypeEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `UNSPECIFIED` — не определён; + * - `RUB` — скидка в рублях; + * - `PERCENT` — скидка в процентах; + * - `FINAL_PRICE` — финальная цена; + * - `INSTALLED_PERIOD` — период рассрочки; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export declare const ActionParameterDiscountTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly RUB: "RUB"; + readonly PERCENT: "PERCENT"; + readonly FINAL_PRICE: "FINAL_PRICE"; + readonly INSTALLED_PERIOD: "INSTALLED_PERIOD"; + readonly CURRENCY: "CURRENCY"; +}; +export type ActionParameterDiscountTypeEnum = typeof ActionParameterDiscountTypeEnum[keyof typeof ActionParameterDiscountTypeEnum]; +export declare function instanceOfActionParameterDiscountTypeEnum(value: any): boolean; +export declare function ActionParameterDiscountTypeEnumFromJSON(json: any): ActionParameterDiscountTypeEnum; +export declare function ActionParameterDiscountTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionParameterDiscountTypeEnum; +export declare function ActionParameterDiscountTypeEnumToJSON(value?: ActionParameterDiscountTypeEnum | null): any; diff --git a/dist/esm/models/ActionParameterDiscountTypeEnum.js b/dist/esm/models/ActionParameterDiscountTypeEnum.js new file mode 100644 index 0000000..cd781ad --- /dev/null +++ b/dist/esm/models/ActionParameterDiscountTypeEnum.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `UNSPECIFIED` — не определён; + * - `RUB` — скидка в рублях; + * - `PERCENT` — скидка в процентах; + * - `FINAL_PRICE` — финальная цена; + * - `INSTALLED_PERIOD` — период рассрочки; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export const ActionParameterDiscountTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + RUB: 'RUB', + PERCENT: 'PERCENT', + FINAL_PRICE: 'FINAL_PRICE', + INSTALLED_PERIOD: 'INSTALLED_PERIOD', + CURRENCY: 'CURRENCY' +}; +export function instanceOfActionParameterDiscountTypeEnum(value) { + for (const key in ActionParameterDiscountTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ActionParameterDiscountTypeEnum, key)) { + if (ActionParameterDiscountTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ActionParameterDiscountTypeEnumFromJSON(json) { + return ActionParameterDiscountTypeEnumFromJSONTyped(json, false); +} +export function ActionParameterDiscountTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ActionParameterDiscountTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ActionParameterVoucherParameter.d.ts b/dist/esm/models/ActionParameterVoucherParameter.d.ts new file mode 100644 index 0000000..566884e --- /dev/null +++ b/dist/esm/models/ActionParameterVoucherParameter.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionParameterVoucherParameterTypeEnum } from './ActionParameterVoucherParameterTypeEnum'; +/** + * Параметры промокодов. + * @export + * @interface ActionParameterVoucherParameter + */ +export interface ActionParameterVoucherParameter { + /** + * Коды промокодов. + * @type {number} + * @memberof ActionParameterVoucherParameter + */ + count_codes?: number; + /** + * `true`, если промокод не в открытом доступе. + * + * @type {boolean} + * @memberof ActionParameterVoucherParameter + */ + is_private?: boolean; + /** + * + * @type {ActionParameterVoucherParameterTypeEnum} + * @memberof ActionParameterVoucherParameter + */ + type?: ActionParameterVoucherParameterTypeEnum; +} +/** + * Check if a given object implements the ActionParameterVoucherParameter interface. + */ +export declare function instanceOfActionParameterVoucherParameter(value: object): value is ActionParameterVoucherParameter; +export declare function ActionParameterVoucherParameterFromJSON(json: any): ActionParameterVoucherParameter; +export declare function ActionParameterVoucherParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionParameterVoucherParameter; +export declare function ActionParameterVoucherParameterToJSON(value?: ActionParameterVoucherParameter | null): any; diff --git a/dist/esm/models/ActionParameterVoucherParameter.js b/dist/esm/models/ActionParameterVoucherParameter.js new file mode 100644 index 0000000..b6004be --- /dev/null +++ b/dist/esm/models/ActionParameterVoucherParameter.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ActionParameterVoucherParameterTypeEnumFromJSON, ActionParameterVoucherParameterTypeEnumToJSON, } from './ActionParameterVoucherParameterTypeEnum'; +/** + * Check if a given object implements the ActionParameterVoucherParameter interface. + */ +export function instanceOfActionParameterVoucherParameter(value) { + return true; +} +export function ActionParameterVoucherParameterFromJSON(json) { + return ActionParameterVoucherParameterFromJSONTyped(json, false); +} +export function ActionParameterVoucherParameterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_codes': json['count_codes'] == null ? undefined : json['count_codes'], + 'is_private': json['is_private'] == null ? undefined : json['is_private'], + 'type': json['type'] == null ? undefined : ActionParameterVoucherParameterTypeEnumFromJSON(json['type']), + }; +} +export function ActionParameterVoucherParameterToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_codes': value['count_codes'], + 'is_private': value['is_private'], + 'type': ActionParameterVoucherParameterTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/ActionParameterVoucherParameterTypeEnum.d.ts b/dist/esm/models/ActionParameterVoucherParameterTypeEnum.d.ts new file mode 100644 index 0000000..d1d91eb --- /dev/null +++ b/dist/esm/models/ActionParameterVoucherParameterTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип промокода: + * - `UNSPECIFIED` — не определён; + * - `ONE` — промокод для всех покупателей на 1 заказ; + * - `MULTIPLE` — промокод для всех покупателей на любое количество заказов; + * - `UNIQUE` — промокод для 1 покупателя на 1 заказ. + * + * @export + */ +export declare const ActionParameterVoucherParameterTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ONE: "ONE"; + readonly MULTIPLE: "MULTIPLE"; + readonly UNIQUE: "UNIQUE"; +}; +export type ActionParameterVoucherParameterTypeEnum = typeof ActionParameterVoucherParameterTypeEnum[keyof typeof ActionParameterVoucherParameterTypeEnum]; +export declare function instanceOfActionParameterVoucherParameterTypeEnum(value: any): boolean; +export declare function ActionParameterVoucherParameterTypeEnumFromJSON(json: any): ActionParameterVoucherParameterTypeEnum; +export declare function ActionParameterVoucherParameterTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionParameterVoucherParameterTypeEnum; +export declare function ActionParameterVoucherParameterTypeEnumToJSON(value?: ActionParameterVoucherParameterTypeEnum | null): any; diff --git a/dist/esm/models/ActionParameterVoucherParameterTypeEnum.js b/dist/esm/models/ActionParameterVoucherParameterTypeEnum.js new file mode 100644 index 0000000..a601388 --- /dev/null +++ b/dist/esm/models/ActionParameterVoucherParameterTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип промокода: + * - `UNSPECIFIED` — не определён; + * - `ONE` — промокод для всех покупателей на 1 заказ; + * - `MULTIPLE` — промокод для всех покупателей на любое количество заказов; + * - `UNIQUE` — промокод для 1 покупателя на 1 заказ. + * + * @export + */ +export const ActionParameterVoucherParameterTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ONE: 'ONE', + MULTIPLE: 'MULTIPLE', + UNIQUE: 'UNIQUE' +}; +export function instanceOfActionParameterVoucherParameterTypeEnum(value) { + for (const key in ActionParameterVoucherParameterTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ActionParameterVoucherParameterTypeEnum, key)) { + if (ActionParameterVoucherParameterTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ActionParameterVoucherParameterTypeEnumFromJSON(json) { + return ActionParameterVoucherParameterTypeEnumFromJSONTyped(json, false); +} +export function ActionParameterVoucherParameterTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ActionParameterVoucherParameterTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.d.ts new file mode 100644 index 0000000..15d35b9 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsCandidatesRequest + */ +export interface ActionsV1ActionsAutoAddProductsCandidatesRequest { + /** + * Идентификатор акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesRequest + */ + action_id: number; + /** + * Дата и время автодобавления товаров в акцию из параметра `result.auto_add_dates` в ответе метода [/v1/actions](#operation/Promos). + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesRequest + */ + auto_add_date: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, ответ начнётся с 11-го найденного элемента. + * + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesRequest + */ + offset?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesRequest interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsCandidatesRequest(value: object): value is ActionsV1ActionsAutoAddProductsCandidatesRequest; +export declare function ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSON(json: any): ActionsV1ActionsAutoAddProductsCandidatesRequest; +export declare function ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsCandidatesRequest; +export declare function ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON(value?: ActionsV1ActionsAutoAddProductsCandidatesRequest | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.js new file mode 100644 index 0000000..cd88b37 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesRequest interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsCandidatesRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('auto_add_date' in value) || value['auto_add_date'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSON(json) { + return ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'auto_add_date': json['auto_add_date'], + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'auto_add_date': value['auto_add_date'], + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.d.ts new file mode 100644 index 0000000..27cf0e3 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsCandidatesResponseProducts } from './ActionsV1ActionsAutoAddProductsCandidatesResponseProducts'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsCandidatesResponse + */ +export interface ActionsV1ActionsAutoAddProductsCandidatesResponse { + /** + * Список доступных товаров для автодобавления. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponse + */ + products?: Array; + /** + * Общее количество товаров. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponse + */ + total?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesResponse interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsCandidatesResponse(value: object): value is ActionsV1ActionsAutoAddProductsCandidatesResponse; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON(json: any): ActionsV1ActionsAutoAddProductsCandidatesResponse; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsCandidatesResponse; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseToJSON(value?: ActionsV1ActionsAutoAddProductsCandidatesResponse | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.js new file mode 100644 index 0000000..f44ac50 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON, ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON, } from './ActionsV1ActionsAutoAddProductsCandidatesResponseProducts'; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesResponse interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsCandidatesResponse(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON(json) { + return ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function ActionsV1ActionsAutoAddProductsCandidatesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.d.ts new file mode 100644 index 0000000..909486c --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.d.ts @@ -0,0 +1,103 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ +export interface ActionsV1ActionsAutoAddProductsCandidatesResponseProducts { + /** + * Цена товара по акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + action_price_to_auto_add?: number; + /** + * Цена товара до скидки. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + base_price?: number; + /** + * Валюта цен. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + currency?: string; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + marketplace_seller_price?: number; + /** + * Максимальная цена товара для автодобавления в акцию. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + max_discount_price?: number; + /** + * Минимальное число единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + min_action_quantity?: number; + /** + * Минимальная цена товара после применения акций. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + min_seller_price?: number; + /** + * Название товара. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + offer_id?: string; + /** + * Цена товара без скидки. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + product_id?: number; + /** + * Количество товара в акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + quantity_to_auto_add?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + sku?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesResponseProducts interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsCandidatesResponseProducts(value: object): value is ActionsV1ActionsAutoAddProductsCandidatesResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON(json: any): ActionsV1ActionsAutoAddProductsCandidatesResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsCandidatesResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON(value?: ActionsV1ActionsAutoAddProductsCandidatesResponseProducts | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.js new file mode 100644 index 0000000..266301f --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesResponseProducts interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsCandidatesResponseProducts(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON(json) { + return ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price_to_auto_add': json['action_price_to_auto_add'] == null ? undefined : json['action_price_to_auto_add'], + 'base_price': json['base_price'] == null ? undefined : json['base_price'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'marketplace_seller_price': json['marketplace_seller_price'] == null ? undefined : json['marketplace_seller_price'], + 'max_discount_price': json['max_discount_price'] == null ? undefined : json['max_discount_price'], + 'min_action_quantity': json['min_action_quantity'] == null ? undefined : json['min_action_quantity'], + 'min_seller_price': json['min_seller_price'] == null ? undefined : json['min_seller_price'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity_to_auto_add': json['quantity_to_auto_add'] == null ? undefined : json['quantity_to_auto_add'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price_to_auto_add': value['action_price_to_auto_add'], + 'base_price': value['base_price'], + 'currency': value['currency'], + 'marketplace_seller_price': value['marketplace_seller_price'], + 'max_discount_price': value['max_discount_price'], + 'min_action_quantity': value['min_action_quantity'], + 'min_seller_price': value['min_seller_price'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity_to_auto_add': value['quantity_to_auto_add'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteRequest.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteRequest.d.ts new file mode 100644 index 0000000..6f162d2 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsDeleteRequest + */ +export interface ActionsV1ActionsAutoAddProductsDeleteRequest { + /** + * Идентификатор акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsDeleteRequest + */ + action_id?: number; + /** + * Дата и время автодобавления товаров в акцию из параметра `result.auto_add_dates` в ответе метода [/v1/actions](#operation/Promos). + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsDeleteRequest + */ + auto_add_date?: string; + /** + * Идентификаторы товаров в системе Ozon — `product_id`. + * + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsDeleteRequest + */ + product_ids?: Array; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsDeleteRequest interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsDeleteRequest(value: object): value is ActionsV1ActionsAutoAddProductsDeleteRequest; +export declare function ActionsV1ActionsAutoAddProductsDeleteRequestFromJSON(json: any): ActionsV1ActionsAutoAddProductsDeleteRequest; +export declare function ActionsV1ActionsAutoAddProductsDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsDeleteRequest; +export declare function ActionsV1ActionsAutoAddProductsDeleteRequestToJSON(value?: ActionsV1ActionsAutoAddProductsDeleteRequest | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteRequest.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteRequest.js new file mode 100644 index 0000000..a5da2e2 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsDeleteRequest interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsDeleteRequest(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsDeleteRequestFromJSON(json) { + return ActionsV1ActionsAutoAddProductsDeleteRequestFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'auto_add_date': json['auto_add_date'] == null ? undefined : json['auto_add_date'], + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + }; +} +export function ActionsV1ActionsAutoAddProductsDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'auto_add_date': value['auto_add_date'], + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteResponse.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteResponse.d.ts new file mode 100644 index 0000000..f16dd3f --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsDeleteResponse + */ +export interface ActionsV1ActionsAutoAddProductsDeleteResponse { + /** + * Идентификаторы товаров, которые удалены из автодобавления. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsDeleteResponse + */ + product_ids?: Array; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsDeleteResponse interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsDeleteResponse(value: object): value is ActionsV1ActionsAutoAddProductsDeleteResponse; +export declare function ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON(json: any): ActionsV1ActionsAutoAddProductsDeleteResponse; +export declare function ActionsV1ActionsAutoAddProductsDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsDeleteResponse; +export declare function ActionsV1ActionsAutoAddProductsDeleteResponseToJSON(value?: ActionsV1ActionsAutoAddProductsDeleteResponse | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteResponse.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteResponse.js new file mode 100644 index 0000000..1116a92 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsDeleteResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsDeleteResponse interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsDeleteResponse(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON(json) { + return ActionsV1ActionsAutoAddProductsDeleteResponseFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + }; +} +export function ActionsV1ActionsAutoAddProductsDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsListRequest.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsListRequest.d.ts new file mode 100644 index 0000000..2179457 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsListRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsListRequest + */ +export interface ActionsV1ActionsAutoAddProductsListRequest { + /** + * Идентификатор акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListRequest + */ + action_id: number; + /** + * Дата и время автодобавления товаров в акцию из параметра `result.auto_add_dates` в ответе метода [/v1/actions](#operation/Promos). + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListRequest + */ + auto_add_date: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, ответ начнётся с 11-го найденного элемента. + * + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListRequest + */ + offset?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListRequest interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsListRequest(value: object): value is ActionsV1ActionsAutoAddProductsListRequest; +export declare function ActionsV1ActionsAutoAddProductsListRequestFromJSON(json: any): ActionsV1ActionsAutoAddProductsListRequest; +export declare function ActionsV1ActionsAutoAddProductsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsListRequest; +export declare function ActionsV1ActionsAutoAddProductsListRequestToJSON(value?: ActionsV1ActionsAutoAddProductsListRequest | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsListRequest.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsListRequest.js new file mode 100644 index 0000000..412f4ba --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsListRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListRequest interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsListRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('auto_add_date' in value) || value['auto_add_date'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function ActionsV1ActionsAutoAddProductsListRequestFromJSON(json) { + return ActionsV1ActionsAutoAddProductsListRequestFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'auto_add_date': json['auto_add_date'], + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function ActionsV1ActionsAutoAddProductsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'auto_add_date': value['auto_add_date'], + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponse.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponse.d.ts new file mode 100644 index 0000000..425d60c --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsListResponseProducts } from './ActionsV1ActionsAutoAddProductsListResponseProducts'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsListResponse + */ +export interface ActionsV1ActionsAutoAddProductsListResponse { + /** + * Список товаров с автодобавлением. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsListResponse + */ + products?: Array; + /** + * Общее количество товаров. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponse + */ + total?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListResponse interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsListResponse(value: object): value is ActionsV1ActionsAutoAddProductsListResponse; +export declare function ActionsV1ActionsAutoAddProductsListResponseFromJSON(json: any): ActionsV1ActionsAutoAddProductsListResponse; +export declare function ActionsV1ActionsAutoAddProductsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsListResponse; +export declare function ActionsV1ActionsAutoAddProductsListResponseToJSON(value?: ActionsV1ActionsAutoAddProductsListResponse | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponse.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponse.js new file mode 100644 index 0000000..c3e8dfc --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON, ActionsV1ActionsAutoAddProductsListResponseProductsToJSON, } from './ActionsV1ActionsAutoAddProductsListResponseProducts'; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListResponse interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsListResponse(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsListResponseFromJSON(json) { + return ActionsV1ActionsAutoAddProductsListResponseFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function ActionsV1ActionsAutoAddProductsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(ActionsV1ActionsAutoAddProductsListResponseProductsToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponseProducts.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponseProducts.d.ts new file mode 100644 index 0000000..c062642 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponseProducts.d.ts @@ -0,0 +1,107 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsListResponseProducts + */ +export interface ActionsV1ActionsAutoAddProductsListResponseProducts { + /** + * Цена товара по акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + action_price_to_auto_add?: number; + /** + * Тип добавления товара в акцию: + * - `AUTO` — автоматически; + * - `MANUAL` — вручную продавцом. + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + add_mode?: string; + /** + * Валюта цен. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + currency?: string; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + marketplace_seller_price?: number; + /** + * Максимальная цена товара для автодобавления в акцию. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + max_discount_price?: number; + /** + * Минимальное число единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + min_action_quantity?: number; + /** + * Минимальная цена товара после применения акций. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + min_seller_price?: number; + /** + * Название товара. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + offer_id?: string; + /** + * Цена товара без скидки. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + product_id?: number; + /** + * Количество товара в акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + quantity_to_auto_add?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + sku?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListResponseProducts interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsListResponseProducts(value: object): value is ActionsV1ActionsAutoAddProductsListResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON(json: any): ActionsV1ActionsAutoAddProductsListResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsListResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsListResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsListResponseProductsToJSON(value?: ActionsV1ActionsAutoAddProductsListResponseProducts | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponseProducts.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponseProducts.js new file mode 100644 index 0000000..9843f01 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsListResponseProducts.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListResponseProducts interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsListResponseProducts(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON(json) { + return ActionsV1ActionsAutoAddProductsListResponseProductsFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsListResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price_to_auto_add': json['action_price_to_auto_add'] == null ? undefined : json['action_price_to_auto_add'], + 'add_mode': json['add_mode'] == null ? undefined : json['add_mode'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'marketplace_seller_price': json['marketplace_seller_price'] == null ? undefined : json['marketplace_seller_price'], + 'max_discount_price': json['max_discount_price'] == null ? undefined : json['max_discount_price'], + 'min_action_quantity': json['min_action_quantity'] == null ? undefined : json['min_action_quantity'], + 'min_seller_price': json['min_seller_price'] == null ? undefined : json['min_seller_price'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity_to_auto_add': json['quantity_to_auto_add'] == null ? undefined : json['quantity_to_auto_add'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function ActionsV1ActionsAutoAddProductsListResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price_to_auto_add': value['action_price_to_auto_add'], + 'add_mode': value['add_mode'], + 'currency': value['currency'], + 'marketplace_seller_price': value['marketplace_seller_price'], + 'max_discount_price': value['max_discount_price'], + 'min_action_quantity': value['min_action_quantity'], + 'min_seller_price': value['min_seller_price'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity_to_auto_add': value['quantity_to_auto_add'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequest.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequest.d.ts new file mode 100644 index 0000000..f7f4118 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate } from './ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateRequest + */ +export interface ActionsV1ActionsAutoAddProductsUpdateRequest { + /** + * Идентификатор акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequest + */ + action_id?: number; + /** + * Дата и время автодобавления товаров в акцию из параметра `result.auto_add_dates` в ответе метода [/v1/actions](#operation/Promos). + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequest + */ + auto_add_date?: string; + /** + * Список товаров, которые нужно добавить или обновить в автодобавлении. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequest + */ + to_update?: Array; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateRequest interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateRequest(value: object): value is ActionsV1ActionsAutoAddProductsUpdateRequest; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateRequest; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateRequest; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateRequest | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequest.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequest.js new file mode 100644 index 0000000..2232c8f --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequest.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON, ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON, } from './ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate'; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateRequest interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsUpdateRequest(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsUpdateRequestFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateRequestFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'auto_add_date': json['auto_add_date'] == null ? undefined : json['auto_add_date'], + 'to_update': json['to_update'] == null ? undefined : (json['to_update'].map(ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON)), + }; +} +export function ActionsV1ActionsAutoAddProductsUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'auto_add_date': value['auto_add_date'], + 'to_update': value['to_update'] == null ? undefined : (value['to_update'].map(ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON)), + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.d.ts new file mode 100644 index 0000000..d9c3572 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ +export interface ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate { + /** + * Цена товара по акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ + action_price?: number; + /** + * Валюта цены. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ + currency?: string; + /** + * Идентификатор товара, который нужно добавить или обновить. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ + product_id?: number; + /** + * Количество товаров в акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ + quantity?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateRequestToUpdate(value: object): value is ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.js new file mode 100644 index 0000000..0cfde1b --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsUpdateRequestToUpdate(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price': json['action_price'] == null ? undefined : json['action_price'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + }; +} +export function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price': value['action_price'], + 'currency': value['currency'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponse.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponse.d.ts new file mode 100644 index 0000000..ef65414 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponse.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsUpdateResponseRejected } from './ActionsV1ActionsAutoAddProductsUpdateResponseRejected'; +import type { ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice } from './ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice'; +import type { ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice } from './ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice'; +import type { ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice } from './ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponse + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponse { + /** + * Список товаров с ценой ниже минимальной. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + below_min_price?: Array; + /** + * Список товаров со скидкой больше 70%. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + extremely_low_price?: Array; + /** + * Список товаров, которые не прошли валидацию по цене. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + failed_price?: Array; + /** + * Идентификаторы товаров, которые не получилось добавить или обновить. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + rejected?: Array; + /** + * Идентификаторы товаров, которые получилось добавить или обновить. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + updated_ids?: Array; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponse interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponse(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponse; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponse; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponse; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponse | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponse.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponse.js new file mode 100644 index 0000000..f21c762 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponse.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON, ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON, } from './ActionsV1ActionsAutoAddProductsUpdateResponseRejected'; +import { ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON, ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON, } from './ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice'; +import { ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON, ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON, } from './ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice'; +import { ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON, ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON, } from './ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice'; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponse interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsUpdateResponse(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'below_min_price': json['below_min_price'] == null ? undefined : (json['below_min_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON)), + 'extremely_low_price': json['extremely_low_price'] == null ? undefined : (json['extremely_low_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON)), + 'failed_price': json['failed_price'] == null ? undefined : (json['failed_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON)), + 'rejected': json['rejected'] == null ? undefined : (json['rejected'].map(ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON)), + 'updated_ids': json['updated_ids'] == null ? undefined : json['updated_ids'], + }; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'below_min_price': value['below_min_price'] == null ? undefined : (value['below_min_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON)), + 'extremely_low_price': value['extremely_low_price'] == null ? undefined : (value['extremely_low_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON)), + 'failed_price': value['failed_price'] == null ? undefined : (value['failed_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON)), + 'rejected': value['rejected'] == null ? undefined : (value['rejected'].map(ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON)), + 'updated_ids': value['updated_ids'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.d.ts new file mode 100644 index 0000000..020afee --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice + */ + key?: number; + /** + * Цена товара. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice + */ + value?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.js new file mode 100644 index 0000000..f573e7e --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.d.ts new file mode 100644 index 0000000..5c71e9b --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice + */ + key?: number; + /** + * Цена товара. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice + */ + value?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.js new file mode 100644 index 0000000..a3431da --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.d.ts new file mode 100644 index 0000000..0b25117 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice + */ + key?: number; + /** + * Значение проблемной цены: + * - Если цена товара больше `max_discount_price` — значение параметра `max_discount_price`; + * - Если скидка на товар больше 95% — цена со скидкой 95%. + * + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice + */ + value?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.js new file mode 100644 index 0000000..80f4531 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.d.ts new file mode 100644 index 0000000..45ea26e --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum } from './ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponseRejected + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponseRejected { + /** + * + * @type {ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseRejected + */ + code?: ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseRejected + */ + product_id?: number; + /** + * Причина, по которой не получилось добавить или обновить товар. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseRejected + */ + reason?: string; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseRejected interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejected(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponseRejected; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseRejected; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseRejected; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseRejected | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.js new file mode 100644 index 0000000..928166c --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON, ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON, } from './ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum'; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseRejected interface. + */ +export function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejected(value) { + return true; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON(json['code']), + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON(value['code']), + 'product_id': value['product_id'], + 'reason': value['reason'], + }; +} diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.d.ts b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.d.ts new file mode 100644 index 0000000..493c39b --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Код ошибки: + * - `NOT_FOUND` — товар не найден; + * - `NO_CHANGES` — нет изменений; + * - `STOCK_REQUIRED` — остатков товара не хватит для акции; + * - `INVALID_ACTION_PRICE` — некорректная цена по акции; + * - `MAX_ACTION_PRICE` — цена по акции выше максимальной; + * - `REJECTED_LOW_PRICE` — цена по акции ниже минимальной; + * - `INVALID_CURRENCY` — некорректная валюта. + * + * @export + */ +export declare const ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum: { + readonly NOT_FOUND: "NOT_FOUND"; + readonly NO_CHANGES: "NO_CHANGES"; + readonly STOCK_REQUIRED: "STOCK_REQUIRED"; + readonly INVALID_ACTION_PRICE: "INVALID_ACTION_PRICE"; + readonly MAX_ACTION_PRICE: "MAX_ACTION_PRICE"; + readonly REJECTED_LOW_PRICE: "REJECTED_LOW_PRICE"; + readonly INVALID_CURRENCY: "INVALID_CURRENCY"; +}; +export type ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum = typeof ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum[keyof typeof ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum]; +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum(value: any): boolean; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum | null): any; diff --git a/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.js b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.js new file mode 100644 index 0000000..3b103a3 --- /dev/null +++ b/dist/esm/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Код ошибки: + * - `NOT_FOUND` — товар не найден; + * - `NO_CHANGES` — нет изменений; + * - `STOCK_REQUIRED` — остатков товара не хватит для акции; + * - `INVALID_ACTION_PRICE` — некорректная цена по акции; + * - `MAX_ACTION_PRICE` — цена по акции выше максимальной; + * - `REJECTED_LOW_PRICE` — цена по акции ниже минимальной; + * - `INVALID_CURRENCY` — некорректная валюта. + * + * @export + */ +export const ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum = { + NOT_FOUND: 'NOT_FOUND', + NO_CHANGES: 'NO_CHANGES', + STOCK_REQUIRED: 'STOCK_REQUIRED', + INVALID_ACTION_PRICE: 'INVALID_ACTION_PRICE', + MAX_ACTION_PRICE: 'MAX_ACTION_PRICE', + REJECTED_LOW_PRICE: 'REJECTED_LOW_PRICE', + INVALID_CURRENCY: 'INVALID_CURRENCY' +}; +export function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum(value) { + for (const key in ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum) { + if (Object.prototype.hasOwnProperty.call(ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum, key)) { + if (ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSONTyped(json, false); +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/AddStrategyItemsResponseError.d.ts b/dist/esm/models/AddStrategyItemsResponseError.d.ts new file mode 100644 index 0000000..dcc8067 --- /dev/null +++ b/dist/esm/models/AddStrategyItemsResponseError.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AddStrategyItemsResponseError + */ +export interface AddStrategyItemsResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof AddStrategyItemsResponseError + */ + code?: string; + /** + * Текст ошибки. + * @type {string} + * @memberof AddStrategyItemsResponseError + */ + error?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof AddStrategyItemsResponseError + */ + product_id?: number; +} +/** + * Check if a given object implements the AddStrategyItemsResponseError interface. + */ +export declare function instanceOfAddStrategyItemsResponseError(value: object): value is AddStrategyItemsResponseError; +export declare function AddStrategyItemsResponseErrorFromJSON(json: any): AddStrategyItemsResponseError; +export declare function AddStrategyItemsResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddStrategyItemsResponseError; +export declare function AddStrategyItemsResponseErrorToJSON(value?: AddStrategyItemsResponseError | null): any; diff --git a/dist/esm/models/AddStrategyItemsResponseError.js b/dist/esm/models/AddStrategyItemsResponseError.js new file mode 100644 index 0000000..847651b --- /dev/null +++ b/dist/esm/models/AddStrategyItemsResponseError.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the AddStrategyItemsResponseError interface. + */ +export function instanceOfAddStrategyItemsResponseError(value) { + return true; +} +export function AddStrategyItemsResponseErrorFromJSON(json) { + return AddStrategyItemsResponseErrorFromJSONTyped(json, false); +} +export function AddStrategyItemsResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'error': json['error'] == null ? undefined : json['error'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +export function AddStrategyItemsResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'error': value['error'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/AnalyticsAnalyticsGetDataRequest.d.ts b/dist/esm/models/AnalyticsAnalyticsGetDataRequest.d.ts new file mode 100644 index 0000000..8e24c2a --- /dev/null +++ b/dist/esm/models/AnalyticsAnalyticsGetDataRequest.d.ts @@ -0,0 +1,125 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsFilter } from './AnalyticsFilter'; +import type { SellerServiceanalyticsDimension } from './SellerServiceanalyticsDimension'; +import type { AnalyticsSorting } from './AnalyticsSorting'; +/** + * + * @export + * @interface AnalyticsAnalyticsGetDataRequest + */ +export interface AnalyticsAnalyticsGetDataRequest { + /** + * Дата, с которой будут данные в отчёте. + * + * Если у вас нет Premium-подписки, укажите дату в пределах последних трёх месяцев. + * + * @type {string} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + date_from: string; + /** + * Дата, по которую будут данные в отчёте. + * @type {string} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + date_to: string; + /** + * Группировка данных в отчёте. + * + * Способы группировки, доступные всем продавцам: + * - `unknownDimension` — неизвестное измерение; + * - `sku` — идентификатор товара; + * - `spu` — идентификатор товара — объединённая карточка; + * - `day` — день; + * - `week` — неделя; + * - `month` — месяц. + * + * Способы группировки, доступные только продавцам с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): + * - `year` — год; + * - `category1` — категория первого уровня; + * - `category2` — категория второго уровня; + * - `brand` — бренд; + * - `modelID` — модель; + * - `descriptionType` — тип товара. + * + * @type {Array} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + dimension: Array; + /** + * Фильтры. + * @type {Array} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + filters?: Array; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + limit: number; + /** + * Укажите до 14 метрик. Если их будет больше, вы получите ошибку с кодом `InvalidArgument`. + * + * Список метриĸ, по ĸоторым будет сформирован отчёт. + * + * Метрики, доступные всем продавцам: + * - `revenue` — заказано на сумму, + * - `ordered_units` — заказано товаров. + * + * Метрики, доступные только продавцам с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): + * - `unknown_metric` — неизвестная метрика. + * - `hits_view_search` — показы в поиске и в категории. + * - `hits_view_pdp` — показы на карточке товара. + * - `hits_view` — всего показов. + * - `hits_tocart_search` — в корзину из поиска или категории. + * - `hits_tocart_pdp` — в корзину из карточки товара. + * - `hits_tocart` — всего добавлено в корзину. + * - `session_view_search` — сессии с показом в поиске или в каталоге. Считаются уникальные посетители с просмотром в поиске или каталоге. + * - `session_view_pdp` — сессии с показом на карточке товара. Считаются уникальные посетители, которые просмотрели карточку товара. + * - `session_view` — всего сессий. Считаются уникальные посетители. + * - `conv_tocart_search` — конверсия в корзину из поиска или категории. + * - `conv_tocart_pdp` — конверсия в корзину из карточки товара. + * - `conv_tocart` — общая конверсия в корзину. + * - `returns` — возвращено товаров. + * - `cancellations` — отменено товаров. + * - `delivered_units` — доставлено товаров. + * - `position_category` — позиция в поиске и категории. + * + * @type {Array} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + metrics: Array; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + offset?: number; + /** + * Настройки сортировки отчёта. + * @type {Array} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + sort?: Array; +} +/** + * Check if a given object implements the AnalyticsAnalyticsGetDataRequest interface. + */ +export declare function instanceOfAnalyticsAnalyticsGetDataRequest(value: object): value is AnalyticsAnalyticsGetDataRequest; +export declare function AnalyticsAnalyticsGetDataRequestFromJSON(json: any): AnalyticsAnalyticsGetDataRequest; +export declare function AnalyticsAnalyticsGetDataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsAnalyticsGetDataRequest; +export declare function AnalyticsAnalyticsGetDataRequestToJSON(value?: AnalyticsAnalyticsGetDataRequest | null): any; diff --git a/dist/esm/models/AnalyticsAnalyticsGetDataRequest.js b/dist/esm/models/AnalyticsAnalyticsGetDataRequest.js new file mode 100644 index 0000000..8d170d1 --- /dev/null +++ b/dist/esm/models/AnalyticsAnalyticsGetDataRequest.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsFilterFromJSON, AnalyticsFilterToJSON, } from './AnalyticsFilter'; +import { SellerServiceanalyticsDimensionFromJSON, SellerServiceanalyticsDimensionToJSON, } from './SellerServiceanalyticsDimension'; +import { AnalyticsSortingFromJSON, AnalyticsSortingToJSON, } from './AnalyticsSorting'; +/** + * Check if a given object implements the AnalyticsAnalyticsGetDataRequest interface. + */ +export function instanceOfAnalyticsAnalyticsGetDataRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('dimension' in value) || value['dimension'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('metrics' in value) || value['metrics'] === undefined) + return false; + return true; +} +export function AnalyticsAnalyticsGetDataRequestFromJSON(json) { + return AnalyticsAnalyticsGetDataRequestFromJSONTyped(json, false); +} +export function AnalyticsAnalyticsGetDataRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'dimension': (json['dimension'].map(SellerServiceanalyticsDimensionFromJSON)), + 'filters': json['filters'] == null ? undefined : (json['filters'].map(AnalyticsFilterFromJSON)), + 'limit': json['limit'], + 'metrics': json['metrics'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'sort': json['sort'] == null ? undefined : (json['sort'].map(AnalyticsSortingFromJSON)), + }; +} +export function AnalyticsAnalyticsGetDataRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'dimension': (value['dimension'].map(SellerServiceanalyticsDimensionToJSON)), + 'filters': value['filters'] == null ? undefined : (value['filters'].map(AnalyticsFilterToJSON)), + 'limit': value['limit'], + 'metrics': value['metrics'], + 'offset': value['offset'], + 'sort': value['sort'] == null ? undefined : (value['sort'].map(AnalyticsSortingToJSON)), + }; +} diff --git a/dist/esm/models/AnalyticsAnalyticsGetDataResponse.d.ts b/dist/esm/models/AnalyticsAnalyticsGetDataResponse.d.ts new file mode 100644 index 0000000..a38e5ad --- /dev/null +++ b/dist/esm/models/AnalyticsAnalyticsGetDataResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsGetDataResponseResult } from './AnalyticsGetDataResponseResult'; +/** + * + * @export + * @interface AnalyticsAnalyticsGetDataResponse + */ +export interface AnalyticsAnalyticsGetDataResponse { + /** + * + * @type {AnalyticsGetDataResponseResult} + * @memberof AnalyticsAnalyticsGetDataResponse + */ + result?: AnalyticsGetDataResponseResult; + /** + * Время создания отчёта. + * @type {string} + * @memberof AnalyticsAnalyticsGetDataResponse + */ + timestamp?: string; +} +/** + * Check if a given object implements the AnalyticsAnalyticsGetDataResponse interface. + */ +export declare function instanceOfAnalyticsAnalyticsGetDataResponse(value: object): value is AnalyticsAnalyticsGetDataResponse; +export declare function AnalyticsAnalyticsGetDataResponseFromJSON(json: any): AnalyticsAnalyticsGetDataResponse; +export declare function AnalyticsAnalyticsGetDataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsAnalyticsGetDataResponse; +export declare function AnalyticsAnalyticsGetDataResponseToJSON(value?: AnalyticsAnalyticsGetDataResponse | null): any; diff --git a/dist/esm/models/AnalyticsAnalyticsGetDataResponse.js b/dist/esm/models/AnalyticsAnalyticsGetDataResponse.js new file mode 100644 index 0000000..0a6cbf8 --- /dev/null +++ b/dist/esm/models/AnalyticsAnalyticsGetDataResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsGetDataResponseResultFromJSON, AnalyticsGetDataResponseResultToJSON, } from './AnalyticsGetDataResponseResult'; +/** + * Check if a given object implements the AnalyticsAnalyticsGetDataResponse interface. + */ +export function instanceOfAnalyticsAnalyticsGetDataResponse(value) { + return true; +} +export function AnalyticsAnalyticsGetDataResponseFromJSON(json) { + return AnalyticsAnalyticsGetDataResponseFromJSONTyped(json, false); +} +export function AnalyticsAnalyticsGetDataResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : AnalyticsGetDataResponseResultFromJSON(json['result']), + 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'], + }; +} +export function AnalyticsAnalyticsGetDataResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': AnalyticsGetDataResponseResultToJSON(value['result']), + 'timestamp': value['timestamp'], + }; +} diff --git a/dist/esm/models/AnalyticsDataRow.d.ts b/dist/esm/models/AnalyticsDataRow.d.ts new file mode 100644 index 0000000..e114e90 --- /dev/null +++ b/dist/esm/models/AnalyticsDataRow.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsDataRowDimension } from './AnalyticsDataRowDimension'; +/** + * + * @export + * @interface AnalyticsDataRow + */ +export interface AnalyticsDataRow { + /** + * Группировка данных в отчёте. + * @type {Array} + * @memberof AnalyticsDataRow + */ + dimensions?: Array; + /** + * Список значений метрики. + * @type {Array} + * @memberof AnalyticsDataRow + */ + metrics?: Array; +} +/** + * Check if a given object implements the AnalyticsDataRow interface. + */ +export declare function instanceOfAnalyticsDataRow(value: object): value is AnalyticsDataRow; +export declare function AnalyticsDataRowFromJSON(json: any): AnalyticsDataRow; +export declare function AnalyticsDataRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsDataRow; +export declare function AnalyticsDataRowToJSON(value?: AnalyticsDataRow | null): any; diff --git a/dist/esm/models/AnalyticsDataRow.js b/dist/esm/models/AnalyticsDataRow.js new file mode 100644 index 0000000..e8f1a41 --- /dev/null +++ b/dist/esm/models/AnalyticsDataRow.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsDataRowDimensionFromJSON, AnalyticsDataRowDimensionToJSON, } from './AnalyticsDataRowDimension'; +/** + * Check if a given object implements the AnalyticsDataRow interface. + */ +export function instanceOfAnalyticsDataRow(value) { + return true; +} +export function AnalyticsDataRowFromJSON(json) { + return AnalyticsDataRowFromJSONTyped(json, false); +} +export function AnalyticsDataRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dimensions': json['dimensions'] == null ? undefined : (json['dimensions'].map(AnalyticsDataRowDimensionFromJSON)), + 'metrics': json['metrics'] == null ? undefined : json['metrics'], + }; +} +export function AnalyticsDataRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'dimensions': value['dimensions'] == null ? undefined : (value['dimensions'].map(AnalyticsDataRowDimensionToJSON)), + 'metrics': value['metrics'], + }; +} diff --git a/dist/esm/models/AnalyticsDataRowDimension.d.ts b/dist/esm/models/AnalyticsDataRowDimension.d.ts new file mode 100644 index 0000000..373264d --- /dev/null +++ b/dist/esm/models/AnalyticsDataRowDimension.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsDataRowDimension + */ +export interface AnalyticsDataRowDimension { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {string} + * @memberof AnalyticsDataRowDimension + */ + id?: string; + /** + * Наименование. + * @type {string} + * @memberof AnalyticsDataRowDimension + */ + name?: string; +} +/** + * Check if a given object implements the AnalyticsDataRowDimension interface. + */ +export declare function instanceOfAnalyticsDataRowDimension(value: object): value is AnalyticsDataRowDimension; +export declare function AnalyticsDataRowDimensionFromJSON(json: any): AnalyticsDataRowDimension; +export declare function AnalyticsDataRowDimensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsDataRowDimension; +export declare function AnalyticsDataRowDimensionToJSON(value?: AnalyticsDataRowDimension | null): any; diff --git a/dist/esm/models/AnalyticsDataRowDimension.js b/dist/esm/models/AnalyticsDataRowDimension.js new file mode 100644 index 0000000..8fab388 --- /dev/null +++ b/dist/esm/models/AnalyticsDataRowDimension.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the AnalyticsDataRowDimension interface. + */ +export function instanceOfAnalyticsDataRowDimension(value) { + return true; +} +export function AnalyticsDataRowDimensionFromJSON(json) { + return AnalyticsDataRowDimensionFromJSONTyped(json, false); +} +export function AnalyticsDataRowDimensionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function AnalyticsDataRowDimensionToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/AnalyticsFilter.d.ts b/dist/esm/models/AnalyticsFilter.d.ts new file mode 100644 index 0000000..ff7f1fe --- /dev/null +++ b/dist/esm/models/AnalyticsFilter.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsFilter + */ +export interface AnalyticsFilter { + /** + * Параметр сортировки. Можно передать любой атрибут из параметров `dimension` и `metric`, кроме атрибута `brand`. + * @type {string} + * @memberof AnalyticsFilter + */ + key?: string; + /** + *
+ * + * Операция сравнения: + * - `EQ` — равно, + * - `GT` — больше, + * - `GTE` — больше или равно, + * - `LT` — меньше, + * - `LTE` — меньше или равно. + * + * @type {string} + * @memberof AnalyticsFilter + */ + op?: string; + /** + * Значение для сравнения. + * @type {string} + * @memberof AnalyticsFilter + */ + value?: string; +} +/** + * Check if a given object implements the AnalyticsFilter interface. + */ +export declare function instanceOfAnalyticsFilter(value: object): value is AnalyticsFilter; +export declare function AnalyticsFilterFromJSON(json: any): AnalyticsFilter; +export declare function AnalyticsFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsFilter; +export declare function AnalyticsFilterToJSON(value?: AnalyticsFilter | null): any; diff --git a/dist/esm/models/AnalyticsFilter.js b/dist/esm/models/AnalyticsFilter.js new file mode 100644 index 0000000..98ea837 --- /dev/null +++ b/dist/esm/models/AnalyticsFilter.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the AnalyticsFilter interface. + */ +export function instanceOfAnalyticsFilter(value) { + return true; +} +export function AnalyticsFilterFromJSON(json) { + return AnalyticsFilterFromJSONTyped(json, false); +} +export function AnalyticsFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'op': json['op'] == null ? undefined : json['op'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function AnalyticsFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'op': value['op'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/AnalyticsGetDataResponseResult.d.ts b/dist/esm/models/AnalyticsGetDataResponseResult.d.ts new file mode 100644 index 0000000..5c03d07 --- /dev/null +++ b/dist/esm/models/AnalyticsGetDataResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsDataRow } from './AnalyticsDataRow'; +/** + * Результаты запроса. + * @export + * @interface AnalyticsGetDataResponseResult + */ +export interface AnalyticsGetDataResponseResult { + /** + * Массив данных. + * @type {Array} + * @memberof AnalyticsGetDataResponseResult + */ + data?: Array; + /** + * Итоговые и средние значения метрик. + * @type {Array} + * @memberof AnalyticsGetDataResponseResult + */ + totals?: Array; +} +/** + * Check if a given object implements the AnalyticsGetDataResponseResult interface. + */ +export declare function instanceOfAnalyticsGetDataResponseResult(value: object): value is AnalyticsGetDataResponseResult; +export declare function AnalyticsGetDataResponseResultFromJSON(json: any): AnalyticsGetDataResponseResult; +export declare function AnalyticsGetDataResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsGetDataResponseResult; +export declare function AnalyticsGetDataResponseResultToJSON(value?: AnalyticsGetDataResponseResult | null): any; diff --git a/dist/esm/models/AnalyticsGetDataResponseResult.js b/dist/esm/models/AnalyticsGetDataResponseResult.js new file mode 100644 index 0000000..b1bc7e1 --- /dev/null +++ b/dist/esm/models/AnalyticsGetDataResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsDataRowFromJSON, AnalyticsDataRowToJSON, } from './AnalyticsDataRow'; +/** + * Check if a given object implements the AnalyticsGetDataResponseResult interface. + */ +export function instanceOfAnalyticsGetDataResponseResult(value) { + return true; +} +export function AnalyticsGetDataResponseResultFromJSON(json) { + return AnalyticsGetDataResponseResultFromJSONTyped(json, false); +} +export function AnalyticsGetDataResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': json['data'] == null ? undefined : (json['data'].map(AnalyticsDataRowFromJSON)), + 'totals': json['totals'] == null ? undefined : json['totals'], + }; +} +export function AnalyticsGetDataResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'data': value['data'] == null ? undefined : (value['data'].map(AnalyticsDataRowToJSON)), + 'totals': value['totals'], + }; +} diff --git a/dist/esm/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.d.ts b/dist/esm/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.d.ts new file mode 100644 index 0000000..a69d967 --- /dev/null +++ b/dist/esm/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по типу склада: + * - `EXPRESS_DARK_STORE` — склады Ozon с доставкой Fresh. + * - `NOT_EXPRESS_DARK_STORE` — склады Ozon без доставки Fresh. + * - `ALL` — все склады Ozon. + * + * @export + */ +export declare const AnalyticsGetStockOnWarehousesRequestWarehouseType: { + readonly ALL: "ALL"; + readonly EXPRESS_DARK_STORE: "EXPRESS_DARK_STORE"; + readonly NOT_EXPRESS_DARK_STORE: "NOT_EXPRESS_DARK_STORE"; +}; +export type AnalyticsGetStockOnWarehousesRequestWarehouseType = typeof AnalyticsGetStockOnWarehousesRequestWarehouseType[keyof typeof AnalyticsGetStockOnWarehousesRequestWarehouseType]; +export declare function instanceOfAnalyticsGetStockOnWarehousesRequestWarehouseType(value: any): boolean; +export declare function AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON(json: any): AnalyticsGetStockOnWarehousesRequestWarehouseType; +export declare function AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsGetStockOnWarehousesRequestWarehouseType; +export declare function AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON(value?: AnalyticsGetStockOnWarehousesRequestWarehouseType | null): any; diff --git a/dist/esm/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.js b/dist/esm/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.js new file mode 100644 index 0000000..4ea749f --- /dev/null +++ b/dist/esm/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по типу склада: + * - `EXPRESS_DARK_STORE` — склады Ozon с доставкой Fresh. + * - `NOT_EXPRESS_DARK_STORE` — склады Ozon без доставки Fresh. + * - `ALL` — все склады Ozon. + * + * @export + */ +export const AnalyticsGetStockOnWarehousesRequestWarehouseType = { + ALL: 'ALL', + EXPRESS_DARK_STORE: 'EXPRESS_DARK_STORE', + NOT_EXPRESS_DARK_STORE: 'NOT_EXPRESS_DARK_STORE' +}; +export function instanceOfAnalyticsGetStockOnWarehousesRequestWarehouseType(value) { + for (const key in AnalyticsGetStockOnWarehousesRequestWarehouseType) { + if (Object.prototype.hasOwnProperty.call(AnalyticsGetStockOnWarehousesRequestWarehouseType, key)) { + if (AnalyticsGetStockOnWarehousesRequestWarehouseType[key] === value) { + return true; + } + } + } + return false; +} +export function AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON(json) { + return AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSONTyped(json, false); +} +export function AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/AnalyticsProductQueriesDetailsResponseQuery.d.ts b/dist/esm/models/AnalyticsProductQueriesDetailsResponseQuery.d.ts new file mode 100644 index 0000000..d0833f4 --- /dev/null +++ b/dist/esm/models/AnalyticsProductQueriesDetailsResponseQuery.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsProductQueriesDetailsResponseQuery + */ +export interface AnalyticsProductQueriesDetailsResponseQuery { + /** + * Валюта. + * @type {string} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + currency?: string; + /** + * Продажи по запросам. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + gmv?: number; + /** + * Количество заказов по запросу. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + order_count?: number; + /** + * Средняя позиция товара. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + position?: number; + /** + * Текст запроса. + * @type {string} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + query?: string; + /** + * Порядковый номер запроса. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + query_index?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + sku?: number; + /** + * Количество покупателей, которые искали ваш товар на Ozon. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + unique_search_users?: number; + /** + * Количество покупателей, которые увидели ваш товар на Ozon. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + unique_view_users?: number; + /** + * Конверсия из просмотра товара. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + view_conversion?: number; +} +/** + * Check if a given object implements the AnalyticsProductQueriesDetailsResponseQuery interface. + */ +export declare function instanceOfAnalyticsProductQueriesDetailsResponseQuery(value: object): value is AnalyticsProductQueriesDetailsResponseQuery; +export declare function AnalyticsProductQueriesDetailsResponseQueryFromJSON(json: any): AnalyticsProductQueriesDetailsResponseQuery; +export declare function AnalyticsProductQueriesDetailsResponseQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsProductQueriesDetailsResponseQuery; +export declare function AnalyticsProductQueriesDetailsResponseQueryToJSON(value?: AnalyticsProductQueriesDetailsResponseQuery | null): any; diff --git a/dist/esm/models/AnalyticsProductQueriesDetailsResponseQuery.js b/dist/esm/models/AnalyticsProductQueriesDetailsResponseQuery.js new file mode 100644 index 0000000..a6d9580 --- /dev/null +++ b/dist/esm/models/AnalyticsProductQueriesDetailsResponseQuery.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the AnalyticsProductQueriesDetailsResponseQuery interface. + */ +export function instanceOfAnalyticsProductQueriesDetailsResponseQuery(value) { + return true; +} +export function AnalyticsProductQueriesDetailsResponseQueryFromJSON(json) { + return AnalyticsProductQueriesDetailsResponseQueryFromJSONTyped(json, false); +} +export function AnalyticsProductQueriesDetailsResponseQueryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency': json['currency'] == null ? undefined : json['currency'], + 'gmv': json['gmv'] == null ? undefined : json['gmv'], + 'order_count': json['order_count'] == null ? undefined : json['order_count'], + 'position': json['position'] == null ? undefined : json['position'], + 'query': json['query'] == null ? undefined : json['query'], + 'query_index': json['query_index'] == null ? undefined : json['query_index'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'unique_search_users': json['unique_search_users'] == null ? undefined : json['unique_search_users'], + 'unique_view_users': json['unique_view_users'] == null ? undefined : json['unique_view_users'], + 'view_conversion': json['view_conversion'] == null ? undefined : json['view_conversion'], + }; +} +export function AnalyticsProductQueriesDetailsResponseQueryToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency': value['currency'], + 'gmv': value['gmv'], + 'order_count': value['order_count'], + 'position': value['position'], + 'query': value['query'], + 'query_index': value['query_index'], + 'sku': value['sku'], + 'unique_search_users': value['unique_search_users'], + 'unique_view_users': value['unique_view_users'], + 'view_conversion': value['view_conversion'], + }; +} diff --git a/dist/esm/models/AnalyticsProductQueriesRequestSortBy.d.ts b/dist/esm/models/AnalyticsProductQueriesRequestSortBy.d.ts new file mode 100644 index 0000000..ecdbd78 --- /dev/null +++ b/dist/esm/models/AnalyticsProductQueriesRequestSortBy.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому товары будут отсортированы. Возможные значения: + * - `BY_SEARCHES` — по количеству запросов; + * - `BY_VIEWS` — по количеству просмотров; + * - `BY_POSITION` — по средней позиции товара; + * - `BY_CONVERSION` — по значению конверсии; + * - `BY_GMV` — по объёму продаж по запросам. + * + * @export + */ +export declare const AnalyticsProductQueriesRequestSortBy: { + readonly SEARCHES: "BY_SEARCHES"; + readonly VIEWS: "BY_VIEWS"; + readonly POSITION: "BY_POSITION"; + readonly CONVERSION: "BY_CONVERSION"; + readonly GMV: "BY_GMV"; +}; +export type AnalyticsProductQueriesRequestSortBy = typeof AnalyticsProductQueriesRequestSortBy[keyof typeof AnalyticsProductQueriesRequestSortBy]; +export declare function instanceOfAnalyticsProductQueriesRequestSortBy(value: any): boolean; +export declare function AnalyticsProductQueriesRequestSortByFromJSON(json: any): AnalyticsProductQueriesRequestSortBy; +export declare function AnalyticsProductQueriesRequestSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsProductQueriesRequestSortBy; +export declare function AnalyticsProductQueriesRequestSortByToJSON(value?: AnalyticsProductQueriesRequestSortBy | null): any; diff --git a/dist/esm/models/AnalyticsProductQueriesRequestSortBy.js b/dist/esm/models/AnalyticsProductQueriesRequestSortBy.js new file mode 100644 index 0000000..2c2296b --- /dev/null +++ b/dist/esm/models/AnalyticsProductQueriesRequestSortBy.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому товары будут отсортированы. Возможные значения: + * - `BY_SEARCHES` — по количеству запросов; + * - `BY_VIEWS` — по количеству просмотров; + * - `BY_POSITION` — по средней позиции товара; + * - `BY_CONVERSION` — по значению конверсии; + * - `BY_GMV` — по объёму продаж по запросам. + * + * @export + */ +export const AnalyticsProductQueriesRequestSortBy = { + SEARCHES: 'BY_SEARCHES', + VIEWS: 'BY_VIEWS', + POSITION: 'BY_POSITION', + CONVERSION: 'BY_CONVERSION', + GMV: 'BY_GMV' +}; +export function instanceOfAnalyticsProductQueriesRequestSortBy(value) { + for (const key in AnalyticsProductQueriesRequestSortBy) { + if (Object.prototype.hasOwnProperty.call(AnalyticsProductQueriesRequestSortBy, key)) { + if (AnalyticsProductQueriesRequestSortBy[key] === value) { + return true; + } + } + } + return false; +} +export function AnalyticsProductQueriesRequestSortByFromJSON(json) { + return AnalyticsProductQueriesRequestSortByFromJSONTyped(json, false); +} +export function AnalyticsProductQueriesRequestSortByFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function AnalyticsProductQueriesRequestSortByToJSON(value) { + return value; +} diff --git a/dist/esm/models/AnalyticsProductQueriesRequestSortDir.d.ts b/dist/esm/models/AnalyticsProductQueriesRequestSortDir.d.ts new file mode 100644 index 0000000..cafc869 --- /dev/null +++ b/dist/esm/models/AnalyticsProductQueriesRequestSortDir.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESCENDING` — по убыванию; + * - `ASCENDING` — по возрастанию. + * + * @export + */ +export declare const AnalyticsProductQueriesRequestSortDir: { + readonly DESCENDING: "DESCENDING"; + readonly ASCENDING: "ASCENDING"; +}; +export type AnalyticsProductQueriesRequestSortDir = typeof AnalyticsProductQueriesRequestSortDir[keyof typeof AnalyticsProductQueriesRequestSortDir]; +export declare function instanceOfAnalyticsProductQueriesRequestSortDir(value: any): boolean; +export declare function AnalyticsProductQueriesRequestSortDirFromJSON(json: any): AnalyticsProductQueriesRequestSortDir; +export declare function AnalyticsProductQueriesRequestSortDirFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsProductQueriesRequestSortDir; +export declare function AnalyticsProductQueriesRequestSortDirToJSON(value?: AnalyticsProductQueriesRequestSortDir | null): any; diff --git a/dist/esm/models/AnalyticsProductQueriesRequestSortDir.js b/dist/esm/models/AnalyticsProductQueriesRequestSortDir.js new file mode 100644 index 0000000..7195828 --- /dev/null +++ b/dist/esm/models/AnalyticsProductQueriesRequestSortDir.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESCENDING` — по убыванию; + * - `ASCENDING` — по возрастанию. + * + * @export + */ +export const AnalyticsProductQueriesRequestSortDir = { + DESCENDING: 'DESCENDING', + ASCENDING: 'ASCENDING' +}; +export function instanceOfAnalyticsProductQueriesRequestSortDir(value) { + for (const key in AnalyticsProductQueriesRequestSortDir) { + if (Object.prototype.hasOwnProperty.call(AnalyticsProductQueriesRequestSortDir, key)) { + if (AnalyticsProductQueriesRequestSortDir[key] === value) { + return true; + } + } + } + return false; +} +export function AnalyticsProductQueriesRequestSortDirFromJSON(json) { + return AnalyticsProductQueriesRequestSortDirFromJSONTyped(json, false); +} +export function AnalyticsProductQueriesRequestSortDirFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function AnalyticsProductQueriesRequestSortDirToJSON(value) { + return value; +} diff --git a/dist/esm/models/AnalyticsProductQueriesResponseAnalyticsPeriod.d.ts b/dist/esm/models/AnalyticsProductQueriesResponseAnalyticsPeriod.d.ts new file mode 100644 index 0000000..bc52540 --- /dev/null +++ b/dist/esm/models/AnalyticsProductQueriesResponseAnalyticsPeriod.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, за который формируется аналитика. + * @export + * @interface AnalyticsProductQueriesResponseAnalyticsPeriod + */ +export interface AnalyticsProductQueriesResponseAnalyticsPeriod { + /** + * Дата начала формирования аналитики. + * @type {string} + * @memberof AnalyticsProductQueriesResponseAnalyticsPeriod + */ + date_from?: string; + /** + * Дата окончания формирования аналитики. + * @type {string} + * @memberof AnalyticsProductQueriesResponseAnalyticsPeriod + */ + date_to?: string; +} +/** + * Check if a given object implements the AnalyticsProductQueriesResponseAnalyticsPeriod interface. + */ +export declare function instanceOfAnalyticsProductQueriesResponseAnalyticsPeriod(value: object): value is AnalyticsProductQueriesResponseAnalyticsPeriod; +export declare function AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON(json: any): AnalyticsProductQueriesResponseAnalyticsPeriod; +export declare function AnalyticsProductQueriesResponseAnalyticsPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsProductQueriesResponseAnalyticsPeriod; +export declare function AnalyticsProductQueriesResponseAnalyticsPeriodToJSON(value?: AnalyticsProductQueriesResponseAnalyticsPeriod | null): any; diff --git a/dist/esm/models/AnalyticsProductQueriesResponseAnalyticsPeriod.js b/dist/esm/models/AnalyticsProductQueriesResponseAnalyticsPeriod.js new file mode 100644 index 0000000..7d7ddbb --- /dev/null +++ b/dist/esm/models/AnalyticsProductQueriesResponseAnalyticsPeriod.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the AnalyticsProductQueriesResponseAnalyticsPeriod interface. + */ +export function instanceOfAnalyticsProductQueriesResponseAnalyticsPeriod(value) { + return true; +} +export function AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON(json) { + return AnalyticsProductQueriesResponseAnalyticsPeriodFromJSONTyped(json, false); +} +export function AnalyticsProductQueriesResponseAnalyticsPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + }; +} +export function AnalyticsProductQueriesResponseAnalyticsPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/esm/models/AnalyticsSorting.d.ts b/dist/esm/models/AnalyticsSorting.d.ts new file mode 100644 index 0000000..98c941c --- /dev/null +++ b/dist/esm/models/AnalyticsSorting.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsSorting + */ +export interface AnalyticsSorting { + /** + * Метрика, по которой будет отсортирован результат запроса. + * @type {string} + * @memberof AnalyticsSorting + */ + key?: string; + /** + * Вид сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @type {string} + * @memberof AnalyticsSorting + */ + order?: string; +} +/** + * Check if a given object implements the AnalyticsSorting interface. + */ +export declare function instanceOfAnalyticsSorting(value: object): value is AnalyticsSorting; +export declare function AnalyticsSortingFromJSON(json: any): AnalyticsSorting; +export declare function AnalyticsSortingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsSorting; +export declare function AnalyticsSortingToJSON(value?: AnalyticsSorting | null): any; diff --git a/dist/esm/models/AnalyticsSorting.js b/dist/esm/models/AnalyticsSorting.js new file mode 100644 index 0000000..9c5a6a0 --- /dev/null +++ b/dist/esm/models/AnalyticsSorting.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the AnalyticsSorting interface. + */ +export function instanceOfAnalyticsSorting(value) { + return true; +} +export function AnalyticsSortingFromJSON(json) { + return AnalyticsSortingFromJSONTyped(json, false); +} +export function AnalyticsSortingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'order': json['order'] == null ? undefined : json['order'], + }; +} +export function AnalyticsSortingToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'order': value['order'], + }; +} diff --git a/dist/esm/models/AnalyticsStockOnWarehouseRequest.d.ts b/dist/esm/models/AnalyticsStockOnWarehouseRequest.d.ts new file mode 100644 index 0000000..2a346ad --- /dev/null +++ b/dist/esm/models/AnalyticsStockOnWarehouseRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsGetStockOnWarehousesRequestWarehouseType } from './AnalyticsGetStockOnWarehousesRequestWarehouseType'; +/** + * + * @export + * @interface AnalyticsStockOnWarehouseRequest + */ +export interface AnalyticsStockOnWarehouseRequest { + /** + * Количество ответов на странице. По умолчанию — 100. + * @type {number} + * @memberof AnalyticsStockOnWarehouseRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof AnalyticsStockOnWarehouseRequest + */ + offset?: number; + /** + * + * @type {AnalyticsGetStockOnWarehousesRequestWarehouseType} + * @memberof AnalyticsStockOnWarehouseRequest + */ + warehouse_type?: AnalyticsGetStockOnWarehousesRequestWarehouseType; +} +/** + * Check if a given object implements the AnalyticsStockOnWarehouseRequest interface. + */ +export declare function instanceOfAnalyticsStockOnWarehouseRequest(value: object): value is AnalyticsStockOnWarehouseRequest; +export declare function AnalyticsStockOnWarehouseRequestFromJSON(json: any): AnalyticsStockOnWarehouseRequest; +export declare function AnalyticsStockOnWarehouseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStockOnWarehouseRequest; +export declare function AnalyticsStockOnWarehouseRequestToJSON(value?: AnalyticsStockOnWarehouseRequest | null): any; diff --git a/dist/esm/models/AnalyticsStockOnWarehouseRequest.js b/dist/esm/models/AnalyticsStockOnWarehouseRequest.js new file mode 100644 index 0000000..6a684d9 --- /dev/null +++ b/dist/esm/models/AnalyticsStockOnWarehouseRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON, AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON, } from './AnalyticsGetStockOnWarehousesRequestWarehouseType'; +/** + * Check if a given object implements the AnalyticsStockOnWarehouseRequest interface. + */ +export function instanceOfAnalyticsStockOnWarehouseRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function AnalyticsStockOnWarehouseRequestFromJSON(json) { + return AnalyticsStockOnWarehouseRequestFromJSONTyped(json, false); +} +export function AnalyticsStockOnWarehouseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'warehouse_type': json['warehouse_type'] == null ? undefined : AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON(json['warehouse_type']), + }; +} +export function AnalyticsStockOnWarehouseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + 'warehouse_type': AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON(value['warehouse_type']), + }; +} diff --git a/dist/esm/models/AnalyticsStockOnWarehouseResponse.d.ts b/dist/esm/models/AnalyticsStockOnWarehouseResponse.d.ts new file mode 100644 index 0000000..e3999f6 --- /dev/null +++ b/dist/esm/models/AnalyticsStockOnWarehouseResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsStockOnWarehouseResponseResult } from './AnalyticsStockOnWarehouseResponseResult'; +/** + * + * @export + * @interface AnalyticsStockOnWarehouseResponse + */ +export interface AnalyticsStockOnWarehouseResponse { + /** + * + * @type {AnalyticsStockOnWarehouseResponseResult} + * @memberof AnalyticsStockOnWarehouseResponse + */ + result?: AnalyticsStockOnWarehouseResponseResult; +} +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResponse interface. + */ +export declare function instanceOfAnalyticsStockOnWarehouseResponse(value: object): value is AnalyticsStockOnWarehouseResponse; +export declare function AnalyticsStockOnWarehouseResponseFromJSON(json: any): AnalyticsStockOnWarehouseResponse; +export declare function AnalyticsStockOnWarehouseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStockOnWarehouseResponse; +export declare function AnalyticsStockOnWarehouseResponseToJSON(value?: AnalyticsStockOnWarehouseResponse | null): any; diff --git a/dist/esm/models/AnalyticsStockOnWarehouseResponse.js b/dist/esm/models/AnalyticsStockOnWarehouseResponse.js new file mode 100644 index 0000000..2f3d0a5 --- /dev/null +++ b/dist/esm/models/AnalyticsStockOnWarehouseResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsStockOnWarehouseResponseResultFromJSON, AnalyticsStockOnWarehouseResponseResultToJSON, } from './AnalyticsStockOnWarehouseResponseResult'; +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResponse interface. + */ +export function instanceOfAnalyticsStockOnWarehouseResponse(value) { + return true; +} +export function AnalyticsStockOnWarehouseResponseFromJSON(json) { + return AnalyticsStockOnWarehouseResponseFromJSONTyped(json, false); +} +export function AnalyticsStockOnWarehouseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : AnalyticsStockOnWarehouseResponseResultFromJSON(json['result']), + }; +} +export function AnalyticsStockOnWarehouseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': AnalyticsStockOnWarehouseResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/AnalyticsStockOnWarehouseResponseResult.d.ts b/dist/esm/models/AnalyticsStockOnWarehouseResponseResult.d.ts new file mode 100644 index 0000000..1d41097 --- /dev/null +++ b/dist/esm/models/AnalyticsStockOnWarehouseResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsStockOnWarehouseResultRows } from './AnalyticsStockOnWarehouseResultRows'; +/** + * Результат запроса. + * @export + * @interface AnalyticsStockOnWarehouseResponseResult + */ +export interface AnalyticsStockOnWarehouseResponseResult { + /** + * Информация о товарах и остатках. + * @type {Array} + * @memberof AnalyticsStockOnWarehouseResponseResult + */ + rows?: Array; +} +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResponseResult interface. + */ +export declare function instanceOfAnalyticsStockOnWarehouseResponseResult(value: object): value is AnalyticsStockOnWarehouseResponseResult; +export declare function AnalyticsStockOnWarehouseResponseResultFromJSON(json: any): AnalyticsStockOnWarehouseResponseResult; +export declare function AnalyticsStockOnWarehouseResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStockOnWarehouseResponseResult; +export declare function AnalyticsStockOnWarehouseResponseResultToJSON(value?: AnalyticsStockOnWarehouseResponseResult | null): any; diff --git a/dist/esm/models/AnalyticsStockOnWarehouseResponseResult.js b/dist/esm/models/AnalyticsStockOnWarehouseResponseResult.js new file mode 100644 index 0000000..5e058a9 --- /dev/null +++ b/dist/esm/models/AnalyticsStockOnWarehouseResponseResult.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsStockOnWarehouseResultRowsFromJSON, AnalyticsStockOnWarehouseResultRowsToJSON, } from './AnalyticsStockOnWarehouseResultRows'; +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResponseResult interface. + */ +export function instanceOfAnalyticsStockOnWarehouseResponseResult(value) { + return true; +} +export function AnalyticsStockOnWarehouseResponseResultFromJSON(json) { + return AnalyticsStockOnWarehouseResponseResultFromJSONTyped(json, false); +} +export function AnalyticsStockOnWarehouseResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rows': json['rows'] == null ? undefined : (json['rows'].map(AnalyticsStockOnWarehouseResultRowsFromJSON)), + }; +} +export function AnalyticsStockOnWarehouseResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'rows': value['rows'] == null ? undefined : (value['rows'].map(AnalyticsStockOnWarehouseResultRowsToJSON)), + }; +} diff --git a/dist/esm/models/AnalyticsStockOnWarehouseResultRows.d.ts b/dist/esm/models/AnalyticsStockOnWarehouseResultRows.d.ts new file mode 100644 index 0000000..def10a1 --- /dev/null +++ b/dist/esm/models/AnalyticsStockOnWarehouseResultRows.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsStockOnWarehouseResultRows + */ +export interface AnalyticsStockOnWarehouseResultRows { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + sku?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + item_code?: string; + /** + * Название товара в системе Ozon. + * @type {string} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + item_name?: string; + /** + * Количество товара, доступное к продаже на Ozon. + * @type {number} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + free_to_sell_amount?: number; + /** + * Количество товара, указанное в подтверждённых будущих поставках. + * @type {number} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + promised_amount?: number; + /** + * Количество товара, зарезервированное для покупки, возврата и перевозки между складами. + * @type {number} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + reserved_amount?: number; + /** + * Название склада, где находится товар. + * @type {string} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResultRows interface. + */ +export declare function instanceOfAnalyticsStockOnWarehouseResultRows(value: object): value is AnalyticsStockOnWarehouseResultRows; +export declare function AnalyticsStockOnWarehouseResultRowsFromJSON(json: any): AnalyticsStockOnWarehouseResultRows; +export declare function AnalyticsStockOnWarehouseResultRowsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStockOnWarehouseResultRows; +export declare function AnalyticsStockOnWarehouseResultRowsToJSON(value?: AnalyticsStockOnWarehouseResultRows | null): any; diff --git a/dist/esm/models/AnalyticsStockOnWarehouseResultRows.js b/dist/esm/models/AnalyticsStockOnWarehouseResultRows.js new file mode 100644 index 0000000..7819b28 --- /dev/null +++ b/dist/esm/models/AnalyticsStockOnWarehouseResultRows.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResultRows interface. + */ +export function instanceOfAnalyticsStockOnWarehouseResultRows(value) { + return true; +} +export function AnalyticsStockOnWarehouseResultRowsFromJSON(json) { + return AnalyticsStockOnWarehouseResultRowsFromJSONTyped(json, false); +} +export function AnalyticsStockOnWarehouseResultRowsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'item_code': json['item_code'] == null ? undefined : json['item_code'], + 'item_name': json['item_name'] == null ? undefined : json['item_name'], + 'free_to_sell_amount': json['free_to_sell_amount'] == null ? undefined : json['free_to_sell_amount'], + 'promised_amount': json['promised_amount'] == null ? undefined : json['promised_amount'], + 'reserved_amount': json['reserved_amount'] == null ? undefined : json['reserved_amount'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function AnalyticsStockOnWarehouseResultRowsToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'item_code': value['item_code'], + 'item_name': value['item_name'], + 'free_to_sell_amount': value['free_to_sell_amount'], + 'promised_amount': value['promised_amount'], + 'reserved_amount': value['reserved_amount'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/ApproveDeclineDiscountTasksResponseFailDetail.d.ts b/dist/esm/models/ApproveDeclineDiscountTasksResponseFailDetail.d.ts new file mode 100644 index 0000000..cb5e59a --- /dev/null +++ b/dist/esm/models/ApproveDeclineDiscountTasksResponseFailDetail.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ApproveDeclineDiscountTasksResponseFailDetail + */ +export interface ApproveDeclineDiscountTasksResponseFailDetail { + /** + * Идентификатор заявки. + * @type {number} + * @memberof ApproveDeclineDiscountTasksResponseFailDetail + */ + task_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof ApproveDeclineDiscountTasksResponseFailDetail + */ + error_for_user?: string; +} +/** + * Check if a given object implements the ApproveDeclineDiscountTasksResponseFailDetail interface. + */ +export declare function instanceOfApproveDeclineDiscountTasksResponseFailDetail(value: object): value is ApproveDeclineDiscountTasksResponseFailDetail; +export declare function ApproveDeclineDiscountTasksResponseFailDetailFromJSON(json: any): ApproveDeclineDiscountTasksResponseFailDetail; +export declare function ApproveDeclineDiscountTasksResponseFailDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApproveDeclineDiscountTasksResponseFailDetail; +export declare function ApproveDeclineDiscountTasksResponseFailDetailToJSON(value?: ApproveDeclineDiscountTasksResponseFailDetail | null): any; diff --git a/dist/esm/models/ApproveDeclineDiscountTasksResponseFailDetail.js b/dist/esm/models/ApproveDeclineDiscountTasksResponseFailDetail.js new file mode 100644 index 0000000..4060504 --- /dev/null +++ b/dist/esm/models/ApproveDeclineDiscountTasksResponseFailDetail.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ApproveDeclineDiscountTasksResponseFailDetail interface. + */ +export function instanceOfApproveDeclineDiscountTasksResponseFailDetail(value) { + return true; +} +export function ApproveDeclineDiscountTasksResponseFailDetailFromJSON(json) { + return ApproveDeclineDiscountTasksResponseFailDetailFromJSONTyped(json, false); +} +export function ApproveDeclineDiscountTasksResponseFailDetailFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + 'error_for_user': json['error_for_user'] == null ? undefined : json['error_for_user'], + }; +} +export function ApproveDeclineDiscountTasksResponseFailDetailToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + 'error_for_user': value['error_for_user'], + }; +} diff --git a/dist/esm/models/ArrivalPassListRequestFilter.d.ts b/dist/esm/models/ArrivalPassListRequestFilter.d.ts new file mode 100644 index 0000000..b34feb3 --- /dev/null +++ b/dist/esm/models/ArrivalPassListRequestFilter.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтры. + * @export + * @interface ArrivalPassListRequestFilter + */ +export interface ArrivalPassListRequestFilter { + /** + * Фильтр по идентификатору пропуска. + * @type {Array} + * @memberof ArrivalPassListRequestFilter + */ + arrival_pass_ids?: Array; + /** + * Фильтр по цели въезда: + * - `FBS_DELIVERY` — отгрузка. + * - `FBS_RETURN` — вывоз возвратов. + * + * Если параметр не указан, учитываются обе цели. + * + * Указанная причина должна быть в списке причин в пропусках. + * + * @type {string} + * @memberof ArrivalPassListRequestFilter + */ + arrival_reason?: string; + /** + * Фильтр по точке отгрузки. + * @type {Array} + * @memberof ArrivalPassListRequestFilter + */ + dropoff_point_ids?: Array; + /** + * `true`, чтобы получить только активные заявки на пропуск. + * + * @type {boolean} + * @memberof ArrivalPassListRequestFilter + */ + only_active_passes?: boolean; + /** + * Фильтр по складу продавца. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof ArrivalPassListRequestFilter + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the ArrivalPassListRequestFilter interface. + */ +export declare function instanceOfArrivalPassListRequestFilter(value: object): value is ArrivalPassListRequestFilter; +export declare function ArrivalPassListRequestFilterFromJSON(json: any): ArrivalPassListRequestFilter; +export declare function ArrivalPassListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalPassListRequestFilter; +export declare function ArrivalPassListRequestFilterToJSON(value?: ArrivalPassListRequestFilter | null): any; diff --git a/dist/esm/models/ArrivalPassListRequestFilter.js b/dist/esm/models/ArrivalPassListRequestFilter.js new file mode 100644 index 0000000..af26de0 --- /dev/null +++ b/dist/esm/models/ArrivalPassListRequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ArrivalPassListRequestFilter interface. + */ +export function instanceOfArrivalPassListRequestFilter(value) { + return true; +} +export function ArrivalPassListRequestFilterFromJSON(json) { + return ArrivalPassListRequestFilterFromJSONTyped(json, false); +} +export function ArrivalPassListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'] == null ? undefined : json['arrival_pass_ids'], + 'arrival_reason': json['arrival_reason'] == null ? undefined : json['arrival_reason'], + 'dropoff_point_ids': json['dropoff_point_ids'] == null ? undefined : json['dropoff_point_ids'], + 'only_active_passes': json['only_active_passes'] == null ? undefined : json['only_active_passes'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function ArrivalPassListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + 'arrival_reason': value['arrival_reason'], + 'dropoff_point_ids': value['dropoff_point_ids'], + 'only_active_passes': value['only_active_passes'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassCreateRequest.d.ts b/dist/esm/models/ArrivalpassArrivalPassCreateRequest.d.ts new file mode 100644 index 0000000..3edb4a5 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassCreateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ArrivalpassArrivalPassCreateRequestArrivalPass } from './ArrivalpassArrivalPassCreateRequestArrivalPass'; +/** + * + * @export + * @interface ArrivalpassArrivalPassCreateRequest + */ +export interface ArrivalpassArrivalPassCreateRequest { + /** + * Список пропусков. + * @type {Array} + * @memberof ArrivalpassArrivalPassCreateRequest + */ + arrival_passes: Array; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateRequest interface. + */ +export declare function instanceOfArrivalpassArrivalPassCreateRequest(value: object): value is ArrivalpassArrivalPassCreateRequest; +export declare function ArrivalpassArrivalPassCreateRequestFromJSON(json: any): ArrivalpassArrivalPassCreateRequest; +export declare function ArrivalpassArrivalPassCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassCreateRequest; +export declare function ArrivalpassArrivalPassCreateRequestToJSON(value?: ArrivalpassArrivalPassCreateRequest | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassCreateRequest.js b/dist/esm/models/ArrivalpassArrivalPassCreateRequest.js new file mode 100644 index 0000000..d7094f5 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassCreateRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON, ArrivalpassArrivalPassCreateRequestArrivalPassToJSON, } from './ArrivalpassArrivalPassCreateRequestArrivalPass'; +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateRequest interface. + */ +export function instanceOfArrivalpassArrivalPassCreateRequest(value) { + if (!('arrival_passes' in value) || value['arrival_passes'] === undefined) + return false; + return true; +} +export function ArrivalpassArrivalPassCreateRequestFromJSON(json) { + return ArrivalpassArrivalPassCreateRequestFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': (json['arrival_passes'].map(ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON)), + }; +} +export function ArrivalpassArrivalPassCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': (value['arrival_passes'].map(ArrivalpassArrivalPassCreateRequestArrivalPassToJSON)), + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassCreateRequestArrivalPass.d.ts b/dist/esm/models/ArrivalpassArrivalPassCreateRequestArrivalPass.d.ts new file mode 100644 index 0000000..e1e009a --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassCreateRequestArrivalPass.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassCreateRequestArrivalPass + */ +export interface ArrivalpassArrivalPassCreateRequestArrivalPass { + /** + * Время прибытия в формате UTC. + * В это время пропуск начнёт действовать. + * + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + arrival_time: string; + /** + * ФИО водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + driver_name: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + driver_phone: string; + /** + * Идентификатор склада, на который оформляется пропуск. + * @type {number} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + dropoff_point_id: number; + /** + * Номер автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + vehicle_license_plate: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + vehicle_model: string; + /** + * Идентификатор склада продавца. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {number} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + warehouse_id: number; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateRequestArrivalPass interface. + */ +export declare function instanceOfArrivalpassArrivalPassCreateRequestArrivalPass(value: object): value is ArrivalpassArrivalPassCreateRequestArrivalPass; +export declare function ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON(json: any): ArrivalpassArrivalPassCreateRequestArrivalPass; +export declare function ArrivalpassArrivalPassCreateRequestArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassCreateRequestArrivalPass; +export declare function ArrivalpassArrivalPassCreateRequestArrivalPassToJSON(value?: ArrivalpassArrivalPassCreateRequestArrivalPass | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassCreateRequestArrivalPass.js b/dist/esm/models/ArrivalpassArrivalPassCreateRequestArrivalPass.js new file mode 100644 index 0000000..48002d6 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassCreateRequestArrivalPass.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateRequestArrivalPass interface. + */ +export function instanceOfArrivalpassArrivalPassCreateRequestArrivalPass(value) { + if (!('arrival_time' in value) || value['arrival_time'] === undefined) + return false; + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('dropoff_point_id' in value) || value['dropoff_point_id'] === undefined) + return false; + if (!('vehicle_license_plate' in value) || value['vehicle_license_plate'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON(json) { + return ArrivalpassArrivalPassCreateRequestArrivalPassFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassCreateRequestArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_time': json['arrival_time'], + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'dropoff_point_id': json['dropoff_point_id'], + 'vehicle_license_plate': json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function ArrivalpassArrivalPassCreateRequestArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_time': value['arrival_time'], + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'dropoff_point_id': value['dropoff_point_id'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassCreateResponse.d.ts b/dist/esm/models/ArrivalpassArrivalPassCreateResponse.d.ts new file mode 100644 index 0000000..837e9a2 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassCreateResponse + */ +export interface ArrivalpassArrivalPassCreateResponse { + /** + * Идентификаторы пропусков. + * @type {Array} + * @memberof ArrivalpassArrivalPassCreateResponse + */ + arrival_pass_ids?: Array; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateResponse interface. + */ +export declare function instanceOfArrivalpassArrivalPassCreateResponse(value: object): value is ArrivalpassArrivalPassCreateResponse; +export declare function ArrivalpassArrivalPassCreateResponseFromJSON(json: any): ArrivalpassArrivalPassCreateResponse; +export declare function ArrivalpassArrivalPassCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassCreateResponse; +export declare function ArrivalpassArrivalPassCreateResponseToJSON(value?: ArrivalpassArrivalPassCreateResponse | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassCreateResponse.js b/dist/esm/models/ArrivalpassArrivalPassCreateResponse.js new file mode 100644 index 0000000..4353037 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateResponse interface. + */ +export function instanceOfArrivalpassArrivalPassCreateResponse(value) { + return true; +} +export function ArrivalpassArrivalPassCreateResponseFromJSON(json) { + return ArrivalpassArrivalPassCreateResponseFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'] == null ? undefined : json['arrival_pass_ids'], + }; +} +export function ArrivalpassArrivalPassCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassDeleteRequest.d.ts b/dist/esm/models/ArrivalpassArrivalPassDeleteRequest.d.ts new file mode 100644 index 0000000..93898a0 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassDeleteRequest + */ +export interface ArrivalpassArrivalPassDeleteRequest { + /** + * Идентификаторы пропусков. + * @type {Array} + * @memberof ArrivalpassArrivalPassDeleteRequest + */ + arrival_pass_ids: Array; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassDeleteRequest interface. + */ +export declare function instanceOfArrivalpassArrivalPassDeleteRequest(value: object): value is ArrivalpassArrivalPassDeleteRequest; +export declare function ArrivalpassArrivalPassDeleteRequestFromJSON(json: any): ArrivalpassArrivalPassDeleteRequest; +export declare function ArrivalpassArrivalPassDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassDeleteRequest; +export declare function ArrivalpassArrivalPassDeleteRequestToJSON(value?: ArrivalpassArrivalPassDeleteRequest | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassDeleteRequest.js b/dist/esm/models/ArrivalpassArrivalPassDeleteRequest.js new file mode 100644 index 0000000..1e7847d --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassDeleteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ArrivalpassArrivalPassDeleteRequest interface. + */ +export function instanceOfArrivalpassArrivalPassDeleteRequest(value) { + if (!('arrival_pass_ids' in value) || value['arrival_pass_ids'] === undefined) + return false; + return true; +} +export function ArrivalpassArrivalPassDeleteRequestFromJSON(json) { + return ArrivalpassArrivalPassDeleteRequestFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'], + }; +} +export function ArrivalpassArrivalPassDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassListRequest.d.ts b/dist/esm/models/ArrivalpassArrivalPassListRequest.d.ts new file mode 100644 index 0000000..f65239d --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassListRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ArrivalPassListRequestFilter } from './ArrivalPassListRequestFilter'; +/** + * + * @export + * @interface ArrivalpassArrivalPassListRequest + */ +export interface ArrivalpassArrivalPassListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ArrivalpassArrivalPassListRequest + */ + cursor?: string; + /** + * + * @type {ArrivalPassListRequestFilter} + * @memberof ArrivalpassArrivalPassListRequest + */ + filter?: ArrivalPassListRequestFilter; + /** + * Ограничение по количеству записей в ответе. + * + * @type {number} + * @memberof ArrivalpassArrivalPassListRequest + */ + limit: number; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassListRequest interface. + */ +export declare function instanceOfArrivalpassArrivalPassListRequest(value: object): value is ArrivalpassArrivalPassListRequest; +export declare function ArrivalpassArrivalPassListRequestFromJSON(json: any): ArrivalpassArrivalPassListRequest; +export declare function ArrivalpassArrivalPassListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassListRequest; +export declare function ArrivalpassArrivalPassListRequestToJSON(value?: ArrivalpassArrivalPassListRequest | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassListRequest.js b/dist/esm/models/ArrivalpassArrivalPassListRequest.js new file mode 100644 index 0000000..d42ab3a --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassListRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ArrivalPassListRequestFilterFromJSON, ArrivalPassListRequestFilterToJSON, } from './ArrivalPassListRequestFilter'; +/** + * Check if a given object implements the ArrivalpassArrivalPassListRequest interface. + */ +export function instanceOfArrivalpassArrivalPassListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function ArrivalpassArrivalPassListRequestFromJSON(json) { + return ArrivalpassArrivalPassListRequestFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : ArrivalPassListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function ArrivalpassArrivalPassListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': ArrivalPassListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassListResponse.d.ts b/dist/esm/models/ArrivalpassArrivalPassListResponse.d.ts new file mode 100644 index 0000000..1cf659d --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassListResponse.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ArrivalpassArrivalPassListResponseArrivalPass } from './ArrivalpassArrivalPassListResponseArrivalPass'; +/** + * + * @export + * @interface ArrivalpassArrivalPassListResponse + */ +export interface ArrivalpassArrivalPassListResponse { + /** + * Список пропусков для перевозки. + * @type {Array} + * @memberof ArrivalpassArrivalPassListResponse + */ + arrival_passes?: Array; + /** + * Указатель для выборки следующих данных. + * Если параметр пустой, данных больше нет. + * + * @type {string} + * @memberof ArrivalpassArrivalPassListResponse + */ + cursor?: string; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassListResponse interface. + */ +export declare function instanceOfArrivalpassArrivalPassListResponse(value: object): value is ArrivalpassArrivalPassListResponse; +export declare function ArrivalpassArrivalPassListResponseFromJSON(json: any): ArrivalpassArrivalPassListResponse; +export declare function ArrivalpassArrivalPassListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassListResponse; +export declare function ArrivalpassArrivalPassListResponseToJSON(value?: ArrivalpassArrivalPassListResponse | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassListResponse.js b/dist/esm/models/ArrivalpassArrivalPassListResponse.js new file mode 100644 index 0000000..b30d56d --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ArrivalpassArrivalPassListResponseArrivalPassFromJSON, ArrivalpassArrivalPassListResponseArrivalPassToJSON, } from './ArrivalpassArrivalPassListResponseArrivalPass'; +/** + * Check if a given object implements the ArrivalpassArrivalPassListResponse interface. + */ +export function instanceOfArrivalpassArrivalPassListResponse(value) { + return true; +} +export function ArrivalpassArrivalPassListResponseFromJSON(json) { + return ArrivalpassArrivalPassListResponseFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': json['arrival_passes'] == null ? undefined : (json['arrival_passes'].map(ArrivalpassArrivalPassListResponseArrivalPassFromJSON)), + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + }; +} +export function ArrivalpassArrivalPassListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': value['arrival_passes'] == null ? undefined : (value['arrival_passes'].map(ArrivalpassArrivalPassListResponseArrivalPassToJSON)), + 'cursor': value['cursor'], + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassListResponseArrivalPass.d.ts b/dist/esm/models/ArrivalpassArrivalPassListResponseArrivalPass.d.ts new file mode 100644 index 0000000..f77d4a9 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassListResponseArrivalPass.d.ts @@ -0,0 +1,86 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassListResponseArrivalPass + */ +export interface ArrivalpassArrivalPassListResponseArrivalPass { + /** + * Идентификатор пропуска. + * @type {number} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + arrival_pass_id?: number; + /** + * Цель приезда. + * @type {Array} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + arrival_reasons?: Array; + /** + * Дата и время въезда в формате UTC. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + arrival_time?: string; + /** + * ФИО водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + driver_name?: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + driver_phone?: string; + /** + * Идентификатор точки отгрузки. + * @type {number} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + dropoff_point_id?: number; + /** + * `true`, если заявка активна. + * + * @type {boolean} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + is_active?: boolean; + /** + * Номер автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + vehicle_license_plate?: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + vehicle_model?: string; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassListResponseArrivalPass interface. + */ +export declare function instanceOfArrivalpassArrivalPassListResponseArrivalPass(value: object): value is ArrivalpassArrivalPassListResponseArrivalPass; +export declare function ArrivalpassArrivalPassListResponseArrivalPassFromJSON(json: any): ArrivalpassArrivalPassListResponseArrivalPass; +export declare function ArrivalpassArrivalPassListResponseArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassListResponseArrivalPass; +export declare function ArrivalpassArrivalPassListResponseArrivalPassToJSON(value?: ArrivalpassArrivalPassListResponseArrivalPass | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassListResponseArrivalPass.js b/dist/esm/models/ArrivalpassArrivalPassListResponseArrivalPass.js new file mode 100644 index 0000000..0a17e6d --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassListResponseArrivalPass.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ArrivalpassArrivalPassListResponseArrivalPass interface. + */ +export function instanceOfArrivalpassArrivalPassListResponseArrivalPass(value) { + return true; +} +export function ArrivalpassArrivalPassListResponseArrivalPassFromJSON(json) { + return ArrivalpassArrivalPassListResponseArrivalPassFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassListResponseArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_id': json['arrival_pass_id'] == null ? undefined : json['arrival_pass_id'], + 'arrival_reasons': json['arrival_reasons'] == null ? undefined : json['arrival_reasons'], + 'arrival_time': json['arrival_time'] == null ? undefined : json['arrival_time'], + 'driver_name': json['driver_name'] == null ? undefined : json['driver_name'], + 'driver_phone': json['driver_phone'] == null ? undefined : json['driver_phone'], + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'vehicle_license_plate': json['vehicle_license_plate'] == null ? undefined : json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'] == null ? undefined : json['vehicle_model'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function ArrivalpassArrivalPassListResponseArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_id': value['arrival_pass_id'], + 'arrival_reasons': value['arrival_reasons'], + 'arrival_time': value['arrival_time'], + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'dropoff_point_id': value['dropoff_point_id'], + 'is_active': value['is_active'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassUpdateRequest.d.ts b/dist/esm/models/ArrivalpassArrivalPassUpdateRequest.d.ts new file mode 100644 index 0000000..d0c55ab --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassUpdateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ArrivalpassArrivalPassUpdateRequestArrivalPass } from './ArrivalpassArrivalPassUpdateRequestArrivalPass'; +/** + * + * @export + * @interface ArrivalpassArrivalPassUpdateRequest + */ +export interface ArrivalpassArrivalPassUpdateRequest { + /** + * Список пропусков. + * @type {Array} + * @memberof ArrivalpassArrivalPassUpdateRequest + */ + arrival_passes: Array; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassUpdateRequest interface. + */ +export declare function instanceOfArrivalpassArrivalPassUpdateRequest(value: object): value is ArrivalpassArrivalPassUpdateRequest; +export declare function ArrivalpassArrivalPassUpdateRequestFromJSON(json: any): ArrivalpassArrivalPassUpdateRequest; +export declare function ArrivalpassArrivalPassUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassUpdateRequest; +export declare function ArrivalpassArrivalPassUpdateRequestToJSON(value?: ArrivalpassArrivalPassUpdateRequest | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassUpdateRequest.js b/dist/esm/models/ArrivalpassArrivalPassUpdateRequest.js new file mode 100644 index 0000000..8a945a3 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassUpdateRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON, ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON, } from './ArrivalpassArrivalPassUpdateRequestArrivalPass'; +/** + * Check if a given object implements the ArrivalpassArrivalPassUpdateRequest interface. + */ +export function instanceOfArrivalpassArrivalPassUpdateRequest(value) { + if (!('arrival_passes' in value) || value['arrival_passes'] === undefined) + return false; + return true; +} +export function ArrivalpassArrivalPassUpdateRequestFromJSON(json) { + return ArrivalpassArrivalPassUpdateRequestFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': (json['arrival_passes'].map(ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON)), + }; +} +export function ArrivalpassArrivalPassUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': (value['arrival_passes'].map(ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON)), + }; +} diff --git a/dist/esm/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.d.ts b/dist/esm/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.d.ts new file mode 100644 index 0000000..3e8084d --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassUpdateRequestArrivalPass + */ +export interface ArrivalpassArrivalPassUpdateRequestArrivalPass { + /** + * Идентификатор пропуска. + * @type {number} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + arrival_pass_id: number; + /** + * Время прибытия в формате UTC. + * В это время начнёт действовать пропуск. + * + * Чтобы изменить время прибытия, используйте метод [/v1/carriage/pass/update](#operation/carriagePassUpdate). + * + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + arrival_time: string; + /** + * ФИО водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + driver_name: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + driver_phone: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + vehicle_license_plate: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + vehicle_model: string; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassUpdateRequestArrivalPass interface. + */ +export declare function instanceOfArrivalpassArrivalPassUpdateRequestArrivalPass(value: object): value is ArrivalpassArrivalPassUpdateRequestArrivalPass; +export declare function ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON(json: any): ArrivalpassArrivalPassUpdateRequestArrivalPass; +export declare function ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassUpdateRequestArrivalPass; +export declare function ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON(value?: ArrivalpassArrivalPassUpdateRequestArrivalPass | null): any; diff --git a/dist/esm/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.js b/dist/esm/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.js new file mode 100644 index 0000000..d31fca0 --- /dev/null +++ b/dist/esm/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ArrivalpassArrivalPassUpdateRequestArrivalPass interface. + */ +export function instanceOfArrivalpassArrivalPassUpdateRequestArrivalPass(value) { + if (!('arrival_pass_id' in value) || value['arrival_pass_id'] === undefined) + return false; + if (!('arrival_time' in value) || value['arrival_time'] === undefined) + return false; + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('vehicle_license_plate' in value) || value['vehicle_license_plate'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + return true; +} +export function ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON(json) { + return ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSONTyped(json, false); +} +export function ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_id': json['arrival_pass_id'], + 'arrival_time': json['arrival_time'], + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'vehicle_license_plate': json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'], + }; +} +export function ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_id': value['arrival_pass_id'], + 'arrival_time': value['arrival_time'], + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + }; +} diff --git a/dist/esm/models/AssemblyFbsProductListResponseProducts.d.ts b/dist/esm/models/AssemblyFbsProductListResponseProducts.d.ts new file mode 100644 index 0000000..c7cc865 --- /dev/null +++ b/dist/esm/models/AssemblyFbsProductListResponseProducts.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductsPostings } from './ProductsPostings'; +/** + * + * @export + * @interface AssemblyFbsProductListResponseProducts + */ +export interface AssemblyFbsProductListResponseProducts { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof AssemblyFbsProductListResponseProducts + */ + offer_id?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof AssemblyFbsProductListResponseProducts + */ + picture_url?: string; + /** + * Список отправлений. + * @type {Array} + * @memberof AssemblyFbsProductListResponseProducts + */ + postings?: Array; + /** + * Название товара. + * @type {string} + * @memberof AssemblyFbsProductListResponseProducts + */ + product_name?: string; + /** + * Количество товара. + * @type {number} + * @memberof AssemblyFbsProductListResponseProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof AssemblyFbsProductListResponseProducts + */ + sku?: number; +} +/** + * Check if a given object implements the AssemblyFbsProductListResponseProducts interface. + */ +export declare function instanceOfAssemblyFbsProductListResponseProducts(value: object): value is AssemblyFbsProductListResponseProducts; +export declare function AssemblyFbsProductListResponseProductsFromJSON(json: any): AssemblyFbsProductListResponseProducts; +export declare function AssemblyFbsProductListResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssemblyFbsProductListResponseProducts; +export declare function AssemblyFbsProductListResponseProductsToJSON(value?: AssemblyFbsProductListResponseProducts | null): any; diff --git a/dist/esm/models/AssemblyFbsProductListResponseProducts.js b/dist/esm/models/AssemblyFbsProductListResponseProducts.js new file mode 100644 index 0000000..5f150f8 --- /dev/null +++ b/dist/esm/models/AssemblyFbsProductListResponseProducts.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductsPostingsFromJSON, ProductsPostingsToJSON, } from './ProductsPostings'; +/** + * Check if a given object implements the AssemblyFbsProductListResponseProducts interface. + */ +export function instanceOfAssemblyFbsProductListResponseProducts(value) { + return true; +} +export function AssemblyFbsProductListResponseProductsFromJSON(json) { + return AssemblyFbsProductListResponseProductsFromJSONTyped(json, false); +} +export function AssemblyFbsProductListResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(ProductsPostingsFromJSON)), + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function AssemblyFbsProductListResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'picture_url': value['picture_url'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(ProductsPostingsToJSON)), + 'product_name': value['product_name'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/AvailabilityReason.d.ts b/dist/esm/models/AvailabilityReason.d.ts new file mode 100644 index 0000000..2b5188c --- /dev/null +++ b/dist/esm/models/AvailabilityReason.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReasonHumanText } from './ReasonHumanText'; +/** + * + * @export + * @interface AvailabilityReason + */ +export interface AvailabilityReason { + /** + * + * @type {ReasonHumanText} + * @memberof AvailabilityReason + */ + human_text?: ReasonHumanText; + /** + * Идентификатор причины. + * @type {number} + * @memberof AvailabilityReason + */ + id?: number; +} +/** + * Check if a given object implements the AvailabilityReason interface. + */ +export declare function instanceOfAvailabilityReason(value: object): value is AvailabilityReason; +export declare function AvailabilityReasonFromJSON(json: any): AvailabilityReason; +export declare function AvailabilityReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityReason; +export declare function AvailabilityReasonToJSON(value?: AvailabilityReason | null): any; diff --git a/dist/esm/models/AvailabilityReason.js b/dist/esm/models/AvailabilityReason.js new file mode 100644 index 0000000..e545932 --- /dev/null +++ b/dist/esm/models/AvailabilityReason.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReasonHumanTextFromJSON, ReasonHumanTextToJSON, } from './ReasonHumanText'; +/** + * Check if a given object implements the AvailabilityReason interface. + */ +export function instanceOfAvailabilityReason(value) { + return true; +} +export function AvailabilityReasonFromJSON(json) { + return AvailabilityReasonFromJSONTyped(json, false); +} +export function AvailabilityReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'human_text': json['human_text'] == null ? undefined : ReasonHumanTextFromJSON(json['human_text']), + 'id': json['id'] == null ? undefined : json['id'], + }; +} +export function AvailabilityReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'human_text': ReasonHumanTextToJSON(value['human_text']), + 'id': value['id'], + }; +} diff --git a/dist/esm/models/AvailabilityStatusInvalidReasonEnum.d.ts b/dist/esm/models/AvailabilityStatusInvalidReasonEnum.d.ts new file mode 100644 index 0000000..5f71fb6 --- /dev/null +++ b/dist/esm/models/AvailabilityStatusInvalidReasonEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина недоступности склада: + * - `UNSPECIFIED` — не определена; + * - `NO_REASON` — нет причины; + * - `PARTIAL_MATRIX_AVAILABLE` — склад не может принять часть товаров; + * - `NOT_AVAILABLE_MATRIX` — склад не может принять все товары; + * - `NOT_AVAILABLE_RANK` — склад недоступен из-за рейтинга; + * - `NOT_AVAILABLE_ROUTE` — нет доступного маршрута; + * - `NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT` — нет таймслотов на точке отгрузки; + * - `NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE` — нет таймслотов на складе поставки; + * - `NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES` — нет таймслотов на складах отгрузки и поставки; + * - `NOT_AVAILABLE_TIMESLOT_NO_REASON` — нет таймслотов. + * + * @export + */ +export declare const AvailabilityStatusInvalidReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly NO_REASON: "NO_REASON"; + readonly PARTIAL_MATRIX_AVAILABLE: "PARTIAL_MATRIX_AVAILABLE"; + readonly NOT_AVAILABLE_MATRIX: "NOT_AVAILABLE_MATRIX"; + readonly NOT_AVAILABLE_RANK: "NOT_AVAILABLE_RANK"; + readonly NOT_AVAILABLE_ROUTE: "NOT_AVAILABLE_ROUTE"; + readonly NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT: "NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT"; + readonly NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE: "NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE"; + readonly NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES: "NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES"; + readonly NOT_AVAILABLE_TIMESLOT_NO_REASON: "NOT_AVAILABLE_TIMESLOT_NO_REASON"; +}; +export type AvailabilityStatusInvalidReasonEnum = typeof AvailabilityStatusInvalidReasonEnum[keyof typeof AvailabilityStatusInvalidReasonEnum]; +export declare function instanceOfAvailabilityStatusInvalidReasonEnum(value: any): boolean; +export declare function AvailabilityStatusInvalidReasonEnumFromJSON(json: any): AvailabilityStatusInvalidReasonEnum; +export declare function AvailabilityStatusInvalidReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityStatusInvalidReasonEnum; +export declare function AvailabilityStatusInvalidReasonEnumToJSON(value?: AvailabilityStatusInvalidReasonEnum | null): any; diff --git a/dist/esm/models/AvailabilityStatusInvalidReasonEnum.js b/dist/esm/models/AvailabilityStatusInvalidReasonEnum.js new file mode 100644 index 0000000..475bd6e --- /dev/null +++ b/dist/esm/models/AvailabilityStatusInvalidReasonEnum.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина недоступности склада: + * - `UNSPECIFIED` — не определена; + * - `NO_REASON` — нет причины; + * - `PARTIAL_MATRIX_AVAILABLE` — склад не может принять часть товаров; + * - `NOT_AVAILABLE_MATRIX` — склад не может принять все товары; + * - `NOT_AVAILABLE_RANK` — склад недоступен из-за рейтинга; + * - `NOT_AVAILABLE_ROUTE` — нет доступного маршрута; + * - `NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT` — нет таймслотов на точке отгрузки; + * - `NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE` — нет таймслотов на складе поставки; + * - `NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES` — нет таймслотов на складах отгрузки и поставки; + * - `NOT_AVAILABLE_TIMESLOT_NO_REASON` — нет таймслотов. + * + * @export + */ +export const AvailabilityStatusInvalidReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + NO_REASON: 'NO_REASON', + PARTIAL_MATRIX_AVAILABLE: 'PARTIAL_MATRIX_AVAILABLE', + NOT_AVAILABLE_MATRIX: 'NOT_AVAILABLE_MATRIX', + NOT_AVAILABLE_RANK: 'NOT_AVAILABLE_RANK', + NOT_AVAILABLE_ROUTE: 'NOT_AVAILABLE_ROUTE', + NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT: 'NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT', + NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE: 'NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE', + NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES: 'NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES', + NOT_AVAILABLE_TIMESLOT_NO_REASON: 'NOT_AVAILABLE_TIMESLOT_NO_REASON' +}; +export function instanceOfAvailabilityStatusInvalidReasonEnum(value) { + for (const key in AvailabilityStatusInvalidReasonEnum) { + if (Object.prototype.hasOwnProperty.call(AvailabilityStatusInvalidReasonEnum, key)) { + if (AvailabilityStatusInvalidReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function AvailabilityStatusInvalidReasonEnumFromJSON(json) { + return AvailabilityStatusInvalidReasonEnumFromJSONTyped(json, false); +} +export function AvailabilityStatusInvalidReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function AvailabilityStatusInvalidReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/AvailabilityStatusStateEnum.d.ts b/dist/esm/models/AvailabilityStatusStateEnum.d.ts new file mode 100644 index 0000000..ab445cf --- /dev/null +++ b/dist/esm/models/AvailabilityStatusStateEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус доступности: + * - `UNSPECIFIED` — не определён, + * - `FULL_AVAILABLE` — доступен, + * - `PARTIAL_AVAILABLE` — частично доступен, + * - `NOT_AVAILABLE` — недоступен. + * + * @export + */ +export declare const AvailabilityStatusStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly FULL_AVAILABLE: "FULL_AVAILABLE"; + readonly PARTIAL_AVAILABLE: "PARTIAL_AVAILABLE"; + readonly NOT_AVAILABLE: "NOT_AVAILABLE"; +}; +export type AvailabilityStatusStateEnum = typeof AvailabilityStatusStateEnum[keyof typeof AvailabilityStatusStateEnum]; +export declare function instanceOfAvailabilityStatusStateEnum(value: any): boolean; +export declare function AvailabilityStatusStateEnumFromJSON(json: any): AvailabilityStatusStateEnum; +export declare function AvailabilityStatusStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityStatusStateEnum; +export declare function AvailabilityStatusStateEnumToJSON(value?: AvailabilityStatusStateEnum | null): any; diff --git a/dist/esm/models/AvailabilityStatusStateEnum.js b/dist/esm/models/AvailabilityStatusStateEnum.js new file mode 100644 index 0000000..7a7327f --- /dev/null +++ b/dist/esm/models/AvailabilityStatusStateEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус доступности: + * - `UNSPECIFIED` — не определён, + * - `FULL_AVAILABLE` — доступен, + * - `PARTIAL_AVAILABLE` — частично доступен, + * - `NOT_AVAILABLE` — недоступен. + * + * @export + */ +export const AvailabilityStatusStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + FULL_AVAILABLE: 'FULL_AVAILABLE', + PARTIAL_AVAILABLE: 'PARTIAL_AVAILABLE', + NOT_AVAILABLE: 'NOT_AVAILABLE' +}; +export function instanceOfAvailabilityStatusStateEnum(value) { + for (const key in AvailabilityStatusStateEnum) { + if (Object.prototype.hasOwnProperty.call(AvailabilityStatusStateEnum, key)) { + if (AvailabilityStatusStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function AvailabilityStatusStateEnumFromJSON(json) { + return AvailabilityStatusStateEnumFromJSONTyped(json, false); +} +export function AvailabilityStatusStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function AvailabilityStatusStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/BrandBrandCompanyCertificationListRequest.d.ts b/dist/esm/models/BrandBrandCompanyCertificationListRequest.d.ts new file mode 100644 index 0000000..5ac13fb --- /dev/null +++ b/dist/esm/models/BrandBrandCompanyCertificationListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BrandBrandCompanyCertificationListRequest + */ +export interface BrandBrandCompanyCertificationListRequest { + /** + * Номер страницы, возвращаемой в запросе. + * @type {number} + * @memberof BrandBrandCompanyCertificationListRequest + */ + page: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof BrandBrandCompanyCertificationListRequest + */ + page_size: number; +} +/** + * Check if a given object implements the BrandBrandCompanyCertificationListRequest interface. + */ +export declare function instanceOfBrandBrandCompanyCertificationListRequest(value: object): value is BrandBrandCompanyCertificationListRequest; +export declare function BrandBrandCompanyCertificationListRequestFromJSON(json: any): BrandBrandCompanyCertificationListRequest; +export declare function BrandBrandCompanyCertificationListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandBrandCompanyCertificationListRequest; +export declare function BrandBrandCompanyCertificationListRequestToJSON(value?: BrandBrandCompanyCertificationListRequest | null): any; diff --git a/dist/esm/models/BrandBrandCompanyCertificationListRequest.js b/dist/esm/models/BrandBrandCompanyCertificationListRequest.js new file mode 100644 index 0000000..2a3f916 --- /dev/null +++ b/dist/esm/models/BrandBrandCompanyCertificationListRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the BrandBrandCompanyCertificationListRequest interface. + */ +export function instanceOfBrandBrandCompanyCertificationListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +export function BrandBrandCompanyCertificationListRequestFromJSON(json) { + return BrandBrandCompanyCertificationListRequestFromJSONTyped(json, false); +} +export function BrandBrandCompanyCertificationListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'page_size': json['page_size'], + }; +} +export function BrandBrandCompanyCertificationListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/esm/models/BrandBrandCompanyCertificationListResponse.d.ts b/dist/esm/models/BrandBrandCompanyCertificationListResponse.d.ts new file mode 100644 index 0000000..cb41926 --- /dev/null +++ b/dist/esm/models/BrandBrandCompanyCertificationListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BrandCompanyCertificationListResponseBrandCertificationResult } from './BrandCompanyCertificationListResponseBrandCertificationResult'; +/** + * + * @export + * @interface BrandBrandCompanyCertificationListResponse + */ +export interface BrandBrandCompanyCertificationListResponse { + /** + * + * @type {BrandCompanyCertificationListResponseBrandCertificationResult} + * @memberof BrandBrandCompanyCertificationListResponse + */ + result?: BrandCompanyCertificationListResponseBrandCertificationResult; +} +/** + * Check if a given object implements the BrandBrandCompanyCertificationListResponse interface. + */ +export declare function instanceOfBrandBrandCompanyCertificationListResponse(value: object): value is BrandBrandCompanyCertificationListResponse; +export declare function BrandBrandCompanyCertificationListResponseFromJSON(json: any): BrandBrandCompanyCertificationListResponse; +export declare function BrandBrandCompanyCertificationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandBrandCompanyCertificationListResponse; +export declare function BrandBrandCompanyCertificationListResponseToJSON(value?: BrandBrandCompanyCertificationListResponse | null): any; diff --git a/dist/esm/models/BrandBrandCompanyCertificationListResponse.js b/dist/esm/models/BrandBrandCompanyCertificationListResponse.js new file mode 100644 index 0000000..80bd9f0 --- /dev/null +++ b/dist/esm/models/BrandBrandCompanyCertificationListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BrandCompanyCertificationListResponseBrandCertificationResultFromJSON, BrandCompanyCertificationListResponseBrandCertificationResultToJSON, } from './BrandCompanyCertificationListResponseBrandCertificationResult'; +/** + * Check if a given object implements the BrandBrandCompanyCertificationListResponse interface. + */ +export function instanceOfBrandBrandCompanyCertificationListResponse(value) { + return true; +} +export function BrandBrandCompanyCertificationListResponseFromJSON(json) { + return BrandBrandCompanyCertificationListResponseFromJSONTyped(json, false); +} +export function BrandBrandCompanyCertificationListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : BrandCompanyCertificationListResponseBrandCertificationResultFromJSON(json['result']), + }; +} +export function BrandBrandCompanyCertificationListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': BrandCompanyCertificationListResponseBrandCertificationResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/BrandCompanyCertificationListResponseBrandCertification.d.ts b/dist/esm/models/BrandCompanyCertificationListResponseBrandCertification.d.ts new file mode 100644 index 0000000..66fc33d --- /dev/null +++ b/dist/esm/models/BrandCompanyCertificationListResponseBrandCertification.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BrandCompanyCertificationListResponseBrandCertification + */ +export interface BrandCompanyCertificationListResponseBrandCertification { + /** + * Название бренда. + * @type {string} + * @memberof BrandCompanyCertificationListResponseBrandCertification + */ + brand_name?: string; + /** + * Признак, что требуется сертификат: + * - `true` — сертификат не нужен; + * - `false` — требуется сертификат. + * + * @type {boolean} + * @memberof BrandCompanyCertificationListResponseBrandCertification + */ + has_certificate?: boolean; +} +/** + * Check if a given object implements the BrandCompanyCertificationListResponseBrandCertification interface. + */ +export declare function instanceOfBrandCompanyCertificationListResponseBrandCertification(value: object): value is BrandCompanyCertificationListResponseBrandCertification; +export declare function BrandCompanyCertificationListResponseBrandCertificationFromJSON(json: any): BrandCompanyCertificationListResponseBrandCertification; +export declare function BrandCompanyCertificationListResponseBrandCertificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandCompanyCertificationListResponseBrandCertification; +export declare function BrandCompanyCertificationListResponseBrandCertificationToJSON(value?: BrandCompanyCertificationListResponseBrandCertification | null): any; diff --git a/dist/esm/models/BrandCompanyCertificationListResponseBrandCertification.js b/dist/esm/models/BrandCompanyCertificationListResponseBrandCertification.js new file mode 100644 index 0000000..be1e9a8 --- /dev/null +++ b/dist/esm/models/BrandCompanyCertificationListResponseBrandCertification.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the BrandCompanyCertificationListResponseBrandCertification interface. + */ +export function instanceOfBrandCompanyCertificationListResponseBrandCertification(value) { + return true; +} +export function BrandCompanyCertificationListResponseBrandCertificationFromJSON(json) { + return BrandCompanyCertificationListResponseBrandCertificationFromJSONTyped(json, false); +} +export function BrandCompanyCertificationListResponseBrandCertificationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'brand_name': json['brand_name'] == null ? undefined : json['brand_name'], + 'has_certificate': json['has_certificate'] == null ? undefined : json['has_certificate'], + }; +} +export function BrandCompanyCertificationListResponseBrandCertificationToJSON(value) { + if (value == null) { + return value; + } + return { + 'brand_name': value['brand_name'], + 'has_certificate': value['has_certificate'], + }; +} diff --git a/dist/esm/models/BrandCompanyCertificationListResponseBrandCertificationResult.d.ts b/dist/esm/models/BrandCompanyCertificationListResponseBrandCertificationResult.d.ts new file mode 100644 index 0000000..4dfa08b --- /dev/null +++ b/dist/esm/models/BrandCompanyCertificationListResponseBrandCertificationResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BrandCompanyCertificationListResponseBrandCertification } from './BrandCompanyCertificationListResponseBrandCertification'; +/** + * Результат запроса. + * @export + * @interface BrandCompanyCertificationListResponseBrandCertificationResult + */ +export interface BrandCompanyCertificationListResponseBrandCertificationResult { + /** + * Информация о сертифицируемых брендах. + * @type {Array} + * @memberof BrandCompanyCertificationListResponseBrandCertificationResult + */ + brand_certification?: Array; + /** + * Общее количество брендов. + * @type {number} + * @memberof BrandCompanyCertificationListResponseBrandCertificationResult + */ + total?: number; +} +/** + * Check if a given object implements the BrandCompanyCertificationListResponseBrandCertificationResult interface. + */ +export declare function instanceOfBrandCompanyCertificationListResponseBrandCertificationResult(value: object): value is BrandCompanyCertificationListResponseBrandCertificationResult; +export declare function BrandCompanyCertificationListResponseBrandCertificationResultFromJSON(json: any): BrandCompanyCertificationListResponseBrandCertificationResult; +export declare function BrandCompanyCertificationListResponseBrandCertificationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandCompanyCertificationListResponseBrandCertificationResult; +export declare function BrandCompanyCertificationListResponseBrandCertificationResultToJSON(value?: BrandCompanyCertificationListResponseBrandCertificationResult | null): any; diff --git a/dist/esm/models/BrandCompanyCertificationListResponseBrandCertificationResult.js b/dist/esm/models/BrandCompanyCertificationListResponseBrandCertificationResult.js new file mode 100644 index 0000000..d6316ea --- /dev/null +++ b/dist/esm/models/BrandCompanyCertificationListResponseBrandCertificationResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BrandCompanyCertificationListResponseBrandCertificationFromJSON, BrandCompanyCertificationListResponseBrandCertificationToJSON, } from './BrandCompanyCertificationListResponseBrandCertification'; +/** + * Check if a given object implements the BrandCompanyCertificationListResponseBrandCertificationResult interface. + */ +export function instanceOfBrandCompanyCertificationListResponseBrandCertificationResult(value) { + return true; +} +export function BrandCompanyCertificationListResponseBrandCertificationResultFromJSON(json) { + return BrandCompanyCertificationListResponseBrandCertificationResultFromJSONTyped(json, false); +} +export function BrandCompanyCertificationListResponseBrandCertificationResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'brand_certification': json['brand_certification'] == null ? undefined : (json['brand_certification'].map(BrandCompanyCertificationListResponseBrandCertificationFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function BrandCompanyCertificationListResponseBrandCertificationResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'brand_certification': value['brand_certification'] == null ? undefined : (value['brand_certification'].map(BrandCompanyCertificationListResponseBrandCertificationToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/CancelSupplyResultsCancelSupplyError.d.ts b/dist/esm/models/CancelSupplyResultsCancelSupplyError.d.ts new file mode 100644 index 0000000..23d98e2 --- /dev/null +++ b/dist/esm/models/CancelSupplyResultsCancelSupplyError.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CancelSupplyResultsCancelSupplyError: { + readonly INVALID_SUPPLY_STATE: "INVALID_SUPPLY_STATE"; + readonly SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly SUPPLY_DOES_NOT_BELONG_TO_ORDER: "SUPPLY_DOES_NOT_BELONG_TO_ORDER"; + readonly SUPPLY_BELONGS_TO_VIRTUAL_ORDER: "SUPPLY_BELONGS_TO_VIRTUAL_ORDER"; + readonly OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS: "OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS"; +}; +export type CancelSupplyResultsCancelSupplyError = typeof CancelSupplyResultsCancelSupplyError[keyof typeof CancelSupplyResultsCancelSupplyError]; +export declare function instanceOfCancelSupplyResultsCancelSupplyError(value: any): boolean; +export declare function CancelSupplyResultsCancelSupplyErrorFromJSON(json: any): CancelSupplyResultsCancelSupplyError; +export declare function CancelSupplyResultsCancelSupplyErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelSupplyResultsCancelSupplyError; +export declare function CancelSupplyResultsCancelSupplyErrorToJSON(value?: CancelSupplyResultsCancelSupplyError | null): any; diff --git a/dist/esm/models/CancelSupplyResultsCancelSupplyError.js b/dist/esm/models/CancelSupplyResultsCancelSupplyError.js new file mode 100644 index 0000000..06c884c --- /dev/null +++ b/dist/esm/models/CancelSupplyResultsCancelSupplyError.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CancelSupplyResultsCancelSupplyError = { + INVALID_SUPPLY_STATE: 'INVALID_SUPPLY_STATE', + SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + SUPPLY_DOES_NOT_BELONG_TO_ORDER: 'SUPPLY_DOES_NOT_BELONG_TO_ORDER', + SUPPLY_BELONGS_TO_VIRTUAL_ORDER: 'SUPPLY_BELONGS_TO_VIRTUAL_ORDER', + OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS: 'OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS' +}; +export function instanceOfCancelSupplyResultsCancelSupplyError(value) { + for (const key in CancelSupplyResultsCancelSupplyError) { + if (Object.prototype.hasOwnProperty.call(CancelSupplyResultsCancelSupplyError, key)) { + if (CancelSupplyResultsCancelSupplyError[key] === value) { + return true; + } + } + } + return false; +} +export function CancelSupplyResultsCancelSupplyErrorFromJSON(json) { + return CancelSupplyResultsCancelSupplyErrorFromJSONTyped(json, false); +} +export function CancelSupplyResultsCancelSupplyErrorFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CancelSupplyResultsCancelSupplyErrorToJSON(value) { + return value; +} diff --git a/dist/esm/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.d.ts b/dist/esm/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.d.ts new file mode 100644 index 0000000..0beb94a --- /dev/null +++ b/dist/esm/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CancellationAllowabilityCanNotCancelSupplyReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_SUPPLY_STATE: "INVALID_SUPPLY_STATE"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly SUPPLY_HAS_ACTIVE_UTD: "SUPPLY_HAS_ACTIVE_UTD"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly PICKUP_SUPPLY_IS_LOCKED_DOWN: "PICKUP_SUPPLY_IS_LOCKED_DOWN"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CancellationAllowabilityCanNotCancelSupplyReasonEnum = typeof CancellationAllowabilityCanNotCancelSupplyReasonEnum[keyof typeof CancellationAllowabilityCanNotCancelSupplyReasonEnum]; +export declare function instanceOfCancellationAllowabilityCanNotCancelSupplyReasonEnum(value: any): boolean; +export declare function CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON(json: any): CancellationAllowabilityCanNotCancelSupplyReasonEnum; +export declare function CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancellationAllowabilityCanNotCancelSupplyReasonEnum; +export declare function CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON(value?: CancellationAllowabilityCanNotCancelSupplyReasonEnum | null): any; diff --git a/dist/esm/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.js b/dist/esm/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.js new file mode 100644 index 0000000..f098edc --- /dev/null +++ b/dist/esm/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CancellationAllowabilityCanNotCancelSupplyReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_SUPPLY_STATE: 'INVALID_SUPPLY_STATE', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + SUPPLY_HAS_ACTIVE_UTD: 'SUPPLY_HAS_ACTIVE_UTD', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + PICKUP_SUPPLY_IS_LOCKED_DOWN: 'PICKUP_SUPPLY_IS_LOCKED_DOWN', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfCancellationAllowabilityCanNotCancelSupplyReasonEnum(value) { + for (const key in CancellationAllowabilityCanNotCancelSupplyReasonEnum) { + if (Object.prototype.hasOwnProperty.call(CancellationAllowabilityCanNotCancelSupplyReasonEnum, key)) { + if (CancellationAllowabilityCanNotCancelSupplyReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON(json) { + return CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSONTyped(json, false); +} +export function CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CancellationErrorCode.d.ts b/dist/esm/models/CancellationErrorCode.d.ts new file mode 100644 index 0000000..ec1480b --- /dev/null +++ b/dist/esm/models/CancellationErrorCode.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Код ошибки: + * - `CODE_UNSPECIFIED` — не определён; + * - `NO_RESPONSE_FROM_3PF` — отмена заявки не подтверждена, мы не получили ответа от склада партнёра; + * - `ACCEPTANCE_ALREADY_STARTED` — отмена заявки не подтверждена, приёмка уже началась. + * + * @export + */ +export declare const CancellationErrorCode: { + readonly CODE_UNSPECIFIED: "CODE_UNSPECIFIED"; + readonly NO_RESPONSE_FROM_3PF: "NO_RESPONSE_FROM_3PF"; + readonly ACCEPTANCE_ALREADY_STARTED: "ACCEPTANCE_ALREADY_STARTED"; +}; +export type CancellationErrorCode = typeof CancellationErrorCode[keyof typeof CancellationErrorCode]; +export declare function instanceOfCancellationErrorCode(value: any): boolean; +export declare function CancellationErrorCodeFromJSON(json: any): CancellationErrorCode; +export declare function CancellationErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancellationErrorCode; +export declare function CancellationErrorCodeToJSON(value?: CancellationErrorCode | null): any; diff --git a/dist/esm/models/CancellationErrorCode.js b/dist/esm/models/CancellationErrorCode.js new file mode 100644 index 0000000..70037db --- /dev/null +++ b/dist/esm/models/CancellationErrorCode.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Код ошибки: + * - `CODE_UNSPECIFIED` — не определён; + * - `NO_RESPONSE_FROM_3PF` — отмена заявки не подтверждена, мы не получили ответа от склада партнёра; + * - `ACCEPTANCE_ALREADY_STARTED` — отмена заявки не подтверждена, приёмка уже началась. + * + * @export + */ +export const CancellationErrorCode = { + CODE_UNSPECIFIED: 'CODE_UNSPECIFIED', + NO_RESPONSE_FROM_3PF: 'NO_RESPONSE_FROM_3PF', + ACCEPTANCE_ALREADY_STARTED: 'ACCEPTANCE_ALREADY_STARTED' +}; +export function instanceOfCancellationErrorCode(value) { + for (const key in CancellationErrorCode) { + if (Object.prototype.hasOwnProperty.call(CancellationErrorCode, key)) { + if (CancellationErrorCode[key] === value) { + return true; + } + } + } + return false; +} +export function CancellationErrorCodeFromJSON(json) { + return CancellationErrorCodeFromJSONTyped(json, false); +} +export function CancellationErrorCodeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CancellationErrorCodeToJSON(value) { + return value; +} diff --git a/dist/esm/models/CancellationStateCancellationError.d.ts b/dist/esm/models/CancellationStateCancellationError.d.ts new file mode 100644 index 0000000..c6cd627 --- /dev/null +++ b/dist/esm/models/CancellationStateCancellationError.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CancellationErrorCode } from './CancellationErrorCode'; +/** + * Ошибка отмены. + * @export + * @interface CancellationStateCancellationError + */ +export interface CancellationStateCancellationError { + /** + * + * @type {CancellationErrorCode} + * @memberof CancellationStateCancellationError + */ + error_code?: CancellationErrorCode; + /** + * Описание ошибки. + * @type {string} + * @memberof CancellationStateCancellationError + */ + message?: string; +} +/** + * Check if a given object implements the CancellationStateCancellationError interface. + */ +export declare function instanceOfCancellationStateCancellationError(value: object): value is CancellationStateCancellationError; +export declare function CancellationStateCancellationErrorFromJSON(json: any): CancellationStateCancellationError; +export declare function CancellationStateCancellationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancellationStateCancellationError; +export declare function CancellationStateCancellationErrorToJSON(value?: CancellationStateCancellationError | null): any; diff --git a/dist/esm/models/CancellationStateCancellationError.js b/dist/esm/models/CancellationStateCancellationError.js new file mode 100644 index 0000000..85a6310 --- /dev/null +++ b/dist/esm/models/CancellationStateCancellationError.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CancellationErrorCodeFromJSON, CancellationErrorCodeToJSON, } from './CancellationErrorCode'; +/** + * Check if a given object implements the CancellationStateCancellationError interface. + */ +export function instanceOfCancellationStateCancellationError(value) { + return true; +} +export function CancellationStateCancellationErrorFromJSON(json) { + return CancellationStateCancellationErrorFromJSONTyped(json, false); +} +export function CancellationStateCancellationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_code': json['error_code'] == null ? undefined : CancellationErrorCodeFromJSON(json['error_code']), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function CancellationStateCancellationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_code': CancellationErrorCodeToJSON(value['error_code']), + 'message': value['message'], + }; +} diff --git a/dist/esm/models/CargoInfoContentTypeEnum.d.ts b/dist/esm/models/CargoInfoContentTypeEnum.d.ts new file mode 100644 index 0000000..d7292b8 --- /dev/null +++ b/dist/esm/models/CargoInfoContentTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ассортимента грузоместа: + * - `UNSPECIFIED` — не определён; + * - `MONO` — палета-моно или коробка-моно; + * - `MIX` — палета-микс или коробка-микс; + * - `NONE` — отсутствует. + * + * @export + */ +export declare const CargoInfoContentTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONO: "MONO"; + readonly MIX: "MIX"; + readonly NONE: "NONE"; +}; +export type CargoInfoContentTypeEnum = typeof CargoInfoContentTypeEnum[keyof typeof CargoInfoContentTypeEnum]; +export declare function instanceOfCargoInfoContentTypeEnum(value: any): boolean; +export declare function CargoInfoContentTypeEnumFromJSON(json: any): CargoInfoContentTypeEnum; +export declare function CargoInfoContentTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoContentTypeEnum; +export declare function CargoInfoContentTypeEnumToJSON(value?: CargoInfoContentTypeEnum | null): any; diff --git a/dist/esm/models/CargoInfoContentTypeEnum.js b/dist/esm/models/CargoInfoContentTypeEnum.js new file mode 100644 index 0000000..815b164 --- /dev/null +++ b/dist/esm/models/CargoInfoContentTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ассортимента грузоместа: + * - `UNSPECIFIED` — не определён; + * - `MONO` — палета-моно или коробка-моно; + * - `MIX` — палета-микс или коробка-микс; + * - `NONE` — отсутствует. + * + * @export + */ +export const CargoInfoContentTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONO: 'MONO', + MIX: 'MIX', + NONE: 'NONE' +}; +export function instanceOfCargoInfoContentTypeEnum(value) { + for (const key in CargoInfoContentTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoInfoContentTypeEnum, key)) { + if (CargoInfoContentTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoInfoContentTypeEnumFromJSON(json) { + return CargoInfoContentTypeEnumFromJSONTyped(json, false); +} +export function CargoInfoContentTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoInfoContentTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoInfoPlacementZoneTypeEnum.d.ts b/dist/esm/models/CargoInfoPlacementZoneTypeEnum.d.ts new file mode 100644 index 0000000..75b9db1 --- /dev/null +++ b/dist/esm/models/CargoInfoPlacementZoneTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип зоны размещения: + * - `UNSPECIFIED` — не требуется распределение по зонам размещения; + * - `UNDEFINED` — не определён; + * - `SINGLE` — одинаковая зона размещения в составе грузоместа; + * - `MULTI` — разная зона размещения в составе грузоместа. + * + * @export + */ +export declare const CargoInfoPlacementZoneTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNDEFINED: "UNDEFINED"; + readonly SINGLE: "SINGLE"; + readonly MULTI: "MULTI"; +}; +export type CargoInfoPlacementZoneTypeEnum = typeof CargoInfoPlacementZoneTypeEnum[keyof typeof CargoInfoPlacementZoneTypeEnum]; +export declare function instanceOfCargoInfoPlacementZoneTypeEnum(value: any): boolean; +export declare function CargoInfoPlacementZoneTypeEnumFromJSON(json: any): CargoInfoPlacementZoneTypeEnum; +export declare function CargoInfoPlacementZoneTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoPlacementZoneTypeEnum; +export declare function CargoInfoPlacementZoneTypeEnumToJSON(value?: CargoInfoPlacementZoneTypeEnum | null): any; diff --git a/dist/esm/models/CargoInfoPlacementZoneTypeEnum.js b/dist/esm/models/CargoInfoPlacementZoneTypeEnum.js new file mode 100644 index 0000000..ee04990 --- /dev/null +++ b/dist/esm/models/CargoInfoPlacementZoneTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип зоны размещения: + * - `UNSPECIFIED` — не требуется распределение по зонам размещения; + * - `UNDEFINED` — не определён; + * - `SINGLE` — одинаковая зона размещения в составе грузоместа; + * - `MULTI` — разная зона размещения в составе грузоместа. + * + * @export + */ +export const CargoInfoPlacementZoneTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNDEFINED: 'UNDEFINED', + SINGLE: 'SINGLE', + MULTI: 'MULTI' +}; +export function instanceOfCargoInfoPlacementZoneTypeEnum(value) { + for (const key in CargoInfoPlacementZoneTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoInfoPlacementZoneTypeEnum, key)) { + if (CargoInfoPlacementZoneTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoInfoPlacementZoneTypeEnumFromJSON(json) { + return CargoInfoPlacementZoneTypeEnumFromJSONTyped(json, false); +} +export function CargoInfoPlacementZoneTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoInfoPlacementZoneTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoInfoTrackingInfo.d.ts b/dist/esm/models/CargoInfoTrackingInfo.d.ts new file mode 100644 index 0000000..e04ed60 --- /dev/null +++ b/dist/esm/models/CargoInfoTrackingInfo.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoInfoTrackingInfoStatusEnum } from './CargoInfoTrackingInfoStatusEnum'; +import type { CargoInfoTrackingInfoTypeEnum } from './CargoInfoTrackingInfoTypeEnum'; +/** + * Отслеживание грузоместа. + * @export + * @interface CargoInfoTrackingInfo + */ +export interface CargoInfoTrackingInfo { + /** + * Дата приезда. + * @type {string} + * @memberof CargoInfoTrackingInfo + */ + date?: string; + /** + * + * @type {CargoInfoTrackingInfoStatusEnum} + * @memberof CargoInfoTrackingInfo + */ + status?: CargoInfoTrackingInfoStatusEnum; + /** + * + * @type {CargoInfoTrackingInfoTypeEnum} + * @memberof CargoInfoTrackingInfo + */ + type?: CargoInfoTrackingInfoTypeEnum; +} +/** + * Check if a given object implements the CargoInfoTrackingInfo interface. + */ +export declare function instanceOfCargoInfoTrackingInfo(value: object): value is CargoInfoTrackingInfo; +export declare function CargoInfoTrackingInfoFromJSON(json: any): CargoInfoTrackingInfo; +export declare function CargoInfoTrackingInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoTrackingInfo; +export declare function CargoInfoTrackingInfoToJSON(value?: CargoInfoTrackingInfo | null): any; diff --git a/dist/esm/models/CargoInfoTrackingInfo.js b/dist/esm/models/CargoInfoTrackingInfo.js new file mode 100644 index 0000000..f59806c --- /dev/null +++ b/dist/esm/models/CargoInfoTrackingInfo.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoInfoTrackingInfoStatusEnumFromJSON, CargoInfoTrackingInfoStatusEnumToJSON, } from './CargoInfoTrackingInfoStatusEnum'; +import { CargoInfoTrackingInfoTypeEnumFromJSON, CargoInfoTrackingInfoTypeEnumToJSON, } from './CargoInfoTrackingInfoTypeEnum'; +/** + * Check if a given object implements the CargoInfoTrackingInfo interface. + */ +export function instanceOfCargoInfoTrackingInfo(value) { + return true; +} +export function CargoInfoTrackingInfoFromJSON(json) { + return CargoInfoTrackingInfoFromJSONTyped(json, false); +} +export function CargoInfoTrackingInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'status': json['status'] == null ? undefined : CargoInfoTrackingInfoStatusEnumFromJSON(json['status']), + 'type': json['type'] == null ? undefined : CargoInfoTrackingInfoTypeEnumFromJSON(json['type']), + }; +} +export function CargoInfoTrackingInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'status': CargoInfoTrackingInfoStatusEnumToJSON(value['status']), + 'type': CargoInfoTrackingInfoTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoInfoTrackingInfoStatusEnum.d.ts b/dist/esm/models/CargoInfoTrackingInfoStatusEnum.d.ts new file mode 100644 index 0000000..e63e86b --- /dev/null +++ b/dist/esm/models/CargoInfoTrackingInfoStatusEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ACCEPTING` — приёмка; + * - `PROCESSED` — обработано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `DELETED` — удалено. + * + * @export + */ +export declare const CargoInfoTrackingInfoStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly REFUSED: "REFUSED"; + readonly ON_WAREHOUSE: "ON_WAREHOUSE"; + readonly NOT_DELIVERED: "NOT_DELIVERED"; + readonly ACCEPTING: "ACCEPTING"; + readonly PROCESSED: "PROCESSED"; + readonly ON_POINT_SHIPMENT: "ON_POINT_SHIPMENT"; + readonly ON_TRANSIT_WAREHOUSE: "ON_TRANSIT_WAREHOUSE"; + readonly LOST: "LOST"; + readonly CREATED: "CREATED"; + readonly DELETED: "DELETED"; +}; +export type CargoInfoTrackingInfoStatusEnum = typeof CargoInfoTrackingInfoStatusEnum[keyof typeof CargoInfoTrackingInfoStatusEnum]; +export declare function instanceOfCargoInfoTrackingInfoStatusEnum(value: any): boolean; +export declare function CargoInfoTrackingInfoStatusEnumFromJSON(json: any): CargoInfoTrackingInfoStatusEnum; +export declare function CargoInfoTrackingInfoStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoTrackingInfoStatusEnum; +export declare function CargoInfoTrackingInfoStatusEnumToJSON(value?: CargoInfoTrackingInfoStatusEnum | null): any; diff --git a/dist/esm/models/CargoInfoTrackingInfoStatusEnum.js b/dist/esm/models/CargoInfoTrackingInfoStatusEnum.js new file mode 100644 index 0000000..f1f6750 --- /dev/null +++ b/dist/esm/models/CargoInfoTrackingInfoStatusEnum.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ACCEPTING` — приёмка; + * - `PROCESSED` — обработано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `DELETED` — удалено. + * + * @export + */ +export const CargoInfoTrackingInfoStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + REFUSED: 'REFUSED', + ON_WAREHOUSE: 'ON_WAREHOUSE', + NOT_DELIVERED: 'NOT_DELIVERED', + ACCEPTING: 'ACCEPTING', + PROCESSED: 'PROCESSED', + ON_POINT_SHIPMENT: 'ON_POINT_SHIPMENT', + ON_TRANSIT_WAREHOUSE: 'ON_TRANSIT_WAREHOUSE', + LOST: 'LOST', + CREATED: 'CREATED', + DELETED: 'DELETED' +}; +export function instanceOfCargoInfoTrackingInfoStatusEnum(value) { + for (const key in CargoInfoTrackingInfoStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoInfoTrackingInfoStatusEnum, key)) { + if (CargoInfoTrackingInfoStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoInfoTrackingInfoStatusEnumFromJSON(json) { + return CargoInfoTrackingInfoStatusEnumFromJSONTyped(json, false); +} +export function CargoInfoTrackingInfoStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoInfoTrackingInfoStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoInfoTrackingInfoTypeEnum.d.ts b/dist/esm/models/CargoInfoTrackingInfoTypeEnum.d.ts new file mode 100644 index 0000000..9f91506 --- /dev/null +++ b/dist/esm/models/CargoInfoTrackingInfoTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export declare const CargoInfoTrackingInfoTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly EXPECTED_ARRIVAL: "EXPECTED_ARRIVAL"; + readonly ACTUAL_ARRIVAL: "ACTUAL_ARRIVAL"; +}; +export type CargoInfoTrackingInfoTypeEnum = typeof CargoInfoTrackingInfoTypeEnum[keyof typeof CargoInfoTrackingInfoTypeEnum]; +export declare function instanceOfCargoInfoTrackingInfoTypeEnum(value: any): boolean; +export declare function CargoInfoTrackingInfoTypeEnumFromJSON(json: any): CargoInfoTrackingInfoTypeEnum; +export declare function CargoInfoTrackingInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoTrackingInfoTypeEnum; +export declare function CargoInfoTrackingInfoTypeEnumToJSON(value?: CargoInfoTrackingInfoTypeEnum | null): any; diff --git a/dist/esm/models/CargoInfoTrackingInfoTypeEnum.js b/dist/esm/models/CargoInfoTrackingInfoTypeEnum.js new file mode 100644 index 0000000..4e1e555 --- /dev/null +++ b/dist/esm/models/CargoInfoTrackingInfoTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export const CargoInfoTrackingInfoTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + EXPECTED_ARRIVAL: 'EXPECTED_ARRIVAL', + ACTUAL_ARRIVAL: 'ACTUAL_ARRIVAL' +}; +export function instanceOfCargoInfoTrackingInfoTypeEnum(value) { + for (const key in CargoInfoTrackingInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoInfoTrackingInfoTypeEnum, key)) { + if (CargoInfoTrackingInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoInfoTrackingInfoTypeEnumFromJSON(json) { + return CargoInfoTrackingInfoTypeEnumFromJSONTyped(json, false); +} +export function CargoInfoTrackingInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoInfoTrackingInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoValue.d.ts b/dist/esm/models/CargoValue.d.ts new file mode 100644 index 0000000..5e60414 --- /dev/null +++ b/dist/esm/models/CargoValue.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о грузоместе. + * @export + * @interface CargoValue + */ +export interface CargoValue { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoValue + */ + cargo_id?: number; +} +/** + * Check if a given object implements the CargoValue interface. + */ +export declare function instanceOfCargoValue(value: object): value is CargoValue; +export declare function CargoValueFromJSON(json: any): CargoValue; +export declare function CargoValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoValue; +export declare function CargoValueToJSON(value?: CargoValue | null): any; diff --git a/dist/esm/models/CargoValue.js b/dist/esm/models/CargoValue.js new file mode 100644 index 0000000..1577024 --- /dev/null +++ b/dist/esm/models/CargoValue.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoValue interface. + */ +export function instanceOfCargoValue(value) { + return true; +} +export function CargoValueFromJSON(json) { + return CargoValueFromJSONTyped(json, false); +} +export function CargoValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + }; +} +export function CargoValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + }; +} diff --git a/dist/esm/models/CargoesCreateErrorsErrorReason.d.ts b/dist/esm/models/CargoesCreateErrorsErrorReason.d.ts new file mode 100644 index 0000000..d6a8bd6 --- /dev/null +++ b/dist/esm/models/CargoesCreateErrorsErrorReason.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesCreateErrorsErrorReason: { + readonly INVALID_STATE: "INVALID_STATE"; + readonly VALIDATION_FAILED: "VALIDATION_FAILED"; + readonly WAREHOUSE_LIMITS_EXCEED: "WAREHOUSE_LIMITS_EXCEED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly IS_FINALIZED: "IS_FINALIZED"; + readonly SKU_DISTRIBUTION_DISABLED: "SKU_DISTRIBUTION_DISABLED"; + readonly SUPPLY_IS_NOT_EMPTY: "SUPPLY_IS_NOT_EMPTY"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; +}; +export type CargoesCreateErrorsErrorReason = typeof CargoesCreateErrorsErrorReason[keyof typeof CargoesCreateErrorsErrorReason]; +export declare function instanceOfCargoesCreateErrorsErrorReason(value: any): boolean; +export declare function CargoesCreateErrorsErrorReasonFromJSON(json: any): CargoesCreateErrorsErrorReason; +export declare function CargoesCreateErrorsErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateErrorsErrorReason; +export declare function CargoesCreateErrorsErrorReasonToJSON(value?: CargoesCreateErrorsErrorReason | null): any; diff --git a/dist/esm/models/CargoesCreateErrorsErrorReason.js b/dist/esm/models/CargoesCreateErrorsErrorReason.js new file mode 100644 index 0000000..39da6a5 --- /dev/null +++ b/dist/esm/models/CargoesCreateErrorsErrorReason.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesCreateErrorsErrorReason = { + INVALID_STATE: 'INVALID_STATE', + VALIDATION_FAILED: 'VALIDATION_FAILED', + WAREHOUSE_LIMITS_EXCEED: 'WAREHOUSE_LIMITS_EXCEED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + IS_FINALIZED: 'IS_FINALIZED', + SKU_DISTRIBUTION_DISABLED: 'SKU_DISTRIBUTION_DISABLED', + SUPPLY_IS_NOT_EMPTY: 'SUPPLY_IS_NOT_EMPTY', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED' +}; +export function instanceOfCargoesCreateErrorsErrorReason(value) { + for (const key in CargoesCreateErrorsErrorReason) { + if (Object.prototype.hasOwnProperty.call(CargoesCreateErrorsErrorReason, key)) { + if (CargoesCreateErrorsErrorReason[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesCreateErrorsErrorReasonFromJSON(json) { + return CargoesCreateErrorsErrorReasonFromJSONTyped(json, false); +} +export function CargoesCreateErrorsErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesCreateErrorsErrorReasonToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesCreateErrorsItemValidation.d.ts b/dist/esm/models/CargoesCreateErrorsItemValidation.d.ts new file mode 100644 index 0000000..6639121 --- /dev/null +++ b/dist/esm/models/CargoesCreateErrorsItemValidation.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemValidationErrorType } from './ItemValidationErrorType'; +/** + * + * @export + * @interface CargoesCreateErrorsItemValidation + */ +export interface CargoesCreateErrorsItemValidation { + /** + * Штрихкод товара. Получите методом [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). + * @type {string} + * @memberof CargoesCreateErrorsItemValidation + */ + barcode?: string; + /** + * Ключ грузоместа. + * @type {string} + * @memberof CargoesCreateErrorsItemValidation + */ + cargo_key?: string; + /** + * Размер кванта. + * @type {number} + * @memberof CargoesCreateErrorsItemValidation + */ + quant?: number; + /** + * + * @type {ItemValidationErrorType} + * @memberof CargoesCreateErrorsItemValidation + */ + type?: ItemValidationErrorType; +} +/** + * Check if a given object implements the CargoesCreateErrorsItemValidation interface. + */ +export declare function instanceOfCargoesCreateErrorsItemValidation(value: object): value is CargoesCreateErrorsItemValidation; +export declare function CargoesCreateErrorsItemValidationFromJSON(json: any): CargoesCreateErrorsItemValidation; +export declare function CargoesCreateErrorsItemValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateErrorsItemValidation; +export declare function CargoesCreateErrorsItemValidationToJSON(value?: CargoesCreateErrorsItemValidation | null): any; diff --git a/dist/esm/models/CargoesCreateErrorsItemValidation.js b/dist/esm/models/CargoesCreateErrorsItemValidation.js new file mode 100644 index 0000000..faff212 --- /dev/null +++ b/dist/esm/models/CargoesCreateErrorsItemValidation.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ItemValidationErrorTypeFromJSON, ItemValidationErrorTypeToJSON, } from './ItemValidationErrorType'; +/** + * Check if a given object implements the CargoesCreateErrorsItemValidation interface. + */ +export function instanceOfCargoesCreateErrorsItemValidation(value) { + return true; +} +export function CargoesCreateErrorsItemValidationFromJSON(json) { + return CargoesCreateErrorsItemValidationFromJSONTyped(json, false); +} +export function CargoesCreateErrorsItemValidationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'cargo_key': json['cargo_key'] == null ? undefined : json['cargo_key'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'type': json['type'] == null ? undefined : ItemValidationErrorTypeFromJSON(json['type']), + }; +} +export function CargoesCreateErrorsItemValidationToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'cargo_key': value['cargo_key'], + 'quant': value['quant'], + 'type': ItemValidationErrorTypeToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesCreateErrorsReasonEnum.d.ts b/dist/esm/models/CargoesCreateErrorsReasonEnum.d.ts new file mode 100644 index 0000000..3ae94aa --- /dev/null +++ b/dist/esm/models/CargoesCreateErrorsReasonEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesCreateErrorsReasonEnum: { + readonly ERROR_REASON_UNSPECIFIED: "ERROR_REASON_UNSPECIFIED"; + readonly INVALID_STATE: "INVALID_STATE"; + readonly VALIDATION_FAILED: "VALIDATION_FAILED"; + readonly WAREHOUSE_LIMITS_EXCEED: "WAREHOUSE_LIMITS_EXCEED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly IS_FINALIZED: "IS_FINALIZED"; + readonly SKU_DISTRIBUTION_DISABLED: "SKU_DISTRIBUTION_DISABLED"; + readonly SUPPLY_IS_NOT_EMPTY: "SUPPLY_IS_NOT_EMPTY"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; +}; +export type CargoesCreateErrorsReasonEnum = typeof CargoesCreateErrorsReasonEnum[keyof typeof CargoesCreateErrorsReasonEnum]; +export declare function instanceOfCargoesCreateErrorsReasonEnum(value: any): boolean; +export declare function CargoesCreateErrorsReasonEnumFromJSON(json: any): CargoesCreateErrorsReasonEnum; +export declare function CargoesCreateErrorsReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateErrorsReasonEnum; +export declare function CargoesCreateErrorsReasonEnumToJSON(value?: CargoesCreateErrorsReasonEnum | null): any; diff --git a/dist/esm/models/CargoesCreateErrorsReasonEnum.js b/dist/esm/models/CargoesCreateErrorsReasonEnum.js new file mode 100644 index 0000000..4e2d25b --- /dev/null +++ b/dist/esm/models/CargoesCreateErrorsReasonEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesCreateErrorsReasonEnum = { + ERROR_REASON_UNSPECIFIED: 'ERROR_REASON_UNSPECIFIED', + INVALID_STATE: 'INVALID_STATE', + VALIDATION_FAILED: 'VALIDATION_FAILED', + WAREHOUSE_LIMITS_EXCEED: 'WAREHOUSE_LIMITS_EXCEED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + IS_FINALIZED: 'IS_FINALIZED', + SKU_DISTRIBUTION_DISABLED: 'SKU_DISTRIBUTION_DISABLED', + SUPPLY_IS_NOT_EMPTY: 'SUPPLY_IS_NOT_EMPTY', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED' +}; +export function instanceOfCargoesCreateErrorsReasonEnum(value) { + for (const key in CargoesCreateErrorsReasonEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesCreateErrorsReasonEnum, key)) { + if (CargoesCreateErrorsReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesCreateErrorsReasonEnumFromJSON(json) { + return CargoesCreateErrorsReasonEnumFromJSONTyped(json, false); +} +export function CargoesCreateErrorsReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesCreateErrorsReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesCreateInfoV2ResponseResult.d.ts b/dist/esm/models/CargoesCreateInfoV2ResponseResult.d.ts new file mode 100644 index 0000000..2c4329b --- /dev/null +++ b/dist/esm/models/CargoesCreateInfoV2ResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultCargo } from './ResultCargo'; +/** + * Результат запроса. + * @export + * @interface CargoesCreateInfoV2ResponseResult + */ +export interface CargoesCreateInfoV2ResponseResult { + /** + * Информация о грузоместах. + * @type {Array} + * @memberof CargoesCreateInfoV2ResponseResult + */ + cargoes?: Array; +} +/** + * Check if a given object implements the CargoesCreateInfoV2ResponseResult interface. + */ +export declare function instanceOfCargoesCreateInfoV2ResponseResult(value: object): value is CargoesCreateInfoV2ResponseResult; +export declare function CargoesCreateInfoV2ResponseResultFromJSON(json: any): CargoesCreateInfoV2ResponseResult; +export declare function CargoesCreateInfoV2ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateInfoV2ResponseResult; +export declare function CargoesCreateInfoV2ResponseResultToJSON(value?: CargoesCreateInfoV2ResponseResult | null): any; diff --git a/dist/esm/models/CargoesCreateInfoV2ResponseResult.js b/dist/esm/models/CargoesCreateInfoV2ResponseResult.js new file mode 100644 index 0000000..1c4d949 --- /dev/null +++ b/dist/esm/models/CargoesCreateInfoV2ResponseResult.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResultCargoFromJSON, ResultCargoToJSON, } from './ResultCargo'; +/** + * Check if a given object implements the CargoesCreateInfoV2ResponseResult interface. + */ +export function instanceOfCargoesCreateInfoV2ResponseResult(value) { + return true; +} +export function CargoesCreateInfoV2ResponseResultFromJSON(json) { + return CargoesCreateInfoV2ResponseResultFromJSONTyped(json, false); +} +export function CargoesCreateInfoV2ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(ResultCargoFromJSON)), + }; +} +export function CargoesCreateInfoV2ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(ResultCargoToJSON)), + }; +} diff --git a/dist/esm/models/CargoesCreateInfoV2ResponseStatusEnum.d.ts b/dist/esm/models/CargoesCreateInfoV2ResponseStatusEnum.d.ts new file mode 100644 index 0000000..b737132 --- /dev/null +++ b/dist/esm/models/CargoesCreateInfoV2ResponseStatusEnum.d.ts @@ -0,0 +1,30 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус формирования грузоместа: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — формируются; + * - `FAILED` — при формировании грузомест произошла ошибка. + * + * @export + */ +export declare const CargoesCreateInfoV2ResponseStatusEnum: { + readonly STATUS_UNSPECIFIED: "STATUS_UNSPECIFIED"; + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesCreateInfoV2ResponseStatusEnum = typeof CargoesCreateInfoV2ResponseStatusEnum[keyof typeof CargoesCreateInfoV2ResponseStatusEnum]; +export declare function instanceOfCargoesCreateInfoV2ResponseStatusEnum(value: any): boolean; +export declare function CargoesCreateInfoV2ResponseStatusEnumFromJSON(json: any): CargoesCreateInfoV2ResponseStatusEnum; +export declare function CargoesCreateInfoV2ResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateInfoV2ResponseStatusEnum; +export declare function CargoesCreateInfoV2ResponseStatusEnumToJSON(value?: CargoesCreateInfoV2ResponseStatusEnum | null): any; diff --git a/dist/esm/models/CargoesCreateInfoV2ResponseStatusEnum.js b/dist/esm/models/CargoesCreateInfoV2ResponseStatusEnum.js new file mode 100644 index 0000000..9f069df --- /dev/null +++ b/dist/esm/models/CargoesCreateInfoV2ResponseStatusEnum.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус формирования грузоместа: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — формируются; + * - `FAILED` — при формировании грузомест произошла ошибка. + * + * @export + */ +export const CargoesCreateInfoV2ResponseStatusEnum = { + STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED', + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfCargoesCreateInfoV2ResponseStatusEnum(value) { + for (const key in CargoesCreateInfoV2ResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesCreateInfoV2ResponseStatusEnum, key)) { + if (CargoesCreateInfoV2ResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesCreateInfoV2ResponseStatusEnumFromJSON(json) { + return CargoesCreateInfoV2ResponseStatusEnumFromJSONTyped(json, false); +} +export function CargoesCreateInfoV2ResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesCreateInfoV2ResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesCreateV2ErrorsItemValidation.d.ts b/dist/esm/models/CargoesCreateV2ErrorsItemValidation.d.ts new file mode 100644 index 0000000..2f98da2 --- /dev/null +++ b/dist/esm/models/CargoesCreateV2ErrorsItemValidation.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemValidationErrorType } from './ItemValidationErrorType'; +/** + * + * @export + * @interface CargoesCreateV2ErrorsItemValidation + */ +export interface CargoesCreateV2ErrorsItemValidation { + /** + * Ключ грузоместа. + * @type {string} + * @memberof CargoesCreateV2ErrorsItemValidation + */ + cargo_key?: string; + /** + * Штрихкод или артикул товара. + * @type {string} + * @memberof CargoesCreateV2ErrorsItemValidation + */ + item?: string; + /** + * Размер кванта. + * @type {number} + * @memberof CargoesCreateV2ErrorsItemValidation + */ + quant?: number; + /** + * + * @type {ItemValidationErrorType} + * @memberof CargoesCreateV2ErrorsItemValidation + */ + type?: ItemValidationErrorType; +} +/** + * Check if a given object implements the CargoesCreateV2ErrorsItemValidation interface. + */ +export declare function instanceOfCargoesCreateV2ErrorsItemValidation(value: object): value is CargoesCreateV2ErrorsItemValidation; +export declare function CargoesCreateV2ErrorsItemValidationFromJSON(json: any): CargoesCreateV2ErrorsItemValidation; +export declare function CargoesCreateV2ErrorsItemValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateV2ErrorsItemValidation; +export declare function CargoesCreateV2ErrorsItemValidationToJSON(value?: CargoesCreateV2ErrorsItemValidation | null): any; diff --git a/dist/esm/models/CargoesCreateV2ErrorsItemValidation.js b/dist/esm/models/CargoesCreateV2ErrorsItemValidation.js new file mode 100644 index 0000000..96b79ab --- /dev/null +++ b/dist/esm/models/CargoesCreateV2ErrorsItemValidation.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ItemValidationErrorTypeFromJSON, ItemValidationErrorTypeToJSON, } from './ItemValidationErrorType'; +/** + * Check if a given object implements the CargoesCreateV2ErrorsItemValidation interface. + */ +export function instanceOfCargoesCreateV2ErrorsItemValidation(value) { + return true; +} +export function CargoesCreateV2ErrorsItemValidationFromJSON(json) { + return CargoesCreateV2ErrorsItemValidationFromJSONTyped(json, false); +} +export function CargoesCreateV2ErrorsItemValidationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_key': json['cargo_key'] == null ? undefined : json['cargo_key'], + 'item': json['item'] == null ? undefined : json['item'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'type': json['type'] == null ? undefined : ItemValidationErrorTypeFromJSON(json['type']), + }; +} +export function CargoesCreateV2ErrorsItemValidationToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_key': value['cargo_key'], + 'item': value['item'], + 'quant': value['quant'], + 'type': ItemValidationErrorTypeToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesDeleteStatusResponseStatusEnum.d.ts b/dist/esm/models/CargoesDeleteStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..fe1295a --- /dev/null +++ b/dist/esm/models/CargoesDeleteStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус удаления грузоместа. + * + * Возможные статусы: + * - `SUCCESS` — грузоместо удалено, + * - `IN_PROGRESS` — грузоместо в процессе удаления, + * - `ERROR` — возникла ошибка при удалении грузоместа. + * + * @export + */ +export declare const CargoesDeleteStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly ERROR: "ERROR"; +}; +export type CargoesDeleteStatusResponseStatusEnum = typeof CargoesDeleteStatusResponseStatusEnum[keyof typeof CargoesDeleteStatusResponseStatusEnum]; +export declare function instanceOfCargoesDeleteStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesDeleteStatusResponseStatusEnumFromJSON(json: any): CargoesDeleteStatusResponseStatusEnum; +export declare function CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesDeleteStatusResponseStatusEnum; +export declare function CargoesDeleteStatusResponseStatusEnumToJSON(value?: CargoesDeleteStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/CargoesDeleteStatusResponseStatusEnum.js b/dist/esm/models/CargoesDeleteStatusResponseStatusEnum.js new file mode 100644 index 0000000..288bafb --- /dev/null +++ b/dist/esm/models/CargoesDeleteStatusResponseStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус удаления грузоместа. + * + * Возможные статусы: + * - `SUCCESS` — грузоместо удалено, + * - `IN_PROGRESS` — грузоместо в процессе удаления, + * - `ERROR` — возникла ошибка при удалении грузоместа. + * + * @export + */ +export const CargoesDeleteStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + ERROR: 'ERROR' +}; +export function instanceOfCargoesDeleteStatusResponseStatusEnum(value) { + for (const key in CargoesDeleteStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesDeleteStatusResponseStatusEnum, key)) { + if (CargoesDeleteStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesDeleteStatusResponseStatusEnumFromJSON(json) { + return CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesDeleteStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesGetResponseSupply.d.ts b/dist/esm/models/CargoesGetResponseSupply.d.ts new file mode 100644 index 0000000..997d532 --- /dev/null +++ b/dist/esm/models/CargoesGetResponseSupply.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyCargoInfo } from './SupplyCargoInfo'; +/** + * + * @export + * @interface CargoesGetResponseSupply + */ +export interface CargoesGetResponseSupply { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof CargoesGetResponseSupply + */ + bundle_id?: string; + /** + * Грузоместа. + * @type {Array} + * @memberof CargoesGetResponseSupply + */ + cargoes?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesGetResponseSupply + */ + supply_id?: number; +} +/** + * Check if a given object implements the CargoesGetResponseSupply interface. + */ +export declare function instanceOfCargoesGetResponseSupply(value: object): value is CargoesGetResponseSupply; +export declare function CargoesGetResponseSupplyFromJSON(json: any): CargoesGetResponseSupply; +export declare function CargoesGetResponseSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesGetResponseSupply; +export declare function CargoesGetResponseSupplyToJSON(value?: CargoesGetResponseSupply | null): any; diff --git a/dist/esm/models/CargoesGetResponseSupply.js b/dist/esm/models/CargoesGetResponseSupply.js new file mode 100644 index 0000000..0af4771 --- /dev/null +++ b/dist/esm/models/CargoesGetResponseSupply.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyCargoInfoFromJSON, SupplyCargoInfoToJSON, } from './SupplyCargoInfo'; +/** + * Check if a given object implements the CargoesGetResponseSupply interface. + */ +export function instanceOfCargoesGetResponseSupply(value) { + return true; +} +export function CargoesGetResponseSupplyFromJSON(json) { + return CargoesGetResponseSupplyFromJSONTyped(json, false); +} +export function CargoesGetResponseSupplyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(SupplyCargoInfoFromJSON)), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function CargoesGetResponseSupplyToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(SupplyCargoInfoToJSON)), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/CargoesPresentRuleCargoCountPerType.d.ts b/dist/esm/models/CargoesPresentRuleCargoCountPerType.d.ts new file mode 100644 index 0000000..74acf91 --- /dev/null +++ b/dist/esm/models/CargoesPresentRuleCargoCountPerType.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesPresentRuleCargoCountPerTypeEnum } from './CargoesPresentRuleCargoCountPerTypeEnum'; +/** + * + * @export + * @interface CargoesPresentRuleCargoCountPerType + */ +export interface CargoesPresentRuleCargoCountPerType { + /** + * Количество грузомест. + * @type {number} + * @memberof CargoesPresentRuleCargoCountPerType + */ + count?: number; + /** + * + * @type {CargoesPresentRuleCargoCountPerTypeEnum} + * @memberof CargoesPresentRuleCargoCountPerType + */ + type?: CargoesPresentRuleCargoCountPerTypeEnum; +} +/** + * Check if a given object implements the CargoesPresentRuleCargoCountPerType interface. + */ +export declare function instanceOfCargoesPresentRuleCargoCountPerType(value: object): value is CargoesPresentRuleCargoCountPerType; +export declare function CargoesPresentRuleCargoCountPerTypeFromJSON(json: any): CargoesPresentRuleCargoCountPerType; +export declare function CargoesPresentRuleCargoCountPerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesPresentRuleCargoCountPerType; +export declare function CargoesPresentRuleCargoCountPerTypeToJSON(value?: CargoesPresentRuleCargoCountPerType | null): any; diff --git a/dist/esm/models/CargoesPresentRuleCargoCountPerType.js b/dist/esm/models/CargoesPresentRuleCargoCountPerType.js new file mode 100644 index 0000000..efe1b89 --- /dev/null +++ b/dist/esm/models/CargoesPresentRuleCargoCountPerType.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesPresentRuleCargoCountPerTypeEnumFromJSON, CargoesPresentRuleCargoCountPerTypeEnumToJSON, } from './CargoesPresentRuleCargoCountPerTypeEnum'; +/** + * Check if a given object implements the CargoesPresentRuleCargoCountPerType interface. + */ +export function instanceOfCargoesPresentRuleCargoCountPerType(value) { + return true; +} +export function CargoesPresentRuleCargoCountPerTypeFromJSON(json) { + return CargoesPresentRuleCargoCountPerTypeFromJSONTyped(json, false); +} +export function CargoesPresentRuleCargoCountPerTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'type': json['type'] == null ? undefined : CargoesPresentRuleCargoCountPerTypeEnumFromJSON(json['type']), + }; +} +export function CargoesPresentRuleCargoCountPerTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'type': CargoesPresentRuleCargoCountPerTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesPresentRuleCargoCountPerTypeEnum.d.ts b/dist/esm/models/CargoesPresentRuleCargoCountPerTypeEnum.d.ts new file mode 100644 index 0000000..c99dff3 --- /dev/null +++ b/dist/esm/models/CargoesPresentRuleCargoCountPerTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка, + * - `PALLET` — палета. + * + * @export + */ +export declare const CargoesPresentRuleCargoCountPerTypeEnum: { + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type CargoesPresentRuleCargoCountPerTypeEnum = typeof CargoesPresentRuleCargoCountPerTypeEnum[keyof typeof CargoesPresentRuleCargoCountPerTypeEnum]; +export declare function instanceOfCargoesPresentRuleCargoCountPerTypeEnum(value: any): boolean; +export declare function CargoesPresentRuleCargoCountPerTypeEnumFromJSON(json: any): CargoesPresentRuleCargoCountPerTypeEnum; +export declare function CargoesPresentRuleCargoCountPerTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesPresentRuleCargoCountPerTypeEnum; +export declare function CargoesPresentRuleCargoCountPerTypeEnumToJSON(value?: CargoesPresentRuleCargoCountPerTypeEnum | null): any; diff --git a/dist/esm/models/CargoesPresentRuleCargoCountPerTypeEnum.js b/dist/esm/models/CargoesPresentRuleCargoCountPerTypeEnum.js new file mode 100644 index 0000000..cbd79c9 --- /dev/null +++ b/dist/esm/models/CargoesPresentRuleCargoCountPerTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка, + * - `PALLET` — палета. + * + * @export + */ +export const CargoesPresentRuleCargoCountPerTypeEnum = { + BOX: 'BOX', + PALLET: 'PALLET' +}; +export function instanceOfCargoesPresentRuleCargoCountPerTypeEnum(value) { + for (const key in CargoesPresentRuleCargoCountPerTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesPresentRuleCargoCountPerTypeEnum, key)) { + if (CargoesPresentRuleCargoCountPerTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesPresentRuleCargoCountPerTypeEnumFromJSON(json) { + return CargoesPresentRuleCargoCountPerTypeEnumFromJSONTyped(json, false); +} +export function CargoesPresentRuleCargoCountPerTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesPresentRuleCargoCountPerTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesRulesGetResponseSupplyCheck.d.ts b/dist/esm/models/CargoesRulesGetResponseSupplyCheck.d.ts new file mode 100644 index 0000000..4b8869d --- /dev/null +++ b/dist/esm/models/CargoesRulesGetResponseSupplyCheck.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyCheckIsValidDistributionRule } from './SupplyCheckIsValidDistributionRule'; +import type { SupplyCheckCargoesPresentRule } from './SupplyCheckCargoesPresentRule'; +import type { SupplyCheckEditDeadlineExpireRule } from './SupplyCheckEditDeadlineExpireRule'; +import type { SupplyCheckPackageUnitWithDistributionRule } from './SupplyCheckPackageUnitWithDistributionRule'; +import type { SupplyCheckPlacementZoneRule } from './SupplyCheckPlacementZoneRule'; +import type { SupplyCheckExpireDatePresentedRule } from './SupplyCheckExpireDatePresentedRule'; +/** + * Чек-лист правил заполнения грузомест. + * @export + * @interface CargoesRulesGetResponseSupplyCheck + */ +export interface CargoesRulesGetResponseSupplyCheck { + /** + * + * @type {SupplyCheckCargoesPresentRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + cargoes_presents_rule?: SupplyCheckCargoesPresentRule; + /** + * + * @type {SupplyCheckEditDeadlineExpireRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + edit_deadline_expire_rule?: SupplyCheckEditDeadlineExpireRule; + /** + * + * @type {SupplyCheckExpireDatePresentedRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + expire_dates_presented_rule?: SupplyCheckExpireDatePresentedRule; + /** + * + * @type {SupplyCheckIsValidDistributionRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + is_valid_distribution_rule?: SupplyCheckIsValidDistributionRule; + /** + * + * @type {SupplyCheckPackageUnitWithDistributionRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + package_units_with_distribution_rule?: SupplyCheckPackageUnitWithDistributionRule; + /** + * + * @type {SupplyCheckPlacementZoneRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + placement_zones_rule?: SupplyCheckPlacementZoneRule; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + supply_id?: number; +} +/** + * Check if a given object implements the CargoesRulesGetResponseSupplyCheck interface. + */ +export declare function instanceOfCargoesRulesGetResponseSupplyCheck(value: object): value is CargoesRulesGetResponseSupplyCheck; +export declare function CargoesRulesGetResponseSupplyCheckFromJSON(json: any): CargoesRulesGetResponseSupplyCheck; +export declare function CargoesRulesGetResponseSupplyCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesRulesGetResponseSupplyCheck; +export declare function CargoesRulesGetResponseSupplyCheckToJSON(value?: CargoesRulesGetResponseSupplyCheck | null): any; diff --git a/dist/esm/models/CargoesRulesGetResponseSupplyCheck.js b/dist/esm/models/CargoesRulesGetResponseSupplyCheck.js new file mode 100644 index 0000000..71692f3 --- /dev/null +++ b/dist/esm/models/CargoesRulesGetResponseSupplyCheck.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyCheckIsValidDistributionRuleFromJSON, SupplyCheckIsValidDistributionRuleToJSON, } from './SupplyCheckIsValidDistributionRule'; +import { SupplyCheckCargoesPresentRuleFromJSON, SupplyCheckCargoesPresentRuleToJSON, } from './SupplyCheckCargoesPresentRule'; +import { SupplyCheckEditDeadlineExpireRuleFromJSON, SupplyCheckEditDeadlineExpireRuleToJSON, } from './SupplyCheckEditDeadlineExpireRule'; +import { SupplyCheckPackageUnitWithDistributionRuleFromJSON, SupplyCheckPackageUnitWithDistributionRuleToJSON, } from './SupplyCheckPackageUnitWithDistributionRule'; +import { SupplyCheckPlacementZoneRuleFromJSON, SupplyCheckPlacementZoneRuleToJSON, } from './SupplyCheckPlacementZoneRule'; +import { SupplyCheckExpireDatePresentedRuleFromJSON, SupplyCheckExpireDatePresentedRuleToJSON, } from './SupplyCheckExpireDatePresentedRule'; +/** + * Check if a given object implements the CargoesRulesGetResponseSupplyCheck interface. + */ +export function instanceOfCargoesRulesGetResponseSupplyCheck(value) { + return true; +} +export function CargoesRulesGetResponseSupplyCheckFromJSON(json) { + return CargoesRulesGetResponseSupplyCheckFromJSONTyped(json, false); +} +export function CargoesRulesGetResponseSupplyCheckFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes_presents_rule': json['cargoes_presents_rule'] == null ? undefined : SupplyCheckCargoesPresentRuleFromJSON(json['cargoes_presents_rule']), + 'edit_deadline_expire_rule': json['edit_deadline_expire_rule'] == null ? undefined : SupplyCheckEditDeadlineExpireRuleFromJSON(json['edit_deadline_expire_rule']), + 'expire_dates_presented_rule': json['expire_dates_presented_rule'] == null ? undefined : SupplyCheckExpireDatePresentedRuleFromJSON(json['expire_dates_presented_rule']), + 'is_valid_distribution_rule': json['is_valid_distribution_rule'] == null ? undefined : SupplyCheckIsValidDistributionRuleFromJSON(json['is_valid_distribution_rule']), + 'package_units_with_distribution_rule': json['package_units_with_distribution_rule'] == null ? undefined : SupplyCheckPackageUnitWithDistributionRuleFromJSON(json['package_units_with_distribution_rule']), + 'placement_zones_rule': json['placement_zones_rule'] == null ? undefined : SupplyCheckPlacementZoneRuleFromJSON(json['placement_zones_rule']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function CargoesRulesGetResponseSupplyCheckToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes_presents_rule': SupplyCheckCargoesPresentRuleToJSON(value['cargoes_presents_rule']), + 'edit_deadline_expire_rule': SupplyCheckEditDeadlineExpireRuleToJSON(value['edit_deadline_expire_rule']), + 'expire_dates_presented_rule': SupplyCheckExpireDatePresentedRuleToJSON(value['expire_dates_presented_rule']), + 'is_valid_distribution_rule': SupplyCheckIsValidDistributionRuleToJSON(value['is_valid_distribution_rule']), + 'package_units_with_distribution_rule': SupplyCheckPackageUnitWithDistributionRuleToJSON(value['package_units_with_distribution_rule']), + 'placement_zones_rule': SupplyCheckPlacementZoneRuleToJSON(value['placement_zones_rule']), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.d.ts new file mode 100644 index 0000000..2e5f9d2 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportByOrderCreateRequest + */ +export interface CargoesV1CargoesLabelTransportByOrderCreateRequest { + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesLabelTransportByOrderCreateRequest + */ + order_id: number; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderCreateRequest interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderCreateRequest(value: object): value is CargoesV1CargoesLabelTransportByOrderCreateRequest; +export declare function CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderCreateRequest; +export declare function CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderCreateRequest; +export declare function CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON(value?: CargoesV1CargoesLabelTransportByOrderCreateRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.js b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.js new file mode 100644 index 0000000..fcfed85 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderCreateRequest interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportByOrderCreateRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +export function CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.d.ts new file mode 100644 index 0000000..496fb6f --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum } from './CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportByOrderCreateResponse + */ +export interface CargoesV1CargoesLabelTransportByOrderCreateResponse { + /** + * Ошибки при генерации этикеток транспортных грузомест: + * - `ORDER_NOT_FOUND` — заявка не найдена; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `ALL_SUPPLIES_SKIPPED` — нет этикеток для поставок; + * - `LABELS_COUNT_EXCEED` — превышено количество генерируемых этикеток; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportByOrderCreateResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/label/transport-by-order/status](#operation/CargoesLabelTransportByOrderStatus). + * @type {string} + * @memberof CargoesV1CargoesLabelTransportByOrderCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderCreateResponse interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponse(value: object): value is CargoesV1CargoesLabelTransportByOrderCreateResponse; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderCreateResponse; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderCreateResponse; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseToJSON(value?: CargoesV1CargoesLabelTransportByOrderCreateResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.js b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.js new file mode 100644 index 0000000..bda92bd --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON, CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderCreateResponse interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponse(value) { + return true; +} +export function CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function CargoesV1CargoesLabelTransportByOrderCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..71c365e --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum: { + readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly ALL_SUPPLIES_SKIPPED: "ALL_SUPPLIES_SKIPPED"; + readonly LABELS_COUNT_EXCEED: "LABELS_COUNT_EXCEED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum = typeof CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.js new file mode 100644 index 0000000..e782a10 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum = { + ORDER_NOT_FOUND: 'ORDER_NOT_FOUND', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + ALL_SUPPLIES_SKIPPED: 'ALL_SUPPLIES_SKIPPED', + LABELS_COUNT_EXCEED: 'LABELS_COUNT_EXCEED', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.d.ts new file mode 100644 index 0000000..fe98f98 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportByOrderStatusRequest + */ +export interface CargoesV1CargoesLabelTransportByOrderStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/label/transport-by-order/create](#operation/CargoesLabelTransportByOrderCreate). + * @type {string} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusRequest(value: object): value is CargoesV1CargoesLabelTransportByOrderStatusRequest; +export declare function CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusRequest; +export declare function CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusRequest; +export declare function CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.js b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.js new file mode 100644 index 0000000..9b48ee6 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusRequest interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportByOrderStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.d.ts new file mode 100644 index 0000000..355762b --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesLabelTransportByOrderStatusResponseResult } from './CargoesV1CargoesLabelTransportByOrderStatusResponseResult'; +import type { CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum } from './CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum'; +import type { CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum } from './CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum'; +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportByOrderStatusResponse + */ +export interface CargoesV1CargoesLabelTransportByOrderStatusResponse { + /** + * Ошибки при генерации этикеток транспортных грузомест: + * - `ORDER_NOT_FOUND` — заявка не найдена; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `ALL_SUPPLIES_SKIPPED` — нет этикеток для поставок; + * - `LABELS_COUNT_EXCEED` — превышено количество генерируемых этикеток; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesLabelTransportByOrderStatusResponseResult} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponse + */ + result?: CargoesV1CargoesLabelTransportByOrderStatusResponseResult; + /** + * + * @type {CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponse + */ + status?: CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponse(value: object): value is CargoesV1CargoesLabelTransportByOrderStatusResponse; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusResponse; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusResponse; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.js b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.js new file mode 100644 index 0000000..01b1286 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON, CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON, } from './CargoesV1CargoesLabelTransportByOrderStatusResponseResult'; +import { CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON, CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum'; +import { CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON, CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON, } from './CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum'; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusResponse interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponse(value) { + return true; +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON)), + 'result': json['result'] == null ? undefined : CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON(json['result']), + 'status': json['status'] == null ? undefined : CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON)), + 'result': CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON(value['result']), + 'status': CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..41a52ba --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum: { + readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly ALL_SUPPLIES_SKIPPED: "ALL_SUPPLIES_SKIPPED"; + readonly LABELS_COUNT_EXCEED: "LABELS_COUNT_EXCEED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..a7b7bcd --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum = { + ORDER_NOT_FOUND: 'ORDER_NOT_FOUND', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + ALL_SUPPLIES_SKIPPED: 'ALL_SUPPLIES_SKIPPED', + LABELS_COUNT_EXCEED: 'LABELS_COUNT_EXCEED', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.d.ts new file mode 100644 index 0000000..a0e9621 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Этикетки транспортных грузомест. + * @export + * @interface CargoesV1CargoesLabelTransportByOrderStatusResponseResult + */ +export interface CargoesV1CargoesLabelTransportByOrderStatusResponseResult { + /** + * Ссылка на PDF-файл с этикетками. + * @type {string} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponseResult + */ + file_url?: string; + /** + * Поставки, по которым не сгенерированы этикетки. + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponseResult + */ + skipped_supplies_ids?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusResponseResult interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseResult(value: object): value is CargoesV1CargoesLabelTransportByOrderStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusResponseResult | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.js b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.js new file mode 100644 index 0000000..338baf2 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusResponseResult interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseResult(value) { + return true; +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + 'skipped_supplies_ids': json['skipped_supplies_ids'] == null ? undefined : json['skipped_supplies_ids'], + }; +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_url': value['file_url'], + 'skipped_supplies_ids': value['skipped_supplies_ids'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..93414be --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации этикеток: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum = typeof CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum[keyof typeof CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.js b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.js new file mode 100644 index 0000000..8011fbe --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации этикеток: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export const CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum(value) { + for (const key in CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum, key)) { + if (CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportCreateRequest.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportCreateRequest.d.ts new file mode 100644 index 0000000..ed9e9d7 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportCreateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportCreateRequest + */ +export interface CargoesV1CargoesLabelTransportCreateRequest { + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesLabelTransportCreateRequest + */ + supply_id: number; + /** + * Идентификаторы транспортных грузомест. Если ничего не передать, в ответе вернутся этикетки для всех транспортных грузомест в поставке. + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportCreateRequest + */ + transport_cargo_ids?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportCreateRequest interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportCreateRequest(value: object): value is CargoesV1CargoesLabelTransportCreateRequest; +export declare function CargoesV1CargoesLabelTransportCreateRequestFromJSON(json: any): CargoesV1CargoesLabelTransportCreateRequest; +export declare function CargoesV1CargoesLabelTransportCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportCreateRequest; +export declare function CargoesV1CargoesLabelTransportCreateRequestToJSON(value?: CargoesV1CargoesLabelTransportCreateRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportCreateRequest.js b/dist/esm/models/CargoesV1CargoesLabelTransportCreateRequest.js new file mode 100644 index 0000000..63443aa --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportCreateRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportCreateRequest interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportCreateRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesLabelTransportCreateRequestFromJSON(json) { + return CargoesV1CargoesLabelTransportCreateRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + 'transport_cargo_ids': json['transport_cargo_ids'] == null ? undefined : json['transport_cargo_ids'], + }; +} +export function CargoesV1CargoesLabelTransportCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + 'transport_cargo_ids': value['transport_cargo_ids'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponse.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponse.d.ts new file mode 100644 index 0000000..b7251e6 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum } from './CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportCreateResponse + */ +export interface CargoesV1CargoesLabelTransportCreateResponse { + /** + * Ошибки при генерации этикеток транспортных грузомест: + * - `INVALID_STATE` — недопустимое состояние поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — поставка не принадлежит юридическому лицу; + * - `SUPPLY_NOT_BELONG_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `SUPPLY_IS_EMPTY` — в поставке нет грузомест; + * - `CARGOES_NOT_FOUND` — грузоместа не найдены. + * + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportCreateResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/label/transport-by-order/status](#operation/CargoesLabelTransportStatus). + * @type {string} + * @memberof CargoesV1CargoesLabelTransportCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportCreateResponse interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportCreateResponse(value: object): value is CargoesV1CargoesLabelTransportCreateResponse; +export declare function CargoesV1CargoesLabelTransportCreateResponseFromJSON(json: any): CargoesV1CargoesLabelTransportCreateResponse; +export declare function CargoesV1CargoesLabelTransportCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportCreateResponse; +export declare function CargoesV1CargoesLabelTransportCreateResponseToJSON(value?: CargoesV1CargoesLabelTransportCreateResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponse.js b/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponse.js new file mode 100644 index 0000000..8e97ac2 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON, CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportCreateResponse interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportCreateResponse(value) { + return true; +} +export function CargoesV1CargoesLabelTransportCreateResponseFromJSON(json) { + return CargoesV1CargoesLabelTransportCreateResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function CargoesV1CargoesLabelTransportCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..cbc5ef1 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum: { + readonly INVALID_STATE: "INVALID_STATE"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly SUPPLY_IS_EMPTY: "SUPPLY_IS_EMPTY"; + readonly CARGOES_NOT_FOUND: "CARGOES_NOT_FOUND"; +}; +export type CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum = typeof CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.js new file mode 100644 index 0000000..2f2c4a6 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum = { + INVALID_STATE: 'INVALID_STATE', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + SUPPLY_IS_EMPTY: 'SUPPLY_IS_EMPTY', + CARGOES_NOT_FOUND: 'CARGOES_NOT_FOUND' +}; +export function instanceOfCargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusRequest.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportStatusRequest.d.ts new file mode 100644 index 0000000..03dba08 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportStatusRequest + */ +export interface CargoesV1CargoesLabelTransportStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/label/transport/create](#operation/CargoesLabelTransportCreate). + * @type {string} + * @memberof CargoesV1CargoesLabelTransportStatusRequest + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportStatusRequest(value: object): value is CargoesV1CargoesLabelTransportStatusRequest; +export declare function CargoesV1CargoesLabelTransportStatusRequestFromJSON(json: any): CargoesV1CargoesLabelTransportStatusRequest; +export declare function CargoesV1CargoesLabelTransportStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusRequest; +export declare function CargoesV1CargoesLabelTransportStatusRequestToJSON(value?: CargoesV1CargoesLabelTransportStatusRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusRequest.js b/dist/esm/models/CargoesV1CargoesLabelTransportStatusRequest.js new file mode 100644 index 0000000..988f4e9 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusRequest interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportStatusRequest(value) { + return true; +} +export function CargoesV1CargoesLabelTransportStatusRequestFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function CargoesV1CargoesLabelTransportStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponse.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponse.d.ts new file mode 100644 index 0000000..930a26f --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponse.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesLabelTransportStatusResponseStatusEnum } from './CargoesV1CargoesLabelTransportStatusResponseStatusEnum'; +import type { CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum } from './CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum'; +import type { CargoesV1CargoesLabelTransportStatusResponseResult } from './CargoesV1CargoesLabelTransportStatusResponseResult'; +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportStatusResponse + */ +export interface CargoesV1CargoesLabelTransportStatusResponse { + /** + * Ошибки при генерации этикеток транспортных грузомест: + * - `INVALID_STATE` — недопустимое состояние поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — поставка не принадлежит юридическому лицу; + * - `SUPPLY_NOT_BELONG_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `SUPPLY_IS_EMPTY` — в поставке нет грузомест; + * - `CARGOES_NOT_FOUND` — грузоместа не найдены. + * + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesLabelTransportStatusResponseResult} + * @memberof CargoesV1CargoesLabelTransportStatusResponse + */ + result?: CargoesV1CargoesLabelTransportStatusResponseResult; + /** + * + * @type {CargoesV1CargoesLabelTransportStatusResponseStatusEnum} + * @memberof CargoesV1CargoesLabelTransportStatusResponse + */ + status?: CargoesV1CargoesLabelTransportStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportStatusResponse(value: object): value is CargoesV1CargoesLabelTransportStatusResponse; +export declare function CargoesV1CargoesLabelTransportStatusResponseFromJSON(json: any): CargoesV1CargoesLabelTransportStatusResponse; +export declare function CargoesV1CargoesLabelTransportStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusResponse; +export declare function CargoesV1CargoesLabelTransportStatusResponseToJSON(value?: CargoesV1CargoesLabelTransportStatusResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponse.js b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponse.js new file mode 100644 index 0000000..0c38ef2 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON, CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON, } from './CargoesV1CargoesLabelTransportStatusResponseStatusEnum'; +import { CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON, CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum'; +import { CargoesV1CargoesLabelTransportStatusResponseResultFromJSON, CargoesV1CargoesLabelTransportStatusResponseResultToJSON, } from './CargoesV1CargoesLabelTransportStatusResponseResult'; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusResponse interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportStatusResponse(value) { + return true; +} +export function CargoesV1CargoesLabelTransportStatusResponseFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON)), + 'result': json['result'] == null ? undefined : CargoesV1CargoesLabelTransportStatusResponseResultFromJSON(json['result']), + 'status': json['status'] == null ? undefined : CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function CargoesV1CargoesLabelTransportStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON)), + 'result': CargoesV1CargoesLabelTransportStatusResponseResultToJSON(value['result']), + 'status': CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..399290b --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum: { + readonly INVALID_STATE: "INVALID_STATE"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly SUPPLY_IS_EMPTY: "SUPPLY_IS_EMPTY"; + readonly CARGOES_NOT_FOUND: "CARGOES_NOT_FOUND"; +}; +export type CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..ababd99 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum = { + INVALID_STATE: 'INVALID_STATE', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + SUPPLY_IS_EMPTY: 'SUPPLY_IS_EMPTY', + CARGOES_NOT_FOUND: 'CARGOES_NOT_FOUND' +}; +export function instanceOfCargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseResult.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseResult.d.ts new file mode 100644 index 0000000..b887d68 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Этикетки транспортных грузомест. + * @export + * @interface CargoesV1CargoesLabelTransportStatusResponseResult + */ +export interface CargoesV1CargoesLabelTransportStatusResponseResult { + /** + * Ссылка на PDF-файл с этикетками. + * @type {string} + * @memberof CargoesV1CargoesLabelTransportStatusResponseResult + */ + file_url?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusResponseResult interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportStatusResponseResult(value: object): value is CargoesV1CargoesLabelTransportStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportStatusResponseResultFromJSON(json: any): CargoesV1CargoesLabelTransportStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportStatusResponseResultToJSON(value?: CargoesV1CargoesLabelTransportStatusResponseResult | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseResult.js b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseResult.js new file mode 100644 index 0000000..f33198d --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusResponseResult interface. + */ +export function instanceOfCargoesV1CargoesLabelTransportStatusResponseResult(value) { + return true; +} +export function CargoesV1CargoesLabelTransportStatusResponseResultFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusResponseResultFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + }; +} +export function CargoesV1CargoesLabelTransportStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_url': value['file_url'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.d.ts b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..b4ffd91 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации этикеток: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesLabelTransportStatusResponseStatusEnum = typeof CargoesV1CargoesLabelTransportStatusResponseStatusEnum[keyof typeof CargoesV1CargoesLabelTransportStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesLabelTransportStatusResponseStatusEnum; +export declare function CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusResponseStatusEnum; +export declare function CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesLabelTransportStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.js b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.js new file mode 100644 index 0000000..a1767f4 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации этикеток: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export const CargoesV1CargoesLabelTransportStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfCargoesV1CargoesLabelTransportStatusResponseStatusEnum(value) { + for (const key in CargoesV1CargoesLabelTransportStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesLabelTransportStatusResponseStatusEnum, key)) { + if (CargoesV1CargoesLabelTransportStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetRequest.d.ts b/dist/esm/models/CargoesV1CargoesSuppliesGetRequest.d.ts new file mode 100644 index 0000000..a8ade34 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetRequest + */ +export interface CargoesV1CargoesSuppliesGetRequest { + /** + * Список идентификаторов поставок. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetRequest + */ + supply_ids: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetRequest interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetRequest(value: object): value is CargoesV1CargoesSuppliesGetRequest; +export declare function CargoesV1CargoesSuppliesGetRequestFromJSON(json: any): CargoesV1CargoesSuppliesGetRequest; +export declare function CargoesV1CargoesSuppliesGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetRequest; +export declare function CargoesV1CargoesSuppliesGetRequestToJSON(value?: CargoesV1CargoesSuppliesGetRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetRequest.js b/dist/esm/models/CargoesV1CargoesSuppliesGetRequest.js new file mode 100644 index 0000000..74448bf --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetRequest interface. + */ +export function instanceOfCargoesV1CargoesSuppliesGetRequest(value) { + if (!('supply_ids' in value) || value['supply_ids'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesSuppliesGetRequestFromJSON(json) { + return CargoesV1CargoesSuppliesGetRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesSuppliesGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_ids': json['supply_ids'], + }; +} +export function CargoesV1CargoesSuppliesGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_ids': value['supply_ids'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponse.d.ts b/dist/esm/models/CargoesV1CargoesSuppliesGetResponse.d.ts new file mode 100644 index 0000000..e697fd7 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoes } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoes'; +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponse + */ +export interface CargoesV1CargoesSuppliesGetResponse { + /** + * Поставки, которые не удалось найти. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponse + */ + not_found_supply_ids?: Array; + /** + * Информация о грузоместах в поставках. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponse + */ + supplies_cargoes?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponse interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponse(value: object): value is CargoesV1CargoesSuppliesGetResponse; +export declare function CargoesV1CargoesSuppliesGetResponseFromJSON(json: any): CargoesV1CargoesSuppliesGetResponse; +export declare function CargoesV1CargoesSuppliesGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponse; +export declare function CargoesV1CargoesSuppliesGetResponseToJSON(value?: CargoesV1CargoesSuppliesGetResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponse.js b/dist/esm/models/CargoesV1CargoesSuppliesGetResponse.js new file mode 100644 index 0000000..0b56ad0 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON, CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON, } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoes'; +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponse interface. + */ +export function instanceOfCargoesV1CargoesSuppliesGetResponse(value) { + return true; +} +export function CargoesV1CargoesSuppliesGetResponseFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesSuppliesGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'not_found_supply_ids': json['not_found_supply_ids'] == null ? undefined : json['not_found_supply_ids'], + 'supplies_cargoes': json['supplies_cargoes'] == null ? undefined : (json['supplies_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON)), + }; +} +export function CargoesV1CargoesSuppliesGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'not_found_supply_ids': value['not_found_supply_ids'], + 'supplies_cargoes': value['supplies_cargoes'] == null ? undefined : (value['supplies_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.d.ts b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.d.ts new file mode 100644 index 0000000..25008a5 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes'; +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes'; +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ +export interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoes { + /** + * Идентификатор состава поставки. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ + bundle_id?: string; + /** + * Грузоместа, которые не связаны с транспортными грузоместами. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ + cargoes_without_transport_cargoes?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ + supply_id?: number; + /** + * Список транспортных грузомест в поставке. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ + transport_cargoes?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoes(value: object): value is CargoesV1CargoesSuppliesGetResponseSuppliesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoes | null): any; diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.js b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.js new file mode 100644 index 0000000..2edc996 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON, CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON, } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes'; +import { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON, CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON, } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes'; +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoes interface. + */ +export function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoes(value) { + return true; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSONTyped(json, false); +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargoes_without_transport_cargoes': json['cargoes_without_transport_cargoes'] == null ? undefined : (json['cargoes_without_transport_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON)), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'transport_cargoes': json['transport_cargoes'] == null ? undefined : (json['transport_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON)), + }; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargoes_without_transport_cargoes': value['cargoes_without_transport_cargoes'] == null ? undefined : (value['cargoes_without_transport_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON)), + 'supply_id': value['supply_id'], + 'transport_cargoes': value['transport_cargoes'] == null ? undefined : (value['transport_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.d.ts b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.d.ts new file mode 100644 index 0000000..ea7a14c --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes + */ +export interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes { + /** + * Штрихкод грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes + */ + barcode?: string; + /** + * Идентификатор состава грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes + */ + bundle_id?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes + */ + cargo_id?: number; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes(value: object): value is CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes | null): any; diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.js b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.js new file mode 100644 index 0000000..3150bd2 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes interface. + */ +export function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes(value) { + return true; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSONTyped(json, false); +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + }; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'bundle_id': value['bundle_id'], + 'cargo_id': value['cargo_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.d.ts b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.d.ts new file mode 100644 index 0000000..74bc8e8 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes'; +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ +export interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes { + /** + * Идентификатор состава грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ + bundle_id?: string; + /** + * Грузоместа в транспортном грузоместе. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ + cargoes?: Array; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ + transport_cargo_id?: number; + /** + * + * @type {CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ + type?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes(value: object): value is CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes | null): any; diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.js b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.js new file mode 100644 index 0000000..21e6b96 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON, CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON, } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes'; +import { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON, CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON, } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum'; +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes interface. + */ +export function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes(value) { + return true; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSONTyped(json, false); +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON)), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + 'type': json['type'] == null ? undefined : CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON(json['type']), + }; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON)), + 'transport_cargo_id': value['transport_cargo_id'], + 'type': CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.d.ts b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.d.ts new file mode 100644 index 0000000..7078793 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes + */ +export interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes { + /** + * Штрихкод грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes + */ + barcode?: string; + /** + * Идентификатор состава грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes + */ + bundle_id?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes + */ + cargo_id?: number; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes(value: object): value is CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes | null): any; diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.js b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.js new file mode 100644 index 0000000..bcb66ed --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes interface. + */ +export function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes(value) { + return true; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSONTyped(json, false); +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + }; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'bundle_id': value['bundle_id'], + 'cargo_id': value['cargo_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.d.ts b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.d.ts new file mode 100644 index 0000000..1fb2eed --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export declare const CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum: { + readonly PALLET: "PALLET"; +}; +export type CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum = typeof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum[keyof typeof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum]; +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum(value: any): boolean; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.js b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.js new file mode 100644 index 0000000..554ede4 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export const CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum = { + PALLET: 'PALLET' +}; +export function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum(value) { + for (const key in CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum, key)) { + if (CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateRequest.d.ts b/dist/esm/models/CargoesV1CargoesTransportActivateRequest.d.ts new file mode 100644 index 0000000..61b611a --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportActivateRequest + */ +export interface CargoesV1CargoesTransportActivateRequest { + /** + * `true`, чтобы включить транспортные грузоместа. + * + * @type {boolean} + * @memberof CargoesV1CargoesTransportActivateRequest + */ + is_transport: boolean; + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesTransportActivateRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportActivateRequest(value: object): value is CargoesV1CargoesTransportActivateRequest; +export declare function CargoesV1CargoesTransportActivateRequestFromJSON(json: any): CargoesV1CargoesTransportActivateRequest; +export declare function CargoesV1CargoesTransportActivateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateRequest; +export declare function CargoesV1CargoesTransportActivateRequestToJSON(value?: CargoesV1CargoesTransportActivateRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateRequest.js b/dist/esm/models/CargoesV1CargoesTransportActivateRequest.js new file mode 100644 index 0000000..3a6b6bc --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateRequest interface. + */ +export function instanceOfCargoesV1CargoesTransportActivateRequest(value) { + if (!('is_transport' in value) || value['is_transport'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesTransportActivateRequestFromJSON(json) { + return CargoesV1CargoesTransportActivateRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportActivateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_transport': json['is_transport'], + 'supply_id': json['supply_id'], + }; +} +export function CargoesV1CargoesTransportActivateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_transport': value['is_transport'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateResponse.d.ts b/dist/esm/models/CargoesV1CargoesTransportActivateResponse.d.ts new file mode 100644 index 0000000..7ef7d25 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportActivateResponse + */ +export interface CargoesV1CargoesTransportActivateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/transport/activate/status](#operation/CargoesTransportActivateStatus). + * @type {string} + * @memberof CargoesV1CargoesTransportActivateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportActivateResponse(value: object): value is CargoesV1CargoesTransportActivateResponse; +export declare function CargoesV1CargoesTransportActivateResponseFromJSON(json: any): CargoesV1CargoesTransportActivateResponse; +export declare function CargoesV1CargoesTransportActivateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateResponse; +export declare function CargoesV1CargoesTransportActivateResponseToJSON(value?: CargoesV1CargoesTransportActivateResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateResponse.js b/dist/esm/models/CargoesV1CargoesTransportActivateResponse.js new file mode 100644 index 0000000..aef854c --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateResponse interface. + */ +export function instanceOfCargoesV1CargoesTransportActivateResponse(value) { + return true; +} +export function CargoesV1CargoesTransportActivateResponseFromJSON(json) { + return CargoesV1CargoesTransportActivateResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportActivateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function CargoesV1CargoesTransportActivateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateStatusRequest.d.ts b/dist/esm/models/CargoesV1CargoesTransportActivateStatusRequest.d.ts new file mode 100644 index 0000000..9e406b3 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportActivateStatusRequest + */ +export interface CargoesV1CargoesTransportActivateStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/transport/activate](#operation/CargoesTransportActivate). + * @type {string} + * @memberof CargoesV1CargoesTransportActivateStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportActivateStatusRequest(value: object): value is CargoesV1CargoesTransportActivateStatusRequest; +export declare function CargoesV1CargoesTransportActivateStatusRequestFromJSON(json: any): CargoesV1CargoesTransportActivateStatusRequest; +export declare function CargoesV1CargoesTransportActivateStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateStatusRequest; +export declare function CargoesV1CargoesTransportActivateStatusRequestToJSON(value?: CargoesV1CargoesTransportActivateStatusRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateStatusRequest.js b/dist/esm/models/CargoesV1CargoesTransportActivateStatusRequest.js new file mode 100644 index 0000000..357ef8c --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateStatusRequest interface. + */ +export function instanceOfCargoesV1CargoesTransportActivateStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesTransportActivateStatusRequestFromJSON(json) { + return CargoesV1CargoesTransportActivateStatusRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportActivateStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function CargoesV1CargoesTransportActivateStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponse.d.ts b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponse.d.ts new file mode 100644 index 0000000..6d7f401 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportActivateStatusResponseStatusEnum } from './CargoesV1CargoesTransportActivateStatusResponseStatusEnum'; +import type { CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum } from './CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportActivateStatusResponse + */ +export interface CargoesV1CargoesTransportActivateStatusResponse { + /** + * Ошибки при включении или отключении транспортных грузомест: + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `SUPPLY_IS_FINALIZED`, `CAN_NOT_EDIT_TAG` — нельзя изменить поставку; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportActivateStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesTransportActivateStatusResponseStatusEnum} + * @memberof CargoesV1CargoesTransportActivateStatusResponse + */ + status?: CargoesV1CargoesTransportActivateStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportActivateStatusResponse(value: object): value is CargoesV1CargoesTransportActivateStatusResponse; +export declare function CargoesV1CargoesTransportActivateStatusResponseFromJSON(json: any): CargoesV1CargoesTransportActivateStatusResponse; +export declare function CargoesV1CargoesTransportActivateStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateStatusResponse; +export declare function CargoesV1CargoesTransportActivateStatusResponseToJSON(value?: CargoesV1CargoesTransportActivateStatusResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponse.js b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponse.js new file mode 100644 index 0000000..f44abc4 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON, CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON, } from './CargoesV1CargoesTransportActivateStatusResponseStatusEnum'; +import { CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON, CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateStatusResponse interface. + */ +export function instanceOfCargoesV1CargoesTransportActivateStatusResponse(value) { + return true; +} +export function CargoesV1CargoesTransportActivateStatusResponseFromJSON(json) { + return CargoesV1CargoesTransportActivateStatusResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportActivateStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON)), + 'status': json['status'] == null ? undefined : CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function CargoesV1CargoesTransportActivateStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON)), + 'status': CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..727c381 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,26 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum: { + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly SUPPLY_IS_FINALIZED: "SUPPLY_IS_FINALIZED"; + readonly CAN_NOT_EDIT_TAG: "CAN_NOT_EDIT_TAG"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..9b26d12 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum = { + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + SUPPLY_IS_FINALIZED: 'SUPPLY_IS_FINALIZED', + CAN_NOT_EDIT_TAG: 'CAN_NOT_EDIT_TAG', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfCargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..57ea054 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус включения или отключения транспортных грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesTransportActivateStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesTransportActivateStatusResponseStatusEnum = typeof CargoesV1CargoesTransportActivateStatusResponseStatusEnum[keyof typeof CargoesV1CargoesTransportActivateStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesTransportActivateStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesTransportActivateStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesTransportActivateStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.js b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.js new file mode 100644 index 0000000..79758ff --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус включения или отключения транспортных грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export const CargoesV1CargoesTransportActivateStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfCargoesV1CargoesTransportActivateStatusResponseStatusEnum(value) { + for (const key in CargoesV1CargoesTransportActivateStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportActivateStatusResponseStatusEnum, key)) { + if (CargoesV1CargoesTransportActivateStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportBindRequest.d.ts b/dist/esm/models/CargoesV1CargoesTransportBindRequest.d.ts new file mode 100644 index 0000000..ca476a0 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportBindRequestTransportCargoBind } from './CargoesV1CargoesTransportBindRequestTransportCargoBind'; +/** + * + * @export + * @interface CargoesV1CargoesTransportBindRequest + */ +export interface CargoesV1CargoesTransportBindRequest { + /** + * Идентификаторы транспортных грузомест, которые надо отвязать. + * @type {Array} + * @memberof CargoesV1CargoesTransportBindRequest + */ + cargoes_unbind_transport_cargoes?: Array; + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesTransportBindRequest + */ + supply_id: number; + /** + * Идентификаторы грузомест и транспортных грузомест, которые надо связать. + * @type {Array} + * @memberof CargoesV1CargoesTransportBindRequest + */ + transport_cargo_bind?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindRequest(value: object): value is CargoesV1CargoesTransportBindRequest; +export declare function CargoesV1CargoesTransportBindRequestFromJSON(json: any): CargoesV1CargoesTransportBindRequest; +export declare function CargoesV1CargoesTransportBindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindRequest; +export declare function CargoesV1CargoesTransportBindRequestToJSON(value?: CargoesV1CargoesTransportBindRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportBindRequest.js b/dist/esm/models/CargoesV1CargoesTransportBindRequest.js new file mode 100644 index 0000000..f9a7bae --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON, CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON, } from './CargoesV1CargoesTransportBindRequestTransportCargoBind'; +/** + * Check if a given object implements the CargoesV1CargoesTransportBindRequest interface. + */ +export function instanceOfCargoesV1CargoesTransportBindRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesTransportBindRequestFromJSON(json) { + return CargoesV1CargoesTransportBindRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportBindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes_unbind_transport_cargoes': json['cargoes_unbind_transport_cargoes'] == null ? undefined : json['cargoes_unbind_transport_cargoes'], + 'supply_id': json['supply_id'], + 'transport_cargo_bind': json['transport_cargo_bind'] == null ? undefined : (json['transport_cargo_bind'].map(CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON)), + }; +} +export function CargoesV1CargoesTransportBindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes_unbind_transport_cargoes': value['cargoes_unbind_transport_cargoes'], + 'supply_id': value['supply_id'], + 'transport_cargo_bind': value['transport_cargo_bind'] == null ? undefined : (value['transport_cargo_bind'].map(CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.d.ts b/dist/esm/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.d.ts new file mode 100644 index 0000000..2511269 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportBindRequestTransportCargoBind + */ +export interface CargoesV1CargoesTransportBindRequestTransportCargoBind { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof CargoesV1CargoesTransportBindRequestTransportCargoBind + */ + cargo_ids: Array; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV1CargoesTransportBindRequestTransportCargoBind + */ + transport_cargo_id: number; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindRequestTransportCargoBind interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindRequestTransportCargoBind(value: object): value is CargoesV1CargoesTransportBindRequestTransportCargoBind; +export declare function CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON(json: any): CargoesV1CargoesTransportBindRequestTransportCargoBind; +export declare function CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindRequestTransportCargoBind; +export declare function CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON(value?: CargoesV1CargoesTransportBindRequestTransportCargoBind | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.js b/dist/esm/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.js new file mode 100644 index 0000000..7113320 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesTransportBindRequestTransportCargoBind interface. + */ +export function instanceOfCargoesV1CargoesTransportBindRequestTransportCargoBind(value) { + if (!('cargo_ids' in value) || value['cargo_ids'] === undefined) + return false; + if (!('transport_cargo_id' in value) || value['transport_cargo_id'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON(json) { + return CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_ids': json['cargo_ids'], + 'transport_cargo_id': json['transport_cargo_id'], + }; +} +export function CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_ids': value['cargo_ids'], + 'transport_cargo_id': value['transport_cargo_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportBindResponse.d.ts b/dist/esm/models/CargoesV1CargoesTransportBindResponse.d.ts new file mode 100644 index 0000000..f5c1361 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindResponse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportBindResponseErrorReasonsEnum } from './CargoesV1CargoesTransportBindResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportBindResponse + */ +export interface CargoesV1CargoesTransportBindResponse { + /** + * Ошибки связывания или отвязывания грузомест: + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR` — поставка не принадлежит юридическому лицу; + * - `TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY` — для поставки не включены транспортные грузоместа; + * - `INVALID_SUPPLY_STATE` — неверный статус поставки; + * - `SUPPLY_IS_FINALIZED` — нельзя редактировать поставку; + * - `CARGO_IDS_NOT_FOUND` — грузоместа не найдены; + * - `TRANSPORT_CARGO_IDS_NOT_FOUND` — траспортные грузоместа не найдены; + * - `ETTN_IS_UPLOADED` — нельзя редактировать поставку с загруженной эТТН. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportBindResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/transport/bind/status](#operation/CargoesTransportBindStatus). + * @type {string} + * @memberof CargoesV1CargoesTransportBindResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindResponse(value: object): value is CargoesV1CargoesTransportBindResponse; +export declare function CargoesV1CargoesTransportBindResponseFromJSON(json: any): CargoesV1CargoesTransportBindResponse; +export declare function CargoesV1CargoesTransportBindResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindResponse; +export declare function CargoesV1CargoesTransportBindResponseToJSON(value?: CargoesV1CargoesTransportBindResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportBindResponse.js b/dist/esm/models/CargoesV1CargoesTransportBindResponse.js new file mode 100644 index 0000000..1650f1c --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON, CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesTransportBindResponseErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV1CargoesTransportBindResponse interface. + */ +export function instanceOfCargoesV1CargoesTransportBindResponse(value) { + return true; +} +export function CargoesV1CargoesTransportBindResponseFromJSON(json) { + return CargoesV1CargoesTransportBindResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportBindResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function CargoesV1CargoesTransportBindResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..8d09bfb --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportBindResponseErrorReasonsEnum: { + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY: "TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY"; + readonly INVALID_SUPPLY_STATE: "INVALID_SUPPLY_STATE"; + readonly SUPPLY_IS_FINALIZED: "SUPPLY_IS_FINALIZED"; + readonly CARGO_IDS_NOT_FOUND: "CARGO_IDS_NOT_FOUND"; + readonly TRANSPORT_CARGO_IDS_NOT_FOUND: "TRANSPORT_CARGO_IDS_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; +}; +export type CargoesV1CargoesTransportBindResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportBindResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportBindResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportBindResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportBindResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportBindResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.js new file mode 100644 index 0000000..6524535 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesTransportBindResponseErrorReasonsEnum = { + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR', + TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY: 'TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY', + INVALID_SUPPLY_STATE: 'INVALID_SUPPLY_STATE', + SUPPLY_IS_FINALIZED: 'SUPPLY_IS_FINALIZED', + CARGO_IDS_NOT_FOUND: 'CARGO_IDS_NOT_FOUND', + TRANSPORT_CARGO_IDS_NOT_FOUND: 'TRANSPORT_CARGO_IDS_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED' +}; +export function instanceOfCargoesV1CargoesTransportBindResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesTransportBindResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportBindResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesTransportBindResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportBindStatusRequest.d.ts b/dist/esm/models/CargoesV1CargoesTransportBindStatusRequest.d.ts new file mode 100644 index 0000000..606c423 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportBindStatusRequest + */ +export interface CargoesV1CargoesTransportBindStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/transport/bind](#operation/CargoesTransportBind). + * @type {string} + * @memberof CargoesV1CargoesTransportBindStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindStatusRequest(value: object): value is CargoesV1CargoesTransportBindStatusRequest; +export declare function CargoesV1CargoesTransportBindStatusRequestFromJSON(json: any): CargoesV1CargoesTransportBindStatusRequest; +export declare function CargoesV1CargoesTransportBindStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindStatusRequest; +export declare function CargoesV1CargoesTransportBindStatusRequestToJSON(value?: CargoesV1CargoesTransportBindStatusRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportBindStatusRequest.js b/dist/esm/models/CargoesV1CargoesTransportBindStatusRequest.js new file mode 100644 index 0000000..c53ebbb --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesTransportBindStatusRequest interface. + */ +export function instanceOfCargoesV1CargoesTransportBindStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesTransportBindStatusRequestFromJSON(json) { + return CargoesV1CargoesTransportBindStatusRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportBindStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function CargoesV1CargoesTransportBindStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportBindStatusResponse.d.ts b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponse.d.ts new file mode 100644 index 0000000..105df45 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum } from './CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum'; +import type { CargoesV1CargoesTransportBindStatusResponseStatusEnum } from './CargoesV1CargoesTransportBindStatusResponseStatusEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportBindStatusResponse + */ +export interface CargoesV1CargoesTransportBindStatusResponse { + /** + * Ошибки связывания или отвязывания грузомест: + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR` — поставка не принадлежит юридическому лицу; + * - `TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY` — для поставки не включены транспортные грузоместа; + * - `INVALID_SUPPLY_STATE` — неверный статус поставки; + * - `SUPPLY_IS_FINALIZED` — нельзя редактировать поставку; + * - `CARGO_IDS_NOT_FOUND` — грузоместа не найдены; + * - `TRANSPORT_CARGO_IDS_NOT_FOUND` — траспортные грузоместа не найдены; + * - `ETTN_IS_UPLOADED` — нельзя редактировать поставку с загруженной эТТН. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportBindStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesTransportBindStatusResponseStatusEnum} + * @memberof CargoesV1CargoesTransportBindStatusResponse + */ + status?: CargoesV1CargoesTransportBindStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindStatusResponse(value: object): value is CargoesV1CargoesTransportBindStatusResponse; +export declare function CargoesV1CargoesTransportBindStatusResponseFromJSON(json: any): CargoesV1CargoesTransportBindStatusResponse; +export declare function CargoesV1CargoesTransportBindStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindStatusResponse; +export declare function CargoesV1CargoesTransportBindStatusResponseToJSON(value?: CargoesV1CargoesTransportBindStatusResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportBindStatusResponse.js b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponse.js new file mode 100644 index 0000000..e4b8d43 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON, CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum'; +import { CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON, CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON, } from './CargoesV1CargoesTransportBindStatusResponseStatusEnum'; +/** + * Check if a given object implements the CargoesV1CargoesTransportBindStatusResponse interface. + */ +export function instanceOfCargoesV1CargoesTransportBindStatusResponse(value) { + return true; +} +export function CargoesV1CargoesTransportBindStatusResponseFromJSON(json) { + return CargoesV1CargoesTransportBindStatusResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportBindStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON)), + 'status': json['status'] == null ? undefined : CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function CargoesV1CargoesTransportBindStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON)), + 'status': CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..cd9a0b4 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum: { + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY: "TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY"; + readonly INVALID_SUPPLY_STATE: "INVALID_SUPPLY_STATE"; + readonly SUPPLY_IS_FINALIZED: "SUPPLY_IS_FINALIZED"; + readonly CARGO_IDS_NOT_FOUND: "CARGO_IDS_NOT_FOUND"; + readonly TRANSPORT_CARGO_IDS_NOT_FOUND: "TRANSPORT_CARGO_IDS_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; +}; +export type CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..d0d43e4 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum = { + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR', + TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY: 'TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY', + INVALID_SUPPLY_STATE: 'INVALID_SUPPLY_STATE', + SUPPLY_IS_FINALIZED: 'SUPPLY_IS_FINALIZED', + CARGO_IDS_NOT_FOUND: 'CARGO_IDS_NOT_FOUND', + TRANSPORT_CARGO_IDS_NOT_FOUND: 'TRANSPORT_CARGO_IDS_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED' +}; +export function instanceOfCargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..52400da --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус связывания или отвязывания грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesTransportBindStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesTransportBindStatusResponseStatusEnum = typeof CargoesV1CargoesTransportBindStatusResponseStatusEnum[keyof typeof CargoesV1CargoesTransportBindStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesTransportBindStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesTransportBindStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesTransportBindStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.js b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.js new file mode 100644 index 0000000..dd26da9 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус связывания или отвязывания грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export const CargoesV1CargoesTransportBindStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfCargoesV1CargoesTransportBindStatusResponseStatusEnum(value) { + for (const key in CargoesV1CargoesTransportBindStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportBindStatusResponseStatusEnum, key)) { + if (CargoesV1CargoesTransportBindStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateRequest.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateRequest.d.ts new file mode 100644 index 0000000..2d50626 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateRequestTransportCargoes } from './CargoesV1CargoesTransportCreateRequestTransportCargoes'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateRequest + */ +export interface CargoesV1CargoesTransportCreateRequest { + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesTransportCreateRequest + */ + supply_id: number; + /** + * Количество транспортных грузомест по типам. + * @type {Array} + * @memberof CargoesV1CargoesTransportCreateRequest + */ + transport_cargoes: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateRequest(value: object): value is CargoesV1CargoesTransportCreateRequest; +export declare function CargoesV1CargoesTransportCreateRequestFromJSON(json: any): CargoesV1CargoesTransportCreateRequest; +export declare function CargoesV1CargoesTransportCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateRequest; +export declare function CargoesV1CargoesTransportCreateRequestToJSON(value?: CargoesV1CargoesTransportCreateRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateRequest.js b/dist/esm/models/CargoesV1CargoesTransportCreateRequest.js new file mode 100644 index 0000000..bc88c1b --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON, CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON, } from './CargoesV1CargoesTransportCreateRequestTransportCargoes'; +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateRequest interface. + */ +export function instanceOfCargoesV1CargoesTransportCreateRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('transport_cargoes' in value) || value['transport_cargoes'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesTransportCreateRequestFromJSON(json) { + return CargoesV1CargoesTransportCreateRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + 'transport_cargoes': (json['transport_cargoes'].map(CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON)), + }; +} +export function CargoesV1CargoesTransportCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + 'transport_cargoes': (value['transport_cargoes'].map(CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.d.ts new file mode 100644 index 0000000..4ae2a9e --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum } from './CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateRequestTransportCargoes + */ +export interface CargoesV1CargoesTransportCreateRequestTransportCargoes { + /** + * Количество транспортных грузомест. + * @type {number} + * @memberof CargoesV1CargoesTransportCreateRequestTransportCargoes + */ + count: number; + /** + * + * @type {CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum} + * @memberof CargoesV1CargoesTransportCreateRequestTransportCargoes + */ + type: CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateRequestTransportCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoes(value: object): value is CargoesV1CargoesTransportCreateRequestTransportCargoes; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON(json: any): CargoesV1CargoesTransportCreateRequestTransportCargoes; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateRequestTransportCargoes; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON(value?: CargoesV1CargoesTransportCreateRequestTransportCargoes | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.js b/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.js new file mode 100644 index 0000000..5e9a62a --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON, CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON, } from './CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum'; +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateRequestTransportCargoes interface. + */ +export function instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoes(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON(json) { + return CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'type': CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON(json['type']), + }; +} +export function CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'type': CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.d.ts new file mode 100644 index 0000000..25d2596 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum: { + readonly PALLET: "PALLET"; +}; +export type CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum = typeof CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum[keyof typeof CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON(json: any): CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON(value?: CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.js b/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.js new file mode 100644 index 0000000..4fb745b --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export const CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum = { + PALLET: 'PALLET' +}; +export function instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum(value) { + for (const key in CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum, key)) { + if (CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateResponse.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateResponse.d.ts new file mode 100644 index 0000000..9fbeaa9 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateResponse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateResponseErrorReasonsEnum } from './CargoesV1CargoesTransportCreateResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateResponse + */ +export interface CargoesV1CargoesTransportCreateResponse { + /** + * Ошибки при создании транспортных грузомест: + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `WAREHOUSE_LIMITS_EXCEED` — превышены лимиты склада; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — заявка на поставку не принадлежит юридическому лицу; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `PALLET_SUPPLY_CONTAINS_BOXES` — палетная поставка не может содержать коробки; + * - `SUPPLY_CARGOES_IS_FINALIZED` — нельзя редактировать заявку на поставку; + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `ETTN_IS_UPLOADED` — нельзя редактировать поставку с загруженной эТТН; + * - `BOX_SUPPLY_CONTAINS_PALLETS` — поставка может содержать только коробки; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportCreateResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/transport/create/status](#operation/CargoesTransportCreateStatus). + * @type {string} + * @memberof CargoesV1CargoesTransportCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateResponse(value: object): value is CargoesV1CargoesTransportCreateResponse; +export declare function CargoesV1CargoesTransportCreateResponseFromJSON(json: any): CargoesV1CargoesTransportCreateResponse; +export declare function CargoesV1CargoesTransportCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateResponse; +export declare function CargoesV1CargoesTransportCreateResponseToJSON(value?: CargoesV1CargoesTransportCreateResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateResponse.js b/dist/esm/models/CargoesV1CargoesTransportCreateResponse.js new file mode 100644 index 0000000..3c8de71 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON, CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesTransportCreateResponseErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateResponse interface. + */ +export function instanceOfCargoesV1CargoesTransportCreateResponse(value) { + return true; +} +export function CargoesV1CargoesTransportCreateResponseFromJSON(json) { + return CargoesV1CargoesTransportCreateResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function CargoesV1CargoesTransportCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..10cb6ae --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateResponseErrorReasonsEnum: { + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly WAREHOUSE_LIMITS_EXCEED: "WAREHOUSE_LIMITS_EXCEED"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly PALLET_SUPPLY_CONTAINS_BOXES: "PALLET_SUPPLY_CONTAINS_BOXES"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; + readonly BOX_SUPPLY_CONTAINS_PALLETS: "BOX_SUPPLY_CONTAINS_PALLETS"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesTransportCreateResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportCreateResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportCreateResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportCreateResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.js new file mode 100644 index 0000000..db96eef --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesTransportCreateResponseErrorReasonsEnum = { + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + WAREHOUSE_LIMITS_EXCEED: 'WAREHOUSE_LIMITS_EXCEED', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + PALLET_SUPPLY_CONTAINS_BOXES: 'PALLET_SUPPLY_CONTAINS_BOXES', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED', + BOX_SUPPLY_CONTAINS_PALLETS: 'BOX_SUPPLY_CONTAINS_PALLETS', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfCargoesV1CargoesTransportCreateResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesTransportCreateResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportCreateResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesTransportCreateResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusRequest.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateStatusRequest.d.ts new file mode 100644 index 0000000..2342244 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateStatusRequest + */ +export interface CargoesV1CargoesTransportCreateStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/transport/create](#operation/CargoesTransportCreate). + * @type {string} + * @memberof CargoesV1CargoesTransportCreateStatusRequest + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateStatusRequest(value: object): value is CargoesV1CargoesTransportCreateStatusRequest; +export declare function CargoesV1CargoesTransportCreateStatusRequestFromJSON(json: any): CargoesV1CargoesTransportCreateStatusRequest; +export declare function CargoesV1CargoesTransportCreateStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusRequest; +export declare function CargoesV1CargoesTransportCreateStatusRequestToJSON(value?: CargoesV1CargoesTransportCreateStatusRequest | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusRequest.js b/dist/esm/models/CargoesV1CargoesTransportCreateStatusRequest.js new file mode 100644 index 0000000..f9b10ce --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusRequest interface. + */ +export function instanceOfCargoesV1CargoesTransportCreateStatusRequest(value) { + return true; +} +export function CargoesV1CargoesTransportCreateStatusRequestFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusRequestFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function CargoesV1CargoesTransportCreateStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponse.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponse.d.ts new file mode 100644 index 0000000..c32a00d --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponse.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum } from './CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum'; +import type { CargoesV1CargoesTransportCreateStatusResponseResult } from './CargoesV1CargoesTransportCreateStatusResponseResult'; +import type { CargoesV1CargoesTransportCreateStatusResponseStatusEnum } from './CargoesV1CargoesTransportCreateStatusResponseStatusEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateStatusResponse + */ +export interface CargoesV1CargoesTransportCreateStatusResponse { + /** + * Ошибки при создании транспортных грузомест: + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `WAREHOUSE_LIMITS_EXCEED` — превышены лимиты склада; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — заявка на поставку не принадлежит юридическому лицу; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `PALLET_SUPPLY_CONTAINS_BOXES` — палетная поставка не может содержать коробки; + * - `SUPPLY_CARGOES_IS_FINALIZED` — нельзя редактировать заявку на поставку; + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `ETTN_IS_UPLOADED` — нельзя редактировать поставку с загруженной эТТН; + * - `BOX_SUPPLY_CONTAINS_PALLETS` — поставка может содержать только коробки; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportCreateStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesTransportCreateStatusResponseResult} + * @memberof CargoesV1CargoesTransportCreateStatusResponse + */ + result?: CargoesV1CargoesTransportCreateStatusResponseResult; + /** + * + * @type {CargoesV1CargoesTransportCreateStatusResponseStatusEnum} + * @memberof CargoesV1CargoesTransportCreateStatusResponse + */ + status?: CargoesV1CargoesTransportCreateStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponse(value: object): value is CargoesV1CargoesTransportCreateStatusResponse; +export declare function CargoesV1CargoesTransportCreateStatusResponseFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponse; +export declare function CargoesV1CargoesTransportCreateStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponse; +export declare function CargoesV1CargoesTransportCreateStatusResponseToJSON(value?: CargoesV1CargoesTransportCreateStatusResponse | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponse.js b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponse.js new file mode 100644 index 0000000..92dd6ac --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON, CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON, } from './CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum'; +import { CargoesV1CargoesTransportCreateStatusResponseResultFromJSON, CargoesV1CargoesTransportCreateStatusResponseResultToJSON, } from './CargoesV1CargoesTransportCreateStatusResponseResult'; +import { CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON, CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON, } from './CargoesV1CargoesTransportCreateStatusResponseStatusEnum'; +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponse interface. + */ +export function instanceOfCargoesV1CargoesTransportCreateStatusResponse(value) { + return true; +} +export function CargoesV1CargoesTransportCreateStatusResponseFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON)), + 'result': json['result'] == null ? undefined : CargoesV1CargoesTransportCreateStatusResponseResultFromJSON(json['result']), + 'status': json['status'] == null ? undefined : CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function CargoesV1CargoesTransportCreateStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON)), + 'result': CargoesV1CargoesTransportCreateStatusResponseResultToJSON(value['result']), + 'status': CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..68b97eb --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum: { + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly WAREHOUSE_LIMITS_EXCEED: "WAREHOUSE_LIMITS_EXCEED"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly PALLET_SUPPLY_CONTAINS_BOXES: "PALLET_SUPPLY_CONTAINS_BOXES"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; + readonly BOX_SUPPLY_CONTAINS_PALLETS: "BOX_SUPPLY_CONTAINS_PALLETS"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.js b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..7f2afa5 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum = { + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + WAREHOUSE_LIMITS_EXCEED: 'WAREHOUSE_LIMITS_EXCEED', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + PALLET_SUPPLY_CONTAINS_BOXES: 'PALLET_SUPPLY_CONTAINS_BOXES', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED', + BOX_SUPPLY_CONTAINS_PALLETS: 'BOX_SUPPLY_CONTAINS_PALLETS', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfCargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum(value) { + for (const key in CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum, key)) { + if (CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResult.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResult.d.ts new file mode 100644 index 0000000..8d4aba7 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes } from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes'; +/** + * Созданные транспортные грузоместа. + * @export + * @interface CargoesV1CargoesTransportCreateStatusResponseResult + */ +export interface CargoesV1CargoesTransportCreateStatusResponseResult { + /** + * Информация о созданных транспортных грузоместах. + * @type {Array} + * @memberof CargoesV1CargoesTransportCreateStatusResponseResult + */ + transport_cargoes?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponseResult interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseResult(value: object): value is CargoesV1CargoesTransportCreateStatusResponseResult; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseResult; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseResult; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseResult | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResult.js b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResult.js new file mode 100644 index 0000000..1601638 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResult.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON, CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON, } from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes'; +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponseResult interface. + */ +export function instanceOfCargoesV1CargoesTransportCreateStatusResponseResult(value) { + return true; +} +export function CargoesV1CargoesTransportCreateStatusResponseResultFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseResultFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'transport_cargoes': json['transport_cargoes'] == null ? undefined : (json['transport_cargoes'].map(CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON)), + }; +} +export function CargoesV1CargoesTransportCreateStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'transport_cargoes': value['transport_cargoes'] == null ? undefined : (value['transport_cargoes'].map(CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.d.ts new file mode 100644 index 0000000..88f71b3 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum } from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes + */ +export interface CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes { + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes + */ + id?: number; + /** + * + * @type {CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum} + * @memberof CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes + */ + type?: CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes(value: object): value is CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.js b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.js new file mode 100644 index 0000000..3341a10 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON, CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON, } from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum'; +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes interface. + */ +export function instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes(value) { + return true; +} +export function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'type': json['type'] == null ? undefined : CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON(json['type']), + }; +} +export function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'type': CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.d.ts new file mode 100644 index 0000000..837c0d7 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum: { + readonly PALLET: "PALLET"; +}; +export type CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum = typeof CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum[keyof typeof CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.js b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.js new file mode 100644 index 0000000..be30a5e --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export const CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum = { + PALLET: 'PALLET' +}; +export function instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum(value) { + for (const key in CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum, key)) { + if (CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.d.ts b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..74127d5 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания транспортных грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesTransportCreateStatusResponseStatusEnum = typeof CargoesV1CargoesTransportCreateStatusResponseStatusEnum[keyof typeof CargoesV1CargoesTransportCreateStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.js b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.js new file mode 100644 index 0000000..6818de0 --- /dev/null +++ b/dist/esm/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания транспортных грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export const CargoesV1CargoesTransportCreateStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfCargoesV1CargoesTransportCreateStatusResponseStatusEnum(value) { + for (const key in CargoesV1CargoesTransportCreateStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV1CargoesTransportCreateStatusResponseStatusEnum, key)) { + if (CargoesV1CargoesTransportCreateStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteRequest.d.ts b/dist/esm/models/CargoesV2CargoesDeleteRequest.d.ts new file mode 100644 index 0000000..3c3aab2 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum } from './CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteRequest + */ +export interface CargoesV2CargoesDeleteRequest { + /** + * Список идентификаторов грузомест, которые нужно удалить. + * @type {Array} + * @memberof CargoesV2CargoesDeleteRequest + */ + cargo_ids?: Array; + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV2CargoesDeleteRequest + */ + supply_id: number; + /** + * + * @type {CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum} + * @memberof CargoesV2CargoesDeleteRequest + */ + transport_cargo_deletion_type: CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum; + /** + * Список идентификаторов транспортных грузомест, которые нужно удалить. + * @type {Array} + * @memberof CargoesV2CargoesDeleteRequest + */ + transport_cargo_ids?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteRequest interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteRequest(value: object): value is CargoesV2CargoesDeleteRequest; +export declare function CargoesV2CargoesDeleteRequestFromJSON(json: any): CargoesV2CargoesDeleteRequest; +export declare function CargoesV2CargoesDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteRequest; +export declare function CargoesV2CargoesDeleteRequestToJSON(value?: CargoesV2CargoesDeleteRequest | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteRequest.js b/dist/esm/models/CargoesV2CargoesDeleteRequest.js new file mode 100644 index 0000000..a0337cf --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON, CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON, } from './CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteRequest interface. + */ +export function instanceOfCargoesV2CargoesDeleteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('transport_cargo_deletion_type' in value) || value['transport_cargo_deletion_type'] === undefined) + return false; + return true; +} +export function CargoesV2CargoesDeleteRequestFromJSON(json) { + return CargoesV2CargoesDeleteRequestFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_ids': json['cargo_ids'] == null ? undefined : json['cargo_ids'], + 'supply_id': json['supply_id'], + 'transport_cargo_deletion_type': CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON(json['transport_cargo_deletion_type']), + 'transport_cargo_ids': json['transport_cargo_ids'] == null ? undefined : json['transport_cargo_ids'], + }; +} +export function CargoesV2CargoesDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_ids': value['cargo_ids'], + 'supply_id': value['supply_id'], + 'transport_cargo_deletion_type': CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON(value['transport_cargo_deletion_type']), + 'transport_cargo_ids': value['transport_cargo_ids'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.d.ts b/dist/esm/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.d.ts new file mode 100644 index 0000000..83220b4 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип удаления транспортного грузоместа: + * - `UNBIND_CONTAINED_CARGOES` — удалить только транспортное грузоместо и отвязать от него все грузоместа; + * - `DELETE_CONTAINED_CARGOES` — удалить транспортное грузоместо вместе с грузоместами. + * + * @export + */ +export declare const CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum: { + readonly UNBIND_CONTAINED_CARGOES: "UNBIND_CONTAINED_CARGOES"; + readonly DELETE_CONTAINED_CARGOES: "DELETE_CONTAINED_CARGOES"; +}; +export type CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum = typeof CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum[keyof typeof CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum]; +export declare function instanceOfCargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON(json: any): CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum; +export declare function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum; +export declare function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON(value?: CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.js b/dist/esm/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.js new file mode 100644 index 0000000..569a6a6 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип удаления транспортного грузоместа: + * - `UNBIND_CONTAINED_CARGOES` — удалить только транспортное грузоместо и отвязать от него все грузоместа; + * - `DELETE_CONTAINED_CARGOES` — удалить транспортное грузоместо вместе с грузоместами. + * + * @export + */ +export const CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum = { + UNBIND_CONTAINED_CARGOES: 'UNBIND_CONTAINED_CARGOES', + DELETE_CONTAINED_CARGOES: 'DELETE_CONTAINED_CARGOES' +}; +export function instanceOfCargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum(value) { + for (const key in CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum, key)) { + if (CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON(json) { + return CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponse.d.ts b/dist/esm/models/CargoesV2CargoesDeleteResponse.d.ts new file mode 100644 index 0000000..b04eaa0 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteResponseErrors } from './CargoesV2CargoesDeleteResponseErrors'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteResponse + */ +export interface CargoesV2CargoesDeleteResponse { + /** + * + * @type {CargoesV2CargoesDeleteResponseErrors} + * @memberof CargoesV2CargoesDeleteResponse + */ + errors?: CargoesV2CargoesDeleteResponseErrors; + /** + * Идентификатор операции. Получите статус операции методом [/v2/cargoes/delete/status](#operation/CargoesDeleteStatusV2). + * @type {string} + * @memberof CargoesV2CargoesDeleteResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponse interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteResponse(value: object): value is CargoesV2CargoesDeleteResponse; +export declare function CargoesV2CargoesDeleteResponseFromJSON(json: any): CargoesV2CargoesDeleteResponse; +export declare function CargoesV2CargoesDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponse; +export declare function CargoesV2CargoesDeleteResponseToJSON(value?: CargoesV2CargoesDeleteResponse | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponse.js b/dist/esm/models/CargoesV2CargoesDeleteResponse.js new file mode 100644 index 0000000..0e59f5e --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteResponseErrorsFromJSON, CargoesV2CargoesDeleteResponseErrorsToJSON, } from './CargoesV2CargoesDeleteResponseErrors'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponse interface. + */ +export function instanceOfCargoesV2CargoesDeleteResponse(value) { + return true; +} +export function CargoesV2CargoesDeleteResponseFromJSON(json) { + return CargoesV2CargoesDeleteResponseFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : CargoesV2CargoesDeleteResponseErrorsFromJSON(json['errors']), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function CargoesV2CargoesDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': CargoesV2CargoesDeleteResponseErrorsToJSON(value['errors']), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrors.d.ts b/dist/esm/models/CargoesV2CargoesDeleteResponseErrors.d.ts new file mode 100644 index 0000000..e61f62a --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrors.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum } from './CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum'; +import type { CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons } from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons'; +import type { CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons } from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons'; +/** + * Ошибки. + * @export + * @interface CargoesV2CargoesDeleteResponseErrors + */ +export interface CargoesV2CargoesDeleteResponseErrors { + /** + * Ошибки при удалении грузомест. + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrors + */ + cargo_error_reasons?: Array; + /** + * Ошибки поставки: + * - `UNSPECIFIED` — не определена; + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `CANT_DELETE_ALL_CARGOES` — нельзя удалять все грузоместа; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — не принадлежит вашему юридическому лицу; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — не принадлежит вашему кабинету; + * - `SUPPLY_CARGOES_IS_FINALIZED` — грузоместа поставки нельзя редактировать; + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `ETTN_IS_UPLOADED` — электронная ТТН загружена; + * - `CANT_DELETE_ALL_TRANSPORT_CARGOES` — нельзя удалять все транспортные грузоместа; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrors + */ + supply_error_reasons?: Array; + /** + * Ошибки при удалении транспортных грузомест. + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrors + */ + transport_cargo_error_reasons?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrors interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteResponseErrors(value: object): value is CargoesV2CargoesDeleteResponseErrors; +export declare function CargoesV2CargoesDeleteResponseErrorsFromJSON(json: any): CargoesV2CargoesDeleteResponseErrors; +export declare function CargoesV2CargoesDeleteResponseErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrors; +export declare function CargoesV2CargoesDeleteResponseErrorsToJSON(value?: CargoesV2CargoesDeleteResponseErrors | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrors.js b/dist/esm/models/CargoesV2CargoesDeleteResponseErrors.js new file mode 100644 index 0000000..6fb974a --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrors.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON, CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON, } from './CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum'; +import { CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON, CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON, } from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons'; +import { CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON, CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON, } from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrors interface. + */ +export function instanceOfCargoesV2CargoesDeleteResponseErrors(value) { + return true; +} +export function CargoesV2CargoesDeleteResponseErrorsFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteResponseErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_error_reasons': json['cargo_error_reasons'] == null ? undefined : (json['cargo_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON)), + 'supply_error_reasons': json['supply_error_reasons'] == null ? undefined : (json['supply_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON)), + 'transport_cargo_error_reasons': json['transport_cargo_error_reasons'] == null ? undefined : (json['transport_cargo_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON)), + }; +} +export function CargoesV2CargoesDeleteResponseErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_error_reasons': value['cargo_error_reasons'] == null ? undefined : (value['cargo_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON)), + 'supply_error_reasons': value['supply_error_reasons'] == null ? undefined : (value['supply_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON)), + 'transport_cargo_error_reasons': value['transport_cargo_error_reasons'] == null ? undefined : (value['transport_cargo_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.d.ts b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.d.ts new file mode 100644 index 0000000..f8f4a42 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum } from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons + */ +export interface CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons + */ + cargo_id?: number; + /** + * Список ошибок грузоместа: + * - `UNSPECIFIED` — не определена; + * - `CARGO_NOT_FOUND` — грузоместо не найдено. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasons(value: object): value is CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON(value?: CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.js b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.js new file mode 100644 index 0000000..92a30d8 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON, CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON, } from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons interface. + */ +export function instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasons(value) { + return true; +} +export function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON)), + }; +} +export function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts new file mode 100644 index 0000000..3ac9789 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum = typeof CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.js b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.js new file mode 100644 index 0000000..6bab668 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +export function instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum(value) { + for (const key in CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum, key)) { + if (CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.d.ts new file mode 100644 index 0000000..24f8493 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly CANT_DELETE_ALL_CARGOES: "CANT_DELETE_ALL_CARGOES"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; + readonly CANT_DELETE_ALL_TRANSPORT_CARGOES: "CANT_DELETE_ALL_TRANSPORT_CARGOES"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum = typeof CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.js b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.js new file mode 100644 index 0000000..ec35ee6 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + CANT_DELETE_ALL_CARGOES: 'CANT_DELETE_ALL_CARGOES', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED', + CANT_DELETE_ALL_TRANSPORT_CARGOES: 'CANT_DELETE_ALL_TRANSPORT_CARGOES', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfCargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum(value) { + for (const key in CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum, key)) { + if (CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.d.ts b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.d.ts new file mode 100644 index 0000000..08aa1fe --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum } from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons + */ +export interface CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons { + /** + * Список ошибок транспортного грузоместа: + * - `UNSPECIFIED` — не определена; + * - `CARGO_NOT_FOUND` — транспортное грузоместо не найдено. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons + */ + error_reasons?: Array; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons + */ + transport_cargo_id?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons(value: object): value is CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON(value?: CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.js b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.js new file mode 100644 index 0000000..c966985 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON, CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON, } from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons interface. + */ +export function instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons(value) { + return true; +} +export function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON)), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + }; +} +export function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON)), + 'transport_cargo_id': value['transport_cargo_id'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts new file mode 100644 index 0000000..297c586 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = typeof CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js new file mode 100644 index 0000000..2aa3e62 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +export function instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum(value) { + for (const key in CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum, key)) { + if (CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusRequest.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusRequest.d.ts new file mode 100644 index 0000000..0fb261f --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV2CargoesDeleteStatusRequest + */ +export interface CargoesV2CargoesDeleteStatusRequest { + /** + * Идентификатор операции из метода [/v2/cargoes/delete](#operation/CargoesDeleteV2). + * @type {string} + * @memberof CargoesV2CargoesDeleteStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusRequest interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusRequest(value: object): value is CargoesV2CargoesDeleteStatusRequest; +export declare function CargoesV2CargoesDeleteStatusRequestFromJSON(json: any): CargoesV2CargoesDeleteStatusRequest; +export declare function CargoesV2CargoesDeleteStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusRequest; +export declare function CargoesV2CargoesDeleteStatusRequestToJSON(value?: CargoesV2CargoesDeleteStatusRequest | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusRequest.js b/dist/esm/models/CargoesV2CargoesDeleteStatusRequest.js new file mode 100644 index 0000000..6ec2e52 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusRequest interface. + */ +export function instanceOfCargoesV2CargoesDeleteStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function CargoesV2CargoesDeleteStatusRequestFromJSON(json) { + return CargoesV2CargoesDeleteStatusRequestFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function CargoesV2CargoesDeleteStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponse.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusResponse.d.ts new file mode 100644 index 0000000..8530621 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteStatusResponseErrors } from './CargoesV2CargoesDeleteStatusResponseErrors'; +import type { CargoesV2CargoesDeleteStatusResponseStatusEnum } from './CargoesV2CargoesDeleteStatusResponseStatusEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteStatusResponse + */ +export interface CargoesV2CargoesDeleteStatusResponse { + /** + * + * @type {CargoesV2CargoesDeleteStatusResponseErrors} + * @memberof CargoesV2CargoesDeleteStatusResponse + */ + errors?: CargoesV2CargoesDeleteStatusResponseErrors; + /** + * + * @type {CargoesV2CargoesDeleteStatusResponseStatusEnum} + * @memberof CargoesV2CargoesDeleteStatusResponse + */ + status?: CargoesV2CargoesDeleteStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponse interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusResponse(value: object): value is CargoesV2CargoesDeleteStatusResponse; +export declare function CargoesV2CargoesDeleteStatusResponseFromJSON(json: any): CargoesV2CargoesDeleteStatusResponse; +export declare function CargoesV2CargoesDeleteStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponse; +export declare function CargoesV2CargoesDeleteStatusResponseToJSON(value?: CargoesV2CargoesDeleteStatusResponse | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponse.js b/dist/esm/models/CargoesV2CargoesDeleteStatusResponse.js new file mode 100644 index 0000000..47425b2 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteStatusResponseErrorsFromJSON, CargoesV2CargoesDeleteStatusResponseErrorsToJSON, } from './CargoesV2CargoesDeleteStatusResponseErrors'; +import { CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON, CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON, } from './CargoesV2CargoesDeleteStatusResponseStatusEnum'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponse interface. + */ +export function instanceOfCargoesV2CargoesDeleteStatusResponse(value) { + return true; +} +export function CargoesV2CargoesDeleteStatusResponseFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : CargoesV2CargoesDeleteStatusResponseErrorsFromJSON(json['errors']), + 'status': json['status'] == null ? undefined : CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function CargoesV2CargoesDeleteStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': CargoesV2CargoesDeleteStatusResponseErrorsToJSON(value['errors']), + 'status': CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrors.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrors.d.ts new file mode 100644 index 0000000..a1cae5a --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrors.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons } from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons'; +import type { CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum } from './CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum'; +import type { CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons } from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons'; +/** + * Ошибки. + * @export + * @interface CargoesV2CargoesDeleteStatusResponseErrors + */ +export interface CargoesV2CargoesDeleteStatusResponseErrors { + /** + * Ошибки при удалении грузомест. + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrors + */ + cargo_error_reasons?: Array; + /** + * Ошибки поставки: + * - `UNSPECIFIED` — не определена; + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `CANT_DELETE_ALL_CARGOES` — нельзя удалять все грузоместа; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — не принадлежит вашему юридическому лицу; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — не принадлежит вашему кабинету; + * - `SUPPLY_CARGOES_IS_FINALIZED` — грузоместа поставки нельзя редактировать; + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `ETTN_IS_UPLOADED` — электронная ТТН загружена; + * - `CANT_DELETE_ALL_TRANSPORT_CARGOES` — нельзя удалять все транспортные грузоместа; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrors + */ + supply_error_reasons?: Array; + /** + * Ошибки при удалении транспортных грузомест. + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrors + */ + transport_cargo_error_reasons?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrors interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrors(value: object): value is CargoesV2CargoesDeleteStatusResponseErrors; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrors; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrors; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrors | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrors.js b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrors.js new file mode 100644 index 0000000..6b4f29b --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrors.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON, CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON, } from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons'; +import { CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON, CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON, } from './CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum'; +import { CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON, CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON, } from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrors interface. + */ +export function instanceOfCargoesV2CargoesDeleteStatusResponseErrors(value) { + return true; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusResponseErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_error_reasons': json['cargo_error_reasons'] == null ? undefined : (json['cargo_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON)), + 'supply_error_reasons': json['supply_error_reasons'] == null ? undefined : (json['supply_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON)), + 'transport_cargo_error_reasons': json['transport_cargo_error_reasons'] == null ? undefined : (json['transport_cargo_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON)), + }; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_error_reasons': value['cargo_error_reasons'] == null ? undefined : (value['cargo_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON)), + 'supply_error_reasons': value['supply_error_reasons'] == null ? undefined : (value['supply_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON)), + 'transport_cargo_error_reasons': value['transport_cargo_error_reasons'] == null ? undefined : (value['transport_cargo_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.d.ts new file mode 100644 index 0000000..81f8b02 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum } from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons + */ +export interface CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons + */ + cargo_id?: number; + /** + * Список ошибок грузоместа: + * - `UNSPECIFIED` — не определена; + * - `CARGO_NOT_FOUND` — грузоместо не найдено. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons(value: object): value is CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.js b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.js new file mode 100644 index 0000000..0a1c51b --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON, CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON, } from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons interface. + */ +export function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons(value) { + return true; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON)), + }; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts new file mode 100644 index 0000000..ca37b07 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum = typeof CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.js b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.js new file mode 100644 index 0000000..ac84bb0 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +export function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum(value) { + for (const key in CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum, key)) { + if (CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.d.ts new file mode 100644 index 0000000..e50cf36 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly CANT_DELETE_ALL_CARGOES: "CANT_DELETE_ALL_CARGOES"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; + readonly CANT_DELETE_ALL_TRANSPORT_CARGOES: "CANT_DELETE_ALL_TRANSPORT_CARGOES"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum = typeof CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.js b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.js new file mode 100644 index 0000000..f6cb990 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + CANT_DELETE_ALL_CARGOES: 'CANT_DELETE_ALL_CARGOES', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED', + CANT_DELETE_ALL_TRANSPORT_CARGOES: 'CANT_DELETE_ALL_TRANSPORT_CARGOES', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum(value) { + for (const key in CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum, key)) { + if (CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.d.ts new file mode 100644 index 0000000..d946306 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum } from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons + */ +export interface CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons { + /** + * Список ошибок транспортного грузоместа: + * - `UNSPECIFIED` — не определена; + * - `CARGO_NOT_FOUND` — транспортное грузоместо не найдено. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons + */ + error_reasons?: Array; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons + */ + transport_cargo_id?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons(value: object): value is CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.js b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.js new file mode 100644 index 0000000..9ba13ff --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON, CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON, } from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons interface. + */ +export function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons(value) { + return true; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON)), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + }; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON)), + 'transport_cargo_id': value['transport_cargo_id'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts new file mode 100644 index 0000000..33ac6dc --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = typeof CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js new file mode 100644 index 0000000..c98b20c --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +export function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum(value) { + for (const key in CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum, key)) { + if (CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.d.ts b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..fe65f46 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус удаления грузоместа: + * - `UNSPECIFIED` — не определён; + * - `SUCCESS` — грузоместо удалено; + * - `IN_PROGRESS` — грузоместо в процессе удаления; + * - `ERROR` — возникла ошибка при удалении грузоместа. + * + * @export + */ +export declare const CargoesV2CargoesDeleteStatusResponseStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV2CargoesDeleteStatusResponseStatusEnum = typeof CargoesV2CargoesDeleteStatusResponseStatusEnum[keyof typeof CargoesV2CargoesDeleteStatusResponseStatusEnum]; +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseStatusEnum; +export declare function CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseStatusEnum; +export declare function CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON(value?: CargoesV2CargoesDeleteStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.js b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.js new file mode 100644 index 0000000..773e995 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус удаления грузоместа: + * - `UNSPECIFIED` — не определён; + * - `SUCCESS` — грузоместо удалено; + * - `IN_PROGRESS` — грузоместо в процессе удаления; + * - `ERROR` — возникла ошибка при удалении грузоместа. + * + * @export + */ +export const CargoesV2CargoesDeleteStatusResponseStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfCargoesV2CargoesDeleteStatusResponseStatusEnum(value) { + for (const key in CargoesV2CargoesDeleteStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesDeleteStatusResponseStatusEnum, key)) { + if (CargoesV2CargoesDeleteStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesGetRequest.d.ts b/dist/esm/models/CargoesV2CargoesGetRequest.d.ts new file mode 100644 index 0000000..49ba422 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetRequestSupplies } from './CargoesV2CargoesGetRequestSupplies'; +/** + * + * @export + * @interface CargoesV2CargoesGetRequest + */ +export interface CargoesV2CargoesGetRequest { + /** + * Информация о поставках. + * @type {Array} + * @memberof CargoesV2CargoesGetRequest + */ + supplies: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesGetRequest interface. + */ +export declare function instanceOfCargoesV2CargoesGetRequest(value: object): value is CargoesV2CargoesGetRequest; +export declare function CargoesV2CargoesGetRequestFromJSON(json: any): CargoesV2CargoesGetRequest; +export declare function CargoesV2CargoesGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetRequest; +export declare function CargoesV2CargoesGetRequestToJSON(value?: CargoesV2CargoesGetRequest | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetRequest.js b/dist/esm/models/CargoesV2CargoesGetRequest.js new file mode 100644 index 0000000..a6150e8 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetRequestSuppliesFromJSON, CargoesV2CargoesGetRequestSuppliesToJSON, } from './CargoesV2CargoesGetRequestSupplies'; +/** + * Check if a given object implements the CargoesV2CargoesGetRequest interface. + */ +export function instanceOfCargoesV2CargoesGetRequest(value) { + if (!('supplies' in value) || value['supplies'] === undefined) + return false; + return true; +} +export function CargoesV2CargoesGetRequestFromJSON(json) { + return CargoesV2CargoesGetRequestFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supplies': (json['supplies'].map(CargoesV2CargoesGetRequestSuppliesFromJSON)), + }; +} +export function CargoesV2CargoesGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supplies': (value['supplies'].map(CargoesV2CargoesGetRequestSuppliesToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetRequestSupplies.d.ts b/dist/esm/models/CargoesV2CargoesGetRequestSupplies.d.ts new file mode 100644 index 0000000..2b4d395 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetRequestSupplies.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV2CargoesGetRequestSupplies + */ +export interface CargoesV2CargoesGetRequestSupplies { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof CargoesV2CargoesGetRequestSupplies + */ + cargo_ids: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesV2CargoesGetRequestSupplies + */ + supply_id: number; +} +/** + * Check if a given object implements the CargoesV2CargoesGetRequestSupplies interface. + */ +export declare function instanceOfCargoesV2CargoesGetRequestSupplies(value: object): value is CargoesV2CargoesGetRequestSupplies; +export declare function CargoesV2CargoesGetRequestSuppliesFromJSON(json: any): CargoesV2CargoesGetRequestSupplies; +export declare function CargoesV2CargoesGetRequestSuppliesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetRequestSupplies; +export declare function CargoesV2CargoesGetRequestSuppliesToJSON(value?: CargoesV2CargoesGetRequestSupplies | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetRequestSupplies.js b/dist/esm/models/CargoesV2CargoesGetRequestSupplies.js new file mode 100644 index 0000000..a3e8fcb --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetRequestSupplies.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV2CargoesGetRequestSupplies interface. + */ +export function instanceOfCargoesV2CargoesGetRequestSupplies(value) { + if (!('cargo_ids' in value) || value['cargo_ids'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function CargoesV2CargoesGetRequestSuppliesFromJSON(json) { + return CargoesV2CargoesGetRequestSuppliesFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetRequestSuppliesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_ids': json['cargo_ids'], + 'supply_id': json['supply_id'], + }; +} +export function CargoesV2CargoesGetRequestSuppliesToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_ids': value['cargo_ids'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponse.d.ts b/dist/esm/models/CargoesV2CargoesGetResponse.d.ts new file mode 100644 index 0000000..20da3be --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSupplies } from './CargoesV2CargoesGetResponseSupplies'; +/** + * + * @export + * @interface CargoesV2CargoesGetResponse + */ +export interface CargoesV2CargoesGetResponse { + /** + * Информация о грузоместах и транспортных грузоместах. + * @type {Array} + * @memberof CargoesV2CargoesGetResponse + */ + supplies?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponse interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponse(value: object): value is CargoesV2CargoesGetResponse; +export declare function CargoesV2CargoesGetResponseFromJSON(json: any): CargoesV2CargoesGetResponse; +export declare function CargoesV2CargoesGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponse; +export declare function CargoesV2CargoesGetResponseToJSON(value?: CargoesV2CargoesGetResponse | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponse.js b/dist/esm/models/CargoesV2CargoesGetResponse.js new file mode 100644 index 0000000..9d06846 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetResponseSuppliesFromJSON, CargoesV2CargoesGetResponseSuppliesToJSON, } from './CargoesV2CargoesGetResponseSupplies'; +/** + * Check if a given object implements the CargoesV2CargoesGetResponse interface. + */ +export function instanceOfCargoesV2CargoesGetResponse(value) { + return true; +} +export function CargoesV2CargoesGetResponseFromJSON(json) { + return CargoesV2CargoesGetResponseFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supplies': json['supplies'] == null ? undefined : (json['supplies'].map(CargoesV2CargoesGetResponseSuppliesFromJSON)), + }; +} +export function CargoesV2CargoesGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'supplies': value['supplies'] == null ? undefined : (value['supplies'].map(CargoesV2CargoesGetResponseSuppliesToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSupplies.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSupplies.d.ts new file mode 100644 index 0000000..17b2600 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSupplies.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesCargoes } from './CargoesV2CargoesGetResponseSuppliesCargoes'; +import type { CargoesV2CargoesGetResponseSuppliesLimits } from './CargoesV2CargoesGetResponseSuppliesLimits'; +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoes } from './CargoesV2CargoesGetResponseSuppliesTransportCargoes'; +/** + * + * @export + * @interface CargoesV2CargoesGetResponseSupplies + */ +export interface CargoesV2CargoesGetResponseSupplies { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + bundle_id?: string; + /** + * Грузоместа. + * @type {Array} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + cargoes?: Array; + /** + * Товарный состав грузомест. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + cargoes_bundle_id?: string; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesLimits} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + limits?: CargoesV2CargoesGetResponseSuppliesLimits; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + supply_id?: number; + /** + * Информация о транспортных грузоместах. + * @type {Array} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + transport_cargoes?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSupplies interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSupplies(value: object): value is CargoesV2CargoesGetResponseSupplies; +export declare function CargoesV2CargoesGetResponseSuppliesFromJSON(json: any): CargoesV2CargoesGetResponseSupplies; +export declare function CargoesV2CargoesGetResponseSuppliesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSupplies; +export declare function CargoesV2CargoesGetResponseSuppliesToJSON(value?: CargoesV2CargoesGetResponseSupplies | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSupplies.js b/dist/esm/models/CargoesV2CargoesGetResponseSupplies.js new file mode 100644 index 0000000..a2c8f84 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSupplies.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetResponseSuppliesCargoesFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoes'; +import { CargoesV2CargoesGetResponseSuppliesLimitsFromJSON, CargoesV2CargoesGetResponseSuppliesLimitsToJSON, } from './CargoesV2CargoesGetResponseSuppliesLimits'; +import { CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON, CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON, } from './CargoesV2CargoesGetResponseSuppliesTransportCargoes'; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSupplies interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSupplies(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(CargoesV2CargoesGetResponseSuppliesCargoesFromJSON)), + 'cargoes_bundle_id': json['cargoes_bundle_id'] == null ? undefined : json['cargoes_bundle_id'], + 'limits': json['limits'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesLimitsFromJSON(json['limits']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'transport_cargoes': json['transport_cargoes'] == null ? undefined : (json['transport_cargoes'].map(CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON)), + }; +} +export function CargoesV2CargoesGetResponseSuppliesToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(CargoesV2CargoesGetResponseSuppliesCargoesToJSON)), + 'cargoes_bundle_id': value['cargoes_bundle_id'], + 'limits': CargoesV2CargoesGetResponseSuppliesLimitsToJSON(value['limits']), + 'supply_id': value['supply_id'], + 'transport_cargoes': value['transport_cargoes'] == null ? undefined : (value['transport_cargoes'].map(CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON)), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoes.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoes.d.ts new file mode 100644 index 0000000..0daf876 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoes.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV2CargoesGetResponseSuppliesCargoes + */ +export interface CargoesV2CargoesGetResponseSuppliesCargoes { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + bundle_id?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + cargo_id?: number; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + content_type?: CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + placement_zone_type?: CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + tracking_info?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + transport_cargo_id?: number; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + type?: CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoes interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoes(value: object): value is CargoesV2CargoesGetResponseSuppliesCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoes | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoes.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoes.js new file mode 100644 index 0000000..64f4230 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoes.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum'; +import { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo'; +import { CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum'; +import { CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum'; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoes interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoes(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'content_type': json['content_type'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON(json['content_type']), + 'placement_zone_type': json['placement_zone_type'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON(json['placement_zone_type']), + 'tracking_info': json['tracking_info'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON(json['tracking_info']), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + 'type': json['type'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON(json['type']), + }; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargo_id': value['cargo_id'], + 'content_type': CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON(value['content_type']), + 'placement_zone_type': CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON(value['placement_zone_type']), + 'tracking_info': CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON(value['tracking_info']), + 'transport_cargo_id': value['transport_cargo_id'], + 'type': CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.d.ts new file mode 100644 index 0000000..717af80 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ассортимента грузоместа: + * - `UNSPECIFIED` — не определён; + * - `MONO` — палета-моно или коробка-моно; + * - `MIX` — палета-микс или коробка-микс; + * - `NONE` — отсутствует. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONO: "MONO"; + readonly MIX: "MIX"; + readonly NONE: "NONE"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.js new file mode 100644 index 0000000..98167ff --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ассортимента грузоместа: + * - `UNSPECIFIED` — не определён; + * - `MONO` — палета-моно или коробка-моно; + * - `MIX` — палета-микс или коробка-микс; + * - `NONE` — отсутствует. + * + * @export + */ +export const CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONO: 'MONO', + MIX: 'MIX', + NONE: 'NONE' +}; +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum(value) { + for (const key in CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum, key)) { + if (CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.d.ts new file mode 100644 index 0000000..2c93203 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип зоны размещения: + * - `UNSPECIFIED` — не требуется распределение по зонам размещения; + * - `UNDEFINED` — не определён; + * - `SINGLE` — одинаковая зона размещения в составе грузоместа; + * - `MULTI` — разные зоны размещения в составе грузоместа. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNDEFINED: "UNDEFINED"; + readonly TYPE_SINGLE: "TYPE_SINGLE"; + readonly MULTI: "MULTI"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.js new file mode 100644 index 0000000..8368289 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип зоны размещения: + * - `UNSPECIFIED` — не требуется распределение по зонам размещения; + * - `UNDEFINED` — не определён; + * - `SINGLE` — одинаковая зона размещения в составе грузоместа; + * - `MULTI` — разные зоны размещения в составе грузоместа. + * + * @export + */ +export const CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNDEFINED: 'UNDEFINED', + TYPE_SINGLE: 'TYPE_SINGLE', + MULTI: 'MULTI' +}; +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum(value) { + for (const key in CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum, key)) { + if (CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.d.ts new file mode 100644 index 0000000..2c84118 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum'; +/** + * Отслеживание грузоместа. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo + */ +export interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo { + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo + */ + arrival_at?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo + */ + status?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo + */ + type?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo(value: object): value is CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.js new file mode 100644 index 0000000..db60e33 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum'; +import { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt'; +import { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum'; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_at': json['arrival_at'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON(json['arrival_at']), + 'status': json['status'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON(json['status']), + 'type': json['type'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON(json['type']), + }; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_at': CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON(value['arrival_at']), + 'status': CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON(value['status']), + 'type': CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.d.ts new file mode 100644 index 0000000..a7636ca --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo'; +/** + * Информация о приёме грузоместа. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt + */ +export interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt { + /** + * Дата приёма грузоместа. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt + */ + date?: string; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt + */ + timezone_info?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt(value: object): value is CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.js new file mode 100644 index 0000000..6c9a5b3 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON, } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo'; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'timezone_info': json['timezone_info'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON(json['timezone_info']), + }; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'timezone_info': CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON(value['timezone_info']), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.d.ts new file mode 100644 index 0000000..13b4e7f --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo + */ +export interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo { + /** + * Название часового пояса. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo + */ + offset?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo(value: object): value is CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.js new file mode 100644 index 0000000..5630b05 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.d.ts new file mode 100644 index 0000000..e6b5844 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ACCEPTING` — приёмка; + * - `PROCESSED` — обработано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `DELETED` — удалено; + * - `DECLARED_IN_TRANSPORT_CARGO` — заявлено в транспортном грузоместе. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly REFUSED: "REFUSED"; + readonly ON_WAREHOUSE: "ON_WAREHOUSE"; + readonly NOT_DELIVERED: "NOT_DELIVERED"; + readonly ACCEPTING: "ACCEPTING"; + readonly PROCESSED: "PROCESSED"; + readonly ON_POINT_SHIPMENT: "ON_POINT_SHIPMENT"; + readonly ON_TRANSIT_WAREHOUSE: "ON_TRANSIT_WAREHOUSE"; + readonly LOST: "LOST"; + readonly CREATED: "CREATED"; + readonly DELETED: "DELETED"; + readonly DECLARED_IN_TRANSPORT_CARGO: "DECLARED_IN_TRANSPORT_CARGO"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.js new file mode 100644 index 0000000..e78c053 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ACCEPTING` — приёмка; + * - `PROCESSED` — обработано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `DELETED` — удалено; + * - `DECLARED_IN_TRANSPORT_CARGO` — заявлено в транспортном грузоместе. + * + * @export + */ +export const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + REFUSED: 'REFUSED', + ON_WAREHOUSE: 'ON_WAREHOUSE', + NOT_DELIVERED: 'NOT_DELIVERED', + ACCEPTING: 'ACCEPTING', + PROCESSED: 'PROCESSED', + ON_POINT_SHIPMENT: 'ON_POINT_SHIPMENT', + ON_TRANSIT_WAREHOUSE: 'ON_TRANSIT_WAREHOUSE', + LOST: 'LOST', + CREATED: 'CREATED', + DELETED: 'DELETED', + DECLARED_IN_TRANSPORT_CARGO: 'DECLARED_IN_TRANSPORT_CARGO' +}; +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum(value) { + for (const key in CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum, key)) { + if (CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.d.ts new file mode 100644 index 0000000..2d127d3 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип отслеживания грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly EXPECTED_ARRIVAL: "EXPECTED_ARRIVAL"; + readonly ACTUAL_ARRIVAL: "ACTUAL_ARRIVAL"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.js new file mode 100644 index 0000000..1570a08 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип отслеживания грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + EXPECTED_ARRIVAL: 'EXPECTED_ARRIVAL', + ACTUAL_ARRIVAL: 'ACTUAL_ARRIVAL' +}; +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum(value) { + for (const key in CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum, key)) { + if (CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.d.ts new file mode 100644 index 0000000..e952bca --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.js new file mode 100644 index 0000000..283ef79 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export const CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BOX: 'BOX', + PALLET: 'PALLET' +}; +export function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTypeEnum(value) { + for (const key in CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum, key)) { + if (CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesLimits.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesLimits.d.ts new file mode 100644 index 0000000..7456a48 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesLimits.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Количество грузомест и товаров в поставке. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesLimits + */ +export interface CargoesV2CargoesGetResponseSuppliesLimits { + /** + * Максимальное количество коробок. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesLimits + */ + max_box_count?: number; + /** + * Максимальное количество товаров в коробке. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesLimits + */ + max_box_sku_count?: number; + /** + * Максимальное количество палет. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesLimits + */ + max_pallet_count?: number; + /** + * Максимальное количество транспортных грузомест. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesLimits + */ + max_transport_pallet_count?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesLimits interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesLimits(value: object): value is CargoesV2CargoesGetResponseSuppliesLimits; +export declare function CargoesV2CargoesGetResponseSuppliesLimitsFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesLimits; +export declare function CargoesV2CargoesGetResponseSuppliesLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesLimits; +export declare function CargoesV2CargoesGetResponseSuppliesLimitsToJSON(value?: CargoesV2CargoesGetResponseSuppliesLimits | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesLimits.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesLimits.js new file mode 100644 index 0000000..365d551 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesLimits.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesLimits interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesLimits(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesLimitsFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesLimitsFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesLimitsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'max_box_count': json['max_box_count'] == null ? undefined : json['max_box_count'], + 'max_box_sku_count': json['max_box_sku_count'] == null ? undefined : json['max_box_sku_count'], + 'max_pallet_count': json['max_pallet_count'] == null ? undefined : json['max_pallet_count'], + 'max_transport_pallet_count': json['max_transport_pallet_count'] == null ? undefined : json['max_transport_pallet_count'], + }; +} +export function CargoesV2CargoesGetResponseSuppliesLimitsToJSON(value) { + if (value == null) { + return value; + } + return { + 'max_box_count': value['max_box_count'], + 'max_box_sku_count': value['max_box_sku_count'], + 'max_pallet_count': value['max_pallet_count'], + 'max_transport_pallet_count': value['max_transport_pallet_count'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.d.ts new file mode 100644 index 0000000..e5741c4 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo'; +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ +export interface CargoesV2CargoesGetResponseSuppliesTransportCargoes { + /** + * Количество грузомест в транспортном грузоместе. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + box_count?: number; + /** + * Идентификатор товарного состава транспортного грузоместа. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + summary_bundle_id?: string; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + tracking_info?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + transport_cargo_id?: number; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + type?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoes interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoes(value: object): value is CargoesV2CargoesGetResponseSuppliesTransportCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoes | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.js new file mode 100644 index 0000000..58d0276 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON, } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo'; +import { CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON, CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON, } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum'; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoes interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoes(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'box_count': json['box_count'] == null ? undefined : json['box_count'], + 'summary_bundle_id': json['summary_bundle_id'] == null ? undefined : json['summary_bundle_id'], + 'tracking_info': json['tracking_info'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON(json['tracking_info']), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + 'type': json['type'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON(json['type']), + }; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'box_count': value['box_count'], + 'summary_bundle_id': value['summary_bundle_id'], + 'tracking_info': CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON(value['tracking_info']), + 'transport_cargo_id': value['transport_cargo_id'], + 'type': CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.d.ts new file mode 100644 index 0000000..d154106 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt'; +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum'; +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum'; +/** + * Отслеживание транспортного грузоместа. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo + */ +export interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo { + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo + */ + arrival_at?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo + */ + status?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo + */ + type?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo(value: object): value is CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.js new file mode 100644 index 0000000..e82fd30 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON, } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt'; +import { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON, } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum'; +import { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON, } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum'; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_at': json['arrival_at'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON(json['arrival_at']), + 'status': json['status'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON(json['status']), + 'type': json['type'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON(json['type']), + }; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_at': CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON(value['arrival_at']), + 'status': CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON(value['status']), + 'type': CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.d.ts new file mode 100644 index 0000000..4c906b1 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone'; +/** + * Информация о приёме транспортного грузоместа. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt + */ +export interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt { + /** + * Дата приёма транспортного грузоместа. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt + */ + date?: string; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt + */ + timezone?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt(value: object): value is CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.js new file mode 100644 index 0000000..fde186e --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON, } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone'; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'timezone': json['timezone'] == null ? undefined : CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON(json['timezone']), + }; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'timezone': CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON(value['timezone']), + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.d.ts new file mode 100644 index 0000000..2a6d494 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone + */ +export interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone { + /** + * Название часового пояса. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone + */ + offset?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone(value: object): value is CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.js new file mode 100644 index 0000000..6247292 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone interface. + */ +export function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone(value) { + return true; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.d.ts new file mode 100644 index 0000000..2c0c85a --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус транспортного грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `CARGO_DISASSEMBLED` — удалено. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly REFUSED: "REFUSED"; + readonly ON_WAREHOUSE: "ON_WAREHOUSE"; + readonly NOT_DELIVERED: "NOT_DELIVERED"; + readonly ON_POINT_SHIPMENT: "ON_POINT_SHIPMENT"; + readonly ON_TRANSIT_WAREHOUSE: "ON_TRANSIT_WAREHOUSE"; + readonly LOST: "LOST"; + readonly CREATED: "CREATED"; + readonly CARGO_DISASSEMBLED: "CARGO_DISASSEMBLED"; +}; +export type CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum = typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.js new file mode 100644 index 0000000..b811f1c --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус транспортного грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `CARGO_DISASSEMBLED` — удалено. + * + * @export + */ +export const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + REFUSED: 'REFUSED', + ON_WAREHOUSE: 'ON_WAREHOUSE', + NOT_DELIVERED: 'NOT_DELIVERED', + ON_POINT_SHIPMENT: 'ON_POINT_SHIPMENT', + ON_TRANSIT_WAREHOUSE: 'ON_TRANSIT_WAREHOUSE', + LOST: 'LOST', + CREATED: 'CREATED', + CARGO_DISASSEMBLED: 'CARGO_DISASSEMBLED' +}; +export function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum(value) { + for (const key in CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum, key)) { + if (CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.d.ts new file mode 100644 index 0000000..0643bf8 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип отслеживания транспортного грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly EXPECTED_ARRIVAL: "EXPECTED_ARRIVAL"; + readonly ACTUAL_ARRIVAL: "ACTUAL_ARRIVAL"; +}; +export type CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.js new file mode 100644 index 0000000..6e0e798 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип отслеживания транспортного грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + EXPECTED_ARRIVAL: 'EXPECTED_ARRIVAL', + ACTUAL_ARRIVAL: 'ACTUAL_ARRIVAL' +}; +export function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum(value) { + for (const key in CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum, key)) { + if (CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.d.ts b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.d.ts new file mode 100644 index 0000000..eb8df43 --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `PALLET` — палета. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PALLET: "PALLET"; +}; +export type CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum | null): any; diff --git a/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.js b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.js new file mode 100644 index 0000000..1a93dfb --- /dev/null +++ b/dist/esm/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `PALLET` — палета. + * + * @export + */ +export const CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PALLET: 'PALLET' +}; +export function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum(value) { + for (const key in CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum, key)) { + if (CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSONTyped(json, false); +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CarriageCarriageGetRequest.d.ts b/dist/esm/models/CarriageCarriageGetRequest.d.ts new file mode 100644 index 0000000..beedada --- /dev/null +++ b/dist/esm/models/CarriageCarriageGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CarriageCarriageGetRequest + */ +export interface CarriageCarriageGetRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof CarriageCarriageGetRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the CarriageCarriageGetRequest interface. + */ +export declare function instanceOfCarriageCarriageGetRequest(value: object): value is CarriageCarriageGetRequest; +export declare function CarriageCarriageGetRequestFromJSON(json: any): CarriageCarriageGetRequest; +export declare function CarriageCarriageGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageCarriageGetRequest; +export declare function CarriageCarriageGetRequestToJSON(value?: CarriageCarriageGetRequest | null): any; diff --git a/dist/esm/models/CarriageCarriageGetRequest.js b/dist/esm/models/CarriageCarriageGetRequest.js new file mode 100644 index 0000000..19176f9 --- /dev/null +++ b/dist/esm/models/CarriageCarriageGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CarriageCarriageGetRequest interface. + */ +export function instanceOfCarriageCarriageGetRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function CarriageCarriageGetRequestFromJSON(json) { + return CarriageCarriageGetRequestFromJSONTyped(json, false); +} +export function CarriageCarriageGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +export function CarriageCarriageGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/CarriageCarriageGetResponse.d.ts b/dist/esm/models/CarriageCarriageGetResponse.d.ts new file mode 100644 index 0000000..2298526 --- /dev/null +++ b/dist/esm/models/CarriageCarriageGetResponse.d.ts @@ -0,0 +1,186 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CarriageCarriageGetResponseCancelAvailability } from './CarriageCarriageGetResponseCancelAvailability'; +/** + * + * @export + * @interface CarriageCarriageGetResponse + */ +export interface CarriageCarriageGetResponse { + /** + * Тип акта приёма-передачи. Актуально для продавцов FBS. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + act_type?: string; + /** + * `true`, если отгрузка с прослеживаемыми товарами. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + all_blr_traceable?: boolean; + /** + * `true`, если доступна печать транспортной накладной. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + is_waybill_enabled?: boolean; + /** + * `true`, если отгрузка относится к товарам «Суперэконом». + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + is_econom?: boolean; + /** + * Список идентификаторов пропусков, оформленных на перевозку. + * @type {Array} + * @memberof CarriageCarriageGetResponse + */ + arrival_pass_ids?: Array; + /** + * Доступные действия с перевозкой: + * - `get_shipping_list` — получить лист отгрузки; + * - `get_act_of_acceptance` — получить акт приёма-передачи; + * - `get_waybill` — получить товарную накладную в формате PDF; + * - `set_arrival_passes` — [оформить пропуск](#operation/carriagePassCreate). + * + * @type {Array} + * @memberof CarriageCarriageGetResponse + */ + available_actions?: Array; + /** + * + * @type {CarriageCarriageGetResponseCancelAvailability} + * @memberof CarriageCarriageGetResponse + */ + cancel_availability?: CarriageCarriageGetResponseCancelAvailability; + /** + * Идентификатор перевозки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + carriage_id?: number; + /** + * Идентификатор продавца. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + company_id?: number; + /** + * Количество грузовых мест. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + containers_count?: number; + /** + * Дата создания перевозки. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + created_at?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + delivery_method_id?: number; + /** + * Дата выполнения перевозки. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + departure_date?: string; + /** + * Тип первой мили. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + first_mile_type?: string; + /** + * `true`, если есть отправления, которые не попали в перевозку, но нужно отгрузить. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + has_postings_for_next_carriage?: boolean; + /** + * Тип перевозки. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + integration_type?: string; + /** + * `true`, если вы уже напечатали этикетки на грузовые места. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + is_container_label_printed?: boolean; + /** + * `true`, если перевозка частичная. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + is_partial?: boolean; + /** + * Порядковый номер частичной перевозки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + partial_num?: number; + /** + * Количество повторных попыток создания перевозки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + retry_count?: number; + /** + * Статус перевозки: + * - `received` — идёт приёмка, + * - `closed` — завершена после приёмки, + * - `sended` — отправлена, + * - `cancelled` — отменена. + * + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + status?: string; + /** + * Идентификатор провайдера доставки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + tpl_provider_id?: number; + /** + * Дата последнего обновления информации о перевозке. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the CarriageCarriageGetResponse interface. + */ +export declare function instanceOfCarriageCarriageGetResponse(value: object): value is CarriageCarriageGetResponse; +export declare function CarriageCarriageGetResponseFromJSON(json: any): CarriageCarriageGetResponse; +export declare function CarriageCarriageGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageCarriageGetResponse; +export declare function CarriageCarriageGetResponseToJSON(value?: CarriageCarriageGetResponse | null): any; diff --git a/dist/esm/models/CarriageCarriageGetResponse.js b/dist/esm/models/CarriageCarriageGetResponse.js new file mode 100644 index 0000000..b11c799 --- /dev/null +++ b/dist/esm/models/CarriageCarriageGetResponse.js @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CarriageCarriageGetResponseCancelAvailabilityFromJSON, CarriageCarriageGetResponseCancelAvailabilityToJSON, } from './CarriageCarriageGetResponseCancelAvailability'; +/** + * Check if a given object implements the CarriageCarriageGetResponse interface. + */ +export function instanceOfCarriageCarriageGetResponse(value) { + return true; +} +export function CarriageCarriageGetResponseFromJSON(json) { + return CarriageCarriageGetResponseFromJSONTyped(json, false); +} +export function CarriageCarriageGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_type': json['act_type'] == null ? undefined : json['act_type'], + 'all_blr_traceable': json['all_blr_traceable'] == null ? undefined : json['all_blr_traceable'], + 'is_waybill_enabled': json['is_waybill_enabled'] == null ? undefined : json['is_waybill_enabled'], + 'is_econom': json['is_econom'] == null ? undefined : json['is_econom'], + 'arrival_pass_ids': json['arrival_pass_ids'] == null ? undefined : json['arrival_pass_ids'], + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'cancel_availability': json['cancel_availability'] == null ? undefined : CarriageCarriageGetResponseCancelAvailabilityFromJSON(json['cancel_availability']), + 'carriage_id': json['carriage_id'] == null ? undefined : json['carriage_id'], + 'company_id': json['company_id'] == null ? undefined : json['company_id'], + 'containers_count': json['containers_count'] == null ? undefined : json['containers_count'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + 'has_postings_for_next_carriage': json['has_postings_for_next_carriage'] == null ? undefined : json['has_postings_for_next_carriage'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'is_container_label_printed': json['is_container_label_printed'] == null ? undefined : json['is_container_label_printed'], + 'is_partial': json['is_partial'] == null ? undefined : json['is_partial'], + 'partial_num': json['partial_num'] == null ? undefined : json['partial_num'], + 'retry_count': json['retry_count'] == null ? undefined : json['retry_count'], + 'status': json['status'] == null ? undefined : json['status'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function CarriageCarriageGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_type': value['act_type'], + 'all_blr_traceable': value['all_blr_traceable'], + 'is_waybill_enabled': value['is_waybill_enabled'], + 'is_econom': value['is_econom'], + 'arrival_pass_ids': value['arrival_pass_ids'], + 'available_actions': value['available_actions'], + 'cancel_availability': CarriageCarriageGetResponseCancelAvailabilityToJSON(value['cancel_availability']), + 'carriage_id': value['carriage_id'], + 'company_id': value['company_id'], + 'containers_count': value['containers_count'], + 'created_at': value['created_at'], + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + 'first_mile_type': value['first_mile_type'], + 'has_postings_for_next_carriage': value['has_postings_for_next_carriage'], + 'integration_type': value['integration_type'], + 'is_container_label_printed': value['is_container_label_printed'], + 'is_partial': value['is_partial'], + 'partial_num': value['partial_num'], + 'retry_count': value['retry_count'], + 'status': value['status'], + 'tpl_provider_id': value['tpl_provider_id'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/CarriageCarriageGetResponseCancelAvailability.d.ts b/dist/esm/models/CarriageCarriageGetResponseCancelAvailability.d.ts new file mode 100644 index 0000000..f74f110 --- /dev/null +++ b/dist/esm/models/CarriageCarriageGetResponseCancelAvailability.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Возможность отмены. + * @export + * @interface CarriageCarriageGetResponseCancelAvailability + */ +export interface CarriageCarriageGetResponseCancelAvailability { + /** + * `true`, если перевозку можно отменить. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponseCancelAvailability + */ + is_cancel_available?: boolean; + /** + * Причина, почему перевозку нельзя отменить. + * @type {string} + * @memberof CarriageCarriageGetResponseCancelAvailability + */ + reason?: string; +} +/** + * Check if a given object implements the CarriageCarriageGetResponseCancelAvailability interface. + */ +export declare function instanceOfCarriageCarriageGetResponseCancelAvailability(value: object): value is CarriageCarriageGetResponseCancelAvailability; +export declare function CarriageCarriageGetResponseCancelAvailabilityFromJSON(json: any): CarriageCarriageGetResponseCancelAvailability; +export declare function CarriageCarriageGetResponseCancelAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageCarriageGetResponseCancelAvailability; +export declare function CarriageCarriageGetResponseCancelAvailabilityToJSON(value?: CarriageCarriageGetResponseCancelAvailability | null): any; diff --git a/dist/esm/models/CarriageCarriageGetResponseCancelAvailability.js b/dist/esm/models/CarriageCarriageGetResponseCancelAvailability.js new file mode 100644 index 0000000..90bd10a --- /dev/null +++ b/dist/esm/models/CarriageCarriageGetResponseCancelAvailability.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CarriageCarriageGetResponseCancelAvailability interface. + */ +export function instanceOfCarriageCarriageGetResponseCancelAvailability(value) { + return true; +} +export function CarriageCarriageGetResponseCancelAvailabilityFromJSON(json) { + return CarriageCarriageGetResponseCancelAvailabilityFromJSONTyped(json, false); +} +export function CarriageCarriageGetResponseCancelAvailabilityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_cancel_available': json['is_cancel_available'] == null ? undefined : json['is_cancel_available'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} +export function CarriageCarriageGetResponseCancelAvailabilityToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_cancel_available': value['is_cancel_available'], + 'reason': value['reason'], + }; +} diff --git a/dist/esm/models/CarriageDeliveryListV2RequestFilter.d.ts b/dist/esm/models/CarriageDeliveryListV2RequestFilter.d.ts new file mode 100644 index 0000000..566311d --- /dev/null +++ b/dist/esm/models/CarriageDeliveryListV2RequestFilter.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска методов доставки и отгрузок. + * @export + * @interface CarriageDeliveryListV2RequestFilter + */ +export interface CarriageDeliveryListV2RequestFilter { + /** + * Идентификатор метода доставки. Для realFBS-складов получите его с помощью метода [/v2/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodListV2). Для FBS-складов используйте значение параметра `warehouse_id`. Его можно получить с помощью метода [/v2/warehouse/list](#operation/WarehouseListV2). + * @type {number} + * @memberof CarriageDeliveryListV2RequestFilter + */ + delivery_method_id?: number; + /** + * Дата отгрузки. По умолчанию — текущая дата. + * @type {string} + * @memberof CarriageDeliveryListV2RequestFilter + */ + departure_date?: string; +} +/** + * Check if a given object implements the CarriageDeliveryListV2RequestFilter interface. + */ +export declare function instanceOfCarriageDeliveryListV2RequestFilter(value: object): value is CarriageDeliveryListV2RequestFilter; +export declare function CarriageDeliveryListV2RequestFilterFromJSON(json: any): CarriageDeliveryListV2RequestFilter; +export declare function CarriageDeliveryListV2RequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageDeliveryListV2RequestFilter; +export declare function CarriageDeliveryListV2RequestFilterToJSON(value?: CarriageDeliveryListV2RequestFilter | null): any; diff --git a/dist/esm/models/CarriageDeliveryListV2RequestFilter.js b/dist/esm/models/CarriageDeliveryListV2RequestFilter.js new file mode 100644 index 0000000..120743d --- /dev/null +++ b/dist/esm/models/CarriageDeliveryListV2RequestFilter.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CarriageDeliveryListV2RequestFilter interface. + */ +export function instanceOfCarriageDeliveryListV2RequestFilter(value) { + return true; +} +export function CarriageDeliveryListV2RequestFilterFromJSON(json) { + return CarriageDeliveryListV2RequestFilterFromJSONTyped(json, false); +} +export function CarriageDeliveryListV2RequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +export function CarriageDeliveryListV2RequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/esm/models/CarriageDeliveryListV2ResponseDeliveryMethod.d.ts b/dist/esm/models/CarriageDeliveryListV2ResponseDeliveryMethod.d.ts new file mode 100644 index 0000000..9b6ef7b --- /dev/null +++ b/dist/esm/models/CarriageDeliveryListV2ResponseDeliveryMethod.d.ts @@ -0,0 +1,224 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodCarriage } from './DeliveryMethodCarriage'; +import type { DeliveryMethodError } from './DeliveryMethodError'; +/** + * + * @export + * @interface CarriageDeliveryListV2ResponseDeliveryMethod + */ +export interface CarriageDeliveryListV2ResponseDeliveryMethod { + /** + * Количество отправлений во всех отгрузках. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + carriage_postings_count?: number; + /** + * Список отгрузок. + * @type {Array} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + carriages?: Array; + /** + * Время начала сборки и часовой пояс времени склада. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + cut_in?: string; + /** + * Дата и время, до которых нужно собрать отправление. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + cutoff_at?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + delivery_method_id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + delivery_method_name?: string; + /** + * Статус метода доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + delivery_method_status?: string; + /** + * Дата отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + departure_date?: string; + /** + * Адрес точки отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + dropoff_address?: string; + /** + * Статус возможности смены точки отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + dropoff_change_availability?: string; + /** + * Идентификатор точки отгрузки. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + dropoff_point_id?: number; + /** + * Способ отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + dropoff_point_type?: string; + /** + * Список ошибок, которые возникли при обработке запроса. + * @type {Array} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + errors?: Array; + /** + * `true`, если точка отгрузки изменилась. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + first_mile_changing?: boolean; + /** + * Тип первой мили. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + first_mile_type?: string; + /** + * `true`, если на складе включена доверительная приёмка. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + has_entrusted_acceptance?: boolean; + /** + * Тип интеграции со службой доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + integration_type?: string; + /** + * `true`, если отгрузка не обязательна. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + is_optional_carriage?: boolean; + /** + * `true`, если отгрузка с предсортировкой. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + is_presort?: boolean; + /** + * `true`, если склад работает по схеме rFBS. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + is_rfbs?: boolean; + /** + * Количество собранных обязательных отправлений. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + mandatory_packaged_count?: number; + /** + * Количество отправлений, которые нужно собрать. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + mandatory_postings_count?: number; + /** + * Количество собранных необязательных отправлений. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + optional_packaged_count?: number; + /** + * Рекомендуемое местное время отгрузки в пункт приёма заказов. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + recommended_time_local?: string; + /** + * Смещение часового пояса рекомендуемого времени отгрузки от UTC-0 в минутах. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + recommended_time_utc_offset_in_minutes?: number; + /** + * Начало таймслота в точке отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + timeslot_from?: string; + /** + * Окончание таймслота в точке отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + timeslot_to?: string; + /** + * Ссылка на иконку службы доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + tpl_provider_icon_url?: string; + /** + * Название службы доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + tpl_provider_name?: string; + /** + * Город склада. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + warehouse_city?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the CarriageDeliveryListV2ResponseDeliveryMethod interface. + */ +export declare function instanceOfCarriageDeliveryListV2ResponseDeliveryMethod(value: object): value is CarriageDeliveryListV2ResponseDeliveryMethod; +export declare function CarriageDeliveryListV2ResponseDeliveryMethodFromJSON(json: any): CarriageDeliveryListV2ResponseDeliveryMethod; +export declare function CarriageDeliveryListV2ResponseDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageDeliveryListV2ResponseDeliveryMethod; +export declare function CarriageDeliveryListV2ResponseDeliveryMethodToJSON(value?: CarriageDeliveryListV2ResponseDeliveryMethod | null): any; diff --git a/dist/esm/models/CarriageDeliveryListV2ResponseDeliveryMethod.js b/dist/esm/models/CarriageDeliveryListV2ResponseDeliveryMethod.js new file mode 100644 index 0000000..f5b58d0 --- /dev/null +++ b/dist/esm/models/CarriageDeliveryListV2ResponseDeliveryMethod.js @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMethodCarriageFromJSON, DeliveryMethodCarriageToJSON, } from './DeliveryMethodCarriage'; +import { DeliveryMethodErrorFromJSON, DeliveryMethodErrorToJSON, } from './DeliveryMethodError'; +/** + * Check if a given object implements the CarriageDeliveryListV2ResponseDeliveryMethod interface. + */ +export function instanceOfCarriageDeliveryListV2ResponseDeliveryMethod(value) { + return true; +} +export function CarriageDeliveryListV2ResponseDeliveryMethodFromJSON(json) { + return CarriageDeliveryListV2ResponseDeliveryMethodFromJSONTyped(json, false); +} +export function CarriageDeliveryListV2ResponseDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_postings_count': json['carriage_postings_count'] == null ? undefined : json['carriage_postings_count'], + 'carriages': json['carriages'] == null ? undefined : (json['carriages'].map(DeliveryMethodCarriageFromJSON)), + 'cut_in': json['cut_in'] == null ? undefined : json['cut_in'], + 'cutoff_at': json['cutoff_at'] == null ? undefined : json['cutoff_at'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'delivery_method_name': json['delivery_method_name'] == null ? undefined : json['delivery_method_name'], + 'delivery_method_status': json['delivery_method_status'] == null ? undefined : json['delivery_method_status'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + 'dropoff_address': json['dropoff_address'] == null ? undefined : json['dropoff_address'], + 'dropoff_change_availability': json['dropoff_change_availability'] == null ? undefined : json['dropoff_change_availability'], + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'dropoff_point_type': json['dropoff_point_type'] == null ? undefined : json['dropoff_point_type'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(DeliveryMethodErrorFromJSON)), + 'first_mile_changing': json['first_mile_changing'] == null ? undefined : json['first_mile_changing'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'is_optional_carriage': json['is_optional_carriage'] == null ? undefined : json['is_optional_carriage'], + 'is_presort': json['is_presort'] == null ? undefined : json['is_presort'], + 'is_rfbs': json['is_rfbs'] == null ? undefined : json['is_rfbs'], + 'mandatory_packaged_count': json['mandatory_packaged_count'] == null ? undefined : json['mandatory_packaged_count'], + 'mandatory_postings_count': json['mandatory_postings_count'] == null ? undefined : json['mandatory_postings_count'], + 'optional_packaged_count': json['optional_packaged_count'] == null ? undefined : json['optional_packaged_count'], + 'recommended_time_local': json['recommended_time_local'] == null ? undefined : json['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': json['recommended_time_utc_offset_in_minutes'] == null ? undefined : json['recommended_time_utc_offset_in_minutes'], + 'timeslot_from': json['timeslot_from'] == null ? undefined : json['timeslot_from'], + 'timeslot_to': json['timeslot_to'] == null ? undefined : json['timeslot_to'], + 'tpl_provider_icon_url': json['tpl_provider_icon_url'] == null ? undefined : json['tpl_provider_icon_url'], + 'tpl_provider_name': json['tpl_provider_name'] == null ? undefined : json['tpl_provider_name'], + 'warehouse_city': json['warehouse_city'] == null ? undefined : json['warehouse_city'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function CarriageDeliveryListV2ResponseDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_postings_count': value['carriage_postings_count'], + 'carriages': value['carriages'] == null ? undefined : (value['carriages'].map(DeliveryMethodCarriageToJSON)), + 'cut_in': value['cut_in'], + 'cutoff_at': value['cutoff_at'], + 'delivery_method_id': value['delivery_method_id'], + 'delivery_method_name': value['delivery_method_name'], + 'delivery_method_status': value['delivery_method_status'], + 'departure_date': value['departure_date'], + 'dropoff_address': value['dropoff_address'], + 'dropoff_change_availability': value['dropoff_change_availability'], + 'dropoff_point_id': value['dropoff_point_id'], + 'dropoff_point_type': value['dropoff_point_type'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(DeliveryMethodErrorToJSON)), + 'first_mile_changing': value['first_mile_changing'], + 'first_mile_type': value['first_mile_type'], + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'integration_type': value['integration_type'], + 'is_optional_carriage': value['is_optional_carriage'], + 'is_presort': value['is_presort'], + 'is_rfbs': value['is_rfbs'], + 'mandatory_packaged_count': value['mandatory_packaged_count'], + 'mandatory_postings_count': value['mandatory_postings_count'], + 'optional_packaged_count': value['optional_packaged_count'], + 'recommended_time_local': value['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': value['recommended_time_utc_offset_in_minutes'], + 'timeslot_from': value['timeslot_from'], + 'timeslot_to': value['timeslot_to'], + 'tpl_provider_icon_url': value['tpl_provider_icon_url'], + 'tpl_provider_name': value['tpl_provider_name'], + 'warehouse_city': value['warehouse_city'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/CarriagePickupFee.d.ts b/dist/esm/models/CarriagePickupFee.d.ts new file mode 100644 index 0000000..135a24d --- /dev/null +++ b/dist/esm/models/CarriagePickupFee.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость отгрузки pick-up. + * @export + * @interface CarriagePickupFee + */ +export interface CarriagePickupFee { + /** + * Код валюты. + * @type {string} + * @memberof CarriagePickupFee + */ + currency_code?: string; + /** + * Предварительная стоимость отгрузки курьеру Ozon. + * @type {number} + * @memberof CarriagePickupFee + */ + value?: number; +} +/** + * Check if a given object implements the CarriagePickupFee interface. + */ +export declare function instanceOfCarriagePickupFee(value: object): value is CarriagePickupFee; +export declare function CarriagePickupFeeFromJSON(json: any): CarriagePickupFee; +export declare function CarriagePickupFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriagePickupFee; +export declare function CarriagePickupFeeToJSON(value?: CarriagePickupFee | null): any; diff --git a/dist/esm/models/CarriagePickupFee.js b/dist/esm/models/CarriagePickupFee.js new file mode 100644 index 0000000..07151fd --- /dev/null +++ b/dist/esm/models/CarriagePickupFee.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CarriagePickupFee interface. + */ +export function instanceOfCarriagePickupFee(value) { + return true; +} +export function CarriagePickupFeeFromJSON(json) { + return CarriagePickupFeeFromJSONTyped(json, false); +} +export function CarriagePickupFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function CarriagePickupFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerApproveRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerApproveRequest.d.ts new file mode 100644 index 0000000..6d95345 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerApproveRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerApproveRequest + */ +export interface Carriagev1CarriageContainerApproveRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerApproveRequest + */ + container_ids: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerApproveRequest(value: object): value is Carriagev1CarriageContainerApproveRequest; +export declare function Carriagev1CarriageContainerApproveRequestFromJSON(json: any): Carriagev1CarriageContainerApproveRequest; +export declare function Carriagev1CarriageContainerApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerApproveRequest; +export declare function Carriagev1CarriageContainerApproveRequestToJSON(value?: Carriagev1CarriageContainerApproveRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerApproveRequest.js b/dist/esm/models/Carriagev1CarriageContainerApproveRequest.js new file mode 100644 index 0000000..462a707 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerApproveRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerApproveRequest(value) { + if (!('container_ids' in value) || value['container_ids'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerApproveRequestFromJSON(json) { + return Carriagev1CarriageContainerApproveRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerApproveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'], + }; +} +export function Carriagev1CarriageContainerApproveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerApproveResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerApproveResponse.d.ts new file mode 100644 index 0000000..95845dd --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerApproveResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerApproveResponseErrorContainers } from './Carriagev1CarriageContainerApproveResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerApproveResponse + */ +export interface Carriagev1CarriageContainerApproveResponse { + /** + * Ошибки по грузоместам. + * @type {Array} + * @memberof Carriagev1CarriageContainerApproveResponse + */ + error_containers?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerApproveResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerApproveResponse(value: object): value is Carriagev1CarriageContainerApproveResponse; +export declare function Carriagev1CarriageContainerApproveResponseFromJSON(json: any): Carriagev1CarriageContainerApproveResponse; +export declare function Carriagev1CarriageContainerApproveResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerApproveResponse; +export declare function Carriagev1CarriageContainerApproveResponseToJSON(value?: Carriagev1CarriageContainerApproveResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerApproveResponse.js b/dist/esm/models/Carriagev1CarriageContainerApproveResponse.js new file mode 100644 index 0000000..0c32332 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerApproveResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON, Carriagev1CarriageContainerApproveResponseErrorContainersToJSON, } from './Carriagev1CarriageContainerApproveResponseErrorContainers'; +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerApproveResponse(value) { + return true; +} +export function Carriagev1CarriageContainerApproveResponseFromJSON(json) { + return Carriagev1CarriageContainerApproveResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerApproveResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function Carriagev1CarriageContainerApproveResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerApproveResponseErrorContainersToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerApproveResponseErrorContainers.d.ts b/dist/esm/models/Carriagev1CarriageContainerApproveResponseErrorContainers.d.ts new file mode 100644 index 0000000..d37ef75 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerApproveResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerApproveResponseErrorContainers + */ +export interface Carriagev1CarriageContainerApproveResponseErrorContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerApproveResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerApproveResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerApproveResponseErrorContainers(value: object): value is Carriagev1CarriageContainerApproveResponseErrorContainers; +export declare function Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerApproveResponseErrorContainers; +export declare function Carriagev1CarriageContainerApproveResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerApproveResponseErrorContainers; +export declare function Carriagev1CarriageContainerApproveResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerApproveResponseErrorContainers | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerApproveResponseErrorContainers.js b/dist/esm/models/Carriagev1CarriageContainerApproveResponseErrorContainers.js new file mode 100644 index 0000000..9ada186 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerApproveResponseErrorContainers.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveResponseErrorContainers interface. + */ +export function instanceOfCarriagev1CarriageContainerApproveResponseErrorContainers(value) { + return true; +} +export function Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerApproveResponseErrorContainersFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerApproveResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +export function Carriagev1CarriageContainerApproveResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerCancelRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerCancelRequest.d.ts new file mode 100644 index 0000000..46f723b --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerCancelRequest + */ +export interface Carriagev1CarriageContainerCancelRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerCancelRequest + */ + container_ids: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCancelRequest(value: object): value is Carriagev1CarriageContainerCancelRequest; +export declare function Carriagev1CarriageContainerCancelRequestFromJSON(json: any): Carriagev1CarriageContainerCancelRequest; +export declare function Carriagev1CarriageContainerCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCancelRequest; +export declare function Carriagev1CarriageContainerCancelRequestToJSON(value?: Carriagev1CarriageContainerCancelRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerCancelRequest.js b/dist/esm/models/Carriagev1CarriageContainerCancelRequest.js new file mode 100644 index 0000000..4323056 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCancelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerCancelRequest(value) { + if (!('container_ids' in value) || value['container_ids'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerCancelRequestFromJSON(json) { + return Carriagev1CarriageContainerCancelRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'], + }; +} +export function Carriagev1CarriageContainerCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerCancelResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerCancelResponse.d.ts new file mode 100644 index 0000000..2c1803a --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCancelResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerCancelResponseErrorContainers } from './Carriagev1CarriageContainerCancelResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerCancelResponse + */ +export interface Carriagev1CarriageContainerCancelResponse { + /** + * Ошибки по грузоместам. + * @type {Array} + * @memberof Carriagev1CarriageContainerCancelResponse + */ + error_containers?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerCancelResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCancelResponse(value: object): value is Carriagev1CarriageContainerCancelResponse; +export declare function Carriagev1CarriageContainerCancelResponseFromJSON(json: any): Carriagev1CarriageContainerCancelResponse; +export declare function Carriagev1CarriageContainerCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCancelResponse; +export declare function Carriagev1CarriageContainerCancelResponseToJSON(value?: Carriagev1CarriageContainerCancelResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerCancelResponse.js b/dist/esm/models/Carriagev1CarriageContainerCancelResponse.js new file mode 100644 index 0000000..b51ea22 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCancelResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON, Carriagev1CarriageContainerCancelResponseErrorContainersToJSON, } from './Carriagev1CarriageContainerCancelResponseErrorContainers'; +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerCancelResponse(value) { + return true; +} +export function Carriagev1CarriageContainerCancelResponseFromJSON(json) { + return Carriagev1CarriageContainerCancelResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function Carriagev1CarriageContainerCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerCancelResponseErrorContainersToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerCancelResponseErrorContainers.d.ts b/dist/esm/models/Carriagev1CarriageContainerCancelResponseErrorContainers.d.ts new file mode 100644 index 0000000..458526a --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCancelResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerCancelResponseErrorContainers + */ +export interface Carriagev1CarriageContainerCancelResponseErrorContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerCancelResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerCancelResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCancelResponseErrorContainers(value: object): value is Carriagev1CarriageContainerCancelResponseErrorContainers; +export declare function Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerCancelResponseErrorContainers; +export declare function Carriagev1CarriageContainerCancelResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCancelResponseErrorContainers; +export declare function Carriagev1CarriageContainerCancelResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerCancelResponseErrorContainers | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerCancelResponseErrorContainers.js b/dist/esm/models/Carriagev1CarriageContainerCancelResponseErrorContainers.js new file mode 100644 index 0000000..0b0d257 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCancelResponseErrorContainers.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelResponseErrorContainers interface. + */ +export function instanceOfCarriagev1CarriageContainerCancelResponseErrorContainers(value) { + return true; +} +export function Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerCancelResponseErrorContainersFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerCancelResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +export function Carriagev1CarriageContainerCancelResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerCreateRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerCreateRequest.d.ts new file mode 100644 index 0000000..eaac550 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCreateRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerCreateRequest + */ +export interface Carriagev1CarriageContainerCreateRequest { + /** + * Тип грузоместа: + * - `box` — коробка; + * - `pallet` — палета. + * + * @type {string} + * @memberof Carriagev1CarriageContainerCreateRequest + */ + cargo_type: string; + /** + * Количество грузомест. + * @type {number} + * @memberof Carriagev1CarriageContainerCreateRequest + */ + containers_count: number; + /** + * Тип сортировки: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerCreateRequest + */ + sort_type: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof Carriagev1CarriageContainerCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCreateRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCreateRequest(value: object): value is Carriagev1CarriageContainerCreateRequest; +export declare function Carriagev1CarriageContainerCreateRequestFromJSON(json: any): Carriagev1CarriageContainerCreateRequest; +export declare function Carriagev1CarriageContainerCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCreateRequest; +export declare function Carriagev1CarriageContainerCreateRequestToJSON(value?: Carriagev1CarriageContainerCreateRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerCreateRequest.js b/dist/esm/models/Carriagev1CarriageContainerCreateRequest.js new file mode 100644 index 0000000..83930fc --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCreateRequest.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerCreateRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerCreateRequest(value) { + if (!('cargo_type' in value) || value['cargo_type'] === undefined) + return false; + if (!('containers_count' in value) || value['containers_count'] === undefined) + return false; + if (!('sort_type' in value) || value['sort_type'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerCreateRequestFromJSON(json) { + return Carriagev1CarriageContainerCreateRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_type': json['cargo_type'], + 'containers_count': json['containers_count'], + 'sort_type': json['sort_type'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function Carriagev1CarriageContainerCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_type': value['cargo_type'], + 'containers_count': value['containers_count'], + 'sort_type': value['sort_type'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerCreateResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerCreateResponse.d.ts new file mode 100644 index 0000000..bb1af18 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerCreateResponse + */ +export interface Carriagev1CarriageContainerCreateResponse { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerCreateResponse + */ + container_ids?: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCreateResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCreateResponse(value: object): value is Carriagev1CarriageContainerCreateResponse; +export declare function Carriagev1CarriageContainerCreateResponseFromJSON(json: any): Carriagev1CarriageContainerCreateResponse; +export declare function Carriagev1CarriageContainerCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCreateResponse; +export declare function Carriagev1CarriageContainerCreateResponseToJSON(value?: Carriagev1CarriageContainerCreateResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerCreateResponse.js b/dist/esm/models/Carriagev1CarriageContainerCreateResponse.js new file mode 100644 index 0000000..7f3414b --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerCreateResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerCreateResponse(value) { + return true; +} +export function Carriagev1CarriageContainerCreateResponseFromJSON(json) { + return Carriagev1CarriageContainerCreateResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'] == null ? undefined : json['container_ids'], + }; +} +export function Carriagev1CarriageContainerCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerDocumentGetRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerDocumentGetRequest.d.ts new file mode 100644 index 0000000..443a9e1 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerDocumentGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerDocumentGetRequest + */ +export interface Carriagev1CarriageContainerDocumentGetRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerDocumentGetRequest + */ + container_ids: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerDocumentGetRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerDocumentGetRequest(value: object): value is Carriagev1CarriageContainerDocumentGetRequest; +export declare function Carriagev1CarriageContainerDocumentGetRequestFromJSON(json: any): Carriagev1CarriageContainerDocumentGetRequest; +export declare function Carriagev1CarriageContainerDocumentGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerDocumentGetRequest; +export declare function Carriagev1CarriageContainerDocumentGetRequestToJSON(value?: Carriagev1CarriageContainerDocumentGetRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerDocumentGetRequest.js b/dist/esm/models/Carriagev1CarriageContainerDocumentGetRequest.js new file mode 100644 index 0000000..978df9c --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerDocumentGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerDocumentGetRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerDocumentGetRequest(value) { + if (!('container_ids' in value) || value['container_ids'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerDocumentGetRequestFromJSON(json) { + return Carriagev1CarriageContainerDocumentGetRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerDocumentGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'], + }; +} +export function Carriagev1CarriageContainerDocumentGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerDocumentGetResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerDocumentGetResponse.d.ts new file mode 100644 index 0000000..b6e8101 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerDocumentGetResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerDocumentGetResponse + */ +export interface Carriagev1CarriageContainerDocumentGetResponse { + /** + * Тип файла: application или pdf. + * + * @type {string} + * @memberof Carriagev1CarriageContainerDocumentGetResponse + */ + content_type?: string; + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof Carriagev1CarriageContainerDocumentGetResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof Carriagev1CarriageContainerDocumentGetResponse + */ + file_name?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerDocumentGetResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerDocumentGetResponse(value: object): value is Carriagev1CarriageContainerDocumentGetResponse; +export declare function Carriagev1CarriageContainerDocumentGetResponseFromJSON(json: any): Carriagev1CarriageContainerDocumentGetResponse; +export declare function Carriagev1CarriageContainerDocumentGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerDocumentGetResponse; +export declare function Carriagev1CarriageContainerDocumentGetResponseToJSON(value?: Carriagev1CarriageContainerDocumentGetResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerDocumentGetResponse.js b/dist/esm/models/Carriagev1CarriageContainerDocumentGetResponse.js new file mode 100644 index 0000000..a0e5fb0 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerDocumentGetResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerDocumentGetResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerDocumentGetResponse(value) { + return true; +} +export function Carriagev1CarriageContainerDocumentGetResponseFromJSON(json) { + return Carriagev1CarriageContainerDocumentGetResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerDocumentGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + }; +} +export function Carriagev1CarriageContainerDocumentGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'content_type': value['content_type'], + 'file_content': value['file_content'], + 'file_name': value['file_name'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerFillRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerFillRequest.d.ts new file mode 100644 index 0000000..32201d6 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerFillRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerFillRequest + */ +export interface Carriagev1CarriageContainerFillRequest { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerFillRequest + */ + container_id: number; + /** + * Номера отправлений. + * @type {Array} + * @memberof Carriagev1CarriageContainerFillRequest + */ + posting_numbers: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerFillRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerFillRequest(value: object): value is Carriagev1CarriageContainerFillRequest; +export declare function Carriagev1CarriageContainerFillRequestFromJSON(json: any): Carriagev1CarriageContainerFillRequest; +export declare function Carriagev1CarriageContainerFillRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerFillRequest; +export declare function Carriagev1CarriageContainerFillRequestToJSON(value?: Carriagev1CarriageContainerFillRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerFillRequest.js b/dist/esm/models/Carriagev1CarriageContainerFillRequest.js new file mode 100644 index 0000000..168c3b1 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerFillRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerFillRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerFillRequest(value) { + if (!('container_id' in value) || value['container_id'] === undefined) + return false; + if (!('posting_numbers' in value) || value['posting_numbers'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerFillRequestFromJSON(json) { + return Carriagev1CarriageContainerFillRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerFillRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'], + 'posting_numbers': json['posting_numbers'], + }; +} +export function Carriagev1CarriageContainerFillRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerFillResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerFillResponse.d.ts new file mode 100644 index 0000000..53ae6b1 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerFillResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerFillResponseErrorPostings } from './Carriagev1CarriageContainerFillResponseErrorPostings'; +/** + * + * @export + * @interface Carriagev1CarriageContainerFillResponse + */ +export interface Carriagev1CarriageContainerFillResponse { + /** + * Ошибки по отправлениям. + * @type {Array} + * @memberof Carriagev1CarriageContainerFillResponse + */ + error_postings?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerFillResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerFillResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerFillResponse(value: object): value is Carriagev1CarriageContainerFillResponse; +export declare function Carriagev1CarriageContainerFillResponseFromJSON(json: any): Carriagev1CarriageContainerFillResponse; +export declare function Carriagev1CarriageContainerFillResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerFillResponse; +export declare function Carriagev1CarriageContainerFillResponseToJSON(value?: Carriagev1CarriageContainerFillResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerFillResponse.js b/dist/esm/models/Carriagev1CarriageContainerFillResponse.js new file mode 100644 index 0000000..3944629 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerFillResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON, Carriagev1CarriageContainerFillResponseErrorPostingsToJSON, } from './Carriagev1CarriageContainerFillResponseErrorPostings'; +/** + * Check if a given object implements the Carriagev1CarriageContainerFillResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerFillResponse(value) { + return true; +} +export function Carriagev1CarriageContainerFillResponseFromJSON(json) { + return Carriagev1CarriageContainerFillResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerFillResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_postings': json['error_postings'] == null ? undefined : (json['error_postings'].map(Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function Carriagev1CarriageContainerFillResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_postings': value['error_postings'] == null ? undefined : (value['error_postings'].map(Carriagev1CarriageContainerFillResponseErrorPostingsToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerFillResponseErrorPostings.d.ts b/dist/esm/models/Carriagev1CarriageContainerFillResponseErrorPostings.d.ts new file mode 100644 index 0000000..f2a9f95 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerFillResponseErrorPostings.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerFillResponseErrorPostings + */ +export interface Carriagev1CarriageContainerFillResponseErrorPostings { + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerFillResponseErrorPostings + */ + error_message?: string; + /** + * Номер отправления. + * @type {string} + * @memberof Carriagev1CarriageContainerFillResponseErrorPostings + */ + posting_number?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerFillResponseErrorPostings interface. + */ +export declare function instanceOfCarriagev1CarriageContainerFillResponseErrorPostings(value: object): value is Carriagev1CarriageContainerFillResponseErrorPostings; +export declare function Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON(json: any): Carriagev1CarriageContainerFillResponseErrorPostings; +export declare function Carriagev1CarriageContainerFillResponseErrorPostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerFillResponseErrorPostings; +export declare function Carriagev1CarriageContainerFillResponseErrorPostingsToJSON(value?: Carriagev1CarriageContainerFillResponseErrorPostings | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerFillResponseErrorPostings.js b/dist/esm/models/Carriagev1CarriageContainerFillResponseErrorPostings.js new file mode 100644 index 0000000..8abfa4c --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerFillResponseErrorPostings.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerFillResponseErrorPostings interface. + */ +export function instanceOfCarriagev1CarriageContainerFillResponseErrorPostings(value) { + return true; +} +export function Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON(json) { + return Carriagev1CarriageContainerFillResponseErrorPostingsFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerFillResponseErrorPostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +export function Carriagev1CarriageContainerFillResponseErrorPostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': value['error_message'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerGetRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerGetRequest.d.ts new file mode 100644 index 0000000..b8efce6 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerGetRequest + */ +export interface Carriagev1CarriageContainerGetRequest { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerGetRequest + */ + container_id: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerGetRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerGetRequest(value: object): value is Carriagev1CarriageContainerGetRequest; +export declare function Carriagev1CarriageContainerGetRequestFromJSON(json: any): Carriagev1CarriageContainerGetRequest; +export declare function Carriagev1CarriageContainerGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerGetRequest; +export declare function Carriagev1CarriageContainerGetRequestToJSON(value?: Carriagev1CarriageContainerGetRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerGetRequest.js b/dist/esm/models/Carriagev1CarriageContainerGetRequest.js new file mode 100644 index 0000000..c8edf8a --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerGetRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerGetRequest(value) { + if (!('container_id' in value) || value['container_id'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerGetRequestFromJSON(json) { + return Carriagev1CarriageContainerGetRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'], + }; +} +export function Carriagev1CarriageContainerGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerGetResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerGetResponse.d.ts new file mode 100644 index 0000000..8e08529 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerGetResponse.d.ts @@ -0,0 +1,128 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerGetResponsePostings } from './Carriagev1CarriageContainerGetResponsePostings'; +/** + * + * @export + * @interface Carriagev1CarriageContainerGetResponse + */ +export interface Carriagev1CarriageContainerGetResponse { + /** + * Действия с грузоместом: + * - `approve` — подтвердить состав; + * - `get_label_container` — получить этикетку; + * - `delete` — удалить; + * - `place_box_into_pallet` — добавить коробку на палету; + * - `remove_box_from_pallet` — убрать коробку с палеты; + * - `place_posting_into_container` — перенести отправление в другое грузоместо; + * - `remove_posting_from_container` — убрать отправление из грузоместа; + * - `get_documents` — получить транспортную накладную. + * + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponse + */ + available_actions?: Array; + /** + * Тип грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + cargo_type?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + container_id?: number; + /** + * Порядковый номер грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + container_number?: number; + /** + * Количество отправлений в грузоместе. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + count_of_postings?: number; + /** + * Дата создания грузоместа в UTC. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + created_at?: string; + /** + * Идентификатор родительского грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + parent_container_id?: number; + /** + * Список отправлений. + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponse + */ + postings?: Array; + /** + * Идентификаторы дочерних грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponse + */ + related_container_ids?: Array; + /** + * Тип сортировки грузоместа: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + sort_type?: string; + /** + * Статус грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + status?: string; + /** + * Дата создания грузоместа в часовом поясе склада. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + warehouse_date?: string; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + warehouse_name?: string; + /** + * Суммарный вес отправлений в грузоместе, кг. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + weight?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerGetResponse(value: object): value is Carriagev1CarriageContainerGetResponse; +export declare function Carriagev1CarriageContainerGetResponseFromJSON(json: any): Carriagev1CarriageContainerGetResponse; +export declare function Carriagev1CarriageContainerGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerGetResponse; +export declare function Carriagev1CarriageContainerGetResponseToJSON(value?: Carriagev1CarriageContainerGetResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerGetResponse.js b/dist/esm/models/Carriagev1CarriageContainerGetResponse.js new file mode 100644 index 0000000..dc3b007 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerGetResponse.js @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerGetResponsePostingsFromJSON, Carriagev1CarriageContainerGetResponsePostingsToJSON, } from './Carriagev1CarriageContainerGetResponsePostings'; +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerGetResponse(value) { + return true; +} +export function Carriagev1CarriageContainerGetResponseFromJSON(json) { + return Carriagev1CarriageContainerGetResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'cargo_type': json['cargo_type'] == null ? undefined : json['cargo_type'], + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'container_number': json['container_number'] == null ? undefined : json['container_number'], + 'count_of_postings': json['count_of_postings'] == null ? undefined : json['count_of_postings'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'parent_container_id': json['parent_container_id'] == null ? undefined : json['parent_container_id'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(Carriagev1CarriageContainerGetResponsePostingsFromJSON)), + 'related_container_ids': json['related_container_ids'] == null ? undefined : json['related_container_ids'], + 'sort_type': json['sort_type'] == null ? undefined : json['sort_type'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_date': json['warehouse_date'] == null ? undefined : json['warehouse_date'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function Carriagev1CarriageContainerGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_actions': value['available_actions'], + 'cargo_type': value['cargo_type'], + 'container_id': value['container_id'], + 'container_number': value['container_number'], + 'count_of_postings': value['count_of_postings'], + 'created_at': value['created_at'], + 'parent_container_id': value['parent_container_id'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(Carriagev1CarriageContainerGetResponsePostingsToJSON)), + 'related_container_ids': value['related_container_ids'], + 'sort_type': value['sort_type'], + 'status': value['status'], + 'warehouse_date': value['warehouse_date'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerGetResponsePostings.d.ts b/dist/esm/models/Carriagev1CarriageContainerGetResponsePostings.d.ts new file mode 100644 index 0000000..14d738f --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerGetResponsePostings.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerGetResponsePostingsProducts } from './Carriagev1CarriageContainerGetResponsePostingsProducts'; +/** + * + * @export + * @interface Carriagev1CarriageContainerGetResponsePostings + */ +export interface Carriagev1CarriageContainerGetResponsePostings { + /** + * Действия с отправлением. + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + available_actions?: Array; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + in_process_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + products?: Array; + /** + * Тип сортировки грузоместа: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + sort_type?: string; + /** + * Вес отправления, кг. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + weight?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponsePostings interface. + */ +export declare function instanceOfCarriagev1CarriageContainerGetResponsePostings(value: object): value is Carriagev1CarriageContainerGetResponsePostings; +export declare function Carriagev1CarriageContainerGetResponsePostingsFromJSON(json: any): Carriagev1CarriageContainerGetResponsePostings; +export declare function Carriagev1CarriageContainerGetResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerGetResponsePostings; +export declare function Carriagev1CarriageContainerGetResponsePostingsToJSON(value?: Carriagev1CarriageContainerGetResponsePostings | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerGetResponsePostings.js b/dist/esm/models/Carriagev1CarriageContainerGetResponsePostings.js new file mode 100644 index 0000000..8da1865 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerGetResponsePostings.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON, Carriagev1CarriageContainerGetResponsePostingsProductsToJSON, } from './Carriagev1CarriageContainerGetResponsePostingsProducts'; +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponsePostings interface. + */ +export function instanceOfCarriagev1CarriageContainerGetResponsePostings(value) { + return true; +} +export function Carriagev1CarriageContainerGetResponsePostingsFromJSON(json) { + return Carriagev1CarriageContainerGetResponsePostingsFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerGetResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON)), + 'sort_type': json['sort_type'] == null ? undefined : json['sort_type'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function Carriagev1CarriageContainerGetResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_actions': value['available_actions'], + 'in_process_at': value['in_process_at'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(Carriagev1CarriageContainerGetResponsePostingsProductsToJSON)), + 'sort_type': value['sort_type'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerGetResponsePostingsProducts.d.ts b/dist/esm/models/Carriagev1CarriageContainerGetResponsePostingsProducts.d.ts new file mode 100644 index 0000000..1091306 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerGetResponsePostingsProducts.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerGetResponsePostingsProducts + */ +export interface Carriagev1CarriageContainerGetResponsePostingsProducts { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + sku?: number; + /** + * Название товара. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + offer_id?: string; + /** + * Количество экземпляров. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + quantity?: number; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + picture_url?: string; + /** + * Цвет товара. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + product_color?: string; + /** + * Размер производителя. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + product_size_manufacturer?: string; + /** + * Российский размер. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + product_size_russian?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponsePostingsProducts interface. + */ +export declare function instanceOfCarriagev1CarriageContainerGetResponsePostingsProducts(value: object): value is Carriagev1CarriageContainerGetResponsePostingsProducts; +export declare function Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON(json: any): Carriagev1CarriageContainerGetResponsePostingsProducts; +export declare function Carriagev1CarriageContainerGetResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerGetResponsePostingsProducts; +export declare function Carriagev1CarriageContainerGetResponsePostingsProductsToJSON(value?: Carriagev1CarriageContainerGetResponsePostingsProducts | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerGetResponsePostingsProducts.js b/dist/esm/models/Carriagev1CarriageContainerGetResponsePostingsProducts.js new file mode 100644 index 0000000..6ac3867 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerGetResponsePostingsProducts.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponsePostingsProducts interface. + */ +export function instanceOfCarriagev1CarriageContainerGetResponsePostingsProducts(value) { + return true; +} +export function Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON(json) { + return Carriagev1CarriageContainerGetResponsePostingsProductsFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerGetResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'product_color': json['product_color'] == null ? undefined : json['product_color'], + 'product_size_manufacturer': json['product_size_manufacturer'] == null ? undefined : json['product_size_manufacturer'], + 'product_size_russian': json['product_size_russian'] == null ? undefined : json['product_size_russian'], + }; +} +export function Carriagev1CarriageContainerGetResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'picture_url': value['picture_url'], + 'product_color': value['product_color'], + 'product_size_manufacturer': value['product_size_manufacturer'], + 'product_size_russian': value['product_size_russian'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerLabelGetRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerLabelGetRequest.d.ts new file mode 100644 index 0000000..c5fcd59 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerLabelGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerLabelGetRequest + */ +export interface Carriagev1CarriageContainerLabelGetRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerLabelGetRequest + */ + container_ids?: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerLabelGetRequest(value: object): value is Carriagev1CarriageContainerLabelGetRequest; +export declare function Carriagev1CarriageContainerLabelGetRequestFromJSON(json: any): Carriagev1CarriageContainerLabelGetRequest; +export declare function Carriagev1CarriageContainerLabelGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerLabelGetRequest; +export declare function Carriagev1CarriageContainerLabelGetRequestToJSON(value?: Carriagev1CarriageContainerLabelGetRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerLabelGetRequest.js b/dist/esm/models/Carriagev1CarriageContainerLabelGetRequest.js new file mode 100644 index 0000000..5d6d7d8 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerLabelGetRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerLabelGetRequest(value) { + return true; +} +export function Carriagev1CarriageContainerLabelGetRequestFromJSON(json) { + return Carriagev1CarriageContainerLabelGetRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerLabelGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'] == null ? undefined : json['container_ids'], + }; +} +export function Carriagev1CarriageContainerLabelGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerLabelGetResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponse.d.ts new file mode 100644 index 0000000..6309c6a --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerLabelGetResponseContent } from './Carriagev1CarriageContainerLabelGetResponseContent'; +import type { Carriagev1CarriageContainerLabelGetResponseErrorContainers } from './Carriagev1CarriageContainerLabelGetResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerLabelGetResponse + */ +export interface Carriagev1CarriageContainerLabelGetResponse { + /** + * + * @type {Carriagev1CarriageContainerLabelGetResponseContent} + * @memberof Carriagev1CarriageContainerLabelGetResponse + */ + content?: Carriagev1CarriageContainerLabelGetResponseContent; + /** + * Ошибки грузомест, по которым не удалось сформировать этикетку. + * @type {Array} + * @memberof Carriagev1CarriageContainerLabelGetResponse + */ + error_containers?: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerLabelGetResponse(value: object): value is Carriagev1CarriageContainerLabelGetResponse; +export declare function Carriagev1CarriageContainerLabelGetResponseFromJSON(json: any): Carriagev1CarriageContainerLabelGetResponse; +export declare function Carriagev1CarriageContainerLabelGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerLabelGetResponse; +export declare function Carriagev1CarriageContainerLabelGetResponseToJSON(value?: Carriagev1CarriageContainerLabelGetResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerLabelGetResponse.js b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponse.js new file mode 100644 index 0000000..8baef5d --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerLabelGetResponseContentFromJSON, Carriagev1CarriageContainerLabelGetResponseContentToJSON, } from './Carriagev1CarriageContainerLabelGetResponseContent'; +import { Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON, Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON, } from './Carriagev1CarriageContainerLabelGetResponseErrorContainers'; +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerLabelGetResponse(value) { + return true; +} +export function Carriagev1CarriageContainerLabelGetResponseFromJSON(json) { + return Carriagev1CarriageContainerLabelGetResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerLabelGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content': json['content'] == null ? undefined : Carriagev1CarriageContainerLabelGetResponseContentFromJSON(json['content']), + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON)), + }; +} +export function Carriagev1CarriageContainerLabelGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'content': Carriagev1CarriageContainerLabelGetResponseContentToJSON(value['content']), + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON)), + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseContent.d.ts b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseContent.d.ts new file mode 100644 index 0000000..56c7f12 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseContent.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сформированной этикетке. + * @export + * @interface Carriagev1CarriageContainerLabelGetResponseContent + */ +export interface Carriagev1CarriageContainerLabelGetResponseContent { + /** + * Тип файла. + * @type {string} + * @memberof Carriagev1CarriageContainerLabelGetResponseContent + */ + content_type?: string; + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof Carriagev1CarriageContainerLabelGetResponseContent + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof Carriagev1CarriageContainerLabelGetResponseContent + */ + file_name?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponseContent interface. + */ +export declare function instanceOfCarriagev1CarriageContainerLabelGetResponseContent(value: object): value is Carriagev1CarriageContainerLabelGetResponseContent; +export declare function Carriagev1CarriageContainerLabelGetResponseContentFromJSON(json: any): Carriagev1CarriageContainerLabelGetResponseContent; +export declare function Carriagev1CarriageContainerLabelGetResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerLabelGetResponseContent; +export declare function Carriagev1CarriageContainerLabelGetResponseContentToJSON(value?: Carriagev1CarriageContainerLabelGetResponseContent | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseContent.js b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseContent.js new file mode 100644 index 0000000..f086b9b --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseContent.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponseContent interface. + */ +export function instanceOfCarriagev1CarriageContainerLabelGetResponseContent(value) { + return true; +} +export function Carriagev1CarriageContainerLabelGetResponseContentFromJSON(json) { + return Carriagev1CarriageContainerLabelGetResponseContentFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerLabelGetResponseContentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + }; +} +export function Carriagev1CarriageContainerLabelGetResponseContentToJSON(value) { + if (value == null) { + return value; + } + return { + 'content_type': value['content_type'], + 'file_content': value['file_content'], + 'file_name': value['file_name'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.d.ts b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.d.ts new file mode 100644 index 0000000..81001f1 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerLabelGetResponseErrorContainers + */ +export interface Carriagev1CarriageContainerLabelGetResponseErrorContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerLabelGetResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerLabelGetResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerLabelGetResponseErrorContainers(value: object): value is Carriagev1CarriageContainerLabelGetResponseErrorContainers; +export declare function Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerLabelGetResponseErrorContainers; +export declare function Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerLabelGetResponseErrorContainers; +export declare function Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerLabelGetResponseErrorContainers | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.js b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.js new file mode 100644 index 0000000..f899e0c --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponseErrorContainers interface. + */ +export function instanceOfCarriagev1CarriageContainerLabelGetResponseErrorContainers(value) { + return true; +} +export function Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +export function Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerListRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerListRequest.d.ts new file mode 100644 index 0000000..6224a25 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerListRequestFilter } from './Carriagev1CarriageContainerListRequestFilter'; +import type { Carriagev1CarriageContainerListRequestSortDirEnum } from './Carriagev1CarriageContainerListRequestSortDirEnum'; +/** + * + * @export + * @interface Carriagev1CarriageContainerListRequest + */ +export interface Carriagev1CarriageContainerListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof Carriagev1CarriageContainerListRequest + */ + cursor?: string; + /** + * + * @type {Carriagev1CarriageContainerListRequestFilter} + * @memberof Carriagev1CarriageContainerListRequest + */ + filter?: Carriagev1CarriageContainerListRequestFilter; + /** + * Количество значений в ответе. Значение по умолчанию — 100. + * @type {number} + * @memberof Carriagev1CarriageContainerListRequest + */ + limit?: number; + /** + * + * @type {Carriagev1CarriageContainerListRequestSortDirEnum} + * @memberof Carriagev1CarriageContainerListRequest + */ + sort_dir?: Carriagev1CarriageContainerListRequestSortDirEnum; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerListRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerListRequest(value: object): value is Carriagev1CarriageContainerListRequest; +export declare function Carriagev1CarriageContainerListRequestFromJSON(json: any): Carriagev1CarriageContainerListRequest; +export declare function Carriagev1CarriageContainerListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListRequest; +export declare function Carriagev1CarriageContainerListRequestToJSON(value?: Carriagev1CarriageContainerListRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerListRequest.js b/dist/esm/models/Carriagev1CarriageContainerListRequest.js new file mode 100644 index 0000000..51bbb87 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerListRequestFilterFromJSON, Carriagev1CarriageContainerListRequestFilterToJSON, } from './Carriagev1CarriageContainerListRequestFilter'; +import { Carriagev1CarriageContainerListRequestSortDirEnumFromJSON, Carriagev1CarriageContainerListRequestSortDirEnumToJSON, } from './Carriagev1CarriageContainerListRequestSortDirEnum'; +/** + * Check if a given object implements the Carriagev1CarriageContainerListRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerListRequest(value) { + return true; +} +export function Carriagev1CarriageContainerListRequestFromJSON(json) { + return Carriagev1CarriageContainerListRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : Carriagev1CarriageContainerListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : Carriagev1CarriageContainerListRequestSortDirEnumFromJSON(json['sort_dir']), + }; +} +export function Carriagev1CarriageContainerListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': Carriagev1CarriageContainerListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'sort_dir': Carriagev1CarriageContainerListRequestSortDirEnumToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerListRequestFilter.d.ts b/dist/esm/models/Carriagev1CarriageContainerListRequestFilter.d.ts new file mode 100644 index 0000000..f9a9ca6 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListRequestFilter.d.ts @@ -0,0 +1,79 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface Carriagev1CarriageContainerListRequestFilter + */ +export interface Carriagev1CarriageContainerListRequestFilter { + /** + * Тип грузоместа: + * - `box` — коробка; + * - `pallet` — палета. + * + * @type {string} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + cargo_type?: string; + /** + * Дата начала периода создания грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + created_from: string; + /** + * Дата окончания периода создания грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + created_to: string; + /** + * Тип сортировки грузоместа: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + sort_type: string; + /** + * Статус грузоместа: + * - `new` — создано, но не подтверждено; + * - `formed` — подтверждено; + * - `acceptance_in_progress` — началась приёмка в СЦ; + * - `cancelled` — расформировано из-за непривоза или отмены продавцом; + * - `finished` — расформировано на СЦ; + * - `approve_enqueued` — система поставила задачу на подтверждение состава грузоместа; + * - `approve_in_process` — подтверждение состава грузоместа в процессе; + * - `approved` — состав грузоместа подтверждён; + * - `approve_failed` — не удалось подтвердить состав грузоместа, оно осталось пустым; + * - `added` — добавлено на палету; + * - `cancellation_enqueded` — система поставила задачу на отмену грузоместа. + * + * @type {Array} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + statuses?: Array; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerListRequestFilter interface. + */ +export declare function instanceOfCarriagev1CarriageContainerListRequestFilter(value: object): value is Carriagev1CarriageContainerListRequestFilter; +export declare function Carriagev1CarriageContainerListRequestFilterFromJSON(json: any): Carriagev1CarriageContainerListRequestFilter; +export declare function Carriagev1CarriageContainerListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListRequestFilter; +export declare function Carriagev1CarriageContainerListRequestFilterToJSON(value?: Carriagev1CarriageContainerListRequestFilter | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerListRequestFilter.js b/dist/esm/models/Carriagev1CarriageContainerListRequestFilter.js new file mode 100644 index 0000000..e89b72f --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListRequestFilter.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerListRequestFilter interface. + */ +export function instanceOfCarriagev1CarriageContainerListRequestFilter(value) { + if (!('created_from' in value) || value['created_from'] === undefined) + return false; + if (!('created_to' in value) || value['created_to'] === undefined) + return false; + if (!('sort_type' in value) || value['sort_type'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerListRequestFilterFromJSON(json) { + return Carriagev1CarriageContainerListRequestFilterFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_type': json['cargo_type'] == null ? undefined : json['cargo_type'], + 'created_from': json['created_from'], + 'created_to': json['created_to'], + 'sort_type': json['sort_type'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function Carriagev1CarriageContainerListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_type': value['cargo_type'], + 'created_from': value['created_from'], + 'created_to': value['created_to'], + 'sort_type': value['sort_type'], + 'statuses': value['statuses'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerListRequestSortDirEnum.d.ts b/dist/esm/models/Carriagev1CarriageContainerListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..9634cae --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const Carriagev1CarriageContainerListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type Carriagev1CarriageContainerListRequestSortDirEnum = typeof Carriagev1CarriageContainerListRequestSortDirEnum[keyof typeof Carriagev1CarriageContainerListRequestSortDirEnum]; +export declare function instanceOfCarriagev1CarriageContainerListRequestSortDirEnum(value: any): boolean; +export declare function Carriagev1CarriageContainerListRequestSortDirEnumFromJSON(json: any): Carriagev1CarriageContainerListRequestSortDirEnum; +export declare function Carriagev1CarriageContainerListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListRequestSortDirEnum; +export declare function Carriagev1CarriageContainerListRequestSortDirEnumToJSON(value?: Carriagev1CarriageContainerListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerListRequestSortDirEnum.js b/dist/esm/models/Carriagev1CarriageContainerListRequestSortDirEnum.js new file mode 100644 index 0000000..0d87599 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const Carriagev1CarriageContainerListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfCarriagev1CarriageContainerListRequestSortDirEnum(value) { + for (const key in Carriagev1CarriageContainerListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(Carriagev1CarriageContainerListRequestSortDirEnum, key)) { + if (Carriagev1CarriageContainerListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function Carriagev1CarriageContainerListRequestSortDirEnumFromJSON(json) { + return Carriagev1CarriageContainerListRequestSortDirEnumFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function Carriagev1CarriageContainerListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerListResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerListResponse.d.ts new file mode 100644 index 0000000..611130d --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerListResponseContainers } from './Carriagev1CarriageContainerListResponseContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerListResponse + */ +export interface Carriagev1CarriageContainerListResponse { + /** + * Информация о грузоместах. + * @type {Array} + * @memberof Carriagev1CarriageContainerListResponse + */ + containers?: Array; + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponse + */ + cursor?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerListResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerListResponse(value: object): value is Carriagev1CarriageContainerListResponse; +export declare function Carriagev1CarriageContainerListResponseFromJSON(json: any): Carriagev1CarriageContainerListResponse; +export declare function Carriagev1CarriageContainerListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListResponse; +export declare function Carriagev1CarriageContainerListResponseToJSON(value?: Carriagev1CarriageContainerListResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerListResponse.js b/dist/esm/models/Carriagev1CarriageContainerListResponse.js new file mode 100644 index 0000000..4367624 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerListResponseContainersFromJSON, Carriagev1CarriageContainerListResponseContainersToJSON, } from './Carriagev1CarriageContainerListResponseContainers'; +/** + * Check if a given object implements the Carriagev1CarriageContainerListResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerListResponse(value) { + return true; +} +export function Carriagev1CarriageContainerListResponseFromJSON(json) { + return Carriagev1CarriageContainerListResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'containers': json['containers'] == null ? undefined : (json['containers'].map(Carriagev1CarriageContainerListResponseContainersFromJSON)), + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + }; +} +export function Carriagev1CarriageContainerListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'containers': value['containers'] == null ? undefined : (value['containers'].map(Carriagev1CarriageContainerListResponseContainersToJSON)), + 'cursor': value['cursor'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerListResponseContainers.d.ts b/dist/esm/models/Carriagev1CarriageContainerListResponseContainers.d.ts new file mode 100644 index 0000000..d7a156d --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListResponseContainers.d.ts @@ -0,0 +1,115 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerListResponseContainers + */ +export interface Carriagev1CarriageContainerListResponseContainers { + /** + * Действия с грузоместом: + * - `approve` — подтвердить состав; + * - `get_label_container` — получить этикетку; + * - `delete` — удалить; + * - `place_box_into_pallet` — добавить коробку на палету; + * - `remove_box_from_pallet` — убрать коробку с палеты; + * - `place_posting_into_container` — перенести отправление в другое грузоместо; + * - `remove_posting_from_container` — убрать отправление из грузоместа; + * - `get_documents` — получить транспортную накладную. + * + * @type {Array} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + available_actions?: Array; + /** + * Тип грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + cargo_type?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + container_id?: number; + /** + * Порядковый номер грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + container_number?: number; + /** + * Количество отправлений в грузоместе. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + count_of_postings?: number; + /** + * Дата создания грузоместа в UTC. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + created_at?: string; + /** + * Дочерние грузоместа. + * @type {Array} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + related_containers?: Array; + /** + * Тип сортировки грузоместа: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + sort_type?: string; + /** + * Статус грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + status?: string; + /** + * Дата создания грузоместа в часовом поясе склада. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + warehouse_date?: string; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + warehouse_name?: string; + /** + * Суммарный вес отправлений в грузоместе, кг. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + weight?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerListResponseContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerListResponseContainers(value: object): value is Carriagev1CarriageContainerListResponseContainers; +export declare function Carriagev1CarriageContainerListResponseContainersFromJSON(json: any): Carriagev1CarriageContainerListResponseContainers; +export declare function Carriagev1CarriageContainerListResponseContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListResponseContainers; +export declare function Carriagev1CarriageContainerListResponseContainersToJSON(value?: Carriagev1CarriageContainerListResponseContainers | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerListResponseContainers.js b/dist/esm/models/Carriagev1CarriageContainerListResponseContainers.js new file mode 100644 index 0000000..f54360a --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerListResponseContainers.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerListResponseContainers interface. + */ +export function instanceOfCarriagev1CarriageContainerListResponseContainers(value) { + return true; +} +export function Carriagev1CarriageContainerListResponseContainersFromJSON(json) { + return Carriagev1CarriageContainerListResponseContainersFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerListResponseContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'cargo_type': json['cargo_type'] == null ? undefined : json['cargo_type'], + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'container_number': json['container_number'] == null ? undefined : json['container_number'], + 'count_of_postings': json['count_of_postings'] == null ? undefined : json['count_of_postings'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'related_containers': json['related_containers'] == null ? undefined : json['related_containers'], + 'sort_type': json['sort_type'] == null ? undefined : json['sort_type'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_date': json['warehouse_date'] == null ? undefined : json['warehouse_date'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function Carriagev1CarriageContainerListResponseContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_actions': value['available_actions'], + 'cargo_type': value['cargo_type'], + 'container_id': value['container_id'], + 'container_number': value['container_number'], + 'count_of_postings': value['count_of_postings'], + 'created_at': value['created_at'], + 'related_containers': value['related_containers'], + 'sort_type': value['sort_type'], + 'status': value['status'], + 'warehouse_date': value['warehouse_date'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerPlaceIntoRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoRequest.d.ts new file mode 100644 index 0000000..0121eda --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerPlaceIntoRequest + */ +export interface Carriagev1CarriageContainerPlaceIntoRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerPlaceIntoRequest + */ + child_container_ids: Array; + /** + * Идентификатор родительского грузоместа — палеты. + * @type {number} + * @memberof Carriagev1CarriageContainerPlaceIntoRequest + */ + parent_container_id: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerPlaceIntoRequest(value: object): value is Carriagev1CarriageContainerPlaceIntoRequest; +export declare function Carriagev1CarriageContainerPlaceIntoRequestFromJSON(json: any): Carriagev1CarriageContainerPlaceIntoRequest; +export declare function Carriagev1CarriageContainerPlaceIntoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerPlaceIntoRequest; +export declare function Carriagev1CarriageContainerPlaceIntoRequestToJSON(value?: Carriagev1CarriageContainerPlaceIntoRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerPlaceIntoRequest.js b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoRequest.js new file mode 100644 index 0000000..e2b6e9e --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerPlaceIntoRequest(value) { + if (!('child_container_ids' in value) || value['child_container_ids'] === undefined) + return false; + if (!('parent_container_id' in value) || value['parent_container_id'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerPlaceIntoRequestFromJSON(json) { + return Carriagev1CarriageContainerPlaceIntoRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerPlaceIntoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'child_container_ids': json['child_container_ids'], + 'parent_container_id': json['parent_container_id'], + }; +} +export function Carriagev1CarriageContainerPlaceIntoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'child_container_ids': value['child_container_ids'], + 'parent_container_id': value['parent_container_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponse.d.ts new file mode 100644 index 0000000..91d4ae0 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerPlaceIntoResponseErrorContainers } from './Carriagev1CarriageContainerPlaceIntoResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerPlaceIntoResponse + */ +export interface Carriagev1CarriageContainerPlaceIntoResponse { + /** + * Ошибки по грузоместам. + * @type {Array} + * @memberof Carriagev1CarriageContainerPlaceIntoResponse + */ + error_containers?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerPlaceIntoResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerPlaceIntoResponse(value: object): value is Carriagev1CarriageContainerPlaceIntoResponse; +export declare function Carriagev1CarriageContainerPlaceIntoResponseFromJSON(json: any): Carriagev1CarriageContainerPlaceIntoResponse; +export declare function Carriagev1CarriageContainerPlaceIntoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerPlaceIntoResponse; +export declare function Carriagev1CarriageContainerPlaceIntoResponseToJSON(value?: Carriagev1CarriageContainerPlaceIntoResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponse.js b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponse.js new file mode 100644 index 0000000..d603faf --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON, Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON, } from './Carriagev1CarriageContainerPlaceIntoResponseErrorContainers'; +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerPlaceIntoResponse(value) { + return true; +} +export function Carriagev1CarriageContainerPlaceIntoResponseFromJSON(json) { + return Carriagev1CarriageContainerPlaceIntoResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerPlaceIntoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function Carriagev1CarriageContainerPlaceIntoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.d.ts b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.d.ts new file mode 100644 index 0000000..f01ebe7 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerPlaceIntoResponseErrorContainers + */ +export interface Carriagev1CarriageContainerPlaceIntoResponseErrorContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerPlaceIntoResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerPlaceIntoResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerPlaceIntoResponseErrorContainers(value: object): value is Carriagev1CarriageContainerPlaceIntoResponseErrorContainers; +export declare function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerPlaceIntoResponseErrorContainers; +export declare function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerPlaceIntoResponseErrorContainers; +export declare function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerPlaceIntoResponseErrorContainers | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.js b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.js new file mode 100644 index 0000000..fb4028b --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoResponseErrorContainers interface. + */ +export function instanceOfCarriagev1CarriageContainerPlaceIntoResponseErrorContainers(value) { + return true; +} +export function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +export function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerRemoveFromRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerRemoveFromRequest.d.ts new file mode 100644 index 0000000..a80e006 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemoveFromRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerRemoveFromRequest + */ +export interface Carriagev1CarriageContainerRemoveFromRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerRemoveFromRequest + */ + child_container_ids: Array; + /** + * Идентификатор родительского грузоместа — палеты. + * @type {number} + * @memberof Carriagev1CarriageContainerRemoveFromRequest + */ + parent_container_id: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemoveFromRequest(value: object): value is Carriagev1CarriageContainerRemoveFromRequest; +export declare function Carriagev1CarriageContainerRemoveFromRequestFromJSON(json: any): Carriagev1CarriageContainerRemoveFromRequest; +export declare function Carriagev1CarriageContainerRemoveFromRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemoveFromRequest; +export declare function Carriagev1CarriageContainerRemoveFromRequestToJSON(value?: Carriagev1CarriageContainerRemoveFromRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerRemoveFromRequest.js b/dist/esm/models/Carriagev1CarriageContainerRemoveFromRequest.js new file mode 100644 index 0000000..11520e3 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemoveFromRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerRemoveFromRequest(value) { + if (!('child_container_ids' in value) || value['child_container_ids'] === undefined) + return false; + if (!('parent_container_id' in value) || value['parent_container_id'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerRemoveFromRequestFromJSON(json) { + return Carriagev1CarriageContainerRemoveFromRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerRemoveFromRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'child_container_ids': json['child_container_ids'], + 'parent_container_id': json['parent_container_id'], + }; +} +export function Carriagev1CarriageContainerRemoveFromRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'child_container_ids': value['child_container_ids'], + 'parent_container_id': value['parent_container_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponse.d.ts new file mode 100644 index 0000000..c8d6ab3 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerRemoveFromResponseErrorContainers } from './Carriagev1CarriageContainerRemoveFromResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerRemoveFromResponse + */ +export interface Carriagev1CarriageContainerRemoveFromResponse { + /** + * Ошибки по грузоместам. + * @type {Array} + * @memberof Carriagev1CarriageContainerRemoveFromResponse + */ + error_containers?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerRemoveFromResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemoveFromResponse(value: object): value is Carriagev1CarriageContainerRemoveFromResponse; +export declare function Carriagev1CarriageContainerRemoveFromResponseFromJSON(json: any): Carriagev1CarriageContainerRemoveFromResponse; +export declare function Carriagev1CarriageContainerRemoveFromResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemoveFromResponse; +export declare function Carriagev1CarriageContainerRemoveFromResponseToJSON(value?: Carriagev1CarriageContainerRemoveFromResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponse.js b/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponse.js new file mode 100644 index 0000000..c21db4f --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON, Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON, } from './Carriagev1CarriageContainerRemoveFromResponseErrorContainers'; +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerRemoveFromResponse(value) { + return true; +} +export function Carriagev1CarriageContainerRemoveFromResponseFromJSON(json) { + return Carriagev1CarriageContainerRemoveFromResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerRemoveFromResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function Carriagev1CarriageContainerRemoveFromResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.d.ts b/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.d.ts new file mode 100644 index 0000000..ad480f2 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerRemoveFromResponseErrorContainers + */ +export interface Carriagev1CarriageContainerRemoveFromResponseErrorContainers { + /** + * Идентификатор грузоместа + * @type {number} + * @memberof Carriagev1CarriageContainerRemoveFromResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки + * @type {string} + * @memberof Carriagev1CarriageContainerRemoveFromResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemoveFromResponseErrorContainers(value: object): value is Carriagev1CarriageContainerRemoveFromResponseErrorContainers; +export declare function Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerRemoveFromResponseErrorContainers; +export declare function Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemoveFromResponseErrorContainers; +export declare function Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerRemoveFromResponseErrorContainers | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.js b/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.js new file mode 100644 index 0000000..50fc1d2 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromResponseErrorContainers interface. + */ +export function instanceOfCarriagev1CarriageContainerRemoveFromResponseErrorContainers(value) { + return true; +} +export function Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +export function Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerRemovePostingsRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsRequest.d.ts new file mode 100644 index 0000000..fb966a2 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerRemovePostingsRequest + */ +export interface Carriagev1CarriageContainerRemovePostingsRequest { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerRemovePostingsRequest + */ + container_id: number; + /** + * Номера отправлений. + * @type {Array} + * @memberof Carriagev1CarriageContainerRemovePostingsRequest + */ + posting_numbers: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemovePostingsRequest(value: object): value is Carriagev1CarriageContainerRemovePostingsRequest; +export declare function Carriagev1CarriageContainerRemovePostingsRequestFromJSON(json: any): Carriagev1CarriageContainerRemovePostingsRequest; +export declare function Carriagev1CarriageContainerRemovePostingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemovePostingsRequest; +export declare function Carriagev1CarriageContainerRemovePostingsRequestToJSON(value?: Carriagev1CarriageContainerRemovePostingsRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerRemovePostingsRequest.js b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsRequest.js new file mode 100644 index 0000000..dbc7a28 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerRemovePostingsRequest(value) { + if (!('container_id' in value) || value['container_id'] === undefined) + return false; + if (!('posting_numbers' in value) || value['posting_numbers'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerRemovePostingsRequestFromJSON(json) { + return Carriagev1CarriageContainerRemovePostingsRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerRemovePostingsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'], + 'posting_numbers': json['posting_numbers'], + }; +} +export function Carriagev1CarriageContainerRemovePostingsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponse.d.ts new file mode 100644 index 0000000..d6e48d8 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerRemovePostingsResponseErrorPostings } from './Carriagev1CarriageContainerRemovePostingsResponseErrorPostings'; +/** + * + * @export + * @interface Carriagev1CarriageContainerRemovePostingsResponse + */ +export interface Carriagev1CarriageContainerRemovePostingsResponse { + /** + * Ошибки по отправлениям. + * @type {Array} + * @memberof Carriagev1CarriageContainerRemovePostingsResponse + */ + error_postings?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerRemovePostingsResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemovePostingsResponse(value: object): value is Carriagev1CarriageContainerRemovePostingsResponse; +export declare function Carriagev1CarriageContainerRemovePostingsResponseFromJSON(json: any): Carriagev1CarriageContainerRemovePostingsResponse; +export declare function Carriagev1CarriageContainerRemovePostingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemovePostingsResponse; +export declare function Carriagev1CarriageContainerRemovePostingsResponseToJSON(value?: Carriagev1CarriageContainerRemovePostingsResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponse.js b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponse.js new file mode 100644 index 0000000..6839154 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON, Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON, } from './Carriagev1CarriageContainerRemovePostingsResponseErrorPostings'; +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerRemovePostingsResponse(value) { + return true; +} +export function Carriagev1CarriageContainerRemovePostingsResponseFromJSON(json) { + return Carriagev1CarriageContainerRemovePostingsResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerRemovePostingsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_postings': json['error_postings'] == null ? undefined : (json['error_postings'].map(Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function Carriagev1CarriageContainerRemovePostingsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_postings': value['error_postings'] == null ? undefined : (value['error_postings'].map(Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.d.ts b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.d.ts new file mode 100644 index 0000000..6f7a4a7 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerRemovePostingsResponseErrorPostings + */ +export interface Carriagev1CarriageContainerRemovePostingsResponseErrorPostings { + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerRemovePostingsResponseErrorPostings + */ + error_message?: string; + /** + * Номер отправления. + * @type {string} + * @memberof Carriagev1CarriageContainerRemovePostingsResponseErrorPostings + */ + posting_number?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsResponseErrorPostings interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemovePostingsResponseErrorPostings(value: object): value is Carriagev1CarriageContainerRemovePostingsResponseErrorPostings; +export declare function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON(json: any): Carriagev1CarriageContainerRemovePostingsResponseErrorPostings; +export declare function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemovePostingsResponseErrorPostings; +export declare function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON(value?: Carriagev1CarriageContainerRemovePostingsResponseErrorPostings | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.js b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.js new file mode 100644 index 0000000..f2c3f17 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsResponseErrorPostings interface. + */ +export function instanceOfCarriagev1CarriageContainerRemovePostingsResponseErrorPostings(value) { + return true; +} +export function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON(json) { + return Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +export function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': value['error_message'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerStatusGetRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerStatusGetRequest.d.ts new file mode 100644 index 0000000..1fc14b7 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerStatusGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerStatusGetRequest + */ +export interface Carriagev1CarriageContainerStatusGetRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerStatusGetRequest + */ + container_ids: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerStatusGetRequest(value: object): value is Carriagev1CarriageContainerStatusGetRequest; +export declare function Carriagev1CarriageContainerStatusGetRequestFromJSON(json: any): Carriagev1CarriageContainerStatusGetRequest; +export declare function Carriagev1CarriageContainerStatusGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerStatusGetRequest; +export declare function Carriagev1CarriageContainerStatusGetRequestToJSON(value?: Carriagev1CarriageContainerStatusGetRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerStatusGetRequest.js b/dist/esm/models/Carriagev1CarriageContainerStatusGetRequest.js new file mode 100644 index 0000000..92290a0 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerStatusGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerStatusGetRequest(value) { + if (!('container_ids' in value) || value['container_ids'] === undefined) + return false; + return true; +} +export function Carriagev1CarriageContainerStatusGetRequestFromJSON(json) { + return Carriagev1CarriageContainerStatusGetRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerStatusGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'], + }; +} +export function Carriagev1CarriageContainerStatusGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerStatusGetResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerStatusGetResponse.d.ts new file mode 100644 index 0000000..59af697 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerStatusGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerStatusGetResponseContainers } from './Carriagev1CarriageContainerStatusGetResponseContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerStatusGetResponse + */ +export interface Carriagev1CarriageContainerStatusGetResponse { + /** + * Список грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerStatusGetResponse + */ + containers?: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerStatusGetResponse(value: object): value is Carriagev1CarriageContainerStatusGetResponse; +export declare function Carriagev1CarriageContainerStatusGetResponseFromJSON(json: any): Carriagev1CarriageContainerStatusGetResponse; +export declare function Carriagev1CarriageContainerStatusGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerStatusGetResponse; +export declare function Carriagev1CarriageContainerStatusGetResponseToJSON(value?: Carriagev1CarriageContainerStatusGetResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerStatusGetResponse.js b/dist/esm/models/Carriagev1CarriageContainerStatusGetResponse.js new file mode 100644 index 0000000..0e7d8ce --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerStatusGetResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Carriagev1CarriageContainerStatusGetResponseContainersFromJSON, Carriagev1CarriageContainerStatusGetResponseContainersToJSON, } from './Carriagev1CarriageContainerStatusGetResponseContainers'; +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerStatusGetResponse(value) { + return true; +} +export function Carriagev1CarriageContainerStatusGetResponseFromJSON(json) { + return Carriagev1CarriageContainerStatusGetResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerStatusGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'containers': json['containers'] == null ? undefined : (json['containers'].map(Carriagev1CarriageContainerStatusGetResponseContainersFromJSON)), + }; +} +export function Carriagev1CarriageContainerStatusGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'containers': value['containers'] == null ? undefined : (value['containers'].map(Carriagev1CarriageContainerStatusGetResponseContainersToJSON)), + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerStatusGetResponseContainers.d.ts b/dist/esm/models/Carriagev1CarriageContainerStatusGetResponseContainers.d.ts new file mode 100644 index 0000000..087950f --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerStatusGetResponseContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerStatusGetResponseContainers + */ +export interface Carriagev1CarriageContainerStatusGetResponseContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerStatusGetResponseContainers + */ + container_id?: number; + /** + * Статус грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerStatusGetResponseContainers + */ + status?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetResponseContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerStatusGetResponseContainers(value: object): value is Carriagev1CarriageContainerStatusGetResponseContainers; +export declare function Carriagev1CarriageContainerStatusGetResponseContainersFromJSON(json: any): Carriagev1CarriageContainerStatusGetResponseContainers; +export declare function Carriagev1CarriageContainerStatusGetResponseContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerStatusGetResponseContainers; +export declare function Carriagev1CarriageContainerStatusGetResponseContainersToJSON(value?: Carriagev1CarriageContainerStatusGetResponseContainers | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerStatusGetResponseContainers.js b/dist/esm/models/Carriagev1CarriageContainerStatusGetResponseContainers.js new file mode 100644 index 0000000..744a15b --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerStatusGetResponseContainers.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetResponseContainers interface. + */ +export function instanceOfCarriagev1CarriageContainerStatusGetResponseContainers(value) { + return true; +} +export function Carriagev1CarriageContainerStatusGetResponseContainersFromJSON(json) { + return Carriagev1CarriageContainerStatusGetResponseContainersFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerStatusGetResponseContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function Carriagev1CarriageContainerStatusGetResponseContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerTaskInfoRequest.d.ts b/dist/esm/models/Carriagev1CarriageContainerTaskInfoRequest.d.ts new file mode 100644 index 0000000..9ae5108 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerTaskInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerTaskInfoRequest + */ +export interface Carriagev1CarriageContainerTaskInfoRequest { + /** + * Идентификатор задачи. Получите его в ответе метода /v1/carriage/container/fill или /v1/carriage/container/approve. + * @type {number} + * @memberof Carriagev1CarriageContainerTaskInfoRequest + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerTaskInfoRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerTaskInfoRequest(value: object): value is Carriagev1CarriageContainerTaskInfoRequest; +export declare function Carriagev1CarriageContainerTaskInfoRequestFromJSON(json: any): Carriagev1CarriageContainerTaskInfoRequest; +export declare function Carriagev1CarriageContainerTaskInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerTaskInfoRequest; +export declare function Carriagev1CarriageContainerTaskInfoRequestToJSON(value?: Carriagev1CarriageContainerTaskInfoRequest | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerTaskInfoRequest.js b/dist/esm/models/Carriagev1CarriageContainerTaskInfoRequest.js new file mode 100644 index 0000000..406b55a --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerTaskInfoRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerTaskInfoRequest interface. + */ +export function instanceOfCarriagev1CarriageContainerTaskInfoRequest(value) { + return true; +} +export function Carriagev1CarriageContainerTaskInfoRequestFromJSON(json) { + return Carriagev1CarriageContainerTaskInfoRequestFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerTaskInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function Carriagev1CarriageContainerTaskInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/Carriagev1CarriageContainerTaskInfoResponse.d.ts b/dist/esm/models/Carriagev1CarriageContainerTaskInfoResponse.d.ts new file mode 100644 index 0000000..1d29d23 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerTaskInfoResponse.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerTaskInfoResponse + */ +export interface Carriagev1CarriageContainerTaskInfoResponse { + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerTaskInfoResponse + */ + error_message?: string; + /** + * Статус выполнения задачи: + * - `pending` — в ожидании; + * - `in_progress` — в процессе; + * - `completed` — выполнено; + * - `failed` — ошибка при выполнении; + * + * @type {string} + * @memberof Carriagev1CarriageContainerTaskInfoResponse + */ + status?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerTaskInfoResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerTaskInfoResponse(value: object): value is Carriagev1CarriageContainerTaskInfoResponse; +export declare function Carriagev1CarriageContainerTaskInfoResponseFromJSON(json: any): Carriagev1CarriageContainerTaskInfoResponse; +export declare function Carriagev1CarriageContainerTaskInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerTaskInfoResponse; +export declare function Carriagev1CarriageContainerTaskInfoResponseToJSON(value?: Carriagev1CarriageContainerTaskInfoResponse | null): any; diff --git a/dist/esm/models/Carriagev1CarriageContainerTaskInfoResponse.js b/dist/esm/models/Carriagev1CarriageContainerTaskInfoResponse.js new file mode 100644 index 0000000..ee33187 --- /dev/null +++ b/dist/esm/models/Carriagev1CarriageContainerTaskInfoResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Carriagev1CarriageContainerTaskInfoResponse interface. + */ +export function instanceOfCarriagev1CarriageContainerTaskInfoResponse(value) { + return true; +} +export function Carriagev1CarriageContainerTaskInfoResponseFromJSON(json) { + return Carriagev1CarriageContainerTaskInfoResponseFromJSONTyped(json, false); +} +export function Carriagev1CarriageContainerTaskInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function Carriagev1CarriageContainerTaskInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': value['error_message'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateRequest.d.ts b/dist/esm/models/CertificationV2ProductCertificateCreateRequest.d.ts new file mode 100644 index 0000000..89e6792 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateCreateRequestParams } from './CertificationV2ProductCertificateCreateRequestParams'; +/** + * + * @export + * @interface CertificationV2ProductCertificateCreateRequest + */ +export interface CertificationV2ProductCertificateCreateRequest { + /** + * + * @type {CertificationV2ProductCertificateCreateRequestParams} + * @memberof CertificationV2ProductCertificateCreateRequest + */ + params?: CertificationV2ProductCertificateCreateRequestParams; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateRequest interface. + */ +export declare function instanceOfCertificationV2ProductCertificateCreateRequest(value: object): value is CertificationV2ProductCertificateCreateRequest; +export declare function CertificationV2ProductCertificateCreateRequestFromJSON(json: any): CertificationV2ProductCertificateCreateRequest; +export declare function CertificationV2ProductCertificateCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateRequest; +export declare function CertificationV2ProductCertificateCreateRequestToJSON(value?: CertificationV2ProductCertificateCreateRequest | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateRequest.js b/dist/esm/models/CertificationV2ProductCertificateCreateRequest.js new file mode 100644 index 0000000..526a223 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CertificationV2ProductCertificateCreateRequestParamsFromJSON, CertificationV2ProductCertificateCreateRequestParamsToJSON, } from './CertificationV2ProductCertificateCreateRequestParams'; +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateRequest interface. + */ +export function instanceOfCertificationV2ProductCertificateCreateRequest(value) { + return true; +} +export function CertificationV2ProductCertificateCreateRequestFromJSON(json) { + return CertificationV2ProductCertificateCreateRequestFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': json['params'] == null ? undefined : CertificationV2ProductCertificateCreateRequestParamsFromJSON(json['params']), + }; +} +export function CertificationV2ProductCertificateCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'params': CertificationV2ProductCertificateCreateRequestParamsToJSON(value['params']), + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateRequestParams.d.ts b/dist/esm/models/CertificationV2ProductCertificateCreateRequestParams.d.ts new file mode 100644 index 0000000..4c1f18a --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateRequestParams.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +import type { CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +import type { CertificationV2ProductCertificateParamsRequestParamsFile } from './CertificationV2ProductCertificateParamsRequestParamsFile'; +import type { CertificationV2ProductCertificateParamsRequestParamsExpiredDate } from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +import type { CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +/** + * Параметры для создания сертификата. + * @export + * @interface CertificationV2ProductCertificateCreateRequestParams + */ +export interface CertificationV2ProductCertificateCreateRequestParams { + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + accordance_type?: CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; + /** + * Код страны, где выдали сертификат. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + certificate_country?: string; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + certificate_type?: CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsExpiredDate} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + expired_date?: CertificationV2ProductCertificateParamsRequestParamsExpiredDate; + /** + * Файлы сертификата. + * @type {Array} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + files?: Array; + /** + * Дата выдачи сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + issue_date?: string; + /** + * Ссылка на государственный реестр. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + link_to_registry?: string; + /** + * Название сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + name?: string; + /** + * Номер сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + number?: string; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + product_type?: CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; + /** + * Список идентификаторов товара в системе Ozon — SKU. + * @type {Array} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + skus?: Array; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateRequestParams interface. + */ +export declare function instanceOfCertificationV2ProductCertificateCreateRequestParams(value: object): value is CertificationV2ProductCertificateCreateRequestParams; +export declare function CertificationV2ProductCertificateCreateRequestParamsFromJSON(json: any): CertificationV2ProductCertificateCreateRequestParams; +export declare function CertificationV2ProductCertificateCreateRequestParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateRequestParams; +export declare function CertificationV2ProductCertificateCreateRequestParamsToJSON(value?: CertificationV2ProductCertificateCreateRequestParams | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateRequestParams.js b/dist/esm/models/CertificationV2ProductCertificateCreateRequestParams.js new file mode 100644 index 0000000..404f647 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateRequestParams.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON, CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +import { CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON, CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +import { CertificationV2ProductCertificateParamsRequestParamsFileFromJSON, CertificationV2ProductCertificateParamsRequestParamsFileToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsFile'; +import { CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON, CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +import { CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON, CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateRequestParams interface. + */ +export function instanceOfCertificationV2ProductCertificateCreateRequestParams(value) { + return true; +} +export function CertificationV2ProductCertificateCreateRequestParamsFromJSON(json) { + return CertificationV2ProductCertificateCreateRequestParamsFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateCreateRequestParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accordance_type': json['accordance_type'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON(json['accordance_type']), + 'certificate_country': json['certificate_country'] == null ? undefined : json['certificate_country'], + 'certificate_type': json['certificate_type'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON(json['certificate_type']), + 'expired_date': json['expired_date'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON(json['expired_date']), + 'files': json['files'] == null ? undefined : (json['files'].map(CertificationV2ProductCertificateParamsRequestParamsFileFromJSON)), + 'issue_date': json['issue_date'] == null ? undefined : json['issue_date'], + 'link_to_registry': json['link_to_registry'] == null ? undefined : json['link_to_registry'], + 'name': json['name'] == null ? undefined : json['name'], + 'number': json['number'] == null ? undefined : json['number'], + 'product_type': json['product_type'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON(json['product_type']), + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +export function CertificationV2ProductCertificateCreateRequestParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'accordance_type': CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON(value['accordance_type']), + 'certificate_country': value['certificate_country'], + 'certificate_type': CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON(value['certificate_type']), + 'expired_date': CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON(value['expired_date']), + 'files': value['files'] == null ? undefined : (value['files'].map(CertificationV2ProductCertificateParamsRequestParamsFileToJSON)), + 'issue_date': value['issue_date'], + 'link_to_registry': value['link_to_registry'], + 'name': value['name'], + 'number': value['number'], + 'product_type': CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON(value['product_type']), + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateResponse.d.ts b/dist/esm/models/CertificationV2ProductCertificateCreateResponse.d.ts new file mode 100644 index 0000000..9dedfad --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateCreateResponseParam } from './CertificationV2ProductCertificateCreateResponseParam'; +import type { CertificationV2ProductCertificateCreateResponseStatusEnum } from './CertificationV2ProductCertificateCreateResponseStatusEnum'; +/** + * + * @export + * @interface CertificationV2ProductCertificateCreateResponse + */ +export interface CertificationV2ProductCertificateCreateResponse { + /** + * Идентификатор сертификата. Если `null`, сертификат создать не удалось. + * @type {number} + * @memberof CertificationV2ProductCertificateCreateResponse + */ + certificate_id?: number; + /** + * Информация о параметрах в запросе. + * @type {Array} + * @memberof CertificationV2ProductCertificateCreateResponse + */ + params?: Array; + /** + * + * @type {CertificationV2ProductCertificateCreateResponseStatusEnum} + * @memberof CertificationV2ProductCertificateCreateResponse + */ + status?: CertificationV2ProductCertificateCreateResponseStatusEnum; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateResponse interface. + */ +export declare function instanceOfCertificationV2ProductCertificateCreateResponse(value: object): value is CertificationV2ProductCertificateCreateResponse; +export declare function CertificationV2ProductCertificateCreateResponseFromJSON(json: any): CertificationV2ProductCertificateCreateResponse; +export declare function CertificationV2ProductCertificateCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateResponse; +export declare function CertificationV2ProductCertificateCreateResponseToJSON(value?: CertificationV2ProductCertificateCreateResponse | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateResponse.js b/dist/esm/models/CertificationV2ProductCertificateCreateResponse.js new file mode 100644 index 0000000..771a5d2 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateResponse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CertificationV2ProductCertificateCreateResponseParamFromJSON, CertificationV2ProductCertificateCreateResponseParamToJSON, } from './CertificationV2ProductCertificateCreateResponseParam'; +import { CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON, CertificationV2ProductCertificateCreateResponseStatusEnumToJSON, } from './CertificationV2ProductCertificateCreateResponseStatusEnum'; +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateResponse interface. + */ +export function instanceOfCertificationV2ProductCertificateCreateResponse(value) { + return true; +} +export function CertificationV2ProductCertificateCreateResponseFromJSON(json) { + return CertificationV2ProductCertificateCreateResponseFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'] == null ? undefined : json['certificate_id'], + 'params': json['params'] == null ? undefined : (json['params'].map(CertificationV2ProductCertificateCreateResponseParamFromJSON)), + 'status': json['status'] == null ? undefined : CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON(json['status']), + }; +} +export function CertificationV2ProductCertificateCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'params': value['params'] == null ? undefined : (value['params'].map(CertificationV2ProductCertificateCreateResponseParamToJSON)), + 'status': CertificationV2ProductCertificateCreateResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateResponseParam.d.ts b/dist/esm/models/CertificationV2ProductCertificateCreateResponseParam.d.ts new file mode 100644 index 0000000..93d7946 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateResponseParam.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateCreateResponseParamStateEnum } from './CertificationV2ProductCertificateCreateResponseParamStateEnum'; +/** + * + * @export + * @interface CertificationV2ProductCertificateCreateResponseParam + */ +export interface CertificationV2ProductCertificateCreateResponseParam { + /** + * Ошибки в параметре для `state = INVALID`. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateResponseParam + */ + error?: string; + /** + * Название параметра сертификата: + * - `NAME` — название; + * - `CERTIFICATE_TYPE` — тип; + * - `NUMBER` — номер; + * - `FILES` — файл с сертификатом в кодировке Base64; + * - `CERTIFICATE_COUNTRY` — страна выдачи; + * - `ACCORDANCE_TYPE` — тип соответствия требованиям; + * - `SKUS` — список идентификаторов товара в системе Ozon, SKU; + * - `ISSUE_DATE` — дата выпуска; + * - `EXPIRED_DATE` — дата истечения; + * - `LINK_TO_REGISTRY` — ссылка на государственный реестр; + * - `PRODUCT_TYPE` — тип товаров; + * - `INFINITE` — бессрочность. + * + * @type {string} + * @memberof CertificationV2ProductCertificateCreateResponseParam + */ + name?: string; + /** + * + * @type {CertificationV2ProductCertificateCreateResponseParamStateEnum} + * @memberof CertificationV2ProductCertificateCreateResponseParam + */ + state?: CertificationV2ProductCertificateCreateResponseParamStateEnum; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateResponseParam interface. + */ +export declare function instanceOfCertificationV2ProductCertificateCreateResponseParam(value: object): value is CertificationV2ProductCertificateCreateResponseParam; +export declare function CertificationV2ProductCertificateCreateResponseParamFromJSON(json: any): CertificationV2ProductCertificateCreateResponseParam; +export declare function CertificationV2ProductCertificateCreateResponseParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateResponseParam; +export declare function CertificationV2ProductCertificateCreateResponseParamToJSON(value?: CertificationV2ProductCertificateCreateResponseParam | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateResponseParam.js b/dist/esm/models/CertificationV2ProductCertificateCreateResponseParam.js new file mode 100644 index 0000000..26f6a70 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateResponseParam.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON, CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON, } from './CertificationV2ProductCertificateCreateResponseParamStateEnum'; +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateResponseParam interface. + */ +export function instanceOfCertificationV2ProductCertificateCreateResponseParam(value) { + return true; +} +export function CertificationV2ProductCertificateCreateResponseParamFromJSON(json) { + return CertificationV2ProductCertificateCreateResponseParamFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateCreateResponseParamFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'name': json['name'] == null ? undefined : json['name'], + 'state': json['state'] == null ? undefined : CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON(json['state']), + }; +} +export function CertificationV2ProductCertificateCreateResponseParamToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'name': value['name'], + 'state': CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON(value['state']), + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.d.ts b/dist/esm/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.d.ts new file mode 100644 index 0000000..ba6d2da --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Состояние параметра: + * - `VALID` — заполнен корректно; + * - `INVALID` — заполнен некорректно; + * - `MISSING` — не заполнен. + * + * @export + */ +export declare const CertificationV2ProductCertificateCreateResponseParamStateEnum: { + readonly VALID: "VALID"; + readonly INVALID: "INVALID"; + readonly MISSING: "MISSING"; +}; +export type CertificationV2ProductCertificateCreateResponseParamStateEnum = typeof CertificationV2ProductCertificateCreateResponseParamStateEnum[keyof typeof CertificationV2ProductCertificateCreateResponseParamStateEnum]; +export declare function instanceOfCertificationV2ProductCertificateCreateResponseParamStateEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON(json: any): CertificationV2ProductCertificateCreateResponseParamStateEnum; +export declare function CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateResponseParamStateEnum; +export declare function CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON(value?: CertificationV2ProductCertificateCreateResponseParamStateEnum | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.js b/dist/esm/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.js new file mode 100644 index 0000000..9edcb2f --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Состояние параметра: + * - `VALID` — заполнен корректно; + * - `INVALID` — заполнен некорректно; + * - `MISSING` — не заполнен. + * + * @export + */ +export const CertificationV2ProductCertificateCreateResponseParamStateEnum = { + VALID: 'VALID', + INVALID: 'INVALID', + MISSING: 'MISSING' +}; +export function instanceOfCertificationV2ProductCertificateCreateResponseParamStateEnum(value) { + for (const key in CertificationV2ProductCertificateCreateResponseParamStateEnum) { + if (Object.prototype.hasOwnProperty.call(CertificationV2ProductCertificateCreateResponseParamStateEnum, key)) { + if (CertificationV2ProductCertificateCreateResponseParamStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON(json) { + return CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateResponseStatusEnum.d.ts b/dist/esm/models/CertificationV2ProductCertificateCreateResponseStatusEnum.d.ts new file mode 100644 index 0000000..1cac30f --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateResponseStatusEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус сертификата: + * - `INCOMPLETE` — не загружен, некоторые параметры переданы некорректно; + * - `COMPLETED` — загружен. + * + * @export + */ +export declare const CertificationV2ProductCertificateCreateResponseStatusEnum: { + readonly INCOMPLETE: "INCOMPLETE"; + readonly COMPLETED: "COMPLETED"; +}; +export type CertificationV2ProductCertificateCreateResponseStatusEnum = typeof CertificationV2ProductCertificateCreateResponseStatusEnum[keyof typeof CertificationV2ProductCertificateCreateResponseStatusEnum]; +export declare function instanceOfCertificationV2ProductCertificateCreateResponseStatusEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON(json: any): CertificationV2ProductCertificateCreateResponseStatusEnum; +export declare function CertificationV2ProductCertificateCreateResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateResponseStatusEnum; +export declare function CertificationV2ProductCertificateCreateResponseStatusEnumToJSON(value?: CertificationV2ProductCertificateCreateResponseStatusEnum | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateCreateResponseStatusEnum.js b/dist/esm/models/CertificationV2ProductCertificateCreateResponseStatusEnum.js new file mode 100644 index 0000000..fbd6249 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateCreateResponseStatusEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус сертификата: + * - `INCOMPLETE` — не загружен, некоторые параметры переданы некорректно; + * - `COMPLETED` — загружен. + * + * @export + */ +export const CertificationV2ProductCertificateCreateResponseStatusEnum = { + INCOMPLETE: 'INCOMPLETE', + COMPLETED: 'COMPLETED' +}; +export function instanceOfCertificationV2ProductCertificateCreateResponseStatusEnum(value) { + for (const key in CertificationV2ProductCertificateCreateResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(CertificationV2ProductCertificateCreateResponseStatusEnum, key)) { + if (CertificationV2ProductCertificateCreateResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON(json) { + return CertificationV2ProductCertificateCreateResponseStatusEnumFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateCreateResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CertificationV2ProductCertificateCreateResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateOptionsResponse.d.ts b/dist/esm/models/CertificationV2ProductCertificateOptionsResponse.d.ts new file mode 100644 index 0000000..ac5eb79 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateOptionsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateOptionsResponseOption } from './CertificationV2ProductCertificateOptionsResponseOption'; +/** + * + * @export + * @interface CertificationV2ProductCertificateOptionsResponse + */ +export interface CertificationV2ProductCertificateOptionsResponse { + /** + * Параметры для создания сертификата. + * @type {Array} + * @memberof CertificationV2ProductCertificateOptionsResponse + */ + option?: Array; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateOptionsResponse interface. + */ +export declare function instanceOfCertificationV2ProductCertificateOptionsResponse(value: object): value is CertificationV2ProductCertificateOptionsResponse; +export declare function CertificationV2ProductCertificateOptionsResponseFromJSON(json: any): CertificationV2ProductCertificateOptionsResponse; +export declare function CertificationV2ProductCertificateOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateOptionsResponse; +export declare function CertificationV2ProductCertificateOptionsResponseToJSON(value?: CertificationV2ProductCertificateOptionsResponse | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateOptionsResponse.js b/dist/esm/models/CertificationV2ProductCertificateOptionsResponse.js new file mode 100644 index 0000000..1d2714e --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateOptionsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CertificationV2ProductCertificateOptionsResponseOptionFromJSON, CertificationV2ProductCertificateOptionsResponseOptionToJSON, } from './CertificationV2ProductCertificateOptionsResponseOption'; +/** + * Check if a given object implements the CertificationV2ProductCertificateOptionsResponse interface. + */ +export function instanceOfCertificationV2ProductCertificateOptionsResponse(value) { + return true; +} +export function CertificationV2ProductCertificateOptionsResponseFromJSON(json) { + return CertificationV2ProductCertificateOptionsResponseFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateOptionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'option': json['option'] == null ? undefined : (json['option'].map(CertificationV2ProductCertificateOptionsResponseOptionFromJSON)), + }; +} +export function CertificationV2ProductCertificateOptionsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'option': value['option'] == null ? undefined : (value['option'].map(CertificationV2ProductCertificateOptionsResponseOptionToJSON)), + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateOptionsResponseOption.d.ts b/dist/esm/models/CertificationV2ProductCertificateOptionsResponseOption.d.ts new file mode 100644 index 0000000..47816d1 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateOptionsResponseOption.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CertificationV2ProductCertificateOptionsResponseOption + */ +export interface CertificationV2ProductCertificateOptionsResponseOption { + /** + * Название параметра сертификата: + * - `NAME` — название; + * - `CERTIFICATE_TYPE` — тип; + * - `NUMBER` — номер; + * - `FILES` — файл с сертификатом в кодировке Base64; + * - `CERTIFICATE_COUNTRY` — страна выдачи; + * - `ACCORDANCE_TYPE` — тип соответствия требованиям; + * - `SKUS` — список идентификаторов товара в системе Ozon, SKU; + * - `ISSUE_DATE` — дата выпуска; + * - `EXPIRED_DATE` — дата истечения; + * - `LINK_TO_REGISTRY` — ссылка на государственный реестр; + * - `PRODUCT_TYPE` — тип товаров; + * - `INFINITE` — бессрочность. + * + * @type {string} + * @memberof CertificationV2ProductCertificateOptionsResponseOption + */ + name?: string; + /** + * `true`, если параметр обязательный. + * + * @type {boolean} + * @memberof CertificationV2ProductCertificateOptionsResponseOption + */ + required?: boolean; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateOptionsResponseOption interface. + */ +export declare function instanceOfCertificationV2ProductCertificateOptionsResponseOption(value: object): value is CertificationV2ProductCertificateOptionsResponseOption; +export declare function CertificationV2ProductCertificateOptionsResponseOptionFromJSON(json: any): CertificationV2ProductCertificateOptionsResponseOption; +export declare function CertificationV2ProductCertificateOptionsResponseOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateOptionsResponseOption; +export declare function CertificationV2ProductCertificateOptionsResponseOptionToJSON(value?: CertificationV2ProductCertificateOptionsResponseOption | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateOptionsResponseOption.js b/dist/esm/models/CertificationV2ProductCertificateOptionsResponseOption.js new file mode 100644 index 0000000..b838514 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateOptionsResponseOption.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CertificationV2ProductCertificateOptionsResponseOption interface. + */ +export function instanceOfCertificationV2ProductCertificateOptionsResponseOption(value) { + return true; +} +export function CertificationV2ProductCertificateOptionsResponseOptionFromJSON(json) { + return CertificationV2ProductCertificateOptionsResponseOptionFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateOptionsResponseOptionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'required': json['required'] == null ? undefined : json['required'], + }; +} +export function CertificationV2ProductCertificateOptionsResponseOptionToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'required': value['required'], + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequest.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsRequest.d.ts new file mode 100644 index 0000000..23cb36b --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateParamsRequestParams } from './CertificationV2ProductCertificateParamsRequestParams'; +/** + * + * @export + * @interface CertificationV2ProductCertificateParamsRequest + */ +export interface CertificationV2ProductCertificateParamsRequest { + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParams} + * @memberof CertificationV2ProductCertificateParamsRequest + */ + params?: CertificationV2ProductCertificateParamsRequestParams; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequest interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsRequest(value: object): value is CertificationV2ProductCertificateParamsRequest; +export declare function CertificationV2ProductCertificateParamsRequestFromJSON(json: any): CertificationV2ProductCertificateParamsRequest; +export declare function CertificationV2ProductCertificateParamsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequest; +export declare function CertificationV2ProductCertificateParamsRequestToJSON(value?: CertificationV2ProductCertificateParamsRequest | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequest.js b/dist/esm/models/CertificationV2ProductCertificateParamsRequest.js new file mode 100644 index 0000000..ab79f35 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CertificationV2ProductCertificateParamsRequestParamsFromJSON, CertificationV2ProductCertificateParamsRequestParamsToJSON, } from './CertificationV2ProductCertificateParamsRequestParams'; +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequest interface. + */ +export function instanceOfCertificationV2ProductCertificateParamsRequest(value) { + return true; +} +export function CertificationV2ProductCertificateParamsRequestFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': json['params'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsFromJSON(json['params']), + }; +} +export function CertificationV2ProductCertificateParamsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'params': CertificationV2ProductCertificateParamsRequestParamsToJSON(value['params']), + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParams.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParams.d.ts new file mode 100644 index 0000000..2892de3 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParams.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +import type { CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +import type { CertificationV2ProductCertificateParamsRequestParamsFile } from './CertificationV2ProductCertificateParamsRequestParamsFile'; +import type { CertificationV2ProductCertificateParamsRequestParamsExpiredDate } from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +import type { CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +/** + * Параметры для создания сертификата. + * @export + * @interface CertificationV2ProductCertificateParamsRequestParams + */ +export interface CertificationV2ProductCertificateParamsRequestParams { + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + accordance_type?: CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; + /** + * Код страны, где выдали сертификат. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + certificate_country?: string; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + certificate_type?: CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsExpiredDate} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + expired_date?: CertificationV2ProductCertificateParamsRequestParamsExpiredDate; + /** + * Файлы сертификата. + * @type {Array} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + files?: Array; + /** + * Дата выдачи сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + issue_date?: string; + /** + * Ссылка на государственный реестр. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + link_to_registry?: string; + /** + * Название сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + name?: string; + /** + * Номер сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + number?: string; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + product_type?: CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; + /** + * Список идентификаторов товара в системе Ozon — SKU. + * @type {Array} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + skus?: Array; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParams interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParams(value: object): value is CertificationV2ProductCertificateParamsRequestParams; +export declare function CertificationV2ProductCertificateParamsRequestParamsFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParams; +export declare function CertificationV2ProductCertificateParamsRequestParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParams; +export declare function CertificationV2ProductCertificateParamsRequestParamsToJSON(value?: CertificationV2ProductCertificateParamsRequestParams | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParams.js b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParams.js new file mode 100644 index 0000000..71e5552 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParams.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON, CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +import { CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON, CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +import { CertificationV2ProductCertificateParamsRequestParamsFileFromJSON, CertificationV2ProductCertificateParamsRequestParamsFileToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsFile'; +import { CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON, CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +import { CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON, CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON, } from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParams interface. + */ +export function instanceOfCertificationV2ProductCertificateParamsRequestParams(value) { + return true; +} +export function CertificationV2ProductCertificateParamsRequestParamsFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsRequestParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accordance_type': json['accordance_type'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON(json['accordance_type']), + 'certificate_country': json['certificate_country'] == null ? undefined : json['certificate_country'], + 'certificate_type': json['certificate_type'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON(json['certificate_type']), + 'expired_date': json['expired_date'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON(json['expired_date']), + 'files': json['files'] == null ? undefined : (json['files'].map(CertificationV2ProductCertificateParamsRequestParamsFileFromJSON)), + 'issue_date': json['issue_date'] == null ? undefined : json['issue_date'], + 'link_to_registry': json['link_to_registry'] == null ? undefined : json['link_to_registry'], + 'name': json['name'] == null ? undefined : json['name'], + 'number': json['number'] == null ? undefined : json['number'], + 'product_type': json['product_type'] == null ? undefined : CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON(json['product_type']), + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +export function CertificationV2ProductCertificateParamsRequestParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'accordance_type': CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON(value['accordance_type']), + 'certificate_country': value['certificate_country'], + 'certificate_type': CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON(value['certificate_type']), + 'expired_date': CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON(value['expired_date']), + 'files': value['files'] == null ? undefined : (value['files'].map(CertificationV2ProductCertificateParamsRequestParamsFileToJSON)), + 'issue_date': value['issue_date'], + 'link_to_registry': value['link_to_registry'], + 'name': value['name'], + 'number': value['number'], + 'product_type': CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON(value['product_type']), + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.d.ts new file mode 100644 index 0000000..3618267 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип соответствия требованиям из метода [/v2/product/certificate/accordance-types/list](#operation/CertificateAccordanceTypes): + * - `UNKNOWN` — неизвестный; + * - `EAEU` — стандарт сертификации ЕАЭС; + * - `NATIONAL` — национальный стандарт сертификации; + * - `TECHNICAL_REGULATIONS_RF` — технический регламент Российской Федерации; + * - `TECHNICAL_REGULATIONS_CU` — технический регламент Таможенного союза; + * - `GOST` — ГОСТ; + * - `CHEMICAL_PRODUCTS` — паспорт безопасности химической продукции; + * - `SAFETY_DATA_SHEET` — паспорт безопасности; + * - `REJECTION_LETTER` — отказное письмо. + * + * @export + */ +export declare const CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly EAEU: "EAEU"; + readonly NATIONAL: "NATIONAL"; + readonly TECHNICAL_REGULATIONS_RF: "TECHNICAL_REGULATIONS_RF"; + readonly TECHNICAL_REGULATIONS_CU: "TECHNICAL_REGULATIONS_CU"; + readonly GOST: "GOST"; + readonly CHEMICAL_PRODUCTS: "CHEMICAL_PRODUCTS"; + readonly SAFETY_DATA_SHEET: "SAFETY_DATA_SHEET"; + readonly REJECTION_LETTER: "REJECTION_LETTER"; +}; +export type CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum = typeof CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum[keyof typeof CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum]; +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.js b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.js new file mode 100644 index 0000000..2f90f68 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип соответствия требованиям из метода [/v2/product/certificate/accordance-types/list](#operation/CertificateAccordanceTypes): + * - `UNKNOWN` — неизвестный; + * - `EAEU` — стандарт сертификации ЕАЭС; + * - `NATIONAL` — национальный стандарт сертификации; + * - `TECHNICAL_REGULATIONS_RF` — технический регламент Российской Федерации; + * - `TECHNICAL_REGULATIONS_CU` — технический регламент Таможенного союза; + * - `GOST` — ГОСТ; + * - `CHEMICAL_PRODUCTS` — паспорт безопасности химической продукции; + * - `SAFETY_DATA_SHEET` — паспорт безопасности; + * - `REJECTION_LETTER` — отказное письмо. + * + * @export + */ +export const CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum = { + UNKNOWN: 'UNKNOWN', + EAEU: 'EAEU', + NATIONAL: 'NATIONAL', + TECHNICAL_REGULATIONS_RF: 'TECHNICAL_REGULATIONS_RF', + TECHNICAL_REGULATIONS_CU: 'TECHNICAL_REGULATIONS_CU', + GOST: 'GOST', + CHEMICAL_PRODUCTS: 'CHEMICAL_PRODUCTS', + SAFETY_DATA_SHEET: 'SAFETY_DATA_SHEET', + REJECTION_LETTER: 'REJECTION_LETTER' +}; +export function instanceOfCertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum(value) { + for (const key in CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum, key)) { + if (CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.d.ts new file mode 100644 index 0000000..a35a7b0 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип сертификата: + * - `UNKNOWN` — неизвестный; + * - `CERTIFICATE_OF_CONFORMITY` — сертификат соответствия; + * - `DECLARATION` — декларация о соответствии; + * - `CERTIFICATE_OF_REGISTRATION` — свидетельство о государственной регистрации; + * - `REGISTRATION_CERTIFICATE` — регистрационное удостоверение; + * - `REFUSED_LETTER` — отказное письмо; + * - `VETERINARY_COVER_DOCUMENT` — ветеринарный сопроводительный документ; + * - `SAFETY_DATA_SHEET` — паспорт безопасности. + * + * @export + */ +export declare const CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly CERTIFICATE_OF_CONFORMITY: "CERTIFICATE_OF_CONFORMITY"; + readonly DECLARATION: "DECLARATION"; + readonly CERTIFICATE_OF_REGISTRATION: "CERTIFICATE_OF_REGISTRATION"; + readonly REGISTRATION_CERTIFICATE: "REGISTRATION_CERTIFICATE"; + readonly REFUSED_LETTER: "REFUSED_LETTER"; + readonly VETERINARY_COVER_DOCUMENT: "VETERINARY_COVER_DOCUMENT"; + readonly SAFETY_DATA_SHEET: "SAFETY_DATA_SHEET"; +}; +export type CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum = typeof CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum[keyof typeof CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum]; +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.js b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.js new file mode 100644 index 0000000..ca2f04b --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип сертификата: + * - `UNKNOWN` — неизвестный; + * - `CERTIFICATE_OF_CONFORMITY` — сертификат соответствия; + * - `DECLARATION` — декларация о соответствии; + * - `CERTIFICATE_OF_REGISTRATION` — свидетельство о государственной регистрации; + * - `REGISTRATION_CERTIFICATE` — регистрационное удостоверение; + * - `REFUSED_LETTER` — отказное письмо; + * - `VETERINARY_COVER_DOCUMENT` — ветеринарный сопроводительный документ; + * - `SAFETY_DATA_SHEET` — паспорт безопасности. + * + * @export + */ +export const CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum = { + UNKNOWN: 'UNKNOWN', + CERTIFICATE_OF_CONFORMITY: 'CERTIFICATE_OF_CONFORMITY', + DECLARATION: 'DECLARATION', + CERTIFICATE_OF_REGISTRATION: 'CERTIFICATE_OF_REGISTRATION', + REGISTRATION_CERTIFICATE: 'REGISTRATION_CERTIFICATE', + REFUSED_LETTER: 'REFUSED_LETTER', + VETERINARY_COVER_DOCUMENT: 'VETERINARY_COVER_DOCUMENT', + SAFETY_DATA_SHEET: 'SAFETY_DATA_SHEET' +}; +export function instanceOfCertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum(value) { + for (const key in CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum, key)) { + if (CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.d.ts new file mode 100644 index 0000000..9e7ee5b --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GoogleTypeDate } from './GoogleTypeDate'; +/** + * Информация о дате истечения сертификата. + * @export + * @interface CertificationV2ProductCertificateParamsRequestParamsExpiredDate + */ +export interface CertificationV2ProductCertificateParamsRequestParamsExpiredDate { + /** + * + * @type {GoogleTypeDate} + * @memberof CertificationV2ProductCertificateParamsRequestParamsExpiredDate + */ + date?: GoogleTypeDate; + /** + * `true`, если сертификат бессрочный. Не передавайте параметр, если указали `date`. + * + * @type {boolean} + * @memberof CertificationV2ProductCertificateParamsRequestParamsExpiredDate + */ + infinite?: boolean; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParamsExpiredDate interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsExpiredDate(value: object): value is CertificationV2ProductCertificateParamsRequestParamsExpiredDate; +export declare function CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsExpiredDate; +export declare function CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsExpiredDate; +export declare function CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsExpiredDate | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.js b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.js new file mode 100644 index 0000000..d423635 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GoogleTypeDateFromJSON, GoogleTypeDateToJSON, } from './GoogleTypeDate'; +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParamsExpiredDate interface. + */ +export function instanceOfCertificationV2ProductCertificateParamsRequestParamsExpiredDate(value) { + return true; +} +export function CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : GoogleTypeDateFromJSON(json['date']), + 'infinite': json['infinite'] == null ? undefined : json['infinite'], + }; +} +export function CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': GoogleTypeDateToJSON(value['date']), + 'infinite': value['infinite'], + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsFile.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsFile.d.ts new file mode 100644 index 0000000..17b531f --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsFile.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CertificationV2ProductCertificateParamsRequestParamsFile + */ +export interface CertificationV2ProductCertificateParamsRequestParamsFile { + /** + * Файл в кодировке Base64. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParamsFile + */ + file_content: string; + /** + * Название файла. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParamsFile + */ + name: string; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParamsFile interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsFile(value: object): value is CertificationV2ProductCertificateParamsRequestParamsFile; +export declare function CertificationV2ProductCertificateParamsRequestParamsFileFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsFile; +export declare function CertificationV2ProductCertificateParamsRequestParamsFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsFile; +export declare function CertificationV2ProductCertificateParamsRequestParamsFileToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsFile | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsFile.js b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsFile.js new file mode 100644 index 0000000..e46a57e --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsFile.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParamsFile interface. + */ +export function instanceOfCertificationV2ProductCertificateParamsRequestParamsFile(value) { + if (!('file_content' in value) || value['file_content'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + return true; +} +export function CertificationV2ProductCertificateParamsRequestParamsFileFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsFileFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsRequestParamsFileFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'], + 'name': json['name'], + }; +} +export function CertificationV2ProductCertificateParamsRequestParamsFileToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.d.ts new file mode 100644 index 0000000..e9276ec --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип товаров: + * - `UNKNOWN` — неизвестный; + * - `PRODUCTS_SUBJECT_TO_REGISTRATION` — продукт, подлежащий государственной регистрации; + * - `PESTICIDE` — пестицид; + * - `AGROCHEMICAL` — агрохимикат; + * - `FEED_ADDITIVE` — кормовая добавка; + * - `MEDICAL_PRODUCT` — медицинский продукт; + * - `MEDICINE` — лекарственный препарат; + * - `VETERINARY_DRUG` — ветеринарный препарат; + * - `PHARMACEUTICAL_SUBSTANCE` — фармацевтический ингредиент. + * + * @export + */ +export declare const CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly PRODUCTS_SUBJECT_TO_REGISTRATION: "PRODUCTS_SUBJECT_TO_REGISTRATION"; + readonly PESTICIDE: "PESTICIDE"; + readonly AGROCHEMICAL: "AGROCHEMICAL"; + readonly FEED_ADDITIVE: "FEED_ADDITIVE"; + readonly MEDICAL_PRODUCT: "MEDICAL_PRODUCT"; + readonly MEDICINE: "MEDICINE"; + readonly VETERINARY_DRUG: "VETERINARY_DRUG"; + readonly PHARMACEUTICAL_SUBSTANCE: "PHARMACEUTICAL_SUBSTANCE"; +}; +export type CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum = typeof CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum[keyof typeof CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum]; +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsProductTypeEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.js b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.js new file mode 100644 index 0000000..7c40f67 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип товаров: + * - `UNKNOWN` — неизвестный; + * - `PRODUCTS_SUBJECT_TO_REGISTRATION` — продукт, подлежащий государственной регистрации; + * - `PESTICIDE` — пестицид; + * - `AGROCHEMICAL` — агрохимикат; + * - `FEED_ADDITIVE` — кормовая добавка; + * - `MEDICAL_PRODUCT` — медицинский продукт; + * - `MEDICINE` — лекарственный препарат; + * - `VETERINARY_DRUG` — ветеринарный препарат; + * - `PHARMACEUTICAL_SUBSTANCE` — фармацевтический ингредиент. + * + * @export + */ +export const CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum = { + UNKNOWN: 'UNKNOWN', + PRODUCTS_SUBJECT_TO_REGISTRATION: 'PRODUCTS_SUBJECT_TO_REGISTRATION', + PESTICIDE: 'PESTICIDE', + AGROCHEMICAL: 'AGROCHEMICAL', + FEED_ADDITIVE: 'FEED_ADDITIVE', + MEDICAL_PRODUCT: 'MEDICAL_PRODUCT', + MEDICINE: 'MEDICINE', + VETERINARY_DRUG: 'VETERINARY_DRUG', + PHARMACEUTICAL_SUBSTANCE: 'PHARMACEUTICAL_SUBSTANCE' +}; +export function instanceOfCertificationV2ProductCertificateParamsRequestParamsProductTypeEnum(value) { + for (const key in CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum, key)) { + if (CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsResponse.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsResponse.d.ts new file mode 100644 index 0000000..e5ed61c --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateParamsResponseParam } from './CertificationV2ProductCertificateParamsResponseParam'; +/** + * + * @export + * @interface CertificationV2ProductCertificateParamsResponse + */ +export interface CertificationV2ProductCertificateParamsResponse { + /** + * Параметры для создания сертификата. + * @type {Array} + * @memberof CertificationV2ProductCertificateParamsResponse + */ + params?: Array; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsResponse interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsResponse(value: object): value is CertificationV2ProductCertificateParamsResponse; +export declare function CertificationV2ProductCertificateParamsResponseFromJSON(json: any): CertificationV2ProductCertificateParamsResponse; +export declare function CertificationV2ProductCertificateParamsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsResponse; +export declare function CertificationV2ProductCertificateParamsResponseToJSON(value?: CertificationV2ProductCertificateParamsResponse | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsResponse.js b/dist/esm/models/CertificationV2ProductCertificateParamsResponse.js new file mode 100644 index 0000000..10b889a --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CertificationV2ProductCertificateParamsResponseParamFromJSON, CertificationV2ProductCertificateParamsResponseParamToJSON, } from './CertificationV2ProductCertificateParamsResponseParam'; +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsResponse interface. + */ +export function instanceOfCertificationV2ProductCertificateParamsResponse(value) { + return true; +} +export function CertificationV2ProductCertificateParamsResponseFromJSON(json) { + return CertificationV2ProductCertificateParamsResponseFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': json['params'] == null ? undefined : (json['params'].map(CertificationV2ProductCertificateParamsResponseParamFromJSON)), + }; +} +export function CertificationV2ProductCertificateParamsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'params': value['params'] == null ? undefined : (value['params'].map(CertificationV2ProductCertificateParamsResponseParamToJSON)), + }; +} diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsResponseParam.d.ts b/dist/esm/models/CertificationV2ProductCertificateParamsResponseParam.d.ts new file mode 100644 index 0000000..d40f9b4 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsResponseParam.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CertificationV2ProductCertificateParamsResponseParam + */ +export interface CertificationV2ProductCertificateParamsResponseParam { + /** + * Название параметра сертификата: + * - `NAME` — название; + * - `CERTIFICATE_TYPE` — тип; + * - `NUMBER` — номер; + * - `FILES` — файл с сертификатом в кодировке Base64; + * - `CERTIFICATE_COUNTRY` — страна выдачи; + * - `ACCORDANCE_TYPE` — тип соответствия требованиям; + * - `SKUS` — список идентификаторов товара в системе Ozon, SKU; + * - `ISSUE_DATE` — дата выпуска; + * - `EXPIRED_DATE` — дата истечения; + * - `LINK_TO_REGISTRY` — ссылка на государственный реестр; + * - `PRODUCT_TYPE` — тип товаров; + * - `INFINITE` — бессрочность. + * + * @type {string} + * @memberof CertificationV2ProductCertificateParamsResponseParam + */ + name?: string; + /** + * `true`, если параметр обязательный. + * + * @type {boolean} + * @memberof CertificationV2ProductCertificateParamsResponseParam + */ + required?: boolean; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsResponseParam interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsResponseParam(value: object): value is CertificationV2ProductCertificateParamsResponseParam; +export declare function CertificationV2ProductCertificateParamsResponseParamFromJSON(json: any): CertificationV2ProductCertificateParamsResponseParam; +export declare function CertificationV2ProductCertificateParamsResponseParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsResponseParam; +export declare function CertificationV2ProductCertificateParamsResponseParamToJSON(value?: CertificationV2ProductCertificateParamsResponseParam | null): any; diff --git a/dist/esm/models/CertificationV2ProductCertificateParamsResponseParam.js b/dist/esm/models/CertificationV2ProductCertificateParamsResponseParam.js new file mode 100644 index 0000000..23c9bc5 --- /dev/null +++ b/dist/esm/models/CertificationV2ProductCertificateParamsResponseParam.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsResponseParam interface. + */ +export function instanceOfCertificationV2ProductCertificateParamsResponseParam(value) { + return true; +} +export function CertificationV2ProductCertificateParamsResponseParamFromJSON(json) { + return CertificationV2ProductCertificateParamsResponseParamFromJSONTyped(json, false); +} +export function CertificationV2ProductCertificateParamsResponseParamFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'required': json['required'] == null ? undefined : json['required'], + }; +} +export function CertificationV2ProductCertificateParamsResponseParamToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'required': value['required'], + }; +} diff --git a/dist/esm/models/ChatChatSendFileRequest.d.ts b/dist/esm/models/ChatChatSendFileRequest.d.ts new file mode 100644 index 0000000..4456d73 --- /dev/null +++ b/dist/esm/models/ChatChatSendFileRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatSendFileRequest + */ +export interface ChatChatSendFileRequest { + /** + * Файл в виде строки base64. + * @type {string} + * @memberof ChatChatSendFileRequest + */ + base64_content: string; + /** + * Идентификатор чата. + * @type {string} + * @memberof ChatChatSendFileRequest + */ + chat_id: string; + /** + * Название файла с расширением. + * @type {string} + * @memberof ChatChatSendFileRequest + */ + name: string; +} +/** + * Check if a given object implements the ChatChatSendFileRequest interface. + */ +export declare function instanceOfChatChatSendFileRequest(value: object): value is ChatChatSendFileRequest; +export declare function ChatChatSendFileRequestFromJSON(json: any): ChatChatSendFileRequest; +export declare function ChatChatSendFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatSendFileRequest; +export declare function ChatChatSendFileRequestToJSON(value?: ChatChatSendFileRequest | null): any; diff --git a/dist/esm/models/ChatChatSendFileRequest.js b/dist/esm/models/ChatChatSendFileRequest.js new file mode 100644 index 0000000..41c39bc --- /dev/null +++ b/dist/esm/models/ChatChatSendFileRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatChatSendFileRequest interface. + */ +export function instanceOfChatChatSendFileRequest(value) { + if (!('base64_content' in value) || value['base64_content'] === undefined) + return false; + if (!('chat_id' in value) || value['chat_id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + return true; +} +export function ChatChatSendFileRequestFromJSON(json) { + return ChatChatSendFileRequestFromJSONTyped(json, false); +} +export function ChatChatSendFileRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'base64_content': json['base64_content'], + 'chat_id': json['chat_id'], + 'name': json['name'], + }; +} +export function ChatChatSendFileRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'base64_content': value['base64_content'], + 'chat_id': value['chat_id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/ChatChatSendFileResponse.d.ts b/dist/esm/models/ChatChatSendFileResponse.d.ts new file mode 100644 index 0000000..9526ce1 --- /dev/null +++ b/dist/esm/models/ChatChatSendFileResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatSendFileResponse + */ +export interface ChatChatSendFileResponse { + /** + * Результат обработки запроса. + * @type {string} + * @memberof ChatChatSendFileResponse + */ + result?: string; +} +/** + * Check if a given object implements the ChatChatSendFileResponse interface. + */ +export declare function instanceOfChatChatSendFileResponse(value: object): value is ChatChatSendFileResponse; +export declare function ChatChatSendFileResponseFromJSON(json: any): ChatChatSendFileResponse; +export declare function ChatChatSendFileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatSendFileResponse; +export declare function ChatChatSendFileResponseToJSON(value?: ChatChatSendFileResponse | null): any; diff --git a/dist/esm/models/ChatChatSendFileResponse.js b/dist/esm/models/ChatChatSendFileResponse.js new file mode 100644 index 0000000..a220ba3 --- /dev/null +++ b/dist/esm/models/ChatChatSendFileResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatChatSendFileResponse interface. + */ +export function instanceOfChatChatSendFileResponse(value) { + return true; +} +export function ChatChatSendFileResponseFromJSON(json) { + return ChatChatSendFileResponseFromJSONTyped(json, false); +} +export function ChatChatSendFileResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function ChatChatSendFileResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/ChatChatSendMessageRequest.d.ts b/dist/esm/models/ChatChatSendMessageRequest.d.ts new file mode 100644 index 0000000..3dea88f --- /dev/null +++ b/dist/esm/models/ChatChatSendMessageRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatSendMessageRequest + */ +export interface ChatChatSendMessageRequest { + /** + * Идентификатор чата. + * @type {string} + * @memberof ChatChatSendMessageRequest + */ + chat_id: string; + /** + * Текст сообщения в формате plain text от 1 до 1000 символов. + * @type {string} + * @memberof ChatChatSendMessageRequest + */ + text: string; +} +/** + * Check if a given object implements the ChatChatSendMessageRequest interface. + */ +export declare function instanceOfChatChatSendMessageRequest(value: object): value is ChatChatSendMessageRequest; +export declare function ChatChatSendMessageRequestFromJSON(json: any): ChatChatSendMessageRequest; +export declare function ChatChatSendMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatSendMessageRequest; +export declare function ChatChatSendMessageRequestToJSON(value?: ChatChatSendMessageRequest | null): any; diff --git a/dist/esm/models/ChatChatSendMessageRequest.js b/dist/esm/models/ChatChatSendMessageRequest.js new file mode 100644 index 0000000..b7813fd --- /dev/null +++ b/dist/esm/models/ChatChatSendMessageRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatChatSendMessageRequest interface. + */ +export function instanceOfChatChatSendMessageRequest(value) { + if (!('chat_id' in value) || value['chat_id'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + return true; +} +export function ChatChatSendMessageRequestFromJSON(json) { + return ChatChatSendMessageRequestFromJSONTyped(json, false); +} +export function ChatChatSendMessageRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_id': json['chat_id'], + 'text': json['text'], + }; +} +export function ChatChatSendMessageRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_id': value['chat_id'], + 'text': value['text'], + }; +} diff --git a/dist/esm/models/ChatChatSendMessageResponse.d.ts b/dist/esm/models/ChatChatSendMessageResponse.d.ts new file mode 100644 index 0000000..7769269 --- /dev/null +++ b/dist/esm/models/ChatChatSendMessageResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatSendMessageResponse + */ +export interface ChatChatSendMessageResponse { + /** + * Результат обработки запроса. + * @type {string} + * @memberof ChatChatSendMessageResponse + */ + result?: string; +} +/** + * Check if a given object implements the ChatChatSendMessageResponse interface. + */ +export declare function instanceOfChatChatSendMessageResponse(value: object): value is ChatChatSendMessageResponse; +export declare function ChatChatSendMessageResponseFromJSON(json: any): ChatChatSendMessageResponse; +export declare function ChatChatSendMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatSendMessageResponse; +export declare function ChatChatSendMessageResponseToJSON(value?: ChatChatSendMessageResponse | null): any; diff --git a/dist/esm/models/ChatChatSendMessageResponse.js b/dist/esm/models/ChatChatSendMessageResponse.js new file mode 100644 index 0000000..6ffab5e --- /dev/null +++ b/dist/esm/models/ChatChatSendMessageResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatChatSendMessageResponse interface. + */ +export function instanceOfChatChatSendMessageResponse(value) { + return true; +} +export function ChatChatSendMessageResponseFromJSON(json) { + return ChatChatSendMessageResponseFromJSONTyped(json, false); +} +export function ChatChatSendMessageResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function ChatChatSendMessageResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/ChatChatStartRequest.d.ts b/dist/esm/models/ChatChatStartRequest.d.ts new file mode 100644 index 0000000..feac7c5 --- /dev/null +++ b/dist/esm/models/ChatChatStartRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatStartRequest + */ +export interface ChatChatStartRequest { + /** + * Идентификатор отправления. + * @type {string} + * @memberof ChatChatStartRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the ChatChatStartRequest interface. + */ +export declare function instanceOfChatChatStartRequest(value: object): value is ChatChatStartRequest; +export declare function ChatChatStartRequestFromJSON(json: any): ChatChatStartRequest; +export declare function ChatChatStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatStartRequest; +export declare function ChatChatStartRequestToJSON(value?: ChatChatStartRequest | null): any; diff --git a/dist/esm/models/ChatChatStartRequest.js b/dist/esm/models/ChatChatStartRequest.js new file mode 100644 index 0000000..04bc5bd --- /dev/null +++ b/dist/esm/models/ChatChatStartRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatChatStartRequest interface. + */ +export function instanceOfChatChatStartRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function ChatChatStartRequestFromJSON(json) { + return ChatChatStartRequestFromJSONTyped(json, false); +} +export function ChatChatStartRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function ChatChatStartRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/ChatChatStartResponse.d.ts b/dist/esm/models/ChatChatStartResponse.d.ts new file mode 100644 index 0000000..501e3ad --- /dev/null +++ b/dist/esm/models/ChatChatStartResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChatStartResponseResult } from './ChatStartResponseResult'; +/** + * + * @export + * @interface ChatChatStartResponse + */ +export interface ChatChatStartResponse { + /** + * + * @type {ChatStartResponseResult} + * @memberof ChatChatStartResponse + */ + result?: ChatStartResponseResult; +} +/** + * Check if a given object implements the ChatChatStartResponse interface. + */ +export declare function instanceOfChatChatStartResponse(value: object): value is ChatChatStartResponse; +export declare function ChatChatStartResponseFromJSON(json: any): ChatChatStartResponse; +export declare function ChatChatStartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatStartResponse; +export declare function ChatChatStartResponseToJSON(value?: ChatChatStartResponse | null): any; diff --git a/dist/esm/models/ChatChatStartResponse.js b/dist/esm/models/ChatChatStartResponse.js new file mode 100644 index 0000000..6e161a3 --- /dev/null +++ b/dist/esm/models/ChatChatStartResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ChatStartResponseResultFromJSON, ChatStartResponseResultToJSON, } from './ChatStartResponseResult'; +/** + * Check if a given object implements the ChatChatStartResponse interface. + */ +export function instanceOfChatChatStartResponse(value) { + return true; +} +export function ChatChatStartResponseFromJSON(json) { + return ChatChatStartResponseFromJSONTyped(json, false); +} +export function ChatChatStartResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : ChatStartResponseResultFromJSON(json['result']), + }; +} +export function ChatChatStartResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': ChatStartResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/ChatHistoryRequestFilter.d.ts b/dist/esm/models/ChatHistoryRequestFilter.d.ts new file mode 100644 index 0000000..45959f5 --- /dev/null +++ b/dist/esm/models/ChatHistoryRequestFilter.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по сообщениям. + * @export + * @interface ChatHistoryRequestFilter + */ +export interface ChatHistoryRequestFilter { + /** + * Идентификаторы сообщений. + * @type {Array} + * @memberof ChatHistoryRequestFilter + */ + message_ids?: Array; +} +/** + * Check if a given object implements the ChatHistoryRequestFilter interface. + */ +export declare function instanceOfChatHistoryRequestFilter(value: object): value is ChatHistoryRequestFilter; +export declare function ChatHistoryRequestFilterFromJSON(json: any): ChatHistoryRequestFilter; +export declare function ChatHistoryRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatHistoryRequestFilter; +export declare function ChatHistoryRequestFilterToJSON(value?: ChatHistoryRequestFilter | null): any; diff --git a/dist/esm/models/ChatHistoryRequestFilter.js b/dist/esm/models/ChatHistoryRequestFilter.js new file mode 100644 index 0000000..40e50e0 --- /dev/null +++ b/dist/esm/models/ChatHistoryRequestFilter.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatHistoryRequestFilter interface. + */ +export function instanceOfChatHistoryRequestFilter(value) { + return true; +} +export function ChatHistoryRequestFilterFromJSON(json) { + return ChatHistoryRequestFilterFromJSONTyped(json, false); +} +export function ChatHistoryRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message_ids': json['message_ids'] == null ? undefined : json['message_ids'], + }; +} +export function ChatHistoryRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'message_ids': value['message_ids'], + }; +} diff --git a/dist/esm/models/ChatInfoChatStatusEnum.d.ts b/dist/esm/models/ChatInfoChatStatusEnum.d.ts new file mode 100644 index 0000000..96fa0ff --- /dev/null +++ b/dist/esm/models/ChatInfoChatStatusEnum.d.ts @@ -0,0 +1,30 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус чата: + * - `All` — все чаты; + * - `OPENED` — открытые чаты; + * - `CLOSED` — закрытые чаты; + * - `UNSPECIFIED` — не определено. + * + * @export + */ +export declare const ChatInfoChatStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OPENED: "OPENED"; + readonly CLOSED: "CLOSED"; +}; +export type ChatInfoChatStatusEnum = typeof ChatInfoChatStatusEnum[keyof typeof ChatInfoChatStatusEnum]; +export declare function instanceOfChatInfoChatStatusEnum(value: any): boolean; +export declare function ChatInfoChatStatusEnumFromJSON(json: any): ChatInfoChatStatusEnum; +export declare function ChatInfoChatStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatInfoChatStatusEnum; +export declare function ChatInfoChatStatusEnumToJSON(value?: ChatInfoChatStatusEnum | null): any; diff --git a/dist/esm/models/ChatInfoChatStatusEnum.js b/dist/esm/models/ChatInfoChatStatusEnum.js new file mode 100644 index 0000000..2ede1f1 --- /dev/null +++ b/dist/esm/models/ChatInfoChatStatusEnum.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус чата: + * - `All` — все чаты; + * - `OPENED` — открытые чаты; + * - `CLOSED` — закрытые чаты; + * - `UNSPECIFIED` — не определено. + * + * @export + */ +export const ChatInfoChatStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OPENED: 'OPENED', + CLOSED: 'CLOSED' +}; +export function instanceOfChatInfoChatStatusEnum(value) { + for (const key in ChatInfoChatStatusEnum) { + if (Object.prototype.hasOwnProperty.call(ChatInfoChatStatusEnum, key)) { + if (ChatInfoChatStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ChatInfoChatStatusEnumFromJSON(json) { + return ChatInfoChatStatusEnumFromJSONTyped(json, false); +} +export function ChatInfoChatStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ChatInfoChatStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ChatInfoChatTypeEnum.d.ts b/dist/esm/models/ChatInfoChatTypeEnum.d.ts new file mode 100644 index 0000000..ad74609 --- /dev/null +++ b/dist/esm/models/ChatInfoChatTypeEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чата: + * - `UNSPECIFIED` — не определено; + * - `SELLER_SUPPORT` — чат с поддержкой; + * - `BUYER_SELLER` — чат с покупателем; + * - `BUYER_SELLER_SELECT` — чат с покупателем по заказам Ozon Селект; + * - `SELLER_API_UPDATES` — чат с обновлениями Seller API; + * - `SELLER_API_NOTIFICATIONS` — чат с уведомлениями Seller API; + * - `SELLER_NOTIFICATION_LOGISTICS` — чат с уведомлениями Ozon Доставки; + * - `SELLER_NOTIFICATION_UPDATE_CONTENT` — чат с уведомлениями об изменениях в атрибутно-категорийной модели; + * - `SELLER_PERSONAL_MANAGER_UNITY_CRM` — чат с персональным менеджером Ozon; + * - `SELLER_BUSINESS_DEVELOPMENT_GROUP` — чат с группой бизнес-развития Ozon. + * + * @export + */ +export declare const ChatInfoChatTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SELLER_SUPPORT: "SELLER_SUPPORT"; + readonly BUYER_SELLER: "BUYER_SELLER"; + readonly BUYER_SELLER_SELECT: "BUYER_SELLER_SELECT"; + readonly SELLER_API_UPDATES: "SELLER_API_UPDATES"; + readonly SELLER_API_NOTIFICATIONS: "SELLER_API_NOTIFICATIONS"; + readonly SELLER_NOTIFICATION_LOGISTICS: "SELLER_NOTIFICATION_LOGISTICS"; + readonly SELLER_NOTIFICATION_UPDATE_CONTENT: "SELLER_NOTIFICATION_UPDATE_CONTENT"; + readonly SELLER_PERSONAL_MANAGER_UNITY_CRM: "SELLER_PERSONAL_MANAGER_UNITY_CRM"; + readonly SELLER_BUSINESS_DEVELOPMENT_GROUP: "SELLER_BUSINESS_DEVELOPMENT_GROUP"; +}; +export type ChatInfoChatTypeEnum = typeof ChatInfoChatTypeEnum[keyof typeof ChatInfoChatTypeEnum]; +export declare function instanceOfChatInfoChatTypeEnum(value: any): boolean; +export declare function ChatInfoChatTypeEnumFromJSON(json: any): ChatInfoChatTypeEnum; +export declare function ChatInfoChatTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatInfoChatTypeEnum; +export declare function ChatInfoChatTypeEnumToJSON(value?: ChatInfoChatTypeEnum | null): any; diff --git a/dist/esm/models/ChatInfoChatTypeEnum.js b/dist/esm/models/ChatInfoChatTypeEnum.js new file mode 100644 index 0000000..5e475bc --- /dev/null +++ b/dist/esm/models/ChatInfoChatTypeEnum.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чата: + * - `UNSPECIFIED` — не определено; + * - `SELLER_SUPPORT` — чат с поддержкой; + * - `BUYER_SELLER` — чат с покупателем; + * - `BUYER_SELLER_SELECT` — чат с покупателем по заказам Ozon Селект; + * - `SELLER_API_UPDATES` — чат с обновлениями Seller API; + * - `SELLER_API_NOTIFICATIONS` — чат с уведомлениями Seller API; + * - `SELLER_NOTIFICATION_LOGISTICS` — чат с уведомлениями Ozon Доставки; + * - `SELLER_NOTIFICATION_UPDATE_CONTENT` — чат с уведомлениями об изменениях в атрибутно-категорийной модели; + * - `SELLER_PERSONAL_MANAGER_UNITY_CRM` — чат с персональным менеджером Ozon; + * - `SELLER_BUSINESS_DEVELOPMENT_GROUP` — чат с группой бизнес-развития Ozon. + * + * @export + */ +export const ChatInfoChatTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SELLER_SUPPORT: 'SELLER_SUPPORT', + BUYER_SELLER: 'BUYER_SELLER', + BUYER_SELLER_SELECT: 'BUYER_SELLER_SELECT', + SELLER_API_UPDATES: 'SELLER_API_UPDATES', + SELLER_API_NOTIFICATIONS: 'SELLER_API_NOTIFICATIONS', + SELLER_NOTIFICATION_LOGISTICS: 'SELLER_NOTIFICATION_LOGISTICS', + SELLER_NOTIFICATION_UPDATE_CONTENT: 'SELLER_NOTIFICATION_UPDATE_CONTENT', + SELLER_PERSONAL_MANAGER_UNITY_CRM: 'SELLER_PERSONAL_MANAGER_UNITY_CRM', + SELLER_BUSINESS_DEVELOPMENT_GROUP: 'SELLER_BUSINESS_DEVELOPMENT_GROUP' +}; +export function instanceOfChatInfoChatTypeEnum(value) { + for (const key in ChatInfoChatTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ChatInfoChatTypeEnum, key)) { + if (ChatInfoChatTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ChatInfoChatTypeEnumFromJSON(json) { + return ChatInfoChatTypeEnumFromJSONTyped(json, false); +} +export function ChatInfoChatTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ChatInfoChatTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ChatMessageContext.d.ts b/dist/esm/models/ChatMessageContext.d.ts new file mode 100644 index 0000000..af83b61 --- /dev/null +++ b/dist/esm/models/ChatMessageContext.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о чате. + * @export + * @interface ChatMessageContext + */ +export interface ChatMessageContext { + /** + * Номер заказа. + * @type {string} + * @memberof ChatMessageContext + */ + order_number?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {string} + * @memberof ChatMessageContext + */ + sku?: string; +} +/** + * Check if a given object implements the ChatMessageContext interface. + */ +export declare function instanceOfChatMessageContext(value: object): value is ChatMessageContext; +export declare function ChatMessageContextFromJSON(json: any): ChatMessageContext; +export declare function ChatMessageContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageContext; +export declare function ChatMessageContextToJSON(value?: ChatMessageContext | null): any; diff --git a/dist/esm/models/ChatMessageContext.js b/dist/esm/models/ChatMessageContext.js new file mode 100644 index 0000000..33ca5b5 --- /dev/null +++ b/dist/esm/models/ChatMessageContext.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatMessageContext interface. + */ +export function instanceOfChatMessageContext(value) { + return true; +} +export function ChatMessageContextFromJSON(json) { + return ChatMessageContextFromJSONTyped(json, false); +} +export function ChatMessageContextFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function ChatMessageContextToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ChatMessageModerateImageStatus.d.ts b/dist/esm/models/ChatMessageModerateImageStatus.d.ts new file mode 100644 index 0000000..7995974 --- /dev/null +++ b/dist/esm/models/ChatMessageModerateImageStatus.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус модерации изображения: + * - `SUCCESS` — прошло модерацию; + * - `MODERATION` — на модерации; + * - `FAILED` — не прошло модерацию. + * + * @export + */ +export declare const ChatMessageModerateImageStatus: { + readonly SUCCESS: "SUCCESS"; + readonly MODERATION: "MODERATION"; + readonly FAILED: "FAILED"; +}; +export type ChatMessageModerateImageStatus = typeof ChatMessageModerateImageStatus[keyof typeof ChatMessageModerateImageStatus]; +export declare function instanceOfChatMessageModerateImageStatus(value: any): boolean; +export declare function ChatMessageModerateImageStatusFromJSON(json: any): ChatMessageModerateImageStatus; +export declare function ChatMessageModerateImageStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageModerateImageStatus; +export declare function ChatMessageModerateImageStatusToJSON(value?: ChatMessageModerateImageStatus | null): any; diff --git a/dist/esm/models/ChatMessageModerateImageStatus.js b/dist/esm/models/ChatMessageModerateImageStatus.js new file mode 100644 index 0000000..2734b5a --- /dev/null +++ b/dist/esm/models/ChatMessageModerateImageStatus.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус модерации изображения: + * - `SUCCESS` — прошло модерацию; + * - `MODERATION` — на модерации; + * - `FAILED` — не прошло модерацию. + * + * @export + */ +export const ChatMessageModerateImageStatus = { + SUCCESS: 'SUCCESS', + MODERATION: 'MODERATION', + FAILED: 'FAILED' +}; +export function instanceOfChatMessageModerateImageStatus(value) { + for (const key in ChatMessageModerateImageStatus) { + if (Object.prototype.hasOwnProperty.call(ChatMessageModerateImageStatus, key)) { + if (ChatMessageModerateImageStatus[key] === value) { + return true; + } + } + } + return false; +} +export function ChatMessageModerateImageStatusFromJSON(json) { + return ChatMessageModerateImageStatusFromJSONTyped(json, false); +} +export function ChatMessageModerateImageStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ChatMessageModerateImageStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/ChatRead.d.ts b/dist/esm/models/ChatRead.d.ts new file mode 100644 index 0000000..82c686f --- /dev/null +++ b/dist/esm/models/ChatRead.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatRead + */ +export interface ChatRead { + /** + * Идентификатор чата. + * @type {string} + * @memberof ChatRead + */ + chat_id: string; + /** + * Идентификатор сообщения. + * @type {number} + * @memberof ChatRead + */ + from_message_id?: number; +} +/** + * Check if a given object implements the ChatRead interface. + */ +export declare function instanceOfChatRead(value: object): value is ChatRead; +export declare function ChatReadFromJSON(json: any): ChatRead; +export declare function ChatReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatRead; +export declare function ChatReadToJSON(value?: ChatRead | null): any; diff --git a/dist/esm/models/ChatRead.js b/dist/esm/models/ChatRead.js new file mode 100644 index 0000000..9487c9d --- /dev/null +++ b/dist/esm/models/ChatRead.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatRead interface. + */ +export function instanceOfChatRead(value) { + if (!('chat_id' in value) || value['chat_id'] === undefined) + return false; + return true; +} +export function ChatReadFromJSON(json) { + return ChatReadFromJSONTyped(json, false); +} +export function ChatReadFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_id': json['chat_id'], + 'from_message_id': json['from_message_id'] == null ? undefined : json['from_message_id'], + }; +} +export function ChatReadToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_id': value['chat_id'], + 'from_message_id': value['from_message_id'], + }; +} diff --git a/dist/esm/models/ChatStartResponseResult.d.ts b/dist/esm/models/ChatStartResponseResult.d.ts new file mode 100644 index 0000000..92dd500 --- /dev/null +++ b/dist/esm/models/ChatStartResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface ChatStartResponseResult + */ +export interface ChatStartResponseResult { + /** + * Идентификатор чата. + * @type {string} + * @memberof ChatStartResponseResult + */ + chat_id?: string; +} +/** + * Check if a given object implements the ChatStartResponseResult interface. + */ +export declare function instanceOfChatStartResponseResult(value: object): value is ChatStartResponseResult; +export declare function ChatStartResponseResultFromJSON(json: any): ChatStartResponseResult; +export declare function ChatStartResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatStartResponseResult; +export declare function ChatStartResponseResultToJSON(value?: ChatStartResponseResult | null): any; diff --git a/dist/esm/models/ChatStartResponseResult.js b/dist/esm/models/ChatStartResponseResult.js new file mode 100644 index 0000000..9c9e566 --- /dev/null +++ b/dist/esm/models/ChatStartResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ChatStartResponseResult interface. + */ +export function instanceOfChatStartResponseResult(value) { + return true; +} +export function ChatStartResponseResultFromJSON(json) { + return ChatStartResponseResultFromJSONTyped(json, false); +} +export function ChatStartResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_id': json['chat_id'] == null ? undefined : json['chat_id'], + }; +} +export function ChatStartResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_id': value['chat_id'], + }; +} diff --git a/dist/esm/models/ClientTimeslotDateRange.d.ts b/dist/esm/models/ClientTimeslotDateRange.d.ts new file mode 100644 index 0000000..915442a --- /dev/null +++ b/dist/esm/models/ClientTimeslotDateRange.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал времени, когда покупатель может получить заказ. + * @export + * @interface ClientTimeslotDateRange + */ +export interface ClientTimeslotDateRange { + /** + * Дата и время начала интервала. + * @type {string} + * @memberof ClientTimeslotDateRange + */ + from?: string; + /** + * Дата и время конца интервала. + * @type {string} + * @memberof ClientTimeslotDateRange + */ + to?: string; +} +/** + * Check if a given object implements the ClientTimeslotDateRange interface. + */ +export declare function instanceOfClientTimeslotDateRange(value: object): value is ClientTimeslotDateRange; +export declare function ClientTimeslotDateRangeFromJSON(json: any): ClientTimeslotDateRange; +export declare function ClientTimeslotDateRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientTimeslotDateRange; +export declare function ClientTimeslotDateRangeToJSON(value?: ClientTimeslotDateRange | null): any; diff --git a/dist/esm/models/ClientTimeslotDateRange.js b/dist/esm/models/ClientTimeslotDateRange.js new file mode 100644 index 0000000..9573ffe --- /dev/null +++ b/dist/esm/models/ClientTimeslotDateRange.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ClientTimeslotDateRange interface. + */ +export function instanceOfClientTimeslotDateRange(value) { + return true; +} +export function ClientTimeslotDateRangeFromJSON(json) { + return ClientTimeslotDateRangeFromJSONTyped(json, false); +} +export function ClientTimeslotDateRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function ClientTimeslotDateRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/ClusterWarehouse.d.ts b/dist/esm/models/ClusterWarehouse.d.ts new file mode 100644 index 0000000..7dcf512 --- /dev/null +++ b/dist/esm/models/ClusterWarehouse.d.ts @@ -0,0 +1,81 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseAvailabilityStatus } from './WarehouseAvailabilityStatus'; +import type { WarehouseStorageWarehouse } from './WarehouseStorageWarehouse'; +import type { WarehouseSupplyTagEnum } from './WarehouseSupplyTagEnum'; +/** + * + * @export + * @interface ClusterWarehouse + */ +export interface ClusterWarehouse { + /** + * + * @type {WarehouseAvailabilityStatus} + * @memberof ClusterWarehouse + */ + availability_status?: WarehouseAvailabilityStatus; + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof ClusterWarehouse + */ + bundle_id?: string; + /** + * Комплект товаров, которые не попадают в поставку. Используйте значение параметра в методе [/v1/supply-order/bundle](#operation/SupplyOrderBundle), чтобы получить подробную информацию. + * @type {string} + * @memberof ClusterWarehouse + */ + restricted_bundle_id?: string; + /** + * + * @type {WarehouseStorageWarehouse} + * @memberof ClusterWarehouse + */ + storage_warehouse?: WarehouseStorageWarehouse; + /** + * Метки товаров в заявке на поставку: + * - `UNSPECIFIED` — не определена; + * - `TRACEABLE` — товар с признаком прослеживаемости; + * - `ETTN_REQUIRED` — товар, для которого необходима электронная ТТН; + * - `EVSD_REQUIRED` — товар с сертификацией «Меркурий»; + * - `MARKING_REQUIRED` — товар с обязательной маркировкой «Честный ЗНАК»; + * - `MARKING_POSSIBLE` — товар с возможной маркировкой «Честный ЗНАК»; + * - `JEWELRY` — товар с признаком ювелирного изделия; + * - `FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE` — заморозка стока для поставок, в которых есть маркируемые товары и не был передан УПД; + * - `UTD_REQUIRED` — товар с обязательным УПД; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof ClusterWarehouse + */ + supply_tags?: Array; + /** + * Ранг склада в кластере. Только для поставок с типом `DIRECT`. + * @type {number} + * @memberof ClusterWarehouse + */ + total_rank?: number; + /** + * Рейтинг склада. + * @type {number} + * @memberof ClusterWarehouse + */ + total_score?: number; +} +/** + * Check if a given object implements the ClusterWarehouse interface. + */ +export declare function instanceOfClusterWarehouse(value: object): value is ClusterWarehouse; +export declare function ClusterWarehouseFromJSON(json: any): ClusterWarehouse; +export declare function ClusterWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterWarehouse; +export declare function ClusterWarehouseToJSON(value?: ClusterWarehouse | null): any; diff --git a/dist/esm/models/ClusterWarehouse.js b/dist/esm/models/ClusterWarehouse.js new file mode 100644 index 0000000..cbfa20b --- /dev/null +++ b/dist/esm/models/ClusterWarehouse.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseAvailabilityStatusFromJSON, WarehouseAvailabilityStatusToJSON, } from './WarehouseAvailabilityStatus'; +import { WarehouseStorageWarehouseFromJSON, WarehouseStorageWarehouseToJSON, } from './WarehouseStorageWarehouse'; +import { WarehouseSupplyTagEnumFromJSON, WarehouseSupplyTagEnumToJSON, } from './WarehouseSupplyTagEnum'; +/** + * Check if a given object implements the ClusterWarehouse interface. + */ +export function instanceOfClusterWarehouse(value) { + return true; +} +export function ClusterWarehouseFromJSON(json) { + return ClusterWarehouseFromJSONTyped(json, false); +} +export function ClusterWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'availability_status': json['availability_status'] == null ? undefined : WarehouseAvailabilityStatusFromJSON(json['availability_status']), + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'restricted_bundle_id': json['restricted_bundle_id'] == null ? undefined : json['restricted_bundle_id'], + 'storage_warehouse': json['storage_warehouse'] == null ? undefined : WarehouseStorageWarehouseFromJSON(json['storage_warehouse']), + 'supply_tags': json['supply_tags'] == null ? undefined : (json['supply_tags'].map(WarehouseSupplyTagEnumFromJSON)), + 'total_rank': json['total_rank'] == null ? undefined : json['total_rank'], + 'total_score': json['total_score'] == null ? undefined : json['total_score'], + }; +} +export function ClusterWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'availability_status': WarehouseAvailabilityStatusToJSON(value['availability_status']), + 'bundle_id': value['bundle_id'], + 'restricted_bundle_id': value['restricted_bundle_id'], + 'storage_warehouse': WarehouseStorageWarehouseToJSON(value['storage_warehouse']), + 'supply_tags': value['supply_tags'] == null ? undefined : (value['supply_tags'].map(WarehouseSupplyTagEnumToJSON)), + 'total_rank': value['total_rank'], + 'total_score': value['total_score'], + }; +} diff --git a/dist/esm/models/CommentListResponseComment.d.ts b/dist/esm/models/CommentListResponseComment.d.ts new file mode 100644 index 0000000..0ea1394 --- /dev/null +++ b/dist/esm/models/CommentListResponseComment.d.ts @@ -0,0 +1,95 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CommentListResponseComment + */ +export interface CommentListResponseComment { + /** + * Причина отклонения на модерации. + * @type {string} + * @memberof CommentListResponseComment + */ + deviation_reason?: string; + /** + * Количество дизлайков. + * @type {number} + * @memberof CommentListResponseComment + */ + dislikes_amount?: number; + /** + * Идентификатор комментария. + * @type {string} + * @memberof CommentListResponseComment + */ + id?: string; + /** + * `true`, если комментарий оставило официальное лицо, `false` — покупатель. + * + * @type {boolean} + * @memberof CommentListResponseComment + */ + is_official?: boolean; + /** + * `true`, если комментарий оставил продавец, `false` — покупатель. + * + * @type {boolean} + * @memberof CommentListResponseComment + */ + is_owner?: boolean; + /** + * `true`, если комментарий опубликован. + * + * @type {boolean} + * @memberof CommentListResponseComment + */ + is_published?: boolean; + /** + * `true`, если комментарий отклонён. + * + * @type {boolean} + * @memberof CommentListResponseComment + */ + is_rejected?: boolean; + /** + * Количество лайков. + * @type {number} + * @memberof CommentListResponseComment + */ + likes_amount?: number; + /** + * Идентификатор родительского комментария, на который нужно ответить. + * @type {string} + * @memberof CommentListResponseComment + */ + parent_comment_id?: string; + /** + * Дата публикации комментария. + * @type {string} + * @memberof CommentListResponseComment + */ + published_at?: string; + /** + * Текст комментария. + * @type {string} + * @memberof CommentListResponseComment + */ + text?: string; +} +/** + * Check if a given object implements the CommentListResponseComment interface. + */ +export declare function instanceOfCommentListResponseComment(value: object): value is CommentListResponseComment; +export declare function CommentListResponseCommentFromJSON(json: any): CommentListResponseComment; +export declare function CommentListResponseCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentListResponseComment; +export declare function CommentListResponseCommentToJSON(value?: CommentListResponseComment | null): any; diff --git a/dist/esm/models/CommentListResponseComment.js b/dist/esm/models/CommentListResponseComment.js new file mode 100644 index 0000000..2043c1a --- /dev/null +++ b/dist/esm/models/CommentListResponseComment.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CommentListResponseComment interface. + */ +export function instanceOfCommentListResponseComment(value) { + return true; +} +export function CommentListResponseCommentFromJSON(json) { + return CommentListResponseCommentFromJSONTyped(json, false); +} +export function CommentListResponseCommentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'deviation_reason': json['deviation_reason'] == null ? undefined : json['deviation_reason'], + 'dislikes_amount': json['dislikes_amount'] == null ? undefined : json['dislikes_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_official': json['is_official'] == null ? undefined : json['is_official'], + 'is_owner': json['is_owner'] == null ? undefined : json['is_owner'], + 'is_published': json['is_published'] == null ? undefined : json['is_published'], + 'is_rejected': json['is_rejected'] == null ? undefined : json['is_rejected'], + 'likes_amount': json['likes_amount'] == null ? undefined : json['likes_amount'], + 'parent_comment_id': json['parent_comment_id'] == null ? undefined : json['parent_comment_id'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'text': json['text'] == null ? undefined : json['text'], + }; +} +export function CommentListResponseCommentToJSON(value) { + if (value == null) { + return value; + } + return { + 'deviation_reason': value['deviation_reason'], + 'dislikes_amount': value['dislikes_amount'], + 'id': value['id'], + 'is_official': value['is_official'], + 'is_owner': value['is_owner'], + 'is_published': value['is_published'], + 'is_rejected': value['is_rejected'], + 'likes_amount': value['likes_amount'], + 'parent_comment_id': value['parent_comment_id'], + 'published_at': value['published_at'], + 'text': value['text'], + }; +} diff --git a/dist/esm/models/CommonCreateReportResponse.d.ts b/dist/esm/models/CommonCreateReportResponse.d.ts new file mode 100644 index 0000000..f13d30a --- /dev/null +++ b/dist/esm/models/CommonCreateReportResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateReportResponseCode } from './CreateReportResponseCode'; +/** + * + * @export + * @interface CommonCreateReportResponse + */ +export interface CommonCreateReportResponse { + /** + * + * @type {CreateReportResponseCode} + * @memberof CommonCreateReportResponse + */ + result?: CreateReportResponseCode; +} +/** + * Check if a given object implements the CommonCreateReportResponse interface. + */ +export declare function instanceOfCommonCreateReportResponse(value: object): value is CommonCreateReportResponse; +export declare function CommonCreateReportResponseFromJSON(json: any): CommonCreateReportResponse; +export declare function CommonCreateReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonCreateReportResponse; +export declare function CommonCreateReportResponseToJSON(value?: CommonCreateReportResponse | null): any; diff --git a/dist/esm/models/CommonCreateReportResponse.js b/dist/esm/models/CommonCreateReportResponse.js new file mode 100644 index 0000000..1ae7358 --- /dev/null +++ b/dist/esm/models/CommonCreateReportResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateReportResponseCodeFromJSON, CreateReportResponseCodeToJSON, } from './CreateReportResponseCode'; +/** + * Check if a given object implements the CommonCreateReportResponse interface. + */ +export function instanceOfCommonCreateReportResponse(value) { + return true; +} +export function CommonCreateReportResponseFromJSON(json) { + return CommonCreateReportResponseFromJSONTyped(json, false); +} +export function CommonCreateReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : CreateReportResponseCodeFromJSON(json['result']), + }; +} +export function CommonCreateReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': CreateReportResponseCodeToJSON(value['result']), + }; +} diff --git a/dist/esm/models/CompanyTaxSystemEnum.d.ts b/dist/esm/models/CompanyTaxSystemEnum.d.ts new file mode 100644 index 0000000..41dedbf --- /dev/null +++ b/dist/esm/models/CompanyTaxSystemEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Система налогообложения: + * - `UNKNOWN` — неизвестная, + * - `UNSPECIFIED` — не определена, + * - `OSNO` — ОСНО, + * - `USN` — УСН, + * - `NPD` — НПД, + * - `AUSN` — АУСН, + * - `PSN` — ПСН. + * + * @export + */ +export declare const CompanyTaxSystemEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OSNO: "OSNO"; + readonly USN: "USN"; + readonly NPD: "NPD"; + readonly AUSN: "AUSN"; + readonly PSN: "PSN"; +}; +export type CompanyTaxSystemEnum = typeof CompanyTaxSystemEnum[keyof typeof CompanyTaxSystemEnum]; +export declare function instanceOfCompanyTaxSystemEnum(value: any): boolean; +export declare function CompanyTaxSystemEnumFromJSON(json: any): CompanyTaxSystemEnum; +export declare function CompanyTaxSystemEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompanyTaxSystemEnum; +export declare function CompanyTaxSystemEnumToJSON(value?: CompanyTaxSystemEnum | null): any; diff --git a/dist/esm/models/CompanyTaxSystemEnum.js b/dist/esm/models/CompanyTaxSystemEnum.js new file mode 100644 index 0000000..4c8f2bc --- /dev/null +++ b/dist/esm/models/CompanyTaxSystemEnum.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Система налогообложения: + * - `UNKNOWN` — неизвестная, + * - `UNSPECIFIED` — не определена, + * - `OSNO` — ОСНО, + * - `USN` — УСН, + * - `NPD` — НПД, + * - `AUSN` — АУСН, + * - `PSN` — ПСН. + * + * @export + */ +export const CompanyTaxSystemEnum = { + UNKNOWN: 'UNKNOWN', + UNSPECIFIED: 'UNSPECIFIED', + OSNO: 'OSNO', + USN: 'USN', + NPD: 'NPD', + AUSN: 'AUSN', + PSN: 'PSN' +}; +export function instanceOfCompanyTaxSystemEnum(value) { + for (const key in CompanyTaxSystemEnum) { + if (Object.prototype.hasOwnProperty.call(CompanyTaxSystemEnum, key)) { + if (CompanyTaxSystemEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CompanyTaxSystemEnumFromJSON(json) { + return CompanyTaxSystemEnumFromJSONTyped(json, false); +} +export function CompanyTaxSystemEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CompanyTaxSystemEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ContentCanNotEditSupplyContentReasonEnum.d.ts b/dist/esm/models/ContentCanNotEditSupplyContentReasonEnum.d.ts new file mode 100644 index 0000000..7dbea96 --- /dev/null +++ b/dist/esm/models/ContentCanNotEditSupplyContentReasonEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ContentCanNotEditSupplyContentReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INCORRECT_SUPPLY_STATE: "INCORRECT_SUPPLY_STATE"; + readonly DEADLINE: "DEADLINE"; + readonly UTD_IS_UPLOADED: "UTD_IS_UPLOADED"; + readonly STORAGE_WAREHOUSE_IS_NOT_WMS: "STORAGE_WAREHOUSE_IS_NOT_WMS"; + readonly CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: "CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type ContentCanNotEditSupplyContentReasonEnum = typeof ContentCanNotEditSupplyContentReasonEnum[keyof typeof ContentCanNotEditSupplyContentReasonEnum]; +export declare function instanceOfContentCanNotEditSupplyContentReasonEnum(value: any): boolean; +export declare function ContentCanNotEditSupplyContentReasonEnumFromJSON(json: any): ContentCanNotEditSupplyContentReasonEnum; +export declare function ContentCanNotEditSupplyContentReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentCanNotEditSupplyContentReasonEnum; +export declare function ContentCanNotEditSupplyContentReasonEnumToJSON(value?: ContentCanNotEditSupplyContentReasonEnum | null): any; diff --git a/dist/esm/models/ContentCanNotEditSupplyContentReasonEnum.js b/dist/esm/models/ContentCanNotEditSupplyContentReasonEnum.js new file mode 100644 index 0000000..013b364 --- /dev/null +++ b/dist/esm/models/ContentCanNotEditSupplyContentReasonEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const ContentCanNotEditSupplyContentReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INCORRECT_SUPPLY_STATE: 'INCORRECT_SUPPLY_STATE', + DEADLINE: 'DEADLINE', + UTD_IS_UPLOADED: 'UTD_IS_UPLOADED', + STORAGE_WAREHOUSE_IS_NOT_WMS: 'STORAGE_WAREHOUSE_IS_NOT_WMS', + CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: 'CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfContentCanNotEditSupplyContentReasonEnum(value) { + for (const key in ContentCanNotEditSupplyContentReasonEnum) { + if (Object.prototype.hasOwnProperty.call(ContentCanNotEditSupplyContentReasonEnum, key)) { + if (ContentCanNotEditSupplyContentReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ContentCanNotEditSupplyContentReasonEnumFromJSON(json) { + return ContentCanNotEditSupplyContentReasonEnumFromJSONTyped(json, false); +} +export function ContentCanNotEditSupplyContentReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ContentCanNotEditSupplyContentReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CourierCoordinates.d.ts b/dist/esm/models/CourierCoordinates.d.ts new file mode 100644 index 0000000..2a82a10 --- /dev/null +++ b/dist/esm/models/CourierCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты точки выдачи. + * @export + * @interface CourierCoordinates + */ +export interface CourierCoordinates { + /** + * Широта. + * @type {number} + * @memberof CourierCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof CourierCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the CourierCoordinates interface. + */ +export declare function instanceOfCourierCoordinates(value: object): value is CourierCoordinates; +export declare function CourierCoordinatesFromJSON(json: any): CourierCoordinates; +export declare function CourierCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourierCoordinates; +export declare function CourierCoordinatesToJSON(value?: CourierCoordinates | null): any; diff --git a/dist/esm/models/CourierCoordinates.js b/dist/esm/models/CourierCoordinates.js new file mode 100644 index 0000000..d3114dc --- /dev/null +++ b/dist/esm/models/CourierCoordinates.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CourierCoordinates interface. + */ +export function instanceOfCourierCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +export function CourierCoordinatesFromJSON(json) { + return CourierCoordinatesFromJSONTyped(json, false); +} +export function CourierCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +export function CourierCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/CreateCompanyPostingsReportRequestWith.d.ts b/dist/esm/models/CreateCompanyPostingsReportRequestWith.d.ts new file mode 100644 index 0000000..c6a567a --- /dev/null +++ b/dist/esm/models/CreateCompanyPostingsReportRequestWith.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface CreateCompanyPostingsReportRequestWith + */ +export interface CreateCompanyPostingsReportRequestWith { + /** + * `true`, чтобы добавить в ответ дополнительную информацию. + * + * @type {boolean} + * @memberof CreateCompanyPostingsReportRequestWith + */ + additional_data?: boolean; + /** + * `true`, чтобы добавить в ответ аналитику. Передайте значение `filter.delivery_schema = fbs`, иначе вернётся ошибка. + * + * @type {boolean} + * @memberof CreateCompanyPostingsReportRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ информацию о покупателе. + * + * @type {boolean} + * @memberof CreateCompanyPostingsReportRequestWith + */ + customer_data?: boolean; + /** + * `true`, чтобы добавить в ответ информацию о ювелирных изделиях. + * + * @type {boolean} + * @memberof CreateCompanyPostingsReportRequestWith + */ + jewelry_codes?: boolean; +} +/** + * Check if a given object implements the CreateCompanyPostingsReportRequestWith interface. + */ +export declare function instanceOfCreateCompanyPostingsReportRequestWith(value: object): value is CreateCompanyPostingsReportRequestWith; +export declare function CreateCompanyPostingsReportRequestWithFromJSON(json: any): CreateCompanyPostingsReportRequestWith; +export declare function CreateCompanyPostingsReportRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCompanyPostingsReportRequestWith; +export declare function CreateCompanyPostingsReportRequestWithToJSON(value?: CreateCompanyPostingsReportRequestWith | null): any; diff --git a/dist/esm/models/CreateCompanyPostingsReportRequestWith.js b/dist/esm/models/CreateCompanyPostingsReportRequestWith.js new file mode 100644 index 0000000..e184acb --- /dev/null +++ b/dist/esm/models/CreateCompanyPostingsReportRequestWith.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CreateCompanyPostingsReportRequestWith interface. + */ +export function instanceOfCreateCompanyPostingsReportRequestWith(value) { + return true; +} +export function CreateCompanyPostingsReportRequestWithFromJSON(json) { + return CreateCompanyPostingsReportRequestWithFromJSONTyped(json, false); +} +export function CreateCompanyPostingsReportRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : json['additional_data'], + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'customer_data': json['customer_data'] == null ? undefined : json['customer_data'], + 'jewelry_codes': json['jewelry_codes'] == null ? undefined : json['jewelry_codes'], + }; +} +export function CreateCompanyPostingsReportRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'], + 'analytics_data': value['analytics_data'], + 'customer_data': value['customer_data'], + 'jewelry_codes': value['jewelry_codes'], + }; +} diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseBuyer.d.ts b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseBuyer.d.ts new file mode 100644 index 0000000..95eef92 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseBuyer.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о покупателе. + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseBuyer + */ +export interface CreateDocumentB2BSalesJSONReportResponseBuyer { + /** + * Название компании. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseBuyer + */ + name?: string; + /** + * Юридический адрес. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseBuyer + */ + address?: string; + /** + * ИНН. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseBuyer + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseBuyer + */ + kpp?: string; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseBuyer interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseBuyer(value: object): value is CreateDocumentB2BSalesJSONReportResponseBuyer; +export declare function CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseBuyer; +export declare function CreateDocumentB2BSalesJSONReportResponseBuyerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseBuyer; +export declare function CreateDocumentB2BSalesJSONReportResponseBuyerToJSON(value?: CreateDocumentB2BSalesJSONReportResponseBuyer | null): any; diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseBuyer.js b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseBuyer.js new file mode 100644 index 0000000..9948b7d --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseBuyer.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseBuyer interface. + */ +export function instanceOfCreateDocumentB2BSalesJSONReportResponseBuyer(value) { + return true; +} +export function CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseBuyerFromJSONTyped(json, false); +} +export function CreateDocumentB2BSalesJSONReportResponseBuyerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'address': json['address'] == null ? undefined : json['address'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +export function CreateDocumentB2BSalesJSONReportResponseBuyerToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'address': value['address'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.d.ts b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.d.ts new file mode 100644 index 0000000..942b940 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType } from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType'; +/** + * Информация о счёте-фактуре. + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ +export interface CreateDocumentB2BSalesJSONReportResponseInvoiceInfo { + /** + * Дата счёта-фактуры продавца в формате `YYYY-MM-DD`. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ + date?: string; + /** + * Номер счёта-фактуры продавца. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ + number?: string; + /** + * Статус УКД или УПД. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ + status?: string; + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType} + * @memberof CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ + type?: CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseInvoiceInfo interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfo(value: object): value is CreateDocumentB2BSalesJSONReportResponseInvoiceInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseInvoiceInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseInvoiceInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON(value?: CreateDocumentB2BSalesJSONReportResponseInvoiceInfo | null): any; diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.js b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.js new file mode 100644 index 0000000..443fdee --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON, CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON, } from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType'; +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseInvoiceInfo interface. + */ +export function instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfo(value) { + return true; +} +export function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSONTyped(json, false); +} +export function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'number': json['number'] == null ? undefined : json['number'], + 'status': json['status'] == null ? undefined : json['status'], + 'type': json['type'] == null ? undefined : CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON(json['type']), + }; +} +export function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'number': value['number'], + 'status': value['status'], + 'type': CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON(value['type']), + }; +} diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.d.ts b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.d.ts new file mode 100644 index 0000000..eb42d05 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип документа: + * - `UPD` - УПД; + * - `UKD` - УКД. + * + * @export + */ +export declare const CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType: { + readonly UPD: "UPD"; + readonly UKD: "UKD"; +}; +export type CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType = typeof CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType[keyof typeof CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType]; +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfoType(value: any): boolean; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON(value?: CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType | null): any; diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.js b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.js new file mode 100644 index 0000000..26ef3b2 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип документа: + * - `UPD` - УПД; + * - `UKD` - УКД. + * + * @export + */ +export const CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType = { + UPD: 'UPD', + UKD: 'UKD' +}; +export function instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfoType(value) { + for (const key in CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType) { + if (Object.prototype.hasOwnProperty.call(CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType, key)) { + if (CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType[key] === value) { + return true; + } + } + } + return false; +} +export function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSONTyped(json, false); +} +export function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.d.ts b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.d.ts new file mode 100644 index 0000000..3008868 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateDocumentB2BSalesJSONReportResponseInvoiceInfo } from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfo'; +import type { CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation'; +import type { CreateDocumentB2BSalesJSONReportResponseBuyer } from './CreateDocumentB2BSalesJSONReportResponseBuyer'; +/** + * + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ +export interface CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice { + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseBuyer} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + buyer_info?: CreateDocumentB2BSalesJSONReportResponseBuyer; + /** + * Валюта. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + currency?: string; + /** + * Код валюты. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + currency_code?: number; + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseInvoiceInfo} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + info?: CreateDocumentB2BSalesJSONReportResponseInvoiceInfo; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + offer_id?: string; + /** + * Список операций. + * @type {Array} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + operations?: Array; + /** + * Название товара. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + product_name?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + sku?: number; + /** + * Код условного обозначения. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + unit_code?: number; + /** + * Условное обозначение. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + unit_name?: string; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice(value: object): value is CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON(value?: CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice | null): any; diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.js b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.js new file mode 100644 index 0000000..52a9e99 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON, CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON, } from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfo'; +import { CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON, CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON, } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation'; +import { CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON, CreateDocumentB2BSalesJSONReportResponseBuyerToJSON, } from './CreateDocumentB2BSalesJSONReportResponseBuyer'; +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice interface. + */ +export function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice(value) { + return true; +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSONTyped(json, false); +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'buyer_info': json['buyer_info'] == null ? undefined : CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON(json['buyer_info']), + 'currency': json['currency'] == null ? undefined : json['currency'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'info': json['info'] == null ? undefined : CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON(json['info']), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'operations': json['operations'] == null ? undefined : (json['operations'].map(CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON)), + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'unit_code': json['unit_code'] == null ? undefined : json['unit_code'], + 'unit_name': json['unit_name'] == null ? undefined : json['unit_name'], + }; +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'buyer_info': CreateDocumentB2BSalesJSONReportResponseBuyerToJSON(value['buyer_info']), + 'currency': value['currency'], + 'currency_code': value['currency_code'], + 'info': CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON(value['info']), + 'offer_id': value['offer_id'], + 'operations': value['operations'] == null ? undefined : (value['operations'].map(CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON)), + 'product_name': value['product_name'], + 'sku': value['sku'], + 'unit_code': value['unit_code'], + 'unit_name': value['unit_name'], + }; +} diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.d.ts b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.d.ts new file mode 100644 index 0000000..6646ed9 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType'; +/** + * + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ +export interface CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation { + /** + * Сумма реализации или возврата. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + amount?: number; + /** + * Стоимость товара без НДС. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + cost_without_vat?: number; + /** + * Дата операции в формате `YYYY-MM-DD`. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + date?: string; + /** + * Номер ГТД. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + gtd_number?: string; + /** + * Страна происхождения товара. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + origin_country?: string; + /** + * Номер отправления. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + posting_number?: string; + /** + * Цена реализации или возврата в рублях. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + price?: number; + /** + * Количество товаров. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + quantity?: number; + /** + * РНПТ. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + rnpt_number?: string; + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + type?: CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType; + /** + * Сумма НДС, которая взимается с покупателя. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + vat_amount?: number; + /** + * Ставка НДС. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + vat_rate?: number; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperation(value: object): value is CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON(value?: CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation | null): any; diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.js b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.js new file mode 100644 index 0000000..4628683 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON, CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON, } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType'; +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation interface. + */ +export function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperation(value) { + return true; +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSONTyped(json, false); +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'cost_without_vat': json['cost_without_vat'] == null ? undefined : json['cost_without_vat'], + 'date': json['date'] == null ? undefined : json['date'], + 'gtd_number': json['gtd_number'] == null ? undefined : json['gtd_number'], + 'origin_country': json['origin_country'] == null ? undefined : json['origin_country'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rnpt_number': json['rnpt_number'] == null ? undefined : json['rnpt_number'], + 'type': json['type'] == null ? undefined : CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON(json['type']), + 'vat_amount': json['vat_amount'] == null ? undefined : json['vat_amount'], + 'vat_rate': json['vat_rate'] == null ? undefined : json['vat_rate'], + }; +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'cost_without_vat': value['cost_without_vat'], + 'date': value['date'], + 'gtd_number': value['gtd_number'], + 'origin_country': value['origin_country'], + 'posting_number': value['posting_number'], + 'price': value['price'], + 'quantity': value['quantity'], + 'rnpt_number': value['rnpt_number'], + 'type': CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON(value['type']), + 'vat_amount': value['vat_amount'], + 'vat_rate': value['vat_rate'], + }; +} diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.d.ts b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.d.ts new file mode 100644 index 0000000..6a215dd --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `DELIVERY` — отправление, + * - `RETURN` — возврат. + * + * @export + */ +export declare const CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType: { + readonly DELIVERY: "DELIVERY"; + readonly RETURN: "RETURN"; +}; +export type CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType = typeof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType[keyof typeof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType]; +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType(value: any): boolean; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON(value?: CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType | null): any; diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.js b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.js new file mode 100644 index 0000000..8fa505a --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `DELIVERY` — отправление, + * - `RETURN` — возврат. + * + * @export + */ +export const CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType = { + DELIVERY: 'DELIVERY', + RETURN: 'RETURN' +}; +export function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType(value) { + for (const key in CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType) { + if (Object.prototype.hasOwnProperty.call(CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType, key)) { + if (CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType[key] === value) { + return true; + } + } + } + return false; +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSONTyped(json, false); +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.d.ts b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.d.ts new file mode 100644 index 0000000..98c3188 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о продавце. + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseSellerInfo + */ +export interface CreateDocumentB2BSalesJSONReportResponseSellerInfo { + /** + * Название компании. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseSellerInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseSellerInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseSellerInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseSellerInfo interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseSellerInfo(value: object): value is CreateDocumentB2BSalesJSONReportResponseSellerInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseSellerInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseSellerInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON(value?: CreateDocumentB2BSalesJSONReportResponseSellerInfo | null): any; diff --git a/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.js b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.js new file mode 100644 index 0000000..21dc418 --- /dev/null +++ b/dist/esm/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseSellerInfo interface. + */ +export function instanceOfCreateDocumentB2BSalesJSONReportResponseSellerInfo(value) { + return true; +} +export function CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSONTyped(json, false); +} +export function CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +export function CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/esm/models/CreateReportResponse.d.ts b/dist/esm/models/CreateReportResponse.d.ts new file mode 100644 index 0000000..387315d --- /dev/null +++ b/dist/esm/models/CreateReportResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateReportResponseCodeNoDeadline } from './CreateReportResponseCodeNoDeadline'; +/** + * + * @export + * @interface CreateReportResponse + */ +export interface CreateReportResponse { + /** + * + * @type {CreateReportResponseCodeNoDeadline} + * @memberof CreateReportResponse + */ + result?: CreateReportResponseCodeNoDeadline; +} +/** + * Check if a given object implements the CreateReportResponse interface. + */ +export declare function instanceOfCreateReportResponse(value: object): value is CreateReportResponse; +export declare function CreateReportResponseFromJSON(json: any): CreateReportResponse; +export declare function CreateReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateReportResponse; +export declare function CreateReportResponseToJSON(value?: CreateReportResponse | null): any; diff --git a/dist/esm/models/CreateReportResponse.js b/dist/esm/models/CreateReportResponse.js new file mode 100644 index 0000000..c9e87af --- /dev/null +++ b/dist/esm/models/CreateReportResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateReportResponseCodeNoDeadlineFromJSON, CreateReportResponseCodeNoDeadlineToJSON, } from './CreateReportResponseCodeNoDeadline'; +/** + * Check if a given object implements the CreateReportResponse interface. + */ +export function instanceOfCreateReportResponse(value) { + return true; +} +export function CreateReportResponseFromJSON(json) { + return CreateReportResponseFromJSONTyped(json, false); +} +export function CreateReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : CreateReportResponseCodeNoDeadlineFromJSON(json['result']), + }; +} +export function CreateReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': CreateReportResponseCodeNoDeadlineToJSON(value['result']), + }; +} diff --git a/dist/esm/models/CreateReportResponseCode.d.ts b/dist/esm/models/CreateReportResponseCode.d.ts new file mode 100644 index 0000000..3f0bd63 --- /dev/null +++ b/dist/esm/models/CreateReportResponseCode.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результаты запроса. + * @export + * @interface CreateReportResponseCode + */ +export interface CreateReportResponseCode { + /** + * Уникальный идентификатор отчёта. По нему вы можете получить отчёт в течение 3 дней после запроса. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof CreateReportResponseCode + */ + code?: string; +} +/** + * Check if a given object implements the CreateReportResponseCode interface. + */ +export declare function instanceOfCreateReportResponseCode(value: object): value is CreateReportResponseCode; +export declare function CreateReportResponseCodeFromJSON(json: any): CreateReportResponseCode; +export declare function CreateReportResponseCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateReportResponseCode; +export declare function CreateReportResponseCodeToJSON(value?: CreateReportResponseCode | null): any; diff --git a/dist/esm/models/CreateReportResponseCode.js b/dist/esm/models/CreateReportResponseCode.js new file mode 100644 index 0000000..6a8e180 --- /dev/null +++ b/dist/esm/models/CreateReportResponseCode.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CreateReportResponseCode interface. + */ +export function instanceOfCreateReportResponseCode(value) { + return true; +} +export function CreateReportResponseCodeFromJSON(json) { + return CreateReportResponseCodeFromJSONTyped(json, false); +} +export function CreateReportResponseCodeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +export function CreateReportResponseCodeToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/CreateReportResponseCodeNoDeadline.d.ts b/dist/esm/models/CreateReportResponseCodeNoDeadline.d.ts new file mode 100644 index 0000000..fdeeee3 --- /dev/null +++ b/dist/esm/models/CreateReportResponseCodeNoDeadline.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат запроса. + * @export + * @interface CreateReportResponseCodeNoDeadline + */ +export interface CreateReportResponseCodeNoDeadline { + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof CreateReportResponseCodeNoDeadline + */ + code?: string; +} +/** + * Check if a given object implements the CreateReportResponseCodeNoDeadline interface. + */ +export declare function instanceOfCreateReportResponseCodeNoDeadline(value: object): value is CreateReportResponseCodeNoDeadline; +export declare function CreateReportResponseCodeNoDeadlineFromJSON(json: any): CreateReportResponseCodeNoDeadline; +export declare function CreateReportResponseCodeNoDeadlineFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateReportResponseCodeNoDeadline; +export declare function CreateReportResponseCodeNoDeadlineToJSON(value?: CreateReportResponseCodeNoDeadline | null): any; diff --git a/dist/esm/models/CreateReportResponseCodeNoDeadline.js b/dist/esm/models/CreateReportResponseCodeNoDeadline.js new file mode 100644 index 0000000..bc90d20 --- /dev/null +++ b/dist/esm/models/CreateReportResponseCodeNoDeadline.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CreateReportResponseCodeNoDeadline interface. + */ +export function instanceOfCreateReportResponseCodeNoDeadline(value) { + return true; +} +export function CreateReportResponseCodeNoDeadlineFromJSON(json) { + return CreateReportResponseCodeNoDeadlineFromJSONTyped(json, false); +} +export function CreateReportResponseCodeNoDeadlineFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +export function CreateReportResponseCodeNoDeadlineToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/CreateWarehouseFBSRequestAddressCoordinates.d.ts b/dist/esm/models/CreateWarehouseFBSRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..331bc28 --- /dev/null +++ b/dist/esm/models/CreateWarehouseFBSRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты адреса склада. + * @export + * @interface CreateWarehouseFBSRequestAddressCoordinates + */ +export interface CreateWarehouseFBSRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof CreateWarehouseFBSRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof CreateWarehouseFBSRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the CreateWarehouseFBSRequestAddressCoordinates interface. + */ +export declare function instanceOfCreateWarehouseFBSRequestAddressCoordinates(value: object): value is CreateWarehouseFBSRequestAddressCoordinates; +export declare function CreateWarehouseFBSRequestAddressCoordinatesFromJSON(json: any): CreateWarehouseFBSRequestAddressCoordinates; +export declare function CreateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWarehouseFBSRequestAddressCoordinates; +export declare function CreateWarehouseFBSRequestAddressCoordinatesToJSON(value?: CreateWarehouseFBSRequestAddressCoordinates | null): any; diff --git a/dist/esm/models/CreateWarehouseFBSRequestAddressCoordinates.js b/dist/esm/models/CreateWarehouseFBSRequestAddressCoordinates.js new file mode 100644 index 0000000..1304b0f --- /dev/null +++ b/dist/esm/models/CreateWarehouseFBSRequestAddressCoordinates.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CreateWarehouseFBSRequestAddressCoordinates interface. + */ +export function instanceOfCreateWarehouseFBSRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +export function CreateWarehouseFBSRequestAddressCoordinatesFromJSON(json) { + return CreateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json, false); +} +export function CreateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +export function CreateWarehouseFBSRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/CreateWarehouseFBSRequestFirstMileTypeEnum.d.ts b/dist/esm/models/CreateWarehouseFBSRequestFirstMileTypeEnum.d.ts new file mode 100644 index 0000000..4d3a3e5 --- /dev/null +++ b/dist/esm/models/CreateWarehouseFBSRequestFirstMileTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export declare const CreateWarehouseFBSRequestFirstMileTypeEnum: { + readonly PICK_UP: "PICK_UP"; + readonly DROP_OFF: "DROP_OFF"; +}; +export type CreateWarehouseFBSRequestFirstMileTypeEnum = typeof CreateWarehouseFBSRequestFirstMileTypeEnum[keyof typeof CreateWarehouseFBSRequestFirstMileTypeEnum]; +export declare function instanceOfCreateWarehouseFBSRequestFirstMileTypeEnum(value: any): boolean; +export declare function CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON(json: any): CreateWarehouseFBSRequestFirstMileTypeEnum; +export declare function CreateWarehouseFBSRequestFirstMileTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWarehouseFBSRequestFirstMileTypeEnum; +export declare function CreateWarehouseFBSRequestFirstMileTypeEnumToJSON(value?: CreateWarehouseFBSRequestFirstMileTypeEnum | null): any; diff --git a/dist/esm/models/CreateWarehouseFBSRequestFirstMileTypeEnum.js b/dist/esm/models/CreateWarehouseFBSRequestFirstMileTypeEnum.js new file mode 100644 index 0000000..01de3fc --- /dev/null +++ b/dist/esm/models/CreateWarehouseFBSRequestFirstMileTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export const CreateWarehouseFBSRequestFirstMileTypeEnum = { + PICK_UP: 'PICK_UP', + DROP_OFF: 'DROP_OFF' +}; +export function instanceOfCreateWarehouseFBSRequestFirstMileTypeEnum(value) { + for (const key in CreateWarehouseFBSRequestFirstMileTypeEnum) { + if (Object.prototype.hasOwnProperty.call(CreateWarehouseFBSRequestFirstMileTypeEnum, key)) { + if (CreateWarehouseFBSRequestFirstMileTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON(json) { + return CreateWarehouseFBSRequestFirstMileTypeEnumFromJSONTyped(json, false); +} +export function CreateWarehouseFBSRequestFirstMileTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CreateWarehouseFBSRequestFirstMileTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CreateWarehouseFBSRequestOptions.d.ts b/dist/esm/models/CreateWarehouseFBSRequestOptions.d.ts new file mode 100644 index 0000000..efac636 --- /dev/null +++ b/dist/esm/models/CreateWarehouseFBSRequestOptions.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры склада. + * @export + * @interface CreateWarehouseFBSRequestOptions + */ +export interface CreateWarehouseFBSRequestOptions { + /** + * Комментарий для курьера при отгрузке с типом `PICK_UP`. + * @type {string} + * @memberof CreateWarehouseFBSRequestOptions + */ + comment?: string; + /** + * Номера телефонов для курьера при отгрузке с типом `PICK_UP`. Укажите в формате +7(XXX)XXX-XX-XX. + * @type {Array} + * @memberof CreateWarehouseFBSRequestOptions + */ + courier_phones?: Array; + /** + * `true`, если автосборка включена. + * + * @type {boolean} + * @memberof CreateWarehouseFBSRequestOptions + */ + is_auto_assembly?: boolean; + /** + * `true`, если печать транспортной накладной включена. + * + * @type {boolean} + * @memberof CreateWarehouseFBSRequestOptions + */ + is_waybill_enabled?: boolean; +} +/** + * Check if a given object implements the CreateWarehouseFBSRequestOptions interface. + */ +export declare function instanceOfCreateWarehouseFBSRequestOptions(value: object): value is CreateWarehouseFBSRequestOptions; +export declare function CreateWarehouseFBSRequestOptionsFromJSON(json: any): CreateWarehouseFBSRequestOptions; +export declare function CreateWarehouseFBSRequestOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWarehouseFBSRequestOptions; +export declare function CreateWarehouseFBSRequestOptionsToJSON(value?: CreateWarehouseFBSRequestOptions | null): any; diff --git a/dist/esm/models/CreateWarehouseFBSRequestOptions.js b/dist/esm/models/CreateWarehouseFBSRequestOptions.js new file mode 100644 index 0000000..0b8c940 --- /dev/null +++ b/dist/esm/models/CreateWarehouseFBSRequestOptions.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CreateWarehouseFBSRequestOptions interface. + */ +export function instanceOfCreateWarehouseFBSRequestOptions(value) { + return true; +} +export function CreateWarehouseFBSRequestOptionsFromJSON(json) { + return CreateWarehouseFBSRequestOptionsFromJSONTyped(json, false); +} +export function CreateWarehouseFBSRequestOptionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment': json['comment'] == null ? undefined : json['comment'], + 'courier_phones': json['courier_phones'] == null ? undefined : json['courier_phones'], + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'is_waybill_enabled': json['is_waybill_enabled'] == null ? undefined : json['is_waybill_enabled'], + }; +} +export function CreateWarehouseFBSRequestOptionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment': value['comment'], + 'courier_phones': value['courier_phones'], + 'is_auto_assembly': value['is_auto_assembly'], + 'is_waybill_enabled': value['is_waybill_enabled'], + }; +} diff --git a/dist/esm/models/CreateWarehouseFBSRequestWorkingDaysEnum.d.ts b/dist/esm/models/CreateWarehouseFBSRequestWorkingDaysEnum.d.ts new file mode 100644 index 0000000..30f05df --- /dev/null +++ b/dist/esm/models/CreateWarehouseFBSRequestWorkingDaysEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CreateWarehouseFBSRequestWorkingDaysEnum: { + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type CreateWarehouseFBSRequestWorkingDaysEnum = typeof CreateWarehouseFBSRequestWorkingDaysEnum[keyof typeof CreateWarehouseFBSRequestWorkingDaysEnum]; +export declare function instanceOfCreateWarehouseFBSRequestWorkingDaysEnum(value: any): boolean; +export declare function CreateWarehouseFBSRequestWorkingDaysEnumFromJSON(json: any): CreateWarehouseFBSRequestWorkingDaysEnum; +export declare function CreateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWarehouseFBSRequestWorkingDaysEnum; +export declare function CreateWarehouseFBSRequestWorkingDaysEnumToJSON(value?: CreateWarehouseFBSRequestWorkingDaysEnum | null): any; diff --git a/dist/esm/models/CreateWarehouseFBSRequestWorkingDaysEnum.js b/dist/esm/models/CreateWarehouseFBSRequestWorkingDaysEnum.js new file mode 100644 index 0000000..f9c5a28 --- /dev/null +++ b/dist/esm/models/CreateWarehouseFBSRequestWorkingDaysEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const CreateWarehouseFBSRequestWorkingDaysEnum = { + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfCreateWarehouseFBSRequestWorkingDaysEnum(value) { + for (const key in CreateWarehouseFBSRequestWorkingDaysEnum) { + if (Object.prototype.hasOwnProperty.call(CreateWarehouseFBSRequestWorkingDaysEnum, key)) { + if (CreateWarehouseFBSRequestWorkingDaysEnum[key] === value) { + return true; + } + } + } + return false; +} +export function CreateWarehouseFBSRequestWorkingDaysEnumFromJSON(json) { + return CreateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json, false); +} +export function CreateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function CreateWarehouseFBSRequestWorkingDaysEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/CreatedAt.d.ts b/dist/esm/models/CreatedAt.d.ts new file mode 100644 index 0000000..305d1b5 --- /dev/null +++ b/dist/esm/models/CreatedAt.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период создания заявки. + * @export + * @interface CreatedAt + */ +export interface CreatedAt { + /** + * Дата начала периода. + * @type {string} + * @memberof CreatedAt + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof CreatedAt + */ + to?: string; +} +/** + * Check if a given object implements the CreatedAt interface. + */ +export declare function instanceOfCreatedAt(value: object): value is CreatedAt; +export declare function CreatedAtFromJSON(json: any): CreatedAt; +export declare function CreatedAtFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedAt; +export declare function CreatedAtToJSON(value?: CreatedAt | null): any; diff --git a/dist/esm/models/CreatedAt.js b/dist/esm/models/CreatedAt.js new file mode 100644 index 0000000..5665ac5 --- /dev/null +++ b/dist/esm/models/CreatedAt.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the CreatedAt interface. + */ +export function instanceOfCreatedAt(value) { + return true; +} +export function CreatedAtFromJSON(json) { + return CreatedAtFromJSONTyped(json, false); +} +export function CreatedAtFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function CreatedAtToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/DataFulfillment.d.ts b/dist/esm/models/DataFulfillment.d.ts new file mode 100644 index 0000000..9247e88 --- /dev/null +++ b/dist/esm/models/DataFulfillment.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DataFulfillment + */ +export interface DataFulfillment { + /** + * Название склада. + * @type {string} + * @memberof DataFulfillment + */ + name?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof DataFulfillment + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DataFulfillment interface. + */ +export declare function instanceOfDataFulfillment(value: object): value is DataFulfillment; +export declare function DataFulfillmentFromJSON(json: any): DataFulfillment; +export declare function DataFulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataFulfillment; +export declare function DataFulfillmentToJSON(value?: DataFulfillment | null): any; diff --git a/dist/esm/models/DataFulfillment.js b/dist/esm/models/DataFulfillment.js new file mode 100644 index 0000000..f373463 --- /dev/null +++ b/dist/esm/models/DataFulfillment.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DataFulfillment interface. + */ +export function instanceOfDataFulfillment(value) { + return true; +} +export function DataFulfillmentFromJSON(json) { + return DataFulfillmentFromJSONTyped(json, false); +} +export function DataFulfillmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function DataFulfillmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/DataMacrolocalCluster.d.ts b/dist/esm/models/DataMacrolocalCluster.d.ts new file mode 100644 index 0000000..84cc08f --- /dev/null +++ b/dist/esm/models/DataMacrolocalCluster.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MacrolocalClusterCountry } from './MacrolocalClusterCountry'; +/** + * Информация о кластере. + * @export + * @interface DataMacrolocalCluster + */ +export interface DataMacrolocalCluster { + /** + * + * @type {MacrolocalClusterCountry} + * @memberof DataMacrolocalCluster + */ + country?: MacrolocalClusterCountry; + /** + * Название кластера. + * @type {string} + * @memberof DataMacrolocalCluster + */ + name?: string; +} +/** + * Check if a given object implements the DataMacrolocalCluster interface. + */ +export declare function instanceOfDataMacrolocalCluster(value: object): value is DataMacrolocalCluster; +export declare function DataMacrolocalClusterFromJSON(json: any): DataMacrolocalCluster; +export declare function DataMacrolocalClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataMacrolocalCluster; +export declare function DataMacrolocalClusterToJSON(value?: DataMacrolocalCluster | null): any; diff --git a/dist/esm/models/DataMacrolocalCluster.js b/dist/esm/models/DataMacrolocalCluster.js new file mode 100644 index 0000000..ee54def --- /dev/null +++ b/dist/esm/models/DataMacrolocalCluster.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MacrolocalClusterCountryFromJSON, MacrolocalClusterCountryToJSON, } from './MacrolocalClusterCountry'; +/** + * Check if a given object implements the DataMacrolocalCluster interface. + */ +export function instanceOfDataMacrolocalCluster(value) { + return true; +} +export function DataMacrolocalClusterFromJSON(json) { + return DataMacrolocalClusterFromJSONTyped(json, false); +} +export function DataMacrolocalClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'country': json['country'] == null ? undefined : MacrolocalClusterCountryFromJSON(json['country']), + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function DataMacrolocalClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'country': MacrolocalClusterCountryToJSON(value['country']), + 'name': value['name'], + }; +} diff --git a/dist/esm/models/DeleteProductsRequestProduct.d.ts b/dist/esm/models/DeleteProductsRequestProduct.d.ts new file mode 100644 index 0000000..0a82460 --- /dev/null +++ b/dist/esm/models/DeleteProductsRequestProduct.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteProductsRequestProduct + */ +export interface DeleteProductsRequestProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof DeleteProductsRequestProduct + */ + offer_id: string; +} +/** + * Check if a given object implements the DeleteProductsRequestProduct interface. + */ +export declare function instanceOfDeleteProductsRequestProduct(value: object): value is DeleteProductsRequestProduct; +export declare function DeleteProductsRequestProductFromJSON(json: any): DeleteProductsRequestProduct; +export declare function DeleteProductsRequestProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteProductsRequestProduct; +export declare function DeleteProductsRequestProductToJSON(value?: DeleteProductsRequestProduct | null): any; diff --git a/dist/esm/models/DeleteProductsRequestProduct.js b/dist/esm/models/DeleteProductsRequestProduct.js new file mode 100644 index 0000000..d7b371f --- /dev/null +++ b/dist/esm/models/DeleteProductsRequestProduct.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeleteProductsRequestProduct interface. + */ +export function instanceOfDeleteProductsRequestProduct(value) { + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + return true; +} +export function DeleteProductsRequestProductFromJSON(json) { + return DeleteProductsRequestProductFromJSONTyped(json, false); +} +export function DeleteProductsRequestProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'], + }; +} +export function DeleteProductsRequestProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/esm/models/DeleteProductsResponseDeleteStatus.d.ts b/dist/esm/models/DeleteProductsResponseDeleteStatus.d.ts new file mode 100644 index 0000000..be423f6 --- /dev/null +++ b/dist/esm/models/DeleteProductsResponseDeleteStatus.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteProductsResponseDeleteStatus + */ +export interface DeleteProductsResponseDeleteStatus { + /** + * Причина ошибки, которая возникла при обработке запроса. + * @type {string} + * @memberof DeleteProductsResponseDeleteStatus + */ + error?: string; + /** + * Если запрос выполнен без ошибок и товары удалены — `true`. + * @type {boolean} + * @memberof DeleteProductsResponseDeleteStatus + */ + is_deleted?: boolean; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof DeleteProductsResponseDeleteStatus + */ + offer_id?: string; +} +/** + * Check if a given object implements the DeleteProductsResponseDeleteStatus interface. + */ +export declare function instanceOfDeleteProductsResponseDeleteStatus(value: object): value is DeleteProductsResponseDeleteStatus; +export declare function DeleteProductsResponseDeleteStatusFromJSON(json: any): DeleteProductsResponseDeleteStatus; +export declare function DeleteProductsResponseDeleteStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteProductsResponseDeleteStatus; +export declare function DeleteProductsResponseDeleteStatusToJSON(value?: DeleteProductsResponseDeleteStatus | null): any; diff --git a/dist/esm/models/DeleteProductsResponseDeleteStatus.js b/dist/esm/models/DeleteProductsResponseDeleteStatus.js new file mode 100644 index 0000000..1a7fa94 --- /dev/null +++ b/dist/esm/models/DeleteProductsResponseDeleteStatus.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeleteProductsResponseDeleteStatus interface. + */ +export function instanceOfDeleteProductsResponseDeleteStatus(value) { + return true; +} +export function DeleteProductsResponseDeleteStatusFromJSON(json) { + return DeleteProductsResponseDeleteStatusFromJSONTyped(json, false); +} +export function DeleteProductsResponseDeleteStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'is_deleted': json['is_deleted'] == null ? undefined : json['is_deleted'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + }; +} +export function DeleteProductsResponseDeleteStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'is_deleted': value['is_deleted'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/esm/models/DeliveryCheckoutResponseSplit.d.ts b/dist/esm/models/DeliveryCheckoutResponseSplit.d.ts new file mode 100644 index 0000000..cedc49a --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseSplit.d.ts @@ -0,0 +1,66 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryCheckoutResponseSplitCommissions } from './DeliveryCheckoutResponseSplitCommissions'; +import type { DeliveryCheckoutResponseUnavailableReasonEnum } from './DeliveryCheckoutResponseUnavailableReasonEnum'; +import type { DeliveryCheckoutResponseV2SplitDeliverySchemaEnum } from './DeliveryCheckoutResponseV2SplitDeliverySchemaEnum'; +import type { DeliveryCheckoutResponseSplitDeliveryMethod } from './DeliveryCheckoutResponseSplitDeliveryMethod'; +import type { DeliveryCheckoutResponseSplitItem } from './DeliveryCheckoutResponseSplitItem'; +/** + * + * @export + * @interface DeliveryCheckoutResponseSplit + */ +export interface DeliveryCheckoutResponseSplit { + /** + * + * @type {DeliveryCheckoutResponseSplitCommissions} + * @memberof DeliveryCheckoutResponseSplit + */ + commissions?: DeliveryCheckoutResponseSplitCommissions; + /** + * + * @type {DeliveryCheckoutResponseSplitDeliveryMethod} + * @memberof DeliveryCheckoutResponseSplit + */ + delivery_method?: DeliveryCheckoutResponseSplitDeliveryMethod; + /** + * + * @type {DeliveryCheckoutResponseV2SplitDeliverySchemaEnum} + * @memberof DeliveryCheckoutResponseSplit + */ + delivery_schema?: DeliveryCheckoutResponseV2SplitDeliverySchemaEnum; + /** + * Информация о товарах. + * @type {Array} + * @memberof DeliveryCheckoutResponseSplit + */ + items?: Array; + /** + * + * @type {DeliveryCheckoutResponseUnavailableReasonEnum} + * @memberof DeliveryCheckoutResponseSplit + */ + unavailable_reason?: DeliveryCheckoutResponseUnavailableReasonEnum; + /** + * Идентификатор склада. + * @type {number} + * @memberof DeliveryCheckoutResponseSplit + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DeliveryCheckoutResponseSplit interface. + */ +export declare function instanceOfDeliveryCheckoutResponseSplit(value: object): value is DeliveryCheckoutResponseSplit; +export declare function DeliveryCheckoutResponseSplitFromJSON(json: any): DeliveryCheckoutResponseSplit; +export declare function DeliveryCheckoutResponseSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseSplit; +export declare function DeliveryCheckoutResponseSplitToJSON(value?: DeliveryCheckoutResponseSplit | null): any; diff --git a/dist/esm/models/DeliveryCheckoutResponseSplit.js b/dist/esm/models/DeliveryCheckoutResponseSplit.js new file mode 100644 index 0000000..9a64ba1 --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseSplit.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryCheckoutResponseSplitCommissionsFromJSON, DeliveryCheckoutResponseSplitCommissionsToJSON, } from './DeliveryCheckoutResponseSplitCommissions'; +import { DeliveryCheckoutResponseUnavailableReasonEnumFromJSON, DeliveryCheckoutResponseUnavailableReasonEnumToJSON, } from './DeliveryCheckoutResponseUnavailableReasonEnum'; +import { DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON, DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON, } from './DeliveryCheckoutResponseV2SplitDeliverySchemaEnum'; +import { DeliveryCheckoutResponseSplitDeliveryMethodFromJSON, DeliveryCheckoutResponseSplitDeliveryMethodToJSON, } from './DeliveryCheckoutResponseSplitDeliveryMethod'; +import { DeliveryCheckoutResponseSplitItemFromJSON, DeliveryCheckoutResponseSplitItemToJSON, } from './DeliveryCheckoutResponseSplitItem'; +/** + * Check if a given object implements the DeliveryCheckoutResponseSplit interface. + */ +export function instanceOfDeliveryCheckoutResponseSplit(value) { + return true; +} +export function DeliveryCheckoutResponseSplitFromJSON(json) { + return DeliveryCheckoutResponseSplitFromJSONTyped(json, false); +} +export function DeliveryCheckoutResponseSplitFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commissions': json['commissions'] == null ? undefined : DeliveryCheckoutResponseSplitCommissionsFromJSON(json['commissions']), + 'delivery_method': json['delivery_method'] == null ? undefined : DeliveryCheckoutResponseSplitDeliveryMethodFromJSON(json['delivery_method']), + 'delivery_schema': json['delivery_schema'] == null ? undefined : DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON(json['delivery_schema']), + 'items': json['items'] == null ? undefined : (json['items'].map(DeliveryCheckoutResponseSplitItemFromJSON)), + 'unavailable_reason': json['unavailable_reason'] == null ? undefined : DeliveryCheckoutResponseUnavailableReasonEnumFromJSON(json['unavailable_reason']), + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function DeliveryCheckoutResponseSplitToJSON(value) { + if (value == null) { + return value; + } + return { + 'commissions': DeliveryCheckoutResponseSplitCommissionsToJSON(value['commissions']), + 'delivery_method': DeliveryCheckoutResponseSplitDeliveryMethodToJSON(value['delivery_method']), + 'delivery_schema': DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON(value['delivery_schema']), + 'items': value['items'] == null ? undefined : (value['items'].map(DeliveryCheckoutResponseSplitItemToJSON)), + 'unavailable_reason': DeliveryCheckoutResponseUnavailableReasonEnumToJSON(value['unavailable_reason']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/DeliveryCheckoutResponseSplitCommissions.d.ts b/dist/esm/models/DeliveryCheckoutResponseSplitCommissions.d.ts new file mode 100644 index 0000000..2f5958d --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseSplitCommissions.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySplitCommission } from './MoneyMoneySplitCommission'; +/** + * Информация о комиссиях за доставку отправления. Если `commissions = null`, вариант доставки недоступен. + * @export + * @interface DeliveryCheckoutResponseSplitCommissions + */ +export interface DeliveryCheckoutResponseSplitCommissions { + /** + * + * @type {MoneyMoneySplitCommission} + * @memberof DeliveryCheckoutResponseSplitCommissions + */ + total?: MoneyMoneySplitCommission; +} +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitCommissions interface. + */ +export declare function instanceOfDeliveryCheckoutResponseSplitCommissions(value: object): value is DeliveryCheckoutResponseSplitCommissions; +export declare function DeliveryCheckoutResponseSplitCommissionsFromJSON(json: any): DeliveryCheckoutResponseSplitCommissions; +export declare function DeliveryCheckoutResponseSplitCommissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseSplitCommissions; +export declare function DeliveryCheckoutResponseSplitCommissionsToJSON(value?: DeliveryCheckoutResponseSplitCommissions | null): any; diff --git a/dist/esm/models/DeliveryCheckoutResponseSplitCommissions.js b/dist/esm/models/DeliveryCheckoutResponseSplitCommissions.js new file mode 100644 index 0000000..5e0eddb --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseSplitCommissions.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneySplitCommissionFromJSON, MoneyMoneySplitCommissionToJSON, } from './MoneyMoneySplitCommission'; +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitCommissions interface. + */ +export function instanceOfDeliveryCheckoutResponseSplitCommissions(value) { + return true; +} +export function DeliveryCheckoutResponseSplitCommissionsFromJSON(json) { + return DeliveryCheckoutResponseSplitCommissionsFromJSONTyped(json, false); +} +export function DeliveryCheckoutResponseSplitCommissionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : MoneyMoneySplitCommissionFromJSON(json['total']), + }; +} +export function DeliveryCheckoutResponseSplitCommissionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': MoneyMoneySplitCommissionToJSON(value['total']), + }; +} diff --git a/dist/esm/models/DeliveryCheckoutResponseSplitDeliveryMethod.d.ts b/dist/esm/models/DeliveryCheckoutResponseSplitDeliveryMethod.d.ts new file mode 100644 index 0000000..82d7b98 --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseSplitDeliveryMethod.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodDeliveryTypeEnum } from './DeliveryMethodDeliveryTypeEnum'; +import type { DeliveryCheckoutResponseUnavailableReasonEnum } from './DeliveryCheckoutResponseUnavailableReasonEnum'; +import type { DeliveryMethodTimeslot } from './DeliveryMethodTimeslot'; +/** + * Метод доставки. + * @export + * @interface DeliveryCheckoutResponseSplitDeliveryMethod + */ +export interface DeliveryCheckoutResponseSplitDeliveryMethod { + /** + * Смещение часового пояса доставки в минутах. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + delivery_time_zone_offset?: number; + /** + * + * @type {DeliveryMethodDeliveryTypeEnum} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + delivery_type?: DeliveryMethodDeliveryTypeEnum; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + name?: string; + /** + * Таймслоты. + * @type {Array} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + timeslots?: Array; + /** + * + * @type {DeliveryCheckoutResponseUnavailableReasonEnum} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + unavailable_reason?: DeliveryCheckoutResponseUnavailableReasonEnum; + /** + * Смещение часового пояса склада в минутах. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + warehouse_time_zone_offset?: number; +} +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitDeliveryMethod interface. + */ +export declare function instanceOfDeliveryCheckoutResponseSplitDeliveryMethod(value: object): value is DeliveryCheckoutResponseSplitDeliveryMethod; +export declare function DeliveryCheckoutResponseSplitDeliveryMethodFromJSON(json: any): DeliveryCheckoutResponseSplitDeliveryMethod; +export declare function DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseSplitDeliveryMethod; +export declare function DeliveryCheckoutResponseSplitDeliveryMethodToJSON(value?: DeliveryCheckoutResponseSplitDeliveryMethod | null): any; diff --git a/dist/esm/models/DeliveryCheckoutResponseSplitDeliveryMethod.js b/dist/esm/models/DeliveryCheckoutResponseSplitDeliveryMethod.js new file mode 100644 index 0000000..d72dadf --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseSplitDeliveryMethod.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMethodDeliveryTypeEnumFromJSON, DeliveryMethodDeliveryTypeEnumToJSON, } from './DeliveryMethodDeliveryTypeEnum'; +import { DeliveryCheckoutResponseUnavailableReasonEnumFromJSON, DeliveryCheckoutResponseUnavailableReasonEnumToJSON, } from './DeliveryCheckoutResponseUnavailableReasonEnum'; +import { DeliveryMethodTimeslotFromJSON, DeliveryMethodTimeslotToJSON, } from './DeliveryMethodTimeslot'; +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitDeliveryMethod interface. + */ +export function instanceOfDeliveryCheckoutResponseSplitDeliveryMethod(value) { + return true; +} +export function DeliveryCheckoutResponseSplitDeliveryMethodFromJSON(json) { + return DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped(json, false); +} +export function DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_time_zone_offset': json['delivery_time_zone_offset'] == null ? undefined : json['delivery_time_zone_offset'], + 'delivery_type': json['delivery_type'] == null ? undefined : DeliveryMethodDeliveryTypeEnumFromJSON(json['delivery_type']), + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(DeliveryMethodTimeslotFromJSON)), + 'unavailable_reason': json['unavailable_reason'] == null ? undefined : DeliveryCheckoutResponseUnavailableReasonEnumFromJSON(json['unavailable_reason']), + 'warehouse_time_zone_offset': json['warehouse_time_zone_offset'] == null ? undefined : json['warehouse_time_zone_offset'], + }; +} +export function DeliveryCheckoutResponseSplitDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_time_zone_offset': value['delivery_time_zone_offset'], + 'delivery_type': DeliveryMethodDeliveryTypeEnumToJSON(value['delivery_type']), + 'id': value['id'], + 'name': value['name'], + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(DeliveryMethodTimeslotToJSON)), + 'unavailable_reason': DeliveryCheckoutResponseUnavailableReasonEnumToJSON(value['unavailable_reason']), + 'warehouse_time_zone_offset': value['warehouse_time_zone_offset'], + }; +} diff --git a/dist/esm/models/DeliveryCheckoutResponseSplitItem.d.ts b/dist/esm/models/DeliveryCheckoutResponseSplitItem.d.ts new file mode 100644 index 0000000..f0adac5 --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseSplitItem.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о товарах. + * @export + * @interface DeliveryCheckoutResponseSplitItem + */ +export interface DeliveryCheckoutResponseSplitItem { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof DeliveryCheckoutResponseSplitItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitItem + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitItem + */ + sku?: number; +} +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitItem interface. + */ +export declare function instanceOfDeliveryCheckoutResponseSplitItem(value: object): value is DeliveryCheckoutResponseSplitItem; +export declare function DeliveryCheckoutResponseSplitItemFromJSON(json: any): DeliveryCheckoutResponseSplitItem; +export declare function DeliveryCheckoutResponseSplitItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseSplitItem; +export declare function DeliveryCheckoutResponseSplitItemToJSON(value?: DeliveryCheckoutResponseSplitItem | null): any; diff --git a/dist/esm/models/DeliveryCheckoutResponseSplitItem.js b/dist/esm/models/DeliveryCheckoutResponseSplitItem.js new file mode 100644 index 0000000..8dff4a4 --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseSplitItem.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitItem interface. + */ +export function instanceOfDeliveryCheckoutResponseSplitItem(value) { + return true; +} +export function DeliveryCheckoutResponseSplitItemFromJSON(json) { + return DeliveryCheckoutResponseSplitItemFromJSONTyped(json, false); +} +export function DeliveryCheckoutResponseSplitItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function DeliveryCheckoutResponseSplitItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/DeliveryCheckoutResponseUnavailableReasonEnum.d.ts b/dist/esm/models/DeliveryCheckoutResponseUnavailableReasonEnum.d.ts new file mode 100644 index 0000000..bf57692 --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseUnavailableReasonEnum.d.ts @@ -0,0 +1,121 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина недоступности: + * - `UNSPECIFIED` — доставка доступна; + * - `UNKNOWN` — неизвестная причина; + * - `OUT_OF_STOCK` — товар закончился; + * - `BANNED_FOR_AREA` — товар заблокирован для этой области; + * - `BANNED_FOR_LEGAL` — товар заблокирован для юридических лиц; + * - `BANNED` — товар заблокирован; + * - `BANNED_FOR_NOT_PREMIUM` — товар заблокирован для покупателей без подписки Premium; + * - `DELIVERY_UNAVAILABLE` — доставка недоступна, например, курьеры перегружены; + * - `BANNED_FOR_INDIVIDUAL` — товар заблокирован для физических лиц; + * - `INVALID_WEIGHT` — вес товара не указан; + * - `INVALID_MULTIPLICITY` — недопустимая кратность в штуках; + * - `NOT_FOUND_POINTS_DARK_STORES` — пункты в массиве дарксторов не найдены; + * - `INVALID_MULTI_WAREHOUSES` — товары в заказе с разными схемами доставки неверно распределены; + * - `MIN_PRICE` — сплит не прошёл минимальную цену; + * - `OZONE_DELIVERY_UNAVAILABLE` — доставка Ozon недоступна; + * - `RFBS_DELIVERY_UNAVAILABLE` — доставка по системе rFBS недоступна; + * - `HACK_COURIER_TAGS` — способ доставки исключён по правилу приоритетного показа; + * - `NO_SLA` — норматив комплектации отсутствует; + * - `DELIVERY_VARIANT_IS_CLOSING` — способ доставки в неподходящем статусе; + * - `TPL_NOT_INTEGRATED` — точки, по которым возврат невозможен; + * - `NOT_ALL_WAREHOUSES_ARE_SERVED` — доставка со склада отправления отсутствует; + * - `DELIVERY_SLOTS_NOT_FOUND` — таймслоты отсутствуют; + * - `NO_ROUTE` — маршрут не найден; + * - `CAPACITY_LIMIT` — таймслоты отсеяны из-за заполненности капаситета; + * - `PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION` — ограничение на максимальный объёмный вес посылки; + * - `PACKAGE_MAX_WEIGHT_RESTRICTION` — ограничение на максимальный физический вес посылки, в килограммах до тысячных грамма; + * - `MAX_COST_RESTRICTION` — ограничение на максимальную стоимость заказа, учитывается стоимость товаров, их доставки, но не учитывается страховой сбор в рублях; + * - `MIN_PACKAGE_WEIGHT_RESTRICTION` — ограничение на минимальный физический вес посылки в килограммах до тысячных грамма; + * - `MIN_COST_RESTRICTION` — ограничение на минимальную стоимость товаров заказа в рублях; + * - `MAX_DIMENSIONS_RESTRICTION` — ограничение на максимальные габариты посылки в сантиметрах; + * - `PRODUCT_TYPES_RESTRICTION` — ограничение на допустимые в заказе товарные категории; + * - `PRODUCT_TAGS_RESTRICTION` — ограничение на допустимые в заказе теги товаров; + * - `SELECTED_DELIVERY_METHOD_UNAVAILABLE` — выбранный способ доставки стал недоступным; + * - `SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE` — выбранный таймслот стал недоступным; + * - `MARKETPLACE_UNAVAILABLE` — в заказе товары нескольких маркетплейсов, оформить заказ можно только с 1; + * - `INVALID_PVZ_FOR_KGT` — выбранный ПВЗ не подходит для КГТ; + * - `LEGAL_USER_PREMIUM_SPLIT` — юридическим лицам запрещена покупка подписки Premium; + * - `USER_ALREADY_HAS_PREMIUM` — у пользователя уже есть подписка Premium и она не подарочная; + * - `WAIT_FOR_PAY_SUBSCRIPTION` — пользователь купил премиум-подписку, но не оплатил заказ или подписка ещё не перешла в активный статус; + * - `ADDRESS_NOT_SET ` — адрес не установлен; + * - `PICKUP_POINT_DISABLED` — ПВЗ недоступен; + * - `LEGAL_PREORDER` — предзаказ недоступен юридическим лицам; + * - `DELIVERY_TYPE_FOR_PREORDER` — тип доставки недоступен для предзаказа; + * - `CROSS_BORDER_PICKUP` — CrossBorder-товары не доставляются в пункты выдачи; + * - `ORDER_CUSTOMS_TYPES` — ограничения на таможенные типы; + * - `PACKAGE_MAX_COST` — ограничение на максимальную стоимость посылки,учитывается стоимость товаров и их доставки; + * - `SUPER_ECONOM` — недоступный «суперэконом»; + * - `ECONOM_NOT_FULL_QUANT` — неполный квант; + * - `EMPTY_DELIVERY_METHODS` — нет доступных способов доставки; + * + * @export + */ +export declare const DeliveryCheckoutResponseUnavailableReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNKNOWN: "UNKNOWN"; + readonly OUT_OF_STOCK: "OUT_OF_STOCK"; + readonly BANNED_FOR_AREA: "BANNED_FOR_AREA"; + readonly BANNED_FOR_LEGAL: "BANNED_FOR_LEGAL"; + readonly BANNED: "BANNED"; + readonly BANNED_FOR_NOT_PREMIUM: "BANNED_FOR_NOT_PREMIUM"; + readonly DELIVERY_UNAVAILABLE: "DELIVERY_UNAVAILABLE"; + readonly BANNED_FOR_INDIVIDUAL: "BANNED_FOR_INDIVIDUAL"; + readonly INVALID_WEIGHT: "INVALID_WEIGHT"; + readonly INVALID_MULTIPLICITY: "INVALID_MULTIPLICITY"; + readonly NOT_FOUND_POINTS_DARK_STORES: "NOT_FOUND_POINTS_DARK_STORES"; + readonly INVALID_MULTI_WAREHOUSES: "INVALID_MULTI_WAREHOUSES"; + readonly MIN_PRICE: "MIN_PRICE"; + readonly OZONE_DELIVERY_UNAVAILABLE: "OZONE_DELIVERY_UNAVAILABLE"; + readonly RFBS_DELIVERY_UNAVAILABLE: "RFBS_DELIVERY_UNAVAILABLE"; + readonly HACK_COURIER_TAGS: "HACK_COURIER_TAGS"; + readonly NO_SLA: "NO_SLA"; + readonly DELIVERY_VARIANT_IS_CLOSING: "DELIVERY_VARIANT_IS_CLOSING"; + readonly TPL_NOT_INTEGRATED: "TPL_NOT_INTEGRATED"; + readonly NOT_ALL_WAREHOUSES_ARE_SERVED: "NOT_ALL_WAREHOUSES_ARE_SERVED"; + readonly DELIVERY_SLOTS_NOT_FOUND: "DELIVERY_SLOTS_NOT_FOUND"; + readonly NO_ROUTE: "NO_ROUTE"; + readonly CAPACITY_LIMIT: "CAPACITY_LIMIT"; + readonly PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION: "PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION"; + readonly PACKAGE_MAX_WEIGHT_RESTRICTION: "PACKAGE_MAX_WEIGHT_RESTRICTION"; + readonly MAX_COST_RESTRICTION: "MAX_COST_RESTRICTION"; + readonly MIN_PACKAGE_WEIGHT_RESTRICTION: "MIN_PACKAGE_WEIGHT_RESTRICTION"; + readonly MIN_COST_RESTRICTION: "MIN_COST_RESTRICTION"; + readonly MAX_DIMENSIONS_RESTRICTION: "MAX_DIMENSIONS_RESTRICTION"; + readonly PRODUCT_TYPES_RESTRICTION: "PRODUCT_TYPES_RESTRICTION"; + readonly PRODUCT_TAGS_RESTRICTION: "PRODUCT_TAGS_RESTRICTION"; + readonly SELECTED_DELIVERY_METHOD_UNAVAILABLE: "SELECTED_DELIVERY_METHOD_UNAVAILABLE"; + readonly SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE: "SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE"; + readonly MARKETPLACE_UNAVAILABLE: "MARKETPLACE_UNAVAILABLE"; + readonly INVALID_PVZ_FOR_KGT: "INVALID_PVZ_FOR_KGT"; + readonly LEGAL_USER_PREMIUM_SPLIT: "LEGAL_USER_PREMIUM_SPLIT"; + readonly USER_ALREADY_HAS_PREMIUM: "USER_ALREADY_HAS_PREMIUM"; + readonly WAIT_FOR_PAY_SUBSCRIPTION: "WAIT_FOR_PAY_SUBSCRIPTION"; + readonly ADDRESS_NOT_SET: "ADDRESS_NOT_SET"; + readonly PICKUP_POINT_DISABLED: "PICKUP_POINT_DISABLED"; + readonly LEGAL_PREORDER: "LEGAL_PREORDER"; + readonly DELIVERY_TYPE_FOR_PREORDER: "DELIVERY_TYPE_FOR_PREORDER"; + readonly CROSS_BORDER_PICKUP: "CROSS_BORDER_PICKUP"; + readonly ORDER_CUSTOMS_TYPES: "ORDER_CUSTOMS_TYPES"; + readonly PACKAGE_MAX_COST: "PACKAGE_MAX_COST"; + readonly SUPER_ECONOM: "SUPER_ECONOM"; + readonly ECONOM_NOT_FULL_QUANT: "ECONOM_NOT_FULL_QUANT"; + readonly EMPTY_DELIVERY_METHODS: "EMPTY_DELIVERY_METHODS"; +}; +export type DeliveryCheckoutResponseUnavailableReasonEnum = typeof DeliveryCheckoutResponseUnavailableReasonEnum[keyof typeof DeliveryCheckoutResponseUnavailableReasonEnum]; +export declare function instanceOfDeliveryCheckoutResponseUnavailableReasonEnum(value: any): boolean; +export declare function DeliveryCheckoutResponseUnavailableReasonEnumFromJSON(json: any): DeliveryCheckoutResponseUnavailableReasonEnum; +export declare function DeliveryCheckoutResponseUnavailableReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseUnavailableReasonEnum; +export declare function DeliveryCheckoutResponseUnavailableReasonEnumToJSON(value?: DeliveryCheckoutResponseUnavailableReasonEnum | null): any; diff --git a/dist/esm/models/DeliveryCheckoutResponseUnavailableReasonEnum.js b/dist/esm/models/DeliveryCheckoutResponseUnavailableReasonEnum.js new file mode 100644 index 0000000..48dee13 --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseUnavailableReasonEnum.js @@ -0,0 +1,137 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина недоступности: + * - `UNSPECIFIED` — доставка доступна; + * - `UNKNOWN` — неизвестная причина; + * - `OUT_OF_STOCK` — товар закончился; + * - `BANNED_FOR_AREA` — товар заблокирован для этой области; + * - `BANNED_FOR_LEGAL` — товар заблокирован для юридических лиц; + * - `BANNED` — товар заблокирован; + * - `BANNED_FOR_NOT_PREMIUM` — товар заблокирован для покупателей без подписки Premium; + * - `DELIVERY_UNAVAILABLE` — доставка недоступна, например, курьеры перегружены; + * - `BANNED_FOR_INDIVIDUAL` — товар заблокирован для физических лиц; + * - `INVALID_WEIGHT` — вес товара не указан; + * - `INVALID_MULTIPLICITY` — недопустимая кратность в штуках; + * - `NOT_FOUND_POINTS_DARK_STORES` — пункты в массиве дарксторов не найдены; + * - `INVALID_MULTI_WAREHOUSES` — товары в заказе с разными схемами доставки неверно распределены; + * - `MIN_PRICE` — сплит не прошёл минимальную цену; + * - `OZONE_DELIVERY_UNAVAILABLE` — доставка Ozon недоступна; + * - `RFBS_DELIVERY_UNAVAILABLE` — доставка по системе rFBS недоступна; + * - `HACK_COURIER_TAGS` — способ доставки исключён по правилу приоритетного показа; + * - `NO_SLA` — норматив комплектации отсутствует; + * - `DELIVERY_VARIANT_IS_CLOSING` — способ доставки в неподходящем статусе; + * - `TPL_NOT_INTEGRATED` — точки, по которым возврат невозможен; + * - `NOT_ALL_WAREHOUSES_ARE_SERVED` — доставка со склада отправления отсутствует; + * - `DELIVERY_SLOTS_NOT_FOUND` — таймслоты отсутствуют; + * - `NO_ROUTE` — маршрут не найден; + * - `CAPACITY_LIMIT` — таймслоты отсеяны из-за заполненности капаситета; + * - `PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION` — ограничение на максимальный объёмный вес посылки; + * - `PACKAGE_MAX_WEIGHT_RESTRICTION` — ограничение на максимальный физический вес посылки, в килограммах до тысячных грамма; + * - `MAX_COST_RESTRICTION` — ограничение на максимальную стоимость заказа, учитывается стоимость товаров, их доставки, но не учитывается страховой сбор в рублях; + * - `MIN_PACKAGE_WEIGHT_RESTRICTION` — ограничение на минимальный физический вес посылки в килограммах до тысячных грамма; + * - `MIN_COST_RESTRICTION` — ограничение на минимальную стоимость товаров заказа в рублях; + * - `MAX_DIMENSIONS_RESTRICTION` — ограничение на максимальные габариты посылки в сантиметрах; + * - `PRODUCT_TYPES_RESTRICTION` — ограничение на допустимые в заказе товарные категории; + * - `PRODUCT_TAGS_RESTRICTION` — ограничение на допустимые в заказе теги товаров; + * - `SELECTED_DELIVERY_METHOD_UNAVAILABLE` — выбранный способ доставки стал недоступным; + * - `SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE` — выбранный таймслот стал недоступным; + * - `MARKETPLACE_UNAVAILABLE` — в заказе товары нескольких маркетплейсов, оформить заказ можно только с 1; + * - `INVALID_PVZ_FOR_KGT` — выбранный ПВЗ не подходит для КГТ; + * - `LEGAL_USER_PREMIUM_SPLIT` — юридическим лицам запрещена покупка подписки Premium; + * - `USER_ALREADY_HAS_PREMIUM` — у пользователя уже есть подписка Premium и она не подарочная; + * - `WAIT_FOR_PAY_SUBSCRIPTION` — пользователь купил премиум-подписку, но не оплатил заказ или подписка ещё не перешла в активный статус; + * - `ADDRESS_NOT_SET ` — адрес не установлен; + * - `PICKUP_POINT_DISABLED` — ПВЗ недоступен; + * - `LEGAL_PREORDER` — предзаказ недоступен юридическим лицам; + * - `DELIVERY_TYPE_FOR_PREORDER` — тип доставки недоступен для предзаказа; + * - `CROSS_BORDER_PICKUP` — CrossBorder-товары не доставляются в пункты выдачи; + * - `ORDER_CUSTOMS_TYPES` — ограничения на таможенные типы; + * - `PACKAGE_MAX_COST` — ограничение на максимальную стоимость посылки,учитывается стоимость товаров и их доставки; + * - `SUPER_ECONOM` — недоступный «суперэконом»; + * - `ECONOM_NOT_FULL_QUANT` — неполный квант; + * - `EMPTY_DELIVERY_METHODS` — нет доступных способов доставки; + * + * @export + */ +export const DeliveryCheckoutResponseUnavailableReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNKNOWN: 'UNKNOWN', + OUT_OF_STOCK: 'OUT_OF_STOCK', + BANNED_FOR_AREA: 'BANNED_FOR_AREA', + BANNED_FOR_LEGAL: 'BANNED_FOR_LEGAL', + BANNED: 'BANNED', + BANNED_FOR_NOT_PREMIUM: 'BANNED_FOR_NOT_PREMIUM', + DELIVERY_UNAVAILABLE: 'DELIVERY_UNAVAILABLE', + BANNED_FOR_INDIVIDUAL: 'BANNED_FOR_INDIVIDUAL', + INVALID_WEIGHT: 'INVALID_WEIGHT', + INVALID_MULTIPLICITY: 'INVALID_MULTIPLICITY', + NOT_FOUND_POINTS_DARK_STORES: 'NOT_FOUND_POINTS_DARK_STORES', + INVALID_MULTI_WAREHOUSES: 'INVALID_MULTI_WAREHOUSES', + MIN_PRICE: 'MIN_PRICE', + OZONE_DELIVERY_UNAVAILABLE: 'OZONE_DELIVERY_UNAVAILABLE', + RFBS_DELIVERY_UNAVAILABLE: 'RFBS_DELIVERY_UNAVAILABLE', + HACK_COURIER_TAGS: 'HACK_COURIER_TAGS', + NO_SLA: 'NO_SLA', + DELIVERY_VARIANT_IS_CLOSING: 'DELIVERY_VARIANT_IS_CLOSING', + TPL_NOT_INTEGRATED: 'TPL_NOT_INTEGRATED', + NOT_ALL_WAREHOUSES_ARE_SERVED: 'NOT_ALL_WAREHOUSES_ARE_SERVED', + DELIVERY_SLOTS_NOT_FOUND: 'DELIVERY_SLOTS_NOT_FOUND', + NO_ROUTE: 'NO_ROUTE', + CAPACITY_LIMIT: 'CAPACITY_LIMIT', + PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION: 'PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION', + PACKAGE_MAX_WEIGHT_RESTRICTION: 'PACKAGE_MAX_WEIGHT_RESTRICTION', + MAX_COST_RESTRICTION: 'MAX_COST_RESTRICTION', + MIN_PACKAGE_WEIGHT_RESTRICTION: 'MIN_PACKAGE_WEIGHT_RESTRICTION', + MIN_COST_RESTRICTION: 'MIN_COST_RESTRICTION', + MAX_DIMENSIONS_RESTRICTION: 'MAX_DIMENSIONS_RESTRICTION', + PRODUCT_TYPES_RESTRICTION: 'PRODUCT_TYPES_RESTRICTION', + PRODUCT_TAGS_RESTRICTION: 'PRODUCT_TAGS_RESTRICTION', + SELECTED_DELIVERY_METHOD_UNAVAILABLE: 'SELECTED_DELIVERY_METHOD_UNAVAILABLE', + SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE: 'SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE', + MARKETPLACE_UNAVAILABLE: 'MARKETPLACE_UNAVAILABLE', + INVALID_PVZ_FOR_KGT: 'INVALID_PVZ_FOR_KGT', + LEGAL_USER_PREMIUM_SPLIT: 'LEGAL_USER_PREMIUM_SPLIT', + USER_ALREADY_HAS_PREMIUM: 'USER_ALREADY_HAS_PREMIUM', + WAIT_FOR_PAY_SUBSCRIPTION: 'WAIT_FOR_PAY_SUBSCRIPTION', + ADDRESS_NOT_SET: 'ADDRESS_NOT_SET', + PICKUP_POINT_DISABLED: 'PICKUP_POINT_DISABLED', + LEGAL_PREORDER: 'LEGAL_PREORDER', + DELIVERY_TYPE_FOR_PREORDER: 'DELIVERY_TYPE_FOR_PREORDER', + CROSS_BORDER_PICKUP: 'CROSS_BORDER_PICKUP', + ORDER_CUSTOMS_TYPES: 'ORDER_CUSTOMS_TYPES', + PACKAGE_MAX_COST: 'PACKAGE_MAX_COST', + SUPER_ECONOM: 'SUPER_ECONOM', + ECONOM_NOT_FULL_QUANT: 'ECONOM_NOT_FULL_QUANT', + EMPTY_DELIVERY_METHODS: 'EMPTY_DELIVERY_METHODS' +}; +export function instanceOfDeliveryCheckoutResponseUnavailableReasonEnum(value) { + for (const key in DeliveryCheckoutResponseUnavailableReasonEnum) { + if (Object.prototype.hasOwnProperty.call(DeliveryCheckoutResponseUnavailableReasonEnum, key)) { + if (DeliveryCheckoutResponseUnavailableReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function DeliveryCheckoutResponseUnavailableReasonEnumFromJSON(json) { + return DeliveryCheckoutResponseUnavailableReasonEnumFromJSONTyped(json, false); +} +export function DeliveryCheckoutResponseUnavailableReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DeliveryCheckoutResponseUnavailableReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.d.ts b/dist/esm/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.d.ts new file mode 100644 index 0000000..bd5e837 --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `UNSPECIFIED` — не определена; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export declare const DeliveryCheckoutResponseV2SplitDeliverySchemaEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly FBO: "FBO"; + readonly FBS: "FBS"; +}; +export type DeliveryCheckoutResponseV2SplitDeliverySchemaEnum = typeof DeliveryCheckoutResponseV2SplitDeliverySchemaEnum[keyof typeof DeliveryCheckoutResponseV2SplitDeliverySchemaEnum]; +export declare function instanceOfDeliveryCheckoutResponseV2SplitDeliverySchemaEnum(value: any): boolean; +export declare function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON(json: any): DeliveryCheckoutResponseV2SplitDeliverySchemaEnum; +export declare function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseV2SplitDeliverySchemaEnum; +export declare function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON(value?: DeliveryCheckoutResponseV2SplitDeliverySchemaEnum | null): any; diff --git a/dist/esm/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.js b/dist/esm/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.js new file mode 100644 index 0000000..d73ccf4 --- /dev/null +++ b/dist/esm/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `UNSPECIFIED` — не определена; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export const DeliveryCheckoutResponseV2SplitDeliverySchemaEnum = { + UNSPECIFIED: 'UNSPECIFIED', + FBO: 'FBO', + FBS: 'FBS' +}; +export function instanceOfDeliveryCheckoutResponseV2SplitDeliverySchemaEnum(value) { + for (const key in DeliveryCheckoutResponseV2SplitDeliverySchemaEnum) { + if (Object.prototype.hasOwnProperty.call(DeliveryCheckoutResponseV2SplitDeliverySchemaEnum, key)) { + if (DeliveryCheckoutResponseV2SplitDeliverySchemaEnum[key] === value) { + return true; + } + } + } + return false; +} +export function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON(json) { + return DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSONTyped(json, false); +} +export function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/DeliveryCourier.d.ts b/dist/esm/models/DeliveryCourier.d.ts new file mode 100644 index 0000000..afacd06 --- /dev/null +++ b/dist/esm/models/DeliveryCourier.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CourierCoordinates } from './CourierCoordinates'; +/** + * Информация о доставке курьером. + * @export + * @interface DeliveryCourier + */ +export interface DeliveryCourier { + /** + * Квартира. + * @type {string} + * @memberof DeliveryCourier + */ + apartment?: string; + /** + * Город. + * @type {string} + * @memberof DeliveryCourier + */ + city: string; + /** + * Комментарий. + * @type {string} + * @memberof DeliveryCourier + */ + comment?: string; + /** + * + * @type {CourierCoordinates} + * @memberof DeliveryCourier + */ + coordinates: CourierCoordinates; + /** + * Страна. + * @type {string} + * @memberof DeliveryCourier + */ + country: string; + /** + * Подъезд. + * @type {string} + * @memberof DeliveryCourier + */ + entrance?: string; + /** + * Этаж. + * @type {string} + * @memberof DeliveryCourier + */ + floor?: string; + /** + * Номер дома. + * @type {string} + * @memberof DeliveryCourier + */ + house_number: string; + /** + * Код домофона. + * @type {string} + * @memberof DeliveryCourier + */ + intercom?: string; + /** + * Регион. + * @type {string} + * @memberof DeliveryCourier + */ + region?: string; + /** + * Улица. + * @type {string} + * @memberof DeliveryCourier + */ + street?: string; + /** + * Индекс. + * @type {string} + * @memberof DeliveryCourier + */ + zip_code?: string; +} +/** + * Check if a given object implements the DeliveryCourier interface. + */ +export declare function instanceOfDeliveryCourier(value: object): value is DeliveryCourier; +export declare function DeliveryCourierFromJSON(json: any): DeliveryCourier; +export declare function DeliveryCourierFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCourier; +export declare function DeliveryCourierToJSON(value?: DeliveryCourier | null): any; diff --git a/dist/esm/models/DeliveryCourier.js b/dist/esm/models/DeliveryCourier.js new file mode 100644 index 0000000..4840b19 --- /dev/null +++ b/dist/esm/models/DeliveryCourier.js @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CourierCoordinatesFromJSON, CourierCoordinatesToJSON, } from './CourierCoordinates'; +/** + * Check if a given object implements the DeliveryCourier interface. + */ +export function instanceOfDeliveryCourier(value) { + if (!('city' in value) || value['city'] === undefined) + return false; + if (!('coordinates' in value) || value['coordinates'] === undefined) + return false; + if (!('country' in value) || value['country'] === undefined) + return false; + if (!('house_number' in value) || value['house_number'] === undefined) + return false; + return true; +} +export function DeliveryCourierFromJSON(json) { + return DeliveryCourierFromJSONTyped(json, false); +} +export function DeliveryCourierFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'apartment': json['apartment'] == null ? undefined : json['apartment'], + 'city': json['city'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'coordinates': CourierCoordinatesFromJSON(json['coordinates']), + 'country': json['country'], + 'entrance': json['entrance'] == null ? undefined : json['entrance'], + 'floor': json['floor'] == null ? undefined : json['floor'], + 'house_number': json['house_number'], + 'intercom': json['intercom'] == null ? undefined : json['intercom'], + 'region': json['region'] == null ? undefined : json['region'], + 'street': json['street'] == null ? undefined : json['street'], + 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], + }; +} +export function DeliveryCourierToJSON(value) { + if (value == null) { + return value; + } + return { + 'apartment': value['apartment'], + 'city': value['city'], + 'comment': value['comment'], + 'coordinates': CourierCoordinatesToJSON(value['coordinates']), + 'country': value['country'], + 'entrance': value['entrance'], + 'floor': value['floor'], + 'house_number': value['house_number'], + 'intercom': value['intercom'], + 'region': value['region'], + 'street': value['street'], + 'zip_code': value['zip_code'], + }; +} diff --git a/dist/esm/models/DeliveryDetailsDropOffPointDetails.d.ts b/dist/esm/models/DeliveryDetailsDropOffPointDetails.d.ts new file mode 100644 index 0000000..ebedb51 --- /dev/null +++ b/dist/esm/models/DeliveryDetailsDropOffPointDetails.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1fbpTimeslot } from './V1fbpTimeslot'; +/** + * Детали drop-off пункта. + * @export + * @interface DeliveryDetailsDropOffPointDetails + */ +export interface DeliveryDetailsDropOffPointDetails { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof DeliveryDetailsDropOffPointDetails + */ + id?: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof DeliveryDetailsDropOffPointDetails + */ + province_uuid?: string; + /** + * + * @type {V1fbpTimeslot} + * @memberof DeliveryDetailsDropOffPointDetails + */ + timeslot?: V1fbpTimeslot; +} +/** + * Check if a given object implements the DeliveryDetailsDropOffPointDetails interface. + */ +export declare function instanceOfDeliveryDetailsDropOffPointDetails(value: object): value is DeliveryDetailsDropOffPointDetails; +export declare function DeliveryDetailsDropOffPointDetailsFromJSON(json: any): DeliveryDetailsDropOffPointDetails; +export declare function DeliveryDetailsDropOffPointDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryDetailsDropOffPointDetails; +export declare function DeliveryDetailsDropOffPointDetailsToJSON(value?: DeliveryDetailsDropOffPointDetails | null): any; diff --git a/dist/esm/models/DeliveryDetailsDropOffPointDetails.js b/dist/esm/models/DeliveryDetailsDropOffPointDetails.js new file mode 100644 index 0000000..3da246c --- /dev/null +++ b/dist/esm/models/DeliveryDetailsDropOffPointDetails.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1fbpTimeslotFromJSON, V1fbpTimeslotToJSON, } from './V1fbpTimeslot'; +/** + * Check if a given object implements the DeliveryDetailsDropOffPointDetails interface. + */ +export function instanceOfDeliveryDetailsDropOffPointDetails(value) { + return true; +} +export function DeliveryDetailsDropOffPointDetailsFromJSON(json) { + return DeliveryDetailsDropOffPointDetailsFromJSONTyped(json, false); +} +export function DeliveryDetailsDropOffPointDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'province_uuid': json['province_uuid'] == null ? undefined : json['province_uuid'], + 'timeslot': json['timeslot'] == null ? undefined : V1fbpTimeslotFromJSON(json['timeslot']), + }; +} +export function DeliveryDetailsDropOffPointDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'province_uuid': value['province_uuid'], + 'timeslot': V1fbpTimeslotToJSON(value['timeslot']), + }; +} diff --git a/dist/esm/models/DeliveryDetailsSupplyType.d.ts b/dist/esm/models/DeliveryDetailsSupplyType.d.ts new file mode 100644 index 0000000..8f12477 --- /dev/null +++ b/dist/esm/models/DeliveryDetailsSupplyType.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `SUPPLY_TYPE_UNSPECIFIED` — не определён; + * - `DIRECT_BY_SELLER` — доставка до склада силами продавца; + * - `DIRECT_BY_TPL` — доставка до склада сторонней транспортной компанией; + * - `DROP_OFF` — доставка до drop-off пункта; + * - `PICK_UP` — доставка курьером от склада продавца. + * + * @export + */ +export declare const DeliveryDetailsSupplyType: { + readonly SUPPLY_TYPE_UNSPECIFIED: "SUPPLY_TYPE_UNSPECIFIED"; + readonly DIRECT_BY_SELLER: "DIRECT_BY_SELLER"; + readonly DIRECT_BY_TPL: "DIRECT_BY_TPL"; + readonly DROP_OFF: "DROP_OFF"; + readonly PICK_UP: "PICK_UP"; +}; +export type DeliveryDetailsSupplyType = typeof DeliveryDetailsSupplyType[keyof typeof DeliveryDetailsSupplyType]; +export declare function instanceOfDeliveryDetailsSupplyType(value: any): boolean; +export declare function DeliveryDetailsSupplyTypeFromJSON(json: any): DeliveryDetailsSupplyType; +export declare function DeliveryDetailsSupplyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryDetailsSupplyType; +export declare function DeliveryDetailsSupplyTypeToJSON(value?: DeliveryDetailsSupplyType | null): any; diff --git a/dist/esm/models/DeliveryDetailsSupplyType.js b/dist/esm/models/DeliveryDetailsSupplyType.js new file mode 100644 index 0000000..c504044 --- /dev/null +++ b/dist/esm/models/DeliveryDetailsSupplyType.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `SUPPLY_TYPE_UNSPECIFIED` — не определён; + * - `DIRECT_BY_SELLER` — доставка до склада силами продавца; + * - `DIRECT_BY_TPL` — доставка до склада сторонней транспортной компанией; + * - `DROP_OFF` — доставка до drop-off пункта; + * - `PICK_UP` — доставка курьером от склада продавца. + * + * @export + */ +export const DeliveryDetailsSupplyType = { + SUPPLY_TYPE_UNSPECIFIED: 'SUPPLY_TYPE_UNSPECIFIED', + DIRECT_BY_SELLER: 'DIRECT_BY_SELLER', + DIRECT_BY_TPL: 'DIRECT_BY_TPL', + DROP_OFF: 'DROP_OFF', + PICK_UP: 'PICK_UP' +}; +export function instanceOfDeliveryDetailsSupplyType(value) { + for (const key in DeliveryDetailsSupplyType) { + if (Object.prototype.hasOwnProperty.call(DeliveryDetailsSupplyType, key)) { + if (DeliveryDetailsSupplyType[key] === value) { + return true; + } + } + } + return false; +} +export function DeliveryDetailsSupplyTypeFromJSON(json) { + return DeliveryDetailsSupplyTypeFromJSONTyped(json, false); +} +export function DeliveryDetailsSupplyTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DeliveryDetailsSupplyTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/DeliveryMapRequestViewportCoordinatesLeft.d.ts b/dist/esm/models/DeliveryMapRequestViewportCoordinatesLeft.d.ts new file mode 100644 index 0000000..fa3589c --- /dev/null +++ b/dist/esm/models/DeliveryMapRequestViewportCoordinatesLeft.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты левого нижнего угла области видимости карты. + * @export + * @interface DeliveryMapRequestViewportCoordinatesLeft + */ +export interface DeliveryMapRequestViewportCoordinatesLeft { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapRequestViewportCoordinatesLeft + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapRequestViewportCoordinatesLeft + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapRequestViewportCoordinatesLeft interface. + */ +export declare function instanceOfDeliveryMapRequestViewportCoordinatesLeft(value: object): value is DeliveryMapRequestViewportCoordinatesLeft; +export declare function DeliveryMapRequestViewportCoordinatesLeftFromJSON(json: any): DeliveryMapRequestViewportCoordinatesLeft; +export declare function DeliveryMapRequestViewportCoordinatesLeftFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapRequestViewportCoordinatesLeft; +export declare function DeliveryMapRequestViewportCoordinatesLeftToJSON(value?: DeliveryMapRequestViewportCoordinatesLeft | null): any; diff --git a/dist/esm/models/DeliveryMapRequestViewportCoordinatesLeft.js b/dist/esm/models/DeliveryMapRequestViewportCoordinatesLeft.js new file mode 100644 index 0000000..420d7af --- /dev/null +++ b/dist/esm/models/DeliveryMapRequestViewportCoordinatesLeft.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMapRequestViewportCoordinatesLeft interface. + */ +export function instanceOfDeliveryMapRequestViewportCoordinatesLeft(value) { + return true; +} +export function DeliveryMapRequestViewportCoordinatesLeftFromJSON(json) { + return DeliveryMapRequestViewportCoordinatesLeftFromJSONTyped(json, false); +} +export function DeliveryMapRequestViewportCoordinatesLeftFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +export function DeliveryMapRequestViewportCoordinatesLeftToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/esm/models/DeliveryMapRequestViewportCoordinatesRight.d.ts b/dist/esm/models/DeliveryMapRequestViewportCoordinatesRight.d.ts new file mode 100644 index 0000000..b21182a --- /dev/null +++ b/dist/esm/models/DeliveryMapRequestViewportCoordinatesRight.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты правого верхнего угла области видимости карты. + * @export + * @interface DeliveryMapRequestViewportCoordinatesRight + */ +export interface DeliveryMapRequestViewportCoordinatesRight { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapRequestViewportCoordinatesRight + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapRequestViewportCoordinatesRight + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapRequestViewportCoordinatesRight interface. + */ +export declare function instanceOfDeliveryMapRequestViewportCoordinatesRight(value: object): value is DeliveryMapRequestViewportCoordinatesRight; +export declare function DeliveryMapRequestViewportCoordinatesRightFromJSON(json: any): DeliveryMapRequestViewportCoordinatesRight; +export declare function DeliveryMapRequestViewportCoordinatesRightFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapRequestViewportCoordinatesRight; +export declare function DeliveryMapRequestViewportCoordinatesRightToJSON(value?: DeliveryMapRequestViewportCoordinatesRight | null): any; diff --git a/dist/esm/models/DeliveryMapRequestViewportCoordinatesRight.js b/dist/esm/models/DeliveryMapRequestViewportCoordinatesRight.js new file mode 100644 index 0000000..a982378 --- /dev/null +++ b/dist/esm/models/DeliveryMapRequestViewportCoordinatesRight.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMapRequestViewportCoordinatesRight interface. + */ +export function instanceOfDeliveryMapRequestViewportCoordinatesRight(value) { + return true; +} +export function DeliveryMapRequestViewportCoordinatesRightFromJSON(json) { + return DeliveryMapRequestViewportCoordinatesRightFromJSONTyped(json, false); +} +export function DeliveryMapRequestViewportCoordinatesRightFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +export function DeliveryMapRequestViewportCoordinatesRightToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/esm/models/DeliveryMapResponseCluster.d.ts b/dist/esm/models/DeliveryMapResponseCluster.d.ts new file mode 100644 index 0000000..abdc32c --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseCluster.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMapResponseClusterCoordinates } from './DeliveryMapResponseClusterCoordinates'; +import type { DeliveryMapResponseClusterViewport } from './DeliveryMapResponseClusterViewport'; +/** + * + * @export + * @interface DeliveryMapResponseCluster + */ +export interface DeliveryMapResponseCluster { + /** + * + * @type {DeliveryMapResponseClusterCoordinates} + * @memberof DeliveryMapResponseCluster + */ + coordinate?: DeliveryMapResponseClusterCoordinates; + /** + * `true`, если все точки находятся в одном здании. + * + * @type {boolean} + * @memberof DeliveryMapResponseCluster + */ + is_same_building?: boolean; + /** + * Идентификаторы точек на карте. + * @type {Array} + * @memberof DeliveryMapResponseCluster + */ + map_point_ids?: Array; + /** + * Количество точек в кластере. + * @type {number} + * @memberof DeliveryMapResponseCluster + */ + points_count?: number; + /** + * + * @type {DeliveryMapResponseClusterViewport} + * @memberof DeliveryMapResponseCluster + */ + viewport?: DeliveryMapResponseClusterViewport; +} +/** + * Check if a given object implements the DeliveryMapResponseCluster interface. + */ +export declare function instanceOfDeliveryMapResponseCluster(value: object): value is DeliveryMapResponseCluster; +export declare function DeliveryMapResponseClusterFromJSON(json: any): DeliveryMapResponseCluster; +export declare function DeliveryMapResponseClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseCluster; +export declare function DeliveryMapResponseClusterToJSON(value?: DeliveryMapResponseCluster | null): any; diff --git a/dist/esm/models/DeliveryMapResponseCluster.js b/dist/esm/models/DeliveryMapResponseCluster.js new file mode 100644 index 0000000..505325c --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseCluster.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMapResponseClusterCoordinatesFromJSON, DeliveryMapResponseClusterCoordinatesToJSON, } from './DeliveryMapResponseClusterCoordinates'; +import { DeliveryMapResponseClusterViewportFromJSON, DeliveryMapResponseClusterViewportToJSON, } from './DeliveryMapResponseClusterViewport'; +/** + * Check if a given object implements the DeliveryMapResponseCluster interface. + */ +export function instanceOfDeliveryMapResponseCluster(value) { + return true; +} +export function DeliveryMapResponseClusterFromJSON(json) { + return DeliveryMapResponseClusterFromJSONTyped(json, false); +} +export function DeliveryMapResponseClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinate': json['coordinate'] == null ? undefined : DeliveryMapResponseClusterCoordinatesFromJSON(json['coordinate']), + 'is_same_building': json['is_same_building'] == null ? undefined : json['is_same_building'], + 'map_point_ids': json['map_point_ids'] == null ? undefined : json['map_point_ids'], + 'points_count': json['points_count'] == null ? undefined : json['points_count'], + 'viewport': json['viewport'] == null ? undefined : DeliveryMapResponseClusterViewportFromJSON(json['viewport']), + }; +} +export function DeliveryMapResponseClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinate': DeliveryMapResponseClusterCoordinatesToJSON(value['coordinate']), + 'is_same_building': value['is_same_building'], + 'map_point_ids': value['map_point_ids'], + 'points_count': value['points_count'], + 'viewport': DeliveryMapResponseClusterViewportToJSON(value['viewport']), + }; +} diff --git a/dist/esm/models/DeliveryMapResponseClusterCoordinates.d.ts b/dist/esm/models/DeliveryMapResponseClusterCoordinates.d.ts new file mode 100644 index 0000000..3539378 --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseClusterCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface DeliveryMapResponseClusterCoordinates + */ +export interface DeliveryMapResponseClusterCoordinates { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinates + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinates + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinates interface. + */ +export declare function instanceOfDeliveryMapResponseClusterCoordinates(value: object): value is DeliveryMapResponseClusterCoordinates; +export declare function DeliveryMapResponseClusterCoordinatesFromJSON(json: any): DeliveryMapResponseClusterCoordinates; +export declare function DeliveryMapResponseClusterCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseClusterCoordinates; +export declare function DeliveryMapResponseClusterCoordinatesToJSON(value?: DeliveryMapResponseClusterCoordinates | null): any; diff --git a/dist/esm/models/DeliveryMapResponseClusterCoordinates.js b/dist/esm/models/DeliveryMapResponseClusterCoordinates.js new file mode 100644 index 0000000..f9e9987 --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseClusterCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinates interface. + */ +export function instanceOfDeliveryMapResponseClusterCoordinates(value) { + return true; +} +export function DeliveryMapResponseClusterCoordinatesFromJSON(json) { + return DeliveryMapResponseClusterCoordinatesFromJSONTyped(json, false); +} +export function DeliveryMapResponseClusterCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +export function DeliveryMapResponseClusterCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/esm/models/DeliveryMapResponseClusterCoordinatesLeft.d.ts b/dist/esm/models/DeliveryMapResponseClusterCoordinatesLeft.d.ts new file mode 100644 index 0000000..cea4af4 --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseClusterCoordinatesLeft.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты левого нижнего угла области видимости карты. + * @export + * @interface DeliveryMapResponseClusterCoordinatesLeft + */ +export interface DeliveryMapResponseClusterCoordinatesLeft { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinatesLeft + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinatesLeft + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinatesLeft interface. + */ +export declare function instanceOfDeliveryMapResponseClusterCoordinatesLeft(value: object): value is DeliveryMapResponseClusterCoordinatesLeft; +export declare function DeliveryMapResponseClusterCoordinatesLeftFromJSON(json: any): DeliveryMapResponseClusterCoordinatesLeft; +export declare function DeliveryMapResponseClusterCoordinatesLeftFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseClusterCoordinatesLeft; +export declare function DeliveryMapResponseClusterCoordinatesLeftToJSON(value?: DeliveryMapResponseClusterCoordinatesLeft | null): any; diff --git a/dist/esm/models/DeliveryMapResponseClusterCoordinatesLeft.js b/dist/esm/models/DeliveryMapResponseClusterCoordinatesLeft.js new file mode 100644 index 0000000..8e2046a --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseClusterCoordinatesLeft.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinatesLeft interface. + */ +export function instanceOfDeliveryMapResponseClusterCoordinatesLeft(value) { + return true; +} +export function DeliveryMapResponseClusterCoordinatesLeftFromJSON(json) { + return DeliveryMapResponseClusterCoordinatesLeftFromJSONTyped(json, false); +} +export function DeliveryMapResponseClusterCoordinatesLeftFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +export function DeliveryMapResponseClusterCoordinatesLeftToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/esm/models/DeliveryMapResponseClusterCoordinatesRight.d.ts b/dist/esm/models/DeliveryMapResponseClusterCoordinatesRight.d.ts new file mode 100644 index 0000000..12a776c --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseClusterCoordinatesRight.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты правого верхнего угла области видимости карты. + * @export + * @interface DeliveryMapResponseClusterCoordinatesRight + */ +export interface DeliveryMapResponseClusterCoordinatesRight { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinatesRight + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinatesRight + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinatesRight interface. + */ +export declare function instanceOfDeliveryMapResponseClusterCoordinatesRight(value: object): value is DeliveryMapResponseClusterCoordinatesRight; +export declare function DeliveryMapResponseClusterCoordinatesRightFromJSON(json: any): DeliveryMapResponseClusterCoordinatesRight; +export declare function DeliveryMapResponseClusterCoordinatesRightFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseClusterCoordinatesRight; +export declare function DeliveryMapResponseClusterCoordinatesRightToJSON(value?: DeliveryMapResponseClusterCoordinatesRight | null): any; diff --git a/dist/esm/models/DeliveryMapResponseClusterCoordinatesRight.js b/dist/esm/models/DeliveryMapResponseClusterCoordinatesRight.js new file mode 100644 index 0000000..374ac2c --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseClusterCoordinatesRight.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinatesRight interface. + */ +export function instanceOfDeliveryMapResponseClusterCoordinatesRight(value) { + return true; +} +export function DeliveryMapResponseClusterCoordinatesRightFromJSON(json) { + return DeliveryMapResponseClusterCoordinatesRightFromJSONTyped(json, false); +} +export function DeliveryMapResponseClusterCoordinatesRightFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +export function DeliveryMapResponseClusterCoordinatesRightToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/esm/models/DeliveryMapResponseClusterViewport.d.ts b/dist/esm/models/DeliveryMapResponseClusterViewport.d.ts new file mode 100644 index 0000000..59fc1fa --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseClusterViewport.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMapResponseClusterCoordinatesLeft } from './DeliveryMapResponseClusterCoordinatesLeft'; +import type { DeliveryMapResponseClusterCoordinatesRight } from './DeliveryMapResponseClusterCoordinatesRight'; +/** + * Область карты для получения точек в кластере. + * @export + * @interface DeliveryMapResponseClusterViewport + */ +export interface DeliveryMapResponseClusterViewport { + /** + * + * @type {DeliveryMapResponseClusterCoordinatesLeft} + * @memberof DeliveryMapResponseClusterViewport + */ + left_bottom?: DeliveryMapResponseClusterCoordinatesLeft; + /** + * + * @type {DeliveryMapResponseClusterCoordinatesRight} + * @memberof DeliveryMapResponseClusterViewport + */ + right_top?: DeliveryMapResponseClusterCoordinatesRight; +} +/** + * Check if a given object implements the DeliveryMapResponseClusterViewport interface. + */ +export declare function instanceOfDeliveryMapResponseClusterViewport(value: object): value is DeliveryMapResponseClusterViewport; +export declare function DeliveryMapResponseClusterViewportFromJSON(json: any): DeliveryMapResponseClusterViewport; +export declare function DeliveryMapResponseClusterViewportFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseClusterViewport; +export declare function DeliveryMapResponseClusterViewportToJSON(value?: DeliveryMapResponseClusterViewport | null): any; diff --git a/dist/esm/models/DeliveryMapResponseClusterViewport.js b/dist/esm/models/DeliveryMapResponseClusterViewport.js new file mode 100644 index 0000000..7af560f --- /dev/null +++ b/dist/esm/models/DeliveryMapResponseClusterViewport.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMapResponseClusterCoordinatesLeftFromJSON, DeliveryMapResponseClusterCoordinatesLeftToJSON, } from './DeliveryMapResponseClusterCoordinatesLeft'; +import { DeliveryMapResponseClusterCoordinatesRightFromJSON, DeliveryMapResponseClusterCoordinatesRightToJSON, } from './DeliveryMapResponseClusterCoordinatesRight'; +/** + * Check if a given object implements the DeliveryMapResponseClusterViewport interface. + */ +export function instanceOfDeliveryMapResponseClusterViewport(value) { + return true; +} +export function DeliveryMapResponseClusterViewportFromJSON(json) { + return DeliveryMapResponseClusterViewportFromJSONTyped(json, false); +} +export function DeliveryMapResponseClusterViewportFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'left_bottom': json['left_bottom'] == null ? undefined : DeliveryMapResponseClusterCoordinatesLeftFromJSON(json['left_bottom']), + 'right_top': json['right_top'] == null ? undefined : DeliveryMapResponseClusterCoordinatesRightFromJSON(json['right_top']), + }; +} +export function DeliveryMapResponseClusterViewportToJSON(value) { + if (value == null) { + return value; + } + return { + 'left_bottom': DeliveryMapResponseClusterCoordinatesLeftToJSON(value['left_bottom']), + 'right_top': DeliveryMapResponseClusterCoordinatesRightToJSON(value['right_top']), + }; +} diff --git a/dist/esm/models/DeliveryMethodAddressDetails.d.ts b/dist/esm/models/DeliveryMethodAddressDetails.d.ts new file mode 100644 index 0000000..b80b65f --- /dev/null +++ b/dist/esm/models/DeliveryMethodAddressDetails.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали адреса. + * @export + * @interface DeliveryMethodAddressDetails + */ +export interface DeliveryMethodAddressDetails { + /** + * Город. + * @type {string} + * @memberof DeliveryMethodAddressDetails + */ + city?: string; + /** + * Дом. + * @type {string} + * @memberof DeliveryMethodAddressDetails + */ + house?: string; + /** + * Регион. + * @type {string} + * @memberof DeliveryMethodAddressDetails + */ + region?: string; + /** + * Улица. + * @type {string} + * @memberof DeliveryMethodAddressDetails + */ + street?: string; +} +/** + * Check if a given object implements the DeliveryMethodAddressDetails interface. + */ +export declare function instanceOfDeliveryMethodAddressDetails(value: object): value is DeliveryMethodAddressDetails; +export declare function DeliveryMethodAddressDetailsFromJSON(json: any): DeliveryMethodAddressDetails; +export declare function DeliveryMethodAddressDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodAddressDetails; +export declare function DeliveryMethodAddressDetailsToJSON(value?: DeliveryMethodAddressDetails | null): any; diff --git a/dist/esm/models/DeliveryMethodAddressDetails.js b/dist/esm/models/DeliveryMethodAddressDetails.js new file mode 100644 index 0000000..95cd2b2 --- /dev/null +++ b/dist/esm/models/DeliveryMethodAddressDetails.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMethodAddressDetails interface. + */ +export function instanceOfDeliveryMethodAddressDetails(value) { + return true; +} +export function DeliveryMethodAddressDetailsFromJSON(json) { + return DeliveryMethodAddressDetailsFromJSONTyped(json, false); +} +export function DeliveryMethodAddressDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'house': json['house'] == null ? undefined : json['house'], + 'region': json['region'] == null ? undefined : json['region'], + 'street': json['street'] == null ? undefined : json['street'], + }; +} +export function DeliveryMethodAddressDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'house': value['house'], + 'region': value['region'], + 'street': value['street'], + }; +} diff --git a/dist/esm/models/DeliveryMethodCarriage.d.ts b/dist/esm/models/DeliveryMethodCarriage.d.ts new file mode 100644 index 0000000..f268bf7 --- /dev/null +++ b/dist/esm/models/DeliveryMethodCarriage.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CarriagePickupFee } from './CarriagePickupFee'; +/** + * + * @export + * @interface DeliveryMethodCarriage + */ +export interface DeliveryMethodCarriage { + /** + * `true`, если в отгрузке есть товары, для которых нужны дополнительные документы при отправке в Беларусь. + * + * @type {boolean} + * @memberof DeliveryMethodCarriage + */ + all_blr_traceable?: boolean; + /** + * Доступные действия с отгрузкой. + * @type {Array} + * @memberof DeliveryMethodCarriage + */ + available_actions?: Array; + /** + * Объём отгрузки в литрах. + * @type {number} + * @memberof DeliveryMethodCarriage + */ + carriage_volume?: number; + /** + * Идентификатор отгрузки. Если `0` — отгрузка, которую можно создать. + * @type {number} + * @memberof DeliveryMethodCarriage + */ + id?: number; + /** + * + * @type {CarriagePickupFee} + * @memberof DeliveryMethodCarriage + */ + pickup_fee?: CarriagePickupFee; + /** + * Количество отправлений в отгрузке. + * @type {number} + * @memberof DeliveryMethodCarriage + */ + postings_count?: number; + /** + * Количество квантов в отгрузке. + * @type {number} + * @memberof DeliveryMethodCarriage + */ + quantum_count?: number; + /** + * Статус отгрузки для запрашиваемых метода и даты. + * @type {string} + * @memberof DeliveryMethodCarriage + */ + status?: string; +} +/** + * Check if a given object implements the DeliveryMethodCarriage interface. + */ +export declare function instanceOfDeliveryMethodCarriage(value: object): value is DeliveryMethodCarriage; +export declare function DeliveryMethodCarriageFromJSON(json: any): DeliveryMethodCarriage; +export declare function DeliveryMethodCarriageFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodCarriage; +export declare function DeliveryMethodCarriageToJSON(value?: DeliveryMethodCarriage | null): any; diff --git a/dist/esm/models/DeliveryMethodCarriage.js b/dist/esm/models/DeliveryMethodCarriage.js new file mode 100644 index 0000000..bcb2d3a --- /dev/null +++ b/dist/esm/models/DeliveryMethodCarriage.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CarriagePickupFeeFromJSON, CarriagePickupFeeToJSON, } from './CarriagePickupFee'; +/** + * Check if a given object implements the DeliveryMethodCarriage interface. + */ +export function instanceOfDeliveryMethodCarriage(value) { + return true; +} +export function DeliveryMethodCarriageFromJSON(json) { + return DeliveryMethodCarriageFromJSONTyped(json, false); +} +export function DeliveryMethodCarriageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'all_blr_traceable': json['all_blr_traceable'] == null ? undefined : json['all_blr_traceable'], + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'carriage_volume': json['carriage_volume'] == null ? undefined : json['carriage_volume'], + 'id': json['id'] == null ? undefined : json['id'], + 'pickup_fee': json['pickup_fee'] == null ? undefined : CarriagePickupFeeFromJSON(json['pickup_fee']), + 'postings_count': json['postings_count'] == null ? undefined : json['postings_count'], + 'quantum_count': json['quantum_count'] == null ? undefined : json['quantum_count'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function DeliveryMethodCarriageToJSON(value) { + if (value == null) { + return value; + } + return { + 'all_blr_traceable': value['all_blr_traceable'], + 'available_actions': value['available_actions'], + 'carriage_volume': value['carriage_volume'], + 'id': value['id'], + 'pickup_fee': CarriagePickupFeeToJSON(value['pickup_fee']), + 'postings_count': value['postings_count'], + 'quantum_count': value['quantum_count'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/DeliveryMethodDateRange.d.ts b/dist/esm/models/DeliveryMethodDateRange.d.ts new file mode 100644 index 0000000..31c7270 --- /dev/null +++ b/dist/esm/models/DeliveryMethodDateRange.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал времени, в течение которого заказ может быть доставлен до точки выдачи. + * @export + * @interface DeliveryMethodDateRange + */ +export interface DeliveryMethodDateRange { + /** + * Время начала интервала. + * @type {string} + * @memberof DeliveryMethodDateRange + */ + from: string; + /** + * Время конца интервала. + * @type {string} + * @memberof DeliveryMethodDateRange + */ + to: string; +} +/** + * Check if a given object implements the DeliveryMethodDateRange interface. + */ +export declare function instanceOfDeliveryMethodDateRange(value: object): value is DeliveryMethodDateRange; +export declare function DeliveryMethodDateRangeFromJSON(json: any): DeliveryMethodDateRange; +export declare function DeliveryMethodDateRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodDateRange; +export declare function DeliveryMethodDateRangeToJSON(value?: DeliveryMethodDateRange | null): any; diff --git a/dist/esm/models/DeliveryMethodDateRange.js b/dist/esm/models/DeliveryMethodDateRange.js new file mode 100644 index 0000000..6e7feed --- /dev/null +++ b/dist/esm/models/DeliveryMethodDateRange.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMethodDateRange interface. + */ +export function instanceOfDeliveryMethodDateRange(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function DeliveryMethodDateRangeFromJSON(json) { + return DeliveryMethodDateRangeFromJSONTyped(json, false); +} +export function DeliveryMethodDateRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +export function DeliveryMethodDateRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/DeliveryMethodDeliveryPolygon.d.ts b/dist/esm/models/DeliveryMethodDeliveryPolygon.d.ts new file mode 100644 index 0000000..7ca9fdd --- /dev/null +++ b/dist/esm/models/DeliveryMethodDeliveryPolygon.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodDeliveryPolygon + */ +export interface DeliveryMethodDeliveryPolygon { + /** + * Идентификатор полигона. + * @type {number} + * @memberof DeliveryMethodDeliveryPolygon + */ + id: number; + /** + * Время в минутах, за которое доставят товар в этом полигоне. + * @type {number} + * @memberof DeliveryMethodDeliveryPolygon + */ + time: DeliveryMethodDeliveryPolygonTimeEnum; +} +/** + * @export + */ +export declare const DeliveryMethodDeliveryPolygonTimeEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_45: 45; + readonly NUMBER_60: 60; + readonly NUMBER_90: 90; + readonly NUMBER_120: 120; + readonly NUMBER_150: 150; +}; +export type DeliveryMethodDeliveryPolygonTimeEnum = typeof DeliveryMethodDeliveryPolygonTimeEnum[keyof typeof DeliveryMethodDeliveryPolygonTimeEnum]; +/** + * Check if a given object implements the DeliveryMethodDeliveryPolygon interface. + */ +export declare function instanceOfDeliveryMethodDeliveryPolygon(value: object): value is DeliveryMethodDeliveryPolygon; +export declare function DeliveryMethodDeliveryPolygonFromJSON(json: any): DeliveryMethodDeliveryPolygon; +export declare function DeliveryMethodDeliveryPolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodDeliveryPolygon; +export declare function DeliveryMethodDeliveryPolygonToJSON(value?: DeliveryMethodDeliveryPolygon | null): any; diff --git a/dist/esm/models/DeliveryMethodDeliveryPolygon.js b/dist/esm/models/DeliveryMethodDeliveryPolygon.js new file mode 100644 index 0000000..8e41cd4 --- /dev/null +++ b/dist/esm/models/DeliveryMethodDeliveryPolygon.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const DeliveryMethodDeliveryPolygonTimeEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_45: 45, + NUMBER_60: 60, + NUMBER_90: 90, + NUMBER_120: 120, + NUMBER_150: 150 +}; +/** + * Check if a given object implements the DeliveryMethodDeliveryPolygon interface. + */ +export function instanceOfDeliveryMethodDeliveryPolygon(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + return true; +} +export function DeliveryMethodDeliveryPolygonFromJSON(json) { + return DeliveryMethodDeliveryPolygonFromJSONTyped(json, false); +} +export function DeliveryMethodDeliveryPolygonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'time': json['time'], + }; +} +export function DeliveryMethodDeliveryPolygonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'time': value['time'], + }; +} diff --git a/dist/esm/models/DeliveryMethodDeliveryTypeEnum.d.ts b/dist/esm/models/DeliveryMethodDeliveryTypeEnum.d.ts new file mode 100644 index 0000000..dd0079c --- /dev/null +++ b/dist/esm/models/DeliveryMethodDeliveryTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ доставки: + * - `UNSPECIFIED` — не определён; + * - `POSTAMAT` — в постамат; + * - `COURIER` — курьером; + * - `PVZ` — в пункт самовывоза. + * + * @export + */ +export declare const DeliveryMethodDeliveryTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly POSTAMAT: "POSTAMAT"; + readonly COURIER: "COURIER"; + readonly PVZ: "PVZ"; +}; +export type DeliveryMethodDeliveryTypeEnum = typeof DeliveryMethodDeliveryTypeEnum[keyof typeof DeliveryMethodDeliveryTypeEnum]; +export declare function instanceOfDeliveryMethodDeliveryTypeEnum(value: any): boolean; +export declare function DeliveryMethodDeliveryTypeEnumFromJSON(json: any): DeliveryMethodDeliveryTypeEnum; +export declare function DeliveryMethodDeliveryTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodDeliveryTypeEnum; +export declare function DeliveryMethodDeliveryTypeEnumToJSON(value?: DeliveryMethodDeliveryTypeEnum | null): any; diff --git a/dist/esm/models/DeliveryMethodDeliveryTypeEnum.js b/dist/esm/models/DeliveryMethodDeliveryTypeEnum.js new file mode 100644 index 0000000..72b7601 --- /dev/null +++ b/dist/esm/models/DeliveryMethodDeliveryTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ доставки: + * - `UNSPECIFIED` — не определён; + * - `POSTAMAT` — в постамат; + * - `COURIER` — курьером; + * - `PVZ` — в пункт самовывоза. + * + * @export + */ +export const DeliveryMethodDeliveryTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + POSTAMAT: 'POSTAMAT', + COURIER: 'COURIER', + PVZ: 'PVZ' +}; +export function instanceOfDeliveryMethodDeliveryTypeEnum(value) { + for (const key in DeliveryMethodDeliveryTypeEnum) { + if (Object.prototype.hasOwnProperty.call(DeliveryMethodDeliveryTypeEnum, key)) { + if (DeliveryMethodDeliveryTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function DeliveryMethodDeliveryTypeEnumFromJSON(json) { + return DeliveryMethodDeliveryTypeEnumFromJSONTyped(json, false); +} +export function DeliveryMethodDeliveryTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DeliveryMethodDeliveryTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/DeliveryMethodError.d.ts b/dist/esm/models/DeliveryMethodError.d.ts new file mode 100644 index 0000000..ac13153 --- /dev/null +++ b/dist/esm/models/DeliveryMethodError.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodError + */ +export interface DeliveryMethodError { + /** + * Код ошибки. + * @type {string} + * @memberof DeliveryMethodError + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof DeliveryMethodError + */ + description?: string; + /** + * Статус ошибки. + * @type {string} + * @memberof DeliveryMethodError + */ + status?: string; +} +/** + * Check if a given object implements the DeliveryMethodError interface. + */ +export declare function instanceOfDeliveryMethodError(value: object): value is DeliveryMethodError; +export declare function DeliveryMethodErrorFromJSON(json: any): DeliveryMethodError; +export declare function DeliveryMethodErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodError; +export declare function DeliveryMethodErrorToJSON(value?: DeliveryMethodError | null): any; diff --git a/dist/esm/models/DeliveryMethodError.js b/dist/esm/models/DeliveryMethodError.js new file mode 100644 index 0000000..e3877b6 --- /dev/null +++ b/dist/esm/models/DeliveryMethodError.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMethodError interface. + */ +export function instanceOfDeliveryMethodError(value) { + return true; +} +export function DeliveryMethodErrorFromJSON(json) { + return DeliveryMethodErrorFromJSONTyped(json, false); +} +export function DeliveryMethodErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'description': json['description'] == null ? undefined : json['description'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function DeliveryMethodErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'description': value['description'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/DeliveryMethodHolidays.d.ts b/dist/esm/models/DeliveryMethodHolidays.d.ts new file mode 100644 index 0000000..1b039cf --- /dev/null +++ b/dist/esm/models/DeliveryMethodHolidays.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodHolidays + */ +export interface DeliveryMethodHolidays { + /** + * Дата и время начала праздничных дней. + * @type {string} + * @memberof DeliveryMethodHolidays + */ + begin?: string; + /** + * Дата и время окончания праздничных дней. + * @type {string} + * @memberof DeliveryMethodHolidays + */ + end?: string; +} +/** + * Check if a given object implements the DeliveryMethodHolidays interface. + */ +export declare function instanceOfDeliveryMethodHolidays(value: object): value is DeliveryMethodHolidays; +export declare function DeliveryMethodHolidaysFromJSON(json: any): DeliveryMethodHolidays; +export declare function DeliveryMethodHolidaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodHolidays; +export declare function DeliveryMethodHolidaysToJSON(value?: DeliveryMethodHolidays | null): any; diff --git a/dist/esm/models/DeliveryMethodHolidays.js b/dist/esm/models/DeliveryMethodHolidays.js new file mode 100644 index 0000000..26dde7a --- /dev/null +++ b/dist/esm/models/DeliveryMethodHolidays.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMethodHolidays interface. + */ +export function instanceOfDeliveryMethodHolidays(value) { + return true; +} +export function DeliveryMethodHolidaysFromJSON(json) { + return DeliveryMethodHolidaysFromJSONTyped(json, false); +} +export function DeliveryMethodHolidaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'begin': json['begin'] == null ? undefined : json['begin'], + 'end': json['end'] == null ? undefined : json['end'], + }; +} +export function DeliveryMethodHolidaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'begin': value['begin'], + 'end': value['end'], + }; +} diff --git a/dist/esm/models/DeliveryMethodListRequestFilter.d.ts b/dist/esm/models/DeliveryMethodListRequestFilter.d.ts new file mode 100644 index 0000000..3b9bebf --- /dev/null +++ b/dist/esm/models/DeliveryMethodListRequestFilter.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска методов доставки. + * @export + * @interface DeliveryMethodListRequestFilter + */ +export interface DeliveryMethodListRequestFilter { + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof DeliveryMethodListRequestFilter + */ + provider_id?: number; + /** + * Статус метода доставки: + * - `NEW` — создан, + * - `EDITED` — редактируется, + * - `ACTIVE` — активный, + * - `DISABLED` — неактивный. + * + * @type {string} + * @memberof DeliveryMethodListRequestFilter + */ + status?: string; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list ](#operation/WarehouseAPI_WarehouseList). + * @type {number} + * @memberof DeliveryMethodListRequestFilter + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DeliveryMethodListRequestFilter interface. + */ +export declare function instanceOfDeliveryMethodListRequestFilter(value: object): value is DeliveryMethodListRequestFilter; +export declare function DeliveryMethodListRequestFilterFromJSON(json: any): DeliveryMethodListRequestFilter; +export declare function DeliveryMethodListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListRequestFilter; +export declare function DeliveryMethodListRequestFilterToJSON(value?: DeliveryMethodListRequestFilter | null): any; diff --git a/dist/esm/models/DeliveryMethodListRequestFilter.js b/dist/esm/models/DeliveryMethodListRequestFilter.js new file mode 100644 index 0000000..09cca39 --- /dev/null +++ b/dist/esm/models/DeliveryMethodListRequestFilter.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMethodListRequestFilter interface. + */ +export function instanceOfDeliveryMethodListRequestFilter(value) { + return true; +} +export function DeliveryMethodListRequestFilterFromJSON(json) { + return DeliveryMethodListRequestFilterFromJSONTyped(json, false); +} +export function DeliveryMethodListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function DeliveryMethodListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'provider_id': value['provider_id'], + 'status': value['status'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/DeliveryMethodListResponseDeliveryMethod.d.ts b/dist/esm/models/DeliveryMethodListResponseDeliveryMethod.d.ts new file mode 100644 index 0000000..66f3645 --- /dev/null +++ b/dist/esm/models/DeliveryMethodListResponseDeliveryMethod.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodListResponseDeliveryMethod + */ +export interface DeliveryMethodListResponseDeliveryMethod { + /** + * Идентификатор продавца. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + company_id?: number; + /** + * Дата и время создания метода доставки. + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + created_at?: string; + /** + * Время, до которого продавцу нужно собрать заказ. + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + cutoff?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + name?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + provider_id?: number; + /** + * Минимальное время на сборку заказа в минутах в соответствии с настройками склада. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + sla_cut_in?: number; + /** + * Статус метода доставки: + * - `NEW` — создан, + * - `EDITED` — редактируется, + * - `ACTIVE` — активный, + * - `DISABLED` — неактивный. + * + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + status?: string; + /** + * Идентификатор услуги по доставке заказа. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + template_id?: number; + /** + * Дата и время последнего обновления метода метода доставки. + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DeliveryMethodListResponseDeliveryMethod interface. + */ +export declare function instanceOfDeliveryMethodListResponseDeliveryMethod(value: object): value is DeliveryMethodListResponseDeliveryMethod; +export declare function DeliveryMethodListResponseDeliveryMethodFromJSON(json: any): DeliveryMethodListResponseDeliveryMethod; +export declare function DeliveryMethodListResponseDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListResponseDeliveryMethod; +export declare function DeliveryMethodListResponseDeliveryMethodToJSON(value?: DeliveryMethodListResponseDeliveryMethod | null): any; diff --git a/dist/esm/models/DeliveryMethodListResponseDeliveryMethod.js b/dist/esm/models/DeliveryMethodListResponseDeliveryMethod.js new file mode 100644 index 0000000..25016af --- /dev/null +++ b/dist/esm/models/DeliveryMethodListResponseDeliveryMethod.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMethodListResponseDeliveryMethod interface. + */ +export function instanceOfDeliveryMethodListResponseDeliveryMethod(value) { + return true; +} +export function DeliveryMethodListResponseDeliveryMethodFromJSON(json) { + return DeliveryMethodListResponseDeliveryMethodFromJSONTyped(json, false); +} +export function DeliveryMethodListResponseDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_id': json['company_id'] == null ? undefined : json['company_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'cutoff': json['cutoff'] == null ? undefined : json['cutoff'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'sla_cut_in': json['sla_cut_in'] == null ? undefined : json['sla_cut_in'], + 'status': json['status'] == null ? undefined : json['status'], + 'template_id': json['template_id'] == null ? undefined : json['template_id'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function DeliveryMethodListResponseDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_id': value['company_id'], + 'created_at': value['created_at'], + 'cutoff': value['cutoff'], + 'id': value['id'], + 'name': value['name'], + 'provider_id': value['provider_id'], + 'sla_cut_in': value['sla_cut_in'], + 'status': value['status'], + 'template_id': value['template_id'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/DeliveryMethodListV2RequestFilter.d.ts b/dist/esm/models/DeliveryMethodListV2RequestFilter.d.ts new file mode 100644 index 0000000..b6bb21a --- /dev/null +++ b/dist/esm/models/DeliveryMethodListV2RequestFilter.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FilterStatusEnum } from './FilterStatusEnum'; +/** + * Фильтр для поиска методов доставки. + * @export + * @interface DeliveryMethodListV2RequestFilter + */ +export interface DeliveryMethodListV2RequestFilter { + /** + * Идентификаторы методов доставки. + * @type {Array} + * @memberof DeliveryMethodListV2RequestFilter + */ + delivery_method_ids?: Array; + /** + * Идентификаторы служб доставки. + * @type {Array} + * @memberof DeliveryMethodListV2RequestFilter + */ + provider_ids?: Array; + /** + * Статус метода доставки: + * - `NEW` — создан, + * - `EDITED` — редактируется, + * - `ACTIVE` — активный, + * - `DISABLED` — неактивный, + * - `WAITING` — на проверке, + * - `BROKEN` — с ошибкой. + * + * @type {Array} + * @memberof DeliveryMethodListV2RequestFilter + */ + status?: Array; + /** + * Идентификаторы складов. Получите с помощью метода [/v2/warehouse/list](#operation/WarehouseListV2). + * @type {Array} + * @memberof DeliveryMethodListV2RequestFilter + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the DeliveryMethodListV2RequestFilter interface. + */ +export declare function instanceOfDeliveryMethodListV2RequestFilter(value: object): value is DeliveryMethodListV2RequestFilter; +export declare function DeliveryMethodListV2RequestFilterFromJSON(json: any): DeliveryMethodListV2RequestFilter; +export declare function DeliveryMethodListV2RequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListV2RequestFilter; +export declare function DeliveryMethodListV2RequestFilterToJSON(value?: DeliveryMethodListV2RequestFilter | null): any; diff --git a/dist/esm/models/DeliveryMethodListV2RequestFilter.js b/dist/esm/models/DeliveryMethodListV2RequestFilter.js new file mode 100644 index 0000000..127796b --- /dev/null +++ b/dist/esm/models/DeliveryMethodListV2RequestFilter.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FilterStatusEnumFromJSON, FilterStatusEnumToJSON, } from './FilterStatusEnum'; +/** + * Check if a given object implements the DeliveryMethodListV2RequestFilter interface. + */ +export function instanceOfDeliveryMethodListV2RequestFilter(value) { + return true; +} +export function DeliveryMethodListV2RequestFilterFromJSON(json) { + return DeliveryMethodListV2RequestFilterFromJSONTyped(json, false); +} +export function DeliveryMethodListV2RequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_ids': json['delivery_method_ids'] == null ? undefined : json['delivery_method_ids'], + 'provider_ids': json['provider_ids'] == null ? undefined : json['provider_ids'], + 'status': json['status'] == null ? undefined : (json['status'].map(FilterStatusEnumFromJSON)), + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function DeliveryMethodListV2RequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_ids': value['delivery_method_ids'], + 'provider_ids': value['provider_ids'], + 'status': value['status'] == null ? undefined : (value['status'].map(FilterStatusEnumToJSON)), + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/DeliveryMethodListV2RequestSortDirEnum.d.ts b/dist/esm/models/DeliveryMethodListV2RequestSortDirEnum.d.ts new file mode 100644 index 0000000..d29935e --- /dev/null +++ b/dist/esm/models/DeliveryMethodListV2RequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const DeliveryMethodListV2RequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type DeliveryMethodListV2RequestSortDirEnum = typeof DeliveryMethodListV2RequestSortDirEnum[keyof typeof DeliveryMethodListV2RequestSortDirEnum]; +export declare function instanceOfDeliveryMethodListV2RequestSortDirEnum(value: any): boolean; +export declare function DeliveryMethodListV2RequestSortDirEnumFromJSON(json: any): DeliveryMethodListV2RequestSortDirEnum; +export declare function DeliveryMethodListV2RequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListV2RequestSortDirEnum; +export declare function DeliveryMethodListV2RequestSortDirEnumToJSON(value?: DeliveryMethodListV2RequestSortDirEnum | null): any; diff --git a/dist/esm/models/DeliveryMethodListV2RequestSortDirEnum.js b/dist/esm/models/DeliveryMethodListV2RequestSortDirEnum.js new file mode 100644 index 0000000..c9552be --- /dev/null +++ b/dist/esm/models/DeliveryMethodListV2RequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const DeliveryMethodListV2RequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfDeliveryMethodListV2RequestSortDirEnum(value) { + for (const key in DeliveryMethodListV2RequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(DeliveryMethodListV2RequestSortDirEnum, key)) { + if (DeliveryMethodListV2RequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function DeliveryMethodListV2RequestSortDirEnumFromJSON(json) { + return DeliveryMethodListV2RequestSortDirEnumFromJSONTyped(json, false); +} +export function DeliveryMethodListV2RequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DeliveryMethodListV2RequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/DeliveryMethodListV2ResponseDeliveryMethod.d.ts b/dist/esm/models/DeliveryMethodListV2ResponseDeliveryMethod.d.ts new file mode 100644 index 0000000..1a1c733 --- /dev/null +++ b/dist/esm/models/DeliveryMethodListV2ResponseDeliveryMethod.d.ts @@ -0,0 +1,117 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint } from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint'; +/** + * + * @export + * @interface DeliveryMethodListV2ResponseDeliveryMethod + */ +export interface DeliveryMethodListV2ResponseDeliveryMethod { + /** + * Дата создания метода доставки. + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + created_at?: string; + /** + * Время, до которого продавцу нужно собрать заказ. + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + cutoff?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + id?: number; + /** + * `true`, если доступна быстрая доставка Ozon Express. + * + * @type {boolean} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + is_express?: boolean; + /** + * Название метода доставки. + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + name?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + provider_id?: number; + /** + * Минимальное время на сборку заказа в минутах в соответствии с настройками склада. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + sla_cut_in?: number; + /** + * Статус метода доставки: + * - `NEW` — создан, + * - `EDITED` — редактируется, + * - `ACTIVE` — активный, + * - `DISABLED` — неактивный, + * - `WAITING` — на проверке, + * - `BROKEN` — с ошибкой. + * + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + status?: string; + /** + * Идентификатор услуги по доставке заказа. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + template_id?: number; + /** + * + * @type {WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + tpl_dropoff_point?: WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; + /** + * Тип интеграции со службой доставки: + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `hybrid` — гибридная интеграция. + * + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + tpl_integration_type?: string; + /** + * Дата и время последнего обновления метода метода доставки. + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DeliveryMethodListV2ResponseDeliveryMethod interface. + */ +export declare function instanceOfDeliveryMethodListV2ResponseDeliveryMethod(value: object): value is DeliveryMethodListV2ResponseDeliveryMethod; +export declare function DeliveryMethodListV2ResponseDeliveryMethodFromJSON(json: any): DeliveryMethodListV2ResponseDeliveryMethod; +export declare function DeliveryMethodListV2ResponseDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListV2ResponseDeliveryMethod; +export declare function DeliveryMethodListV2ResponseDeliveryMethodToJSON(value?: DeliveryMethodListV2ResponseDeliveryMethod | null): any; diff --git a/dist/esm/models/DeliveryMethodListV2ResponseDeliveryMethod.js b/dist/esm/models/DeliveryMethodListV2ResponseDeliveryMethod.js new file mode 100644 index 0000000..84b3b80 --- /dev/null +++ b/dist/esm/models/DeliveryMethodListV2ResponseDeliveryMethod.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON, WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON, } from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint'; +/** + * Check if a given object implements the DeliveryMethodListV2ResponseDeliveryMethod interface. + */ +export function instanceOfDeliveryMethodListV2ResponseDeliveryMethod(value) { + return true; +} +export function DeliveryMethodListV2ResponseDeliveryMethodFromJSON(json) { + return DeliveryMethodListV2ResponseDeliveryMethodFromJSONTyped(json, false); +} +export function DeliveryMethodListV2ResponseDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'cutoff': json['cutoff'] == null ? undefined : json['cutoff'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'name': json['name'] == null ? undefined : json['name'], + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'sla_cut_in': json['sla_cut_in'] == null ? undefined : json['sla_cut_in'], + 'status': json['status'] == null ? undefined : json['status'], + 'template_id': json['template_id'] == null ? undefined : json['template_id'], + 'tpl_dropoff_point': json['tpl_dropoff_point'] == null ? undefined : WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON(json['tpl_dropoff_point']), + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function DeliveryMethodListV2ResponseDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'cutoff': value['cutoff'], + 'id': value['id'], + 'is_express': value['is_express'], + 'name': value['name'], + 'provider_id': value['provider_id'], + 'sla_cut_in': value['sla_cut_in'], + 'status': value['status'], + 'template_id': value['template_id'], + 'tpl_dropoff_point': WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON(value['tpl_dropoff_point']), + 'tpl_integration_type': value['tpl_integration_type'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/DeliveryMethodProperties.d.ts b/dist/esm/models/DeliveryMethodProperties.d.ts new file mode 100644 index 0000000..3a11f00 --- /dev/null +++ b/dist/esm/models/DeliveryMethodProperties.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodProperties + */ +export interface DeliveryMethodProperties { + /** + * `true`, если свойство доступно. + * + * @type {boolean} + * @memberof DeliveryMethodProperties + */ + enabled?: boolean; + /** + * Название свойства. + * @type {string} + * @memberof DeliveryMethodProperties + */ + name?: string; +} +/** + * Check if a given object implements the DeliveryMethodProperties interface. + */ +export declare function instanceOfDeliveryMethodProperties(value: object): value is DeliveryMethodProperties; +export declare function DeliveryMethodPropertiesFromJSON(json: any): DeliveryMethodProperties; +export declare function DeliveryMethodPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodProperties; +export declare function DeliveryMethodPropertiesToJSON(value?: DeliveryMethodProperties | null): any; diff --git a/dist/esm/models/DeliveryMethodProperties.js b/dist/esm/models/DeliveryMethodProperties.js new file mode 100644 index 0000000..ec4c0b0 --- /dev/null +++ b/dist/esm/models/DeliveryMethodProperties.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryMethodProperties interface. + */ +export function instanceOfDeliveryMethodProperties(value) { + return true; +} +export function DeliveryMethodPropertiesFromJSON(json) { + return DeliveryMethodPropertiesFromJSONTyped(json, false); +} +export function DeliveryMethodPropertiesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function DeliveryMethodPropertiesToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/DeliveryMethodTimeslot.d.ts b/dist/esm/models/DeliveryMethodTimeslot.d.ts new file mode 100644 index 0000000..bce1758 --- /dev/null +++ b/dist/esm/models/DeliveryMethodTimeslot.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LogisticTimeslotDateRange } from './LogisticTimeslotDateRange'; +import type { ClientTimeslotDateRange } from './ClientTimeslotDateRange'; +/** + * + * @export + * @interface DeliveryMethodTimeslot + */ +export interface DeliveryMethodTimeslot { + /** + * + * @type {ClientTimeslotDateRange} + * @memberof DeliveryMethodTimeslot + */ + client_date_range?: ClientTimeslotDateRange; + /** + * + * @type {LogisticTimeslotDateRange} + * @memberof DeliveryMethodTimeslot + */ + logistic_date_range?: LogisticTimeslotDateRange; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof DeliveryMethodTimeslot + */ + timeslot_id?: number; +} +/** + * Check if a given object implements the DeliveryMethodTimeslot interface. + */ +export declare function instanceOfDeliveryMethodTimeslot(value: object): value is DeliveryMethodTimeslot; +export declare function DeliveryMethodTimeslotFromJSON(json: any): DeliveryMethodTimeslot; +export declare function DeliveryMethodTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodTimeslot; +export declare function DeliveryMethodTimeslotToJSON(value?: DeliveryMethodTimeslot | null): any; diff --git a/dist/esm/models/DeliveryMethodTimeslot.js b/dist/esm/models/DeliveryMethodTimeslot.js new file mode 100644 index 0000000..6c0bcad --- /dev/null +++ b/dist/esm/models/DeliveryMethodTimeslot.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LogisticTimeslotDateRangeFromJSON, LogisticTimeslotDateRangeToJSON, } from './LogisticTimeslotDateRange'; +import { ClientTimeslotDateRangeFromJSON, ClientTimeslotDateRangeToJSON, } from './ClientTimeslotDateRange'; +/** + * Check if a given object implements the DeliveryMethodTimeslot interface. + */ +export function instanceOfDeliveryMethodTimeslot(value) { + return true; +} +export function DeliveryMethodTimeslotFromJSON(json) { + return DeliveryMethodTimeslotFromJSONTyped(json, false); +} +export function DeliveryMethodTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'client_date_range': json['client_date_range'] == null ? undefined : ClientTimeslotDateRangeFromJSON(json['client_date_range']), + 'logistic_date_range': json['logistic_date_range'] == null ? undefined : LogisticTimeslotDateRangeFromJSON(json['logistic_date_range']), + 'timeslot_id': json['timeslot_id'] == null ? undefined : json['timeslot_id'], + }; +} +export function DeliveryMethodTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'client_date_range': ClientTimeslotDateRangeToJSON(value['client_date_range']), + 'logistic_date_range': LogisticTimeslotDateRangeToJSON(value['logistic_date_range']), + 'timeslot_id': value['timeslot_id'], + }; +} diff --git a/dist/esm/models/DeliveryMethodWorkingHours.d.ts b/dist/esm/models/DeliveryMethodWorkingHours.d.ts new file mode 100644 index 0000000..bca0365 --- /dev/null +++ b/dist/esm/models/DeliveryMethodWorkingHours.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WorkingHoursPeriods } from './WorkingHoursPeriods'; +/** + * + * @export + * @interface DeliveryMethodWorkingHours + */ +export interface DeliveryMethodWorkingHours { + /** + * Дата. + * @type {string} + * @memberof DeliveryMethodWorkingHours + */ + date?: string; + /** + * Периоды работы. + * @type {Array} + * @memberof DeliveryMethodWorkingHours + */ + periods?: Array; +} +/** + * Check if a given object implements the DeliveryMethodWorkingHours interface. + */ +export declare function instanceOfDeliveryMethodWorkingHours(value: object): value is DeliveryMethodWorkingHours; +export declare function DeliveryMethodWorkingHoursFromJSON(json: any): DeliveryMethodWorkingHours; +export declare function DeliveryMethodWorkingHoursFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodWorkingHours; +export declare function DeliveryMethodWorkingHoursToJSON(value?: DeliveryMethodWorkingHours | null): any; diff --git a/dist/esm/models/DeliveryMethodWorkingHours.js b/dist/esm/models/DeliveryMethodWorkingHours.js new file mode 100644 index 0000000..8b47e88 --- /dev/null +++ b/dist/esm/models/DeliveryMethodWorkingHours.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WorkingHoursPeriodsFromJSON, WorkingHoursPeriodsToJSON, } from './WorkingHoursPeriods'; +/** + * Check if a given object implements the DeliveryMethodWorkingHours interface. + */ +export function instanceOfDeliveryMethodWorkingHours(value) { + return true; +} +export function DeliveryMethodWorkingHoursFromJSON(json) { + return DeliveryMethodWorkingHoursFromJSONTyped(json, false); +} +export function DeliveryMethodWorkingHoursFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'periods': json['periods'] == null ? undefined : (json['periods'].map(WorkingHoursPeriodsFromJSON)), + }; +} +export function DeliveryMethodWorkingHoursToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'periods': value['periods'] == null ? undefined : (value['periods'].map(WorkingHoursPeriodsToJSON)), + }; +} diff --git a/dist/esm/models/DeliveryPickUp.d.ts b/dist/esm/models/DeliveryPickUp.d.ts new file mode 100644 index 0000000..25dd967 --- /dev/null +++ b/dist/esm/models/DeliveryPickUp.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о самовывозе. + * @export + * @interface DeliveryPickUp + */ +export interface DeliveryPickUp { + /** + * Идентификатор точки выдачи на карте. + * @type {number} + * @memberof DeliveryPickUp + */ + map_point_id: number; +} +/** + * Check if a given object implements the DeliveryPickUp interface. + */ +export declare function instanceOfDeliveryPickUp(value: object): value is DeliveryPickUp; +export declare function DeliveryPickUpFromJSON(json: any): DeliveryPickUp; +export declare function DeliveryPickUpFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryPickUp; +export declare function DeliveryPickUpToJSON(value?: DeliveryPickUp | null): any; diff --git a/dist/esm/models/DeliveryPickUp.js b/dist/esm/models/DeliveryPickUp.js new file mode 100644 index 0000000..2e68bbb --- /dev/null +++ b/dist/esm/models/DeliveryPickUp.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryPickUp interface. + */ +export function instanceOfDeliveryPickUp(value) { + if (!('map_point_id' in value) || value['map_point_id'] === undefined) + return false; + return true; +} +export function DeliveryPickUpFromJSON(json) { + return DeliveryPickUpFromJSONTyped(json, false); +} +export function DeliveryPickUpFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'map_point_id': json['map_point_id'], + }; +} +export function DeliveryPickUpToJSON(value) { + if (value == null) { + return value; + } + return { + 'map_point_id': value['map_point_id'], + }; +} diff --git a/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethod.d.ts b/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethod.d.ts new file mode 100644 index 0000000..ccf400d --- /dev/null +++ b/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethod.d.ts @@ -0,0 +1,128 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodHolidays } from './DeliveryMethodHolidays'; +import type { DeliveryPointInfoResponsePointDeliveryMethodDeliveryType } from './DeliveryPointInfoResponsePointDeliveryMethodDeliveryType'; +import type { PointDeliveryMethodCoordinates } from './PointDeliveryMethodCoordinates'; +import type { DeliveryMethodProperties } from './DeliveryMethodProperties'; +import type { DeliveryMethodWorkingHours } from './DeliveryMethodWorkingHours'; +import type { DeliveryMethodAddressDetails } from './DeliveryMethodAddressDetails'; +/** + * Метод доставки. + * @export + * @interface DeliveryPointInfoResponsePointDeliveryMethod + */ +export interface DeliveryPointInfoResponsePointDeliveryMethod { + /** + * Адрес. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + address?: string; + /** + * + * @type {DeliveryMethodAddressDetails} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + address_details?: DeliveryMethodAddressDetails; + /** + * + * @type {PointDeliveryMethodCoordinates} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + coordinates?: PointDeliveryMethodCoordinates; + /** + * + * @type {DeliveryPointInfoResponsePointDeliveryMethodDeliveryType} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + delivery_type?: DeliveryPointInfoResponsePointDeliveryMethodDeliveryType; + /** + * Описание. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + description?: string; + /** + * Количество гардеробов. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + fitting_rooms_count?: number; + /** + * Праздничные дни. + * @type {Array} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + holidays?: Array; + /** + * `true`, если праздники заполнены. + * + * @type {boolean} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + holidays_filled?: boolean; + /** + * Изображения. + * @type {Array} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + images?: Array; + /** + * Идентификатор локации. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + location_id?: string; + /** + * Идентификатор точки на карте. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + map_point_id?: number; + /** + * Название. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + name?: string; + /** + * Свойства. + * @type {Array} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + properties?: Array; + /** + * Рейтинг пункта выдачи заказов. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + pvz_rating?: number; + /** + * Период хранения. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + storage_period?: number; + /** + * Часы работы. + * @type {Array} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + working_hours?: Array; +} +/** + * Check if a given object implements the DeliveryPointInfoResponsePointDeliveryMethod interface. + */ +export declare function instanceOfDeliveryPointInfoResponsePointDeliveryMethod(value: object): value is DeliveryPointInfoResponsePointDeliveryMethod; +export declare function DeliveryPointInfoResponsePointDeliveryMethodFromJSON(json: any): DeliveryPointInfoResponsePointDeliveryMethod; +export declare function DeliveryPointInfoResponsePointDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryPointInfoResponsePointDeliveryMethod; +export declare function DeliveryPointInfoResponsePointDeliveryMethodToJSON(value?: DeliveryPointInfoResponsePointDeliveryMethod | null): any; diff --git a/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethod.js b/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethod.js new file mode 100644 index 0000000..16db8b3 --- /dev/null +++ b/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethod.js @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMethodHolidaysFromJSON, DeliveryMethodHolidaysToJSON, } from './DeliveryMethodHolidays'; +import { DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON, DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON, } from './DeliveryPointInfoResponsePointDeliveryMethodDeliveryType'; +import { PointDeliveryMethodCoordinatesFromJSON, PointDeliveryMethodCoordinatesToJSON, } from './PointDeliveryMethodCoordinates'; +import { DeliveryMethodPropertiesFromJSON, DeliveryMethodPropertiesToJSON, } from './DeliveryMethodProperties'; +import { DeliveryMethodWorkingHoursFromJSON, DeliveryMethodWorkingHoursToJSON, } from './DeliveryMethodWorkingHours'; +import { DeliveryMethodAddressDetailsFromJSON, DeliveryMethodAddressDetailsToJSON, } from './DeliveryMethodAddressDetails'; +/** + * Check if a given object implements the DeliveryPointInfoResponsePointDeliveryMethod interface. + */ +export function instanceOfDeliveryPointInfoResponsePointDeliveryMethod(value) { + return true; +} +export function DeliveryPointInfoResponsePointDeliveryMethodFromJSON(json) { + return DeliveryPointInfoResponsePointDeliveryMethodFromJSONTyped(json, false); +} +export function DeliveryPointInfoResponsePointDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'address_details': json['address_details'] == null ? undefined : DeliveryMethodAddressDetailsFromJSON(json['address_details']), + 'coordinates': json['coordinates'] == null ? undefined : PointDeliveryMethodCoordinatesFromJSON(json['coordinates']), + 'delivery_type': json['delivery_type'] == null ? undefined : DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON(json['delivery_type']), + 'description': json['description'] == null ? undefined : json['description'], + 'fitting_rooms_count': json['fitting_rooms_count'] == null ? undefined : json['fitting_rooms_count'], + 'holidays': json['holidays'] == null ? undefined : (json['holidays'].map(DeliveryMethodHolidaysFromJSON)), + 'holidays_filled': json['holidays_filled'] == null ? undefined : json['holidays_filled'], + 'images': json['images'] == null ? undefined : json['images'], + 'location_id': json['location_id'] == null ? undefined : json['location_id'], + 'map_point_id': json['map_point_id'] == null ? undefined : json['map_point_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'properties': json['properties'] == null ? undefined : (json['properties'].map(DeliveryMethodPropertiesFromJSON)), + 'pvz_rating': json['pvz_rating'] == null ? undefined : json['pvz_rating'], + 'storage_period': json['storage_period'] == null ? undefined : json['storage_period'], + 'working_hours': json['working_hours'] == null ? undefined : (json['working_hours'].map(DeliveryMethodWorkingHoursFromJSON)), + }; +} +export function DeliveryPointInfoResponsePointDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'address_details': DeliveryMethodAddressDetailsToJSON(value['address_details']), + 'coordinates': PointDeliveryMethodCoordinatesToJSON(value['coordinates']), + 'delivery_type': DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON(value['delivery_type']), + 'description': value['description'], + 'fitting_rooms_count': value['fitting_rooms_count'], + 'holidays': value['holidays'] == null ? undefined : (value['holidays'].map(DeliveryMethodHolidaysToJSON)), + 'holidays_filled': value['holidays_filled'], + 'images': value['images'], + 'location_id': value['location_id'], + 'map_point_id': value['map_point_id'], + 'name': value['name'], + 'properties': value['properties'] == null ? undefined : (value['properties'].map(DeliveryMethodPropertiesToJSON)), + 'pvz_rating': value['pvz_rating'], + 'storage_period': value['storage_period'], + 'working_hours': value['working_hours'] == null ? undefined : (value['working_hours'].map(DeliveryMethodWorkingHoursToJSON)), + }; +} diff --git a/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.d.ts b/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.d.ts new file mode 100644 index 0000000..0724ed1 --- /dev/null +++ b/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ доставки. + * @export + * @interface DeliveryPointInfoResponsePointDeliveryMethodDeliveryType + */ +export interface DeliveryPointInfoResponsePointDeliveryMethodDeliveryType { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethodDeliveryType + */ + id?: number; + /** + * Название способа доставки. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethodDeliveryType + */ + name?: string; +} +/** + * Check if a given object implements the DeliveryPointInfoResponsePointDeliveryMethodDeliveryType interface. + */ +export declare function instanceOfDeliveryPointInfoResponsePointDeliveryMethodDeliveryType(value: object): value is DeliveryPointInfoResponsePointDeliveryMethodDeliveryType; +export declare function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON(json: any): DeliveryPointInfoResponsePointDeliveryMethodDeliveryType; +export declare function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryPointInfoResponsePointDeliveryMethodDeliveryType; +export declare function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON(value?: DeliveryPointInfoResponsePointDeliveryMethodDeliveryType | null): any; diff --git a/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.js b/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.js new file mode 100644 index 0000000..51343dc --- /dev/null +++ b/dist/esm/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryPointInfoResponsePointDeliveryMethodDeliveryType interface. + */ +export function instanceOfDeliveryPointInfoResponsePointDeliveryMethodDeliveryType(value) { + return true; +} +export function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON(json) { + return DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSONTyped(json, false); +} +export function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/DeliveryPointListResponsePointCoordinates.d.ts b/dist/esm/models/DeliveryPointListResponsePointCoordinates.d.ts new file mode 100644 index 0000000..3968a86 --- /dev/null +++ b/dist/esm/models/DeliveryPointListResponsePointCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface DeliveryPointListResponsePointCoordinates + */ +export interface DeliveryPointListResponsePointCoordinates { + /** + * Широта. + * @type {number} + * @memberof DeliveryPointListResponsePointCoordinates + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryPointListResponsePointCoordinates + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryPointListResponsePointCoordinates interface. + */ +export declare function instanceOfDeliveryPointListResponsePointCoordinates(value: object): value is DeliveryPointListResponsePointCoordinates; +export declare function DeliveryPointListResponsePointCoordinatesFromJSON(json: any): DeliveryPointListResponsePointCoordinates; +export declare function DeliveryPointListResponsePointCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryPointListResponsePointCoordinates; +export declare function DeliveryPointListResponsePointCoordinatesToJSON(value?: DeliveryPointListResponsePointCoordinates | null): any; diff --git a/dist/esm/models/DeliveryPointListResponsePointCoordinates.js b/dist/esm/models/DeliveryPointListResponsePointCoordinates.js new file mode 100644 index 0000000..a15eeaf --- /dev/null +++ b/dist/esm/models/DeliveryPointListResponsePointCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryPointListResponsePointCoordinates interface. + */ +export function instanceOfDeliveryPointListResponsePointCoordinates(value) { + return true; +} +export function DeliveryPointListResponsePointCoordinatesFromJSON(json) { + return DeliveryPointListResponsePointCoordinatesFromJSONTyped(json, false); +} +export function DeliveryPointListResponsePointCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +export function DeliveryPointListResponsePointCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/esm/models/DeliveryTypeCourier.d.ts b/dist/esm/models/DeliveryTypeCourier.d.ts new file mode 100644 index 0000000..398abb4 --- /dev/null +++ b/dist/esm/models/DeliveryTypeCourier.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryTypeCourierCoordinates } from './DeliveryTypeCourierCoordinates'; +/** + * Доставка курьером. + * @export + * @interface DeliveryTypeCourier + */ +export interface DeliveryTypeCourier { + /** + * + * @type {DeliveryTypeCourierCoordinates} + * @memberof DeliveryTypeCourier + */ + coordinates?: DeliveryTypeCourierCoordinates; +} +/** + * Check if a given object implements the DeliveryTypeCourier interface. + */ +export declare function instanceOfDeliveryTypeCourier(value: object): value is DeliveryTypeCourier; +export declare function DeliveryTypeCourierFromJSON(json: any): DeliveryTypeCourier; +export declare function DeliveryTypeCourierFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryTypeCourier; +export declare function DeliveryTypeCourierToJSON(value?: DeliveryTypeCourier | null): any; diff --git a/dist/esm/models/DeliveryTypeCourier.js b/dist/esm/models/DeliveryTypeCourier.js new file mode 100644 index 0000000..62117a1 --- /dev/null +++ b/dist/esm/models/DeliveryTypeCourier.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryTypeCourierCoordinatesFromJSON, DeliveryTypeCourierCoordinatesToJSON, } from './DeliveryTypeCourierCoordinates'; +/** + * Check if a given object implements the DeliveryTypeCourier interface. + */ +export function instanceOfDeliveryTypeCourier(value) { + return true; +} +export function DeliveryTypeCourierFromJSON(json) { + return DeliveryTypeCourierFromJSONTyped(json, false); +} +export function DeliveryTypeCourierFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'] == null ? undefined : DeliveryTypeCourierCoordinatesFromJSON(json['coordinates']), + }; +} +export function DeliveryTypeCourierToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': DeliveryTypeCourierCoordinatesToJSON(value['coordinates']), + }; +} diff --git a/dist/esm/models/DeliveryTypeCourierCoordinates.d.ts b/dist/esm/models/DeliveryTypeCourierCoordinates.d.ts new file mode 100644 index 0000000..0f717af --- /dev/null +++ b/dist/esm/models/DeliveryTypeCourierCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты точки доставки. + * @export + * @interface DeliveryTypeCourierCoordinates + */ +export interface DeliveryTypeCourierCoordinates { + /** + * Широта. + * @type {number} + * @memberof DeliveryTypeCourierCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryTypeCourierCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the DeliveryTypeCourierCoordinates interface. + */ +export declare function instanceOfDeliveryTypeCourierCoordinates(value: object): value is DeliveryTypeCourierCoordinates; +export declare function DeliveryTypeCourierCoordinatesFromJSON(json: any): DeliveryTypeCourierCoordinates; +export declare function DeliveryTypeCourierCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryTypeCourierCoordinates; +export declare function DeliveryTypeCourierCoordinatesToJSON(value?: DeliveryTypeCourierCoordinates | null): any; diff --git a/dist/esm/models/DeliveryTypeCourierCoordinates.js b/dist/esm/models/DeliveryTypeCourierCoordinates.js new file mode 100644 index 0000000..cf55b76 --- /dev/null +++ b/dist/esm/models/DeliveryTypeCourierCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryTypeCourierCoordinates interface. + */ +export function instanceOfDeliveryTypeCourierCoordinates(value) { + return true; +} +export function DeliveryTypeCourierCoordinatesFromJSON(json) { + return DeliveryTypeCourierCoordinatesFromJSONTyped(json, false); +} +export function DeliveryTypeCourierCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function DeliveryTypeCourierCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/DeliveryTypeEnum.d.ts b/dist/esm/models/DeliveryTypeEnum.d.ts new file mode 100644 index 0000000..e773302 --- /dev/null +++ b/dist/esm/models/DeliveryTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип доставки: + * - `COURIER` — курьером; + * - `PVZ` — в пункт выдачи заказов; + * - `POSTAMAT` — в постамат. + * + * @export + */ +export declare const DeliveryTypeEnum: { + readonly COURIER: "COURIER"; + readonly PVZ: "PVZ"; + readonly POSTAMAT: "POSTAMAT"; +}; +export type DeliveryTypeEnum = typeof DeliveryTypeEnum[keyof typeof DeliveryTypeEnum]; +export declare function instanceOfDeliveryTypeEnum(value: any): boolean; +export declare function DeliveryTypeEnumFromJSON(json: any): DeliveryTypeEnum; +export declare function DeliveryTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryTypeEnum; +export declare function DeliveryTypeEnumToJSON(value?: DeliveryTypeEnum | null): any; diff --git a/dist/esm/models/DeliveryTypeEnum.js b/dist/esm/models/DeliveryTypeEnum.js new file mode 100644 index 0000000..a23cb4d --- /dev/null +++ b/dist/esm/models/DeliveryTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип доставки: + * - `COURIER` — курьером; + * - `PVZ` — в пункт выдачи заказов; + * - `POSTAMAT` — в постамат. + * + * @export + */ +export const DeliveryTypeEnum = { + COURIER: 'COURIER', + PVZ: 'PVZ', + POSTAMAT: 'POSTAMAT' +}; +export function instanceOfDeliveryTypeEnum(value) { + for (const key in DeliveryTypeEnum) { + if (Object.prototype.hasOwnProperty.call(DeliveryTypeEnum, key)) { + if (DeliveryTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function DeliveryTypeEnumFromJSON(json) { + return DeliveryTypeEnumFromJSONTyped(json, false); +} +export function DeliveryTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DeliveryTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/DeliveryTypePickUp.d.ts b/dist/esm/models/DeliveryTypePickUp.d.ts new file mode 100644 index 0000000..3848e90 --- /dev/null +++ b/dist/esm/models/DeliveryTypePickUp.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Самовывоз. + * @export + * @interface DeliveryTypePickUp + */ +export interface DeliveryTypePickUp { + /** + * Идентификатор пункта самовывоза. + * @type {number} + * @memberof DeliveryTypePickUp + */ + map_point_id?: number; +} +/** + * Check if a given object implements the DeliveryTypePickUp interface. + */ +export declare function instanceOfDeliveryTypePickUp(value: object): value is DeliveryTypePickUp; +export declare function DeliveryTypePickUpFromJSON(json: any): DeliveryTypePickUp; +export declare function DeliveryTypePickUpFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryTypePickUp; +export declare function DeliveryTypePickUpToJSON(value?: DeliveryTypePickUp | null): any; diff --git a/dist/esm/models/DeliveryTypePickUp.js b/dist/esm/models/DeliveryTypePickUp.js new file mode 100644 index 0000000..61e8774 --- /dev/null +++ b/dist/esm/models/DeliveryTypePickUp.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DeliveryTypePickUp interface. + */ +export function instanceOfDeliveryTypePickUp(value) { + return true; +} +export function DeliveryTypePickUpFromJSON(json) { + return DeliveryTypePickUpFromJSONTyped(json, false); +} +export function DeliveryTypePickUpFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'map_point_id': json['map_point_id'] == null ? undefined : json['map_point_id'], + }; +} +export function DeliveryTypePickUpToJSON(value) { + if (value == null) { + return value; + } + return { + 'map_point_id': value['map_point_id'], + }; +} diff --git a/dist/esm/models/DetailsDeliveryDetails.d.ts b/dist/esm/models/DetailsDeliveryDetails.d.ts new file mode 100644 index 0000000..ae26851 --- /dev/null +++ b/dist/esm/models/DetailsDeliveryDetails.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DetailsServices } from './DetailsServices'; +/** + * Заказы. + * @export + * @interface DetailsDeliveryDetails + */ +export interface DetailsDeliveryDetails { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsDeliveryDetails + */ + total?: number; + /** + * Сумма, на которую выкуплено товаров с учётом комиссий. + * @type {number} + * @memberof DetailsDeliveryDetails + */ + amount?: number; + /** + * + * @type {DetailsServices} + * @memberof DetailsDeliveryDetails + */ + delivery_services?: DetailsServices; +} +/** + * Check if a given object implements the DetailsDeliveryDetails interface. + */ +export declare function instanceOfDetailsDeliveryDetails(value: object): value is DetailsDeliveryDetails; +export declare function DetailsDeliveryDetailsFromJSON(json: any): DetailsDeliveryDetails; +export declare function DetailsDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsDeliveryDetails; +export declare function DetailsDeliveryDetailsToJSON(value?: DetailsDeliveryDetails | null): any; diff --git a/dist/esm/models/DetailsDeliveryDetails.js b/dist/esm/models/DetailsDeliveryDetails.js new file mode 100644 index 0000000..c3c2e4b --- /dev/null +++ b/dist/esm/models/DetailsDeliveryDetails.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DetailsServicesFromJSON, DetailsServicesToJSON, } from './DetailsServices'; +/** + * Check if a given object implements the DetailsDeliveryDetails interface. + */ +export function instanceOfDetailsDeliveryDetails(value) { + return true; +} +export function DetailsDeliveryDetailsFromJSON(json) { + return DetailsDeliveryDetailsFromJSONTyped(json, false); +} +export function DetailsDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'delivery_services': json['delivery_services'] == null ? undefined : DetailsServicesFromJSON(json['delivery_services']), + }; +} +export function DetailsDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'amount': value['amount'], + 'delivery_services': DetailsServicesToJSON(value['delivery_services']), + }; +} diff --git a/dist/esm/models/DetailsOthers.d.ts b/dist/esm/models/DetailsOthers.d.ts new file mode 100644 index 0000000..e2c79d8 --- /dev/null +++ b/dist/esm/models/DetailsOthers.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseDetailsOthers } from './FinanceCashFlowStatementListResponseDetailsOthers'; +/** + * Компенсация и прочие начисления. + * @export + * @interface DetailsOthers + */ +export interface DetailsOthers { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsOthers + */ + total?: number; + /** + * Детализация. + * @type {Array} + * @memberof DetailsOthers + */ + items?: Array; +} +/** + * Check if a given object implements the DetailsOthers interface. + */ +export declare function instanceOfDetailsOthers(value: object): value is DetailsOthers; +export declare function DetailsOthersFromJSON(json: any): DetailsOthers; +export declare function DetailsOthersFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsOthers; +export declare function DetailsOthersToJSON(value?: DetailsOthers | null): any; diff --git a/dist/esm/models/DetailsOthers.js b/dist/esm/models/DetailsOthers.js new file mode 100644 index 0000000..918ac5f --- /dev/null +++ b/dist/esm/models/DetailsOthers.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceCashFlowStatementListResponseDetailsOthersFromJSON, FinanceCashFlowStatementListResponseDetailsOthersToJSON, } from './FinanceCashFlowStatementListResponseDetailsOthers'; +/** + * Check if a given object implements the DetailsOthers interface. + */ +export function instanceOfDetailsOthers(value) { + return true; +} +export function DetailsOthersFromJSON(json) { + return DetailsOthersFromJSONTyped(json, false); +} +export function DetailsOthersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'items': json['items'] == null ? undefined : (json['items'].map(FinanceCashFlowStatementListResponseDetailsOthersFromJSON)), + }; +} +export function DetailsOthersToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'items': value['items'] == null ? undefined : (value['items'].map(FinanceCashFlowStatementListResponseDetailsOthersToJSON)), + }; +} diff --git a/dist/esm/models/DetailsPayment.d.ts b/dist/esm/models/DetailsPayment.d.ts new file mode 100644 index 0000000..af4dc4c --- /dev/null +++ b/dist/esm/models/DetailsPayment.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Выплачено за период. + * @export + * @interface DetailsPayment + */ +export interface DetailsPayment { + /** + * Валюта. + * @type {string} + * @memberof DetailsPayment + */ + currency_code?: string; + /** + * Сумма выплаты. + * @type {number} + * @memberof DetailsPayment + */ + payment?: number; +} +/** + * Check if a given object implements the DetailsPayment interface. + */ +export declare function instanceOfDetailsPayment(value: object): value is DetailsPayment; +export declare function DetailsPaymentFromJSON(json: any): DetailsPayment; +export declare function DetailsPaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsPayment; +export declare function DetailsPaymentToJSON(value?: DetailsPayment | null): any; diff --git a/dist/esm/models/DetailsPayment.js b/dist/esm/models/DetailsPayment.js new file mode 100644 index 0000000..fa87e23 --- /dev/null +++ b/dist/esm/models/DetailsPayment.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DetailsPayment interface. + */ +export function instanceOfDetailsPayment(value) { + return true; +} +export function DetailsPaymentFromJSON(json) { + return DetailsPaymentFromJSONTyped(json, false); +} +export function DetailsPaymentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'payment': json['payment'] == null ? undefined : json['payment'], + }; +} +export function DetailsPaymentToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'payment': value['payment'], + }; +} diff --git a/dist/esm/models/DetailsReturnDetails.d.ts b/dist/esm/models/DetailsReturnDetails.d.ts new file mode 100644 index 0000000..c3c8c15 --- /dev/null +++ b/dist/esm/models/DetailsReturnDetails.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DetailsReturns } from './DetailsReturns'; +/** + * Возвраты и отмены. + * @export + * @interface DetailsReturnDetails + */ +export interface DetailsReturnDetails { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsReturnDetails + */ + total?: number; + /** + * Сумма, на которую получено возвратов с учётом комиссий. + * @type {number} + * @memberof DetailsReturnDetails + */ + amount?: number; + /** + * + * @type {DetailsReturns} + * @memberof DetailsReturnDetails + */ + return_services?: DetailsReturns; +} +/** + * Check if a given object implements the DetailsReturnDetails interface. + */ +export declare function instanceOfDetailsReturnDetails(value: object): value is DetailsReturnDetails; +export declare function DetailsReturnDetailsFromJSON(json: any): DetailsReturnDetails; +export declare function DetailsReturnDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsReturnDetails; +export declare function DetailsReturnDetailsToJSON(value?: DetailsReturnDetails | null): any; diff --git a/dist/esm/models/DetailsReturnDetails.js b/dist/esm/models/DetailsReturnDetails.js new file mode 100644 index 0000000..59c8560 --- /dev/null +++ b/dist/esm/models/DetailsReturnDetails.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DetailsReturnsFromJSON, DetailsReturnsToJSON, } from './DetailsReturns'; +/** + * Check if a given object implements the DetailsReturnDetails interface. + */ +export function instanceOfDetailsReturnDetails(value) { + return true; +} +export function DetailsReturnDetailsFromJSON(json) { + return DetailsReturnDetailsFromJSONTyped(json, false); +} +export function DetailsReturnDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'return_services': json['return_services'] == null ? undefined : DetailsReturnsFromJSON(json['return_services']), + }; +} +export function DetailsReturnDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'amount': value['amount'], + 'return_services': DetailsReturnsToJSON(value['return_services']), + }; +} diff --git a/dist/esm/models/DetailsReturns.d.ts b/dist/esm/models/DetailsReturns.d.ts new file mode 100644 index 0000000..b3c3fca --- /dev/null +++ b/dist/esm/models/DetailsReturns.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseReturnService } from './FinanceCashFlowStatementListResponseReturnService'; +/** + * Плата за возвраты и отмены. + * @export + * @interface DetailsReturns + */ +export interface DetailsReturns { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsReturns + */ + total?: number; + /** + * + * @type {FinanceCashFlowStatementListResponseReturnService} + * @memberof DetailsReturns + */ + items?: FinanceCashFlowStatementListResponseReturnService; +} +/** + * Check if a given object implements the DetailsReturns interface. + */ +export declare function instanceOfDetailsReturns(value: object): value is DetailsReturns; +export declare function DetailsReturnsFromJSON(json: any): DetailsReturns; +export declare function DetailsReturnsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsReturns; +export declare function DetailsReturnsToJSON(value?: DetailsReturns | null): any; diff --git a/dist/esm/models/DetailsReturns.js b/dist/esm/models/DetailsReturns.js new file mode 100644 index 0000000..cd05ab0 --- /dev/null +++ b/dist/esm/models/DetailsReturns.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceCashFlowStatementListResponseReturnServiceFromJSON, FinanceCashFlowStatementListResponseReturnServiceToJSON, } from './FinanceCashFlowStatementListResponseReturnService'; +/** + * Check if a given object implements the DetailsReturns interface. + */ +export function instanceOfDetailsReturns(value) { + return true; +} +export function DetailsReturnsFromJSON(json) { + return DetailsReturnsFromJSONTyped(json, false); +} +export function DetailsReturnsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'items': json['items'] == null ? undefined : FinanceCashFlowStatementListResponseReturnServiceFromJSON(json['items']), + }; +} +export function DetailsReturnsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'items': FinanceCashFlowStatementListResponseReturnServiceToJSON(value['items']), + }; +} diff --git a/dist/esm/models/DetailsRfbsDetails.d.ts b/dist/esm/models/DetailsRfbsDetails.d.ts new file mode 100644 index 0000000..6eb44da --- /dev/null +++ b/dist/esm/models/DetailsRfbsDetails.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Перечисления по схеме rFBS. + * @export + * @interface DetailsRfbsDetails + */ +export interface DetailsRfbsDetails { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsRfbsDetails + */ + total?: number; + /** + * Перечисления от покупателей. + * @type {number} + * @memberof DetailsRfbsDetails + */ + transfer_delivery?: number; + /** + * Возврат перечислений покупателям. + * @type {number} + * @memberof DetailsRfbsDetails + */ + transfer_delivery_return?: number; + /** + * Компенсация перечислений за доставку. + * @type {number} + * @memberof DetailsRfbsDetails + */ + compensation_delivery_return?: number; + /** + * Перечисления частичных компенсаций покупателям. + * @type {number} + * @memberof DetailsRfbsDetails + */ + partial_compensation?: number; + /** + * Возврат частичных компенсаций. + * @type {number} + * @memberof DetailsRfbsDetails + */ + partial_compensation_return?: number; +} +/** + * Check if a given object implements the DetailsRfbsDetails interface. + */ +export declare function instanceOfDetailsRfbsDetails(value: object): value is DetailsRfbsDetails; +export declare function DetailsRfbsDetailsFromJSON(json: any): DetailsRfbsDetails; +export declare function DetailsRfbsDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsRfbsDetails; +export declare function DetailsRfbsDetailsToJSON(value?: DetailsRfbsDetails | null): any; diff --git a/dist/esm/models/DetailsRfbsDetails.js b/dist/esm/models/DetailsRfbsDetails.js new file mode 100644 index 0000000..e406ce9 --- /dev/null +++ b/dist/esm/models/DetailsRfbsDetails.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DetailsRfbsDetails interface. + */ +export function instanceOfDetailsRfbsDetails(value) { + return true; +} +export function DetailsRfbsDetailsFromJSON(json) { + return DetailsRfbsDetailsFromJSONTyped(json, false); +} +export function DetailsRfbsDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'transfer_delivery': json['transfer_delivery'] == null ? undefined : json['transfer_delivery'], + 'transfer_delivery_return': json['transfer_delivery_return'] == null ? undefined : json['transfer_delivery_return'], + 'compensation_delivery_return': json['compensation_delivery_return'] == null ? undefined : json['compensation_delivery_return'], + 'partial_compensation': json['partial_compensation'] == null ? undefined : json['partial_compensation'], + 'partial_compensation_return': json['partial_compensation_return'] == null ? undefined : json['partial_compensation_return'], + }; +} +export function DetailsRfbsDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'transfer_delivery': value['transfer_delivery'], + 'transfer_delivery_return': value['transfer_delivery_return'], + 'compensation_delivery_return': value['compensation_delivery_return'], + 'partial_compensation': value['partial_compensation'], + 'partial_compensation_return': value['partial_compensation_return'], + }; +} diff --git a/dist/esm/models/DetailsService.d.ts b/dist/esm/models/DetailsService.d.ts new file mode 100644 index 0000000..8a6922f --- /dev/null +++ b/dist/esm/models/DetailsService.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseService } from './FinanceCashFlowStatementListResponseService'; +/** + * Услуги. + * @export + * @interface DetailsService + */ +export interface DetailsService { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsService + */ + total?: number; + /** + * Детализация. + * @type {Array} + * @memberof DetailsService + */ + items?: Array; +} +/** + * Check if a given object implements the DetailsService interface. + */ +export declare function instanceOfDetailsService(value: object): value is DetailsService; +export declare function DetailsServiceFromJSON(json: any): DetailsService; +export declare function DetailsServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsService; +export declare function DetailsServiceToJSON(value?: DetailsService | null): any; diff --git a/dist/esm/models/DetailsService.js b/dist/esm/models/DetailsService.js new file mode 100644 index 0000000..91e8faf --- /dev/null +++ b/dist/esm/models/DetailsService.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceCashFlowStatementListResponseServiceFromJSON, FinanceCashFlowStatementListResponseServiceToJSON, } from './FinanceCashFlowStatementListResponseService'; +/** + * Check if a given object implements the DetailsService interface. + */ +export function instanceOfDetailsService(value) { + return true; +} +export function DetailsServiceFromJSON(json) { + return DetailsServiceFromJSONTyped(json, false); +} +export function DetailsServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'items': json['items'] == null ? undefined : (json['items'].map(FinanceCashFlowStatementListResponseServiceFromJSON)), + }; +} +export function DetailsServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'items': value['items'] == null ? undefined : (value['items'].map(FinanceCashFlowStatementListResponseServiceToJSON)), + }; +} diff --git a/dist/esm/models/DetailsServices.d.ts b/dist/esm/models/DetailsServices.d.ts new file mode 100644 index 0000000..c17f804 --- /dev/null +++ b/dist/esm/models/DetailsServices.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseDeliveryService } from './FinanceCashFlowStatementListResponseDeliveryService'; +/** + * Плата за обработку и доставку. + * @export + * @interface DetailsServices + */ +export interface DetailsServices { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsServices + */ + total?: number; + /** + * + * @type {FinanceCashFlowStatementListResponseDeliveryService} + * @memberof DetailsServices + */ + items?: FinanceCashFlowStatementListResponseDeliveryService; +} +/** + * Check if a given object implements the DetailsServices interface. + */ +export declare function instanceOfDetailsServices(value: object): value is DetailsServices; +export declare function DetailsServicesFromJSON(json: any): DetailsServices; +export declare function DetailsServicesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsServices; +export declare function DetailsServicesToJSON(value?: DetailsServices | null): any; diff --git a/dist/esm/models/DetailsServices.js b/dist/esm/models/DetailsServices.js new file mode 100644 index 0000000..4049628 --- /dev/null +++ b/dist/esm/models/DetailsServices.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceCashFlowStatementListResponseDeliveryServiceFromJSON, FinanceCashFlowStatementListResponseDeliveryServiceToJSON, } from './FinanceCashFlowStatementListResponseDeliveryService'; +/** + * Check if a given object implements the DetailsServices interface. + */ +export function instanceOfDetailsServices(value) { + return true; +} +export function DetailsServicesFromJSON(json) { + return DetailsServicesFromJSONTyped(json, false); +} +export function DetailsServicesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'items': json['items'] == null ? undefined : FinanceCashFlowStatementListResponseDeliveryServiceFromJSON(json['items']), + }; +} +export function DetailsServicesToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'items': FinanceCashFlowStatementListResponseDeliveryServiceToJSON(value['items']), + }; +} diff --git a/dist/esm/models/DirEnum.d.ts b/dist/esm/models/DirEnum.d.ts new file mode 100644 index 0000000..2e9a02f --- /dev/null +++ b/dist/esm/models/DirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export declare const DirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type DirEnum = typeof DirEnum[keyof typeof DirEnum]; +export declare function instanceOfDirEnum(value: any): boolean; +export declare function DirEnumFromJSON(json: any): DirEnum; +export declare function DirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirEnum; +export declare function DirEnumToJSON(value?: DirEnum | null): any; diff --git a/dist/esm/models/DirEnum.js b/dist/esm/models/DirEnum.js new file mode 100644 index 0000000..1b9d90a --- /dev/null +++ b/dist/esm/models/DirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export const DirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfDirEnum(value) { + for (const key in DirEnum) { + if (Object.prototype.hasOwnProperty.call(DirEnum, key)) { + if (DirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function DirEnumFromJSON(json) { + return DirEnumFromJSONTyped(json, false); +} +export function DirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/DirectDetailsBySellerDetails.d.ts b/dist/esm/models/DirectDetailsBySellerDetails.d.ts new file mode 100644 index 0000000..f7277de --- /dev/null +++ b/dist/esm/models/DirectDetailsBySellerDetails.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки силами продавца. + * @export + * @interface DirectDetailsBySellerDetails + */ +export interface DirectDetailsBySellerDetails { + /** + * ФИО водителя. + * @type {string} + * @memberof DirectDetailsBySellerDetails + */ + driver_name?: string; + /** + * Регистрационный номер транспорта. + * @type {string} + * @memberof DirectDetailsBySellerDetails + */ + vehicle_registration_number?: string; + /** + * Тип транспорта. + * @type {string} + * @memberof DirectDetailsBySellerDetails + */ + vehicle_type?: string; +} +/** + * Check if a given object implements the DirectDetailsBySellerDetails interface. + */ +export declare function instanceOfDirectDetailsBySellerDetails(value: object): value is DirectDetailsBySellerDetails; +export declare function DirectDetailsBySellerDetailsFromJSON(json: any): DirectDetailsBySellerDetails; +export declare function DirectDetailsBySellerDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectDetailsBySellerDetails; +export declare function DirectDetailsBySellerDetailsToJSON(value?: DirectDetailsBySellerDetails | null): any; diff --git a/dist/esm/models/DirectDetailsBySellerDetails.js b/dist/esm/models/DirectDetailsBySellerDetails.js new file mode 100644 index 0000000..098a1e5 --- /dev/null +++ b/dist/esm/models/DirectDetailsBySellerDetails.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DirectDetailsBySellerDetails interface. + */ +export function instanceOfDirectDetailsBySellerDetails(value) { + return true; +} +export function DirectDetailsBySellerDetailsFromJSON(json) { + return DirectDetailsBySellerDetailsFromJSONTyped(json, false); +} +export function DirectDetailsBySellerDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'] == null ? undefined : json['driver_name'], + 'vehicle_registration_number': json['vehicle_registration_number'] == null ? undefined : json['vehicle_registration_number'], + 'vehicle_type': json['vehicle_type'] == null ? undefined : json['vehicle_type'], + }; +} +export function DirectDetailsBySellerDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'vehicle_registration_number': value['vehicle_registration_number'], + 'vehicle_type': value['vehicle_type'], + }; +} diff --git a/dist/esm/models/DirectDetailsByTplDetails.d.ts b/dist/esm/models/DirectDetailsByTplDetails.d.ts new file mode 100644 index 0000000..f23c6de --- /dev/null +++ b/dist/esm/models/DirectDetailsByTplDetails.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки сторонней транспортной компанией. + * @export + * @interface DirectDetailsByTplDetails + */ +export interface DirectDetailsByTplDetails { + /** + * Трек-номер отправления. + * @type {string} + * @memberof DirectDetailsByTplDetails + */ + tracking_number?: string; + /** + * Название транспортной компании. + * @type {string} + * @memberof DirectDetailsByTplDetails + */ + transport_company_name?: string; +} +/** + * Check if a given object implements the DirectDetailsByTplDetails interface. + */ +export declare function instanceOfDirectDetailsByTplDetails(value: object): value is DirectDetailsByTplDetails; +export declare function DirectDetailsByTplDetailsFromJSON(json: any): DirectDetailsByTplDetails; +export declare function DirectDetailsByTplDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectDetailsByTplDetails; +export declare function DirectDetailsByTplDetailsToJSON(value?: DirectDetailsByTplDetails | null): any; diff --git a/dist/esm/models/DirectDetailsByTplDetails.js b/dist/esm/models/DirectDetailsByTplDetails.js new file mode 100644 index 0000000..9d2d8c4 --- /dev/null +++ b/dist/esm/models/DirectDetailsByTplDetails.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DirectDetailsByTplDetails interface. + */ +export function instanceOfDirectDetailsByTplDetails(value) { + return true; +} +export function DirectDetailsByTplDetailsFromJSON(json) { + return DirectDetailsByTplDetailsFromJSONTyped(json, false); +} +export function DirectDetailsByTplDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'transport_company_name': json['transport_company_name'] == null ? undefined : json['transport_company_name'], + }; +} +export function DirectDetailsByTplDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'tracking_number': value['tracking_number'], + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/esm/models/DirectDetailsTimeslotDetails.d.ts b/dist/esm/models/DirectDetailsTimeslotDetails.d.ts new file mode 100644 index 0000000..bfc44bf --- /dev/null +++ b/dist/esm/models/DirectDetailsTimeslotDetails.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1fbpTimeslot } from './V1fbpTimeslot'; +/** + * Детали интервала поставки. + * @export + * @interface DirectDetailsTimeslotDetails + */ +export interface DirectDetailsTimeslotDetails { + /** + * + * @type {V1fbpTimeslot} + * @memberof DirectDetailsTimeslotDetails + */ + timeslot?: V1fbpTimeslot; + /** + * Идентификатор бронирования интервала поставки. + * @type {string} + * @memberof DirectDetailsTimeslotDetails + */ + timeslot_reservation_id?: string; +} +/** + * Check if a given object implements the DirectDetailsTimeslotDetails interface. + */ +export declare function instanceOfDirectDetailsTimeslotDetails(value: object): value is DirectDetailsTimeslotDetails; +export declare function DirectDetailsTimeslotDetailsFromJSON(json: any): DirectDetailsTimeslotDetails; +export declare function DirectDetailsTimeslotDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectDetailsTimeslotDetails; +export declare function DirectDetailsTimeslotDetailsToJSON(value?: DirectDetailsTimeslotDetails | null): any; diff --git a/dist/esm/models/DirectDetailsTimeslotDetails.js b/dist/esm/models/DirectDetailsTimeslotDetails.js new file mode 100644 index 0000000..a9c1946 --- /dev/null +++ b/dist/esm/models/DirectDetailsTimeslotDetails.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1fbpTimeslotFromJSON, V1fbpTimeslotToJSON, } from './V1fbpTimeslot'; +/** + * Check if a given object implements the DirectDetailsTimeslotDetails interface. + */ +export function instanceOfDirectDetailsTimeslotDetails(value) { + return true; +} +export function DirectDetailsTimeslotDetailsFromJSON(json) { + return DirectDetailsTimeslotDetailsFromJSONTyped(json, false); +} +export function DirectDetailsTimeslotDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot': json['timeslot'] == null ? undefined : V1fbpTimeslotFromJSON(json['timeslot']), + 'timeslot_reservation_id': json['timeslot_reservation_id'] == null ? undefined : json['timeslot_reservation_id'], + }; +} +export function DirectDetailsTimeslotDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot': V1fbpTimeslotToJSON(value['timeslot']), + 'timeslot_reservation_id': value['timeslot_reservation_id'], + }; +} diff --git a/dist/esm/models/DraftClusterListResponseLogisticCluster.d.ts b/dist/esm/models/DraftClusterListResponseLogisticCluster.d.ts new file mode 100644 index 0000000..4a02f42 --- /dev/null +++ b/dist/esm/models/DraftClusterListResponseLogisticCluster.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftClusterListResponseWarehouse } from './V1DraftClusterListResponseWarehouse'; +/** + * + * @export + * @interface DraftClusterListResponseLogisticCluster + */ +export interface DraftClusterListResponseLogisticCluster { + /** + * Склады. + * @type {Array} + * @memberof DraftClusterListResponseLogisticCluster + */ + warehouses?: Array; +} +/** + * Check if a given object implements the DraftClusterListResponseLogisticCluster interface. + */ +export declare function instanceOfDraftClusterListResponseLogisticCluster(value: object): value is DraftClusterListResponseLogisticCluster; +export declare function DraftClusterListResponseLogisticClusterFromJSON(json: any): DraftClusterListResponseLogisticCluster; +export declare function DraftClusterListResponseLogisticClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftClusterListResponseLogisticCluster; +export declare function DraftClusterListResponseLogisticClusterToJSON(value?: DraftClusterListResponseLogisticCluster | null): any; diff --git a/dist/esm/models/DraftClusterListResponseLogisticCluster.js b/dist/esm/models/DraftClusterListResponseLogisticCluster.js new file mode 100644 index 0000000..5c538d2 --- /dev/null +++ b/dist/esm/models/DraftClusterListResponseLogisticCluster.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftClusterListResponseWarehouseFromJSON, V1DraftClusterListResponseWarehouseToJSON, } from './V1DraftClusterListResponseWarehouse'; +/** + * Check if a given object implements the DraftClusterListResponseLogisticCluster interface. + */ +export function instanceOfDraftClusterListResponseLogisticCluster(value) { + return true; +} +export function DraftClusterListResponseLogisticClusterFromJSON(json) { + return DraftClusterListResponseLogisticClusterFromJSONTyped(json, false); +} +export function DraftClusterListResponseLogisticClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(V1DraftClusterListResponseWarehouseFromJSON)), + }; +} +export function DraftClusterListResponseLogisticClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(V1DraftClusterListResponseWarehouseToJSON)), + }; +} diff --git a/dist/esm/models/DraftCreateCommonResponseError.d.ts b/dist/esm/models/DraftCreateCommonResponseError.d.ts new file mode 100644 index 0000000..7ab2036 --- /dev/null +++ b/dist/esm/models/DraftCreateCommonResponseError.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorErrorMessageEnum } from './ErrorErrorMessageEnum'; +import type { ErrorErrorReasonEnum } from './ErrorErrorReasonEnum'; +import type { DraftCreateCommonResponseErrorItemsValidation } from './DraftCreateCommonResponseErrorItemsValidation'; +/** + * + * @export + * @interface DraftCreateCommonResponseError + */ +export interface DraftCreateCommonResponseError { + /** + * + * @type {ErrorErrorMessageEnum} + * @memberof DraftCreateCommonResponseError + */ + error_message?: ErrorErrorMessageEnum; + /** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `ALL_ITEMS_COUNT_INVALID` — в товарном составе больше 5000 SKU; + * - `ALL_ITEMS_VOLUME_INVALID` — в товарном составе объём товаров больше 100 000 литров; + * - `ALL_BUNDLES_EMPTY` — товарные составы пустые; + * - `HAS_EMPTY_BUNDLE` — минимум 1 товарный состав в черновике пустой; + * - `DISABLED_FOR_SELLER` — отгрузка курьером отключена для продавца; + * - `NO_ACTIVE_SELLER_WAREHOUSE` — нет активного склада продавца; + * - `INVALID_SELLER_WAREHOUSE` — склад продавца недоступен. + * + * @type {Array} + * @memberof DraftCreateCommonResponseError + */ + error_reasons?: Array; + /** + * Ошибки валидации. + * @type {Array} + * @memberof DraftCreateCommonResponseError + */ + items_validation?: Array; + /** + * Список идентификаторов кластера размещения. + * @type {Array} + * @memberof DraftCreateCommonResponseError + */ + macrolocal_cluster_ids?: Array; + /** + * Сообщение об ошибке. + * @type {string} + * @memberof DraftCreateCommonResponseError + */ + message?: string; + /** + * Список идентификаторов товаров — SKU. + * @type {Array} + * @memberof DraftCreateCommonResponseError + */ + skus?: Array; +} +/** + * Check if a given object implements the DraftCreateCommonResponseError interface. + */ +export declare function instanceOfDraftCreateCommonResponseError(value: object): value is DraftCreateCommonResponseError; +export declare function DraftCreateCommonResponseErrorFromJSON(json: any): DraftCreateCommonResponseError; +export declare function DraftCreateCommonResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateCommonResponseError; +export declare function DraftCreateCommonResponseErrorToJSON(value?: DraftCreateCommonResponseError | null): any; diff --git a/dist/esm/models/DraftCreateCommonResponseError.js b/dist/esm/models/DraftCreateCommonResponseError.js new file mode 100644 index 0000000..ad4ef49 --- /dev/null +++ b/dist/esm/models/DraftCreateCommonResponseError.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ErrorErrorMessageEnumFromJSON, ErrorErrorMessageEnumToJSON, } from './ErrorErrorMessageEnum'; +import { ErrorErrorReasonEnumFromJSON, ErrorErrorReasonEnumToJSON, } from './ErrorErrorReasonEnum'; +import { DraftCreateCommonResponseErrorItemsValidationFromJSON, DraftCreateCommonResponseErrorItemsValidationToJSON, } from './DraftCreateCommonResponseErrorItemsValidation'; +/** + * Check if a given object implements the DraftCreateCommonResponseError interface. + */ +export function instanceOfDraftCreateCommonResponseError(value) { + return true; +} +export function DraftCreateCommonResponseErrorFromJSON(json) { + return DraftCreateCommonResponseErrorFromJSONTyped(json, false); +} +export function DraftCreateCommonResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : ErrorErrorMessageEnumFromJSON(json['error_message']), + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(ErrorErrorReasonEnumFromJSON)), + 'items_validation': json['items_validation'] == null ? undefined : (json['items_validation'].map(DraftCreateCommonResponseErrorItemsValidationFromJSON)), + 'macrolocal_cluster_ids': json['macrolocal_cluster_ids'] == null ? undefined : json['macrolocal_cluster_ids'], + 'message': json['message'] == null ? undefined : json['message'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +export function DraftCreateCommonResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': ErrorErrorMessageEnumToJSON(value['error_message']), + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(ErrorErrorReasonEnumToJSON)), + 'items_validation': value['items_validation'] == null ? undefined : (value['items_validation'].map(DraftCreateCommonResponseErrorItemsValidationToJSON)), + 'macrolocal_cluster_ids': value['macrolocal_cluster_ids'], + 'message': value['message'], + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/DraftCreateCommonResponseErrorItemsValidation.d.ts b/dist/esm/models/DraftCreateCommonResponseErrorItemsValidation.d.ts new file mode 100644 index 0000000..2649216 --- /dev/null +++ b/dist/esm/models/DraftCreateCommonResponseErrorItemsValidation.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemsValidationRejectedItems } from './ItemsValidationRejectedItems'; +/** + * + * @export + * @interface DraftCreateCommonResponseErrorItemsValidation + */ +export interface DraftCreateCommonResponseErrorItemsValidation { + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof DraftCreateCommonResponseErrorItemsValidation + */ + macrolocal_cluster_id?: number; + /** + * Отклонённые товары. + * @type {Array} + * @memberof DraftCreateCommonResponseErrorItemsValidation + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the DraftCreateCommonResponseErrorItemsValidation interface. + */ +export declare function instanceOfDraftCreateCommonResponseErrorItemsValidation(value: object): value is DraftCreateCommonResponseErrorItemsValidation; +export declare function DraftCreateCommonResponseErrorItemsValidationFromJSON(json: any): DraftCreateCommonResponseErrorItemsValidation; +export declare function DraftCreateCommonResponseErrorItemsValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateCommonResponseErrorItemsValidation; +export declare function DraftCreateCommonResponseErrorItemsValidationToJSON(value?: DraftCreateCommonResponseErrorItemsValidation | null): any; diff --git a/dist/esm/models/DraftCreateCommonResponseErrorItemsValidation.js b/dist/esm/models/DraftCreateCommonResponseErrorItemsValidation.js new file mode 100644 index 0000000..c78c159 --- /dev/null +++ b/dist/esm/models/DraftCreateCommonResponseErrorItemsValidation.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ItemsValidationRejectedItemsFromJSON, ItemsValidationRejectedItemsToJSON, } from './ItemsValidationRejectedItems'; +/** + * Check if a given object implements the DraftCreateCommonResponseErrorItemsValidation interface. + */ +export function instanceOfDraftCreateCommonResponseErrorItemsValidation(value) { + return true; +} +export function DraftCreateCommonResponseErrorItemsValidationFromJSON(json) { + return DraftCreateCommonResponseErrorItemsValidationFromJSONTyped(json, false); +} +export function DraftCreateCommonResponseErrorItemsValidationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(ItemsValidationRejectedItemsFromJSON)), + }; +} +export function DraftCreateCommonResponseErrorItemsValidationToJSON(value) { + if (value == null) { + return value; + } + return { + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(ItemsValidationRejectedItemsToJSON)), + }; +} diff --git a/dist/esm/models/DraftCreateInfoResponseCluster.d.ts b/dist/esm/models/DraftCreateInfoResponseCluster.d.ts new file mode 100644 index 0000000..cad19f3 --- /dev/null +++ b/dist/esm/models/DraftCreateInfoResponseCluster.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ClusterWarehouse } from './ClusterWarehouse'; +/** + * + * @export + * @interface DraftCreateInfoResponseCluster + */ +export interface DraftCreateInfoResponseCluster { + /** + * Название кластера. + * @type {string} + * @memberof DraftCreateInfoResponseCluster + */ + cluster_name?: string; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof DraftCreateInfoResponseCluster + */ + macrolocal_cluster_id?: number; + /** + * Тип поставки: + * - `CROSSDOCK` — кросс-докинг; + * - `DIRECT` — прямая; + * - `MULTI_CLUSTER` — для нескольких кластеров. + * + * @type {string} + * @memberof DraftCreateInfoResponseCluster + */ + supply_type?: DraftCreateInfoResponseClusterSupplyTypeEnum; + /** + * Склады размещения. + * @type {Array} + * @memberof DraftCreateInfoResponseCluster + */ + warehouses?: Array; +} +/** + * @export + */ +export declare const DraftCreateInfoResponseClusterSupplyTypeEnum: { + readonly CROSSDOCK: "CROSSDOCK"; + readonly DIRECT: "DIRECT"; + readonly MULTI_CLUSTER: "MULTI_CLUSTER"; +}; +export type DraftCreateInfoResponseClusterSupplyTypeEnum = typeof DraftCreateInfoResponseClusterSupplyTypeEnum[keyof typeof DraftCreateInfoResponseClusterSupplyTypeEnum]; +/** + * Check if a given object implements the DraftCreateInfoResponseCluster interface. + */ +export declare function instanceOfDraftCreateInfoResponseCluster(value: object): value is DraftCreateInfoResponseCluster; +export declare function DraftCreateInfoResponseClusterFromJSON(json: any): DraftCreateInfoResponseCluster; +export declare function DraftCreateInfoResponseClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateInfoResponseCluster; +export declare function DraftCreateInfoResponseClusterToJSON(value?: DraftCreateInfoResponseCluster | null): any; diff --git a/dist/esm/models/DraftCreateInfoResponseCluster.js b/dist/esm/models/DraftCreateInfoResponseCluster.js new file mode 100644 index 0000000..32bd727 --- /dev/null +++ b/dist/esm/models/DraftCreateInfoResponseCluster.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ClusterWarehouseFromJSON, ClusterWarehouseToJSON, } from './ClusterWarehouse'; +/** + * @export + */ +export const DraftCreateInfoResponseClusterSupplyTypeEnum = { + CROSSDOCK: 'CROSSDOCK', + DIRECT: 'DIRECT', + MULTI_CLUSTER: 'MULTI_CLUSTER' +}; +/** + * Check if a given object implements the DraftCreateInfoResponseCluster interface. + */ +export function instanceOfDraftCreateInfoResponseCluster(value) { + return true; +} +export function DraftCreateInfoResponseClusterFromJSON(json) { + return DraftCreateInfoResponseClusterFromJSONTyped(json, false); +} +export function DraftCreateInfoResponseClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_name': json['cluster_name'] == null ? undefined : json['cluster_name'], + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'supply_type': json['supply_type'] == null ? undefined : json['supply_type'], + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(ClusterWarehouseFromJSON)), + }; +} +export function DraftCreateInfoResponseClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_name': value['cluster_name'], + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'supply_type': value['supply_type'], + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(ClusterWarehouseToJSON)), + }; +} diff --git a/dist/esm/models/DraftCreateInfoResponseError.d.ts b/dist/esm/models/DraftCreateInfoResponseError.d.ts new file mode 100644 index 0000000..d837c85 --- /dev/null +++ b/dist/esm/models/DraftCreateInfoResponseError.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftCreateInfoResponseErrorErrorReasonEnum } from './DraftCreateInfoResponseErrorErrorReasonEnum'; +import type { ErrorErrorMessageEnum } from './ErrorErrorMessageEnum'; +import type { ErrorItemsValidation } from './ErrorItemsValidation'; +/** + * + * @export + * @interface DraftCreateInfoResponseError + */ +export interface DraftCreateInfoResponseError { + /** + * + * @type {ErrorErrorMessageEnum} + * @memberof DraftCreateInfoResponseError + */ + error_message?: ErrorErrorMessageEnum; + /** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `ALL_ITEMS_COUNT_INVALID` — в товарном составе больше 5000 SKU; + * - `ALL_ITEMS_VOLUME_INVALID` — в товарном составе объём товаров больше 100 000 литров; + * - `ALL_BUNDLES_EMPTY` — товарные составы пустые; + * - `HAS_EMPTY_BUNDLE` — минимум 1 товарный состав в черновике пустой; + * - `DISABLED_FOR_SELLER` — отгрузка курьером отключена для продавца; + * - `NO_ACTIVE_SELLER_WAREHOUSE` — нет хотя бы 1 активного склада продавца; + * - `INVALID_SELLER_WAREHOUSE` — склад продавца недоступен; + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — товарный состав слишком маленький для точки отгрузки. + * + * @type {Array} + * @memberof DraftCreateInfoResponseError + */ + error_reasons?: Array; + /** + * Ошибки валидации. + * @type {Array} + * @memberof DraftCreateInfoResponseError + */ + items_validation?: Array; + /** + * Идентификаторы кластеров размещения. + * @type {Array} + * @memberof DraftCreateInfoResponseError + */ + macrolocal_cluster_ids?: Array; + /** + * Сообщение об ошибке. + * @type {string} + * @memberof DraftCreateInfoResponseError + */ + message?: string; + /** + * Список идентификаторов товаров — SKU. + * @type {Array} + * @memberof DraftCreateInfoResponseError + */ + skus?: Array; +} +/** + * Check if a given object implements the DraftCreateInfoResponseError interface. + */ +export declare function instanceOfDraftCreateInfoResponseError(value: object): value is DraftCreateInfoResponseError; +export declare function DraftCreateInfoResponseErrorFromJSON(json: any): DraftCreateInfoResponseError; +export declare function DraftCreateInfoResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateInfoResponseError; +export declare function DraftCreateInfoResponseErrorToJSON(value?: DraftCreateInfoResponseError | null): any; diff --git a/dist/esm/models/DraftCreateInfoResponseError.js b/dist/esm/models/DraftCreateInfoResponseError.js new file mode 100644 index 0000000..c4e3544 --- /dev/null +++ b/dist/esm/models/DraftCreateInfoResponseError.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DraftCreateInfoResponseErrorErrorReasonEnumFromJSON, DraftCreateInfoResponseErrorErrorReasonEnumToJSON, } from './DraftCreateInfoResponseErrorErrorReasonEnum'; +import { ErrorErrorMessageEnumFromJSON, ErrorErrorMessageEnumToJSON, } from './ErrorErrorMessageEnum'; +import { ErrorItemsValidationFromJSON, ErrorItemsValidationToJSON, } from './ErrorItemsValidation'; +/** + * Check if a given object implements the DraftCreateInfoResponseError interface. + */ +export function instanceOfDraftCreateInfoResponseError(value) { + return true; +} +export function DraftCreateInfoResponseErrorFromJSON(json) { + return DraftCreateInfoResponseErrorFromJSONTyped(json, false); +} +export function DraftCreateInfoResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : ErrorErrorMessageEnumFromJSON(json['error_message']), + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(DraftCreateInfoResponseErrorErrorReasonEnumFromJSON)), + 'items_validation': json['items_validation'] == null ? undefined : (json['items_validation'].map(ErrorItemsValidationFromJSON)), + 'macrolocal_cluster_ids': json['macrolocal_cluster_ids'] == null ? undefined : json['macrolocal_cluster_ids'], + 'message': json['message'] == null ? undefined : json['message'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +export function DraftCreateInfoResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': ErrorErrorMessageEnumToJSON(value['error_message']), + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(DraftCreateInfoResponseErrorErrorReasonEnumToJSON)), + 'items_validation': value['items_validation'] == null ? undefined : (value['items_validation'].map(ErrorItemsValidationToJSON)), + 'macrolocal_cluster_ids': value['macrolocal_cluster_ids'], + 'message': value['message'], + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/DraftCreateInfoResponseErrorErrorReasonEnum.d.ts b/dist/esm/models/DraftCreateInfoResponseErrorErrorReasonEnum.d.ts new file mode 100644 index 0000000..d17d8ec --- /dev/null +++ b/dist/esm/models/DraftCreateInfoResponseErrorErrorReasonEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const DraftCreateInfoResponseErrorErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER: "ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER"; + readonly ALL_ITEMS_REJECTED: "ALL_ITEMS_REJECTED"; + readonly NOT_AVAILABLE_CLUSTERS: "NOT_AVAILABLE_CLUSTERS"; + readonly ALL_ITEMS_COUNT_INVALID: "ALL_ITEMS_COUNT_INVALID"; + readonly ALL_ITEMS_VOLUME_INVALID: "ALL_ITEMS_VOLUME_INVALID"; + readonly ALL_BUNDLES_EMPTY: "ALL_BUNDLES_EMPTY"; + readonly HAS_EMPTY_BUNDLE: "HAS_EMPTY_BUNDLE"; + readonly DISABLED_FOR_SELLER: "DISABLED_FOR_SELLER"; + readonly NO_ACTIVE_SELLER_WAREHOUSE: "NO_ACTIVE_SELLER_WAREHOUSE"; + readonly INVALID_SELLER_WAREHOUSE: "INVALID_SELLER_WAREHOUSE"; + readonly MINIMUM_VOLUME_IN_LITRES_INVALID: "MINIMUM_VOLUME_IN_LITRES_INVALID"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type DraftCreateInfoResponseErrorErrorReasonEnum = typeof DraftCreateInfoResponseErrorErrorReasonEnum[keyof typeof DraftCreateInfoResponseErrorErrorReasonEnum]; +export declare function instanceOfDraftCreateInfoResponseErrorErrorReasonEnum(value: any): boolean; +export declare function DraftCreateInfoResponseErrorErrorReasonEnumFromJSON(json: any): DraftCreateInfoResponseErrorErrorReasonEnum; +export declare function DraftCreateInfoResponseErrorErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateInfoResponseErrorErrorReasonEnum; +export declare function DraftCreateInfoResponseErrorErrorReasonEnumToJSON(value?: DraftCreateInfoResponseErrorErrorReasonEnum | null): any; diff --git a/dist/esm/models/DraftCreateInfoResponseErrorErrorReasonEnum.js b/dist/esm/models/DraftCreateInfoResponseErrorErrorReasonEnum.js new file mode 100644 index 0000000..96f728e --- /dev/null +++ b/dist/esm/models/DraftCreateInfoResponseErrorErrorReasonEnum.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const DraftCreateInfoResponseErrorErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER: 'ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER', + ALL_ITEMS_REJECTED: 'ALL_ITEMS_REJECTED', + NOT_AVAILABLE_CLUSTERS: 'NOT_AVAILABLE_CLUSTERS', + ALL_ITEMS_COUNT_INVALID: 'ALL_ITEMS_COUNT_INVALID', + ALL_ITEMS_VOLUME_INVALID: 'ALL_ITEMS_VOLUME_INVALID', + ALL_BUNDLES_EMPTY: 'ALL_BUNDLES_EMPTY', + HAS_EMPTY_BUNDLE: 'HAS_EMPTY_BUNDLE', + DISABLED_FOR_SELLER: 'DISABLED_FOR_SELLER', + NO_ACTIVE_SELLER_WAREHOUSE: 'NO_ACTIVE_SELLER_WAREHOUSE', + INVALID_SELLER_WAREHOUSE: 'INVALID_SELLER_WAREHOUSE', + MINIMUM_VOLUME_IN_LITRES_INVALID: 'MINIMUM_VOLUME_IN_LITRES_INVALID', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfDraftCreateInfoResponseErrorErrorReasonEnum(value) { + for (const key in DraftCreateInfoResponseErrorErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(DraftCreateInfoResponseErrorErrorReasonEnum, key)) { + if (DraftCreateInfoResponseErrorErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function DraftCreateInfoResponseErrorErrorReasonEnumFromJSON(json) { + return DraftCreateInfoResponseErrorErrorReasonEnumFromJSONTyped(json, false); +} +export function DraftCreateInfoResponseErrorErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DraftCreateInfoResponseErrorErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/DraftGetWarehouseFboListResponseCoordinate.d.ts b/dist/esm/models/DraftGetWarehouseFboListResponseCoordinate.d.ts new file mode 100644 index 0000000..2b10ddf --- /dev/null +++ b/dist/esm/models/DraftGetWarehouseFboListResponseCoordinate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты склада. + * @export + * @interface DraftGetWarehouseFboListResponseCoordinate + */ +export interface DraftGetWarehouseFboListResponseCoordinate { + /** + * Широта. + * @type {number} + * @memberof DraftGetWarehouseFboListResponseCoordinate + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof DraftGetWarehouseFboListResponseCoordinate + */ + longitude?: number; +} +/** + * Check if a given object implements the DraftGetWarehouseFboListResponseCoordinate interface. + */ +export declare function instanceOfDraftGetWarehouseFboListResponseCoordinate(value: object): value is DraftGetWarehouseFboListResponseCoordinate; +export declare function DraftGetWarehouseFboListResponseCoordinateFromJSON(json: any): DraftGetWarehouseFboListResponseCoordinate; +export declare function DraftGetWarehouseFboListResponseCoordinateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftGetWarehouseFboListResponseCoordinate; +export declare function DraftGetWarehouseFboListResponseCoordinateToJSON(value?: DraftGetWarehouseFboListResponseCoordinate | null): any; diff --git a/dist/esm/models/DraftGetWarehouseFboListResponseCoordinate.js b/dist/esm/models/DraftGetWarehouseFboListResponseCoordinate.js new file mode 100644 index 0000000..97257cf --- /dev/null +++ b/dist/esm/models/DraftGetWarehouseFboListResponseCoordinate.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DraftGetWarehouseFboListResponseCoordinate interface. + */ +export function instanceOfDraftGetWarehouseFboListResponseCoordinate(value) { + return true; +} +export function DraftGetWarehouseFboListResponseCoordinateFromJSON(json) { + return DraftGetWarehouseFboListResponseCoordinateFromJSONTyped(json, false); +} +export function DraftGetWarehouseFboListResponseCoordinateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function DraftGetWarehouseFboListResponseCoordinateToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/DraftGetWarehouseFboListResponseSearch.d.ts b/dist/esm/models/DraftGetWarehouseFboListResponseSearch.d.ts new file mode 100644 index 0000000..1e81b58 --- /dev/null +++ b/dist/esm/models/DraftGetWarehouseFboListResponseSearch.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftGetWarehouseFboListResponseWarehouseType } from './DraftGetWarehouseFboListResponseWarehouseType'; +import type { DraftGetWarehouseFboListResponseCoordinate } from './DraftGetWarehouseFboListResponseCoordinate'; +/** + * + * @export + * @interface DraftGetWarehouseFboListResponseSearch + */ +export interface DraftGetWarehouseFboListResponseSearch { + /** + * Адрес склада. + * @type {string} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + address?: string; + /** + * + * @type {DraftGetWarehouseFboListResponseCoordinate} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + coordinates?: DraftGetWarehouseFboListResponseCoordinate; + /** + * Название склада. + * @type {string} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + name?: string; + /** + * Идентификатор склада, пункта выдачи заказов или сортировочного центра. + * @type {number} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + warehouse_id?: number; + /** + * + * @type {DraftGetWarehouseFboListResponseWarehouseType} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + warehouse_type?: DraftGetWarehouseFboListResponseWarehouseType; +} +/** + * Check if a given object implements the DraftGetWarehouseFboListResponseSearch interface. + */ +export declare function instanceOfDraftGetWarehouseFboListResponseSearch(value: object): value is DraftGetWarehouseFboListResponseSearch; +export declare function DraftGetWarehouseFboListResponseSearchFromJSON(json: any): DraftGetWarehouseFboListResponseSearch; +export declare function DraftGetWarehouseFboListResponseSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftGetWarehouseFboListResponseSearch; +export declare function DraftGetWarehouseFboListResponseSearchToJSON(value?: DraftGetWarehouseFboListResponseSearch | null): any; diff --git a/dist/esm/models/DraftGetWarehouseFboListResponseSearch.js b/dist/esm/models/DraftGetWarehouseFboListResponseSearch.js new file mode 100644 index 0000000..1cd9cba --- /dev/null +++ b/dist/esm/models/DraftGetWarehouseFboListResponseSearch.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DraftGetWarehouseFboListResponseWarehouseTypeFromJSON, DraftGetWarehouseFboListResponseWarehouseTypeToJSON, } from './DraftGetWarehouseFboListResponseWarehouseType'; +import { DraftGetWarehouseFboListResponseCoordinateFromJSON, DraftGetWarehouseFboListResponseCoordinateToJSON, } from './DraftGetWarehouseFboListResponseCoordinate'; +/** + * Check if a given object implements the DraftGetWarehouseFboListResponseSearch interface. + */ +export function instanceOfDraftGetWarehouseFboListResponseSearch(value) { + return true; +} +export function DraftGetWarehouseFboListResponseSearchFromJSON(json) { + return DraftGetWarehouseFboListResponseSearchFromJSONTyped(json, false); +} +export function DraftGetWarehouseFboListResponseSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : DraftGetWarehouseFboListResponseCoordinateFromJSON(json['coordinates']), + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_type': json['warehouse_type'] == null ? undefined : DraftGetWarehouseFboListResponseWarehouseTypeFromJSON(json['warehouse_type']), + }; +} +export function DraftGetWarehouseFboListResponseSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': DraftGetWarehouseFboListResponseCoordinateToJSON(value['coordinates']), + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_type': DraftGetWarehouseFboListResponseWarehouseTypeToJSON(value['warehouse_type']), + }; +} diff --git a/dist/esm/models/DraftGetWarehouseFboListResponseWarehouseType.d.ts b/dist/esm/models/DraftGetWarehouseFboListResponseWarehouseType.d.ts new file mode 100644 index 0000000..6aa0c8c --- /dev/null +++ b/dist/esm/models/DraftGetWarehouseFboListResponseWarehouseType.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада, пункта выдачи заказов или сортировочного центра: + * - `WAREHOUSE_TYPE_DELIVERY_POINT` — пункт выдачи заказов, + * - `WAREHOUSE_TYPE_ORDERS_RECEIVING_POINT` — пункт приёма заказов, + * - `WAREHOUSE_TYPE_SORTING_CENTER` — сортировочный центр, + * - `WAREHOUSE_TYPE_FULL_FILLMENT` — фулфилмент, + * - `WAREHOUSE_TYPE_CROSS_DOCK` — кросс-докинг. + * + * @export + */ +export declare const DraftGetWarehouseFboListResponseWarehouseType: { + readonly DELIVERY_POINT: "WAREHOUSE_TYPE_DELIVERY_POINT"; + readonly ORDERS_RECEIVING_POINT: "WAREHOUSE_TYPE_ORDERS_RECEIVING_POINT"; + readonly SORTING_CENTER: "WAREHOUSE_TYPE_SORTING_CENTER"; + readonly FULL_FILLMENT: "WAREHOUSE_TYPE_FULL_FILLMENT"; + readonly CROSS_DOCK: "WAREHOUSE_TYPE_CROSS_DOCK"; +}; +export type DraftGetWarehouseFboListResponseWarehouseType = typeof DraftGetWarehouseFboListResponseWarehouseType[keyof typeof DraftGetWarehouseFboListResponseWarehouseType]; +export declare function instanceOfDraftGetWarehouseFboListResponseWarehouseType(value: any): boolean; +export declare function DraftGetWarehouseFboListResponseWarehouseTypeFromJSON(json: any): DraftGetWarehouseFboListResponseWarehouseType; +export declare function DraftGetWarehouseFboListResponseWarehouseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftGetWarehouseFboListResponseWarehouseType; +export declare function DraftGetWarehouseFboListResponseWarehouseTypeToJSON(value?: DraftGetWarehouseFboListResponseWarehouseType | null): any; diff --git a/dist/esm/models/DraftGetWarehouseFboListResponseWarehouseType.js b/dist/esm/models/DraftGetWarehouseFboListResponseWarehouseType.js new file mode 100644 index 0000000..0435672 --- /dev/null +++ b/dist/esm/models/DraftGetWarehouseFboListResponseWarehouseType.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада, пункта выдачи заказов или сортировочного центра: + * - `WAREHOUSE_TYPE_DELIVERY_POINT` — пункт выдачи заказов, + * - `WAREHOUSE_TYPE_ORDERS_RECEIVING_POINT` — пункт приёма заказов, + * - `WAREHOUSE_TYPE_SORTING_CENTER` — сортировочный центр, + * - `WAREHOUSE_TYPE_FULL_FILLMENT` — фулфилмент, + * - `WAREHOUSE_TYPE_CROSS_DOCK` — кросс-докинг. + * + * @export + */ +export const DraftGetWarehouseFboListResponseWarehouseType = { + DELIVERY_POINT: 'WAREHOUSE_TYPE_DELIVERY_POINT', + ORDERS_RECEIVING_POINT: 'WAREHOUSE_TYPE_ORDERS_RECEIVING_POINT', + SORTING_CENTER: 'WAREHOUSE_TYPE_SORTING_CENTER', + FULL_FILLMENT: 'WAREHOUSE_TYPE_FULL_FILLMENT', + CROSS_DOCK: 'WAREHOUSE_TYPE_CROSS_DOCK' +}; +export function instanceOfDraftGetWarehouseFboListResponseWarehouseType(value) { + for (const key in DraftGetWarehouseFboListResponseWarehouseType) { + if (Object.prototype.hasOwnProperty.call(DraftGetWarehouseFboListResponseWarehouseType, key)) { + if (DraftGetWarehouseFboListResponseWarehouseType[key] === value) { + return true; + } + } + } + return false; +} +export function DraftGetWarehouseFboListResponseWarehouseTypeFromJSON(json) { + return DraftGetWarehouseFboListResponseWarehouseTypeFromJSONTyped(json, false); +} +export function DraftGetWarehouseFboListResponseWarehouseTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DraftGetWarehouseFboListResponseWarehouseTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/DraftTimeslotInfoResponseResult.d.ts b/dist/esm/models/DraftTimeslotInfoResponseResult.d.ts new file mode 100644 index 0000000..9e4068c --- /dev/null +++ b/dist/esm/models/DraftTimeslotInfoResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultDropOffWarehouseTimeslots } from './ResultDropOffWarehouseTimeslots'; +/** + * Информация о таймслотах. + * @export + * @interface DraftTimeslotInfoResponseResult + */ +export interface DraftTimeslotInfoResponseResult { + /** + * + * @type {ResultDropOffWarehouseTimeslots} + * @memberof DraftTimeslotInfoResponseResult + */ + drop_off_warehouse_timeslots?: ResultDropOffWarehouseTimeslots; + /** + * Дата начала периода. + * @type {string} + * @memberof DraftTimeslotInfoResponseResult + */ + requested_date_from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof DraftTimeslotInfoResponseResult + */ + requested_date_to?: string; +} +/** + * Check if a given object implements the DraftTimeslotInfoResponseResult interface. + */ +export declare function instanceOfDraftTimeslotInfoResponseResult(value: object): value is DraftTimeslotInfoResponseResult; +export declare function DraftTimeslotInfoResponseResultFromJSON(json: any): DraftTimeslotInfoResponseResult; +export declare function DraftTimeslotInfoResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftTimeslotInfoResponseResult; +export declare function DraftTimeslotInfoResponseResultToJSON(value?: DraftTimeslotInfoResponseResult | null): any; diff --git a/dist/esm/models/DraftTimeslotInfoResponseResult.js b/dist/esm/models/DraftTimeslotInfoResponseResult.js new file mode 100644 index 0000000..6311878 --- /dev/null +++ b/dist/esm/models/DraftTimeslotInfoResponseResult.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResultDropOffWarehouseTimeslotsFromJSON, ResultDropOffWarehouseTimeslotsToJSON, } from './ResultDropOffWarehouseTimeslots'; +/** + * Check if a given object implements the DraftTimeslotInfoResponseResult interface. + */ +export function instanceOfDraftTimeslotInfoResponseResult(value) { + return true; +} +export function DraftTimeslotInfoResponseResultFromJSON(json) { + return DraftTimeslotInfoResponseResultFromJSONTyped(json, false); +} +export function DraftTimeslotInfoResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_warehouse_timeslots': json['drop_off_warehouse_timeslots'] == null ? undefined : ResultDropOffWarehouseTimeslotsFromJSON(json['drop_off_warehouse_timeslots']), + 'requested_date_from': json['requested_date_from'] == null ? undefined : json['requested_date_from'], + 'requested_date_to': json['requested_date_to'] == null ? undefined : json['requested_date_to'], + }; +} +export function DraftTimeslotInfoResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_warehouse_timeslots': ResultDropOffWarehouseTimeslotsToJSON(value['drop_off_warehouse_timeslots']), + 'requested_date_from': value['requested_date_from'], + 'requested_date_to': value['requested_date_to'], + }; +} diff --git a/dist/esm/models/DropOffPointCoordinates.d.ts b/dist/esm/models/DropOffPointCoordinates.d.ts new file mode 100644 index 0000000..2bc8b56 --- /dev/null +++ b/dist/esm/models/DropOffPointCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты drop-off пункта. + * @export + * @interface DropOffPointCoordinates + */ +export interface DropOffPointCoordinates { + /** + * Широта. + * @type {number} + * @memberof DropOffPointCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof DropOffPointCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the DropOffPointCoordinates interface. + */ +export declare function instanceOfDropOffPointCoordinates(value: object): value is DropOffPointCoordinates; +export declare function DropOffPointCoordinatesFromJSON(json: any): DropOffPointCoordinates; +export declare function DropOffPointCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropOffPointCoordinates; +export declare function DropOffPointCoordinatesToJSON(value?: DropOffPointCoordinates | null): any; diff --git a/dist/esm/models/DropOffPointCoordinates.js b/dist/esm/models/DropOffPointCoordinates.js new file mode 100644 index 0000000..6fde391 --- /dev/null +++ b/dist/esm/models/DropOffPointCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DropOffPointCoordinates interface. + */ +export function instanceOfDropOffPointCoordinates(value) { + return true; +} +export function DropOffPointCoordinatesFromJSON(json) { + return DropOffPointCoordinatesFromJSONTyped(json, false); +} +export function DropOffPointCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function DropOffPointCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/DropOffWarehouseTimeslotsDay.d.ts b/dist/esm/models/DropOffWarehouseTimeslotsDay.d.ts new file mode 100644 index 0000000..7eeb73c --- /dev/null +++ b/dist/esm/models/DropOffWarehouseTimeslotsDay.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DropOffWarehouseTimeslotsDayTimeslot } from './DropOffWarehouseTimeslotsDayTimeslot'; +/** + * + * @export + * @interface DropOffWarehouseTimeslotsDay + */ +export interface DropOffWarehouseTimeslotsDay { + /** + * Дата таймслотов. + * @type {string} + * @memberof DropOffWarehouseTimeslotsDay + */ + date_in_timezone?: string; + /** + * Таймслоты. + * @type {Array} + * @memberof DropOffWarehouseTimeslotsDay + */ + timeslots?: Array; +} +/** + * Check if a given object implements the DropOffWarehouseTimeslotsDay interface. + */ +export declare function instanceOfDropOffWarehouseTimeslotsDay(value: object): value is DropOffWarehouseTimeslotsDay; +export declare function DropOffWarehouseTimeslotsDayFromJSON(json: any): DropOffWarehouseTimeslotsDay; +export declare function DropOffWarehouseTimeslotsDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropOffWarehouseTimeslotsDay; +export declare function DropOffWarehouseTimeslotsDayToJSON(value?: DropOffWarehouseTimeslotsDay | null): any; diff --git a/dist/esm/models/DropOffWarehouseTimeslotsDay.js b/dist/esm/models/DropOffWarehouseTimeslotsDay.js new file mode 100644 index 0000000..0bb25b1 --- /dev/null +++ b/dist/esm/models/DropOffWarehouseTimeslotsDay.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DropOffWarehouseTimeslotsDayTimeslotFromJSON, DropOffWarehouseTimeslotsDayTimeslotToJSON, } from './DropOffWarehouseTimeslotsDayTimeslot'; +/** + * Check if a given object implements the DropOffWarehouseTimeslotsDay interface. + */ +export function instanceOfDropOffWarehouseTimeslotsDay(value) { + return true; +} +export function DropOffWarehouseTimeslotsDayFromJSON(json) { + return DropOffWarehouseTimeslotsDayFromJSONTyped(json, false); +} +export function DropOffWarehouseTimeslotsDayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_in_timezone': json['date_in_timezone'] == null ? undefined : json['date_in_timezone'], + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(DropOffWarehouseTimeslotsDayTimeslotFromJSON)), + }; +} +export function DropOffWarehouseTimeslotsDayToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_in_timezone': value['date_in_timezone'], + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(DropOffWarehouseTimeslotsDayTimeslotToJSON)), + }; +} diff --git a/dist/esm/models/DropOffWarehouseTimeslotsDayTimeslot.d.ts b/dist/esm/models/DropOffWarehouseTimeslotsDayTimeslot.d.ts new file mode 100644 index 0000000..9d2a9ec --- /dev/null +++ b/dist/esm/models/DropOffWarehouseTimeslotsDayTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DropOffWarehouseTimeslotsDayTimeslot + */ +export interface DropOffWarehouseTimeslotsDayTimeslot { + /** + * Начало таймслота. + * @type {string} + * @memberof DropOffWarehouseTimeslotsDayTimeslot + */ + from_in_timezone?: string; + /** + * Конец таймслота. + * @type {string} + * @memberof DropOffWarehouseTimeslotsDayTimeslot + */ + to_in_timezone?: string; +} +/** + * Check if a given object implements the DropOffWarehouseTimeslotsDayTimeslot interface. + */ +export declare function instanceOfDropOffWarehouseTimeslotsDayTimeslot(value: object): value is DropOffWarehouseTimeslotsDayTimeslot; +export declare function DropOffWarehouseTimeslotsDayTimeslotFromJSON(json: any): DropOffWarehouseTimeslotsDayTimeslot; +export declare function DropOffWarehouseTimeslotsDayTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropOffWarehouseTimeslotsDayTimeslot; +export declare function DropOffWarehouseTimeslotsDayTimeslotToJSON(value?: DropOffWarehouseTimeslotsDayTimeslot | null): any; diff --git a/dist/esm/models/DropOffWarehouseTimeslotsDayTimeslot.js b/dist/esm/models/DropOffWarehouseTimeslotsDayTimeslot.js new file mode 100644 index 0000000..af9a868 --- /dev/null +++ b/dist/esm/models/DropOffWarehouseTimeslotsDayTimeslot.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the DropOffWarehouseTimeslotsDayTimeslot interface. + */ +export function instanceOfDropOffWarehouseTimeslotsDayTimeslot(value) { + return true; +} +export function DropOffWarehouseTimeslotsDayTimeslotFromJSON(json) { + return DropOffWarehouseTimeslotsDayTimeslotFromJSONTyped(json, false); +} +export function DropOffWarehouseTimeslotsDayTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from_in_timezone': json['from_in_timezone'] == null ? undefined : json['from_in_timezone'], + 'to_in_timezone': json['to_in_timezone'] == null ? undefined : json['to_in_timezone'], + }; +} +export function DropOffWarehouseTimeslotsDayTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from_in_timezone': value['from_in_timezone'], + 'to_in_timezone': value['to_in_timezone'], + }; +} diff --git a/dist/esm/models/ErrorData.d.ts b/dist/esm/models/ErrorData.d.ts new file mode 100644 index 0000000..af03eca --- /dev/null +++ b/dist/esm/models/ErrorData.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ErrorData + */ +export interface ErrorData { + /** + * Код. + * @type {string} + * @memberof ErrorData + */ + code?: string; + /** + * Причина. + * @type {string} + * @memberof ErrorData + */ + field?: string; + /** + * Текстовое описание. + * @type {string} + * @memberof ErrorData + */ + message?: string; + /** + * Уровень скидки. + * @type {number} + * @memberof ErrorData + */ + step?: number; + /** + * Значение поля с ошибкой. + * @type {string} + * @memberof ErrorData + */ + value?: string; +} +/** + * Check if a given object implements the ErrorData interface. + */ +export declare function instanceOfErrorData(value: object): value is ErrorData; +export declare function ErrorDataFromJSON(json: any): ErrorData; +export declare function ErrorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorData; +export declare function ErrorDataToJSON(value?: ErrorData | null): any; diff --git a/dist/esm/models/ErrorData.js b/dist/esm/models/ErrorData.js new file mode 100644 index 0000000..e0e4c94 --- /dev/null +++ b/dist/esm/models/ErrorData.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ErrorData interface. + */ +export function instanceOfErrorData(value) { + return true; +} +export function ErrorDataFromJSON(json) { + return ErrorDataFromJSONTyped(json, false); +} +export function ErrorDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'field': json['field'] == null ? undefined : json['field'], + 'message': json['message'] == null ? undefined : json['message'], + 'step': json['step'] == null ? undefined : json['step'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ErrorDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'field': value['field'], + 'message': value['message'], + 'step': value['step'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ErrorErrorLevel.d.ts b/dist/esm/models/ErrorErrorLevel.d.ts new file mode 100644 index 0000000..f93b842 --- /dev/null +++ b/dist/esm/models/ErrorErrorLevel.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Описание уровней ошибок: + * - `ERROR_LEVEL_UNSPECIFIED` — не определён; + * - `ERROR_LEVEL_ERROR` — критичная ошибка, товар нельзя продавать; + * - `ERROR_LEVEL_INTERNAL` — критичная ошибка, товар нельзя продавать. + * - `ERROR_LEVEL_WARNING` — некритичная ошибка, товар можно продавать. + * + * [Подробнее об ошибках при создании товара в Базе знаний продавца](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/oshibki-pri-rabote-s-kartochkami) + * + * @export + */ +export declare const ErrorErrorLevel: { + readonly UNSPECIFIED: "ERROR_LEVEL_UNSPECIFIED"; + readonly ERROR: "ERROR_LEVEL_ERROR"; + readonly WARNING: "ERROR_LEVEL_WARNING"; + readonly INTERNAL: "ERROR_LEVEL_INTERNAL"; +}; +export type ErrorErrorLevel = typeof ErrorErrorLevel[keyof typeof ErrorErrorLevel]; +export declare function instanceOfErrorErrorLevel(value: any): boolean; +export declare function ErrorErrorLevelFromJSON(json: any): ErrorErrorLevel; +export declare function ErrorErrorLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorErrorLevel; +export declare function ErrorErrorLevelToJSON(value?: ErrorErrorLevel | null): any; diff --git a/dist/esm/models/ErrorErrorLevel.js b/dist/esm/models/ErrorErrorLevel.js new file mode 100644 index 0000000..38407e5 --- /dev/null +++ b/dist/esm/models/ErrorErrorLevel.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Описание уровней ошибок: + * - `ERROR_LEVEL_UNSPECIFIED` — не определён; + * - `ERROR_LEVEL_ERROR` — критичная ошибка, товар нельзя продавать; + * - `ERROR_LEVEL_INTERNAL` — критичная ошибка, товар нельзя продавать. + * - `ERROR_LEVEL_WARNING` — некритичная ошибка, товар можно продавать. + * + * [Подробнее об ошибках при создании товара в Базе знаний продавца](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/oshibki-pri-rabote-s-kartochkami) + * + * @export + */ +export const ErrorErrorLevel = { + UNSPECIFIED: 'ERROR_LEVEL_UNSPECIFIED', + ERROR: 'ERROR_LEVEL_ERROR', + WARNING: 'ERROR_LEVEL_WARNING', + INTERNAL: 'ERROR_LEVEL_INTERNAL' +}; +export function instanceOfErrorErrorLevel(value) { + for (const key in ErrorErrorLevel) { + if (Object.prototype.hasOwnProperty.call(ErrorErrorLevel, key)) { + if (ErrorErrorLevel[key] === value) { + return true; + } + } + } + return false; +} +export function ErrorErrorLevelFromJSON(json) { + return ErrorErrorLevelFromJSONTyped(json, false); +} +export function ErrorErrorLevelFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ErrorErrorLevelToJSON(value) { + return value; +} diff --git a/dist/esm/models/ErrorErrorMessageEnum.d.ts b/dist/esm/models/ErrorErrorMessageEnum.d.ts new file mode 100644 index 0000000..fac0d50 --- /dev/null +++ b/dist/esm/models/ErrorErrorMessageEnum.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Возможные ошибки: + * - `UNSPECIFIED` — ошибка не определена; + * - `EMPTY_ITEMS_LIST` — передан пустой список `items`; + * - `ITEMS_COUNT_MORE_THAN_MAX` — превышено количество `sku`; + * - `UNKNOWN_CLUSTER_IDS` — кластер с таким `id` не существует; + * - `ITEMS_VALIDATION` — ошибки валидации товарного состава; + * - `DROP_OFF_POINT_DOES_NOT_EXIST` — точка отгрузки с таким `id` не существует; + * - `DROP_OFF_POINT_HAS_NO_TIMESLOTS` — нет доступных таймслотов на точке отгрузки; + * - `TOTAL_VOLUME_IN_LITRES_INVALID` — объём поставляемых товаров слишком большой для этой точки; + * - `SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE` — требуется распределение SKU, но оно невозможно; + * - `CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER` — поставка кросс-докингом через пункт выдачи заказов недоступна для продавца; + * - `DUPLICATE_SKUS_IN_REQUEST` — в запросе есть дубликаты SKU; + * - `CAN_NOT_CREATE_DRAFT` — не удалось создать черновик; + * - `DRAFT_TOTALS_INVALID_ERROR` — некорректные итоговые данные в черновике; + * - `CAN_NOT_START_CALCULATION` — не удалось начать расчёт; + * - `PICKUP_IS_NOT_AVAILABLE` — самовывоз недоступен; + * - `DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP` — точка отгрузки несовместима с самовывозом; + * - `UNDEFINED` — неизвестная ошибка. + * + * @export + */ +export declare const ErrorErrorMessageEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly EMPTY_ITEMS_LIST: "EMPTY_ITEMS_LIST"; + readonly ITEMS_COUNT_MORE_THAN_MAX: "ITEMS_COUNT_MORE_THAN_MAX"; + readonly UNKNOWN_CLUSTER_IDS: "UNKNOWN_CLUSTER_IDS"; + readonly ITEMS_VALIDATION: "ITEMS_VALIDATION"; + readonly DROP_OFF_POINT_DOES_NOT_EXIST: "DROP_OFF_POINT_DOES_NOT_EXIST"; + readonly DROP_OFF_POINT_HAS_NO_TIMESLOTS: "DROP_OFF_POINT_HAS_NO_TIMESLOTS"; + readonly TOTAL_VOLUME_IN_LITRES_INVALID: "TOTAL_VOLUME_IN_LITRES_INVALID"; + readonly SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: "SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE"; + readonly CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: "CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER"; + readonly DUPLICATE_SKUS_IN_REQUEST: "DUPLICATE_SKUS_IN_REQUEST"; + readonly CAN_NOT_CREATE_DRAFT: "CAN_NOT_CREATE_DRAFT"; + readonly DRAFT_TOTALS_INVALID_ERROR: "DRAFT_TOTALS_INVALID_ERROR"; + readonly CAN_NOT_START_CALCULATION: "CAN_NOT_START_CALCULATION"; + readonly PICKUP_IS_NOT_AVAILABLE: "PICKUP_IS_NOT_AVAILABLE"; + readonly DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP: "DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type ErrorErrorMessageEnum = typeof ErrorErrorMessageEnum[keyof typeof ErrorErrorMessageEnum]; +export declare function instanceOfErrorErrorMessageEnum(value: any): boolean; +export declare function ErrorErrorMessageEnumFromJSON(json: any): ErrorErrorMessageEnum; +export declare function ErrorErrorMessageEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorErrorMessageEnum; +export declare function ErrorErrorMessageEnumToJSON(value?: ErrorErrorMessageEnum | null): any; diff --git a/dist/esm/models/ErrorErrorMessageEnum.js b/dist/esm/models/ErrorErrorMessageEnum.js new file mode 100644 index 0000000..a151652 --- /dev/null +++ b/dist/esm/models/ErrorErrorMessageEnum.js @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Возможные ошибки: + * - `UNSPECIFIED` — ошибка не определена; + * - `EMPTY_ITEMS_LIST` — передан пустой список `items`; + * - `ITEMS_COUNT_MORE_THAN_MAX` — превышено количество `sku`; + * - `UNKNOWN_CLUSTER_IDS` — кластер с таким `id` не существует; + * - `ITEMS_VALIDATION` — ошибки валидации товарного состава; + * - `DROP_OFF_POINT_DOES_NOT_EXIST` — точка отгрузки с таким `id` не существует; + * - `DROP_OFF_POINT_HAS_NO_TIMESLOTS` — нет доступных таймслотов на точке отгрузки; + * - `TOTAL_VOLUME_IN_LITRES_INVALID` — объём поставляемых товаров слишком большой для этой точки; + * - `SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE` — требуется распределение SKU, но оно невозможно; + * - `CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER` — поставка кросс-докингом через пункт выдачи заказов недоступна для продавца; + * - `DUPLICATE_SKUS_IN_REQUEST` — в запросе есть дубликаты SKU; + * - `CAN_NOT_CREATE_DRAFT` — не удалось создать черновик; + * - `DRAFT_TOTALS_INVALID_ERROR` — некорректные итоговые данные в черновике; + * - `CAN_NOT_START_CALCULATION` — не удалось начать расчёт; + * - `PICKUP_IS_NOT_AVAILABLE` — самовывоз недоступен; + * - `DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP` — точка отгрузки несовместима с самовывозом; + * - `UNDEFINED` — неизвестная ошибка. + * + * @export + */ +export const ErrorErrorMessageEnum = { + UNSPECIFIED: 'UNSPECIFIED', + EMPTY_ITEMS_LIST: 'EMPTY_ITEMS_LIST', + ITEMS_COUNT_MORE_THAN_MAX: 'ITEMS_COUNT_MORE_THAN_MAX', + UNKNOWN_CLUSTER_IDS: 'UNKNOWN_CLUSTER_IDS', + ITEMS_VALIDATION: 'ITEMS_VALIDATION', + DROP_OFF_POINT_DOES_NOT_EXIST: 'DROP_OFF_POINT_DOES_NOT_EXIST', + DROP_OFF_POINT_HAS_NO_TIMESLOTS: 'DROP_OFF_POINT_HAS_NO_TIMESLOTS', + TOTAL_VOLUME_IN_LITRES_INVALID: 'TOTAL_VOLUME_IN_LITRES_INVALID', + SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: 'SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE', + CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: 'CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER', + DUPLICATE_SKUS_IN_REQUEST: 'DUPLICATE_SKUS_IN_REQUEST', + CAN_NOT_CREATE_DRAFT: 'CAN_NOT_CREATE_DRAFT', + DRAFT_TOTALS_INVALID_ERROR: 'DRAFT_TOTALS_INVALID_ERROR', + CAN_NOT_START_CALCULATION: 'CAN_NOT_START_CALCULATION', + PICKUP_IS_NOT_AVAILABLE: 'PICKUP_IS_NOT_AVAILABLE', + DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP: 'DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfErrorErrorMessageEnum(value) { + for (const key in ErrorErrorMessageEnum) { + if (Object.prototype.hasOwnProperty.call(ErrorErrorMessageEnum, key)) { + if (ErrorErrorMessageEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ErrorErrorMessageEnumFromJSON(json) { + return ErrorErrorMessageEnumFromJSONTyped(json, false); +} +export function ErrorErrorMessageEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ErrorErrorMessageEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ErrorErrorReasonEnum.d.ts b/dist/esm/models/ErrorErrorReasonEnum.d.ts new file mode 100644 index 0000000..53275b6 --- /dev/null +++ b/dist/esm/models/ErrorErrorReasonEnum.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ErrorErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER: "ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER"; + readonly ALL_ITEMS_REJECTED: "ALL_ITEMS_REJECTED"; + readonly NOT_AVAILABLE_CLUSTERS: "NOT_AVAILABLE_CLUSTERS"; + readonly ALL_ITEMS_COUNT_INVALID: "ALL_ITEMS_COUNT_INVALID"; + readonly ALL_ITEMS_VOLUME_INVALID: "ALL_ITEMS_VOLUME_INVALID"; + readonly ALL_BUNDLES_EMPTY: "ALL_BUNDLES_EMPTY"; + readonly HAS_EMPTY_BUNDLE: "HAS_EMPTY_BUNDLE"; + readonly DISABLED_FOR_SELLER: "DISABLED_FOR_SELLER"; + readonly NO_ACTIVE_SELLER_WAREHOUSE: "NO_ACTIVE_SELLER_WAREHOUSE"; + readonly INVALID_SELLER_WAREHOUSE: "INVALID_SELLER_WAREHOUSE"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type ErrorErrorReasonEnum = typeof ErrorErrorReasonEnum[keyof typeof ErrorErrorReasonEnum]; +export declare function instanceOfErrorErrorReasonEnum(value: any): boolean; +export declare function ErrorErrorReasonEnumFromJSON(json: any): ErrorErrorReasonEnum; +export declare function ErrorErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorErrorReasonEnum; +export declare function ErrorErrorReasonEnumToJSON(value?: ErrorErrorReasonEnum | null): any; diff --git a/dist/esm/models/ErrorErrorReasonEnum.js b/dist/esm/models/ErrorErrorReasonEnum.js new file mode 100644 index 0000000..eebabf5 --- /dev/null +++ b/dist/esm/models/ErrorErrorReasonEnum.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const ErrorErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER: 'ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER', + ALL_ITEMS_REJECTED: 'ALL_ITEMS_REJECTED', + NOT_AVAILABLE_CLUSTERS: 'NOT_AVAILABLE_CLUSTERS', + ALL_ITEMS_COUNT_INVALID: 'ALL_ITEMS_COUNT_INVALID', + ALL_ITEMS_VOLUME_INVALID: 'ALL_ITEMS_VOLUME_INVALID', + ALL_BUNDLES_EMPTY: 'ALL_BUNDLES_EMPTY', + HAS_EMPTY_BUNDLE: 'HAS_EMPTY_BUNDLE', + DISABLED_FOR_SELLER: 'DISABLED_FOR_SELLER', + NO_ACTIVE_SELLER_WAREHOUSE: 'NO_ACTIVE_SELLER_WAREHOUSE', + INVALID_SELLER_WAREHOUSE: 'INVALID_SELLER_WAREHOUSE', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfErrorErrorReasonEnum(value) { + for (const key in ErrorErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(ErrorErrorReasonEnum, key)) { + if (ErrorErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ErrorErrorReasonEnumFromJSON(json) { + return ErrorErrorReasonEnumFromJSONTyped(json, false); +} +export function ErrorErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ErrorErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ErrorHumanTexts.d.ts b/dist/esm/models/ErrorHumanTexts.d.ts new file mode 100644 index 0000000..5fae75a --- /dev/null +++ b/dist/esm/models/ErrorHumanTexts.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { HumanTextsParam } from './HumanTextsParam'; +/** + * Описание ошибок. + * @export + * @interface ErrorHumanTexts + */ +export interface ErrorHumanTexts { + /** + * Название атрибута, в котором произошла ошибка. + * @type {string} + * @memberof ErrorHumanTexts + */ + attribute_name?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof ErrorHumanTexts + */ + description?: string; + /** + * Код ошибки в системе Ozon. + * @type {string} + * @memberof ErrorHumanTexts + */ + hint_code?: string; + /** + * Текст ошибки. + * @type {string} + * @memberof ErrorHumanTexts + */ + message?: string; + /** + * В каких параметрах допущена ошибка. + * @type {Array} + * @memberof ErrorHumanTexts + */ + params?: Array; + /** + * Краткое описание ошибки. + * @type {string} + * @memberof ErrorHumanTexts + */ + short_description?: string; +} +/** + * Check if a given object implements the ErrorHumanTexts interface. + */ +export declare function instanceOfErrorHumanTexts(value: object): value is ErrorHumanTexts; +export declare function ErrorHumanTextsFromJSON(json: any): ErrorHumanTexts; +export declare function ErrorHumanTextsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorHumanTexts; +export declare function ErrorHumanTextsToJSON(value?: ErrorHumanTexts | null): any; diff --git a/dist/esm/models/ErrorHumanTexts.js b/dist/esm/models/ErrorHumanTexts.js new file mode 100644 index 0000000..2f10b81 --- /dev/null +++ b/dist/esm/models/ErrorHumanTexts.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { HumanTextsParamFromJSON, HumanTextsParamToJSON, } from './HumanTextsParam'; +/** + * Check if a given object implements the ErrorHumanTexts interface. + */ +export function instanceOfErrorHumanTexts(value) { + return true; +} +export function ErrorHumanTextsFromJSON(json) { + return ErrorHumanTextsFromJSONTyped(json, false); +} +export function ErrorHumanTextsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attribute_name': json['attribute_name'] == null ? undefined : json['attribute_name'], + 'description': json['description'] == null ? undefined : json['description'], + 'hint_code': json['hint_code'] == null ? undefined : json['hint_code'], + 'message': json['message'] == null ? undefined : json['message'], + 'params': json['params'] == null ? undefined : (json['params'].map(HumanTextsParamFromJSON)), + 'short_description': json['short_description'] == null ? undefined : json['short_description'], + }; +} +export function ErrorHumanTextsToJSON(value) { + if (value == null) { + return value; + } + return { + 'attribute_name': value['attribute_name'], + 'description': value['description'], + 'hint_code': value['hint_code'], + 'message': value['message'], + 'params': value['params'] == null ? undefined : (value['params'].map(HumanTextsParamToJSON)), + 'short_description': value['short_description'], + }; +} diff --git a/dist/esm/models/ErrorItemsValidation.d.ts b/dist/esm/models/ErrorItemsValidation.d.ts new file mode 100644 index 0000000..0b839cd --- /dev/null +++ b/dist/esm/models/ErrorItemsValidation.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemsValidationRejectedItems } from './ItemsValidationRejectedItems'; +/** + * + * @export + * @interface ErrorItemsValidation + */ +export interface ErrorItemsValidation { + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof ErrorItemsValidation + */ + macrolocal_cluster_id?: number; + /** + * Отклонённые товары. + * @type {Array} + * @memberof ErrorItemsValidation + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the ErrorItemsValidation interface. + */ +export declare function instanceOfErrorItemsValidation(value: object): value is ErrorItemsValidation; +export declare function ErrorItemsValidationFromJSON(json: any): ErrorItemsValidation; +export declare function ErrorItemsValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorItemsValidation; +export declare function ErrorItemsValidationToJSON(value?: ErrorItemsValidation | null): any; diff --git a/dist/esm/models/ErrorItemsValidation.js b/dist/esm/models/ErrorItemsValidation.js new file mode 100644 index 0000000..745eae6 --- /dev/null +++ b/dist/esm/models/ErrorItemsValidation.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ItemsValidationRejectedItemsFromJSON, ItemsValidationRejectedItemsToJSON, } from './ItemsValidationRejectedItems'; +/** + * Check if a given object implements the ErrorItemsValidation interface. + */ +export function instanceOfErrorItemsValidation(value) { + return true; +} +export function ErrorItemsValidationFromJSON(json) { + return ErrorItemsValidationFromJSONTyped(json, false); +} +export function ErrorItemsValidationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(ItemsValidationRejectedItemsFromJSON)), + }; +} +export function ErrorItemsValidationToJSON(value) { + if (value == null) { + return value; + } + return { + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(ItemsValidationRejectedItemsToJSON)), + }; +} diff --git a/dist/esm/models/ExemplarMark.d.ts b/dist/esm/models/ExemplarMark.d.ts new file mode 100644 index 0000000..bf8a699 --- /dev/null +++ b/dist/esm/models/ExemplarMark.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ExemplarMark + */ +export interface ExemplarMark { + /** + * Значение кода маркировки. + * @type {string} + * @memberof ExemplarMark + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof ExemplarMark + */ + mark_type?: string; +} +/** + * Check if a given object implements the ExemplarMark interface. + */ +export declare function instanceOfExemplarMark(value: object): value is ExemplarMark; +export declare function ExemplarMarkFromJSON(json: any): ExemplarMark; +export declare function ExemplarMarkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExemplarMark; +export declare function ExemplarMarkToJSON(value?: ExemplarMark | null): any; diff --git a/dist/esm/models/ExemplarMark.js b/dist/esm/models/ExemplarMark.js new file mode 100644 index 0000000..ac20335 --- /dev/null +++ b/dist/esm/models/ExemplarMark.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ExemplarMark interface. + */ +export function instanceOfExemplarMark(value) { + return true; +} +export function ExemplarMarkFromJSON(json) { + return ExemplarMarkFromJSONTyped(json, false); +} +export function ExemplarMarkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + }; +} +export function ExemplarMarkToJSON(value) { + if (value == null) { + return value; + } + return { + 'mark': value['mark'], + 'mark_type': value['mark_type'], + }; +} diff --git a/dist/esm/models/ExemplarsMarks.d.ts b/dist/esm/models/ExemplarsMarks.d.ts new file mode 100644 index 0000000..f3516db --- /dev/null +++ b/dist/esm/models/ExemplarsMarks.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ExemplarsMarks + */ +export interface ExemplarsMarks { + /** + * Значение кода маркировки. + * @type {string} + * @memberof ExemplarsMarks + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof ExemplarsMarks + */ + mark_type?: string; +} +/** + * Check if a given object implements the ExemplarsMarks interface. + */ +export declare function instanceOfExemplarsMarks(value: object): value is ExemplarsMarks; +export declare function ExemplarsMarksFromJSON(json: any): ExemplarsMarks; +export declare function ExemplarsMarksFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExemplarsMarks; +export declare function ExemplarsMarksToJSON(value?: ExemplarsMarks | null): any; diff --git a/dist/esm/models/ExemplarsMarks.js b/dist/esm/models/ExemplarsMarks.js new file mode 100644 index 0000000..6a5add7 --- /dev/null +++ b/dist/esm/models/ExemplarsMarks.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ExemplarsMarks interface. + */ +export function instanceOfExemplarsMarks(value) { + return true; +} +export function ExemplarsMarksFromJSON(json) { + return ExemplarsMarksFromJSONTyped(json, false); +} +export function ExemplarsMarksFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + }; +} +export function ExemplarsMarksToJSON(value) { + if (value == null) { + return value; + } + return { + 'mark': value['mark'], + 'mark_type': value['mark_type'], + }; +} diff --git a/dist/esm/models/FboPostingFboPostingAnalyticsData.d.ts b/dist/esm/models/FboPostingFboPostingAnalyticsData.d.ts new file mode 100644 index 0000000..f87bd27 --- /dev/null +++ b/dist/esm/models/FboPostingFboPostingAnalyticsData.d.ts @@ -0,0 +1,92 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface FboPostingFboPostingAnalyticsData + */ +export interface FboPostingFboPostingAnalyticsData { + /** + * Город доставки. Только для продавцов из СНГ. + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + city?: string; + /** + * Способ доставки. + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + delivery_type?: string; + /** + * Получатель юридическое лицо: + * - `true` — юридическое лицо, + * - `false` — физическое лицо. + * + * @type {boolean} + * @memberof FboPostingFboPostingAnalyticsData + */ + is_legal?: boolean; + /** + * Наличие подписки Premium. + * @type {boolean} + * @memberof FboPostingFboPostingAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`, + * - `карта Ozon Банка`, + * - `автосписание с карты Ozon Банка при выдаче`, + * - `сохранённой картой при получении`, + * - `Система Быстрых Платежей`, + * - `Ozon Рассрочка`, + * - `оплата на расчётный счёт`, + * - `SberPay`, + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + payment_type_group_name?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof FboPostingFboPostingAnalyticsData + */ + warehouse_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + warehouse_name?: string; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + client_delivery_date_end?: string; +} +/** + * Check if a given object implements the FboPostingFboPostingAnalyticsData interface. + */ +export declare function instanceOfFboPostingFboPostingAnalyticsData(value: object): value is FboPostingFboPostingAnalyticsData; +export declare function FboPostingFboPostingAnalyticsDataFromJSON(json: any): FboPostingFboPostingAnalyticsData; +export declare function FboPostingFboPostingAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FboPostingFboPostingAnalyticsData; +export declare function FboPostingFboPostingAnalyticsDataToJSON(value?: FboPostingFboPostingAnalyticsData | null): any; diff --git a/dist/esm/models/FboPostingFboPostingAnalyticsData.js b/dist/esm/models/FboPostingFboPostingAnalyticsData.js new file mode 100644 index 0000000..c7cc4fd --- /dev/null +++ b/dist/esm/models/FboPostingFboPostingAnalyticsData.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FboPostingFboPostingAnalyticsData interface. + */ +export function instanceOfFboPostingFboPostingAnalyticsData(value) { + return true; +} +export function FboPostingFboPostingAnalyticsDataFromJSON(json) { + return FboPostingFboPostingAnalyticsDataFromJSONTyped(json, false); +} +export function FboPostingFboPostingAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + }; +} +export function FboPostingFboPostingAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + }; +} diff --git a/dist/esm/models/FbpCheckActStateResponseErrorReason.d.ts b/dist/esm/models/FbpCheckActStateResponseErrorReason.d.ts new file mode 100644 index 0000000..2f29e17 --- /dev/null +++ b/dist/esm/models/FbpCheckActStateResponseErrorReason.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ошибка генерации: + * - `ERROR_REASON_UNSPECIFIED` — не определена; + * - `INVALID_COMPANY` — неверная компания; + * - `FILE_NOT_FOUND` — файл не найден; + * - `GENERATE_TIMEOUT_REACHED` — превышено время генерации; + * - `GENERATION_ERROR` — ошибка во время генерации. + * + * @export + */ +export declare const FbpCheckActStateResponseErrorReason: { + readonly ERROR_REASON_UNSPECIFIED: "ERROR_REASON_UNSPECIFIED"; + readonly INVALID_COMPANY: "INVALID_COMPANY"; + readonly FILE_NOT_FOUND: "FILE_NOT_FOUND"; + readonly GENERATE_TIMEOUT_REACHED: "GENERATE_TIMEOUT_REACHED"; + readonly GENERATION_ERROR: "GENERATION_ERROR"; +}; +export type FbpCheckActStateResponseErrorReason = typeof FbpCheckActStateResponseErrorReason[keyof typeof FbpCheckActStateResponseErrorReason]; +export declare function instanceOfFbpCheckActStateResponseErrorReason(value: any): boolean; +export declare function FbpCheckActStateResponseErrorReasonFromJSON(json: any): FbpCheckActStateResponseErrorReason; +export declare function FbpCheckActStateResponseErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpCheckActStateResponseErrorReason; +export declare function FbpCheckActStateResponseErrorReasonToJSON(value?: FbpCheckActStateResponseErrorReason | null): any; diff --git a/dist/esm/models/FbpCheckActStateResponseErrorReason.js b/dist/esm/models/FbpCheckActStateResponseErrorReason.js new file mode 100644 index 0000000..f088433 --- /dev/null +++ b/dist/esm/models/FbpCheckActStateResponseErrorReason.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ошибка генерации: + * - `ERROR_REASON_UNSPECIFIED` — не определена; + * - `INVALID_COMPANY` — неверная компания; + * - `FILE_NOT_FOUND` — файл не найден; + * - `GENERATE_TIMEOUT_REACHED` — превышено время генерации; + * - `GENERATION_ERROR` — ошибка во время генерации. + * + * @export + */ +export const FbpCheckActStateResponseErrorReason = { + ERROR_REASON_UNSPECIFIED: 'ERROR_REASON_UNSPECIFIED', + INVALID_COMPANY: 'INVALID_COMPANY', + FILE_NOT_FOUND: 'FILE_NOT_FOUND', + GENERATE_TIMEOUT_REACHED: 'GENERATE_TIMEOUT_REACHED', + GENERATION_ERROR: 'GENERATION_ERROR' +}; +export function instanceOfFbpCheckActStateResponseErrorReason(value) { + for (const key in FbpCheckActStateResponseErrorReason) { + if (Object.prototype.hasOwnProperty.call(FbpCheckActStateResponseErrorReason, key)) { + if (FbpCheckActStateResponseErrorReason[key] === value) { + return true; + } + } + } + return false; +} +export function FbpCheckActStateResponseErrorReasonFromJSON(json) { + return FbpCheckActStateResponseErrorReasonFromJSONTyped(json, false); +} +export function FbpCheckActStateResponseErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function FbpCheckActStateResponseErrorReasonToJSON(value) { + return value; +} diff --git a/dist/esm/models/FbpCheckConsignmentNoteStateResponseStateType.d.ts b/dist/esm/models/FbpCheckConsignmentNoteStateResponseStateType.d.ts new file mode 100644 index 0000000..cdfeff1 --- /dev/null +++ b/dist/esm/models/FbpCheckConsignmentNoteStateResponseStateType.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации: + * - `STATE_TYPE_UNSPECIFIED` — не определён; + * - `IN_PROGRESS` — в процессе; + * - `FINISHED` — завершилась успешно; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const FbpCheckConsignmentNoteStateResponseStateType: { + readonly STATE_TYPE_UNSPECIFIED: "STATE_TYPE_UNSPECIFIED"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FINISHED: "FINISHED"; + readonly FAILED: "FAILED"; +}; +export type FbpCheckConsignmentNoteStateResponseStateType = typeof FbpCheckConsignmentNoteStateResponseStateType[keyof typeof FbpCheckConsignmentNoteStateResponseStateType]; +export declare function instanceOfFbpCheckConsignmentNoteStateResponseStateType(value: any): boolean; +export declare function FbpCheckConsignmentNoteStateResponseStateTypeFromJSON(json: any): FbpCheckConsignmentNoteStateResponseStateType; +export declare function FbpCheckConsignmentNoteStateResponseStateTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpCheckConsignmentNoteStateResponseStateType; +export declare function FbpCheckConsignmentNoteStateResponseStateTypeToJSON(value?: FbpCheckConsignmentNoteStateResponseStateType | null): any; diff --git a/dist/esm/models/FbpCheckConsignmentNoteStateResponseStateType.js b/dist/esm/models/FbpCheckConsignmentNoteStateResponseStateType.js new file mode 100644 index 0000000..dfde04f --- /dev/null +++ b/dist/esm/models/FbpCheckConsignmentNoteStateResponseStateType.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации: + * - `STATE_TYPE_UNSPECIFIED` — не определён; + * - `IN_PROGRESS` — в процессе; + * - `FINISHED` — завершилась успешно; + * - `FAILED` — ошибка. + * + * @export + */ +export const FbpCheckConsignmentNoteStateResponseStateType = { + STATE_TYPE_UNSPECIFIED: 'STATE_TYPE_UNSPECIFIED', + IN_PROGRESS: 'IN_PROGRESS', + FINISHED: 'FINISHED', + FAILED: 'FAILED' +}; +export function instanceOfFbpCheckConsignmentNoteStateResponseStateType(value) { + for (const key in FbpCheckConsignmentNoteStateResponseStateType) { + if (Object.prototype.hasOwnProperty.call(FbpCheckConsignmentNoteStateResponseStateType, key)) { + if (FbpCheckConsignmentNoteStateResponseStateType[key] === value) { + return true; + } + } + } + return false; +} +export function FbpCheckConsignmentNoteStateResponseStateTypeFromJSON(json) { + return FbpCheckConsignmentNoteStateResponseStateTypeFromJSONTyped(json, false); +} +export function FbpCheckConsignmentNoteStateResponseStateTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function FbpCheckConsignmentNoteStateResponseStateTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/FbpCreateActResponseCreateActErrorReason.d.ts b/dist/esm/models/FbpCreateActResponseCreateActErrorReason.d.ts new file mode 100644 index 0000000..f6168c3 --- /dev/null +++ b/dist/esm/models/FbpCreateActResponseCreateActErrorReason.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const FbpCreateActResponseCreateActErrorReason: { + readonly CREATE_ACT_ERROR_REASON_UNSPECIFIED: "CREATE_ACT_ERROR_REASON_UNSPECIFIED"; + readonly INVALID_ORDER_TYPE: "INVALID_ORDER_TYPE"; +}; +export type FbpCreateActResponseCreateActErrorReason = typeof FbpCreateActResponseCreateActErrorReason[keyof typeof FbpCreateActResponseCreateActErrorReason]; +export declare function instanceOfFbpCreateActResponseCreateActErrorReason(value: any): boolean; +export declare function FbpCreateActResponseCreateActErrorReasonFromJSON(json: any): FbpCreateActResponseCreateActErrorReason; +export declare function FbpCreateActResponseCreateActErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpCreateActResponseCreateActErrorReason; +export declare function FbpCreateActResponseCreateActErrorReasonToJSON(value?: FbpCreateActResponseCreateActErrorReason | null): any; diff --git a/dist/esm/models/FbpCreateActResponseCreateActErrorReason.js b/dist/esm/models/FbpCreateActResponseCreateActErrorReason.js new file mode 100644 index 0000000..1a873e8 --- /dev/null +++ b/dist/esm/models/FbpCreateActResponseCreateActErrorReason.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const FbpCreateActResponseCreateActErrorReason = { + CREATE_ACT_ERROR_REASON_UNSPECIFIED: 'CREATE_ACT_ERROR_REASON_UNSPECIFIED', + INVALID_ORDER_TYPE: 'INVALID_ORDER_TYPE' +}; +export function instanceOfFbpCreateActResponseCreateActErrorReason(value) { + for (const key in FbpCreateActResponseCreateActErrorReason) { + if (Object.prototype.hasOwnProperty.call(FbpCreateActResponseCreateActErrorReason, key)) { + if (FbpCreateActResponseCreateActErrorReason[key] === value) { + return true; + } + } + } + return false; +} +export function FbpCreateActResponseCreateActErrorReasonFromJSON(json) { + return FbpCreateActResponseCreateActErrorReasonFromJSONTyped(json, false); +} +export function FbpCreateActResponseCreateActErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function FbpCreateActResponseCreateActErrorReasonToJSON(value) { + return value; +} diff --git a/dist/esm/models/FbpDraftDropOffPointListResponseDropOffPoint.d.ts b/dist/esm/models/FbpDraftDropOffPointListResponseDropOffPoint.d.ts new file mode 100644 index 0000000..6000156 --- /dev/null +++ b/dist/esm/models/FbpDraftDropOffPointListResponseDropOffPoint.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbpDraftDropOffPointListResponseDropOffPoint + */ +export interface FbpDraftDropOffPointListResponseDropOffPoint { + /** + * Город. + * @type {string} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + city?: string; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + drop_off_point_id?: number; + /** + * Ближайшая дата отгрузки. + * @type {string} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + nearest_drop_off_date?: string; + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + point_address?: string; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + province_uuid?: string; +} +/** + * Check if a given object implements the FbpDraftDropOffPointListResponseDropOffPoint interface. + */ +export declare function instanceOfFbpDraftDropOffPointListResponseDropOffPoint(value: object): value is FbpDraftDropOffPointListResponseDropOffPoint; +export declare function FbpDraftDropOffPointListResponseDropOffPointFromJSON(json: any): FbpDraftDropOffPointListResponseDropOffPoint; +export declare function FbpDraftDropOffPointListResponseDropOffPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpDraftDropOffPointListResponseDropOffPoint; +export declare function FbpDraftDropOffPointListResponseDropOffPointToJSON(value?: FbpDraftDropOffPointListResponseDropOffPoint | null): any; diff --git a/dist/esm/models/FbpDraftDropOffPointListResponseDropOffPoint.js b/dist/esm/models/FbpDraftDropOffPointListResponseDropOffPoint.js new file mode 100644 index 0000000..a909b2f --- /dev/null +++ b/dist/esm/models/FbpDraftDropOffPointListResponseDropOffPoint.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbpDraftDropOffPointListResponseDropOffPoint interface. + */ +export function instanceOfFbpDraftDropOffPointListResponseDropOffPoint(value) { + return true; +} +export function FbpDraftDropOffPointListResponseDropOffPointFromJSON(json) { + return FbpDraftDropOffPointListResponseDropOffPointFromJSONTyped(json, false); +} +export function FbpDraftDropOffPointListResponseDropOffPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'drop_off_point_id': json['drop_off_point_id'] == null ? undefined : json['drop_off_point_id'], + 'nearest_drop_off_date': json['nearest_drop_off_date'] == null ? undefined : json['nearest_drop_off_date'], + 'point_address': json['point_address'] == null ? undefined : json['point_address'], + 'province_uuid': json['province_uuid'] == null ? undefined : json['province_uuid'], + }; +} +export function FbpDraftDropOffPointListResponseDropOffPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'drop_off_point_id': value['drop_off_point_id'], + 'nearest_drop_off_date': value['nearest_drop_off_date'], + 'point_address': value['point_address'], + 'province_uuid': value['province_uuid'], + }; +} diff --git a/dist/esm/models/FbpDraftDropOffProvinceListResponseProvince.d.ts b/dist/esm/models/FbpDraftDropOffProvinceListResponseProvince.d.ts new file mode 100644 index 0000000..7da306f --- /dev/null +++ b/dist/esm/models/FbpDraftDropOffProvinceListResponseProvince.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbpDraftDropOffProvinceListResponseProvince + */ +export interface FbpDraftDropOffProvinceListResponseProvince { + /** + * Название провинции. + * @type {string} + * @memberof FbpDraftDropOffProvinceListResponseProvince + */ + name?: string; + /** + * Количество пунктов на карте. + * @type {number} + * @memberof FbpDraftDropOffProvinceListResponseProvince + */ + points_count?: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof FbpDraftDropOffProvinceListResponseProvince + */ + province_uuid?: string; +} +/** + * Check if a given object implements the FbpDraftDropOffProvinceListResponseProvince interface. + */ +export declare function instanceOfFbpDraftDropOffProvinceListResponseProvince(value: object): value is FbpDraftDropOffProvinceListResponseProvince; +export declare function FbpDraftDropOffProvinceListResponseProvinceFromJSON(json: any): FbpDraftDropOffProvinceListResponseProvince; +export declare function FbpDraftDropOffProvinceListResponseProvinceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpDraftDropOffProvinceListResponseProvince; +export declare function FbpDraftDropOffProvinceListResponseProvinceToJSON(value?: FbpDraftDropOffProvinceListResponseProvince | null): any; diff --git a/dist/esm/models/FbpDraftDropOffProvinceListResponseProvince.js b/dist/esm/models/FbpDraftDropOffProvinceListResponseProvince.js new file mode 100644 index 0000000..7623e02 --- /dev/null +++ b/dist/esm/models/FbpDraftDropOffProvinceListResponseProvince.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbpDraftDropOffProvinceListResponseProvince interface. + */ +export function instanceOfFbpDraftDropOffProvinceListResponseProvince(value) { + return true; +} +export function FbpDraftDropOffProvinceListResponseProvinceFromJSON(json) { + return FbpDraftDropOffProvinceListResponseProvinceFromJSONTyped(json, false); +} +export function FbpDraftDropOffProvinceListResponseProvinceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'points_count': json['points_count'] == null ? undefined : json['points_count'], + 'province_uuid': json['province_uuid'] == null ? undefined : json['province_uuid'], + }; +} +export function FbpDraftDropOffProvinceListResponseProvinceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'points_count': value['points_count'], + 'province_uuid': value['province_uuid'], + }; +} diff --git a/dist/esm/models/FbpDraftGetResponseDeclineReason.d.ts b/dist/esm/models/FbpDraftGetResponseDeclineReason.d.ts new file mode 100644 index 0000000..7cfcf83 --- /dev/null +++ b/dist/esm/models/FbpDraftGetResponseDeclineReason.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина отказа. + * @export + * @interface FbpDraftGetResponseDeclineReason + */ +export interface FbpDraftGetResponseDeclineReason { + /** + * Некорректные идентификаторы SKU. + * @type {Array} + * @memberof FbpDraftGetResponseDeclineReason + */ + failed_sku_ids?: Array; + /** + * Текст отказа. + * @type {string} + * @memberof FbpDraftGetResponseDeclineReason + */ + message?: string; +} +/** + * Check if a given object implements the FbpDraftGetResponseDeclineReason interface. + */ +export declare function instanceOfFbpDraftGetResponseDeclineReason(value: object): value is FbpDraftGetResponseDeclineReason; +export declare function FbpDraftGetResponseDeclineReasonFromJSON(json: any): FbpDraftGetResponseDeclineReason; +export declare function FbpDraftGetResponseDeclineReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpDraftGetResponseDeclineReason; +export declare function FbpDraftGetResponseDeclineReasonToJSON(value?: FbpDraftGetResponseDeclineReason | null): any; diff --git a/dist/esm/models/FbpDraftGetResponseDeclineReason.js b/dist/esm/models/FbpDraftGetResponseDeclineReason.js new file mode 100644 index 0000000..e4909a2 --- /dev/null +++ b/dist/esm/models/FbpDraftGetResponseDeclineReason.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbpDraftGetResponseDeclineReason interface. + */ +export function instanceOfFbpDraftGetResponseDeclineReason(value) { + return true; +} +export function FbpDraftGetResponseDeclineReasonFromJSON(json) { + return FbpDraftGetResponseDeclineReasonFromJSONTyped(json, false); +} +export function FbpDraftGetResponseDeclineReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'failed_sku_ids': json['failed_sku_ids'] == null ? undefined : json['failed_sku_ids'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function FbpDraftGetResponseDeclineReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'failed_sku_ids': value['failed_sku_ids'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/FbpGetLabelResponseLabelCreationStateTypeEnum.d.ts b/dist/esm/models/FbpGetLabelResponseLabelCreationStateTypeEnum.d.ts new file mode 100644 index 0000000..49c09fe --- /dev/null +++ b/dist/esm/models/FbpGetLabelResponseLabelCreationStateTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус задания на генерацию этикеток: + * - `UNSPECIFIED` — не определён; + * - `IN_PROGRESS` — в процессе генерации; + * - `FINISHED` — генерация завершилась успешно; + * - `FAILED` — генерация завершилась с ошибкой. + * + * @export + */ +export declare const FbpGetLabelResponseLabelCreationStateTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FINISHED: "FINISHED"; + readonly FAILED: "FAILED"; +}; +export type FbpGetLabelResponseLabelCreationStateTypeEnum = typeof FbpGetLabelResponseLabelCreationStateTypeEnum[keyof typeof FbpGetLabelResponseLabelCreationStateTypeEnum]; +export declare function instanceOfFbpGetLabelResponseLabelCreationStateTypeEnum(value: any): boolean; +export declare function FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON(json: any): FbpGetLabelResponseLabelCreationStateTypeEnum; +export declare function FbpGetLabelResponseLabelCreationStateTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpGetLabelResponseLabelCreationStateTypeEnum; +export declare function FbpGetLabelResponseLabelCreationStateTypeEnumToJSON(value?: FbpGetLabelResponseLabelCreationStateTypeEnum | null): any; diff --git a/dist/esm/models/FbpGetLabelResponseLabelCreationStateTypeEnum.js b/dist/esm/models/FbpGetLabelResponseLabelCreationStateTypeEnum.js new file mode 100644 index 0000000..de56a49 --- /dev/null +++ b/dist/esm/models/FbpGetLabelResponseLabelCreationStateTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус задания на генерацию этикеток: + * - `UNSPECIFIED` — не определён; + * - `IN_PROGRESS` — в процессе генерации; + * - `FINISHED` — генерация завершилась успешно; + * - `FAILED` — генерация завершилась с ошибкой. + * + * @export + */ +export const FbpGetLabelResponseLabelCreationStateTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + IN_PROGRESS: 'IN_PROGRESS', + FINISHED: 'FINISHED', + FAILED: 'FAILED' +}; +export function instanceOfFbpGetLabelResponseLabelCreationStateTypeEnum(value) { + for (const key in FbpGetLabelResponseLabelCreationStateTypeEnum) { + if (Object.prototype.hasOwnProperty.call(FbpGetLabelResponseLabelCreationStateTypeEnum, key)) { + if (FbpGetLabelResponseLabelCreationStateTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON(json) { + return FbpGetLabelResponseLabelCreationStateTypeEnumFromJSONTyped(json, false); +} +export function FbpGetLabelResponseLabelCreationStateTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function FbpGetLabelResponseLabelCreationStateTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/FbpWarehouseListResponseAddressDetailing.d.ts b/dist/esm/models/FbpWarehouseListResponseAddressDetailing.d.ts new file mode 100644 index 0000000..e9ff056 --- /dev/null +++ b/dist/esm/models/FbpWarehouseListResponseAddressDetailing.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали адреса. + * @export + * @interface FbpWarehouseListResponseAddressDetailing + */ +export interface FbpWarehouseListResponseAddressDetailing { + /** + * Город. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + city?: string; + /** + * Страна. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + country?: string; + /** + * Дом. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + house?: string; + /** + * Регион. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + region?: string; + /** + * Улица. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + street?: string; + /** + * Почтовый индекс. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + zipcode?: string; +} +/** + * Check if a given object implements the FbpWarehouseListResponseAddressDetailing interface. + */ +export declare function instanceOfFbpWarehouseListResponseAddressDetailing(value: object): value is FbpWarehouseListResponseAddressDetailing; +export declare function FbpWarehouseListResponseAddressDetailingFromJSON(json: any): FbpWarehouseListResponseAddressDetailing; +export declare function FbpWarehouseListResponseAddressDetailingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpWarehouseListResponseAddressDetailing; +export declare function FbpWarehouseListResponseAddressDetailingToJSON(value?: FbpWarehouseListResponseAddressDetailing | null): any; diff --git a/dist/esm/models/FbpWarehouseListResponseAddressDetailing.js b/dist/esm/models/FbpWarehouseListResponseAddressDetailing.js new file mode 100644 index 0000000..85def35 --- /dev/null +++ b/dist/esm/models/FbpWarehouseListResponseAddressDetailing.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbpWarehouseListResponseAddressDetailing interface. + */ +export function instanceOfFbpWarehouseListResponseAddressDetailing(value) { + return true; +} +export function FbpWarehouseListResponseAddressDetailingFromJSON(json) { + return FbpWarehouseListResponseAddressDetailingFromJSONTyped(json, false); +} +export function FbpWarehouseListResponseAddressDetailingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'country': json['country'] == null ? undefined : json['country'], + 'house': json['house'] == null ? undefined : json['house'], + 'region': json['region'] == null ? undefined : json['region'], + 'street': json['street'] == null ? undefined : json['street'], + 'zipcode': json['zipcode'] == null ? undefined : json['zipcode'], + }; +} +export function FbpWarehouseListResponseAddressDetailingToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'country': value['country'], + 'house': value['house'], + 'region': value['region'], + 'street': value['street'], + 'zipcode': value['zipcode'], + }; +} diff --git a/dist/esm/models/FbpWarehouseListResponseWarehouse.d.ts b/dist/esm/models/FbpWarehouseListResponseWarehouse.d.ts new file mode 100644 index 0000000..418963b --- /dev/null +++ b/dist/esm/models/FbpWarehouseListResponseWarehouse.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpWarehouseListResponseAddressDetailing } from './FbpWarehouseListResponseAddressDetailing'; +/** + * + * @export + * @interface FbpWarehouseListResponseWarehouse + */ +export interface FbpWarehouseListResponseWarehouse { + /** + * + * @type {FbpWarehouseListResponseAddressDetailing} + * @memberof FbpWarehouseListResponseWarehouse + */ + address_detailing?: FbpWarehouseListResponseAddressDetailing; + /** + * Идентификатор склада. + * @type {number} + * @memberof FbpWarehouseListResponseWarehouse + */ + id?: number; + /** + * `true`, если склад бондовый. + * + * @type {boolean} + * @memberof FbpWarehouseListResponseWarehouse + */ + is_bonded?: boolean; + /** + * Название склада. + * @type {string} + * @memberof FbpWarehouseListResponseWarehouse + */ + name?: string; + /** + * Название партнёра. + * @type {string} + * @memberof FbpWarehouseListResponseWarehouse + */ + partner_name?: string; + /** + * Тип поставки. + * @type {Array} + * @memberof FbpWarehouseListResponseWarehouse + */ + supply_types?: Array; + /** + * Часовой пояс склада. + * @type {string} + * @memberof FbpWarehouseListResponseWarehouse + */ + timezone_name?: string; +} +/** + * Check if a given object implements the FbpWarehouseListResponseWarehouse interface. + */ +export declare function instanceOfFbpWarehouseListResponseWarehouse(value: object): value is FbpWarehouseListResponseWarehouse; +export declare function FbpWarehouseListResponseWarehouseFromJSON(json: any): FbpWarehouseListResponseWarehouse; +export declare function FbpWarehouseListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpWarehouseListResponseWarehouse; +export declare function FbpWarehouseListResponseWarehouseToJSON(value?: FbpWarehouseListResponseWarehouse | null): any; diff --git a/dist/esm/models/FbpWarehouseListResponseWarehouse.js b/dist/esm/models/FbpWarehouseListResponseWarehouse.js new file mode 100644 index 0000000..c5bc7dd --- /dev/null +++ b/dist/esm/models/FbpWarehouseListResponseWarehouse.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbpWarehouseListResponseAddressDetailingFromJSON, FbpWarehouseListResponseAddressDetailingToJSON, } from './FbpWarehouseListResponseAddressDetailing'; +/** + * Check if a given object implements the FbpWarehouseListResponseWarehouse interface. + */ +export function instanceOfFbpWarehouseListResponseWarehouse(value) { + return true; +} +export function FbpWarehouseListResponseWarehouseFromJSON(json) { + return FbpWarehouseListResponseWarehouseFromJSONTyped(json, false); +} +export function FbpWarehouseListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_detailing': json['address_detailing'] == null ? undefined : FbpWarehouseListResponseAddressDetailingFromJSON(json['address_detailing']), + 'id': json['id'] == null ? undefined : json['id'], + 'is_bonded': json['is_bonded'] == null ? undefined : json['is_bonded'], + 'name': json['name'] == null ? undefined : json['name'], + 'partner_name': json['partner_name'] == null ? undefined : json['partner_name'], + 'supply_types': json['supply_types'] == null ? undefined : json['supply_types'], + 'timezone_name': json['timezone_name'] == null ? undefined : json['timezone_name'], + }; +} +export function FbpWarehouseListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_detailing': FbpWarehouseListResponseAddressDetailingToJSON(value['address_detailing']), + 'id': value['id'], + 'is_bonded': value['is_bonded'], + 'name': value['name'], + 'partner_name': value['partner_name'], + 'supply_types': value['supply_types'], + 'timezone_name': value['timezone_name'], + }; +} diff --git a/dist/esm/models/Fbpv1DeliveryDetails.d.ts b/dist/esm/models/Fbpv1DeliveryDetails.d.ts new file mode 100644 index 0000000..7f8b52b --- /dev/null +++ b/dist/esm/models/Fbpv1DeliveryDetails.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryDetailsPickUpDetails } from './V1DeliveryDetailsPickUpDetails'; +import type { DeliveryDetailsSupplyType } from './DeliveryDetailsSupplyType'; +import type { V1DeliveryDetailsDirectDetails } from './V1DeliveryDetailsDirectDetails'; +import type { DeliveryDetailsDropOffPointDetails } from './DeliveryDetailsDropOffPointDetails'; +/** + * Детали доставки. + * @export + * @interface Fbpv1DeliveryDetails + */ +export interface Fbpv1DeliveryDetails { + /** + * + * @type {V1DeliveryDetailsDirectDetails} + * @memberof Fbpv1DeliveryDetails + */ + direct_details?: V1DeliveryDetailsDirectDetails; + /** + * + * @type {DeliveryDetailsDropOffPointDetails} + * @memberof Fbpv1DeliveryDetails + */ + drop_off_point?: DeliveryDetailsDropOffPointDetails; + /** + * + * @type {V1DeliveryDetailsPickUpDetails} + * @memberof Fbpv1DeliveryDetails + */ + pickup_details?: V1DeliveryDetailsPickUpDetails; + /** + * + * @type {DeliveryDetailsSupplyType} + * @memberof Fbpv1DeliveryDetails + */ + supply_type?: DeliveryDetailsSupplyType; +} +/** + * Check if a given object implements the Fbpv1DeliveryDetails interface. + */ +export declare function instanceOfFbpv1DeliveryDetails(value: object): value is Fbpv1DeliveryDetails; +export declare function Fbpv1DeliveryDetailsFromJSON(json: any): Fbpv1DeliveryDetails; +export declare function Fbpv1DeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbpv1DeliveryDetails; +export declare function Fbpv1DeliveryDetailsToJSON(value?: Fbpv1DeliveryDetails | null): any; diff --git a/dist/esm/models/Fbpv1DeliveryDetails.js b/dist/esm/models/Fbpv1DeliveryDetails.js new file mode 100644 index 0000000..ce897a5 --- /dev/null +++ b/dist/esm/models/Fbpv1DeliveryDetails.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DeliveryDetailsPickUpDetailsFromJSON, V1DeliveryDetailsPickUpDetailsToJSON, } from './V1DeliveryDetailsPickUpDetails'; +import { DeliveryDetailsSupplyTypeFromJSON, DeliveryDetailsSupplyTypeToJSON, } from './DeliveryDetailsSupplyType'; +import { V1DeliveryDetailsDirectDetailsFromJSON, V1DeliveryDetailsDirectDetailsToJSON, } from './V1DeliveryDetailsDirectDetails'; +import { DeliveryDetailsDropOffPointDetailsFromJSON, DeliveryDetailsDropOffPointDetailsToJSON, } from './DeliveryDetailsDropOffPointDetails'; +/** + * Check if a given object implements the Fbpv1DeliveryDetails interface. + */ +export function instanceOfFbpv1DeliveryDetails(value) { + return true; +} +export function Fbpv1DeliveryDetailsFromJSON(json) { + return Fbpv1DeliveryDetailsFromJSONTyped(json, false); +} +export function Fbpv1DeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'direct_details': json['direct_details'] == null ? undefined : V1DeliveryDetailsDirectDetailsFromJSON(json['direct_details']), + 'drop_off_point': json['drop_off_point'] == null ? undefined : DeliveryDetailsDropOffPointDetailsFromJSON(json['drop_off_point']), + 'pickup_details': json['pickup_details'] == null ? undefined : V1DeliveryDetailsPickUpDetailsFromJSON(json['pickup_details']), + 'supply_type': json['supply_type'] == null ? undefined : DeliveryDetailsSupplyTypeFromJSON(json['supply_type']), + }; +} +export function Fbpv1DeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'direct_details': V1DeliveryDetailsDirectDetailsToJSON(value['direct_details']), + 'drop_off_point': DeliveryDetailsDropOffPointDetailsToJSON(value['drop_off_point']), + 'pickup_details': V1DeliveryDetailsPickUpDetailsToJSON(value['pickup_details']), + 'supply_type': DeliveryDetailsSupplyTypeToJSON(value['supply_type']), + }; +} diff --git a/dist/esm/models/Fbpv1Timeslot.d.ts b/dist/esm/models/Fbpv1Timeslot.d.ts new file mode 100644 index 0000000..2e4cd26 --- /dev/null +++ b/dist/esm/models/Fbpv1Timeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Fbpv1Timeslot + */ +export interface Fbpv1Timeslot { + /** + * Дата окончания таймслота. + * @type {string} + * @memberof Fbpv1Timeslot + */ + timeslot_end?: string; + /** + * Дата начала таймслота. + * @type {string} + * @memberof Fbpv1Timeslot + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the Fbpv1Timeslot interface. + */ +export declare function instanceOfFbpv1Timeslot(value: object): value is Fbpv1Timeslot; +export declare function Fbpv1TimeslotFromJSON(json: any): Fbpv1Timeslot; +export declare function Fbpv1TimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbpv1Timeslot; +export declare function Fbpv1TimeslotToJSON(value?: Fbpv1Timeslot | null): any; diff --git a/dist/esm/models/Fbpv1Timeslot.js b/dist/esm/models/Fbpv1Timeslot.js new file mode 100644 index 0000000..8659c51 --- /dev/null +++ b/dist/esm/models/Fbpv1Timeslot.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Fbpv1Timeslot interface. + */ +export function instanceOfFbpv1Timeslot(value) { + return true; +} +export function Fbpv1TimeslotFromJSON(json) { + return Fbpv1TimeslotFromJSONTyped(json, false); +} +export function Fbpv1TimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +export function Fbpv1TimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/FbsPostingBarcodes.d.ts b/dist/esm/models/FbsPostingBarcodes.d.ts new file mode 100644 index 0000000..f79aea6 --- /dev/null +++ b/dist/esm/models/FbsPostingBarcodes.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Штрихкоды отправления. + * @export + * @interface FbsPostingBarcodes + */ +export interface FbsPostingBarcodes { + /** + * Нижний штрихкод на маркировке отправления. + * @type {string} + * @memberof FbsPostingBarcodes + */ + lower_barcode?: string; + /** + * Верхний штрихкод на маркировке отправления. + * @type {string} + * @memberof FbsPostingBarcodes + */ + upper_barcode?: string; +} +/** + * Check if a given object implements the FbsPostingBarcodes interface. + */ +export declare function instanceOfFbsPostingBarcodes(value: object): value is FbsPostingBarcodes; +export declare function FbsPostingBarcodesFromJSON(json: any): FbsPostingBarcodes; +export declare function FbsPostingBarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingBarcodes; +export declare function FbsPostingBarcodesToJSON(value?: FbsPostingBarcodes | null): any; diff --git a/dist/esm/models/FbsPostingBarcodes.js b/dist/esm/models/FbsPostingBarcodes.js new file mode 100644 index 0000000..03faf57 --- /dev/null +++ b/dist/esm/models/FbsPostingBarcodes.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbsPostingBarcodes interface. + */ +export function instanceOfFbsPostingBarcodes(value) { + return true; +} +export function FbsPostingBarcodesFromJSON(json) { + return FbsPostingBarcodesFromJSONTyped(json, false); +} +export function FbsPostingBarcodesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lower_barcode': json['lower_barcode'] == null ? undefined : json['lower_barcode'], + 'upper_barcode': json['upper_barcode'] == null ? undefined : json['upper_barcode'], + }; +} +export function FbsPostingBarcodesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lower_barcode': value['lower_barcode'], + 'upper_barcode': value['upper_barcode'], + }; +} diff --git a/dist/esm/models/FbsPostingDetailCourier.d.ts b/dist/esm/models/FbsPostingDetailCourier.d.ts new file mode 100644 index 0000000..bbb93cb --- /dev/null +++ b/dist/esm/models/FbsPostingDetailCourier.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о курьере. + * @export + * @interface FbsPostingDetailCourier + */ +export interface FbsPostingDetailCourier { + /** + * Модель автомобиля. + * @type {string} + * @memberof FbsPostingDetailCourier + */ + car_model?: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof FbsPostingDetailCourier + */ + car_number?: string; + /** + * Полное имя курьера. + * @type {string} + * @memberof FbsPostingDetailCourier + */ + name?: string; + /** + * Телефон курьера. + * + * Всегда возвращает пустую строку `""`. + * + * @type {string} + * @memberof FbsPostingDetailCourier + */ + phone?: string; +} +/** + * Check if a given object implements the FbsPostingDetailCourier interface. + */ +export declare function instanceOfFbsPostingDetailCourier(value: object): value is FbsPostingDetailCourier; +export declare function FbsPostingDetailCourierFromJSON(json: any): FbsPostingDetailCourier; +export declare function FbsPostingDetailCourierFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingDetailCourier; +export declare function FbsPostingDetailCourierToJSON(value?: FbsPostingDetailCourier | null): any; diff --git a/dist/esm/models/FbsPostingDetailCourier.js b/dist/esm/models/FbsPostingDetailCourier.js new file mode 100644 index 0000000..6002b98 --- /dev/null +++ b/dist/esm/models/FbsPostingDetailCourier.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbsPostingDetailCourier interface. + */ +export function instanceOfFbsPostingDetailCourier(value) { + return true; +} +export function FbsPostingDetailCourierFromJSON(json) { + return FbsPostingDetailCourierFromJSONTyped(json, false); +} +export function FbsPostingDetailCourierFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'car_model': json['car_model'] == null ? undefined : json['car_model'], + 'car_number': json['car_number'] == null ? undefined : json['car_number'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +export function FbsPostingDetailCourierToJSON(value) { + if (value == null) { + return value; + } + return { + 'car_model': value['car_model'], + 'car_number': value['car_number'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/esm/models/FbsPostingDetailPrrOption.d.ts b/dist/esm/models/FbsPostingDetailPrrOption.d.ts new file mode 100644 index 0000000..8f9fde5 --- /dev/null +++ b/dist/esm/models/FbsPostingDetailPrrOption.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об услуге погрузочно-разгрузочных работ. Актуально для КГТ-отправлений с доставкой силами продавца или интегрированной службой. + * @export + * @interface FbsPostingDetailPrrOption + */ +export interface FbsPostingDetailPrrOption { + /** + * Код услуги погрузочно-разгрузочных работ: + * - `lift` — подъём на лифте. + * - `stairs` — подъём по лестнице. + * - `none` — покупатель отказался от услуги, поднимать товары не нужно. + * - `delivery_default` — доставка включена в стоимость, по условиям оферты нужно доставить товар на этаж. + * + * @type {string} + * @memberof FbsPostingDetailPrrOption + */ + code?: string; + /** + * Стоимость услуги, которую Ozon компенсирует продавцу. + * @type {string} + * @memberof FbsPostingDetailPrrOption + */ + price?: string; + /** + * Валюта. + * @type {string} + * @memberof FbsPostingDetailPrrOption + */ + currency_code?: string; + /** + * Этаж, на который нужно поднять товар. + * @type {string} + * @memberof FbsPostingDetailPrrOption + */ + floor?: string; +} +/** + * Check if a given object implements the FbsPostingDetailPrrOption interface. + */ +export declare function instanceOfFbsPostingDetailPrrOption(value: object): value is FbsPostingDetailPrrOption; +export declare function FbsPostingDetailPrrOptionFromJSON(json: any): FbsPostingDetailPrrOption; +export declare function FbsPostingDetailPrrOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingDetailPrrOption; +export declare function FbsPostingDetailPrrOptionToJSON(value?: FbsPostingDetailPrrOption | null): any; diff --git a/dist/esm/models/FbsPostingDetailPrrOption.js b/dist/esm/models/FbsPostingDetailPrrOption.js new file mode 100644 index 0000000..c940ec9 --- /dev/null +++ b/dist/esm/models/FbsPostingDetailPrrOption.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbsPostingDetailPrrOption interface. + */ +export function instanceOfFbsPostingDetailPrrOption(value) { + return true; +} +export function FbsPostingDetailPrrOptionFromJSON(json) { + return FbsPostingDetailPrrOptionFromJSONTyped(json, false); +} +export function FbsPostingDetailPrrOptionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'price': json['price'] == null ? undefined : json['price'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'floor': json['floor'] == null ? undefined : json['floor'], + }; +} +export function FbsPostingDetailPrrOptionToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'price': value['price'], + 'currency_code': value['currency_code'], + 'floor': value['floor'], + }; +} diff --git a/dist/esm/models/FbsPostingMoveStatusResponseMoveStatus.d.ts b/dist/esm/models/FbsPostingMoveStatusResponseMoveStatus.d.ts new file mode 100644 index 0000000..712e598 --- /dev/null +++ b/dist/esm/models/FbsPostingMoveStatusResponseMoveStatus.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbsPostingMoveStatusResponseMoveStatus + */ +export interface FbsPostingMoveStatusResponseMoveStatus { + /** + * Ошибка при обработке запроса. + * @type {string} + * @memberof FbsPostingMoveStatusResponseMoveStatus + */ + error?: string; + /** + * Номер отправления. + * @type {string} + * @memberof FbsPostingMoveStatusResponseMoveStatus + */ + posting_number?: string; + /** + * Если запрос выполнен без ошибок — `true`. + * @type {boolean} + * @memberof FbsPostingMoveStatusResponseMoveStatus + */ + result?: boolean; +} +/** + * Check if a given object implements the FbsPostingMoveStatusResponseMoveStatus interface. + */ +export declare function instanceOfFbsPostingMoveStatusResponseMoveStatus(value: object): value is FbsPostingMoveStatusResponseMoveStatus; +export declare function FbsPostingMoveStatusResponseMoveStatusFromJSON(json: any): FbsPostingMoveStatusResponseMoveStatus; +export declare function FbsPostingMoveStatusResponseMoveStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingMoveStatusResponseMoveStatus; +export declare function FbsPostingMoveStatusResponseMoveStatusToJSON(value?: FbsPostingMoveStatusResponseMoveStatus | null): any; diff --git a/dist/esm/models/FbsPostingMoveStatusResponseMoveStatus.js b/dist/esm/models/FbsPostingMoveStatusResponseMoveStatus.js new file mode 100644 index 0000000..44c54e2 --- /dev/null +++ b/dist/esm/models/FbsPostingMoveStatusResponseMoveStatus.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbsPostingMoveStatusResponseMoveStatus interface. + */ +export function instanceOfFbsPostingMoveStatusResponseMoveStatus(value) { + return true; +} +export function FbsPostingMoveStatusResponseMoveStatusFromJSON(json) { + return FbsPostingMoveStatusResponseMoveStatusFromJSONTyped(json, false); +} +export function FbsPostingMoveStatusResponseMoveStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function FbsPostingMoveStatusResponseMoveStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'posting_number': value['posting_number'], + 'result': value['result'], + }; +} diff --git a/dist/esm/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.d.ts b/dist/esm/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.d.ts new file mode 100644 index 0000000..8181744 --- /dev/null +++ b/dist/esm/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.d.ts @@ -0,0 +1,102 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductExemplar } from './ProductExemplar'; +/** + * + * @export + * @interface FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ +export interface FbsPostingProductExemplarCreateOrGetV6ResponseProduct { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + exemplars?: Array; + /** + * Признак наличия IMEI. + * + * Если IMEI есть — `true`. + * + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + has_imei?: boolean; + /** + * Признак того, что необходимо передать номер грузовой таможенной декларации (ГТД) для продукта и отправления. + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_gtd_needed?: boolean; + /** + * Признак того, что необходимо передать уникальный идентификационный номер ювелирного изделия (УИН). + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_jw_uin_needed?: boolean; + /** + * Признак того, что необходимо передать маркировку «Честный ЗНАК». + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_mandatory_mark_needed?: boolean; + /** + * Признак того, что возможно заполнить маркировку «Честный ЗНАК». + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_mandatory_mark_possible?: boolean; + /** + * Признак того, что необходимо передать номер партии товара (РНПТ). + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_rnpt_needed?: boolean; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + product_id?: number; + /** + * Количество экземпляров. + * @type {number} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + quantity?: number; + /** + * `true`, если товар весовой. + * + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_weight_needed?: boolean; + /** + * Максимальный вес экземпляра. + * @type {number} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + weight_max?: number; + /** + * Минимальный вес экземпляра. + * @type {number} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + weight_min?: number; +} +/** + * Check if a given object implements the FbsPostingProductExemplarCreateOrGetV6ResponseProduct interface. + */ +export declare function instanceOfFbsPostingProductExemplarCreateOrGetV6ResponseProduct(value: object): value is FbsPostingProductExemplarCreateOrGetV6ResponseProduct; +export declare function FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON(json: any): FbsPostingProductExemplarCreateOrGetV6ResponseProduct; +export declare function FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingProductExemplarCreateOrGetV6ResponseProduct; +export declare function FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON(value?: FbsPostingProductExemplarCreateOrGetV6ResponseProduct | null): any; diff --git a/dist/esm/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.js b/dist/esm/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.js new file mode 100644 index 0000000..94ab362 --- /dev/null +++ b/dist/esm/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductExemplarFromJSON, ProductExemplarToJSON, } from './ProductExemplar'; +/** + * Check if a given object implements the FbsPostingProductExemplarCreateOrGetV6ResponseProduct interface. + */ +export function instanceOfFbsPostingProductExemplarCreateOrGetV6ResponseProduct(value) { + return true; +} +export function FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON(json) { + return FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSONTyped(json, false); +} +export function FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(ProductExemplarFromJSON)), + 'has_imei': json['has_imei'] == null ? undefined : json['has_imei'], + 'is_gtd_needed': json['is_gtd_needed'] == null ? undefined : json['is_gtd_needed'], + 'is_jw_uin_needed': json['is_jw_uin_needed'] == null ? undefined : json['is_jw_uin_needed'], + 'is_mandatory_mark_needed': json['is_mandatory_mark_needed'] == null ? undefined : json['is_mandatory_mark_needed'], + 'is_mandatory_mark_possible': json['is_mandatory_mark_possible'] == null ? undefined : json['is_mandatory_mark_possible'], + 'is_rnpt_needed': json['is_rnpt_needed'] == null ? undefined : json['is_rnpt_needed'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'is_weight_needed': json['is_weight_needed'] == null ? undefined : json['is_weight_needed'], + 'weight_max': json['weight_max'] == null ? undefined : json['weight_max'], + 'weight_min': json['weight_min'] == null ? undefined : json['weight_min'], + }; +} +export function FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(ProductExemplarToJSON)), + 'has_imei': value['has_imei'], + 'is_gtd_needed': value['is_gtd_needed'], + 'is_jw_uin_needed': value['is_jw_uin_needed'], + 'is_mandatory_mark_needed': value['is_mandatory_mark_needed'], + 'is_mandatory_mark_possible': value['is_mandatory_mark_possible'], + 'is_rnpt_needed': value['is_rnpt_needed'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'is_weight_needed': value['is_weight_needed'], + 'weight_max': value['weight_max'], + 'weight_min': value['weight_min'], + }; +} diff --git a/dist/esm/models/FbsPostingProductExemplarSetV6RequestExemplars.d.ts b/dist/esm/models/FbsPostingProductExemplarSetV6RequestExemplars.d.ts new file mode 100644 index 0000000..f7b23ce --- /dev/null +++ b/dist/esm/models/FbsPostingProductExemplarSetV6RequestExemplars.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ExemplarsMarks } from './ExemplarsMarks'; +/** + * + * @export + * @interface FbsPostingProductExemplarSetV6RequestExemplars + */ +export interface FbsPostingProductExemplarSetV6RequestExemplars { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + exemplar_id: number; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + gtd?: string; + /** + * Признак того, что не указан номер грузовой таможенной декларации (ГТД). + * @type {boolean} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + is_gtd_absent?: boolean; + /** + * Признак того, что не указан регистрационный номер партии товара (РНПТ). + * @type {boolean} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + is_rnpt_absent?: boolean; + /** + * Список контрольных идентификационных знаков (КИЗ) и других маркировок в одном экземпляре. + * @type {Array} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + rnpt?: string; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + weight?: number; +} +/** + * Check if a given object implements the FbsPostingProductExemplarSetV6RequestExemplars interface. + */ +export declare function instanceOfFbsPostingProductExemplarSetV6RequestExemplars(value: object): value is FbsPostingProductExemplarSetV6RequestExemplars; +export declare function FbsPostingProductExemplarSetV6RequestExemplarsFromJSON(json: any): FbsPostingProductExemplarSetV6RequestExemplars; +export declare function FbsPostingProductExemplarSetV6RequestExemplarsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingProductExemplarSetV6RequestExemplars; +export declare function FbsPostingProductExemplarSetV6RequestExemplarsToJSON(value?: FbsPostingProductExemplarSetV6RequestExemplars | null): any; diff --git a/dist/esm/models/FbsPostingProductExemplarSetV6RequestExemplars.js b/dist/esm/models/FbsPostingProductExemplarSetV6RequestExemplars.js new file mode 100644 index 0000000..1e787d1 --- /dev/null +++ b/dist/esm/models/FbsPostingProductExemplarSetV6RequestExemplars.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ExemplarsMarksFromJSON, ExemplarsMarksToJSON, } from './ExemplarsMarks'; +/** + * Check if a given object implements the FbsPostingProductExemplarSetV6RequestExemplars interface. + */ +export function instanceOfFbsPostingProductExemplarSetV6RequestExemplars(value) { + if (!('exemplar_id' in value) || value['exemplar_id'] === undefined) + return false; + return true; +} +export function FbsPostingProductExemplarSetV6RequestExemplarsFromJSON(json) { + return FbsPostingProductExemplarSetV6RequestExemplarsFromJSONTyped(json, false); +} +export function FbsPostingProductExemplarSetV6RequestExemplarsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'is_gtd_absent': json['is_gtd_absent'] == null ? undefined : json['is_gtd_absent'], + 'is_rnpt_absent': json['is_rnpt_absent'] == null ? undefined : json['is_rnpt_absent'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(ExemplarsMarksFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function FbsPostingProductExemplarSetV6RequestExemplarsToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'gtd': value['gtd'], + 'is_gtd_absent': value['is_gtd_absent'], + 'is_rnpt_absent': value['is_rnpt_absent'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(ExemplarsMarksToJSON)), + 'rnpt': value['rnpt'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/FbsPostingProductExemplarSetV6RequestProducts.d.ts b/dist/esm/models/FbsPostingProductExemplarSetV6RequestProducts.d.ts new file mode 100644 index 0000000..c8c5261 --- /dev/null +++ b/dist/esm/models/FbsPostingProductExemplarSetV6RequestProducts.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingProductExemplarSetV6RequestExemplars } from './FbsPostingProductExemplarSetV6RequestExemplars'; +/** + * + * @export + * @interface FbsPostingProductExemplarSetV6RequestProducts + */ +export interface FbsPostingProductExemplarSetV6RequestProducts { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof FbsPostingProductExemplarSetV6RequestProducts + */ + exemplars: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FbsPostingProductExemplarSetV6RequestProducts + */ + product_id: number; +} +/** + * Check if a given object implements the FbsPostingProductExemplarSetV6RequestProducts interface. + */ +export declare function instanceOfFbsPostingProductExemplarSetV6RequestProducts(value: object): value is FbsPostingProductExemplarSetV6RequestProducts; +export declare function FbsPostingProductExemplarSetV6RequestProductsFromJSON(json: any): FbsPostingProductExemplarSetV6RequestProducts; +export declare function FbsPostingProductExemplarSetV6RequestProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingProductExemplarSetV6RequestProducts; +export declare function FbsPostingProductExemplarSetV6RequestProductsToJSON(value?: FbsPostingProductExemplarSetV6RequestProducts | null): any; diff --git a/dist/esm/models/FbsPostingProductExemplarSetV6RequestProducts.js b/dist/esm/models/FbsPostingProductExemplarSetV6RequestProducts.js new file mode 100644 index 0000000..87bdcbf --- /dev/null +++ b/dist/esm/models/FbsPostingProductExemplarSetV6RequestProducts.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbsPostingProductExemplarSetV6RequestExemplarsFromJSON, FbsPostingProductExemplarSetV6RequestExemplarsToJSON, } from './FbsPostingProductExemplarSetV6RequestExemplars'; +/** + * Check if a given object implements the FbsPostingProductExemplarSetV6RequestProducts interface. + */ +export function instanceOfFbsPostingProductExemplarSetV6RequestProducts(value) { + if (!('exemplars' in value) || value['exemplars'] === undefined) + return false; + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function FbsPostingProductExemplarSetV6RequestProductsFromJSON(json) { + return FbsPostingProductExemplarSetV6RequestProductsFromJSONTyped(json, false); +} +export function FbsPostingProductExemplarSetV6RequestProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': (json['exemplars'].map(FbsPostingProductExemplarSetV6RequestExemplarsFromJSON)), + 'product_id': json['product_id'], + }; +} +export function FbsPostingProductExemplarSetV6RequestProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': (value['exemplars'].map(FbsPostingProductExemplarSetV6RequestExemplarsToJSON)), + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/FbsPostingShipV4RequestPackage.d.ts b/dist/esm/models/FbsPostingShipV4RequestPackage.d.ts new file mode 100644 index 0000000..59c7333 --- /dev/null +++ b/dist/esm/models/FbsPostingShipV4RequestPackage.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingShipV4RequestPackageProduct } from './FbsPostingShipV4RequestPackageProduct'; +/** + * + * @export + * @interface FbsPostingShipV4RequestPackage + */ +export interface FbsPostingShipV4RequestPackage { + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof FbsPostingShipV4RequestPackage + */ + products: Array; +} +/** + * Check if a given object implements the FbsPostingShipV4RequestPackage interface. + */ +export declare function instanceOfFbsPostingShipV4RequestPackage(value: object): value is FbsPostingShipV4RequestPackage; +export declare function FbsPostingShipV4RequestPackageFromJSON(json: any): FbsPostingShipV4RequestPackage; +export declare function FbsPostingShipV4RequestPackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingShipV4RequestPackage; +export declare function FbsPostingShipV4RequestPackageToJSON(value?: FbsPostingShipV4RequestPackage | null): any; diff --git a/dist/esm/models/FbsPostingShipV4RequestPackage.js b/dist/esm/models/FbsPostingShipV4RequestPackage.js new file mode 100644 index 0000000..d06a448 --- /dev/null +++ b/dist/esm/models/FbsPostingShipV4RequestPackage.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbsPostingShipV4RequestPackageProductFromJSON, FbsPostingShipV4RequestPackageProductToJSON, } from './FbsPostingShipV4RequestPackageProduct'; +/** + * Check if a given object implements the FbsPostingShipV4RequestPackage interface. + */ +export function instanceOfFbsPostingShipV4RequestPackage(value) { + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +export function FbsPostingShipV4RequestPackageFromJSON(json) { + return FbsPostingShipV4RequestPackageFromJSONTyped(json, false); +} +export function FbsPostingShipV4RequestPackageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': (json['products'].map(FbsPostingShipV4RequestPackageProductFromJSON)), + }; +} +export function FbsPostingShipV4RequestPackageToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': (value['products'].map(FbsPostingShipV4RequestPackageProductToJSON)), + }; +} diff --git a/dist/esm/models/FbsPostingShipV4RequestPackageProduct.d.ts b/dist/esm/models/FbsPostingShipV4RequestPackageProduct.d.ts new file mode 100644 index 0000000..b0bcef4 --- /dev/null +++ b/dist/esm/models/FbsPostingShipV4RequestPackageProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbsPostingShipV4RequestPackageProduct + */ +export interface FbsPostingShipV4RequestPackageProduct { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FbsPostingShipV4RequestPackageProduct + */ + product_id: number; + /** + * Количество экземпляров. + * @type {number} + * @memberof FbsPostingShipV4RequestPackageProduct + */ + quantity: number; +} +/** + * Check if a given object implements the FbsPostingShipV4RequestPackageProduct interface. + */ +export declare function instanceOfFbsPostingShipV4RequestPackageProduct(value: object): value is FbsPostingShipV4RequestPackageProduct; +export declare function FbsPostingShipV4RequestPackageProductFromJSON(json: any): FbsPostingShipV4RequestPackageProduct; +export declare function FbsPostingShipV4RequestPackageProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingShipV4RequestPackageProduct; +export declare function FbsPostingShipV4RequestPackageProductToJSON(value?: FbsPostingShipV4RequestPackageProduct | null): any; diff --git a/dist/esm/models/FbsPostingShipV4RequestPackageProduct.js b/dist/esm/models/FbsPostingShipV4RequestPackageProduct.js new file mode 100644 index 0000000..fd49d8c --- /dev/null +++ b/dist/esm/models/FbsPostingShipV4RequestPackageProduct.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbsPostingShipV4RequestPackageProduct interface. + */ +export function instanceOfFbsPostingShipV4RequestPackageProduct(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + return true; +} +export function FbsPostingShipV4RequestPackageProductFromJSON(json) { + return FbsPostingShipV4RequestPackageProductFromJSONTyped(json, false); +} +export function FbsPostingShipV4RequestPackageProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + 'quantity': json['quantity'], + }; +} +export function FbsPostingShipV4RequestPackageProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/esm/models/FbsPostingShipV4RequestWith.d.ts b/dist/esm/models/FbsPostingShipV4RequestWith.d.ts new file mode 100644 index 0000000..96cf33c --- /dev/null +++ b/dist/esm/models/FbsPostingShipV4RequestWith.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительная информация. + * @export + * @interface FbsPostingShipV4RequestWith + */ +export interface FbsPostingShipV4RequestWith { + /** + * Чтобы получить дополнительную информацию, передайте `true`. + * @type {boolean} + * @memberof FbsPostingShipV4RequestWith + */ + additional_data?: boolean; +} +/** + * Check if a given object implements the FbsPostingShipV4RequestWith interface. + */ +export declare function instanceOfFbsPostingShipV4RequestWith(value: object): value is FbsPostingShipV4RequestWith; +export declare function FbsPostingShipV4RequestWithFromJSON(json: any): FbsPostingShipV4RequestWith; +export declare function FbsPostingShipV4RequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingShipV4RequestWith; +export declare function FbsPostingShipV4RequestWithToJSON(value?: FbsPostingShipV4RequestWith | null): any; diff --git a/dist/esm/models/FbsPostingShipV4RequestWith.js b/dist/esm/models/FbsPostingShipV4RequestWith.js new file mode 100644 index 0000000..677ea99 --- /dev/null +++ b/dist/esm/models/FbsPostingShipV4RequestWith.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbsPostingShipV4RequestWith interface. + */ +export function instanceOfFbsPostingShipV4RequestWith(value) { + return true; +} +export function FbsPostingShipV4RequestWithFromJSON(json) { + return FbsPostingShipV4RequestWithFromJSONTyped(json, false); +} +export function FbsPostingShipV4RequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : json['additional_data'], + }; +} +export function FbsPostingShipV4RequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'], + }; +} diff --git a/dist/esm/models/FbsPostingShipV4ResponseShipAdditionalData.d.ts b/dist/esm/models/FbsPostingShipV4ResponseShipAdditionalData.d.ts new file mode 100644 index 0000000..1e69f62 --- /dev/null +++ b/dist/esm/models/FbsPostingShipV4ResponseShipAdditionalData.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fbsv4PostingProductDetailWithoutDimensions } from './Fbsv4PostingProductDetailWithoutDimensions'; +/** + * + * @export + * @interface FbsPostingShipV4ResponseShipAdditionalData + */ +export interface FbsPostingShipV4ResponseShipAdditionalData { + /** + * Номер отправления. + * @type {string} + * @memberof FbsPostingShipV4ResponseShipAdditionalData + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof FbsPostingShipV4ResponseShipAdditionalData + */ + products?: Array; +} +/** + * Check if a given object implements the FbsPostingShipV4ResponseShipAdditionalData interface. + */ +export declare function instanceOfFbsPostingShipV4ResponseShipAdditionalData(value: object): value is FbsPostingShipV4ResponseShipAdditionalData; +export declare function FbsPostingShipV4ResponseShipAdditionalDataFromJSON(json: any): FbsPostingShipV4ResponseShipAdditionalData; +export declare function FbsPostingShipV4ResponseShipAdditionalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingShipV4ResponseShipAdditionalData; +export declare function FbsPostingShipV4ResponseShipAdditionalDataToJSON(value?: FbsPostingShipV4ResponseShipAdditionalData | null): any; diff --git a/dist/esm/models/FbsPostingShipV4ResponseShipAdditionalData.js b/dist/esm/models/FbsPostingShipV4ResponseShipAdditionalData.js new file mode 100644 index 0000000..b056ec3 --- /dev/null +++ b/dist/esm/models/FbsPostingShipV4ResponseShipAdditionalData.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Fbsv4PostingProductDetailWithoutDimensionsFromJSON, Fbsv4PostingProductDetailWithoutDimensionsToJSON, } from './Fbsv4PostingProductDetailWithoutDimensions'; +/** + * Check if a given object implements the FbsPostingShipV4ResponseShipAdditionalData interface. + */ +export function instanceOfFbsPostingShipV4ResponseShipAdditionalData(value) { + return true; +} +export function FbsPostingShipV4ResponseShipAdditionalDataFromJSON(json) { + return FbsPostingShipV4ResponseShipAdditionalDataFromJSONTyped(json, false); +} +export function FbsPostingShipV4ResponseShipAdditionalDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(Fbsv4PostingProductDetailWithoutDimensionsFromJSON)), + }; +} +export function FbsPostingShipV4ResponseShipAdditionalDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(Fbsv4PostingProductDetailWithoutDimensionsToJSON)), + }; +} diff --git a/dist/esm/models/FbsPostingTrackingNumberSetRequestTrackingNumber.d.ts b/dist/esm/models/FbsPostingTrackingNumberSetRequestTrackingNumber.d.ts new file mode 100644 index 0000000..886c40a --- /dev/null +++ b/dist/esm/models/FbsPostingTrackingNumberSetRequestTrackingNumber.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbsPostingTrackingNumberSetRequestTrackingNumber + */ +export interface FbsPostingTrackingNumberSetRequestTrackingNumber { + /** + * Идентификатор отправления. + * @type {string} + * @memberof FbsPostingTrackingNumberSetRequestTrackingNumber + */ + posting_number: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof FbsPostingTrackingNumberSetRequestTrackingNumber + */ + tracking_number: string; +} +/** + * Check if a given object implements the FbsPostingTrackingNumberSetRequestTrackingNumber interface. + */ +export declare function instanceOfFbsPostingTrackingNumberSetRequestTrackingNumber(value: object): value is FbsPostingTrackingNumberSetRequestTrackingNumber; +export declare function FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON(json: any): FbsPostingTrackingNumberSetRequestTrackingNumber; +export declare function FbsPostingTrackingNumberSetRequestTrackingNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingTrackingNumberSetRequestTrackingNumber; +export declare function FbsPostingTrackingNumberSetRequestTrackingNumberToJSON(value?: FbsPostingTrackingNumberSetRequestTrackingNumber | null): any; diff --git a/dist/esm/models/FbsPostingTrackingNumberSetRequestTrackingNumber.js b/dist/esm/models/FbsPostingTrackingNumberSetRequestTrackingNumber.js new file mode 100644 index 0000000..acb0707 --- /dev/null +++ b/dist/esm/models/FbsPostingTrackingNumberSetRequestTrackingNumber.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FbsPostingTrackingNumberSetRequestTrackingNumber interface. + */ +export function instanceOfFbsPostingTrackingNumberSetRequestTrackingNumber(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('tracking_number' in value) || value['tracking_number'] === undefined) + return false; + return true; +} +export function FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON(json) { + return FbsPostingTrackingNumberSetRequestTrackingNumberFromJSONTyped(json, false); +} +export function FbsPostingTrackingNumberSetRequestTrackingNumberFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'tracking_number': json['tracking_number'], + }; +} +export function FbsPostingTrackingNumberSetRequestTrackingNumberToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'tracking_number': value['tracking_number'], + }; +} diff --git a/dist/esm/models/Fbsv4FbsPostingShipV4Request.d.ts b/dist/esm/models/Fbsv4FbsPostingShipV4Request.d.ts new file mode 100644 index 0000000..0f07980 --- /dev/null +++ b/dist/esm/models/Fbsv4FbsPostingShipV4Request.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingShipV4RequestWith } from './FbsPostingShipV4RequestWith'; +import type { FbsPostingShipV4RequestPackage } from './FbsPostingShipV4RequestPackage'; +/** + * + * @export + * @interface Fbsv4FbsPostingShipV4Request + */ +export interface Fbsv4FbsPostingShipV4Request { + /** + * Список упаковок. Каждая упаковка содержит список отправлений, на которые делится заказ. + * @type {Array} + * @memberof Fbsv4FbsPostingShipV4Request + */ + packages: Array; + /** + * Номер отправления. + * @type {string} + * @memberof Fbsv4FbsPostingShipV4Request + */ + posting_number: string; + /** + * + * @type {FbsPostingShipV4RequestWith} + * @memberof Fbsv4FbsPostingShipV4Request + */ + _with?: FbsPostingShipV4RequestWith; +} +/** + * Check if a given object implements the Fbsv4FbsPostingShipV4Request interface. + */ +export declare function instanceOfFbsv4FbsPostingShipV4Request(value: object): value is Fbsv4FbsPostingShipV4Request; +export declare function Fbsv4FbsPostingShipV4RequestFromJSON(json: any): Fbsv4FbsPostingShipV4Request; +export declare function Fbsv4FbsPostingShipV4RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbsv4FbsPostingShipV4Request; +export declare function Fbsv4FbsPostingShipV4RequestToJSON(value?: Fbsv4FbsPostingShipV4Request | null): any; diff --git a/dist/esm/models/Fbsv4FbsPostingShipV4Request.js b/dist/esm/models/Fbsv4FbsPostingShipV4Request.js new file mode 100644 index 0000000..6ddc280 --- /dev/null +++ b/dist/esm/models/Fbsv4FbsPostingShipV4Request.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbsPostingShipV4RequestWithFromJSON, FbsPostingShipV4RequestWithToJSON, } from './FbsPostingShipV4RequestWith'; +import { FbsPostingShipV4RequestPackageFromJSON, FbsPostingShipV4RequestPackageToJSON, } from './FbsPostingShipV4RequestPackage'; +/** + * Check if a given object implements the Fbsv4FbsPostingShipV4Request interface. + */ +export function instanceOfFbsv4FbsPostingShipV4Request(value) { + if (!('packages' in value) || value['packages'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function Fbsv4FbsPostingShipV4RequestFromJSON(json) { + return Fbsv4FbsPostingShipV4RequestFromJSONTyped(json, false); +} +export function Fbsv4FbsPostingShipV4RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'packages': (json['packages'].map(FbsPostingShipV4RequestPackageFromJSON)), + 'posting_number': json['posting_number'], + '_with': json['with'] == null ? undefined : FbsPostingShipV4RequestWithFromJSON(json['with']), + }; +} +export function Fbsv4FbsPostingShipV4RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'packages': (value['packages'].map(FbsPostingShipV4RequestPackageToJSON)), + 'posting_number': value['posting_number'], + 'with': FbsPostingShipV4RequestWithToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/Fbsv4FbsPostingShipV4Response.d.ts b/dist/esm/models/Fbsv4FbsPostingShipV4Response.d.ts new file mode 100644 index 0000000..d325625 --- /dev/null +++ b/dist/esm/models/Fbsv4FbsPostingShipV4Response.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingShipV4ResponseShipAdditionalData } from './FbsPostingShipV4ResponseShipAdditionalData'; +/** + * + * @export + * @interface Fbsv4FbsPostingShipV4Response + */ +export interface Fbsv4FbsPostingShipV4Response { + /** + * Дополнительная информация об отправлениях. + * @type {Array} + * @memberof Fbsv4FbsPostingShipV4Response + */ + additional_data?: Array; + /** + * Результат сборки отправлений. + * @type {Array} + * @memberof Fbsv4FbsPostingShipV4Response + */ + result?: Array; +} +/** + * Check if a given object implements the Fbsv4FbsPostingShipV4Response interface. + */ +export declare function instanceOfFbsv4FbsPostingShipV4Response(value: object): value is Fbsv4FbsPostingShipV4Response; +export declare function Fbsv4FbsPostingShipV4ResponseFromJSON(json: any): Fbsv4FbsPostingShipV4Response; +export declare function Fbsv4FbsPostingShipV4ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbsv4FbsPostingShipV4Response; +export declare function Fbsv4FbsPostingShipV4ResponseToJSON(value?: Fbsv4FbsPostingShipV4Response | null): any; diff --git a/dist/esm/models/Fbsv4FbsPostingShipV4Response.js b/dist/esm/models/Fbsv4FbsPostingShipV4Response.js new file mode 100644 index 0000000..38559d1 --- /dev/null +++ b/dist/esm/models/Fbsv4FbsPostingShipV4Response.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbsPostingShipV4ResponseShipAdditionalDataFromJSON, FbsPostingShipV4ResponseShipAdditionalDataToJSON, } from './FbsPostingShipV4ResponseShipAdditionalData'; +/** + * Check if a given object implements the Fbsv4FbsPostingShipV4Response interface. + */ +export function instanceOfFbsv4FbsPostingShipV4Response(value) { + return true; +} +export function Fbsv4FbsPostingShipV4ResponseFromJSON(json) { + return Fbsv4FbsPostingShipV4ResponseFromJSONTyped(json, false); +} +export function Fbsv4FbsPostingShipV4ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(FbsPostingShipV4ResponseShipAdditionalDataFromJSON)), + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function Fbsv4FbsPostingShipV4ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(FbsPostingShipV4ResponseShipAdditionalDataToJSON)), + 'result': value['result'], + }; +} diff --git a/dist/esm/models/Fbsv4PostingProductDetailWithoutDimensions.d.ts b/dist/esm/models/Fbsv4PostingProductDetailWithoutDimensions.d.ts new file mode 100644 index 0000000..8c0c6b6 --- /dev/null +++ b/dist/esm/models/Fbsv4PostingProductDetailWithoutDimensions.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Fbsv4PostingProductDetailWithoutDimensions + */ +export interface Fbsv4PostingProductDetailWithoutDimensions { + /** + * Обязательная маркировка «Честный ЗНАК». + * @type {Array} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + mandatory_mark?: Array; + /** + * Название товара. + * @type {string} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + offer_id?: string; + /** + * Цена. + * @type {string} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + price?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + sku?: number; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + currency_code?: string; +} +/** + * Check if a given object implements the Fbsv4PostingProductDetailWithoutDimensions interface. + */ +export declare function instanceOfFbsv4PostingProductDetailWithoutDimensions(value: object): value is Fbsv4PostingProductDetailWithoutDimensions; +export declare function Fbsv4PostingProductDetailWithoutDimensionsFromJSON(json: any): Fbsv4PostingProductDetailWithoutDimensions; +export declare function Fbsv4PostingProductDetailWithoutDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbsv4PostingProductDetailWithoutDimensions; +export declare function Fbsv4PostingProductDetailWithoutDimensionsToJSON(value?: Fbsv4PostingProductDetailWithoutDimensions | null): any; diff --git a/dist/esm/models/Fbsv4PostingProductDetailWithoutDimensions.js b/dist/esm/models/Fbsv4PostingProductDetailWithoutDimensions.js new file mode 100644 index 0000000..6ceb10a --- /dev/null +++ b/dist/esm/models/Fbsv4PostingProductDetailWithoutDimensions.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Fbsv4PostingProductDetailWithoutDimensions interface. + */ +export function instanceOfFbsv4PostingProductDetailWithoutDimensions(value) { + return true; +} +export function Fbsv4PostingProductDetailWithoutDimensionsFromJSON(json) { + return Fbsv4PostingProductDetailWithoutDimensionsFromJSONTyped(json, false); +} +export function Fbsv4PostingProductDetailWithoutDimensionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mandatory_mark': json['mandatory_mark'] == null ? undefined : json['mandatory_mark'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + }; +} +export function Fbsv4PostingProductDetailWithoutDimensionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'mandatory_mark': value['mandatory_mark'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'currency_code': value['currency_code'], + }; +} diff --git a/dist/esm/models/FilterPeriod.d.ts b/dist/esm/models/FilterPeriod.d.ts new file mode 100644 index 0000000..c6e4195 --- /dev/null +++ b/dist/esm/models/FilterPeriod.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате. + * @export + * @interface FilterPeriod + */ +export interface FilterPeriod { + /** + * Начало периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`.
+ * Пример: `2019-11-25T10:43:06.51`. + * + * @type {string} + * @memberof FilterPeriod + */ + from?: string; + /** + * Конец периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`.
+ * Пример: `2019-11-25T10:43:06.51`. + * + * @type {string} + * @memberof FilterPeriod + */ + to?: string; +} +/** + * Check if a given object implements the FilterPeriod interface. + */ +export declare function instanceOfFilterPeriod(value: object): value is FilterPeriod; +export declare function FilterPeriodFromJSON(json: any): FilterPeriod; +export declare function FilterPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterPeriod; +export declare function FilterPeriodToJSON(value?: FilterPeriod | null): any; diff --git a/dist/esm/models/FilterPeriod.js b/dist/esm/models/FilterPeriod.js new file mode 100644 index 0000000..1c94733 --- /dev/null +++ b/dist/esm/models/FilterPeriod.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FilterPeriod interface. + */ +export function instanceOfFilterPeriod(value) { + return true; +} +export function FilterPeriodFromJSON(json) { + return FilterPeriodFromJSONTyped(json, false); +} +export function FilterPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function FilterPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/FilterStatusEnum.d.ts b/dist/esm/models/FilterStatusEnum.d.ts new file mode 100644 index 0000000..ad9d9d9 --- /dev/null +++ b/dist/esm/models/FilterStatusEnum.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const FilterStatusEnum: { + readonly NEW: "NEW"; + readonly EDITED: "EDITED"; + readonly ACTIVE: "ACTIVE"; + readonly DISABLED: "DISABLED"; + readonly WAITING: "WAITING"; + readonly BROKEN: "BROKEN"; +}; +export type FilterStatusEnum = typeof FilterStatusEnum[keyof typeof FilterStatusEnum]; +export declare function instanceOfFilterStatusEnum(value: any): boolean; +export declare function FilterStatusEnumFromJSON(json: any): FilterStatusEnum; +export declare function FilterStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterStatusEnum; +export declare function FilterStatusEnumToJSON(value?: FilterStatusEnum | null): any; diff --git a/dist/esm/models/FilterStatusEnum.js b/dist/esm/models/FilterStatusEnum.js new file mode 100644 index 0000000..e035470 --- /dev/null +++ b/dist/esm/models/FilterStatusEnum.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const FilterStatusEnum = { + NEW: 'NEW', + EDITED: 'EDITED', + ACTIVE: 'ACTIVE', + DISABLED: 'DISABLED', + WAITING: 'WAITING', + BROKEN: 'BROKEN' +}; +export function instanceOfFilterStatusEnum(value) { + for (const key in FilterStatusEnum) { + if (Object.prototype.hasOwnProperty.call(FilterStatusEnum, key)) { + if (FilterStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function FilterStatusEnumFromJSON(json) { + return FilterStatusEnumFromJSONTyped(json, false); +} +export function FilterStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function FilterStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/FilterTimeslotFromRange.d.ts b/dist/esm/models/FilterTimeslotFromRange.d.ts new file mode 100644 index 0000000..43d874d --- /dev/null +++ b/dist/esm/models/FilterTimeslotFromRange.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TimeslotFromRangeTimeslotFilterTypeEnum } from './TimeslotFromRangeTimeslotFilterTypeEnum'; +/** + * Фильтр по таймслоту. + * @export + * @interface FilterTimeslotFromRange + */ +export interface FilterTimeslotFromRange { + /** + * Дата начала. + * @type {string} + * @memberof FilterTimeslotFromRange + */ + from?: string; + /** + * + * @type {TimeslotFromRangeTimeslotFilterTypeEnum} + * @memberof FilterTimeslotFromRange + */ + timeslot_filter_type?: TimeslotFromRangeTimeslotFilterTypeEnum; + /** + * Дата окончания. + * @type {string} + * @memberof FilterTimeslotFromRange + */ + to?: string; +} +/** + * Check if a given object implements the FilterTimeslotFromRange interface. + */ +export declare function instanceOfFilterTimeslotFromRange(value: object): value is FilterTimeslotFromRange; +export declare function FilterTimeslotFromRangeFromJSON(json: any): FilterTimeslotFromRange; +export declare function FilterTimeslotFromRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterTimeslotFromRange; +export declare function FilterTimeslotFromRangeToJSON(value?: FilterTimeslotFromRange | null): any; diff --git a/dist/esm/models/FilterTimeslotFromRange.js b/dist/esm/models/FilterTimeslotFromRange.js new file mode 100644 index 0000000..f76341d --- /dev/null +++ b/dist/esm/models/FilterTimeslotFromRange.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { TimeslotFromRangeTimeslotFilterTypeEnumFromJSON, TimeslotFromRangeTimeslotFilterTypeEnumToJSON, } from './TimeslotFromRangeTimeslotFilterTypeEnum'; +/** + * Check if a given object implements the FilterTimeslotFromRange interface. + */ +export function instanceOfFilterTimeslotFromRange(value) { + return true; +} +export function FilterTimeslotFromRangeFromJSON(json) { + return FilterTimeslotFromRangeFromJSONTyped(json, false); +} +export function FilterTimeslotFromRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'timeslot_filter_type': json['timeslot_filter_type'] == null ? undefined : TimeslotFromRangeTimeslotFilterTypeEnumFromJSON(json['timeslot_filter_type']), + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function FilterTimeslotFromRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'timeslot_filter_type': TimeslotFromRangeTimeslotFilterTypeEnumToJSON(value['timeslot_filter_type']), + 'to': value['to'], + }; +} diff --git a/dist/esm/models/FilterWithQuant.d.ts b/dist/esm/models/FilterWithQuant.d.ts new file mode 100644 index 0000000..f8333e0 --- /dev/null +++ b/dist/esm/models/FilterWithQuant.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Товары по тарифу «Эконом». + * @export + * @interface FilterWithQuant + */ +export interface FilterWithQuant { + /** + * Активные эконом-товары. + * @type {boolean} + * @memberof FilterWithQuant + */ + created?: boolean; + /** + * Эконом-товары во всех статусах. + * @type {boolean} + * @memberof FilterWithQuant + */ + _exists?: boolean; +} +/** + * Check if a given object implements the FilterWithQuant interface. + */ +export declare function instanceOfFilterWithQuant(value: object): value is FilterWithQuant; +export declare function FilterWithQuantFromJSON(json: any): FilterWithQuant; +export declare function FilterWithQuantFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterWithQuant; +export declare function FilterWithQuantToJSON(value?: FilterWithQuant | null): any; diff --git a/dist/esm/models/FilterWithQuant.js b/dist/esm/models/FilterWithQuant.js new file mode 100644 index 0000000..d72146c --- /dev/null +++ b/dist/esm/models/FilterWithQuant.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FilterWithQuant interface. + */ +export function instanceOfFilterWithQuant(value) { + return true; +} +export function FilterWithQuantFromJSON(json) { + return FilterWithQuantFromJSONTyped(json, false); +} +export function FilterWithQuantFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created': json['created'] == null ? undefined : json['created'], + '_exists': json['exists'] == null ? undefined : json['exists'], + }; +} +export function FilterWithQuantToJSON(value) { + if (value == null) { + return value; + } + return { + 'created': value['created'], + 'exists': value['_exists'], + }; +} diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseCashFlow.d.ts b/dist/esm/models/FinanceCashFlowStatementListResponseCashFlow.d.ts new file mode 100644 index 0000000..f58b27d --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseCashFlow.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FinanceCashFlowStatementListResponsePeriod } from './V3FinanceCashFlowStatementListResponsePeriod'; +/** + * + * @export + * @interface FinanceCashFlowStatementListResponseCashFlow + */ +export interface FinanceCashFlowStatementListResponseCashFlow { + /** + * + * @type {V3FinanceCashFlowStatementListResponsePeriod} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + period?: V3FinanceCashFlowStatementListResponsePeriod; + /** + * Сумма цен реализованных товаров. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + orders_amount?: number; + /** + * Сумма цен возвращённых товаров. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + returns_amount?: number; + /** + * Комиссия Ozon за реализацию товаров. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + commission_amount?: number; + /** + * Сумма дополнительных услуг. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + services_amount?: number; + /** + * Сумма услуг логистики. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + item_delivery_and_return_amount?: number; + /** + * Код валюты, в которой рассчитываются комиссии. + * @type {string} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + currency_code?: string; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseCashFlow interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseCashFlow(value: object): value is FinanceCashFlowStatementListResponseCashFlow; +export declare function FinanceCashFlowStatementListResponseCashFlowFromJSON(json: any): FinanceCashFlowStatementListResponseCashFlow; +export declare function FinanceCashFlowStatementListResponseCashFlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseCashFlow; +export declare function FinanceCashFlowStatementListResponseCashFlowToJSON(value?: FinanceCashFlowStatementListResponseCashFlow | null): any; diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseCashFlow.js b/dist/esm/models/FinanceCashFlowStatementListResponseCashFlow.js new file mode 100644 index 0000000..8ac6220 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseCashFlow.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3FinanceCashFlowStatementListResponsePeriodFromJSON, V3FinanceCashFlowStatementListResponsePeriodToJSON, } from './V3FinanceCashFlowStatementListResponsePeriod'; +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseCashFlow interface. + */ +export function instanceOfFinanceCashFlowStatementListResponseCashFlow(value) { + return true; +} +export function FinanceCashFlowStatementListResponseCashFlowFromJSON(json) { + return FinanceCashFlowStatementListResponseCashFlowFromJSONTyped(json, false); +} +export function FinanceCashFlowStatementListResponseCashFlowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'period': json['period'] == null ? undefined : V3FinanceCashFlowStatementListResponsePeriodFromJSON(json['period']), + 'orders_amount': json['orders_amount'] == null ? undefined : json['orders_amount'], + 'returns_amount': json['returns_amount'] == null ? undefined : json['returns_amount'], + 'commission_amount': json['commission_amount'] == null ? undefined : json['commission_amount'], + 'services_amount': json['services_amount'] == null ? undefined : json['services_amount'], + 'item_delivery_and_return_amount': json['item_delivery_and_return_amount'] == null ? undefined : json['item_delivery_and_return_amount'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + }; +} +export function FinanceCashFlowStatementListResponseCashFlowToJSON(value) { + if (value == null) { + return value; + } + return { + 'period': V3FinanceCashFlowStatementListResponsePeriodToJSON(value['period']), + 'orders_amount': value['orders_amount'], + 'returns_amount': value['returns_amount'], + 'commission_amount': value['commission_amount'], + 'services_amount': value['services_amount'], + 'item_delivery_and_return_amount': value['item_delivery_and_return_amount'], + 'currency_code': value['currency_code'], + }; +} diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseDeliveryService.d.ts b/dist/esm/models/FinanceCashFlowStatementListResponseDeliveryService.d.ts new file mode 100644 index 0000000..9777e11 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseDeliveryService.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детализация. + * @export + * @interface FinanceCashFlowStatementListResponseDeliveryService + */ +export interface FinanceCashFlowStatementListResponseDeliveryService { + /** + * Название операции. Возможные значения: + * - `MarketplaceServiceItemDirectFlowLogisticSum` — логистика, + * - `MarketplaceServiceItemDirectFlowLogisticDC` — логистика РЦ, + * - `MarketplaceServiceItemDropoff` — обработка отправления Drop-off, + * - `MarketplaceServiceItemDirectFlowTrans` — магистраль, + * - `MarketplaceServiceDCFlowTrans` — магистраль РЦ, + * - `MarketplaceServiceItemFulfillment` — сборка заказа, + * - `MarketplaceServiceItemDelivToCustomer` — последняя миля. + * + * @type {string} + * @memberof FinanceCashFlowStatementListResponseDeliveryService + */ + name?: string; + /** + * Сумма по операции. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDeliveryService + */ + price?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDeliveryService interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseDeliveryService(value: object): value is FinanceCashFlowStatementListResponseDeliveryService; +export declare function FinanceCashFlowStatementListResponseDeliveryServiceFromJSON(json: any): FinanceCashFlowStatementListResponseDeliveryService; +export declare function FinanceCashFlowStatementListResponseDeliveryServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseDeliveryService; +export declare function FinanceCashFlowStatementListResponseDeliveryServiceToJSON(value?: FinanceCashFlowStatementListResponseDeliveryService | null): any; diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseDeliveryService.js b/dist/esm/models/FinanceCashFlowStatementListResponseDeliveryService.js new file mode 100644 index 0000000..9d9064a --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseDeliveryService.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDeliveryService interface. + */ +export function instanceOfFinanceCashFlowStatementListResponseDeliveryService(value) { + return true; +} +export function FinanceCashFlowStatementListResponseDeliveryServiceFromJSON(json) { + return FinanceCashFlowStatementListResponseDeliveryServiceFromJSONTyped(json, false); +} +export function FinanceCashFlowStatementListResponseDeliveryServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function FinanceCashFlowStatementListResponseDeliveryServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseDetails.d.ts b/dist/esm/models/FinanceCashFlowStatementListResponseDetails.d.ts new file mode 100644 index 0000000..e742126 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseDetails.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DetailsRfbsDetails } from './DetailsRfbsDetails'; +import type { DetailsService } from './DetailsService'; +import type { V3FinanceCashFlowStatementListResponsePeriod } from './V3FinanceCashFlowStatementListResponsePeriod'; +import type { DetailsOthers } from './DetailsOthers'; +import type { DetailsDeliveryDetails } from './DetailsDeliveryDetails'; +import type { DetailsPayment } from './DetailsPayment'; +import type { DetailsReturnDetails } from './DetailsReturnDetails'; +/** + * Детализированная информация. + * @export + * @interface FinanceCashFlowStatementListResponseDetails + */ +export interface FinanceCashFlowStatementListResponseDetails { + /** + * Баланс на начало периода. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + begin_balance_amount?: number; + /** + * + * @type {DetailsDeliveryDetails} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + delivery?: DetailsDeliveryDetails; + /** + * Сумма к выплате за период. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + invoice_transfer?: number; + /** + * Перевод по договорам займа. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + loan?: number; + /** + * + * @type {DetailsPayment} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + payments?: DetailsPayment; + /** + * + * @type {V3FinanceCashFlowStatementListResponsePeriod} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + period?: V3FinanceCashFlowStatementListResponsePeriod; + /** + * + * @type {DetailsReturnDetails} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + _return?: DetailsReturnDetails; + /** + * + * @type {DetailsRfbsDetails} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + rfbs?: DetailsRfbsDetails; + /** + * + * @type {DetailsService} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + services?: DetailsService; + /** + * + * @type {DetailsOthers} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + others?: DetailsOthers; + /** + * Баланс на конец периода. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + end_balance_amount?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDetails interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseDetails(value: object): value is FinanceCashFlowStatementListResponseDetails; +export declare function FinanceCashFlowStatementListResponseDetailsFromJSON(json: any): FinanceCashFlowStatementListResponseDetails; +export declare function FinanceCashFlowStatementListResponseDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseDetails; +export declare function FinanceCashFlowStatementListResponseDetailsToJSON(value?: FinanceCashFlowStatementListResponseDetails | null): any; diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseDetails.js b/dist/esm/models/FinanceCashFlowStatementListResponseDetails.js new file mode 100644 index 0000000..d501447 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseDetails.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DetailsRfbsDetailsFromJSON, DetailsRfbsDetailsToJSON, } from './DetailsRfbsDetails'; +import { DetailsServiceFromJSON, DetailsServiceToJSON, } from './DetailsService'; +import { V3FinanceCashFlowStatementListResponsePeriodFromJSON, V3FinanceCashFlowStatementListResponsePeriodToJSON, } from './V3FinanceCashFlowStatementListResponsePeriod'; +import { DetailsOthersFromJSON, DetailsOthersToJSON, } from './DetailsOthers'; +import { DetailsDeliveryDetailsFromJSON, DetailsDeliveryDetailsToJSON, } from './DetailsDeliveryDetails'; +import { DetailsPaymentFromJSON, DetailsPaymentToJSON, } from './DetailsPayment'; +import { DetailsReturnDetailsFromJSON, DetailsReturnDetailsToJSON, } from './DetailsReturnDetails'; +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDetails interface. + */ +export function instanceOfFinanceCashFlowStatementListResponseDetails(value) { + return true; +} +export function FinanceCashFlowStatementListResponseDetailsFromJSON(json) { + return FinanceCashFlowStatementListResponseDetailsFromJSONTyped(json, false); +} +export function FinanceCashFlowStatementListResponseDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'begin_balance_amount': json['begin_balance_amount'] == null ? undefined : json['begin_balance_amount'], + 'delivery': json['delivery'] == null ? undefined : DetailsDeliveryDetailsFromJSON(json['delivery']), + 'invoice_transfer': json['invoice_transfer'] == null ? undefined : json['invoice_transfer'], + 'loan': json['loan'] == null ? undefined : json['loan'], + 'payments': json['payments'] == null ? undefined : DetailsPaymentFromJSON(json['payments']), + 'period': json['period'] == null ? undefined : V3FinanceCashFlowStatementListResponsePeriodFromJSON(json['period']), + '_return': json['return'] == null ? undefined : DetailsReturnDetailsFromJSON(json['return']), + 'rfbs': json['rfbs'] == null ? undefined : DetailsRfbsDetailsFromJSON(json['rfbs']), + 'services': json['services'] == null ? undefined : DetailsServiceFromJSON(json['services']), + 'others': json['others'] == null ? undefined : DetailsOthersFromJSON(json['others']), + 'end_balance_amount': json['end_balance_amount'] == null ? undefined : json['end_balance_amount'], + }; +} +export function FinanceCashFlowStatementListResponseDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'begin_balance_amount': value['begin_balance_amount'], + 'delivery': DetailsDeliveryDetailsToJSON(value['delivery']), + 'invoice_transfer': value['invoice_transfer'], + 'loan': value['loan'], + 'payments': DetailsPaymentToJSON(value['payments']), + 'period': V3FinanceCashFlowStatementListResponsePeriodToJSON(value['period']), + 'return': DetailsReturnDetailsToJSON(value['_return']), + 'rfbs': DetailsRfbsDetailsToJSON(value['rfbs']), + 'services': DetailsServiceToJSON(value['services']), + 'others': DetailsOthersToJSON(value['others']), + 'end_balance_amount': value['end_balance_amount'], + }; +} diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseDetailsOthers.d.ts b/dist/esm/models/FinanceCashFlowStatementListResponseDetailsOthers.d.ts new file mode 100644 index 0000000..8b97253 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseDetailsOthers.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детализация. + * @export + * @interface FinanceCashFlowStatementListResponseDetailsOthers + */ +export interface FinanceCashFlowStatementListResponseDetailsOthers { + /** + * Название операции. Возможные значения: + * - `MarketplaceRedistributionOfAcquiringOperation` — оплата эквайринга, + * - `MarketplaceSellerCompensationLossOfGoodsOperation` — компенсация за уничтоженный товар, + * - `MarketplaceSellerCorrectionOperation` — корректировка стоимости услуг, + * - `OperationCorrectionSeller` — инвентаризация взаиморасчётов, + * - `OperationMarketplaceWithHoldingForUndeliverableGoods` — компенсация за недовложение товаров, + * - `OperationClaim` — начисления по претензиям. + * + * @type {string} + * @memberof FinanceCashFlowStatementListResponseDetailsOthers + */ + name?: string; + /** + * Сумма по операции. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetailsOthers + */ + price?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDetailsOthers interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseDetailsOthers(value: object): value is FinanceCashFlowStatementListResponseDetailsOthers; +export declare function FinanceCashFlowStatementListResponseDetailsOthersFromJSON(json: any): FinanceCashFlowStatementListResponseDetailsOthers; +export declare function FinanceCashFlowStatementListResponseDetailsOthersFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseDetailsOthers; +export declare function FinanceCashFlowStatementListResponseDetailsOthersToJSON(value?: FinanceCashFlowStatementListResponseDetailsOthers | null): any; diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseDetailsOthers.js b/dist/esm/models/FinanceCashFlowStatementListResponseDetailsOthers.js new file mode 100644 index 0000000..f1381a0 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseDetailsOthers.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDetailsOthers interface. + */ +export function instanceOfFinanceCashFlowStatementListResponseDetailsOthers(value) { + return true; +} +export function FinanceCashFlowStatementListResponseDetailsOthersFromJSON(json) { + return FinanceCashFlowStatementListResponseDetailsOthersFromJSONTyped(json, false); +} +export function FinanceCashFlowStatementListResponseDetailsOthersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function FinanceCashFlowStatementListResponseDetailsOthersToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseReturnService.d.ts b/dist/esm/models/FinanceCashFlowStatementListResponseReturnService.d.ts new file mode 100644 index 0000000..79f9293 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseReturnService.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детализация. + * @export + * @interface FinanceCashFlowStatementListResponseReturnService + */ +export interface FinanceCashFlowStatementListResponseReturnService { + /** + * Название операции. Возможные значения: + * - `MarketplaceServiceItemReturnAfterDelivToCustomer` — обработка возвратов, + * - `MarketplaceServiceItemReturnPartGoodsCustomer` — обработка частичного невыкупа, + * - `MarketplaceServiceItemReturnNotDelivToCustomer` — обработка отменённых и невостребованных товаров, + * - `MarketplaceServiceItemReturnFlowLogistic` — обратная логистика. + * + * @type {string} + * @memberof FinanceCashFlowStatementListResponseReturnService + */ + name?: string; + /** + * Сумма по операции. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseReturnService + */ + price?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseReturnService interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseReturnService(value: object): value is FinanceCashFlowStatementListResponseReturnService; +export declare function FinanceCashFlowStatementListResponseReturnServiceFromJSON(json: any): FinanceCashFlowStatementListResponseReturnService; +export declare function FinanceCashFlowStatementListResponseReturnServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseReturnService; +export declare function FinanceCashFlowStatementListResponseReturnServiceToJSON(value?: FinanceCashFlowStatementListResponseReturnService | null): any; diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseReturnService.js b/dist/esm/models/FinanceCashFlowStatementListResponseReturnService.js new file mode 100644 index 0000000..08fe7b4 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseReturnService.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseReturnService interface. + */ +export function instanceOfFinanceCashFlowStatementListResponseReturnService(value) { + return true; +} +export function FinanceCashFlowStatementListResponseReturnServiceFromJSON(json) { + return FinanceCashFlowStatementListResponseReturnServiceFromJSONTyped(json, false); +} +export function FinanceCashFlowStatementListResponseReturnServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function FinanceCashFlowStatementListResponseReturnServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseService.d.ts b/dist/esm/models/FinanceCashFlowStatementListResponseService.d.ts new file mode 100644 index 0000000..d78f553 --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseService.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детализация. + * @export + * @interface FinanceCashFlowStatementListResponseService + */ +export interface FinanceCashFlowStatementListResponseService { + /** + * Название операции: + * - `MarketplaceServiceItemElectronicServiceStencil` — услуга «Трафареты»; + * - `MarketplaceServiceItemElectronicServicesPromotionInSearch` — услуга «Продвижение в поиске»; + * - `MarketplaceServiceItemElectronicServicesBrandShelf` — услуга «Брендовая полка»; + * - `MarketplaceServiceBrandPromotion` и `MarketplaceServiceBrandCommission` — услуга «Продвижение бренда»; + * - `MarketplaceServiceItemMarketingServices` — маркетинговые услуги; + * - `MarketplaceServiceItemTechnicalServicesAndOtherServices` — технические и иные услуги; + * - `MarketplaceServiceItemOtherElectronicServices` — иные электронные услуги; + * - `ItemAgentServiceStarsMembership` — звёздные товары; + * - `MarketplaceReturnStorageServiceAtThePickupPointFbsItem` — краткосрочное размещение возврата FBS; + * - `MarketplaceSaleReviewsItem` — приобретение отзывов на платформе; + * - `MarketplaceServicePremiumCashbackIndividualPoints` — услуга продвижения «Бонусы продавца»; + * - `OperationMarketplaceServiceStorage` — услуга размещения товаров; + * - `MarketplaceServiceStockDisposal` — утилизация со стока; + * - `MarketplaceReturnDisposalServiceFbsItem` — утилизация FBS; + * - `MarketplaceServiceItemFlexiblePaymentSchedule` — услуга «Гибкий график выплат»; + * - `MarketplaceServiceProcessingSpoilage` — обработка брака; + * - `MarketplaceServiceProcessingIdentifiedSurplus` — обработка опознанных излишков; + * - `MarketplaceServiceProcessingIdentifiedDiscrepancies` — бронирование места для размещения на складе; + * - `MarketplaceServiceItemInternetSiteAdvertising` — реклама на сайте Ozon; + * - `MarketplaceServiceItemSubscribtionPremium` — премиум-подписка; + * - `MarketplaceAgencyFeeAggregator3PLGlobalItem` — агентское вознаграждение Ozon. + * + * @type {string} + * @memberof FinanceCashFlowStatementListResponseService + */ + name?: string; + /** + * Сумма по операции. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseService + */ + price?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseService interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseService(value: object): value is FinanceCashFlowStatementListResponseService; +export declare function FinanceCashFlowStatementListResponseServiceFromJSON(json: any): FinanceCashFlowStatementListResponseService; +export declare function FinanceCashFlowStatementListResponseServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseService; +export declare function FinanceCashFlowStatementListResponseServiceToJSON(value?: FinanceCashFlowStatementListResponseService | null): any; diff --git a/dist/esm/models/FinanceCashFlowStatementListResponseService.js b/dist/esm/models/FinanceCashFlowStatementListResponseService.js new file mode 100644 index 0000000..33f66af --- /dev/null +++ b/dist/esm/models/FinanceCashFlowStatementListResponseService.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseService interface. + */ +export function instanceOfFinanceCashFlowStatementListResponseService(value) { + return true; +} +export function FinanceCashFlowStatementListResponseServiceFromJSON(json) { + return FinanceCashFlowStatementListResponseServiceFromJSONTyped(json, false); +} +export function FinanceCashFlowStatementListResponseServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function FinanceCashFlowStatementListResponseServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/FinanceTransactionListV3RequestFilter.d.ts b/dist/esm/models/FinanceTransactionListV3RequestFilter.d.ts new file mode 100644 index 0000000..40b369f --- /dev/null +++ b/dist/esm/models/FinanceTransactionListV3RequestFilter.d.ts @@ -0,0 +1,99 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FilterPeriod } from './FilterPeriod'; +/** + * Фильтр. + * @export + * @interface FinanceTransactionListV3RequestFilter + */ +export interface FinanceTransactionListV3RequestFilter { + /** + * + * @type {FilterPeriod} + * @memberof FinanceTransactionListV3RequestFilter + */ + date?: FilterPeriod; + /** + * Тип операции: + * - `ClientReturnAgentOperation` — получение возврата, отмены, невыкупа от покупателя; + * - `MarketplaceMarketingActionCostOperation` — услуги продвижения товаров; + * - `MarketplaceSaleReviewsOperation` — приобретение отзывов на платформе; + * - `MarketplaceSellerCompensationOperation` — прочие компенсации; + * - `OperationAgentDeliveredToCustomer` — доставка покупателю; + * - `OperationAgentDeliveredToCustomerCanceled` — доставка покупателю — исправленное начисление; + * - `OperationAgentStornoDeliveredToCustomer` — доставка покупателю — отмена начисления; + * - `OperationClaim` — начисление по претензии; + * - `OperationCorrectionSeller` — инвентаризация взаиморасчетов; + * - `OperationDefectiveWriteOff` — компенсация за повреждённый на складе товар; + * - `OperationItemReturn` — доставка и обработка возврата, отмены, невыкупа; + * - `OperationLackWriteOff` — компенсация за утерянный на складе товар; + * - `OperationMarketplaceCrossDockServiceWriteOff` — доставка товаров на склад Ozon (кросс-докинг); + * - `OperationMarketplaceServiceStorage` — услуга размещения товаров на складе; + * - `OperationSetOff` — взаимозачёт с другими договорами контрагента; + * - `MarketplaceSellerReexposureDeliveryReturnOperation` — перечисление за доставку от покупателя; + * - `OperationReturnGoodsFBSofRMS` — доставка и обработка возврата, отмены, невыкупа; + * - `ReturnAgentOperationRFBS` — возврат перечисления за доставку покупателю; + * - `ItemAgentServiceStarsMembership` — вознаграждение за услугу [«Звёздные товары»](https://s.ozon.ru/e7NlR6b); + * - `MarketplaceSellerShippingCompensationReturnOperation` — компенсация перечисления за доставку; + * - `OperationMarketplaceServicePremiumCashback` — услуга продвижения Premium; + * - `MarketplaceServicePremiumPromotion` — услуга продвижения Premium, фиксированная комиссия; + * - `MarketplaceRedistributionOfAcquiringOperation` — оплата эквайринга; + * - `MarketplaceReturnStorageServiceAtThePickupPointFbsItem` — краткосрочное размещение возврата FBS; + * - `MarketplaceReturnStorageServiceInTheWarehouseFbsItem` — долгосрочное размещение возврата FBS; + * - `MarketplaceServiceItemDeliveryKGT` — доставка КГТ; + * - `MarketplaceServiceItemDirectFlowLogistic` — логистика; + * - `MarketplaceServiceItemReturnFlowLogistic` — обратная логистика; + * - `MarketplaceServicePremiumCashbackIndividualPoints` — услуга продвижения «Бонусы продавца»; + * - `OperationMarketplaceWithHoldingForUndeliverableGoods` — удержание за недовложение товара; + * - `MarketplaceServiceItemDirectFlowLogisticVDC` — логистика вРЦ; + * - `MarketplaceServiceItemDropoffPPZ` — услуга drop-off в пункте приёма заказов; + * - `MarketplaceServicePremiumCashback` — услуга продвижения Premium; + * - `MarketplaceServiceItemRedistributionReturnsPVZ` — перевыставление возвратов на пункте выдачи; + * - `OperationElectronicServiceStencil` — услуга «Трафареты»; + * - `OperationElectronicServicesPromotionInSearch` — услуга «Продвижение в поиске»; + * - `OperationMarketplaceServiceItemElectronicServicesBrandShelf` — услуга «Брендовая полка»; + * - `OperationSubscriptionPremium` — подписка Premium. + * + * @type {Array} + * @memberof FinanceTransactionListV3RequestFilter + */ + operation_type?: Array; + /** + * Номер отправления. + * @type {string} + * @memberof FinanceTransactionListV3RequestFilter + */ + posting_number?: string; + /** + * Тип начисления: + * - `all` — все, + * - `orders` — заказы, + * - `returns` — возвраты и отмены, + * - `services` — сервисные сборы, + * - `compensation` — компенсация, + * - `transferDelivery` — стоимость доставки, + * - `other` — прочее. + * + * Некоторые операции могут быть разделены во времени. Например, при приёме возврата от покупателя списывается стоимость товара и возвращается комиссия, а когда товар возвращается на склад, взимается стоимость услуга по обработке возврата. + * + * @type {string} + * @memberof FinanceTransactionListV3RequestFilter + */ + transaction_type?: string; +} +/** + * Check if a given object implements the FinanceTransactionListV3RequestFilter interface. + */ +export declare function instanceOfFinanceTransactionListV3RequestFilter(value: object): value is FinanceTransactionListV3RequestFilter; +export declare function FinanceTransactionListV3RequestFilterFromJSON(json: any): FinanceTransactionListV3RequestFilter; +export declare function FinanceTransactionListV3RequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceTransactionListV3RequestFilter; +export declare function FinanceTransactionListV3RequestFilterToJSON(value?: FinanceTransactionListV3RequestFilter | null): any; diff --git a/dist/esm/models/FinanceTransactionListV3RequestFilter.js b/dist/esm/models/FinanceTransactionListV3RequestFilter.js new file mode 100644 index 0000000..ea6cf6b --- /dev/null +++ b/dist/esm/models/FinanceTransactionListV3RequestFilter.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FilterPeriodFromJSON, FilterPeriodToJSON, } from './FilterPeriod'; +/** + * Check if a given object implements the FinanceTransactionListV3RequestFilter interface. + */ +export function instanceOfFinanceTransactionListV3RequestFilter(value) { + return true; +} +export function FinanceTransactionListV3RequestFilterFromJSON(json) { + return FinanceTransactionListV3RequestFilterFromJSONTyped(json, false); +} +export function FinanceTransactionListV3RequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : FilterPeriodFromJSON(json['date']), + 'operation_type': json['operation_type'] == null ? undefined : json['operation_type'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'transaction_type': json['transaction_type'] == null ? undefined : json['transaction_type'], + }; +} +export function FinanceTransactionListV3RequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': FilterPeriodToJSON(value['date']), + 'operation_type': value['operation_type'], + 'posting_number': value['posting_number'], + 'transaction_type': value['transaction_type'], + }; +} diff --git a/dist/esm/models/FinanceTransactionListV3ResponseOperation.d.ts b/dist/esm/models/FinanceTransactionListV3ResponseOperation.d.ts new file mode 100644 index 0000000..71a2e83 --- /dev/null +++ b/dist/esm/models/FinanceTransactionListV3ResponseOperation.d.ts @@ -0,0 +1,114 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OperationPosting } from './OperationPosting'; +import type { OperationService } from './OperationService'; +import type { OperationItem } from './OperationItem'; +/** + * + * @export + * @interface FinanceTransactionListV3ResponseOperation + */ +export interface FinanceTransactionListV3ResponseOperation { + /** + * Стоимость товаров с учётом скидок продавца. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + accruals_for_sale?: number; + /** + * Итоговая сумма операции. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + amount?: number; + /** + * Стоимость доставки для начислений по тарифам, которые действовали до 1 февраля 2021 года, а также начислений для крупногабаритных товаров. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + delivery_charge?: number; + /** + * Информация о товаре. + * @type {Array} + * @memberof FinanceTransactionListV3ResponseOperation + */ + items?: Array; + /** + * Дата операции. + * @type {string} + * @memberof FinanceTransactionListV3ResponseOperation + */ + operation_date?: string; + /** + * Идентификатор операции. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + operation_id?: number; + /** + * Тип операции. + * @type {string} + * @memberof FinanceTransactionListV3ResponseOperation + */ + operation_type?: string; + /** + * Название типа операции. + * @type {string} + * @memberof FinanceTransactionListV3ResponseOperation + */ + operation_type_name?: string; + /** + * + * @type {OperationPosting} + * @memberof FinanceTransactionListV3ResponseOperation + */ + posting?: OperationPosting; + /** + * Плата за возвраты и отмены для начислений по тарифам, которые действовали до 1 февраля 2021 года, а также начислений для крупногабаритных товаров. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + return_delivery_charge?: number; + /** + * Комиссия за продажу или возврат комиссии за продажу. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + sale_commission?: number; + /** + * Название услуги. + * @type {Array} + * @memberof FinanceTransactionListV3ResponseOperation + */ + services?: Array; + /** + * Тип начисления: + * - `all` — все, + * - `orders` — заказы, + * - `returns` — возвраты и отмены, + * - `services` — сервисные сборы, + * - `compensation` — компенсация, + * - `transferDelivery` — стоимость доставки, + * - `other` — прочее. + * + * @type {string} + * @memberof FinanceTransactionListV3ResponseOperation + */ + type?: string; +} +/** + * Check if a given object implements the FinanceTransactionListV3ResponseOperation interface. + */ +export declare function instanceOfFinanceTransactionListV3ResponseOperation(value: object): value is FinanceTransactionListV3ResponseOperation; +export declare function FinanceTransactionListV3ResponseOperationFromJSON(json: any): FinanceTransactionListV3ResponseOperation; +export declare function FinanceTransactionListV3ResponseOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceTransactionListV3ResponseOperation; +export declare function FinanceTransactionListV3ResponseOperationToJSON(value?: FinanceTransactionListV3ResponseOperation | null): any; diff --git a/dist/esm/models/FinanceTransactionListV3ResponseOperation.js b/dist/esm/models/FinanceTransactionListV3ResponseOperation.js new file mode 100644 index 0000000..9011a52 --- /dev/null +++ b/dist/esm/models/FinanceTransactionListV3ResponseOperation.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OperationPostingFromJSON, OperationPostingToJSON, } from './OperationPosting'; +import { OperationServiceFromJSON, OperationServiceToJSON, } from './OperationService'; +import { OperationItemFromJSON, OperationItemToJSON, } from './OperationItem'; +/** + * Check if a given object implements the FinanceTransactionListV3ResponseOperation interface. + */ +export function instanceOfFinanceTransactionListV3ResponseOperation(value) { + return true; +} +export function FinanceTransactionListV3ResponseOperationFromJSON(json) { + return FinanceTransactionListV3ResponseOperationFromJSONTyped(json, false); +} +export function FinanceTransactionListV3ResponseOperationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accruals_for_sale': json['accruals_for_sale'] == null ? undefined : json['accruals_for_sale'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'delivery_charge': json['delivery_charge'] == null ? undefined : json['delivery_charge'], + 'items': json['items'] == null ? undefined : (json['items'].map(OperationItemFromJSON)), + 'operation_date': json['operation_date'] == null ? undefined : json['operation_date'], + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + 'operation_type': json['operation_type'] == null ? undefined : json['operation_type'], + 'operation_type_name': json['operation_type_name'] == null ? undefined : json['operation_type_name'], + 'posting': json['posting'] == null ? undefined : OperationPostingFromJSON(json['posting']), + 'return_delivery_charge': json['return_delivery_charge'] == null ? undefined : json['return_delivery_charge'], + 'sale_commission': json['sale_commission'] == null ? undefined : json['sale_commission'], + 'services': json['services'] == null ? undefined : (json['services'].map(OperationServiceFromJSON)), + 'type': json['type'] == null ? undefined : json['type'], + }; +} +export function FinanceTransactionListV3ResponseOperationToJSON(value) { + if (value == null) { + return value; + } + return { + 'accruals_for_sale': value['accruals_for_sale'], + 'amount': value['amount'], + 'delivery_charge': value['delivery_charge'], + 'items': value['items'] == null ? undefined : (value['items'].map(OperationItemToJSON)), + 'operation_date': value['operation_date'], + 'operation_id': value['operation_id'], + 'operation_type': value['operation_type'], + 'operation_type_name': value['operation_type_name'], + 'posting': OperationPostingToJSON(value['posting']), + 'return_delivery_charge': value['return_delivery_charge'], + 'sale_commission': value['sale_commission'], + 'services': value['services'] == null ? undefined : (value['services'].map(OperationServiceToJSON)), + 'type': value['type'], + }; +} diff --git a/dist/esm/models/FinanceTransactionTotalsV3RequestDate.d.ts b/dist/esm/models/FinanceTransactionTotalsV3RequestDate.d.ts new file mode 100644 index 0000000..9f9654e --- /dev/null +++ b/dist/esm/models/FinanceTransactionTotalsV3RequestDate.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате. + * @export + * @interface FinanceTransactionTotalsV3RequestDate + */ +export interface FinanceTransactionTotalsV3RequestDate { + /** + * Начало периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`.
+ * Пример: `2019-11-25T10:43:06.51`. + * + * @type {string} + * @memberof FinanceTransactionTotalsV3RequestDate + */ + from?: string; + /** + * Конец периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`.
+ * Пример: `2019-11-25T10:43:06.51`. + * + * @type {string} + * @memberof FinanceTransactionTotalsV3RequestDate + */ + to?: string; +} +/** + * Check if a given object implements the FinanceTransactionTotalsV3RequestDate interface. + */ +export declare function instanceOfFinanceTransactionTotalsV3RequestDate(value: object): value is FinanceTransactionTotalsV3RequestDate; +export declare function FinanceTransactionTotalsV3RequestDateFromJSON(json: any): FinanceTransactionTotalsV3RequestDate; +export declare function FinanceTransactionTotalsV3RequestDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceTransactionTotalsV3RequestDate; +export declare function FinanceTransactionTotalsV3RequestDateToJSON(value?: FinanceTransactionTotalsV3RequestDate | null): any; diff --git a/dist/esm/models/FinanceTransactionTotalsV3RequestDate.js b/dist/esm/models/FinanceTransactionTotalsV3RequestDate.js new file mode 100644 index 0000000..0a6535c --- /dev/null +++ b/dist/esm/models/FinanceTransactionTotalsV3RequestDate.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FinanceTransactionTotalsV3RequestDate interface. + */ +export function instanceOfFinanceTransactionTotalsV3RequestDate(value) { + return true; +} +export function FinanceTransactionTotalsV3RequestDateFromJSON(json) { + return FinanceTransactionTotalsV3RequestDateFromJSONTyped(json, false); +} +export function FinanceTransactionTotalsV3RequestDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function FinanceTransactionTotalsV3RequestDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayRequest.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayRequest.d.ts new file mode 100644 index 0000000..57c6b26 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayRequest + */ +export interface FinanceV1GetFinanceAccrualByDayRequest { + /** + * Дата начислений. Самая ранняя — 1 января 2022 года. + * + * Если укажете `last_id`, передайте значение `date` из предыдущего запроса. + * + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayRequest + */ + date: string; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * Срок жизни идентификатора — 15 минут. + * + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayRequest + */ + last_id: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayRequest interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayRequest(value: object): value is FinanceV1GetFinanceAccrualByDayRequest; +export declare function FinanceV1GetFinanceAccrualByDayRequestFromJSON(json: any): FinanceV1GetFinanceAccrualByDayRequest; +export declare function FinanceV1GetFinanceAccrualByDayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayRequest; +export declare function FinanceV1GetFinanceAccrualByDayRequestToJSON(value?: FinanceV1GetFinanceAccrualByDayRequest | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayRequest.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayRequest.js new file mode 100644 index 0000000..09674ee --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayRequest interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('last_id' in value) || value['last_id'] === undefined) + return false; + return true; +} +export function FinanceV1GetFinanceAccrualByDayRequestFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayRequestFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'last_id': json['last_id'], + }; +} +export function FinanceV1GetFinanceAccrualByDayRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponse.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponse.d.ts new file mode 100644 index 0000000..f8df138 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrual } from './FinanceV1GetFinanceAccrualByDayResponseAccrual'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponse + */ +export interface FinanceV1GetFinanceAccrualByDayResponse { + /** + * Список начислений по отправлению. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponse + */ + accruals?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Срок жизни идентификатора — 15 минут. + * + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponse + */ + last_id?: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponse interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponse(value: object): value is FinanceV1GetFinanceAccrualByDayResponse; +export declare function FinanceV1GetFinanceAccrualByDayResponseFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponse; +export declare function FinanceV1GetFinanceAccrualByDayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponse; +export declare function FinanceV1GetFinanceAccrualByDayResponseToJSON(value?: FinanceV1GetFinanceAccrualByDayResponse | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponse.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponse.js new file mode 100644 index 0000000..d98c24d --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrual'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponse interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponse(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accruals': json['accruals'] == null ? undefined : (json['accruals'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'accruals': value['accruals'] == null ? undefined : (value['accruals'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.d.ts new file mode 100644 index 0000000..084a1de --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPosting } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPosting'; +import type { MoneyMoneyTotalAmount } from './MoneyMoneyTotalAmount'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees } from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee } from './FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum } from './FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrual + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrual { + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + accrued_category?: FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + container_fees?: FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; + /** + * Дата начислений. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + date?: string; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + item_fees?: FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees | null; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + non_item_fee?: FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualPosting} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + posting?: FinanceV1GetFinanceAccrualByDayResponseAccrualPosting | null; + /** + * + * @type {MoneyMoneyTotalAmount} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + total_amount?: MoneyMoneyTotalAmount; + /** + * Идентификатор начисления. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + accrual_id?: number; + /** + * Идентификатор заказа или услуги. Например, номер отправления или номер рекламного договора. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + unit_number?: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrual interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrual(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrual; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrual; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrual; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrual | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.js new file mode 100644 index 0000000..f28681e --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPosting'; +import { MoneyMoneyTotalAmountFromJSON, MoneyMoneyTotalAmountToJSON, } from './MoneyMoneyTotalAmount'; +import { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees'; +import { FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees'; +import { FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee'; +import { FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrual interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrual(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued_category': json['accrued_category'] == null ? undefined : FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON(json['accrued_category']), + 'container_fees': json['container_fees'] == null ? undefined : FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON(json['container_fees']), + 'date': json['date'] == null ? undefined : json['date'], + 'item_fees': json['item_fees'] == null ? undefined : FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON(json['item_fees']), + 'non_item_fee': json['non_item_fee'] == null ? undefined : FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON(json['non_item_fee']), + 'posting': json['posting'] == null ? undefined : FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON(json['posting']), + 'total_amount': json['total_amount'] == null ? undefined : MoneyMoneyTotalAmountFromJSON(json['total_amount']), + 'accrual_id': json['accrual_id'] == null ? undefined : json['accrual_id'], + 'unit_number': json['unit_number'] == null ? undefined : json['unit_number'], + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued_category': FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON(value['accrued_category']), + 'container_fees': FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON(value['container_fees']), + 'date': value['date'], + 'item_fees': FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON(value['item_fees']), + 'non_item_fee': FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON(value['non_item_fee']), + 'posting': FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON(value['posting']), + 'total_amount': MoneyMoneyTotalAmountToJSON(value['total_amount']), + 'accrual_id': value['accrual_id'], + 'unit_number': value['unit_number'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.d.ts new file mode 100644 index 0000000..6ac3edc --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип начисления: + * - `UNSPECIFIED` — не определён; + * - `POSTING` — начисление по отправлению; + * - `ITEM` — начисление по товару; + * - `NON_ITEM` — начисление по продавцу без привязки к товару; + * - `CONTAINER_FEES` — начисление по контейнеру. + * + * @export + */ +export declare const FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly POSTING: "POSTING"; + readonly ITEM: "ITEM"; + readonly NON_ITEM: "NON_ITEM"; + readonly CONTAINER_FEES: "CONTAINER_FEES"; +}; +export type FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum = typeof FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum[keyof typeof FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum]; +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum(value: any): boolean; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.js new file mode 100644 index 0000000..d114fd6 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип начисления: + * - `UNSPECIFIED` — не определён; + * - `POSTING` — начисление по отправлению; + * - `ITEM` — начисление по товару; + * - `NON_ITEM` — начисление по продавцу без привязки к товару; + * - `CONTAINER_FEES` — начисление по контейнеру. + * + * @export + */ +export const FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum = { + UNSPECIFIED: 'UNSPECIFIED', + POSTING: 'POSTING', + ITEM: 'ITEM', + NON_ITEM: 'NON_ITEM', + CONTAINER_FEES: 'CONTAINER_FEES' +}; +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum(value) { + for (const key in FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum) { + if (Object.prototype.hasOwnProperty.call(FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum, key)) { + if (FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum[key] === value) { + return true; + } + } + } + return false; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.d.ts new file mode 100644 index 0000000..d0ffb03 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee } from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee'; +/** + * Начисления по контейнеру. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees { + /** + * Начисления. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees + */ + fees?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.js new file mode 100644 index 0000000..2dfd844 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fees': json['fees'] == null ? undefined : (json['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON)), + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON(value) { + if (value == null) { + return value; + } + return { + 'fees': value['fees'] == null ? undefined : (value['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON)), + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.d.ts new file mode 100644 index 0000000..48cd6d0 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee { + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee + */ + accrued?: MoneyMoneyAccrued; + /** + * Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.js new file mode 100644 index 0000000..b706c3d --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyAccruedFromJSON, MoneyMoneyAccruedToJSON, } from './MoneyMoneyAccrued'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : MoneyMoneyAccruedFromJSON(json['accrued']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': MoneyMoneyAccruedToJSON(value['accrued']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.d.ts new file mode 100644 index 0000000..50008b7 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee'; +/** + * Начисления по товарам. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees { + /** + * Начисления по товару. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees + */ + fees?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFees(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.js new file mode 100644 index 0000000..1d29686 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFees(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fees': json['fees'] == null ? undefined : (json['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON)), + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON(value) { + if (value == null) { + return value; + } + return { + 'fees': value['fees'] == null ? undefined : (value['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON)), + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.d.ts new file mode 100644 index 0000000..5f8680d --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee { + /** + * Начисления. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee + */ + fees?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee + */ + sku?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.js new file mode 100644 index 0000000..bae934a --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fees': json['fees'] == null ? undefined : (json['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'fees': value['fees'] == null ? undefined : (value['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.d.ts new file mode 100644 index 0000000..8a39556 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee { + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee + */ + accrued?: MoneyMoneyAccrued; + /** + * Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.js new file mode 100644 index 0000000..278fa2e --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyAccruedFromJSON, MoneyMoneyAccruedToJSON, } from './MoneyMoneyAccrued'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : MoneyMoneyAccruedFromJSON(json['accrued']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': MoneyMoneyAccruedToJSON(value['accrued']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.d.ts new file mode 100644 index 0000000..e66ecbf --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * Начисление по продавцу без привязки к товару. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee { + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee + */ + accrued?: MoneyMoneyAccrued; + /** + * Идентификатор типа начисления. Можно получить методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.js new file mode 100644 index 0000000..1074c00 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyAccruedFromJSON, MoneyMoneyAccruedToJSON, } from './MoneyMoneyAccrued'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : MoneyMoneyAccruedFromJSON(json['accrued']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': MoneyMoneyAccruedToJSON(value['accrued']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.d.ts new file mode 100644 index 0000000..4cf9b9a --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct'; +/** + * Начисления по отправлению. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPosting + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPosting { + /** + * Схема продаж. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPosting + */ + delivery_schema?: string; + /** + * Скорость доставки. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPosting + */ + delivery_speed?: number; + /** + * Данные по товарам из отправления. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPosting + */ + products?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPosting interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPosting(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPosting; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPosting; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPosting; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPosting | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.js new file mode 100644 index 0000000..5fc6416 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPosting interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPosting(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'delivery_speed': json['delivery_speed'] == null ? undefined : json['delivery_speed'], + 'products': json['products'] == null ? undefined : (json['products'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON)), + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_schema': value['delivery_schema'], + 'delivery_speed': value['delivery_speed'], + 'products': value['products'] == null ? undefined : (value['products'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON)), + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.d.ts new file mode 100644 index 0000000..4854852 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct { + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct + */ + commission?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct + */ + delivery?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.js new file mode 100644 index 0000000..0e18f56 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission'; +import { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commission': json['commission'] == null ? undefined : FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON(json['commission']), + 'delivery': json['delivery'] == null ? undefined : FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON(json['delivery']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'commission': FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON(value['commission']), + 'delivery': FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON(value['delivery']), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.d.ts new file mode 100644 index 0000000..2fde5bf --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyBonus } from './MoneyMoneyBonus'; +import type { MoneyMoneyCommission } from './MoneyMoneyCommission'; +import type { MoneyMoneySaleCommission } from './MoneyMoneySaleCommission'; +import type { MoneyMoneySaleAmount } from './MoneyMoneySaleAmount'; +import type { MoneyMoneySalePrice } from './MoneyMoneySalePrice'; +import type { MoneyMoneySellerPrice } from './MoneyMoneySellerPrice'; +import type { MoneyMoneyCoinvestment } from './MoneyMoneyCoinvestment'; +/** + * Итоговая комиссия с учётом скидок и наценки. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission { + /** + * + * @type {MoneyMoneyBonus} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + bonus?: MoneyMoneyBonus; + /** + * + * @type {MoneyMoneyCoinvestment} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + coinvestment?: MoneyMoneyCoinvestment; + /** + * + * @type {MoneyMoneyCommission} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + commission?: MoneyMoneyCommission; + /** + * Доля комиссии за продажу по категории. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + commission_ratio?: string; + /** + * + * @type {MoneyMoneySaleAmount} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + sale_amount?: MoneyMoneySaleAmount; + /** + * + * @type {MoneyMoneySaleCommission} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + sale_commission?: MoneyMoneySaleCommission; + /** + * + * @type {MoneyMoneySalePrice} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + sale_price?: MoneyMoneySalePrice; + /** + * + * @type {MoneyMoneySellerPrice} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + seller_price?: MoneyMoneySellerPrice | null; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.js new file mode 100644 index 0000000..080f300 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyBonusFromJSON, MoneyMoneyBonusToJSON, } from './MoneyMoneyBonus'; +import { MoneyMoneyCommissionFromJSON, MoneyMoneyCommissionToJSON, } from './MoneyMoneyCommission'; +import { MoneyMoneySaleCommissionFromJSON, MoneyMoneySaleCommissionToJSON, } from './MoneyMoneySaleCommission'; +import { MoneyMoneySaleAmountFromJSON, MoneyMoneySaleAmountToJSON, } from './MoneyMoneySaleAmount'; +import { MoneyMoneySalePriceFromJSON, MoneyMoneySalePriceToJSON, } from './MoneyMoneySalePrice'; +import { MoneyMoneySellerPriceFromJSON, MoneyMoneySellerPriceToJSON, } from './MoneyMoneySellerPrice'; +import { MoneyMoneyCoinvestmentFromJSON, MoneyMoneyCoinvestmentToJSON, } from './MoneyMoneyCoinvestment'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bonus': json['bonus'] == null ? undefined : MoneyMoneyBonusFromJSON(json['bonus']), + 'coinvestment': json['coinvestment'] == null ? undefined : MoneyMoneyCoinvestmentFromJSON(json['coinvestment']), + 'commission': json['commission'] == null ? undefined : MoneyMoneyCommissionFromJSON(json['commission']), + 'commission_ratio': json['commission_ratio'] == null ? undefined : json['commission_ratio'], + 'sale_amount': json['sale_amount'] == null ? undefined : MoneyMoneySaleAmountFromJSON(json['sale_amount']), + 'sale_commission': json['sale_commission'] == null ? undefined : MoneyMoneySaleCommissionFromJSON(json['sale_commission']), + 'sale_price': json['sale_price'] == null ? undefined : MoneyMoneySalePriceFromJSON(json['sale_price']), + 'seller_price': json['seller_price'] == null ? undefined : MoneyMoneySellerPriceFromJSON(json['seller_price']), + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'bonus': MoneyMoneyBonusToJSON(value['bonus']), + 'coinvestment': MoneyMoneyCoinvestmentToJSON(value['coinvestment']), + 'commission': MoneyMoneyCommissionToJSON(value['commission']), + 'commission_ratio': value['commission_ratio'], + 'sale_amount': MoneyMoneySaleAmountToJSON(value['sale_amount']), + 'sale_commission': MoneyMoneySaleCommissionToJSON(value['sale_commission']), + 'sale_price': MoneyMoneySalePriceToJSON(value['sale_price']), + 'seller_price': MoneyMoneySellerPriceToJSON(value['seller_price']), + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.d.ts new file mode 100644 index 0000000..93f2b40 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyTotalAccrued } from './MoneyMoneyTotalAccrued'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService'; +/** + * Начисления по доставке. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery { + /** + * Начисления по услугам доставки. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery + */ + services?: Array; + /** + * + * @type {MoneyMoneyTotalAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery + */ + total_accrued?: MoneyMoneyTotalAccrued; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.js new file mode 100644 index 0000000..ed69cb7 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyTotalAccruedFromJSON, MoneyMoneyTotalAccruedToJSON, } from './MoneyMoneyTotalAccrued'; +import { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON, } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'services': json['services'] == null ? undefined : (json['services'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON)), + 'total_accrued': json['total_accrued'] == null ? undefined : MoneyMoneyTotalAccruedFromJSON(json['total_accrued']), + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON(value) { + if (value == null) { + return value; + } + return { + 'services': value['services'] == null ? undefined : (value['services'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON)), + 'total_accrued': MoneyMoneyTotalAccruedToJSON(value['total_accrued']), + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.d.ts new file mode 100644 index 0000000..94200d8 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService { + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService + */ + accrued?: MoneyMoneyAccrued; + /** + * Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.js b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.js new file mode 100644 index 0000000..e9ccda1 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyAccruedFromJSON, MoneyMoneyAccruedToJSON, } from './MoneyMoneyAccrued'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService(value) { + return true; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : MoneyMoneyAccruedFromJSON(json['accrued']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +export function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': MoneyMoneyAccruedToJSON(value['accrued']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualPostingsRequest.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsRequest.d.ts new file mode 100644 index 0000000..27ca001 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualPostingsRequest + */ +export interface FinanceV1GetFinanceAccrualPostingsRequest { + /** + * Номера отправлений. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualPostingsRequest + */ + posting_numbers: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsRequest interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualPostingsRequest(value: object): value is FinanceV1GetFinanceAccrualPostingsRequest; +export declare function FinanceV1GetFinanceAccrualPostingsRequestFromJSON(json: any): FinanceV1GetFinanceAccrualPostingsRequest; +export declare function FinanceV1GetFinanceAccrualPostingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualPostingsRequest; +export declare function FinanceV1GetFinanceAccrualPostingsRequestToJSON(value?: FinanceV1GetFinanceAccrualPostingsRequest | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualPostingsRequest.js b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsRequest.js new file mode 100644 index 0000000..518dae1 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsRequest interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualPostingsRequest(value) { + if (!('posting_numbers' in value) || value['posting_numbers'] === undefined) + return false; + return true; +} +export function FinanceV1GetFinanceAccrualPostingsRequestFromJSON(json) { + return FinanceV1GetFinanceAccrualPostingsRequestFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualPostingsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_numbers': json['posting_numbers'], + }; +} +export function FinanceV1GetFinanceAccrualPostingsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponse.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponse.d.ts new file mode 100644 index 0000000..f187d18 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals } from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualPostingsResponse + */ +export interface FinanceV1GetFinanceAccrualPostingsResponse { + /** + * Список начислений по отправлениям. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualPostingsResponse + */ + posting_accruals?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponse interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualPostingsResponse(value: object): value is FinanceV1GetFinanceAccrualPostingsResponse; +export declare function FinanceV1GetFinanceAccrualPostingsResponseFromJSON(json: any): FinanceV1GetFinanceAccrualPostingsResponse; +export declare function FinanceV1GetFinanceAccrualPostingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualPostingsResponse; +export declare function FinanceV1GetFinanceAccrualPostingsResponseToJSON(value?: FinanceV1GetFinanceAccrualPostingsResponse | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponse.js b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponse.js new file mode 100644 index 0000000..d88f3a8 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON, FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON, } from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponse interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualPostingsResponse(value) { + return true; +} +export function FinanceV1GetFinanceAccrualPostingsResponseFromJSON(json) { + return FinanceV1GetFinanceAccrualPostingsResponseFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualPostingsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_accruals': json['posting_accruals'] == null ? undefined : (json['posting_accruals'].map(FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON)), + }; +} +export function FinanceV1GetFinanceAccrualPostingsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_accruals': value['posting_accruals'] == null ? undefined : (value['posting_accruals'].map(FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON)), + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.d.ts new file mode 100644 index 0000000..9aed1f2 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual } from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals + */ +export interface FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals { + /** + * Список начислений. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals + */ + accruals?: Array; + /** + * Номер отправления. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals + */ + posting_number?: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccruals(value: object): value is FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON(json: any): FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON(value?: FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.js b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.js new file mode 100644 index 0000000..c3c5933 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON, FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON, } from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccruals(value) { + return true; +} +export function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON(json) { + return FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accruals': json['accruals'] == null ? undefined : (json['accruals'].map(FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON)), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +export function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON(value) { + if (value == null) { + return value; + } + return { + 'accruals': value['accruals'] == null ? undefined : (value['accruals'].map(FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON)), + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.d.ts new file mode 100644 index 0000000..60ed72a --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySellerPrice } from './MoneyMoneySellerPrice'; +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ +export interface FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual { + /** + * Дата начисления. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + accrual_date?: string; + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + accrued?: MoneyMoneyAccrued; + /** + * Количество товара. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + quantity?: number | null; + /** + * + * @type {MoneyMoneySellerPrice} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + seller_price?: MoneyMoneySellerPrice | null; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + sku?: number | null; + /** + * Идентификатор типа начисления. Можно получить методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual(value: object): value is FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON(json: any): FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON(value?: FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.js b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.js new file mode 100644 index 0000000..a4a27d1 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneySellerPriceFromJSON, MoneyMoneySellerPriceToJSON, } from './MoneyMoneySellerPrice'; +import { MoneyMoneyAccruedFromJSON, MoneyMoneyAccruedToJSON, } from './MoneyMoneyAccrued'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual(value) { + return true; +} +export function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON(json) { + return FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrual_date': json['accrual_date'] == null ? undefined : json['accrual_date'], + 'accrued': json['accrued'] == null ? undefined : MoneyMoneyAccruedFromJSON(json['accrued']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'seller_price': json['seller_price'] == null ? undefined : MoneyMoneySellerPriceFromJSON(json['seller_price']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +export function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrual_date': value['accrual_date'], + 'accrued': MoneyMoneyAccruedToJSON(value['accrued']), + 'quantity': value['quantity'], + 'seller_price': MoneyMoneySellerPriceToJSON(value['seller_price']), + 'sku': value['sku'], + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponse.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponse.d.ts new file mode 100644 index 0000000..896bd30 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualTypesResponseAccrualType } from './FinanceV1GetFinanceAccrualTypesResponseAccrualType'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualTypesResponse + */ +export interface FinanceV1GetFinanceAccrualTypesResponse { + /** + * Информация о начислениях. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualTypesResponse + */ + accrual_types?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualTypesResponse interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualTypesResponse(value: object): value is FinanceV1GetFinanceAccrualTypesResponse; +export declare function FinanceV1GetFinanceAccrualTypesResponseFromJSON(json: any): FinanceV1GetFinanceAccrualTypesResponse; +export declare function FinanceV1GetFinanceAccrualTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualTypesResponse; +export declare function FinanceV1GetFinanceAccrualTypesResponseToJSON(value?: FinanceV1GetFinanceAccrualTypesResponse | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponse.js b/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponse.js new file mode 100644 index 0000000..d1050a0 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON, FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON, } from './FinanceV1GetFinanceAccrualTypesResponseAccrualType'; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualTypesResponse interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualTypesResponse(value) { + return true; +} +export function FinanceV1GetFinanceAccrualTypesResponseFromJSON(json) { + return FinanceV1GetFinanceAccrualTypesResponseFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrual_types': json['accrual_types'] == null ? undefined : (json['accrual_types'].map(FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON)), + }; +} +export function FinanceV1GetFinanceAccrualTypesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrual_types': value['accrual_types'] == null ? undefined : (value['accrual_types'].map(FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON)), + }; +} diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.d.ts b/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.d.ts new file mode 100644 index 0000000..f42a3cd --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о начислении. + * @export + * @interface FinanceV1GetFinanceAccrualTypesResponseAccrualType + */ +export interface FinanceV1GetFinanceAccrualTypesResponseAccrualType { + /** + * Описание начисления. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualTypesResponseAccrualType + */ + description?: string; + /** + * Идентификатор начисления. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualTypesResponseAccrualType + */ + id?: number; + /** + * Название начисления. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualTypesResponseAccrualType + */ + name?: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualTypesResponseAccrualType interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualTypesResponseAccrualType(value: object): value is FinanceV1GetFinanceAccrualTypesResponseAccrualType; +export declare function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON(json: any): FinanceV1GetFinanceAccrualTypesResponseAccrualType; +export declare function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualTypesResponseAccrualType; +export declare function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON(value?: FinanceV1GetFinanceAccrualTypesResponseAccrualType | null): any; diff --git a/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.js b/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.js new file mode 100644 index 0000000..7ea9986 --- /dev/null +++ b/dist/esm/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualTypesResponseAccrualType interface. + */ +export function instanceOfFinanceV1GetFinanceAccrualTypesResponseAccrualType(value) { + return true; +} +export function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON(json) { + return FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSONTyped(json, false); +} +export function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/Financev3FinanceTransactionListV3Request.d.ts b/dist/esm/models/Financev3FinanceTransactionListV3Request.d.ts new file mode 100644 index 0000000..fb4adac --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionListV3Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceTransactionListV3RequestFilter } from './FinanceTransactionListV3RequestFilter'; +/** + * + * @export + * @interface Financev3FinanceTransactionListV3Request + */ +export interface Financev3FinanceTransactionListV3Request { + /** + * + * @type {FinanceTransactionListV3RequestFilter} + * @memberof Financev3FinanceTransactionListV3Request + */ + filter?: FinanceTransactionListV3RequestFilter | null; + /** + * Номер страницы, возвращаемой в запросе. + * @type {number} + * @memberof Financev3FinanceTransactionListV3Request + */ + page: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof Financev3FinanceTransactionListV3Request + */ + page_size: number; +} +/** + * Check if a given object implements the Financev3FinanceTransactionListV3Request interface. + */ +export declare function instanceOfFinancev3FinanceTransactionListV3Request(value: object): value is Financev3FinanceTransactionListV3Request; +export declare function Financev3FinanceTransactionListV3RequestFromJSON(json: any): Financev3FinanceTransactionListV3Request; +export declare function Financev3FinanceTransactionListV3RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionListV3Request; +export declare function Financev3FinanceTransactionListV3RequestToJSON(value?: Financev3FinanceTransactionListV3Request | null): any; diff --git a/dist/esm/models/Financev3FinanceTransactionListV3Request.js b/dist/esm/models/Financev3FinanceTransactionListV3Request.js new file mode 100644 index 0000000..f09d32a --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionListV3Request.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceTransactionListV3RequestFilterFromJSON, FinanceTransactionListV3RequestFilterToJSON, } from './FinanceTransactionListV3RequestFilter'; +/** + * Check if a given object implements the Financev3FinanceTransactionListV3Request interface. + */ +export function instanceOfFinancev3FinanceTransactionListV3Request(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +export function Financev3FinanceTransactionListV3RequestFromJSON(json) { + return Financev3FinanceTransactionListV3RequestFromJSONTyped(json, false); +} +export function Financev3FinanceTransactionListV3RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : FinanceTransactionListV3RequestFilterFromJSON(json['filter']), + 'page': json['page'], + 'page_size': json['page_size'], + }; +} +export function Financev3FinanceTransactionListV3RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': FinanceTransactionListV3RequestFilterToJSON(value['filter']), + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/esm/models/Financev3FinanceTransactionListV3Response.d.ts b/dist/esm/models/Financev3FinanceTransactionListV3Response.d.ts new file mode 100644 index 0000000..96a2342 --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionListV3Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Financev3FinanceTransactionListV3ResponseResult } from './Financev3FinanceTransactionListV3ResponseResult'; +/** + * + * @export + * @interface Financev3FinanceTransactionListV3Response + */ +export interface Financev3FinanceTransactionListV3Response { + /** + * + * @type {Financev3FinanceTransactionListV3ResponseResult} + * @memberof Financev3FinanceTransactionListV3Response + */ + result?: Financev3FinanceTransactionListV3ResponseResult; +} +/** + * Check if a given object implements the Financev3FinanceTransactionListV3Response interface. + */ +export declare function instanceOfFinancev3FinanceTransactionListV3Response(value: object): value is Financev3FinanceTransactionListV3Response; +export declare function Financev3FinanceTransactionListV3ResponseFromJSON(json: any): Financev3FinanceTransactionListV3Response; +export declare function Financev3FinanceTransactionListV3ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionListV3Response; +export declare function Financev3FinanceTransactionListV3ResponseToJSON(value?: Financev3FinanceTransactionListV3Response | null): any; diff --git a/dist/esm/models/Financev3FinanceTransactionListV3Response.js b/dist/esm/models/Financev3FinanceTransactionListV3Response.js new file mode 100644 index 0000000..cfe363c --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionListV3Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Financev3FinanceTransactionListV3ResponseResultFromJSON, Financev3FinanceTransactionListV3ResponseResultToJSON, } from './Financev3FinanceTransactionListV3ResponseResult'; +/** + * Check if a given object implements the Financev3FinanceTransactionListV3Response interface. + */ +export function instanceOfFinancev3FinanceTransactionListV3Response(value) { + return true; +} +export function Financev3FinanceTransactionListV3ResponseFromJSON(json) { + return Financev3FinanceTransactionListV3ResponseFromJSONTyped(json, false); +} +export function Financev3FinanceTransactionListV3ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : Financev3FinanceTransactionListV3ResponseResultFromJSON(json['result']), + }; +} +export function Financev3FinanceTransactionListV3ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': Financev3FinanceTransactionListV3ResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/Financev3FinanceTransactionListV3ResponseResult.d.ts b/dist/esm/models/Financev3FinanceTransactionListV3ResponseResult.d.ts new file mode 100644 index 0000000..60e9f22 --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionListV3ResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceTransactionListV3ResponseOperation } from './FinanceTransactionListV3ResponseOperation'; +/** + * Результаты запроса. + * @export + * @interface Financev3FinanceTransactionListV3ResponseResult + */ +export interface Financev3FinanceTransactionListV3ResponseResult { + /** + * Информация об операциях. + * @type {Array} + * @memberof Financev3FinanceTransactionListV3ResponseResult + */ + operations?: Array; + /** + * Количество страниц. Если 0, страниц больше нет. + * @type {number} + * @memberof Financev3FinanceTransactionListV3ResponseResult + */ + page_count?: number; + /** + * Количество транзакций на всех страницах. Если 0, транзакций больше нет. + * @type {number} + * @memberof Financev3FinanceTransactionListV3ResponseResult + */ + row_count?: number; +} +/** + * Check if a given object implements the Financev3FinanceTransactionListV3ResponseResult interface. + */ +export declare function instanceOfFinancev3FinanceTransactionListV3ResponseResult(value: object): value is Financev3FinanceTransactionListV3ResponseResult; +export declare function Financev3FinanceTransactionListV3ResponseResultFromJSON(json: any): Financev3FinanceTransactionListV3ResponseResult; +export declare function Financev3FinanceTransactionListV3ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionListV3ResponseResult; +export declare function Financev3FinanceTransactionListV3ResponseResultToJSON(value?: Financev3FinanceTransactionListV3ResponseResult | null): any; diff --git a/dist/esm/models/Financev3FinanceTransactionListV3ResponseResult.js b/dist/esm/models/Financev3FinanceTransactionListV3ResponseResult.js new file mode 100644 index 0000000..fead413 --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionListV3ResponseResult.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceTransactionListV3ResponseOperationFromJSON, FinanceTransactionListV3ResponseOperationToJSON, } from './FinanceTransactionListV3ResponseOperation'; +/** + * Check if a given object implements the Financev3FinanceTransactionListV3ResponseResult interface. + */ +export function instanceOfFinancev3FinanceTransactionListV3ResponseResult(value) { + return true; +} +export function Financev3FinanceTransactionListV3ResponseResultFromJSON(json) { + return Financev3FinanceTransactionListV3ResponseResultFromJSONTyped(json, false); +} +export function Financev3FinanceTransactionListV3ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operations': json['operations'] == null ? undefined : (json['operations'].map(FinanceTransactionListV3ResponseOperationFromJSON)), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + 'row_count': json['row_count'] == null ? undefined : json['row_count'], + }; +} +export function Financev3FinanceTransactionListV3ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'operations': value['operations'] == null ? undefined : (value['operations'].map(FinanceTransactionListV3ResponseOperationToJSON)), + 'page_count': value['page_count'], + 'row_count': value['row_count'], + }; +} diff --git a/dist/esm/models/Financev3FinanceTransactionTotalsV3Request.d.ts b/dist/esm/models/Financev3FinanceTransactionTotalsV3Request.d.ts new file mode 100644 index 0000000..4b9becd --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionTotalsV3Request.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceTransactionTotalsV3RequestDate } from './FinanceTransactionTotalsV3RequestDate'; +/** + * + * @export + * @interface Financev3FinanceTransactionTotalsV3Request + */ +export interface Financev3FinanceTransactionTotalsV3Request { + /** + * + * @type {FinanceTransactionTotalsV3RequestDate} + * @memberof Financev3FinanceTransactionTotalsV3Request + */ + date?: FinanceTransactionTotalsV3RequestDate; + /** + * Номер отправления. + * @type {string} + * @memberof Financev3FinanceTransactionTotalsV3Request + */ + posting_number?: string; + /** + * Тип операции: + * - `all` — все, + * - `orders` — заказы, + * - `returns` — возвраты и отмены, + * - `services` — сервисные сборы, + * - `compensation` — компенсация, + * - `transferDelivery` — стоимость доставки, + * - `other` — прочее. + * + * @type {string} + * @memberof Financev3FinanceTransactionTotalsV3Request + */ + transaction_type?: string; +} +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3Request interface. + */ +export declare function instanceOfFinancev3FinanceTransactionTotalsV3Request(value: object): value is Financev3FinanceTransactionTotalsV3Request; +export declare function Financev3FinanceTransactionTotalsV3RequestFromJSON(json: any): Financev3FinanceTransactionTotalsV3Request; +export declare function Financev3FinanceTransactionTotalsV3RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionTotalsV3Request; +export declare function Financev3FinanceTransactionTotalsV3RequestToJSON(value?: Financev3FinanceTransactionTotalsV3Request | null): any; diff --git a/dist/esm/models/Financev3FinanceTransactionTotalsV3Request.js b/dist/esm/models/Financev3FinanceTransactionTotalsV3Request.js new file mode 100644 index 0000000..043c8e5 --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionTotalsV3Request.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceTransactionTotalsV3RequestDateFromJSON, FinanceTransactionTotalsV3RequestDateToJSON, } from './FinanceTransactionTotalsV3RequestDate'; +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3Request interface. + */ +export function instanceOfFinancev3FinanceTransactionTotalsV3Request(value) { + return true; +} +export function Financev3FinanceTransactionTotalsV3RequestFromJSON(json) { + return Financev3FinanceTransactionTotalsV3RequestFromJSONTyped(json, false); +} +export function Financev3FinanceTransactionTotalsV3RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : FinanceTransactionTotalsV3RequestDateFromJSON(json['date']), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'transaction_type': json['transaction_type'] == null ? undefined : json['transaction_type'], + }; +} +export function Financev3FinanceTransactionTotalsV3RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': FinanceTransactionTotalsV3RequestDateToJSON(value['date']), + 'posting_number': value['posting_number'], + 'transaction_type': value['transaction_type'], + }; +} diff --git a/dist/esm/models/Financev3FinanceTransactionTotalsV3Response.d.ts b/dist/esm/models/Financev3FinanceTransactionTotalsV3Response.d.ts new file mode 100644 index 0000000..2cc5869 --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionTotalsV3Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Financev3FinanceTransactionTotalsV3ResponseResult } from './Financev3FinanceTransactionTotalsV3ResponseResult'; +/** + * + * @export + * @interface Financev3FinanceTransactionTotalsV3Response + */ +export interface Financev3FinanceTransactionTotalsV3Response { + /** + * + * @type {Financev3FinanceTransactionTotalsV3ResponseResult} + * @memberof Financev3FinanceTransactionTotalsV3Response + */ + result?: Financev3FinanceTransactionTotalsV3ResponseResult; +} +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3Response interface. + */ +export declare function instanceOfFinancev3FinanceTransactionTotalsV3Response(value: object): value is Financev3FinanceTransactionTotalsV3Response; +export declare function Financev3FinanceTransactionTotalsV3ResponseFromJSON(json: any): Financev3FinanceTransactionTotalsV3Response; +export declare function Financev3FinanceTransactionTotalsV3ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionTotalsV3Response; +export declare function Financev3FinanceTransactionTotalsV3ResponseToJSON(value?: Financev3FinanceTransactionTotalsV3Response | null): any; diff --git a/dist/esm/models/Financev3FinanceTransactionTotalsV3Response.js b/dist/esm/models/Financev3FinanceTransactionTotalsV3Response.js new file mode 100644 index 0000000..3e7a784 --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionTotalsV3Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Financev3FinanceTransactionTotalsV3ResponseResultFromJSON, Financev3FinanceTransactionTotalsV3ResponseResultToJSON, } from './Financev3FinanceTransactionTotalsV3ResponseResult'; +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3Response interface. + */ +export function instanceOfFinancev3FinanceTransactionTotalsV3Response(value) { + return true; +} +export function Financev3FinanceTransactionTotalsV3ResponseFromJSON(json) { + return Financev3FinanceTransactionTotalsV3ResponseFromJSONTyped(json, false); +} +export function Financev3FinanceTransactionTotalsV3ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : Financev3FinanceTransactionTotalsV3ResponseResultFromJSON(json['result']), + }; +} +export function Financev3FinanceTransactionTotalsV3ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': Financev3FinanceTransactionTotalsV3ResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/Financev3FinanceTransactionTotalsV3ResponseResult.d.ts b/dist/esm/models/Financev3FinanceTransactionTotalsV3ResponseResult.d.ts new file mode 100644 index 0000000..98a9b31 --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionTotalsV3ResponseResult.d.ts @@ -0,0 +1,83 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результаты запроса. + * @export + * @interface Financev3FinanceTransactionTotalsV3ResponseResult + */ +export interface Financev3FinanceTransactionTotalsV3ResponseResult { + /** + * Общая стоимость товаров и возвратов в заданный период. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + accruals_for_sale?: number; + /** + * Компенсации. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + compensation_amount?: number; + /** + * Начисления за доставку и возвраты при работе по схеме «Доставка по выбору продавца». + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + money_transfer?: number; + /** + * Прочие начисления. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + others_amount?: number; + /** + * Стоимость услуг обработки отправлений, сборки заказов, магистрали и последней мили, а также доставки до введения новых комиссий и тарифов с 1 февраля 2021 года. + * + * Магистраль — доставка товаров между кластерами. + * + * Последняя миля — доставка товаров покупателю в пункт выдачи заказов, постамат или курьером. + * + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + processing_and_delivery?: number; + /** + * Стоимость обратной магистрали, обработки возвратов, отмен и невыкупа товара, а также возвратов до введения новых комиссий и тарифов с 1 февраля 2021 года. + * + * Магистраль — доставка товаров между кластерами. + * + * Последняя миля — доставка товаров покупателю в пункт выдачи заказов, постамат или курьером. + * + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + refunds_and_cancellations?: number; + /** + * Сумма комиссии, которая была удержана при продаже товара и возвращена при его возврате. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + sale_commission?: number; + /** + * Стоимость дополнительных услуг, не связанных напрямую с доставками и возвратами товаров. Например, продвижения или размещения товаров. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + services_amount?: number; +} +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3ResponseResult interface. + */ +export declare function instanceOfFinancev3FinanceTransactionTotalsV3ResponseResult(value: object): value is Financev3FinanceTransactionTotalsV3ResponseResult; +export declare function Financev3FinanceTransactionTotalsV3ResponseResultFromJSON(json: any): Financev3FinanceTransactionTotalsV3ResponseResult; +export declare function Financev3FinanceTransactionTotalsV3ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionTotalsV3ResponseResult; +export declare function Financev3FinanceTransactionTotalsV3ResponseResultToJSON(value?: Financev3FinanceTransactionTotalsV3ResponseResult | null): any; diff --git a/dist/esm/models/Financev3FinanceTransactionTotalsV3ResponseResult.js b/dist/esm/models/Financev3FinanceTransactionTotalsV3ResponseResult.js new file mode 100644 index 0000000..0beff4f --- /dev/null +++ b/dist/esm/models/Financev3FinanceTransactionTotalsV3ResponseResult.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3ResponseResult interface. + */ +export function instanceOfFinancev3FinanceTransactionTotalsV3ResponseResult(value) { + return true; +} +export function Financev3FinanceTransactionTotalsV3ResponseResultFromJSON(json) { + return Financev3FinanceTransactionTotalsV3ResponseResultFromJSONTyped(json, false); +} +export function Financev3FinanceTransactionTotalsV3ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accruals_for_sale': json['accruals_for_sale'] == null ? undefined : json['accruals_for_sale'], + 'compensation_amount': json['compensation_amount'] == null ? undefined : json['compensation_amount'], + 'money_transfer': json['money_transfer'] == null ? undefined : json['money_transfer'], + 'others_amount': json['others_amount'] == null ? undefined : json['others_amount'], + 'processing_and_delivery': json['processing_and_delivery'] == null ? undefined : json['processing_and_delivery'], + 'refunds_and_cancellations': json['refunds_and_cancellations'] == null ? undefined : json['refunds_and_cancellations'], + 'sale_commission': json['sale_commission'] == null ? undefined : json['sale_commission'], + 'services_amount': json['services_amount'] == null ? undefined : json['services_amount'], + }; +} +export function Financev3FinanceTransactionTotalsV3ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'accruals_for_sale': value['accruals_for_sale'], + 'compensation_amount': value['compensation_amount'], + 'money_transfer': value['money_transfer'], + 'others_amount': value['others_amount'], + 'processing_and_delivery': value['processing_and_delivery'], + 'refunds_and_cancellations': value['refunds_and_cancellations'], + 'sale_commission': value['sale_commission'], + 'services_amount': value['services_amount'], + }; +} diff --git a/dist/esm/models/Financev3Period.d.ts b/dist/esm/models/Financev3Period.d.ts new file mode 100644 index 0000000..70fd865 --- /dev/null +++ b/dist/esm/models/Financev3Period.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период формирования отчёта. + * @export + * @interface Financev3Period + */ +export interface Financev3Period { + /** + * Дата, с ĸоторой рассчитывается отчёт. + * @type {string} + * @memberof Financev3Period + */ + from: string; + /** + * Дата, по ĸоторую рассчитывается отчёт. + * @type {string} + * @memberof Financev3Period + */ + to: string; +} +/** + * Check if a given object implements the Financev3Period interface. + */ +export declare function instanceOfFinancev3Period(value: object): value is Financev3Period; +export declare function Financev3PeriodFromJSON(json: any): Financev3Period; +export declare function Financev3PeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3Period; +export declare function Financev3PeriodToJSON(value?: Financev3Period | null): any; diff --git a/dist/esm/models/Financev3Period.js b/dist/esm/models/Financev3Period.js new file mode 100644 index 0000000..ef89447 --- /dev/null +++ b/dist/esm/models/Financev3Period.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Financev3Period interface. + */ +export function instanceOfFinancev3Period(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function Financev3PeriodFromJSON(json) { + return Financev3PeriodFromJSONTyped(json, false); +} +export function Financev3PeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +export function Financev3PeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/FirstMileTypeEnum.d.ts b/dist/esm/models/FirstMileTypeEnum.d.ts new file mode 100644 index 0000000..572043a --- /dev/null +++ b/dist/esm/models/FirstMileTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили — `PICK_UP` или `DROP_OFF`. + * @export + */ +export declare const FirstMileTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PICK_UP: "PICK_UP"; + readonly DROP_OFF: "DROP_OFF"; +}; +export type FirstMileTypeEnum = typeof FirstMileTypeEnum[keyof typeof FirstMileTypeEnum]; +export declare function instanceOfFirstMileTypeEnum(value: any): boolean; +export declare function FirstMileTypeEnumFromJSON(json: any): FirstMileTypeEnum; +export declare function FirstMileTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstMileTypeEnum; +export declare function FirstMileTypeEnumToJSON(value?: FirstMileTypeEnum | null): any; diff --git a/dist/esm/models/FirstMileTypeEnum.js b/dist/esm/models/FirstMileTypeEnum.js new file mode 100644 index 0000000..c96fbef --- /dev/null +++ b/dist/esm/models/FirstMileTypeEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили — `PICK_UP` или `DROP_OFF`. + * @export + */ +export const FirstMileTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PICK_UP: 'PICK_UP', + DROP_OFF: 'DROP_OFF' +}; +export function instanceOfFirstMileTypeEnum(value) { + for (const key in FirstMileTypeEnum) { + if (Object.prototype.hasOwnProperty.call(FirstMileTypeEnum, key)) { + if (FirstMileTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function FirstMileTypeEnumFromJSON(json) { + return FirstMileTypeEnumFromJSONTyped(json, false); +} +export function FirstMileTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function FirstMileTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/GetCarriageAvailableListResponseResult.d.ts b/dist/esm/models/GetCarriageAvailableListResponseResult.d.ts new file mode 100644 index 0000000..5382367 --- /dev/null +++ b/dist/esm/models/GetCarriageAvailableListResponseResult.d.ts @@ -0,0 +1,140 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultError } from './ResultError'; +/** + * + * @export + * @interface GetCarriageAvailableListResponseResult + */ +export interface GetCarriageAvailableListResponseResult { + /** + * Идентификатор перевозки (также номер задания на формирование документов). + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + carriage_id?: number; + /** + * Количество отправлений в перевозке. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + carriage_postings_count?: number; + /** + * Статус перевозки для запрашиваемого метода доставки и даты отгрузки. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + carriage_status?: string; + /** + * Дата и время, до которых нужно собрать отправление. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + cutoff_at?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + delivery_method_id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + delivery_method_name?: string; + /** + * Список ошибок. + * @type {Array} + * @memberof GetCarriageAvailableListResponseResult + */ + errors?: Array; + /** + * Тип первой мили. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + first_mile_type?: string; + /** + * Признак доверительной приёмки. `true`, если доверительная приёмка включена на складе. + * @type {boolean} + * @memberof GetCarriageAvailableListResponseResult + */ + has_entrusted_acceptance?: boolean; + /** + * Количество отправлений, которые нужно собрать. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + mandatory_postings_count?: number; + /** + * Количество собранных отправлений. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + mandatory_packaged_count?: number; + /** + * Рекомендуемое местное время отгрузки на пункт приёма заказов. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + recommended_time_local?: string; + /** + * Смещение часового пояса рекомендуемого времени отгрузки от UTC-0 в минутах. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + recommended_time_utc_offset_in_minutes?: number; + /** + * Ссылка на иконку службы доставки. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + tpl_provider_icon_url?: string; + /** + * Название службы доставки. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + tpl_provider_name?: string; + /** + * Город склада. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + warehouse_city?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + warehouse_name?: string; + /** + * Часовой пояс, в котором находится склад. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + warehouse_timezone?: string; +} +/** + * Check if a given object implements the GetCarriageAvailableListResponseResult interface. + */ +export declare function instanceOfGetCarriageAvailableListResponseResult(value: object): value is GetCarriageAvailableListResponseResult; +export declare function GetCarriageAvailableListResponseResultFromJSON(json: any): GetCarriageAvailableListResponseResult; +export declare function GetCarriageAvailableListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCarriageAvailableListResponseResult; +export declare function GetCarriageAvailableListResponseResultToJSON(value?: GetCarriageAvailableListResponseResult | null): any; diff --git a/dist/esm/models/GetCarriageAvailableListResponseResult.js b/dist/esm/models/GetCarriageAvailableListResponseResult.js new file mode 100644 index 0000000..aeb0c30 --- /dev/null +++ b/dist/esm/models/GetCarriageAvailableListResponseResult.js @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResultErrorFromJSON, ResultErrorToJSON, } from './ResultError'; +/** + * Check if a given object implements the GetCarriageAvailableListResponseResult interface. + */ +export function instanceOfGetCarriageAvailableListResponseResult(value) { + return true; +} +export function GetCarriageAvailableListResponseResultFromJSON(json) { + return GetCarriageAvailableListResponseResultFromJSONTyped(json, false); +} +export function GetCarriageAvailableListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'] == null ? undefined : json['carriage_id'], + 'carriage_postings_count': json['carriage_postings_count'] == null ? undefined : json['carriage_postings_count'], + 'carriage_status': json['carriage_status'] == null ? undefined : json['carriage_status'], + 'cutoff_at': json['cutoff_at'] == null ? undefined : json['cutoff_at'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'delivery_method_name': json['delivery_method_name'] == null ? undefined : json['delivery_method_name'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(ResultErrorFromJSON)), + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'mandatory_postings_count': json['mandatory_postings_count'] == null ? undefined : json['mandatory_postings_count'], + 'mandatory_packaged_count': json['mandatory_packaged_count'] == null ? undefined : json['mandatory_packaged_count'], + 'recommended_time_local': json['recommended_time_local'] == null ? undefined : json['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': json['recommended_time_utc_offset_in_minutes'] == null ? undefined : json['recommended_time_utc_offset_in_minutes'], + 'tpl_provider_icon_url': json['tpl_provider_icon_url'] == null ? undefined : json['tpl_provider_icon_url'], + 'tpl_provider_name': json['tpl_provider_name'] == null ? undefined : json['tpl_provider_name'], + 'warehouse_city': json['warehouse_city'] == null ? undefined : json['warehouse_city'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'warehouse_timezone': json['warehouse_timezone'] == null ? undefined : json['warehouse_timezone'], + }; +} +export function GetCarriageAvailableListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'carriage_postings_count': value['carriage_postings_count'], + 'carriage_status': value['carriage_status'], + 'cutoff_at': value['cutoff_at'], + 'delivery_method_id': value['delivery_method_id'], + 'delivery_method_name': value['delivery_method_name'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(ResultErrorToJSON)), + 'first_mile_type': value['first_mile_type'], + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'mandatory_postings_count': value['mandatory_postings_count'], + 'mandatory_packaged_count': value['mandatory_packaged_count'], + 'recommended_time_local': value['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': value['recommended_time_utc_offset_in_minutes'], + 'tpl_provider_icon_url': value['tpl_provider_icon_url'], + 'tpl_provider_name': value['tpl_provider_name'], + 'warehouse_city': value['warehouse_city'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'warehouse_timezone': value['warehouse_timezone'], + }; +} diff --git a/dist/esm/models/GetCompetitorsResponseCompetitorInfo.d.ts b/dist/esm/models/GetCompetitorsResponseCompetitorInfo.d.ts new file mode 100644 index 0000000..adb47aa --- /dev/null +++ b/dist/esm/models/GetCompetitorsResponseCompetitorInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetCompetitorsResponseCompetitorInfo + */ +export interface GetCompetitorsResponseCompetitorInfo { + /** + * Название конкурента. + * @type {string} + * @memberof GetCompetitorsResponseCompetitorInfo + */ + name?: string; + /** + * Идентификатор конкурента. + * @type {number} + * @memberof GetCompetitorsResponseCompetitorInfo + */ + id?: number; +} +/** + * Check if a given object implements the GetCompetitorsResponseCompetitorInfo interface. + */ +export declare function instanceOfGetCompetitorsResponseCompetitorInfo(value: object): value is GetCompetitorsResponseCompetitorInfo; +export declare function GetCompetitorsResponseCompetitorInfoFromJSON(json: any): GetCompetitorsResponseCompetitorInfo; +export declare function GetCompetitorsResponseCompetitorInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCompetitorsResponseCompetitorInfo; +export declare function GetCompetitorsResponseCompetitorInfoToJSON(value?: GetCompetitorsResponseCompetitorInfo | null): any; diff --git a/dist/esm/models/GetCompetitorsResponseCompetitorInfo.js b/dist/esm/models/GetCompetitorsResponseCompetitorInfo.js new file mode 100644 index 0000000..a6f8ed8 --- /dev/null +++ b/dist/esm/models/GetCompetitorsResponseCompetitorInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetCompetitorsResponseCompetitorInfo interface. + */ +export function instanceOfGetCompetitorsResponseCompetitorInfo(value) { + return true; +} +export function GetCompetitorsResponseCompetitorInfoFromJSON(json) { + return GetCompetitorsResponseCompetitorInfoFromJSONTyped(json, false); +} +export function GetCompetitorsResponseCompetitorInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'id': json['id'] == null ? undefined : json['id'], + }; +} +export function GetCompetitorsResponseCompetitorInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'id': value['id'], + }; +} diff --git a/dist/esm/models/GetConditionalCancellationListV2RequestFilters.d.ts b/dist/esm/models/GetConditionalCancellationListV2RequestFilters.d.ts new file mode 100644 index 0000000..35ba29f --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2RequestFilters.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CancellationInitiatorEnum } from './V2CancellationInitiatorEnum'; +import type { V2CancellationStateEnumFilters } from './V2CancellationStateEnumFilters'; +/** + * Фильтры. + * @export + * @interface GetConditionalCancellationListV2RequestFilters + */ +export interface GetConditionalCancellationListV2RequestFilters { + /** + * Инициатор отмены: + * - `SELLER` — продавец, + * - `CLIENT` — покупатель, + * - `OZON` — Ozon, + * - `SYSTEM` — система, + * - `DELIVERY` — служба доставки. + * + * @type {Array} + * @memberof GetConditionalCancellationListV2RequestFilters + */ + cancellation_initiator?: Array; + /** + * Фильтр по номеру отправления. + * @type {Array} + * @memberof GetConditionalCancellationListV2RequestFilters + */ + posting_number?: Array; + /** + * + * @type {V2CancellationStateEnumFilters} + * @memberof GetConditionalCancellationListV2RequestFilters + */ + state?: V2CancellationStateEnumFilters; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2RequestFilters interface. + */ +export declare function instanceOfGetConditionalCancellationListV2RequestFilters(value: object): value is GetConditionalCancellationListV2RequestFilters; +export declare function GetConditionalCancellationListV2RequestFiltersFromJSON(json: any): GetConditionalCancellationListV2RequestFilters; +export declare function GetConditionalCancellationListV2RequestFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2RequestFilters; +export declare function GetConditionalCancellationListV2RequestFiltersToJSON(value?: GetConditionalCancellationListV2RequestFilters | null): any; diff --git a/dist/esm/models/GetConditionalCancellationListV2RequestFilters.js b/dist/esm/models/GetConditionalCancellationListV2RequestFilters.js new file mode 100644 index 0000000..4393dd4 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2RequestFilters.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2CancellationInitiatorEnumFromJSON, V2CancellationInitiatorEnumToJSON, } from './V2CancellationInitiatorEnum'; +import { V2CancellationStateEnumFiltersFromJSON, V2CancellationStateEnumFiltersToJSON, } from './V2CancellationStateEnumFilters'; +/** + * Check if a given object implements the GetConditionalCancellationListV2RequestFilters interface. + */ +export function instanceOfGetConditionalCancellationListV2RequestFilters(value) { + return true; +} +export function GetConditionalCancellationListV2RequestFiltersFromJSON(json) { + return GetConditionalCancellationListV2RequestFiltersFromJSONTyped(json, false); +} +export function GetConditionalCancellationListV2RequestFiltersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : (json['cancellation_initiator'].map(V2CancellationInitiatorEnumFromJSON)), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'state': json['state'] == null ? undefined : V2CancellationStateEnumFiltersFromJSON(json['state']), + }; +} +export function GetConditionalCancellationListV2RequestFiltersToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_initiator': value['cancellation_initiator'] == null ? undefined : (value['cancellation_initiator'].map(V2CancellationInitiatorEnumToJSON)), + 'posting_number': value['posting_number'], + 'state': V2CancellationStateEnumFiltersToJSON(value['state']), + }; +} diff --git a/dist/esm/models/GetConditionalCancellationListV2RequestWith.d.ts b/dist/esm/models/GetConditionalCancellationListV2RequestWith.d.ts new file mode 100644 index 0000000..d7e3cb9 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2RequestWith.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительная информация. + * @export + * @interface GetConditionalCancellationListV2RequestWith + */ +export interface GetConditionalCancellationListV2RequestWith { + /** + * Признак, что в ответе нужно вывести счётчик заявок в статусе `ON_APPROVAL`. + * @type {boolean} + * @memberof GetConditionalCancellationListV2RequestWith + */ + counter?: boolean; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2RequestWith interface. + */ +export declare function instanceOfGetConditionalCancellationListV2RequestWith(value: object): value is GetConditionalCancellationListV2RequestWith; +export declare function GetConditionalCancellationListV2RequestWithFromJSON(json: any): GetConditionalCancellationListV2RequestWith; +export declare function GetConditionalCancellationListV2RequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2RequestWith; +export declare function GetConditionalCancellationListV2RequestWithToJSON(value?: GetConditionalCancellationListV2RequestWith | null): any; diff --git a/dist/esm/models/GetConditionalCancellationListV2RequestWith.js b/dist/esm/models/GetConditionalCancellationListV2RequestWith.js new file mode 100644 index 0000000..e737179 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2RequestWith.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetConditionalCancellationListV2RequestWith interface. + */ +export function instanceOfGetConditionalCancellationListV2RequestWith(value) { + return true; +} +export function GetConditionalCancellationListV2RequestWithFromJSON(json) { + return GetConditionalCancellationListV2RequestWithFromJSONTyped(json, false); +} +export function GetConditionalCancellationListV2RequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'counter': json['counter'] == null ? undefined : json['counter'], + }; +} +export function GetConditionalCancellationListV2RequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'counter': value['counter'], + }; +} diff --git a/dist/esm/models/GetConditionalCancellationListV2ResponseCancellationReason.d.ts b/dist/esm/models/GetConditionalCancellationListV2ResponseCancellationReason.d.ts new file mode 100644 index 0000000..4489ec0 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2ResponseCancellationReason.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина отмены. + * @export + * @interface GetConditionalCancellationListV2ResponseCancellationReason + */ +export interface GetConditionalCancellationListV2ResponseCancellationReason { + /** + * Идентификатор причины отмены. + * @type {number} + * @memberof GetConditionalCancellationListV2ResponseCancellationReason + */ + id?: number; + /** + * Название причины отмены. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseCancellationReason + */ + name?: string; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseCancellationReason interface. + */ +export declare function instanceOfGetConditionalCancellationListV2ResponseCancellationReason(value: object): value is GetConditionalCancellationListV2ResponseCancellationReason; +export declare function GetConditionalCancellationListV2ResponseCancellationReasonFromJSON(json: any): GetConditionalCancellationListV2ResponseCancellationReason; +export declare function GetConditionalCancellationListV2ResponseCancellationReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2ResponseCancellationReason; +export declare function GetConditionalCancellationListV2ResponseCancellationReasonToJSON(value?: GetConditionalCancellationListV2ResponseCancellationReason | null): any; diff --git a/dist/esm/models/GetConditionalCancellationListV2ResponseCancellationReason.js b/dist/esm/models/GetConditionalCancellationListV2ResponseCancellationReason.js new file mode 100644 index 0000000..8e5b3c9 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2ResponseCancellationReason.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseCancellationReason interface. + */ +export function instanceOfGetConditionalCancellationListV2ResponseCancellationReason(value) { + return true; +} +export function GetConditionalCancellationListV2ResponseCancellationReasonFromJSON(json) { + return GetConditionalCancellationListV2ResponseCancellationReasonFromJSONTyped(json, false); +} +export function GetConditionalCancellationListV2ResponseCancellationReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function GetConditionalCancellationListV2ResponseCancellationReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/GetConditionalCancellationListV2ResponseResult.d.ts b/dist/esm/models/GetConditionalCancellationListV2ResponseResult.d.ts new file mode 100644 index 0000000..03364f5 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2ResponseResult.d.ts @@ -0,0 +1,109 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CancellationInitiatorEnum } from './V2CancellationInitiatorEnum'; +import type { GetConditionalCancellationListV2ResponseState } from './GetConditionalCancellationListV2ResponseState'; +import type { GetConditionalCancellationListV2ResponseCancellationReason } from './GetConditionalCancellationListV2ResponseCancellationReason'; +/** + * + * @export + * @interface GetConditionalCancellationListV2ResponseResult + */ +export interface GetConditionalCancellationListV2ResponseResult { + /** + * Комментарий, оставленный при подтверждении или отклонении заявки на отмену. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + approve_comment?: string; + /** + * Дата подтверждения или отклонения заявки на отмену. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + approve_date?: string; + /** + * Дата, после которой заявка будет автоматически подтверждена. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + auto_approve_date?: string; + /** + * Идентификатор заявки на отмену. + * @type {number} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancellation_id?: number; + /** + * + * @type {V2CancellationInitiatorEnum} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancellation_initiator?: V2CancellationInitiatorEnum; + /** + * + * @type {GetConditionalCancellationListV2ResponseCancellationReason} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancellation_reason?: GetConditionalCancellationListV2ResponseCancellationReason; + /** + * Комментарий к заявке на отмену, введённый инициатором отмены вручную. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancellation_reason_message?: string; + /** + * Дата создания заявки на отмену. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancelled_at?: string; + /** + * Дата создания заказа. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + order_date?: string; + /** + * Номер отправления. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + posting_number?: string; + /** + * Предыдущий идентификатор заявки на отмену. + * + * Используется для поддержания обратной совместимости. + * + * @type {number} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + source_id?: number; + /** + * + * @type {GetConditionalCancellationListV2ResponseState} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + state?: GetConditionalCancellationListV2ResponseState; + /** + * Тип интеграции со службой доставки. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + tpl_integration_type?: string; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseResult interface. + */ +export declare function instanceOfGetConditionalCancellationListV2ResponseResult(value: object): value is GetConditionalCancellationListV2ResponseResult; +export declare function GetConditionalCancellationListV2ResponseResultFromJSON(json: any): GetConditionalCancellationListV2ResponseResult; +export declare function GetConditionalCancellationListV2ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2ResponseResult; +export declare function GetConditionalCancellationListV2ResponseResultToJSON(value?: GetConditionalCancellationListV2ResponseResult | null): any; diff --git a/dist/esm/models/GetConditionalCancellationListV2ResponseResult.js b/dist/esm/models/GetConditionalCancellationListV2ResponseResult.js new file mode 100644 index 0000000..1eb64f2 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2ResponseResult.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2CancellationInitiatorEnumFromJSON, V2CancellationInitiatorEnumToJSON, } from './V2CancellationInitiatorEnum'; +import { GetConditionalCancellationListV2ResponseStateFromJSON, GetConditionalCancellationListV2ResponseStateToJSON, } from './GetConditionalCancellationListV2ResponseState'; +import { GetConditionalCancellationListV2ResponseCancellationReasonFromJSON, GetConditionalCancellationListV2ResponseCancellationReasonToJSON, } from './GetConditionalCancellationListV2ResponseCancellationReason'; +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseResult interface. + */ +export function instanceOfGetConditionalCancellationListV2ResponseResult(value) { + return true; +} +export function GetConditionalCancellationListV2ResponseResultFromJSON(json) { + return GetConditionalCancellationListV2ResponseResultFromJSONTyped(json, false); +} +export function GetConditionalCancellationListV2ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approve_comment': json['approve_comment'] == null ? undefined : json['approve_comment'], + 'approve_date': json['approve_date'] == null ? undefined : json['approve_date'], + 'auto_approve_date': json['auto_approve_date'] == null ? undefined : json['auto_approve_date'], + 'cancellation_id': json['cancellation_id'] == null ? undefined : json['cancellation_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : V2CancellationInitiatorEnumFromJSON(json['cancellation_initiator']), + 'cancellation_reason': json['cancellation_reason'] == null ? undefined : GetConditionalCancellationListV2ResponseCancellationReasonFromJSON(json['cancellation_reason']), + 'cancellation_reason_message': json['cancellation_reason_message'] == null ? undefined : json['cancellation_reason_message'], + 'cancelled_at': json['cancelled_at'] == null ? undefined : json['cancelled_at'], + 'order_date': json['order_date'] == null ? undefined : json['order_date'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'source_id': json['source_id'] == null ? undefined : json['source_id'], + 'state': json['state'] == null ? undefined : GetConditionalCancellationListV2ResponseStateFromJSON(json['state']), + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + }; +} +export function GetConditionalCancellationListV2ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'approve_comment': value['approve_comment'], + 'approve_date': value['approve_date'], + 'auto_approve_date': value['auto_approve_date'], + 'cancellation_id': value['cancellation_id'], + 'cancellation_initiator': V2CancellationInitiatorEnumToJSON(value['cancellation_initiator']), + 'cancellation_reason': GetConditionalCancellationListV2ResponseCancellationReasonToJSON(value['cancellation_reason']), + 'cancellation_reason_message': value['cancellation_reason_message'], + 'cancelled_at': value['cancelled_at'], + 'order_date': value['order_date'], + 'posting_number': value['posting_number'], + 'source_id': value['source_id'], + 'state': GetConditionalCancellationListV2ResponseStateToJSON(value['state']), + 'tpl_integration_type': value['tpl_integration_type'], + }; +} diff --git a/dist/esm/models/GetConditionalCancellationListV2ResponseState.d.ts b/dist/esm/models/GetConditionalCancellationListV2ResponseState.d.ts new file mode 100644 index 0000000..58598b5 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2ResponseState.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CancellationStateEnum } from './V2CancellationStateEnum'; +/** + * Статус заявки на отмену. + * @export + * @interface GetConditionalCancellationListV2ResponseState + */ +export interface GetConditionalCancellationListV2ResponseState { + /** + * Идентификатор статуса. + * @type {number} + * @memberof GetConditionalCancellationListV2ResponseState + */ + id?: number; + /** + * Название статуса. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseState + */ + name?: string; + /** + * + * @type {V2CancellationStateEnum} + * @memberof GetConditionalCancellationListV2ResponseState + */ + state?: V2CancellationStateEnum; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseState interface. + */ +export declare function instanceOfGetConditionalCancellationListV2ResponseState(value: object): value is GetConditionalCancellationListV2ResponseState; +export declare function GetConditionalCancellationListV2ResponseStateFromJSON(json: any): GetConditionalCancellationListV2ResponseState; +export declare function GetConditionalCancellationListV2ResponseStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2ResponseState; +export declare function GetConditionalCancellationListV2ResponseStateToJSON(value?: GetConditionalCancellationListV2ResponseState | null): any; diff --git a/dist/esm/models/GetConditionalCancellationListV2ResponseState.js b/dist/esm/models/GetConditionalCancellationListV2ResponseState.js new file mode 100644 index 0000000..b1e7500 --- /dev/null +++ b/dist/esm/models/GetConditionalCancellationListV2ResponseState.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2CancellationStateEnumFromJSON, V2CancellationStateEnumToJSON, } from './V2CancellationStateEnum'; +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseState interface. + */ +export function instanceOfGetConditionalCancellationListV2ResponseState(value) { + return true; +} +export function GetConditionalCancellationListV2ResponseStateFromJSON(json) { + return GetConditionalCancellationListV2ResponseStateFromJSONTyped(json, false); +} +export function GetConditionalCancellationListV2ResponseStateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'state': json['state'] == null ? undefined : V2CancellationStateEnumFromJSON(json['state']), + }; +} +export function GetConditionalCancellationListV2ResponseStateToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'state': V2CancellationStateEnumToJSON(value['state']), + }; +} diff --git a/dist/esm/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.d.ts b/dist/esm/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.d.ts new file mode 100644 index 0000000..1d03e34 --- /dev/null +++ b/dist/esm/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnSettingTransportCompanyDetails } from './ReturnSettingTransportCompanyDetails'; +import type { ReturnSettingCourierDetails } from './ReturnSettingCourierDetails'; +/** + * Информация о возвратных настройках. + * @export + * @interface GetDeliveryMethodReturnSettingsV1ResponseReturnSetting + */ +export interface GetDeliveryMethodReturnSettingsV1ResponseReturnSetting { + /** + * + * @type {ReturnSettingCourierDetails} + * @memberof GetDeliveryMethodReturnSettingsV1ResponseReturnSetting + */ + courier_details?: ReturnSettingCourierDetails; + /** + * Индекс отделения Почты России для [«лёгкого возврата»](https://seller-edu.ozon.ru/rfbs/vozvraty/vozvraty#«лёгкии-возврат»-почтои-россии). + * @type {string} + * @memberof GetDeliveryMethodReturnSettingsV1ResponseReturnSetting + */ + post_office_zipcode?: string; + /** + * + * @type {ReturnSettingTransportCompanyDetails} + * @memberof GetDeliveryMethodReturnSettingsV1ResponseReturnSetting + */ + transport_company_details?: ReturnSettingTransportCompanyDetails; +} +/** + * Check if a given object implements the GetDeliveryMethodReturnSettingsV1ResponseReturnSetting interface. + */ +export declare function instanceOfGetDeliveryMethodReturnSettingsV1ResponseReturnSetting(value: object): value is GetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +export declare function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON(json: any): GetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +export declare function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +export declare function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON(value?: GetDeliveryMethodReturnSettingsV1ResponseReturnSetting | null): any; diff --git a/dist/esm/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.js b/dist/esm/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.js new file mode 100644 index 0000000..495feab --- /dev/null +++ b/dist/esm/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReturnSettingTransportCompanyDetailsFromJSON, ReturnSettingTransportCompanyDetailsToJSON, } from './ReturnSettingTransportCompanyDetails'; +import { ReturnSettingCourierDetailsFromJSON, ReturnSettingCourierDetailsToJSON, } from './ReturnSettingCourierDetails'; +/** + * Check if a given object implements the GetDeliveryMethodReturnSettingsV1ResponseReturnSetting interface. + */ +export function instanceOfGetDeliveryMethodReturnSettingsV1ResponseReturnSetting(value) { + return true; +} +export function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON(json) { + return GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSONTyped(json, false); +} +export function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_details': json['courier_details'] == null ? undefined : ReturnSettingCourierDetailsFromJSON(json['courier_details']), + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'transport_company_details': json['transport_company_details'] == null ? undefined : ReturnSettingTransportCompanyDetailsFromJSON(json['transport_company_details']), + }; +} +export function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_details': ReturnSettingCourierDetailsToJSON(value['courier_details']), + 'post_office_zipcode': value['post_office_zipcode'], + 'transport_company_details': ReturnSettingTransportCompanyDetailsToJSON(value['transport_company_details']), + }; +} diff --git a/dist/esm/models/GetDiscountTaskListV2ResponseTask.d.ts b/dist/esm/models/GetDiscountTaskListV2ResponseTask.d.ts new file mode 100644 index 0000000..6a98d07 --- /dev/null +++ b/dist/esm/models/GetDiscountTaskListV2ResponseTask.d.ts @@ -0,0 +1,179 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum } from './GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum'; +import type { TaskAutoModeratedInfo } from './TaskAutoModeratedInfo'; +/** + * + * @export + * @interface GetDiscountTaskListV2ResponseTask + */ +export interface GetDiscountTaskListV2ResponseTask { + /** + * Скидка в рублях, которую одобрил продавец. Передайте значение `0`, если продавец не одобрил заявку. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + approved_discount?: number; + /** + * Одобренная цена. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + approved_price?: number; + /** + * Максимальное одобренное количество товаров. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + approved_quantity_max?: number; + /** + * + * @type {TaskAutoModeratedInfo} + * @memberof GetDiscountTaskListV2ResponseTask + */ + auto_moderated_info?: TaskAutoModeratedInfo; + /** + * Дата создания заявки. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + created_at?: string; + /** + * Время для изменения решения. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + edited_till?: string; + /** + * Время для изменения решения в секундах. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + edited_till_duration?: number; + /** + * Электронный адрес сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + email?: string; + /** + * Время окончания действия заявки. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + end_at?: string; + /** + * Время окончания действия заявки в секундах. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + end_at_duration?: number; + /** + * Имя сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + first_name?: string; + /** + * Идентификатор заявки. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + id?: number; + /** + * `true`, если модерация была автоматической. + * + * @type {boolean} + * @memberof GetDiscountTaskListV2ResponseTask + */ + is_auto_moderated?: boolean; + /** + * Фамилия сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + last_name?: string; + /** + * Минимальное значение цены после автоприменения скидок и акций. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + min_auto_price?: number; + /** + * Дата модерации: просмотра, одобрения или отклонения заявки. + * + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + moderated_at?: string; + /** + * Название товара. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + name?: string; + /** + * Цена товара до всех скидок. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + original_price?: number; + /** + * Отчество сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + patronymic?: string; + /** + * Разница между ценой пользователя и продавца в момент создания заявки. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + reduction_factor?: number; + /** + * Скидка в процентах. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + requested_discount?: number; + /** + * Цена по заявке. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + requested_price?: number; + /** + * Запрошенное максимальное количество товаров. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + requested_quantity_max?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + sku?: number; + /** + * + * @type {GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum} + * @memberof GetDiscountTaskListV2ResponseTask + */ + status?: GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum; +} +/** + * Check if a given object implements the GetDiscountTaskListV2ResponseTask interface. + */ +export declare function instanceOfGetDiscountTaskListV2ResponseTask(value: object): value is GetDiscountTaskListV2ResponseTask; +export declare function GetDiscountTaskListV2ResponseTaskFromJSON(json: any): GetDiscountTaskListV2ResponseTask; +export declare function GetDiscountTaskListV2ResponseTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDiscountTaskListV2ResponseTask; +export declare function GetDiscountTaskListV2ResponseTaskToJSON(value?: GetDiscountTaskListV2ResponseTask | null): any; diff --git a/dist/esm/models/GetDiscountTaskListV2ResponseTask.js b/dist/esm/models/GetDiscountTaskListV2ResponseTask.js new file mode 100644 index 0000000..cb466ce --- /dev/null +++ b/dist/esm/models/GetDiscountTaskListV2ResponseTask.js @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON, GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON, } from './GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum'; +import { TaskAutoModeratedInfoFromJSON, TaskAutoModeratedInfoToJSON, } from './TaskAutoModeratedInfo'; +/** + * Check if a given object implements the GetDiscountTaskListV2ResponseTask interface. + */ +export function instanceOfGetDiscountTaskListV2ResponseTask(value) { + return true; +} +export function GetDiscountTaskListV2ResponseTaskFromJSON(json) { + return GetDiscountTaskListV2ResponseTaskFromJSONTyped(json, false); +} +export function GetDiscountTaskListV2ResponseTaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_discount': json['approved_discount'] == null ? undefined : json['approved_discount'], + 'approved_price': json['approved_price'] == null ? undefined : json['approved_price'], + 'approved_quantity_max': json['approved_quantity_max'] == null ? undefined : json['approved_quantity_max'], + 'auto_moderated_info': json['auto_moderated_info'] == null ? undefined : TaskAutoModeratedInfoFromJSON(json['auto_moderated_info']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'edited_till': json['edited_till'] == null ? undefined : json['edited_till'], + 'edited_till_duration': json['edited_till_duration'] == null ? undefined : json['edited_till_duration'], + 'email': json['email'] == null ? undefined : json['email'], + 'end_at': json['end_at'] == null ? undefined : json['end_at'], + 'end_at_duration': json['end_at_duration'] == null ? undefined : json['end_at_duration'], + 'first_name': json['first_name'] == null ? undefined : json['first_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_auto_moderated': json['is_auto_moderated'] == null ? undefined : json['is_auto_moderated'], + 'last_name': json['last_name'] == null ? undefined : json['last_name'], + 'min_auto_price': json['min_auto_price'] == null ? undefined : json['min_auto_price'], + 'moderated_at': json['moderated_at'] == null ? undefined : json['moderated_at'], + 'name': json['name'] == null ? undefined : json['name'], + 'original_price': json['original_price'] == null ? undefined : json['original_price'], + 'patronymic': json['patronymic'] == null ? undefined : json['patronymic'], + 'reduction_factor': json['reduction_factor'] == null ? undefined : json['reduction_factor'], + 'requested_discount': json['requested_discount'] == null ? undefined : json['requested_discount'], + 'requested_price': json['requested_price'] == null ? undefined : json['requested_price'], + 'requested_quantity_max': json['requested_quantity_max'] == null ? undefined : json['requested_quantity_max'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON(json['status']), + }; +} +export function GetDiscountTaskListV2ResponseTaskToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_discount': value['approved_discount'], + 'approved_price': value['approved_price'], + 'approved_quantity_max': value['approved_quantity_max'], + 'auto_moderated_info': TaskAutoModeratedInfoToJSON(value['auto_moderated_info']), + 'created_at': value['created_at'], + 'edited_till': value['edited_till'], + 'edited_till_duration': value['edited_till_duration'], + 'email': value['email'], + 'end_at': value['end_at'], + 'end_at_duration': value['end_at_duration'], + 'first_name': value['first_name'], + 'id': value['id'], + 'is_auto_moderated': value['is_auto_moderated'], + 'last_name': value['last_name'], + 'min_auto_price': value['min_auto_price'], + 'moderated_at': value['moderated_at'], + 'name': value['name'], + 'original_price': value['original_price'], + 'patronymic': value['patronymic'], + 'reduction_factor': value['reduction_factor'], + 'requested_discount': value['requested_discount'], + 'requested_price': value['requested_price'], + 'requested_quantity_max': value['requested_quantity_max'], + 'sku': value['sku'], + 'status': GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.d.ts b/dist/esm/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.d.ts new file mode 100644 index 0000000..7de2833 --- /dev/null +++ b/dist/esm/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `ALL` — все статусы, + * - `NEW` — новая, + * - `APPROVED` — одобренная, + * - `DECLINED` — отклонённая. + * + * @export + */ +export declare const GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum: { + readonly ALL: "ALL"; + readonly NEW: "NEW"; + readonly APPROVED: "APPROVED"; + readonly DECLINED: "DECLINED"; +}; +export type GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum = typeof GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum[keyof typeof GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum]; +export declare function instanceOfGetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum(value: any): boolean; +export declare function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON(json: any): GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum; +export declare function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum; +export declare function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON(value?: GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum | null): any; diff --git a/dist/esm/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.js b/dist/esm/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.js new file mode 100644 index 0000000..f017ed0 --- /dev/null +++ b/dist/esm/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `ALL` — все статусы, + * - `NEW` — новая, + * - `APPROVED` — одобренная, + * - `DECLINED` — отклонённая. + * + * @export + */ +export const GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum = { + ALL: 'ALL', + NEW: 'NEW', + APPROVED: 'APPROVED', + DECLINED: 'DECLINED' +}; +export function instanceOfGetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum(value) { + for (const key in GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum) { + if (Object.prototype.hasOwnProperty.call(GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum, key)) { + if (GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON(json) { + return GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSONTyped(json, false); +} +export function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/GetEtgbRequestDate.d.ts b/dist/esm/models/GetEtgbRequestDate.d.ts new file mode 100644 index 0000000..088ec0b --- /dev/null +++ b/dist/esm/models/GetEtgbRequestDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по периоду создания деклараций. + * @export + * @interface GetEtgbRequestDate + */ +export interface GetEtgbRequestDate { + /** + * Дата начала. + * @type {string} + * @memberof GetEtgbRequestDate + */ + from: string; + /** + * Дата окончания. + * @type {string} + * @memberof GetEtgbRequestDate + */ + to: string; +} +/** + * Check if a given object implements the GetEtgbRequestDate interface. + */ +export declare function instanceOfGetEtgbRequestDate(value: object): value is GetEtgbRequestDate; +export declare function GetEtgbRequestDateFromJSON(json: any): GetEtgbRequestDate; +export declare function GetEtgbRequestDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEtgbRequestDate; +export declare function GetEtgbRequestDateToJSON(value?: GetEtgbRequestDate | null): any; diff --git a/dist/esm/models/GetEtgbRequestDate.js b/dist/esm/models/GetEtgbRequestDate.js new file mode 100644 index 0000000..690ea9c --- /dev/null +++ b/dist/esm/models/GetEtgbRequestDate.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetEtgbRequestDate interface. + */ +export function instanceOfGetEtgbRequestDate(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function GetEtgbRequestDateFromJSON(json) { + return GetEtgbRequestDateFromJSONTyped(json, false); +} +export function GetEtgbRequestDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +export function GetEtgbRequestDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/GetEtgbResponseResult.d.ts b/dist/esm/models/GetEtgbResponseResult.d.ts new file mode 100644 index 0000000..815065b --- /dev/null +++ b/dist/esm/models/GetEtgbResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetEtgbResponseResultEtgb } from './GetEtgbResponseResultEtgb'; +/** + * + * @export + * @interface GetEtgbResponseResult + */ +export interface GetEtgbResponseResult { + /** + * Номер отправления. + * @type {string} + * @memberof GetEtgbResponseResult + */ + posting_number?: string; + /** + * + * @type {GetEtgbResponseResultEtgb} + * @memberof GetEtgbResponseResult + */ + etgb?: GetEtgbResponseResultEtgb; +} +/** + * Check if a given object implements the GetEtgbResponseResult interface. + */ +export declare function instanceOfGetEtgbResponseResult(value: object): value is GetEtgbResponseResult; +export declare function GetEtgbResponseResultFromJSON(json: any): GetEtgbResponseResult; +export declare function GetEtgbResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEtgbResponseResult; +export declare function GetEtgbResponseResultToJSON(value?: GetEtgbResponseResult | null): any; diff --git a/dist/esm/models/GetEtgbResponseResult.js b/dist/esm/models/GetEtgbResponseResult.js new file mode 100644 index 0000000..52e2398 --- /dev/null +++ b/dist/esm/models/GetEtgbResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetEtgbResponseResultEtgbFromJSON, GetEtgbResponseResultEtgbToJSON, } from './GetEtgbResponseResultEtgb'; +/** + * Check if a given object implements the GetEtgbResponseResult interface. + */ +export function instanceOfGetEtgbResponseResult(value) { + return true; +} +export function GetEtgbResponseResultFromJSON(json) { + return GetEtgbResponseResultFromJSONTyped(json, false); +} +export function GetEtgbResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'etgb': json['etgb'] == null ? undefined : GetEtgbResponseResultEtgbFromJSON(json['etgb']), + }; +} +export function GetEtgbResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'etgb': GetEtgbResponseResultEtgbToJSON(value['etgb']), + }; +} diff --git a/dist/esm/models/GetEtgbResponseResultEtgb.d.ts b/dist/esm/models/GetEtgbResponseResultEtgb.d.ts new file mode 100644 index 0000000..1900beb --- /dev/null +++ b/dist/esm/models/GetEtgbResponseResultEtgb.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о декларации. + * @export + * @interface GetEtgbResponseResultEtgb + */ +export interface GetEtgbResponseResultEtgb { + /** + * Номер. + * @type {string} + * @memberof GetEtgbResponseResultEtgb + */ + number?: string; + /** + * Дата создания. + * @type {string} + * @memberof GetEtgbResponseResultEtgb + */ + date?: string; + /** + * Ссылка на файл. + * + * Если поле пустое и вам нужен файл, обратитесь в поддержку Ozon. + * + * @type {string} + * @memberof GetEtgbResponseResultEtgb + */ + url?: string; +} +/** + * Check if a given object implements the GetEtgbResponseResultEtgb interface. + */ +export declare function instanceOfGetEtgbResponseResultEtgb(value: object): value is GetEtgbResponseResultEtgb; +export declare function GetEtgbResponseResultEtgbFromJSON(json: any): GetEtgbResponseResultEtgb; +export declare function GetEtgbResponseResultEtgbFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEtgbResponseResultEtgb; +export declare function GetEtgbResponseResultEtgbToJSON(value?: GetEtgbResponseResultEtgb | null): any; diff --git a/dist/esm/models/GetEtgbResponseResultEtgb.js b/dist/esm/models/GetEtgbResponseResultEtgb.js new file mode 100644 index 0000000..c27ae6f --- /dev/null +++ b/dist/esm/models/GetEtgbResponseResultEtgb.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetEtgbResponseResultEtgb interface. + */ +export function instanceOfGetEtgbResponseResultEtgb(value) { + return true; +} +export function GetEtgbResponseResultEtgbFromJSON(json) { + return GetEtgbResponseResultEtgbFromJSONTyped(json, false); +} +export function GetEtgbResponseResultEtgbFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'number': json['number'] == null ? undefined : json['number'], + 'date': json['date'] == null ? undefined : json['date'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +export function GetEtgbResponseResultEtgbToJSON(value) { + if (value == null) { + return value; + } + return { + 'number': value['number'], + 'date': value['date'], + 'url': value['url'], + }; +} diff --git a/dist/esm/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.d.ts b/dist/esm/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.d.ts new file mode 100644 index 0000000..e43c36d --- /dev/null +++ b/dist/esm/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetFBSRatingIndexInfoV1ResponseIndexDynamics + */ +export interface GetFBSRatingIndexInfoV1ResponseIndexDynamics { + /** + * Дата в формате `YYYY-MM-DD`. + * @type {string} + * @memberof GetFBSRatingIndexInfoV1ResponseIndexDynamics + */ + date?: string; + /** + * Значение индекса ошибок. + * @type {number} + * @memberof GetFBSRatingIndexInfoV1ResponseIndexDynamics + */ + index_by_date?: number; + /** + * Расходы на обработку ошибок. + * @type {number} + * @memberof GetFBSRatingIndexInfoV1ResponseIndexDynamics + */ + processing_costs_sum_by_date?: number; +} +/** + * Check if a given object implements the GetFBSRatingIndexInfoV1ResponseIndexDynamics interface. + */ +export declare function instanceOfGetFBSRatingIndexInfoV1ResponseIndexDynamics(value: object): value is GetFBSRatingIndexInfoV1ResponseIndexDynamics; +export declare function GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON(json: any): GetFBSRatingIndexInfoV1ResponseIndexDynamics; +export declare function GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFBSRatingIndexInfoV1ResponseIndexDynamics; +export declare function GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON(value?: GetFBSRatingIndexInfoV1ResponseIndexDynamics | null): any; diff --git a/dist/esm/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.js b/dist/esm/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.js new file mode 100644 index 0000000..bf90923 --- /dev/null +++ b/dist/esm/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetFBSRatingIndexInfoV1ResponseIndexDynamics interface. + */ +export function instanceOfGetFBSRatingIndexInfoV1ResponseIndexDynamics(value) { + return true; +} +export function GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON(json) { + return GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSONTyped(json, false); +} +export function GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'index_by_date': json['index_by_date'] == null ? undefined : json['index_by_date'], + 'processing_costs_sum_by_date': json['processing_costs_sum_by_date'] == null ? undefined : json['processing_costs_sum_by_date'], + }; +} +export function GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'index_by_date': value['index_by_date'], + 'processing_costs_sum_by_date': value['processing_costs_sum_by_date'], + }; +} diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseCashflows.d.ts b/dist/esm/models/GetFinanceBalanceV1ResponseCashflows.d.ts new file mode 100644 index 0000000..fe7cdc4 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseCashflows.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetFinanceBalanceV1ResponseReturns } from './GetFinanceBalanceV1ResponseReturns'; +import type { GetFinanceBalanceV1ResponseSales } from './GetFinanceBalanceV1ResponseSales'; +import type { GetFinanceBalanceV1ResponseService } from './GetFinanceBalanceV1ResponseService'; +/** + * Информация о доходах и расходах. + * @export + * @interface GetFinanceBalanceV1ResponseCashflows + */ +export interface GetFinanceBalanceV1ResponseCashflows { + /** + * + * @type {GetFinanceBalanceV1ResponseReturns} + * @memberof GetFinanceBalanceV1ResponseCashflows + */ + returns?: GetFinanceBalanceV1ResponseReturns; + /** + * + * @type {GetFinanceBalanceV1ResponseSales} + * @memberof GetFinanceBalanceV1ResponseCashflows + */ + sales?: GetFinanceBalanceV1ResponseSales; + /** + * Начисления за другие услуги. + * @type {Array} + * @memberof GetFinanceBalanceV1ResponseCashflows + */ + services?: Array; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseCashflows interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseCashflows(value: object): value is GetFinanceBalanceV1ResponseCashflows; +export declare function GetFinanceBalanceV1ResponseCashflowsFromJSON(json: any): GetFinanceBalanceV1ResponseCashflows; +export declare function GetFinanceBalanceV1ResponseCashflowsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseCashflows; +export declare function GetFinanceBalanceV1ResponseCashflowsToJSON(value?: GetFinanceBalanceV1ResponseCashflows | null): any; diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseCashflows.js b/dist/esm/models/GetFinanceBalanceV1ResponseCashflows.js new file mode 100644 index 0000000..1004594 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseCashflows.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetFinanceBalanceV1ResponseReturnsFromJSON, GetFinanceBalanceV1ResponseReturnsToJSON, } from './GetFinanceBalanceV1ResponseReturns'; +import { GetFinanceBalanceV1ResponseSalesFromJSON, GetFinanceBalanceV1ResponseSalesToJSON, } from './GetFinanceBalanceV1ResponseSales'; +import { GetFinanceBalanceV1ResponseServiceFromJSON, GetFinanceBalanceV1ResponseServiceToJSON, } from './GetFinanceBalanceV1ResponseService'; +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseCashflows interface. + */ +export function instanceOfGetFinanceBalanceV1ResponseCashflows(value) { + return true; +} +export function GetFinanceBalanceV1ResponseCashflowsFromJSON(json) { + return GetFinanceBalanceV1ResponseCashflowsFromJSONTyped(json, false); +} +export function GetFinanceBalanceV1ResponseCashflowsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'returns': json['returns'] == null ? undefined : GetFinanceBalanceV1ResponseReturnsFromJSON(json['returns']), + 'sales': json['sales'] == null ? undefined : GetFinanceBalanceV1ResponseSalesFromJSON(json['sales']), + 'services': json['services'] == null ? undefined : (json['services'].map(GetFinanceBalanceV1ResponseServiceFromJSON)), + }; +} +export function GetFinanceBalanceV1ResponseCashflowsToJSON(value) { + if (value == null) { + return value; + } + return { + 'returns': GetFinanceBalanceV1ResponseReturnsToJSON(value['returns']), + 'sales': GetFinanceBalanceV1ResponseSalesToJSON(value['sales']), + 'services': value['services'] == null ? undefined : (value['services'].map(GetFinanceBalanceV1ResponseServiceToJSON)), + }; +} diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseReturns.d.ts b/dist/esm/models/GetFinanceBalanceV1ResponseReturns.d.ts new file mode 100644 index 0000000..a492c50 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseReturns.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponseReturnsMoney } from './V1GetFinanceBalanceV1ResponseReturnsMoney'; +import type { V1GetFinanceBalanceV1ResponseFeeMoney } from './V1GetFinanceBalanceV1ResponseFeeMoney'; +import type { GetFinanceBalanceV1ResponseReturnsDetails } from './GetFinanceBalanceV1ResponseReturnsDetails'; +/** + * Начисления за возвраты. + * @export + * @interface GetFinanceBalanceV1ResponseReturns + */ +export interface GetFinanceBalanceV1ResponseReturns { + /** + * + * @type {V1GetFinanceBalanceV1ResponseReturnsMoney} + * @memberof GetFinanceBalanceV1ResponseReturns + */ + amount?: V1GetFinanceBalanceV1ResponseReturnsMoney; + /** + * + * @type {GetFinanceBalanceV1ResponseReturnsDetails} + * @memberof GetFinanceBalanceV1ResponseReturns + */ + amount_details?: GetFinanceBalanceV1ResponseReturnsDetails; + /** + * + * @type {V1GetFinanceBalanceV1ResponseFeeMoney} + * @memberof GetFinanceBalanceV1ResponseReturns + */ + fee?: V1GetFinanceBalanceV1ResponseFeeMoney; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseReturns interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseReturns(value: object): value is GetFinanceBalanceV1ResponseReturns; +export declare function GetFinanceBalanceV1ResponseReturnsFromJSON(json: any): GetFinanceBalanceV1ResponseReturns; +export declare function GetFinanceBalanceV1ResponseReturnsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseReturns; +export declare function GetFinanceBalanceV1ResponseReturnsToJSON(value?: GetFinanceBalanceV1ResponseReturns | null): any; diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseReturns.js b/dist/esm/models/GetFinanceBalanceV1ResponseReturns.js new file mode 100644 index 0000000..039d031 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseReturns.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON, V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseReturnsMoney'; +import { V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON, V1GetFinanceBalanceV1ResponseFeeMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseFeeMoney'; +import { GetFinanceBalanceV1ResponseReturnsDetailsFromJSON, GetFinanceBalanceV1ResponseReturnsDetailsToJSON, } from './GetFinanceBalanceV1ResponseReturnsDetails'; +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseReturns interface. + */ +export function instanceOfGetFinanceBalanceV1ResponseReturns(value) { + return true; +} +export function GetFinanceBalanceV1ResponseReturnsFromJSON(json) { + return GetFinanceBalanceV1ResponseReturnsFromJSONTyped(json, false); +} +export function GetFinanceBalanceV1ResponseReturnsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON(json['amount']), + 'amount_details': json['amount_details'] == null ? undefined : GetFinanceBalanceV1ResponseReturnsDetailsFromJSON(json['amount_details']), + 'fee': json['fee'] == null ? undefined : V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON(json['fee']), + }; +} +export function GetFinanceBalanceV1ResponseReturnsToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON(value['amount']), + 'amount_details': GetFinanceBalanceV1ResponseReturnsDetailsToJSON(value['amount_details']), + 'fee': V1GetFinanceBalanceV1ResponseFeeMoneyToJSON(value['fee']), + }; +} diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseReturnsDetails.d.ts b/dist/esm/models/GetFinanceBalanceV1ResponseReturnsDetails.d.ts new file mode 100644 index 0000000..07a3e8c --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseReturnsDetails.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponsePartnerMoney } from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +import type { V1GetFinanceBalanceV1ResponseRevenueMoney } from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +/** + * Детализация суммы возвратов. + * @export + * @interface GetFinanceBalanceV1ResponseReturnsDetails + */ +export interface GetFinanceBalanceV1ResponseReturnsDetails { + /** + * + * @type {V1GetFinanceBalanceV1ResponsePartnerMoney} + * @memberof GetFinanceBalanceV1ResponseReturnsDetails + */ + partner_programs?: V1GetFinanceBalanceV1ResponsePartnerMoney; + /** + * Баллы за скидки. + * @type {string} + * @memberof GetFinanceBalanceV1ResponseReturnsDetails + */ + points_for_discounts?: string; + /** + * + * @type {V1GetFinanceBalanceV1ResponseRevenueMoney} + * @memberof GetFinanceBalanceV1ResponseReturnsDetails + */ + revenue?: V1GetFinanceBalanceV1ResponseRevenueMoney; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseReturnsDetails interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseReturnsDetails(value: object): value is GetFinanceBalanceV1ResponseReturnsDetails; +export declare function GetFinanceBalanceV1ResponseReturnsDetailsFromJSON(json: any): GetFinanceBalanceV1ResponseReturnsDetails; +export declare function GetFinanceBalanceV1ResponseReturnsDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseReturnsDetails; +export declare function GetFinanceBalanceV1ResponseReturnsDetailsToJSON(value?: GetFinanceBalanceV1ResponseReturnsDetails | null): any; diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseReturnsDetails.js b/dist/esm/models/GetFinanceBalanceV1ResponseReturnsDetails.js new file mode 100644 index 0000000..844e484 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseReturnsDetails.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON, V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON, } from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +import { V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON, V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseReturnsDetails interface. + */ +export function instanceOfGetFinanceBalanceV1ResponseReturnsDetails(value) { + return true; +} +export function GetFinanceBalanceV1ResponseReturnsDetailsFromJSON(json) { + return GetFinanceBalanceV1ResponseReturnsDetailsFromJSONTyped(json, false); +} +export function GetFinanceBalanceV1ResponseReturnsDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'partner_programs': json['partner_programs'] == null ? undefined : V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON(json['partner_programs']), + 'points_for_discounts': json['points_for_discounts'] == null ? undefined : json['points_for_discounts'], + 'revenue': json['revenue'] == null ? undefined : V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON(json['revenue']), + }; +} +export function GetFinanceBalanceV1ResponseReturnsDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'partner_programs': V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON(value['partner_programs']), + 'points_for_discounts': value['points_for_discounts'], + 'revenue': V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON(value['revenue']), + }; +} diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseSales.d.ts b/dist/esm/models/GetFinanceBalanceV1ResponseSales.d.ts new file mode 100644 index 0000000..3fc444f --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseSales.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponseFeeMoney } from './V1GetFinanceBalanceV1ResponseFeeMoney'; +import type { GetFinanceBalanceV1ResponseSalesDetails } from './GetFinanceBalanceV1ResponseSalesDetails'; +import type { V1GetFinanceBalanceV1ResponseSalesMoney } from './V1GetFinanceBalanceV1ResponseSalesMoney'; +/** + * Начисления за продажи. + * @export + * @interface GetFinanceBalanceV1ResponseSales + */ +export interface GetFinanceBalanceV1ResponseSales { + /** + * + * @type {V1GetFinanceBalanceV1ResponseSalesMoney} + * @memberof GetFinanceBalanceV1ResponseSales + */ + amount?: V1GetFinanceBalanceV1ResponseSalesMoney; + /** + * + * @type {GetFinanceBalanceV1ResponseSalesDetails} + * @memberof GetFinanceBalanceV1ResponseSales + */ + amount_details?: GetFinanceBalanceV1ResponseSalesDetails; + /** + * + * @type {V1GetFinanceBalanceV1ResponseFeeMoney} + * @memberof GetFinanceBalanceV1ResponseSales + */ + fee?: V1GetFinanceBalanceV1ResponseFeeMoney; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseSales interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseSales(value: object): value is GetFinanceBalanceV1ResponseSales; +export declare function GetFinanceBalanceV1ResponseSalesFromJSON(json: any): GetFinanceBalanceV1ResponseSales; +export declare function GetFinanceBalanceV1ResponseSalesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseSales; +export declare function GetFinanceBalanceV1ResponseSalesToJSON(value?: GetFinanceBalanceV1ResponseSales | null): any; diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseSales.js b/dist/esm/models/GetFinanceBalanceV1ResponseSales.js new file mode 100644 index 0000000..1d48f90 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseSales.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON, V1GetFinanceBalanceV1ResponseFeeMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseFeeMoney'; +import { GetFinanceBalanceV1ResponseSalesDetailsFromJSON, GetFinanceBalanceV1ResponseSalesDetailsToJSON, } from './GetFinanceBalanceV1ResponseSalesDetails'; +import { V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON, V1GetFinanceBalanceV1ResponseSalesMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseSalesMoney'; +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseSales interface. + */ +export function instanceOfGetFinanceBalanceV1ResponseSales(value) { + return true; +} +export function GetFinanceBalanceV1ResponseSalesFromJSON(json) { + return GetFinanceBalanceV1ResponseSalesFromJSONTyped(json, false); +} +export function GetFinanceBalanceV1ResponseSalesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON(json['amount']), + 'amount_details': json['amount_details'] == null ? undefined : GetFinanceBalanceV1ResponseSalesDetailsFromJSON(json['amount_details']), + 'fee': json['fee'] == null ? undefined : V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON(json['fee']), + }; +} +export function GetFinanceBalanceV1ResponseSalesToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': V1GetFinanceBalanceV1ResponseSalesMoneyToJSON(value['amount']), + 'amount_details': GetFinanceBalanceV1ResponseSalesDetailsToJSON(value['amount_details']), + 'fee': V1GetFinanceBalanceV1ResponseFeeMoneyToJSON(value['fee']), + }; +} diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseSalesDetails.d.ts b/dist/esm/models/GetFinanceBalanceV1ResponseSalesDetails.d.ts new file mode 100644 index 0000000..a498863 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseSalesDetails.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponsePartnerMoney } from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +import type { V1GetFinanceBalanceV1ResponseRevenueMoney } from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +/** + * Детализация суммы продаж. + * @export + * @interface GetFinanceBalanceV1ResponseSalesDetails + */ +export interface GetFinanceBalanceV1ResponseSalesDetails { + /** + * + * @type {V1GetFinanceBalanceV1ResponsePartnerMoney} + * @memberof GetFinanceBalanceV1ResponseSalesDetails + */ + partner_programs?: V1GetFinanceBalanceV1ResponsePartnerMoney; + /** + * Баллы за скидки. + * @type {string} + * @memberof GetFinanceBalanceV1ResponseSalesDetails + */ + points_for_discounts?: string; + /** + * + * @type {V1GetFinanceBalanceV1ResponseRevenueMoney} + * @memberof GetFinanceBalanceV1ResponseSalesDetails + */ + revenue?: V1GetFinanceBalanceV1ResponseRevenueMoney; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseSalesDetails interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseSalesDetails(value: object): value is GetFinanceBalanceV1ResponseSalesDetails; +export declare function GetFinanceBalanceV1ResponseSalesDetailsFromJSON(json: any): GetFinanceBalanceV1ResponseSalesDetails; +export declare function GetFinanceBalanceV1ResponseSalesDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseSalesDetails; +export declare function GetFinanceBalanceV1ResponseSalesDetailsToJSON(value?: GetFinanceBalanceV1ResponseSalesDetails | null): any; diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseSalesDetails.js b/dist/esm/models/GetFinanceBalanceV1ResponseSalesDetails.js new file mode 100644 index 0000000..fc7b6e0 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseSalesDetails.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON, V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON, } from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +import { V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON, V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseSalesDetails interface. + */ +export function instanceOfGetFinanceBalanceV1ResponseSalesDetails(value) { + return true; +} +export function GetFinanceBalanceV1ResponseSalesDetailsFromJSON(json) { + return GetFinanceBalanceV1ResponseSalesDetailsFromJSONTyped(json, false); +} +export function GetFinanceBalanceV1ResponseSalesDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'partner_programs': json['partner_programs'] == null ? undefined : V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON(json['partner_programs']), + 'points_for_discounts': json['points_for_discounts'] == null ? undefined : json['points_for_discounts'], + 'revenue': json['revenue'] == null ? undefined : V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON(json['revenue']), + }; +} +export function GetFinanceBalanceV1ResponseSalesDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'partner_programs': V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON(value['partner_programs']), + 'points_for_discounts': value['points_for_discounts'], + 'revenue': V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON(value['revenue']), + }; +} diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseService.d.ts b/dist/esm/models/GetFinanceBalanceV1ResponseService.d.ts new file mode 100644 index 0000000..3e9563f --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseService.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponseServicesMoney } from './V1GetFinanceBalanceV1ResponseServicesMoney'; +/** + * + * @export + * @interface GetFinanceBalanceV1ResponseService + */ +export interface GetFinanceBalanceV1ResponseService { + /** + * + * @type {V1GetFinanceBalanceV1ResponseServicesMoney} + * @memberof GetFinanceBalanceV1ResponseService + */ + amount?: V1GetFinanceBalanceV1ResponseServicesMoney; + /** + * Cистемное название услуги. + * @type {string} + * @memberof GetFinanceBalanceV1ResponseService + */ + name?: string; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseService interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseService(value: object): value is GetFinanceBalanceV1ResponseService; +export declare function GetFinanceBalanceV1ResponseServiceFromJSON(json: any): GetFinanceBalanceV1ResponseService; +export declare function GetFinanceBalanceV1ResponseServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseService; +export declare function GetFinanceBalanceV1ResponseServiceToJSON(value?: GetFinanceBalanceV1ResponseService | null): any; diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseService.js b/dist/esm/models/GetFinanceBalanceV1ResponseService.js new file mode 100644 index 0000000..eaddcf5 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseService.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON, V1GetFinanceBalanceV1ResponseServicesMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseServicesMoney'; +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseService interface. + */ +export function instanceOfGetFinanceBalanceV1ResponseService(value) { + return true; +} +export function GetFinanceBalanceV1ResponseServiceFromJSON(json) { + return GetFinanceBalanceV1ResponseServiceFromJSONTyped(json, false); +} +export function GetFinanceBalanceV1ResponseServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON(json['amount']), + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function GetFinanceBalanceV1ResponseServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': V1GetFinanceBalanceV1ResponseServicesMoneyToJSON(value['amount']), + 'name': value['name'], + }; +} diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseTotal.d.ts b/dist/esm/models/GetFinanceBalanceV1ResponseTotal.d.ts new file mode 100644 index 0000000..5f95854 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseTotal.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponseAccruedMoney } from './V1GetFinanceBalanceV1ResponseAccruedMoney'; +import type { V1GetFinanceBalanceV1ResponseOpeningBalanceMoney } from './V1GetFinanceBalanceV1ResponseOpeningBalanceMoney'; +import type { V1GetFinanceBalanceV1ResponsePaymentsMoney } from './V1GetFinanceBalanceV1ResponsePaymentsMoney'; +import type { V1GetFinanceBalanceV1ResponseClosingBalanceMoney } from './V1GetFinanceBalanceV1ResponseClosingBalanceMoney'; +/** + * Общие данные по балансу за период. + * @export + * @interface GetFinanceBalanceV1ResponseTotal + */ +export interface GetFinanceBalanceV1ResponseTotal { + /** + * + * @type {V1GetFinanceBalanceV1ResponseAccruedMoney} + * @memberof GetFinanceBalanceV1ResponseTotal + */ + accrued?: V1GetFinanceBalanceV1ResponseAccruedMoney; + /** + * + * @type {V1GetFinanceBalanceV1ResponseClosingBalanceMoney} + * @memberof GetFinanceBalanceV1ResponseTotal + */ + closing_balance?: V1GetFinanceBalanceV1ResponseClosingBalanceMoney; + /** + * + * @type {V1GetFinanceBalanceV1ResponseOpeningBalanceMoney} + * @memberof GetFinanceBalanceV1ResponseTotal + */ + opening_balance?: V1GetFinanceBalanceV1ResponseOpeningBalanceMoney; + /** + * Выплаты за период. + * @type {Array} + * @memberof GetFinanceBalanceV1ResponseTotal + */ + payments?: Array; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseTotal interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseTotal(value: object): value is GetFinanceBalanceV1ResponseTotal; +export declare function GetFinanceBalanceV1ResponseTotalFromJSON(json: any): GetFinanceBalanceV1ResponseTotal; +export declare function GetFinanceBalanceV1ResponseTotalFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseTotal; +export declare function GetFinanceBalanceV1ResponseTotalToJSON(value?: GetFinanceBalanceV1ResponseTotal | null): any; diff --git a/dist/esm/models/GetFinanceBalanceV1ResponseTotal.js b/dist/esm/models/GetFinanceBalanceV1ResponseTotal.js new file mode 100644 index 0000000..64ce6a1 --- /dev/null +++ b/dist/esm/models/GetFinanceBalanceV1ResponseTotal.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON, V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseAccruedMoney'; +import { V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON, V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseOpeningBalanceMoney'; +import { V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON, V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON, } from './V1GetFinanceBalanceV1ResponsePaymentsMoney'; +import { V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON, V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON, } from './V1GetFinanceBalanceV1ResponseClosingBalanceMoney'; +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseTotal interface. + */ +export function instanceOfGetFinanceBalanceV1ResponseTotal(value) { + return true; +} +export function GetFinanceBalanceV1ResponseTotalFromJSON(json) { + return GetFinanceBalanceV1ResponseTotalFromJSONTyped(json, false); +} +export function GetFinanceBalanceV1ResponseTotalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON(json['accrued']), + 'closing_balance': json['closing_balance'] == null ? undefined : V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON(json['closing_balance']), + 'opening_balance': json['opening_balance'] == null ? undefined : V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON(json['opening_balance']), + 'payments': json['payments'] == null ? undefined : (json['payments'].map(V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON)), + }; +} +export function GetFinanceBalanceV1ResponseTotalToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON(value['accrued']), + 'closing_balance': V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON(value['closing_balance']), + 'opening_balance': V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON(value['opening_balance']), + 'payments': value['payments'] == null ? undefined : (value['payments'].map(V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON)), + }; +} diff --git a/dist/esm/models/GetFinanceProductsBuyoutResponseProduct.d.ts b/dist/esm/models/GetFinanceProductsBuyoutResponseProduct.d.ts new file mode 100644 index 0000000..cae2a45 --- /dev/null +++ b/dist/esm/models/GetFinanceProductsBuyoutResponseProduct.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetFinanceProductsBuyoutResponseProduct + */ +export interface GetFinanceProductsBuyoutResponseProduct { + /** + * Сумма к начислению. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + amount?: number; + /** + * Цена выкупа товара с НДС. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + buyout_price?: number; + /** + * Скидка по категории в процентах. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + deduction_by_category_percent?: number; + /** + * Название товара. + * @type {string} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + offer_id?: string; + /** + * Номер отправления. + * @type {string} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + posting_number?: string; + /** + * Количество товара. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + quantity?: number; + /** + * Цена продавца с учётом скидки. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + seller_price_per_instance?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + sku?: number; + /** + * Ставка НДС для товара в процентах. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + vat_percent?: number; +} +/** + * Check if a given object implements the GetFinanceProductsBuyoutResponseProduct interface. + */ +export declare function instanceOfGetFinanceProductsBuyoutResponseProduct(value: object): value is GetFinanceProductsBuyoutResponseProduct; +export declare function GetFinanceProductsBuyoutResponseProductFromJSON(json: any): GetFinanceProductsBuyoutResponseProduct; +export declare function GetFinanceProductsBuyoutResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceProductsBuyoutResponseProduct; +export declare function GetFinanceProductsBuyoutResponseProductToJSON(value?: GetFinanceProductsBuyoutResponseProduct | null): any; diff --git a/dist/esm/models/GetFinanceProductsBuyoutResponseProduct.js b/dist/esm/models/GetFinanceProductsBuyoutResponseProduct.js new file mode 100644 index 0000000..5f3624a --- /dev/null +++ b/dist/esm/models/GetFinanceProductsBuyoutResponseProduct.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetFinanceProductsBuyoutResponseProduct interface. + */ +export function instanceOfGetFinanceProductsBuyoutResponseProduct(value) { + return true; +} +export function GetFinanceProductsBuyoutResponseProductFromJSON(json) { + return GetFinanceProductsBuyoutResponseProductFromJSONTyped(json, false); +} +export function GetFinanceProductsBuyoutResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'buyout_price': json['buyout_price'] == null ? undefined : json['buyout_price'], + 'deduction_by_category_percent': json['deduction_by_category_percent'] == null ? undefined : json['deduction_by_category_percent'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'seller_price_per_instance': json['seller_price_per_instance'] == null ? undefined : json['seller_price_per_instance'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'vat_percent': json['vat_percent'] == null ? undefined : json['vat_percent'], + }; +} +export function GetFinanceProductsBuyoutResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'buyout_price': value['buyout_price'], + 'deduction_by_category_percent': value['deduction_by_category_percent'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'posting_number': value['posting_number'], + 'quantity': value['quantity'], + 'seller_price_per_instance': value['seller_price_per_instance'], + 'sku': value['sku'], + 'vat_percent': value['vat_percent'], + }; +} diff --git a/dist/esm/models/GetImportProductsInfoResponseResultItem.d.ts b/dist/esm/models/GetImportProductsInfoResponseResultItem.d.ts new file mode 100644 index 0000000..cad92ef --- /dev/null +++ b/dist/esm/models/GetImportProductsInfoResponseResultItem.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ItemError } from './V1ItemError'; +/** + * + * @export + * @interface GetImportProductsInfoResponseResultItem + */ +export interface GetImportProductsInfoResponseResultItem { + /** + * Идентификатор товара в системе продавца — артикул. + * + * Максимальная длина строки в значении поля — 50 символов. + * + * @type {string} + * @memberof GetImportProductsInfoResponseResultItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof GetImportProductsInfoResponseResultItem + */ + product_id?: number; + /** + * Статус создания или обновления товара. Информация о товаре обрабатывается очередями. + * Возможные значения параметра: + * - `pending` — товар в очереди на обработку; + * - `imported` — товар успешно загружен; + * - `failed` — товар загружен с ошибками; + * - `skipped` — товар не был обновлен, так как запрос не содержал изменений. + * + * @type {string} + * @memberof GetImportProductsInfoResponseResultItem + */ + status?: string; + /** + * Массив ошибок. + * @type {Array} + * @memberof GetImportProductsInfoResponseResultItem + */ + errors?: Array; +} +/** + * Check if a given object implements the GetImportProductsInfoResponseResultItem interface. + */ +export declare function instanceOfGetImportProductsInfoResponseResultItem(value: object): value is GetImportProductsInfoResponseResultItem; +export declare function GetImportProductsInfoResponseResultItemFromJSON(json: any): GetImportProductsInfoResponseResultItem; +export declare function GetImportProductsInfoResponseResultItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetImportProductsInfoResponseResultItem; +export declare function GetImportProductsInfoResponseResultItemToJSON(value?: GetImportProductsInfoResponseResultItem | null): any; diff --git a/dist/esm/models/GetImportProductsInfoResponseResultItem.js b/dist/esm/models/GetImportProductsInfoResponseResultItem.js new file mode 100644 index 0000000..49999dc --- /dev/null +++ b/dist/esm/models/GetImportProductsInfoResponseResultItem.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ItemErrorFromJSON, V1ItemErrorToJSON, } from './V1ItemError'; +/** + * Check if a given object implements the GetImportProductsInfoResponseResultItem interface. + */ +export function instanceOfGetImportProductsInfoResponseResultItem(value) { + return true; +} +export function GetImportProductsInfoResponseResultItemFromJSON(json) { + return GetImportProductsInfoResponseResultItemFromJSONTyped(json, false); +} +export function GetImportProductsInfoResponseResultItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'status': json['status'] == null ? undefined : json['status'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1ItemErrorFromJSON)), + }; +} +export function GetImportProductsInfoResponseResultItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'status': value['status'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1ItemErrorToJSON)), + }; +} diff --git a/dist/esm/models/GetProductAttributesResponseImage.d.ts b/dist/esm/models/GetProductAttributesResponseImage.d.ts new file mode 100644 index 0000000..bf6d6ff --- /dev/null +++ b/dist/esm/models/GetProductAttributesResponseImage.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductAttributesResponseImage + */ +export interface GetProductAttributesResponseImage { + /** + * `true`, если изображение главное и отображается первым на карточке товара. + * + * @type {boolean} + * @memberof GetProductAttributesResponseImage + */ + _default?: boolean; + /** + * + * @type {string} + * @memberof GetProductAttributesResponseImage + */ + file_name?: string; + /** + * + * @type {number} + * @memberof GetProductAttributesResponseImage + */ + index?: number; +} +/** + * Check if a given object implements the GetProductAttributesResponseImage interface. + */ +export declare function instanceOfGetProductAttributesResponseImage(value: object): value is GetProductAttributesResponseImage; +export declare function GetProductAttributesResponseImageFromJSON(json: any): GetProductAttributesResponseImage; +export declare function GetProductAttributesResponseImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductAttributesResponseImage; +export declare function GetProductAttributesResponseImageToJSON(value?: GetProductAttributesResponseImage | null): any; diff --git a/dist/esm/models/GetProductAttributesResponseImage.js b/dist/esm/models/GetProductAttributesResponseImage.js new file mode 100644 index 0000000..5b568b4 --- /dev/null +++ b/dist/esm/models/GetProductAttributesResponseImage.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductAttributesResponseImage interface. + */ +export function instanceOfGetProductAttributesResponseImage(value) { + return true; +} +export function GetProductAttributesResponseImageFromJSON(json) { + return GetProductAttributesResponseImageFromJSONTyped(json, false); +} +export function GetProductAttributesResponseImageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + '_default': json['default'] == null ? undefined : json['default'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'index': json['index'] == null ? undefined : json['index'], + }; +} +export function GetProductAttributesResponseImageToJSON(value) { + if (value == null) { + return value; + } + return { + 'default': value['_default'], + 'file_name': value['file_name'], + 'index': value['index'], + }; +} diff --git a/dist/esm/models/GetProductAttributesV3ResponseDictionaryValue.d.ts b/dist/esm/models/GetProductAttributesV3ResponseDictionaryValue.d.ts new file mode 100644 index 0000000..307f975 --- /dev/null +++ b/dist/esm/models/GetProductAttributesV3ResponseDictionaryValue.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductAttributesV3ResponseDictionaryValue + */ +export interface GetProductAttributesV3ResponseDictionaryValue { + /** + * Идентификатор характеристики в словаре. + * @type {number} + * @memberof GetProductAttributesV3ResponseDictionaryValue + */ + dictionaryValueId?: number; + /** + * Значение характеристики товара. + * @type {string} + * @memberof GetProductAttributesV3ResponseDictionaryValue + */ + value?: string; +} +/** + * Check if a given object implements the GetProductAttributesV3ResponseDictionaryValue interface. + */ +export declare function instanceOfGetProductAttributesV3ResponseDictionaryValue(value: object): value is GetProductAttributesV3ResponseDictionaryValue; +export declare function GetProductAttributesV3ResponseDictionaryValueFromJSON(json: any): GetProductAttributesV3ResponseDictionaryValue; +export declare function GetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductAttributesV3ResponseDictionaryValue; +export declare function GetProductAttributesV3ResponseDictionaryValueToJSON(value?: GetProductAttributesV3ResponseDictionaryValue | null): any; diff --git a/dist/esm/models/GetProductAttributesV3ResponseDictionaryValue.js b/dist/esm/models/GetProductAttributesV3ResponseDictionaryValue.js new file mode 100644 index 0000000..a1c6000 --- /dev/null +++ b/dist/esm/models/GetProductAttributesV3ResponseDictionaryValue.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductAttributesV3ResponseDictionaryValue interface. + */ +export function instanceOfGetProductAttributesV3ResponseDictionaryValue(value) { + return true; +} +export function GetProductAttributesV3ResponseDictionaryValueFromJSON(json) { + return GetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json, false); +} +export function GetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dictionaryValueId': json['dictionaryValueId'] == null ? undefined : json['dictionaryValueId'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function GetProductAttributesV3ResponseDictionaryValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'dictionaryValueId': value['dictionaryValueId'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/GetProductAttributesV4ResponseAttribute.d.ts b/dist/esm/models/GetProductAttributesV4ResponseAttribute.d.ts new file mode 100644 index 0000000..211a483 --- /dev/null +++ b/dist/esm/models/GetProductAttributesV4ResponseAttribute.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductAttributesV3ResponseDictionaryValue } from './GetProductAttributesV3ResponseDictionaryValue'; +/** + * + * @export + * @interface GetProductAttributesV4ResponseAttribute + */ +export interface GetProductAttributesV4ResponseAttribute { + /** + * Идентификатор характеристики. + * @type {number} + * @memberof GetProductAttributesV4ResponseAttribute + */ + id?: number; + /** + * Идентификатор характеристики, которая поддерживает вложенные свойства. Например, у характеристики «Процессор» есть вложенные характеристики «Производитель» и «L2 Cache». У каждой из вложенных характеристик может быть несколько вариантов значений. + * @type {number} + * @memberof GetProductAttributesV4ResponseAttribute + */ + complex_id?: number; + /** + * Массив значений характеристик. + * @type {Array} + * @memberof GetProductAttributesV4ResponseAttribute + */ + values?: Array; +} +/** + * Check if a given object implements the GetProductAttributesV4ResponseAttribute interface. + */ +export declare function instanceOfGetProductAttributesV4ResponseAttribute(value: object): value is GetProductAttributesV4ResponseAttribute; +export declare function GetProductAttributesV4ResponseAttributeFromJSON(json: any): GetProductAttributesV4ResponseAttribute; +export declare function GetProductAttributesV4ResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductAttributesV4ResponseAttribute; +export declare function GetProductAttributesV4ResponseAttributeToJSON(value?: GetProductAttributesV4ResponseAttribute | null): any; diff --git a/dist/esm/models/GetProductAttributesV4ResponseAttribute.js b/dist/esm/models/GetProductAttributesV4ResponseAttribute.js new file mode 100644 index 0000000..f8d7170 --- /dev/null +++ b/dist/esm/models/GetProductAttributesV4ResponseAttribute.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetProductAttributesV3ResponseDictionaryValueFromJSON, GetProductAttributesV3ResponseDictionaryValueToJSON, } from './GetProductAttributesV3ResponseDictionaryValue'; +/** + * Check if a given object implements the GetProductAttributesV4ResponseAttribute interface. + */ +export function instanceOfGetProductAttributesV4ResponseAttribute(value) { + return true; +} +export function GetProductAttributesV4ResponseAttributeFromJSON(json) { + return GetProductAttributesV4ResponseAttributeFromJSONTyped(json, false); +} +export function GetProductAttributesV4ResponseAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'complex_id': json['complex_id'] == null ? undefined : json['complex_id'], + 'values': json['values'] == null ? undefined : (json['values'].map(GetProductAttributesV3ResponseDictionaryValueFromJSON)), + }; +} +export function GetProductAttributesV4ResponseAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'complex_id': value['complex_id'], + 'values': value['values'] == null ? undefined : (value['values'].map(GetProductAttributesV3ResponseDictionaryValueToJSON)), + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseAvailability.d.ts b/dist/esm/models/GetProductInfoListResponseAvailability.d.ts new file mode 100644 index 0000000..4c71d37 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseAvailability.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AvailabilityReason } from './AvailabilityReason'; +/** + * + * @export + * @interface GetProductInfoListResponseAvailability + */ +export interface GetProductInfoListResponseAvailability { + /** + * Доступность товара. + * @type {string} + * @memberof GetProductInfoListResponseAvailability + */ + availability?: string; + /** + * Причина, почему товар скрыт. + * @type {Array} + * @memberof GetProductInfoListResponseAvailability + */ + reasons?: Array; + /** + * Идентификатор товара. + * @type {number} + * @memberof GetProductInfoListResponseAvailability + */ + sku?: number; + /** + * Ссылка на источник. + * @type {string} + * @memberof GetProductInfoListResponseAvailability + */ + source?: string; +} +/** + * Check if a given object implements the GetProductInfoListResponseAvailability interface. + */ +export declare function instanceOfGetProductInfoListResponseAvailability(value: object): value is GetProductInfoListResponseAvailability; +export declare function GetProductInfoListResponseAvailabilityFromJSON(json: any): GetProductInfoListResponseAvailability; +export declare function GetProductInfoListResponseAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseAvailability; +export declare function GetProductInfoListResponseAvailabilityToJSON(value?: GetProductInfoListResponseAvailability | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseAvailability.js b/dist/esm/models/GetProductInfoListResponseAvailability.js new file mode 100644 index 0000000..89e9fa9 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseAvailability.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AvailabilityReasonFromJSON, AvailabilityReasonToJSON, } from './AvailabilityReason'; +/** + * Check if a given object implements the GetProductInfoListResponseAvailability interface. + */ +export function instanceOfGetProductInfoListResponseAvailability(value) { + return true; +} +export function GetProductInfoListResponseAvailabilityFromJSON(json) { + return GetProductInfoListResponseAvailabilityFromJSONTyped(json, false); +} +export function GetProductInfoListResponseAvailabilityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'availability': json['availability'] == null ? undefined : json['availability'], + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(AvailabilityReasonFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'source': json['source'] == null ? undefined : json['source'], + }; +} +export function GetProductInfoListResponseAvailabilityToJSON(value) { + if (value == null) { + return value; + } + return { + 'availability': value['availability'], + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(AvailabilityReasonToJSON)), + 'sku': value['sku'], + 'source': value['source'], + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseCommission.d.ts b/dist/esm/models/GetProductInfoListResponseCommission.d.ts new file mode 100644 index 0000000..18af865 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseCommission.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductInfoListResponseCommission + */ +export interface GetProductInfoListResponseCommission { + /** + * Стоимость доставки. + * @type {number} + * @memberof GetProductInfoListResponseCommission + */ + delivery_amount?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof GetProductInfoListResponseCommission + */ + percent?: number; + /** + * Стоимость возврата. + * @type {number} + * @memberof GetProductInfoListResponseCommission + */ + return_amount?: number; + /** + * Схема продажи. + * @type {string} + * @memberof GetProductInfoListResponseCommission + */ + sale_schema?: string; + /** + * Сумма комиссии. + * @type {number} + * @memberof GetProductInfoListResponseCommission + */ + value?: number; +} +/** + * Check if a given object implements the GetProductInfoListResponseCommission interface. + */ +export declare function instanceOfGetProductInfoListResponseCommission(value: object): value is GetProductInfoListResponseCommission; +export declare function GetProductInfoListResponseCommissionFromJSON(json: any): GetProductInfoListResponseCommission; +export declare function GetProductInfoListResponseCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseCommission; +export declare function GetProductInfoListResponseCommissionToJSON(value?: GetProductInfoListResponseCommission | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseCommission.js b/dist/esm/models/GetProductInfoListResponseCommission.js new file mode 100644 index 0000000..3cc30d3 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseCommission.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductInfoListResponseCommission interface. + */ +export function instanceOfGetProductInfoListResponseCommission(value) { + return true; +} +export function GetProductInfoListResponseCommissionFromJSON(json) { + return GetProductInfoListResponseCommissionFromJSONTyped(json, false); +} +export function GetProductInfoListResponseCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_amount': json['delivery_amount'] == null ? undefined : json['delivery_amount'], + 'percent': json['percent'] == null ? undefined : json['percent'], + 'return_amount': json['return_amount'] == null ? undefined : json['return_amount'], + 'sale_schema': json['sale_schema'] == null ? undefined : json['sale_schema'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function GetProductInfoListResponseCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_amount': value['delivery_amount'], + 'percent': value['percent'], + 'return_amount': value['return_amount'], + 'sale_schema': value['sale_schema'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseError.d.ts b/dist/esm/models/GetProductInfoListResponseError.d.ts new file mode 100644 index 0000000..79b0668 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseError.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorErrorLevel } from './ErrorErrorLevel'; +import type { ErrorHumanTexts } from './ErrorHumanTexts'; +/** + * + * @export + * @interface GetProductInfoListResponseError + */ +export interface GetProductInfoListResponseError { + /** + * Идентификатор характеристики. + * @type {number} + * @memberof GetProductInfoListResponseError + */ + attribute_id?: number; + /** + * Код ошибки. + * @type {string} + * @memberof GetProductInfoListResponseError + */ + code?: string; + /** + * Поле, в котором найдена ошибка. + * @type {string} + * @memberof GetProductInfoListResponseError + */ + field?: string; + /** + * + * @type {ErrorErrorLevel} + * @memberof GetProductInfoListResponseError + */ + level?: ErrorErrorLevel; + /** + * Статус товара, в котором произошла ошибка. + * @type {string} + * @memberof GetProductInfoListResponseError + */ + state?: string; + /** + * + * @type {ErrorHumanTexts} + * @memberof GetProductInfoListResponseError + */ + texts?: ErrorHumanTexts; +} +/** + * Check if a given object implements the GetProductInfoListResponseError interface. + */ +export declare function instanceOfGetProductInfoListResponseError(value: object): value is GetProductInfoListResponseError; +export declare function GetProductInfoListResponseErrorFromJSON(json: any): GetProductInfoListResponseError; +export declare function GetProductInfoListResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseError; +export declare function GetProductInfoListResponseErrorToJSON(value?: GetProductInfoListResponseError | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseError.js b/dist/esm/models/GetProductInfoListResponseError.js new file mode 100644 index 0000000..879b9c1 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseError.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ErrorErrorLevelFromJSON, ErrorErrorLevelToJSON, } from './ErrorErrorLevel'; +import { ErrorHumanTextsFromJSON, ErrorHumanTextsToJSON, } from './ErrorHumanTexts'; +/** + * Check if a given object implements the GetProductInfoListResponseError interface. + */ +export function instanceOfGetProductInfoListResponseError(value) { + return true; +} +export function GetProductInfoListResponseErrorFromJSON(json) { + return GetProductInfoListResponseErrorFromJSONTyped(json, false); +} +export function GetProductInfoListResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attribute_id': json['attribute_id'] == null ? undefined : json['attribute_id'], + 'code': json['code'] == null ? undefined : json['code'], + 'field': json['field'] == null ? undefined : json['field'], + 'level': json['level'] == null ? undefined : ErrorErrorLevelFromJSON(json['level']), + 'state': json['state'] == null ? undefined : json['state'], + 'texts': json['texts'] == null ? undefined : ErrorHumanTextsFromJSON(json['texts']), + }; +} +export function GetProductInfoListResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'attribute_id': value['attribute_id'], + 'code': value['code'], + 'field': value['field'], + 'level': ErrorErrorLevelToJSON(value['level']), + 'state': value['state'], + 'texts': ErrorHumanTextsToJSON(value['texts']), + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseModelInfo.d.ts b/dist/esm/models/GetProductInfoListResponseModelInfo.d.ts new file mode 100644 index 0000000..3ac1656 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseModelInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о модели товара. + * @export + * @interface GetProductInfoListResponseModelInfo + */ +export interface GetProductInfoListResponseModelInfo { + /** + * Количество товаров в ответе. + * @type {number} + * @memberof GetProductInfoListResponseModelInfo + */ + count?: number; + /** + * Идентификатор модели товара. + * @type {number} + * @memberof GetProductInfoListResponseModelInfo + */ + model_id?: number; +} +/** + * Check if a given object implements the GetProductInfoListResponseModelInfo interface. + */ +export declare function instanceOfGetProductInfoListResponseModelInfo(value: object): value is GetProductInfoListResponseModelInfo; +export declare function GetProductInfoListResponseModelInfoFromJSON(json: any): GetProductInfoListResponseModelInfo; +export declare function GetProductInfoListResponseModelInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseModelInfo; +export declare function GetProductInfoListResponseModelInfoToJSON(value?: GetProductInfoListResponseModelInfo | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseModelInfo.js b/dist/esm/models/GetProductInfoListResponseModelInfo.js new file mode 100644 index 0000000..5de8460 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseModelInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductInfoListResponseModelInfo interface. + */ +export function instanceOfGetProductInfoListResponseModelInfo(value) { + return true; +} +export function GetProductInfoListResponseModelInfoFromJSON(json) { + return GetProductInfoListResponseModelInfoFromJSONTyped(json, false); +} +export function GetProductInfoListResponseModelInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'model_id': json['model_id'] == null ? undefined : json['model_id'], + }; +} +export function GetProductInfoListResponseModelInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'model_id': value['model_id'], + }; +} diff --git a/dist/esm/models/GetProductInfoListResponsePriceIndexes.d.ts b/dist/esm/models/GetProductInfoListResponsePriceIndexes.d.ts new file mode 100644 index 0000000..31ff23b --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponsePriceIndexes.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PriceIndexesIndexDataSelf } from './PriceIndexesIndexDataSelf'; +import type { PriceIndexesColorIndex } from './PriceIndexesColorIndex'; +import type { PriceIndexesIndexDataExternal } from './PriceIndexesIndexDataExternal'; +import type { PriceIndexesIndexDataOzon } from './PriceIndexesIndexDataOzon'; +/** + * Ценовые индексы товара. + * @export + * @interface GetProductInfoListResponsePriceIndexes + */ +export interface GetProductInfoListResponsePriceIndexes { + /** + * + * @type {PriceIndexesColorIndex} + * @memberof GetProductInfoListResponsePriceIndexes + */ + color_index?: PriceIndexesColorIndex; + /** + * + * @type {PriceIndexesIndexDataExternal} + * @memberof GetProductInfoListResponsePriceIndexes + */ + external_index_data?: PriceIndexesIndexDataExternal; + /** + * + * @type {PriceIndexesIndexDataOzon} + * @memberof GetProductInfoListResponsePriceIndexes + */ + ozon_index_data?: PriceIndexesIndexDataOzon; + /** + * + * @type {PriceIndexesIndexDataSelf} + * @memberof GetProductInfoListResponsePriceIndexes + */ + self_marketplaces_index_data?: PriceIndexesIndexDataSelf; +} +/** + * Check if a given object implements the GetProductInfoListResponsePriceIndexes interface. + */ +export declare function instanceOfGetProductInfoListResponsePriceIndexes(value: object): value is GetProductInfoListResponsePriceIndexes; +export declare function GetProductInfoListResponsePriceIndexesFromJSON(json: any): GetProductInfoListResponsePriceIndexes; +export declare function GetProductInfoListResponsePriceIndexesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponsePriceIndexes; +export declare function GetProductInfoListResponsePriceIndexesToJSON(value?: GetProductInfoListResponsePriceIndexes | null): any; diff --git a/dist/esm/models/GetProductInfoListResponsePriceIndexes.js b/dist/esm/models/GetProductInfoListResponsePriceIndexes.js new file mode 100644 index 0000000..dda1ccc --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponsePriceIndexes.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PriceIndexesIndexDataSelfFromJSON, PriceIndexesIndexDataSelfToJSON, } from './PriceIndexesIndexDataSelf'; +import { PriceIndexesColorIndexFromJSON, PriceIndexesColorIndexToJSON, } from './PriceIndexesColorIndex'; +import { PriceIndexesIndexDataExternalFromJSON, PriceIndexesIndexDataExternalToJSON, } from './PriceIndexesIndexDataExternal'; +import { PriceIndexesIndexDataOzonFromJSON, PriceIndexesIndexDataOzonToJSON, } from './PriceIndexesIndexDataOzon'; +/** + * Check if a given object implements the GetProductInfoListResponsePriceIndexes interface. + */ +export function instanceOfGetProductInfoListResponsePriceIndexes(value) { + return true; +} +export function GetProductInfoListResponsePriceIndexesFromJSON(json) { + return GetProductInfoListResponsePriceIndexesFromJSONTyped(json, false); +} +export function GetProductInfoListResponsePriceIndexesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'color_index': json['color_index'] == null ? undefined : PriceIndexesColorIndexFromJSON(json['color_index']), + 'external_index_data': json['external_index_data'] == null ? undefined : PriceIndexesIndexDataExternalFromJSON(json['external_index_data']), + 'ozon_index_data': json['ozon_index_data'] == null ? undefined : PriceIndexesIndexDataOzonFromJSON(json['ozon_index_data']), + 'self_marketplaces_index_data': json['self_marketplaces_index_data'] == null ? undefined : PriceIndexesIndexDataSelfFromJSON(json['self_marketplaces_index_data']), + }; +} +export function GetProductInfoListResponsePriceIndexesToJSON(value) { + if (value == null) { + return value; + } + return { + 'color_index': PriceIndexesColorIndexToJSON(value['color_index']), + 'external_index_data': PriceIndexesIndexDataExternalToJSON(value['external_index_data']), + 'ozon_index_data': PriceIndexesIndexDataOzonToJSON(value['ozon_index_data']), + 'self_marketplaces_index_data': PriceIndexesIndexDataSelfToJSON(value['self_marketplaces_index_data']), + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseSource.d.ts b/dist/esm/models/GetProductInfoListResponseSource.d.ts new file mode 100644 index 0000000..4c1fa13 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseSource.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SourceShipmentType } from './SourceShipmentType'; +/** + * + * @export + * @interface GetProductInfoListResponseSource + */ +export interface GetProductInfoListResponseSource { + /** + * Дата создания товара. + * @type {string} + * @memberof GetProductInfoListResponseSource + */ + created_at?: string; + /** + * Список квантов с товарами. + * @type {string} + * @memberof GetProductInfoListResponseSource + */ + quant_code?: string; + /** + * + * @type {SourceShipmentType} + * @memberof GetProductInfoListResponseSource + */ + shipment_type?: SourceShipmentType; + /** + * Идентификатор товара на Ozon — SKU. + * @type {number} + * @memberof GetProductInfoListResponseSource + */ + sku?: number; + /** + * Схема продажи: + * - `SDS` — FBO и FBS с одинаковым SKU; + * - `FBO`; + * - `FBS`. + * + * @type {string} + * @memberof GetProductInfoListResponseSource + */ + source?: string; +} +/** + * Check if a given object implements the GetProductInfoListResponseSource interface. + */ +export declare function instanceOfGetProductInfoListResponseSource(value: object): value is GetProductInfoListResponseSource; +export declare function GetProductInfoListResponseSourceFromJSON(json: any): GetProductInfoListResponseSource; +export declare function GetProductInfoListResponseSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseSource; +export declare function GetProductInfoListResponseSourceToJSON(value?: GetProductInfoListResponseSource | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseSource.js b/dist/esm/models/GetProductInfoListResponseSource.js new file mode 100644 index 0000000..2e7bb82 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseSource.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SourceShipmentTypeFromJSON, SourceShipmentTypeToJSON, } from './SourceShipmentType'; +/** + * Check if a given object implements the GetProductInfoListResponseSource interface. + */ +export function instanceOfGetProductInfoListResponseSource(value) { + return true; +} +export function GetProductInfoListResponseSourceFromJSON(json) { + return GetProductInfoListResponseSourceFromJSONTyped(json, false); +} +export function GetProductInfoListResponseSourceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'quant_code': json['quant_code'] == null ? undefined : json['quant_code'], + 'shipment_type': json['shipment_type'] == null ? undefined : SourceShipmentTypeFromJSON(json['shipment_type']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'source': json['source'] == null ? undefined : json['source'], + }; +} +export function GetProductInfoListResponseSourceToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'quant_code': value['quant_code'], + 'shipment_type': SourceShipmentTypeToJSON(value['shipment_type']), + 'sku': value['sku'], + 'source': value['source'], + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseStatuses.d.ts b/dist/esm/models/GetProductInfoListResponseStatuses.d.ts new file mode 100644 index 0000000..7941f64 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseStatuses.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о статусах товара. + * @export + * @interface GetProductInfoListResponseStatuses + */ +export interface GetProductInfoListResponseStatuses { + /** + * `true`, если товар создан корректно. + * + * @type {boolean} + * @memberof GetProductInfoListResponseStatuses + */ + is_created?: boolean; + /** + * Статус модерации. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + moderate_status?: string; + /** + * Статус товара. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status?: string; + /** + * Описание статуса товара. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_description?: string; + /** + * Статус товара, в котором возникла ошибка. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_failed?: string; + /** + * Название статуса товара. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_name?: string; + /** + * Описание статуса. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_tooltip?: string; + /** + * Время последнего изменения статуса. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_updated_at?: string; + /** + * Статус валидации. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + validation_status?: string; +} +/** + * Check if a given object implements the GetProductInfoListResponseStatuses interface. + */ +export declare function instanceOfGetProductInfoListResponseStatuses(value: object): value is GetProductInfoListResponseStatuses; +export declare function GetProductInfoListResponseStatusesFromJSON(json: any): GetProductInfoListResponseStatuses; +export declare function GetProductInfoListResponseStatusesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseStatuses; +export declare function GetProductInfoListResponseStatusesToJSON(value?: GetProductInfoListResponseStatuses | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseStatuses.js b/dist/esm/models/GetProductInfoListResponseStatuses.js new file mode 100644 index 0000000..27d8760 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseStatuses.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductInfoListResponseStatuses interface. + */ +export function instanceOfGetProductInfoListResponseStatuses(value) { + return true; +} +export function GetProductInfoListResponseStatusesFromJSON(json) { + return GetProductInfoListResponseStatusesFromJSONTyped(json, false); +} +export function GetProductInfoListResponseStatusesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_created': json['is_created'] == null ? undefined : json['is_created'], + 'moderate_status': json['moderate_status'] == null ? undefined : json['moderate_status'], + 'status': json['status'] == null ? undefined : json['status'], + 'status_description': json['status_description'] == null ? undefined : json['status_description'], + 'status_failed': json['status_failed'] == null ? undefined : json['status_failed'], + 'status_name': json['status_name'] == null ? undefined : json['status_name'], + 'status_tooltip': json['status_tooltip'] == null ? undefined : json['status_tooltip'], + 'status_updated_at': json['status_updated_at'] == null ? undefined : json['status_updated_at'], + 'validation_status': json['validation_status'] == null ? undefined : json['validation_status'], + }; +} +export function GetProductInfoListResponseStatusesToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_created': value['is_created'], + 'moderate_status': value['moderate_status'], + 'status': value['status'], + 'status_description': value['status_description'], + 'status_failed': value['status_failed'], + 'status_name': value['status_name'], + 'status_tooltip': value['status_tooltip'], + 'status_updated_at': value['status_updated_at'], + 'validation_status': value['validation_status'], + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseStocks.d.ts b/dist/esm/models/GetProductInfoListResponseStocks.d.ts new file mode 100644 index 0000000..d4557c2 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseStocks.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductInfoListResponseStocksStock } from './GetProductInfoListResponseStocksStock'; +/** + * Информация об остатках товара. + * @export + * @interface GetProductInfoListResponseStocks + */ +export interface GetProductInfoListResponseStocks { + /** + * `true`, если есть остаток на складах. + * + * @type {boolean} + * @memberof GetProductInfoListResponseStocks + */ + has_stock?: boolean; + /** + * Статус остатков товара. + * @type {Array} + * @memberof GetProductInfoListResponseStocks + */ + stocks?: Array; +} +/** + * Check if a given object implements the GetProductInfoListResponseStocks interface. + */ +export declare function instanceOfGetProductInfoListResponseStocks(value: object): value is GetProductInfoListResponseStocks; +export declare function GetProductInfoListResponseStocksFromJSON(json: any): GetProductInfoListResponseStocks; +export declare function GetProductInfoListResponseStocksFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseStocks; +export declare function GetProductInfoListResponseStocksToJSON(value?: GetProductInfoListResponseStocks | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseStocks.js b/dist/esm/models/GetProductInfoListResponseStocks.js new file mode 100644 index 0000000..495b216 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseStocks.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetProductInfoListResponseStocksStockFromJSON, GetProductInfoListResponseStocksStockToJSON, } from './GetProductInfoListResponseStocksStock'; +/** + * Check if a given object implements the GetProductInfoListResponseStocks interface. + */ +export function instanceOfGetProductInfoListResponseStocks(value) { + return true; +} +export function GetProductInfoListResponseStocksFromJSON(json) { + return GetProductInfoListResponseStocksFromJSONTyped(json, false); +} +export function GetProductInfoListResponseStocksFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_stock': json['has_stock'] == null ? undefined : json['has_stock'], + 'stocks': json['stocks'] == null ? undefined : (json['stocks'].map(GetProductInfoListResponseStocksStockFromJSON)), + }; +} +export function GetProductInfoListResponseStocksToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_stock': value['has_stock'], + 'stocks': value['stocks'] == null ? undefined : (value['stocks'].map(GetProductInfoListResponseStocksStockToJSON)), + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseStocksStock.d.ts b/dist/esm/models/GetProductInfoListResponseStocksStock.d.ts new file mode 100644 index 0000000..95fd341 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseStocksStock.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductInfoListResponseStocksStock + */ +export interface GetProductInfoListResponseStocksStock { + /** + * Сейчас на складе. + * @type {number} + * @memberof GetProductInfoListResponseStocksStock + */ + present?: number; + /** + * Зарезервировано. + * @type {number} + * @memberof GetProductInfoListResponseStocksStock + */ + reserved?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetProductInfoListResponseStocksStock + */ + sku?: number; + /** + * Схема продажи. + * @type {string} + * @memberof GetProductInfoListResponseStocksStock + */ + source?: string; +} +/** + * Check if a given object implements the GetProductInfoListResponseStocksStock interface. + */ +export declare function instanceOfGetProductInfoListResponseStocksStock(value: object): value is GetProductInfoListResponseStocksStock; +export declare function GetProductInfoListResponseStocksStockFromJSON(json: any): GetProductInfoListResponseStocksStock; +export declare function GetProductInfoListResponseStocksStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseStocksStock; +export declare function GetProductInfoListResponseStocksStockToJSON(value?: GetProductInfoListResponseStocksStock | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseStocksStock.js b/dist/esm/models/GetProductInfoListResponseStocksStock.js new file mode 100644 index 0000000..351a27d --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseStocksStock.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductInfoListResponseStocksStock interface. + */ +export function instanceOfGetProductInfoListResponseStocksStock(value) { + return true; +} +export function GetProductInfoListResponseStocksStockFromJSON(json) { + return GetProductInfoListResponseStocksStockFromJSONTyped(json, false); +} +export function GetProductInfoListResponseStocksStockFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'present': json['present'] == null ? undefined : json['present'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'source': json['source'] == null ? undefined : json['source'], + }; +} +export function GetProductInfoListResponseStocksStockToJSON(value) { + if (value == null) { + return value; + } + return { + 'present': value['present'], + 'reserved': value['reserved'], + 'sku': value['sku'], + 'source': value['source'], + }; +} diff --git a/dist/esm/models/GetProductInfoListResponseVisibilityDetails.d.ts b/dist/esm/models/GetProductInfoListResponseVisibilityDetails.d.ts new file mode 100644 index 0000000..b579c89 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseVisibilityDetails.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Настройки видимости товара. + * @export + * @interface GetProductInfoListResponseVisibilityDetails + */ +export interface GetProductInfoListResponseVisibilityDetails { + /** + * Если установлена цена — `true`. + * @type {boolean} + * @memberof GetProductInfoListResponseVisibilityDetails + */ + has_price?: boolean; + /** + * Если есть остаток на складах — `true`. + * @type {boolean} + * @memberof GetProductInfoListResponseVisibilityDetails + */ + has_stock?: boolean; +} +/** + * Check if a given object implements the GetProductInfoListResponseVisibilityDetails interface. + */ +export declare function instanceOfGetProductInfoListResponseVisibilityDetails(value: object): value is GetProductInfoListResponseVisibilityDetails; +export declare function GetProductInfoListResponseVisibilityDetailsFromJSON(json: any): GetProductInfoListResponseVisibilityDetails; +export declare function GetProductInfoListResponseVisibilityDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseVisibilityDetails; +export declare function GetProductInfoListResponseVisibilityDetailsToJSON(value?: GetProductInfoListResponseVisibilityDetails | null): any; diff --git a/dist/esm/models/GetProductInfoListResponseVisibilityDetails.js b/dist/esm/models/GetProductInfoListResponseVisibilityDetails.js new file mode 100644 index 0000000..3420670 --- /dev/null +++ b/dist/esm/models/GetProductInfoListResponseVisibilityDetails.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductInfoListResponseVisibilityDetails interface. + */ +export function instanceOfGetProductInfoListResponseVisibilityDetails(value) { + return true; +} +export function GetProductInfoListResponseVisibilityDetailsFromJSON(json) { + return GetProductInfoListResponseVisibilityDetailsFromJSONTyped(json, false); +} +export function GetProductInfoListResponseVisibilityDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_price': json['has_price'] == null ? undefined : json['has_price'], + 'has_stock': json['has_stock'] == null ? undefined : json['has_stock'], + }; +} +export function GetProductInfoListResponseVisibilityDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_price': value['has_price'], + 'has_stock': value['has_stock'], + }; +} diff --git a/dist/esm/models/GetProductInfoPricesResponseItemPriceIndexes.d.ts b/dist/esm/models/GetProductInfoPricesResponseItemPriceIndexes.d.ts new file mode 100644 index 0000000..b6ff9ef --- /dev/null +++ b/dist/esm/models/GetProductInfoPricesResponseItemPriceIndexes.d.ts @@ -0,0 +1,72 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PriceIndexesIndexExternalData } from './PriceIndexesIndexExternalData'; +import type { PriceIndexesIndexSelfData } from './PriceIndexesIndexSelfData'; +import type { PriceIndexesIndexOzonData } from './PriceIndexesIndexOzonData'; +/** + * Индексы цены товара. + * + * [Подробнее об индексе цен в Базе знаний продавца](https://seller-edu.ozon.ru/seller-rating/metrics/price-index) + * + * @export + * @interface GetProductInfoPricesResponseItemPriceIndexes + */ +export interface GetProductInfoPricesResponseItemPriceIndexes { + /** + * Итоговый индекс цены товара: + * - `WITHOUT_INDEX` — нет индекса, + * - `SUPER` — супервыгодный, + * - `GREEN` — выгодный, + * - `YELLOW` — умеренный, + * - `RED` — невыгодный. + * + * @type {string} + * @memberof GetProductInfoPricesResponseItemPriceIndexes + */ + color_index?: GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum; + /** + * + * @type {PriceIndexesIndexExternalData} + * @memberof GetProductInfoPricesResponseItemPriceIndexes + */ + external_index_data?: PriceIndexesIndexExternalData; + /** + * + * @type {PriceIndexesIndexOzonData} + * @memberof GetProductInfoPricesResponseItemPriceIndexes + */ + ozon_index_data?: PriceIndexesIndexOzonData; + /** + * + * @type {PriceIndexesIndexSelfData} + * @memberof GetProductInfoPricesResponseItemPriceIndexes + */ + self_marketplaces_index_data?: PriceIndexesIndexSelfData; +} +/** + * @export + */ +export declare const GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum: { + readonly WITHOUT_INDEX: "WITHOUT_INDEX"; + readonly GREEN: "GREEN"; + readonly YELLOW: "YELLOW"; + readonly RED: "RED"; + readonly SUPER: "SUPER"; +}; +export type GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum = typeof GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum[keyof typeof GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum]; +/** + * Check if a given object implements the GetProductInfoPricesResponseItemPriceIndexes interface. + */ +export declare function instanceOfGetProductInfoPricesResponseItemPriceIndexes(value: object): value is GetProductInfoPricesResponseItemPriceIndexes; +export declare function GetProductInfoPricesResponseItemPriceIndexesFromJSON(json: any): GetProductInfoPricesResponseItemPriceIndexes; +export declare function GetProductInfoPricesResponseItemPriceIndexesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoPricesResponseItemPriceIndexes; +export declare function GetProductInfoPricesResponseItemPriceIndexesToJSON(value?: GetProductInfoPricesResponseItemPriceIndexes | null): any; diff --git a/dist/esm/models/GetProductInfoPricesResponseItemPriceIndexes.js b/dist/esm/models/GetProductInfoPricesResponseItemPriceIndexes.js new file mode 100644 index 0000000..13cf415 --- /dev/null +++ b/dist/esm/models/GetProductInfoPricesResponseItemPriceIndexes.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PriceIndexesIndexExternalDataFromJSON, PriceIndexesIndexExternalDataToJSON, } from './PriceIndexesIndexExternalData'; +import { PriceIndexesIndexSelfDataFromJSON, PriceIndexesIndexSelfDataToJSON, } from './PriceIndexesIndexSelfData'; +import { PriceIndexesIndexOzonDataFromJSON, PriceIndexesIndexOzonDataToJSON, } from './PriceIndexesIndexOzonData'; +/** + * @export + */ +export const GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum = { + WITHOUT_INDEX: 'WITHOUT_INDEX', + GREEN: 'GREEN', + YELLOW: 'YELLOW', + RED: 'RED', + SUPER: 'SUPER' +}; +/** + * Check if a given object implements the GetProductInfoPricesResponseItemPriceIndexes interface. + */ +export function instanceOfGetProductInfoPricesResponseItemPriceIndexes(value) { + return true; +} +export function GetProductInfoPricesResponseItemPriceIndexesFromJSON(json) { + return GetProductInfoPricesResponseItemPriceIndexesFromJSONTyped(json, false); +} +export function GetProductInfoPricesResponseItemPriceIndexesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'color_index': json['color_index'] == null ? undefined : json['color_index'], + 'external_index_data': json['external_index_data'] == null ? undefined : PriceIndexesIndexExternalDataFromJSON(json['external_index_data']), + 'ozon_index_data': json['ozon_index_data'] == null ? undefined : PriceIndexesIndexOzonDataFromJSON(json['ozon_index_data']), + 'self_marketplaces_index_data': json['self_marketplaces_index_data'] == null ? undefined : PriceIndexesIndexSelfDataFromJSON(json['self_marketplaces_index_data']), + }; +} +export function GetProductInfoPricesResponseItemPriceIndexesToJSON(value) { + if (value == null) { + return value; + } + return { + 'color_index': value['color_index'], + 'external_index_data': PriceIndexesIndexExternalDataToJSON(value['external_index_data']), + 'ozon_index_data': PriceIndexesIndexOzonDataToJSON(value['ozon_index_data']), + 'self_marketplaces_index_data': PriceIndexesIndexSelfDataToJSON(value['self_marketplaces_index_data']), + }; +} diff --git a/dist/esm/models/GetProductInfoStocksResponseStock.d.ts b/dist/esm/models/GetProductInfoStocksResponseStock.d.ts new file mode 100644 index 0000000..b255adc --- /dev/null +++ b/dist/esm/models/GetProductInfoStocksResponseStock.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StockShipmentType } from './StockShipmentType'; +/** + * + * @export + * @interface GetProductInfoStocksResponseStock + */ +export interface GetProductInfoStocksResponseStock { + /** + * Сейчас на складе. + * @type {number} + * @memberof GetProductInfoStocksResponseStock + */ + present?: number; + /** + * Зарезервировано. + * @type {number} + * @memberof GetProductInfoStocksResponseStock + */ + reserved?: number; + /** + * + * @type {StockShipmentType} + * @memberof GetProductInfoStocksResponseStock + */ + shipment_type?: StockShipmentType; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetProductInfoStocksResponseStock + */ + sku?: number; + /** + * Тип склада: + * - `fbs` — склад продавца, доставка силами Ozon; + * - `rfbs` — склад продавца, доставка силами продавца; + * - `fbo` — склад Ozon; + * - `fbp` — склад партнёра. + * + * @type {string} + * @memberof GetProductInfoStocksResponseStock + */ + type?: string; + /** + * Идентификаторы складов, на которых хранился или хранится товар. + * @type {Array} + * @memberof GetProductInfoStocksResponseStock + * @deprecated + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the GetProductInfoStocksResponseStock interface. + */ +export declare function instanceOfGetProductInfoStocksResponseStock(value: object): value is GetProductInfoStocksResponseStock; +export declare function GetProductInfoStocksResponseStockFromJSON(json: any): GetProductInfoStocksResponseStock; +export declare function GetProductInfoStocksResponseStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoStocksResponseStock; +export declare function GetProductInfoStocksResponseStockToJSON(value?: GetProductInfoStocksResponseStock | null): any; diff --git a/dist/esm/models/GetProductInfoStocksResponseStock.js b/dist/esm/models/GetProductInfoStocksResponseStock.js new file mode 100644 index 0000000..de0c0d4 --- /dev/null +++ b/dist/esm/models/GetProductInfoStocksResponseStock.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { StockShipmentTypeFromJSON, StockShipmentTypeToJSON, } from './StockShipmentType'; +/** + * Check if a given object implements the GetProductInfoStocksResponseStock interface. + */ +export function instanceOfGetProductInfoStocksResponseStock(value) { + return true; +} +export function GetProductInfoStocksResponseStockFromJSON(json) { + return GetProductInfoStocksResponseStockFromJSONTyped(json, false); +} +export function GetProductInfoStocksResponseStockFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'present': json['present'] == null ? undefined : json['present'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'shipment_type': json['shipment_type'] == null ? undefined : StockShipmentTypeFromJSON(json['shipment_type']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'type': json['type'] == null ? undefined : json['type'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function GetProductInfoStocksResponseStockToJSON(value) { + if (value == null) { + return value; + } + return { + 'present': value['present'], + 'reserved': value['reserved'], + 'shipment_type': StockShipmentTypeToJSON(value['shipment_type']), + 'sku': value['sku'], + 'type': value['type'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/GetProductPlacementZoneInfoResponseProductPlacement.d.ts b/dist/esm/models/GetProductPlacementZoneInfoResponseProductPlacement.d.ts new file mode 100644 index 0000000..4244e5f --- /dev/null +++ b/dist/esm/models/GetProductPlacementZoneInfoResponseProductPlacement.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductPlacementPlacementZoneEnum } from './ProductPlacementPlacementZoneEnum'; +/** + * + * @export + * @interface GetProductPlacementZoneInfoResponseProductPlacement + */ +export interface GetProductPlacementZoneInfoResponseProductPlacement { + /** + * + * @type {ProductPlacementPlacementZoneEnum} + * @memberof GetProductPlacementZoneInfoResponseProductPlacement + */ + placement_zone?: ProductPlacementPlacementZoneEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetProductPlacementZoneInfoResponseProductPlacement + */ + sku?: number; +} +/** + * Check if a given object implements the GetProductPlacementZoneInfoResponseProductPlacement interface. + */ +export declare function instanceOfGetProductPlacementZoneInfoResponseProductPlacement(value: object): value is GetProductPlacementZoneInfoResponseProductPlacement; +export declare function GetProductPlacementZoneInfoResponseProductPlacementFromJSON(json: any): GetProductPlacementZoneInfoResponseProductPlacement; +export declare function GetProductPlacementZoneInfoResponseProductPlacementFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductPlacementZoneInfoResponseProductPlacement; +export declare function GetProductPlacementZoneInfoResponseProductPlacementToJSON(value?: GetProductPlacementZoneInfoResponseProductPlacement | null): any; diff --git a/dist/esm/models/GetProductPlacementZoneInfoResponseProductPlacement.js b/dist/esm/models/GetProductPlacementZoneInfoResponseProductPlacement.js new file mode 100644 index 0000000..b11feca --- /dev/null +++ b/dist/esm/models/GetProductPlacementZoneInfoResponseProductPlacement.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductPlacementPlacementZoneEnumFromJSON, ProductPlacementPlacementZoneEnumToJSON, } from './ProductPlacementPlacementZoneEnum'; +/** + * Check if a given object implements the GetProductPlacementZoneInfoResponseProductPlacement interface. + */ +export function instanceOfGetProductPlacementZoneInfoResponseProductPlacement(value) { + return true; +} +export function GetProductPlacementZoneInfoResponseProductPlacementFromJSON(json) { + return GetProductPlacementZoneInfoResponseProductPlacementFromJSONTyped(json, false); +} +export function GetProductPlacementZoneInfoResponseProductPlacementFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'placement_zone': json['placement_zone'] == null ? undefined : ProductPlacementPlacementZoneEnumFromJSON(json['placement_zone']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function GetProductPlacementZoneInfoResponseProductPlacementToJSON(value) { + if (value == null) { + return value; + } + return { + 'placement_zone': ProductPlacementPlacementZoneEnumToJSON(value['placement_zone']), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/GetProductRatingBySkuResponseProductRating.d.ts b/dist/esm/models/GetProductRatingBySkuResponseProductRating.d.ts new file mode 100644 index 0000000..bd6f4c0 --- /dev/null +++ b/dist/esm/models/GetProductRatingBySkuResponseProductRating.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductRatingBySkuResponseRatingGroup } from './GetProductRatingBySkuResponseRatingGroup'; +/** + * + * @export + * @interface GetProductRatingBySkuResponseProductRating + */ +export interface GetProductRatingBySkuResponseProductRating { + /** + * Идентификатор товара на Ozon. + * @type {number} + * @memberof GetProductRatingBySkuResponseProductRating + */ + sku?: number; + /** + * Контент-рейтинг товара: от 0 до 100. + * + * @type {number} + * @memberof GetProductRatingBySkuResponseProductRating + */ + rating?: number; + /** + * Группы характеристик, из которых складывается контент-рейтинг. + * @type {Array} + * @memberof GetProductRatingBySkuResponseProductRating + */ + groups?: Array; +} +/** + * Check if a given object implements the GetProductRatingBySkuResponseProductRating interface. + */ +export declare function instanceOfGetProductRatingBySkuResponseProductRating(value: object): value is GetProductRatingBySkuResponseProductRating; +export declare function GetProductRatingBySkuResponseProductRatingFromJSON(json: any): GetProductRatingBySkuResponseProductRating; +export declare function GetProductRatingBySkuResponseProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductRatingBySkuResponseProductRating; +export declare function GetProductRatingBySkuResponseProductRatingToJSON(value?: GetProductRatingBySkuResponseProductRating | null): any; diff --git a/dist/esm/models/GetProductRatingBySkuResponseProductRating.js b/dist/esm/models/GetProductRatingBySkuResponseProductRating.js new file mode 100644 index 0000000..ca64835 --- /dev/null +++ b/dist/esm/models/GetProductRatingBySkuResponseProductRating.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetProductRatingBySkuResponseRatingGroupFromJSON, GetProductRatingBySkuResponseRatingGroupToJSON, } from './GetProductRatingBySkuResponseRatingGroup'; +/** + * Check if a given object implements the GetProductRatingBySkuResponseProductRating interface. + */ +export function instanceOfGetProductRatingBySkuResponseProductRating(value) { + return true; +} +export function GetProductRatingBySkuResponseProductRatingFromJSON(json) { + return GetProductRatingBySkuResponseProductRatingFromJSONTyped(json, false); +} +export function GetProductRatingBySkuResponseProductRatingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'groups': json['groups'] == null ? undefined : (json['groups'].map(GetProductRatingBySkuResponseRatingGroupFromJSON)), + }; +} +export function GetProductRatingBySkuResponseProductRatingToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'rating': value['rating'], + 'groups': value['groups'] == null ? undefined : (value['groups'].map(GetProductRatingBySkuResponseRatingGroupToJSON)), + }; +} diff --git a/dist/esm/models/GetProductRatingBySkuResponseRatingCondition.d.ts b/dist/esm/models/GetProductRatingBySkuResponseRatingCondition.d.ts new file mode 100644 index 0000000..65999ab --- /dev/null +++ b/dist/esm/models/GetProductRatingBySkuResponseRatingCondition.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductRatingBySkuResponseRatingCondition + */ +export interface GetProductRatingBySkuResponseRatingCondition { + /** + * Количество баллов контент-рейтинга, которое даёт выполнение условия. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingCondition + */ + cost?: number; + /** + * Описание условия. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingCondition + */ + description?: string; + /** + * Признак, что условие выполнено. + * @type {boolean} + * @memberof GetProductRatingBySkuResponseRatingCondition + */ + fulfilled?: boolean; + /** + * Идентификатор условия. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingCondition + */ + key?: string; +} +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingCondition interface. + */ +export declare function instanceOfGetProductRatingBySkuResponseRatingCondition(value: object): value is GetProductRatingBySkuResponseRatingCondition; +export declare function GetProductRatingBySkuResponseRatingConditionFromJSON(json: any): GetProductRatingBySkuResponseRatingCondition; +export declare function GetProductRatingBySkuResponseRatingConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductRatingBySkuResponseRatingCondition; +export declare function GetProductRatingBySkuResponseRatingConditionToJSON(value?: GetProductRatingBySkuResponseRatingCondition | null): any; diff --git a/dist/esm/models/GetProductRatingBySkuResponseRatingCondition.js b/dist/esm/models/GetProductRatingBySkuResponseRatingCondition.js new file mode 100644 index 0000000..45b3b4f --- /dev/null +++ b/dist/esm/models/GetProductRatingBySkuResponseRatingCondition.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingCondition interface. + */ +export function instanceOfGetProductRatingBySkuResponseRatingCondition(value) { + return true; +} +export function GetProductRatingBySkuResponseRatingConditionFromJSON(json) { + return GetProductRatingBySkuResponseRatingConditionFromJSONTyped(json, false); +} +export function GetProductRatingBySkuResponseRatingConditionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cost': json['cost'] == null ? undefined : json['cost'], + 'description': json['description'] == null ? undefined : json['description'], + 'fulfilled': json['fulfilled'] == null ? undefined : json['fulfilled'], + 'key': json['key'] == null ? undefined : json['key'], + }; +} +export function GetProductRatingBySkuResponseRatingConditionToJSON(value) { + if (value == null) { + return value; + } + return { + 'cost': value['cost'], + 'description': value['description'], + 'fulfilled': value['fulfilled'], + 'key': value['key'], + }; +} diff --git a/dist/esm/models/GetProductRatingBySkuResponseRatingGroup.d.ts b/dist/esm/models/GetProductRatingBySkuResponseRatingGroup.d.ts new file mode 100644 index 0000000..e3c43f0 --- /dev/null +++ b/dist/esm/models/GetProductRatingBySkuResponseRatingGroup.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductRatingBySkuResponseRatingCondition } from './GetProductRatingBySkuResponseRatingCondition'; +import type { GetProductRatingBySkuResponseRatingImproveAttribute } from './GetProductRatingBySkuResponseRatingImproveAttribute'; +/** + * + * @export + * @interface GetProductRatingBySkuResponseRatingGroup + */ +export interface GetProductRatingBySkuResponseRatingGroup { + /** + * Список условий, увеличивающих контент-рейтинг товара. + * @type {Array} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + conditions?: Array; + /** + * Количество атрибутов, которые нужно заполнить для получения максимального балла в этой группе характеристик. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + improve_at_least?: number; + /** + * Cписок атрибутов, заполнение которых может увеличить контент-рейтинг товара. + * @type {Array} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + improve_attributes?: Array; + /** + * Идентификатор группы. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + key?: string; + /** + * Название группы. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + name?: string; + /** + * Рейтинг в группе. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + rating?: number; + /** + * Процент влияния характеристик группы на контент-рейтинг. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + weight?: number; +} +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingGroup interface. + */ +export declare function instanceOfGetProductRatingBySkuResponseRatingGroup(value: object): value is GetProductRatingBySkuResponseRatingGroup; +export declare function GetProductRatingBySkuResponseRatingGroupFromJSON(json: any): GetProductRatingBySkuResponseRatingGroup; +export declare function GetProductRatingBySkuResponseRatingGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductRatingBySkuResponseRatingGroup; +export declare function GetProductRatingBySkuResponseRatingGroupToJSON(value?: GetProductRatingBySkuResponseRatingGroup | null): any; diff --git a/dist/esm/models/GetProductRatingBySkuResponseRatingGroup.js b/dist/esm/models/GetProductRatingBySkuResponseRatingGroup.js new file mode 100644 index 0000000..45f8c8b --- /dev/null +++ b/dist/esm/models/GetProductRatingBySkuResponseRatingGroup.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetProductRatingBySkuResponseRatingConditionFromJSON, GetProductRatingBySkuResponseRatingConditionToJSON, } from './GetProductRatingBySkuResponseRatingCondition'; +import { GetProductRatingBySkuResponseRatingImproveAttributeFromJSON, GetProductRatingBySkuResponseRatingImproveAttributeToJSON, } from './GetProductRatingBySkuResponseRatingImproveAttribute'; +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingGroup interface. + */ +export function instanceOfGetProductRatingBySkuResponseRatingGroup(value) { + return true; +} +export function GetProductRatingBySkuResponseRatingGroupFromJSON(json) { + return GetProductRatingBySkuResponseRatingGroupFromJSONTyped(json, false); +} +export function GetProductRatingBySkuResponseRatingGroupFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'conditions': json['conditions'] == null ? undefined : (json['conditions'].map(GetProductRatingBySkuResponseRatingConditionFromJSON)), + 'improve_at_least': json['improve_at_least'] == null ? undefined : json['improve_at_least'], + 'improve_attributes': json['improve_attributes'] == null ? undefined : (json['improve_attributes'].map(GetProductRatingBySkuResponseRatingImproveAttributeFromJSON)), + 'key': json['key'] == null ? undefined : json['key'], + 'name': json['name'] == null ? undefined : json['name'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function GetProductRatingBySkuResponseRatingGroupToJSON(value) { + if (value == null) { + return value; + } + return { + 'conditions': value['conditions'] == null ? undefined : (value['conditions'].map(GetProductRatingBySkuResponseRatingConditionToJSON)), + 'improve_at_least': value['improve_at_least'], + 'improve_attributes': value['improve_attributes'] == null ? undefined : (value['improve_attributes'].map(GetProductRatingBySkuResponseRatingImproveAttributeToJSON)), + 'key': value['key'], + 'name': value['name'], + 'rating': value['rating'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/GetProductRatingBySkuResponseRatingImproveAttribute.d.ts b/dist/esm/models/GetProductRatingBySkuResponseRatingImproveAttribute.d.ts new file mode 100644 index 0000000..8a25870 --- /dev/null +++ b/dist/esm/models/GetProductRatingBySkuResponseRatingImproveAttribute.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductRatingBySkuResponseRatingImproveAttribute + */ +export interface GetProductRatingBySkuResponseRatingImproveAttribute { + /** + * Идентификатор атрибута. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingImproveAttribute + */ + id?: number; + /** + * Название атрибута. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingImproveAttribute + */ + name?: string; +} +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingImproveAttribute interface. + */ +export declare function instanceOfGetProductRatingBySkuResponseRatingImproveAttribute(value: object): value is GetProductRatingBySkuResponseRatingImproveAttribute; +export declare function GetProductRatingBySkuResponseRatingImproveAttributeFromJSON(json: any): GetProductRatingBySkuResponseRatingImproveAttribute; +export declare function GetProductRatingBySkuResponseRatingImproveAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductRatingBySkuResponseRatingImproveAttribute; +export declare function GetProductRatingBySkuResponseRatingImproveAttributeToJSON(value?: GetProductRatingBySkuResponseRatingImproveAttribute | null): any; diff --git a/dist/esm/models/GetProductRatingBySkuResponseRatingImproveAttribute.js b/dist/esm/models/GetProductRatingBySkuResponseRatingImproveAttribute.js new file mode 100644 index 0000000..9df8013 --- /dev/null +++ b/dist/esm/models/GetProductRatingBySkuResponseRatingImproveAttribute.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingImproveAttribute interface. + */ +export function instanceOfGetProductRatingBySkuResponseRatingImproveAttribute(value) { + return true; +} +export function GetProductRatingBySkuResponseRatingImproveAttributeFromJSON(json) { + return GetProductRatingBySkuResponseRatingImproveAttributeFromJSONTyped(json, false); +} +export function GetProductRatingBySkuResponseRatingImproveAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function GetProductRatingBySkuResponseRatingImproveAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/GetRealizationReportByDayResponse.d.ts b/dist/esm/models/GetRealizationReportByDayResponse.d.ts new file mode 100644 index 0000000..3e30720 --- /dev/null +++ b/dist/esm/models/GetRealizationReportByDayResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetRealizationReportByDayResponseRow } from './GetRealizationReportByDayResponseRow'; +/** + * Результат запроса. + * @export + * @interface GetRealizationReportByDayResponse + */ +export interface GetRealizationReportByDayResponse { + /** + * Таблица отчёта. + * @type {Array} + * @memberof GetRealizationReportByDayResponse + */ + rows?: Array; +} +/** + * Check if a given object implements the GetRealizationReportByDayResponse interface. + */ +export declare function instanceOfGetRealizationReportByDayResponse(value: object): value is GetRealizationReportByDayResponse; +export declare function GetRealizationReportByDayResponseFromJSON(json: any): GetRealizationReportByDayResponse; +export declare function GetRealizationReportByDayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportByDayResponse; +export declare function GetRealizationReportByDayResponseToJSON(value?: GetRealizationReportByDayResponse | null): any; diff --git a/dist/esm/models/GetRealizationReportByDayResponse.js b/dist/esm/models/GetRealizationReportByDayResponse.js new file mode 100644 index 0000000..4d18322 --- /dev/null +++ b/dist/esm/models/GetRealizationReportByDayResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetRealizationReportByDayResponseRowFromJSON, GetRealizationReportByDayResponseRowToJSON, } from './GetRealizationReportByDayResponseRow'; +/** + * Check if a given object implements the GetRealizationReportByDayResponse interface. + */ +export function instanceOfGetRealizationReportByDayResponse(value) { + return true; +} +export function GetRealizationReportByDayResponseFromJSON(json) { + return GetRealizationReportByDayResponseFromJSONTyped(json, false); +} +export function GetRealizationReportByDayResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rows': json['rows'] == null ? undefined : (json['rows'].map(GetRealizationReportByDayResponseRowFromJSON)), + }; +} +export function GetRealizationReportByDayResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'rows': value['rows'] == null ? undefined : (value['rows'].map(GetRealizationReportByDayResponseRowToJSON)), + }; +} diff --git a/dist/esm/models/GetRealizationReportByDayResponseRow.d.ts b/dist/esm/models/GetRealizationReportByDayResponseRow.d.ts new file mode 100644 index 0000000..7dfd4fb --- /dev/null +++ b/dist/esm/models/GetRealizationReportByDayResponseRow.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RowItemCommissionReturn } from './RowItemCommissionReturn'; +import type { RowItem } from './RowItem'; +import type { RowItemCommission } from './RowItemCommission'; +/** + * + * @export + * @interface GetRealizationReportByDayResponseRow + */ +export interface GetRealizationReportByDayResponseRow { + /** + * Доля комиссии за продажу по категории. + * @type {number} + * @memberof GetRealizationReportByDayResponseRow + */ + commission_ratio?: number; + /** + * + * @type {RowItemCommission} + * @memberof GetRealizationReportByDayResponseRow + */ + delivery_commission?: RowItemCommission; + /** + * + * @type {RowItem} + * @memberof GetRealizationReportByDayResponseRow + */ + item?: RowItem; + /** + * + * @type {RowItemCommissionReturn} + * @memberof GetRealizationReportByDayResponseRow + */ + return_commission?: RowItemCommissionReturn; + /** + * Номер строки в отчёте. + * @type {number} + * @memberof GetRealizationReportByDayResponseRow + */ + rowNumber?: number; + /** + * Цена продавца с учётом скидки. + * @type {number} + * @memberof GetRealizationReportByDayResponseRow + */ + seller_price_per_instance?: number; +} +/** + * Check if a given object implements the GetRealizationReportByDayResponseRow interface. + */ +export declare function instanceOfGetRealizationReportByDayResponseRow(value: object): value is GetRealizationReportByDayResponseRow; +export declare function GetRealizationReportByDayResponseRowFromJSON(json: any): GetRealizationReportByDayResponseRow; +export declare function GetRealizationReportByDayResponseRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportByDayResponseRow; +export declare function GetRealizationReportByDayResponseRowToJSON(value?: GetRealizationReportByDayResponseRow | null): any; diff --git a/dist/esm/models/GetRealizationReportByDayResponseRow.js b/dist/esm/models/GetRealizationReportByDayResponseRow.js new file mode 100644 index 0000000..4c96ebb --- /dev/null +++ b/dist/esm/models/GetRealizationReportByDayResponseRow.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RowItemCommissionReturnFromJSON, RowItemCommissionReturnToJSON, } from './RowItemCommissionReturn'; +import { RowItemFromJSON, RowItemToJSON, } from './RowItem'; +import { RowItemCommissionFromJSON, RowItemCommissionToJSON, } from './RowItemCommission'; +/** + * Check if a given object implements the GetRealizationReportByDayResponseRow interface. + */ +export function instanceOfGetRealizationReportByDayResponseRow(value) { + return true; +} +export function GetRealizationReportByDayResponseRowFromJSON(json) { + return GetRealizationReportByDayResponseRowFromJSONTyped(json, false); +} +export function GetRealizationReportByDayResponseRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commission_ratio': json['commission_ratio'] == null ? undefined : json['commission_ratio'], + 'delivery_commission': json['delivery_commission'] == null ? undefined : RowItemCommissionFromJSON(json['delivery_commission']), + 'item': json['item'] == null ? undefined : RowItemFromJSON(json['item']), + 'return_commission': json['return_commission'] == null ? undefined : RowItemCommissionReturnFromJSON(json['return_commission']), + 'rowNumber': json['rowNumber'] == null ? undefined : json['rowNumber'], + 'seller_price_per_instance': json['seller_price_per_instance'] == null ? undefined : json['seller_price_per_instance'], + }; +} +export function GetRealizationReportByDayResponseRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'commission_ratio': value['commission_ratio'], + 'delivery_commission': RowItemCommissionToJSON(value['delivery_commission']), + 'item': RowItemToJSON(value['item']), + 'return_commission': RowItemCommissionReturnToJSON(value['return_commission']), + 'rowNumber': value['rowNumber'], + 'seller_price_per_instance': value['seller_price_per_instance'], + }; +} diff --git a/dist/esm/models/GetRealizationReportResponseV2Header.d.ts b/dist/esm/models/GetRealizationReportResponseV2Header.d.ts new file mode 100644 index 0000000..b9238f4 --- /dev/null +++ b/dist/esm/models/GetRealizationReportResponseV2Header.d.ts @@ -0,0 +1,103 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Титульный лист отчёта. + * @export + * @interface GetRealizationReportResponseV2Header + */ +export interface GetRealizationReportResponseV2Header { + /** + * Дата заключения договора. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + contract_date?: string; + /** + * Номер договора. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + contract_number?: string; + /** + * Валюта. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + currency_sys_name?: string; + /** + * Дата формирования документа. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + doc_date?: string; + /** + * Номер отчёта о реализации. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + number?: string; + /** + * ИНН плательщика. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + payer_inn?: string; + /** + * КПП плательщика. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + payer_kpp?: string; + /** + * Название плательщика. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + payer_name?: string; + /** + * ИНН получателя. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + receiver_inn?: string; + /** + * КПП получателя. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + receiver_kpp?: string; + /** + * Название получателя. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + receiver_name?: string; + /** + * Начало периода. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + start_date?: string; + /** + * Конец периода. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + stop_date?: string; +} +/** + * Check if a given object implements the GetRealizationReportResponseV2Header interface. + */ +export declare function instanceOfGetRealizationReportResponseV2Header(value: object): value is GetRealizationReportResponseV2Header; +export declare function GetRealizationReportResponseV2HeaderFromJSON(json: any): GetRealizationReportResponseV2Header; +export declare function GetRealizationReportResponseV2HeaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportResponseV2Header; +export declare function GetRealizationReportResponseV2HeaderToJSON(value?: GetRealizationReportResponseV2Header | null): any; diff --git a/dist/esm/models/GetRealizationReportResponseV2Header.js b/dist/esm/models/GetRealizationReportResponseV2Header.js new file mode 100644 index 0000000..8dc76f1 --- /dev/null +++ b/dist/esm/models/GetRealizationReportResponseV2Header.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetRealizationReportResponseV2Header interface. + */ +export function instanceOfGetRealizationReportResponseV2Header(value) { + return true; +} +export function GetRealizationReportResponseV2HeaderFromJSON(json) { + return GetRealizationReportResponseV2HeaderFromJSONTyped(json, false); +} +export function GetRealizationReportResponseV2HeaderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contract_date': json['contract_date'] == null ? undefined : json['contract_date'], + 'contract_number': json['contract_number'] == null ? undefined : json['contract_number'], + 'currency_sys_name': json['currency_sys_name'] == null ? undefined : json['currency_sys_name'], + 'doc_date': json['doc_date'] == null ? undefined : json['doc_date'], + 'number': json['number'] == null ? undefined : json['number'], + 'payer_inn': json['payer_inn'] == null ? undefined : json['payer_inn'], + 'payer_kpp': json['payer_kpp'] == null ? undefined : json['payer_kpp'], + 'payer_name': json['payer_name'] == null ? undefined : json['payer_name'], + 'receiver_inn': json['receiver_inn'] == null ? undefined : json['receiver_inn'], + 'receiver_kpp': json['receiver_kpp'] == null ? undefined : json['receiver_kpp'], + 'receiver_name': json['receiver_name'] == null ? undefined : json['receiver_name'], + 'start_date': json['start_date'] == null ? undefined : json['start_date'], + 'stop_date': json['stop_date'] == null ? undefined : json['stop_date'], + }; +} +export function GetRealizationReportResponseV2HeaderToJSON(value) { + if (value == null) { + return value; + } + return { + 'contract_date': value['contract_date'], + 'contract_number': value['contract_number'], + 'currency_sys_name': value['currency_sys_name'], + 'doc_date': value['doc_date'], + 'number': value['number'], + 'payer_inn': value['payer_inn'], + 'payer_kpp': value['payer_kpp'], + 'payer_name': value['payer_name'], + 'receiver_inn': value['receiver_inn'], + 'receiver_kpp': value['receiver_kpp'], + 'receiver_name': value['receiver_name'], + 'start_date': value['start_date'], + 'stop_date': value['stop_date'], + }; +} diff --git a/dist/esm/models/GetRealizationReportResponseV2Result.d.ts b/dist/esm/models/GetRealizationReportResponseV2Result.d.ts new file mode 100644 index 0000000..4909875 --- /dev/null +++ b/dist/esm/models/GetRealizationReportResponseV2Result.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetRealizationReportResponseV2Header } from './GetRealizationReportResponseV2Header'; +import type { GetRealizationReportResponseV2Row } from './GetRealizationReportResponseV2Row'; +/** + * Результат запроса. + * @export + * @interface GetRealizationReportResponseV2Result + */ +export interface GetRealizationReportResponseV2Result { + /** + * + * @type {GetRealizationReportResponseV2Header} + * @memberof GetRealizationReportResponseV2Result + */ + header?: GetRealizationReportResponseV2Header; + /** + * Таблица отчёта. + * @type {Array} + * @memberof GetRealizationReportResponseV2Result + */ + rows?: Array; +} +/** + * Check if a given object implements the GetRealizationReportResponseV2Result interface. + */ +export declare function instanceOfGetRealizationReportResponseV2Result(value: object): value is GetRealizationReportResponseV2Result; +export declare function GetRealizationReportResponseV2ResultFromJSON(json: any): GetRealizationReportResponseV2Result; +export declare function GetRealizationReportResponseV2ResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportResponseV2Result; +export declare function GetRealizationReportResponseV2ResultToJSON(value?: GetRealizationReportResponseV2Result | null): any; diff --git a/dist/esm/models/GetRealizationReportResponseV2Result.js b/dist/esm/models/GetRealizationReportResponseV2Result.js new file mode 100644 index 0000000..e2db714 --- /dev/null +++ b/dist/esm/models/GetRealizationReportResponseV2Result.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetRealizationReportResponseV2HeaderFromJSON, GetRealizationReportResponseV2HeaderToJSON, } from './GetRealizationReportResponseV2Header'; +import { GetRealizationReportResponseV2RowFromJSON, GetRealizationReportResponseV2RowToJSON, } from './GetRealizationReportResponseV2Row'; +/** + * Check if a given object implements the GetRealizationReportResponseV2Result interface. + */ +export function instanceOfGetRealizationReportResponseV2Result(value) { + return true; +} +export function GetRealizationReportResponseV2ResultFromJSON(json) { + return GetRealizationReportResponseV2ResultFromJSONTyped(json, false); +} +export function GetRealizationReportResponseV2ResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'header': json['header'] == null ? undefined : GetRealizationReportResponseV2HeaderFromJSON(json['header']), + 'rows': json['rows'] == null ? undefined : (json['rows'].map(GetRealizationReportResponseV2RowFromJSON)), + }; +} +export function GetRealizationReportResponseV2ResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'header': GetRealizationReportResponseV2HeaderToJSON(value['header']), + 'rows': value['rows'] == null ? undefined : (value['rows'].map(GetRealizationReportResponseV2RowToJSON)), + }; +} diff --git a/dist/esm/models/GetRealizationReportResponseV2Row.d.ts b/dist/esm/models/GetRealizationReportResponseV2Row.d.ts new file mode 100644 index 0000000..854dc93 --- /dev/null +++ b/dist/esm/models/GetRealizationReportResponseV2Row.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RowItemCommissionReturn } from './RowItemCommissionReturn'; +import type { RowItem } from './RowItem'; +import type { RowItemCommission } from './RowItemCommission'; +/** + * + * @export + * @interface GetRealizationReportResponseV2Row + */ +export interface GetRealizationReportResponseV2Row { + /** + * Доля комиссии за продажу по категории. + * @type {number} + * @memberof GetRealizationReportResponseV2Row + */ + commission_ratio?: number; + /** + * + * @type {RowItemCommission} + * @memberof GetRealizationReportResponseV2Row + */ + delivery_commission?: RowItemCommission; + /** + * + * @type {RowItem} + * @memberof GetRealizationReportResponseV2Row + */ + item?: RowItem; + /** + * + * @type {RowItemCommissionReturn} + * @memberof GetRealizationReportResponseV2Row + */ + return_commission?: RowItemCommissionReturn; + /** + * Номер строки в отчёте. + * @type {number} + * @memberof GetRealizationReportResponseV2Row + */ + rowNumber?: number; + /** + * Цена продавца с учётом скидки. + * @type {number} + * @memberof GetRealizationReportResponseV2Row + */ + seller_price_per_instance?: number; +} +/** + * Check if a given object implements the GetRealizationReportResponseV2Row interface. + */ +export declare function instanceOfGetRealizationReportResponseV2Row(value: object): value is GetRealizationReportResponseV2Row; +export declare function GetRealizationReportResponseV2RowFromJSON(json: any): GetRealizationReportResponseV2Row; +export declare function GetRealizationReportResponseV2RowFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportResponseV2Row; +export declare function GetRealizationReportResponseV2RowToJSON(value?: GetRealizationReportResponseV2Row | null): any; diff --git a/dist/esm/models/GetRealizationReportResponseV2Row.js b/dist/esm/models/GetRealizationReportResponseV2Row.js new file mode 100644 index 0000000..060e9d4 --- /dev/null +++ b/dist/esm/models/GetRealizationReportResponseV2Row.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RowItemCommissionReturnFromJSON, RowItemCommissionReturnToJSON, } from './RowItemCommissionReturn'; +import { RowItemFromJSON, RowItemToJSON, } from './RowItem'; +import { RowItemCommissionFromJSON, RowItemCommissionToJSON, } from './RowItemCommission'; +/** + * Check if a given object implements the GetRealizationReportResponseV2Row interface. + */ +export function instanceOfGetRealizationReportResponseV2Row(value) { + return true; +} +export function GetRealizationReportResponseV2RowFromJSON(json) { + return GetRealizationReportResponseV2RowFromJSONTyped(json, false); +} +export function GetRealizationReportResponseV2RowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commission_ratio': json['commission_ratio'] == null ? undefined : json['commission_ratio'], + 'delivery_commission': json['delivery_commission'] == null ? undefined : RowItemCommissionFromJSON(json['delivery_commission']), + 'item': json['item'] == null ? undefined : RowItemFromJSON(json['item']), + 'return_commission': json['return_commission'] == null ? undefined : RowItemCommissionReturnFromJSON(json['return_commission']), + 'rowNumber': json['rowNumber'] == null ? undefined : json['rowNumber'], + 'seller_price_per_instance': json['seller_price_per_instance'] == null ? undefined : json['seller_price_per_instance'], + }; +} +export function GetRealizationReportResponseV2RowToJSON(value) { + if (value == null) { + return value; + } + return { + 'commission_ratio': value['commission_ratio'], + 'delivery_commission': RowItemCommissionToJSON(value['delivery_commission']), + 'item': RowItemToJSON(value['item']), + 'return_commission': RowItemCommissionReturnToJSON(value['return_commission']), + 'rowNumber': value['rowNumber'], + 'seller_price_per_instance': value['seller_price_per_instance'], + }; +} diff --git a/dist/esm/models/GetReturnsListRequestFilter.d.ts b/dist/esm/models/GetReturnsListRequestFilter.d.ts new file mode 100644 index 0000000..7ffc380 --- /dev/null +++ b/dist/esm/models/GetReturnsListRequestFilter.d.ts @@ -0,0 +1,141 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1TimeRangeVisualStatus } from './V1TimeRangeVisualStatus'; +import type { V1TimeRangeStorageTariffication } from './V1TimeRangeStorageTariffication'; +import type { V1TimeRangeReturnDate } from './V1TimeRangeReturnDate'; +/** + * Фильтры. Используйте только один фильтр в запросе: `logistic_return_date`, `storage_tariffication_start_date` или `visual_status_change_moment`, иначе вернётся ошибка. + * + * @export + * @interface GetReturnsListRequestFilter + */ +export interface GetReturnsListRequestFilter { + /** + * + * @type {V1TimeRangeReturnDate} + * @memberof GetReturnsListRequestFilter + */ + logistic_return_date?: V1TimeRangeReturnDate; + /** + * + * @type {V1TimeRangeStorageTariffication} + * @memberof GetReturnsListRequestFilter + */ + storage_tariffication_start_date?: V1TimeRangeStorageTariffication; + /** + * + * @type {V1TimeRangeVisualStatus} + * @memberof GetReturnsListRequestFilter + */ + visual_status_change_moment?: V1TimeRangeVisualStatus; + /** + * Фильтр по идентификатору заказа. + * @type {number} + * @memberof GetReturnsListRequestFilter + */ + order_id?: number; + /** + * Фильтр по номеру отправления. Передавайте не больше 50 постингов. + * @type {Array} + * @memberof GetReturnsListRequestFilter + */ + posting_numbers?: Array; + /** + * Фильтр по названию товара. + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + product_name?: string; + /** + * Фильтр по артикулу товара. + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + offer_id?: string; + /** + * Фильтр по статусу возврата: + * - `DisputeOpened` — открыт спор с покупателем; + * - `OnSellerApproval` — на согласовании у продавца; + * - `ArrivedAtReturnPlace` — в пункте выдачи; + * - `OnSellerClarification` — на уточнении у продавца; + * - `OnSellerClarificationAfterPartialCompensation` — на уточнении у продавца после частичной компенсации; + * - `OfferedPartialCompensation` — предложена частичная компенсация; + * - `ReturnMoneyApproved` — одобрен возврат денег; + * - `PartialCompensationReturned` — вернули часть денег; + * - `CancelledDisputeNotOpen` — возврат отклонён, спор не открыт; + * - `Rejected` — заявка отклонена; + * - `CrmRejected` — заявка отклонена Ozon; + * - `Cancelled` — заявка отменена; + * - `Approved` — заявка одобрена продавцом; + * - `ApprovedByOzon` — заявка одобрена Ozon; + * - `ReceivedBySeller` — продавец получил возврат; + * - `MovingToSeller` — возврат на пути к продавцу; + * - `ReturningToSellerByCourier` — курьер везёт возврат продавцу; + * - `Utilizing` — на утилизации; + * - `Utilized` — утилизирован; + * - `MoneyReturned` — покупателю вернули всю сумму; + * - `PartialCompensationInProcess` — одобрен частичный возврат денег; + * - `DisputeYouOpened` — продавец открыл спор; + * - `CompensationRejected` — отказано в компенсации; + * - `DisputeOpening` — обращение в поддержку отправлено; + * - `CompensationOffered` — ожидает вашего решения по компенсации; + * - `WaitingCompensation` — ожидает компенсации; + * - `SendingError` — ошибка при отправке обращения в поддержку; + * - `CompensationRejectedBySla` — истёк срок решения; + * - `CompensationRejectedBySeller` — продавец отказался от компенсации; + * - `MovingToOzon` — едет на склад Ozon; + * - `ReturnedToOzon` — на складе Ozon; + * - `MoneyReturnedBySystem` — быстрый возврат; + * - `WaitingShipment` — ожидает отправки. + * + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + visual_status_name?: string; + /** + * Фильтр по идентификатору склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {number} + * @memberof GetReturnsListRequestFilter + */ + warehouse_id?: number; + /** + * Фильтр по штрихкоду возвратной этикетки. + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + barcode?: string; + /** + * Фильтр по схеме доставки: `FBS` или `FBO`. + * + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + return_schema?: string; + /** + * Фильтр по статусу компенсации: + * - `1` — отправлена; + * - `2` — получена; + * - `3` — отменена; + * - `4` — проведена декомпенсация. + * + * @type {number} + * @memberof GetReturnsListRequestFilter + */ + compensation_status_id?: number; +} +/** + * Check if a given object implements the GetReturnsListRequestFilter interface. + */ +export declare function instanceOfGetReturnsListRequestFilter(value: object): value is GetReturnsListRequestFilter; +export declare function GetReturnsListRequestFilterFromJSON(json: any): GetReturnsListRequestFilter; +export declare function GetReturnsListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListRequestFilter; +export declare function GetReturnsListRequestFilterToJSON(value?: GetReturnsListRequestFilter | null): any; diff --git a/dist/esm/models/GetReturnsListRequestFilter.js b/dist/esm/models/GetReturnsListRequestFilter.js new file mode 100644 index 0000000..3d942bc --- /dev/null +++ b/dist/esm/models/GetReturnsListRequestFilter.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1TimeRangeVisualStatusFromJSON, V1TimeRangeVisualStatusToJSON, } from './V1TimeRangeVisualStatus'; +import { V1TimeRangeStorageTarifficationFromJSON, V1TimeRangeStorageTarifficationToJSON, } from './V1TimeRangeStorageTariffication'; +import { V1TimeRangeReturnDateFromJSON, V1TimeRangeReturnDateToJSON, } from './V1TimeRangeReturnDate'; +/** + * Check if a given object implements the GetReturnsListRequestFilter interface. + */ +export function instanceOfGetReturnsListRequestFilter(value) { + return true; +} +export function GetReturnsListRequestFilterFromJSON(json) { + return GetReturnsListRequestFilterFromJSONTyped(json, false); +} +export function GetReturnsListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'logistic_return_date': json['logistic_return_date'] == null ? undefined : V1TimeRangeReturnDateFromJSON(json['logistic_return_date']), + 'storage_tariffication_start_date': json['storage_tariffication_start_date'] == null ? undefined : V1TimeRangeStorageTarifficationFromJSON(json['storage_tariffication_start_date']), + 'visual_status_change_moment': json['visual_status_change_moment'] == null ? undefined : V1TimeRangeVisualStatusFromJSON(json['visual_status_change_moment']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'visual_status_name': json['visual_status_name'] == null ? undefined : json['visual_status_name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'return_schema': json['return_schema'] == null ? undefined : json['return_schema'], + 'compensation_status_id': json['compensation_status_id'] == null ? undefined : json['compensation_status_id'], + }; +} +export function GetReturnsListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'logistic_return_date': V1TimeRangeReturnDateToJSON(value['logistic_return_date']), + 'storage_tariffication_start_date': V1TimeRangeStorageTarifficationToJSON(value['storage_tariffication_start_date']), + 'visual_status_change_moment': V1TimeRangeVisualStatusToJSON(value['visual_status_change_moment']), + 'order_id': value['order_id'], + 'posting_numbers': value['posting_numbers'], + 'product_name': value['product_name'], + 'offer_id': value['offer_id'], + 'visual_status_name': value['visual_status_name'], + 'warehouse_id': value['warehouse_id'], + 'barcode': value['barcode'], + 'return_schema': value['return_schema'], + 'compensation_status_id': value['compensation_status_id'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseAdditionalInfo.d.ts b/dist/esm/models/GetReturnsListResponseAdditionalInfo.d.ts new file mode 100644 index 0000000..e72be1f --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseAdditionalInfo.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительная информация. + * @export + * @interface GetReturnsListResponseAdditionalInfo + */ +export interface GetReturnsListResponseAdditionalInfo { + /** + * `true`, если возврат вскрыт. + * + * @type {boolean} + * @memberof GetReturnsListResponseAdditionalInfo + */ + is_opened?: boolean; + /** + * `true`, если возврат относится к товарам «Суперэконом». + * + * @type {boolean} + * @memberof GetReturnsListResponseAdditionalInfo + */ + is_super_econom?: boolean; +} +/** + * Check if a given object implements the GetReturnsListResponseAdditionalInfo interface. + */ +export declare function instanceOfGetReturnsListResponseAdditionalInfo(value: object): value is GetReturnsListResponseAdditionalInfo; +export declare function GetReturnsListResponseAdditionalInfoFromJSON(json: any): GetReturnsListResponseAdditionalInfo; +export declare function GetReturnsListResponseAdditionalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseAdditionalInfo; +export declare function GetReturnsListResponseAdditionalInfoToJSON(value?: GetReturnsListResponseAdditionalInfo | null): any; diff --git a/dist/esm/models/GetReturnsListResponseAdditionalInfo.js b/dist/esm/models/GetReturnsListResponseAdditionalInfo.js new file mode 100644 index 0000000..dff34ae --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseAdditionalInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetReturnsListResponseAdditionalInfo interface. + */ +export function instanceOfGetReturnsListResponseAdditionalInfo(value) { + return true; +} +export function GetReturnsListResponseAdditionalInfoFromJSON(json) { + return GetReturnsListResponseAdditionalInfoFromJSONTyped(json, false); +} +export function GetReturnsListResponseAdditionalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_opened': json['is_opened'] == null ? undefined : json['is_opened'], + 'is_super_econom': json['is_super_econom'] == null ? undefined : json['is_super_econom'], + }; +} +export function GetReturnsListResponseAdditionalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_opened': value['is_opened'], + 'is_super_econom': value['is_super_econom'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseCompensation.d.ts b/dist/esm/models/GetReturnsListResponseCompensation.d.ts new file mode 100644 index 0000000..a23a918 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseCompensation.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListResponseCompensationStatus } from './GetReturnsListResponseCompensationStatus'; +/** + * Информация о статусе компенсации. + * @export + * @interface GetReturnsListResponseCompensation + */ +export interface GetReturnsListResponseCompensation { + /** + * + * @type {GetReturnsListResponseCompensationStatus} + * @memberof GetReturnsListResponseCompensation + */ + status?: GetReturnsListResponseCompensationStatus; + /** + * Дата изменения статуса компенсации. + * @type {string} + * @memberof GetReturnsListResponseCompensation + */ + change_moment?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseCompensation interface. + */ +export declare function instanceOfGetReturnsListResponseCompensation(value: object): value is GetReturnsListResponseCompensation; +export declare function GetReturnsListResponseCompensationFromJSON(json: any): GetReturnsListResponseCompensation; +export declare function GetReturnsListResponseCompensationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseCompensation; +export declare function GetReturnsListResponseCompensationToJSON(value?: GetReturnsListResponseCompensation | null): any; diff --git a/dist/esm/models/GetReturnsListResponseCompensation.js b/dist/esm/models/GetReturnsListResponseCompensation.js new file mode 100644 index 0000000..37ef9a7 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseCompensation.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetReturnsListResponseCompensationStatusFromJSON, GetReturnsListResponseCompensationStatusToJSON, } from './GetReturnsListResponseCompensationStatus'; +/** + * Check if a given object implements the GetReturnsListResponseCompensation interface. + */ +export function instanceOfGetReturnsListResponseCompensation(value) { + return true; +} +export function GetReturnsListResponseCompensationFromJSON(json) { + return GetReturnsListResponseCompensationFromJSONTyped(json, false); +} +export function GetReturnsListResponseCompensationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : GetReturnsListResponseCompensationStatusFromJSON(json['status']), + 'change_moment': json['change_moment'] == null ? undefined : json['change_moment'], + }; +} +export function GetReturnsListResponseCompensationToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': GetReturnsListResponseCompensationStatusToJSON(value['status']), + 'change_moment': value['change_moment'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseCompensationStatus.d.ts b/dist/esm/models/GetReturnsListResponseCompensationStatus.d.ts new file mode 100644 index 0000000..b549874 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseCompensationStatus.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус компенсации. + * @export + * @interface GetReturnsListResponseCompensationStatus + */ +export interface GetReturnsListResponseCompensationStatus { + /** + * Идентификатор статуса. + * @type {number} + * @memberof GetReturnsListResponseCompensationStatus + */ + id?: number; + /** + * Название статуса: + * - «Отправлено на компенсацию», + * - «Вы получили компенсацию», + * - «Компенсация отменена», + * - «Провели декомпенсацию». + * + * @type {string} + * @memberof GetReturnsListResponseCompensationStatus + */ + display_name?: string; + /** + * Системное название статуса: + * - `Sent` — отправлена; + * - `Received` — получена; + * - `Canceled` — отменена; + * - `DecompensationSent` — проведена декомпенсация. + * + * @type {string} + * @memberof GetReturnsListResponseCompensationStatus + */ + sys_name?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseCompensationStatus interface. + */ +export declare function instanceOfGetReturnsListResponseCompensationStatus(value: object): value is GetReturnsListResponseCompensationStatus; +export declare function GetReturnsListResponseCompensationStatusFromJSON(json: any): GetReturnsListResponseCompensationStatus; +export declare function GetReturnsListResponseCompensationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseCompensationStatus; +export declare function GetReturnsListResponseCompensationStatusToJSON(value?: GetReturnsListResponseCompensationStatus | null): any; diff --git a/dist/esm/models/GetReturnsListResponseCompensationStatus.js b/dist/esm/models/GetReturnsListResponseCompensationStatus.js new file mode 100644 index 0000000..adba545 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseCompensationStatus.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetReturnsListResponseCompensationStatus interface. + */ +export function instanceOfGetReturnsListResponseCompensationStatus(value) { + return true; +} +export function GetReturnsListResponseCompensationStatusFromJSON(json) { + return GetReturnsListResponseCompensationStatusFromJSONTyped(json, false); +} +export function GetReturnsListResponseCompensationStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'display_name': json['display_name'] == null ? undefined : json['display_name'], + 'sys_name': json['sys_name'] == null ? undefined : json['sys_name'], + }; +} +export function GetReturnsListResponseCompensationStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'display_name': value['display_name'], + 'sys_name': value['sys_name'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseExemplar.d.ts b/dist/esm/models/GetReturnsListResponseExemplar.d.ts new file mode 100644 index 0000000..c4a001e --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseExemplar.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetReturnsListResponseExemplar + */ +export interface GetReturnsListResponseExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof GetReturnsListResponseExemplar + */ + id?: number; +} +/** + * Check if a given object implements the GetReturnsListResponseExemplar interface. + */ +export declare function instanceOfGetReturnsListResponseExemplar(value: object): value is GetReturnsListResponseExemplar; +export declare function GetReturnsListResponseExemplarFromJSON(json: any): GetReturnsListResponseExemplar; +export declare function GetReturnsListResponseExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseExemplar; +export declare function GetReturnsListResponseExemplarToJSON(value?: GetReturnsListResponseExemplar | null): any; diff --git a/dist/esm/models/GetReturnsListResponseExemplar.js b/dist/esm/models/GetReturnsListResponseExemplar.js new file mode 100644 index 0000000..e2c5f74 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseExemplar.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetReturnsListResponseExemplar interface. + */ +export function instanceOfGetReturnsListResponseExemplar(value) { + return true; +} +export function GetReturnsListResponseExemplarFromJSON(json) { + return GetReturnsListResponseExemplarFromJSONTyped(json, false); +} +export function GetReturnsListResponseExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + }; +} +export function GetReturnsListResponseExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseLogistic.d.ts b/dist/esm/models/GetReturnsListResponseLogistic.d.ts new file mode 100644 index 0000000..f46fe8a --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseLogistic.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о возврате. + * @export + * @interface GetReturnsListResponseLogistic + */ +export interface GetReturnsListResponseLogistic { + /** + * Дата, когда заказ поставили на технический возврат. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + technical_return_moment?: string; + /** + * Дата, когда возврат прибыл на фулфилмент или выдан продавцу. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + final_moment?: string; + /** + * Дата, когда продавцу компенсировали возврат. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + cancelled_with_compensation_moment?: string; + /** + * Дата, когда покупатель вернул товар. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + return_date?: string; + /** + * Штрихкод этикетки возврата. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + barcode?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseLogistic interface. + */ +export declare function instanceOfGetReturnsListResponseLogistic(value: object): value is GetReturnsListResponseLogistic; +export declare function GetReturnsListResponseLogisticFromJSON(json: any): GetReturnsListResponseLogistic; +export declare function GetReturnsListResponseLogisticFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseLogistic; +export declare function GetReturnsListResponseLogisticToJSON(value?: GetReturnsListResponseLogistic | null): any; diff --git a/dist/esm/models/GetReturnsListResponseLogistic.js b/dist/esm/models/GetReturnsListResponseLogistic.js new file mode 100644 index 0000000..5c5c019 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseLogistic.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetReturnsListResponseLogistic interface. + */ +export function instanceOfGetReturnsListResponseLogistic(value) { + return true; +} +export function GetReturnsListResponseLogisticFromJSON(json) { + return GetReturnsListResponseLogisticFromJSONTyped(json, false); +} +export function GetReturnsListResponseLogisticFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'technical_return_moment': json['technical_return_moment'] == null ? undefined : json['technical_return_moment'], + 'final_moment': json['final_moment'] == null ? undefined : json['final_moment'], + 'cancelled_with_compensation_moment': json['cancelled_with_compensation_moment'] == null ? undefined : json['cancelled_with_compensation_moment'], + 'return_date': json['return_date'] == null ? undefined : json['return_date'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + }; +} +export function GetReturnsListResponseLogisticToJSON(value) { + if (value == null) { + return value; + } + return { + 'technical_return_moment': value['technical_return_moment'], + 'final_moment': value['final_moment'], + 'cancelled_with_compensation_moment': value['cancelled_with_compensation_moment'], + 'return_date': value['return_date'], + 'barcode': value['barcode'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponsePlaceNow.d.ts b/dist/esm/models/GetReturnsListResponsePlaceNow.d.ts new file mode 100644 index 0000000..3db3042 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponsePlaceNow.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад, где находится возврат. + * @export + * @interface GetReturnsListResponsePlaceNow + */ +export interface GetReturnsListResponsePlaceNow { + /** + * Идентификатор склада. + * @type {number} + * @memberof GetReturnsListResponsePlaceNow + */ + id?: number; + /** + * Название. + * @type {string} + * @memberof GetReturnsListResponsePlaceNow + */ + name?: string; + /** + * Адрес. + * @type {string} + * @memberof GetReturnsListResponsePlaceNow + */ + address?: string; +} +/** + * Check if a given object implements the GetReturnsListResponsePlaceNow interface. + */ +export declare function instanceOfGetReturnsListResponsePlaceNow(value: object): value is GetReturnsListResponsePlaceNow; +export declare function GetReturnsListResponsePlaceNowFromJSON(json: any): GetReturnsListResponsePlaceNow; +export declare function GetReturnsListResponsePlaceNowFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponsePlaceNow; +export declare function GetReturnsListResponsePlaceNowToJSON(value?: GetReturnsListResponsePlaceNow | null): any; diff --git a/dist/esm/models/GetReturnsListResponsePlaceNow.js b/dist/esm/models/GetReturnsListResponsePlaceNow.js new file mode 100644 index 0000000..2878302 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponsePlaceNow.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetReturnsListResponsePlaceNow interface. + */ +export function instanceOfGetReturnsListResponsePlaceNow(value) { + return true; +} +export function GetReturnsListResponsePlaceNowFromJSON(json) { + return GetReturnsListResponsePlaceNowFromJSONTyped(json, false); +} +export function GetReturnsListResponsePlaceNowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'address': json['address'] == null ? undefined : json['address'], + }; +} +export function GetReturnsListResponsePlaceNowToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'address': value['address'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponsePlaceTarget.d.ts b/dist/esm/models/GetReturnsListResponsePlaceTarget.d.ts new file mode 100644 index 0000000..ec9ac4f --- /dev/null +++ b/dist/esm/models/GetReturnsListResponsePlaceTarget.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад, куда едет возврат. + * @export + * @interface GetReturnsListResponsePlaceTarget + */ +export interface GetReturnsListResponsePlaceTarget { + /** + * Идентификатор склада. + * @type {number} + * @memberof GetReturnsListResponsePlaceTarget + */ + id?: number; + /** + * Название. + * @type {string} + * @memberof GetReturnsListResponsePlaceTarget + */ + name?: string; + /** + * Адрес. + * @type {string} + * @memberof GetReturnsListResponsePlaceTarget + */ + address?: string; +} +/** + * Check if a given object implements the GetReturnsListResponsePlaceTarget interface. + */ +export declare function instanceOfGetReturnsListResponsePlaceTarget(value: object): value is GetReturnsListResponsePlaceTarget; +export declare function GetReturnsListResponsePlaceTargetFromJSON(json: any): GetReturnsListResponsePlaceTarget; +export declare function GetReturnsListResponsePlaceTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponsePlaceTarget; +export declare function GetReturnsListResponsePlaceTargetToJSON(value?: GetReturnsListResponsePlaceTarget | null): any; diff --git a/dist/esm/models/GetReturnsListResponsePlaceTarget.js b/dist/esm/models/GetReturnsListResponsePlaceTarget.js new file mode 100644 index 0000000..3a0a440 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponsePlaceTarget.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetReturnsListResponsePlaceTarget interface. + */ +export function instanceOfGetReturnsListResponsePlaceTarget(value) { + return true; +} +export function GetReturnsListResponsePlaceTargetFromJSON(json) { + return GetReturnsListResponsePlaceTargetFromJSONTyped(json, false); +} +export function GetReturnsListResponsePlaceTargetFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'address': json['address'] == null ? undefined : json['address'], + }; +} +export function GetReturnsListResponsePlaceTargetToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'address': value['address'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseProduct.d.ts b/dist/esm/models/GetReturnsListResponseProduct.d.ts new file mode 100644 index 0000000..87d1741 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseProduct.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerReturnsv1MoneyWithoutCommission } from './SellerReturnsv1MoneyWithoutCommission'; +import type { SellerReturnsv1MoneyCommission } from './SellerReturnsv1MoneyCommission'; +import type { SellerReturnsv1MoneyProduct } from './SellerReturnsv1MoneyProduct'; +/** + * Информация о товаре. + * @export + * @interface GetReturnsListResponseProduct + */ +export interface GetReturnsListResponseProduct { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetReturnsListResponseProduct + */ + sku?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof GetReturnsListResponseProduct + */ + offer_id?: string; + /** + * Название товара. + * @type {string} + * @memberof GetReturnsListResponseProduct + */ + name?: string; + /** + * + * @type {SellerReturnsv1MoneyProduct} + * @memberof GetReturnsListResponseProduct + */ + price?: SellerReturnsv1MoneyProduct; + /** + * + * @type {SellerReturnsv1MoneyWithoutCommission} + * @memberof GetReturnsListResponseProduct + */ + price_without_commission?: SellerReturnsv1MoneyWithoutCommission; + /** + * Процент комиссии. + * @type {number} + * @memberof GetReturnsListResponseProduct + */ + commission_percent?: number; + /** + * + * @type {SellerReturnsv1MoneyCommission} + * @memberof GetReturnsListResponseProduct + */ + commission?: SellerReturnsv1MoneyCommission; + /** + * Количество товара. + * @type {number} + * @memberof GetReturnsListResponseProduct + */ + quantity?: number; +} +/** + * Check if a given object implements the GetReturnsListResponseProduct interface. + */ +export declare function instanceOfGetReturnsListResponseProduct(value: object): value is GetReturnsListResponseProduct; +export declare function GetReturnsListResponseProductFromJSON(json: any): GetReturnsListResponseProduct; +export declare function GetReturnsListResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseProduct; +export declare function GetReturnsListResponseProductToJSON(value?: GetReturnsListResponseProduct | null): any; diff --git a/dist/esm/models/GetReturnsListResponseProduct.js b/dist/esm/models/GetReturnsListResponseProduct.js new file mode 100644 index 0000000..b6dbb56 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseProduct.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerReturnsv1MoneyWithoutCommissionFromJSON, SellerReturnsv1MoneyWithoutCommissionToJSON, } from './SellerReturnsv1MoneyWithoutCommission'; +import { SellerReturnsv1MoneyCommissionFromJSON, SellerReturnsv1MoneyCommissionToJSON, } from './SellerReturnsv1MoneyCommission'; +import { SellerReturnsv1MoneyProductFromJSON, SellerReturnsv1MoneyProductToJSON, } from './SellerReturnsv1MoneyProduct'; +/** + * Check if a given object implements the GetReturnsListResponseProduct interface. + */ +export function instanceOfGetReturnsListResponseProduct(value) { + return true; +} +export function GetReturnsListResponseProductFromJSON(json) { + return GetReturnsListResponseProductFromJSONTyped(json, false); +} +export function GetReturnsListResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : SellerReturnsv1MoneyProductFromJSON(json['price']), + 'price_without_commission': json['price_without_commission'] == null ? undefined : SellerReturnsv1MoneyWithoutCommissionFromJSON(json['price_without_commission']), + 'commission_percent': json['commission_percent'] == null ? undefined : json['commission_percent'], + 'commission': json['commission'] == null ? undefined : SellerReturnsv1MoneyCommissionFromJSON(json['commission']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + }; +} +export function GetReturnsListResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'offer_id': value['offer_id'], + 'name': value['name'], + 'price': SellerReturnsv1MoneyProductToJSON(value['price']), + 'price_without_commission': SellerReturnsv1MoneyWithoutCommissionToJSON(value['price_without_commission']), + 'commission_percent': value['commission_percent'], + 'commission': SellerReturnsv1MoneyCommissionToJSON(value['commission']), + 'quantity': value['quantity'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseReturnsItem.d.ts b/dist/esm/models/GetReturnsListResponseReturnsItem.d.ts new file mode 100644 index 0000000..ca34369 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseReturnsItem.d.ts @@ -0,0 +1,163 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListResponseAdditionalInfo } from './GetReturnsListResponseAdditionalInfo'; +import type { GetReturnsListResponsePlaceTarget } from './GetReturnsListResponsePlaceTarget'; +import type { GetReturnsListResponseProduct } from './GetReturnsListResponseProduct'; +import type { GetReturnsListResponseVisual } from './GetReturnsListResponseVisual'; +import type { GetReturnsListResponseCompensation } from './GetReturnsListResponseCompensation'; +import type { GetReturnsListResponsePlaceNow } from './GetReturnsListResponsePlaceNow'; +import type { GetReturnsListResponseExemplar } from './GetReturnsListResponseExemplar'; +import type { GetReturnsListResponseLogistic } from './GetReturnsListResponseLogistic'; +import type { GetReturnsListResponseStorage } from './GetReturnsListResponseStorage'; +/** + * + * @export + * @interface GetReturnsListResponseReturnsItem + */ +export interface GetReturnsListResponseReturnsItem { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof GetReturnsListResponseReturnsItem + */ + exemplars?: Array; + /** + * Идентификатор возврата. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + id?: number; + /** + * Идентификатор продавца. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + company_id?: number; + /** + * Причина возврата или отмены. + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + return_reason_name?: string; + /** + * Тип возврата: + * `Cancellation` - отмена (до вручения); + * `FullReturn` - полный отказ при вручении; + * `PartialReturn` - частичный отказ при вручении; + * `ClientReturn` - клиентский возврат (после вручения); + * `Unknown` - технический возврат. + * + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + type?: string; + /** + * Схема возврата: + * `FBS`; + * `FBO`. + * + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + schema?: string; + /** + * Идентификатор заказа. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + order_id?: number; + /** + * Номер заказа. + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + order_number?: string; + /** + * + * @type {GetReturnsListResponsePlaceNow} + * @memberof GetReturnsListResponseReturnsItem + */ + place?: GetReturnsListResponsePlaceNow; + /** + * + * @type {GetReturnsListResponsePlaceTarget} + * @memberof GetReturnsListResponseReturnsItem + */ + target_place?: GetReturnsListResponsePlaceTarget; + /** + * + * @type {GetReturnsListResponseStorage} + * @memberof GetReturnsListResponseReturnsItem + */ + storage?: GetReturnsListResponseStorage; + /** + * + * @type {GetReturnsListResponseProduct} + * @memberof GetReturnsListResponseReturnsItem + */ + product?: GetReturnsListResponseProduct; + /** + * + * @type {GetReturnsListResponseLogistic} + * @memberof GetReturnsListResponseReturnsItem + */ + logistic?: GetReturnsListResponseLogistic; + /** + * + * @type {GetReturnsListResponseVisual} + * @memberof GetReturnsListResponseReturnsItem + */ + visual?: GetReturnsListResponseVisual; + /** + * + * @type {GetReturnsListResponseAdditionalInfo} + * @memberof GetReturnsListResponseReturnsItem + */ + additional_info?: GetReturnsListResponseAdditionalInfo; + /** + * Предыдущий идентификатор возврата. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + source_id?: number; + /** + * Номер отправления. + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + posting_number?: string; + /** + * Штрихкод изначального отправления. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + clearing_id?: number; + /** + * Возвратный штрихкод изначального отправления. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + return_clearing_id?: number; + /** + * + * @type {GetReturnsListResponseCompensation} + * @memberof GetReturnsListResponseReturnsItem + */ + compensation_status?: GetReturnsListResponseCompensation; +} +/** + * Check if a given object implements the GetReturnsListResponseReturnsItem interface. + */ +export declare function instanceOfGetReturnsListResponseReturnsItem(value: object): value is GetReturnsListResponseReturnsItem; +export declare function GetReturnsListResponseReturnsItemFromJSON(json: any): GetReturnsListResponseReturnsItem; +export declare function GetReturnsListResponseReturnsItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseReturnsItem; +export declare function GetReturnsListResponseReturnsItemToJSON(value?: GetReturnsListResponseReturnsItem | null): any; diff --git a/dist/esm/models/GetReturnsListResponseReturnsItem.js b/dist/esm/models/GetReturnsListResponseReturnsItem.js new file mode 100644 index 0000000..c638918 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseReturnsItem.js @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetReturnsListResponseAdditionalInfoFromJSON, GetReturnsListResponseAdditionalInfoToJSON, } from './GetReturnsListResponseAdditionalInfo'; +import { GetReturnsListResponsePlaceTargetFromJSON, GetReturnsListResponsePlaceTargetToJSON, } from './GetReturnsListResponsePlaceTarget'; +import { GetReturnsListResponseProductFromJSON, GetReturnsListResponseProductToJSON, } from './GetReturnsListResponseProduct'; +import { GetReturnsListResponseVisualFromJSON, GetReturnsListResponseVisualToJSON, } from './GetReturnsListResponseVisual'; +import { GetReturnsListResponseCompensationFromJSON, GetReturnsListResponseCompensationToJSON, } from './GetReturnsListResponseCompensation'; +import { GetReturnsListResponsePlaceNowFromJSON, GetReturnsListResponsePlaceNowToJSON, } from './GetReturnsListResponsePlaceNow'; +import { GetReturnsListResponseExemplarFromJSON, GetReturnsListResponseExemplarToJSON, } from './GetReturnsListResponseExemplar'; +import { GetReturnsListResponseLogisticFromJSON, GetReturnsListResponseLogisticToJSON, } from './GetReturnsListResponseLogistic'; +import { GetReturnsListResponseStorageFromJSON, GetReturnsListResponseStorageToJSON, } from './GetReturnsListResponseStorage'; +/** + * Check if a given object implements the GetReturnsListResponseReturnsItem interface. + */ +export function instanceOfGetReturnsListResponseReturnsItem(value) { + return true; +} +export function GetReturnsListResponseReturnsItemFromJSON(json) { + return GetReturnsListResponseReturnsItemFromJSONTyped(json, false); +} +export function GetReturnsListResponseReturnsItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(GetReturnsListResponseExemplarFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], + 'company_id': json['company_id'] == null ? undefined : json['company_id'], + 'return_reason_name': json['return_reason_name'] == null ? undefined : json['return_reason_name'], + 'type': json['type'] == null ? undefined : json['type'], + 'schema': json['schema'] == null ? undefined : json['schema'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'place': json['place'] == null ? undefined : GetReturnsListResponsePlaceNowFromJSON(json['place']), + 'target_place': json['target_place'] == null ? undefined : GetReturnsListResponsePlaceTargetFromJSON(json['target_place']), + 'storage': json['storage'] == null ? undefined : GetReturnsListResponseStorageFromJSON(json['storage']), + 'product': json['product'] == null ? undefined : GetReturnsListResponseProductFromJSON(json['product']), + 'logistic': json['logistic'] == null ? undefined : GetReturnsListResponseLogisticFromJSON(json['logistic']), + 'visual': json['visual'] == null ? undefined : GetReturnsListResponseVisualFromJSON(json['visual']), + 'additional_info': json['additional_info'] == null ? undefined : GetReturnsListResponseAdditionalInfoFromJSON(json['additional_info']), + 'source_id': json['source_id'] == null ? undefined : json['source_id'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'clearing_id': json['clearing_id'] == null ? undefined : json['clearing_id'], + 'return_clearing_id': json['return_clearing_id'] == null ? undefined : json['return_clearing_id'], + 'compensation_status': json['compensation_status'] == null ? undefined : GetReturnsListResponseCompensationFromJSON(json['compensation_status']), + }; +} +export function GetReturnsListResponseReturnsItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(GetReturnsListResponseExemplarToJSON)), + 'id': value['id'], + 'company_id': value['company_id'], + 'return_reason_name': value['return_reason_name'], + 'type': value['type'], + 'schema': value['schema'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'place': GetReturnsListResponsePlaceNowToJSON(value['place']), + 'target_place': GetReturnsListResponsePlaceTargetToJSON(value['target_place']), + 'storage': GetReturnsListResponseStorageToJSON(value['storage']), + 'product': GetReturnsListResponseProductToJSON(value['product']), + 'logistic': GetReturnsListResponseLogisticToJSON(value['logistic']), + 'visual': GetReturnsListResponseVisualToJSON(value['visual']), + 'additional_info': GetReturnsListResponseAdditionalInfoToJSON(value['additional_info']), + 'source_id': value['source_id'], + 'posting_number': value['posting_number'], + 'clearing_id': value['clearing_id'], + 'return_clearing_id': value['return_clearing_id'], + 'compensation_status': GetReturnsListResponseCompensationToJSON(value['compensation_status']), + }; +} diff --git a/dist/esm/models/GetReturnsListResponseStorage.d.ts b/dist/esm/models/GetReturnsListResponseStorage.d.ts new file mode 100644 index 0000000..f743f52 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseStorage.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerReturnsv1MoneyUtilization } from './SellerReturnsv1MoneyUtilization'; +import type { SellerReturnsv1MoneyStorage } from './SellerReturnsv1MoneyStorage'; +/** + * Информация о хранении. + * @export + * @interface GetReturnsListResponseStorage + */ +export interface GetReturnsListResponseStorage { + /** + * + * @type {SellerReturnsv1MoneyStorage} + * @memberof GetReturnsListResponseStorage + */ + sum?: SellerReturnsv1MoneyStorage; + /** + * Первый день тарификации за хранение. + * @type {string} + * @memberof GetReturnsListResponseStorage + */ + tariffication_first_date?: string; + /** + * Дата старта тарификации за хранение. + * @type {string} + * @memberof GetReturnsListResponseStorage + */ + tariffication_start_date?: string; + /** + * Дата, когда возврат был готов к выдаче. + * @type {string} + * @memberof GetReturnsListResponseStorage + */ + arrived_moment?: string; + /** + * Сколько дней возврат ожидает выдачи продавцу. + * @type {number} + * @memberof GetReturnsListResponseStorage + */ + days?: number; + /** + * + * @type {SellerReturnsv1MoneyUtilization} + * @memberof GetReturnsListResponseStorage + */ + utilization_sum?: SellerReturnsv1MoneyUtilization; + /** + * Планируемая дата утилизации. + * @type {string} + * @memberof GetReturnsListResponseStorage + */ + utilization_forecast_date?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseStorage interface. + */ +export declare function instanceOfGetReturnsListResponseStorage(value: object): value is GetReturnsListResponseStorage; +export declare function GetReturnsListResponseStorageFromJSON(json: any): GetReturnsListResponseStorage; +export declare function GetReturnsListResponseStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseStorage; +export declare function GetReturnsListResponseStorageToJSON(value?: GetReturnsListResponseStorage | null): any; diff --git a/dist/esm/models/GetReturnsListResponseStorage.js b/dist/esm/models/GetReturnsListResponseStorage.js new file mode 100644 index 0000000..82f790e --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseStorage.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerReturnsv1MoneyUtilizationFromJSON, SellerReturnsv1MoneyUtilizationToJSON, } from './SellerReturnsv1MoneyUtilization'; +import { SellerReturnsv1MoneyStorageFromJSON, SellerReturnsv1MoneyStorageToJSON, } from './SellerReturnsv1MoneyStorage'; +/** + * Check if a given object implements the GetReturnsListResponseStorage interface. + */ +export function instanceOfGetReturnsListResponseStorage(value) { + return true; +} +export function GetReturnsListResponseStorageFromJSON(json) { + return GetReturnsListResponseStorageFromJSONTyped(json, false); +} +export function GetReturnsListResponseStorageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sum': json['sum'] == null ? undefined : SellerReturnsv1MoneyStorageFromJSON(json['sum']), + 'tariffication_first_date': json['tariffication_first_date'] == null ? undefined : json['tariffication_first_date'], + 'tariffication_start_date': json['tariffication_start_date'] == null ? undefined : json['tariffication_start_date'], + 'arrived_moment': json['arrived_moment'] == null ? undefined : json['arrived_moment'], + 'days': json['days'] == null ? undefined : json['days'], + 'utilization_sum': json['utilization_sum'] == null ? undefined : SellerReturnsv1MoneyUtilizationFromJSON(json['utilization_sum']), + 'utilization_forecast_date': json['utilization_forecast_date'] == null ? undefined : json['utilization_forecast_date'], + }; +} +export function GetReturnsListResponseStorageToJSON(value) { + if (value == null) { + return value; + } + return { + 'sum': SellerReturnsv1MoneyStorageToJSON(value['sum']), + 'tariffication_first_date': value['tariffication_first_date'], + 'tariffication_start_date': value['tariffication_start_date'], + 'arrived_moment': value['arrived_moment'], + 'days': value['days'], + 'utilization_sum': SellerReturnsv1MoneyUtilizationToJSON(value['utilization_sum']), + 'utilization_forecast_date': value['utilization_forecast_date'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseVisual.d.ts b/dist/esm/models/GetReturnsListResponseVisual.d.ts new file mode 100644 index 0000000..f6a3ebc --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseVisual.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListResponseVisualStatus } from './GetReturnsListResponseVisualStatus'; +/** + * Информация о статусе возврата. + * @export + * @interface GetReturnsListResponseVisual + */ +export interface GetReturnsListResponseVisual { + /** + * + * @type {GetReturnsListResponseVisualStatus} + * @memberof GetReturnsListResponseVisual + */ + status?: GetReturnsListResponseVisualStatus; + /** + * Дата изменения статуса возврата. + * @type {string} + * @memberof GetReturnsListResponseVisual + */ + change_moment?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseVisual interface. + */ +export declare function instanceOfGetReturnsListResponseVisual(value: object): value is GetReturnsListResponseVisual; +export declare function GetReturnsListResponseVisualFromJSON(json: any): GetReturnsListResponseVisual; +export declare function GetReturnsListResponseVisualFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseVisual; +export declare function GetReturnsListResponseVisualToJSON(value?: GetReturnsListResponseVisual | null): any; diff --git a/dist/esm/models/GetReturnsListResponseVisual.js b/dist/esm/models/GetReturnsListResponseVisual.js new file mode 100644 index 0000000..36eab0a --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseVisual.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetReturnsListResponseVisualStatusFromJSON, GetReturnsListResponseVisualStatusToJSON, } from './GetReturnsListResponseVisualStatus'; +/** + * Check if a given object implements the GetReturnsListResponseVisual interface. + */ +export function instanceOfGetReturnsListResponseVisual(value) { + return true; +} +export function GetReturnsListResponseVisualFromJSON(json) { + return GetReturnsListResponseVisualFromJSONTyped(json, false); +} +export function GetReturnsListResponseVisualFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : GetReturnsListResponseVisualStatusFromJSON(json['status']), + 'change_moment': json['change_moment'] == null ? undefined : json['change_moment'], + }; +} +export function GetReturnsListResponseVisualToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': GetReturnsListResponseVisualStatusToJSON(value['status']), + 'change_moment': value['change_moment'], + }; +} diff --git a/dist/esm/models/GetReturnsListResponseVisualStatus.d.ts b/dist/esm/models/GetReturnsListResponseVisualStatus.d.ts new file mode 100644 index 0000000..427a125 --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseVisualStatus.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус возврата. + * @export + * @interface GetReturnsListResponseVisualStatus + */ +export interface GetReturnsListResponseVisualStatus { + /** + * Идентификатор статуса возврата. + * @type {number} + * @memberof GetReturnsListResponseVisualStatus + */ + id?: number; + /** + * Название статуса возврата. + * @type {string} + * @memberof GetReturnsListResponseVisualStatus + */ + display_name?: string; + /** + * Системное название статуса возврата. + * @type {string} + * @memberof GetReturnsListResponseVisualStatus + */ + sys_name?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseVisualStatus interface. + */ +export declare function instanceOfGetReturnsListResponseVisualStatus(value: object): value is GetReturnsListResponseVisualStatus; +export declare function GetReturnsListResponseVisualStatusFromJSON(json: any): GetReturnsListResponseVisualStatus; +export declare function GetReturnsListResponseVisualStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseVisualStatus; +export declare function GetReturnsListResponseVisualStatusToJSON(value?: GetReturnsListResponseVisualStatus | null): any; diff --git a/dist/esm/models/GetReturnsListResponseVisualStatus.js b/dist/esm/models/GetReturnsListResponseVisualStatus.js new file mode 100644 index 0000000..a88983d --- /dev/null +++ b/dist/esm/models/GetReturnsListResponseVisualStatus.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetReturnsListResponseVisualStatus interface. + */ +export function instanceOfGetReturnsListResponseVisualStatus(value) { + return true; +} +export function GetReturnsListResponseVisualStatusFromJSON(json) { + return GetReturnsListResponseVisualStatusFromJSONTyped(json, false); +} +export function GetReturnsListResponseVisualStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'display_name': json['display_name'] == null ? undefined : json['display_name'], + 'sys_name': json['sys_name'] == null ? undefined : json['sys_name'], + }; +} +export function GetReturnsListResponseVisualStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'display_name': value['display_name'], + 'sys_name': value['sys_name'], + }; +} diff --git a/dist/esm/models/GetSellerActionsV1ResponseAction.d.ts b/dist/esm/models/GetSellerActionsV1ResponseAction.d.ts new file mode 100644 index 0000000..77346d8 --- /dev/null +++ b/dist/esm/models/GetSellerActionsV1ResponseAction.d.ts @@ -0,0 +1,132 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetSellerActionsV1ResponseAction + */ +export interface GetSellerActionsV1ResponseAction { + /** + * Идентификатор акции. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + id?: number; + /** + * Название акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + title?: string; + /** + * Тип акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + action_type?: string; + /** + * Описание акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + description?: string; + /** + * Дата начала акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + date_start?: string; + /** + * Дата окончания акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + date_end?: string; + /** + * Дата и время автодобавления товаров в акцию. + * @type {Array} + * @memberof GetSellerActionsV1ResponseAction + */ + auto_add_dates?: Array; + /** + * Дата приостановки акции. + * + * Если поле заполнено, продавец не может повышать цены, изменять список товаров и уменьшать количество единиц товаров в акции. + * + * Продавец может понижать цены и увеличивать количество единиц товара в акции. + * + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + freeze_date?: string; + /** + * Количество товаров, доступных для акции. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + potential_products_count?: number; + /** + * Количество товаров, которые участвуют в акции. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + participating_products_count?: number; + /** + * Участвуете вы в этой акции или нет. + * @type {boolean} + * @memberof GetSellerActionsV1ResponseAction + */ + is_participating?: boolean; + /** + * Признак, что для участия в акции покупателям нужен промокод. + * @type {boolean} + * @memberof GetSellerActionsV1ResponseAction + */ + is_voucher_action?: boolean; + /** + * Количество заблокированных товаров. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + banned_products_count?: number; + /** + * Признак, что акция с целевой аудиторией. + * @type {boolean} + * @memberof GetSellerActionsV1ResponseAction + */ + with_targeting?: boolean; + /** + * Сумма заказа. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + order_amount?: number; + /** + * Тип скидки. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + discount_type?: string; + /** + * Размер скидки. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + discount_value?: number; +} +/** + * Check if a given object implements the GetSellerActionsV1ResponseAction interface. + */ +export declare function instanceOfGetSellerActionsV1ResponseAction(value: object): value is GetSellerActionsV1ResponseAction; +export declare function GetSellerActionsV1ResponseActionFromJSON(json: any): GetSellerActionsV1ResponseAction; +export declare function GetSellerActionsV1ResponseActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSellerActionsV1ResponseAction; +export declare function GetSellerActionsV1ResponseActionToJSON(value?: GetSellerActionsV1ResponseAction | null): any; diff --git a/dist/esm/models/GetSellerActionsV1ResponseAction.js b/dist/esm/models/GetSellerActionsV1ResponseAction.js new file mode 100644 index 0000000..1a39109 --- /dev/null +++ b/dist/esm/models/GetSellerActionsV1ResponseAction.js @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetSellerActionsV1ResponseAction interface. + */ +export function instanceOfGetSellerActionsV1ResponseAction(value) { + return true; +} +export function GetSellerActionsV1ResponseActionFromJSON(json) { + return GetSellerActionsV1ResponseActionFromJSONTyped(json, false); +} +export function GetSellerActionsV1ResponseActionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'title': json['title'] == null ? undefined : json['title'], + 'action_type': json['action_type'] == null ? undefined : json['action_type'], + 'description': json['description'] == null ? undefined : json['description'], + 'date_start': json['date_start'] == null ? undefined : json['date_start'], + 'date_end': json['date_end'] == null ? undefined : json['date_end'], + 'auto_add_dates': json['auto_add_dates'] == null ? undefined : json['auto_add_dates'], + 'freeze_date': json['freeze_date'] == null ? undefined : json['freeze_date'], + 'potential_products_count': json['potential_products_count'] == null ? undefined : json['potential_products_count'], + 'participating_products_count': json['participating_products_count'] == null ? undefined : json['participating_products_count'], + 'is_participating': json['is_participating'] == null ? undefined : json['is_participating'], + 'is_voucher_action': json['is_voucher_action'] == null ? undefined : json['is_voucher_action'], + 'banned_products_count': json['banned_products_count'] == null ? undefined : json['banned_products_count'], + 'with_targeting': json['with_targeting'] == null ? undefined : json['with_targeting'], + 'order_amount': json['order_amount'] == null ? undefined : json['order_amount'], + 'discount_type': json['discount_type'] == null ? undefined : json['discount_type'], + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + }; +} +export function GetSellerActionsV1ResponseActionToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'title': value['title'], + 'action_type': value['action_type'], + 'description': value['description'], + 'date_start': value['date_start'], + 'date_end': value['date_end'], + 'auto_add_dates': value['auto_add_dates'], + 'freeze_date': value['freeze_date'], + 'potential_products_count': value['potential_products_count'], + 'participating_products_count': value['participating_products_count'], + 'is_participating': value['is_participating'], + 'is_voucher_action': value['is_voucher_action'], + 'banned_products_count': value['banned_products_count'], + 'with_targeting': value['with_targeting'], + 'order_amount': value['order_amount'], + 'discount_type': value['discount_type'], + 'discount_value': value['discount_value'], + }; +} diff --git a/dist/esm/models/GetStrategyIDsByItemIDsResponseProductInfo.d.ts b/dist/esm/models/GetStrategyIDsByItemIDsResponseProductInfo.d.ts new file mode 100644 index 0000000..c13f8cf --- /dev/null +++ b/dist/esm/models/GetStrategyIDsByItemIDsResponseProductInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetStrategyIDsByItemIDsResponseProductInfo + */ +export interface GetStrategyIDsByItemIDsResponseProductInfo { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof GetStrategyIDsByItemIDsResponseProductInfo + */ + product_id?: number; + /** + * Идентификатор стратегии, в которую добавлен товар. + * @type {string} + * @memberof GetStrategyIDsByItemIDsResponseProductInfo + */ + strategy_id?: string; +} +/** + * Check if a given object implements the GetStrategyIDsByItemIDsResponseProductInfo interface. + */ +export declare function instanceOfGetStrategyIDsByItemIDsResponseProductInfo(value: object): value is GetStrategyIDsByItemIDsResponseProductInfo; +export declare function GetStrategyIDsByItemIDsResponseProductInfoFromJSON(json: any): GetStrategyIDsByItemIDsResponseProductInfo; +export declare function GetStrategyIDsByItemIDsResponseProductInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetStrategyIDsByItemIDsResponseProductInfo; +export declare function GetStrategyIDsByItemIDsResponseProductInfoToJSON(value?: GetStrategyIDsByItemIDsResponseProductInfo | null): any; diff --git a/dist/esm/models/GetStrategyIDsByItemIDsResponseProductInfo.js b/dist/esm/models/GetStrategyIDsByItemIDsResponseProductInfo.js new file mode 100644 index 0000000..b5e2f27 --- /dev/null +++ b/dist/esm/models/GetStrategyIDsByItemIDsResponseProductInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetStrategyIDsByItemIDsResponseProductInfo interface. + */ +export function instanceOfGetStrategyIDsByItemIDsResponseProductInfo(value) { + return true; +} +export function GetStrategyIDsByItemIDsResponseProductInfoFromJSON(json) { + return GetStrategyIDsByItemIDsResponseProductInfoFromJSONTyped(json, false); +} +export function GetStrategyIDsByItemIDsResponseProductInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'strategy_id': json['strategy_id'] == null ? undefined : json['strategy_id'], + }; +} +export function GetStrategyIDsByItemIDsResponseProductInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/esm/models/GetStrategyListResponseStrategy.d.ts b/dist/esm/models/GetStrategyListResponseStrategy.d.ts new file mode 100644 index 0000000..a738e50 --- /dev/null +++ b/dist/esm/models/GetStrategyListResponseStrategy.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetStrategyListResponseStrategy + */ +export interface GetStrategyListResponseStrategy { + /** + * Идентификатор стратегии. + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + id?: string; + /** + * Название стратегии. + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + name?: string; + /** + * Тип стратегии: + * - `MIN_EXT_PRICE` — системная, + * - `COMP_PRICE` — пользовательская. + * + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + type?: string; + /** + * Тип последнего изменения стратегии: + * - `strategyEnabled` — возобновлена, + * - `strategyDisabled` — остановлена, + * - `strategyChanged` — обновлена, + * - `strategyCreated` — создана, + * - `strategyItemsListChanged` — изменён набор товаров в стратегии. + * + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + update_type?: string; + /** + * Дата последнего изменения. + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + updated_at?: string; + /** + * Количество товаров в стратегии. + * @type {number} + * @memberof GetStrategyListResponseStrategy + */ + products_count?: number; + /** + * Количество выбранных конкурентов. + * @type {number} + * @memberof GetStrategyListResponseStrategy + */ + competitors_count?: number; + /** + * Статус стратегии: + * - `true` — включена, + * - `false` — отключена. + * + * @type {boolean} + * @memberof GetStrategyListResponseStrategy + */ + enabled?: boolean; +} +/** + * Check if a given object implements the GetStrategyListResponseStrategy interface. + */ +export declare function instanceOfGetStrategyListResponseStrategy(value: object): value is GetStrategyListResponseStrategy; +export declare function GetStrategyListResponseStrategyFromJSON(json: any): GetStrategyListResponseStrategy; +export declare function GetStrategyListResponseStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetStrategyListResponseStrategy; +export declare function GetStrategyListResponseStrategyToJSON(value?: GetStrategyListResponseStrategy | null): any; diff --git a/dist/esm/models/GetStrategyListResponseStrategy.js b/dist/esm/models/GetStrategyListResponseStrategy.js new file mode 100644 index 0000000..822b138 --- /dev/null +++ b/dist/esm/models/GetStrategyListResponseStrategy.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetStrategyListResponseStrategy interface. + */ +export function instanceOfGetStrategyListResponseStrategy(value) { + return true; +} +export function GetStrategyListResponseStrategyFromJSON(json) { + return GetStrategyListResponseStrategyFromJSONTyped(json, false); +} +export function GetStrategyListResponseStrategyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + 'update_type': json['update_type'] == null ? undefined : json['update_type'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'products_count': json['products_count'] == null ? undefined : json['products_count'], + 'competitors_count': json['competitors_count'] == null ? undefined : json['competitors_count'], + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + }; +} +export function GetStrategyListResponseStrategyToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'type': value['type'], + 'update_type': value['update_type'], + 'updated_at': value['updated_at'], + 'products_count': value['products_count'], + 'competitors_count': value['competitors_count'], + 'enabled': value['enabled'], + }; +} diff --git a/dist/esm/models/GetSupplyOrderBundleRequestItemTagsCalculation.d.ts b/dist/esm/models/GetSupplyOrderBundleRequestItemTagsCalculation.d.ts new file mode 100644 index 0000000..2ebd712 --- /dev/null +++ b/dist/esm/models/GetSupplyOrderBundleRequestItemTagsCalculation.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список складов для расчёта товарных тегов. + * @export + * @interface GetSupplyOrderBundleRequestItemTagsCalculation + */ +export interface GetSupplyOrderBundleRequestItemTagsCalculation { + /** + * Идентификатор склада отгрузки поставки. + * @type {string} + * @memberof GetSupplyOrderBundleRequestItemTagsCalculation + */ + dropoff_warehouse_id: string; + /** + * Список идентификаторов складов поставки, не больше 25 значений. + * @type {Array} + * @memberof GetSupplyOrderBundleRequestItemTagsCalculation + */ + storage_warehouse_ids: Array; +} +/** + * Check if a given object implements the GetSupplyOrderBundleRequestItemTagsCalculation interface. + */ +export declare function instanceOfGetSupplyOrderBundleRequestItemTagsCalculation(value: object): value is GetSupplyOrderBundleRequestItemTagsCalculation; +export declare function GetSupplyOrderBundleRequestItemTagsCalculationFromJSON(json: any): GetSupplyOrderBundleRequestItemTagsCalculation; +export declare function GetSupplyOrderBundleRequestItemTagsCalculationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupplyOrderBundleRequestItemTagsCalculation; +export declare function GetSupplyOrderBundleRequestItemTagsCalculationToJSON(value?: GetSupplyOrderBundleRequestItemTagsCalculation | null): any; diff --git a/dist/esm/models/GetSupplyOrderBundleRequestItemTagsCalculation.js b/dist/esm/models/GetSupplyOrderBundleRequestItemTagsCalculation.js new file mode 100644 index 0000000..ab8914e --- /dev/null +++ b/dist/esm/models/GetSupplyOrderBundleRequestItemTagsCalculation.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetSupplyOrderBundleRequestItemTagsCalculation interface. + */ +export function instanceOfGetSupplyOrderBundleRequestItemTagsCalculation(value) { + if (!('dropoff_warehouse_id' in value) || value['dropoff_warehouse_id'] === undefined) + return false; + if (!('storage_warehouse_ids' in value) || value['storage_warehouse_ids'] === undefined) + return false; + return true; +} +export function GetSupplyOrderBundleRequestItemTagsCalculationFromJSON(json) { + return GetSupplyOrderBundleRequestItemTagsCalculationFromJSONTyped(json, false); +} +export function GetSupplyOrderBundleRequestItemTagsCalculationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dropoff_warehouse_id': json['dropoff_warehouse_id'], + 'storage_warehouse_ids': json['storage_warehouse_ids'], + }; +} +export function GetSupplyOrderBundleRequestItemTagsCalculationToJSON(value) { + if (value == null) { + return value; + } + return { + 'dropoff_warehouse_id': value['dropoff_warehouse_id'], + 'storage_warehouse_ids': value['storage_warehouse_ids'], + }; +} diff --git a/dist/esm/models/GetUploadQuotaResponseDailyCreate.d.ts b/dist/esm/models/GetUploadQuotaResponseDailyCreate.d.ts new file mode 100644 index 0000000..b0a37b0 --- /dev/null +++ b/dist/esm/models/GetUploadQuotaResponseDailyCreate.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Суточный лимит на создание товаров. + * @export + * @interface GetUploadQuotaResponseDailyCreate + */ +export interface GetUploadQuotaResponseDailyCreate { + /** + * Количество товаров, которое можно создать за сутки. Если значение `-1`, лимит не ограничен. + * @type {number} + * @memberof GetUploadQuotaResponseDailyCreate + */ + limit?: number; + /** + * Время в формате UTC, когда сбросится значение счётчика за текущие сутки. + * @type {string} + * @memberof GetUploadQuotaResponseDailyCreate + */ + reset_at?: string; + /** + * Сколько товаров создано за текущие сутки. + * @type {number} + * @memberof GetUploadQuotaResponseDailyCreate + */ + usage?: number; +} +/** + * Check if a given object implements the GetUploadQuotaResponseDailyCreate interface. + */ +export declare function instanceOfGetUploadQuotaResponseDailyCreate(value: object): value is GetUploadQuotaResponseDailyCreate; +export declare function GetUploadQuotaResponseDailyCreateFromJSON(json: any): GetUploadQuotaResponseDailyCreate; +export declare function GetUploadQuotaResponseDailyCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadQuotaResponseDailyCreate; +export declare function GetUploadQuotaResponseDailyCreateToJSON(value?: GetUploadQuotaResponseDailyCreate | null): any; diff --git a/dist/esm/models/GetUploadQuotaResponseDailyCreate.js b/dist/esm/models/GetUploadQuotaResponseDailyCreate.js new file mode 100644 index 0000000..41a62d5 --- /dev/null +++ b/dist/esm/models/GetUploadQuotaResponseDailyCreate.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetUploadQuotaResponseDailyCreate interface. + */ +export function instanceOfGetUploadQuotaResponseDailyCreate(value) { + return true; +} +export function GetUploadQuotaResponseDailyCreateFromJSON(json) { + return GetUploadQuotaResponseDailyCreateFromJSONTyped(json, false); +} +export function GetUploadQuotaResponseDailyCreateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'reset_at': json['reset_at'] == null ? undefined : json['reset_at'], + 'usage': json['usage'] == null ? undefined : json['usage'], + }; +} +export function GetUploadQuotaResponseDailyCreateToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'reset_at': value['reset_at'], + 'usage': value['usage'], + }; +} diff --git a/dist/esm/models/GetUploadQuotaResponseDailyUpdate.d.ts b/dist/esm/models/GetUploadQuotaResponseDailyUpdate.d.ts new file mode 100644 index 0000000..f99a16e --- /dev/null +++ b/dist/esm/models/GetUploadQuotaResponseDailyUpdate.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Суточный лимит на обновление товаров. + * @export + * @interface GetUploadQuotaResponseDailyUpdate + */ +export interface GetUploadQuotaResponseDailyUpdate { + /** + * Количество товаров, которое можно обновить за сутки. Если значение `-1`, лимит не ограничен. + * @type {number} + * @memberof GetUploadQuotaResponseDailyUpdate + */ + limit?: number; + /** + * Время в формате UTC, когда сбросится значение счётчика за текущие сутки. + * @type {string} + * @memberof GetUploadQuotaResponseDailyUpdate + */ + reset_at?: string; + /** + * Сколько товаров обновлено за текущие сутки. + * @type {number} + * @memberof GetUploadQuotaResponseDailyUpdate + */ + usage?: number; +} +/** + * Check if a given object implements the GetUploadQuotaResponseDailyUpdate interface. + */ +export declare function instanceOfGetUploadQuotaResponseDailyUpdate(value: object): value is GetUploadQuotaResponseDailyUpdate; +export declare function GetUploadQuotaResponseDailyUpdateFromJSON(json: any): GetUploadQuotaResponseDailyUpdate; +export declare function GetUploadQuotaResponseDailyUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadQuotaResponseDailyUpdate; +export declare function GetUploadQuotaResponseDailyUpdateToJSON(value?: GetUploadQuotaResponseDailyUpdate | null): any; diff --git a/dist/esm/models/GetUploadQuotaResponseDailyUpdate.js b/dist/esm/models/GetUploadQuotaResponseDailyUpdate.js new file mode 100644 index 0000000..c874f5c --- /dev/null +++ b/dist/esm/models/GetUploadQuotaResponseDailyUpdate.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetUploadQuotaResponseDailyUpdate interface. + */ +export function instanceOfGetUploadQuotaResponseDailyUpdate(value) { + return true; +} +export function GetUploadQuotaResponseDailyUpdateFromJSON(json) { + return GetUploadQuotaResponseDailyUpdateFromJSONTyped(json, false); +} +export function GetUploadQuotaResponseDailyUpdateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'reset_at': json['reset_at'] == null ? undefined : json['reset_at'], + 'usage': json['usage'] == null ? undefined : json['usage'], + }; +} +export function GetUploadQuotaResponseDailyUpdateToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'reset_at': value['reset_at'], + 'usage': value['usage'], + }; +} diff --git a/dist/esm/models/GetUploadQuotaResponseTotal.d.ts b/dist/esm/models/GetUploadQuotaResponseTotal.d.ts new file mode 100644 index 0000000..b6a802c --- /dev/null +++ b/dist/esm/models/GetUploadQuotaResponseTotal.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Лимит на ассортимент. + * @export + * @interface GetUploadQuotaResponseTotal + */ +export interface GetUploadQuotaResponseTotal { + /** + * Количество товаров, которое можно создать в личном кабинете. Если значение `-1`, лимит не ограничен. + * @type {number} + * @memberof GetUploadQuotaResponseTotal + */ + limit?: number; + /** + * Сколько товаров уже создано. + * @type {number} + * @memberof GetUploadQuotaResponseTotal + */ + usage?: number; +} +/** + * Check if a given object implements the GetUploadQuotaResponseTotal interface. + */ +export declare function instanceOfGetUploadQuotaResponseTotal(value: object): value is GetUploadQuotaResponseTotal; +export declare function GetUploadQuotaResponseTotalFromJSON(json: any): GetUploadQuotaResponseTotal; +export declare function GetUploadQuotaResponseTotalFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadQuotaResponseTotal; +export declare function GetUploadQuotaResponseTotalToJSON(value?: GetUploadQuotaResponseTotal | null): any; diff --git a/dist/esm/models/GetUploadQuotaResponseTotal.js b/dist/esm/models/GetUploadQuotaResponseTotal.js new file mode 100644 index 0000000..1fea4fd --- /dev/null +++ b/dist/esm/models/GetUploadQuotaResponseTotal.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetUploadQuotaResponseTotal interface. + */ +export function instanceOfGetUploadQuotaResponseTotal(value) { + return true; +} +export function GetUploadQuotaResponseTotalFromJSON(json) { + return GetUploadQuotaResponseTotalFromJSONTyped(json, false); +} +export function GetUploadQuotaResponseTotalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'usage': json['usage'] == null ? undefined : json['usage'], + }; +} +export function GetUploadQuotaResponseTotalToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'usage': value['usage'], + }; +} diff --git a/dist/esm/models/GetWarehouseFBSOperationStatusResponseError.d.ts b/dist/esm/models/GetWarehouseFBSOperationStatusResponseError.d.ts new file mode 100644 index 0000000..a81602b --- /dev/null +++ b/dist/esm/models/GetWarehouseFBSOperationStatusResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ошибка при обработке операции. + * @export + * @interface GetWarehouseFBSOperationStatusResponseError + */ +export interface GetWarehouseFBSOperationStatusResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof GetWarehouseFBSOperationStatusResponseError + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof GetWarehouseFBSOperationStatusResponseError + */ + message?: string; +} +/** + * Check if a given object implements the GetWarehouseFBSOperationStatusResponseError interface. + */ +export declare function instanceOfGetWarehouseFBSOperationStatusResponseError(value: object): value is GetWarehouseFBSOperationStatusResponseError; +export declare function GetWarehouseFBSOperationStatusResponseErrorFromJSON(json: any): GetWarehouseFBSOperationStatusResponseError; +export declare function GetWarehouseFBSOperationStatusResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWarehouseFBSOperationStatusResponseError; +export declare function GetWarehouseFBSOperationStatusResponseErrorToJSON(value?: GetWarehouseFBSOperationStatusResponseError | null): any; diff --git a/dist/esm/models/GetWarehouseFBSOperationStatusResponseError.js b/dist/esm/models/GetWarehouseFBSOperationStatusResponseError.js new file mode 100644 index 0000000..e74e290 --- /dev/null +++ b/dist/esm/models/GetWarehouseFBSOperationStatusResponseError.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetWarehouseFBSOperationStatusResponseError interface. + */ +export function instanceOfGetWarehouseFBSOperationStatusResponseError(value) { + return true; +} +export function GetWarehouseFBSOperationStatusResponseErrorFromJSON(json) { + return GetWarehouseFBSOperationStatusResponseErrorFromJSONTyped(json, false); +} +export function GetWarehouseFBSOperationStatusResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function GetWarehouseFBSOperationStatusResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/GetWarehouseFBSOperationStatusResponseResult.d.ts b/dist/esm/models/GetWarehouseFBSOperationStatusResponseResult.d.ts new file mode 100644 index 0000000..b994341 --- /dev/null +++ b/dist/esm/models/GetWarehouseFBSOperationStatusResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат операции. + * @export + * @interface GetWarehouseFBSOperationStatusResponseResult + */ +export interface GetWarehouseFBSOperationStatusResponseResult { + /** + * Идентификатор обрабатываемой сущности. Если операция `CREATE_FBS_WAREHOUSE`, вернётся идентификатор склада. + * @type {number} + * @memberof GetWarehouseFBSOperationStatusResponseResult + */ + entity_id?: number; +} +/** + * Check if a given object implements the GetWarehouseFBSOperationStatusResponseResult interface. + */ +export declare function instanceOfGetWarehouseFBSOperationStatusResponseResult(value: object): value is GetWarehouseFBSOperationStatusResponseResult; +export declare function GetWarehouseFBSOperationStatusResponseResultFromJSON(json: any): GetWarehouseFBSOperationStatusResponseResult; +export declare function GetWarehouseFBSOperationStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWarehouseFBSOperationStatusResponseResult; +export declare function GetWarehouseFBSOperationStatusResponseResultToJSON(value?: GetWarehouseFBSOperationStatusResponseResult | null): any; diff --git a/dist/esm/models/GetWarehouseFBSOperationStatusResponseResult.js b/dist/esm/models/GetWarehouseFBSOperationStatusResponseResult.js new file mode 100644 index 0000000..191168f --- /dev/null +++ b/dist/esm/models/GetWarehouseFBSOperationStatusResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GetWarehouseFBSOperationStatusResponseResult interface. + */ +export function instanceOfGetWarehouseFBSOperationStatusResponseResult(value) { + return true; +} +export function GetWarehouseFBSOperationStatusResponseResultFromJSON(json) { + return GetWarehouseFBSOperationStatusResponseResultFromJSONTyped(json, false); +} +export function GetWarehouseFBSOperationStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'entity_id': json['entity_id'] == null ? undefined : json['entity_id'], + }; +} +export function GetWarehouseFBSOperationStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'entity_id': value['entity_id'], + }; +} diff --git a/dist/esm/models/GetWarehouseFBSOperationStatusResponseStatusEnum.d.ts b/dist/esm/models/GetWarehouseFBSOperationStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..04c0a47 --- /dev/null +++ b/dist/esm/models/GetWarehouseFBSOperationStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус операции: + * - `UNSPECIFIED` — не определено; + * - `IN_PROGRESS` — в процессе; + * - `SUCCESS` — выполнена; + * - `ERROR` — завершилась с ошибкой. + * + * @export + */ +export declare const GetWarehouseFBSOperationStatusResponseStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly SUCCESS: "SUCCESS"; + readonly ERROR: "ERROR"; +}; +export type GetWarehouseFBSOperationStatusResponseStatusEnum = typeof GetWarehouseFBSOperationStatusResponseStatusEnum[keyof typeof GetWarehouseFBSOperationStatusResponseStatusEnum]; +export declare function instanceOfGetWarehouseFBSOperationStatusResponseStatusEnum(value: any): boolean; +export declare function GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON(json: any): GetWarehouseFBSOperationStatusResponseStatusEnum; +export declare function GetWarehouseFBSOperationStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWarehouseFBSOperationStatusResponseStatusEnum; +export declare function GetWarehouseFBSOperationStatusResponseStatusEnumToJSON(value?: GetWarehouseFBSOperationStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/GetWarehouseFBSOperationStatusResponseStatusEnum.js b/dist/esm/models/GetWarehouseFBSOperationStatusResponseStatusEnum.js new file mode 100644 index 0000000..fe8f716 --- /dev/null +++ b/dist/esm/models/GetWarehouseFBSOperationStatusResponseStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус операции: + * - `UNSPECIFIED` — не определено; + * - `IN_PROGRESS` — в процессе; + * - `SUCCESS` — выполнена; + * - `ERROR` — завершилась с ошибкой. + * + * @export + */ +export const GetWarehouseFBSOperationStatusResponseStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + IN_PROGRESS: 'IN_PROGRESS', + SUCCESS: 'SUCCESS', + ERROR: 'ERROR' +}; +export function instanceOfGetWarehouseFBSOperationStatusResponseStatusEnum(value) { + for (const key in GetWarehouseFBSOperationStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(GetWarehouseFBSOperationStatusResponseStatusEnum, key)) { + if (GetWarehouseFBSOperationStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON(json) { + return GetWarehouseFBSOperationStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function GetWarehouseFBSOperationStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function GetWarehouseFBSOperationStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/GetWarehouseFBSOperationStatusResponseTypeEnum.d.ts b/dist/esm/models/GetWarehouseFBSOperationStatusResponseTypeEnum.d.ts new file mode 100644 index 0000000..a316cd2 --- /dev/null +++ b/dist/esm/models/GetWarehouseFBSOperationStatusResponseTypeEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `UNSPECIFIED` — не определено; + * - `CREATE_FBS_WAREHOUSE` — создание FBS-склада; + * - `UPDATE_FBS_WAREHOUSE` — обновление FBS-склада; + * - `SET_FIRST_MILE` — установка первой мили; + * - `WAREHOUSE_ENABLE_DISABLE` — архивация или разархивация FBS-склада; + * - `WAREHOUSE_PAUSE_UNPAUSE` — включение или выключение паузы rFBS-склада. + * + * @export + */ +export declare const GetWarehouseFBSOperationStatusResponseTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CREATE_FBS_WAREHOUSE: "CREATE_FBS_WAREHOUSE"; + readonly UPDATE_FBS_WAREHOUSE: "UPDATE_FBS_WAREHOUSE"; + readonly SET_FIRST_MILE: "SET_FIRST_MILE"; + readonly WAREHOUSE_ENABLE_DISABLE: "WAREHOUSE_ENABLE_DISABLE"; + readonly WAREHOUSE_PAUSE_UNPAUSE: "WAREHOUSE_PAUSE_UNPAUSE"; +}; +export type GetWarehouseFBSOperationStatusResponseTypeEnum = typeof GetWarehouseFBSOperationStatusResponseTypeEnum[keyof typeof GetWarehouseFBSOperationStatusResponseTypeEnum]; +export declare function instanceOfGetWarehouseFBSOperationStatusResponseTypeEnum(value: any): boolean; +export declare function GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON(json: any): GetWarehouseFBSOperationStatusResponseTypeEnum; +export declare function GetWarehouseFBSOperationStatusResponseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWarehouseFBSOperationStatusResponseTypeEnum; +export declare function GetWarehouseFBSOperationStatusResponseTypeEnumToJSON(value?: GetWarehouseFBSOperationStatusResponseTypeEnum | null): any; diff --git a/dist/esm/models/GetWarehouseFBSOperationStatusResponseTypeEnum.js b/dist/esm/models/GetWarehouseFBSOperationStatusResponseTypeEnum.js new file mode 100644 index 0000000..8bedb31 --- /dev/null +++ b/dist/esm/models/GetWarehouseFBSOperationStatusResponseTypeEnum.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `UNSPECIFIED` — не определено; + * - `CREATE_FBS_WAREHOUSE` — создание FBS-склада; + * - `UPDATE_FBS_WAREHOUSE` — обновление FBS-склада; + * - `SET_FIRST_MILE` — установка первой мили; + * - `WAREHOUSE_ENABLE_DISABLE` — архивация или разархивация FBS-склада; + * - `WAREHOUSE_PAUSE_UNPAUSE` — включение или выключение паузы rFBS-склада. + * + * @export + */ +export const GetWarehouseFBSOperationStatusResponseTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CREATE_FBS_WAREHOUSE: 'CREATE_FBS_WAREHOUSE', + UPDATE_FBS_WAREHOUSE: 'UPDATE_FBS_WAREHOUSE', + SET_FIRST_MILE: 'SET_FIRST_MILE', + WAREHOUSE_ENABLE_DISABLE: 'WAREHOUSE_ENABLE_DISABLE', + WAREHOUSE_PAUSE_UNPAUSE: 'WAREHOUSE_PAUSE_UNPAUSE' +}; +export function instanceOfGetWarehouseFBSOperationStatusResponseTypeEnum(value) { + for (const key in GetWarehouseFBSOperationStatusResponseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(GetWarehouseFBSOperationStatusResponseTypeEnum, key)) { + if (GetWarehouseFBSOperationStatusResponseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON(json) { + return GetWarehouseFBSOperationStatusResponseTypeEnumFromJSONTyped(json, false); +} +export function GetWarehouseFBSOperationStatusResponseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function GetWarehouseFBSOperationStatusResponseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/GiveoutInfoResponseArticleDetails.d.ts b/dist/esm/models/GiveoutInfoResponseArticleDetails.d.ts new file mode 100644 index 0000000..9575799 --- /dev/null +++ b/dist/esm/models/GiveoutInfoResponseArticleDetails.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GiveoutInfoResponseArticleDetails + */ +export interface GiveoutInfoResponseArticleDetails { + /** + * `true`, если отгрузка подтверждена. + * + * @type {boolean} + * @memberof GiveoutInfoResponseArticleDetails + */ + approved?: boolean; + /** + * Cхема доставки: + * - `GIVEOUT_DELIVERY_SCHEMA_UNSPECIFIED` — не определёна, напишите в поддержку. + * - `GIVEOUT_DELIVERY_SCHEMA_FBO` — FBO. + * - `GIVEOUT_DELIVERY_SCHEMA_FBS` — FBS. + * + * @type {string} + * @memberof GiveoutInfoResponseArticleDetails + */ + delivery_schema?: string; + /** + * Название товара. + * @type {string} + * @memberof GiveoutInfoResponseArticleDetails + */ + name?: string; + /** + * Идентификатор продавца. + * @type {number} + * @memberof GiveoutInfoResponseArticleDetails + */ + seller_id?: number; +} +/** + * Check if a given object implements the GiveoutInfoResponseArticleDetails interface. + */ +export declare function instanceOfGiveoutInfoResponseArticleDetails(value: object): value is GiveoutInfoResponseArticleDetails; +export declare function GiveoutInfoResponseArticleDetailsFromJSON(json: any): GiveoutInfoResponseArticleDetails; +export declare function GiveoutInfoResponseArticleDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GiveoutInfoResponseArticleDetails; +export declare function GiveoutInfoResponseArticleDetailsToJSON(value?: GiveoutInfoResponseArticleDetails | null): any; diff --git a/dist/esm/models/GiveoutInfoResponseArticleDetails.js b/dist/esm/models/GiveoutInfoResponseArticleDetails.js new file mode 100644 index 0000000..daae21e --- /dev/null +++ b/dist/esm/models/GiveoutInfoResponseArticleDetails.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GiveoutInfoResponseArticleDetails interface. + */ +export function instanceOfGiveoutInfoResponseArticleDetails(value) { + return true; +} +export function GiveoutInfoResponseArticleDetailsFromJSON(json) { + return GiveoutInfoResponseArticleDetailsFromJSONTyped(json, false); +} +export function GiveoutInfoResponseArticleDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved': json['approved'] == null ? undefined : json['approved'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'name': json['name'] == null ? undefined : json['name'], + 'seller_id': json['seller_id'] == null ? undefined : json['seller_id'], + }; +} +export function GiveoutInfoResponseArticleDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved': value['approved'], + 'delivery_schema': value['delivery_schema'], + 'name': value['name'], + 'seller_id': value['seller_id'], + }; +} diff --git a/dist/esm/models/GiveoutListResponseGiveoutDetails.d.ts b/dist/esm/models/GiveoutListResponseGiveoutDetails.d.ts new file mode 100644 index 0000000..51e3d38 --- /dev/null +++ b/dist/esm/models/GiveoutListResponseGiveoutDetails.d.ts @@ -0,0 +1,79 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GiveoutListResponseGiveoutDetails + */ +export interface GiveoutListResponseGiveoutDetails { + /** + * Количество товаров в отгрузке. + * @type {number} + * @memberof GiveoutListResponseGiveoutDetails + */ + approved_articles_count?: number; + /** + * Дата и время. + * @type {string} + * @memberof GiveoutListResponseGiveoutDetails + */ + created_at?: string; + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof GiveoutListResponseGiveoutDetails + */ + giveout_id?: number; + /** + * Статусы возвратной отгрузки: + * - `GIVEOUT_STATUS_UNSPECIFIED` — не определён, напишите в поддержку. + * - `GIVEOUT_STATUS_CREATED` — создана. + * - `GIVEOUT_STATUS_APPROVED` — одобрена. + * - `GIVEOUT_STATUS_COMPLETED` — завершена. + * - `GIVEOUT_STATUS_CANCELLED` — отменена. + * + * @type {string} + * @memberof GiveoutListResponseGiveoutDetails + */ + giveout_status?: string; + /** + * Общее количество товаров, которые нужно забрать со склада. + * @type {number} + * @memberof GiveoutListResponseGiveoutDetails + */ + total_articles_count?: number; + /** + * Адрес склада. + * @type {string} + * @memberof GiveoutListResponseGiveoutDetails + */ + warehouse_address?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof GiveoutListResponseGiveoutDetails + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof GiveoutListResponseGiveoutDetails + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the GiveoutListResponseGiveoutDetails interface. + */ +export declare function instanceOfGiveoutListResponseGiveoutDetails(value: object): value is GiveoutListResponseGiveoutDetails; +export declare function GiveoutListResponseGiveoutDetailsFromJSON(json: any): GiveoutListResponseGiveoutDetails; +export declare function GiveoutListResponseGiveoutDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GiveoutListResponseGiveoutDetails; +export declare function GiveoutListResponseGiveoutDetailsToJSON(value?: GiveoutListResponseGiveoutDetails | null): any; diff --git a/dist/esm/models/GiveoutListResponseGiveoutDetails.js b/dist/esm/models/GiveoutListResponseGiveoutDetails.js new file mode 100644 index 0000000..9d61a3d --- /dev/null +++ b/dist/esm/models/GiveoutListResponseGiveoutDetails.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GiveoutListResponseGiveoutDetails interface. + */ +export function instanceOfGiveoutListResponseGiveoutDetails(value) { + return true; +} +export function GiveoutListResponseGiveoutDetailsFromJSON(json) { + return GiveoutListResponseGiveoutDetailsFromJSONTyped(json, false); +} +export function GiveoutListResponseGiveoutDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_articles_count': json['approved_articles_count'] == null ? undefined : json['approved_articles_count'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'giveout_id': json['giveout_id'] == null ? undefined : json['giveout_id'], + 'giveout_status': json['giveout_status'] == null ? undefined : json['giveout_status'], + 'total_articles_count': json['total_articles_count'] == null ? undefined : json['total_articles_count'], + 'warehouse_address': json['warehouse_address'] == null ? undefined : json['warehouse_address'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function GiveoutListResponseGiveoutDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_articles_count': value['approved_articles_count'], + 'created_at': value['created_at'], + 'giveout_id': value['giveout_id'], + 'giveout_status': value['giveout_status'], + 'total_articles_count': value['total_articles_count'], + 'warehouse_address': value['warehouse_address'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/GoogleTypeDate.d.ts b/dist/esm/models/GoogleTypeDate.d.ts new file mode 100644 index 0000000..18d5299 --- /dev/null +++ b/dist/esm/models/GoogleTypeDate.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дата истечения сертификата. Не передавайте параметр, если `infinite = true`. + * @export + * @interface GoogleTypeDate + */ +export interface GoogleTypeDate { + /** + * День. + * @type {number} + * @memberof GoogleTypeDate + */ + day?: number; + /** + * Месяц. + * @type {number} + * @memberof GoogleTypeDate + */ + month?: number; + /** + * Год. + * @type {number} + * @memberof GoogleTypeDate + */ + year?: number; +} +/** + * Check if a given object implements the GoogleTypeDate interface. + */ +export declare function instanceOfGoogleTypeDate(value: object): value is GoogleTypeDate; +export declare function GoogleTypeDateFromJSON(json: any): GoogleTypeDate; +export declare function GoogleTypeDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleTypeDate; +export declare function GoogleTypeDateToJSON(value?: GoogleTypeDate | null): any; diff --git a/dist/esm/models/GoogleTypeDate.js b/dist/esm/models/GoogleTypeDate.js new file mode 100644 index 0000000..e1e9c1c --- /dev/null +++ b/dist/esm/models/GoogleTypeDate.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the GoogleTypeDate interface. + */ +export function instanceOfGoogleTypeDate(value) { + return true; +} +export function GoogleTypeDateFromJSON(json) { + return GoogleTypeDateFromJSONTyped(json, false); +} +export function GoogleTypeDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : json['day'], + 'month': json['month'] == null ? undefined : json['month'], + 'year': json['year'] == null ? undefined : json['year'], + }; +} +export function GoogleTypeDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/esm/models/GooglerpcStatus.d.ts b/dist/esm/models/GooglerpcStatus.d.ts new file mode 100644 index 0000000..ec1e473 --- /dev/null +++ b/dist/esm/models/GooglerpcStatus.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface GooglerpcStatus + */ +export interface GooglerpcStatus { + /** + * Код ошибки. + * @type {number} + * @memberof GooglerpcStatus + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {Array} + * @memberof GooglerpcStatus + */ + details?: Array; + /** + * Описание ошибки. + * @type {string} + * @memberof GooglerpcStatus + */ + message?: string; +} +/** + * Check if a given object implements the GooglerpcStatus interface. + */ +export declare function instanceOfGooglerpcStatus(value: object): value is GooglerpcStatus; +export declare function GooglerpcStatusFromJSON(json: any): GooglerpcStatus; +export declare function GooglerpcStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GooglerpcStatus; +export declare function GooglerpcStatusToJSON(value?: GooglerpcStatus | null): any; diff --git a/dist/esm/models/GooglerpcStatus.js b/dist/esm/models/GooglerpcStatus.js new file mode 100644 index 0000000..f76c4e2 --- /dev/null +++ b/dist/esm/models/GooglerpcStatus.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProtobufAnyFromJSON, ProtobufAnyToJSON, } from './ProtobufAny'; +/** + * Check if a given object implements the GooglerpcStatus interface. + */ +export function instanceOfGooglerpcStatus(value) { + return true; +} +export function GooglerpcStatusFromJSON(json) { + return GooglerpcStatusFromJSONTyped(json, false); +} +export function GooglerpcStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function GooglerpcStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/esm/models/HumanTextsParam.d.ts b/dist/esm/models/HumanTextsParam.d.ts new file mode 100644 index 0000000..bfcbf90 --- /dev/null +++ b/dist/esm/models/HumanTextsParam.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HumanTextsParam + */ +export interface HumanTextsParam { + /** + * Название параметра. + * @type {string} + * @memberof HumanTextsParam + */ + name?: string; + /** + * Значение параметра. + * @type {string} + * @memberof HumanTextsParam + */ + value?: string; +} +/** + * Check if a given object implements the HumanTextsParam interface. + */ +export declare function instanceOfHumanTextsParam(value: object): value is HumanTextsParam; +export declare function HumanTextsParamFromJSON(json: any): HumanTextsParam; +export declare function HumanTextsParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): HumanTextsParam; +export declare function HumanTextsParamToJSON(value?: HumanTextsParam | null): any; diff --git a/dist/esm/models/HumanTextsParam.js b/dist/esm/models/HumanTextsParam.js new file mode 100644 index 0000000..6472a4c --- /dev/null +++ b/dist/esm/models/HumanTextsParam.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the HumanTextsParam interface. + */ +export function instanceOfHumanTextsParam(value) { + return true; +} +export function HumanTextsParamFromJSON(json) { + return HumanTextsParamFromJSONTyped(json, false); +} +export function HumanTextsParamFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function HumanTextsParamToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ImportProductRequestPromotion.d.ts b/dist/esm/models/ImportProductRequestPromotion.d.ts new file mode 100644 index 0000000..f2b3a78 --- /dev/null +++ b/dist/esm/models/ImportProductRequestPromotion.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ImportProductRequestPromotion + */ +export interface ImportProductRequestPromotion { + /** + * Атрибут для действий с акцией: + * - `ENABLE` — включить, + * - `DISABLE` — выключить, + * - `UNKNOWN` — ничего не менять, передаётся по умолчанию. + * + * @type {string} + * @memberof ImportProductRequestPromotion + */ + operation?: ImportProductRequestPromotionOperationEnum; + /** + * Тип акции: + * - `REVIEWS_PROMO` — акция «Ускоренный сбор отзывов». + * + * @type {string} + * @memberof ImportProductRequestPromotion + */ + type?: ImportProductRequestPromotionTypeEnum; +} +/** + * @export + */ +export declare const ImportProductRequestPromotionOperationEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly ENABLE: "ENABLE"; + readonly DISABLE: "DISABLE"; +}; +export type ImportProductRequestPromotionOperationEnum = typeof ImportProductRequestPromotionOperationEnum[keyof typeof ImportProductRequestPromotionOperationEnum]; +/** + * @export + */ +export declare const ImportProductRequestPromotionTypeEnum: { + readonly REVIEWS_PROMO: "REVIEWS_PROMO"; +}; +export type ImportProductRequestPromotionTypeEnum = typeof ImportProductRequestPromotionTypeEnum[keyof typeof ImportProductRequestPromotionTypeEnum]; +/** + * Check if a given object implements the ImportProductRequestPromotion interface. + */ +export declare function instanceOfImportProductRequestPromotion(value: object): value is ImportProductRequestPromotion; +export declare function ImportProductRequestPromotionFromJSON(json: any): ImportProductRequestPromotion; +export declare function ImportProductRequestPromotionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProductRequestPromotion; +export declare function ImportProductRequestPromotionToJSON(value?: ImportProductRequestPromotion | null): any; diff --git a/dist/esm/models/ImportProductRequestPromotion.js b/dist/esm/models/ImportProductRequestPromotion.js new file mode 100644 index 0000000..2a1d320 --- /dev/null +++ b/dist/esm/models/ImportProductRequestPromotion.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const ImportProductRequestPromotionOperationEnum = { + UNKNOWN: 'UNKNOWN', + ENABLE: 'ENABLE', + DISABLE: 'DISABLE' +}; +/** + * @export + */ +export const ImportProductRequestPromotionTypeEnum = { + REVIEWS_PROMO: 'REVIEWS_PROMO' +}; +/** + * Check if a given object implements the ImportProductRequestPromotion interface. + */ +export function instanceOfImportProductRequestPromotion(value) { + return true; +} +export function ImportProductRequestPromotionFromJSON(json) { + return ImportProductRequestPromotionFromJSONTyped(json, false); +} +export function ImportProductRequestPromotionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation': json['operation'] == null ? undefined : json['operation'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} +export function ImportProductRequestPromotionToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation': value['operation'], + 'type': value['type'], + }; +} diff --git a/dist/esm/models/ImportProductsRequestPdfList.d.ts b/dist/esm/models/ImportProductsRequestPdfList.d.ts new file mode 100644 index 0000000..bbd6bd4 --- /dev/null +++ b/dist/esm/models/ImportProductsRequestPdfList.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ImportProductsRequestPdfList + */ +export interface ImportProductsRequestPdfList { + /** + * Индекс документа в хранилище, который задаёт порядок. + * @type {number} + * @memberof ImportProductsRequestPdfList + */ + index?: number; + /** + * Название файла. + * @type {string} + * @memberof ImportProductsRequestPdfList + */ + name?: string; + /** + * Адрес файла. + * @type {string} + * @memberof ImportProductsRequestPdfList + */ + src_url?: string; +} +/** + * Check if a given object implements the ImportProductsRequestPdfList interface. + */ +export declare function instanceOfImportProductsRequestPdfList(value: object): value is ImportProductsRequestPdfList; +export declare function ImportProductsRequestPdfListFromJSON(json: any): ImportProductsRequestPdfList; +export declare function ImportProductsRequestPdfListFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProductsRequestPdfList; +export declare function ImportProductsRequestPdfListToJSON(value?: ImportProductsRequestPdfList | null): any; diff --git a/dist/esm/models/ImportProductsRequestPdfList.js b/dist/esm/models/ImportProductsRequestPdfList.js new file mode 100644 index 0000000..838f210 --- /dev/null +++ b/dist/esm/models/ImportProductsRequestPdfList.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ImportProductsRequestPdfList interface. + */ +export function instanceOfImportProductsRequestPdfList(value) { + return true; +} +export function ImportProductsRequestPdfListFromJSON(json) { + return ImportProductsRequestPdfListFromJSONTyped(json, false); +} +export function ImportProductsRequestPdfListFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'index': json['index'] == null ? undefined : json['index'], + 'name': json['name'] == null ? undefined : json['name'], + 'src_url': json['src_url'] == null ? undefined : json['src_url'], + }; +} +export function ImportProductsRequestPdfListToJSON(value) { + if (value == null) { + return value; + } + return { + 'index': value['index'], + 'name': value['name'], + 'src_url': value['src_url'], + }; +} diff --git a/dist/esm/models/InvoiceGetV2ResponseResult.d.ts b/dist/esm/models/InvoiceGetV2ResponseResult.d.ts new file mode 100644 index 0000000..cb7a8f0 --- /dev/null +++ b/dist/esm/models/InvoiceGetV2ResponseResult.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2HsCode } from './V2HsCode'; +/** + * Информация о счёте-фактуре. + * @export + * @interface InvoiceGetV2ResponseResult + */ +export interface InvoiceGetV2ResponseResult { + /** + * Дата загрузки счёта-фактуры. + * @type {string} + * @memberof InvoiceGetV2ResponseResult + */ + date?: string; + /** + * Ссылка на счёт-фактуру. + * @type {string} + * @memberof InvoiceGetV2ResponseResult + */ + file_url?: string; + /** + * HS-коды товаров. + * @type {Array} + * @memberof InvoiceGetV2ResponseResult + */ + hs_codes?: Array; + /** + * Номер счёта-фактуры. + * @type {string} + * @memberof InvoiceGetV2ResponseResult + */ + number?: string; + /** + * Стоимость, указанная в счёте-фактуре. + * Разделитель дробной части — точка, до двух знаков после точки. + * Пример: `199.99`. + * + * @type {number} + * @memberof InvoiceGetV2ResponseResult + */ + price?: number; + /** + * Валюта счёта-фактуры: + * - `USD` — доллар, + * - `EUR` — евро, + * - `TRY` — турецкая лира, + * - `CNY` — юань, + * - `RUB` — рубль, + * - `GBP` — фунт стерлингов. + * + * Значение по умолчанию — `USD`. + * + * @type {string} + * @memberof InvoiceGetV2ResponseResult + */ + price_currency?: string; +} +/** + * Check if a given object implements the InvoiceGetV2ResponseResult interface. + */ +export declare function instanceOfInvoiceGetV2ResponseResult(value: object): value is InvoiceGetV2ResponseResult; +export declare function InvoiceGetV2ResponseResultFromJSON(json: any): InvoiceGetV2ResponseResult; +export declare function InvoiceGetV2ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceGetV2ResponseResult; +export declare function InvoiceGetV2ResponseResultToJSON(value?: InvoiceGetV2ResponseResult | null): any; diff --git a/dist/esm/models/InvoiceGetV2ResponseResult.js b/dist/esm/models/InvoiceGetV2ResponseResult.js new file mode 100644 index 0000000..0502654 --- /dev/null +++ b/dist/esm/models/InvoiceGetV2ResponseResult.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2HsCodeFromJSON, V2HsCodeToJSON, } from './V2HsCode'; +/** + * Check if a given object implements the InvoiceGetV2ResponseResult interface. + */ +export function instanceOfInvoiceGetV2ResponseResult(value) { + return true; +} +export function InvoiceGetV2ResponseResultFromJSON(json) { + return InvoiceGetV2ResponseResultFromJSONTyped(json, false); +} +export function InvoiceGetV2ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + 'hs_codes': json['hs_codes'] == null ? undefined : (json['hs_codes'].map(V2HsCodeFromJSON)), + 'number': json['number'] == null ? undefined : json['number'], + 'price': json['price'] == null ? undefined : json['price'], + 'price_currency': json['price_currency'] == null ? undefined : json['price_currency'], + }; +} +export function InvoiceGetV2ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'file_url': value['file_url'], + 'hs_codes': value['hs_codes'] == null ? undefined : (value['hs_codes'].map(V2HsCodeToJSON)), + 'number': value['number'], + 'price': value['price'], + 'price_currency': value['price_currency'], + }; +} diff --git a/dist/esm/models/ItemBundleSummary.d.ts b/dist/esm/models/ItemBundleSummary.d.ts new file mode 100644 index 0000000..bcfbcde --- /dev/null +++ b/dist/esm/models/ItemBundleSummary.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сводная информация по товарам в поставке. + * @export + * @interface ItemBundleSummary + */ +export interface ItemBundleSummary { + /** + * Общий объём товаров в литрах. + * @type {number} + * @memberof ItemBundleSummary + */ + rounded_total_volume_in_litres?: number; + /** + * Количество SKU в поставке. + * @type {number} + * @memberof ItemBundleSummary + */ + total_item_count?: number; + /** + * Количество единиц товаров в поставке. + * @type {number} + * @memberof ItemBundleSummary + */ + total_quantity?: number; +} +/** + * Check if a given object implements the ItemBundleSummary interface. + */ +export declare function instanceOfItemBundleSummary(value: object): value is ItemBundleSummary; +export declare function ItemBundleSummaryFromJSON(json: any): ItemBundleSummary; +export declare function ItemBundleSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemBundleSummary; +export declare function ItemBundleSummaryToJSON(value?: ItemBundleSummary | null): any; diff --git a/dist/esm/models/ItemBundleSummary.js b/dist/esm/models/ItemBundleSummary.js new file mode 100644 index 0000000..04b8795 --- /dev/null +++ b/dist/esm/models/ItemBundleSummary.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ItemBundleSummary interface. + */ +export function instanceOfItemBundleSummary(value) { + return true; +} +export function ItemBundleSummaryFromJSON(json) { + return ItemBundleSummaryFromJSONTyped(json, false); +} +export function ItemBundleSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rounded_total_volume_in_litres': json['rounded_total_volume_in_litres'] == null ? undefined : json['rounded_total_volume_in_litres'], + 'total_item_count': json['total_item_count'] == null ? undefined : json['total_item_count'], + 'total_quantity': json['total_quantity'] == null ? undefined : json['total_quantity'], + }; +} +export function ItemBundleSummaryToJSON(value) { + if (value == null) { + return value; + } + return { + 'rounded_total_volume_in_litres': value['rounded_total_volume_in_litres'], + 'total_item_count': value['total_item_count'], + 'total_quantity': value['total_quantity'], + }; +} diff --git a/dist/esm/models/ItemCommissionsv5.d.ts b/dist/esm/models/ItemCommissionsv5.d.ts new file mode 100644 index 0000000..0cf2397 --- /dev/null +++ b/dist/esm/models/ItemCommissionsv5.d.ts @@ -0,0 +1,115 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о комиссиях. + * @export + * @interface ItemCommissionsv5 + */ +export interface ItemCommissionsv5 { + /** + * Последняя миля (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbo_deliv_to_customer_amount?: number; + /** + * Магистраль до (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbo_direct_flow_trans_max_amount?: number; + /** + * Магистраль от (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbo_direct_flow_trans_min_amount?: number; + /** + * Комиссия за возврат и отмену (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbo_return_flow_amount?: number; + /** + * Последняя миля (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_deliv_to_customer_amount?: number; + /** + * Магистраль до (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_direct_flow_trans_max_amount?: number; + /** + * Магистраль от (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_direct_flow_trans_min_amount?: number; + /** + * Максимальная комиссия за обработку отправления (FBS). + * + * [Подробнее о тарифах в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/rashody-na-dop-uslugi#выезд-транспортного-средства-по-адресу-продавца-для-забора-отправлении-(pick-up)) + * + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_first_mile_max_amount?: number; + /** + * Минимальная комиссия за обработку отправления (FBS). + * + * [Подробнее о тарифах в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/rashody-na-dop-uslugi#выезд-транспортного-средства-по-адресу-продавца-для-забора-отправлении-(pick-up)) + * + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_first_mile_min_amount?: number; + /** + * Комиссия за возврат и отмену, обработка отправления (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_return_flow_amount?: number; + /** + * Процент комиссии за продажу (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + sales_percent_fbo?: number; + /** + * Процент комиссии за продажу (FBP). + * @type {number} + * @memberof ItemCommissionsv5 + */ + sales_percent_fbp?: number; + /** + * Процент комиссии за продажу (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + sales_percent_fbs?: number; + /** + * Процент комиссии за продажу (rFBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + sales_percent_rfbs?: number; +} +/** + * Check if a given object implements the ItemCommissionsv5 interface. + */ +export declare function instanceOfItemCommissionsv5(value: object): value is ItemCommissionsv5; +export declare function ItemCommissionsv5FromJSON(json: any): ItemCommissionsv5; +export declare function ItemCommissionsv5FromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemCommissionsv5; +export declare function ItemCommissionsv5ToJSON(value?: ItemCommissionsv5 | null): any; diff --git a/dist/esm/models/ItemCommissionsv5.js b/dist/esm/models/ItemCommissionsv5.js new file mode 100644 index 0000000..e857a88 --- /dev/null +++ b/dist/esm/models/ItemCommissionsv5.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ItemCommissionsv5 interface. + */ +export function instanceOfItemCommissionsv5(value) { + return true; +} +export function ItemCommissionsv5FromJSON(json) { + return ItemCommissionsv5FromJSONTyped(json, false); +} +export function ItemCommissionsv5FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fbo_deliv_to_customer_amount': json['fbo_deliv_to_customer_amount'] == null ? undefined : json['fbo_deliv_to_customer_amount'], + 'fbo_direct_flow_trans_max_amount': json['fbo_direct_flow_trans_max_amount'] == null ? undefined : json['fbo_direct_flow_trans_max_amount'], + 'fbo_direct_flow_trans_min_amount': json['fbo_direct_flow_trans_min_amount'] == null ? undefined : json['fbo_direct_flow_trans_min_amount'], + 'fbo_return_flow_amount': json['fbo_return_flow_amount'] == null ? undefined : json['fbo_return_flow_amount'], + 'fbs_deliv_to_customer_amount': json['fbs_deliv_to_customer_amount'] == null ? undefined : json['fbs_deliv_to_customer_amount'], + 'fbs_direct_flow_trans_max_amount': json['fbs_direct_flow_trans_max_amount'] == null ? undefined : json['fbs_direct_flow_trans_max_amount'], + 'fbs_direct_flow_trans_min_amount': json['fbs_direct_flow_trans_min_amount'] == null ? undefined : json['fbs_direct_flow_trans_min_amount'], + 'fbs_first_mile_max_amount': json['fbs_first_mile_max_amount'] == null ? undefined : json['fbs_first_mile_max_amount'], + 'fbs_first_mile_min_amount': json['fbs_first_mile_min_amount'] == null ? undefined : json['fbs_first_mile_min_amount'], + 'fbs_return_flow_amount': json['fbs_return_flow_amount'] == null ? undefined : json['fbs_return_flow_amount'], + 'sales_percent_fbo': json['sales_percent_fbo'] == null ? undefined : json['sales_percent_fbo'], + 'sales_percent_fbp': json['sales_percent_fbp'] == null ? undefined : json['sales_percent_fbp'], + 'sales_percent_fbs': json['sales_percent_fbs'] == null ? undefined : json['sales_percent_fbs'], + 'sales_percent_rfbs': json['sales_percent_rfbs'] == null ? undefined : json['sales_percent_rfbs'], + }; +} +export function ItemCommissionsv5ToJSON(value) { + if (value == null) { + return value; + } + return { + 'fbo_deliv_to_customer_amount': value['fbo_deliv_to_customer_amount'], + 'fbo_direct_flow_trans_max_amount': value['fbo_direct_flow_trans_max_amount'], + 'fbo_direct_flow_trans_min_amount': value['fbo_direct_flow_trans_min_amount'], + 'fbo_return_flow_amount': value['fbo_return_flow_amount'], + 'fbs_deliv_to_customer_amount': value['fbs_deliv_to_customer_amount'], + 'fbs_direct_flow_trans_max_amount': value['fbs_direct_flow_trans_max_amount'], + 'fbs_direct_flow_trans_min_amount': value['fbs_direct_flow_trans_min_amount'], + 'fbs_first_mile_max_amount': value['fbs_first_mile_max_amount'], + 'fbs_first_mile_min_amount': value['fbs_first_mile_min_amount'], + 'fbs_return_flow_amount': value['fbs_return_flow_amount'], + 'sales_percent_fbo': value['sales_percent_fbo'], + 'sales_percent_fbp': value['sales_percent_fbp'], + 'sales_percent_fbs': value['sales_percent_fbs'], + 'sales_percent_rfbs': value['sales_percent_rfbs'], + }; +} diff --git a/dist/esm/models/ItemMarketing.d.ts b/dist/esm/models/ItemMarketing.d.ts new file mode 100644 index 0000000..cb88f1a --- /dev/null +++ b/dist/esm/models/ItemMarketing.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MarketingAction } from './MarketingAction'; +/** + * Маркетинговые акции. + * @export + * @interface ItemMarketing + */ +export interface ItemMarketing { + /** + * Маркетинговые акции. Параметры `date_from`, `date_to`, `title` и `value` указываются для каждой акции. + * @type {Array} + * @memberof ItemMarketing + */ + actions?: Array; + /** + * Дата и время начала текущего периода по всем действующим акциям. + * @type {string} + * @memberof ItemMarketing + */ + current_period_from?: string; + /** + * Дата и время окончания текущего периода по всем действующим акциям. + * @type {string} + * @memberof ItemMarketing + */ + current_period_to?: string; + /** + * `true`, если к товару можно применить акцию за счёт Ozon. + * + * @type {boolean} + * @memberof ItemMarketing + */ + ozon_actions_exist?: boolean; +} +/** + * Check if a given object implements the ItemMarketing interface. + */ +export declare function instanceOfItemMarketing(value: object): value is ItemMarketing; +export declare function ItemMarketingFromJSON(json: any): ItemMarketing; +export declare function ItemMarketingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemMarketing; +export declare function ItemMarketingToJSON(value?: ItemMarketing | null): any; diff --git a/dist/esm/models/ItemMarketing.js b/dist/esm/models/ItemMarketing.js new file mode 100644 index 0000000..824f6b9 --- /dev/null +++ b/dist/esm/models/ItemMarketing.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MarketingActionFromJSON, MarketingActionToJSON, } from './MarketingAction'; +/** + * Check if a given object implements the ItemMarketing interface. + */ +export function instanceOfItemMarketing(value) { + return true; +} +export function ItemMarketingFromJSON(json) { + return ItemMarketingFromJSONTyped(json, false); +} +export function ItemMarketingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : (json['actions'].map(MarketingActionFromJSON)), + 'current_period_from': json['current_period_from'] == null ? undefined : json['current_period_from'], + 'current_period_to': json['current_period_to'] == null ? undefined : json['current_period_to'], + 'ozon_actions_exist': json['ozon_actions_exist'] == null ? undefined : json['ozon_actions_exist'], + }; +} +export function ItemMarketingToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'] == null ? undefined : (value['actions'].map(MarketingActionToJSON)), + 'current_period_from': value['current_period_from'], + 'current_period_to': value['current_period_to'], + 'ozon_actions_exist': value['ozon_actions_exist'], + }; +} diff --git a/dist/esm/models/ItemPricev5.d.ts b/dist/esm/models/ItemPricev5.d.ts new file mode 100644 index 0000000..219c415 --- /dev/null +++ b/dist/esm/models/ItemPricev5.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара. + * @export + * @interface ItemPricev5 + */ +export interface ItemPricev5 { + /** + * `true`, если автоприменение акций у товара включено. + * + * @type {boolean} + * @memberof ItemPricev5 + */ + auto_action_enabled?: boolean; + /** + * `true`, если автодобавление товара в акции включено. + * + * @type {boolean} + * @memberof ItemPricev5 + */ + auto_add_to_ozon_actions_list_enabled?: boolean; + /** + * Валюта ваших цен. Совпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ItemPricev5 + */ + currency_code?: string; + /** + * Цена на товар с учётом акций продавца. + * @type {number} + * @memberof ItemPricev5 + */ + marketing_seller_price?: number; + /** + * Минимальная цена товара после применения всех скидок. + * @type {number} + * @memberof ItemPricev5 + */ + min_price?: number; + /** + * Себестоимость товара. + * @type {number} + * @memberof ItemPricev5 + */ + net_price?: number; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof ItemPricev5 + */ + old_price?: number; + /** + * Цена товара с учётом скидок — это значение показывается на карточке товара. + * @type {number} + * @memberof ItemPricev5 + */ + price?: number; + /** + * Цена поставщика по договору. Поле вернётся пустым, если нет договора на поставку. + * @type {number} + * @memberof ItemPricev5 + */ + retail_price?: number; + /** + * Ставка НДС для товара. + * @type {number} + * @memberof ItemPricev5 + */ + vat?: number; +} +/** + * Check if a given object implements the ItemPricev5 interface. + */ +export declare function instanceOfItemPricev5(value: object): value is ItemPricev5; +export declare function ItemPricev5FromJSON(json: any): ItemPricev5; +export declare function ItemPricev5FromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemPricev5; +export declare function ItemPricev5ToJSON(value?: ItemPricev5 | null): any; diff --git a/dist/esm/models/ItemPricev5.js b/dist/esm/models/ItemPricev5.js new file mode 100644 index 0000000..8b1d886 --- /dev/null +++ b/dist/esm/models/ItemPricev5.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ItemPricev5 interface. + */ +export function instanceOfItemPricev5(value) { + return true; +} +export function ItemPricev5FromJSON(json) { + return ItemPricev5FromJSONTyped(json, false); +} +export function ItemPricev5FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'auto_action_enabled': json['auto_action_enabled'] == null ? undefined : json['auto_action_enabled'], + 'auto_add_to_ozon_actions_list_enabled': json['auto_add_to_ozon_actions_list_enabled'] == null ? undefined : json['auto_add_to_ozon_actions_list_enabled'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'marketing_seller_price': json['marketing_seller_price'] == null ? undefined : json['marketing_seller_price'], + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'net_price': json['net_price'] == null ? undefined : json['net_price'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'retail_price': json['retail_price'] == null ? undefined : json['retail_price'], + 'vat': json['vat'] == null ? undefined : json['vat'], + }; +} +export function ItemPricev5ToJSON(value) { + if (value == null) { + return value; + } + return { + 'auto_action_enabled': value['auto_action_enabled'], + 'auto_add_to_ozon_actions_list_enabled': value['auto_add_to_ozon_actions_list_enabled'], + 'currency_code': value['currency_code'], + 'marketing_seller_price': value['marketing_seller_price'], + 'min_price': value['min_price'], + 'net_price': value['net_price'], + 'old_price': value['old_price'], + 'price': value['price'], + 'retail_price': value['retail_price'], + 'vat': value['vat'], + }; +} diff --git a/dist/esm/models/ItemSize.d.ts b/dist/esm/models/ItemSize.d.ts new file mode 100644 index 0000000..8e8605c --- /dev/null +++ b/dist/esm/models/ItemSize.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Габариты товара. + * @export + * @interface ItemSize + */ +export interface ItemSize { + /** + * Высота товара в миллиметрах. + * @type {number} + * @memberof ItemSize + */ + height_mm?: number; + /** + * Длина товара в миллиметрах. + * @type {number} + * @memberof ItemSize + */ + length_mm?: number; + /** + * Ширина товара в миллиметрах. + * @type {number} + * @memberof ItemSize + */ + width_mm?: number; +} +/** + * Check if a given object implements the ItemSize interface. + */ +export declare function instanceOfItemSize(value: object): value is ItemSize; +export declare function ItemSizeFromJSON(json: any): ItemSize; +export declare function ItemSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemSize; +export declare function ItemSizeToJSON(value?: ItemSize | null): any; diff --git a/dist/esm/models/ItemSize.js b/dist/esm/models/ItemSize.js new file mode 100644 index 0000000..9056be5 --- /dev/null +++ b/dist/esm/models/ItemSize.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ItemSize interface. + */ +export function instanceOfItemSize(value) { + return true; +} +export function ItemSizeFromJSON(json) { + return ItemSizeFromJSONTyped(json, false); +} +export function ItemSizeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height_mm': json['height_mm'] == null ? undefined : json['height_mm'], + 'length_mm': json['length_mm'] == null ? undefined : json['length_mm'], + 'width_mm': json['width_mm'] == null ? undefined : json['width_mm'], + }; +} +export function ItemSizeToJSON(value) { + if (value == null) { + return value; + } + return { + 'height_mm': value['height_mm'], + 'length_mm': value['length_mm'], + 'width_mm': value['width_mm'], + }; +} diff --git a/dist/esm/models/ItemStatusError.d.ts b/dist/esm/models/ItemStatusError.d.ts new file mode 100644 index 0000000..c544aec --- /dev/null +++ b/dist/esm/models/ItemStatusError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ItemStatusError + */ +export interface ItemStatusError { + /** + * Код ошибки. + * @type {string} + * @memberof ItemStatusError + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof ItemStatusError + */ + message?: string; +} +/** + * Check if a given object implements the ItemStatusError interface. + */ +export declare function instanceOfItemStatusError(value: object): value is ItemStatusError; +export declare function ItemStatusErrorFromJSON(json: any): ItemStatusError; +export declare function ItemStatusErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemStatusError; +export declare function ItemStatusErrorToJSON(value?: ItemStatusError | null): any; diff --git a/dist/esm/models/ItemStatusError.js b/dist/esm/models/ItemStatusError.js new file mode 100644 index 0000000..0a06a48 --- /dev/null +++ b/dist/esm/models/ItemStatusError.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ItemStatusError interface. + */ +export function instanceOfItemStatusError(value) { + return true; +} +export function ItemStatusErrorFromJSON(json) { + return ItemStatusErrorFromJSONTyped(json, false); +} +export function ItemStatusErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function ItemStatusErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/ItemValidationErrorType.d.ts b/dist/esm/models/ItemValidationErrorType.d.ts new file mode 100644 index 0000000..d14b7d1 --- /dev/null +++ b/dist/esm/models/ItemValidationErrorType.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `SUPPLY_ITEM_NOT_FOUND` — товар не найден; + * - `DUPLICATED_SUPPLY_ITEM` — найден дубликат товара; + * - `BEFORE_DEADLINE` — некорректный срок годности; + * - `SAME_BARCODES` — у разных SKU одинаковые штрихкоды; + * - `SAME_ARTICLES` — у разных SKU одинаковые артикулы; + * - `NOT_UNIQUE_SKU_BY_PRODUCT` — одинаковый SKU в грузоместе используется для разных товаров; + * - `QUANTITY_NOT_DIVISIBLE_BY_QUANT` — количество SKU в грузоместе не кратно кванту; + * - `NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO` — в грузоместе отсутствует палетная SKU; + * - `NOT_ONE_QUANT_PALLET_SKU` — в квантовом палетном грузоместе должен быть только один квант; + * - `NOT_ECONOM_SKU` — в эконом-поставке указан не эконом-SKU; + * - `QUANTITY_LESS_ONE` — количество SKU в эконом-поставке меньше 1; + * - `SUPPLY_ITEM_WITH_QUANT_NOT_FOUND` — товар не найден по артикулу, штрихкоду и размеру кванта. + * + * @export + */ +export declare const ItemValidationErrorType: { + readonly SUPPLY_ITEM_NOT_FOUND: "SUPPLY_ITEM_NOT_FOUND"; + readonly DUPLICATED_SUPPLY_ITEM: "DUPLICATED_SUPPLY_ITEM"; + readonly BEFORE_DEADLINE: "BEFORE_DEADLINE"; + readonly SAME_BARCODES: "SAME_BARCODES"; + readonly SAME_ARTICLES: "SAME_ARTICLES"; + readonly NOT_UNIQUE_SKU_BY_PRODUCT: "NOT_UNIQUE_SKU_BY_PRODUCT"; + readonly QUANTITY_NOT_DIVISIBLE_BY_QUANT: "QUANTITY_NOT_DIVISIBLE_BY_QUANT"; + readonly NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO: "NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO"; + readonly NOT_ONE_QUANT_PALLET_SKU: "NOT_ONE_QUANT_PALLET_SKU"; + readonly NOT_ECONOM_SKU: "NOT_ECONOM_SKU"; + readonly QUANTITY_LESS_ONE: "QUANTITY_LESS_ONE"; + readonly SUPPLY_ITEM_WITH_QUANT_NOT_FOUND: "SUPPLY_ITEM_WITH_QUANT_NOT_FOUND"; +}; +export type ItemValidationErrorType = typeof ItemValidationErrorType[keyof typeof ItemValidationErrorType]; +export declare function instanceOfItemValidationErrorType(value: any): boolean; +export declare function ItemValidationErrorTypeFromJSON(json: any): ItemValidationErrorType; +export declare function ItemValidationErrorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemValidationErrorType; +export declare function ItemValidationErrorTypeToJSON(value?: ItemValidationErrorType | null): any; diff --git a/dist/esm/models/ItemValidationErrorType.js b/dist/esm/models/ItemValidationErrorType.js new file mode 100644 index 0000000..08fce70 --- /dev/null +++ b/dist/esm/models/ItemValidationErrorType.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `SUPPLY_ITEM_NOT_FOUND` — товар не найден; + * - `DUPLICATED_SUPPLY_ITEM` — найден дубликат товара; + * - `BEFORE_DEADLINE` — некорректный срок годности; + * - `SAME_BARCODES` — у разных SKU одинаковые штрихкоды; + * - `SAME_ARTICLES` — у разных SKU одинаковые артикулы; + * - `NOT_UNIQUE_SKU_BY_PRODUCT` — одинаковый SKU в грузоместе используется для разных товаров; + * - `QUANTITY_NOT_DIVISIBLE_BY_QUANT` — количество SKU в грузоместе не кратно кванту; + * - `NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO` — в грузоместе отсутствует палетная SKU; + * - `NOT_ONE_QUANT_PALLET_SKU` — в квантовом палетном грузоместе должен быть только один квант; + * - `NOT_ECONOM_SKU` — в эконом-поставке указан не эконом-SKU; + * - `QUANTITY_LESS_ONE` — количество SKU в эконом-поставке меньше 1; + * - `SUPPLY_ITEM_WITH_QUANT_NOT_FOUND` — товар не найден по артикулу, штрихкоду и размеру кванта. + * + * @export + */ +export const ItemValidationErrorType = { + SUPPLY_ITEM_NOT_FOUND: 'SUPPLY_ITEM_NOT_FOUND', + DUPLICATED_SUPPLY_ITEM: 'DUPLICATED_SUPPLY_ITEM', + BEFORE_DEADLINE: 'BEFORE_DEADLINE', + SAME_BARCODES: 'SAME_BARCODES', + SAME_ARTICLES: 'SAME_ARTICLES', + NOT_UNIQUE_SKU_BY_PRODUCT: 'NOT_UNIQUE_SKU_BY_PRODUCT', + QUANTITY_NOT_DIVISIBLE_BY_QUANT: 'QUANTITY_NOT_DIVISIBLE_BY_QUANT', + NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO: 'NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO', + NOT_ONE_QUANT_PALLET_SKU: 'NOT_ONE_QUANT_PALLET_SKU', + NOT_ECONOM_SKU: 'NOT_ECONOM_SKU', + QUANTITY_LESS_ONE: 'QUANTITY_LESS_ONE', + SUPPLY_ITEM_WITH_QUANT_NOT_FOUND: 'SUPPLY_ITEM_WITH_QUANT_NOT_FOUND' +}; +export function instanceOfItemValidationErrorType(value) { + for (const key in ItemValidationErrorType) { + if (Object.prototype.hasOwnProperty.call(ItemValidationErrorType, key)) { + if (ItemValidationErrorType[key] === value) { + return true; + } + } + } + return false; +} +export function ItemValidationErrorTypeFromJSON(json) { + return ItemValidationErrorTypeFromJSONTyped(json, false); +} +export function ItemValidationErrorTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ItemValidationErrorTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/ItemsValidationRejectedItems.d.ts b/dist/esm/models/ItemsValidationRejectedItems.d.ts new file mode 100644 index 0000000..ccf16de --- /dev/null +++ b/dist/esm/models/ItemsValidationRejectedItems.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RejectedItemsReasonEnum } from './RejectedItemsReasonEnum'; +/** + * + * @export + * @interface ItemsValidationRejectedItems + */ +export interface ItemsValidationRejectedItems { + /** + * Причины отклонения: + * - `UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товар не входит в ассортимент; + * - `INVALID` — недействительный товар; + * - `INCOMPATIBLE_WAREHOUSE` — товар нельзя разместить на выбранном складе; + * - `EMPTY_BARCODE` — нет штрихкода; + * - `EMPTY_PS_ATTRIBUTE` — нет обязательного атрибута товара; + * - `MULTIPLICITY` — количество товара в поставке не кратно продаваемым партиям; + * - `NO_PRICE` — нет цены; + * - `INVALID_ITEM_COUNT_MAX` — количество товара больше максимального; + * - `INVALID_ITEM_COUNT_ZERO` — количество товара равно нулю; + * - `SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS` — товар отклонён из-за ограничений на приёмку; + * - `SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED` — товар с меткой `is_ettn_required` не разрешён; + * - `SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED` — товар без метки `is_ettn_required` не разрешён; + * - `SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED` — товар с тегом отслеживаемости не разрешён; + * - `SKU_IS_RESTRICTED` — товар ограничен к приёмке; + * - `EMPTY_CLUSTER` — нет кластера; + * - `SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED` — товар с обязательным тегом UTD не разрешён; + * - `CORRUPTED_ASSORTMENT` — не получилось добавить товар в заявку; + * - `STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN` — у товара для хранения в Беларуси нет кода ТН ВЭД; + * - `STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN`— у товара для хранения в Беларуси нет кода ТН ВЭД продавца; + * - `TRACEABLE_SKU_HAS_NO_GTIN_BARCODE` — у товара нет штрихкода GTIN; + * - `TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY` — у товара нет указанного количества в единицах; + * - `SKU_HAS_INVALID_HS_CODE` — у товара некорректный HS-код; + * - `SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS` — у товара есть ограничения по стране хранения; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof ItemsValidationRejectedItems + */ + reasons?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ItemsValidationRejectedItems + */ + sku?: number; +} +/** + * Check if a given object implements the ItemsValidationRejectedItems interface. + */ +export declare function instanceOfItemsValidationRejectedItems(value: object): value is ItemsValidationRejectedItems; +export declare function ItemsValidationRejectedItemsFromJSON(json: any): ItemsValidationRejectedItems; +export declare function ItemsValidationRejectedItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemsValidationRejectedItems; +export declare function ItemsValidationRejectedItemsToJSON(value?: ItemsValidationRejectedItems | null): any; diff --git a/dist/esm/models/ItemsValidationRejectedItems.js b/dist/esm/models/ItemsValidationRejectedItems.js new file mode 100644 index 0000000..e2839ee --- /dev/null +++ b/dist/esm/models/ItemsValidationRejectedItems.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RejectedItemsReasonEnumFromJSON, RejectedItemsReasonEnumToJSON, } from './RejectedItemsReasonEnum'; +/** + * Check if a given object implements the ItemsValidationRejectedItems interface. + */ +export function instanceOfItemsValidationRejectedItems(value) { + return true; +} +export function ItemsValidationRejectedItemsFromJSON(json) { + return ItemsValidationRejectedItemsFromJSONTyped(json, false); +} +export function ItemsValidationRejectedItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(RejectedItemsReasonEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function ItemsValidationRejectedItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(RejectedItemsReasonEnumToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/LanguageLanguage.d.ts b/dist/esm/models/LanguageLanguage.d.ts new file mode 100644 index 0000000..c1cd402 --- /dev/null +++ b/dist/esm/models/LanguageLanguage.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Язык в ответе: + * - `EN` — английский, + * - `RU` — русский, + * - `TR` — турецкий, + * - `ZH_HANS` — китайский. + * + * По умолчанию используется русский язык. + * + * @export + */ +export declare const LanguageLanguage: { + readonly DEFAULT: "DEFAULT"; + readonly RU: "RU"; + readonly EN: "EN"; + readonly TR: "TR"; + readonly ZH_HANS: "ZH_HANS"; +}; +export type LanguageLanguage = typeof LanguageLanguage[keyof typeof LanguageLanguage]; +export declare function instanceOfLanguageLanguage(value: any): boolean; +export declare function LanguageLanguageFromJSON(json: any): LanguageLanguage; +export declare function LanguageLanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): LanguageLanguage; +export declare function LanguageLanguageToJSON(value?: LanguageLanguage | null): any; diff --git a/dist/esm/models/LanguageLanguage.js b/dist/esm/models/LanguageLanguage.js new file mode 100644 index 0000000..54a38fd --- /dev/null +++ b/dist/esm/models/LanguageLanguage.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Язык в ответе: + * - `EN` — английский, + * - `RU` — русский, + * - `TR` — турецкий, + * - `ZH_HANS` — китайский. + * + * По умолчанию используется русский язык. + * + * @export + */ +export const LanguageLanguage = { + DEFAULT: 'DEFAULT', + RU: 'RU', + EN: 'EN', + TR: 'TR', + ZH_HANS: 'ZH_HANS' +}; +export function instanceOfLanguageLanguage(value) { + for (const key in LanguageLanguage) { + if (Object.prototype.hasOwnProperty.call(LanguageLanguage, key)) { + if (LanguageLanguage[key] === value) { + return true; + } + } + } + return false; +} +export function LanguageLanguageFromJSON(json) { + return LanguageLanguageFromJSONTyped(json, false); +} +export function LanguageLanguageFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function LanguageLanguageToJSON(value) { + return value; +} diff --git a/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.d.ts b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.d.ts new file mode 100644 index 0000000..61a6b17 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum } from './ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +/** + * Параметры поиска. + * @export + * @interface ListDropOffPointsForCreateFBSWarehouseRequestSearch + */ +export interface ListDropOffPointsForCreateFBSWarehouseRequestSearch { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForCreateFBSWarehouseRequestSearch + */ + address?: string; + /** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @type {Array} + * @memberof ListDropOffPointsForCreateFBSWarehouseRequestSearch + */ + types?: Array; +} +/** + * Check if a given object implements the ListDropOffPointsForCreateFBSWarehouseRequestSearch interface. + */ +export declare function instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearch(value: object): value is ListDropOffPointsForCreateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON(json: any): ListDropOffPointsForCreateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForCreateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON(value?: ListDropOffPointsForCreateFBSWarehouseRequestSearch | null): any; diff --git a/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.js b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.js new file mode 100644 index 0000000..786f41e --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON, ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON, } from './ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +/** + * Check if a given object implements the ListDropOffPointsForCreateFBSWarehouseRequestSearch interface. + */ +export function instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearch(value) { + return true; +} +export function ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON(json) { + return ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSONTyped(json, false); +} +export function ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'types': json['types'] == null ? undefined : (json['types'].map(ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON)), + }; +} +export function ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'types': value['types'] == null ? undefined : (value['types'].map(ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON)), + }; +} diff --git a/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts new file mode 100644 index 0000000..cc90c30 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum = typeof ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum[keyof typeof ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum]; +export declare function instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum(value: any): boolean; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON(json: any): ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON(value?: ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum | null): any; diff --git a/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.js b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.js new file mode 100644 index 0000000..f14ff77 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum(value) { + for (const key in ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum, key)) { + if (ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON(json) { + return ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json, false); +} +export function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.d.ts b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.d.ts new file mode 100644 index 0000000..6b37b8b --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum } from './V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum'; +import type { TypeTimeOfDay } from './TypeTimeOfDay'; +import type { V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates } from './V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates'; +/** + * + * @export + * @interface ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ +export interface ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + address?: string; + /** + * + * @type {V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + coordinates?: V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; + /** + * Процент скидки за передачу отправления. + * @type {number} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + discount_percent?: number; + /** + * Идентификатор drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + id?: string; + /** + * + * @type {TypeTimeOfDay} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + last_transit_time_local?: TypeTimeOfDay; + /** + * + * @type {V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + type?: V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum; +} +/** + * Check if a given object implements the ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint interface. + */ +export declare function instanceOfListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint(value: object): value is ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON(json: any): ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON(value?: ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint | null): any; diff --git a/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.js b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.js new file mode 100644 index 0000000..8b343de --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON, V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON, } from './V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum'; +import { TypeTimeOfDayFromJSON, TypeTimeOfDayToJSON, } from './TypeTimeOfDay'; +import { V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON, V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON, } from './V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates'; +/** + * Check if a given object implements the ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint interface. + */ +export function instanceOfListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint(value) { + return true; +} +export function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON(json) { + return ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSONTyped(json, false); +} +export function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON(json['coordinates']), + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'id': json['id'] == null ? undefined : json['id'], + 'last_transit_time_local': json['last_transit_time_local'] == null ? undefined : TypeTimeOfDayFromJSON(json['last_transit_time_local']), + 'type': json['type'] == null ? undefined : V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON(json['type']), + }; +} +export function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON(value['coordinates']), + 'discount_percent': value['discount_percent'], + 'id': value['id'], + 'last_transit_time_local': TypeTimeOfDayToJSON(value['last_transit_time_local']), + 'type': V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.d.ts b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.d.ts new file mode 100644 index 0000000..586e29d --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum } from './ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +/** + * Параметры поиска. + * @export + * @interface ListDropOffPointsForUpdateFBSWarehouseRequestSearch + */ +export interface ListDropOffPointsForUpdateFBSWarehouseRequestSearch { + /** + * Поиск по адресу drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForUpdateFBSWarehouseRequestSearch + */ + address?: string; + /** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @type {Array} + * @memberof ListDropOffPointsForUpdateFBSWarehouseRequestSearch + */ + types?: Array; +} +/** + * Check if a given object implements the ListDropOffPointsForUpdateFBSWarehouseRequestSearch interface. + */ +export declare function instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearch(value: object): value is ListDropOffPointsForUpdateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON(json: any): ListDropOffPointsForUpdateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForUpdateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON(value?: ListDropOffPointsForUpdateFBSWarehouseRequestSearch | null): any; diff --git a/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.js b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.js new file mode 100644 index 0000000..f82de89 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON, ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON, } from './ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +/** + * Check if a given object implements the ListDropOffPointsForUpdateFBSWarehouseRequestSearch interface. + */ +export function instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearch(value) { + return true; +} +export function ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON(json) { + return ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSONTyped(json, false); +} +export function ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'types': json['types'] == null ? undefined : (json['types'].map(ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON)), + }; +} +export function ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'types': value['types'] == null ? undefined : (value['types'].map(ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON)), + }; +} diff --git a/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts new file mode 100644 index 0000000..b9298e1 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum = typeof ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum[keyof typeof ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum]; +export declare function instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum(value: any): boolean; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON(json: any): ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON(value?: ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum | null): any; diff --git a/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.js b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.js new file mode 100644 index 0000000..3bc1179 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum(value) { + for (const key in ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum, key)) { + if (ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON(json) { + return ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json, false); +} +export function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.d.ts b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.d.ts new file mode 100644 index 0000000..93d13ee --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum } from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum'; +import type { TypeTimeOfDay } from './TypeTimeOfDay'; +import type { DropOffPointCoordinates } from './DropOffPointCoordinates'; +/** + * + * @export + * @interface ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ +export interface ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + address?: string; + /** + * + * @type {DropOffPointCoordinates} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + coordinates?: DropOffPointCoordinates; + /** + * Процент скидки за передачу отправления. + * @type {number} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + discount_percent?: number; + /** + * Идентификатор drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + id?: string; + /** + * + * @type {TypeTimeOfDay} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + last_transit_time_local?: TypeTimeOfDay; + /** + * + * @type {ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + type?: ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum; +} +/** + * Check if a given object implements the ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint interface. + */ +export declare function instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint(value: object): value is ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON(json: any): ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON(value?: ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint | null): any; diff --git a/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.js b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.js new file mode 100644 index 0000000..2bd3201 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON, ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON, } from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum'; +import { TypeTimeOfDayFromJSON, TypeTimeOfDayToJSON, } from './TypeTimeOfDay'; +import { DropOffPointCoordinatesFromJSON, DropOffPointCoordinatesToJSON, } from './DropOffPointCoordinates'; +/** + * Check if a given object implements the ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint interface. + */ +export function instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint(value) { + return true; +} +export function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON(json) { + return ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSONTyped(json, false); +} +export function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : DropOffPointCoordinatesFromJSON(json['coordinates']), + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'id': json['id'] == null ? undefined : json['id'], + 'last_transit_time_local': json['last_transit_time_local'] == null ? undefined : TypeTimeOfDayFromJSON(json['last_transit_time_local']), + 'type': json['type'] == null ? undefined : ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON(json['type']), + }; +} +export function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': DropOffPointCoordinatesToJSON(value['coordinates']), + 'discount_percent': value['discount_percent'], + 'id': value['id'], + 'last_transit_time_local': TypeTimeOfDayToJSON(value['last_transit_time_local']), + 'type': ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.d.ts b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.d.ts new file mode 100644 index 0000000..41e7e58 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum = typeof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum[keyof typeof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum]; +export declare function instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum(value: any): boolean; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON(json: any): ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON(value?: ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum | null): any; diff --git a/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.js b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.js new file mode 100644 index 0000000..6a0a147 --- /dev/null +++ b/dist/esm/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export const ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum(value) { + for (const key in ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum, key)) { + if (ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON(json) { + return ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSONTyped(json, false); +} +export function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ListFBSRatingIndexPostingsV1RequestFilter.d.ts b/dist/esm/models/ListFBSRatingIndexPostingsV1RequestFilter.d.ts new file mode 100644 index 0000000..1b5363f --- /dev/null +++ b/dist/esm/models/ListFBSRatingIndexPostingsV1RequestFilter.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface ListFBSRatingIndexPostingsV1RequestFilter + */ +export interface ListFBSRatingIndexPostingsV1RequestFilter { + /** + * Дата начала периода. + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1RequestFilter + */ + date_from: string; + /** + * Дата конца периода. + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1RequestFilter + */ + date_to: string; + /** + * Номера отправлений. + * @type {Array} + * @memberof ListFBSRatingIndexPostingsV1RequestFilter + */ + posting_numbers?: Array; +} +/** + * Check if a given object implements the ListFBSRatingIndexPostingsV1RequestFilter interface. + */ +export declare function instanceOfListFBSRatingIndexPostingsV1RequestFilter(value: object): value is ListFBSRatingIndexPostingsV1RequestFilter; +export declare function ListFBSRatingIndexPostingsV1RequestFilterFromJSON(json: any): ListFBSRatingIndexPostingsV1RequestFilter; +export declare function ListFBSRatingIndexPostingsV1RequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListFBSRatingIndexPostingsV1RequestFilter; +export declare function ListFBSRatingIndexPostingsV1RequestFilterToJSON(value?: ListFBSRatingIndexPostingsV1RequestFilter | null): any; diff --git a/dist/esm/models/ListFBSRatingIndexPostingsV1RequestFilter.js b/dist/esm/models/ListFBSRatingIndexPostingsV1RequestFilter.js new file mode 100644 index 0000000..aef94ef --- /dev/null +++ b/dist/esm/models/ListFBSRatingIndexPostingsV1RequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ListFBSRatingIndexPostingsV1RequestFilter interface. + */ +export function instanceOfListFBSRatingIndexPostingsV1RequestFilter(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +export function ListFBSRatingIndexPostingsV1RequestFilterFromJSON(json) { + return ListFBSRatingIndexPostingsV1RequestFilterFromJSONTyped(json, false); +} +export function ListFBSRatingIndexPostingsV1RequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + }; +} +export function ListFBSRatingIndexPostingsV1RequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/esm/models/ListFBSRatingIndexPostingsV1ResponseError.d.ts b/dist/esm/models/ListFBSRatingIndexPostingsV1ResponseError.d.ts new file mode 100644 index 0000000..4a5ea50 --- /dev/null +++ b/dist/esm/models/ListFBSRatingIndexPostingsV1ResponseError.d.ts @@ -0,0 +1,111 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingErrorTypeEnum } from './PostingErrorTypeEnum'; +/** + * + * @export + * @interface ListFBSRatingIndexPostingsV1ResponseError + */ +export interface ListFBSRatingIndexPostingsV1ResponseError { + /** + * Процент стоимости обработки от стоимости отправления. + * @type {number} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + charge_percent?: number; + /** + * Стоимость обработки ошибок. + * @type {number} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + charge_price?: number; + /** + * Код валюты стоимости обработки ошибок: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + charge_price_currency_code?: string; + /** + * Схема доставки: + * - `FBS`, + * - `rFBS`, + * - `erFBS`. + * + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + delivery_schema?: string; + /** + * Дата, когда возникла ошибка. + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + error_at?: string; + /** + * `true`, если у отправления льготный статус. + * + * @type {boolean} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + has_grace_status?: boolean; + /** + * Значение индекса ошибок. + * @type {number} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + index?: number; + /** + * + * @type {PostingErrorTypeEnum} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + posting_error_type?: PostingErrorTypeEnum; + /** + * Номер отправления. + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + posting_number?: string; + /** + * Стоимость товара в отправлении. + * @type {number} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + product_price?: number; + /** + * Код валюты стоимости товара: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + product_price_currency_code?: string; +} +/** + * Check if a given object implements the ListFBSRatingIndexPostingsV1ResponseError interface. + */ +export declare function instanceOfListFBSRatingIndexPostingsV1ResponseError(value: object): value is ListFBSRatingIndexPostingsV1ResponseError; +export declare function ListFBSRatingIndexPostingsV1ResponseErrorFromJSON(json: any): ListFBSRatingIndexPostingsV1ResponseError; +export declare function ListFBSRatingIndexPostingsV1ResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListFBSRatingIndexPostingsV1ResponseError; +export declare function ListFBSRatingIndexPostingsV1ResponseErrorToJSON(value?: ListFBSRatingIndexPostingsV1ResponseError | null): any; diff --git a/dist/esm/models/ListFBSRatingIndexPostingsV1ResponseError.js b/dist/esm/models/ListFBSRatingIndexPostingsV1ResponseError.js new file mode 100644 index 0000000..bf40fa3 --- /dev/null +++ b/dist/esm/models/ListFBSRatingIndexPostingsV1ResponseError.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingErrorTypeEnumFromJSON, PostingErrorTypeEnumToJSON, } from './PostingErrorTypeEnum'; +/** + * Check if a given object implements the ListFBSRatingIndexPostingsV1ResponseError interface. + */ +export function instanceOfListFBSRatingIndexPostingsV1ResponseError(value) { + return true; +} +export function ListFBSRatingIndexPostingsV1ResponseErrorFromJSON(json) { + return ListFBSRatingIndexPostingsV1ResponseErrorFromJSONTyped(json, false); +} +export function ListFBSRatingIndexPostingsV1ResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'charge_percent': json['charge_percent'] == null ? undefined : json['charge_percent'], + 'charge_price': json['charge_price'] == null ? undefined : json['charge_price'], + 'charge_price_currency_code': json['charge_price_currency_code'] == null ? undefined : json['charge_price_currency_code'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'error_at': json['error_at'] == null ? undefined : json['error_at'], + 'has_grace_status': json['has_grace_status'] == null ? undefined : json['has_grace_status'], + 'index': json['index'] == null ? undefined : json['index'], + 'posting_error_type': json['posting_error_type'] == null ? undefined : PostingErrorTypeEnumFromJSON(json['posting_error_type']), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'product_price': json['product_price'] == null ? undefined : json['product_price'], + 'product_price_currency_code': json['product_price_currency_code'] == null ? undefined : json['product_price_currency_code'], + }; +} +export function ListFBSRatingIndexPostingsV1ResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'charge_percent': value['charge_percent'], + 'charge_price': value['charge_price'], + 'charge_price_currency_code': value['charge_price_currency_code'], + 'delivery_schema': value['delivery_schema'], + 'error_at': value['error_at'], + 'has_grace_status': value['has_grace_status'], + 'index': value['index'], + 'posting_error_type': PostingErrorTypeEnumToJSON(value['posting_error_type']), + 'posting_number': value['posting_number'], + 'product_price': value['product_price'], + 'product_price_currency_code': value['product_price_currency_code'], + }; +} diff --git a/dist/esm/models/ListPostingCodesRequestFilter.d.ts b/dist/esm/models/ListPostingCodesRequestFilter.d.ts new file mode 100644 index 0000000..cb862e4 --- /dev/null +++ b/dist/esm/models/ListPostingCodesRequestFilter.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface ListPostingCodesRequestFilter + */ +export interface ListPostingCodesRequestFilter { + /** + * Номер отправления. + * @type {Array} + * @memberof ListPostingCodesRequestFilter + */ + posting_number?: Array; + /** + * Начало периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof ListPostingCodesRequestFilter + */ + since?: string; + /** + * Конец периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof ListPostingCodesRequestFilter + */ + to?: string; +} +/** + * Check if a given object implements the ListPostingCodesRequestFilter interface. + */ +export declare function instanceOfListPostingCodesRequestFilter(value: object): value is ListPostingCodesRequestFilter; +export declare function ListPostingCodesRequestFilterFromJSON(json: any): ListPostingCodesRequestFilter; +export declare function ListPostingCodesRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPostingCodesRequestFilter; +export declare function ListPostingCodesRequestFilterToJSON(value?: ListPostingCodesRequestFilter | null): any; diff --git a/dist/esm/models/ListPostingCodesRequestFilter.js b/dist/esm/models/ListPostingCodesRequestFilter.js new file mode 100644 index 0000000..301d173 --- /dev/null +++ b/dist/esm/models/ListPostingCodesRequestFilter.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ListPostingCodesRequestFilter interface. + */ +export function instanceOfListPostingCodesRequestFilter(value) { + return true; +} +export function ListPostingCodesRequestFilterFromJSON(json) { + return ListPostingCodesRequestFilterFromJSONTyped(json, false); +} +export function ListPostingCodesRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'since': json['since'] == null ? undefined : json['since'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function ListPostingCodesRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'since': value['since'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/ListPostingCodesRequestWithParams.d.ts b/dist/esm/models/ListPostingCodesRequestWithParams.d.ts new file mode 100644 index 0000000..a4e175e --- /dev/null +++ b/dist/esm/models/ListPostingCodesRequestWithParams.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface ListPostingCodesRequestWithParams + */ +export interface ListPostingCodesRequestWithParams { + /** + * Передайте `true`, чтобы добавить в ответ данные аналитики. + * @type {boolean} + * @memberof ListPostingCodesRequestWithParams + */ + analytics_data?: boolean; + /** + * Передайте `true`, чтобы добавить в ответ финансовые данные. + * @type {boolean} + * @memberof ListPostingCodesRequestWithParams + */ + financial_data?: boolean; + /** + * Передайте `true`, чтобы добавить в ответ юридическую информацию. + * @type {boolean} + * @memberof ListPostingCodesRequestWithParams + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the ListPostingCodesRequestWithParams interface. + */ +export declare function instanceOfListPostingCodesRequestWithParams(value: object): value is ListPostingCodesRequestWithParams; +export declare function ListPostingCodesRequestWithParamsFromJSON(json: any): ListPostingCodesRequestWithParams; +export declare function ListPostingCodesRequestWithParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPostingCodesRequestWithParams; +export declare function ListPostingCodesRequestWithParamsToJSON(value?: ListPostingCodesRequestWithParams | null): any; diff --git a/dist/esm/models/ListPostingCodesRequestWithParams.js b/dist/esm/models/ListPostingCodesRequestWithParams.js new file mode 100644 index 0000000..5e4d682 --- /dev/null +++ b/dist/esm/models/ListPostingCodesRequestWithParams.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ListPostingCodesRequestWithParams interface. + */ +export function instanceOfListPostingCodesRequestWithParams(value) { + return true; +} +export function ListPostingCodesRequestWithParamsFromJSON(json) { + return ListPostingCodesRequestWithParamsFromJSONTyped(json, false); +} +export function ListPostingCodesRequestWithParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +export function ListPostingCodesRequestWithParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/esm/models/ListPostingCodesResponsePosting.d.ts b/dist/esm/models/ListPostingCodesResponsePosting.d.ts new file mode 100644 index 0000000..21bb67d --- /dev/null +++ b/dist/esm/models/ListPostingCodesResponsePosting.d.ts @@ -0,0 +1,109 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingPostingFinancialData } from './PostingPostingFinancialData'; +import type { PostingAdditionalDataItem } from './PostingAdditionalDataItem'; +import type { PostingPostingAnalyticsData } from './PostingPostingAnalyticsData'; +import type { PostingLegalInfo } from './PostingLegalInfo'; +import type { PostingPostingProduct } from './PostingPostingProduct'; +/** + * + * @export + * @interface ListPostingCodesResponsePosting + */ +export interface ListPostingCodesResponsePosting { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof ListPostingCodesResponsePosting + */ + additional_data?: Array; + /** + * + * @type {PostingPostingAnalyticsData} + * @memberof ListPostingCodesResponsePosting + */ + analytics_data?: PostingPostingAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof ListPostingCodesResponsePosting + */ + cancel_reason_id?: number; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + created_at?: string; + /** + * + * @type {PostingPostingFinancialData} + * @memberof ListPostingCodesResponsePosting + */ + financial_data?: PostingPostingFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + in_process_at?: string; + /** + * + * @type {PostingLegalInfo} + * @memberof ListPostingCodesResponsePosting + */ + legal_info?: PostingLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof ListPostingCodesResponsePosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof ListPostingCodesResponsePosting + */ + products?: Array; + /** + * Статус отправления: `awaiting_packaging` — ожидает упаковки. + * + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + status?: string; + /** + * Время, до которого нужно передать коды цифровых товаров. Передайте коды цифровых товаров с помощью метода [/v1/posting/digital/codes/upload](#operation/UploadPostingCodes). + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + waiting_deadline_for_digital_code?: string; +} +/** + * Check if a given object implements the ListPostingCodesResponsePosting interface. + */ +export declare function instanceOfListPostingCodesResponsePosting(value: object): value is ListPostingCodesResponsePosting; +export declare function ListPostingCodesResponsePostingFromJSON(json: any): ListPostingCodesResponsePosting; +export declare function ListPostingCodesResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPostingCodesResponsePosting; +export declare function ListPostingCodesResponsePostingToJSON(value?: ListPostingCodesResponsePosting | null): any; diff --git a/dist/esm/models/ListPostingCodesResponsePosting.js b/dist/esm/models/ListPostingCodesResponsePosting.js new file mode 100644 index 0000000..c77d949 --- /dev/null +++ b/dist/esm/models/ListPostingCodesResponsePosting.js @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingPostingFinancialDataFromJSON, PostingPostingFinancialDataToJSON, } from './PostingPostingFinancialData'; +import { PostingAdditionalDataItemFromJSON, PostingAdditionalDataItemToJSON, } from './PostingAdditionalDataItem'; +import { PostingPostingAnalyticsDataFromJSON, PostingPostingAnalyticsDataToJSON, } from './PostingPostingAnalyticsData'; +import { PostingLegalInfoFromJSON, PostingLegalInfoToJSON, } from './PostingLegalInfo'; +import { PostingPostingProductFromJSON, PostingPostingProductToJSON, } from './PostingPostingProduct'; +/** + * Check if a given object implements the ListPostingCodesResponsePosting interface. + */ +export function instanceOfListPostingCodesResponsePosting(value) { + return true; +} +export function ListPostingCodesResponsePostingFromJSON(json) { + return ListPostingCodesResponsePostingFromJSONTyped(json, false); +} +export function ListPostingCodesResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(PostingAdditionalDataItemFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : PostingPostingAnalyticsDataFromJSON(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'financial_data': json['financial_data'] == null ? undefined : PostingPostingFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : PostingLegalInfoFromJSON(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingPostingProductFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'waiting_deadline_for_digital_code': json['waiting_deadline_for_digital_code'] == null ? undefined : json['waiting_deadline_for_digital_code'], + }; +} +export function ListPostingCodesResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(PostingAdditionalDataItemToJSON)), + 'analytics_data': PostingPostingAnalyticsDataToJSON(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'created_at': value['created_at'], + 'financial_data': PostingPostingFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': PostingLegalInfoToJSON(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingPostingProductToJSON)), + 'status': value['status'], + 'waiting_deadline_for_digital_code': value['waiting_deadline_for_digital_code'], + }; +} diff --git a/dist/esm/models/LogisticTimeslotDateRange.d.ts b/dist/esm/models/LogisticTimeslotDateRange.d.ts new file mode 100644 index 0000000..22cd000 --- /dev/null +++ b/dist/esm/models/LogisticTimeslotDateRange.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал времени, в течение которого заказ может быть доставлен до пункта выдачи. + * @export + * @interface LogisticTimeslotDateRange + */ +export interface LogisticTimeslotDateRange { + /** + * Дата и время начала интервала. + * @type {string} + * @memberof LogisticTimeslotDateRange + */ + from?: string; + /** + * Дата и время конца интервала. + * @type {string} + * @memberof LogisticTimeslotDateRange + */ + to?: string; +} +/** + * Check if a given object implements the LogisticTimeslotDateRange interface. + */ +export declare function instanceOfLogisticTimeslotDateRange(value: object): value is LogisticTimeslotDateRange; +export declare function LogisticTimeslotDateRangeFromJSON(json: any): LogisticTimeslotDateRange; +export declare function LogisticTimeslotDateRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogisticTimeslotDateRange; +export declare function LogisticTimeslotDateRangeToJSON(value?: LogisticTimeslotDateRange | null): any; diff --git a/dist/esm/models/LogisticTimeslotDateRange.js b/dist/esm/models/LogisticTimeslotDateRange.js new file mode 100644 index 0000000..d256f81 --- /dev/null +++ b/dist/esm/models/LogisticTimeslotDateRange.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the LogisticTimeslotDateRange interface. + */ +export function instanceOfLogisticTimeslotDateRange(value) { + return true; +} +export function LogisticTimeslotDateRangeFromJSON(json) { + return LogisticTimeslotDateRangeFromJSONTyped(json, false); +} +export function LogisticTimeslotDateRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function LogisticTimeslotDateRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/MacrolocalClusterCountry.d.ts b/dist/esm/models/MacrolocalClusterCountry.d.ts new file mode 100644 index 0000000..d3f2032 --- /dev/null +++ b/dist/esm/models/MacrolocalClusterCountry.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о стране кластера. + * @export + * @interface MacrolocalClusterCountry + */ +export interface MacrolocalClusterCountry { + /** + * Название страны. + * @type {string} + * @memberof MacrolocalClusterCountry + */ + name?: string; + /** + * Идентификатор страны. + * @type {string} + * @memberof MacrolocalClusterCountry + */ + uid?: string; +} +/** + * Check if a given object implements the MacrolocalClusterCountry interface. + */ +export declare function instanceOfMacrolocalClusterCountry(value: object): value is MacrolocalClusterCountry; +export declare function MacrolocalClusterCountryFromJSON(json: any): MacrolocalClusterCountry; +export declare function MacrolocalClusterCountryFromJSONTyped(json: any, ignoreDiscriminator: boolean): MacrolocalClusterCountry; +export declare function MacrolocalClusterCountryToJSON(value?: MacrolocalClusterCountry | null): any; diff --git a/dist/esm/models/MacrolocalClusterCountry.js b/dist/esm/models/MacrolocalClusterCountry.js new file mode 100644 index 0000000..619f98b --- /dev/null +++ b/dist/esm/models/MacrolocalClusterCountry.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MacrolocalClusterCountry interface. + */ +export function instanceOfMacrolocalClusterCountry(value) { + return true; +} +export function MacrolocalClusterCountryFromJSON(json) { + return MacrolocalClusterCountryFromJSONTyped(json, false); +} +export function MacrolocalClusterCountryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'uid': json['uid'] == null ? undefined : json['uid'], + }; +} +export function MacrolocalClusterCountryToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'uid': value['uid'], + }; +} diff --git a/dist/esm/models/MarketingAction.d.ts b/dist/esm/models/MarketingAction.d.ts new file mode 100644 index 0000000..26c7cad --- /dev/null +++ b/dist/esm/models/MarketingAction.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MarketingAction + */ +export interface MarketingAction { + /** + * Дата и время начала акции. + * @type {string} + * @memberof MarketingAction + */ + date_from?: string; + /** + * Дата и время окончания акции. + * @type {string} + * @memberof MarketingAction + */ + date_to?: string; + /** + * Название акции. + * @type {string} + * @memberof MarketingAction + */ + title?: string; + /** + * Скидка по акции. + * @type {number} + * @memberof MarketingAction + */ + value?: number; +} +/** + * Check if a given object implements the MarketingAction interface. + */ +export declare function instanceOfMarketingAction(value: object): value is MarketingAction; +export declare function MarketingActionFromJSON(json: any): MarketingAction; +export declare function MarketingActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingAction; +export declare function MarketingActionToJSON(value?: MarketingAction | null): any; diff --git a/dist/esm/models/MarketingAction.js b/dist/esm/models/MarketingAction.js new file mode 100644 index 0000000..6981159 --- /dev/null +++ b/dist/esm/models/MarketingAction.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MarketingAction interface. + */ +export function instanceOfMarketingAction(value) { + return true; +} +export function MarketingActionFromJSON(json) { + return MarketingActionFromJSONTyped(json, false); +} +export function MarketingActionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'title': json['title'] == null ? undefined : json['title'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function MarketingActionToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'title': value['title'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/MaxPeriodsPeriod.d.ts b/dist/esm/models/MaxPeriodsPeriod.d.ts new file mode 100644 index 0000000..c3d9184 --- /dev/null +++ b/dist/esm/models/MaxPeriodsPeriod.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период максимального времени. + * @export + * @interface MaxPeriodsPeriod + */ +export interface MaxPeriodsPeriod { + /** + * Часы. + * @type {number} + * @memberof MaxPeriodsPeriod + */ + hours?: number; + /** + * Минуты. + * @type {number} + * @memberof MaxPeriodsPeriod + */ + minutes?: number; +} +/** + * Check if a given object implements the MaxPeriodsPeriod interface. + */ +export declare function instanceOfMaxPeriodsPeriod(value: object): value is MaxPeriodsPeriod; +export declare function MaxPeriodsPeriodFromJSON(json: any): MaxPeriodsPeriod; +export declare function MaxPeriodsPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaxPeriodsPeriod; +export declare function MaxPeriodsPeriodToJSON(value?: MaxPeriodsPeriod | null): any; diff --git a/dist/esm/models/MaxPeriodsPeriod.js b/dist/esm/models/MaxPeriodsPeriod.js new file mode 100644 index 0000000..7590019 --- /dev/null +++ b/dist/esm/models/MaxPeriodsPeriod.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MaxPeriodsPeriod interface. + */ +export function instanceOfMaxPeriodsPeriod(value) { + return true; +} +export function MaxPeriodsPeriodFromJSON(json) { + return MaxPeriodsPeriodFromJSONTyped(json, false); +} +export function MaxPeriodsPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'hours': json['hours'] == null ? undefined : json['hours'], + 'minutes': json['minutes'] == null ? undefined : json['minutes'], + }; +} +export function MaxPeriodsPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'hours': value['hours'], + 'minutes': value['minutes'], + }; +} diff --git a/dist/esm/models/MinPeriodsPeriod.d.ts b/dist/esm/models/MinPeriodsPeriod.d.ts new file mode 100644 index 0000000..aee7dfa --- /dev/null +++ b/dist/esm/models/MinPeriodsPeriod.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период минимального времени. + * @export + * @interface MinPeriodsPeriod + */ +export interface MinPeriodsPeriod { + /** + * Часы. + * @type {number} + * @memberof MinPeriodsPeriod + */ + hours?: number; + /** + * Минуты. + * @type {number} + * @memberof MinPeriodsPeriod + */ + minutes?: number; +} +/** + * Check if a given object implements the MinPeriodsPeriod interface. + */ +export declare function instanceOfMinPeriodsPeriod(value: object): value is MinPeriodsPeriod; +export declare function MinPeriodsPeriodFromJSON(json: any): MinPeriodsPeriod; +export declare function MinPeriodsPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinPeriodsPeriod; +export declare function MinPeriodsPeriodToJSON(value?: MinPeriodsPeriod | null): any; diff --git a/dist/esm/models/MinPeriodsPeriod.js b/dist/esm/models/MinPeriodsPeriod.js new file mode 100644 index 0000000..1d7afe5 --- /dev/null +++ b/dist/esm/models/MinPeriodsPeriod.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MinPeriodsPeriod interface. + */ +export function instanceOfMinPeriodsPeriod(value) { + return true; +} +export function MinPeriodsPeriodFromJSON(json) { + return MinPeriodsPeriodFromJSONTyped(json, false); +} +export function MinPeriodsPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'hours': json['hours'] == null ? undefined : json['hours'], + 'minutes': json['minutes'] == null ? undefined : json['minutes'], + }; +} +export function MinPeriodsPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'hours': value['hours'], + 'minutes': value['minutes'], + }; +} diff --git a/dist/esm/models/MinUtilizationMoney.d.ts b/dist/esm/models/MinUtilizationMoney.d.ts new file mode 100644 index 0000000..5d3c106 --- /dev/null +++ b/dist/esm/models/MinUtilizationMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная цена товара, с которой можно установить автоутилизацию методом [/v1/returns/settings/utilization/update](#operation/UtilizationUpdate). + * @export + * @interface MinUtilizationMoney + */ +export interface MinUtilizationMoney { + /** + * Сумма. + * @type {string} + * @memberof MinUtilizationMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MinUtilizationMoney + */ + currency?: string; +} +/** + * Check if a given object implements the MinUtilizationMoney interface. + */ +export declare function instanceOfMinUtilizationMoney(value: object): value is MinUtilizationMoney; +export declare function MinUtilizationMoneyFromJSON(json: any): MinUtilizationMoney; +export declare function MinUtilizationMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinUtilizationMoney; +export declare function MinUtilizationMoneyToJSON(value?: MinUtilizationMoney | null): any; diff --git a/dist/esm/models/MinUtilizationMoney.js b/dist/esm/models/MinUtilizationMoney.js new file mode 100644 index 0000000..eb74cfd --- /dev/null +++ b/dist/esm/models/MinUtilizationMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MinUtilizationMoney interface. + */ +export function instanceOfMinUtilizationMoney(value) { + return true; +} +export function MinUtilizationMoneyFromJSON(json) { + return MinUtilizationMoneyFromJSONTyped(json, false); +} +export function MinUtilizationMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MinUtilizationMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoney.d.ts b/dist/esm/models/MoneyMoney.d.ts new file mode 100644 index 0000000..0930a60 --- /dev/null +++ b/dist/esm/models/MoneyMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная цена товара конкурента. + * @export + * @interface MoneyMoney + */ +export interface MoneyMoney { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoney + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoney interface. + */ +export declare function instanceOfMoneyMoney(value: object): value is MoneyMoney; +export declare function MoneyMoneyFromJSON(json: any): MoneyMoney; +export declare function MoneyMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoney; +export declare function MoneyMoneyToJSON(value?: MoneyMoney | null): any; diff --git a/dist/esm/models/MoneyMoney.js b/dist/esm/models/MoneyMoney.js new file mode 100644 index 0000000..5f98a44 --- /dev/null +++ b/dist/esm/models/MoneyMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoney interface. + */ +export function instanceOfMoneyMoney(value) { + return true; +} +export function MoneyMoneyFromJSON(json) { + return MoneyMoneyFromJSONTyped(json, false); +} +export function MoneyMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyAccrued.d.ts b/dist/esm/models/MoneyMoneyAccrued.d.ts new file mode 100644 index 0000000..76e610e --- /dev/null +++ b/dist/esm/models/MoneyMoneyAccrued.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Начислено за услугу. + * @export + * @interface MoneyMoneyAccrued + */ +export interface MoneyMoneyAccrued { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyAccrued + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyAccrued + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyAccrued interface. + */ +export declare function instanceOfMoneyMoneyAccrued(value: object): value is MoneyMoneyAccrued; +export declare function MoneyMoneyAccruedFromJSON(json: any): MoneyMoneyAccrued; +export declare function MoneyMoneyAccruedFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyAccrued; +export declare function MoneyMoneyAccruedToJSON(value?: MoneyMoneyAccrued | null): any; diff --git a/dist/esm/models/MoneyMoneyAccrued.js b/dist/esm/models/MoneyMoneyAccrued.js new file mode 100644 index 0000000..324349e --- /dev/null +++ b/dist/esm/models/MoneyMoneyAccrued.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyAccrued interface. + */ +export function instanceOfMoneyMoneyAccrued(value) { + return true; +} +export function MoneyMoneyAccruedFromJSON(json) { + return MoneyMoneyAccruedFromJSONTyped(json, false); +} +export function MoneyMoneyAccruedFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyAccruedToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyBonus.d.ts b/dist/esm/models/MoneyMoneyBonus.d.ts new file mode 100644 index 0000000..c2af3f2 --- /dev/null +++ b/dist/esm/models/MoneyMoneyBonus.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Начислено баллов за скидки. + * @export + * @interface MoneyMoneyBonus + */ +export interface MoneyMoneyBonus { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyBonus + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyBonus + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyBonus interface. + */ +export declare function instanceOfMoneyMoneyBonus(value: object): value is MoneyMoneyBonus; +export declare function MoneyMoneyBonusFromJSON(json: any): MoneyMoneyBonus; +export declare function MoneyMoneyBonusFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyBonus; +export declare function MoneyMoneyBonusToJSON(value?: MoneyMoneyBonus | null): any; diff --git a/dist/esm/models/MoneyMoneyBonus.js b/dist/esm/models/MoneyMoneyBonus.js new file mode 100644 index 0000000..5dadbf5 --- /dev/null +++ b/dist/esm/models/MoneyMoneyBonus.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyBonus interface. + */ +export function instanceOfMoneyMoneyBonus(value) { + return true; +} +export function MoneyMoneyBonusFromJSON(json) { + return MoneyMoneyBonusFromJSONTyped(json, false); +} +export function MoneyMoneyBonusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyBonusToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyCoinvestment.d.ts b/dist/esm/models/MoneyMoneyCoinvestment.d.ts new file mode 100644 index 0000000..5b63cf1 --- /dev/null +++ b/dist/esm/models/MoneyMoneyCoinvestment.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Начислено по программе партнёров. + * @export + * @interface MoneyMoneyCoinvestment + */ +export interface MoneyMoneyCoinvestment { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyCoinvestment + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCoinvestment + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCoinvestment interface. + */ +export declare function instanceOfMoneyMoneyCoinvestment(value: object): value is MoneyMoneyCoinvestment; +export declare function MoneyMoneyCoinvestmentFromJSON(json: any): MoneyMoneyCoinvestment; +export declare function MoneyMoneyCoinvestmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCoinvestment; +export declare function MoneyMoneyCoinvestmentToJSON(value?: MoneyMoneyCoinvestment | null): any; diff --git a/dist/esm/models/MoneyMoneyCoinvestment.js b/dist/esm/models/MoneyMoneyCoinvestment.js new file mode 100644 index 0000000..8bf4fb1 --- /dev/null +++ b/dist/esm/models/MoneyMoneyCoinvestment.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyCoinvestment interface. + */ +export function instanceOfMoneyMoneyCoinvestment(value) { + return true; +} +export function MoneyMoneyCoinvestmentFromJSON(json) { + return MoneyMoneyCoinvestmentFromJSONTyped(json, false); +} +export function MoneyMoneyCoinvestmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyCoinvestmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyComissions.d.ts b/dist/esm/models/MoneyMoneyComissions.d.ts new file mode 100644 index 0000000..01d490c --- /dev/null +++ b/dist/esm/models/MoneyMoneyComissions.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface MoneyMoneyComissions + */ +export interface MoneyMoneyComissions { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyComissions + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyComissions + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyComissions interface. + */ +export declare function instanceOfMoneyMoneyComissions(value: object): value is MoneyMoneyComissions; +export declare function MoneyMoneyComissionsFromJSON(json: any): MoneyMoneyComissions; +export declare function MoneyMoneyComissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyComissions; +export declare function MoneyMoneyComissionsToJSON(value?: MoneyMoneyComissions | null): any; diff --git a/dist/esm/models/MoneyMoneyComissions.js b/dist/esm/models/MoneyMoneyComissions.js new file mode 100644 index 0000000..c748125 --- /dev/null +++ b/dist/esm/models/MoneyMoneyComissions.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyComissions interface. + */ +export function instanceOfMoneyMoneyComissions(value) { + return true; +} +export function MoneyMoneyComissionsFromJSON(json) { + return MoneyMoneyComissionsFromJSONTyped(json, false); +} +export function MoneyMoneyComissionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyComissionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyCommission.d.ts b/dist/esm/models/MoneyMoneyCommission.d.ts new file mode 100644 index 0000000..077dbf8 --- /dev/null +++ b/dist/esm/models/MoneyMoneyCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Итоговая комиссия с учётом скидок и наценки. + * @export + * @interface MoneyMoneyCommission + */ +export interface MoneyMoneyCommission { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyCommission + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCommission + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCommission interface. + */ +export declare function instanceOfMoneyMoneyCommission(value: object): value is MoneyMoneyCommission; +export declare function MoneyMoneyCommissionFromJSON(json: any): MoneyMoneyCommission; +export declare function MoneyMoneyCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCommission; +export declare function MoneyMoneyCommissionToJSON(value?: MoneyMoneyCommission | null): any; diff --git a/dist/esm/models/MoneyMoneyCommission.js b/dist/esm/models/MoneyMoneyCommission.js new file mode 100644 index 0000000..ff7af76 --- /dev/null +++ b/dist/esm/models/MoneyMoneyCommission.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyCommission interface. + */ +export function instanceOfMoneyMoneyCommission(value) { + return true; +} +export function MoneyMoneyCommissionFromJSON(json) { + return MoneyMoneyCommissionFromJSONTyped(json, false); +} +export function MoneyMoneyCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyCurrentTariffCharge.d.ts b/dist/esm/models/MoneyMoneyCurrentTariffCharge.d.ts new file mode 100644 index 0000000..b827596 --- /dev/null +++ b/dist/esm/models/MoneyMoneyCurrentTariffCharge.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Скидка или надбавка. + * @export + * @interface MoneyMoneyCurrentTariffCharge + */ +export interface MoneyMoneyCurrentTariffCharge { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyCurrentTariffCharge + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCurrentTariffCharge + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCurrentTariffCharge interface. + */ +export declare function instanceOfMoneyMoneyCurrentTariffCharge(value: object): value is MoneyMoneyCurrentTariffCharge; +export declare function MoneyMoneyCurrentTariffChargeFromJSON(json: any): MoneyMoneyCurrentTariffCharge; +export declare function MoneyMoneyCurrentTariffChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCurrentTariffCharge; +export declare function MoneyMoneyCurrentTariffChargeToJSON(value?: MoneyMoneyCurrentTariffCharge | null): any; diff --git a/dist/esm/models/MoneyMoneyCurrentTariffCharge.js b/dist/esm/models/MoneyMoneyCurrentTariffCharge.js new file mode 100644 index 0000000..c1429bd --- /dev/null +++ b/dist/esm/models/MoneyMoneyCurrentTariffCharge.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyCurrentTariffCharge interface. + */ +export function instanceOfMoneyMoneyCurrentTariffCharge(value) { + return true; +} +export function MoneyMoneyCurrentTariffChargeFromJSON(json) { + return MoneyMoneyCurrentTariffChargeFromJSONTyped(json, false); +} +export function MoneyMoneyCurrentTariffChargeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyCurrentTariffChargeToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyCurrentTariffMinCharge.d.ts b/dist/esm/models/MoneyMoneyCurrentTariffMinCharge.d.ts new file mode 100644 index 0000000..ee7da4c --- /dev/null +++ b/dist/esm/models/MoneyMoneyCurrentTariffMinCharge.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная скидка или надбавка. + * @export + * @interface MoneyMoneyCurrentTariffMinCharge + */ +export interface MoneyMoneyCurrentTariffMinCharge { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyCurrentTariffMinCharge + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCurrentTariffMinCharge + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCurrentTariffMinCharge interface. + */ +export declare function instanceOfMoneyMoneyCurrentTariffMinCharge(value: object): value is MoneyMoneyCurrentTariffMinCharge; +export declare function MoneyMoneyCurrentTariffMinChargeFromJSON(json: any): MoneyMoneyCurrentTariffMinCharge; +export declare function MoneyMoneyCurrentTariffMinChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCurrentTariffMinCharge; +export declare function MoneyMoneyCurrentTariffMinChargeToJSON(value?: MoneyMoneyCurrentTariffMinCharge | null): any; diff --git a/dist/esm/models/MoneyMoneyCurrentTariffMinCharge.js b/dist/esm/models/MoneyMoneyCurrentTariffMinCharge.js new file mode 100644 index 0000000..1423f4b --- /dev/null +++ b/dist/esm/models/MoneyMoneyCurrentTariffMinCharge.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyCurrentTariffMinCharge interface. + */ +export function instanceOfMoneyMoneyCurrentTariffMinCharge(value) { + return true; +} +export function MoneyMoneyCurrentTariffMinChargeFromJSON(json) { + return MoneyMoneyCurrentTariffMinChargeFromJSONTyped(json, false); +} +export function MoneyMoneyCurrentTariffMinChargeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyCurrentTariffMinChargeToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyCustomerPrice.d.ts b/dist/esm/models/MoneyMoneyCustomerPrice.d.ts new file mode 100644 index 0000000..826c511 --- /dev/null +++ b/dist/esm/models/MoneyMoneyCustomerPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара на сайте. + * @export + * @interface MoneyMoneyCustomerPrice + */ +export interface MoneyMoneyCustomerPrice { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyCustomerPrice + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCustomerPrice + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCustomerPrice interface. + */ +export declare function instanceOfMoneyMoneyCustomerPrice(value: object): value is MoneyMoneyCustomerPrice; +export declare function MoneyMoneyCustomerPriceFromJSON(json: any): MoneyMoneyCustomerPrice; +export declare function MoneyMoneyCustomerPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCustomerPrice; +export declare function MoneyMoneyCustomerPriceToJSON(value?: MoneyMoneyCustomerPrice | null): any; diff --git a/dist/esm/models/MoneyMoneyCustomerPrice.js b/dist/esm/models/MoneyMoneyCustomerPrice.js new file mode 100644 index 0000000..ed6c4c8 --- /dev/null +++ b/dist/esm/models/MoneyMoneyCustomerPrice.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyCustomerPrice interface. + */ +export function instanceOfMoneyMoneyCustomerPrice(value) { + return true; +} +export function MoneyMoneyCustomerPriceFromJSON(json) { + return MoneyMoneyCustomerPriceFromJSONTyped(json, false); +} +export function MoneyMoneyCustomerPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyCustomerPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyFBPget.d.ts b/dist/esm/models/MoneyMoneyFBPget.d.ts new file mode 100644 index 0000000..ea62e9b --- /dev/null +++ b/dist/esm/models/MoneyMoneyFBPget.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @export + * @interface MoneyMoneyFBPget + */ +export interface MoneyMoneyFBPget { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyFBPget + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyFBPget + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyFBPget interface. + */ +export declare function instanceOfMoneyMoneyFBPget(value: object): value is MoneyMoneyFBPget; +export declare function MoneyMoneyFBPgetFromJSON(json: any): MoneyMoneyFBPget; +export declare function MoneyMoneyFBPgetFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyFBPget; +export declare function MoneyMoneyFBPgetToJSON(value?: MoneyMoneyFBPget | null): any; diff --git a/dist/esm/models/MoneyMoneyFBPget.js b/dist/esm/models/MoneyMoneyFBPget.js new file mode 100644 index 0000000..64645b3 --- /dev/null +++ b/dist/esm/models/MoneyMoneyFBPget.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyFBPget interface. + */ +export function instanceOfMoneyMoneyFBPget(value) { + return true; +} +export function MoneyMoneyFBPgetFromJSON(json) { + return MoneyMoneyFBPgetFromJSONTyped(json, false); +} +export function MoneyMoneyFBPgetFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyFBPgetToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyNextTariffCharge.d.ts b/dist/esm/models/MoneyMoneyNextTariffCharge.d.ts new file mode 100644 index 0000000..ebcd431 --- /dev/null +++ b/dist/esm/models/MoneyMoneyNextTariffCharge.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Скидка или надбавка через время из параметра `next_tariff_starts_at`. + * @export + * @interface MoneyMoneyNextTariffCharge + */ +export interface MoneyMoneyNextTariffCharge { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyNextTariffCharge + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyNextTariffCharge + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyNextTariffCharge interface. + */ +export declare function instanceOfMoneyMoneyNextTariffCharge(value: object): value is MoneyMoneyNextTariffCharge; +export declare function MoneyMoneyNextTariffChargeFromJSON(json: any): MoneyMoneyNextTariffCharge; +export declare function MoneyMoneyNextTariffChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyNextTariffCharge; +export declare function MoneyMoneyNextTariffChargeToJSON(value?: MoneyMoneyNextTariffCharge | null): any; diff --git a/dist/esm/models/MoneyMoneyNextTariffCharge.js b/dist/esm/models/MoneyMoneyNextTariffCharge.js new file mode 100644 index 0000000..38caaf9 --- /dev/null +++ b/dist/esm/models/MoneyMoneyNextTariffCharge.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyNextTariffCharge interface. + */ +export function instanceOfMoneyMoneyNextTariffCharge(value) { + return true; +} +export function MoneyMoneyNextTariffChargeFromJSON(json) { + return MoneyMoneyNextTariffChargeFromJSONTyped(json, false); +} +export function MoneyMoneyNextTariffChargeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyNextTariffChargeToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyNextTariffMinCharge.d.ts b/dist/esm/models/MoneyMoneyNextTariffMinCharge.d.ts new file mode 100644 index 0000000..fe267bf --- /dev/null +++ b/dist/esm/models/MoneyMoneyNextTariffMinCharge.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная скидка или надбавка через время из параметра `next_tariff_starts_at`. + * @export + * @interface MoneyMoneyNextTariffMinCharge + */ +export interface MoneyMoneyNextTariffMinCharge { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyNextTariffMinCharge + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyNextTariffMinCharge + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyNextTariffMinCharge interface. + */ +export declare function instanceOfMoneyMoneyNextTariffMinCharge(value: object): value is MoneyMoneyNextTariffMinCharge; +export declare function MoneyMoneyNextTariffMinChargeFromJSON(json: any): MoneyMoneyNextTariffMinCharge; +export declare function MoneyMoneyNextTariffMinChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyNextTariffMinCharge; +export declare function MoneyMoneyNextTariffMinChargeToJSON(value?: MoneyMoneyNextTariffMinCharge | null): any; diff --git a/dist/esm/models/MoneyMoneyNextTariffMinCharge.js b/dist/esm/models/MoneyMoneyNextTariffMinCharge.js new file mode 100644 index 0000000..9b8ecdf --- /dev/null +++ b/dist/esm/models/MoneyMoneyNextTariffMinCharge.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyNextTariffMinCharge interface. + */ +export function instanceOfMoneyMoneyNextTariffMinCharge(value) { + return true; +} +export function MoneyMoneyNextTariffMinChargeFromJSON(json) { + return MoneyMoneyNextTariffMinChargeFromJSONTyped(json, false); +} +export function MoneyMoneyNextTariffMinChargeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyNextTariffMinChargeToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyPriceWithoutVat.d.ts b/dist/esm/models/MoneyMoneyPriceWithoutVat.d.ts new file mode 100644 index 0000000..6d151eb --- /dev/null +++ b/dist/esm/models/MoneyMoneyPriceWithoutVat.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара без НДС. + * @export + * @interface MoneyMoneyPriceWithoutVat + */ +export interface MoneyMoneyPriceWithoutVat { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyPriceWithoutVat + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyPriceWithoutVat + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyPriceWithoutVat interface. + */ +export declare function instanceOfMoneyMoneyPriceWithoutVat(value: object): value is MoneyMoneyPriceWithoutVat; +export declare function MoneyMoneyPriceWithoutVatFromJSON(json: any): MoneyMoneyPriceWithoutVat; +export declare function MoneyMoneyPriceWithoutVatFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyPriceWithoutVat; +export declare function MoneyMoneyPriceWithoutVatToJSON(value?: MoneyMoneyPriceWithoutVat | null): any; diff --git a/dist/esm/models/MoneyMoneyPriceWithoutVat.js b/dist/esm/models/MoneyMoneyPriceWithoutVat.js new file mode 100644 index 0000000..dc2dc55 --- /dev/null +++ b/dist/esm/models/MoneyMoneyPriceWithoutVat.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyPriceWithoutVat interface. + */ +export function instanceOfMoneyMoneyPriceWithoutVat(value) { + return true; +} +export function MoneyMoneyPriceWithoutVatFromJSON(json) { + return MoneyMoneyPriceWithoutVatFromJSONTyped(json, false); +} +export function MoneyMoneyPriceWithoutVatFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyPriceWithoutVatToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySaleAmount.d.ts b/dist/esm/models/MoneyMoneySaleAmount.d.ts new file mode 100644 index 0000000..633edf9 --- /dev/null +++ b/dist/esm/models/MoneyMoneySaleAmount.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Реализовано на сумму. + * @export + * @interface MoneyMoneySaleAmount + */ +export interface MoneyMoneySaleAmount { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneySaleAmount + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySaleAmount + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySaleAmount interface. + */ +export declare function instanceOfMoneyMoneySaleAmount(value: object): value is MoneyMoneySaleAmount; +export declare function MoneyMoneySaleAmountFromJSON(json: any): MoneyMoneySaleAmount; +export declare function MoneyMoneySaleAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySaleAmount; +export declare function MoneyMoneySaleAmountToJSON(value?: MoneyMoneySaleAmount | null): any; diff --git a/dist/esm/models/MoneyMoneySaleAmount.js b/dist/esm/models/MoneyMoneySaleAmount.js new file mode 100644 index 0000000..0772858 --- /dev/null +++ b/dist/esm/models/MoneyMoneySaleAmount.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySaleAmount interface. + */ +export function instanceOfMoneyMoneySaleAmount(value) { + return true; +} +export function MoneyMoneySaleAmountFromJSON(json) { + return MoneyMoneySaleAmountFromJSONTyped(json, false); +} +export function MoneyMoneySaleAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySaleAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySaleCommission.d.ts b/dist/esm/models/MoneyMoneySaleCommission.d.ts new file mode 100644 index 0000000..5539076 --- /dev/null +++ b/dist/esm/models/MoneyMoneySaleCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия по прайс-листу. + * @export + * @interface MoneyMoneySaleCommission + */ +export interface MoneyMoneySaleCommission { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneySaleCommission + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySaleCommission + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySaleCommission interface. + */ +export declare function instanceOfMoneyMoneySaleCommission(value: object): value is MoneyMoneySaleCommission; +export declare function MoneyMoneySaleCommissionFromJSON(json: any): MoneyMoneySaleCommission; +export declare function MoneyMoneySaleCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySaleCommission; +export declare function MoneyMoneySaleCommissionToJSON(value?: MoneyMoneySaleCommission | null): any; diff --git a/dist/esm/models/MoneyMoneySaleCommission.js b/dist/esm/models/MoneyMoneySaleCommission.js new file mode 100644 index 0000000..ff54018 --- /dev/null +++ b/dist/esm/models/MoneyMoneySaleCommission.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySaleCommission interface. + */ +export function instanceOfMoneyMoneySaleCommission(value) { + return true; +} +export function MoneyMoneySaleCommissionFromJSON(json) { + return MoneyMoneySaleCommissionFromJSONTyped(json, false); +} +export function MoneyMoneySaleCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySaleCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySalePrice.d.ts b/dist/esm/models/MoneyMoneySalePrice.d.ts new file mode 100644 index 0000000..8eef77f --- /dev/null +++ b/dist/esm/models/MoneyMoneySalePrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена покупателя. + * @export + * @interface MoneyMoneySalePrice + */ +export interface MoneyMoneySalePrice { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneySalePrice + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySalePrice + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySalePrice interface. + */ +export declare function instanceOfMoneyMoneySalePrice(value: object): value is MoneyMoneySalePrice; +export declare function MoneyMoneySalePriceFromJSON(json: any): MoneyMoneySalePrice; +export declare function MoneyMoneySalePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySalePrice; +export declare function MoneyMoneySalePriceToJSON(value?: MoneyMoneySalePrice | null): any; diff --git a/dist/esm/models/MoneyMoneySalePrice.js b/dist/esm/models/MoneyMoneySalePrice.js new file mode 100644 index 0000000..6946cbc --- /dev/null +++ b/dist/esm/models/MoneyMoneySalePrice.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySalePrice interface. + */ +export function instanceOfMoneyMoneySalePrice(value) { + return true; +} +export function MoneyMoneySalePriceFromJSON(json) { + return MoneyMoneySalePriceFromJSONTyped(json, false); +} +export function MoneyMoneySalePriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySalePriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySelf.d.ts b/dist/esm/models/MoneyMoneySelf.d.ts new file mode 100644 index 0000000..d63a3f4 --- /dev/null +++ b/dist/esm/models/MoneyMoneySelf.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная цена вашего товара. + * @export + * @interface MoneyMoneySelf + */ +export interface MoneyMoneySelf { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySelf + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySelf + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySelf interface. + */ +export declare function instanceOfMoneyMoneySelf(value: object): value is MoneyMoneySelf; +export declare function MoneyMoneySelfFromJSON(json: any): MoneyMoneySelf; +export declare function MoneyMoneySelfFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySelf; +export declare function MoneyMoneySelfToJSON(value?: MoneyMoneySelf | null): any; diff --git a/dist/esm/models/MoneyMoneySelf.js b/dist/esm/models/MoneyMoneySelf.js new file mode 100644 index 0000000..2fb65a1 --- /dev/null +++ b/dist/esm/models/MoneyMoneySelf.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySelf interface. + */ +export function instanceOfMoneyMoneySelf(value) { + return true; +} +export function MoneyMoneySelfFromJSON(json) { + return MoneyMoneySelfFromJSONTyped(json, false); +} +export function MoneyMoneySelfFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySelfToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySellerPrice.d.ts b/dist/esm/models/MoneyMoneySellerPrice.d.ts new file mode 100644 index 0000000..3b7a790 --- /dev/null +++ b/dist/esm/models/MoneyMoneySellerPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена для продавца с учётом скидок Ozon. + * @export + * @interface MoneyMoneySellerPrice + */ +export interface MoneyMoneySellerPrice { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySellerPrice + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySellerPrice + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySellerPrice interface. + */ +export declare function instanceOfMoneyMoneySellerPrice(value: object): value is MoneyMoneySellerPrice; +export declare function MoneyMoneySellerPriceFromJSON(json: any): MoneyMoneySellerPrice; +export declare function MoneyMoneySellerPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySellerPrice; +export declare function MoneyMoneySellerPriceToJSON(value?: MoneyMoneySellerPrice | null): any; diff --git a/dist/esm/models/MoneyMoneySellerPrice.js b/dist/esm/models/MoneyMoneySellerPrice.js new file mode 100644 index 0000000..d25a9dc --- /dev/null +++ b/dist/esm/models/MoneyMoneySellerPrice.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySellerPrice interface. + */ +export function instanceOfMoneyMoneySellerPrice(value) { + return true; +} +export function MoneyMoneySellerPriceFromJSON(json) { + return MoneyMoneySellerPriceFromJSONTyped(json, false); +} +export function MoneyMoneySellerPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySellerPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySplitCommission.d.ts b/dist/esm/models/MoneyMoneySplitCommission.d.ts new file mode 100644 index 0000000..fee1e0b --- /dev/null +++ b/dist/esm/models/MoneyMoneySplitCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость доставки отправления из заказа с учётом комиссии. + * @export + * @interface MoneyMoneySplitCommission + */ +export interface MoneyMoneySplitCommission { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySplitCommission + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySplitCommission + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySplitCommission interface. + */ +export declare function instanceOfMoneyMoneySplitCommission(value: object): value is MoneyMoneySplitCommission; +export declare function MoneyMoneySplitCommissionFromJSON(json: any): MoneyMoneySplitCommission; +export declare function MoneyMoneySplitCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySplitCommission; +export declare function MoneyMoneySplitCommissionToJSON(value?: MoneyMoneySplitCommission | null): any; diff --git a/dist/esm/models/MoneyMoneySplitCommission.js b/dist/esm/models/MoneyMoneySplitCommission.js new file mode 100644 index 0000000..3ec6435 --- /dev/null +++ b/dist/esm/models/MoneyMoneySplitCommission.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySplitCommission interface. + */ +export function instanceOfMoneyMoneySplitCommission(value) { + return true; +} +export function MoneyMoneySplitCommissionFromJSON(json) { + return MoneyMoneySplitCommissionFromJSONTyped(json, false); +} +export function MoneyMoneySplitCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySplitCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySupplyActAmount.d.ts b/dist/esm/models/MoneyMoneySupplyActAmount.d.ts new file mode 100644 index 0000000..7942106 --- /dev/null +++ b/dist/esm/models/MoneyMoneySupplyActAmount.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма с НДС. + * @export + * @interface MoneyMoneySupplyActAmount + */ +export interface MoneyMoneySupplyActAmount { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySupplyActAmount + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySupplyActAmount + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySupplyActAmount interface. + */ +export declare function instanceOfMoneyMoneySupplyActAmount(value: object): value is MoneyMoneySupplyActAmount; +export declare function MoneyMoneySupplyActAmountFromJSON(json: any): MoneyMoneySupplyActAmount; +export declare function MoneyMoneySupplyActAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySupplyActAmount; +export declare function MoneyMoneySupplyActAmountToJSON(value?: MoneyMoneySupplyActAmount | null): any; diff --git a/dist/esm/models/MoneyMoneySupplyActAmount.js b/dist/esm/models/MoneyMoneySupplyActAmount.js new file mode 100644 index 0000000..28b339d --- /dev/null +++ b/dist/esm/models/MoneyMoneySupplyActAmount.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySupplyActAmount interface. + */ +export function instanceOfMoneyMoneySupplyActAmount(value) { + return true; +} +export function MoneyMoneySupplyActAmountFromJSON(json) { + return MoneyMoneySupplyActAmountFromJSONTyped(json, false); +} +export function MoneyMoneySupplyActAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySupplyActAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySupplyActAmountVat.d.ts b/dist/esm/models/MoneyMoneySupplyActAmountVat.d.ts new file mode 100644 index 0000000..715caf1 --- /dev/null +++ b/dist/esm/models/MoneyMoneySupplyActAmountVat.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма НДС. + * @export + * @interface MoneyMoneySupplyActAmountVat + */ +export interface MoneyMoneySupplyActAmountVat { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySupplyActAmountVat + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySupplyActAmountVat + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySupplyActAmountVat interface. + */ +export declare function instanceOfMoneyMoneySupplyActAmountVat(value: object): value is MoneyMoneySupplyActAmountVat; +export declare function MoneyMoneySupplyActAmountVatFromJSON(json: any): MoneyMoneySupplyActAmountVat; +export declare function MoneyMoneySupplyActAmountVatFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySupplyActAmountVat; +export declare function MoneyMoneySupplyActAmountVatToJSON(value?: MoneyMoneySupplyActAmountVat | null): any; diff --git a/dist/esm/models/MoneyMoneySupplyActAmountVat.js b/dist/esm/models/MoneyMoneySupplyActAmountVat.js new file mode 100644 index 0000000..16c02dc --- /dev/null +++ b/dist/esm/models/MoneyMoneySupplyActAmountVat.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySupplyActAmountVat interface. + */ +export function instanceOfMoneyMoneySupplyActAmountVat(value) { + return true; +} +export function MoneyMoneySupplyActAmountVatFromJSON(json) { + return MoneyMoneySupplyActAmountVatFromJSONTyped(json, false); +} +export function MoneyMoneySupplyActAmountVatFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySupplyActAmountVatToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneySupplyActAmountWithoutVat.d.ts b/dist/esm/models/MoneyMoneySupplyActAmountWithoutVat.d.ts new file mode 100644 index 0000000..bbdde5c --- /dev/null +++ b/dist/esm/models/MoneyMoneySupplyActAmountWithoutVat.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма без НДС. + * @export + * @interface MoneyMoneySupplyActAmountWithoutVat + */ +export interface MoneyMoneySupplyActAmountWithoutVat { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySupplyActAmountWithoutVat + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySupplyActAmountWithoutVat + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySupplyActAmountWithoutVat interface. + */ +export declare function instanceOfMoneyMoneySupplyActAmountWithoutVat(value: object): value is MoneyMoneySupplyActAmountWithoutVat; +export declare function MoneyMoneySupplyActAmountWithoutVatFromJSON(json: any): MoneyMoneySupplyActAmountWithoutVat; +export declare function MoneyMoneySupplyActAmountWithoutVatFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySupplyActAmountWithoutVat; +export declare function MoneyMoneySupplyActAmountWithoutVatToJSON(value?: MoneyMoneySupplyActAmountWithoutVat | null): any; diff --git a/dist/esm/models/MoneyMoneySupplyActAmountWithoutVat.js b/dist/esm/models/MoneyMoneySupplyActAmountWithoutVat.js new file mode 100644 index 0000000..25c4ab5 --- /dev/null +++ b/dist/esm/models/MoneyMoneySupplyActAmountWithoutVat.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneySupplyActAmountWithoutVat interface. + */ +export function instanceOfMoneyMoneySupplyActAmountWithoutVat(value) { + return true; +} +export function MoneyMoneySupplyActAmountWithoutVatFromJSON(json) { + return MoneyMoneySupplyActAmountWithoutVatFromJSONTyped(json, false); +} +export function MoneyMoneySupplyActAmountWithoutVatFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneySupplyActAmountWithoutVatToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyTotalAccrued.d.ts b/dist/esm/models/MoneyMoneyTotalAccrued.d.ts new file mode 100644 index 0000000..e040ed7 --- /dev/null +++ b/dist/esm/models/MoneyMoneyTotalAccrued.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Общая сумма начислений за услугу. + * @export + * @interface MoneyMoneyTotalAccrued + */ +export interface MoneyMoneyTotalAccrued { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyTotalAccrued + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyTotalAccrued + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyTotalAccrued interface. + */ +export declare function instanceOfMoneyMoneyTotalAccrued(value: object): value is MoneyMoneyTotalAccrued; +export declare function MoneyMoneyTotalAccruedFromJSON(json: any): MoneyMoneyTotalAccrued; +export declare function MoneyMoneyTotalAccruedFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyTotalAccrued; +export declare function MoneyMoneyTotalAccruedToJSON(value?: MoneyMoneyTotalAccrued | null): any; diff --git a/dist/esm/models/MoneyMoneyTotalAccrued.js b/dist/esm/models/MoneyMoneyTotalAccrued.js new file mode 100644 index 0000000..5dd8fe6 --- /dev/null +++ b/dist/esm/models/MoneyMoneyTotalAccrued.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyTotalAccrued interface. + */ +export function instanceOfMoneyMoneyTotalAccrued(value) { + return true; +} +export function MoneyMoneyTotalAccruedFromJSON(json) { + return MoneyMoneyTotalAccruedFromJSONTyped(json, false); +} +export function MoneyMoneyTotalAccruedFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyTotalAccruedToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyMoneyTotalAmount.d.ts b/dist/esm/models/MoneyMoneyTotalAmount.d.ts new file mode 100644 index 0000000..fc53f1a --- /dev/null +++ b/dist/esm/models/MoneyMoneyTotalAmount.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Общая сумма начислений. + * @export + * @interface MoneyMoneyTotalAmount + */ +export interface MoneyMoneyTotalAmount { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyTotalAmount + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyTotalAmount + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyTotalAmount interface. + */ +export declare function instanceOfMoneyMoneyTotalAmount(value: object): value is MoneyMoneyTotalAmount; +export declare function MoneyMoneyTotalAmountFromJSON(json: any): MoneyMoneyTotalAmount; +export declare function MoneyMoneyTotalAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyTotalAmount; +export declare function MoneyMoneyTotalAmountToJSON(value?: MoneyMoneyTotalAmount | null): any; diff --git a/dist/esm/models/MoneyMoneyTotalAmount.js b/dist/esm/models/MoneyMoneyTotalAmount.js new file mode 100644 index 0000000..bf07df9 --- /dev/null +++ b/dist/esm/models/MoneyMoneyTotalAmount.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyMoneyTotalAmount interface. + */ +export function instanceOfMoneyMoneyTotalAmount(value) { + return true; +} +export function MoneyMoneyTotalAmountFromJSON(json) { + return MoneyMoneyTotalAmountFromJSONTyped(json, false); +} +export function MoneyMoneyTotalAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyMoneyTotalAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/MoneyPostingMoney.d.ts b/dist/esm/models/MoneyPostingMoney.d.ts new file mode 100644 index 0000000..f91e6aa --- /dev/null +++ b/dist/esm/models/MoneyPostingMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара. + * @export + * @interface MoneyPostingMoney + */ +export interface MoneyPostingMoney { + /** + * Сумма. + * @type {string} + * @memberof MoneyPostingMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyPostingMoney + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyPostingMoney interface. + */ +export declare function instanceOfMoneyPostingMoney(value: object): value is MoneyPostingMoney; +export declare function MoneyPostingMoneyFromJSON(json: any): MoneyPostingMoney; +export declare function MoneyPostingMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyPostingMoney; +export declare function MoneyPostingMoneyToJSON(value?: MoneyPostingMoney | null): any; diff --git a/dist/esm/models/MoneyPostingMoney.js b/dist/esm/models/MoneyPostingMoney.js new file mode 100644 index 0000000..26f8ff6 --- /dev/null +++ b/dist/esm/models/MoneyPostingMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the MoneyPostingMoney interface. + */ +export function instanceOfMoneyPostingMoney(value) { + return true; +} +export function MoneyPostingMoneyFromJSON(json) { + return MoneyPostingMoneyFromJSONTyped(json, false); +} +export function MoneyPostingMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function MoneyPostingMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/NotificationV1CheckNotificationRequest.d.ts b/dist/esm/models/NotificationV1CheckNotificationRequest.d.ts new file mode 100644 index 0000000..ac8a318 --- /dev/null +++ b/dist/esm/models/NotificationV1CheckNotificationRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface NotificationV1CheckNotificationRequest + */ +export interface NotificationV1CheckNotificationRequest { + /** + * URL-адрес. + * @type {string} + * @memberof NotificationV1CheckNotificationRequest + */ + url: string; +} +/** + * Check if a given object implements the NotificationV1CheckNotificationRequest interface. + */ +export declare function instanceOfNotificationV1CheckNotificationRequest(value: object): value is NotificationV1CheckNotificationRequest; +export declare function NotificationV1CheckNotificationRequestFromJSON(json: any): NotificationV1CheckNotificationRequest; +export declare function NotificationV1CheckNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1CheckNotificationRequest; +export declare function NotificationV1CheckNotificationRequestToJSON(value?: NotificationV1CheckNotificationRequest | null): any; diff --git a/dist/esm/models/NotificationV1CheckNotificationRequest.js b/dist/esm/models/NotificationV1CheckNotificationRequest.js new file mode 100644 index 0000000..d74eb27 --- /dev/null +++ b/dist/esm/models/NotificationV1CheckNotificationRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the NotificationV1CheckNotificationRequest interface. + */ +export function instanceOfNotificationV1CheckNotificationRequest(value) { + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +export function NotificationV1CheckNotificationRequestFromJSON(json) { + return NotificationV1CheckNotificationRequestFromJSONTyped(json, false); +} +export function NotificationV1CheckNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'url': json['url'], + }; +} +export function NotificationV1CheckNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'url': value['url'], + }; +} diff --git a/dist/esm/models/NotificationV1CheckNotificationResponse.d.ts b/dist/esm/models/NotificationV1CheckNotificationResponse.d.ts new file mode 100644 index 0000000..bcec8ed --- /dev/null +++ b/dist/esm/models/NotificationV1CheckNotificationResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1CheckNotificationResponseError } from './NotificationV1CheckNotificationResponseError'; +/** + * + * @export + * @interface NotificationV1CheckNotificationResponse + */ +export interface NotificationV1CheckNotificationResponse { + /** + * Ошибки, возникшие при проверке. + * @type {Array} + * @memberof NotificationV1CheckNotificationResponse + */ + errors?: Array; + /** + * `true`, если URL-адрес активен. + * + * @type {boolean} + * @memberof NotificationV1CheckNotificationResponse + */ + is_active: boolean; +} +/** + * Check if a given object implements the NotificationV1CheckNotificationResponse interface. + */ +export declare function instanceOfNotificationV1CheckNotificationResponse(value: object): value is NotificationV1CheckNotificationResponse; +export declare function NotificationV1CheckNotificationResponseFromJSON(json: any): NotificationV1CheckNotificationResponse; +export declare function NotificationV1CheckNotificationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1CheckNotificationResponse; +export declare function NotificationV1CheckNotificationResponseToJSON(value?: NotificationV1CheckNotificationResponse | null): any; diff --git a/dist/esm/models/NotificationV1CheckNotificationResponse.js b/dist/esm/models/NotificationV1CheckNotificationResponse.js new file mode 100644 index 0000000..d65dfd7 --- /dev/null +++ b/dist/esm/models/NotificationV1CheckNotificationResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1CheckNotificationResponseErrorFromJSON, NotificationV1CheckNotificationResponseErrorToJSON, } from './NotificationV1CheckNotificationResponseError'; +/** + * Check if a given object implements the NotificationV1CheckNotificationResponse interface. + */ +export function instanceOfNotificationV1CheckNotificationResponse(value) { + if (!('is_active' in value) || value['is_active'] === undefined) + return false; + return true; +} +export function NotificationV1CheckNotificationResponseFromJSON(json) { + return NotificationV1CheckNotificationResponseFromJSONTyped(json, false); +} +export function NotificationV1CheckNotificationResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(NotificationV1CheckNotificationResponseErrorFromJSON)), + 'is_active': json['is_active'], + }; +} +export function NotificationV1CheckNotificationResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(NotificationV1CheckNotificationResponseErrorToJSON)), + 'is_active': value['is_active'], + }; +} diff --git a/dist/esm/models/NotificationV1CheckNotificationResponseError.d.ts b/dist/esm/models/NotificationV1CheckNotificationResponseError.d.ts new file mode 100644 index 0000000..e7a0ac5 --- /dev/null +++ b/dist/esm/models/NotificationV1CheckNotificationResponseError.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1CheckNotificationResponseErrorTypeEnum } from './NotificationV1CheckNotificationResponseErrorTypeEnum'; +/** + * + * @export + * @interface NotificationV1CheckNotificationResponseError + */ +export interface NotificationV1CheckNotificationResponseError { + /** + * Описание ошибки. + * @type {string} + * @memberof NotificationV1CheckNotificationResponseError + */ + description?: string; + /** + * + * @type {NotificationV1CheckNotificationResponseErrorTypeEnum} + * @memberof NotificationV1CheckNotificationResponseError + */ + type?: NotificationV1CheckNotificationResponseErrorTypeEnum; +} +/** + * Check if a given object implements the NotificationV1CheckNotificationResponseError interface. + */ +export declare function instanceOfNotificationV1CheckNotificationResponseError(value: object): value is NotificationV1CheckNotificationResponseError; +export declare function NotificationV1CheckNotificationResponseErrorFromJSON(json: any): NotificationV1CheckNotificationResponseError; +export declare function NotificationV1CheckNotificationResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1CheckNotificationResponseError; +export declare function NotificationV1CheckNotificationResponseErrorToJSON(value?: NotificationV1CheckNotificationResponseError | null): any; diff --git a/dist/esm/models/NotificationV1CheckNotificationResponseError.js b/dist/esm/models/NotificationV1CheckNotificationResponseError.js new file mode 100644 index 0000000..f1ac605 --- /dev/null +++ b/dist/esm/models/NotificationV1CheckNotificationResponseError.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON, NotificationV1CheckNotificationResponseErrorTypeEnumToJSON, } from './NotificationV1CheckNotificationResponseErrorTypeEnum'; +/** + * Check if a given object implements the NotificationV1CheckNotificationResponseError interface. + */ +export function instanceOfNotificationV1CheckNotificationResponseError(value) { + return true; +} +export function NotificationV1CheckNotificationResponseErrorFromJSON(json) { + return NotificationV1CheckNotificationResponseErrorFromJSONTyped(json, false); +} +export function NotificationV1CheckNotificationResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'] == null ? undefined : json['description'], + 'type': json['type'] == null ? undefined : NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON(json['type']), + }; +} +export function NotificationV1CheckNotificationResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'type': NotificationV1CheckNotificationResponseErrorTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/NotificationV1CheckNotificationResponseErrorTypeEnum.d.ts b/dist/esm/models/NotificationV1CheckNotificationResponseErrorTypeEnum.d.ts new file mode 100644 index 0000000..12f26ed --- /dev/null +++ b/dist/esm/models/NotificationV1CheckNotificationResponseErrorTypeEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `REQUEST_ERROR` — нет подключения по URL-адресу; + * - `REQUEST_TIMEOUT` — превышено время ожидания запроса; + * - `SERVER_FAULT` — сервис вернул внутреннюю ошибку; + * - `STATUS_CODE_NOT_OK` — HTTP-статус ответа не `200`; + * - `EMPTY_BODY` — тело ответа пустое или отсутствует; + * - `INVALID_BODY` — некорректный формат тела ответа; + * - `INVALID_JSON` — ошибка при разборе или валидации JSON-данных; + * - `WRONG_RESULT_FIELD` — сервис вернул тело ответа не по шаблону; + * - `WRONG_RESULT_TIME_FIELD` — параметр `time` в теле ответа некорректный. + * + * @export + */ +export declare const NotificationV1CheckNotificationResponseErrorTypeEnum: { + readonly REQUEST_ERROR: "REQUEST_ERROR"; + readonly REQUEST_TIMEOUT: "REQUEST_TIMEOUT"; + readonly SERVER_FAULT: "SERVER_FAULT"; + readonly STATUS_CODE_NOT_OK: "STATUS_CODE_NOT_OK"; + readonly EMPTY_BODY: "EMPTY_BODY"; + readonly INVALID_BODY: "INVALID_BODY"; + readonly INVALID_JSON: "INVALID_JSON"; + readonly WRONG_RESULT_FIELD: "WRONG_RESULT_FIELD"; + readonly WRONG_RESULT_TIME_FIELD: "WRONG_RESULT_TIME_FIELD"; +}; +export type NotificationV1CheckNotificationResponseErrorTypeEnum = typeof NotificationV1CheckNotificationResponseErrorTypeEnum[keyof typeof NotificationV1CheckNotificationResponseErrorTypeEnum]; +export declare function instanceOfNotificationV1CheckNotificationResponseErrorTypeEnum(value: any): boolean; +export declare function NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON(json: any): NotificationV1CheckNotificationResponseErrorTypeEnum; +export declare function NotificationV1CheckNotificationResponseErrorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1CheckNotificationResponseErrorTypeEnum; +export declare function NotificationV1CheckNotificationResponseErrorTypeEnumToJSON(value?: NotificationV1CheckNotificationResponseErrorTypeEnum | null): any; diff --git a/dist/esm/models/NotificationV1CheckNotificationResponseErrorTypeEnum.js b/dist/esm/models/NotificationV1CheckNotificationResponseErrorTypeEnum.js new file mode 100644 index 0000000..b63de07 --- /dev/null +++ b/dist/esm/models/NotificationV1CheckNotificationResponseErrorTypeEnum.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `REQUEST_ERROR` — нет подключения по URL-адресу; + * - `REQUEST_TIMEOUT` — превышено время ожидания запроса; + * - `SERVER_FAULT` — сервис вернул внутреннюю ошибку; + * - `STATUS_CODE_NOT_OK` — HTTP-статус ответа не `200`; + * - `EMPTY_BODY` — тело ответа пустое или отсутствует; + * - `INVALID_BODY` — некорректный формат тела ответа; + * - `INVALID_JSON` — ошибка при разборе или валидации JSON-данных; + * - `WRONG_RESULT_FIELD` — сервис вернул тело ответа не по шаблону; + * - `WRONG_RESULT_TIME_FIELD` — параметр `time` в теле ответа некорректный. + * + * @export + */ +export const NotificationV1CheckNotificationResponseErrorTypeEnum = { + REQUEST_ERROR: 'REQUEST_ERROR', + REQUEST_TIMEOUT: 'REQUEST_TIMEOUT', + SERVER_FAULT: 'SERVER_FAULT', + STATUS_CODE_NOT_OK: 'STATUS_CODE_NOT_OK', + EMPTY_BODY: 'EMPTY_BODY', + INVALID_BODY: 'INVALID_BODY', + INVALID_JSON: 'INVALID_JSON', + WRONG_RESULT_FIELD: 'WRONG_RESULT_FIELD', + WRONG_RESULT_TIME_FIELD: 'WRONG_RESULT_TIME_FIELD' +}; +export function instanceOfNotificationV1CheckNotificationResponseErrorTypeEnum(value) { + for (const key in NotificationV1CheckNotificationResponseErrorTypeEnum) { + if (Object.prototype.hasOwnProperty.call(NotificationV1CheckNotificationResponseErrorTypeEnum, key)) { + if (NotificationV1CheckNotificationResponseErrorTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON(json) { + return NotificationV1CheckNotificationResponseErrorTypeEnumFromJSONTyped(json, false); +} +export function NotificationV1CheckNotificationResponseErrorTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function NotificationV1CheckNotificationResponseErrorTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/NotificationV1DeleteNotificationRequest.d.ts b/dist/esm/models/NotificationV1DeleteNotificationRequest.d.ts new file mode 100644 index 0000000..82e3b67 --- /dev/null +++ b/dist/esm/models/NotificationV1DeleteNotificationRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface NotificationV1DeleteNotificationRequest + */ +export interface NotificationV1DeleteNotificationRequest { + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1DeleteNotificationRequest + */ + id: number; +} +/** + * Check if a given object implements the NotificationV1DeleteNotificationRequest interface. + */ +export declare function instanceOfNotificationV1DeleteNotificationRequest(value: object): value is NotificationV1DeleteNotificationRequest; +export declare function NotificationV1DeleteNotificationRequestFromJSON(json: any): NotificationV1DeleteNotificationRequest; +export declare function NotificationV1DeleteNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1DeleteNotificationRequest; +export declare function NotificationV1DeleteNotificationRequestToJSON(value?: NotificationV1DeleteNotificationRequest | null): any; diff --git a/dist/esm/models/NotificationV1DeleteNotificationRequest.js b/dist/esm/models/NotificationV1DeleteNotificationRequest.js new file mode 100644 index 0000000..f80da46 --- /dev/null +++ b/dist/esm/models/NotificationV1DeleteNotificationRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the NotificationV1DeleteNotificationRequest interface. + */ +export function instanceOfNotificationV1DeleteNotificationRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function NotificationV1DeleteNotificationRequestFromJSON(json) { + return NotificationV1DeleteNotificationRequestFromJSONTyped(json, false); +} +export function NotificationV1DeleteNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +export function NotificationV1DeleteNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/NotificationV1EnableNotificationRequest.d.ts b/dist/esm/models/NotificationV1EnableNotificationRequest.d.ts new file mode 100644 index 0000000..ab7ccf5 --- /dev/null +++ b/dist/esm/models/NotificationV1EnableNotificationRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface NotificationV1EnableNotificationRequest + */ +export interface NotificationV1EnableNotificationRequest { + /** + * Передайте: + * - `true` — чтобы включить уведомления; + * - `false` — чтобы выключить уведомления. + * + * @type {boolean} + * @memberof NotificationV1EnableNotificationRequest + */ + enabled: boolean; + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1EnableNotificationRequest + */ + id: number; +} +/** + * Check if a given object implements the NotificationV1EnableNotificationRequest interface. + */ +export declare function instanceOfNotificationV1EnableNotificationRequest(value: object): value is NotificationV1EnableNotificationRequest; +export declare function NotificationV1EnableNotificationRequestFromJSON(json: any): NotificationV1EnableNotificationRequest; +export declare function NotificationV1EnableNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1EnableNotificationRequest; +export declare function NotificationV1EnableNotificationRequestToJSON(value?: NotificationV1EnableNotificationRequest | null): any; diff --git a/dist/esm/models/NotificationV1EnableNotificationRequest.js b/dist/esm/models/NotificationV1EnableNotificationRequest.js new file mode 100644 index 0000000..415e52d --- /dev/null +++ b/dist/esm/models/NotificationV1EnableNotificationRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the NotificationV1EnableNotificationRequest interface. + */ +export function instanceOfNotificationV1EnableNotificationRequest(value) { + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function NotificationV1EnableNotificationRequestFromJSON(json) { + return NotificationV1EnableNotificationRequestFromJSONTyped(json, false); +} +export function NotificationV1EnableNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'], + 'id': json['id'], + }; +} +export function NotificationV1EnableNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'id': value['id'], + }; +} diff --git a/dist/esm/models/NotificationV1GetNotificationPushTypeListResponse.d.ts b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponse.d.ts new file mode 100644 index 0000000..db4f04b --- /dev/null +++ b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1GetNotificationPushTypeListResponseNotificationType } from './NotificationV1GetNotificationPushTypeListResponseNotificationType'; +/** + * + * @export + * @interface NotificationV1GetNotificationPushTypeListResponse + */ +export interface NotificationV1GetNotificationPushTypeListResponse { + /** + * Типы пуш-уведомлений. + * @type {Array} + * @memberof NotificationV1GetNotificationPushTypeListResponse + */ + types: Array; +} +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponse interface. + */ +export declare function instanceOfNotificationV1GetNotificationPushTypeListResponse(value: object): value is NotificationV1GetNotificationPushTypeListResponse; +export declare function NotificationV1GetNotificationPushTypeListResponseFromJSON(json: any): NotificationV1GetNotificationPushTypeListResponse; +export declare function NotificationV1GetNotificationPushTypeListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1GetNotificationPushTypeListResponse; +export declare function NotificationV1GetNotificationPushTypeListResponseToJSON(value?: NotificationV1GetNotificationPushTypeListResponse | null): any; diff --git a/dist/esm/models/NotificationV1GetNotificationPushTypeListResponse.js b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponse.js new file mode 100644 index 0000000..4a3a35a --- /dev/null +++ b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON, NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON, } from './NotificationV1GetNotificationPushTypeListResponseNotificationType'; +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponse interface. + */ +export function instanceOfNotificationV1GetNotificationPushTypeListResponse(value) { + if (!('types' in value) || value['types'] === undefined) + return false; + return true; +} +export function NotificationV1GetNotificationPushTypeListResponseFromJSON(json) { + return NotificationV1GetNotificationPushTypeListResponseFromJSONTyped(json, false); +} +export function NotificationV1GetNotificationPushTypeListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'types': (json['types'].map(NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON)), + }; +} +export function NotificationV1GetNotificationPushTypeListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'types': (value['types'].map(NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON)), + }; +} diff --git a/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.d.ts b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.d.ts new file mode 100644 index 0000000..2e7838c --- /dev/null +++ b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum } from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum'; +import type { NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint } from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint'; +/** + * + * @export + * @interface NotificationV1GetNotificationPushTypeListResponseNotificationType + */ +export interface NotificationV1GetNotificationPushTypeListResponseNotificationType { + /** + * Описание. + * @type {string} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationType + */ + description: string; + /** + * + * @type {NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationType + */ + seller_endpoint?: NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; + /** + * + * @type {NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationType + */ + type: NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum; +} +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponseNotificationType interface. + */ +export declare function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationType(value: object): value is NotificationV1GetNotificationPushTypeListResponseNotificationType; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON(json: any): NotificationV1GetNotificationPushTypeListResponseNotificationType; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1GetNotificationPushTypeListResponseNotificationType; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON(value?: NotificationV1GetNotificationPushTypeListResponseNotificationType | null): any; diff --git a/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.js b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.js new file mode 100644 index 0000000..2d2709b --- /dev/null +++ b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON, NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON, } from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum'; +import { NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON, NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON, } from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint'; +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponseNotificationType interface. + */ +export function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationType(value) { + if (!('description' in value) || value['description'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON(json) { + return NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSONTyped(json, false); +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'], + 'seller_endpoint': json['seller_endpoint'] == null ? undefined : NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON(json['seller_endpoint']), + 'type': NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON(json['type']), + }; +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'seller_endpoint': NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON(value['seller_endpoint']), + 'type': NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.d.ts b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.d.ts new file mode 100644 index 0000000..7d17f64 --- /dev/null +++ b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * URL-адрес, на который приходит тип уведомлений. + * @export + * @interface NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint + */ +export interface NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint { + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint + */ + id: number; + /** + * URL-адрес. + * @type {string} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint + */ + url: string; +} +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint interface. + */ +export declare function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint(value: object): value is NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON(json: any): NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON(value?: NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint | null): any; diff --git a/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.js b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.js new file mode 100644 index 0000000..c3515c9 --- /dev/null +++ b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint interface. + */ +export function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON(json) { + return NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSONTyped(json, false); +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'url': json['url'], + }; +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'url': value['url'], + }; +} diff --git a/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.d.ts b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.d.ts new file mode 100644 index 0000000..7180404 --- /dev/null +++ b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип уведомления: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @export + */ +export declare const NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum: { + readonly NEW_MESSAGE: "TYPE_NEW_MESSAGE"; + readonly UPDATE_MESSAGE: "TYPE_UPDATE_MESSAGE"; + readonly MESSAGE_READ: "TYPE_MESSAGE_READ"; + readonly CHAT_CLOSED: "TYPE_CHAT_CLOSED"; + readonly NEW_POSTING: "TYPE_NEW_POSTING"; + readonly POSTING_CANCELLED: "TYPE_POSTING_CANCELLED"; + readonly STATE_CHANGED: "TYPE_STATE_CHANGED"; + readonly DELIVERY_DATE_CHANGED: "TYPE_DELIVERY_DATE_CHANGED"; + readonly CUTOFF_DATE_CHANGED: "TYPE_CUTOFF_DATE_CHANGED"; + readonly CREATE_ITEM: "TYPE_CREATE_ITEM"; + readonly UPDATE_ITEM: "TYPE_UPDATE_ITEM"; + readonly CREATE_OR_UPDATE_ITEM: "TYPE_CREATE_OR_UPDATE_ITEM"; + readonly STOCKS_CHANGED: "TYPE_STOCKS_CHANGED"; + readonly FBO_POSTING_NEW: "TYPE_FBO_POSTING_NEW"; + readonly FBO_POSTING_CANCELLED: "TYPE_FBO_POSTING_CANCELLED"; + readonly FBO_POSTING_STATE_CHANGED: "TYPE_FBO_POSTING_STATE_CHANGED"; + readonly FBO_POSTING_DELIVERY_DATE_CHANGED: "TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED"; + readonly FBO_STOCKS_CHANGED: "TYPE_FBO_STOCKS_CHANGED"; + readonly ORDER_NEW: "TYPE_ORDER_NEW"; + readonly ORDER_CANCELLED: "TYPE_ORDER_CANCELLED"; + readonly ORDER_STATE_CHANGED: "TYPE_ORDER_STATE_CHANGED"; +}; +export type NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum = typeof NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum[keyof typeof NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum]; +export declare function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum(value: any): boolean; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON(json: any): NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON(value?: NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum | null): any; diff --git a/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.js b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.js new file mode 100644 index 0000000..d5fa347 --- /dev/null +++ b/dist/esm/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.js @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип уведомления: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @export + */ +export const NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum = { + NEW_MESSAGE: 'TYPE_NEW_MESSAGE', + UPDATE_MESSAGE: 'TYPE_UPDATE_MESSAGE', + MESSAGE_READ: 'TYPE_MESSAGE_READ', + CHAT_CLOSED: 'TYPE_CHAT_CLOSED', + NEW_POSTING: 'TYPE_NEW_POSTING', + POSTING_CANCELLED: 'TYPE_POSTING_CANCELLED', + STATE_CHANGED: 'TYPE_STATE_CHANGED', + DELIVERY_DATE_CHANGED: 'TYPE_DELIVERY_DATE_CHANGED', + CUTOFF_DATE_CHANGED: 'TYPE_CUTOFF_DATE_CHANGED', + CREATE_ITEM: 'TYPE_CREATE_ITEM', + UPDATE_ITEM: 'TYPE_UPDATE_ITEM', + CREATE_OR_UPDATE_ITEM: 'TYPE_CREATE_OR_UPDATE_ITEM', + STOCKS_CHANGED: 'TYPE_STOCKS_CHANGED', + FBO_POSTING_NEW: 'TYPE_FBO_POSTING_NEW', + FBO_POSTING_CANCELLED: 'TYPE_FBO_POSTING_CANCELLED', + FBO_POSTING_STATE_CHANGED: 'TYPE_FBO_POSTING_STATE_CHANGED', + FBO_POSTING_DELIVERY_DATE_CHANGED: 'TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED', + FBO_STOCKS_CHANGED: 'TYPE_FBO_STOCKS_CHANGED', + ORDER_NEW: 'TYPE_ORDER_NEW', + ORDER_CANCELLED: 'TYPE_ORDER_CANCELLED', + ORDER_STATE_CHANGED: 'TYPE_ORDER_STATE_CHANGED' +}; +export function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum(value) { + for (const key in NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum) { + if (Object.prototype.hasOwnProperty.call(NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum, key)) { + if (NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON(json) { + return NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSONTyped(json, false); +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/NotificationV1NotificationListResponse.d.ts b/dist/esm/models/NotificationV1NotificationListResponse.d.ts new file mode 100644 index 0000000..413e6f5 --- /dev/null +++ b/dist/esm/models/NotificationV1NotificationListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1NotificationListResponseNotification } from './NotificationV1NotificationListResponseNotification'; +/** + * + * @export + * @interface NotificationV1NotificationListResponse + */ +export interface NotificationV1NotificationListResponse { + /** + * Подключённые URL-адреса. + * @type {Array} + * @memberof NotificationV1NotificationListResponse + */ + urls: Array; +} +/** + * Check if a given object implements the NotificationV1NotificationListResponse interface. + */ +export declare function instanceOfNotificationV1NotificationListResponse(value: object): value is NotificationV1NotificationListResponse; +export declare function NotificationV1NotificationListResponseFromJSON(json: any): NotificationV1NotificationListResponse; +export declare function NotificationV1NotificationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1NotificationListResponse; +export declare function NotificationV1NotificationListResponseToJSON(value?: NotificationV1NotificationListResponse | null): any; diff --git a/dist/esm/models/NotificationV1NotificationListResponse.js b/dist/esm/models/NotificationV1NotificationListResponse.js new file mode 100644 index 0000000..357df93 --- /dev/null +++ b/dist/esm/models/NotificationV1NotificationListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1NotificationListResponseNotificationFromJSON, NotificationV1NotificationListResponseNotificationToJSON, } from './NotificationV1NotificationListResponseNotification'; +/** + * Check if a given object implements the NotificationV1NotificationListResponse interface. + */ +export function instanceOfNotificationV1NotificationListResponse(value) { + if (!('urls' in value) || value['urls'] === undefined) + return false; + return true; +} +export function NotificationV1NotificationListResponseFromJSON(json) { + return NotificationV1NotificationListResponseFromJSONTyped(json, false); +} +export function NotificationV1NotificationListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'urls': (json['urls'].map(NotificationV1NotificationListResponseNotificationFromJSON)), + }; +} +export function NotificationV1NotificationListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'urls': (value['urls'].map(NotificationV1NotificationListResponseNotificationToJSON)), + }; +} diff --git a/dist/esm/models/NotificationV1NotificationListResponseNotification.d.ts b/dist/esm/models/NotificationV1NotificationListResponseNotification.d.ts new file mode 100644 index 0000000..e33ac72 --- /dev/null +++ b/dist/esm/models/NotificationV1NotificationListResponseNotification.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1NotificationListResponseNotificationNotificationType } from './NotificationV1NotificationListResponseNotificationNotificationType'; +/** + * + * @export + * @interface NotificationV1NotificationListResponseNotification + */ +export interface NotificationV1NotificationListResponseNotification { + /** + * Дата подключения URL-адреса. + * @type {string} + * @memberof NotificationV1NotificationListResponseNotification + */ + created_at: string; + /** + * `true`, если URL-адрес включён. + * + * @type {boolean} + * @memberof NotificationV1NotificationListResponseNotification + */ + enable: boolean; + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1NotificationListResponseNotification + */ + id: number; + /** + * Типы уведомлений. + * @type {Array} + * @memberof NotificationV1NotificationListResponseNotification + */ + types: Array; + /** + * URL-адрес. + * @type {string} + * @memberof NotificationV1NotificationListResponseNotification + */ + url: string; +} +/** + * Check if a given object implements the NotificationV1NotificationListResponseNotification interface. + */ +export declare function instanceOfNotificationV1NotificationListResponseNotification(value: object): value is NotificationV1NotificationListResponseNotification; +export declare function NotificationV1NotificationListResponseNotificationFromJSON(json: any): NotificationV1NotificationListResponseNotification; +export declare function NotificationV1NotificationListResponseNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1NotificationListResponseNotification; +export declare function NotificationV1NotificationListResponseNotificationToJSON(value?: NotificationV1NotificationListResponseNotification | null): any; diff --git a/dist/esm/models/NotificationV1NotificationListResponseNotification.js b/dist/esm/models/NotificationV1NotificationListResponseNotification.js new file mode 100644 index 0000000..9153187 --- /dev/null +++ b/dist/esm/models/NotificationV1NotificationListResponseNotification.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON, NotificationV1NotificationListResponseNotificationNotificationTypeToJSON, } from './NotificationV1NotificationListResponseNotificationNotificationType'; +/** + * Check if a given object implements the NotificationV1NotificationListResponseNotification interface. + */ +export function instanceOfNotificationV1NotificationListResponseNotification(value) { + if (!('created_at' in value) || value['created_at'] === undefined) + return false; + if (!('enable' in value) || value['enable'] === undefined) + return false; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('types' in value) || value['types'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +export function NotificationV1NotificationListResponseNotificationFromJSON(json) { + return NotificationV1NotificationListResponseNotificationFromJSONTyped(json, false); +} +export function NotificationV1NotificationListResponseNotificationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'], + 'enable': json['enable'], + 'id': json['id'], + 'types': (json['types'].map(NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON)), + 'url': json['url'], + }; +} +export function NotificationV1NotificationListResponseNotificationToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'enable': value['enable'], + 'id': value['id'], + 'types': (value['types'].map(NotificationV1NotificationListResponseNotificationNotificationTypeToJSON)), + 'url': value['url'], + }; +} diff --git a/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationType.d.ts b/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationType.d.ts new file mode 100644 index 0000000..bf96933 --- /dev/null +++ b/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationType.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum } from './NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum'; +/** + * + * @export + * @interface NotificationV1NotificationListResponseNotificationNotificationType + */ +export interface NotificationV1NotificationListResponseNotificationNotificationType { + /** + * Описание типа уведомлений. + * @type {string} + * @memberof NotificationV1NotificationListResponseNotificationNotificationType + */ + description: string; + /** + * + * @type {NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum} + * @memberof NotificationV1NotificationListResponseNotificationNotificationType + */ + type: NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum; +} +/** + * Check if a given object implements the NotificationV1NotificationListResponseNotificationNotificationType interface. + */ +export declare function instanceOfNotificationV1NotificationListResponseNotificationNotificationType(value: object): value is NotificationV1NotificationListResponseNotificationNotificationType; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON(json: any): NotificationV1NotificationListResponseNotificationNotificationType; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1NotificationListResponseNotificationNotificationType; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeToJSON(value?: NotificationV1NotificationListResponseNotificationNotificationType | null): any; diff --git a/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationType.js b/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationType.js new file mode 100644 index 0000000..6b0ffc1 --- /dev/null +++ b/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationType.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON, NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON, } from './NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum'; +/** + * Check if a given object implements the NotificationV1NotificationListResponseNotificationNotificationType interface. + */ +export function instanceOfNotificationV1NotificationListResponseNotificationNotificationType(value) { + if (!('description' in value) || value['description'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON(json) { + return NotificationV1NotificationListResponseNotificationNotificationTypeFromJSONTyped(json, false); +} +export function NotificationV1NotificationListResponseNotificationNotificationTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'], + 'type': NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON(json['type']), + }; +} +export function NotificationV1NotificationListResponseNotificationNotificationTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'type': NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.d.ts b/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.d.ts new file mode 100644 index 0000000..1f23d02 --- /dev/null +++ b/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип уведомления: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @export + */ +export declare const NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum: { + readonly NEW_MESSAGE: "TYPE_NEW_MESSAGE"; + readonly UPDATE_MESSAGE: "TYPE_UPDATE_MESSAGE"; + readonly MESSAGE_READ: "TYPE_MESSAGE_READ"; + readonly CHAT_CLOSED: "TYPE_CHAT_CLOSED"; + readonly NEW_POSTING: "TYPE_NEW_POSTING"; + readonly POSTING_CANCELLED: "TYPE_POSTING_CANCELLED"; + readonly STATE_CHANGED: "TYPE_STATE_CHANGED"; + readonly DELIVERY_DATE_CHANGED: "TYPE_DELIVERY_DATE_CHANGED"; + readonly CUTOFF_DATE_CHANGED: "TYPE_CUTOFF_DATE_CHANGED"; + readonly CREATE_ITEM: "TYPE_CREATE_ITEM"; + readonly UPDATE_ITEM: "TYPE_UPDATE_ITEM"; + readonly CREATE_OR_UPDATE_ITEM: "TYPE_CREATE_OR_UPDATE_ITEM"; + readonly STOCKS_CHANGED: "TYPE_STOCKS_CHANGED"; + readonly FBO_POSTING_NEW: "TYPE_FBO_POSTING_NEW"; + readonly FBO_POSTING_CANCELLED: "TYPE_FBO_POSTING_CANCELLED"; + readonly FBO_POSTING_STATE_CHANGED: "TYPE_FBO_POSTING_STATE_CHANGED"; + readonly FBO_POSTING_DELIVERY_DATE_CHANGED: "TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED"; + readonly FBO_STOCKS_CHANGED: "TYPE_FBO_STOCKS_CHANGED"; + readonly ORDER_NEW: "TYPE_ORDER_NEW"; + readonly ORDER_CANCELLED: "TYPE_ORDER_CANCELLED"; + readonly ORDER_STATE_CHANGED: "TYPE_ORDER_STATE_CHANGED"; +}; +export type NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum = typeof NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum[keyof typeof NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum]; +export declare function instanceOfNotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum(value: any): boolean; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON(json: any): NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON(value?: NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum | null): any; diff --git a/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.js b/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.js new file mode 100644 index 0000000..e9b8f48 --- /dev/null +++ b/dist/esm/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.js @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип уведомления: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @export + */ +export const NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum = { + NEW_MESSAGE: 'TYPE_NEW_MESSAGE', + UPDATE_MESSAGE: 'TYPE_UPDATE_MESSAGE', + MESSAGE_READ: 'TYPE_MESSAGE_READ', + CHAT_CLOSED: 'TYPE_CHAT_CLOSED', + NEW_POSTING: 'TYPE_NEW_POSTING', + POSTING_CANCELLED: 'TYPE_POSTING_CANCELLED', + STATE_CHANGED: 'TYPE_STATE_CHANGED', + DELIVERY_DATE_CHANGED: 'TYPE_DELIVERY_DATE_CHANGED', + CUTOFF_DATE_CHANGED: 'TYPE_CUTOFF_DATE_CHANGED', + CREATE_ITEM: 'TYPE_CREATE_ITEM', + UPDATE_ITEM: 'TYPE_UPDATE_ITEM', + CREATE_OR_UPDATE_ITEM: 'TYPE_CREATE_OR_UPDATE_ITEM', + STOCKS_CHANGED: 'TYPE_STOCKS_CHANGED', + FBO_POSTING_NEW: 'TYPE_FBO_POSTING_NEW', + FBO_POSTING_CANCELLED: 'TYPE_FBO_POSTING_CANCELLED', + FBO_POSTING_STATE_CHANGED: 'TYPE_FBO_POSTING_STATE_CHANGED', + FBO_POSTING_DELIVERY_DATE_CHANGED: 'TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED', + FBO_STOCKS_CHANGED: 'TYPE_FBO_STOCKS_CHANGED', + ORDER_NEW: 'TYPE_ORDER_NEW', + ORDER_CANCELLED: 'TYPE_ORDER_CANCELLED', + ORDER_STATE_CHANGED: 'TYPE_ORDER_STATE_CHANGED' +}; +export function instanceOfNotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum(value) { + for (const key in NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum) { + if (Object.prototype.hasOwnProperty.call(NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum, key)) { + if (NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON(json) { + return NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSONTyped(json, false); +} +export function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/NotificationV1SetNotificationRequest.d.ts b/dist/esm/models/NotificationV1SetNotificationRequest.d.ts new file mode 100644 index 0000000..923bd66 --- /dev/null +++ b/dist/esm/models/NotificationV1SetNotificationRequest.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1SetNotificationRequestTypeEnum } from './NotificationV1SetNotificationRequestTypeEnum'; +/** + * + * @export + * @interface NotificationV1SetNotificationRequest + */ +export interface NotificationV1SetNotificationRequest { + /** + * Типы уведомлений: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @type {Array} + * @memberof NotificationV1SetNotificationRequest + */ + types: Array; + /** + * URL-адрес. + * @type {string} + * @memberof NotificationV1SetNotificationRequest + */ + url: string; +} +/** + * Check if a given object implements the NotificationV1SetNotificationRequest interface. + */ +export declare function instanceOfNotificationV1SetNotificationRequest(value: object): value is NotificationV1SetNotificationRequest; +export declare function NotificationV1SetNotificationRequestFromJSON(json: any): NotificationV1SetNotificationRequest; +export declare function NotificationV1SetNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1SetNotificationRequest; +export declare function NotificationV1SetNotificationRequestToJSON(value?: NotificationV1SetNotificationRequest | null): any; diff --git a/dist/esm/models/NotificationV1SetNotificationRequest.js b/dist/esm/models/NotificationV1SetNotificationRequest.js new file mode 100644 index 0000000..b8d993d --- /dev/null +++ b/dist/esm/models/NotificationV1SetNotificationRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1SetNotificationRequestTypeEnumFromJSON, NotificationV1SetNotificationRequestTypeEnumToJSON, } from './NotificationV1SetNotificationRequestTypeEnum'; +/** + * Check if a given object implements the NotificationV1SetNotificationRequest interface. + */ +export function instanceOfNotificationV1SetNotificationRequest(value) { + if (!('types' in value) || value['types'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +export function NotificationV1SetNotificationRequestFromJSON(json) { + return NotificationV1SetNotificationRequestFromJSONTyped(json, false); +} +export function NotificationV1SetNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'types': (json['types'].map(NotificationV1SetNotificationRequestTypeEnumFromJSON)), + 'url': json['url'], + }; +} +export function NotificationV1SetNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'types': (value['types'].map(NotificationV1SetNotificationRequestTypeEnumToJSON)), + 'url': value['url'], + }; +} diff --git a/dist/esm/models/NotificationV1SetNotificationRequestTypeEnum.d.ts b/dist/esm/models/NotificationV1SetNotificationRequestTypeEnum.d.ts new file mode 100644 index 0000000..bd95cfb --- /dev/null +++ b/dist/esm/models/NotificationV1SetNotificationRequestTypeEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const NotificationV1SetNotificationRequestTypeEnum: { + readonly NEW_MESSAGE: "TYPE_NEW_MESSAGE"; + readonly UPDATE_MESSAGE: "TYPE_UPDATE_MESSAGE"; + readonly MESSAGE_READ: "TYPE_MESSAGE_READ"; + readonly CHAT_CLOSED: "TYPE_CHAT_CLOSED"; + readonly NEW_POSTING: "TYPE_NEW_POSTING"; + readonly POSTING_CANCELLED: "TYPE_POSTING_CANCELLED"; + readonly STATE_CHANGED: "TYPE_STATE_CHANGED"; + readonly DELIVERY_DATE_CHANGED: "TYPE_DELIVERY_DATE_CHANGED"; + readonly CUTOFF_DATE_CHANGED: "TYPE_CUTOFF_DATE_CHANGED"; + readonly CREATE_ITEM: "TYPE_CREATE_ITEM"; + readonly UPDATE_ITEM: "TYPE_UPDATE_ITEM"; + readonly CREATE_OR_UPDATE_ITEM: "TYPE_CREATE_OR_UPDATE_ITEM"; + readonly STOCKS_CHANGED: "TYPE_STOCKS_CHANGED"; + readonly FBO_POSTING_NEW: "TYPE_FBO_POSTING_NEW"; + readonly FBO_POSTING_CANCELLED: "TYPE_FBO_POSTING_CANCELLED"; + readonly FBO_POSTING_STATE_CHANGED: "TYPE_FBO_POSTING_STATE_CHANGED"; + readonly FBO_POSTING_DELIVERY_DATE_CHANGED: "TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED"; + readonly FBO_STOCKS_CHANGED: "TYPE_FBO_STOCKS_CHANGED"; + readonly ORDER_NEW: "TYPE_ORDER_NEW"; + readonly ORDER_CANCELLED: "TYPE_ORDER_CANCELLED"; + readonly ORDER_STATE_CHANGED: "TYPE_ORDER_STATE_CHANGED"; +}; +export type NotificationV1SetNotificationRequestTypeEnum = typeof NotificationV1SetNotificationRequestTypeEnum[keyof typeof NotificationV1SetNotificationRequestTypeEnum]; +export declare function instanceOfNotificationV1SetNotificationRequestTypeEnum(value: any): boolean; +export declare function NotificationV1SetNotificationRequestTypeEnumFromJSON(json: any): NotificationV1SetNotificationRequestTypeEnum; +export declare function NotificationV1SetNotificationRequestTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1SetNotificationRequestTypeEnum; +export declare function NotificationV1SetNotificationRequestTypeEnumToJSON(value?: NotificationV1SetNotificationRequestTypeEnum | null): any; diff --git a/dist/esm/models/NotificationV1SetNotificationRequestTypeEnum.js b/dist/esm/models/NotificationV1SetNotificationRequestTypeEnum.js new file mode 100644 index 0000000..0abdc16 --- /dev/null +++ b/dist/esm/models/NotificationV1SetNotificationRequestTypeEnum.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const NotificationV1SetNotificationRequestTypeEnum = { + NEW_MESSAGE: 'TYPE_NEW_MESSAGE', + UPDATE_MESSAGE: 'TYPE_UPDATE_MESSAGE', + MESSAGE_READ: 'TYPE_MESSAGE_READ', + CHAT_CLOSED: 'TYPE_CHAT_CLOSED', + NEW_POSTING: 'TYPE_NEW_POSTING', + POSTING_CANCELLED: 'TYPE_POSTING_CANCELLED', + STATE_CHANGED: 'TYPE_STATE_CHANGED', + DELIVERY_DATE_CHANGED: 'TYPE_DELIVERY_DATE_CHANGED', + CUTOFF_DATE_CHANGED: 'TYPE_CUTOFF_DATE_CHANGED', + CREATE_ITEM: 'TYPE_CREATE_ITEM', + UPDATE_ITEM: 'TYPE_UPDATE_ITEM', + CREATE_OR_UPDATE_ITEM: 'TYPE_CREATE_OR_UPDATE_ITEM', + STOCKS_CHANGED: 'TYPE_STOCKS_CHANGED', + FBO_POSTING_NEW: 'TYPE_FBO_POSTING_NEW', + FBO_POSTING_CANCELLED: 'TYPE_FBO_POSTING_CANCELLED', + FBO_POSTING_STATE_CHANGED: 'TYPE_FBO_POSTING_STATE_CHANGED', + FBO_POSTING_DELIVERY_DATE_CHANGED: 'TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED', + FBO_STOCKS_CHANGED: 'TYPE_FBO_STOCKS_CHANGED', + ORDER_NEW: 'TYPE_ORDER_NEW', + ORDER_CANCELLED: 'TYPE_ORDER_CANCELLED', + ORDER_STATE_CHANGED: 'TYPE_ORDER_STATE_CHANGED' +}; +export function instanceOfNotificationV1SetNotificationRequestTypeEnum(value) { + for (const key in NotificationV1SetNotificationRequestTypeEnum) { + if (Object.prototype.hasOwnProperty.call(NotificationV1SetNotificationRequestTypeEnum, key)) { + if (NotificationV1SetNotificationRequestTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function NotificationV1SetNotificationRequestTypeEnumFromJSON(json) { + return NotificationV1SetNotificationRequestTypeEnumFromJSONTyped(json, false); +} +export function NotificationV1SetNotificationRequestTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function NotificationV1SetNotificationRequestTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/NotificationV1UpdateNotificationRequest.d.ts b/dist/esm/models/NotificationV1UpdateNotificationRequest.d.ts new file mode 100644 index 0000000..2fa8e95 --- /dev/null +++ b/dist/esm/models/NotificationV1UpdateNotificationRequest.d.ts @@ -0,0 +1,66 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1UpdateNotificationRequestTypeEnum } from './NotificationV1UpdateNotificationRequestTypeEnum'; +/** + * + * @export + * @interface NotificationV1UpdateNotificationRequest + */ +export interface NotificationV1UpdateNotificationRequest { + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1UpdateNotificationRequest + */ + id: number; + /** + * Типы уведомлений: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @type {Array} + * @memberof NotificationV1UpdateNotificationRequest + */ + types?: Array; + /** + * Новый URL-адрес. + * @type {string} + * @memberof NotificationV1UpdateNotificationRequest + */ + url?: string; +} +/** + * Check if a given object implements the NotificationV1UpdateNotificationRequest interface. + */ +export declare function instanceOfNotificationV1UpdateNotificationRequest(value: object): value is NotificationV1UpdateNotificationRequest; +export declare function NotificationV1UpdateNotificationRequestFromJSON(json: any): NotificationV1UpdateNotificationRequest; +export declare function NotificationV1UpdateNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1UpdateNotificationRequest; +export declare function NotificationV1UpdateNotificationRequestToJSON(value?: NotificationV1UpdateNotificationRequest | null): any; diff --git a/dist/esm/models/NotificationV1UpdateNotificationRequest.js b/dist/esm/models/NotificationV1UpdateNotificationRequest.js new file mode 100644 index 0000000..7af6939 --- /dev/null +++ b/dist/esm/models/NotificationV1UpdateNotificationRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NotificationV1UpdateNotificationRequestTypeEnumFromJSON, NotificationV1UpdateNotificationRequestTypeEnumToJSON, } from './NotificationV1UpdateNotificationRequestTypeEnum'; +/** + * Check if a given object implements the NotificationV1UpdateNotificationRequest interface. + */ +export function instanceOfNotificationV1UpdateNotificationRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function NotificationV1UpdateNotificationRequestFromJSON(json) { + return NotificationV1UpdateNotificationRequestFromJSONTyped(json, false); +} +export function NotificationV1UpdateNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'types': json['types'] == null ? undefined : (json['types'].map(NotificationV1UpdateNotificationRequestTypeEnumFromJSON)), + 'url': json['url'] == null ? undefined : json['url'], + }; +} +export function NotificationV1UpdateNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'types': value['types'] == null ? undefined : (value['types'].map(NotificationV1UpdateNotificationRequestTypeEnumToJSON)), + 'url': value['url'], + }; +} diff --git a/dist/esm/models/NotificationV1UpdateNotificationRequestTypeEnum.d.ts b/dist/esm/models/NotificationV1UpdateNotificationRequestTypeEnum.d.ts new file mode 100644 index 0000000..49468eb --- /dev/null +++ b/dist/esm/models/NotificationV1UpdateNotificationRequestTypeEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const NotificationV1UpdateNotificationRequestTypeEnum: { + readonly NEW_MESSAGE: "TYPE_NEW_MESSAGE"; + readonly UPDATE_MESSAGE: "TYPE_UPDATE_MESSAGE"; + readonly MESSAGE_READ: "TYPE_MESSAGE_READ"; + readonly CHAT_CLOSED: "TYPE_CHAT_CLOSED"; + readonly NEW_POSTING: "TYPE_NEW_POSTING"; + readonly POSTING_CANCELLED: "TYPE_POSTING_CANCELLED"; + readonly STATE_CHANGED: "TYPE_STATE_CHANGED"; + readonly DELIVERY_DATE_CHANGED: "TYPE_DELIVERY_DATE_CHANGED"; + readonly CUTOFF_DATE_CHANGED: "TYPE_CUTOFF_DATE_CHANGED"; + readonly CREATE_ITEM: "TYPE_CREATE_ITEM"; + readonly UPDATE_ITEM: "TYPE_UPDATE_ITEM"; + readonly CREATE_OR_UPDATE_ITEM: "TYPE_CREATE_OR_UPDATE_ITEM"; + readonly STOCKS_CHANGED: "TYPE_STOCKS_CHANGED"; + readonly FBO_POSTING_NEW: "TYPE_FBO_POSTING_NEW"; + readonly FBO_POSTING_CANCELLED: "TYPE_FBO_POSTING_CANCELLED"; + readonly FBO_POSTING_STATE_CHANGED: "TYPE_FBO_POSTING_STATE_CHANGED"; + readonly FBO_POSTING_DELIVERY_DATE_CHANGED: "TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED"; + readonly FBO_STOCKS_CHANGED: "TYPE_FBO_STOCKS_CHANGED"; + readonly ORDER_NEW: "TYPE_ORDER_NEW"; + readonly ORDER_CANCELLED: "TYPE_ORDER_CANCELLED"; + readonly ORDER_STATE_CHANGED: "TYPE_ORDER_STATE_CHANGED"; +}; +export type NotificationV1UpdateNotificationRequestTypeEnum = typeof NotificationV1UpdateNotificationRequestTypeEnum[keyof typeof NotificationV1UpdateNotificationRequestTypeEnum]; +export declare function instanceOfNotificationV1UpdateNotificationRequestTypeEnum(value: any): boolean; +export declare function NotificationV1UpdateNotificationRequestTypeEnumFromJSON(json: any): NotificationV1UpdateNotificationRequestTypeEnum; +export declare function NotificationV1UpdateNotificationRequestTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1UpdateNotificationRequestTypeEnum; +export declare function NotificationV1UpdateNotificationRequestTypeEnumToJSON(value?: NotificationV1UpdateNotificationRequestTypeEnum | null): any; diff --git a/dist/esm/models/NotificationV1UpdateNotificationRequestTypeEnum.js b/dist/esm/models/NotificationV1UpdateNotificationRequestTypeEnum.js new file mode 100644 index 0000000..9532775 --- /dev/null +++ b/dist/esm/models/NotificationV1UpdateNotificationRequestTypeEnum.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const NotificationV1UpdateNotificationRequestTypeEnum = { + NEW_MESSAGE: 'TYPE_NEW_MESSAGE', + UPDATE_MESSAGE: 'TYPE_UPDATE_MESSAGE', + MESSAGE_READ: 'TYPE_MESSAGE_READ', + CHAT_CLOSED: 'TYPE_CHAT_CLOSED', + NEW_POSTING: 'TYPE_NEW_POSTING', + POSTING_CANCELLED: 'TYPE_POSTING_CANCELLED', + STATE_CHANGED: 'TYPE_STATE_CHANGED', + DELIVERY_DATE_CHANGED: 'TYPE_DELIVERY_DATE_CHANGED', + CUTOFF_DATE_CHANGED: 'TYPE_CUTOFF_DATE_CHANGED', + CREATE_ITEM: 'TYPE_CREATE_ITEM', + UPDATE_ITEM: 'TYPE_UPDATE_ITEM', + CREATE_OR_UPDATE_ITEM: 'TYPE_CREATE_OR_UPDATE_ITEM', + STOCKS_CHANGED: 'TYPE_STOCKS_CHANGED', + FBO_POSTING_NEW: 'TYPE_FBO_POSTING_NEW', + FBO_POSTING_CANCELLED: 'TYPE_FBO_POSTING_CANCELLED', + FBO_POSTING_STATE_CHANGED: 'TYPE_FBO_POSTING_STATE_CHANGED', + FBO_POSTING_DELIVERY_DATE_CHANGED: 'TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED', + FBO_STOCKS_CHANGED: 'TYPE_FBO_STOCKS_CHANGED', + ORDER_NEW: 'TYPE_ORDER_NEW', + ORDER_CANCELLED: 'TYPE_ORDER_CANCELLED', + ORDER_STATE_CHANGED: 'TYPE_ORDER_STATE_CHANGED' +}; +export function instanceOfNotificationV1UpdateNotificationRequestTypeEnum(value) { + for (const key in NotificationV1UpdateNotificationRequestTypeEnum) { + if (Object.prototype.hasOwnProperty.call(NotificationV1UpdateNotificationRequestTypeEnum, key)) { + if (NotificationV1UpdateNotificationRequestTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function NotificationV1UpdateNotificationRequestTypeEnumFromJSON(json) { + return NotificationV1UpdateNotificationRequestTypeEnumFromJSONTyped(json, false); +} +export function NotificationV1UpdateNotificationRequestTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function NotificationV1UpdateNotificationRequestTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/OperationItem.d.ts b/dist/esm/models/OperationItem.d.ts new file mode 100644 index 0000000..3508677 --- /dev/null +++ b/dist/esm/models/OperationItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface OperationItem + */ +export interface OperationItem { + /** + * Название товара. + * @type {string} + * @memberof OperationItem + */ + name?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof OperationItem + */ + sku?: number; +} +/** + * Check if a given object implements the OperationItem interface. + */ +export declare function instanceOfOperationItem(value: object): value is OperationItem; +export declare function OperationItemFromJSON(json: any): OperationItem; +export declare function OperationItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationItem; +export declare function OperationItemToJSON(value?: OperationItem | null): any; diff --git a/dist/esm/models/OperationItem.js b/dist/esm/models/OperationItem.js new file mode 100644 index 0000000..b844448 --- /dev/null +++ b/dist/esm/models/OperationItem.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OperationItem interface. + */ +export function instanceOfOperationItem(value) { + return true; +} +export function OperationItemFromJSON(json) { + return OperationItemFromJSONTyped(json, false); +} +export function OperationItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function OperationItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/OperationPosting.d.ts b/dist/esm/models/OperationPosting.d.ts new file mode 100644 index 0000000..a74cb60 --- /dev/null +++ b/dist/esm/models/OperationPosting.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отправлении. + * @export + * @interface OperationPosting + */ +export interface OperationPosting { + /** + * Схема доставки: + * - `FBO` — доставка со склада Ozon, + * - `FBS` — доставка со своего склада, + * - `CROSSBORDER` — доставка из-за рубежа, + * - `RFBS` — доставка по выбору продавца, + * - `FBP` — доставка с партнёрских складов Ozon, + * - `FBOECONOMY` — доставка эконом-товаров со склада Ozon, + * - `FBSECONOMY` — доставка эконом-товаров со своего склада. + * + * @type {string} + * @memberof OperationPosting + */ + delivery_schema?: string; + /** + * Дата принятия отправления в обработку. + * @type {string} + * @memberof OperationPosting + */ + order_date?: string; + /** + * Номер отправления. + * @type {string} + * @memberof OperationPosting + */ + posting_number?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof OperationPosting + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the OperationPosting interface. + */ +export declare function instanceOfOperationPosting(value: object): value is OperationPosting; +export declare function OperationPostingFromJSON(json: any): OperationPosting; +export declare function OperationPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationPosting; +export declare function OperationPostingToJSON(value?: OperationPosting | null): any; diff --git a/dist/esm/models/OperationPosting.js b/dist/esm/models/OperationPosting.js new file mode 100644 index 0000000..9ee4c8b --- /dev/null +++ b/dist/esm/models/OperationPosting.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OperationPosting interface. + */ +export function instanceOfOperationPosting(value) { + return true; +} +export function OperationPostingFromJSON(json) { + return OperationPostingFromJSONTyped(json, false); +} +export function OperationPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'order_date': json['order_date'] == null ? undefined : json['order_date'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function OperationPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_schema': value['delivery_schema'], + 'order_date': value['order_date'], + 'posting_number': value['posting_number'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/OperationService.d.ts b/dist/esm/models/OperationService.d.ts new file mode 100644 index 0000000..6be1d73 --- /dev/null +++ b/dist/esm/models/OperationService.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface OperationService + */ +export interface OperationService { + /** + * Название услуги: + * - `MarketplaceNotDeliveredCostItem` — возврат невостребованного товара от покупателя на склад. + * - `MarketplaceReturnAfterDeliveryCostItem` — возврат от покупателя на склад после доставки. + * - `MarketplaceDeliveryCostItem` — доставка товара до покупателя. + * - `MarketplaceSaleReviewsItem` — приобретение отзывов на платформе. + * - `ItemAdvertisementForSupplierLogistic` — доставка товаров на склад Ozon — кросс-докинг. + * - `OperationMarketplaceServiceStorage` — размещения товаров. + * - `MarketplaceMarketingActionCostItem` — продвижение товаров. + * - `MarketplaceServiceItemInstallment` — продвижениe и продажа в рассрочку. + * - `MarketplaceServiceItemMarkingItems` — обязательная маркировка товаров. + * - `MarketplaceServiceItemFlexiblePaymentSchedule` — гибкий график выплат. + * - `MarketplaceServiceItemReturnFromStock` — комплектация товаров для вывоза продавцом. + * - `ItemAdvertisementForSupplierLogisticSeller` — транспортно-экспедиционные услуги. + * - `ItemAgentServiceStarsMembership` — вознаграждение за услугу [«Звёздные товары»](https://s.ozon.ru/e7NlR6b). + * - `MarketplaceServiceItemDelivToCustomer` — последняя миля. + * - `MarketplaceServiceItemDirectFlowTrans` — магистраль. + * - `MarketplaceServiceItemDropoffFF` — обработка отправления. + * - `MarketplaceServiceItemDropoffPVZ` — обработка отправления. + * - `MarketplaceServiceItemDropoffSC` — обработка отправления. + * - `MarketplaceServiceItemFulfillment` — сборка заказа. + * - `MarketplaceServiceItemPickup` — выезд транспортного средства по адресу продавца для забора отправлений — Pick-up. + * - `MarketplaceServiceItemReturnAfterDelivToCustomer` — обработка возврата. + * - `MarketplaceServiceItemReturnFlowTrans` — обратная магистраль. + * - `MarketplaceServiceItemReturnNotDelivToCustomer` — обработка отмен. + * - `MarketplaceServiceItemReturnPartGoodsCustomer` — обработка невыкупа. + * - `MarketplaceRedistributionOfAcquiringOperation` — оплата эквайринга. + * - `MarketplaceReturnStorageServiceAtThePickupPointFbsItem` — краткосрочное размещение возврата FBS. + * - `MarketplaceReturnStorageServiceInTheWarehouseFbsItem` — долгосрочное размещение возврата FBS. + * - `MarketplaceServiceItemDeliveryKGT` — доставка крупногабаритного товара (КГТ). + * - `MarketplaceServiceItemDirectFlowLogistic` — логистика. + * - `MarketplaceServiceItemReturnFlowLogistic` — обратная логистика. + * - `MarketplaceServicePremiumCashbackIndividualPoints` — услуга продвижения «Бонусы продавца». + * - `MarketplaceServicePremiumPromotion` — услуга продвижение Premium, фиксированная комиссия. + * - `OperationMarketplaceWithHoldingForUndeliverableGoods` — удержание за недовложение товара. + * - `MarketplaceServiceItemDropoffPPZ` — услуга drop-off в пункте приёма заказов. + * - `MarketplaceServiceItemRedistributionReturnsPVZ` — перевыставление возвратов на ПВЗ. + * - `OperationMarketplaceAgencyFeeAggregator3PLGlobal` — тарификация агентской услуги Agregator 3PL Global. + * - `MarketplaceServiceItemDirectFlowLogisticVDC` — логистика вРЦ. + * + * @type {string} + * @memberof OperationService + */ + name?: string; + /** + * Цена. + * @type {number} + * @memberof OperationService + */ + price?: number; +} +/** + * Check if a given object implements the OperationService interface. + */ +export declare function instanceOfOperationService(value: object): value is OperationService; +export declare function OperationServiceFromJSON(json: any): OperationService; +export declare function OperationServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationService; +export declare function OperationServiceToJSON(value?: OperationService | null): any; diff --git a/dist/esm/models/OperationService.js b/dist/esm/models/OperationService.js new file mode 100644 index 0000000..772e621 --- /dev/null +++ b/dist/esm/models/OperationService.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OperationService interface. + */ +export function instanceOfOperationService(value) { + return true; +} +export function OperationServiceFromJSON(json) { + return OperationServiceFromJSONTyped(json, false); +} +export function OperationServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function OperationServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/OrderCancelCheckResponsePosting.d.ts b/dist/esm/models/OrderCancelCheckResponsePosting.d.ts new file mode 100644 index 0000000..1758707 --- /dev/null +++ b/dist/esm/models/OrderCancelCheckResponsePosting.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface OrderCancelCheckResponsePosting + */ +export interface OrderCancelCheckResponsePosting { + /** + * `true`, если отправление можно отменить. + * + * @type {boolean} + * @memberof OrderCancelCheckResponsePosting + */ + cancellable?: boolean; + /** + * Идентификатор отправления. + * @type {string} + * @memberof OrderCancelCheckResponsePosting + */ + posting_number?: string; + /** + * Причина, по которой отправление нельзя отменить. + * @type {string} + * @memberof OrderCancelCheckResponsePosting + */ + why_not_cancellable?: string; +} +/** + * Check if a given object implements the OrderCancelCheckResponsePosting interface. + */ +export declare function instanceOfOrderCancelCheckResponsePosting(value: object): value is OrderCancelCheckResponsePosting; +export declare function OrderCancelCheckResponsePostingFromJSON(json: any): OrderCancelCheckResponsePosting; +export declare function OrderCancelCheckResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCancelCheckResponsePosting; +export declare function OrderCancelCheckResponsePostingToJSON(value?: OrderCancelCheckResponsePosting | null): any; diff --git a/dist/esm/models/OrderCancelCheckResponsePosting.js b/dist/esm/models/OrderCancelCheckResponsePosting.js new file mode 100644 index 0000000..877894e --- /dev/null +++ b/dist/esm/models/OrderCancelCheckResponsePosting.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OrderCancelCheckResponsePosting interface. + */ +export function instanceOfOrderCancelCheckResponsePosting(value) { + return true; +} +export function OrderCancelCheckResponsePostingFromJSON(json) { + return OrderCancelCheckResponsePostingFromJSONTyped(json, false); +} +export function OrderCancelCheckResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellable': json['cancellable'] == null ? undefined : json['cancellable'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'why_not_cancellable': json['why_not_cancellable'] == null ? undefined : json['why_not_cancellable'], + }; +} +export function OrderCancelCheckResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellable': value['cancellable'], + 'posting_number': value['posting_number'], + 'why_not_cancellable': value['why_not_cancellable'], + }; +} diff --git a/dist/esm/models/OrderCancelCheckResponsePostingGroup.d.ts b/dist/esm/models/OrderCancelCheckResponsePostingGroup.d.ts new file mode 100644 index 0000000..3dc289d --- /dev/null +++ b/dist/esm/models/OrderCancelCheckResponsePostingGroup.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface OrderCancelCheckResponsePostingGroup + */ +export interface OrderCancelCheckResponsePostingGroup { + /** + * Список отправлений в группе. + * @type {Array} + * @memberof OrderCancelCheckResponsePostingGroup + */ + posting_numbers?: Array; +} +/** + * Check if a given object implements the OrderCancelCheckResponsePostingGroup interface. + */ +export declare function instanceOfOrderCancelCheckResponsePostingGroup(value: object): value is OrderCancelCheckResponsePostingGroup; +export declare function OrderCancelCheckResponsePostingGroupFromJSON(json: any): OrderCancelCheckResponsePostingGroup; +export declare function OrderCancelCheckResponsePostingGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCancelCheckResponsePostingGroup; +export declare function OrderCancelCheckResponsePostingGroupToJSON(value?: OrderCancelCheckResponsePostingGroup | null): any; diff --git a/dist/esm/models/OrderCancelCheckResponsePostingGroup.js b/dist/esm/models/OrderCancelCheckResponsePostingGroup.js new file mode 100644 index 0000000..1c6f029 --- /dev/null +++ b/dist/esm/models/OrderCancelCheckResponsePostingGroup.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OrderCancelCheckResponsePostingGroup interface. + */ +export function instanceOfOrderCancelCheckResponsePostingGroup(value) { + return true; +} +export function OrderCancelCheckResponsePostingGroupFromJSON(json) { + return OrderCancelCheckResponsePostingGroupFromJSONTyped(json, false); +} +export function OrderCancelCheckResponsePostingGroupFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + }; +} +export function OrderCancelCheckResponsePostingGroupToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/esm/models/OrderCreateRequestBuyer.d.ts b/dist/esm/models/OrderCreateRequestBuyer.d.ts new file mode 100644 index 0000000..3d8e9a0 --- /dev/null +++ b/dist/esm/models/OrderCreateRequestBuyer.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о покупателе. + * @export + * @interface OrderCreateRequestBuyer + */ +export interface OrderCreateRequestBuyer { + /** + * Имя. + * @type {string} + * @memberof OrderCreateRequestBuyer + */ + first_name: string; + /** + * Фамилия. + * @type {string} + * @memberof OrderCreateRequestBuyer + */ + last_name: string; + /** + * Отчество. + * @type {string} + * @memberof OrderCreateRequestBuyer + */ + middle_name?: string; + /** + * Номер телефона. + * @type {string} + * @memberof OrderCreateRequestBuyer + */ + phone: string; +} +/** + * Check if a given object implements the OrderCreateRequestBuyer interface. + */ +export declare function instanceOfOrderCreateRequestBuyer(value: object): value is OrderCreateRequestBuyer; +export declare function OrderCreateRequestBuyerFromJSON(json: any): OrderCreateRequestBuyer; +export declare function OrderCreateRequestBuyerFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestBuyer; +export declare function OrderCreateRequestBuyerToJSON(value?: OrderCreateRequestBuyer | null): any; diff --git a/dist/esm/models/OrderCreateRequestBuyer.js b/dist/esm/models/OrderCreateRequestBuyer.js new file mode 100644 index 0000000..73b6db5 --- /dev/null +++ b/dist/esm/models/OrderCreateRequestBuyer.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OrderCreateRequestBuyer interface. + */ +export function instanceOfOrderCreateRequestBuyer(value) { + if (!('first_name' in value) || value['first_name'] === undefined) + return false; + if (!('last_name' in value) || value['last_name'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + return true; +} +export function OrderCreateRequestBuyerFromJSON(json) { + return OrderCreateRequestBuyerFromJSONTyped(json, false); +} +export function OrderCreateRequestBuyerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'first_name': json['first_name'], + 'last_name': json['last_name'], + 'middle_name': json['middle_name'] == null ? undefined : json['middle_name'], + 'phone': json['phone'], + }; +} +export function OrderCreateRequestBuyerToJSON(value) { + if (value == null) { + return value; + } + return { + 'first_name': value['first_name'], + 'last_name': value['last_name'], + 'middle_name': value['middle_name'], + 'phone': value['phone'], + }; +} diff --git a/dist/esm/models/OrderCreateRequestDelivery.d.ts b/dist/esm/models/OrderCreateRequestDelivery.d.ts new file mode 100644 index 0000000..a425486 --- /dev/null +++ b/dist/esm/models/OrderCreateRequestDelivery.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryCourier } from './DeliveryCourier'; +import type { DeliveryPickUp } from './DeliveryPickUp'; +/** + * Информация о доставке. + * @export + * @interface OrderCreateRequestDelivery + */ +export interface OrderCreateRequestDelivery { + /** + * + * @type {DeliveryCourier} + * @memberof OrderCreateRequestDelivery + */ + courier?: DeliveryCourier; + /** + * + * @type {DeliveryPickUp} + * @memberof OrderCreateRequestDelivery + */ + pick_up?: DeliveryPickUp; +} +/** + * Check if a given object implements the OrderCreateRequestDelivery interface. + */ +export declare function instanceOfOrderCreateRequestDelivery(value: object): value is OrderCreateRequestDelivery; +export declare function OrderCreateRequestDeliveryFromJSON(json: any): OrderCreateRequestDelivery; +export declare function OrderCreateRequestDeliveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestDelivery; +export declare function OrderCreateRequestDeliveryToJSON(value?: OrderCreateRequestDelivery | null): any; diff --git a/dist/esm/models/OrderCreateRequestDelivery.js b/dist/esm/models/OrderCreateRequestDelivery.js new file mode 100644 index 0000000..91dffbc --- /dev/null +++ b/dist/esm/models/OrderCreateRequestDelivery.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryCourierFromJSON, DeliveryCourierToJSON, } from './DeliveryCourier'; +import { DeliveryPickUpFromJSON, DeliveryPickUpToJSON, } from './DeliveryPickUp'; +/** + * Check if a given object implements the OrderCreateRequestDelivery interface. + */ +export function instanceOfOrderCreateRequestDelivery(value) { + return true; +} +export function OrderCreateRequestDeliveryFromJSON(json) { + return OrderCreateRequestDeliveryFromJSONTyped(json, false); +} +export function OrderCreateRequestDeliveryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier': json['courier'] == null ? undefined : DeliveryCourierFromJSON(json['courier']), + 'pick_up': json['pick_up'] == null ? undefined : DeliveryPickUpFromJSON(json['pick_up']), + }; +} +export function OrderCreateRequestDeliveryToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier': DeliveryCourierToJSON(value['courier']), + 'pick_up': DeliveryPickUpToJSON(value['pick_up']), + }; +} diff --git a/dist/esm/models/OrderCreateRequestDeliveryPrice.d.ts b/dist/esm/models/OrderCreateRequestDeliveryPrice.d.ts new file mode 100644 index 0000000..781addc --- /dev/null +++ b/dist/esm/models/OrderCreateRequestDeliveryPrice.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена доставки. Чтобы отобразить покупателю бесплатную доставку, не передавайте объект. + * @export + * @interface OrderCreateRequestDeliveryPrice + */ +export interface OrderCreateRequestDeliveryPrice { + /** + * Код валюты. + * @type {string} + * @memberof OrderCreateRequestDeliveryPrice + */ + currency_code?: string; + /** + * Часть стоимости в копейках. + * @type {number} + * @memberof OrderCreateRequestDeliveryPrice + */ + nanos?: number; + /** + * Часть стоимости в рублях. + * @type {number} + * @memberof OrderCreateRequestDeliveryPrice + */ + units?: number; +} +/** + * Check if a given object implements the OrderCreateRequestDeliveryPrice interface. + */ +export declare function instanceOfOrderCreateRequestDeliveryPrice(value: object): value is OrderCreateRequestDeliveryPrice; +export declare function OrderCreateRequestDeliveryPriceFromJSON(json: any): OrderCreateRequestDeliveryPrice; +export declare function OrderCreateRequestDeliveryPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestDeliveryPrice; +export declare function OrderCreateRequestDeliveryPriceToJSON(value?: OrderCreateRequestDeliveryPrice | null): any; diff --git a/dist/esm/models/OrderCreateRequestDeliveryPrice.js b/dist/esm/models/OrderCreateRequestDeliveryPrice.js new file mode 100644 index 0000000..f89d8d0 --- /dev/null +++ b/dist/esm/models/OrderCreateRequestDeliveryPrice.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OrderCreateRequestDeliveryPrice interface. + */ +export function instanceOfOrderCreateRequestDeliveryPrice(value) { + return true; +} +export function OrderCreateRequestDeliveryPriceFromJSON(json) { + return OrderCreateRequestDeliveryPriceFromJSONTyped(json, false); +} +export function OrderCreateRequestDeliveryPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'nanos': json['nanos'] == null ? undefined : json['nanos'], + 'units': json['units'] == null ? undefined : json['units'], + }; +} +export function OrderCreateRequestDeliveryPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'nanos': value['nanos'], + 'units': value['units'], + }; +} diff --git a/dist/esm/models/OrderCreateRequestPrice.d.ts b/dist/esm/models/OrderCreateRequestPrice.d.ts new file mode 100644 index 0000000..1d3175e --- /dev/null +++ b/dist/esm/models/OrderCreateRequestPrice.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара. + * @export + * @interface OrderCreateRequestPrice + */ +export interface OrderCreateRequestPrice { + /** + * Код валюты. + * @type {string} + * @memberof OrderCreateRequestPrice + */ + currency_code: string; + /** + * Часть стоимости в копейках. + * @type {number} + * @memberof OrderCreateRequestPrice + */ + nanos?: number; + /** + * Часть стоимости в рублях. + * @type {number} + * @memberof OrderCreateRequestPrice + */ + units: number; +} +/** + * Check if a given object implements the OrderCreateRequestPrice interface. + */ +export declare function instanceOfOrderCreateRequestPrice(value: object): value is OrderCreateRequestPrice; +export declare function OrderCreateRequestPriceFromJSON(json: any): OrderCreateRequestPrice; +export declare function OrderCreateRequestPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestPrice; +export declare function OrderCreateRequestPriceToJSON(value?: OrderCreateRequestPrice | null): any; diff --git a/dist/esm/models/OrderCreateRequestPrice.js b/dist/esm/models/OrderCreateRequestPrice.js new file mode 100644 index 0000000..8bf0e35 --- /dev/null +++ b/dist/esm/models/OrderCreateRequestPrice.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OrderCreateRequestPrice interface. + */ +export function instanceOfOrderCreateRequestPrice(value) { + if (!('currency_code' in value) || value['currency_code'] === undefined) + return false; + if (!('units' in value) || value['units'] === undefined) + return false; + return true; +} +export function OrderCreateRequestPriceFromJSON(json) { + return OrderCreateRequestPriceFromJSONTyped(json, false); +} +export function OrderCreateRequestPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'], + 'nanos': json['nanos'] == null ? undefined : json['nanos'], + 'units': json['units'], + }; +} +export function OrderCreateRequestPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'nanos': value['nanos'], + 'units': value['units'], + }; +} diff --git a/dist/esm/models/OrderCreateRequestRecipient.d.ts b/dist/esm/models/OrderCreateRequestRecipient.d.ts new file mode 100644 index 0000000..64bbc13 --- /dev/null +++ b/dist/esm/models/OrderCreateRequestRecipient.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о получателе. + * @export + * @interface OrderCreateRequestRecipient + */ +export interface OrderCreateRequestRecipient { + /** + * Имя. + * @type {string} + * @memberof OrderCreateRequestRecipient + */ + recipient_first_name: string; + /** + * Фамилия. + * @type {string} + * @memberof OrderCreateRequestRecipient + */ + recipient_last_name: string; + /** + * Отчество. + * @type {string} + * @memberof OrderCreateRequestRecipient + */ + recipient_middle_name?: string; + /** + * Номер телефона. + * @type {string} + * @memberof OrderCreateRequestRecipient + */ + recipient_phone: string; +} +/** + * Check if a given object implements the OrderCreateRequestRecipient interface. + */ +export declare function instanceOfOrderCreateRequestRecipient(value: object): value is OrderCreateRequestRecipient; +export declare function OrderCreateRequestRecipientFromJSON(json: any): OrderCreateRequestRecipient; +export declare function OrderCreateRequestRecipientFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestRecipient; +export declare function OrderCreateRequestRecipientToJSON(value?: OrderCreateRequestRecipient | null): any; diff --git a/dist/esm/models/OrderCreateRequestRecipient.js b/dist/esm/models/OrderCreateRequestRecipient.js new file mode 100644 index 0000000..5f06e8a --- /dev/null +++ b/dist/esm/models/OrderCreateRequestRecipient.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OrderCreateRequestRecipient interface. + */ +export function instanceOfOrderCreateRequestRecipient(value) { + if (!('recipient_first_name' in value) || value['recipient_first_name'] === undefined) + return false; + if (!('recipient_last_name' in value) || value['recipient_last_name'] === undefined) + return false; + if (!('recipient_phone' in value) || value['recipient_phone'] === undefined) + return false; + return true; +} +export function OrderCreateRequestRecipientFromJSON(json) { + return OrderCreateRequestRecipientFromJSONTyped(json, false); +} +export function OrderCreateRequestRecipientFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'recipient_first_name': json['recipient_first_name'], + 'recipient_last_name': json['recipient_last_name'], + 'recipient_middle_name': json['recipient_middle_name'] == null ? undefined : json['recipient_middle_name'], + 'recipient_phone': json['recipient_phone'], + }; +} +export function OrderCreateRequestRecipientToJSON(value) { + if (value == null) { + return value; + } + return { + 'recipient_first_name': value['recipient_first_name'], + 'recipient_last_name': value['recipient_last_name'], + 'recipient_middle_name': value['recipient_middle_name'], + 'recipient_phone': value['recipient_phone'], + }; +} diff --git a/dist/esm/models/OrderCreateRequestSplit.d.ts b/dist/esm/models/OrderCreateRequestSplit.d.ts new file mode 100644 index 0000000..393b7c8 --- /dev/null +++ b/dist/esm/models/OrderCreateRequestSplit.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SplitItem } from './SplitItem'; +import type { SplitDeliveryMethod } from './SplitDeliveryMethod'; +/** + * + * @export + * @interface OrderCreateRequestSplit + */ +export interface OrderCreateRequestSplit { + /** + * + * @type {SplitDeliveryMethod} + * @memberof OrderCreateRequestSplit + */ + delivery_method: SplitDeliveryMethod; + /** + * Товары в отправлении. + * @type {Array} + * @memberof OrderCreateRequestSplit + */ + items: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof OrderCreateRequestSplit + */ + warehouse_id: number; +} +/** + * Check if a given object implements the OrderCreateRequestSplit interface. + */ +export declare function instanceOfOrderCreateRequestSplit(value: object): value is OrderCreateRequestSplit; +export declare function OrderCreateRequestSplitFromJSON(json: any): OrderCreateRequestSplit; +export declare function OrderCreateRequestSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestSplit; +export declare function OrderCreateRequestSplitToJSON(value?: OrderCreateRequestSplit | null): any; diff --git a/dist/esm/models/OrderCreateRequestSplit.js b/dist/esm/models/OrderCreateRequestSplit.js new file mode 100644 index 0000000..6dfd73a --- /dev/null +++ b/dist/esm/models/OrderCreateRequestSplit.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SplitItemFromJSON, SplitItemToJSON, } from './SplitItem'; +import { SplitDeliveryMethodFromJSON, SplitDeliveryMethodToJSON, } from './SplitDeliveryMethod'; +/** + * Check if a given object implements the OrderCreateRequestSplit interface. + */ +export function instanceOfOrderCreateRequestSplit(value) { + if (!('delivery_method' in value) || value['delivery_method'] === undefined) + return false; + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function OrderCreateRequestSplitFromJSON(json) { + return OrderCreateRequestSplitFromJSONTyped(json, false); +} +export function OrderCreateRequestSplitFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method': SplitDeliveryMethodFromJSON(json['delivery_method']), + 'items': (json['items'].map(SplitItemFromJSON)), + 'warehouse_id': json['warehouse_id'], + }; +} +export function OrderCreateRequestSplitToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method': SplitDeliveryMethodToJSON(value['delivery_method']), + 'items': (value['items'].map(SplitItemToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/OrderCreateRequestV2DeliverySchemaEnum.d.ts b/dist/esm/models/OrderCreateRequestV2DeliverySchemaEnum.d.ts new file mode 100644 index 0000000..7f8ac2f --- /dev/null +++ b/dist/esm/models/OrderCreateRequestV2DeliverySchemaEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `MIX` — на выбор Ozon; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export declare const OrderCreateRequestV2DeliverySchemaEnum: { + readonly MIX: "MIX"; + readonly FBO: "FBO"; + readonly FBS: "FBS"; +}; +export type OrderCreateRequestV2DeliverySchemaEnum = typeof OrderCreateRequestV2DeliverySchemaEnum[keyof typeof OrderCreateRequestV2DeliverySchemaEnum]; +export declare function instanceOfOrderCreateRequestV2DeliverySchemaEnum(value: any): boolean; +export declare function OrderCreateRequestV2DeliverySchemaEnumFromJSON(json: any): OrderCreateRequestV2DeliverySchemaEnum; +export declare function OrderCreateRequestV2DeliverySchemaEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestV2DeliverySchemaEnum; +export declare function OrderCreateRequestV2DeliverySchemaEnumToJSON(value?: OrderCreateRequestV2DeliverySchemaEnum | null): any; diff --git a/dist/esm/models/OrderCreateRequestV2DeliverySchemaEnum.js b/dist/esm/models/OrderCreateRequestV2DeliverySchemaEnum.js new file mode 100644 index 0000000..74cf31c --- /dev/null +++ b/dist/esm/models/OrderCreateRequestV2DeliverySchemaEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `MIX` — на выбор Ozon; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export const OrderCreateRequestV2DeliverySchemaEnum = { + MIX: 'MIX', + FBO: 'FBO', + FBS: 'FBS' +}; +export function instanceOfOrderCreateRequestV2DeliverySchemaEnum(value) { + for (const key in OrderCreateRequestV2DeliverySchemaEnum) { + if (Object.prototype.hasOwnProperty.call(OrderCreateRequestV2DeliverySchemaEnum, key)) { + if (OrderCreateRequestV2DeliverySchemaEnum[key] === value) { + return true; + } + } + } + return false; +} +export function OrderCreateRequestV2DeliverySchemaEnumFromJSON(json) { + return OrderCreateRequestV2DeliverySchemaEnumFromJSONTyped(json, false); +} +export function OrderCreateRequestV2DeliverySchemaEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function OrderCreateRequestV2DeliverySchemaEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/OrderDropOffWarehouse.d.ts b/dist/esm/models/OrderDropOffWarehouse.d.ts new file mode 100644 index 0000000..2ce6ce4 --- /dev/null +++ b/dist/esm/models/OrderDropOffWarehouse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о пункте отгрузки. + * @export + * @interface OrderDropOffWarehouse + */ +export interface OrderDropOffWarehouse { + /** + * Адрес пункта отгрузки. + * @type {string} + * @memberof OrderDropOffWarehouse + */ + address?: string; + /** + * Название пункта отгрузки. + * @type {string} + * @memberof OrderDropOffWarehouse + */ + name?: string; + /** + * Идентификатор пункта отгрузки. + * @type {number} + * @memberof OrderDropOffWarehouse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the OrderDropOffWarehouse interface. + */ +export declare function instanceOfOrderDropOffWarehouse(value: object): value is OrderDropOffWarehouse; +export declare function OrderDropOffWarehouseFromJSON(json: any): OrderDropOffWarehouse; +export declare function OrderDropOffWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDropOffWarehouse; +export declare function OrderDropOffWarehouseToJSON(value?: OrderDropOffWarehouse | null): any; diff --git a/dist/esm/models/OrderDropOffWarehouse.js b/dist/esm/models/OrderDropOffWarehouse.js new file mode 100644 index 0000000..3e5a429 --- /dev/null +++ b/dist/esm/models/OrderDropOffWarehouse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OrderDropOffWarehouse interface. + */ +export function instanceOfOrderDropOffWarehouse(value) { + return true; +} +export function OrderDropOffWarehouseFromJSON(json) { + return OrderDropOffWarehouseFromJSONTyped(json, false); +} +export function OrderDropOffWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function OrderDropOffWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/OrderOrderStateEnum.d.ts b/dist/esm/models/OrderOrderStateEnum.d.ts new file mode 100644 index 0000000..4e2bd8f --- /dev/null +++ b/dist/esm/models/OrderOrderStateEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на поставку: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export declare const OrderOrderStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type OrderOrderStateEnum = typeof OrderOrderStateEnum[keyof typeof OrderOrderStateEnum]; +export declare function instanceOfOrderOrderStateEnum(value: any): boolean; +export declare function OrderOrderStateEnumFromJSON(json: any): OrderOrderStateEnum; +export declare function OrderOrderStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOrderStateEnum; +export declare function OrderOrderStateEnumToJSON(value?: OrderOrderStateEnum | null): any; diff --git a/dist/esm/models/OrderOrderStateEnum.js b/dist/esm/models/OrderOrderStateEnum.js new file mode 100644 index 0000000..a3fef97 --- /dev/null +++ b/dist/esm/models/OrderOrderStateEnum.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на поставку: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export const OrderOrderStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +export function instanceOfOrderOrderStateEnum(value) { + for (const key in OrderOrderStateEnum) { + if (Object.prototype.hasOwnProperty.call(OrderOrderStateEnum, key)) { + if (OrderOrderStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function OrderOrderStateEnumFromJSON(json) { + return OrderOrderStateEnumFromJSONTyped(json, false); +} +export function OrderOrderStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function OrderOrderStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/OrderOrderTags.d.ts b/dist/esm/models/OrderOrderTags.d.ts new file mode 100644 index 0000000..b4bd14e --- /dev/null +++ b/dist/esm/models/OrderOrderTags.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метки заявки на поставку. + * @export + * @interface OrderOrderTags + */ +export interface OrderOrderTags { + /** + * `true`, если заявка на поставку относится к товарам «Суперэконом». + * + * @type {boolean} + * @memberof OrderOrderTags + */ + is_econom?: boolean; + /** + * `true`, если доступна отгрузка курьером. + * + * @type {boolean} + * @memberof OrderOrderTags + */ + is_pickup?: boolean; + /** + * Признак, что в поставке есть кванты. + * @type {boolean} + * @memberof OrderOrderTags + */ + is_quant?: boolean; + /** + * `true`, если продавец подключён к Super-поставкам. + * + * @type {boolean} + * @memberof OrderOrderTags + */ + is_super_fbo?: boolean; + /** + * `true`, если заявка на поставку виртуальная. + * + * @type {boolean} + * @memberof OrderOrderTags + */ + is_virtual?: boolean; + /** + * Идентификатор исходной поставки. + * @type {number} + * @memberof OrderOrderTags + */ + original_supply_id?: number; + /** + * `true`, если заявка на поставку относится к Super-товарам. + * + * @type {boolean} + * @memberof OrderOrderTags + */ + product_super_fbo?: boolean; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof OrderOrderTags + */ + seller_warehouse_id?: number; +} +/** + * Check if a given object implements the OrderOrderTags interface. + */ +export declare function instanceOfOrderOrderTags(value: object): value is OrderOrderTags; +export declare function OrderOrderTagsFromJSON(json: any): OrderOrderTags; +export declare function OrderOrderTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOrderTags; +export declare function OrderOrderTagsToJSON(value?: OrderOrderTags | null): any; diff --git a/dist/esm/models/OrderOrderTags.js b/dist/esm/models/OrderOrderTags.js new file mode 100644 index 0000000..468b1a2 --- /dev/null +++ b/dist/esm/models/OrderOrderTags.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the OrderOrderTags interface. + */ +export function instanceOfOrderOrderTags(value) { + return true; +} +export function OrderOrderTagsFromJSON(json) { + return OrderOrderTagsFromJSONTyped(json, false); +} +export function OrderOrderTagsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_econom': json['is_econom'] == null ? undefined : json['is_econom'], + 'is_pickup': json['is_pickup'] == null ? undefined : json['is_pickup'], + 'is_quant': json['is_quant'] == null ? undefined : json['is_quant'], + 'is_super_fbo': json['is_super_fbo'] == null ? undefined : json['is_super_fbo'], + 'is_virtual': json['is_virtual'] == null ? undefined : json['is_virtual'], + 'original_supply_id': json['original_supply_id'] == null ? undefined : json['original_supply_id'], + 'product_super_fbo': json['product_super_fbo'] == null ? undefined : json['product_super_fbo'], + 'seller_warehouse_id': json['seller_warehouse_id'] == null ? undefined : json['seller_warehouse_id'], + }; +} +export function OrderOrderTagsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_econom': value['is_econom'], + 'is_pickup': value['is_pickup'], + 'is_quant': value['is_quant'], + 'is_super_fbo': value['is_super_fbo'], + 'is_virtual': value['is_virtual'], + 'original_supply_id': value['original_supply_id'], + 'product_super_fbo': value['product_super_fbo'], + 'seller_warehouse_id': value['seller_warehouse_id'], + }; +} diff --git a/dist/esm/models/OrderSupply.d.ts b/dist/esm/models/OrderSupply.d.ts new file mode 100644 index 0000000..b0302d4 --- /dev/null +++ b/dist/esm/models/OrderSupply.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplySupplyTags } from './SupplySupplyTags'; +import type { SupplyStorageWarehouse } from './SupplyStorageWarehouse'; +import type { OrderSupplyStateEnum } from './OrderSupplyStateEnum'; +/** + * + * @export + * @interface OrderSupply + */ +export interface OrderSupply { + /** + * `true`, если поставка кросс-докинг. + * + * @type {boolean} + * @memberof OrderSupply + */ + is_crossdock?: boolean; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof OrderSupply + */ + macrolocal_cluster_id?: number; + /** + * Идентификатор состава поставки. + * @type {string} + * @memberof OrderSupply + */ + bundle_id?: string; + /** + * + * @type {OrderSupplyStateEnum} + * @memberof OrderSupply + */ + state?: OrderSupplyStateEnum; + /** + * + * @type {SupplyStorageWarehouse} + * @memberof OrderSupply + */ + storage_warehouse?: SupplyStorageWarehouse; + /** + * Идентификатор поставки. + * @type {number} + * @memberof OrderSupply + */ + supply_id?: number; + /** + * + * @type {SupplySupplyTags} + * @memberof OrderSupply + */ + supply_tags?: SupplySupplyTags; +} +/** + * Check if a given object implements the OrderSupply interface. + */ +export declare function instanceOfOrderSupply(value: object): value is OrderSupply; +export declare function OrderSupplyFromJSON(json: any): OrderSupply; +export declare function OrderSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderSupply; +export declare function OrderSupplyToJSON(value?: OrderSupply | null): any; diff --git a/dist/esm/models/OrderSupply.js b/dist/esm/models/OrderSupply.js new file mode 100644 index 0000000..8a8ec80 --- /dev/null +++ b/dist/esm/models/OrderSupply.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplySupplyTagsFromJSON, SupplySupplyTagsToJSON, } from './SupplySupplyTags'; +import { SupplyStorageWarehouseFromJSON, SupplyStorageWarehouseToJSON, } from './SupplyStorageWarehouse'; +import { OrderSupplyStateEnumFromJSON, OrderSupplyStateEnumToJSON, } from './OrderSupplyStateEnum'; +/** + * Check if a given object implements the OrderSupply interface. + */ +export function instanceOfOrderSupply(value) { + return true; +} +export function OrderSupplyFromJSON(json) { + return OrderSupplyFromJSONTyped(json, false); +} +export function OrderSupplyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_crossdock': json['is_crossdock'] == null ? undefined : json['is_crossdock'], + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'state': json['state'] == null ? undefined : OrderSupplyStateEnumFromJSON(json['state']), + 'storage_warehouse': json['storage_warehouse'] == null ? undefined : SupplyStorageWarehouseFromJSON(json['storage_warehouse']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'supply_tags': json['supply_tags'] == null ? undefined : SupplySupplyTagsFromJSON(json['supply_tags']), + }; +} +export function OrderSupplyToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_crossdock': value['is_crossdock'], + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'bundle_id': value['bundle_id'], + 'state': OrderSupplyStateEnumToJSON(value['state']), + 'storage_warehouse': SupplyStorageWarehouseToJSON(value['storage_warehouse']), + 'supply_id': value['supply_id'], + 'supply_tags': SupplySupplyTagsToJSON(value['supply_tags']), + }; +} diff --git a/dist/esm/models/OrderSupplyStateEnum.d.ts b/dist/esm/models/OrderSupplyStateEnum.d.ts new file mode 100644 index 0000000..4d57b24 --- /dev/null +++ b/dist/esm/models/OrderSupplyStateEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export declare const OrderSupplyStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type OrderSupplyStateEnum = typeof OrderSupplyStateEnum[keyof typeof OrderSupplyStateEnum]; +export declare function instanceOfOrderSupplyStateEnum(value: any): boolean; +export declare function OrderSupplyStateEnumFromJSON(json: any): OrderSupplyStateEnum; +export declare function OrderSupplyStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderSupplyStateEnum; +export declare function OrderSupplyStateEnumToJSON(value?: OrderSupplyStateEnum | null): any; diff --git a/dist/esm/models/OrderSupplyStateEnum.js b/dist/esm/models/OrderSupplyStateEnum.js new file mode 100644 index 0000000..35bda55 --- /dev/null +++ b/dist/esm/models/OrderSupplyStateEnum.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export const OrderSupplyStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +export function instanceOfOrderSupplyStateEnum(value) { + for (const key in OrderSupplyStateEnum) { + if (Object.prototype.hasOwnProperty.call(OrderSupplyStateEnum, key)) { + if (OrderSupplyStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function OrderSupplyStateEnumFromJSON(json) { + return OrderSupplyStateEnumFromJSONTyped(json, false); +} +export function OrderSupplyStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function OrderSupplyStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ParameterAutoStopActionReasonEnum.d.ts b/dist/esm/models/ParameterAutoStopActionReasonEnum.d.ts new file mode 100644 index 0000000..f52ffdb --- /dev/null +++ b/dist/esm/models/ParameterAutoStopActionReasonEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина остановки акции: + * - `UNSPECIFIED` — не определена; + * - `BUDGET_EXCEEDED` — закончился бюджет; + * - `FAST_BUDGET_SPENDING` — быстрый расход бюджета в первые часы; + * - `BUDGET_SPENDING_IS_CRAZY` — быстрый расход бюджета за короткое время. + * + * @export + */ +export declare const ParameterAutoStopActionReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BUDGET_EXCEEDED: "BUDGET_EXCEEDED"; + readonly FAST_BUDGET_SPENDING: "FAST_BUDGET_SPENDING"; + readonly BUDGET_SPENDING_IS_CRAZY: "BUDGET_SPENDING_IS_CRAZY"; +}; +export type ParameterAutoStopActionReasonEnum = typeof ParameterAutoStopActionReasonEnum[keyof typeof ParameterAutoStopActionReasonEnum]; +export declare function instanceOfParameterAutoStopActionReasonEnum(value: any): boolean; +export declare function ParameterAutoStopActionReasonEnumFromJSON(json: any): ParameterAutoStopActionReasonEnum; +export declare function ParameterAutoStopActionReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterAutoStopActionReasonEnum; +export declare function ParameterAutoStopActionReasonEnumToJSON(value?: ParameterAutoStopActionReasonEnum | null): any; diff --git a/dist/esm/models/ParameterAutoStopActionReasonEnum.js b/dist/esm/models/ParameterAutoStopActionReasonEnum.js new file mode 100644 index 0000000..8d45289 --- /dev/null +++ b/dist/esm/models/ParameterAutoStopActionReasonEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина остановки акции: + * - `UNSPECIFIED` — не определена; + * - `BUDGET_EXCEEDED` — закончился бюджет; + * - `FAST_BUDGET_SPENDING` — быстрый расход бюджета в первые часы; + * - `BUDGET_SPENDING_IS_CRAZY` — быстрый расход бюджета за короткое время. + * + * @export + */ +export const ParameterAutoStopActionReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BUDGET_EXCEEDED: 'BUDGET_EXCEEDED', + FAST_BUDGET_SPENDING: 'FAST_BUDGET_SPENDING', + BUDGET_SPENDING_IS_CRAZY: 'BUDGET_SPENDING_IS_CRAZY' +}; +export function instanceOfParameterAutoStopActionReasonEnum(value) { + for (const key in ParameterAutoStopActionReasonEnum) { + if (Object.prototype.hasOwnProperty.call(ParameterAutoStopActionReasonEnum, key)) { + if (ParameterAutoStopActionReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ParameterAutoStopActionReasonEnumFromJSON(json) { + return ParameterAutoStopActionReasonEnumFromJSONTyped(json, false); +} +export function ParameterAutoStopActionReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ParameterAutoStopActionReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ParameterDiscountLevels.d.ts b/dist/esm/models/ParameterDiscountLevels.d.ts new file mode 100644 index 0000000..31a3819 --- /dev/null +++ b/dist/esm/models/ParameterDiscountLevels.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ParameterDiscountLevels + */ +export interface ParameterDiscountLevels { + /** + * Значение скидки. + * @type {number} + * @memberof ParameterDiscountLevels + */ + discount_value?: number; + /** + * Сумма заказа. + * @type {number} + * @memberof ParameterDiscountLevels + */ + order_amount?: number; +} +/** + * Check if a given object implements the ParameterDiscountLevels interface. + */ +export declare function instanceOfParameterDiscountLevels(value: object): value is ParameterDiscountLevels; +export declare function ParameterDiscountLevelsFromJSON(json: any): ParameterDiscountLevels; +export declare function ParameterDiscountLevelsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterDiscountLevels; +export declare function ParameterDiscountLevelsToJSON(value?: ParameterDiscountLevels | null): any; diff --git a/dist/esm/models/ParameterDiscountLevels.js b/dist/esm/models/ParameterDiscountLevels.js new file mode 100644 index 0000000..7ea7d44 --- /dev/null +++ b/dist/esm/models/ParameterDiscountLevels.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ParameterDiscountLevels interface. + */ +export function instanceOfParameterDiscountLevels(value) { + return true; +} +export function ParameterDiscountLevelsFromJSON(json) { + return ParameterDiscountLevelsFromJSONTyped(json, false); +} +export function ParameterDiscountLevelsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + 'order_amount': json['order_amount'] == null ? undefined : json['order_amount'], + }; +} +export function ParameterDiscountLevelsToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount_value': value['discount_value'], + 'order_amount': value['order_amount'], + }; +} diff --git a/dist/esm/models/ParameterPickedSegment.d.ts b/dist/esm/models/ParameterPickedSegment.d.ts new file mode 100644 index 0000000..7d626a4 --- /dev/null +++ b/dist/esm/models/ParameterPickedSegment.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PickedSegmentSegment } from './PickedSegmentSegment'; +/** + * + * @export + * @interface ParameterPickedSegment + */ +export interface ParameterPickedSegment { + /** + * Параметры сегментов аудиторий. + * @type {Array} + * @memberof ParameterPickedSegment + */ + segments?: Array; +} +/** + * Check if a given object implements the ParameterPickedSegment interface. + */ +export declare function instanceOfParameterPickedSegment(value: object): value is ParameterPickedSegment; +export declare function ParameterPickedSegmentFromJSON(json: any): ParameterPickedSegment; +export declare function ParameterPickedSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterPickedSegment; +export declare function ParameterPickedSegmentToJSON(value?: ParameterPickedSegment | null): any; diff --git a/dist/esm/models/ParameterPickedSegment.js b/dist/esm/models/ParameterPickedSegment.js new file mode 100644 index 0000000..6d0bfeb --- /dev/null +++ b/dist/esm/models/ParameterPickedSegment.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PickedSegmentSegmentFromJSON, PickedSegmentSegmentToJSON, } from './PickedSegmentSegment'; +/** + * Check if a given object implements the ParameterPickedSegment interface. + */ +export function instanceOfParameterPickedSegment(value) { + return true; +} +export function ParameterPickedSegmentFromJSON(json) { + return ParameterPickedSegmentFromJSONTyped(json, false); +} +export function ParameterPickedSegmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'segments': json['segments'] == null ? undefined : (json['segments'].map(PickedSegmentSegmentFromJSON)), + }; +} +export function ParameterPickedSegmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'segments': value['segments'] == null ? undefined : (value['segments'].map(PickedSegmentSegmentToJSON)), + }; +} diff --git a/dist/esm/models/PickedSegmentSegment.d.ts b/dist/esm/models/PickedSegmentSegment.d.ts new file mode 100644 index 0000000..dbbcc29 --- /dev/null +++ b/dist/esm/models/PickedSegmentSegment.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PickedSegmentSegmentTypeEnum } from './PickedSegmentSegmentTypeEnum'; +/** + * + * @export + * @interface PickedSegmentSegment + */ +export interface PickedSegmentSegment { + /** + * Описание сегмента. + * @type {string} + * @memberof PickedSegmentSegment + */ + description?: string; + /** + * Идентификатор сегмента. + * @type {number} + * @memberof PickedSegmentSegment + */ + id?: number; + /** + * Название сегмента. + * @type {string} + * @memberof PickedSegmentSegment + */ + name?: string; + /** + * + * @type {PickedSegmentSegmentTypeEnum} + * @memberof PickedSegmentSegment + */ + type?: PickedSegmentSegmentTypeEnum; +} +/** + * Check if a given object implements the PickedSegmentSegment interface. + */ +export declare function instanceOfPickedSegmentSegment(value: object): value is PickedSegmentSegment; +export declare function PickedSegmentSegmentFromJSON(json: any): PickedSegmentSegment; +export declare function PickedSegmentSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickedSegmentSegment; +export declare function PickedSegmentSegmentToJSON(value?: PickedSegmentSegment | null): any; diff --git a/dist/esm/models/PickedSegmentSegment.js b/dist/esm/models/PickedSegmentSegment.js new file mode 100644 index 0000000..47a41f5 --- /dev/null +++ b/dist/esm/models/PickedSegmentSegment.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PickedSegmentSegmentTypeEnumFromJSON, PickedSegmentSegmentTypeEnumToJSON, } from './PickedSegmentSegmentTypeEnum'; +/** + * Check if a given object implements the PickedSegmentSegment interface. + */ +export function instanceOfPickedSegmentSegment(value) { + return true; +} +export function PickedSegmentSegmentFromJSON(json) { + return PickedSegmentSegmentFromJSONTyped(json, false); +} +export function PickedSegmentSegmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : PickedSegmentSegmentTypeEnumFromJSON(json['type']), + }; +} +export function PickedSegmentSegmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'id': value['id'], + 'name': value['name'], + 'type': PickedSegmentSegmentTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/PickedSegmentSegmentTypeEnum.d.ts b/dist/esm/models/PickedSegmentSegmentTypeEnum.d.ts new file mode 100644 index 0000000..8f9a082 --- /dev/null +++ b/dist/esm/models/PickedSegmentSegmentTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип сегмента: + * - `UNSPECIFIED` — не определён; + * - `OZON` — Ozon; + * - `SELLER` — продавца. + * + * @export + */ +export declare const PickedSegmentSegmentTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELLER: "SELLER"; +}; +export type PickedSegmentSegmentTypeEnum = typeof PickedSegmentSegmentTypeEnum[keyof typeof PickedSegmentSegmentTypeEnum]; +export declare function instanceOfPickedSegmentSegmentTypeEnum(value: any): boolean; +export declare function PickedSegmentSegmentTypeEnumFromJSON(json: any): PickedSegmentSegmentTypeEnum; +export declare function PickedSegmentSegmentTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickedSegmentSegmentTypeEnum; +export declare function PickedSegmentSegmentTypeEnumToJSON(value?: PickedSegmentSegmentTypeEnum | null): any; diff --git a/dist/esm/models/PickedSegmentSegmentTypeEnum.js b/dist/esm/models/PickedSegmentSegmentTypeEnum.js new file mode 100644 index 0000000..a935a14 --- /dev/null +++ b/dist/esm/models/PickedSegmentSegmentTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип сегмента: + * - `UNSPECIFIED` — не определён; + * - `OZON` — Ozon; + * - `SELLER` — продавца. + * + * @export + */ +export const PickedSegmentSegmentTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELLER: 'SELLER' +}; +export function instanceOfPickedSegmentSegmentTypeEnum(value) { + for (const key in PickedSegmentSegmentTypeEnum) { + if (Object.prototype.hasOwnProperty.call(PickedSegmentSegmentTypeEnum, key)) { + if (PickedSegmentSegmentTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PickedSegmentSegmentTypeEnumFromJSON(json) { + return PickedSegmentSegmentTypeEnumFromJSONTyped(json, false); +} +export function PickedSegmentSegmentTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PickedSegmentSegmentTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PointDeliveryMethodCoordinates.d.ts b/dist/esm/models/PointDeliveryMethodCoordinates.d.ts new file mode 100644 index 0000000..dad7b5e --- /dev/null +++ b/dist/esm/models/PointDeliveryMethodCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface PointDeliveryMethodCoordinates + */ +export interface PointDeliveryMethodCoordinates { + /** + * Широта. + * @type {number} + * @memberof PointDeliveryMethodCoordinates + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof PointDeliveryMethodCoordinates + */ + _long?: number; +} +/** + * Check if a given object implements the PointDeliveryMethodCoordinates interface. + */ +export declare function instanceOfPointDeliveryMethodCoordinates(value: object): value is PointDeliveryMethodCoordinates; +export declare function PointDeliveryMethodCoordinatesFromJSON(json: any): PointDeliveryMethodCoordinates; +export declare function PointDeliveryMethodCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointDeliveryMethodCoordinates; +export declare function PointDeliveryMethodCoordinatesToJSON(value?: PointDeliveryMethodCoordinates | null): any; diff --git a/dist/esm/models/PointDeliveryMethodCoordinates.js b/dist/esm/models/PointDeliveryMethodCoordinates.js new file mode 100644 index 0000000..792aaf1 --- /dev/null +++ b/dist/esm/models/PointDeliveryMethodCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PointDeliveryMethodCoordinates interface. + */ +export function instanceOfPointDeliveryMethodCoordinates(value) { + return true; +} +export function PointDeliveryMethodCoordinatesFromJSON(json) { + return PointDeliveryMethodCoordinatesFromJSONTyped(json, false); +} +export function PointDeliveryMethodCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +export function PointDeliveryMethodCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/esm/models/PolygonBindRequestpolygon.d.ts b/dist/esm/models/PolygonBindRequestpolygon.d.ts new file mode 100644 index 0000000..8972f90 --- /dev/null +++ b/dist/esm/models/PolygonBindRequestpolygon.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PolygonBindRequestpolygon + */ +export interface PolygonBindRequestpolygon { + /** + * Идентификатор полигона. + * @type {number} + * @memberof PolygonBindRequestpolygon + */ + polygon_id: number; + /** + * Время в минутах, за которое доставят товар в этом полигоне. + * @type {number} + * @memberof PolygonBindRequestpolygon + */ + time: number; +} +/** + * Check if a given object implements the PolygonBindRequestpolygon interface. + */ +export declare function instanceOfPolygonBindRequestpolygon(value: object): value is PolygonBindRequestpolygon; +export declare function PolygonBindRequestpolygonFromJSON(json: any): PolygonBindRequestpolygon; +export declare function PolygonBindRequestpolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonBindRequestpolygon; +export declare function PolygonBindRequestpolygonToJSON(value?: PolygonBindRequestpolygon | null): any; diff --git a/dist/esm/models/PolygonBindRequestpolygon.js b/dist/esm/models/PolygonBindRequestpolygon.js new file mode 100644 index 0000000..71cd262 --- /dev/null +++ b/dist/esm/models/PolygonBindRequestpolygon.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PolygonBindRequestpolygon interface. + */ +export function instanceOfPolygonBindRequestpolygon(value) { + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + return true; +} +export function PolygonBindRequestpolygonFromJSON(json) { + return PolygonBindRequestpolygonFromJSONTyped(json, false); +} +export function PolygonBindRequestpolygonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'polygon_id': json['polygon_id'], + 'time': json['time'], + }; +} +export function PolygonBindRequestpolygonToJSON(value) { + if (value == null) { + return value; + } + return { + 'polygon_id': value['polygon_id'], + 'time': value['time'], + }; +} diff --git a/dist/esm/models/PolygonBindRequestwhLocation.d.ts b/dist/esm/models/PolygonBindRequestwhLocation.d.ts new file mode 100644 index 0000000..75cc2ea --- /dev/null +++ b/dist/esm/models/PolygonBindRequestwhLocation.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Расположение склада. + * @export + * @interface PolygonBindRequestwhLocation + */ +export interface PolygonBindRequestwhLocation { + /** + * Географическая широта расположения склада. + * @type {string} + * @memberof PolygonBindRequestwhLocation + */ + lat: string; + /** + * Географическая долгота расположения склада. + * @type {string} + * @memberof PolygonBindRequestwhLocation + */ + lon: string; +} +/** + * Check if a given object implements the PolygonBindRequestwhLocation interface. + */ +export declare function instanceOfPolygonBindRequestwhLocation(value: object): value is PolygonBindRequestwhLocation; +export declare function PolygonBindRequestwhLocationFromJSON(json: any): PolygonBindRequestwhLocation; +export declare function PolygonBindRequestwhLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonBindRequestwhLocation; +export declare function PolygonBindRequestwhLocationToJSON(value?: PolygonBindRequestwhLocation | null): any; diff --git a/dist/esm/models/PolygonBindRequestwhLocation.js b/dist/esm/models/PolygonBindRequestwhLocation.js new file mode 100644 index 0000000..0d7998e --- /dev/null +++ b/dist/esm/models/PolygonBindRequestwhLocation.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PolygonBindRequestwhLocation interface. + */ +export function instanceOfPolygonBindRequestwhLocation(value) { + if (!('lat' in value) || value['lat'] === undefined) + return false; + if (!('lon' in value) || value['lon'] === undefined) + return false; + return true; +} +export function PolygonBindRequestwhLocationFromJSON(json) { + return PolygonBindRequestwhLocationFromJSONTyped(json, false); +} +export function PolygonBindRequestwhLocationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'], + 'lon': json['lon'], + }; +} +export function PolygonBindRequestwhLocationToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'lon': value['lon'], + }; +} diff --git a/dist/esm/models/PolygonListResponsePolygon.d.ts b/dist/esm/models/PolygonListResponsePolygon.d.ts new file mode 100644 index 0000000..376d512 --- /dev/null +++ b/dist/esm/models/PolygonListResponsePolygon.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PolygonListResponsePolygon + */ +export interface PolygonListResponsePolygon { + /** + * Координаты полигона доставки в формате `[[[lat,long],[lat,long]]]`. + * @type {string} + * @memberof PolygonListResponsePolygon + */ + coordinates?: string; + /** + * Идентификатор полигона. + * @type {number} + * @memberof PolygonListResponsePolygon + */ + polygon_id?: number; + /** + * Время доставки в минутах. + * @type {number} + * @memberof PolygonListResponsePolygon + */ + time?: number; +} +/** + * Check if a given object implements the PolygonListResponsePolygon interface. + */ +export declare function instanceOfPolygonListResponsePolygon(value: object): value is PolygonListResponsePolygon; +export declare function PolygonListResponsePolygonFromJSON(json: any): PolygonListResponsePolygon; +export declare function PolygonListResponsePolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonListResponsePolygon; +export declare function PolygonListResponsePolygonToJSON(value?: PolygonListResponsePolygon | null): any; diff --git a/dist/esm/models/PolygonListResponsePolygon.js b/dist/esm/models/PolygonListResponsePolygon.js new file mode 100644 index 0000000..9c084b4 --- /dev/null +++ b/dist/esm/models/PolygonListResponsePolygon.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PolygonListResponsePolygon interface. + */ +export function instanceOfPolygonListResponsePolygon(value) { + return true; +} +export function PolygonListResponsePolygonFromJSON(json) { + return PolygonListResponsePolygonFromJSONTyped(json, false); +} +export function PolygonListResponsePolygonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'] == null ? undefined : json['coordinates'], + 'polygon_id': json['polygon_id'] == null ? undefined : json['polygon_id'], + 'time': json['time'] == null ? undefined : json['time'], + }; +} +export function PolygonListResponsePolygonToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': value['coordinates'], + 'polygon_id': value['polygon_id'], + 'time': value['time'], + }; +} diff --git a/dist/esm/models/Polygonv1PolygonBindRequest.d.ts b/dist/esm/models/Polygonv1PolygonBindRequest.d.ts new file mode 100644 index 0000000..c67fc4c --- /dev/null +++ b/dist/esm/models/Polygonv1PolygonBindRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PolygonBindRequestwhLocation } from './PolygonBindRequestwhLocation'; +import type { PolygonBindRequestpolygon } from './PolygonBindRequestpolygon'; +/** + * + * @export + * @interface Polygonv1PolygonBindRequest + */ +export interface Polygonv1PolygonBindRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof Polygonv1PolygonBindRequest + */ + delivery_method_id: number; + /** + * Список полигонов. + * @type {Array} + * @memberof Polygonv1PolygonBindRequest + */ + polygons: Array; + /** + * + * @type {PolygonBindRequestwhLocation} + * @memberof Polygonv1PolygonBindRequest + */ + warehouse_location: PolygonBindRequestwhLocation; +} +/** + * Check if a given object implements the Polygonv1PolygonBindRequest interface. + */ +export declare function instanceOfPolygonv1PolygonBindRequest(value: object): value is Polygonv1PolygonBindRequest; +export declare function Polygonv1PolygonBindRequestFromJSON(json: any): Polygonv1PolygonBindRequest; +export declare function Polygonv1PolygonBindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygonv1PolygonBindRequest; +export declare function Polygonv1PolygonBindRequestToJSON(value?: Polygonv1PolygonBindRequest | null): any; diff --git a/dist/esm/models/Polygonv1PolygonBindRequest.js b/dist/esm/models/Polygonv1PolygonBindRequest.js new file mode 100644 index 0000000..2af3dd9 --- /dev/null +++ b/dist/esm/models/Polygonv1PolygonBindRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PolygonBindRequestwhLocationFromJSON, PolygonBindRequestwhLocationToJSON, } from './PolygonBindRequestwhLocation'; +import { PolygonBindRequestpolygonFromJSON, PolygonBindRequestpolygonToJSON, } from './PolygonBindRequestpolygon'; +/** + * Check if a given object implements the Polygonv1PolygonBindRequest interface. + */ +export function instanceOfPolygonv1PolygonBindRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('polygons' in value) || value['polygons'] === undefined) + return false; + if (!('warehouse_location' in value) || value['warehouse_location'] === undefined) + return false; + return true; +} +export function Polygonv1PolygonBindRequestFromJSON(json) { + return Polygonv1PolygonBindRequestFromJSONTyped(json, false); +} +export function Polygonv1PolygonBindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'polygons': (json['polygons'].map(PolygonBindRequestpolygonFromJSON)), + 'warehouse_location': PolygonBindRequestwhLocationFromJSON(json['warehouse_location']), + }; +} +export function Polygonv1PolygonBindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'polygons': (value['polygons'].map(PolygonBindRequestpolygonToJSON)), + 'warehouse_location': PolygonBindRequestwhLocationToJSON(value['warehouse_location']), + }; +} diff --git a/dist/esm/models/Polygonv1PolygonCreateRequest.d.ts b/dist/esm/models/Polygonv1PolygonCreateRequest.d.ts new file mode 100644 index 0000000..b91ca37 --- /dev/null +++ b/dist/esm/models/Polygonv1PolygonCreateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Polygonv1PolygonCreateRequest + */ +export interface Polygonv1PolygonCreateRequest { + /** + * Координаты полигона доставки в формате `[[[lat long]]]`. + * + * @type {string} + * @memberof Polygonv1PolygonCreateRequest + */ + coordinates: string; +} +/** + * Check if a given object implements the Polygonv1PolygonCreateRequest interface. + */ +export declare function instanceOfPolygonv1PolygonCreateRequest(value: object): value is Polygonv1PolygonCreateRequest; +export declare function Polygonv1PolygonCreateRequestFromJSON(json: any): Polygonv1PolygonCreateRequest; +export declare function Polygonv1PolygonCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygonv1PolygonCreateRequest; +export declare function Polygonv1PolygonCreateRequestToJSON(value?: Polygonv1PolygonCreateRequest | null): any; diff --git a/dist/esm/models/Polygonv1PolygonCreateRequest.js b/dist/esm/models/Polygonv1PolygonCreateRequest.js new file mode 100644 index 0000000..27a8b17 --- /dev/null +++ b/dist/esm/models/Polygonv1PolygonCreateRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Polygonv1PolygonCreateRequest interface. + */ +export function instanceOfPolygonv1PolygonCreateRequest(value) { + if (!('coordinates' in value) || value['coordinates'] === undefined) + return false; + return true; +} +export function Polygonv1PolygonCreateRequestFromJSON(json) { + return Polygonv1PolygonCreateRequestFromJSONTyped(json, false); +} +export function Polygonv1PolygonCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'], + }; +} +export function Polygonv1PolygonCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': value['coordinates'], + }; +} diff --git a/dist/esm/models/Polygonv1PolygonCreateResponse.d.ts b/dist/esm/models/Polygonv1PolygonCreateResponse.d.ts new file mode 100644 index 0000000..0ee2ce2 --- /dev/null +++ b/dist/esm/models/Polygonv1PolygonCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Polygonv1PolygonCreateResponse + */ +export interface Polygonv1PolygonCreateResponse { + /** + * Идентификатор полигона. + * @type {number} + * @memberof Polygonv1PolygonCreateResponse + */ + polygon_id?: number; +} +/** + * Check if a given object implements the Polygonv1PolygonCreateResponse interface. + */ +export declare function instanceOfPolygonv1PolygonCreateResponse(value: object): value is Polygonv1PolygonCreateResponse; +export declare function Polygonv1PolygonCreateResponseFromJSON(json: any): Polygonv1PolygonCreateResponse; +export declare function Polygonv1PolygonCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygonv1PolygonCreateResponse; +export declare function Polygonv1PolygonCreateResponseToJSON(value?: Polygonv1PolygonCreateResponse | null): any; diff --git a/dist/esm/models/Polygonv1PolygonCreateResponse.js b/dist/esm/models/Polygonv1PolygonCreateResponse.js new file mode 100644 index 0000000..ec64bb0 --- /dev/null +++ b/dist/esm/models/Polygonv1PolygonCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Polygonv1PolygonCreateResponse interface. + */ +export function instanceOfPolygonv1PolygonCreateResponse(value) { + return true; +} +export function Polygonv1PolygonCreateResponseFromJSON(json) { + return Polygonv1PolygonCreateResponseFromJSONTyped(json, false); +} +export function Polygonv1PolygonCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'polygon_id': json['polygon_id'] == null ? undefined : json['polygon_id'], + }; +} +export function Polygonv1PolygonCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'polygon_id': value['polygon_id'], + }; +} diff --git a/dist/esm/models/PostingAdditionalDataItem.d.ts b/dist/esm/models/PostingAdditionalDataItem.d.ts new file mode 100644 index 0000000..13e8b1e --- /dev/null +++ b/dist/esm/models/PostingAdditionalDataItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingAdditionalDataItem + */ +export interface PostingAdditionalDataItem { + /** + * Ключ дополнительного параметра. + * @type {string} + * @memberof PostingAdditionalDataItem + */ + key?: string; + /** + * Значение дополнительного параметра. + * @type {string} + * @memberof PostingAdditionalDataItem + */ + value?: string; +} +/** + * Check if a given object implements the PostingAdditionalDataItem interface. + */ +export declare function instanceOfPostingAdditionalDataItem(value: object): value is PostingAdditionalDataItem; +export declare function PostingAdditionalDataItemFromJSON(json: any): PostingAdditionalDataItem; +export declare function PostingAdditionalDataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingAdditionalDataItem; +export declare function PostingAdditionalDataItemToJSON(value?: PostingAdditionalDataItem | null): any; diff --git a/dist/esm/models/PostingAdditionalDataItem.js b/dist/esm/models/PostingAdditionalDataItem.js new file mode 100644 index 0000000..cadac77 --- /dev/null +++ b/dist/esm/models/PostingAdditionalDataItem.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingAdditionalDataItem interface. + */ +export function instanceOfPostingAdditionalDataItem(value) { + return true; +} +export function PostingAdditionalDataItemFromJSON(json) { + return PostingAdditionalDataItemFromJSONTyped(json, false); +} +export function PostingAdditionalDataItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function PostingAdditionalDataItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/PostingBooleanResponse.d.ts b/dist/esm/models/PostingBooleanResponse.d.ts new file mode 100644 index 0000000..b284cbe --- /dev/null +++ b/dist/esm/models/PostingBooleanResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingBooleanResponse + */ +export interface PostingBooleanResponse { + /** + * Результат обработки запроса. `true`, если запрос выполнился без ошибок. + * @type {boolean} + * @memberof PostingBooleanResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the PostingBooleanResponse interface. + */ +export declare function instanceOfPostingBooleanResponse(value: object): value is PostingBooleanResponse; +export declare function PostingBooleanResponseFromJSON(json: any): PostingBooleanResponse; +export declare function PostingBooleanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingBooleanResponse; +export declare function PostingBooleanResponseToJSON(value?: PostingBooleanResponse | null): any; diff --git a/dist/esm/models/PostingBooleanResponse.js b/dist/esm/models/PostingBooleanResponse.js new file mode 100644 index 0000000..cac50c7 --- /dev/null +++ b/dist/esm/models/PostingBooleanResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingBooleanResponse interface. + */ +export function instanceOfPostingBooleanResponse(value) { + return true; +} +export function PostingBooleanResponseFromJSON(json) { + return PostingBooleanResponseFromJSONTyped(json, false); +} +export function PostingBooleanResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function PostingBooleanResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/PostingCancelFbsPostingRequest.d.ts b/dist/esm/models/PostingCancelFbsPostingRequest.d.ts new file mode 100644 index 0000000..96a347f --- /dev/null +++ b/dist/esm/models/PostingCancelFbsPostingRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingCancelFbsPostingRequest + */ +export interface PostingCancelFbsPostingRequest { + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingCancelFbsPostingRequest + */ + cancel_reason_id: number; + /** + * Дополнительная информация по отмене. Если `cancel_reason_id = 402`, параметр обязательный. + * @type {string} + * @memberof PostingCancelFbsPostingRequest + */ + cancel_reason_message?: string; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingCancelFbsPostingRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the PostingCancelFbsPostingRequest interface. + */ +export declare function instanceOfPostingCancelFbsPostingRequest(value: object): value is PostingCancelFbsPostingRequest; +export declare function PostingCancelFbsPostingRequestFromJSON(json: any): PostingCancelFbsPostingRequest; +export declare function PostingCancelFbsPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelFbsPostingRequest; +export declare function PostingCancelFbsPostingRequestToJSON(value?: PostingCancelFbsPostingRequest | null): any; diff --git a/dist/esm/models/PostingCancelFbsPostingRequest.js b/dist/esm/models/PostingCancelFbsPostingRequest.js new file mode 100644 index 0000000..4f0d1a6 --- /dev/null +++ b/dist/esm/models/PostingCancelFbsPostingRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingCancelFbsPostingRequest interface. + */ +export function instanceOfPostingCancelFbsPostingRequest(value) { + if (!('cancel_reason_id' in value) || value['cancel_reason_id'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingCancelFbsPostingRequestFromJSON(json) { + return PostingCancelFbsPostingRequestFromJSONTyped(json, false); +} +export function PostingCancelFbsPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason_id': json['cancel_reason_id'], + 'cancel_reason_message': json['cancel_reason_message'] == null ? undefined : json['cancel_reason_message'], + 'posting_number': json['posting_number'], + }; +} +export function PostingCancelFbsPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason_id': value['cancel_reason_id'], + 'cancel_reason_message': value['cancel_reason_message'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/PostingCancelReason.d.ts b/dist/esm/models/PostingCancelReason.d.ts new file mode 100644 index 0000000..5f9e25c --- /dev/null +++ b/dist/esm/models/PostingCancelReason.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingCancelReason + */ +export interface PostingCancelReason { + /** + * Идентификатор причины отмены. + * + * @type {number} + * @memberof PostingCancelReason + */ + id?: number; + /** + * Результат отмены отправления. `true`, если запрос доступен для отмены. + * @type {boolean} + * @memberof PostingCancelReason + */ + is_available_for_cancellation?: boolean; + /** + * Название категории. + * @type {string} + * @memberof PostingCancelReason + */ + title?: string; + /** + * Инициатор отмены отправления: + * - `buyer` — покупатель, + * - `seller` — продавец. + * + * @type {string} + * @memberof PostingCancelReason + */ + type_id?: string; +} +/** + * Check if a given object implements the PostingCancelReason interface. + */ +export declare function instanceOfPostingCancelReason(value: object): value is PostingCancelReason; +export declare function PostingCancelReasonFromJSON(json: any): PostingCancelReason; +export declare function PostingCancelReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelReason; +export declare function PostingCancelReasonToJSON(value?: PostingCancelReason | null): any; diff --git a/dist/esm/models/PostingCancelReason.js b/dist/esm/models/PostingCancelReason.js new file mode 100644 index 0000000..629ff98 --- /dev/null +++ b/dist/esm/models/PostingCancelReason.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingCancelReason interface. + */ +export function instanceOfPostingCancelReason(value) { + return true; +} +export function PostingCancelReasonFromJSON(json) { + return PostingCancelReasonFromJSONTyped(json, false); +} +export function PostingCancelReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'is_available_for_cancellation': json['is_available_for_cancellation'] == null ? undefined : json['is_available_for_cancellation'], + 'title': json['title'] == null ? undefined : json['title'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +export function PostingCancelReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'is_available_for_cancellation': value['is_available_for_cancellation'], + 'title': value['title'], + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/PostingCancelReasonListResponse.d.ts b/dist/esm/models/PostingCancelReasonListResponse.d.ts new file mode 100644 index 0000000..0864d7f --- /dev/null +++ b/dist/esm/models/PostingCancelReasonListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingCancelReason } from './PostingCancelReason'; +/** + * + * @export + * @interface PostingCancelReasonListResponse + */ +export interface PostingCancelReasonListResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof PostingCancelReasonListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the PostingCancelReasonListResponse interface. + */ +export declare function instanceOfPostingCancelReasonListResponse(value: object): value is PostingCancelReasonListResponse; +export declare function PostingCancelReasonListResponseFromJSON(json: any): PostingCancelReasonListResponse; +export declare function PostingCancelReasonListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelReasonListResponse; +export declare function PostingCancelReasonListResponseToJSON(value?: PostingCancelReasonListResponse | null): any; diff --git a/dist/esm/models/PostingCancelReasonListResponse.js b/dist/esm/models/PostingCancelReasonListResponse.js new file mode 100644 index 0000000..43a9806 --- /dev/null +++ b/dist/esm/models/PostingCancelReasonListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingCancelReasonFromJSON, PostingCancelReasonToJSON, } from './PostingCancelReason'; +/** + * Check if a given object implements the PostingCancelReasonListResponse interface. + */ +export function instanceOfPostingCancelReasonListResponse(value) { + return true; +} +export function PostingCancelReasonListResponseFromJSON(json) { + return PostingCancelReasonListResponseFromJSONTyped(json, false); +} +export function PostingCancelReasonListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(PostingCancelReasonFromJSON)), + }; +} +export function PostingCancelReasonListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(PostingCancelReasonToJSON)), + }; +} diff --git a/dist/esm/models/PostingCancelReasonRequest.d.ts b/dist/esm/models/PostingCancelReasonRequest.d.ts new file mode 100644 index 0000000..7cc80d3 --- /dev/null +++ b/dist/esm/models/PostingCancelReasonRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingCancelReasonRequest + */ +export interface PostingCancelReasonRequest { + /** + * Номера отправлений. + * @type {Array} + * @memberof PostingCancelReasonRequest + */ + related_posting_numbers: Array; +} +/** + * Check if a given object implements the PostingCancelReasonRequest interface. + */ +export declare function instanceOfPostingCancelReasonRequest(value: object): value is PostingCancelReasonRequest; +export declare function PostingCancelReasonRequestFromJSON(json: any): PostingCancelReasonRequest; +export declare function PostingCancelReasonRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelReasonRequest; +export declare function PostingCancelReasonRequestToJSON(value?: PostingCancelReasonRequest | null): any; diff --git a/dist/esm/models/PostingCancelReasonRequest.js b/dist/esm/models/PostingCancelReasonRequest.js new file mode 100644 index 0000000..c035000 --- /dev/null +++ b/dist/esm/models/PostingCancelReasonRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingCancelReasonRequest interface. + */ +export function instanceOfPostingCancelReasonRequest(value) { + if (!('related_posting_numbers' in value) || value['related_posting_numbers'] === undefined) + return false; + return true; +} +export function PostingCancelReasonRequestFromJSON(json) { + return PostingCancelReasonRequestFromJSONTyped(json, false); +} +export function PostingCancelReasonRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'related_posting_numbers': json['related_posting_numbers'], + }; +} +export function PostingCancelReasonRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'related_posting_numbers': value['related_posting_numbers'], + }; +} diff --git a/dist/esm/models/PostingCancelReasonResponse.d.ts b/dist/esm/models/PostingCancelReasonResponse.d.ts new file mode 100644 index 0000000..3812d0a --- /dev/null +++ b/dist/esm/models/PostingCancelReasonResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RelatedPostingCancelReason } from './RelatedPostingCancelReason'; +/** + * + * @export + * @interface PostingCancelReasonResponse + */ +export interface PostingCancelReasonResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof PostingCancelReasonResponse + */ + result?: Array; +} +/** + * Check if a given object implements the PostingCancelReasonResponse interface. + */ +export declare function instanceOfPostingCancelReasonResponse(value: object): value is PostingCancelReasonResponse; +export declare function PostingCancelReasonResponseFromJSON(json: any): PostingCancelReasonResponse; +export declare function PostingCancelReasonResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelReasonResponse; +export declare function PostingCancelReasonResponseToJSON(value?: PostingCancelReasonResponse | null): any; diff --git a/dist/esm/models/PostingCancelReasonResponse.js b/dist/esm/models/PostingCancelReasonResponse.js new file mode 100644 index 0000000..af7d294 --- /dev/null +++ b/dist/esm/models/PostingCancelReasonResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RelatedPostingCancelReasonFromJSON, RelatedPostingCancelReasonToJSON, } from './RelatedPostingCancelReason'; +/** + * Check if a given object implements the PostingCancelReasonResponse interface. + */ +export function instanceOfPostingCancelReasonResponse(value) { + return true; +} +export function PostingCancelReasonResponseFromJSON(json) { + return PostingCancelReasonResponseFromJSONTyped(json, false); +} +export function PostingCancelReasonResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(RelatedPostingCancelReasonFromJSON)), + }; +} +export function PostingCancelReasonResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(RelatedPostingCancelReasonToJSON)), + }; +} diff --git a/dist/esm/models/PostingErrorTypeEnum.d.ts b/dist/esm/models/PostingErrorTypeEnum.d.ts new file mode 100644 index 0000000..fd6c6b2 --- /dev/null +++ b/dist/esm/models/PostingErrorTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `UNSPECIFIED` — не указан; + * - `SELLER_CANCELLATION` — отмена по вине продавца; + * - `SELLER_DELAY` — просрочка по вине продавца. + * + * @export + */ +export declare const PostingErrorTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SELLER_CANCELLATION: "SELLER_CANCELLATION"; + readonly SELLER_DELAY: "SELLER_DELAY"; +}; +export type PostingErrorTypeEnum = typeof PostingErrorTypeEnum[keyof typeof PostingErrorTypeEnum]; +export declare function instanceOfPostingErrorTypeEnum(value: any): boolean; +export declare function PostingErrorTypeEnumFromJSON(json: any): PostingErrorTypeEnum; +export declare function PostingErrorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingErrorTypeEnum; +export declare function PostingErrorTypeEnumToJSON(value?: PostingErrorTypeEnum | null): any; diff --git a/dist/esm/models/PostingErrorTypeEnum.js b/dist/esm/models/PostingErrorTypeEnum.js new file mode 100644 index 0000000..d6fd238 --- /dev/null +++ b/dist/esm/models/PostingErrorTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `UNSPECIFIED` — не указан; + * - `SELLER_CANCELLATION` — отмена по вине продавца; + * - `SELLER_DELAY` — просрочка по вине продавца. + * + * @export + */ +export const PostingErrorTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SELLER_CANCELLATION: 'SELLER_CANCELLATION', + SELLER_DELAY: 'SELLER_DELAY' +}; +export function instanceOfPostingErrorTypeEnum(value) { + for (const key in PostingErrorTypeEnum) { + if (Object.prototype.hasOwnProperty.call(PostingErrorTypeEnum, key)) { + if (PostingErrorTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PostingErrorTypeEnumFromJSON(json) { + return PostingErrorTypeEnumFromJSONTyped(json, false); +} +export function PostingErrorTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PostingErrorTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PostingExemplarInfoExemplarError.d.ts b/dist/esm/models/PostingExemplarInfoExemplarError.d.ts new file mode 100644 index 0000000..177fc67 --- /dev/null +++ b/dist/esm/models/PostingExemplarInfoExemplarError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingExemplarInfoExemplarError + */ +export interface PostingExemplarInfoExemplarError { + /** + * Значение кода цифрового товара. + * @type {string} + * @memberof PostingExemplarInfoExemplarError + */ + key?: string; + /** + * Текст ошибки. + * @type {string} + * @memberof PostingExemplarInfoExemplarError + */ + message?: string; +} +/** + * Check if a given object implements the PostingExemplarInfoExemplarError interface. + */ +export declare function instanceOfPostingExemplarInfoExemplarError(value: object): value is PostingExemplarInfoExemplarError; +export declare function PostingExemplarInfoExemplarErrorFromJSON(json: any): PostingExemplarInfoExemplarError; +export declare function PostingExemplarInfoExemplarErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingExemplarInfoExemplarError; +export declare function PostingExemplarInfoExemplarErrorToJSON(value?: PostingExemplarInfoExemplarError | null): any; diff --git a/dist/esm/models/PostingExemplarInfoExemplarError.js b/dist/esm/models/PostingExemplarInfoExemplarError.js new file mode 100644 index 0000000..653131a --- /dev/null +++ b/dist/esm/models/PostingExemplarInfoExemplarError.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingExemplarInfoExemplarError interface. + */ +export function instanceOfPostingExemplarInfoExemplarError(value) { + return true; +} +export function PostingExemplarInfoExemplarErrorFromJSON(json) { + return PostingExemplarInfoExemplarErrorFromJSONTyped(json, false); +} +export function PostingExemplarInfoExemplarErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function PostingExemplarInfoExemplarErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/PostingFBSActCheckStatusResponseStatus.d.ts b/dist/esm/models/PostingFBSActCheckStatusResponseStatus.d.ts new file mode 100644 index 0000000..7155af2 --- /dev/null +++ b/dist/esm/models/PostingFBSActCheckStatusResponseStatus.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface PostingFBSActCheckStatusResponseStatus + */ +export interface PostingFBSActCheckStatusResponseStatus { + /** + * Тип документов. + * + * @type {string} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + act_type?: string; + /** + * Массив c номерами отправлений, которые добавлены в перевозку. Эти отправления нужно передать сегодня. + * @type {Array} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + added_to_act?: Array; + /** + * Массив с номерами отправлений, которые не попали в перевозку. Такие отправления нужно передавать со следующей отгрузкой. + * @type {Array} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + removed_from_act?: Array; + /** + * Статус запроса: + * - `in_process` — документы формируются, нужно подождать. + * - `ready` — документы сформированы и готовы для скачивания. + * - `error` — произошла ошибка при формировании документов, запросите документы повторно. + * - `cancelled` — создание документов отменено, запросите их повторно. + * - `The next postings aren't ready` — произошла ошибка, отправления не включены в отгрузку. Подождите некоторое время и проверьте результат запроса. Если ошибка повторяется, обратитесь в службу поддержки. + * + * @type {string} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + status?: string; + /** + * Признак частичной перевозки. `true`, если перевозка частичная. + * + * Частичная перевозка значит, что отгрузка была разделена на несколько частей. + * + * @type {boolean} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + is_partial?: boolean; + /** + * `true`, если есть отправления, не попавшие в текущую перевозку, но которые нужно отгрузить. + * + * Если в ответе вернулось `true`, подтвердите отгрузку или создайте новый акт через метод [/v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate) и проверьте их статус. Повторяйте действия, пока в ответе не вернётся `false`. + * + * @type {boolean} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + has_postings_for_next_carriage?: boolean; + /** + * Порядковый номер частичной перевозки. + * @type {number} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + partial_num?: number; +} +/** + * Check if a given object implements the PostingFBSActCheckStatusResponseStatus interface. + */ +export declare function instanceOfPostingFBSActCheckStatusResponseStatus(value: object): value is PostingFBSActCheckStatusResponseStatus; +export declare function PostingFBSActCheckStatusResponseStatusFromJSON(json: any): PostingFBSActCheckStatusResponseStatus; +export declare function PostingFBSActCheckStatusResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFBSActCheckStatusResponseStatus; +export declare function PostingFBSActCheckStatusResponseStatusToJSON(value?: PostingFBSActCheckStatusResponseStatus | null): any; diff --git a/dist/esm/models/PostingFBSActCheckStatusResponseStatus.js b/dist/esm/models/PostingFBSActCheckStatusResponseStatus.js new file mode 100644 index 0000000..7e63f5f --- /dev/null +++ b/dist/esm/models/PostingFBSActCheckStatusResponseStatus.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFBSActCheckStatusResponseStatus interface. + */ +export function instanceOfPostingFBSActCheckStatusResponseStatus(value) { + return true; +} +export function PostingFBSActCheckStatusResponseStatusFromJSON(json) { + return PostingFBSActCheckStatusResponseStatusFromJSONTyped(json, false); +} +export function PostingFBSActCheckStatusResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_type': json['act_type'] == null ? undefined : json['act_type'], + 'added_to_act': json['added_to_act'] == null ? undefined : json['added_to_act'], + 'removed_from_act': json['removed_from_act'] == null ? undefined : json['removed_from_act'], + 'status': json['status'] == null ? undefined : json['status'], + 'is_partial': json['is_partial'] == null ? undefined : json['is_partial'], + 'has_postings_for_next_carriage': json['has_postings_for_next_carriage'] == null ? undefined : json['has_postings_for_next_carriage'], + 'partial_num': json['partial_num'] == null ? undefined : json['partial_num'], + }; +} +export function PostingFBSActCheckStatusResponseStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_type': value['act_type'], + 'added_to_act': value['added_to_act'], + 'removed_from_act': value['removed_from_act'], + 'status': value['status'], + 'is_partial': value['is_partial'], + 'has_postings_for_next_carriage': value['has_postings_for_next_carriage'], + 'partial_num': value['partial_num'], + }; +} diff --git a/dist/esm/models/PostingFBSActCreateResponseAct.d.ts b/dist/esm/models/PostingFBSActCreateResponseAct.d.ts new file mode 100644 index 0000000..a7057a7 --- /dev/null +++ b/dist/esm/models/PostingFBSActCreateResponseAct.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface PostingFBSActCreateResponseAct + */ +export interface PostingFBSActCreateResponseAct { + /** + * Номер задания на формирование штрихкода и документов. + * @type {number} + * @memberof PostingFBSActCreateResponseAct + */ + id?: number; +} +/** + * Check if a given object implements the PostingFBSActCreateResponseAct interface. + */ +export declare function instanceOfPostingFBSActCreateResponseAct(value: object): value is PostingFBSActCreateResponseAct; +export declare function PostingFBSActCreateResponseActFromJSON(json: any): PostingFBSActCreateResponseAct; +export declare function PostingFBSActCreateResponseActFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFBSActCreateResponseAct; +export declare function PostingFBSActCreateResponseActToJSON(value?: PostingFBSActCreateResponseAct | null): any; diff --git a/dist/esm/models/PostingFBSActCreateResponseAct.js b/dist/esm/models/PostingFBSActCreateResponseAct.js new file mode 100644 index 0000000..35e9385 --- /dev/null +++ b/dist/esm/models/PostingFBSActCreateResponseAct.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFBSActCreateResponseAct interface. + */ +export function instanceOfPostingFBSActCreateResponseAct(value) { + return true; +} +export function PostingFBSActCreateResponseActFromJSON(json) { + return PostingFBSActCreateResponseActFromJSONTyped(json, false); +} +export function PostingFBSActCreateResponseActFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + }; +} +export function PostingFBSActCreateResponseActToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/PostingFboPostingWithParams.d.ts b/dist/esm/models/PostingFboPostingWithParams.d.ts new file mode 100644 index 0000000..381eeaa --- /dev/null +++ b/dist/esm/models/PostingFboPostingWithParams.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingFboPostingWithParams + */ +export interface PostingFboPostingWithParams { + /** + * Передайте `true`, чтобы добавить в ответ данные аналитики. + * @type {boolean} + * @memberof PostingFboPostingWithParams + */ + analytics_data?: boolean; + /** + * Передайте `true`, чтобы добавить в ответ финансовые данные. + * @type {boolean} + * @memberof PostingFboPostingWithParams + */ + financial_data?: boolean; + /** + * Передайте `true`, чтобы добавить в ответ юридическую информацию. + * @type {boolean} + * @memberof PostingFboPostingWithParams + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingFboPostingWithParams interface. + */ +export declare function instanceOfPostingFboPostingWithParams(value: object): value is PostingFboPostingWithParams; +export declare function PostingFboPostingWithParamsFromJSON(json: any): PostingFboPostingWithParams; +export declare function PostingFboPostingWithParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFboPostingWithParams; +export declare function PostingFboPostingWithParamsToJSON(value?: PostingFboPostingWithParams | null): any; diff --git a/dist/esm/models/PostingFboPostingWithParams.js b/dist/esm/models/PostingFboPostingWithParams.js new file mode 100644 index 0000000..95b6f25 --- /dev/null +++ b/dist/esm/models/PostingFboPostingWithParams.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFboPostingWithParams interface. + */ +export function instanceOfPostingFboPostingWithParams(value) { + return true; +} +export function PostingFboPostingWithParamsFromJSON(json) { + return PostingFboPostingWithParamsFromJSONTyped(json, false); +} +export function PostingFboPostingWithParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +export function PostingFboPostingWithParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/esm/models/PostingFbsPostingDeliveredRequest.d.ts b/dist/esm/models/PostingFbsPostingDeliveredRequest.d.ts new file mode 100644 index 0000000..e3317be --- /dev/null +++ b/dist/esm/models/PostingFbsPostingDeliveredRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFbsPostingDeliveredRequest + */ +export interface PostingFbsPostingDeliveredRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingFbsPostingDeliveredRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingFbsPostingDeliveredRequest interface. + */ +export declare function instanceOfPostingFbsPostingDeliveredRequest(value: object): value is PostingFbsPostingDeliveredRequest; +export declare function PostingFbsPostingDeliveredRequestFromJSON(json: any): PostingFbsPostingDeliveredRequest; +export declare function PostingFbsPostingDeliveredRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingDeliveredRequest; +export declare function PostingFbsPostingDeliveredRequestToJSON(value?: PostingFbsPostingDeliveredRequest | null): any; diff --git a/dist/esm/models/PostingFbsPostingDeliveredRequest.js b/dist/esm/models/PostingFbsPostingDeliveredRequest.js new file mode 100644 index 0000000..eef5e54 --- /dev/null +++ b/dist/esm/models/PostingFbsPostingDeliveredRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFbsPostingDeliveredRequest interface. + */ +export function instanceOfPostingFbsPostingDeliveredRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingFbsPostingDeliveredRequestFromJSON(json) { + return PostingFbsPostingDeliveredRequestFromJSONTyped(json, false); +} +export function PostingFbsPostingDeliveredRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function PostingFbsPostingDeliveredRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/PostingFbsPostingDeliveringRequest.d.ts b/dist/esm/models/PostingFbsPostingDeliveringRequest.d.ts new file mode 100644 index 0000000..016269f --- /dev/null +++ b/dist/esm/models/PostingFbsPostingDeliveringRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFbsPostingDeliveringRequest + */ +export interface PostingFbsPostingDeliveringRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingFbsPostingDeliveringRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingFbsPostingDeliveringRequest interface. + */ +export declare function instanceOfPostingFbsPostingDeliveringRequest(value: object): value is PostingFbsPostingDeliveringRequest; +export declare function PostingFbsPostingDeliveringRequestFromJSON(json: any): PostingFbsPostingDeliveringRequest; +export declare function PostingFbsPostingDeliveringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingDeliveringRequest; +export declare function PostingFbsPostingDeliveringRequestToJSON(value?: PostingFbsPostingDeliveringRequest | null): any; diff --git a/dist/esm/models/PostingFbsPostingDeliveringRequest.js b/dist/esm/models/PostingFbsPostingDeliveringRequest.js new file mode 100644 index 0000000..0d56e7a --- /dev/null +++ b/dist/esm/models/PostingFbsPostingDeliveringRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFbsPostingDeliveringRequest interface. + */ +export function instanceOfPostingFbsPostingDeliveringRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingFbsPostingDeliveringRequestFromJSON(json) { + return PostingFbsPostingDeliveringRequestFromJSONTyped(json, false); +} +export function PostingFbsPostingDeliveringRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function PostingFbsPostingDeliveringRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/PostingFbsPostingLastMileRequest.d.ts b/dist/esm/models/PostingFbsPostingLastMileRequest.d.ts new file mode 100644 index 0000000..88e8219 --- /dev/null +++ b/dist/esm/models/PostingFbsPostingLastMileRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFbsPostingLastMileRequest + */ +export interface PostingFbsPostingLastMileRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingFbsPostingLastMileRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingFbsPostingLastMileRequest interface. + */ +export declare function instanceOfPostingFbsPostingLastMileRequest(value: object): value is PostingFbsPostingLastMileRequest; +export declare function PostingFbsPostingLastMileRequestFromJSON(json: any): PostingFbsPostingLastMileRequest; +export declare function PostingFbsPostingLastMileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingLastMileRequest; +export declare function PostingFbsPostingLastMileRequestToJSON(value?: PostingFbsPostingLastMileRequest | null): any; diff --git a/dist/esm/models/PostingFbsPostingLastMileRequest.js b/dist/esm/models/PostingFbsPostingLastMileRequest.js new file mode 100644 index 0000000..ec3f96d --- /dev/null +++ b/dist/esm/models/PostingFbsPostingLastMileRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFbsPostingLastMileRequest interface. + */ +export function instanceOfPostingFbsPostingLastMileRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingFbsPostingLastMileRequestFromJSON(json) { + return PostingFbsPostingLastMileRequestFromJSONTyped(json, false); +} +export function PostingFbsPostingLastMileRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function PostingFbsPostingLastMileRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/PostingFbsPostingMoveStatusResponse.d.ts b/dist/esm/models/PostingFbsPostingMoveStatusResponse.d.ts new file mode 100644 index 0000000..e6b8d46 --- /dev/null +++ b/dist/esm/models/PostingFbsPostingMoveStatusResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingMoveStatusResponseMoveStatus } from './FbsPostingMoveStatusResponseMoveStatus'; +/** + * + * @export + * @interface PostingFbsPostingMoveStatusResponse + */ +export interface PostingFbsPostingMoveStatusResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof PostingFbsPostingMoveStatusResponse + */ + result?: Array; +} +/** + * Check if a given object implements the PostingFbsPostingMoveStatusResponse interface. + */ +export declare function instanceOfPostingFbsPostingMoveStatusResponse(value: object): value is PostingFbsPostingMoveStatusResponse; +export declare function PostingFbsPostingMoveStatusResponseFromJSON(json: any): PostingFbsPostingMoveStatusResponse; +export declare function PostingFbsPostingMoveStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingMoveStatusResponse; +export declare function PostingFbsPostingMoveStatusResponseToJSON(value?: PostingFbsPostingMoveStatusResponse | null): any; diff --git a/dist/esm/models/PostingFbsPostingMoveStatusResponse.js b/dist/esm/models/PostingFbsPostingMoveStatusResponse.js new file mode 100644 index 0000000..a92ebc1 --- /dev/null +++ b/dist/esm/models/PostingFbsPostingMoveStatusResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbsPostingMoveStatusResponseMoveStatusFromJSON, FbsPostingMoveStatusResponseMoveStatusToJSON, } from './FbsPostingMoveStatusResponseMoveStatus'; +/** + * Check if a given object implements the PostingFbsPostingMoveStatusResponse interface. + */ +export function instanceOfPostingFbsPostingMoveStatusResponse(value) { + return true; +} +export function PostingFbsPostingMoveStatusResponseFromJSON(json) { + return PostingFbsPostingMoveStatusResponseFromJSONTyped(json, false); +} +export function PostingFbsPostingMoveStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(FbsPostingMoveStatusResponseMoveStatusFromJSON)), + }; +} +export function PostingFbsPostingMoveStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(FbsPostingMoveStatusResponseMoveStatusToJSON)), + }; +} diff --git a/dist/esm/models/PostingFbsPostingTrackingNumberSetRequest.d.ts b/dist/esm/models/PostingFbsPostingTrackingNumberSetRequest.d.ts new file mode 100644 index 0000000..2acd3a5 --- /dev/null +++ b/dist/esm/models/PostingFbsPostingTrackingNumberSetRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingTrackingNumberSetRequestTrackingNumber } from './FbsPostingTrackingNumberSetRequestTrackingNumber'; +/** + * + * @export + * @interface PostingFbsPostingTrackingNumberSetRequest + */ +export interface PostingFbsPostingTrackingNumberSetRequest { + /** + * Массив с парами идентификатор отправления — трек-номер. + * @type {Array} + * @memberof PostingFbsPostingTrackingNumberSetRequest + */ + tracking_numbers: Array; +} +/** + * Check if a given object implements the PostingFbsPostingTrackingNumberSetRequest interface. + */ +export declare function instanceOfPostingFbsPostingTrackingNumberSetRequest(value: object): value is PostingFbsPostingTrackingNumberSetRequest; +export declare function PostingFbsPostingTrackingNumberSetRequestFromJSON(json: any): PostingFbsPostingTrackingNumberSetRequest; +export declare function PostingFbsPostingTrackingNumberSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingTrackingNumberSetRequest; +export declare function PostingFbsPostingTrackingNumberSetRequestToJSON(value?: PostingFbsPostingTrackingNumberSetRequest | null): any; diff --git a/dist/esm/models/PostingFbsPostingTrackingNumberSetRequest.js b/dist/esm/models/PostingFbsPostingTrackingNumberSetRequest.js new file mode 100644 index 0000000..abd30e6 --- /dev/null +++ b/dist/esm/models/PostingFbsPostingTrackingNumberSetRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON, FbsPostingTrackingNumberSetRequestTrackingNumberToJSON, } from './FbsPostingTrackingNumberSetRequestTrackingNumber'; +/** + * Check if a given object implements the PostingFbsPostingTrackingNumberSetRequest interface. + */ +export function instanceOfPostingFbsPostingTrackingNumberSetRequest(value) { + if (!('tracking_numbers' in value) || value['tracking_numbers'] === undefined) + return false; + return true; +} +export function PostingFbsPostingTrackingNumberSetRequestFromJSON(json) { + return PostingFbsPostingTrackingNumberSetRequestFromJSONTyped(json, false); +} +export function PostingFbsPostingTrackingNumberSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tracking_numbers': (json['tracking_numbers'].map(FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON)), + }; +} +export function PostingFbsPostingTrackingNumberSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'tracking_numbers': (value['tracking_numbers'].map(FbsPostingTrackingNumberSetRequestTrackingNumberToJSON)), + }; +} diff --git a/dist/esm/models/PostingFbsTraceableSplitResponsePostingProduct.d.ts b/dist/esm/models/PostingFbsTraceableSplitResponsePostingProduct.d.ts new file mode 100644 index 0000000..f5ad756 --- /dev/null +++ b/dist/esm/models/PostingFbsTraceableSplitResponsePostingProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFbsTraceableSplitResponsePostingProduct + */ +export interface PostingFbsTraceableSplitResponsePostingProduct { + /** + * Количество. + * @type {number} + * @memberof PostingFbsTraceableSplitResponsePostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingFbsTraceableSplitResponsePostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the PostingFbsTraceableSplitResponsePostingProduct interface. + */ +export declare function instanceOfPostingFbsTraceableSplitResponsePostingProduct(value: object): value is PostingFbsTraceableSplitResponsePostingProduct; +export declare function PostingFbsTraceableSplitResponsePostingProductFromJSON(json: any): PostingFbsTraceableSplitResponsePostingProduct; +export declare function PostingFbsTraceableSplitResponsePostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsTraceableSplitResponsePostingProduct; +export declare function PostingFbsTraceableSplitResponsePostingProductToJSON(value?: PostingFbsTraceableSplitResponsePostingProduct | null): any; diff --git a/dist/esm/models/PostingFbsTraceableSplitResponsePostingProduct.js b/dist/esm/models/PostingFbsTraceableSplitResponsePostingProduct.js new file mode 100644 index 0000000..1547b2e --- /dev/null +++ b/dist/esm/models/PostingFbsTraceableSplitResponsePostingProduct.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFbsTraceableSplitResponsePostingProduct interface. + */ +export function instanceOfPostingFbsTraceableSplitResponsePostingProduct(value) { + return true; +} +export function PostingFbsTraceableSplitResponsePostingProductFromJSON(json) { + return PostingFbsTraceableSplitResponsePostingProductFromJSONTyped(json, false); +} +export function PostingFbsTraceableSplitResponsePostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function PostingFbsTraceableSplitResponsePostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/PostingFinancialDataProduct.d.ts b/dist/esm/models/PostingFinancialDataProduct.d.ts new file mode 100644 index 0000000..92e83cf --- /dev/null +++ b/dist/esm/models/PostingFinancialDataProduct.d.ts @@ -0,0 +1,118 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFinancialDataProduct + */ +export interface PostingFinancialDataProduct { + /** + * Список акций. + * @type {Array} + * @memberof PostingFinancialDataProduct + */ + actions?: Array; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof PostingFinancialDataProduct + */ + currency_code?: string; + /** + * Код валюты покупателя. + * @type {string} + * @memberof PostingFinancialDataProduct + */ + customer_currency_code?: string; + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + commission_amount?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + commission_percent?: number; + /** + * Код валюты, в которой рассчитывались комиссии. + * @type {string} + * @memberof PostingFinancialDataProduct + */ + commissions_currency_code?: string; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + price?: number; + /** + * Цена товара для покупателя с учётом скидок продавца и Ozon. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + customer_price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + product_id?: number; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingFinancialDataProduct interface. + */ +export declare function instanceOfPostingFinancialDataProduct(value: object): value is PostingFinancialDataProduct; +export declare function PostingFinancialDataProductFromJSON(json: any): PostingFinancialDataProduct; +export declare function PostingFinancialDataProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFinancialDataProduct; +export declare function PostingFinancialDataProductToJSON(value?: PostingFinancialDataProduct | null): any; diff --git a/dist/esm/models/PostingFinancialDataProduct.js b/dist/esm/models/PostingFinancialDataProduct.js new file mode 100644 index 0000000..83679a3 --- /dev/null +++ b/dist/esm/models/PostingFinancialDataProduct.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFinancialDataProduct interface. + */ +export function instanceOfPostingFinancialDataProduct(value) { + return true; +} +export function PostingFinancialDataProductFromJSON(json) { + return PostingFinancialDataProductFromJSONTyped(json, false); +} +export function PostingFinancialDataProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'customer_currency_code': json['customer_currency_code'] == null ? undefined : json['customer_currency_code'], + 'commission_amount': json['commission_amount'] == null ? undefined : json['commission_amount'], + 'commission_percent': json['commission_percent'] == null ? undefined : json['commission_percent'], + 'commissions_currency_code': json['commissions_currency_code'] == null ? undefined : json['commissions_currency_code'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'customer_price': json['customer_price'] == null ? undefined : json['customer_price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +export function PostingFinancialDataProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'currency_code': value['currency_code'], + 'customer_currency_code': value['customer_currency_code'], + 'commission_amount': value['commission_amount'], + 'commission_percent': value['commission_percent'], + 'commissions_currency_code': value['commissions_currency_code'], + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'customer_price': value['customer_price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/esm/models/PostingFinancialDataProductV2.d.ts b/dist/esm/models/PostingFinancialDataProductV2.d.ts new file mode 100644 index 0000000..94e24d2 --- /dev/null +++ b/dist/esm/models/PostingFinancialDataProductV2.d.ts @@ -0,0 +1,106 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFinancialDataProductV2 + */ +export interface PostingFinancialDataProductV2 { + /** + * Список акций. + * @type {Array} + * @memberof PostingFinancialDataProductV2 + */ + actions?: Array; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof PostingFinancialDataProductV2 + */ + currency_code?: string; + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + commission_amount?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + commission_percent?: number; + /** + * Код валюты, в которой рассчитывались комиссии. + * @type {string} + * @memberof PostingFinancialDataProductV2 + */ + commissions_currency_code?: string; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + product_id?: number; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingFinancialDataProductV2 interface. + */ +export declare function instanceOfPostingFinancialDataProductV2(value: object): value is PostingFinancialDataProductV2; +export declare function PostingFinancialDataProductV2FromJSON(json: any): PostingFinancialDataProductV2; +export declare function PostingFinancialDataProductV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFinancialDataProductV2; +export declare function PostingFinancialDataProductV2ToJSON(value?: PostingFinancialDataProductV2 | null): any; diff --git a/dist/esm/models/PostingFinancialDataProductV2.js b/dist/esm/models/PostingFinancialDataProductV2.js new file mode 100644 index 0000000..caa822b --- /dev/null +++ b/dist/esm/models/PostingFinancialDataProductV2.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingFinancialDataProductV2 interface. + */ +export function instanceOfPostingFinancialDataProductV2(value) { + return true; +} +export function PostingFinancialDataProductV2FromJSON(json) { + return PostingFinancialDataProductV2FromJSONTyped(json, false); +} +export function PostingFinancialDataProductV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'commission_amount': json['commission_amount'] == null ? undefined : json['commission_amount'], + 'commission_percent': json['commission_percent'] == null ? undefined : json['commission_percent'], + 'commissions_currency_code': json['commissions_currency_code'] == null ? undefined : json['commissions_currency_code'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +export function PostingFinancialDataProductV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'currency_code': value['currency_code'], + 'commission_amount': value['commission_amount'], + 'commission_percent': value['commission_percent'], + 'commissions_currency_code': value['commissions_currency_code'], + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/esm/models/PostingGetFboPostingListRequest.d.ts b/dist/esm/models/PostingGetFboPostingListRequest.d.ts new file mode 100644 index 0000000..f7b7d2b --- /dev/null +++ b/dist/esm/models/PostingGetFboPostingListRequest.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFboPostingWithParams } from './PostingFboPostingWithParams'; +import type { PostingGetFboPostingListRequestFilter } from './PostingGetFboPostingListRequestFilter'; +/** + * + * @export + * @interface PostingGetFboPostingListRequest + */ +export interface PostingGetFboPostingListRequest { + /** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @type {string} + * @memberof PostingGetFboPostingListRequest + */ + dir?: string; + /** + * + * @type {PostingGetFboPostingListRequestFilter} + * @memberof PostingGetFboPostingListRequest + */ + filter: PostingGetFboPostingListRequestFilter; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof PostingGetFboPostingListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. Максимальное значение — 20000. + * @type {number} + * @memberof PostingGetFboPostingListRequest + */ + offset?: number; + /** + * Если включена транслитерация адреса из кириллицы в латиницу — `true`. + * @type {boolean} + * @memberof PostingGetFboPostingListRequest + */ + translit?: boolean; + /** + * + * @type {PostingFboPostingWithParams} + * @memberof PostingGetFboPostingListRequest + */ + _with?: PostingFboPostingWithParams; +} +/** + * Check if a given object implements the PostingGetFboPostingListRequest interface. + */ +export declare function instanceOfPostingGetFboPostingListRequest(value: object): value is PostingGetFboPostingListRequest; +export declare function PostingGetFboPostingListRequestFromJSON(json: any): PostingGetFboPostingListRequest; +export declare function PostingGetFboPostingListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingGetFboPostingListRequest; +export declare function PostingGetFboPostingListRequestToJSON(value?: PostingGetFboPostingListRequest | null): any; diff --git a/dist/esm/models/PostingGetFboPostingListRequest.js b/dist/esm/models/PostingGetFboPostingListRequest.js new file mode 100644 index 0000000..430b37a --- /dev/null +++ b/dist/esm/models/PostingGetFboPostingListRequest.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFboPostingWithParamsFromJSON, PostingFboPostingWithParamsToJSON, } from './PostingFboPostingWithParams'; +import { PostingGetFboPostingListRequestFilterFromJSON, PostingGetFboPostingListRequestFilterToJSON, } from './PostingGetFboPostingListRequestFilter'; +/** + * Check if a given object implements the PostingGetFboPostingListRequest interface. + */ +export function instanceOfPostingGetFboPostingListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function PostingGetFboPostingListRequestFromJSON(json) { + return PostingGetFboPostingListRequestFromJSONTyped(json, false); +} +export function PostingGetFboPostingListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dir': json['dir'] == null ? undefined : json['dir'], + 'filter': PostingGetFboPostingListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : PostingFboPostingWithParamsFromJSON(json['with']), + }; +} +export function PostingGetFboPostingListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'dir': value['dir'], + 'filter': PostingGetFboPostingListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'translit': value['translit'], + 'with': PostingFboPostingWithParamsToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/PostingGetFboPostingListRequestFilter.d.ts b/dist/esm/models/PostingGetFboPostingListRequestFilter.d.ts new file mode 100644 index 0000000..d0735bf --- /dev/null +++ b/dist/esm/models/PostingGetFboPostingListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface PostingGetFboPostingListRequestFilter + */ +export interface PostingGetFboPostingListRequestFilter { + /** + * Начало периода. + * @type {string} + * @memberof PostingGetFboPostingListRequestFilter + */ + since: string; + /** + * Статус отправления. + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_deliver` — ожидает отгрузки, + * - `delivering` — доставляется, + * - `delivered` — доставлено, + * - `cancelled` — отменено. + * + * @type {string} + * @memberof PostingGetFboPostingListRequestFilter + */ + status?: string; + /** + * Конец периода. + * @type {string} + * @memberof PostingGetFboPostingListRequestFilter + */ + to: string; +} +/** + * Check if a given object implements the PostingGetFboPostingListRequestFilter interface. + */ +export declare function instanceOfPostingGetFboPostingListRequestFilter(value: object): value is PostingGetFboPostingListRequestFilter; +export declare function PostingGetFboPostingListRequestFilterFromJSON(json: any): PostingGetFboPostingListRequestFilter; +export declare function PostingGetFboPostingListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingGetFboPostingListRequestFilter; +export declare function PostingGetFboPostingListRequestFilterToJSON(value?: PostingGetFboPostingListRequestFilter | null): any; diff --git a/dist/esm/models/PostingGetFboPostingListRequestFilter.js b/dist/esm/models/PostingGetFboPostingListRequestFilter.js new file mode 100644 index 0000000..54409a0 --- /dev/null +++ b/dist/esm/models/PostingGetFboPostingListRequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingGetFboPostingListRequestFilter interface. + */ +export function instanceOfPostingGetFboPostingListRequestFilter(value) { + if (!('since' in value) || value['since'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function PostingGetFboPostingListRequestFilterFromJSON(json) { + return PostingGetFboPostingListRequestFilterFromJSONTyped(json, false); +} +export function PostingGetFboPostingListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'since': json['since'], + 'status': json['status'] == null ? undefined : json['status'], + 'to': json['to'], + }; +} +export function PostingGetFboPostingListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'since': value['since'], + 'status': value['status'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/PostingGetFboPostingRequest.d.ts b/dist/esm/models/PostingGetFboPostingRequest.d.ts new file mode 100644 index 0000000..e568bf5 --- /dev/null +++ b/dist/esm/models/PostingGetFboPostingRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFboPostingWithParams } from './PostingFboPostingWithParams'; +/** + * + * @export + * @interface PostingGetFboPostingRequest + */ +export interface PostingGetFboPostingRequest { + /** + * Номер отправления. + * @type {string} + * @memberof PostingGetFboPostingRequest + */ + posting_number: string; + /** + * Если включена транслитерация адреса из кириллицы в латиницу — `true`. + * @type {boolean} + * @memberof PostingGetFboPostingRequest + */ + translit?: boolean; + /** + * + * @type {PostingFboPostingWithParams} + * @memberof PostingGetFboPostingRequest + */ + _with?: PostingFboPostingWithParams; +} +/** + * Check if a given object implements the PostingGetFboPostingRequest interface. + */ +export declare function instanceOfPostingGetFboPostingRequest(value: object): value is PostingGetFboPostingRequest; +export declare function PostingGetFboPostingRequestFromJSON(json: any): PostingGetFboPostingRequest; +export declare function PostingGetFboPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingGetFboPostingRequest; +export declare function PostingGetFboPostingRequestToJSON(value?: PostingGetFboPostingRequest | null): any; diff --git a/dist/esm/models/PostingGetFboPostingRequest.js b/dist/esm/models/PostingGetFboPostingRequest.js new file mode 100644 index 0000000..988d7c5 --- /dev/null +++ b/dist/esm/models/PostingGetFboPostingRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFboPostingWithParamsFromJSON, PostingFboPostingWithParamsToJSON, } from './PostingFboPostingWithParams'; +/** + * Check if a given object implements the PostingGetFboPostingRequest interface. + */ +export function instanceOfPostingGetFboPostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingGetFboPostingRequestFromJSON(json) { + return PostingGetFboPostingRequestFromJSONTyped(json, false); +} +export function PostingGetFboPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : PostingFboPostingWithParamsFromJSON(json['with']), + }; +} +export function PostingGetFboPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'translit': value['translit'], + 'with': PostingFboPostingWithParamsToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/PostingGetFbsPostingByBarcodeRequest.d.ts b/dist/esm/models/PostingGetFbsPostingByBarcodeRequest.d.ts new file mode 100644 index 0000000..7861bda --- /dev/null +++ b/dist/esm/models/PostingGetFbsPostingByBarcodeRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingGetFbsPostingByBarcodeRequest + */ +export interface PostingGetFbsPostingByBarcodeRequest { + /** + * Штрихкод отправления. Можно получить с помощью методов: [/v3/posting/fbs/get](#operation/PostingAPI_GetFbsPostingV3), [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) и [/v3/posting/fbs/unfulfilled/list](#operation/PostingAPI_GetFbsPostingUnfulfilledList) в массиве `barcodes`. + * + * @type {string} + * @memberof PostingGetFbsPostingByBarcodeRequest + */ + barcode: string; +} +/** + * Check if a given object implements the PostingGetFbsPostingByBarcodeRequest interface. + */ +export declare function instanceOfPostingGetFbsPostingByBarcodeRequest(value: object): value is PostingGetFbsPostingByBarcodeRequest; +export declare function PostingGetFbsPostingByBarcodeRequestFromJSON(json: any): PostingGetFbsPostingByBarcodeRequest; +export declare function PostingGetFbsPostingByBarcodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingGetFbsPostingByBarcodeRequest; +export declare function PostingGetFbsPostingByBarcodeRequestToJSON(value?: PostingGetFbsPostingByBarcodeRequest | null): any; diff --git a/dist/esm/models/PostingGetFbsPostingByBarcodeRequest.js b/dist/esm/models/PostingGetFbsPostingByBarcodeRequest.js new file mode 100644 index 0000000..902be9b --- /dev/null +++ b/dist/esm/models/PostingGetFbsPostingByBarcodeRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingGetFbsPostingByBarcodeRequest interface. + */ +export function instanceOfPostingGetFbsPostingByBarcodeRequest(value) { + if (!('barcode' in value) || value['barcode'] === undefined) + return false; + return true; +} +export function PostingGetFbsPostingByBarcodeRequestFromJSON(json) { + return PostingGetFbsPostingByBarcodeRequestFromJSONTyped(json, false); +} +export function PostingGetFbsPostingByBarcodeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'], + }; +} +export function PostingGetFbsPostingByBarcodeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + }; +} diff --git a/dist/esm/models/PostingLegalInfo.d.ts b/dist/esm/models/PostingLegalInfo.d.ts new file mode 100644 index 0000000..54b33bd --- /dev/null +++ b/dist/esm/models/PostingLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingLegalInfo + */ +export interface PostingLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingLegalInfo interface. + */ +export declare function instanceOfPostingLegalInfo(value: object): value is PostingLegalInfo; +export declare function PostingLegalInfoFromJSON(json: any): PostingLegalInfo; +export declare function PostingLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingLegalInfo; +export declare function PostingLegalInfoToJSON(value?: PostingLegalInfo | null): any; diff --git a/dist/esm/models/PostingLegalInfo.js b/dist/esm/models/PostingLegalInfo.js new file mode 100644 index 0000000..d83bc39 --- /dev/null +++ b/dist/esm/models/PostingLegalInfo.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingLegalInfo interface. + */ +export function instanceOfPostingLegalInfo(value) { + return true; +} +export function PostingLegalInfoFromJSON(json) { + return PostingLegalInfoFromJSONTyped(json, false); +} +export function PostingLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +export function PostingLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/esm/models/PostingMarksResponseIssuedExemplar.d.ts b/dist/esm/models/PostingMarksResponseIssuedExemplar.d.ts new file mode 100644 index 0000000..6216300 --- /dev/null +++ b/dist/esm/models/PostingMarksResponseIssuedExemplar.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingMarksResponseIssuedExemplar + */ +export interface PostingMarksResponseIssuedExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof PostingMarksResponseIssuedExemplar + */ + exemplar_id?: number; + /** + * Cписок маркировок выданных покупателям экземпляров. + * @type {Array} + * @memberof PostingMarksResponseIssuedExemplar + */ + mandatory_marks?: Array; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingMarksResponseIssuedExemplar + */ + posting_number?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingMarksResponseIssuedExemplar + */ + sku?: number; +} +/** + * Check if a given object implements the PostingMarksResponseIssuedExemplar interface. + */ +export declare function instanceOfPostingMarksResponseIssuedExemplar(value: object): value is PostingMarksResponseIssuedExemplar; +export declare function PostingMarksResponseIssuedExemplarFromJSON(json: any): PostingMarksResponseIssuedExemplar; +export declare function PostingMarksResponseIssuedExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingMarksResponseIssuedExemplar; +export declare function PostingMarksResponseIssuedExemplarToJSON(value?: PostingMarksResponseIssuedExemplar | null): any; diff --git a/dist/esm/models/PostingMarksResponseIssuedExemplar.js b/dist/esm/models/PostingMarksResponseIssuedExemplar.js new file mode 100644 index 0000000..3ea4217 --- /dev/null +++ b/dist/esm/models/PostingMarksResponseIssuedExemplar.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingMarksResponseIssuedExemplar interface. + */ +export function instanceOfPostingMarksResponseIssuedExemplar(value) { + return true; +} +export function PostingMarksResponseIssuedExemplarFromJSON(json) { + return PostingMarksResponseIssuedExemplarFromJSONTyped(json, false); +} +export function PostingMarksResponseIssuedExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'mandatory_marks': json['mandatory_marks'] == null ? undefined : json['mandatory_marks'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function PostingMarksResponseIssuedExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'mandatory_marks': value['mandatory_marks'], + 'posting_number': value['posting_number'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/PostingMarksResponseNonIssuedExemplar.d.ts b/dist/esm/models/PostingMarksResponseNonIssuedExemplar.d.ts new file mode 100644 index 0000000..f493186 --- /dev/null +++ b/dist/esm/models/PostingMarksResponseNonIssuedExemplar.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingMarksResponseNonIssuedExemplar + */ +export interface PostingMarksResponseNonIssuedExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof PostingMarksResponseNonIssuedExemplar + */ + exemplar_id?: number; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingMarksResponseNonIssuedExemplar + */ + posting_number?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingMarksResponseNonIssuedExemplar + */ + sku?: number; +} +/** + * Check if a given object implements the PostingMarksResponseNonIssuedExemplar interface. + */ +export declare function instanceOfPostingMarksResponseNonIssuedExemplar(value: object): value is PostingMarksResponseNonIssuedExemplar; +export declare function PostingMarksResponseNonIssuedExemplarFromJSON(json: any): PostingMarksResponseNonIssuedExemplar; +export declare function PostingMarksResponseNonIssuedExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingMarksResponseNonIssuedExemplar; +export declare function PostingMarksResponseNonIssuedExemplarToJSON(value?: PostingMarksResponseNonIssuedExemplar | null): any; diff --git a/dist/esm/models/PostingMarksResponseNonIssuedExemplar.js b/dist/esm/models/PostingMarksResponseNonIssuedExemplar.js new file mode 100644 index 0000000..1f49fb7 --- /dev/null +++ b/dist/esm/models/PostingMarksResponseNonIssuedExemplar.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingMarksResponseNonIssuedExemplar interface. + */ +export function instanceOfPostingMarksResponseNonIssuedExemplar(value) { + return true; +} +export function PostingMarksResponseNonIssuedExemplarFromJSON(json) { + return PostingMarksResponseNonIssuedExemplarFromJSONTyped(json, false); +} +export function PostingMarksResponseNonIssuedExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function PostingMarksResponseNonIssuedExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'posting_number': value['posting_number'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/PostingMovePostingRequest.d.ts b/dist/esm/models/PostingMovePostingRequest.d.ts new file mode 100644 index 0000000..8515b27 --- /dev/null +++ b/dist/esm/models/PostingMovePostingRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingMovePostingRequest + */ +export interface PostingMovePostingRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingMovePostingRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingMovePostingRequest interface. + */ +export declare function instanceOfPostingMovePostingRequest(value: object): value is PostingMovePostingRequest; +export declare function PostingMovePostingRequestFromJSON(json: any): PostingMovePostingRequest; +export declare function PostingMovePostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingMovePostingRequest; +export declare function PostingMovePostingRequestToJSON(value?: PostingMovePostingRequest | null): any; diff --git a/dist/esm/models/PostingMovePostingRequest.js b/dist/esm/models/PostingMovePostingRequest.js new file mode 100644 index 0000000..f003e24 --- /dev/null +++ b/dist/esm/models/PostingMovePostingRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingMovePostingRequest interface. + */ +export function instanceOfPostingMovePostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingMovePostingRequestFromJSON(json) { + return PostingMovePostingRequestFromJSONTyped(json, false); +} +export function PostingMovePostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function PostingMovePostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/PostingPostingAnalyticsData.d.ts b/dist/esm/models/PostingPostingAnalyticsData.d.ts new file mode 100644 index 0000000..b08a779 --- /dev/null +++ b/dist/esm/models/PostingPostingAnalyticsData.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingPostingAnalyticsData + */ +export interface PostingPostingAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + city?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + delivery_type?: string; + /** + * Признак, что получатель юридическое лицо: + * - `true` — юридическое лицо, + * - `false` — физическое лицо. + * + * @type {boolean} + * @memberof PostingPostingAnalyticsData + */ + is_legal?: boolean; + /** + * Наличие подписки Premium. + * @type {boolean} + * @memberof PostingPostingAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`, + * - `карта Ozon Банка`, + * - `автосписание с карты Ozon Банка при выдаче`, + * - `сохранённой картой при получении`, + * - `Система Быстрых Платежей`, + * - `Ozon Рассрочка`, + * - `оплата на расчётный счёт`, + * - `SberPay`. + * + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + region?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingPostingAnalyticsData + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the PostingPostingAnalyticsData interface. + */ +export declare function instanceOfPostingPostingAnalyticsData(value: object): value is PostingPostingAnalyticsData; +export declare function PostingPostingAnalyticsDataFromJSON(json: any): PostingPostingAnalyticsData; +export declare function PostingPostingAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingAnalyticsData; +export declare function PostingPostingAnalyticsDataToJSON(value?: PostingPostingAnalyticsData | null): any; diff --git a/dist/esm/models/PostingPostingAnalyticsData.js b/dist/esm/models/PostingPostingAnalyticsData.js new file mode 100644 index 0000000..759c2cf --- /dev/null +++ b/dist/esm/models/PostingPostingAnalyticsData.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingAnalyticsData interface. + */ +export function instanceOfPostingPostingAnalyticsData(value) { + return true; +} +export function PostingPostingAnalyticsDataFromJSON(json) { + return PostingPostingAnalyticsDataFromJSONTyped(json, false); +} +export function PostingPostingAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function PostingPostingAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/PostingPostingFBSActCheckStatusRequest.d.ts b/dist/esm/models/PostingPostingFBSActCheckStatusRequest.d.ts new file mode 100644 index 0000000..d7c430e --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActCheckStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSActCheckStatusRequest + */ +export interface PostingPostingFBSActCheckStatusRequest { + /** + * Номер задания на формирование документов (также идентификатор перевозки) из метода [POST /v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate). + * @type {number} + * @memberof PostingPostingFBSActCheckStatusRequest + */ + id: number; +} +/** + * Check if a given object implements the PostingPostingFBSActCheckStatusRequest interface. + */ +export declare function instanceOfPostingPostingFBSActCheckStatusRequest(value: object): value is PostingPostingFBSActCheckStatusRequest; +export declare function PostingPostingFBSActCheckStatusRequestFromJSON(json: any): PostingPostingFBSActCheckStatusRequest; +export declare function PostingPostingFBSActCheckStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActCheckStatusRequest; +export declare function PostingPostingFBSActCheckStatusRequestToJSON(value?: PostingPostingFBSActCheckStatusRequest | null): any; diff --git a/dist/esm/models/PostingPostingFBSActCheckStatusRequest.js b/dist/esm/models/PostingPostingFBSActCheckStatusRequest.js new file mode 100644 index 0000000..330eb33 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActCheckStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingFBSActCheckStatusRequest interface. + */ +export function instanceOfPostingPostingFBSActCheckStatusRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function PostingPostingFBSActCheckStatusRequestFromJSON(json) { + return PostingPostingFBSActCheckStatusRequestFromJSONTyped(json, false); +} +export function PostingPostingFBSActCheckStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +export function PostingPostingFBSActCheckStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/PostingPostingFBSActCheckStatusResponse.d.ts b/dist/esm/models/PostingPostingFBSActCheckStatusResponse.d.ts new file mode 100644 index 0000000..265d272 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActCheckStatusResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFBSActCheckStatusResponseStatus } from './PostingFBSActCheckStatusResponseStatus'; +/** + * + * @export + * @interface PostingPostingFBSActCheckStatusResponse + */ +export interface PostingPostingFBSActCheckStatusResponse { + /** + * + * @type {PostingFBSActCheckStatusResponseStatus} + * @memberof PostingPostingFBSActCheckStatusResponse + */ + result?: PostingFBSActCheckStatusResponseStatus; +} +/** + * Check if a given object implements the PostingPostingFBSActCheckStatusResponse interface. + */ +export declare function instanceOfPostingPostingFBSActCheckStatusResponse(value: object): value is PostingPostingFBSActCheckStatusResponse; +export declare function PostingPostingFBSActCheckStatusResponseFromJSON(json: any): PostingPostingFBSActCheckStatusResponse; +export declare function PostingPostingFBSActCheckStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActCheckStatusResponse; +export declare function PostingPostingFBSActCheckStatusResponseToJSON(value?: PostingPostingFBSActCheckStatusResponse | null): any; diff --git a/dist/esm/models/PostingPostingFBSActCheckStatusResponse.js b/dist/esm/models/PostingPostingFBSActCheckStatusResponse.js new file mode 100644 index 0000000..31e5f40 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActCheckStatusResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFBSActCheckStatusResponseStatusFromJSON, PostingFBSActCheckStatusResponseStatusToJSON, } from './PostingFBSActCheckStatusResponseStatus'; +/** + * Check if a given object implements the PostingPostingFBSActCheckStatusResponse interface. + */ +export function instanceOfPostingPostingFBSActCheckStatusResponse(value) { + return true; +} +export function PostingPostingFBSActCheckStatusResponseFromJSON(json) { + return PostingPostingFBSActCheckStatusResponseFromJSONTyped(json, false); +} +export function PostingPostingFBSActCheckStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : PostingFBSActCheckStatusResponseStatusFromJSON(json['result']), + }; +} +export function PostingPostingFBSActCheckStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': PostingFBSActCheckStatusResponseStatusToJSON(value['result']), + }; +} diff --git a/dist/esm/models/PostingPostingFBSActCreateRequest.d.ts b/dist/esm/models/PostingPostingFBSActCreateRequest.d.ts new file mode 100644 index 0000000..aef2133 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActCreateRequest.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSActCreateRequest + */ +export interface PostingPostingFBSActCreateRequest { + /** + * Количество грузовых мест. + * + * Используйте параметр, если вы подключены к доверительной приёмке и отгружаете заказы грузовыми местами. Если вы не подключены к доверительной приёмке, пропустите его. + * + * [Подробнее в Базе знаний продавца](https://docs.ozon.ru/partners/prodayoa-so-svoego-sklada-fbs/doveritel-naya-priemka-gruzovogo-mesta) + * + * @type {number} + * @memberof PostingPostingFBSActCreateRequest + */ + containers_count?: number; + /** + * Идентификатор метода доставки. Для realFBS-складов получите его с помощью метода [/v2/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodListV2). Для FBS-складов используйте значение параметра `warehouse_id`. Его можно получить с помощью метода [/v2/warehouse/list](#operation/WarehouseListV2). + * @type {number} + * @memberof PostingPostingFBSActCreateRequest + */ + delivery_method_id: number; + /** + * Дата отгрузки. + * @type {string} + * @memberof PostingPostingFBSActCreateRequest + */ + departure_date?: string; +} +/** + * Check if a given object implements the PostingPostingFBSActCreateRequest interface. + */ +export declare function instanceOfPostingPostingFBSActCreateRequest(value: object): value is PostingPostingFBSActCreateRequest; +export declare function PostingPostingFBSActCreateRequestFromJSON(json: any): PostingPostingFBSActCreateRequest; +export declare function PostingPostingFBSActCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActCreateRequest; +export declare function PostingPostingFBSActCreateRequestToJSON(value?: PostingPostingFBSActCreateRequest | null): any; diff --git a/dist/esm/models/PostingPostingFBSActCreateRequest.js b/dist/esm/models/PostingPostingFBSActCreateRequest.js new file mode 100644 index 0000000..8f6f3ae --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActCreateRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingFBSActCreateRequest interface. + */ +export function instanceOfPostingPostingFBSActCreateRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + return true; +} +export function PostingPostingFBSActCreateRequestFromJSON(json) { + return PostingPostingFBSActCreateRequestFromJSONTyped(json, false); +} +export function PostingPostingFBSActCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'containers_count': json['containers_count'] == null ? undefined : json['containers_count'], + 'delivery_method_id': json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +export function PostingPostingFBSActCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'containers_count': value['containers_count'], + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/esm/models/PostingPostingFBSActCreateResponse.d.ts b/dist/esm/models/PostingPostingFBSActCreateResponse.d.ts new file mode 100644 index 0000000..5fb6dd6 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActCreateResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFBSActCreateResponseAct } from './PostingFBSActCreateResponseAct'; +/** + * + * @export + * @interface PostingPostingFBSActCreateResponse + */ +export interface PostingPostingFBSActCreateResponse { + /** + * + * @type {PostingFBSActCreateResponseAct} + * @memberof PostingPostingFBSActCreateResponse + */ + result?: PostingFBSActCreateResponseAct; +} +/** + * Check if a given object implements the PostingPostingFBSActCreateResponse interface. + */ +export declare function instanceOfPostingPostingFBSActCreateResponse(value: object): value is PostingPostingFBSActCreateResponse; +export declare function PostingPostingFBSActCreateResponseFromJSON(json: any): PostingPostingFBSActCreateResponse; +export declare function PostingPostingFBSActCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActCreateResponse; +export declare function PostingPostingFBSActCreateResponseToJSON(value?: PostingPostingFBSActCreateResponse | null): any; diff --git a/dist/esm/models/PostingPostingFBSActCreateResponse.js b/dist/esm/models/PostingPostingFBSActCreateResponse.js new file mode 100644 index 0000000..945a4b0 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActCreateResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFBSActCreateResponseActFromJSON, PostingFBSActCreateResponseActToJSON, } from './PostingFBSActCreateResponseAct'; +/** + * Check if a given object implements the PostingPostingFBSActCreateResponse interface. + */ +export function instanceOfPostingPostingFBSActCreateResponse(value) { + return true; +} +export function PostingPostingFBSActCreateResponseFromJSON(json) { + return PostingPostingFBSActCreateResponseFromJSONTyped(json, false); +} +export function PostingPostingFBSActCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : PostingFBSActCreateResponseActFromJSON(json['result']), + }; +} +export function PostingPostingFBSActCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': PostingFBSActCreateResponseActToJSON(value['result']), + }; +} diff --git a/dist/esm/models/PostingPostingFBSActGetContainerLabelsRequest.d.ts b/dist/esm/models/PostingPostingFBSActGetContainerLabelsRequest.d.ts new file mode 100644 index 0000000..b1d7f8c --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActGetContainerLabelsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSActGetContainerLabelsRequest + */ +export interface PostingPostingFBSActGetContainerLabelsRequest { + /** + * Идентификатор перевозки из метода [/v1/carriage/create](#operation/CarriageAPI_CarriageCreate). + * @type {number} + * @memberof PostingPostingFBSActGetContainerLabelsRequest + */ + id: number; +} +/** + * Check if a given object implements the PostingPostingFBSActGetContainerLabelsRequest interface. + */ +export declare function instanceOfPostingPostingFBSActGetContainerLabelsRequest(value: object): value is PostingPostingFBSActGetContainerLabelsRequest; +export declare function PostingPostingFBSActGetContainerLabelsRequestFromJSON(json: any): PostingPostingFBSActGetContainerLabelsRequest; +export declare function PostingPostingFBSActGetContainerLabelsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActGetContainerLabelsRequest; +export declare function PostingPostingFBSActGetContainerLabelsRequestToJSON(value?: PostingPostingFBSActGetContainerLabelsRequest | null): any; diff --git a/dist/esm/models/PostingPostingFBSActGetContainerLabelsRequest.js b/dist/esm/models/PostingPostingFBSActGetContainerLabelsRequest.js new file mode 100644 index 0000000..bce5bca --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActGetContainerLabelsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingFBSActGetContainerLabelsRequest interface. + */ +export function instanceOfPostingPostingFBSActGetContainerLabelsRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function PostingPostingFBSActGetContainerLabelsRequestFromJSON(json) { + return PostingPostingFBSActGetContainerLabelsRequestFromJSONTyped(json, false); +} +export function PostingPostingFBSActGetContainerLabelsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +export function PostingPostingFBSActGetContainerLabelsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/PostingPostingFBSActGetContainerLabelsResponse.d.ts b/dist/esm/models/PostingPostingFBSActGetContainerLabelsResponse.d.ts new file mode 100644 index 0000000..8e8b76e --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActGetContainerLabelsResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSActGetContainerLabelsResponse + */ +export interface PostingPostingFBSActGetContainerLabelsResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof PostingPostingFBSActGetContainerLabelsResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof PostingPostingFBSActGetContainerLabelsResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof PostingPostingFBSActGetContainerLabelsResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the PostingPostingFBSActGetContainerLabelsResponse interface. + */ +export declare function instanceOfPostingPostingFBSActGetContainerLabelsResponse(value: object): value is PostingPostingFBSActGetContainerLabelsResponse; +export declare function PostingPostingFBSActGetContainerLabelsResponseFromJSON(json: any): PostingPostingFBSActGetContainerLabelsResponse; +export declare function PostingPostingFBSActGetContainerLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActGetContainerLabelsResponse; +export declare function PostingPostingFBSActGetContainerLabelsResponseToJSON(value?: PostingPostingFBSActGetContainerLabelsResponse | null): any; diff --git a/dist/esm/models/PostingPostingFBSActGetContainerLabelsResponse.js b/dist/esm/models/PostingPostingFBSActGetContainerLabelsResponse.js new file mode 100644 index 0000000..c0555cc --- /dev/null +++ b/dist/esm/models/PostingPostingFBSActGetContainerLabelsResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingFBSActGetContainerLabelsResponse interface. + */ +export function instanceOfPostingPostingFBSActGetContainerLabelsResponse(value) { + return true; +} +export function PostingPostingFBSActGetContainerLabelsResponseFromJSON(json) { + return PostingPostingFBSActGetContainerLabelsResponseFromJSONTyped(json, false); +} +export function PostingPostingFBSActGetContainerLabelsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +export function PostingPostingFBSActGetContainerLabelsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/esm/models/PostingPostingFBSGetActRequest.d.ts b/dist/esm/models/PostingPostingFBSGetActRequest.d.ts new file mode 100644 index 0000000..88e617a --- /dev/null +++ b/dist/esm/models/PostingPostingFBSGetActRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSGetActRequest + */ +export interface PostingPostingFBSGetActRequest { + /** + * Номер задания на формирование документов (также идентификатор перевозки) из методов [/v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate) или [/v1/carriage/create](#operation/CarriageAPI_CarriageCreate). + * @type {number} + * @memberof PostingPostingFBSGetActRequest + */ + id: number; +} +/** + * Check if a given object implements the PostingPostingFBSGetActRequest interface. + */ +export declare function instanceOfPostingPostingFBSGetActRequest(value: object): value is PostingPostingFBSGetActRequest; +export declare function PostingPostingFBSGetActRequestFromJSON(json: any): PostingPostingFBSGetActRequest; +export declare function PostingPostingFBSGetActRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSGetActRequest; +export declare function PostingPostingFBSGetActRequestToJSON(value?: PostingPostingFBSGetActRequest | null): any; diff --git a/dist/esm/models/PostingPostingFBSGetActRequest.js b/dist/esm/models/PostingPostingFBSGetActRequest.js new file mode 100644 index 0000000..6dca7ce --- /dev/null +++ b/dist/esm/models/PostingPostingFBSGetActRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingFBSGetActRequest interface. + */ +export function instanceOfPostingPostingFBSGetActRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function PostingPostingFBSGetActRequestFromJSON(json) { + return PostingPostingFBSGetActRequestFromJSONTyped(json, false); +} +export function PostingPostingFBSGetActRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +export function PostingPostingFBSGetActRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/PostingPostingFBSGetActResponse.d.ts b/dist/esm/models/PostingPostingFBSGetActResponse.d.ts new file mode 100644 index 0000000..c655f01 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSGetActResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSGetActResponse + */ +export interface PostingPostingFBSGetActResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof PostingPostingFBSGetActResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof PostingPostingFBSGetActResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof PostingPostingFBSGetActResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the PostingPostingFBSGetActResponse interface. + */ +export declare function instanceOfPostingPostingFBSGetActResponse(value: object): value is PostingPostingFBSGetActResponse; +export declare function PostingPostingFBSGetActResponseFromJSON(json: any): PostingPostingFBSGetActResponse; +export declare function PostingPostingFBSGetActResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSGetActResponse; +export declare function PostingPostingFBSGetActResponseToJSON(value?: PostingPostingFBSGetActResponse | null): any; diff --git a/dist/esm/models/PostingPostingFBSGetActResponse.js b/dist/esm/models/PostingPostingFBSGetActResponse.js new file mode 100644 index 0000000..2203db6 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSGetActResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingFBSGetActResponse interface. + */ +export function instanceOfPostingPostingFBSGetActResponse(value) { + return true; +} +export function PostingPostingFBSGetActResponseFromJSON(json) { + return PostingPostingFBSGetActResponseFromJSONTyped(json, false); +} +export function PostingPostingFBSGetActResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +export function PostingPostingFBSGetActResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/esm/models/PostingPostingFBSPackageLabelRequest.d.ts b/dist/esm/models/PostingPostingFBSPackageLabelRequest.d.ts new file mode 100644 index 0000000..75498f6 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSPackageLabelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSPackageLabelRequest + */ +export interface PostingPostingFBSPackageLabelRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingPostingFBSPackageLabelRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingPostingFBSPackageLabelRequest interface. + */ +export declare function instanceOfPostingPostingFBSPackageLabelRequest(value: object): value is PostingPostingFBSPackageLabelRequest; +export declare function PostingPostingFBSPackageLabelRequestFromJSON(json: any): PostingPostingFBSPackageLabelRequest; +export declare function PostingPostingFBSPackageLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSPackageLabelRequest; +export declare function PostingPostingFBSPackageLabelRequestToJSON(value?: PostingPostingFBSPackageLabelRequest | null): any; diff --git a/dist/esm/models/PostingPostingFBSPackageLabelRequest.js b/dist/esm/models/PostingPostingFBSPackageLabelRequest.js new file mode 100644 index 0000000..2b1d7b2 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSPackageLabelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingFBSPackageLabelRequest interface. + */ +export function instanceOfPostingPostingFBSPackageLabelRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingPostingFBSPackageLabelRequestFromJSON(json) { + return PostingPostingFBSPackageLabelRequestFromJSONTyped(json, false); +} +export function PostingPostingFBSPackageLabelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function PostingPostingFBSPackageLabelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/PostingPostingFBSPackageLabelResponse.d.ts b/dist/esm/models/PostingPostingFBSPackageLabelResponse.d.ts new file mode 100644 index 0000000..bac1560 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSPackageLabelResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSPackageLabelResponse + */ +export interface PostingPostingFBSPackageLabelResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof PostingPostingFBSPackageLabelResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof PostingPostingFBSPackageLabelResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof PostingPostingFBSPackageLabelResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the PostingPostingFBSPackageLabelResponse interface. + */ +export declare function instanceOfPostingPostingFBSPackageLabelResponse(value: object): value is PostingPostingFBSPackageLabelResponse; +export declare function PostingPostingFBSPackageLabelResponseFromJSON(json: any): PostingPostingFBSPackageLabelResponse; +export declare function PostingPostingFBSPackageLabelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSPackageLabelResponse; +export declare function PostingPostingFBSPackageLabelResponseToJSON(value?: PostingPostingFBSPackageLabelResponse | null): any; diff --git a/dist/esm/models/PostingPostingFBSPackageLabelResponse.js b/dist/esm/models/PostingPostingFBSPackageLabelResponse.js new file mode 100644 index 0000000..9cd27c2 --- /dev/null +++ b/dist/esm/models/PostingPostingFBSPackageLabelResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingFBSPackageLabelResponse interface. + */ +export function instanceOfPostingPostingFBSPackageLabelResponse(value) { + return true; +} +export function PostingPostingFBSPackageLabelResponseFromJSON(json) { + return PostingPostingFBSPackageLabelResponseFromJSONTyped(json, false); +} +export function PostingPostingFBSPackageLabelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +export function PostingPostingFBSPackageLabelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/esm/models/PostingPostingFinancialData.d.ts b/dist/esm/models/PostingPostingFinancialData.d.ts new file mode 100644 index 0000000..9e9e3ca --- /dev/null +++ b/dist/esm/models/PostingPostingFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFinancialDataProduct } from './PostingFinancialDataProduct'; +/** + * Финансовые данные. + * @export + * @interface PostingPostingFinancialData + */ +export interface PostingPostingFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingPostingFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingPostingFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingPostingFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingPostingFinancialData interface. + */ +export declare function instanceOfPostingPostingFinancialData(value: object): value is PostingPostingFinancialData; +export declare function PostingPostingFinancialDataFromJSON(json: any): PostingPostingFinancialData; +export declare function PostingPostingFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFinancialData; +export declare function PostingPostingFinancialDataToJSON(value?: PostingPostingFinancialData | null): any; diff --git a/dist/esm/models/PostingPostingFinancialData.js b/dist/esm/models/PostingPostingFinancialData.js new file mode 100644 index 0000000..032594e --- /dev/null +++ b/dist/esm/models/PostingPostingFinancialData.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFinancialDataProductFromJSON, PostingFinancialDataProductToJSON, } from './PostingFinancialDataProduct'; +/** + * Check if a given object implements the PostingPostingFinancialData interface. + */ +export function instanceOfPostingPostingFinancialData(value) { + return true; +} +export function PostingPostingFinancialDataFromJSON(json) { + return PostingPostingFinancialDataFromJSONTyped(json, false); +} +export function PostingPostingFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProductFromJSON)), + }; +} +export function PostingPostingFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProductToJSON)), + }; +} diff --git a/dist/esm/models/PostingPostingProduct.d.ts b/dist/esm/models/PostingPostingProduct.d.ts new file mode 100644 index 0000000..4b62f2a --- /dev/null +++ b/dist/esm/models/PostingPostingProduct.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingProduct + */ +export interface PostingPostingProduct { + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof PostingPostingProduct + */ + currency_code?: string; + /** + * Название товара. + * @type {string} + * @memberof PostingPostingProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingPostingProduct + */ + offer_id?: string; + /** + * Цена товара. + * @type {string} + * @memberof PostingPostingProduct + */ + price?: string; + /** + * Количество кодов цифровых товаров, которое нужно передать по товару в отправлении. Передайте коды цифровых товаров с помощью метода [/v1/posting/digital/codes/upload](#operation/UploadPostingCodes). + * @type {number} + * @memberof PostingPostingProduct + */ + required_qty_for_digital_code?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingPostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the PostingPostingProduct interface. + */ +export declare function instanceOfPostingPostingProduct(value: object): value is PostingPostingProduct; +export declare function PostingPostingProductFromJSON(json: any): PostingPostingProduct; +export declare function PostingPostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingProduct; +export declare function PostingPostingProductToJSON(value?: PostingPostingProduct | null): any; diff --git a/dist/esm/models/PostingPostingProduct.js b/dist/esm/models/PostingPostingProduct.js new file mode 100644 index 0000000..334ce97 --- /dev/null +++ b/dist/esm/models/PostingPostingProduct.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingProduct interface. + */ +export function instanceOfPostingPostingProduct(value) { + return true; +} +export function PostingPostingProductFromJSON(json) { + return PostingPostingProductFromJSONTyped(json, false); +} +export function PostingPostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'required_qty_for_digital_code': json['required_qty_for_digital_code'] == null ? undefined : json['required_qty_for_digital_code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function PostingPostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'required_qty_for_digital_code': value['required_qty_for_digital_code'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/PostingPostingProductCancelRequest.d.ts b/dist/esm/models/PostingPostingProductCancelRequest.d.ts new file mode 100644 index 0000000..759265b --- /dev/null +++ b/dist/esm/models/PostingPostingProductCancelRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingProductCancelRequestItem } from './PostingProductCancelRequestItem'; +/** + * + * @export + * @interface PostingPostingProductCancelRequest + */ +export interface PostingPostingProductCancelRequest { + /** + * Идентификатор причины отмены отправления товара. + * @type {number} + * @memberof PostingPostingProductCancelRequest + */ + cancel_reason_id: number; + /** + * Обязательное поле. Дополнительная информация по отмене. + * @type {string} + * @memberof PostingPostingProductCancelRequest + */ + cancel_reason_message: string; + /** + * Информация о товарах. + * @type {Array} + * @memberof PostingPostingProductCancelRequest + */ + items: Array; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingPostingProductCancelRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the PostingPostingProductCancelRequest interface. + */ +export declare function instanceOfPostingPostingProductCancelRequest(value: object): value is PostingPostingProductCancelRequest; +export declare function PostingPostingProductCancelRequestFromJSON(json: any): PostingPostingProductCancelRequest; +export declare function PostingPostingProductCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingProductCancelRequest; +export declare function PostingPostingProductCancelRequestToJSON(value?: PostingPostingProductCancelRequest | null): any; diff --git a/dist/esm/models/PostingPostingProductCancelRequest.js b/dist/esm/models/PostingPostingProductCancelRequest.js new file mode 100644 index 0000000..b23e530 --- /dev/null +++ b/dist/esm/models/PostingPostingProductCancelRequest.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingProductCancelRequestItemFromJSON, PostingProductCancelRequestItemToJSON, } from './PostingProductCancelRequestItem'; +/** + * Check if a given object implements the PostingPostingProductCancelRequest interface. + */ +export function instanceOfPostingPostingProductCancelRequest(value) { + if (!('cancel_reason_id' in value) || value['cancel_reason_id'] === undefined) + return false; + if (!('cancel_reason_message' in value) || value['cancel_reason_message'] === undefined) + return false; + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingPostingProductCancelRequestFromJSON(json) { + return PostingPostingProductCancelRequestFromJSONTyped(json, false); +} +export function PostingPostingProductCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason_id': json['cancel_reason_id'], + 'cancel_reason_message': json['cancel_reason_message'], + 'items': (json['items'].map(PostingProductCancelRequestItemFromJSON)), + 'posting_number': json['posting_number'], + }; +} +export function PostingPostingProductCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason_id': value['cancel_reason_id'], + 'cancel_reason_message': value['cancel_reason_message'], + 'items': (value['items'].map(PostingProductCancelRequestItemToJSON)), + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/PostingPostingProductCancelResponse.d.ts b/dist/esm/models/PostingPostingProductCancelResponse.d.ts new file mode 100644 index 0000000..6ba8d02 --- /dev/null +++ b/dist/esm/models/PostingPostingProductCancelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingProductCancelResponse + */ +export interface PostingPostingProductCancelResponse { + /** + * Номер отправления. + * @type {string} + * @memberof PostingPostingProductCancelResponse + */ + result?: string; +} +/** + * Check if a given object implements the PostingPostingProductCancelResponse interface. + */ +export declare function instanceOfPostingPostingProductCancelResponse(value: object): value is PostingPostingProductCancelResponse; +export declare function PostingPostingProductCancelResponseFromJSON(json: any): PostingPostingProductCancelResponse; +export declare function PostingPostingProductCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingProductCancelResponse; +export declare function PostingPostingProductCancelResponseToJSON(value?: PostingPostingProductCancelResponse | null): any; diff --git a/dist/esm/models/PostingPostingProductCancelResponse.js b/dist/esm/models/PostingPostingProductCancelResponse.js new file mode 100644 index 0000000..ef8b12c --- /dev/null +++ b/dist/esm/models/PostingPostingProductCancelResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingPostingProductCancelResponse interface. + */ +export function instanceOfPostingPostingProductCancelResponse(value) { + return true; +} +export function PostingPostingProductCancelResponseFromJSON(json) { + return PostingPostingProductCancelResponseFromJSONTyped(json, false); +} +export function PostingPostingProductCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function PostingPostingProductCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/PostingProductCancelRequestItem.d.ts b/dist/esm/models/PostingProductCancelRequestItem.d.ts new file mode 100644 index 0000000..ce26705 --- /dev/null +++ b/dist/esm/models/PostingProductCancelRequestItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingProductCancelRequestItem + */ +export interface PostingProductCancelRequestItem { + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingProductCancelRequestItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingProductCancelRequestItem + */ + sku: number; +} +/** + * Check if a given object implements the PostingProductCancelRequestItem interface. + */ +export declare function instanceOfPostingProductCancelRequestItem(value: object): value is PostingProductCancelRequestItem; +export declare function PostingProductCancelRequestItemFromJSON(json: any): PostingProductCancelRequestItem; +export declare function PostingProductCancelRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingProductCancelRequestItem; +export declare function PostingProductCancelRequestItemToJSON(value?: PostingProductCancelRequestItem | null): any; diff --git a/dist/esm/models/PostingProductCancelRequestItem.js b/dist/esm/models/PostingProductCancelRequestItem.js new file mode 100644 index 0000000..d9560f1 --- /dev/null +++ b/dist/esm/models/PostingProductCancelRequestItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingProductCancelRequestItem interface. + */ +export function instanceOfPostingProductCancelRequestItem(value) { + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function PostingProductCancelRequestItemFromJSON(json) { + return PostingProductCancelRequestItemFromJSONTyped(json, false); +} +export function PostingProductCancelRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +export function PostingProductCancelRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingRequest.d.ts b/dist/esm/models/PostingV1GetFbpPostingRequest.d.ts new file mode 100644 index 0000000..407ba4a --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV1GetFbpPostingRequest + */ +export interface PostingV1GetFbpPostingRequest { + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingV1GetFbpPostingRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingRequest interface. + */ +export declare function instanceOfPostingV1GetFbpPostingRequest(value: object): value is PostingV1GetFbpPostingRequest; +export declare function PostingV1GetFbpPostingRequestFromJSON(json: any): PostingV1GetFbpPostingRequest; +export declare function PostingV1GetFbpPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingRequest; +export declare function PostingV1GetFbpPostingRequestToJSON(value?: PostingV1GetFbpPostingRequest | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingRequest.js b/dist/esm/models/PostingV1GetFbpPostingRequest.js new file mode 100644 index 0000000..d553034 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1GetFbpPostingRequest interface. + */ +export function instanceOfPostingV1GetFbpPostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function PostingV1GetFbpPostingRequestFromJSON(json) { + return PostingV1GetFbpPostingRequestFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function PostingV1GetFbpPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponse.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponse.d.ts new file mode 100644 index 0000000..4876421 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1GetFbpPostingResponsePosting } from './PostingV1GetFbpPostingResponsePosting'; +/** + * + * @export + * @interface PostingV1GetFbpPostingResponse + */ +export interface PostingV1GetFbpPostingResponse { + /** + * + * @type {PostingV1GetFbpPostingResponsePosting} + * @memberof PostingV1GetFbpPostingResponse + */ + posting?: PostingV1GetFbpPostingResponsePosting; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponse interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponse(value: object): value is PostingV1GetFbpPostingResponse; +export declare function PostingV1GetFbpPostingResponseFromJSON(json: any): PostingV1GetFbpPostingResponse; +export declare function PostingV1GetFbpPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponse; +export declare function PostingV1GetFbpPostingResponseToJSON(value?: PostingV1GetFbpPostingResponse | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponse.js b/dist/esm/models/PostingV1GetFbpPostingResponse.js new file mode 100644 index 0000000..a50041d --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1GetFbpPostingResponsePostingFromJSON, PostingV1GetFbpPostingResponsePostingToJSON, } from './PostingV1GetFbpPostingResponsePosting'; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponse interface. + */ +export function instanceOfPostingV1GetFbpPostingResponse(value) { + return true; +} +export function PostingV1GetFbpPostingResponseFromJSON(json) { + return PostingV1GetFbpPostingResponseFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting': json['posting'] == null ? undefined : PostingV1GetFbpPostingResponsePostingFromJSON(json['posting']), + }; +} +export function PostingV1GetFbpPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting': PostingV1GetFbpPostingResponsePostingToJSON(value['posting']), + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePosting.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePosting.d.ts new file mode 100644 index 0000000..96cd638 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePosting.d.ts @@ -0,0 +1,101 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1GetFbpPostingResponsePostingFinancialData } from './PostingV1GetFbpPostingResponsePostingFinancialData'; +import type { PostingV1GetFbpPostingResponsePostingAnalyticsData } from './PostingV1GetFbpPostingResponsePostingAnalyticsData'; +import type { PostingV1GetFbpPostingResponsePostingCancellation } from './PostingV1GetFbpPostingResponsePostingCancellation'; +import type { PostingV1GetFbpPostingResponsePostingProducts } from './PostingV1GetFbpPostingResponsePostingProducts'; +/** + * Информация об отправлении. + * @export + * @interface PostingV1GetFbpPostingResponsePosting + */ +export interface PostingV1GetFbpPostingResponsePosting { + /** + * + * @type {PostingV1GetFbpPostingResponsePostingAnalyticsData} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + analytics_data?: PostingV1GetFbpPostingResponsePostingAnalyticsData; + /** + * + * @type {PostingV1GetFbpPostingResponsePostingCancellation} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + cancellation?: PostingV1GetFbpPostingResponsePostingCancellation; + /** + * + * @type {PostingV1GetFbpPostingResponsePostingFinancialData} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + financial_data?: PostingV1GetFbpPostingResponsePostingFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + in_process_at?: string; + /** + * Дата создания заказа. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + order_date?: string; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + order_number?: string; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + products?: Array; + /** + * Статус отправления. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + status?: number; + /** + * Подстатус отправления. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + substatus?: string; + /** + * Идентификатор провайдера доставки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + tpl_provider_id?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePosting interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePosting(value: object): value is PostingV1GetFbpPostingResponsePosting; +export declare function PostingV1GetFbpPostingResponsePostingFromJSON(json: any): PostingV1GetFbpPostingResponsePosting; +export declare function PostingV1GetFbpPostingResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePosting; +export declare function PostingV1GetFbpPostingResponsePostingToJSON(value?: PostingV1GetFbpPostingResponsePosting | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePosting.js b/dist/esm/models/PostingV1GetFbpPostingResponsePosting.js new file mode 100644 index 0000000..ffc14c6 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePosting.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON, PostingV1GetFbpPostingResponsePostingFinancialDataToJSON, } from './PostingV1GetFbpPostingResponsePostingFinancialData'; +import { PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON, PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON, } from './PostingV1GetFbpPostingResponsePostingAnalyticsData'; +import { PostingV1GetFbpPostingResponsePostingCancellationFromJSON, PostingV1GetFbpPostingResponsePostingCancellationToJSON, } from './PostingV1GetFbpPostingResponsePostingCancellation'; +import { PostingV1GetFbpPostingResponsePostingProductsFromJSON, PostingV1GetFbpPostingResponsePostingProductsToJSON, } from './PostingV1GetFbpPostingResponsePostingProducts'; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePosting interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePosting(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON(json['analytics_data']), + 'cancellation': json['cancellation'] == null ? undefined : PostingV1GetFbpPostingResponsePostingCancellationFromJSON(json['cancellation']), + 'financial_data': json['financial_data'] == null ? undefined : PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'order_date': json['order_date'] == null ? undefined : json['order_date'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV1GetFbpPostingResponsePostingProductsFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + }; +} +export function PostingV1GetFbpPostingResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON(value['analytics_data']), + 'cancellation': PostingV1GetFbpPostingResponsePostingCancellationToJSON(value['cancellation']), + 'financial_data': PostingV1GetFbpPostingResponsePostingFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'order_date': value['order_date'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV1GetFbpPostingResponsePostingProductsToJSON)), + 'status': value['status'], + 'substatus': value['substatus'], + 'tpl_provider_id': value['tpl_provider_id'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.d.ts new file mode 100644 index 0000000..12b66ab --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV1GetFbpPostingResponsePostingAnalyticsData + */ +export interface PostingV1GetFbpPostingResponsePostingAnalyticsData { + /** + * Город доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + delivery_date_begin?: string; + /** + * Дата и время конца доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + delivery_type?: string; + /** + * Регион доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + region?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingAnalyticsData interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingAnalyticsData(value: object): value is PostingV1GetFbpPostingResponsePostingAnalyticsData; +export declare function PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON(json: any): PostingV1GetFbpPostingResponsePostingAnalyticsData; +export declare function PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingAnalyticsData; +export declare function PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON(value?: PostingV1GetFbpPostingResponsePostingAnalyticsData | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.js b/dist/esm/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.js new file mode 100644 index 0000000..8cf09b7 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingAnalyticsData interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePostingAnalyticsData(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_date_begin': json['delivery_date_begin'] == null ? undefined : json['delivery_date_begin'], + 'delivery_date_end': json['delivery_date_end'] == null ? undefined : json['delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'region': json['region'] == null ? undefined : json['region'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_date_begin': value['delivery_date_begin'], + 'delivery_date_end': value['delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'region': value['region'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingCancellation.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePostingCancellation.d.ts new file mode 100644 index 0000000..162df96 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingCancellation.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV1GetFbpPostingResponsePostingCancellation + */ +export interface PostingV1GetFbpPostingResponsePostingCancellation { + /** + * Причина отмены. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingCancellation + */ + cancel_reason?: string; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingCancellation + */ + cancel_reason_id?: number; + /** + * Инициатор отмены. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingCancellation + */ + cancellation_type?: string; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingCancellation interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingCancellation(value: object): value is PostingV1GetFbpPostingResponsePostingCancellation; +export declare function PostingV1GetFbpPostingResponsePostingCancellationFromJSON(json: any): PostingV1GetFbpPostingResponsePostingCancellation; +export declare function PostingV1GetFbpPostingResponsePostingCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingCancellation; +export declare function PostingV1GetFbpPostingResponsePostingCancellationToJSON(value?: PostingV1GetFbpPostingResponsePostingCancellation | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingCancellation.js b/dist/esm/models/PostingV1GetFbpPostingResponsePostingCancellation.js new file mode 100644 index 0000000..5b35174 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingCancellation.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingCancellation interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePostingCancellation(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingCancellationFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingCancellationFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + }; +} +export function PostingV1GetFbpPostingResponsePostingCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason': value['cancel_reason'], + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialData.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialData.d.ts new file mode 100644 index 0000000..306f41e --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialData.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1GetFbpPostingResponsePostingFinancialDataProducts } from './PostingV1GetFbpPostingResponsePostingFinancialDataProducts'; +/** + * Финансовые данные. + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialData + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialData + */ + cluster_to?: string; + /** + * Стоимость доставки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialData + */ + delivery_amount?: number; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialData interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialData(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialData; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialData; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialData; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialData | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialData.js b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialData.js new file mode 100644 index 0000000..04d8013 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialData.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON, PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON, } from './PostingV1GetFbpPostingResponsePostingFinancialDataProducts'; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialData interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePostingFinancialData(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'delivery_amount': json['delivery_amount'] == null ? undefined : json['delivery_amount'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON)), + }; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'delivery_amount': value['delivery_amount'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.d.ts new file mode 100644 index 0000000..fb728d9 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.d.ts @@ -0,0 +1,97 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions'; +import type { MoneyMoneySellerPrice } from './MoneyMoneySellerPrice'; +import type { MoneyMoneyCustomerPrice } from './MoneyMoneyCustomerPrice'; +import type { PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission'; +import type { MoneyMoneyComissions } from './MoneyMoneyComissions'; +import type { PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission'; +/** + * + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {MoneyMoneyComissions} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + commissions_price?: MoneyMoneyComissions; + /** + * + * @type {MoneyMoneyCustomerPrice} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + customer_price?: MoneyMoneyCustomerPrice; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + old_price?: number; + /** + * + * @type {PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + posting_commission?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + quantity?: number; + /** + * + * @type {PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + return_commission?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; + /** + * + * @type {MoneyMoneySellerPrice} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + seller_price?: MoneyMoneySellerPrice; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + sku?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProducts interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProducts(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialDataProducts; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialDataProducts; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialDataProducts; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialDataProducts | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.js b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.js new file mode 100644 index 0000000..ee4bca5 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON, PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON, } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions'; +import { MoneyMoneySellerPriceFromJSON, MoneyMoneySellerPriceToJSON, } from './MoneyMoneySellerPrice'; +import { MoneyMoneyCustomerPriceFromJSON, MoneyMoneyCustomerPriceToJSON, } from './MoneyMoneyCustomerPrice'; +import { PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON, PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON, } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission'; +import { MoneyMoneyComissionsFromJSON, MoneyMoneyComissionsToJSON, } from './MoneyMoneyComissions'; +import { PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON, PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON, } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission'; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProducts interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProducts(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : (json['actions'].map(PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON)), + 'commissions_price': json['commissions_price'] == null ? undefined : MoneyMoneyComissionsFromJSON(json['commissions_price']), + 'customer_price': json['customer_price'] == null ? undefined : MoneyMoneyCustomerPriceFromJSON(json['customer_price']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'posting_commission': json['posting_commission'] == null ? undefined : PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON(json['posting_commission']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'return_commission': json['return_commission'] == null ? undefined : PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON(json['return_commission']), + 'seller_price': json['seller_price'] == null ? undefined : MoneyMoneySellerPriceFromJSON(json['seller_price']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'] == null ? undefined : (value['actions'].map(PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON)), + 'commissions_price': MoneyMoneyComissionsToJSON(value['commissions_price']), + 'customer_price': MoneyMoneyCustomerPriceToJSON(value['customer_price']), + 'old_price': value['old_price'], + 'posting_commission': PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON(value['posting_commission']), + 'quantity': value['quantity'], + 'return_commission': PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON(value['return_commission']), + 'seller_price': MoneyMoneySellerPriceToJSON(value['seller_price']), + 'sku': value['sku'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.d.ts new file mode 100644 index 0000000..8f02881 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions { + /** + * Идентификатор акции. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + action_id?: number; + /** + * Тип акции. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + action_type?: string; + /** + * Дата начала акции. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + date_from?: string; + /** + * Дата окончания акции. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + date_to?: string; + /** + * Название акции. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + description?: string; + /** + * Скидка в процентах. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + discount_value?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsActions(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.js b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.js new file mode 100644 index 0000000..2f7e47a --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsActions(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_type': json['action_type'] == null ? undefined : json['action_type'], + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'description': json['description'] == null ? undefined : json['description'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + }; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_type': value['action_type'], + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'description': value['description'], + 'discount_percent': value['discount_percent'], + 'discount_value': value['discount_value'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.d.ts new file mode 100644 index 0000000..e3f81f0 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Коммисия за отправление. + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission { + /** + * Сумма. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission + */ + amount?: number; + /** + * Выплата. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission + */ + payout?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.js b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.js new file mode 100644 index 0000000..0b57110 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'payout': value['payout'], + 'percent': value['percent'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.d.ts new file mode 100644 index 0000000..60d2b49 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за возврат товара. + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission { + /** + * Сумма. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission + */ + amount?: number; + /** + * Выплата. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission + */ + payout?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.js b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.js new file mode 100644 index 0000000..ca41ed0 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +export function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'payout': value['payout'], + 'percent': value['percent'], + }; +} diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingProducts.d.ts b/dist/esm/models/PostingV1GetFbpPostingResponsePostingProducts.d.ts new file mode 100644 index 0000000..4082980 --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingProducts.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyFBPget } from './MoneyMoneyFBPget'; +/** + * + * @export + * @interface PostingV1GetFbpPostingResponsePostingProducts + */ +export interface PostingV1GetFbpPostingResponsePostingProducts { + /** + * `true`, если есть IMEI. + * + * @type {boolean} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + has_imei?: boolean; + /** + * + * @type {MoneyMoneyFBPget} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + marketplace_seller_price?: MoneyMoneyFBPget; + /** + * Название товара. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + sku?: number; + /** + * Максимальный вес экземпляра. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + weight_max?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingProducts interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingProducts(value: object): value is PostingV1GetFbpPostingResponsePostingProducts; +export declare function PostingV1GetFbpPostingResponsePostingProductsFromJSON(json: any): PostingV1GetFbpPostingResponsePostingProducts; +export declare function PostingV1GetFbpPostingResponsePostingProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingProducts; +export declare function PostingV1GetFbpPostingResponsePostingProductsToJSON(value?: PostingV1GetFbpPostingResponsePostingProducts | null): any; diff --git a/dist/esm/models/PostingV1GetFbpPostingResponsePostingProducts.js b/dist/esm/models/PostingV1GetFbpPostingResponsePostingProducts.js new file mode 100644 index 0000000..77fce3b --- /dev/null +++ b/dist/esm/models/PostingV1GetFbpPostingResponsePostingProducts.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyFBPgetFromJSON, MoneyMoneyFBPgetToJSON, } from './MoneyMoneyFBPget'; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingProducts interface. + */ +export function instanceOfPostingV1GetFbpPostingResponsePostingProducts(value) { + return true; +} +export function PostingV1GetFbpPostingResponsePostingProductsFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingProductsFromJSONTyped(json, false); +} +export function PostingV1GetFbpPostingResponsePostingProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_imei': json['has_imei'] == null ? undefined : json['has_imei'], + 'marketplace_seller_price': json['marketplace_seller_price'] == null ? undefined : MoneyMoneyFBPgetFromJSON(json['marketplace_seller_price']), + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight_max': json['weight_max'] == null ? undefined : json['weight_max'], + }; +} +export function PostingV1GetFbpPostingResponsePostingProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_imei': value['has_imei'], + 'marketplace_seller_price': MoneyMoneyFBPgetToJSON(value['marketplace_seller_price']), + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'weight_max': value['weight_max'], + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListRequest.d.ts b/dist/esm/models/PostingV1PostingFbpListRequest.d.ts new file mode 100644 index 0000000..4c22528 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListRequest.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListRequestFilter } from './PostingV1PostingFbpListRequestFilter'; +import type { PostingV1PostingFbpListRequestSortDirEnum } from './PostingV1PostingFbpListRequestSortDirEnum'; +/** + * + * @export + * @interface PostingV1PostingFbpListRequest + */ +export interface PostingV1PostingFbpListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV1PostingFbpListRequest + */ + cursor?: string; + /** + * + * @type {PostingV1PostingFbpListRequestFilter} + * @memberof PostingV1PostingFbpListRequest + */ + filter?: PostingV1PostingFbpListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV1PostingFbpListRequest + */ + limit?: number; + /** + * Параметр, по которому сортируются отправления: + * - `last_change_status_date` — по дате последнего изменения статуса; + * - `in_process_at` — по дате начала обработки. + * + * @type {string} + * @memberof PostingV1PostingFbpListRequest + */ + sort_by?: string; + /** + * + * @type {PostingV1PostingFbpListRequestSortDirEnum} + * @memberof PostingV1PostingFbpListRequest + */ + sort_dir?: PostingV1PostingFbpListRequestSortDirEnum; +} +/** + * Check if a given object implements the PostingV1PostingFbpListRequest interface. + */ +export declare function instanceOfPostingV1PostingFbpListRequest(value: object): value is PostingV1PostingFbpListRequest; +export declare function PostingV1PostingFbpListRequestFromJSON(json: any): PostingV1PostingFbpListRequest; +export declare function PostingV1PostingFbpListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListRequest; +export declare function PostingV1PostingFbpListRequestToJSON(value?: PostingV1PostingFbpListRequest | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListRequest.js b/dist/esm/models/PostingV1PostingFbpListRequest.js new file mode 100644 index 0000000..75321aa --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1PostingFbpListRequestFilterFromJSON, PostingV1PostingFbpListRequestFilterToJSON, } from './PostingV1PostingFbpListRequestFilter'; +import { PostingV1PostingFbpListRequestSortDirEnumFromJSON, PostingV1PostingFbpListRequestSortDirEnumToJSON, } from './PostingV1PostingFbpListRequestSortDirEnum'; +/** + * Check if a given object implements the PostingV1PostingFbpListRequest interface. + */ +export function instanceOfPostingV1PostingFbpListRequest(value) { + return true; +} +export function PostingV1PostingFbpListRequestFromJSON(json) { + return PostingV1PostingFbpListRequestFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : PostingV1PostingFbpListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_by': json['sort_by'] == null ? undefined : json['sort_by'], + 'sort_dir': json['sort_dir'] == null ? undefined : PostingV1PostingFbpListRequestSortDirEnumFromJSON(json['sort_dir']), + }; +} +export function PostingV1PostingFbpListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': PostingV1PostingFbpListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'sort_by': value['sort_by'], + 'sort_dir': PostingV1PostingFbpListRequestSortDirEnumToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListRequestFilter.d.ts b/dist/esm/models/PostingV1PostingFbpListRequestFilter.d.ts new file mode 100644 index 0000000..e8c8906 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListRequestFilter.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface PostingV1PostingFbpListRequestFilter + */ +export interface PostingV1PostingFbpListRequestFilter { + /** + * Название товара. + * @type {string} + * @memberof PostingV1PostingFbpListRequestFilter + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV1PostingFbpListRequestFilter + */ + offer_id?: string; + /** + * Номера отправлений. + * @type {Array} + * @memberof PostingV1PostingFbpListRequestFilter + */ + posting_numbers?: Array; + /** + * Начало периода. + * @type {string} + * @memberof PostingV1PostingFbpListRequestFilter + */ + since?: string; + /** + * Статус отправления. + * @type {Array} + * @memberof PostingV1PostingFbpListRequestFilter + */ + statuses?: Array; + /** + * Конец периода. + * @type {string} + * @memberof PostingV1PostingFbpListRequestFilter + */ + to?: string; +} +/** + * Check if a given object implements the PostingV1PostingFbpListRequestFilter interface. + */ +export declare function instanceOfPostingV1PostingFbpListRequestFilter(value: object): value is PostingV1PostingFbpListRequestFilter; +export declare function PostingV1PostingFbpListRequestFilterFromJSON(json: any): PostingV1PostingFbpListRequestFilter; +export declare function PostingV1PostingFbpListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListRequestFilter; +export declare function PostingV1PostingFbpListRequestFilterToJSON(value?: PostingV1PostingFbpListRequestFilter | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListRequestFilter.js b/dist/esm/models/PostingV1PostingFbpListRequestFilter.js new file mode 100644 index 0000000..abe72df --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListRequestFilter.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1PostingFbpListRequestFilter interface. + */ +export function instanceOfPostingV1PostingFbpListRequestFilter(value) { + return true; +} +export function PostingV1PostingFbpListRequestFilterFromJSON(json) { + return PostingV1PostingFbpListRequestFilterFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'since': json['since'] == null ? undefined : json['since'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function PostingV1PostingFbpListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'posting_numbers': value['posting_numbers'], + 'since': value['since'], + 'statuses': value['statuses'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListRequestSortDirEnum.d.ts b/dist/esm/models/PostingV1PostingFbpListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..147e8f6 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV1PostingFbpListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV1PostingFbpListRequestSortDirEnum = typeof PostingV1PostingFbpListRequestSortDirEnum[keyof typeof PostingV1PostingFbpListRequestSortDirEnum]; +export declare function instanceOfPostingV1PostingFbpListRequestSortDirEnum(value: any): boolean; +export declare function PostingV1PostingFbpListRequestSortDirEnumFromJSON(json: any): PostingV1PostingFbpListRequestSortDirEnum; +export declare function PostingV1PostingFbpListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListRequestSortDirEnum; +export declare function PostingV1PostingFbpListRequestSortDirEnumToJSON(value?: PostingV1PostingFbpListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListRequestSortDirEnum.js b/dist/esm/models/PostingV1PostingFbpListRequestSortDirEnum.js new file mode 100644 index 0000000..27d995d --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const PostingV1PostingFbpListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfPostingV1PostingFbpListRequestSortDirEnum(value) { + for (const key in PostingV1PostingFbpListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(PostingV1PostingFbpListRequestSortDirEnum, key)) { + if (PostingV1PostingFbpListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PostingV1PostingFbpListRequestSortDirEnumFromJSON(json) { + return PostingV1PostingFbpListRequestSortDirEnumFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PostingV1PostingFbpListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PostingV1PostingFbpListResponse.d.ts b/dist/esm/models/PostingV1PostingFbpListResponse.d.ts new file mode 100644 index 0000000..308023f --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListResponsePostings } from './PostingV1PostingFbpListResponsePostings'; +/** + * + * @export + * @interface PostingV1PostingFbpListResponse + */ +export interface PostingV1PostingFbpListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV1PostingFbpListResponse + */ + cursor?: string; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV1PostingFbpListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponse interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponse(value: object): value is PostingV1PostingFbpListResponse; +export declare function PostingV1PostingFbpListResponseFromJSON(json: any): PostingV1PostingFbpListResponse; +export declare function PostingV1PostingFbpListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponse; +export declare function PostingV1PostingFbpListResponseToJSON(value?: PostingV1PostingFbpListResponse | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListResponse.js b/dist/esm/models/PostingV1PostingFbpListResponse.js new file mode 100644 index 0000000..ab9ff85 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1PostingFbpListResponsePostingsFromJSON, PostingV1PostingFbpListResponsePostingsToJSON, } from './PostingV1PostingFbpListResponsePostings'; +/** + * Check if a given object implements the PostingV1PostingFbpListResponse interface. + */ +export function instanceOfPostingV1PostingFbpListResponse(value) { + return true; +} +export function PostingV1PostingFbpListResponseFromJSON(json) { + return PostingV1PostingFbpListResponseFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV1PostingFbpListResponsePostingsFromJSON)), + }; +} +export function PostingV1PostingFbpListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV1PostingFbpListResponsePostingsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostings.d.ts b/dist/esm/models/PostingV1PostingFbpListResponsePostings.d.ts new file mode 100644 index 0000000..426cfb7 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostings.d.ts @@ -0,0 +1,81 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListResponsePostingsProducts } from './PostingV1PostingFbpListResponsePostingsProducts'; +import type { PostingV1PostingFbpListResponsePostingsFinancialData } from './PostingV1PostingFbpListResponsePostingsFinancialData'; +/** + * + * @export + * @interface PostingV1PostingFbpListResponsePostings + */ +export interface PostingV1PostingFbpListResponsePostings { + /** + * + * @type {PostingV1PostingFbpListResponsePostingsFinancialData} + * @memberof PostingV1PostingFbpListResponsePostings + */ + financial_data?: PostingV1PostingFbpListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + in_process_at?: string; + /** + * Дата создания заказа. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + order_date?: string; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV1PostingFbpListResponsePostings + */ + products?: Array; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostings + */ + provider_id?: number; + /** + * Статус отправления. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + status?: string; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostings interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostings(value: object): value is PostingV1PostingFbpListResponsePostings; +export declare function PostingV1PostingFbpListResponsePostingsFromJSON(json: any): PostingV1PostingFbpListResponsePostings; +export declare function PostingV1PostingFbpListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostings; +export declare function PostingV1PostingFbpListResponsePostingsToJSON(value?: PostingV1PostingFbpListResponsePostings | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostings.js b/dist/esm/models/PostingV1PostingFbpListResponsePostings.js new file mode 100644 index 0000000..0df8f28 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostings.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1PostingFbpListResponsePostingsProductsFromJSON, PostingV1PostingFbpListResponsePostingsProductsToJSON, } from './PostingV1PostingFbpListResponsePostingsProducts'; +import { PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON, PostingV1PostingFbpListResponsePostingsFinancialDataToJSON, } from './PostingV1PostingFbpListResponsePostingsFinancialData'; +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostings interface. + */ +export function instanceOfPostingV1PostingFbpListResponsePostings(value) { + return true; +} +export function PostingV1PostingFbpListResponsePostingsFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'financial_data': json['financial_data'] == null ? undefined : PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'order_date': json['order_date'] == null ? undefined : json['order_date'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV1PostingFbpListResponsePostingsProductsFromJSON)), + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function PostingV1PostingFbpListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'financial_data': PostingV1PostingFbpListResponsePostingsFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'order_date': value['order_date'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV1PostingFbpListResponsePostingsProductsToJSON)), + 'provider_id': value['provider_id'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialData.d.ts b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..5f5a2a2 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialData.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListResponsePostingsFinancialDataProducts } from './PostingV1PostingFbpListResponsePostingsFinancialDataProducts'; +/** + * Финансовые данные. + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialData + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Стоимость доставки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialData + */ + delivery_amount?: number; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialData(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialData; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialData; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialData; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialData | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialData.js b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialData.js new file mode 100644 index 0000000..7e914e6 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialData.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON, PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON, } from './PostingV1PostingFbpListResponsePostingsFinancialDataProducts'; +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialData interface. + */ +export function instanceOfPostingV1PostingFbpListResponsePostingsFinancialData(value) { + return true; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'delivery_amount': json['delivery_amount'] == null ? undefined : json['delivery_amount'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'delivery_amount': value['delivery_amount'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.d.ts b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..21808dc --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission'; +import type { PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission'; +import type { PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions'; +/** + * + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * Код валюты комиссии. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + commissions_currency_code?: string; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Количество товара. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * + * @type {PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + posting_commission?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; + /** + * + * @type {PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + return_commission?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProducts(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialDataProducts; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialDataProducts; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialDataProducts; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.js b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..fc051cf --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON, PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON, } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission'; +import { PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON, PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON, } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission'; +import { PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON, PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON, } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions'; +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProducts interface. + */ +export function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProducts(value) { + return true; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : (json['actions'].map(PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON)), + 'commissions_currency_code': json['commissions_currency_code'] == null ? undefined : json['commissions_currency_code'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'posting_commission': json['posting_commission'] == null ? undefined : PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON(json['posting_commission']), + 'return_commission': json['return_commission'] == null ? undefined : PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON(json['return_commission']), + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'] == null ? undefined : (value['actions'].map(PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON)), + 'commissions_currency_code': value['commissions_currency_code'], + 'old_price': value['old_price'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'posting_commission': PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON(value['posting_commission']), + 'return_commission': PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON(value['return_commission']), + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.d.ts b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.d.ts new file mode 100644 index 0000000..0c6912b --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions { + /** + * Идентификатор акции. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + action_id?: string; + /** + * Дата начала акции. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + date_from?: string; + /** + * Дата окончания акции. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + date_to?: string; + /** + * Скидка в процентах. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + discount_value?: number; + /** + * `true`, если акцию создал продавец. + * + * @type {boolean} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + is_from_seller?: boolean; + /** + * Название акции. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + description?: string; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsActions(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.js b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.js new file mode 100644 index 0000000..ff5b0bd --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions interface. + */ +export function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsActions(value) { + return true; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + 'is_from_seller': json['is_from_seller'] == null ? undefined : json['is_from_seller'], + 'description': json['description'] == null ? undefined : json['description'], + }; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'discount_percent': value['discount_percent'], + 'discount_value': value['discount_value'], + 'is_from_seller': value['is_from_seller'], + 'description': value['description'], + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..79e4ee5 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за отправление. + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission { + /** + * Сумма. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Выплата. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission + */ + payout?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.js b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..7a8ff8f --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission interface. + */ +export function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'payout': value['payout'], + 'percent': value['percent'], + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.d.ts b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.d.ts new file mode 100644 index 0000000..eb39208 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за возврат товара. + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission { + /** + * Сумма. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission + */ + amount?: number; + /** + * Выплата. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission + */ + payout?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.js b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.js new file mode 100644 index 0000000..0685073 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission interface. + */ +export function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission(value) { + return true; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +export function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'payout': value['payout'], + 'percent': value['percent'], + }; +} diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsProducts.d.ts b/dist/esm/models/PostingV1PostingFbpListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..4d75ae4 --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsProducts.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySellerPrice } from './MoneyMoneySellerPrice'; +import type { MoneyMoneyCustomerPrice } from './MoneyMoneyCustomerPrice'; +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV1PostingFbpListResponsePostingsProducts + */ +export interface PostingV1PostingFbpListResponsePostingsProducts { + /** + * + * @type {MoneyMoneyCustomerPrice} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + customer_price?: MoneyMoneyCustomerPrice; + /** + * Название товара в заказе. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + quantity?: number; + /** + * + * @type {MoneyMoneySellerPrice} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + seller_price?: MoneyMoneySellerPrice; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + sku?: number; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsProducts(value: object): value is PostingV1PostingFbpListResponsePostingsProducts; +export declare function PostingV1PostingFbpListResponsePostingsProductsFromJSON(json: any): PostingV1PostingFbpListResponsePostingsProducts; +export declare function PostingV1PostingFbpListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsProducts; +export declare function PostingV1PostingFbpListResponsePostingsProductsToJSON(value?: PostingV1PostingFbpListResponsePostingsProducts | null): any; diff --git a/dist/esm/models/PostingV1PostingFbpListResponsePostingsProducts.js b/dist/esm/models/PostingV1PostingFbpListResponsePostingsProducts.js new file mode 100644 index 0000000..6b72e3a --- /dev/null +++ b/dist/esm/models/PostingV1PostingFbpListResponsePostingsProducts.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneySellerPriceFromJSON, MoneyMoneySellerPriceToJSON, } from './MoneyMoneySellerPrice'; +import { MoneyMoneyCustomerPriceFromJSON, MoneyMoneyCustomerPriceToJSON, } from './MoneyMoneyCustomerPrice'; +import { MoneyPostingMoneyFromJSON, MoneyPostingMoneyToJSON, } from './MoneyPostingMoney'; +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsProducts interface. + */ +export function instanceOfPostingV1PostingFbpListResponsePostingsProducts(value) { + return true; +} +export function PostingV1PostingFbpListResponsePostingsProductsFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsProductsFromJSONTyped(json, false); +} +export function PostingV1PostingFbpListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'customer_price': json['customer_price'] == null ? undefined : MoneyMoneyCustomerPriceFromJSON(json['customer_price']), + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : MoneyPostingMoneyFromJSON(json['price']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'seller_price': json['seller_price'] == null ? undefined : MoneyMoneySellerPriceFromJSON(json['seller_price']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function PostingV1PostingFbpListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'customer_price': MoneyMoneyCustomerPriceToJSON(value['customer_price']), + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': MoneyPostingMoneyToJSON(value['price']), + 'quantity': value['quantity'], + 'seller_price': MoneyMoneySellerPriceToJSON(value['seller_price']), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/PostingV2FboSinglePostingExternalOrder.d.ts b/dist/esm/models/PostingV2FboSinglePostingExternalOrder.d.ts new file mode 100644 index 0000000..52ac3fa --- /dev/null +++ b/dist/esm/models/PostingV2FboSinglePostingExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV2FboSinglePostingExternalOrder + */ +export interface PostingV2FboSinglePostingExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV2FboSinglePostingExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV2FboSinglePostingExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV2FboSinglePostingExternalOrder interface. + */ +export declare function instanceOfPostingV2FboSinglePostingExternalOrder(value: object): value is PostingV2FboSinglePostingExternalOrder; +export declare function PostingV2FboSinglePostingExternalOrderFromJSON(json: any): PostingV2FboSinglePostingExternalOrder; +export declare function PostingV2FboSinglePostingExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2FboSinglePostingExternalOrder; +export declare function PostingV2FboSinglePostingExternalOrderToJSON(value?: PostingV2FboSinglePostingExternalOrder | null): any; diff --git a/dist/esm/models/PostingV2FboSinglePostingExternalOrder.js b/dist/esm/models/PostingV2FboSinglePostingExternalOrder.js new file mode 100644 index 0000000..577def2 --- /dev/null +++ b/dist/esm/models/PostingV2FboSinglePostingExternalOrder.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2FboSinglePostingExternalOrder interface. + */ +export function instanceOfPostingV2FboSinglePostingExternalOrder(value) { + return true; +} +export function PostingV2FboSinglePostingExternalOrderFromJSON(json) { + return PostingV2FboSinglePostingExternalOrderFromJSONTyped(json, false); +} +export function PostingV2FboSinglePostingExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +export function PostingV2FboSinglePostingExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListRequest.d.ts b/dist/esm/models/PostingV2PostingDigitalListRequest.d.ts new file mode 100644 index 0000000..af31f29 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListRequest.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListRequestWith } from './PostingV2PostingDigitalListRequestWith'; +import type { PostingV2PostingDigitalListRequestFilter } from './PostingV2PostingDigitalListRequestFilter'; +import type { PostingV2PostingDigitalListRequestSortDirEnum } from './PostingV2PostingDigitalListRequestSortDirEnum'; +/** + * + * @export + * @interface PostingV2PostingDigitalListRequest + */ +export interface PostingV2PostingDigitalListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV2PostingDigitalListRequest + */ + cursor?: string; + /** + * + * @type {PostingV2PostingDigitalListRequestFilter} + * @memberof PostingV2PostingDigitalListRequest + */ + filter?: PostingV2PostingDigitalListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV2PostingDigitalListRequest + */ + limit?: number; + /** + * + * @type {PostingV2PostingDigitalListRequestSortDirEnum} + * @memberof PostingV2PostingDigitalListRequest + */ + sort_dir?: PostingV2PostingDigitalListRequestSortDirEnum; + /** + * + * @type {PostingV2PostingDigitalListRequestWith} + * @memberof PostingV2PostingDigitalListRequest + */ + _with?: PostingV2PostingDigitalListRequestWith; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListRequest interface. + */ +export declare function instanceOfPostingV2PostingDigitalListRequest(value: object): value is PostingV2PostingDigitalListRequest; +export declare function PostingV2PostingDigitalListRequestFromJSON(json: any): PostingV2PostingDigitalListRequest; +export declare function PostingV2PostingDigitalListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListRequest; +export declare function PostingV2PostingDigitalListRequestToJSON(value?: PostingV2PostingDigitalListRequest | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListRequest.js b/dist/esm/models/PostingV2PostingDigitalListRequest.js new file mode 100644 index 0000000..27f7fb0 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV2PostingDigitalListRequestWithFromJSON, PostingV2PostingDigitalListRequestWithToJSON, } from './PostingV2PostingDigitalListRequestWith'; +import { PostingV2PostingDigitalListRequestFilterFromJSON, PostingV2PostingDigitalListRequestFilterToJSON, } from './PostingV2PostingDigitalListRequestFilter'; +import { PostingV2PostingDigitalListRequestSortDirEnumFromJSON, PostingV2PostingDigitalListRequestSortDirEnumToJSON, } from './PostingV2PostingDigitalListRequestSortDirEnum'; +/** + * Check if a given object implements the PostingV2PostingDigitalListRequest interface. + */ +export function instanceOfPostingV2PostingDigitalListRequest(value) { + return true; +} +export function PostingV2PostingDigitalListRequestFromJSON(json) { + return PostingV2PostingDigitalListRequestFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : PostingV2PostingDigitalListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : PostingV2PostingDigitalListRequestSortDirEnumFromJSON(json['sort_dir']), + '_with': json['with'] == null ? undefined : PostingV2PostingDigitalListRequestWithFromJSON(json['with']), + }; +} +export function PostingV2PostingDigitalListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': PostingV2PostingDigitalListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'sort_dir': PostingV2PostingDigitalListRequestSortDirEnumToJSON(value['sort_dir']), + 'with': PostingV2PostingDigitalListRequestWithToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListRequestFilter.d.ts b/dist/esm/models/PostingV2PostingDigitalListRequestFilter.d.ts new file mode 100644 index 0000000..0533e75 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface PostingV2PostingDigitalListRequestFilter + */ +export interface PostingV2PostingDigitalListRequestFilter { + /** + * Номера заказов, к которым относятся отправления. + * @type {Array} + * @memberof PostingV2PostingDigitalListRequestFilter + */ + order_numbers?: Array; + /** + * Идентификаторы отправлений. + * @type {Array} + * @memberof PostingV2PostingDigitalListRequestFilter + */ + posting_numbers?: Array; + /** + * Начало периода. + * @type {string} + * @memberof PostingV2PostingDigitalListRequestFilter + */ + since?: string; + /** + * Конец периода. + * @type {string} + * @memberof PostingV2PostingDigitalListRequestFilter + */ + to?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListRequestFilter interface. + */ +export declare function instanceOfPostingV2PostingDigitalListRequestFilter(value: object): value is PostingV2PostingDigitalListRequestFilter; +export declare function PostingV2PostingDigitalListRequestFilterFromJSON(json: any): PostingV2PostingDigitalListRequestFilter; +export declare function PostingV2PostingDigitalListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListRequestFilter; +export declare function PostingV2PostingDigitalListRequestFilterToJSON(value?: PostingV2PostingDigitalListRequestFilter | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListRequestFilter.js b/dist/esm/models/PostingV2PostingDigitalListRequestFilter.js new file mode 100644 index 0000000..9c96d92 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListRequestFilter.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2PostingDigitalListRequestFilter interface. + */ +export function instanceOfPostingV2PostingDigitalListRequestFilter(value) { + return true; +} +export function PostingV2PostingDigitalListRequestFilterFromJSON(json) { + return PostingV2PostingDigitalListRequestFilterFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_numbers': json['order_numbers'] == null ? undefined : json['order_numbers'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'since': json['since'] == null ? undefined : json['since'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function PostingV2PostingDigitalListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_numbers': value['order_numbers'], + 'posting_numbers': value['posting_numbers'], + 'since': value['since'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListRequestSortDirEnum.d.ts b/dist/esm/models/PostingV2PostingDigitalListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..7d9a003 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV2PostingDigitalListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV2PostingDigitalListRequestSortDirEnum = typeof PostingV2PostingDigitalListRequestSortDirEnum[keyof typeof PostingV2PostingDigitalListRequestSortDirEnum]; +export declare function instanceOfPostingV2PostingDigitalListRequestSortDirEnum(value: any): boolean; +export declare function PostingV2PostingDigitalListRequestSortDirEnumFromJSON(json: any): PostingV2PostingDigitalListRequestSortDirEnum; +export declare function PostingV2PostingDigitalListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListRequestSortDirEnum; +export declare function PostingV2PostingDigitalListRequestSortDirEnumToJSON(value?: PostingV2PostingDigitalListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListRequestSortDirEnum.js b/dist/esm/models/PostingV2PostingDigitalListRequestSortDirEnum.js new file mode 100644 index 0000000..97b22ab --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const PostingV2PostingDigitalListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfPostingV2PostingDigitalListRequestSortDirEnum(value) { + for (const key in PostingV2PostingDigitalListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(PostingV2PostingDigitalListRequestSortDirEnum, key)) { + if (PostingV2PostingDigitalListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PostingV2PostingDigitalListRequestSortDirEnumFromJSON(json) { + return PostingV2PostingDigitalListRequestSortDirEnumFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PostingV2PostingDigitalListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListRequestWith.d.ts b/dist/esm/models/PostingV2PostingDigitalListRequestWith.d.ts new file mode 100644 index 0000000..7c41cea --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListRequestWith.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingV2PostingDigitalListRequestWith + */ +export interface PostingV2PostingDigitalListRequestWith { + /** + * `true`, чтобы добавить в ответ данные аналитики. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ финансовые данные. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListRequestWith + */ + financial_data?: boolean; + /** + * `true`, чтобы добавить в ответ юридическую информацию. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListRequestWith + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListRequestWith interface. + */ +export declare function instanceOfPostingV2PostingDigitalListRequestWith(value: object): value is PostingV2PostingDigitalListRequestWith; +export declare function PostingV2PostingDigitalListRequestWithFromJSON(json: any): PostingV2PostingDigitalListRequestWith; +export declare function PostingV2PostingDigitalListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListRequestWith; +export declare function PostingV2PostingDigitalListRequestWithToJSON(value?: PostingV2PostingDigitalListRequestWith | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListRequestWith.js b/dist/esm/models/PostingV2PostingDigitalListRequestWith.js new file mode 100644 index 0000000..74ca80f --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListRequestWith.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2PostingDigitalListRequestWith interface. + */ +export function instanceOfPostingV2PostingDigitalListRequestWith(value) { + return true; +} +export function PostingV2PostingDigitalListRequestWithFromJSON(json) { + return PostingV2PostingDigitalListRequestWithFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +export function PostingV2PostingDigitalListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponse.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponse.d.ts new file mode 100644 index 0000000..7b2931e --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListResponsePostings } from './PostingV2PostingDigitalListResponsePostings'; +/** + * + * @export + * @interface PostingV2PostingDigitalListResponse + */ +export interface PostingV2PostingDigitalListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV2PostingDigitalListResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListResponse + */ + has_next?: boolean; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponse interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponse(value: object): value is PostingV2PostingDigitalListResponse; +export declare function PostingV2PostingDigitalListResponseFromJSON(json: any): PostingV2PostingDigitalListResponse; +export declare function PostingV2PostingDigitalListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponse; +export declare function PostingV2PostingDigitalListResponseToJSON(value?: PostingV2PostingDigitalListResponse | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponse.js b/dist/esm/models/PostingV2PostingDigitalListResponse.js new file mode 100644 index 0000000..5d31409 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV2PostingDigitalListResponsePostingsFromJSON, PostingV2PostingDigitalListResponsePostingsToJSON, } from './PostingV2PostingDigitalListResponsePostings'; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponse interface. + */ +export function instanceOfPostingV2PostingDigitalListResponse(value) { + return true; +} +export function PostingV2PostingDigitalListResponseFromJSON(json) { + return PostingV2PostingDigitalListResponseFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV2PostingDigitalListResponsePostingsFromJSON)), + }; +} +export function PostingV2PostingDigitalListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV2PostingDigitalListResponsePostingsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostings.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostings.d.ts new file mode 100644 index 0000000..d0b5073 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostings.d.ts @@ -0,0 +1,125 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListResponsePostingsAnalyticsData } from './PostingV2PostingDigitalListResponsePostingsAnalyticsData'; +import type { PostingV2PostingDigitalListResponsePostingsExternalOrder } from './PostingV2PostingDigitalListResponsePostingsExternalOrder'; +import type { PostingV2PostingDigitalListResponsePostingsAdditionalData } from './PostingV2PostingDigitalListResponsePostingsAdditionalData'; +import type { PostingV2PostingDigitalListResponsePostingsCancellation } from './PostingV2PostingDigitalListResponsePostingsCancellation'; +import type { PostingV2PostingDigitalListResponsePostingsFinancialData } from './PostingV2PostingDigitalListResponsePostingsFinancialData'; +import type { PostingV2PostingDigitalListResponsePostingsProducts } from './PostingV2PostingDigitalListResponsePostingsProducts'; +import type { PostingV2PostingDigitalListResponsePostingsLegalInfo } from './PostingV2PostingDigitalListResponsePostingsLegalInfo'; +/** + * + * @export + * @interface PostingV2PostingDigitalListResponsePostings + */ +export interface PostingV2PostingDigitalListResponsePostings { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + additional_data?: Array; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsAnalyticsData} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + analytics_data?: PostingV2PostingDigitalListResponsePostingsAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + cancel_reason_id?: number; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsCancellation} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + cancellation?: PostingV2PostingDigitalListResponsePostingsCancellation; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + created_at?: string; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsExternalOrder} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + external_order?: PostingV2PostingDigitalListResponsePostingsExternalOrder; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsFinancialData} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + financial_data?: PostingV2PostingDigitalListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + in_process_at?: string; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsLegalInfo} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + legal_info?: PostingV2PostingDigitalListResponsePostingsLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + products?: Array; + /** + * Статус отправления: + * + * `awaiting_packaging` — ожидает упаковки. + * + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + status?: string; + /** + * Время, до которого нужно передать коды цифровых товаров. Передайте коды цифровых товаров с помощью метода [/v1/posting/digital/codes/upload](#operation/UploadPostingCodes). + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + waiting_deadline_for_digital_code?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostings interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostings(value: object): value is PostingV2PostingDigitalListResponsePostings; +export declare function PostingV2PostingDigitalListResponsePostingsFromJSON(json: any): PostingV2PostingDigitalListResponsePostings; +export declare function PostingV2PostingDigitalListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostings; +export declare function PostingV2PostingDigitalListResponsePostingsToJSON(value?: PostingV2PostingDigitalListResponsePostings | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostings.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostings.js new file mode 100644 index 0000000..295fb53 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostings.js @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON, PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON, } from './PostingV2PostingDigitalListResponsePostingsAnalyticsData'; +import { PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON, PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON, } from './PostingV2PostingDigitalListResponsePostingsExternalOrder'; +import { PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON, PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON, } from './PostingV2PostingDigitalListResponsePostingsAdditionalData'; +import { PostingV2PostingDigitalListResponsePostingsCancellationFromJSON, PostingV2PostingDigitalListResponsePostingsCancellationToJSON, } from './PostingV2PostingDigitalListResponsePostingsCancellation'; +import { PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON, PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON, } from './PostingV2PostingDigitalListResponsePostingsFinancialData'; +import { PostingV2PostingDigitalListResponsePostingsProductsFromJSON, PostingV2PostingDigitalListResponsePostingsProductsToJSON, } from './PostingV2PostingDigitalListResponsePostingsProducts'; +import { PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON, PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON, } from './PostingV2PostingDigitalListResponsePostingsLegalInfo'; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostings interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostings(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation': json['cancellation'] == null ? undefined : PostingV2PostingDigitalListResponsePostingsCancellationFromJSON(json['cancellation']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'external_order': json['external_order'] == null ? undefined : PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON(json['external_order']), + 'financial_data': json['financial_data'] == null ? undefined : PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV2PostingDigitalListResponsePostingsProductsFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'waiting_deadline_for_digital_code': json['waiting_deadline_for_digital_code'] == null ? undefined : json['waiting_deadline_for_digital_code'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON)), + 'analytics_data': PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation': PostingV2PostingDigitalListResponsePostingsCancellationToJSON(value['cancellation']), + 'created_at': value['created_at'], + 'external_order': PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON(value['external_order']), + 'financial_data': PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV2PostingDigitalListResponsePostingsProductsToJSON)), + 'status': value['status'], + 'waiting_deadline_for_digital_code': value['waiting_deadline_for_digital_code'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.d.ts new file mode 100644 index 0000000..e8d956d --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV2PostingDigitalListResponsePostingsAdditionalData + */ +export interface PostingV2PostingDigitalListResponsePostingsAdditionalData { + /** + * Ключ дополнительного параметра. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAdditionalData + */ + key?: string; + /** + * Значение дополнительного параметра. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAdditionalData + */ + value?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsAdditionalData interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsAdditionalData(value: object): value is PostingV2PostingDigitalListResponsePostingsAdditionalData; +export declare function PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsAdditionalData; +export declare function PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsAdditionalData; +export declare function PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON(value?: PostingV2PostingDigitalListResponsePostingsAdditionalData | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.js new file mode 100644 index 0000000..1258f40 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsAdditionalData interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsAdditionalData(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.d.ts new file mode 100644 index 0000000..a54aeab --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ +export interface PostingV2PostingDigitalListResponsePostingsAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + city?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + delivery_type?: string; + /** + * `true`, если получатель юридическое лицо. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + is_legal?: boolean; + /** + * `true`, если у получателя есть подписка Premium. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`; + * - `карта Ozon Банка`; + * - `автосписание с карты Ozon Банка при выдаче`; + * - `сохранённой картой при получении`; + * - `Система Быстрых Платежей`; + * - `Ozon Рассрочка`; + * - `оплата на расчётный счёт`; + * - `SberPay`; + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + region?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + warehouse_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsAnalyticsData interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsAnalyticsData(value: object): value is PostingV2PostingDigitalListResponsePostingsAnalyticsData; +export declare function PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsAnalyticsData; +export declare function PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsAnalyticsData; +export declare function PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON(value?: PostingV2PostingDigitalListResponsePostingsAnalyticsData | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.js new file mode 100644 index 0000000..7f41bac --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsAnalyticsData interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsAnalyticsData(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsCancellation.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsCancellation.d.ts new file mode 100644 index 0000000..f75e6d6 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsCancellation.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsCancellation + */ +export interface PostingV2PostingDigitalListResponsePostingsCancellation { + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент`, + * - `Покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system` — отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsCancellation + */ + cancellation_type?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsCancellation interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsCancellation(value: object): value is PostingV2PostingDigitalListResponsePostingsCancellation; +export declare function PostingV2PostingDigitalListResponsePostingsCancellationFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsCancellation; +export declare function PostingV2PostingDigitalListResponsePostingsCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsCancellation; +export declare function PostingV2PostingDigitalListResponsePostingsCancellationToJSON(value?: PostingV2PostingDigitalListResponsePostingsCancellation | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsCancellation.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsCancellation.js new file mode 100644 index 0000000..9ee57bf --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsCancellation.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsCancellation interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsCancellation(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsCancellationFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsCancellationFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.d.ts new file mode 100644 index 0000000..1f6da95 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsExternalOrder + */ +export interface PostingV2PostingDigitalListResponsePostingsExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListResponsePostingsExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsExternalOrder interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsExternalOrder(value: object): value is PostingV2PostingDigitalListResponsePostingsExternalOrder; +export declare function PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsExternalOrder; +export declare function PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsExternalOrder; +export declare function PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON(value?: PostingV2PostingDigitalListResponsePostingsExternalOrder | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.js new file mode 100644 index 0000000..0eb7e7d --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsExternalOrder interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsExternalOrder(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialData.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..1c228a0 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListResponsePostingsFinancialDataProducts } from './PostingV2PostingDigitalListResponsePostingsFinancialDataProducts'; +/** + * Финансовые данные. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsFinancialData + */ +export interface PostingV2PostingDigitalListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialData(value: object): value is PostingV2PostingDigitalListResponsePostingsFinancialData; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsFinancialData; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsFinancialData; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON(value?: PostingV2PostingDigitalListResponsePostingsFinancialData | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialData.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialData.js new file mode 100644 index 0000000..9db4b4d --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialData.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON, PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON, } from './PostingV2PostingDigitalListResponsePostingsFinancialDataProducts'; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialData interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialData(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..24bc82e --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission } from './PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission'; +/** + * + * @export + * @interface PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ +export interface PostingV2PostingDigitalListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + commission?: PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProducts(value: object): value is PostingV2PostingDigitalListResponsePostingsFinancialDataProducts; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsFinancialDataProducts; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsFinancialDataProducts; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON(value?: PostingV2PostingDigitalListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..93f2dd0 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON, PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON, } from './PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission'; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialDataProducts interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProducts(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'commission': json['commission'] == null ? undefined : PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON(json['commission']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'commission': PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON(value['commission']), + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..ab0a39d --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission { + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Код валюты, в которой рассчитывалась комиссия. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission + */ + currency?: string; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..ed9e8fa --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + 'percent': value['percent'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.d.ts new file mode 100644 index 0000000..8fa761d --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsLegalInfo + */ +export interface PostingV2PostingDigitalListResponsePostingsLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsLegalInfo interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsLegalInfo(value: object): value is PostingV2PostingDigitalListResponsePostingsLegalInfo; +export declare function PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsLegalInfo; +export declare function PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsLegalInfo; +export declare function PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON(value?: PostingV2PostingDigitalListResponsePostingsLegalInfo | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.js new file mode 100644 index 0000000..415c9ac --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsLegalInfo interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsLegalInfo(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsProducts.d.ts b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..63a92ae --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsProducts.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV2PostingDigitalListResponsePostingsProducts + */ +export interface PostingV2PostingDigitalListResponsePostingsProducts { + /** + * Название товара. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + quantity?: number; + /** + * Количество кодов цифровых товаров, которые нужно передать по товару в отправлении. Передайте коды цифровых товаров с помощью метода [/v1/posting/digital/codes/upload](#operation/UploadPostingCodes). + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + required_qty_for_digital_code?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + sku?: number; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsProducts(value: object): value is PostingV2PostingDigitalListResponsePostingsProducts; +export declare function PostingV2PostingDigitalListResponsePostingsProductsFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsProducts; +export declare function PostingV2PostingDigitalListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsProducts; +export declare function PostingV2PostingDigitalListResponsePostingsProductsToJSON(value?: PostingV2PostingDigitalListResponsePostingsProducts | null): any; diff --git a/dist/esm/models/PostingV2PostingDigitalListResponsePostingsProducts.js b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsProducts.js new file mode 100644 index 0000000..e1bb123 --- /dev/null +++ b/dist/esm/models/PostingV2PostingDigitalListResponsePostingsProducts.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyPostingMoneyFromJSON, MoneyPostingMoneyToJSON, } from './MoneyPostingMoney'; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsProducts interface. + */ +export function instanceOfPostingV2PostingDigitalListResponsePostingsProducts(value) { + return true; +} +export function PostingV2PostingDigitalListResponsePostingsProductsFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsProductsFromJSONTyped(json, false); +} +export function PostingV2PostingDigitalListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : MoneyPostingMoneyFromJSON(json['price']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'required_qty_for_digital_code': json['required_qty_for_digital_code'] == null ? undefined : json['required_qty_for_digital_code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function PostingV2PostingDigitalListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': MoneyPostingMoneyToJSON(value['price']), + 'quantity': value['quantity'], + 'required_qty_for_digital_code': value['required_qty_for_digital_code'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/PostingV3FbsPostingContainerCargoTypeEnum.d.ts b/dist/esm/models/PostingV3FbsPostingContainerCargoTypeEnum.d.ts new file mode 100644 index 0000000..7a69664 --- /dev/null +++ b/dist/esm/models/PostingV3FbsPostingContainerCargoTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export declare const PostingV3FbsPostingContainerCargoTypeEnum: { + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type PostingV3FbsPostingContainerCargoTypeEnum = typeof PostingV3FbsPostingContainerCargoTypeEnum[keyof typeof PostingV3FbsPostingContainerCargoTypeEnum]; +export declare function instanceOfPostingV3FbsPostingContainerCargoTypeEnum(value: any): boolean; +export declare function PostingV3FbsPostingContainerCargoTypeEnumFromJSON(json: any): PostingV3FbsPostingContainerCargoTypeEnum; +export declare function PostingV3FbsPostingContainerCargoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3FbsPostingContainerCargoTypeEnum; +export declare function PostingV3FbsPostingContainerCargoTypeEnumToJSON(value?: PostingV3FbsPostingContainerCargoTypeEnum | null): any; diff --git a/dist/esm/models/PostingV3FbsPostingContainerCargoTypeEnum.js b/dist/esm/models/PostingV3FbsPostingContainerCargoTypeEnum.js new file mode 100644 index 0000000..28450b7 --- /dev/null +++ b/dist/esm/models/PostingV3FbsPostingContainerCargoTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export const PostingV3FbsPostingContainerCargoTypeEnum = { + BOX: 'BOX', + PALLET: 'PALLET' +}; +export function instanceOfPostingV3FbsPostingContainerCargoTypeEnum(value) { + for (const key in PostingV3FbsPostingContainerCargoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(PostingV3FbsPostingContainerCargoTypeEnum, key)) { + if (PostingV3FbsPostingContainerCargoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PostingV3FbsPostingContainerCargoTypeEnumFromJSON(json) { + return PostingV3FbsPostingContainerCargoTypeEnumFromJSONTyped(json, false); +} +export function PostingV3FbsPostingContainerCargoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PostingV3FbsPostingContainerCargoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PostingV3FbsPostingDetailExternalOrder.d.ts b/dist/esm/models/PostingV3FbsPostingDetailExternalOrder.d.ts new file mode 100644 index 0000000..c0f550e --- /dev/null +++ b/dist/esm/models/PostingV3FbsPostingDetailExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV3FbsPostingDetailExternalOrder + */ +export interface PostingV3FbsPostingDetailExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV3FbsPostingDetailExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV3FbsPostingDetailExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV3FbsPostingDetailExternalOrder interface. + */ +export declare function instanceOfPostingV3FbsPostingDetailExternalOrder(value: object): value is PostingV3FbsPostingDetailExternalOrder; +export declare function PostingV3FbsPostingDetailExternalOrderFromJSON(json: any): PostingV3FbsPostingDetailExternalOrder; +export declare function PostingV3FbsPostingDetailExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3FbsPostingDetailExternalOrder; +export declare function PostingV3FbsPostingDetailExternalOrderToJSON(value?: PostingV3FbsPostingDetailExternalOrder | null): any; diff --git a/dist/esm/models/PostingV3FbsPostingDetailExternalOrder.js b/dist/esm/models/PostingV3FbsPostingDetailExternalOrder.js new file mode 100644 index 0000000..17c5c2b --- /dev/null +++ b/dist/esm/models/PostingV3FbsPostingDetailExternalOrder.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3FbsPostingDetailExternalOrder interface. + */ +export function instanceOfPostingV3FbsPostingDetailExternalOrder(value) { + return true; +} +export function PostingV3FbsPostingDetailExternalOrderFromJSON(json) { + return PostingV3FbsPostingDetailExternalOrderFromJSONTyped(json, false); +} +export function PostingV3FbsPostingDetailExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +export function PostingV3FbsPostingDetailExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/esm/models/PostingV3FbsPostingDetailSortingCenter.d.ts b/dist/esm/models/PostingV3FbsPostingDetailSortingCenter.d.ts new file mode 100644 index 0000000..fe82fa9 --- /dev/null +++ b/dist/esm/models/PostingV3FbsPostingDetailSortingCenter.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сортировочном центре, в который нужно привезти отправление. Для `integration_type_flow = hybrid_3pl_tracking`. + * Если значение `null`, информацию получить не удалось. + * + * @export + * @interface PostingV3FbsPostingDetailSortingCenter + */ +export interface PostingV3FbsPostingDetailSortingCenter { + /** + * Код сортировочного центра. + * @type {string} + * @memberof PostingV3FbsPostingDetailSortingCenter + */ + code?: string; + /** + * Название сортировочного центра. + * @type {string} + * @memberof PostingV3FbsPostingDetailSortingCenter + */ + name?: string; +} +/** + * Check if a given object implements the PostingV3FbsPostingDetailSortingCenter interface. + */ +export declare function instanceOfPostingV3FbsPostingDetailSortingCenter(value: object): value is PostingV3FbsPostingDetailSortingCenter; +export declare function PostingV3FbsPostingDetailSortingCenterFromJSON(json: any): PostingV3FbsPostingDetailSortingCenter; +export declare function PostingV3FbsPostingDetailSortingCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3FbsPostingDetailSortingCenter; +export declare function PostingV3FbsPostingDetailSortingCenterToJSON(value?: PostingV3FbsPostingDetailSortingCenter | null): any; diff --git a/dist/esm/models/PostingV3FbsPostingDetailSortingCenter.js b/dist/esm/models/PostingV3FbsPostingDetailSortingCenter.js new file mode 100644 index 0000000..402f4fc --- /dev/null +++ b/dist/esm/models/PostingV3FbsPostingDetailSortingCenter.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3FbsPostingDetailSortingCenter interface. + */ +export function instanceOfPostingV3FbsPostingDetailSortingCenter(value) { + return true; +} +export function PostingV3FbsPostingDetailSortingCenterFromJSON(json) { + return PostingV3FbsPostingDetailSortingCenterFromJSONTyped(json, false); +} +export function PostingV3FbsPostingDetailSortingCenterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function PostingV3FbsPostingDetailSortingCenterToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/PostingV3FbsPostingSortingCenter.d.ts b/dist/esm/models/PostingV3FbsPostingSortingCenter.d.ts new file mode 100644 index 0000000..7e55bc4 --- /dev/null +++ b/dist/esm/models/PostingV3FbsPostingSortingCenter.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сортировочном центре, в который нужно привезти отправление. Для `integration_type_flow = hybrid_3pl_tracking`. + * Если значение `null`, информацию получить не удалось. + * + * @export + * @interface PostingV3FbsPostingSortingCenter + */ +export interface PostingV3FbsPostingSortingCenter { + /** + * Код сортировочного центра. + * @type {string} + * @memberof PostingV3FbsPostingSortingCenter + */ + code?: string; + /** + * Название сортировочного центра. + * @type {string} + * @memberof PostingV3FbsPostingSortingCenter + */ + name?: string; +} +/** + * Check if a given object implements the PostingV3FbsPostingSortingCenter interface. + */ +export declare function instanceOfPostingV3FbsPostingSortingCenter(value: object): value is PostingV3FbsPostingSortingCenter; +export declare function PostingV3FbsPostingSortingCenterFromJSON(json: any): PostingV3FbsPostingSortingCenter; +export declare function PostingV3FbsPostingSortingCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3FbsPostingSortingCenter; +export declare function PostingV3FbsPostingSortingCenterToJSON(value?: PostingV3FbsPostingSortingCenter | null): any; diff --git a/dist/esm/models/PostingV3FbsPostingSortingCenter.js b/dist/esm/models/PostingV3FbsPostingSortingCenter.js new file mode 100644 index 0000000..e9165ce --- /dev/null +++ b/dist/esm/models/PostingV3FbsPostingSortingCenter.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3FbsPostingSortingCenter interface. + */ +export function instanceOfPostingV3FbsPostingSortingCenter(value) { + return true; +} +export function PostingV3FbsPostingSortingCenterFromJSON(json) { + return PostingV3FbsPostingSortingCenterFromJSONTyped(json, false); +} +export function PostingV3FbsPostingSortingCenterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function PostingV3FbsPostingSortingCenterToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListRequest.d.ts b/dist/esm/models/PostingV3PostingFboListRequest.d.ts new file mode 100644 index 0000000..c3a30b4 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListRequest.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListRequestFilter } from './PostingV3PostingFboListRequestFilter'; +import type { PostingV3PostingFboListRequestSortDirEnum } from './PostingV3PostingFboListRequestSortDirEnum'; +import type { PostingV3PostingFboListRequestWith } from './PostingV3PostingFboListRequestWith'; +/** + * + * @export + * @interface PostingV3PostingFboListRequest + */ +export interface PostingV3PostingFboListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV3PostingFboListRequest + */ + cursor?: string; + /** + * + * @type {PostingV3PostingFboListRequestFilter} + * @memberof PostingV3PostingFboListRequest + */ + filter?: PostingV3PostingFboListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV3PostingFboListRequest + */ + limit?: number; + /** + * + * @type {PostingV3PostingFboListRequestSortDirEnum} + * @memberof PostingV3PostingFboListRequest + */ + sort_dir?: PostingV3PostingFboListRequestSortDirEnum; + /** + * `true`, чтобы включить транслитерацию адреса из кириллицы в латиницу. + * + * @type {boolean} + * @memberof PostingV3PostingFboListRequest + */ + translit?: boolean; + /** + * + * @type {PostingV3PostingFboListRequestWith} + * @memberof PostingV3PostingFboListRequest + */ + _with?: PostingV3PostingFboListRequestWith; +} +/** + * Check if a given object implements the PostingV3PostingFboListRequest interface. + */ +export declare function instanceOfPostingV3PostingFboListRequest(value: object): value is PostingV3PostingFboListRequest; +export declare function PostingV3PostingFboListRequestFromJSON(json: any): PostingV3PostingFboListRequest; +export declare function PostingV3PostingFboListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListRequest; +export declare function PostingV3PostingFboListRequestToJSON(value?: PostingV3PostingFboListRequest | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListRequest.js b/dist/esm/models/PostingV3PostingFboListRequest.js new file mode 100644 index 0000000..2ff5672 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListRequest.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV3PostingFboListRequestFilterFromJSON, PostingV3PostingFboListRequestFilterToJSON, } from './PostingV3PostingFboListRequestFilter'; +import { PostingV3PostingFboListRequestSortDirEnumFromJSON, PostingV3PostingFboListRequestSortDirEnumToJSON, } from './PostingV3PostingFboListRequestSortDirEnum'; +import { PostingV3PostingFboListRequestWithFromJSON, PostingV3PostingFboListRequestWithToJSON, } from './PostingV3PostingFboListRequestWith'; +/** + * Check if a given object implements the PostingV3PostingFboListRequest interface. + */ +export function instanceOfPostingV3PostingFboListRequest(value) { + return true; +} +export function PostingV3PostingFboListRequestFromJSON(json) { + return PostingV3PostingFboListRequestFromJSONTyped(json, false); +} +export function PostingV3PostingFboListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : PostingV3PostingFboListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : PostingV3PostingFboListRequestSortDirEnumFromJSON(json['sort_dir']), + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : PostingV3PostingFboListRequestWithFromJSON(json['with']), + }; +} +export function PostingV3PostingFboListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': PostingV3PostingFboListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'sort_dir': PostingV3PostingFboListRequestSortDirEnumToJSON(value['sort_dir']), + 'translit': value['translit'], + 'with': PostingV3PostingFboListRequestWithToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListRequestFilter.d.ts b/dist/esm/models/PostingV3PostingFboListRequestFilter.d.ts new file mode 100644 index 0000000..cb3a163 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListRequestFilter.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface PostingV3PostingFboListRequestFilter + */ +export interface PostingV3PostingFboListRequestFilter { + /** + * Номера заказов, к которым относятся отправления. + * @type {Array} + * @memberof PostingV3PostingFboListRequestFilter + */ + order_numbers?: Array; + /** + * Идентификаторы отправлений. + * @type {Array} + * @memberof PostingV3PostingFboListRequestFilter + */ + posting_numbers?: Array; + /** + * Начало периода. + * @type {string} + * @memberof PostingV3PostingFboListRequestFilter + */ + since?: string; + /** + * Статус отправления: + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_deliver` — ожидает отгрузки; + * - `delivering` — доставляется; + * - `delivered` — доставлено; + * - `cancelled` — отменено. + * + * @type {Array} + * @memberof PostingV3PostingFboListRequestFilter + */ + statuses?: Array; + /** + * Конец периода. + * @type {string} + * @memberof PostingV3PostingFboListRequestFilter + */ + to?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListRequestFilter interface. + */ +export declare function instanceOfPostingV3PostingFboListRequestFilter(value: object): value is PostingV3PostingFboListRequestFilter; +export declare function PostingV3PostingFboListRequestFilterFromJSON(json: any): PostingV3PostingFboListRequestFilter; +export declare function PostingV3PostingFboListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListRequestFilter; +export declare function PostingV3PostingFboListRequestFilterToJSON(value?: PostingV3PostingFboListRequestFilter | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListRequestFilter.js b/dist/esm/models/PostingV3PostingFboListRequestFilter.js new file mode 100644 index 0000000..5a0091f --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListRequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3PostingFboListRequestFilter interface. + */ +export function instanceOfPostingV3PostingFboListRequestFilter(value) { + return true; +} +export function PostingV3PostingFboListRequestFilterFromJSON(json) { + return PostingV3PostingFboListRequestFilterFromJSONTyped(json, false); +} +export function PostingV3PostingFboListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_numbers': json['order_numbers'] == null ? undefined : json['order_numbers'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'since': json['since'] == null ? undefined : json['since'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function PostingV3PostingFboListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_numbers': value['order_numbers'], + 'posting_numbers': value['posting_numbers'], + 'since': value['since'], + 'statuses': value['statuses'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListRequestSortDirEnum.d.ts b/dist/esm/models/PostingV3PostingFboListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..da8e3d7 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV3PostingFboListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV3PostingFboListRequestSortDirEnum = typeof PostingV3PostingFboListRequestSortDirEnum[keyof typeof PostingV3PostingFboListRequestSortDirEnum]; +export declare function instanceOfPostingV3PostingFboListRequestSortDirEnum(value: any): boolean; +export declare function PostingV3PostingFboListRequestSortDirEnumFromJSON(json: any): PostingV3PostingFboListRequestSortDirEnum; +export declare function PostingV3PostingFboListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListRequestSortDirEnum; +export declare function PostingV3PostingFboListRequestSortDirEnumToJSON(value?: PostingV3PostingFboListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListRequestSortDirEnum.js b/dist/esm/models/PostingV3PostingFboListRequestSortDirEnum.js new file mode 100644 index 0000000..cb97e5e --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const PostingV3PostingFboListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfPostingV3PostingFboListRequestSortDirEnum(value) { + for (const key in PostingV3PostingFboListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(PostingV3PostingFboListRequestSortDirEnum, key)) { + if (PostingV3PostingFboListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PostingV3PostingFboListRequestSortDirEnumFromJSON(json) { + return PostingV3PostingFboListRequestSortDirEnumFromJSONTyped(json, false); +} +export function PostingV3PostingFboListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PostingV3PostingFboListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PostingV3PostingFboListRequestWith.d.ts b/dist/esm/models/PostingV3PostingFboListRequestWith.d.ts new file mode 100644 index 0000000..e3c7ad0 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListRequestWith.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingV3PostingFboListRequestWith + */ +export interface PostingV3PostingFboListRequestWith { + /** + * `true`, чтобы добавить в ответ данные аналитики. + * + * @type {boolean} + * @memberof PostingV3PostingFboListRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ финансовые данные. + * + * @type {boolean} + * @memberof PostingV3PostingFboListRequestWith + */ + financial_data?: boolean; + /** + * `true`, чтобы добавить в ответ юридическую информацию. + * + * @type {boolean} + * @memberof PostingV3PostingFboListRequestWith + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingV3PostingFboListRequestWith interface. + */ +export declare function instanceOfPostingV3PostingFboListRequestWith(value: object): value is PostingV3PostingFboListRequestWith; +export declare function PostingV3PostingFboListRequestWithFromJSON(json: any): PostingV3PostingFboListRequestWith; +export declare function PostingV3PostingFboListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListRequestWith; +export declare function PostingV3PostingFboListRequestWithToJSON(value?: PostingV3PostingFboListRequestWith | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListRequestWith.js b/dist/esm/models/PostingV3PostingFboListRequestWith.js new file mode 100644 index 0000000..4c91cb4 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListRequestWith.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3PostingFboListRequestWith interface. + */ +export function instanceOfPostingV3PostingFboListRequestWith(value) { + return true; +} +export function PostingV3PostingFboListRequestWithFromJSON(json) { + return PostingV3PostingFboListRequestWithFromJSONTyped(json, false); +} +export function PostingV3PostingFboListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +export function PostingV3PostingFboListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponse.d.ts b/dist/esm/models/PostingV3PostingFboListResponse.d.ts new file mode 100644 index 0000000..6ad211a --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListResponsePostings } from './PostingV3PostingFboListResponsePostings'; +/** + * + * @export + * @interface PostingV3PostingFboListResponse + */ +export interface PostingV3PostingFboListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV3PostingFboListResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponse + */ + has_next?: boolean; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV3PostingFboListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponse interface. + */ +export declare function instanceOfPostingV3PostingFboListResponse(value: object): value is PostingV3PostingFboListResponse; +export declare function PostingV3PostingFboListResponseFromJSON(json: any): PostingV3PostingFboListResponse; +export declare function PostingV3PostingFboListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponse; +export declare function PostingV3PostingFboListResponseToJSON(value?: PostingV3PostingFboListResponse | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponse.js b/dist/esm/models/PostingV3PostingFboListResponse.js new file mode 100644 index 0000000..d10f351 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV3PostingFboListResponsePostingsFromJSON, PostingV3PostingFboListResponsePostingsToJSON, } from './PostingV3PostingFboListResponsePostings'; +/** + * Check if a given object implements the PostingV3PostingFboListResponse interface. + */ +export function instanceOfPostingV3PostingFboListResponse(value) { + return true; +} +export function PostingV3PostingFboListResponseFromJSON(json) { + return PostingV3PostingFboListResponseFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV3PostingFboListResponsePostingsFromJSON)), + }; +} +export function PostingV3PostingFboListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV3PostingFboListResponsePostingsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostings.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostings.d.ts new file mode 100644 index 0000000..be49bf3 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostings.d.ts @@ -0,0 +1,141 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListResponsePostingsAdditionalData } from './PostingV3PostingFboListResponsePostingsAdditionalData'; +import type { PostingV3PostingFboListResponsePostingsProducts } from './PostingV3PostingFboListResponsePostingsProducts'; +import type { PostingV3PostingFboListResponsePostingsCancellation } from './PostingV3PostingFboListResponsePostingsCancellation'; +import type { PostingV3PostingFboListResponsePostingsFinancialData } from './PostingV3PostingFboListResponsePostingsFinancialData'; +import type { PostingV3PostingFboListResponsePostingsLegalInfo } from './PostingV3PostingFboListResponsePostingsLegalInfo'; +import type { PostingV3PostingFboListResponsePostingsAnalyticsData } from './PostingV3PostingFboListResponsePostingsAnalyticsData'; +import type { PostingV3PostingFboListResponsePostingsExternalOrder } from './PostingV3PostingFboListResponsePostingsExternalOrder'; +/** + * + * @export + * @interface PostingV3PostingFboListResponsePostings + */ +export interface PostingV3PostingFboListResponsePostings { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostings + */ + additional_data?: Array; + /** + * + * @type {PostingV3PostingFboListResponsePostingsAnalyticsData} + * @memberof PostingV3PostingFboListResponsePostings + */ + analytics_data?: PostingV3PostingFboListResponsePostingsAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostings + */ + cancel_reason_id?: number; + /** + * + * @type {PostingV3PostingFboListResponsePostingsCancellation} + * @memberof PostingV3PostingFboListResponsePostings + */ + cancellation?: PostingV3PostingFboListResponsePostingsCancellation; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + created_at?: string; + /** + * + * @type {PostingV3PostingFboListResponsePostingsExternalOrder} + * @memberof PostingV3PostingFboListResponsePostings + */ + external_order?: PostingV3PostingFboListResponsePostingsExternalOrder; + /** + * + * @type {PostingV3PostingFboListResponsePostingsFinancialData} + * @memberof PostingV3PostingFboListResponsePostings + */ + financial_data?: PostingV3PostingFboListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + in_process_at?: string; + /** + * + * @type {PostingV3PostingFboListResponsePostingsLegalInfo} + * @memberof PostingV3PostingFboListResponsePostings + */ + legal_info?: PostingV3PostingFboListResponsePostingsLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostings + */ + products?: Array; + /** + * Статус отправления: + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_deliver` — ожидает отгрузки; + * - `delivering` — доставляется; + * - `delivered` — доставлено; + * - `cancelled` — отменено. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_split_pending`, `posting_created` — создано; + * - `posting_packing` — на упаковке; + * - `posting_transferring_to_delivery` — передаётся в доставку; + * - `posting_on_way_to_city` — на пути в город доставки; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_delivered` — доставлено курьером; + * - `posting_received` — получено в пункте выдачи; + * - `posting_canceled` — отменено. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + substatus?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostings interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostings(value: object): value is PostingV3PostingFboListResponsePostings; +export declare function PostingV3PostingFboListResponsePostingsFromJSON(json: any): PostingV3PostingFboListResponsePostings; +export declare function PostingV3PostingFboListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostings; +export declare function PostingV3PostingFboListResponsePostingsToJSON(value?: PostingV3PostingFboListResponsePostings | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostings.js b/dist/esm/models/PostingV3PostingFboListResponsePostings.js new file mode 100644 index 0000000..006df31 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostings.js @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON, PostingV3PostingFboListResponsePostingsAdditionalDataToJSON, } from './PostingV3PostingFboListResponsePostingsAdditionalData'; +import { PostingV3PostingFboListResponsePostingsProductsFromJSON, PostingV3PostingFboListResponsePostingsProductsToJSON, } from './PostingV3PostingFboListResponsePostingsProducts'; +import { PostingV3PostingFboListResponsePostingsCancellationFromJSON, PostingV3PostingFboListResponsePostingsCancellationToJSON, } from './PostingV3PostingFboListResponsePostingsCancellation'; +import { PostingV3PostingFboListResponsePostingsFinancialDataFromJSON, PostingV3PostingFboListResponsePostingsFinancialDataToJSON, } from './PostingV3PostingFboListResponsePostingsFinancialData'; +import { PostingV3PostingFboListResponsePostingsLegalInfoFromJSON, PostingV3PostingFboListResponsePostingsLegalInfoToJSON, } from './PostingV3PostingFboListResponsePostingsLegalInfo'; +import { PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON, PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON, } from './PostingV3PostingFboListResponsePostingsAnalyticsData'; +import { PostingV3PostingFboListResponsePostingsExternalOrderFromJSON, PostingV3PostingFboListResponsePostingsExternalOrderToJSON, } from './PostingV3PostingFboListResponsePostingsExternalOrder'; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostings interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostings(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsFromJSON(json) { + return PostingV3PostingFboListResponsePostingsFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation': json['cancellation'] == null ? undefined : PostingV3PostingFboListResponsePostingsCancellationFromJSON(json['cancellation']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'external_order': json['external_order'] == null ? undefined : PostingV3PostingFboListResponsePostingsExternalOrderFromJSON(json['external_order']), + 'financial_data': json['financial_data'] == null ? undefined : PostingV3PostingFboListResponsePostingsFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : PostingV3PostingFboListResponsePostingsLegalInfoFromJSON(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV3PostingFboListResponsePostingsProductsFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + }; +} +export function PostingV3PostingFboListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(PostingV3PostingFboListResponsePostingsAdditionalDataToJSON)), + 'analytics_data': PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation': PostingV3PostingFboListResponsePostingsCancellationToJSON(value['cancellation']), + 'created_at': value['created_at'], + 'external_order': PostingV3PostingFboListResponsePostingsExternalOrderToJSON(value['external_order']), + 'financial_data': PostingV3PostingFboListResponsePostingsFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': PostingV3PostingFboListResponsePostingsLegalInfoToJSON(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV3PostingFboListResponsePostingsProductsToJSON)), + 'status': value['status'], + 'substatus': value['substatus'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsAdditionalData.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsAdditionalData.d.ts new file mode 100644 index 0000000..bd54c13 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsAdditionalData.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV3PostingFboListResponsePostingsAdditionalData + */ +export interface PostingV3PostingFboListResponsePostingsAdditionalData { + /** + * Ключ дополнительного параметра. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAdditionalData + */ + key?: string; + /** + * Значение дополнительного параметра. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAdditionalData + */ + value?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsAdditionalData interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsAdditionalData(value: object): value is PostingV3PostingFboListResponsePostingsAdditionalData; +export declare function PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON(json: any): PostingV3PostingFboListResponsePostingsAdditionalData; +export declare function PostingV3PostingFboListResponsePostingsAdditionalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsAdditionalData; +export declare function PostingV3PostingFboListResponsePostingsAdditionalDataToJSON(value?: PostingV3PostingFboListResponsePostingsAdditionalData | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsAdditionalData.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsAdditionalData.js new file mode 100644 index 0000000..74cd0fe --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsAdditionalData.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsAdditionalData interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsAdditionalData(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON(json) { + return PostingV3PostingFboListResponsePostingsAdditionalDataFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsAdditionalDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function PostingV3PostingFboListResponsePostingsAdditionalDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsAnalyticsData.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsAnalyticsData.d.ts new file mode 100644 index 0000000..9e57c6c --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsAnalyticsData.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV3PostingFboListResponsePostingsAnalyticsData + */ +export interface PostingV3PostingFboListResponsePostingsAnalyticsData { + /** + * Город доставки. Только для продавцов из СНГ. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + client_delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + delivery_type?: string; + /** + * `true`, если получатель юридическое лицо. + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + is_legal?: boolean; + /** + * `true`, если у получателя есть подписка Premium. + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`; + * - `карта Ozon Банка`; + * - `автосписание с карты Ozon Банка при выдаче`; + * - `сохранённой картой при получении`; + * - `Система Быстрых Платежей`; + * - `Ozon Рассрочка`; + * - `оплата на расчётный счёт`; + * - `SberPay`; + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + payment_type_group_name?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + warehouse_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsAnalyticsData interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsAnalyticsData(value: object): value is PostingV3PostingFboListResponsePostingsAnalyticsData; +export declare function PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON(json: any): PostingV3PostingFboListResponsePostingsAnalyticsData; +export declare function PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsAnalyticsData; +export declare function PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON(value?: PostingV3PostingFboListResponsePostingsAnalyticsData | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsAnalyticsData.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsAnalyticsData.js new file mode 100644 index 0000000..89f7b6c --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsAnalyticsData.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsAnalyticsData interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsAnalyticsData(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON(json) { + return PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsCancellation.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsCancellation.d.ts new file mode 100644 index 0000000..6bf0557 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsCancellation.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV3PostingFboListResponsePostingsCancellation + */ +export interface PostingV3PostingFboListResponsePostingsCancellation { + /** + * Причина отмены. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsCancellation + */ + cancel_reason?: string; + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент`, + * - `Покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system` — отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsCancellation + */ + cancellation_type?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsCancellation interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsCancellation(value: object): value is PostingV3PostingFboListResponsePostingsCancellation; +export declare function PostingV3PostingFboListResponsePostingsCancellationFromJSON(json: any): PostingV3PostingFboListResponsePostingsCancellation; +export declare function PostingV3PostingFboListResponsePostingsCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsCancellation; +export declare function PostingV3PostingFboListResponsePostingsCancellationToJSON(value?: PostingV3PostingFboListResponsePostingsCancellation | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsCancellation.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsCancellation.js new file mode 100644 index 0000000..a302be9 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsCancellation.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsCancellation interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsCancellation(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsCancellationFromJSON(json) { + return PostingV3PostingFboListResponsePostingsCancellationFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + }; +} +export function PostingV3PostingFboListResponsePostingsCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason': value['cancel_reason'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsExternalOrder.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsExternalOrder.d.ts new file mode 100644 index 0000000..5c9e5b0 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV3PostingFboListResponsePostingsExternalOrder + */ +export interface PostingV3PostingFboListResponsePostingsExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponsePostingsExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsExternalOrder interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsExternalOrder(value: object): value is PostingV3PostingFboListResponsePostingsExternalOrder; +export declare function PostingV3PostingFboListResponsePostingsExternalOrderFromJSON(json: any): PostingV3PostingFboListResponsePostingsExternalOrder; +export declare function PostingV3PostingFboListResponsePostingsExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsExternalOrder; +export declare function PostingV3PostingFboListResponsePostingsExternalOrderToJSON(value?: PostingV3PostingFboListResponsePostingsExternalOrder | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsExternalOrder.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsExternalOrder.js new file mode 100644 index 0000000..ba6c53c --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsExternalOrder.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsExternalOrder interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsExternalOrder(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsExternalOrderFromJSON(json) { + return PostingV3PostingFboListResponsePostingsExternalOrderFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +export function PostingV3PostingFboListResponsePostingsExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialData.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..6a7230a --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListResponsePostingsFinancialDataProducts } from './PostingV3PostingFboListResponsePostingsFinancialDataProducts'; +/** + * Финансовые данные. + * @export + * @interface PostingV3PostingFboListResponsePostingsFinancialData + */ +export interface PostingV3PostingFboListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsFinancialData(value: object): value is PostingV3PostingFboListResponsePostingsFinancialData; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataFromJSON(json: any): PostingV3PostingFboListResponsePostingsFinancialData; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsFinancialData; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataToJSON(value?: PostingV3PostingFboListResponsePostingsFinancialData | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialData.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialData.js new file mode 100644 index 0000000..6962336 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialData.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON, PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON, } from './PostingV3PostingFboListResponsePostingsFinancialDataProducts'; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialData interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsFinancialData(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsFinancialDataFromJSON(json) { + return PostingV3PostingFboListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +export function PostingV3PostingFboListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..98cbedc --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission } from './PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission'; +/** + * + * @export + * @interface PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ +export interface PostingV3PostingFboListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + commission?: PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProducts(value: object): value is PostingV3PostingFboListResponsePostingsFinancialDataProducts; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV3PostingFboListResponsePostingsFinancialDataProducts; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsFinancialDataProducts; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON(value?: PostingV3PostingFboListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..3695534 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON, PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON, } from './PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission'; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialDataProducts interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProducts(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'commission': json['commission'] == null ? undefined : PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON(json['commission']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +export function PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'commission': PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON(value['commission']), + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..fee5f61 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission { + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Код валюты, в которой рассчитывалась комиссия. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission + */ + currency?: string; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..87d31d1 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +export function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + 'percent': value['percent'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsLegalInfo.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsLegalInfo.d.ts new file mode 100644 index 0000000..9de181f --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingV3PostingFboListResponsePostingsLegalInfo + */ +export interface PostingV3PostingFboListResponsePostingsLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsLegalInfo interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsLegalInfo(value: object): value is PostingV3PostingFboListResponsePostingsLegalInfo; +export declare function PostingV3PostingFboListResponsePostingsLegalInfoFromJSON(json: any): PostingV3PostingFboListResponsePostingsLegalInfo; +export declare function PostingV3PostingFboListResponsePostingsLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsLegalInfo; +export declare function PostingV3PostingFboListResponsePostingsLegalInfoToJSON(value?: PostingV3PostingFboListResponsePostingsLegalInfo | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsLegalInfo.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsLegalInfo.js new file mode 100644 index 0000000..b9e9ba1 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsLegalInfo.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsLegalInfo interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsLegalInfo(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsLegalInfoFromJSON(json) { + return PostingV3PostingFboListResponsePostingsLegalInfoFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +export function PostingV3PostingFboListResponsePostingsLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsProducts.d.ts b/dist/esm/models/PostingV3PostingFboListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..3c2d3b7 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsProducts.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV3PostingFboListResponsePostingsProducts + */ +export interface PostingV3PostingFboListResponsePostingsProducts { + /** + * Коды активации для услуг и цифровых товаров. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + digital_codes?: Array; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + is_marketplace_buyout?: boolean; + /** + * Название товара. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + sku?: number; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsProducts(value: object): value is PostingV3PostingFboListResponsePostingsProducts; +export declare function PostingV3PostingFboListResponsePostingsProductsFromJSON(json: any): PostingV3PostingFboListResponsePostingsProducts; +export declare function PostingV3PostingFboListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsProducts; +export declare function PostingV3PostingFboListResponsePostingsProductsToJSON(value?: PostingV3PostingFboListResponsePostingsProducts | null): any; diff --git a/dist/esm/models/PostingV3PostingFboListResponsePostingsProducts.js b/dist/esm/models/PostingV3PostingFboListResponsePostingsProducts.js new file mode 100644 index 0000000..4281c60 --- /dev/null +++ b/dist/esm/models/PostingV3PostingFboListResponsePostingsProducts.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyPostingMoneyFromJSON, MoneyPostingMoneyToJSON, } from './MoneyPostingMoney'; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsProducts interface. + */ +export function instanceOfPostingV3PostingFboListResponsePostingsProducts(value) { + return true; +} +export function PostingV3PostingFboListResponsePostingsProductsFromJSON(json) { + return PostingV3PostingFboListResponsePostingsProductsFromJSONTyped(json, false); +} +export function PostingV3PostingFboListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'digital_codes': json['digital_codes'] == null ? undefined : json['digital_codes'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : MoneyPostingMoneyFromJSON(json['price']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function PostingV3PostingFboListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'digital_codes': value['digital_codes'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': MoneyPostingMoneyToJSON(value['price']), + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListRequest.d.ts b/dist/esm/models/PostingV4PostingFbsListRequest.d.ts new file mode 100644 index 0000000..7f3ff8f --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequest.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListRequestFilter } from './PostingV4PostingFbsListRequestFilter'; +import type { PostingV4PostingFbsListRequestSortDirEnum } from './PostingV4PostingFbsListRequestSortDirEnum'; +import type { PostingV4PostingFbsListRequestWith } from './PostingV4PostingFbsListRequestWith'; +/** + * + * @export + * @interface PostingV4PostingFbsListRequest + */ +export interface PostingV4PostingFbsListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV4PostingFbsListRequest + */ + cursor?: string; + /** + * + * @type {PostingV4PostingFbsListRequestFilter} + * @memberof PostingV4PostingFbsListRequest + */ + filter: PostingV4PostingFbsListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV4PostingFbsListRequest + */ + limit: number; + /** + * + * @type {PostingV4PostingFbsListRequestSortDirEnum} + * @memberof PostingV4PostingFbsListRequest + */ + sort_dir?: PostingV4PostingFbsListRequestSortDirEnum; + /** + * `true`, чтобы включить транслитерацию адреса из кириллицы в латиницу. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequest + */ + translit?: boolean; + /** + * + * @type {PostingV4PostingFbsListRequestWith} + * @memberof PostingV4PostingFbsListRequest + */ + _with?: PostingV4PostingFbsListRequestWith; +} +/** + * Check if a given object implements the PostingV4PostingFbsListRequest interface. + */ +export declare function instanceOfPostingV4PostingFbsListRequest(value: object): value is PostingV4PostingFbsListRequest; +export declare function PostingV4PostingFbsListRequestFromJSON(json: any): PostingV4PostingFbsListRequest; +export declare function PostingV4PostingFbsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequest; +export declare function PostingV4PostingFbsListRequestToJSON(value?: PostingV4PostingFbsListRequest | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListRequest.js b/dist/esm/models/PostingV4PostingFbsListRequest.js new file mode 100644 index 0000000..1cdd5da --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequest.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsListRequestFilterFromJSON, PostingV4PostingFbsListRequestFilterToJSON, } from './PostingV4PostingFbsListRequestFilter'; +import { PostingV4PostingFbsListRequestSortDirEnumFromJSON, PostingV4PostingFbsListRequestSortDirEnumToJSON, } from './PostingV4PostingFbsListRequestSortDirEnum'; +import { PostingV4PostingFbsListRequestWithFromJSON, PostingV4PostingFbsListRequestWithToJSON, } from './PostingV4PostingFbsListRequestWith'; +/** + * Check if a given object implements the PostingV4PostingFbsListRequest interface. + */ +export function instanceOfPostingV4PostingFbsListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function PostingV4PostingFbsListRequestFromJSON(json) { + return PostingV4PostingFbsListRequestFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': PostingV4PostingFbsListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : PostingV4PostingFbsListRequestSortDirEnumFromJSON(json['sort_dir']), + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : PostingV4PostingFbsListRequestWithFromJSON(json['with']), + }; +} +export function PostingV4PostingFbsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': PostingV4PostingFbsListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'sort_dir': PostingV4PostingFbsListRequestSortDirEnumToJSON(value['sort_dir']), + 'translit': value['translit'], + 'with': PostingV4PostingFbsListRequestWithToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListRequestFilter.d.ts b/dist/esm/models/PostingV4PostingFbsListRequestFilter.d.ts new file mode 100644 index 0000000..cc8ee58 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequestFilter.d.ts @@ -0,0 +1,120 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListRequestFilterLastChangedStatusDate } from './PostingV4PostingFbsListRequestFilterLastChangedStatusDate'; +/** + * Фильтр. + * @export + * @interface PostingV4PostingFbsListRequestFilter + */ +export interface PostingV4PostingFbsListRequestFilter { + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + delivery_method_ids?: Array; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + integration_type_flow?: Array; + /** + * `true`, если товар отслеживаемый. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestFilter + */ + is_blr_traceable?: boolean; + /** + * + * @type {PostingV4PostingFbsListRequestFilterLastChangedStatusDate} + * @memberof PostingV4PostingFbsListRequestFilter + */ + last_changed_status_date?: PostingV4PostingFbsListRequestFilterLastChangedStatusDate; + /** + * Идентификатор заказа. + * @type {number} + * @memberof PostingV4PostingFbsListRequestFilter + */ + order_id?: number; + /** + * Номера заказов, к которым относятся отправления. + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + order_numbers?: Array; + /** + * Идентификатор службы доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + provider_ids?: Array; + /** + * Дата начала периода, за который нужно получить список отправлений. + * @type {string} + * @memberof PostingV4PostingFbsListRequestFilter + */ + since: string; + /** + * Статус отправления: + * - `awaiting_registration` — ожидает регистрации; + * - `acceptance_in_progress` — идёт приёмка; + * - `awaiting_approve` — ожидает подтверждения; + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_deliver` — ожидает отгрузки; + * - `arbitration` — арбитраж; + * - `client_arbitration` — клиентский арбитраж доставки; + * - `delivering` — доставляется; + * - `driver_pickup` — у водителя; + * - `delivered` — доставлено; + * - `cancelled` — отменено; + * - `not_accepted` — не принято на сортировочном центре; + * - `sent_by_seller` – отправлено продавцом. + * + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + statuses?: Array; + /** + * Дата конца периода, за который нужно получить список отправлений. + * @type {string} + * @memberof PostingV4PostingFbsListRequestFilter + */ + to: string; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListRequestFilter interface. + */ +export declare function instanceOfPostingV4PostingFbsListRequestFilter(value: object): value is PostingV4PostingFbsListRequestFilter; +export declare function PostingV4PostingFbsListRequestFilterFromJSON(json: any): PostingV4PostingFbsListRequestFilter; +export declare function PostingV4PostingFbsListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequestFilter; +export declare function PostingV4PostingFbsListRequestFilterToJSON(value?: PostingV4PostingFbsListRequestFilter | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListRequestFilter.js b/dist/esm/models/PostingV4PostingFbsListRequestFilter.js new file mode 100644 index 0000000..3fb30d0 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequestFilter.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON, PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON, } from './PostingV4PostingFbsListRequestFilterLastChangedStatusDate'; +/** + * Check if a given object implements the PostingV4PostingFbsListRequestFilter interface. + */ +export function instanceOfPostingV4PostingFbsListRequestFilter(value) { + if (!('since' in value) || value['since'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function PostingV4PostingFbsListRequestFilterFromJSON(json) { + return PostingV4PostingFbsListRequestFilterFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_ids': json['delivery_method_ids'] == null ? undefined : json['delivery_method_ids'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'last_changed_status_date': json['last_changed_status_date'] == null ? undefined : PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON(json['last_changed_status_date']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_numbers': json['order_numbers'] == null ? undefined : json['order_numbers'], + 'provider_ids': json['provider_ids'] == null ? undefined : json['provider_ids'], + 'since': json['since'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'to': json['to'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function PostingV4PostingFbsListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_ids': value['delivery_method_ids'], + 'integration_type_flow': value['integration_type_flow'], + 'is_blr_traceable': value['is_blr_traceable'], + 'last_changed_status_date': PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON(value['last_changed_status_date']), + 'order_id': value['order_id'], + 'order_numbers': value['order_numbers'], + 'provider_ids': value['provider_ids'], + 'since': value['since'], + 'statuses': value['statuses'], + 'to': value['to'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.d.ts b/dist/esm/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.d.ts new file mode 100644 index 0000000..072f7c2 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, в который последний раз изменялся статус у отправлений. + * @export + * @interface PostingV4PostingFbsListRequestFilterLastChangedStatusDate + */ +export interface PostingV4PostingFbsListRequestFilterLastChangedStatusDate { + /** + * Дата начала периода. + * @type {string} + * @memberof PostingV4PostingFbsListRequestFilterLastChangedStatusDate + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof PostingV4PostingFbsListRequestFilterLastChangedStatusDate + */ + to?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListRequestFilterLastChangedStatusDate interface. + */ +export declare function instanceOfPostingV4PostingFbsListRequestFilterLastChangedStatusDate(value: object): value is PostingV4PostingFbsListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON(json: any): PostingV4PostingFbsListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON(value?: PostingV4PostingFbsListRequestFilterLastChangedStatusDate | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.js b/dist/esm/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.js new file mode 100644 index 0000000..6de088e --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListRequestFilterLastChangedStatusDate interface. + */ +export function instanceOfPostingV4PostingFbsListRequestFilterLastChangedStatusDate(value) { + return true; +} +export function PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON(json) { + return PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListRequestSortDirEnum.d.ts b/dist/esm/models/PostingV4PostingFbsListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..d4080c6 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV4PostingFbsListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV4PostingFbsListRequestSortDirEnum = typeof PostingV4PostingFbsListRequestSortDirEnum[keyof typeof PostingV4PostingFbsListRequestSortDirEnum]; +export declare function instanceOfPostingV4PostingFbsListRequestSortDirEnum(value: any): boolean; +export declare function PostingV4PostingFbsListRequestSortDirEnumFromJSON(json: any): PostingV4PostingFbsListRequestSortDirEnum; +export declare function PostingV4PostingFbsListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequestSortDirEnum; +export declare function PostingV4PostingFbsListRequestSortDirEnumToJSON(value?: PostingV4PostingFbsListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListRequestSortDirEnum.js b/dist/esm/models/PostingV4PostingFbsListRequestSortDirEnum.js new file mode 100644 index 0000000..5795e91 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const PostingV4PostingFbsListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfPostingV4PostingFbsListRequestSortDirEnum(value) { + for (const key in PostingV4PostingFbsListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(PostingV4PostingFbsListRequestSortDirEnum, key)) { + if (PostingV4PostingFbsListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PostingV4PostingFbsListRequestSortDirEnumFromJSON(json) { + return PostingV4PostingFbsListRequestSortDirEnumFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PostingV4PostingFbsListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PostingV4PostingFbsListRequestWith.d.ts b/dist/esm/models/PostingV4PostingFbsListRequestWith.d.ts new file mode 100644 index 0000000..71cbbe2 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequestWith.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingV4PostingFbsListRequestWith + */ +export interface PostingV4PostingFbsListRequestWith { + /** + * `true`, чтобы добавить в ответ данные аналитики. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ штрихкоды отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestWith + */ + barcodes?: boolean; + /** + * `true`, чтобы добавить в ответ финансовые данные. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestWith + */ + financial_data?: boolean; + /** + * `true`, чтобы добавить в ответ юридическую информацию. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestWith + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingV4PostingFbsListRequestWith interface. + */ +export declare function instanceOfPostingV4PostingFbsListRequestWith(value: object): value is PostingV4PostingFbsListRequestWith; +export declare function PostingV4PostingFbsListRequestWithFromJSON(json: any): PostingV4PostingFbsListRequestWith; +export declare function PostingV4PostingFbsListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequestWith; +export declare function PostingV4PostingFbsListRequestWithToJSON(value?: PostingV4PostingFbsListRequestWith | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListRequestWith.js b/dist/esm/models/PostingV4PostingFbsListRequestWith.js new file mode 100644 index 0000000..a245173 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListRequestWith.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListRequestWith interface. + */ +export function instanceOfPostingV4PostingFbsListRequestWith(value) { + return true; +} +export function PostingV4PostingFbsListRequestWithFromJSON(json) { + return PostingV4PostingFbsListRequestWithFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +export function PostingV4PostingFbsListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'barcodes': value['barcodes'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponse.d.ts b/dist/esm/models/PostingV4PostingFbsListResponse.d.ts new file mode 100644 index 0000000..c9f5db2 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListResponsePostings } from './PostingV4PostingFbsListResponsePostings'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponse + */ +export interface PostingV4PostingFbsListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV4PostingFbsListResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponse + */ + has_next?: boolean; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV4PostingFbsListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponse interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponse(value: object): value is PostingV4PostingFbsListResponse; +export declare function PostingV4PostingFbsListResponseFromJSON(json: any): PostingV4PostingFbsListResponse; +export declare function PostingV4PostingFbsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponse; +export declare function PostingV4PostingFbsListResponseToJSON(value?: PostingV4PostingFbsListResponse | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponse.js b/dist/esm/models/PostingV4PostingFbsListResponse.js new file mode 100644 index 0000000..b8a6122 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsListResponsePostingsFromJSON, PostingV4PostingFbsListResponsePostingsToJSON, } from './PostingV4PostingFbsListResponsePostings'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponse interface. + */ +export function instanceOfPostingV4PostingFbsListResponse(value) { + return true; +} +export function PostingV4PostingFbsListResponseFromJSON(json) { + return PostingV4PostingFbsListResponseFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV4PostingFbsListResponsePostingsFromJSON)), + }; +} +export function PostingV4PostingFbsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV4PostingFbsListResponsePostingsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostings.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostings.d.ts new file mode 100644 index 0000000..a7bdb27 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostings.d.ts @@ -0,0 +1,415 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListResponsePostingsDeliveryMethod } from './PostingV4PostingFbsListResponsePostingsDeliveryMethod'; +import type { PostingV4PostingFbsListResponsePostingsRequirements } from './PostingV4PostingFbsListResponsePostingsRequirements'; +import type { PostingV4PostingFbsListResponsePostingsAnalyticsData } from './PostingV4PostingFbsListResponsePostingsAnalyticsData'; +import type { PostingV4PostingFbsListResponsePostingsCustomer } from './PostingV4PostingFbsListResponsePostingsCustomer'; +import type { PostingV4PostingFbsListResponsePostingsSortingCenter } from './PostingV4PostingFbsListResponsePostingsSortingCenter'; +import type { PostingV4PostingFbsListResponsePostingsExternalOrder } from './PostingV4PostingFbsListResponsePostingsExternalOrder'; +import type { PostingV4PostingFbsListResponsePostingsTarifficationStep } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import type { PostingV4PostingFbsListResponsePostingsTariffication } from './PostingV4PostingFbsListResponsePostingsTariffication'; +import type { PostingV4PostingFbsListResponsePostingsAddressee } from './PostingV4PostingFbsListResponsePostingsAddressee'; +import type { PostingV4PostingFbsListResponsePostingsBarcodes } from './PostingV4PostingFbsListResponsePostingsBarcodes'; +import type { PostingV4PostingFbsListResponsePostingsFinancialData } from './PostingV4PostingFbsListResponsePostingsFinancialData'; +import type { PostingV4PostingFbsListResponsePostingsLegalInfo } from './PostingV4PostingFbsListResponsePostingsLegalInfo'; +import type { PostingV4PostingFbsListResponsePostingsOptional } from './PostingV4PostingFbsListResponsePostingsOptional'; +import type { PostingV4PostingFbsListResponsePostingsCancellation } from './PostingV4PostingFbsListResponsePostingsCancellation'; +import type { PostingV4PostingFbsListResponsePostingsContainer } from './PostingV4PostingFbsListResponsePostingsContainer'; +import type { PostingV4PostingFbsListResponsePostingsProducts } from './PostingV4PostingFbsListResponsePostingsProducts'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponsePostings + */ +export interface PostingV4PostingFbsListResponsePostings { + /** + * + * @type {PostingV4PostingFbsListResponsePostingsAddressee} + * @memberof PostingV4PostingFbsListResponsePostings + */ + addressee?: PostingV4PostingFbsListResponsePostingsAddressee; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsAnalyticsData} + * @memberof PostingV4PostingFbsListResponsePostings + */ + analytics_data?: PostingV4PostingFbsListResponsePostingsAnalyticsData; + /** + * Доступные действия и информация об отправлении: + * - `arbitration` — открыть спор; + * - `awaiting_delivery` — перевести в статус «Ожидает отгрузки»; + * - `can_create_chat` — начать чат с покупателем; + * - `cancel` — отменить отправление; + * - `click_track_number` — просмотреть по трек-номеру историю изменения статусов в личном кабинете; + * - `customer_phone_available` — телефон покупателя; + * - `has_weight_products` — весовые товары в отправлении; + * - `hide_region_and_city` — скрыть регион и город покупателя в отчёте; + * - `invoice_get` — получить информацию из счёта-фактуры; + * - `invoice_send` — создать счёт-фактуру; + * - `invoice_update` — отредактировать счёт-фактуру; + * - `label_download_big` — скачать большую этикетку; + * - `label_download_small` — скачать маленькую этикетку; + * - `label_download` — скачать этикетку; + * - `non_int_delivered` — перевести в статус «Условно доставлен»; + * - `non_int_delivering` — перевести в статус «Доставляется»; + * - `non_int_last_mile` — перевести в статус «Курьер в пути»; + * - `product_cancel` — отменить часть товаров в отправлении; + * - `set_cutoff` — укажите дату отгрузки методом [/v1/posting/cutoff/set](#operation/PostingAPI_SetPostingCutoff) не позже даты в параметре `shipment_date`; + * - `set_timeslot` — изменить время доставки покупателю; + * - `set_track_number` — указать или изменить трек-номер; + * - `ship_async_in_process` — отправление собирается; + * - `ship_async_retry` — собрать отправление повторно после ошибки сборки; + * - `ship_async` — собрать отправление; + * - `ship_with_additional_info` — заполните дополнительную информацию методом [/v6/fbs/posting/product/exemplar/set](https://docs.ozon.ru/api/seller/#operation/PostingAPI_FbsPostingProductExemplarSetV6); + * - `ship` — собрать отправление; + * - `update_cis` — изменить дополнительную информацию. + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostings + */ + available_actions?: Array; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsBarcodes} + * @memberof PostingV4PostingFbsListResponsePostings + */ + barcodes?: PostingV4PostingFbsListResponsePostingsBarcodes; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsCancellation} + * @memberof PostingV4PostingFbsListResponsePostings + */ + cancellation?: PostingV4PostingFbsListResponsePostingsCancellation; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsCustomer} + * @memberof PostingV4PostingFbsListResponsePostings + */ + customer?: PostingV4PostingFbsListResponsePostingsCustomer; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsContainer} + * @memberof PostingV4PostingFbsListResponsePostings + */ + container?: PostingV4PostingFbsListResponsePostingsContainer; + /** + * Тип сортировки грузоместа: + * - `SORT` — сортируемый; + * - `NON-SORT` — несортируемый. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + container_sort_type?: string; + /** + * Дата передачи отправления в доставку. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + delivering_date?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsDeliveryMethod} + * @memberof PostingV4PostingFbsListResponsePostings + */ + delivery_method?: PostingV4PostingFbsListResponsePostingsDeliveryMethod; + /** + * Схема доставки: + * - `SDS` — идентификатор единого SKU; + * - `FBO` — идентификатор товара, который продаётся со склада Ozon; + * - `FBS` — идентификатор товара, который продаётся со склада FBS; + * - `Crossborder` — идентификатор товара, который продаётся из-за границы. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + delivery_schema?: string; + /** + * Идентификатор места назначения. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + destination_place_id?: number; + /** + * Название места назначения. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + destination_place_name?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsExternalOrder} + * @memberof PostingV4PostingFbsListResponsePostings + */ + external_order?: PostingV4PostingFbsListResponsePostingsExternalOrder; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsFinancialData} + * @memberof PostingV4PostingFbsListResponsePostings + */ + financial_data?: PostingV4PostingFbsListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + in_process_at?: string; + /** + * `true`, если отправление доставляется методом «Самовывоз из магазина». + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + is_click_and_collect?: boolean; + /** + * `true`, если использовалась быстрая доставка Ozon Express. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + is_express?: boolean; + /** + * Признак, что в отправлении есть многокоробочный товар и нужно передать количество коробок для него: + * + * - `true` — до сборки передайте количество коробок через метод [/v3/posting/multiboxqty/set](#operation/PostingAPI_PostingMultiBoxQtySetV3). + * - `false` — отправление собрано с указанием количества коробок в параметре `multi_box_qty` или в отправлении нет многокоробочного товара. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + is_multibox?: boolean; + /** + * `true`, если товар — пересорт. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + is_presortable?: boolean; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + integration_type_flow?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsLegalInfo} + * @memberof PostingV4PostingFbsListResponsePostings + */ + legal_info?: PostingV4PostingFbsListResponsePostingsLegalInfo; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + multi_box_qty?: number; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsOptional} + * @memberof PostingV4PostingFbsListResponsePostings + */ + optional?: PostingV4PostingFbsListResponsePostingsOptional; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + order_number?: string; + /** + * Номер родительского отправления, в результате разделения которого появилось текущее. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + parent_posting_number?: string; + /** + * Дата и время успешной валидации кода курьера. Проверьте код курьера методом [/v1/posting/fbs/pick-up-code/verify](#operation/PostingAPI_PostingFBSPickupCodeVerify). + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + pickup_code_verified_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostings + */ + products?: Array; + /** + * Код услуги погрузочно-разгрузочных работ: + * - `lift` — подъём на лифте; + * - `stairs` — подъём по лестнице; + * - `none` — покупатель отказался от услуги, поднимать товары не нужно; + * - `delivery_default` — доставка включена в стоимость, по условиям оферты нужно доставить товар на этаж. + * + * Для КГТ-отправлений с доставкой силами продавца или интегрированной службой. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + prr_option?: string; + /** + * Идентификатор эконом-товара. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + quantum_id?: number; + /** + * `true`, если нужно заполнить атрибуты отслеживаемости. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + require_blr_traceable_attrs?: boolean; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsRequirements} + * @memberof PostingV4PostingFbsListResponsePostings + */ + requirements?: PostingV4PostingFbsListResponsePostingsRequirements; + /** + * Дата и время, до которой нужно собрать отправление. Показываем рекомендованное время отгрузки. По истечении этого времени начнёт применяться новый тариф, информацию о нём получите в поле `tariffication`. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + shipment_date?: string; + /** + * Дата и время отгрузки без просрочки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + shipment_date_without_delay?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsSortingCenter} + * @memberof PostingV4PostingFbsListResponsePostings + */ + sorting_center?: PostingV4PostingFbsListResponsePostingsSortingCenter; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка; + * - `arbitration` — арбитраж; + * - `awaiting_approve` — ожидает подтверждения; + * - `awaiting_deliver` — ожидает отгрузки; + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_registration` — ожидает регистрации; + * - `awaiting_verification` — создано; + * - `cancelled` — отменено; + * - `cancelled_from_split_pending` — отменено из-за разделения отправления; + * - `client_arbitration` — клиентский арбитраж доставки; + * - `delivering` — доставляется; + * - `driver_pickup` — у водителя; + * - `not_accepted` — не принято на сортировочном центре. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_acceptance_in_progress`— идёт приёмка; + * - `posting_in_arbitration` — арбитраж; + * - `posting_created` — создано; + * - `posting_in_carriage` — в перевозке; + * - `posting_not_in_carriage` — не добавлено в перевозку; + * - `posting_registered` — зарегистрировано; + * - `posting_transferring_to_delivery`, если `status=awaiting_deliver` — передаётся в доставку; + * - `posting_awaiting_passport_data` — ожидает паспортных данных; + * - `posting_created` — создано; + * - `posting_awaiting_registration` — ожидает регистрации; + * - `posting_registration_error` — ошибка регистрации; + * - `posting_transferring_to_delivery`, если `status=awaiting_registration` — передаётся курьеру; + * - `posting_split_pending` — создано; + * - `posting_canceled` — отменено; + * - `posting_in_client_arbitration` — клиентский арбитраж доставки; + * - `posting_delivered` — доставлено; + * - `posting_received` — получено; + * - `posting_conditionally_delivered` — условно доставлено; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_on_way_to_city` — в пути в ваш город; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_driver_pick_up` — у водителя; + * - `posting_not_in_sort_center` — не принято на сортировочном центре; + * - `ship_failed` — сборка не удалась. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + substatus?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsTariffication} + * @memberof PostingV4PostingFbsListResponsePostings + */ + tariffication?: PostingV4PostingFbsListResponsePostingsTariffication; + /** + * Этапы тарификации. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostings + */ + tariffication_steps?: Array; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка службой Ozon; + * - `3pl_tracking` — доставка интегрированной службой; + * - `non_integrated` — доставка сторонней службой; + * - `aggregator` — доставка через партнёрскую доставку Ozon; + * - `hybryd` — схема доставки Почты России. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + tpl_integration_type?: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + tracking_number?: string; + /** + * Объёмный вес товара. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + volume_weight?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostings interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostings(value: object): value is PostingV4PostingFbsListResponsePostings; +export declare function PostingV4PostingFbsListResponsePostingsFromJSON(json: any): PostingV4PostingFbsListResponsePostings; +export declare function PostingV4PostingFbsListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostings; +export declare function PostingV4PostingFbsListResponsePostingsToJSON(value?: PostingV4PostingFbsListResponsePostings | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostings.js b/dist/esm/models/PostingV4PostingFbsListResponsePostings.js new file mode 100644 index 0000000..3f08320 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostings.js @@ -0,0 +1,140 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON, PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON, } from './PostingV4PostingFbsListResponsePostingsDeliveryMethod'; +import { PostingV4PostingFbsListResponsePostingsRequirementsFromJSON, PostingV4PostingFbsListResponsePostingsRequirementsToJSON, } from './PostingV4PostingFbsListResponsePostingsRequirements'; +import { PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON, PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON, } from './PostingV4PostingFbsListResponsePostingsAnalyticsData'; +import { PostingV4PostingFbsListResponsePostingsCustomerFromJSON, PostingV4PostingFbsListResponsePostingsCustomerToJSON, } from './PostingV4PostingFbsListResponsePostingsCustomer'; +import { PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON, PostingV4PostingFbsListResponsePostingsSortingCenterToJSON, } from './PostingV4PostingFbsListResponsePostingsSortingCenter'; +import { PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON, PostingV4PostingFbsListResponsePostingsExternalOrderToJSON, } from './PostingV4PostingFbsListResponsePostingsExternalOrder'; +import { PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON, PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON, } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import { PostingV4PostingFbsListResponsePostingsTarifficationFromJSON, PostingV4PostingFbsListResponsePostingsTarifficationToJSON, } from './PostingV4PostingFbsListResponsePostingsTariffication'; +import { PostingV4PostingFbsListResponsePostingsAddresseeFromJSON, PostingV4PostingFbsListResponsePostingsAddresseeToJSON, } from './PostingV4PostingFbsListResponsePostingsAddressee'; +import { PostingV4PostingFbsListResponsePostingsBarcodesFromJSON, PostingV4PostingFbsListResponsePostingsBarcodesToJSON, } from './PostingV4PostingFbsListResponsePostingsBarcodes'; +import { PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON, PostingV4PostingFbsListResponsePostingsFinancialDataToJSON, } from './PostingV4PostingFbsListResponsePostingsFinancialData'; +import { PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON, PostingV4PostingFbsListResponsePostingsLegalInfoToJSON, } from './PostingV4PostingFbsListResponsePostingsLegalInfo'; +import { PostingV4PostingFbsListResponsePostingsOptionalFromJSON, PostingV4PostingFbsListResponsePostingsOptionalToJSON, } from './PostingV4PostingFbsListResponsePostingsOptional'; +import { PostingV4PostingFbsListResponsePostingsCancellationFromJSON, PostingV4PostingFbsListResponsePostingsCancellationToJSON, } from './PostingV4PostingFbsListResponsePostingsCancellation'; +import { PostingV4PostingFbsListResponsePostingsContainerFromJSON, PostingV4PostingFbsListResponsePostingsContainerToJSON, } from './PostingV4PostingFbsListResponsePostingsContainer'; +import { PostingV4PostingFbsListResponsePostingsProductsFromJSON, PostingV4PostingFbsListResponsePostingsProductsToJSON, } from './PostingV4PostingFbsListResponsePostingsProducts'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostings interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostings(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'addressee': json['addressee'] == null ? undefined : PostingV4PostingFbsListResponsePostingsAddresseeFromJSON(json['addressee']), + 'analytics_data': json['analytics_data'] == null ? undefined : PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON(json['analytics_data']), + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'barcodes': json['barcodes'] == null ? undefined : PostingV4PostingFbsListResponsePostingsBarcodesFromJSON(json['barcodes']), + 'cancellation': json['cancellation'] == null ? undefined : PostingV4PostingFbsListResponsePostingsCancellationFromJSON(json['cancellation']), + 'customer': json['customer'] == null ? undefined : PostingV4PostingFbsListResponsePostingsCustomerFromJSON(json['customer']), + 'container': json['container'] == null ? undefined : PostingV4PostingFbsListResponsePostingsContainerFromJSON(json['container']), + 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], + 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], + 'delivery_method': json['delivery_method'] == null ? undefined : PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON(json['delivery_method']), + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'destination_place_id': json['destination_place_id'] == null ? undefined : json['destination_place_id'], + 'destination_place_name': json['destination_place_name'] == null ? undefined : json['destination_place_name'], + 'external_order': json['external_order'] == null ? undefined : PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON(json['external_order']), + 'financial_data': json['financial_data'] == null ? undefined : PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'is_click_and_collect': json['is_click_and_collect'] == null ? undefined : json['is_click_and_collect'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], + 'is_presortable': json['is_presortable'] == null ? undefined : json['is_presortable'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'legal_info': json['legal_info'] == null ? undefined : PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON(json['legal_info']), + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'optional': json['optional'] == null ? undefined : PostingV4PostingFbsListResponsePostingsOptionalFromJSON(json['optional']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], + 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV4PostingFbsListResponsePostingsProductsFromJSON)), + 'prr_option': json['prr_option'] == null ? undefined : json['prr_option'], + 'quantum_id': json['quantum_id'] == null ? undefined : json['quantum_id'], + 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], + 'requirements': json['requirements'] == null ? undefined : PostingV4PostingFbsListResponsePostingsRequirementsFromJSON(json['requirements']), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], + 'sorting_center': json['sorting_center'] == null ? undefined : PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON(json['sorting_center']), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'tariffication': json['tariffication'] == null ? undefined : PostingV4PostingFbsListResponsePostingsTarifficationFromJSON(json['tariffication']), + 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON)), + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'volume_weight': json['volume_weight'] == null ? undefined : json['volume_weight'], + }; +} +export function PostingV4PostingFbsListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'addressee': PostingV4PostingFbsListResponsePostingsAddresseeToJSON(value['addressee']), + 'analytics_data': PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON(value['analytics_data']), + 'available_actions': value['available_actions'], + 'barcodes': PostingV4PostingFbsListResponsePostingsBarcodesToJSON(value['barcodes']), + 'cancellation': PostingV4PostingFbsListResponsePostingsCancellationToJSON(value['cancellation']), + 'customer': PostingV4PostingFbsListResponsePostingsCustomerToJSON(value['customer']), + 'container': PostingV4PostingFbsListResponsePostingsContainerToJSON(value['container']), + 'container_sort_type': value['container_sort_type'], + 'delivering_date': value['delivering_date'], + 'delivery_method': PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON(value['delivery_method']), + 'delivery_schema': value['delivery_schema'], + 'destination_place_id': value['destination_place_id'], + 'destination_place_name': value['destination_place_name'], + 'external_order': PostingV4PostingFbsListResponsePostingsExternalOrderToJSON(value['external_order']), + 'financial_data': PostingV4PostingFbsListResponsePostingsFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'is_click_and_collect': value['is_click_and_collect'], + 'is_express': value['is_express'], + 'is_multibox': value['is_multibox'], + 'is_presortable': value['is_presortable'], + 'integration_type_flow': value['integration_type_flow'], + 'legal_info': PostingV4PostingFbsListResponsePostingsLegalInfoToJSON(value['legal_info']), + 'multi_box_qty': value['multi_box_qty'], + 'optional': PostingV4PostingFbsListResponsePostingsOptionalToJSON(value['optional']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'parent_posting_number': value['parent_posting_number'], + 'pickup_code_verified_at': value['pickup_code_verified_at'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV4PostingFbsListResponsePostingsProductsToJSON)), + 'prr_option': value['prr_option'], + 'quantum_id': value['quantum_id'], + 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], + 'requirements': PostingV4PostingFbsListResponsePostingsRequirementsToJSON(value['requirements']), + 'shipment_date': value['shipment_date'], + 'shipment_date_without_delay': value['shipment_date_without_delay'], + 'sorting_center': PostingV4PostingFbsListResponsePostingsSortingCenterToJSON(value['sorting_center']), + 'status': value['status'], + 'substatus': value['substatus'], + 'tariffication': PostingV4PostingFbsListResponsePostingsTarifficationToJSON(value['tariffication']), + 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON)), + 'tpl_integration_type': value['tpl_integration_type'], + 'tracking_number': value['tracking_number'], + 'volume_weight': value['volume_weight'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsAddressee.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsAddressee.d.ts new file mode 100644 index 0000000..b7ad9cb --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsAddressee.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контактные данные получателя. + * @export + * @interface PostingV4PostingFbsListResponsePostingsAddressee + */ +export interface PostingV4PostingFbsListResponsePostingsAddressee { + /** + * Имя получателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAddressee + */ + name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsAddressee interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsAddressee(value: object): value is PostingV4PostingFbsListResponsePostingsAddressee; +export declare function PostingV4PostingFbsListResponsePostingsAddresseeFromJSON(json: any): PostingV4PostingFbsListResponsePostingsAddressee; +export declare function PostingV4PostingFbsListResponsePostingsAddresseeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsAddressee; +export declare function PostingV4PostingFbsListResponsePostingsAddresseeToJSON(value?: PostingV4PostingFbsListResponsePostingsAddressee | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsAddressee.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsAddressee.js new file mode 100644 index 0000000..3c8cbbc --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsAddressee.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsAddressee interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsAddressee(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsAddresseeFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsAddresseeFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsAddresseeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function PostingV4PostingFbsListResponsePostingsAddresseeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.d.ts new file mode 100644 index 0000000..3e39bc0 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.d.ts @@ -0,0 +1,121 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV4PostingFbsListResponsePostingsAnalyticsData + */ +export interface PostingV4PostingFbsListResponsePostingsAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + client_delivery_date_end?: string; + /** + * Дата и время начала доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + delivery_date_begin?: string; + /** + * Дата и время конца доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + delivery_type?: string; + /** + * `true`, если получатель юридическое лицо. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + is_legal?: boolean; + /** + * `true`, если у получателя есть подписка Premium. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`; + * - `карта Ozon Банка`; + * - `автосписание с карты Ozon Банка при выдаче`; + * - `сохранённой картой при получении`; + * - `Система Быстрых Платежей`; + * - `Ozon Рассрочка`; + * - `оплата на расчётный счёт`; + * - `SberPay`; + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + region?: string; + /** + * Служба доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + tpl_provider_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsAnalyticsData interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsAnalyticsData(value: object): value is PostingV4PostingFbsListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON(json: any): PostingV4PostingFbsListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON(value?: PostingV4PostingFbsListResponsePostingsAnalyticsData | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.js new file mode 100644 index 0000000..431fde6 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsAnalyticsData interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsAnalyticsData(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + 'delivery_date_begin': json['delivery_date_begin'] == null ? undefined : json['delivery_date_begin'], + 'delivery_date_end': json['delivery_date_end'] == null ? undefined : json['delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + 'delivery_date_begin': value['delivery_date_begin'], + 'delivery_date_end': value['delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsBarcodes.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsBarcodes.d.ts new file mode 100644 index 0000000..cda8105 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsBarcodes.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Штрихкоды отправления. + * @export + * @interface PostingV4PostingFbsListResponsePostingsBarcodes + */ +export interface PostingV4PostingFbsListResponsePostingsBarcodes { + /** + * Нижний штрихкод на маркировке отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsBarcodes + */ + lower_barcode?: string; + /** + * Верхний штрихкод на маркировке отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsBarcodes + */ + upper_barcode?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsBarcodes interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsBarcodes(value: object): value is PostingV4PostingFbsListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsListResponsePostingsBarcodesFromJSON(json: any): PostingV4PostingFbsListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsListResponsePostingsBarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsListResponsePostingsBarcodesToJSON(value?: PostingV4PostingFbsListResponsePostingsBarcodes | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsBarcodes.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsBarcodes.js new file mode 100644 index 0000000..a55f3cf --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsBarcodes.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsBarcodes interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsBarcodes(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsBarcodesFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsBarcodesFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsBarcodesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lower_barcode': json['lower_barcode'] == null ? undefined : json['lower_barcode'], + 'upper_barcode': json['upper_barcode'] == null ? undefined : json['upper_barcode'], + }; +} +export function PostingV4PostingFbsListResponsePostingsBarcodesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lower_barcode': value['lower_barcode'], + 'upper_barcode': value['upper_barcode'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsCancellation.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCancellation.d.ts new file mode 100644 index 0000000..0b77ac5 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCancellation.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV4PostingFbsListResponsePostingsCancellation + */ +export interface PostingV4PostingFbsListResponsePostingsCancellation { + /** + * `true`, если отмена влияет на рейтинг продавца. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + affect_cancellation_rating?: boolean; + /** + * Причина отмены. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancel_reason?: string; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancel_reason_id?: number; + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент`, + * - `Покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system` — отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancellation_type?: string; + /** + * `true`, если отмена произошла после сборки отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancelled_after_ship?: boolean; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCancellation interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsCancellation(value: object): value is PostingV4PostingFbsListResponsePostingsCancellation; +export declare function PostingV4PostingFbsListResponsePostingsCancellationFromJSON(json: any): PostingV4PostingFbsListResponsePostingsCancellation; +export declare function PostingV4PostingFbsListResponsePostingsCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsCancellation; +export declare function PostingV4PostingFbsListResponsePostingsCancellationToJSON(value?: PostingV4PostingFbsListResponsePostingsCancellation | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsCancellation.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCancellation.js new file mode 100644 index 0000000..1a080fc --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCancellation.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCancellation interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsCancellation(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsCancellationFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsCancellationFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'affect_cancellation_rating': json['affect_cancellation_rating'] == null ? undefined : json['affect_cancellation_rating'], + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + 'cancelled_after_ship': json['cancelled_after_ship'] == null ? undefined : json['cancelled_after_ship'], + }; +} +export function PostingV4PostingFbsListResponsePostingsCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'affect_cancellation_rating': value['affect_cancellation_rating'], + 'cancel_reason': value['cancel_reason'], + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + 'cancelled_after_ship': value['cancelled_after_ship'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsContainer.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsContainer.d.ts new file mode 100644 index 0000000..8e6eaf3 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsContainer.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3FbsPostingContainerCargoTypeEnum } from './PostingV3FbsPostingContainerCargoTypeEnum'; +/** + * Информация о грузоместе. + * @export + * @interface PostingV4PostingFbsListResponsePostingsContainer + */ +export interface PostingV4PostingFbsListResponsePostingsContainer { + /** + * + * @type {PostingV3FbsPostingContainerCargoTypeEnum} + * @memberof PostingV4PostingFbsListResponsePostingsContainer + */ + cargo_type?: PostingV3FbsPostingContainerCargoTypeEnum; + /** + * Дата создания грузоместа в часовом поясе склада. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsContainer + */ + container_date?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsContainer + */ + container_id?: number; + /** + * Порядковый номер грузоместа. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsContainer + */ + container_number?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsContainer interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsContainer(value: object): value is PostingV4PostingFbsListResponsePostingsContainer; +export declare function PostingV4PostingFbsListResponsePostingsContainerFromJSON(json: any): PostingV4PostingFbsListResponsePostingsContainer; +export declare function PostingV4PostingFbsListResponsePostingsContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsContainer; +export declare function PostingV4PostingFbsListResponsePostingsContainerToJSON(value?: PostingV4PostingFbsListResponsePostingsContainer | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsContainer.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsContainer.js new file mode 100644 index 0000000..e351cc4 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsContainer.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV3FbsPostingContainerCargoTypeEnumFromJSON, PostingV3FbsPostingContainerCargoTypeEnumToJSON, } from './PostingV3FbsPostingContainerCargoTypeEnum'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsContainer interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsContainer(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsContainerFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsContainerFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsContainerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_type': json['cargo_type'] == null ? undefined : PostingV3FbsPostingContainerCargoTypeEnumFromJSON(json['cargo_type']), + 'container_date': json['container_date'] == null ? undefined : json['container_date'], + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'container_number': json['container_number'] == null ? undefined : json['container_number'], + }; +} +export function PostingV4PostingFbsListResponsePostingsContainerToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_type': PostingV3FbsPostingContainerCargoTypeEnumToJSON(value['cargo_type']), + 'container_date': value['container_date'], + 'container_id': value['container_id'], + 'container_number': value['container_number'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomer.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomer.d.ts new file mode 100644 index 0000000..61479e4 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomer.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListResponsePostingsCustomerAddress } from './PostingV4PostingFbsListResponsePostingsCustomerAddress'; +/** + * Информация о покупателе. + * @export + * @interface PostingV4PostingFbsListResponsePostingsCustomer + */ +export interface PostingV4PostingFbsListResponsePostingsCustomer { + /** + * + * @type {PostingV4PostingFbsListResponsePostingsCustomerAddress} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + address?: PostingV4PostingFbsListResponsePostingsCustomerAddress; + /** + * Электронная почта покупателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + customer_email?: string; + /** + * Идентификатор покупателя. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + customer_id?: number; + /** + * Имя покупателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + name?: string; + /** + * Подменный контактный телефон покупателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + phone?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCustomer interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsCustomer(value: object): value is PostingV4PostingFbsListResponsePostingsCustomer; +export declare function PostingV4PostingFbsListResponsePostingsCustomerFromJSON(json: any): PostingV4PostingFbsListResponsePostingsCustomer; +export declare function PostingV4PostingFbsListResponsePostingsCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsCustomer; +export declare function PostingV4PostingFbsListResponsePostingsCustomerToJSON(value?: PostingV4PostingFbsListResponsePostingsCustomer | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomer.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomer.js new file mode 100644 index 0000000..adb070f --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomer.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON, PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON, } from './PostingV4PostingFbsListResponsePostingsCustomerAddress'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCustomer interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsCustomer(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsCustomerFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsCustomerFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsCustomerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON(json['address']), + 'customer_email': json['customer_email'] == null ? undefined : json['customer_email'], + 'customer_id': json['customer_id'] == null ? undefined : json['customer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +export function PostingV4PostingFbsListResponsePostingsCustomerToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON(value['address']), + 'customer_email': value['customer_email'], + 'customer_id': value['customer_id'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.d.ts new file mode 100644 index 0000000..7a94452 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Адрес доставки. + * @export + * @interface PostingV4PostingFbsListResponsePostingsCustomerAddress + */ +export interface PostingV4PostingFbsListResponsePostingsCustomerAddress { + /** + * Адрес в текстовом формате. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + address_tail?: string; + /** + * Город доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + city?: string; + /** + * Комментарий к заказу. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + comment?: string; + /** + * Страна доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + country?: string; + /** + * Район доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + district?: string; + /** + * Широта. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + longitude?: number; + /** + * Код пункта выдачи заказов 3PL-провайдера. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + provider_pvz_code?: string; + /** + * Код пункта выдачи заказов. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + pvz_code?: number; + /** + * Регион доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + region?: string; + /** + * Почтовый индекс получателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + zip_code?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCustomerAddress interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsCustomerAddress(value: object): value is PostingV4PostingFbsListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON(json: any): PostingV4PostingFbsListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON(value?: PostingV4PostingFbsListResponsePostingsCustomerAddress | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.js new file mode 100644 index 0000000..2cefdac --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCustomerAddress interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsCustomerAddress(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_tail': json['address_tail'] == null ? undefined : json['address_tail'], + 'city': json['city'] == null ? undefined : json['city'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'country': json['country'] == null ? undefined : json['country'], + 'district': json['district'] == null ? undefined : json['district'], + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + 'provider_pvz_code': json['provider_pvz_code'] == null ? undefined : json['provider_pvz_code'], + 'pvz_code': json['pvz_code'] == null ? undefined : json['pvz_code'], + 'region': json['region'] == null ? undefined : json['region'], + 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], + }; +} +export function PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_tail': value['address_tail'], + 'city': value['city'], + 'comment': value['comment'], + 'country': value['country'], + 'district': value['district'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'provider_pvz_code': value['provider_pvz_code'], + 'pvz_code': value['pvz_code'], + 'region': value['region'], + 'zip_code': value['zip_code'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.d.ts new file mode 100644 index 0000000..44092fd --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о способе доставки. + * @export + * @interface PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ +export interface PostingV4PostingFbsListResponsePostingsDeliveryMethod { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + id?: number; + /** + * Название способа доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + name?: string; + /** + * Служба доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + tpl_provider_id?: number; + /** + * Название склада. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsDeliveryMethod interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsDeliveryMethod(value: object): value is PostingV4PostingFbsListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON(json: any): PostingV4PostingFbsListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON(value?: PostingV4PostingFbsListResponsePostingsDeliveryMethod | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.js new file mode 100644 index 0000000..d20278b --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsDeliveryMethod interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsDeliveryMethod(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsExternalOrder.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsExternalOrder.d.ts new file mode 100644 index 0000000..f50f27d --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV4PostingFbsListResponsePostingsExternalOrder + */ +export interface PostingV4PostingFbsListResponsePostingsExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsExternalOrder interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsExternalOrder(value: object): value is PostingV4PostingFbsListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON(json: any): PostingV4PostingFbsListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsListResponsePostingsExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsListResponsePostingsExternalOrderToJSON(value?: PostingV4PostingFbsListResponsePostingsExternalOrder | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsExternalOrder.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsExternalOrder.js new file mode 100644 index 0000000..bfef569 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsExternalOrder.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsExternalOrder interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsExternalOrder(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsExternalOrderFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +export function PostingV4PostingFbsListResponsePostingsExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialData.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..21916f3 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListResponsePostingsFinancialDataProducts } from './PostingV4PostingFbsListResponsePostingsFinancialDataProducts'; +/** + * Информация о стоимости товара, размере скидки, выплате и комиссии. + * @export + * @interface PostingV4PostingFbsListResponsePostingsFinancialData + */ +export interface PostingV4PostingFbsListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsFinancialData(value: object): value is PostingV4PostingFbsListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON(json: any): PostingV4PostingFbsListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataToJSON(value?: PostingV4PostingFbsListResponsePostingsFinancialData | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialData.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialData.js new file mode 100644 index 0000000..9a79da3 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialData.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON, PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON, } from './PostingV4PostingFbsListResponsePostingsFinancialDataProducts'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialData interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsFinancialData(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..8d409ba --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,87 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +import type { PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission } from './PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ +export interface PostingV4PostingFbsListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + commission?: PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + customer_price?: MoneyPostingMoney; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProducts(value: object): value is PostingV4PostingFbsListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV4PostingFbsListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON(value?: PostingV4PostingFbsListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..b2e8ab7 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyPostingMoneyFromJSON, MoneyPostingMoneyToJSON, } from './MoneyPostingMoney'; +import { PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON, PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON, } from './PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialDataProducts interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProducts(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'commission': json['commission'] == null ? undefined : PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON(json['commission']), + 'customer_price': json['customer_price'] == null ? undefined : MoneyPostingMoneyFromJSON(json['customer_price']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'commission': PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON(value['commission']), + 'customer_price': MoneyPostingMoneyToJSON(value['customer_price']), + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..deae1aa --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission { + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Код валюты, в которой рассчитывалась комиссия. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission + */ + currency?: string; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..1ba8104 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +export function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + 'percent': value['percent'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsLegalInfo.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsLegalInfo.d.ts new file mode 100644 index 0000000..fc08ab6 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingV4PostingFbsListResponsePostingsLegalInfo + */ +export interface PostingV4PostingFbsListResponsePostingsLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsLegalInfo interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsLegalInfo(value: object): value is PostingV4PostingFbsListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON(json: any): PostingV4PostingFbsListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsListResponsePostingsLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsListResponsePostingsLegalInfoToJSON(value?: PostingV4PostingFbsListResponsePostingsLegalInfo | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsLegalInfo.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsLegalInfo.js new file mode 100644 index 0000000..2175e3e --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsLegalInfo.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsLegalInfo interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsLegalInfo(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsLegalInfoFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +export function PostingV4PostingFbsListResponsePostingsLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsOptional.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsOptional.d.ts new file mode 100644 index 0000000..2b29437 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsOptional.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров с дополнительными характеристиками. + * @export + * @interface PostingV4PostingFbsListResponsePostingsOptional + */ +export interface PostingV4PostingFbsListResponsePostingsOptional { + /** + * Список товаров с возможной маркировкой. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsOptional + */ + products_with_possible_mandatory_mark?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsOptional interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsOptional(value: object): value is PostingV4PostingFbsListResponsePostingsOptional; +export declare function PostingV4PostingFbsListResponsePostingsOptionalFromJSON(json: any): PostingV4PostingFbsListResponsePostingsOptional; +export declare function PostingV4PostingFbsListResponsePostingsOptionalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsOptional; +export declare function PostingV4PostingFbsListResponsePostingsOptionalToJSON(value?: PostingV4PostingFbsListResponsePostingsOptional | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsOptional.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsOptional.js new file mode 100644 index 0000000..26394a7 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsOptional.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsOptional interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsOptional(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsOptionalFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsOptionalFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsOptionalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_with_possible_mandatory_mark': json['products_with_possible_mandatory_mark'] == null ? undefined : json['products_with_possible_mandatory_mark'], + }; +} +export function PostingV4PostingFbsListResponsePostingsOptionalToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_with_possible_mandatory_mark': value['products_with_possible_mandatory_mark'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsProducts.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..b72fde6 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsProducts.d.ts @@ -0,0 +1,90 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsProducts + */ +export interface PostingV4PostingFbsListResponsePostingsProducts { + /** + * Список IMEI мобильных устройств. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + imei?: Array; + /** + * `true`, если товар отслеживаемый. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + is_blr_traceable?: boolean; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + is_marketplace_buyout?: boolean; + /** + * Название товара. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Цвет товара. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + product_color?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + sku?: number; + /** + * Вес товара в упаковке. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + weight?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsProducts(value: object): value is PostingV4PostingFbsListResponsePostingsProducts; +export declare function PostingV4PostingFbsListResponsePostingsProductsFromJSON(json: any): PostingV4PostingFbsListResponsePostingsProducts; +export declare function PostingV4PostingFbsListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsProducts; +export declare function PostingV4PostingFbsListResponsePostingsProductsToJSON(value?: PostingV4PostingFbsListResponsePostingsProducts | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsProducts.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsProducts.js new file mode 100644 index 0000000..54f1a4d --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsProducts.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyPostingMoneyFromJSON, MoneyPostingMoneyToJSON, } from './MoneyPostingMoney'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsProducts interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsProducts(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsProductsFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsProductsFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'imei': json['imei'] == null ? undefined : json['imei'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : MoneyPostingMoneyFromJSON(json['price']), + 'product_color': json['product_color'] == null ? undefined : json['product_color'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function PostingV4PostingFbsListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'imei': value['imei'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': MoneyPostingMoneyToJSON(value['price']), + 'product_color': value['product_color'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsRequirements.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsRequirements.d.ts new file mode 100644 index 0000000..c5c55dc --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsRequirements.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Товары, для которых нужна дополнительная информация. + * + * Чтобы перевести отправление в следующий статус, передайте: + * - страну-изготовителя; + * - номер грузовой таможенной декларации (ГТД); + * - регистрационный номер партии товара (РНПТ); + * - маркировку «Честный знак»; + * - другие маркировки; + * - вес. + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsRequirements + */ +export interface PostingV4PostingFbsListResponsePostingsRequirements { + /** + * Список идентификаторов товаров (SKU), для которых нужно изменить страну-изготовителя. Чтобы изменить страну-изготовителя, используйте методы [/v2/posting/fbs/product/country/list](#operation/PostingAPI_ListCountryProductFbsPostingV2) и [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_change_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать информацию о стране-изготовителе. + * + * Для сборки отправления передайте информацию о стране-изготовителе для всех перечисленных товаров методом [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать номера грузовой таможенной декларации (ГТД). + * + * До сборки отправления передайте для всех перечисленных товаров номер грузовой таможенной декларации или информацию о том, + * что номера нет, методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_gtd?: Array; + /** + * Список идентификаторов товаров, для которых нужно передать IMEI. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_imei?: Array; + /** + * Список товаров, для которых нужно передать уникальный идентификационный номер (УИН) ювелирного изделия. + * + * До сборки отправления передайте для всех перечисленных товаров УИН методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_jw_uin?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать маркировку «Честный знак». + * + * До сборки отправления передайте для всех перечисленных товаров маркировку «Честный знак» методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_mandatory_mark?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать регистрационный номер партии товара (РНПТ). + * + * До сборки отправления передайте для всех перечисленных товаров РНПТ методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_rnpt?: Array; + /** + * Список товаров, для которых нужно передать вес. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_weight?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsRequirements interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsRequirements(value: object): value is PostingV4PostingFbsListResponsePostingsRequirements; +export declare function PostingV4PostingFbsListResponsePostingsRequirementsFromJSON(json: any): PostingV4PostingFbsListResponsePostingsRequirements; +export declare function PostingV4PostingFbsListResponsePostingsRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsRequirements; +export declare function PostingV4PostingFbsListResponsePostingsRequirementsToJSON(value?: PostingV4PostingFbsListResponsePostingsRequirements | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsRequirements.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsRequirements.js new file mode 100644 index 0000000..64790dc --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsRequirements.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsRequirements interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsRequirements(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsRequirementsFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsRequirementsFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsRequirementsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_requiring_change_country': json['products_requiring_change_country'] == null ? undefined : json['products_requiring_change_country'], + 'products_requiring_country': json['products_requiring_country'] == null ? undefined : json['products_requiring_country'], + 'products_requiring_gtd': json['products_requiring_gtd'] == null ? undefined : json['products_requiring_gtd'], + 'products_requiring_imei': json['products_requiring_imei'] == null ? undefined : json['products_requiring_imei'], + 'products_requiring_jw_uin': json['products_requiring_jw_uin'] == null ? undefined : json['products_requiring_jw_uin'], + 'products_requiring_mandatory_mark': json['products_requiring_mandatory_mark'] == null ? undefined : json['products_requiring_mandatory_mark'], + 'products_requiring_rnpt': json['products_requiring_rnpt'] == null ? undefined : json['products_requiring_rnpt'], + 'products_requiring_weight': json['products_requiring_weight'] == null ? undefined : json['products_requiring_weight'], + }; +} +export function PostingV4PostingFbsListResponsePostingsRequirementsToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_requiring_change_country': value['products_requiring_change_country'], + 'products_requiring_country': value['products_requiring_country'], + 'products_requiring_gtd': value['products_requiring_gtd'], + 'products_requiring_imei': value['products_requiring_imei'], + 'products_requiring_jw_uin': value['products_requiring_jw_uin'], + 'products_requiring_mandatory_mark': value['products_requiring_mandatory_mark'], + 'products_requiring_rnpt': value['products_requiring_rnpt'], + 'products_requiring_weight': value['products_requiring_weight'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsSortingCenter.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsSortingCenter.d.ts new file mode 100644 index 0000000..bdf86be --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsSortingCenter.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сортировочном центре, в который нужно привезти отправление. Для `integration_type_flow = hybrid_3pl_tracking`. + * Если значение `null`, информацию получить не удалось. + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsSortingCenter + */ +export interface PostingV4PostingFbsListResponsePostingsSortingCenter { + /** + * Код сортировочного центра. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsSortingCenter + */ + code?: string; + /** + * Название сортировочного центра. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsSortingCenter + */ + name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsSortingCenter interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsSortingCenter(value: object): value is PostingV4PostingFbsListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON(json: any): PostingV4PostingFbsListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsListResponsePostingsSortingCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsListResponsePostingsSortingCenterToJSON(value?: PostingV4PostingFbsListResponsePostingsSortingCenter | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsSortingCenter.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsSortingCenter.js new file mode 100644 index 0000000..d321b6e --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsSortingCenter.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsSortingCenter interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsSortingCenter(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsSortingCenterFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsSortingCenterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function PostingV4PostingFbsListResponsePostingsSortingCenterToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsTariffication.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsTariffication.d.ts new file mode 100644 index 0000000..fd77166 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsTariffication.d.ts @@ -0,0 +1,83 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyCurrentTariffMinCharge } from './MoneyMoneyCurrentTariffMinCharge'; +import type { MoneyMoneyNextTariffCharge } from './MoneyMoneyNextTariffCharge'; +import type { MoneyMoneyCurrentTariffCharge } from './MoneyMoneyCurrentTariffCharge'; +import type { MoneyMoneyNextTariffMinCharge } from './MoneyMoneyNextTariffMinCharge'; +/** + * Информация по тарификации отгрузки. + * @export + * @interface PostingV4PostingFbsListResponsePostingsTariffication + */ +export interface PostingV4PostingFbsListResponsePostingsTariffication { + /** + * + * @type {MoneyMoneyCurrentTariffCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + current_tariff_charge?: MoneyMoneyCurrentTariffCharge; + /** + * + * @type {MoneyMoneyCurrentTariffMinCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + current_tariff_min_charge?: MoneyMoneyCurrentTariffMinCharge; + /** + * Процент тарификации. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + current_tariff_rate?: number; + /** + * Тип тарификации — скидка или надбавка. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + current_tariff_type?: string; + /** + * + * @type {MoneyMoneyNextTariffCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_charge?: MoneyMoneyNextTariffCharge; + /** + * + * @type {MoneyMoneyNextTariffMinCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_min_charge?: MoneyMoneyNextTariffMinCharge; + /** + * Процент, по которому будет тарифицироваться отправление через время из параметра `next_tariff_starts_at`. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_rate?: number; + /** + * Дата и время, когда начнёт применяться новый тариф. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_starts_at?: string; + /** + * Тип тарификации через время из параметра `next_tariff_starts_at` — скидка или надбавка. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_type?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsTariffication interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsTariffication(value: object): value is PostingV4PostingFbsListResponsePostingsTariffication; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationFromJSON(json: any): PostingV4PostingFbsListResponsePostingsTariffication; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsTariffication; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationToJSON(value?: PostingV4PostingFbsListResponsePostingsTariffication | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsTariffication.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsTariffication.js new file mode 100644 index 0000000..0845a03 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsTariffication.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyCurrentTariffMinChargeFromJSON, MoneyMoneyCurrentTariffMinChargeToJSON, } from './MoneyMoneyCurrentTariffMinCharge'; +import { MoneyMoneyNextTariffChargeFromJSON, MoneyMoneyNextTariffChargeToJSON, } from './MoneyMoneyNextTariffCharge'; +import { MoneyMoneyCurrentTariffChargeFromJSON, MoneyMoneyCurrentTariffChargeToJSON, } from './MoneyMoneyCurrentTariffCharge'; +import { MoneyMoneyNextTariffMinChargeFromJSON, MoneyMoneyNextTariffMinChargeToJSON, } from './MoneyMoneyNextTariffMinCharge'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsTariffication interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsTariffication(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsTarifficationFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsTarifficationFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsTarifficationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_tariff_charge': json['current_tariff_charge'] == null ? undefined : MoneyMoneyCurrentTariffChargeFromJSON(json['current_tariff_charge']), + 'current_tariff_min_charge': json['current_tariff_min_charge'] == null ? undefined : MoneyMoneyCurrentTariffMinChargeFromJSON(json['current_tariff_min_charge']), + 'current_tariff_rate': json['current_tariff_rate'] == null ? undefined : json['current_tariff_rate'], + 'current_tariff_type': json['current_tariff_type'] == null ? undefined : json['current_tariff_type'], + 'next_tariff_charge': json['next_tariff_charge'] == null ? undefined : MoneyMoneyNextTariffChargeFromJSON(json['next_tariff_charge']), + 'next_tariff_min_charge': json['next_tariff_min_charge'] == null ? undefined : MoneyMoneyNextTariffMinChargeFromJSON(json['next_tariff_min_charge']), + 'next_tariff_rate': json['next_tariff_rate'] == null ? undefined : json['next_tariff_rate'], + 'next_tariff_starts_at': json['next_tariff_starts_at'] == null ? undefined : json['next_tariff_starts_at'], + 'next_tariff_type': json['next_tariff_type'] == null ? undefined : json['next_tariff_type'], + }; +} +export function PostingV4PostingFbsListResponsePostingsTarifficationToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_tariff_charge': MoneyMoneyCurrentTariffChargeToJSON(value['current_tariff_charge']), + 'current_tariff_min_charge': MoneyMoneyCurrentTariffMinChargeToJSON(value['current_tariff_min_charge']), + 'current_tariff_rate': value['current_tariff_rate'], + 'current_tariff_type': value['current_tariff_type'], + 'next_tariff_charge': MoneyMoneyNextTariffChargeToJSON(value['next_tariff_charge']), + 'next_tariff_min_charge': MoneyMoneyNextTariffMinChargeToJSON(value['next_tariff_min_charge']), + 'next_tariff_rate': value['next_tariff_rate'], + 'next_tariff_starts_at': value['next_tariff_starts_at'], + 'next_tariff_type': value['next_tariff_type'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.d.ts b/dist/esm/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.d.ts new file mode 100644 index 0000000..c00d228 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyCurrentTariffMinCharge } from './MoneyMoneyCurrentTariffMinCharge'; +import type { MoneyMoneyCurrentTariffCharge } from './MoneyMoneyCurrentTariffCharge'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsTarifficationStep + */ +export interface PostingV4PostingFbsListResponsePostingsTarifficationStep { + /** + * + * @type {MoneyMoneyCurrentTariffMinCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + min_charge?: MoneyMoneyCurrentTariffMinCharge; + /** + * + * @type {MoneyMoneyCurrentTariffCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + tariff_charge?: MoneyMoneyCurrentTariffCharge; + /** + * Дата и время окончания этапа тарификации. После этой даты автоматически начинается следующий этап. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + tariff_deadline_at?: string; + /** + * Процент скидки или надбавки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + tariff_rate?: number; + /** + * Тип тарификации. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + tariff_type?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsTarifficationStep interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsTarifficationStep(value: object): value is PostingV4PostingFbsListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON(json: any): PostingV4PostingFbsListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON(value?: PostingV4PostingFbsListResponsePostingsTarifficationStep | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.js b/dist/esm/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.js new file mode 100644 index 0000000..3151612 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyCurrentTariffMinChargeFromJSON, MoneyMoneyCurrentTariffMinChargeToJSON, } from './MoneyMoneyCurrentTariffMinCharge'; +import { MoneyMoneyCurrentTariffChargeFromJSON, MoneyMoneyCurrentTariffChargeToJSON, } from './MoneyMoneyCurrentTariffCharge'; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsTarifficationStep interface. + */ +export function instanceOfPostingV4PostingFbsListResponsePostingsTarifficationStep(value) { + return true; +} +export function PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSONTyped(json, false); +} +export function PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_charge': json['min_charge'] == null ? undefined : MoneyMoneyCurrentTariffMinChargeFromJSON(json['min_charge']), + 'tariff_charge': json['tariff_charge'] == null ? undefined : MoneyMoneyCurrentTariffChargeFromJSON(json['tariff_charge']), + 'tariff_deadline_at': json['tariff_deadline_at'] == null ? undefined : json['tariff_deadline_at'], + 'tariff_rate': json['tariff_rate'] == null ? undefined : json['tariff_rate'], + 'tariff_type': json['tariff_type'] == null ? undefined : json['tariff_type'], + }; +} +export function PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_charge': MoneyMoneyCurrentTariffMinChargeToJSON(value['min_charge']), + 'tariff_charge': MoneyMoneyCurrentTariffChargeToJSON(value['tariff_charge']), + 'tariff_deadline_at': value['tariff_deadline_at'], + 'tariff_rate': value['tariff_rate'], + 'tariff_type': value['tariff_type'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequest.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequest.d.ts new file mode 100644 index 0000000..338bb9d --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequest.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListRequestSortDirEnum } from './PostingV4PostingFbsUnfulfilledListRequestSortDirEnum'; +import type { PostingV4PostingFbsUnfulfilledListRequestFilter } from './PostingV4PostingFbsUnfulfilledListRequestFilter'; +import type { PostingV4PostingFbsUnfulfilledListRequestWith } from './PostingV4PostingFbsUnfulfilledListRequestWith'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListRequest + */ +export interface PostingV4PostingFbsUnfulfilledListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + cursor?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListRequestFilter} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + filter?: PostingV4PostingFbsUnfulfilledListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + limit?: number; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListRequestSortDirEnum} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + sort_dir?: PostingV4PostingFbsUnfulfilledListRequestSortDirEnum; + /** + * `true`, чтобы включить транслитерацию адреса из кириллицы в латиницу. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + translit?: boolean; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListRequestWith} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + _with?: PostingV4PostingFbsUnfulfilledListRequestWith; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequest interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequest(value: object): value is PostingV4PostingFbsUnfulfilledListRequest; +export declare function PostingV4PostingFbsUnfulfilledListRequestFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequest; +export declare function PostingV4PostingFbsUnfulfilledListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequest; +export declare function PostingV4PostingFbsUnfulfilledListRequestToJSON(value?: PostingV4PostingFbsUnfulfilledListRequest | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequest.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequest.js new file mode 100644 index 0000000..688f2d3 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequest.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON, PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON, } from './PostingV4PostingFbsUnfulfilledListRequestSortDirEnum'; +import { PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON, PostingV4PostingFbsUnfulfilledListRequestFilterToJSON, } from './PostingV4PostingFbsUnfulfilledListRequestFilter'; +import { PostingV4PostingFbsUnfulfilledListRequestWithFromJSON, PostingV4PostingFbsUnfulfilledListRequestWithToJSON, } from './PostingV4PostingFbsUnfulfilledListRequestWith'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequest interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListRequest(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListRequestFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON(json['sort_dir']), + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : PostingV4PostingFbsUnfulfilledListRequestWithFromJSON(json['with']), + }; +} +export function PostingV4PostingFbsUnfulfilledListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': PostingV4PostingFbsUnfulfilledListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'sort_dir': PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON(value['sort_dir']), + 'translit': value['translit'], + 'with': PostingV4PostingFbsUnfulfilledListRequestWithToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilter.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilter.d.ts new file mode 100644 index 0000000..b0bff12 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilter.d.ts @@ -0,0 +1,99 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate } from './PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate'; +/** + * Фильтр запроса. + * + * Используйте фильтр по времени сборки — `cutoff` или по дате передачи отправления в доставку — `delivering_date`. + * Если использовать их вместе, в ответе вернётся ошибка. + * + * Чтобы использовать фильтр по времени сборки, заполните поля `cutoff_from` и `cutoff_to`. + * + * Чтобы использовать фильтр по дате передачи отправления в доставку, заполните поля `delivering_date_from` и `delivering_date_to`. + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListRequestFilter + */ +export interface PostingV4PostingFbsUnfulfilledListRequestFilter { + /** + * Время, до которого продавцу нужно собрать заказ. Начало периода. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + cutoff_from?: string; + /** + * Время, до которого продавцу нужно собрать заказ. Конец периода. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + cutoff_to?: string; + /** + * Минимальная дата передачи отправления в доставку. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + delivering_date_from?: string; + /** + * Максимальная дата передачи отправления в доставку. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + delivering_date_to?: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + delivery_method_ids?: Array; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + last_changed_status_date?: PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; + /** + * Идентификатор службы доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + provider_ids?: Array; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка; + * - `awaiting_approve` — ожидает подтверждения; + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_registration` — ожидает регистрации; + * - `awaiting_deliver` — ожидает отгрузки; + * - `arbitration` — арбитраж; + * - `client_arbitration` — клиентский арбитраж доставки; + * - `delivering` — доставляется; + * - `driver_pickup` — у водителя; + * - `not_accepted` — не принято на сортировочном центре. + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + statuses?: Array; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestFilter interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequestFilter(value: object): value is PostingV4PostingFbsUnfulfilledListRequestFilter; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequestFilter; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequestFilter; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterToJSON(value?: PostingV4PostingFbsUnfulfilledListRequestFilter | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilter.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilter.js new file mode 100644 index 0000000..df12664 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilter.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON, PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON, } from './PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestFilter interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListRequestFilter(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestFilterFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cutoff_from': json['cutoff_from'] == null ? undefined : json['cutoff_from'], + 'cutoff_to': json['cutoff_to'] == null ? undefined : json['cutoff_to'], + 'delivering_date_from': json['delivering_date_from'] == null ? undefined : json['delivering_date_from'], + 'delivering_date_to': json['delivering_date_to'] == null ? undefined : json['delivering_date_to'], + 'delivery_method_ids': json['delivery_method_ids'] == null ? undefined : json['delivery_method_ids'], + 'last_changed_status_date': json['last_changed_status_date'] == null ? undefined : PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON(json['last_changed_status_date']), + 'provider_ids': json['provider_ids'] == null ? undefined : json['provider_ids'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function PostingV4PostingFbsUnfulfilledListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivering_date_from': value['delivering_date_from'], + 'delivering_date_to': value['delivering_date_to'], + 'delivery_method_ids': value['delivery_method_ids'], + 'last_changed_status_date': PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON(value['last_changed_status_date']), + 'provider_ids': value['provider_ids'], + 'statuses': value['statuses'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.d.ts new file mode 100644 index 0000000..3955b5c --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, в который последний раз изменялся статус отправления. + * @export + * @interface PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate + */ +export interface PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate { + /** + * Дата начала периода. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate + */ + to?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate(value: object): value is PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON(value?: PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.js new file mode 100644 index 0000000..f4a177c --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..e9b24cd --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV4PostingFbsUnfulfilledListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV4PostingFbsUnfulfilledListRequestSortDirEnum = typeof PostingV4PostingFbsUnfulfilledListRequestSortDirEnum[keyof typeof PostingV4PostingFbsUnfulfilledListRequestSortDirEnum]; +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequestSortDirEnum(value: any): boolean; +export declare function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequestSortDirEnum; +export declare function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequestSortDirEnum; +export declare function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON(value?: PostingV4PostingFbsUnfulfilledListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.js new file mode 100644 index 0000000..b0fffef --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const PostingV4PostingFbsUnfulfilledListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfPostingV4PostingFbsUnfulfilledListRequestSortDirEnum(value) { + for (const key in PostingV4PostingFbsUnfulfilledListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(PostingV4PostingFbsUnfulfilledListRequestSortDirEnum, key)) { + if (PostingV4PostingFbsUnfulfilledListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestWith.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestWith.d.ts new file mode 100644 index 0000000..a08009b --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestWith.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingV4PostingFbsUnfulfilledListRequestWith + */ +export interface PostingV4PostingFbsUnfulfilledListRequestWith { + /** + * `true`, чтобы добавить в ответ данные аналитики. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ штрихкоды отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequestWith + */ + barcodes?: boolean; + /** + * `true`, чтобы добавить в ответ финансовые данные. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequestWith + */ + financial_data?: boolean; + /** + * `true`, чтобы добавить в ответ юридическую информацию. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequestWith + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestWith interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequestWith(value: object): value is PostingV4PostingFbsUnfulfilledListRequestWith; +export declare function PostingV4PostingFbsUnfulfilledListRequestWithFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequestWith; +export declare function PostingV4PostingFbsUnfulfilledListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequestWith; +export declare function PostingV4PostingFbsUnfulfilledListRequestWithToJSON(value?: PostingV4PostingFbsUnfulfilledListRequestWith | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestWith.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestWith.js new file mode 100644 index 0000000..aa54651 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListRequestWith.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestWith interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListRequestWith(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListRequestWithFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestWithFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +export function PostingV4PostingFbsUnfulfilledListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'barcodes': value['barcodes'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponse.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponse.d.ts new file mode 100644 index 0000000..dc215d5 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostings } from './PostingV4PostingFbsUnfulfilledListResponsePostings'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponse + */ +export interface PostingV4PostingFbsUnfulfilledListResponse { + /** + * Количество отправлений в ответе. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponse + */ + count?: number; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponse + */ + has_next?: boolean; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponse interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponse(value: object): value is PostingV4PostingFbsUnfulfilledListResponse; +export declare function PostingV4PostingFbsUnfulfilledListResponseFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponse; +export declare function PostingV4PostingFbsUnfulfilledListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponse; +export declare function PostingV4PostingFbsUnfulfilledListResponseToJSON(value?: PostingV4PostingFbsUnfulfilledListResponse | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponse.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponse.js new file mode 100644 index 0000000..6852fbb --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostings'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponse interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponse(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponseFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponseFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON)), + }; +} +export function PostingV4PostingFbsUnfulfilledListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostings.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostings.d.ts new file mode 100644 index 0000000..62ca722 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostings.d.ts @@ -0,0 +1,415 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication } from './PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder } from './PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter } from './PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod } from './PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsContainer } from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainer'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep } from './PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsProducts } from './PostingV4PostingFbsUnfulfilledListResponsePostingsProducts'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsOptional } from './PostingV4PostingFbsUnfulfilledListResponsePostingsOptional'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData } from './PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo } from './PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements } from './PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes } from './PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee } from './PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostings + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostings { + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + addressee?: PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + analytics_data?: PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; + /** + * Доступные действия и информация об отправлении: + * - `arbitration` — открыть спор; + * - `awaiting_delivery` — перевести в статус «Ожидает отгрузки»; + * - `can_create_chat` — начать чат с покупателем; + * - `cancel` — отменить отправление; + * - `click_track_number` — просмотреть по трек-номеру историю изменения статусов в личном кабинете; + * - `customer_phone_available` — телефон покупателя; + * - `has_weight_products` — весовые товары в отправлении; + * - `hide_region_and_city` — скрыть регион и город покупателя в отчёте; + * - `invoice_get` — получить информацию из счёта-фактуры; + * - `invoice_send` — создать счёт-фактуру; + * - `invoice_update` — отредактировать счёт-фактуру; + * - `label_download_big` — скачать большую этикетку; + * - `label_download_small` — скачать маленькую этикетку; + * - `label_download` — скачать этикетку; + * - `non_int_delivered` — перевести в статус «Условно доставлен»; + * - `non_int_delivering` — перевести в статус «Доставляется»; + * - `non_int_last_mile` — перевести в статус «Курьер в пути»; + * - `product_cancel` — отменить часть товаров в отправлении; + * - `set_cutoff` — укажите дату отгрузки методом [/v1/posting/cutoff/set](#operation/PostingAPI_SetPostingCutoff) не позже даты в параметре `shipment_date`; + * - `set_timeslot` — изменить время доставки покупателю; + * - `set_track_number` — указать или изменить трек-номер; + * - `ship_async_in_process` — отправление собирается; + * - `ship_async_retry` — собрать отправление повторно после ошибки сборки; + * - `ship_async` — собрать отправление; + * - `ship_with_additional_info` — заполните дополнительную информацию методом [/v6/fbs/posting/product/exemplar/set](https://docs.ozon.ru/api/seller/#operation/PostingAPI_FbsPostingProductExemplarSetV6); + * - `ship` — собрать отправление; + * - `update_cis` — изменить дополнительную информацию. + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + available_actions?: Array; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + barcodes?: PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + cancellation?: PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + customer?: PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsContainer} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + container?: PostingV4PostingFbsUnfulfilledListResponsePostingsContainer; + /** + * Тип сортировки грузоместа: + * - `SORT` — сортируемый; + * - `NON-SORT` — несортируемый. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + container_sort_type?: string; + /** + * Дата передачи отправления в доставку. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + delivering_date?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + delivery_method?: PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; + /** + * Схема доставки: + * - `SDS` — идентификатор единого SKU; + * - `FBO` — идентификатор товара, который продаётся со склада Ozon; + * - `FBS` — идентификатор товара, который продаётся со склада FBS; + * - `Crossborder` — идентификатор товара, который продаётся из-за границы. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + delivery_schema?: string; + /** + * Идентификатор места назначения. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + destination_place_id?: number; + /** + * Название места назначения. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + destination_place_name?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + external_order?: PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + financial_data?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + in_process_at?: string; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + integration_type_flow?: string; + /** + * `true`, если отправление доставляется методом «Самовывоз из магазина». + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + is_click_and_collect?: boolean; + /** + * `true`, если использовалась быстрая доставка Ozon Express. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + is_express?: boolean; + /** + * Признак, что в отправлении есть многокоробочный товар и нужно передать количество коробок для него: + * + * - `true` — до сборки передайте количество коробок через метод [/v3/posting/multiboxqty/set](#operation/PostingAPI_PostingMultiBoxQtySetV3). + * - `false` — отправление собрано с указанием количества коробок в параметре `multi_box_qty` или в отправлении нет многокоробочного товара. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + is_multibox?: boolean; + /** + * `true`, если товар пересорт. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + is_presortable?: boolean; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + legal_info?: PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + multi_box_qty?: number; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsOptional} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + optional?: PostingV4PostingFbsUnfulfilledListResponsePostingsOptional; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + order_number?: string; + /** + * Номер родительского отправления, в результате разделения которого появилось текущее. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + parent_posting_number?: string; + /** + * Дата и время успешной валидации кода курьера. Проверьте код курьера методом [/v1/posting/fbs/pick-up-code/verify](#operation/PostingAPI_PostingFBSPickupCodeVerify). + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + pickup_code_verified_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + products?: Array; + /** + * Код услуги погрузочно-разгрузочных работ: + * - `lift` — подъём на лифте; + * - `stairs` — подъём по лестнице; + * - `none` — покупатель отказался от услуги, поднимать товары не нужно; + * - `delivery_default` — доставка включена в стоимость, по условиям оферты нужно доставить товар на этаж. + * + * Для КГТ-отправлений с доставкой силами продавца или интегрированной службой. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + prr_option?: string; + /** + * Идентификатор эконом-товара. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + quantum_id?: number; + /** + * `true`, если нужно заполнить атрибуты отслеживаемости. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + require_blr_traceable_attrs?: boolean; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + requirements?: PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; + /** + * Дата и время, до которой нужно собрать отправление. Показываем рекомендованное время отгрузки. По истечении этого времени начнёт применяться новый тариф, информацию о нём получите в поле `tariffication`. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + shipment_date?: string; + /** + * Дата и время отгрузки без просрочки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + shipment_date_without_delay?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + sorting_center?: PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка; + * - `arbitration` — арбитраж; + * - `awaiting_approve` — ожидает подтверждения; + * - `awaiting_deliver` — ожидает отгрузки; + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_registration` — ожидает регистрации; + * - `awaiting_verification` — создано; + * - `cancelled` — отменено; + * - `cancelled_from_split_pending` — отменено из-за разделения отправления; + * - `client_arbitration` — клиентский арбитраж доставки; + * - `delivering` — доставляется; + * - `driver_pickup` — у водителя; + * - `not_accepted` — не принято на сортировочном центре. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_acceptance_in_progress`— идёт приёмка; + * - `posting_in_arbitration` — арбитраж; + * - `posting_created` — создано; + * - `posting_in_carriage` — в перевозке; + * - `posting_not_in_carriage` — не добавлено в перевозку; + * - `posting_registered` — зарегистрировано; + * - `posting_transferring_to_delivery`, если `status=awaiting_deliver` — передаётся в доставку; + * - `posting_awaiting_passport_data` — ожидает паспортных данных; + * - `posting_created` — создано; + * - `posting_awaiting_registration` — ожидает регистрации; + * - `posting_registration_error` — ошибка регистрации; + * - `posting_transferring_to_delivery`, если `status=awaiting_registration` — передаётся курьеру; + * - `posting_split_pending` — создано; + * - `posting_canceled` — отменено; + * - `posting_in_client_arbitration` — клиентский арбитраж доставки; + * - `posting_delivered` — доставлено; + * - `posting_received` — получено; + * - `posting_conditionally_delivered` — условно доставлено; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_on_way_to_city` — в пути в ваш город; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_driver_pick_up` — у водителя; + * - `posting_not_in_sort_center` — не принято на сортировочном центре; + * - `ship_failed` — сборка не удалась. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + substatus?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + tariffication?: PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; + /** + * Этапы тарификации. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + tariffication_steps?: Array; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка службой Ozon; + * - `3pl_tracking` — доставка интегрированной службой; + * - `non_integrated` — доставка сторонней службой; + * - `aggregator` — доставка через партнёрскую доставку Ozon; + * - `hybryd` — схема доставки Почты России. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + tpl_integration_type?: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + tracking_number?: string; + /** + * Объёмный вес товара. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + volume_weight?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostings interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostings(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostings; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostings; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostings; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostings | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostings.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostings.js new file mode 100644 index 0000000..f50da71 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostings.js @@ -0,0 +1,140 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainer'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsProducts'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsOptional'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostings interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostings(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'addressee': json['addressee'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON(json['addressee']), + 'analytics_data': json['analytics_data'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON(json['analytics_data']), + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'barcodes': json['barcodes'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON(json['barcodes']), + 'cancellation': json['cancellation'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON(json['cancellation']), + 'customer': json['customer'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON(json['customer']), + 'container': json['container'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON(json['container']), + 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], + 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], + 'delivery_method': json['delivery_method'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON(json['delivery_method']), + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'destination_place_id': json['destination_place_id'] == null ? undefined : json['destination_place_id'], + 'destination_place_name': json['destination_place_name'] == null ? undefined : json['destination_place_name'], + 'external_order': json['external_order'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON(json['external_order']), + 'financial_data': json['financial_data'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'is_click_and_collect': json['is_click_and_collect'] == null ? undefined : json['is_click_and_collect'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], + 'is_presortable': json['is_presortable'] == null ? undefined : json['is_presortable'], + 'legal_info': json['legal_info'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON(json['legal_info']), + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'optional': json['optional'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON(json['optional']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], + 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON)), + 'prr_option': json['prr_option'] == null ? undefined : json['prr_option'], + 'quantum_id': json['quantum_id'] == null ? undefined : json['quantum_id'], + 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], + 'requirements': json['requirements'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON(json['requirements']), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], + 'sorting_center': json['sorting_center'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON(json['sorting_center']), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'tariffication': json['tariffication'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON(json['tariffication']), + 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON)), + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'volume_weight': json['volume_weight'] == null ? undefined : json['volume_weight'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'addressee': PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON(value['addressee']), + 'analytics_data': PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON(value['analytics_data']), + 'available_actions': value['available_actions'], + 'barcodes': PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON(value['barcodes']), + 'cancellation': PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON(value['cancellation']), + 'customer': PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON(value['customer']), + 'container': PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON(value['container']), + 'container_sort_type': value['container_sort_type'], + 'delivering_date': value['delivering_date'], + 'delivery_method': PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON(value['delivery_method']), + 'delivery_schema': value['delivery_schema'], + 'destination_place_id': value['destination_place_id'], + 'destination_place_name': value['destination_place_name'], + 'external_order': PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON(value['external_order']), + 'financial_data': PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'integration_type_flow': value['integration_type_flow'], + 'is_click_and_collect': value['is_click_and_collect'], + 'is_express': value['is_express'], + 'is_multibox': value['is_multibox'], + 'is_presortable': value['is_presortable'], + 'legal_info': PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON(value['legal_info']), + 'multi_box_qty': value['multi_box_qty'], + 'optional': PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON(value['optional']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'parent_posting_number': value['parent_posting_number'], + 'pickup_code_verified_at': value['pickup_code_verified_at'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON)), + 'prr_option': value['prr_option'], + 'quantum_id': value['quantum_id'], + 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], + 'requirements': PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON(value['requirements']), + 'shipment_date': value['shipment_date'], + 'shipment_date_without_delay': value['shipment_date_without_delay'], + 'sorting_center': PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON(value['sorting_center']), + 'status': value['status'], + 'substatus': value['substatus'], + 'tariffication': PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON(value['tariffication']), + 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON)), + 'tpl_integration_type': value['tpl_integration_type'], + 'tracking_number': value['tracking_number'], + 'volume_weight': value['volume_weight'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.d.ts new file mode 100644 index 0000000..08d0752 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контактные данные получателя. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee { + /** + * Имя получателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee + */ + name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAddressee(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.js new file mode 100644 index 0000000..0845c09 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAddressee(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.d.ts new file mode 100644 index 0000000..4d245f6 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.d.ts @@ -0,0 +1,121 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + client_delivery_date_end?: string; + /** + * Дата и время начала доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + delivery_date_begin?: string; + /** + * Дата и время конца доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + delivery_type?: string; + /** + * `true`, если получатель юридическое лицо. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + is_legal?: boolean; + /** + * `true`, если у получателя есть подписка Premium. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`; + * - `карта Ozon Банка`; + * - `автосписание с карты Ozon Банка при выдаче`; + * - `сохранённой картой при получении`; + * - `Система Быстрых Платежей`; + * - `Ozon Рассрочка`; + * - `оплата на расчётный счёт`; + * - `SberPay`; + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + region?: string; + /** + * Служба доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + tpl_provider_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.js new file mode 100644 index 0000000..1a87293 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + 'delivery_date_begin': json['delivery_date_begin'] == null ? undefined : json['delivery_date_begin'], + 'delivery_date_end': json['delivery_date_end'] == null ? undefined : json['delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + 'delivery_date_begin': value['delivery_date_begin'], + 'delivery_date_end': value['delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.d.ts new file mode 100644 index 0000000..94b41c9 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Штрихкоды отправления. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes { + /** + * Нижний штрихкод на маркировке отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes + */ + lower_barcode?: string; + /** + * Верхний штрихкод на маркировке отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes + */ + upper_barcode?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.js new file mode 100644 index 0000000..2f9f643 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lower_barcode': json['lower_barcode'] == null ? undefined : json['lower_barcode'], + 'upper_barcode': json['upper_barcode'] == null ? undefined : json['upper_barcode'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lower_barcode': value['lower_barcode'], + 'upper_barcode': value['upper_barcode'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.d.ts new file mode 100644 index 0000000..978e7da --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation { + /** + * `true`, если отмена влияет на рейтинг продавца. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + affect_cancellation_rating?: boolean; + /** + * Причина отмены. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancel_reason?: string; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancel_reason_id?: number; + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент`, + * - `Покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system` — отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancellation_type?: string; + /** + * `true`, если отмена произошла после сборки отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancelled_after_ship?: boolean; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCancellation(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.js new file mode 100644 index 0000000..5f35609 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCancellation(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'affect_cancellation_rating': json['affect_cancellation_rating'] == null ? undefined : json['affect_cancellation_rating'], + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + 'cancelled_after_ship': json['cancelled_after_ship'] == null ? undefined : json['cancelled_after_ship'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'affect_cancellation_rating': value['affect_cancellation_rating'], + 'cancel_reason': value['cancel_reason'], + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + 'cancelled_after_ship': value['cancelled_after_ship'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.d.ts new file mode 100644 index 0000000..9cd936f --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum } from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum'; +/** + * Информация о грузоместе. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsContainer { + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ + cargo_type?: PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum; + /** + * Дата создания грузоместа в часовом поясе склада. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ + container_date?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ + container_id?: number; + /** + * Порядковый номер грузоместа. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ + container_number?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsContainer interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainer(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsContainer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsContainer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsContainer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsContainer | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.js new file mode 100644 index 0000000..188204d --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsContainer interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainer(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_type': json['cargo_type'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON(json['cargo_type']), + 'container_date': json['container_date'] == null ? undefined : json['container_date'], + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'container_number': json['container_number'] == null ? undefined : json['container_number'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_type': PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON(value['cargo_type']), + 'container_date': value['container_date'], + 'container_id': value['container_id'], + 'container_number': value['container_number'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.d.ts new file mode 100644 index 0000000..57dca6b --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export declare const PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum: { + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum = typeof PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum[keyof typeof PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum]; +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum(value: any): boolean; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.js new file mode 100644 index 0000000..0cbd24b --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export const PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum = { + BOX: 'BOX', + PALLET: 'PALLET' +}; +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum(value) { + for (const key in PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum, key)) { + if (PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.d.ts new file mode 100644 index 0000000..da88081 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress'; +/** + * Информация о покупателе. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer { + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + address?: PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; + /** + * Электронная почта покупателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + customer_email?: string; + /** + * Идентификатор покупателя. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + customer_id?: number; + /** + * Имя покупателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + name?: string; + /** + * Подменный контактный телефон покупателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + phone?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomer(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.js new file mode 100644 index 0000000..b78c42f --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomer(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON(json['address']), + 'customer_email': json['customer_email'] == null ? undefined : json['customer_email'], + 'customer_id': json['customer_id'] == null ? undefined : json['customer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON(value['address']), + 'customer_email': value['customer_email'], + 'customer_id': value['customer_id'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.d.ts new file mode 100644 index 0000000..f73f1d8 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об адресе доставки. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress { + /** + * Адрес в текстовом формате. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + address_tail?: string; + /** + * Город доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + city?: string; + /** + * Комментарий к заказу. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + comment?: string; + /** + * Страна доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + country?: string; + /** + * Район доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + district?: string; + /** + * Широта. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + longitude?: number; + /** + * Код пункта выдачи заказов 3PL-провайдера. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + provider_pvz_code?: string; + /** + * Код пункта выдачи заказов. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + pvz_code?: number; + /** + * Регион доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + region?: string; + /** + * Почтовый индекс получателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + zip_code?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.js new file mode 100644 index 0000000..6f943ac --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_tail': json['address_tail'] == null ? undefined : json['address_tail'], + 'city': json['city'] == null ? undefined : json['city'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'country': json['country'] == null ? undefined : json['country'], + 'district': json['district'] == null ? undefined : json['district'], + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + 'provider_pvz_code': json['provider_pvz_code'] == null ? undefined : json['provider_pvz_code'], + 'pvz_code': json['pvz_code'] == null ? undefined : json['pvz_code'], + 'region': json['region'] == null ? undefined : json['region'], + 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_tail': value['address_tail'], + 'city': value['city'], + 'comment': value['comment'], + 'country': value['country'], + 'district': value['district'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'provider_pvz_code': value['provider_pvz_code'], + 'pvz_code': value['pvz_code'], + 'region': value['region'], + 'zip_code': value['zip_code'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.d.ts new file mode 100644 index 0000000..a743a35 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о способе доставки. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + id?: number; + /** + * Название способа доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + name?: string; + /** + * Служба доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + tpl_provider_id?: number; + /** + * Название склада. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.js new file mode 100644 index 0000000..77fed37 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.d.ts new file mode 100644 index 0000000..c76d460 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.js new file mode 100644 index 0000000..5c9f3cd --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..5566d11 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts'; +/** + * Информация о стоимости товара, размере скидки, выплате и комиссии. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.js new file mode 100644 index 0000000..c02b146 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..8c3b9ba --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,87 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + commission?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + customer_price?: MoneyPostingMoney; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..cc7ffe7 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyPostingMoneyFromJSON, MoneyPostingMoneyToJSON, } from './MoneyPostingMoney'; +import { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON, PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON, } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'commission': json['commission'] == null ? undefined : PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON(json['commission']), + 'customer_price': json['customer_price'] == null ? undefined : MoneyPostingMoneyFromJSON(json['customer_price']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'commission': PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON(value['commission']), + 'customer_price': MoneyPostingMoneyToJSON(value['customer_price']), + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..e9befb5 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission { + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Код валюты, в которой рассчитывалась комиссия. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission + */ + currency?: string; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..70de3c7 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + 'percent': value['percent'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.d.ts new file mode 100644 index 0000000..536f829 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.js new file mode 100644 index 0000000..db5d6a2 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.d.ts new file mode 100644 index 0000000..c811288 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров с дополнительными характеристиками. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsOptional + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsOptional { + /** + * Список товаров с возможной маркировкой. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsOptional + */ + products_with_possible_mandatory_mark?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsOptional interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsOptional(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsOptional; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsOptional; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsOptional; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsOptional | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.js new file mode 100644 index 0000000..4ab106e --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsOptional interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsOptional(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_with_possible_mandatory_mark': json['products_with_possible_mandatory_mark'] == null ? undefined : json['products_with_possible_mandatory_mark'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_with_possible_mandatory_mark': value['products_with_possible_mandatory_mark'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..2e5ff21 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.d.ts @@ -0,0 +1,90 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsProducts { + /** + * Список IMEI мобильных устройств. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + imei?: Array; + /** + * `true`, если товар отслеживаемый. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + is_blr_traceable?: boolean; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + is_marketplace_buyout?: boolean; + /** + * Название товара. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Цвет товара. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + product_color?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + sku?: number; + /** + * Вес товара в упаковке. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + weight?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsProducts(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsProducts | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.js new file mode 100644 index 0000000..d30fa48 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyPostingMoneyFromJSON, MoneyPostingMoneyToJSON, } from './MoneyPostingMoney'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsProducts interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsProducts(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'imei': json['imei'] == null ? undefined : json['imei'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : MoneyPostingMoneyFromJSON(json['price']), + 'product_color': json['product_color'] == null ? undefined : json['product_color'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'imei': value['imei'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': MoneyPostingMoneyToJSON(value['price']), + 'product_color': value['product_color'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.d.ts new file mode 100644 index 0000000..6e35f10 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Товары, для которых нужна дополнительная информация. + * + * Чтобы перевести отправление в следующий статус, передайте: + * - страну-изготовителя; + * - номер грузовой таможенной декларации (ГТД); + * - регистрационный номер партии товара (РНПТ); + * - маркировку «Честный знак»; + * - другие маркировки; + * - вес. + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements { + /** + * Список идентификаторов товаров (SKU), для которых нужно изменить страну-изготовителя. Чтобы изменить страну-изготовителя, используйте методы [/v2/posting/fbs/product/country/list](#operation/PostingAPI_ListCountryProductFbsPostingV2) и [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_change_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать информацию о стране-изготовителе. + * + * Для сборки отправления передайте информацию о стране-изготовителе для всех перечисленных товаров методом [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать номера грузовой таможенной декларации (ГТД). + * + * До сборки отправления передайте для всех перечисленных товаров номер грузовой таможенной декларации или информацию о том, + * что номера нет, методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_gtd?: Array; + /** + * Список идентификаторов товаров, для которых нужно передать IMEI. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_imei?: Array; + /** + * Список товаров, для которых нужно передать уникальный идентификационный номер (УИН) ювелирного изделия. + * + * До сборки отправления передайте для всех перечисленных товаров УИН методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_jw_uin?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать маркировку «Честный знак». + * + * До сборки отправления передайте для всех перечисленных товаров маркировку «Честный знак» методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_mandatory_mark?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать регистрационный номер партии товара (РНПТ). + * + * До сборки отправления передайте для всех перечисленных товаров РНПТ методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_rnpt?: Array; + /** + * Список товаров, для которых нужно передать вес. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_weight?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsRequirements(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.js new file mode 100644 index 0000000..39c7d33 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsRequirements(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_requiring_change_country': json['products_requiring_change_country'] == null ? undefined : json['products_requiring_change_country'], + 'products_requiring_country': json['products_requiring_country'] == null ? undefined : json['products_requiring_country'], + 'products_requiring_gtd': json['products_requiring_gtd'] == null ? undefined : json['products_requiring_gtd'], + 'products_requiring_imei': json['products_requiring_imei'] == null ? undefined : json['products_requiring_imei'], + 'products_requiring_jw_uin': json['products_requiring_jw_uin'] == null ? undefined : json['products_requiring_jw_uin'], + 'products_requiring_mandatory_mark': json['products_requiring_mandatory_mark'] == null ? undefined : json['products_requiring_mandatory_mark'], + 'products_requiring_rnpt': json['products_requiring_rnpt'] == null ? undefined : json['products_requiring_rnpt'], + 'products_requiring_weight': json['products_requiring_weight'] == null ? undefined : json['products_requiring_weight'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_requiring_change_country': value['products_requiring_change_country'], + 'products_requiring_country': value['products_requiring_country'], + 'products_requiring_gtd': value['products_requiring_gtd'], + 'products_requiring_imei': value['products_requiring_imei'], + 'products_requiring_jw_uin': value['products_requiring_jw_uin'], + 'products_requiring_mandatory_mark': value['products_requiring_mandatory_mark'], + 'products_requiring_rnpt': value['products_requiring_rnpt'], + 'products_requiring_weight': value['products_requiring_weight'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.d.ts new file mode 100644 index 0000000..cea262c --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сортировочном центре, в который нужно привезти отправление. Для `integration_type_flow = hybrid_3pl_tracking`. + * Если значение `null`, информацию получить не удалось. + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter { + /** + * Код сортировочного центра. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter + */ + code?: string; + /** + * Название сортировочного центра. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter + */ + name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.js new file mode 100644 index 0000000..3b08b43 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.d.ts new file mode 100644 index 0000000..a0138ff --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.d.ts @@ -0,0 +1,83 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyCurrentTariffMinCharge } from './MoneyMoneyCurrentTariffMinCharge'; +import type { MoneyMoneyNextTariffCharge } from './MoneyMoneyNextTariffCharge'; +import type { MoneyMoneyCurrentTariffCharge } from './MoneyMoneyCurrentTariffCharge'; +import type { MoneyMoneyNextTariffMinCharge } from './MoneyMoneyNextTariffMinCharge'; +/** + * Информация по тарификации отгрузки. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication { + /** + * + * @type {MoneyMoneyCurrentTariffCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + current_tariff_charge?: MoneyMoneyCurrentTariffCharge; + /** + * + * @type {MoneyMoneyCurrentTariffMinCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + current_tariff_min_charge?: MoneyMoneyCurrentTariffMinCharge; + /** + * Процент тарификации. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + current_tariff_rate?: number; + /** + * Тип тарификации — скидка или надбавка. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + current_tariff_type?: string; + /** + * + * @type {MoneyMoneyNextTariffCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_charge?: MoneyMoneyNextTariffCharge; + /** + * + * @type {MoneyMoneyNextTariffMinCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_min_charge?: MoneyMoneyNextTariffMinCharge; + /** + * Процент, по которому будет тарифицироваться отправление через время из параметра `next_tariff_starts_at`. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_rate?: number; + /** + * Дата и время, когда начнёт применяться новый тариф. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_starts_at?: string; + /** + * Тип тарификации через время из параметра `next_tariff_starts_at` — скидка или надбавка. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_type?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTariffication(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.js new file mode 100644 index 0000000..a7cd27b --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyCurrentTariffMinChargeFromJSON, MoneyMoneyCurrentTariffMinChargeToJSON, } from './MoneyMoneyCurrentTariffMinCharge'; +import { MoneyMoneyNextTariffChargeFromJSON, MoneyMoneyNextTariffChargeToJSON, } from './MoneyMoneyNextTariffCharge'; +import { MoneyMoneyCurrentTariffChargeFromJSON, MoneyMoneyCurrentTariffChargeToJSON, } from './MoneyMoneyCurrentTariffCharge'; +import { MoneyMoneyNextTariffMinChargeFromJSON, MoneyMoneyNextTariffMinChargeToJSON, } from './MoneyMoneyNextTariffMinCharge'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTariffication(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_tariff_charge': json['current_tariff_charge'] == null ? undefined : MoneyMoneyCurrentTariffChargeFromJSON(json['current_tariff_charge']), + 'current_tariff_min_charge': json['current_tariff_min_charge'] == null ? undefined : MoneyMoneyCurrentTariffMinChargeFromJSON(json['current_tariff_min_charge']), + 'current_tariff_rate': json['current_tariff_rate'] == null ? undefined : json['current_tariff_rate'], + 'current_tariff_type': json['current_tariff_type'] == null ? undefined : json['current_tariff_type'], + 'next_tariff_charge': json['next_tariff_charge'] == null ? undefined : MoneyMoneyNextTariffChargeFromJSON(json['next_tariff_charge']), + 'next_tariff_min_charge': json['next_tariff_min_charge'] == null ? undefined : MoneyMoneyNextTariffMinChargeFromJSON(json['next_tariff_min_charge']), + 'next_tariff_rate': json['next_tariff_rate'] == null ? undefined : json['next_tariff_rate'], + 'next_tariff_starts_at': json['next_tariff_starts_at'] == null ? undefined : json['next_tariff_starts_at'], + 'next_tariff_type': json['next_tariff_type'] == null ? undefined : json['next_tariff_type'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_tariff_charge': MoneyMoneyCurrentTariffChargeToJSON(value['current_tariff_charge']), + 'current_tariff_min_charge': MoneyMoneyCurrentTariffMinChargeToJSON(value['current_tariff_min_charge']), + 'current_tariff_rate': value['current_tariff_rate'], + 'current_tariff_type': value['current_tariff_type'], + 'next_tariff_charge': MoneyMoneyNextTariffChargeToJSON(value['next_tariff_charge']), + 'next_tariff_min_charge': MoneyMoneyNextTariffMinChargeToJSON(value['next_tariff_min_charge']), + 'next_tariff_rate': value['next_tariff_rate'], + 'next_tariff_starts_at': value['next_tariff_starts_at'], + 'next_tariff_type': value['next_tariff_type'], + }; +} diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.d.ts b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.d.ts new file mode 100644 index 0000000..f4a8fea --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyCurrentTariffMinCharge } from './MoneyMoneyCurrentTariffMinCharge'; +import type { MoneyMoneyCurrentTariffCharge } from './MoneyMoneyCurrentTariffCharge'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep { + /** + * + * @type {MoneyMoneyCurrentTariffMinCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + min_charge?: MoneyMoneyCurrentTariffMinCharge; + /** + * + * @type {MoneyMoneyCurrentTariffCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + tariff_charge?: MoneyMoneyCurrentTariffCharge; + /** + * Дата и время окончания этапа тарификации. После этой даты автоматически применяется следующий этап. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + tariff_deadline_at?: string; + /** + * Процент скидки или надбавки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + tariff_rate?: number; + /** + * Тип тарификации. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + tariff_type?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep | null): any; diff --git a/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.js b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.js new file mode 100644 index 0000000..dc06938 --- /dev/null +++ b/dist/esm/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyCurrentTariffMinChargeFromJSON, MoneyMoneyCurrentTariffMinChargeToJSON, } from './MoneyMoneyCurrentTariffMinCharge'; +import { MoneyMoneyCurrentTariffChargeFromJSON, MoneyMoneyCurrentTariffChargeToJSON, } from './MoneyMoneyCurrentTariffCharge'; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep interface. + */ +export function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep(value) { + return true; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSONTyped(json, false); +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_charge': json['min_charge'] == null ? undefined : MoneyMoneyCurrentTariffMinChargeFromJSON(json['min_charge']), + 'tariff_charge': json['tariff_charge'] == null ? undefined : MoneyMoneyCurrentTariffChargeFromJSON(json['tariff_charge']), + 'tariff_deadline_at': json['tariff_deadline_at'] == null ? undefined : json['tariff_deadline_at'], + 'tariff_rate': json['tariff_rate'] == null ? undefined : json['tariff_rate'], + 'tariff_type': json['tariff_type'] == null ? undefined : json['tariff_type'], + }; +} +export function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_charge': MoneyMoneyCurrentTariffMinChargeToJSON(value['min_charge']), + 'tariff_charge': MoneyMoneyCurrentTariffChargeToJSON(value['tariff_charge']), + 'tariff_deadline_at': value['tariff_deadline_at'], + 'tariff_rate': value['tariff_rate'], + 'tariff_type': value['tariff_type'], + }; +} diff --git a/dist/esm/models/PostinglistV3status.d.ts b/dist/esm/models/PostinglistV3status.d.ts new file mode 100644 index 0000000..9786e66 --- /dev/null +++ b/dist/esm/models/PostinglistV3status.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, в который последний раз изменялся статус у отправлений. + * @export + * @interface PostinglistV3status + */ +export interface PostinglistV3status { + /** + * Дата начала периода. + * @type {string} + * @memberof PostinglistV3status + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof PostinglistV3status + */ + to?: string; +} +/** + * Check if a given object implements the PostinglistV3status interface. + */ +export declare function instanceOfPostinglistV3status(value: object): value is PostinglistV3status; +export declare function PostinglistV3statusFromJSON(json: any): PostinglistV3status; +export declare function PostinglistV3statusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostinglistV3status; +export declare function PostinglistV3statusToJSON(value?: PostinglistV3status | null): any; diff --git a/dist/esm/models/PostinglistV3status.js b/dist/esm/models/PostinglistV3status.js new file mode 100644 index 0000000..f9534d8 --- /dev/null +++ b/dist/esm/models/PostinglistV3status.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PostinglistV3status interface. + */ +export function instanceOfPostinglistV3status(value) { + return true; +} +export function PostinglistV3statusFromJSON(json) { + return PostinglistV3statusFromJSONTyped(json, false); +} +export function PostinglistV3statusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function PostinglistV3statusToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/Postingv1GetCarriageAvailableListRequest.d.ts b/dist/esm/models/Postingv1GetCarriageAvailableListRequest.d.ts new file mode 100644 index 0000000..a6c7329 --- /dev/null +++ b/dist/esm/models/Postingv1GetCarriageAvailableListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Postingv1GetCarriageAvailableListRequest + */ +export interface Postingv1GetCarriageAvailableListRequest { + /** + * Фильтр по методу доставки. Можно получить с помощью метода [/v2/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodListV2). + * @type {number} + * @memberof Postingv1GetCarriageAvailableListRequest + */ + delivery_method_id: number; + /** + * Дата отгрузки. По умолчанию — текущая дата. + * @type {string} + * @memberof Postingv1GetCarriageAvailableListRequest + */ + departure_date?: string; +} +/** + * Check if a given object implements the Postingv1GetCarriageAvailableListRequest interface. + */ +export declare function instanceOfPostingv1GetCarriageAvailableListRequest(value: object): value is Postingv1GetCarriageAvailableListRequest; +export declare function Postingv1GetCarriageAvailableListRequestFromJSON(json: any): Postingv1GetCarriageAvailableListRequest; +export declare function Postingv1GetCarriageAvailableListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv1GetCarriageAvailableListRequest; +export declare function Postingv1GetCarriageAvailableListRequestToJSON(value?: Postingv1GetCarriageAvailableListRequest | null): any; diff --git a/dist/esm/models/Postingv1GetCarriageAvailableListRequest.js b/dist/esm/models/Postingv1GetCarriageAvailableListRequest.js new file mode 100644 index 0000000..641eb61 --- /dev/null +++ b/dist/esm/models/Postingv1GetCarriageAvailableListRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Postingv1GetCarriageAvailableListRequest interface. + */ +export function instanceOfPostingv1GetCarriageAvailableListRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + return true; +} +export function Postingv1GetCarriageAvailableListRequestFromJSON(json) { + return Postingv1GetCarriageAvailableListRequestFromJSONTyped(json, false); +} +export function Postingv1GetCarriageAvailableListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +export function Postingv1GetCarriageAvailableListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/esm/models/Postingv1GetCarriageAvailableListResponse.d.ts b/dist/esm/models/Postingv1GetCarriageAvailableListResponse.d.ts new file mode 100644 index 0000000..704f4ef --- /dev/null +++ b/dist/esm/models/Postingv1GetCarriageAvailableListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetCarriageAvailableListResponseResult } from './GetCarriageAvailableListResponseResult'; +/** + * + * @export + * @interface Postingv1GetCarriageAvailableListResponse + */ +export interface Postingv1GetCarriageAvailableListResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof Postingv1GetCarriageAvailableListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the Postingv1GetCarriageAvailableListResponse interface. + */ +export declare function instanceOfPostingv1GetCarriageAvailableListResponse(value: object): value is Postingv1GetCarriageAvailableListResponse; +export declare function Postingv1GetCarriageAvailableListResponseFromJSON(json: any): Postingv1GetCarriageAvailableListResponse; +export declare function Postingv1GetCarriageAvailableListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv1GetCarriageAvailableListResponse; +export declare function Postingv1GetCarriageAvailableListResponseToJSON(value?: Postingv1GetCarriageAvailableListResponse | null): any; diff --git a/dist/esm/models/Postingv1GetCarriageAvailableListResponse.js b/dist/esm/models/Postingv1GetCarriageAvailableListResponse.js new file mode 100644 index 0000000..08e0ce7 --- /dev/null +++ b/dist/esm/models/Postingv1GetCarriageAvailableListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetCarriageAvailableListResponseResultFromJSON, GetCarriageAvailableListResponseResultToJSON, } from './GetCarriageAvailableListResponseResult'; +/** + * Check if a given object implements the Postingv1GetCarriageAvailableListResponse interface. + */ +export function instanceOfPostingv1GetCarriageAvailableListResponse(value) { + return true; +} +export function Postingv1GetCarriageAvailableListResponseFromJSON(json) { + return Postingv1GetCarriageAvailableListResponseFromJSONTyped(json, false); +} +export function Postingv1GetCarriageAvailableListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(GetCarriageAvailableListResponseResultFromJSON)), + }; +} +export function Postingv1GetCarriageAvailableListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(GetCarriageAvailableListResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/Postingv3FbsPostingWithParams.d.ts b/dist/esm/models/Postingv3FbsPostingWithParams.d.ts new file mode 100644 index 0000000..984cd29 --- /dev/null +++ b/dist/esm/models/Postingv3FbsPostingWithParams.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface Postingv3FbsPostingWithParams + */ +export interface Postingv3FbsPostingWithParams { + /** + * Добавить в ответ данные аналитики. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + analytics_data?: boolean; + /** + * Добавить в ответ штрихкоды отправления. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + barcodes?: boolean; + /** + * Добавить в ответ финансовые данные. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + financial_data?: boolean; + /** + * Добавить в ответ юридическую информацию. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + legal_info?: boolean; + /** + * Выполнить транслитерацию возвращаемых значений. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + translit?: boolean; +} +/** + * Check if a given object implements the Postingv3FbsPostingWithParams interface. + */ +export declare function instanceOfPostingv3FbsPostingWithParams(value: object): value is Postingv3FbsPostingWithParams; +export declare function Postingv3FbsPostingWithParamsFromJSON(json: any): Postingv3FbsPostingWithParams; +export declare function Postingv3FbsPostingWithParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3FbsPostingWithParams; +export declare function Postingv3FbsPostingWithParamsToJSON(value?: Postingv3FbsPostingWithParams | null): any; diff --git a/dist/esm/models/Postingv3FbsPostingWithParams.js b/dist/esm/models/Postingv3FbsPostingWithParams.js new file mode 100644 index 0000000..b0f057e --- /dev/null +++ b/dist/esm/models/Postingv3FbsPostingWithParams.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Postingv3FbsPostingWithParams interface. + */ +export function instanceOfPostingv3FbsPostingWithParams(value) { + return true; +} +export function Postingv3FbsPostingWithParamsFromJSON(json) { + return Postingv3FbsPostingWithParamsFromJSONTyped(json, false); +} +export function Postingv3FbsPostingWithParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + 'translit': json['translit'] == null ? undefined : json['translit'], + }; +} +export function Postingv3FbsPostingWithParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'barcodes': value['barcodes'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + 'translit': value['translit'], + }; +} diff --git a/dist/esm/models/Postingv3FbsPostingWithParamsExamplars.d.ts b/dist/esm/models/Postingv3FbsPostingWithParamsExamplars.d.ts new file mode 100644 index 0000000..460dfde --- /dev/null +++ b/dist/esm/models/Postingv3FbsPostingWithParamsExamplars.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface Postingv3FbsPostingWithParamsExamplars + */ +export interface Postingv3FbsPostingWithParamsExamplars { + /** + * Добавить в ответ данные аналитики. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + analytics_data?: boolean; + /** + * Добавить в ответ штрихкоды отправления. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + barcodes?: boolean; + /** + * Добавить в ответ финансовые данные. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + financial_data?: boolean; + /** + * Добавить в ответ юридическую информацию. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + legal_info?: boolean; + /** + * Добавить в ответ данные о продуктах и их экземплярах. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + product_exemplars?: boolean; + /** + * Добавить в ответ номера связанных отправлений. Связанные отправления — те, на которое было разделено родительское отправление при сборке. + * + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + related_postings?: boolean; + /** + * Выполнить транслитерацию возвращаемых значений. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + translit?: boolean; +} +/** + * Check if a given object implements the Postingv3FbsPostingWithParamsExamplars interface. + */ +export declare function instanceOfPostingv3FbsPostingWithParamsExamplars(value: object): value is Postingv3FbsPostingWithParamsExamplars; +export declare function Postingv3FbsPostingWithParamsExamplarsFromJSON(json: any): Postingv3FbsPostingWithParamsExamplars; +export declare function Postingv3FbsPostingWithParamsExamplarsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3FbsPostingWithParamsExamplars; +export declare function Postingv3FbsPostingWithParamsExamplarsToJSON(value?: Postingv3FbsPostingWithParamsExamplars | null): any; diff --git a/dist/esm/models/Postingv3FbsPostingWithParamsExamplars.js b/dist/esm/models/Postingv3FbsPostingWithParamsExamplars.js new file mode 100644 index 0000000..7569ce0 --- /dev/null +++ b/dist/esm/models/Postingv3FbsPostingWithParamsExamplars.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Postingv3FbsPostingWithParamsExamplars interface. + */ +export function instanceOfPostingv3FbsPostingWithParamsExamplars(value) { + return true; +} +export function Postingv3FbsPostingWithParamsExamplarsFromJSON(json) { + return Postingv3FbsPostingWithParamsExamplarsFromJSONTyped(json, false); +} +export function Postingv3FbsPostingWithParamsExamplarsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + 'product_exemplars': json['product_exemplars'] == null ? undefined : json['product_exemplars'], + 'related_postings': json['related_postings'] == null ? undefined : json['related_postings'], + 'translit': json['translit'] == null ? undefined : json['translit'], + }; +} +export function Postingv3FbsPostingWithParamsExamplarsToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'barcodes': value['barcodes'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + 'product_exemplars': value['product_exemplars'], + 'related_postings': value['related_postings'], + 'translit': value['translit'], + }; +} diff --git a/dist/esm/models/Postingv3GetFbsPostingListRequest.d.ts b/dist/esm/models/Postingv3GetFbsPostingListRequest.d.ts new file mode 100644 index 0000000..0010589 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingListRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3GetFbsPostingListRequestFilter } from './Postingv3GetFbsPostingListRequestFilter'; +import type { Postingv3FbsPostingWithParams } from './Postingv3FbsPostingWithParams'; +/** + * + * @export + * @interface Postingv3GetFbsPostingListRequest + */ +export interface Postingv3GetFbsPostingListRequest { + /** + * Направление сортировки: + * - `asc` — по возрастанию, + * - `desc` — по убыванию. + * + * @type {string} + * @memberof Postingv3GetFbsPostingListRequest + */ + dir?: string; + /** + * + * @type {Postingv3GetFbsPostingListRequestFilter} + * @memberof Postingv3GetFbsPostingListRequest + */ + filter: Postingv3GetFbsPostingListRequestFilter; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof Postingv3GetFbsPostingListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof Postingv3GetFbsPostingListRequest + */ + offset: number; + /** + * + * @type {Postingv3FbsPostingWithParams} + * @memberof Postingv3GetFbsPostingListRequest + */ + _with?: Postingv3FbsPostingWithParams; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingListRequest interface. + */ +export declare function instanceOfPostingv3GetFbsPostingListRequest(value: object): value is Postingv3GetFbsPostingListRequest; +export declare function Postingv3GetFbsPostingListRequestFromJSON(json: any): Postingv3GetFbsPostingListRequest; +export declare function Postingv3GetFbsPostingListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingListRequest; +export declare function Postingv3GetFbsPostingListRequestToJSON(value?: Postingv3GetFbsPostingListRequest | null): any; diff --git a/dist/esm/models/Postingv3GetFbsPostingListRequest.js b/dist/esm/models/Postingv3GetFbsPostingListRequest.js new file mode 100644 index 0000000..54823c4 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingListRequest.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Postingv3GetFbsPostingListRequestFilterFromJSON, Postingv3GetFbsPostingListRequestFilterToJSON, } from './Postingv3GetFbsPostingListRequestFilter'; +import { Postingv3FbsPostingWithParamsFromJSON, Postingv3FbsPostingWithParamsToJSON, } from './Postingv3FbsPostingWithParams'; +/** + * Check if a given object implements the Postingv3GetFbsPostingListRequest interface. + */ +export function instanceOfPostingv3GetFbsPostingListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('offset' in value) || value['offset'] === undefined) + return false; + return true; +} +export function Postingv3GetFbsPostingListRequestFromJSON(json) { + return Postingv3GetFbsPostingListRequestFromJSONTyped(json, false); +} +export function Postingv3GetFbsPostingListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dir': json['dir'] == null ? undefined : json['dir'], + 'filter': Postingv3GetFbsPostingListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'], + '_with': json['with'] == null ? undefined : Postingv3FbsPostingWithParamsFromJSON(json['with']), + }; +} +export function Postingv3GetFbsPostingListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'dir': value['dir'], + 'filter': Postingv3GetFbsPostingListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'with': Postingv3FbsPostingWithParamsToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/Postingv3GetFbsPostingListRequestFilter.d.ts b/dist/esm/models/Postingv3GetFbsPostingListRequestFilter.d.ts new file mode 100644 index 0000000..fc55d75 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingListRequestFilter.d.ts @@ -0,0 +1,131 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostinglistV3status } from './PostinglistV3status'; +/** + * Фильтр. + * @export + * @interface Postingv3GetFbsPostingListRequestFilter + */ +export interface Postingv3GetFbsPostingListRequestFilter { + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + delivery_method_id?: Array; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {Array} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + integration_type_flow?: Array; + /** + * `true`, если товар прослеживаемый. + * + * @type {boolean} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + is_blr_traceable?: boolean; + /** + * Укажите `true`, чтобы получить только отправления квантов. + * + * По умолчанию — `false`, в ответе придут все отправления. + * + * @type {boolean} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + is_quantum?: boolean; + /** + * Идентификатор заказа. + * @type {number} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + order_id?: number; + /** + * Идентификатор службы доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + provider_id?: Array; + /** + * Дата начала периода, за который нужно получить список отправлений. + * + * Формат UTC: ГГГГ-ММ-ДДTЧЧ:ММ:ССZ. + * + * Пример: 2019-08-24T14:15:22Z. + * + * @type {string} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + since: string; + /** + * Дата конца периода, за который нужно получить список отправлений. + * + * Формат UTC: ГГГГ-ММ-ДДTЧЧ:ММ:ССZ. + * + * Пример: 2019-08-24T14:15:22Z. + * + * @type {string} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + to: string; + /** + * Статус отправления: + * - `awaiting_registration` — ожидает регистрации, + * - `acceptance_in_progress` — идёт приёмка, + * - `awaiting_approve` — ожидает подтверждения, + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_deliver` — ожидает отгрузки, + * - `arbitration` — арбитраж, + * - `client_arbitration` — клиентский арбитраж доставки, + * - `delivering` — доставляется, + * - `driver_pickup` — у водителя, + * - `delivered` — доставлено, + * - `cancelled` — отменено, + * - `not_accepted` — не принят на сортировочном центре, + * - `sent_by_seller` – отправлено продавцом. + * + * @type {string} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + status?: string; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + warehouse_id?: Array; + /** + * + * @type {PostinglistV3status} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + last_changed_status_date?: PostinglistV3status; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingListRequestFilter interface. + */ +export declare function instanceOfPostingv3GetFbsPostingListRequestFilter(value: object): value is Postingv3GetFbsPostingListRequestFilter; +export declare function Postingv3GetFbsPostingListRequestFilterFromJSON(json: any): Postingv3GetFbsPostingListRequestFilter; +export declare function Postingv3GetFbsPostingListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingListRequestFilter; +export declare function Postingv3GetFbsPostingListRequestFilterToJSON(value?: Postingv3GetFbsPostingListRequestFilter | null): any; diff --git a/dist/esm/models/Postingv3GetFbsPostingListRequestFilter.js b/dist/esm/models/Postingv3GetFbsPostingListRequestFilter.js new file mode 100644 index 0000000..4b3d89a --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingListRequestFilter.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostinglistV3statusFromJSON, PostinglistV3statusToJSON, } from './PostinglistV3status'; +/** + * Check if a given object implements the Postingv3GetFbsPostingListRequestFilter interface. + */ +export function instanceOfPostingv3GetFbsPostingListRequestFilter(value) { + if (!('since' in value) || value['since'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function Postingv3GetFbsPostingListRequestFilterFromJSON(json) { + return Postingv3GetFbsPostingListRequestFilterFromJSONTyped(json, false); +} +export function Postingv3GetFbsPostingListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_quantum': json['is_quantum'] == null ? undefined : json['is_quantum'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'since': json['since'], + 'to': json['to'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'last_changed_status_date': json['last_changed_status_date'] == null ? undefined : PostinglistV3statusFromJSON(json['last_changed_status_date']), + }; +} +export function Postingv3GetFbsPostingListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'integration_type_flow': value['integration_type_flow'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_quantum': value['is_quantum'], + 'order_id': value['order_id'], + 'provider_id': value['provider_id'], + 'since': value['since'], + 'to': value['to'], + 'status': value['status'], + 'warehouse_id': value['warehouse_id'], + 'last_changed_status_date': PostinglistV3statusToJSON(value['last_changed_status_date']), + }; +} diff --git a/dist/esm/models/Postingv3GetFbsPostingRequest.d.ts b/dist/esm/models/Postingv3GetFbsPostingRequest.d.ts new file mode 100644 index 0000000..bf208a3 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3FbsPostingWithParamsExamplars } from './Postingv3FbsPostingWithParamsExamplars'; +/** + * + * @export + * @interface Postingv3GetFbsPostingRequest + */ +export interface Postingv3GetFbsPostingRequest { + /** + * Идентификатор отправления. + * @type {string} + * @memberof Postingv3GetFbsPostingRequest + */ + posting_number: string; + /** + * + * @type {Postingv3FbsPostingWithParamsExamplars} + * @memberof Postingv3GetFbsPostingRequest + */ + _with?: Postingv3FbsPostingWithParamsExamplars; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingRequest interface. + */ +export declare function instanceOfPostingv3GetFbsPostingRequest(value: object): value is Postingv3GetFbsPostingRequest; +export declare function Postingv3GetFbsPostingRequestFromJSON(json: any): Postingv3GetFbsPostingRequest; +export declare function Postingv3GetFbsPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingRequest; +export declare function Postingv3GetFbsPostingRequestToJSON(value?: Postingv3GetFbsPostingRequest | null): any; diff --git a/dist/esm/models/Postingv3GetFbsPostingRequest.js b/dist/esm/models/Postingv3GetFbsPostingRequest.js new file mode 100644 index 0000000..f3853b4 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingRequest.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Postingv3FbsPostingWithParamsExamplarsFromJSON, Postingv3FbsPostingWithParamsExamplarsToJSON, } from './Postingv3FbsPostingWithParamsExamplars'; +/** + * Check if a given object implements the Postingv3GetFbsPostingRequest interface. + */ +export function instanceOfPostingv3GetFbsPostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function Postingv3GetFbsPostingRequestFromJSON(json) { + return Postingv3GetFbsPostingRequestFromJSONTyped(json, false); +} +export function Postingv3GetFbsPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + '_with': json['with'] == null ? undefined : Postingv3FbsPostingWithParamsExamplarsFromJSON(json['with']), + }; +} +export function Postingv3GetFbsPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'with': Postingv3FbsPostingWithParamsExamplarsToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequest.d.ts b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequest.d.ts new file mode 100644 index 0000000..1f5d4cf --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3GetFbsPostingUnfulfilledListRequestFilter } from './Postingv3GetFbsPostingUnfulfilledListRequestFilter'; +import type { Postingv3FbsPostingWithParams } from './Postingv3FbsPostingWithParams'; +/** + * + * @export + * @interface Postingv3GetFbsPostingUnfulfilledListRequest + */ +export interface Postingv3GetFbsPostingUnfulfilledListRequest { + /** + * Направление сортировки: + * - `asc` — по возрастанию, + * - `desc` — по убыванию. + * + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + dir?: string; + /** + * + * @type {Postingv3GetFbsPostingUnfulfilledListRequestFilter} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + filter: Postingv3GetFbsPostingUnfulfilledListRequestFilter; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + offset: number; + /** + * + * @type {Postingv3FbsPostingWithParams} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + _with?: Postingv3FbsPostingWithParams; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListRequest interface. + */ +export declare function instanceOfPostingv3GetFbsPostingUnfulfilledListRequest(value: object): value is Postingv3GetFbsPostingUnfulfilledListRequest; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFromJSON(json: any): Postingv3GetFbsPostingUnfulfilledListRequest; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingUnfulfilledListRequest; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestToJSON(value?: Postingv3GetFbsPostingUnfulfilledListRequest | null): any; diff --git a/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequest.js b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequest.js new file mode 100644 index 0000000..b81a5c8 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequest.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON, Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON, } from './Postingv3GetFbsPostingUnfulfilledListRequestFilter'; +import { Postingv3FbsPostingWithParamsFromJSON, Postingv3FbsPostingWithParamsToJSON, } from './Postingv3FbsPostingWithParams'; +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListRequest interface. + */ +export function instanceOfPostingv3GetFbsPostingUnfulfilledListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('offset' in value) || value['offset'] === undefined) + return false; + return true; +} +export function Postingv3GetFbsPostingUnfulfilledListRequestFromJSON(json) { + return Postingv3GetFbsPostingUnfulfilledListRequestFromJSONTyped(json, false); +} +export function Postingv3GetFbsPostingUnfulfilledListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dir': json['dir'] == null ? undefined : json['dir'], + 'filter': Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'], + '_with': json['with'] == null ? undefined : Postingv3FbsPostingWithParamsFromJSON(json['with']), + }; +} +export function Postingv3GetFbsPostingUnfulfilledListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'dir': value['dir'], + 'filter': Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'with': Postingv3FbsPostingWithParamsToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.d.ts b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.d.ts new file mode 100644 index 0000000..b7045de --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.d.ts @@ -0,0 +1,116 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3TimeRange } from './V3TimeRange'; +/** + * Фильтр запроса. + * + * Используйте фильтр либо по времени сборки — `cutoff`, либо по дате передачи отправления в доставку — `delivering_date`. + * Если использовать их вместе, в ответе вернётся ошибка. + * + * Чтобы использовать фильтр по времени сборки, заполните поля `cutoff_from` и `cutoff_to`. + * + * Чтобы использовать фильтр по дате передачи отправления в доставку, заполните поля `delivering_date_from` и `delivering_date_to`. + * + * @export + * @interface Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ +export interface Postingv3GetFbsPostingUnfulfilledListRequestFilter { + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: YYYY-MM-DDThh:mm:ss.mcsZ. + * Пример: 2020-03-18T07:34:50.359Z. + * + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + cutoff_from: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: YYYY-MM-DDThh:mm:ss.mcsZ. + * Пример: 2020-03-18T07:34:50.359Z. + * + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + cutoff_to: string; + /** + * Минимальная дата передачи отправления в доставку. + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + delivering_date_from?: string; + /** + * Максимальная дата передачи отправления в доставку. + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + delivering_date_to?: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + delivery_method_id?: Array; + /** + * Укажите `true`, чтобы получить только отправления квантов. + * + * По умолчанию — `false`, в ответе придут все отправления. + * + * @type {boolean} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + is_quantum?: boolean; + /** + * + * @type {V3TimeRange} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + last_changed_status_date?: V3TimeRange; + /** + * Идентификатор службы доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + provider_id?: Array; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка, + * - `awaiting_approve` — ожидает подтверждения, + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_registration` — ожидает регистрации, + * - `awaiting_deliver` — ожидает отгрузки, + * - `arbitration` — арбитраж, + * - `client_arbitration` — клиентский арбитраж доставки, + * - `delivering` — доставляется, + * - `driver_pickup` — у водителя, + * - `not_accepted` — не принят на сортировочном центре. + * + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + status?: string; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + warehouse_id?: Array; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListRequestFilter interface. + */ +export declare function instanceOfPostingv3GetFbsPostingUnfulfilledListRequestFilter(value: object): value is Postingv3GetFbsPostingUnfulfilledListRequestFilter; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON(json: any): Postingv3GetFbsPostingUnfulfilledListRequestFilter; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingUnfulfilledListRequestFilter; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON(value?: Postingv3GetFbsPostingUnfulfilledListRequestFilter | null): any; diff --git a/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.js b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.js new file mode 100644 index 0000000..f28454b --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3TimeRangeFromJSON, V3TimeRangeToJSON, } from './V3TimeRange'; +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListRequestFilter interface. + */ +export function instanceOfPostingv3GetFbsPostingUnfulfilledListRequestFilter(value) { + if (!('cutoff_from' in value) || value['cutoff_from'] === undefined) + return false; + if (!('cutoff_to' in value) || value['cutoff_to'] === undefined) + return false; + return true; +} +export function Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON(json) { + return Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSONTyped(json, false); +} +export function Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cutoff_from': json['cutoff_from'], + 'cutoff_to': json['cutoff_to'], + 'delivering_date_from': json['delivering_date_from'] == null ? undefined : json['delivering_date_from'], + 'delivering_date_to': json['delivering_date_to'] == null ? undefined : json['delivering_date_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'is_quantum': json['is_quantum'] == null ? undefined : json['is_quantum'], + 'last_changed_status_date': json['last_changed_status_date'] == null ? undefined : V3TimeRangeFromJSON(json['last_changed_status_date']), + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivering_date_from': value['delivering_date_from'], + 'delivering_date_to': value['delivering_date_to'], + 'delivery_method_id': value['delivery_method_id'], + 'is_quantum': value['is_quantum'], + 'last_changed_status_date': V3TimeRangeToJSON(value['last_changed_status_date']), + 'provider_id': value['provider_id'], + 'status': value['status'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponse.d.ts b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponse.d.ts new file mode 100644 index 0000000..75bc361 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3GetFbsPostingUnfulfilledListResponseResult } from './Postingv3GetFbsPostingUnfulfilledListResponseResult'; +/** + * + * @export + * @interface Postingv3GetFbsPostingUnfulfilledListResponse + */ +export interface Postingv3GetFbsPostingUnfulfilledListResponse { + /** + * + * @type {Postingv3GetFbsPostingUnfulfilledListResponseResult} + * @memberof Postingv3GetFbsPostingUnfulfilledListResponse + */ + result?: Postingv3GetFbsPostingUnfulfilledListResponseResult; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListResponse interface. + */ +export declare function instanceOfPostingv3GetFbsPostingUnfulfilledListResponse(value: object): value is Postingv3GetFbsPostingUnfulfilledListResponse; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseFromJSON(json: any): Postingv3GetFbsPostingUnfulfilledListResponse; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingUnfulfilledListResponse; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseToJSON(value?: Postingv3GetFbsPostingUnfulfilledListResponse | null): any; diff --git a/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponse.js b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponse.js new file mode 100644 index 0000000..31ad4c6 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON, Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON, } from './Postingv3GetFbsPostingUnfulfilledListResponseResult'; +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListResponse interface. + */ +export function instanceOfPostingv3GetFbsPostingUnfulfilledListResponse(value) { + return true; +} +export function Postingv3GetFbsPostingUnfulfilledListResponseFromJSON(json) { + return Postingv3GetFbsPostingUnfulfilledListResponseFromJSONTyped(json, false); +} +export function Postingv3GetFbsPostingUnfulfilledListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON(json['result']), + }; +} +export function Postingv3GetFbsPostingUnfulfilledListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.d.ts b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.d.ts new file mode 100644 index 0000000..8e03d50 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPosting } from './V3FbsPosting'; +/** + * Результат запроса. + * @export + * @interface Postingv3GetFbsPostingUnfulfilledListResponseResult + */ +export interface Postingv3GetFbsPostingUnfulfilledListResponseResult { + /** + * Счётчик элементов в ответе. + * @type {number} + * @memberof Postingv3GetFbsPostingUnfulfilledListResponseResult + */ + count?: number; + /** + * Список отправлений и подробная информация по каждому. + * @type {Array} + * @memberof Postingv3GetFbsPostingUnfulfilledListResponseResult + */ + postings?: Array; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListResponseResult interface. + */ +export declare function instanceOfPostingv3GetFbsPostingUnfulfilledListResponseResult(value: object): value is Postingv3GetFbsPostingUnfulfilledListResponseResult; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON(json: any): Postingv3GetFbsPostingUnfulfilledListResponseResult; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingUnfulfilledListResponseResult; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON(value?: Postingv3GetFbsPostingUnfulfilledListResponseResult | null): any; diff --git a/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.js b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.js new file mode 100644 index 0000000..011a908 --- /dev/null +++ b/dist/esm/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3FbsPostingFromJSON, V3FbsPostingToJSON, } from './V3FbsPosting'; +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListResponseResult interface. + */ +export function instanceOfPostingv3GetFbsPostingUnfulfilledListResponseResult(value) { + return true; +} +export function Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON(json) { + return Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSONTyped(json, false); +} +export function Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V3FbsPostingFromJSON)), + }; +} +export function Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V3FbsPostingToJSON)), + }; +} diff --git a/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Request.d.ts b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Request.d.ts new file mode 100644 index 0000000..9c5e7c9 --- /dev/null +++ b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Postingv3PostingMultiBoxQtySetV3Request + */ +export interface Postingv3PostingMultiBoxQtySetV3Request { + /** + * Идентификатор многокоробочного отправления. + * @type {string} + * @memberof Postingv3PostingMultiBoxQtySetV3Request + */ + posting_number: string; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof Postingv3PostingMultiBoxQtySetV3Request + */ + multi_box_qty: number; +} +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3Request interface. + */ +export declare function instanceOfPostingv3PostingMultiBoxQtySetV3Request(value: object): value is Postingv3PostingMultiBoxQtySetV3Request; +export declare function Postingv3PostingMultiBoxQtySetV3RequestFromJSON(json: any): Postingv3PostingMultiBoxQtySetV3Request; +export declare function Postingv3PostingMultiBoxQtySetV3RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3PostingMultiBoxQtySetV3Request; +export declare function Postingv3PostingMultiBoxQtySetV3RequestToJSON(value?: Postingv3PostingMultiBoxQtySetV3Request | null): any; diff --git a/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Request.js b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Request.js new file mode 100644 index 0000000..aada4b9 --- /dev/null +++ b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Request.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3Request interface. + */ +export function instanceOfPostingv3PostingMultiBoxQtySetV3Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('multi_box_qty' in value) || value['multi_box_qty'] === undefined) + return false; + return true; +} +export function Postingv3PostingMultiBoxQtySetV3RequestFromJSON(json) { + return Postingv3PostingMultiBoxQtySetV3RequestFromJSONTyped(json, false); +} +export function Postingv3PostingMultiBoxQtySetV3RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'multi_box_qty': json['multi_box_qty'], + }; +} +export function Postingv3PostingMultiBoxQtySetV3RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'multi_box_qty': value['multi_box_qty'], + }; +} diff --git a/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Response.d.ts b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Response.d.ts new file mode 100644 index 0000000..d38d55b --- /dev/null +++ b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3PostingMultiBoxQtySetV3ResponseResult } from './Postingv3PostingMultiBoxQtySetV3ResponseResult'; +/** + * + * @export + * @interface Postingv3PostingMultiBoxQtySetV3Response + */ +export interface Postingv3PostingMultiBoxQtySetV3Response { + /** + * + * @type {Postingv3PostingMultiBoxQtySetV3ResponseResult} + * @memberof Postingv3PostingMultiBoxQtySetV3Response + */ + result?: Postingv3PostingMultiBoxQtySetV3ResponseResult; +} +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3Response interface. + */ +export declare function instanceOfPostingv3PostingMultiBoxQtySetV3Response(value: object): value is Postingv3PostingMultiBoxQtySetV3Response; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseFromJSON(json: any): Postingv3PostingMultiBoxQtySetV3Response; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3PostingMultiBoxQtySetV3Response; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseToJSON(value?: Postingv3PostingMultiBoxQtySetV3Response | null): any; diff --git a/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Response.js b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Response.js new file mode 100644 index 0000000..66f0f49 --- /dev/null +++ b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON, Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON, } from './Postingv3PostingMultiBoxQtySetV3ResponseResult'; +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3Response interface. + */ +export function instanceOfPostingv3PostingMultiBoxQtySetV3Response(value) { + return true; +} +export function Postingv3PostingMultiBoxQtySetV3ResponseFromJSON(json) { + return Postingv3PostingMultiBoxQtySetV3ResponseFromJSONTyped(json, false); +} +export function Postingv3PostingMultiBoxQtySetV3ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON(json['result']), + }; +} +export function Postingv3PostingMultiBoxQtySetV3ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.d.ts b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.d.ts new file mode 100644 index 0000000..134d1bc --- /dev/null +++ b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат передачи количества коробок. + * @export + * @interface Postingv3PostingMultiBoxQtySetV3ResponseResult + */ +export interface Postingv3PostingMultiBoxQtySetV3ResponseResult { + /** + * Возможные значения: + * - `true` — значение передано успешно. + * - `false` — при передаче произошла ошибка. Попробуйте снова. + * + * @type {boolean} + * @memberof Postingv3PostingMultiBoxQtySetV3ResponseResult + */ + result?: boolean; +} +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3ResponseResult interface. + */ +export declare function instanceOfPostingv3PostingMultiBoxQtySetV3ResponseResult(value: object): value is Postingv3PostingMultiBoxQtySetV3ResponseResult; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON(json: any): Postingv3PostingMultiBoxQtySetV3ResponseResult; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3PostingMultiBoxQtySetV3ResponseResult; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON(value?: Postingv3PostingMultiBoxQtySetV3ResponseResult | null): any; diff --git a/dist/esm/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.js b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.js new file mode 100644 index 0000000..833d366 --- /dev/null +++ b/dist/esm/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3ResponseResult interface. + */ +export function instanceOfPostingv3PostingMultiBoxQtySetV3ResponseResult(value) { + return true; +} +export function Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON(json) { + return Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSONTyped(json, false); +} +export function Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/PremiumScoresScore.d.ts b/dist/esm/models/PremiumScoresScore.d.ts new file mode 100644 index 0000000..d6be633 --- /dev/null +++ b/dist/esm/models/PremiumScoresScore.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PremiumScoresScore + */ +export interface PremiumScoresScore { + /** + * Дата, когда были начислены штрафные баллы. + * @type {string} + * @memberof PremiumScoresScore + */ + date?: string; + /** + * Значение рейтинга, за которое были начислены штрафные баллы. + * @type {number} + * @memberof PremiumScoresScore + */ + rating_value?: number; + /** + * Количество начисленных штрафных баллов. + * @type {number} + * @memberof PremiumScoresScore + */ + value?: number; +} +/** + * Check if a given object implements the PremiumScoresScore interface. + */ +export declare function instanceOfPremiumScoresScore(value: object): value is PremiumScoresScore; +export declare function PremiumScoresScoreFromJSON(json: any): PremiumScoresScore; +export declare function PremiumScoresScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): PremiumScoresScore; +export declare function PremiumScoresScoreToJSON(value?: PremiumScoresScore | null): any; diff --git a/dist/esm/models/PremiumScoresScore.js b/dist/esm/models/PremiumScoresScore.js new file mode 100644 index 0000000..1dc9b85 --- /dev/null +++ b/dist/esm/models/PremiumScoresScore.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PremiumScoresScore interface. + */ +export function instanceOfPremiumScoresScore(value) { + return true; +} +export function PremiumScoresScoreFromJSON(json) { + return PremiumScoresScoreFromJSONTyped(json, false); +} +export function PremiumScoresScoreFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'rating_value': json['rating_value'] == null ? undefined : json['rating_value'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function PremiumScoresScoreToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'rating_value': value['rating_value'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/PriceIndexesColorIndex.d.ts b/dist/esm/models/PriceIndexesColorIndex.d.ts new file mode 100644 index 0000000..5225084 --- /dev/null +++ b/dist/esm/models/PriceIndexesColorIndex.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Виды индекса цен: + * - `COLOR_INDEX_UNSPECIFIED` — не определён, + * - `COLOR_INDEX_WITHOUT_INDEX` — отсутствует, + * - `COLOR_INDEX_SUPER` — супервыгодный, + * - `COLOR_INDEX_GREEN` — выгодный, + * - `COLOR_INDEX_YELLOW` — умеренный, + * - `COLOR_INDEX_RED` — невыгодный. + * + * [Подробнее об индексе цен в Базе знаний продавца](https://seller-edu.ozon.ru/ceny-i-akcii/rabota-s-cenami/price-index) + * + * @export + */ +export declare const PriceIndexesColorIndex: { + readonly UNSPECIFIED: "COLOR_INDEX_UNSPECIFIED"; + readonly WITHOUT_INDEX: "COLOR_INDEX_WITHOUT_INDEX"; + readonly SUPER: "COLOR_INDEX_SUPER"; + readonly GREEN: "COLOR_INDEX_GREEN"; + readonly YELLOW: "COLOR_INDEX_YELLOW"; + readonly RED: "COLOR_INDEX_RED"; +}; +export type PriceIndexesColorIndex = typeof PriceIndexesColorIndex[keyof typeof PriceIndexesColorIndex]; +export declare function instanceOfPriceIndexesColorIndex(value: any): boolean; +export declare function PriceIndexesColorIndexFromJSON(json: any): PriceIndexesColorIndex; +export declare function PriceIndexesColorIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesColorIndex; +export declare function PriceIndexesColorIndexToJSON(value?: PriceIndexesColorIndex | null): any; diff --git a/dist/esm/models/PriceIndexesColorIndex.js b/dist/esm/models/PriceIndexesColorIndex.js new file mode 100644 index 0000000..b771301 --- /dev/null +++ b/dist/esm/models/PriceIndexesColorIndex.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Виды индекса цен: + * - `COLOR_INDEX_UNSPECIFIED` — не определён, + * - `COLOR_INDEX_WITHOUT_INDEX` — отсутствует, + * - `COLOR_INDEX_SUPER` — супервыгодный, + * - `COLOR_INDEX_GREEN` — выгодный, + * - `COLOR_INDEX_YELLOW` — умеренный, + * - `COLOR_INDEX_RED` — невыгодный. + * + * [Подробнее об индексе цен в Базе знаний продавца](https://seller-edu.ozon.ru/ceny-i-akcii/rabota-s-cenami/price-index) + * + * @export + */ +export const PriceIndexesColorIndex = { + UNSPECIFIED: 'COLOR_INDEX_UNSPECIFIED', + WITHOUT_INDEX: 'COLOR_INDEX_WITHOUT_INDEX', + SUPER: 'COLOR_INDEX_SUPER', + GREEN: 'COLOR_INDEX_GREEN', + YELLOW: 'COLOR_INDEX_YELLOW', + RED: 'COLOR_INDEX_RED' +}; +export function instanceOfPriceIndexesColorIndex(value) { + for (const key in PriceIndexesColorIndex) { + if (Object.prototype.hasOwnProperty.call(PriceIndexesColorIndex, key)) { + if (PriceIndexesColorIndex[key] === value) { + return true; + } + } + } + return false; +} +export function PriceIndexesColorIndexFromJSON(json) { + return PriceIndexesColorIndexFromJSONTyped(json, false); +} +export function PriceIndexesColorIndexFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function PriceIndexesColorIndexToJSON(value) { + return value; +} diff --git a/dist/esm/models/PriceIndexesIndexDataExternal.d.ts b/dist/esm/models/PriceIndexesIndexDataExternal.d.ts new file mode 100644 index 0000000..fba0d61 --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexDataExternal.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара у конкурентов на других площадках. + * @export + * @interface PriceIndexesIndexDataExternal + */ +export interface PriceIndexesIndexDataExternal { + /** + * Минимальная цена товара у конкурентов на другой площадке. + * @type {string} + * @memberof PriceIndexesIndexDataExternal + */ + minimal_price?: string; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexDataExternal + */ + minimal_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexDataExternal + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexDataExternal interface. + */ +export declare function instanceOfPriceIndexesIndexDataExternal(value: object): value is PriceIndexesIndexDataExternal; +export declare function PriceIndexesIndexDataExternalFromJSON(json: any): PriceIndexesIndexDataExternal; +export declare function PriceIndexesIndexDataExternalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexDataExternal; +export declare function PriceIndexesIndexDataExternalToJSON(value?: PriceIndexesIndexDataExternal | null): any; diff --git a/dist/esm/models/PriceIndexesIndexDataExternal.js b/dist/esm/models/PriceIndexesIndexDataExternal.js new file mode 100644 index 0000000..91892c5 --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexDataExternal.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PriceIndexesIndexDataExternal interface. + */ +export function instanceOfPriceIndexesIndexDataExternal(value) { + return true; +} +export function PriceIndexesIndexDataExternalFromJSON(json) { + return PriceIndexesIndexDataExternalFromJSONTyped(json, false); +} +export function PriceIndexesIndexDataExternalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'minimal_price': json['minimal_price'] == null ? undefined : json['minimal_price'], + 'minimal_price_currency': json['minimal_price_currency'] == null ? undefined : json['minimal_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +export function PriceIndexesIndexDataExternalToJSON(value) { + if (value == null) { + return value; + } + return { + 'minimal_price': value['minimal_price'], + 'minimal_price_currency': value['minimal_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/esm/models/PriceIndexesIndexDataOzon.d.ts b/dist/esm/models/PriceIndexesIndexDataOzon.d.ts new file mode 100644 index 0000000..3ab5e5e --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexDataOzon.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара у конкурентов на Ozon. + * @export + * @interface PriceIndexesIndexDataOzon + */ +export interface PriceIndexesIndexDataOzon { + /** + * Минимальная цена товара у конкурентов на Ozon. + * @type {string} + * @memberof PriceIndexesIndexDataOzon + */ + minimal_price?: string; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexDataOzon + */ + minimal_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexDataOzon + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexDataOzon interface. + */ +export declare function instanceOfPriceIndexesIndexDataOzon(value: object): value is PriceIndexesIndexDataOzon; +export declare function PriceIndexesIndexDataOzonFromJSON(json: any): PriceIndexesIndexDataOzon; +export declare function PriceIndexesIndexDataOzonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexDataOzon; +export declare function PriceIndexesIndexDataOzonToJSON(value?: PriceIndexesIndexDataOzon | null): any; diff --git a/dist/esm/models/PriceIndexesIndexDataOzon.js b/dist/esm/models/PriceIndexesIndexDataOzon.js new file mode 100644 index 0000000..36fdb65 --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexDataOzon.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PriceIndexesIndexDataOzon interface. + */ +export function instanceOfPriceIndexesIndexDataOzon(value) { + return true; +} +export function PriceIndexesIndexDataOzonFromJSON(json) { + return PriceIndexesIndexDataOzonFromJSONTyped(json, false); +} +export function PriceIndexesIndexDataOzonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'minimal_price': json['minimal_price'] == null ? undefined : json['minimal_price'], + 'minimal_price_currency': json['minimal_price_currency'] == null ? undefined : json['minimal_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +export function PriceIndexesIndexDataOzonToJSON(value) { + if (value == null) { + return value; + } + return { + 'minimal_price': value['minimal_price'], + 'minimal_price_currency': value['minimal_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/esm/models/PriceIndexesIndexDataSelf.d.ts b/dist/esm/models/PriceIndexesIndexDataSelf.d.ts new file mode 100644 index 0000000..9d1d6cf --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexDataSelf.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена вашего товара на других площадках. + * @export + * @interface PriceIndexesIndexDataSelf + */ +export interface PriceIndexesIndexDataSelf { + /** + * Минимальная цена вашего товара на других площадках. + * @type {string} + * @memberof PriceIndexesIndexDataSelf + */ + minimal_price?: string; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexDataSelf + */ + minimal_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexDataSelf + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexDataSelf interface. + */ +export declare function instanceOfPriceIndexesIndexDataSelf(value: object): value is PriceIndexesIndexDataSelf; +export declare function PriceIndexesIndexDataSelfFromJSON(json: any): PriceIndexesIndexDataSelf; +export declare function PriceIndexesIndexDataSelfFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexDataSelf; +export declare function PriceIndexesIndexDataSelfToJSON(value?: PriceIndexesIndexDataSelf | null): any; diff --git a/dist/esm/models/PriceIndexesIndexDataSelf.js b/dist/esm/models/PriceIndexesIndexDataSelf.js new file mode 100644 index 0000000..9feea2f --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexDataSelf.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PriceIndexesIndexDataSelf interface. + */ +export function instanceOfPriceIndexesIndexDataSelf(value) { + return true; +} +export function PriceIndexesIndexDataSelfFromJSON(json) { + return PriceIndexesIndexDataSelfFromJSONTyped(json, false); +} +export function PriceIndexesIndexDataSelfFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'minimal_price': json['minimal_price'] == null ? undefined : json['minimal_price'], + 'minimal_price_currency': json['minimal_price_currency'] == null ? undefined : json['minimal_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +export function PriceIndexesIndexDataSelfToJSON(value) { + if (value == null) { + return value; + } + return { + 'minimal_price': value['minimal_price'], + 'minimal_price_currency': value['minimal_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/esm/models/PriceIndexesIndexExternalData.d.ts b/dist/esm/models/PriceIndexesIndexExternalData.d.ts new file mode 100644 index 0000000..acf1787 --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexExternalData.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара у конкурентов на других площадках. + * @export + * @interface PriceIndexesIndexExternalData + */ +export interface PriceIndexesIndexExternalData { + /** + * Минимальная цена товара у конкурентов на другой площадке. + * @type {number} + * @memberof PriceIndexesIndexExternalData + */ + min_price?: number; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexExternalData + */ + min_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexExternalData + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexExternalData interface. + */ +export declare function instanceOfPriceIndexesIndexExternalData(value: object): value is PriceIndexesIndexExternalData; +export declare function PriceIndexesIndexExternalDataFromJSON(json: any): PriceIndexesIndexExternalData; +export declare function PriceIndexesIndexExternalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexExternalData; +export declare function PriceIndexesIndexExternalDataToJSON(value?: PriceIndexesIndexExternalData | null): any; diff --git a/dist/esm/models/PriceIndexesIndexExternalData.js b/dist/esm/models/PriceIndexesIndexExternalData.js new file mode 100644 index 0000000..71b351a --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexExternalData.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PriceIndexesIndexExternalData interface. + */ +export function instanceOfPriceIndexesIndexExternalData(value) { + return true; +} +export function PriceIndexesIndexExternalDataFromJSON(json) { + return PriceIndexesIndexExternalDataFromJSONTyped(json, false); +} +export function PriceIndexesIndexExternalDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'min_price_currency': json['min_price_currency'] == null ? undefined : json['min_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +export function PriceIndexesIndexExternalDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': value['min_price'], + 'min_price_currency': value['min_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/esm/models/PriceIndexesIndexOzonData.d.ts b/dist/esm/models/PriceIndexesIndexOzonData.d.ts new file mode 100644 index 0000000..d874a60 --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexOzonData.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара у конкурентов на Ozon. + * @export + * @interface PriceIndexesIndexOzonData + */ +export interface PriceIndexesIndexOzonData { + /** + * Минимальная цена товара у конкурентов на Ozon. + * @type {number} + * @memberof PriceIndexesIndexOzonData + */ + min_price?: number; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexOzonData + */ + min_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexOzonData + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexOzonData interface. + */ +export declare function instanceOfPriceIndexesIndexOzonData(value: object): value is PriceIndexesIndexOzonData; +export declare function PriceIndexesIndexOzonDataFromJSON(json: any): PriceIndexesIndexOzonData; +export declare function PriceIndexesIndexOzonDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexOzonData; +export declare function PriceIndexesIndexOzonDataToJSON(value?: PriceIndexesIndexOzonData | null): any; diff --git a/dist/esm/models/PriceIndexesIndexOzonData.js b/dist/esm/models/PriceIndexesIndexOzonData.js new file mode 100644 index 0000000..68267da --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexOzonData.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PriceIndexesIndexOzonData interface. + */ +export function instanceOfPriceIndexesIndexOzonData(value) { + return true; +} +export function PriceIndexesIndexOzonDataFromJSON(json) { + return PriceIndexesIndexOzonDataFromJSONTyped(json, false); +} +export function PriceIndexesIndexOzonDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'min_price_currency': json['min_price_currency'] == null ? undefined : json['min_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +export function PriceIndexesIndexOzonDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': value['min_price'], + 'min_price_currency': value['min_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/esm/models/PriceIndexesIndexSelfData.d.ts b/dist/esm/models/PriceIndexesIndexSelfData.d.ts new file mode 100644 index 0000000..7f73fcf --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexSelfData.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена вашего товара на других площадках. + * @export + * @interface PriceIndexesIndexSelfData + */ +export interface PriceIndexesIndexSelfData { + /** + * Минимальная цена вашего товара на других площадках. + * @type {number} + * @memberof PriceIndexesIndexSelfData + */ + min_price?: number; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexSelfData + */ + min_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexSelfData + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexSelfData interface. + */ +export declare function instanceOfPriceIndexesIndexSelfData(value: object): value is PriceIndexesIndexSelfData; +export declare function PriceIndexesIndexSelfDataFromJSON(json: any): PriceIndexesIndexSelfData; +export declare function PriceIndexesIndexSelfDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexSelfData; +export declare function PriceIndexesIndexSelfDataToJSON(value?: PriceIndexesIndexSelfData | null): any; diff --git a/dist/esm/models/PriceIndexesIndexSelfData.js b/dist/esm/models/PriceIndexesIndexSelfData.js new file mode 100644 index 0000000..f7b2150 --- /dev/null +++ b/dist/esm/models/PriceIndexesIndexSelfData.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the PriceIndexesIndexSelfData interface. + */ +export function instanceOfPriceIndexesIndexSelfData(value) { + return true; +} +export function PriceIndexesIndexSelfDataFromJSON(json) { + return PriceIndexesIndexSelfDataFromJSONTyped(json, false); +} +export function PriceIndexesIndexSelfDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'min_price_currency': json['min_price_currency'] == null ? undefined : json['min_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +export function PriceIndexesIndexSelfDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': value['min_price'], + 'min_price_currency': value['min_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/esm/models/ProductBooleanResponse.d.ts b/dist/esm/models/ProductBooleanResponse.d.ts new file mode 100644 index 0000000..1de9204 --- /dev/null +++ b/dist/esm/models/ProductBooleanResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductBooleanResponse + */ +export interface ProductBooleanResponse { + /** + * Результат обработки запроса. `true`, если запрос выполнен без ошибок. + * @type {boolean} + * @memberof ProductBooleanResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the ProductBooleanResponse interface. + */ +export declare function instanceOfProductBooleanResponse(value: object): value is ProductBooleanResponse; +export declare function ProductBooleanResponseFromJSON(json: any): ProductBooleanResponse; +export declare function ProductBooleanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductBooleanResponse; +export declare function ProductBooleanResponseToJSON(value?: ProductBooleanResponse | null): any; diff --git a/dist/esm/models/ProductBooleanResponse.js b/dist/esm/models/ProductBooleanResponse.js new file mode 100644 index 0000000..200c6c9 --- /dev/null +++ b/dist/esm/models/ProductBooleanResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductBooleanResponse interface. + */ +export function instanceOfProductBooleanResponse(value) { + return true; +} +export function ProductBooleanResponseFromJSON(json) { + return ProductBooleanResponseFromJSONTyped(json, false); +} +export function ProductBooleanResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function ProductBooleanResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/ProductCertificateProductsListResponseProduct.d.ts b/dist/esm/models/ProductCertificateProductsListResponseProduct.d.ts new file mode 100644 index 0000000..b74ad36 --- /dev/null +++ b/dist/esm/models/ProductCertificateProductsListResponseProduct.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductCertificateProductsListResponseProduct + */ +export interface ProductCertificateProductsListResponseProduct { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductCertificateProductsListResponseProduct + */ + product_id?: number; + /** + * Статус обработки товара при привязке к сертификату. + * @type {string} + * @memberof ProductCertificateProductsListResponseProduct + */ + product_status_code?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductCertificateProductsListResponseProduct + */ + sku?: number; +} +/** + * Check if a given object implements the ProductCertificateProductsListResponseProduct interface. + */ +export declare function instanceOfProductCertificateProductsListResponseProduct(value: object): value is ProductCertificateProductsListResponseProduct; +export declare function ProductCertificateProductsListResponseProductFromJSON(json: any): ProductCertificateProductsListResponseProduct; +export declare function ProductCertificateProductsListResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificateProductsListResponseProduct; +export declare function ProductCertificateProductsListResponseProductToJSON(value?: ProductCertificateProductsListResponseProduct | null): any; diff --git a/dist/esm/models/ProductCertificateProductsListResponseProduct.js b/dist/esm/models/ProductCertificateProductsListResponseProduct.js new file mode 100644 index 0000000..3f0876b --- /dev/null +++ b/dist/esm/models/ProductCertificateProductsListResponseProduct.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductCertificateProductsListResponseProduct interface. + */ +export function instanceOfProductCertificateProductsListResponseProduct(value) { + return true; +} +export function ProductCertificateProductsListResponseProductFromJSON(json) { + return ProductCertificateProductsListResponseProductFromJSONTyped(json, false); +} +export function ProductCertificateProductsListResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'product_status_code': json['product_status_code'] == null ? undefined : json['product_status_code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function ProductCertificateProductsListResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'product_status_code': value['product_status_code'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ProductCertificateUnbindResponseItem.d.ts b/dist/esm/models/ProductCertificateUnbindResponseItem.d.ts new file mode 100644 index 0000000..2cc8fc4 --- /dev/null +++ b/dist/esm/models/ProductCertificateUnbindResponseItem.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductCertificateUnbindResponseItem + */ +export interface ProductCertificateUnbindResponseItem { + /** + * Сообщение об ошибке при отвязывании товара. + * @type {string} + * @memberof ProductCertificateUnbindResponseItem + */ + error?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductCertificateUnbindResponseItem + */ + product_id?: number; + /** + * Был ли отвязан товар от сертификата: + * - `true` — отвязан, + * - `false` — не отвязан. + * + * @type {boolean} + * @memberof ProductCertificateUnbindResponseItem + */ + updated?: boolean; +} +/** + * Check if a given object implements the ProductCertificateUnbindResponseItem interface. + */ +export declare function instanceOfProductCertificateUnbindResponseItem(value: object): value is ProductCertificateUnbindResponseItem; +export declare function ProductCertificateUnbindResponseItemFromJSON(json: any): ProductCertificateUnbindResponseItem; +export declare function ProductCertificateUnbindResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificateUnbindResponseItem; +export declare function ProductCertificateUnbindResponseItemToJSON(value?: ProductCertificateUnbindResponseItem | null): any; diff --git a/dist/esm/models/ProductCertificateUnbindResponseItem.js b/dist/esm/models/ProductCertificateUnbindResponseItem.js new file mode 100644 index 0000000..792b821 --- /dev/null +++ b/dist/esm/models/ProductCertificateUnbindResponseItem.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductCertificateUnbindResponseItem interface. + */ +export function instanceOfProductCertificateUnbindResponseItem(value) { + return true; +} +export function ProductCertificateUnbindResponseItemFromJSON(json) { + return ProductCertificateUnbindResponseItemFromJSONTyped(json, false); +} +export function ProductCertificateUnbindResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'updated': json['updated'] == null ? undefined : json['updated'], + }; +} +export function ProductCertificateUnbindResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'product_id': value['product_id'], + 'updated': value['updated'], + }; +} diff --git a/dist/esm/models/ProductCertificationListResponseCertification.d.ts b/dist/esm/models/ProductCertificationListResponseCertification.d.ts new file mode 100644 index 0000000..aca9306 --- /dev/null +++ b/dist/esm/models/ProductCertificationListResponseCertification.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductCertificationListResponseCertification + */ +export interface ProductCertificationListResponseCertification { + /** + * Название сертифицируемой категории. + * @type {string} + * @memberof ProductCertificationListResponseCertification + */ + category_name?: string; + /** + * Признак обязательной характеристики. + * @type {boolean} + * @memberof ProductCertificationListResponseCertification + */ + is_required?: boolean; +} +/** + * Check if a given object implements the ProductCertificationListResponseCertification interface. + */ +export declare function instanceOfProductCertificationListResponseCertification(value: object): value is ProductCertificationListResponseCertification; +export declare function ProductCertificationListResponseCertificationFromJSON(json: any): ProductCertificationListResponseCertification; +export declare function ProductCertificationListResponseCertificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificationListResponseCertification; +export declare function ProductCertificationListResponseCertificationToJSON(value?: ProductCertificationListResponseCertification | null): any; diff --git a/dist/esm/models/ProductCertificationListResponseCertification.js b/dist/esm/models/ProductCertificationListResponseCertification.js new file mode 100644 index 0000000..092f95c --- /dev/null +++ b/dist/esm/models/ProductCertificationListResponseCertification.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductCertificationListResponseCertification interface. + */ +export function instanceOfProductCertificationListResponseCertification(value) { + return true; +} +export function ProductCertificationListResponseCertificationFromJSON(json) { + return ProductCertificationListResponseCertificationFromJSONTyped(json, false); +} +export function ProductCertificationListResponseCertificationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'category_name': json['category_name'] == null ? undefined : json['category_name'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + }; +} +export function ProductCertificationListResponseCertificationToJSON(value) { + if (value == null) { + return value; + } + return { + 'category_name': value['category_name'], + 'is_required': value['is_required'], + }; +} diff --git a/dist/esm/models/ProductCertificationListResponseCertificationResult.d.ts b/dist/esm/models/ProductCertificationListResponseCertificationResult.d.ts new file mode 100644 index 0000000..6692c42 --- /dev/null +++ b/dist/esm/models/ProductCertificationListResponseCertificationResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificationListResponseCertification } from './ProductCertificationListResponseCertification'; +/** + * Результат запроса. + * @export + * @interface ProductCertificationListResponseCertificationResult + */ +export interface ProductCertificationListResponseCertificationResult { + /** + * Информация о сертифицируемых категориях. + * @type {Array} + * @memberof ProductCertificationListResponseCertificationResult + */ + certification?: Array; + /** + * Всего категорий. + * @type {number} + * @memberof ProductCertificationListResponseCertificationResult + */ + total?: number; +} +/** + * Check if a given object implements the ProductCertificationListResponseCertificationResult interface. + */ +export declare function instanceOfProductCertificationListResponseCertificationResult(value: object): value is ProductCertificationListResponseCertificationResult; +export declare function ProductCertificationListResponseCertificationResultFromJSON(json: any): ProductCertificationListResponseCertificationResult; +export declare function ProductCertificationListResponseCertificationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificationListResponseCertificationResult; +export declare function ProductCertificationListResponseCertificationResultToJSON(value?: ProductCertificationListResponseCertificationResult | null): any; diff --git a/dist/esm/models/ProductCertificationListResponseCertificationResult.js b/dist/esm/models/ProductCertificationListResponseCertificationResult.js new file mode 100644 index 0000000..b9cc417 --- /dev/null +++ b/dist/esm/models/ProductCertificationListResponseCertificationResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductCertificationListResponseCertificationFromJSON, ProductCertificationListResponseCertificationToJSON, } from './ProductCertificationListResponseCertification'; +/** + * Check if a given object implements the ProductCertificationListResponseCertificationResult interface. + */ +export function instanceOfProductCertificationListResponseCertificationResult(value) { + return true; +} +export function ProductCertificationListResponseCertificationResultFromJSON(json) { + return ProductCertificationListResponseCertificationResultFromJSONTyped(json, false); +} +export function ProductCertificationListResponseCertificationResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certification': json['certification'] == null ? undefined : (json['certification'].map(ProductCertificationListResponseCertificationFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function ProductCertificationListResponseCertificationResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'certification': value['certification'] == null ? undefined : (value['certification'].map(ProductCertificationListResponseCertificationToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/ProductCertificationListResponseCertificationv2.d.ts b/dist/esm/models/ProductCertificationListResponseCertificationv2.d.ts new file mode 100644 index 0000000..1b14ce4 --- /dev/null +++ b/dist/esm/models/ProductCertificationListResponseCertificationv2.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductCertificationListResponseCertificationv2 + */ +export interface ProductCertificationListResponseCertificationv2 { + /** + * Идентификатор сертифицируемой категории. + * @type {number} + * @memberof ProductCertificationListResponseCertificationv2 + */ + category_id?: number; + /** + * Название сертифицируемой категории. + * @type {string} + * @memberof ProductCertificationListResponseCertificationv2 + */ + category_name?: string; + /** + * Признак обязательной характеристики. + * @type {boolean} + * @memberof ProductCertificationListResponseCertificationv2 + */ + is_required?: boolean; + /** + * Идентификатор типа сертифицируемой категории. + * @type {number} + * @memberof ProductCertificationListResponseCertificationv2 + */ + type_id?: number; + /** + * Название типа сертифицируемой категории. + * @type {string} + * @memberof ProductCertificationListResponseCertificationv2 + */ + type_name?: string; +} +/** + * Check if a given object implements the ProductCertificationListResponseCertificationv2 interface. + */ +export declare function instanceOfProductCertificationListResponseCertificationv2(value: object): value is ProductCertificationListResponseCertificationv2; +export declare function ProductCertificationListResponseCertificationv2FromJSON(json: any): ProductCertificationListResponseCertificationv2; +export declare function ProductCertificationListResponseCertificationv2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificationListResponseCertificationv2; +export declare function ProductCertificationListResponseCertificationv2ToJSON(value?: ProductCertificationListResponseCertificationv2 | null): any; diff --git a/dist/esm/models/ProductCertificationListResponseCertificationv2.js b/dist/esm/models/ProductCertificationListResponseCertificationv2.js new file mode 100644 index 0000000..4d76f97 --- /dev/null +++ b/dist/esm/models/ProductCertificationListResponseCertificationv2.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductCertificationListResponseCertificationv2 interface. + */ +export function instanceOfProductCertificationListResponseCertificationv2(value) { + return true; +} +export function ProductCertificationListResponseCertificationv2FromJSON(json) { + return ProductCertificationListResponseCertificationv2FromJSONTyped(json, false); +} +export function ProductCertificationListResponseCertificationv2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'category_name': json['category_name'] == null ? undefined : json['category_name'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + 'type_name': json['type_name'] == null ? undefined : json['type_name'], + }; +} +export function ProductCertificationListResponseCertificationv2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'category_id': value['category_id'], + 'category_name': value['category_name'], + 'is_required': value['is_required'], + 'type_id': value['type_id'], + 'type_name': value['type_name'], + }; +} diff --git a/dist/esm/models/ProductCurrencyEnum.d.ts b/dist/esm/models/ProductCurrencyEnum.d.ts new file mode 100644 index 0000000..e26423f --- /dev/null +++ b/dist/esm/models/ProductCurrencyEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Валюта: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @export + */ +export declare const ProductCurrencyEnum: { + readonly RUB: "RUB"; + readonly BYN: "BYN"; + readonly KZT: "KZT"; + readonly EUR: "EUR"; + readonly USD: "USD"; + readonly CNY: "CNY"; +}; +export type ProductCurrencyEnum = typeof ProductCurrencyEnum[keyof typeof ProductCurrencyEnum]; +export declare function instanceOfProductCurrencyEnum(value: any): boolean; +export declare function ProductCurrencyEnumFromJSON(json: any): ProductCurrencyEnum; +export declare function ProductCurrencyEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCurrencyEnum; +export declare function ProductCurrencyEnumToJSON(value?: ProductCurrencyEnum | null): any; diff --git a/dist/esm/models/ProductCurrencyEnum.js b/dist/esm/models/ProductCurrencyEnum.js new file mode 100644 index 0000000..c1a2a4d --- /dev/null +++ b/dist/esm/models/ProductCurrencyEnum.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Валюта: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @export + */ +export const ProductCurrencyEnum = { + RUB: 'RUB', + BYN: 'BYN', + KZT: 'KZT', + EUR: 'EUR', + USD: 'USD', + CNY: 'CNY' +}; +export function instanceOfProductCurrencyEnum(value) { + for (const key in ProductCurrencyEnum) { + if (Object.prototype.hasOwnProperty.call(ProductCurrencyEnum, key)) { + if (ProductCurrencyEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductCurrencyEnumFromJSON(json) { + return ProductCurrencyEnumFromJSONTyped(json, false); +} +export function ProductCurrencyEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductCurrencyEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductExemplar.d.ts b/dist/esm/models/ProductExemplar.d.ts new file mode 100644 index 0000000..aa9613d --- /dev/null +++ b/dist/esm/models/ProductExemplar.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ExemplarMark } from './ExemplarMark'; +/** + * + * @export + * @interface ProductExemplar + */ +export interface ProductExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof ProductExemplar + */ + exemplar_id?: number; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof ProductExemplar + */ + gtd?: string; + /** + * Признак того, что не указан номер грузовой таможенной декларации (ГТД). + * @type {boolean} + * @memberof ProductExemplar + */ + is_gtd_absent?: boolean; + /** + * Признак того, что не указан регистрационный номер партии товара (РНПТ). + * @type {boolean} + * @memberof ProductExemplar + */ + is_rnpt_absent?: boolean; + /** + * Список контрольных идентификационных знаков (КИЗ) и других маркировок в одном экземпляре. + * @type {Array} + * @memberof ProductExemplar + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof ProductExemplar + */ + rnpt?: string; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof ProductExemplar + */ + weight?: number; +} +/** + * Check if a given object implements the ProductExemplar interface. + */ +export declare function instanceOfProductExemplar(value: object): value is ProductExemplar; +export declare function ProductExemplarFromJSON(json: any): ProductExemplar; +export declare function ProductExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductExemplar; +export declare function ProductExemplarToJSON(value?: ProductExemplar | null): any; diff --git a/dist/esm/models/ProductExemplar.js b/dist/esm/models/ProductExemplar.js new file mode 100644 index 0000000..72cb1af --- /dev/null +++ b/dist/esm/models/ProductExemplar.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ExemplarMarkFromJSON, ExemplarMarkToJSON, } from './ExemplarMark'; +/** + * Check if a given object implements the ProductExemplar interface. + */ +export function instanceOfProductExemplar(value) { + return true; +} +export function ProductExemplarFromJSON(json) { + return ProductExemplarFromJSONTyped(json, false); +} +export function ProductExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'is_gtd_absent': json['is_gtd_absent'] == null ? undefined : json['is_gtd_absent'], + 'is_rnpt_absent': json['is_rnpt_absent'] == null ? undefined : json['is_rnpt_absent'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(ExemplarMarkFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function ProductExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'gtd': value['gtd'], + 'is_gtd_absent': value['is_gtd_absent'], + 'is_rnpt_absent': value['is_rnpt_absent'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(ExemplarMarkToJSON)), + 'rnpt': value['rnpt'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/ProductGetImportProductsInfoRequest.d.ts b/dist/esm/models/ProductGetImportProductsInfoRequest.d.ts new file mode 100644 index 0000000..26aecfc --- /dev/null +++ b/dist/esm/models/ProductGetImportProductsInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductGetImportProductsInfoRequest + */ +export interface ProductGetImportProductsInfoRequest { + /** + * Код задачи на импорт товаров. Можно получить с помощью метода [/v3/product/import](#operation/ProductAPI_ImportProductsV3). + * @type {number} + * @memberof ProductGetImportProductsInfoRequest + */ + task_id: number; +} +/** + * Check if a given object implements the ProductGetImportProductsInfoRequest interface. + */ +export declare function instanceOfProductGetImportProductsInfoRequest(value: object): value is ProductGetImportProductsInfoRequest; +export declare function ProductGetImportProductsInfoRequestFromJSON(json: any): ProductGetImportProductsInfoRequest; +export declare function ProductGetImportProductsInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetImportProductsInfoRequest; +export declare function ProductGetImportProductsInfoRequestToJSON(value?: ProductGetImportProductsInfoRequest | null): any; diff --git a/dist/esm/models/ProductGetImportProductsInfoRequest.js b/dist/esm/models/ProductGetImportProductsInfoRequest.js new file mode 100644 index 0000000..51823e8 --- /dev/null +++ b/dist/esm/models/ProductGetImportProductsInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductGetImportProductsInfoRequest interface. + */ +export function instanceOfProductGetImportProductsInfoRequest(value) { + if (!('task_id' in value) || value['task_id'] === undefined) + return false; + return true; +} +export function ProductGetImportProductsInfoRequestFromJSON(json) { + return ProductGetImportProductsInfoRequestFromJSONTyped(json, false); +} +export function ProductGetImportProductsInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'], + }; +} +export function ProductGetImportProductsInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/ProductGetImportProductsInfoResponse.d.ts b/dist/esm/models/ProductGetImportProductsInfoResponse.d.ts new file mode 100644 index 0000000..822094c --- /dev/null +++ b/dist/esm/models/ProductGetImportProductsInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetImportProductsInfoResponseResult } from './ProductGetImportProductsInfoResponseResult'; +/** + * + * @export + * @interface ProductGetImportProductsInfoResponse + */ +export interface ProductGetImportProductsInfoResponse { + /** + * + * @type {ProductGetImportProductsInfoResponseResult} + * @memberof ProductGetImportProductsInfoResponse + */ + result?: ProductGetImportProductsInfoResponseResult; +} +/** + * Check if a given object implements the ProductGetImportProductsInfoResponse interface. + */ +export declare function instanceOfProductGetImportProductsInfoResponse(value: object): value is ProductGetImportProductsInfoResponse; +export declare function ProductGetImportProductsInfoResponseFromJSON(json: any): ProductGetImportProductsInfoResponse; +export declare function ProductGetImportProductsInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetImportProductsInfoResponse; +export declare function ProductGetImportProductsInfoResponseToJSON(value?: ProductGetImportProductsInfoResponse | null): any; diff --git a/dist/esm/models/ProductGetImportProductsInfoResponse.js b/dist/esm/models/ProductGetImportProductsInfoResponse.js new file mode 100644 index 0000000..2fd904a --- /dev/null +++ b/dist/esm/models/ProductGetImportProductsInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductGetImportProductsInfoResponseResultFromJSON, ProductGetImportProductsInfoResponseResultToJSON, } from './ProductGetImportProductsInfoResponseResult'; +/** + * Check if a given object implements the ProductGetImportProductsInfoResponse interface. + */ +export function instanceOfProductGetImportProductsInfoResponse(value) { + return true; +} +export function ProductGetImportProductsInfoResponseFromJSON(json) { + return ProductGetImportProductsInfoResponseFromJSONTyped(json, false); +} +export function ProductGetImportProductsInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : ProductGetImportProductsInfoResponseResultFromJSON(json['result']), + }; +} +export function ProductGetImportProductsInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': ProductGetImportProductsInfoResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/ProductGetImportProductsInfoResponseResult.d.ts b/dist/esm/models/ProductGetImportProductsInfoResponseResult.d.ts new file mode 100644 index 0000000..c8e7ae7 --- /dev/null +++ b/dist/esm/models/ProductGetImportProductsInfoResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetImportProductsInfoResponseResultItem } from './GetImportProductsInfoResponseResultItem'; +/** + * + * @export + * @interface ProductGetImportProductsInfoResponseResult + */ +export interface ProductGetImportProductsInfoResponseResult { + /** + * Информация о товарах. + * @type {Array} + * @memberof ProductGetImportProductsInfoResponseResult + */ + items?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {number} + * @memberof ProductGetImportProductsInfoResponseResult + */ + total?: number; +} +/** + * Check if a given object implements the ProductGetImportProductsInfoResponseResult interface. + */ +export declare function instanceOfProductGetImportProductsInfoResponseResult(value: object): value is ProductGetImportProductsInfoResponseResult; +export declare function ProductGetImportProductsInfoResponseResultFromJSON(json: any): ProductGetImportProductsInfoResponseResult; +export declare function ProductGetImportProductsInfoResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetImportProductsInfoResponseResult; +export declare function ProductGetImportProductsInfoResponseResultToJSON(value?: ProductGetImportProductsInfoResponseResult | null): any; diff --git a/dist/esm/models/ProductGetImportProductsInfoResponseResult.js b/dist/esm/models/ProductGetImportProductsInfoResponseResult.js new file mode 100644 index 0000000..129da04 --- /dev/null +++ b/dist/esm/models/ProductGetImportProductsInfoResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetImportProductsInfoResponseResultItemFromJSON, GetImportProductsInfoResponseResultItemToJSON, } from './GetImportProductsInfoResponseResultItem'; +/** + * Check if a given object implements the ProductGetImportProductsInfoResponseResult interface. + */ +export function instanceOfProductGetImportProductsInfoResponseResult(value) { + return true; +} +export function ProductGetImportProductsInfoResponseResultFromJSON(json) { + return ProductGetImportProductsInfoResponseResultFromJSONTyped(json, false); +} +export function ProductGetImportProductsInfoResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(GetImportProductsInfoResponseResultItemFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function ProductGetImportProductsInfoResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(GetImportProductsInfoResponseResultItemToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/ProductGetProductAttributesV3ResponseDictionaryValue.d.ts b/dist/esm/models/ProductGetProductAttributesV3ResponseDictionaryValue.d.ts new file mode 100644 index 0000000..d924742 --- /dev/null +++ b/dist/esm/models/ProductGetProductAttributesV3ResponseDictionaryValue.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductGetProductAttributesV3ResponseDictionaryValue + */ +export interface ProductGetProductAttributesV3ResponseDictionaryValue { + /** + * Идентификатор характеристики в словаре. + * @type {number} + * @memberof ProductGetProductAttributesV3ResponseDictionaryValue + */ + dictionary_value_id?: number; + /** + * Значение характеристики товара. + * @type {string} + * @memberof ProductGetProductAttributesV3ResponseDictionaryValue + */ + value?: string; +} +/** + * Check if a given object implements the ProductGetProductAttributesV3ResponseDictionaryValue interface. + */ +export declare function instanceOfProductGetProductAttributesV3ResponseDictionaryValue(value: object): value is ProductGetProductAttributesV3ResponseDictionaryValue; +export declare function ProductGetProductAttributesV3ResponseDictionaryValueFromJSON(json: any): ProductGetProductAttributesV3ResponseDictionaryValue; +export declare function ProductGetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductAttributesV3ResponseDictionaryValue; +export declare function ProductGetProductAttributesV3ResponseDictionaryValueToJSON(value?: ProductGetProductAttributesV3ResponseDictionaryValue | null): any; diff --git a/dist/esm/models/ProductGetProductAttributesV3ResponseDictionaryValue.js b/dist/esm/models/ProductGetProductAttributesV3ResponseDictionaryValue.js new file mode 100644 index 0000000..15529b7 --- /dev/null +++ b/dist/esm/models/ProductGetProductAttributesV3ResponseDictionaryValue.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductGetProductAttributesV3ResponseDictionaryValue interface. + */ +export function instanceOfProductGetProductAttributesV3ResponseDictionaryValue(value) { + return true; +} +export function ProductGetProductAttributesV3ResponseDictionaryValueFromJSON(json) { + return ProductGetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json, false); +} +export function ProductGetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dictionary_value_id': json['dictionary_value_id'] == null ? undefined : json['dictionary_value_id'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ProductGetProductAttributesV3ResponseDictionaryValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'dictionary_value_id': value['dictionary_value_id'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ProductGetProductAttributesV4ResponseAttribute.d.ts b/dist/esm/models/ProductGetProductAttributesV4ResponseAttribute.d.ts new file mode 100644 index 0000000..95eea86 --- /dev/null +++ b/dist/esm/models/ProductGetProductAttributesV4ResponseAttribute.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetProductAttributesV3ResponseDictionaryValue } from './ProductGetProductAttributesV3ResponseDictionaryValue'; +/** + * + * @export + * @interface ProductGetProductAttributesV4ResponseAttribute + */ +export interface ProductGetProductAttributesV4ResponseAttribute { + /** + * Идентификатор характеристики. + * @type {number} + * @memberof ProductGetProductAttributesV4ResponseAttribute + */ + id?: number; + /** + * Идентификатор характеристики, которая поддерживает вложенные свойства. Например, у характеристики «Процессор» есть вложенные характеристики «Производитель» и «L2 Cache». У каждой из вложенных характеристик может быть несколько вариантов значений. + * @type {number} + * @memberof ProductGetProductAttributesV4ResponseAttribute + */ + complex_id?: number; + /** + * Массив значений характеристик. + * @type {Array} + * @memberof ProductGetProductAttributesV4ResponseAttribute + */ + values?: Array; +} +/** + * Check if a given object implements the ProductGetProductAttributesV4ResponseAttribute interface. + */ +export declare function instanceOfProductGetProductAttributesV4ResponseAttribute(value: object): value is ProductGetProductAttributesV4ResponseAttribute; +export declare function ProductGetProductAttributesV4ResponseAttributeFromJSON(json: any): ProductGetProductAttributesV4ResponseAttribute; +export declare function ProductGetProductAttributesV4ResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductAttributesV4ResponseAttribute; +export declare function ProductGetProductAttributesV4ResponseAttributeToJSON(value?: ProductGetProductAttributesV4ResponseAttribute | null): any; diff --git a/dist/esm/models/ProductGetProductAttributesV4ResponseAttribute.js b/dist/esm/models/ProductGetProductAttributesV4ResponseAttribute.js new file mode 100644 index 0000000..3110e48 --- /dev/null +++ b/dist/esm/models/ProductGetProductAttributesV4ResponseAttribute.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductGetProductAttributesV3ResponseDictionaryValueFromJSON, ProductGetProductAttributesV3ResponseDictionaryValueToJSON, } from './ProductGetProductAttributesV3ResponseDictionaryValue'; +/** + * Check if a given object implements the ProductGetProductAttributesV4ResponseAttribute interface. + */ +export function instanceOfProductGetProductAttributesV4ResponseAttribute(value) { + return true; +} +export function ProductGetProductAttributesV4ResponseAttributeFromJSON(json) { + return ProductGetProductAttributesV4ResponseAttributeFromJSONTyped(json, false); +} +export function ProductGetProductAttributesV4ResponseAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'complex_id': json['complex_id'] == null ? undefined : json['complex_id'], + 'values': json['values'] == null ? undefined : (json['values'].map(ProductGetProductAttributesV3ResponseDictionaryValueFromJSON)), + }; +} +export function ProductGetProductAttributesV4ResponseAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'complex_id': value['complex_id'], + 'values': value['values'] == null ? undefined : (value['values'].map(ProductGetProductAttributesV3ResponseDictionaryValueToJSON)), + }; +} diff --git a/dist/esm/models/ProductGetProductInfoDescriptionRequest.d.ts b/dist/esm/models/ProductGetProductInfoDescriptionRequest.d.ts new file mode 100644 index 0000000..67896d5 --- /dev/null +++ b/dist/esm/models/ProductGetProductInfoDescriptionRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductGetProductInfoDescriptionRequest + */ +export interface ProductGetProductInfoDescriptionRequest { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductGetProductInfoDescriptionRequest + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductGetProductInfoDescriptionRequest + */ + product_id?: number; +} +/** + * Check if a given object implements the ProductGetProductInfoDescriptionRequest interface. + */ +export declare function instanceOfProductGetProductInfoDescriptionRequest(value: object): value is ProductGetProductInfoDescriptionRequest; +export declare function ProductGetProductInfoDescriptionRequestFromJSON(json: any): ProductGetProductInfoDescriptionRequest; +export declare function ProductGetProductInfoDescriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductInfoDescriptionRequest; +export declare function ProductGetProductInfoDescriptionRequestToJSON(value?: ProductGetProductInfoDescriptionRequest | null): any; diff --git a/dist/esm/models/ProductGetProductInfoDescriptionRequest.js b/dist/esm/models/ProductGetProductInfoDescriptionRequest.js new file mode 100644 index 0000000..6038615 --- /dev/null +++ b/dist/esm/models/ProductGetProductInfoDescriptionRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductGetProductInfoDescriptionRequest interface. + */ +export function instanceOfProductGetProductInfoDescriptionRequest(value) { + return true; +} +export function ProductGetProductInfoDescriptionRequestFromJSON(json) { + return ProductGetProductInfoDescriptionRequestFromJSONTyped(json, false); +} +export function ProductGetProductInfoDescriptionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +export function ProductGetProductInfoDescriptionRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/ProductGetProductInfoDescriptionResponse.d.ts b/dist/esm/models/ProductGetProductInfoDescriptionResponse.d.ts new file mode 100644 index 0000000..0b877f4 --- /dev/null +++ b/dist/esm/models/ProductGetProductInfoDescriptionResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetProductInfoDescriptionResponseProduct } from './ProductGetProductInfoDescriptionResponseProduct'; +/** + * + * @export + * @interface ProductGetProductInfoDescriptionResponse + */ +export interface ProductGetProductInfoDescriptionResponse { + /** + * + * @type {ProductGetProductInfoDescriptionResponseProduct} + * @memberof ProductGetProductInfoDescriptionResponse + */ + result?: ProductGetProductInfoDescriptionResponseProduct; +} +/** + * Check if a given object implements the ProductGetProductInfoDescriptionResponse interface. + */ +export declare function instanceOfProductGetProductInfoDescriptionResponse(value: object): value is ProductGetProductInfoDescriptionResponse; +export declare function ProductGetProductInfoDescriptionResponseFromJSON(json: any): ProductGetProductInfoDescriptionResponse; +export declare function ProductGetProductInfoDescriptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductInfoDescriptionResponse; +export declare function ProductGetProductInfoDescriptionResponseToJSON(value?: ProductGetProductInfoDescriptionResponse | null): any; diff --git a/dist/esm/models/ProductGetProductInfoDescriptionResponse.js b/dist/esm/models/ProductGetProductInfoDescriptionResponse.js new file mode 100644 index 0000000..615d093 --- /dev/null +++ b/dist/esm/models/ProductGetProductInfoDescriptionResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductGetProductInfoDescriptionResponseProductFromJSON, ProductGetProductInfoDescriptionResponseProductToJSON, } from './ProductGetProductInfoDescriptionResponseProduct'; +/** + * Check if a given object implements the ProductGetProductInfoDescriptionResponse interface. + */ +export function instanceOfProductGetProductInfoDescriptionResponse(value) { + return true; +} +export function ProductGetProductInfoDescriptionResponseFromJSON(json) { + return ProductGetProductInfoDescriptionResponseFromJSONTyped(json, false); +} +export function ProductGetProductInfoDescriptionResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : ProductGetProductInfoDescriptionResponseProductFromJSON(json['result']), + }; +} +export function ProductGetProductInfoDescriptionResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': ProductGetProductInfoDescriptionResponseProductToJSON(value['result']), + }; +} diff --git a/dist/esm/models/ProductGetProductInfoDescriptionResponseProduct.d.ts b/dist/esm/models/ProductGetProductInfoDescriptionResponseProduct.d.ts new file mode 100644 index 0000000..d2a371b --- /dev/null +++ b/dist/esm/models/ProductGetProductInfoDescriptionResponseProduct.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductGetProductInfoDescriptionResponseProduct + */ +export interface ProductGetProductInfoDescriptionResponseProduct { + /** + * Описание. + * @type {string} + * @memberof ProductGetProductInfoDescriptionResponseProduct + */ + description?: string; + /** + * Идентификатор. + * @type {number} + * @memberof ProductGetProductInfoDescriptionResponseProduct + */ + id?: number; + /** + * Название. + * @type {string} + * @memberof ProductGetProductInfoDescriptionResponseProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductGetProductInfoDescriptionResponseProduct + */ + offer_id?: string; +} +/** + * Check if a given object implements the ProductGetProductInfoDescriptionResponseProduct interface. + */ +export declare function instanceOfProductGetProductInfoDescriptionResponseProduct(value: object): value is ProductGetProductInfoDescriptionResponseProduct; +export declare function ProductGetProductInfoDescriptionResponseProductFromJSON(json: any): ProductGetProductInfoDescriptionResponseProduct; +export declare function ProductGetProductInfoDescriptionResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductInfoDescriptionResponseProduct; +export declare function ProductGetProductInfoDescriptionResponseProductToJSON(value?: ProductGetProductInfoDescriptionResponseProduct | null): any; diff --git a/dist/esm/models/ProductGetProductInfoDescriptionResponseProduct.js b/dist/esm/models/ProductGetProductInfoDescriptionResponseProduct.js new file mode 100644 index 0000000..0f73eeb --- /dev/null +++ b/dist/esm/models/ProductGetProductInfoDescriptionResponseProduct.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductGetProductInfoDescriptionResponseProduct interface. + */ +export function instanceOfProductGetProductInfoDescriptionResponseProduct(value) { + return true; +} +export function ProductGetProductInfoDescriptionResponseProductFromJSON(json) { + return ProductGetProductInfoDescriptionResponseProductFromJSONTyped(json, false); +} +export function ProductGetProductInfoDescriptionResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + }; +} +export function ProductGetProductInfoDescriptionResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'id': value['id'], + 'name': value['name'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/esm/models/ProductGetProductInfoPricesV5ResponseItem.d.ts b/dist/esm/models/ProductGetProductInfoPricesV5ResponseItem.d.ts new file mode 100644 index 0000000..9210d5f --- /dev/null +++ b/dist/esm/models/ProductGetProductInfoPricesV5ResponseItem.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemCommissionsv5 } from './ItemCommissionsv5'; +import type { GetProductInfoPricesResponseItemPriceIndexes } from './GetProductInfoPricesResponseItemPriceIndexes'; +import type { ItemMarketing } from './ItemMarketing'; +import type { ItemPricev5 } from './ItemPricev5'; +/** + * + * @export + * @interface ProductGetProductInfoPricesV5ResponseItem + */ +export interface ProductGetProductInfoPricesV5ResponseItem { + /** + * Максимальная комиссия за эквайринг. + * + * [Подробнее об эквайринге в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/rashody-na-dop-uslugi#экваиринг) + * + * @type {number} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + acquiring?: number; + /** + * + * @type {ItemCommissionsv5} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + commissions?: ItemCommissionsv5; + /** + * + * @type {ItemMarketing} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + marketing_actions?: ItemMarketing; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + offer_id?: string; + /** + * + * @type {ItemPricev5} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + price?: ItemPricev5; + /** + * + * @type {GetProductInfoPricesResponseItemPriceIndexes} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + price_indexes?: GetProductInfoPricesResponseItemPriceIndexes; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + product_id?: number; + /** + * Объёмный вес товара. + * @type {number} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + volume_weight?: number; +} +/** + * Check if a given object implements the ProductGetProductInfoPricesV5ResponseItem interface. + */ +export declare function instanceOfProductGetProductInfoPricesV5ResponseItem(value: object): value is ProductGetProductInfoPricesV5ResponseItem; +export declare function ProductGetProductInfoPricesV5ResponseItemFromJSON(json: any): ProductGetProductInfoPricesV5ResponseItem; +export declare function ProductGetProductInfoPricesV5ResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductInfoPricesV5ResponseItem; +export declare function ProductGetProductInfoPricesV5ResponseItemToJSON(value?: ProductGetProductInfoPricesV5ResponseItem | null): any; diff --git a/dist/esm/models/ProductGetProductInfoPricesV5ResponseItem.js b/dist/esm/models/ProductGetProductInfoPricesV5ResponseItem.js new file mode 100644 index 0000000..62d6a60 --- /dev/null +++ b/dist/esm/models/ProductGetProductInfoPricesV5ResponseItem.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ItemCommissionsv5FromJSON, ItemCommissionsv5ToJSON, } from './ItemCommissionsv5'; +import { GetProductInfoPricesResponseItemPriceIndexesFromJSON, GetProductInfoPricesResponseItemPriceIndexesToJSON, } from './GetProductInfoPricesResponseItemPriceIndexes'; +import { ItemMarketingFromJSON, ItemMarketingToJSON, } from './ItemMarketing'; +import { ItemPricev5FromJSON, ItemPricev5ToJSON, } from './ItemPricev5'; +/** + * Check if a given object implements the ProductGetProductInfoPricesV5ResponseItem interface. + */ +export function instanceOfProductGetProductInfoPricesV5ResponseItem(value) { + return true; +} +export function ProductGetProductInfoPricesV5ResponseItemFromJSON(json) { + return ProductGetProductInfoPricesV5ResponseItemFromJSONTyped(json, false); +} +export function ProductGetProductInfoPricesV5ResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'acquiring': json['acquiring'] == null ? undefined : json['acquiring'], + 'commissions': json['commissions'] == null ? undefined : ItemCommissionsv5FromJSON(json['commissions']), + 'marketing_actions': json['marketing_actions'] == null ? undefined : ItemMarketingFromJSON(json['marketing_actions']), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : ItemPricev5FromJSON(json['price']), + 'price_indexes': json['price_indexes'] == null ? undefined : GetProductInfoPricesResponseItemPriceIndexesFromJSON(json['price_indexes']), + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'volume_weight': json['volume_weight'] == null ? undefined : json['volume_weight'], + }; +} +export function ProductGetProductInfoPricesV5ResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'acquiring': value['acquiring'], + 'commissions': ItemCommissionsv5ToJSON(value['commissions']), + 'marketing_actions': ItemMarketingToJSON(value['marketing_actions']), + 'offer_id': value['offer_id'], + 'price': ItemPricev5ToJSON(value['price']), + 'price_indexes': GetProductInfoPricesResponseItemPriceIndexesToJSON(value['price_indexes']), + 'product_id': value['product_id'], + 'volume_weight': value['volume_weight'], + }; +} diff --git a/dist/esm/models/ProductImportProductsBySKURequest.d.ts b/dist/esm/models/ProductImportProductsBySKURequest.d.ts new file mode 100644 index 0000000..15a79d7 --- /dev/null +++ b/dist/esm/models/ProductImportProductsBySKURequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsBySKURequestItem } from './ProductImportProductsBySKURequestItem'; +/** + * + * @export + * @interface ProductImportProductsBySKURequest + */ +export interface ProductImportProductsBySKURequest { + /** + * Информация о товарах. + * @type {Array} + * @memberof ProductImportProductsBySKURequest + */ + items?: Array; +} +/** + * Check if a given object implements the ProductImportProductsBySKURequest interface. + */ +export declare function instanceOfProductImportProductsBySKURequest(value: object): value is ProductImportProductsBySKURequest; +export declare function ProductImportProductsBySKURequestFromJSON(json: any): ProductImportProductsBySKURequest; +export declare function ProductImportProductsBySKURequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsBySKURequest; +export declare function ProductImportProductsBySKURequestToJSON(value?: ProductImportProductsBySKURequest | null): any; diff --git a/dist/esm/models/ProductImportProductsBySKURequest.js b/dist/esm/models/ProductImportProductsBySKURequest.js new file mode 100644 index 0000000..0cc9459 --- /dev/null +++ b/dist/esm/models/ProductImportProductsBySKURequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductImportProductsBySKURequestItemFromJSON, ProductImportProductsBySKURequestItemToJSON, } from './ProductImportProductsBySKURequestItem'; +/** + * Check if a given object implements the ProductImportProductsBySKURequest interface. + */ +export function instanceOfProductImportProductsBySKURequest(value) { + return true; +} +export function ProductImportProductsBySKURequestFromJSON(json) { + return ProductImportProductsBySKURequestFromJSONTyped(json, false); +} +export function ProductImportProductsBySKURequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductImportProductsBySKURequestItemFromJSON)), + }; +} +export function ProductImportProductsBySKURequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductImportProductsBySKURequestItemToJSON)), + }; +} diff --git a/dist/esm/models/ProductImportProductsBySKURequestItem.d.ts b/dist/esm/models/ProductImportProductsBySKURequestItem.d.ts new file mode 100644 index 0000000..6c0ff80 --- /dev/null +++ b/dist/esm/models/ProductImportProductsBySKURequestItem.d.ts @@ -0,0 +1,90 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductImportProductsBySKURequestItem + */ +export interface ProductImportProductsBySKURequestItem { + /** + * Название товара. До 500 символов. + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * + * Максимальная длина строки — 50 символов. + * + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + offer_id?: string; + /** + * Цена до скидок (будет зачеркнута на карточке товара). Указывается в рублях. Разделитель дробной части — точка, до двух знаков после точки. + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + old_price?: string; + /** + * Цена товара с учётом скидок, отображается на карточке товара. Если на товар нет скидок, укажите значение `old_price` в этом параметре. + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + price?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductImportProductsBySKURequestItem + */ + sku: number; + /** + * Ставка НДС для товара: + * - `0` — не облагается НДС, + * - `0.05` — 5%, + * - `0.07` — 7%, + * - `0.1` — 10%, + * - `0.2` — 20%, + * - `0.22` — 22%. + * + * Передавайте значение ставки, актуальное на данный момент. + * + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + vat?: string; + /** + * Валюта ваших цен. Переданное значение должно совпадать с валютой, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. + * + * Например, если у вас установлена валюта взаиморасчётов юань, передавайте значение `CNY`, иначе вернётся ошибка. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + currency_code?: string; +} +/** + * Check if a given object implements the ProductImportProductsBySKURequestItem interface. + */ +export declare function instanceOfProductImportProductsBySKURequestItem(value: object): value is ProductImportProductsBySKURequestItem; +export declare function ProductImportProductsBySKURequestItemFromJSON(json: any): ProductImportProductsBySKURequestItem; +export declare function ProductImportProductsBySKURequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsBySKURequestItem; +export declare function ProductImportProductsBySKURequestItemToJSON(value?: ProductImportProductsBySKURequestItem | null): any; diff --git a/dist/esm/models/ProductImportProductsBySKURequestItem.js b/dist/esm/models/ProductImportProductsBySKURequestItem.js new file mode 100644 index 0000000..4ed703e --- /dev/null +++ b/dist/esm/models/ProductImportProductsBySKURequestItem.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductImportProductsBySKURequestItem interface. + */ +export function instanceOfProductImportProductsBySKURequestItem(value) { + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function ProductImportProductsBySKURequestItemFromJSON(json) { + return ProductImportProductsBySKURequestItemFromJSONTyped(json, false); +} +export function ProductImportProductsBySKURequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'sku': json['sku'], + 'vat': json['vat'] == null ? undefined : json['vat'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + }; +} +export function ProductImportProductsBySKURequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'old_price': value['old_price'], + 'price': value['price'], + 'sku': value['sku'], + 'vat': value['vat'], + 'currency_code': value['currency_code'], + }; +} diff --git a/dist/esm/models/ProductImportProductsBySKUResponse.d.ts b/dist/esm/models/ProductImportProductsBySKUResponse.d.ts new file mode 100644 index 0000000..a7a37e2 --- /dev/null +++ b/dist/esm/models/ProductImportProductsBySKUResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsBySKUResponseResult } from './ProductImportProductsBySKUResponseResult'; +/** + * + * @export + * @interface ProductImportProductsBySKUResponse + */ +export interface ProductImportProductsBySKUResponse { + /** + * + * @type {ProductImportProductsBySKUResponseResult} + * @memberof ProductImportProductsBySKUResponse + */ + result?: ProductImportProductsBySKUResponseResult; +} +/** + * Check if a given object implements the ProductImportProductsBySKUResponse interface. + */ +export declare function instanceOfProductImportProductsBySKUResponse(value: object): value is ProductImportProductsBySKUResponse; +export declare function ProductImportProductsBySKUResponseFromJSON(json: any): ProductImportProductsBySKUResponse; +export declare function ProductImportProductsBySKUResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsBySKUResponse; +export declare function ProductImportProductsBySKUResponseToJSON(value?: ProductImportProductsBySKUResponse | null): any; diff --git a/dist/esm/models/ProductImportProductsBySKUResponse.js b/dist/esm/models/ProductImportProductsBySKUResponse.js new file mode 100644 index 0000000..f8bdac8 --- /dev/null +++ b/dist/esm/models/ProductImportProductsBySKUResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductImportProductsBySKUResponseResultFromJSON, ProductImportProductsBySKUResponseResultToJSON, } from './ProductImportProductsBySKUResponseResult'; +/** + * Check if a given object implements the ProductImportProductsBySKUResponse interface. + */ +export function instanceOfProductImportProductsBySKUResponse(value) { + return true; +} +export function ProductImportProductsBySKUResponseFromJSON(json) { + return ProductImportProductsBySKUResponseFromJSONTyped(json, false); +} +export function ProductImportProductsBySKUResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : ProductImportProductsBySKUResponseResultFromJSON(json['result']), + }; +} +export function ProductImportProductsBySKUResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': ProductImportProductsBySKUResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/ProductImportProductsBySKUResponseResult.d.ts b/dist/esm/models/ProductImportProductsBySKUResponseResult.d.ts new file mode 100644 index 0000000..1891136 --- /dev/null +++ b/dist/esm/models/ProductImportProductsBySKUResponseResult.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductImportProductsBySKUResponseResult + */ +export interface ProductImportProductsBySKUResponseResult { + /** + * Код задачи на импорт товаров. + * @type {number} + * @memberof ProductImportProductsBySKUResponseResult + */ + task_id?: number; + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof ProductImportProductsBySKUResponseResult + */ + unmatched_sku_list?: Array; +} +/** + * Check if a given object implements the ProductImportProductsBySKUResponseResult interface. + */ +export declare function instanceOfProductImportProductsBySKUResponseResult(value: object): value is ProductImportProductsBySKUResponseResult; +export declare function ProductImportProductsBySKUResponseResultFromJSON(json: any): ProductImportProductsBySKUResponseResult; +export declare function ProductImportProductsBySKUResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsBySKUResponseResult; +export declare function ProductImportProductsBySKUResponseResultToJSON(value?: ProductImportProductsBySKUResponseResult | null): any; diff --git a/dist/esm/models/ProductImportProductsBySKUResponseResult.js b/dist/esm/models/ProductImportProductsBySKUResponseResult.js new file mode 100644 index 0000000..feafd71 --- /dev/null +++ b/dist/esm/models/ProductImportProductsBySKUResponseResult.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductImportProductsBySKUResponseResult interface. + */ +export function instanceOfProductImportProductsBySKUResponseResult(value) { + return true; +} +export function ProductImportProductsBySKUResponseResultFromJSON(json) { + return ProductImportProductsBySKUResponseResultFromJSONTyped(json, false); +} +export function ProductImportProductsBySKUResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + 'unmatched_sku_list': json['unmatched_sku_list'] == null ? undefined : json['unmatched_sku_list'], + }; +} +export function ProductImportProductsBySKUResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + 'unmatched_sku_list': value['unmatched_sku_list'], + }; +} diff --git a/dist/esm/models/ProductImportProductsPricesRequest.d.ts b/dist/esm/models/ProductImportProductsPricesRequest.d.ts new file mode 100644 index 0000000..b05e26c --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsPricesRequestPrice } from './ProductImportProductsPricesRequestPrice'; +/** + * + * @export + * @interface ProductImportProductsPricesRequest + */ +export interface ProductImportProductsPricesRequest { + /** + * Информация о ценах товаров. + * @type {Array} + * @memberof ProductImportProductsPricesRequest + */ + prices?: Array; +} +/** + * Check if a given object implements the ProductImportProductsPricesRequest interface. + */ +export declare function instanceOfProductImportProductsPricesRequest(value: object): value is ProductImportProductsPricesRequest; +export declare function ProductImportProductsPricesRequestFromJSON(json: any): ProductImportProductsPricesRequest; +export declare function ProductImportProductsPricesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesRequest; +export declare function ProductImportProductsPricesRequestToJSON(value?: ProductImportProductsPricesRequest | null): any; diff --git a/dist/esm/models/ProductImportProductsPricesRequest.js b/dist/esm/models/ProductImportProductsPricesRequest.js new file mode 100644 index 0000000..0b34bc1 --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductImportProductsPricesRequestPriceFromJSON, ProductImportProductsPricesRequestPriceToJSON, } from './ProductImportProductsPricesRequestPrice'; +/** + * Check if a given object implements the ProductImportProductsPricesRequest interface. + */ +export function instanceOfProductImportProductsPricesRequest(value) { + return true; +} +export function ProductImportProductsPricesRequestFromJSON(json) { + return ProductImportProductsPricesRequestFromJSONTyped(json, false); +} +export function ProductImportProductsPricesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'prices': json['prices'] == null ? undefined : (json['prices'].map(ProductImportProductsPricesRequestPriceFromJSON)), + }; +} +export function ProductImportProductsPricesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'prices': value['prices'] == null ? undefined : (value['prices'].map(ProductImportProductsPricesRequestPriceToJSON)), + }; +} diff --git a/dist/esm/models/ProductImportProductsPricesRequestPrice.d.ts b/dist/esm/models/ProductImportProductsPricesRequestPrice.d.ts new file mode 100644 index 0000000..f1b2b35 --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesRequestPrice.d.ts @@ -0,0 +1,205 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductImportProductsPricesRequestPrice + */ +export interface ProductImportProductsPricesRequestPrice { + /** + * Атрибут для включения и выключения автоматического применения к товару доступных акций Ozon: + * - `ENABLED` — включить; + * - `DISABLED` — выключить; + * - `UNKNOWN` — ничего не менять, передаётся по умолчанию. + * + * Например, если ранее вы включили автодобавление и не хотите выключать его, передавайте `UNKNOWN`. + * + * Если вы передаёте `ENABLED` в этом параметре, установите значение минимальной цены в параметре `min_price`. Цена не опустится ниже минимальной. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + auto_action_enabled?: ProductImportProductsPricesRequestPriceAutoActionEnabledEnum; + /** + * Атрибут для включения и выключения автодобавления товара в акции: + * - `ENABLED` — включить; + * - `DISABLED` — выключить; + * - `UNKNOWN` — ничего не менять, передаётся по умолчанию. + * + * Например, если ранее вы включили автодобавление товара в акции и не хотите выключать его, передавайте `UNKNOWN`. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + auto_add_to_ozon_actions_list_enabled?: ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum; + /** + * Валюта ваших цен. Переданное значение должно совпадать с валютой, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. + * + * Например, если у вас установлена валюта взаиморасчётов юань, передавайте значение `CNY`, иначе вернётся ошибка. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + currency_code?: string; + /** + * Управление участием в акции «Эластичный бустинг»: + * + * - `true` — автоматически добавляет товар в акцию или увеличивает в ней скидку и бустинг, если значение из параметра `price` соответствует условиям акции; + * - `false` — изменение значения параметра `price` не влияет на участие в акции. + * + * Если ничего не передать, изменений в статусе участия не будет. + * + * @type {boolean} + * @memberof ProductImportProductsPricesRequestPrice + */ + manage_elastic_boosting_through_price?: boolean; + /** + * Минимальная цена товара после применения акций.
[Подробнее о минимальной цене в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ceny-i-akcii/akcii-skidki-i-kupony/akcii-ozon/voprosy-otvety-akcii-ozon#что-такое-минимальная-цена?) + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + min_price?: string; + /** + * `true`, если Ozon учитывает минимальную цену при добавлении в акции. Если ничего не передать, изменений в статусе учёта цены не будет. + * + * @type {boolean} + * @memberof ProductImportProductsPricesRequestPrice + */ + min_price_for_auto_actions_enabled?: boolean; + /** + * Себестоимость товара. + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + net_price?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + offer_id?: string; + /** + * Цена до скидок (зачеркнута на карточке товара). Указывается в рублях. Разделитель дробной части — точка, до двух знаков после точки. + * + * Если на товар нет скидок, укажите значение `0` в этом поле, а текущую цену передайте в поле `price`. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + old_price?: string; + /** + * Цена товара с учётом скидок, отображается на карточке товара. + * + * Если значение параметра `old_price` больше 0, между `price` и `old_price` должна быть определённая разница. + * Она зависит от значения `price`. + * + * | Значение `price` | Минимальная разница | + * |---|---| + * | < 400 | 20 рублей | + * | 400–10 000 | 5% | + * | > 10 000 | 500 рублей | + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + price?: string; + /** + * Атрибут для автоприменения стратегий цены: + * - `ENABLED` — включить; + * - `DISABLED` — выключить; + * - `UNKNOWN` — ничего не менять, передаётся по умолчанию. + * + * Если ранее вы включили автоприменение стратегий цены и не хотите выключать его, передавайте `UNKNOWN` в следующих запросах. + * + * Если вы передаёте `ENABLED` в этом параметре, установите значение минимальной цены в параметре `min_price`. + * + * Если вы передаёте `DISABLED` в этом параметре, товар удаляется из стратегии. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + price_strategy_enabled?: ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductImportProductsPricesRequestPrice + */ + product_id?: number; + /** + * Используйте параметр, если у обычного и эконом-товара совпадает артикул — `offer_id = quant_id`. Чтобы обновить цену: + * - обычного товара — передайте значение `1`; + * - эконом-товара — передайте размер его кванта. + * + * Если у обычного и эконом-товара разные артикулы, не передавайте параметр. + * + * @type {number} + * @memberof ProductImportProductsPricesRequestPrice + */ + quant_size?: number; + /** + * Ставка НДС для товара: + * - `0` — не облагается НДС, + * - `0.05` — 5%, + * - `0.07` — 7%, + * - `0.1` — 10%, + * - `0.2` — 20%, + * - `0.22` — 22%. + * + * Передавайте значение ставки, актуальное на данный момент. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + vat?: string; +} +/** + * @export + */ +export declare const ProductImportProductsPricesRequestPriceAutoActionEnabledEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly ENABLED: "ENABLED"; + readonly DISABLED: "DISABLED"; +}; +export type ProductImportProductsPricesRequestPriceAutoActionEnabledEnum = typeof ProductImportProductsPricesRequestPriceAutoActionEnabledEnum[keyof typeof ProductImportProductsPricesRequestPriceAutoActionEnabledEnum]; +/** + * @export + */ +export declare const ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly ENABLED: "ENABLED"; + readonly DISABLED: "DISABLED"; +}; +export type ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum = typeof ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum[keyof typeof ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum]; +/** + * @export + */ +export declare const ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly ENABLED: "ENABLED"; + readonly DISABLED: "DISABLED"; +}; +export type ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum = typeof ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum[keyof typeof ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum]; +/** + * Check if a given object implements the ProductImportProductsPricesRequestPrice interface. + */ +export declare function instanceOfProductImportProductsPricesRequestPrice(value: object): value is ProductImportProductsPricesRequestPrice; +export declare function ProductImportProductsPricesRequestPriceFromJSON(json: any): ProductImportProductsPricesRequestPrice; +export declare function ProductImportProductsPricesRequestPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesRequestPrice; +export declare function ProductImportProductsPricesRequestPriceToJSON(value?: ProductImportProductsPricesRequestPrice | null): any; diff --git a/dist/esm/models/ProductImportProductsPricesRequestPrice.js b/dist/esm/models/ProductImportProductsPricesRequestPrice.js new file mode 100644 index 0000000..1a4f85b --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesRequestPrice.js @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const ProductImportProductsPricesRequestPriceAutoActionEnabledEnum = { + UNKNOWN: 'UNKNOWN', + ENABLED: 'ENABLED', + DISABLED: 'DISABLED' +}; +/** + * @export + */ +export const ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum = { + UNKNOWN: 'UNKNOWN', + ENABLED: 'ENABLED', + DISABLED: 'DISABLED' +}; +/** + * @export + */ +export const ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum = { + UNKNOWN: 'UNKNOWN', + ENABLED: 'ENABLED', + DISABLED: 'DISABLED' +}; +/** + * Check if a given object implements the ProductImportProductsPricesRequestPrice interface. + */ +export function instanceOfProductImportProductsPricesRequestPrice(value) { + return true; +} +export function ProductImportProductsPricesRequestPriceFromJSON(json) { + return ProductImportProductsPricesRequestPriceFromJSONTyped(json, false); +} +export function ProductImportProductsPricesRequestPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'auto_action_enabled': json['auto_action_enabled'] == null ? undefined : json['auto_action_enabled'], + 'auto_add_to_ozon_actions_list_enabled': json['auto_add_to_ozon_actions_list_enabled'] == null ? undefined : json['auto_add_to_ozon_actions_list_enabled'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'manage_elastic_boosting_through_price': json['manage_elastic_boosting_through_price'] == null ? undefined : json['manage_elastic_boosting_through_price'], + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'min_price_for_auto_actions_enabled': json['min_price_for_auto_actions_enabled'] == null ? undefined : json['min_price_for_auto_actions_enabled'], + 'net_price': json['net_price'] == null ? undefined : json['net_price'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'price_strategy_enabled': json['price_strategy_enabled'] == null ? undefined : json['price_strategy_enabled'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + 'vat': json['vat'] == null ? undefined : json['vat'], + }; +} +export function ProductImportProductsPricesRequestPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'auto_action_enabled': value['auto_action_enabled'], + 'auto_add_to_ozon_actions_list_enabled': value['auto_add_to_ozon_actions_list_enabled'], + 'currency_code': value['currency_code'], + 'manage_elastic_boosting_through_price': value['manage_elastic_boosting_through_price'], + 'min_price': value['min_price'], + 'min_price_for_auto_actions_enabled': value['min_price_for_auto_actions_enabled'], + 'net_price': value['net_price'], + 'offer_id': value['offer_id'], + 'old_price': value['old_price'], + 'price': value['price'], + 'price_strategy_enabled': value['price_strategy_enabled'], + 'product_id': value['product_id'], + 'quant_size': value['quant_size'], + 'vat': value['vat'], + }; +} diff --git a/dist/esm/models/ProductImportProductsPricesResponse.d.ts b/dist/esm/models/ProductImportProductsPricesResponse.d.ts new file mode 100644 index 0000000..711a7c0 --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsPricesResponseProcessResult } from './ProductImportProductsPricesResponseProcessResult'; +/** + * + * @export + * @interface ProductImportProductsPricesResponse + */ +export interface ProductImportProductsPricesResponse { + /** + * Результаты запроса. + * @type {Array} + * @memberof ProductImportProductsPricesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the ProductImportProductsPricesResponse interface. + */ +export declare function instanceOfProductImportProductsPricesResponse(value: object): value is ProductImportProductsPricesResponse; +export declare function ProductImportProductsPricesResponseFromJSON(json: any): ProductImportProductsPricesResponse; +export declare function ProductImportProductsPricesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesResponse; +export declare function ProductImportProductsPricesResponseToJSON(value?: ProductImportProductsPricesResponse | null): any; diff --git a/dist/esm/models/ProductImportProductsPricesResponse.js b/dist/esm/models/ProductImportProductsPricesResponse.js new file mode 100644 index 0000000..423cd50 --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductImportProductsPricesResponseProcessResultFromJSON, ProductImportProductsPricesResponseProcessResultToJSON, } from './ProductImportProductsPricesResponseProcessResult'; +/** + * Check if a given object implements the ProductImportProductsPricesResponse interface. + */ +export function instanceOfProductImportProductsPricesResponse(value) { + return true; +} +export function ProductImportProductsPricesResponseFromJSON(json) { + return ProductImportProductsPricesResponseFromJSONTyped(json, false); +} +export function ProductImportProductsPricesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ProductImportProductsPricesResponseProcessResultFromJSON)), + }; +} +export function ProductImportProductsPricesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ProductImportProductsPricesResponseProcessResultToJSON)), + }; +} diff --git a/dist/esm/models/ProductImportProductsPricesResponseError.d.ts b/dist/esm/models/ProductImportProductsPricesResponseError.d.ts new file mode 100644 index 0000000..d465a55 --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductImportProductsPricesResponseError + */ +export interface ProductImportProductsPricesResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof ProductImportProductsPricesResponseError + */ + code?: string; + /** + * Причина ошибки. + * @type {string} + * @memberof ProductImportProductsPricesResponseError + */ + message?: string; +} +/** + * Check if a given object implements the ProductImportProductsPricesResponseError interface. + */ +export declare function instanceOfProductImportProductsPricesResponseError(value: object): value is ProductImportProductsPricesResponseError; +export declare function ProductImportProductsPricesResponseErrorFromJSON(json: any): ProductImportProductsPricesResponseError; +export declare function ProductImportProductsPricesResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesResponseError; +export declare function ProductImportProductsPricesResponseErrorToJSON(value?: ProductImportProductsPricesResponseError | null): any; diff --git a/dist/esm/models/ProductImportProductsPricesResponseError.js b/dist/esm/models/ProductImportProductsPricesResponseError.js new file mode 100644 index 0000000..a6e66bb --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesResponseError.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductImportProductsPricesResponseError interface. + */ +export function instanceOfProductImportProductsPricesResponseError(value) { + return true; +} +export function ProductImportProductsPricesResponseErrorFromJSON(json) { + return ProductImportProductsPricesResponseErrorFromJSONTyped(json, false); +} +export function ProductImportProductsPricesResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function ProductImportProductsPricesResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/ProductImportProductsPricesResponseProcessResult.d.ts b/dist/esm/models/ProductImportProductsPricesResponseProcessResult.d.ts new file mode 100644 index 0000000..6038e8b --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesResponseProcessResult.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsPricesResponseError } from './ProductImportProductsPricesResponseError'; +/** + * + * @export + * @interface ProductImportProductsPricesResponseProcessResult + */ +export interface ProductImportProductsPricesResponseProcessResult { + /** + * Массив ошибок, которые возникли при обработке запроса. + * @type {Array} + * @memberof ProductImportProductsPricesResponseProcessResult + */ + errors?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductImportProductsPricesResponseProcessResult + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductImportProductsPricesResponseProcessResult + */ + product_id?: number; + /** + * Если информации о товаре успешно обновлена — `true`. + * @type {boolean} + * @memberof ProductImportProductsPricesResponseProcessResult + */ + updated?: boolean; +} +/** + * Check if a given object implements the ProductImportProductsPricesResponseProcessResult interface. + */ +export declare function instanceOfProductImportProductsPricesResponseProcessResult(value: object): value is ProductImportProductsPricesResponseProcessResult; +export declare function ProductImportProductsPricesResponseProcessResultFromJSON(json: any): ProductImportProductsPricesResponseProcessResult; +export declare function ProductImportProductsPricesResponseProcessResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesResponseProcessResult; +export declare function ProductImportProductsPricesResponseProcessResultToJSON(value?: ProductImportProductsPricesResponseProcessResult | null): any; diff --git a/dist/esm/models/ProductImportProductsPricesResponseProcessResult.js b/dist/esm/models/ProductImportProductsPricesResponseProcessResult.js new file mode 100644 index 0000000..a8975cb --- /dev/null +++ b/dist/esm/models/ProductImportProductsPricesResponseProcessResult.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductImportProductsPricesResponseErrorFromJSON, ProductImportProductsPricesResponseErrorToJSON, } from './ProductImportProductsPricesResponseError'; +/** + * Check if a given object implements the ProductImportProductsPricesResponseProcessResult interface. + */ +export function instanceOfProductImportProductsPricesResponseProcessResult(value) { + return true; +} +export function ProductImportProductsPricesResponseProcessResultFromJSON(json) { + return ProductImportProductsPricesResponseProcessResultFromJSONTyped(json, false); +} +export function ProductImportProductsPricesResponseProcessResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(ProductImportProductsPricesResponseErrorFromJSON)), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'updated': json['updated'] == null ? undefined : json['updated'], + }; +} +export function ProductImportProductsPricesResponseProcessResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(ProductImportProductsPricesResponseErrorToJSON)), + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'updated': value['updated'], + }; +} diff --git a/dist/esm/models/ProductInfoWarehouseStocksResponseStocks.d.ts b/dist/esm/models/ProductInfoWarehouseStocksResponseStocks.d.ts new file mode 100644 index 0000000..0090894 --- /dev/null +++ b/dist/esm/models/ProductInfoWarehouseStocksResponseStocks.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductInfoWarehouseStocksResponseStocks + */ +export interface ProductInfoWarehouseStocksResponseStocks { + /** + * Количество товара на складе, которое доступно для заказа. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + free_stock?: number; + /** + * Идентификатор товара в системе продавца — `offer_id`. + * @type {string} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + offer_id?: string; + /** + * Общее количество товара на складе. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + present?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + product_id?: number; + /** + * Количество зарезервированных товаров на складе. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + reserved?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + sku?: number; + /** + * Дата последнего обновления товара. + * @type {string} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the ProductInfoWarehouseStocksResponseStocks interface. + */ +export declare function instanceOfProductInfoWarehouseStocksResponseStocks(value: object): value is ProductInfoWarehouseStocksResponseStocks; +export declare function ProductInfoWarehouseStocksResponseStocksFromJSON(json: any): ProductInfoWarehouseStocksResponseStocks; +export declare function ProductInfoWarehouseStocksResponseStocksFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInfoWarehouseStocksResponseStocks; +export declare function ProductInfoWarehouseStocksResponseStocksToJSON(value?: ProductInfoWarehouseStocksResponseStocks | null): any; diff --git a/dist/esm/models/ProductInfoWarehouseStocksResponseStocks.js b/dist/esm/models/ProductInfoWarehouseStocksResponseStocks.js new file mode 100644 index 0000000..bbe3a44 --- /dev/null +++ b/dist/esm/models/ProductInfoWarehouseStocksResponseStocks.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductInfoWarehouseStocksResponseStocks interface. + */ +export function instanceOfProductInfoWarehouseStocksResponseStocks(value) { + return true; +} +export function ProductInfoWarehouseStocksResponseStocksFromJSON(json) { + return ProductInfoWarehouseStocksResponseStocksFromJSONTyped(json, false); +} +export function ProductInfoWarehouseStocksResponseStocksFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'free_stock': json['free_stock'] == null ? undefined : json['free_stock'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'present': json['present'] == null ? undefined : json['present'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function ProductInfoWarehouseStocksResponseStocksToJSON(value) { + if (value == null) { + return value; + } + return { + 'free_stock': value['free_stock'], + 'offer_id': value['offer_id'], + 'present': value['present'], + 'product_id': value['product_id'], + 'reserved': value['reserved'], + 'sku': value['sku'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.d.ts b/dist/esm/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.d.ts new file mode 100644 index 0000000..9ab0b1c --- /dev/null +++ b/dist/esm/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductInfoWrongVolumeResponseWrongVolumeProduct + */ +export interface ProductInfoWrongVolumeResponseWrongVolumeProduct { + /** + * Высота товара. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + height?: number; + /** + * Длина товара. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + length?: number; + /** + * Название товара. + * @type {string} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + product_id?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + sku?: number; + /** + * Вес товара в упаковке. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + weight?: number; + /** + * Ширина товара. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + width?: number; +} +/** + * Check if a given object implements the ProductInfoWrongVolumeResponseWrongVolumeProduct interface. + */ +export declare function instanceOfProductInfoWrongVolumeResponseWrongVolumeProduct(value: object): value is ProductInfoWrongVolumeResponseWrongVolumeProduct; +export declare function ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON(json: any): ProductInfoWrongVolumeResponseWrongVolumeProduct; +export declare function ProductInfoWrongVolumeResponseWrongVolumeProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInfoWrongVolumeResponseWrongVolumeProduct; +export declare function ProductInfoWrongVolumeResponseWrongVolumeProductToJSON(value?: ProductInfoWrongVolumeResponseWrongVolumeProduct | null): any; diff --git a/dist/esm/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.js b/dist/esm/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.js new file mode 100644 index 0000000..c59c54b --- /dev/null +++ b/dist/esm/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductInfoWrongVolumeResponseWrongVolumeProduct interface. + */ +export function instanceOfProductInfoWrongVolumeResponseWrongVolumeProduct(value) { + return true; +} +export function ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON(json) { + return ProductInfoWrongVolumeResponseWrongVolumeProductFromJSONTyped(json, false); +} +export function ProductInfoWrongVolumeResponseWrongVolumeProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'length': json['length'] == null ? undefined : json['length'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function ProductInfoWrongVolumeResponseWrongVolumeProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'length': value['length'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + 'weight': value['weight'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/ProductPlacementPlacementZoneEnum.d.ts b/dist/esm/models/ProductPlacementPlacementZoneEnum.d.ts new file mode 100644 index 0000000..0df9d82 --- /dev/null +++ b/dist/esm/models/ProductPlacementPlacementZoneEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Зона размещения товара: + * - `UNSPECIFIED` — не указана; + * - `CLOSED_ZONE` — закрытая зона; + * - `DANGEROUS_GOODS` — товар 2–4 класса опасности; + * - `PRODUCTS` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — неизвестная зона. + * + * @export + */ +export declare const ProductPlacementPlacementZoneEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CLOSED_ZONE: "CLOSED_ZONE"; + readonly DANGEROUS_GOODS: "DANGEROUS_GOODS"; + readonly PRODUCTS: "PRODUCTS"; + readonly SORT: "SORT"; + readonly NON_SORT: "NON_SORT"; + readonly OVERSIZE: "OVERSIZE"; + readonly JEWELRY: "JEWELRY"; + readonly UNRESOLVED: "UNRESOLVED"; +}; +export type ProductPlacementPlacementZoneEnum = typeof ProductPlacementPlacementZoneEnum[keyof typeof ProductPlacementPlacementZoneEnum]; +export declare function instanceOfProductPlacementPlacementZoneEnum(value: any): boolean; +export declare function ProductPlacementPlacementZoneEnumFromJSON(json: any): ProductPlacementPlacementZoneEnum; +export declare function ProductPlacementPlacementZoneEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductPlacementPlacementZoneEnum; +export declare function ProductPlacementPlacementZoneEnumToJSON(value?: ProductPlacementPlacementZoneEnum | null): any; diff --git a/dist/esm/models/ProductPlacementPlacementZoneEnum.js b/dist/esm/models/ProductPlacementPlacementZoneEnum.js new file mode 100644 index 0000000..b2a5023 --- /dev/null +++ b/dist/esm/models/ProductPlacementPlacementZoneEnum.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Зона размещения товара: + * - `UNSPECIFIED` — не указана; + * - `CLOSED_ZONE` — закрытая зона; + * - `DANGEROUS_GOODS` — товар 2–4 класса опасности; + * - `PRODUCTS` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — неизвестная зона. + * + * @export + */ +export const ProductPlacementPlacementZoneEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CLOSED_ZONE: 'CLOSED_ZONE', + DANGEROUS_GOODS: 'DANGEROUS_GOODS', + PRODUCTS: 'PRODUCTS', + SORT: 'SORT', + NON_SORT: 'NON_SORT', + OVERSIZE: 'OVERSIZE', + JEWELRY: 'JEWELRY', + UNRESOLVED: 'UNRESOLVED' +}; +export function instanceOfProductPlacementPlacementZoneEnum(value) { + for (const key in ProductPlacementPlacementZoneEnum) { + if (Object.prototype.hasOwnProperty.call(ProductPlacementPlacementZoneEnum, key)) { + if (ProductPlacementPlacementZoneEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductPlacementPlacementZoneEnumFromJSON(json) { + return ProductPlacementPlacementZoneEnumFromJSONTyped(json, false); +} +export function ProductPlacementPlacementZoneEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductPlacementPlacementZoneEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductProductArchiveRequest.d.ts b/dist/esm/models/ProductProductArchiveRequest.d.ts new file mode 100644 index 0000000..f7ec0b9 --- /dev/null +++ b/dist/esm/models/ProductProductArchiveRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductArchiveRequest + */ +export interface ProductProductArchiveRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. Вы можете передать до 100 идентификаторов за раз. + * @type {Array} + * @memberof ProductProductArchiveRequest + */ + product_id: Array; +} +/** + * Check if a given object implements the ProductProductArchiveRequest interface. + */ +export declare function instanceOfProductProductArchiveRequest(value: object): value is ProductProductArchiveRequest; +export declare function ProductProductArchiveRequestFromJSON(json: any): ProductProductArchiveRequest; +export declare function ProductProductArchiveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductArchiveRequest; +export declare function ProductProductArchiveRequestToJSON(value?: ProductProductArchiveRequest | null): any; diff --git a/dist/esm/models/ProductProductArchiveRequest.js b/dist/esm/models/ProductProductArchiveRequest.js new file mode 100644 index 0000000..4d7fdd6 --- /dev/null +++ b/dist/esm/models/ProductProductArchiveRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductProductArchiveRequest interface. + */ +export function instanceOfProductProductArchiveRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function ProductProductArchiveRequestFromJSON(json) { + return ProductProductArchiveRequestFromJSONTyped(json, false); +} +export function ProductProductArchiveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +export function ProductProductArchiveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/ProductProductCertificateAccordanceTypesResponse.d.ts b/dist/esm/models/ProductProductCertificateAccordanceTypesResponse.d.ts new file mode 100644 index 0000000..4ac5b37 --- /dev/null +++ b/dist/esm/models/ProductProductCertificateAccordanceTypesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductProductCertificateAccordanceTypesResponseType } from './ProductProductCertificateAccordanceTypesResponseType'; +/** + * + * @export + * @interface ProductProductCertificateAccordanceTypesResponse + */ +export interface ProductProductCertificateAccordanceTypesResponse { + /** + * Список типов и названий сертификатов. + * @type {Array} + * @memberof ProductProductCertificateAccordanceTypesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the ProductProductCertificateAccordanceTypesResponse interface. + */ +export declare function instanceOfProductProductCertificateAccordanceTypesResponse(value: object): value is ProductProductCertificateAccordanceTypesResponse; +export declare function ProductProductCertificateAccordanceTypesResponseFromJSON(json: any): ProductProductCertificateAccordanceTypesResponse; +export declare function ProductProductCertificateAccordanceTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateAccordanceTypesResponse; +export declare function ProductProductCertificateAccordanceTypesResponseToJSON(value?: ProductProductCertificateAccordanceTypesResponse | null): any; diff --git a/dist/esm/models/ProductProductCertificateAccordanceTypesResponse.js b/dist/esm/models/ProductProductCertificateAccordanceTypesResponse.js new file mode 100644 index 0000000..a659692 --- /dev/null +++ b/dist/esm/models/ProductProductCertificateAccordanceTypesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductProductCertificateAccordanceTypesResponseTypeFromJSON, ProductProductCertificateAccordanceTypesResponseTypeToJSON, } from './ProductProductCertificateAccordanceTypesResponseType'; +/** + * Check if a given object implements the ProductProductCertificateAccordanceTypesResponse interface. + */ +export function instanceOfProductProductCertificateAccordanceTypesResponse(value) { + return true; +} +export function ProductProductCertificateAccordanceTypesResponseFromJSON(json) { + return ProductProductCertificateAccordanceTypesResponseFromJSONTyped(json, false); +} +export function ProductProductCertificateAccordanceTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ProductProductCertificateAccordanceTypesResponseTypeFromJSON)), + }; +} +export function ProductProductCertificateAccordanceTypesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ProductProductCertificateAccordanceTypesResponseTypeToJSON)), + }; +} diff --git a/dist/esm/models/ProductProductCertificateAccordanceTypesResponseType.d.ts b/dist/esm/models/ProductProductCertificateAccordanceTypesResponseType.d.ts new file mode 100644 index 0000000..096150a --- /dev/null +++ b/dist/esm/models/ProductProductCertificateAccordanceTypesResponseType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductCertificateAccordanceTypesResponseType + */ +export interface ProductProductCertificateAccordanceTypesResponseType { + /** + * Название документа. + * @type {string} + * @memberof ProductProductCertificateAccordanceTypesResponseType + */ + name?: string; + /** + * Значение справочника. + * @type {string} + * @memberof ProductProductCertificateAccordanceTypesResponseType + */ + value?: string; +} +/** + * Check if a given object implements the ProductProductCertificateAccordanceTypesResponseType interface. + */ +export declare function instanceOfProductProductCertificateAccordanceTypesResponseType(value: object): value is ProductProductCertificateAccordanceTypesResponseType; +export declare function ProductProductCertificateAccordanceTypesResponseTypeFromJSON(json: any): ProductProductCertificateAccordanceTypesResponseType; +export declare function ProductProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateAccordanceTypesResponseType; +export declare function ProductProductCertificateAccordanceTypesResponseTypeToJSON(value?: ProductProductCertificateAccordanceTypesResponseType | null): any; diff --git a/dist/esm/models/ProductProductCertificateAccordanceTypesResponseType.js b/dist/esm/models/ProductProductCertificateAccordanceTypesResponseType.js new file mode 100644 index 0000000..66b8862 --- /dev/null +++ b/dist/esm/models/ProductProductCertificateAccordanceTypesResponseType.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductProductCertificateAccordanceTypesResponseType interface. + */ +export function instanceOfProductProductCertificateAccordanceTypesResponseType(value) { + return true; +} +export function ProductProductCertificateAccordanceTypesResponseTypeFromJSON(json) { + return ProductProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json, false); +} +export function ProductProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ProductProductCertificateAccordanceTypesResponseTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ProductProductCertificateBindRequest.d.ts b/dist/esm/models/ProductProductCertificateBindRequest.d.ts new file mode 100644 index 0000000..9e66e32 --- /dev/null +++ b/dist/esm/models/ProductProductCertificateBindRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductCertificateBindRequest + */ +export interface ProductProductCertificateBindRequest { + /** + * Идентификатор сертификата, который был присвоен при его загрузке. + * @type {number} + * @memberof ProductProductCertificateBindRequest + */ + certificate_id: number; + /** + * Массив идентификаторов товаров в системе Ozon — `product_id`, к которым относится этот сертификат. + * @type {Array} + * @memberof ProductProductCertificateBindRequest + * @deprecated + */ + product_id?: Array; + /** + * Список идентификаторов товаров в системе Ozon — SKU, к которым относится этот сертификат. + * @type {Array} + * @memberof ProductProductCertificateBindRequest + */ + skus?: Array; +} +/** + * Check if a given object implements the ProductProductCertificateBindRequest interface. + */ +export declare function instanceOfProductProductCertificateBindRequest(value: object): value is ProductProductCertificateBindRequest; +export declare function ProductProductCertificateBindRequestFromJSON(json: any): ProductProductCertificateBindRequest; +export declare function ProductProductCertificateBindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateBindRequest; +export declare function ProductProductCertificateBindRequestToJSON(value?: ProductProductCertificateBindRequest | null): any; diff --git a/dist/esm/models/ProductProductCertificateBindRequest.js b/dist/esm/models/ProductProductCertificateBindRequest.js new file mode 100644 index 0000000..8a04e0e --- /dev/null +++ b/dist/esm/models/ProductProductCertificateBindRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductProductCertificateBindRequest interface. + */ +export function instanceOfProductProductCertificateBindRequest(value) { + if (!('certificate_id' in value) || value['certificate_id'] === undefined) + return false; + return true; +} +export function ProductProductCertificateBindRequestFromJSON(json) { + return ProductProductCertificateBindRequestFromJSONTyped(json, false); +} +export function ProductProductCertificateBindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +export function ProductProductCertificateBindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'product_id': value['product_id'], + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/ProductProductCertificateTypesResponse.d.ts b/dist/esm/models/ProductProductCertificateTypesResponse.d.ts new file mode 100644 index 0000000..724c35e --- /dev/null +++ b/dist/esm/models/ProductProductCertificateTypesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductProductCertificateTypesResponseType } from './ProductProductCertificateTypesResponseType'; +/** + * + * @export + * @interface ProductProductCertificateTypesResponse + */ +export interface ProductProductCertificateTypesResponse { + /** + * Список типов и названий сертификатов. + * @type {Array} + * @memberof ProductProductCertificateTypesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the ProductProductCertificateTypesResponse interface. + */ +export declare function instanceOfProductProductCertificateTypesResponse(value: object): value is ProductProductCertificateTypesResponse; +export declare function ProductProductCertificateTypesResponseFromJSON(json: any): ProductProductCertificateTypesResponse; +export declare function ProductProductCertificateTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateTypesResponse; +export declare function ProductProductCertificateTypesResponseToJSON(value?: ProductProductCertificateTypesResponse | null): any; diff --git a/dist/esm/models/ProductProductCertificateTypesResponse.js b/dist/esm/models/ProductProductCertificateTypesResponse.js new file mode 100644 index 0000000..00c1f18 --- /dev/null +++ b/dist/esm/models/ProductProductCertificateTypesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductProductCertificateTypesResponseTypeFromJSON, ProductProductCertificateTypesResponseTypeToJSON, } from './ProductProductCertificateTypesResponseType'; +/** + * Check if a given object implements the ProductProductCertificateTypesResponse interface. + */ +export function instanceOfProductProductCertificateTypesResponse(value) { + return true; +} +export function ProductProductCertificateTypesResponseFromJSON(json) { + return ProductProductCertificateTypesResponseFromJSONTyped(json, false); +} +export function ProductProductCertificateTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ProductProductCertificateTypesResponseTypeFromJSON)), + }; +} +export function ProductProductCertificateTypesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ProductProductCertificateTypesResponseTypeToJSON)), + }; +} diff --git a/dist/esm/models/ProductProductCertificateTypesResponseType.d.ts b/dist/esm/models/ProductProductCertificateTypesResponseType.d.ts new file mode 100644 index 0000000..abe5ebd --- /dev/null +++ b/dist/esm/models/ProductProductCertificateTypesResponseType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductCertificateTypesResponseType + */ +export interface ProductProductCertificateTypesResponseType { + /** + * Название документа. + * @type {string} + * @memberof ProductProductCertificateTypesResponseType + */ + name?: string; + /** + * Значение справочника. + * @type {string} + * @memberof ProductProductCertificateTypesResponseType + */ + value?: string; +} +/** + * Check if a given object implements the ProductProductCertificateTypesResponseType interface. + */ +export declare function instanceOfProductProductCertificateTypesResponseType(value: object): value is ProductProductCertificateTypesResponseType; +export declare function ProductProductCertificateTypesResponseTypeFromJSON(json: any): ProductProductCertificateTypesResponseType; +export declare function ProductProductCertificateTypesResponseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateTypesResponseType; +export declare function ProductProductCertificateTypesResponseTypeToJSON(value?: ProductProductCertificateTypesResponseType | null): any; diff --git a/dist/esm/models/ProductProductCertificateTypesResponseType.js b/dist/esm/models/ProductProductCertificateTypesResponseType.js new file mode 100644 index 0000000..453a4d4 --- /dev/null +++ b/dist/esm/models/ProductProductCertificateTypesResponseType.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductProductCertificateTypesResponseType interface. + */ +export function instanceOfProductProductCertificateTypesResponseType(value) { + return true; +} +export function ProductProductCertificateTypesResponseTypeFromJSON(json) { + return ProductProductCertificateTypesResponseTypeFromJSONTyped(json, false); +} +export function ProductProductCertificateTypesResponseTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ProductProductCertificateTypesResponseTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ProductProductCertificationListRequest.d.ts b/dist/esm/models/ProductProductCertificationListRequest.d.ts new file mode 100644 index 0000000..165119f --- /dev/null +++ b/dist/esm/models/ProductProductCertificationListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductCertificationListRequest + */ +export interface ProductProductCertificationListRequest { + /** + * Номер страницы, возвращаемой в запросе. + * @type {number} + * @memberof ProductProductCertificationListRequest + */ + page?: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof ProductProductCertificationListRequest + */ + page_size?: number; +} +/** + * Check if a given object implements the ProductProductCertificationListRequest interface. + */ +export declare function instanceOfProductProductCertificationListRequest(value: object): value is ProductProductCertificationListRequest; +export declare function ProductProductCertificationListRequestFromJSON(json: any): ProductProductCertificationListRequest; +export declare function ProductProductCertificationListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificationListRequest; +export declare function ProductProductCertificationListRequestToJSON(value?: ProductProductCertificationListRequest | null): any; diff --git a/dist/esm/models/ProductProductCertificationListRequest.js b/dist/esm/models/ProductProductCertificationListRequest.js new file mode 100644 index 0000000..3e72d06 --- /dev/null +++ b/dist/esm/models/ProductProductCertificationListRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductProductCertificationListRequest interface. + */ +export function instanceOfProductProductCertificationListRequest(value) { + return true; +} +export function ProductProductCertificationListRequestFromJSON(json) { + return ProductProductCertificationListRequestFromJSONTyped(json, false); +} +export function ProductProductCertificationListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'] == null ? undefined : json['page_size'], + }; +} +export function ProductProductCertificationListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/esm/models/ProductProductCertificationListResponse.d.ts b/dist/esm/models/ProductProductCertificationListResponse.d.ts new file mode 100644 index 0000000..8966707 --- /dev/null +++ b/dist/esm/models/ProductProductCertificationListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificationListResponseCertificationResult } from './ProductCertificationListResponseCertificationResult'; +/** + * + * @export + * @interface ProductProductCertificationListResponse + */ +export interface ProductProductCertificationListResponse { + /** + * + * @type {ProductCertificationListResponseCertificationResult} + * @memberof ProductProductCertificationListResponse + */ + result?: ProductCertificationListResponseCertificationResult; +} +/** + * Check if a given object implements the ProductProductCertificationListResponse interface. + */ +export declare function instanceOfProductProductCertificationListResponse(value: object): value is ProductProductCertificationListResponse; +export declare function ProductProductCertificationListResponseFromJSON(json: any): ProductProductCertificationListResponse; +export declare function ProductProductCertificationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificationListResponse; +export declare function ProductProductCertificationListResponseToJSON(value?: ProductProductCertificationListResponse | null): any; diff --git a/dist/esm/models/ProductProductCertificationListResponse.js b/dist/esm/models/ProductProductCertificationListResponse.js new file mode 100644 index 0000000..79d0293 --- /dev/null +++ b/dist/esm/models/ProductProductCertificationListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductCertificationListResponseCertificationResultFromJSON, ProductCertificationListResponseCertificationResultToJSON, } from './ProductCertificationListResponseCertificationResult'; +/** + * Check if a given object implements the ProductProductCertificationListResponse interface. + */ +export function instanceOfProductProductCertificationListResponse(value) { + return true; +} +export function ProductProductCertificationListResponseFromJSON(json) { + return ProductProductCertificationListResponseFromJSONTyped(json, false); +} +export function ProductProductCertificationListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : ProductCertificationListResponseCertificationResultFromJSON(json['result']), + }; +} +export function ProductProductCertificationListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': ProductCertificationListResponseCertificationResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/ProductProductInfoPicturesResponsePicture.d.ts b/dist/esm/models/ProductProductInfoPicturesResponsePicture.d.ts new file mode 100644 index 0000000..6af3165 --- /dev/null +++ b/dist/esm/models/ProductProductInfoPicturesResponsePicture.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductInfoPicturesResponsePicture + */ +export interface ProductProductInfoPicturesResponsePicture { + /** + * Признак, что картинка — образец цвета. + * @type {boolean} + * @memberof ProductProductInfoPicturesResponsePicture + */ + is_color?: boolean; + /** + * Признак, что картинка — главное изображение. + * @type {boolean} + * @memberof ProductProductInfoPicturesResponsePicture + */ + is_primary?: boolean; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductProductInfoPicturesResponsePicture + */ + product_id?: number; + /** + * Статус загрузки изображения. + * + * Если вызывали метод [/v1/product/pictures/import](#operation/ProductAPI_ProductImportPictures), в ответе метода всегда будет `imported` — картинка не обработана. + * Чтобы посмотреть финальный статус, примерно через 10 секунд вызовите метод [/v2/product/pictures/info](#operation/ProductAPI_ProductInfoPicturesV2). + * + * @type {string} + * @memberof ProductProductInfoPicturesResponsePicture + */ + state?: string; + /** + * Адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. + * @type {string} + * @memberof ProductProductInfoPicturesResponsePicture + */ + url?: string; +} +/** + * Check if a given object implements the ProductProductInfoPicturesResponsePicture interface. + */ +export declare function instanceOfProductProductInfoPicturesResponsePicture(value: object): value is ProductProductInfoPicturesResponsePicture; +export declare function ProductProductInfoPicturesResponsePictureFromJSON(json: any): ProductProductInfoPicturesResponsePicture; +export declare function ProductProductInfoPicturesResponsePictureFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductInfoPicturesResponsePicture; +export declare function ProductProductInfoPicturesResponsePictureToJSON(value?: ProductProductInfoPicturesResponsePicture | null): any; diff --git a/dist/esm/models/ProductProductInfoPicturesResponsePicture.js b/dist/esm/models/ProductProductInfoPicturesResponsePicture.js new file mode 100644 index 0000000..ffa0401 --- /dev/null +++ b/dist/esm/models/ProductProductInfoPicturesResponsePicture.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductProductInfoPicturesResponsePicture interface. + */ +export function instanceOfProductProductInfoPicturesResponsePicture(value) { + return true; +} +export function ProductProductInfoPicturesResponsePictureFromJSON(json) { + return ProductProductInfoPicturesResponsePictureFromJSONTyped(json, false); +} +export function ProductProductInfoPicturesResponsePictureFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_color': json['is_color'] == null ? undefined : json['is_color'], + 'is_primary': json['is_primary'] == null ? undefined : json['is_primary'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'state': json['state'] == null ? undefined : json['state'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +export function ProductProductInfoPicturesResponsePictureToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_color': value['is_color'], + 'is_primary': value['is_primary'], + 'product_id': value['product_id'], + 'state': value['state'], + 'url': value['url'], + }; +} diff --git a/dist/esm/models/ProductProductUnarchiveRequest.d.ts b/dist/esm/models/ProductProductUnarchiveRequest.d.ts new file mode 100644 index 0000000..4666c87 --- /dev/null +++ b/dist/esm/models/ProductProductUnarchiveRequest.d.ts @@ -0,0 +1,36 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductUnarchiveRequest + */ +export interface ProductProductUnarchiveRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. Вы можете передать до 100 идентификаторов за раз. + * + * В сутки можно восстановить из архива не больше 100 товаров, которые были архивированы автоматически. + * Лимит обновляется в 03:00 по московскому времени. + * На разархивацию товаров, перенесённых в архив вручную, ограничений нет. + * + * @type {Array} + * @memberof ProductProductUnarchiveRequest + */ + product_id: Array; +} +/** + * Check if a given object implements the ProductProductUnarchiveRequest interface. + */ +export declare function instanceOfProductProductUnarchiveRequest(value: object): value is ProductProductUnarchiveRequest; +export declare function ProductProductUnarchiveRequestFromJSON(json: any): ProductProductUnarchiveRequest; +export declare function ProductProductUnarchiveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductUnarchiveRequest; +export declare function ProductProductUnarchiveRequestToJSON(value?: ProductProductUnarchiveRequest | null): any; diff --git a/dist/esm/models/ProductProductUnarchiveRequest.js b/dist/esm/models/ProductProductUnarchiveRequest.js new file mode 100644 index 0000000..f81cf05 --- /dev/null +++ b/dist/esm/models/ProductProductUnarchiveRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductProductUnarchiveRequest interface. + */ +export function instanceOfProductProductUnarchiveRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function ProductProductUnarchiveRequestFromJSON(json) { + return ProductProductUnarchiveRequestFromJSONTyped(json, false); +} +export function ProductProductUnarchiveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +export function ProductProductUnarchiveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/ProductUpdateOfferIdRequestUpdateOfferId.d.ts b/dist/esm/models/ProductUpdateOfferIdRequestUpdateOfferId.d.ts new file mode 100644 index 0000000..faadb96 --- /dev/null +++ b/dist/esm/models/ProductUpdateOfferIdRequestUpdateOfferId.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductUpdateOfferIdRequestUpdateOfferId + */ +export interface ProductUpdateOfferIdRequestUpdateOfferId { + /** + * Новый артикул. + * + * @type {string} + * @memberof ProductUpdateOfferIdRequestUpdateOfferId + */ + new_offer_id: string; + /** + * Старый артикул. + * @type {string} + * @memberof ProductUpdateOfferIdRequestUpdateOfferId + */ + offer_id: string; +} +/** + * Check if a given object implements the ProductUpdateOfferIdRequestUpdateOfferId interface. + */ +export declare function instanceOfProductUpdateOfferIdRequestUpdateOfferId(value: object): value is ProductUpdateOfferIdRequestUpdateOfferId; +export declare function ProductUpdateOfferIdRequestUpdateOfferIdFromJSON(json: any): ProductUpdateOfferIdRequestUpdateOfferId; +export declare function ProductUpdateOfferIdRequestUpdateOfferIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductUpdateOfferIdRequestUpdateOfferId; +export declare function ProductUpdateOfferIdRequestUpdateOfferIdToJSON(value?: ProductUpdateOfferIdRequestUpdateOfferId | null): any; diff --git a/dist/esm/models/ProductUpdateOfferIdRequestUpdateOfferId.js b/dist/esm/models/ProductUpdateOfferIdRequestUpdateOfferId.js new file mode 100644 index 0000000..672ac39 --- /dev/null +++ b/dist/esm/models/ProductUpdateOfferIdRequestUpdateOfferId.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductUpdateOfferIdRequestUpdateOfferId interface. + */ +export function instanceOfProductUpdateOfferIdRequestUpdateOfferId(value) { + if (!('new_offer_id' in value) || value['new_offer_id'] === undefined) + return false; + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + return true; +} +export function ProductUpdateOfferIdRequestUpdateOfferIdFromJSON(json) { + return ProductUpdateOfferIdRequestUpdateOfferIdFromJSONTyped(json, false); +} +export function ProductUpdateOfferIdRequestUpdateOfferIdFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'new_offer_id': json['new_offer_id'], + 'offer_id': json['offer_id'], + }; +} +export function ProductUpdateOfferIdRequestUpdateOfferIdToJSON(value) { + if (value == null) { + return value; + } + return { + 'new_offer_id': value['new_offer_id'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.d.ts b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.d.ts new file mode 100644 index 0000000..fdbef94 --- /dev/null +++ b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1GetProductInfoStocksByWarehouseFboRequest + */ +export interface ProductV1GetProductInfoStocksByWarehouseFboRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboRequest + */ + cursor?: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboRequest + */ + limit: number; + /** + * Идентификатор товаров в системе продавца — артикул. + * @type {Array} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboRequest + */ + offer_ids?: Array; + /** + * Идентификатор товаров в системе Ozon — SKU. + * @type {Array} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboRequest + */ + skus?: Array; +} +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboRequest interface. + */ +export declare function instanceOfProductV1GetProductInfoStocksByWarehouseFboRequest(value: object): value is ProductV1GetProductInfoStocksByWarehouseFboRequest; +export declare function ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSON(json: any): ProductV1GetProductInfoStocksByWarehouseFboRequest; +export declare function ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1GetProductInfoStocksByWarehouseFboRequest; +export declare function ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON(value?: ProductV1GetProductInfoStocksByWarehouseFboRequest | null): any; diff --git a/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.js b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.js new file mode 100644 index 0000000..bd23b21 --- /dev/null +++ b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboRequest interface. + */ +export function instanceOfProductV1GetProductInfoStocksByWarehouseFboRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSON(json) { + return ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSONTyped(json, false); +} +export function ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + 'offer_ids': json['offer_ids'] == null ? undefined : json['offer_ids'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +export function ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + 'offer_ids': value['offer_ids'], + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.d.ts b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.d.ts new file mode 100644 index 0000000..a5e2049 --- /dev/null +++ b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1GetProductInfoStocksByWarehouseFboResponseProduct } from './ProductV1GetProductInfoStocksByWarehouseFboResponseProduct'; +/** + * + * @export + * @interface ProductV1GetProductInfoStocksByWarehouseFboResponse + */ +export interface ProductV1GetProductInfoStocksByWarehouseFboResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все значения. + * + * @type {boolean} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponse + */ + has_next?: boolean; + /** + * Остатки товаров FBO. + * @type {Array} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponse + */ + products?: Array; +} +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboResponse interface. + */ +export declare function instanceOfProductV1GetProductInfoStocksByWarehouseFboResponse(value: object): value is ProductV1GetProductInfoStocksByWarehouseFboResponse; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON(json: any): ProductV1GetProductInfoStocksByWarehouseFboResponse; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1GetProductInfoStocksByWarehouseFboResponse; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseToJSON(value?: ProductV1GetProductInfoStocksByWarehouseFboResponse | null): any; diff --git a/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.js b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.js new file mode 100644 index 0000000..1c01562 --- /dev/null +++ b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON, ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON, } from './ProductV1GetProductInfoStocksByWarehouseFboResponseProduct'; +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboResponse interface. + */ +export function instanceOfProductV1GetProductInfoStocksByWarehouseFboResponse(value) { + return true; +} +export function ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON(json) { + return ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSONTyped(json, false); +} +export function ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON)), + }; +} +export function ProductV1GetProductInfoStocksByWarehouseFboResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.d.ts b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.d.ts new file mode 100644 index 0000000..e872669 --- /dev/null +++ b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ +export interface ProductV1GetProductInfoStocksByWarehouseFboResponseProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + offer_id?: string; + /** + * Общее количество товара на складе. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + present?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + product_id?: number; + /** + * Количество зарезервированных товаров на складе. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + reserved?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + sku?: number; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/ozon/list](#operation/WarehouseOZONList). + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboResponseProduct interface. + */ +export declare function instanceOfProductV1GetProductInfoStocksByWarehouseFboResponseProduct(value: object): value is ProductV1GetProductInfoStocksByWarehouseFboResponseProduct; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON(json: any): ProductV1GetProductInfoStocksByWarehouseFboResponseProduct; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1GetProductInfoStocksByWarehouseFboResponseProduct; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON(value?: ProductV1GetProductInfoStocksByWarehouseFboResponseProduct | null): any; diff --git a/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.js b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.js new file mode 100644 index 0000000..32cb75a --- /dev/null +++ b/dist/esm/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboResponseProduct interface. + */ +export function instanceOfProductV1GetProductInfoStocksByWarehouseFboResponseProduct(value) { + return true; +} +export function ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON(json) { + return ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSONTyped(json, false); +} +export function ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'present': json['present'] == null ? undefined : json['present'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'present': value['present'], + 'product_id': value['product_id'], + 'reserved': value['reserved'], + 'sku': value['sku'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.d.ts b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.d.ts new file mode 100644 index 0000000..17affbf --- /dev/null +++ b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf } from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf'; +import type { ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData } from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData'; +/** + * + * @export + * @interface ProductV1ProductPricesDetailsResponsePricePriceIndex + */ +export interface ProductV1ProductPricesDetailsResponsePricePriceIndex { + /** + * + * @type {ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndex + */ + external_index_data?: ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; + /** + * + * @type {ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndex + */ + self_index_data?: ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +} +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndex interface. + */ +export declare function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndex(value: object): value is ProductV1ProductPricesDetailsResponsePricePriceIndex; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON(json: any): ProductV1ProductPricesDetailsResponsePricePriceIndex; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductPricesDetailsResponsePricePriceIndex; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON(value?: ProductV1ProductPricesDetailsResponsePricePriceIndex | null): any; diff --git a/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.js b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.js new file mode 100644 index 0000000..8e6e37c --- /dev/null +++ b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON, ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON, } from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf'; +import { ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON, ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON, } from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData'; +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndex interface. + */ +export function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndex(value) { + return true; +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON(json) { + return ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSONTyped(json, false); +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'external_index_data': json['external_index_data'] == null ? undefined : ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON(json['external_index_data']), + 'self_index_data': json['self_index_data'] == null ? undefined : ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON(json['self_index_data']), + }; +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON(value) { + if (value == null) { + return value; + } + return { + 'external_index_data': ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON(value['external_index_data']), + 'self_index_data': ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON(value['self_index_data']), + }; +} diff --git a/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.d.ts b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.d.ts new file mode 100644 index 0000000..1e3fdf3 --- /dev/null +++ b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoney } from './MoneyMoney'; +/** + * Цена товара конкурента. + * @export + * @interface ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData + */ +export interface ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData { + /** + * + * @type {MoneyMoney} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData + */ + min_price?: MoneyMoney; + /** + * Индекс цены. + * @type {number} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData + */ + price_index?: number; + /** + * Ссылка на товар конкурента. + * @type {string} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData + */ + url?: string; +} +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData interface. + */ +export declare function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexData(value: object): value is ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON(json: any): ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON(value?: ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData | null): any; diff --git a/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.js b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.js new file mode 100644 index 0000000..47271c4 --- /dev/null +++ b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyFromJSON, MoneyMoneyToJSON, } from './MoneyMoney'; +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData interface. + */ +export function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexData(value) { + return true; +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON(json) { + return ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSONTyped(json, false); +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : MoneyMoneyFromJSON(json['min_price']), + 'price_index': json['price_index'] == null ? undefined : json['price_index'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': MoneyMoneyToJSON(value['min_price']), + 'price_index': value['price_index'], + 'url': value['url'], + }; +} diff --git a/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.d.ts b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.d.ts new file mode 100644 index 0000000..a4c444f --- /dev/null +++ b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySelf } from './MoneyMoneySelf'; +/** + * Цена вашего товара. + * @export + * @interface ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf + */ +export interface ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf { + /** + * + * @type {MoneyMoneySelf} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf + */ + min_price?: MoneyMoneySelf; + /** + * Индекс цены. + * @type {number} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf + */ + price_index?: number; + /** + * Ссылка на ваш товар. + * @type {string} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf + */ + url?: string; +} +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf interface. + */ +export declare function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf(value: object): value is ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON(json: any): ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON(value?: ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf | null): any; diff --git a/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.js b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.js new file mode 100644 index 0000000..9393922 --- /dev/null +++ b/dist/esm/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneySelfFromJSON, MoneyMoneySelfToJSON, } from './MoneyMoneySelf'; +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf interface. + */ +export function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf(value) { + return true; +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON(json) { + return ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSONTyped(json, false); +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : MoneyMoneySelfFromJSON(json['min_price']), + 'price_index': json['price_index'] == null ? undefined : json['price_index'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +export function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': MoneyMoneySelfToJSON(value['min_price']), + 'price_index': value['price_index'], + 'url': value['url'], + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilityInfoRequest.d.ts b/dist/esm/models/ProductV1ProductVisibilityInfoRequest.d.ts new file mode 100644 index 0000000..d1538eb --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilityInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1ProductVisibilityInfoRequest + */ +export interface ProductV1ProductVisibilityInfoRequest { + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof ProductV1ProductVisibilityInfoRequest + */ + skus?: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoRequest interface. + */ +export declare function instanceOfProductV1ProductVisibilityInfoRequest(value: object): value is ProductV1ProductVisibilityInfoRequest; +export declare function ProductV1ProductVisibilityInfoRequestFromJSON(json: any): ProductV1ProductVisibilityInfoRequest; +export declare function ProductV1ProductVisibilityInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilityInfoRequest; +export declare function ProductV1ProductVisibilityInfoRequestToJSON(value?: ProductV1ProductVisibilityInfoRequest | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilityInfoRequest.js b/dist/esm/models/ProductV1ProductVisibilityInfoRequest.js new file mode 100644 index 0000000..c00026e --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilityInfoRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoRequest interface. + */ +export function instanceOfProductV1ProductVisibilityInfoRequest(value) { + return true; +} +export function ProductV1ProductVisibilityInfoRequestFromJSON(json) { + return ProductV1ProductVisibilityInfoRequestFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilityInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +export function ProductV1ProductVisibilityInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilityInfoResponse.d.ts b/dist/esm/models/ProductV1ProductVisibilityInfoResponse.d.ts new file mode 100644 index 0000000..5e57799 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilityInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilityInfoResponseItem } from './ProductV1ProductVisibilityInfoResponseItem'; +/** + * + * @export + * @interface ProductV1ProductVisibilityInfoResponse + */ +export interface ProductV1ProductVisibilityInfoResponse { + /** + * Список товаров. + * @type {Array} + * @memberof ProductV1ProductVisibilityInfoResponse + */ + items?: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoResponse interface. + */ +export declare function instanceOfProductV1ProductVisibilityInfoResponse(value: object): value is ProductV1ProductVisibilityInfoResponse; +export declare function ProductV1ProductVisibilityInfoResponseFromJSON(json: any): ProductV1ProductVisibilityInfoResponse; +export declare function ProductV1ProductVisibilityInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilityInfoResponse; +export declare function ProductV1ProductVisibilityInfoResponseToJSON(value?: ProductV1ProductVisibilityInfoResponse | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilityInfoResponse.js b/dist/esm/models/ProductV1ProductVisibilityInfoResponse.js new file mode 100644 index 0000000..3075ab7 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilityInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1ProductVisibilityInfoResponseItemFromJSON, ProductV1ProductVisibilityInfoResponseItemToJSON, } from './ProductV1ProductVisibilityInfoResponseItem'; +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoResponse interface. + */ +export function instanceOfProductV1ProductVisibilityInfoResponse(value) { + return true; +} +export function ProductV1ProductVisibilityInfoResponseFromJSON(json) { + return ProductV1ProductVisibilityInfoResponseFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilityInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductV1ProductVisibilityInfoResponseItemFromJSON)), + }; +} +export function ProductV1ProductVisibilityInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductV1ProductVisibilityInfoResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilityInfoResponseItem.d.ts b/dist/esm/models/ProductV1ProductVisibilityInfoResponseItem.d.ts new file mode 100644 index 0000000..0902958 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilityInfoResponseItem.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum } from './ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum'; +/** + * + * @export + * @interface ProductV1ProductVisibilityInfoResponseItem + */ +export interface ProductV1ProductVisibilityInfoResponseItem { + /** + * + * @type {ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum} + * @memberof ProductV1ProductVisibilityInfoResponseItem + */ + showcases_visibility?: ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1ProductVisibilityInfoResponseItem + */ + sku?: number; +} +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoResponseItem interface. + */ +export declare function instanceOfProductV1ProductVisibilityInfoResponseItem(value: object): value is ProductV1ProductVisibilityInfoResponseItem; +export declare function ProductV1ProductVisibilityInfoResponseItemFromJSON(json: any): ProductV1ProductVisibilityInfoResponseItem; +export declare function ProductV1ProductVisibilityInfoResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilityInfoResponseItem; +export declare function ProductV1ProductVisibilityInfoResponseItemToJSON(value?: ProductV1ProductVisibilityInfoResponseItem | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilityInfoResponseItem.js b/dist/esm/models/ProductV1ProductVisibilityInfoResponseItem.js new file mode 100644 index 0000000..86e9da0 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilityInfoResponseItem.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON, ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON, } from './ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum'; +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoResponseItem interface. + */ +export function instanceOfProductV1ProductVisibilityInfoResponseItem(value) { + return true; +} +export function ProductV1ProductVisibilityInfoResponseItemFromJSON(json) { + return ProductV1ProductVisibilityInfoResponseItemFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilityInfoResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'showcases_visibility': json['showcases_visibility'] == null ? undefined : ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON(json['showcases_visibility']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function ProductV1ProductVisibilityInfoResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'showcases_visibility': ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON(value['showcases_visibility']), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.d.ts b/dist/esm/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.d.ts new file mode 100644 index 0000000..2985b7d --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * На каких витринах показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export declare const ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; + readonly OZON_SELECT: "OZON_SELECT"; + readonly NONE: "NONE"; +}; +export type ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum = typeof ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum[keyof typeof ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum]; +export declare function instanceOfProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum(value: any): boolean; +export declare function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON(json: any): ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum; +export declare function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum; +export declare function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON(value?: ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.js b/dist/esm/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.js new file mode 100644 index 0000000..2708b14 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * На каких витринах показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export const ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT', + OZON_SELECT: 'OZON_SELECT', + NONE: 'NONE' +}; +export function instanceOfProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum(value) { + for (const key in ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum) { + if (Object.prototype.hasOwnProperty.call(ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum, key)) { + if (ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON(json) { + return ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetRequest.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetRequest.d.ts new file mode 100644 index 0000000..6b156d8 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilitySetRequestItemPlacement } from './ProductV1ProductVisibilitySetRequestItemPlacement'; +/** + * + * @export + * @interface ProductV1ProductVisibilitySetRequest + */ +export interface ProductV1ProductVisibilitySetRequest { + /** + * Информация о видимости товара. + * @type {Array} + * @memberof ProductV1ProductVisibilitySetRequest + */ + item_placement: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetRequest interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetRequest(value: object): value is ProductV1ProductVisibilitySetRequest; +export declare function ProductV1ProductVisibilitySetRequestFromJSON(json: any): ProductV1ProductVisibilitySetRequest; +export declare function ProductV1ProductVisibilitySetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetRequest; +export declare function ProductV1ProductVisibilitySetRequestToJSON(value?: ProductV1ProductVisibilitySetRequest | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetRequest.js b/dist/esm/models/ProductV1ProductVisibilitySetRequest.js new file mode 100644 index 0000000..bd66e24 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1ProductVisibilitySetRequestItemPlacementFromJSON, ProductV1ProductVisibilitySetRequestItemPlacementToJSON, } from './ProductV1ProductVisibilitySetRequestItemPlacement'; +/** + * Check if a given object implements the ProductV1ProductVisibilitySetRequest interface. + */ +export function instanceOfProductV1ProductVisibilitySetRequest(value) { + if (!('item_placement' in value) || value['item_placement'] === undefined) + return false; + return true; +} +export function ProductV1ProductVisibilitySetRequestFromJSON(json) { + return ProductV1ProductVisibilitySetRequestFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'item_placement': (json['item_placement'].map(ProductV1ProductVisibilitySetRequestItemPlacementFromJSON)), + }; +} +export function ProductV1ProductVisibilitySetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'item_placement': (value['item_placement'].map(ProductV1ProductVisibilitySetRequestItemPlacementToJSON)), + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacement.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacement.d.ts new file mode 100644 index 0000000..5beb5cd --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacement.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum } from './ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum'; +/** + * + * @export + * @interface ProductV1ProductVisibilitySetRequestItemPlacement + */ +export interface ProductV1ProductVisibilitySetRequestItemPlacement { + /** + * + * @type {ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum} + * @memberof ProductV1ProductVisibilitySetRequestItemPlacement + */ + placement: ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1ProductVisibilitySetRequestItemPlacement + */ + sku: number; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetRequestItemPlacement interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetRequestItemPlacement(value: object): value is ProductV1ProductVisibilitySetRequestItemPlacement; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementFromJSON(json: any): ProductV1ProductVisibilitySetRequestItemPlacement; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetRequestItemPlacement; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementToJSON(value?: ProductV1ProductVisibilitySetRequestItemPlacement | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacement.js b/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacement.js new file mode 100644 index 0000000..8647c5e --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacement.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON, ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON, } from './ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum'; +/** + * Check if a given object implements the ProductV1ProductVisibilitySetRequestItemPlacement interface. + */ +export function instanceOfProductV1ProductVisibilitySetRequestItemPlacement(value) { + if (!('placement' in value) || value['placement'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function ProductV1ProductVisibilitySetRequestItemPlacementFromJSON(json) { + return ProductV1ProductVisibilitySetRequestItemPlacementFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetRequestItemPlacementFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'placement': ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON(json['placement']), + 'sku': json['sku'], + }; +} +export function ProductV1ProductVisibilitySetRequestItemPlacementToJSON(value) { + if (value == null) { + return value; + } + return { + 'placement': ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON(value['placement']), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.d.ts new file mode 100644 index 0000000..88bbfd3 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Платформа для размещения товаров: + * - `OZON` — только на Ozon. + * - `SELECT` — только на Селект.
[Подробнее об Ozon Селект в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ozon-select) + * - `OZON_SELECT` — на Селект и Ozon. + * - `NONE` — товар скрыт везде. Только для продавцов, которые работают через Ozon Доставку.
[Подробнее об Ozon Доставке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ozon-logistika/osobennosti-raboty#что-такое-ozon-доставка) + * + * @export + */ +export declare const ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum: { + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; + readonly OZON_SELECT: "OZON_SELECT"; + readonly NONE: "NONE"; +}; +export type ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum = typeof ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum[keyof typeof ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum]; +export declare function instanceOfProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON(json: any): ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON(value?: ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.js b/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.js new file mode 100644 index 0000000..bb6e112 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Платформа для размещения товаров: + * - `OZON` — только на Ozon. + * - `SELECT` — только на Селект.
[Подробнее об Ozon Селект в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ozon-select) + * - `OZON_SELECT` — на Селект и Ozon. + * - `NONE` — товар скрыт везде. Только для продавцов, которые работают через Ozon Доставку.
[Подробнее об Ozon Доставке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ozon-logistika/osobennosti-raboty#что-такое-ozon-доставка) + * + * @export + */ +export const ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum = { + OZON: 'OZON', + SELECT: 'SELECT', + OZON_SELECT: 'OZON_SELECT', + NONE: 'NONE' +}; +export function instanceOfProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum(value) { + for (const key in ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum) { + if (Object.prototype.hasOwnProperty.call(ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum, key)) { + if (ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON(json) { + return ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponse.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetResponse.d.ts new file mode 100644 index 0000000..b46aee7 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilitySetResponseItems } from './ProductV1ProductVisibilitySetResponseItems'; +import type { ProductV1ProductVisibilitySetResponseItemsErrors } from './ProductV1ProductVisibilitySetResponseItemsErrors'; +/** + * + * @export + * @interface ProductV1ProductVisibilitySetResponse + */ +export interface ProductV1ProductVisibilitySetResponse { + /** + * Информация о видимости товаров. + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponse + */ + items?: Array; + /** + * Товары с ошибками. + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponse + */ + items_errors?: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponse interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetResponse(value: object): value is ProductV1ProductVisibilitySetResponse; +export declare function ProductV1ProductVisibilitySetResponseFromJSON(json: any): ProductV1ProductVisibilitySetResponse; +export declare function ProductV1ProductVisibilitySetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponse; +export declare function ProductV1ProductVisibilitySetResponseToJSON(value?: ProductV1ProductVisibilitySetResponse | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponse.js b/dist/esm/models/ProductV1ProductVisibilitySetResponse.js new file mode 100644 index 0000000..d0f778b --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1ProductVisibilitySetResponseItemsFromJSON, ProductV1ProductVisibilitySetResponseItemsToJSON, } from './ProductV1ProductVisibilitySetResponseItems'; +import { ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON, ProductV1ProductVisibilitySetResponseItemsErrorsToJSON, } from './ProductV1ProductVisibilitySetResponseItemsErrors'; +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponse interface. + */ +export function instanceOfProductV1ProductVisibilitySetResponse(value) { + return true; +} +export function ProductV1ProductVisibilitySetResponseFromJSON(json) { + return ProductV1ProductVisibilitySetResponseFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductV1ProductVisibilitySetResponseItemsFromJSON)), + 'items_errors': json['items_errors'] == null ? undefined : (json['items_errors'].map(ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON)), + }; +} +export function ProductV1ProductVisibilitySetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductV1ProductVisibilitySetResponseItemsToJSON)), + 'items_errors': value['items_errors'] == null ? undefined : (value['items_errors'].map(ProductV1ProductVisibilitySetResponseItemsErrorsToJSON)), + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItems.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetResponseItems.d.ts new file mode 100644 index 0000000..77d5cfc --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItems.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum } from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum'; +import type { ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum } from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum'; +import type { ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum } from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum'; +import type { ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum } from './ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum'; +import type { ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum } from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum'; +/** + * + * @export + * @interface ProductV1ProductVisibilitySetResponseItems + */ +export interface ProductV1ProductVisibilitySetResponseItems { + /** + * + * @type {ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + select_permission?: ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum; + /** + * + * @type {ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + seller_item_placement?: ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum; + /** + * Список значений видимости, которые установил продавец: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект. + * + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + seller_item_placement_list?: Array; + /** + * + * @type {ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + showcases_visibility?: ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum; + /** + * Список витрин, на которых показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект. + * + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + showcases_visibility_list?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + sku?: number; + /** + * Предупреждения. + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + warnings?: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponseItems interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetResponseItems(value: object): value is ProductV1ProductVisibilitySetResponseItems; +export declare function ProductV1ProductVisibilitySetResponseItemsFromJSON(json: any): ProductV1ProductVisibilitySetResponseItems; +export declare function ProductV1ProductVisibilitySetResponseItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItems; +export declare function ProductV1ProductVisibilitySetResponseItemsToJSON(value?: ProductV1ProductVisibilitySetResponseItems | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItems.js b/dist/esm/models/ProductV1ProductVisibilitySetResponseItems.js new file mode 100644 index 0000000..8acaf9f --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItems.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON, ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON, } from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum'; +import { ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON, ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON, } from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum'; +import { ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON, ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON, } from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum'; +import { ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON, ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON, } from './ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum'; +import { ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON, ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON, } from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum'; +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponseItems interface. + */ +export function instanceOfProductV1ProductVisibilitySetResponseItems(value) { + return true; +} +export function ProductV1ProductVisibilitySetResponseItemsFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetResponseItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'select_permission': json['select_permission'] == null ? undefined : ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON(json['select_permission']), + 'seller_item_placement': json['seller_item_placement'] == null ? undefined : ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON(json['seller_item_placement']), + 'seller_item_placement_list': json['seller_item_placement_list'] == null ? undefined : (json['seller_item_placement_list'].map(ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON)), + 'showcases_visibility': json['showcases_visibility'] == null ? undefined : ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON(json['showcases_visibility']), + 'showcases_visibility_list': json['showcases_visibility_list'] == null ? undefined : (json['showcases_visibility_list'].map(ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'warnings': json['warnings'] == null ? undefined : json['warnings'], + }; +} +export function ProductV1ProductVisibilitySetResponseItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'select_permission': ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON(value['select_permission']), + 'seller_item_placement': ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON(value['seller_item_placement']), + 'seller_item_placement_list': value['seller_item_placement_list'] == null ? undefined : (value['seller_item_placement_list'].map(ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON)), + 'showcases_visibility': ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON(value['showcases_visibility']), + 'showcases_visibility_list': value['showcases_visibility_list'] == null ? undefined : (value['showcases_visibility_list'].map(ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON)), + 'sku': value['sku'], + 'warnings': value['warnings'], + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsErrors.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsErrors.d.ts new file mode 100644 index 0000000..96e5fd2 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsErrors.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1ProductVisibilitySetResponseItemsErrors + */ +export interface ProductV1ProductVisibilitySetResponseItemsErrors { + /** + * Код ошибки. + * @type {string} + * @memberof ProductV1ProductVisibilitySetResponseItemsErrors + */ + code?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1ProductVisibilitySetResponseItemsErrors + */ + sku?: number; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponseItemsErrors interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsErrors(value: object): value is ProductV1ProductVisibilitySetResponseItemsErrors; +export declare function ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsErrors; +export declare function ProductV1ProductVisibilitySetResponseItemsErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsErrors; +export declare function ProductV1ProductVisibilitySetResponseItemsErrorsToJSON(value?: ProductV1ProductVisibilitySetResponseItemsErrors | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsErrors.js b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsErrors.js new file mode 100644 index 0000000..a60ce95 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsErrors.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponseItemsErrors interface. + */ +export function instanceOfProductV1ProductVisibilitySetResponseItemsErrors(value) { + return true; +} +export function ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsErrorsFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetResponseItemsErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function ProductV1ProductVisibilitySetResponseItemsErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.d.ts new file mode 100644 index 0000000..fffd153 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Возможность продажи товара на Ozon Селект: + * - `UNSPECIFIED` — не определено; + * - `RESTRICTED` — товар нельзя продавать; + * - `ALLOWED` — товар можно продавать. + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly RESTRICTED: "RESTRICTED"; + readonly ALLOWED: "ALLOWED"; +}; +export type ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum = typeof ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.js b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.js new file mode 100644 index 0000000..73e25ae --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Возможность продажи товара на Ozon Селект: + * - `UNSPECIFIED` — не определено; + * - `RESTRICTED` — товар нельзя продавать; + * - `ALLOWED` — товар можно продавать. + * + * @export + */ +export const ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum = { + UNSPECIFIED: 'UNSPECIFIED', + RESTRICTED: 'RESTRICTED', + ALLOWED: 'ALLOWED' +}; +export function instanceOfProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum(value) { + for (const key in ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum) { + if (Object.prototype.hasOwnProperty.call(ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum, key)) { + if (ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.d.ts new file mode 100644 index 0000000..480fffe --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Значение видимости, которое установил продавец: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; + readonly OZON_SELECT: "OZON_SELECT"; + readonly NONE: "NONE"; +}; +export type ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum = typeof ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.js b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.js new file mode 100644 index 0000000..83de5a0 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Значение видимости, которое установил продавец: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export const ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT', + OZON_SELECT: 'OZON_SELECT', + NONE: 'NONE' +}; +export function instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum(value) { + for (const key in ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum) { + if (Object.prototype.hasOwnProperty.call(ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum, key)) { + if (ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.d.ts new file mode 100644 index 0000000..dac5a30 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; +}; +export type ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum = typeof ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.js b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.js new file mode 100644 index 0000000..d98c22b --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT' +}; +export function instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum(value) { + for (const key in ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum) { + if (Object.prototype.hasOwnProperty.call(ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum, key)) { + if (ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.d.ts new file mode 100644 index 0000000..1232c4e --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * На каких витринах показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; + readonly OZON_SELECT: "OZON_SELECT"; + readonly NONE: "NONE"; +}; +export type ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum = typeof ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.js b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.js new file mode 100644 index 0000000..eebc77c --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * На каких витринах показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export const ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT', + OZON_SELECT: 'OZON_SELECT', + NONE: 'NONE' +}; +export function instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum(value) { + for (const key in ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum) { + if (Object.prototype.hasOwnProperty.call(ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum, key)) { + if (ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.d.ts b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.d.ts new file mode 100644 index 0000000..e554e06 --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; +}; +export type ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum = typeof ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum | null): any; diff --git a/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.js b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.js new file mode 100644 index 0000000..af5b2da --- /dev/null +++ b/dist/esm/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT' +}; +export function instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum(value) { + for (const key in ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum) { + if (Object.prototype.hasOwnProperty.call(ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum, key)) { + if (ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSONTyped(json, false); +} +export function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductV1QuantInfoRequest.d.ts b/dist/esm/models/ProductV1QuantInfoRequest.d.ts new file mode 100644 index 0000000..0f47781 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1QuantInfoRequest + */ +export interface ProductV1QuantInfoRequest { + /** + * Список квантов с товарами. + * + * @type {Array} + * @memberof ProductV1QuantInfoRequest + */ + quant_code: Array; +} +/** + * Check if a given object implements the ProductV1QuantInfoRequest interface. + */ +export declare function instanceOfProductV1QuantInfoRequest(value: object): value is ProductV1QuantInfoRequest; +export declare function ProductV1QuantInfoRequestFromJSON(json: any): ProductV1QuantInfoRequest; +export declare function ProductV1QuantInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoRequest; +export declare function ProductV1QuantInfoRequestToJSON(value?: ProductV1QuantInfoRequest | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoRequest.js b/dist/esm/models/ProductV1QuantInfoRequest.js new file mode 100644 index 0000000..dccfe54 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1QuantInfoRequest interface. + */ +export function instanceOfProductV1QuantInfoRequest(value) { + if (!('quant_code' in value) || value['quant_code'] === undefined) + return false; + return true; +} +export function ProductV1QuantInfoRequestFromJSON(json) { + return ProductV1QuantInfoRequestFromJSONTyped(json, false); +} +export function ProductV1QuantInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quant_code': json['quant_code'], + }; +} +export function ProductV1QuantInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'quant_code': value['quant_code'], + }; +} diff --git a/dist/esm/models/ProductV1QuantInfoResponse.d.ts b/dist/esm/models/ProductV1QuantInfoResponse.d.ts new file mode 100644 index 0000000..775df8f --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantInfoResponseResultItems } from './ProductV1QuantInfoResponseResultItems'; +/** + * + * @export + * @interface ProductV1QuantInfoResponse + */ +export interface ProductV1QuantInfoResponse { + /** + * Эконом-товары. + * @type {Array} + * @memberof ProductV1QuantInfoResponse + */ + items?: Array; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponse interface. + */ +export declare function instanceOfProductV1QuantInfoResponse(value: object): value is ProductV1QuantInfoResponse; +export declare function ProductV1QuantInfoResponseFromJSON(json: any): ProductV1QuantInfoResponse; +export declare function ProductV1QuantInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponse; +export declare function ProductV1QuantInfoResponseToJSON(value?: ProductV1QuantInfoResponse | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoResponse.js b/dist/esm/models/ProductV1QuantInfoResponse.js new file mode 100644 index 0000000..42b285a --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1QuantInfoResponseResultItemsFromJSON, ProductV1QuantInfoResponseResultItemsToJSON, } from './ProductV1QuantInfoResponseResultItems'; +/** + * Check if a given object implements the ProductV1QuantInfoResponse interface. + */ +export function instanceOfProductV1QuantInfoResponse(value) { + return true; +} +export function ProductV1QuantInfoResponseFromJSON(json) { + return ProductV1QuantInfoResponseFromJSONTyped(json, false); +} +export function ProductV1QuantInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductV1QuantInfoResponseResultItemsFromJSON)), + }; +} +export function ProductV1QuantInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductV1QuantInfoResponseResultItemsToJSON)), + }; +} diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItems.d.ts b/dist/esm/models/ProductV1QuantInfoResponseResultItems.d.ts new file mode 100644 index 0000000..b462f7b --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItems.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantInfoResponseResultItemsQuantInfo } from './ProductV1QuantInfoResponseResultItemsQuantInfo'; +/** + * + * @export + * @interface ProductV1QuantInfoResponseResultItems + */ +export interface ProductV1QuantInfoResponseResultItems { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItems + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItems + */ + product_id?: number; + /** + * + * @type {ProductV1QuantInfoResponseResultItemsQuantInfo} + * @memberof ProductV1QuantInfoResponseResultItems + */ + quant_info?: ProductV1QuantInfoResponseResultItemsQuantInfo; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItems interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItems(value: object): value is ProductV1QuantInfoResponseResultItems; +export declare function ProductV1QuantInfoResponseResultItemsFromJSON(json: any): ProductV1QuantInfoResponseResultItems; +export declare function ProductV1QuantInfoResponseResultItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItems; +export declare function ProductV1QuantInfoResponseResultItemsToJSON(value?: ProductV1QuantInfoResponseResultItems | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItems.js b/dist/esm/models/ProductV1QuantInfoResponseResultItems.js new file mode 100644 index 0000000..aba56d2 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItems.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON, ProductV1QuantInfoResponseResultItemsQuantInfoToJSON, } from './ProductV1QuantInfoResponseResultItemsQuantInfo'; +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItems interface. + */ +export function instanceOfProductV1QuantInfoResponseResultItems(value) { + return true; +} +export function ProductV1QuantInfoResponseResultItemsFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsFromJSONTyped(json, false); +} +export function ProductV1QuantInfoResponseResultItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant_info': json['quant_info'] == null ? undefined : ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON(json['quant_info']), + }; +} +export function ProductV1QuantInfoResponseResultItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'quant_info': ProductV1QuantInfoResponseResultItemsQuantInfoToJSON(value['quant_info']), + }; +} diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfo.d.ts b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfo.d.ts new file mode 100644 index 0000000..8d8ac34 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfo.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuants } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuants'; +/** + * Информация о кванте. + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfo + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfo { + /** + * Список квантов. + * @type {Array} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfo + */ + quants?: Array; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfo interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfo(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfo; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfo; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfo; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfo | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfo.js b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfo.js new file mode 100644 index 0000000..7172628 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfo.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON, } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuants'; +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfo interface. + */ +export function instanceOfProductV1QuantInfoResponseResultItemsQuantInfo(value) { + return true; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoFromJSONTyped(json, false); +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quants': json['quants'] == null ? undefined : (json['quants'].map(ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON)), + }; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'quants': value['quants'] == null ? undefined : (value['quants'].map(ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON)), + }; +} diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.d.ts b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.d.ts new file mode 100644 index 0000000..c5ac288 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.d.ts @@ -0,0 +1,95 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts'; +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions'; +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice'; +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended'; +/** + * + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuants { + /** + * Информация о штрихкодах. + * @type {Array} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + barcodes_extended?: Array; + /** + * + * @type {ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + dimensions?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; + /** + * + * @type {ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + marketing_price?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; + /** + * Минимальная цена, указанная продавцом. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + min_price?: string; + /** + * Зачёркнутая цена, указанная продавцом. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + old_price?: string; + /** + * Цена продажи, указанная продавцом. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + price?: string; + /** + * Идентификатор эконом-товара. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + quant_code?: string; + /** + * Размер кванта. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + quant_sice?: number; + /** + * Тип доставки товара. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + shipment_type?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + sku?: number; + /** + * + * @type {ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + statuses?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuants interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuants(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuants; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuants; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuants; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuants | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.js b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.js new file mode 100644 index 0000000..ce3f649 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON, } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts'; +import { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON, } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions'; +import { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON, } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice'; +import { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON, } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended'; +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuants interface. + */ +export function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuants(value) { + return true; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSONTyped(json, false); +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcodes_extended': json['barcodes_extended'] == null ? undefined : (json['barcodes_extended'].map(ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON)), + 'dimensions': json['dimensions'] == null ? undefined : ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON(json['dimensions']), + 'marketing_price': json['marketing_price'] == null ? undefined : ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON(json['marketing_price']), + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'quant_code': json['quant_code'] == null ? undefined : json['quant_code'], + 'quant_sice': json['quant_sice'] == null ? undefined : json['quant_sice'], + 'shipment_type': json['shipment_type'] == null ? undefined : json['shipment_type'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'statuses': json['statuses'] == null ? undefined : ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON(json['statuses']), + }; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcodes_extended': value['barcodes_extended'] == null ? undefined : (value['barcodes_extended'].map(ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON)), + 'dimensions': ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON(value['dimensions']), + 'marketing_price': ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON(value['marketing_price']), + 'min_price': value['min_price'], + 'old_price': value['old_price'], + 'price': value['price'], + 'quant_code': value['quant_code'], + 'quant_sice': value['quant_sice'], + 'shipment_type': value['shipment_type'], + 'sku': value['sku'], + 'statuses': ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON(value['statuses']), + }; +} diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.d.ts b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.d.ts new file mode 100644 index 0000000..1fe922a --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended { + /** + * Штрихкод. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended + */ + barcode?: string; + /** + * Ошибка получения штрихкода. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended + */ + error?: string; + /** + * Статус штрихкода. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended + */ + status?: string; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.js b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.js new file mode 100644 index 0000000..526c2f2 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended interface. + */ +export function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended(value) { + return true; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSONTyped(json, false); +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'error': json['error'] == null ? undefined : json['error'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'error': value['error'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.d.ts b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.d.ts new file mode 100644 index 0000000..f9eaa68 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Габариты. + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions { + /** + * Глубина, мм. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ + depth?: number; + /** + * Высота, мм. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ + height?: number; + /** + * Вес, г. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ + weight?: number; + /** + * Ширина, мм. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ + width?: number; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.js b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.js new file mode 100644 index 0000000..390fef4 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions interface. + */ +export function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions(value) { + return true; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSONTyped(json, false); +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'depth': json['depth'] == null ? undefined : json['depth'], + 'height': json['height'] == null ? undefined : json['height'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'depth': value['depth'], + 'height': value['height'], + 'weight': value['weight'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.d.ts b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.d.ts new file mode 100644 index 0000000..da1688d --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена на товар с учётом всех акций, которая будет указана на витрине Ozon, без учёта скидки по карте Ozon Банка. + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice { + /** + * Цена продажи. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice + */ + price?: string; + /** + * Цена, которую указал продавец. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice + */ + seller_price?: string; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.js b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.js new file mode 100644 index 0000000..24be147 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice interface. + */ +export function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice(value) { + return true; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSONTyped(json, false); +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'price': json['price'] == null ? undefined : json['price'], + 'seller_price': json['seller_price'] == null ? undefined : json['seller_price'], + }; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'price': value['price'], + 'seller_price': value['seller_price'], + }; +} diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.d.ts b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.d.ts new file mode 100644 index 0000000..e412bb8 --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Описание статусов. + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts { + /** + * Описание статуса. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ + state_description?: string; + /** + * Название статуса. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ + state_name?: string; + /** + * Системное название статуса. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ + state_sys_name?: string; + /** + * Подсказка о текущем состоянии товара. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ + state_tooltip?: string; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts | null): any; diff --git a/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.js b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.js new file mode 100644 index 0000000..36da48c --- /dev/null +++ b/dist/esm/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts interface. + */ +export function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts(value) { + return true; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSONTyped(json, false); +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'state_description': json['state_description'] == null ? undefined : json['state_description'], + 'state_name': json['state_name'] == null ? undefined : json['state_name'], + 'state_sys_name': json['state_sys_name'] == null ? undefined : json['state_sys_name'], + 'state_tooltip': json['state_tooltip'] == null ? undefined : json['state_tooltip'], + }; +} +export function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON(value) { + if (value == null) { + return value; + } + return { + 'state_description': value['state_description'], + 'state_name': value['state_name'], + 'state_sys_name': value['state_sys_name'], + 'state_tooltip': value['state_tooltip'], + }; +} diff --git a/dist/esm/models/ProductV1QuantListRequest.d.ts b/dist/esm/models/ProductV1QuantListRequest.d.ts new file mode 100644 index 0000000..b28de6c --- /dev/null +++ b/dist/esm/models/ProductV1QuantListRequest.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1QuantListRequest + */ +export interface ProductV1QuantListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ProductV1QuantListRequest + */ + cursor?: string; + /** + * Максимальное количество элементов в ответе. + * @type {number} + * @memberof ProductV1QuantListRequest + */ + limit: number; + /** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных. + * - `VISIBLE` — товары, которые видны покупателям. + * - `INVISIBLE` — товары, которые не видны покупателям. + * - `EMPTY_STOCK` — товары, которых нет в наличии. + * - `NOT_MODERATED` — товары, которые не прошли модерацию. + * - `MODERATED` — товары, которые прошли модерацию. + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке. + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой. + * - `READY_TO_SUPPLY` — товары, готовые к поставке. + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации. + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации. + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации. + * - `TO_SUPPLY` — товары, готовые к продаже. + * - `IN_SALE` — товары в продаже. + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей. + * - `OVERPRICED` — превышение цены. + * - `CRITICALLY_OVERPRICED` — критическое превышение цены. + * - `EMPTY_BARCODE` — пустой штрихкод. + * - `BARCODE_EXISTS` — штрихкод указан. + * - `QUARANTINE` — товар в карантине после изменения цены на 50% и больше. + * - `ARCHIVED` — товары в архиве. + * - `OVERPRICED_WITH_STOCK` — товары в продаже, цена которых выше, чем у конкурентов. + * - `PARTIAL_APPROVED` — товары в продаже, у которых пустое или неполное описание. + * + * @type {string} + * @memberof ProductV1QuantListRequest + */ + visibility?: ProductV1QuantListRequestVisibilityEnum; +} +/** + * @export + */ +export declare const ProductV1QuantListRequestVisibilityEnum: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; +}; +export type ProductV1QuantListRequestVisibilityEnum = typeof ProductV1QuantListRequestVisibilityEnum[keyof typeof ProductV1QuantListRequestVisibilityEnum]; +/** + * Check if a given object implements the ProductV1QuantListRequest interface. + */ +export declare function instanceOfProductV1QuantListRequest(value: object): value is ProductV1QuantListRequest; +export declare function ProductV1QuantListRequestFromJSON(json: any): ProductV1QuantListRequest; +export declare function ProductV1QuantListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantListRequest; +export declare function ProductV1QuantListRequestToJSON(value?: ProductV1QuantListRequest | null): any; diff --git a/dist/esm/models/ProductV1QuantListRequest.js b/dist/esm/models/ProductV1QuantListRequest.js new file mode 100644 index 0000000..392a5ab --- /dev/null +++ b/dist/esm/models/ProductV1QuantListRequest.js @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const ProductV1QuantListRequestVisibilityEnum = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED' +}; +/** + * Check if a given object implements the ProductV1QuantListRequest interface. + */ +export function instanceOfProductV1QuantListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function ProductV1QuantListRequestFromJSON(json) { + return ProductV1QuantListRequestFromJSONTyped(json, false); +} +export function ProductV1QuantListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + 'visibility': json['visibility'] == null ? undefined : json['visibility'], + }; +} +export function ProductV1QuantListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + 'visibility': value['visibility'], + }; +} diff --git a/dist/esm/models/ProductV1QuantListResponse.d.ts b/dist/esm/models/ProductV1QuantListResponse.d.ts new file mode 100644 index 0000000..cd3931d --- /dev/null +++ b/dist/esm/models/ProductV1QuantListResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantListResponseProducts } from './ProductV1QuantListResponseProducts'; +/** + * + * @export + * @interface ProductV1QuantListResponse + */ +export interface ProductV1QuantListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ProductV1QuantListResponse + */ + cursor?: string; + /** + * Эконом-товары. + * @type {Array} + * @memberof ProductV1QuantListResponse + */ + products?: Array; + /** + * Остаток на всех складах, шт. + * @type {number} + * @memberof ProductV1QuantListResponse + */ + total_items?: number; +} +/** + * Check if a given object implements the ProductV1QuantListResponse interface. + */ +export declare function instanceOfProductV1QuantListResponse(value: object): value is ProductV1QuantListResponse; +export declare function ProductV1QuantListResponseFromJSON(json: any): ProductV1QuantListResponse; +export declare function ProductV1QuantListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantListResponse; +export declare function ProductV1QuantListResponseToJSON(value?: ProductV1QuantListResponse | null): any; diff --git a/dist/esm/models/ProductV1QuantListResponse.js b/dist/esm/models/ProductV1QuantListResponse.js new file mode 100644 index 0000000..99a5dd7 --- /dev/null +++ b/dist/esm/models/ProductV1QuantListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1QuantListResponseProductsFromJSON, ProductV1QuantListResponseProductsToJSON, } from './ProductV1QuantListResponseProducts'; +/** + * Check if a given object implements the ProductV1QuantListResponse interface. + */ +export function instanceOfProductV1QuantListResponse(value) { + return true; +} +export function ProductV1QuantListResponseFromJSON(json) { + return ProductV1QuantListResponseFromJSONTyped(json, false); +} +export function ProductV1QuantListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'products': json['products'] == null ? undefined : (json['products'].map(ProductV1QuantListResponseProductsFromJSON)), + 'total_items': json['total_items'] == null ? undefined : json['total_items'], + }; +} +export function ProductV1QuantListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'products': value['products'] == null ? undefined : (value['products'].map(ProductV1QuantListResponseProductsToJSON)), + 'total_items': value['total_items'], + }; +} diff --git a/dist/esm/models/ProductV1QuantListResponseProducts.d.ts b/dist/esm/models/ProductV1QuantListResponseProducts.d.ts new file mode 100644 index 0000000..ca04fe0 --- /dev/null +++ b/dist/esm/models/ProductV1QuantListResponseProducts.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantListResponseProductsQuants } from './ProductV1QuantListResponseProductsQuants'; +/** + * + * @export + * @interface ProductV1QuantListResponseProducts + */ +export interface ProductV1QuantListResponseProducts { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductV1QuantListResponseProducts + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductV1QuantListResponseProducts + */ + product_id?: number; + /** + * Список квантов товара. + * @type {Array} + * @memberof ProductV1QuantListResponseProducts + */ + quants?: Array; +} +/** + * Check if a given object implements the ProductV1QuantListResponseProducts interface. + */ +export declare function instanceOfProductV1QuantListResponseProducts(value: object): value is ProductV1QuantListResponseProducts; +export declare function ProductV1QuantListResponseProductsFromJSON(json: any): ProductV1QuantListResponseProducts; +export declare function ProductV1QuantListResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantListResponseProducts; +export declare function ProductV1QuantListResponseProductsToJSON(value?: ProductV1QuantListResponseProducts | null): any; diff --git a/dist/esm/models/ProductV1QuantListResponseProducts.js b/dist/esm/models/ProductV1QuantListResponseProducts.js new file mode 100644 index 0000000..f59bdd1 --- /dev/null +++ b/dist/esm/models/ProductV1QuantListResponseProducts.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV1QuantListResponseProductsQuantsFromJSON, ProductV1QuantListResponseProductsQuantsToJSON, } from './ProductV1QuantListResponseProductsQuants'; +/** + * Check if a given object implements the ProductV1QuantListResponseProducts interface. + */ +export function instanceOfProductV1QuantListResponseProducts(value) { + return true; +} +export function ProductV1QuantListResponseProductsFromJSON(json) { + return ProductV1QuantListResponseProductsFromJSONTyped(json, false); +} +export function ProductV1QuantListResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quants': json['quants'] == null ? undefined : (json['quants'].map(ProductV1QuantListResponseProductsQuantsFromJSON)), + }; +} +export function ProductV1QuantListResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'quants': value['quants'] == null ? undefined : (value['quants'].map(ProductV1QuantListResponseProductsQuantsToJSON)), + }; +} diff --git a/dist/esm/models/ProductV1QuantListResponseProductsQuants.d.ts b/dist/esm/models/ProductV1QuantListResponseProductsQuants.d.ts new file mode 100644 index 0000000..ba11750 --- /dev/null +++ b/dist/esm/models/ProductV1QuantListResponseProductsQuants.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1QuantListResponseProductsQuants + */ +export interface ProductV1QuantListResponseProductsQuants { + /** + * Идентификатор кванта. + * @type {string} + * @memberof ProductV1QuantListResponseProductsQuants + */ + quant_code?: string; + /** + * Размер кванта. + * @type {number} + * @memberof ProductV1QuantListResponseProductsQuants + */ + quant_size?: number; +} +/** + * Check if a given object implements the ProductV1QuantListResponseProductsQuants interface. + */ +export declare function instanceOfProductV1QuantListResponseProductsQuants(value: object): value is ProductV1QuantListResponseProductsQuants; +export declare function ProductV1QuantListResponseProductsQuantsFromJSON(json: any): ProductV1QuantListResponseProductsQuants; +export declare function ProductV1QuantListResponseProductsQuantsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantListResponseProductsQuants; +export declare function ProductV1QuantListResponseProductsQuantsToJSON(value?: ProductV1QuantListResponseProductsQuants | null): any; diff --git a/dist/esm/models/ProductV1QuantListResponseProductsQuants.js b/dist/esm/models/ProductV1QuantListResponseProductsQuants.js new file mode 100644 index 0000000..5d99bff --- /dev/null +++ b/dist/esm/models/ProductV1QuantListResponseProductsQuants.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductV1QuantListResponseProductsQuants interface. + */ +export function instanceOfProductV1QuantListResponseProductsQuants(value) { + return true; +} +export function ProductV1QuantListResponseProductsQuantsFromJSON(json) { + return ProductV1QuantListResponseProductsQuantsFromJSONTyped(json, false); +} +export function ProductV1QuantListResponseProductsQuantsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quant_code': json['quant_code'] == null ? undefined : json['quant_code'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + }; +} +export function ProductV1QuantListResponseProductsQuantsToJSON(value) { + if (value == null) { + return value; + } + return { + 'quant_code': value['quant_code'], + 'quant_size': value['quant_size'], + }; +} diff --git a/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimits.d.ts b/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimits.d.ts new file mode 100644 index 0000000..8ac3e28 --- /dev/null +++ b/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimits.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum } from './ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum'; +/** + * Доступный лимит на работу с товарами. + * @export + * @interface ProductV4GetUploadQuotaResponseOperationLimits + */ +export interface ProductV4GetUploadQuotaResponseOperationLimits { + /** + * Количество товаров, которое можно создать за минуту. + * @type {number} + * @memberof ProductV4GetUploadQuotaResponseOperationLimits + */ + limit?: number; + /** + * + * @type {ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum} + * @memberof ProductV4GetUploadQuotaResponseOperationLimits + */ + limit_type?: ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum; +} +/** + * Check if a given object implements the ProductV4GetUploadQuotaResponseOperationLimits interface. + */ +export declare function instanceOfProductV4GetUploadQuotaResponseOperationLimits(value: object): value is ProductV4GetUploadQuotaResponseOperationLimits; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsFromJSON(json: any): ProductV4GetUploadQuotaResponseOperationLimits; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV4GetUploadQuotaResponseOperationLimits; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsToJSON(value?: ProductV4GetUploadQuotaResponseOperationLimits | null): any; diff --git a/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimits.js b/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimits.js new file mode 100644 index 0000000..720042c --- /dev/null +++ b/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimits.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON, ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON, } from './ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum'; +/** + * Check if a given object implements the ProductV4GetUploadQuotaResponseOperationLimits interface. + */ +export function instanceOfProductV4GetUploadQuotaResponseOperationLimits(value) { + return true; +} +export function ProductV4GetUploadQuotaResponseOperationLimitsFromJSON(json) { + return ProductV4GetUploadQuotaResponseOperationLimitsFromJSONTyped(json, false); +} +export function ProductV4GetUploadQuotaResponseOperationLimitsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'limit_type': json['limit_type'] == null ? undefined : ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON(json['limit_type']), + }; +} +export function ProductV4GetUploadQuotaResponseOperationLimitsToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'limit_type': ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON(value['limit_type']), + }; +} diff --git a/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.d.ts b/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.d.ts new file mode 100644 index 0000000..c9560c3 --- /dev/null +++ b/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Текущий лимит: + * - `UNSPECIFIED` — не указан; + * - `RATE_LIMIT_PER_MINUTE` — поминутный лимит. + * + * @export + */ +export declare const ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly RATE_LIMIT_PER_MINUTE: "RATE_LIMIT_PER_MINUTE"; +}; +export type ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum = typeof ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum[keyof typeof ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum]; +export declare function instanceOfProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum(value: any): boolean; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON(json: any): ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON(value?: ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum | null): any; diff --git a/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.js b/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.js new file mode 100644 index 0000000..51d503a --- /dev/null +++ b/dist/esm/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Текущий лимит: + * - `UNSPECIFIED` — не указан; + * - `RATE_LIMIT_PER_MINUTE` — поминутный лимит. + * + * @export + */ +export const ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + RATE_LIMIT_PER_MINUTE: 'RATE_LIMIT_PER_MINUTE' +}; +export function instanceOfProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum(value) { + for (const key in ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum, key)) { + if (ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON(json) { + return ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSONTyped(json, false); +} +export function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProductsPostings.d.ts b/dist/esm/models/ProductsPostings.d.ts new file mode 100644 index 0000000..3a13910 --- /dev/null +++ b/dist/esm/models/ProductsPostings.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductsPostings + */ +export interface ProductsPostings { + /** + * Номер отправления. + * @type {string} + * @memberof ProductsPostings + */ + posting_number?: string; + /** + * Количество товаров в отправлении. + * @type {number} + * @memberof ProductsPostings + */ + quantity?: number; +} +/** + * Check if a given object implements the ProductsPostings interface. + */ +export declare function instanceOfProductsPostings(value: object): value is ProductsPostings; +export declare function ProductsPostingsFromJSON(json: any): ProductsPostings; +export declare function ProductsPostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsPostings; +export declare function ProductsPostingsToJSON(value?: ProductsPostings | null): any; diff --git a/dist/esm/models/ProductsPostings.js b/dist/esm/models/ProductsPostings.js new file mode 100644 index 0000000..7b01081 --- /dev/null +++ b/dist/esm/models/ProductsPostings.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProductsPostings interface. + */ +export function instanceOfProductsPostings(value) { + return true; +} +export function ProductsPostingsFromJSON(json) { + return ProductsPostingsFromJSONTyped(json, false); +} +export function ProductsPostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + }; +} +export function ProductsPostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.d.ts b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.d.ts new file mode 100644 index 0000000..1ca53ed --- /dev/null +++ b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productsv1GetProductInfoStocksByWarehouseFbsRequest + */ +export interface Productsv1GetProductInfoStocksByWarehouseFbsRequest { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsRequest + */ + sku?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {Array} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsRequest + */ + offer_id?: Array; +} +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsRequest interface. + */ +export declare function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsRequest(value: object): value is Productsv1GetProductInfoStocksByWarehouseFbsRequest; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSON(json: any): Productsv1GetProductInfoStocksByWarehouseFbsRequest; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productsv1GetProductInfoStocksByWarehouseFbsRequest; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON(value?: Productsv1GetProductInfoStocksByWarehouseFbsRequest | null): any; diff --git a/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.js b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.js new file mode 100644 index 0000000..866b236 --- /dev/null +++ b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsRequest interface. + */ +export function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsRequest(value) { + return true; +} +export function Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSON(json) { + return Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSONTyped(json, false); +} +export function Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + }; +} +export function Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.d.ts b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.d.ts new file mode 100644 index 0000000..69e4fe9 --- /dev/null +++ b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productsv1GetProductInfoStocksByWarehouseFbsResponseResult } from './Productsv1GetProductInfoStocksByWarehouseFbsResponseResult'; +/** + * + * @export + * @interface Productsv1GetProductInfoStocksByWarehouseFbsResponse + */ +export interface Productsv1GetProductInfoStocksByWarehouseFbsResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponse + */ + result?: Array; +} +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsResponse interface. + */ +export declare function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponse(value: object): value is Productsv1GetProductInfoStocksByWarehouseFbsResponse; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON(json: any): Productsv1GetProductInfoStocksByWarehouseFbsResponse; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productsv1GetProductInfoStocksByWarehouseFbsResponse; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseToJSON(value?: Productsv1GetProductInfoStocksByWarehouseFbsResponse | null): any; diff --git a/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.js b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.js new file mode 100644 index 0000000..25160b2 --- /dev/null +++ b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON, Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON, } from './Productsv1GetProductInfoStocksByWarehouseFbsResponseResult'; +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsResponse interface. + */ +export function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponse(value) { + return true; +} +export function Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON(json) { + return Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSONTyped(json, false); +} +export function Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON)), + }; +} +export function Productsv1GetProductInfoStocksByWarehouseFbsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.d.ts b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.d.ts new file mode 100644 index 0000000..0c62474 --- /dev/null +++ b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ +export interface Productsv1GetProductInfoStocksByWarehouseFbsResponseResult { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + sku?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + offer_id?: string; + /** + * Общее количество товара на складе. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + present?: number; + /** + * Идентификатор товара в системе Ozon — артикул. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + product_id?: number; + /** + * Количество зарезервированных товаров на складе. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + reserved?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsResponseResult interface. + */ +export declare function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponseResult(value: object): value is Productsv1GetProductInfoStocksByWarehouseFbsResponseResult; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON(json: any): Productsv1GetProductInfoStocksByWarehouseFbsResponseResult; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productsv1GetProductInfoStocksByWarehouseFbsResponseResult; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON(value?: Productsv1GetProductInfoStocksByWarehouseFbsResponseResult | null): any; diff --git a/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.js b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.js new file mode 100644 index 0000000..fd851d5 --- /dev/null +++ b/dist/esm/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsResponseResult interface. + */ +export function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponseResult(value) { + return true; +} +export function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON(json) { + return Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSONTyped(json, false); +} +export function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'present': json['present'] == null ? undefined : json['present'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'offer_id': value['offer_id'], + 'present': value['present'], + 'product_id': value['product_id'], + 'reserved': value['reserved'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/Productv1ProductImportPicturesRequest.d.ts b/dist/esm/models/Productv1ProductImportPicturesRequest.d.ts new file mode 100644 index 0000000..4e32957 --- /dev/null +++ b/dist/esm/models/Productv1ProductImportPicturesRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productv1ProductImportPicturesRequest + */ +export interface Productv1ProductImportPicturesRequest { + /** + * Маркетинговый цвет. + * @type {string} + * @memberof Productv1ProductImportPicturesRequest + */ + color_image?: string; + /** + * Массив ссылок на изображения. До 30 штук. + * Изображения в массиве расположены в порядке их расположения на сайте. + * Первое изображение в массиве будет главным. + * + * @type {Array} + * @memberof Productv1ProductImportPicturesRequest + */ + images?: Array; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv1ProductImportPicturesRequest + */ + product_id: number; +} +/** + * Check if a given object implements the Productv1ProductImportPicturesRequest interface. + */ +export declare function instanceOfProductv1ProductImportPicturesRequest(value: object): value is Productv1ProductImportPicturesRequest; +export declare function Productv1ProductImportPicturesRequestFromJSON(json: any): Productv1ProductImportPicturesRequest; +export declare function Productv1ProductImportPicturesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv1ProductImportPicturesRequest; +export declare function Productv1ProductImportPicturesRequestToJSON(value?: Productv1ProductImportPicturesRequest | null): any; diff --git a/dist/esm/models/Productv1ProductImportPicturesRequest.js b/dist/esm/models/Productv1ProductImportPicturesRequest.js new file mode 100644 index 0000000..e17a3f5 --- /dev/null +++ b/dist/esm/models/Productv1ProductImportPicturesRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Productv1ProductImportPicturesRequest interface. + */ +export function instanceOfProductv1ProductImportPicturesRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function Productv1ProductImportPicturesRequestFromJSON(json) { + return Productv1ProductImportPicturesRequestFromJSONTyped(json, false); +} +export function Productv1ProductImportPicturesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'color_image': json['color_image'] == null ? undefined : json['color_image'], + 'images': json['images'] == null ? undefined : json['images'], + 'product_id': json['product_id'], + }; +} +export function Productv1ProductImportPicturesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'color_image': value['color_image'], + 'images': value['images'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/Productv1ProductInfoPicturesResponse.d.ts b/dist/esm/models/Productv1ProductInfoPicturesResponse.d.ts new file mode 100644 index 0000000..f52c2a3 --- /dev/null +++ b/dist/esm/models/Productv1ProductInfoPicturesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv1ProductInfoPicturesResponseResult } from './Productv1ProductInfoPicturesResponseResult'; +/** + * + * @export + * @interface Productv1ProductInfoPicturesResponse + */ +export interface Productv1ProductInfoPicturesResponse { + /** + * + * @type {Productv1ProductInfoPicturesResponseResult} + * @memberof Productv1ProductInfoPicturesResponse + */ + result?: Productv1ProductInfoPicturesResponseResult; +} +/** + * Check if a given object implements the Productv1ProductInfoPicturesResponse interface. + */ +export declare function instanceOfProductv1ProductInfoPicturesResponse(value: object): value is Productv1ProductInfoPicturesResponse; +export declare function Productv1ProductInfoPicturesResponseFromJSON(json: any): Productv1ProductInfoPicturesResponse; +export declare function Productv1ProductInfoPicturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv1ProductInfoPicturesResponse; +export declare function Productv1ProductInfoPicturesResponseToJSON(value?: Productv1ProductInfoPicturesResponse | null): any; diff --git a/dist/esm/models/Productv1ProductInfoPicturesResponse.js b/dist/esm/models/Productv1ProductInfoPicturesResponse.js new file mode 100644 index 0000000..e349a9a --- /dev/null +++ b/dist/esm/models/Productv1ProductInfoPicturesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv1ProductInfoPicturesResponseResultFromJSON, Productv1ProductInfoPicturesResponseResultToJSON, } from './Productv1ProductInfoPicturesResponseResult'; +/** + * Check if a given object implements the Productv1ProductInfoPicturesResponse interface. + */ +export function instanceOfProductv1ProductInfoPicturesResponse(value) { + return true; +} +export function Productv1ProductInfoPicturesResponseFromJSON(json) { + return Productv1ProductInfoPicturesResponseFromJSONTyped(json, false); +} +export function Productv1ProductInfoPicturesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : Productv1ProductInfoPicturesResponseResultFromJSON(json['result']), + }; +} +export function Productv1ProductInfoPicturesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': Productv1ProductInfoPicturesResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/Productv1ProductInfoPicturesResponseResult.d.ts b/dist/esm/models/Productv1ProductInfoPicturesResponseResult.d.ts new file mode 100644 index 0000000..b5e7e8c --- /dev/null +++ b/dist/esm/models/Productv1ProductInfoPicturesResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductProductInfoPicturesResponsePicture } from './ProductProductInfoPicturesResponsePicture'; +/** + * Результат работы метода. + * @export + * @interface Productv1ProductInfoPicturesResponseResult + */ +export interface Productv1ProductInfoPicturesResponseResult { + /** + * + * @type {Array} + * @memberof Productv1ProductInfoPicturesResponseResult + */ + pictures?: Array; +} +/** + * Check if a given object implements the Productv1ProductInfoPicturesResponseResult interface. + */ +export declare function instanceOfProductv1ProductInfoPicturesResponseResult(value: object): value is Productv1ProductInfoPicturesResponseResult; +export declare function Productv1ProductInfoPicturesResponseResultFromJSON(json: any): Productv1ProductInfoPicturesResponseResult; +export declare function Productv1ProductInfoPicturesResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv1ProductInfoPicturesResponseResult; +export declare function Productv1ProductInfoPicturesResponseResultToJSON(value?: Productv1ProductInfoPicturesResponseResult | null): any; diff --git a/dist/esm/models/Productv1ProductInfoPicturesResponseResult.js b/dist/esm/models/Productv1ProductInfoPicturesResponseResult.js new file mode 100644 index 0000000..a95d4dc --- /dev/null +++ b/dist/esm/models/Productv1ProductInfoPicturesResponseResult.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductProductInfoPicturesResponsePictureFromJSON, ProductProductInfoPicturesResponsePictureToJSON, } from './ProductProductInfoPicturesResponsePicture'; +/** + * Check if a given object implements the Productv1ProductInfoPicturesResponseResult interface. + */ +export function instanceOfProductv1ProductInfoPicturesResponseResult(value) { + return true; +} +export function Productv1ProductInfoPicturesResponseResultFromJSON(json) { + return Productv1ProductInfoPicturesResponseResultFromJSONTyped(json, false); +} +export function Productv1ProductInfoPicturesResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'pictures': json['pictures'] == null ? undefined : (json['pictures'].map(ProductProductInfoPicturesResponsePictureFromJSON)), + }; +} +export function Productv1ProductInfoPicturesResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'pictures': value['pictures'] == null ? undefined : (value['pictures'].map(ProductProductInfoPicturesResponsePictureToJSON)), + }; +} diff --git a/dist/esm/models/Productv2DeleteProductsRequest.d.ts b/dist/esm/models/Productv2DeleteProductsRequest.d.ts new file mode 100644 index 0000000..db35987 --- /dev/null +++ b/dist/esm/models/Productv2DeleteProductsRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeleteProductsRequestProduct } from './DeleteProductsRequestProduct'; +/** + * + * @export + * @interface Productv2DeleteProductsRequest + */ +export interface Productv2DeleteProductsRequest { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {Array} + * @memberof Productv2DeleteProductsRequest + */ + products: Array; +} +/** + * Check if a given object implements the Productv2DeleteProductsRequest interface. + */ +export declare function instanceOfProductv2DeleteProductsRequest(value: object): value is Productv2DeleteProductsRequest; +export declare function Productv2DeleteProductsRequestFromJSON(json: any): Productv2DeleteProductsRequest; +export declare function Productv2DeleteProductsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2DeleteProductsRequest; +export declare function Productv2DeleteProductsRequestToJSON(value?: Productv2DeleteProductsRequest | null): any; diff --git a/dist/esm/models/Productv2DeleteProductsRequest.js b/dist/esm/models/Productv2DeleteProductsRequest.js new file mode 100644 index 0000000..048d413 --- /dev/null +++ b/dist/esm/models/Productv2DeleteProductsRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeleteProductsRequestProductFromJSON, DeleteProductsRequestProductToJSON, } from './DeleteProductsRequestProduct'; +/** + * Check if a given object implements the Productv2DeleteProductsRequest interface. + */ +export function instanceOfProductv2DeleteProductsRequest(value) { + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +export function Productv2DeleteProductsRequestFromJSON(json) { + return Productv2DeleteProductsRequestFromJSONTyped(json, false); +} +export function Productv2DeleteProductsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': (json['products'].map(DeleteProductsRequestProductFromJSON)), + }; +} +export function Productv2DeleteProductsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': (value['products'].map(DeleteProductsRequestProductToJSON)), + }; +} diff --git a/dist/esm/models/Productv2DeleteProductsResponse.d.ts b/dist/esm/models/Productv2DeleteProductsResponse.d.ts new file mode 100644 index 0000000..6056f8f --- /dev/null +++ b/dist/esm/models/Productv2DeleteProductsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeleteProductsResponseDeleteStatus } from './DeleteProductsResponseDeleteStatus'; +/** + * + * @export + * @interface Productv2DeleteProductsResponse + */ +export interface Productv2DeleteProductsResponse { + /** + * Статус обработки запроса. + * @type {Array} + * @memberof Productv2DeleteProductsResponse + */ + status?: Array; +} +/** + * Check if a given object implements the Productv2DeleteProductsResponse interface. + */ +export declare function instanceOfProductv2DeleteProductsResponse(value: object): value is Productv2DeleteProductsResponse; +export declare function Productv2DeleteProductsResponseFromJSON(json: any): Productv2DeleteProductsResponse; +export declare function Productv2DeleteProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2DeleteProductsResponse; +export declare function Productv2DeleteProductsResponseToJSON(value?: Productv2DeleteProductsResponse | null): any; diff --git a/dist/esm/models/Productv2DeleteProductsResponse.js b/dist/esm/models/Productv2DeleteProductsResponse.js new file mode 100644 index 0000000..3bdb1a8 --- /dev/null +++ b/dist/esm/models/Productv2DeleteProductsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeleteProductsResponseDeleteStatusFromJSON, DeleteProductsResponseDeleteStatusToJSON, } from './DeleteProductsResponseDeleteStatus'; +/** + * Check if a given object implements the Productv2DeleteProductsResponse interface. + */ +export function instanceOfProductv2DeleteProductsResponse(value) { + return true; +} +export function Productv2DeleteProductsResponseFromJSON(json) { + return Productv2DeleteProductsResponseFromJSONTyped(json, false); +} +export function Productv2DeleteProductsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : (json['status'].map(DeleteProductsResponseDeleteStatusFromJSON)), + }; +} +export function Productv2DeleteProductsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': value['status'] == null ? undefined : (value['status'].map(DeleteProductsResponseDeleteStatusToJSON)), + }; +} diff --git a/dist/esm/models/Productv2GetProductListRequestFilterFilterVisibility.d.ts b/dist/esm/models/Productv2GetProductListRequestFilterFilterVisibility.d.ts new file mode 100644 index 0000000..c216d09 --- /dev/null +++ b/dist/esm/models/Productv2GetProductListRequestFilterFilterVisibility.d.ts @@ -0,0 +1,77 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export declare const Productv2GetProductListRequestFilterFilterVisibility: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; + readonly SEASONAL_AUTO_ARCHIVED: "SEASONAL_AUTO_ARCHIVED"; + readonly VISIBLE_WITH_FBO_STOCK: "VISIBLE_WITH_FBO_STOCK"; +}; +export type Productv2GetProductListRequestFilterFilterVisibility = typeof Productv2GetProductListRequestFilterFilterVisibility[keyof typeof Productv2GetProductListRequestFilterFilterVisibility]; +export declare function instanceOfProductv2GetProductListRequestFilterFilterVisibility(value: any): boolean; +export declare function Productv2GetProductListRequestFilterFilterVisibilityFromJSON(json: any): Productv2GetProductListRequestFilterFilterVisibility; +export declare function Productv2GetProductListRequestFilterFilterVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2GetProductListRequestFilterFilterVisibility; +export declare function Productv2GetProductListRequestFilterFilterVisibilityToJSON(value?: Productv2GetProductListRequestFilterFilterVisibility | null): any; diff --git a/dist/esm/models/Productv2GetProductListRequestFilterFilterVisibility.js b/dist/esm/models/Productv2GetProductListRequestFilterFilterVisibility.js new file mode 100644 index 0000000..e964271 --- /dev/null +++ b/dist/esm/models/Productv2GetProductListRequestFilterFilterVisibility.js @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export const Productv2GetProductListRequestFilterFilterVisibility = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED', + SEASONAL_AUTO_ARCHIVED: 'SEASONAL_AUTO_ARCHIVED', + VISIBLE_WITH_FBO_STOCK: 'VISIBLE_WITH_FBO_STOCK' +}; +export function instanceOfProductv2GetProductListRequestFilterFilterVisibility(value) { + for (const key in Productv2GetProductListRequestFilterFilterVisibility) { + if (Object.prototype.hasOwnProperty.call(Productv2GetProductListRequestFilterFilterVisibility, key)) { + if (Productv2GetProductListRequestFilterFilterVisibility[key] === value) { + return true; + } + } + } + return false; +} +export function Productv2GetProductListRequestFilterFilterVisibilityFromJSON(json) { + return Productv2GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, false); +} +export function Productv2GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function Productv2GetProductListRequestFilterFilterVisibilityToJSON(value) { + return value; +} diff --git a/dist/esm/models/Productv2ProductsStocksRequest.d.ts b/dist/esm/models/Productv2ProductsStocksRequest.d.ts new file mode 100644 index 0000000..5c49d5c --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv2ProductsStocksRequestStock } from './Productv2ProductsStocksRequestStock'; +/** + * + * @export + * @interface Productv2ProductsStocksRequest + */ +export interface Productv2ProductsStocksRequest { + /** + * Информация о товарах на складах. + * @type {Array} + * @memberof Productv2ProductsStocksRequest + */ + stocks: Array; +} +/** + * Check if a given object implements the Productv2ProductsStocksRequest interface. + */ +export declare function instanceOfProductv2ProductsStocksRequest(value: object): value is Productv2ProductsStocksRequest; +export declare function Productv2ProductsStocksRequestFromJSON(json: any): Productv2ProductsStocksRequest; +export declare function Productv2ProductsStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksRequest; +export declare function Productv2ProductsStocksRequestToJSON(value?: Productv2ProductsStocksRequest | null): any; diff --git a/dist/esm/models/Productv2ProductsStocksRequest.js b/dist/esm/models/Productv2ProductsStocksRequest.js new file mode 100644 index 0000000..4f30d43 --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv2ProductsStocksRequestStockFromJSON, Productv2ProductsStocksRequestStockToJSON, } from './Productv2ProductsStocksRequestStock'; +/** + * Check if a given object implements the Productv2ProductsStocksRequest interface. + */ +export function instanceOfProductv2ProductsStocksRequest(value) { + if (!('stocks' in value) || value['stocks'] === undefined) + return false; + return true; +} +export function Productv2ProductsStocksRequestFromJSON(json) { + return Productv2ProductsStocksRequestFromJSONTyped(json, false); +} +export function Productv2ProductsStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stocks': (json['stocks'].map(Productv2ProductsStocksRequestStockFromJSON)), + }; +} +export function Productv2ProductsStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'stocks': (value['stocks'].map(Productv2ProductsStocksRequestStockToJSON)), + }; +} diff --git a/dist/esm/models/Productv2ProductsStocksRequestStock.d.ts b/dist/esm/models/Productv2ProductsStocksRequestStock.d.ts new file mode 100644 index 0000000..7c68dfa --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksRequestStock.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productv2ProductsStocksRequestStock + */ +export interface Productv2ProductsStocksRequestStock { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productv2ProductsStocksRequestStock + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv2ProductsStocksRequestStock + */ + product_id: number; + /** + * Количество товара в наличии без учёта зарезервированных товаров. + * @type {number} + * @memberof Productv2ProductsStocksRequestStock + */ + stock: number; + /** + * Идентификатор склада, полученный из метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {number} + * @memberof Productv2ProductsStocksRequestStock + */ + warehouse_id: number; +} +/** + * Check if a given object implements the Productv2ProductsStocksRequestStock interface. + */ +export declare function instanceOfProductv2ProductsStocksRequestStock(value: object): value is Productv2ProductsStocksRequestStock; +export declare function Productv2ProductsStocksRequestStockFromJSON(json: any): Productv2ProductsStocksRequestStock; +export declare function Productv2ProductsStocksRequestStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksRequestStock; +export declare function Productv2ProductsStocksRequestStockToJSON(value?: Productv2ProductsStocksRequestStock | null): any; diff --git a/dist/esm/models/Productv2ProductsStocksRequestStock.js b/dist/esm/models/Productv2ProductsStocksRequestStock.js new file mode 100644 index 0000000..7401318 --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksRequestStock.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Productv2ProductsStocksRequestStock interface. + */ +export function instanceOfProductv2ProductsStocksRequestStock(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('stock' in value) || value['stock'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function Productv2ProductsStocksRequestStockFromJSON(json) { + return Productv2ProductsStocksRequestStockFromJSONTyped(json, false); +} +export function Productv2ProductsStocksRequestStockFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'], + 'stock': json['stock'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function Productv2ProductsStocksRequestStockToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'stock': value['stock'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/Productv2ProductsStocksResponse.d.ts b/dist/esm/models/Productv2ProductsStocksResponse.d.ts new file mode 100644 index 0000000..8a90909 --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv2ProductsStocksResponseResult } from './Productv2ProductsStocksResponseResult'; +/** + * Результаты запроса. + * @export + * @interface Productv2ProductsStocksResponse + */ +export interface Productv2ProductsStocksResponse { + /** + * + * @type {Array} + * @memberof Productv2ProductsStocksResponse + */ + result?: Array; +} +/** + * Check if a given object implements the Productv2ProductsStocksResponse interface. + */ +export declare function instanceOfProductv2ProductsStocksResponse(value: object): value is Productv2ProductsStocksResponse; +export declare function Productv2ProductsStocksResponseFromJSON(json: any): Productv2ProductsStocksResponse; +export declare function Productv2ProductsStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksResponse; +export declare function Productv2ProductsStocksResponseToJSON(value?: Productv2ProductsStocksResponse | null): any; diff --git a/dist/esm/models/Productv2ProductsStocksResponse.js b/dist/esm/models/Productv2ProductsStocksResponse.js new file mode 100644 index 0000000..420e10a --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv2ProductsStocksResponseResultFromJSON, Productv2ProductsStocksResponseResultToJSON, } from './Productv2ProductsStocksResponseResult'; +/** + * Check if a given object implements the Productv2ProductsStocksResponse interface. + */ +export function instanceOfProductv2ProductsStocksResponse(value) { + return true; +} +export function Productv2ProductsStocksResponseFromJSON(json) { + return Productv2ProductsStocksResponseFromJSONTyped(json, false); +} +export function Productv2ProductsStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(Productv2ProductsStocksResponseResultFromJSON)), + }; +} +export function Productv2ProductsStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(Productv2ProductsStocksResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/Productv2ProductsStocksResponseError.d.ts b/dist/esm/models/Productv2ProductsStocksResponseError.d.ts new file mode 100644 index 0000000..4e0a33f --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productv2ProductsStocksResponseError + */ +export interface Productv2ProductsStocksResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof Productv2ProductsStocksResponseError + */ + code?: string; + /** + * Причина ошибки. + * @type {string} + * @memberof Productv2ProductsStocksResponseError + */ + message?: string; +} +/** + * Check if a given object implements the Productv2ProductsStocksResponseError interface. + */ +export declare function instanceOfProductv2ProductsStocksResponseError(value: object): value is Productv2ProductsStocksResponseError; +export declare function Productv2ProductsStocksResponseErrorFromJSON(json: any): Productv2ProductsStocksResponseError; +export declare function Productv2ProductsStocksResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksResponseError; +export declare function Productv2ProductsStocksResponseErrorToJSON(value?: Productv2ProductsStocksResponseError | null): any; diff --git a/dist/esm/models/Productv2ProductsStocksResponseError.js b/dist/esm/models/Productv2ProductsStocksResponseError.js new file mode 100644 index 0000000..28310c4 --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksResponseError.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Productv2ProductsStocksResponseError interface. + */ +export function instanceOfProductv2ProductsStocksResponseError(value) { + return true; +} +export function Productv2ProductsStocksResponseErrorFromJSON(json) { + return Productv2ProductsStocksResponseErrorFromJSONTyped(json, false); +} +export function Productv2ProductsStocksResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function Productv2ProductsStocksResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/Productv2ProductsStocksResponseResult.d.ts b/dist/esm/models/Productv2ProductsStocksResponseResult.d.ts new file mode 100644 index 0000000..8f1ba87 --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksResponseResult.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv2ProductsStocksResponseError } from './Productv2ProductsStocksResponseError'; +/** + * + * @export + * @interface Productv2ProductsStocksResponseResult + */ +export interface Productv2ProductsStocksResponseResult { + /** + * Массив ошибок, которые возникли при обработке запроса. + * @type {Array} + * @memberof Productv2ProductsStocksResponseResult + */ + errors?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productv2ProductsStocksResponseResult + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv2ProductsStocksResponseResult + */ + product_id?: number; + /** + * Если запрос выполнен успешно и остатки обновлены — `true`. + * @type {boolean} + * @memberof Productv2ProductsStocksResponseResult + */ + updated?: boolean; + /** + * Идентификатор склада. + * @type {number} + * @memberof Productv2ProductsStocksResponseResult + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the Productv2ProductsStocksResponseResult interface. + */ +export declare function instanceOfProductv2ProductsStocksResponseResult(value: object): value is Productv2ProductsStocksResponseResult; +export declare function Productv2ProductsStocksResponseResultFromJSON(json: any): Productv2ProductsStocksResponseResult; +export declare function Productv2ProductsStocksResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksResponseResult; +export declare function Productv2ProductsStocksResponseResultToJSON(value?: Productv2ProductsStocksResponseResult | null): any; diff --git a/dist/esm/models/Productv2ProductsStocksResponseResult.js b/dist/esm/models/Productv2ProductsStocksResponseResult.js new file mode 100644 index 0000000..ccff443 --- /dev/null +++ b/dist/esm/models/Productv2ProductsStocksResponseResult.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv2ProductsStocksResponseErrorFromJSON, Productv2ProductsStocksResponseErrorToJSON, } from './Productv2ProductsStocksResponseError'; +/** + * Check if a given object implements the Productv2ProductsStocksResponseResult interface. + */ +export function instanceOfProductv2ProductsStocksResponseResult(value) { + return true; +} +export function Productv2ProductsStocksResponseResultFromJSON(json) { + return Productv2ProductsStocksResponseResultFromJSONTyped(json, false); +} +export function Productv2ProductsStocksResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(Productv2ProductsStocksResponseErrorFromJSON)), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'updated': json['updated'] == null ? undefined : json['updated'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function Productv2ProductsStocksResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(Productv2ProductsStocksResponseErrorToJSON)), + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'updated': value['updated'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/Productv3GetProductListRequest.d.ts b/dist/esm/models/Productv3GetProductListRequest.d.ts new file mode 100644 index 0000000..df7ff03 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListRequest.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListRequestFilter } from './Productv3GetProductListRequestFilter'; +/** + * + * @export + * @interface Productv3GetProductListRequest + */ +export interface Productv3GetProductListRequest { + /** + * + * @type {Productv3GetProductListRequestFilter} + * @memberof Productv3GetProductListRequest + */ + filter?: Productv3GetProductListRequestFilter; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof Productv3GetProductListRequest + */ + last_id?: string; + /** + * Количество значений на странице. Минимум — 1, максимум — 1000. + * @type {number} + * @memberof Productv3GetProductListRequest + */ + limit?: number; +} +/** + * Check if a given object implements the Productv3GetProductListRequest interface. + */ +export declare function instanceOfProductv3GetProductListRequest(value: object): value is Productv3GetProductListRequest; +export declare function Productv3GetProductListRequestFromJSON(json: any): Productv3GetProductListRequest; +export declare function Productv3GetProductListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListRequest; +export declare function Productv3GetProductListRequestToJSON(value?: Productv3GetProductListRequest | null): any; diff --git a/dist/esm/models/Productv3GetProductListRequest.js b/dist/esm/models/Productv3GetProductListRequest.js new file mode 100644 index 0000000..51139f8 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListRequest.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv3GetProductListRequestFilterFromJSON, Productv3GetProductListRequestFilterToJSON, } from './Productv3GetProductListRequestFilter'; +/** + * Check if a given object implements the Productv3GetProductListRequest interface. + */ +export function instanceOfProductv3GetProductListRequest(value) { + return true; +} +export function Productv3GetProductListRequestFromJSON(json) { + return Productv3GetProductListRequestFromJSONTyped(json, false); +} +export function Productv3GetProductListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : Productv3GetProductListRequestFilterFromJSON(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + }; +} +export function Productv3GetProductListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': Productv3GetProductListRequestFilterToJSON(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/Productv3GetProductListRequestFilter.d.ts b/dist/esm/models/Productv3GetProductListRequestFilter.d.ts new file mode 100644 index 0000000..cd78f24 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListRequestFilter.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListRequestFilterFilterVisibility } from './Productv3GetProductListRequestFilterFilterVisibility'; +/** + * Фильтр по товарам. + * @export + * @interface Productv3GetProductListRequestFilter + */ +export interface Productv3GetProductListRequestFilter { + /** + * Фильтр по параметру `offer_id`. Вы можете передавать список значений. + * @type {Array} + * @memberof Productv3GetProductListRequestFilter + */ + offer_id?: Array; + /** + * Фильтр по параметру `product_id`. Вы можете передавать список значений. + * @type {Array} + * @memberof Productv3GetProductListRequestFilter + */ + product_id?: Array; + /** + * Фильтр по параметру `sku`. Вы можете передавать список значений. + * @type {Array} + * @memberof Productv3GetProductListRequestFilter + */ + skus?: Array; + /** + * + * @type {Productv3GetProductListRequestFilterFilterVisibility} + * @memberof Productv3GetProductListRequestFilter + */ + visibility?: Productv3GetProductListRequestFilterFilterVisibility; +} +/** + * Check if a given object implements the Productv3GetProductListRequestFilter interface. + */ +export declare function instanceOfProductv3GetProductListRequestFilter(value: object): value is Productv3GetProductListRequestFilter; +export declare function Productv3GetProductListRequestFilterFromJSON(json: any): Productv3GetProductListRequestFilter; +export declare function Productv3GetProductListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListRequestFilter; +export declare function Productv3GetProductListRequestFilterToJSON(value?: Productv3GetProductListRequestFilter | null): any; diff --git a/dist/esm/models/Productv3GetProductListRequestFilter.js b/dist/esm/models/Productv3GetProductListRequestFilter.js new file mode 100644 index 0000000..18b8ad7 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListRequestFilter.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv3GetProductListRequestFilterFilterVisibilityFromJSON, Productv3GetProductListRequestFilterFilterVisibilityToJSON, } from './Productv3GetProductListRequestFilterFilterVisibility'; +/** + * Check if a given object implements the Productv3GetProductListRequestFilter interface. + */ +export function instanceOfProductv3GetProductListRequestFilter(value) { + return true; +} +export function Productv3GetProductListRequestFilterFromJSON(json) { + return Productv3GetProductListRequestFilterFromJSONTyped(json, false); +} +export function Productv3GetProductListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'skus': json['skus'] == null ? undefined : json['skus'], + 'visibility': json['visibility'] == null ? undefined : Productv3GetProductListRequestFilterFilterVisibilityFromJSON(json['visibility']), + }; +} +export function Productv3GetProductListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'skus': value['skus'], + 'visibility': Productv3GetProductListRequestFilterFilterVisibilityToJSON(value['visibility']), + }; +} diff --git a/dist/esm/models/Productv3GetProductListRequestFilterFilterVisibility.d.ts b/dist/esm/models/Productv3GetProductListRequestFilterFilterVisibility.d.ts new file mode 100644 index 0000000..3b27d0d --- /dev/null +++ b/dist/esm/models/Productv3GetProductListRequestFilterFilterVisibility.d.ts @@ -0,0 +1,77 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export declare const Productv3GetProductListRequestFilterFilterVisibility: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; + readonly SEASONAL_AUTO_ARCHIVED: "SEASONAL_AUTO_ARCHIVED"; + readonly VISIBLE_WITH_FBO_STOCK: "VISIBLE_WITH_FBO_STOCK"; +}; +export type Productv3GetProductListRequestFilterFilterVisibility = typeof Productv3GetProductListRequestFilterFilterVisibility[keyof typeof Productv3GetProductListRequestFilterFilterVisibility]; +export declare function instanceOfProductv3GetProductListRequestFilterFilterVisibility(value: any): boolean; +export declare function Productv3GetProductListRequestFilterFilterVisibilityFromJSON(json: any): Productv3GetProductListRequestFilterFilterVisibility; +export declare function Productv3GetProductListRequestFilterFilterVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListRequestFilterFilterVisibility; +export declare function Productv3GetProductListRequestFilterFilterVisibilityToJSON(value?: Productv3GetProductListRequestFilterFilterVisibility | null): any; diff --git a/dist/esm/models/Productv3GetProductListRequestFilterFilterVisibility.js b/dist/esm/models/Productv3GetProductListRequestFilterFilterVisibility.js new file mode 100644 index 0000000..a20efd7 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListRequestFilterFilterVisibility.js @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export const Productv3GetProductListRequestFilterFilterVisibility = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED', + SEASONAL_AUTO_ARCHIVED: 'SEASONAL_AUTO_ARCHIVED', + VISIBLE_WITH_FBO_STOCK: 'VISIBLE_WITH_FBO_STOCK' +}; +export function instanceOfProductv3GetProductListRequestFilterFilterVisibility(value) { + for (const key in Productv3GetProductListRequestFilterFilterVisibility) { + if (Object.prototype.hasOwnProperty.call(Productv3GetProductListRequestFilterFilterVisibility, key)) { + if (Productv3GetProductListRequestFilterFilterVisibility[key] === value) { + return true; + } + } + } + return false; +} +export function Productv3GetProductListRequestFilterFilterVisibilityFromJSON(json) { + return Productv3GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, false); +} +export function Productv3GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function Productv3GetProductListRequestFilterFilterVisibilityToJSON(value) { + return value; +} diff --git a/dist/esm/models/Productv3GetProductListResponse.d.ts b/dist/esm/models/Productv3GetProductListResponse.d.ts new file mode 100644 index 0000000..fae29c8 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListResponseResult } from './Productv3GetProductListResponseResult'; +/** + * + * @export + * @interface Productv3GetProductListResponse + */ +export interface Productv3GetProductListResponse { + /** + * + * @type {Productv3GetProductListResponseResult} + * @memberof Productv3GetProductListResponse + */ + result?: Productv3GetProductListResponseResult; +} +/** + * Check if a given object implements the Productv3GetProductListResponse interface. + */ +export declare function instanceOfProductv3GetProductListResponse(value: object): value is Productv3GetProductListResponse; +export declare function Productv3GetProductListResponseFromJSON(json: any): Productv3GetProductListResponse; +export declare function Productv3GetProductListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListResponse; +export declare function Productv3GetProductListResponseToJSON(value?: Productv3GetProductListResponse | null): any; diff --git a/dist/esm/models/Productv3GetProductListResponse.js b/dist/esm/models/Productv3GetProductListResponse.js new file mode 100644 index 0000000..7971305 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv3GetProductListResponseResultFromJSON, Productv3GetProductListResponseResultToJSON, } from './Productv3GetProductListResponseResult'; +/** + * Check if a given object implements the Productv3GetProductListResponse interface. + */ +export function instanceOfProductv3GetProductListResponse(value) { + return true; +} +export function Productv3GetProductListResponseFromJSON(json) { + return Productv3GetProductListResponseFromJSONTyped(json, false); +} +export function Productv3GetProductListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : Productv3GetProductListResponseResultFromJSON(json['result']), + }; +} +export function Productv3GetProductListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': Productv3GetProductListResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/Productv3GetProductListResponseItem.d.ts b/dist/esm/models/Productv3GetProductListResponseItem.d.ts new file mode 100644 index 0000000..b848d81 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListResponseItem.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListResponseItemQuant } from './Productv3GetProductListResponseItemQuant'; +/** + * + * @export + * @interface Productv3GetProductListResponseItem + */ +export interface Productv3GetProductListResponseItem { + /** + * Товар в архиве. + * @type {boolean} + * @memberof Productv3GetProductListResponseItem + */ + archived?: boolean; + /** + * Есть остатки на складах FBO. + * @type {boolean} + * @memberof Productv3GetProductListResponseItem + */ + has_fbo_stocks?: boolean; + /** + * Есть остатки на складах FBS. + * @type {boolean} + * @memberof Productv3GetProductListResponseItem + */ + has_fbs_stocks?: boolean; + /** + * Уценённый товар. + * @type {boolean} + * @memberof Productv3GetProductListResponseItem + */ + is_discounted?: boolean; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productv3GetProductListResponseItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv3GetProductListResponseItem + */ + product_id?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof Productv3GetProductListResponseItem + */ + sku?: number; + /** + * Список квантов. + * @type {Array} + * @memberof Productv3GetProductListResponseItem + */ + quants?: Array; +} +/** + * Check if a given object implements the Productv3GetProductListResponseItem interface. + */ +export declare function instanceOfProductv3GetProductListResponseItem(value: object): value is Productv3GetProductListResponseItem; +export declare function Productv3GetProductListResponseItemFromJSON(json: any): Productv3GetProductListResponseItem; +export declare function Productv3GetProductListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListResponseItem; +export declare function Productv3GetProductListResponseItemToJSON(value?: Productv3GetProductListResponseItem | null): any; diff --git a/dist/esm/models/Productv3GetProductListResponseItem.js b/dist/esm/models/Productv3GetProductListResponseItem.js new file mode 100644 index 0000000..acc9082 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListResponseItem.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv3GetProductListResponseItemQuantFromJSON, Productv3GetProductListResponseItemQuantToJSON, } from './Productv3GetProductListResponseItemQuant'; +/** + * Check if a given object implements the Productv3GetProductListResponseItem interface. + */ +export function instanceOfProductv3GetProductListResponseItem(value) { + return true; +} +export function Productv3GetProductListResponseItemFromJSON(json) { + return Productv3GetProductListResponseItemFromJSONTyped(json, false); +} +export function Productv3GetProductListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'archived': json['archived'] == null ? undefined : json['archived'], + 'has_fbo_stocks': json['has_fbo_stocks'] == null ? undefined : json['has_fbo_stocks'], + 'has_fbs_stocks': json['has_fbs_stocks'] == null ? undefined : json['has_fbs_stocks'], + 'is_discounted': json['is_discounted'] == null ? undefined : json['is_discounted'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'quants': json['quants'] == null ? undefined : (json['quants'].map(Productv3GetProductListResponseItemQuantFromJSON)), + }; +} +export function Productv3GetProductListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'archived': value['archived'], + 'has_fbo_stocks': value['has_fbo_stocks'], + 'has_fbs_stocks': value['has_fbs_stocks'], + 'is_discounted': value['is_discounted'], + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + 'quants': value['quants'] == null ? undefined : (value['quants'].map(Productv3GetProductListResponseItemQuantToJSON)), + }; +} diff --git a/dist/esm/models/Productv3GetProductListResponseItemQuant.d.ts b/dist/esm/models/Productv3GetProductListResponseItemQuant.d.ts new file mode 100644 index 0000000..dce777a --- /dev/null +++ b/dist/esm/models/Productv3GetProductListResponseItemQuant.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productv3GetProductListResponseItemQuant + */ +export interface Productv3GetProductListResponseItemQuant { + /** + * Идентификатор эконом-товара. + * @type {string} + * @memberof Productv3GetProductListResponseItemQuant + */ + quant_code?: string; + /** + * Размер кванта. + * @type {number} + * @memberof Productv3GetProductListResponseItemQuant + */ + quant_size?: number; +} +/** + * Check if a given object implements the Productv3GetProductListResponseItemQuant interface. + */ +export declare function instanceOfProductv3GetProductListResponseItemQuant(value: object): value is Productv3GetProductListResponseItemQuant; +export declare function Productv3GetProductListResponseItemQuantFromJSON(json: any): Productv3GetProductListResponseItemQuant; +export declare function Productv3GetProductListResponseItemQuantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListResponseItemQuant; +export declare function Productv3GetProductListResponseItemQuantToJSON(value?: Productv3GetProductListResponseItemQuant | null): any; diff --git a/dist/esm/models/Productv3GetProductListResponseItemQuant.js b/dist/esm/models/Productv3GetProductListResponseItemQuant.js new file mode 100644 index 0000000..6851b33 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListResponseItemQuant.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the Productv3GetProductListResponseItemQuant interface. + */ +export function instanceOfProductv3GetProductListResponseItemQuant(value) { + return true; +} +export function Productv3GetProductListResponseItemQuantFromJSON(json) { + return Productv3GetProductListResponseItemQuantFromJSONTyped(json, false); +} +export function Productv3GetProductListResponseItemQuantFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quant_code': json['quant_code'] == null ? undefined : json['quant_code'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + }; +} +export function Productv3GetProductListResponseItemQuantToJSON(value) { + if (value == null) { + return value; + } + return { + 'quant_code': value['quant_code'], + 'quant_size': value['quant_size'], + }; +} diff --git a/dist/esm/models/Productv3GetProductListResponseResult.d.ts b/dist/esm/models/Productv3GetProductListResponseResult.d.ts new file mode 100644 index 0000000..470d9b6 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListResponseResult.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListResponseItem } from './Productv3GetProductListResponseItem'; +/** + * Результат. + * @export + * @interface Productv3GetProductListResponseResult + */ +export interface Productv3GetProductListResponseResult { + /** + * Список товаров. + * @type {Array} + * @memberof Productv3GetProductListResponseResult + */ + items?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof Productv3GetProductListResponseResult + */ + last_id?: string; + /** + * Всего товаров. + * @type {number} + * @memberof Productv3GetProductListResponseResult + */ + total?: number; +} +/** + * Check if a given object implements the Productv3GetProductListResponseResult interface. + */ +export declare function instanceOfProductv3GetProductListResponseResult(value: object): value is Productv3GetProductListResponseResult; +export declare function Productv3GetProductListResponseResultFromJSON(json: any): Productv3GetProductListResponseResult; +export declare function Productv3GetProductListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListResponseResult; +export declare function Productv3GetProductListResponseResultToJSON(value?: Productv3GetProductListResponseResult | null): any; diff --git a/dist/esm/models/Productv3GetProductListResponseResult.js b/dist/esm/models/Productv3GetProductListResponseResult.js new file mode 100644 index 0000000..0702b83 --- /dev/null +++ b/dist/esm/models/Productv3GetProductListResponseResult.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv3GetProductListResponseItemFromJSON, Productv3GetProductListResponseItemToJSON, } from './Productv3GetProductListResponseItem'; +/** + * Check if a given object implements the Productv3GetProductListResponseResult interface. + */ +export function instanceOfProductv3GetProductListResponseResult(value) { + return true; +} +export function Productv3GetProductListResponseResultFromJSON(json) { + return Productv3GetProductListResponseResultFromJSONTyped(json, false); +} +export function Productv3GetProductListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(Productv3GetProductListResponseItemFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function Productv3GetProductListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(Productv3GetProductListResponseItemToJSON)), + 'last_id': value['last_id'], + 'total': value['total'], + }; +} diff --git a/dist/esm/models/Productv4Filter.d.ts b/dist/esm/models/Productv4Filter.d.ts new file mode 100644 index 0000000..87fa387 --- /dev/null +++ b/dist/esm/models/Productv4Filter.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv2GetProductListRequestFilterFilterVisibility } from './Productv2GetProductListRequestFilterFilterVisibility'; +/** + * Фильтр по товарам. + * @export + * @interface Productv4Filter + */ +export interface Productv4Filter { + /** + * Фильтр по параметру `offer_id`. Можно передавать список значений. + * @type {Array} + * @memberof Productv4Filter + */ + offer_id?: Array; + /** + * Фильтр по параметру `product_id`. Можно передавать до 1000 значений. + * @type {Array} + * @memberof Productv4Filter + */ + product_id?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof Productv4Filter + */ + sku?: Array; + /** + * + * @type {Productv2GetProductListRequestFilterFilterVisibility} + * @memberof Productv4Filter + */ + visibility?: Productv2GetProductListRequestFilterFilterVisibility; +} +/** + * Check if a given object implements the Productv4Filter interface. + */ +export declare function instanceOfProductv4Filter(value: object): value is Productv4Filter; +export declare function Productv4FilterFromJSON(json: any): Productv4Filter; +export declare function Productv4FilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv4Filter; +export declare function Productv4FilterToJSON(value?: Productv4Filter | null): any; diff --git a/dist/esm/models/Productv4Filter.js b/dist/esm/models/Productv4Filter.js new file mode 100644 index 0000000..020c5f4 --- /dev/null +++ b/dist/esm/models/Productv4Filter.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv2GetProductListRequestFilterFilterVisibilityFromJSON, Productv2GetProductListRequestFilterFilterVisibilityToJSON, } from './Productv2GetProductListRequestFilterFilterVisibility'; +/** + * Check if a given object implements the Productv4Filter interface. + */ +export function instanceOfProductv4Filter(value) { + return true; +} +export function Productv4FilterFromJSON(json) { + return Productv4FilterFromJSONTyped(json, false); +} +export function Productv4FilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'visibility': json['visibility'] == null ? undefined : Productv2GetProductListRequestFilterFilterVisibilityFromJSON(json['visibility']), + }; +} +export function Productv4FilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + 'visibility': Productv2GetProductListRequestFilterFilterVisibilityToJSON(value['visibility']), + }; +} diff --git a/dist/esm/models/Productv4GetProductAttributesV4Request.d.ts b/dist/esm/models/Productv4GetProductAttributesV4Request.d.ts new file mode 100644 index 0000000..8f320ee --- /dev/null +++ b/dist/esm/models/Productv4GetProductAttributesV4Request.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv4Filter } from './Productv4Filter'; +/** + * + * @export + * @interface Productv4GetProductAttributesV4Request + */ +export interface Productv4GetProductAttributesV4Request { + /** + * + * @type {Productv4Filter} + * @memberof Productv4GetProductAttributesV4Request + */ + filter?: Productv4Filter; + /** + * Идентификатор последнего значения на странице. Оставьте это поле пустым при выполнении первого запроса. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4Request + */ + last_id?: string; + /** + * Количество значений на странице. + * @type {number} + * @memberof Productv4GetProductAttributesV4Request + */ + limit?: number; + /** + * Параметр, по которому товары будут отсортированы: + * - `sku` — сортировка по идентификатору товара в системе Ozon; + * - `offer_id` — сортировка по артикулу товара; + * - `id` — сортировка по идентификатору товара; + * - `title` — сортировка по названию товара. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4Request + */ + sort_by?: string; + /** + * Направление сортировки: + * - `asc` — по возрастанию, + * - `desc` — по убыванию. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4Request + */ + sort_dir?: string; +} +/** + * Check if a given object implements the Productv4GetProductAttributesV4Request interface. + */ +export declare function instanceOfProductv4GetProductAttributesV4Request(value: object): value is Productv4GetProductAttributesV4Request; +export declare function Productv4GetProductAttributesV4RequestFromJSON(json: any): Productv4GetProductAttributesV4Request; +export declare function Productv4GetProductAttributesV4RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv4GetProductAttributesV4Request; +export declare function Productv4GetProductAttributesV4RequestToJSON(value?: Productv4GetProductAttributesV4Request | null): any; diff --git a/dist/esm/models/Productv4GetProductAttributesV4Request.js b/dist/esm/models/Productv4GetProductAttributesV4Request.js new file mode 100644 index 0000000..e397625 --- /dev/null +++ b/dist/esm/models/Productv4GetProductAttributesV4Request.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv4FilterFromJSON, Productv4FilterToJSON, } from './Productv4Filter'; +/** + * Check if a given object implements the Productv4GetProductAttributesV4Request interface. + */ +export function instanceOfProductv4GetProductAttributesV4Request(value) { + return true; +} +export function Productv4GetProductAttributesV4RequestFromJSON(json) { + return Productv4GetProductAttributesV4RequestFromJSONTyped(json, false); +} +export function Productv4GetProductAttributesV4RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : Productv4FilterFromJSON(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_by': json['sort_by'] == null ? undefined : json['sort_by'], + 'sort_dir': json['sort_dir'] == null ? undefined : json['sort_dir'], + }; +} +export function Productv4GetProductAttributesV4RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': Productv4FilterToJSON(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_by': value['sort_by'], + 'sort_dir': value['sort_dir'], + }; +} diff --git a/dist/esm/models/Productv4GetProductAttributesV4Response.d.ts b/dist/esm/models/Productv4GetProductAttributesV4Response.d.ts new file mode 100644 index 0000000..c424e80 --- /dev/null +++ b/dist/esm/models/Productv4GetProductAttributesV4Response.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv4GetProductAttributesV4ResponseResult } from './Productv4GetProductAttributesV4ResponseResult'; +/** + * + * @export + * @interface Productv4GetProductAttributesV4Response + */ +export interface Productv4GetProductAttributesV4Response { + /** + * Результаты запроса. + * @type {Array} + * @memberof Productv4GetProductAttributesV4Response + */ + result?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, укажите полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4Response + */ + last_id?: string; + /** + * Количество товаров в списке. + * @type {string} + * @memberof Productv4GetProductAttributesV4Response + */ + total?: string; +} +/** + * Check if a given object implements the Productv4GetProductAttributesV4Response interface. + */ +export declare function instanceOfProductv4GetProductAttributesV4Response(value: object): value is Productv4GetProductAttributesV4Response; +export declare function Productv4GetProductAttributesV4ResponseFromJSON(json: any): Productv4GetProductAttributesV4Response; +export declare function Productv4GetProductAttributesV4ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv4GetProductAttributesV4Response; +export declare function Productv4GetProductAttributesV4ResponseToJSON(value?: Productv4GetProductAttributesV4Response | null): any; diff --git a/dist/esm/models/Productv4GetProductAttributesV4Response.js b/dist/esm/models/Productv4GetProductAttributesV4Response.js new file mode 100644 index 0000000..b31dbeb --- /dev/null +++ b/dist/esm/models/Productv4GetProductAttributesV4Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv4GetProductAttributesV4ResponseResultFromJSON, Productv4GetProductAttributesV4ResponseResultToJSON, } from './Productv4GetProductAttributesV4ResponseResult'; +/** + * Check if a given object implements the Productv4GetProductAttributesV4Response interface. + */ +export function instanceOfProductv4GetProductAttributesV4Response(value) { + return true; +} +export function Productv4GetProductAttributesV4ResponseFromJSON(json) { + return Productv4GetProductAttributesV4ResponseFromJSONTyped(json, false); +} +export function Productv4GetProductAttributesV4ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(Productv4GetProductAttributesV4ResponseResultFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function Productv4GetProductAttributesV4ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(Productv4GetProductAttributesV4ResponseResultToJSON)), + 'last_id': value['last_id'], + 'total': value['total'], + }; +} diff --git a/dist/esm/models/Productv4GetProductAttributesV4ResponseResult.d.ts b/dist/esm/models/Productv4GetProductAttributesV4ResponseResult.d.ts new file mode 100644 index 0000000..c08841d --- /dev/null +++ b/dist/esm/models/Productv4GetProductAttributesV4ResponseResult.d.ts @@ -0,0 +1,168 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetProductAttributesV4ResponseAttribute } from './ProductGetProductAttributesV4ResponseAttribute'; +import type { V4GetProductAttributesResponseModelInfo } from './V4GetProductAttributesResponseModelInfo'; +import type { V4GetProductAttributesResponsePdf } from './V4GetProductAttributesResponsePdf'; +import type { GetProductAttributesV4ResponseAttribute } from './GetProductAttributesV4ResponseAttribute'; +import type { GetProductAttributesResponseImage } from './GetProductAttributesResponseImage'; +/** + * + * @export + * @interface Productv4GetProductAttributesV4ResponseResult + */ +export interface Productv4GetProductAttributesV4ResponseResult { + /** + * Список характеристик товара. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + attributes?: Array; + /** + * Список идентификаторов характеристик со значением по умолчанию. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + attributes_with_defaults?: Array; + /** + * Штрихкод. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + barcode?: string; + /** + * Все штрихкоды товара. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + barcodes?: Array; + /** + * Идентификатор категории. + * Используйте его с методами [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) и [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + description_category_id?: number; + /** + * Маркетинговый цвет. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + color_image?: string; + /** + * Массив вложенных характеристик. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + complex_attributes?: Array; + /** + * Глубина. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + depth?: number; + /** + * Единица измерения габаритов: + * - `mm` — миллиметры, + * - `cm` — сантиметры, + * - `in` — дюймы. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + dimension_unit?: string; + /** + * Высота упаковки. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + height?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + id?: number; + /** + * Массив ссылок на изображения товара. Порядок изображений аналогичен порядку в карточке товаров. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + images?: Array; + /** + * + * @type {V4GetProductAttributesResponseModelInfo} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + model_info?: V4GetProductAttributesResponseModelInfo; + /** + * Название товара. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + offer_id?: string; + /** + * Массив PDF-файлов. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + pdf_list?: Array; + /** + * Ссылка на главное изображение товара. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + primary_image?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + sku?: string; + /** + * Идентификатор типа товара. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + type_id?: number; + /** + * Вес товара в упаковке. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + weight?: number; + /** + * Единица измерения веса. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + weight_unit?: string; + /** + * Ширина упаковки. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + width?: number; +} +/** + * Check if a given object implements the Productv4GetProductAttributesV4ResponseResult interface. + */ +export declare function instanceOfProductv4GetProductAttributesV4ResponseResult(value: object): value is Productv4GetProductAttributesV4ResponseResult; +export declare function Productv4GetProductAttributesV4ResponseResultFromJSON(json: any): Productv4GetProductAttributesV4ResponseResult; +export declare function Productv4GetProductAttributesV4ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv4GetProductAttributesV4ResponseResult; +export declare function Productv4GetProductAttributesV4ResponseResultToJSON(value?: Productv4GetProductAttributesV4ResponseResult | null): any; diff --git a/dist/esm/models/Productv4GetProductAttributesV4ResponseResult.js b/dist/esm/models/Productv4GetProductAttributesV4ResponseResult.js new file mode 100644 index 0000000..312d8cd --- /dev/null +++ b/dist/esm/models/Productv4GetProductAttributesV4ResponseResult.js @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductGetProductAttributesV4ResponseAttributeFromJSON, ProductGetProductAttributesV4ResponseAttributeToJSON, } from './ProductGetProductAttributesV4ResponseAttribute'; +import { V4GetProductAttributesResponseModelInfoFromJSON, V4GetProductAttributesResponseModelInfoToJSON, } from './V4GetProductAttributesResponseModelInfo'; +import { V4GetProductAttributesResponsePdfFromJSON, V4GetProductAttributesResponsePdfToJSON, } from './V4GetProductAttributesResponsePdf'; +import { GetProductAttributesV4ResponseAttributeFromJSON, GetProductAttributesV4ResponseAttributeToJSON, } from './GetProductAttributesV4ResponseAttribute'; +import { GetProductAttributesResponseImageFromJSON, GetProductAttributesResponseImageToJSON, } from './GetProductAttributesResponseImage'; +/** + * Check if a given object implements the Productv4GetProductAttributesV4ResponseResult interface. + */ +export function instanceOfProductv4GetProductAttributesV4ResponseResult(value) { + return true; +} +export function Productv4GetProductAttributesV4ResponseResultFromJSON(json) { + return Productv4GetProductAttributesV4ResponseResultFromJSONTyped(json, false); +} +export function Productv4GetProductAttributesV4ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(ProductGetProductAttributesV4ResponseAttributeFromJSON)), + 'attributes_with_defaults': json['attributes_with_defaults'] == null ? undefined : json['attributes_with_defaults'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'description_category_id': json['description_category_id'] == null ? undefined : json['description_category_id'], + 'color_image': json['color_image'] == null ? undefined : json['color_image'], + 'complex_attributes': json['complex_attributes'] == null ? undefined : (json['complex_attributes'].map(GetProductAttributesV4ResponseAttributeFromJSON)), + 'depth': json['depth'] == null ? undefined : json['depth'], + 'dimension_unit': json['dimension_unit'] == null ? undefined : json['dimension_unit'], + 'height': json['height'] == null ? undefined : json['height'], + 'id': json['id'] == null ? undefined : json['id'], + 'images': json['images'] == null ? undefined : (json['images'].map(GetProductAttributesResponseImageFromJSON)), + 'model_info': json['model_info'] == null ? undefined : V4GetProductAttributesResponseModelInfoFromJSON(json['model_info']), + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'pdf_list': json['pdf_list'] == null ? undefined : (json['pdf_list'].map(V4GetProductAttributesResponsePdfFromJSON)), + 'primary_image': json['primary_image'] == null ? undefined : json['primary_image'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'weight_unit': json['weight_unit'] == null ? undefined : json['weight_unit'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function Productv4GetProductAttributesV4ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(ProductGetProductAttributesV4ResponseAttributeToJSON)), + 'attributes_with_defaults': value['attributes_with_defaults'], + 'barcode': value['barcode'], + 'barcodes': value['barcodes'], + 'description_category_id': value['description_category_id'], + 'color_image': value['color_image'], + 'complex_attributes': value['complex_attributes'] == null ? undefined : (value['complex_attributes'].map(GetProductAttributesV4ResponseAttributeToJSON)), + 'depth': value['depth'], + 'dimension_unit': value['dimension_unit'], + 'height': value['height'], + 'id': value['id'], + 'images': value['images'] == null ? undefined : (value['images'].map(GetProductAttributesResponseImageToJSON)), + 'model_info': V4GetProductAttributesResponseModelInfoToJSON(value['model_info']), + 'name': value['name'], + 'offer_id': value['offer_id'], + 'pdf_list': value['pdf_list'] == null ? undefined : (value['pdf_list'].map(V4GetProductAttributesResponsePdfToJSON)), + 'primary_image': value['primary_image'], + 'sku': value['sku'], + 'type_id': value['type_id'], + 'weight': value['weight'], + 'weight_unit': value['weight_unit'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/Productv5Filter.d.ts b/dist/esm/models/Productv5Filter.d.ts new file mode 100644 index 0000000..fb57c86 --- /dev/null +++ b/dist/esm/models/Productv5Filter.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv5GetProductListRequestFilterFilterVisibility } from './Productv5GetProductListRequestFilterFilterVisibility'; +/** + * Фильтр по товарам. + * @export + * @interface Productv5Filter + */ +export interface Productv5Filter { + /** + * Фильтр по параметру `offer_id`. Можно передавать до 1000 значений. + * @type {Array} + * @memberof Productv5Filter + */ + offer_id?: Array; + /** + * Фильтр по параметру `product_id`. Можно передавать до 1000 значений. + * @type {Array} + * @memberof Productv5Filter + */ + product_id?: Array; + /** + * + * @type {Productv5GetProductListRequestFilterFilterVisibility} + * @memberof Productv5Filter + */ + visibility?: Productv5GetProductListRequestFilterFilterVisibility; +} +/** + * Check if a given object implements the Productv5Filter interface. + */ +export declare function instanceOfProductv5Filter(value: object): value is Productv5Filter; +export declare function Productv5FilterFromJSON(json: any): Productv5Filter; +export declare function Productv5FilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv5Filter; +export declare function Productv5FilterToJSON(value?: Productv5Filter | null): any; diff --git a/dist/esm/models/Productv5Filter.js b/dist/esm/models/Productv5Filter.js new file mode 100644 index 0000000..457abda --- /dev/null +++ b/dist/esm/models/Productv5Filter.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv5GetProductListRequestFilterFilterVisibilityFromJSON, Productv5GetProductListRequestFilterFilterVisibilityToJSON, } from './Productv5GetProductListRequestFilterFilterVisibility'; +/** + * Check if a given object implements the Productv5Filter interface. + */ +export function instanceOfProductv5Filter(value) { + return true; +} +export function Productv5FilterFromJSON(json) { + return Productv5FilterFromJSONTyped(json, false); +} +export function Productv5FilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'visibility': json['visibility'] == null ? undefined : Productv5GetProductListRequestFilterFilterVisibilityFromJSON(json['visibility']), + }; +} +export function Productv5FilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'visibility': Productv5GetProductListRequestFilterFilterVisibilityToJSON(value['visibility']), + }; +} diff --git a/dist/esm/models/Productv5GetProductInfoPricesV5Request.d.ts b/dist/esm/models/Productv5GetProductInfoPricesV5Request.d.ts new file mode 100644 index 0000000..938510e --- /dev/null +++ b/dist/esm/models/Productv5GetProductInfoPricesV5Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv5Filter } from './Productv5Filter'; +/** + * + * @export + * @interface Productv5GetProductInfoPricesV5Request + */ +export interface Productv5GetProductInfoPricesV5Request { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof Productv5GetProductInfoPricesV5Request + */ + cursor?: string; + /** + * + * @type {Productv5Filter} + * @memberof Productv5GetProductInfoPricesV5Request + */ + filter: Productv5Filter; + /** + * Количество значений на странице. + * @type {number} + * @memberof Productv5GetProductInfoPricesV5Request + */ + limit: number; +} +/** + * Check if a given object implements the Productv5GetProductInfoPricesV5Request interface. + */ +export declare function instanceOfProductv5GetProductInfoPricesV5Request(value: object): value is Productv5GetProductInfoPricesV5Request; +export declare function Productv5GetProductInfoPricesV5RequestFromJSON(json: any): Productv5GetProductInfoPricesV5Request; +export declare function Productv5GetProductInfoPricesV5RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv5GetProductInfoPricesV5Request; +export declare function Productv5GetProductInfoPricesV5RequestToJSON(value?: Productv5GetProductInfoPricesV5Request | null): any; diff --git a/dist/esm/models/Productv5GetProductInfoPricesV5Request.js b/dist/esm/models/Productv5GetProductInfoPricesV5Request.js new file mode 100644 index 0000000..368bd8d --- /dev/null +++ b/dist/esm/models/Productv5GetProductInfoPricesV5Request.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Productv5FilterFromJSON, Productv5FilterToJSON, } from './Productv5Filter'; +/** + * Check if a given object implements the Productv5GetProductInfoPricesV5Request interface. + */ +export function instanceOfProductv5GetProductInfoPricesV5Request(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function Productv5GetProductInfoPricesV5RequestFromJSON(json) { + return Productv5GetProductInfoPricesV5RequestFromJSONTyped(json, false); +} +export function Productv5GetProductInfoPricesV5RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': Productv5FilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function Productv5GetProductInfoPricesV5RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': Productv5FilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/Productv5GetProductInfoPricesV5Response.d.ts b/dist/esm/models/Productv5GetProductInfoPricesV5Response.d.ts new file mode 100644 index 0000000..d0c8473 --- /dev/null +++ b/dist/esm/models/Productv5GetProductInfoPricesV5Response.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetProductInfoPricesV5ResponseItem } from './ProductGetProductInfoPricesV5ResponseItem'; +/** + * + * @export + * @interface Productv5GetProductInfoPricesV5Response + */ +export interface Productv5GetProductInfoPricesV5Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof Productv5GetProductInfoPricesV5Response + */ + cursor?: string; + /** + * Список товаров. + * @type {Array} + * @memberof Productv5GetProductInfoPricesV5Response + */ + items?: Array; + /** + * Количество товаров в списке. + * @type {number} + * @memberof Productv5GetProductInfoPricesV5Response + */ + total?: number; +} +/** + * Check if a given object implements the Productv5GetProductInfoPricesV5Response interface. + */ +export declare function instanceOfProductv5GetProductInfoPricesV5Response(value: object): value is Productv5GetProductInfoPricesV5Response; +export declare function Productv5GetProductInfoPricesV5ResponseFromJSON(json: any): Productv5GetProductInfoPricesV5Response; +export declare function Productv5GetProductInfoPricesV5ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv5GetProductInfoPricesV5Response; +export declare function Productv5GetProductInfoPricesV5ResponseToJSON(value?: Productv5GetProductInfoPricesV5Response | null): any; diff --git a/dist/esm/models/Productv5GetProductInfoPricesV5Response.js b/dist/esm/models/Productv5GetProductInfoPricesV5Response.js new file mode 100644 index 0000000..3df80a4 --- /dev/null +++ b/dist/esm/models/Productv5GetProductInfoPricesV5Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductGetProductInfoPricesV5ResponseItemFromJSON, ProductGetProductInfoPricesV5ResponseItemToJSON, } from './ProductGetProductInfoPricesV5ResponseItem'; +/** + * Check if a given object implements the Productv5GetProductInfoPricesV5Response interface. + */ +export function instanceOfProductv5GetProductInfoPricesV5Response(value) { + return true; +} +export function Productv5GetProductInfoPricesV5ResponseFromJSON(json) { + return Productv5GetProductInfoPricesV5ResponseFromJSONTyped(json, false); +} +export function Productv5GetProductInfoPricesV5ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'items': json['items'] == null ? undefined : (json['items'].map(ProductGetProductInfoPricesV5ResponseItemFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function Productv5GetProductInfoPricesV5ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'items': value['items'] == null ? undefined : (value['items'].map(ProductGetProductInfoPricesV5ResponseItemToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/Productv5GetProductListRequestFilterFilterVisibility.d.ts b/dist/esm/models/Productv5GetProductListRequestFilterFilterVisibility.d.ts new file mode 100644 index 0000000..e66e5f4 --- /dev/null +++ b/dist/esm/models/Productv5GetProductListRequestFilterFilterVisibility.d.ts @@ -0,0 +1,77 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export declare const Productv5GetProductListRequestFilterFilterVisibility: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; + readonly SEASONAL_AUTO_ARCHIVED: "SEASONAL_AUTO_ARCHIVED"; + readonly VISIBLE_WITH_FBO_STOCK: "VISIBLE_WITH_FBO_STOCK"; +}; +export type Productv5GetProductListRequestFilterFilterVisibility = typeof Productv5GetProductListRequestFilterFilterVisibility[keyof typeof Productv5GetProductListRequestFilterFilterVisibility]; +export declare function instanceOfProductv5GetProductListRequestFilterFilterVisibility(value: any): boolean; +export declare function Productv5GetProductListRequestFilterFilterVisibilityFromJSON(json: any): Productv5GetProductListRequestFilterFilterVisibility; +export declare function Productv5GetProductListRequestFilterFilterVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv5GetProductListRequestFilterFilterVisibility; +export declare function Productv5GetProductListRequestFilterFilterVisibilityToJSON(value?: Productv5GetProductListRequestFilterFilterVisibility | null): any; diff --git a/dist/esm/models/Productv5GetProductListRequestFilterFilterVisibility.js b/dist/esm/models/Productv5GetProductListRequestFilterFilterVisibility.js new file mode 100644 index 0000000..cbe1eac --- /dev/null +++ b/dist/esm/models/Productv5GetProductListRequestFilterFilterVisibility.js @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export const Productv5GetProductListRequestFilterFilterVisibility = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED', + SEASONAL_AUTO_ARCHIVED: 'SEASONAL_AUTO_ARCHIVED', + VISIBLE_WITH_FBO_STOCK: 'VISIBLE_WITH_FBO_STOCK' +}; +export function instanceOfProductv5GetProductListRequestFilterFilterVisibility(value) { + for (const key in Productv5GetProductListRequestFilterFilterVisibility) { + if (Object.prototype.hasOwnProperty.call(Productv5GetProductListRequestFilterFilterVisibility, key)) { + if (Productv5GetProductListRequestFilterFilterVisibility[key] === value) { + return true; + } + } + } + return false; +} +export function Productv5GetProductListRequestFilterFilterVisibilityFromJSON(json) { + return Productv5GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, false); +} +export function Productv5GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function Productv5GetProductListRequestFilterFilterVisibilityToJSON(value) { + return value; +} diff --git a/dist/esm/models/ProtobufAny.d.ts b/dist/esm/models/ProtobufAny.d.ts new file mode 100644 index 0000000..8dc18c6 --- /dev/null +++ b/dist/esm/models/ProtobufAny.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProtobufAny + */ +export interface ProtobufAny { + /** + * Тип протокола передачи данных. + * @type {string} + * @memberof ProtobufAny + */ + typeUrl?: string; + /** + * Значение ошибки. + * @type {string} + * @memberof ProtobufAny + */ + value?: string; +} +/** + * Check if a given object implements the ProtobufAny interface. + */ +export declare function instanceOfProtobufAny(value: object): value is ProtobufAny; +export declare function ProtobufAnyFromJSON(json: any): ProtobufAny; +export declare function ProtobufAnyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProtobufAny; +export declare function ProtobufAnyToJSON(value?: ProtobufAny | null): any; diff --git a/dist/esm/models/ProtobufAny.js b/dist/esm/models/ProtobufAny.js new file mode 100644 index 0000000..b58cf63 --- /dev/null +++ b/dist/esm/models/ProtobufAny.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProtobufAny interface. + */ +export function instanceOfProtobufAny(value) { + return true; +} +export function ProtobufAnyFromJSON(json) { + return ProtobufAnyFromJSONTyped(json, false); +} +export function ProtobufAnyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'typeUrl': json['typeUrl'] == null ? undefined : json['typeUrl'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ProtobufAnyToJSON(value) { + if (value == null) { + return value; + } + return { + 'typeUrl': value['typeUrl'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ProtobufAnyV2DeliveryCheckout.d.ts b/dist/esm/models/ProtobufAnyV2DeliveryCheckout.d.ts new file mode 100644 index 0000000..0654ad3 --- /dev/null +++ b/dist/esm/models/ProtobufAnyV2DeliveryCheckout.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProtobufAnyV2DeliveryCheckout + */ +export interface ProtobufAnyV2DeliveryCheckout { + /** + * Тип протокола передачи данных. + * @type {string} + * @memberof ProtobufAnyV2DeliveryCheckout + */ + type?: string; + /** + * Идентификатор ошибки: + * + * `USER_DELIVERY_UNAVAILABLE` — нельзя доставить товары этому покупателю. + * + * @type {string} + * @memberof ProtobufAnyV2DeliveryCheckout + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof ProtobufAnyV2DeliveryCheckout + */ + message?: string; +} +/** + * Check if a given object implements the ProtobufAnyV2DeliveryCheckout interface. + */ +export declare function instanceOfProtobufAnyV2DeliveryCheckout(value: object): value is ProtobufAnyV2DeliveryCheckout; +export declare function ProtobufAnyV2DeliveryCheckoutFromJSON(json: any): ProtobufAnyV2DeliveryCheckout; +export declare function ProtobufAnyV2DeliveryCheckoutFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProtobufAnyV2DeliveryCheckout; +export declare function ProtobufAnyV2DeliveryCheckoutToJSON(value?: ProtobufAnyV2DeliveryCheckout | null): any; diff --git a/dist/esm/models/ProtobufAnyV2DeliveryCheckout.js b/dist/esm/models/ProtobufAnyV2DeliveryCheckout.js new file mode 100644 index 0000000..0849448 --- /dev/null +++ b/dist/esm/models/ProtobufAnyV2DeliveryCheckout.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ProtobufAnyV2DeliveryCheckout interface. + */ +export function instanceOfProtobufAnyV2DeliveryCheckout(value) { + return true; +} +export function ProtobufAnyV2DeliveryCheckoutFromJSON(json) { + return ProtobufAnyV2DeliveryCheckoutFromJSONTyped(json, false); +} +export function ProtobufAnyV2DeliveryCheckoutFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['@type'] == null ? undefined : json['@type'], + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function ProtobufAnyV2DeliveryCheckoutToJSON(value) { + if (value == null) { + return value; + } + return { + '@type': value['type'], + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/QuestionV1GetQuestionListRequestSortDirEnum.d.ts b/dist/esm/models/QuestionV1GetQuestionListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..d068cbc --- /dev/null +++ b/dist/esm/models/QuestionV1GetQuestionListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESC` — по убыванию; + * - `ASC` — по возрастанию. + * + * @export + */ +export declare const QuestionV1GetQuestionListRequestSortDirEnum: { + readonly DESC: "DESC"; + readonly ASC: "ASC"; +}; +export type QuestionV1GetQuestionListRequestSortDirEnum = typeof QuestionV1GetQuestionListRequestSortDirEnum[keyof typeof QuestionV1GetQuestionListRequestSortDirEnum]; +export declare function instanceOfQuestionV1GetQuestionListRequestSortDirEnum(value: any): boolean; +export declare function QuestionV1GetQuestionListRequestSortDirEnumFromJSON(json: any): QuestionV1GetQuestionListRequestSortDirEnum; +export declare function QuestionV1GetQuestionListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionV1GetQuestionListRequestSortDirEnum; +export declare function QuestionV1GetQuestionListRequestSortDirEnumToJSON(value?: QuestionV1GetQuestionListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/QuestionV1GetQuestionListRequestSortDirEnum.js b/dist/esm/models/QuestionV1GetQuestionListRequestSortDirEnum.js new file mode 100644 index 0000000..f477179 --- /dev/null +++ b/dist/esm/models/QuestionV1GetQuestionListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESC` — по убыванию; + * - `ASC` — по возрастанию. + * + * @export + */ +export const QuestionV1GetQuestionListRequestSortDirEnum = { + DESC: 'DESC', + ASC: 'ASC' +}; +export function instanceOfQuestionV1GetQuestionListRequestSortDirEnum(value) { + for (const key in QuestionV1GetQuestionListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(QuestionV1GetQuestionListRequestSortDirEnum, key)) { + if (QuestionV1GetQuestionListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function QuestionV1GetQuestionListRequestSortDirEnumFromJSON(json) { + return QuestionV1GetQuestionListRequestSortDirEnumFromJSONTyped(json, false); +} +export function QuestionV1GetQuestionListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function QuestionV1GetQuestionListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.d.ts b/dist/esm/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.d.ts new file mode 100644 index 0000000..0af4915 --- /dev/null +++ b/dist/esm/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус публикации ответа: + * - `PUBLISHED` — опубликован; + * - `AWAITING_MODERATION` — ожидает модерации; + * - `MODERATION_FAILED` — модерация не пройдена; + * - `DUPLICATE` — дубль. + * + * @export + */ +export declare const QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum: { + readonly PUBLISHED: "PUBLISHED"; + readonly AWAITING_MODERATION: "AWAITING_MODERATION"; + readonly MODERATION_FAILED: "MODERATION_FAILED"; + readonly DUPLICATE: "DUPLICATE"; +}; +export type QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum = typeof QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum[keyof typeof QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum]; +export declare function instanceOfQuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum(value: any): boolean; +export declare function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON(json: any): QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum; +export declare function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum; +export declare function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON(value?: QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum | null): any; diff --git a/dist/esm/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.js b/dist/esm/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.js new file mode 100644 index 0000000..c5dd614 --- /dev/null +++ b/dist/esm/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус публикации ответа: + * - `PUBLISHED` — опубликован; + * - `AWAITING_MODERATION` — ожидает модерации; + * - `MODERATION_FAILED` — модерация не пройдена; + * - `DUPLICATE` — дубль. + * + * @export + */ +export const QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum = { + PUBLISHED: 'PUBLISHED', + AWAITING_MODERATION: 'AWAITING_MODERATION', + MODERATION_FAILED: 'MODERATION_FAILED', + DUPLICATE: 'DUPLICATE' +}; +export function instanceOfQuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum(value) { + for (const key in QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum) { + if (Object.prototype.hasOwnProperty.call(QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum, key)) { + if (QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum[key] === value) { + return true; + } + } + } + return false; +} +export function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON(json) { + return QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSONTyped(json, false); +} +export function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/RatingItemChange.d.ts b/dist/esm/models/RatingItemChange.d.ts new file mode 100644 index 0000000..c7687e1 --- /dev/null +++ b/dist/esm/models/RatingItemChange.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Изменение рейтинга: отношение предыдущего значения к текущему. + * + * @export + * @interface RatingItemChange + */ +export interface RatingItemChange { + /** + * Как изменилось значение рейтинга: + * - `DIRECTION_UNKNOWN` — не определено. + * - `DIRECTION_NONE` — не изменилось. + * - `DIRECTION_RISE` — выросло. + * - `DIRECTION_FALL` — упало. + * + * @type {string} + * @memberof RatingItemChange + */ + direction?: string; + /** + * Что означает изменение: + * - `MEANING_UNKNOWN` — неизвестно. + * - `MEANING_NONE` — нейтрально. + * - `MEANING_GOOD` — показатель улучшается, всё хорошо. + * - `MEANING_BAD` — показатель падает, нужно что-то сделать. + * + * @type {string} + * @memberof RatingItemChange + */ + meaning?: string; +} +/** + * Check if a given object implements the RatingItemChange interface. + */ +export declare function instanceOfRatingItemChange(value: object): value is RatingItemChange; +export declare function RatingItemChangeFromJSON(json: any): RatingItemChange; +export declare function RatingItemChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingItemChange; +export declare function RatingItemChangeToJSON(value?: RatingItemChange | null): any; diff --git a/dist/esm/models/RatingItemChange.js b/dist/esm/models/RatingItemChange.js new file mode 100644 index 0000000..332f6c5 --- /dev/null +++ b/dist/esm/models/RatingItemChange.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RatingItemChange interface. + */ +export function instanceOfRatingItemChange(value) { + return true; +} +export function RatingItemChangeFromJSON(json) { + return RatingItemChangeFromJSONTyped(json, false); +} +export function RatingItemChangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'direction': json['direction'] == null ? undefined : json['direction'], + 'meaning': json['meaning'] == null ? undefined : json['meaning'], + }; +} +export function RatingItemChangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'direction': value['direction'], + 'meaning': value['meaning'], + }; +} diff --git a/dist/esm/models/RatingStatusEnum.d.ts b/dist/esm/models/RatingStatusEnum.d.ts new file mode 100644 index 0000000..5600c1f --- /dev/null +++ b/dist/esm/models/RatingStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус рейтинга: + * - `UNKNOWN` — не определён; + * - `OK` — хороший; + * - `WARNING` — показатели требуют внимания; + * - `CRITICAL` — критичный. + * + * @export + */ +export declare const RatingStatusEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly OK: "OK"; + readonly WARNING: "WARNING"; + readonly CRITICAL: "CRITICAL"; +}; +export type RatingStatusEnum = typeof RatingStatusEnum[keyof typeof RatingStatusEnum]; +export declare function instanceOfRatingStatusEnum(value: any): boolean; +export declare function RatingStatusEnumFromJSON(json: any): RatingStatusEnum; +export declare function RatingStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingStatusEnum; +export declare function RatingStatusEnumToJSON(value?: RatingStatusEnum | null): any; diff --git a/dist/esm/models/RatingStatusEnum.js b/dist/esm/models/RatingStatusEnum.js new file mode 100644 index 0000000..c2cdbc9 --- /dev/null +++ b/dist/esm/models/RatingStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус рейтинга: + * - `UNKNOWN` — не определён; + * - `OK` — хороший; + * - `WARNING` — показатели требуют внимания; + * - `CRITICAL` — критичный. + * + * @export + */ +export const RatingStatusEnum = { + UNKNOWN: 'UNKNOWN', + OK: 'OK', + WARNING: 'WARNING', + CRITICAL: 'CRITICAL' +}; +export function instanceOfRatingStatusEnum(value) { + for (const key in RatingStatusEnum) { + if (Object.prototype.hasOwnProperty.call(RatingStatusEnum, key)) { + if (RatingStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function RatingStatusEnumFromJSON(json) { + return RatingStatusEnumFromJSONTyped(json, false); +} +export function RatingStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function RatingStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/RatingSummaryV1ResponseGroup.d.ts b/dist/esm/models/RatingSummaryV1ResponseGroup.d.ts new file mode 100644 index 0000000..09b4601 --- /dev/null +++ b/dist/esm/models/RatingSummaryV1ResponseGroup.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1RatingItem } from './V1RatingItem'; +/** + * + * @export + * @interface RatingSummaryV1ResponseGroup + */ +export interface RatingSummaryV1ResponseGroup { + /** + * Название группы рейтингов. + * @type {string} + * @memberof RatingSummaryV1ResponseGroup + */ + group_name?: string; + /** + * Список рейтингов. + * @type {Array} + * @memberof RatingSummaryV1ResponseGroup + */ + items?: Array; +} +/** + * Check if a given object implements the RatingSummaryV1ResponseGroup interface. + */ +export declare function instanceOfRatingSummaryV1ResponseGroup(value: object): value is RatingSummaryV1ResponseGroup; +export declare function RatingSummaryV1ResponseGroupFromJSON(json: any): RatingSummaryV1ResponseGroup; +export declare function RatingSummaryV1ResponseGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingSummaryV1ResponseGroup; +export declare function RatingSummaryV1ResponseGroupToJSON(value?: RatingSummaryV1ResponseGroup | null): any; diff --git a/dist/esm/models/RatingSummaryV1ResponseGroup.js b/dist/esm/models/RatingSummaryV1ResponseGroup.js new file mode 100644 index 0000000..8ed92cd --- /dev/null +++ b/dist/esm/models/RatingSummaryV1ResponseGroup.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1RatingItemFromJSON, V1RatingItemToJSON, } from './V1RatingItem'; +/** + * Check if a given object implements the RatingSummaryV1ResponseGroup interface. + */ +export function instanceOfRatingSummaryV1ResponseGroup(value) { + return true; +} +export function RatingSummaryV1ResponseGroupFromJSON(json) { + return RatingSummaryV1ResponseGroupFromJSONTyped(json, false); +} +export function RatingSummaryV1ResponseGroupFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'group_name': json['group_name'] == null ? undefined : json['group_name'], + 'items': json['items'] == null ? undefined : (json['items'].map(V1RatingItemFromJSON)), + }; +} +export function RatingSummaryV1ResponseGroupToJSON(value) { + if (value == null) { + return value; + } + return { + 'group_name': value['group_name'], + 'items': value['items'] == null ? undefined : (value['items'].map(V1RatingItemToJSON)), + }; +} diff --git a/dist/esm/models/RatingSummaryV1ResponseLocalIndex.d.ts b/dist/esm/models/RatingSummaryV1ResponseLocalIndex.d.ts new file mode 100644 index 0000000..d85ea8e --- /dev/null +++ b/dist/esm/models/RatingSummaryV1ResponseLocalIndex.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RatingSummaryV1ResponseLocalIndex + */ +export interface RatingSummaryV1ResponseLocalIndex { + /** + * Дата расчёта индекса локализации. + * @type {string} + * @memberof RatingSummaryV1ResponseLocalIndex + */ + calculation_date?: string; + /** + * Значение индекса локализации. + * @type {number} + * @memberof RatingSummaryV1ResponseLocalIndex + */ + localization_percentage?: number; +} +/** + * Check if a given object implements the RatingSummaryV1ResponseLocalIndex interface. + */ +export declare function instanceOfRatingSummaryV1ResponseLocalIndex(value: object): value is RatingSummaryV1ResponseLocalIndex; +export declare function RatingSummaryV1ResponseLocalIndexFromJSON(json: any): RatingSummaryV1ResponseLocalIndex; +export declare function RatingSummaryV1ResponseLocalIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingSummaryV1ResponseLocalIndex; +export declare function RatingSummaryV1ResponseLocalIndexToJSON(value?: RatingSummaryV1ResponseLocalIndex | null): any; diff --git a/dist/esm/models/RatingSummaryV1ResponseLocalIndex.js b/dist/esm/models/RatingSummaryV1ResponseLocalIndex.js new file mode 100644 index 0000000..3d2972d --- /dev/null +++ b/dist/esm/models/RatingSummaryV1ResponseLocalIndex.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RatingSummaryV1ResponseLocalIndex interface. + */ +export function instanceOfRatingSummaryV1ResponseLocalIndex(value) { + return true; +} +export function RatingSummaryV1ResponseLocalIndexFromJSON(json) { + return RatingSummaryV1ResponseLocalIndexFromJSONTyped(json, false); +} +export function RatingSummaryV1ResponseLocalIndexFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calculation_date': json['calculation_date'] == null ? undefined : json['calculation_date'], + 'localization_percentage': json['localization_percentage'] == null ? undefined : json['localization_percentage'], + }; +} +export function RatingSummaryV1ResponseLocalIndexToJSON(value) { + if (value == null) { + return value; + } + return { + 'calculation_date': value['calculation_date'], + 'localization_percentage': value['localization_percentage'], + }; +} diff --git a/dist/esm/models/RatingValue.d.ts b/dist/esm/models/RatingValue.d.ts new file mode 100644 index 0000000..ae3130f --- /dev/null +++ b/dist/esm/models/RatingValue.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1RatingStatus } from './V1RatingStatus'; +/** + * + * @export + * @interface RatingValue + */ +export interface RatingValue { + /** + * Дата начала подсчёта рейтинга. + * @type {string} + * @memberof RatingValue + */ + date_from?: string; + /** + * Дата конца подсчёта рейтинга. + * @type {string} + * @memberof RatingValue + */ + date_to?: string; + /** + * + * @type {V1RatingStatus} + * @memberof RatingValue + */ + status?: V1RatingStatus; + /** + * Значение рейтинга. + * @type {number} + * @memberof RatingValue + */ + value?: number; +} +/** + * Check if a given object implements the RatingValue interface. + */ +export declare function instanceOfRatingValue(value: object): value is RatingValue; +export declare function RatingValueFromJSON(json: any): RatingValue; +export declare function RatingValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingValue; +export declare function RatingValueToJSON(value?: RatingValue | null): any; diff --git a/dist/esm/models/RatingValue.js b/dist/esm/models/RatingValue.js new file mode 100644 index 0000000..6d123e0 --- /dev/null +++ b/dist/esm/models/RatingValue.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1RatingStatusFromJSON, V1RatingStatusToJSON, } from './V1RatingStatus'; +/** + * Check if a given object implements the RatingValue interface. + */ +export function instanceOfRatingValue(value) { + return true; +} +export function RatingValueFromJSON(json) { + return RatingValueFromJSONTyped(json, false); +} +export function RatingValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'status': json['status'] == null ? undefined : V1RatingStatusFromJSON(json['status']), + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function RatingValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'status': V1RatingStatusToJSON(value['status']), + 'value': value['value'], + }; +} diff --git a/dist/esm/models/RatingValueCurrent.d.ts b/dist/esm/models/RatingValueCurrent.d.ts new file mode 100644 index 0000000..8e708a3 --- /dev/null +++ b/dist/esm/models/RatingValueCurrent.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1RatingStatus } from './V1RatingStatus'; +/** + * Значение рейтинга. + * @export + * @interface RatingValueCurrent + */ +export interface RatingValueCurrent { + /** + * Дата начала подсчёта рейтинга. + * @type {string} + * @memberof RatingValueCurrent + */ + date_from?: string; + /** + * Дата конца подсчёта рейтинга. + * @type {string} + * @memberof RatingValueCurrent + */ + date_to?: string; + /** + * Отформатированное значение рейтинга. + * @type {string} + * @memberof RatingValueCurrent + */ + formatted?: string; + /** + * + * @type {V1RatingStatus} + * @memberof RatingValueCurrent + */ + status?: V1RatingStatus; + /** + * Значение рейтинга в системе. + * @type {number} + * @memberof RatingValueCurrent + */ + value?: number; +} +/** + * Check if a given object implements the RatingValueCurrent interface. + */ +export declare function instanceOfRatingValueCurrent(value: object): value is RatingValueCurrent; +export declare function RatingValueCurrentFromJSON(json: any): RatingValueCurrent; +export declare function RatingValueCurrentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingValueCurrent; +export declare function RatingValueCurrentToJSON(value?: RatingValueCurrent | null): any; diff --git a/dist/esm/models/RatingValueCurrent.js b/dist/esm/models/RatingValueCurrent.js new file mode 100644 index 0000000..a8f9d83 --- /dev/null +++ b/dist/esm/models/RatingValueCurrent.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1RatingStatusFromJSON, V1RatingStatusToJSON, } from './V1RatingStatus'; +/** + * Check if a given object implements the RatingValueCurrent interface. + */ +export function instanceOfRatingValueCurrent(value) { + return true; +} +export function RatingValueCurrentFromJSON(json) { + return RatingValueCurrentFromJSONTyped(json, false); +} +export function RatingValueCurrentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'formatted': json['formatted'] == null ? undefined : json['formatted'], + 'status': json['status'] == null ? undefined : V1RatingStatusFromJSON(json['status']), + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function RatingValueCurrentToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'formatted': value['formatted'], + 'status': V1RatingStatusToJSON(value['status']), + 'value': value['value'], + }; +} diff --git a/dist/esm/models/RatingValuePast.d.ts b/dist/esm/models/RatingValuePast.d.ts new file mode 100644 index 0000000..65e514d --- /dev/null +++ b/dist/esm/models/RatingValuePast.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1RatingStatus } from './V1RatingStatus'; +/** + * Предыдущее значение рейтинга. + * @export + * @interface RatingValuePast + */ +export interface RatingValuePast { + /** + * Дата начала подсчёта рейтинга. + * @type {string} + * @memberof RatingValuePast + */ + date_from?: string; + /** + * Дата конца подсчёта рейтинга. + * @type {string} + * @memberof RatingValuePast + */ + date_to?: string; + /** + * Отформатированное значение рейтинга. + * @type {string} + * @memberof RatingValuePast + */ + formatted?: string; + /** + * + * @type {V1RatingStatus} + * @memberof RatingValuePast + */ + status?: V1RatingStatus; + /** + * Значение рейтинга в системе. + * @type {number} + * @memberof RatingValuePast + */ + value?: number; +} +/** + * Check if a given object implements the RatingValuePast interface. + */ +export declare function instanceOfRatingValuePast(value: object): value is RatingValuePast; +export declare function RatingValuePastFromJSON(json: any): RatingValuePast; +export declare function RatingValuePastFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingValuePast; +export declare function RatingValuePastToJSON(value?: RatingValuePast | null): any; diff --git a/dist/esm/models/RatingValuePast.js b/dist/esm/models/RatingValuePast.js new file mode 100644 index 0000000..de19ad6 --- /dev/null +++ b/dist/esm/models/RatingValuePast.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1RatingStatusFromJSON, V1RatingStatusToJSON, } from './V1RatingStatus'; +/** + * Check if a given object implements the RatingValuePast interface. + */ +export function instanceOfRatingValuePast(value) { + return true; +} +export function RatingValuePastFromJSON(json) { + return RatingValuePastFromJSONTyped(json, false); +} +export function RatingValuePastFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'formatted': json['formatted'] == null ? undefined : json['formatted'], + 'status': json['status'] == null ? undefined : V1RatingStatusFromJSON(json['status']), + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function RatingValuePastToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'formatted': value['formatted'], + 'status': V1RatingStatusToJSON(value['status']), + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ReasonHumanText.d.ts b/dist/esm/models/ReasonHumanText.d.ts new file mode 100644 index 0000000..ed0cfc0 --- /dev/null +++ b/dist/esm/models/ReasonHumanText.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о причине. + * @export + * @interface ReasonHumanText + */ +export interface ReasonHumanText { + /** + * Описание причины. + * @type {string} + * @memberof ReasonHumanText + */ + text?: string; +} +/** + * Check if a given object implements the ReasonHumanText interface. + */ +export declare function instanceOfReasonHumanText(value: object): value is ReasonHumanText; +export declare function ReasonHumanTextFromJSON(json: any): ReasonHumanText; +export declare function ReasonHumanTextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReasonHumanText; +export declare function ReasonHumanTextToJSON(value?: ReasonHumanText | null): any; diff --git a/dist/esm/models/ReasonHumanText.js b/dist/esm/models/ReasonHumanText.js new file mode 100644 index 0000000..1eee479 --- /dev/null +++ b/dist/esm/models/ReasonHumanText.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReasonHumanText interface. + */ +export function instanceOfReasonHumanText(value) { + return true; +} +export function ReasonHumanTextFromJSON(json) { + return ReasonHumanTextFromJSONTyped(json, false); +} +export function ReasonHumanTextFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'text': json['text'] == null ? undefined : json['text'], + }; +} +export function ReasonHumanTextToJSON(value) { + if (value == null) { + return value; + } + return { + 'text': value['text'], + }; +} diff --git a/dist/esm/models/ReceiptsSellerListResponseReceipt.d.ts b/dist/esm/models/ReceiptsSellerListResponseReceipt.d.ts new file mode 100644 index 0000000..3df586f --- /dev/null +++ b/dist/esm/models/ReceiptsSellerListResponseReceipt.d.ts @@ -0,0 +1,81 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReceiptsSellerListResponseReceiptOperationTypeEnum } from './ReceiptsSellerListResponseReceiptOperationTypeEnum'; +import type { ReceiptsSellerListResponseReceiptTypeEnum } from './ReceiptsSellerListResponseReceiptTypeEnum'; +/** + * + * @export + * @interface ReceiptsSellerListResponseReceipt + */ +export interface ReceiptsSellerListResponseReceipt { + /** + * Дата создания чека. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + created_at?: string; + /** + * + * @type {ReceiptsSellerListResponseReceiptOperationTypeEnum} + * @memberof ReceiptsSellerListResponseReceipt + */ + operation_type?: ReceiptsSellerListResponseReceiptOperationTypeEnum; + /** + * Идентификатор заказа. + * @type {number} + * @memberof ReceiptsSellerListResponseReceipt + */ + order_id?: number; + /** + * Идентификатор родительского чека. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + parent_receipt_id?: string; + /** + * Номера отправлений. + * @type {Array} + * @memberof ReceiptsSellerListResponseReceipt + */ + posting_numbers?: Array; + /** + * Идентификатор чека. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + receipt_id?: string; + /** + * Номер чека. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + receipt_number?: string; + /** + * + * @type {ReceiptsSellerListResponseReceiptTypeEnum} + * @memberof ReceiptsSellerListResponseReceipt + */ + type?: ReceiptsSellerListResponseReceiptTypeEnum; + /** + * Дата обновления. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + updated_at?: string; +} +/** + * Check if a given object implements the ReceiptsSellerListResponseReceipt interface. + */ +export declare function instanceOfReceiptsSellerListResponseReceipt(value: object): value is ReceiptsSellerListResponseReceipt; +export declare function ReceiptsSellerListResponseReceiptFromJSON(json: any): ReceiptsSellerListResponseReceipt; +export declare function ReceiptsSellerListResponseReceiptFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReceiptsSellerListResponseReceipt; +export declare function ReceiptsSellerListResponseReceiptToJSON(value?: ReceiptsSellerListResponseReceipt | null): any; diff --git a/dist/esm/models/ReceiptsSellerListResponseReceipt.js b/dist/esm/models/ReceiptsSellerListResponseReceipt.js new file mode 100644 index 0000000..38df625 --- /dev/null +++ b/dist/esm/models/ReceiptsSellerListResponseReceipt.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON, ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON, } from './ReceiptsSellerListResponseReceiptOperationTypeEnum'; +import { ReceiptsSellerListResponseReceiptTypeEnumFromJSON, ReceiptsSellerListResponseReceiptTypeEnumToJSON, } from './ReceiptsSellerListResponseReceiptTypeEnum'; +/** + * Check if a given object implements the ReceiptsSellerListResponseReceipt interface. + */ +export function instanceOfReceiptsSellerListResponseReceipt(value) { + return true; +} +export function ReceiptsSellerListResponseReceiptFromJSON(json) { + return ReceiptsSellerListResponseReceiptFromJSONTyped(json, false); +} +export function ReceiptsSellerListResponseReceiptFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'operation_type': json['operation_type'] == null ? undefined : ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON(json['operation_type']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'parent_receipt_id': json['parent_receipt_id'] == null ? undefined : json['parent_receipt_id'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'receipt_id': json['receipt_id'] == null ? undefined : json['receipt_id'], + 'receipt_number': json['receipt_number'] == null ? undefined : json['receipt_number'], + 'type': json['type'] == null ? undefined : ReceiptsSellerListResponseReceiptTypeEnumFromJSON(json['type']), + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + }; +} +export function ReceiptsSellerListResponseReceiptToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'operation_type': ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON(value['operation_type']), + 'order_id': value['order_id'], + 'parent_receipt_id': value['parent_receipt_id'], + 'posting_numbers': value['posting_numbers'], + 'receipt_id': value['receipt_id'], + 'receipt_number': value['receipt_number'], + 'type': ReceiptsSellerListResponseReceiptTypeEnumToJSON(value['type']), + 'updated_at': value['updated_at'], + }; +} diff --git a/dist/esm/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.d.ts b/dist/esm/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.d.ts new file mode 100644 index 0000000..49e708a --- /dev/null +++ b/dist/esm/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `UNSPECIFIED` — не определён; + * - `COMMODITY` — товарная операция. + * + * @export + */ +export declare const ReceiptsSellerListResponseReceiptOperationTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly COMMODITY: "COMMODITY"; +}; +export type ReceiptsSellerListResponseReceiptOperationTypeEnum = typeof ReceiptsSellerListResponseReceiptOperationTypeEnum[keyof typeof ReceiptsSellerListResponseReceiptOperationTypeEnum]; +export declare function instanceOfReceiptsSellerListResponseReceiptOperationTypeEnum(value: any): boolean; +export declare function ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON(json: any): ReceiptsSellerListResponseReceiptOperationTypeEnum; +export declare function ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReceiptsSellerListResponseReceiptOperationTypeEnum; +export declare function ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON(value?: ReceiptsSellerListResponseReceiptOperationTypeEnum | null): any; diff --git a/dist/esm/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.js b/dist/esm/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.js new file mode 100644 index 0000000..9773323 --- /dev/null +++ b/dist/esm/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `UNSPECIFIED` — не определён; + * - `COMMODITY` — товарная операция. + * + * @export + */ +export const ReceiptsSellerListResponseReceiptOperationTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + COMMODITY: 'COMMODITY' +}; +export function instanceOfReceiptsSellerListResponseReceiptOperationTypeEnum(value) { + for (const key in ReceiptsSellerListResponseReceiptOperationTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ReceiptsSellerListResponseReceiptOperationTypeEnum, key)) { + if (ReceiptsSellerListResponseReceiptOperationTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON(json) { + return ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSONTyped(json, false); +} +export function ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReceiptsSellerListResponseReceiptTypeEnum.d.ts b/dist/esm/models/ReceiptsSellerListResponseReceiptTypeEnum.d.ts new file mode 100644 index 0000000..af24466 --- /dev/null +++ b/dist/esm/models/ReceiptsSellerListResponseReceiptTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чека: + * - `UNSPECIFIED` — не определён; + * - `INCOMING` — чек реализации; + * - `REFUND` — чек возврата. + * + * @export + */ +export declare const ReceiptsSellerListResponseReceiptTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INCOMING: "INCOMING"; + readonly REFUND: "REFUND"; +}; +export type ReceiptsSellerListResponseReceiptTypeEnum = typeof ReceiptsSellerListResponseReceiptTypeEnum[keyof typeof ReceiptsSellerListResponseReceiptTypeEnum]; +export declare function instanceOfReceiptsSellerListResponseReceiptTypeEnum(value: any): boolean; +export declare function ReceiptsSellerListResponseReceiptTypeEnumFromJSON(json: any): ReceiptsSellerListResponseReceiptTypeEnum; +export declare function ReceiptsSellerListResponseReceiptTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReceiptsSellerListResponseReceiptTypeEnum; +export declare function ReceiptsSellerListResponseReceiptTypeEnumToJSON(value?: ReceiptsSellerListResponseReceiptTypeEnum | null): any; diff --git a/dist/esm/models/ReceiptsSellerListResponseReceiptTypeEnum.js b/dist/esm/models/ReceiptsSellerListResponseReceiptTypeEnum.js new file mode 100644 index 0000000..5c2aef7 --- /dev/null +++ b/dist/esm/models/ReceiptsSellerListResponseReceiptTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чека: + * - `UNSPECIFIED` — не определён; + * - `INCOMING` — чек реализации; + * - `REFUND` — чек возврата. + * + * @export + */ +export const ReceiptsSellerListResponseReceiptTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INCOMING: 'INCOMING', + REFUND: 'REFUND' +}; +export function instanceOfReceiptsSellerListResponseReceiptTypeEnum(value) { + for (const key in ReceiptsSellerListResponseReceiptTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ReceiptsSellerListResponseReceiptTypeEnum, key)) { + if (ReceiptsSellerListResponseReceiptTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReceiptsSellerListResponseReceiptTypeEnumFromJSON(json) { + return ReceiptsSellerListResponseReceiptTypeEnumFromJSONTyped(json, false); +} +export function ReceiptsSellerListResponseReceiptTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReceiptsSellerListResponseReceiptTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/RejectedItemsReasonEnum.d.ts b/dist/esm/models/RejectedItemsReasonEnum.d.ts new file mode 100644 index 0000000..799f21d --- /dev/null +++ b/dist/esm/models/RejectedItemsReasonEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const RejectedItemsReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OUT_OF_ASSORTMENT: "OUT_OF_ASSORTMENT"; + readonly INVALID: "INVALID"; + readonly INCOMPATIBLE_WAREHOUSE: "INCOMPATIBLE_WAREHOUSE"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly EMPTY_PS_ATTRIBUTE: "EMPTY_PS_ATTRIBUTE"; + readonly MULTIPLICITY: "MULTIPLICITY"; + readonly NO_PRICE: "NO_PRICE"; + readonly INVALID_ITEM_COUNT_MAX: "INVALID_ITEM_COUNT_MAX"; + readonly INVALID_ITEM_COUNT_ZERO: "INVALID_ITEM_COUNT_ZERO"; + readonly SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS: "SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS"; + readonly SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED"; + readonly SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED"; + readonly SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED: "SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED"; + readonly SKU_IS_RESTRICTED: "SKU_IS_RESTRICTED"; + readonly EMPTY_CLUSTER: "EMPTY_CLUSTER"; + readonly SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED"; + readonly CORRUPTED_ASSORTMENT: "CORRUPTED_ASSORTMENT"; + readonly STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN: "STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN"; + readonly STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN: "STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN"; + readonly TRACEABLE_SKU_HAS_NO_GTIN_BARCODE: "TRACEABLE_SKU_HAS_NO_GTIN_BARCODE"; + readonly TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY: "TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY"; + readonly SKU_HAS_INVALID_HS_CODE: "SKU_HAS_INVALID_HS_CODE"; + readonly SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS: "SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type RejectedItemsReasonEnum = typeof RejectedItemsReasonEnum[keyof typeof RejectedItemsReasonEnum]; +export declare function instanceOfRejectedItemsReasonEnum(value: any): boolean; +export declare function RejectedItemsReasonEnumFromJSON(json: any): RejectedItemsReasonEnum; +export declare function RejectedItemsReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectedItemsReasonEnum; +export declare function RejectedItemsReasonEnumToJSON(value?: RejectedItemsReasonEnum | null): any; diff --git a/dist/esm/models/RejectedItemsReasonEnum.js b/dist/esm/models/RejectedItemsReasonEnum.js new file mode 100644 index 0000000..004ff5b --- /dev/null +++ b/dist/esm/models/RejectedItemsReasonEnum.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const RejectedItemsReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OUT_OF_ASSORTMENT: 'OUT_OF_ASSORTMENT', + INVALID: 'INVALID', + INCOMPATIBLE_WAREHOUSE: 'INCOMPATIBLE_WAREHOUSE', + EMPTY_BARCODE: 'EMPTY_BARCODE', + EMPTY_PS_ATTRIBUTE: 'EMPTY_PS_ATTRIBUTE', + MULTIPLICITY: 'MULTIPLICITY', + NO_PRICE: 'NO_PRICE', + INVALID_ITEM_COUNT_MAX: 'INVALID_ITEM_COUNT_MAX', + INVALID_ITEM_COUNT_ZERO: 'INVALID_ITEM_COUNT_ZERO', + SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS: 'SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS', + SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED', + SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED', + SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED: 'SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED', + SKU_IS_RESTRICTED: 'SKU_IS_RESTRICTED', + EMPTY_CLUSTER: 'EMPTY_CLUSTER', + SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED', + CORRUPTED_ASSORTMENT: 'CORRUPTED_ASSORTMENT', + STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN: 'STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN', + STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN: 'STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN', + TRACEABLE_SKU_HAS_NO_GTIN_BARCODE: 'TRACEABLE_SKU_HAS_NO_GTIN_BARCODE', + TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY: 'TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY', + SKU_HAS_INVALID_HS_CODE: 'SKU_HAS_INVALID_HS_CODE', + SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS: 'SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfRejectedItemsReasonEnum(value) { + for (const key in RejectedItemsReasonEnum) { + if (Object.prototype.hasOwnProperty.call(RejectedItemsReasonEnum, key)) { + if (RejectedItemsReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function RejectedItemsReasonEnumFromJSON(json) { + return RejectedItemsReasonEnumFromJSONTyped(json, false); +} +export function RejectedItemsReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function RejectedItemsReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/RejectedItemsRejectionReasonEnum.d.ts b/dist/esm/models/RejectedItemsRejectionReasonEnum.d.ts new file mode 100644 index 0000000..4dcaa74 --- /dev/null +++ b/dist/esm/models/RejectedItemsRejectionReasonEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const RejectedItemsRejectionReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNKNOWN: "UNKNOWN"; + readonly OUT_OF_ASSORTMENT: "OUT_OF_ASSORTMENT"; + readonly INVALID: "INVALID"; + readonly INCOMPATIBLE_WAREHOUSE: "INCOMPATIBLE_WAREHOUSE"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly EMPTY_PS_ATTRIBUTE: "EMPTY_PS_ATTRIBUTE"; + readonly MULTIPLICITY: "MULTIPLICITY"; + readonly NO_PRICE: "NO_PRICE"; + readonly INVALID_ITEM_COUNT_MAX: "INVALID_ITEM_COUNT_MAX"; + readonly INVALID_ITEM_COUNT_ZERO: "INVALID_ITEM_COUNT_ZERO"; + readonly INCOMPATIBLE_SHIPMENT_TYPE: "INCOMPATIBLE_SHIPMENT_TYPE"; + readonly ECONOM_QUANT_IS_NOT_FROZEN: "ECONOM_QUANT_IS_NOT_FROZEN"; + readonly QUANTITY_NOT_MULTIPLE_BY_QUANT: "QUANTITY_NOT_MULTIPLE_BY_QUANT"; + readonly INVALID_QUANT_VALUE: "INVALID_QUANT_VALUE"; + readonly JEWELRY_FORBIDDEN_FOR_ECONOM: "JEWELRY_FORBIDDEN_FOR_ECONOM"; + readonly NON_UNIQUE_ECONOM_ITEM_IN_REQUEST: "NON_UNIQUE_ECONOM_ITEM_IN_REQUEST"; + readonly NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE: "NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE"; + readonly SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS: "SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS"; + readonly SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED"; + readonly SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED"; + readonly SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED: "SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED"; + readonly EMPTY_CLUSTER: "EMPTY_CLUSTER"; + readonly SKU_IS_RESTRICTED: "SKU_IS_RESTRICTED"; + readonly SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED"; +}; +export type RejectedItemsRejectionReasonEnum = typeof RejectedItemsRejectionReasonEnum[keyof typeof RejectedItemsRejectionReasonEnum]; +export declare function instanceOfRejectedItemsRejectionReasonEnum(value: any): boolean; +export declare function RejectedItemsRejectionReasonEnumFromJSON(json: any): RejectedItemsRejectionReasonEnum; +export declare function RejectedItemsRejectionReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectedItemsRejectionReasonEnum; +export declare function RejectedItemsRejectionReasonEnumToJSON(value?: RejectedItemsRejectionReasonEnum | null): any; diff --git a/dist/esm/models/RejectedItemsRejectionReasonEnum.js b/dist/esm/models/RejectedItemsRejectionReasonEnum.js new file mode 100644 index 0000000..b40d1af --- /dev/null +++ b/dist/esm/models/RejectedItemsRejectionReasonEnum.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const RejectedItemsRejectionReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNKNOWN: 'UNKNOWN', + OUT_OF_ASSORTMENT: 'OUT_OF_ASSORTMENT', + INVALID: 'INVALID', + INCOMPATIBLE_WAREHOUSE: 'INCOMPATIBLE_WAREHOUSE', + EMPTY_BARCODE: 'EMPTY_BARCODE', + EMPTY_PS_ATTRIBUTE: 'EMPTY_PS_ATTRIBUTE', + MULTIPLICITY: 'MULTIPLICITY', + NO_PRICE: 'NO_PRICE', + INVALID_ITEM_COUNT_MAX: 'INVALID_ITEM_COUNT_MAX', + INVALID_ITEM_COUNT_ZERO: 'INVALID_ITEM_COUNT_ZERO', + INCOMPATIBLE_SHIPMENT_TYPE: 'INCOMPATIBLE_SHIPMENT_TYPE', + ECONOM_QUANT_IS_NOT_FROZEN: 'ECONOM_QUANT_IS_NOT_FROZEN', + QUANTITY_NOT_MULTIPLE_BY_QUANT: 'QUANTITY_NOT_MULTIPLE_BY_QUANT', + INVALID_QUANT_VALUE: 'INVALID_QUANT_VALUE', + JEWELRY_FORBIDDEN_FOR_ECONOM: 'JEWELRY_FORBIDDEN_FOR_ECONOM', + NON_UNIQUE_ECONOM_ITEM_IN_REQUEST: 'NON_UNIQUE_ECONOM_ITEM_IN_REQUEST', + NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE: 'NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE', + SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS: 'SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS', + SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED', + SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED', + SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED: 'SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED', + EMPTY_CLUSTER: 'EMPTY_CLUSTER', + SKU_IS_RESTRICTED: 'SKU_IS_RESTRICTED', + SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED' +}; +export function instanceOfRejectedItemsRejectionReasonEnum(value) { + for (const key in RejectedItemsRejectionReasonEnum) { + if (Object.prototype.hasOwnProperty.call(RejectedItemsRejectionReasonEnum, key)) { + if (RejectedItemsRejectionReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function RejectedItemsRejectionReasonEnumFromJSON(json) { + return RejectedItemsRejectionReasonEnumFromJSONTyped(json, false); +} +export function RejectedItemsRejectionReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function RejectedItemsRejectionReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/RejectedItemsRestrictions.d.ts b/dist/esm/models/RejectedItemsRestrictions.d.ts new file mode 100644 index 0000000..66a2c60 --- /dev/null +++ b/dist/esm/models/RejectedItemsRestrictions.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RestrictionsReasonEnum } from './RestrictionsReasonEnum'; +/** + * Ограничения. + * @export + * @interface RejectedItemsRestrictions + */ +export interface RejectedItemsRestrictions { + /** + * Причины ограничения: + * - `UNKNOWN` — неизвестный тип; + * - `SKU_HAS_NO_SALES` — товар не продавался; + * - `SKU_HAS_QUANTITY_LIMIT` — лимит по количеству товара. + * + * @type {Array} + * @memberof RejectedItemsRestrictions + */ + reasons_restrictions?: Array; + /** + * Количество дней, которое товар не продавался. + * @type {number} + * @memberof RejectedItemsRestrictions + */ + sku_has_no_sales_in_days?: number; + /** + * Лимит по количеству товара. + * @type {number} + * @memberof RejectedItemsRestrictions + */ + sku_quantity_limit?: number; +} +/** + * Check if a given object implements the RejectedItemsRestrictions interface. + */ +export declare function instanceOfRejectedItemsRestrictions(value: object): value is RejectedItemsRestrictions; +export declare function RejectedItemsRestrictionsFromJSON(json: any): RejectedItemsRestrictions; +export declare function RejectedItemsRestrictionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectedItemsRestrictions; +export declare function RejectedItemsRestrictionsToJSON(value?: RejectedItemsRestrictions | null): any; diff --git a/dist/esm/models/RejectedItemsRestrictions.js b/dist/esm/models/RejectedItemsRestrictions.js new file mode 100644 index 0000000..459b96c --- /dev/null +++ b/dist/esm/models/RejectedItemsRestrictions.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RestrictionsReasonEnumFromJSON, RestrictionsReasonEnumToJSON, } from './RestrictionsReasonEnum'; +/** + * Check if a given object implements the RejectedItemsRestrictions interface. + */ +export function instanceOfRejectedItemsRestrictions(value) { + return true; +} +export function RejectedItemsRestrictionsFromJSON(json) { + return RejectedItemsRestrictionsFromJSONTyped(json, false); +} +export function RejectedItemsRestrictionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons_restrictions': json['reasons_restrictions'] == null ? undefined : (json['reasons_restrictions'].map(RestrictionsReasonEnumFromJSON)), + 'sku_has_no_sales_in_days': json['sku_has_no_sales_in_days'] == null ? undefined : json['sku_has_no_sales_in_days'], + 'sku_quantity_limit': json['sku_quantity_limit'] == null ? undefined : json['sku_quantity_limit'], + }; +} +export function RejectedItemsRestrictionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons_restrictions': value['reasons_restrictions'] == null ? undefined : (value['reasons_restrictions'].map(RestrictionsReasonEnumToJSON)), + 'sku_has_no_sales_in_days': value['sku_has_no_sales_in_days'], + 'sku_quantity_limit': value['sku_quantity_limit'], + }; +} diff --git a/dist/esm/models/RelatedPostingCancelReason.d.ts b/dist/esm/models/RelatedPostingCancelReason.d.ts new file mode 100644 index 0000000..7bdfd59 --- /dev/null +++ b/dist/esm/models/RelatedPostingCancelReason.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RelatedPostingCancelReasons } from './RelatedPostingCancelReasons'; +/** + * + * @export + * @interface RelatedPostingCancelReason + */ +export interface RelatedPostingCancelReason { + /** + * Номер отправления. + * @type {string} + * @memberof RelatedPostingCancelReason + */ + posting_number?: string; + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof RelatedPostingCancelReason + */ + reasons?: Array; +} +/** + * Check if a given object implements the RelatedPostingCancelReason interface. + */ +export declare function instanceOfRelatedPostingCancelReason(value: object): value is RelatedPostingCancelReason; +export declare function RelatedPostingCancelReasonFromJSON(json: any): RelatedPostingCancelReason; +export declare function RelatedPostingCancelReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedPostingCancelReason; +export declare function RelatedPostingCancelReasonToJSON(value?: RelatedPostingCancelReason | null): any; diff --git a/dist/esm/models/RelatedPostingCancelReason.js b/dist/esm/models/RelatedPostingCancelReason.js new file mode 100644 index 0000000..2042f3b --- /dev/null +++ b/dist/esm/models/RelatedPostingCancelReason.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RelatedPostingCancelReasonsFromJSON, RelatedPostingCancelReasonsToJSON, } from './RelatedPostingCancelReasons'; +/** + * Check if a given object implements the RelatedPostingCancelReason interface. + */ +export function instanceOfRelatedPostingCancelReason(value) { + return true; +} +export function RelatedPostingCancelReasonFromJSON(json) { + return RelatedPostingCancelReasonFromJSONTyped(json, false); +} +export function RelatedPostingCancelReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(RelatedPostingCancelReasonsFromJSON)), + }; +} +export function RelatedPostingCancelReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(RelatedPostingCancelReasonsToJSON)), + }; +} diff --git a/dist/esm/models/RelatedPostingCancelReasons.d.ts b/dist/esm/models/RelatedPostingCancelReasons.d.ts new file mode 100644 index 0000000..ecc2017 --- /dev/null +++ b/dist/esm/models/RelatedPostingCancelReasons.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RelatedPostingCancelReasons + */ +export interface RelatedPostingCancelReasons { + /** + * Идентификатор причины отмены: + * - `352` — товар закончился на складе продавца. + * - `400` — остался только бракованный товар. + * - `401` — продавец отклонил арбитраж. + * - `402` — другое (вина продавца). + * - `665` — покупатель не забрал заказ. + * - `666` — возврат из службы доставки: нет доставки в указанный регион. + * - `667` — заказ утерян службой доставки. + * + * @type {number} + * @memberof RelatedPostingCancelReasons + */ + id?: number; + /** + * Описание причины отмены. + * @type {string} + * @memberof RelatedPostingCancelReasons + */ + title?: string; + /** + * Инициатор отмены отправления: + * - `buyer` — покупатель, + * - `seller` — продавец. + * + * @type {string} + * @memberof RelatedPostingCancelReasons + */ + type_id?: string; +} +/** + * Check if a given object implements the RelatedPostingCancelReasons interface. + */ +export declare function instanceOfRelatedPostingCancelReasons(value: object): value is RelatedPostingCancelReasons; +export declare function RelatedPostingCancelReasonsFromJSON(json: any): RelatedPostingCancelReasons; +export declare function RelatedPostingCancelReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedPostingCancelReasons; +export declare function RelatedPostingCancelReasonsToJSON(value?: RelatedPostingCancelReasons | null): any; diff --git a/dist/esm/models/RelatedPostingCancelReasons.js b/dist/esm/models/RelatedPostingCancelReasons.js new file mode 100644 index 0000000..8d13359 --- /dev/null +++ b/dist/esm/models/RelatedPostingCancelReasons.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RelatedPostingCancelReasons interface. + */ +export function instanceOfRelatedPostingCancelReasons(value) { + return true; +} +export function RelatedPostingCancelReasonsFromJSON(json) { + return RelatedPostingCancelReasonsFromJSONTyped(json, false); +} +export function RelatedPostingCancelReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'title': json['title'] == null ? undefined : json['title'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +export function RelatedPostingCancelReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'title': value['title'], + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/ReportCommonReportAdditionalDataItem.d.ts b/dist/esm/models/ReportCommonReportAdditionalDataItem.d.ts new file mode 100644 index 0000000..f71750d --- /dev/null +++ b/dist/esm/models/ReportCommonReportAdditionalDataItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportCommonReportAdditionalDataItem + */ +export interface ReportCommonReportAdditionalDataItem { + /** + * Ключ дополнительного параметра. + * @type {string} + * @memberof ReportCommonReportAdditionalDataItem + */ + key?: string; + /** + * Значение дополнительного параметра. + * @type {string} + * @memberof ReportCommonReportAdditionalDataItem + */ + value?: string; +} +/** + * Check if a given object implements the ReportCommonReportAdditionalDataItem interface. + */ +export declare function instanceOfReportCommonReportAdditionalDataItem(value: object): value is ReportCommonReportAdditionalDataItem; +export declare function ReportCommonReportAdditionalDataItemFromJSON(json: any): ReportCommonReportAdditionalDataItem; +export declare function ReportCommonReportAdditionalDataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCommonReportAdditionalDataItem; +export declare function ReportCommonReportAdditionalDataItemToJSON(value?: ReportCommonReportAdditionalDataItem | null): any; diff --git a/dist/esm/models/ReportCommonReportAdditionalDataItem.js b/dist/esm/models/ReportCommonReportAdditionalDataItem.js new file mode 100644 index 0000000..cf18bf3 --- /dev/null +++ b/dist/esm/models/ReportCommonReportAdditionalDataItem.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReportCommonReportAdditionalDataItem interface. + */ +export function instanceOfReportCommonReportAdditionalDataItem(value) { + return true; +} +export function ReportCommonReportAdditionalDataItemFromJSON(json) { + return ReportCommonReportAdditionalDataItemFromJSONTyped(json, false); +} +export function ReportCommonReportAdditionalDataItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ReportCommonReportAdditionalDataItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ReportCreateCompanyPostingsReportRequest.d.ts b/dist/esm/models/ReportCreateCompanyPostingsReportRequest.d.ts new file mode 100644 index 0000000..6b2d0da --- /dev/null +++ b/dist/esm/models/ReportCreateCompanyPostingsReportRequest.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportCreateCompanyPostingsReportRequestFilter } from './ReportCreateCompanyPostingsReportRequestFilter'; +import type { CreateCompanyPostingsReportRequestWith } from './CreateCompanyPostingsReportRequestWith'; +/** + * + * @export + * @interface ReportCreateCompanyPostingsReportRequest + */ +export interface ReportCreateCompanyPostingsReportRequest { + /** + * + * @type {ReportCreateCompanyPostingsReportRequestFilter} + * @memberof ReportCreateCompanyPostingsReportRequest + */ + filter: ReportCreateCompanyPostingsReportRequestFilter; + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequest + */ + language?: string; + /** + * + * @type {CreateCompanyPostingsReportRequestWith} + * @memberof ReportCreateCompanyPostingsReportRequest + */ + _with?: CreateCompanyPostingsReportRequestWith; +} +/** + * Check if a given object implements the ReportCreateCompanyPostingsReportRequest interface. + */ +export declare function instanceOfReportCreateCompanyPostingsReportRequest(value: object): value is ReportCreateCompanyPostingsReportRequest; +export declare function ReportCreateCompanyPostingsReportRequestFromJSON(json: any): ReportCreateCompanyPostingsReportRequest; +export declare function ReportCreateCompanyPostingsReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateCompanyPostingsReportRequest; +export declare function ReportCreateCompanyPostingsReportRequestToJSON(value?: ReportCreateCompanyPostingsReportRequest | null): any; diff --git a/dist/esm/models/ReportCreateCompanyPostingsReportRequest.js b/dist/esm/models/ReportCreateCompanyPostingsReportRequest.js new file mode 100644 index 0000000..916fbc8 --- /dev/null +++ b/dist/esm/models/ReportCreateCompanyPostingsReportRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReportCreateCompanyPostingsReportRequestFilterFromJSON, ReportCreateCompanyPostingsReportRequestFilterToJSON, } from './ReportCreateCompanyPostingsReportRequestFilter'; +import { CreateCompanyPostingsReportRequestWithFromJSON, CreateCompanyPostingsReportRequestWithToJSON, } from './CreateCompanyPostingsReportRequestWith'; +/** + * Check if a given object implements the ReportCreateCompanyPostingsReportRequest interface. + */ +export function instanceOfReportCreateCompanyPostingsReportRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + return true; +} +export function ReportCreateCompanyPostingsReportRequestFromJSON(json) { + return ReportCreateCompanyPostingsReportRequestFromJSONTyped(json, false); +} +export function ReportCreateCompanyPostingsReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': ReportCreateCompanyPostingsReportRequestFilterFromJSON(json['filter']), + 'language': json['language'] == null ? undefined : json['language'], + '_with': json['with'] == null ? undefined : CreateCompanyPostingsReportRequestWithFromJSON(json['with']), + }; +} +export function ReportCreateCompanyPostingsReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': ReportCreateCompanyPostingsReportRequestFilterToJSON(value['filter']), + 'language': value['language'], + 'with': CreateCompanyPostingsReportRequestWithToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/ReportCreateCompanyPostingsReportRequestFilter.d.ts b/dist/esm/models/ReportCreateCompanyPostingsReportRequestFilter.d.ts new file mode 100644 index 0000000..5575a77 --- /dev/null +++ b/dist/esm/models/ReportCreateCompanyPostingsReportRequestFilter.d.ts @@ -0,0 +1,107 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface ReportCreateCompanyPostingsReportRequestFilter + */ +export interface ReportCreateCompanyPostingsReportRequestFilter { + /** + * Идентификатор причины отмены. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + cancel_reason_id?: Array; + /** + * Схема работы — FBO или FBS. + * + * За один запрос вы можете передать только одно значение: + * * `fbo` — чтобы получить отчёт по схеме FBO, + * * `fbs` — чтобы получить отчёт по схеме FBS. + * + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + delivery_schema?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + offer_id?: string; + /** + * Время, когда заказ попал в обработку. + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + processed_at_from: string; + /** + * Время, когда заказ появился в личном кабинете. + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + processed_at_to: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + sku?: Array; + /** + * Текст статуса. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + status_alias?: Array; + /** + * Числовой статус. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + statuses?: Array; + /** + * Название товара. + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + title?: string; + /** + * Идентификатор склада. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + warehouse_id?: Array; + /** + * Идентификатор способа доставки. Получите методом [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + delivery_method_id?: Array; + /** + * Экспресс-доставка: + * - `true` — только отправления с доставкой Ozon Express; + * - `false` — только отправления без доставки Ozon Express. + * + * Если ничего не передать, вернутся все отправления. + * + * @type {boolean} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + is_express?: boolean; +} +/** + * Check if a given object implements the ReportCreateCompanyPostingsReportRequestFilter interface. + */ +export declare function instanceOfReportCreateCompanyPostingsReportRequestFilter(value: object): value is ReportCreateCompanyPostingsReportRequestFilter; +export declare function ReportCreateCompanyPostingsReportRequestFilterFromJSON(json: any): ReportCreateCompanyPostingsReportRequestFilter; +export declare function ReportCreateCompanyPostingsReportRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateCompanyPostingsReportRequestFilter; +export declare function ReportCreateCompanyPostingsReportRequestFilterToJSON(value?: ReportCreateCompanyPostingsReportRequestFilter | null): any; diff --git a/dist/esm/models/ReportCreateCompanyPostingsReportRequestFilter.js b/dist/esm/models/ReportCreateCompanyPostingsReportRequestFilter.js new file mode 100644 index 0000000..4435172 --- /dev/null +++ b/dist/esm/models/ReportCreateCompanyPostingsReportRequestFilter.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReportCreateCompanyPostingsReportRequestFilter interface. + */ +export function instanceOfReportCreateCompanyPostingsReportRequestFilter(value) { + if (!('processed_at_from' in value) || value['processed_at_from'] === undefined) + return false; + if (!('processed_at_to' in value) || value['processed_at_to'] === undefined) + return false; + return true; +} +export function ReportCreateCompanyPostingsReportRequestFilterFromJSON(json) { + return ReportCreateCompanyPostingsReportRequestFilterFromJSONTyped(json, false); +} +export function ReportCreateCompanyPostingsReportRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'processed_at_from': json['processed_at_from'], + 'processed_at_to': json['processed_at_to'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status_alias': json['status_alias'] == null ? undefined : json['status_alias'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'title': json['title'] == null ? undefined : json['title'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + }; +} +export function ReportCreateCompanyPostingsReportRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason_id': value['cancel_reason_id'], + 'delivery_schema': value['delivery_schema'], + 'offer_id': value['offer_id'], + 'processed_at_from': value['processed_at_from'], + 'processed_at_to': value['processed_at_to'], + 'sku': value['sku'], + 'status_alias': value['status_alias'], + 'statuses': value['statuses'], + 'title': value['title'], + 'warehouse_id': value['warehouse_id'], + 'delivery_method_id': value['delivery_method_id'], + 'is_express': value['is_express'], + }; +} diff --git a/dist/esm/models/ReportCreateCompanyProductsReportRequest.d.ts b/dist/esm/models/ReportCreateCompanyProductsReportRequest.d.ts new file mode 100644 index 0000000..92b96e3 --- /dev/null +++ b/dist/esm/models/ReportCreateCompanyProductsReportRequest.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportCreateCompanyProductsReportRequestVisibility } from './ReportCreateCompanyProductsReportRequestVisibility'; +/** + * + * @export + * @interface ReportCreateCompanyProductsReportRequest + */ +export interface ReportCreateCompanyProductsReportRequest { + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof ReportCreateCompanyProductsReportRequest + */ + language?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {Array} + * @memberof ReportCreateCompanyProductsReportRequest + */ + offer_id?: Array; + /** + * Поиск по содержанию записи, проверяет наличие. + * @type {string} + * @memberof ReportCreateCompanyProductsReportRequest + */ + search?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof ReportCreateCompanyProductsReportRequest + */ + sku?: Array; + /** + * + * @type {ReportCreateCompanyProductsReportRequestVisibility} + * @memberof ReportCreateCompanyProductsReportRequest + */ + visibility?: ReportCreateCompanyProductsReportRequestVisibility; +} +/** + * Check if a given object implements the ReportCreateCompanyProductsReportRequest interface. + */ +export declare function instanceOfReportCreateCompanyProductsReportRequest(value: object): value is ReportCreateCompanyProductsReportRequest; +export declare function ReportCreateCompanyProductsReportRequestFromJSON(json: any): ReportCreateCompanyProductsReportRequest; +export declare function ReportCreateCompanyProductsReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateCompanyProductsReportRequest; +export declare function ReportCreateCompanyProductsReportRequestToJSON(value?: ReportCreateCompanyProductsReportRequest | null): any; diff --git a/dist/esm/models/ReportCreateCompanyProductsReportRequest.js b/dist/esm/models/ReportCreateCompanyProductsReportRequest.js new file mode 100644 index 0000000..2e238f7 --- /dev/null +++ b/dist/esm/models/ReportCreateCompanyProductsReportRequest.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReportCreateCompanyProductsReportRequestVisibilityFromJSON, ReportCreateCompanyProductsReportRequestVisibilityToJSON, } from './ReportCreateCompanyProductsReportRequestVisibility'; +/** + * Check if a given object implements the ReportCreateCompanyProductsReportRequest interface. + */ +export function instanceOfReportCreateCompanyProductsReportRequest(value) { + return true; +} +export function ReportCreateCompanyProductsReportRequestFromJSON(json) { + return ReportCreateCompanyProductsReportRequestFromJSONTyped(json, false); +} +export function ReportCreateCompanyProductsReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'language': json['language'] == null ? undefined : json['language'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'search': json['search'] == null ? undefined : json['search'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'visibility': json['visibility'] == null ? undefined : ReportCreateCompanyProductsReportRequestVisibilityFromJSON(json['visibility']), + }; +} +export function ReportCreateCompanyProductsReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'language': value['language'], + 'offer_id': value['offer_id'], + 'search': value['search'], + 'sku': value['sku'], + 'visibility': ReportCreateCompanyProductsReportRequestVisibilityToJSON(value['visibility']), + }; +} diff --git a/dist/esm/models/ReportCreateCompanyProductsReportRequestVisibility.d.ts b/dist/esm/models/ReportCreateCompanyProductsReportRequestVisibility.d.ts new file mode 100644 index 0000000..79d3405 --- /dev/null +++ b/dist/esm/models/ReportCreateCompanyProductsReportRequestVisibility.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `PARTIAL_APPROVED` — товары с предупреждениями, требуют доработки; + * - `IMAGE_ABSENT` — товары без фото; + * - `ARCHIVED` — товары в архиве; + * - `AUTO_ARCHIVED` — товары, архивированные автоматически; + * - `MANUAL_ARCHIVED` — товары, архивированные вручную. + * + * @export + */ +export declare const ReportCreateCompanyProductsReportRequestVisibility: { + readonly ALL: "ALL"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly IMAGE_ABSENT: "IMAGE_ABSENT"; + readonly ARCHIVED: "ARCHIVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; +}; +export type ReportCreateCompanyProductsReportRequestVisibility = typeof ReportCreateCompanyProductsReportRequestVisibility[keyof typeof ReportCreateCompanyProductsReportRequestVisibility]; +export declare function instanceOfReportCreateCompanyProductsReportRequestVisibility(value: any): boolean; +export declare function ReportCreateCompanyProductsReportRequestVisibilityFromJSON(json: any): ReportCreateCompanyProductsReportRequestVisibility; +export declare function ReportCreateCompanyProductsReportRequestVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateCompanyProductsReportRequestVisibility; +export declare function ReportCreateCompanyProductsReportRequestVisibilityToJSON(value?: ReportCreateCompanyProductsReportRequestVisibility | null): any; diff --git a/dist/esm/models/ReportCreateCompanyProductsReportRequestVisibility.js b/dist/esm/models/ReportCreateCompanyProductsReportRequestVisibility.js new file mode 100644 index 0000000..edca86f --- /dev/null +++ b/dist/esm/models/ReportCreateCompanyProductsReportRequestVisibility.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `PARTIAL_APPROVED` — товары с предупреждениями, требуют доработки; + * - `IMAGE_ABSENT` — товары без фото; + * - `ARCHIVED` — товары в архиве; + * - `AUTO_ARCHIVED` — товары, архивированные автоматически; + * - `MANUAL_ARCHIVED` — товары, архивированные вручную. + * + * @export + */ +export const ReportCreateCompanyProductsReportRequestVisibility = { + ALL: 'ALL', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + IMAGE_ABSENT: 'IMAGE_ABSENT', + ARCHIVED: 'ARCHIVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED' +}; +export function instanceOfReportCreateCompanyProductsReportRequestVisibility(value) { + for (const key in ReportCreateCompanyProductsReportRequestVisibility) { + if (Object.prototype.hasOwnProperty.call(ReportCreateCompanyProductsReportRequestVisibility, key)) { + if (ReportCreateCompanyProductsReportRequestVisibility[key] === value) { + return true; + } + } + } + return false; +} +export function ReportCreateCompanyProductsReportRequestVisibilityFromJSON(json) { + return ReportCreateCompanyProductsReportRequestVisibilityFromJSONTyped(json, false); +} +export function ReportCreateCompanyProductsReportRequestVisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReportCreateCompanyProductsReportRequestVisibilityToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReportCreateDiscountedResponse.d.ts b/dist/esm/models/ReportCreateDiscountedResponse.d.ts new file mode 100644 index 0000000..1fdd53b --- /dev/null +++ b/dist/esm/models/ReportCreateDiscountedResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportCreateDiscountedResponse + */ +export interface ReportCreateDiscountedResponse { + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof ReportCreateDiscountedResponse + */ + code?: string; +} +/** + * Check if a given object implements the ReportCreateDiscountedResponse interface. + */ +export declare function instanceOfReportCreateDiscountedResponse(value: object): value is ReportCreateDiscountedResponse; +export declare function ReportCreateDiscountedResponseFromJSON(json: any): ReportCreateDiscountedResponse; +export declare function ReportCreateDiscountedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateDiscountedResponse; +export declare function ReportCreateDiscountedResponseToJSON(value?: ReportCreateDiscountedResponse | null): any; diff --git a/dist/esm/models/ReportCreateDiscountedResponse.js b/dist/esm/models/ReportCreateDiscountedResponse.js new file mode 100644 index 0000000..d030b65 --- /dev/null +++ b/dist/esm/models/ReportCreateDiscountedResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReportCreateDiscountedResponse interface. + */ +export function instanceOfReportCreateDiscountedResponse(value) { + return true; +} +export function ReportCreateDiscountedResponseFromJSON(json) { + return ReportCreateDiscountedResponseFromJSONTyped(json, false); +} +export function ReportCreateDiscountedResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +export function ReportCreateDiscountedResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/ReportCreateReportResponse.d.ts b/dist/esm/models/ReportCreateReportResponse.d.ts new file mode 100644 index 0000000..70dd4ba --- /dev/null +++ b/dist/esm/models/ReportCreateReportResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateReportResponseCode } from './CreateReportResponseCode'; +/** + * + * @export + * @interface ReportCreateReportResponse + */ +export interface ReportCreateReportResponse { + /** + * + * @type {CreateReportResponseCode} + * @memberof ReportCreateReportResponse + */ + result?: CreateReportResponseCode; +} +/** + * Check if a given object implements the ReportCreateReportResponse interface. + */ +export declare function instanceOfReportCreateReportResponse(value: object): value is ReportCreateReportResponse; +export declare function ReportCreateReportResponseFromJSON(json: any): ReportCreateReportResponse; +export declare function ReportCreateReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateReportResponse; +export declare function ReportCreateReportResponseToJSON(value?: ReportCreateReportResponse | null): any; diff --git a/dist/esm/models/ReportCreateReportResponse.js b/dist/esm/models/ReportCreateReportResponse.js new file mode 100644 index 0000000..783e8d5 --- /dev/null +++ b/dist/esm/models/ReportCreateReportResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateReportResponseCodeFromJSON, CreateReportResponseCodeToJSON, } from './CreateReportResponseCode'; +/** + * Check if a given object implements the ReportCreateReportResponse interface. + */ +export function instanceOfReportCreateReportResponse(value) { + return true; +} +export function ReportCreateReportResponseFromJSON(json) { + return ReportCreateReportResponseFromJSONTyped(json, false); +} +export function ReportCreateReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : CreateReportResponseCodeFromJSON(json['result']), + }; +} +export function ReportCreateReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': CreateReportResponseCodeToJSON(value['result']), + }; +} diff --git a/dist/esm/models/ReportListResponseResult.d.ts b/dist/esm/models/ReportListResponseResult.d.ts new file mode 100644 index 0000000..d0cfbe6 --- /dev/null +++ b/dist/esm/models/ReportListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportReport } from './ReportReport'; +/** + * Результаты запроса. + * @export + * @interface ReportListResponseResult + */ +export interface ReportListResponseResult { + /** + * Массив со всеми сгенерированными отчётами. + * @type {Array} + * @memberof ReportListResponseResult + */ + reports?: Array; + /** + * Суммарное количество отчётов. + * @type {number} + * @memberof ReportListResponseResult + */ + total?: number; +} +/** + * Check if a given object implements the ReportListResponseResult interface. + */ +export declare function instanceOfReportListResponseResult(value: object): value is ReportListResponseResult; +export declare function ReportListResponseResultFromJSON(json: any): ReportListResponseResult; +export declare function ReportListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportListResponseResult; +export declare function ReportListResponseResultToJSON(value?: ReportListResponseResult | null): any; diff --git a/dist/esm/models/ReportListResponseResult.js b/dist/esm/models/ReportListResponseResult.js new file mode 100644 index 0000000..ce85a2f --- /dev/null +++ b/dist/esm/models/ReportListResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReportReportFromJSON, ReportReportToJSON, } from './ReportReport'; +/** + * Check if a given object implements the ReportListResponseResult interface. + */ +export function instanceOfReportListResponseResult(value) { + return true; +} +export function ReportListResponseResultFromJSON(json) { + return ReportListResponseResultFromJSONTyped(json, false); +} +export function ReportListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reports': json['reports'] == null ? undefined : (json['reports'].map(ReportReportFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function ReportListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'reports': value['reports'] == null ? undefined : (value['reports'].map(ReportReportToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/ReportMarkedProductsSalesCreateRequestDate.d.ts b/dist/esm/models/ReportMarkedProductsSalesCreateRequestDate.d.ts new file mode 100644 index 0000000..f8fd29a --- /dev/null +++ b/dist/esm/models/ReportMarkedProductsSalesCreateRequestDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период формирования отчёта. + * @export + * @interface ReportMarkedProductsSalesCreateRequestDate + */ +export interface ReportMarkedProductsSalesCreateRequestDate { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof ReportMarkedProductsSalesCreateRequestDate + */ + from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof ReportMarkedProductsSalesCreateRequestDate + */ + to: string; +} +/** + * Check if a given object implements the ReportMarkedProductsSalesCreateRequestDate interface. + */ +export declare function instanceOfReportMarkedProductsSalesCreateRequestDate(value: object): value is ReportMarkedProductsSalesCreateRequestDate; +export declare function ReportMarkedProductsSalesCreateRequestDateFromJSON(json: any): ReportMarkedProductsSalesCreateRequestDate; +export declare function ReportMarkedProductsSalesCreateRequestDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportMarkedProductsSalesCreateRequestDate; +export declare function ReportMarkedProductsSalesCreateRequestDateToJSON(value?: ReportMarkedProductsSalesCreateRequestDate | null): any; diff --git a/dist/esm/models/ReportMarkedProductsSalesCreateRequestDate.js b/dist/esm/models/ReportMarkedProductsSalesCreateRequestDate.js new file mode 100644 index 0000000..ceff68a --- /dev/null +++ b/dist/esm/models/ReportMarkedProductsSalesCreateRequestDate.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReportMarkedProductsSalesCreateRequestDate interface. + */ +export function instanceOfReportMarkedProductsSalesCreateRequestDate(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function ReportMarkedProductsSalesCreateRequestDateFromJSON(json) { + return ReportMarkedProductsSalesCreateRequestDateFromJSONTyped(json, false); +} +export function ReportMarkedProductsSalesCreateRequestDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +export function ReportMarkedProductsSalesCreateRequestDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/ReportReport.d.ts b/dist/esm/models/ReportReport.d.ts new file mode 100644 index 0000000..e6b6ac2 --- /dev/null +++ b/dist/esm/models/ReportReport.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportCommonReportAdditionalDataItem } from './ReportCommonReportAdditionalDataItem'; +/** + * Информация об отчёте. + * @export + * @interface ReportReport + */ +export interface ReportReport { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof ReportReport + */ + additional_data?: Array; + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof ReportReport + */ + code?: string; + /** + * Дата создания отчёта. + * @type {string} + * @memberof ReportReport + */ + created_at?: string; + /** + * Код ошибки при генерации отчёта. + * @type {string} + * @memberof ReportReport + */ + error?: string; + /** + * Дата и время, до которых отчёт доступен по ссылке. + * Поле вернётся пустым, если отчёт сформирован до 14 октября 2025. + * + * @type {string} + * @memberof ReportReport + */ + expires_at?: string; + /** + * Ссылка на XLSX-файл. + * + * Для отчёта с типом `SELLER_RETURNS` ссылка доступна 5 минут после выполнения запроса. + * + * @type {string} + * @memberof ReportReport + */ + file?: string; + /** + * Массив с фильтрами, указанными при создании отчёта продавцом. + * @type {{ [key: string]: string | undefined; }} + * @memberof ReportReport + */ + params?: { + [key: string]: string | undefined; + }; + /** + * Тип отчёта: + * - `SELLER_PRODUCTS` — отчёт по товарам; + * - `SELLER_STOCK` — отчёт об остатках товаров; + * - `SELLER_RETURNS` — отчёт о возвратах; + * - `SELLER_POSTINGS` — отчёт об отправлениях; + * - `SELLER_DISCOUNTED` — отчёт об уценённых товарах; + * - `MUTUAL_SETTLEMENT` — отчёт о взаиморасчётах; + * - `DOCUMENT_B2B_SALES` — отчёт о продажах юридическим лицам; + * - `COMPENSATION_REPORT` — отчёт о компенсациях; + * - `DECOMPENSATION_REPORT` — отчёт о декомпенсациях; + * - `MARKED_PRODUCTS_SALES` — отчёт по продажам маркированных товаров; + * - `SELLER_PLACEMENT_BY_PRODUCTS` — отчёт о стоимости размещения по товарам; + * - `SELLER_PLACEMENT_BY_SUPPLIES` — отчёт о стоимости размещения по поставкам. + * + * @type {string} + * @memberof ReportReport + */ + report_type?: string; + /** + * Статус генерации отчёта: + * - `waiting` — в очереди на обработку, + * - `processing` — обрабатывается, + * - `success` — отчёт успешно создан, + * - `failed` — ошибка при создании отчёта. + * + * @type {string} + * @memberof ReportReport + */ + status?: string; +} +/** + * Check if a given object implements the ReportReport interface. + */ +export declare function instanceOfReportReport(value: object): value is ReportReport; +export declare function ReportReportFromJSON(json: any): ReportReport; +export declare function ReportReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReport; +export declare function ReportReportToJSON(value?: ReportReport | null): any; diff --git a/dist/esm/models/ReportReport.js b/dist/esm/models/ReportReport.js new file mode 100644 index 0000000..35101c0 --- /dev/null +++ b/dist/esm/models/ReportReport.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReportCommonReportAdditionalDataItemFromJSON, ReportCommonReportAdditionalDataItemToJSON, } from './ReportCommonReportAdditionalDataItem'; +/** + * Check if a given object implements the ReportReport interface. + */ +export function instanceOfReportReport(value) { + return true; +} +export function ReportReportFromJSON(json) { + return ReportReportFromJSONTyped(json, false); +} +export function ReportReportFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(ReportCommonReportAdditionalDataItemFromJSON)), + 'code': json['code'] == null ? undefined : json['code'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'error': json['error'] == null ? undefined : json['error'], + 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], + 'file': json['file'] == null ? undefined : json['file'], + 'params': json['params'] == null ? undefined : json['params'], + 'report_type': json['report_type'] == null ? undefined : json['report_type'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function ReportReportToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(ReportCommonReportAdditionalDataItemToJSON)), + 'code': value['code'], + 'created_at': value['created_at'], + 'error': value['error'], + 'expires_at': value['expires_at'], + 'file': value['file'], + 'params': value['params'], + 'report_type': value['report_type'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/ReportReportInfoRequest.d.ts b/dist/esm/models/ReportReportInfoRequest.d.ts new file mode 100644 index 0000000..4b84e0e --- /dev/null +++ b/dist/esm/models/ReportReportInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportReportInfoRequest + */ +export interface ReportReportInfoRequest { + /** + * Уникальный идентификатор отчёта. + * @type {string} + * @memberof ReportReportInfoRequest + */ + code: string; +} +/** + * Check if a given object implements the ReportReportInfoRequest interface. + */ +export declare function instanceOfReportReportInfoRequest(value: object): value is ReportReportInfoRequest; +export declare function ReportReportInfoRequestFromJSON(json: any): ReportReportInfoRequest; +export declare function ReportReportInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportInfoRequest; +export declare function ReportReportInfoRequestToJSON(value?: ReportReportInfoRequest | null): any; diff --git a/dist/esm/models/ReportReportInfoRequest.js b/dist/esm/models/ReportReportInfoRequest.js new file mode 100644 index 0000000..a0e988a --- /dev/null +++ b/dist/esm/models/ReportReportInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReportReportInfoRequest interface. + */ +export function instanceOfReportReportInfoRequest(value) { + if (!('code' in value) || value['code'] === undefined) + return false; + return true; +} +export function ReportReportInfoRequestFromJSON(json) { + return ReportReportInfoRequestFromJSONTyped(json, false); +} +export function ReportReportInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'], + }; +} +export function ReportReportInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/ReportReportInfoResponse.d.ts b/dist/esm/models/ReportReportInfoResponse.d.ts new file mode 100644 index 0000000..76c58d0 --- /dev/null +++ b/dist/esm/models/ReportReportInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportReportinfo } from './ReportReportinfo'; +/** + * + * @export + * @interface ReportReportInfoResponse + */ +export interface ReportReportInfoResponse { + /** + * + * @type {ReportReportinfo} + * @memberof ReportReportInfoResponse + */ + result?: ReportReportinfo; +} +/** + * Check if a given object implements the ReportReportInfoResponse interface. + */ +export declare function instanceOfReportReportInfoResponse(value: object): value is ReportReportInfoResponse; +export declare function ReportReportInfoResponseFromJSON(json: any): ReportReportInfoResponse; +export declare function ReportReportInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportInfoResponse; +export declare function ReportReportInfoResponseToJSON(value?: ReportReportInfoResponse | null): any; diff --git a/dist/esm/models/ReportReportInfoResponse.js b/dist/esm/models/ReportReportInfoResponse.js new file mode 100644 index 0000000..7480cc8 --- /dev/null +++ b/dist/esm/models/ReportReportInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReportReportinfoFromJSON, ReportReportinfoToJSON, } from './ReportReportinfo'; +/** + * Check if a given object implements the ReportReportInfoResponse interface. + */ +export function instanceOfReportReportInfoResponse(value) { + return true; +} +export function ReportReportInfoResponseFromJSON(json) { + return ReportReportInfoResponseFromJSONTyped(json, false); +} +export function ReportReportInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : ReportReportinfoFromJSON(json['result']), + }; +} +export function ReportReportInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': ReportReportinfoToJSON(value['result']), + }; +} diff --git a/dist/esm/models/ReportReportListRequest.d.ts b/dist/esm/models/ReportReportListRequest.d.ts new file mode 100644 index 0000000..2271f95 --- /dev/null +++ b/dist/esm/models/ReportReportListRequest.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportReportListRequest + */ +export interface ReportReportListRequest { + /** + * Номер страницы. + * @type {number} + * @memberof ReportReportListRequest + */ + page: number; + /** + * Количество значений на странице: + * - по умолчанию — 100, + * - маĸсимальное значение — 1000. + * + * @type {number} + * @memberof ReportReportListRequest + */ + page_size: number; + /** + * Тип отчёта: + * - `ALL` — все отчёты; + * - `SELLER_PRODUCTS` — отчёт по товарам; + * - `SELLER_STOCK` — отчёт об остатках товаров; + * - `SELLER_RETURNS` — отчёт о возвратах; + * - `SELLER_POSTINGS` — отчёт об отправлениях; + * - `SELLER_DISCOUNTED` — отчёт об уценённых товарах; + * - `MUTUAL_SETTLEMENT` — отчёт о взаиморасчётах; + * - `DOCUMENT_B2B_SALES` — отчёт о продажах юридическим лицам; + * - `COMPENSATION_REPORT` — отчёт о компенсациях; + * - `DECOMPENSATION_REPORT` — отчёт о декомпенсациях; + * - `MARKED_PRODUCTS_SALES` — отчёт по продажам маркированных товаров; + * - `SELLER_PLACEMENT_BY_PRODUCTS` — отчёт о стоимости размещения по товарам; + * - `SELLER_PLACEMENT_BY_SUPPLIES` — отчёт о стоимости размещения по поставкам. + * + * @type {string} + * @memberof ReportReportListRequest + */ + report_type?: string; +} +/** + * Check if a given object implements the ReportReportListRequest interface. + */ +export declare function instanceOfReportReportListRequest(value: object): value is ReportReportListRequest; +export declare function ReportReportListRequestFromJSON(json: any): ReportReportListRequest; +export declare function ReportReportListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportListRequest; +export declare function ReportReportListRequestToJSON(value?: ReportReportListRequest | null): any; diff --git a/dist/esm/models/ReportReportListRequest.js b/dist/esm/models/ReportReportListRequest.js new file mode 100644 index 0000000..1028160 --- /dev/null +++ b/dist/esm/models/ReportReportListRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReportReportListRequest interface. + */ +export function instanceOfReportReportListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +export function ReportReportListRequestFromJSON(json) { + return ReportReportListRequestFromJSONTyped(json, false); +} +export function ReportReportListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'page_size': json['page_size'], + 'report_type': json['report_type'] == null ? undefined : json['report_type'], + }; +} +export function ReportReportListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + 'report_type': value['report_type'], + }; +} diff --git a/dist/esm/models/ReportReportListResponse.d.ts b/dist/esm/models/ReportReportListResponse.d.ts new file mode 100644 index 0000000..fa0e0e2 --- /dev/null +++ b/dist/esm/models/ReportReportListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportListResponseResult } from './ReportListResponseResult'; +/** + * + * @export + * @interface ReportReportListResponse + */ +export interface ReportReportListResponse { + /** + * + * @type {ReportListResponseResult} + * @memberof ReportReportListResponse + */ + result?: ReportListResponseResult; +} +/** + * Check if a given object implements the ReportReportListResponse interface. + */ +export declare function instanceOfReportReportListResponse(value: object): value is ReportReportListResponse; +export declare function ReportReportListResponseFromJSON(json: any): ReportReportListResponse; +export declare function ReportReportListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportListResponse; +export declare function ReportReportListResponseToJSON(value?: ReportReportListResponse | null): any; diff --git a/dist/esm/models/ReportReportListResponse.js b/dist/esm/models/ReportReportListResponse.js new file mode 100644 index 0000000..18e0260 --- /dev/null +++ b/dist/esm/models/ReportReportListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReportListResponseResultFromJSON, ReportListResponseResultToJSON, } from './ReportListResponseResult'; +/** + * Check if a given object implements the ReportReportListResponse interface. + */ +export function instanceOfReportReportListResponse(value) { + return true; +} +export function ReportReportListResponseFromJSON(json) { + return ReportReportListResponseFromJSONTyped(json, false); +} +export function ReportReportListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : ReportListResponseResultFromJSON(json['result']), + }; +} +export function ReportReportListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': ReportListResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/ReportReportinfo.d.ts b/dist/esm/models/ReportReportinfo.d.ts new file mode 100644 index 0000000..3c9d181 --- /dev/null +++ b/dist/esm/models/ReportReportinfo.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportCommonReportAdditionalDataItem } from './ReportCommonReportAdditionalDataItem'; +/** + * Информация об отчёте. + * @export + * @interface ReportReportinfo + */ +export interface ReportReportinfo { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof ReportReportinfo + */ + additional_data?: Array; + /** + * Уникальный идентификатор отчёта. + * @type {string} + * @memberof ReportReportinfo + */ + code?: string; + /** + * Дата создания отчёта. + * @type {string} + * @memberof ReportReportinfo + */ + created_at?: string; + /** + * Код ошибки при генерации отчёта. + * @type {string} + * @memberof ReportReportinfo + */ + error?: string; + /** + * Дата и время, до которых отчёт доступен по ссылке. + * Поле вернётся пустым, если отчёт сформирован до 14 октября 2025. + * + * @type {string} + * @memberof ReportReportinfo + */ + expires_at?: string; + /** + * Ссылка на XLSX-файл. + * + * Для отчёта с типом `SELLER_RETURNS` ссылка доступна 5 минут после выполнения запроса. + * + * @type {string} + * @memberof ReportReportinfo + */ + file?: string; + /** + * Массив с фильтрами, указанными при создании отчёта продавцом. + * @type {{ [key: string]: string | undefined; }} + * @memberof ReportReportinfo + */ + params?: { + [key: string]: string | undefined; + }; + /** + * Тип отчёта: + * - `SELLER_PRODUCTS` — отчёт по товарам; + * - `SELLER_STOCK` — отчёт об остатках товаров; + * - `SELLER_RETURNS` — отчёт о возвратах; + * - `SELLER_POSTINGS` — отчёт об отправлениях; + * - `SELLER_DISCOUNTED` — отчёт об уценённых товарах; + * - `MUTUAL_SETTLEMENT` — отчёт о взаиморасчётах; + * - `DOCUMENT_B2B_SALES` — отчёт о продажах юридическим лицам; + * - `COMPENSATION_REPORT` — отчёт о компенсациях; + * - `DECOMPENSATION_REPORT` — отчёт о декомпенсациях; + * - `MARKED_PRODUCTS_SALES` — отчёт по продажам маркированных товаров; + * - `SELLER_PLACEMENT_BY_PRODUCTS` — отчёт о стоимости размещения по товарам; + * - `SELLER_PLACEMENT_BY_SUPPLIES` — отчёт о стоимости размещения по поставкам. + * + * @type {string} + * @memberof ReportReportinfo + */ + report_type?: string; + /** + * Статус генерации отчёта: + * - `waiting` — в очереди на обработку, + * - `processing` — обрабатывается, + * - `success` — отчёт успешно создан, + * - `failed` — ошибка при создании отчёта. + * + * @type {string} + * @memberof ReportReportinfo + */ + status?: string; +} +/** + * Check if a given object implements the ReportReportinfo interface. + */ +export declare function instanceOfReportReportinfo(value: object): value is ReportReportinfo; +export declare function ReportReportinfoFromJSON(json: any): ReportReportinfo; +export declare function ReportReportinfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportinfo; +export declare function ReportReportinfoToJSON(value?: ReportReportinfo | null): any; diff --git a/dist/esm/models/ReportReportinfo.js b/dist/esm/models/ReportReportinfo.js new file mode 100644 index 0000000..c369a01 --- /dev/null +++ b/dist/esm/models/ReportReportinfo.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReportCommonReportAdditionalDataItemFromJSON, ReportCommonReportAdditionalDataItemToJSON, } from './ReportCommonReportAdditionalDataItem'; +/** + * Check if a given object implements the ReportReportinfo interface. + */ +export function instanceOfReportReportinfo(value) { + return true; +} +export function ReportReportinfoFromJSON(json) { + return ReportReportinfoFromJSONTyped(json, false); +} +export function ReportReportinfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(ReportCommonReportAdditionalDataItemFromJSON)), + 'code': json['code'] == null ? undefined : json['code'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'error': json['error'] == null ? undefined : json['error'], + 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], + 'file': json['file'] == null ? undefined : json['file'], + 'params': json['params'] == null ? undefined : json['params'], + 'report_type': json['report_type'] == null ? undefined : json['report_type'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function ReportReportinfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(ReportCommonReportAdditionalDataItemToJSON)), + 'code': value['code'], + 'created_at': value['created_at'], + 'error': value['error'], + 'expires_at': value['expires_at'], + 'file': value['file'], + 'params': value['params'], + 'report_type': value['report_type'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.d.ts b/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.d.ts new file mode 100644 index 0000000..7f67538 --- /dev/null +++ b/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportV1CreateCompanyFinanceRealizationPostingReportRequest + */ +export interface ReportV1CreateCompanyFinanceRealizationPostingReportRequest { + /** + * Месяц. + * @type {number} + * @memberof ReportV1CreateCompanyFinanceRealizationPostingReportRequest + */ + month: number; + /** + * Год. + * @type {number} + * @memberof ReportV1CreateCompanyFinanceRealizationPostingReportRequest + */ + year: number; +} +/** + * Check if a given object implements the ReportV1CreateCompanyFinanceRealizationPostingReportRequest interface. + */ +export declare function instanceOfReportV1CreateCompanyFinanceRealizationPostingReportRequest(value: object): value is ReportV1CreateCompanyFinanceRealizationPostingReportRequest; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSON(json: any): ReportV1CreateCompanyFinanceRealizationPostingReportRequest; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportV1CreateCompanyFinanceRealizationPostingReportRequest; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON(value?: ReportV1CreateCompanyFinanceRealizationPostingReportRequest | null): any; diff --git a/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.js b/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.js new file mode 100644 index 0000000..fdbbcb6 --- /dev/null +++ b/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReportV1CreateCompanyFinanceRealizationPostingReportRequest interface. + */ +export function instanceOfReportV1CreateCompanyFinanceRealizationPostingReportRequest(value) { + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('year' in value) || value['year'] === undefined) + return false; + return true; +} +export function ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSON(json) { + return ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSONTyped(json, false); +} +export function ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'month': json['month'], + 'year': json['year'], + }; +} +export function ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.d.ts b/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.d.ts new file mode 100644 index 0000000..6f237d1 --- /dev/null +++ b/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportV1CreateCompanyFinanceRealizationPostingReportResponse + */ +export interface ReportV1CreateCompanyFinanceRealizationPostingReportResponse { + /** + * Уникальный идентификатор отчёта. Получите отчёт методом [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof ReportV1CreateCompanyFinanceRealizationPostingReportResponse + */ + code?: string; +} +/** + * Check if a given object implements the ReportV1CreateCompanyFinanceRealizationPostingReportResponse interface. + */ +export declare function instanceOfReportV1CreateCompanyFinanceRealizationPostingReportResponse(value: object): value is ReportV1CreateCompanyFinanceRealizationPostingReportResponse; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON(json: any): ReportV1CreateCompanyFinanceRealizationPostingReportResponse; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportV1CreateCompanyFinanceRealizationPostingReportResponse; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportResponseToJSON(value?: ReportV1CreateCompanyFinanceRealizationPostingReportResponse | null): any; diff --git a/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.js b/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.js new file mode 100644 index 0000000..9fd5220 --- /dev/null +++ b/dist/esm/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReportV1CreateCompanyFinanceRealizationPostingReportResponse interface. + */ +export function instanceOfReportV1CreateCompanyFinanceRealizationPostingReportResponse(value) { + return true; +} +export function ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON(json) { + return ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSONTyped(json, false); +} +export function ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +export function ReportV1CreateCompanyFinanceRealizationPostingReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/RestrictionsReasonEnum.d.ts b/dist/esm/models/RestrictionsReasonEnum.d.ts new file mode 100644 index 0000000..4e24605 --- /dev/null +++ b/dist/esm/models/RestrictionsReasonEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const RestrictionsReasonEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly SKU_HAS_NO_SALES: "SKU_HAS_NO_SALES"; + readonly SKU_HAS_QUANTITY_LIMIT: "SKU_HAS_QUANTITY_LIMIT"; +}; +export type RestrictionsReasonEnum = typeof RestrictionsReasonEnum[keyof typeof RestrictionsReasonEnum]; +export declare function instanceOfRestrictionsReasonEnum(value: any): boolean; +export declare function RestrictionsReasonEnumFromJSON(json: any): RestrictionsReasonEnum; +export declare function RestrictionsReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestrictionsReasonEnum; +export declare function RestrictionsReasonEnumToJSON(value?: RestrictionsReasonEnum | null): any; diff --git a/dist/esm/models/RestrictionsReasonEnum.js b/dist/esm/models/RestrictionsReasonEnum.js new file mode 100644 index 0000000..0214157 --- /dev/null +++ b/dist/esm/models/RestrictionsReasonEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const RestrictionsReasonEnum = { + UNKNOWN: 'UNKNOWN', + SKU_HAS_NO_SALES: 'SKU_HAS_NO_SALES', + SKU_HAS_QUANTITY_LIMIT: 'SKU_HAS_QUANTITY_LIMIT' +}; +export function instanceOfRestrictionsReasonEnum(value) { + for (const key in RestrictionsReasonEnum) { + if (Object.prototype.hasOwnProperty.call(RestrictionsReasonEnum, key)) { + if (RestrictionsReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function RestrictionsReasonEnumFromJSON(json) { + return RestrictionsReasonEnumFromJSONTyped(json, false); +} +export function RestrictionsReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function RestrictionsReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ResultCargo.d.ts b/dist/esm/models/ResultCargo.d.ts new file mode 100644 index 0000000..bb15b84 --- /dev/null +++ b/dist/esm/models/ResultCargo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoValue } from './CargoValue'; +/** + * + * @export + * @interface ResultCargo + */ +export interface ResultCargo { + /** + * Ключ грузоместа. + * @type {string} + * @memberof ResultCargo + */ + key?: string; + /** + * + * @type {CargoValue} + * @memberof ResultCargo + */ + value?: CargoValue; +} +/** + * Check if a given object implements the ResultCargo interface. + */ +export declare function instanceOfResultCargo(value: object): value is ResultCargo; +export declare function ResultCargoFromJSON(json: any): ResultCargo; +export declare function ResultCargoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultCargo; +export declare function ResultCargoToJSON(value?: ResultCargo | null): any; diff --git a/dist/esm/models/ResultCargo.js b/dist/esm/models/ResultCargo.js new file mode 100644 index 0000000..c3f35ac --- /dev/null +++ b/dist/esm/models/ResultCargo.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoValueFromJSON, CargoValueToJSON, } from './CargoValue'; +/** + * Check if a given object implements the ResultCargo interface. + */ +export function instanceOfResultCargo(value) { + return true; +} +export function ResultCargoFromJSON(json) { + return ResultCargoFromJSONTyped(json, false); +} +export function ResultCargoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : CargoValueFromJSON(json['value']), + }; +} +export function ResultCargoToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': CargoValueToJSON(value['value']), + }; +} diff --git a/dist/esm/models/ResultData.d.ts b/dist/esm/models/ResultData.d.ts new file mode 100644 index 0000000..cae9402 --- /dev/null +++ b/dist/esm/models/ResultData.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DataMacrolocalCluster } from './DataMacrolocalCluster'; +import type { DataFulfillment } from './DataFulfillment'; +/** + * Кластер. + * @export + * @interface ResultData + */ +export interface ResultData { + /** + * Склады Ozon в кластере. + * @type {Array} + * @memberof ResultData + */ + fulfillments?: Array; + /** + * + * @type {DataMacrolocalCluster} + * @memberof ResultData + */ + macrolocal_cluster?: DataMacrolocalCluster; +} +/** + * Check if a given object implements the ResultData interface. + */ +export declare function instanceOfResultData(value: object): value is ResultData; +export declare function ResultDataFromJSON(json: any): ResultData; +export declare function ResultDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultData; +export declare function ResultDataToJSON(value?: ResultData | null): any; diff --git a/dist/esm/models/ResultData.js b/dist/esm/models/ResultData.js new file mode 100644 index 0000000..3fa4050 --- /dev/null +++ b/dist/esm/models/ResultData.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DataMacrolocalClusterFromJSON, DataMacrolocalClusterToJSON, } from './DataMacrolocalCluster'; +import { DataFulfillmentFromJSON, DataFulfillmentToJSON, } from './DataFulfillment'; +/** + * Check if a given object implements the ResultData interface. + */ +export function instanceOfResultData(value) { + return true; +} +export function ResultDataFromJSON(json) { + return ResultDataFromJSONTyped(json, false); +} +export function ResultDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fulfillments': json['fulfillments'] == null ? undefined : (json['fulfillments'].map(DataFulfillmentFromJSON)), + 'macrolocal_cluster': json['macrolocal_cluster'] == null ? undefined : DataMacrolocalClusterFromJSON(json['macrolocal_cluster']), + }; +} +export function ResultDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'fulfillments': value['fulfillments'] == null ? undefined : (value['fulfillments'].map(DataFulfillmentToJSON)), + 'macrolocal_cluster': DataMacrolocalClusterToJSON(value['macrolocal_cluster']), + }; +} diff --git a/dist/esm/models/ResultDropOffWarehouseTimeslots.d.ts b/dist/esm/models/ResultDropOffWarehouseTimeslots.d.ts new file mode 100644 index 0000000..45dcd40 --- /dev/null +++ b/dist/esm/models/ResultDropOffWarehouseTimeslots.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DropOffWarehouseTimeslotsDay } from './DropOffWarehouseTimeslotsDay'; +/** + * Таймслоты складов. + * @export + * @interface ResultDropOffWarehouseTimeslots + */ +export interface ResultDropOffWarehouseTimeslots { + /** + * Текущее время в часовом поясе склада. + * @type {string} + * @memberof ResultDropOffWarehouseTimeslots + */ + current_time_in_timezone?: string; + /** + * Таймслоты по датам. + * @type {Array} + * @memberof ResultDropOffWarehouseTimeslots + */ + days?: Array; + /** + * Часовой пояс склада. + * @type {string} + * @memberof ResultDropOffWarehouseTimeslots + */ + warehouse_timezone?: string; +} +/** + * Check if a given object implements the ResultDropOffWarehouseTimeslots interface. + */ +export declare function instanceOfResultDropOffWarehouseTimeslots(value: object): value is ResultDropOffWarehouseTimeslots; +export declare function ResultDropOffWarehouseTimeslotsFromJSON(json: any): ResultDropOffWarehouseTimeslots; +export declare function ResultDropOffWarehouseTimeslotsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultDropOffWarehouseTimeslots; +export declare function ResultDropOffWarehouseTimeslotsToJSON(value?: ResultDropOffWarehouseTimeslots | null): any; diff --git a/dist/esm/models/ResultDropOffWarehouseTimeslots.js b/dist/esm/models/ResultDropOffWarehouseTimeslots.js new file mode 100644 index 0000000..fa48a2e --- /dev/null +++ b/dist/esm/models/ResultDropOffWarehouseTimeslots.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DropOffWarehouseTimeslotsDayFromJSON, DropOffWarehouseTimeslotsDayToJSON, } from './DropOffWarehouseTimeslotsDay'; +/** + * Check if a given object implements the ResultDropOffWarehouseTimeslots interface. + */ +export function instanceOfResultDropOffWarehouseTimeslots(value) { + return true; +} +export function ResultDropOffWarehouseTimeslotsFromJSON(json) { + return ResultDropOffWarehouseTimeslotsFromJSONTyped(json, false); +} +export function ResultDropOffWarehouseTimeslotsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_time_in_timezone': json['current_time_in_timezone'] == null ? undefined : json['current_time_in_timezone'], + 'days': json['days'] == null ? undefined : (json['days'].map(DropOffWarehouseTimeslotsDayFromJSON)), + 'warehouse_timezone': json['warehouse_timezone'] == null ? undefined : json['warehouse_timezone'], + }; +} +export function ResultDropOffWarehouseTimeslotsToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_time_in_timezone': value['current_time_in_timezone'], + 'days': value['days'] == null ? undefined : (value['days'].map(DropOffWarehouseTimeslotsDayToJSON)), + 'warehouse_timezone': value['warehouse_timezone'], + }; +} diff --git a/dist/esm/models/ResultError.d.ts b/dist/esm/models/ResultError.d.ts new file mode 100644 index 0000000..7e86e0e --- /dev/null +++ b/dist/esm/models/ResultError.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ResultError + */ +export interface ResultError { + /** + * Код ошибки. + * @type {string} + * @memberof ResultError + */ + code?: string; + /** + * Тип ошибки: + * - `warning` — предупреждение; + * - `critical` — критическая ошибка. + * + * @type {string} + * @memberof ResultError + */ + status?: string; +} +/** + * Check if a given object implements the ResultError interface. + */ +export declare function instanceOfResultError(value: object): value is ResultError; +export declare function ResultErrorFromJSON(json: any): ResultError; +export declare function ResultErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultError; +export declare function ResultErrorToJSON(value?: ResultError | null): any; diff --git a/dist/esm/models/ResultError.js b/dist/esm/models/ResultError.js new file mode 100644 index 0000000..83bc409 --- /dev/null +++ b/dist/esm/models/ResultError.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ResultError interface. + */ +export function instanceOfResultError(value) { + return true; +} +export function ResultErrorFromJSON(json) { + return ResultErrorFromJSONTyped(json, false); +} +export function ResultErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function ResultErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/ResultUnprintedPosting.d.ts b/dist/esm/models/ResultUnprintedPosting.d.ts new file mode 100644 index 0000000..1aefdde --- /dev/null +++ b/dist/esm/models/ResultUnprintedPosting.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ResultUnprintedPosting + */ +export interface ResultUnprintedPosting { + /** + * Причина ошибки. + * @type {string} + * @memberof ResultUnprintedPosting + */ + msg?: string; + /** + * Номер отправления. + * @type {string} + * @memberof ResultUnprintedPosting + */ + posting_number?: string; +} +/** + * Check if a given object implements the ResultUnprintedPosting interface. + */ +export declare function instanceOfResultUnprintedPosting(value: object): value is ResultUnprintedPosting; +export declare function ResultUnprintedPostingFromJSON(json: any): ResultUnprintedPosting; +export declare function ResultUnprintedPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultUnprintedPosting; +export declare function ResultUnprintedPostingToJSON(value?: ResultUnprintedPosting | null): any; diff --git a/dist/esm/models/ResultUnprintedPosting.js b/dist/esm/models/ResultUnprintedPosting.js new file mode 100644 index 0000000..1122d03 --- /dev/null +++ b/dist/esm/models/ResultUnprintedPosting.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ResultUnprintedPosting interface. + */ +export function instanceOfResultUnprintedPosting(value) { + return true; +} +export function ResultUnprintedPostingFromJSON(json) { + return ResultUnprintedPostingFromJSONTyped(json, false); +} +export function ResultUnprintedPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'msg': json['msg'] == null ? undefined : json['msg'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +export function ResultUnprintedPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'msg': value['msg'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/ReturnSettingCourierDetails.d.ts b/dist/esm/models/ReturnSettingCourierDetails.d.ts new file mode 100644 index 0000000..9487702 --- /dev/null +++ b/dist/esm/models/ReturnSettingCourierDetails.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Настройки курьера. + * @export + * @interface ReturnSettingCourierDetails + */ +export interface ReturnSettingCourierDetails { + /** + * Количество дней, за которое вы свяжетесь с покупателем для возврата. + * @type {number} + * @memberof ReturnSettingCourierDetails + */ + contact_days?: number; +} +/** + * Check if a given object implements the ReturnSettingCourierDetails interface. + */ +export declare function instanceOfReturnSettingCourierDetails(value: object): value is ReturnSettingCourierDetails; +export declare function ReturnSettingCourierDetailsFromJSON(json: any): ReturnSettingCourierDetails; +export declare function ReturnSettingCourierDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnSettingCourierDetails; +export declare function ReturnSettingCourierDetailsToJSON(value?: ReturnSettingCourierDetails | null): any; diff --git a/dist/esm/models/ReturnSettingCourierDetails.js b/dist/esm/models/ReturnSettingCourierDetails.js new file mode 100644 index 0000000..9ce4b02 --- /dev/null +++ b/dist/esm/models/ReturnSettingCourierDetails.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnSettingCourierDetails interface. + */ +export function instanceOfReturnSettingCourierDetails(value) { + return true; +} +export function ReturnSettingCourierDetailsFromJSON(json) { + return ReturnSettingCourierDetailsFromJSONTyped(json, false); +} +export function ReturnSettingCourierDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + }; +} +export function ReturnSettingCourierDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + }; +} diff --git a/dist/esm/models/ReturnSettingTransportCompanyDetails.d.ts b/dist/esm/models/ReturnSettingTransportCompanyDetails.d.ts new file mode 100644 index 0000000..7a6a649 --- /dev/null +++ b/dist/esm/models/ReturnSettingTransportCompanyDetails.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Настройки транспортной компании. + * @export + * @interface ReturnSettingTransportCompanyDetails + */ +export interface ReturnSettingTransportCompanyDetails { + /** + * Название транспортной компании. + * @type {Array} + * @memberof ReturnSettingTransportCompanyDetails + */ + transport_company_names?: Array; + /** + * Почтовый индекс транспортной компании. + * @type {string} + * @memberof ReturnSettingTransportCompanyDetails + */ + zipcode?: string; +} +/** + * Check if a given object implements the ReturnSettingTransportCompanyDetails interface. + */ +export declare function instanceOfReturnSettingTransportCompanyDetails(value: object): value is ReturnSettingTransportCompanyDetails; +export declare function ReturnSettingTransportCompanyDetailsFromJSON(json: any): ReturnSettingTransportCompanyDetails; +export declare function ReturnSettingTransportCompanyDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnSettingTransportCompanyDetails; +export declare function ReturnSettingTransportCompanyDetailsToJSON(value?: ReturnSettingTransportCompanyDetails | null): any; diff --git a/dist/esm/models/ReturnSettingTransportCompanyDetails.js b/dist/esm/models/ReturnSettingTransportCompanyDetails.js new file mode 100644 index 0000000..cd80f00 --- /dev/null +++ b/dist/esm/models/ReturnSettingTransportCompanyDetails.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnSettingTransportCompanyDetails interface. + */ +export function instanceOfReturnSettingTransportCompanyDetails(value) { + return true; +} +export function ReturnSettingTransportCompanyDetailsFromJSON(json) { + return ReturnSettingTransportCompanyDetailsFromJSONTyped(json, false); +} +export function ReturnSettingTransportCompanyDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'transport_company_names': json['transport_company_names'] == null ? undefined : json['transport_company_names'], + 'zipcode': json['zipcode'] == null ? undefined : json['zipcode'], + }; +} +export function ReturnSettingTransportCompanyDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'transport_company_names': value['transport_company_names'], + 'zipcode': value['zipcode'], + }; +} diff --git a/dist/esm/models/ReturnsCompanyFbsInfoRequestPagination.d.ts b/dist/esm/models/ReturnsCompanyFbsInfoRequestPagination.d.ts new file mode 100644 index 0000000..8558b0c --- /dev/null +++ b/dist/esm/models/ReturnsCompanyFbsInfoRequestPagination.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Разделение ответа метода. + * @export + * @interface ReturnsCompanyFbsInfoRequestPagination + */ +export interface ReturnsCompanyFbsInfoRequestPagination { + /** + * Идентификатор последнего drop-off пункта на странице. Для первого запроса оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `id` последнего drop-off пункта из ответа предыдущего запроса. + * + * @type {number} + * @memberof ReturnsCompanyFbsInfoRequestPagination + */ + last_id?: number; + /** + * Количество drop-off пунктов на странице. Максимум — 500. + * @type {number} + * @memberof ReturnsCompanyFbsInfoRequestPagination + */ + limit: number; +} +/** + * Check if a given object implements the ReturnsCompanyFbsInfoRequestPagination interface. + */ +export declare function instanceOfReturnsCompanyFbsInfoRequestPagination(value: object): value is ReturnsCompanyFbsInfoRequestPagination; +export declare function ReturnsCompanyFbsInfoRequestPaginationFromJSON(json: any): ReturnsCompanyFbsInfoRequestPagination; +export declare function ReturnsCompanyFbsInfoRequestPaginationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsCompanyFbsInfoRequestPagination; +export declare function ReturnsCompanyFbsInfoRequestPaginationToJSON(value?: ReturnsCompanyFbsInfoRequestPagination | null): any; diff --git a/dist/esm/models/ReturnsCompanyFbsInfoRequestPagination.js b/dist/esm/models/ReturnsCompanyFbsInfoRequestPagination.js new file mode 100644 index 0000000..a52a99e --- /dev/null +++ b/dist/esm/models/ReturnsCompanyFbsInfoRequestPagination.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsCompanyFbsInfoRequestPagination interface. + */ +export function instanceOfReturnsCompanyFbsInfoRequestPagination(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function ReturnsCompanyFbsInfoRequestPaginationFromJSON(json) { + return ReturnsCompanyFbsInfoRequestPaginationFromJSONTyped(json, false); +} +export function ReturnsCompanyFbsInfoRequestPaginationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +export function ReturnsCompanyFbsInfoRequestPaginationToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/ReturnsCompanyFbsInfoResponseDropOffPoints.d.ts b/dist/esm/models/ReturnsCompanyFbsInfoResponseDropOffPoints.d.ts new file mode 100644 index 0000000..baa555a --- /dev/null +++ b/dist/esm/models/ReturnsCompanyFbsInfoResponseDropOffPoints.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsCompanyFbsInfoResponsePassInfo } from './ReturnsCompanyFbsInfoResponsePassInfo'; +/** + * + * @export + * @interface ReturnsCompanyFbsInfoResponseDropOffPoints + */ +export interface ReturnsCompanyFbsInfoResponseDropOffPoints { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + address?: string; + /** + * Количество коробок в drop-off пункте. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + box_count?: number; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + id?: number; + /** + * Название drop-off пункта. + * @type {string} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + name?: string; + /** + * + * @type {ReturnsCompanyFbsInfoResponsePassInfo} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + pass_info?: ReturnsCompanyFbsInfoResponsePassInfo; + /** + * Идентификатор склада, на который приедет отгрузка. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + place_id?: number; + /** + * Количество возвратов в drop-off пункте. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + returns_count?: number; + /** + * Смещение часового пояса времени отгрузки от UTC-0. + * @type {string} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + utc_offset?: string; + /** + * Идентификатор складов продавца. + * @type {Array} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + warehouses_ids?: Array; +} +/** + * Check if a given object implements the ReturnsCompanyFbsInfoResponseDropOffPoints interface. + */ +export declare function instanceOfReturnsCompanyFbsInfoResponseDropOffPoints(value: object): value is ReturnsCompanyFbsInfoResponseDropOffPoints; +export declare function ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON(json: any): ReturnsCompanyFbsInfoResponseDropOffPoints; +export declare function ReturnsCompanyFbsInfoResponseDropOffPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsCompanyFbsInfoResponseDropOffPoints; +export declare function ReturnsCompanyFbsInfoResponseDropOffPointsToJSON(value?: ReturnsCompanyFbsInfoResponseDropOffPoints | null): any; diff --git a/dist/esm/models/ReturnsCompanyFbsInfoResponseDropOffPoints.js b/dist/esm/models/ReturnsCompanyFbsInfoResponseDropOffPoints.js new file mode 100644 index 0000000..e0b128b --- /dev/null +++ b/dist/esm/models/ReturnsCompanyFbsInfoResponseDropOffPoints.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReturnsCompanyFbsInfoResponsePassInfoFromJSON, ReturnsCompanyFbsInfoResponsePassInfoToJSON, } from './ReturnsCompanyFbsInfoResponsePassInfo'; +/** + * Check if a given object implements the ReturnsCompanyFbsInfoResponseDropOffPoints interface. + */ +export function instanceOfReturnsCompanyFbsInfoResponseDropOffPoints(value) { + return true; +} +export function ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON(json) { + return ReturnsCompanyFbsInfoResponseDropOffPointsFromJSONTyped(json, false); +} +export function ReturnsCompanyFbsInfoResponseDropOffPointsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'box_count': json['box_count'] == null ? undefined : json['box_count'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'pass_info': json['pass_info'] == null ? undefined : ReturnsCompanyFbsInfoResponsePassInfoFromJSON(json['pass_info']), + 'place_id': json['place_id'] == null ? undefined : json['place_id'], + 'returns_count': json['returns_count'] == null ? undefined : json['returns_count'], + 'utc_offset': json['utc_offset'] == null ? undefined : json['utc_offset'], + 'warehouses_ids': json['warehouses_ids'] == null ? undefined : json['warehouses_ids'], + }; +} +export function ReturnsCompanyFbsInfoResponseDropOffPointsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'box_count': value['box_count'], + 'id': value['id'], + 'name': value['name'], + 'pass_info': ReturnsCompanyFbsInfoResponsePassInfoToJSON(value['pass_info']), + 'place_id': value['place_id'], + 'returns_count': value['returns_count'], + 'utc_offset': value['utc_offset'], + 'warehouses_ids': value['warehouses_ids'], + }; +} diff --git a/dist/esm/models/ReturnsCompanyFbsInfoResponsePassInfo.d.ts b/dist/esm/models/ReturnsCompanyFbsInfoResponsePassInfo.d.ts new file mode 100644 index 0000000..f5050cc --- /dev/null +++ b/dist/esm/models/ReturnsCompanyFbsInfoResponsePassInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о пропуске. + * @export + * @interface ReturnsCompanyFbsInfoResponsePassInfo + */ +export interface ReturnsCompanyFbsInfoResponsePassInfo { + /** + * Количество пропусков на drop-off пункт. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponsePassInfo + */ + count?: number; + /** + * Признак, нужен ли пропуск на drop-off пункт. + * @type {boolean} + * @memberof ReturnsCompanyFbsInfoResponsePassInfo + */ + is_required?: boolean; +} +/** + * Check if a given object implements the ReturnsCompanyFbsInfoResponsePassInfo interface. + */ +export declare function instanceOfReturnsCompanyFbsInfoResponsePassInfo(value: object): value is ReturnsCompanyFbsInfoResponsePassInfo; +export declare function ReturnsCompanyFbsInfoResponsePassInfoFromJSON(json: any): ReturnsCompanyFbsInfoResponsePassInfo; +export declare function ReturnsCompanyFbsInfoResponsePassInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsCompanyFbsInfoResponsePassInfo; +export declare function ReturnsCompanyFbsInfoResponsePassInfoToJSON(value?: ReturnsCompanyFbsInfoResponsePassInfo | null): any; diff --git a/dist/esm/models/ReturnsCompanyFbsInfoResponsePassInfo.js b/dist/esm/models/ReturnsCompanyFbsInfoResponsePassInfo.js new file mode 100644 index 0000000..66e653e --- /dev/null +++ b/dist/esm/models/ReturnsCompanyFbsInfoResponsePassInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsCompanyFbsInfoResponsePassInfo interface. + */ +export function instanceOfReturnsCompanyFbsInfoResponsePassInfo(value) { + return true; +} +export function ReturnsCompanyFbsInfoResponsePassInfoFromJSON(json) { + return ReturnsCompanyFbsInfoResponsePassInfoFromJSONTyped(json, false); +} +export function ReturnsCompanyFbsInfoResponsePassInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + }; +} +export function ReturnsCompanyFbsInfoResponsePassInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'is_required': value['is_required'], + }; +} diff --git a/dist/esm/models/ReturnsRfbsGetResponseReturns.d.ts b/dist/esm/models/ReturnsRfbsGetResponseReturns.d.ts new file mode 100644 index 0000000..9620d36 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetResponseReturns.d.ts @@ -0,0 +1,135 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsRfbsGetV2ResponseAvailableAction } from './ReturnsRfbsGetV2ResponseAvailableAction'; +import type { ReturnsRfbsGetV2ResponseReturnReason } from './ReturnsRfbsGetV2ResponseReturnReason'; +import type { ReturnsRfbsGetV2ResponseClientReturnMethodType } from './ReturnsRfbsGetV2ResponseClientReturnMethodType'; +import type { V2ReturnsRfbsGetV2ResponseState } from './V2ReturnsRfbsGetV2ResponseState'; +import type { V2Product } from './V2Product'; +import type { ReturnsRfbsGetV2ResponseRejectionReason } from './ReturnsRfbsGetV2ResponseRejectionReason'; +/** + * Данные о заявке. + * @export + * @interface ReturnsRfbsGetResponseReturns + */ +export interface ReturnsRfbsGetResponseReturns { + /** + * Данные о доступных действиях с заявкой. + * @type {Array} + * @memberof ReturnsRfbsGetResponseReturns + */ + available_actions?: Array; + /** + * Имя покупателя. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + * @deprecated + */ + client_name?: string; + /** + * Ссылки на фотографии товара. + * @type {Array} + * @memberof ReturnsRfbsGetResponseReturns + */ + client_photo?: Array; + /** + * + * @type {ReturnsRfbsGetV2ResponseClientReturnMethodType} + * @memberof ReturnsRfbsGetResponseReturns + */ + client_return_method_type?: ReturnsRfbsGetV2ResponseClientReturnMethodType; + /** + * Комментарий покупателя. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + comment?: string; + /** + * Дата создания заявки. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + created_at?: string; + /** + * Номер заказа. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + posting_number?: string; + /** + * + * @type {V2Product} + * @memberof ReturnsRfbsGetResponseReturns + */ + product?: V2Product; + /** + * Комментарий об отклонении заявки. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + rejection_comment?: string; + /** + * Данные о причине отклонения заявки. + * @type {Array} + * @memberof ReturnsRfbsGetResponseReturns + */ + rejection_reason?: Array; + /** + * Способ возврата товара. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + * @deprecated + */ + return_method_description?: string; + /** + * Номер заявки на возврат. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + return_number?: string; + /** + * + * @type {ReturnsRfbsGetV2ResponseReturnReason} + * @memberof ReturnsRfbsGetResponseReturns + */ + return_reason?: ReturnsRfbsGetV2ResponseReturnReason; + /** + * Трек-номер почтового отправления. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + ru_post_tracking_number?: string; + /** + * + * @type {V2ReturnsRfbsGetV2ResponseState} + * @memberof ReturnsRfbsGetResponseReturns + */ + state?: V2ReturnsRfbsGetV2ResponseState; + /** + * Идентификатор склада. + * @type {number} + * @memberof ReturnsRfbsGetResponseReturns + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the ReturnsRfbsGetResponseReturns interface. + */ +export declare function instanceOfReturnsRfbsGetResponseReturns(value: object): value is ReturnsRfbsGetResponseReturns; +export declare function ReturnsRfbsGetResponseReturnsFromJSON(json: any): ReturnsRfbsGetResponseReturns; +export declare function ReturnsRfbsGetResponseReturnsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetResponseReturns; +export declare function ReturnsRfbsGetResponseReturnsToJSON(value?: ReturnsRfbsGetResponseReturns | null): any; diff --git a/dist/esm/models/ReturnsRfbsGetResponseReturns.js b/dist/esm/models/ReturnsRfbsGetResponseReturns.js new file mode 100644 index 0000000..3d3f15d --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetResponseReturns.js @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReturnsRfbsGetV2ResponseAvailableActionFromJSON, ReturnsRfbsGetV2ResponseAvailableActionToJSON, } from './ReturnsRfbsGetV2ResponseAvailableAction'; +import { ReturnsRfbsGetV2ResponseReturnReasonFromJSON, ReturnsRfbsGetV2ResponseReturnReasonToJSON, } from './ReturnsRfbsGetV2ResponseReturnReason'; +import { ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON, ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON, } from './ReturnsRfbsGetV2ResponseClientReturnMethodType'; +import { V2ReturnsRfbsGetV2ResponseStateFromJSON, V2ReturnsRfbsGetV2ResponseStateToJSON, } from './V2ReturnsRfbsGetV2ResponseState'; +import { V2ProductFromJSON, V2ProductToJSON, } from './V2Product'; +import { ReturnsRfbsGetV2ResponseRejectionReasonFromJSON, ReturnsRfbsGetV2ResponseRejectionReasonToJSON, } from './ReturnsRfbsGetV2ResponseRejectionReason'; +/** + * Check if a given object implements the ReturnsRfbsGetResponseReturns interface. + */ +export function instanceOfReturnsRfbsGetResponseReturns(value) { + return true; +} +export function ReturnsRfbsGetResponseReturnsFromJSON(json) { + return ReturnsRfbsGetResponseReturnsFromJSONTyped(json, false); +} +export function ReturnsRfbsGetResponseReturnsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_actions': json['available_actions'] == null ? undefined : (json['available_actions'].map(ReturnsRfbsGetV2ResponseAvailableActionFromJSON)), + 'client_name': json['client_name'] == null ? undefined : json['client_name'], + 'client_photo': json['client_photo'] == null ? undefined : json['client_photo'], + 'client_return_method_type': json['client_return_method_type'] == null ? undefined : ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON(json['client_return_method_type']), + 'comment': json['comment'] == null ? undefined : json['comment'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'product': json['product'] == null ? undefined : V2ProductFromJSON(json['product']), + 'rejection_comment': json['rejection_comment'] == null ? undefined : json['rejection_comment'], + 'rejection_reason': json['rejection_reason'] == null ? undefined : (json['rejection_reason'].map(ReturnsRfbsGetV2ResponseRejectionReasonFromJSON)), + 'return_method_description': json['return_method_description'] == null ? undefined : json['return_method_description'], + 'return_number': json['return_number'] == null ? undefined : json['return_number'], + 'return_reason': json['return_reason'] == null ? undefined : ReturnsRfbsGetV2ResponseReturnReasonFromJSON(json['return_reason']), + 'ru_post_tracking_number': json['ru_post_tracking_number'] == null ? undefined : json['ru_post_tracking_number'], + 'state': json['state'] == null ? undefined : V2ReturnsRfbsGetV2ResponseStateFromJSON(json['state']), + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function ReturnsRfbsGetResponseReturnsToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_actions': value['available_actions'] == null ? undefined : (value['available_actions'].map(ReturnsRfbsGetV2ResponseAvailableActionToJSON)), + 'client_name': value['client_name'], + 'client_photo': value['client_photo'], + 'client_return_method_type': ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON(value['client_return_method_type']), + 'comment': value['comment'], + 'created_at': value['created_at'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'product': V2ProductToJSON(value['product']), + 'rejection_comment': value['rejection_comment'], + 'rejection_reason': value['rejection_reason'] == null ? undefined : (value['rejection_reason'].map(ReturnsRfbsGetV2ResponseRejectionReasonToJSON)), + 'return_method_description': value['return_method_description'], + 'return_number': value['return_number'], + 'return_reason': ReturnsRfbsGetV2ResponseReturnReasonToJSON(value['return_reason']), + 'ru_post_tracking_number': value['ru_post_tracking_number'], + 'state': V2ReturnsRfbsGetV2ResponseStateToJSON(value['state']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/ReturnsRfbsGetV2ResponseAvailableAction.d.ts b/dist/esm/models/ReturnsRfbsGetV2ResponseAvailableAction.d.ts new file mode 100644 index 0000000..f8709ab --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetV2ResponseAvailableAction.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReturnsRfbsGetV2ResponseAvailableAction + */ +export interface ReturnsRfbsGetV2ResponseAvailableAction { + /** + * Идентификатор действия. + * @type {number} + * @memberof ReturnsRfbsGetV2ResponseAvailableAction + */ + id?: number; + /** + * Название действия. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseAvailableAction + */ + name?: string; +} +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseAvailableAction interface. + */ +export declare function instanceOfReturnsRfbsGetV2ResponseAvailableAction(value: object): value is ReturnsRfbsGetV2ResponseAvailableAction; +export declare function ReturnsRfbsGetV2ResponseAvailableActionFromJSON(json: any): ReturnsRfbsGetV2ResponseAvailableAction; +export declare function ReturnsRfbsGetV2ResponseAvailableActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetV2ResponseAvailableAction; +export declare function ReturnsRfbsGetV2ResponseAvailableActionToJSON(value?: ReturnsRfbsGetV2ResponseAvailableAction | null): any; diff --git a/dist/esm/models/ReturnsRfbsGetV2ResponseAvailableAction.js b/dist/esm/models/ReturnsRfbsGetV2ResponseAvailableAction.js new file mode 100644 index 0000000..4762e31 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetV2ResponseAvailableAction.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseAvailableAction interface. + */ +export function instanceOfReturnsRfbsGetV2ResponseAvailableAction(value) { + return true; +} +export function ReturnsRfbsGetV2ResponseAvailableActionFromJSON(json) { + return ReturnsRfbsGetV2ResponseAvailableActionFromJSONTyped(json, false); +} +export function ReturnsRfbsGetV2ResponseAvailableActionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function ReturnsRfbsGetV2ResponseAvailableActionToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.d.ts b/dist/esm/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.d.ts new file mode 100644 index 0000000..61e177d --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о способе возврата. + * @export + * @interface ReturnsRfbsGetV2ResponseClientReturnMethodType + */ +export interface ReturnsRfbsGetV2ResponseClientReturnMethodType { + /** + * Идентификатор. + * @type {number} + * @memberof ReturnsRfbsGetV2ResponseClientReturnMethodType + */ + id?: number; + /** + * Название. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseClientReturnMethodType + */ + name?: string; +} +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseClientReturnMethodType interface. + */ +export declare function instanceOfReturnsRfbsGetV2ResponseClientReturnMethodType(value: object): value is ReturnsRfbsGetV2ResponseClientReturnMethodType; +export declare function ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON(json: any): ReturnsRfbsGetV2ResponseClientReturnMethodType; +export declare function ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetV2ResponseClientReturnMethodType; +export declare function ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON(value?: ReturnsRfbsGetV2ResponseClientReturnMethodType | null): any; diff --git a/dist/esm/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.js b/dist/esm/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.js new file mode 100644 index 0000000..7344e80 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseClientReturnMethodType interface. + */ +export function instanceOfReturnsRfbsGetV2ResponseClientReturnMethodType(value) { + return true; +} +export function ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON(json) { + return ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSONTyped(json, false); +} +export function ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/ReturnsRfbsGetV2ResponseRejectionReason.d.ts b/dist/esm/models/ReturnsRfbsGetV2ResponseRejectionReason.d.ts new file mode 100644 index 0000000..ff97344 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetV2ResponseRejectionReason.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReturnsRfbsGetV2ResponseRejectionReason + */ +export interface ReturnsRfbsGetV2ResponseRejectionReason { + /** + * Подсказка о дальнейших действиях с возвратом. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseRejectionReason + */ + hint?: string; + /** + * Идентификатор причины. + * @type {number} + * @memberof ReturnsRfbsGetV2ResponseRejectionReason + */ + id?: number; + /** + * Признак, нужно ли прикладывать комментарий. + * @type {boolean} + * @memberof ReturnsRfbsGetV2ResponseRejectionReason + */ + is_comment_required?: boolean; + /** + * Описание причины. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseRejectionReason + */ + name?: string; +} +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseRejectionReason interface. + */ +export declare function instanceOfReturnsRfbsGetV2ResponseRejectionReason(value: object): value is ReturnsRfbsGetV2ResponseRejectionReason; +export declare function ReturnsRfbsGetV2ResponseRejectionReasonFromJSON(json: any): ReturnsRfbsGetV2ResponseRejectionReason; +export declare function ReturnsRfbsGetV2ResponseRejectionReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetV2ResponseRejectionReason; +export declare function ReturnsRfbsGetV2ResponseRejectionReasonToJSON(value?: ReturnsRfbsGetV2ResponseRejectionReason | null): any; diff --git a/dist/esm/models/ReturnsRfbsGetV2ResponseRejectionReason.js b/dist/esm/models/ReturnsRfbsGetV2ResponseRejectionReason.js new file mode 100644 index 0000000..ac8e380 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetV2ResponseRejectionReason.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseRejectionReason interface. + */ +export function instanceOfReturnsRfbsGetV2ResponseRejectionReason(value) { + return true; +} +export function ReturnsRfbsGetV2ResponseRejectionReasonFromJSON(json) { + return ReturnsRfbsGetV2ResponseRejectionReasonFromJSONTyped(json, false); +} +export function ReturnsRfbsGetV2ResponseRejectionReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'hint': json['hint'] == null ? undefined : json['hint'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_comment_required': json['is_comment_required'] == null ? undefined : json['is_comment_required'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function ReturnsRfbsGetV2ResponseRejectionReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'hint': value['hint'], + 'id': value['id'], + 'is_comment_required': value['is_comment_required'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/ReturnsRfbsGetV2ResponseReturnReason.d.ts b/dist/esm/models/ReturnsRfbsGetV2ResponseReturnReason.d.ts new file mode 100644 index 0000000..7b2aa65 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetV2ResponseReturnReason.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о причине возврата. + * @export + * @interface ReturnsRfbsGetV2ResponseReturnReason + */ +export interface ReturnsRfbsGetV2ResponseReturnReason { + /** + * Идентификатор причины. + * @type {number} + * @memberof ReturnsRfbsGetV2ResponseReturnReason + */ + id?: number; + /** + * Признак, является ли товар бракованным. + * @type {boolean} + * @memberof ReturnsRfbsGetV2ResponseReturnReason + */ + is_defect?: boolean; + /** + * Описание причины. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseReturnReason + */ + name?: string; +} +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseReturnReason interface. + */ +export declare function instanceOfReturnsRfbsGetV2ResponseReturnReason(value: object): value is ReturnsRfbsGetV2ResponseReturnReason; +export declare function ReturnsRfbsGetV2ResponseReturnReasonFromJSON(json: any): ReturnsRfbsGetV2ResponseReturnReason; +export declare function ReturnsRfbsGetV2ResponseReturnReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetV2ResponseReturnReason; +export declare function ReturnsRfbsGetV2ResponseReturnReasonToJSON(value?: ReturnsRfbsGetV2ResponseReturnReason | null): any; diff --git a/dist/esm/models/ReturnsRfbsGetV2ResponseReturnReason.js b/dist/esm/models/ReturnsRfbsGetV2ResponseReturnReason.js new file mode 100644 index 0000000..988efb3 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsGetV2ResponseReturnReason.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseReturnReason interface. + */ +export function instanceOfReturnsRfbsGetV2ResponseReturnReason(value) { + return true; +} +export function ReturnsRfbsGetV2ResponseReturnReasonFromJSON(json) { + return ReturnsRfbsGetV2ResponseReturnReasonFromJSONTyped(json, false); +} +export function ReturnsRfbsGetV2ResponseReturnReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'is_defect': json['is_defect'] == null ? undefined : json['is_defect'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function ReturnsRfbsGetV2ResponseReturnReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'is_defect': value['is_defect'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/ReturnsRfbsListResponseReturns.d.ts b/dist/esm/models/ReturnsRfbsListResponseReturns.d.ts new file mode 100644 index 0000000..0ae0f54 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsListResponseReturns.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ReturnsRfbsListV2ResponseState } from './V2ReturnsRfbsListV2ResponseState'; +import type { V2Product } from './V2Product'; +/** + * Данные о заявках. + * @export + * @interface ReturnsRfbsListResponseReturns + */ +export interface ReturnsRfbsListResponseReturns { + /** + * Имя покупателя. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + * @deprecated + */ + client_name?: string; + /** + * Дата создания заявки. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + */ + created_at?: string; + /** + * Номер заказа. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + */ + posting_number?: string; + /** + * + * @type {V2Product} + * @memberof ReturnsRfbsListResponseReturns + */ + product?: V2Product; + /** + * Идентификатор заявки на возврат. + * @type {number} + * @memberof ReturnsRfbsListResponseReturns + */ + return_id?: number; + /** + * Номер заявки на возврат. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + */ + return_number?: string; + /** + * + * @type {V2ReturnsRfbsListV2ResponseState} + * @memberof ReturnsRfbsListResponseReturns + */ + state?: V2ReturnsRfbsListV2ResponseState; +} +/** + * Check if a given object implements the ReturnsRfbsListResponseReturns interface. + */ +export declare function instanceOfReturnsRfbsListResponseReturns(value: object): value is ReturnsRfbsListResponseReturns; +export declare function ReturnsRfbsListResponseReturnsFromJSON(json: any): ReturnsRfbsListResponseReturns; +export declare function ReturnsRfbsListResponseReturnsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsListResponseReturns; +export declare function ReturnsRfbsListResponseReturnsToJSON(value?: ReturnsRfbsListResponseReturns | null): any; diff --git a/dist/esm/models/ReturnsRfbsListResponseReturns.js b/dist/esm/models/ReturnsRfbsListResponseReturns.js new file mode 100644 index 0000000..7c5b3b4 --- /dev/null +++ b/dist/esm/models/ReturnsRfbsListResponseReturns.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2ReturnsRfbsListV2ResponseStateFromJSON, V2ReturnsRfbsListV2ResponseStateToJSON, } from './V2ReturnsRfbsListV2ResponseState'; +import { V2ProductFromJSON, V2ProductToJSON, } from './V2Product'; +/** + * Check if a given object implements the ReturnsRfbsListResponseReturns interface. + */ +export function instanceOfReturnsRfbsListResponseReturns(value) { + return true; +} +export function ReturnsRfbsListResponseReturnsFromJSON(json) { + return ReturnsRfbsListResponseReturnsFromJSONTyped(json, false); +} +export function ReturnsRfbsListResponseReturnsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'client_name': json['client_name'] == null ? undefined : json['client_name'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'product': json['product'] == null ? undefined : V2ProductFromJSON(json['product']), + 'return_id': json['return_id'] == null ? undefined : json['return_id'], + 'return_number': json['return_number'] == null ? undefined : json['return_number'], + 'state': json['state'] == null ? undefined : V2ReturnsRfbsListV2ResponseStateFromJSON(json['state']), + }; +} +export function ReturnsRfbsListResponseReturnsToJSON(value) { + if (value == null) { + return value; + } + return { + 'client_name': value['client_name'], + 'created_at': value['created_at'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'product': V2ProductToJSON(value['product']), + 'return_id': value['return_id'], + 'return_number': value['return_number'], + 'state': V2ReturnsRfbsListV2ResponseStateToJSON(value['state']), + }; +} diff --git a/dist/esm/models/ReturnsSettingsUtilizationHistoryResponseHistory.d.ts b/dist/esm/models/ReturnsSettingsUtilizationHistoryResponseHistory.d.ts new file mode 100644 index 0000000..83538f0 --- /dev/null +++ b/dist/esm/models/ReturnsSettingsUtilizationHistoryResponseHistory.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReturnsSettingsUtilizationHistoryResponseHistory + */ +export interface ReturnsSettingsUtilizationHistoryResponseHistory { + /** + * Описание события. + * @type {Array} + * @memberof ReturnsSettingsUtilizationHistoryResponseHistory + */ + descriptions?: Array; + /** + * Дата обновления. + * @type {string} + * @memberof ReturnsSettingsUtilizationHistoryResponseHistory + */ + updated_at?: string; + /** + * Имя пользователя. + * @type {string} + * @memberof ReturnsSettingsUtilizationHistoryResponseHistory + */ + user_name?: string; +} +/** + * Check if a given object implements the ReturnsSettingsUtilizationHistoryResponseHistory interface. + */ +export declare function instanceOfReturnsSettingsUtilizationHistoryResponseHistory(value: object): value is ReturnsSettingsUtilizationHistoryResponseHistory; +export declare function ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON(json: any): ReturnsSettingsUtilizationHistoryResponseHistory; +export declare function ReturnsSettingsUtilizationHistoryResponseHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsSettingsUtilizationHistoryResponseHistory; +export declare function ReturnsSettingsUtilizationHistoryResponseHistoryToJSON(value?: ReturnsSettingsUtilizationHistoryResponseHistory | null): any; diff --git a/dist/esm/models/ReturnsSettingsUtilizationHistoryResponseHistory.js b/dist/esm/models/ReturnsSettingsUtilizationHistoryResponseHistory.js new file mode 100644 index 0000000..79c575a --- /dev/null +++ b/dist/esm/models/ReturnsSettingsUtilizationHistoryResponseHistory.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsSettingsUtilizationHistoryResponseHistory interface. + */ +export function instanceOfReturnsSettingsUtilizationHistoryResponseHistory(value) { + return true; +} +export function ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON(json) { + return ReturnsSettingsUtilizationHistoryResponseHistoryFromJSONTyped(json, false); +} +export function ReturnsSettingsUtilizationHistoryResponseHistoryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'descriptions': json['descriptions'] == null ? undefined : json['descriptions'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'user_name': json['user_name'] == null ? undefined : json['user_name'], + }; +} +export function ReturnsSettingsUtilizationHistoryResponseHistoryToJSON(value) { + if (value == null) { + return value; + } + return { + 'descriptions': value['descriptions'], + 'updated_at': value['updated_at'], + 'user_name': value['user_name'], + }; +} diff --git a/dist/esm/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.d.ts b/dist/esm/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.d.ts new file mode 100644 index 0000000..df50c57 --- /dev/null +++ b/dist/esm/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UtilizationMoney } from './UtilizationMoney'; +import type { UtilizationDefectsMoney } from './UtilizationDefectsMoney'; +/** + * Настройки утилизации. + * @export + * @interface ReturnsSettingsUtilizationInfoResponseUtilizationSettings + */ +export interface ReturnsSettingsUtilizationInfoResponseUtilizationSettings { + /** + * + * @type {UtilizationMoney} + * @memberof ReturnsSettingsUtilizationInfoResponseUtilizationSettings + */ + utilization_price?: UtilizationMoney; + /** + * + * @type {UtilizationDefectsMoney} + * @memberof ReturnsSettingsUtilizationInfoResponseUtilizationSettings + */ + utilization_price_defects?: UtilizationDefectsMoney; +} +/** + * Check if a given object implements the ReturnsSettingsUtilizationInfoResponseUtilizationSettings interface. + */ +export declare function instanceOfReturnsSettingsUtilizationInfoResponseUtilizationSettings(value: object): value is ReturnsSettingsUtilizationInfoResponseUtilizationSettings; +export declare function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON(json: any): ReturnsSettingsUtilizationInfoResponseUtilizationSettings; +export declare function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsSettingsUtilizationInfoResponseUtilizationSettings; +export declare function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON(value?: ReturnsSettingsUtilizationInfoResponseUtilizationSettings | null): any; diff --git a/dist/esm/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.js b/dist/esm/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.js new file mode 100644 index 0000000..d3da0f9 --- /dev/null +++ b/dist/esm/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UtilizationMoneyFromJSON, UtilizationMoneyToJSON, } from './UtilizationMoney'; +import { UtilizationDefectsMoneyFromJSON, UtilizationDefectsMoneyToJSON, } from './UtilizationDefectsMoney'; +/** + * Check if a given object implements the ReturnsSettingsUtilizationInfoResponseUtilizationSettings interface. + */ +export function instanceOfReturnsSettingsUtilizationInfoResponseUtilizationSettings(value) { + return true; +} +export function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON(json) { + return ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSONTyped(json, false); +} +export function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'utilization_price': json['utilization_price'] == null ? undefined : UtilizationMoneyFromJSON(json['utilization_price']), + 'utilization_price_defects': json['utilization_price_defects'] == null ? undefined : UtilizationDefectsMoneyFromJSON(json['utilization_price_defects']), + }; +} +export function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'utilization_price': UtilizationMoneyToJSON(value['utilization_price']), + 'utilization_price_defects': UtilizationDefectsMoneyToJSON(value['utilization_price_defects']), + }; +} diff --git a/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.d.ts b/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.d.ts new file mode 100644 index 0000000..4857b10 --- /dev/null +++ b/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Максимальная цена автоутилизации для товаров без дефектов. + * @export + * @interface ReturnsSettingsUtilizationUpdateRequestUtilizationPrice + */ +export interface ReturnsSettingsUtilizationUpdateRequestUtilizationPrice { + /** + * `true`, если автоутилизация для товаров без дефектов включена. + * + * @type {boolean} + * @memberof ReturnsSettingsUtilizationUpdateRequestUtilizationPrice + */ + enabled: boolean; + /** + * Значение цены. Параметр обязательный, если `enabled = true`. + * @type {number} + * @memberof ReturnsSettingsUtilizationUpdateRequestUtilizationPrice + */ + value?: number; +} +/** + * Check if a given object implements the ReturnsSettingsUtilizationUpdateRequestUtilizationPrice interface. + */ +export declare function instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPrice(value: object): value is ReturnsSettingsUtilizationUpdateRequestUtilizationPrice; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON(json: any): ReturnsSettingsUtilizationUpdateRequestUtilizationPrice; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsSettingsUtilizationUpdateRequestUtilizationPrice; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON(value?: ReturnsSettingsUtilizationUpdateRequestUtilizationPrice | null): any; diff --git a/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.js b/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.js new file mode 100644 index 0000000..b7506f5 --- /dev/null +++ b/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsSettingsUtilizationUpdateRequestUtilizationPrice interface. + */ +export function instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPrice(value) { + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + return true; +} +export function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON(json) { + return ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSONTyped(json, false); +} +export function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.d.ts b/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.d.ts new file mode 100644 index 0000000..9ab1679 --- /dev/null +++ b/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Максимальная цена автоутилизации для товаров с дефектами. + * @export + * @interface ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects + */ +export interface ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects { + /** + * `true`, если автоутилизация для товаров с дефектами включена. + * + * @type {boolean} + * @memberof ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects + */ + enabled: boolean; + /** + * Значение цены. Параметр обязательный, если `enabled = true`. + * @type {number} + * @memberof ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects + */ + value?: number; +} +/** + * Check if a given object implements the ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects interface. + */ +export declare function instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects(value: object): value is ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON(json: any): ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON(value?: ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects | null): any; diff --git a/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.js b/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.js new file mode 100644 index 0000000..b58db2f --- /dev/null +++ b/dist/esm/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects interface. + */ +export function instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects(value) { + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + return true; +} +export function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON(json) { + return ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSONTyped(json, false); +} +export function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/ReviewInfoResponsePhoto.d.ts b/dist/esm/models/ReviewInfoResponsePhoto.d.ts new file mode 100644 index 0000000..2d7059c --- /dev/null +++ b/dist/esm/models/ReviewInfoResponsePhoto.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewInfoResponsePhoto + */ +export interface ReviewInfoResponsePhoto { + /** + * Высота. + * @type {number} + * @memberof ReviewInfoResponsePhoto + */ + height?: number; + /** + * Ссылка на изображение. + * @type {string} + * @memberof ReviewInfoResponsePhoto + */ + url?: string; + /** + * Ширина. + * @type {number} + * @memberof ReviewInfoResponsePhoto + */ + width?: number; +} +/** + * Check if a given object implements the ReviewInfoResponsePhoto interface. + */ +export declare function instanceOfReviewInfoResponsePhoto(value: object): value is ReviewInfoResponsePhoto; +export declare function ReviewInfoResponsePhotoFromJSON(json: any): ReviewInfoResponsePhoto; +export declare function ReviewInfoResponsePhotoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewInfoResponsePhoto; +export declare function ReviewInfoResponsePhotoToJSON(value?: ReviewInfoResponsePhoto | null): any; diff --git a/dist/esm/models/ReviewInfoResponsePhoto.js b/dist/esm/models/ReviewInfoResponsePhoto.js new file mode 100644 index 0000000..f211c40 --- /dev/null +++ b/dist/esm/models/ReviewInfoResponsePhoto.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewInfoResponsePhoto interface. + */ +export function instanceOfReviewInfoResponsePhoto(value) { + return true; +} +export function ReviewInfoResponsePhotoFromJSON(json) { + return ReviewInfoResponsePhotoFromJSONTyped(json, false); +} +export function ReviewInfoResponsePhotoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'url': json['url'] == null ? undefined : json['url'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function ReviewInfoResponsePhotoToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'url': value['url'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/ReviewInfoResponseVideo.d.ts b/dist/esm/models/ReviewInfoResponseVideo.d.ts new file mode 100644 index 0000000..da94891 --- /dev/null +++ b/dist/esm/models/ReviewInfoResponseVideo.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewInfoResponseVideo + */ +export interface ReviewInfoResponseVideo { + /** + * Высота. + * @type {number} + * @memberof ReviewInfoResponseVideo + */ + height?: number; + /** + * Ссылка на превью видео. + * @type {string} + * @memberof ReviewInfoResponseVideo + */ + preview_url?: string; + /** + * Ссылка на короткое видео. + * @type {string} + * @memberof ReviewInfoResponseVideo + */ + short_video_preview_url?: string; + /** + * Ссылка на видео. + * @type {string} + * @memberof ReviewInfoResponseVideo + */ + url?: string; + /** + * Ширина. + * @type {number} + * @memberof ReviewInfoResponseVideo + */ + width?: number; +} +/** + * Check if a given object implements the ReviewInfoResponseVideo interface. + */ +export declare function instanceOfReviewInfoResponseVideo(value: object): value is ReviewInfoResponseVideo; +export declare function ReviewInfoResponseVideoFromJSON(json: any): ReviewInfoResponseVideo; +export declare function ReviewInfoResponseVideoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewInfoResponseVideo; +export declare function ReviewInfoResponseVideoToJSON(value?: ReviewInfoResponseVideo | null): any; diff --git a/dist/esm/models/ReviewInfoResponseVideo.js b/dist/esm/models/ReviewInfoResponseVideo.js new file mode 100644 index 0000000..f686f2d --- /dev/null +++ b/dist/esm/models/ReviewInfoResponseVideo.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewInfoResponseVideo interface. + */ +export function instanceOfReviewInfoResponseVideo(value) { + return true; +} +export function ReviewInfoResponseVideoFromJSON(json) { + return ReviewInfoResponseVideoFromJSONTyped(json, false); +} +export function ReviewInfoResponseVideoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'preview_url': json['preview_url'] == null ? undefined : json['preview_url'], + 'short_video_preview_url': json['short_video_preview_url'] == null ? undefined : json['short_video_preview_url'], + 'url': json['url'] == null ? undefined : json['url'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function ReviewInfoResponseVideoToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'preview_url': value['preview_url'], + 'short_video_preview_url': value['short_video_preview_url'], + 'url': value['url'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/ReviewListResponseReview.d.ts b/dist/esm/models/ReviewListResponseReview.d.ts new file mode 100644 index 0000000..aaca284 --- /dev/null +++ b/dist/esm/models/ReviewListResponseReview.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewListResponseReview + */ +export interface ReviewListResponseReview { + /** + * Количество комментариев у отзыва. + * @type {number} + * @memberof ReviewListResponseReview + */ + comments_amount?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof ReviewListResponseReview + */ + id?: string; + /** + * `true`, если отзыв участвует в подсчёте рейтинга. + * + * @type {boolean} + * @memberof ReviewListResponseReview + */ + is_rating_participant?: boolean; + /** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен, + * - `CANCELLED` — отменён. + * + * @type {string} + * @memberof ReviewListResponseReview + */ + order_status?: string; + /** + * Количество изображений у отзыва. + * @type {number} + * @memberof ReviewListResponseReview + */ + photos_amount?: number; + /** + * Дата публикации отзыва. + * @type {string} + * @memberof ReviewListResponseReview + */ + published_at?: string; + /** + * Оценка отзыва. + * @type {number} + * @memberof ReviewListResponseReview + */ + rating?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewListResponseReview + */ + sku?: number; + /** + * Статус отзыва: + * - `UNPROCESSED` — не обработан, + * - `PROCESSED` — обработан. + * + * @type {string} + * @memberof ReviewListResponseReview + */ + status?: string; + /** + * Текст отзыва. + * @type {string} + * @memberof ReviewListResponseReview + */ + text?: string; + /** + * Количество видео у отзыва. + * @type {number} + * @memberof ReviewListResponseReview + */ + videos_amount?: number; +} +/** + * Check if a given object implements the ReviewListResponseReview interface. + */ +export declare function instanceOfReviewListResponseReview(value: object): value is ReviewListResponseReview; +export declare function ReviewListResponseReviewFromJSON(json: any): ReviewListResponseReview; +export declare function ReviewListResponseReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewListResponseReview; +export declare function ReviewListResponseReviewToJSON(value?: ReviewListResponseReview | null): any; diff --git a/dist/esm/models/ReviewListResponseReview.js b/dist/esm/models/ReviewListResponseReview.js new file mode 100644 index 0000000..3b1122f --- /dev/null +++ b/dist/esm/models/ReviewListResponseReview.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewListResponseReview interface. + */ +export function instanceOfReviewListResponseReview(value) { + return true; +} +export function ReviewListResponseReviewFromJSON(json) { + return ReviewListResponseReviewFromJSONTyped(json, false); +} +export function ReviewListResponseReviewFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], + 'order_status': json['order_status'] == null ? undefined : json['order_status'], + 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : json['status'], + 'text': json['text'] == null ? undefined : json['text'], + 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], + }; +} +export function ReviewListResponseReviewToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments_amount': value['comments_amount'], + 'id': value['id'], + 'is_rating_participant': value['is_rating_participant'], + 'order_status': value['order_status'], + 'photos_amount': value['photos_amount'], + 'published_at': value['published_at'], + 'rating': value['rating'], + 'sku': value['sku'], + 'status': value['status'], + 'text': value['text'], + 'videos_amount': value['videos_amount'], + }; +} diff --git a/dist/esm/models/ReviewV1CommentListRequestFilter.d.ts b/dist/esm/models/ReviewV1CommentListRequestFilter.d.ts new file mode 100644 index 0000000..4ebcd34 --- /dev/null +++ b/dist/esm/models/ReviewV1CommentListRequestFilter.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтры для поиска отзывов. + * @export + * @interface ReviewV1CommentListRequestFilter + */ +export interface ReviewV1CommentListRequestFilter { + /** + * Начало периода. Вернутся отзывы, которые созданы после этой даты. + * @type {string} + * @memberof ReviewV1CommentListRequestFilter + */ + published_from?: string; + /** + * Конец периода. Вернутся отзывы, которые созданы до этой даты. + * @type {string} + * @memberof ReviewV1CommentListRequestFilter + */ + published_to?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewV1CommentListRequestFilter + */ + sku?: number; +} +/** + * Check if a given object implements the ReviewV1CommentListRequestFilter interface. + */ +export declare function instanceOfReviewV1CommentListRequestFilter(value: object): value is ReviewV1CommentListRequestFilter; +export declare function ReviewV1CommentListRequestFilterFromJSON(json: any): ReviewV1CommentListRequestFilter; +export declare function ReviewV1CommentListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV1CommentListRequestFilter; +export declare function ReviewV1CommentListRequestFilterToJSON(value?: ReviewV1CommentListRequestFilter | null): any; diff --git a/dist/esm/models/ReviewV1CommentListRequestFilter.js b/dist/esm/models/ReviewV1CommentListRequestFilter.js new file mode 100644 index 0000000..9e1de1a --- /dev/null +++ b/dist/esm/models/ReviewV1CommentListRequestFilter.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewV1CommentListRequestFilter interface. + */ +export function instanceOfReviewV1CommentListRequestFilter(value) { + return true; +} +export function ReviewV1CommentListRequestFilterFromJSON(json) { + return ReviewV1CommentListRequestFilterFromJSONTyped(json, false); +} +export function ReviewV1CommentListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'published_from': json['published_from'] == null ? undefined : json['published_from'], + 'published_to': json['published_to'] == null ? undefined : json['published_to'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function ReviewV1CommentListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'published_from': value['published_from'], + 'published_to': value['published_to'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ReviewV2ReviewChangeStatusV2Request.d.ts b/dist/esm/models/ReviewV2ReviewChangeStatusV2Request.d.ts new file mode 100644 index 0000000..fd96d38 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewChangeStatusV2Request.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewChangeStatusV2RequestStatusEnum } from './ReviewV2ReviewChangeStatusV2RequestStatusEnum'; +/** + * + * @export + * @interface ReviewV2ReviewChangeStatusV2Request + */ +export interface ReviewV2ReviewChangeStatusV2Request { + /** + * Список идентификаторов отзывов. + * @type {Array} + * @memberof ReviewV2ReviewChangeStatusV2Request + */ + review_ids?: Array; + /** + * + * @type {ReviewV2ReviewChangeStatusV2RequestStatusEnum} + * @memberof ReviewV2ReviewChangeStatusV2Request + */ + status?: ReviewV2ReviewChangeStatusV2RequestStatusEnum; +} +/** + * Check if a given object implements the ReviewV2ReviewChangeStatusV2Request interface. + */ +export declare function instanceOfReviewV2ReviewChangeStatusV2Request(value: object): value is ReviewV2ReviewChangeStatusV2Request; +export declare function ReviewV2ReviewChangeStatusV2RequestFromJSON(json: any): ReviewV2ReviewChangeStatusV2Request; +export declare function ReviewV2ReviewChangeStatusV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewChangeStatusV2Request; +export declare function ReviewV2ReviewChangeStatusV2RequestToJSON(value?: ReviewV2ReviewChangeStatusV2Request | null): any; diff --git a/dist/esm/models/ReviewV2ReviewChangeStatusV2Request.js b/dist/esm/models/ReviewV2ReviewChangeStatusV2Request.js new file mode 100644 index 0000000..ce028f3 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewChangeStatusV2Request.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON, ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON, } from './ReviewV2ReviewChangeStatusV2RequestStatusEnum'; +/** + * Check if a given object implements the ReviewV2ReviewChangeStatusV2Request interface. + */ +export function instanceOfReviewV2ReviewChangeStatusV2Request(value) { + return true; +} +export function ReviewV2ReviewChangeStatusV2RequestFromJSON(json) { + return ReviewV2ReviewChangeStatusV2RequestFromJSONTyped(json, false); +} +export function ReviewV2ReviewChangeStatusV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'review_ids': json['review_ids'] == null ? undefined : json['review_ids'], + 'status': json['status'] == null ? undefined : ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON(json['status']), + }; +} +export function ReviewV2ReviewChangeStatusV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'review_ids': value['review_ids'], + 'status': ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.d.ts b/dist/esm/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.d.ts new file mode 100644 index 0000000..1ad8ef5 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Новый статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export declare const ReviewV2ReviewChangeStatusV2RequestStatusEnum: { + readonly NEW: "NEW"; + readonly VIEWED: "VIEWED"; + readonly PROCESSED: "PROCESSED"; +}; +export type ReviewV2ReviewChangeStatusV2RequestStatusEnum = typeof ReviewV2ReviewChangeStatusV2RequestStatusEnum[keyof typeof ReviewV2ReviewChangeStatusV2RequestStatusEnum]; +export declare function instanceOfReviewV2ReviewChangeStatusV2RequestStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON(json: any): ReviewV2ReviewChangeStatusV2RequestStatusEnum; +export declare function ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewChangeStatusV2RequestStatusEnum; +export declare function ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON(value?: ReviewV2ReviewChangeStatusV2RequestStatusEnum | null): any; diff --git a/dist/esm/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.js b/dist/esm/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.js new file mode 100644 index 0000000..6a5a5e5 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Новый статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export const ReviewV2ReviewChangeStatusV2RequestStatusEnum = { + NEW: 'NEW', + VIEWED: 'VIEWED', + PROCESSED: 'PROCESSED' +}; +export function instanceOfReviewV2ReviewChangeStatusV2RequestStatusEnum(value) { + for (const key in ReviewV2ReviewChangeStatusV2RequestStatusEnum) { + if (Object.prototype.hasOwnProperty.call(ReviewV2ReviewChangeStatusV2RequestStatusEnum, key)) { + if (ReviewV2ReviewChangeStatusV2RequestStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON(json) { + return ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSONTyped(json, false); +} +export function ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReviewV2ReviewCommentDeleteV2Request.d.ts b/dist/esm/models/ReviewV2ReviewCommentDeleteV2Request.d.ts new file mode 100644 index 0000000..8a5dc73 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewCommentDeleteV2Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewCommentDeleteV2Request + */ +export interface ReviewV2ReviewCommentDeleteV2Request { + /** + * Идентификатор комментария. + * @type {string} + * @memberof ReviewV2ReviewCommentDeleteV2Request + */ + comment_id: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewV2ReviewCommentDeleteV2Request + */ + sku: number; +} +/** + * Check if a given object implements the ReviewV2ReviewCommentDeleteV2Request interface. + */ +export declare function instanceOfReviewV2ReviewCommentDeleteV2Request(value: object): value is ReviewV2ReviewCommentDeleteV2Request; +export declare function ReviewV2ReviewCommentDeleteV2RequestFromJSON(json: any): ReviewV2ReviewCommentDeleteV2Request; +export declare function ReviewV2ReviewCommentDeleteV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewCommentDeleteV2Request; +export declare function ReviewV2ReviewCommentDeleteV2RequestToJSON(value?: ReviewV2ReviewCommentDeleteV2Request | null): any; diff --git a/dist/esm/models/ReviewV2ReviewCommentDeleteV2Request.js b/dist/esm/models/ReviewV2ReviewCommentDeleteV2Request.js new file mode 100644 index 0000000..16a7920 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewCommentDeleteV2Request.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewV2ReviewCommentDeleteV2Request interface. + */ +export function instanceOfReviewV2ReviewCommentDeleteV2Request(value) { + if (!('comment_id' in value) || value['comment_id'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function ReviewV2ReviewCommentDeleteV2RequestFromJSON(json) { + return ReviewV2ReviewCommentDeleteV2RequestFromJSONTyped(json, false); +} +export function ReviewV2ReviewCommentDeleteV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment_id': json['comment_id'], + 'sku': json['sku'], + }; +} +export function ReviewV2ReviewCommentDeleteV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment_id': value['comment_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/ReviewV2ReviewCountV2Response.d.ts b/dist/esm/models/ReviewV2ReviewCountV2Response.d.ts new file mode 100644 index 0000000..8ba460a --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewCountV2Response.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewCountV2Response + */ +export interface ReviewV2ReviewCountV2Response { + /** + * Количество новых отзывов. + * @type {number} + * @memberof ReviewV2ReviewCountV2Response + */ + _new?: number; + /** + * Количество обработанных отзывов. + * @type {number} + * @memberof ReviewV2ReviewCountV2Response + */ + processed?: number; + /** + * Количество всех отзывов. + * @type {number} + * @memberof ReviewV2ReviewCountV2Response + */ + total?: number; + /** + * Количество просмотренных отзывов. + * @type {number} + * @memberof ReviewV2ReviewCountV2Response + */ + viewed?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewCountV2Response interface. + */ +export declare function instanceOfReviewV2ReviewCountV2Response(value: object): value is ReviewV2ReviewCountV2Response; +export declare function ReviewV2ReviewCountV2ResponseFromJSON(json: any): ReviewV2ReviewCountV2Response; +export declare function ReviewV2ReviewCountV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewCountV2Response; +export declare function ReviewV2ReviewCountV2ResponseToJSON(value?: ReviewV2ReviewCountV2Response | null): any; diff --git a/dist/esm/models/ReviewV2ReviewCountV2Response.js b/dist/esm/models/ReviewV2ReviewCountV2Response.js new file mode 100644 index 0000000..b2cfbfd --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewCountV2Response.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewV2ReviewCountV2Response interface. + */ +export function instanceOfReviewV2ReviewCountV2Response(value) { + return true; +} +export function ReviewV2ReviewCountV2ResponseFromJSON(json) { + return ReviewV2ReviewCountV2ResponseFromJSONTyped(json, false); +} +export function ReviewV2ReviewCountV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + '_new': json['new'] == null ? undefined : json['new'], + 'processed': json['processed'] == null ? undefined : json['processed'], + 'total': json['total'] == null ? undefined : json['total'], + 'viewed': json['viewed'] == null ? undefined : json['viewed'], + }; +} +export function ReviewV2ReviewCountV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'new': value['_new'], + 'processed': value['processed'], + 'total': value['total'], + 'viewed': value['viewed'], + }; +} diff --git a/dist/esm/models/ReviewV2ReviewInfoV2Request.d.ts b/dist/esm/models/ReviewV2ReviewInfoV2Request.d.ts new file mode 100644 index 0000000..918b070 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewInfoV2Request + */ +export interface ReviewV2ReviewInfoV2Request { + /** + * Идентификатор отзыва. + * @type {string} + * @memberof ReviewV2ReviewInfoV2Request + */ + review_id: string; +} +/** + * Check if a given object implements the ReviewV2ReviewInfoV2Request interface. + */ +export declare function instanceOfReviewV2ReviewInfoV2Request(value: object): value is ReviewV2ReviewInfoV2Request; +export declare function ReviewV2ReviewInfoV2RequestFromJSON(json: any): ReviewV2ReviewInfoV2Request; +export declare function ReviewV2ReviewInfoV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2Request; +export declare function ReviewV2ReviewInfoV2RequestToJSON(value?: ReviewV2ReviewInfoV2Request | null): any; diff --git a/dist/esm/models/ReviewV2ReviewInfoV2Request.js b/dist/esm/models/ReviewV2ReviewInfoV2Request.js new file mode 100644 index 0000000..281a39c --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2Request.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewV2ReviewInfoV2Request interface. + */ +export function instanceOfReviewV2ReviewInfoV2Request(value) { + if (!('review_id' in value) || value['review_id'] === undefined) + return false; + return true; +} +export function ReviewV2ReviewInfoV2RequestFromJSON(json) { + return ReviewV2ReviewInfoV2RequestFromJSONTyped(json, false); +} +export function ReviewV2ReviewInfoV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'review_id': json['review_id'], + }; +} +export function ReviewV2ReviewInfoV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'review_id': value['review_id'], + }; +} diff --git a/dist/esm/models/ReviewV2ReviewInfoV2Response.d.ts b/dist/esm/models/ReviewV2ReviewInfoV2Response.d.ts new file mode 100644 index 0000000..04bf2ce --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2Response.d.ts @@ -0,0 +1,120 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewInfoV2ResponseStatusEnum } from './ReviewV2ReviewInfoV2ResponseStatusEnum'; +import type { ReviewV2ReviewInfoV2ResponseVideo } from './ReviewV2ReviewInfoV2ResponseVideo'; +import type { ReviewV2ReviewInfoV2ResponseOrderStatusEnum } from './ReviewV2ReviewInfoV2ResponseOrderStatusEnum'; +import type { ReviewV2ReviewInfoV2ResponsePhoto } from './ReviewV2ReviewInfoV2ResponsePhoto'; +/** + * + * @export + * @interface ReviewV2ReviewInfoV2Response + */ +export interface ReviewV2ReviewInfoV2Response { + /** + * Количество комментариев к отзыву. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + comments_amount?: number; + /** + * Количество дизлайков на отзыве. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + dislikes_amount?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof ReviewV2ReviewInfoV2Response + */ + id?: string; + /** + * `true`, если отзыв участвует в подсчёте рейтинга. + * + * @type {boolean} + * @memberof ReviewV2ReviewInfoV2Response + */ + is_rating_participant?: boolean; + /** + * Количество лайков на отзыве. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + likes_amount?: number; + /** + * + * @type {ReviewV2ReviewInfoV2ResponseOrderStatusEnum} + * @memberof ReviewV2ReviewInfoV2Response + */ + order_status?: ReviewV2ReviewInfoV2ResponseOrderStatusEnum; + /** + * Информация об изображениях. + * @type {Array} + * @memberof ReviewV2ReviewInfoV2Response + */ + photos?: Array; + /** + * Количество изображений у отзыва. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + photos_amount?: number; + /** + * Дата публикации отзыва. + * @type {string} + * @memberof ReviewV2ReviewInfoV2Response + */ + published_at?: string; + /** + * Оценка отзыва. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + rating?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + sku?: number; + /** + * + * @type {ReviewV2ReviewInfoV2ResponseStatusEnum} + * @memberof ReviewV2ReviewInfoV2Response + */ + status?: ReviewV2ReviewInfoV2ResponseStatusEnum; + /** + * Текст отзыва. + * @type {string} + * @memberof ReviewV2ReviewInfoV2Response + */ + text?: string; + /** + * Информация о видео. + * @type {Array} + * @memberof ReviewV2ReviewInfoV2Response + */ + videos?: Array; + /** + * Количество видео у отзыва. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + videos_amount?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewInfoV2Response interface. + */ +export declare function instanceOfReviewV2ReviewInfoV2Response(value: object): value is ReviewV2ReviewInfoV2Response; +export declare function ReviewV2ReviewInfoV2ResponseFromJSON(json: any): ReviewV2ReviewInfoV2Response; +export declare function ReviewV2ReviewInfoV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2Response; +export declare function ReviewV2ReviewInfoV2ResponseToJSON(value?: ReviewV2ReviewInfoV2Response | null): any; diff --git a/dist/esm/models/ReviewV2ReviewInfoV2Response.js b/dist/esm/models/ReviewV2ReviewInfoV2Response.js new file mode 100644 index 0000000..c25a364 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2Response.js @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON, ReviewV2ReviewInfoV2ResponseStatusEnumToJSON, } from './ReviewV2ReviewInfoV2ResponseStatusEnum'; +import { ReviewV2ReviewInfoV2ResponseVideoFromJSON, ReviewV2ReviewInfoV2ResponseVideoToJSON, } from './ReviewV2ReviewInfoV2ResponseVideo'; +import { ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON, ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON, } from './ReviewV2ReviewInfoV2ResponseOrderStatusEnum'; +import { ReviewV2ReviewInfoV2ResponsePhotoFromJSON, ReviewV2ReviewInfoV2ResponsePhotoToJSON, } from './ReviewV2ReviewInfoV2ResponsePhoto'; +/** + * Check if a given object implements the ReviewV2ReviewInfoV2Response interface. + */ +export function instanceOfReviewV2ReviewInfoV2Response(value) { + return true; +} +export function ReviewV2ReviewInfoV2ResponseFromJSON(json) { + return ReviewV2ReviewInfoV2ResponseFromJSONTyped(json, false); +} +export function ReviewV2ReviewInfoV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], + 'dislikes_amount': json['dislikes_amount'] == null ? undefined : json['dislikes_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], + 'likes_amount': json['likes_amount'] == null ? undefined : json['likes_amount'], + 'order_status': json['order_status'] == null ? undefined : ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON(json['order_status']), + 'photos': json['photos'] == null ? undefined : (json['photos'].map(ReviewV2ReviewInfoV2ResponsePhotoFromJSON)), + 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON(json['status']), + 'text': json['text'] == null ? undefined : json['text'], + 'videos': json['videos'] == null ? undefined : (json['videos'].map(ReviewV2ReviewInfoV2ResponseVideoFromJSON)), + 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], + }; +} +export function ReviewV2ReviewInfoV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments_amount': value['comments_amount'], + 'dislikes_amount': value['dislikes_amount'], + 'id': value['id'], + 'is_rating_participant': value['is_rating_participant'], + 'likes_amount': value['likes_amount'], + 'order_status': ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON(value['order_status']), + 'photos': value['photos'] == null ? undefined : (value['photos'].map(ReviewV2ReviewInfoV2ResponsePhotoToJSON)), + 'photos_amount': value['photos_amount'], + 'published_at': value['published_at'], + 'rating': value['rating'], + 'sku': value['sku'], + 'status': ReviewV2ReviewInfoV2ResponseStatusEnumToJSON(value['status']), + 'text': value['text'], + 'videos': value['videos'] == null ? undefined : (value['videos'].map(ReviewV2ReviewInfoV2ResponseVideoToJSON)), + 'videos_amount': value['videos_amount'], + }; +} diff --git a/dist/esm/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.d.ts b/dist/esm/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.d.ts new file mode 100644 index 0000000..a26bf82 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export declare const ReviewV2ReviewInfoV2ResponseOrderStatusEnum: { + readonly DELIVERED: "DELIVERED"; + readonly CANCELLED: "CANCELLED"; +}; +export type ReviewV2ReviewInfoV2ResponseOrderStatusEnum = typeof ReviewV2ReviewInfoV2ResponseOrderStatusEnum[keyof typeof ReviewV2ReviewInfoV2ResponseOrderStatusEnum]; +export declare function instanceOfReviewV2ReviewInfoV2ResponseOrderStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON(json: any): ReviewV2ReviewInfoV2ResponseOrderStatusEnum; +export declare function ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2ResponseOrderStatusEnum; +export declare function ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON(value?: ReviewV2ReviewInfoV2ResponseOrderStatusEnum | null): any; diff --git a/dist/esm/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.js b/dist/esm/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.js new file mode 100644 index 0000000..bc0f759 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export const ReviewV2ReviewInfoV2ResponseOrderStatusEnum = { + DELIVERED: 'DELIVERED', + CANCELLED: 'CANCELLED' +}; +export function instanceOfReviewV2ReviewInfoV2ResponseOrderStatusEnum(value) { + for (const key in ReviewV2ReviewInfoV2ResponseOrderStatusEnum) { + if (Object.prototype.hasOwnProperty.call(ReviewV2ReviewInfoV2ResponseOrderStatusEnum, key)) { + if (ReviewV2ReviewInfoV2ResponseOrderStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON(json) { + return ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSONTyped(json, false); +} +export function ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReviewV2ReviewInfoV2ResponsePhoto.d.ts b/dist/esm/models/ReviewV2ReviewInfoV2ResponsePhoto.d.ts new file mode 100644 index 0000000..4f04c33 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2ResponsePhoto.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewInfoV2ResponsePhoto + */ +export interface ReviewV2ReviewInfoV2ResponsePhoto { + /** + * Высота. + * @type {number} + * @memberof ReviewV2ReviewInfoV2ResponsePhoto + */ + height?: number; + /** + * Ссылка на изображение. + * @type {string} + * @memberof ReviewV2ReviewInfoV2ResponsePhoto + */ + url?: string; + /** + * Ширина. + * @type {number} + * @memberof ReviewV2ReviewInfoV2ResponsePhoto + */ + width?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewInfoV2ResponsePhoto interface. + */ +export declare function instanceOfReviewV2ReviewInfoV2ResponsePhoto(value: object): value is ReviewV2ReviewInfoV2ResponsePhoto; +export declare function ReviewV2ReviewInfoV2ResponsePhotoFromJSON(json: any): ReviewV2ReviewInfoV2ResponsePhoto; +export declare function ReviewV2ReviewInfoV2ResponsePhotoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2ResponsePhoto; +export declare function ReviewV2ReviewInfoV2ResponsePhotoToJSON(value?: ReviewV2ReviewInfoV2ResponsePhoto | null): any; diff --git a/dist/esm/models/ReviewV2ReviewInfoV2ResponsePhoto.js b/dist/esm/models/ReviewV2ReviewInfoV2ResponsePhoto.js new file mode 100644 index 0000000..ca00bcb --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2ResponsePhoto.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewV2ReviewInfoV2ResponsePhoto interface. + */ +export function instanceOfReviewV2ReviewInfoV2ResponsePhoto(value) { + return true; +} +export function ReviewV2ReviewInfoV2ResponsePhotoFromJSON(json) { + return ReviewV2ReviewInfoV2ResponsePhotoFromJSONTyped(json, false); +} +export function ReviewV2ReviewInfoV2ResponsePhotoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'url': json['url'] == null ? undefined : json['url'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function ReviewV2ReviewInfoV2ResponsePhotoToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'url': value['url'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/ReviewV2ReviewInfoV2ResponseStatusEnum.d.ts b/dist/esm/models/ReviewV2ReviewInfoV2ResponseStatusEnum.d.ts new file mode 100644 index 0000000..bb90a15 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2ResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export declare const ReviewV2ReviewInfoV2ResponseStatusEnum: { + readonly NEW: "NEW"; + readonly VIEWED: "VIEWED"; + readonly PROCESSED: "PROCESSED"; +}; +export type ReviewV2ReviewInfoV2ResponseStatusEnum = typeof ReviewV2ReviewInfoV2ResponseStatusEnum[keyof typeof ReviewV2ReviewInfoV2ResponseStatusEnum]; +export declare function instanceOfReviewV2ReviewInfoV2ResponseStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON(json: any): ReviewV2ReviewInfoV2ResponseStatusEnum; +export declare function ReviewV2ReviewInfoV2ResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2ResponseStatusEnum; +export declare function ReviewV2ReviewInfoV2ResponseStatusEnumToJSON(value?: ReviewV2ReviewInfoV2ResponseStatusEnum | null): any; diff --git a/dist/esm/models/ReviewV2ReviewInfoV2ResponseStatusEnum.js b/dist/esm/models/ReviewV2ReviewInfoV2ResponseStatusEnum.js new file mode 100644 index 0000000..77a5904 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2ResponseStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export const ReviewV2ReviewInfoV2ResponseStatusEnum = { + NEW: 'NEW', + VIEWED: 'VIEWED', + PROCESSED: 'PROCESSED' +}; +export function instanceOfReviewV2ReviewInfoV2ResponseStatusEnum(value) { + for (const key in ReviewV2ReviewInfoV2ResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(ReviewV2ReviewInfoV2ResponseStatusEnum, key)) { + if (ReviewV2ReviewInfoV2ResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON(json) { + return ReviewV2ReviewInfoV2ResponseStatusEnumFromJSONTyped(json, false); +} +export function ReviewV2ReviewInfoV2ResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReviewV2ReviewInfoV2ResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReviewV2ReviewInfoV2ResponseVideo.d.ts b/dist/esm/models/ReviewV2ReviewInfoV2ResponseVideo.d.ts new file mode 100644 index 0000000..696759d --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2ResponseVideo.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewInfoV2ResponseVideo + */ +export interface ReviewV2ReviewInfoV2ResponseVideo { + /** + * Высота. + * @type {number} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + height?: number; + /** + * Ссылка на превью видео. + * @type {string} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + preview_url?: string; + /** + * Ссылка на короткое видео. + * @type {string} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + short_video_preview_url?: string; + /** + * Ссылка на видео. + * @type {string} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + url?: string; + /** + * Ширина. + * @type {number} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + width?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewInfoV2ResponseVideo interface. + */ +export declare function instanceOfReviewV2ReviewInfoV2ResponseVideo(value: object): value is ReviewV2ReviewInfoV2ResponseVideo; +export declare function ReviewV2ReviewInfoV2ResponseVideoFromJSON(json: any): ReviewV2ReviewInfoV2ResponseVideo; +export declare function ReviewV2ReviewInfoV2ResponseVideoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2ResponseVideo; +export declare function ReviewV2ReviewInfoV2ResponseVideoToJSON(value?: ReviewV2ReviewInfoV2ResponseVideo | null): any; diff --git a/dist/esm/models/ReviewV2ReviewInfoV2ResponseVideo.js b/dist/esm/models/ReviewV2ReviewInfoV2ResponseVideo.js new file mode 100644 index 0000000..1353725 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewInfoV2ResponseVideo.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ReviewV2ReviewInfoV2ResponseVideo interface. + */ +export function instanceOfReviewV2ReviewInfoV2ResponseVideo(value) { + return true; +} +export function ReviewV2ReviewInfoV2ResponseVideoFromJSON(json) { + return ReviewV2ReviewInfoV2ResponseVideoFromJSONTyped(json, false); +} +export function ReviewV2ReviewInfoV2ResponseVideoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'preview_url': json['preview_url'] == null ? undefined : json['preview_url'], + 'short_video_preview_url': json['short_video_preview_url'] == null ? undefined : json['short_video_preview_url'], + 'url': json['url'] == null ? undefined : json['url'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function ReviewV2ReviewInfoV2ResponseVideoToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'preview_url': value['preview_url'], + 'short_video_preview_url': value['short_video_preview_url'], + 'url': value['url'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2Request.d.ts b/dist/esm/models/ReviewV2ReviewListV2Request.d.ts new file mode 100644 index 0000000..176b7f6 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2Request.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewListV2RequestFilters } from './ReviewV2ReviewListV2RequestFilters'; +import type { ReviewV2ReviewListV2RequestSortDirEnum } from './ReviewV2ReviewListV2RequestSortDirEnum'; +/** + * + * @export + * @interface ReviewV2ReviewListV2Request + */ +export interface ReviewV2ReviewListV2Request { + /** + * + * @type {ReviewV2ReviewListV2RequestFilters} + * @memberof ReviewV2ReviewListV2Request + */ + filters?: ReviewV2ReviewListV2RequestFilters; + /** + * Идентификатор последнего отзыва в ответе. + * @type {string} + * @memberof ReviewV2ReviewListV2Request + */ + last_id?: string; + /** + * Количество отзывов в ответе. + * @type {number} + * @memberof ReviewV2ReviewListV2Request + */ + limit: number; + /** + * + * @type {ReviewV2ReviewListV2RequestSortDirEnum} + * @memberof ReviewV2ReviewListV2Request + */ + sort_dir?: ReviewV2ReviewListV2RequestSortDirEnum; +} +/** + * Check if a given object implements the ReviewV2ReviewListV2Request interface. + */ +export declare function instanceOfReviewV2ReviewListV2Request(value: object): value is ReviewV2ReviewListV2Request; +export declare function ReviewV2ReviewListV2RequestFromJSON(json: any): ReviewV2ReviewListV2Request; +export declare function ReviewV2ReviewListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2Request; +export declare function ReviewV2ReviewListV2RequestToJSON(value?: ReviewV2ReviewListV2Request | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2Request.js b/dist/esm/models/ReviewV2ReviewListV2Request.js new file mode 100644 index 0000000..32534c9 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2Request.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewV2ReviewListV2RequestFiltersFromJSON, ReviewV2ReviewListV2RequestFiltersToJSON, } from './ReviewV2ReviewListV2RequestFilters'; +import { ReviewV2ReviewListV2RequestSortDirEnumFromJSON, ReviewV2ReviewListV2RequestSortDirEnumToJSON, } from './ReviewV2ReviewListV2RequestSortDirEnum'; +/** + * Check if a given object implements the ReviewV2ReviewListV2Request interface. + */ +export function instanceOfReviewV2ReviewListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function ReviewV2ReviewListV2RequestFromJSON(json) { + return ReviewV2ReviewListV2RequestFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filters': json['filters'] == null ? undefined : ReviewV2ReviewListV2RequestFiltersFromJSON(json['filters']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : ReviewV2ReviewListV2RequestSortDirEnumFromJSON(json['sort_dir']), + }; +} +export function ReviewV2ReviewListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filters': ReviewV2ReviewListV2RequestFiltersToJSON(value['filters']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_dir': ReviewV2ReviewListV2RequestSortDirEnumToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2RequestFilters.d.ts b/dist/esm/models/ReviewV2ReviewListV2RequestFilters.d.ts new file mode 100644 index 0000000..21d026b --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2RequestFilters.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewListV2RequestFiltersOrderStatusEnum } from './ReviewV2ReviewListV2RequestFiltersOrderStatusEnum'; +import type { ReviewV2ReviewListV2RequestFiltersStatusEnum } from './ReviewV2ReviewListV2RequestFiltersStatusEnum'; +/** + * Фильтры для поиска отзывов. + * @export + * @interface ReviewV2ReviewListV2RequestFilters + */ +export interface ReviewV2ReviewListV2RequestFilters { + /** + * + * @type {ReviewV2ReviewListV2RequestFiltersOrderStatusEnum} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + order_status?: ReviewV2ReviewListV2RequestFiltersOrderStatusEnum; + /** + * Начало периода. Вернутся отзывы, которые созданы после этой даты. + * @type {string} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + published_from?: string; + /** + * Конец периода. Вернутся отзывы, которые созданы до этой даты. + * @type {string} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + published_to?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + skus?: Array; + /** + * + * @type {ReviewV2ReviewListV2RequestFiltersStatusEnum} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + status?: ReviewV2ReviewListV2RequestFiltersStatusEnum; +} +/** + * Check if a given object implements the ReviewV2ReviewListV2RequestFilters interface. + */ +export declare function instanceOfReviewV2ReviewListV2RequestFilters(value: object): value is ReviewV2ReviewListV2RequestFilters; +export declare function ReviewV2ReviewListV2RequestFiltersFromJSON(json: any): ReviewV2ReviewListV2RequestFilters; +export declare function ReviewV2ReviewListV2RequestFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2RequestFilters; +export declare function ReviewV2ReviewListV2RequestFiltersToJSON(value?: ReviewV2ReviewListV2RequestFilters | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2RequestFilters.js b/dist/esm/models/ReviewV2ReviewListV2RequestFilters.js new file mode 100644 index 0000000..77ce06c --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2RequestFilters.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON, ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON, } from './ReviewV2ReviewListV2RequestFiltersOrderStatusEnum'; +import { ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON, ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON, } from './ReviewV2ReviewListV2RequestFiltersStatusEnum'; +/** + * Check if a given object implements the ReviewV2ReviewListV2RequestFilters interface. + */ +export function instanceOfReviewV2ReviewListV2RequestFilters(value) { + return true; +} +export function ReviewV2ReviewListV2RequestFiltersFromJSON(json) { + return ReviewV2ReviewListV2RequestFiltersFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2RequestFiltersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_status': json['order_status'] == null ? undefined : ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON(json['order_status']), + 'published_from': json['published_from'] == null ? undefined : json['published_from'], + 'published_to': json['published_to'] == null ? undefined : json['published_to'], + 'skus': json['skus'] == null ? undefined : json['skus'], + 'status': json['status'] == null ? undefined : ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON(json['status']), + }; +} +export function ReviewV2ReviewListV2RequestFiltersToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_status': ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON(value['order_status']), + 'published_from': value['published_from'], + 'published_to': value['published_to'], + 'skus': value['skus'], + 'status': ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.d.ts b/dist/esm/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.d.ts new file mode 100644 index 0000000..07bcdf2 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `ALL` — все; + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export declare const ReviewV2ReviewListV2RequestFiltersOrderStatusEnum: { + readonly ALL: "ALL"; + readonly DELIVERED: "DELIVERED"; + readonly CANCELLED: "CANCELLED"; +}; +export type ReviewV2ReviewListV2RequestFiltersOrderStatusEnum = typeof ReviewV2ReviewListV2RequestFiltersOrderStatusEnum[keyof typeof ReviewV2ReviewListV2RequestFiltersOrderStatusEnum]; +export declare function instanceOfReviewV2ReviewListV2RequestFiltersOrderStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON(json: any): ReviewV2ReviewListV2RequestFiltersOrderStatusEnum; +export declare function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2RequestFiltersOrderStatusEnum; +export declare function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON(value?: ReviewV2ReviewListV2RequestFiltersOrderStatusEnum | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.js b/dist/esm/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.js new file mode 100644 index 0000000..b90c96c --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `ALL` — все; + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export const ReviewV2ReviewListV2RequestFiltersOrderStatusEnum = { + ALL: 'ALL', + DELIVERED: 'DELIVERED', + CANCELLED: 'CANCELLED' +}; +export function instanceOfReviewV2ReviewListV2RequestFiltersOrderStatusEnum(value) { + for (const key in ReviewV2ReviewListV2RequestFiltersOrderStatusEnum) { + if (Object.prototype.hasOwnProperty.call(ReviewV2ReviewListV2RequestFiltersOrderStatusEnum, key)) { + if (ReviewV2ReviewListV2RequestFiltersOrderStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON(json) { + return ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.d.ts b/dist/esm/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.d.ts new file mode 100644 index 0000000..0c781a5 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `ALL` — все; + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export declare const ReviewV2ReviewListV2RequestFiltersStatusEnum: { + readonly ALL: "ALL"; + readonly NEW: "NEW"; + readonly VIEWED: "VIEWED"; + readonly PROCESSED: "PROCESSED"; +}; +export type ReviewV2ReviewListV2RequestFiltersStatusEnum = typeof ReviewV2ReviewListV2RequestFiltersStatusEnum[keyof typeof ReviewV2ReviewListV2RequestFiltersStatusEnum]; +export declare function instanceOfReviewV2ReviewListV2RequestFiltersStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON(json: any): ReviewV2ReviewListV2RequestFiltersStatusEnum; +export declare function ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2RequestFiltersStatusEnum; +export declare function ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON(value?: ReviewV2ReviewListV2RequestFiltersStatusEnum | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.js b/dist/esm/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.js new file mode 100644 index 0000000..ab3d484 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `ALL` — все; + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export const ReviewV2ReviewListV2RequestFiltersStatusEnum = { + ALL: 'ALL', + NEW: 'NEW', + VIEWED: 'VIEWED', + PROCESSED: 'PROCESSED' +}; +export function instanceOfReviewV2ReviewListV2RequestFiltersStatusEnum(value) { + for (const key in ReviewV2ReviewListV2RequestFiltersStatusEnum) { + if (Object.prototype.hasOwnProperty.call(ReviewV2ReviewListV2RequestFiltersStatusEnum, key)) { + if (ReviewV2ReviewListV2RequestFiltersStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON(json) { + return ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2RequestSortDirEnum.d.ts b/dist/esm/models/ReviewV2ReviewListV2RequestSortDirEnum.d.ts new file mode 100644 index 0000000..7989bba --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2RequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const ReviewV2ReviewListV2RequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type ReviewV2ReviewListV2RequestSortDirEnum = typeof ReviewV2ReviewListV2RequestSortDirEnum[keyof typeof ReviewV2ReviewListV2RequestSortDirEnum]; +export declare function instanceOfReviewV2ReviewListV2RequestSortDirEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2RequestSortDirEnumFromJSON(json: any): ReviewV2ReviewListV2RequestSortDirEnum; +export declare function ReviewV2ReviewListV2RequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2RequestSortDirEnum; +export declare function ReviewV2ReviewListV2RequestSortDirEnumToJSON(value?: ReviewV2ReviewListV2RequestSortDirEnum | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2RequestSortDirEnum.js b/dist/esm/models/ReviewV2ReviewListV2RequestSortDirEnum.js new file mode 100644 index 0000000..a4d0c04 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2RequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const ReviewV2ReviewListV2RequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfReviewV2ReviewListV2RequestSortDirEnum(value) { + for (const key in ReviewV2ReviewListV2RequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(ReviewV2ReviewListV2RequestSortDirEnum, key)) { + if (ReviewV2ReviewListV2RequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReviewV2ReviewListV2RequestSortDirEnumFromJSON(json) { + return ReviewV2ReviewListV2RequestSortDirEnumFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2RequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReviewV2ReviewListV2RequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2Response.d.ts b/dist/esm/models/ReviewV2ReviewListV2Response.d.ts new file mode 100644 index 0000000..5ec271e --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewListV2ResponseReview } from './ReviewV2ReviewListV2ResponseReview'; +/** + * + * @export + * @interface ReviewV2ReviewListV2Response + */ +export interface ReviewV2ReviewListV2Response { + /** + * `true`, если в ответе вернули не все отзывы. + * + * @type {boolean} + * @memberof ReviewV2ReviewListV2Response + */ + has_next?: boolean; + /** + * Идентификатор последнего отзыва на странице. + * @type {string} + * @memberof ReviewV2ReviewListV2Response + */ + last_id?: string; + /** + * Список отзывов. + * @type {Array} + * @memberof ReviewV2ReviewListV2Response + */ + reviews?: Array; +} +/** + * Check if a given object implements the ReviewV2ReviewListV2Response interface. + */ +export declare function instanceOfReviewV2ReviewListV2Response(value: object): value is ReviewV2ReviewListV2Response; +export declare function ReviewV2ReviewListV2ResponseFromJSON(json: any): ReviewV2ReviewListV2Response; +export declare function ReviewV2ReviewListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2Response; +export declare function ReviewV2ReviewListV2ResponseToJSON(value?: ReviewV2ReviewListV2Response | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2Response.js b/dist/esm/models/ReviewV2ReviewListV2Response.js new file mode 100644 index 0000000..d9f621c --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewV2ReviewListV2ResponseReviewFromJSON, ReviewV2ReviewListV2ResponseReviewToJSON, } from './ReviewV2ReviewListV2ResponseReview'; +/** + * Check if a given object implements the ReviewV2ReviewListV2Response interface. + */ +export function instanceOfReviewV2ReviewListV2Response(value) { + return true; +} +export function ReviewV2ReviewListV2ResponseFromJSON(json) { + return ReviewV2ReviewListV2ResponseFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'reviews': json['reviews'] == null ? undefined : (json['reviews'].map(ReviewV2ReviewListV2ResponseReviewFromJSON)), + }; +} +export function ReviewV2ReviewListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'last_id': value['last_id'], + 'reviews': value['reviews'] == null ? undefined : (value['reviews'].map(ReviewV2ReviewListV2ResponseReviewToJSON)), + }; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2ResponseReview.d.ts b/dist/esm/models/ReviewV2ReviewListV2ResponseReview.d.ts new file mode 100644 index 0000000..14e77b3 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2ResponseReview.d.ts @@ -0,0 +1,94 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewListV2ResponseReviewOrderStatusEnum } from './ReviewV2ReviewListV2ResponseReviewOrderStatusEnum'; +import type { ReviewV2ReviewListV2ResponseReviewStatusEnum } from './ReviewV2ReviewListV2ResponseReviewStatusEnum'; +/** + * + * @export + * @interface ReviewV2ReviewListV2ResponseReview + */ +export interface ReviewV2ReviewListV2ResponseReview { + /** + * Количество комментариев у отзыва. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + comments_amount?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + id?: string; + /** + * `true`, если отзыв участвует в подсчёте рейтинга. + * + * @type {boolean} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + is_rating_participant?: boolean; + /** + * + * @type {ReviewV2ReviewListV2ResponseReviewOrderStatusEnum} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + order_status?: ReviewV2ReviewListV2ResponseReviewOrderStatusEnum; + /** + * Количество изображений у отзыва. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + photos_amount?: number; + /** + * Дата публикации отзыва. + * @type {string} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + published_at?: string; + /** + * Оценка отзыва. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + rating?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + sku?: number; + /** + * + * @type {ReviewV2ReviewListV2ResponseReviewStatusEnum} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + status?: ReviewV2ReviewListV2ResponseReviewStatusEnum; + /** + * Текст отзыва. + * @type {string} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + text?: string; + /** + * Количество видео у отзыва. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + videos_amount?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewListV2ResponseReview interface. + */ +export declare function instanceOfReviewV2ReviewListV2ResponseReview(value: object): value is ReviewV2ReviewListV2ResponseReview; +export declare function ReviewV2ReviewListV2ResponseReviewFromJSON(json: any): ReviewV2ReviewListV2ResponseReview; +export declare function ReviewV2ReviewListV2ResponseReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2ResponseReview; +export declare function ReviewV2ReviewListV2ResponseReviewToJSON(value?: ReviewV2ReviewListV2ResponseReview | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2ResponseReview.js b/dist/esm/models/ReviewV2ReviewListV2ResponseReview.js new file mode 100644 index 0000000..09bab7d --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2ResponseReview.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON, ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON, } from './ReviewV2ReviewListV2ResponseReviewOrderStatusEnum'; +import { ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON, ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON, } from './ReviewV2ReviewListV2ResponseReviewStatusEnum'; +/** + * Check if a given object implements the ReviewV2ReviewListV2ResponseReview interface. + */ +export function instanceOfReviewV2ReviewListV2ResponseReview(value) { + return true; +} +export function ReviewV2ReviewListV2ResponseReviewFromJSON(json) { + return ReviewV2ReviewListV2ResponseReviewFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2ResponseReviewFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], + 'order_status': json['order_status'] == null ? undefined : ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON(json['order_status']), + 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON(json['status']), + 'text': json['text'] == null ? undefined : json['text'], + 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], + }; +} +export function ReviewV2ReviewListV2ResponseReviewToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments_amount': value['comments_amount'], + 'id': value['id'], + 'is_rating_participant': value['is_rating_participant'], + 'order_status': ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON(value['order_status']), + 'photos_amount': value['photos_amount'], + 'published_at': value['published_at'], + 'rating': value['rating'], + 'sku': value['sku'], + 'status': ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON(value['status']), + 'text': value['text'], + 'videos_amount': value['videos_amount'], + }; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.d.ts b/dist/esm/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.d.ts new file mode 100644 index 0000000..aad9c23 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export declare const ReviewV2ReviewListV2ResponseReviewOrderStatusEnum: { + readonly DELIVERED: "DELIVERED"; + readonly CANCELLED: "CANCELLED"; +}; +export type ReviewV2ReviewListV2ResponseReviewOrderStatusEnum = typeof ReviewV2ReviewListV2ResponseReviewOrderStatusEnum[keyof typeof ReviewV2ReviewListV2ResponseReviewOrderStatusEnum]; +export declare function instanceOfReviewV2ReviewListV2ResponseReviewOrderStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON(json: any): ReviewV2ReviewListV2ResponseReviewOrderStatusEnum; +export declare function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2ResponseReviewOrderStatusEnum; +export declare function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON(value?: ReviewV2ReviewListV2ResponseReviewOrderStatusEnum | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.js b/dist/esm/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.js new file mode 100644 index 0000000..9060bf1 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export const ReviewV2ReviewListV2ResponseReviewOrderStatusEnum = { + DELIVERED: 'DELIVERED', + CANCELLED: 'CANCELLED' +}; +export function instanceOfReviewV2ReviewListV2ResponseReviewOrderStatusEnum(value) { + for (const key in ReviewV2ReviewListV2ResponseReviewOrderStatusEnum) { + if (Object.prototype.hasOwnProperty.call(ReviewV2ReviewListV2ResponseReviewOrderStatusEnum, key)) { + if (ReviewV2ReviewListV2ResponseReviewOrderStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON(json) { + return ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.d.ts b/dist/esm/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.d.ts new file mode 100644 index 0000000..3a45f47 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export declare const ReviewV2ReviewListV2ResponseReviewStatusEnum: { + readonly NEW: "NEW"; + readonly VIEWED: "VIEWED"; + readonly PROCESSED: "PROCESSED"; +}; +export type ReviewV2ReviewListV2ResponseReviewStatusEnum = typeof ReviewV2ReviewListV2ResponseReviewStatusEnum[keyof typeof ReviewV2ReviewListV2ResponseReviewStatusEnum]; +export declare function instanceOfReviewV2ReviewListV2ResponseReviewStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON(json: any): ReviewV2ReviewListV2ResponseReviewStatusEnum; +export declare function ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2ResponseReviewStatusEnum; +export declare function ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON(value?: ReviewV2ReviewListV2ResponseReviewStatusEnum | null): any; diff --git a/dist/esm/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.js b/dist/esm/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.js new file mode 100644 index 0000000..8e85419 --- /dev/null +++ b/dist/esm/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export const ReviewV2ReviewListV2ResponseReviewStatusEnum = { + NEW: 'NEW', + VIEWED: 'VIEWED', + PROCESSED: 'PROCESSED' +}; +export function instanceOfReviewV2ReviewListV2ResponseReviewStatusEnum(value) { + for (const key in ReviewV2ReviewListV2ResponseReviewStatusEnum) { + if (Object.prototype.hasOwnProperty.call(ReviewV2ReviewListV2ResponseReviewStatusEnum, key)) { + if (ReviewV2ReviewListV2ResponseReviewStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON(json) { + return ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSONTyped(json, false); +} +export function ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/RolesByTokenResponseRoles.d.ts b/dist/esm/models/RolesByTokenResponseRoles.d.ts new file mode 100644 index 0000000..4a62a9c --- /dev/null +++ b/dist/esm/models/RolesByTokenResponseRoles.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RolesByTokenResponseRoles + */ +export interface RolesByTokenResponseRoles { + /** + * Название роли. + * @type {string} + * @memberof RolesByTokenResponseRoles + */ + name?: string; + /** + * Методы, доступные для роли. + * @type {Array} + * @memberof RolesByTokenResponseRoles + */ + methods?: Array; +} +/** + * Check if a given object implements the RolesByTokenResponseRoles interface. + */ +export declare function instanceOfRolesByTokenResponseRoles(value: object): value is RolesByTokenResponseRoles; +export declare function RolesByTokenResponseRolesFromJSON(json: any): RolesByTokenResponseRoles; +export declare function RolesByTokenResponseRolesFromJSONTyped(json: any, ignoreDiscriminator: boolean): RolesByTokenResponseRoles; +export declare function RolesByTokenResponseRolesToJSON(value?: RolesByTokenResponseRoles | null): any; diff --git a/dist/esm/models/RolesByTokenResponseRoles.js b/dist/esm/models/RolesByTokenResponseRoles.js new file mode 100644 index 0000000..1f18ef6 --- /dev/null +++ b/dist/esm/models/RolesByTokenResponseRoles.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RolesByTokenResponseRoles interface. + */ +export function instanceOfRolesByTokenResponseRoles(value) { + return true; +} +export function RolesByTokenResponseRolesFromJSON(json) { + return RolesByTokenResponseRolesFromJSONTyped(json, false); +} +export function RolesByTokenResponseRolesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'methods': json['methods'] == null ? undefined : json['methods'], + }; +} +export function RolesByTokenResponseRolesToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'methods': value['methods'], + }; +} diff --git a/dist/esm/models/RowItem.d.ts b/dist/esm/models/RowItem.d.ts new file mode 100644 index 0000000..4f62d26 --- /dev/null +++ b/dist/esm/models/RowItem.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о товаре. + * @export + * @interface RowItem + */ +export interface RowItem { + /** + * Штрихкод товара. + * @type {string} + * @memberof RowItem + */ + barcode?: string; + /** + * Наименование товара. + * @type {string} + * @memberof RowItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof RowItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof RowItem + */ + sku?: number; +} +/** + * Check if a given object implements the RowItem interface. + */ +export declare function instanceOfRowItem(value: object): value is RowItem; +export declare function RowItemFromJSON(json: any): RowItem; +export declare function RowItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItem; +export declare function RowItemToJSON(value?: RowItem | null): any; diff --git a/dist/esm/models/RowItem.js b/dist/esm/models/RowItem.js new file mode 100644 index 0000000..465cae4 --- /dev/null +++ b/dist/esm/models/RowItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RowItem interface. + */ +export function instanceOfRowItem(value) { + return true; +} +export function RowItemFromJSON(json) { + return RowItemFromJSONTyped(json, false); +} +export function RowItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function RowItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/RowItemCommission.d.ts b/dist/esm/models/RowItemCommission.d.ts new file mode 100644 index 0000000..2d7c19c --- /dev/null +++ b/dist/esm/models/RowItemCommission.d.ts @@ -0,0 +1,101 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за доставку. + * @export + * @interface RowItemCommission + */ +export interface RowItemCommission { + /** + * Сумма. + * @type {number} + * @memberof RowItemCommission + */ + amount?: number; + /** + * Баллы за скидки. + * @type {number} + * @memberof RowItemCommission + */ + bonus?: number; + /** + * Итоговая комиссия с учётом скидок и наценки. + * + * + * + * @type {number} + * @memberof RowItemCommission + */ + commission?: number; + /** + * Доплата за счёт Ozon. + * + * + * + * @type {number} + * @memberof RowItemCommission + */ + compensation?: number; + /** + * Цена за экземпляр. + * @type {number} + * @memberof RowItemCommission + */ + price_per_instance?: number; + /** + * Количество товара. + * @type {number} + * @memberof RowItemCommission + */ + quantity?: number; + /** + * Базовое вознаграждение Ozon. + * @type {number} + * @memberof RowItemCommission + */ + standard_fee?: number; + /** + * Выплаты по механикам лояльности партнёров: зелёные цены. + * @type {number} + * @memberof RowItemCommission + */ + bank_coinvestment?: number; + /** + * Выплаты по механикам лояльности партнёров: звёзды. + * @type {number} + * @memberof RowItemCommission + */ + stars?: number; + /** + * Выплаты по механикам лояльности партнёров: АПВЗ. + * @type {number} + * @memberof RowItemCommission + */ + pick_up_point_coinvestment?: number; + /** + * Итого к начислению. + * @type {number} + * @memberof RowItemCommission + */ + total?: number; +} +/** + * Check if a given object implements the RowItemCommission interface. + */ +export declare function instanceOfRowItemCommission(value: object): value is RowItemCommission; +export declare function RowItemCommissionFromJSON(json: any): RowItemCommission; +export declare function RowItemCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItemCommission; +export declare function RowItemCommissionToJSON(value?: RowItemCommission | null): any; diff --git a/dist/esm/models/RowItemCommission.js b/dist/esm/models/RowItemCommission.js new file mode 100644 index 0000000..a1183e5 --- /dev/null +++ b/dist/esm/models/RowItemCommission.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RowItemCommission interface. + */ +export function instanceOfRowItemCommission(value) { + return true; +} +export function RowItemCommissionFromJSON(json) { + return RowItemCommissionFromJSONTyped(json, false); +} +export function RowItemCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'bonus': json['bonus'] == null ? undefined : json['bonus'], + 'commission': json['commission'] == null ? undefined : json['commission'], + 'compensation': json['compensation'] == null ? undefined : json['compensation'], + 'price_per_instance': json['price_per_instance'] == null ? undefined : json['price_per_instance'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'standard_fee': json['standard_fee'] == null ? undefined : json['standard_fee'], + 'bank_coinvestment': json['bank_coinvestment'] == null ? undefined : json['bank_coinvestment'], + 'stars': json['stars'] == null ? undefined : json['stars'], + 'pick_up_point_coinvestment': json['pick_up_point_coinvestment'] == null ? undefined : json['pick_up_point_coinvestment'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function RowItemCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'bonus': value['bonus'], + 'commission': value['commission'], + 'compensation': value['compensation'], + 'price_per_instance': value['price_per_instance'], + 'quantity': value['quantity'], + 'standard_fee': value['standard_fee'], + 'bank_coinvestment': value['bank_coinvestment'], + 'stars': value['stars'], + 'pick_up_point_coinvestment': value['pick_up_point_coinvestment'], + 'total': value['total'], + }; +} diff --git a/dist/esm/models/RowItemCommissionReturn.d.ts b/dist/esm/models/RowItemCommissionReturn.d.ts new file mode 100644 index 0000000..0bea424 --- /dev/null +++ b/dist/esm/models/RowItemCommissionReturn.d.ts @@ -0,0 +1,97 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за возврат товара. + * @export + * @interface RowItemCommissionReturn + */ +export interface RowItemCommissionReturn { + /** + * Сумма. + * @type {number} + * @memberof RowItemCommissionReturn + */ + amount?: number; + /** + * Баллы за скидки. + * @type {number} + * @memberof RowItemCommissionReturn + */ + bonus?: number; + /** + * Итоговая комиссия с учётом скидок и наценки. + * + * @type {number} + * @memberof RowItemCommissionReturn + */ + commission?: number; + /** + * Доплата за счёт Ozon. + * + * + * + * @type {number} + * @memberof RowItemCommissionReturn + */ + compensation?: number; + /** + * Цена за экземпляр. + * @type {number} + * @memberof RowItemCommissionReturn + */ + price_per_instance?: number; + /** + * Количество товара. + * @type {number} + * @memberof RowItemCommissionReturn + */ + quantity?: number; + /** + * Базовое вознаграждение Ozon. + * @type {number} + * @memberof RowItemCommissionReturn + */ + standard_fee?: number; + /** + * Выплаты по механикам лояльности партнёров: зелёные цены. + * @type {number} + * @memberof RowItemCommissionReturn + */ + bank_coinvestment?: number; + /** + * Выплаты по механикам лояльности партнёров: звёзды. + * @type {number} + * @memberof RowItemCommissionReturn + */ + stars?: number; + /** + * Выплаты по механикам лояльности партнёров: АПВЗ. + * @type {number} + * @memberof RowItemCommissionReturn + */ + pick_up_point_coinvestment?: number; + /** + * Итого к начислению. + * @type {number} + * @memberof RowItemCommissionReturn + */ + total?: number; +} +/** + * Check if a given object implements the RowItemCommissionReturn interface. + */ +export declare function instanceOfRowItemCommissionReturn(value: object): value is RowItemCommissionReturn; +export declare function RowItemCommissionReturnFromJSON(json: any): RowItemCommissionReturn; +export declare function RowItemCommissionReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItemCommissionReturn; +export declare function RowItemCommissionReturnToJSON(value?: RowItemCommissionReturn | null): any; diff --git a/dist/esm/models/RowItemCommissionReturn.js b/dist/esm/models/RowItemCommissionReturn.js new file mode 100644 index 0000000..5e1a6f9 --- /dev/null +++ b/dist/esm/models/RowItemCommissionReturn.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RowItemCommissionReturn interface. + */ +export function instanceOfRowItemCommissionReturn(value) { + return true; +} +export function RowItemCommissionReturnFromJSON(json) { + return RowItemCommissionReturnFromJSONTyped(json, false); +} +export function RowItemCommissionReturnFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'bonus': json['bonus'] == null ? undefined : json['bonus'], + 'commission': json['commission'] == null ? undefined : json['commission'], + 'compensation': json['compensation'] == null ? undefined : json['compensation'], + 'price_per_instance': json['price_per_instance'] == null ? undefined : json['price_per_instance'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'standard_fee': json['standard_fee'] == null ? undefined : json['standard_fee'], + 'bank_coinvestment': json['bank_coinvestment'] == null ? undefined : json['bank_coinvestment'], + 'stars': json['stars'] == null ? undefined : json['stars'], + 'pick_up_point_coinvestment': json['pick_up_point_coinvestment'] == null ? undefined : json['pick_up_point_coinvestment'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function RowItemCommissionReturnToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'bonus': value['bonus'], + 'commission': value['commission'], + 'compensation': value['compensation'], + 'price_per_instance': value['price_per_instance'], + 'quantity': value['quantity'], + 'standard_fee': value['standard_fee'], + 'bank_coinvestment': value['bank_coinvestment'], + 'stars': value['stars'], + 'pick_up_point_coinvestment': value['pick_up_point_coinvestment'], + 'total': value['total'], + }; +} diff --git a/dist/esm/models/RowItemLegalEntityDocument.d.ts b/dist/esm/models/RowItemLegalEntityDocument.d.ts new file mode 100644 index 0000000..491e7a1 --- /dev/null +++ b/dist/esm/models/RowItemLegalEntityDocument.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о продаже юридическому лицу. + * @export + * @interface RowItemLegalEntityDocument + */ +export interface RowItemLegalEntityDocument { + /** + * Номер счёта-фактуры. + * @type {string} + * @memberof RowItemLegalEntityDocument + */ + number?: string; + /** + * Дата в формате «ГГГГ-ММ-ДД». + * @type {string} + * @memberof RowItemLegalEntityDocument + */ + sale_date?: string; +} +/** + * Check if a given object implements the RowItemLegalEntityDocument interface. + */ +export declare function instanceOfRowItemLegalEntityDocument(value: object): value is RowItemLegalEntityDocument; +export declare function RowItemLegalEntityDocumentFromJSON(json: any): RowItemLegalEntityDocument; +export declare function RowItemLegalEntityDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItemLegalEntityDocument; +export declare function RowItemLegalEntityDocumentToJSON(value?: RowItemLegalEntityDocument | null): any; diff --git a/dist/esm/models/RowItemLegalEntityDocument.js b/dist/esm/models/RowItemLegalEntityDocument.js new file mode 100644 index 0000000..e997155 --- /dev/null +++ b/dist/esm/models/RowItemLegalEntityDocument.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RowItemLegalEntityDocument interface. + */ +export function instanceOfRowItemLegalEntityDocument(value) { + return true; +} +export function RowItemLegalEntityDocumentFromJSON(json) { + return RowItemLegalEntityDocumentFromJSONTyped(json, false); +} +export function RowItemLegalEntityDocumentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'number': json['number'] == null ? undefined : json['number'], + 'sale_date': json['sale_date'] == null ? undefined : json['sale_date'], + }; +} +export function RowItemLegalEntityDocumentToJSON(value) { + if (value == null) { + return value; + } + return { + 'number': value['number'], + 'sale_date': value['sale_date'], + }; +} diff --git a/dist/esm/models/RowItemOrder.d.ts b/dist/esm/models/RowItemOrder.d.ts new file mode 100644 index 0000000..dfbcb51 --- /dev/null +++ b/dist/esm/models/RowItemOrder.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе. + * @export + * @interface RowItemOrder + */ +export interface RowItemOrder { + /** + * Номер отправления. + * @type {string} + * @memberof RowItemOrder + */ + posting_number?: string; + /** + * Дата заказа в формате «ГГГГ-ММ-ДД». + * @type {string} + * @memberof RowItemOrder + */ + created_date?: string; +} +/** + * Check if a given object implements the RowItemOrder interface. + */ +export declare function instanceOfRowItemOrder(value: object): value is RowItemOrder; +export declare function RowItemOrderFromJSON(json: any): RowItemOrder; +export declare function RowItemOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItemOrder; +export declare function RowItemOrderToJSON(value?: RowItemOrder | null): any; diff --git a/dist/esm/models/RowItemOrder.js b/dist/esm/models/RowItemOrder.js new file mode 100644 index 0000000..8d3910f --- /dev/null +++ b/dist/esm/models/RowItemOrder.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the RowItemOrder interface. + */ +export function instanceOfRowItemOrder(value) { + return true; +} +export function RowItemOrderFromJSON(json) { + return RowItemOrderFromJSONTyped(json, false); +} +export function RowItemOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + }; +} +export function RowItemOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'created_date': value['created_date'], + }; +} diff --git a/dist/esm/models/RpcStatus.d.ts b/dist/esm/models/RpcStatus.d.ts new file mode 100644 index 0000000..3b51475 --- /dev/null +++ b/dist/esm/models/RpcStatus.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface RpcStatus + */ +export interface RpcStatus { + /** + * Код ошибки. + * @type {number} + * @memberof RpcStatus + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {Array} + * @memberof RpcStatus + */ + details?: Array; + /** + * Описание ошибки. + * @type {string} + * @memberof RpcStatus + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatus interface. + */ +export declare function instanceOfRpcStatus(value: object): value is RpcStatus; +export declare function RpcStatusFromJSON(json: any): RpcStatus; +export declare function RpcStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatus; +export declare function RpcStatusToJSON(value?: RpcStatus | null): any; diff --git a/dist/esm/models/RpcStatus.js b/dist/esm/models/RpcStatus.js new file mode 100644 index 0000000..3e4465c --- /dev/null +++ b/dist/esm/models/RpcStatus.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProtobufAnyFromJSON, ProtobufAnyToJSON, } from './ProtobufAny'; +/** + * Check if a given object implements the RpcStatus interface. + */ +export function instanceOfRpcStatus(value) { + return true; +} +export function RpcStatusFromJSON(json) { + return RpcStatusFromJSONTyped(json, false); +} +export function RpcStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function RpcStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/esm/models/RpcStatusV1FinanceRealizationPosting.d.ts b/dist/esm/models/RpcStatusV1FinanceRealizationPosting.d.ts new file mode 100644 index 0000000..7a1f547 --- /dev/null +++ b/dist/esm/models/RpcStatusV1FinanceRealizationPosting.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface RpcStatusV1FinanceRealizationPosting + */ +export interface RpcStatusV1FinanceRealizationPosting { + /** + * Код ошибки. + * @type {number} + * @memberof RpcStatusV1FinanceRealizationPosting + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {Array} + * @memberof RpcStatusV1FinanceRealizationPosting + */ + details?: Array; + /** + * Описание ошибки: + * + * - `The requested report is too large. Use /v1/report/realization/posting/create.` — отчёт нельзя получить методом [/v1/finance/realization/posting](#operation/FinanceAPI_GetRealizationReportV1). Используйте метод [/v1/report/realization/posting/create](#operation/CreateCompanyFinanceRealizationPostingReport). + * - `Request validation error: invalid GetRealizationReportPostingRequest.Month: value must be inside range [1, 12]` — некорректное значение месяца. + * - `Year, Month, and Day parameters describe an un-representable DateTime.` — некорректная дата. + * - `Request validation error: invalid GetRealizationReportPostingRequest.Year: value must be greater than or equal to 2023` — некорректный год. Отчёт доступен с настоящего времени по август 2023 года включительно. + * + * @type {string} + * @memberof RpcStatusV1FinanceRealizationPosting + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatusV1FinanceRealizationPosting interface. + */ +export declare function instanceOfRpcStatusV1FinanceRealizationPosting(value: object): value is RpcStatusV1FinanceRealizationPosting; +export declare function RpcStatusV1FinanceRealizationPostingFromJSON(json: any): RpcStatusV1FinanceRealizationPosting; +export declare function RpcStatusV1FinanceRealizationPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatusV1FinanceRealizationPosting; +export declare function RpcStatusV1FinanceRealizationPostingToJSON(value?: RpcStatusV1FinanceRealizationPosting | null): any; diff --git a/dist/esm/models/RpcStatusV1FinanceRealizationPosting.js b/dist/esm/models/RpcStatusV1FinanceRealizationPosting.js new file mode 100644 index 0000000..fa3a0db --- /dev/null +++ b/dist/esm/models/RpcStatusV1FinanceRealizationPosting.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProtobufAnyFromJSON, ProtobufAnyToJSON, } from './ProtobufAny'; +/** + * Check if a given object implements the RpcStatusV1FinanceRealizationPosting interface. + */ +export function instanceOfRpcStatusV1FinanceRealizationPosting(value) { + return true; +} +export function RpcStatusV1FinanceRealizationPostingFromJSON(json) { + return RpcStatusV1FinanceRealizationPostingFromJSONTyped(json, false); +} +export function RpcStatusV1FinanceRealizationPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function RpcStatusV1FinanceRealizationPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/esm/models/RpcStatusV1PolygonBind.d.ts b/dist/esm/models/RpcStatusV1PolygonBind.d.ts new file mode 100644 index 0000000..c2a7fca --- /dev/null +++ b/dist/esm/models/RpcStatusV1PolygonBind.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface RpcStatusV1PolygonBind + */ +export interface RpcStatusV1PolygonBind { + /** + * + * @type {number} + * @memberof RpcStatusV1PolygonBind + */ + code?: number; + /** + * + * @type {Array} + * @memberof RpcStatusV1PolygonBind + */ + details?: Array; + /** + * Сообщение об ошибке: + * + * - **delivery target polygons not provided** — полигоны не переданы; + * - **no delivery method id provided** — delivery_method_id не передан; + * - **no warehouse points provided** — не передана координата склада; + * - **polygon id .... not found** — переданы ID полигонов, которые не найдены в базе данных; + * - **not found polygon for warehouse point** — точка склада не принадлежит ни одному переданному полигону. + * + * @type {string} + * @memberof RpcStatusV1PolygonBind + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatusV1PolygonBind interface. + */ +export declare function instanceOfRpcStatusV1PolygonBind(value: object): value is RpcStatusV1PolygonBind; +export declare function RpcStatusV1PolygonBindFromJSON(json: any): RpcStatusV1PolygonBind; +export declare function RpcStatusV1PolygonBindFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatusV1PolygonBind; +export declare function RpcStatusV1PolygonBindToJSON(value?: RpcStatusV1PolygonBind | null): any; diff --git a/dist/esm/models/RpcStatusV1PolygonBind.js b/dist/esm/models/RpcStatusV1PolygonBind.js new file mode 100644 index 0000000..c48de08 --- /dev/null +++ b/dist/esm/models/RpcStatusV1PolygonBind.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProtobufAnyFromJSON, ProtobufAnyToJSON, } from './ProtobufAny'; +/** + * Check if a given object implements the RpcStatusV1PolygonBind interface. + */ +export function instanceOfRpcStatusV1PolygonBind(value) { + return true; +} +export function RpcStatusV1PolygonBindFromJSON(json) { + return RpcStatusV1PolygonBindFromJSONTyped(json, false); +} +export function RpcStatusV1PolygonBindFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function RpcStatusV1PolygonBindToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/esm/models/RpcStatusV1PolygonCreate.d.ts b/dist/esm/models/RpcStatusV1PolygonCreate.d.ts new file mode 100644 index 0000000..ae070a5 --- /dev/null +++ b/dist/esm/models/RpcStatusV1PolygonCreate.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface RpcStatusV1PolygonCreate + */ +export interface RpcStatusV1PolygonCreate { + /** + * Код ошибки. + * @type {number} + * @memberof RpcStatusV1PolygonCreate + */ + code?: number; + /** + * Информация об ошибке. + * @type {Array} + * @memberof RpcStatusV1PolygonCreate + */ + details?: Array; + /** + * Сообщение об ошибке: + * + * - `coordinates not provided` — координаты не переданы; + * - `invalid coordinates, must have two points in coordinate` — в какой-то точке передана только широта или долгота, нужно передать две точки; + * - `the first and last points in loop must be same` — первая и последняя точка не совпадают (по стандартным правилам geojson точки должны совпадать); + * - `non-full loops must have at least 4 unique vertices for polygons` — для полигона передано менее четырех точек. + * + * @type {string} + * @memberof RpcStatusV1PolygonCreate + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatusV1PolygonCreate interface. + */ +export declare function instanceOfRpcStatusV1PolygonCreate(value: object): value is RpcStatusV1PolygonCreate; +export declare function RpcStatusV1PolygonCreateFromJSON(json: any): RpcStatusV1PolygonCreate; +export declare function RpcStatusV1PolygonCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatusV1PolygonCreate; +export declare function RpcStatusV1PolygonCreateToJSON(value?: RpcStatusV1PolygonCreate | null): any; diff --git a/dist/esm/models/RpcStatusV1PolygonCreate.js b/dist/esm/models/RpcStatusV1PolygonCreate.js new file mode 100644 index 0000000..29d27fd --- /dev/null +++ b/dist/esm/models/RpcStatusV1PolygonCreate.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProtobufAnyFromJSON, ProtobufAnyToJSON, } from './ProtobufAny'; +/** + * Check if a given object implements the RpcStatusV1PolygonCreate interface. + */ +export function instanceOfRpcStatusV1PolygonCreate(value) { + return true; +} +export function RpcStatusV1PolygonCreateFromJSON(json) { + return RpcStatusV1PolygonCreateFromJSONTyped(json, false); +} +export function RpcStatusV1PolygonCreateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function RpcStatusV1PolygonCreateToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/esm/models/RpcStatusV2DeliveryCheckout.d.ts b/dist/esm/models/RpcStatusV2DeliveryCheckout.d.ts new file mode 100644 index 0000000..b2f60e8 --- /dev/null +++ b/dist/esm/models/RpcStatusV2DeliveryCheckout.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAnyV2DeliveryCheckout } from './ProtobufAnyV2DeliveryCheckout'; +/** + * + * @export + * @interface RpcStatusV2DeliveryCheckout + */ +export interface RpcStatusV2DeliveryCheckout { + /** + * Код ошибки. + * @type {number} + * @memberof RpcStatusV2DeliveryCheckout + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {Array} + * @memberof RpcStatusV2DeliveryCheckout + */ + details?: Array; + /** + * Описание ошибки. + * @type {string} + * @memberof RpcStatusV2DeliveryCheckout + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatusV2DeliveryCheckout interface. + */ +export declare function instanceOfRpcStatusV2DeliveryCheckout(value: object): value is RpcStatusV2DeliveryCheckout; +export declare function RpcStatusV2DeliveryCheckoutFromJSON(json: any): RpcStatusV2DeliveryCheckout; +export declare function RpcStatusV2DeliveryCheckoutFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatusV2DeliveryCheckout; +export declare function RpcStatusV2DeliveryCheckoutToJSON(value?: RpcStatusV2DeliveryCheckout | null): any; diff --git a/dist/esm/models/RpcStatusV2DeliveryCheckout.js b/dist/esm/models/RpcStatusV2DeliveryCheckout.js new file mode 100644 index 0000000..f229ab1 --- /dev/null +++ b/dist/esm/models/RpcStatusV2DeliveryCheckout.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProtobufAnyV2DeliveryCheckoutFromJSON, ProtobufAnyV2DeliveryCheckoutToJSON, } from './ProtobufAnyV2DeliveryCheckout'; +/** + * Check if a given object implements the RpcStatusV2DeliveryCheckout interface. + */ +export function instanceOfRpcStatusV2DeliveryCheckout(value) { + return true; +} +export function RpcStatusV2DeliveryCheckoutFromJSON(json) { + return RpcStatusV2DeliveryCheckoutFromJSONTyped(json, false); +} +export function RpcStatusV2DeliveryCheckoutFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAnyV2DeliveryCheckoutFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function RpcStatusV2DeliveryCheckoutToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAnyV2DeliveryCheckoutToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/esm/models/SearchAttributeValuesResponseValue.d.ts b/dist/esm/models/SearchAttributeValuesResponseValue.d.ts new file mode 100644 index 0000000..a76cb9b --- /dev/null +++ b/dist/esm/models/SearchAttributeValuesResponseValue.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SearchAttributeValuesResponseValue + */ +export interface SearchAttributeValuesResponseValue { + /** + * Идентификатор значения характеристики. + * @type {number} + * @memberof SearchAttributeValuesResponseValue + */ + id?: number; + /** + * Дополнительная информация. + * @type {string} + * @memberof SearchAttributeValuesResponseValue + */ + info?: string; + /** + * Ссылка на изображение. + * @type {string} + * @memberof SearchAttributeValuesResponseValue + */ + picture?: string; + /** + * Значение характеристики товара. + * @type {string} + * @memberof SearchAttributeValuesResponseValue + */ + value?: string; +} +/** + * Check if a given object implements the SearchAttributeValuesResponseValue interface. + */ +export declare function instanceOfSearchAttributeValuesResponseValue(value: object): value is SearchAttributeValuesResponseValue; +export declare function SearchAttributeValuesResponseValueFromJSON(json: any): SearchAttributeValuesResponseValue; +export declare function SearchAttributeValuesResponseValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAttributeValuesResponseValue; +export declare function SearchAttributeValuesResponseValueToJSON(value?: SearchAttributeValuesResponseValue | null): any; diff --git a/dist/esm/models/SearchAttributeValuesResponseValue.js b/dist/esm/models/SearchAttributeValuesResponseValue.js new file mode 100644 index 0000000..27f7e8f --- /dev/null +++ b/dist/esm/models/SearchAttributeValuesResponseValue.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SearchAttributeValuesResponseValue interface. + */ +export function instanceOfSearchAttributeValuesResponseValue(value) { + return true; +} +export function SearchAttributeValuesResponseValueFromJSON(json) { + return SearchAttributeValuesResponseValueFromJSONTyped(json, false); +} +export function SearchAttributeValuesResponseValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'info': json['info'] == null ? undefined : json['info'], + 'picture': json['picture'] == null ? undefined : json['picture'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function SearchAttributeValuesResponseValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'info': value['info'], + 'picture': value['picture'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/SearchQueriesTextRequestSortBy.d.ts b/dist/esm/models/SearchQueriesTextRequestSortBy.d.ts new file mode 100644 index 0000000..c753517 --- /dev/null +++ b/dist/esm/models/SearchQueriesTextRequestSortBy.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому сортируются поисковые запросы: + * - `CLIENT_COUNT` — популярность запроса; + * - `ADD_TO_CART` — добавления в корзину; + * - `CONVERSION_TO_CART` — конверсия в корзине; + * - `AVG_PRICE` — средняя цена. + * + * @export + */ +export declare const SearchQueriesTextRequestSortBy: { + readonly CLIENT_COUNT: "CLIENT_COUNT"; + readonly ADD_TO_CART: "ADD_TO_CART"; + readonly CONVERSION_TO_CART: "CONVERSION_TO_CART"; + readonly AVG_PRICE: "AVG_PRICE"; +}; +export type SearchQueriesTextRequestSortBy = typeof SearchQueriesTextRequestSortBy[keyof typeof SearchQueriesTextRequestSortBy]; +export declare function instanceOfSearchQueriesTextRequestSortBy(value: any): boolean; +export declare function SearchQueriesTextRequestSortByFromJSON(json: any): SearchQueriesTextRequestSortBy; +export declare function SearchQueriesTextRequestSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchQueriesTextRequestSortBy; +export declare function SearchQueriesTextRequestSortByToJSON(value?: SearchQueriesTextRequestSortBy | null): any; diff --git a/dist/esm/models/SearchQueriesTextRequestSortBy.js b/dist/esm/models/SearchQueriesTextRequestSortBy.js new file mode 100644 index 0000000..d0fbd01 --- /dev/null +++ b/dist/esm/models/SearchQueriesTextRequestSortBy.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому сортируются поисковые запросы: + * - `CLIENT_COUNT` — популярность запроса; + * - `ADD_TO_CART` — добавления в корзину; + * - `CONVERSION_TO_CART` — конверсия в корзине; + * - `AVG_PRICE` — средняя цена. + * + * @export + */ +export const SearchQueriesTextRequestSortBy = { + CLIENT_COUNT: 'CLIENT_COUNT', + ADD_TO_CART: 'ADD_TO_CART', + CONVERSION_TO_CART: 'CONVERSION_TO_CART', + AVG_PRICE: 'AVG_PRICE' +}; +export function instanceOfSearchQueriesTextRequestSortBy(value) { + for (const key in SearchQueriesTextRequestSortBy) { + if (Object.prototype.hasOwnProperty.call(SearchQueriesTextRequestSortBy, key)) { + if (SearchQueriesTextRequestSortBy[key] === value) { + return true; + } + } + } + return false; +} +export function SearchQueriesTextRequestSortByFromJSON(json) { + return SearchQueriesTextRequestSortByFromJSONTyped(json, false); +} +export function SearchQueriesTextRequestSortByFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SearchQueriesTextRequestSortByToJSON(value) { + return value; +} diff --git a/dist/esm/models/SearchQueriesTextRequestSortDir.d.ts b/dist/esm/models/SearchQueriesTextRequestSortDir.d.ts new file mode 100644 index 0000000..9ec34a8 --- /dev/null +++ b/dist/esm/models/SearchQueriesTextRequestSortDir.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const SearchQueriesTextRequestSortDir: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type SearchQueriesTextRequestSortDir = typeof SearchQueriesTextRequestSortDir[keyof typeof SearchQueriesTextRequestSortDir]; +export declare function instanceOfSearchQueriesTextRequestSortDir(value: any): boolean; +export declare function SearchQueriesTextRequestSortDirFromJSON(json: any): SearchQueriesTextRequestSortDir; +export declare function SearchQueriesTextRequestSortDirFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchQueriesTextRequestSortDir; +export declare function SearchQueriesTextRequestSortDirToJSON(value?: SearchQueriesTextRequestSortDir | null): any; diff --git a/dist/esm/models/SearchQueriesTextRequestSortDir.js b/dist/esm/models/SearchQueriesTextRequestSortDir.js new file mode 100644 index 0000000..4520525 --- /dev/null +++ b/dist/esm/models/SearchQueriesTextRequestSortDir.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const SearchQueriesTextRequestSortDir = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfSearchQueriesTextRequestSortDir(value) { + for (const key in SearchQueriesTextRequestSortDir) { + if (Object.prototype.hasOwnProperty.call(SearchQueriesTextRequestSortDir, key)) { + if (SearchQueriesTextRequestSortDir[key] === value) { + return true; + } + } + } + return false; +} +export function SearchQueriesTextRequestSortDirFromJSON(json) { + return SearchQueriesTextRequestSortDirFromJSONTyped(json, false); +} +export function SearchQueriesTextRequestSortDirFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SearchQueriesTextRequestSortDirToJSON(value) { + return value; +} diff --git a/dist/esm/models/SellerActionsListRequestActionTypeEnum.d.ts b/dist/esm/models/SellerActionsListRequestActionTypeEnum.d.ts new file mode 100644 index 0000000..09d3cd6 --- /dev/null +++ b/dist/esm/models/SellerActionsListRequestActionTypeEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Механика акции: + * - `DISCOUNT` — скидка; + * - `VOUCHER_DISCOUNT` — скидка по промокоду; + * - `DISCOUNT_WITH_CONDITION` — скидка от суммы заказа; + * - `INSTALLMENT` — беспроцентная рассрочка; + * - `INDIVIDUAL_DISCOUNT_BY_PRODUCTS` — бонусы продавца; + * - `OZON_ACCOUNT_DISCOUNT` — повышенная скидка с картой Ozon Банка; + * - `MULTI_LEVEL_DISCOUNT_ON_AMOUNT` — многоуровневая скидка от суммы. + * + * @export + */ +export declare const SellerActionsListRequestActionTypeEnum: { + readonly DISCOUNT: "DISCOUNT"; + readonly VOUCHER_DISCOUNT: "VOUCHER_DISCOUNT"; + readonly DISCOUNT_WITH_CONDITION: "DISCOUNT_WITH_CONDITION"; + readonly INSTALLMENT: "INSTALLMENT"; + readonly INDIVIDUAL_DISCOUNT_BY_PRODUCTS: "INDIVIDUAL_DISCOUNT_BY_PRODUCTS"; + readonly OZON_ACCOUNT_DISCOUNT: "OZON_ACCOUNT_DISCOUNT"; + readonly MULTI_LEVEL_DISCOUNT_ON_AMOUNT: "MULTI_LEVEL_DISCOUNT_ON_AMOUNT"; +}; +export type SellerActionsListRequestActionTypeEnum = typeof SellerActionsListRequestActionTypeEnum[keyof typeof SellerActionsListRequestActionTypeEnum]; +export declare function instanceOfSellerActionsListRequestActionTypeEnum(value: any): boolean; +export declare function SellerActionsListRequestActionTypeEnumFromJSON(json: any): SellerActionsListRequestActionTypeEnum; +export declare function SellerActionsListRequestActionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerActionsListRequestActionTypeEnum; +export declare function SellerActionsListRequestActionTypeEnumToJSON(value?: SellerActionsListRequestActionTypeEnum | null): any; diff --git a/dist/esm/models/SellerActionsListRequestActionTypeEnum.js b/dist/esm/models/SellerActionsListRequestActionTypeEnum.js new file mode 100644 index 0000000..803d8e8 --- /dev/null +++ b/dist/esm/models/SellerActionsListRequestActionTypeEnum.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Механика акции: + * - `DISCOUNT` — скидка; + * - `VOUCHER_DISCOUNT` — скидка по промокоду; + * - `DISCOUNT_WITH_CONDITION` — скидка от суммы заказа; + * - `INSTALLMENT` — беспроцентная рассрочка; + * - `INDIVIDUAL_DISCOUNT_BY_PRODUCTS` — бонусы продавца; + * - `OZON_ACCOUNT_DISCOUNT` — повышенная скидка с картой Ozon Банка; + * - `MULTI_LEVEL_DISCOUNT_ON_AMOUNT` — многоуровневая скидка от суммы. + * + * @export + */ +export const SellerActionsListRequestActionTypeEnum = { + DISCOUNT: 'DISCOUNT', + VOUCHER_DISCOUNT: 'VOUCHER_DISCOUNT', + DISCOUNT_WITH_CONDITION: 'DISCOUNT_WITH_CONDITION', + INSTALLMENT: 'INSTALLMENT', + INDIVIDUAL_DISCOUNT_BY_PRODUCTS: 'INDIVIDUAL_DISCOUNT_BY_PRODUCTS', + OZON_ACCOUNT_DISCOUNT: 'OZON_ACCOUNT_DISCOUNT', + MULTI_LEVEL_DISCOUNT_ON_AMOUNT: 'MULTI_LEVEL_DISCOUNT_ON_AMOUNT' +}; +export function instanceOfSellerActionsListRequestActionTypeEnum(value) { + for (const key in SellerActionsListRequestActionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(SellerActionsListRequestActionTypeEnum, key)) { + if (SellerActionsListRequestActionTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SellerActionsListRequestActionTypeEnumFromJSON(json) { + return SellerActionsListRequestActionTypeEnumFromJSONTyped(json, false); +} +export function SellerActionsListRequestActionTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SellerActionsListRequestActionTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SellerActionsListRequestStatusEnum.d.ts b/dist/esm/models/SellerActionsListRequestStatusEnum.d.ts new file mode 100644 index 0000000..58a3854 --- /dev/null +++ b/dist/esm/models/SellerActionsListRequestStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус акции: + * - `ACTIVE` — активна; + * - `ENDED` — завершена; + * - `PLANNED` — запланирована; + * - `PAUSED` — приостановлена. + * + * @export + */ +export declare const SellerActionsListRequestStatusEnum: { + readonly ACTIVE: "ACTIVE"; + readonly ENDED: "ENDED"; + readonly PLANNED: "PLANNED"; + readonly PAUSED: "PAUSED"; +}; +export type SellerActionsListRequestStatusEnum = typeof SellerActionsListRequestStatusEnum[keyof typeof SellerActionsListRequestStatusEnum]; +export declare function instanceOfSellerActionsListRequestStatusEnum(value: any): boolean; +export declare function SellerActionsListRequestStatusEnumFromJSON(json: any): SellerActionsListRequestStatusEnum; +export declare function SellerActionsListRequestStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerActionsListRequestStatusEnum; +export declare function SellerActionsListRequestStatusEnumToJSON(value?: SellerActionsListRequestStatusEnum | null): any; diff --git a/dist/esm/models/SellerActionsListRequestStatusEnum.js b/dist/esm/models/SellerActionsListRequestStatusEnum.js new file mode 100644 index 0000000..46c006f --- /dev/null +++ b/dist/esm/models/SellerActionsListRequestStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус акции: + * - `ACTIVE` — активна; + * - `ENDED` — завершена; + * - `PLANNED` — запланирована; + * - `PAUSED` — приостановлена. + * + * @export + */ +export const SellerActionsListRequestStatusEnum = { + ACTIVE: 'ACTIVE', + ENDED: 'ENDED', + PLANNED: 'PLANNED', + PAUSED: 'PAUSED' +}; +export function instanceOfSellerActionsListRequestStatusEnum(value) { + for (const key in SellerActionsListRequestStatusEnum) { + if (Object.prototype.hasOwnProperty.call(SellerActionsListRequestStatusEnum, key)) { + if (SellerActionsListRequestStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SellerActionsListRequestStatusEnumFromJSON(json) { + return SellerActionsListRequestStatusEnumFromJSONTyped(json, false); +} +export function SellerActionsListRequestStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SellerActionsListRequestStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SellerActionsListResponseAction.d.ts b/dist/esm/models/SellerActionsListResponseAction.d.ts new file mode 100644 index 0000000..dcf5d57 --- /dev/null +++ b/dist/esm/models/SellerActionsListResponseAction.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionParameter } from './ActionParameter'; +/** + * + * @export + * @interface SellerActionsListResponseAction + */ +export interface SellerActionsListResponseAction { + /** + * Идентификатор акции. + * @type {number} + * @memberof SellerActionsListResponseAction + */ + action_id?: number; + /** + * + * @type {ActionParameter} + * @memberof SellerActionsListResponseAction + */ + action_parameters?: ActionParameter; + /** + * `true`, если акцию можно удалить. + * + * @type {boolean} + * @memberof SellerActionsListResponseAction + */ + allow_delete?: boolean; + /** + * Ссылка на хайлайт. + * @type {string} + * @memberof SellerActionsListResponseAction + */ + highlight_url?: string; + /** + * `true`, если акцию можно редактировать. + * + * @type {boolean} + * @memberof SellerActionsListResponseAction + */ + is_editable?: boolean; + /** + * `true`, если в акцию был добавлен хотя бы 1 товар. + * + * @type {boolean} + * @memberof SellerActionsListResponseAction + */ + is_participated?: boolean; + /** + * `true`, если акция включена. + * + * @type {boolean} + * @memberof SellerActionsListResponseAction + */ + is_turn_on?: boolean; + /** + * Общее количество товаров в акции. + * @type {number} + * @memberof SellerActionsListResponseAction + */ + sku_count?: number; +} +/** + * Check if a given object implements the SellerActionsListResponseAction interface. + */ +export declare function instanceOfSellerActionsListResponseAction(value: object): value is SellerActionsListResponseAction; +export declare function SellerActionsListResponseActionFromJSON(json: any): SellerActionsListResponseAction; +export declare function SellerActionsListResponseActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerActionsListResponseAction; +export declare function SellerActionsListResponseActionToJSON(value?: SellerActionsListResponseAction | null): any; diff --git a/dist/esm/models/SellerActionsListResponseAction.js b/dist/esm/models/SellerActionsListResponseAction.js new file mode 100644 index 0000000..dc4fc96 --- /dev/null +++ b/dist/esm/models/SellerActionsListResponseAction.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ActionParameterFromJSON, ActionParameterToJSON, } from './ActionParameter'; +/** + * Check if a given object implements the SellerActionsListResponseAction interface. + */ +export function instanceOfSellerActionsListResponseAction(value) { + return true; +} +export function SellerActionsListResponseActionFromJSON(json) { + return SellerActionsListResponseActionFromJSONTyped(json, false); +} +export function SellerActionsListResponseActionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : ActionParameterFromJSON(json['action_parameters']), + 'allow_delete': json['allow_delete'] == null ? undefined : json['allow_delete'], + 'highlight_url': json['highlight_url'] == null ? undefined : json['highlight_url'], + 'is_editable': json['is_editable'] == null ? undefined : json['is_editable'], + 'is_participated': json['is_participated'] == null ? undefined : json['is_participated'], + 'is_turn_on': json['is_turn_on'] == null ? undefined : json['is_turn_on'], + 'sku_count': json['sku_count'] == null ? undefined : json['sku_count'], + }; +} +export function SellerActionsListResponseActionToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': ActionParameterToJSON(value['action_parameters']), + 'allow_delete': value['allow_delete'], + 'highlight_url': value['highlight_url'], + 'is_editable': value['is_editable'], + 'is_participated': value['is_participated'], + 'is_turn_on': value['is_turn_on'], + 'sku_count': value['sku_count'], + }; +} diff --git a/dist/esm/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.d.ts b/dist/esm/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.d.ts new file mode 100644 index 0000000..58037df --- /dev/null +++ b/dist/esm/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel + */ +export interface SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel { + /** + * Размер скидки. + * @type {number} + * @memberof SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel + */ + discount_value: number; + /** + * Минимальная сумма заказа для скидки. + * @type {number} + * @memberof SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel + */ + order_amount: number; +} +/** + * Check if a given object implements the SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel interface. + */ +export declare function instanceOfSellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel(value: object): value is SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel; +export declare function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON(json: any): SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel; +export declare function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel; +export declare function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON(value?: SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel | null): any; diff --git a/dist/esm/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.js b/dist/esm/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.js new file mode 100644 index 0000000..c31329b --- /dev/null +++ b/dist/esm/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel interface. + */ +export function instanceOfSellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel(value) { + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('order_amount' in value) || value['order_amount'] === undefined) + return false; + return true; +} +export function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON(json) { + return SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSONTyped(json, false); +} +export function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount_value': json['discount_value'], + 'order_amount': json['order_amount'], + }; +} +export function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount_value': value['discount_value'], + 'order_amount': value['order_amount'], + }; +} diff --git a/dist/esm/models/SellerApiActivateProductV1Request.d.ts b/dist/esm/models/SellerApiActivateProductV1Request.d.ts new file mode 100644 index 0000000..eb9ae05 --- /dev/null +++ b/dist/esm/models/SellerApiActivateProductV1Request.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductPrice } from './SellerApiProductPrice'; +/** + * + * @export + * @interface SellerApiActivateProductV1Request + */ +export interface SellerApiActivateProductV1Request { + /** + * Идентификатор акции. Можно получить с помощью метода [/v1/actions](#operation/Promos). + * @type {number} + * @memberof SellerApiActivateProductV1Request + */ + action_id: number; + /** + * Список товаров. + * @type {Array} + * @memberof SellerApiActivateProductV1Request + */ + products: Array; +} +/** + * Check if a given object implements the SellerApiActivateProductV1Request interface. + */ +export declare function instanceOfSellerApiActivateProductV1Request(value: object): value is SellerApiActivateProductV1Request; +export declare function SellerApiActivateProductV1RequestFromJSON(json: any): SellerApiActivateProductV1Request; +export declare function SellerApiActivateProductV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiActivateProductV1Request; +export declare function SellerApiActivateProductV1RequestToJSON(value?: SellerApiActivateProductV1Request | null): any; diff --git a/dist/esm/models/SellerApiActivateProductV1Request.js b/dist/esm/models/SellerApiActivateProductV1Request.js new file mode 100644 index 0000000..9e5d3b7 --- /dev/null +++ b/dist/esm/models/SellerApiActivateProductV1Request.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerApiProductPriceFromJSON, SellerApiProductPriceToJSON, } from './SellerApiProductPrice'; +/** + * Check if a given object implements the SellerApiActivateProductV1Request interface. + */ +export function instanceOfSellerApiActivateProductV1Request(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +export function SellerApiActivateProductV1RequestFromJSON(json) { + return SellerApiActivateProductV1RequestFromJSONTyped(json, false); +} +export function SellerApiActivateProductV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'products': (json['products'].map(SellerApiProductPriceFromJSON)), + }; +} +export function SellerApiActivateProductV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'products': (value['products'].map(SellerApiProductPriceToJSON)), + }; +} diff --git a/dist/esm/models/SellerApiGetSellerActionsV1Response.d.ts b/dist/esm/models/SellerApiGetSellerActionsV1Response.d.ts new file mode 100644 index 0000000..ea12228 --- /dev/null +++ b/dist/esm/models/SellerApiGetSellerActionsV1Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetSellerActionsV1ResponseAction } from './GetSellerActionsV1ResponseAction'; +/** + * + * @export + * @interface SellerApiGetSellerActionsV1Response + */ +export interface SellerApiGetSellerActionsV1Response { + /** + * Результаты запроса. + * @type {Array} + * @memberof SellerApiGetSellerActionsV1Response + */ + result?: Array; +} +/** + * Check if a given object implements the SellerApiGetSellerActionsV1Response interface. + */ +export declare function instanceOfSellerApiGetSellerActionsV1Response(value: object): value is SellerApiGetSellerActionsV1Response; +export declare function SellerApiGetSellerActionsV1ResponseFromJSON(json: any): SellerApiGetSellerActionsV1Response; +export declare function SellerApiGetSellerActionsV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiGetSellerActionsV1Response; +export declare function SellerApiGetSellerActionsV1ResponseToJSON(value?: SellerApiGetSellerActionsV1Response | null): any; diff --git a/dist/esm/models/SellerApiGetSellerActionsV1Response.js b/dist/esm/models/SellerApiGetSellerActionsV1Response.js new file mode 100644 index 0000000..87cdf1a --- /dev/null +++ b/dist/esm/models/SellerApiGetSellerActionsV1Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetSellerActionsV1ResponseActionFromJSON, GetSellerActionsV1ResponseActionToJSON, } from './GetSellerActionsV1ResponseAction'; +/** + * Check if a given object implements the SellerApiGetSellerActionsV1Response interface. + */ +export function instanceOfSellerApiGetSellerActionsV1Response(value) { + return true; +} +export function SellerApiGetSellerActionsV1ResponseFromJSON(json) { + return SellerApiGetSellerActionsV1ResponseFromJSONTyped(json, false); +} +export function SellerApiGetSellerActionsV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(GetSellerActionsV1ResponseActionFromJSON)), + }; +} +export function SellerApiGetSellerActionsV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(GetSellerActionsV1ResponseActionToJSON)), + }; +} diff --git a/dist/esm/models/SellerApiGetSellerProductV1Request.d.ts b/dist/esm/models/SellerApiGetSellerProductV1Request.d.ts new file mode 100644 index 0000000..6c9c85c --- /dev/null +++ b/dist/esm/models/SellerApiGetSellerProductV1Request.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров. + * @export + * @interface SellerApiGetSellerProductV1Request + */ +export interface SellerApiGetSellerProductV1Request { + /** + * Идентификатор акции. Можно получить с помощью метода [/v1/actions](#operation/Promos). + * @type {number} + * @memberof SellerApiGetSellerProductV1Request + */ + action_id: number; + /** + * Количество ответов на странице. По умолчанию — 100. + * @type {number} + * @memberof SellerApiGetSellerProductV1Request + */ + limit?: number; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * @type {number} + * @memberof SellerApiGetSellerProductV1Request + */ + last_id?: number; +} +/** + * Check if a given object implements the SellerApiGetSellerProductV1Request interface. + */ +export declare function instanceOfSellerApiGetSellerProductV1Request(value: object): value is SellerApiGetSellerProductV1Request; +export declare function SellerApiGetSellerProductV1RequestFromJSON(json: any): SellerApiGetSellerProductV1Request; +export declare function SellerApiGetSellerProductV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiGetSellerProductV1Request; +export declare function SellerApiGetSellerProductV1RequestToJSON(value?: SellerApiGetSellerProductV1Request | null): any; diff --git a/dist/esm/models/SellerApiGetSellerProductV1Request.js b/dist/esm/models/SellerApiGetSellerProductV1Request.js new file mode 100644 index 0000000..0e5e3f7 --- /dev/null +++ b/dist/esm/models/SellerApiGetSellerProductV1Request.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerApiGetSellerProductV1Request interface. + */ +export function instanceOfSellerApiGetSellerProductV1Request(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + return true; +} +export function SellerApiGetSellerProductV1RequestFromJSON(json) { + return SellerApiGetSellerProductV1RequestFromJSONTyped(json, false); +} +export function SellerApiGetSellerProductV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function SellerApiGetSellerProductV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'limit': value['limit'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/SellerApiGetSellerProductV1Response.d.ts b/dist/esm/models/SellerApiGetSellerProductV1Response.d.ts new file mode 100644 index 0000000..2986994 --- /dev/null +++ b/dist/esm/models/SellerApiGetSellerProductV1Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiGetSellerProductV1ResponseResult } from './SellerApiGetSellerProductV1ResponseResult'; +/** + * + * @export + * @interface SellerApiGetSellerProductV1Response + */ +export interface SellerApiGetSellerProductV1Response { + /** + * + * @type {SellerApiGetSellerProductV1ResponseResult} + * @memberof SellerApiGetSellerProductV1Response + */ + result?: SellerApiGetSellerProductV1ResponseResult; +} +/** + * Check if a given object implements the SellerApiGetSellerProductV1Response interface. + */ +export declare function instanceOfSellerApiGetSellerProductV1Response(value: object): value is SellerApiGetSellerProductV1Response; +export declare function SellerApiGetSellerProductV1ResponseFromJSON(json: any): SellerApiGetSellerProductV1Response; +export declare function SellerApiGetSellerProductV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiGetSellerProductV1Response; +export declare function SellerApiGetSellerProductV1ResponseToJSON(value?: SellerApiGetSellerProductV1Response | null): any; diff --git a/dist/esm/models/SellerApiGetSellerProductV1Response.js b/dist/esm/models/SellerApiGetSellerProductV1Response.js new file mode 100644 index 0000000..2f2707f --- /dev/null +++ b/dist/esm/models/SellerApiGetSellerProductV1Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerApiGetSellerProductV1ResponseResultFromJSON, SellerApiGetSellerProductV1ResponseResultToJSON, } from './SellerApiGetSellerProductV1ResponseResult'; +/** + * Check if a given object implements the SellerApiGetSellerProductV1Response interface. + */ +export function instanceOfSellerApiGetSellerProductV1Response(value) { + return true; +} +export function SellerApiGetSellerProductV1ResponseFromJSON(json) { + return SellerApiGetSellerProductV1ResponseFromJSONTyped(json, false); +} +export function SellerApiGetSellerProductV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : SellerApiGetSellerProductV1ResponseResultFromJSON(json['result']), + }; +} +export function SellerApiGetSellerProductV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': SellerApiGetSellerProductV1ResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/SellerApiGetSellerProductV1ResponseResult.d.ts b/dist/esm/models/SellerApiGetSellerProductV1ResponseResult.d.ts new file mode 100644 index 0000000..60cf70f --- /dev/null +++ b/dist/esm/models/SellerApiGetSellerProductV1ResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProduct } from './SellerApiProduct'; +/** + * Результаты запроса. + * @export + * @interface SellerApiGetSellerProductV1ResponseResult + */ +export interface SellerApiGetSellerProductV1ResponseResult { + /** + * Список товаров. + * @type {Array} + * @memberof SellerApiGetSellerProductV1ResponseResult + */ + products?: Array; + /** + * Общее количество товаров, которое доступно для акции. + * @type {number} + * @memberof SellerApiGetSellerProductV1ResponseResult + */ + total?: number; + /** + * Идентификатор последнего значения на странице. Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * @type {number} + * @memberof SellerApiGetSellerProductV1ResponseResult + */ + last_id?: number; +} +/** + * Check if a given object implements the SellerApiGetSellerProductV1ResponseResult interface. + */ +export declare function instanceOfSellerApiGetSellerProductV1ResponseResult(value: object): value is SellerApiGetSellerProductV1ResponseResult; +export declare function SellerApiGetSellerProductV1ResponseResultFromJSON(json: any): SellerApiGetSellerProductV1ResponseResult; +export declare function SellerApiGetSellerProductV1ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiGetSellerProductV1ResponseResult; +export declare function SellerApiGetSellerProductV1ResponseResultToJSON(value?: SellerApiGetSellerProductV1ResponseResult | null): any; diff --git a/dist/esm/models/SellerApiGetSellerProductV1ResponseResult.js b/dist/esm/models/SellerApiGetSellerProductV1ResponseResult.js new file mode 100644 index 0000000..eea479d --- /dev/null +++ b/dist/esm/models/SellerApiGetSellerProductV1ResponseResult.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerApiProductFromJSON, SellerApiProductToJSON, } from './SellerApiProduct'; +/** + * Check if a given object implements the SellerApiGetSellerProductV1ResponseResult interface. + */ +export function instanceOfSellerApiGetSellerProductV1ResponseResult(value) { + return true; +} +export function SellerApiGetSellerProductV1ResponseResultFromJSON(json) { + return SellerApiGetSellerProductV1ResponseResultFromJSONTyped(json, false); +} +export function SellerApiGetSellerProductV1ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(SellerApiProductFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function SellerApiGetSellerProductV1ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(SellerApiProductToJSON)), + 'total': value['total'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/SellerApiProduct.d.ts b/dist/esm/models/SellerApiProduct.d.ts new file mode 100644 index 0000000..0f469a1 --- /dev/null +++ b/dist/esm/models/SellerApiProduct.d.ts @@ -0,0 +1,111 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProduct + */ +export interface SellerApiProduct { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof SellerApiProduct + */ + id?: number; + /** + * Текущая цена товара без скидки. + * @type {number} + * @memberof SellerApiProduct + */ + price?: number; + /** + * Цена товара по акции. + * @type {number} + * @memberof SellerApiProduct + */ + action_price?: number; + /** + * `true`, если цена товара выше рекомендуемой. Товар отмечен красным и может быть исключён из акции. + * + * @type {boolean} + * @memberof SellerApiProduct + */ + alert_max_action_price_failed?: boolean; + /** + * Рекомендуемая цена товара по акции. + * @type {number} + * @memberof SellerApiProduct + */ + alert_max_action_price?: number; + /** + * Максимально возможная цена товара по акции. + * @type {number} + * @memberof SellerApiProduct + */ + max_action_price?: number; + /** + * Тип добавления товара в акцию: автоматически или вручную продавцом. + * + * @type {string} + * @memberof SellerApiProduct + */ + add_mode?: string; + /** + * Минимальное число единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof SellerApiProduct + */ + min_stock?: number; + /** + * Число единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof SellerApiProduct + */ + stock?: number; + /** + * Размер бустинга товара. + * @type {number} + * @memberof SellerApiProduct + */ + current_boost?: number; + /** + * Цена товара для минимального размера бустинга. + * @type {number} + * @memberof SellerApiProduct + */ + price_min_elastic?: number; + /** + * Цена товара для максимального размера бустинга. + * @type {number} + * @memberof SellerApiProduct + */ + price_max_elastic?: number; + /** + * Минимальный размер бустинга в процентах. + * @type {number} + * @memberof SellerApiProduct + */ + min_boost?: number; + /** + * Максимальный размер бустинга в процентах. + * @type {number} + * @memberof SellerApiProduct + */ + max_boost?: number; +} +/** + * Check if a given object implements the SellerApiProduct interface. + */ +export declare function instanceOfSellerApiProduct(value: object): value is SellerApiProduct; +export declare function SellerApiProductFromJSON(json: any): SellerApiProduct; +export declare function SellerApiProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProduct; +export declare function SellerApiProductToJSON(value?: SellerApiProduct | null): any; diff --git a/dist/esm/models/SellerApiProduct.js b/dist/esm/models/SellerApiProduct.js new file mode 100644 index 0000000..e53ce89 --- /dev/null +++ b/dist/esm/models/SellerApiProduct.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerApiProduct interface. + */ +export function instanceOfSellerApiProduct(value) { + return true; +} +export function SellerApiProductFromJSON(json) { + return SellerApiProductFromJSONTyped(json, false); +} +export function SellerApiProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'price': json['price'] == null ? undefined : json['price'], + 'action_price': json['action_price'] == null ? undefined : json['action_price'], + 'alert_max_action_price_failed': json['alert_max_action_price_failed'] == null ? undefined : json['alert_max_action_price_failed'], + 'alert_max_action_price': json['alert_max_action_price'] == null ? undefined : json['alert_max_action_price'], + 'max_action_price': json['max_action_price'] == null ? undefined : json['max_action_price'], + 'add_mode': json['add_mode'] == null ? undefined : json['add_mode'], + 'min_stock': json['min_stock'] == null ? undefined : json['min_stock'], + 'stock': json['stock'] == null ? undefined : json['stock'], + 'current_boost': json['current_boost'] == null ? undefined : json['current_boost'], + 'price_min_elastic': json['price_min_elastic'] == null ? undefined : json['price_min_elastic'], + 'price_max_elastic': json['price_max_elastic'] == null ? undefined : json['price_max_elastic'], + 'min_boost': json['min_boost'] == null ? undefined : json['min_boost'], + 'max_boost': json['max_boost'] == null ? undefined : json['max_boost'], + }; +} +export function SellerApiProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'price': value['price'], + 'action_price': value['action_price'], + 'alert_max_action_price_failed': value['alert_max_action_price_failed'], + 'alert_max_action_price': value['alert_max_action_price'], + 'max_action_price': value['max_action_price'], + 'add_mode': value['add_mode'], + 'min_stock': value['min_stock'], + 'stock': value['stock'], + 'current_boost': value['current_boost'], + 'price_min_elastic': value['price_min_elastic'], + 'price_max_elastic': value['price_max_elastic'], + 'min_boost': value['min_boost'], + 'max_boost': value['max_boost'], + }; +} diff --git a/dist/esm/models/SellerApiProductIDsV1Request.d.ts b/dist/esm/models/SellerApiProductIDsV1Request.d.ts new file mode 100644 index 0000000..44d3e21 --- /dev/null +++ b/dist/esm/models/SellerApiProductIDsV1Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProductIDsV1Request + */ +export interface SellerApiProductIDsV1Request { + /** + * Идентификатор акции. Можно получить с помощью метода [/v1/actions](#operation/Promos). + * @type {number} + * @memberof SellerApiProductIDsV1Request + */ + action_id: number; + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof SellerApiProductIDsV1Request + */ + product_ids: Array; +} +/** + * Check if a given object implements the SellerApiProductIDsV1Request interface. + */ +export declare function instanceOfSellerApiProductIDsV1Request(value: object): value is SellerApiProductIDsV1Request; +export declare function SellerApiProductIDsV1RequestFromJSON(json: any): SellerApiProductIDsV1Request; +export declare function SellerApiProductIDsV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductIDsV1Request; +export declare function SellerApiProductIDsV1RequestToJSON(value?: SellerApiProductIDsV1Request | null): any; diff --git a/dist/esm/models/SellerApiProductIDsV1Request.js b/dist/esm/models/SellerApiProductIDsV1Request.js new file mode 100644 index 0000000..a2b9a73 --- /dev/null +++ b/dist/esm/models/SellerApiProductIDsV1Request.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerApiProductIDsV1Request interface. + */ +export function instanceOfSellerApiProductIDsV1Request(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('product_ids' in value) || value['product_ids'] === undefined) + return false; + return true; +} +export function SellerApiProductIDsV1RequestFromJSON(json) { + return SellerApiProductIDsV1RequestFromJSONTyped(json, false); +} +export function SellerApiProductIDsV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'product_ids': json['product_ids'], + }; +} +export function SellerApiProductIDsV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/esm/models/SellerApiProductPrice.d.ts b/dist/esm/models/SellerApiProductPrice.d.ts new file mode 100644 index 0000000..a65767b --- /dev/null +++ b/dist/esm/models/SellerApiProductPrice.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProductPrice + */ +export interface SellerApiProductPrice { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof SellerApiProductPrice + */ + product_id: number; + /** + * Цена товара по акции. + * @type {number} + * @memberof SellerApiProductPrice + */ + action_price: number; + /** + * Количество единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof SellerApiProductPrice + */ + stock?: number; +} +/** + * Check if a given object implements the SellerApiProductPrice interface. + */ +export declare function instanceOfSellerApiProductPrice(value: object): value is SellerApiProductPrice; +export declare function SellerApiProductPriceFromJSON(json: any): SellerApiProductPrice; +export declare function SellerApiProductPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductPrice; +export declare function SellerApiProductPriceToJSON(value?: SellerApiProductPrice | null): any; diff --git a/dist/esm/models/SellerApiProductPrice.js b/dist/esm/models/SellerApiProductPrice.js new file mode 100644 index 0000000..0c9b44d --- /dev/null +++ b/dist/esm/models/SellerApiProductPrice.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerApiProductPrice interface. + */ +export function instanceOfSellerApiProductPrice(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('action_price' in value) || value['action_price'] === undefined) + return false; + return true; +} +export function SellerApiProductPriceFromJSON(json) { + return SellerApiProductPriceFromJSONTyped(json, false); +} +export function SellerApiProductPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + 'action_price': json['action_price'], + 'stock': json['stock'] == null ? undefined : json['stock'], + }; +} +export function SellerApiProductPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'action_price': value['action_price'], + 'stock': value['stock'], + }; +} diff --git a/dist/esm/models/SellerApiProductV1Response.d.ts b/dist/esm/models/SellerApiProductV1Response.d.ts new file mode 100644 index 0000000..d88a7a0 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductV1ResponseResult } from './SellerApiProductV1ResponseResult'; +/** + * + * @export + * @interface SellerApiProductV1Response + */ +export interface SellerApiProductV1Response { + /** + * + * @type {SellerApiProductV1ResponseResult} + * @memberof SellerApiProductV1Response + */ + result?: SellerApiProductV1ResponseResult; +} +/** + * Check if a given object implements the SellerApiProductV1Response interface. + */ +export declare function instanceOfSellerApiProductV1Response(value: object): value is SellerApiProductV1Response; +export declare function SellerApiProductV1ResponseFromJSON(json: any): SellerApiProductV1Response; +export declare function SellerApiProductV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1Response; +export declare function SellerApiProductV1ResponseToJSON(value?: SellerApiProductV1Response | null): any; diff --git a/dist/esm/models/SellerApiProductV1Response.js b/dist/esm/models/SellerApiProductV1Response.js new file mode 100644 index 0000000..22798ff --- /dev/null +++ b/dist/esm/models/SellerApiProductV1Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerApiProductV1ResponseResultFromJSON, SellerApiProductV1ResponseResultToJSON, } from './SellerApiProductV1ResponseResult'; +/** + * Check if a given object implements the SellerApiProductV1Response interface. + */ +export function instanceOfSellerApiProductV1Response(value) { + return true; +} +export function SellerApiProductV1ResponseFromJSON(json) { + return SellerApiProductV1ResponseFromJSONTyped(json, false); +} +export function SellerApiProductV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : SellerApiProductV1ResponseResultFromJSON(json['result']), + }; +} +export function SellerApiProductV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': SellerApiProductV1ResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/SellerApiProductV1ResponseDeactivate.d.ts b/dist/esm/models/SellerApiProductV1ResponseDeactivate.d.ts new file mode 100644 index 0000000..67fca49 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseDeactivate.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductV1ResponseResultDeactivate } from './SellerApiProductV1ResponseResultDeactivate'; +/** + * + * @export + * @interface SellerApiProductV1ResponseDeactivate + */ +export interface SellerApiProductV1ResponseDeactivate { + /** + * + * @type {SellerApiProductV1ResponseResultDeactivate} + * @memberof SellerApiProductV1ResponseDeactivate + */ + result?: SellerApiProductV1ResponseResultDeactivate; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseDeactivate interface. + */ +export declare function instanceOfSellerApiProductV1ResponseDeactivate(value: object): value is SellerApiProductV1ResponseDeactivate; +export declare function SellerApiProductV1ResponseDeactivateFromJSON(json: any): SellerApiProductV1ResponseDeactivate; +export declare function SellerApiProductV1ResponseDeactivateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseDeactivate; +export declare function SellerApiProductV1ResponseDeactivateToJSON(value?: SellerApiProductV1ResponseDeactivate | null): any; diff --git a/dist/esm/models/SellerApiProductV1ResponseDeactivate.js b/dist/esm/models/SellerApiProductV1ResponseDeactivate.js new file mode 100644 index 0000000..493592c --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseDeactivate.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerApiProductV1ResponseResultDeactivateFromJSON, SellerApiProductV1ResponseResultDeactivateToJSON, } from './SellerApiProductV1ResponseResultDeactivate'; +/** + * Check if a given object implements the SellerApiProductV1ResponseDeactivate interface. + */ +export function instanceOfSellerApiProductV1ResponseDeactivate(value) { + return true; +} +export function SellerApiProductV1ResponseDeactivateFromJSON(json) { + return SellerApiProductV1ResponseDeactivateFromJSONTyped(json, false); +} +export function SellerApiProductV1ResponseDeactivateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : SellerApiProductV1ResponseResultDeactivateFromJSON(json['result']), + }; +} +export function SellerApiProductV1ResponseDeactivateToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': SellerApiProductV1ResponseResultDeactivateToJSON(value['result']), + }; +} diff --git a/dist/esm/models/SellerApiProductV1ResponseProduct.d.ts b/dist/esm/models/SellerApiProductV1ResponseProduct.d.ts new file mode 100644 index 0000000..4a3dd33 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProductV1ResponseProduct + */ +export interface SellerApiProductV1ResponseProduct { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof SellerApiProductV1ResponseProduct + */ + product_id?: number; + /** + * Причина, почему товар не добавлен в акцию. + * @type {string} + * @memberof SellerApiProductV1ResponseProduct + */ + reason?: string; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseProduct interface. + */ +export declare function instanceOfSellerApiProductV1ResponseProduct(value: object): value is SellerApiProductV1ResponseProduct; +export declare function SellerApiProductV1ResponseProductFromJSON(json: any): SellerApiProductV1ResponseProduct; +export declare function SellerApiProductV1ResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseProduct; +export declare function SellerApiProductV1ResponseProductToJSON(value?: SellerApiProductV1ResponseProduct | null): any; diff --git a/dist/esm/models/SellerApiProductV1ResponseProduct.js b/dist/esm/models/SellerApiProductV1ResponseProduct.js new file mode 100644 index 0000000..4c070e3 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseProduct.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerApiProductV1ResponseProduct interface. + */ +export function instanceOfSellerApiProductV1ResponseProduct(value) { + return true; +} +export function SellerApiProductV1ResponseProductFromJSON(json) { + return SellerApiProductV1ResponseProductFromJSONTyped(json, false); +} +export function SellerApiProductV1ResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} +export function SellerApiProductV1ResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'reason': value['reason'], + }; +} diff --git a/dist/esm/models/SellerApiProductV1ResponseProductDeactivate.d.ts b/dist/esm/models/SellerApiProductV1ResponseProductDeactivate.d.ts new file mode 100644 index 0000000..6fe68b7 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseProductDeactivate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProductV1ResponseProductDeactivate + */ +export interface SellerApiProductV1ResponseProductDeactivate { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof SellerApiProductV1ResponseProductDeactivate + */ + product_id?: number; + /** + * Причина, почему товар не удалён из акции. + * @type {string} + * @memberof SellerApiProductV1ResponseProductDeactivate + */ + reason?: string; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseProductDeactivate interface. + */ +export declare function instanceOfSellerApiProductV1ResponseProductDeactivate(value: object): value is SellerApiProductV1ResponseProductDeactivate; +export declare function SellerApiProductV1ResponseProductDeactivateFromJSON(json: any): SellerApiProductV1ResponseProductDeactivate; +export declare function SellerApiProductV1ResponseProductDeactivateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseProductDeactivate; +export declare function SellerApiProductV1ResponseProductDeactivateToJSON(value?: SellerApiProductV1ResponseProductDeactivate | null): any; diff --git a/dist/esm/models/SellerApiProductV1ResponseProductDeactivate.js b/dist/esm/models/SellerApiProductV1ResponseProductDeactivate.js new file mode 100644 index 0000000..6d877c1 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseProductDeactivate.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerApiProductV1ResponseProductDeactivate interface. + */ +export function instanceOfSellerApiProductV1ResponseProductDeactivate(value) { + return true; +} +export function SellerApiProductV1ResponseProductDeactivateFromJSON(json) { + return SellerApiProductV1ResponseProductDeactivateFromJSONTyped(json, false); +} +export function SellerApiProductV1ResponseProductDeactivateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} +export function SellerApiProductV1ResponseProductDeactivateToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'reason': value['reason'], + }; +} diff --git a/dist/esm/models/SellerApiProductV1ResponseResult.d.ts b/dist/esm/models/SellerApiProductV1ResponseResult.d.ts new file mode 100644 index 0000000..a5f2395 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductV1ResponseProduct } from './SellerApiProductV1ResponseProduct'; +/** + * Результаты запроса. + * @export + * @interface SellerApiProductV1ResponseResult + */ +export interface SellerApiProductV1ResponseResult { + /** + * Список идентификаторов товаров, которые добавлены в акцию. + * @type {Array} + * @memberof SellerApiProductV1ResponseResult + */ + product_ids?: Array; + /** + * Список товаров, которые не удалось добавить в акцию. + * @type {Array} + * @memberof SellerApiProductV1ResponseResult + */ + rejected?: Array; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseResult interface. + */ +export declare function instanceOfSellerApiProductV1ResponseResult(value: object): value is SellerApiProductV1ResponseResult; +export declare function SellerApiProductV1ResponseResultFromJSON(json: any): SellerApiProductV1ResponseResult; +export declare function SellerApiProductV1ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseResult; +export declare function SellerApiProductV1ResponseResultToJSON(value?: SellerApiProductV1ResponseResult | null): any; diff --git a/dist/esm/models/SellerApiProductV1ResponseResult.js b/dist/esm/models/SellerApiProductV1ResponseResult.js new file mode 100644 index 0000000..c4ca304 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerApiProductV1ResponseProductFromJSON, SellerApiProductV1ResponseProductToJSON, } from './SellerApiProductV1ResponseProduct'; +/** + * Check if a given object implements the SellerApiProductV1ResponseResult interface. + */ +export function instanceOfSellerApiProductV1ResponseResult(value) { + return true; +} +export function SellerApiProductV1ResponseResultFromJSON(json) { + return SellerApiProductV1ResponseResultFromJSONTyped(json, false); +} +export function SellerApiProductV1ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + 'rejected': json['rejected'] == null ? undefined : (json['rejected'].map(SellerApiProductV1ResponseProductFromJSON)), + }; +} +export function SellerApiProductV1ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + 'rejected': value['rejected'] == null ? undefined : (value['rejected'].map(SellerApiProductV1ResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/SellerApiProductV1ResponseResultDeactivate.d.ts b/dist/esm/models/SellerApiProductV1ResponseResultDeactivate.d.ts new file mode 100644 index 0000000..309abde --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseResultDeactivate.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductV1ResponseProductDeactivate } from './SellerApiProductV1ResponseProductDeactivate'; +/** + * Результаты запроса. + * @export + * @interface SellerApiProductV1ResponseResultDeactivate + */ +export interface SellerApiProductV1ResponseResultDeactivate { + /** + * Список идентификаторов товаров, которые удалены из акции. + * @type {Array} + * @memberof SellerApiProductV1ResponseResultDeactivate + */ + product_ids?: Array; + /** + * Список товаров, которые не удалось удалить из акции. + * @type {Array} + * @memberof SellerApiProductV1ResponseResultDeactivate + */ + rejected?: Array; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseResultDeactivate interface. + */ +export declare function instanceOfSellerApiProductV1ResponseResultDeactivate(value: object): value is SellerApiProductV1ResponseResultDeactivate; +export declare function SellerApiProductV1ResponseResultDeactivateFromJSON(json: any): SellerApiProductV1ResponseResultDeactivate; +export declare function SellerApiProductV1ResponseResultDeactivateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseResultDeactivate; +export declare function SellerApiProductV1ResponseResultDeactivateToJSON(value?: SellerApiProductV1ResponseResultDeactivate | null): any; diff --git a/dist/esm/models/SellerApiProductV1ResponseResultDeactivate.js b/dist/esm/models/SellerApiProductV1ResponseResultDeactivate.js new file mode 100644 index 0000000..227cd80 --- /dev/null +++ b/dist/esm/models/SellerApiProductV1ResponseResultDeactivate.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerApiProductV1ResponseProductDeactivateFromJSON, SellerApiProductV1ResponseProductDeactivateToJSON, } from './SellerApiProductV1ResponseProductDeactivate'; +/** + * Check if a given object implements the SellerApiProductV1ResponseResultDeactivate interface. + */ +export function instanceOfSellerApiProductV1ResponseResultDeactivate(value) { + return true; +} +export function SellerApiProductV1ResponseResultDeactivateFromJSON(json) { + return SellerApiProductV1ResponseResultDeactivateFromJSONTyped(json, false); +} +export function SellerApiProductV1ResponseResultDeactivateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + 'rejected': json['rejected'] == null ? undefined : (json['rejected'].map(SellerApiProductV1ResponseProductDeactivateFromJSON)), + }; +} +export function SellerApiProductV1ResponseResultDeactivateToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + 'rejected': value['rejected'] == null ? undefined : (value['rejected'].map(SellerApiProductV1ResponseProductDeactivateToJSON)), + }; +} diff --git a/dist/esm/models/SellerInfoResponseCompany.d.ts b/dist/esm/models/SellerInfoResponseCompany.d.ts new file mode 100644 index 0000000..f6cd969 --- /dev/null +++ b/dist/esm/models/SellerInfoResponseCompany.d.ts @@ -0,0 +1,82 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CompanyTaxSystemEnum } from './CompanyTaxSystemEnum'; +/** + * Компания. + * @export + * @interface SellerInfoResponseCompany + */ +export interface SellerInfoResponseCompany { + /** + * Страна. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + country?: string; + /** + * Валюта: + * - `RUB` — российский рубль; + * - `EUR` — евро; + * - `USD` — доллар США; + * - `CNY` — юань; + * - `BYN` — белорусский рубль; + * - `KZT` — тенге; + * - `KGS` — киргизский сом. + * + * @type {string} + * @memberof SellerInfoResponseCompany + */ + currency?: string; + /** + * ИНН. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + inn?: string; + /** + * Название юридического лица. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + legal_name?: string; + /** + * Название компании на Ozon. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + name?: string; + /** + * ОГРН. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + ogrn?: string; + /** + * Форма собственности. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + ownership_form?: string; + /** + * + * @type {CompanyTaxSystemEnum} + * @memberof SellerInfoResponseCompany + */ + tax_system?: CompanyTaxSystemEnum; +} +/** + * Check if a given object implements the SellerInfoResponseCompany interface. + */ +export declare function instanceOfSellerInfoResponseCompany(value: object): value is SellerInfoResponseCompany; +export declare function SellerInfoResponseCompanyFromJSON(json: any): SellerInfoResponseCompany; +export declare function SellerInfoResponseCompanyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseCompany; +export declare function SellerInfoResponseCompanyToJSON(value?: SellerInfoResponseCompany | null): any; diff --git a/dist/esm/models/SellerInfoResponseCompany.js b/dist/esm/models/SellerInfoResponseCompany.js new file mode 100644 index 0000000..aff1f1b --- /dev/null +++ b/dist/esm/models/SellerInfoResponseCompany.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CompanyTaxSystemEnumFromJSON, CompanyTaxSystemEnumToJSON, } from './CompanyTaxSystemEnum'; +/** + * Check if a given object implements the SellerInfoResponseCompany interface. + */ +export function instanceOfSellerInfoResponseCompany(value) { + return true; +} +export function SellerInfoResponseCompanyFromJSON(json) { + return SellerInfoResponseCompanyFromJSONTyped(json, false); +} +export function SellerInfoResponseCompanyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'country': json['country'] == null ? undefined : json['country'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'legal_name': json['legal_name'] == null ? undefined : json['legal_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'ogrn': json['ogrn'] == null ? undefined : json['ogrn'], + 'ownership_form': json['ownership_form'] == null ? undefined : json['ownership_form'], + 'tax_system': json['tax_system'] == null ? undefined : CompanyTaxSystemEnumFromJSON(json['tax_system']), + }; +} +export function SellerInfoResponseCompanyToJSON(value) { + if (value == null) { + return value; + } + return { + 'country': value['country'], + 'currency': value['currency'], + 'inn': value['inn'], + 'legal_name': value['legal_name'], + 'name': value['name'], + 'ogrn': value['ogrn'], + 'ownership_form': value['ownership_form'], + 'tax_system': CompanyTaxSystemEnumToJSON(value['tax_system']), + }; +} diff --git a/dist/esm/models/SellerInfoResponseRating.d.ts b/dist/esm/models/SellerInfoResponseRating.d.ts new file mode 100644 index 0000000..65ff360 --- /dev/null +++ b/dist/esm/models/SellerInfoResponseRating.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RatingValueCurrent } from './RatingValueCurrent'; +import type { RatingStatusEnum } from './RatingStatusEnum'; +import type { SellerInfoResponseRatingTypeEnum } from './SellerInfoResponseRatingTypeEnum'; +import type { RatingValuePast } from './RatingValuePast'; +/** + * + * @export + * @interface SellerInfoResponseRating + */ +export interface SellerInfoResponseRating { + /** + * + * @type {RatingValueCurrent} + * @memberof SellerInfoResponseRating + */ + current_value?: RatingValueCurrent; + /** + * Название рейтинга. + * @type {string} + * @memberof SellerInfoResponseRating + */ + name?: string; + /** + * + * @type {RatingValuePast} + * @memberof SellerInfoResponseRating + */ + past_value?: RatingValuePast; + /** + * Название рейтинга в системе. + * @type {string} + * @memberof SellerInfoResponseRating + */ + rating?: string; + /** + * + * @type {RatingStatusEnum} + * @memberof SellerInfoResponseRating + */ + status?: RatingStatusEnum; + /** + * + * @type {SellerInfoResponseRatingTypeEnum} + * @memberof SellerInfoResponseRating + */ + value_type?: SellerInfoResponseRatingTypeEnum; +} +/** + * Check if a given object implements the SellerInfoResponseRating interface. + */ +export declare function instanceOfSellerInfoResponseRating(value: object): value is SellerInfoResponseRating; +export declare function SellerInfoResponseRatingFromJSON(json: any): SellerInfoResponseRating; +export declare function SellerInfoResponseRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseRating; +export declare function SellerInfoResponseRatingToJSON(value?: SellerInfoResponseRating | null): any; diff --git a/dist/esm/models/SellerInfoResponseRating.js b/dist/esm/models/SellerInfoResponseRating.js new file mode 100644 index 0000000..0a8034d --- /dev/null +++ b/dist/esm/models/SellerInfoResponseRating.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RatingValueCurrentFromJSON, RatingValueCurrentToJSON, } from './RatingValueCurrent'; +import { RatingStatusEnumFromJSON, RatingStatusEnumToJSON, } from './RatingStatusEnum'; +import { SellerInfoResponseRatingTypeEnumFromJSON, SellerInfoResponseRatingTypeEnumToJSON, } from './SellerInfoResponseRatingTypeEnum'; +import { RatingValuePastFromJSON, RatingValuePastToJSON, } from './RatingValuePast'; +/** + * Check if a given object implements the SellerInfoResponseRating interface. + */ +export function instanceOfSellerInfoResponseRating(value) { + return true; +} +export function SellerInfoResponseRatingFromJSON(json) { + return SellerInfoResponseRatingFromJSONTyped(json, false); +} +export function SellerInfoResponseRatingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_value': json['current_value'] == null ? undefined : RatingValueCurrentFromJSON(json['current_value']), + 'name': json['name'] == null ? undefined : json['name'], + 'past_value': json['past_value'] == null ? undefined : RatingValuePastFromJSON(json['past_value']), + 'rating': json['rating'] == null ? undefined : json['rating'], + 'status': json['status'] == null ? undefined : RatingStatusEnumFromJSON(json['status']), + 'value_type': json['value_type'] == null ? undefined : SellerInfoResponseRatingTypeEnumFromJSON(json['value_type']), + }; +} +export function SellerInfoResponseRatingToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_value': RatingValueCurrentToJSON(value['current_value']), + 'name': value['name'], + 'past_value': RatingValuePastToJSON(value['past_value']), + 'rating': value['rating'], + 'status': RatingStatusEnumToJSON(value['status']), + 'value_type': SellerInfoResponseRatingTypeEnumToJSON(value['value_type']), + }; +} diff --git a/dist/esm/models/SellerInfoResponseRatingTypeEnum.d.ts b/dist/esm/models/SellerInfoResponseRatingTypeEnum.d.ts new file mode 100644 index 0000000..9b5e1c2 --- /dev/null +++ b/dist/esm/models/SellerInfoResponseRatingTypeEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип значения: + * - `UNKNOWN` — не определён, + * - `INDEX` — индекс, + * - `PERCENT` — процент, + * - `TIME` — время, + * - `RATIO` — коэффициент, + * - `REVIEW_SCORE` — оценка, + * - `COUNT` — счёт. + * + * @export + */ +export declare const SellerInfoResponseRatingTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly INDEX: "INDEX"; + readonly PERCENT: "PERCENT"; + readonly TIME: "TIME"; + readonly RATIO: "RATIO"; + readonly REVIEW_SCORE: "REVIEW_SCORE"; + readonly COUNT: "COUNT"; +}; +export type SellerInfoResponseRatingTypeEnum = typeof SellerInfoResponseRatingTypeEnum[keyof typeof SellerInfoResponseRatingTypeEnum]; +export declare function instanceOfSellerInfoResponseRatingTypeEnum(value: any): boolean; +export declare function SellerInfoResponseRatingTypeEnumFromJSON(json: any): SellerInfoResponseRatingTypeEnum; +export declare function SellerInfoResponseRatingTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseRatingTypeEnum; +export declare function SellerInfoResponseRatingTypeEnumToJSON(value?: SellerInfoResponseRatingTypeEnum | null): any; diff --git a/dist/esm/models/SellerInfoResponseRatingTypeEnum.js b/dist/esm/models/SellerInfoResponseRatingTypeEnum.js new file mode 100644 index 0000000..16e1af3 --- /dev/null +++ b/dist/esm/models/SellerInfoResponseRatingTypeEnum.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип значения: + * - `UNKNOWN` — не определён, + * - `INDEX` — индекс, + * - `PERCENT` — процент, + * - `TIME` — время, + * - `RATIO` — коэффициент, + * - `REVIEW_SCORE` — оценка, + * - `COUNT` — счёт. + * + * @export + */ +export const SellerInfoResponseRatingTypeEnum = { + UNKNOWN: 'UNKNOWN', + INDEX: 'INDEX', + PERCENT: 'PERCENT', + TIME: 'TIME', + RATIO: 'RATIO', + REVIEW_SCORE: 'REVIEW_SCORE', + COUNT: 'COUNT' +}; +export function instanceOfSellerInfoResponseRatingTypeEnum(value) { + for (const key in SellerInfoResponseRatingTypeEnum) { + if (Object.prototype.hasOwnProperty.call(SellerInfoResponseRatingTypeEnum, key)) { + if (SellerInfoResponseRatingTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SellerInfoResponseRatingTypeEnumFromJSON(json) { + return SellerInfoResponseRatingTypeEnumFromJSONTyped(json, false); +} +export function SellerInfoResponseRatingTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SellerInfoResponseRatingTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SellerInfoResponseSubscription.d.ts b/dist/esm/models/SellerInfoResponseSubscription.d.ts new file mode 100644 index 0000000..bf09d53 --- /dev/null +++ b/dist/esm/models/SellerInfoResponseSubscription.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerInfoResponseSubscriptionTypeEnum } from './SellerInfoResponseSubscriptionTypeEnum'; +/** + * Подписка. + * @export + * @interface SellerInfoResponseSubscription + */ +export interface SellerInfoResponseSubscription { + /** + * `true`, если есть подписка. + * + * @type {boolean} + * @memberof SellerInfoResponseSubscription + */ + is_premium?: boolean; + /** + * + * @type {SellerInfoResponseSubscriptionTypeEnum} + * @memberof SellerInfoResponseSubscription + */ + type?: SellerInfoResponseSubscriptionTypeEnum; +} +/** + * Check if a given object implements the SellerInfoResponseSubscription interface. + */ +export declare function instanceOfSellerInfoResponseSubscription(value: object): value is SellerInfoResponseSubscription; +export declare function SellerInfoResponseSubscriptionFromJSON(json: any): SellerInfoResponseSubscription; +export declare function SellerInfoResponseSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseSubscription; +export declare function SellerInfoResponseSubscriptionToJSON(value?: SellerInfoResponseSubscription | null): any; diff --git a/dist/esm/models/SellerInfoResponseSubscription.js b/dist/esm/models/SellerInfoResponseSubscription.js new file mode 100644 index 0000000..e86794a --- /dev/null +++ b/dist/esm/models/SellerInfoResponseSubscription.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerInfoResponseSubscriptionTypeEnumFromJSON, SellerInfoResponseSubscriptionTypeEnumToJSON, } from './SellerInfoResponseSubscriptionTypeEnum'; +/** + * Check if a given object implements the SellerInfoResponseSubscription interface. + */ +export function instanceOfSellerInfoResponseSubscription(value) { + return true; +} +export function SellerInfoResponseSubscriptionFromJSON(json) { + return SellerInfoResponseSubscriptionFromJSONTyped(json, false); +} +export function SellerInfoResponseSubscriptionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'type': json['type'] == null ? undefined : SellerInfoResponseSubscriptionTypeEnumFromJSON(json['type']), + }; +} +export function SellerInfoResponseSubscriptionToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_premium': value['is_premium'], + 'type': SellerInfoResponseSubscriptionTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/SellerInfoResponseSubscriptionTypeEnum.d.ts b/dist/esm/models/SellerInfoResponseSubscriptionTypeEnum.d.ts new file mode 100644 index 0000000..e4a1b59 --- /dev/null +++ b/dist/esm/models/SellerInfoResponseSubscriptionTypeEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип подписки: + * - `UNKNOWN` — неизвестный, + * - `UNSPECIFIED` — нет подписки, + * - `PREMIUM` — Premium, + * - `PREMIUM_LITE` — Premium Lite, + * - `PREMIUM_PLUS` — Premium Plus, + * - `PREMIUM_PRO` — Premium Pro. + * + * @export + */ +export declare const SellerInfoResponseSubscriptionTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PREMIUM: "PREMIUM"; + readonly PREMIUM_LITE: "PREMIUM_LITE"; + readonly PREMIUM_PLUS: "PREMIUM_PLUS"; + readonly PREMIUM_PRO: "PREMIUM_PRO"; +}; +export type SellerInfoResponseSubscriptionTypeEnum = typeof SellerInfoResponseSubscriptionTypeEnum[keyof typeof SellerInfoResponseSubscriptionTypeEnum]; +export declare function instanceOfSellerInfoResponseSubscriptionTypeEnum(value: any): boolean; +export declare function SellerInfoResponseSubscriptionTypeEnumFromJSON(json: any): SellerInfoResponseSubscriptionTypeEnum; +export declare function SellerInfoResponseSubscriptionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseSubscriptionTypeEnum; +export declare function SellerInfoResponseSubscriptionTypeEnumToJSON(value?: SellerInfoResponseSubscriptionTypeEnum | null): any; diff --git a/dist/esm/models/SellerInfoResponseSubscriptionTypeEnum.js b/dist/esm/models/SellerInfoResponseSubscriptionTypeEnum.js new file mode 100644 index 0000000..dfe2bf7 --- /dev/null +++ b/dist/esm/models/SellerInfoResponseSubscriptionTypeEnum.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип подписки: + * - `UNKNOWN` — неизвестный, + * - `UNSPECIFIED` — нет подписки, + * - `PREMIUM` — Premium, + * - `PREMIUM_LITE` — Premium Lite, + * - `PREMIUM_PLUS` — Premium Plus, + * - `PREMIUM_PRO` — Premium Pro. + * + * @export + */ +export const SellerInfoResponseSubscriptionTypeEnum = { + UNKNOWN: 'UNKNOWN', + UNSPECIFIED: 'UNSPECIFIED', + PREMIUM: 'PREMIUM', + PREMIUM_LITE: 'PREMIUM_LITE', + PREMIUM_PLUS: 'PREMIUM_PLUS', + PREMIUM_PRO: 'PREMIUM_PRO' +}; +export function instanceOfSellerInfoResponseSubscriptionTypeEnum(value) { + for (const key in SellerInfoResponseSubscriptionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(SellerInfoResponseSubscriptionTypeEnum, key)) { + if (SellerInfoResponseSubscriptionTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SellerInfoResponseSubscriptionTypeEnumFromJSON(json) { + return SellerInfoResponseSubscriptionTypeEnumFromJSONTyped(json, false); +} +export function SellerInfoResponseSubscriptionTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SellerInfoResponseSubscriptionTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.d.ts b/dist/esm/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.d.ts new file mode 100644 index 0000000..222501c --- /dev/null +++ b/dist/esm/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SellerOzonLogisticsInfoResponseAvailableSchemasEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly FBO: "FBO"; + readonly FBS: "FBS"; +}; +export type SellerOzonLogisticsInfoResponseAvailableSchemasEnum = typeof SellerOzonLogisticsInfoResponseAvailableSchemasEnum[keyof typeof SellerOzonLogisticsInfoResponseAvailableSchemasEnum]; +export declare function instanceOfSellerOzonLogisticsInfoResponseAvailableSchemasEnum(value: any): boolean; +export declare function SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON(json: any): SellerOzonLogisticsInfoResponseAvailableSchemasEnum; +export declare function SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerOzonLogisticsInfoResponseAvailableSchemasEnum; +export declare function SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON(value?: SellerOzonLogisticsInfoResponseAvailableSchemasEnum | null): any; diff --git a/dist/esm/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.js b/dist/esm/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.js new file mode 100644 index 0000000..6604a34 --- /dev/null +++ b/dist/esm/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const SellerOzonLogisticsInfoResponseAvailableSchemasEnum = { + UNKNOWN: 'UNKNOWN', + FBO: 'FBO', + FBS: 'FBS' +}; +export function instanceOfSellerOzonLogisticsInfoResponseAvailableSchemasEnum(value) { + for (const key in SellerOzonLogisticsInfoResponseAvailableSchemasEnum) { + if (Object.prototype.hasOwnProperty.call(SellerOzonLogisticsInfoResponseAvailableSchemasEnum, key)) { + if (SellerOzonLogisticsInfoResponseAvailableSchemasEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON(json) { + return SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSONTyped(json, false); +} +export function SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SellerReturnsv1MoneyCommission.d.ts b/dist/esm/models/SellerReturnsv1MoneyCommission.d.ts new file mode 100644 index 0000000..90758e9 --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о комиссии. + * @export + * @interface SellerReturnsv1MoneyCommission + */ +export interface SellerReturnsv1MoneyCommission { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyCommission + */ + currency_code?: string; + /** + * Размер комиссии. + * @type {number} + * @memberof SellerReturnsv1MoneyCommission + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyCommission interface. + */ +export declare function instanceOfSellerReturnsv1MoneyCommission(value: object): value is SellerReturnsv1MoneyCommission; +export declare function SellerReturnsv1MoneyCommissionFromJSON(json: any): SellerReturnsv1MoneyCommission; +export declare function SellerReturnsv1MoneyCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyCommission; +export declare function SellerReturnsv1MoneyCommissionToJSON(value?: SellerReturnsv1MoneyCommission | null): any; diff --git a/dist/esm/models/SellerReturnsv1MoneyCommission.js b/dist/esm/models/SellerReturnsv1MoneyCommission.js new file mode 100644 index 0000000..2977c13 --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyCommission.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerReturnsv1MoneyCommission interface. + */ +export function instanceOfSellerReturnsv1MoneyCommission(value) { + return true; +} +export function SellerReturnsv1MoneyCommissionFromJSON(json) { + return SellerReturnsv1MoneyCommissionFromJSONTyped(json, false); +} +export function SellerReturnsv1MoneyCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function SellerReturnsv1MoneyCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/SellerReturnsv1MoneyProduct.d.ts b/dist/esm/models/SellerReturnsv1MoneyProduct.d.ts new file mode 100644 index 0000000..cf4c035 --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость товара. + * @export + * @interface SellerReturnsv1MoneyProduct + */ +export interface SellerReturnsv1MoneyProduct { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyProduct + */ + currency_code?: string; + /** + * Стоимость товара. + * @type {number} + * @memberof SellerReturnsv1MoneyProduct + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyProduct interface. + */ +export declare function instanceOfSellerReturnsv1MoneyProduct(value: object): value is SellerReturnsv1MoneyProduct; +export declare function SellerReturnsv1MoneyProductFromJSON(json: any): SellerReturnsv1MoneyProduct; +export declare function SellerReturnsv1MoneyProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyProduct; +export declare function SellerReturnsv1MoneyProductToJSON(value?: SellerReturnsv1MoneyProduct | null): any; diff --git a/dist/esm/models/SellerReturnsv1MoneyProduct.js b/dist/esm/models/SellerReturnsv1MoneyProduct.js new file mode 100644 index 0000000..8266985 --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyProduct.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerReturnsv1MoneyProduct interface. + */ +export function instanceOfSellerReturnsv1MoneyProduct(value) { + return true; +} +export function SellerReturnsv1MoneyProductFromJSON(json) { + return SellerReturnsv1MoneyProductFromJSONTyped(json, false); +} +export function SellerReturnsv1MoneyProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function SellerReturnsv1MoneyProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/SellerReturnsv1MoneyStorage.d.ts b/dist/esm/models/SellerReturnsv1MoneyStorage.d.ts new file mode 100644 index 0000000..2a52acf --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyStorage.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость хранения. + * @export + * @interface SellerReturnsv1MoneyStorage + */ +export interface SellerReturnsv1MoneyStorage { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyStorage + */ + currency_code?: string; + /** + * Стоимость хранения. + * @type {number} + * @memberof SellerReturnsv1MoneyStorage + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyStorage interface. + */ +export declare function instanceOfSellerReturnsv1MoneyStorage(value: object): value is SellerReturnsv1MoneyStorage; +export declare function SellerReturnsv1MoneyStorageFromJSON(json: any): SellerReturnsv1MoneyStorage; +export declare function SellerReturnsv1MoneyStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyStorage; +export declare function SellerReturnsv1MoneyStorageToJSON(value?: SellerReturnsv1MoneyStorage | null): any; diff --git a/dist/esm/models/SellerReturnsv1MoneyStorage.js b/dist/esm/models/SellerReturnsv1MoneyStorage.js new file mode 100644 index 0000000..c4aeec8 --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyStorage.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerReturnsv1MoneyStorage interface. + */ +export function instanceOfSellerReturnsv1MoneyStorage(value) { + return true; +} +export function SellerReturnsv1MoneyStorageFromJSON(json) { + return SellerReturnsv1MoneyStorageFromJSONTyped(json, false); +} +export function SellerReturnsv1MoneyStorageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function SellerReturnsv1MoneyStorageToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/SellerReturnsv1MoneyUtilization.d.ts b/dist/esm/models/SellerReturnsv1MoneyUtilization.d.ts new file mode 100644 index 0000000..3de59a7 --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyUtilization.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость утилизации. + * @export + * @interface SellerReturnsv1MoneyUtilization + */ +export interface SellerReturnsv1MoneyUtilization { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyUtilization + */ + currency_code?: string; + /** + * Стоимость утилизации. + * @type {number} + * @memberof SellerReturnsv1MoneyUtilization + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyUtilization interface. + */ +export declare function instanceOfSellerReturnsv1MoneyUtilization(value: object): value is SellerReturnsv1MoneyUtilization; +export declare function SellerReturnsv1MoneyUtilizationFromJSON(json: any): SellerReturnsv1MoneyUtilization; +export declare function SellerReturnsv1MoneyUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyUtilization; +export declare function SellerReturnsv1MoneyUtilizationToJSON(value?: SellerReturnsv1MoneyUtilization | null): any; diff --git a/dist/esm/models/SellerReturnsv1MoneyUtilization.js b/dist/esm/models/SellerReturnsv1MoneyUtilization.js new file mode 100644 index 0000000..bd710ee --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyUtilization.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerReturnsv1MoneyUtilization interface. + */ +export function instanceOfSellerReturnsv1MoneyUtilization(value) { + return true; +} +export function SellerReturnsv1MoneyUtilizationFromJSON(json) { + return SellerReturnsv1MoneyUtilizationFromJSONTyped(json, false); +} +export function SellerReturnsv1MoneyUtilizationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function SellerReturnsv1MoneyUtilizationToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/SellerReturnsv1MoneyWithoutCommission.d.ts b/dist/esm/models/SellerReturnsv1MoneyWithoutCommission.d.ts new file mode 100644 index 0000000..85c3fcb --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyWithoutCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость товара без комиссии. + * @export + * @interface SellerReturnsv1MoneyWithoutCommission + */ +export interface SellerReturnsv1MoneyWithoutCommission { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyWithoutCommission + */ + currency_code?: string; + /** + * Стоимость товара без комиссии. + * @type {number} + * @memberof SellerReturnsv1MoneyWithoutCommission + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyWithoutCommission interface. + */ +export declare function instanceOfSellerReturnsv1MoneyWithoutCommission(value: object): value is SellerReturnsv1MoneyWithoutCommission; +export declare function SellerReturnsv1MoneyWithoutCommissionFromJSON(json: any): SellerReturnsv1MoneyWithoutCommission; +export declare function SellerReturnsv1MoneyWithoutCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyWithoutCommission; +export declare function SellerReturnsv1MoneyWithoutCommissionToJSON(value?: SellerReturnsv1MoneyWithoutCommission | null): any; diff --git a/dist/esm/models/SellerReturnsv1MoneyWithoutCommission.js b/dist/esm/models/SellerReturnsv1MoneyWithoutCommission.js new file mode 100644 index 0000000..c318a6b --- /dev/null +++ b/dist/esm/models/SellerReturnsv1MoneyWithoutCommission.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerReturnsv1MoneyWithoutCommission interface. + */ +export function instanceOfSellerReturnsv1MoneyWithoutCommission(value) { + return true; +} +export function SellerReturnsv1MoneyWithoutCommissionFromJSON(json) { + return SellerReturnsv1MoneyWithoutCommissionFromJSONTyped(json, false); +} +export function SellerReturnsv1MoneyWithoutCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +export function SellerReturnsv1MoneyWithoutCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/esm/models/SellerSellerAPIArrivalPassCreateRequest.d.ts b/dist/esm/models/SellerSellerAPIArrivalPassCreateRequest.d.ts new file mode 100644 index 0000000..9e2b4b5 --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassCreateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerSellerAPIArrivalPassCreateRequestArrivalPass } from './SellerSellerAPIArrivalPassCreateRequestArrivalPass'; +/** + * + * @export + * @interface SellerSellerAPIArrivalPassCreateRequest + */ +export interface SellerSellerAPIArrivalPassCreateRequest { + /** + * Список пропусков. + * @type {Array} + * @memberof SellerSellerAPIArrivalPassCreateRequest + */ + arrival_passes: Array; + /** + * Идентификатор перевозки. + * @type {number} + * @memberof SellerSellerAPIArrivalPassCreateRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateRequest interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassCreateRequest(value: object): value is SellerSellerAPIArrivalPassCreateRequest; +export declare function SellerSellerAPIArrivalPassCreateRequestFromJSON(json: any): SellerSellerAPIArrivalPassCreateRequest; +export declare function SellerSellerAPIArrivalPassCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassCreateRequest; +export declare function SellerSellerAPIArrivalPassCreateRequestToJSON(value?: SellerSellerAPIArrivalPassCreateRequest | null): any; diff --git a/dist/esm/models/SellerSellerAPIArrivalPassCreateRequest.js b/dist/esm/models/SellerSellerAPIArrivalPassCreateRequest.js new file mode 100644 index 0000000..2ec3d01 --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassCreateRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON, SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON, } from './SellerSellerAPIArrivalPassCreateRequestArrivalPass'; +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateRequest interface. + */ +export function instanceOfSellerSellerAPIArrivalPassCreateRequest(value) { + if (!('arrival_passes' in value) || value['arrival_passes'] === undefined) + return false; + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function SellerSellerAPIArrivalPassCreateRequestFromJSON(json) { + return SellerSellerAPIArrivalPassCreateRequestFromJSONTyped(json, false); +} +export function SellerSellerAPIArrivalPassCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': (json['arrival_passes'].map(SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON)), + 'carriage_id': json['carriage_id'], + }; +} +export function SellerSellerAPIArrivalPassCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': (value['arrival_passes'].map(SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON)), + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.d.ts b/dist/esm/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.d.ts new file mode 100644 index 0000000..16e798c --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ +export interface SellerSellerAPIArrivalPassCreateRequestArrivalPass { + /** + * ФИО водителя. + * @type {string} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + driver_name: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + driver_phone: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + vehicle_license_plate: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + vehicle_model: string; + /** + * `true`, если будете вывозить возвраты. По умолчанию — `false`. + * + * @type {boolean} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + with_returns?: boolean; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateRequestArrivalPass interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassCreateRequestArrivalPass(value: object): value is SellerSellerAPIArrivalPassCreateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON(json: any): SellerSellerAPIArrivalPassCreateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassCreateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON(value?: SellerSellerAPIArrivalPassCreateRequestArrivalPass | null): any; diff --git a/dist/esm/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.js b/dist/esm/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.js new file mode 100644 index 0000000..9b9d844 --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateRequestArrivalPass interface. + */ +export function instanceOfSellerSellerAPIArrivalPassCreateRequestArrivalPass(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('vehicle_license_plate' in value) || value['vehicle_license_plate'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + return true; +} +export function SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON(json) { + return SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSONTyped(json, false); +} +export function SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'vehicle_license_plate': json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'], + 'with_returns': json['with_returns'] == null ? undefined : json['with_returns'], + }; +} +export function SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + 'with_returns': value['with_returns'], + }; +} diff --git a/dist/esm/models/SellerSellerAPIArrivalPassCreateResponse.d.ts b/dist/esm/models/SellerSellerAPIArrivalPassCreateResponse.d.ts new file mode 100644 index 0000000..7687e2f --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат запроса. + * @export + * @interface SellerSellerAPIArrivalPassCreateResponse + */ +export interface SellerSellerAPIArrivalPassCreateResponse { + /** + * Идентификаторы пропусков. + * @type {Array} + * @memberof SellerSellerAPIArrivalPassCreateResponse + */ + arrival_pass_ids?: Array; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateResponse interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassCreateResponse(value: object): value is SellerSellerAPIArrivalPassCreateResponse; +export declare function SellerSellerAPIArrivalPassCreateResponseFromJSON(json: any): SellerSellerAPIArrivalPassCreateResponse; +export declare function SellerSellerAPIArrivalPassCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassCreateResponse; +export declare function SellerSellerAPIArrivalPassCreateResponseToJSON(value?: SellerSellerAPIArrivalPassCreateResponse | null): any; diff --git a/dist/esm/models/SellerSellerAPIArrivalPassCreateResponse.js b/dist/esm/models/SellerSellerAPIArrivalPassCreateResponse.js new file mode 100644 index 0000000..6cbd868 --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateResponse interface. + */ +export function instanceOfSellerSellerAPIArrivalPassCreateResponse(value) { + return true; +} +export function SellerSellerAPIArrivalPassCreateResponseFromJSON(json) { + return SellerSellerAPIArrivalPassCreateResponseFromJSONTyped(json, false); +} +export function SellerSellerAPIArrivalPassCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'] == null ? undefined : json['arrival_pass_ids'], + }; +} +export function SellerSellerAPIArrivalPassCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + }; +} diff --git a/dist/esm/models/SellerSellerAPIArrivalPassDeleteRequest.d.ts b/dist/esm/models/SellerSellerAPIArrivalPassDeleteRequest.d.ts new file mode 100644 index 0000000..972b0c5 --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassDeleteRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerSellerAPIArrivalPassDeleteRequest + */ +export interface SellerSellerAPIArrivalPassDeleteRequest { + /** + * Идентификаторы пропусков. + * @type {Array} + * @memberof SellerSellerAPIArrivalPassDeleteRequest + */ + arrival_pass_ids: Array; + /** + * Идентификатор перевозки. + * @type {number} + * @memberof SellerSellerAPIArrivalPassDeleteRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassDeleteRequest interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassDeleteRequest(value: object): value is SellerSellerAPIArrivalPassDeleteRequest; +export declare function SellerSellerAPIArrivalPassDeleteRequestFromJSON(json: any): SellerSellerAPIArrivalPassDeleteRequest; +export declare function SellerSellerAPIArrivalPassDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassDeleteRequest; +export declare function SellerSellerAPIArrivalPassDeleteRequestToJSON(value?: SellerSellerAPIArrivalPassDeleteRequest | null): any; diff --git a/dist/esm/models/SellerSellerAPIArrivalPassDeleteRequest.js b/dist/esm/models/SellerSellerAPIArrivalPassDeleteRequest.js new file mode 100644 index 0000000..a9f9d44 --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassDeleteRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerSellerAPIArrivalPassDeleteRequest interface. + */ +export function instanceOfSellerSellerAPIArrivalPassDeleteRequest(value) { + if (!('arrival_pass_ids' in value) || value['arrival_pass_ids'] === undefined) + return false; + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function SellerSellerAPIArrivalPassDeleteRequestFromJSON(json) { + return SellerSellerAPIArrivalPassDeleteRequestFromJSONTyped(json, false); +} +export function SellerSellerAPIArrivalPassDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'], + 'carriage_id': json['carriage_id'], + }; +} +export function SellerSellerAPIArrivalPassDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequest.d.ts b/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequest.d.ts new file mode 100644 index 0000000..5d375cb --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerSellerAPIArrivalPassUpdateRequestArrivalPass } from './SellerSellerAPIArrivalPassUpdateRequestArrivalPass'; +/** + * + * @export + * @interface SellerSellerAPIArrivalPassUpdateRequest + */ +export interface SellerSellerAPIArrivalPassUpdateRequest { + /** + * Список пропусков. + * @type {Array} + * @memberof SellerSellerAPIArrivalPassUpdateRequest + */ + arrival_passes: Array; + /** + * Идентификатор перевозки. + * @type {number} + * @memberof SellerSellerAPIArrivalPassUpdateRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassUpdateRequest interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassUpdateRequest(value: object): value is SellerSellerAPIArrivalPassUpdateRequest; +export declare function SellerSellerAPIArrivalPassUpdateRequestFromJSON(json: any): SellerSellerAPIArrivalPassUpdateRequest; +export declare function SellerSellerAPIArrivalPassUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassUpdateRequest; +export declare function SellerSellerAPIArrivalPassUpdateRequestToJSON(value?: SellerSellerAPIArrivalPassUpdateRequest | null): any; diff --git a/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequest.js b/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequest.js new file mode 100644 index 0000000..84ff57e --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON, SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON, } from './SellerSellerAPIArrivalPassUpdateRequestArrivalPass'; +/** + * Check if a given object implements the SellerSellerAPIArrivalPassUpdateRequest interface. + */ +export function instanceOfSellerSellerAPIArrivalPassUpdateRequest(value) { + if (!('arrival_passes' in value) || value['arrival_passes'] === undefined) + return false; + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function SellerSellerAPIArrivalPassUpdateRequestFromJSON(json) { + return SellerSellerAPIArrivalPassUpdateRequestFromJSONTyped(json, false); +} +export function SellerSellerAPIArrivalPassUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': (json['arrival_passes'].map(SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON)), + 'carriage_id': json['carriage_id'], + }; +} +export function SellerSellerAPIArrivalPassUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': (value['arrival_passes'].map(SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON)), + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.d.ts b/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.d.ts new file mode 100644 index 0000000..6a46d2d --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ +export interface SellerSellerAPIArrivalPassUpdateRequestArrivalPass { + /** + * ФИО водителя. + * @type {string} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + driver_name: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + driver_phone: string; + /** + * Идентификатор пропуска. + * @type {number} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + id: number; + /** + * Номер автомобиля. + * @type {string} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + vehicle_license_plate: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + vehicle_model: string; + /** + * `true`, если будете вывозить возвраты. По умолчанию — `false`. + * + * @type {boolean} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + with_returns?: boolean; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassUpdateRequestArrivalPass interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassUpdateRequestArrivalPass(value: object): value is SellerSellerAPIArrivalPassUpdateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON(json: any): SellerSellerAPIArrivalPassUpdateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassUpdateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON(value?: SellerSellerAPIArrivalPassUpdateRequestArrivalPass | null): any; diff --git a/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.js b/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.js new file mode 100644 index 0000000..930b4b9 --- /dev/null +++ b/dist/esm/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SellerSellerAPIArrivalPassUpdateRequestArrivalPass interface. + */ +export function instanceOfSellerSellerAPIArrivalPassUpdateRequestArrivalPass(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('vehicle_license_plate' in value) || value['vehicle_license_plate'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + return true; +} +export function SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON(json) { + return SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSONTyped(json, false); +} +export function SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'id': json['id'], + 'vehicle_license_plate': json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'], + 'with_returns': json['with_returns'] == null ? undefined : json['with_returns'], + }; +} +export function SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'id': value['id'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + 'with_returns': value['with_returns'], + }; +} diff --git a/dist/esm/models/SellerServiceanalyticsDimension.d.ts b/dist/esm/models/SellerServiceanalyticsDimension.d.ts new file mode 100644 index 0000000..923a23f --- /dev/null +++ b/dist/esm/models/SellerServiceanalyticsDimension.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SellerServiceanalyticsDimension: { + readonly unknownDimension: "unknownDimension"; + readonly sku: "sku"; + readonly spu: "spu"; + readonly day: "day"; + readonly week: "week"; + readonly month: "month"; + readonly year: "year"; + readonly category1: "category1"; + readonly category2: "category2"; + readonly brand: "brand"; + readonly modelID: "modelID"; + readonly descriptionType: "descriptionType"; +}; +export type SellerServiceanalyticsDimension = typeof SellerServiceanalyticsDimension[keyof typeof SellerServiceanalyticsDimension]; +export declare function instanceOfSellerServiceanalyticsDimension(value: any): boolean; +export declare function SellerServiceanalyticsDimensionFromJSON(json: any): SellerServiceanalyticsDimension; +export declare function SellerServiceanalyticsDimensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerServiceanalyticsDimension; +export declare function SellerServiceanalyticsDimensionToJSON(value?: SellerServiceanalyticsDimension | null): any; diff --git a/dist/esm/models/SellerServiceanalyticsDimension.js b/dist/esm/models/SellerServiceanalyticsDimension.js new file mode 100644 index 0000000..2cb6788 --- /dev/null +++ b/dist/esm/models/SellerServiceanalyticsDimension.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const SellerServiceanalyticsDimension = { + unknownDimension: 'unknownDimension', + sku: 'sku', + spu: 'spu', + day: 'day', + week: 'week', + month: 'month', + year: 'year', + category1: 'category1', + category2: 'category2', + brand: 'brand', + modelID: 'modelID', + descriptionType: 'descriptionType' +}; +export function instanceOfSellerServiceanalyticsDimension(value) { + for (const key in SellerServiceanalyticsDimension) { + if (Object.prototype.hasOwnProperty.call(SellerServiceanalyticsDimension, key)) { + if (SellerServiceanalyticsDimension[key] === value) { + return true; + } + } + } + return false; +} +export function SellerServiceanalyticsDimensionFromJSON(json) { + return SellerServiceanalyticsDimensionFromJSONTyped(json, false); +} +export function SellerServiceanalyticsDimensionFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SellerServiceanalyticsDimensionToJSON(value) { + return value; +} diff --git a/dist/esm/models/SetPostingsResponseResult.d.ts b/dist/esm/models/SetPostingsResponseResult.d.ts new file mode 100644 index 0000000..5c7cdd4 --- /dev/null +++ b/dist/esm/models/SetPostingsResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SetPostingsResponseResult + */ +export interface SetPostingsResponseResult { + /** + * Описание ошибки. + * @type {string} + * @memberof SetPostingsResponseResult + */ + error?: string; + /** + * Номер отправления. + * @type {string} + * @memberof SetPostingsResponseResult + */ + posting_number?: string; + /** + * Результат обработки запроса. `true`, если запрос был обработан успешно. + * + * @type {boolean} + * @memberof SetPostingsResponseResult + */ + result?: boolean; +} +/** + * Check if a given object implements the SetPostingsResponseResult interface. + */ +export declare function instanceOfSetPostingsResponseResult(value: object): value is SetPostingsResponseResult; +export declare function SetPostingsResponseResultFromJSON(json: any): SetPostingsResponseResult; +export declare function SetPostingsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetPostingsResponseResult; +export declare function SetPostingsResponseResultToJSON(value?: SetPostingsResponseResult | null): any; diff --git a/dist/esm/models/SetPostingsResponseResult.js b/dist/esm/models/SetPostingsResponseResult.js new file mode 100644 index 0000000..df79f0f --- /dev/null +++ b/dist/esm/models/SetPostingsResponseResult.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SetPostingsResponseResult interface. + */ +export function instanceOfSetPostingsResponseResult(value) { + return true; +} +export function SetPostingsResponseResultFromJSON(json) { + return SetPostingsResponseResultFromJSONTyped(json, false); +} +export function SetPostingsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function SetPostingsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'posting_number': value['posting_number'], + 'result': value['result'], + }; +} diff --git a/dist/esm/models/SourceShipmentType.d.ts b/dist/esm/models/SourceShipmentType.d.ts new file mode 100644 index 0000000..0468464 --- /dev/null +++ b/dist/esm/models/SourceShipmentType.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `SHIPMENT_TYPE_UNSPECIFIED` — не указано; + * - `SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `SHIPMENT_TYPE_BOX` — коробка; + * - `SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export declare const SourceShipmentType: { + readonly UNSPECIFIED: "SHIPMENT_TYPE_UNSPECIFIED"; + readonly GENERAL: "SHIPMENT_TYPE_GENERAL"; + readonly BOX: "SHIPMENT_TYPE_BOX"; + readonly PALLET: "SHIPMENT_TYPE_PALLET"; +}; +export type SourceShipmentType = typeof SourceShipmentType[keyof typeof SourceShipmentType]; +export declare function instanceOfSourceShipmentType(value: any): boolean; +export declare function SourceShipmentTypeFromJSON(json: any): SourceShipmentType; +export declare function SourceShipmentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceShipmentType; +export declare function SourceShipmentTypeToJSON(value?: SourceShipmentType | null): any; diff --git a/dist/esm/models/SourceShipmentType.js b/dist/esm/models/SourceShipmentType.js new file mode 100644 index 0000000..8ccbfb3 --- /dev/null +++ b/dist/esm/models/SourceShipmentType.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `SHIPMENT_TYPE_UNSPECIFIED` — не указано; + * - `SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `SHIPMENT_TYPE_BOX` — коробка; + * - `SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export const SourceShipmentType = { + UNSPECIFIED: 'SHIPMENT_TYPE_UNSPECIFIED', + GENERAL: 'SHIPMENT_TYPE_GENERAL', + BOX: 'SHIPMENT_TYPE_BOX', + PALLET: 'SHIPMENT_TYPE_PALLET' +}; +export function instanceOfSourceShipmentType(value) { + for (const key in SourceShipmentType) { + if (Object.prototype.hasOwnProperty.call(SourceShipmentType, key)) { + if (SourceShipmentType[key] === value) { + return true; + } + } + } + return false; +} +export function SourceShipmentTypeFromJSON(json) { + return SourceShipmentTypeFromJSONTyped(json, false); +} +export function SourceShipmentTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SourceShipmentTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/SplitDeliveryMethod.d.ts b/dist/esm/models/SplitDeliveryMethod.d.ts new file mode 100644 index 0000000..08c7e4a --- /dev/null +++ b/dist/esm/models/SplitDeliveryMethod.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryTypeEnum } from './DeliveryTypeEnum'; +import type { DeliveryMethodDateRange } from './DeliveryMethodDateRange'; +import type { OrderCreateRequestDeliveryPrice } from './OrderCreateRequestDeliveryPrice'; +/** + * Метод доставки. + * @export + * @interface SplitDeliveryMethod + */ +export interface SplitDeliveryMethod { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof SplitDeliveryMethod + */ + delivery_method_id: number; + /** + * + * @type {DeliveryTypeEnum} + * @memberof SplitDeliveryMethod + */ + delivery_type: DeliveryTypeEnum; + /** + * + * @type {DeliveryMethodDateRange} + * @memberof SplitDeliveryMethod + */ + logistic_date_range: DeliveryMethodDateRange; + /** + * + * @type {OrderCreateRequestDeliveryPrice} + * @memberof SplitDeliveryMethod + */ + price?: OrderCreateRequestDeliveryPrice; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof SplitDeliveryMethod + */ + timeslot_id: number; +} +/** + * Check if a given object implements the SplitDeliveryMethod interface. + */ +export declare function instanceOfSplitDeliveryMethod(value: object): value is SplitDeliveryMethod; +export declare function SplitDeliveryMethodFromJSON(json: any): SplitDeliveryMethod; +export declare function SplitDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SplitDeliveryMethod; +export declare function SplitDeliveryMethodToJSON(value?: SplitDeliveryMethod | null): any; diff --git a/dist/esm/models/SplitDeliveryMethod.js b/dist/esm/models/SplitDeliveryMethod.js new file mode 100644 index 0000000..cb0819c --- /dev/null +++ b/dist/esm/models/SplitDeliveryMethod.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryTypeEnumFromJSON, DeliveryTypeEnumToJSON, } from './DeliveryTypeEnum'; +import { DeliveryMethodDateRangeFromJSON, DeliveryMethodDateRangeToJSON, } from './DeliveryMethodDateRange'; +import { OrderCreateRequestDeliveryPriceFromJSON, OrderCreateRequestDeliveryPriceToJSON, } from './OrderCreateRequestDeliveryPrice'; +/** + * Check if a given object implements the SplitDeliveryMethod interface. + */ +export function instanceOfSplitDeliveryMethod(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('delivery_type' in value) || value['delivery_type'] === undefined) + return false; + if (!('logistic_date_range' in value) || value['logistic_date_range'] === undefined) + return false; + if (!('timeslot_id' in value) || value['timeslot_id'] === undefined) + return false; + return true; +} +export function SplitDeliveryMethodFromJSON(json) { + return SplitDeliveryMethodFromJSONTyped(json, false); +} +export function SplitDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'delivery_type': DeliveryTypeEnumFromJSON(json['delivery_type']), + 'logistic_date_range': DeliveryMethodDateRangeFromJSON(json['logistic_date_range']), + 'price': json['price'] == null ? undefined : OrderCreateRequestDeliveryPriceFromJSON(json['price']), + 'timeslot_id': json['timeslot_id'], + }; +} +export function SplitDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'delivery_type': DeliveryTypeEnumToJSON(value['delivery_type']), + 'logistic_date_range': DeliveryMethodDateRangeToJSON(value['logistic_date_range']), + 'price': OrderCreateRequestDeliveryPriceToJSON(value['price']), + 'timeslot_id': value['timeslot_id'], + }; +} diff --git a/dist/esm/models/SplitItem.d.ts b/dist/esm/models/SplitItem.d.ts new file mode 100644 index 0000000..1959da2 --- /dev/null +++ b/dist/esm/models/SplitItem.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderCreateRequestPrice } from './OrderCreateRequestPrice'; +/** + * + * @export + * @interface SplitItem + */ +export interface SplitItem { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof SplitItem + */ + offer_id?: string; + /** + * + * @type {OrderCreateRequestPrice} + * @memberof SplitItem + */ + price: OrderCreateRequestPrice; + /** + * Количество товара. + * @type {number} + * @memberof SplitItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof SplitItem + */ + sku: number; +} +/** + * Check if a given object implements the SplitItem interface. + */ +export declare function instanceOfSplitItem(value: object): value is SplitItem; +export declare function SplitItemFromJSON(json: any): SplitItem; +export declare function SplitItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SplitItem; +export declare function SplitItemToJSON(value?: SplitItem | null): any; diff --git a/dist/esm/models/SplitItem.js b/dist/esm/models/SplitItem.js new file mode 100644 index 0000000..270b57e --- /dev/null +++ b/dist/esm/models/SplitItem.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OrderCreateRequestPriceFromJSON, OrderCreateRequestPriceToJSON, } from './OrderCreateRequestPrice'; +/** + * Check if a given object implements the SplitItem interface. + */ +export function instanceOfSplitItem(value) { + if (!('price' in value) || value['price'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function SplitItemFromJSON(json) { + return SplitItemFromJSONTyped(json, false); +} +export function SplitItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': OrderCreateRequestPriceFromJSON(json['price']), + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +export function SplitItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'price': OrderCreateRequestPriceToJSON(value['price']), + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/StatusEnum.d.ts b/dist/esm/models/StatusEnum.d.ts new file mode 100644 index 0000000..ea54562 --- /dev/null +++ b/dist/esm/models/StatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус изменения скидки от количества. Возможные значения: + * - `ERROR` — ошибка при изменении скидки. Вызовите метод [/v1/product/stairway-discount/by-quantity/set](#operation/ProductAPI_SetProductStairwayDiscountByQuantity) ещё раз. + * - `IN_PROCESS` — изменение в процессе. + * - `SUCCESS` — изменение скидки применено к товару. + * + * @export + */ +export declare const StatusEnum: { + readonly IN_PROCESS: "IN_PROCESS"; + readonly ERROR: "ERROR"; + readonly SUCCESS: "SUCCESS"; +}; +export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum]; +export declare function instanceOfStatusEnum(value: any): boolean; +export declare function StatusEnumFromJSON(json: any): StatusEnum; +export declare function StatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusEnum; +export declare function StatusEnumToJSON(value?: StatusEnum | null): any; diff --git a/dist/esm/models/StatusEnum.js b/dist/esm/models/StatusEnum.js new file mode 100644 index 0000000..661e9c3 --- /dev/null +++ b/dist/esm/models/StatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус изменения скидки от количества. Возможные значения: + * - `ERROR` — ошибка при изменении скидки. Вызовите метод [/v1/product/stairway-discount/by-quantity/set](#operation/ProductAPI_SetProductStairwayDiscountByQuantity) ещё раз. + * - `IN_PROCESS` — изменение в процессе. + * - `SUCCESS` — изменение скидки применено к товару. + * + * @export + */ +export const StatusEnum = { + IN_PROCESS: 'IN_PROCESS', + ERROR: 'ERROR', + SUCCESS: 'SUCCESS' +}; +export function instanceOfStatusEnum(value) { + for (const key in StatusEnum) { + if (Object.prototype.hasOwnProperty.call(StatusEnum, key)) { + if (StatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function StatusEnumFromJSON(json) { + return StatusEnumFromJSONTyped(json, false); +} +export function StatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function StatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/StockShipmentType.d.ts b/dist/esm/models/StockShipmentType.d.ts new file mode 100644 index 0000000..1284468 --- /dev/null +++ b/dist/esm/models/StockShipmentType.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `SHIPMENT_TYPE_BOX` — коробка; + * - `SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export declare const StockShipmentType: { + readonly GENERAL: "SHIPMENT_TYPE_GENERAL"; + readonly BOX: "SHIPMENT_TYPE_BOX"; + readonly PALLET: "SHIPMENT_TYPE_PALLET"; +}; +export type StockShipmentType = typeof StockShipmentType[keyof typeof StockShipmentType]; +export declare function instanceOfStockShipmentType(value: any): boolean; +export declare function StockShipmentTypeFromJSON(json: any): StockShipmentType; +export declare function StockShipmentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StockShipmentType; +export declare function StockShipmentTypeToJSON(value?: StockShipmentType | null): any; diff --git a/dist/esm/models/StockShipmentType.js b/dist/esm/models/StockShipmentType.js new file mode 100644 index 0000000..031dadd --- /dev/null +++ b/dist/esm/models/StockShipmentType.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `SHIPMENT_TYPE_BOX` — коробка; + * - `SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export const StockShipmentType = { + GENERAL: 'SHIPMENT_TYPE_GENERAL', + BOX: 'SHIPMENT_TYPE_BOX', + PALLET: 'SHIPMENT_TYPE_PALLET' +}; +export function instanceOfStockShipmentType(value) { + for (const key in StockShipmentType) { + if (Object.prototype.hasOwnProperty.call(StockShipmentType, key)) { + if (StockShipmentType[key] === value) { + return true; + } + } + } + return false; +} +export function StockShipmentTypeFromJSON(json) { + return StockShipmentTypeFromJSONTyped(json, false); +} +export function StockShipmentTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function StockShipmentTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/StocksImportRequestItemStock.d.ts b/dist/esm/models/StocksImportRequestItemStock.d.ts new file mode 100644 index 0000000..2f558ab --- /dev/null +++ b/dist/esm/models/StocksImportRequestItemStock.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StocksImportRequestItemStock + */ +export interface StocksImportRequestItemStock { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof StocksImportRequestItemStock + */ + offer_id: string; + /** + * Количество товара в наличии. + * @type {number} + * @memberof StocksImportRequestItemStock + */ + stock: number; +} +/** + * Check if a given object implements the StocksImportRequestItemStock interface. + */ +export declare function instanceOfStocksImportRequestItemStock(value: object): value is StocksImportRequestItemStock; +export declare function StocksImportRequestItemStockFromJSON(json: any): StocksImportRequestItemStock; +export declare function StocksImportRequestItemStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): StocksImportRequestItemStock; +export declare function StocksImportRequestItemStockToJSON(value?: StocksImportRequestItemStock | null): any; diff --git a/dist/esm/models/StocksImportRequestItemStock.js b/dist/esm/models/StocksImportRequestItemStock.js new file mode 100644 index 0000000..d6c191a --- /dev/null +++ b/dist/esm/models/StocksImportRequestItemStock.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the StocksImportRequestItemStock interface. + */ +export function instanceOfStocksImportRequestItemStock(value) { + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + if (!('stock' in value) || value['stock'] === undefined) + return false; + return true; +} +export function StocksImportRequestItemStockFromJSON(json) { + return StocksImportRequestItemStockFromJSONTyped(json, false); +} +export function StocksImportRequestItemStockFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'], + 'stock': json['stock'], + }; +} +export function StocksImportRequestItemStockToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'stock': value['stock'], + }; +} diff --git a/dist/esm/models/StocksImportResponseItemStatus.d.ts b/dist/esm/models/StocksImportResponseItemStatus.d.ts new file mode 100644 index 0000000..4543dfc --- /dev/null +++ b/dist/esm/models/StocksImportResponseItemStatus.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemStatusError } from './ItemStatusError'; +/** + * + * @export + * @interface StocksImportResponseItemStatus + */ +export interface StocksImportResponseItemStatus { + /** + * Ошибки, которые возникли при обработке запроса. + * @type {Array} + * @memberof StocksImportResponseItemStatus + */ + errors?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof StocksImportResponseItemStatus + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof StocksImportResponseItemStatus + */ + product_id?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof StocksImportResponseItemStatus + */ + sku?: number; + /** + * `true`, если запрос выполнен успешно и остатки обновлены. + * + * @type {boolean} + * @memberof StocksImportResponseItemStatus + */ + updated?: boolean; +} +/** + * Check if a given object implements the StocksImportResponseItemStatus interface. + */ +export declare function instanceOfStocksImportResponseItemStatus(value: object): value is StocksImportResponseItemStatus; +export declare function StocksImportResponseItemStatusFromJSON(json: any): StocksImportResponseItemStatus; +export declare function StocksImportResponseItemStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): StocksImportResponseItemStatus; +export declare function StocksImportResponseItemStatusToJSON(value?: StocksImportResponseItemStatus | null): any; diff --git a/dist/esm/models/StocksImportResponseItemStatus.js b/dist/esm/models/StocksImportResponseItemStatus.js new file mode 100644 index 0000000..213d7b9 --- /dev/null +++ b/dist/esm/models/StocksImportResponseItemStatus.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ItemStatusErrorFromJSON, ItemStatusErrorToJSON, } from './ItemStatusError'; +/** + * Check if a given object implements the StocksImportResponseItemStatus interface. + */ +export function instanceOfStocksImportResponseItemStatus(value) { + return true; +} +export function StocksImportResponseItemStatusFromJSON(json) { + return StocksImportResponseItemStatusFromJSONTyped(json, false); +} +export function StocksImportResponseItemStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(ItemStatusErrorFromJSON)), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'updated': json['updated'] == null ? undefined : json['updated'], + }; +} +export function StocksImportResponseItemStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(ItemStatusErrorToJSON)), + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + 'updated': value['updated'], + }; +} diff --git a/dist/esm/models/SupplierAvailableWarehousesResponseCapacity.d.ts b/dist/esm/models/SupplierAvailableWarehousesResponseCapacity.d.ts new file mode 100644 index 0000000..bb7453f --- /dev/null +++ b/dist/esm/models/SupplierAvailableWarehousesResponseCapacity.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplierAvailableWarehousesResponseCapacity + */ +export interface SupplierAvailableWarehousesResponseCapacity { + /** + * Начало периода по местному времени. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseCapacity + */ + start?: string; + /** + * Конец периода по местному времени. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseCapacity + */ + end?: string; + /** + * Среднее количество товаров, которые склад может принять в день за период. + * @type {number} + * @memberof SupplierAvailableWarehousesResponseCapacity + */ + value?: number; +} +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseCapacity interface. + */ +export declare function instanceOfSupplierAvailableWarehousesResponseCapacity(value: object): value is SupplierAvailableWarehousesResponseCapacity; +export declare function SupplierAvailableWarehousesResponseCapacityFromJSON(json: any): SupplierAvailableWarehousesResponseCapacity; +export declare function SupplierAvailableWarehousesResponseCapacityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierAvailableWarehousesResponseCapacity; +export declare function SupplierAvailableWarehousesResponseCapacityToJSON(value?: SupplierAvailableWarehousesResponseCapacity | null): any; diff --git a/dist/esm/models/SupplierAvailableWarehousesResponseCapacity.js b/dist/esm/models/SupplierAvailableWarehousesResponseCapacity.js new file mode 100644 index 0000000..4e50fb5 --- /dev/null +++ b/dist/esm/models/SupplierAvailableWarehousesResponseCapacity.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseCapacity interface. + */ +export function instanceOfSupplierAvailableWarehousesResponseCapacity(value) { + return true; +} +export function SupplierAvailableWarehousesResponseCapacityFromJSON(json) { + return SupplierAvailableWarehousesResponseCapacityFromJSONTyped(json, false); +} +export function SupplierAvailableWarehousesResponseCapacityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'start': json['start'] == null ? undefined : json['start'], + 'end': json['end'] == null ? undefined : json['end'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function SupplierAvailableWarehousesResponseCapacityToJSON(value) { + if (value == null) { + return value; + } + return { + 'start': value['start'], + 'end': value['end'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/SupplierAvailableWarehousesResponseResult.d.ts b/dist/esm/models/SupplierAvailableWarehousesResponseResult.d.ts new file mode 100644 index 0000000..18f4a47 --- /dev/null +++ b/dist/esm/models/SupplierAvailableWarehousesResponseResult.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplierAvailableWarehousesResponseWarehouse } from './SupplierAvailableWarehousesResponseWarehouse'; +import type { SupplierAvailableWarehousesResponseSchedule } from './SupplierAvailableWarehousesResponseSchedule'; +/** + * + * @export + * @interface SupplierAvailableWarehousesResponseResult + */ +export interface SupplierAvailableWarehousesResponseResult { + /** + * + * @type {SupplierAvailableWarehousesResponseSchedule} + * @memberof SupplierAvailableWarehousesResponseResult + */ + schedule?: SupplierAvailableWarehousesResponseSchedule; + /** + * + * @type {SupplierAvailableWarehousesResponseWarehouse} + * @memberof SupplierAvailableWarehousesResponseResult + */ + warehouse?: SupplierAvailableWarehousesResponseWarehouse; +} +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseResult interface. + */ +export declare function instanceOfSupplierAvailableWarehousesResponseResult(value: object): value is SupplierAvailableWarehousesResponseResult; +export declare function SupplierAvailableWarehousesResponseResultFromJSON(json: any): SupplierAvailableWarehousesResponseResult; +export declare function SupplierAvailableWarehousesResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierAvailableWarehousesResponseResult; +export declare function SupplierAvailableWarehousesResponseResultToJSON(value?: SupplierAvailableWarehousesResponseResult | null): any; diff --git a/dist/esm/models/SupplierAvailableWarehousesResponseResult.js b/dist/esm/models/SupplierAvailableWarehousesResponseResult.js new file mode 100644 index 0000000..4d427cc --- /dev/null +++ b/dist/esm/models/SupplierAvailableWarehousesResponseResult.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplierAvailableWarehousesResponseWarehouseFromJSON, SupplierAvailableWarehousesResponseWarehouseToJSON, } from './SupplierAvailableWarehousesResponseWarehouse'; +import { SupplierAvailableWarehousesResponseScheduleFromJSON, SupplierAvailableWarehousesResponseScheduleToJSON, } from './SupplierAvailableWarehousesResponseSchedule'; +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseResult interface. + */ +export function instanceOfSupplierAvailableWarehousesResponseResult(value) { + return true; +} +export function SupplierAvailableWarehousesResponseResultFromJSON(json) { + return SupplierAvailableWarehousesResponseResultFromJSONTyped(json, false); +} +export function SupplierAvailableWarehousesResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'schedule': json['schedule'] == null ? undefined : SupplierAvailableWarehousesResponseScheduleFromJSON(json['schedule']), + 'warehouse': json['warehouse'] == null ? undefined : SupplierAvailableWarehousesResponseWarehouseFromJSON(json['warehouse']), + }; +} +export function SupplierAvailableWarehousesResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'schedule': SupplierAvailableWarehousesResponseScheduleToJSON(value['schedule']), + 'warehouse': SupplierAvailableWarehousesResponseWarehouseToJSON(value['warehouse']), + }; +} diff --git a/dist/esm/models/SupplierAvailableWarehousesResponseSchedule.d.ts b/dist/esm/models/SupplierAvailableWarehousesResponseSchedule.d.ts new file mode 100644 index 0000000..c63a193 --- /dev/null +++ b/dist/esm/models/SupplierAvailableWarehousesResponseSchedule.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplierAvailableWarehousesResponseCapacity } from './SupplierAvailableWarehousesResponseCapacity'; +/** + * Загруженность. + * @export + * @interface SupplierAvailableWarehousesResponseSchedule + */ +export interface SupplierAvailableWarehousesResponseSchedule { + /** + * Данные о количестве поставляемых на склад товаров. + * @type {Array} + * @memberof SupplierAvailableWarehousesResponseSchedule + */ + capacity?: Array; + /** + * Ближайшая доступная дата для записи на поставку по местному времени. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseSchedule + */ + date?: string; +} +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseSchedule interface. + */ +export declare function instanceOfSupplierAvailableWarehousesResponseSchedule(value: object): value is SupplierAvailableWarehousesResponseSchedule; +export declare function SupplierAvailableWarehousesResponseScheduleFromJSON(json: any): SupplierAvailableWarehousesResponseSchedule; +export declare function SupplierAvailableWarehousesResponseScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierAvailableWarehousesResponseSchedule; +export declare function SupplierAvailableWarehousesResponseScheduleToJSON(value?: SupplierAvailableWarehousesResponseSchedule | null): any; diff --git a/dist/esm/models/SupplierAvailableWarehousesResponseSchedule.js b/dist/esm/models/SupplierAvailableWarehousesResponseSchedule.js new file mode 100644 index 0000000..168c1f2 --- /dev/null +++ b/dist/esm/models/SupplierAvailableWarehousesResponseSchedule.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplierAvailableWarehousesResponseCapacityFromJSON, SupplierAvailableWarehousesResponseCapacityToJSON, } from './SupplierAvailableWarehousesResponseCapacity'; +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseSchedule interface. + */ +export function instanceOfSupplierAvailableWarehousesResponseSchedule(value) { + return true; +} +export function SupplierAvailableWarehousesResponseScheduleFromJSON(json) { + return SupplierAvailableWarehousesResponseScheduleFromJSONTyped(json, false); +} +export function SupplierAvailableWarehousesResponseScheduleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'capacity': json['capacity'] == null ? undefined : (json['capacity'].map(SupplierAvailableWarehousesResponseCapacityFromJSON)), + 'date': json['date'] == null ? undefined : json['date'], + }; +} +export function SupplierAvailableWarehousesResponseScheduleToJSON(value) { + if (value == null) { + return value; + } + return { + 'capacity': value['capacity'] == null ? undefined : (value['capacity'].map(SupplierAvailableWarehousesResponseCapacityToJSON)), + 'date': value['date'], + }; +} diff --git a/dist/esm/models/SupplierAvailableWarehousesResponseWarehouse.d.ts b/dist/esm/models/SupplierAvailableWarehousesResponseWarehouse.d.ts new file mode 100644 index 0000000..566de64 --- /dev/null +++ b/dist/esm/models/SupplierAvailableWarehousesResponseWarehouse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад. + * @export + * @interface SupplierAvailableWarehousesResponseWarehouse + */ +export interface SupplierAvailableWarehousesResponseWarehouse { + /** + * Идентификатор склада. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseWarehouse + */ + id?: string; + /** + * Название склада. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseWarehouse + */ + name?: string; +} +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseWarehouse interface. + */ +export declare function instanceOfSupplierAvailableWarehousesResponseWarehouse(value: object): value is SupplierAvailableWarehousesResponseWarehouse; +export declare function SupplierAvailableWarehousesResponseWarehouseFromJSON(json: any): SupplierAvailableWarehousesResponseWarehouse; +export declare function SupplierAvailableWarehousesResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierAvailableWarehousesResponseWarehouse; +export declare function SupplierAvailableWarehousesResponseWarehouseToJSON(value?: SupplierAvailableWarehousesResponseWarehouse | null): any; diff --git a/dist/esm/models/SupplierAvailableWarehousesResponseWarehouse.js b/dist/esm/models/SupplierAvailableWarehousesResponseWarehouse.js new file mode 100644 index 0000000..424c362 --- /dev/null +++ b/dist/esm/models/SupplierAvailableWarehousesResponseWarehouse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseWarehouse interface. + */ +export function instanceOfSupplierAvailableWarehousesResponseWarehouse(value) { + return true; +} +export function SupplierAvailableWarehousesResponseWarehouseFromJSON(json) { + return SupplierAvailableWarehousesResponseWarehouseFromJSONTyped(json, false); +} +export function SupplierAvailableWarehousesResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function SupplierAvailableWarehousesResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/SupplyCancellationAllowability.d.ts b/dist/esm/models/SupplyCancellationAllowability.d.ts new file mode 100644 index 0000000..b5ead31 --- /dev/null +++ b/dist/esm/models/SupplyCancellationAllowability.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CancellationAllowabilityCanNotCancelSupplyReasonEnum } from './CancellationAllowabilityCanNotCancelSupplyReasonEnum'; +/** + * Возможность отмены. + * @export + * @interface SupplyCancellationAllowability + */ +export interface SupplyCancellationAllowability { + /** + * Причина, почему нельзя отменить поставку: + * - `UNSPECIFIED` — не определена; + * - `INVALID_SUPPLY_STATE` — некорректный статус поставки; + * - `SUPPLY_IS_VIRTUAL` — поставка виртуальная; + * - `SUPPLY_HAS_ACTIVE_UTD` — у поставки есть активный УПД; + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — поставка не принадлежит продавцу; + * - `PICKUP_SUPPLY_IS_LOCKED_DOWN` — заблокировано редактирование поставки; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof SupplyCancellationAllowability + */ + can_not_set_reasons?: Array; + /** + * `true`, если поставку можно отменить. + * + * @type {boolean} + * @memberof SupplyCancellationAllowability + */ + can_set?: boolean; +} +/** + * Check if a given object implements the SupplyCancellationAllowability interface. + */ +export declare function instanceOfSupplyCancellationAllowability(value: object): value is SupplyCancellationAllowability; +export declare function SupplyCancellationAllowabilityFromJSON(json: any): SupplyCancellationAllowability; +export declare function SupplyCancellationAllowabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCancellationAllowability; +export declare function SupplyCancellationAllowabilityToJSON(value?: SupplyCancellationAllowability | null): any; diff --git a/dist/esm/models/SupplyCancellationAllowability.js b/dist/esm/models/SupplyCancellationAllowability.js new file mode 100644 index 0000000..f0206b9 --- /dev/null +++ b/dist/esm/models/SupplyCancellationAllowability.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON, CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON, } from './CancellationAllowabilityCanNotCancelSupplyReasonEnum'; +/** + * Check if a given object implements the SupplyCancellationAllowability interface. + */ +export function instanceOfSupplyCancellationAllowability(value) { + return true; +} +export function SupplyCancellationAllowabilityFromJSON(json) { + return SupplyCancellationAllowabilityFromJSONTyped(json, false); +} +export function SupplyCancellationAllowabilityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_not_set_reasons': json['can_not_set_reasons'] == null ? undefined : (json['can_not_set_reasons'].map(CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON)), + 'can_set': json['can_set'] == null ? undefined : json['can_set'], + }; +} +export function SupplyCancellationAllowabilityToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_not_set_reasons': value['can_not_set_reasons'] == null ? undefined : (value['can_not_set_reasons'].map(CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON)), + 'can_set': value['can_set'], + }; +} diff --git a/dist/esm/models/SupplyCargoInfo.d.ts b/dist/esm/models/SupplyCargoInfo.d.ts new file mode 100644 index 0000000..c0ccbf6 --- /dev/null +++ b/dist/esm/models/SupplyCargoInfo.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoInfoTrackingInfo } from './CargoInfoTrackingInfo'; +import type { CargoInfoContentTypeEnum } from './CargoInfoContentTypeEnum'; +import type { SupplyCargoInfoTypeEnum } from './SupplyCargoInfoTypeEnum'; +import type { CargoInfoPlacementZoneTypeEnum } from './CargoInfoPlacementZoneTypeEnum'; +/** + * + * @export + * @interface SupplyCargoInfo + */ +export interface SupplyCargoInfo { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof SupplyCargoInfo + */ + bundle_id?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof SupplyCargoInfo + */ + cargo_id?: number; + /** + * + * @type {CargoInfoContentTypeEnum} + * @memberof SupplyCargoInfo + */ + content_type?: CargoInfoContentTypeEnum; + /** + * + * @type {CargoInfoPlacementZoneTypeEnum} + * @memberof SupplyCargoInfo + */ + placement_zone_type?: CargoInfoPlacementZoneTypeEnum; + /** + * + * @type {CargoInfoTrackingInfo} + * @memberof SupplyCargoInfo + */ + tracking_info?: CargoInfoTrackingInfo; + /** + * + * @type {SupplyCargoInfoTypeEnum} + * @memberof SupplyCargoInfo + */ + type?: SupplyCargoInfoTypeEnum; +} +/** + * Check if a given object implements the SupplyCargoInfo interface. + */ +export declare function instanceOfSupplyCargoInfo(value: object): value is SupplyCargoInfo; +export declare function SupplyCargoInfoFromJSON(json: any): SupplyCargoInfo; +export declare function SupplyCargoInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCargoInfo; +export declare function SupplyCargoInfoToJSON(value?: SupplyCargoInfo | null): any; diff --git a/dist/esm/models/SupplyCargoInfo.js b/dist/esm/models/SupplyCargoInfo.js new file mode 100644 index 0000000..ee70592 --- /dev/null +++ b/dist/esm/models/SupplyCargoInfo.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoInfoTrackingInfoFromJSON, CargoInfoTrackingInfoToJSON, } from './CargoInfoTrackingInfo'; +import { CargoInfoContentTypeEnumFromJSON, CargoInfoContentTypeEnumToJSON, } from './CargoInfoContentTypeEnum'; +import { SupplyCargoInfoTypeEnumFromJSON, SupplyCargoInfoTypeEnumToJSON, } from './SupplyCargoInfoTypeEnum'; +import { CargoInfoPlacementZoneTypeEnumFromJSON, CargoInfoPlacementZoneTypeEnumToJSON, } from './CargoInfoPlacementZoneTypeEnum'; +/** + * Check if a given object implements the SupplyCargoInfo interface. + */ +export function instanceOfSupplyCargoInfo(value) { + return true; +} +export function SupplyCargoInfoFromJSON(json) { + return SupplyCargoInfoFromJSONTyped(json, false); +} +export function SupplyCargoInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'content_type': json['content_type'] == null ? undefined : CargoInfoContentTypeEnumFromJSON(json['content_type']), + 'placement_zone_type': json['placement_zone_type'] == null ? undefined : CargoInfoPlacementZoneTypeEnumFromJSON(json['placement_zone_type']), + 'tracking_info': json['tracking_info'] == null ? undefined : CargoInfoTrackingInfoFromJSON(json['tracking_info']), + 'type': json['type'] == null ? undefined : SupplyCargoInfoTypeEnumFromJSON(json['type']), + }; +} +export function SupplyCargoInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargo_id': value['cargo_id'], + 'content_type': CargoInfoContentTypeEnumToJSON(value['content_type']), + 'placement_zone_type': CargoInfoPlacementZoneTypeEnumToJSON(value['placement_zone_type']), + 'tracking_info': CargoInfoTrackingInfoToJSON(value['tracking_info']), + 'type': SupplyCargoInfoTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/SupplyCargoInfoTypeEnum.d.ts b/dist/esm/models/SupplyCargoInfoTypeEnum.d.ts new file mode 100644 index 0000000..74c23f8 --- /dev/null +++ b/dist/esm/models/SupplyCargoInfoTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён, + * - `BOX` — коробка, + * - `PALLET` — палета. + * + * @export + */ +export declare const SupplyCargoInfoTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type SupplyCargoInfoTypeEnum = typeof SupplyCargoInfoTypeEnum[keyof typeof SupplyCargoInfoTypeEnum]; +export declare function instanceOfSupplyCargoInfoTypeEnum(value: any): boolean; +export declare function SupplyCargoInfoTypeEnumFromJSON(json: any): SupplyCargoInfoTypeEnum; +export declare function SupplyCargoInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCargoInfoTypeEnum; +export declare function SupplyCargoInfoTypeEnumToJSON(value?: SupplyCargoInfoTypeEnum | null): any; diff --git a/dist/esm/models/SupplyCargoInfoTypeEnum.js b/dist/esm/models/SupplyCargoInfoTypeEnum.js new file mode 100644 index 0000000..2d74970 --- /dev/null +++ b/dist/esm/models/SupplyCargoInfoTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён, + * - `BOX` — коробка, + * - `PALLET` — палета. + * + * @export + */ +export const SupplyCargoInfoTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BOX: 'BOX', + PALLET: 'PALLET' +}; +export function instanceOfSupplyCargoInfoTypeEnum(value) { + for (const key in SupplyCargoInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyCargoInfoTypeEnum, key)) { + if (SupplyCargoInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyCargoInfoTypeEnumFromJSON(json) { + return SupplyCargoInfoTypeEnumFromJSONTyped(json, false); +} +export function SupplyCargoInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyCargoInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyCheckCargoesPresentRule.d.ts b/dist/esm/models/SupplyCheckCargoesPresentRule.d.ts new file mode 100644 index 0000000..5aad96b --- /dev/null +++ b/dist/esm/models/SupplyCheckCargoesPresentRule.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesPresentRuleCargoCountPerType } from './CargoesPresentRuleCargoCountPerType'; +/** + * Правило указания грузомест. + * @export + * @interface SupplyCheckCargoesPresentRule + */ +export interface SupplyCheckCargoesPresentRule { + /** + * Количество грузомест каждого типа. + * @type {Array} + * @memberof SupplyCheckCargoesPresentRule + */ + cargo_count_per_type?: Array; + /** + * Общее количество грузомест. + * @type {number} + * @memberof SupplyCheckCargoesPresentRule + */ + count?: number; + /** + * `true`, если грузоместа указаны. + * + * @type {boolean} + * @memberof SupplyCheckCargoesPresentRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckCargoesPresentRule interface. + */ +export declare function instanceOfSupplyCheckCargoesPresentRule(value: object): value is SupplyCheckCargoesPresentRule; +export declare function SupplyCheckCargoesPresentRuleFromJSON(json: any): SupplyCheckCargoesPresentRule; +export declare function SupplyCheckCargoesPresentRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckCargoesPresentRule; +export declare function SupplyCheckCargoesPresentRuleToJSON(value?: SupplyCheckCargoesPresentRule | null): any; diff --git a/dist/esm/models/SupplyCheckCargoesPresentRule.js b/dist/esm/models/SupplyCheckCargoesPresentRule.js new file mode 100644 index 0000000..9eb576f --- /dev/null +++ b/dist/esm/models/SupplyCheckCargoesPresentRule.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesPresentRuleCargoCountPerTypeFromJSON, CargoesPresentRuleCargoCountPerTypeToJSON, } from './CargoesPresentRuleCargoCountPerType'; +/** + * Check if a given object implements the SupplyCheckCargoesPresentRule interface. + */ +export function instanceOfSupplyCheckCargoesPresentRule(value) { + return true; +} +export function SupplyCheckCargoesPresentRuleFromJSON(json) { + return SupplyCheckCargoesPresentRuleFromJSONTyped(json, false); +} +export function SupplyCheckCargoesPresentRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_count_per_type': json['cargo_count_per_type'] == null ? undefined : (json['cargo_count_per_type'].map(CargoesPresentRuleCargoCountPerTypeFromJSON)), + 'count': json['count'] == null ? undefined : json['count'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +export function SupplyCheckCargoesPresentRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_count_per_type': value['cargo_count_per_type'] == null ? undefined : (value['cargo_count_per_type'].map(CargoesPresentRuleCargoCountPerTypeToJSON)), + 'count': value['count'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/esm/models/SupplyCheckEditDeadlineExpireRule.d.ts b/dist/esm/models/SupplyCheckEditDeadlineExpireRule.d.ts new file mode 100644 index 0000000..6e1b53e --- /dev/null +++ b/dist/esm/models/SupplyCheckEditDeadlineExpireRule.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило крайнего срока редактирования грузомест. + * @export + * @interface SupplyCheckEditDeadlineExpireRule + */ +export interface SupplyCheckEditDeadlineExpireRule { + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckEditDeadlineExpireRule + */ + is_applicable?: boolean; + /** + * `true`, если правило обязательно для текущей поставки. + * + * @type {boolean} + * @memberof SupplyCheckEditDeadlineExpireRule + */ + is_required?: boolean; + /** + * `true`, если крайний срок для редактирования не наступил. + * + * @type {boolean} + * @memberof SupplyCheckEditDeadlineExpireRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckEditDeadlineExpireRule interface. + */ +export declare function instanceOfSupplyCheckEditDeadlineExpireRule(value: object): value is SupplyCheckEditDeadlineExpireRule; +export declare function SupplyCheckEditDeadlineExpireRuleFromJSON(json: any): SupplyCheckEditDeadlineExpireRule; +export declare function SupplyCheckEditDeadlineExpireRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckEditDeadlineExpireRule; +export declare function SupplyCheckEditDeadlineExpireRuleToJSON(value?: SupplyCheckEditDeadlineExpireRule | null): any; diff --git a/dist/esm/models/SupplyCheckEditDeadlineExpireRule.js b/dist/esm/models/SupplyCheckEditDeadlineExpireRule.js new file mode 100644 index 0000000..adfd4ad --- /dev/null +++ b/dist/esm/models/SupplyCheckEditDeadlineExpireRule.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyCheckEditDeadlineExpireRule interface. + */ +export function instanceOfSupplyCheckEditDeadlineExpireRule(value) { + return true; +} +export function SupplyCheckEditDeadlineExpireRuleFromJSON(json) { + return SupplyCheckEditDeadlineExpireRuleFromJSONTyped(json, false); +} +export function SupplyCheckEditDeadlineExpireRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +export function SupplyCheckEditDeadlineExpireRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_applicable': value['is_applicable'], + 'is_required': value['is_required'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/esm/models/SupplyCheckExpireDatePresentedRule.d.ts b/dist/esm/models/SupplyCheckExpireDatePresentedRule.d.ts new file mode 100644 index 0000000..54cfccd --- /dev/null +++ b/dist/esm/models/SupplyCheckExpireDatePresentedRule.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило указания сроков годности для товаров. + * @export + * @interface SupplyCheckExpireDatePresentedRule + */ +export interface SupplyCheckExpireDatePresentedRule { + /** + * Количество SKU с корректным сроком годности. + * @type {number} + * @memberof SupplyCheckExpireDatePresentedRule + */ + count_sku_with_expiration?: number; + /** + * Количество SKU, для которых обязателен срок годности. + * @type {number} + * @memberof SupplyCheckExpireDatePresentedRule + */ + count_sku_with_expiration_filled?: number; + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckExpireDatePresentedRule + */ + is_applicable?: boolean; + /** + * `true`, если правило обязательно для текущей поставки. + * + * @type {boolean} + * @memberof SupplyCheckExpireDatePresentedRule + */ + is_required?: boolean; + /** + * `true`, если сроки годности указаны корректно. + * + * @type {boolean} + * @memberof SupplyCheckExpireDatePresentedRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckExpireDatePresentedRule interface. + */ +export declare function instanceOfSupplyCheckExpireDatePresentedRule(value: object): value is SupplyCheckExpireDatePresentedRule; +export declare function SupplyCheckExpireDatePresentedRuleFromJSON(json: any): SupplyCheckExpireDatePresentedRule; +export declare function SupplyCheckExpireDatePresentedRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckExpireDatePresentedRule; +export declare function SupplyCheckExpireDatePresentedRuleToJSON(value?: SupplyCheckExpireDatePresentedRule | null): any; diff --git a/dist/esm/models/SupplyCheckExpireDatePresentedRule.js b/dist/esm/models/SupplyCheckExpireDatePresentedRule.js new file mode 100644 index 0000000..48e713e --- /dev/null +++ b/dist/esm/models/SupplyCheckExpireDatePresentedRule.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyCheckExpireDatePresentedRule interface. + */ +export function instanceOfSupplyCheckExpireDatePresentedRule(value) { + return true; +} +export function SupplyCheckExpireDatePresentedRuleFromJSON(json) { + return SupplyCheckExpireDatePresentedRuleFromJSONTyped(json, false); +} +export function SupplyCheckExpireDatePresentedRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_sku_with_expiration': json['count_sku_with_expiration'] == null ? undefined : json['count_sku_with_expiration'], + 'count_sku_with_expiration_filled': json['count_sku_with_expiration_filled'] == null ? undefined : json['count_sku_with_expiration_filled'], + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +export function SupplyCheckExpireDatePresentedRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_sku_with_expiration': value['count_sku_with_expiration'], + 'count_sku_with_expiration_filled': value['count_sku_with_expiration_filled'], + 'is_applicable': value['is_applicable'], + 'is_required': value['is_required'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/esm/models/SupplyCheckIsValidDistributionRule.d.ts b/dist/esm/models/SupplyCheckIsValidDistributionRule.d.ts new file mode 100644 index 0000000..1111de1 --- /dev/null +++ b/dist/esm/models/SupplyCheckIsValidDistributionRule.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило совпадения составов грузомест с составом поставки. + * @export + * @interface SupplyCheckIsValidDistributionRule + */ +export interface SupplyCheckIsValidDistributionRule { + /** + * Количество SKU, которые совпадают с поставкой. + * @type {number} + * @memberof SupplyCheckIsValidDistributionRule + */ + count_distributed_sku?: number; + /** + * Общее количество SKU. + * @type {number} + * @memberof SupplyCheckIsValidDistributionRule + */ + count_sku_total?: number; + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckIsValidDistributionRule + */ + is_applicable?: boolean; + /** + * Процент совпадения состава грузомест с составом поставки. + * @type {number} + * @memberof SupplyCheckIsValidDistributionRule + */ + percents_int?: number; + /** + * `true`, если состав грузомест совпадает с составом поставки. + * + * @type {boolean} + * @memberof SupplyCheckIsValidDistributionRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckIsValidDistributionRule interface. + */ +export declare function instanceOfSupplyCheckIsValidDistributionRule(value: object): value is SupplyCheckIsValidDistributionRule; +export declare function SupplyCheckIsValidDistributionRuleFromJSON(json: any): SupplyCheckIsValidDistributionRule; +export declare function SupplyCheckIsValidDistributionRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckIsValidDistributionRule; +export declare function SupplyCheckIsValidDistributionRuleToJSON(value?: SupplyCheckIsValidDistributionRule | null): any; diff --git a/dist/esm/models/SupplyCheckIsValidDistributionRule.js b/dist/esm/models/SupplyCheckIsValidDistributionRule.js new file mode 100644 index 0000000..926dfa8 --- /dev/null +++ b/dist/esm/models/SupplyCheckIsValidDistributionRule.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyCheckIsValidDistributionRule interface. + */ +export function instanceOfSupplyCheckIsValidDistributionRule(value) { + return true; +} +export function SupplyCheckIsValidDistributionRuleFromJSON(json) { + return SupplyCheckIsValidDistributionRuleFromJSONTyped(json, false); +} +export function SupplyCheckIsValidDistributionRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_distributed_sku': json['count_distributed_sku'] == null ? undefined : json['count_distributed_sku'], + 'count_sku_total': json['count_sku_total'] == null ? undefined : json['count_sku_total'], + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'percents_int': json['percents_int'] == null ? undefined : json['percents_int'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +export function SupplyCheckIsValidDistributionRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_distributed_sku': value['count_distributed_sku'], + 'count_sku_total': value['count_sku_total'], + 'is_applicable': value['is_applicable'], + 'percents_int': value['percents_int'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/esm/models/SupplyCheckPackageUnitWithDistributionRule.d.ts b/dist/esm/models/SupplyCheckPackageUnitWithDistributionRule.d.ts new file mode 100644 index 0000000..1499b96 --- /dev/null +++ b/dist/esm/models/SupplyCheckPackageUnitWithDistributionRule.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило заполнения состава грузомест. + * @export + * @interface SupplyCheckPackageUnitWithDistributionRule + */ +export interface SupplyCheckPackageUnitWithDistributionRule { + /** + * Общее количество грузомест. + * @type {number} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + count_all?: number; + /** + * Количество заполненных грузомест. + * @type {number} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + count_with_distribution?: number; + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + is_applicable?: boolean; + /** + * `true`, если правило обязательно для текущей поставки. + * + * @type {boolean} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + is_required?: boolean; + /** + * `true`, если указаны составы для всех грузомест. + * + * @type {boolean} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckPackageUnitWithDistributionRule interface. + */ +export declare function instanceOfSupplyCheckPackageUnitWithDistributionRule(value: object): value is SupplyCheckPackageUnitWithDistributionRule; +export declare function SupplyCheckPackageUnitWithDistributionRuleFromJSON(json: any): SupplyCheckPackageUnitWithDistributionRule; +export declare function SupplyCheckPackageUnitWithDistributionRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckPackageUnitWithDistributionRule; +export declare function SupplyCheckPackageUnitWithDistributionRuleToJSON(value?: SupplyCheckPackageUnitWithDistributionRule | null): any; diff --git a/dist/esm/models/SupplyCheckPackageUnitWithDistributionRule.js b/dist/esm/models/SupplyCheckPackageUnitWithDistributionRule.js new file mode 100644 index 0000000..eb893a0 --- /dev/null +++ b/dist/esm/models/SupplyCheckPackageUnitWithDistributionRule.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyCheckPackageUnitWithDistributionRule interface. + */ +export function instanceOfSupplyCheckPackageUnitWithDistributionRule(value) { + return true; +} +export function SupplyCheckPackageUnitWithDistributionRuleFromJSON(json) { + return SupplyCheckPackageUnitWithDistributionRuleFromJSONTyped(json, false); +} +export function SupplyCheckPackageUnitWithDistributionRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_all': json['count_all'] == null ? undefined : json['count_all'], + 'count_with_distribution': json['count_with_distribution'] == null ? undefined : json['count_with_distribution'], + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +export function SupplyCheckPackageUnitWithDistributionRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_all': value['count_all'], + 'count_with_distribution': value['count_with_distribution'], + 'is_applicable': value['is_applicable'], + 'is_required': value['is_required'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/esm/models/SupplyCheckPlacementZoneRule.d.ts b/dist/esm/models/SupplyCheckPlacementZoneRule.d.ts new file mode 100644 index 0000000..e961473 --- /dev/null +++ b/dist/esm/models/SupplyCheckPlacementZoneRule.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило распределения товаров в грузоместах по зонам размещения. + * @export + * @interface SupplyCheckPlacementZoneRule + */ +export interface SupplyCheckPlacementZoneRule { + /** + * Количество грузомест. + * @type {number} + * @memberof SupplyCheckPlacementZoneRule + */ + count_cargoes_all?: number; + /** + * Количество грузомест с распределением по зонам размещения. + * @type {number} + * @memberof SupplyCheckPlacementZoneRule + */ + count_cargoes_with_mono_placement_zone?: number; + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckPlacementZoneRule + */ + is_applicable?: boolean; + /** + * `true`, если товары во всех грузоместах распределены по зонам размещения. + * + * @type {boolean} + * @memberof SupplyCheckPlacementZoneRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckPlacementZoneRule interface. + */ +export declare function instanceOfSupplyCheckPlacementZoneRule(value: object): value is SupplyCheckPlacementZoneRule; +export declare function SupplyCheckPlacementZoneRuleFromJSON(json: any): SupplyCheckPlacementZoneRule; +export declare function SupplyCheckPlacementZoneRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckPlacementZoneRule; +export declare function SupplyCheckPlacementZoneRuleToJSON(value?: SupplyCheckPlacementZoneRule | null): any; diff --git a/dist/esm/models/SupplyCheckPlacementZoneRule.js b/dist/esm/models/SupplyCheckPlacementZoneRule.js new file mode 100644 index 0000000..46b36ae --- /dev/null +++ b/dist/esm/models/SupplyCheckPlacementZoneRule.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyCheckPlacementZoneRule interface. + */ +export function instanceOfSupplyCheckPlacementZoneRule(value) { + return true; +} +export function SupplyCheckPlacementZoneRuleFromJSON(json) { + return SupplyCheckPlacementZoneRuleFromJSONTyped(json, false); +} +export function SupplyCheckPlacementZoneRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_cargoes_all': json['count_cargoes_all'] == null ? undefined : json['count_cargoes_all'], + 'count_cargoes_with_mono_placement_zone': json['count_cargoes_with_mono_placement_zone'] == null ? undefined : json['count_cargoes_with_mono_placement_zone'], + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +export function SupplyCheckPlacementZoneRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_cargoes_all': value['count_cargoes_all'], + 'count_cargoes_with_mono_placement_zone': value['count_cargoes_with_mono_placement_zone'], + 'is_applicable': value['is_applicable'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/esm/models/SupplyContent.d.ts b/dist/esm/models/SupplyContent.d.ts new file mode 100644 index 0000000..56222ac --- /dev/null +++ b/dist/esm/models/SupplyContent.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ContentCanNotEditSupplyContentReasonEnum } from './ContentCanNotEditSupplyContentReasonEnum'; +/** + * Товарный состав поставки. + * @export + * @interface SupplyContent + */ +export interface SupplyContent { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof SupplyContent + */ + bundle_id?: string; + /** + * Причина, почему нельзя изменить товарный состав поставки: + * - `UNSPECIFIED` — не определена; + * - `INCORRECT_SUPPLY_STATE` — некорректный статус поставки; + * - `DEADLINE` — поставка просрочена; + * - `UTD_IS_UPLOADED` — УПД загружен; + * - `STORAGE_WAREHOUSE_IS_NOT_WMS` — некорректный склад хранения; + * - `CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS` — недействительный договор для обработки заявок на поставку; + * - `SUPPLY_IS_VIRTUAL` — поставка виртуальная; + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — поставка не принадлежит продавцу; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof SupplyContent + */ + can_not_set_reasons?: Array; + /** + * `true`, если можно изменить товарный состав поставки. + * + * @type {boolean} + * @memberof SupplyContent + */ + can_set?: boolean; +} +/** + * Check if a given object implements the SupplyContent interface. + */ +export declare function instanceOfSupplyContent(value: object): value is SupplyContent; +export declare function SupplyContentFromJSON(json: any): SupplyContent; +export declare function SupplyContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyContent; +export declare function SupplyContentToJSON(value?: SupplyContent | null): any; diff --git a/dist/esm/models/SupplyContent.js b/dist/esm/models/SupplyContent.js new file mode 100644 index 0000000..ac5cd50 --- /dev/null +++ b/dist/esm/models/SupplyContent.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ContentCanNotEditSupplyContentReasonEnumFromJSON, ContentCanNotEditSupplyContentReasonEnumToJSON, } from './ContentCanNotEditSupplyContentReasonEnum'; +/** + * Check if a given object implements the SupplyContent interface. + */ +export function instanceOfSupplyContent(value) { + return true; +} +export function SupplyContentFromJSON(json) { + return SupplyContentFromJSONTyped(json, false); +} +export function SupplyContentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'can_not_set_reasons': json['can_not_set_reasons'] == null ? undefined : (json['can_not_set_reasons'].map(ContentCanNotEditSupplyContentReasonEnumFromJSON)), + 'can_set': json['can_set'] == null ? undefined : json['can_set'], + }; +} +export function SupplyContentToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'can_not_set_reasons': value['can_not_set_reasons'] == null ? undefined : (value['can_not_set_reasons'].map(ContentCanNotEditSupplyContentReasonEnumToJSON)), + 'can_set': value['can_set'], + }; +} diff --git a/dist/esm/models/SupplyETTN.d.ts b/dist/esm/models/SupplyETTN.d.ts new file mode 100644 index 0000000..597bf0c --- /dev/null +++ b/dist/esm/models/SupplyETTN.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация по электронной ТТН. + * @export + * @interface SupplyETTN + */ +export interface SupplyETTN { + /** + * `true`, если электронная ТТН действительная. + * + * @type {boolean} + * @memberof SupplyETTN + */ + contains_valid?: boolean; + /** + * `true`, если для поставки нужна электронная ТТН. + * + * @type {boolean} + * @memberof SupplyETTN + */ + is_required?: boolean; + /** + * `true`, если электронная ТТН загружена. + * + * @type {boolean} + * @memberof SupplyETTN + */ + is_uploaded?: boolean; +} +/** + * Check if a given object implements the SupplyETTN interface. + */ +export declare function instanceOfSupplyETTN(value: object): value is SupplyETTN; +export declare function SupplyETTNFromJSON(json: any): SupplyETTN; +export declare function SupplyETTNFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyETTN; +export declare function SupplyETTNToJSON(value?: SupplyETTN | null): any; diff --git a/dist/esm/models/SupplyETTN.js b/dist/esm/models/SupplyETTN.js new file mode 100644 index 0000000..a592021 --- /dev/null +++ b/dist/esm/models/SupplyETTN.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyETTN interface. + */ +export function instanceOfSupplyETTN(value) { + return true; +} +export function SupplyETTNFromJSON(json) { + return SupplyETTNFromJSONTyped(json, false); +} +export function SupplyETTNFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contains_valid': json['contains_valid'] == null ? undefined : json['contains_valid'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'is_uploaded': json['is_uploaded'] == null ? undefined : json['is_uploaded'], + }; +} +export function SupplyETTNToJSON(value) { + if (value == null) { + return value; + } + return { + 'contains_valid': value['contains_valid'], + 'is_required': value['is_required'], + 'is_uploaded': value['is_uploaded'], + }; +} diff --git a/dist/esm/models/SupplyOrderCancelStatusResponseCancelOrderError.d.ts b/dist/esm/models/SupplyOrderCancelStatusResponseCancelOrderError.d.ts new file mode 100644 index 0000000..7feca30 --- /dev/null +++ b/dist/esm/models/SupplyOrderCancelStatusResponseCancelOrderError.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderCancelStatusResponseCancelOrderError: { + readonly INVALID_ORDER_STATE: "INVALID_ORDER_STATE"; + readonly ORDER_IS_VIRTUAL: "ORDER_IS_VIRTUAL"; + readonly ORDER_DOES_NOT_BELONG_TO_CONTRACTOR: "ORDER_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly ORDER_DOES_NOT_BELONG_TO_COMPANY: "ORDER_DOES_NOT_BELONG_TO_COMPANY"; + readonly OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS: "OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS"; +}; +export type SupplyOrderCancelStatusResponseCancelOrderError = typeof SupplyOrderCancelStatusResponseCancelOrderError[keyof typeof SupplyOrderCancelStatusResponseCancelOrderError]; +export declare function instanceOfSupplyOrderCancelStatusResponseCancelOrderError(value: any): boolean; +export declare function SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON(json: any): SupplyOrderCancelStatusResponseCancelOrderError; +export declare function SupplyOrderCancelStatusResponseCancelOrderErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderCancelStatusResponseCancelOrderError; +export declare function SupplyOrderCancelStatusResponseCancelOrderErrorToJSON(value?: SupplyOrderCancelStatusResponseCancelOrderError | null): any; diff --git a/dist/esm/models/SupplyOrderCancelStatusResponseCancelOrderError.js b/dist/esm/models/SupplyOrderCancelStatusResponseCancelOrderError.js new file mode 100644 index 0000000..ca98cde --- /dev/null +++ b/dist/esm/models/SupplyOrderCancelStatusResponseCancelOrderError.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const SupplyOrderCancelStatusResponseCancelOrderError = { + INVALID_ORDER_STATE: 'INVALID_ORDER_STATE', + ORDER_IS_VIRTUAL: 'ORDER_IS_VIRTUAL', + ORDER_DOES_NOT_BELONG_TO_CONTRACTOR: 'ORDER_DOES_NOT_BELONG_TO_CONTRACTOR', + ORDER_DOES_NOT_BELONG_TO_COMPANY: 'ORDER_DOES_NOT_BELONG_TO_COMPANY', + OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS: 'OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS' +}; +export function instanceOfSupplyOrderCancelStatusResponseCancelOrderError(value) { + for (const key in SupplyOrderCancelStatusResponseCancelOrderError) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderCancelStatusResponseCancelOrderError, key)) { + if (SupplyOrderCancelStatusResponseCancelOrderError[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON(json) { + return SupplyOrderCancelStatusResponseCancelOrderErrorFromJSONTyped(json, false); +} +export function SupplyOrderCancelStatusResponseCancelOrderErrorFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderCancelStatusResponseCancelOrderErrorToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderCancelStatusResponseCancelSupplyResults.d.ts b/dist/esm/models/SupplyOrderCancelStatusResponseCancelSupplyResults.d.ts new file mode 100644 index 0000000..57ba503 --- /dev/null +++ b/dist/esm/models/SupplyOrderCancelStatusResponseCancelSupplyResults.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CancelSupplyResultsCancelSupplyError } from './CancelSupplyResultsCancelSupplyError'; +/** + * + * @export + * @interface SupplyOrderCancelStatusResponseCancelSupplyResults + */ +export interface SupplyOrderCancelStatusResponseCancelSupplyResults { + /** + * Причина, по которой не удалось отменить поставки: + * - `INVALID_SUPPLY_STATE` — неверный статус поставки. + * - `SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR` — поставка не принадлежит юридическому лицу. + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — поставка не принадлежит продавцу. + * - `SUPPLY_DOES_NOT_BELONG_TO_ORDER` — поставка не принадлежит заявке на поставку. + * - `SUPPLY_BELONGS_TO_VIRTUAL_ORDER` — поставка принадлежит виртуальной заявке на поставку. + * - `OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS` — поставка в процессе отмены. + * + * @type {Array} + * @memberof SupplyOrderCancelStatusResponseCancelSupplyResults + */ + error_reasons?: Array; + /** + * `true`, если поставка отменена. + * + * @type {boolean} + * @memberof SupplyOrderCancelStatusResponseCancelSupplyResults + */ + is_supply_cancelled?: boolean; + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderCancelStatusResponseCancelSupplyResults + */ + supply_id?: number; +} +/** + * Check if a given object implements the SupplyOrderCancelStatusResponseCancelSupplyResults interface. + */ +export declare function instanceOfSupplyOrderCancelStatusResponseCancelSupplyResults(value: object): value is SupplyOrderCancelStatusResponseCancelSupplyResults; +export declare function SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON(json: any): SupplyOrderCancelStatusResponseCancelSupplyResults; +export declare function SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderCancelStatusResponseCancelSupplyResults; +export declare function SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON(value?: SupplyOrderCancelStatusResponseCancelSupplyResults | null): any; diff --git a/dist/esm/models/SupplyOrderCancelStatusResponseCancelSupplyResults.js b/dist/esm/models/SupplyOrderCancelStatusResponseCancelSupplyResults.js new file mode 100644 index 0000000..fcf4497 --- /dev/null +++ b/dist/esm/models/SupplyOrderCancelStatusResponseCancelSupplyResults.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CancelSupplyResultsCancelSupplyErrorFromJSON, CancelSupplyResultsCancelSupplyErrorToJSON, } from './CancelSupplyResultsCancelSupplyError'; +/** + * Check if a given object implements the SupplyOrderCancelStatusResponseCancelSupplyResults interface. + */ +export function instanceOfSupplyOrderCancelStatusResponseCancelSupplyResults(value) { + return true; +} +export function SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON(json) { + return SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSONTyped(json, false); +} +export function SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CancelSupplyResultsCancelSupplyErrorFromJSON)), + 'is_supply_cancelled': json['is_supply_cancelled'] == null ? undefined : json['is_supply_cancelled'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CancelSupplyResultsCancelSupplyErrorToJSON)), + 'is_supply_cancelled': value['is_supply_cancelled'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderCancelStatusResponseResult.d.ts b/dist/esm/models/SupplyOrderCancelStatusResponseResult.d.ts new file mode 100644 index 0000000..89d7467 --- /dev/null +++ b/dist/esm/models/SupplyOrderCancelStatusResponseResult.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderCancelStatusResponseCancelSupplyResults } from './SupplyOrderCancelStatusResponseCancelSupplyResults'; +/** + * Информация об отмене заявки на поставку. + * @export + * @interface SupplyOrderCancelStatusResponseResult + */ +export interface SupplyOrderCancelStatusResponseResult { + /** + * `true`, если заявка на поставку отменена. + * + * @type {boolean} + * @memberof SupplyOrderCancelStatusResponseResult + */ + is_order_cancelled?: boolean; + /** + * Список отменённых поставок. + * @type {Array} + * @memberof SupplyOrderCancelStatusResponseResult + */ + supplies?: Array; +} +/** + * Check if a given object implements the SupplyOrderCancelStatusResponseResult interface. + */ +export declare function instanceOfSupplyOrderCancelStatusResponseResult(value: object): value is SupplyOrderCancelStatusResponseResult; +export declare function SupplyOrderCancelStatusResponseResultFromJSON(json: any): SupplyOrderCancelStatusResponseResult; +export declare function SupplyOrderCancelStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderCancelStatusResponseResult; +export declare function SupplyOrderCancelStatusResponseResultToJSON(value?: SupplyOrderCancelStatusResponseResult | null): any; diff --git a/dist/esm/models/SupplyOrderCancelStatusResponseResult.js b/dist/esm/models/SupplyOrderCancelStatusResponseResult.js new file mode 100644 index 0000000..392a867 --- /dev/null +++ b/dist/esm/models/SupplyOrderCancelStatusResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON, SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON, } from './SupplyOrderCancelStatusResponseCancelSupplyResults'; +/** + * Check if a given object implements the SupplyOrderCancelStatusResponseResult interface. + */ +export function instanceOfSupplyOrderCancelStatusResponseResult(value) { + return true; +} +export function SupplyOrderCancelStatusResponseResultFromJSON(json) { + return SupplyOrderCancelStatusResponseResultFromJSONTyped(json, false); +} +export function SupplyOrderCancelStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_order_cancelled': json['is_order_cancelled'] == null ? undefined : json['is_order_cancelled'], + 'supplies': json['supplies'] == null ? undefined : (json['supplies'].map(SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON)), + }; +} +export function SupplyOrderCancelStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_order_cancelled': value['is_order_cancelled'], + 'supplies': value['supplies'] == null ? undefined : (value['supplies'].map(SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON)), + }; +} diff --git a/dist/esm/models/SupplyOrderContentUpdateStatusResponseStatusEnum.d.ts b/dist/esm/models/SupplyOrderContentUpdateStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..c9aa4f3 --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус редактирования товарного состава поставки. + * + * Возможные статусы: + * - `SUCCESS` — товарный состав изменён, + * - `IN_PROGRESS` — товарный состав в процессе изменения, + * - `ERROR` — возникла ошибка при изменении товарного состава. + * + * @export + */ +export declare const SupplyOrderContentUpdateStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly ERROR: "ERROR"; +}; +export type SupplyOrderContentUpdateStatusResponseStatusEnum = typeof SupplyOrderContentUpdateStatusResponseStatusEnum[keyof typeof SupplyOrderContentUpdateStatusResponseStatusEnum]; +export declare function instanceOfSupplyOrderContentUpdateStatusResponseStatusEnum(value: any): boolean; +export declare function SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON(json: any): SupplyOrderContentUpdateStatusResponseStatusEnum; +export declare function SupplyOrderContentUpdateStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateStatusResponseStatusEnum; +export declare function SupplyOrderContentUpdateStatusResponseStatusEnumToJSON(value?: SupplyOrderContentUpdateStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/SupplyOrderContentUpdateStatusResponseStatusEnum.js b/dist/esm/models/SupplyOrderContentUpdateStatusResponseStatusEnum.js new file mode 100644 index 0000000..d2f91a2 --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateStatusResponseStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус редактирования товарного состава поставки. + * + * Возможные статусы: + * - `SUCCESS` — товарный состав изменён, + * - `IN_PROGRESS` — товарный состав в процессе изменения, + * - `ERROR` — возникла ошибка при изменении товарного состава. + * + * @export + */ +export const SupplyOrderContentUpdateStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + ERROR: 'ERROR' +}; +export function instanceOfSupplyOrderContentUpdateStatusResponseStatusEnum(value) { + for (const key in SupplyOrderContentUpdateStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderContentUpdateStatusResponseStatusEnum, key)) { + if (SupplyOrderContentUpdateStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON(json) { + return SupplyOrderContentUpdateStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function SupplyOrderContentUpdateStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderContentUpdateStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderContentUpdateValidationResponseApprovedItems.d.ts b/dist/esm/models/SupplyOrderContentUpdateValidationResponseApprovedItems.d.ts new file mode 100644 index 0000000..37550d0 --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateValidationResponseApprovedItems.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderContentUpdateValidationResponseApprovedItems + */ +export interface SupplyOrderContentUpdateValidationResponseApprovedItems { + /** + * Штрихкод товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + barcode?: string; + /** + * Ссылка на товар. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + item_link?: string; + /** + * Название товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + offer_id?: string; + /** + * Исходное количество товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + origin_quantity?: number; + /** + * Исходное количество товара в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + origin_total_volume_in_litres?: number; + /** + * Количество товаров в одной упаковке. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + quant?: number; + /** + * Количество товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + sku?: number; + /** + * Ограничение на количество товаров в одной упаковке. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + sku_quantity_limit?: number; + /** + * Объём всех товаров в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + total_volume_in_litres?: number; +} +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseApprovedItems interface. + */ +export declare function instanceOfSupplyOrderContentUpdateValidationResponseApprovedItems(value: object): value is SupplyOrderContentUpdateValidationResponseApprovedItems; +export declare function SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON(json: any): SupplyOrderContentUpdateValidationResponseApprovedItems; +export declare function SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateValidationResponseApprovedItems; +export declare function SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON(value?: SupplyOrderContentUpdateValidationResponseApprovedItems | null): any; diff --git a/dist/esm/models/SupplyOrderContentUpdateValidationResponseApprovedItems.js b/dist/esm/models/SupplyOrderContentUpdateValidationResponseApprovedItems.js new file mode 100644 index 0000000..1d9aa3f --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateValidationResponseApprovedItems.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseApprovedItems interface. + */ +export function instanceOfSupplyOrderContentUpdateValidationResponseApprovedItems(value) { + return true; +} +export function SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON(json) { + return SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSONTyped(json, false); +} +export function SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'item_link': json['item_link'] == null ? undefined : json['item_link'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'origin_quantity': json['origin_quantity'] == null ? undefined : json['origin_quantity'], + 'origin_total_volume_in_litres': json['origin_total_volume_in_litres'] == null ? undefined : json['origin_total_volume_in_litres'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'sku_quantity_limit': json['sku_quantity_limit'] == null ? undefined : json['sku_quantity_limit'], + 'total_volume_in_litres': json['total_volume_in_litres'] == null ? undefined : json['total_volume_in_litres'], + }; +} +export function SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'item_link': value['item_link'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'origin_quantity': value['origin_quantity'], + 'origin_total_volume_in_litres': value['origin_total_volume_in_litres'], + 'quant': value['quant'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'sku_quantity_limit': value['sku_quantity_limit'], + 'total_volume_in_litres': value['total_volume_in_litres'], + }; +} diff --git a/dist/esm/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.d.ts b/dist/esm/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.d.ts new file mode 100644 index 0000000..63555af --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.d.ts @@ -0,0 +1,36 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderContentUpdateValidationResponseEditingErrorEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNKNOWN: "UNKNOWN"; + readonly INCORRECT_SUPPLY_STATE: "INCORRECT_SUPPLY_STATE"; + readonly DEADLINE: "DEADLINE"; + readonly UTD_IS_UPLOADED: "UTD_IS_UPLOADED"; + readonly STORAGE_WAREHOUSE_IS_NOT_WMS: "STORAGE_WAREHOUSE_IS_NOT_WMS"; + readonly CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: "CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT: "ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT"; + readonly ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN: "ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN"; + readonly ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN: "ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN"; + readonly ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE: "ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE"; + readonly ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY: "ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY"; +}; +export type SupplyOrderContentUpdateValidationResponseEditingErrorEnum = typeof SupplyOrderContentUpdateValidationResponseEditingErrorEnum[keyof typeof SupplyOrderContentUpdateValidationResponseEditingErrorEnum]; +export declare function instanceOfSupplyOrderContentUpdateValidationResponseEditingErrorEnum(value: any): boolean; +export declare function SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON(json: any): SupplyOrderContentUpdateValidationResponseEditingErrorEnum; +export declare function SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateValidationResponseEditingErrorEnum; +export declare function SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON(value?: SupplyOrderContentUpdateValidationResponseEditingErrorEnum | null): any; diff --git a/dist/esm/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.js b/dist/esm/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.js new file mode 100644 index 0000000..733771a --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const SupplyOrderContentUpdateValidationResponseEditingErrorEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNKNOWN: 'UNKNOWN', + INCORRECT_SUPPLY_STATE: 'INCORRECT_SUPPLY_STATE', + DEADLINE: 'DEADLINE', + UTD_IS_UPLOADED: 'UTD_IS_UPLOADED', + STORAGE_WAREHOUSE_IS_NOT_WMS: 'STORAGE_WAREHOUSE_IS_NOT_WMS', + CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: 'CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT: 'ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT', + ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN: 'ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN', + ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN: 'ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN', + ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE: 'ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE', + ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY: 'ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY' +}; +export function instanceOfSupplyOrderContentUpdateValidationResponseEditingErrorEnum(value) { + for (const key in SupplyOrderContentUpdateValidationResponseEditingErrorEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderContentUpdateValidationResponseEditingErrorEnum, key)) { + if (SupplyOrderContentUpdateValidationResponseEditingErrorEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON(json) { + return SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSONTyped(json, false); +} +export function SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderContentUpdateValidationResponseRejectedItems.d.ts b/dist/esm/models/SupplyOrderContentUpdateValidationResponseRejectedItems.d.ts new file mode 100644 index 0000000..d81318c --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateValidationResponseRejectedItems.d.ts @@ -0,0 +1,113 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RejectedItemsRestrictions } from './RejectedItemsRestrictions'; +import type { RejectedItemsRejectionReasonEnum } from './RejectedItemsRejectionReasonEnum'; +/** + * + * @export + * @interface SupplyOrderContentUpdateValidationResponseRejectedItems + */ +export interface SupplyOrderContentUpdateValidationResponseRejectedItems { + /** + * Штрихкод товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + barcode?: string; + /** + * Название товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + offer_id?: string; + /** + * Исходное количество товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + origin_quantity?: number; + /** + * Исходное количество товара в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + origin_total_volume_in_litres?: number; + /** + * Количество товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + quantity?: number; + /** + * Причина отклонения товара: + * - `UNSPECIFIED` — не определена; + * - `UNKNOWN` — неизвестный тип; + * - `OUT_OF_ASSORTMENT` — товара нет в ассортименте поставки; + * - `INVALID` — некорректные данные по товару; + * - `INCOMPATIBLE_WAREHOUSE` — товар нельзя поставить на выбранный склад; + * - `EMPTY_BARCODE` — штрихкод не указан; + * - `EMPTY_PS_ATTRIBUTE` — не заполнен обязательный атрибут; + * - `MULTIPLICITY` — количество товара не кратно упаковке; + * - `NO_PRICE` — цена не указана; + * - `INVALID_ITEM_COUNT_MAX` — превышено максимальное количество; + * - `INVALID_ITEM_COUNT_ZERO` — количество должно быть больше 0; + * - `INCOMPATIBLE_SHIPMENT_TYPE` — товар недоступен для выбранного типа отгрузки; + * - `ECONOM_QUANT_IS_NOT_FROZEN` — квант для тарифа «Эконом» не заморожен; + * - `QUANTITY_NOT_MULTIPLE_BY_QUANT` — количество товара не кратно кванту; + * - `INVALID_QUANT_VALUE` — некорректное значение кванта; + * - `JEWELRY_FORBIDDEN_FOR_ECONOM` — ювелирные изделия недоступны для тарифа «Эконом»; + * - `NON_UNIQUE_ECONOM_ITEM_IN_REQUEST` — в запросе есть дубликаты SKU для тарифа «Эконом»; + * - `NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE` — в грузоместе есть дубликаты SKU для тарифа «Эконом»; + * - `SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS` — товар не принимается по ограничениям приёмки; + * - `SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED` — товар с тегом электронной ТТН недоступен; + * - `SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED` — товар без тега электронной ТТН; + * - `SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED` — товары с тегом прослеживаемости недоступны; + * - `EMPTY_CLUSTER` — не указан кластер; + * - `SKU_IS_RESTRICTED` — товар запрещён к поставке; + * - `SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED` — товары с тегом УПД недоступны. + * + * @type {Array} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + rejection_reason?: Array; + /** + * + * @type {RejectedItemsRestrictions} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + restrictions?: RejectedItemsRestrictions; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + sku?: number; + /** + * Объём всех товаров в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + total_volume_in_litres?: number; +} +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseRejectedItems interface. + */ +export declare function instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems(value: object): value is SupplyOrderContentUpdateValidationResponseRejectedItems; +export declare function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON(json: any): SupplyOrderContentUpdateValidationResponseRejectedItems; +export declare function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateValidationResponseRejectedItems; +export declare function SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON(value?: SupplyOrderContentUpdateValidationResponseRejectedItems | null): any; diff --git a/dist/esm/models/SupplyOrderContentUpdateValidationResponseRejectedItems.js b/dist/esm/models/SupplyOrderContentUpdateValidationResponseRejectedItems.js new file mode 100644 index 0000000..db76d42 --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateValidationResponseRejectedItems.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RejectedItemsRestrictionsFromJSON, RejectedItemsRestrictionsToJSON, } from './RejectedItemsRestrictions'; +import { RejectedItemsRejectionReasonEnumFromJSON, RejectedItemsRejectionReasonEnumToJSON, } from './RejectedItemsRejectionReasonEnum'; +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseRejectedItems interface. + */ +export function instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems(value) { + return true; +} +export function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON(json) { + return SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped(json, false); +} +export function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'origin_quantity': json['origin_quantity'] == null ? undefined : json['origin_quantity'], + 'origin_total_volume_in_litres': json['origin_total_volume_in_litres'] == null ? undefined : json['origin_total_volume_in_litres'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rejection_reason': json['rejection_reason'] == null ? undefined : (json['rejection_reason'].map(RejectedItemsRejectionReasonEnumFromJSON)), + 'restrictions': json['restrictions'] == null ? undefined : RejectedItemsRestrictionsFromJSON(json['restrictions']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'total_volume_in_litres': json['total_volume_in_litres'] == null ? undefined : json['total_volume_in_litres'], + }; +} +export function SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'origin_quantity': value['origin_quantity'], + 'origin_total_volume_in_litres': value['origin_total_volume_in_litres'], + 'quantity': value['quantity'], + 'rejection_reason': value['rejection_reason'] == null ? undefined : (value['rejection_reason'].map(RejectedItemsRejectionReasonEnumToJSON)), + 'restrictions': RejectedItemsRestrictionsToJSON(value['restrictions']), + 'sku': value['sku'], + 'total_volume_in_litres': value['total_volume_in_litres'], + }; +} diff --git a/dist/esm/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.d.ts b/dist/esm/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.d.ts new file mode 100644 index 0000000..6de25a0 --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderContentUpdateValidationResponseApprovedItems } from './SupplyOrderContentUpdateValidationResponseApprovedItems'; +import type { SupplyOrderContentUpdateValidationResponseRejectedItems } from './SupplyOrderContentUpdateValidationResponseRejectedItems'; +/** + * Информация о товарном составе. + * @export + * @interface SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ +export interface SupplyOrderContentUpdateValidationResponseValidatedAssortment { + /** + * Принятые товары. + * @type {Array} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + approved_items?: Array; + /** + * Не принятые товары. + * @type {Array} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + rejected_items?: Array; + /** + * Количество принятого товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_approved_item_count?: number; + /** + * Количество единиц принятого товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_approved_quantity?: number; + /** + * Количество принятого товара в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_approved_volume_in_litres?: number; + /** + * Количество не принятого товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_rejected_item_count?: number; + /** + * Количество товара с ограничениями. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_restricted_item_count?: number; +} +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseValidatedAssortment interface. + */ +export declare function instanceOfSupplyOrderContentUpdateValidationResponseValidatedAssortment(value: object): value is SupplyOrderContentUpdateValidationResponseValidatedAssortment; +export declare function SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON(json: any): SupplyOrderContentUpdateValidationResponseValidatedAssortment; +export declare function SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateValidationResponseValidatedAssortment; +export declare function SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON(value?: SupplyOrderContentUpdateValidationResponseValidatedAssortment | null): any; diff --git a/dist/esm/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.js b/dist/esm/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.js new file mode 100644 index 0000000..774e6cb --- /dev/null +++ b/dist/esm/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON, SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON, } from './SupplyOrderContentUpdateValidationResponseApprovedItems'; +import { SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON, SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON, } from './SupplyOrderContentUpdateValidationResponseRejectedItems'; +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseValidatedAssortment interface. + */ +export function instanceOfSupplyOrderContentUpdateValidationResponseValidatedAssortment(value) { + return true; +} +export function SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON(json) { + return SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSONTyped(json, false); +} +export function SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_items': json['approved_items'] == null ? undefined : (json['approved_items'].map(SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON)), + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON)), + 'total_approved_item_count': json['total_approved_item_count'] == null ? undefined : json['total_approved_item_count'], + 'total_approved_quantity': json['total_approved_quantity'] == null ? undefined : json['total_approved_quantity'], + 'total_approved_volume_in_litres': json['total_approved_volume_in_litres'] == null ? undefined : json['total_approved_volume_in_litres'], + 'total_rejected_item_count': json['total_rejected_item_count'] == null ? undefined : json['total_rejected_item_count'], + 'total_restricted_item_count': json['total_restricted_item_count'] == null ? undefined : json['total_restricted_item_count'], + }; +} +export function SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_items': value['approved_items'] == null ? undefined : (value['approved_items'].map(SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON)), + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON)), + 'total_approved_item_count': value['total_approved_item_count'], + 'total_approved_quantity': value['total_approved_quantity'], + 'total_approved_volume_in_litres': value['total_approved_volume_in_litres'], + 'total_rejected_item_count': value['total_rejected_item_count'], + 'total_restricted_item_count': value['total_restricted_item_count'], + }; +} diff --git a/dist/esm/models/SupplyOrderDetailsResponseOrderStateEnum.d.ts b/dist/esm/models/SupplyOrderDetailsResponseOrderStateEnum.d.ts new file mode 100644 index 0000000..bb56e7f --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseOrderStateEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на поставку: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приемке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export declare const SupplyOrderDetailsResponseOrderStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type SupplyOrderDetailsResponseOrderStateEnum = typeof SupplyOrderDetailsResponseOrderStateEnum[keyof typeof SupplyOrderDetailsResponseOrderStateEnum]; +export declare function instanceOfSupplyOrderDetailsResponseOrderStateEnum(value: any): boolean; +export declare function SupplyOrderDetailsResponseOrderStateEnumFromJSON(json: any): SupplyOrderDetailsResponseOrderStateEnum; +export declare function SupplyOrderDetailsResponseOrderStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseOrderStateEnum; +export declare function SupplyOrderDetailsResponseOrderStateEnumToJSON(value?: SupplyOrderDetailsResponseOrderStateEnum | null): any; diff --git a/dist/esm/models/SupplyOrderDetailsResponseOrderStateEnum.js b/dist/esm/models/SupplyOrderDetailsResponseOrderStateEnum.js new file mode 100644 index 0000000..73b7a4e --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseOrderStateEnum.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на поставку: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приемке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export const SupplyOrderDetailsResponseOrderStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +export function instanceOfSupplyOrderDetailsResponseOrderStateEnum(value) { + for (const key in SupplyOrderDetailsResponseOrderStateEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderDetailsResponseOrderStateEnum, key)) { + if (SupplyOrderDetailsResponseOrderStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderDetailsResponseOrderStateEnumFromJSON(json) { + return SupplyOrderDetailsResponseOrderStateEnumFromJSONTyped(json, false); +} +export function SupplyOrderDetailsResponseOrderStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderDetailsResponseOrderStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderDetailsResponseOrderTags.d.ts b/dist/esm/models/SupplyOrderDetailsResponseOrderTags.d.ts new file mode 100644 index 0000000..c5f58bb --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseOrderTags.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метки заявки на поставку. + * @export + * @interface SupplyOrderDetailsResponseOrderTags + */ +export interface SupplyOrderDetailsResponseOrderTags { + /** + * `true`, если в заявке на поставку есть товары «Суперэконом». + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + is_econom?: boolean; + /** + * `true`, если продавец подключён к Super-поставкам. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + is_super_fbo?: boolean; + /** + * `true`, если заявка на поставку виртуальная. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + is_virtual?: boolean; + /** + * Идентификатор исходной поставки. + * @type {number} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + original_supply_id?: number; + /** + * `true`, если в заявке на поставку есть Super-товары. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + product_super_fbo?: boolean; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseOrderTags interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseOrderTags(value: object): value is SupplyOrderDetailsResponseOrderTags; +export declare function SupplyOrderDetailsResponseOrderTagsFromJSON(json: any): SupplyOrderDetailsResponseOrderTags; +export declare function SupplyOrderDetailsResponseOrderTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseOrderTags; +export declare function SupplyOrderDetailsResponseOrderTagsToJSON(value?: SupplyOrderDetailsResponseOrderTags | null): any; diff --git a/dist/esm/models/SupplyOrderDetailsResponseOrderTags.js b/dist/esm/models/SupplyOrderDetailsResponseOrderTags.js new file mode 100644 index 0000000..30ded2a --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseOrderTags.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderDetailsResponseOrderTags interface. + */ +export function instanceOfSupplyOrderDetailsResponseOrderTags(value) { + return true; +} +export function SupplyOrderDetailsResponseOrderTagsFromJSON(json) { + return SupplyOrderDetailsResponseOrderTagsFromJSONTyped(json, false); +} +export function SupplyOrderDetailsResponseOrderTagsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_econom': json['is_econom'] == null ? undefined : json['is_econom'], + 'is_super_fbo': json['is_super_fbo'] == null ? undefined : json['is_super_fbo'], + 'is_virtual': json['is_virtual'] == null ? undefined : json['is_virtual'], + 'original_supply_id': json['original_supply_id'] == null ? undefined : json['original_supply_id'], + 'product_super_fbo': json['product_super_fbo'] == null ? undefined : json['product_super_fbo'], + }; +} +export function SupplyOrderDetailsResponseOrderTagsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_econom': value['is_econom'], + 'is_super_fbo': value['is_super_fbo'], + 'is_virtual': value['is_virtual'], + 'original_supply_id': value['original_supply_id'], + 'product_super_fbo': value['product_super_fbo'], + }; +} diff --git a/dist/esm/models/SupplyOrderDetailsResponseSupply.d.ts b/dist/esm/models/SupplyOrderDetailsResponseSupply.d.ts new file mode 100644 index 0000000..b97f3b5 --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseSupply.d.ts @@ -0,0 +1,93 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyETTN } from './SupplyETTN'; +import type { SupplyContent } from './SupplyContent'; +import type { SupplyOverdueReasonEnum } from './SupplyOverdueReasonEnum'; +import type { SupplyStateEnum } from './SupplyStateEnum'; +import type { SupplyCancellationAllowability } from './SupplyCancellationAllowability'; +import type { SupplyTags } from './SupplyTags'; +import type { SupplyStorageWarehouse } from './SupplyStorageWarehouse'; +/** + * + * @export + * @interface SupplyOrderDetailsResponseSupply + */ +export interface SupplyOrderDetailsResponseSupply { + /** + * + * @type {SupplyCancellationAllowability} + * @memberof SupplyOrderDetailsResponseSupply + */ + cancellation_allowability?: SupplyCancellationAllowability; + /** + * + * @type {SupplyContent} + * @memberof SupplyOrderDetailsResponseSupply + */ + content?: SupplyContent; + /** + * + * @type {SupplyETTN} + * @memberof SupplyOrderDetailsResponseSupply + */ + ettn_info?: SupplyETTN; + /** + * `true`, если поставка кросс-докинг. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseSupply + */ + is_crossdock?: boolean; + /** + * + * @type {SupplyOverdueReasonEnum} + * @memberof SupplyOrderDetailsResponseSupply + */ + overdue_reason?: SupplyOverdueReasonEnum; + /** + * + * @type {SupplyStorageWarehouse} + * @memberof SupplyOrderDetailsResponseSupply + */ + storage_warehouse?: SupplyStorageWarehouse; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof SupplyOrderDetailsResponseSupply + */ + macrolocal_cluster_id?: number; + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderDetailsResponseSupply + */ + supply_id?: number; + /** + * + * @type {SupplyStateEnum} + * @memberof SupplyOrderDetailsResponseSupply + */ + supply_state?: SupplyStateEnum; + /** + * + * @type {SupplyTags} + * @memberof SupplyOrderDetailsResponseSupply + */ + supply_tags?: SupplyTags; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseSupply interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseSupply(value: object): value is SupplyOrderDetailsResponseSupply; +export declare function SupplyOrderDetailsResponseSupplyFromJSON(json: any): SupplyOrderDetailsResponseSupply; +export declare function SupplyOrderDetailsResponseSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseSupply; +export declare function SupplyOrderDetailsResponseSupplyToJSON(value?: SupplyOrderDetailsResponseSupply | null): any; diff --git a/dist/esm/models/SupplyOrderDetailsResponseSupply.js b/dist/esm/models/SupplyOrderDetailsResponseSupply.js new file mode 100644 index 0000000..9a270f0 --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseSupply.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyETTNFromJSON, SupplyETTNToJSON, } from './SupplyETTN'; +import { SupplyContentFromJSON, SupplyContentToJSON, } from './SupplyContent'; +import { SupplyOverdueReasonEnumFromJSON, SupplyOverdueReasonEnumToJSON, } from './SupplyOverdueReasonEnum'; +import { SupplyStateEnumFromJSON, SupplyStateEnumToJSON, } from './SupplyStateEnum'; +import { SupplyCancellationAllowabilityFromJSON, SupplyCancellationAllowabilityToJSON, } from './SupplyCancellationAllowability'; +import { SupplyTagsFromJSON, SupplyTagsToJSON, } from './SupplyTags'; +import { SupplyStorageWarehouseFromJSON, SupplyStorageWarehouseToJSON, } from './SupplyStorageWarehouse'; +/** + * Check if a given object implements the SupplyOrderDetailsResponseSupply interface. + */ +export function instanceOfSupplyOrderDetailsResponseSupply(value) { + return true; +} +export function SupplyOrderDetailsResponseSupplyFromJSON(json) { + return SupplyOrderDetailsResponseSupplyFromJSONTyped(json, false); +} +export function SupplyOrderDetailsResponseSupplyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_allowability': json['cancellation_allowability'] == null ? undefined : SupplyCancellationAllowabilityFromJSON(json['cancellation_allowability']), + 'content': json['content'] == null ? undefined : SupplyContentFromJSON(json['content']), + 'ettn_info': json['ettn_info'] == null ? undefined : SupplyETTNFromJSON(json['ettn_info']), + 'is_crossdock': json['is_crossdock'] == null ? undefined : json['is_crossdock'], + 'overdue_reason': json['overdue_reason'] == null ? undefined : SupplyOverdueReasonEnumFromJSON(json['overdue_reason']), + 'storage_warehouse': json['storage_warehouse'] == null ? undefined : SupplyStorageWarehouseFromJSON(json['storage_warehouse']), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'supply_state': json['supply_state'] == null ? undefined : SupplyStateEnumFromJSON(json['supply_state']), + 'supply_tags': json['supply_tags'] == null ? undefined : SupplyTagsFromJSON(json['supply_tags']), + }; +} +export function SupplyOrderDetailsResponseSupplyToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_allowability': SupplyCancellationAllowabilityToJSON(value['cancellation_allowability']), + 'content': SupplyContentToJSON(value['content']), + 'ettn_info': SupplyETTNToJSON(value['ettn_info']), + 'is_crossdock': value['is_crossdock'], + 'overdue_reason': SupplyOverdueReasonEnumToJSON(value['overdue_reason']), + 'storage_warehouse': SupplyStorageWarehouseToJSON(value['storage_warehouse']), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'supply_id': value['supply_id'], + 'supply_state': SupplyStateEnumToJSON(value['supply_state']), + 'supply_tags': SupplyTagsToJSON(value['supply_tags']), + }; +} diff --git a/dist/esm/models/SupplyOrderDetailsResponseTimeslotValue.d.ts b/dist/esm/models/SupplyOrderDetailsResponseTimeslotValue.d.ts new file mode 100644 index 0000000..a87f8ae --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseTimeslotValue.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValueTimezoneInfo } from './ValueTimezoneInfo'; +import type { TimeslotValueTimeslot } from './TimeslotValueTimeslot'; +/** + * Информация об интервале доставки. + * @export + * @interface SupplyOrderDetailsResponseTimeslotValue + */ +export interface SupplyOrderDetailsResponseTimeslotValue { + /** + * + * @type {TimeslotValueTimeslot} + * @memberof SupplyOrderDetailsResponseTimeslotValue + */ + timeslot?: TimeslotValueTimeslot; + /** + * + * @type {ValueTimezoneInfo} + * @memberof SupplyOrderDetailsResponseTimeslotValue + */ + timezone_info?: ValueTimezoneInfo; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseTimeslotValue interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseTimeslotValue(value: object): value is SupplyOrderDetailsResponseTimeslotValue; +export declare function SupplyOrderDetailsResponseTimeslotValueFromJSON(json: any): SupplyOrderDetailsResponseTimeslotValue; +export declare function SupplyOrderDetailsResponseTimeslotValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseTimeslotValue; +export declare function SupplyOrderDetailsResponseTimeslotValueToJSON(value?: SupplyOrderDetailsResponseTimeslotValue | null): any; diff --git a/dist/esm/models/SupplyOrderDetailsResponseTimeslotValue.js b/dist/esm/models/SupplyOrderDetailsResponseTimeslotValue.js new file mode 100644 index 0000000..9bba16a --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseTimeslotValue.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ValueTimezoneInfoFromJSON, ValueTimezoneInfoToJSON, } from './ValueTimezoneInfo'; +import { TimeslotValueTimeslotFromJSON, TimeslotValueTimeslotToJSON, } from './TimeslotValueTimeslot'; +/** + * Check if a given object implements the SupplyOrderDetailsResponseTimeslotValue interface. + */ +export function instanceOfSupplyOrderDetailsResponseTimeslotValue(value) { + return true; +} +export function SupplyOrderDetailsResponseTimeslotValueFromJSON(json) { + return SupplyOrderDetailsResponseTimeslotValueFromJSONTyped(json, false); +} +export function SupplyOrderDetailsResponseTimeslotValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot': json['timeslot'] == null ? undefined : TimeslotValueTimeslotFromJSON(json['timeslot']), + 'timezone_info': json['timezone_info'] == null ? undefined : ValueTimezoneInfoFromJSON(json['timezone_info']), + }; +} +export function SupplyOrderDetailsResponseTimeslotValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot': TimeslotValueTimeslotToJSON(value['timeslot']), + 'timezone_info': ValueTimezoneInfoToJSON(value['timezone_info']), + }; +} diff --git a/dist/esm/models/SupplyOrderDetailsResponseVehicle.d.ts b/dist/esm/models/SupplyOrderDetailsResponseVehicle.d.ts new file mode 100644 index 0000000..8da2692 --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseVehicle.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { VehicleCanNotSetVehicleReasonEnum } from './VehicleCanNotSetVehicleReasonEnum'; +import type { SupplyOrderDetailsResponseVehicleValue } from './SupplyOrderDetailsResponseVehicleValue'; +/** + * Информация о водителе и машине. + * @export + * @interface SupplyOrderDetailsResponseVehicle + */ +export interface SupplyOrderDetailsResponseVehicle { + /** + * Причина, почему нельзя указать или изменить информацию о водителе или машине: + * - `UNSPECIFIED` — не определена; + * - `INVALID_ORDER_STATE` — нельзя установить информацию о машине в текущем статусе заявки; + * - `VEHICLE_NOT_REQUIRED` — не обязательно указывать машину; + * - `ORDER_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof SupplyOrderDetailsResponseVehicle + */ + can_not_set_reasons?: Array; + /** + * `true`, если можно изменить информацию о водителе или машине. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseVehicle + */ + can_set?: boolean; + /** + * + * @type {SupplyOrderDetailsResponseVehicleValue} + * @memberof SupplyOrderDetailsResponseVehicle + */ + value?: SupplyOrderDetailsResponseVehicleValue; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseVehicle interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseVehicle(value: object): value is SupplyOrderDetailsResponseVehicle; +export declare function SupplyOrderDetailsResponseVehicleFromJSON(json: any): SupplyOrderDetailsResponseVehicle; +export declare function SupplyOrderDetailsResponseVehicleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseVehicle; +export declare function SupplyOrderDetailsResponseVehicleToJSON(value?: SupplyOrderDetailsResponseVehicle | null): any; diff --git a/dist/esm/models/SupplyOrderDetailsResponseVehicle.js b/dist/esm/models/SupplyOrderDetailsResponseVehicle.js new file mode 100644 index 0000000..54c2698 --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseVehicle.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { VehicleCanNotSetVehicleReasonEnumFromJSON, VehicleCanNotSetVehicleReasonEnumToJSON, } from './VehicleCanNotSetVehicleReasonEnum'; +import { SupplyOrderDetailsResponseVehicleValueFromJSON, SupplyOrderDetailsResponseVehicleValueToJSON, } from './SupplyOrderDetailsResponseVehicleValue'; +/** + * Check if a given object implements the SupplyOrderDetailsResponseVehicle interface. + */ +export function instanceOfSupplyOrderDetailsResponseVehicle(value) { + return true; +} +export function SupplyOrderDetailsResponseVehicleFromJSON(json) { + return SupplyOrderDetailsResponseVehicleFromJSONTyped(json, false); +} +export function SupplyOrderDetailsResponseVehicleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_not_set_reasons': json['can_not_set_reasons'] == null ? undefined : (json['can_not_set_reasons'].map(VehicleCanNotSetVehicleReasonEnumFromJSON)), + 'can_set': json['can_set'] == null ? undefined : json['can_set'], + 'value': json['value'] == null ? undefined : SupplyOrderDetailsResponseVehicleValueFromJSON(json['value']), + }; +} +export function SupplyOrderDetailsResponseVehicleToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_not_set_reasons': value['can_not_set_reasons'] == null ? undefined : (value['can_not_set_reasons'].map(VehicleCanNotSetVehicleReasonEnumToJSON)), + 'can_set': value['can_set'], + 'value': SupplyOrderDetailsResponseVehicleValueToJSON(value['value']), + }; +} diff --git a/dist/esm/models/SupplyOrderDetailsResponseVehicleValue.d.ts b/dist/esm/models/SupplyOrderDetailsResponseVehicleValue.d.ts new file mode 100644 index 0000000..bb1b954 --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseVehicleValue.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о водителе и машине. Только для pick-up отгрузок. + * @export + * @interface SupplyOrderDetailsResponseVehicleValue + */ +export interface SupplyOrderDetailsResponseVehicleValue { + /** + * `true`, если информация о водителе удалена. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + driver_is_deleted?: boolean; + /** + * Имя водителя. + * @type {string} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + driver_name?: string; + /** + * Телефон водителя. + * @type {string} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + driver_phone?: string; + /** + * `true`, если информация о машине удалена. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + vehicle_is_deleted?: boolean; + /** + * Модель машины. + * @type {string} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + vehicle_model?: string; + /** + * Номер машины. + * @type {string} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + vehicle_number?: string; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseVehicleValue interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseVehicleValue(value: object): value is SupplyOrderDetailsResponseVehicleValue; +export declare function SupplyOrderDetailsResponseVehicleValueFromJSON(json: any): SupplyOrderDetailsResponseVehicleValue; +export declare function SupplyOrderDetailsResponseVehicleValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseVehicleValue; +export declare function SupplyOrderDetailsResponseVehicleValueToJSON(value?: SupplyOrderDetailsResponseVehicleValue | null): any; diff --git a/dist/esm/models/SupplyOrderDetailsResponseVehicleValue.js b/dist/esm/models/SupplyOrderDetailsResponseVehicleValue.js new file mode 100644 index 0000000..20d7fc7 --- /dev/null +++ b/dist/esm/models/SupplyOrderDetailsResponseVehicleValue.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderDetailsResponseVehicleValue interface. + */ +export function instanceOfSupplyOrderDetailsResponseVehicleValue(value) { + return true; +} +export function SupplyOrderDetailsResponseVehicleValueFromJSON(json) { + return SupplyOrderDetailsResponseVehicleValueFromJSONTyped(json, false); +} +export function SupplyOrderDetailsResponseVehicleValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_is_deleted': json['driver_is_deleted'] == null ? undefined : json['driver_is_deleted'], + 'driver_name': json['driver_name'] == null ? undefined : json['driver_name'], + 'driver_phone': json['driver_phone'] == null ? undefined : json['driver_phone'], + 'vehicle_is_deleted': json['vehicle_is_deleted'] == null ? undefined : json['vehicle_is_deleted'], + 'vehicle_model': json['vehicle_model'] == null ? undefined : json['vehicle_model'], + 'vehicle_number': json['vehicle_number'] == null ? undefined : json['vehicle_number'], + }; +} +export function SupplyOrderDetailsResponseVehicleValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_is_deleted': value['driver_is_deleted'], + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'vehicle_is_deleted': value['vehicle_is_deleted'], + 'vehicle_model': value['vehicle_model'], + 'vehicle_number': value['vehicle_number'], + }; +} diff --git a/dist/esm/models/SupplyOrderGetResponseOrder.d.ts b/dist/esm/models/SupplyOrderGetResponseOrder.d.ts new file mode 100644 index 0000000..dd4a6de --- /dev/null +++ b/dist/esm/models/SupplyOrderGetResponseOrder.d.ts @@ -0,0 +1,90 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderOrderTags } from './OrderOrderTags'; +import type { OrderSupply } from './OrderSupply'; +import type { OrderDropOffWarehouse } from './OrderDropOffWarehouse'; +import type { SupplyOrderGetResponseTimeslotTZ } from './SupplyOrderGetResponseTimeslotTZ'; +import type { OrderOrderStateEnum } from './OrderOrderStateEnum'; +/** + * + * @export + * @interface SupplyOrderGetResponseOrder + */ +export interface SupplyOrderGetResponseOrder { + /** + * Дата создания заявки на поставку. + * @type {string} + * @memberof SupplyOrderGetResponseOrder + */ + created_date?: string; + /** + * Время в секундах, оставшееся на заполнение данных по поставке. Только для заявок с вРЦ. + * @type {string} + * @memberof SupplyOrderGetResponseOrder + */ + data_filling_deadline_utc?: string; + /** + * + * @type {OrderDropOffWarehouse} + * @memberof SupplyOrderGetResponseOrder + */ + dropoff_warehouse?: OrderDropOffWarehouse; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof SupplyOrderGetResponseOrder + */ + order_id?: number; + /** + * Номер заявки на поставку. + * @type {string} + * @memberof SupplyOrderGetResponseOrder + */ + order_number?: string; + /** + * + * @type {OrderOrderTags} + * @memberof SupplyOrderGetResponseOrder + */ + order_tags?: OrderOrderTags; + /** + * + * @type {OrderOrderStateEnum} + * @memberof SupplyOrderGetResponseOrder + */ + state?: OrderOrderStateEnum; + /** + * Дата обновления статуса заявки на поставку. + * @type {string} + * @memberof SupplyOrderGetResponseOrder + */ + state_updated_date?: string; + /** + * Информация о поставках. + * @type {Array} + * @memberof SupplyOrderGetResponseOrder + */ + supplies?: Array; + /** + * + * @type {SupplyOrderGetResponseTimeslotTZ} + * @memberof SupplyOrderGetResponseOrder + */ + timeslot?: SupplyOrderGetResponseTimeslotTZ; +} +/** + * Check if a given object implements the SupplyOrderGetResponseOrder interface. + */ +export declare function instanceOfSupplyOrderGetResponseOrder(value: object): value is SupplyOrderGetResponseOrder; +export declare function SupplyOrderGetResponseOrderFromJSON(json: any): SupplyOrderGetResponseOrder; +export declare function SupplyOrderGetResponseOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderGetResponseOrder; +export declare function SupplyOrderGetResponseOrderToJSON(value?: SupplyOrderGetResponseOrder | null): any; diff --git a/dist/esm/models/SupplyOrderGetResponseOrder.js b/dist/esm/models/SupplyOrderGetResponseOrder.js new file mode 100644 index 0000000..ac7c950 --- /dev/null +++ b/dist/esm/models/SupplyOrderGetResponseOrder.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OrderOrderTagsFromJSON, OrderOrderTagsToJSON, } from './OrderOrderTags'; +import { OrderSupplyFromJSON, OrderSupplyToJSON, } from './OrderSupply'; +import { OrderDropOffWarehouseFromJSON, OrderDropOffWarehouseToJSON, } from './OrderDropOffWarehouse'; +import { SupplyOrderGetResponseTimeslotTZFromJSON, SupplyOrderGetResponseTimeslotTZToJSON, } from './SupplyOrderGetResponseTimeslotTZ'; +import { OrderOrderStateEnumFromJSON, OrderOrderStateEnumToJSON, } from './OrderOrderStateEnum'; +/** + * Check if a given object implements the SupplyOrderGetResponseOrder interface. + */ +export function instanceOfSupplyOrderGetResponseOrder(value) { + return true; +} +export function SupplyOrderGetResponseOrderFromJSON(json) { + return SupplyOrderGetResponseOrderFromJSONTyped(json, false); +} +export function SupplyOrderGetResponseOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'data_filling_deadline_utc': json['data_filling_deadline_utc'] == null ? undefined : json['data_filling_deadline_utc'], + 'dropoff_warehouse': json['dropoff_warehouse'] == null ? undefined : OrderDropOffWarehouseFromJSON(json['dropoff_warehouse']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'order_tags': json['order_tags'] == null ? undefined : OrderOrderTagsFromJSON(json['order_tags']), + 'state': json['state'] == null ? undefined : OrderOrderStateEnumFromJSON(json['state']), + 'state_updated_date': json['state_updated_date'] == null ? undefined : json['state_updated_date'], + 'supplies': json['supplies'] == null ? undefined : (json['supplies'].map(OrderSupplyFromJSON)), + 'timeslot': json['timeslot'] == null ? undefined : SupplyOrderGetResponseTimeslotTZFromJSON(json['timeslot']), + }; +} +export function SupplyOrderGetResponseOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_date': value['created_date'], + 'data_filling_deadline_utc': value['data_filling_deadline_utc'], + 'dropoff_warehouse': OrderDropOffWarehouseToJSON(value['dropoff_warehouse']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'order_tags': OrderOrderTagsToJSON(value['order_tags']), + 'state': OrderOrderStateEnumToJSON(value['state']), + 'state_updated_date': value['state_updated_date'], + 'supplies': value['supplies'] == null ? undefined : (value['supplies'].map(OrderSupplyToJSON)), + 'timeslot': SupplyOrderGetResponseTimeslotTZToJSON(value['timeslot']), + }; +} diff --git a/dist/esm/models/SupplyOrderGetResponseTimeslotTZ.d.ts b/dist/esm/models/SupplyOrderGetResponseTimeslotTZ.d.ts new file mode 100644 index 0000000..2f06d4b --- /dev/null +++ b/dist/esm/models/SupplyOrderGetResponseTimeslotTZ.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TimeslotTZTimezoneInfo } from './TimeslotTZTimezoneInfo'; +import type { TimeslotTZTimeslot } from './TimeslotTZTimeslot'; +/** + * Информация о таймслоте. + * @export + * @interface SupplyOrderGetResponseTimeslotTZ + */ +export interface SupplyOrderGetResponseTimeslotTZ { + /** + * + * @type {TimeslotTZTimeslot} + * @memberof SupplyOrderGetResponseTimeslotTZ + */ + timeslot?: TimeslotTZTimeslot; + /** + * + * @type {TimeslotTZTimezoneInfo} + * @memberof SupplyOrderGetResponseTimeslotTZ + */ + timezone_info?: TimeslotTZTimezoneInfo; +} +/** + * Check if a given object implements the SupplyOrderGetResponseTimeslotTZ interface. + */ +export declare function instanceOfSupplyOrderGetResponseTimeslotTZ(value: object): value is SupplyOrderGetResponseTimeslotTZ; +export declare function SupplyOrderGetResponseTimeslotTZFromJSON(json: any): SupplyOrderGetResponseTimeslotTZ; +export declare function SupplyOrderGetResponseTimeslotTZFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderGetResponseTimeslotTZ; +export declare function SupplyOrderGetResponseTimeslotTZToJSON(value?: SupplyOrderGetResponseTimeslotTZ | null): any; diff --git a/dist/esm/models/SupplyOrderGetResponseTimeslotTZ.js b/dist/esm/models/SupplyOrderGetResponseTimeslotTZ.js new file mode 100644 index 0000000..5f1bcb0 --- /dev/null +++ b/dist/esm/models/SupplyOrderGetResponseTimeslotTZ.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { TimeslotTZTimezoneInfoFromJSON, TimeslotTZTimezoneInfoToJSON, } from './TimeslotTZTimezoneInfo'; +import { TimeslotTZTimeslotFromJSON, TimeslotTZTimeslotToJSON, } from './TimeslotTZTimeslot'; +/** + * Check if a given object implements the SupplyOrderGetResponseTimeslotTZ interface. + */ +export function instanceOfSupplyOrderGetResponseTimeslotTZ(value) { + return true; +} +export function SupplyOrderGetResponseTimeslotTZFromJSON(json) { + return SupplyOrderGetResponseTimeslotTZFromJSONTyped(json, false); +} +export function SupplyOrderGetResponseTimeslotTZFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot': json['timeslot'] == null ? undefined : TimeslotTZTimeslotFromJSON(json['timeslot']), + 'timezone_info': json['timezone_info'] == null ? undefined : TimeslotTZTimezoneInfoFromJSON(json['timezone_info']), + }; +} +export function SupplyOrderGetResponseTimeslotTZToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot': TimeslotTZTimeslotToJSON(value['timeslot']), + 'timezone_info': TimeslotTZTimezoneInfoToJSON(value['timezone_info']), + }; +} diff --git a/dist/esm/models/SupplyOrderListRequestFilter.d.ts b/dist/esm/models/SupplyOrderListRequestFilter.d.ts new file mode 100644 index 0000000..5a48de7 --- /dev/null +++ b/dist/esm/models/SupplyOrderListRequestFilter.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FilterTimeslotFromRange } from './FilterTimeslotFromRange'; +import type { SupplyOrderListRequestFilterStateEnum } from './SupplyOrderListRequestFilterStateEnum'; +/** + * Фильтр. + * @export + * @interface SupplyOrderListRequestFilter + */ +export interface SupplyOrderListRequestFilter { + /** + * Идентификаторы пунктов отгрузки. + * @type {Array} + * @memberof SupplyOrderListRequestFilter + */ + dropoff_warehouse_ids?: Array; + /** + * Номер заявки на поставку. + * @type {string} + * @memberof SupplyOrderListRequestFilter + */ + order_number_search?: string; + /** + * Статус поставки: + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @type {Array} + * @memberof SupplyOrderListRequestFilter + */ + states: Array; + /** + * + * @type {FilterTimeslotFromRange} + * @memberof SupplyOrderListRequestFilter + */ + timeslot_from_range?: FilterTimeslotFromRange; +} +/** + * Check if a given object implements the SupplyOrderListRequestFilter interface. + */ +export declare function instanceOfSupplyOrderListRequestFilter(value: object): value is SupplyOrderListRequestFilter; +export declare function SupplyOrderListRequestFilterFromJSON(json: any): SupplyOrderListRequestFilter; +export declare function SupplyOrderListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderListRequestFilter; +export declare function SupplyOrderListRequestFilterToJSON(value?: SupplyOrderListRequestFilter | null): any; diff --git a/dist/esm/models/SupplyOrderListRequestFilter.js b/dist/esm/models/SupplyOrderListRequestFilter.js new file mode 100644 index 0000000..ee0fed0 --- /dev/null +++ b/dist/esm/models/SupplyOrderListRequestFilter.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FilterTimeslotFromRangeFromJSON, FilterTimeslotFromRangeToJSON, } from './FilterTimeslotFromRange'; +import { SupplyOrderListRequestFilterStateEnumFromJSON, SupplyOrderListRequestFilterStateEnumToJSON, } from './SupplyOrderListRequestFilterStateEnum'; +/** + * Check if a given object implements the SupplyOrderListRequestFilter interface. + */ +export function instanceOfSupplyOrderListRequestFilter(value) { + if (!('states' in value) || value['states'] === undefined) + return false; + return true; +} +export function SupplyOrderListRequestFilterFromJSON(json) { + return SupplyOrderListRequestFilterFromJSONTyped(json, false); +} +export function SupplyOrderListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dropoff_warehouse_ids': json['dropoff_warehouse_ids'] == null ? undefined : json['dropoff_warehouse_ids'], + 'order_number_search': json['order_number_search'] == null ? undefined : json['order_number_search'], + 'states': (json['states'].map(SupplyOrderListRequestFilterStateEnumFromJSON)), + 'timeslot_from_range': json['timeslot_from_range'] == null ? undefined : FilterTimeslotFromRangeFromJSON(json['timeslot_from_range']), + }; +} +export function SupplyOrderListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'dropoff_warehouse_ids': value['dropoff_warehouse_ids'], + 'order_number_search': value['order_number_search'], + 'states': (value['states'].map(SupplyOrderListRequestFilterStateEnumToJSON)), + 'timeslot_from_range': FilterTimeslotFromRangeToJSON(value['timeslot_from_range']), + }; +} diff --git a/dist/esm/models/SupplyOrderListRequestFilterStateEnum.d.ts b/dist/esm/models/SupplyOrderListRequestFilterStateEnum.d.ts new file mode 100644 index 0000000..ff3861f --- /dev/null +++ b/dist/esm/models/SupplyOrderListRequestFilterStateEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderListRequestFilterStateEnum: { + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type SupplyOrderListRequestFilterStateEnum = typeof SupplyOrderListRequestFilterStateEnum[keyof typeof SupplyOrderListRequestFilterStateEnum]; +export declare function instanceOfSupplyOrderListRequestFilterStateEnum(value: any): boolean; +export declare function SupplyOrderListRequestFilterStateEnumFromJSON(json: any): SupplyOrderListRequestFilterStateEnum; +export declare function SupplyOrderListRequestFilterStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderListRequestFilterStateEnum; +export declare function SupplyOrderListRequestFilterStateEnumToJSON(value?: SupplyOrderListRequestFilterStateEnum | null): any; diff --git a/dist/esm/models/SupplyOrderListRequestFilterStateEnum.js b/dist/esm/models/SupplyOrderListRequestFilterStateEnum.js new file mode 100644 index 0000000..21460db --- /dev/null +++ b/dist/esm/models/SupplyOrderListRequestFilterStateEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const SupplyOrderListRequestFilterStateEnum = { + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +export function instanceOfSupplyOrderListRequestFilterStateEnum(value) { + for (const key in SupplyOrderListRequestFilterStateEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderListRequestFilterStateEnum, key)) { + if (SupplyOrderListRequestFilterStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderListRequestFilterStateEnumFromJSON(json) { + return SupplyOrderListRequestFilterStateEnumFromJSONTyped(json, false); +} +export function SupplyOrderListRequestFilterStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderListRequestFilterStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderListRequestSortByEnum.d.ts b/dist/esm/models/SupplyOrderListRequestSortByEnum.d.ts new file mode 100644 index 0000000..7674c21 --- /dev/null +++ b/dist/esm/models/SupplyOrderListRequestSortByEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому заявки на поставку будут отсортированы: + * - `ORDER_CREATION` — по дате создания заявки; + * - `ORDER_STATE_UPDATED_AT` — по обновлению статуса заявки; + * - `TIMESLOT_FROM_UTC` — по таймслоту в UTC; + * - `TIMESLOT_FROM_LOCAL` — по таймслоту в локальном времени. + * + * @export + */ +export declare const SupplyOrderListRequestSortByEnum: { + readonly ORDER_CREATION: "ORDER_CREATION"; + readonly ORDER_STATE_UPDATED_AT: "ORDER_STATE_UPDATED_AT"; + readonly TIMESLOT_FROM_UTC: "TIMESLOT_FROM_UTC"; + readonly TIMESLOT_FROM_LOCAL: "TIMESLOT_FROM_LOCAL"; +}; +export type SupplyOrderListRequestSortByEnum = typeof SupplyOrderListRequestSortByEnum[keyof typeof SupplyOrderListRequestSortByEnum]; +export declare function instanceOfSupplyOrderListRequestSortByEnum(value: any): boolean; +export declare function SupplyOrderListRequestSortByEnumFromJSON(json: any): SupplyOrderListRequestSortByEnum; +export declare function SupplyOrderListRequestSortByEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderListRequestSortByEnum; +export declare function SupplyOrderListRequestSortByEnumToJSON(value?: SupplyOrderListRequestSortByEnum | null): any; diff --git a/dist/esm/models/SupplyOrderListRequestSortByEnum.js b/dist/esm/models/SupplyOrderListRequestSortByEnum.js new file mode 100644 index 0000000..2f90099 --- /dev/null +++ b/dist/esm/models/SupplyOrderListRequestSortByEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому заявки на поставку будут отсортированы: + * - `ORDER_CREATION` — по дате создания заявки; + * - `ORDER_STATE_UPDATED_AT` — по обновлению статуса заявки; + * - `TIMESLOT_FROM_UTC` — по таймслоту в UTC; + * - `TIMESLOT_FROM_LOCAL` — по таймслоту в локальном времени. + * + * @export + */ +export const SupplyOrderListRequestSortByEnum = { + ORDER_CREATION: 'ORDER_CREATION', + ORDER_STATE_UPDATED_AT: 'ORDER_STATE_UPDATED_AT', + TIMESLOT_FROM_UTC: 'TIMESLOT_FROM_UTC', + TIMESLOT_FROM_LOCAL: 'TIMESLOT_FROM_LOCAL' +}; +export function instanceOfSupplyOrderListRequestSortByEnum(value) { + for (const key in SupplyOrderListRequestSortByEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderListRequestSortByEnum, key)) { + if (SupplyOrderListRequestSortByEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderListRequestSortByEnumFromJSON(json) { + return SupplyOrderListRequestSortByEnumFromJSONTyped(json, false); +} +export function SupplyOrderListRequestSortByEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderListRequestSortByEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderListRequestSortDirEnum.d.ts b/dist/esm/models/SupplyOrderListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..0cb502a --- /dev/null +++ b/dist/esm/models/SupplyOrderListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const SupplyOrderListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type SupplyOrderListRequestSortDirEnum = typeof SupplyOrderListRequestSortDirEnum[keyof typeof SupplyOrderListRequestSortDirEnum]; +export declare function instanceOfSupplyOrderListRequestSortDirEnum(value: any): boolean; +export declare function SupplyOrderListRequestSortDirEnumFromJSON(json: any): SupplyOrderListRequestSortDirEnum; +export declare function SupplyOrderListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderListRequestSortDirEnum; +export declare function SupplyOrderListRequestSortDirEnumToJSON(value?: SupplyOrderListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/SupplyOrderListRequestSortDirEnum.js b/dist/esm/models/SupplyOrderListRequestSortDirEnum.js new file mode 100644 index 0000000..a72176f --- /dev/null +++ b/dist/esm/models/SupplyOrderListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export const SupplyOrderListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfSupplyOrderListRequestSortDirEnum(value) { + for (const key in SupplyOrderListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderListRequestSortDirEnum, key)) { + if (SupplyOrderListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderListRequestSortDirEnumFromJSON(json) { + return SupplyOrderListRequestSortDirEnumFromJSONTyped(json, false); +} +export function SupplyOrderListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptRequest.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptRequest.d.ts new file mode 100644 index 0000000..bc6f31e --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActAcceptRequest + */ +export interface SupplyOrderV1SupplyOrderActAcceptRequest { + /** + * Идентификатор акта из методов [/v1/supply-order/act/summary/get](#operation/SupplyOrderActSummaryGet) или [/v1/supply-order/act/product/get](#operation/SupplyOrderActProductGet). + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActAcceptRequest + */ + act_id: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptRequest interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptRequest(value: object): value is SupplyOrderV1SupplyOrderActAcceptRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptRequestFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptRequestToJSON(value?: SupplyOrderV1SupplyOrderActAcceptRequest | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptRequest.js b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptRequest.js new file mode 100644 index 0000000..b088d74 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptRequest interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActAcceptRequest(value) { + if (!('act_id' in value) || value['act_id'] === undefined) + return false; + return true; +} +export function SupplyOrderV1SupplyOrderActAcceptRequestFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptRequestFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActAcceptRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_id': json['act_id'], + }; +} +export function SupplyOrderV1SupplyOrderActAcceptRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_id': value['act_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponse.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponse.d.ts new file mode 100644 index 0000000..b38fb95 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponse.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum } from './SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActAcceptResponse + */ +export interface SupplyOrderV1SupplyOrderActAcceptResponse { + /** + * Ошибки при принятии акта: + * - `UNSPECIFIED` — не определена; + * - `INVALID_STATE` — некорректный статус; + * - `SUPPLY_WITH_UTD` — поставка с УПД. + * + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActAcceptResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActAcceptResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptResponse interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptResponse(value: object): value is SupplyOrderV1SupplyOrderActAcceptResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseToJSON(value?: SupplyOrderV1SupplyOrderActAcceptResponse | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponse.js b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponse.js new file mode 100644 index 0000000..efc2696 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON, SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON, } from './SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptResponse interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActAcceptResponse(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActAcceptResponseFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptResponseFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActAcceptResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function SupplyOrderV1SupplyOrderActAcceptResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..38d2db4 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_STATE: "INVALID_STATE"; + readonly SUPPLY_WITH_UTD: "SUPPLY_WITH_UTD"; +}; +export type SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum = typeof SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum[keyof typeof SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON(value?: SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.js b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.js new file mode 100644 index 0000000..9074909 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_STATE: 'INVALID_STATE', + SUPPLY_WITH_UTD: 'SUPPLY_WITH_UTD' +}; +export function instanceOfSupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum(value) { + for (const key in SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum, key)) { + if (SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.d.ts new file mode 100644 index 0000000..11750c9 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActAcceptStatusRequest + */ +export interface SupplyOrderV1SupplyOrderActAcceptStatusRequest { + /** + * Идентификатор операции из метода [/v1/supply-order/act/accept](#operation/SupplyOrderActAccept). + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActAcceptStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptStatusRequest interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusRequest(value: object): value is SupplyOrderV1SupplyOrderActAcceptStatusRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptStatusRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptStatusRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON(value?: SupplyOrderV1SupplyOrderActAcceptStatusRequest | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.js b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.js new file mode 100644 index 0000000..33770c8 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptStatusRequest interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.d.ts new file mode 100644 index 0000000..5f9152c --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum } from './SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActAcceptStatusResponse + */ +export interface SupplyOrderV1SupplyOrderActAcceptStatusResponse { + /** + * + * @type {SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum} + * @memberof SupplyOrderV1SupplyOrderActAcceptStatusResponse + */ + status?: SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum; + /** + * Причина ошибки. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActAcceptStatusResponse + */ + error_message?: string; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptStatusResponse interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponse(value: object): value is SupplyOrderV1SupplyOrderActAcceptStatusResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptStatusResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptStatusResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseToJSON(value?: SupplyOrderV1SupplyOrderActAcceptStatusResponse | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.js b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.js new file mode 100644 index 0000000..9a76506 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON, SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON, } from './SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptStatusResponse interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponse(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON(json['status']), + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +export function SupplyOrderV1SupplyOrderActAcceptStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON(value['status']), + 'error_message': value['error_message'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..65bdb1f --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус операции: + * - `SUCCESS` — акт согласован; + * - `IN_PROGRESS` — согласование в процессе; + * - `FAILED` — ошибка при согласовании акта. + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum = typeof SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum[keyof typeof SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON(value?: SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.js b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.js new file mode 100644 index 0000000..7b61c01 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус операции: + * - `SUCCESS` — акт согласован; + * - `IN_PROGRESS` — согласование в процессе; + * - `FAILED` — ошибка при согласовании акта. + * + * @export + */ +export const SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum(value) { + for (const key in SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum, key)) { + if (SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetRequest.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetRequest.d.ts new file mode 100644 index 0000000..b08ae05 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetRequest + */ +export interface SupplyOrderV1SupplyOrderActProductGetRequest { + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetRequest interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetRequest(value: object): value is SupplyOrderV1SupplyOrderActProductGetRequest; +export declare function SupplyOrderV1SupplyOrderActProductGetRequestFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetRequest; +export declare function SupplyOrderV1SupplyOrderActProductGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetRequest; +export declare function SupplyOrderV1SupplyOrderActProductGetRequestToJSON(value?: SupplyOrderV1SupplyOrderActProductGetRequest | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetRequest.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetRequest.js new file mode 100644 index 0000000..0b239e0 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetRequest interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActProductGetRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function SupplyOrderV1SupplyOrderActProductGetRequestFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetRequestFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function SupplyOrderV1SupplyOrderActProductGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponse.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponse.d.ts new file mode 100644 index 0000000..fd03a1a --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects } from './SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects'; +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponse + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponse { + /** + * Список товаров с браком. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponse + */ + skus_defects?: Array; + /** + * Список актов в поставке. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponse + */ + supply_acts?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponse + */ + supply_id?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponse interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponse(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponse; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponse; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponse; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponse | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponse.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponse.js new file mode 100644 index 0000000..64b6e24 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON, SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON, } from './SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects'; +import { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON, } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponse interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActProductGetResponse(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus_defects': json['skus_defects'] == null ? undefined : (json['skus_defects'].map(SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON)), + 'supply_acts': json['supply_acts'] == null ? undefined : (json['supply_acts'].map(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON)), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus_defects': value['skus_defects'] == null ? undefined : (value['skus_defects'].map(SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON)), + 'supply_acts': value['supply_acts'] == null ? undefined : (value['supply_acts'].map(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON)), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.d.ts new file mode 100644 index 0000000..619826a --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects { + /** + * Причины брака. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects + */ + defect_reasons?: Array; + /** + * Идентификатор товара. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects + */ + sku?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSkusDefects(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.js new file mode 100644 index 0000000..cd2b138 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSkusDefects(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'defect_reasons': json['defect_reasons'] == null ? undefined : json['defect_reasons'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON(value) { + if (value == null) { + return value; + } + return { + 'defect_reasons': value['defect_reasons'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.d.ts new file mode 100644 index 0000000..d2d7dd6 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems'; +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs { + /** + * Идентификатор акта. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ + act_id?: number; + /** + * Список товаров в акте. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ + items?: Array; + /** + * + * @type {SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ + type?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum; + /** + * Количество неопознанных излишков. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ + unidentified_quantity?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActs(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.js new file mode 100644 index 0000000..a21d111 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON, } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems'; +import { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON, } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActs(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_id': json['act_id'] == null ? undefined : json['act_id'], + 'items': json['items'] == null ? undefined : (json['items'].map(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON)), + 'type': json['type'] == null ? undefined : SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON(json['type']), + 'unidentified_quantity': json['unidentified_quantity'] == null ? undefined : json['unidentified_quantity'], + }; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_id': value['act_id'], + 'items': value['items'] == null ? undefined : (value['items'].map(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON)), + 'type': SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON(value['type']), + 'unidentified_quantity': value['unidentified_quantity'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.d.ts new file mode 100644 index 0000000..1bef28a --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount'; +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo'; +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems { + /** + * + * @type {SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + approved_amount?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; + /** + * Количество согласованного товара в акте. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + approved_quantity?: number; + /** + * Количество заявленного товара в акте. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + declared_quantity?: number; + /** + * + * @type {SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + fact_amount?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; + /** + * Количество принятого товара. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + fact_quantity?: number; + /** + * + * @type {SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + sku_info?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.js new file mode 100644 index 0000000..cbaba76 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON, } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount'; +import { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON, } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo'; +import { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON, } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_amount': json['approved_amount'] == null ? undefined : SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON(json['approved_amount']), + 'approved_quantity': json['approved_quantity'] == null ? undefined : json['approved_quantity'], + 'declared_quantity': json['declared_quantity'] == null ? undefined : json['declared_quantity'], + 'fact_amount': json['fact_amount'] == null ? undefined : SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON(json['fact_amount']), + 'fact_quantity': json['fact_quantity'] == null ? undefined : json['fact_quantity'], + 'sku_info': json['sku_info'] == null ? undefined : SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON(json['sku_info']), + }; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_amount': SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON(value['approved_amount']), + 'approved_quantity': value['approved_quantity'], + 'declared_quantity': value['declared_quantity'], + 'fact_amount': SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON(value['fact_amount']), + 'fact_quantity': value['fact_quantity'], + 'sku_info': SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON(value['sku_info']), + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.d.ts new file mode 100644 index 0000000..bd10523 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySupplyActAmount } from './MoneyMoneySupplyActAmount'; +import type { MoneyMoneySupplyActAmountVat } from './MoneyMoneySupplyActAmountVat'; +import type { MoneyMoneySupplyActAmountWithoutVat } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Согласованная стоимость товаров. + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount { + /** + * + * @type {MoneyMoneySupplyActAmount} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount + */ + amount?: MoneyMoneySupplyActAmount; + /** + * + * @type {MoneyMoneySupplyActAmountVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount + */ + amount_vat?: MoneyMoneySupplyActAmountVat; + /** + * + * @type {MoneyMoneySupplyActAmountWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount + */ + amount_without_vat?: MoneyMoneySupplyActAmountWithoutVat; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.js new file mode 100644 index 0000000..5177803 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneySupplyActAmountFromJSON, MoneyMoneySupplyActAmountToJSON, } from './MoneyMoneySupplyActAmount'; +import { MoneyMoneySupplyActAmountVatFromJSON, MoneyMoneySupplyActAmountVatToJSON, } from './MoneyMoneySupplyActAmountVat'; +import { MoneyMoneySupplyActAmountWithoutVatFromJSON, MoneyMoneySupplyActAmountWithoutVatToJSON, } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : MoneyMoneySupplyActAmountFromJSON(json['amount']), + 'amount_vat': json['amount_vat'] == null ? undefined : MoneyMoneySupplyActAmountVatFromJSON(json['amount_vat']), + 'amount_without_vat': json['amount_without_vat'] == null ? undefined : MoneyMoneySupplyActAmountWithoutVatFromJSON(json['amount_without_vat']), + }; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': MoneyMoneySupplyActAmountToJSON(value['amount']), + 'amount_vat': MoneyMoneySupplyActAmountVatToJSON(value['amount_vat']), + 'amount_without_vat': MoneyMoneySupplyActAmountWithoutVatToJSON(value['amount_without_vat']), + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.d.ts new file mode 100644 index 0000000..125b741 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySupplyActAmount } from './MoneyMoneySupplyActAmount'; +import type { MoneyMoneySupplyActAmountVat } from './MoneyMoneySupplyActAmountVat'; +import type { MoneyMoneySupplyActAmountWithoutVat } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Фактическая стоимость товаров. + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount { + /** + * + * @type {MoneyMoneySupplyActAmount} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount + */ + amount?: MoneyMoneySupplyActAmount; + /** + * + * @type {MoneyMoneySupplyActAmountVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount + */ + amount_vat?: MoneyMoneySupplyActAmountVat; + /** + * + * @type {MoneyMoneySupplyActAmountWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount + */ + amount_without_vat?: MoneyMoneySupplyActAmountWithoutVat; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.js new file mode 100644 index 0000000..c69f7bc --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneySupplyActAmountFromJSON, MoneyMoneySupplyActAmountToJSON, } from './MoneyMoneySupplyActAmount'; +import { MoneyMoneySupplyActAmountVatFromJSON, MoneyMoneySupplyActAmountVatToJSON, } from './MoneyMoneySupplyActAmountVat'; +import { MoneyMoneySupplyActAmountWithoutVatFromJSON, MoneyMoneySupplyActAmountWithoutVatToJSON, } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : MoneyMoneySupplyActAmountFromJSON(json['amount']), + 'amount_vat': json['amount_vat'] == null ? undefined : MoneyMoneySupplyActAmountVatFromJSON(json['amount_vat']), + 'amount_without_vat': json['amount_without_vat'] == null ? undefined : MoneyMoneySupplyActAmountWithoutVatFromJSON(json['amount_without_vat']), + }; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': MoneyMoneySupplyActAmountToJSON(value['amount']), + 'amount_vat': MoneyMoneySupplyActAmountVatToJSON(value['amount_vat']), + 'amount_without_vat': MoneyMoneySupplyActAmountWithoutVatToJSON(value['amount_without_vat']), + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.d.ts new file mode 100644 index 0000000..8f347ff --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyPriceWithoutVat } from './MoneyMoneyPriceWithoutVat'; +/** + * Информация о товаре. + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo { + /** + * Штрихкод товара. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + image_link?: string; + /** + * Название товара. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + offer_id?: string; + /** + * + * @type {MoneyMoneyPriceWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + price_without_vat?: MoneyMoneyPriceWithoutVat; + /** + * Идентификатор товара. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + sku?: number; + /** + * Ставка НДС. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + vat?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.js new file mode 100644 index 0000000..15477a5 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyPriceWithoutVatFromJSON, MoneyMoneyPriceWithoutVatToJSON, } from './MoneyMoneyPriceWithoutVat'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'image_link': json['image_link'] == null ? undefined : json['image_link'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price_without_vat': json['price_without_vat'] == null ? undefined : MoneyMoneyPriceWithoutVatFromJSON(json['price_without_vat']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'vat': json['vat'] == null ? undefined : json['vat'], + }; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'image_link': value['image_link'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price_without_vat': MoneyMoneyPriceWithoutVatToJSON(value['price_without_vat']), + 'sku': value['sku'], + 'vat': value['vat'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.d.ts new file mode 100644 index 0000000..f45317d --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акта: + * - `UNSPECIFIED` — не определён; + * - `ACCEPTANCE` — акт приёмки; + * - `DEFECT` — акт о браке; + * - `SURPLUS` — акт об излишках; + * - `SHORTCOMING` — акт о недостаче. + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ACCEPTANCE: "ACCEPTANCE"; + readonly DEFECT: "DEFECT"; + readonly SURPLUS: "SURPLUS"; + readonly SHORTCOMING: "SHORTCOMING"; +}; +export type SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum = typeof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum[keyof typeof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.js b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.js new file mode 100644 index 0000000..0267080 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акта: + * - `UNSPECIFIED` — не определён; + * - `ACCEPTANCE` — акт приёмки; + * - `DEFECT` — акт о браке; + * - `SURPLUS` — акт об излишках; + * - `SHORTCOMING` — акт о недостаче. + * + * @export + */ +export const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ACCEPTANCE: 'ACCEPTANCE', + DEFECT: 'DEFECT', + SURPLUS: 'SURPLUS', + SHORTCOMING: 'SHORTCOMING' +}; +export function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum(value) { + for (const key in SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum, key)) { + if (SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.d.ts new file mode 100644 index 0000000..594b6f8 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetRequest + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetRequest { + /** + * Идентификатор заявки на поставку из метода [/v3/supply-order/list](#operation/SupplyOrderList). + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetRequest + */ + order_id: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetRequest interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetRequest(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetRequest; +export declare function SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetRequest; +export declare function SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetRequest; +export declare function SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetRequest | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.js new file mode 100644 index 0000000..52de414 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetRequest interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +export function SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +export function SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.d.ts new file mode 100644 index 0000000..8b1f8d3 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponse + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponse { + /** + * Список актов. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponse + */ + supplies_acts?: Array; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponse interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponse(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponse; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponse; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponse; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponse | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.js new file mode 100644 index 0000000..b3384e3 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON, } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponse interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponse(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supplies_acts': json['supplies_acts'] == null ? undefined : (json['supplies_acts'].map(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON)), + }; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'supplies_acts': value['supplies_acts'] == null ? undefined : (value['supplies_acts'].map(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON)), + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.d.ts new file mode 100644 index 0000000..f937c2b --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs { + /** + * `true`, если все акты согласованы. + * + * @type {boolean} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs + */ + is_agreement_completed?: boolean; + /** + * Информация об актах. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs + */ + supply_acts?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs + */ + supply_id?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.js new file mode 100644 index 0000000..589da54 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON, } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_agreement_completed': json['is_agreement_completed'] == null ? undefined : json['is_agreement_completed'], + 'supply_acts': json['supply_acts'] == null ? undefined : (json['supply_acts'].map(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON)), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_agreement_completed': value['is_agreement_completed'], + 'supply_acts': value['supply_acts'] == null ? undefined : (value['supply_acts'].map(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON)), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.d.ts new file mode 100644 index 0000000..66ea27d --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum'; +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum'; +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs { + /** + * Идентификатор акта. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + act_id?: number; + /** + * Номер акта. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + act_number?: string; + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + act_state?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum; + /** + * Дата создания акта. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + created_date?: string; + /** + * Дата и время, до которой можно работать с актом. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + deadline_utc?: string; + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + summary?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + type?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.js new file mode 100644 index 0000000..b891dd3 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON, } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum'; +import { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON, } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum'; +import { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON, } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_id': json['act_id'] == null ? undefined : json['act_id'], + 'act_number': json['act_number'] == null ? undefined : json['act_number'], + 'act_state': json['act_state'] == null ? undefined : SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON(json['act_state']), + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'deadline_utc': json['deadline_utc'] == null ? undefined : json['deadline_utc'], + 'summary': json['summary'] == null ? undefined : SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON(json['summary']), + 'type': json['type'] == null ? undefined : SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON(json['type']), + }; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_id': value['act_id'], + 'act_number': value['act_number'], + 'act_state': SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON(value['act_state']), + 'created_date': value['created_date'], + 'deadline_utc': value['deadline_utc'], + 'summary': SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON(value['summary']), + 'type': SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.d.ts new file mode 100644 index 0000000..51409a7 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус акта: + * - `UNSPECIFIED` — не определён; + * - `AWAITING_APPROVAL_BY_SELLER` — ожидает согласования продавца; + * - `REJECT_BY_SELLER` — отклонён продавцом; + * - `AGREEMENT_WITH_SELLER` — согласован продавцом; + * - `ACCEPTED` — согласование завершено. + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly AWAITING_APPROVAL_BY_SELLER: "AWAITING_APPROVAL_BY_SELLER"; + readonly REJECT_BY_SELLER: "REJECT_BY_SELLER"; + readonly AGREEMENT_WITH_SELLER: "AGREEMENT_WITH_SELLER"; + readonly ACCEPTED: "ACCEPTED"; +}; +export type SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum = typeof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum[keyof typeof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.js new file mode 100644 index 0000000..0a0d023 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус акта: + * - `UNSPECIFIED` — не определён; + * - `AWAITING_APPROVAL_BY_SELLER` — ожидает согласования продавца; + * - `REJECT_BY_SELLER` — отклонён продавцом; + * - `AGREEMENT_WITH_SELLER` — согласован продавцом; + * - `ACCEPTED` — согласование завершено. + * + * @export + */ +export const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + AWAITING_APPROVAL_BY_SELLER: 'AWAITING_APPROVAL_BY_SELLER', + REJECT_BY_SELLER: 'REJECT_BY_SELLER', + AGREEMENT_WITH_SELLER: 'AGREEMENT_WITH_SELLER', + ACCEPTED: 'ACCEPTED' +}; +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum(value) { + for (const key in SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum, key)) { + if (SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.d.ts new file mode 100644 index 0000000..43f0890 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount'; +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount'; +/** + * Информация о товарах в акте. + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary { + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + approved_amount?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; + /** + * Количество согласованных товаров. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + approved_quantity?: number; + /** + * Количество заявленных товаров. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + declared_quantity?: number; + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + fact_amount?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; + /** + * Количество принятых товаров. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + fact_quantity?: number; + /** + * Общее количество товаров. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + sku_quantity?: number; + /** + * Количество неопознанных излишков. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + unidentified_quantity?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.js new file mode 100644 index 0000000..4065d00 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON, } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount'; +import { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON, } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_amount': json['approved_amount'] == null ? undefined : SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON(json['approved_amount']), + 'approved_quantity': json['approved_quantity'] == null ? undefined : json['approved_quantity'], + 'declared_quantity': json['declared_quantity'] == null ? undefined : json['declared_quantity'], + 'fact_amount': json['fact_amount'] == null ? undefined : SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON(json['fact_amount']), + 'fact_quantity': json['fact_quantity'] == null ? undefined : json['fact_quantity'], + 'sku_quantity': json['sku_quantity'] == null ? undefined : json['sku_quantity'], + 'unidentified_quantity': json['unidentified_quantity'] == null ? undefined : json['unidentified_quantity'], + }; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_amount': SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON(value['approved_amount']), + 'approved_quantity': value['approved_quantity'], + 'declared_quantity': value['declared_quantity'], + 'fact_amount': SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON(value['fact_amount']), + 'fact_quantity': value['fact_quantity'], + 'sku_quantity': value['sku_quantity'], + 'unidentified_quantity': value['unidentified_quantity'], + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.d.ts new file mode 100644 index 0000000..18484f7 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySupplyActAmount } from './MoneyMoneySupplyActAmount'; +import type { MoneyMoneySupplyActAmountVat } from './MoneyMoneySupplyActAmountVat'; +import type { MoneyMoneySupplyActAmountWithoutVat } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Согласованная стоимость товаров. + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount { + /** + * + * @type {MoneyMoneySupplyActAmount} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount + */ + amount?: MoneyMoneySupplyActAmount; + /** + * + * @type {MoneyMoneySupplyActAmountVat} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount + */ + amount_vat?: MoneyMoneySupplyActAmountVat; + /** + * + * @type {MoneyMoneySupplyActAmountWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount + */ + amount_without_vat?: MoneyMoneySupplyActAmountWithoutVat; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.js new file mode 100644 index 0000000..637b48c --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneySupplyActAmountFromJSON, MoneyMoneySupplyActAmountToJSON, } from './MoneyMoneySupplyActAmount'; +import { MoneyMoneySupplyActAmountVatFromJSON, MoneyMoneySupplyActAmountVatToJSON, } from './MoneyMoneySupplyActAmountVat'; +import { MoneyMoneySupplyActAmountWithoutVatFromJSON, MoneyMoneySupplyActAmountWithoutVatToJSON, } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : MoneyMoneySupplyActAmountFromJSON(json['amount']), + 'amount_vat': json['amount_vat'] == null ? undefined : MoneyMoneySupplyActAmountVatFromJSON(json['amount_vat']), + 'amount_without_vat': json['amount_without_vat'] == null ? undefined : MoneyMoneySupplyActAmountWithoutVatFromJSON(json['amount_without_vat']), + }; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': MoneyMoneySupplyActAmountToJSON(value['amount']), + 'amount_vat': MoneyMoneySupplyActAmountVatToJSON(value['amount_vat']), + 'amount_without_vat': MoneyMoneySupplyActAmountWithoutVatToJSON(value['amount_without_vat']), + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.d.ts new file mode 100644 index 0000000..0086a00 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySupplyActAmount } from './MoneyMoneySupplyActAmount'; +import type { MoneyMoneySupplyActAmountVat } from './MoneyMoneySupplyActAmountVat'; +import type { MoneyMoneySupplyActAmountWithoutVat } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Фактическая стоимость товаров. + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount { + /** + * + * @type {MoneyMoneySupplyActAmount} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount + */ + amount?: MoneyMoneySupplyActAmount; + /** + * + * @type {MoneyMoneySupplyActAmountVat} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount + */ + amount_vat?: MoneyMoneySupplyActAmountVat; + /** + * + * @type {MoneyMoneySupplyActAmountWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount + */ + amount_without_vat?: MoneyMoneySupplyActAmountWithoutVat; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.js new file mode 100644 index 0000000..f3a7f65 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneySupplyActAmountFromJSON, MoneyMoneySupplyActAmountToJSON, } from './MoneyMoneySupplyActAmount'; +import { MoneyMoneySupplyActAmountVatFromJSON, MoneyMoneySupplyActAmountVatToJSON, } from './MoneyMoneySupplyActAmountVat'; +import { MoneyMoneySupplyActAmountWithoutVatFromJSON, MoneyMoneySupplyActAmountWithoutVatToJSON, } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount interface. + */ +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount(value) { + return true; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : MoneyMoneySupplyActAmountFromJSON(json['amount']), + 'amount_vat': json['amount_vat'] == null ? undefined : MoneyMoneySupplyActAmountVatFromJSON(json['amount_vat']), + 'amount_without_vat': json['amount_without_vat'] == null ? undefined : MoneyMoneySupplyActAmountWithoutVatFromJSON(json['amount_without_vat']), + }; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': MoneyMoneySupplyActAmountToJSON(value['amount']), + 'amount_vat': MoneyMoneySupplyActAmountVatToJSON(value['amount_vat']), + 'amount_without_vat': MoneyMoneySupplyActAmountWithoutVatToJSON(value['amount_without_vat']), + }; +} diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.d.ts b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.d.ts new file mode 100644 index 0000000..ae9e660 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акта: + * - `UNSPECIFIED` — не определён; + * - `ACCEPTANCE` — акт приёмки; + * - `DEFECT` — акт о браке; + * - `SURPLUS` — акт об излишках; + * - `SHORTCOMING` — акт о недостаче. + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ACCEPTANCE: "ACCEPTANCE"; + readonly DEFECT: "DEFECT"; + readonly SURPLUS: "SURPLUS"; + readonly SHORTCOMING: "SHORTCOMING"; +}; +export type SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum = typeof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum[keyof typeof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum | null): any; diff --git a/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.js b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.js new file mode 100644 index 0000000..4576ad4 --- /dev/null +++ b/dist/esm/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акта: + * - `UNSPECIFIED` — не определён; + * - `ACCEPTANCE` — акт приёмки; + * - `DEFECT` — акт о браке; + * - `SURPLUS` — акт об излишках; + * - `SHORTCOMING` — акт о недостаче. + * + * @export + */ +export const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ACCEPTANCE: 'ACCEPTANCE', + DEFECT: 'DEFECT', + SURPLUS: 'SURPLUS', + SHORTCOMING: 'SHORTCOMING' +}; +export function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum(value) { + for (const key in SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum, key)) { + if (SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSONTyped(json, false); +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListRequest.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListRequest.d.ts new file mode 100644 index 0000000..39a9e29 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListRequest + */ +export interface SupplyOrderV2SupplyOrderTimeslotListRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListRequest + */ + order_id: number; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListRequest interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListRequest(value: object): value is SupplyOrderV2SupplyOrderTimeslotListRequest; +export declare function SupplyOrderV2SupplyOrderTimeslotListRequestFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListRequest; +export declare function SupplyOrderV2SupplyOrderTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListRequest; +export declare function SupplyOrderV2SupplyOrderTimeslotListRequestToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListRequest | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListRequest.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListRequest.js new file mode 100644 index 0000000..a61d362 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListRequest interface. + */ +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +export function SupplyOrderV2SupplyOrderTimeslotListRequestFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListRequestFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +export function SupplyOrderV2SupplyOrderTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponse.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponse.d.ts new file mode 100644 index 0000000..8359f1c --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded } from './SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded'; +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo'; +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden'; +/** + * + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponse + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponse { + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponse + */ + limit_exceeded?: SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponse + */ + timeslot_change_forbidden?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponse + */ + timeslots_info?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponse interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponse(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponse; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponse; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponse; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponse | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponse.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponse.js new file mode 100644 index 0000000..0e1dba6 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON, SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON, } from './SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded'; +import { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON, } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo'; +import { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON, } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden'; +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponse interface. + */ +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponse(value) { + return true; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit_exceeded': json['limit_exceeded'] == null ? undefined : SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON(json['limit_exceeded']), + 'timeslot_change_forbidden': json['timeslot_change_forbidden'] == null ? undefined : SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON(json['timeslot_change_forbidden']), + 'timeslots_info': json['timeslots_info'] == null ? undefined : SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON(json['timeslots_info']), + }; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit_exceeded': SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON(value['limit_exceeded']), + 'timeslot_change_forbidden': SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON(value['timeslot_change_forbidden']), + 'timeslots_info': SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON(value['timeslots_info']), + }; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.d.ts new file mode 100644 index 0000000..d71358c --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о превышении лимита изменений интервала поставки. + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded { + /** + * Остаток доступных изменений интервала поставки. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded + */ + changes_limit?: number; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.js new file mode 100644 index 0000000..96fec9c --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded interface. + */ +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded(value) { + return true; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'changes_limit': json['changes_limit'] == null ? undefined : json['changes_limit'], + }; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON(value) { + if (value == null) { + return value; + } + return { + 'changes_limit': value['changes_limit'], + }; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.d.ts new file mode 100644 index 0000000..b1960b4 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum'; +/** + * Информация о причинах, по которым нельзя изменить интервал поставки. + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden { + /** + * Причина, по которой нельзя изменить интервал поставки: + * - `INVALID_ORDER_STATE` — неверный статус заявки на поставку; + * - `IS_VIRTUAL` — заявка на поставку виртуальная; + * - `SET_TIMESLOT_DEADLINE_EXCEED` — заявка на поставку просрочена; + * - `ORDER_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу. + * + * @type {Array} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.js new file mode 100644 index 0000000..ea18737 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON, } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum'; +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden interface. + */ +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden(value) { + return true; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON)), + }; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON)), + }; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.d.ts new file mode 100644 index 0000000..5348bd7 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.d.ts @@ -0,0 +1,26 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum: { + readonly INVALID_ORDER_STATE: "INVALID_ORDER_STATE"; + readonly IS_VIRTUAL: "IS_VIRTUAL"; + readonly SET_TIMESLOT_DEADLINE_EXCEED: "SET_TIMESLOT_DEADLINE_EXCEED"; + readonly ORDER_DOES_NOT_BELONG_TO_COMPANY: "ORDER_DOES_NOT_BELONG_TO_COMPANY"; +}; +export type SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum = typeof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum[keyof typeof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum]; +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum(value: any): boolean; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.js new file mode 100644 index 0000000..7fc108e --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum = { + INVALID_ORDER_STATE: 'INVALID_ORDER_STATE', + IS_VIRTUAL: 'IS_VIRTUAL', + SET_TIMESLOT_DEADLINE_EXCEED: 'SET_TIMESLOT_DEADLINE_EXCEED', + ORDER_DOES_NOT_BELONG_TO_COMPANY: 'ORDER_DOES_NOT_BELONG_TO_COMPANY' +}; +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum(value) { + for (const key in SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum, key)) { + if (SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.d.ts new file mode 100644 index 0000000..21023ba --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone'; +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots'; +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations'; +/** + * Информация об интервалах поставки. + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo { + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo + */ + limitations?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; + /** + * Список интервалов поставки. + * @type {Array} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo + */ + timeslots?: Array; + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo + */ + timezone?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.js new file mode 100644 index 0000000..2b4f89b --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON, } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone'; +import { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON, } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots'; +import { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON, } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations'; +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo interface. + */ +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo(value) { + return true; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limitations': json['limitations'] == null ? undefined : SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON(json['limitations']), + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON)), + 'timezone': json['timezone'] == null ? undefined : SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON(json['timezone']), + }; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'limitations': SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON(value['limitations']), + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON)), + 'timezone': SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON(value['timezone']), + }; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.d.ts new file mode 100644 index 0000000..27dff5d --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ограничения на обновления интервала поставки. + * + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations { + /** + * Количество изменений интервала поставки. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations + */ + changes_count?: number; + /** + * Остаток доступных изменений интервала поставки. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations + */ + changes_limit?: number; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.js new file mode 100644 index 0000000..0568f46 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations interface. + */ +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations(value) { + return true; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'changes_count': json['changes_count'] == null ? undefined : json['changes_count'], + 'changes_limit': json['changes_limit'] == null ? undefined : json['changes_limit'], + }; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON(value) { + if (value == null) { + return value; + } + return { + 'changes_count': value['changes_count'], + 'changes_limit': value['changes_limit'], + }; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.d.ts new file mode 100644 index 0000000..986ba65 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots { + /** + * Начало интервала по местному времени. + * @type {string} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots + */ + from?: string; + /** + * Конец интервала по местному времени. + * @type {string} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots + */ + to?: string; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.js new file mode 100644 index 0000000..1dae76c --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots interface. + */ +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots(value) { + return true; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.d.ts b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.d.ts new file mode 100644 index 0000000..eba30d5 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone { + /** + * Название часового пояса. + * @type {string} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone + */ + offset?: number; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone | null): any; diff --git a/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.js b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.js new file mode 100644 index 0000000..974dc18 --- /dev/null +++ b/dist/esm/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone interface. + */ +export function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone(value) { + return true; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSONTyped(json, false); +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/SupplyOverdueReasonEnum.d.ts b/dist/esm/models/SupplyOverdueReasonEnum.d.ts new file mode 100644 index 0000000..3a6c95c --- /dev/null +++ b/dist/esm/models/SupplyOverdueReasonEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина просрочки поставки: + * - `UNSPECIFIED` — не определена; + * - `ORDER_TIMESLOT_EXPIRED` — поставка не доставлена в указанный таймслот; + * - `ORDER_TIMESLOT_NOT_SELECTED` — таймслот не указан вовремя; + * - `NOT_READY_FOR_PICKUP` — пикап-поставка не приведена в статус `ReadyToSupply` вовремя; + * - `PICKUP_FAILED` — курьер не смог забрать поставку; + * - `UNDEFINED` — неизвестная. + * + * @export + */ +export declare const SupplyOverdueReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ORDER_TIMESLOT_EXPIRED: "ORDER_TIMESLOT_EXPIRED"; + readonly ORDER_TIMESLOT_NOT_SELECTED: "ORDER_TIMESLOT_NOT_SELECTED"; + readonly NOT_READY_FOR_PICKUP: "NOT_READY_FOR_PICKUP"; + readonly PICKUP_FAILED: "PICKUP_FAILED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type SupplyOverdueReasonEnum = typeof SupplyOverdueReasonEnum[keyof typeof SupplyOverdueReasonEnum]; +export declare function instanceOfSupplyOverdueReasonEnum(value: any): boolean; +export declare function SupplyOverdueReasonEnumFromJSON(json: any): SupplyOverdueReasonEnum; +export declare function SupplyOverdueReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOverdueReasonEnum; +export declare function SupplyOverdueReasonEnumToJSON(value?: SupplyOverdueReasonEnum | null): any; diff --git a/dist/esm/models/SupplyOverdueReasonEnum.js b/dist/esm/models/SupplyOverdueReasonEnum.js new file mode 100644 index 0000000..601938b --- /dev/null +++ b/dist/esm/models/SupplyOverdueReasonEnum.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина просрочки поставки: + * - `UNSPECIFIED` — не определена; + * - `ORDER_TIMESLOT_EXPIRED` — поставка не доставлена в указанный таймслот; + * - `ORDER_TIMESLOT_NOT_SELECTED` — таймслот не указан вовремя; + * - `NOT_READY_FOR_PICKUP` — пикап-поставка не приведена в статус `ReadyToSupply` вовремя; + * - `PICKUP_FAILED` — курьер не смог забрать поставку; + * - `UNDEFINED` — неизвестная. + * + * @export + */ +export const SupplyOverdueReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ORDER_TIMESLOT_EXPIRED: 'ORDER_TIMESLOT_EXPIRED', + ORDER_TIMESLOT_NOT_SELECTED: 'ORDER_TIMESLOT_NOT_SELECTED', + NOT_READY_FOR_PICKUP: 'NOT_READY_FOR_PICKUP', + PICKUP_FAILED: 'PICKUP_FAILED', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfSupplyOverdueReasonEnum(value) { + for (const key in SupplyOverdueReasonEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyOverdueReasonEnum, key)) { + if (SupplyOverdueReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyOverdueReasonEnumFromJSON(json) { + return SupplyOverdueReasonEnumFromJSONTyped(json, false); +} +export function SupplyOverdueReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyOverdueReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyStateEnum.d.ts b/dist/esm/models/SupplyStateEnum.d.ts new file mode 100644 index 0000000..63705d6 --- /dev/null +++ b/dist/esm/models/SupplyStateEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — не указан; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTED_AT_STORAGE_WAREHOUSE` — принята на складе хранения; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export declare const SupplyStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTED_AT_STORAGE_WAREHOUSE: "ACCEPTED_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type SupplyStateEnum = typeof SupplyStateEnum[keyof typeof SupplyStateEnum]; +export declare function instanceOfSupplyStateEnum(value: any): boolean; +export declare function SupplyStateEnumFromJSON(json: any): SupplyStateEnum; +export declare function SupplyStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyStateEnum; +export declare function SupplyStateEnumToJSON(value?: SupplyStateEnum | null): any; diff --git a/dist/esm/models/SupplyStateEnum.js b/dist/esm/models/SupplyStateEnum.js new file mode 100644 index 0000000..c89732b --- /dev/null +++ b/dist/esm/models/SupplyStateEnum.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — не указан; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTED_AT_STORAGE_WAREHOUSE` — принята на складе хранения; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export const SupplyStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTED_AT_STORAGE_WAREHOUSE: 'ACCEPTED_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +export function instanceOfSupplyStateEnum(value) { + for (const key in SupplyStateEnum) { + if (Object.prototype.hasOwnProperty.call(SupplyStateEnum, key)) { + if (SupplyStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function SupplyStateEnumFromJSON(json) { + return SupplyStateEnumFromJSONTyped(json, false); +} +export function SupplyStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function SupplyStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/SupplyStorageWarehouse.d.ts b/dist/esm/models/SupplyStorageWarehouse.d.ts new file mode 100644 index 0000000..9dab7ea --- /dev/null +++ b/dist/esm/models/SupplyStorageWarehouse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад хранения для поставок с типом `DIRECT`. + * @export + * @interface SupplyStorageWarehouse + */ +export interface SupplyStorageWarehouse { + /** + * Адрес склада хранения. + * @type {string} + * @memberof SupplyStorageWarehouse + */ + address?: string; + /** + * Дата прибытия на склад хранения. + * @type {string} + * @memberof SupplyStorageWarehouse + * @deprecated + */ + arrival_date?: string; + /** + * Название склада хранения. + * @type {string} + * @memberof SupplyStorageWarehouse + */ + name?: string; + /** + * Идентификатор склада хранения. + * @type {number} + * @memberof SupplyStorageWarehouse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the SupplyStorageWarehouse interface. + */ +export declare function instanceOfSupplyStorageWarehouse(value: object): value is SupplyStorageWarehouse; +export declare function SupplyStorageWarehouseFromJSON(json: any): SupplyStorageWarehouse; +export declare function SupplyStorageWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyStorageWarehouse; +export declare function SupplyStorageWarehouseToJSON(value?: SupplyStorageWarehouse | null): any; diff --git a/dist/esm/models/SupplyStorageWarehouse.js b/dist/esm/models/SupplyStorageWarehouse.js new file mode 100644 index 0000000..c89c55e --- /dev/null +++ b/dist/esm/models/SupplyStorageWarehouse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyStorageWarehouse interface. + */ +export function instanceOfSupplyStorageWarehouse(value) { + return true; +} +export function SupplyStorageWarehouseFromJSON(json) { + return SupplyStorageWarehouseFromJSONTyped(json, false); +} +export function SupplyStorageWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'arrival_date': json['arrival_date'] == null ? undefined : json['arrival_date'], + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function SupplyStorageWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'arrival_date': value['arrival_date'], + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/SupplySupplyTags.d.ts b/dist/esm/models/SupplySupplyTags.d.ts new file mode 100644 index 0000000..6b3d52b --- /dev/null +++ b/dist/esm/models/SupplySupplyTags.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метки поставки. + * @export + * @interface SupplySupplyTags + */ +export interface SupplySupplyTags { + /** + * `true`, если включена схема поставки товаров с заморозкой стока. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + freeze_stock_for_marking?: boolean; + /** + * `true`, если для поставки нужна электронная ТТН. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_ettn_required?: boolean; + /** + * `true`, если в поставке есть товары с сертификацией в системе «Меркурий». + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_evsd_required?: boolean; + /** + * `true`, если в поставке есть ювелирные товары. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_jewelry?: boolean; + /** + * `true`, если в поставке есть товары, для которых возможна маркировка. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_marking_possible?: boolean; + /** + * `true`, если в поставке есть товары, для которых маркировка обязательна. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_marking_required?: boolean; + /** + * `true`, если для поставки нужно передать УПД. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_utd?: boolean; +} +/** + * Check if a given object implements the SupplySupplyTags interface. + */ +export declare function instanceOfSupplySupplyTags(value: object): value is SupplySupplyTags; +export declare function SupplySupplyTagsFromJSON(json: any): SupplySupplyTags; +export declare function SupplySupplyTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplySupplyTags; +export declare function SupplySupplyTagsToJSON(value?: SupplySupplyTags | null): any; diff --git a/dist/esm/models/SupplySupplyTags.js b/dist/esm/models/SupplySupplyTags.js new file mode 100644 index 0000000..2dfa08a --- /dev/null +++ b/dist/esm/models/SupplySupplyTags.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplySupplyTags interface. + */ +export function instanceOfSupplySupplyTags(value) { + return true; +} +export function SupplySupplyTagsFromJSON(json) { + return SupplySupplyTagsFromJSONTyped(json, false); +} +export function SupplySupplyTagsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'freeze_stock_for_marking': json['freeze_stock_for_marking'] == null ? undefined : json['freeze_stock_for_marking'], + 'is_ettn_required': json['is_ettn_required'] == null ? undefined : json['is_ettn_required'], + 'is_evsd_required': json['is_evsd_required'] == null ? undefined : json['is_evsd_required'], + 'is_jewelry': json['is_jewelry'] == null ? undefined : json['is_jewelry'], + 'is_marking_possible': json['is_marking_possible'] == null ? undefined : json['is_marking_possible'], + 'is_marking_required': json['is_marking_required'] == null ? undefined : json['is_marking_required'], + 'is_utd': json['is_utd'] == null ? undefined : json['is_utd'], + }; +} +export function SupplySupplyTagsToJSON(value) { + if (value == null) { + return value; + } + return { + 'freeze_stock_for_marking': value['freeze_stock_for_marking'], + 'is_ettn_required': value['is_ettn_required'], + 'is_evsd_required': value['is_evsd_required'], + 'is_jewelry': value['is_jewelry'], + 'is_marking_possible': value['is_marking_possible'], + 'is_marking_required': value['is_marking_required'], + 'is_utd': value['is_utd'], + }; +} diff --git a/dist/esm/models/SupplyTags.d.ts b/dist/esm/models/SupplyTags.d.ts new file mode 100644 index 0000000..ea52360 --- /dev/null +++ b/dist/esm/models/SupplyTags.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метки поставки. + * @export + * @interface SupplyTags + */ +export interface SupplyTags { + /** + * `true`, если для поставки нужна электронная ТТН. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_ettn_required?: boolean; + /** + * `true`, если в поставке есть товары с сертификацией в системе «Меркурий». + * + * @type {boolean} + * @memberof SupplyTags + */ + is_evsd_required?: boolean; + /** + * `true`, если в поставке есть ювелирные товары. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_jewelry?: boolean; + /** + * `true`, если в поставке есть товары, для которых возможна маркировка. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_marking_possible?: boolean; + /** + * `true`, если в поставке есть товары, для которых маркировка обязательна. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_marking_required?: boolean; + /** + * `true`, если для поставки нужно передать УПД. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_utd?: boolean; +} +/** + * Check if a given object implements the SupplyTags interface. + */ +export declare function instanceOfSupplyTags(value: object): value is SupplyTags; +export declare function SupplyTagsFromJSON(json: any): SupplyTags; +export declare function SupplyTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyTags; +export declare function SupplyTagsToJSON(value?: SupplyTags | null): any; diff --git a/dist/esm/models/SupplyTags.js b/dist/esm/models/SupplyTags.js new file mode 100644 index 0000000..853c50d --- /dev/null +++ b/dist/esm/models/SupplyTags.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the SupplyTags interface. + */ +export function instanceOfSupplyTags(value) { + return true; +} +export function SupplyTagsFromJSON(json) { + return SupplyTagsFromJSONTyped(json, false); +} +export function SupplyTagsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_ettn_required': json['is_ettn_required'] == null ? undefined : json['is_ettn_required'], + 'is_evsd_required': json['is_evsd_required'] == null ? undefined : json['is_evsd_required'], + 'is_jewelry': json['is_jewelry'] == null ? undefined : json['is_jewelry'], + 'is_marking_possible': json['is_marking_possible'] == null ? undefined : json['is_marking_possible'], + 'is_marking_required': json['is_marking_required'] == null ? undefined : json['is_marking_required'], + 'is_utd': json['is_utd'] == null ? undefined : json['is_utd'], + }; +} +export function SupplyTagsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_ettn_required': value['is_ettn_required'], + 'is_evsd_required': value['is_evsd_required'], + 'is_jewelry': value['is_jewelry'], + 'is_marking_possible': value['is_marking_possible'], + 'is_marking_required': value['is_marking_required'], + 'is_utd': value['is_utd'], + }; +} diff --git a/dist/esm/models/TaskAutoModeratedInfo.d.ts b/dist/esm/models/TaskAutoModeratedInfo.d.ts new file mode 100644 index 0000000..1e62795 --- /dev/null +++ b/dist/esm/models/TaskAutoModeratedInfo.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об автоматической модерации заявки. + * @export + * @interface TaskAutoModeratedInfo + */ +export interface TaskAutoModeratedInfo { + /** + * Максимальная скидка для одобрения. + * @type {number} + * @memberof TaskAutoModeratedInfo + */ + max_percent?: number; + /** + * Цена в заявке. + * @type {number} + * @memberof TaskAutoModeratedInfo + */ + max_price?: number; + /** + * Минимальная скидка для одобрения. + * @type {number} + * @memberof TaskAutoModeratedInfo + */ + min_percent?: number; + /** + * Минимальная цена для одобрения. + * @type {number} + * @memberof TaskAutoModeratedInfo + */ + min_price?: number; +} +/** + * Check if a given object implements the TaskAutoModeratedInfo interface. + */ +export declare function instanceOfTaskAutoModeratedInfo(value: object): value is TaskAutoModeratedInfo; +export declare function TaskAutoModeratedInfoFromJSON(json: any): TaskAutoModeratedInfo; +export declare function TaskAutoModeratedInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskAutoModeratedInfo; +export declare function TaskAutoModeratedInfoToJSON(value?: TaskAutoModeratedInfo | null): any; diff --git a/dist/esm/models/TaskAutoModeratedInfo.js b/dist/esm/models/TaskAutoModeratedInfo.js new file mode 100644 index 0000000..5b15c88 --- /dev/null +++ b/dist/esm/models/TaskAutoModeratedInfo.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the TaskAutoModeratedInfo interface. + */ +export function instanceOfTaskAutoModeratedInfo(value) { + return true; +} +export function TaskAutoModeratedInfoFromJSON(json) { + return TaskAutoModeratedInfoFromJSONTyped(json, false); +} +export function TaskAutoModeratedInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'max_percent': json['max_percent'] == null ? undefined : json['max_percent'], + 'max_price': json['max_price'] == null ? undefined : json['max_price'], + 'min_percent': json['min_percent'] == null ? undefined : json['min_percent'], + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + }; +} +export function TaskAutoModeratedInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'max_percent': value['max_percent'], + 'max_price': value['max_price'], + 'min_percent': value['min_percent'], + 'min_price': value['min_price'], + }; +} diff --git a/dist/esm/models/TimeslotCanNotSetTimeslotReasonEnum.d.ts b/dist/esm/models/TimeslotCanNotSetTimeslotReasonEnum.d.ts new file mode 100644 index 0000000..2f6de00 --- /dev/null +++ b/dist/esm/models/TimeslotCanNotSetTimeslotReasonEnum.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const TimeslotCanNotSetTimeslotReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_ORDER_STATE: "INVALID_ORDER_STATE"; + readonly ORDER_IS_VIRTUAL: "ORDER_IS_VIRTUAL"; + readonly SET_TIMESLOT_DEADLINE_EXCEED: "SET_TIMESLOT_DEADLINE_EXCEED"; + readonly ORDER_DOES_NOT_BELONG_TO_COMPANY: "ORDER_DOES_NOT_BELONG_TO_COMPANY"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type TimeslotCanNotSetTimeslotReasonEnum = typeof TimeslotCanNotSetTimeslotReasonEnum[keyof typeof TimeslotCanNotSetTimeslotReasonEnum]; +export declare function instanceOfTimeslotCanNotSetTimeslotReasonEnum(value: any): boolean; +export declare function TimeslotCanNotSetTimeslotReasonEnumFromJSON(json: any): TimeslotCanNotSetTimeslotReasonEnum; +export declare function TimeslotCanNotSetTimeslotReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotCanNotSetTimeslotReasonEnum; +export declare function TimeslotCanNotSetTimeslotReasonEnumToJSON(value?: TimeslotCanNotSetTimeslotReasonEnum | null): any; diff --git a/dist/esm/models/TimeslotCanNotSetTimeslotReasonEnum.js b/dist/esm/models/TimeslotCanNotSetTimeslotReasonEnum.js new file mode 100644 index 0000000..8886bda --- /dev/null +++ b/dist/esm/models/TimeslotCanNotSetTimeslotReasonEnum.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const TimeslotCanNotSetTimeslotReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_ORDER_STATE: 'INVALID_ORDER_STATE', + ORDER_IS_VIRTUAL: 'ORDER_IS_VIRTUAL', + SET_TIMESLOT_DEADLINE_EXCEED: 'SET_TIMESLOT_DEADLINE_EXCEED', + ORDER_DOES_NOT_BELONG_TO_COMPANY: 'ORDER_DOES_NOT_BELONG_TO_COMPANY', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfTimeslotCanNotSetTimeslotReasonEnum(value) { + for (const key in TimeslotCanNotSetTimeslotReasonEnum) { + if (Object.prototype.hasOwnProperty.call(TimeslotCanNotSetTimeslotReasonEnum, key)) { + if (TimeslotCanNotSetTimeslotReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function TimeslotCanNotSetTimeslotReasonEnumFromJSON(json) { + return TimeslotCanNotSetTimeslotReasonEnumFromJSONTyped(json, false); +} +export function TimeslotCanNotSetTimeslotReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function TimeslotCanNotSetTimeslotReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/TimeslotFromRangeTimeslotFilterTypeEnum.d.ts b/dist/esm/models/TimeslotFromRangeTimeslotFilterTypeEnum.d.ts new file mode 100644 index 0000000..a68f148 --- /dev/null +++ b/dist/esm/models/TimeslotFromRangeTimeslotFilterTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип даты таймслота: + * - `BY_LOCAL_TIME` — по локальному времени пункта отгрузки; + * - `BY_UTC_TIME` — по времени в UTC. + * + * @export + */ +export declare const TimeslotFromRangeTimeslotFilterTypeEnum: { + readonly LOCAL_TIME: "BY_LOCAL_TIME"; + readonly UTC_TIME: "BY_UTC_TIME"; +}; +export type TimeslotFromRangeTimeslotFilterTypeEnum = typeof TimeslotFromRangeTimeslotFilterTypeEnum[keyof typeof TimeslotFromRangeTimeslotFilterTypeEnum]; +export declare function instanceOfTimeslotFromRangeTimeslotFilterTypeEnum(value: any): boolean; +export declare function TimeslotFromRangeTimeslotFilterTypeEnumFromJSON(json: any): TimeslotFromRangeTimeslotFilterTypeEnum; +export declare function TimeslotFromRangeTimeslotFilterTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotFromRangeTimeslotFilterTypeEnum; +export declare function TimeslotFromRangeTimeslotFilterTypeEnumToJSON(value?: TimeslotFromRangeTimeslotFilterTypeEnum | null): any; diff --git a/dist/esm/models/TimeslotFromRangeTimeslotFilterTypeEnum.js b/dist/esm/models/TimeslotFromRangeTimeslotFilterTypeEnum.js new file mode 100644 index 0000000..8284e9d --- /dev/null +++ b/dist/esm/models/TimeslotFromRangeTimeslotFilterTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип даты таймслота: + * - `BY_LOCAL_TIME` — по локальному времени пункта отгрузки; + * - `BY_UTC_TIME` — по времени в UTC. + * + * @export + */ +export const TimeslotFromRangeTimeslotFilterTypeEnum = { + LOCAL_TIME: 'BY_LOCAL_TIME', + UTC_TIME: 'BY_UTC_TIME' +}; +export function instanceOfTimeslotFromRangeTimeslotFilterTypeEnum(value) { + for (const key in TimeslotFromRangeTimeslotFilterTypeEnum) { + if (Object.prototype.hasOwnProperty.call(TimeslotFromRangeTimeslotFilterTypeEnum, key)) { + if (TimeslotFromRangeTimeslotFilterTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function TimeslotFromRangeTimeslotFilterTypeEnumFromJSON(json) { + return TimeslotFromRangeTimeslotFilterTypeEnumFromJSONTyped(json, false); +} +export function TimeslotFromRangeTimeslotFilterTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function TimeslotFromRangeTimeslotFilterTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/TimeslotTZTimeslot.d.ts b/dist/esm/models/TimeslotTZTimeslot.d.ts new file mode 100644 index 0000000..d9f2968 --- /dev/null +++ b/dist/esm/models/TimeslotTZTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал поставки по местному времени. + * @export + * @interface TimeslotTZTimeslot + */ +export interface TimeslotTZTimeslot { + /** + * Дата начала. + * @type {string} + * @memberof TimeslotTZTimeslot + */ + from?: string; + /** + * Дата окончания. + * @type {string} + * @memberof TimeslotTZTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the TimeslotTZTimeslot interface. + */ +export declare function instanceOfTimeslotTZTimeslot(value: object): value is TimeslotTZTimeslot; +export declare function TimeslotTZTimeslotFromJSON(json: any): TimeslotTZTimeslot; +export declare function TimeslotTZTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotTZTimeslot; +export declare function TimeslotTZTimeslotToJSON(value?: TimeslotTZTimeslot | null): any; diff --git a/dist/esm/models/TimeslotTZTimeslot.js b/dist/esm/models/TimeslotTZTimeslot.js new file mode 100644 index 0000000..d85c0cf --- /dev/null +++ b/dist/esm/models/TimeslotTZTimeslot.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the TimeslotTZTimeslot interface. + */ +export function instanceOfTimeslotTZTimeslot(value) { + return true; +} +export function TimeslotTZTimeslotFromJSON(json) { + return TimeslotTZTimeslotFromJSONTyped(json, false); +} +export function TimeslotTZTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function TimeslotTZTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/TimeslotTZTimezoneInfo.d.ts b/dist/esm/models/TimeslotTZTimezoneInfo.d.ts new file mode 100644 index 0000000..5d73564 --- /dev/null +++ b/dist/esm/models/TimeslotTZTimezoneInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface TimeslotTZTimezoneInfo + */ +export interface TimeslotTZTimezoneInfo { + /** + * Название часового пояса. + * @type {string} + * @memberof TimeslotTZTimezoneInfo + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {string} + * @memberof TimeslotTZTimezoneInfo + */ + offset?: string; +} +/** + * Check if a given object implements the TimeslotTZTimezoneInfo interface. + */ +export declare function instanceOfTimeslotTZTimezoneInfo(value: object): value is TimeslotTZTimezoneInfo; +export declare function TimeslotTZTimezoneInfoFromJSON(json: any): TimeslotTZTimezoneInfo; +export declare function TimeslotTZTimezoneInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotTZTimezoneInfo; +export declare function TimeslotTZTimezoneInfoToJSON(value?: TimeslotTZTimezoneInfo | null): any; diff --git a/dist/esm/models/TimeslotTZTimezoneInfo.js b/dist/esm/models/TimeslotTZTimezoneInfo.js new file mode 100644 index 0000000..211f007 --- /dev/null +++ b/dist/esm/models/TimeslotTZTimezoneInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the TimeslotTZTimezoneInfo interface. + */ +export function instanceOfTimeslotTZTimezoneInfo(value) { + return true; +} +export function TimeslotTZTimezoneInfoFromJSON(json) { + return TimeslotTZTimezoneInfoFromJSONTyped(json, false); +} +export function TimeslotTZTimezoneInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function TimeslotTZTimezoneInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/TimeslotValueTimeslot.d.ts b/dist/esm/models/TimeslotValueTimeslot.d.ts new file mode 100644 index 0000000..22c14b4 --- /dev/null +++ b/dist/esm/models/TimeslotValueTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал поставки по местному времени. + * @export + * @interface TimeslotValueTimeslot + */ +export interface TimeslotValueTimeslot { + /** + * Дата и время начала интервала. + * @type {string} + * @memberof TimeslotValueTimeslot + */ + from?: string; + /** + * Дата и время окончания интервала. + * @type {string} + * @memberof TimeslotValueTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the TimeslotValueTimeslot interface. + */ +export declare function instanceOfTimeslotValueTimeslot(value: object): value is TimeslotValueTimeslot; +export declare function TimeslotValueTimeslotFromJSON(json: any): TimeslotValueTimeslot; +export declare function TimeslotValueTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotValueTimeslot; +export declare function TimeslotValueTimeslotToJSON(value?: TimeslotValueTimeslot | null): any; diff --git a/dist/esm/models/TimeslotValueTimeslot.js b/dist/esm/models/TimeslotValueTimeslot.js new file mode 100644 index 0000000..6de0ffb --- /dev/null +++ b/dist/esm/models/TimeslotValueTimeslot.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the TimeslotValueTimeslot interface. + */ +export function instanceOfTimeslotValueTimeslot(value) { + return true; +} +export function TimeslotValueTimeslotFromJSON(json) { + return TimeslotValueTimeslotFromJSONTyped(json, false); +} +export function TimeslotValueTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function TimeslotValueTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/TimetableWorkingHours.d.ts b/dist/esm/models/TimetableWorkingHours.d.ts new file mode 100644 index 0000000..c581174 --- /dev/null +++ b/dist/esm/models/TimetableWorkingHours.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часы работы склада. + * @export + * @interface TimetableWorkingHours + */ +export interface TimetableWorkingHours { + /** + * Время начала работы. + * @type {string} + * @memberof TimetableWorkingHours + */ + time_from?: string; + /** + * Время окончания работы. + * @type {string} + * @memberof TimetableWorkingHours + */ + time_to?: string; +} +/** + * Check if a given object implements the TimetableWorkingHours interface. + */ +export declare function instanceOfTimetableWorkingHours(value: object): value is TimetableWorkingHours; +export declare function TimetableWorkingHoursFromJSON(json: any): TimetableWorkingHours; +export declare function TimetableWorkingHoursFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimetableWorkingHours; +export declare function TimetableWorkingHoursToJSON(value?: TimetableWorkingHours | null): any; diff --git a/dist/esm/models/TimetableWorkingHours.js b/dist/esm/models/TimetableWorkingHours.js new file mode 100644 index 0000000..6bff752 --- /dev/null +++ b/dist/esm/models/TimetableWorkingHours.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the TimetableWorkingHours interface. + */ +export function instanceOfTimetableWorkingHours(value) { + return true; +} +export function TimetableWorkingHoursFromJSON(json) { + return TimetableWorkingHoursFromJSONTyped(json, false); +} +export function TimetableWorkingHoursFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'time_from': json['time_from'] == null ? undefined : json['time_from'], + 'time_to': json['time_to'] == null ? undefined : json['time_to'], + }; +} +export function TimetableWorkingHoursToJSON(value) { + if (value == null) { + return value; + } + return { + 'time_from': value['time_from'], + 'time_to': value['time_to'], + }; +} diff --git a/dist/esm/models/TypeTimeOfDay.d.ts b/dist/esm/models/TypeTimeOfDay.d.ts new file mode 100644 index 0000000..565110c --- /dev/null +++ b/dist/esm/models/TypeTimeOfDay.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Время, до которого нужно передать отправления, чтобы получить скидку за отгрузку. + * @export + * @interface TypeTimeOfDay + */ +export interface TypeTimeOfDay { + /** + * Час. + * @type {number} + * @memberof TypeTimeOfDay + */ + hours?: number; + /** + * Минута. + * @type {number} + * @memberof TypeTimeOfDay + */ + minutes?: number; + /** + * Наносекунда. + * @type {number} + * @memberof TypeTimeOfDay + */ + nanos?: number; + /** + * Секунда. + * @type {number} + * @memberof TypeTimeOfDay + */ + seconds?: number; +} +/** + * Check if a given object implements the TypeTimeOfDay interface. + */ +export declare function instanceOfTypeTimeOfDay(value: object): value is TypeTimeOfDay; +export declare function TypeTimeOfDayFromJSON(json: any): TypeTimeOfDay; +export declare function TypeTimeOfDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypeTimeOfDay; +export declare function TypeTimeOfDayToJSON(value?: TypeTimeOfDay | null): any; diff --git a/dist/esm/models/TypeTimeOfDay.js b/dist/esm/models/TypeTimeOfDay.js new file mode 100644 index 0000000..e6926b9 --- /dev/null +++ b/dist/esm/models/TypeTimeOfDay.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the TypeTimeOfDay interface. + */ +export function instanceOfTypeTimeOfDay(value) { + return true; +} +export function TypeTimeOfDayFromJSON(json) { + return TypeTimeOfDayFromJSONTyped(json, false); +} +export function TypeTimeOfDayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'hours': json['hours'] == null ? undefined : json['hours'], + 'minutes': json['minutes'] == null ? undefined : json['minutes'], + 'nanos': json['nanos'] == null ? undefined : json['nanos'], + 'seconds': json['seconds'] == null ? undefined : json['seconds'], + }; +} +export function TypeTimeOfDayToJSON(value) { + if (value == null) { + return value; + } + return { + 'hours': value['hours'], + 'minutes': value['minutes'], + 'nanos': value['nanos'], + 'seconds': value['seconds'], + }; +} diff --git a/dist/esm/models/UploadPostingCodesRequestPostingLineExemplarInfo.d.ts b/dist/esm/models/UploadPostingCodesRequestPostingLineExemplarInfo.d.ts new file mode 100644 index 0000000..655e2db --- /dev/null +++ b/dist/esm/models/UploadPostingCodesRequestPostingLineExemplarInfo.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UploadPostingCodesRequestPostingLineExemplarInfo + */ +export interface UploadPostingCodesRequestPostingLineExemplarInfo { + /** + * Список кодов цифрового товара. Количество кодов должно совпадать со значением параметра `exemplar_qty`. + * @type {Array} + * @memberof UploadPostingCodesRequestPostingLineExemplarInfo + */ + exemplar_keys?: Array; + /** + * Количество кодов цифрового товара, которые вы передаёте покупателю.

Сумма значений в параметрах `exemplar_qty ` и `not_available_exemplar_qty` должна равняться количеству кодов в заказе. Получите это значение в параметре `required_qty_for_digital_code` в ответе метода [/v1/posting/digital/list](#operation/ListPostingCodes). + * @type {number} + * @memberof UploadPostingCodesRequestPostingLineExemplarInfo + */ + exemplar_qty: number; + /** + * Количество кодов цифрового товара, которые вы не можете передать покупателю.

Сумма значений в параметрах `exemplar_qty ` и `not_available_exemplar_qty` должна равняться количеству кодов в заказе. Получите это значение в параметре `required_qty_for_digital_code` в ответе метода [/v1/posting/digital/list](#operation/ListPostingCodes). + * @type {number} + * @memberof UploadPostingCodesRequestPostingLineExemplarInfo + */ + not_available_exemplar_qty: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof UploadPostingCodesRequestPostingLineExemplarInfo + */ + sku: number; +} +/** + * Check if a given object implements the UploadPostingCodesRequestPostingLineExemplarInfo interface. + */ +export declare function instanceOfUploadPostingCodesRequestPostingLineExemplarInfo(value: object): value is UploadPostingCodesRequestPostingLineExemplarInfo; +export declare function UploadPostingCodesRequestPostingLineExemplarInfoFromJSON(json: any): UploadPostingCodesRequestPostingLineExemplarInfo; +export declare function UploadPostingCodesRequestPostingLineExemplarInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadPostingCodesRequestPostingLineExemplarInfo; +export declare function UploadPostingCodesRequestPostingLineExemplarInfoToJSON(value?: UploadPostingCodesRequestPostingLineExemplarInfo | null): any; diff --git a/dist/esm/models/UploadPostingCodesRequestPostingLineExemplarInfo.js b/dist/esm/models/UploadPostingCodesRequestPostingLineExemplarInfo.js new file mode 100644 index 0000000..5376a64 --- /dev/null +++ b/dist/esm/models/UploadPostingCodesRequestPostingLineExemplarInfo.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the UploadPostingCodesRequestPostingLineExemplarInfo interface. + */ +export function instanceOfUploadPostingCodesRequestPostingLineExemplarInfo(value) { + if (!('exemplar_qty' in value) || value['exemplar_qty'] === undefined) + return false; + if (!('not_available_exemplar_qty' in value) || value['not_available_exemplar_qty'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function UploadPostingCodesRequestPostingLineExemplarInfoFromJSON(json) { + return UploadPostingCodesRequestPostingLineExemplarInfoFromJSONTyped(json, false); +} +export function UploadPostingCodesRequestPostingLineExemplarInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_keys': json['exemplar_keys'] == null ? undefined : json['exemplar_keys'], + 'exemplar_qty': json['exemplar_qty'], + 'not_available_exemplar_qty': json['not_available_exemplar_qty'], + 'sku': json['sku'], + }; +} +export function UploadPostingCodesRequestPostingLineExemplarInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_keys': value['exemplar_keys'], + 'exemplar_qty': value['exemplar_qty'], + 'not_available_exemplar_qty': value['not_available_exemplar_qty'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/UploadPostingCodesResponsePostingExemplarInfo.d.ts b/dist/esm/models/UploadPostingCodesResponsePostingExemplarInfo.d.ts new file mode 100644 index 0000000..e81cd8c --- /dev/null +++ b/dist/esm/models/UploadPostingCodesResponsePostingExemplarInfo.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingExemplarInfoExemplarError } from './PostingExemplarInfoExemplarError'; +/** + * + * @export + * @interface UploadPostingCodesResponsePostingExemplarInfo + */ +export interface UploadPostingCodesResponsePostingExemplarInfo { + /** + * Список кодов цифровых товаров с ошибками. + * @type {Array} + * @memberof UploadPostingCodesResponsePostingExemplarInfo + */ + failed_exemplars?: Array; + /** + * Количество кодов цифрового товара, которые были приняты. + * @type {number} + * @memberof UploadPostingCodesResponsePostingExemplarInfo + */ + received_qty?: number; + /** + * Количество кодов цифровых товаров, которые не были приняты или переданы. + * @type {number} + * @memberof UploadPostingCodesResponsePostingExemplarInfo + */ + rejected_qty?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof UploadPostingCodesResponsePostingExemplarInfo + */ + sku?: number; +} +/** + * Check if a given object implements the UploadPostingCodesResponsePostingExemplarInfo interface. + */ +export declare function instanceOfUploadPostingCodesResponsePostingExemplarInfo(value: object): value is UploadPostingCodesResponsePostingExemplarInfo; +export declare function UploadPostingCodesResponsePostingExemplarInfoFromJSON(json: any): UploadPostingCodesResponsePostingExemplarInfo; +export declare function UploadPostingCodesResponsePostingExemplarInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadPostingCodesResponsePostingExemplarInfo; +export declare function UploadPostingCodesResponsePostingExemplarInfoToJSON(value?: UploadPostingCodesResponsePostingExemplarInfo | null): any; diff --git a/dist/esm/models/UploadPostingCodesResponsePostingExemplarInfo.js b/dist/esm/models/UploadPostingCodesResponsePostingExemplarInfo.js new file mode 100644 index 0000000..567c9fe --- /dev/null +++ b/dist/esm/models/UploadPostingCodesResponsePostingExemplarInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingExemplarInfoExemplarErrorFromJSON, PostingExemplarInfoExemplarErrorToJSON, } from './PostingExemplarInfoExemplarError'; +/** + * Check if a given object implements the UploadPostingCodesResponsePostingExemplarInfo interface. + */ +export function instanceOfUploadPostingCodesResponsePostingExemplarInfo(value) { + return true; +} +export function UploadPostingCodesResponsePostingExemplarInfoFromJSON(json) { + return UploadPostingCodesResponsePostingExemplarInfoFromJSONTyped(json, false); +} +export function UploadPostingCodesResponsePostingExemplarInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'failed_exemplars': json['failed_exemplars'] == null ? undefined : (json['failed_exemplars'].map(PostingExemplarInfoExemplarErrorFromJSON)), + 'received_qty': json['received_qty'] == null ? undefined : json['received_qty'], + 'rejected_qty': json['rejected_qty'] == null ? undefined : json['rejected_qty'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function UploadPostingCodesResponsePostingExemplarInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'failed_exemplars': value['failed_exemplars'] == null ? undefined : (value['failed_exemplars'].map(PostingExemplarInfoExemplarErrorToJSON)), + 'received_qty': value['received_qty'], + 'rejected_qty': value['rejected_qty'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/UtilizationDefectsMoney.d.ts b/dist/esm/models/UtilizationDefectsMoney.d.ts new file mode 100644 index 0000000..2d1db7c --- /dev/null +++ b/dist/esm/models/UtilizationDefectsMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Максимальная цена автоутилизации для товаров с дефектами. + * @export + * @interface UtilizationDefectsMoney + */ +export interface UtilizationDefectsMoney { + /** + * Сумма. + * @type {string} + * @memberof UtilizationDefectsMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof UtilizationDefectsMoney + */ + currency?: string; +} +/** + * Check if a given object implements the UtilizationDefectsMoney interface. + */ +export declare function instanceOfUtilizationDefectsMoney(value: object): value is UtilizationDefectsMoney; +export declare function UtilizationDefectsMoneyFromJSON(json: any): UtilizationDefectsMoney; +export declare function UtilizationDefectsMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UtilizationDefectsMoney; +export declare function UtilizationDefectsMoneyToJSON(value?: UtilizationDefectsMoney | null): any; diff --git a/dist/esm/models/UtilizationDefectsMoney.js b/dist/esm/models/UtilizationDefectsMoney.js new file mode 100644 index 0000000..a36c919 --- /dev/null +++ b/dist/esm/models/UtilizationDefectsMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the UtilizationDefectsMoney interface. + */ +export function instanceOfUtilizationDefectsMoney(value) { + return true; +} +export function UtilizationDefectsMoneyFromJSON(json) { + return UtilizationDefectsMoneyFromJSONTyped(json, false); +} +export function UtilizationDefectsMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function UtilizationDefectsMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/UtilizationMoney.d.ts b/dist/esm/models/UtilizationMoney.d.ts new file mode 100644 index 0000000..053ad03 --- /dev/null +++ b/dist/esm/models/UtilizationMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Максимальная цена автоутилизации для товаров без дефектов. + * @export + * @interface UtilizationMoney + */ +export interface UtilizationMoney { + /** + * Сумма. + * @type {string} + * @memberof UtilizationMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof UtilizationMoney + */ + currency?: string; +} +/** + * Check if a given object implements the UtilizationMoney interface. + */ +export declare function instanceOfUtilizationMoney(value: object): value is UtilizationMoney; +export declare function UtilizationMoneyFromJSON(json: any): UtilizationMoney; +export declare function UtilizationMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UtilizationMoney; +export declare function UtilizationMoneyToJSON(value?: UtilizationMoney | null): any; diff --git a/dist/esm/models/UtilizationMoney.js b/dist/esm/models/UtilizationMoney.js new file mode 100644 index 0000000..135d1b1 --- /dev/null +++ b/dist/esm/models/UtilizationMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the UtilizationMoney interface. + */ +export function instanceOfUtilizationMoney(value) { + return true; +} +export function UtilizationMoneyFromJSON(json) { + return UtilizationMoneyFromJSONTyped(json, false); +} +export function UtilizationMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +export function UtilizationMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/esm/models/V1AddBarcodeRequest.d.ts b/dist/esm/models/V1AddBarcodeRequest.d.ts new file mode 100644 index 0000000..17e3ac6 --- /dev/null +++ b/dist/esm/models/V1AddBarcodeRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Barcode } from './V1Barcode'; +/** + * + * @export + * @interface V1AddBarcodeRequest + */ +export interface V1AddBarcodeRequest { + /** + * Список штрихкодов и товаров. + * @type {Array} + * @memberof V1AddBarcodeRequest + */ + barcodes: Array; +} +/** + * Check if a given object implements the V1AddBarcodeRequest interface. + */ +export declare function instanceOfV1AddBarcodeRequest(value: object): value is V1AddBarcodeRequest; +export declare function V1AddBarcodeRequestFromJSON(json: any): V1AddBarcodeRequest; +export declare function V1AddBarcodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddBarcodeRequest; +export declare function V1AddBarcodeRequestToJSON(value?: V1AddBarcodeRequest | null): any; diff --git a/dist/esm/models/V1AddBarcodeRequest.js b/dist/esm/models/V1AddBarcodeRequest.js new file mode 100644 index 0000000..1666fbb --- /dev/null +++ b/dist/esm/models/V1AddBarcodeRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1BarcodeFromJSON, V1BarcodeToJSON, } from './V1Barcode'; +/** + * Check if a given object implements the V1AddBarcodeRequest interface. + */ +export function instanceOfV1AddBarcodeRequest(value) { + if (!('barcodes' in value) || value['barcodes'] === undefined) + return false; + return true; +} +export function V1AddBarcodeRequestFromJSON(json) { + return V1AddBarcodeRequestFromJSONTyped(json, false); +} +export function V1AddBarcodeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcodes': (json['barcodes'].map(V1BarcodeFromJSON)), + }; +} +export function V1AddBarcodeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcodes': (value['barcodes'].map(V1BarcodeToJSON)), + }; +} diff --git a/dist/esm/models/V1AddBarcodeResponse.d.ts b/dist/esm/models/V1AddBarcodeResponse.d.ts new file mode 100644 index 0000000..8301624 --- /dev/null +++ b/dist/esm/models/V1AddBarcodeResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AddBarcodeResult } from './V1AddBarcodeResult'; +/** + * + * @export + * @interface V1AddBarcodeResponse + */ +export interface V1AddBarcodeResponse { + /** + * Список ошибок. + * @type {Array} + * @memberof V1AddBarcodeResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1AddBarcodeResponse interface. + */ +export declare function instanceOfV1AddBarcodeResponse(value: object): value is V1AddBarcodeResponse; +export declare function V1AddBarcodeResponseFromJSON(json: any): V1AddBarcodeResponse; +export declare function V1AddBarcodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddBarcodeResponse; +export declare function V1AddBarcodeResponseToJSON(value?: V1AddBarcodeResponse | null): any; diff --git a/dist/esm/models/V1AddBarcodeResponse.js b/dist/esm/models/V1AddBarcodeResponse.js new file mode 100644 index 0000000..cf9be12 --- /dev/null +++ b/dist/esm/models/V1AddBarcodeResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AddBarcodeResultFromJSON, V1AddBarcodeResultToJSON, } from './V1AddBarcodeResult'; +/** + * Check if a given object implements the V1AddBarcodeResponse interface. + */ +export function instanceOfV1AddBarcodeResponse(value) { + return true; +} +export function V1AddBarcodeResponseFromJSON(json) { + return V1AddBarcodeResponseFromJSONTyped(json, false); +} +export function V1AddBarcodeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1AddBarcodeResultFromJSON)), + }; +} +export function V1AddBarcodeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1AddBarcodeResultToJSON)), + }; +} diff --git a/dist/esm/models/V1AddBarcodeResult.d.ts b/dist/esm/models/V1AddBarcodeResult.d.ts new file mode 100644 index 0000000..9b04888 --- /dev/null +++ b/dist/esm/models/V1AddBarcodeResult.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AddBarcodeResult + */ +export interface V1AddBarcodeResult { + /** + * Код ошибки. + * @type {string} + * @memberof V1AddBarcodeResult + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1AddBarcodeResult + */ + error?: string; + /** + * Штрихкод, который не удалось привязать. + * @type {string} + * @memberof V1AddBarcodeResult + */ + barcode?: string; + /** + * Идентификатор товара, к которому не удалось привязать штрихкод. + * @type {number} + * @memberof V1AddBarcodeResult + */ + sku?: number; +} +/** + * Check if a given object implements the V1AddBarcodeResult interface. + */ +export declare function instanceOfV1AddBarcodeResult(value: object): value is V1AddBarcodeResult; +export declare function V1AddBarcodeResultFromJSON(json: any): V1AddBarcodeResult; +export declare function V1AddBarcodeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddBarcodeResult; +export declare function V1AddBarcodeResultToJSON(value?: V1AddBarcodeResult | null): any; diff --git a/dist/esm/models/V1AddBarcodeResult.js b/dist/esm/models/V1AddBarcodeResult.js new file mode 100644 index 0000000..bf36384 --- /dev/null +++ b/dist/esm/models/V1AddBarcodeResult.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AddBarcodeResult interface. + */ +export function instanceOfV1AddBarcodeResult(value) { + return true; +} +export function V1AddBarcodeResultFromJSON(json) { + return V1AddBarcodeResultFromJSONTyped(json, false); +} +export function V1AddBarcodeResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'error': json['error'] == null ? undefined : json['error'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1AddBarcodeResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'error': value['error'], + 'barcode': value['barcode'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1AddStrategyItemsRequest.d.ts b/dist/esm/models/V1AddStrategyItemsRequest.d.ts new file mode 100644 index 0000000..614c52d --- /dev/null +++ b/dist/esm/models/V1AddStrategyItemsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AddStrategyItemsRequest + */ +export interface V1AddStrategyItemsRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. Максимальное количество — 50. + * @type {Array} + * @memberof V1AddStrategyItemsRequest + */ + product_id: Array; + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1AddStrategyItemsRequest + */ + strategy_id: string; +} +/** + * Check if a given object implements the V1AddStrategyItemsRequest interface. + */ +export declare function instanceOfV1AddStrategyItemsRequest(value: object): value is V1AddStrategyItemsRequest; +export declare function V1AddStrategyItemsRequestFromJSON(json: any): V1AddStrategyItemsRequest; +export declare function V1AddStrategyItemsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddStrategyItemsRequest; +export declare function V1AddStrategyItemsRequestToJSON(value?: V1AddStrategyItemsRequest | null): any; diff --git a/dist/esm/models/V1AddStrategyItemsRequest.js b/dist/esm/models/V1AddStrategyItemsRequest.js new file mode 100644 index 0000000..a0b3a09 --- /dev/null +++ b/dist/esm/models/V1AddStrategyItemsRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AddStrategyItemsRequest interface. + */ +export function instanceOfV1AddStrategyItemsRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('strategy_id' in value) || value['strategy_id'] === undefined) + return false; + return true; +} +export function V1AddStrategyItemsRequestFromJSON(json) { + return V1AddStrategyItemsRequestFromJSONTyped(json, false); +} +export function V1AddStrategyItemsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + 'strategy_id': json['strategy_id'], + }; +} +export function V1AddStrategyItemsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/esm/models/V1AddStrategyItemsResponse.d.ts b/dist/esm/models/V1AddStrategyItemsResponse.d.ts new file mode 100644 index 0000000..c2cfda7 --- /dev/null +++ b/dist/esm/models/V1AddStrategyItemsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AddStrategyItemsResponseResult } from './V1AddStrategyItemsResponseResult'; +/** + * + * @export + * @interface V1AddStrategyItemsResponse + */ +export interface V1AddStrategyItemsResponse { + /** + * + * @type {V1AddStrategyItemsResponseResult} + * @memberof V1AddStrategyItemsResponse + */ + result?: V1AddStrategyItemsResponseResult; +} +/** + * Check if a given object implements the V1AddStrategyItemsResponse interface. + */ +export declare function instanceOfV1AddStrategyItemsResponse(value: object): value is V1AddStrategyItemsResponse; +export declare function V1AddStrategyItemsResponseFromJSON(json: any): V1AddStrategyItemsResponse; +export declare function V1AddStrategyItemsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddStrategyItemsResponse; +export declare function V1AddStrategyItemsResponseToJSON(value?: V1AddStrategyItemsResponse | null): any; diff --git a/dist/esm/models/V1AddStrategyItemsResponse.js b/dist/esm/models/V1AddStrategyItemsResponse.js new file mode 100644 index 0000000..2daf2f8 --- /dev/null +++ b/dist/esm/models/V1AddStrategyItemsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AddStrategyItemsResponseResultFromJSON, V1AddStrategyItemsResponseResultToJSON, } from './V1AddStrategyItemsResponseResult'; +/** + * Check if a given object implements the V1AddStrategyItemsResponse interface. + */ +export function instanceOfV1AddStrategyItemsResponse(value) { + return true; +} +export function V1AddStrategyItemsResponseFromJSON(json) { + return V1AddStrategyItemsResponseFromJSONTyped(json, false); +} +export function V1AddStrategyItemsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1AddStrategyItemsResponseResultFromJSON(json['result']), + }; +} +export function V1AddStrategyItemsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1AddStrategyItemsResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1AddStrategyItemsResponseResult.d.ts b/dist/esm/models/V1AddStrategyItemsResponseResult.d.ts new file mode 100644 index 0000000..bebbce1 --- /dev/null +++ b/dist/esm/models/V1AddStrategyItemsResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AddStrategyItemsResponseError } from './AddStrategyItemsResponseError'; +/** + * Результат работы метода. + * @export + * @interface V1AddStrategyItemsResponseResult + */ +export interface V1AddStrategyItemsResponseResult { + /** + * Товары с ошибками. + * @type {Array} + * @memberof V1AddStrategyItemsResponseResult + */ + errors?: Array; + /** + * Количество товаров с ошибками. + * @type {number} + * @memberof V1AddStrategyItemsResponseResult + */ + failed_product_count?: number; +} +/** + * Check if a given object implements the V1AddStrategyItemsResponseResult interface. + */ +export declare function instanceOfV1AddStrategyItemsResponseResult(value: object): value is V1AddStrategyItemsResponseResult; +export declare function V1AddStrategyItemsResponseResultFromJSON(json: any): V1AddStrategyItemsResponseResult; +export declare function V1AddStrategyItemsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddStrategyItemsResponseResult; +export declare function V1AddStrategyItemsResponseResultToJSON(value?: V1AddStrategyItemsResponseResult | null): any; diff --git a/dist/esm/models/V1AddStrategyItemsResponseResult.js b/dist/esm/models/V1AddStrategyItemsResponseResult.js new file mode 100644 index 0000000..f86f0d6 --- /dev/null +++ b/dist/esm/models/V1AddStrategyItemsResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AddStrategyItemsResponseErrorFromJSON, AddStrategyItemsResponseErrorToJSON, } from './AddStrategyItemsResponseError'; +/** + * Check if a given object implements the V1AddStrategyItemsResponseResult interface. + */ +export function instanceOfV1AddStrategyItemsResponseResult(value) { + return true; +} +export function V1AddStrategyItemsResponseResultFromJSON(json) { + return V1AddStrategyItemsResponseResultFromJSONTyped(json, false); +} +export function V1AddStrategyItemsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(AddStrategyItemsResponseErrorFromJSON)), + 'failed_product_count': json['failed_product_count'] == null ? undefined : json['failed_product_count'], + }; +} +export function V1AddStrategyItemsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(AddStrategyItemsResponseErrorToJSON)), + 'failed_product_count': value['failed_product_count'], + }; +} diff --git a/dist/esm/models/V1AnalyticsManageStocksRequest.d.ts b/dist/esm/models/V1AnalyticsManageStocksRequest.d.ts new file mode 100644 index 0000000..ce27884 --- /dev/null +++ b/dist/esm/models/V1AnalyticsManageStocksRequest.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsManageStocksRequestFilter } from './V1AnalyticsManageStocksRequestFilter'; +/** + * + * @export + * @interface V1AnalyticsManageStocksRequest + */ +export interface V1AnalyticsManageStocksRequest { + /** + * + * @type {V1AnalyticsManageStocksRequestFilter} + * @memberof V1AnalyticsManageStocksRequest + */ + filter?: V1AnalyticsManageStocksRequestFilter; + /** + * Количество значений в ответе. + * + * @type {number} + * @memberof V1AnalyticsManageStocksRequest + */ + limit?: number; + /** + * Количество элементов, которое будет пропущено в ответе. + * + * Например, если `offset = 10`, ответ начнётся с 11-го найденного элемента. + * + * @type {number} + * @memberof V1AnalyticsManageStocksRequest + */ + offset?: number; +} +/** + * Check if a given object implements the V1AnalyticsManageStocksRequest interface. + */ +export declare function instanceOfV1AnalyticsManageStocksRequest(value: object): value is V1AnalyticsManageStocksRequest; +export declare function V1AnalyticsManageStocksRequestFromJSON(json: any): V1AnalyticsManageStocksRequest; +export declare function V1AnalyticsManageStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsManageStocksRequest; +export declare function V1AnalyticsManageStocksRequestToJSON(value?: V1AnalyticsManageStocksRequest | null): any; diff --git a/dist/esm/models/V1AnalyticsManageStocksRequest.js b/dist/esm/models/V1AnalyticsManageStocksRequest.js new file mode 100644 index 0000000..fa3ceb2 --- /dev/null +++ b/dist/esm/models/V1AnalyticsManageStocksRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AnalyticsManageStocksRequest interface. + */ +export function instanceOfV1AnalyticsManageStocksRequest(value) { + return true; +} +export function V1AnalyticsManageStocksRequestFromJSON(json) { + return V1AnalyticsManageStocksRequestFromJSONTyped(json, false); +} +export function V1AnalyticsManageStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : json['filter'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function V1AnalyticsManageStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': value['filter'], + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/V1AnalyticsManageStocksRequestFilter.d.ts b/dist/esm/models/V1AnalyticsManageStocksRequestFilter.d.ts new file mode 100644 index 0000000..0477260 --- /dev/null +++ b/dist/esm/models/V1AnalyticsManageStocksRequestFilter.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AnalyticsManageStocksRequestFilter + */ +export interface V1AnalyticsManageStocksRequestFilter { + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1AnalyticsManageStocksRequestFilter + */ + skus?: Array; + /** + * Тип оставшегося на складе товара: + * - `STOCK_TYPE_VALID` — валидный сток. Остаток товара, доступного для продажи. + * - `STOCK_TYPE_WAITING_DOCS` — превалидный сток. Остаток товара, который Ozon не может продавать, пока продавец не прислал в Ozon документы по обязательной маркировке. Товар перейдёт в валидный сток, когда документы будут подписаны. + * - `STOCK_TYPE_EXPIRING` — предпросрок. Остаток товара, который снят с полки, но срок годности формально не истёк. + * - `STOCK_TYPE_DEFECT` — брак. Остаток товара, который находится на складах Ozon, но повреждён. + * + * @type {Array} + * @memberof V1AnalyticsManageStocksRequestFilter + */ + stock_types?: Array; + /** + * Идентификаторы складов. + * @type {Array} + * @memberof V1AnalyticsManageStocksRequestFilter + */ + warehouse_ids?: Array; +} +/** + * @export + */ +export declare const V1AnalyticsManageStocksRequestFilterStockTypesEnum: { + readonly VALID: "STOCK_TYPE_VALID"; + readonly WAITING_DOCS: "STOCK_TYPE_WAITING_DOCS"; + readonly EXPIRING: "STOCK_TYPE_EXPIRING"; + readonly DEFECT: "STOCK_TYPE_DEFECT"; +}; +export type V1AnalyticsManageStocksRequestFilterStockTypesEnum = typeof V1AnalyticsManageStocksRequestFilterStockTypesEnum[keyof typeof V1AnalyticsManageStocksRequestFilterStockTypesEnum]; +/** + * Check if a given object implements the V1AnalyticsManageStocksRequestFilter interface. + */ +export declare function instanceOfV1AnalyticsManageStocksRequestFilter(value: object): value is V1AnalyticsManageStocksRequestFilter; +export declare function V1AnalyticsManageStocksRequestFilterFromJSON(json: any): V1AnalyticsManageStocksRequestFilter; +export declare function V1AnalyticsManageStocksRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsManageStocksRequestFilter; +export declare function V1AnalyticsManageStocksRequestFilterToJSON(value?: V1AnalyticsManageStocksRequestFilter | null): any; diff --git a/dist/esm/models/V1AnalyticsManageStocksRequestFilter.js b/dist/esm/models/V1AnalyticsManageStocksRequestFilter.js new file mode 100644 index 0000000..1b68675 --- /dev/null +++ b/dist/esm/models/V1AnalyticsManageStocksRequestFilter.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V1AnalyticsManageStocksRequestFilterStockTypesEnum = { + VALID: 'STOCK_TYPE_VALID', + WAITING_DOCS: 'STOCK_TYPE_WAITING_DOCS', + EXPIRING: 'STOCK_TYPE_EXPIRING', + DEFECT: 'STOCK_TYPE_DEFECT' +}; +/** + * Check if a given object implements the V1AnalyticsManageStocksRequestFilter interface. + */ +export function instanceOfV1AnalyticsManageStocksRequestFilter(value) { + return true; +} +export function V1AnalyticsManageStocksRequestFilterFromJSON(json) { + return V1AnalyticsManageStocksRequestFilterFromJSONTyped(json, false); +} +export function V1AnalyticsManageStocksRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'] == null ? undefined : json['skus'], + 'stock_types': json['stock_types'] == null ? undefined : json['stock_types'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function V1AnalyticsManageStocksRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + 'stock_types': value['stock_types'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/V1AnalyticsManageStocksResponse.d.ts b/dist/esm/models/V1AnalyticsManageStocksResponse.d.ts new file mode 100644 index 0000000..de677ad --- /dev/null +++ b/dist/esm/models/V1AnalyticsManageStocksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsManageStocksResponseItem } from './V1AnalyticsManageStocksResponseItem'; +/** + * + * @export + * @interface V1AnalyticsManageStocksResponse + */ +export interface V1AnalyticsManageStocksResponse { + /** + * Товары. + * @type {Array} + * @memberof V1AnalyticsManageStocksResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1AnalyticsManageStocksResponse interface. + */ +export declare function instanceOfV1AnalyticsManageStocksResponse(value: object): value is V1AnalyticsManageStocksResponse; +export declare function V1AnalyticsManageStocksResponseFromJSON(json: any): V1AnalyticsManageStocksResponse; +export declare function V1AnalyticsManageStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsManageStocksResponse; +export declare function V1AnalyticsManageStocksResponseToJSON(value?: V1AnalyticsManageStocksResponse | null): any; diff --git a/dist/esm/models/V1AnalyticsManageStocksResponse.js b/dist/esm/models/V1AnalyticsManageStocksResponse.js new file mode 100644 index 0000000..a5bc3b7 --- /dev/null +++ b/dist/esm/models/V1AnalyticsManageStocksResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AnalyticsManageStocksResponseItemFromJSON, V1AnalyticsManageStocksResponseItemToJSON, } from './V1AnalyticsManageStocksResponseItem'; +/** + * Check if a given object implements the V1AnalyticsManageStocksResponse interface. + */ +export function instanceOfV1AnalyticsManageStocksResponse(value) { + return true; +} +export function V1AnalyticsManageStocksResponseFromJSON(json) { + return V1AnalyticsManageStocksResponseFromJSONTyped(json, false); +} +export function V1AnalyticsManageStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1AnalyticsManageStocksResponseItemFromJSON)), + }; +} +export function V1AnalyticsManageStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1AnalyticsManageStocksResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V1AnalyticsManageStocksResponseItem.d.ts b/dist/esm/models/V1AnalyticsManageStocksResponseItem.d.ts new file mode 100644 index 0000000..32d6724 --- /dev/null +++ b/dist/esm/models/V1AnalyticsManageStocksResponseItem.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsManageStocksResponseItem + */ +export interface V1AnalyticsManageStocksResponseItem { + /** + * Остаток дефектного товара, шт. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + defect_stock_count?: number; + /** + * Остаток товара с истекающим сроком годности, шт. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + expiring_stock_count?: number; + /** + * Название товара. + * @type {string} + * @memberof V1AnalyticsManageStocksResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AnalyticsManageStocksResponseItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + sku?: number; + /** + * Остаток товара, доступного для продажи. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + valid_stock_count?: number; + /** + * Остаток товара, ожидающего документы. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + waitingdocs_stock_count?: number; + /** + * Название склада. + * @type {string} + * @memberof V1AnalyticsManageStocksResponseItem + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the V1AnalyticsManageStocksResponseItem interface. + */ +export declare function instanceOfV1AnalyticsManageStocksResponseItem(value: object): value is V1AnalyticsManageStocksResponseItem; +export declare function V1AnalyticsManageStocksResponseItemFromJSON(json: any): V1AnalyticsManageStocksResponseItem; +export declare function V1AnalyticsManageStocksResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsManageStocksResponseItem; +export declare function V1AnalyticsManageStocksResponseItemToJSON(value?: V1AnalyticsManageStocksResponseItem | null): any; diff --git a/dist/esm/models/V1AnalyticsManageStocksResponseItem.js b/dist/esm/models/V1AnalyticsManageStocksResponseItem.js new file mode 100644 index 0000000..f626dfc --- /dev/null +++ b/dist/esm/models/V1AnalyticsManageStocksResponseItem.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AnalyticsManageStocksResponseItem interface. + */ +export function instanceOfV1AnalyticsManageStocksResponseItem(value) { + return true; +} +export function V1AnalyticsManageStocksResponseItemFromJSON(json) { + return V1AnalyticsManageStocksResponseItemFromJSONTyped(json, false); +} +export function V1AnalyticsManageStocksResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'defect_stock_count': json['defect_stock_count'] == null ? undefined : json['defect_stock_count'], + 'expiring_stock_count': json['expiring_stock_count'] == null ? undefined : json['expiring_stock_count'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'valid_stock_count': json['valid_stock_count'] == null ? undefined : json['valid_stock_count'], + 'waitingdocs_stock_count': json['waitingdocs_stock_count'] == null ? undefined : json['waitingdocs_stock_count'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function V1AnalyticsManageStocksResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'defect_stock_count': value['defect_stock_count'], + 'expiring_stock_count': value['expiring_stock_count'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'sku': value['sku'], + 'valid_stock_count': value['valid_stock_count'], + 'waitingdocs_stock_count': value['waitingdocs_stock_count'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsRequest.d.ts b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequest.d.ts new file mode 100644 index 0000000..97ea0d0 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequest.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsProductQueriesDetailsRequestSortBy } from './V1AnalyticsProductQueriesDetailsRequestSortBy'; +import type { V1AnalyticsProductQueriesDetailsRequestSortDir } from './V1AnalyticsProductQueriesDetailsRequestSortDir'; +/** + * + * @export + * @interface V1AnalyticsProductQueriesDetailsRequest + */ +export interface V1AnalyticsProductQueriesDetailsRequest { + /** + * Дата начала формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + date_from: string; + /** + * Дата окончания формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + date_to?: string; + /** + * Лимит числа запросов по одному SKU. Максимум — 15 запросов. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + limit_by_sku: number; + /** + * Номер страницы, возвращаемой в запросе. Минимум — 0. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + page?: number; + /** + * Количество элементов на странице. Максимум — 100. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + page_size: number; + /** + * Список SKU, идентификаторов товара в системе Ozon. По ним вернётся аналитика по запросам. Максимум — 1000 SKU. + * @type {Array} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + skus: Array; + /** + * + * @type {V1AnalyticsProductQueriesDetailsRequestSortBy} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + sort_by?: V1AnalyticsProductQueriesDetailsRequestSortBy; + /** + * + * @type {V1AnalyticsProductQueriesDetailsRequestSortDir} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + sort_dir?: V1AnalyticsProductQueriesDetailsRequestSortDir; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsRequest interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesDetailsRequest(value: object): value is V1AnalyticsProductQueriesDetailsRequest; +export declare function V1AnalyticsProductQueriesDetailsRequestFromJSON(json: any): V1AnalyticsProductQueriesDetailsRequest; +export declare function V1AnalyticsProductQueriesDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsRequest; +export declare function V1AnalyticsProductQueriesDetailsRequestToJSON(value?: V1AnalyticsProductQueriesDetailsRequest | null): any; diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsRequest.js b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequest.js new file mode 100644 index 0000000..0ad14d6 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequest.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AnalyticsProductQueriesDetailsRequestSortByFromJSON, V1AnalyticsProductQueriesDetailsRequestSortByToJSON, } from './V1AnalyticsProductQueriesDetailsRequestSortBy'; +import { V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON, V1AnalyticsProductQueriesDetailsRequestSortDirToJSON, } from './V1AnalyticsProductQueriesDetailsRequestSortDir'; +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsRequest interface. + */ +export function instanceOfV1AnalyticsProductQueriesDetailsRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('limit_by_sku' in value) || value['limit_by_sku'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1AnalyticsProductQueriesDetailsRequestFromJSON(json) { + return V1AnalyticsProductQueriesDetailsRequestFromJSONTyped(json, false); +} +export function V1AnalyticsProductQueriesDetailsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'limit_by_sku': json['limit_by_sku'], + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'], + 'skus': json['skus'], + 'sort_by': json['sort_by'] == null ? undefined : V1AnalyticsProductQueriesDetailsRequestSortByFromJSON(json['sort_by']), + 'sort_dir': json['sort_dir'] == null ? undefined : V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON(json['sort_dir']), + }; +} +export function V1AnalyticsProductQueriesDetailsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'limit_by_sku': value['limit_by_sku'], + 'page': value['page'], + 'page_size': value['page_size'], + 'skus': value['skus'], + 'sort_by': V1AnalyticsProductQueriesDetailsRequestSortByToJSON(value['sort_by']), + 'sort_dir': V1AnalyticsProductQueriesDetailsRequestSortDirToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortBy.d.ts b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortBy.d.ts new file mode 100644 index 0000000..a99c92c --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortBy.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому товары будут отсортированы. Возможные значения: + * - `BY_SEARCHES` — по количеству запросов; + * - `BY_VIEWS` — по количеству просмотров; + * - `BY_POSITION` — по средней позиции товара; + * - `BY_CONVERSION` — по значению конверсии; + * - `BY_GMV` — по объёму продаж по запросам. + * + * Сортировка по параметрам `BY_VIEWS`, `BY_POSITION` и `BY_CONVERSION` доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * + * @export + */ +export declare const V1AnalyticsProductQueriesDetailsRequestSortBy: { + readonly SEARCHES: "BY_SEARCHES"; + readonly VIEWS: "BY_VIEWS"; + readonly POSITION: "BY_POSITION"; + readonly CONVERSION: "BY_CONVERSION"; + readonly GMV: "BY_GMV"; +}; +export type V1AnalyticsProductQueriesDetailsRequestSortBy = typeof V1AnalyticsProductQueriesDetailsRequestSortBy[keyof typeof V1AnalyticsProductQueriesDetailsRequestSortBy]; +export declare function instanceOfV1AnalyticsProductQueriesDetailsRequestSortBy(value: any): boolean; +export declare function V1AnalyticsProductQueriesDetailsRequestSortByFromJSON(json: any): V1AnalyticsProductQueriesDetailsRequestSortBy; +export declare function V1AnalyticsProductQueriesDetailsRequestSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsRequestSortBy; +export declare function V1AnalyticsProductQueriesDetailsRequestSortByToJSON(value?: V1AnalyticsProductQueriesDetailsRequestSortBy | null): any; diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortBy.js b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortBy.js new file mode 100644 index 0000000..ab8a456 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortBy.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому товары будут отсортированы. Возможные значения: + * - `BY_SEARCHES` — по количеству запросов; + * - `BY_VIEWS` — по количеству просмотров; + * - `BY_POSITION` — по средней позиции товара; + * - `BY_CONVERSION` — по значению конверсии; + * - `BY_GMV` — по объёму продаж по запросам. + * + * Сортировка по параметрам `BY_VIEWS`, `BY_POSITION` и `BY_CONVERSION` доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * + * @export + */ +export const V1AnalyticsProductQueriesDetailsRequestSortBy = { + SEARCHES: 'BY_SEARCHES', + VIEWS: 'BY_VIEWS', + POSITION: 'BY_POSITION', + CONVERSION: 'BY_CONVERSION', + GMV: 'BY_GMV' +}; +export function instanceOfV1AnalyticsProductQueriesDetailsRequestSortBy(value) { + for (const key in V1AnalyticsProductQueriesDetailsRequestSortBy) { + if (Object.prototype.hasOwnProperty.call(V1AnalyticsProductQueriesDetailsRequestSortBy, key)) { + if (V1AnalyticsProductQueriesDetailsRequestSortBy[key] === value) { + return true; + } + } + } + return false; +} +export function V1AnalyticsProductQueriesDetailsRequestSortByFromJSON(json) { + return V1AnalyticsProductQueriesDetailsRequestSortByFromJSONTyped(json, false); +} +export function V1AnalyticsProductQueriesDetailsRequestSortByFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1AnalyticsProductQueriesDetailsRequestSortByToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortDir.d.ts b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortDir.d.ts new file mode 100644 index 0000000..fa7c49c --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortDir.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESCENDING` — по убыванию; + * - `ASCENDING` — по возрастанию. + * + * @export + */ +export declare const V1AnalyticsProductQueriesDetailsRequestSortDir: { + readonly DESCENDING: "DESCENDING"; + readonly ASCENDING: "ASCENDING"; +}; +export type V1AnalyticsProductQueriesDetailsRequestSortDir = typeof V1AnalyticsProductQueriesDetailsRequestSortDir[keyof typeof V1AnalyticsProductQueriesDetailsRequestSortDir]; +export declare function instanceOfV1AnalyticsProductQueriesDetailsRequestSortDir(value: any): boolean; +export declare function V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON(json: any): V1AnalyticsProductQueriesDetailsRequestSortDir; +export declare function V1AnalyticsProductQueriesDetailsRequestSortDirFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsRequestSortDir; +export declare function V1AnalyticsProductQueriesDetailsRequestSortDirToJSON(value?: V1AnalyticsProductQueriesDetailsRequestSortDir | null): any; diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortDir.js b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortDir.js new file mode 100644 index 0000000..99a567a --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsRequestSortDir.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESCENDING` — по убыванию; + * - `ASCENDING` — по возрастанию. + * + * @export + */ +export const V1AnalyticsProductQueriesDetailsRequestSortDir = { + DESCENDING: 'DESCENDING', + ASCENDING: 'ASCENDING' +}; +export function instanceOfV1AnalyticsProductQueriesDetailsRequestSortDir(value) { + for (const key in V1AnalyticsProductQueriesDetailsRequestSortDir) { + if (Object.prototype.hasOwnProperty.call(V1AnalyticsProductQueriesDetailsRequestSortDir, key)) { + if (V1AnalyticsProductQueriesDetailsRequestSortDir[key] === value) { + return true; + } + } + } + return false; +} +export function V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON(json) { + return V1AnalyticsProductQueriesDetailsRequestSortDirFromJSONTyped(json, false); +} +export function V1AnalyticsProductQueriesDetailsRequestSortDirFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1AnalyticsProductQueriesDetailsRequestSortDirToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsResponse.d.ts b/dist/esm/models/V1AnalyticsProductQueriesDetailsResponse.d.ts new file mode 100644 index 0000000..681bbcb --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod } from './V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod'; +import type { AnalyticsProductQueriesDetailsResponseQuery } from './AnalyticsProductQueriesDetailsResponseQuery'; +/** + * + * @export + * @interface V1AnalyticsProductQueriesDetailsResponse + */ +export interface V1AnalyticsProductQueriesDetailsResponse { + /** + * + * @type {V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod} + * @memberof V1AnalyticsProductQueriesDetailsResponse + */ + analytics_period?: V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; + /** + * Количество страниц. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsResponse + */ + page_count?: number; + /** + * Список запросов. + * @type {Array} + * @memberof V1AnalyticsProductQueriesDetailsResponse + */ + queries?: Array; + /** + * Общее количество запросов. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsResponse interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesDetailsResponse(value: object): value is V1AnalyticsProductQueriesDetailsResponse; +export declare function V1AnalyticsProductQueriesDetailsResponseFromJSON(json: any): V1AnalyticsProductQueriesDetailsResponse; +export declare function V1AnalyticsProductQueriesDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsResponse; +export declare function V1AnalyticsProductQueriesDetailsResponseToJSON(value?: V1AnalyticsProductQueriesDetailsResponse | null): any; diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsResponse.js b/dist/esm/models/V1AnalyticsProductQueriesDetailsResponse.js new file mode 100644 index 0000000..f6a4a40 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsResponse.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON, V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON, } from './V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod'; +import { AnalyticsProductQueriesDetailsResponseQueryFromJSON, AnalyticsProductQueriesDetailsResponseQueryToJSON, } from './AnalyticsProductQueriesDetailsResponseQuery'; +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsResponse interface. + */ +export function instanceOfV1AnalyticsProductQueriesDetailsResponse(value) { + return true; +} +export function V1AnalyticsProductQueriesDetailsResponseFromJSON(json) { + return V1AnalyticsProductQueriesDetailsResponseFromJSONTyped(json, false); +} +export function V1AnalyticsProductQueriesDetailsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_period': json['analytics_period'] == null ? undefined : V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON(json['analytics_period']), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + 'queries': json['queries'] == null ? undefined : (json['queries'].map(AnalyticsProductQueriesDetailsResponseQueryFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V1AnalyticsProductQueriesDetailsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_period': V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON(value['analytics_period']), + 'page_count': value['page_count'], + 'queries': value['queries'] == null ? undefined : (value['queries'].map(AnalyticsProductQueriesDetailsResponseQueryToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.d.ts b/dist/esm/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.d.ts new file mode 100644 index 0000000..422935e --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, за который формируется аналитика. + * @export + * @interface V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod + */ +export interface V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod { + /** + * Дата начала формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod + */ + date_from?: string; + /** + * Дата окончания формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod + */ + date_to?: string; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod(value: object): value is V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; +export declare function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON(json: any): V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; +export declare function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; +export declare function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON(value?: V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod | null): any; diff --git a/dist/esm/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.js b/dist/esm/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.js new file mode 100644 index 0000000..0a32de2 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod interface. + */ +export function instanceOfV1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod(value) { + return true; +} +export function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON(json) { + return V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSONTyped(json, false); +} +export function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + }; +} +export function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/esm/models/V1AnalyticsProductQueriesRequest.d.ts b/dist/esm/models/V1AnalyticsProductQueriesRequest.d.ts new file mode 100644 index 0000000..2a82c56 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesRequest.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsProductQueriesRequestSortDir } from './AnalyticsProductQueriesRequestSortDir'; +import type { AnalyticsProductQueriesRequestSortBy } from './AnalyticsProductQueriesRequestSortBy'; +/** + * + * @export + * @interface V1AnalyticsProductQueriesRequest + */ +export interface V1AnalyticsProductQueriesRequest { + /** + * Дата начала формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesRequest + */ + date_from: string; + /** + * Дата окончания формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesRequest + */ + date_to?: string; + /** + * Индекс страницы, которую возвращает запрос. + * @type {number} + * @memberof V1AnalyticsProductQueriesRequest + */ + page?: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V1AnalyticsProductQueriesRequest + */ + page_size: number; + /** + * Список SKU, идентификаторов товара в системе Ozon. По ним вернётся аналитика по запросам. Максимум — 1000 SKU. + * @type {Array} + * @memberof V1AnalyticsProductQueriesRequest + */ + skus: Array; + /** + * + * @type {AnalyticsProductQueriesRequestSortBy} + * @memberof V1AnalyticsProductQueriesRequest + */ + sort_by?: AnalyticsProductQueriesRequestSortBy; + /** + * + * @type {AnalyticsProductQueriesRequestSortDir} + * @memberof V1AnalyticsProductQueriesRequest + */ + sort_dir?: AnalyticsProductQueriesRequestSortDir; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesRequest interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesRequest(value: object): value is V1AnalyticsProductQueriesRequest; +export declare function V1AnalyticsProductQueriesRequestFromJSON(json: any): V1AnalyticsProductQueriesRequest; +export declare function V1AnalyticsProductQueriesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesRequest; +export declare function V1AnalyticsProductQueriesRequestToJSON(value?: V1AnalyticsProductQueriesRequest | null): any; diff --git a/dist/esm/models/V1AnalyticsProductQueriesRequest.js b/dist/esm/models/V1AnalyticsProductQueriesRequest.js new file mode 100644 index 0000000..ba68056 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesRequest.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsProductQueriesRequestSortDirFromJSON, AnalyticsProductQueriesRequestSortDirToJSON, } from './AnalyticsProductQueriesRequestSortDir'; +import { AnalyticsProductQueriesRequestSortByFromJSON, AnalyticsProductQueriesRequestSortByToJSON, } from './AnalyticsProductQueriesRequestSortBy'; +/** + * Check if a given object implements the V1AnalyticsProductQueriesRequest interface. + */ +export function instanceOfV1AnalyticsProductQueriesRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1AnalyticsProductQueriesRequestFromJSON(json) { + return V1AnalyticsProductQueriesRequestFromJSONTyped(json, false); +} +export function V1AnalyticsProductQueriesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'], + 'skus': json['skus'], + 'sort_by': json['sort_by'] == null ? undefined : AnalyticsProductQueriesRequestSortByFromJSON(json['sort_by']), + 'sort_dir': json['sort_dir'] == null ? undefined : AnalyticsProductQueriesRequestSortDirFromJSON(json['sort_dir']), + }; +} +export function V1AnalyticsProductQueriesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'page': value['page'], + 'page_size': value['page_size'], + 'skus': value['skus'], + 'sort_by': AnalyticsProductQueriesRequestSortByToJSON(value['sort_by']), + 'sort_dir': AnalyticsProductQueriesRequestSortDirToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/V1AnalyticsProductQueriesResponse.d.ts b/dist/esm/models/V1AnalyticsProductQueriesResponse.d.ts new file mode 100644 index 0000000..1219ddf --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsProductQueriesResponseAnalyticsPeriod } from './AnalyticsProductQueriesResponseAnalyticsPeriod'; +import type { V1AnalyticsProductQueriesResponseItem } from './V1AnalyticsProductQueriesResponseItem'; +/** + * + * @export + * @interface V1AnalyticsProductQueriesResponse + */ +export interface V1AnalyticsProductQueriesResponse { + /** + * + * @type {AnalyticsProductQueriesResponseAnalyticsPeriod} + * @memberof V1AnalyticsProductQueriesResponse + */ + analytics_period?: AnalyticsProductQueriesResponseAnalyticsPeriod; + /** + * Список товаров. + * @type {Array} + * @memberof V1AnalyticsProductQueriesResponse + */ + items?: Array; + /** + * Количество страниц. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponse + */ + page_count?: number; + /** + * Общее количество запросов. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesResponse interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesResponse(value: object): value is V1AnalyticsProductQueriesResponse; +export declare function V1AnalyticsProductQueriesResponseFromJSON(json: any): V1AnalyticsProductQueriesResponse; +export declare function V1AnalyticsProductQueriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesResponse; +export declare function V1AnalyticsProductQueriesResponseToJSON(value?: V1AnalyticsProductQueriesResponse | null): any; diff --git a/dist/esm/models/V1AnalyticsProductQueriesResponse.js b/dist/esm/models/V1AnalyticsProductQueriesResponse.js new file mode 100644 index 0000000..ae26882 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesResponse.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON, AnalyticsProductQueriesResponseAnalyticsPeriodToJSON, } from './AnalyticsProductQueriesResponseAnalyticsPeriod'; +import { V1AnalyticsProductQueriesResponseItemFromJSON, V1AnalyticsProductQueriesResponseItemToJSON, } from './V1AnalyticsProductQueriesResponseItem'; +/** + * Check if a given object implements the V1AnalyticsProductQueriesResponse interface. + */ +export function instanceOfV1AnalyticsProductQueriesResponse(value) { + return true; +} +export function V1AnalyticsProductQueriesResponseFromJSON(json) { + return V1AnalyticsProductQueriesResponseFromJSONTyped(json, false); +} +export function V1AnalyticsProductQueriesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_period': json['analytics_period'] == null ? undefined : AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON(json['analytics_period']), + 'items': json['items'] == null ? undefined : (json['items'].map(V1AnalyticsProductQueriesResponseItemFromJSON)), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V1AnalyticsProductQueriesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_period': AnalyticsProductQueriesResponseAnalyticsPeriodToJSON(value['analytics_period']), + 'items': value['items'] == null ? undefined : (value['items'].map(V1AnalyticsProductQueriesResponseItemToJSON)), + 'page_count': value['page_count'], + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V1AnalyticsProductQueriesResponseItem.d.ts b/dist/esm/models/V1AnalyticsProductQueriesResponseItem.d.ts new file mode 100644 index 0000000..72b9538 --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesResponseItem.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsProductQueriesResponseItem + */ +export interface V1AnalyticsProductQueriesResponseItem { + /** + * Название категории. + * @type {string} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + category?: string; + /** + * Валюта. + * @type {string} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + currency?: string; + /** + * Продажи по запросам. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + gmv?: number; + /** + * Название товара. + * @type {string} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + offer_id?: string; + /** + * Средняя позиция товара. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + position?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + sku?: number; + /** + * Количество покупателей, которые искали ваш товар на Ozon. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + unique_search_users?: number; + /** + * Количество покупателей, которые увидели ваш товар на Ozon. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + unique_view_users?: number; + /** + * Конверсия из просмотра товара. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + view_conversion?: number; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesResponseItem interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesResponseItem(value: object): value is V1AnalyticsProductQueriesResponseItem; +export declare function V1AnalyticsProductQueriesResponseItemFromJSON(json: any): V1AnalyticsProductQueriesResponseItem; +export declare function V1AnalyticsProductQueriesResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesResponseItem; +export declare function V1AnalyticsProductQueriesResponseItemToJSON(value?: V1AnalyticsProductQueriesResponseItem | null): any; diff --git a/dist/esm/models/V1AnalyticsProductQueriesResponseItem.js b/dist/esm/models/V1AnalyticsProductQueriesResponseItem.js new file mode 100644 index 0000000..cdda91a --- /dev/null +++ b/dist/esm/models/V1AnalyticsProductQueriesResponseItem.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AnalyticsProductQueriesResponseItem interface. + */ +export function instanceOfV1AnalyticsProductQueriesResponseItem(value) { + return true; +} +export function V1AnalyticsProductQueriesResponseItemFromJSON(json) { + return V1AnalyticsProductQueriesResponseItemFromJSONTyped(json, false); +} +export function V1AnalyticsProductQueriesResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'category': json['category'] == null ? undefined : json['category'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'gmv': json['gmv'] == null ? undefined : json['gmv'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'position': json['position'] == null ? undefined : json['position'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'unique_search_users': json['unique_search_users'] == null ? undefined : json['unique_search_users'], + 'unique_view_users': json['unique_view_users'] == null ? undefined : json['unique_view_users'], + 'view_conversion': json['view_conversion'] == null ? undefined : json['view_conversion'], + }; +} +export function V1AnalyticsProductQueriesResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'category': value['category'], + 'currency': value['currency'], + 'gmv': value['gmv'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'position': value['position'], + 'sku': value['sku'], + 'unique_search_users': value['unique_search_users'], + 'unique_view_users': value['unique_view_users'], + 'view_conversion': value['view_conversion'], + }; +} diff --git a/dist/esm/models/V1AnalyticsStocksRequest.d.ts b/dist/esm/models/V1AnalyticsStocksRequest.d.ts new file mode 100644 index 0000000..f67d325 --- /dev/null +++ b/dist/esm/models/V1AnalyticsStocksRequest.d.ts @@ -0,0 +1,155 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsStocksRequest + */ +export interface V1AnalyticsStocksRequest { + /** + * Фильтр по идентификаторам кластеров. Получить идентификаторы можно через метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + cluster_ids?: Array; + /** + * Фильтр по тегам товара: + * - `ITEM_ATTRIBUTE_NONE` — без тега; + * - `ECONOM` — эконом-товар; + * - `NOVEL` — новинка; + * - `DISCOUNT` — уценённый товар; + * - `FBS_RETURN` — товар из возврата FBS; + * - `SUPER` — Super-товар; + * - `MARKABLE` — товар, подлежащий маркировке. + * + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + item_tags?: Array; + /** + * Фильтр по идентификаторам макролокальных кластеров. Получить идентификаторы можно в параметре `macrolocal_cluster_ids` метода [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList) или через метод [/v2/cluster/list](#operation/DraftClusterList). + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + macrolocal_cluster_ids?: Array; + /** + * Зона размещения товара: + * - `PLACEMENT_ZONE_NONE` — не указана; + * - `CLOSED_ZONE` — закрытая; + * - `DANGEROUS_GOOD` — опасные товары; + * - `PRODUCTS_PLUS_17` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT_MEZ` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — ещё не определена. + * + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + placement_zone?: Array; + /** + * Фильтр по идентификаторам товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + skus: Array; + /** + * Фильтр по статусу ликвидности товаров: + * - `TURNOVER_GRADE_NONE` — нет статуса ликвидности. + * - `DEFICIT` — дефицитный. Остатков товара хватит до 28 дней. + * - `POPULAR` — очень популярный. Остатков товара хватит на 28–56 дней. + * - `ACTUAL` — популярный. Остатков товара хватит на 56–120 дней. + * - `SURPLUS` — избыточный. Товар продаётся медленно, остатков хватит более чем на 120 дней. + * - `NO_SALES` — без продаж. У товара нет продаж последние 28 дней. + * - `WAS_NO_SALES` — был без продаж. У товара не было продаж и остатков последние 28 дней. + * - `RESTRICTED_NO_SALES` — без продаж, ограничен. У товара не было продаж более 120 дней. Такой товар [нельзя добавить в поставку](https://seller-edu.ozon.ru/fbo/rabota-so-stokom/nehodovye-tovary). + * - `COLLECTING_DATA` — сбор данных. Для расчёта ликвидности нового товара собираем данные в течение 60 дней после поставки. + * - `WAITING_FOR_SUPPLY` — ожидаем поставки. На складе нет остатков, доступных к продаже. Сделайте поставку для начала сбора данных. + * - `WAS_DEFICIT` — был дефицитным. Товар был дефицитным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_POPULAR` — был очень популярным. Товар был очень популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_ACTUAL` — был популярным. Товар был популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_SURPLUS` — был избыточным. Товар был избыточным последние 56 дней. Сейчас у него нет остатков. + * + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + turnover_grades?: Array; + /** + * `true`, чтобы получить только товары, которые нужно промаркировать. + * + * @type {boolean} + * @memberof V1AnalyticsStocksRequest + */ + unmarked_stocks_only?: boolean; + /** + * Фильтр по идентификаторам складов. Получить идентификаторы можно через метод [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + warehouse_ids?: Array; +} +/** + * @export + */ +export declare const V1AnalyticsStocksRequestItemTagsEnum: { + readonly ITEM_ATTRIBUTE_NONE: "ITEM_ATTRIBUTE_NONE"; + readonly ECONOM: "ECONOM"; + readonly NOVEL: "NOVEL"; + readonly DISCOUNT: "DISCOUNT"; + readonly FBS_RETURN: "FBS_RETURN"; + readonly SUPER: "SUPER"; + readonly MARKABLE: "MARKABLE"; +}; +export type V1AnalyticsStocksRequestItemTagsEnum = typeof V1AnalyticsStocksRequestItemTagsEnum[keyof typeof V1AnalyticsStocksRequestItemTagsEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksRequestPlacementZoneEnum: { + readonly PLACEMENT_ZONE_NONE: "PLACEMENT_ZONE_NONE"; + readonly CLOSED_ZONE: "CLOSED_ZONE"; + readonly DANGEROUS_GOOD: "DANGEROUS_GOOD"; + readonly PRODUCTS_PLUS_17: "PRODUCTS_PLUS_17"; + readonly SORT: "SORT"; + readonly NON_SORT_MEZ: "NON_SORT_MEZ"; + readonly OVERSIZE: "OVERSIZE"; + readonly JEWELRY: "JEWELRY"; + readonly UNRESOLVED: "UNRESOLVED"; +}; +export type V1AnalyticsStocksRequestPlacementZoneEnum = typeof V1AnalyticsStocksRequestPlacementZoneEnum[keyof typeof V1AnalyticsStocksRequestPlacementZoneEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksRequestTurnoverGradesEnum: { + readonly TURNOVER_GRADE_NONE: "TURNOVER_GRADE_NONE"; + readonly DEFICIT: "DEFICIT"; + readonly POPULAR: "POPULAR"; + readonly ACTUAL: "ACTUAL"; + readonly SURPLUS: "SURPLUS"; + readonly NO_SALES: "NO_SALES"; + readonly WAS_NO_SALES: "WAS_NO_SALES"; + readonly RESTRICTED_NO_SALES: "RESTRICTED_NO_SALES"; + readonly COLLECTING_DATA: "COLLECTING_DATA"; + readonly WAITING_FOR_SUPPLY: "WAITING_FOR_SUPPLY"; + readonly WAS_DEFICIT: "WAS_DEFICIT"; + readonly WAS_POPULAR: "WAS_POPULAR"; + readonly WAS_ACTUAL: "WAS_ACTUAL"; + readonly WAS_SURPLUS: "WAS_SURPLUS"; +}; +export type V1AnalyticsStocksRequestTurnoverGradesEnum = typeof V1AnalyticsStocksRequestTurnoverGradesEnum[keyof typeof V1AnalyticsStocksRequestTurnoverGradesEnum]; +/** + * Check if a given object implements the V1AnalyticsStocksRequest interface. + */ +export declare function instanceOfV1AnalyticsStocksRequest(value: object): value is V1AnalyticsStocksRequest; +export declare function V1AnalyticsStocksRequestFromJSON(json: any): V1AnalyticsStocksRequest; +export declare function V1AnalyticsStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsStocksRequest; +export declare function V1AnalyticsStocksRequestToJSON(value?: V1AnalyticsStocksRequest | null): any; diff --git a/dist/esm/models/V1AnalyticsStocksRequest.js b/dist/esm/models/V1AnalyticsStocksRequest.js new file mode 100644 index 0000000..e12faad --- /dev/null +++ b/dist/esm/models/V1AnalyticsStocksRequest.js @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V1AnalyticsStocksRequestItemTagsEnum = { + ITEM_ATTRIBUTE_NONE: 'ITEM_ATTRIBUTE_NONE', + ECONOM: 'ECONOM', + NOVEL: 'NOVEL', + DISCOUNT: 'DISCOUNT', + FBS_RETURN: 'FBS_RETURN', + SUPER: 'SUPER', + MARKABLE: 'MARKABLE' +}; +/** + * @export + */ +export const V1AnalyticsStocksRequestPlacementZoneEnum = { + PLACEMENT_ZONE_NONE: 'PLACEMENT_ZONE_NONE', + CLOSED_ZONE: 'CLOSED_ZONE', + DANGEROUS_GOOD: 'DANGEROUS_GOOD', + PRODUCTS_PLUS_17: 'PRODUCTS_PLUS_17', + SORT: 'SORT', + NON_SORT_MEZ: 'NON_SORT_MEZ', + OVERSIZE: 'OVERSIZE', + JEWELRY: 'JEWELRY', + UNRESOLVED: 'UNRESOLVED' +}; +/** + * @export + */ +export const V1AnalyticsStocksRequestTurnoverGradesEnum = { + TURNOVER_GRADE_NONE: 'TURNOVER_GRADE_NONE', + DEFICIT: 'DEFICIT', + POPULAR: 'POPULAR', + ACTUAL: 'ACTUAL', + SURPLUS: 'SURPLUS', + NO_SALES: 'NO_SALES', + WAS_NO_SALES: 'WAS_NO_SALES', + RESTRICTED_NO_SALES: 'RESTRICTED_NO_SALES', + COLLECTING_DATA: 'COLLECTING_DATA', + WAITING_FOR_SUPPLY: 'WAITING_FOR_SUPPLY', + WAS_DEFICIT: 'WAS_DEFICIT', + WAS_POPULAR: 'WAS_POPULAR', + WAS_ACTUAL: 'WAS_ACTUAL', + WAS_SURPLUS: 'WAS_SURPLUS' +}; +/** + * Check if a given object implements the V1AnalyticsStocksRequest interface. + */ +export function instanceOfV1AnalyticsStocksRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1AnalyticsStocksRequestFromJSON(json) { + return V1AnalyticsStocksRequestFromJSONTyped(json, false); +} +export function V1AnalyticsStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_ids': json['cluster_ids'] == null ? undefined : json['cluster_ids'], + 'item_tags': json['item_tags'] == null ? undefined : json['item_tags'], + 'macrolocal_cluster_ids': json['macrolocal_cluster_ids'] == null ? undefined : json['macrolocal_cluster_ids'], + 'placement_zone': json['placement_zone'] == null ? undefined : json['placement_zone'], + 'skus': json['skus'], + 'turnover_grades': json['turnover_grades'] == null ? undefined : json['turnover_grades'], + 'unmarked_stocks_only': json['unmarked_stocks_only'] == null ? undefined : json['unmarked_stocks_only'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function V1AnalyticsStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_ids': value['cluster_ids'], + 'item_tags': value['item_tags'], + 'macrolocal_cluster_ids': value['macrolocal_cluster_ids'], + 'placement_zone': value['placement_zone'], + 'skus': value['skus'], + 'turnover_grades': value['turnover_grades'], + 'unmarked_stocks_only': value['unmarked_stocks_only'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/V1AnalyticsStocksResponse.d.ts b/dist/esm/models/V1AnalyticsStocksResponse.d.ts new file mode 100644 index 0000000..b3fcbc9 --- /dev/null +++ b/dist/esm/models/V1AnalyticsStocksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsStocksResponseItem } from './V1AnalyticsStocksResponseItem'; +/** + * + * @export + * @interface V1AnalyticsStocksResponse + */ +export interface V1AnalyticsStocksResponse { + /** + * Информация о товарах. + * @type {Array} + * @memberof V1AnalyticsStocksResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1AnalyticsStocksResponse interface. + */ +export declare function instanceOfV1AnalyticsStocksResponse(value: object): value is V1AnalyticsStocksResponse; +export declare function V1AnalyticsStocksResponseFromJSON(json: any): V1AnalyticsStocksResponse; +export declare function V1AnalyticsStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsStocksResponse; +export declare function V1AnalyticsStocksResponseToJSON(value?: V1AnalyticsStocksResponse | null): any; diff --git a/dist/esm/models/V1AnalyticsStocksResponse.js b/dist/esm/models/V1AnalyticsStocksResponse.js new file mode 100644 index 0000000..58d822e --- /dev/null +++ b/dist/esm/models/V1AnalyticsStocksResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AnalyticsStocksResponseItemFromJSON, V1AnalyticsStocksResponseItemToJSON, } from './V1AnalyticsStocksResponseItem'; +/** + * Check if a given object implements the V1AnalyticsStocksResponse interface. + */ +export function instanceOfV1AnalyticsStocksResponse(value) { + return true; +} +export function V1AnalyticsStocksResponseFromJSON(json) { + return V1AnalyticsStocksResponseFromJSONTyped(json, false); +} +export function V1AnalyticsStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1AnalyticsStocksResponseItemFromJSON)), + }; +} +export function V1AnalyticsStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1AnalyticsStocksResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V1AnalyticsStocksResponseItem.d.ts b/dist/esm/models/V1AnalyticsStocksResponseItem.d.ts new file mode 100644 index 0000000..7859cd9 --- /dev/null +++ b/dist/esm/models/V1AnalyticsStocksResponseItem.d.ts @@ -0,0 +1,333 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsStocksResponseItem + */ +export interface V1AnalyticsStocksResponseItem { + /** + * Среднесуточное количество проданных единиц товара за последние 28 дней по всем кластерам. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + ads?: number; + /** + * Среднесуточное количество проданных единиц товара за последние 28 дней в кластере. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + ads_cluster?: number; + /** + * Количество товаров, которые доступны к продаже. Соответствует столбцу «Доступно к продаже». + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + available_stock_count?: number; + /** + * Идентификатор кластера. Получить подробную информацию о кластере можно через метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + cluster_id?: number; + /** + * Название кластера. + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + cluster_name?: string; + /** + * Количество дней без продаж по всем кластерам. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + days_without_sales?: number; + /** + * Количество дней без продаж в кластере. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + days_without_sales_cluster?: number; + /** + * Количество излишков с поставки, которые доступны к вывозу. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + excess_stock_count?: number; + /** + * Количество единиц товара с истекающим сроком годности. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + expiring_stock_count?: number; + /** + * Количество дней, на которое хватит остатка товара с учётом среднесуточных продаж за 28 дней по всем кластерам. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + idc?: number; + /** + * Количество дней, на которое хватит остатка товара с учётом среднесуточных продаж за 28 дней в кластере. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + idc_cluster?: number; + /** + * Теги товара: + * - `UNSPECIFIED` — не определено; + * - `ITEM_ATTRIBUTE_NONE` — без тега; + * - `ECONOM` — эконом-товар; + * - `NOVEL` — новинка; + * - `DISCOUNT` — уценённый товар; + * - `FBS_RETURN` — товар из возврата FBS; + * - `SUPER` — Super-товар; + * - `MARKABLE` — товар, подлежащий маркировке. + * + * @type {Array} + * @memberof V1AnalyticsStocksResponseItem + */ + item_tags?: Array; + /** + * Идентификатор макролокального кластера. Получите информацию о кластере методом [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList) или [/v2/cluster/list](#operation/DraftClusterList). + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + macrolocal_cluster_id?: number; + /** + * Название товара. + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + offer_id?: string; + /** + * Количество единиц товара, проходящих проверку. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + other_stock_count?: number; + /** + * Зона размещения товара: + * - `UNSPECIFIED` — не указана; + * - `CLOSED_ZONE` — закрытая; + * - `DANGEROUS_GOOD` — опасные товары; + * - `PRODUCTS` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — ещё не определена. + * + * @type {Array} + * @memberof V1AnalyticsStocksResponseItem + */ + placement_zone?: Array; + /** + * Количество единиц товара в заявках на поставку. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + requested_stock_count?: number; + /** + * Количество единиц товара в процессе возврата от покупателей. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + return_from_customer_stock_count?: number; + /** + * Количество единиц товара, готовящихся к вывозу по вашей заявке. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + return_to_seller_stock_count?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + sku?: number; + /** + * Количество брака, доступное к вывозу со стока. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + stock_defect_stock_count?: number; + /** + * Количество брака, доступное к вывозу с поставки. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + transit_defect_stock_count?: number; + /** + * Количество единиц товара в поставках в пути. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + transit_stock_count?: number; + /** + * Статус ликвидности товара по всем кластерам: + * - `UNSPECIFIED` — значение не определено. + * - `TURNOVER_GRADE_NONE` — нет статуса ликвидности. + * - `DEFICIT` — дефицитный. Остатков товара хватит до 28 дней. + * - `POPULAR` — очень популярный. Остатков товара хватит на 28–56 дней. + * - `ACTUAL` — популярный. Остатков товара хватит на 56–120 дней. + * - `SURPLUS` — избыточный. Товар продаётся медленно, остатков хватит более чем на 120 дней. + * - `NO_SALES` — без продаж. У товара нет продаж последние 28 дней. + * - `WAS_NO_SALES` — был без продаж. У товара не было продаж и остатков последние 28 дней. + * - `RESTRICTED_NO_SALES` — без продаж, ограничен. У товара не было продаж более 120 дней. Такой товар [нельзя добавить в поставку](https://seller-edu.ozon.ru/fbo/rabota-so-stokom/nehodovye-tovary). + * - `COLLECTING_DATA` — сбор данных. Для расчёта ликвидности нового товара собираем данные в течение 60 дней после поставки. + * - `WAITING_FOR_SUPPLY` — ожидаем поставки. На складе нет остатков, доступных к продаже. Сделайте поставку для начала сбора данных. + * - `WAS_DEFICIT` — был дефицитным. Товар был дефицитным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_POPULAR` — был очень популярным. Товар был очень популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_ACTUAL` — был популярным. Товар был популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_SURPLUS` — был избыточным. Товар был избыточным последние 56 дней. Сейчас у него нет остатков. + * + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + turnover_grade?: V1AnalyticsStocksResponseItemTurnoverGradeEnum; + /** + * Статус ликвидности товара в кластере: + * - `UNSPECIFIED` — значение не определено. + * - `TURNOVER_GRADE_NONE` — нет статуса ликвидности. + * - `DEFICIT` — дефицитный. Остатков товара хватит до 28 дней. + * - `POPULAR` — очень популярный. Остатков товара хватит на 28–56 дней. + * - `ACTUAL` — популярный. Остатков товара хватит на 56–120 дней. + * - `SURPLUS` — избыточный. Товар продаётся медленно, остатков хватит более чем на 120 дней. + * - `NO_SALES` — без продаж. У товара нет продаж последние 28 дней. + * - `WAS_NO_SALES` — был без продаж. У товара не было продаж и остатков последние 28 дней. + * - `RESTRICTED_NO_SALES` — без продаж, ограничен. У товара не было продаж более 120 дней. Такой товар [нельзя добавить в поставку](https://seller-edu.ozon.ru/fbo/rabota-so-stokom/nehodovye-tovary). + * - `COLLECTING_DATA` — сбор данных. Для расчёта ликвидности нового товара собираем данные в течение 60 дней после поставки. + * - `WAITING_FOR_SUPPLY` — ожидаем поставки. На складе нет остатков, доступных к продаже. Сделайте поставку для начала сбора данных. + * - `WAS_DEFICIT` — был дефицитным. Товар был дефицитным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_POPULAR` — был очень популярным. Товар был очень популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_ACTUAL` — был популярным. Товар был популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_SURPLUS` — был избыточным. Товар был избыточным последние 56 дней. Сейчас у него нет остатков. + * + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + turnover_grade_cluster?: V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum; + /** + * Количество товаров, которые готовятся к продаже. Соответствует столбцу «Готовим к продаже». + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + valid_stock_count?: number; + /** + * Количество маркируемых товаров, которые ожидают ваших действий. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + waiting_docs_stock_count?: number; + /** + * Количество маркируемых товаров, которые ожидают вывоз. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + waiting_docs_to_export_stock_count?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + warehouse_name?: string; +} +/** + * @export + */ +export declare const V1AnalyticsStocksResponseItemItemTagsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ITEM_ATTRIBUTE_NONE: "ITEM_ATTRIBUTE_NONE"; + readonly ECONOM: "ECONOM"; + readonly NOVEL: "NOVEL"; + readonly DISCOUNT: "DISCOUNT"; + readonly FBS_RETURN: "FBS_RETURN"; + readonly SUPER: "SUPER"; + readonly MARKABLE: "MARKABLE"; +}; +export type V1AnalyticsStocksResponseItemItemTagsEnum = typeof V1AnalyticsStocksResponseItemItemTagsEnum[keyof typeof V1AnalyticsStocksResponseItemItemTagsEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksResponseItemPlacementZoneEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CLOSED_ZONE: "CLOSED_ZONE"; + readonly DANGEROUS_GOOD: "DANGEROUS_GOOD"; + readonly PRODUCTS: "PRODUCTS"; + readonly SORT: "SORT"; + readonly NON_SORT: "NON_SORT"; + readonly OVERSIZE: "OVERSIZE"; + readonly JEWELRY: "JEWELRY"; + readonly UNRESOLVED: "UNRESOLVED"; +}; +export type V1AnalyticsStocksResponseItemPlacementZoneEnum = typeof V1AnalyticsStocksResponseItemPlacementZoneEnum[keyof typeof V1AnalyticsStocksResponseItemPlacementZoneEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksResponseItemTurnoverGradeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly TURNOVER_GRADE_NONE: "TURNOVER_GRADE_NONE"; + readonly DEFICIT: "DEFICIT"; + readonly POPULAR: "POPULAR"; + readonly ACTUAL: "ACTUAL"; + readonly SURPLUS: "SURPLUS"; + readonly NO_SALES: "NO_SALES"; + readonly WAS_NO_SALES: "WAS_NO_SALES"; + readonly RESTRICTED_NO_SALES: "RESTRICTED_NO_SALES"; + readonly COLLECTING_DATA: "COLLECTING_DATA"; + readonly WAITING_FOR_SUPPLY: "WAITING_FOR_SUPPLY"; + readonly WAS_DEFICIT: "WAS_DEFICIT"; + readonly WAS_POPULAR: "WAS_POPULAR"; + readonly WAS_ACTUAL: "WAS_ACTUAL"; + readonly WAS_SURPLUS: "WAS_SURPLUS"; +}; +export type V1AnalyticsStocksResponseItemTurnoverGradeEnum = typeof V1AnalyticsStocksResponseItemTurnoverGradeEnum[keyof typeof V1AnalyticsStocksResponseItemTurnoverGradeEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly TURNOVER_GRADE_NONE: "TURNOVER_GRADE_NONE"; + readonly DEFICIT: "DEFICIT"; + readonly POPULAR: "POPULAR"; + readonly ACTUAL: "ACTUAL"; + readonly SURPLUS: "SURPLUS"; + readonly NO_SALES: "NO_SALES"; + readonly WAS_NO_SALES: "WAS_NO_SALES"; + readonly RESTRICTED_NO_SALES: "RESTRICTED_NO_SALES"; + readonly COLLECTING_DATA: "COLLECTING_DATA"; + readonly WAITING_FOR_SUPPLY: "WAITING_FOR_SUPPLY"; + readonly WAS_DEFICIT: "WAS_DEFICIT"; + readonly WAS_POPULAR: "WAS_POPULAR"; + readonly WAS_ACTUAL: "WAS_ACTUAL"; + readonly WAS_SURPLUS: "WAS_SURPLUS"; +}; +export type V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum = typeof V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum[keyof typeof V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum]; +/** + * Check if a given object implements the V1AnalyticsStocksResponseItem interface. + */ +export declare function instanceOfV1AnalyticsStocksResponseItem(value: object): value is V1AnalyticsStocksResponseItem; +export declare function V1AnalyticsStocksResponseItemFromJSON(json: any): V1AnalyticsStocksResponseItem; +export declare function V1AnalyticsStocksResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsStocksResponseItem; +export declare function V1AnalyticsStocksResponseItemToJSON(value?: V1AnalyticsStocksResponseItem | null): any; diff --git a/dist/esm/models/V1AnalyticsStocksResponseItem.js b/dist/esm/models/V1AnalyticsStocksResponseItem.js new file mode 100644 index 0000000..d6a0e95 --- /dev/null +++ b/dist/esm/models/V1AnalyticsStocksResponseItem.js @@ -0,0 +1,165 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V1AnalyticsStocksResponseItemItemTagsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ITEM_ATTRIBUTE_NONE: 'ITEM_ATTRIBUTE_NONE', + ECONOM: 'ECONOM', + NOVEL: 'NOVEL', + DISCOUNT: 'DISCOUNT', + FBS_RETURN: 'FBS_RETURN', + SUPER: 'SUPER', + MARKABLE: 'MARKABLE' +}; +/** + * @export + */ +export const V1AnalyticsStocksResponseItemPlacementZoneEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CLOSED_ZONE: 'CLOSED_ZONE', + DANGEROUS_GOOD: 'DANGEROUS_GOOD', + PRODUCTS: 'PRODUCTS', + SORT: 'SORT', + NON_SORT: 'NON_SORT', + OVERSIZE: 'OVERSIZE', + JEWELRY: 'JEWELRY', + UNRESOLVED: 'UNRESOLVED' +}; +/** + * @export + */ +export const V1AnalyticsStocksResponseItemTurnoverGradeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + TURNOVER_GRADE_NONE: 'TURNOVER_GRADE_NONE', + DEFICIT: 'DEFICIT', + POPULAR: 'POPULAR', + ACTUAL: 'ACTUAL', + SURPLUS: 'SURPLUS', + NO_SALES: 'NO_SALES', + WAS_NO_SALES: 'WAS_NO_SALES', + RESTRICTED_NO_SALES: 'RESTRICTED_NO_SALES', + COLLECTING_DATA: 'COLLECTING_DATA', + WAITING_FOR_SUPPLY: 'WAITING_FOR_SUPPLY', + WAS_DEFICIT: 'WAS_DEFICIT', + WAS_POPULAR: 'WAS_POPULAR', + WAS_ACTUAL: 'WAS_ACTUAL', + WAS_SURPLUS: 'WAS_SURPLUS' +}; +/** + * @export + */ +export const V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum = { + UNSPECIFIED: 'UNSPECIFIED', + TURNOVER_GRADE_NONE: 'TURNOVER_GRADE_NONE', + DEFICIT: 'DEFICIT', + POPULAR: 'POPULAR', + ACTUAL: 'ACTUAL', + SURPLUS: 'SURPLUS', + NO_SALES: 'NO_SALES', + WAS_NO_SALES: 'WAS_NO_SALES', + RESTRICTED_NO_SALES: 'RESTRICTED_NO_SALES', + COLLECTING_DATA: 'COLLECTING_DATA', + WAITING_FOR_SUPPLY: 'WAITING_FOR_SUPPLY', + WAS_DEFICIT: 'WAS_DEFICIT', + WAS_POPULAR: 'WAS_POPULAR', + WAS_ACTUAL: 'WAS_ACTUAL', + WAS_SURPLUS: 'WAS_SURPLUS' +}; +/** + * Check if a given object implements the V1AnalyticsStocksResponseItem interface. + */ +export function instanceOfV1AnalyticsStocksResponseItem(value) { + return true; +} +export function V1AnalyticsStocksResponseItemFromJSON(json) { + return V1AnalyticsStocksResponseItemFromJSONTyped(json, false); +} +export function V1AnalyticsStocksResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ads': json['ads'] == null ? undefined : json['ads'], + 'ads_cluster': json['ads_cluster'] == null ? undefined : json['ads_cluster'], + 'available_stock_count': json['available_stock_count'] == null ? undefined : json['available_stock_count'], + 'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'], + 'cluster_name': json['cluster_name'] == null ? undefined : json['cluster_name'], + 'days_without_sales': json['days_without_sales'] == null ? undefined : json['days_without_sales'], + 'days_without_sales_cluster': json['days_without_sales_cluster'] == null ? undefined : json['days_without_sales_cluster'], + 'excess_stock_count': json['excess_stock_count'] == null ? undefined : json['excess_stock_count'], + 'expiring_stock_count': json['expiring_stock_count'] == null ? undefined : json['expiring_stock_count'], + 'idc': json['idc'] == null ? undefined : json['idc'], + 'idc_cluster': json['idc_cluster'] == null ? undefined : json['idc_cluster'], + 'item_tags': json['item_tags'] == null ? undefined : json['item_tags'], + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'other_stock_count': json['other_stock_count'] == null ? undefined : json['other_stock_count'], + 'placement_zone': json['placement_zone'] == null ? undefined : json['placement_zone'], + 'requested_stock_count': json['requested_stock_count'] == null ? undefined : json['requested_stock_count'], + 'return_from_customer_stock_count': json['return_from_customer_stock_count'] == null ? undefined : json['return_from_customer_stock_count'], + 'return_to_seller_stock_count': json['return_to_seller_stock_count'] == null ? undefined : json['return_to_seller_stock_count'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'stock_defect_stock_count': json['stock_defect_stock_count'] == null ? undefined : json['stock_defect_stock_count'], + 'transit_defect_stock_count': json['transit_defect_stock_count'] == null ? undefined : json['transit_defect_stock_count'], + 'transit_stock_count': json['transit_stock_count'] == null ? undefined : json['transit_stock_count'], + 'turnover_grade': json['turnover_grade'] == null ? undefined : json['turnover_grade'], + 'turnover_grade_cluster': json['turnover_grade_cluster'] == null ? undefined : json['turnover_grade_cluster'], + 'valid_stock_count': json['valid_stock_count'] == null ? undefined : json['valid_stock_count'], + 'waiting_docs_stock_count': json['waiting_docs_stock_count'] == null ? undefined : json['waiting_docs_stock_count'], + 'waiting_docs_to_export_stock_count': json['waiting_docs_to_export_stock_count'] == null ? undefined : json['waiting_docs_to_export_stock_count'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function V1AnalyticsStocksResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'ads': value['ads'], + 'ads_cluster': value['ads_cluster'], + 'available_stock_count': value['available_stock_count'], + 'cluster_id': value['cluster_id'], + 'cluster_name': value['cluster_name'], + 'days_without_sales': value['days_without_sales'], + 'days_without_sales_cluster': value['days_without_sales_cluster'], + 'excess_stock_count': value['excess_stock_count'], + 'expiring_stock_count': value['expiring_stock_count'], + 'idc': value['idc'], + 'idc_cluster': value['idc_cluster'], + 'item_tags': value['item_tags'], + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'other_stock_count': value['other_stock_count'], + 'placement_zone': value['placement_zone'], + 'requested_stock_count': value['requested_stock_count'], + 'return_from_customer_stock_count': value['return_from_customer_stock_count'], + 'return_to_seller_stock_count': value['return_to_seller_stock_count'], + 'sku': value['sku'], + 'stock_defect_stock_count': value['stock_defect_stock_count'], + 'transit_defect_stock_count': value['transit_defect_stock_count'], + 'transit_stock_count': value['transit_stock_count'], + 'turnover_grade': value['turnover_grade'], + 'turnover_grade_cluster': value['turnover_grade_cluster'], + 'valid_stock_count': value['valid_stock_count'], + 'waiting_docs_stock_count': value['waiting_docs_stock_count'], + 'waiting_docs_to_export_stock_count': value['waiting_docs_to_export_stock_count'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/V1AnalyticsTurnoverStocksRequest.d.ts b/dist/esm/models/V1AnalyticsTurnoverStocksRequest.d.ts new file mode 100644 index 0000000..61f857b --- /dev/null +++ b/dist/esm/models/V1AnalyticsTurnoverStocksRequest.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsTurnoverStocksRequest + */ +export interface V1AnalyticsTurnoverStocksRequest { + /** + * Количество значений в ответе. + * + * @type {number} + * @memberof V1AnalyticsTurnoverStocksRequest + */ + limit?: number; + /** + * Количество элементов, которое будет пропущено в ответе. + * + * Например, если `offset = 10`, ответ начнётся с 11-го найденного элемента. + * + * @type {number} + * @memberof V1AnalyticsTurnoverStocksRequest + */ + offset?: number; + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1AnalyticsTurnoverStocksRequest + */ + sku?: Array; +} +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksRequest interface. + */ +export declare function instanceOfV1AnalyticsTurnoverStocksRequest(value: object): value is V1AnalyticsTurnoverStocksRequest; +export declare function V1AnalyticsTurnoverStocksRequestFromJSON(json: any): V1AnalyticsTurnoverStocksRequest; +export declare function V1AnalyticsTurnoverStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsTurnoverStocksRequest; +export declare function V1AnalyticsTurnoverStocksRequestToJSON(value?: V1AnalyticsTurnoverStocksRequest | null): any; diff --git a/dist/esm/models/V1AnalyticsTurnoverStocksRequest.js b/dist/esm/models/V1AnalyticsTurnoverStocksRequest.js new file mode 100644 index 0000000..a95bd83 --- /dev/null +++ b/dist/esm/models/V1AnalyticsTurnoverStocksRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksRequest interface. + */ +export function instanceOfV1AnalyticsTurnoverStocksRequest(value) { + return true; +} +export function V1AnalyticsTurnoverStocksRequestFromJSON(json) { + return V1AnalyticsTurnoverStocksRequestFromJSONTyped(json, false); +} +export function V1AnalyticsTurnoverStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1AnalyticsTurnoverStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1AnalyticsTurnoverStocksResponse.d.ts b/dist/esm/models/V1AnalyticsTurnoverStocksResponse.d.ts new file mode 100644 index 0000000..26be710 --- /dev/null +++ b/dist/esm/models/V1AnalyticsTurnoverStocksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsTurnoverStocksResponseItem } from './V1AnalyticsTurnoverStocksResponseItem'; +/** + * + * @export + * @interface V1AnalyticsTurnoverStocksResponse + */ +export interface V1AnalyticsTurnoverStocksResponse { + /** + * Товары. + * @type {Array} + * @memberof V1AnalyticsTurnoverStocksResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksResponse interface. + */ +export declare function instanceOfV1AnalyticsTurnoverStocksResponse(value: object): value is V1AnalyticsTurnoverStocksResponse; +export declare function V1AnalyticsTurnoverStocksResponseFromJSON(json: any): V1AnalyticsTurnoverStocksResponse; +export declare function V1AnalyticsTurnoverStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsTurnoverStocksResponse; +export declare function V1AnalyticsTurnoverStocksResponseToJSON(value?: V1AnalyticsTurnoverStocksResponse | null): any; diff --git a/dist/esm/models/V1AnalyticsTurnoverStocksResponse.js b/dist/esm/models/V1AnalyticsTurnoverStocksResponse.js new file mode 100644 index 0000000..5dea6b4 --- /dev/null +++ b/dist/esm/models/V1AnalyticsTurnoverStocksResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AnalyticsTurnoverStocksResponseItemFromJSON, V1AnalyticsTurnoverStocksResponseItemToJSON, } from './V1AnalyticsTurnoverStocksResponseItem'; +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksResponse interface. + */ +export function instanceOfV1AnalyticsTurnoverStocksResponse(value) { + return true; +} +export function V1AnalyticsTurnoverStocksResponseFromJSON(json) { + return V1AnalyticsTurnoverStocksResponseFromJSONTyped(json, false); +} +export function V1AnalyticsTurnoverStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1AnalyticsTurnoverStocksResponseItemFromJSON)), + }; +} +export function V1AnalyticsTurnoverStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1AnalyticsTurnoverStocksResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V1AnalyticsTurnoverStocksResponseItem.d.ts b/dist/esm/models/V1AnalyticsTurnoverStocksResponseItem.d.ts new file mode 100644 index 0000000..203aec5 --- /dev/null +++ b/dist/esm/models/V1AnalyticsTurnoverStocksResponseItem.d.ts @@ -0,0 +1,117 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsTurnoverStocksResponseItem + */ +export interface V1AnalyticsTurnoverStocksResponseItem { + /** + * Среднесуточное количество проданных единиц товара за последние 60 дней. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + ads?: number; + /** + * Остаток товара, шт. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + current_stock?: number; + /** + * На сколько дней хватит остатка товара с учётом среднесуточных продаж. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + idc?: number; + /** + * Уровень остатка товара: + * - `GRADES_NONE` — ожидаются поставки; + * - `GRADES_NOSALES` — нет продаж; + * - `GRADES_GREEN` — зелёный, «хороший»; + * - `GRADES_YELLOW` — жёлтый, «средний»; + * - `GRADES_RED` — красный, «плохой»; + * - `GRADES_CRITICAL` — критический. + * + * @type {string} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + idc_grade?: V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum; + /** + * Название товара. + * @type {string} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + sku?: number; + /** + * Фактическая оборачиваемость в днях. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + turnover?: number; + /** + * Уровень оборачиваемости: + * - `GRADES_NONE` — ожидаются поставки; + * - `GRADES_NOSALES` — нет продаж; + * - `GRADES_GREEN` — зелёный, «хороший»; + * - `GRADES_YELLOW` — жёлтый, «средний»; + * - `GRADES_RED` — красный, «плохой»; + * - `GRADES_CRITICAL` — критический. + * + * @type {string} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + turnover_grade?: V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum; +} +/** + * @export + */ +export declare const V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum: { + readonly NONE: "GRADES_NONE"; + readonly NOSALES: "GRADES_NOSALES"; + readonly GREEN: "GRADES_GREEN"; + readonly YELLOW: "GRADES_YELLOW"; + readonly RED: "GRADES_RED"; + readonly CRITICAL: "GRADES_CRITICAL"; +}; +export type V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum = typeof V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum[keyof typeof V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum]; +/** + * @export + */ +export declare const V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum: { + readonly NONE: "GRADES_NONE"; + readonly NOSALES: "GRADES_NOSALES"; + readonly GREEN: "GRADES_GREEN"; + readonly YELLOW: "GRADES_YELLOW"; + readonly RED: "GRADES_RED"; + readonly CRITICAL: "GRADES_CRITICAL"; +}; +export type V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum = typeof V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum[keyof typeof V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum]; +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksResponseItem interface. + */ +export declare function instanceOfV1AnalyticsTurnoverStocksResponseItem(value: object): value is V1AnalyticsTurnoverStocksResponseItem; +export declare function V1AnalyticsTurnoverStocksResponseItemFromJSON(json: any): V1AnalyticsTurnoverStocksResponseItem; +export declare function V1AnalyticsTurnoverStocksResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsTurnoverStocksResponseItem; +export declare function V1AnalyticsTurnoverStocksResponseItemToJSON(value?: V1AnalyticsTurnoverStocksResponseItem | null): any; diff --git a/dist/esm/models/V1AnalyticsTurnoverStocksResponseItem.js b/dist/esm/models/V1AnalyticsTurnoverStocksResponseItem.js new file mode 100644 index 0000000..40b95bf --- /dev/null +++ b/dist/esm/models/V1AnalyticsTurnoverStocksResponseItem.js @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum = { + NONE: 'GRADES_NONE', + NOSALES: 'GRADES_NOSALES', + GREEN: 'GRADES_GREEN', + YELLOW: 'GRADES_YELLOW', + RED: 'GRADES_RED', + CRITICAL: 'GRADES_CRITICAL' +}; +/** + * @export + */ +export const V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum = { + NONE: 'GRADES_NONE', + NOSALES: 'GRADES_NOSALES', + GREEN: 'GRADES_GREEN', + YELLOW: 'GRADES_YELLOW', + RED: 'GRADES_RED', + CRITICAL: 'GRADES_CRITICAL' +}; +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksResponseItem interface. + */ +export function instanceOfV1AnalyticsTurnoverStocksResponseItem(value) { + return true; +} +export function V1AnalyticsTurnoverStocksResponseItemFromJSON(json) { + return V1AnalyticsTurnoverStocksResponseItemFromJSONTyped(json, false); +} +export function V1AnalyticsTurnoverStocksResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ads': json['ads'] == null ? undefined : json['ads'], + 'current_stock': json['current_stock'] == null ? undefined : json['current_stock'], + 'idc': json['idc'] == null ? undefined : json['idc'], + 'idc_grade': json['idc_grade'] == null ? undefined : json['idc_grade'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'turnover': json['turnover'] == null ? undefined : json['turnover'], + 'turnover_grade': json['turnover_grade'] == null ? undefined : json['turnover_grade'], + }; +} +export function V1AnalyticsTurnoverStocksResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'ads': value['ads'], + 'current_stock': value['current_stock'], + 'idc': value['idc'], + 'idc_grade': value['idc_grade'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'sku': value['sku'], + 'turnover': value['turnover'], + 'turnover_grade': value['turnover_grade'], + }; +} diff --git a/dist/esm/models/V1ApproveDeclineDiscountTasksResponse.d.ts b/dist/esm/models/V1ApproveDeclineDiscountTasksResponse.d.ts new file mode 100644 index 0000000..f397b84 --- /dev/null +++ b/dist/esm/models/V1ApproveDeclineDiscountTasksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ApproveDeclineDiscountTasksResponseResult } from './V1ApproveDeclineDiscountTasksResponseResult'; +/** + * + * @export + * @interface V1ApproveDeclineDiscountTasksResponse + */ +export interface V1ApproveDeclineDiscountTasksResponse { + /** + * + * @type {V1ApproveDeclineDiscountTasksResponseResult} + * @memberof V1ApproveDeclineDiscountTasksResponse + */ + result?: V1ApproveDeclineDiscountTasksResponseResult; +} +/** + * Check if a given object implements the V1ApproveDeclineDiscountTasksResponse interface. + */ +export declare function instanceOfV1ApproveDeclineDiscountTasksResponse(value: object): value is V1ApproveDeclineDiscountTasksResponse; +export declare function V1ApproveDeclineDiscountTasksResponseFromJSON(json: any): V1ApproveDeclineDiscountTasksResponse; +export declare function V1ApproveDeclineDiscountTasksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ApproveDeclineDiscountTasksResponse; +export declare function V1ApproveDeclineDiscountTasksResponseToJSON(value?: V1ApproveDeclineDiscountTasksResponse | null): any; diff --git a/dist/esm/models/V1ApproveDeclineDiscountTasksResponse.js b/dist/esm/models/V1ApproveDeclineDiscountTasksResponse.js new file mode 100644 index 0000000..8dba108 --- /dev/null +++ b/dist/esm/models/V1ApproveDeclineDiscountTasksResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ApproveDeclineDiscountTasksResponseResultFromJSON, V1ApproveDeclineDiscountTasksResponseResultToJSON, } from './V1ApproveDeclineDiscountTasksResponseResult'; +/** + * Check if a given object implements the V1ApproveDeclineDiscountTasksResponse interface. + */ +export function instanceOfV1ApproveDeclineDiscountTasksResponse(value) { + return true; +} +export function V1ApproveDeclineDiscountTasksResponseFromJSON(json) { + return V1ApproveDeclineDiscountTasksResponseFromJSONTyped(json, false); +} +export function V1ApproveDeclineDiscountTasksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1ApproveDeclineDiscountTasksResponseResultFromJSON(json['result']), + }; +} +export function V1ApproveDeclineDiscountTasksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1ApproveDeclineDiscountTasksResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1ApproveDeclineDiscountTasksResponseResult.d.ts b/dist/esm/models/V1ApproveDeclineDiscountTasksResponseResult.d.ts new file mode 100644 index 0000000..e03d7b1 --- /dev/null +++ b/dist/esm/models/V1ApproveDeclineDiscountTasksResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ApproveDeclineDiscountTasksResponseFailDetail } from './ApproveDeclineDiscountTasksResponseFailDetail'; +/** + * Результат работы метода. + * @export + * @interface V1ApproveDeclineDiscountTasksResponseResult + */ +export interface V1ApproveDeclineDiscountTasksResponseResult { + /** + * Ошибки при создании заявки. + * @type {Array} + * @memberof V1ApproveDeclineDiscountTasksResponseResult + */ + fail_details?: Array; + /** + * Количество заявок с успешной сменой статуса. + * @type {number} + * @memberof V1ApproveDeclineDiscountTasksResponseResult + */ + success_count?: number; + /** + * Количество заявок, у которых не удалось сменить статус. + * @type {number} + * @memberof V1ApproveDeclineDiscountTasksResponseResult + */ + fail_count?: number; +} +/** + * Check if a given object implements the V1ApproveDeclineDiscountTasksResponseResult interface. + */ +export declare function instanceOfV1ApproveDeclineDiscountTasksResponseResult(value: object): value is V1ApproveDeclineDiscountTasksResponseResult; +export declare function V1ApproveDeclineDiscountTasksResponseResultFromJSON(json: any): V1ApproveDeclineDiscountTasksResponseResult; +export declare function V1ApproveDeclineDiscountTasksResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ApproveDeclineDiscountTasksResponseResult; +export declare function V1ApproveDeclineDiscountTasksResponseResultToJSON(value?: V1ApproveDeclineDiscountTasksResponseResult | null): any; diff --git a/dist/esm/models/V1ApproveDeclineDiscountTasksResponseResult.js b/dist/esm/models/V1ApproveDeclineDiscountTasksResponseResult.js new file mode 100644 index 0000000..7dd19c4 --- /dev/null +++ b/dist/esm/models/V1ApproveDeclineDiscountTasksResponseResult.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApproveDeclineDiscountTasksResponseFailDetailFromJSON, ApproveDeclineDiscountTasksResponseFailDetailToJSON, } from './ApproveDeclineDiscountTasksResponseFailDetail'; +/** + * Check if a given object implements the V1ApproveDeclineDiscountTasksResponseResult interface. + */ +export function instanceOfV1ApproveDeclineDiscountTasksResponseResult(value) { + return true; +} +export function V1ApproveDeclineDiscountTasksResponseResultFromJSON(json) { + return V1ApproveDeclineDiscountTasksResponseResultFromJSONTyped(json, false); +} +export function V1ApproveDeclineDiscountTasksResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fail_details': json['fail_details'] == null ? undefined : (json['fail_details'].map(ApproveDeclineDiscountTasksResponseFailDetailFromJSON)), + 'success_count': json['success_count'] == null ? undefined : json['success_count'], + 'fail_count': json['fail_count'] == null ? undefined : json['fail_count'], + }; +} +export function V1ApproveDeclineDiscountTasksResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'fail_details': value['fail_details'] == null ? undefined : (value['fail_details'].map(ApproveDeclineDiscountTasksResponseFailDetailToJSON)), + 'success_count': value['success_count'], + 'fail_count': value['fail_count'], + }; +} diff --git a/dist/esm/models/V1ApproveDiscountTasksRequest.d.ts b/dist/esm/models/V1ApproveDiscountTasksRequest.d.ts new file mode 100644 index 0000000..e5f98b7 --- /dev/null +++ b/dist/esm/models/V1ApproveDiscountTasksRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ApproveDiscountTasksRequestTask } from './V1ApproveDiscountTasksRequestTask'; +/** + * + * @export + * @interface V1ApproveDiscountTasksRequest + */ +export interface V1ApproveDiscountTasksRequest { + /** + * Список заявок. + * @type {Array} + * @memberof V1ApproveDiscountTasksRequest + */ + tasks: Array; +} +/** + * Check if a given object implements the V1ApproveDiscountTasksRequest interface. + */ +export declare function instanceOfV1ApproveDiscountTasksRequest(value: object): value is V1ApproveDiscountTasksRequest; +export declare function V1ApproveDiscountTasksRequestFromJSON(json: any): V1ApproveDiscountTasksRequest; +export declare function V1ApproveDiscountTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ApproveDiscountTasksRequest; +export declare function V1ApproveDiscountTasksRequestToJSON(value?: V1ApproveDiscountTasksRequest | null): any; diff --git a/dist/esm/models/V1ApproveDiscountTasksRequest.js b/dist/esm/models/V1ApproveDiscountTasksRequest.js new file mode 100644 index 0000000..8927e5b --- /dev/null +++ b/dist/esm/models/V1ApproveDiscountTasksRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ApproveDiscountTasksRequestTaskFromJSON, V1ApproveDiscountTasksRequestTaskToJSON, } from './V1ApproveDiscountTasksRequestTask'; +/** + * Check if a given object implements the V1ApproveDiscountTasksRequest interface. + */ +export function instanceOfV1ApproveDiscountTasksRequest(value) { + if (!('tasks' in value) || value['tasks'] === undefined) + return false; + return true; +} +export function V1ApproveDiscountTasksRequestFromJSON(json) { + return V1ApproveDiscountTasksRequestFromJSONTyped(json, false); +} +export function V1ApproveDiscountTasksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tasks': (json['tasks'].map(V1ApproveDiscountTasksRequestTaskFromJSON)), + }; +} +export function V1ApproveDiscountTasksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'tasks': (value['tasks'].map(V1ApproveDiscountTasksRequestTaskToJSON)), + }; +} diff --git a/dist/esm/models/V1ApproveDiscountTasksRequestTask.d.ts b/dist/esm/models/V1ApproveDiscountTasksRequestTask.d.ts new file mode 100644 index 0000000..ab15275 --- /dev/null +++ b/dist/esm/models/V1ApproveDiscountTasksRequestTask.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ApproveDiscountTasksRequestTask + */ +export interface V1ApproveDiscountTasksRequestTask { + /** + * Идентификатор заявки. Можно получить с помощью метода [/v1/actions/discounts-task/list](#operation/promos_task_list). + * @type {number} + * @memberof V1ApproveDiscountTasksRequestTask + */ + id: number; + /** + * Согласованная цена. + * @type {number} + * @memberof V1ApproveDiscountTasksRequestTask + */ + approved_price: number; + /** + * Комментарий продавца к заявке. + * @type {string} + * @memberof V1ApproveDiscountTasksRequestTask + */ + seller_comment?: string; + /** + * Одобренное минимальное количество товаров. + * @type {number} + * @memberof V1ApproveDiscountTasksRequestTask + */ + approved_quantity_min: number; + /** + * Одобренное максимальное количество товаров. + * @type {number} + * @memberof V1ApproveDiscountTasksRequestTask + */ + approved_quantity_max: number; +} +/** + * Check if a given object implements the V1ApproveDiscountTasksRequestTask interface. + */ +export declare function instanceOfV1ApproveDiscountTasksRequestTask(value: object): value is V1ApproveDiscountTasksRequestTask; +export declare function V1ApproveDiscountTasksRequestTaskFromJSON(json: any): V1ApproveDiscountTasksRequestTask; +export declare function V1ApproveDiscountTasksRequestTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ApproveDiscountTasksRequestTask; +export declare function V1ApproveDiscountTasksRequestTaskToJSON(value?: V1ApproveDiscountTasksRequestTask | null): any; diff --git a/dist/esm/models/V1ApproveDiscountTasksRequestTask.js b/dist/esm/models/V1ApproveDiscountTasksRequestTask.js new file mode 100644 index 0000000..b5deb18 --- /dev/null +++ b/dist/esm/models/V1ApproveDiscountTasksRequestTask.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ApproveDiscountTasksRequestTask interface. + */ +export function instanceOfV1ApproveDiscountTasksRequestTask(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('approved_price' in value) || value['approved_price'] === undefined) + return false; + if (!('approved_quantity_min' in value) || value['approved_quantity_min'] === undefined) + return false; + if (!('approved_quantity_max' in value) || value['approved_quantity_max'] === undefined) + return false; + return true; +} +export function V1ApproveDiscountTasksRequestTaskFromJSON(json) { + return V1ApproveDiscountTasksRequestTaskFromJSONTyped(json, false); +} +export function V1ApproveDiscountTasksRequestTaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'approved_price': json['approved_price'], + 'seller_comment': json['seller_comment'] == null ? undefined : json['seller_comment'], + 'approved_quantity_min': json['approved_quantity_min'], + 'approved_quantity_max': json['approved_quantity_max'], + }; +} +export function V1ApproveDiscountTasksRequestTaskToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'approved_price': value['approved_price'], + 'seller_comment': value['seller_comment'], + 'approved_quantity_min': value['approved_quantity_min'], + 'approved_quantity_max': value['approved_quantity_max'], + }; +} diff --git a/dist/esm/models/V1ArchiveDeclineReason.d.ts b/dist/esm/models/V1ArchiveDeclineReason.d.ts new file mode 100644 index 0000000..5b4bcf6 --- /dev/null +++ b/dist/esm/models/V1ArchiveDeclineReason.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина отклонения поставки. + * @export + * @interface V1ArchiveDeclineReason + */ +export interface V1ArchiveDeclineReason { + /** + * Код причины отклонения поставки: + * - `DECLINE_REASON_CODE_UNSPECIFIED` — не определён; + * - `CANNOT_CREATE_SUPPLY_ON_TPF` — не удалось создать поставку на стороне 3PF; + * - `DROP_OFF_POINT_CLOSED` — дроп-офф точка закрыта; + * - `CODE_SUPPLY_LOST` — поставка потеряна; + * - `COURIER_PICK_UP_REJECTED_BY_SELLER` — продавец отказался от забора поставки курьером; + * - `BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE` — проблемы с бондовыми документами. + * + * @type {string} + * @memberof V1ArchiveDeclineReason + */ + code?: V1ArchiveDeclineReasonCodeEnum; + /** + * Описание причины отклонения. + * @type {string} + * @memberof V1ArchiveDeclineReason + */ + message?: string; +} +/** + * @export + */ +export declare const V1ArchiveDeclineReasonCodeEnum: { + readonly DECLINE_REASON_CODE_UNSPECIFIED: "DECLINE_REASON_CODE_UNSPECIFIED"; + readonly CANNOT_CREATE_SUPPLY_ON_TPF: "CANNOT_CREATE_SUPPLY_ON_TPF"; + readonly DROP_OFF_POINT_CLOSED: "DROP_OFF_POINT_CLOSED"; + readonly CODE_SUPPLY_LOST: "CODE_SUPPLY_LOST"; + readonly COURIER_PICK_UP_REJECTED_BY_SELLER: "COURIER_PICK_UP_REJECTED_BY_SELLER"; + readonly BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE: "BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE"; +}; +export type V1ArchiveDeclineReasonCodeEnum = typeof V1ArchiveDeclineReasonCodeEnum[keyof typeof V1ArchiveDeclineReasonCodeEnum]; +/** + * Check if a given object implements the V1ArchiveDeclineReason interface. + */ +export declare function instanceOfV1ArchiveDeclineReason(value: object): value is V1ArchiveDeclineReason; +export declare function V1ArchiveDeclineReasonFromJSON(json: any): V1ArchiveDeclineReason; +export declare function V1ArchiveDeclineReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveDeclineReason; +export declare function V1ArchiveDeclineReasonToJSON(value?: V1ArchiveDeclineReason | null): any; diff --git a/dist/esm/models/V1ArchiveDeclineReason.js b/dist/esm/models/V1ArchiveDeclineReason.js new file mode 100644 index 0000000..5a4b761 --- /dev/null +++ b/dist/esm/models/V1ArchiveDeclineReason.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V1ArchiveDeclineReasonCodeEnum = { + DECLINE_REASON_CODE_UNSPECIFIED: 'DECLINE_REASON_CODE_UNSPECIFIED', + CANNOT_CREATE_SUPPLY_ON_TPF: 'CANNOT_CREATE_SUPPLY_ON_TPF', + DROP_OFF_POINT_CLOSED: 'DROP_OFF_POINT_CLOSED', + CODE_SUPPLY_LOST: 'CODE_SUPPLY_LOST', + COURIER_PICK_UP_REJECTED_BY_SELLER: 'COURIER_PICK_UP_REJECTED_BY_SELLER', + BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE: 'BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE' +}; +/** + * Check if a given object implements the V1ArchiveDeclineReason interface. + */ +export function instanceOfV1ArchiveDeclineReason(value) { + return true; +} +export function V1ArchiveDeclineReasonFromJSON(json) { + return V1ArchiveDeclineReasonFromJSONTyped(json, false); +} +export function V1ArchiveDeclineReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function V1ArchiveDeclineReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/V1ArchiveSkuSummary.d.ts b/dist/esm/models/V1ArchiveSkuSummary.d.ts new file mode 100644 index 0000000..fcd3278 --- /dev/null +++ b/dist/esm/models/V1ArchiveSkuSummary.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сводная информация по товарам в поставке. + * @export + * @interface V1ArchiveSkuSummary + */ +export interface V1ArchiveSkuSummary { + /** + * Общий объём товаров в литрах. + * @type {number} + * @memberof V1ArchiveSkuSummary + */ + rounded_total_volume_in_litres?: number; + /** + * Количество SKU в поставке. + * @type {number} + * @memberof V1ArchiveSkuSummary + */ + total_items_count?: number; + /** + * Количество единиц товаров в поставке. + * @type {number} + * @memberof V1ArchiveSkuSummary + */ + total_quantity?: number; +} +/** + * Check if a given object implements the V1ArchiveSkuSummary interface. + */ +export declare function instanceOfV1ArchiveSkuSummary(value: object): value is V1ArchiveSkuSummary; +export declare function V1ArchiveSkuSummaryFromJSON(json: any): V1ArchiveSkuSummary; +export declare function V1ArchiveSkuSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveSkuSummary; +export declare function V1ArchiveSkuSummaryToJSON(value?: V1ArchiveSkuSummary | null): any; diff --git a/dist/esm/models/V1ArchiveSkuSummary.js b/dist/esm/models/V1ArchiveSkuSummary.js new file mode 100644 index 0000000..27f0072 --- /dev/null +++ b/dist/esm/models/V1ArchiveSkuSummary.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ArchiveSkuSummary interface. + */ +export function instanceOfV1ArchiveSkuSummary(value) { + return true; +} +export function V1ArchiveSkuSummaryFromJSON(json) { + return V1ArchiveSkuSummaryFromJSONTyped(json, false); +} +export function V1ArchiveSkuSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rounded_total_volume_in_litres': json['rounded_total_volume_in_litres'] == null ? undefined : json['rounded_total_volume_in_litres'], + 'total_items_count': json['total_items_count'] == null ? undefined : json['total_items_count'], + 'total_quantity': json['total_quantity'] == null ? undefined : json['total_quantity'], + }; +} +export function V1ArchiveSkuSummaryToJSON(value) { + if (value == null) { + return value; + } + return { + 'rounded_total_volume_in_litres': value['rounded_total_volume_in_litres'], + 'total_items_count': value['total_items_count'], + 'total_quantity': value['total_quantity'], + }; +} diff --git a/dist/esm/models/V1ArchiveStatusEnum.d.ts b/dist/esm/models/V1ArchiveStatusEnum.d.ts new file mode 100644 index 0000000..3c09b71 --- /dev/null +++ b/dist/esm/models/V1ArchiveStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус завершённой поставки: + * - `ARCHIVE_STATUS_UNSPECIFIED` — не определён; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отклонена складом; + * - `CANCELLED_BY_SELLER` — отменена продавцом. + * + * @export + */ +export declare const V1ArchiveStatusEnum: { + readonly ARCHIVE_STATUS_UNSPECIFIED: "ARCHIVE_STATUS_UNSPECIFIED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED_BY_SELLER: "CANCELLED_BY_SELLER"; +}; +export type V1ArchiveStatusEnum = typeof V1ArchiveStatusEnum[keyof typeof V1ArchiveStatusEnum]; +export declare function instanceOfV1ArchiveStatusEnum(value: any): boolean; +export declare function V1ArchiveStatusEnumFromJSON(json: any): V1ArchiveStatusEnum; +export declare function V1ArchiveStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveStatusEnum; +export declare function V1ArchiveStatusEnumToJSON(value?: V1ArchiveStatusEnum | null): any; diff --git a/dist/esm/models/V1ArchiveStatusEnum.js b/dist/esm/models/V1ArchiveStatusEnum.js new file mode 100644 index 0000000..5c9edb2 --- /dev/null +++ b/dist/esm/models/V1ArchiveStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус завершённой поставки: + * - `ARCHIVE_STATUS_UNSPECIFIED` — не определён; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отклонена складом; + * - `CANCELLED_BY_SELLER` — отменена продавцом. + * + * @export + */ +export const V1ArchiveStatusEnum = { + ARCHIVE_STATUS_UNSPECIFIED: 'ARCHIVE_STATUS_UNSPECIFIED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED_BY_SELLER: 'CANCELLED_BY_SELLER' +}; +export function instanceOfV1ArchiveStatusEnum(value) { + for (const key in V1ArchiveStatusEnum) { + if (Object.prototype.hasOwnProperty.call(V1ArchiveStatusEnum, key)) { + if (V1ArchiveStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1ArchiveStatusEnumFromJSON(json) { + return V1ArchiveStatusEnumFromJSONTyped(json, false); +} +export function V1ArchiveStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1ArchiveStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1ArchiveWarehouseFBSRequest.d.ts b/dist/esm/models/V1ArchiveWarehouseFBSRequest.d.ts new file mode 100644 index 0000000..447462a --- /dev/null +++ b/dist/esm/models/V1ArchiveWarehouseFBSRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ArchiveWarehouseFBSRequest + */ +export interface V1ArchiveWarehouseFBSRequest { + /** + * Причина переноса склада в архив. + * @type {string} + * @memberof V1ArchiveWarehouseFBSRequest + */ + reason: string; + /** + * Идентификатор пункта возврата. Получите значение параметра методом [/v1/warehouse/fbs/update/return-point/list](#operation/WarehouseFBSUpdateReturnPointList). + * @type {number} + * @memberof V1ArchiveWarehouseFBSRequest + */ + return_point_id?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1ArchiveWarehouseFBSRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1ArchiveWarehouseFBSRequest interface. + */ +export declare function instanceOfV1ArchiveWarehouseFBSRequest(value: object): value is V1ArchiveWarehouseFBSRequest; +export declare function V1ArchiveWarehouseFBSRequestFromJSON(json: any): V1ArchiveWarehouseFBSRequest; +export declare function V1ArchiveWarehouseFBSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveWarehouseFBSRequest; +export declare function V1ArchiveWarehouseFBSRequestToJSON(value?: V1ArchiveWarehouseFBSRequest | null): any; diff --git a/dist/esm/models/V1ArchiveWarehouseFBSRequest.js b/dist/esm/models/V1ArchiveWarehouseFBSRequest.js new file mode 100644 index 0000000..6ad5a30 --- /dev/null +++ b/dist/esm/models/V1ArchiveWarehouseFBSRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ArchiveWarehouseFBSRequest interface. + */ +export function instanceOfV1ArchiveWarehouseFBSRequest(value) { + if (!('reason' in value) || value['reason'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1ArchiveWarehouseFBSRequestFromJSON(json) { + return V1ArchiveWarehouseFBSRequestFromJSONTyped(json, false); +} +export function V1ArchiveWarehouseFBSRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reason': json['reason'], + 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1ArchiveWarehouseFBSRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'reason': value['reason'], + 'return_point_id': value['return_point_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1ArchiveWarehouseFBSResponse.d.ts b/dist/esm/models/V1ArchiveWarehouseFBSResponse.d.ts new file mode 100644 index 0000000..a4301cf --- /dev/null +++ b/dist/esm/models/V1ArchiveWarehouseFBSResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ArchiveWarehouseFBSResponse + */ +export interface V1ArchiveWarehouseFBSResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1ArchiveWarehouseFBSResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1ArchiveWarehouseFBSResponse interface. + */ +export declare function instanceOfV1ArchiveWarehouseFBSResponse(value: object): value is V1ArchiveWarehouseFBSResponse; +export declare function V1ArchiveWarehouseFBSResponseFromJSON(json: any): V1ArchiveWarehouseFBSResponse; +export declare function V1ArchiveWarehouseFBSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveWarehouseFBSResponse; +export declare function V1ArchiveWarehouseFBSResponseToJSON(value?: V1ArchiveWarehouseFBSResponse | null): any; diff --git a/dist/esm/models/V1ArchiveWarehouseFBSResponse.js b/dist/esm/models/V1ArchiveWarehouseFBSResponse.js new file mode 100644 index 0000000..a20180a --- /dev/null +++ b/dist/esm/models/V1ArchiveWarehouseFBSResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ArchiveWarehouseFBSResponse interface. + */ +export function instanceOfV1ArchiveWarehouseFBSResponse(value) { + return true; +} +export function V1ArchiveWarehouseFBSResponseFromJSON(json) { + return V1ArchiveWarehouseFBSResponseFromJSONTyped(json, false); +} +export function V1ArchiveWarehouseFBSResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1ArchiveWarehouseFBSResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1AssemblyCarriagePostingListRequest.d.ts b/dist/esm/models/V1AssemblyCarriagePostingListRequest.d.ts new file mode 100644 index 0000000..a01cbcd --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriagePostingListRequestFilter } from './V1AssemblyCarriagePostingListRequestFilter'; +/** + * + * @export + * @interface V1AssemblyCarriagePostingListRequest + */ +export interface V1AssemblyCarriagePostingListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1AssemblyCarriagePostingListRequest + */ + cursor?: string; + /** + * + * @type {V1AssemblyCarriagePostingListRequestFilter} + * @memberof V1AssemblyCarriagePostingListRequest + */ + filter: V1AssemblyCarriagePostingListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1AssemblyCarriagePostingListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListRequest interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListRequest(value: object): value is V1AssemblyCarriagePostingListRequest; +export declare function V1AssemblyCarriagePostingListRequestFromJSON(json: any): V1AssemblyCarriagePostingListRequest; +export declare function V1AssemblyCarriagePostingListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListRequest; +export declare function V1AssemblyCarriagePostingListRequestToJSON(value?: V1AssemblyCarriagePostingListRequest | null): any; diff --git a/dist/esm/models/V1AssemblyCarriagePostingListRequest.js b/dist/esm/models/V1AssemblyCarriagePostingListRequest.js new file mode 100644 index 0000000..d13402d --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListRequest.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyCarriagePostingListRequestFilterFromJSON, V1AssemblyCarriagePostingListRequestFilterToJSON, } from './V1AssemblyCarriagePostingListRequestFilter'; +/** + * Check if a given object implements the V1AssemblyCarriagePostingListRequest interface. + */ +export function instanceOfV1AssemblyCarriagePostingListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1AssemblyCarriagePostingListRequestFromJSON(json) { + return V1AssemblyCarriagePostingListRequestFromJSONTyped(json, false); +} +export function V1AssemblyCarriagePostingListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': V1AssemblyCarriagePostingListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function V1AssemblyCarriagePostingListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': V1AssemblyCarriagePostingListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1AssemblyCarriagePostingListRequestFilter.d.ts b/dist/esm/models/V1AssemblyCarriagePostingListRequestFilter.d.ts new file mode 100644 index 0000000..9a7e176 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListRequestFilter.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AssemblyCarriagePostingListRequestFilter + */ +export interface V1AssemblyCarriagePostingListRequestFilter { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1AssemblyCarriagePostingListRequestFilter + */ + carriage_id: number; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyCarriagePostingListRequestFilter + */ + cutoff_from?: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyCarriagePostingListRequestFilter + */ + cutoff_to?: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {number} + * @memberof V1AssemblyCarriagePostingListRequestFilter + */ + delivery_method_id?: number; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListRequestFilter interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListRequestFilter(value: object): value is V1AssemblyCarriagePostingListRequestFilter; +export declare function V1AssemblyCarriagePostingListRequestFilterFromJSON(json: any): V1AssemblyCarriagePostingListRequestFilter; +export declare function V1AssemblyCarriagePostingListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListRequestFilter; +export declare function V1AssemblyCarriagePostingListRequestFilterToJSON(value?: V1AssemblyCarriagePostingListRequestFilter | null): any; diff --git a/dist/esm/models/V1AssemblyCarriagePostingListRequestFilter.js b/dist/esm/models/V1AssemblyCarriagePostingListRequestFilter.js new file mode 100644 index 0000000..f66287c --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListRequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AssemblyCarriagePostingListRequestFilter interface. + */ +export function instanceOfV1AssemblyCarriagePostingListRequestFilter(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function V1AssemblyCarriagePostingListRequestFilterFromJSON(json) { + return V1AssemblyCarriagePostingListRequestFilterFromJSONTyped(json, false); +} +export function V1AssemblyCarriagePostingListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'cutoff_from': json['cutoff_from'] == null ? undefined : json['cutoff_from'], + 'cutoff_to': json['cutoff_to'] == null ? undefined : json['cutoff_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + }; +} +export function V1AssemblyCarriagePostingListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/esm/models/V1AssemblyCarriagePostingListResponse.d.ts b/dist/esm/models/V1AssemblyCarriagePostingListResponse.d.ts new file mode 100644 index 0000000..c27bbc2 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriagePostingListResponsePosting } from './V1AssemblyCarriagePostingListResponsePosting'; +/** + * + * @export + * @interface V1AssemblyCarriagePostingListResponse + */ +export interface V1AssemblyCarriagePostingListResponse { + /** + * `true`, если можно распечатать этикетки массово. + * + * @type {boolean} + * @memberof V1AssemblyCarriagePostingListResponse + */ + can_print_mass_label?: boolean; + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponse + */ + cursor?: string; + /** + * Список отправлений. + * @type {Array} + * @memberof V1AssemblyCarriagePostingListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponse interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListResponse(value: object): value is V1AssemblyCarriagePostingListResponse; +export declare function V1AssemblyCarriagePostingListResponseFromJSON(json: any): V1AssemblyCarriagePostingListResponse; +export declare function V1AssemblyCarriagePostingListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListResponse; +export declare function V1AssemblyCarriagePostingListResponseToJSON(value?: V1AssemblyCarriagePostingListResponse | null): any; diff --git a/dist/esm/models/V1AssemblyCarriagePostingListResponse.js b/dist/esm/models/V1AssemblyCarriagePostingListResponse.js new file mode 100644 index 0000000..652bfcd --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyCarriagePostingListResponsePostingFromJSON, V1AssemblyCarriagePostingListResponsePostingToJSON, } from './V1AssemblyCarriagePostingListResponsePosting'; +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponse interface. + */ +export function instanceOfV1AssemblyCarriagePostingListResponse(value) { + return true; +} +export function V1AssemblyCarriagePostingListResponseFromJSON(json) { + return V1AssemblyCarriagePostingListResponseFromJSONTyped(json, false); +} +export function V1AssemblyCarriagePostingListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_print_mass_label': json['can_print_mass_label'] == null ? undefined : json['can_print_mass_label'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V1AssemblyCarriagePostingListResponsePostingFromJSON)), + }; +} +export function V1AssemblyCarriagePostingListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_print_mass_label': value['can_print_mass_label'], + 'cursor': value['cursor'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V1AssemblyCarriagePostingListResponsePostingToJSON)), + }; +} diff --git a/dist/esm/models/V1AssemblyCarriagePostingListResponsePosting.d.ts b/dist/esm/models/V1AssemblyCarriagePostingListResponsePosting.d.ts new file mode 100644 index 0000000..886b736 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListResponsePosting.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriagePostingListResponsePostingProduct } from './V1AssemblyCarriagePostingListResponsePostingProduct'; +/** + * + * @export + * @interface V1AssemblyCarriagePostingListResponsePosting + */ +export interface V1AssemblyCarriagePostingListResponsePosting { + /** + * Код листа подбора. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePosting + */ + assembly_code?: string; + /** + * `true`, если можно распечатать этикетку. + * + * @type {boolean} + * @memberof V1AssemblyCarriagePostingListResponsePosting + */ + can_print_label?: boolean; + /** + * Номер отправления. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePosting + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V1AssemblyCarriagePostingListResponsePosting + */ + products?: Array; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponsePosting interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListResponsePosting(value: object): value is V1AssemblyCarriagePostingListResponsePosting; +export declare function V1AssemblyCarriagePostingListResponsePostingFromJSON(json: any): V1AssemblyCarriagePostingListResponsePosting; +export declare function V1AssemblyCarriagePostingListResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListResponsePosting; +export declare function V1AssemblyCarriagePostingListResponsePostingToJSON(value?: V1AssemblyCarriagePostingListResponsePosting | null): any; diff --git a/dist/esm/models/V1AssemblyCarriagePostingListResponsePosting.js b/dist/esm/models/V1AssemblyCarriagePostingListResponsePosting.js new file mode 100644 index 0000000..afa346d --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListResponsePosting.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyCarriagePostingListResponsePostingProductFromJSON, V1AssemblyCarriagePostingListResponsePostingProductToJSON, } from './V1AssemblyCarriagePostingListResponsePostingProduct'; +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponsePosting interface. + */ +export function instanceOfV1AssemblyCarriagePostingListResponsePosting(value) { + return true; +} +export function V1AssemblyCarriagePostingListResponsePostingFromJSON(json) { + return V1AssemblyCarriagePostingListResponsePostingFromJSONTyped(json, false); +} +export function V1AssemblyCarriagePostingListResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'assembly_code': json['assembly_code'] == null ? undefined : json['assembly_code'], + 'can_print_label': json['can_print_label'] == null ? undefined : json['can_print_label'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1AssemblyCarriagePostingListResponsePostingProductFromJSON)), + }; +} +export function V1AssemblyCarriagePostingListResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'assembly_code': value['assembly_code'], + 'can_print_label': value['can_print_label'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1AssemblyCarriagePostingListResponsePostingProductToJSON)), + }; +} diff --git a/dist/esm/models/V1AssemblyCarriagePostingListResponsePostingProduct.d.ts b/dist/esm/models/V1AssemblyCarriagePostingListResponsePostingProduct.d.ts new file mode 100644 index 0000000..4d065a9 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListResponsePostingProduct.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AssemblyCarriagePostingListResponsePostingProduct + */ +export interface V1AssemblyCarriagePostingListResponsePostingProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + offer_id?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + picture_url?: string; + /** + * Название товара. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + product_name?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponsePostingProduct interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListResponsePostingProduct(value: object): value is V1AssemblyCarriagePostingListResponsePostingProduct; +export declare function V1AssemblyCarriagePostingListResponsePostingProductFromJSON(json: any): V1AssemblyCarriagePostingListResponsePostingProduct; +export declare function V1AssemblyCarriagePostingListResponsePostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListResponsePostingProduct; +export declare function V1AssemblyCarriagePostingListResponsePostingProductToJSON(value?: V1AssemblyCarriagePostingListResponsePostingProduct | null): any; diff --git a/dist/esm/models/V1AssemblyCarriagePostingListResponsePostingProduct.js b/dist/esm/models/V1AssemblyCarriagePostingListResponsePostingProduct.js new file mode 100644 index 0000000..0210f4a --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriagePostingListResponsePostingProduct.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponsePostingProduct interface. + */ +export function instanceOfV1AssemblyCarriagePostingListResponsePostingProduct(value) { + return true; +} +export function V1AssemblyCarriagePostingListResponsePostingProductFromJSON(json) { + return V1AssemblyCarriagePostingListResponsePostingProductFromJSONTyped(json, false); +} +export function V1AssemblyCarriagePostingListResponsePostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1AssemblyCarriagePostingListResponsePostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'picture_url': value['picture_url'], + 'product_name': value['product_name'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1AssemblyCarriageProductListRequest.d.ts b/dist/esm/models/V1AssemblyCarriageProductListRequest.d.ts new file mode 100644 index 0000000..0a8bbf7 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriageProductListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriageProductListRequestFilter } from './V1AssemblyCarriageProductListRequestFilter'; +/** + * + * @export + * @interface V1AssemblyCarriageProductListRequest + */ +export interface V1AssemblyCarriageProductListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1AssemblyCarriageProductListRequest + */ + cursor?: string; + /** + * + * @type {V1AssemblyCarriageProductListRequestFilter} + * @memberof V1AssemblyCarriageProductListRequest + */ + filter: V1AssemblyCarriageProductListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1AssemblyCarriageProductListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1AssemblyCarriageProductListRequest interface. + */ +export declare function instanceOfV1AssemblyCarriageProductListRequest(value: object): value is V1AssemblyCarriageProductListRequest; +export declare function V1AssemblyCarriageProductListRequestFromJSON(json: any): V1AssemblyCarriageProductListRequest; +export declare function V1AssemblyCarriageProductListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriageProductListRequest; +export declare function V1AssemblyCarriageProductListRequestToJSON(value?: V1AssemblyCarriageProductListRequest | null): any; diff --git a/dist/esm/models/V1AssemblyCarriageProductListRequest.js b/dist/esm/models/V1AssemblyCarriageProductListRequest.js new file mode 100644 index 0000000..cd7ce01 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriageProductListRequest.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyCarriageProductListRequestFilterFromJSON, V1AssemblyCarriageProductListRequestFilterToJSON, } from './V1AssemblyCarriageProductListRequestFilter'; +/** + * Check if a given object implements the V1AssemblyCarriageProductListRequest interface. + */ +export function instanceOfV1AssemblyCarriageProductListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1AssemblyCarriageProductListRequestFromJSON(json) { + return V1AssemblyCarriageProductListRequestFromJSONTyped(json, false); +} +export function V1AssemblyCarriageProductListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': V1AssemblyCarriageProductListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function V1AssemblyCarriageProductListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': V1AssemblyCarriageProductListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1AssemblyCarriageProductListRequestFilter.d.ts b/dist/esm/models/V1AssemblyCarriageProductListRequestFilter.d.ts new file mode 100644 index 0000000..a74d116 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriageProductListRequestFilter.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AssemblyCarriageProductListRequestFilter + */ +export interface V1AssemblyCarriageProductListRequestFilter { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1AssemblyCarriageProductListRequestFilter + */ + carriage_id: number; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyCarriageProductListRequestFilter + */ + cutoff_from?: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyCarriageProductListRequestFilter + */ + cutoff_to?: string; + /** + * Идентификатор метода доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {number} + * @memberof V1AssemblyCarriageProductListRequestFilter + */ + delivery_method_id?: number; +} +/** + * Check if a given object implements the V1AssemblyCarriageProductListRequestFilter interface. + */ +export declare function instanceOfV1AssemblyCarriageProductListRequestFilter(value: object): value is V1AssemblyCarriageProductListRequestFilter; +export declare function V1AssemblyCarriageProductListRequestFilterFromJSON(json: any): V1AssemblyCarriageProductListRequestFilter; +export declare function V1AssemblyCarriageProductListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriageProductListRequestFilter; +export declare function V1AssemblyCarriageProductListRequestFilterToJSON(value?: V1AssemblyCarriageProductListRequestFilter | null): any; diff --git a/dist/esm/models/V1AssemblyCarriageProductListRequestFilter.js b/dist/esm/models/V1AssemblyCarriageProductListRequestFilter.js new file mode 100644 index 0000000..5d45539 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriageProductListRequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AssemblyCarriageProductListRequestFilter interface. + */ +export function instanceOfV1AssemblyCarriageProductListRequestFilter(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function V1AssemblyCarriageProductListRequestFilterFromJSON(json) { + return V1AssemblyCarriageProductListRequestFilterFromJSONTyped(json, false); +} +export function V1AssemblyCarriageProductListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'cutoff_from': json['cutoff_from'] == null ? undefined : json['cutoff_from'], + 'cutoff_to': json['cutoff_to'] == null ? undefined : json['cutoff_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + }; +} +export function V1AssemblyCarriageProductListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/esm/models/V1AssemblyCarriageProductListResponse.d.ts b/dist/esm/models/V1AssemblyCarriageProductListResponse.d.ts new file mode 100644 index 0000000..6e73051 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriageProductListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriageProductListResponseProduct } from './V1AssemblyCarriageProductListResponseProduct'; +/** + * + * @export + * @interface V1AssemblyCarriageProductListResponse + */ +export interface V1AssemblyCarriageProductListResponse { + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof V1AssemblyCarriageProductListResponse + */ + cursor?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V1AssemblyCarriageProductListResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1AssemblyCarriageProductListResponse interface. + */ +export declare function instanceOfV1AssemblyCarriageProductListResponse(value: object): value is V1AssemblyCarriageProductListResponse; +export declare function V1AssemblyCarriageProductListResponseFromJSON(json: any): V1AssemblyCarriageProductListResponse; +export declare function V1AssemblyCarriageProductListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriageProductListResponse; +export declare function V1AssemblyCarriageProductListResponseToJSON(value?: V1AssemblyCarriageProductListResponse | null): any; diff --git a/dist/esm/models/V1AssemblyCarriageProductListResponse.js b/dist/esm/models/V1AssemblyCarriageProductListResponse.js new file mode 100644 index 0000000..787ddf8 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriageProductListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyCarriageProductListResponseProductFromJSON, V1AssemblyCarriageProductListResponseProductToJSON, } from './V1AssemblyCarriageProductListResponseProduct'; +/** + * Check if a given object implements the V1AssemblyCarriageProductListResponse interface. + */ +export function instanceOfV1AssemblyCarriageProductListResponse(value) { + return true; +} +export function V1AssemblyCarriageProductListResponseFromJSON(json) { + return V1AssemblyCarriageProductListResponseFromJSONTyped(json, false); +} +export function V1AssemblyCarriageProductListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1AssemblyCarriageProductListResponseProductFromJSON)), + }; +} +export function V1AssemblyCarriageProductListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1AssemblyCarriageProductListResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/V1AssemblyCarriageProductListResponseProduct.d.ts b/dist/esm/models/V1AssemblyCarriageProductListResponseProduct.d.ts new file mode 100644 index 0000000..3ec6d86 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriageProductListResponseProduct.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AssemblyCarriageProductListResponseProduct + */ +export interface V1AssemblyCarriageProductListResponseProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + offer_id?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + picture_url?: string; + /** + * Номера отправлений. + * @type {Array} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + posting_numbers?: Array; + /** + * Название товара. + * @type {string} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + product_name?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V1AssemblyCarriageProductListResponseProduct interface. + */ +export declare function instanceOfV1AssemblyCarriageProductListResponseProduct(value: object): value is V1AssemblyCarriageProductListResponseProduct; +export declare function V1AssemblyCarriageProductListResponseProductFromJSON(json: any): V1AssemblyCarriageProductListResponseProduct; +export declare function V1AssemblyCarriageProductListResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriageProductListResponseProduct; +export declare function V1AssemblyCarriageProductListResponseProductToJSON(value?: V1AssemblyCarriageProductListResponseProduct | null): any; diff --git a/dist/esm/models/V1AssemblyCarriageProductListResponseProduct.js b/dist/esm/models/V1AssemblyCarriageProductListResponseProduct.js new file mode 100644 index 0000000..213e910 --- /dev/null +++ b/dist/esm/models/V1AssemblyCarriageProductListResponseProduct.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AssemblyCarriageProductListResponseProduct interface. + */ +export function instanceOfV1AssemblyCarriageProductListResponseProduct(value) { + return true; +} +export function V1AssemblyCarriageProductListResponseProductFromJSON(json) { + return V1AssemblyCarriageProductListResponseProductFromJSONTyped(json, false); +} +export function V1AssemblyCarriageProductListResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1AssemblyCarriageProductListResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'picture_url': value['picture_url'], + 'posting_numbers': value['posting_numbers'], + 'product_name': value['product_name'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1AssemblyFbsPostingListRequest.d.ts b/dist/esm/models/V1AssemblyFbsPostingListRequest.d.ts new file mode 100644 index 0000000..0ef1a09 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyFbsPostingListRequestSortDirEnum } from './V1AssemblyFbsPostingListRequestSortDirEnum'; +import type { V1AssemblyFbsPostingListRequestFilter } from './V1AssemblyFbsPostingListRequestFilter'; +/** + * + * @export + * @interface V1AssemblyFbsPostingListRequest + */ +export interface V1AssemblyFbsPostingListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1AssemblyFbsPostingListRequest + */ + cursor?: string; + /** + * + * @type {V1AssemblyFbsPostingListRequestFilter} + * @memberof V1AssemblyFbsPostingListRequest + */ + filter: V1AssemblyFbsPostingListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1AssemblyFbsPostingListRequest + */ + limit: number; + /** + * + * @type {V1AssemblyFbsPostingListRequestSortDirEnum} + * @memberof V1AssemblyFbsPostingListRequest + */ + sort_dir: V1AssemblyFbsPostingListRequestSortDirEnum; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListRequest interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListRequest(value: object): value is V1AssemblyFbsPostingListRequest; +export declare function V1AssemblyFbsPostingListRequestFromJSON(json: any): V1AssemblyFbsPostingListRequest; +export declare function V1AssemblyFbsPostingListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListRequest; +export declare function V1AssemblyFbsPostingListRequestToJSON(value?: V1AssemblyFbsPostingListRequest | null): any; diff --git a/dist/esm/models/V1AssemblyFbsPostingListRequest.js b/dist/esm/models/V1AssemblyFbsPostingListRequest.js new file mode 100644 index 0000000..cfa4e09 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListRequest.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyFbsPostingListRequestSortDirEnumFromJSON, V1AssemblyFbsPostingListRequestSortDirEnumToJSON, } from './V1AssemblyFbsPostingListRequestSortDirEnum'; +import { V1AssemblyFbsPostingListRequestFilterFromJSON, V1AssemblyFbsPostingListRequestFilterToJSON, } from './V1AssemblyFbsPostingListRequestFilter'; +/** + * Check if a given object implements the V1AssemblyFbsPostingListRequest interface. + */ +export function instanceOfV1AssemblyFbsPostingListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('sort_dir' in value) || value['sort_dir'] === undefined) + return false; + return true; +} +export function V1AssemblyFbsPostingListRequestFromJSON(json) { + return V1AssemblyFbsPostingListRequestFromJSONTyped(json, false); +} +export function V1AssemblyFbsPostingListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': V1AssemblyFbsPostingListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'sort_dir': V1AssemblyFbsPostingListRequestSortDirEnumFromJSON(json['sort_dir']), + }; +} +export function V1AssemblyFbsPostingListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': V1AssemblyFbsPostingListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'sort_dir': V1AssemblyFbsPostingListRequestSortDirEnumToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/V1AssemblyFbsPostingListRequestFilter.d.ts b/dist/esm/models/V1AssemblyFbsPostingListRequestFilter.d.ts new file mode 100644 index 0000000..8a628ad --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AssemblyFbsPostingListRequestFilter + */ +export interface V1AssemblyFbsPostingListRequestFilter { + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyFbsPostingListRequestFilter + */ + cutoff_from: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyFbsPostingListRequestFilter + */ + cutoff_to: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {number} + * @memberof V1AssemblyFbsPostingListRequestFilter + */ + delivery_method_id?: number; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListRequestFilter interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListRequestFilter(value: object): value is V1AssemblyFbsPostingListRequestFilter; +export declare function V1AssemblyFbsPostingListRequestFilterFromJSON(json: any): V1AssemblyFbsPostingListRequestFilter; +export declare function V1AssemblyFbsPostingListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListRequestFilter; +export declare function V1AssemblyFbsPostingListRequestFilterToJSON(value?: V1AssemblyFbsPostingListRequestFilter | null): any; diff --git a/dist/esm/models/V1AssemblyFbsPostingListRequestFilter.js b/dist/esm/models/V1AssemblyFbsPostingListRequestFilter.js new file mode 100644 index 0000000..e9d4fa7 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListRequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AssemblyFbsPostingListRequestFilter interface. + */ +export function instanceOfV1AssemblyFbsPostingListRequestFilter(value) { + if (!('cutoff_from' in value) || value['cutoff_from'] === undefined) + return false; + if (!('cutoff_to' in value) || value['cutoff_to'] === undefined) + return false; + return true; +} +export function V1AssemblyFbsPostingListRequestFilterFromJSON(json) { + return V1AssemblyFbsPostingListRequestFilterFromJSONTyped(json, false); +} +export function V1AssemblyFbsPostingListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cutoff_from': json['cutoff_from'], + 'cutoff_to': json['cutoff_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + }; +} +export function V1AssemblyFbsPostingListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/esm/models/V1AssemblyFbsPostingListRequestSortDirEnum.d.ts b/dist/esm/models/V1AssemblyFbsPostingListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..f30e92a --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export declare const V1AssemblyFbsPostingListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type V1AssemblyFbsPostingListRequestSortDirEnum = typeof V1AssemblyFbsPostingListRequestSortDirEnum[keyof typeof V1AssemblyFbsPostingListRequestSortDirEnum]; +export declare function instanceOfV1AssemblyFbsPostingListRequestSortDirEnum(value: any): boolean; +export declare function V1AssemblyFbsPostingListRequestSortDirEnumFromJSON(json: any): V1AssemblyFbsPostingListRequestSortDirEnum; +export declare function V1AssemblyFbsPostingListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListRequestSortDirEnum; +export declare function V1AssemblyFbsPostingListRequestSortDirEnumToJSON(value?: V1AssemblyFbsPostingListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/V1AssemblyFbsPostingListRequestSortDirEnum.js b/dist/esm/models/V1AssemblyFbsPostingListRequestSortDirEnum.js new file mode 100644 index 0000000..6c19e3a --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export const V1AssemblyFbsPostingListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfV1AssemblyFbsPostingListRequestSortDirEnum(value) { + for (const key in V1AssemblyFbsPostingListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(V1AssemblyFbsPostingListRequestSortDirEnum, key)) { + if (V1AssemblyFbsPostingListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1AssemblyFbsPostingListRequestSortDirEnumFromJSON(json) { + return V1AssemblyFbsPostingListRequestSortDirEnumFromJSONTyped(json, false); +} +export function V1AssemblyFbsPostingListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1AssemblyFbsPostingListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1AssemblyFbsPostingListResponse.d.ts b/dist/esm/models/V1AssemblyFbsPostingListResponse.d.ts new file mode 100644 index 0000000..427e79d --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyFbsPostingListResponsePosting } from './V1AssemblyFbsPostingListResponsePosting'; +/** + * + * @export + * @interface V1AssemblyFbsPostingListResponse + */ +export interface V1AssemblyFbsPostingListResponse { + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponse + */ + cursor?: string; + /** + * Время, до которого продавцу нужно собрать заказ. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponse + */ + cutoff?: string; + /** + * Список отправлений. + * @type {Array} + * @memberof V1AssemblyFbsPostingListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponse interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListResponse(value: object): value is V1AssemblyFbsPostingListResponse; +export declare function V1AssemblyFbsPostingListResponseFromJSON(json: any): V1AssemblyFbsPostingListResponse; +export declare function V1AssemblyFbsPostingListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListResponse; +export declare function V1AssemblyFbsPostingListResponseToJSON(value?: V1AssemblyFbsPostingListResponse | null): any; diff --git a/dist/esm/models/V1AssemblyFbsPostingListResponse.js b/dist/esm/models/V1AssemblyFbsPostingListResponse.js new file mode 100644 index 0000000..3d7960e --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyFbsPostingListResponsePostingFromJSON, V1AssemblyFbsPostingListResponsePostingToJSON, } from './V1AssemblyFbsPostingListResponsePosting'; +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponse interface. + */ +export function instanceOfV1AssemblyFbsPostingListResponse(value) { + return true; +} +export function V1AssemblyFbsPostingListResponseFromJSON(json) { + return V1AssemblyFbsPostingListResponseFromJSONTyped(json, false); +} +export function V1AssemblyFbsPostingListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'cutoff': json['cutoff'] == null ? undefined : json['cutoff'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V1AssemblyFbsPostingListResponsePostingFromJSON)), + }; +} +export function V1AssemblyFbsPostingListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'cutoff': value['cutoff'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V1AssemblyFbsPostingListResponsePostingToJSON)), + }; +} diff --git a/dist/esm/models/V1AssemblyFbsPostingListResponsePosting.d.ts b/dist/esm/models/V1AssemblyFbsPostingListResponsePosting.d.ts new file mode 100644 index 0000000..ddbb2cf --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListResponsePosting.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyFbsPostingListResponsePostingProduct } from './V1AssemblyFbsPostingListResponsePostingProduct'; +/** + * + * @export + * @interface V1AssemblyFbsPostingListResponsePosting + */ +export interface V1AssemblyFbsPostingListResponsePosting { + /** + * Код листа подбора. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePosting + */ + assembly_code?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePosting + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V1AssemblyFbsPostingListResponsePosting + */ + products?: Array; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponsePosting interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListResponsePosting(value: object): value is V1AssemblyFbsPostingListResponsePosting; +export declare function V1AssemblyFbsPostingListResponsePostingFromJSON(json: any): V1AssemblyFbsPostingListResponsePosting; +export declare function V1AssemblyFbsPostingListResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListResponsePosting; +export declare function V1AssemblyFbsPostingListResponsePostingToJSON(value?: V1AssemblyFbsPostingListResponsePosting | null): any; diff --git a/dist/esm/models/V1AssemblyFbsPostingListResponsePosting.js b/dist/esm/models/V1AssemblyFbsPostingListResponsePosting.js new file mode 100644 index 0000000..3fc3e82 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListResponsePosting.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyFbsPostingListResponsePostingProductFromJSON, V1AssemblyFbsPostingListResponsePostingProductToJSON, } from './V1AssemblyFbsPostingListResponsePostingProduct'; +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponsePosting interface. + */ +export function instanceOfV1AssemblyFbsPostingListResponsePosting(value) { + return true; +} +export function V1AssemblyFbsPostingListResponsePostingFromJSON(json) { + return V1AssemblyFbsPostingListResponsePostingFromJSONTyped(json, false); +} +export function V1AssemblyFbsPostingListResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'assembly_code': json['assembly_code'] == null ? undefined : json['assembly_code'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1AssemblyFbsPostingListResponsePostingProductFromJSON)), + }; +} +export function V1AssemblyFbsPostingListResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'assembly_code': value['assembly_code'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1AssemblyFbsPostingListResponsePostingProductToJSON)), + }; +} diff --git a/dist/esm/models/V1AssemblyFbsPostingListResponsePostingProduct.d.ts b/dist/esm/models/V1AssemblyFbsPostingListResponsePostingProduct.d.ts new file mode 100644 index 0000000..9cd1d61 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListResponsePostingProduct.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AssemblyFbsPostingListResponsePostingProduct + */ +export interface V1AssemblyFbsPostingListResponsePostingProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + offer_id?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + picture_url?: string; + /** + * Название товара. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + product_name?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponsePostingProduct interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListResponsePostingProduct(value: object): value is V1AssemblyFbsPostingListResponsePostingProduct; +export declare function V1AssemblyFbsPostingListResponsePostingProductFromJSON(json: any): V1AssemblyFbsPostingListResponsePostingProduct; +export declare function V1AssemblyFbsPostingListResponsePostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListResponsePostingProduct; +export declare function V1AssemblyFbsPostingListResponsePostingProductToJSON(value?: V1AssemblyFbsPostingListResponsePostingProduct | null): any; diff --git a/dist/esm/models/V1AssemblyFbsPostingListResponsePostingProduct.js b/dist/esm/models/V1AssemblyFbsPostingListResponsePostingProduct.js new file mode 100644 index 0000000..de773dc --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsPostingListResponsePostingProduct.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponsePostingProduct interface. + */ +export function instanceOfV1AssemblyFbsPostingListResponsePostingProduct(value) { + return true; +} +export function V1AssemblyFbsPostingListResponsePostingProductFromJSON(json) { + return V1AssemblyFbsPostingListResponsePostingProductFromJSONTyped(json, false); +} +export function V1AssemblyFbsPostingListResponsePostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1AssemblyFbsPostingListResponsePostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'picture_url': value['picture_url'], + 'product_name': value['product_name'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1AssemblyFbsProductListRequest.d.ts b/dist/esm/models/V1AssemblyFbsProductListRequest.d.ts new file mode 100644 index 0000000..457e59f --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsProductListRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyFbsProductListRequestFilter } from './V1AssemblyFbsProductListRequestFilter'; +import type { V1AssemblyFbsProductListRequestSortDirEnum } from './V1AssemblyFbsProductListRequestSortDirEnum'; +/** + * + * @export + * @interface V1AssemblyFbsProductListRequest + */ +export interface V1AssemblyFbsProductListRequest { + /** + * + * @type {V1AssemblyFbsProductListRequestFilter} + * @memberof V1AssemblyFbsProductListRequest + */ + filter: V1AssemblyFbsProductListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1AssemblyFbsProductListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, ответ начнётся с 11 найденного элемента. + * @type {number} + * @memberof V1AssemblyFbsProductListRequest + */ + offset?: number; + /** + * + * @type {V1AssemblyFbsProductListRequestSortDirEnum} + * @memberof V1AssemblyFbsProductListRequest + */ + sort_dir?: V1AssemblyFbsProductListRequestSortDirEnum; +} +/** + * Check if a given object implements the V1AssemblyFbsProductListRequest interface. + */ +export declare function instanceOfV1AssemblyFbsProductListRequest(value: object): value is V1AssemblyFbsProductListRequest; +export declare function V1AssemblyFbsProductListRequestFromJSON(json: any): V1AssemblyFbsProductListRequest; +export declare function V1AssemblyFbsProductListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsProductListRequest; +export declare function V1AssemblyFbsProductListRequestToJSON(value?: V1AssemblyFbsProductListRequest | null): any; diff --git a/dist/esm/models/V1AssemblyFbsProductListRequest.js b/dist/esm/models/V1AssemblyFbsProductListRequest.js new file mode 100644 index 0000000..4383544 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsProductListRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1AssemblyFbsProductListRequestFilterFromJSON, V1AssemblyFbsProductListRequestFilterToJSON, } from './V1AssemblyFbsProductListRequestFilter'; +import { V1AssemblyFbsProductListRequestSortDirEnumFromJSON, V1AssemblyFbsProductListRequestSortDirEnumToJSON, } from './V1AssemblyFbsProductListRequestSortDirEnum'; +/** + * Check if a given object implements the V1AssemblyFbsProductListRequest interface. + */ +export function instanceOfV1AssemblyFbsProductListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1AssemblyFbsProductListRequestFromJSON(json) { + return V1AssemblyFbsProductListRequestFromJSONTyped(json, false); +} +export function V1AssemblyFbsProductListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': V1AssemblyFbsProductListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'sort_dir': json['sort_dir'] == null ? undefined : V1AssemblyFbsProductListRequestSortDirEnumFromJSON(json['sort_dir']), + }; +} +export function V1AssemblyFbsProductListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': V1AssemblyFbsProductListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'sort_dir': V1AssemblyFbsProductListRequestSortDirEnumToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/V1AssemblyFbsProductListRequestFilter.d.ts b/dist/esm/models/V1AssemblyFbsProductListRequestFilter.d.ts new file mode 100644 index 0000000..fe89ace --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsProductListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AssemblyFbsProductListRequestFilter + */ +export interface V1AssemblyFbsProductListRequestFilter { + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyFbsProductListRequestFilter + */ + cutoff_from: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyFbsProductListRequestFilter + */ + cutoff_to: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {number} + * @memberof V1AssemblyFbsProductListRequestFilter + */ + delivery_method_id?: number; +} +/** + * Check if a given object implements the V1AssemblyFbsProductListRequestFilter interface. + */ +export declare function instanceOfV1AssemblyFbsProductListRequestFilter(value: object): value is V1AssemblyFbsProductListRequestFilter; +export declare function V1AssemblyFbsProductListRequestFilterFromJSON(json: any): V1AssemblyFbsProductListRequestFilter; +export declare function V1AssemblyFbsProductListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsProductListRequestFilter; +export declare function V1AssemblyFbsProductListRequestFilterToJSON(value?: V1AssemblyFbsProductListRequestFilter | null): any; diff --git a/dist/esm/models/V1AssemblyFbsProductListRequestFilter.js b/dist/esm/models/V1AssemblyFbsProductListRequestFilter.js new file mode 100644 index 0000000..d616138 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsProductListRequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1AssemblyFbsProductListRequestFilter interface. + */ +export function instanceOfV1AssemblyFbsProductListRequestFilter(value) { + if (!('cutoff_from' in value) || value['cutoff_from'] === undefined) + return false; + if (!('cutoff_to' in value) || value['cutoff_to'] === undefined) + return false; + return true; +} +export function V1AssemblyFbsProductListRequestFilterFromJSON(json) { + return V1AssemblyFbsProductListRequestFilterFromJSONTyped(json, false); +} +export function V1AssemblyFbsProductListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cutoff_from': json['cutoff_from'], + 'cutoff_to': json['cutoff_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + }; +} +export function V1AssemblyFbsProductListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/esm/models/V1AssemblyFbsProductListRequestSortDirEnum.d.ts b/dist/esm/models/V1AssemblyFbsProductListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..11dfe50 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsProductListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export declare const V1AssemblyFbsProductListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type V1AssemblyFbsProductListRequestSortDirEnum = typeof V1AssemblyFbsProductListRequestSortDirEnum[keyof typeof V1AssemblyFbsProductListRequestSortDirEnum]; +export declare function instanceOfV1AssemblyFbsProductListRequestSortDirEnum(value: any): boolean; +export declare function V1AssemblyFbsProductListRequestSortDirEnumFromJSON(json: any): V1AssemblyFbsProductListRequestSortDirEnum; +export declare function V1AssemblyFbsProductListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsProductListRequestSortDirEnum; +export declare function V1AssemblyFbsProductListRequestSortDirEnumToJSON(value?: V1AssemblyFbsProductListRequestSortDirEnum | null): any; diff --git a/dist/esm/models/V1AssemblyFbsProductListRequestSortDirEnum.js b/dist/esm/models/V1AssemblyFbsProductListRequestSortDirEnum.js new file mode 100644 index 0000000..9320b8e --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsProductListRequestSortDirEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export const V1AssemblyFbsProductListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfV1AssemblyFbsProductListRequestSortDirEnum(value) { + for (const key in V1AssemblyFbsProductListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(V1AssemblyFbsProductListRequestSortDirEnum, key)) { + if (V1AssemblyFbsProductListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1AssemblyFbsProductListRequestSortDirEnumFromJSON(json) { + return V1AssemblyFbsProductListRequestSortDirEnumFromJSONTyped(json, false); +} +export function V1AssemblyFbsProductListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1AssemblyFbsProductListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1AssemblyFbsProductListResponse.d.ts b/dist/esm/models/V1AssemblyFbsProductListResponse.d.ts new file mode 100644 index 0000000..88158e2 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsProductListResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AssemblyFbsProductListResponseProducts } from './AssemblyFbsProductListResponseProducts'; +/** + * + * @export + * @interface V1AssemblyFbsProductListResponse + */ +export interface V1AssemblyFbsProductListResponse { + /** + * Признак, что в ответе вернули не все товары: + * + * - `true` — сделайте повторный запрос с другим значением `offset`, чтобы получить остальные значения; + * - `false` — ответ содержит все значения. + * + * @type {boolean} + * @memberof V1AssemblyFbsProductListResponse + */ + has_next?: boolean; + /** + * Список товаров. + * @type {Array} + * @memberof V1AssemblyFbsProductListResponse + */ + products?: Array; + /** + * Количество товаров. + * @type {number} + * @memberof V1AssemblyFbsProductListResponse + */ + products_count?: number; +} +/** + * Check if a given object implements the V1AssemblyFbsProductListResponse interface. + */ +export declare function instanceOfV1AssemblyFbsProductListResponse(value: object): value is V1AssemblyFbsProductListResponse; +export declare function V1AssemblyFbsProductListResponseFromJSON(json: any): V1AssemblyFbsProductListResponse; +export declare function V1AssemblyFbsProductListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsProductListResponse; +export declare function V1AssemblyFbsProductListResponseToJSON(value?: V1AssemblyFbsProductListResponse | null): any; diff --git a/dist/esm/models/V1AssemblyFbsProductListResponse.js b/dist/esm/models/V1AssemblyFbsProductListResponse.js new file mode 100644 index 0000000..01aad29 --- /dev/null +++ b/dist/esm/models/V1AssemblyFbsProductListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AssemblyFbsProductListResponseProductsFromJSON, AssemblyFbsProductListResponseProductsToJSON, } from './AssemblyFbsProductListResponseProducts'; +/** + * Check if a given object implements the V1AssemblyFbsProductListResponse interface. + */ +export function instanceOfV1AssemblyFbsProductListResponse(value) { + return true; +} +export function V1AssemblyFbsProductListResponseFromJSON(json) { + return V1AssemblyFbsProductListResponseFromJSONTyped(json, false); +} +export function V1AssemblyFbsProductListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(AssemblyFbsProductListResponseProductsFromJSON)), + 'products_count': json['products_count'] == null ? undefined : json['products_count'], + }; +} +export function V1AssemblyFbsProductListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(AssemblyFbsProductListResponseProductsToJSON)), + 'products_count': value['products_count'], + }; +} diff --git a/dist/esm/models/V1Barcode.d.ts b/dist/esm/models/V1Barcode.d.ts new file mode 100644 index 0000000..3df23cc --- /dev/null +++ b/dist/esm/models/V1Barcode.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1Barcode + */ +export interface V1Barcode { + /** + * Значение штрихкода. Не больше 100 символов. + * @type {string} + * @memberof V1Barcode + */ + barcode: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1Barcode + */ + sku: number; +} +/** + * Check if a given object implements the V1Barcode interface. + */ +export declare function instanceOfV1Barcode(value: object): value is V1Barcode; +export declare function V1BarcodeFromJSON(json: any): V1Barcode; +export declare function V1BarcodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Barcode; +export declare function V1BarcodeToJSON(value?: V1Barcode | null): any; diff --git a/dist/esm/models/V1Barcode.js b/dist/esm/models/V1Barcode.js new file mode 100644 index 0000000..6abaf1d --- /dev/null +++ b/dist/esm/models/V1Barcode.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1Barcode interface. + */ +export function instanceOfV1Barcode(value) { + if (!('barcode' in value) || value['barcode'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1BarcodeFromJSON(json) { + return V1BarcodeFromJSONTyped(json, false); +} +export function V1BarcodeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'], + 'sku': json['sku'], + }; +} +export function V1BarcodeToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1BundleItemErrorEnum.d.ts b/dist/esm/models/V1BundleItemErrorEnum.d.ts new file mode 100644 index 0000000..a3d3800 --- /dev/null +++ b/dist/esm/models/V1BundleItemErrorEnum.d.ts @@ -0,0 +1,36 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1BundleItemErrorEnum: { + readonly BUNDLE_ITEM_ERROR_UNSPECIFIED: "BUNDLE_ITEM_ERROR_UNSPECIFIED"; + readonly OUT_OF_ASSORTMENT: "OUT_OF_ASSORTMENT"; + readonly INVALID: "INVALID"; + readonly INCOMPATIBLE_WAREHOUSE: "INCOMPATIBLE_WAREHOUSE"; + readonly INVALID_BARCODE: "INVALID_BARCODE"; + readonly MULTIPLICITY: "MULTIPLICITY"; + readonly NO_PRICE: "NO_PRICE"; + readonly BANNED: "BANNED"; + readonly DUPLICATE_ITEMS: "DUPLICATE_ITEMS"; + readonly ZERO_QUANTITY: "ZERO_QUANTITY"; + readonly QUANTITY_GREATER_THEN_MAX: "QUANTITY_GREATER_THEN_MAX"; + readonly NO_SALES: "NO_SALES"; + readonly SURPLUS: "SURPLUS"; + readonly AVAILABILITY_IS_EMPTY: "AVAILABILITY_IS_EMPTY"; +}; +export type V1BundleItemErrorEnum = typeof V1BundleItemErrorEnum[keyof typeof V1BundleItemErrorEnum]; +export declare function instanceOfV1BundleItemErrorEnum(value: any): boolean; +export declare function V1BundleItemErrorEnumFromJSON(json: any): V1BundleItemErrorEnum; +export declare function V1BundleItemErrorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1BundleItemErrorEnum; +export declare function V1BundleItemErrorEnumToJSON(value?: V1BundleItemErrorEnum | null): any; diff --git a/dist/esm/models/V1BundleItemErrorEnum.js b/dist/esm/models/V1BundleItemErrorEnum.js new file mode 100644 index 0000000..b6c913f --- /dev/null +++ b/dist/esm/models/V1BundleItemErrorEnum.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1BundleItemErrorEnum = { + BUNDLE_ITEM_ERROR_UNSPECIFIED: 'BUNDLE_ITEM_ERROR_UNSPECIFIED', + OUT_OF_ASSORTMENT: 'OUT_OF_ASSORTMENT', + INVALID: 'INVALID', + INCOMPATIBLE_WAREHOUSE: 'INCOMPATIBLE_WAREHOUSE', + INVALID_BARCODE: 'INVALID_BARCODE', + MULTIPLICITY: 'MULTIPLICITY', + NO_PRICE: 'NO_PRICE', + BANNED: 'BANNED', + DUPLICATE_ITEMS: 'DUPLICATE_ITEMS', + ZERO_QUANTITY: 'ZERO_QUANTITY', + QUANTITY_GREATER_THEN_MAX: 'QUANTITY_GREATER_THEN_MAX', + NO_SALES: 'NO_SALES', + SURPLUS: 'SURPLUS', + AVAILABILITY_IS_EMPTY: 'AVAILABILITY_IS_EMPTY' +}; +export function instanceOfV1BundleItemErrorEnum(value) { + for (const key in V1BundleItemErrorEnum) { + if (Object.prototype.hasOwnProperty.call(V1BundleItemErrorEnum, key)) { + if (V1BundleItemErrorEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1BundleItemErrorEnumFromJSON(json) { + return V1BundleItemErrorEnumFromJSONTyped(json, false); +} +export function V1BundleItemErrorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1BundleItemErrorEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1BundleItemShipmentType.d.ts b/dist/esm/models/V1BundleItemShipmentType.d.ts new file mode 100644 index 0000000..ed22d43 --- /dev/null +++ b/dist/esm/models/V1BundleItemShipmentType.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `BUNDLE_ITEM_SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `BUNDLE_ITEM_SHIPMENT_TYPE_BOX` — коробка; + * - `BUNDLE_ITEM_SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export declare const V1BundleItemShipmentType: { + readonly GENERAL: "BUNDLE_ITEM_SHIPMENT_TYPE_GENERAL"; + readonly BOX: "BUNDLE_ITEM_SHIPMENT_TYPE_BOX"; + readonly PALLET: "BUNDLE_ITEM_SHIPMENT_TYPE_PALLET"; +}; +export type V1BundleItemShipmentType = typeof V1BundleItemShipmentType[keyof typeof V1BundleItemShipmentType]; +export declare function instanceOfV1BundleItemShipmentType(value: any): boolean; +export declare function V1BundleItemShipmentTypeFromJSON(json: any): V1BundleItemShipmentType; +export declare function V1BundleItemShipmentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1BundleItemShipmentType; +export declare function V1BundleItemShipmentTypeToJSON(value?: V1BundleItemShipmentType | null): any; diff --git a/dist/esm/models/V1BundleItemShipmentType.js b/dist/esm/models/V1BundleItemShipmentType.js new file mode 100644 index 0000000..1bdff74 --- /dev/null +++ b/dist/esm/models/V1BundleItemShipmentType.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `BUNDLE_ITEM_SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `BUNDLE_ITEM_SHIPMENT_TYPE_BOX` — коробка; + * - `BUNDLE_ITEM_SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export const V1BundleItemShipmentType = { + GENERAL: 'BUNDLE_ITEM_SHIPMENT_TYPE_GENERAL', + BOX: 'BUNDLE_ITEM_SHIPMENT_TYPE_BOX', + PALLET: 'BUNDLE_ITEM_SHIPMENT_TYPE_PALLET' +}; +export function instanceOfV1BundleItemShipmentType(value) { + for (const key in V1BundleItemShipmentType) { + if (Object.prototype.hasOwnProperty.call(V1BundleItemShipmentType, key)) { + if (V1BundleItemShipmentType[key] === value) { + return true; + } + } + } + return false; +} +export function V1BundleItemShipmentTypeFromJSON(json) { + return V1BundleItemShipmentTypeFromJSONTyped(json, false); +} +export function V1BundleItemShipmentTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1BundleItemShipmentTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CancelReasonListByOrderRequest.d.ts b/dist/esm/models/V1CancelReasonListByOrderRequest.d.ts new file mode 100644 index 0000000..cb78292 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByOrderRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByOrderRequest + */ +export interface V1CancelReasonListByOrderRequest { + /** + * Номер заказа. + * @type {string} + * @memberof V1CancelReasonListByOrderRequest + */ + order_number: string; +} +/** + * Check if a given object implements the V1CancelReasonListByOrderRequest interface. + */ +export declare function instanceOfV1CancelReasonListByOrderRequest(value: object): value is V1CancelReasonListByOrderRequest; +export declare function V1CancelReasonListByOrderRequestFromJSON(json: any): V1CancelReasonListByOrderRequest; +export declare function V1CancelReasonListByOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByOrderRequest; +export declare function V1CancelReasonListByOrderRequestToJSON(value?: V1CancelReasonListByOrderRequest | null): any; diff --git a/dist/esm/models/V1CancelReasonListByOrderRequest.js b/dist/esm/models/V1CancelReasonListByOrderRequest.js new file mode 100644 index 0000000..9a8cb5e --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByOrderRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CancelReasonListByOrderRequest interface. + */ +export function instanceOfV1CancelReasonListByOrderRequest(value) { + if (!('order_number' in value) || value['order_number'] === undefined) + return false; + return true; +} +export function V1CancelReasonListByOrderRequestFromJSON(json) { + return V1CancelReasonListByOrderRequestFromJSONTyped(json, false); +} +export function V1CancelReasonListByOrderRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'], + }; +} +export function V1CancelReasonListByOrderRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + }; +} diff --git a/dist/esm/models/V1CancelReasonListByOrderResponse.d.ts b/dist/esm/models/V1CancelReasonListByOrderResponse.d.ts new file mode 100644 index 0000000..9f9d669 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByOrderResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancelReasonListByOrderResponseReason } from './V1CancelReasonListByOrderResponseReason'; +/** + * + * @export + * @interface V1CancelReasonListByOrderResponse + */ +export interface V1CancelReasonListByOrderResponse { + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof V1CancelReasonListByOrderResponse + */ + reasons?: Array; +} +/** + * Check if a given object implements the V1CancelReasonListByOrderResponse interface. + */ +export declare function instanceOfV1CancelReasonListByOrderResponse(value: object): value is V1CancelReasonListByOrderResponse; +export declare function V1CancelReasonListByOrderResponseFromJSON(json: any): V1CancelReasonListByOrderResponse; +export declare function V1CancelReasonListByOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByOrderResponse; +export declare function V1CancelReasonListByOrderResponseToJSON(value?: V1CancelReasonListByOrderResponse | null): any; diff --git a/dist/esm/models/V1CancelReasonListByOrderResponse.js b/dist/esm/models/V1CancelReasonListByOrderResponse.js new file mode 100644 index 0000000..227e731 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByOrderResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CancelReasonListByOrderResponseReasonFromJSON, V1CancelReasonListByOrderResponseReasonToJSON, } from './V1CancelReasonListByOrderResponseReason'; +/** + * Check if a given object implements the V1CancelReasonListByOrderResponse interface. + */ +export function instanceOfV1CancelReasonListByOrderResponse(value) { + return true; +} +export function V1CancelReasonListByOrderResponseFromJSON(json) { + return V1CancelReasonListByOrderResponseFromJSONTyped(json, false); +} +export function V1CancelReasonListByOrderResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1CancelReasonListByOrderResponseReasonFromJSON)), + }; +} +export function V1CancelReasonListByOrderResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1CancelReasonListByOrderResponseReasonToJSON)), + }; +} diff --git a/dist/esm/models/V1CancelReasonListByOrderResponseReason.d.ts b/dist/esm/models/V1CancelReasonListByOrderResponseReason.d.ts new file mode 100644 index 0000000..0b4f19e --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByOrderResponseReason.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByOrderResponseReason + */ +export interface V1CancelReasonListByOrderResponseReason { + /** + * Идентификатор причины отмены: + * - `501` — «Ozon перенёс срок доставки»; + * - `502` — «Отменили часть товаров из заказа»; + * - `503` — «Не применилась скидка или промокод»; + * - `504` — «Хочу изменить заказ и оформить заново»; + * - `505` — «Слишком долго ждать»; + * - `506` — «Нашёл дешевле»; + * - `508` — «Не нашёл нужную причину»; + * - `710` — «Указал неверный адрес». + * + * @type {number} + * @memberof V1CancelReasonListByOrderResponseReason + */ + id?: number; + /** + * Причина отмены. + * @type {string} + * @memberof V1CancelReasonListByOrderResponseReason + */ + name?: string; +} +/** + * Check if a given object implements the V1CancelReasonListByOrderResponseReason interface. + */ +export declare function instanceOfV1CancelReasonListByOrderResponseReason(value: object): value is V1CancelReasonListByOrderResponseReason; +export declare function V1CancelReasonListByOrderResponseReasonFromJSON(json: any): V1CancelReasonListByOrderResponseReason; +export declare function V1CancelReasonListByOrderResponseReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByOrderResponseReason; +export declare function V1CancelReasonListByOrderResponseReasonToJSON(value?: V1CancelReasonListByOrderResponseReason | null): any; diff --git a/dist/esm/models/V1CancelReasonListByOrderResponseReason.js b/dist/esm/models/V1CancelReasonListByOrderResponseReason.js new file mode 100644 index 0000000..ce695a5 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByOrderResponseReason.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CancelReasonListByOrderResponseReason interface. + */ +export function instanceOfV1CancelReasonListByOrderResponseReason(value) { + return true; +} +export function V1CancelReasonListByOrderResponseReasonFromJSON(json) { + return V1CancelReasonListByOrderResponseReasonFromJSONTyped(json, false); +} +export function V1CancelReasonListByOrderResponseReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function V1CancelReasonListByOrderResponseReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/V1CancelReasonListByOrderResponseReasonFbo.d.ts b/dist/esm/models/V1CancelReasonListByOrderResponseReasonFbo.d.ts new file mode 100644 index 0000000..1848e17 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByOrderResponseReasonFbo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByOrderResponseReasonFbo + */ +export interface V1CancelReasonListByOrderResponseReasonFbo { + /** + * Идентификатор причины отмены. + * @type {number} + * @memberof V1CancelReasonListByOrderResponseReasonFbo + */ + id?: number; + /** + * Причина отмены. + * @type {string} + * @memberof V1CancelReasonListByOrderResponseReasonFbo + */ + name?: string; +} +/** + * Check if a given object implements the V1CancelReasonListByOrderResponseReasonFbo interface. + */ +export declare function instanceOfV1CancelReasonListByOrderResponseReasonFbo(value: object): value is V1CancelReasonListByOrderResponseReasonFbo; +export declare function V1CancelReasonListByOrderResponseReasonFboFromJSON(json: any): V1CancelReasonListByOrderResponseReasonFbo; +export declare function V1CancelReasonListByOrderResponseReasonFboFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByOrderResponseReasonFbo; +export declare function V1CancelReasonListByOrderResponseReasonFboToJSON(value?: V1CancelReasonListByOrderResponseReasonFbo | null): any; diff --git a/dist/esm/models/V1CancelReasonListByOrderResponseReasonFbo.js b/dist/esm/models/V1CancelReasonListByOrderResponseReasonFbo.js new file mode 100644 index 0000000..9c3b1a3 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByOrderResponseReasonFbo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CancelReasonListByOrderResponseReasonFbo interface. + */ +export function instanceOfV1CancelReasonListByOrderResponseReasonFbo(value) { + return true; +} +export function V1CancelReasonListByOrderResponseReasonFboFromJSON(json) { + return V1CancelReasonListByOrderResponseReasonFboFromJSONTyped(json, false); +} +export function V1CancelReasonListByOrderResponseReasonFboFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function V1CancelReasonListByOrderResponseReasonFboToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/V1CancelReasonListByPostingRequest.d.ts b/dist/esm/models/V1CancelReasonListByPostingRequest.d.ts new file mode 100644 index 0000000..0782930 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByPostingRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByPostingRequest + */ +export interface V1CancelReasonListByPostingRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1CancelReasonListByPostingRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1CancelReasonListByPostingRequest interface. + */ +export declare function instanceOfV1CancelReasonListByPostingRequest(value: object): value is V1CancelReasonListByPostingRequest; +export declare function V1CancelReasonListByPostingRequestFromJSON(json: any): V1CancelReasonListByPostingRequest; +export declare function V1CancelReasonListByPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByPostingRequest; +export declare function V1CancelReasonListByPostingRequestToJSON(value?: V1CancelReasonListByPostingRequest | null): any; diff --git a/dist/esm/models/V1CancelReasonListByPostingRequest.js b/dist/esm/models/V1CancelReasonListByPostingRequest.js new file mode 100644 index 0000000..787c5e7 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByPostingRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CancelReasonListByPostingRequest interface. + */ +export function instanceOfV1CancelReasonListByPostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1CancelReasonListByPostingRequestFromJSON(json) { + return V1CancelReasonListByPostingRequestFromJSONTyped(json, false); +} +export function V1CancelReasonListByPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1CancelReasonListByPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1CancelReasonListByPostingResponse.d.ts b/dist/esm/models/V1CancelReasonListByPostingResponse.d.ts new file mode 100644 index 0000000..3ea8a32 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByPostingResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancelReasonListByPostingResponseReason } from './V1CancelReasonListByPostingResponseReason'; +/** + * + * @export + * @interface V1CancelReasonListByPostingResponse + */ +export interface V1CancelReasonListByPostingResponse { + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof V1CancelReasonListByPostingResponse + */ + reasons?: Array; +} +/** + * Check if a given object implements the V1CancelReasonListByPostingResponse interface. + */ +export declare function instanceOfV1CancelReasonListByPostingResponse(value: object): value is V1CancelReasonListByPostingResponse; +export declare function V1CancelReasonListByPostingResponseFromJSON(json: any): V1CancelReasonListByPostingResponse; +export declare function V1CancelReasonListByPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByPostingResponse; +export declare function V1CancelReasonListByPostingResponseToJSON(value?: V1CancelReasonListByPostingResponse | null): any; diff --git a/dist/esm/models/V1CancelReasonListByPostingResponse.js b/dist/esm/models/V1CancelReasonListByPostingResponse.js new file mode 100644 index 0000000..880d835 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByPostingResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CancelReasonListByPostingResponseReasonFromJSON, V1CancelReasonListByPostingResponseReasonToJSON, } from './V1CancelReasonListByPostingResponseReason'; +/** + * Check if a given object implements the V1CancelReasonListByPostingResponse interface. + */ +export function instanceOfV1CancelReasonListByPostingResponse(value) { + return true; +} +export function V1CancelReasonListByPostingResponseFromJSON(json) { + return V1CancelReasonListByPostingResponseFromJSONTyped(json, false); +} +export function V1CancelReasonListByPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1CancelReasonListByPostingResponseReasonFromJSON)), + }; +} +export function V1CancelReasonListByPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1CancelReasonListByPostingResponseReasonToJSON)), + }; +} diff --git a/dist/esm/models/V1CancelReasonListByPostingResponseReason.d.ts b/dist/esm/models/V1CancelReasonListByPostingResponseReason.d.ts new file mode 100644 index 0000000..c648f35 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByPostingResponseReason.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByPostingResponseReason + */ +export interface V1CancelReasonListByPostingResponseReason { + /** + * Идентификатор причины отмены: + * - `501` — «Ozon перенёс срок доставки»; + * - `502` — «Отменили часть товаров из заказа»; + * - `503` — «Не применилась скидка или промокод»; + * - `504` — «Хочу изменить заказ и оформить заново»; + * - `505` — «Слишком долго ждать»; + * - `506` — «Нашёл дешевле»; + * - `508` — «Не нашёл нужную причину»; + * - `710` — «Указал неверный адрес». + * + * @type {number} + * @memberof V1CancelReasonListByPostingResponseReason + */ + id?: number; + /** + * Причина отмены. + * @type {string} + * @memberof V1CancelReasonListByPostingResponseReason + */ + name?: string; +} +/** + * Check if a given object implements the V1CancelReasonListByPostingResponseReason interface. + */ +export declare function instanceOfV1CancelReasonListByPostingResponseReason(value: object): value is V1CancelReasonListByPostingResponseReason; +export declare function V1CancelReasonListByPostingResponseReasonFromJSON(json: any): V1CancelReasonListByPostingResponseReason; +export declare function V1CancelReasonListByPostingResponseReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByPostingResponseReason; +export declare function V1CancelReasonListByPostingResponseReasonToJSON(value?: V1CancelReasonListByPostingResponseReason | null): any; diff --git a/dist/esm/models/V1CancelReasonListByPostingResponseReason.js b/dist/esm/models/V1CancelReasonListByPostingResponseReason.js new file mode 100644 index 0000000..6178066 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListByPostingResponseReason.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CancelReasonListByPostingResponseReason interface. + */ +export function instanceOfV1CancelReasonListByPostingResponseReason(value) { + return true; +} +export function V1CancelReasonListByPostingResponseReasonFromJSON(json) { + return V1CancelReasonListByPostingResponseReasonFromJSONTyped(json, false); +} +export function V1CancelReasonListByPostingResponseReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function V1CancelReasonListByPostingResponseReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/V1CancelReasonListResponse.d.ts b/dist/esm/models/V1CancelReasonListResponse.d.ts new file mode 100644 index 0000000..ca918ea --- /dev/null +++ b/dist/esm/models/V1CancelReasonListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancelReasonListByOrderResponseReason } from './V1CancelReasonListByOrderResponseReason'; +/** + * + * @export + * @interface V1CancelReasonListResponse + */ +export interface V1CancelReasonListResponse { + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof V1CancelReasonListResponse + */ + reasons?: Array; +} +/** + * Check if a given object implements the V1CancelReasonListResponse interface. + */ +export declare function instanceOfV1CancelReasonListResponse(value: object): value is V1CancelReasonListResponse; +export declare function V1CancelReasonListResponseFromJSON(json: any): V1CancelReasonListResponse; +export declare function V1CancelReasonListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListResponse; +export declare function V1CancelReasonListResponseToJSON(value?: V1CancelReasonListResponse | null): any; diff --git a/dist/esm/models/V1CancelReasonListResponse.js b/dist/esm/models/V1CancelReasonListResponse.js new file mode 100644 index 0000000..99e6172 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CancelReasonListByOrderResponseReasonFromJSON, V1CancelReasonListByOrderResponseReasonToJSON, } from './V1CancelReasonListByOrderResponseReason'; +/** + * Check if a given object implements the V1CancelReasonListResponse interface. + */ +export function instanceOfV1CancelReasonListResponse(value) { + return true; +} +export function V1CancelReasonListResponseFromJSON(json) { + return V1CancelReasonListResponseFromJSONTyped(json, false); +} +export function V1CancelReasonListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1CancelReasonListByOrderResponseReasonFromJSON)), + }; +} +export function V1CancelReasonListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1CancelReasonListByOrderResponseReasonToJSON)), + }; +} diff --git a/dist/esm/models/V1CancelReasonListResponseFbo.d.ts b/dist/esm/models/V1CancelReasonListResponseFbo.d.ts new file mode 100644 index 0000000..7638b33 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListResponseFbo.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancelReasonListByOrderResponseReasonFbo } from './V1CancelReasonListByOrderResponseReasonFbo'; +/** + * + * @export + * @interface V1CancelReasonListResponseFbo + */ +export interface V1CancelReasonListResponseFbo { + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof V1CancelReasonListResponseFbo + */ + reasons?: Array; +} +/** + * Check if a given object implements the V1CancelReasonListResponseFbo interface. + */ +export declare function instanceOfV1CancelReasonListResponseFbo(value: object): value is V1CancelReasonListResponseFbo; +export declare function V1CancelReasonListResponseFboFromJSON(json: any): V1CancelReasonListResponseFbo; +export declare function V1CancelReasonListResponseFboFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListResponseFbo; +export declare function V1CancelReasonListResponseFboToJSON(value?: V1CancelReasonListResponseFbo | null): any; diff --git a/dist/esm/models/V1CancelReasonListResponseFbo.js b/dist/esm/models/V1CancelReasonListResponseFbo.js new file mode 100644 index 0000000..6f1c8c8 --- /dev/null +++ b/dist/esm/models/V1CancelReasonListResponseFbo.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CancelReasonListByOrderResponseReasonFboFromJSON, V1CancelReasonListByOrderResponseReasonFboToJSON, } from './V1CancelReasonListByOrderResponseReasonFbo'; +/** + * Check if a given object implements the V1CancelReasonListResponseFbo interface. + */ +export function instanceOfV1CancelReasonListResponseFbo(value) { + return true; +} +export function V1CancelReasonListResponseFboFromJSON(json) { + return V1CancelReasonListResponseFboFromJSONTyped(json, false); +} +export function V1CancelReasonListResponseFboFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1CancelReasonListByOrderResponseReasonFboFromJSON)), + }; +} +export function V1CancelReasonListResponseFboToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1CancelReasonListByOrderResponseReasonFboToJSON)), + }; +} diff --git a/dist/esm/models/V1CancellationState.d.ts b/dist/esm/models/V1CancellationState.d.ts new file mode 100644 index 0000000..d1ad808 --- /dev/null +++ b/dist/esm/models/V1CancellationState.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CancellationStateCancellationError } from './CancellationStateCancellationError'; +import type { V1CancellationStateStatus } from './V1CancellationStateStatus'; +/** + * Статус отмены. + * @export + * @interface V1CancellationState + */ +export interface V1CancellationState { + /** + * + * @type {CancellationStateCancellationError} + * @memberof V1CancellationState + */ + cancellation_error?: CancellationStateCancellationError; + /** + * + * @type {V1CancellationStateStatus} + * @memberof V1CancellationState + */ + cancellation_status?: V1CancellationStateStatus; +} +/** + * Check if a given object implements the V1CancellationState interface. + */ +export declare function instanceOfV1CancellationState(value: object): value is V1CancellationState; +export declare function V1CancellationStateFromJSON(json: any): V1CancellationState; +export declare function V1CancellationStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancellationState; +export declare function V1CancellationStateToJSON(value?: V1CancellationState | null): any; diff --git a/dist/esm/models/V1CancellationState.js b/dist/esm/models/V1CancellationState.js new file mode 100644 index 0000000..4521b8f --- /dev/null +++ b/dist/esm/models/V1CancellationState.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CancellationStateCancellationErrorFromJSON, CancellationStateCancellationErrorToJSON, } from './CancellationStateCancellationError'; +import { V1CancellationStateStatusFromJSON, V1CancellationStateStatusToJSON, } from './V1CancellationStateStatus'; +/** + * Check if a given object implements the V1CancellationState interface. + */ +export function instanceOfV1CancellationState(value) { + return true; +} +export function V1CancellationStateFromJSON(json) { + return V1CancellationStateFromJSONTyped(json, false); +} +export function V1CancellationStateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_error': json['cancellation_error'] == null ? undefined : CancellationStateCancellationErrorFromJSON(json['cancellation_error']), + 'cancellation_status': json['cancellation_status'] == null ? undefined : V1CancellationStateStatusFromJSON(json['cancellation_status']), + }; +} +export function V1CancellationStateToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_error': CancellationStateCancellationErrorToJSON(value['cancellation_error']), + 'cancellation_status': V1CancellationStateStatusToJSON(value['cancellation_status']), + }; +} diff --git a/dist/esm/models/V1CancellationStateStatus.d.ts b/dist/esm/models/V1CancellationStateStatus.d.ts new file mode 100644 index 0000000..6e949fa --- /dev/null +++ b/dist/esm/models/V1CancellationStateStatus.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус ошибки: + * - `STATUS_UNSPECIFIED` — не определён; + * - `CONFIRMATION` — ожидается подтверждение отмены заявки; + * - `CANCELED` — подтверждение получено; + * - `NOT_CANCELED` — подтверждение не получено. + * + * @export + */ +export declare const V1CancellationStateStatus: { + readonly STATUS_UNSPECIFIED: "STATUS_UNSPECIFIED"; + readonly CONFIRMATION: "CONFIRMATION"; + readonly CANCELED: "CANCELED"; + readonly NOT_CANCELED: "NOT_CANCELED"; +}; +export type V1CancellationStateStatus = typeof V1CancellationStateStatus[keyof typeof V1CancellationStateStatus]; +export declare function instanceOfV1CancellationStateStatus(value: any): boolean; +export declare function V1CancellationStateStatusFromJSON(json: any): V1CancellationStateStatus; +export declare function V1CancellationStateStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancellationStateStatus; +export declare function V1CancellationStateStatusToJSON(value?: V1CancellationStateStatus | null): any; diff --git a/dist/esm/models/V1CancellationStateStatus.js b/dist/esm/models/V1CancellationStateStatus.js new file mode 100644 index 0000000..92fca4e --- /dev/null +++ b/dist/esm/models/V1CancellationStateStatus.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус ошибки: + * - `STATUS_UNSPECIFIED` — не определён; + * - `CONFIRMATION` — ожидается подтверждение отмены заявки; + * - `CANCELED` — подтверждение получено; + * - `NOT_CANCELED` — подтверждение не получено. + * + * @export + */ +export const V1CancellationStateStatus = { + STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED', + CONFIRMATION: 'CONFIRMATION', + CANCELED: 'CANCELED', + NOT_CANCELED: 'NOT_CANCELED' +}; +export function instanceOfV1CancellationStateStatus(value) { + for (const key in V1CancellationStateStatus) { + if (Object.prototype.hasOwnProperty.call(V1CancellationStateStatus, key)) { + if (V1CancellationStateStatus[key] === value) { + return true; + } + } + } + return false; +} +export function V1CancellationStateStatusFromJSON(json) { + return V1CancellationStateStatusFromJSONTyped(json, false); +} +export function V1CancellationStateStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CancellationStateStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CargoesCreateErrors.d.ts b/dist/esm/models/V1CargoesCreateErrors.d.ts new file mode 100644 index 0000000..d0aa4da --- /dev/null +++ b/dist/esm/models/V1CargoesCreateErrors.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesCreateErrorsErrorReason } from './CargoesCreateErrorsErrorReason'; +import type { CargoesCreateErrorsItemValidation } from './CargoesCreateErrorsItemValidation'; +/** + * Ошибки. + * @export + * @interface V1CargoesCreateErrors + */ +export interface V1CargoesCreateErrors { + /** + * Причина ошибки: + * - `INVALID_STATE` — недопустимое состояние поставки. + * - `VALIDATION_FAILED` — ошибки валидации. + * - `WAREHOUSE_LIMITS_EXCEED` — превышены лимиты склада. + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — поставка не относится к указанному контрагенту. + * - `SUPPLY_NOT_BELONG_COMPANY` — поставка не относится к указанной компании. + * - `IS_FINALIZED` — редактирование поставки недоступно. + * - `SKU_DISTRIBUTION_DISABLED` — распределение состава недоступно. + * - `SUPPLY_IS_NOT_EMPTY` — поставка содержит распределение состава. + * - `OPERATION_NOT_FOUND` — операция не найдена. + * - `OPERATION_FAILED` — ошибка при обработке операции. + * + * @type {Array} + * @memberof V1CargoesCreateErrors + */ + error_reasons?: Array; + /** + * Ошибки валидации. + * @type {Array} + * @memberof V1CargoesCreateErrors + */ + items_validation?: Array; +} +/** + * Check if a given object implements the V1CargoesCreateErrors interface. + */ +export declare function instanceOfV1CargoesCreateErrors(value: object): value is V1CargoesCreateErrors; +export declare function V1CargoesCreateErrorsFromJSON(json: any): V1CargoesCreateErrors; +export declare function V1CargoesCreateErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateErrors; +export declare function V1CargoesCreateErrorsToJSON(value?: V1CargoesCreateErrors | null): any; diff --git a/dist/esm/models/V1CargoesCreateErrors.js b/dist/esm/models/V1CargoesCreateErrors.js new file mode 100644 index 0000000..8fb3546 --- /dev/null +++ b/dist/esm/models/V1CargoesCreateErrors.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesCreateErrorsErrorReasonFromJSON, CargoesCreateErrorsErrorReasonToJSON, } from './CargoesCreateErrorsErrorReason'; +import { CargoesCreateErrorsItemValidationFromJSON, CargoesCreateErrorsItemValidationToJSON, } from './CargoesCreateErrorsItemValidation'; +/** + * Check if a given object implements the V1CargoesCreateErrors interface. + */ +export function instanceOfV1CargoesCreateErrors(value) { + return true; +} +export function V1CargoesCreateErrorsFromJSON(json) { + return V1CargoesCreateErrorsFromJSONTyped(json, false); +} +export function V1CargoesCreateErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesCreateErrorsErrorReasonFromJSON)), + 'items_validation': json['items_validation'] == null ? undefined : (json['items_validation'].map(CargoesCreateErrorsItemValidationFromJSON)), + }; +} +export function V1CargoesCreateErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesCreateErrorsErrorReasonToJSON)), + 'items_validation': value['items_validation'] == null ? undefined : (value['items_validation'].map(CargoesCreateErrorsItemValidationToJSON)), + }; +} diff --git a/dist/esm/models/V1CargoesCreateRequest.d.ts b/dist/esm/models/V1CargoesCreateRequest.d.ts new file mode 100644 index 0000000..724af4c --- /dev/null +++ b/dist/esm/models/V1CargoesCreateRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesCreateRequestCargo } from './V1CargoesCreateRequestCargo'; +/** + * + * @export + * @interface V1CargoesCreateRequest + */ +export interface V1CargoesCreateRequest { + /** + * Информация о грузоместах. Вы можете передать не больше 40 палет или 30 коробок. + * @type {Array} + * @memberof V1CargoesCreateRequest + */ + cargoes: Array; + /** + * `true`, если нужно удалить предыдущие грузоместа. + * + * @type {boolean} + * @memberof V1CargoesCreateRequest + */ + delete_current_version?: boolean; + /** + * Идентификатор поставки. Можно получить с помощью метода [/v3/supply-order/get](#operation/SupplyOrderGet). Нужное значение — в параметре ответа `orders.supplies.supply_id`. + * @type {number} + * @memberof V1CargoesCreateRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1CargoesCreateRequest interface. + */ +export declare function instanceOfV1CargoesCreateRequest(value: object): value is V1CargoesCreateRequest; +export declare function V1CargoesCreateRequestFromJSON(json: any): V1CargoesCreateRequest; +export declare function V1CargoesCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateRequest; +export declare function V1CargoesCreateRequestToJSON(value?: V1CargoesCreateRequest | null): any; diff --git a/dist/esm/models/V1CargoesCreateRequest.js b/dist/esm/models/V1CargoesCreateRequest.js new file mode 100644 index 0000000..bcb5678 --- /dev/null +++ b/dist/esm/models/V1CargoesCreateRequest.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesCreateRequestCargoFromJSON, V1CargoesCreateRequestCargoToJSON, } from './V1CargoesCreateRequestCargo'; +/** + * Check if a given object implements the V1CargoesCreateRequest interface. + */ +export function instanceOfV1CargoesCreateRequest(value) { + if (!('cargoes' in value) || value['cargoes'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1CargoesCreateRequestFromJSON(json) { + return V1CargoesCreateRequestFromJSONTyped(json, false); +} +export function V1CargoesCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes': (json['cargoes'].map(V1CargoesCreateRequestCargoFromJSON)), + 'delete_current_version': json['delete_current_version'] == null ? undefined : json['delete_current_version'], + 'supply_id': json['supply_id'], + }; +} +export function V1CargoesCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes': (value['cargoes'].map(V1CargoesCreateRequestCargoToJSON)), + 'delete_current_version': value['delete_current_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1CargoesCreateRequestCargo.d.ts b/dist/esm/models/V1CargoesCreateRequestCargo.d.ts new file mode 100644 index 0000000..12bab68 --- /dev/null +++ b/dist/esm/models/V1CargoesCreateRequestCargo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesCreateRequestCargoValue } from './V1CargoesCreateRequestCargoValue'; +/** + * + * @export + * @interface V1CargoesCreateRequestCargo + */ +export interface V1CargoesCreateRequestCargo { + /** + * Уникальный ключ для идентификации грузоместа. + * @type {string} + * @memberof V1CargoesCreateRequestCargo + */ + key: string; + /** + * + * @type {V1CargoesCreateRequestCargoValue} + * @memberof V1CargoesCreateRequestCargo + */ + value: V1CargoesCreateRequestCargoValue; +} +/** + * Check if a given object implements the V1CargoesCreateRequestCargo interface. + */ +export declare function instanceOfV1CargoesCreateRequestCargo(value: object): value is V1CargoesCreateRequestCargo; +export declare function V1CargoesCreateRequestCargoFromJSON(json: any): V1CargoesCreateRequestCargo; +export declare function V1CargoesCreateRequestCargoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateRequestCargo; +export declare function V1CargoesCreateRequestCargoToJSON(value?: V1CargoesCreateRequestCargo | null): any; diff --git a/dist/esm/models/V1CargoesCreateRequestCargo.js b/dist/esm/models/V1CargoesCreateRequestCargo.js new file mode 100644 index 0000000..dd368b6 --- /dev/null +++ b/dist/esm/models/V1CargoesCreateRequestCargo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesCreateRequestCargoValueFromJSON, V1CargoesCreateRequestCargoValueToJSON, } from './V1CargoesCreateRequestCargoValue'; +/** + * Check if a given object implements the V1CargoesCreateRequestCargo interface. + */ +export function instanceOfV1CargoesCreateRequestCargo(value) { + if (!('key' in value) || value['key'] === undefined) + return false; + if (!('value' in value) || value['value'] === undefined) + return false; + return true; +} +export function V1CargoesCreateRequestCargoFromJSON(json) { + return V1CargoesCreateRequestCargoFromJSONTyped(json, false); +} +export function V1CargoesCreateRequestCargoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'], + 'value': V1CargoesCreateRequestCargoValueFromJSON(json['value']), + }; +} +export function V1CargoesCreateRequestCargoToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': V1CargoesCreateRequestCargoValueToJSON(value['value']), + }; +} diff --git a/dist/esm/models/V1CargoesCreateRequestCargoValue.d.ts b/dist/esm/models/V1CargoesCreateRequestCargoValue.d.ts new file mode 100644 index 0000000..6314999 --- /dev/null +++ b/dist/esm/models/V1CargoesCreateRequestCargoValue.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValueCargoType } from './ValueCargoType'; +import type { ValueItem } from './ValueItem'; +/** + * Информация о грузоместе. + * @export + * @interface V1CargoesCreateRequestCargoValue + */ +export interface V1CargoesCreateRequestCargoValue { + /** + * Информация о товарах в грузоместе. + * @type {Array} + * @memberof V1CargoesCreateRequestCargoValue + */ + items?: Array; + /** + * + * @type {ValueCargoType} + * @memberof V1CargoesCreateRequestCargoValue + */ + type: ValueCargoType; +} +/** + * Check if a given object implements the V1CargoesCreateRequestCargoValue interface. + */ +export declare function instanceOfV1CargoesCreateRequestCargoValue(value: object): value is V1CargoesCreateRequestCargoValue; +export declare function V1CargoesCreateRequestCargoValueFromJSON(json: any): V1CargoesCreateRequestCargoValue; +export declare function V1CargoesCreateRequestCargoValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateRequestCargoValue; +export declare function V1CargoesCreateRequestCargoValueToJSON(value?: V1CargoesCreateRequestCargoValue | null): any; diff --git a/dist/esm/models/V1CargoesCreateRequestCargoValue.js b/dist/esm/models/V1CargoesCreateRequestCargoValue.js new file mode 100644 index 0000000..0c57726 --- /dev/null +++ b/dist/esm/models/V1CargoesCreateRequestCargoValue.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ValueCargoTypeFromJSON, ValueCargoTypeToJSON, } from './ValueCargoType'; +import { ValueItemFromJSON, ValueItemToJSON, } from './ValueItem'; +/** + * Check if a given object implements the V1CargoesCreateRequestCargoValue interface. + */ +export function instanceOfV1CargoesCreateRequestCargoValue(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function V1CargoesCreateRequestCargoValueFromJSON(json) { + return V1CargoesCreateRequestCargoValueFromJSONTyped(json, false); +} +export function V1CargoesCreateRequestCargoValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ValueItemFromJSON)), + 'type': ValueCargoTypeFromJSON(json['type']), + }; +} +export function V1CargoesCreateRequestCargoValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ValueItemToJSON)), + 'type': ValueCargoTypeToJSON(value['type']), + }; +} diff --git a/dist/esm/models/V1CargoesCreateResponse.d.ts b/dist/esm/models/V1CargoesCreateResponse.d.ts new file mode 100644 index 0000000..02235d7 --- /dev/null +++ b/dist/esm/models/V1CargoesCreateResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesCreateErrors } from './V1CargoesCreateErrors'; +/** + * + * @export + * @interface V1CargoesCreateResponse + */ +export interface V1CargoesCreateResponse { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesCreateResponse + */ + operation_id?: string; + /** + * + * @type {V1CargoesCreateErrors} + * @memberof V1CargoesCreateResponse + */ + errors?: V1CargoesCreateErrors; +} +/** + * Check if a given object implements the V1CargoesCreateResponse interface. + */ +export declare function instanceOfV1CargoesCreateResponse(value: object): value is V1CargoesCreateResponse; +export declare function V1CargoesCreateResponseFromJSON(json: any): V1CargoesCreateResponse; +export declare function V1CargoesCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateResponse; +export declare function V1CargoesCreateResponseToJSON(value?: V1CargoesCreateResponse | null): any; diff --git a/dist/esm/models/V1CargoesCreateResponse.js b/dist/esm/models/V1CargoesCreateResponse.js new file mode 100644 index 0000000..126515d --- /dev/null +++ b/dist/esm/models/V1CargoesCreateResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesCreateErrorsFromJSON, V1CargoesCreateErrorsToJSON, } from './V1CargoesCreateErrors'; +/** + * Check if a given object implements the V1CargoesCreateResponse interface. + */ +export function instanceOfV1CargoesCreateResponse(value) { + return true; +} +export function V1CargoesCreateResponseFromJSON(json) { + return V1CargoesCreateResponseFromJSONTyped(json, false); +} +export function V1CargoesCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + 'errors': json['errors'] == null ? undefined : V1CargoesCreateErrorsFromJSON(json['errors']), + }; +} +export function V1CargoesCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + 'errors': V1CargoesCreateErrorsToJSON(value['errors']), + }; +} diff --git a/dist/esm/models/V1CargoesDeleteRequest.d.ts b/dist/esm/models/V1CargoesDeleteRequest.d.ts new file mode 100644 index 0000000..8025e6f --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesDeleteRequest + */ +export interface V1CargoesDeleteRequest { + /** + * Список идентификаторов грузомест, которые нужно удалить. + * + * Максимум 70 значений. + * + * @type {Array} + * @memberof V1CargoesDeleteRequest + */ + cargo_ids: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof V1CargoesDeleteRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1CargoesDeleteRequest interface. + */ +export declare function instanceOfV1CargoesDeleteRequest(value: object): value is V1CargoesDeleteRequest; +export declare function V1CargoesDeleteRequestFromJSON(json: any): V1CargoesDeleteRequest; +export declare function V1CargoesDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteRequest; +export declare function V1CargoesDeleteRequestToJSON(value?: V1CargoesDeleteRequest | null): any; diff --git a/dist/esm/models/V1CargoesDeleteRequest.js b/dist/esm/models/V1CargoesDeleteRequest.js new file mode 100644 index 0000000..51be910 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CargoesDeleteRequest interface. + */ +export function instanceOfV1CargoesDeleteRequest(value) { + if (!('cargo_ids' in value) || value['cargo_ids'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1CargoesDeleteRequestFromJSON(json) { + return V1CargoesDeleteRequestFromJSONTyped(json, false); +} +export function V1CargoesDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_ids': json['cargo_ids'], + 'supply_id': json['supply_id'], + }; +} +export function V1CargoesDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_ids': value['cargo_ids'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1CargoesDeleteResponse.d.ts b/dist/esm/models/V1CargoesDeleteResponse.d.ts new file mode 100644 index 0000000..a9cccc7 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteResponseError } from './V1CargoesDeleteResponseError'; +/** + * + * @export + * @interface V1CargoesDeleteResponse + */ +export interface V1CargoesDeleteResponse { + /** + * + * @type {V1CargoesDeleteResponseError} + * @memberof V1CargoesDeleteResponse + */ + errors?: V1CargoesDeleteResponseError; + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesDeleteResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1CargoesDeleteResponse interface. + */ +export declare function instanceOfV1CargoesDeleteResponse(value: object): value is V1CargoesDeleteResponse; +export declare function V1CargoesDeleteResponseFromJSON(json: any): V1CargoesDeleteResponse; +export declare function V1CargoesDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponse; +export declare function V1CargoesDeleteResponseToJSON(value?: V1CargoesDeleteResponse | null): any; diff --git a/dist/esm/models/V1CargoesDeleteResponse.js b/dist/esm/models/V1CargoesDeleteResponse.js new file mode 100644 index 0000000..ac0ee19 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesDeleteResponseErrorFromJSON, V1CargoesDeleteResponseErrorToJSON, } from './V1CargoesDeleteResponseError'; +/** + * Check if a given object implements the V1CargoesDeleteResponse interface. + */ +export function instanceOfV1CargoesDeleteResponse(value) { + return true; +} +export function V1CargoesDeleteResponseFromJSON(json) { + return V1CargoesDeleteResponseFromJSONTyped(json, false); +} +export function V1CargoesDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : V1CargoesDeleteResponseErrorFromJSON(json['errors']), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1CargoesDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': V1CargoesDeleteResponseErrorToJSON(value['errors']), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1CargoesDeleteResponseError.d.ts b/dist/esm/models/V1CargoesDeleteResponseError.d.ts new file mode 100644 index 0000000..34f3106 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponseError.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteResponseErrorSupplyErrorReasonEnum } from './V1CargoesDeleteResponseErrorSupplyErrorReasonEnum'; +import type { V1CargoesDeleteResponseErrorCargoErrorReason } from './V1CargoesDeleteResponseErrorCargoErrorReason'; +/** + * Список ошибок, которые возникли при удалении грузомест. + * @export + * @interface V1CargoesDeleteResponseError + */ +export interface V1CargoesDeleteResponseError { + /** + * Ошибки при удалении грузомест. + * @type {Array} + * @memberof V1CargoesDeleteResponseError + */ + cargo_error_reasons?: Array; + /** + * Список ошибок поставки: + * - `SUPPLY_NOT_FOUND` — поставка не найдена, + * - `CANT_DELETE_ALL_CARGOES` — нельзя удалять все грузоместа, + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — не принадлежит вашему юридическому лицу, + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — не принадлежит вашему кабинету, + * - `SUPPLY_CARGOES_IS_FINALIZED` — грузоместа поставки нельзя редактировать, + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки, + * - `OPERATION_NOT_FOUND` — операция не найдена. + * + * @type {Array} + * @memberof V1CargoesDeleteResponseError + */ + supply_error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesDeleteResponseError interface. + */ +export declare function instanceOfV1CargoesDeleteResponseError(value: object): value is V1CargoesDeleteResponseError; +export declare function V1CargoesDeleteResponseErrorFromJSON(json: any): V1CargoesDeleteResponseError; +export declare function V1CargoesDeleteResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponseError; +export declare function V1CargoesDeleteResponseErrorToJSON(value?: V1CargoesDeleteResponseError | null): any; diff --git a/dist/esm/models/V1CargoesDeleteResponseError.js b/dist/esm/models/V1CargoesDeleteResponseError.js new file mode 100644 index 0000000..65c7b08 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponseError.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON, V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON, } from './V1CargoesDeleteResponseErrorSupplyErrorReasonEnum'; +import { V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON, V1CargoesDeleteResponseErrorCargoErrorReasonToJSON, } from './V1CargoesDeleteResponseErrorCargoErrorReason'; +/** + * Check if a given object implements the V1CargoesDeleteResponseError interface. + */ +export function instanceOfV1CargoesDeleteResponseError(value) { + return true; +} +export function V1CargoesDeleteResponseErrorFromJSON(json) { + return V1CargoesDeleteResponseErrorFromJSONTyped(json, false); +} +export function V1CargoesDeleteResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_error_reasons': json['cargo_error_reasons'] == null ? undefined : (json['cargo_error_reasons'].map(V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON)), + 'supply_error_reasons': json['supply_error_reasons'] == null ? undefined : (json['supply_error_reasons'].map(V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON)), + }; +} +export function V1CargoesDeleteResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_error_reasons': value['cargo_error_reasons'] == null ? undefined : (value['cargo_error_reasons'].map(V1CargoesDeleteResponseErrorCargoErrorReasonToJSON)), + 'supply_error_reasons': value['supply_error_reasons'] == null ? undefined : (value['supply_error_reasons'].map(V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReason.d.ts b/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReason.d.ts new file mode 100644 index 0000000..e2d0048 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReason.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum } from './V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum'; +/** + * + * @export + * @interface V1CargoesDeleteResponseErrorCargoErrorReason + */ +export interface V1CargoesDeleteResponseErrorCargoErrorReason { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof V1CargoesDeleteResponseErrorCargoErrorReason + */ + cargo_id?: number; + /** + * Список ошибок грузоместа. + * + * Если значение `CARGO_NOT_FOUND`, грузоместо не найдено. + * + * @type {Array} + * @memberof V1CargoesDeleteResponseErrorCargoErrorReason + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesDeleteResponseErrorCargoErrorReason interface. + */ +export declare function instanceOfV1CargoesDeleteResponseErrorCargoErrorReason(value: object): value is V1CargoesDeleteResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON(json: any): V1CargoesDeleteResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonToJSON(value?: V1CargoesDeleteResponseErrorCargoErrorReason | null): any; diff --git a/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReason.js b/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReason.js new file mode 100644 index 0000000..4204d70 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReason.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON, V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON, } from './V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum'; +/** + * Check if a given object implements the V1CargoesDeleteResponseErrorCargoErrorReason interface. + */ +export function instanceOfV1CargoesDeleteResponseErrorCargoErrorReason(value) { + return true; +} +export function V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON(json) { + return V1CargoesDeleteResponseErrorCargoErrorReasonFromJSONTyped(json, false); +} +export function V1CargoesDeleteResponseErrorCargoErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON)), + }; +} +export function V1CargoesDeleteResponseErrorCargoErrorReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.d.ts b/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.d.ts new file mode 100644 index 0000000..efb22bf --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.d.ts @@ -0,0 +1,23 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum: { + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum = typeof V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum[keyof typeof V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum]; +export declare function instanceOfV1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum(value: any): boolean; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON(json: any): V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON(value?: V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum | null): any; diff --git a/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.js b/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.js new file mode 100644 index 0000000..f47d9d4 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum = { + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +export function instanceOfV1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum(value) { + for (const key in V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum, key)) { + if (V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON(json) { + return V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json, false); +} +export function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.d.ts b/dist/esm/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.d.ts new file mode 100644 index 0000000..5542971 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesDeleteResponseErrorSupplyErrorReasonEnum: { + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly CANT_DELETE_ALL_CARGOES: "CANT_DELETE_ALL_CARGOES"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; +}; +export type V1CargoesDeleteResponseErrorSupplyErrorReasonEnum = typeof V1CargoesDeleteResponseErrorSupplyErrorReasonEnum[keyof typeof V1CargoesDeleteResponseErrorSupplyErrorReasonEnum]; +export declare function instanceOfV1CargoesDeleteResponseErrorSupplyErrorReasonEnum(value: any): boolean; +export declare function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON(json: any): V1CargoesDeleteResponseErrorSupplyErrorReasonEnum; +export declare function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponseErrorSupplyErrorReasonEnum; +export declare function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON(value?: V1CargoesDeleteResponseErrorSupplyErrorReasonEnum | null): any; diff --git a/dist/esm/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.js b/dist/esm/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.js new file mode 100644 index 0000000..ce9fb10 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1CargoesDeleteResponseErrorSupplyErrorReasonEnum = { + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + CANT_DELETE_ALL_CARGOES: 'CANT_DELETE_ALL_CARGOES', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND' +}; +export function instanceOfV1CargoesDeleteResponseErrorSupplyErrorReasonEnum(value) { + for (const key in V1CargoesDeleteResponseErrorSupplyErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(V1CargoesDeleteResponseErrorSupplyErrorReasonEnum, key)) { + if (V1CargoesDeleteResponseErrorSupplyErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON(json) { + return V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSONTyped(json, false); +} +export function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CargoesDeleteStatusRequest.d.ts b/dist/esm/models/V1CargoesDeleteStatusRequest.d.ts new file mode 100644 index 0000000..88915ae --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesDeleteStatusRequest + */ +export interface V1CargoesDeleteStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesDeleteStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1CargoesDeleteStatusRequest interface. + */ +export declare function instanceOfV1CargoesDeleteStatusRequest(value: object): value is V1CargoesDeleteStatusRequest; +export declare function V1CargoesDeleteStatusRequestFromJSON(json: any): V1CargoesDeleteStatusRequest; +export declare function V1CargoesDeleteStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusRequest; +export declare function V1CargoesDeleteStatusRequestToJSON(value?: V1CargoesDeleteStatusRequest | null): any; diff --git a/dist/esm/models/V1CargoesDeleteStatusRequest.js b/dist/esm/models/V1CargoesDeleteStatusRequest.js new file mode 100644 index 0000000..2920181 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CargoesDeleteStatusRequest interface. + */ +export function instanceOfV1CargoesDeleteStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function V1CargoesDeleteStatusRequestFromJSON(json) { + return V1CargoesDeleteStatusRequestFromJSONTyped(json, false); +} +export function V1CargoesDeleteStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function V1CargoesDeleteStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1CargoesDeleteStatusResponse.d.ts b/dist/esm/models/V1CargoesDeleteStatusResponse.d.ts new file mode 100644 index 0000000..ec2adca --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesDeleteStatusResponseStatusEnum } from './CargoesDeleteStatusResponseStatusEnum'; +import type { V1CargoesDeleteStatusResponseError } from './V1CargoesDeleteStatusResponseError'; +/** + * + * @export + * @interface V1CargoesDeleteStatusResponse + */ +export interface V1CargoesDeleteStatusResponse { + /** + * + * @type {V1CargoesDeleteStatusResponseError} + * @memberof V1CargoesDeleteStatusResponse + */ + errors?: V1CargoesDeleteStatusResponseError; + /** + * + * @type {CargoesDeleteStatusResponseStatusEnum} + * @memberof V1CargoesDeleteStatusResponse + */ + status?: CargoesDeleteStatusResponseStatusEnum; +} +/** + * Check if a given object implements the V1CargoesDeleteStatusResponse interface. + */ +export declare function instanceOfV1CargoesDeleteStatusResponse(value: object): value is V1CargoesDeleteStatusResponse; +export declare function V1CargoesDeleteStatusResponseFromJSON(json: any): V1CargoesDeleteStatusResponse; +export declare function V1CargoesDeleteStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponse; +export declare function V1CargoesDeleteStatusResponseToJSON(value?: V1CargoesDeleteStatusResponse | null): any; diff --git a/dist/esm/models/V1CargoesDeleteStatusResponse.js b/dist/esm/models/V1CargoesDeleteStatusResponse.js new file mode 100644 index 0000000..1f052c0 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesDeleteStatusResponseStatusEnumFromJSON, CargoesDeleteStatusResponseStatusEnumToJSON, } from './CargoesDeleteStatusResponseStatusEnum'; +import { V1CargoesDeleteStatusResponseErrorFromJSON, V1CargoesDeleteStatusResponseErrorToJSON, } from './V1CargoesDeleteStatusResponseError'; +/** + * Check if a given object implements the V1CargoesDeleteStatusResponse interface. + */ +export function instanceOfV1CargoesDeleteStatusResponse(value) { + return true; +} +export function V1CargoesDeleteStatusResponseFromJSON(json) { + return V1CargoesDeleteStatusResponseFromJSONTyped(json, false); +} +export function V1CargoesDeleteStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : V1CargoesDeleteStatusResponseErrorFromJSON(json['errors']), + 'status': json['status'] == null ? undefined : CargoesDeleteStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function V1CargoesDeleteStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': V1CargoesDeleteStatusResponseErrorToJSON(value['errors']), + 'status': CargoesDeleteStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V1CargoesDeleteStatusResponseError.d.ts b/dist/esm/models/V1CargoesDeleteStatusResponseError.d.ts new file mode 100644 index 0000000..a386ba7 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponseError.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteStatusResponseErrorCargoErrorReason } from './V1CargoesDeleteStatusResponseErrorCargoErrorReason'; +import type { V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum } from './V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum'; +/** + * Список ошибок, которые возникли при удалении грузомест. + * @export + * @interface V1CargoesDeleteStatusResponseError + */ +export interface V1CargoesDeleteStatusResponseError { + /** + * Ошибки при удалении грузомест. + * @type {Array} + * @memberof V1CargoesDeleteStatusResponseError + */ + cargo_error_reasons?: Array; + /** + * Список ошибок поставки: + * - `SUPPLY_NOT_FOUND` — поставка не найдена, + * - `CANT_DELETE_ALL_CARGOES` — нельзя удалять все грузоместа, + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — не принадлежит вашему юридическому лицу, + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — не принадлежит вашему кабинету, + * - `SUPPLY_CARGOES_IS_FINALIZED` — грузоместа поставки нельзя редактировать, + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки, + * - `OPERATION_NOT_FOUND` — операция не найдена. + * + * @type {Array} + * @memberof V1CargoesDeleteStatusResponseError + */ + supply_error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesDeleteStatusResponseError interface. + */ +export declare function instanceOfV1CargoesDeleteStatusResponseError(value: object): value is V1CargoesDeleteStatusResponseError; +export declare function V1CargoesDeleteStatusResponseErrorFromJSON(json: any): V1CargoesDeleteStatusResponseError; +export declare function V1CargoesDeleteStatusResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponseError; +export declare function V1CargoesDeleteStatusResponseErrorToJSON(value?: V1CargoesDeleteStatusResponseError | null): any; diff --git a/dist/esm/models/V1CargoesDeleteStatusResponseError.js b/dist/esm/models/V1CargoesDeleteStatusResponseError.js new file mode 100644 index 0000000..c7c79a7 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponseError.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON, V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON, } from './V1CargoesDeleteStatusResponseErrorCargoErrorReason'; +import { V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON, V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON, } from './V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum'; +/** + * Check if a given object implements the V1CargoesDeleteStatusResponseError interface. + */ +export function instanceOfV1CargoesDeleteStatusResponseError(value) { + return true; +} +export function V1CargoesDeleteStatusResponseErrorFromJSON(json) { + return V1CargoesDeleteStatusResponseErrorFromJSONTyped(json, false); +} +export function V1CargoesDeleteStatusResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_error_reasons': json['cargo_error_reasons'] == null ? undefined : (json['cargo_error_reasons'].map(V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON)), + 'supply_error_reasons': json['supply_error_reasons'] == null ? undefined : (json['supply_error_reasons'].map(V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON)), + }; +} +export function V1CargoesDeleteStatusResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_error_reasons': value['cargo_error_reasons'] == null ? undefined : (value['cargo_error_reasons'].map(V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON)), + 'supply_error_reasons': value['supply_error_reasons'] == null ? undefined : (value['supply_error_reasons'].map(V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.d.ts b/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.d.ts new file mode 100644 index 0000000..6b199e8 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum } from './V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum'; +/** + * + * @export + * @interface V1CargoesDeleteStatusResponseErrorCargoErrorReason + */ +export interface V1CargoesDeleteStatusResponseErrorCargoErrorReason { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof V1CargoesDeleteStatusResponseErrorCargoErrorReason + */ + cargo_id?: number; + /** + * Список ошибок грузоместа. + * + * Если значение `CARGO_NOT_FOUND`, грузоместо не найдено. + * + * @type {Array} + * @memberof V1CargoesDeleteStatusResponseErrorCargoErrorReason + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesDeleteStatusResponseErrorCargoErrorReason interface. + */ +export declare function instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReason(value: object): value is V1CargoesDeleteStatusResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON(json: any): V1CargoesDeleteStatusResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON(value?: V1CargoesDeleteStatusResponseErrorCargoErrorReason | null): any; diff --git a/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.js b/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.js new file mode 100644 index 0000000..c10744e --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON, V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON, } from './V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum'; +/** + * Check if a given object implements the V1CargoesDeleteStatusResponseErrorCargoErrorReason interface. + */ +export function instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReason(value) { + return true; +} +export function V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON(json) { + return V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSONTyped(json, false); +} +export function V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON)), + }; +} +export function V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.d.ts b/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.d.ts new file mode 100644 index 0000000..08762e4 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.d.ts @@ -0,0 +1,23 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum: { + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum = typeof V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum[keyof typeof V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum]; +export declare function instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum(value: any): boolean; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON(json: any): V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON(value?: V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum | null): any; diff --git a/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.js b/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.js new file mode 100644 index 0000000..e5feb44 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum = { + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +export function instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum(value) { + for (const key in V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum, key)) { + if (V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON(json) { + return V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json, false); +} +export function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.d.ts b/dist/esm/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.d.ts new file mode 100644 index 0000000..fcf77e5 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum: { + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly CANT_DELETE_ALL_CARGOES: "CANT_DELETE_ALL_CARGOES"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; +}; +export type V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum = typeof V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum[keyof typeof V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum]; +export declare function instanceOfV1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum(value: any): boolean; +export declare function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON(json: any): V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum; +export declare function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum; +export declare function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON(value?: V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum | null): any; diff --git a/dist/esm/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.js b/dist/esm/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.js new file mode 100644 index 0000000..6b80de7 --- /dev/null +++ b/dist/esm/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum = { + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + CANT_DELETE_ALL_CARGOES: 'CANT_DELETE_ALL_CARGOES', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND' +}; +export function instanceOfV1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum(value) { + for (const key in V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum, key)) { + if (V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON(json) { + return V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSONTyped(json, false); +} +export function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CargoesGetRequest.d.ts b/dist/esm/models/V1CargoesGetRequest.d.ts new file mode 100644 index 0000000..633c742 --- /dev/null +++ b/dist/esm/models/V1CargoesGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesGetRequest + */ +export interface V1CargoesGetRequest { + /** + * Список идентификаторов поставок в заявке. + * @type {Array} + * @memberof V1CargoesGetRequest + */ + supply_ids: Array; +} +/** + * Check if a given object implements the V1CargoesGetRequest interface. + */ +export declare function instanceOfV1CargoesGetRequest(value: object): value is V1CargoesGetRequest; +export declare function V1CargoesGetRequestFromJSON(json: any): V1CargoesGetRequest; +export declare function V1CargoesGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesGetRequest; +export declare function V1CargoesGetRequestToJSON(value?: V1CargoesGetRequest | null): any; diff --git a/dist/esm/models/V1CargoesGetRequest.js b/dist/esm/models/V1CargoesGetRequest.js new file mode 100644 index 0000000..63c6db5 --- /dev/null +++ b/dist/esm/models/V1CargoesGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CargoesGetRequest interface. + */ +export function instanceOfV1CargoesGetRequest(value) { + if (!('supply_ids' in value) || value['supply_ids'] === undefined) + return false; + return true; +} +export function V1CargoesGetRequestFromJSON(json) { + return V1CargoesGetRequestFromJSONTyped(json, false); +} +export function V1CargoesGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_ids': json['supply_ids'], + }; +} +export function V1CargoesGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_ids': value['supply_ids'], + }; +} diff --git a/dist/esm/models/V1CargoesGetResponse.d.ts b/dist/esm/models/V1CargoesGetResponse.d.ts new file mode 100644 index 0000000..3b9efbe --- /dev/null +++ b/dist/esm/models/V1CargoesGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesGetResponseSupply } from './CargoesGetResponseSupply'; +/** + * + * @export + * @interface V1CargoesGetResponse + */ +export interface V1CargoesGetResponse { + /** + * Информация о грузоместах. + * @type {Array} + * @memberof V1CargoesGetResponse + */ + supply?: Array; +} +/** + * Check if a given object implements the V1CargoesGetResponse interface. + */ +export declare function instanceOfV1CargoesGetResponse(value: object): value is V1CargoesGetResponse; +export declare function V1CargoesGetResponseFromJSON(json: any): V1CargoesGetResponse; +export declare function V1CargoesGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesGetResponse; +export declare function V1CargoesGetResponseToJSON(value?: V1CargoesGetResponse | null): any; diff --git a/dist/esm/models/V1CargoesGetResponse.js b/dist/esm/models/V1CargoesGetResponse.js new file mode 100644 index 0000000..bf9c09b --- /dev/null +++ b/dist/esm/models/V1CargoesGetResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesGetResponseSupplyFromJSON, CargoesGetResponseSupplyToJSON, } from './CargoesGetResponseSupply'; +/** + * Check if a given object implements the V1CargoesGetResponse interface. + */ +export function instanceOfV1CargoesGetResponse(value) { + return true; +} +export function V1CargoesGetResponseFromJSON(json) { + return V1CargoesGetResponseFromJSONTyped(json, false); +} +export function V1CargoesGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply': json['supply'] == null ? undefined : (json['supply'].map(CargoesGetResponseSupplyFromJSON)), + }; +} +export function V1CargoesGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply': value['supply'] == null ? undefined : (value['supply'].map(CargoesGetResponseSupplyToJSON)), + }; +} diff --git a/dist/esm/models/V1CargoesLabelCreateErrors.d.ts b/dist/esm/models/V1CargoesLabelCreateErrors.d.ts new file mode 100644 index 0000000..01823bb --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateErrors.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesLabelCreateErrorsErrorReason } from './V1CargoesLabelCreateErrorsErrorReason'; +/** + * Ошибки. + * @export + * @interface V1CargoesLabelCreateErrors + */ +export interface V1CargoesLabelCreateErrors { + /** + * Причина ошибки: + * - `INVALID_STATE` — недопустимое состояние поставки. + * - `OPERATION_NOT_FOUND` — операция не найдена. + * - `OPERATION_FAILED` — операция завершилась с ошибкой. + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — контрагент не соответствует поставке. + * - `SUPPLY_NOT_BELONG_COMPANY` — компания не соответствует поставке. + * - `SUPPLY_IS_EMPTY` — поставка без грузомест. + * - `CARGOES_NOT_FOUND` — грузоместа не найдены. + * + * @type {Array} + * @memberof V1CargoesLabelCreateErrors + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesLabelCreateErrors interface. + */ +export declare function instanceOfV1CargoesLabelCreateErrors(value: object): value is V1CargoesLabelCreateErrors; +export declare function V1CargoesLabelCreateErrorsFromJSON(json: any): V1CargoesLabelCreateErrors; +export declare function V1CargoesLabelCreateErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateErrors; +export declare function V1CargoesLabelCreateErrorsToJSON(value?: V1CargoesLabelCreateErrors | null): any; diff --git a/dist/esm/models/V1CargoesLabelCreateErrors.js b/dist/esm/models/V1CargoesLabelCreateErrors.js new file mode 100644 index 0000000..ca0eeb1 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateErrors.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesLabelCreateErrorsErrorReasonFromJSON, V1CargoesLabelCreateErrorsErrorReasonToJSON, } from './V1CargoesLabelCreateErrorsErrorReason'; +/** + * Check if a given object implements the V1CargoesLabelCreateErrors interface. + */ +export function instanceOfV1CargoesLabelCreateErrors(value) { + return true; +} +export function V1CargoesLabelCreateErrorsFromJSON(json) { + return V1CargoesLabelCreateErrorsFromJSONTyped(json, false); +} +export function V1CargoesLabelCreateErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1CargoesLabelCreateErrorsErrorReasonFromJSON)), + }; +} +export function V1CargoesLabelCreateErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1CargoesLabelCreateErrorsErrorReasonToJSON)), + }; +} diff --git a/dist/esm/models/V1CargoesLabelCreateErrorsErrorReason.d.ts b/dist/esm/models/V1CargoesLabelCreateErrorsErrorReason.d.ts new file mode 100644 index 0000000..45a1151 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateErrorsErrorReason.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesLabelCreateErrorsErrorReason: { + readonly INVALID_STATE: "INVALID_STATE"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly SUPPLY_IS_EMPTY: "SUPPLY_IS_EMPTY"; + readonly CARGOES_NOT_FOUND: "CARGOES_NOT_FOUND"; +}; +export type V1CargoesLabelCreateErrorsErrorReason = typeof V1CargoesLabelCreateErrorsErrorReason[keyof typeof V1CargoesLabelCreateErrorsErrorReason]; +export declare function instanceOfV1CargoesLabelCreateErrorsErrorReason(value: any): boolean; +export declare function V1CargoesLabelCreateErrorsErrorReasonFromJSON(json: any): V1CargoesLabelCreateErrorsErrorReason; +export declare function V1CargoesLabelCreateErrorsErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateErrorsErrorReason; +export declare function V1CargoesLabelCreateErrorsErrorReasonToJSON(value?: V1CargoesLabelCreateErrorsErrorReason | null): any; diff --git a/dist/esm/models/V1CargoesLabelCreateErrorsErrorReason.js b/dist/esm/models/V1CargoesLabelCreateErrorsErrorReason.js new file mode 100644 index 0000000..0c2661e --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateErrorsErrorReason.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1CargoesLabelCreateErrorsErrorReason = { + INVALID_STATE: 'INVALID_STATE', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + SUPPLY_IS_EMPTY: 'SUPPLY_IS_EMPTY', + CARGOES_NOT_FOUND: 'CARGOES_NOT_FOUND' +}; +export function instanceOfV1CargoesLabelCreateErrorsErrorReason(value) { + for (const key in V1CargoesLabelCreateErrorsErrorReason) { + if (Object.prototype.hasOwnProperty.call(V1CargoesLabelCreateErrorsErrorReason, key)) { + if (V1CargoesLabelCreateErrorsErrorReason[key] === value) { + return true; + } + } + } + return false; +} +export function V1CargoesLabelCreateErrorsErrorReasonFromJSON(json) { + return V1CargoesLabelCreateErrorsErrorReasonFromJSONTyped(json, false); +} +export function V1CargoesLabelCreateErrorsErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CargoesLabelCreateErrorsErrorReasonToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CargoesLabelCreateRequest.d.ts b/dist/esm/models/V1CargoesLabelCreateRequest.d.ts new file mode 100644 index 0000000..99c92d1 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesLabelCreateRequestCargo } from './V1CargoesLabelCreateRequestCargo'; +/** + * + * @export + * @interface V1CargoesLabelCreateRequest + */ +export interface V1CargoesLabelCreateRequest { + /** + * Информация о грузоместах. + * @type {Array} + * @memberof V1CargoesLabelCreateRequest + */ + cargoes?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof V1CargoesLabelCreateRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1CargoesLabelCreateRequest interface. + */ +export declare function instanceOfV1CargoesLabelCreateRequest(value: object): value is V1CargoesLabelCreateRequest; +export declare function V1CargoesLabelCreateRequestFromJSON(json: any): V1CargoesLabelCreateRequest; +export declare function V1CargoesLabelCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateRequest; +export declare function V1CargoesLabelCreateRequestToJSON(value?: V1CargoesLabelCreateRequest | null): any; diff --git a/dist/esm/models/V1CargoesLabelCreateRequest.js b/dist/esm/models/V1CargoesLabelCreateRequest.js new file mode 100644 index 0000000..1c1cf30 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateRequest.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesLabelCreateRequestCargoFromJSON, V1CargoesLabelCreateRequestCargoToJSON, } from './V1CargoesLabelCreateRequestCargo'; +/** + * Check if a given object implements the V1CargoesLabelCreateRequest interface. + */ +export function instanceOfV1CargoesLabelCreateRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1CargoesLabelCreateRequestFromJSON(json) { + return V1CargoesLabelCreateRequestFromJSONTyped(json, false); +} +export function V1CargoesLabelCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(V1CargoesLabelCreateRequestCargoFromJSON)), + 'supply_id': json['supply_id'], + }; +} +export function V1CargoesLabelCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(V1CargoesLabelCreateRequestCargoToJSON)), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1CargoesLabelCreateRequestCargo.d.ts b/dist/esm/models/V1CargoesLabelCreateRequestCargo.d.ts new file mode 100644 index 0000000..63f7832 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateRequestCargo.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesLabelCreateRequestCargo + */ +export interface V1CargoesLabelCreateRequestCargo { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof V1CargoesLabelCreateRequestCargo + */ + cargo_id?: number; +} +/** + * Check if a given object implements the V1CargoesLabelCreateRequestCargo interface. + */ +export declare function instanceOfV1CargoesLabelCreateRequestCargo(value: object): value is V1CargoesLabelCreateRequestCargo; +export declare function V1CargoesLabelCreateRequestCargoFromJSON(json: any): V1CargoesLabelCreateRequestCargo; +export declare function V1CargoesLabelCreateRequestCargoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateRequestCargo; +export declare function V1CargoesLabelCreateRequestCargoToJSON(value?: V1CargoesLabelCreateRequestCargo | null): any; diff --git a/dist/esm/models/V1CargoesLabelCreateRequestCargo.js b/dist/esm/models/V1CargoesLabelCreateRequestCargo.js new file mode 100644 index 0000000..aa621f8 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateRequestCargo.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CargoesLabelCreateRequestCargo interface. + */ +export function instanceOfV1CargoesLabelCreateRequestCargo(value) { + return true; +} +export function V1CargoesLabelCreateRequestCargoFromJSON(json) { + return V1CargoesLabelCreateRequestCargoFromJSONTyped(json, false); +} +export function V1CargoesLabelCreateRequestCargoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + }; +} +export function V1CargoesLabelCreateRequestCargoToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + }; +} diff --git a/dist/esm/models/V1CargoesLabelCreateResponse.d.ts b/dist/esm/models/V1CargoesLabelCreateResponse.d.ts new file mode 100644 index 0000000..9545a71 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesLabelCreateErrors } from './V1CargoesLabelCreateErrors'; +/** + * + * @export + * @interface V1CargoesLabelCreateResponse + */ +export interface V1CargoesLabelCreateResponse { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesLabelCreateResponse + */ + operation_id?: string; + /** + * + * @type {V1CargoesLabelCreateErrors} + * @memberof V1CargoesLabelCreateResponse + */ + errors?: V1CargoesLabelCreateErrors; +} +/** + * Check if a given object implements the V1CargoesLabelCreateResponse interface. + */ +export declare function instanceOfV1CargoesLabelCreateResponse(value: object): value is V1CargoesLabelCreateResponse; +export declare function V1CargoesLabelCreateResponseFromJSON(json: any): V1CargoesLabelCreateResponse; +export declare function V1CargoesLabelCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateResponse; +export declare function V1CargoesLabelCreateResponseToJSON(value?: V1CargoesLabelCreateResponse | null): any; diff --git a/dist/esm/models/V1CargoesLabelCreateResponse.js b/dist/esm/models/V1CargoesLabelCreateResponse.js new file mode 100644 index 0000000..5787656 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelCreateResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesLabelCreateErrorsFromJSON, V1CargoesLabelCreateErrorsToJSON, } from './V1CargoesLabelCreateErrors'; +/** + * Check if a given object implements the V1CargoesLabelCreateResponse interface. + */ +export function instanceOfV1CargoesLabelCreateResponse(value) { + return true; +} +export function V1CargoesLabelCreateResponseFromJSON(json) { + return V1CargoesLabelCreateResponseFromJSONTyped(json, false); +} +export function V1CargoesLabelCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + 'errors': json['errors'] == null ? undefined : V1CargoesLabelCreateErrorsFromJSON(json['errors']), + }; +} +export function V1CargoesLabelCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + 'errors': V1CargoesLabelCreateErrorsToJSON(value['errors']), + }; +} diff --git a/dist/esm/models/V1CargoesLabelGetRequest.d.ts b/dist/esm/models/V1CargoesLabelGetRequest.d.ts new file mode 100644 index 0000000..f204377 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesLabelGetRequest + */ +export interface V1CargoesLabelGetRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesLabelGetRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1CargoesLabelGetRequest interface. + */ +export declare function instanceOfV1CargoesLabelGetRequest(value: object): value is V1CargoesLabelGetRequest; +export declare function V1CargoesLabelGetRequestFromJSON(json: any): V1CargoesLabelGetRequest; +export declare function V1CargoesLabelGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelGetRequest; +export declare function V1CargoesLabelGetRequestToJSON(value?: V1CargoesLabelGetRequest | null): any; diff --git a/dist/esm/models/V1CargoesLabelGetRequest.js b/dist/esm/models/V1CargoesLabelGetRequest.js new file mode 100644 index 0000000..9d135be --- /dev/null +++ b/dist/esm/models/V1CargoesLabelGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CargoesLabelGetRequest interface. + */ +export function instanceOfV1CargoesLabelGetRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function V1CargoesLabelGetRequestFromJSON(json) { + return V1CargoesLabelGetRequestFromJSONTyped(json, false); +} +export function V1CargoesLabelGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function V1CargoesLabelGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1CargoesLabelGetResponse.d.ts b/dist/esm/models/V1CargoesLabelGetResponse.d.ts new file mode 100644 index 0000000..8dc17f1 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelGetResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesLabelGetResponseResult } from './V1CargoesLabelGetResponseResult'; +import type { V1CargoesLabelCreateErrors } from './V1CargoesLabelCreateErrors'; +import type { V1CargoesLabelGetResponseStatus } from './V1CargoesLabelGetResponseStatus'; +/** + * + * @export + * @interface V1CargoesLabelGetResponse + */ +export interface V1CargoesLabelGetResponse { + /** + * + * @type {V1CargoesLabelGetResponseResult} + * @memberof V1CargoesLabelGetResponse + */ + result?: V1CargoesLabelGetResponseResult; + /** + * + * @type {V1CargoesLabelGetResponseStatus} + * @memberof V1CargoesLabelGetResponse + */ + status?: V1CargoesLabelGetResponseStatus; + /** + * + * @type {V1CargoesLabelCreateErrors} + * @memberof V1CargoesLabelGetResponse + */ + errors?: V1CargoesLabelCreateErrors; +} +/** + * Check if a given object implements the V1CargoesLabelGetResponse interface. + */ +export declare function instanceOfV1CargoesLabelGetResponse(value: object): value is V1CargoesLabelGetResponse; +export declare function V1CargoesLabelGetResponseFromJSON(json: any): V1CargoesLabelGetResponse; +export declare function V1CargoesLabelGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelGetResponse; +export declare function V1CargoesLabelGetResponseToJSON(value?: V1CargoesLabelGetResponse | null): any; diff --git a/dist/esm/models/V1CargoesLabelGetResponse.js b/dist/esm/models/V1CargoesLabelGetResponse.js new file mode 100644 index 0000000..4e514a2 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelGetResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CargoesLabelGetResponseResultFromJSON, V1CargoesLabelGetResponseResultToJSON, } from './V1CargoesLabelGetResponseResult'; +import { V1CargoesLabelCreateErrorsFromJSON, V1CargoesLabelCreateErrorsToJSON, } from './V1CargoesLabelCreateErrors'; +import { V1CargoesLabelGetResponseStatusFromJSON, V1CargoesLabelGetResponseStatusToJSON, } from './V1CargoesLabelGetResponseStatus'; +/** + * Check if a given object implements the V1CargoesLabelGetResponse interface. + */ +export function instanceOfV1CargoesLabelGetResponse(value) { + return true; +} +export function V1CargoesLabelGetResponseFromJSON(json) { + return V1CargoesLabelGetResponseFromJSONTyped(json, false); +} +export function V1CargoesLabelGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1CargoesLabelGetResponseResultFromJSON(json['result']), + 'status': json['status'] == null ? undefined : V1CargoesLabelGetResponseStatusFromJSON(json['status']), + 'errors': json['errors'] == null ? undefined : V1CargoesLabelCreateErrorsFromJSON(json['errors']), + }; +} +export function V1CargoesLabelGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1CargoesLabelGetResponseResultToJSON(value['result']), + 'status': V1CargoesLabelGetResponseStatusToJSON(value['status']), + 'errors': V1CargoesLabelCreateErrorsToJSON(value['errors']), + }; +} diff --git a/dist/esm/models/V1CargoesLabelGetResponseResult.d.ts b/dist/esm/models/V1CargoesLabelGetResponseResult.d.ts new file mode 100644 index 0000000..be26bde --- /dev/null +++ b/dist/esm/models/V1CargoesLabelGetResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об этикетках. + * @export + * @interface V1CargoesLabelGetResponseResult + */ +export interface V1CargoesLabelGetResponseResult { + /** + * Идентификатор для получения файла с этикетками. + * @type {string} + * @memberof V1CargoesLabelGetResponseResult + * @deprecated + */ + file_guid?: string; + /** + * Ссылка на PDF-файл с этикетками. + * @type {string} + * @memberof V1CargoesLabelGetResponseResult + */ + file_url?: string; +} +/** + * Check if a given object implements the V1CargoesLabelGetResponseResult interface. + */ +export declare function instanceOfV1CargoesLabelGetResponseResult(value: object): value is V1CargoesLabelGetResponseResult; +export declare function V1CargoesLabelGetResponseResultFromJSON(json: any): V1CargoesLabelGetResponseResult; +export declare function V1CargoesLabelGetResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelGetResponseResult; +export declare function V1CargoesLabelGetResponseResultToJSON(value?: V1CargoesLabelGetResponseResult | null): any; diff --git a/dist/esm/models/V1CargoesLabelGetResponseResult.js b/dist/esm/models/V1CargoesLabelGetResponseResult.js new file mode 100644 index 0000000..3b9c2f5 --- /dev/null +++ b/dist/esm/models/V1CargoesLabelGetResponseResult.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CargoesLabelGetResponseResult interface. + */ +export function instanceOfV1CargoesLabelGetResponseResult(value) { + return true; +} +export function V1CargoesLabelGetResponseResultFromJSON(json) { + return V1CargoesLabelGetResponseResultFromJSONTyped(json, false); +} +export function V1CargoesLabelGetResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_guid': json['file_guid'] == null ? undefined : json['file_guid'], + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + }; +} +export function V1CargoesLabelGetResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_guid': value['file_guid'], + 'file_url': value['file_url'], + }; +} diff --git a/dist/esm/models/V1CargoesLabelGetResponseStatus.d.ts b/dist/esm/models/V1CargoesLabelGetResponseStatus.d.ts new file mode 100644 index 0000000..d1ebc3e --- /dev/null +++ b/dist/esm/models/V1CargoesLabelGetResponseStatus.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус формирования этикеток: + * - `SUCCESS` — готовы. + * - `IN_PROGRESS` — формируются. + * - `FAILED` — ошибка при формировании. + * + * @export + */ +export declare const V1CargoesLabelGetResponseStatus: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type V1CargoesLabelGetResponseStatus = typeof V1CargoesLabelGetResponseStatus[keyof typeof V1CargoesLabelGetResponseStatus]; +export declare function instanceOfV1CargoesLabelGetResponseStatus(value: any): boolean; +export declare function V1CargoesLabelGetResponseStatusFromJSON(json: any): V1CargoesLabelGetResponseStatus; +export declare function V1CargoesLabelGetResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelGetResponseStatus; +export declare function V1CargoesLabelGetResponseStatusToJSON(value?: V1CargoesLabelGetResponseStatus | null): any; diff --git a/dist/esm/models/V1CargoesLabelGetResponseStatus.js b/dist/esm/models/V1CargoesLabelGetResponseStatus.js new file mode 100644 index 0000000..e212b5d --- /dev/null +++ b/dist/esm/models/V1CargoesLabelGetResponseStatus.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус формирования этикеток: + * - `SUCCESS` — готовы. + * - `IN_PROGRESS` — формируются. + * - `FAILED` — ошибка при формировании. + * + * @export + */ +export const V1CargoesLabelGetResponseStatus = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfV1CargoesLabelGetResponseStatus(value) { + for (const key in V1CargoesLabelGetResponseStatus) { + if (Object.prototype.hasOwnProperty.call(V1CargoesLabelGetResponseStatus, key)) { + if (V1CargoesLabelGetResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +export function V1CargoesLabelGetResponseStatusFromJSON(json) { + return V1CargoesLabelGetResponseStatusFromJSONTyped(json, false); +} +export function V1CargoesLabelGetResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CargoesLabelGetResponseStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CargoesRulesGetRequest.d.ts b/dist/esm/models/V1CargoesRulesGetRequest.d.ts new file mode 100644 index 0000000..9711dcd --- /dev/null +++ b/dist/esm/models/V1CargoesRulesGetRequest.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesRulesGetRequest + */ +export interface V1CargoesRulesGetRequest { + /** + * Список идентификаторов поставок в заявке. + * + * Максимум 100 идентификаторов. + * + * @type {Array} + * @memberof V1CargoesRulesGetRequest + */ + supply_ids: Array; +} +/** + * Check if a given object implements the V1CargoesRulesGetRequest interface. + */ +export declare function instanceOfV1CargoesRulesGetRequest(value: object): value is V1CargoesRulesGetRequest; +export declare function V1CargoesRulesGetRequestFromJSON(json: any): V1CargoesRulesGetRequest; +export declare function V1CargoesRulesGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesRulesGetRequest; +export declare function V1CargoesRulesGetRequestToJSON(value?: V1CargoesRulesGetRequest | null): any; diff --git a/dist/esm/models/V1CargoesRulesGetRequest.js b/dist/esm/models/V1CargoesRulesGetRequest.js new file mode 100644 index 0000000..a952649 --- /dev/null +++ b/dist/esm/models/V1CargoesRulesGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CargoesRulesGetRequest interface. + */ +export function instanceOfV1CargoesRulesGetRequest(value) { + if (!('supply_ids' in value) || value['supply_ids'] === undefined) + return false; + return true; +} +export function V1CargoesRulesGetRequestFromJSON(json) { + return V1CargoesRulesGetRequestFromJSONTyped(json, false); +} +export function V1CargoesRulesGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_ids': json['supply_ids'], + }; +} +export function V1CargoesRulesGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_ids': value['supply_ids'], + }; +} diff --git a/dist/esm/models/V1CargoesRulesGetResponse.d.ts b/dist/esm/models/V1CargoesRulesGetResponse.d.ts new file mode 100644 index 0000000..28b2980 --- /dev/null +++ b/dist/esm/models/V1CargoesRulesGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesRulesGetResponseSupplyCheck } from './CargoesRulesGetResponseSupplyCheck'; +/** + * + * @export + * @interface V1CargoesRulesGetResponse + */ +export interface V1CargoesRulesGetResponse { + /** + * Список чек-листов с правилами заполнения грузомест по поставкам. + * @type {Array} + * @memberof V1CargoesRulesGetResponse + */ + supply_check_lists?: Array; +} +/** + * Check if a given object implements the V1CargoesRulesGetResponse interface. + */ +export declare function instanceOfV1CargoesRulesGetResponse(value: object): value is V1CargoesRulesGetResponse; +export declare function V1CargoesRulesGetResponseFromJSON(json: any): V1CargoesRulesGetResponse; +export declare function V1CargoesRulesGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesRulesGetResponse; +export declare function V1CargoesRulesGetResponseToJSON(value?: V1CargoesRulesGetResponse | null): any; diff --git a/dist/esm/models/V1CargoesRulesGetResponse.js b/dist/esm/models/V1CargoesRulesGetResponse.js new file mode 100644 index 0000000..d73518d --- /dev/null +++ b/dist/esm/models/V1CargoesRulesGetResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesRulesGetResponseSupplyCheckFromJSON, CargoesRulesGetResponseSupplyCheckToJSON, } from './CargoesRulesGetResponseSupplyCheck'; +/** + * Check if a given object implements the V1CargoesRulesGetResponse interface. + */ +export function instanceOfV1CargoesRulesGetResponse(value) { + return true; +} +export function V1CargoesRulesGetResponseFromJSON(json) { + return V1CargoesRulesGetResponseFromJSONTyped(json, false); +} +export function V1CargoesRulesGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_check_lists': json['supply_check_lists'] == null ? undefined : (json['supply_check_lists'].map(CargoesRulesGetResponseSupplyCheckFromJSON)), + }; +} +export function V1CargoesRulesGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_check_lists': value['supply_check_lists'] == null ? undefined : (value['supply_check_lists'].map(CargoesRulesGetResponseSupplyCheckToJSON)), + }; +} diff --git a/dist/esm/models/V1CarriageActDiscrepancyPDFRequest.d.ts b/dist/esm/models/V1CarriageActDiscrepancyPDFRequest.d.ts new file mode 100644 index 0000000..b3e0f04 --- /dev/null +++ b/dist/esm/models/V1CarriageActDiscrepancyPDFRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageActDiscrepancyPDFRequest + */ +export interface V1CarriageActDiscrepancyPDFRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1CarriageActDiscrepancyPDFRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the V1CarriageActDiscrepancyPDFRequest interface. + */ +export declare function instanceOfV1CarriageActDiscrepancyPDFRequest(value: object): value is V1CarriageActDiscrepancyPDFRequest; +export declare function V1CarriageActDiscrepancyPDFRequestFromJSON(json: any): V1CarriageActDiscrepancyPDFRequest; +export declare function V1CarriageActDiscrepancyPDFRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageActDiscrepancyPDFRequest; +export declare function V1CarriageActDiscrepancyPDFRequestToJSON(value?: V1CarriageActDiscrepancyPDFRequest | null): any; diff --git a/dist/esm/models/V1CarriageActDiscrepancyPDFRequest.js b/dist/esm/models/V1CarriageActDiscrepancyPDFRequest.js new file mode 100644 index 0000000..8d032c3 --- /dev/null +++ b/dist/esm/models/V1CarriageActDiscrepancyPDFRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageActDiscrepancyPDFRequest interface. + */ +export function instanceOfV1CarriageActDiscrepancyPDFRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function V1CarriageActDiscrepancyPDFRequestFromJSON(json) { + return V1CarriageActDiscrepancyPDFRequestFromJSONTyped(json, false); +} +export function V1CarriageActDiscrepancyPDFRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +export function V1CarriageActDiscrepancyPDFRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/V1CarriageActDiscrepancyPDFResponse.d.ts b/dist/esm/models/V1CarriageActDiscrepancyPDFResponse.d.ts new file mode 100644 index 0000000..b8a4507 --- /dev/null +++ b/dist/esm/models/V1CarriageActDiscrepancyPDFResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageActDiscrepancyPDFResponse + */ +export interface V1CarriageActDiscrepancyPDFResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof V1CarriageActDiscrepancyPDFResponse + */ + content?: string; + /** + * Название файла. + * @type {string} + * @memberof V1CarriageActDiscrepancyPDFResponse + */ + name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V1CarriageActDiscrepancyPDFResponse + */ + type?: string; +} +/** + * Check if a given object implements the V1CarriageActDiscrepancyPDFResponse interface. + */ +export declare function instanceOfV1CarriageActDiscrepancyPDFResponse(value: object): value is V1CarriageActDiscrepancyPDFResponse; +export declare function V1CarriageActDiscrepancyPDFResponseFromJSON(json: any): V1CarriageActDiscrepancyPDFResponse; +export declare function V1CarriageActDiscrepancyPDFResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageActDiscrepancyPDFResponse; +export declare function V1CarriageActDiscrepancyPDFResponseToJSON(value?: V1CarriageActDiscrepancyPDFResponse | null): any; diff --git a/dist/esm/models/V1CarriageActDiscrepancyPDFResponse.js b/dist/esm/models/V1CarriageActDiscrepancyPDFResponse.js new file mode 100644 index 0000000..119765c --- /dev/null +++ b/dist/esm/models/V1CarriageActDiscrepancyPDFResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageActDiscrepancyPDFResponse interface. + */ +export function instanceOfV1CarriageActDiscrepancyPDFResponse(value) { + return true; +} +export function V1CarriageActDiscrepancyPDFResponseFromJSON(json) { + return V1CarriageActDiscrepancyPDFResponseFromJSONTyped(json, false); +} +export function V1CarriageActDiscrepancyPDFResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content': json['content'] == null ? undefined : json['content'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} +export function V1CarriageActDiscrepancyPDFResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'content': value['content'], + 'name': value['name'], + 'type': value['type'], + }; +} diff --git a/dist/esm/models/V1CarriageApproveRequest.d.ts b/dist/esm/models/V1CarriageApproveRequest.d.ts new file mode 100644 index 0000000..cc48e89 --- /dev/null +++ b/dist/esm/models/V1CarriageApproveRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageApproveRequest + */ +export interface V1CarriageApproveRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1CarriageApproveRequest + */ + carriage_id: number; + /** + * Количество грузовых мест. + * + * Используйте параметр, если вы подключены к доверительной приёмке и отгружаете заказы грузовыми местами. Если вы не подключены к доверительной приёмке, пропустите его. + * + * @type {number} + * @memberof V1CarriageApproveRequest + */ + containers_count?: number; +} +/** + * Check if a given object implements the V1CarriageApproveRequest interface. + */ +export declare function instanceOfV1CarriageApproveRequest(value: object): value is V1CarriageApproveRequest; +export declare function V1CarriageApproveRequestFromJSON(json: any): V1CarriageApproveRequest; +export declare function V1CarriageApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageApproveRequest; +export declare function V1CarriageApproveRequestToJSON(value?: V1CarriageApproveRequest | null): any; diff --git a/dist/esm/models/V1CarriageApproveRequest.js b/dist/esm/models/V1CarriageApproveRequest.js new file mode 100644 index 0000000..088d005 --- /dev/null +++ b/dist/esm/models/V1CarriageApproveRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageApproveRequest interface. + */ +export function instanceOfV1CarriageApproveRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function V1CarriageApproveRequestFromJSON(json) { + return V1CarriageApproveRequestFromJSONTyped(json, false); +} +export function V1CarriageApproveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'containers_count': json['containers_count'] == null ? undefined : json['containers_count'], + }; +} +export function V1CarriageApproveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'containers_count': value['containers_count'], + }; +} diff --git a/dist/esm/models/V1CarriageCancelRequest.d.ts b/dist/esm/models/V1CarriageCancelRequest.d.ts new file mode 100644 index 0000000..b67a32b --- /dev/null +++ b/dist/esm/models/V1CarriageCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCancelRequest + */ +export interface V1CarriageCancelRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1CarriageCancelRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the V1CarriageCancelRequest interface. + */ +export declare function instanceOfV1CarriageCancelRequest(value: object): value is V1CarriageCancelRequest; +export declare function V1CarriageCancelRequestFromJSON(json: any): V1CarriageCancelRequest; +export declare function V1CarriageCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCancelRequest; +export declare function V1CarriageCancelRequestToJSON(value?: V1CarriageCancelRequest | null): any; diff --git a/dist/esm/models/V1CarriageCancelRequest.js b/dist/esm/models/V1CarriageCancelRequest.js new file mode 100644 index 0000000..3fefcf7 --- /dev/null +++ b/dist/esm/models/V1CarriageCancelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageCancelRequest interface. + */ +export function instanceOfV1CarriageCancelRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function V1CarriageCancelRequestFromJSON(json) { + return V1CarriageCancelRequestFromJSONTyped(json, false); +} +export function V1CarriageCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +export function V1CarriageCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/V1CarriageCancelResponse.d.ts b/dist/esm/models/V1CarriageCancelResponse.d.ts new file mode 100644 index 0000000..93ad1cd --- /dev/null +++ b/dist/esm/models/V1CarriageCancelResponse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCancelResponse + */ +export interface V1CarriageCancelResponse { + /** + * Описание ошибки. + * @type {string} + * @memberof V1CarriageCancelResponse + */ + error?: string; + /** + * Статус отгрузки. + * @type {string} + * @memberof V1CarriageCancelResponse + */ + carriage_status?: string; +} +/** + * Check if a given object implements the V1CarriageCancelResponse interface. + */ +export declare function instanceOfV1CarriageCancelResponse(value: object): value is V1CarriageCancelResponse; +export declare function V1CarriageCancelResponseFromJSON(json: any): V1CarriageCancelResponse; +export declare function V1CarriageCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCancelResponse; +export declare function V1CarriageCancelResponseToJSON(value?: V1CarriageCancelResponse | null): any; diff --git a/dist/esm/models/V1CarriageCancelResponse.js b/dist/esm/models/V1CarriageCancelResponse.js new file mode 100644 index 0000000..2cace4a --- /dev/null +++ b/dist/esm/models/V1CarriageCancelResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageCancelResponse interface. + */ +export function instanceOfV1CarriageCancelResponse(value) { + return true; +} +export function V1CarriageCancelResponseFromJSON(json) { + return V1CarriageCancelResponseFromJSONTyped(json, false); +} +export function V1CarriageCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'carriage_status': json['carriage_status'] == null ? undefined : json['carriage_status'], + }; +} +export function V1CarriageCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'carriage_status': value['carriage_status'], + }; +} diff --git a/dist/esm/models/V1CarriageCourierContactGetRequest.d.ts b/dist/esm/models/V1CarriageCourierContactGetRequest.d.ts new file mode 100644 index 0000000..4264b58 --- /dev/null +++ b/dist/esm/models/V1CarriageCourierContactGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCourierContactGetRequest + */ +export interface V1CarriageCourierContactGetRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageCourierContactGetRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the V1CarriageCourierContactGetRequest interface. + */ +export declare function instanceOfV1CarriageCourierContactGetRequest(value: object): value is V1CarriageCourierContactGetRequest; +export declare function V1CarriageCourierContactGetRequestFromJSON(json: any): V1CarriageCourierContactGetRequest; +export declare function V1CarriageCourierContactGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCourierContactGetRequest; +export declare function V1CarriageCourierContactGetRequestToJSON(value?: V1CarriageCourierContactGetRequest | null): any; diff --git a/dist/esm/models/V1CarriageCourierContactGetRequest.js b/dist/esm/models/V1CarriageCourierContactGetRequest.js new file mode 100644 index 0000000..539e96c --- /dev/null +++ b/dist/esm/models/V1CarriageCourierContactGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageCourierContactGetRequest interface. + */ +export function instanceOfV1CarriageCourierContactGetRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function V1CarriageCourierContactGetRequestFromJSON(json) { + return V1CarriageCourierContactGetRequestFromJSONTyped(json, false); +} +export function V1CarriageCourierContactGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +export function V1CarriageCourierContactGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/V1CarriageCourierContactGetResponse.d.ts b/dist/esm/models/V1CarriageCourierContactGetResponse.d.ts new file mode 100644 index 0000000..4ca6ead --- /dev/null +++ b/dist/esm/models/V1CarriageCourierContactGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CarriageCourierContactGetResponseContact } from './V1CarriageCourierContactGetResponseContact'; +/** + * + * @export + * @interface V1CarriageCourierContactGetResponse + */ +export interface V1CarriageCourierContactGetResponse { + /** + * Информация о контактах продавца. + * @type {Array} + * @memberof V1CarriageCourierContactGetResponse + */ + contact?: Array; +} +/** + * Check if a given object implements the V1CarriageCourierContactGetResponse interface. + */ +export declare function instanceOfV1CarriageCourierContactGetResponse(value: object): value is V1CarriageCourierContactGetResponse; +export declare function V1CarriageCourierContactGetResponseFromJSON(json: any): V1CarriageCourierContactGetResponse; +export declare function V1CarriageCourierContactGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCourierContactGetResponse; +export declare function V1CarriageCourierContactGetResponseToJSON(value?: V1CarriageCourierContactGetResponse | null): any; diff --git a/dist/esm/models/V1CarriageCourierContactGetResponse.js b/dist/esm/models/V1CarriageCourierContactGetResponse.js new file mode 100644 index 0000000..9203149 --- /dev/null +++ b/dist/esm/models/V1CarriageCourierContactGetResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CarriageCourierContactGetResponseContactFromJSON, V1CarriageCourierContactGetResponseContactToJSON, } from './V1CarriageCourierContactGetResponseContact'; +/** + * Check if a given object implements the V1CarriageCourierContactGetResponse interface. + */ +export function instanceOfV1CarriageCourierContactGetResponse(value) { + return true; +} +export function V1CarriageCourierContactGetResponseFromJSON(json) { + return V1CarriageCourierContactGetResponseFromJSONTyped(json, false); +} +export function V1CarriageCourierContactGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact': json['contact'] == null ? undefined : (json['contact'].map(V1CarriageCourierContactGetResponseContactFromJSON)), + }; +} +export function V1CarriageCourierContactGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact': value['contact'] == null ? undefined : (value['contact'].map(V1CarriageCourierContactGetResponseContactToJSON)), + }; +} diff --git a/dist/esm/models/V1CarriageCourierContactGetResponseContact.d.ts b/dist/esm/models/V1CarriageCourierContactGetResponseContact.d.ts new file mode 100644 index 0000000..c3298d0 --- /dev/null +++ b/dist/esm/models/V1CarriageCourierContactGetResponseContact.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCourierContactGetResponseContact + */ +export interface V1CarriageCourierContactGetResponseContact { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageCourierContactGetResponseContact + */ + carriage_id?: number; + /** + * Телефон продавца. + * @type {string} + * @memberof V1CarriageCourierContactGetResponseContact + */ + phone?: string; + /** + * WeChat продавца. + * @type {string} + * @memberof V1CarriageCourierContactGetResponseContact + */ + wechat_nickname?: string; + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1CarriageCourierContactGetResponseContact + */ + comment?: string; + /** + * Дата и время последнего обновления записи в UTC. + * @type {string} + * @memberof V1CarriageCourierContactGetResponseContact + */ + updated_at?: string; +} +/** + * Check if a given object implements the V1CarriageCourierContactGetResponseContact interface. + */ +export declare function instanceOfV1CarriageCourierContactGetResponseContact(value: object): value is V1CarriageCourierContactGetResponseContact; +export declare function V1CarriageCourierContactGetResponseContactFromJSON(json: any): V1CarriageCourierContactGetResponseContact; +export declare function V1CarriageCourierContactGetResponseContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCourierContactGetResponseContact; +export declare function V1CarriageCourierContactGetResponseContactToJSON(value?: V1CarriageCourierContactGetResponseContact | null): any; diff --git a/dist/esm/models/V1CarriageCourierContactGetResponseContact.js b/dist/esm/models/V1CarriageCourierContactGetResponseContact.js new file mode 100644 index 0000000..52a5db5 --- /dev/null +++ b/dist/esm/models/V1CarriageCourierContactGetResponseContact.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageCourierContactGetResponseContact interface. + */ +export function instanceOfV1CarriageCourierContactGetResponseContact(value) { + return true; +} +export function V1CarriageCourierContactGetResponseContactFromJSON(json) { + return V1CarriageCourierContactGetResponseContactFromJSONTyped(json, false); +} +export function V1CarriageCourierContactGetResponseContactFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'] == null ? undefined : json['carriage_id'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'wechat_nickname': json['wechat_nickname'] == null ? undefined : json['wechat_nickname'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + }; +} +export function V1CarriageCourierContactGetResponseContactToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'phone': value['phone'], + 'wechat_nickname': value['wechat_nickname'], + 'comment': value['comment'], + 'updated_at': value['updated_at'], + }; +} diff --git a/dist/esm/models/V1CarriageCourierContactSetRequest.d.ts b/dist/esm/models/V1CarriageCourierContactSetRequest.d.ts new file mode 100644 index 0000000..abb5c61 --- /dev/null +++ b/dist/esm/models/V1CarriageCourierContactSetRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCourierContactSetRequest + */ +export interface V1CarriageCourierContactSetRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageCourierContactSetRequest + */ + carriage_id: number; + /** + * Телефон продавца. + * @type {string} + * @memberof V1CarriageCourierContactSetRequest + */ + phone: string; + /** + * WeChat продавца. + * @type {string} + * @memberof V1CarriageCourierContactSetRequest + */ + wechat_nickname?: string; + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1CarriageCourierContactSetRequest + */ + comment?: string; +} +/** + * Check if a given object implements the V1CarriageCourierContactSetRequest interface. + */ +export declare function instanceOfV1CarriageCourierContactSetRequest(value: object): value is V1CarriageCourierContactSetRequest; +export declare function V1CarriageCourierContactSetRequestFromJSON(json: any): V1CarriageCourierContactSetRequest; +export declare function V1CarriageCourierContactSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCourierContactSetRequest; +export declare function V1CarriageCourierContactSetRequestToJSON(value?: V1CarriageCourierContactSetRequest | null): any; diff --git a/dist/esm/models/V1CarriageCourierContactSetRequest.js b/dist/esm/models/V1CarriageCourierContactSetRequest.js new file mode 100644 index 0000000..d3178cc --- /dev/null +++ b/dist/esm/models/V1CarriageCourierContactSetRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageCourierContactSetRequest interface. + */ +export function instanceOfV1CarriageCourierContactSetRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + return true; +} +export function V1CarriageCourierContactSetRequestFromJSON(json) { + return V1CarriageCourierContactSetRequestFromJSONTyped(json, false); +} +export function V1CarriageCourierContactSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'phone': json['phone'], + 'wechat_nickname': json['wechat_nickname'] == null ? undefined : json['wechat_nickname'], + 'comment': json['comment'] == null ? undefined : json['comment'], + }; +} +export function V1CarriageCourierContactSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'phone': value['phone'], + 'wechat_nickname': value['wechat_nickname'], + 'comment': value['comment'], + }; +} diff --git a/dist/esm/models/V1CarriageCreateRequest.d.ts b/dist/esm/models/V1CarriageCreateRequest.d.ts new file mode 100644 index 0000000..ccbe397 --- /dev/null +++ b/dist/esm/models/V1CarriageCreateRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCreateRequest + */ +export interface V1CarriageCreateRequest { + /** + * `true`, если нужно создать отгрузку с прослеживаемыми товарами. + * + * @type {boolean} + * @memberof V1CarriageCreateRequest + */ + all_blr_traceable?: boolean; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1CarriageCreateRequest + */ + delivery_method_id?: number; + /** + * Дата отгрузки. По умолчанию — текущая дата. + * @type {string} + * @memberof V1CarriageCreateRequest + */ + departure_date?: string; +} +/** + * Check if a given object implements the V1CarriageCreateRequest interface. + */ +export declare function instanceOfV1CarriageCreateRequest(value: object): value is V1CarriageCreateRequest; +export declare function V1CarriageCreateRequestFromJSON(json: any): V1CarriageCreateRequest; +export declare function V1CarriageCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCreateRequest; +export declare function V1CarriageCreateRequestToJSON(value?: V1CarriageCreateRequest | null): any; diff --git a/dist/esm/models/V1CarriageCreateRequest.js b/dist/esm/models/V1CarriageCreateRequest.js new file mode 100644 index 0000000..5f454a3 --- /dev/null +++ b/dist/esm/models/V1CarriageCreateRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageCreateRequest interface. + */ +export function instanceOfV1CarriageCreateRequest(value) { + return true; +} +export function V1CarriageCreateRequestFromJSON(json) { + return V1CarriageCreateRequestFromJSONTyped(json, false); +} +export function V1CarriageCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'all_blr_traceable': json['all_blr_traceable'] == null ? undefined : json['all_blr_traceable'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +export function V1CarriageCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'all_blr_traceable': value['all_blr_traceable'], + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/esm/models/V1CarriageCreateResponse.d.ts b/dist/esm/models/V1CarriageCreateResponse.d.ts new file mode 100644 index 0000000..ccdddff --- /dev/null +++ b/dist/esm/models/V1CarriageCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCreateResponse + */ +export interface V1CarriageCreateResponse { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageCreateResponse + */ + carriage_id?: number; +} +/** + * Check if a given object implements the V1CarriageCreateResponse interface. + */ +export declare function instanceOfV1CarriageCreateResponse(value: object): value is V1CarriageCreateResponse; +export declare function V1CarriageCreateResponseFromJSON(json: any): V1CarriageCreateResponse; +export declare function V1CarriageCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCreateResponse; +export declare function V1CarriageCreateResponseToJSON(value?: V1CarriageCreateResponse | null): any; diff --git a/dist/esm/models/V1CarriageCreateResponse.js b/dist/esm/models/V1CarriageCreateResponse.js new file mode 100644 index 0000000..df76acb --- /dev/null +++ b/dist/esm/models/V1CarriageCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageCreateResponse interface. + */ +export function instanceOfV1CarriageCreateResponse(value) { + return true; +} +export function V1CarriageCreateResponseFromJSON(json) { + return V1CarriageCreateResponseFromJSONTyped(json, false); +} +export function V1CarriageCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'] == null ? undefined : json['carriage_id'], + }; +} +export function V1CarriageCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/V1CarriageDeliveryListRequest.d.ts b/dist/esm/models/V1CarriageDeliveryListRequest.d.ts new file mode 100644 index 0000000..6156fd7 --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageDeliveryListRequest + */ +export interface V1CarriageDeliveryListRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1CarriageDeliveryListRequest + */ + delivery_method_id?: number; + /** + * Дата отгрузки. По умолчанию — текущая дата. + * @type {string} + * @memberof V1CarriageDeliveryListRequest + */ + departure_date?: string; +} +/** + * Check if a given object implements the V1CarriageDeliveryListRequest interface. + */ +export declare function instanceOfV1CarriageDeliveryListRequest(value: object): value is V1CarriageDeliveryListRequest; +export declare function V1CarriageDeliveryListRequestFromJSON(json: any): V1CarriageDeliveryListRequest; +export declare function V1CarriageDeliveryListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListRequest; +export declare function V1CarriageDeliveryListRequestToJSON(value?: V1CarriageDeliveryListRequest | null): any; diff --git a/dist/esm/models/V1CarriageDeliveryListRequest.js b/dist/esm/models/V1CarriageDeliveryListRequest.js new file mode 100644 index 0000000..5af1e84 --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageDeliveryListRequest interface. + */ +export function instanceOfV1CarriageDeliveryListRequest(value) { + return true; +} +export function V1CarriageDeliveryListRequestFromJSON(json) { + return V1CarriageDeliveryListRequestFromJSONTyped(json, false); +} +export function V1CarriageDeliveryListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +export function V1CarriageDeliveryListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/esm/models/V1CarriageDeliveryListResponse.d.ts b/dist/esm/models/V1CarriageDeliveryListResponse.d.ts new file mode 100644 index 0000000..cb44079 --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CarriageDeliveryListResponseResult } from './V1CarriageDeliveryListResponseResult'; +/** + * + * @export + * @interface V1CarriageDeliveryListResponse + */ +export interface V1CarriageDeliveryListResponse { + /** + * + * @type {Array} + * @memberof V1CarriageDeliveryListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1CarriageDeliveryListResponse interface. + */ +export declare function instanceOfV1CarriageDeliveryListResponse(value: object): value is V1CarriageDeliveryListResponse; +export declare function V1CarriageDeliveryListResponseFromJSON(json: any): V1CarriageDeliveryListResponse; +export declare function V1CarriageDeliveryListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListResponse; +export declare function V1CarriageDeliveryListResponseToJSON(value?: V1CarriageDeliveryListResponse | null): any; diff --git a/dist/esm/models/V1CarriageDeliveryListResponse.js b/dist/esm/models/V1CarriageDeliveryListResponse.js new file mode 100644 index 0000000..1db57fc --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CarriageDeliveryListResponseResultFromJSON, V1CarriageDeliveryListResponseResultToJSON, } from './V1CarriageDeliveryListResponseResult'; +/** + * Check if a given object implements the V1CarriageDeliveryListResponse interface. + */ +export function instanceOfV1CarriageDeliveryListResponse(value) { + return true; +} +export function V1CarriageDeliveryListResponseFromJSON(json) { + return V1CarriageDeliveryListResponseFromJSONTyped(json, false); +} +export function V1CarriageDeliveryListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1CarriageDeliveryListResponseResultFromJSON)), + }; +} +export function V1CarriageDeliveryListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1CarriageDeliveryListResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/V1CarriageDeliveryListResponseResult.d.ts b/dist/esm/models/V1CarriageDeliveryListResponseResult.d.ts new file mode 100644 index 0000000..6cad9b2 --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListResponseResult.d.ts @@ -0,0 +1,260 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CarriageDeliveryListResponseResultCarriages } from './V1CarriageDeliveryListResponseResultCarriages'; +import type { V1CarriageDeliveryListResponseResultErrors } from './V1CarriageDeliveryListResponseResultErrors'; +/** + * + * @export + * @interface V1CarriageDeliveryListResponseResult + */ +export interface V1CarriageDeliveryListResponseResult { + /** + * `true`, если доступен лист подбора. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + assembly_list_availability?: boolean; + /** + * `true`, если можно создать ещё одну перевозку. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + can_create_another_carriage?: boolean; + /** + * Количество отправлений в перевозке. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + carriage_postings_count?: number; + /** + * Количество квантов в перевозке. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + carriage_quantum_count?: number; + /** + * Список перевозок. + * @type {Array} + * @memberof V1CarriageDeliveryListResponseResult + */ + carriages?: Array; + /** + * Время начала сборки и часовой пояс времени склада. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + cut_in?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + delivery_method_id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + delivery_method_name?: string; + /** + * Статус метода доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + delivery_method_status?: string; + /** + * Дата отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + departure_date?: string; + /** + * Адрес точки отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + dropoff_address?: string; + /** + * Статус возможности смены точки отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + dropoff_change_availability?: string; + /** + * Идентификатор точки отгрузки. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + dropoff_point_id?: number; + /** + * Способ отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + dropoff_point_type?: string; + /** + * Массив ошибок, которые возникли при обработке запроса. + * @type {Array} + * @memberof V1CarriageDeliveryListResponseResult + */ + errors?: Array; + /** + * `true`, если точка отгрузки изменилась. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + first_mile_changing?: boolean; + /** + * Тип первой мили. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + first_mile_type?: string; + /** + * Признак доверительной приёмки. `true`, если доверительная приёмка включена на складе. + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + has_entrusted_acceptance?: boolean; + /** + * Тип интеграции со службой доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + integration_type?: string; + /** + * `true`, если отгрузка с предсортировкой. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + is_presort?: boolean; + /** + * `true`, если склад работает по схеме rFBS. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + is_rfbs?: boolean; + /** + * Рекомендуемое местное время отгрузки в пункт приёма заказов. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + recommended_time_local?: string; + /** + * Смещение часового пояса рекомендуемого времени отгрузки от UTC-0 в минутах. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + recommended_time_utc_offset_in_minutes?: number; + /** + * Дата и время, до которых нужно собрать отправление. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + cutoff_at?: string; + /** + * Количество «обязательных» собранных отправлений. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + mandatory_packaged_count?: number; + /** + * Количество «обязательных» собранных квантов. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + mandatory_packaged_quantum_count?: number; + /** + * Количество отправлений, которые нужно собрать. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + mandatory_postings_count?: number; + /** + * Количество квантов, которые нужно собрать. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + mandatory_quantum_count?: number; + /** + * Количество собранных «необязательных» отправлений. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + optional_packaged_count?: number; + /** + * Количество отправлений, которые могут попасть в следующую перевозку. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + postings_for_another_carriage_count?: number; + /** + * Количество квантов, которые могут попасть в следующую перевозку. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + quantum_for_another_carriage_count?: number; + /** + * Начало таймслота в точке отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + timeslot_from?: string; + /** + * Окончание таймслота в точке отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + timeslot_to?: string; + /** + * Ссылка на иконку службы доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + tpl_provider_icon_url?: string; + /** + * Название службы доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + tpl_provider_name?: string; + /** + * Город склада. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + warehouse_city?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResult interface. + */ +export declare function instanceOfV1CarriageDeliveryListResponseResult(value: object): value is V1CarriageDeliveryListResponseResult; +export declare function V1CarriageDeliveryListResponseResultFromJSON(json: any): V1CarriageDeliveryListResponseResult; +export declare function V1CarriageDeliveryListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListResponseResult; +export declare function V1CarriageDeliveryListResponseResultToJSON(value?: V1CarriageDeliveryListResponseResult | null): any; diff --git a/dist/esm/models/V1CarriageDeliveryListResponseResult.js b/dist/esm/models/V1CarriageDeliveryListResponseResult.js new file mode 100644 index 0000000..47ecbf9 --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListResponseResult.js @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CarriageDeliveryListResponseResultCarriagesFromJSON, V1CarriageDeliveryListResponseResultCarriagesToJSON, } from './V1CarriageDeliveryListResponseResultCarriages'; +import { V1CarriageDeliveryListResponseResultErrorsFromJSON, V1CarriageDeliveryListResponseResultErrorsToJSON, } from './V1CarriageDeliveryListResponseResultErrors'; +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResult interface. + */ +export function instanceOfV1CarriageDeliveryListResponseResult(value) { + return true; +} +export function V1CarriageDeliveryListResponseResultFromJSON(json) { + return V1CarriageDeliveryListResponseResultFromJSONTyped(json, false); +} +export function V1CarriageDeliveryListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'assembly_list_availability': json['assembly_list_availability'] == null ? undefined : json['assembly_list_availability'], + 'can_create_another_carriage': json['can_create_another_carriage'] == null ? undefined : json['can_create_another_carriage'], + 'carriage_postings_count': json['carriage_postings_count'] == null ? undefined : json['carriage_postings_count'], + 'carriage_quantum_count': json['carriage_quantum_count'] == null ? undefined : json['carriage_quantum_count'], + 'carriages': json['carriages'] == null ? undefined : (json['carriages'].map(V1CarriageDeliveryListResponseResultCarriagesFromJSON)), + 'cut_in': json['cut_in'] == null ? undefined : json['cut_in'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'delivery_method_name': json['delivery_method_name'] == null ? undefined : json['delivery_method_name'], + 'delivery_method_status': json['delivery_method_status'] == null ? undefined : json['delivery_method_status'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + 'dropoff_address': json['dropoff_address'] == null ? undefined : json['dropoff_address'], + 'dropoff_change_availability': json['dropoff_change_availability'] == null ? undefined : json['dropoff_change_availability'], + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'dropoff_point_type': json['dropoff_point_type'] == null ? undefined : json['dropoff_point_type'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1CarriageDeliveryListResponseResultErrorsFromJSON)), + 'first_mile_changing': json['first_mile_changing'] == null ? undefined : json['first_mile_changing'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'is_presort': json['is_presort'] == null ? undefined : json['is_presort'], + 'is_rfbs': json['is_rfbs'] == null ? undefined : json['is_rfbs'], + 'recommended_time_local': json['recommended_time_local'] == null ? undefined : json['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': json['recommended_time_utc_offset_in_minutes'] == null ? undefined : json['recommended_time_utc_offset_in_minutes'], + 'cutoff_at': json['cutoff_at'] == null ? undefined : json['cutoff_at'], + 'mandatory_packaged_count': json['mandatory_packaged_count'] == null ? undefined : json['mandatory_packaged_count'], + 'mandatory_packaged_quantum_count': json['mandatory_packaged_quantum_count'] == null ? undefined : json['mandatory_packaged_quantum_count'], + 'mandatory_postings_count': json['mandatory_postings_count'] == null ? undefined : json['mandatory_postings_count'], + 'mandatory_quantum_count': json['mandatory_quantum_count'] == null ? undefined : json['mandatory_quantum_count'], + 'optional_packaged_count': json['optional_packaged_count'] == null ? undefined : json['optional_packaged_count'], + 'postings_for_another_carriage_count': json['postings_for_another_carriage_count'] == null ? undefined : json['postings_for_another_carriage_count'], + 'quantum_for_another_carriage_count': json['quantum_for_another_carriage_count'] == null ? undefined : json['quantum_for_another_carriage_count'], + 'timeslot_from': json['timeslot_from'] == null ? undefined : json['timeslot_from'], + 'timeslot_to': json['timeslot_to'] == null ? undefined : json['timeslot_to'], + 'tpl_provider_icon_url': json['tpl_provider_icon_url'] == null ? undefined : json['tpl_provider_icon_url'], + 'tpl_provider_name': json['tpl_provider_name'] == null ? undefined : json['tpl_provider_name'], + 'warehouse_city': json['warehouse_city'] == null ? undefined : json['warehouse_city'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function V1CarriageDeliveryListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'assembly_list_availability': value['assembly_list_availability'], + 'can_create_another_carriage': value['can_create_another_carriage'], + 'carriage_postings_count': value['carriage_postings_count'], + 'carriage_quantum_count': value['carriage_quantum_count'], + 'carriages': value['carriages'] == null ? undefined : (value['carriages'].map(V1CarriageDeliveryListResponseResultCarriagesToJSON)), + 'cut_in': value['cut_in'], + 'delivery_method_id': value['delivery_method_id'], + 'delivery_method_name': value['delivery_method_name'], + 'delivery_method_status': value['delivery_method_status'], + 'departure_date': value['departure_date'], + 'dropoff_address': value['dropoff_address'], + 'dropoff_change_availability': value['dropoff_change_availability'], + 'dropoff_point_id': value['dropoff_point_id'], + 'dropoff_point_type': value['dropoff_point_type'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1CarriageDeliveryListResponseResultErrorsToJSON)), + 'first_mile_changing': value['first_mile_changing'], + 'first_mile_type': value['first_mile_type'], + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'integration_type': value['integration_type'], + 'is_presort': value['is_presort'], + 'is_rfbs': value['is_rfbs'], + 'recommended_time_local': value['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': value['recommended_time_utc_offset_in_minutes'], + 'cutoff_at': value['cutoff_at'], + 'mandatory_packaged_count': value['mandatory_packaged_count'], + 'mandatory_packaged_quantum_count': value['mandatory_packaged_quantum_count'], + 'mandatory_postings_count': value['mandatory_postings_count'], + 'mandatory_quantum_count': value['mandatory_quantum_count'], + 'optional_packaged_count': value['optional_packaged_count'], + 'postings_for_another_carriage_count': value['postings_for_another_carriage_count'], + 'quantum_for_another_carriage_count': value['quantum_for_another_carriage_count'], + 'timeslot_from': value['timeslot_from'], + 'timeslot_to': value['timeslot_to'], + 'tpl_provider_icon_url': value['tpl_provider_icon_url'], + 'tpl_provider_name': value['tpl_provider_name'], + 'warehouse_city': value['warehouse_city'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/V1CarriageDeliveryListResponseResultCarriages.d.ts b/dist/esm/models/V1CarriageDeliveryListResponseResultCarriages.d.ts new file mode 100644 index 0000000..6572b93 --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListResponseResultCarriages.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageDeliveryListResponseResultCarriages + */ +export interface V1CarriageDeliveryListResponseResultCarriages { + /** + * Идентификатор перевозки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultCarriages + */ + id?: string; + /** + * Количество отправлений в перевозке. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResultCarriages + */ + postings_count?: number; + /** + * Количество квантов в перевозке. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResultCarriages + */ + quantum_count?: number; + /** + * Статус перевозки для запрашиваемых метода и даты. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultCarriages + */ + status?: string; +} +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResultCarriages interface. + */ +export declare function instanceOfV1CarriageDeliveryListResponseResultCarriages(value: object): value is V1CarriageDeliveryListResponseResultCarriages; +export declare function V1CarriageDeliveryListResponseResultCarriagesFromJSON(json: any): V1CarriageDeliveryListResponseResultCarriages; +export declare function V1CarriageDeliveryListResponseResultCarriagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListResponseResultCarriages; +export declare function V1CarriageDeliveryListResponseResultCarriagesToJSON(value?: V1CarriageDeliveryListResponseResultCarriages | null): any; diff --git a/dist/esm/models/V1CarriageDeliveryListResponseResultCarriages.js b/dist/esm/models/V1CarriageDeliveryListResponseResultCarriages.js new file mode 100644 index 0000000..df85786 --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListResponseResultCarriages.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResultCarriages interface. + */ +export function instanceOfV1CarriageDeliveryListResponseResultCarriages(value) { + return true; +} +export function V1CarriageDeliveryListResponseResultCarriagesFromJSON(json) { + return V1CarriageDeliveryListResponseResultCarriagesFromJSONTyped(json, false); +} +export function V1CarriageDeliveryListResponseResultCarriagesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'postings_count': json['postings_count'] == null ? undefined : json['postings_count'], + 'quantum_count': json['quantum_count'] == null ? undefined : json['quantum_count'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V1CarriageDeliveryListResponseResultCarriagesToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'postings_count': value['postings_count'], + 'quantum_count': value['quantum_count'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V1CarriageDeliveryListResponseResultErrors.d.ts b/dist/esm/models/V1CarriageDeliveryListResponseResultErrors.d.ts new file mode 100644 index 0000000..7f01957 --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListResponseResultErrors.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageDeliveryListResponseResultErrors + */ +export interface V1CarriageDeliveryListResponseResultErrors { + /** + * Код ошибки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultErrors + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultErrors + */ + description?: string; + /** + * Статус ошибки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultErrors + */ + status?: string; +} +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResultErrors interface. + */ +export declare function instanceOfV1CarriageDeliveryListResponseResultErrors(value: object): value is V1CarriageDeliveryListResponseResultErrors; +export declare function V1CarriageDeliveryListResponseResultErrorsFromJSON(json: any): V1CarriageDeliveryListResponseResultErrors; +export declare function V1CarriageDeliveryListResponseResultErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListResponseResultErrors; +export declare function V1CarriageDeliveryListResponseResultErrorsToJSON(value?: V1CarriageDeliveryListResponseResultErrors | null): any; diff --git a/dist/esm/models/V1CarriageDeliveryListResponseResultErrors.js b/dist/esm/models/V1CarriageDeliveryListResponseResultErrors.js new file mode 100644 index 0000000..eb002bb --- /dev/null +++ b/dist/esm/models/V1CarriageDeliveryListResponseResultErrors.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResultErrors interface. + */ +export function instanceOfV1CarriageDeliveryListResponseResultErrors(value) { + return true; +} +export function V1CarriageDeliveryListResponseResultErrorsFromJSON(json) { + return V1CarriageDeliveryListResponseResultErrorsFromJSONTyped(json, false); +} +export function V1CarriageDeliveryListResponseResultErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'description': json['description'] == null ? undefined : json['description'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V1CarriageDeliveryListResponseResultErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'description': value['description'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V1CarriageEttnStatusRequest.d.ts b/dist/esm/models/V1CarriageEttnStatusRequest.d.ts new file mode 100644 index 0000000..a6948d4 --- /dev/null +++ b/dist/esm/models/V1CarriageEttnStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageEttnStatusRequest + */ +export interface V1CarriageEttnStatusRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageEttnStatusRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the V1CarriageEttnStatusRequest interface. + */ +export declare function instanceOfV1CarriageEttnStatusRequest(value: object): value is V1CarriageEttnStatusRequest; +export declare function V1CarriageEttnStatusRequestFromJSON(json: any): V1CarriageEttnStatusRequest; +export declare function V1CarriageEttnStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageEttnStatusRequest; +export declare function V1CarriageEttnStatusRequestToJSON(value?: V1CarriageEttnStatusRequest | null): any; diff --git a/dist/esm/models/V1CarriageEttnStatusRequest.js b/dist/esm/models/V1CarriageEttnStatusRequest.js new file mode 100644 index 0000000..a44870c --- /dev/null +++ b/dist/esm/models/V1CarriageEttnStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CarriageEttnStatusRequest interface. + */ +export function instanceOfV1CarriageEttnStatusRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +export function V1CarriageEttnStatusRequestFromJSON(json) { + return V1CarriageEttnStatusRequestFromJSONTyped(json, false); +} +export function V1CarriageEttnStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +export function V1CarriageEttnStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/esm/models/V1CarriageEttnStatusResponse.d.ts b/dist/esm/models/V1CarriageEttnStatusResponse.d.ts new file mode 100644 index 0000000..24ab9ef --- /dev/null +++ b/dist/esm/models/V1CarriageEttnStatusResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageEttnStatusResponse + */ +export interface V1CarriageEttnStatusResponse { + /** + * Ошибки проверки электронной ТТН на прослеживаемой отгрузке. + * @type {Array} + * @memberof V1CarriageEttnStatusResponse + */ + errors?: Array; + /** + * Статус проверки электронной ТТН на прослеживаемой отгрузке: + * - `NOT_UPLOADED` — не загружена; + * - `PROCESSING` — в процессе проверки; + * - `SUCCESS` — проверена; + * - `FAILED` — ошибка. + * + * @type {string} + * @memberof V1CarriageEttnStatusResponse + */ + status?: V1CarriageEttnStatusResponseStatusEnum; +} +/** + * @export + */ +export declare const V1CarriageEttnStatusResponseStatusEnum: { + readonly NOT_UPLOADED: "NOT_UPLOADED"; + readonly PROCESSING: "PROCESSING"; + readonly SUCCESS: "SUCCESS"; + readonly FAILED: "FAILED"; +}; +export type V1CarriageEttnStatusResponseStatusEnum = typeof V1CarriageEttnStatusResponseStatusEnum[keyof typeof V1CarriageEttnStatusResponseStatusEnum]; +/** + * Check if a given object implements the V1CarriageEttnStatusResponse interface. + */ +export declare function instanceOfV1CarriageEttnStatusResponse(value: object): value is V1CarriageEttnStatusResponse; +export declare function V1CarriageEttnStatusResponseFromJSON(json: any): V1CarriageEttnStatusResponse; +export declare function V1CarriageEttnStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageEttnStatusResponse; +export declare function V1CarriageEttnStatusResponseToJSON(value?: V1CarriageEttnStatusResponse | null): any; diff --git a/dist/esm/models/V1CarriageEttnStatusResponse.js b/dist/esm/models/V1CarriageEttnStatusResponse.js new file mode 100644 index 0000000..db79f1e --- /dev/null +++ b/dist/esm/models/V1CarriageEttnStatusResponse.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V1CarriageEttnStatusResponseStatusEnum = { + NOT_UPLOADED: 'NOT_UPLOADED', + PROCESSING: 'PROCESSING', + SUCCESS: 'SUCCESS', + FAILED: 'FAILED' +}; +/** + * Check if a given object implements the V1CarriageEttnStatusResponse interface. + */ +export function instanceOfV1CarriageEttnStatusResponse(value) { + return true; +} +export function V1CarriageEttnStatusResponseFromJSON(json) { + return V1CarriageEttnStatusResponseFromJSONTyped(json, false); +} +export function V1CarriageEttnStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : json['errors'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V1CarriageEttnStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V1Certificate.d.ts b/dist/esm/models/V1Certificate.d.ts new file mode 100644 index 0000000..32c9d02 --- /dev/null +++ b/dist/esm/models/V1Certificate.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сертификате. + * @export + * @interface V1Certificate + */ +export interface V1Certificate { + /** + * Идентификатор. + * @type {number} + * @memberof V1Certificate + */ + certificate_id?: number; + /** + * Номер. + * @type {string} + * @memberof V1Certificate + */ + certificate_number?: string; + /** + * Название. + * @type {string} + * @memberof V1Certificate + */ + certificate_name?: string; + /** + * Тип. + * @type {string} + * @memberof V1Certificate + */ + type_code?: string; + /** + * Статус. + * @type {string} + * @memberof V1Certificate + */ + status_code?: string; + /** + * Тип соответствия требованиям. + * @type {string} + * @memberof V1Certificate + */ + accordance_type_code?: string; + /** + * Причина отклонения сертификата. + * @type {string} + * @memberof V1Certificate + */ + rejection_reason_code?: string; + /** + * Комментарий модератора. + * @type {string} + * @memberof V1Certificate + */ + verification_comment?: string; + /** + * Дата создания. + * @type {string} + * @memberof V1Certificate + */ + issue_date?: string; + /** + * Дата окончания действия. + * @type {string} + * @memberof V1Certificate + */ + expire_date?: string; + /** + * Количество товаров, привязанных к сертификату. + * @type {number} + * @memberof V1Certificate + */ + products_count?: number; +} +/** + * Check if a given object implements the V1Certificate interface. + */ +export declare function instanceOfV1Certificate(value: object): value is V1Certificate; +export declare function V1CertificateFromJSON(json: any): V1Certificate; +export declare function V1CertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Certificate; +export declare function V1CertificateToJSON(value?: V1Certificate | null): any; diff --git a/dist/esm/models/V1Certificate.js b/dist/esm/models/V1Certificate.js new file mode 100644 index 0000000..9f91379 --- /dev/null +++ b/dist/esm/models/V1Certificate.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1Certificate interface. + */ +export function instanceOfV1Certificate(value) { + return true; +} +export function V1CertificateFromJSON(json) { + return V1CertificateFromJSONTyped(json, false); +} +export function V1CertificateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'] == null ? undefined : json['certificate_id'], + 'certificate_number': json['certificate_number'] == null ? undefined : json['certificate_number'], + 'certificate_name': json['certificate_name'] == null ? undefined : json['certificate_name'], + 'type_code': json['type_code'] == null ? undefined : json['type_code'], + 'status_code': json['status_code'] == null ? undefined : json['status_code'], + 'accordance_type_code': json['accordance_type_code'] == null ? undefined : json['accordance_type_code'], + 'rejection_reason_code': json['rejection_reason_code'] == null ? undefined : json['rejection_reason_code'], + 'verification_comment': json['verification_comment'] == null ? undefined : json['verification_comment'], + 'issue_date': json['issue_date'] == null ? undefined : json['issue_date'], + 'expire_date': json['expire_date'] == null ? undefined : json['expire_date'], + 'products_count': json['products_count'] == null ? undefined : json['products_count'], + }; +} +export function V1CertificateToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'certificate_number': value['certificate_number'], + 'certificate_name': value['certificate_name'], + 'type_code': value['type_code'], + 'status_code': value['status_code'], + 'accordance_type_code': value['accordance_type_code'], + 'rejection_reason_code': value['rejection_reason_code'], + 'verification_comment': value['verification_comment'], + 'issue_date': value['issue_date'], + 'expire_date': value['expire_date'], + 'products_count': value['products_count'], + }; +} diff --git a/dist/esm/models/V1ClusterType.d.ts b/dist/esm/models/V1ClusterType.d.ts new file mode 100644 index 0000000..5072141 --- /dev/null +++ b/dist/esm/models/V1ClusterType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип кластера: + * - `CLUSTER_TYPE_OZON` — кластер в России, + * - `CLUSTER_TYPE_CIS` — кластер в СНГ. + * + * @export + */ +export declare const V1ClusterType: { + readonly OZON: "CLUSTER_TYPE_OZON"; + readonly CIS: "CLUSTER_TYPE_CIS"; +}; +export type V1ClusterType = typeof V1ClusterType[keyof typeof V1ClusterType]; +export declare function instanceOfV1ClusterType(value: any): boolean; +export declare function V1ClusterTypeFromJSON(json: any): V1ClusterType; +export declare function V1ClusterTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ClusterType; +export declare function V1ClusterTypeToJSON(value?: V1ClusterType | null): any; diff --git a/dist/esm/models/V1ClusterType.js b/dist/esm/models/V1ClusterType.js new file mode 100644 index 0000000..47b438d --- /dev/null +++ b/dist/esm/models/V1ClusterType.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип кластера: + * - `CLUSTER_TYPE_OZON` — кластер в России, + * - `CLUSTER_TYPE_CIS` — кластер в СНГ. + * + * @export + */ +export const V1ClusterType = { + OZON: 'CLUSTER_TYPE_OZON', + CIS: 'CLUSTER_TYPE_CIS' +}; +export function instanceOfV1ClusterType(value) { + for (const key in V1ClusterType) { + if (Object.prototype.hasOwnProperty.call(V1ClusterType, key)) { + if (V1ClusterType[key] === value) { + return true; + } + } + } + return false; +} +export function V1ClusterTypeFromJSON(json) { + return V1ClusterTypeFromJSONTyped(json, false); +} +export function V1ClusterTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1ClusterTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CommentCreateRequest.d.ts b/dist/esm/models/V1CommentCreateRequest.d.ts new file mode 100644 index 0000000..196ccc7 --- /dev/null +++ b/dist/esm/models/V1CommentCreateRequest.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CommentCreateRequest + */ +export interface V1CommentCreateRequest { + /** + * Обновление статуса у отзыва: + * - `true` — статус изменится на `Processed`. + * - `false` — статус не изменится. + * + * @type {boolean} + * @memberof V1CommentCreateRequest + */ + mark_review_as_processed?: boolean; + /** + * Идентификатор родительского комментария, на который вы отвечаете. + * @type {string} + * @memberof V1CommentCreateRequest + */ + parent_comment_id?: string; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof V1CommentCreateRequest + */ + review_id: string; + /** + * Текст комментария. + * @type {string} + * @memberof V1CommentCreateRequest + */ + text: string; +} +/** + * Check if a given object implements the V1CommentCreateRequest interface. + */ +export declare function instanceOfV1CommentCreateRequest(value: object): value is V1CommentCreateRequest; +export declare function V1CommentCreateRequestFromJSON(json: any): V1CommentCreateRequest; +export declare function V1CommentCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentCreateRequest; +export declare function V1CommentCreateRequestToJSON(value?: V1CommentCreateRequest | null): any; diff --git a/dist/esm/models/V1CommentCreateRequest.js b/dist/esm/models/V1CommentCreateRequest.js new file mode 100644 index 0000000..36ff539 --- /dev/null +++ b/dist/esm/models/V1CommentCreateRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CommentCreateRequest interface. + */ +export function instanceOfV1CommentCreateRequest(value) { + if (!('review_id' in value) || value['review_id'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + return true; +} +export function V1CommentCreateRequestFromJSON(json) { + return V1CommentCreateRequestFromJSONTyped(json, false); +} +export function V1CommentCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mark_review_as_processed': json['mark_review_as_processed'] == null ? undefined : json['mark_review_as_processed'], + 'parent_comment_id': json['parent_comment_id'] == null ? undefined : json['parent_comment_id'], + 'review_id': json['review_id'], + 'text': json['text'], + }; +} +export function V1CommentCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'mark_review_as_processed': value['mark_review_as_processed'], + 'parent_comment_id': value['parent_comment_id'], + 'review_id': value['review_id'], + 'text': value['text'], + }; +} diff --git a/dist/esm/models/V1CommentCreateResponse.d.ts b/dist/esm/models/V1CommentCreateResponse.d.ts new file mode 100644 index 0000000..7595c6a --- /dev/null +++ b/dist/esm/models/V1CommentCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CommentCreateResponse + */ +export interface V1CommentCreateResponse { + /** + * Идентификатор комментария. + * @type {string} + * @memberof V1CommentCreateResponse + */ + comment_id?: string; +} +/** + * Check if a given object implements the V1CommentCreateResponse interface. + */ +export declare function instanceOfV1CommentCreateResponse(value: object): value is V1CommentCreateResponse; +export declare function V1CommentCreateResponseFromJSON(json: any): V1CommentCreateResponse; +export declare function V1CommentCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentCreateResponse; +export declare function V1CommentCreateResponseToJSON(value?: V1CommentCreateResponse | null): any; diff --git a/dist/esm/models/V1CommentCreateResponse.js b/dist/esm/models/V1CommentCreateResponse.js new file mode 100644 index 0000000..c0f6356 --- /dev/null +++ b/dist/esm/models/V1CommentCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CommentCreateResponse interface. + */ +export function instanceOfV1CommentCreateResponse(value) { + return true; +} +export function V1CommentCreateResponseFromJSON(json) { + return V1CommentCreateResponseFromJSONTyped(json, false); +} +export function V1CommentCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment_id': json['comment_id'] == null ? undefined : json['comment_id'], + }; +} +export function V1CommentCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment_id': value['comment_id'], + }; +} diff --git a/dist/esm/models/V1CommentDeleteRequest.d.ts b/dist/esm/models/V1CommentDeleteRequest.d.ts new file mode 100644 index 0000000..e83bbce --- /dev/null +++ b/dist/esm/models/V1CommentDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CommentDeleteRequest + */ +export interface V1CommentDeleteRequest { + /** + * Идентификатор комментария. + * @type {string} + * @memberof V1CommentDeleteRequest + */ + comment_id: string; +} +/** + * Check if a given object implements the V1CommentDeleteRequest interface. + */ +export declare function instanceOfV1CommentDeleteRequest(value: object): value is V1CommentDeleteRequest; +export declare function V1CommentDeleteRequestFromJSON(json: any): V1CommentDeleteRequest; +export declare function V1CommentDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentDeleteRequest; +export declare function V1CommentDeleteRequestToJSON(value?: V1CommentDeleteRequest | null): any; diff --git a/dist/esm/models/V1CommentDeleteRequest.js b/dist/esm/models/V1CommentDeleteRequest.js new file mode 100644 index 0000000..9e649a1 --- /dev/null +++ b/dist/esm/models/V1CommentDeleteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CommentDeleteRequest interface. + */ +export function instanceOfV1CommentDeleteRequest(value) { + if (!('comment_id' in value) || value['comment_id'] === undefined) + return false; + return true; +} +export function V1CommentDeleteRequestFromJSON(json) { + return V1CommentDeleteRequestFromJSONTyped(json, false); +} +export function V1CommentDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment_id': json['comment_id'], + }; +} +export function V1CommentDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment_id': value['comment_id'], + }; +} diff --git a/dist/esm/models/V1CommentListRequest.d.ts b/dist/esm/models/V1CommentListRequest.d.ts new file mode 100644 index 0000000..beb2c4f --- /dev/null +++ b/dist/esm/models/V1CommentListRequest.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV1CommentListRequestFilter } from './ReviewV1CommentListRequestFilter'; +import type { V1CommentSort } from './V1CommentSort'; +/** + * + * @export + * @interface V1CommentListRequest + */ +export interface V1CommentListRequest { + /** + * + * @type {ReviewV1CommentListRequestFilter} + * @memberof V1CommentListRequest + */ + filter?: ReviewV1CommentListRequestFilter; + /** + * Ограничение значений в ответе. + * Минимум — 20. Максимум — 100. + * + * @type {number} + * @memberof V1CommentListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено с начала списка в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof V1CommentListRequest + */ + offset?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof V1CommentListRequest + */ + review_id?: string; + /** + * + * @type {V1CommentSort} + * @memberof V1CommentListRequest + */ + sort_dir?: V1CommentSort; +} +/** + * Check if a given object implements the V1CommentListRequest interface. + */ +export declare function instanceOfV1CommentListRequest(value: object): value is V1CommentListRequest; +export declare function V1CommentListRequestFromJSON(json: any): V1CommentListRequest; +export declare function V1CommentListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentListRequest; +export declare function V1CommentListRequestToJSON(value?: V1CommentListRequest | null): any; diff --git a/dist/esm/models/V1CommentListRequest.js b/dist/esm/models/V1CommentListRequest.js new file mode 100644 index 0000000..dc01bbe --- /dev/null +++ b/dist/esm/models/V1CommentListRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewV1CommentListRequestFilterFromJSON, ReviewV1CommentListRequestFilterToJSON, } from './ReviewV1CommentListRequestFilter'; +import { V1CommentSortFromJSON, V1CommentSortToJSON, } from './V1CommentSort'; +/** + * Check if a given object implements the V1CommentListRequest interface. + */ +export function instanceOfV1CommentListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1CommentListRequestFromJSON(json) { + return V1CommentListRequestFromJSONTyped(json, false); +} +export function V1CommentListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : ReviewV1CommentListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'review_id': json['review_id'] == null ? undefined : json['review_id'], + 'sort_dir': json['sort_dir'] == null ? undefined : V1CommentSortFromJSON(json['sort_dir']), + }; +} +export function V1CommentListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': ReviewV1CommentListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'review_id': value['review_id'], + 'sort_dir': V1CommentSortToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/V1CommentListResponse.d.ts b/dist/esm/models/V1CommentListResponse.d.ts new file mode 100644 index 0000000..5d906f3 --- /dev/null +++ b/dist/esm/models/V1CommentListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CommentListResponseComment } from './CommentListResponseComment'; +/** + * + * @export + * @interface V1CommentListResponse + */ +export interface V1CommentListResponse { + /** + * Информация о комментарии. + * @type {Array} + * @memberof V1CommentListResponse + */ + comments?: Array; + /** + * Количество элементов в выдаче. + * @type {number} + * @memberof V1CommentListResponse + */ + offset?: number; +} +/** + * Check if a given object implements the V1CommentListResponse interface. + */ +export declare function instanceOfV1CommentListResponse(value: object): value is V1CommentListResponse; +export declare function V1CommentListResponseFromJSON(json: any): V1CommentListResponse; +export declare function V1CommentListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentListResponse; +export declare function V1CommentListResponseToJSON(value?: V1CommentListResponse | null): any; diff --git a/dist/esm/models/V1CommentListResponse.js b/dist/esm/models/V1CommentListResponse.js new file mode 100644 index 0000000..2a7cb54 --- /dev/null +++ b/dist/esm/models/V1CommentListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CommentListResponseCommentFromJSON, CommentListResponseCommentToJSON, } from './CommentListResponseComment'; +/** + * Check if a given object implements the V1CommentListResponse interface. + */ +export function instanceOfV1CommentListResponse(value) { + return true; +} +export function V1CommentListResponseFromJSON(json) { + return V1CommentListResponseFromJSONTyped(json, false); +} +export function V1CommentListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments': json['comments'] == null ? undefined : (json['comments'].map(CommentListResponseCommentFromJSON)), + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function V1CommentListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments': value['comments'] == null ? undefined : (value['comments'].map(CommentListResponseCommentToJSON)), + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/V1CommentSort.d.ts b/dist/esm/models/V1CommentSort.d.ts new file mode 100644 index 0000000..ebca5ca --- /dev/null +++ b/dist/esm/models/V1CommentSort.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export declare const V1CommentSort: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type V1CommentSort = typeof V1CommentSort[keyof typeof V1CommentSort]; +export declare function instanceOfV1CommentSort(value: any): boolean; +export declare function V1CommentSortFromJSON(json: any): V1CommentSort; +export declare function V1CommentSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentSort; +export declare function V1CommentSortToJSON(value?: V1CommentSort | null): any; diff --git a/dist/esm/models/V1CommentSort.js b/dist/esm/models/V1CommentSort.js new file mode 100644 index 0000000..ae76e18 --- /dev/null +++ b/dist/esm/models/V1CommentSort.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export const V1CommentSort = { + ASC: 'ASC', + DESC: 'DESC' +}; +export function instanceOfV1CommentSort(value) { + for (const key in V1CommentSort) { + if (Object.prototype.hasOwnProperty.call(V1CommentSort, key)) { + if (V1CommentSort[key] === value) { + return true; + } + } + } + return false; +} +export function V1CommentSortFromJSON(json) { + return V1CommentSortFromJSONTyped(json, false); +} +export function V1CommentSortFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CommentSortToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1Competitor.d.ts b/dist/esm/models/V1Competitor.d.ts new file mode 100644 index 0000000..0c95af2 --- /dev/null +++ b/dist/esm/models/V1Competitor.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1Competitor + */ +export interface V1Competitor { + /** + * Коэффициент, на который будет умножаться минимальная цена среди конкурентов. Допустимый диапазон — от `0.5` до `1.2`. + * @type {number} + * @memberof V1Competitor + */ + coefficient: number; + /** + * Идентификатор конкурента. + * @type {number} + * @memberof V1Competitor + */ + competitor_id: number; +} +/** + * Check if a given object implements the V1Competitor interface. + */ +export declare function instanceOfV1Competitor(value: object): value is V1Competitor; +export declare function V1CompetitorFromJSON(json: any): V1Competitor; +export declare function V1CompetitorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Competitor; +export declare function V1CompetitorToJSON(value?: V1Competitor | null): any; diff --git a/dist/esm/models/V1Competitor.js b/dist/esm/models/V1Competitor.js new file mode 100644 index 0000000..e778020 --- /dev/null +++ b/dist/esm/models/V1Competitor.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1Competitor interface. + */ +export function instanceOfV1Competitor(value) { + if (!('coefficient' in value) || value['coefficient'] === undefined) + return false; + if (!('competitor_id' in value) || value['competitor_id'] === undefined) + return false; + return true; +} +export function V1CompetitorFromJSON(json) { + return V1CompetitorFromJSONTyped(json, false); +} +export function V1CompetitorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coefficient': json['coefficient'], + 'competitor_id': json['competitor_id'], + }; +} +export function V1CompetitorToJSON(value) { + if (value == null) { + return value; + } + return { + 'coefficient': value['coefficient'], + 'competitor_id': value['competitor_id'], + }; +} diff --git a/dist/esm/models/V1CreateDocumentB2BSalesJSONReportRequest.d.ts b/dist/esm/models/V1CreateDocumentB2BSalesJSONReportRequest.d.ts new file mode 100644 index 0000000..31e2232 --- /dev/null +++ b/dist/esm/models/V1CreateDocumentB2BSalesJSONReportRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateDocumentB2BSalesJSONReportRequest + */ +export interface V1CreateDocumentB2BSalesJSONReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. Отчёт доступен до января 2019 включительно. + * @type {string} + * @memberof V1CreateDocumentB2BSalesJSONReportRequest + */ + date: string; +} +/** + * Check if a given object implements the V1CreateDocumentB2BSalesJSONReportRequest interface. + */ +export declare function instanceOfV1CreateDocumentB2BSalesJSONReportRequest(value: object): value is V1CreateDocumentB2BSalesJSONReportRequest; +export declare function V1CreateDocumentB2BSalesJSONReportRequestFromJSON(json: any): V1CreateDocumentB2BSalesJSONReportRequest; +export declare function V1CreateDocumentB2BSalesJSONReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateDocumentB2BSalesJSONReportRequest; +export declare function V1CreateDocumentB2BSalesJSONReportRequestToJSON(value?: V1CreateDocumentB2BSalesJSONReportRequest | null): any; diff --git a/dist/esm/models/V1CreateDocumentB2BSalesJSONReportRequest.js b/dist/esm/models/V1CreateDocumentB2BSalesJSONReportRequest.js new file mode 100644 index 0000000..608d21b --- /dev/null +++ b/dist/esm/models/V1CreateDocumentB2BSalesJSONReportRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreateDocumentB2BSalesJSONReportRequest interface. + */ +export function instanceOfV1CreateDocumentB2BSalesJSONReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +export function V1CreateDocumentB2BSalesJSONReportRequestFromJSON(json) { + return V1CreateDocumentB2BSalesJSONReportRequestFromJSONTyped(json, false); +} +export function V1CreateDocumentB2BSalesJSONReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + }; +} +export function V1CreateDocumentB2BSalesJSONReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + }; +} diff --git a/dist/esm/models/V1CreateDocumentB2BSalesJSONReportResponse.d.ts b/dist/esm/models/V1CreateDocumentB2BSalesJSONReportResponse.d.ts new file mode 100644 index 0000000..61bb4be --- /dev/null +++ b/dist/esm/models/V1CreateDocumentB2BSalesJSONReportResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice'; +import type { CreateDocumentB2BSalesJSONReportResponseSellerInfo } from './CreateDocumentB2BSalesJSONReportResponseSellerInfo'; +/** + * + * @export + * @interface V1CreateDocumentB2BSalesJSONReportResponse + */ +export interface V1CreateDocumentB2BSalesJSONReportResponse { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1CreateDocumentB2BSalesJSONReportResponse + */ + date_from?: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1CreateDocumentB2BSalesJSONReportResponse + */ + date_to?: string; + /** + * Список счетов-фактур. + * @type {Array} + * @memberof V1CreateDocumentB2BSalesJSONReportResponse + */ + invoices?: Array; + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseSellerInfo} + * @memberof V1CreateDocumentB2BSalesJSONReportResponse + */ + seller_info?: CreateDocumentB2BSalesJSONReportResponseSellerInfo; +} +/** + * Check if a given object implements the V1CreateDocumentB2BSalesJSONReportResponse interface. + */ +export declare function instanceOfV1CreateDocumentB2BSalesJSONReportResponse(value: object): value is V1CreateDocumentB2BSalesJSONReportResponse; +export declare function V1CreateDocumentB2BSalesJSONReportResponseFromJSON(json: any): V1CreateDocumentB2BSalesJSONReportResponse; +export declare function V1CreateDocumentB2BSalesJSONReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateDocumentB2BSalesJSONReportResponse; +export declare function V1CreateDocumentB2BSalesJSONReportResponseToJSON(value?: V1CreateDocumentB2BSalesJSONReportResponse | null): any; diff --git a/dist/esm/models/V1CreateDocumentB2BSalesJSONReportResponse.js b/dist/esm/models/V1CreateDocumentB2BSalesJSONReportResponse.js new file mode 100644 index 0000000..ed3963b --- /dev/null +++ b/dist/esm/models/V1CreateDocumentB2BSalesJSONReportResponse.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON, CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON, } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice'; +import { CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON, CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON, } from './CreateDocumentB2BSalesJSONReportResponseSellerInfo'; +/** + * Check if a given object implements the V1CreateDocumentB2BSalesJSONReportResponse interface. + */ +export function instanceOfV1CreateDocumentB2BSalesJSONReportResponse(value) { + return true; +} +export function V1CreateDocumentB2BSalesJSONReportResponseFromJSON(json) { + return V1CreateDocumentB2BSalesJSONReportResponseFromJSONTyped(json, false); +} +export function V1CreateDocumentB2BSalesJSONReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'invoices': json['invoices'] == null ? undefined : (json['invoices'].map(CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON)), + 'seller_info': json['seller_info'] == null ? undefined : CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON(json['seller_info']), + }; +} +export function V1CreateDocumentB2BSalesJSONReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'invoices': value['invoices'] == null ? undefined : (value['invoices'].map(CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON)), + 'seller_info': CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON(value['seller_info']), + }; +} diff --git a/dist/esm/models/V1CreateDocumentB2BSalesReportRequest.d.ts b/dist/esm/models/V1CreateDocumentB2BSalesReportRequest.d.ts new file mode 100644 index 0000000..66c06da --- /dev/null +++ b/dist/esm/models/V1CreateDocumentB2BSalesReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateDocumentB2BSalesReportRequest + */ +export interface V1CreateDocumentB2BSalesReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. + * @type {string} + * @memberof V1CreateDocumentB2BSalesReportRequest + */ + date: string; + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1CreateDocumentB2BSalesReportRequest + */ + language?: string; +} +/** + * Check if a given object implements the V1CreateDocumentB2BSalesReportRequest interface. + */ +export declare function instanceOfV1CreateDocumentB2BSalesReportRequest(value: object): value is V1CreateDocumentB2BSalesReportRequest; +export declare function V1CreateDocumentB2BSalesReportRequestFromJSON(json: any): V1CreateDocumentB2BSalesReportRequest; +export declare function V1CreateDocumentB2BSalesReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateDocumentB2BSalesReportRequest; +export declare function V1CreateDocumentB2BSalesReportRequestToJSON(value?: V1CreateDocumentB2BSalesReportRequest | null): any; diff --git a/dist/esm/models/V1CreateDocumentB2BSalesReportRequest.js b/dist/esm/models/V1CreateDocumentB2BSalesReportRequest.js new file mode 100644 index 0000000..f3170c5 --- /dev/null +++ b/dist/esm/models/V1CreateDocumentB2BSalesReportRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreateDocumentB2BSalesReportRequest interface. + */ +export function instanceOfV1CreateDocumentB2BSalesReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +export function V1CreateDocumentB2BSalesReportRequestFromJSON(json) { + return V1CreateDocumentB2BSalesReportRequestFromJSONTyped(json, false); +} +export function V1CreateDocumentB2BSalesReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +export function V1CreateDocumentB2BSalesReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'language': value['language'], + }; +} diff --git a/dist/esm/models/V1CreateLabelBatchRequest.d.ts b/dist/esm/models/V1CreateLabelBatchRequest.d.ts new file mode 100644 index 0000000..f9c8ac8 --- /dev/null +++ b/dist/esm/models/V1CreateLabelBatchRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateLabelBatchRequest + */ +export interface V1CreateLabelBatchRequest { + /** + * Номера отправлений, для которых нужны этикетки. + * @type {Array} + * @memberof V1CreateLabelBatchRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the V1CreateLabelBatchRequest interface. + */ +export declare function instanceOfV1CreateLabelBatchRequest(value: object): value is V1CreateLabelBatchRequest; +export declare function V1CreateLabelBatchRequestFromJSON(json: any): V1CreateLabelBatchRequest; +export declare function V1CreateLabelBatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateLabelBatchRequest; +export declare function V1CreateLabelBatchRequestToJSON(value?: V1CreateLabelBatchRequest | null): any; diff --git a/dist/esm/models/V1CreateLabelBatchRequest.js b/dist/esm/models/V1CreateLabelBatchRequest.js new file mode 100644 index 0000000..cbed3f9 --- /dev/null +++ b/dist/esm/models/V1CreateLabelBatchRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreateLabelBatchRequest interface. + */ +export function instanceOfV1CreateLabelBatchRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1CreateLabelBatchRequestFromJSON(json) { + return V1CreateLabelBatchRequestFromJSONTyped(json, false); +} +export function V1CreateLabelBatchRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1CreateLabelBatchRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1CreateLabelBatchResponse.d.ts b/dist/esm/models/V1CreateLabelBatchResponse.d.ts new file mode 100644 index 0000000..3d4b78f --- /dev/null +++ b/dist/esm/models/V1CreateLabelBatchResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CreateLabelBatchResponseResult } from './V1CreateLabelBatchResponseResult'; +/** + * + * @export + * @interface V1CreateLabelBatchResponse + */ +export interface V1CreateLabelBatchResponse { + /** + * + * @type {V1CreateLabelBatchResponseResult} + * @memberof V1CreateLabelBatchResponse + */ + result?: V1CreateLabelBatchResponseResult; +} +/** + * Check if a given object implements the V1CreateLabelBatchResponse interface. + */ +export declare function instanceOfV1CreateLabelBatchResponse(value: object): value is V1CreateLabelBatchResponse; +export declare function V1CreateLabelBatchResponseFromJSON(json: any): V1CreateLabelBatchResponse; +export declare function V1CreateLabelBatchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateLabelBatchResponse; +export declare function V1CreateLabelBatchResponseToJSON(value?: V1CreateLabelBatchResponse | null): any; diff --git a/dist/esm/models/V1CreateLabelBatchResponse.js b/dist/esm/models/V1CreateLabelBatchResponse.js new file mode 100644 index 0000000..cbe538a --- /dev/null +++ b/dist/esm/models/V1CreateLabelBatchResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CreateLabelBatchResponseResultFromJSON, V1CreateLabelBatchResponseResultToJSON, } from './V1CreateLabelBatchResponseResult'; +/** + * Check if a given object implements the V1CreateLabelBatchResponse interface. + */ +export function instanceOfV1CreateLabelBatchResponse(value) { + return true; +} +export function V1CreateLabelBatchResponseFromJSON(json) { + return V1CreateLabelBatchResponseFromJSONTyped(json, false); +} +export function V1CreateLabelBatchResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1CreateLabelBatchResponseResultFromJSON(json['result']), + }; +} +export function V1CreateLabelBatchResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1CreateLabelBatchResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1CreateLabelBatchResponseResult.d.ts b/dist/esm/models/V1CreateLabelBatchResponseResult.d.ts new file mode 100644 index 0000000..d906cd8 --- /dev/null +++ b/dist/esm/models/V1CreateLabelBatchResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface V1CreateLabelBatchResponseResult + */ +export interface V1CreateLabelBatchResponseResult { + /** + * Идентификатор задания на формирование этикеток. + * @type {number} + * @memberof V1CreateLabelBatchResponseResult + */ + task_id?: number; +} +/** + * Check if a given object implements the V1CreateLabelBatchResponseResult interface. + */ +export declare function instanceOfV1CreateLabelBatchResponseResult(value: object): value is V1CreateLabelBatchResponseResult; +export declare function V1CreateLabelBatchResponseResultFromJSON(json: any): V1CreateLabelBatchResponseResult; +export declare function V1CreateLabelBatchResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateLabelBatchResponseResult; +export declare function V1CreateLabelBatchResponseResultToJSON(value?: V1CreateLabelBatchResponseResult | null): any; diff --git a/dist/esm/models/V1CreateLabelBatchResponseResult.js b/dist/esm/models/V1CreateLabelBatchResponseResult.js new file mode 100644 index 0000000..db5635f --- /dev/null +++ b/dist/esm/models/V1CreateLabelBatchResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreateLabelBatchResponseResult interface. + */ +export function instanceOfV1CreateLabelBatchResponseResult(value) { + return true; +} +export function V1CreateLabelBatchResponseResultFromJSON(json) { + return V1CreateLabelBatchResponseResultFromJSONTyped(json, false); +} +export function V1CreateLabelBatchResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function V1CreateLabelBatchResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/V1CreateMutualSettlementReportRequest.d.ts b/dist/esm/models/V1CreateMutualSettlementReportRequest.d.ts new file mode 100644 index 0000000..8f2be78 --- /dev/null +++ b/dist/esm/models/V1CreateMutualSettlementReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateMutualSettlementReportRequest + */ +export interface V1CreateMutualSettlementReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. + * @type {string} + * @memberof V1CreateMutualSettlementReportRequest + */ + date: string; + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1CreateMutualSettlementReportRequest + */ + language?: string; +} +/** + * Check if a given object implements the V1CreateMutualSettlementReportRequest interface. + */ +export declare function instanceOfV1CreateMutualSettlementReportRequest(value: object): value is V1CreateMutualSettlementReportRequest; +export declare function V1CreateMutualSettlementReportRequestFromJSON(json: any): V1CreateMutualSettlementReportRequest; +export declare function V1CreateMutualSettlementReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateMutualSettlementReportRequest; +export declare function V1CreateMutualSettlementReportRequestToJSON(value?: V1CreateMutualSettlementReportRequest | null): any; diff --git a/dist/esm/models/V1CreateMutualSettlementReportRequest.js b/dist/esm/models/V1CreateMutualSettlementReportRequest.js new file mode 100644 index 0000000..a2594cc --- /dev/null +++ b/dist/esm/models/V1CreateMutualSettlementReportRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreateMutualSettlementReportRequest interface. + */ +export function instanceOfV1CreateMutualSettlementReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +export function V1CreateMutualSettlementReportRequestFromJSON(json) { + return V1CreateMutualSettlementReportRequestFromJSONTyped(json, false); +} +export function V1CreateMutualSettlementReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +export function V1CreateMutualSettlementReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'language': value['language'], + }; +} diff --git a/dist/esm/models/V1CreatePlacementByProductsReportRequest.d.ts b/dist/esm/models/V1CreatePlacementByProductsReportRequest.d.ts new file mode 100644 index 0000000..b083064 --- /dev/null +++ b/dist/esm/models/V1CreatePlacementByProductsReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreatePlacementByProductsReportRequest + */ +export interface V1CreatePlacementByProductsReportRequest { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1CreatePlacementByProductsReportRequest + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * + * Максимальный период — 31 день. + * + * @type {string} + * @memberof V1CreatePlacementByProductsReportRequest + */ + date_to: string; +} +/** + * Check if a given object implements the V1CreatePlacementByProductsReportRequest interface. + */ +export declare function instanceOfV1CreatePlacementByProductsReportRequest(value: object): value is V1CreatePlacementByProductsReportRequest; +export declare function V1CreatePlacementByProductsReportRequestFromJSON(json: any): V1CreatePlacementByProductsReportRequest; +export declare function V1CreatePlacementByProductsReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePlacementByProductsReportRequest; +export declare function V1CreatePlacementByProductsReportRequestToJSON(value?: V1CreatePlacementByProductsReportRequest | null): any; diff --git a/dist/esm/models/V1CreatePlacementByProductsReportRequest.js b/dist/esm/models/V1CreatePlacementByProductsReportRequest.js new file mode 100644 index 0000000..720acfb --- /dev/null +++ b/dist/esm/models/V1CreatePlacementByProductsReportRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreatePlacementByProductsReportRequest interface. + */ +export function instanceOfV1CreatePlacementByProductsReportRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +export function V1CreatePlacementByProductsReportRequestFromJSON(json) { + return V1CreatePlacementByProductsReportRequestFromJSONTyped(json, false); +} +export function V1CreatePlacementByProductsReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + }; +} +export function V1CreatePlacementByProductsReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/esm/models/V1CreatePlacementByProductsReportResponse.d.ts b/dist/esm/models/V1CreatePlacementByProductsReportResponse.d.ts new file mode 100644 index 0000000..418f482 --- /dev/null +++ b/dist/esm/models/V1CreatePlacementByProductsReportResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreatePlacementByProductsReportResponse + */ +export interface V1CreatePlacementByProductsReportResponse { + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof V1CreatePlacementByProductsReportResponse + */ + code?: string; +} +/** + * Check if a given object implements the V1CreatePlacementByProductsReportResponse interface. + */ +export declare function instanceOfV1CreatePlacementByProductsReportResponse(value: object): value is V1CreatePlacementByProductsReportResponse; +export declare function V1CreatePlacementByProductsReportResponseFromJSON(json: any): V1CreatePlacementByProductsReportResponse; +export declare function V1CreatePlacementByProductsReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePlacementByProductsReportResponse; +export declare function V1CreatePlacementByProductsReportResponseToJSON(value?: V1CreatePlacementByProductsReportResponse | null): any; diff --git a/dist/esm/models/V1CreatePlacementByProductsReportResponse.js b/dist/esm/models/V1CreatePlacementByProductsReportResponse.js new file mode 100644 index 0000000..5a61f54 --- /dev/null +++ b/dist/esm/models/V1CreatePlacementByProductsReportResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreatePlacementByProductsReportResponse interface. + */ +export function instanceOfV1CreatePlacementByProductsReportResponse(value) { + return true; +} +export function V1CreatePlacementByProductsReportResponseFromJSON(json) { + return V1CreatePlacementByProductsReportResponseFromJSONTyped(json, false); +} +export function V1CreatePlacementByProductsReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +export function V1CreatePlacementByProductsReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/V1CreatePlacementBySuppliesReportRequest.d.ts b/dist/esm/models/V1CreatePlacementBySuppliesReportRequest.d.ts new file mode 100644 index 0000000..4d1f760 --- /dev/null +++ b/dist/esm/models/V1CreatePlacementBySuppliesReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreatePlacementBySuppliesReportRequest + */ +export interface V1CreatePlacementBySuppliesReportRequest { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1CreatePlacementBySuppliesReportRequest + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * + * Максимальный период — 31 день. + * + * @type {string} + * @memberof V1CreatePlacementBySuppliesReportRequest + */ + date_to: string; +} +/** + * Check if a given object implements the V1CreatePlacementBySuppliesReportRequest interface. + */ +export declare function instanceOfV1CreatePlacementBySuppliesReportRequest(value: object): value is V1CreatePlacementBySuppliesReportRequest; +export declare function V1CreatePlacementBySuppliesReportRequestFromJSON(json: any): V1CreatePlacementBySuppliesReportRequest; +export declare function V1CreatePlacementBySuppliesReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePlacementBySuppliesReportRequest; +export declare function V1CreatePlacementBySuppliesReportRequestToJSON(value?: V1CreatePlacementBySuppliesReportRequest | null): any; diff --git a/dist/esm/models/V1CreatePlacementBySuppliesReportRequest.js b/dist/esm/models/V1CreatePlacementBySuppliesReportRequest.js new file mode 100644 index 0000000..bd56e46 --- /dev/null +++ b/dist/esm/models/V1CreatePlacementBySuppliesReportRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreatePlacementBySuppliesReportRequest interface. + */ +export function instanceOfV1CreatePlacementBySuppliesReportRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +export function V1CreatePlacementBySuppliesReportRequestFromJSON(json) { + return V1CreatePlacementBySuppliesReportRequestFromJSONTyped(json, false); +} +export function V1CreatePlacementBySuppliesReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + }; +} +export function V1CreatePlacementBySuppliesReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/esm/models/V1CreatePlacementBySuppliesReportResponse.d.ts b/dist/esm/models/V1CreatePlacementBySuppliesReportResponse.d.ts new file mode 100644 index 0000000..7a7cc29 --- /dev/null +++ b/dist/esm/models/V1CreatePlacementBySuppliesReportResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreatePlacementBySuppliesReportResponse + */ +export interface V1CreatePlacementBySuppliesReportResponse { + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof V1CreatePlacementBySuppliesReportResponse + */ + code?: string; +} +/** + * Check if a given object implements the V1CreatePlacementBySuppliesReportResponse interface. + */ +export declare function instanceOfV1CreatePlacementBySuppliesReportResponse(value: object): value is V1CreatePlacementBySuppliesReportResponse; +export declare function V1CreatePlacementBySuppliesReportResponseFromJSON(json: any): V1CreatePlacementBySuppliesReportResponse; +export declare function V1CreatePlacementBySuppliesReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePlacementBySuppliesReportResponse; +export declare function V1CreatePlacementBySuppliesReportResponseToJSON(value?: V1CreatePlacementBySuppliesReportResponse | null): any; diff --git a/dist/esm/models/V1CreatePlacementBySuppliesReportResponse.js b/dist/esm/models/V1CreatePlacementBySuppliesReportResponse.js new file mode 100644 index 0000000..ae302d4 --- /dev/null +++ b/dist/esm/models/V1CreatePlacementBySuppliesReportResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreatePlacementBySuppliesReportResponse interface. + */ +export function instanceOfV1CreatePlacementBySuppliesReportResponse(value) { + return true; +} +export function V1CreatePlacementBySuppliesReportResponseFromJSON(json) { + return V1CreatePlacementBySuppliesReportResponseFromJSONTyped(json, false); +} +export function V1CreatePlacementBySuppliesReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +export function V1CreatePlacementBySuppliesReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/V1CreatePricingStrategyRequest.d.ts b/dist/esm/models/V1CreatePricingStrategyRequest.d.ts new file mode 100644 index 0000000..291a7bd --- /dev/null +++ b/dist/esm/models/V1CreatePricingStrategyRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Competitor } from './V1Competitor'; +/** + * + * @export + * @interface V1CreatePricingStrategyRequest + */ +export interface V1CreatePricingStrategyRequest { + /** + * Список конкурентов. + * @type {Array} + * @memberof V1CreatePricingStrategyRequest + */ + competitors: Array; + /** + * Название стратегии. + * @type {string} + * @memberof V1CreatePricingStrategyRequest + */ + strategy_name: string; +} +/** + * Check if a given object implements the V1CreatePricingStrategyRequest interface. + */ +export declare function instanceOfV1CreatePricingStrategyRequest(value: object): value is V1CreatePricingStrategyRequest; +export declare function V1CreatePricingStrategyRequestFromJSON(json: any): V1CreatePricingStrategyRequest; +export declare function V1CreatePricingStrategyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePricingStrategyRequest; +export declare function V1CreatePricingStrategyRequestToJSON(value?: V1CreatePricingStrategyRequest | null): any; diff --git a/dist/esm/models/V1CreatePricingStrategyRequest.js b/dist/esm/models/V1CreatePricingStrategyRequest.js new file mode 100644 index 0000000..d15d9fc --- /dev/null +++ b/dist/esm/models/V1CreatePricingStrategyRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CompetitorFromJSON, V1CompetitorToJSON, } from './V1Competitor'; +/** + * Check if a given object implements the V1CreatePricingStrategyRequest interface. + */ +export function instanceOfV1CreatePricingStrategyRequest(value) { + if (!('competitors' in value) || value['competitors'] === undefined) + return false; + if (!('strategy_name' in value) || value['strategy_name'] === undefined) + return false; + return true; +} +export function V1CreatePricingStrategyRequestFromJSON(json) { + return V1CreatePricingStrategyRequestFromJSONTyped(json, false); +} +export function V1CreatePricingStrategyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'competitors': (json['competitors'].map(V1CompetitorFromJSON)), + 'strategy_name': json['strategy_name'], + }; +} +export function V1CreatePricingStrategyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'competitors': (value['competitors'].map(V1CompetitorToJSON)), + 'strategy_name': value['strategy_name'], + }; +} diff --git a/dist/esm/models/V1CreatePricingStrategyResponse.d.ts b/dist/esm/models/V1CreatePricingStrategyResponse.d.ts new file mode 100644 index 0000000..18f3a15 --- /dev/null +++ b/dist/esm/models/V1CreatePricingStrategyResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CreatePricingStrategyResponseResult } from './V1CreatePricingStrategyResponseResult'; +/** + * + * @export + * @interface V1CreatePricingStrategyResponse + */ +export interface V1CreatePricingStrategyResponse { + /** + * + * @type {V1CreatePricingStrategyResponseResult} + * @memberof V1CreatePricingStrategyResponse + */ + result?: V1CreatePricingStrategyResponseResult; +} +/** + * Check if a given object implements the V1CreatePricingStrategyResponse interface. + */ +export declare function instanceOfV1CreatePricingStrategyResponse(value: object): value is V1CreatePricingStrategyResponse; +export declare function V1CreatePricingStrategyResponseFromJSON(json: any): V1CreatePricingStrategyResponse; +export declare function V1CreatePricingStrategyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePricingStrategyResponse; +export declare function V1CreatePricingStrategyResponseToJSON(value?: V1CreatePricingStrategyResponse | null): any; diff --git a/dist/esm/models/V1CreatePricingStrategyResponse.js b/dist/esm/models/V1CreatePricingStrategyResponse.js new file mode 100644 index 0000000..916b410 --- /dev/null +++ b/dist/esm/models/V1CreatePricingStrategyResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CreatePricingStrategyResponseResultFromJSON, V1CreatePricingStrategyResponseResultToJSON, } from './V1CreatePricingStrategyResponseResult'; +/** + * Check if a given object implements the V1CreatePricingStrategyResponse interface. + */ +export function instanceOfV1CreatePricingStrategyResponse(value) { + return true; +} +export function V1CreatePricingStrategyResponseFromJSON(json) { + return V1CreatePricingStrategyResponseFromJSONTyped(json, false); +} +export function V1CreatePricingStrategyResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1CreatePricingStrategyResponseResultFromJSON(json['result']), + }; +} +export function V1CreatePricingStrategyResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1CreatePricingStrategyResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1CreatePricingStrategyResponseResult.d.ts b/dist/esm/models/V1CreatePricingStrategyResponseResult.d.ts new file mode 100644 index 0000000..6198021 --- /dev/null +++ b/dist/esm/models/V1CreatePricingStrategyResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface V1CreatePricingStrategyResponseResult + */ +export interface V1CreatePricingStrategyResponseResult { + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1CreatePricingStrategyResponseResult + */ + strategy_id?: string; +} +/** + * Check if a given object implements the V1CreatePricingStrategyResponseResult interface. + */ +export declare function instanceOfV1CreatePricingStrategyResponseResult(value: object): value is V1CreatePricingStrategyResponseResult; +export declare function V1CreatePricingStrategyResponseResultFromJSON(json: any): V1CreatePricingStrategyResponseResult; +export declare function V1CreatePricingStrategyResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePricingStrategyResponseResult; +export declare function V1CreatePricingStrategyResponseResultToJSON(value?: V1CreatePricingStrategyResponseResult | null): any; diff --git a/dist/esm/models/V1CreatePricingStrategyResponseResult.js b/dist/esm/models/V1CreatePricingStrategyResponseResult.js new file mode 100644 index 0000000..a35fb89 --- /dev/null +++ b/dist/esm/models/V1CreatePricingStrategyResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreatePricingStrategyResponseResult interface. + */ +export function instanceOfV1CreatePricingStrategyResponseResult(value) { + return true; +} +export function V1CreatePricingStrategyResponseResultFromJSON(json) { + return V1CreatePricingStrategyResponseResultFromJSONTyped(json, false); +} +export function V1CreatePricingStrategyResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'strategy_id': json['strategy_id'] == null ? undefined : json['strategy_id'], + }; +} +export function V1CreatePricingStrategyResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/esm/models/V1CreateStockByWarehouseReportRequest.d.ts b/dist/esm/models/V1CreateStockByWarehouseReportRequest.d.ts new file mode 100644 index 0000000..4fedb9f --- /dev/null +++ b/dist/esm/models/V1CreateStockByWarehouseReportRequest.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateStockByWarehouseReportRequest + */ +export interface V1CreateStockByWarehouseReportRequest { + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1CreateStockByWarehouseReportRequest + */ + language?: string; + /** + * Идентификаторы складов. + * Ограничение значений в запросе. Максимум — 50. + * + * @type {Array} + * @memberof V1CreateStockByWarehouseReportRequest + */ + warehouseId: Array; +} +/** + * Check if a given object implements the V1CreateStockByWarehouseReportRequest interface. + */ +export declare function instanceOfV1CreateStockByWarehouseReportRequest(value: object): value is V1CreateStockByWarehouseReportRequest; +export declare function V1CreateStockByWarehouseReportRequestFromJSON(json: any): V1CreateStockByWarehouseReportRequest; +export declare function V1CreateStockByWarehouseReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateStockByWarehouseReportRequest; +export declare function V1CreateStockByWarehouseReportRequestToJSON(value?: V1CreateStockByWarehouseReportRequest | null): any; diff --git a/dist/esm/models/V1CreateStockByWarehouseReportRequest.js b/dist/esm/models/V1CreateStockByWarehouseReportRequest.js new file mode 100644 index 0000000..0427c95 --- /dev/null +++ b/dist/esm/models/V1CreateStockByWarehouseReportRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreateStockByWarehouseReportRequest interface. + */ +export function instanceOfV1CreateStockByWarehouseReportRequest(value) { + if (!('warehouseId' in value) || value['warehouseId'] === undefined) + return false; + return true; +} +export function V1CreateStockByWarehouseReportRequestFromJSON(json) { + return V1CreateStockByWarehouseReportRequestFromJSONTyped(json, false); +} +export function V1CreateStockByWarehouseReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'language': json['language'] == null ? undefined : json['language'], + 'warehouseId': json['warehouseId'], + }; +} +export function V1CreateStockByWarehouseReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'language': value['language'], + 'warehouseId': value['warehouseId'], + }; +} diff --git a/dist/esm/models/V1CreateType.d.ts b/dist/esm/models/V1CreateType.d.ts new file mode 100644 index 0000000..f6b9cfd --- /dev/null +++ b/dist/esm/models/V1CreateType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `CREATE_TYPE_CROSSDOCK` — кросс-докинг, + * - `CREATE_TYPE_DIRECT` — прямая. + * + * @export + */ +export declare const V1CreateType: { + readonly CROSSDOCK: "CREATE_TYPE_CROSSDOCK"; + readonly DIRECT: "CREATE_TYPE_DIRECT"; +}; +export type V1CreateType = typeof V1CreateType[keyof typeof V1CreateType]; +export declare function instanceOfV1CreateType(value: any): boolean; +export declare function V1CreateTypeFromJSON(json: any): V1CreateType; +export declare function V1CreateTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateType; +export declare function V1CreateTypeToJSON(value?: V1CreateType | null): any; diff --git a/dist/esm/models/V1CreateType.js b/dist/esm/models/V1CreateType.js new file mode 100644 index 0000000..0f811e3 --- /dev/null +++ b/dist/esm/models/V1CreateType.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `CREATE_TYPE_CROSSDOCK` — кросс-докинг, + * - `CREATE_TYPE_DIRECT` — прямая. + * + * @export + */ +export const V1CreateType = { + CROSSDOCK: 'CREATE_TYPE_CROSSDOCK', + DIRECT: 'CREATE_TYPE_DIRECT' +}; +export function instanceOfV1CreateType(value) { + for (const key in V1CreateType) { + if (Object.prototype.hasOwnProperty.call(V1CreateType, key)) { + if (V1CreateType[key] === value) { + return true; + } + } + } + return false; +} +export function V1CreateTypeFromJSON(json) { + return V1CreateTypeFromJSONTyped(json, false); +} +export function V1CreateTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1CreateTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1CreateWarehouseFBSRequest.d.ts b/dist/esm/models/V1CreateWarehouseFBSRequest.d.ts new file mode 100644 index 0000000..8cd5b6c --- /dev/null +++ b/dist/esm/models/V1CreateWarehouseFBSRequest.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateWarehouseFBSRequestOptions } from './CreateWarehouseFBSRequestOptions'; +import type { CreateWarehouseFBSRequestFirstMileTypeEnum } from './CreateWarehouseFBSRequestFirstMileTypeEnum'; +import type { CreateWarehouseFBSRequestWorkingDaysEnum } from './CreateWarehouseFBSRequestWorkingDaysEnum'; +import type { CreateWarehouseFBSRequestAddressCoordinates } from './CreateWarehouseFBSRequestAddressCoordinates'; +/** + * + * @export + * @interface V1CreateWarehouseFBSRequest + */ +export interface V1CreateWarehouseFBSRequest { + /** + * + * @type {CreateWarehouseFBSRequestAddressCoordinates} + * @memberof V1CreateWarehouseFBSRequest + */ + address_coordinates: CreateWarehouseFBSRequestAddressCoordinates; + /** + * Время на приём заказов в минутах. Например, если вы передадите `3000`, приём заказов будет завершён через 50 часов с момента передачи. + * + * @type {number} + * @memberof V1CreateWarehouseFBSRequest + */ + cut_in_time: number; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1CreateWarehouseFBSRequest + */ + drop_off_point_id?: number; + /** + * + * @type {CreateWarehouseFBSRequestFirstMileTypeEnum} + * @memberof V1CreateWarehouseFBSRequest + */ + first_mile_type: CreateWarehouseFBSRequestFirstMileTypeEnum; + /** + * `true`, если товар крупногабаритный. + * + * @type {boolean} + * @memberof V1CreateWarehouseFBSRequest + */ + is_kgt: boolean; + /** + * Название склада. + * @type {string} + * @memberof V1CreateWarehouseFBSRequest + */ + name: string; + /** + * + * @type {CreateWarehouseFBSRequestOptions} + * @memberof V1CreateWarehouseFBSRequest + */ + options?: CreateWarehouseFBSRequestOptions; + /** + * Номер телефона склада. Укажите в формате +7(XXX)XXX-XX-XX. + * @type {string} + * @memberof V1CreateWarehouseFBSRequest + */ + phone: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1CreateWarehouseFBSRequest + */ + timeslot_id: number; + /** + * Идентификатор пункта возврата. Получите значение параметра методом [/v1/warehouse/fbs/create/return-point/list](#operation/WarehouseFBSCreateReturnPointList). + * @type {number} + * @memberof V1CreateWarehouseFBSRequest + */ + return_point_id?: number; + /** + * Рабочие дни склада: + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @type {Array} + * @memberof V1CreateWarehouseFBSRequest + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1CreateWarehouseFBSRequest interface. + */ +export declare function instanceOfV1CreateWarehouseFBSRequest(value: object): value is V1CreateWarehouseFBSRequest; +export declare function V1CreateWarehouseFBSRequestFromJSON(json: any): V1CreateWarehouseFBSRequest; +export declare function V1CreateWarehouseFBSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateWarehouseFBSRequest; +export declare function V1CreateWarehouseFBSRequestToJSON(value?: V1CreateWarehouseFBSRequest | null): any; diff --git a/dist/esm/models/V1CreateWarehouseFBSRequest.js b/dist/esm/models/V1CreateWarehouseFBSRequest.js new file mode 100644 index 0000000..f69fe72 --- /dev/null +++ b/dist/esm/models/V1CreateWarehouseFBSRequest.js @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateWarehouseFBSRequestOptionsFromJSON, CreateWarehouseFBSRequestOptionsToJSON, } from './CreateWarehouseFBSRequestOptions'; +import { CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON, CreateWarehouseFBSRequestFirstMileTypeEnumToJSON, } from './CreateWarehouseFBSRequestFirstMileTypeEnum'; +import { CreateWarehouseFBSRequestWorkingDaysEnumFromJSON, CreateWarehouseFBSRequestWorkingDaysEnumToJSON, } from './CreateWarehouseFBSRequestWorkingDaysEnum'; +import { CreateWarehouseFBSRequestAddressCoordinatesFromJSON, CreateWarehouseFBSRequestAddressCoordinatesToJSON, } from './CreateWarehouseFBSRequestAddressCoordinates'; +/** + * Check if a given object implements the V1CreateWarehouseFBSRequest interface. + */ +export function instanceOfV1CreateWarehouseFBSRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('cut_in_time' in value) || value['cut_in_time'] === undefined) + return false; + if (!('first_mile_type' in value) || value['first_mile_type'] === undefined) + return false; + if (!('is_kgt' in value) || value['is_kgt'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + if (!('timeslot_id' in value) || value['timeslot_id'] === undefined) + return false; + return true; +} +export function V1CreateWarehouseFBSRequestFromJSON(json) { + return V1CreateWarehouseFBSRequestFromJSONTyped(json, false); +} +export function V1CreateWarehouseFBSRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': CreateWarehouseFBSRequestAddressCoordinatesFromJSON(json['address_coordinates']), + 'cut_in_time': json['cut_in_time'], + 'drop_off_point_id': json['drop_off_point_id'] == null ? undefined : json['drop_off_point_id'], + 'first_mile_type': CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON(json['first_mile_type']), + 'is_kgt': json['is_kgt'], + 'name': json['name'], + 'options': json['options'] == null ? undefined : CreateWarehouseFBSRequestOptionsFromJSON(json['options']), + 'phone': json['phone'], + 'timeslot_id': json['timeslot_id'], + 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(CreateWarehouseFBSRequestWorkingDaysEnumFromJSON)), + }; +} +export function V1CreateWarehouseFBSRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': CreateWarehouseFBSRequestAddressCoordinatesToJSON(value['address_coordinates']), + 'cut_in_time': value['cut_in_time'], + 'drop_off_point_id': value['drop_off_point_id'], + 'first_mile_type': CreateWarehouseFBSRequestFirstMileTypeEnumToJSON(value['first_mile_type']), + 'is_kgt': value['is_kgt'], + 'name': value['name'], + 'options': CreateWarehouseFBSRequestOptionsToJSON(value['options']), + 'phone': value['phone'], + 'timeslot_id': value['timeslot_id'], + 'return_point_id': value['return_point_id'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(CreateWarehouseFBSRequestWorkingDaysEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1CreateWarehouseFBSResponse.d.ts b/dist/esm/models/V1CreateWarehouseFBSResponse.d.ts new file mode 100644 index 0000000..83597e4 --- /dev/null +++ b/dist/esm/models/V1CreateWarehouseFBSResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateWarehouseFBSResponse + */ +export interface V1CreateWarehouseFBSResponse { + /** + * Идентификатор операции на создание FBS-склада. Чтобы получить статус операции, используйте метод [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1CreateWarehouseFBSResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1CreateWarehouseFBSResponse interface. + */ +export declare function instanceOfV1CreateWarehouseFBSResponse(value: object): value is V1CreateWarehouseFBSResponse; +export declare function V1CreateWarehouseFBSResponseFromJSON(json: any): V1CreateWarehouseFBSResponse; +export declare function V1CreateWarehouseFBSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateWarehouseFBSResponse; +export declare function V1CreateWarehouseFBSResponseToJSON(value?: V1CreateWarehouseFBSResponse | null): any; diff --git a/dist/esm/models/V1CreateWarehouseFBSResponse.js b/dist/esm/models/V1CreateWarehouseFBSResponse.js new file mode 100644 index 0000000..27692da --- /dev/null +++ b/dist/esm/models/V1CreateWarehouseFBSResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1CreateWarehouseFBSResponse interface. + */ +export function instanceOfV1CreateWarehouseFBSResponse(value) { + return true; +} +export function V1CreateWarehouseFBSResponseFromJSON(json) { + return V1CreateWarehouseFBSResponseFromJSONTyped(json, false); +} +export function V1CreateWarehouseFBSResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1CreateWarehouseFBSResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1DayOfWeek.d.ts b/dist/esm/models/V1DayOfWeek.d.ts new file mode 100644 index 0000000..0d53d71 --- /dev/null +++ b/dist/esm/models/V1DayOfWeek.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `DAY_OF_WEEK_UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1DayOfWeek: { + readonly DAY_OF_WEEK_UNSPECIFIED: "DAY_OF_WEEK_UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1DayOfWeek = typeof V1DayOfWeek[keyof typeof V1DayOfWeek]; +export declare function instanceOfV1DayOfWeek(value: any): boolean; +export declare function V1DayOfWeekFromJSON(json: any): V1DayOfWeek; +export declare function V1DayOfWeekFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DayOfWeek; +export declare function V1DayOfWeekToJSON(value?: V1DayOfWeek | null): any; diff --git a/dist/esm/models/V1DayOfWeek.js b/dist/esm/models/V1DayOfWeek.js new file mode 100644 index 0000000..e28fd6d --- /dev/null +++ b/dist/esm/models/V1DayOfWeek.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `DAY_OF_WEEK_UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export const V1DayOfWeek = { + DAY_OF_WEEK_UNSPECIFIED: 'DAY_OF_WEEK_UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfV1DayOfWeek(value) { + for (const key in V1DayOfWeek) { + if (Object.prototype.hasOwnProperty.call(V1DayOfWeek, key)) { + if (V1DayOfWeek[key] === value) { + return true; + } + } + } + return false; +} +export function V1DayOfWeekFromJSON(json) { + return V1DayOfWeekFromJSONTyped(json, false); +} +export function V1DayOfWeekFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DayOfWeekToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DeclineDiscountTasksRequest.d.ts b/dist/esm/models/V1DeclineDiscountTasksRequest.d.ts new file mode 100644 index 0000000..77477c1 --- /dev/null +++ b/dist/esm/models/V1DeclineDiscountTasksRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeclineDiscountTasksRequestTask } from './V1DeclineDiscountTasksRequestTask'; +/** + * + * @export + * @interface V1DeclineDiscountTasksRequest + */ +export interface V1DeclineDiscountTasksRequest { + /** + * Список заявок. + * @type {Array} + * @memberof V1DeclineDiscountTasksRequest + */ + tasks: Array; +} +/** + * Check if a given object implements the V1DeclineDiscountTasksRequest interface. + */ +export declare function instanceOfV1DeclineDiscountTasksRequest(value: object): value is V1DeclineDiscountTasksRequest; +export declare function V1DeclineDiscountTasksRequestFromJSON(json: any): V1DeclineDiscountTasksRequest; +export declare function V1DeclineDiscountTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeclineDiscountTasksRequest; +export declare function V1DeclineDiscountTasksRequestToJSON(value?: V1DeclineDiscountTasksRequest | null): any; diff --git a/dist/esm/models/V1DeclineDiscountTasksRequest.js b/dist/esm/models/V1DeclineDiscountTasksRequest.js new file mode 100644 index 0000000..f1f894b --- /dev/null +++ b/dist/esm/models/V1DeclineDiscountTasksRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DeclineDiscountTasksRequestTaskFromJSON, V1DeclineDiscountTasksRequestTaskToJSON, } from './V1DeclineDiscountTasksRequestTask'; +/** + * Check if a given object implements the V1DeclineDiscountTasksRequest interface. + */ +export function instanceOfV1DeclineDiscountTasksRequest(value) { + if (!('tasks' in value) || value['tasks'] === undefined) + return false; + return true; +} +export function V1DeclineDiscountTasksRequestFromJSON(json) { + return V1DeclineDiscountTasksRequestFromJSONTyped(json, false); +} +export function V1DeclineDiscountTasksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tasks': (json['tasks'].map(V1DeclineDiscountTasksRequestTaskFromJSON)), + }; +} +export function V1DeclineDiscountTasksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'tasks': (value['tasks'].map(V1DeclineDiscountTasksRequestTaskToJSON)), + }; +} diff --git a/dist/esm/models/V1DeclineDiscountTasksRequestTask.d.ts b/dist/esm/models/V1DeclineDiscountTasksRequestTask.d.ts new file mode 100644 index 0000000..1554f25 --- /dev/null +++ b/dist/esm/models/V1DeclineDiscountTasksRequestTask.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeclineDiscountTasksRequestTask + */ +export interface V1DeclineDiscountTasksRequestTask { + /** + * Идентификатор заявки. + * @type {number} + * @memberof V1DeclineDiscountTasksRequestTask + */ + id: number; + /** + * Комментарий продавца к заявке. + * @type {string} + * @memberof V1DeclineDiscountTasksRequestTask + */ + seller_comment?: string; +} +/** + * Check if a given object implements the V1DeclineDiscountTasksRequestTask interface. + */ +export declare function instanceOfV1DeclineDiscountTasksRequestTask(value: object): value is V1DeclineDiscountTasksRequestTask; +export declare function V1DeclineDiscountTasksRequestTaskFromJSON(json: any): V1DeclineDiscountTasksRequestTask; +export declare function V1DeclineDiscountTasksRequestTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeclineDiscountTasksRequestTask; +export declare function V1DeclineDiscountTasksRequestTaskToJSON(value?: V1DeclineDiscountTasksRequestTask | null): any; diff --git a/dist/esm/models/V1DeclineDiscountTasksRequestTask.js b/dist/esm/models/V1DeclineDiscountTasksRequestTask.js new file mode 100644 index 0000000..dcddd25 --- /dev/null +++ b/dist/esm/models/V1DeclineDiscountTasksRequestTask.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DeclineDiscountTasksRequestTask interface. + */ +export function instanceOfV1DeclineDiscountTasksRequestTask(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function V1DeclineDiscountTasksRequestTaskFromJSON(json) { + return V1DeclineDiscountTasksRequestTaskFromJSONTyped(json, false); +} +export function V1DeclineDiscountTasksRequestTaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'seller_comment': json['seller_comment'] == null ? undefined : json['seller_comment'], + }; +} +export function V1DeclineDiscountTasksRequestTaskToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'seller_comment': value['seller_comment'], + }; +} diff --git a/dist/esm/models/V1DeleteStrategyItemsResponse.d.ts b/dist/esm/models/V1DeleteStrategyItemsResponse.d.ts new file mode 100644 index 0000000..75dfb01 --- /dev/null +++ b/dist/esm/models/V1DeleteStrategyItemsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeleteStrategyItemsResponseResult } from './V1DeleteStrategyItemsResponseResult'; +/** + * + * @export + * @interface V1DeleteStrategyItemsResponse + */ +export interface V1DeleteStrategyItemsResponse { + /** + * + * @type {V1DeleteStrategyItemsResponseResult} + * @memberof V1DeleteStrategyItemsResponse + */ + result?: V1DeleteStrategyItemsResponseResult; +} +/** + * Check if a given object implements the V1DeleteStrategyItemsResponse interface. + */ +export declare function instanceOfV1DeleteStrategyItemsResponse(value: object): value is V1DeleteStrategyItemsResponse; +export declare function V1DeleteStrategyItemsResponseFromJSON(json: any): V1DeleteStrategyItemsResponse; +export declare function V1DeleteStrategyItemsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeleteStrategyItemsResponse; +export declare function V1DeleteStrategyItemsResponseToJSON(value?: V1DeleteStrategyItemsResponse | null): any; diff --git a/dist/esm/models/V1DeleteStrategyItemsResponse.js b/dist/esm/models/V1DeleteStrategyItemsResponse.js new file mode 100644 index 0000000..048fd73 --- /dev/null +++ b/dist/esm/models/V1DeleteStrategyItemsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DeleteStrategyItemsResponseResultFromJSON, V1DeleteStrategyItemsResponseResultToJSON, } from './V1DeleteStrategyItemsResponseResult'; +/** + * Check if a given object implements the V1DeleteStrategyItemsResponse interface. + */ +export function instanceOfV1DeleteStrategyItemsResponse(value) { + return true; +} +export function V1DeleteStrategyItemsResponseFromJSON(json) { + return V1DeleteStrategyItemsResponseFromJSONTyped(json, false); +} +export function V1DeleteStrategyItemsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1DeleteStrategyItemsResponseResultFromJSON(json['result']), + }; +} +export function V1DeleteStrategyItemsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1DeleteStrategyItemsResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1DeleteStrategyItemsResponseResult.d.ts b/dist/esm/models/V1DeleteStrategyItemsResponseResult.d.ts new file mode 100644 index 0000000..99080f6 --- /dev/null +++ b/dist/esm/models/V1DeleteStrategyItemsResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface V1DeleteStrategyItemsResponseResult + */ +export interface V1DeleteStrategyItemsResponseResult { + /** + * Количество товаров с ошибками. + * @type {number} + * @memberof V1DeleteStrategyItemsResponseResult + */ + failed_product_count?: number; +} +/** + * Check if a given object implements the V1DeleteStrategyItemsResponseResult interface. + */ +export declare function instanceOfV1DeleteStrategyItemsResponseResult(value: object): value is V1DeleteStrategyItemsResponseResult; +export declare function V1DeleteStrategyItemsResponseResultFromJSON(json: any): V1DeleteStrategyItemsResponseResult; +export declare function V1DeleteStrategyItemsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeleteStrategyItemsResponseResult; +export declare function V1DeleteStrategyItemsResponseResultToJSON(value?: V1DeleteStrategyItemsResponseResult | null): any; diff --git a/dist/esm/models/V1DeleteStrategyItemsResponseResult.js b/dist/esm/models/V1DeleteStrategyItemsResponseResult.js new file mode 100644 index 0000000..b8469a6 --- /dev/null +++ b/dist/esm/models/V1DeleteStrategyItemsResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DeleteStrategyItemsResponseResult interface. + */ +export function instanceOfV1DeleteStrategyItemsResponseResult(value) { + return true; +} +export function V1DeleteStrategyItemsResponseResultFromJSON(json) { + return V1DeleteStrategyItemsResponseResultFromJSONTyped(json, false); +} +export function V1DeleteStrategyItemsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'failed_product_count': json['failed_product_count'] == null ? undefined : json['failed_product_count'], + }; +} +export function V1DeleteStrategyItemsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'failed_product_count': value['failed_product_count'], + }; +} diff --git a/dist/esm/models/V1DeliveryCheckRequest.d.ts b/dist/esm/models/V1DeliveryCheckRequest.d.ts new file mode 100644 index 0000000..5936de4 --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeliveryCheckRequest + */ +export interface V1DeliveryCheckRequest { + /** + * Номер телефона покупателя. + * @type {string} + * @memberof V1DeliveryCheckRequest + */ + client_phone: string; +} +/** + * Check if a given object implements the V1DeliveryCheckRequest interface. + */ +export declare function instanceOfV1DeliveryCheckRequest(value: object): value is V1DeliveryCheckRequest; +export declare function V1DeliveryCheckRequestFromJSON(json: any): V1DeliveryCheckRequest; +export declare function V1DeliveryCheckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckRequest; +export declare function V1DeliveryCheckRequestToJSON(value?: V1DeliveryCheckRequest | null): any; diff --git a/dist/esm/models/V1DeliveryCheckRequest.js b/dist/esm/models/V1DeliveryCheckRequest.js new file mode 100644 index 0000000..106a544 --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DeliveryCheckRequest interface. + */ +export function instanceOfV1DeliveryCheckRequest(value) { + if (!('client_phone' in value) || value['client_phone'] === undefined) + return false; + return true; +} +export function V1DeliveryCheckRequestFromJSON(json) { + return V1DeliveryCheckRequestFromJSONTyped(json, false); +} +export function V1DeliveryCheckRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'client_phone': json['client_phone'], + }; +} +export function V1DeliveryCheckRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'client_phone': value['client_phone'], + }; +} diff --git a/dist/esm/models/V1DeliveryCheckResponse.d.ts b/dist/esm/models/V1DeliveryCheckResponse.d.ts new file mode 100644 index 0000000..ef3dfc5 --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeliveryCheckResponse + */ +export interface V1DeliveryCheckResponse { + /** + * `true`, если доставка доступна. + * + * @type {boolean} + * @memberof V1DeliveryCheckResponse + */ + is_possible?: boolean; +} +/** + * Check if a given object implements the V1DeliveryCheckResponse interface. + */ +export declare function instanceOfV1DeliveryCheckResponse(value: object): value is V1DeliveryCheckResponse; +export declare function V1DeliveryCheckResponseFromJSON(json: any): V1DeliveryCheckResponse; +export declare function V1DeliveryCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckResponse; +export declare function V1DeliveryCheckResponseToJSON(value?: V1DeliveryCheckResponse | null): any; diff --git a/dist/esm/models/V1DeliveryCheckResponse.js b/dist/esm/models/V1DeliveryCheckResponse.js new file mode 100644 index 0000000..a746160 --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DeliveryCheckResponse interface. + */ +export function instanceOfV1DeliveryCheckResponse(value) { + return true; +} +export function V1DeliveryCheckResponseFromJSON(json) { + return V1DeliveryCheckResponseFromJSONTyped(json, false); +} +export function V1DeliveryCheckResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_possible': json['is_possible'] == null ? undefined : json['is_possible'], + }; +} +export function V1DeliveryCheckResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_possible': value['is_possible'], + }; +} diff --git a/dist/esm/models/V1DeliveryCheckoutRequest.d.ts b/dist/esm/models/V1DeliveryCheckoutRequest.d.ts new file mode 100644 index 0000000..8047f4f --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckoutRequest.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryCheckoutRequestItem } from './V1DeliveryCheckoutRequestItem'; +import type { V2DeliveryCheckoutRequestV2DeliverySchemaEnum } from './V2DeliveryCheckoutRequestV2DeliverySchemaEnum'; +import type { V1DeliveryCheckoutRequestDeliveryType } from './V1DeliveryCheckoutRequestDeliveryType'; +/** + * + * @export + * @interface V1DeliveryCheckoutRequest + */ +export interface V1DeliveryCheckoutRequest { + /** + * Номер телефона покупателя. + * @type {string} + * @memberof V1DeliveryCheckoutRequest + */ + buyer_phone?: string; + /** + * + * @type {V2DeliveryCheckoutRequestV2DeliverySchemaEnum} + * @memberof V1DeliveryCheckoutRequest + */ + delivery_schema?: V2DeliveryCheckoutRequestV2DeliverySchemaEnum; + /** + * + * @type {V1DeliveryCheckoutRequestDeliveryType} + * @memberof V1DeliveryCheckoutRequest + */ + delivery_type?: V1DeliveryCheckoutRequestDeliveryType; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1DeliveryCheckoutRequest + */ + items?: Array; +} +/** + * Check if a given object implements the V1DeliveryCheckoutRequest interface. + */ +export declare function instanceOfV1DeliveryCheckoutRequest(value: object): value is V1DeliveryCheckoutRequest; +export declare function V1DeliveryCheckoutRequestFromJSON(json: any): V1DeliveryCheckoutRequest; +export declare function V1DeliveryCheckoutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckoutRequest; +export declare function V1DeliveryCheckoutRequestToJSON(value?: V1DeliveryCheckoutRequest | null): any; diff --git a/dist/esm/models/V1DeliveryCheckoutRequest.js b/dist/esm/models/V1DeliveryCheckoutRequest.js new file mode 100644 index 0000000..8b44227 --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckoutRequest.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DeliveryCheckoutRequestItemFromJSON, V1DeliveryCheckoutRequestItemToJSON, } from './V1DeliveryCheckoutRequestItem'; +import { V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON, V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON, } from './V2DeliveryCheckoutRequestV2DeliverySchemaEnum'; +import { V1DeliveryCheckoutRequestDeliveryTypeFromJSON, V1DeliveryCheckoutRequestDeliveryTypeToJSON, } from './V1DeliveryCheckoutRequestDeliveryType'; +/** + * Check if a given object implements the V1DeliveryCheckoutRequest interface. + */ +export function instanceOfV1DeliveryCheckoutRequest(value) { + return true; +} +export function V1DeliveryCheckoutRequestFromJSON(json) { + return V1DeliveryCheckoutRequestFromJSONTyped(json, false); +} +export function V1DeliveryCheckoutRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'buyer_phone': json['buyer_phone'] == null ? undefined : json['buyer_phone'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON(json['delivery_schema']), + 'delivery_type': json['delivery_type'] == null ? undefined : V1DeliveryCheckoutRequestDeliveryTypeFromJSON(json['delivery_type']), + 'items': json['items'] == null ? undefined : (json['items'].map(V1DeliveryCheckoutRequestItemFromJSON)), + }; +} +export function V1DeliveryCheckoutRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'buyer_phone': value['buyer_phone'], + 'delivery_schema': V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON(value['delivery_schema']), + 'delivery_type': V1DeliveryCheckoutRequestDeliveryTypeToJSON(value['delivery_type']), + 'items': value['items'] == null ? undefined : (value['items'].map(V1DeliveryCheckoutRequestItemToJSON)), + }; +} diff --git a/dist/esm/models/V1DeliveryCheckoutRequestDeliveryType.d.ts b/dist/esm/models/V1DeliveryCheckoutRequestDeliveryType.d.ts new file mode 100644 index 0000000..f62f4da --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckoutRequestDeliveryType.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryTypeCourier } from './DeliveryTypeCourier'; +import type { DeliveryTypePickUp } from './DeliveryTypePickUp'; +/** + * Способ доставки. + * @export + * @interface V1DeliveryCheckoutRequestDeliveryType + */ +export interface V1DeliveryCheckoutRequestDeliveryType { + /** + * + * @type {DeliveryTypeCourier} + * @memberof V1DeliveryCheckoutRequestDeliveryType + */ + courier?: DeliveryTypeCourier; + /** + * + * @type {DeliveryTypePickUp} + * @memberof V1DeliveryCheckoutRequestDeliveryType + */ + pick_up?: DeliveryTypePickUp; +} +/** + * Check if a given object implements the V1DeliveryCheckoutRequestDeliveryType interface. + */ +export declare function instanceOfV1DeliveryCheckoutRequestDeliveryType(value: object): value is V1DeliveryCheckoutRequestDeliveryType; +export declare function V1DeliveryCheckoutRequestDeliveryTypeFromJSON(json: any): V1DeliveryCheckoutRequestDeliveryType; +export declare function V1DeliveryCheckoutRequestDeliveryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckoutRequestDeliveryType; +export declare function V1DeliveryCheckoutRequestDeliveryTypeToJSON(value?: V1DeliveryCheckoutRequestDeliveryType | null): any; diff --git a/dist/esm/models/V1DeliveryCheckoutRequestDeliveryType.js b/dist/esm/models/V1DeliveryCheckoutRequestDeliveryType.js new file mode 100644 index 0000000..69e02a5 --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckoutRequestDeliveryType.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryTypeCourierFromJSON, DeliveryTypeCourierToJSON, } from './DeliveryTypeCourier'; +import { DeliveryTypePickUpFromJSON, DeliveryTypePickUpToJSON, } from './DeliveryTypePickUp'; +/** + * Check if a given object implements the V1DeliveryCheckoutRequestDeliveryType interface. + */ +export function instanceOfV1DeliveryCheckoutRequestDeliveryType(value) { + return true; +} +export function V1DeliveryCheckoutRequestDeliveryTypeFromJSON(json) { + return V1DeliveryCheckoutRequestDeliveryTypeFromJSONTyped(json, false); +} +export function V1DeliveryCheckoutRequestDeliveryTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier': json['courier'] == null ? undefined : DeliveryTypeCourierFromJSON(json['courier']), + 'pick_up': json['pick_up'] == null ? undefined : DeliveryTypePickUpFromJSON(json['pick_up']), + }; +} +export function V1DeliveryCheckoutRequestDeliveryTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier': DeliveryTypeCourierToJSON(value['courier']), + 'pick_up': DeliveryTypePickUpToJSON(value['pick_up']), + }; +} diff --git a/dist/esm/models/V1DeliveryCheckoutRequestItem.d.ts b/dist/esm/models/V1DeliveryCheckoutRequestItem.d.ts new file mode 100644 index 0000000..921e733 --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckoutRequestItem.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeliveryCheckoutRequestItem + */ +export interface V1DeliveryCheckoutRequestItem { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1DeliveryCheckoutRequestItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1DeliveryCheckoutRequestItem + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1DeliveryCheckoutRequestItem + */ + sku?: number; +} +/** + * Check if a given object implements the V1DeliveryCheckoutRequestItem interface. + */ +export declare function instanceOfV1DeliveryCheckoutRequestItem(value: object): value is V1DeliveryCheckoutRequestItem; +export declare function V1DeliveryCheckoutRequestItemFromJSON(json: any): V1DeliveryCheckoutRequestItem; +export declare function V1DeliveryCheckoutRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckoutRequestItem; +export declare function V1DeliveryCheckoutRequestItemToJSON(value?: V1DeliveryCheckoutRequestItem | null): any; diff --git a/dist/esm/models/V1DeliveryCheckoutRequestItem.js b/dist/esm/models/V1DeliveryCheckoutRequestItem.js new file mode 100644 index 0000000..2594cac --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckoutRequestItem.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DeliveryCheckoutRequestItem interface. + */ +export function instanceOfV1DeliveryCheckoutRequestItem(value) { + return true; +} +export function V1DeliveryCheckoutRequestItemFromJSON(json) { + return V1DeliveryCheckoutRequestItemFromJSONTyped(json, false); +} +export function V1DeliveryCheckoutRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1DeliveryCheckoutRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1DeliveryCheckoutResponse.d.ts b/dist/esm/models/V1DeliveryCheckoutResponse.d.ts new file mode 100644 index 0000000..a2b6f03 --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckoutResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryCheckoutResponseSplit } from './DeliveryCheckoutResponseSplit'; +/** + * + * @export + * @interface V1DeliveryCheckoutResponse + */ +export interface V1DeliveryCheckoutResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof V1DeliveryCheckoutResponse + */ + splits?: Array; +} +/** + * Check if a given object implements the V1DeliveryCheckoutResponse interface. + */ +export declare function instanceOfV1DeliveryCheckoutResponse(value: object): value is V1DeliveryCheckoutResponse; +export declare function V1DeliveryCheckoutResponseFromJSON(json: any): V1DeliveryCheckoutResponse; +export declare function V1DeliveryCheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckoutResponse; +export declare function V1DeliveryCheckoutResponseToJSON(value?: V1DeliveryCheckoutResponse | null): any; diff --git a/dist/esm/models/V1DeliveryCheckoutResponse.js b/dist/esm/models/V1DeliveryCheckoutResponse.js new file mode 100644 index 0000000..19b6eff --- /dev/null +++ b/dist/esm/models/V1DeliveryCheckoutResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryCheckoutResponseSplitFromJSON, DeliveryCheckoutResponseSplitToJSON, } from './DeliveryCheckoutResponseSplit'; +/** + * Check if a given object implements the V1DeliveryCheckoutResponse interface. + */ +export function instanceOfV1DeliveryCheckoutResponse(value) { + return true; +} +export function V1DeliveryCheckoutResponseFromJSON(json) { + return V1DeliveryCheckoutResponseFromJSONTyped(json, false); +} +export function V1DeliveryCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'splits': json['splits'] == null ? undefined : (json['splits'].map(DeliveryCheckoutResponseSplitFromJSON)), + }; +} +export function V1DeliveryCheckoutResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'splits': value['splits'] == null ? undefined : (value['splits'].map(DeliveryCheckoutResponseSplitToJSON)), + }; +} diff --git a/dist/esm/models/V1DeliveryDetailsDirectDetails.d.ts b/dist/esm/models/V1DeliveryDetailsDirectDetails.d.ts new file mode 100644 index 0000000..7580323 --- /dev/null +++ b/dist/esm/models/V1DeliveryDetailsDirectDetails.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DirectDetailsTimeslotDetails } from './DirectDetailsTimeslotDetails'; +import type { DirectDetailsByTplDetails } from './DirectDetailsByTplDetails'; +import type { DirectDetailsBySellerDetails } from './DirectDetailsBySellerDetails'; +/** + * Детали доставки продавцом. + * @export + * @interface V1DeliveryDetailsDirectDetails + */ +export interface V1DeliveryDetailsDirectDetails { + /** + * + * @type {DirectDetailsBySellerDetails} + * @memberof V1DeliveryDetailsDirectDetails + */ + by_seller_details?: DirectDetailsBySellerDetails; + /** + * + * @type {DirectDetailsByTplDetails} + * @memberof V1DeliveryDetailsDirectDetails + */ + by_tpl_details?: DirectDetailsByTplDetails; + /** + * + * @type {DirectDetailsTimeslotDetails} + * @memberof V1DeliveryDetailsDirectDetails + */ + timeslot_details?: DirectDetailsTimeslotDetails; +} +/** + * Check if a given object implements the V1DeliveryDetailsDirectDetails interface. + */ +export declare function instanceOfV1DeliveryDetailsDirectDetails(value: object): value is V1DeliveryDetailsDirectDetails; +export declare function V1DeliveryDetailsDirectDetailsFromJSON(json: any): V1DeliveryDetailsDirectDetails; +export declare function V1DeliveryDetailsDirectDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryDetailsDirectDetails; +export declare function V1DeliveryDetailsDirectDetailsToJSON(value?: V1DeliveryDetailsDirectDetails | null): any; diff --git a/dist/esm/models/V1DeliveryDetailsDirectDetails.js b/dist/esm/models/V1DeliveryDetailsDirectDetails.js new file mode 100644 index 0000000..a00519b --- /dev/null +++ b/dist/esm/models/V1DeliveryDetailsDirectDetails.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirectDetailsTimeslotDetailsFromJSON, DirectDetailsTimeslotDetailsToJSON, } from './DirectDetailsTimeslotDetails'; +import { DirectDetailsByTplDetailsFromJSON, DirectDetailsByTplDetailsToJSON, } from './DirectDetailsByTplDetails'; +import { DirectDetailsBySellerDetailsFromJSON, DirectDetailsBySellerDetailsToJSON, } from './DirectDetailsBySellerDetails'; +/** + * Check if a given object implements the V1DeliveryDetailsDirectDetails interface. + */ +export function instanceOfV1DeliveryDetailsDirectDetails(value) { + return true; +} +export function V1DeliveryDetailsDirectDetailsFromJSON(json) { + return V1DeliveryDetailsDirectDetailsFromJSONTyped(json, false); +} +export function V1DeliveryDetailsDirectDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'by_seller_details': json['by_seller_details'] == null ? undefined : DirectDetailsBySellerDetailsFromJSON(json['by_seller_details']), + 'by_tpl_details': json['by_tpl_details'] == null ? undefined : DirectDetailsByTplDetailsFromJSON(json['by_tpl_details']), + 'timeslot_details': json['timeslot_details'] == null ? undefined : DirectDetailsTimeslotDetailsFromJSON(json['timeslot_details']), + }; +} +export function V1DeliveryDetailsDirectDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'by_seller_details': DirectDetailsBySellerDetailsToJSON(value['by_seller_details']), + 'by_tpl_details': DirectDetailsByTplDetailsToJSON(value['by_tpl_details']), + 'timeslot_details': DirectDetailsTimeslotDetailsToJSON(value['timeslot_details']), + }; +} diff --git a/dist/esm/models/V1DeliveryDetailsPickUpDetails.d.ts b/dist/esm/models/V1DeliveryDetailsPickUpDetails.d.ts new file mode 100644 index 0000000..fc49acd --- /dev/null +++ b/dist/esm/models/V1DeliveryDetailsPickUpDetails.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали пункта выдачи. + * @export + * @interface V1DeliveryDetailsPickUpDetails + */ +export interface V1DeliveryDetailsPickUpDetails { + /** + * Адрес. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + address?: string; + /** + * Комментарий. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + comment?: string; + /** + * Дата доставки. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + date?: string; + /** + * ФИО отправителя. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + sender_name?: string; + /** + * Номер телефона отправителя. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + sender_phone?: string; +} +/** + * Check if a given object implements the V1DeliveryDetailsPickUpDetails interface. + */ +export declare function instanceOfV1DeliveryDetailsPickUpDetails(value: object): value is V1DeliveryDetailsPickUpDetails; +export declare function V1DeliveryDetailsPickUpDetailsFromJSON(json: any): V1DeliveryDetailsPickUpDetails; +export declare function V1DeliveryDetailsPickUpDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryDetailsPickUpDetails; +export declare function V1DeliveryDetailsPickUpDetailsToJSON(value?: V1DeliveryDetailsPickUpDetails | null): any; diff --git a/dist/esm/models/V1DeliveryDetailsPickUpDetails.js b/dist/esm/models/V1DeliveryDetailsPickUpDetails.js new file mode 100644 index 0000000..08d9b9a --- /dev/null +++ b/dist/esm/models/V1DeliveryDetailsPickUpDetails.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DeliveryDetailsPickUpDetails interface. + */ +export function instanceOfV1DeliveryDetailsPickUpDetails(value) { + return true; +} +export function V1DeliveryDetailsPickUpDetailsFromJSON(json) { + return V1DeliveryDetailsPickUpDetailsFromJSONTyped(json, false); +} +export function V1DeliveryDetailsPickUpDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'date': json['date'] == null ? undefined : json['date'], + 'sender_name': json['sender_name'] == null ? undefined : json['sender_name'], + 'sender_phone': json['sender_phone'] == null ? undefined : json['sender_phone'], + }; +} +export function V1DeliveryDetailsPickUpDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'comment': value['comment'], + 'date': value['date'], + 'sender_name': value['sender_name'], + 'sender_phone': value['sender_phone'], + }; +} diff --git a/dist/esm/models/V1DeliveryMapRequest.d.ts b/dist/esm/models/V1DeliveryMapRequest.d.ts new file mode 100644 index 0000000..1623827 --- /dev/null +++ b/dist/esm/models/V1DeliveryMapRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryMapRequestViewport } from './V1DeliveryMapRequestViewport'; +/** + * + * @export + * @interface V1DeliveryMapRequest + */ +export interface V1DeliveryMapRequest { + /** + * + * @type {V1DeliveryMapRequestViewport} + * @memberof V1DeliveryMapRequest + */ + viewport?: V1DeliveryMapRequestViewport; + /** + * Масштаб карты. + * @type {number} + * @memberof V1DeliveryMapRequest + */ + zoom?: number; +} +/** + * Check if a given object implements the V1DeliveryMapRequest interface. + */ +export declare function instanceOfV1DeliveryMapRequest(value: object): value is V1DeliveryMapRequest; +export declare function V1DeliveryMapRequestFromJSON(json: any): V1DeliveryMapRequest; +export declare function V1DeliveryMapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryMapRequest; +export declare function V1DeliveryMapRequestToJSON(value?: V1DeliveryMapRequest | null): any; diff --git a/dist/esm/models/V1DeliveryMapRequest.js b/dist/esm/models/V1DeliveryMapRequest.js new file mode 100644 index 0000000..1311d4b --- /dev/null +++ b/dist/esm/models/V1DeliveryMapRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DeliveryMapRequestViewportFromJSON, V1DeliveryMapRequestViewportToJSON, } from './V1DeliveryMapRequestViewport'; +/** + * Check if a given object implements the V1DeliveryMapRequest interface. + */ +export function instanceOfV1DeliveryMapRequest(value) { + return true; +} +export function V1DeliveryMapRequestFromJSON(json) { + return V1DeliveryMapRequestFromJSONTyped(json, false); +} +export function V1DeliveryMapRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'viewport': json['viewport'] == null ? undefined : V1DeliveryMapRequestViewportFromJSON(json['viewport']), + 'zoom': json['zoom'] == null ? undefined : json['zoom'], + }; +} +export function V1DeliveryMapRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'viewport': V1DeliveryMapRequestViewportToJSON(value['viewport']), + 'zoom': value['zoom'], + }; +} diff --git a/dist/esm/models/V1DeliveryMapRequestViewport.d.ts b/dist/esm/models/V1DeliveryMapRequestViewport.d.ts new file mode 100644 index 0000000..a7b2bca --- /dev/null +++ b/dist/esm/models/V1DeliveryMapRequestViewport.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMapRequestViewportCoordinatesRight } from './DeliveryMapRequestViewportCoordinatesRight'; +import type { DeliveryMapRequestViewportCoordinatesLeft } from './DeliveryMapRequestViewportCoordinatesLeft'; +/** + * Область карты для получения кластеров и точек самовывоза. + * @export + * @interface V1DeliveryMapRequestViewport + */ +export interface V1DeliveryMapRequestViewport { + /** + * + * @type {DeliveryMapRequestViewportCoordinatesLeft} + * @memberof V1DeliveryMapRequestViewport + */ + left_bottom?: DeliveryMapRequestViewportCoordinatesLeft; + /** + * + * @type {DeliveryMapRequestViewportCoordinatesRight} + * @memberof V1DeliveryMapRequestViewport + */ + right_top?: DeliveryMapRequestViewportCoordinatesRight; +} +/** + * Check if a given object implements the V1DeliveryMapRequestViewport interface. + */ +export declare function instanceOfV1DeliveryMapRequestViewport(value: object): value is V1DeliveryMapRequestViewport; +export declare function V1DeliveryMapRequestViewportFromJSON(json: any): V1DeliveryMapRequestViewport; +export declare function V1DeliveryMapRequestViewportFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryMapRequestViewport; +export declare function V1DeliveryMapRequestViewportToJSON(value?: V1DeliveryMapRequestViewport | null): any; diff --git a/dist/esm/models/V1DeliveryMapRequestViewport.js b/dist/esm/models/V1DeliveryMapRequestViewport.js new file mode 100644 index 0000000..c7e365b --- /dev/null +++ b/dist/esm/models/V1DeliveryMapRequestViewport.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMapRequestViewportCoordinatesRightFromJSON, DeliveryMapRequestViewportCoordinatesRightToJSON, } from './DeliveryMapRequestViewportCoordinatesRight'; +import { DeliveryMapRequestViewportCoordinatesLeftFromJSON, DeliveryMapRequestViewportCoordinatesLeftToJSON, } from './DeliveryMapRequestViewportCoordinatesLeft'; +/** + * Check if a given object implements the V1DeliveryMapRequestViewport interface. + */ +export function instanceOfV1DeliveryMapRequestViewport(value) { + return true; +} +export function V1DeliveryMapRequestViewportFromJSON(json) { + return V1DeliveryMapRequestViewportFromJSONTyped(json, false); +} +export function V1DeliveryMapRequestViewportFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'left_bottom': json['left_bottom'] == null ? undefined : DeliveryMapRequestViewportCoordinatesLeftFromJSON(json['left_bottom']), + 'right_top': json['right_top'] == null ? undefined : DeliveryMapRequestViewportCoordinatesRightFromJSON(json['right_top']), + }; +} +export function V1DeliveryMapRequestViewportToJSON(value) { + if (value == null) { + return value; + } + return { + 'left_bottom': DeliveryMapRequestViewportCoordinatesLeftToJSON(value['left_bottom']), + 'right_top': DeliveryMapRequestViewportCoordinatesRightToJSON(value['right_top']), + }; +} diff --git a/dist/esm/models/V1DeliveryMapResponse.d.ts b/dist/esm/models/V1DeliveryMapResponse.d.ts new file mode 100644 index 0000000..cd2c987 --- /dev/null +++ b/dist/esm/models/V1DeliveryMapResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMapResponseCluster } from './DeliveryMapResponseCluster'; +/** + * + * @export + * @interface V1DeliveryMapResponse + */ +export interface V1DeliveryMapResponse { + /** + * Кластеры. + * @type {Array} + * @memberof V1DeliveryMapResponse + */ + clusters?: Array; +} +/** + * Check if a given object implements the V1DeliveryMapResponse interface. + */ +export declare function instanceOfV1DeliveryMapResponse(value: object): value is V1DeliveryMapResponse; +export declare function V1DeliveryMapResponseFromJSON(json: any): V1DeliveryMapResponse; +export declare function V1DeliveryMapResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryMapResponse; +export declare function V1DeliveryMapResponseToJSON(value?: V1DeliveryMapResponse | null): any; diff --git a/dist/esm/models/V1DeliveryMapResponse.js b/dist/esm/models/V1DeliveryMapResponse.js new file mode 100644 index 0000000..88b488f --- /dev/null +++ b/dist/esm/models/V1DeliveryMapResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMapResponseClusterFromJSON, DeliveryMapResponseClusterToJSON, } from './DeliveryMapResponseCluster'; +/** + * Check if a given object implements the V1DeliveryMapResponse interface. + */ +export function instanceOfV1DeliveryMapResponse(value) { + return true; +} +export function V1DeliveryMapResponseFromJSON(json) { + return V1DeliveryMapResponseFromJSONTyped(json, false); +} +export function V1DeliveryMapResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'clusters': json['clusters'] == null ? undefined : (json['clusters'].map(DeliveryMapResponseClusterFromJSON)), + }; +} +export function V1DeliveryMapResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'clusters': value['clusters'] == null ? undefined : (value['clusters'].map(DeliveryMapResponseClusterToJSON)), + }; +} diff --git a/dist/esm/models/V1DeliveryPointInfoRequest.d.ts b/dist/esm/models/V1DeliveryPointInfoRequest.d.ts new file mode 100644 index 0000000..7951974 --- /dev/null +++ b/dist/esm/models/V1DeliveryPointInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeliveryPointInfoRequest + */ +export interface V1DeliveryPointInfoRequest { + /** + * Идентификаторы точек на карте. + * @type {Array} + * @memberof V1DeliveryPointInfoRequest + */ + map_point_ids?: Array; +} +/** + * Check if a given object implements the V1DeliveryPointInfoRequest interface. + */ +export declare function instanceOfV1DeliveryPointInfoRequest(value: object): value is V1DeliveryPointInfoRequest; +export declare function V1DeliveryPointInfoRequestFromJSON(json: any): V1DeliveryPointInfoRequest; +export declare function V1DeliveryPointInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointInfoRequest; +export declare function V1DeliveryPointInfoRequestToJSON(value?: V1DeliveryPointInfoRequest | null): any; diff --git a/dist/esm/models/V1DeliveryPointInfoRequest.js b/dist/esm/models/V1DeliveryPointInfoRequest.js new file mode 100644 index 0000000..c61adfb --- /dev/null +++ b/dist/esm/models/V1DeliveryPointInfoRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DeliveryPointInfoRequest interface. + */ +export function instanceOfV1DeliveryPointInfoRequest(value) { + return true; +} +export function V1DeliveryPointInfoRequestFromJSON(json) { + return V1DeliveryPointInfoRequestFromJSONTyped(json, false); +} +export function V1DeliveryPointInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'map_point_ids': json['map_point_ids'] == null ? undefined : json['map_point_ids'], + }; +} +export function V1DeliveryPointInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'map_point_ids': value['map_point_ids'], + }; +} diff --git a/dist/esm/models/V1DeliveryPointInfoResponse.d.ts b/dist/esm/models/V1DeliveryPointInfoResponse.d.ts new file mode 100644 index 0000000..2e9e0e4 --- /dev/null +++ b/dist/esm/models/V1DeliveryPointInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryPointInfoResponsePoint } from './V1DeliveryPointInfoResponsePoint'; +/** + * + * @export + * @interface V1DeliveryPointInfoResponse + */ +export interface V1DeliveryPointInfoResponse { + /** + * Информация о пунктах самовывоза. + * @type {Array} + * @memberof V1DeliveryPointInfoResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1DeliveryPointInfoResponse interface. + */ +export declare function instanceOfV1DeliveryPointInfoResponse(value: object): value is V1DeliveryPointInfoResponse; +export declare function V1DeliveryPointInfoResponseFromJSON(json: any): V1DeliveryPointInfoResponse; +export declare function V1DeliveryPointInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointInfoResponse; +export declare function V1DeliveryPointInfoResponseToJSON(value?: V1DeliveryPointInfoResponse | null): any; diff --git a/dist/esm/models/V1DeliveryPointInfoResponse.js b/dist/esm/models/V1DeliveryPointInfoResponse.js new file mode 100644 index 0000000..fb7d962 --- /dev/null +++ b/dist/esm/models/V1DeliveryPointInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DeliveryPointInfoResponsePointFromJSON, V1DeliveryPointInfoResponsePointToJSON, } from './V1DeliveryPointInfoResponsePoint'; +/** + * Check if a given object implements the V1DeliveryPointInfoResponse interface. + */ +export function instanceOfV1DeliveryPointInfoResponse(value) { + return true; +} +export function V1DeliveryPointInfoResponseFromJSON(json) { + return V1DeliveryPointInfoResponseFromJSONTyped(json, false); +} +export function V1DeliveryPointInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'] == null ? undefined : (json['points'].map(V1DeliveryPointInfoResponsePointFromJSON)), + }; +} +export function V1DeliveryPointInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'points': value['points'] == null ? undefined : (value['points'].map(V1DeliveryPointInfoResponsePointToJSON)), + }; +} diff --git a/dist/esm/models/V1DeliveryPointInfoResponsePoint.d.ts b/dist/esm/models/V1DeliveryPointInfoResponsePoint.d.ts new file mode 100644 index 0000000..0fe9eb2 --- /dev/null +++ b/dist/esm/models/V1DeliveryPointInfoResponsePoint.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryPointInfoResponsePointDeliveryMethod } from './DeliveryPointInfoResponsePointDeliveryMethod'; +/** + * + * @export + * @interface V1DeliveryPointInfoResponsePoint + */ +export interface V1DeliveryPointInfoResponsePoint { + /** + * + * @type {DeliveryPointInfoResponsePointDeliveryMethod} + * @memberof V1DeliveryPointInfoResponsePoint + */ + delivery_method?: DeliveryPointInfoResponsePointDeliveryMethod; + /** + * `true`, если пункт самовывоза доступен. + * + * @type {boolean} + * @memberof V1DeliveryPointInfoResponsePoint + */ + enabled?: boolean; +} +/** + * Check if a given object implements the V1DeliveryPointInfoResponsePoint interface. + */ +export declare function instanceOfV1DeliveryPointInfoResponsePoint(value: object): value is V1DeliveryPointInfoResponsePoint; +export declare function V1DeliveryPointInfoResponsePointFromJSON(json: any): V1DeliveryPointInfoResponsePoint; +export declare function V1DeliveryPointInfoResponsePointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointInfoResponsePoint; +export declare function V1DeliveryPointInfoResponsePointToJSON(value?: V1DeliveryPointInfoResponsePoint | null): any; diff --git a/dist/esm/models/V1DeliveryPointInfoResponsePoint.js b/dist/esm/models/V1DeliveryPointInfoResponsePoint.js new file mode 100644 index 0000000..bedd121 --- /dev/null +++ b/dist/esm/models/V1DeliveryPointInfoResponsePoint.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryPointInfoResponsePointDeliveryMethodFromJSON, DeliveryPointInfoResponsePointDeliveryMethodToJSON, } from './DeliveryPointInfoResponsePointDeliveryMethod'; +/** + * Check if a given object implements the V1DeliveryPointInfoResponsePoint interface. + */ +export function instanceOfV1DeliveryPointInfoResponsePoint(value) { + return true; +} +export function V1DeliveryPointInfoResponsePointFromJSON(json) { + return V1DeliveryPointInfoResponsePointFromJSONTyped(json, false); +} +export function V1DeliveryPointInfoResponsePointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method': json['delivery_method'] == null ? undefined : DeliveryPointInfoResponsePointDeliveryMethodFromJSON(json['delivery_method']), + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + }; +} +export function V1DeliveryPointInfoResponsePointToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method': DeliveryPointInfoResponsePointDeliveryMethodToJSON(value['delivery_method']), + 'enabled': value['enabled'], + }; +} diff --git a/dist/esm/models/V1DeliveryPointListResponse.d.ts b/dist/esm/models/V1DeliveryPointListResponse.d.ts new file mode 100644 index 0000000..642f253 --- /dev/null +++ b/dist/esm/models/V1DeliveryPointListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryPointListResponsePoint } from './V1DeliveryPointListResponsePoint'; +/** + * + * @export + * @interface V1DeliveryPointListResponse + */ +export interface V1DeliveryPointListResponse { + /** + * Точки самовывоза. + * @type {Array} + * @memberof V1DeliveryPointListResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1DeliveryPointListResponse interface. + */ +export declare function instanceOfV1DeliveryPointListResponse(value: object): value is V1DeliveryPointListResponse; +export declare function V1DeliveryPointListResponseFromJSON(json: any): V1DeliveryPointListResponse; +export declare function V1DeliveryPointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointListResponse; +export declare function V1DeliveryPointListResponseToJSON(value?: V1DeliveryPointListResponse | null): any; diff --git a/dist/esm/models/V1DeliveryPointListResponse.js b/dist/esm/models/V1DeliveryPointListResponse.js new file mode 100644 index 0000000..6635f47 --- /dev/null +++ b/dist/esm/models/V1DeliveryPointListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DeliveryPointListResponsePointFromJSON, V1DeliveryPointListResponsePointToJSON, } from './V1DeliveryPointListResponsePoint'; +/** + * Check if a given object implements the V1DeliveryPointListResponse interface. + */ +export function instanceOfV1DeliveryPointListResponse(value) { + return true; +} +export function V1DeliveryPointListResponseFromJSON(json) { + return V1DeliveryPointListResponseFromJSONTyped(json, false); +} +export function V1DeliveryPointListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'] == null ? undefined : (json['points'].map(V1DeliveryPointListResponsePointFromJSON)), + }; +} +export function V1DeliveryPointListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'points': value['points'] == null ? undefined : (value['points'].map(V1DeliveryPointListResponsePointToJSON)), + }; +} diff --git a/dist/esm/models/V1DeliveryPointListResponsePoint.d.ts b/dist/esm/models/V1DeliveryPointListResponsePoint.d.ts new file mode 100644 index 0000000..8365199 --- /dev/null +++ b/dist/esm/models/V1DeliveryPointListResponsePoint.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryPointListResponsePointCoordinates } from './DeliveryPointListResponsePointCoordinates'; +/** + * Информация о точке самовывоза. + * @export + * @interface V1DeliveryPointListResponsePoint + */ +export interface V1DeliveryPointListResponsePoint { + /** + * + * @type {DeliveryPointListResponsePointCoordinates} + * @memberof V1DeliveryPointListResponsePoint + */ + coordinate?: DeliveryPointListResponsePointCoordinates; + /** + * Идентификатор точки на карте. + * @type {number} + * @memberof V1DeliveryPointListResponsePoint + */ + map_point_id?: number; +} +/** + * Check if a given object implements the V1DeliveryPointListResponsePoint interface. + */ +export declare function instanceOfV1DeliveryPointListResponsePoint(value: object): value is V1DeliveryPointListResponsePoint; +export declare function V1DeliveryPointListResponsePointFromJSON(json: any): V1DeliveryPointListResponsePoint; +export declare function V1DeliveryPointListResponsePointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointListResponsePoint; +export declare function V1DeliveryPointListResponsePointToJSON(value?: V1DeliveryPointListResponsePoint | null): any; diff --git a/dist/esm/models/V1DeliveryPointListResponsePoint.js b/dist/esm/models/V1DeliveryPointListResponsePoint.js new file mode 100644 index 0000000..e5153dc --- /dev/null +++ b/dist/esm/models/V1DeliveryPointListResponsePoint.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryPointListResponsePointCoordinatesFromJSON, DeliveryPointListResponsePointCoordinatesToJSON, } from './DeliveryPointListResponsePointCoordinates'; +/** + * Check if a given object implements the V1DeliveryPointListResponsePoint interface. + */ +export function instanceOfV1DeliveryPointListResponsePoint(value) { + return true; +} +export function V1DeliveryPointListResponsePointFromJSON(json) { + return V1DeliveryPointListResponsePointFromJSONTyped(json, false); +} +export function V1DeliveryPointListResponsePointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinate': json['coordinate'] == null ? undefined : DeliveryPointListResponsePointCoordinatesFromJSON(json['coordinate']), + 'map_point_id': json['map_point_id'] == null ? undefined : json['map_point_id'], + }; +} +export function V1DeliveryPointListResponsePointToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinate': DeliveryPointListResponsePointCoordinatesToJSON(value['coordinate']), + 'map_point_id': value['map_point_id'], + }; +} diff --git a/dist/esm/models/V1DiscountTaskStatus.d.ts b/dist/esm/models/V1DiscountTaskStatus.d.ts new file mode 100644 index 0000000..3335927 --- /dev/null +++ b/dist/esm/models/V1DiscountTaskStatus.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `NEW` — новая, + * - `SEEN` — просмотренная, + * - `APPROVED` — одобренная, + * - `PARTLY_APPROVED` — одобренная частично, + * - `DECLINED` — отклонённая, + * - `AUTO_DECLINED` — отклонена автоматически, + * - `DECLINED_BY_USER` — отклонена покупателем, + * - `COUPON` — скидка по купону, + * - `PURCHASED` — купленная. + * + * @export + */ +export declare const V1DiscountTaskStatus: { + readonly NEW: "NEW"; + readonly SEEN: "SEEN"; + readonly APPROVED: "APPROVED"; + readonly PARTLY_APPROVED: "PARTLY_APPROVED"; + readonly DECLINED: "DECLINED"; + readonly AUTO_DECLINED: "AUTO_DECLINED"; + readonly DECLINED_BY_USER: "DECLINED_BY_USER"; + readonly COUPON: "COUPON"; + readonly PURCHASED: "PURCHASED"; +}; +export type V1DiscountTaskStatus = typeof V1DiscountTaskStatus[keyof typeof V1DiscountTaskStatus]; +export declare function instanceOfV1DiscountTaskStatus(value: any): boolean; +export declare function V1DiscountTaskStatusFromJSON(json: any): V1DiscountTaskStatus; +export declare function V1DiscountTaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DiscountTaskStatus; +export declare function V1DiscountTaskStatusToJSON(value?: V1DiscountTaskStatus | null): any; diff --git a/dist/esm/models/V1DiscountTaskStatus.js b/dist/esm/models/V1DiscountTaskStatus.js new file mode 100644 index 0000000..47cf968 --- /dev/null +++ b/dist/esm/models/V1DiscountTaskStatus.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `NEW` — новая, + * - `SEEN` — просмотренная, + * - `APPROVED` — одобренная, + * - `PARTLY_APPROVED` — одобренная частично, + * - `DECLINED` — отклонённая, + * - `AUTO_DECLINED` — отклонена автоматически, + * - `DECLINED_BY_USER` — отклонена покупателем, + * - `COUPON` — скидка по купону, + * - `PURCHASED` — купленная. + * + * @export + */ +export const V1DiscountTaskStatus = { + NEW: 'NEW', + SEEN: 'SEEN', + APPROVED: 'APPROVED', + PARTLY_APPROVED: 'PARTLY_APPROVED', + DECLINED: 'DECLINED', + AUTO_DECLINED: 'AUTO_DECLINED', + DECLINED_BY_USER: 'DECLINED_BY_USER', + COUPON: 'COUPON', + PURCHASED: 'PURCHASED' +}; +export function instanceOfV1DiscountTaskStatus(value) { + for (const key in V1DiscountTaskStatus) { + if (Object.prototype.hasOwnProperty.call(V1DiscountTaskStatus, key)) { + if (V1DiscountTaskStatus[key] === value) { + return true; + } + } + } + return false; +} +export function V1DiscountTaskStatusFromJSON(json) { + return V1DiscountTaskStatusFromJSONTyped(json, false); +} +export function V1DiscountTaskStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DiscountTaskStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DraftClusterListRequest.d.ts b/dist/esm/models/V1DraftClusterListRequest.d.ts new file mode 100644 index 0000000..c88bbba --- /dev/null +++ b/dist/esm/models/V1DraftClusterListRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ClusterType } from './V1ClusterType'; +/** + * + * @export + * @interface V1DraftClusterListRequest + */ +export interface V1DraftClusterListRequest { + /** + * Идентификаторы кластеров. + * @type {Array} + * @memberof V1DraftClusterListRequest + */ + cluster_ids?: Array; + /** + * + * @type {V1ClusterType} + * @memberof V1DraftClusterListRequest + */ + cluster_type: V1ClusterType; +} +/** + * Check if a given object implements the V1DraftClusterListRequest interface. + */ +export declare function instanceOfV1DraftClusterListRequest(value: object): value is V1DraftClusterListRequest; +export declare function V1DraftClusterListRequestFromJSON(json: any): V1DraftClusterListRequest; +export declare function V1DraftClusterListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftClusterListRequest; +export declare function V1DraftClusterListRequestToJSON(value?: V1DraftClusterListRequest | null): any; diff --git a/dist/esm/models/V1DraftClusterListRequest.js b/dist/esm/models/V1DraftClusterListRequest.js new file mode 100644 index 0000000..372b519 --- /dev/null +++ b/dist/esm/models/V1DraftClusterListRequest.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ClusterTypeFromJSON, V1ClusterTypeToJSON, } from './V1ClusterType'; +/** + * Check if a given object implements the V1DraftClusterListRequest interface. + */ +export function instanceOfV1DraftClusterListRequest(value) { + if (!('cluster_type' in value) || value['cluster_type'] === undefined) + return false; + return true; +} +export function V1DraftClusterListRequestFromJSON(json) { + return V1DraftClusterListRequestFromJSONTyped(json, false); +} +export function V1DraftClusterListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_ids': json['cluster_ids'] == null ? undefined : json['cluster_ids'], + 'cluster_type': V1ClusterTypeFromJSON(json['cluster_type']), + }; +} +export function V1DraftClusterListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_ids': value['cluster_ids'], + 'cluster_type': V1ClusterTypeToJSON(value['cluster_type']), + }; +} diff --git a/dist/esm/models/V1DraftClusterListResponse.d.ts b/dist/esm/models/V1DraftClusterListResponse.d.ts new file mode 100644 index 0000000..b90bbf8 --- /dev/null +++ b/dist/esm/models/V1DraftClusterListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftClusterListResponseCluster } from './V1DraftClusterListResponseCluster'; +/** + * + * @export + * @interface V1DraftClusterListResponse + */ +export interface V1DraftClusterListResponse { + /** + * Кластеры. + * @type {Array} + * @memberof V1DraftClusterListResponse + */ + clusters?: Array; +} +/** + * Check if a given object implements the V1DraftClusterListResponse interface. + */ +export declare function instanceOfV1DraftClusterListResponse(value: object): value is V1DraftClusterListResponse; +export declare function V1DraftClusterListResponseFromJSON(json: any): V1DraftClusterListResponse; +export declare function V1DraftClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftClusterListResponse; +export declare function V1DraftClusterListResponseToJSON(value?: V1DraftClusterListResponse | null): any; diff --git a/dist/esm/models/V1DraftClusterListResponse.js b/dist/esm/models/V1DraftClusterListResponse.js new file mode 100644 index 0000000..a7bf25e --- /dev/null +++ b/dist/esm/models/V1DraftClusterListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftClusterListResponseClusterFromJSON, V1DraftClusterListResponseClusterToJSON, } from './V1DraftClusterListResponseCluster'; +/** + * Check if a given object implements the V1DraftClusterListResponse interface. + */ +export function instanceOfV1DraftClusterListResponse(value) { + return true; +} +export function V1DraftClusterListResponseFromJSON(json) { + return V1DraftClusterListResponseFromJSONTyped(json, false); +} +export function V1DraftClusterListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'clusters': json['clusters'] == null ? undefined : (json['clusters'].map(V1DraftClusterListResponseClusterFromJSON)), + }; +} +export function V1DraftClusterListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'clusters': value['clusters'] == null ? undefined : (value['clusters'].map(V1DraftClusterListResponseClusterToJSON)), + }; +} diff --git a/dist/esm/models/V1DraftClusterListResponseCluster.d.ts b/dist/esm/models/V1DraftClusterListResponseCluster.d.ts new file mode 100644 index 0000000..38a33cf --- /dev/null +++ b/dist/esm/models/V1DraftClusterListResponseCluster.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftClusterListResponseLogisticCluster } from './DraftClusterListResponseLogisticCluster'; +/** + * + * @export + * @interface V1DraftClusterListResponseCluster + */ +export interface V1DraftClusterListResponseCluster { + /** + * Идентификатор кластера. + * @type {number} + * @memberof V1DraftClusterListResponseCluster + */ + id?: number; + /** + * Информация о складах кластера. + * @type {Array} + * @memberof V1DraftClusterListResponseCluster + */ + logistic_clusters?: Array; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof V1DraftClusterListResponseCluster + */ + macrolocal_cluster_id?: number; + /** + * Название кластера. + * @type {string} + * @memberof V1DraftClusterListResponseCluster + */ + name?: string; + /** + * Тип кластера: + * - `CLUSTER_TYPE_OZON` — кластер в России, + * - `CLUSTER_TYPE_CIS` — кластер в СНГ. + * + * @type {string} + * @memberof V1DraftClusterListResponseCluster + */ + type?: V1DraftClusterListResponseClusterTypeEnum; +} +/** + * @export + */ +export declare const V1DraftClusterListResponseClusterTypeEnum: { + readonly OZON: "CLUSTER_TYPE_OZON"; + readonly CIS: "CLUSTER_TYPE_CIS"; +}; +export type V1DraftClusterListResponseClusterTypeEnum = typeof V1DraftClusterListResponseClusterTypeEnum[keyof typeof V1DraftClusterListResponseClusterTypeEnum]; +/** + * Check if a given object implements the V1DraftClusterListResponseCluster interface. + */ +export declare function instanceOfV1DraftClusterListResponseCluster(value: object): value is V1DraftClusterListResponseCluster; +export declare function V1DraftClusterListResponseClusterFromJSON(json: any): V1DraftClusterListResponseCluster; +export declare function V1DraftClusterListResponseClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftClusterListResponseCluster; +export declare function V1DraftClusterListResponseClusterToJSON(value?: V1DraftClusterListResponseCluster | null): any; diff --git a/dist/esm/models/V1DraftClusterListResponseCluster.js b/dist/esm/models/V1DraftClusterListResponseCluster.js new file mode 100644 index 0000000..7041c6f --- /dev/null +++ b/dist/esm/models/V1DraftClusterListResponseCluster.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DraftClusterListResponseLogisticClusterFromJSON, DraftClusterListResponseLogisticClusterToJSON, } from './DraftClusterListResponseLogisticCluster'; +/** + * @export + */ +export const V1DraftClusterListResponseClusterTypeEnum = { + OZON: 'CLUSTER_TYPE_OZON', + CIS: 'CLUSTER_TYPE_CIS' +}; +/** + * Check if a given object implements the V1DraftClusterListResponseCluster interface. + */ +export function instanceOfV1DraftClusterListResponseCluster(value) { + return true; +} +export function V1DraftClusterListResponseClusterFromJSON(json) { + return V1DraftClusterListResponseClusterFromJSONTyped(json, false); +} +export function V1DraftClusterListResponseClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'logistic_clusters': json['logistic_clusters'] == null ? undefined : (json['logistic_clusters'].map(DraftClusterListResponseLogisticClusterFromJSON)), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} +export function V1DraftClusterListResponseClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'logistic_clusters': value['logistic_clusters'] == null ? undefined : (value['logistic_clusters'].map(DraftClusterListResponseLogisticClusterToJSON)), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'name': value['name'], + 'type': value['type'], + }; +} diff --git a/dist/esm/models/V1DraftClusterListResponseWarehouse.d.ts b/dist/esm/models/V1DraftClusterListResponseWarehouse.d.ts new file mode 100644 index 0000000..eb692c9 --- /dev/null +++ b/dist/esm/models/V1DraftClusterListResponseWarehouse.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DraftClusterListResponseWarehouse + */ +export interface V1DraftClusterListResponseWarehouse { + /** + * Название склада. + * @type {string} + * @memberof V1DraftClusterListResponseWarehouse + */ + name?: string; + /** + * Тип склада: + * - `FULL_FILLMENT` — фулфилмент, + * - `EXPRESS_DARK_STORE` — даркстор, + * - `SORTING_CENTER` — сортировочный центр, + * - `ORDERS_RECEIVING_POINT` — пункт приёма заказов, + * - `CROSS_DOCK` — кросс-докинг, + * - `DISTRIBUTION_CENTER` — распределительный центр. + * + * @type {string} + * @memberof V1DraftClusterListResponseWarehouse + */ + type?: V1DraftClusterListResponseWarehouseTypeEnum; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1DraftClusterListResponseWarehouse + */ + warehouse_id?: number; +} +/** + * @export + */ +export declare const V1DraftClusterListResponseWarehouseTypeEnum: { + readonly FULL_FILLMENT: "FULL_FILLMENT"; + readonly EXPRESS_DARK_STORE: "EXPRESS_DARK_STORE"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly DISTRIBUTION_CENTER: "DISTRIBUTION_CENTER"; +}; +export type V1DraftClusterListResponseWarehouseTypeEnum = typeof V1DraftClusterListResponseWarehouseTypeEnum[keyof typeof V1DraftClusterListResponseWarehouseTypeEnum]; +/** + * Check if a given object implements the V1DraftClusterListResponseWarehouse interface. + */ +export declare function instanceOfV1DraftClusterListResponseWarehouse(value: object): value is V1DraftClusterListResponseWarehouse; +export declare function V1DraftClusterListResponseWarehouseFromJSON(json: any): V1DraftClusterListResponseWarehouse; +export declare function V1DraftClusterListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftClusterListResponseWarehouse; +export declare function V1DraftClusterListResponseWarehouseToJSON(value?: V1DraftClusterListResponseWarehouse | null): any; diff --git a/dist/esm/models/V1DraftClusterListResponseWarehouse.js b/dist/esm/models/V1DraftClusterListResponseWarehouse.js new file mode 100644 index 0000000..a7af14c --- /dev/null +++ b/dist/esm/models/V1DraftClusterListResponseWarehouse.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V1DraftClusterListResponseWarehouseTypeEnum = { + FULL_FILLMENT: 'FULL_FILLMENT', + EXPRESS_DARK_STORE: 'EXPRESS_DARK_STORE', + SORTING_CENTER: 'SORTING_CENTER', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + CROSS_DOCK: 'CROSS_DOCK', + DISTRIBUTION_CENTER: 'DISTRIBUTION_CENTER' +}; +/** + * Check if a given object implements the V1DraftClusterListResponseWarehouse interface. + */ +export function instanceOfV1DraftClusterListResponseWarehouse(value) { + return true; +} +export function V1DraftClusterListResponseWarehouseFromJSON(json) { + return V1DraftClusterListResponseWarehouseFromJSONTyped(json, false); +} +export function V1DraftClusterListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V1DraftClusterListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'type': value['type'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1DraftCreateCommonResponse.d.ts b/dist/esm/models/V1DraftCreateCommonResponse.d.ts new file mode 100644 index 0000000..de23779 --- /dev/null +++ b/dist/esm/models/V1DraftCreateCommonResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftCreateCommonResponseError } from './DraftCreateCommonResponseError'; +/** + * + * @export + * @interface V1DraftCreateCommonResponse + */ +export interface V1DraftCreateCommonResponse { + /** + * Идентификатор черновика. Используйте в методе [/v2/draft/create/info](#operation/DraftCreateInfo). + * @type {number} + * @memberof V1DraftCreateCommonResponse + */ + draft_id?: number; + /** + * Ошибки. + * @type {Array} + * @memberof V1DraftCreateCommonResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1DraftCreateCommonResponse interface. + */ +export declare function instanceOfV1DraftCreateCommonResponse(value: object): value is V1DraftCreateCommonResponse; +export declare function V1DraftCreateCommonResponseFromJSON(json: any): V1DraftCreateCommonResponse; +export declare function V1DraftCreateCommonResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCreateCommonResponse; +export declare function V1DraftCreateCommonResponseToJSON(value?: V1DraftCreateCommonResponse | null): any; diff --git a/dist/esm/models/V1DraftCreateCommonResponse.js b/dist/esm/models/V1DraftCreateCommonResponse.js new file mode 100644 index 0000000..12ee22c --- /dev/null +++ b/dist/esm/models/V1DraftCreateCommonResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DraftCreateCommonResponseErrorFromJSON, DraftCreateCommonResponseErrorToJSON, } from './DraftCreateCommonResponseError'; +/** + * Check if a given object implements the V1DraftCreateCommonResponse interface. + */ +export function instanceOfV1DraftCreateCommonResponse(value) { + return true; +} +export function V1DraftCreateCommonResponseFromJSON(json) { + return V1DraftCreateCommonResponseFromJSONTyped(json, false); +} +export function V1DraftCreateCommonResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(DraftCreateCommonResponseErrorFromJSON)), + }; +} +export function V1DraftCreateCommonResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(DraftCreateCommonResponseErrorToJSON)), + }; +} diff --git a/dist/esm/models/V1DraftCrossdockCreateRequest.d.ts b/dist/esm/models/V1DraftCrossdockCreateRequest.d.ts new file mode 100644 index 0000000..91d6095 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftCrossdockCreateRequestClusterInfo } from './V1DraftCrossdockCreateRequestClusterInfo'; +import type { V1DraftCrossdockCreateRequestDeleteSkuModeEnum } from './V1DraftCrossdockCreateRequestDeleteSkuModeEnum'; +import type { V1DraftCrossdockCreateRequestDeliveryInfo } from './V1DraftCrossdockCreateRequestDeliveryInfo'; +/** + * + * @export + * @interface V1DraftCrossdockCreateRequest + */ +export interface V1DraftCrossdockCreateRequest { + /** + * + * @type {V1DraftCrossdockCreateRequestClusterInfo} + * @memberof V1DraftCrossdockCreateRequest + */ + cluster_info: V1DraftCrossdockCreateRequestClusterInfo; + /** + * + * @type {V1DraftCrossdockCreateRequestDeleteSkuModeEnum} + * @memberof V1DraftCrossdockCreateRequest + */ + deletion_sku_mode: V1DraftCrossdockCreateRequestDeleteSkuModeEnum; + /** + * + * @type {V1DraftCrossdockCreateRequestDeliveryInfo} + * @memberof V1DraftCrossdockCreateRequest + */ + delivery_info: V1DraftCrossdockCreateRequestDeliveryInfo; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequest interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequest(value: object): value is V1DraftCrossdockCreateRequest; +export declare function V1DraftCrossdockCreateRequestFromJSON(json: any): V1DraftCrossdockCreateRequest; +export declare function V1DraftCrossdockCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequest; +export declare function V1DraftCrossdockCreateRequestToJSON(value?: V1DraftCrossdockCreateRequest | null): any; diff --git a/dist/esm/models/V1DraftCrossdockCreateRequest.js b/dist/esm/models/V1DraftCrossdockCreateRequest.js new file mode 100644 index 0000000..3c476e5 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequest.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftCrossdockCreateRequestClusterInfoFromJSON, V1DraftCrossdockCreateRequestClusterInfoToJSON, } from './V1DraftCrossdockCreateRequestClusterInfo'; +import { V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON, V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON, } from './V1DraftCrossdockCreateRequestDeleteSkuModeEnum'; +import { V1DraftCrossdockCreateRequestDeliveryInfoFromJSON, V1DraftCrossdockCreateRequestDeliveryInfoToJSON, } from './V1DraftCrossdockCreateRequestDeliveryInfo'; +/** + * Check if a given object implements the V1DraftCrossdockCreateRequest interface. + */ +export function instanceOfV1DraftCrossdockCreateRequest(value) { + if (!('cluster_info' in value) || value['cluster_info'] === undefined) + return false; + if (!('deletion_sku_mode' in value) || value['deletion_sku_mode'] === undefined) + return false; + if (!('delivery_info' in value) || value['delivery_info'] === undefined) + return false; + return true; +} +export function V1DraftCrossdockCreateRequestFromJSON(json) { + return V1DraftCrossdockCreateRequestFromJSONTyped(json, false); +} +export function V1DraftCrossdockCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_info': V1DraftCrossdockCreateRequestClusterInfoFromJSON(json['cluster_info']), + 'deletion_sku_mode': V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON(json['deletion_sku_mode']), + 'delivery_info': V1DraftCrossdockCreateRequestDeliveryInfoFromJSON(json['delivery_info']), + }; +} +export function V1DraftCrossdockCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_info': V1DraftCrossdockCreateRequestClusterInfoToJSON(value['cluster_info']), + 'deletion_sku_mode': V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON(value['deletion_sku_mode']), + 'delivery_info': V1DraftCrossdockCreateRequestDeliveryInfoToJSON(value['delivery_info']), + }; +} diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfo.d.ts b/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfo.d.ts new file mode 100644 index 0000000..7f77197 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftCrossdockCreateRequestClusterInfoItem } from './V1DraftCrossdockCreateRequestClusterInfoItem'; +/** + * Информация о кластере. + * @export + * @interface V1DraftCrossdockCreateRequestClusterInfo + */ +export interface V1DraftCrossdockCreateRequestClusterInfo { + /** + * Товарный состав заявки на поставку. + * @type {Array} + * @memberof V1DraftCrossdockCreateRequestClusterInfo + */ + items: Array; + /** + * Идентификатор кластера размещения. Получите значение параметра методом [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {number} + * @memberof V1DraftCrossdockCreateRequestClusterInfo + */ + macrolocal_cluster_id: number; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestClusterInfo interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequestClusterInfo(value: object): value is V1DraftCrossdockCreateRequestClusterInfo; +export declare function V1DraftCrossdockCreateRequestClusterInfoFromJSON(json: any): V1DraftCrossdockCreateRequestClusterInfo; +export declare function V1DraftCrossdockCreateRequestClusterInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestClusterInfo; +export declare function V1DraftCrossdockCreateRequestClusterInfoToJSON(value?: V1DraftCrossdockCreateRequestClusterInfo | null): any; diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfo.js b/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfo.js new file mode 100644 index 0000000..2d578d9 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftCrossdockCreateRequestClusterInfoItemFromJSON, V1DraftCrossdockCreateRequestClusterInfoItemToJSON, } from './V1DraftCrossdockCreateRequestClusterInfoItem'; +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestClusterInfo interface. + */ +export function instanceOfV1DraftCrossdockCreateRequestClusterInfo(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('macrolocal_cluster_id' in value) || value['macrolocal_cluster_id'] === undefined) + return false; + return true; +} +export function V1DraftCrossdockCreateRequestClusterInfoFromJSON(json) { + return V1DraftCrossdockCreateRequestClusterInfoFromJSONTyped(json, false); +} +export function V1DraftCrossdockCreateRequestClusterInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(V1DraftCrossdockCreateRequestClusterInfoItemFromJSON)), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'], + }; +} +export function V1DraftCrossdockCreateRequestClusterInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(V1DraftCrossdockCreateRequestClusterInfoItemToJSON)), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + }; +} diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfoItem.d.ts b/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfoItem.d.ts new file mode 100644 index 0000000..b30b50a --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfoItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DraftCrossdockCreateRequestClusterInfoItem + */ +export interface V1DraftCrossdockCreateRequestClusterInfoItem { + /** + * Количество. + * @type {number} + * @memberof V1DraftCrossdockCreateRequestClusterInfoItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1DraftCrossdockCreateRequestClusterInfoItem + */ + sku: number; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestClusterInfoItem interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequestClusterInfoItem(value: object): value is V1DraftCrossdockCreateRequestClusterInfoItem; +export declare function V1DraftCrossdockCreateRequestClusterInfoItemFromJSON(json: any): V1DraftCrossdockCreateRequestClusterInfoItem; +export declare function V1DraftCrossdockCreateRequestClusterInfoItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestClusterInfoItem; +export declare function V1DraftCrossdockCreateRequestClusterInfoItemToJSON(value?: V1DraftCrossdockCreateRequestClusterInfoItem | null): any; diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfoItem.js b/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfoItem.js new file mode 100644 index 0000000..a3987bb --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestClusterInfoItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestClusterInfoItem interface. + */ +export function instanceOfV1DraftCrossdockCreateRequestClusterInfoItem(value) { + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1DraftCrossdockCreateRequestClusterInfoItemFromJSON(json) { + return V1DraftCrossdockCreateRequestClusterInfoItemFromJSONTyped(json, false); +} +export function V1DraftCrossdockCreateRequestClusterInfoItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +export function V1DraftCrossdockCreateRequestClusterInfoItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.d.ts b/dist/esm/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.d.ts new file mode 100644 index 0000000..49ef9c5 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export declare const V1DraftCrossdockCreateRequestDeleteSkuModeEnum: { + readonly FULL: "FULL"; + readonly PARTIAL: "PARTIAL"; +}; +export type V1DraftCrossdockCreateRequestDeleteSkuModeEnum = typeof V1DraftCrossdockCreateRequestDeleteSkuModeEnum[keyof typeof V1DraftCrossdockCreateRequestDeleteSkuModeEnum]; +export declare function instanceOfV1DraftCrossdockCreateRequestDeleteSkuModeEnum(value: any): boolean; +export declare function V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON(json: any): V1DraftCrossdockCreateRequestDeleteSkuModeEnum; +export declare function V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeleteSkuModeEnum; +export declare function V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON(value?: V1DraftCrossdockCreateRequestDeleteSkuModeEnum | null): any; diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.js b/dist/esm/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.js new file mode 100644 index 0000000..db7d9b1 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export const V1DraftCrossdockCreateRequestDeleteSkuModeEnum = { + FULL: 'FULL', + PARTIAL: 'PARTIAL' +}; +export function instanceOfV1DraftCrossdockCreateRequestDeleteSkuModeEnum(value) { + for (const key in V1DraftCrossdockCreateRequestDeleteSkuModeEnum) { + if (Object.prototype.hasOwnProperty.call(V1DraftCrossdockCreateRequestDeleteSkuModeEnum, key)) { + if (V1DraftCrossdockCreateRequestDeleteSkuModeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON(json) { + return V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSONTyped(json, false); +} +export function V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfo.d.ts b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfo.d.ts new file mode 100644 index 0000000..35f4ccd --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfo.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum } from './V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum'; +import type { V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse } from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse'; +/** + * Информация о доставке. + * @export + * @interface V1DraftCrossdockCreateRequestDeliveryInfo + */ +export interface V1DraftCrossdockCreateRequestDeliveryInfo { + /** + * + * @type {V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfo + */ + drop_off_warehouse?: V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; + /** + * Идентификатор склада продавца. Если `type = PICKUP`, параметр обязательный.

Получите значение параметра методом [/v1/warehouse/fbo/seller/list](#operation/WarehouseFboSellerList). + * @type {number} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfo + */ + seller_warehouse_id?: number; + /** + * + * @type {V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfo + */ + type: V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestDeliveryInfo interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequestDeliveryInfo(value: object): value is V1DraftCrossdockCreateRequestDeliveryInfo; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoFromJSON(json: any): V1DraftCrossdockCreateRequestDeliveryInfo; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeliveryInfo; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoToJSON(value?: V1DraftCrossdockCreateRequestDeliveryInfo | null): any; diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfo.js b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfo.js new file mode 100644 index 0000000..5f4740c --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfo.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON, V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON, } from './V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum'; +import { V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON, V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON, } from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse'; +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestDeliveryInfo interface. + */ +export function instanceOfV1DraftCrossdockCreateRequestDeliveryInfo(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function V1DraftCrossdockCreateRequestDeliveryInfoFromJSON(json) { + return V1DraftCrossdockCreateRequestDeliveryInfoFromJSONTyped(json, false); +} +export function V1DraftCrossdockCreateRequestDeliveryInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_warehouse': json['drop_off_warehouse'] == null ? undefined : V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json['drop_off_warehouse']), + 'seller_warehouse_id': json['seller_warehouse_id'] == null ? undefined : json['seller_warehouse_id'], + 'type': V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON(json['type']), + }; +} +export function V1DraftCrossdockCreateRequestDeliveryInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_warehouse': V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON(value['drop_off_warehouse']), + 'seller_warehouse_id': value['seller_warehouse_id'], + 'type': V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.d.ts b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.d.ts new file mode 100644 index 0000000..34e578a --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum } from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +/** + * Информация о пункте отгрузки. Если `type = DROPOFF`, параметр обязательный. + * @export + * @interface V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse + */ +export interface V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse + */ + warehouse_id: number; + /** + * + * @type {V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse + */ + warehouse_type: V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse(value: object): value is V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json: any): V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON(value?: V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse | null): any; diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.js b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.js new file mode 100644 index 0000000..0962657 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON, V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON, } from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse interface. + */ +export function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + if (!('warehouse_type' in value) || value['warehouse_type'] === undefined) + return false; + return true; +} +export function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json) { + return V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json, false); +} +export function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + 'warehouse_type': V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json['warehouse_type']), + }; +} +export function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + 'warehouse_type': V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value['warehouse_type']), + }; +} diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts new file mode 100644 index 0000000..d71d254 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада, пункта выдачи заказов или сортировочного центра: + * - `DELIVERY_POINT` — пункт выдачи заказов; + * - `SORTING_CENTER` — сортировочный центр; + * - `CROSS_DOCK` — кросс-докинг; + * - `ORDERS_RECEIVING_POINT` — специализированный пункт приёма заказов; + * - `FULL_FILLMENT` — фулфилмент. + * + * @export + */ +export declare const V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum: { + readonly DELIVERY_POINT: "DELIVERY_POINT"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly FULL_FILLMENT: "FULL_FILLMENT"; +}; +export type V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = typeof V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum[keyof typeof V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum]; +export declare function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum(value: any): boolean; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json: any): V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value?: V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum | null): any; diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js new file mode 100644 index 0000000..21fa7ff --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада, пункта выдачи заказов или сортировочного центра: + * - `DELIVERY_POINT` — пункт выдачи заказов; + * - `SORTING_CENTER` — сортировочный центр; + * - `CROSS_DOCK` — кросс-докинг; + * - `ORDERS_RECEIVING_POINT` — специализированный пункт приёма заказов; + * - `FULL_FILLMENT` — фулфилмент. + * + * @export + */ +export const V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = { + DELIVERY_POINT: 'DELIVERY_POINT', + SORTING_CENTER: 'SORTING_CENTER', + CROSS_DOCK: 'CROSS_DOCK', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + FULL_FILLMENT: 'FULL_FILLMENT' +}; +export function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum(value) { + for (const key in V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum, key)) { + if (V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json) { + return V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json, false); +} +export function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.d.ts b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.d.ts new file mode 100644 index 0000000..aa8cf59 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `DROPOFF` — отгрузка заказов в пункт приёма; + * - `PICKUP`— отгрузка заказов курьеру. + * + * @export + */ +export declare const V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum: { + readonly DROPOFF: "DROPOFF"; + readonly PICKUP: "PICKUP"; +}; +export type V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum = typeof V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum[keyof typeof V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum]; +export declare function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoTypeEnum(value: any): boolean; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON(json: any): V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON(value?: V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum | null): any; diff --git a/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.js b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.js new file mode 100644 index 0000000..56c4fa0 --- /dev/null +++ b/dist/esm/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `DROPOFF` — отгрузка заказов в пункт приёма; + * - `PICKUP`— отгрузка заказов курьеру. + * + * @export + */ +export const V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum = { + DROPOFF: 'DROPOFF', + PICKUP: 'PICKUP' +}; +export function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoTypeEnum(value) { + for (const key in V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum, key)) { + if (V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON(json) { + return V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json, false); +} +export function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DraftDirectCreateRequest.d.ts b/dist/esm/models/V1DraftDirectCreateRequest.d.ts new file mode 100644 index 0000000..9031acd --- /dev/null +++ b/dist/esm/models/V1DraftDirectCreateRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftDirectCreateRequestDeleteSkuModeEnum } from './V1DraftDirectCreateRequestDeleteSkuModeEnum'; +import type { V1DraftDirectCreateRequestClusterInfo } from './V1DraftDirectCreateRequestClusterInfo'; +/** + * + * @export + * @interface V1DraftDirectCreateRequest + */ +export interface V1DraftDirectCreateRequest { + /** + * + * @type {V1DraftDirectCreateRequestClusterInfo} + * @memberof V1DraftDirectCreateRequest + */ + cluster_info: V1DraftDirectCreateRequestClusterInfo; + /** + * + * @type {V1DraftDirectCreateRequestDeleteSkuModeEnum} + * @memberof V1DraftDirectCreateRequest + */ + deletion_sku_mode: V1DraftDirectCreateRequestDeleteSkuModeEnum; +} +/** + * Check if a given object implements the V1DraftDirectCreateRequest interface. + */ +export declare function instanceOfV1DraftDirectCreateRequest(value: object): value is V1DraftDirectCreateRequest; +export declare function V1DraftDirectCreateRequestFromJSON(json: any): V1DraftDirectCreateRequest; +export declare function V1DraftDirectCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftDirectCreateRequest; +export declare function V1DraftDirectCreateRequestToJSON(value?: V1DraftDirectCreateRequest | null): any; diff --git a/dist/esm/models/V1DraftDirectCreateRequest.js b/dist/esm/models/V1DraftDirectCreateRequest.js new file mode 100644 index 0000000..c89b7be --- /dev/null +++ b/dist/esm/models/V1DraftDirectCreateRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON, V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON, } from './V1DraftDirectCreateRequestDeleteSkuModeEnum'; +import { V1DraftDirectCreateRequestClusterInfoFromJSON, V1DraftDirectCreateRequestClusterInfoToJSON, } from './V1DraftDirectCreateRequestClusterInfo'; +/** + * Check if a given object implements the V1DraftDirectCreateRequest interface. + */ +export function instanceOfV1DraftDirectCreateRequest(value) { + if (!('cluster_info' in value) || value['cluster_info'] === undefined) + return false; + if (!('deletion_sku_mode' in value) || value['deletion_sku_mode'] === undefined) + return false; + return true; +} +export function V1DraftDirectCreateRequestFromJSON(json) { + return V1DraftDirectCreateRequestFromJSONTyped(json, false); +} +export function V1DraftDirectCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_info': V1DraftDirectCreateRequestClusterInfoFromJSON(json['cluster_info']), + 'deletion_sku_mode': V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON(json['deletion_sku_mode']), + }; +} +export function V1DraftDirectCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_info': V1DraftDirectCreateRequestClusterInfoToJSON(value['cluster_info']), + 'deletion_sku_mode': V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON(value['deletion_sku_mode']), + }; +} diff --git a/dist/esm/models/V1DraftDirectCreateRequestClusterInfo.d.ts b/dist/esm/models/V1DraftDirectCreateRequestClusterInfo.d.ts new file mode 100644 index 0000000..f7ab3dc --- /dev/null +++ b/dist/esm/models/V1DraftDirectCreateRequestClusterInfo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftDirectCreateRequestClusterInfoItem } from './V1DraftDirectCreateRequestClusterInfoItem'; +/** + * Информация о кластере. + * @export + * @interface V1DraftDirectCreateRequestClusterInfo + */ +export interface V1DraftDirectCreateRequestClusterInfo { + /** + * Товарный состав заявки на поставку. + * @type {Array} + * @memberof V1DraftDirectCreateRequestClusterInfo + */ + items: Array; + /** + * Идентификатор кластера размещения. Получите значение параметра методом [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {number} + * @memberof V1DraftDirectCreateRequestClusterInfo + */ + macrolocal_cluster_id: number; +} +/** + * Check if a given object implements the V1DraftDirectCreateRequestClusterInfo interface. + */ +export declare function instanceOfV1DraftDirectCreateRequestClusterInfo(value: object): value is V1DraftDirectCreateRequestClusterInfo; +export declare function V1DraftDirectCreateRequestClusterInfoFromJSON(json: any): V1DraftDirectCreateRequestClusterInfo; +export declare function V1DraftDirectCreateRequestClusterInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftDirectCreateRequestClusterInfo; +export declare function V1DraftDirectCreateRequestClusterInfoToJSON(value?: V1DraftDirectCreateRequestClusterInfo | null): any; diff --git a/dist/esm/models/V1DraftDirectCreateRequestClusterInfo.js b/dist/esm/models/V1DraftDirectCreateRequestClusterInfo.js new file mode 100644 index 0000000..4e28285 --- /dev/null +++ b/dist/esm/models/V1DraftDirectCreateRequestClusterInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftDirectCreateRequestClusterInfoItemFromJSON, V1DraftDirectCreateRequestClusterInfoItemToJSON, } from './V1DraftDirectCreateRequestClusterInfoItem'; +/** + * Check if a given object implements the V1DraftDirectCreateRequestClusterInfo interface. + */ +export function instanceOfV1DraftDirectCreateRequestClusterInfo(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('macrolocal_cluster_id' in value) || value['macrolocal_cluster_id'] === undefined) + return false; + return true; +} +export function V1DraftDirectCreateRequestClusterInfoFromJSON(json) { + return V1DraftDirectCreateRequestClusterInfoFromJSONTyped(json, false); +} +export function V1DraftDirectCreateRequestClusterInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(V1DraftDirectCreateRequestClusterInfoItemFromJSON)), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'], + }; +} +export function V1DraftDirectCreateRequestClusterInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(V1DraftDirectCreateRequestClusterInfoItemToJSON)), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + }; +} diff --git a/dist/esm/models/V1DraftDirectCreateRequestClusterInfoItem.d.ts b/dist/esm/models/V1DraftDirectCreateRequestClusterInfoItem.d.ts new file mode 100644 index 0000000..9c258ee --- /dev/null +++ b/dist/esm/models/V1DraftDirectCreateRequestClusterInfoItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DraftDirectCreateRequestClusterInfoItem + */ +export interface V1DraftDirectCreateRequestClusterInfoItem { + /** + * Количество. + * @type {number} + * @memberof V1DraftDirectCreateRequestClusterInfoItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1DraftDirectCreateRequestClusterInfoItem + */ + sku: number; +} +/** + * Check if a given object implements the V1DraftDirectCreateRequestClusterInfoItem interface. + */ +export declare function instanceOfV1DraftDirectCreateRequestClusterInfoItem(value: object): value is V1DraftDirectCreateRequestClusterInfoItem; +export declare function V1DraftDirectCreateRequestClusterInfoItemFromJSON(json: any): V1DraftDirectCreateRequestClusterInfoItem; +export declare function V1DraftDirectCreateRequestClusterInfoItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftDirectCreateRequestClusterInfoItem; +export declare function V1DraftDirectCreateRequestClusterInfoItemToJSON(value?: V1DraftDirectCreateRequestClusterInfoItem | null): any; diff --git a/dist/esm/models/V1DraftDirectCreateRequestClusterInfoItem.js b/dist/esm/models/V1DraftDirectCreateRequestClusterInfoItem.js new file mode 100644 index 0000000..27db924 --- /dev/null +++ b/dist/esm/models/V1DraftDirectCreateRequestClusterInfoItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DraftDirectCreateRequestClusterInfoItem interface. + */ +export function instanceOfV1DraftDirectCreateRequestClusterInfoItem(value) { + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1DraftDirectCreateRequestClusterInfoItemFromJSON(json) { + return V1DraftDirectCreateRequestClusterInfoItemFromJSONTyped(json, false); +} +export function V1DraftDirectCreateRequestClusterInfoItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +export function V1DraftDirectCreateRequestClusterInfoItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.d.ts b/dist/esm/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.d.ts new file mode 100644 index 0000000..29678dd --- /dev/null +++ b/dist/esm/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export declare const V1DraftDirectCreateRequestDeleteSkuModeEnum: { + readonly FULL: "FULL"; + readonly PARTIAL: "PARTIAL"; +}; +export type V1DraftDirectCreateRequestDeleteSkuModeEnum = typeof V1DraftDirectCreateRequestDeleteSkuModeEnum[keyof typeof V1DraftDirectCreateRequestDeleteSkuModeEnum]; +export declare function instanceOfV1DraftDirectCreateRequestDeleteSkuModeEnum(value: any): boolean; +export declare function V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON(json: any): V1DraftDirectCreateRequestDeleteSkuModeEnum; +export declare function V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftDirectCreateRequestDeleteSkuModeEnum; +export declare function V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON(value?: V1DraftDirectCreateRequestDeleteSkuModeEnum | null): any; diff --git a/dist/esm/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.js b/dist/esm/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.js new file mode 100644 index 0000000..2729251 --- /dev/null +++ b/dist/esm/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export const V1DraftDirectCreateRequestDeleteSkuModeEnum = { + FULL: 'FULL', + PARTIAL: 'PARTIAL' +}; +export function instanceOfV1DraftDirectCreateRequestDeleteSkuModeEnum(value) { + for (const key in V1DraftDirectCreateRequestDeleteSkuModeEnum) { + if (Object.prototype.hasOwnProperty.call(V1DraftDirectCreateRequestDeleteSkuModeEnum, key)) { + if (V1DraftDirectCreateRequestDeleteSkuModeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON(json) { + return V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSONTyped(json, false); +} +export function V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DraftGetWarehouseFboListRequest.d.ts b/dist/esm/models/V1DraftGetWarehouseFboListRequest.d.ts new file mode 100644 index 0000000..de87eac --- /dev/null +++ b/dist/esm/models/V1DraftGetWarehouseFboListRequest.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CreateType } from './V1CreateType'; +/** + * + * @export + * @interface V1DraftGetWarehouseFboListRequest + */ +export interface V1DraftGetWarehouseFboListRequest { + /** + * Тип поставки: + * - `CREATE_TYPE_CROSSDOCK` — кросс-докинг, + * - `CREATE_TYPE_DIRECT` — прямая. + * + * @type {Array} + * @memberof V1DraftGetWarehouseFboListRequest + */ + filter_by_supply_type: Array; + /** + * Поиск по названию склада. Для поиска пунктов выдачи заказов укажите полное название. + * @type {string} + * @memberof V1DraftGetWarehouseFboListRequest + */ + search: string; +} +/** + * Check if a given object implements the V1DraftGetWarehouseFboListRequest interface. + */ +export declare function instanceOfV1DraftGetWarehouseFboListRequest(value: object): value is V1DraftGetWarehouseFboListRequest; +export declare function V1DraftGetWarehouseFboListRequestFromJSON(json: any): V1DraftGetWarehouseFboListRequest; +export declare function V1DraftGetWarehouseFboListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftGetWarehouseFboListRequest; +export declare function V1DraftGetWarehouseFboListRequestToJSON(value?: V1DraftGetWarehouseFboListRequest | null): any; diff --git a/dist/esm/models/V1DraftGetWarehouseFboListRequest.js b/dist/esm/models/V1DraftGetWarehouseFboListRequest.js new file mode 100644 index 0000000..2cf3bae --- /dev/null +++ b/dist/esm/models/V1DraftGetWarehouseFboListRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CreateTypeFromJSON, V1CreateTypeToJSON, } from './V1CreateType'; +/** + * Check if a given object implements the V1DraftGetWarehouseFboListRequest interface. + */ +export function instanceOfV1DraftGetWarehouseFboListRequest(value) { + if (!('filter_by_supply_type' in value) || value['filter_by_supply_type'] === undefined) + return false; + if (!('search' in value) || value['search'] === undefined) + return false; + return true; +} +export function V1DraftGetWarehouseFboListRequestFromJSON(json) { + return V1DraftGetWarehouseFboListRequestFromJSONTyped(json, false); +} +export function V1DraftGetWarehouseFboListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter_by_supply_type': (json['filter_by_supply_type'].map(V1CreateTypeFromJSON)), + 'search': json['search'], + }; +} +export function V1DraftGetWarehouseFboListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter_by_supply_type': (value['filter_by_supply_type'].map(V1CreateTypeToJSON)), + 'search': value['search'], + }; +} diff --git a/dist/esm/models/V1DraftGetWarehouseFboListResponse.d.ts b/dist/esm/models/V1DraftGetWarehouseFboListResponse.d.ts new file mode 100644 index 0000000..6c4d009 --- /dev/null +++ b/dist/esm/models/V1DraftGetWarehouseFboListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftGetWarehouseFboListResponseSearch } from './DraftGetWarehouseFboListResponseSearch'; +/** + * + * @export + * @interface V1DraftGetWarehouseFboListResponse + */ +export interface V1DraftGetWarehouseFboListResponse { + /** + * Результат поиска складов. + * @type {Array} + * @memberof V1DraftGetWarehouseFboListResponse + */ + search?: Array; +} +/** + * Check if a given object implements the V1DraftGetWarehouseFboListResponse interface. + */ +export declare function instanceOfV1DraftGetWarehouseFboListResponse(value: object): value is V1DraftGetWarehouseFboListResponse; +export declare function V1DraftGetWarehouseFboListResponseFromJSON(json: any): V1DraftGetWarehouseFboListResponse; +export declare function V1DraftGetWarehouseFboListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftGetWarehouseFboListResponse; +export declare function V1DraftGetWarehouseFboListResponseToJSON(value?: V1DraftGetWarehouseFboListResponse | null): any; diff --git a/dist/esm/models/V1DraftGetWarehouseFboListResponse.js b/dist/esm/models/V1DraftGetWarehouseFboListResponse.js new file mode 100644 index 0000000..1103c29 --- /dev/null +++ b/dist/esm/models/V1DraftGetWarehouseFboListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DraftGetWarehouseFboListResponseSearchFromJSON, DraftGetWarehouseFboListResponseSearchToJSON, } from './DraftGetWarehouseFboListResponseSearch'; +/** + * Check if a given object implements the V1DraftGetWarehouseFboListResponse interface. + */ +export function instanceOfV1DraftGetWarehouseFboListResponse(value) { + return true; +} +export function V1DraftGetWarehouseFboListResponseFromJSON(json) { + return V1DraftGetWarehouseFboListResponseFromJSONTyped(json, false); +} +export function V1DraftGetWarehouseFboListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'search': json['search'] == null ? undefined : (json['search'].map(DraftGetWarehouseFboListResponseSearchFromJSON)), + }; +} +export function V1DraftGetWarehouseFboListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'search': value['search'] == null ? undefined : (value['search'].map(DraftGetWarehouseFboListResponseSearchToJSON)), + }; +} diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequest.d.ts b/dist/esm/models/V1DraftMultiClusterCreateRequest.d.ts new file mode 100644 index 0000000..07ebe3d --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftMultiClusterCreateRequestDeleteSkuModeEnum } from './V1DraftMultiClusterCreateRequestDeleteSkuModeEnum'; +import type { V1DraftMultiClusterCreateRequestDeliveryInfo } from './V1DraftMultiClusterCreateRequestDeliveryInfo'; +import type { V1DraftMultiClusterCreateRequestClusterInfo } from './V1DraftMultiClusterCreateRequestClusterInfo'; +/** + * + * @export + * @interface V1DraftMultiClusterCreateRequest + */ +export interface V1DraftMultiClusterCreateRequest { + /** + * Информация о кластерах. + * @type {Array} + * @memberof V1DraftMultiClusterCreateRequest + */ + clusters_info: Array; + /** + * + * @type {V1DraftMultiClusterCreateRequestDeleteSkuModeEnum} + * @memberof V1DraftMultiClusterCreateRequest + */ + deletion_sku_mode: V1DraftMultiClusterCreateRequestDeleteSkuModeEnum; + /** + * + * @type {V1DraftMultiClusterCreateRequestDeliveryInfo} + * @memberof V1DraftMultiClusterCreateRequest + */ + delivery_info: V1DraftMultiClusterCreateRequestDeliveryInfo; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequest interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequest(value: object): value is V1DraftMultiClusterCreateRequest; +export declare function V1DraftMultiClusterCreateRequestFromJSON(json: any): V1DraftMultiClusterCreateRequest; +export declare function V1DraftMultiClusterCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequest; +export declare function V1DraftMultiClusterCreateRequestToJSON(value?: V1DraftMultiClusterCreateRequest | null): any; diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequest.js b/dist/esm/models/V1DraftMultiClusterCreateRequest.js new file mode 100644 index 0000000..19d597a --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequest.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON, V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON, } from './V1DraftMultiClusterCreateRequestDeleteSkuModeEnum'; +import { V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON, V1DraftMultiClusterCreateRequestDeliveryInfoToJSON, } from './V1DraftMultiClusterCreateRequestDeliveryInfo'; +import { V1DraftMultiClusterCreateRequestClusterInfoFromJSON, V1DraftMultiClusterCreateRequestClusterInfoToJSON, } from './V1DraftMultiClusterCreateRequestClusterInfo'; +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequest interface. + */ +export function instanceOfV1DraftMultiClusterCreateRequest(value) { + if (!('clusters_info' in value) || value['clusters_info'] === undefined) + return false; + if (!('deletion_sku_mode' in value) || value['deletion_sku_mode'] === undefined) + return false; + if (!('delivery_info' in value) || value['delivery_info'] === undefined) + return false; + return true; +} +export function V1DraftMultiClusterCreateRequestFromJSON(json) { + return V1DraftMultiClusterCreateRequestFromJSONTyped(json, false); +} +export function V1DraftMultiClusterCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'clusters_info': (json['clusters_info'].map(V1DraftMultiClusterCreateRequestClusterInfoFromJSON)), + 'deletion_sku_mode': V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON(json['deletion_sku_mode']), + 'delivery_info': V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON(json['delivery_info']), + }; +} +export function V1DraftMultiClusterCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'clusters_info': (value['clusters_info'].map(V1DraftMultiClusterCreateRequestClusterInfoToJSON)), + 'deletion_sku_mode': V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON(value['deletion_sku_mode']), + 'delivery_info': V1DraftMultiClusterCreateRequestDeliveryInfoToJSON(value['delivery_info']), + }; +} diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfo.d.ts b/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfo.d.ts new file mode 100644 index 0000000..6de8900 --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftMultiClusterCreateRequestClusterInfoItem } from './V1DraftMultiClusterCreateRequestClusterInfoItem'; +/** + * + * @export + * @interface V1DraftMultiClusterCreateRequestClusterInfo + */ +export interface V1DraftMultiClusterCreateRequestClusterInfo { + /** + * Товарный состав заявки на поставку. + * @type {Array} + * @memberof V1DraftMultiClusterCreateRequestClusterInfo + */ + items: Array; + /** + * Идентификатор кластера размещения. Получите значение параметра методом [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestClusterInfo + */ + macrolocal_cluster_id: number; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestClusterInfo interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequestClusterInfo(value: object): value is V1DraftMultiClusterCreateRequestClusterInfo; +export declare function V1DraftMultiClusterCreateRequestClusterInfoFromJSON(json: any): V1DraftMultiClusterCreateRequestClusterInfo; +export declare function V1DraftMultiClusterCreateRequestClusterInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestClusterInfo; +export declare function V1DraftMultiClusterCreateRequestClusterInfoToJSON(value?: V1DraftMultiClusterCreateRequestClusterInfo | null): any; diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfo.js b/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfo.js new file mode 100644 index 0000000..2fc8e6b --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON, V1DraftMultiClusterCreateRequestClusterInfoItemToJSON, } from './V1DraftMultiClusterCreateRequestClusterInfoItem'; +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestClusterInfo interface. + */ +export function instanceOfV1DraftMultiClusterCreateRequestClusterInfo(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('macrolocal_cluster_id' in value) || value['macrolocal_cluster_id'] === undefined) + return false; + return true; +} +export function V1DraftMultiClusterCreateRequestClusterInfoFromJSON(json) { + return V1DraftMultiClusterCreateRequestClusterInfoFromJSONTyped(json, false); +} +export function V1DraftMultiClusterCreateRequestClusterInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON)), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'], + }; +} +export function V1DraftMultiClusterCreateRequestClusterInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(V1DraftMultiClusterCreateRequestClusterInfoItemToJSON)), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + }; +} diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfoItem.d.ts b/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfoItem.d.ts new file mode 100644 index 0000000..4a85159 --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfoItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DraftMultiClusterCreateRequestClusterInfoItem + */ +export interface V1DraftMultiClusterCreateRequestClusterInfoItem { + /** + * Количество. + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestClusterInfoItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestClusterInfoItem + */ + sku: number; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestClusterInfoItem interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequestClusterInfoItem(value: object): value is V1DraftMultiClusterCreateRequestClusterInfoItem; +export declare function V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON(json: any): V1DraftMultiClusterCreateRequestClusterInfoItem; +export declare function V1DraftMultiClusterCreateRequestClusterInfoItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestClusterInfoItem; +export declare function V1DraftMultiClusterCreateRequestClusterInfoItemToJSON(value?: V1DraftMultiClusterCreateRequestClusterInfoItem | null): any; diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfoItem.js b/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfoItem.js new file mode 100644 index 0000000..82d24dd --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestClusterInfoItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestClusterInfoItem interface. + */ +export function instanceOfV1DraftMultiClusterCreateRequestClusterInfoItem(value) { + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON(json) { + return V1DraftMultiClusterCreateRequestClusterInfoItemFromJSONTyped(json, false); +} +export function V1DraftMultiClusterCreateRequestClusterInfoItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +export function V1DraftMultiClusterCreateRequestClusterInfoItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.d.ts b/dist/esm/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.d.ts new file mode 100644 index 0000000..5e05c1a --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export declare const V1DraftMultiClusterCreateRequestDeleteSkuModeEnum: { + readonly FULL: "FULL"; + readonly PARTIAL: "PARTIAL"; +}; +export type V1DraftMultiClusterCreateRequestDeleteSkuModeEnum = typeof V1DraftMultiClusterCreateRequestDeleteSkuModeEnum[keyof typeof V1DraftMultiClusterCreateRequestDeleteSkuModeEnum]; +export declare function instanceOfV1DraftMultiClusterCreateRequestDeleteSkuModeEnum(value: any): boolean; +export declare function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON(json: any): V1DraftMultiClusterCreateRequestDeleteSkuModeEnum; +export declare function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeleteSkuModeEnum; +export declare function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON(value?: V1DraftMultiClusterCreateRequestDeleteSkuModeEnum | null): any; diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.js b/dist/esm/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.js new file mode 100644 index 0000000..a3b5a4d --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export const V1DraftMultiClusterCreateRequestDeleteSkuModeEnum = { + FULL: 'FULL', + PARTIAL: 'PARTIAL' +}; +export function instanceOfV1DraftMultiClusterCreateRequestDeleteSkuModeEnum(value) { + for (const key in V1DraftMultiClusterCreateRequestDeleteSkuModeEnum) { + if (Object.prototype.hasOwnProperty.call(V1DraftMultiClusterCreateRequestDeleteSkuModeEnum, key)) { + if (V1DraftMultiClusterCreateRequestDeleteSkuModeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSONTyped(json, false); +} +export function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfo.d.ts b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfo.d.ts new file mode 100644 index 0000000..a1e6219 --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfo.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse } from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse'; +import type { V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum } from './V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum'; +/** + * Информация о доставке. + * @export + * @interface V1DraftMultiClusterCreateRequestDeliveryInfo + */ +export interface V1DraftMultiClusterCreateRequestDeliveryInfo { + /** + * + * @type {V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfo + */ + drop_off_warehouse?: V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfo + */ + seller_warehouse_id?: number; + /** + * + * @type {V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfo + */ + type: V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestDeliveryInfo interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfo(value: object): value is V1DraftMultiClusterCreateRequestDeliveryInfo; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON(json: any): V1DraftMultiClusterCreateRequestDeliveryInfo; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeliveryInfo; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoToJSON(value?: V1DraftMultiClusterCreateRequestDeliveryInfo | null): any; diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfo.js b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfo.js new file mode 100644 index 0000000..b4a497b --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfo.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON, V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON, } from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse'; +import { V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON, V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON, } from './V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum'; +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestDeliveryInfo interface. + */ +export function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfo(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeliveryInfoFromJSONTyped(json, false); +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_warehouse': json['drop_off_warehouse'] == null ? undefined : V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json['drop_off_warehouse']), + 'seller_warehouse_id': json['seller_warehouse_id'] == null ? undefined : json['seller_warehouse_id'], + 'type': V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON(json['type']), + }; +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_warehouse': V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON(value['drop_off_warehouse']), + 'seller_warehouse_id': value['seller_warehouse_id'], + 'type': V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.d.ts b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.d.ts new file mode 100644 index 0000000..5f20ced --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum } from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +/** + * Информация о пункте отгрузки. + * @export + * @interface V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse + */ +export interface V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse + */ + warehouse_id: number; + /** + * + * @type {V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse + */ + warehouse_type: V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse(value: object): value is V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json: any): V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON(value?: V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse | null): any; diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.js b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.js new file mode 100644 index 0000000..80ee948 --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON, V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON, } from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse interface. + */ +export function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + if (!('warehouse_type' in value) || value['warehouse_type'] === undefined) + return false; + return true; +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json, false); +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + 'warehouse_type': V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json['warehouse_type']), + }; +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + 'warehouse_type': V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value['warehouse_type']), + }; +} diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts new file mode 100644 index 0000000..8b60f70 --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта отгрузки: + * - `DELIVERY_POINT` — пункт выдачи заказов; + * - `SORTING_CENTER` — сортировочный центр; + * - `CROSS_DOCK` — кросс-докинг; + * - `ORDERS_RECEIVING_POINT` — пункт приёма заказов; + * - `FULL_FILLMENT` — фулфилмент. + * + * @export + */ +export declare const V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum: { + readonly DELIVERY_POINT: "DELIVERY_POINT"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly FULL_FILLMENT: "FULL_FILLMENT"; +}; +export type V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = typeof V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum[keyof typeof V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum]; +export declare function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum(value: any): boolean; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json: any): V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value?: V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum | null): any; diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js new file mode 100644 index 0000000..8d6e70b --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта отгрузки: + * - `DELIVERY_POINT` — пункт выдачи заказов; + * - `SORTING_CENTER` — сортировочный центр; + * - `CROSS_DOCK` — кросс-докинг; + * - `ORDERS_RECEIVING_POINT` — пункт приёма заказов; + * - `FULL_FILLMENT` — фулфилмент. + * + * @export + */ +export const V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = { + DELIVERY_POINT: 'DELIVERY_POINT', + SORTING_CENTER: 'SORTING_CENTER', + CROSS_DOCK: 'CROSS_DOCK', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + FULL_FILLMENT: 'FULL_FILLMENT' +}; +export function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum(value) { + for (const key in V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum, key)) { + if (V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json, false); +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.d.ts b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.d.ts new file mode 100644 index 0000000..8fe09df --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `DROPOFF` — доставка до drop-off пункта; + * - `PICKUP` — доставка курьером от склада продавца. + * + * @export + */ +export declare const V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum: { + readonly DROPOFF: "DROPOFF"; + readonly PICKUP: "PICKUP"; +}; +export type V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum = typeof V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum[keyof typeof V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum]; +export declare function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum(value: any): boolean; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON(json: any): V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON(value?: V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum | null): any; diff --git a/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.js b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.js new file mode 100644 index 0000000..a1f5465 --- /dev/null +++ b/dist/esm/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `DROPOFF` — доставка до drop-off пункта; + * - `PICKUP` — доставка курьером от склада продавца. + * + * @export + */ +export const V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum = { + DROPOFF: 'DROPOFF', + PICKUP: 'PICKUP' +}; +export function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum(value) { + for (const key in V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum, key)) { + if (V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json, false); +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1DraftStatusEnum.d.ts b/dist/esm/models/V1DraftStatusEnum.d.ts new file mode 100644 index 0000000..55d03aa --- /dev/null +++ b/dist/esm/models/V1DraftStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус черновика: + * - `DRAFT_STATUS_UNSPECIFIED` — не определён; + * - `NEW` — новый; + * - `SUPPLY_VARIANT_CONFIRMATION` — ожидает подтверждения; + * - `SUPPLY_NOT_CONFIRMED` — отклонён складом. + * + * @export + */ +export declare const V1DraftStatusEnum: { + readonly DRAFT_STATUS_UNSPECIFIED: "DRAFT_STATUS_UNSPECIFIED"; + readonly NEW: "NEW"; + readonly SUPPLY_VARIANT_CONFIRMATION: "SUPPLY_VARIANT_CONFIRMATION"; + readonly SUPPLY_NOT_CONFIRMED: "SUPPLY_NOT_CONFIRMED"; +}; +export type V1DraftStatusEnum = typeof V1DraftStatusEnum[keyof typeof V1DraftStatusEnum]; +export declare function instanceOfV1DraftStatusEnum(value: any): boolean; +export declare function V1DraftStatusEnumFromJSON(json: any): V1DraftStatusEnum; +export declare function V1DraftStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftStatusEnum; +export declare function V1DraftStatusEnumToJSON(value?: V1DraftStatusEnum | null): any; diff --git a/dist/esm/models/V1DraftStatusEnum.js b/dist/esm/models/V1DraftStatusEnum.js new file mode 100644 index 0000000..d70db72 --- /dev/null +++ b/dist/esm/models/V1DraftStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус черновика: + * - `DRAFT_STATUS_UNSPECIFIED` — не определён; + * - `NEW` — новый; + * - `SUPPLY_VARIANT_CONFIRMATION` — ожидает подтверждения; + * - `SUPPLY_NOT_CONFIRMED` — отклонён складом. + * + * @export + */ +export const V1DraftStatusEnum = { + DRAFT_STATUS_UNSPECIFIED: 'DRAFT_STATUS_UNSPECIFIED', + NEW: 'NEW', + SUPPLY_VARIANT_CONFIRMATION: 'SUPPLY_VARIANT_CONFIRMATION', + SUPPLY_NOT_CONFIRMED: 'SUPPLY_NOT_CONFIRMED' +}; +export function instanceOfV1DraftStatusEnum(value) { + for (const key in V1DraftStatusEnum) { + if (Object.prototype.hasOwnProperty.call(V1DraftStatusEnum, key)) { + if (V1DraftStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1DraftStatusEnumFromJSON(json) { + return V1DraftStatusEnumFromJSONTyped(json, false); +} +export function V1DraftStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1DraftStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1FbpArchiveGetRequest.d.ts b/dist/esm/models/V1FbpArchiveGetRequest.d.ts new file mode 100644 index 0000000..eb72e7e --- /dev/null +++ b/dist/esm/models/V1FbpArchiveGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpArchiveGetRequest + */ +export interface V1FbpArchiveGetRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpArchiveGetRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpArchiveGetRequest interface. + */ +export declare function instanceOfV1FbpArchiveGetRequest(value: object): value is V1FbpArchiveGetRequest; +export declare function V1FbpArchiveGetRequestFromJSON(json: any): V1FbpArchiveGetRequest; +export declare function V1FbpArchiveGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveGetRequest; +export declare function V1FbpArchiveGetRequestToJSON(value?: V1FbpArchiveGetRequest | null): any; diff --git a/dist/esm/models/V1FbpArchiveGetRequest.js b/dist/esm/models/V1FbpArchiveGetRequest.js new file mode 100644 index 0000000..3db4879 --- /dev/null +++ b/dist/esm/models/V1FbpArchiveGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpArchiveGetRequest interface. + */ +export function instanceOfV1FbpArchiveGetRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpArchiveGetRequestFromJSON(json) { + return V1FbpArchiveGetRequestFromJSONTyped(json, false); +} +export function V1FbpArchiveGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpArchiveGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpArchiveGetResponse.d.ts b/dist/esm/models/V1FbpArchiveGetResponse.d.ts new file mode 100644 index 0000000..53876a3 --- /dev/null +++ b/dist/esm/models/V1FbpArchiveGetResponse.d.ts @@ -0,0 +1,139 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ArchiveSkuSummary } from './V1ArchiveSkuSummary'; +import type { Fbpv1DeliveryDetails } from './Fbpv1DeliveryDetails'; +import type { V1ArchiveDeclineReason } from './V1ArchiveDeclineReason'; +import type { V1ArchiveStatusEnum } from './V1ArchiveStatusEnum'; +/** + * + * @export + * @interface V1FbpArchiveGetResponse + */ +export interface V1FbpArchiveGetResponse { + /** + * Идентификатор акта приёмки. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + act_file_uuid?: string; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + bundle_id?: string; + /** + * + * @type {V1ArchiveSkuSummary} + * @memberof V1FbpArchiveGetResponse + */ + bundle_sku_summary?: V1ArchiveSkuSummary; + /** + * Идентификатор типа поставки. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + business_flow_type_id?: number; + /** + * Дата и время создания заявки на поставку. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + created_date?: string; + /** + * + * @type {V1ArchiveDeclineReason} + * @memberof V1FbpArchiveGetResponse + */ + decline_reason?: V1ArchiveDeclineReason; + /** + * + * @type {Fbpv1DeliveryDetails} + * @memberof V1FbpArchiveGetResponse + */ + delivery_details?: Fbpv1DeliveryDetails; + /** + * `true`, если был сформирован акт приёмки. + * + * @type {boolean} + * @memberof V1FbpArchiveGetResponse + */ + has_act?: boolean; + /** + * `true`, если были сформированы этикетки. + * + * @type {boolean} + * @memberof V1FbpArchiveGetResponse + */ + has_label?: boolean; + /** + * Номер записи в архиве. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + id?: number; + /** + * Идентификатор черновика поставки. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + order_draft_id?: number; + /** + * Идентификатор завершённой поставки. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + order_number?: string; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + package_units_count?: number; + /** + * Дата и время принятия поставки. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + receive_date?: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + row_version?: number; + /** + * + * @type {V1ArchiveStatusEnum} + * @memberof V1FbpArchiveGetResponse + */ + status?: V1ArchiveStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpArchiveGetResponse interface. + */ +export declare function instanceOfV1FbpArchiveGetResponse(value: object): value is V1FbpArchiveGetResponse; +export declare function V1FbpArchiveGetResponseFromJSON(json: any): V1FbpArchiveGetResponse; +export declare function V1FbpArchiveGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveGetResponse; +export declare function V1FbpArchiveGetResponseToJSON(value?: V1FbpArchiveGetResponse | null): any; diff --git a/dist/esm/models/V1FbpArchiveGetResponse.js b/dist/esm/models/V1FbpArchiveGetResponse.js new file mode 100644 index 0000000..07480d8 --- /dev/null +++ b/dist/esm/models/V1FbpArchiveGetResponse.js @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ArchiveSkuSummaryFromJSON, V1ArchiveSkuSummaryToJSON, } from './V1ArchiveSkuSummary'; +import { Fbpv1DeliveryDetailsFromJSON, Fbpv1DeliveryDetailsToJSON, } from './Fbpv1DeliveryDetails'; +import { V1ArchiveDeclineReasonFromJSON, V1ArchiveDeclineReasonToJSON, } from './V1ArchiveDeclineReason'; +import { V1ArchiveStatusEnumFromJSON, V1ArchiveStatusEnumToJSON, } from './V1ArchiveStatusEnum'; +/** + * Check if a given object implements the V1FbpArchiveGetResponse interface. + */ +export function instanceOfV1FbpArchiveGetResponse(value) { + return true; +} +export function V1FbpArchiveGetResponseFromJSON(json) { + return V1FbpArchiveGetResponseFromJSONTyped(json, false); +} +export function V1FbpArchiveGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_file_uuid': json['act_file_uuid'] == null ? undefined : json['act_file_uuid'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'bundle_sku_summary': json['bundle_sku_summary'] == null ? undefined : V1ArchiveSkuSummaryFromJSON(json['bundle_sku_summary']), + 'business_flow_type_id': json['business_flow_type_id'] == null ? undefined : json['business_flow_type_id'], + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'decline_reason': json['decline_reason'] == null ? undefined : V1ArchiveDeclineReasonFromJSON(json['decline_reason']), + 'delivery_details': json['delivery_details'] == null ? undefined : Fbpv1DeliveryDetailsFromJSON(json['delivery_details']), + 'has_act': json['has_act'] == null ? undefined : json['has_act'], + 'has_label': json['has_label'] == null ? undefined : json['has_label'], + 'id': json['id'] == null ? undefined : json['id'], + 'order_draft_id': json['order_draft_id'] == null ? undefined : json['order_draft_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'status': json['status'] == null ? undefined : V1ArchiveStatusEnumFromJSON(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V1FbpArchiveGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_file_uuid': value['act_file_uuid'], + 'bundle_id': value['bundle_id'], + 'bundle_sku_summary': V1ArchiveSkuSummaryToJSON(value['bundle_sku_summary']), + 'business_flow_type_id': value['business_flow_type_id'], + 'created_date': value['created_date'], + 'decline_reason': V1ArchiveDeclineReasonToJSON(value['decline_reason']), + 'delivery_details': Fbpv1DeliveryDetailsToJSON(value['delivery_details']), + 'has_act': value['has_act'], + 'has_label': value['has_label'], + 'id': value['id'], + 'order_draft_id': value['order_draft_id'], + 'order_number': value['order_number'], + 'package_units_count': value['package_units_count'], + 'receive_date': value['receive_date'], + 'row_version': value['row_version'], + 'status': V1ArchiveStatusEnumToJSON(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpArchiveListRequest.d.ts b/dist/esm/models/V1FbpArchiveListRequest.d.ts new file mode 100644 index 0000000..79d46f2 --- /dev/null +++ b/dist/esm/models/V1FbpArchiveListRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpArchiveListRequest + */ +export interface V1FbpArchiveListRequest { + /** + * Количество элементов в ответе. + * @type {string} + * @memberof V1FbpArchiveListRequest + */ + count: string; + /** + * Идентификатор последнего значения на странице. Оставьте это поле пустым при выполнении первого запроса. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof V1FbpArchiveListRequest + */ + last_id?: string; +} +/** + * Check if a given object implements the V1FbpArchiveListRequest interface. + */ +export declare function instanceOfV1FbpArchiveListRequest(value: object): value is V1FbpArchiveListRequest; +export declare function V1FbpArchiveListRequestFromJSON(json: any): V1FbpArchiveListRequest; +export declare function V1FbpArchiveListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveListRequest; +export declare function V1FbpArchiveListRequestToJSON(value?: V1FbpArchiveListRequest | null): any; diff --git a/dist/esm/models/V1FbpArchiveListRequest.js b/dist/esm/models/V1FbpArchiveListRequest.js new file mode 100644 index 0000000..f0dd2ef --- /dev/null +++ b/dist/esm/models/V1FbpArchiveListRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpArchiveListRequest interface. + */ +export function instanceOfV1FbpArchiveListRequest(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + return true; +} +export function V1FbpArchiveListRequestFromJSON(json) { + return V1FbpArchiveListRequestFromJSONTyped(json, false); +} +export function V1FbpArchiveListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1FbpArchiveListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1FbpArchiveListResponse.d.ts b/dist/esm/models/V1FbpArchiveListResponse.d.ts new file mode 100644 index 0000000..b52dc7b --- /dev/null +++ b/dist/esm/models/V1FbpArchiveListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpArchiveListResponseItem } from './V1FbpArchiveListResponseItem'; +/** + * + * @export + * @interface V1FbpArchiveListResponse + */ +export interface V1FbpArchiveListResponse { + /** + * `true`, если в ответе вернулись не все значения. + * + * @type {boolean} + * @memberof V1FbpArchiveListResponse + */ + has_next?: boolean; + /** + * Завершённые поставки. + * @type {Array} + * @memberof V1FbpArchiveListResponse + */ + items?: Array; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1FbpArchiveListResponse + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpArchiveListResponse interface. + */ +export declare function instanceOfV1FbpArchiveListResponse(value: object): value is V1FbpArchiveListResponse; +export declare function V1FbpArchiveListResponseFromJSON(json: any): V1FbpArchiveListResponse; +export declare function V1FbpArchiveListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveListResponse; +export declare function V1FbpArchiveListResponseToJSON(value?: V1FbpArchiveListResponse | null): any; diff --git a/dist/esm/models/V1FbpArchiveListResponse.js b/dist/esm/models/V1FbpArchiveListResponse.js new file mode 100644 index 0000000..86f847c --- /dev/null +++ b/dist/esm/models/V1FbpArchiveListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpArchiveListResponseItemFromJSON, V1FbpArchiveListResponseItemToJSON, } from './V1FbpArchiveListResponseItem'; +/** + * Check if a given object implements the V1FbpArchiveListResponse interface. + */ +export function instanceOfV1FbpArchiveListResponse(value) { + return true; +} +export function V1FbpArchiveListResponseFromJSON(json) { + return V1FbpArchiveListResponseFromJSONTyped(json, false); +} +export function V1FbpArchiveListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'items': json['items'] == null ? undefined : (json['items'].map(V1FbpArchiveListResponseItemFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1FbpArchiveListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'items': value['items'] == null ? undefined : (value['items'].map(V1FbpArchiveListResponseItemToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1FbpArchiveListResponseItem.d.ts b/dist/esm/models/V1FbpArchiveListResponseItem.d.ts new file mode 100644 index 0000000..91264b0 --- /dev/null +++ b/dist/esm/models/V1FbpArchiveListResponseItem.d.ts @@ -0,0 +1,133 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ArchiveSkuSummary } from './V1ArchiveSkuSummary'; +import type { Fbpv1DeliveryDetails } from './Fbpv1DeliveryDetails'; +import type { V1ArchiveDeclineReason } from './V1ArchiveDeclineReason'; +import type { V1ArchiveStatusEnum } from './V1ArchiveStatusEnum'; +/** + * + * @export + * @interface V1FbpArchiveListResponseItem + */ +export interface V1FbpArchiveListResponseItem { + /** + * Идентификатор акта приёмки. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + act_file_uuid?: string; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + bundle_id?: string; + /** + * + * @type {V1ArchiveSkuSummary} + * @memberof V1FbpArchiveListResponseItem + */ + bundle_sku_summary?: V1ArchiveSkuSummary; + /** + * Дата создания заявки на поставку. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + created_date?: string; + /** + * + * @type {V1ArchiveDeclineReason} + * @memberof V1FbpArchiveListResponseItem + */ + decline_reason?: V1ArchiveDeclineReason; + /** + * + * @type {Fbpv1DeliveryDetails} + * @memberof V1FbpArchiveListResponseItem + */ + delivery_details?: Fbpv1DeliveryDetails; + /** + * Идентификатор завершённой поставки у партнёрского склада со своей системой учёта. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + external_order_id?: string; + /** + * `true`, если был сформирован акт приёмки. + * + * @type {boolean} + * @memberof V1FbpArchiveListResponseItem + */ + has_act?: boolean; + /** + * `true`, если были сформированы этикетки. + * + * @type {boolean} + * @memberof V1FbpArchiveListResponseItem + */ + has_label?: boolean; + /** + * Идентификатор черновика поставки. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + order_draft_id?: number; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + package_units_count?: number; + /** + * Дата и время принятия поставки. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + receive_date?: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + row_version?: number; + /** + * + * @type {V1ArchiveStatusEnum} + * @memberof V1FbpArchiveListResponseItem + */ + status?: V1ArchiveStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + warehouse_id?: number; + /** + * Идентификатор завершённой поставки у партнёрского склада. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + whc_order_id?: number; +} +/** + * Check if a given object implements the V1FbpArchiveListResponseItem interface. + */ +export declare function instanceOfV1FbpArchiveListResponseItem(value: object): value is V1FbpArchiveListResponseItem; +export declare function V1FbpArchiveListResponseItemFromJSON(json: any): V1FbpArchiveListResponseItem; +export declare function V1FbpArchiveListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveListResponseItem; +export declare function V1FbpArchiveListResponseItemToJSON(value?: V1FbpArchiveListResponseItem | null): any; diff --git a/dist/esm/models/V1FbpArchiveListResponseItem.js b/dist/esm/models/V1FbpArchiveListResponseItem.js new file mode 100644 index 0000000..fca5a75 --- /dev/null +++ b/dist/esm/models/V1FbpArchiveListResponseItem.js @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ArchiveSkuSummaryFromJSON, V1ArchiveSkuSummaryToJSON, } from './V1ArchiveSkuSummary'; +import { Fbpv1DeliveryDetailsFromJSON, Fbpv1DeliveryDetailsToJSON, } from './Fbpv1DeliveryDetails'; +import { V1ArchiveDeclineReasonFromJSON, V1ArchiveDeclineReasonToJSON, } from './V1ArchiveDeclineReason'; +import { V1ArchiveStatusEnumFromJSON, V1ArchiveStatusEnumToJSON, } from './V1ArchiveStatusEnum'; +/** + * Check if a given object implements the V1FbpArchiveListResponseItem interface. + */ +export function instanceOfV1FbpArchiveListResponseItem(value) { + return true; +} +export function V1FbpArchiveListResponseItemFromJSON(json) { + return V1FbpArchiveListResponseItemFromJSONTyped(json, false); +} +export function V1FbpArchiveListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_file_uuid': json['act_file_uuid'] == null ? undefined : json['act_file_uuid'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'bundle_sku_summary': json['bundle_sku_summary'] == null ? undefined : V1ArchiveSkuSummaryFromJSON(json['bundle_sku_summary']), + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'decline_reason': json['decline_reason'] == null ? undefined : V1ArchiveDeclineReasonFromJSON(json['decline_reason']), + 'delivery_details': json['delivery_details'] == null ? undefined : Fbpv1DeliveryDetailsFromJSON(json['delivery_details']), + 'external_order_id': json['external_order_id'] == null ? undefined : json['external_order_id'], + 'has_act': json['has_act'] == null ? undefined : json['has_act'], + 'has_label': json['has_label'] == null ? undefined : json['has_label'], + 'order_draft_id': json['order_draft_id'] == null ? undefined : json['order_draft_id'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'status': json['status'] == null ? undefined : V1ArchiveStatusEnumFromJSON(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'whc_order_id': json['whc_order_id'] == null ? undefined : json['whc_order_id'], + }; +} +export function V1FbpArchiveListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_file_uuid': value['act_file_uuid'], + 'bundle_id': value['bundle_id'], + 'bundle_sku_summary': V1ArchiveSkuSummaryToJSON(value['bundle_sku_summary']), + 'created_date': value['created_date'], + 'decline_reason': V1ArchiveDeclineReasonToJSON(value['decline_reason']), + 'delivery_details': Fbpv1DeliveryDetailsToJSON(value['delivery_details']), + 'external_order_id': value['external_order_id'], + 'has_act': value['has_act'], + 'has_label': value['has_label'], + 'order_draft_id': value['order_draft_id'], + 'package_units_count': value['package_units_count'], + 'receive_date': value['receive_date'], + 'row_version': value['row_version'], + 'status': V1ArchiveStatusEnumToJSON(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + 'whc_order_id': value['whc_order_id'], + }; +} diff --git a/dist/esm/models/V1FbpAvailableTimeslotListRequest.d.ts b/dist/esm/models/V1FbpAvailableTimeslotListRequest.d.ts new file mode 100644 index 0000000..8f1804c --- /dev/null +++ b/dist/esm/models/V1FbpAvailableTimeslotListRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpAvailableTimeslotListRequest + */ +export interface V1FbpAvailableTimeslotListRequest { + /** + * Дата окончания нужного периода доступных таймслотов. + * @type {string} + * @memberof V1FbpAvailableTimeslotListRequest + */ + interval_end: string; + /** + * Дата начала нужного периода доступных таймслотов. + * @type {string} + * @memberof V1FbpAvailableTimeslotListRequest + */ + interval_start: string; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpAvailableTimeslotListRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpAvailableTimeslotListRequest interface. + */ +export declare function instanceOfV1FbpAvailableTimeslotListRequest(value: object): value is V1FbpAvailableTimeslotListRequest; +export declare function V1FbpAvailableTimeslotListRequestFromJSON(json: any): V1FbpAvailableTimeslotListRequest; +export declare function V1FbpAvailableTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpAvailableTimeslotListRequest; +export declare function V1FbpAvailableTimeslotListRequestToJSON(value?: V1FbpAvailableTimeslotListRequest | null): any; diff --git a/dist/esm/models/V1FbpAvailableTimeslotListRequest.js b/dist/esm/models/V1FbpAvailableTimeslotListRequest.js new file mode 100644 index 0000000..78d4b20 --- /dev/null +++ b/dist/esm/models/V1FbpAvailableTimeslotListRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpAvailableTimeslotListRequest interface. + */ +export function instanceOfV1FbpAvailableTimeslotListRequest(value) { + if (!('interval_end' in value) || value['interval_end'] === undefined) + return false; + if (!('interval_start' in value) || value['interval_start'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpAvailableTimeslotListRequestFromJSON(json) { + return V1FbpAvailableTimeslotListRequestFromJSONTyped(json, false); +} +export function V1FbpAvailableTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'interval_end': json['interval_end'], + 'interval_start': json['interval_start'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpAvailableTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'interval_end': value['interval_end'], + 'interval_start': value['interval_start'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpAvailableTimeslotListResponse.d.ts b/dist/esm/models/V1FbpAvailableTimeslotListResponse.d.ts new file mode 100644 index 0000000..51446ad --- /dev/null +++ b/dist/esm/models/V1FbpAvailableTimeslotListResponse.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fbpv1Timeslot } from './Fbpv1Timeslot'; +import type { V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason } from './V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason'; +/** + * + * @export + * @interface V1FbpAvailableTimeslotListResponse + */ +export interface V1FbpAvailableTimeslotListResponse { + /** + * Причины отсутствия таймслотов: + * - `EMPTY_TIMESLOTS_REASON_UNSPECIFIED` — не определено; + * - `LOGISTICS_UNKNOWN` — неизвестная ошибка на стороне логистики; + * - `NO_ROUTE` — нет маршрута; + * - `NO_ROUTE_SCHEDULES` — нет расписания на маршруте; + * - `NO_LOGISTICS_CAPACITY` — недостаточно доступных слотов на маршруте; + * - `SCHEDULE_UNKNOWN` — неизвестная ошибка на стороне расписаний; + * - `NOT_ENOUGH_CAPACITY` — недостаточно доступных слотов на складе; + * - `NOT_ENOUGH_TRUCKS` — недостаточно машиномест; + * - `LIMITS_NOT_AVAILABLE` — не настроены лимиты на складе; + * - `CROSS_DOCK_RESERVE_MISSING` — не забронирован кросс-докинговый резерв на складе; + * - `SCHEDULE_RESERVE_MISSING` — отсутствует необходимый резерв по расписанию. + * + * @type {Array} + * @memberof V1FbpAvailableTimeslotListResponse + */ + reasons?: Array; + /** + * Список доступных таймслотов. + * @type {Array} + * @memberof V1FbpAvailableTimeslotListResponse + */ + timeslots?: Array; + /** + * Часовой пояс склада продавца. + * @type {string} + * @memberof V1FbpAvailableTimeslotListResponse + */ + warehouse_timezone_name?: string; +} +/** + * Check if a given object implements the V1FbpAvailableTimeslotListResponse interface. + */ +export declare function instanceOfV1FbpAvailableTimeslotListResponse(value: object): value is V1FbpAvailableTimeslotListResponse; +export declare function V1FbpAvailableTimeslotListResponseFromJSON(json: any): V1FbpAvailableTimeslotListResponse; +export declare function V1FbpAvailableTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpAvailableTimeslotListResponse; +export declare function V1FbpAvailableTimeslotListResponseToJSON(value?: V1FbpAvailableTimeslotListResponse | null): any; diff --git a/dist/esm/models/V1FbpAvailableTimeslotListResponse.js b/dist/esm/models/V1FbpAvailableTimeslotListResponse.js new file mode 100644 index 0000000..23d53f8 --- /dev/null +++ b/dist/esm/models/V1FbpAvailableTimeslotListResponse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Fbpv1TimeslotFromJSON, Fbpv1TimeslotToJSON, } from './Fbpv1Timeslot'; +import { V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON, V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON, } from './V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason'; +/** + * Check if a given object implements the V1FbpAvailableTimeslotListResponse interface. + */ +export function instanceOfV1FbpAvailableTimeslotListResponse(value) { + return true; +} +export function V1FbpAvailableTimeslotListResponseFromJSON(json) { + return V1FbpAvailableTimeslotListResponseFromJSONTyped(json, false); +} +export function V1FbpAvailableTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON)), + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(Fbpv1TimeslotFromJSON)), + 'warehouse_timezone_name': json['warehouse_timezone_name'] == null ? undefined : json['warehouse_timezone_name'], + }; +} +export function V1FbpAvailableTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON)), + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(Fbpv1TimeslotToJSON)), + 'warehouse_timezone_name': value['warehouse_timezone_name'], + }; +} diff --git a/dist/esm/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.d.ts b/dist/esm/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.d.ts new file mode 100644 index 0000000..13b9bc9 --- /dev/null +++ b/dist/esm/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason: { + readonly EMPTY_TIMESLOTS_REASON_UNSPECIFIED: "EMPTY_TIMESLOTS_REASON_UNSPECIFIED"; + readonly LOGISTICS_UNKNOWN: "LOGISTICS_UNKNOWN"; + readonly NO_ROUTE: "NO_ROUTE"; + readonly NO_ROUTE_SCHEDULES: "NO_ROUTE_SCHEDULES"; + readonly NO_LOGISTICS_CAPACITY: "NO_LOGISTICS_CAPACITY"; + readonly SCHEDULE_UNKNOWN: "SCHEDULE_UNKNOWN"; + readonly NOT_ENOUGH_CAPACITY: "NOT_ENOUGH_CAPACITY"; + readonly NOT_ENOUGH_TRUCKS: "NOT_ENOUGH_TRUCKS"; + readonly LIMITS_NOT_AVAILABLE: "LIMITS_NOT_AVAILABLE"; + readonly CROSS_DOCK_RESERVE_MISSING: "CROSS_DOCK_RESERVE_MISSING"; + readonly SCHEDULE_RESERVE_MISSING: "SCHEDULE_RESERVE_MISSING"; +}; +export type V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason = typeof V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason[keyof typeof V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason]; +export declare function instanceOfV1FbpAvailableTimeslotListResponseEmptyTimeslotsReason(value: any): boolean; +export declare function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON(json: any): V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason; +export declare function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason; +export declare function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON(value?: V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason | null): any; diff --git a/dist/esm/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.js b/dist/esm/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.js new file mode 100644 index 0000000..1cc2d05 --- /dev/null +++ b/dist/esm/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason = { + EMPTY_TIMESLOTS_REASON_UNSPECIFIED: 'EMPTY_TIMESLOTS_REASON_UNSPECIFIED', + LOGISTICS_UNKNOWN: 'LOGISTICS_UNKNOWN', + NO_ROUTE: 'NO_ROUTE', + NO_ROUTE_SCHEDULES: 'NO_ROUTE_SCHEDULES', + NO_LOGISTICS_CAPACITY: 'NO_LOGISTICS_CAPACITY', + SCHEDULE_UNKNOWN: 'SCHEDULE_UNKNOWN', + NOT_ENOUGH_CAPACITY: 'NOT_ENOUGH_CAPACITY', + NOT_ENOUGH_TRUCKS: 'NOT_ENOUGH_TRUCKS', + LIMITS_NOT_AVAILABLE: 'LIMITS_NOT_AVAILABLE', + CROSS_DOCK_RESERVE_MISSING: 'CROSS_DOCK_RESERVE_MISSING', + SCHEDULE_RESERVE_MISSING: 'SCHEDULE_RESERVE_MISSING' +}; +export function instanceOfV1FbpAvailableTimeslotListResponseEmptyTimeslotsReason(value) { + for (const key in V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason) { + if (Object.prototype.hasOwnProperty.call(V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason, key)) { + if (V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason[key] === value) { + return true; + } + } + } + return false; +} +export function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON(json) { + return V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSONTyped(json, false); +} +export function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1FbpCheckActStateRequest.d.ts b/dist/esm/models/V1FbpCheckActStateRequest.d.ts new file mode 100644 index 0000000..4ac8530 --- /dev/null +++ b/dist/esm/models/V1FbpCheckActStateRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCheckActStateRequest + */ +export interface V1FbpCheckActStateRequest { + /** + * Идентификатор акта приёмки. + * @type {string} + * @memberof V1FbpCheckActStateRequest + */ + file_uuid: string; +} +/** + * Check if a given object implements the V1FbpCheckActStateRequest interface. + */ +export declare function instanceOfV1FbpCheckActStateRequest(value: object): value is V1FbpCheckActStateRequest; +export declare function V1FbpCheckActStateRequestFromJSON(json: any): V1FbpCheckActStateRequest; +export declare function V1FbpCheckActStateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckActStateRequest; +export declare function V1FbpCheckActStateRequestToJSON(value?: V1FbpCheckActStateRequest | null): any; diff --git a/dist/esm/models/V1FbpCheckActStateRequest.js b/dist/esm/models/V1FbpCheckActStateRequest.js new file mode 100644 index 0000000..3338bec --- /dev/null +++ b/dist/esm/models/V1FbpCheckActStateRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpCheckActStateRequest interface. + */ +export function instanceOfV1FbpCheckActStateRequest(value) { + if (!('file_uuid' in value) || value['file_uuid'] === undefined) + return false; + return true; +} +export function V1FbpCheckActStateRequestFromJSON(json) { + return V1FbpCheckActStateRequestFromJSONTyped(json, false); +} +export function V1FbpCheckActStateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_uuid': json['file_uuid'], + }; +} +export function V1FbpCheckActStateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_uuid': value['file_uuid'], + }; +} diff --git a/dist/esm/models/V1FbpCheckActStateResponse.d.ts b/dist/esm/models/V1FbpCheckActStateResponse.d.ts new file mode 100644 index 0000000..078765b --- /dev/null +++ b/dist/esm/models/V1FbpCheckActStateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpCheckActStateResponseErrorReason } from './FbpCheckActStateResponseErrorReason'; +import type { V1FbpCheckActStateResponseStatus } from './V1FbpCheckActStateResponseStatus'; +/** + * + * @export + * @interface V1FbpCheckActStateResponse + */ +export interface V1FbpCheckActStateResponse { + /** + * Ссылка на акт приёмки. + * @type {string} + * @memberof V1FbpCheckActStateResponse + */ + cdn_url?: string; + /** + * + * @type {FbpCheckActStateResponseErrorReason} + * @memberof V1FbpCheckActStateResponse + */ + error?: FbpCheckActStateResponseErrorReason; + /** + * + * @type {V1FbpCheckActStateResponseStatus} + * @memberof V1FbpCheckActStateResponse + */ + status?: V1FbpCheckActStateResponseStatus; +} +/** + * Check if a given object implements the V1FbpCheckActStateResponse interface. + */ +export declare function instanceOfV1FbpCheckActStateResponse(value: object): value is V1FbpCheckActStateResponse; +export declare function V1FbpCheckActStateResponseFromJSON(json: any): V1FbpCheckActStateResponse; +export declare function V1FbpCheckActStateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckActStateResponse; +export declare function V1FbpCheckActStateResponseToJSON(value?: V1FbpCheckActStateResponse | null): any; diff --git a/dist/esm/models/V1FbpCheckActStateResponse.js b/dist/esm/models/V1FbpCheckActStateResponse.js new file mode 100644 index 0000000..44e5bc7 --- /dev/null +++ b/dist/esm/models/V1FbpCheckActStateResponse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbpCheckActStateResponseErrorReasonFromJSON, FbpCheckActStateResponseErrorReasonToJSON, } from './FbpCheckActStateResponseErrorReason'; +import { V1FbpCheckActStateResponseStatusFromJSON, V1FbpCheckActStateResponseStatusToJSON, } from './V1FbpCheckActStateResponseStatus'; +/** + * Check if a given object implements the V1FbpCheckActStateResponse interface. + */ +export function instanceOfV1FbpCheckActStateResponse(value) { + return true; +} +export function V1FbpCheckActStateResponseFromJSON(json) { + return V1FbpCheckActStateResponseFromJSONTyped(json, false); +} +export function V1FbpCheckActStateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cdn_url': json['cdn_url'] == null ? undefined : json['cdn_url'], + 'error': json['error'] == null ? undefined : FbpCheckActStateResponseErrorReasonFromJSON(json['error']), + 'status': json['status'] == null ? undefined : V1FbpCheckActStateResponseStatusFromJSON(json['status']), + }; +} +export function V1FbpCheckActStateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cdn_url': value['cdn_url'], + 'error': FbpCheckActStateResponseErrorReasonToJSON(value['error']), + 'status': V1FbpCheckActStateResponseStatusToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V1FbpCheckActStateResponseStatus.d.ts b/dist/esm/models/V1FbpCheckActStateResponseStatus.d.ts new file mode 100644 index 0000000..434e0c8 --- /dev/null +++ b/dist/esm/models/V1FbpCheckActStateResponseStatus.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации: + * - `STATUS_UNSPECIFIED` — не определён; + * - `NOT_EXIST` — не существует; + * - `PROCESSING` — в процессе; + * - `EXIST` — завершена; + * - `ERROR` — ошибка. + * + * @export + */ +export declare const V1FbpCheckActStateResponseStatus: { + readonly STATUS_UNSPECIFIED: "STATUS_UNSPECIFIED"; + readonly NOT_EXIST: "NOT_EXIST"; + readonly PROCESSING: "PROCESSING"; + readonly EXIST: "EXIST"; + readonly ERROR: "ERROR"; +}; +export type V1FbpCheckActStateResponseStatus = typeof V1FbpCheckActStateResponseStatus[keyof typeof V1FbpCheckActStateResponseStatus]; +export declare function instanceOfV1FbpCheckActStateResponseStatus(value: any): boolean; +export declare function V1FbpCheckActStateResponseStatusFromJSON(json: any): V1FbpCheckActStateResponseStatus; +export declare function V1FbpCheckActStateResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckActStateResponseStatus; +export declare function V1FbpCheckActStateResponseStatusToJSON(value?: V1FbpCheckActStateResponseStatus | null): any; diff --git a/dist/esm/models/V1FbpCheckActStateResponseStatus.js b/dist/esm/models/V1FbpCheckActStateResponseStatus.js new file mode 100644 index 0000000..cc3352a --- /dev/null +++ b/dist/esm/models/V1FbpCheckActStateResponseStatus.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации: + * - `STATUS_UNSPECIFIED` — не определён; + * - `NOT_EXIST` — не существует; + * - `PROCESSING` — в процессе; + * - `EXIST` — завершена; + * - `ERROR` — ошибка. + * + * @export + */ +export const V1FbpCheckActStateResponseStatus = { + STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED', + NOT_EXIST: 'NOT_EXIST', + PROCESSING: 'PROCESSING', + EXIST: 'EXIST', + ERROR: 'ERROR' +}; +export function instanceOfV1FbpCheckActStateResponseStatus(value) { + for (const key in V1FbpCheckActStateResponseStatus) { + if (Object.prototype.hasOwnProperty.call(V1FbpCheckActStateResponseStatus, key)) { + if (V1FbpCheckActStateResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +export function V1FbpCheckActStateResponseStatusFromJSON(json) { + return V1FbpCheckActStateResponseStatusFromJSONTyped(json, false); +} +export function V1FbpCheckActStateResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1FbpCheckActStateResponseStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1FbpCheckConsignmentNoteStateRequest.d.ts b/dist/esm/models/V1FbpCheckConsignmentNoteStateRequest.d.ts new file mode 100644 index 0000000..9b91565 --- /dev/null +++ b/dist/esm/models/V1FbpCheckConsignmentNoteStateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCheckConsignmentNoteStateRequest + */ +export interface V1FbpCheckConsignmentNoteStateRequest { + /** + * Идентификатор транспортной накладной. + * @type {string} + * @memberof V1FbpCheckConsignmentNoteStateRequest + */ + code: string; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpCheckConsignmentNoteStateRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpCheckConsignmentNoteStateRequest interface. + */ +export declare function instanceOfV1FbpCheckConsignmentNoteStateRequest(value: object): value is V1FbpCheckConsignmentNoteStateRequest; +export declare function V1FbpCheckConsignmentNoteStateRequestFromJSON(json: any): V1FbpCheckConsignmentNoteStateRequest; +export declare function V1FbpCheckConsignmentNoteStateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckConsignmentNoteStateRequest; +export declare function V1FbpCheckConsignmentNoteStateRequestToJSON(value?: V1FbpCheckConsignmentNoteStateRequest | null): any; diff --git a/dist/esm/models/V1FbpCheckConsignmentNoteStateRequest.js b/dist/esm/models/V1FbpCheckConsignmentNoteStateRequest.js new file mode 100644 index 0000000..908e2c0 --- /dev/null +++ b/dist/esm/models/V1FbpCheckConsignmentNoteStateRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpCheckConsignmentNoteStateRequest interface. + */ +export function instanceOfV1FbpCheckConsignmentNoteStateRequest(value) { + if (!('code' in value) || value['code'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpCheckConsignmentNoteStateRequestFromJSON(json) { + return V1FbpCheckConsignmentNoteStateRequestFromJSONTyped(json, false); +} +export function V1FbpCheckConsignmentNoteStateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpCheckConsignmentNoteStateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpCheckConsignmentNoteStateResponse.d.ts b/dist/esm/models/V1FbpCheckConsignmentNoteStateResponse.d.ts new file mode 100644 index 0000000..f2e975d --- /dev/null +++ b/dist/esm/models/V1FbpCheckConsignmentNoteStateResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpCheckConsignmentNoteStateResponseStateType } from './FbpCheckConsignmentNoteStateResponseStateType'; +/** + * + * @export + * @interface V1FbpCheckConsignmentNoteStateResponse + */ +export interface V1FbpCheckConsignmentNoteStateResponse { + /** + * Описание ошибки. + * @type {string} + * @memberof V1FbpCheckConsignmentNoteStateResponse + */ + error_message?: string; + /** + * Ссылка на этикетки для поставки. + * @type {string} + * @memberof V1FbpCheckConsignmentNoteStateResponse + */ + label_url?: string; + /** + * + * @type {FbpCheckConsignmentNoteStateResponseStateType} + * @memberof V1FbpCheckConsignmentNoteStateResponse + */ + state?: FbpCheckConsignmentNoteStateResponseStateType; +} +/** + * Check if a given object implements the V1FbpCheckConsignmentNoteStateResponse interface. + */ +export declare function instanceOfV1FbpCheckConsignmentNoteStateResponse(value: object): value is V1FbpCheckConsignmentNoteStateResponse; +export declare function V1FbpCheckConsignmentNoteStateResponseFromJSON(json: any): V1FbpCheckConsignmentNoteStateResponse; +export declare function V1FbpCheckConsignmentNoteStateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckConsignmentNoteStateResponse; +export declare function V1FbpCheckConsignmentNoteStateResponseToJSON(value?: V1FbpCheckConsignmentNoteStateResponse | null): any; diff --git a/dist/esm/models/V1FbpCheckConsignmentNoteStateResponse.js b/dist/esm/models/V1FbpCheckConsignmentNoteStateResponse.js new file mode 100644 index 0000000..0eb7fd5 --- /dev/null +++ b/dist/esm/models/V1FbpCheckConsignmentNoteStateResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbpCheckConsignmentNoteStateResponseStateTypeFromJSON, FbpCheckConsignmentNoteStateResponseStateTypeToJSON, } from './FbpCheckConsignmentNoteStateResponseStateType'; +/** + * Check if a given object implements the V1FbpCheckConsignmentNoteStateResponse interface. + */ +export function instanceOfV1FbpCheckConsignmentNoteStateResponse(value) { + return true; +} +export function V1FbpCheckConsignmentNoteStateResponseFromJSON(json) { + return V1FbpCheckConsignmentNoteStateResponseFromJSONTyped(json, false); +} +export function V1FbpCheckConsignmentNoteStateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + 'label_url': json['label_url'] == null ? undefined : json['label_url'], + 'state': json['state'] == null ? undefined : FbpCheckConsignmentNoteStateResponseStateTypeFromJSON(json['state']), + }; +} +export function V1FbpCheckConsignmentNoteStateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': value['error_message'], + 'label_url': value['label_url'], + 'state': FbpCheckConsignmentNoteStateResponseStateTypeToJSON(value['state']), + }; +} diff --git a/dist/esm/models/V1FbpCreateActRequest.d.ts b/dist/esm/models/V1FbpCreateActRequest.d.ts new file mode 100644 index 0000000..c7fa1a7 --- /dev/null +++ b/dist/esm/models/V1FbpCreateActRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateActRequest + */ +export interface V1FbpCreateActRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpCreateActRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpCreateActRequest interface. + */ +export declare function instanceOfV1FbpCreateActRequest(value: object): value is V1FbpCreateActRequest; +export declare function V1FbpCreateActRequestFromJSON(json: any): V1FbpCreateActRequest; +export declare function V1FbpCreateActRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateActRequest; +export declare function V1FbpCreateActRequestToJSON(value?: V1FbpCreateActRequest | null): any; diff --git a/dist/esm/models/V1FbpCreateActRequest.js b/dist/esm/models/V1FbpCreateActRequest.js new file mode 100644 index 0000000..37ecd95 --- /dev/null +++ b/dist/esm/models/V1FbpCreateActRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpCreateActRequest interface. + */ +export function instanceOfV1FbpCreateActRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpCreateActRequestFromJSON(json) { + return V1FbpCreateActRequestFromJSONTyped(json, false); +} +export function V1FbpCreateActRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpCreateActRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpCreateActResponse.d.ts b/dist/esm/models/V1FbpCreateActResponse.d.ts new file mode 100644 index 0000000..a7cceec --- /dev/null +++ b/dist/esm/models/V1FbpCreateActResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpCreateActResponseCreateActErrorReason } from './FbpCreateActResponseCreateActErrorReason'; +/** + * + * @export + * @interface V1FbpCreateActResponse + */ +export interface V1FbpCreateActResponse { + /** + * Причина ошибки: + * - `CREATE_ACT_ERROR_REASON_UNSPECIFIED` — не определена; + * - `INVALID_ORDER_TYPE` — нельзя создать акт для указанного идентификатора поставки. + * + * @type {Array} + * @memberof V1FbpCreateActResponse + */ + errors?: Array; + /** + * Идентификатор акта приёмки. + * @type {string} + * @memberof V1FbpCreateActResponse + */ + file_uuid?: string; + /** + * `true`, если в запросе нет ошибок. + * + * @type {boolean} + * @memberof V1FbpCreateActResponse + */ + is_success?: boolean; +} +/** + * Check if a given object implements the V1FbpCreateActResponse interface. + */ +export declare function instanceOfV1FbpCreateActResponse(value: object): value is V1FbpCreateActResponse; +export declare function V1FbpCreateActResponseFromJSON(json: any): V1FbpCreateActResponse; +export declare function V1FbpCreateActResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateActResponse; +export declare function V1FbpCreateActResponseToJSON(value?: V1FbpCreateActResponse | null): any; diff --git a/dist/esm/models/V1FbpCreateActResponse.js b/dist/esm/models/V1FbpCreateActResponse.js new file mode 100644 index 0000000..90157ca --- /dev/null +++ b/dist/esm/models/V1FbpCreateActResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbpCreateActResponseCreateActErrorReasonFromJSON, FbpCreateActResponseCreateActErrorReasonToJSON, } from './FbpCreateActResponseCreateActErrorReason'; +/** + * Check if a given object implements the V1FbpCreateActResponse interface. + */ +export function instanceOfV1FbpCreateActResponse(value) { + return true; +} +export function V1FbpCreateActResponseFromJSON(json) { + return V1FbpCreateActResponseFromJSONTyped(json, false); +} +export function V1FbpCreateActResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(FbpCreateActResponseCreateActErrorReasonFromJSON)), + 'file_uuid': json['file_uuid'] == null ? undefined : json['file_uuid'], + 'is_success': json['is_success'] == null ? undefined : json['is_success'], + }; +} +export function V1FbpCreateActResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(FbpCreateActResponseCreateActErrorReasonToJSON)), + 'file_uuid': value['file_uuid'], + 'is_success': value['is_success'], + }; +} diff --git a/dist/esm/models/V1FbpCreateConsignmentNoteRequest.d.ts b/dist/esm/models/V1FbpCreateConsignmentNoteRequest.d.ts new file mode 100644 index 0000000..ab6a682 --- /dev/null +++ b/dist/esm/models/V1FbpCreateConsignmentNoteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateConsignmentNoteRequest + */ +export interface V1FbpCreateConsignmentNoteRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpCreateConsignmentNoteRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpCreateConsignmentNoteRequest interface. + */ +export declare function instanceOfV1FbpCreateConsignmentNoteRequest(value: object): value is V1FbpCreateConsignmentNoteRequest; +export declare function V1FbpCreateConsignmentNoteRequestFromJSON(json: any): V1FbpCreateConsignmentNoteRequest; +export declare function V1FbpCreateConsignmentNoteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateConsignmentNoteRequest; +export declare function V1FbpCreateConsignmentNoteRequestToJSON(value?: V1FbpCreateConsignmentNoteRequest | null): any; diff --git a/dist/esm/models/V1FbpCreateConsignmentNoteRequest.js b/dist/esm/models/V1FbpCreateConsignmentNoteRequest.js new file mode 100644 index 0000000..ad8ddf3 --- /dev/null +++ b/dist/esm/models/V1FbpCreateConsignmentNoteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpCreateConsignmentNoteRequest interface. + */ +export function instanceOfV1FbpCreateConsignmentNoteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpCreateConsignmentNoteRequestFromJSON(json) { + return V1FbpCreateConsignmentNoteRequestFromJSONTyped(json, false); +} +export function V1FbpCreateConsignmentNoteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpCreateConsignmentNoteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpCreateConsignmentNoteResponse.d.ts b/dist/esm/models/V1FbpCreateConsignmentNoteResponse.d.ts new file mode 100644 index 0000000..5e9b7b9 --- /dev/null +++ b/dist/esm/models/V1FbpCreateConsignmentNoteResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateConsignmentNoteResponse + */ +export interface V1FbpCreateConsignmentNoteResponse { + /** + * Идентификатор транспортной накладной. + * @type {string} + * @memberof V1FbpCreateConsignmentNoteResponse + */ + code?: string; +} +/** + * Check if a given object implements the V1FbpCreateConsignmentNoteResponse interface. + */ +export declare function instanceOfV1FbpCreateConsignmentNoteResponse(value: object): value is V1FbpCreateConsignmentNoteResponse; +export declare function V1FbpCreateConsignmentNoteResponseFromJSON(json: any): V1FbpCreateConsignmentNoteResponse; +export declare function V1FbpCreateConsignmentNoteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateConsignmentNoteResponse; +export declare function V1FbpCreateConsignmentNoteResponseToJSON(value?: V1FbpCreateConsignmentNoteResponse | null): any; diff --git a/dist/esm/models/V1FbpCreateConsignmentNoteResponse.js b/dist/esm/models/V1FbpCreateConsignmentNoteResponse.js new file mode 100644 index 0000000..f540ca4 --- /dev/null +++ b/dist/esm/models/V1FbpCreateConsignmentNoteResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpCreateConsignmentNoteResponse interface. + */ +export function instanceOfV1FbpCreateConsignmentNoteResponse(value) { + return true; +} +export function V1FbpCreateConsignmentNoteResponseFromJSON(json) { + return V1FbpCreateConsignmentNoteResponseFromJSONTyped(json, false); +} +export function V1FbpCreateConsignmentNoteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +export function V1FbpCreateConsignmentNoteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/V1FbpCreateLabelRequest.d.ts b/dist/esm/models/V1FbpCreateLabelRequest.d.ts new file mode 100644 index 0000000..1a1ff7e --- /dev/null +++ b/dist/esm/models/V1FbpCreateLabelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateLabelRequest + */ +export interface V1FbpCreateLabelRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpCreateLabelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpCreateLabelRequest interface. + */ +export declare function instanceOfV1FbpCreateLabelRequest(value: object): value is V1FbpCreateLabelRequest; +export declare function V1FbpCreateLabelRequestFromJSON(json: any): V1FbpCreateLabelRequest; +export declare function V1FbpCreateLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateLabelRequest; +export declare function V1FbpCreateLabelRequestToJSON(value?: V1FbpCreateLabelRequest | null): any; diff --git a/dist/esm/models/V1FbpCreateLabelRequest.js b/dist/esm/models/V1FbpCreateLabelRequest.js new file mode 100644 index 0000000..4ab0058 --- /dev/null +++ b/dist/esm/models/V1FbpCreateLabelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpCreateLabelRequest interface. + */ +export function instanceOfV1FbpCreateLabelRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpCreateLabelRequestFromJSON(json) { + return V1FbpCreateLabelRequestFromJSONTyped(json, false); +} +export function V1FbpCreateLabelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpCreateLabelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpCreateLabelResponse.d.ts b/dist/esm/models/V1FbpCreateLabelResponse.d.ts new file mode 100644 index 0000000..a47f009 --- /dev/null +++ b/dist/esm/models/V1FbpCreateLabelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateLabelResponse + */ +export interface V1FbpCreateLabelResponse { + /** + * Идентификатор задания на генерацию этикеток. + * @type {string} + * @memberof V1FbpCreateLabelResponse + */ + code?: string; +} +/** + * Check if a given object implements the V1FbpCreateLabelResponse interface. + */ +export declare function instanceOfV1FbpCreateLabelResponse(value: object): value is V1FbpCreateLabelResponse; +export declare function V1FbpCreateLabelResponseFromJSON(json: any): V1FbpCreateLabelResponse; +export declare function V1FbpCreateLabelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateLabelResponse; +export declare function V1FbpCreateLabelResponseToJSON(value?: V1FbpCreateLabelResponse | null): any; diff --git a/dist/esm/models/V1FbpCreateLabelResponse.js b/dist/esm/models/V1FbpCreateLabelResponse.js new file mode 100644 index 0000000..a947356 --- /dev/null +++ b/dist/esm/models/V1FbpCreateLabelResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpCreateLabelResponse interface. + */ +export function instanceOfV1FbpCreateLabelResponse(value) { + return true; +} +export function V1FbpCreateLabelResponseFromJSON(json) { + return V1FbpCreateLabelResponseFromJSONTyped(json, false); +} +export function V1FbpCreateLabelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +export function V1FbpCreateLabelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectCreateRequest.d.ts b/dist/esm/models/V1FbpDraftDirectCreateRequest.d.ts new file mode 100644 index 0000000..4439ba3 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectCreateRequestDirectDetails } from './V1FbpDraftDirectCreateRequestDirectDetails'; +/** + * + * @export + * @interface V1FbpDraftDirectCreateRequest + */ +export interface V1FbpDraftDirectCreateRequest { + /** + * Идентификатор провалидированного списка товаров. Чтобы получить, используйте метод [/v1/fbp/draft/direct/product/validate](#operation/FbpDraftDirectProductValidate). + * @type {string} + * @memberof V1FbpDraftDirectCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftDirectCreateRequestDirectDetails} + * @memberof V1FbpDraftDirectCreateRequest + */ + delivery_details: V1FbpDraftDirectCreateRequestDirectDetails; + /** + * Количество единиц упаковки. + * @type {number} + * @memberof V1FbpDraftDirectCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDirectCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectCreateRequest(value: object): value is V1FbpDraftDirectCreateRequest; +export declare function V1FbpDraftDirectCreateRequestFromJSON(json: any): V1FbpDraftDirectCreateRequest; +export declare function V1FbpDraftDirectCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectCreateRequest; +export declare function V1FbpDraftDirectCreateRequestToJSON(value?: V1FbpDraftDirectCreateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectCreateRequest.js b/dist/esm/models/V1FbpDraftDirectCreateRequest.js new file mode 100644 index 0000000..5aafb3f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectCreateRequest.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectCreateRequestDirectDetailsFromJSON, V1FbpDraftDirectCreateRequestDirectDetailsToJSON, } from './V1FbpDraftDirectCreateRequestDirectDetails'; +/** + * Check if a given object implements the V1FbpDraftDirectCreateRequest interface. + */ +export function instanceOfV1FbpDraftDirectCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectCreateRequestFromJSON(json) { + return V1FbpDraftDirectCreateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': V1FbpDraftDirectCreateRequestDirectDetailsFromJSON(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDirectCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': V1FbpDraftDirectCreateRequestDirectDetailsToJSON(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectCreateRequestDirectDetails.d.ts b/dist/esm/models/V1FbpDraftDirectCreateRequestDirectDetails.d.ts new file mode 100644 index 0000000..30e0dc8 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectCreateRequestDirectDetails.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftDirectCreateRequestDirectDetails + */ +export interface V1FbpDraftDirectCreateRequestDirectDetails { + /** + * Начало таймслота доставки. + * @type {string} + * @memberof V1FbpDraftDirectCreateRequestDirectDetails + */ + timeslot_start: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectCreateRequestDirectDetails interface. + */ +export declare function instanceOfV1FbpDraftDirectCreateRequestDirectDetails(value: object): value is V1FbpDraftDirectCreateRequestDirectDetails; +export declare function V1FbpDraftDirectCreateRequestDirectDetailsFromJSON(json: any): V1FbpDraftDirectCreateRequestDirectDetails; +export declare function V1FbpDraftDirectCreateRequestDirectDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectCreateRequestDirectDetails; +export declare function V1FbpDraftDirectCreateRequestDirectDetailsToJSON(value?: V1FbpDraftDirectCreateRequestDirectDetails | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectCreateRequestDirectDetails.js b/dist/esm/models/V1FbpDraftDirectCreateRequestDirectDetails.js new file mode 100644 index 0000000..d56d013 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectCreateRequestDirectDetails.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectCreateRequestDirectDetails interface. + */ +export function instanceOfV1FbpDraftDirectCreateRequestDirectDetails(value) { + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectCreateRequestDirectDetailsFromJSON(json) { + return V1FbpDraftDirectCreateRequestDirectDetailsFromJSONTyped(json, false); +} +export function V1FbpDraftDirectCreateRequestDirectDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_start': json['timeslot_start'], + }; +} +export function V1FbpDraftDirectCreateRequestDirectDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectCreateResponse.d.ts b/dist/esm/models/V1FbpDraftDirectCreateResponse.d.ts new file mode 100644 index 0000000..46e5779 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectCreateResponse + */ +export interface V1FbpDraftDirectCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftDirectCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectCreateResponse + */ + row_version?: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectCreateResponse(value: object): value is V1FbpDraftDirectCreateResponse; +export declare function V1FbpDraftDirectCreateResponseFromJSON(json: any): V1FbpDraftDirectCreateResponse; +export declare function V1FbpDraftDirectCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectCreateResponse; +export declare function V1FbpDraftDirectCreateResponseToJSON(value?: V1FbpDraftDirectCreateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectCreateResponse.js b/dist/esm/models/V1FbpDraftDirectCreateResponse.js new file mode 100644 index 0000000..beb517c --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectCreateResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectCreateResponse interface. + */ +export function instanceOfV1FbpDraftDirectCreateResponse(value) { + return true; +} +export function V1FbpDraftDirectCreateResponseFromJSON(json) { + return V1FbpDraftDirectCreateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function V1FbpDraftDirectCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectDeleteRequest.d.ts b/dist/esm/models/V1FbpDraftDirectDeleteRequest.d.ts new file mode 100644 index 0000000..df2f86f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectDeleteRequest + */ +export interface V1FbpDraftDirectDeleteRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectDeleteRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectDeleteRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectDeleteRequest(value: object): value is V1FbpDraftDirectDeleteRequest; +export declare function V1FbpDraftDirectDeleteRequestFromJSON(json: any): V1FbpDraftDirectDeleteRequest; +export declare function V1FbpDraftDirectDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectDeleteRequest; +export declare function V1FbpDraftDirectDeleteRequestToJSON(value?: V1FbpDraftDirectDeleteRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectDeleteRequest.js b/dist/esm/models/V1FbpDraftDirectDeleteRequest.js new file mode 100644 index 0000000..2d06e0e --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectDeleteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectDeleteRequest interface. + */ +export function instanceOfV1FbpDraftDirectDeleteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectDeleteRequestFromJSON(json) { + return V1FbpDraftDirectDeleteRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftDirectDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectDeleteResponse.d.ts b/dist/esm/models/V1FbpDraftDirectDeleteResponse.d.ts new file mode 100644 index 0000000..26dabc8 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancellationState } from './V1CancellationState'; +/** + * + * @export + * @interface V1FbpDraftDirectDeleteResponse + */ +export interface V1FbpDraftDirectDeleteResponse { + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftDirectDeleteResponse + */ + cancellation_state?: V1CancellationState; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectDeleteResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectDeleteResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectDeleteResponse(value: object): value is V1FbpDraftDirectDeleteResponse; +export declare function V1FbpDraftDirectDeleteResponseFromJSON(json: any): V1FbpDraftDirectDeleteResponse; +export declare function V1FbpDraftDirectDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectDeleteResponse; +export declare function V1FbpDraftDirectDeleteResponseToJSON(value?: V1FbpDraftDirectDeleteResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectDeleteResponse.js b/dist/esm/models/V1FbpDraftDirectDeleteResponse.js new file mode 100644 index 0000000..a912fa7 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectDeleteResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CancellationStateFromJSON, V1CancellationStateToJSON, } from './V1CancellationState'; +/** + * Check if a given object implements the V1FbpDraftDirectDeleteResponse interface. + */ +export function instanceOfV1FbpDraftDirectDeleteResponse(value) { + return true; +} +export function V1FbpDraftDirectDeleteResponseFromJSON(json) { + return V1FbpDraftDirectDeleteResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_state': json['cancellation_state'] == null ? undefined : V1CancellationStateFromJSON(json['cancellation_state']), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftDirectDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_state': V1CancellationStateToJSON(value['cancellation_state']), + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectGetTimeslotRequest.d.ts b/dist/esm/models/V1FbpDraftDirectGetTimeslotRequest.d.ts new file mode 100644 index 0000000..6289b79 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectGetTimeslotRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectGetTimeslotRequest + */ +export interface V1FbpDraftDirectGetTimeslotRequest { + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotRequest + */ + bundle_id: string; + /** + * Дата окончания нужного периода доступных таймслотов. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotRequest + */ + interval_end: string; + /** + * Дата начала нужного периода доступных таймслотов. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotRequest + */ + interval_start: string; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1FbpDraftDirectGetTimeslotRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectGetTimeslotRequest(value: object): value is V1FbpDraftDirectGetTimeslotRequest; +export declare function V1FbpDraftDirectGetTimeslotRequestFromJSON(json: any): V1FbpDraftDirectGetTimeslotRequest; +export declare function V1FbpDraftDirectGetTimeslotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectGetTimeslotRequest; +export declare function V1FbpDraftDirectGetTimeslotRequestToJSON(value?: V1FbpDraftDirectGetTimeslotRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectGetTimeslotRequest.js b/dist/esm/models/V1FbpDraftDirectGetTimeslotRequest.js new file mode 100644 index 0000000..4a2bda4 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectGetTimeslotRequest.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotRequest interface. + */ +export function instanceOfV1FbpDraftDirectGetTimeslotRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('interval_end' in value) || value['interval_end'] === undefined) + return false; + if (!('interval_start' in value) || value['interval_start'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectGetTimeslotRequestFromJSON(json) { + return V1FbpDraftDirectGetTimeslotRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectGetTimeslotRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'interval_end': json['interval_end'], + 'interval_start': json['interval_start'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDirectGetTimeslotRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'interval_end': value['interval_end'], + 'interval_start': value['interval_start'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectGetTimeslotResponse.d.ts b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponse.d.ts new file mode 100644 index 0000000..cf94321 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponse.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason } from './V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason'; +import type { V1FbpDraftDirectGetTimeslotResponseTimeslot } from './V1FbpDraftDirectGetTimeslotResponseTimeslot'; +/** + * + * @export + * @interface V1FbpDraftDirectGetTimeslotResponse + */ +export interface V1FbpDraftDirectGetTimeslotResponse { + /** + * Причины отсутствия таймслотов: + * - `EMPTY_TIMESLOTS_REASON_UNSPECIFIED` — не определено; + * - `LOGISTICS_UNKNOWN` — неизвестная ошибка на стороне логистики; + * - `NO_ROUTE` — нет маршрута; + * - `NO_ROUTE_SCHEDULES` — нет расписания на маршруте; + * - `NO_LOGISTICS_CAPACITY` — недостаточно доступных слотов на маршруте; + * - `SCHEDULE_UNKNOWN` — неизвестная ошибка на стороне расписаний; + * - `NOT_ENOUGH_CAPACITY` — недостаточно доступных слотов на складе; + * - `NOT_ENOUGH_TRUCKS` — недостаточно машиномест; + * - `LIMITS_NOT_AVAILABLE` — не настроены лимиты на складе; + * - `CROSS_DOCK_RESERVE_MISSING` — не забронирован кросс-докинговый резерв на складе; + * - `SCHEDULE_RESERVE_MISSING` — отсутствует необходимый резерв по расписанию. + * + * @type {Array} + * @memberof V1FbpDraftDirectGetTimeslotResponse + */ + reasons?: Array; + /** + * Список доступных таймслотов. + * @type {Array} + * @memberof V1FbpDraftDirectGetTimeslotResponse + */ + timeslots?: Array; + /** + * Часовой пояс склада продавца. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotResponse + */ + warehouse_timezone_name?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectGetTimeslotResponse(value: object): value is V1FbpDraftDirectGetTimeslotResponse; +export declare function V1FbpDraftDirectGetTimeslotResponseFromJSON(json: any): V1FbpDraftDirectGetTimeslotResponse; +export declare function V1FbpDraftDirectGetTimeslotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectGetTimeslotResponse; +export declare function V1FbpDraftDirectGetTimeslotResponseToJSON(value?: V1FbpDraftDirectGetTimeslotResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectGetTimeslotResponse.js b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponse.js new file mode 100644 index 0000000..3a8bb53 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON, V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON, } from './V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason'; +import { V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON, V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON, } from './V1FbpDraftDirectGetTimeslotResponseTimeslot'; +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotResponse interface. + */ +export function instanceOfV1FbpDraftDirectGetTimeslotResponse(value) { + return true; +} +export function V1FbpDraftDirectGetTimeslotResponseFromJSON(json) { + return V1FbpDraftDirectGetTimeslotResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectGetTimeslotResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON)), + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON)), + 'warehouse_timezone_name': json['warehouse_timezone_name'] == null ? undefined : json['warehouse_timezone_name'], + }; +} +export function V1FbpDraftDirectGetTimeslotResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON)), + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON)), + 'warehouse_timezone_name': value['warehouse_timezone_name'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.d.ts b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.d.ts new file mode 100644 index 0000000..dfbcfc0 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason: { + readonly EMPTY_TIMESLOTS_REASON_UNSPECIFIED: "EMPTY_TIMESLOTS_REASON_UNSPECIFIED"; + readonly LOGISTICS_UNKNOWN: "LOGISTICS_UNKNOWN"; + readonly NO_ROUTE: "NO_ROUTE"; + readonly NO_ROUTE_SCHEDULES: "NO_ROUTE_SCHEDULES"; + readonly NO_LOGISTICS_CAPACITY: "NO_LOGISTICS_CAPACITY"; + readonly SCHEDULE_UNKNOWN: "SCHEDULE_UNKNOWN"; + readonly NOT_ENOUGH_CAPACITY: "NOT_ENOUGH_CAPACITY"; + readonly NOT_ENOUGH_TRUCKS: "NOT_ENOUGH_TRUCKS"; + readonly LIMITS_NOT_AVAILABLE: "LIMITS_NOT_AVAILABLE"; + readonly CROSS_DOCK_RESERVE_MISSING: "CROSS_DOCK_RESERVE_MISSING"; + readonly SCHEDULE_RESERVE_MISSING: "SCHEDULE_RESERVE_MISSING"; +}; +export type V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason = typeof V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason[keyof typeof V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason]; +export declare function instanceOfV1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason(value: any): boolean; +export declare function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON(json: any): V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason; +export declare function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason; +export declare function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON(value?: V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.js b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.js new file mode 100644 index 0000000..bbf27c8 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason = { + EMPTY_TIMESLOTS_REASON_UNSPECIFIED: 'EMPTY_TIMESLOTS_REASON_UNSPECIFIED', + LOGISTICS_UNKNOWN: 'LOGISTICS_UNKNOWN', + NO_ROUTE: 'NO_ROUTE', + NO_ROUTE_SCHEDULES: 'NO_ROUTE_SCHEDULES', + NO_LOGISTICS_CAPACITY: 'NO_LOGISTICS_CAPACITY', + SCHEDULE_UNKNOWN: 'SCHEDULE_UNKNOWN', + NOT_ENOUGH_CAPACITY: 'NOT_ENOUGH_CAPACITY', + NOT_ENOUGH_TRUCKS: 'NOT_ENOUGH_TRUCKS', + LIMITS_NOT_AVAILABLE: 'LIMITS_NOT_AVAILABLE', + CROSS_DOCK_RESERVE_MISSING: 'CROSS_DOCK_RESERVE_MISSING', + SCHEDULE_RESERVE_MISSING: 'SCHEDULE_RESERVE_MISSING' +}; +export function instanceOfV1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason(value) { + for (const key in V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason) { + if (Object.prototype.hasOwnProperty.call(V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason, key)) { + if (V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason[key] === value) { + return true; + } + } + } + return false; +} +export function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON(json) { + return V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSONTyped(json, false); +} +export function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.d.ts b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.d.ts new file mode 100644 index 0000000..2f0898d --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectGetTimeslotResponseTimeslot + */ +export interface V1FbpDraftDirectGetTimeslotResponseTimeslot { + /** + * Zaman aralığı bitiş tarihi. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotResponseTimeslot + */ + timeslot_end?: string; + /** + * Zaman aralığı başlangıç tarihi. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotResponseTimeslot + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotResponseTimeslot interface. + */ +export declare function instanceOfV1FbpDraftDirectGetTimeslotResponseTimeslot(value: object): value is V1FbpDraftDirectGetTimeslotResponseTimeslot; +export declare function V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON(json: any): V1FbpDraftDirectGetTimeslotResponseTimeslot; +export declare function V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectGetTimeslotResponseTimeslot; +export declare function V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON(value?: V1FbpDraftDirectGetTimeslotResponseTimeslot | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.js b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.js new file mode 100644 index 0000000..5f40a61 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotResponseTimeslot interface. + */ +export function instanceOfV1FbpDraftDirectGetTimeslotResponseTimeslot(value) { + return true; +} +export function V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON(json) { + return V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSONTyped(json, false); +} +export function V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +export function V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateRequest.d.ts b/dist/esm/models/V1FbpDraftDirectProductValidateRequest.d.ts new file mode 100644 index 0000000..1c80b82 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectProductValidateRequestSkuItem } from './V1FbpDraftDirectProductValidateRequestSkuItem'; +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateRequest + */ +export interface V1FbpDraftDirectProductValidateRequest { + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1FbpDraftDirectProductValidateRequest + */ + skus: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateRequest(value: object): value is V1FbpDraftDirectProductValidateRequest; +export declare function V1FbpDraftDirectProductValidateRequestFromJSON(json: any): V1FbpDraftDirectProductValidateRequest; +export declare function V1FbpDraftDirectProductValidateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateRequest; +export declare function V1FbpDraftDirectProductValidateRequestToJSON(value?: V1FbpDraftDirectProductValidateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateRequest.js b/dist/esm/models/V1FbpDraftDirectProductValidateRequest.js new file mode 100644 index 0000000..e1cf787 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectProductValidateRequestSkuItemFromJSON, V1FbpDraftDirectProductValidateRequestSkuItemToJSON, } from './V1FbpDraftDirectProductValidateRequestSkuItem'; +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateRequest interface. + */ +export function instanceOfV1FbpDraftDirectProductValidateRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectProductValidateRequestFromJSON(json) { + return V1FbpDraftDirectProductValidateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectProductValidateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': (json['skus'].map(V1FbpDraftDirectProductValidateRequestSkuItemFromJSON)), + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDirectProductValidateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': (value['skus'].map(V1FbpDraftDirectProductValidateRequestSkuItemToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateRequestSkuItem.d.ts b/dist/esm/models/V1FbpDraftDirectProductValidateRequestSkuItem.d.ts new file mode 100644 index 0000000..668e324 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateRequestSkuItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateRequestSkuItem + */ +export interface V1FbpDraftDirectProductValidateRequestSkuItem { + /** + * Количество единиц товара в поставке. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateRequestSkuItem + */ + count: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateRequestSkuItem + */ + sku: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateRequestSkuItem interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateRequestSkuItem(value: object): value is V1FbpDraftDirectProductValidateRequestSkuItem; +export declare function V1FbpDraftDirectProductValidateRequestSkuItemFromJSON(json: any): V1FbpDraftDirectProductValidateRequestSkuItem; +export declare function V1FbpDraftDirectProductValidateRequestSkuItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateRequestSkuItem; +export declare function V1FbpDraftDirectProductValidateRequestSkuItemToJSON(value?: V1FbpDraftDirectProductValidateRequestSkuItem | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateRequestSkuItem.js b/dist/esm/models/V1FbpDraftDirectProductValidateRequestSkuItem.js new file mode 100644 index 0000000..197c567 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateRequestSkuItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateRequestSkuItem interface. + */ +export function instanceOfV1FbpDraftDirectProductValidateRequestSkuItem(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectProductValidateRequestSkuItemFromJSON(json) { + return V1FbpDraftDirectProductValidateRequestSkuItemFromJSONTyped(json, false); +} +export function V1FbpDraftDirectProductValidateRequestSkuItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'sku': json['sku'], + }; +} +export function V1FbpDraftDirectProductValidateRequestSkuItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateResponse.d.ts b/dist/esm/models/V1FbpDraftDirectProductValidateResponse.d.ts new file mode 100644 index 0000000..9468bad --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectProductValidateResponseRejectedItem } from './V1FbpDraftDirectProductValidateResponseRejectedItem'; +import type { V1FbpDraftDirectProductValidateResponseApprovedItem } from './V1FbpDraftDirectProductValidateResponseApprovedItem'; +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateResponse + */ +export interface V1FbpDraftDirectProductValidateResponse { + /** + * Подтверждённые товары. + * @type {Array} + * @memberof V1FbpDraftDirectProductValidateResponse + */ + approved_items?: Array; + /** + * `true`, если провалидированный список товаров создан. + * @type {boolean} + * @memberof V1FbpDraftDirectProductValidateResponse + */ + bundle_generated?: boolean; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponse + */ + bundle_id?: string; + /** + * Отклонённые товары. + * @type {Array} + * @memberof V1FbpDraftDirectProductValidateResponse + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateResponse(value: object): value is V1FbpDraftDirectProductValidateResponse; +export declare function V1FbpDraftDirectProductValidateResponseFromJSON(json: any): V1FbpDraftDirectProductValidateResponse; +export declare function V1FbpDraftDirectProductValidateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateResponse; +export declare function V1FbpDraftDirectProductValidateResponseToJSON(value?: V1FbpDraftDirectProductValidateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateResponse.js b/dist/esm/models/V1FbpDraftDirectProductValidateResponse.js new file mode 100644 index 0000000..4c6a4af --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateResponse.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON, V1FbpDraftDirectProductValidateResponseRejectedItemToJSON, } from './V1FbpDraftDirectProductValidateResponseRejectedItem'; +import { V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON, V1FbpDraftDirectProductValidateResponseApprovedItemToJSON, } from './V1FbpDraftDirectProductValidateResponseApprovedItem'; +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponse interface. + */ +export function instanceOfV1FbpDraftDirectProductValidateResponse(value) { + return true; +} +export function V1FbpDraftDirectProductValidateResponseFromJSON(json) { + return V1FbpDraftDirectProductValidateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectProductValidateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_items': json['approved_items'] == null ? undefined : (json['approved_items'].map(V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON)), + 'bundle_generated': json['bundle_generated'] == null ? undefined : json['bundle_generated'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON)), + }; +} +export function V1FbpDraftDirectProductValidateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_items': value['approved_items'] == null ? undefined : (value['approved_items'].map(V1FbpDraftDirectProductValidateResponseApprovedItemToJSON)), + 'bundle_generated': value['bundle_generated'], + 'bundle_id': value['bundle_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(V1FbpDraftDirectProductValidateResponseRejectedItemToJSON)), + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateResponseApprovedItem.d.ts b/dist/esm/models/V1FbpDraftDirectProductValidateResponseApprovedItem.d.ts new file mode 100644 index 0000000..10aaee1 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateResponseApprovedItem.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateResponseApprovedItem + */ +export interface V1FbpDraftDirectProductValidateResponseApprovedItem { + /** + * Штрихкод. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + icon_name?: string; + /** + * Наименование товара. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponseApprovedItem interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateResponseApprovedItem(value: object): value is V1FbpDraftDirectProductValidateResponseApprovedItem; +export declare function V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON(json: any): V1FbpDraftDirectProductValidateResponseApprovedItem; +export declare function V1FbpDraftDirectProductValidateResponseApprovedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateResponseApprovedItem; +export declare function V1FbpDraftDirectProductValidateResponseApprovedItemToJSON(value?: V1FbpDraftDirectProductValidateResponseApprovedItem | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateResponseApprovedItem.js b/dist/esm/models/V1FbpDraftDirectProductValidateResponseApprovedItem.js new file mode 100644 index 0000000..aa661c0 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateResponseApprovedItem.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponseApprovedItem interface. + */ +export function instanceOfV1FbpDraftDirectProductValidateResponseApprovedItem(value) { + return true; +} +export function V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON(json) { + return V1FbpDraftDirectProductValidateResponseApprovedItemFromJSONTyped(json, false); +} +export function V1FbpDraftDirectProductValidateResponseApprovedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +export function V1FbpDraftDirectProductValidateResponseApprovedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateResponseRejectedItem.d.ts b/dist/esm/models/V1FbpDraftDirectProductValidateResponseRejectedItem.d.ts new file mode 100644 index 0000000..29fa198 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateResponseRejectedItem.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateResponseRejectedItem + */ +export interface V1FbpDraftDirectProductValidateResponseRejectedItem { + /** + * Штрихкод. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + icon_name?: string; + /** + * Наименование товара. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + quantity?: number; + /** + * Причины отклонения: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товар не найден; + * - `INVALID` — товар не создан; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — не указан штрихкод; + * - `MULTIPLICITY` — количество товара не кратно требуемой партии; + * - `NO_PRICE` — не указана цена; + * - `BANNED` — товар не доступен к продаже или поставке на выбранный склад; + * - `ZERO_QUANTITY` — количество товаров в поставке равно 0; + * - `QUANTITY_GREATER_THEN_MAX` — количество товаров одной SKU больше максимального значения; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + rejection_reasons?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponseRejectedItem interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateResponseRejectedItem(value: object): value is V1FbpDraftDirectProductValidateResponseRejectedItem; +export declare function V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON(json: any): V1FbpDraftDirectProductValidateResponseRejectedItem; +export declare function V1FbpDraftDirectProductValidateResponseRejectedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateResponseRejectedItem; +export declare function V1FbpDraftDirectProductValidateResponseRejectedItemToJSON(value?: V1FbpDraftDirectProductValidateResponseRejectedItem | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectProductValidateResponseRejectedItem.js b/dist/esm/models/V1FbpDraftDirectProductValidateResponseRejectedItem.js new file mode 100644 index 0000000..8019526 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectProductValidateResponseRejectedItem.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1BundleItemErrorEnumFromJSON, V1BundleItemErrorEnumToJSON, } from './V1BundleItemErrorEnum'; +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponseRejectedItem interface. + */ +export function instanceOfV1FbpDraftDirectProductValidateResponseRejectedItem(value) { + return true; +} +export function V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON(json) { + return V1FbpDraftDirectProductValidateResponseRejectedItemFromJSONTyped(json, false); +} +export function V1FbpDraftDirectProductValidateResponseRejectedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rejection_reasons': json['rejection_reasons'] == null ? undefined : (json['rejection_reasons'].map(V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +export function V1FbpDraftDirectProductValidateResponseRejectedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'rejection_reasons': value['rejection_reasons'] == null ? undefined : (value['rejection_reasons'].map(V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectRegistrateRequest.d.ts b/dist/esm/models/V1FbpDraftDirectRegistrateRequest.d.ts new file mode 100644 index 0000000..b169572 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectRegistrateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectRegistrateRequest + */ +export interface V1FbpDraftDirectRegistrateRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectRegistrateRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectRegistrateRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectRegistrateRequest(value: object): value is V1FbpDraftDirectRegistrateRequest; +export declare function V1FbpDraftDirectRegistrateRequestFromJSON(json: any): V1FbpDraftDirectRegistrateRequest; +export declare function V1FbpDraftDirectRegistrateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectRegistrateRequest; +export declare function V1FbpDraftDirectRegistrateRequestToJSON(value?: V1FbpDraftDirectRegistrateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectRegistrateRequest.js b/dist/esm/models/V1FbpDraftDirectRegistrateRequest.js new file mode 100644 index 0000000..d81a312 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectRegistrateRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateRequest interface. + */ +export function instanceOfV1FbpDraftDirectRegistrateRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectRegistrateRequestFromJSON(json) { + return V1FbpDraftDirectRegistrateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectRegistrateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftDirectRegistrateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectRegistrateResponse.d.ts b/dist/esm/models/V1FbpDraftDirectRegistrateResponse.d.ts new file mode 100644 index 0000000..3d1f696 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectRegistrateResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectRegistrateResponseRegistrationError } from './V1FbpDraftDirectRegistrateResponseRegistrationError'; +/** + * + * @export + * @interface V1FbpDraftDirectRegistrateResponse + */ +export interface V1FbpDraftDirectRegistrateResponse { + /** + * + * @type {V1FbpDraftDirectRegistrateResponseRegistrationError} + * @memberof V1FbpDraftDirectRegistrateResponse + */ + error?: V1FbpDraftDirectRegistrateResponseRegistrationError; + /** + * `true`, если есть ошибка. + * @type {boolean} + * @memberof V1FbpDraftDirectRegistrateResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectRegistrateResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectRegistrateResponse(value: object): value is V1FbpDraftDirectRegistrateResponse; +export declare function V1FbpDraftDirectRegistrateResponseFromJSON(json: any): V1FbpDraftDirectRegistrateResponse; +export declare function V1FbpDraftDirectRegistrateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectRegistrateResponse; +export declare function V1FbpDraftDirectRegistrateResponseToJSON(value?: V1FbpDraftDirectRegistrateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectRegistrateResponse.js b/dist/esm/models/V1FbpDraftDirectRegistrateResponse.js new file mode 100644 index 0000000..af7632a --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectRegistrateResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON, V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON, } from './V1FbpDraftDirectRegistrateResponseRegistrationError'; +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponse interface. + */ +export function instanceOfV1FbpDraftDirectRegistrateResponse(value) { + return true; +} +export function V1FbpDraftDirectRegistrateResponseFromJSON(json) { + return V1FbpDraftDirectRegistrateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectRegistrateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftDirectRegistrateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationError.d.ts b/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationError.d.ts new file mode 100644 index 0000000..447a616 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationError.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError } from './V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError'; +import type { V1OrderErrorTypeEnum } from './V1OrderErrorTypeEnum'; +/** + * Ошибка. + * @export + * @interface V1FbpDraftDirectRegistrateResponseRegistrationError + */ +export interface V1FbpDraftDirectRegistrateResponseRegistrationError { + /** + * Ошибки провалидированного списка товара. + * @type {Array} + * @memberof V1FbpDraftDirectRegistrateResponseRegistrationError + */ + bundle_errors?: Array; + /** + * + * @type {V1OrderErrorTypeEnum} + * @memberof V1FbpDraftDirectRegistrateResponseRegistrationError + */ + order_error?: V1OrderErrorTypeEnum; +} +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponseRegistrationError interface. + */ +export declare function instanceOfV1FbpDraftDirectRegistrateResponseRegistrationError(value: object): value is V1FbpDraftDirectRegistrateResponseRegistrationError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON(json: any): V1FbpDraftDirectRegistrateResponseRegistrationError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectRegistrateResponseRegistrationError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON(value?: V1FbpDraftDirectRegistrateResponseRegistrationError | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationError.js b/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationError.js new file mode 100644 index 0000000..2709db8 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationError.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON, V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON, } from './V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError'; +import { V1OrderErrorTypeEnumFromJSON, V1OrderErrorTypeEnumToJSON, } from './V1OrderErrorTypeEnum'; +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponseRegistrationError interface. + */ +export function instanceOfV1FbpDraftDirectRegistrateResponseRegistrationError(value) { + return true; +} +export function V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON(json) { + return V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSONTyped(json, false); +} +export function V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_errors': json['bundle_errors'] == null ? undefined : (json['bundle_errors'].map(V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON)), + 'order_error': json['order_error'] == null ? undefined : V1OrderErrorTypeEnumFromJSON(json['order_error']), + }; +} +export function V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_errors': value['bundle_errors'] == null ? undefined : (value['bundle_errors'].map(V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON)), + 'order_error': V1OrderErrorTypeEnumToJSON(value['order_error']), + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.d.ts b/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.d.ts new file mode 100644 index 0000000..1633e0f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError + */ +export interface V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError { + /** + * Ошибка: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товар не найден; + * - `INVALID` — товар не создан; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — не указан штрихкод; + * - `MULTIPLICITY` — количество товара не кратно требуемой партии; + * - `NO_PRICE` — не указана цена; + * - `BANNED` — товар не доступен к продаже или поставке на выбранный склад; + * - `ZERO_QUANTITY` — количество товаров в поставке равно 0; + * - `QUANTITY_GREATER_THEN_MAX` — количество товаров одной SKU больше максимального значения; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError + */ + errors?: Array; + /** + * Идентификатор товара — SKU. + * @type {number} + * @memberof V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError + */ + sku?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError interface. + */ +export declare function instanceOfV1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError(value: object): value is V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON(json: any): V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON(value?: V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.js b/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.js new file mode 100644 index 0000000..c888f46 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1BundleItemErrorEnumFromJSON, V1BundleItemErrorEnumToJSON, } from './V1BundleItemErrorEnum'; +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError interface. + */ +export function instanceOfV1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError(value) { + return true; +} +export function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON(json) { + return V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, false); +} +export function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequest.d.ts b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequest.d.ts new file mode 100644 index 0000000..2f3a2e0 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectSellerDlvCreateRequestDirectDetails } from './V1FbpDraftDirectSellerDlvCreateRequestDirectDetails'; +/** + * + * @export + * @interface V1FbpDraftDirectSellerDlvCreateRequest + */ +export interface V1FbpDraftDirectSellerDlvCreateRequest { + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftDirectSellerDlvCreateRequestDirectDetails} + * @memberof V1FbpDraftDirectSellerDlvCreateRequest + */ + delivery_details: V1FbpDraftDirectSellerDlvCreateRequestDirectDetails; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvCreateRequest(value: object): value is V1FbpDraftDirectSellerDlvCreateRequest; +export declare function V1FbpDraftDirectSellerDlvCreateRequestFromJSON(json: any): V1FbpDraftDirectSellerDlvCreateRequest; +export declare function V1FbpDraftDirectSellerDlvCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvCreateRequest; +export declare function V1FbpDraftDirectSellerDlvCreateRequestToJSON(value?: V1FbpDraftDirectSellerDlvCreateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequest.js b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequest.js new file mode 100644 index 0000000..6d9bbd7 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequest.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON, V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON, } from './V1FbpDraftDirectSellerDlvCreateRequestDirectDetails'; +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateRequest interface. + */ +export function instanceOfV1FbpDraftDirectSellerDlvCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectSellerDlvCreateRequestFromJSON(json) { + return V1FbpDraftDirectSellerDlvCreateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectSellerDlvCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDirectSellerDlvCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.d.ts b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.d.ts new file mode 100644 index 0000000..37696e0 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ +export interface V1FbpDraftDirectSellerDlvCreateRequestDirectDetails { + /** + * ФИО водителя. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ + driver_name: string; + /** + * Начало таймслота. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ + timeslot_start: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ + vehicle_number: string; + /** + * Тип автомобиля. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ + vehicle_type: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateRequestDirectDetails interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvCreateRequestDirectDetails(value: object): value is V1FbpDraftDirectSellerDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON(json: any): V1FbpDraftDirectSellerDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON(value?: V1FbpDraftDirectSellerDlvCreateRequestDirectDetails | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.js b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.js new file mode 100644 index 0000000..7415eef --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateRequestDirectDetails interface. + */ +export function instanceOfV1FbpDraftDirectSellerDlvCreateRequestDirectDetails(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + if (!('vehicle_number' in value) || value['vehicle_number'] === undefined) + return false; + if (!('vehicle_type' in value) || value['vehicle_type'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON(json) { + return V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSONTyped(json, false); +} +export function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'timeslot_start': json['timeslot_start'], + 'vehicle_number': json['vehicle_number'], + 'vehicle_type': json['vehicle_type'], + }; +} +export function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'timeslot_start': value['timeslot_start'], + 'vehicle_number': value['vehicle_number'], + 'vehicle_type': value['vehicle_type'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvCreateResponse.d.ts b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateResponse.d.ts new file mode 100644 index 0000000..10f00c7 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectSellerDlvCreateResponse + */ +export interface V1FbpDraftDirectSellerDlvCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvCreateResponse + */ + row_version?: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvCreateResponse(value: object): value is V1FbpDraftDirectSellerDlvCreateResponse; +export declare function V1FbpDraftDirectSellerDlvCreateResponseFromJSON(json: any): V1FbpDraftDirectSellerDlvCreateResponse; +export declare function V1FbpDraftDirectSellerDlvCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvCreateResponse; +export declare function V1FbpDraftDirectSellerDlvCreateResponseToJSON(value?: V1FbpDraftDirectSellerDlvCreateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvCreateResponse.js b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateResponse.js new file mode 100644 index 0000000..e9daad2 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvCreateResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateResponse interface. + */ +export function instanceOfV1FbpDraftDirectSellerDlvCreateResponse(value) { + return true; +} +export function V1FbpDraftDirectSellerDlvCreateResponseFromJSON(json) { + return V1FbpDraftDirectSellerDlvCreateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectSellerDlvCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function V1FbpDraftDirectSellerDlvCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvEditRequest.d.ts b/dist/esm/models/V1FbpDraftDirectSellerDlvEditRequest.d.ts new file mode 100644 index 0000000..0770829 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvEditRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectSellerDlvEditRequest + */ +export interface V1FbpDraftDirectSellerDlvEditRequest { + /** + * ФИО водителя. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + driver_name: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + supply_id: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + vehicle_number: string; + /** + * Тип автомобиля. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + vehicle_type: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvEditRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvEditRequest(value: object): value is V1FbpDraftDirectSellerDlvEditRequest; +export declare function V1FbpDraftDirectSellerDlvEditRequestFromJSON(json: any): V1FbpDraftDirectSellerDlvEditRequest; +export declare function V1FbpDraftDirectSellerDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvEditRequest; +export declare function V1FbpDraftDirectSellerDlvEditRequestToJSON(value?: V1FbpDraftDirectSellerDlvEditRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvEditRequest.js b/dist/esm/models/V1FbpDraftDirectSellerDlvEditRequest.js new file mode 100644 index 0000000..468c5b1 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvEditRequest.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvEditRequest interface. + */ +export function instanceOfV1FbpDraftDirectSellerDlvEditRequest(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('vehicle_number' in value) || value['vehicle_number'] === undefined) + return false; + if (!('vehicle_type' in value) || value['vehicle_type'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectSellerDlvEditRequestFromJSON(json) { + return V1FbpDraftDirectSellerDlvEditRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectSellerDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'vehicle_number': json['vehicle_number'], + 'vehicle_type': json['vehicle_type'], + }; +} +export function V1FbpDraftDirectSellerDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'vehicle_number': value['vehicle_number'], + 'vehicle_type': value['vehicle_type'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvEditResponse.d.ts b/dist/esm/models/V1FbpDraftDirectSellerDlvEditResponse.d.ts new file mode 100644 index 0000000..ebc514c --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderDraftValidationError } from './V1OrderDraftValidationError'; +/** + * + * @export + * @interface V1FbpDraftDirectSellerDlvEditResponse + */ +export interface V1FbpDraftDirectSellerDlvEditResponse { + /** + * + * @type {V1OrderDraftValidationError} + * @memberof V1FbpDraftDirectSellerDlvEditResponse + */ + error?: V1OrderDraftValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpDraftDirectSellerDlvEditResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvEditResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvEditResponse(value: object): value is V1FbpDraftDirectSellerDlvEditResponse; +export declare function V1FbpDraftDirectSellerDlvEditResponseFromJSON(json: any): V1FbpDraftDirectSellerDlvEditResponse; +export declare function V1FbpDraftDirectSellerDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvEditResponse; +export declare function V1FbpDraftDirectSellerDlvEditResponseToJSON(value?: V1FbpDraftDirectSellerDlvEditResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectSellerDlvEditResponse.js b/dist/esm/models/V1FbpDraftDirectSellerDlvEditResponse.js new file mode 100644 index 0000000..5412da9 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectSellerDlvEditResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderDraftValidationErrorFromJSON, V1OrderDraftValidationErrorToJSON, } from './V1OrderDraftValidationError'; +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvEditResponse interface. + */ +export function instanceOfV1FbpDraftDirectSellerDlvEditResponse(value) { + return true; +} +export function V1FbpDraftDirectSellerDlvEditResponseFromJSON(json) { + return V1FbpDraftDirectSellerDlvEditResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectSellerDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1OrderDraftValidationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftDirectSellerDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1OrderDraftValidationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectTimeslotEditRequest.d.ts b/dist/esm/models/V1FbpDraftDirectTimeslotEditRequest.d.ts new file mode 100644 index 0000000..c0390e6 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTimeslotEditRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectTimeslotEditRequest + */ +export interface V1FbpDraftDirectTimeslotEditRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTimeslotEditRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDirectTimeslotEditRequest + */ + supply_id: string; + /** + * Начало таймслота. + * @type {string} + * @memberof V1FbpDraftDirectTimeslotEditRequest + */ + timeslot_start: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectTimeslotEditRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectTimeslotEditRequest(value: object): value is V1FbpDraftDirectTimeslotEditRequest; +export declare function V1FbpDraftDirectTimeslotEditRequestFromJSON(json: any): V1FbpDraftDirectTimeslotEditRequest; +export declare function V1FbpDraftDirectTimeslotEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTimeslotEditRequest; +export declare function V1FbpDraftDirectTimeslotEditRequestToJSON(value?: V1FbpDraftDirectTimeslotEditRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectTimeslotEditRequest.js b/dist/esm/models/V1FbpDraftDirectTimeslotEditRequest.js new file mode 100644 index 0000000..7d7f9d2 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTimeslotEditRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectTimeslotEditRequest interface. + */ +export function instanceOfV1FbpDraftDirectTimeslotEditRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectTimeslotEditRequestFromJSON(json) { + return V1FbpDraftDirectTimeslotEditRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectTimeslotEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'timeslot_start': json['timeslot_start'], + }; +} +export function V1FbpDraftDirectTimeslotEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectTimeslotEditResponse.d.ts b/dist/esm/models/V1FbpDraftDirectTimeslotEditResponse.d.ts new file mode 100644 index 0000000..1abed4d --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTimeslotEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectTimeslotEditResponseReserveFailureType } from './V1FbpDraftDirectTimeslotEditResponseReserveFailureType'; +/** + * + * @export + * @interface V1FbpDraftDirectTimeslotEditResponse + */ +export interface V1FbpDraftDirectTimeslotEditResponse { + /** + * Причина ошибки: + * - `RESERVE_FAILURE_TYPE_UNSPECIFIED` — не определена; + * - `REQUEST_VALIDATION` — в запросе указана дата резервирования в прошлом; + * - `INVALID_RESERVE` — исходный резерв не найден, неактивен или уже содержит заявки, а его пытаются перезаписать; + * - `LOGISTICS_REASON` — ошибка на стороне логистики; + * - `SCHEDULE_REASON` — ошибка на стороне расписаний; + * - `NO_CAPACITY` — нет доступных слотов для резервирования. + * + * @type {Array} + * @memberof V1FbpDraftDirectTimeslotEditResponse + */ + error_reasons?: Array; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTimeslotEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectTimeslotEditResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectTimeslotEditResponse(value: object): value is V1FbpDraftDirectTimeslotEditResponse; +export declare function V1FbpDraftDirectTimeslotEditResponseFromJSON(json: any): V1FbpDraftDirectTimeslotEditResponse; +export declare function V1FbpDraftDirectTimeslotEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTimeslotEditResponse; +export declare function V1FbpDraftDirectTimeslotEditResponseToJSON(value?: V1FbpDraftDirectTimeslotEditResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectTimeslotEditResponse.js b/dist/esm/models/V1FbpDraftDirectTimeslotEditResponse.js new file mode 100644 index 0000000..0ae4e89 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTimeslotEditResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON, V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON, } from './V1FbpDraftDirectTimeslotEditResponseReserveFailureType'; +/** + * Check if a given object implements the V1FbpDraftDirectTimeslotEditResponse interface. + */ +export function instanceOfV1FbpDraftDirectTimeslotEditResponse(value) { + return true; +} +export function V1FbpDraftDirectTimeslotEditResponseFromJSON(json) { + return V1FbpDraftDirectTimeslotEditResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectTimeslotEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON)), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftDirectTimeslotEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON)), + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.d.ts b/dist/esm/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.d.ts new file mode 100644 index 0000000..3b85b3a --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1FbpDraftDirectTimeslotEditResponseReserveFailureType: { + readonly RESERVE_FAILURE_TYPE_UNSPECIFIED: "RESERVE_FAILURE_TYPE_UNSPECIFIED"; + readonly REQUEST_VALIDATION: "REQUEST_VALIDATION"; + readonly INVALID_RESERVE: "INVALID_RESERVE"; + readonly LOGISTICS_REASON: "LOGISTICS_REASON"; + readonly SCHEDULE_REASON: "SCHEDULE_REASON"; + readonly NO_CAPACITY: "NO_CAPACITY"; +}; +export type V1FbpDraftDirectTimeslotEditResponseReserveFailureType = typeof V1FbpDraftDirectTimeslotEditResponseReserveFailureType[keyof typeof V1FbpDraftDirectTimeslotEditResponseReserveFailureType]; +export declare function instanceOfV1FbpDraftDirectTimeslotEditResponseReserveFailureType(value: any): boolean; +export declare function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON(json: any): V1FbpDraftDirectTimeslotEditResponseReserveFailureType; +export declare function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTimeslotEditResponseReserveFailureType; +export declare function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON(value?: V1FbpDraftDirectTimeslotEditResponseReserveFailureType | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.js b/dist/esm/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.js new file mode 100644 index 0000000..f928b94 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1FbpDraftDirectTimeslotEditResponseReserveFailureType = { + RESERVE_FAILURE_TYPE_UNSPECIFIED: 'RESERVE_FAILURE_TYPE_UNSPECIFIED', + REQUEST_VALIDATION: 'REQUEST_VALIDATION', + INVALID_RESERVE: 'INVALID_RESERVE', + LOGISTICS_REASON: 'LOGISTICS_REASON', + SCHEDULE_REASON: 'SCHEDULE_REASON', + NO_CAPACITY: 'NO_CAPACITY' +}; +export function instanceOfV1FbpDraftDirectTimeslotEditResponseReserveFailureType(value) { + for (const key in V1FbpDraftDirectTimeslotEditResponseReserveFailureType) { + if (Object.prototype.hasOwnProperty.call(V1FbpDraftDirectTimeslotEditResponseReserveFailureType, key)) { + if (V1FbpDraftDirectTimeslotEditResponseReserveFailureType[key] === value) { + return true; + } + } + } + return false; +} +export function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON(json) { + return V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSONTyped(json, false); +} +export function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequest.d.ts b/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequest.d.ts new file mode 100644 index 0000000..2b12c06 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectTplDlvCreateRequestDirectDetails } from './V1FbpDraftDirectTplDlvCreateRequestDirectDetails'; +/** + * + * @export + * @interface V1FbpDraftDirectTplDlvCreateRequest + */ +export interface V1FbpDraftDirectTplDlvCreateRequest { + /** + * Идентификатор комплекта. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftDirectTplDlvCreateRequestDirectDetails} + * @memberof V1FbpDraftDirectTplDlvCreateRequest + */ + delivery_details: V1FbpDraftDirectTplDlvCreateRequestDirectDetails; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvCreateRequest(value: object): value is V1FbpDraftDirectTplDlvCreateRequest; +export declare function V1FbpDraftDirectTplDlvCreateRequestFromJSON(json: any): V1FbpDraftDirectTplDlvCreateRequest; +export declare function V1FbpDraftDirectTplDlvCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvCreateRequest; +export declare function V1FbpDraftDirectTplDlvCreateRequestToJSON(value?: V1FbpDraftDirectTplDlvCreateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequest.js b/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequest.js new file mode 100644 index 0000000..a4d3a90 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequest.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON, V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON, } from './V1FbpDraftDirectTplDlvCreateRequestDirectDetails'; +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateRequest interface. + */ +export function instanceOfV1FbpDraftDirectTplDlvCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectTplDlvCreateRequestFromJSON(json) { + return V1FbpDraftDirectTplDlvCreateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectTplDlvCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDirectTplDlvCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.d.ts b/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.d.ts new file mode 100644 index 0000000..b7e7866 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftDirectTplDlvCreateRequestDirectDetails + */ +export interface V1FbpDraftDirectTplDlvCreateRequestDirectDetails { + /** + * Время начала таймслота по местному времени. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateRequestDirectDetails + */ + timeslot_start: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateRequestDirectDetails + */ + tracking_number: string; + /** + * Название транспортной компании. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateRequestDirectDetails + */ + transport_company_name: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateRequestDirectDetails interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvCreateRequestDirectDetails(value: object): value is V1FbpDraftDirectTplDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON(json: any): V1FbpDraftDirectTplDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON(value?: V1FbpDraftDirectTplDlvCreateRequestDirectDetails | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.js b/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.js new file mode 100644 index 0000000..4acf505 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateRequestDirectDetails interface. + */ +export function instanceOfV1FbpDraftDirectTplDlvCreateRequestDirectDetails(value) { + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + if (!('tracking_number' in value) || value['tracking_number'] === undefined) + return false; + if (!('transport_company_name' in value) || value['transport_company_name'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON(json) { + return V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSONTyped(json, false); +} +export function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_start': json['timeslot_start'], + 'tracking_number': json['tracking_number'], + 'transport_company_name': json['transport_company_name'], + }; +} +export function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_start': value['timeslot_start'], + 'tracking_number': value['tracking_number'], + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvCreateResponse.d.ts b/dist/esm/models/V1FbpDraftDirectTplDlvCreateResponse.d.ts new file mode 100644 index 0000000..902259f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectTplDlvCreateResponse + */ +export interface V1FbpDraftDirectTplDlvCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvCreateResponse + */ + row_version?: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvCreateResponse(value: object): value is V1FbpDraftDirectTplDlvCreateResponse; +export declare function V1FbpDraftDirectTplDlvCreateResponseFromJSON(json: any): V1FbpDraftDirectTplDlvCreateResponse; +export declare function V1FbpDraftDirectTplDlvCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvCreateResponse; +export declare function V1FbpDraftDirectTplDlvCreateResponseToJSON(value?: V1FbpDraftDirectTplDlvCreateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvCreateResponse.js b/dist/esm/models/V1FbpDraftDirectTplDlvCreateResponse.js new file mode 100644 index 0000000..a10a3d5 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvCreateResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateResponse interface. + */ +export function instanceOfV1FbpDraftDirectTplDlvCreateResponse(value) { + return true; +} +export function V1FbpDraftDirectTplDlvCreateResponseFromJSON(json) { + return V1FbpDraftDirectTplDlvCreateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectTplDlvCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function V1FbpDraftDirectTplDlvCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvEditRequest.d.ts b/dist/esm/models/V1FbpDraftDirectTplDlvEditRequest.d.ts new file mode 100644 index 0000000..037c532 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvEditRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectTplDlvEditRequest + */ +export interface V1FbpDraftDirectTplDlvEditRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvEditRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvEditRequest + */ + supply_id: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvEditRequest + */ + tracking_number: string; + /** + * Название транспортной компании. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvEditRequest + */ + transport_company_name: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvEditRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvEditRequest(value: object): value is V1FbpDraftDirectTplDlvEditRequest; +export declare function V1FbpDraftDirectTplDlvEditRequestFromJSON(json: any): V1FbpDraftDirectTplDlvEditRequest; +export declare function V1FbpDraftDirectTplDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvEditRequest; +export declare function V1FbpDraftDirectTplDlvEditRequestToJSON(value?: V1FbpDraftDirectTplDlvEditRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvEditRequest.js b/dist/esm/models/V1FbpDraftDirectTplDlvEditRequest.js new file mode 100644 index 0000000..0b51c56 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvEditRequest.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvEditRequest interface. + */ +export function instanceOfV1FbpDraftDirectTplDlvEditRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('tracking_number' in value) || value['tracking_number'] === undefined) + return false; + if (!('transport_company_name' in value) || value['transport_company_name'] === undefined) + return false; + return true; +} +export function V1FbpDraftDirectTplDlvEditRequestFromJSON(json) { + return V1FbpDraftDirectTplDlvEditRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDirectTplDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'tracking_number': json['tracking_number'], + 'transport_company_name': json['transport_company_name'], + }; +} +export function V1FbpDraftDirectTplDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'tracking_number': value['tracking_number'], + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvEditResponse.d.ts b/dist/esm/models/V1FbpDraftDirectTplDlvEditResponse.d.ts new file mode 100644 index 0000000..2dc5295 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderDraftValidationError } from './V1OrderDraftValidationError'; +/** + * + * @export + * @interface V1FbpDraftDirectTplDlvEditResponse + */ +export interface V1FbpDraftDirectTplDlvEditResponse { + /** + * + * @type {V1OrderDraftValidationError} + * @memberof V1FbpDraftDirectTplDlvEditResponse + */ + error?: V1OrderDraftValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpDraftDirectTplDlvEditResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvEditResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvEditResponse(value: object): value is V1FbpDraftDirectTplDlvEditResponse; +export declare function V1FbpDraftDirectTplDlvEditResponseFromJSON(json: any): V1FbpDraftDirectTplDlvEditResponse; +export declare function V1FbpDraftDirectTplDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvEditResponse; +export declare function V1FbpDraftDirectTplDlvEditResponseToJSON(value?: V1FbpDraftDirectTplDlvEditResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDirectTplDlvEditResponse.js b/dist/esm/models/V1FbpDraftDirectTplDlvEditResponse.js new file mode 100644 index 0000000..380ceca --- /dev/null +++ b/dist/esm/models/V1FbpDraftDirectTplDlvEditResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderDraftValidationErrorFromJSON, V1OrderDraftValidationErrorToJSON, } from './V1OrderDraftValidationError'; +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvEditResponse interface. + */ +export function instanceOfV1FbpDraftDirectTplDlvEditResponse(value) { + return true; +} +export function V1FbpDraftDirectTplDlvEditResponseFromJSON(json) { + return V1FbpDraftDirectTplDlvEditResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDirectTplDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1OrderDraftValidationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftDirectTplDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1OrderDraftValidationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffCreateRequest.d.ts b/dist/esm/models/V1FbpDraftDropOffCreateRequest.d.ts new file mode 100644 index 0000000..6fc6e5f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffCreateRequestDeliveryDetails } from './V1FbpDraftDropOffCreateRequestDeliveryDetails'; +/** + * + * @export + * @interface V1FbpDraftDropOffCreateRequest + */ +export interface V1FbpDraftDropOffCreateRequest { + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDropOffCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftDropOffCreateRequestDeliveryDetails} + * @memberof V1FbpDraftDropOffCreateRequest + */ + delivery_details: V1FbpDraftDropOffCreateRequestDeliveryDetails; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftDropOffCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1FbpDraftDropOffCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffCreateRequest(value: object): value is V1FbpDraftDropOffCreateRequest; +export declare function V1FbpDraftDropOffCreateRequestFromJSON(json: any): V1FbpDraftDropOffCreateRequest; +export declare function V1FbpDraftDropOffCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffCreateRequest; +export declare function V1FbpDraftDropOffCreateRequestToJSON(value?: V1FbpDraftDropOffCreateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffCreateRequest.js b/dist/esm/models/V1FbpDraftDropOffCreateRequest.js new file mode 100644 index 0000000..d50cf7a --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffCreateRequest.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON, V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON, } from './V1FbpDraftDropOffCreateRequestDeliveryDetails'; +/** + * Check if a given object implements the V1FbpDraftDropOffCreateRequest interface. + */ +export function instanceOfV1FbpDraftDropOffCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffCreateRequestFromJSON(json) { + return V1FbpDraftDropOffCreateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDropOffCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.d.ts b/dist/esm/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.d.ts new file mode 100644 index 0000000..3d4d3c4 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftDropOffCreateRequestDeliveryDetails + */ +export interface V1FbpDraftDropOffCreateRequestDeliveryDetails { + /** + * Дата доставки. + * @type {string} + * @memberof V1FbpDraftDropOffCreateRequestDeliveryDetails + */ + drop_off_date: string; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1FbpDraftDropOffCreateRequestDeliveryDetails + */ + drop_off_point_id: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpDraftDropOffCreateRequestDeliveryDetails + */ + drop_off_province_uuid: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffCreateRequestDeliveryDetails interface. + */ +export declare function instanceOfV1FbpDraftDropOffCreateRequestDeliveryDetails(value: object): value is V1FbpDraftDropOffCreateRequestDeliveryDetails; +export declare function V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON(json: any): V1FbpDraftDropOffCreateRequestDeliveryDetails; +export declare function V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffCreateRequestDeliveryDetails; +export declare function V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON(value?: V1FbpDraftDropOffCreateRequestDeliveryDetails | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.js b/dist/esm/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.js new file mode 100644 index 0000000..98c5b54 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffCreateRequestDeliveryDetails interface. + */ +export function instanceOfV1FbpDraftDropOffCreateRequestDeliveryDetails(value) { + if (!('drop_off_date' in value) || value['drop_off_date'] === undefined) + return false; + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('drop_off_province_uuid' in value) || value['drop_off_province_uuid'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON(json) { + return V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_date': json['drop_off_date'], + 'drop_off_point_id': json['drop_off_point_id'], + 'drop_off_province_uuid': json['drop_off_province_uuid'], + }; +} +export function V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_date': value['drop_off_date'], + 'drop_off_point_id': value['drop_off_point_id'], + 'drop_off_province_uuid': value['drop_off_province_uuid'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffCreateResponse.d.ts b/dist/esm/models/V1FbpDraftDropOffCreateResponse.d.ts new file mode 100644 index 0000000..3f2dc69 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffCreateResponse + */ +export interface V1FbpDraftDropOffCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftDropOffCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffCreateResponse + */ + row_version?: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDropOffCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffCreateResponse(value: object): value is V1FbpDraftDropOffCreateResponse; +export declare function V1FbpDraftDropOffCreateResponseFromJSON(json: any): V1FbpDraftDropOffCreateResponse; +export declare function V1FbpDraftDropOffCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffCreateResponse; +export declare function V1FbpDraftDropOffCreateResponseToJSON(value?: V1FbpDraftDropOffCreateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffCreateResponse.js b/dist/esm/models/V1FbpDraftDropOffCreateResponse.js new file mode 100644 index 0000000..f0a7e02 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffCreateResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffCreateResponse interface. + */ +export function instanceOfV1FbpDraftDropOffCreateResponse(value) { + return true; +} +export function V1FbpDraftDropOffCreateResponseFromJSON(json) { + return V1FbpDraftDropOffCreateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function V1FbpDraftDropOffCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffDeleteRequest.d.ts b/dist/esm/models/V1FbpDraftDropOffDeleteRequest.d.ts new file mode 100644 index 0000000..a556dea --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffDeleteRequest + */ +export interface V1FbpDraftDropOffDeleteRequest { + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDropOffDeleteRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffDeleteRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffDeleteRequest(value: object): value is V1FbpDraftDropOffDeleteRequest; +export declare function V1FbpDraftDropOffDeleteRequestFromJSON(json: any): V1FbpDraftDropOffDeleteRequest; +export declare function V1FbpDraftDropOffDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffDeleteRequest; +export declare function V1FbpDraftDropOffDeleteRequestToJSON(value?: V1FbpDraftDropOffDeleteRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffDeleteRequest.js b/dist/esm/models/V1FbpDraftDropOffDeleteRequest.js new file mode 100644 index 0000000..2fcd2d8 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffDeleteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffDeleteRequest interface. + */ +export function instanceOfV1FbpDraftDropOffDeleteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffDeleteRequestFromJSON(json) { + return V1FbpDraftDropOffDeleteRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftDropOffDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffDeleteResponse.d.ts b/dist/esm/models/V1FbpDraftDropOffDeleteResponse.d.ts new file mode 100644 index 0000000..fa54e8e --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancellationState } from './V1CancellationState'; +/** + * + * @export + * @interface V1FbpDraftDropOffDeleteResponse + */ +export interface V1FbpDraftDropOffDeleteResponse { + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftDropOffDeleteResponse + */ + cancellation_state?: V1CancellationState; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffDeleteResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffDeleteResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffDeleteResponse(value: object): value is V1FbpDraftDropOffDeleteResponse; +export declare function V1FbpDraftDropOffDeleteResponseFromJSON(json: any): V1FbpDraftDropOffDeleteResponse; +export declare function V1FbpDraftDropOffDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffDeleteResponse; +export declare function V1FbpDraftDropOffDeleteResponseToJSON(value?: V1FbpDraftDropOffDeleteResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffDeleteResponse.js b/dist/esm/models/V1FbpDraftDropOffDeleteResponse.js new file mode 100644 index 0000000..d70b995 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffDeleteResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CancellationStateFromJSON, V1CancellationStateToJSON, } from './V1CancellationState'; +/** + * Check if a given object implements the V1FbpDraftDropOffDeleteResponse interface. + */ +export function instanceOfV1FbpDraftDropOffDeleteResponse(value) { + return true; +} +export function V1FbpDraftDropOffDeleteResponseFromJSON(json) { + return V1FbpDraftDropOffDeleteResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_state': json['cancellation_state'] == null ? undefined : V1CancellationStateFromJSON(json['cancellation_state']), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftDropOffDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_state': V1CancellationStateToJSON(value['cancellation_state']), + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffDlvEditRequest.d.ts b/dist/esm/models/V1FbpDraftDropOffDlvEditRequest.d.ts new file mode 100644 index 0000000..233f268 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffDlvEditRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffDlvEditRequest + */ +export interface V1FbpDraftDropOffDlvEditRequest { + /** + * Дата доставки. + * @type {string} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + drop_off_date: string; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + drop_off_point_id: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + drop_off_province_uuid: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffDlvEditRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffDlvEditRequest(value: object): value is V1FbpDraftDropOffDlvEditRequest; +export declare function V1FbpDraftDropOffDlvEditRequestFromJSON(json: any): V1FbpDraftDropOffDlvEditRequest; +export declare function V1FbpDraftDropOffDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffDlvEditRequest; +export declare function V1FbpDraftDropOffDlvEditRequestToJSON(value?: V1FbpDraftDropOffDlvEditRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffDlvEditRequest.js b/dist/esm/models/V1FbpDraftDropOffDlvEditRequest.js new file mode 100644 index 0000000..c7fca3a --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffDlvEditRequest.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffDlvEditRequest interface. + */ +export function instanceOfV1FbpDraftDropOffDlvEditRequest(value) { + if (!('drop_off_date' in value) || value['drop_off_date'] === undefined) + return false; + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('drop_off_province_uuid' in value) || value['drop_off_province_uuid'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffDlvEditRequestFromJSON(json) { + return V1FbpDraftDropOffDlvEditRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_date': json['drop_off_date'], + 'drop_off_point_id': json['drop_off_point_id'], + 'drop_off_province_uuid': json['drop_off_province_uuid'], + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftDropOffDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_date': value['drop_off_date'], + 'drop_off_point_id': value['drop_off_point_id'], + 'drop_off_province_uuid': value['drop_off_province_uuid'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffDlvEditResponse.d.ts b/dist/esm/models/V1FbpDraftDropOffDlvEditResponse.d.ts new file mode 100644 index 0000000..6e9b970 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffDlvEditResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffDlvEditResponse + */ +export interface V1FbpDraftDropOffDlvEditResponse { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffDlvEditResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffDlvEditResponse(value: object): value is V1FbpDraftDropOffDlvEditResponse; +export declare function V1FbpDraftDropOffDlvEditResponseFromJSON(json: any): V1FbpDraftDropOffDlvEditResponse; +export declare function V1FbpDraftDropOffDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffDlvEditResponse; +export declare function V1FbpDraftDropOffDlvEditResponseToJSON(value?: V1FbpDraftDropOffDlvEditResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffDlvEditResponse.js b/dist/esm/models/V1FbpDraftDropOffDlvEditResponse.js new file mode 100644 index 0000000..41b2f4f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffDlvEditResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffDlvEditResponse interface. + */ +export function instanceOfV1FbpDraftDropOffDlvEditResponse(value) { + return true; +} +export function V1FbpDraftDropOffDlvEditResponseFromJSON(json) { + return V1FbpDraftDropOffDlvEditResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftDropOffDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffPointListRequest.d.ts b/dist/esm/models/V1FbpDraftDropOffPointListRequest.d.ts new file mode 100644 index 0000000..c747b61 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointListRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffPointListRequest + */ +export interface V1FbpDraftDropOffPointListRequest { + /** + * Следующий номер страницы. + * @type {number} + * @memberof V1FbpDraftDropOffPointListRequest + */ + next_page_number?: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V1FbpDraftDropOffPointListRequest + */ + page_size: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpDraftDropOffPointListRequest + */ + province_uuid: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDropOffPointListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointListRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointListRequest(value: object): value is V1FbpDraftDropOffPointListRequest; +export declare function V1FbpDraftDropOffPointListRequestFromJSON(json: any): V1FbpDraftDropOffPointListRequest; +export declare function V1FbpDraftDropOffPointListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointListRequest; +export declare function V1FbpDraftDropOffPointListRequestToJSON(value?: V1FbpDraftDropOffPointListRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffPointListRequest.js b/dist/esm/models/V1FbpDraftDropOffPointListRequest.js new file mode 100644 index 0000000..44f0616 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointListRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffPointListRequest interface. + */ +export function instanceOfV1FbpDraftDropOffPointListRequest(value) { + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + if (!('province_uuid' in value) || value['province_uuid'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffPointListRequestFromJSON(json) { + return V1FbpDraftDropOffPointListRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffPointListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'next_page_number': json['next_page_number'] == null ? undefined : json['next_page_number'], + 'page_size': json['page_size'], + 'province_uuid': json['province_uuid'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDropOffPointListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'next_page_number': value['next_page_number'], + 'page_size': value['page_size'], + 'province_uuid': value['province_uuid'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffPointListResponse.d.ts b/dist/esm/models/V1FbpDraftDropOffPointListResponse.d.ts new file mode 100644 index 0000000..70f61cc --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpDraftDropOffPointListResponseDropOffPoint } from './FbpDraftDropOffPointListResponseDropOffPoint'; +/** + * + * @export + * @interface V1FbpDraftDropOffPointListResponse + */ +export interface V1FbpDraftDropOffPointListResponse { + /** + * Список drop-off пунктов. + * @type {Array} + * @memberof V1FbpDraftDropOffPointListResponse + */ + drop_off_points?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointListResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointListResponse(value: object): value is V1FbpDraftDropOffPointListResponse; +export declare function V1FbpDraftDropOffPointListResponseFromJSON(json: any): V1FbpDraftDropOffPointListResponse; +export declare function V1FbpDraftDropOffPointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointListResponse; +export declare function V1FbpDraftDropOffPointListResponseToJSON(value?: V1FbpDraftDropOffPointListResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffPointListResponse.js b/dist/esm/models/V1FbpDraftDropOffPointListResponse.js new file mode 100644 index 0000000..452f540 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbpDraftDropOffPointListResponseDropOffPointFromJSON, FbpDraftDropOffPointListResponseDropOffPointToJSON, } from './FbpDraftDropOffPointListResponseDropOffPoint'; +/** + * Check if a given object implements the V1FbpDraftDropOffPointListResponse interface. + */ +export function instanceOfV1FbpDraftDropOffPointListResponse(value) { + return true; +} +export function V1FbpDraftDropOffPointListResponseFromJSON(json) { + return V1FbpDraftDropOffPointListResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffPointListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_points': json['drop_off_points'] == null ? undefined : (json['drop_off_points'].map(FbpDraftDropOffPointListResponseDropOffPointFromJSON)), + }; +} +export function V1FbpDraftDropOffPointListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_points': value['drop_off_points'] == null ? undefined : (value['drop_off_points'].map(FbpDraftDropOffPointListResponseDropOffPointToJSON)), + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableRequest.d.ts b/dist/esm/models/V1FbpDraftDropOffPointTimetableRequest.d.ts new file mode 100644 index 0000000..f18d703 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffPointTimetableRequest + */ +export interface V1FbpDraftDropOffPointTimetableRequest { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1FbpDraftDropOffPointTimetableRequest + */ + drop_off_point_id: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableRequest + */ + province_uuid: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDropOffPointTimetableRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableRequest(value: object): value is V1FbpDraftDropOffPointTimetableRequest; +export declare function V1FbpDraftDropOffPointTimetableRequestFromJSON(json: any): V1FbpDraftDropOffPointTimetableRequest; +export declare function V1FbpDraftDropOffPointTimetableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableRequest; +export declare function V1FbpDraftDropOffPointTimetableRequestToJSON(value?: V1FbpDraftDropOffPointTimetableRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableRequest.js b/dist/esm/models/V1FbpDraftDropOffPointTimetableRequest.js new file mode 100644 index 0000000..e6b9d9f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableRequest interface. + */ +export function instanceOfV1FbpDraftDropOffPointTimetableRequest(value) { + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('province_uuid' in value) || value['province_uuid'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffPointTimetableRequestFromJSON(json) { + return V1FbpDraftDropOffPointTimetableRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffPointTimetableRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_point_id': json['drop_off_point_id'], + 'province_uuid': json['province_uuid'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDropOffPointTimetableRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_point_id': value['drop_off_point_id'], + 'province_uuid': value['province_uuid'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponse.d.ts b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponse.d.ts new file mode 100644 index 0000000..d35a23e --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffPointTimetableResponseCalendar } from './V1FbpDraftDropOffPointTimetableResponseCalendar'; +/** + * + * @export + * @interface V1FbpDraftDropOffPointTimetableResponse + */ +export interface V1FbpDraftDropOffPointTimetableResponse { + /** + * Расписание работы drop-off пункта. + * @type {Array} + * @memberof V1FbpDraftDropOffPointTimetableResponse + */ + calendar?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponse(value: object): value is V1FbpDraftDropOffPointTimetableResponse; +export declare function V1FbpDraftDropOffPointTimetableResponseFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponse; +export declare function V1FbpDraftDropOffPointTimetableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponse; +export declare function V1FbpDraftDropOffPointTimetableResponseToJSON(value?: V1FbpDraftDropOffPointTimetableResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponse.js b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponse.js new file mode 100644 index 0000000..9eb9ed6 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON, V1FbpDraftDropOffPointTimetableResponseCalendarToJSON, } from './V1FbpDraftDropOffPointTimetableResponseCalendar'; +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponse interface. + */ +export function instanceOfV1FbpDraftDropOffPointTimetableResponse(value) { + return true; +} +export function V1FbpDraftDropOffPointTimetableResponseFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffPointTimetableResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calendar': json['calendar'] == null ? undefined : (json['calendar'].map(V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON)), + }; +} +export function V1FbpDraftDropOffPointTimetableResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'calendar': value['calendar'] == null ? undefined : (value['calendar'].map(V1FbpDraftDropOffPointTimetableResponseCalendarToJSON)), + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendar.d.ts b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendar.d.ts new file mode 100644 index 0000000..903abed --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendar.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DayOfWeek } from './V1DayOfWeek'; +import type { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem'; +/** + * + * @export + * @interface V1FbpDraftDropOffPointTimetableResponseCalendar + */ +export interface V1FbpDraftDropOffPointTimetableResponseCalendar { + /** + * + * @type {V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendar + */ + calendar_item?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; + /** + * + * @type {V1DayOfWeek} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendar + */ + day_of_week?: V1DayOfWeek; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendar interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendar(value: object): value is V1FbpDraftDropOffPointTimetableResponseCalendar; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponseCalendar; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponseCalendar; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarToJSON(value?: V1FbpDraftDropOffPointTimetableResponseCalendar | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendar.js b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendar.js new file mode 100644 index 0000000..4c23afd --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendar.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DayOfWeekFromJSON, V1DayOfWeekToJSON, } from './V1DayOfWeek'; +import { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON, } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem'; +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendar interface. + */ +export function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendar(value) { + return true; +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseCalendarFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calendar_item': json['calendar_item'] == null ? undefined : V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON(json['calendar_item']), + 'day_of_week': json['day_of_week'] == null ? undefined : V1DayOfWeekFromJSON(json['day_of_week']), + }; +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarToJSON(value) { + if (value == null) { + return value; + } + return { + 'calendar_item': V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON(value['calendar_item']), + 'day_of_week': V1DayOfWeekToJSON(value['day_of_week']), + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.d.ts b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.d.ts new file mode 100644 index 0000000..06341d5 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening'; +import type { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime'; +/** + * Расписание работы. + * @export + * @interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem + */ +export interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem { + /** + * + * @type {V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem + */ + break_hours?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; + /** + * `true`, если праздничный день. + * + * @type {boolean} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem + */ + is_holiday?: boolean; + /** + * + * @type {V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem + */ + opening_hours?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem(value: object): value is V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON(value?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.js b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.js new file mode 100644 index 0000000..a8b6798 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON, } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening'; +import { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON, } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime'; +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem interface. + */ +export function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem(value) { + return true; +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'break_hours': json['break_hours'] == null ? undefined : V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json['break_hours']), + 'is_holiday': json['is_holiday'] == null ? undefined : json['is_holiday'], + 'opening_hours': json['opening_hours'] == null ? undefined : V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON(json['opening_hours']), + }; +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'break_hours': V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value['break_hours']), + 'is_holiday': value['is_holiday'], + 'opening_hours': V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON(value['opening_hours']), + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts new file mode 100644 index 0000000..8386ddf --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часы перерыва. + * @export + * @interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime + */ +export interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime { + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime + */ + timeslot_end?: string; + /** + * Время начала таймслота. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime(value: object): value is V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.js b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.js new file mode 100644 index 0000000..35e4a8a --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime interface. + */ +export function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime(value) { + return true; +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.d.ts b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.d.ts new file mode 100644 index 0000000..d26d299 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часы работы. + * @export + * @interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening + */ +export interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening { + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening + */ + timeslot_end?: string; + /** + * Время начала таймслота. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening(value: object): value is V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON(value?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.js b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.js new file mode 100644 index 0000000..aa58c66 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening interface. + */ +export function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening(value) { + return true; +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +export function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateRequest.d.ts b/dist/esm/models/V1FbpDraftDropOffProductValidateRequest.d.ts new file mode 100644 index 0000000..db26c65 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffProductValidateRequestSkuItem } from './V1FbpDraftDropOffProductValidateRequestSkuItem'; +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateRequest + */ +export interface V1FbpDraftDropOffProductValidateRequest { + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1FbpDraftDropOffProductValidateRequest + */ + skus: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateRequest(value: object): value is V1FbpDraftDropOffProductValidateRequest; +export declare function V1FbpDraftDropOffProductValidateRequestFromJSON(json: any): V1FbpDraftDropOffProductValidateRequest; +export declare function V1FbpDraftDropOffProductValidateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateRequest; +export declare function V1FbpDraftDropOffProductValidateRequestToJSON(value?: V1FbpDraftDropOffProductValidateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateRequest.js b/dist/esm/models/V1FbpDraftDropOffProductValidateRequest.js new file mode 100644 index 0000000..1851feb --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON, V1FbpDraftDropOffProductValidateRequestSkuItemToJSON, } from './V1FbpDraftDropOffProductValidateRequestSkuItem'; +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateRequest interface. + */ +export function instanceOfV1FbpDraftDropOffProductValidateRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffProductValidateRequestFromJSON(json) { + return V1FbpDraftDropOffProductValidateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffProductValidateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': (json['skus'].map(V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON)), + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDropOffProductValidateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': (value['skus'].map(V1FbpDraftDropOffProductValidateRequestSkuItemToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateRequestSkuItem.d.ts b/dist/esm/models/V1FbpDraftDropOffProductValidateRequestSkuItem.d.ts new file mode 100644 index 0000000..e7b0f3f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateRequestSkuItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateRequestSkuItem + */ +export interface V1FbpDraftDropOffProductValidateRequestSkuItem { + /** + * Количество. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateRequestSkuItem + */ + count: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateRequestSkuItem + */ + sku: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateRequestSkuItem interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateRequestSkuItem(value: object): value is V1FbpDraftDropOffProductValidateRequestSkuItem; +export declare function V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON(json: any): V1FbpDraftDropOffProductValidateRequestSkuItem; +export declare function V1FbpDraftDropOffProductValidateRequestSkuItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateRequestSkuItem; +export declare function V1FbpDraftDropOffProductValidateRequestSkuItemToJSON(value?: V1FbpDraftDropOffProductValidateRequestSkuItem | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateRequestSkuItem.js b/dist/esm/models/V1FbpDraftDropOffProductValidateRequestSkuItem.js new file mode 100644 index 0000000..aa4a4db --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateRequestSkuItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateRequestSkuItem interface. + */ +export function instanceOfV1FbpDraftDropOffProductValidateRequestSkuItem(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON(json) { + return V1FbpDraftDropOffProductValidateRequestSkuItemFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffProductValidateRequestSkuItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'sku': json['sku'], + }; +} +export function V1FbpDraftDropOffProductValidateRequestSkuItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateResponse.d.ts b/dist/esm/models/V1FbpDraftDropOffProductValidateResponse.d.ts new file mode 100644 index 0000000..03e349f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffProductValidateResponseApprovedItem } from './V1FbpDraftDropOffProductValidateResponseApprovedItem'; +import type { V1FbpDraftDropOffProductValidateResponseRejectedItem } from './V1FbpDraftDropOffProductValidateResponseRejectedItem'; +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateResponse + */ +export interface V1FbpDraftDropOffProductValidateResponse { + /** + * Принятые товары. + * @type {Array} + * @memberof V1FbpDraftDropOffProductValidateResponse + */ + approved_items?: Array; + /** + * `true`, если создан товарный состав. + * + * @type {boolean} + * @memberof V1FbpDraftDropOffProductValidateResponse + */ + bundle_generated?: boolean; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponse + */ + bundle_id?: string; + /** + * Отклонённые товары. + * @type {Array} + * @memberof V1FbpDraftDropOffProductValidateResponse + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateResponse(value: object): value is V1FbpDraftDropOffProductValidateResponse; +export declare function V1FbpDraftDropOffProductValidateResponseFromJSON(json: any): V1FbpDraftDropOffProductValidateResponse; +export declare function V1FbpDraftDropOffProductValidateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateResponse; +export declare function V1FbpDraftDropOffProductValidateResponseToJSON(value?: V1FbpDraftDropOffProductValidateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateResponse.js b/dist/esm/models/V1FbpDraftDropOffProductValidateResponse.js new file mode 100644 index 0000000..a97b970 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateResponse.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON, V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON, } from './V1FbpDraftDropOffProductValidateResponseApprovedItem'; +import { V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON, V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON, } from './V1FbpDraftDropOffProductValidateResponseRejectedItem'; +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponse interface. + */ +export function instanceOfV1FbpDraftDropOffProductValidateResponse(value) { + return true; +} +export function V1FbpDraftDropOffProductValidateResponseFromJSON(json) { + return V1FbpDraftDropOffProductValidateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffProductValidateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_items': json['approved_items'] == null ? undefined : (json['approved_items'].map(V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON)), + 'bundle_generated': json['bundle_generated'] == null ? undefined : json['bundle_generated'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON)), + }; +} +export function V1FbpDraftDropOffProductValidateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_items': value['approved_items'] == null ? undefined : (value['approved_items'].map(V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON)), + 'bundle_generated': value['bundle_generated'], + 'bundle_id': value['bundle_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON)), + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.d.ts b/dist/esm/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.d.ts new file mode 100644 index 0000000..0c6e576 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateResponseApprovedItem + */ +export interface V1FbpDraftDropOffProductValidateResponseApprovedItem { + /** + * Штрихкод товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + icon_name?: string; + /** + * Название товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponseApprovedItem interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateResponseApprovedItem(value: object): value is V1FbpDraftDropOffProductValidateResponseApprovedItem; +export declare function V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON(json: any): V1FbpDraftDropOffProductValidateResponseApprovedItem; +export declare function V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateResponseApprovedItem; +export declare function V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON(value?: V1FbpDraftDropOffProductValidateResponseApprovedItem | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.js b/dist/esm/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.js new file mode 100644 index 0000000..c44b7d9 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponseApprovedItem interface. + */ +export function instanceOfV1FbpDraftDropOffProductValidateResponseApprovedItem(value) { + return true; +} +export function V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON(json) { + return V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +export function V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.d.ts b/dist/esm/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.d.ts new file mode 100644 index 0000000..caa955f --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateResponseRejectedItem + */ +export interface V1FbpDraftDropOffProductValidateResponseRejectedItem { + /** + * Штрихкод товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + icon_name?: string; + /** + * Название товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + quantity?: number; + /** + * Причины отказа в приёмке: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товара нет в ассортименте поставки; + * - `INVALID` — неверный статус; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — штрихкод не указан; + * - `MULTIPLICITY` — количество товара не кратно упаковке; + * - `NO_PRICE` — цена не указана; + * - `BANNED` — товар заблокирован; + * - `ZERO_QUANTITY` — количество товара не может быть 0; + * - `QUANTITY_GREATER_THEN_MAX` — превышено максимальное количество товара для одного SKU; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + rejection_reasons?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponseRejectedItem interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateResponseRejectedItem(value: object): value is V1FbpDraftDropOffProductValidateResponseRejectedItem; +export declare function V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON(json: any): V1FbpDraftDropOffProductValidateResponseRejectedItem; +export declare function V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateResponseRejectedItem; +export declare function V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON(value?: V1FbpDraftDropOffProductValidateResponseRejectedItem | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.js b/dist/esm/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.js new file mode 100644 index 0000000..4aa191e --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1BundleItemErrorEnumFromJSON, V1BundleItemErrorEnumToJSON, } from './V1BundleItemErrorEnum'; +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponseRejectedItem interface. + */ +export function instanceOfV1FbpDraftDropOffProductValidateResponseRejectedItem(value) { + return true; +} +export function V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON(json) { + return V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rejection_reasons': json['rejection_reasons'] == null ? undefined : (json['rejection_reasons'].map(V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +export function V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'rejection_reasons': value['rejection_reasons'] == null ? undefined : (value['rejection_reasons'].map(V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffProvinceListRequest.d.ts b/dist/esm/models/V1FbpDraftDropOffProvinceListRequest.d.ts new file mode 100644 index 0000000..ff2376c --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProvinceListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffProvinceListRequest + */ +export interface V1FbpDraftDropOffProvinceListRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDropOffProvinceListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProvinceListRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffProvinceListRequest(value: object): value is V1FbpDraftDropOffProvinceListRequest; +export declare function V1FbpDraftDropOffProvinceListRequestFromJSON(json: any): V1FbpDraftDropOffProvinceListRequest; +export declare function V1FbpDraftDropOffProvinceListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProvinceListRequest; +export declare function V1FbpDraftDropOffProvinceListRequestToJSON(value?: V1FbpDraftDropOffProvinceListRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffProvinceListRequest.js b/dist/esm/models/V1FbpDraftDropOffProvinceListRequest.js new file mode 100644 index 0000000..b4b2434 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProvinceListRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffProvinceListRequest interface. + */ +export function instanceOfV1FbpDraftDropOffProvinceListRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffProvinceListRequestFromJSON(json) { + return V1FbpDraftDropOffProvinceListRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffProvinceListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftDropOffProvinceListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffProvinceListResponse.d.ts b/dist/esm/models/V1FbpDraftDropOffProvinceListResponse.d.ts new file mode 100644 index 0000000..cdb37c1 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProvinceListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpDraftDropOffProvinceListResponseProvince } from './FbpDraftDropOffProvinceListResponseProvince'; +/** + * + * @export + * @interface V1FbpDraftDropOffProvinceListResponse + */ +export interface V1FbpDraftDropOffProvinceListResponse { + /** + * Список провинций. + * @type {Array} + * @memberof V1FbpDraftDropOffProvinceListResponse + */ + provinces?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProvinceListResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffProvinceListResponse(value: object): value is V1FbpDraftDropOffProvinceListResponse; +export declare function V1FbpDraftDropOffProvinceListResponseFromJSON(json: any): V1FbpDraftDropOffProvinceListResponse; +export declare function V1FbpDraftDropOffProvinceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProvinceListResponse; +export declare function V1FbpDraftDropOffProvinceListResponseToJSON(value?: V1FbpDraftDropOffProvinceListResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffProvinceListResponse.js b/dist/esm/models/V1FbpDraftDropOffProvinceListResponse.js new file mode 100644 index 0000000..37d6d03 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffProvinceListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbpDraftDropOffProvinceListResponseProvinceFromJSON, FbpDraftDropOffProvinceListResponseProvinceToJSON, } from './FbpDraftDropOffProvinceListResponseProvince'; +/** + * Check if a given object implements the V1FbpDraftDropOffProvinceListResponse interface. + */ +export function instanceOfV1FbpDraftDropOffProvinceListResponse(value) { + return true; +} +export function V1FbpDraftDropOffProvinceListResponseFromJSON(json) { + return V1FbpDraftDropOffProvinceListResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffProvinceListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'provinces': json['provinces'] == null ? undefined : (json['provinces'].map(FbpDraftDropOffProvinceListResponseProvinceFromJSON)), + }; +} +export function V1FbpDraftDropOffProvinceListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'provinces': value['provinces'] == null ? undefined : (value['provinces'].map(FbpDraftDropOffProvinceListResponseProvinceToJSON)), + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffRegistrateRequest.d.ts b/dist/esm/models/V1FbpDraftDropOffRegistrateRequest.d.ts new file mode 100644 index 0000000..ea6541e --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffRegistrateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffRegistrateRequest + */ +export interface V1FbpDraftDropOffRegistrateRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffRegistrateRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDropOffRegistrateRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffRegistrateRequest(value: object): value is V1FbpDraftDropOffRegistrateRequest; +export declare function V1FbpDraftDropOffRegistrateRequestFromJSON(json: any): V1FbpDraftDropOffRegistrateRequest; +export declare function V1FbpDraftDropOffRegistrateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffRegistrateRequest; +export declare function V1FbpDraftDropOffRegistrateRequestToJSON(value?: V1FbpDraftDropOffRegistrateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffRegistrateRequest.js b/dist/esm/models/V1FbpDraftDropOffRegistrateRequest.js new file mode 100644 index 0000000..3c2d123 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffRegistrateRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateRequest interface. + */ +export function instanceOfV1FbpDraftDropOffRegistrateRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftDropOffRegistrateRequestFromJSON(json) { + return V1FbpDraftDropOffRegistrateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffRegistrateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftDropOffRegistrateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffRegistrateResponse.d.ts b/dist/esm/models/V1FbpDraftDropOffRegistrateResponse.d.ts new file mode 100644 index 0000000..940ecd3 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffRegistrateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffRegistrateResponseRegistrationError } from './V1FbpDraftDropOffRegistrateResponseRegistrationError'; +/** + * + * @export + * @interface V1FbpDraftDropOffRegistrateResponse + */ +export interface V1FbpDraftDropOffRegistrateResponse { + /** + * + * @type {V1FbpDraftDropOffRegistrateResponseRegistrationError} + * @memberof V1FbpDraftDropOffRegistrateResponse + */ + error?: V1FbpDraftDropOffRegistrateResponseRegistrationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpDraftDropOffRegistrateResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffRegistrateResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffRegistrateResponse(value: object): value is V1FbpDraftDropOffRegistrateResponse; +export declare function V1FbpDraftDropOffRegistrateResponseFromJSON(json: any): V1FbpDraftDropOffRegistrateResponse; +export declare function V1FbpDraftDropOffRegistrateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffRegistrateResponse; +export declare function V1FbpDraftDropOffRegistrateResponseToJSON(value?: V1FbpDraftDropOffRegistrateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffRegistrateResponse.js b/dist/esm/models/V1FbpDraftDropOffRegistrateResponse.js new file mode 100644 index 0000000..0089272 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffRegistrateResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON, V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON, } from './V1FbpDraftDropOffRegistrateResponseRegistrationError'; +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponse interface. + */ +export function instanceOfV1FbpDraftDropOffRegistrateResponse(value) { + return true; +} +export function V1FbpDraftDropOffRegistrateResponseFromJSON(json) { + return V1FbpDraftDropOffRegistrateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffRegistrateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftDropOffRegistrateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.d.ts b/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.d.ts new file mode 100644 index 0000000..0449b28 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError } from './V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError'; +import type { V1OrderErrorTypeEnum } from './V1OrderErrorTypeEnum'; +/** + * Ошибка. + * @export + * @interface V1FbpDraftDropOffRegistrateResponseRegistrationError + */ +export interface V1FbpDraftDropOffRegistrateResponseRegistrationError { + /** + * Ошибки провалидированного списка товаров. + * @type {Array} + * @memberof V1FbpDraftDropOffRegistrateResponseRegistrationError + */ + bundle_errors?: Array; + /** + * + * @type {V1OrderErrorTypeEnum} + * @memberof V1FbpDraftDropOffRegistrateResponseRegistrationError + */ + order_error?: V1OrderErrorTypeEnum; +} +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponseRegistrationError interface. + */ +export declare function instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationError(value: object): value is V1FbpDraftDropOffRegistrateResponseRegistrationError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON(json: any): V1FbpDraftDropOffRegistrateResponseRegistrationError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffRegistrateResponseRegistrationError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON(value?: V1FbpDraftDropOffRegistrateResponseRegistrationError | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.js b/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.js new file mode 100644 index 0000000..68ba6e4 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON, V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON, } from './V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError'; +import { V1OrderErrorTypeEnumFromJSON, V1OrderErrorTypeEnumToJSON, } from './V1OrderErrorTypeEnum'; +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponseRegistrationError interface. + */ +export function instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationError(value) { + return true; +} +export function V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON(json) { + return V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_errors': json['bundle_errors'] == null ? undefined : (json['bundle_errors'].map(V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON)), + 'order_error': json['order_error'] == null ? undefined : V1OrderErrorTypeEnumFromJSON(json['order_error']), + }; +} +export function V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_errors': value['bundle_errors'] == null ? undefined : (value['bundle_errors'].map(V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON)), + 'order_error': V1OrderErrorTypeEnumToJSON(value['order_error']), + }; +} diff --git a/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.d.ts b/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.d.ts new file mode 100644 index 0000000..2a46c1c --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError + */ +export interface V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError { + /** + * Ошибки: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товара нет в ассортименте поставки; + * - `INVALID` — неверный статус; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — штрихкод не указан; + * - `MULTIPLICITY`— количество товара не кратно упаковке; + * - `NO_PRICE` — цена не указана; + * - `BANNED` — товар заблокирован; + * - `ZERO_QUANTITY` — количество товара не может быть 0; + * - `QUANTITY_GREATER_THEN_MAX` — превышено максимальное количество товара для одного SKU; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError + */ + errors?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError + */ + sku?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError interface. + */ +export declare function instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError(value: object): value is V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON(json: any): V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON(value?: V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError | null): any; diff --git a/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.js b/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.js new file mode 100644 index 0000000..0d14392 --- /dev/null +++ b/dist/esm/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1BundleItemErrorEnumFromJSON, V1BundleItemErrorEnumToJSON, } from './V1BundleItemErrorEnum'; +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError interface. + */ +export function instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError(value) { + return true; +} +export function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON(json) { + return V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, false); +} +export function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1FbpDraftGetRequest.d.ts b/dist/esm/models/V1FbpDraftGetRequest.d.ts new file mode 100644 index 0000000..e820f1b --- /dev/null +++ b/dist/esm/models/V1FbpDraftGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftGetRequest + */ +export interface V1FbpDraftGetRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftGetRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftGetRequest interface. + */ +export declare function instanceOfV1FbpDraftGetRequest(value: object): value is V1FbpDraftGetRequest; +export declare function V1FbpDraftGetRequestFromJSON(json: any): V1FbpDraftGetRequest; +export declare function V1FbpDraftGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftGetRequest; +export declare function V1FbpDraftGetRequestToJSON(value?: V1FbpDraftGetRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftGetRequest.js b/dist/esm/models/V1FbpDraftGetRequest.js new file mode 100644 index 0000000..8e26588 --- /dev/null +++ b/dist/esm/models/V1FbpDraftGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftGetRequest interface. + */ +export function instanceOfV1FbpDraftGetRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftGetRequestFromJSON(json) { + return V1FbpDraftGetRequestFromJSONTyped(json, false); +} +export function V1FbpDraftGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftGetResponse.d.ts b/dist/esm/models/V1FbpDraftGetResponse.d.ts new file mode 100644 index 0000000..fcdcdf9 --- /dev/null +++ b/dist/esm/models/V1FbpDraftGetResponse.d.ts @@ -0,0 +1,136 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftStatusEnum } from './V1DraftStatusEnum'; +import type { V1CancellationState } from './V1CancellationState'; +import type { V1fbpDeliveryDetails } from './V1fbpDeliveryDetails'; +import type { FbpDraftGetResponseDeclineReason } from './FbpDraftGetResponseDeclineReason'; +/** + * + * @export + * @interface V1FbpDraftGetResponse + */ +export interface V1FbpDraftGetResponse { + /** + * Идентификатор списка провалидированных товаров. + * @type {string} + * @memberof V1FbpDraftGetResponse + */ + bundle_id?: string; + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftGetResponse + */ + cancellation_state?: V1CancellationState; + /** + * Дата создания черновика. + * @type {string} + * @memberof V1FbpDraftGetResponse + */ + created_at?: string; + /** + * + * @type {FbpDraftGetResponseDeclineReason} + * @memberof V1FbpDraftGetResponse + */ + decline_reason?: FbpDraftGetResponseDeclineReason; + /** + * Дата удаления черновика. + * @type {string} + * @memberof V1FbpDraftGetResponse + */ + deleted_at?: string; + /** + * + * @type {V1fbpDeliveryDetails} + * @memberof V1FbpDraftGetResponse + */ + delivery_details?: V1fbpDeliveryDetails; + /** + * `true`, если черновик можно изменить. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + editable?: boolean; + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftGetResponse + */ + id?: number; + /** + * `true`, если черновик можно отменить. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + is_cancelable?: boolean; + /** + * `true`, если черновик можно удалить. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + is_deletable?: boolean; + /** + * `true`, если доступна регистрация. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + is_registration_available?: boolean; + /** + * `true`, если черновик заблокирован. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + locked?: boolean; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftGetResponse + */ + package_units_count?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftGetResponse + */ + row_version?: number; + /** + * + * @type {V1DraftStatusEnum} + * @memberof V1FbpDraftGetResponse + */ + status?: V1DraftStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftGetResponse + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpDraftGetResponse interface. + */ +export declare function instanceOfV1FbpDraftGetResponse(value: object): value is V1FbpDraftGetResponse; +export declare function V1FbpDraftGetResponseFromJSON(json: any): V1FbpDraftGetResponse; +export declare function V1FbpDraftGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftGetResponse; +export declare function V1FbpDraftGetResponseToJSON(value?: V1FbpDraftGetResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftGetResponse.js b/dist/esm/models/V1FbpDraftGetResponse.js new file mode 100644 index 0000000..6223b34 --- /dev/null +++ b/dist/esm/models/V1FbpDraftGetResponse.js @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftStatusEnumFromJSON, V1DraftStatusEnumToJSON, } from './V1DraftStatusEnum'; +import { V1CancellationStateFromJSON, V1CancellationStateToJSON, } from './V1CancellationState'; +import { V1fbpDeliveryDetailsFromJSON, V1fbpDeliveryDetailsToJSON, } from './V1fbpDeliveryDetails'; +import { FbpDraftGetResponseDeclineReasonFromJSON, FbpDraftGetResponseDeclineReasonToJSON, } from './FbpDraftGetResponseDeclineReason'; +/** + * Check if a given object implements the V1FbpDraftGetResponse interface. + */ +export function instanceOfV1FbpDraftGetResponse(value) { + return true; +} +export function V1FbpDraftGetResponseFromJSON(json) { + return V1FbpDraftGetResponseFromJSONTyped(json, false); +} +export function V1FbpDraftGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cancellation_state': json['cancellation_state'] == null ? undefined : V1CancellationStateFromJSON(json['cancellation_state']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'decline_reason': json['decline_reason'] == null ? undefined : FbpDraftGetResponseDeclineReasonFromJSON(json['decline_reason']), + 'deleted_at': json['deleted_at'] == null ? undefined : json['deleted_at'], + 'delivery_details': json['delivery_details'] == null ? undefined : V1fbpDeliveryDetailsFromJSON(json['delivery_details']), + 'editable': json['editable'] == null ? undefined : json['editable'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_cancelable': json['is_cancelable'] == null ? undefined : json['is_cancelable'], + 'is_deletable': json['is_deletable'] == null ? undefined : json['is_deletable'], + 'is_registration_available': json['is_registration_available'] == null ? undefined : json['is_registration_available'], + 'locked': json['locked'] == null ? undefined : json['locked'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'status': json['status'] == null ? undefined : V1DraftStatusEnumFromJSON(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V1FbpDraftGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cancellation_state': V1CancellationStateToJSON(value['cancellation_state']), + 'created_at': value['created_at'], + 'decline_reason': FbpDraftGetResponseDeclineReasonToJSON(value['decline_reason']), + 'deleted_at': value['deleted_at'], + 'delivery_details': V1fbpDeliveryDetailsToJSON(value['delivery_details']), + 'editable': value['editable'], + 'id': value['id'], + 'is_cancelable': value['is_cancelable'], + 'is_deletable': value['is_deletable'], + 'is_registration_available': value['is_registration_available'], + 'locked': value['locked'], + 'package_units_count': value['package_units_count'], + 'row_version': value['row_version'], + 'status': V1DraftStatusEnumToJSON(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftListRequest.d.ts b/dist/esm/models/V1FbpDraftListRequest.d.ts new file mode 100644 index 0000000..afeb7c1 --- /dev/null +++ b/dist/esm/models/V1FbpDraftListRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftListRequest + */ +export interface V1FbpDraftListRequest { + /** + * Количество элементов в ответе. + * @type {number} + * @memberof V1FbpDraftListRequest + */ + count: number; + /** + * Идентификатор последнего значения на странице. Оставьте это поле пустым при выполнении первого запроса. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {number} + * @memberof V1FbpDraftListRequest + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpDraftListRequest interface. + */ +export declare function instanceOfV1FbpDraftListRequest(value: object): value is V1FbpDraftListRequest; +export declare function V1FbpDraftListRequestFromJSON(json: any): V1FbpDraftListRequest; +export declare function V1FbpDraftListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftListRequest; +export declare function V1FbpDraftListRequestToJSON(value?: V1FbpDraftListRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftListRequest.js b/dist/esm/models/V1FbpDraftListRequest.js new file mode 100644 index 0000000..648810e --- /dev/null +++ b/dist/esm/models/V1FbpDraftListRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftListRequest interface. + */ +export function instanceOfV1FbpDraftListRequest(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + return true; +} +export function V1FbpDraftListRequestFromJSON(json) { + return V1FbpDraftListRequestFromJSONTyped(json, false); +} +export function V1FbpDraftListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1FbpDraftListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftListResponse.d.ts b/dist/esm/models/V1FbpDraftListResponse.d.ts new file mode 100644 index 0000000..cdfe531 --- /dev/null +++ b/dist/esm/models/V1FbpDraftListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftListResponseItem } from './V1FbpDraftListResponseItem'; +/** + * + * @export + * @interface V1FbpDraftListResponse + */ +export interface V1FbpDraftListResponse { + /** + * `true`, если в ответе вернулись не все значения. + * + * @type {boolean} + * @memberof V1FbpDraftListResponse + */ + has_next?: boolean; + /** + * Черновики. + * @type {Array} + * @memberof V1FbpDraftListResponse + */ + items?: Array; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1FbpDraftListResponse + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpDraftListResponse interface. + */ +export declare function instanceOfV1FbpDraftListResponse(value: object): value is V1FbpDraftListResponse; +export declare function V1FbpDraftListResponseFromJSON(json: any): V1FbpDraftListResponse; +export declare function V1FbpDraftListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftListResponse; +export declare function V1FbpDraftListResponseToJSON(value?: V1FbpDraftListResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftListResponse.js b/dist/esm/models/V1FbpDraftListResponse.js new file mode 100644 index 0000000..00c4b7a --- /dev/null +++ b/dist/esm/models/V1FbpDraftListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftListResponseItemFromJSON, V1FbpDraftListResponseItemToJSON, } from './V1FbpDraftListResponseItem'; +/** + * Check if a given object implements the V1FbpDraftListResponse interface. + */ +export function instanceOfV1FbpDraftListResponse(value) { + return true; +} +export function V1FbpDraftListResponseFromJSON(json) { + return V1FbpDraftListResponseFromJSONTyped(json, false); +} +export function V1FbpDraftListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'items': json['items'] == null ? undefined : (json['items'].map(V1FbpDraftListResponseItemFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1FbpDraftListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'items': value['items'] == null ? undefined : (value['items'].map(V1FbpDraftListResponseItemToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftListResponseItem.d.ts b/dist/esm/models/V1FbpDraftListResponseItem.d.ts new file mode 100644 index 0000000..05bf892 --- /dev/null +++ b/dist/esm/models/V1FbpDraftListResponseItem.d.ts @@ -0,0 +1,116 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftStatusEnum } from './V1DraftStatusEnum'; +import type { V1CancellationState } from './V1CancellationState'; +import type { V1fbpDeliveryDetails } from './V1fbpDeliveryDetails'; +/** + * + * @export + * @interface V1FbpDraftListResponseItem + */ +export interface V1FbpDraftListResponseItem { + /** + * Идентификатор списка провалидированных товаров. + * @type {string} + * @memberof V1FbpDraftListResponseItem + */ + bundle_id?: string; + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftListResponseItem + */ + cancellation_state?: V1CancellationState; + /** + * Дата создания черновика. + * @type {string} + * @memberof V1FbpDraftListResponseItem + */ + created_at?: string; + /** + * Дата удаления черновика. + * @type {string} + * @memberof V1FbpDraftListResponseItem + */ + deleted_at?: string; + /** + * + * @type {V1fbpDeliveryDetails} + * @memberof V1FbpDraftListResponseItem + */ + delivery_details?: V1fbpDeliveryDetails; + /** + * `true`, если черновик можно изменить. + * + * @type {boolean} + * @memberof V1FbpDraftListResponseItem + */ + editable?: boolean; + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftListResponseItem + */ + id?: number; + /** + * `true`, если черновик можно отменить. + * + * @type {boolean} + * @memberof V1FbpDraftListResponseItem + */ + is_cancelable?: boolean; + /** + * `true`, если черновик можно удалить. + * + * @type {boolean} + * @memberof V1FbpDraftListResponseItem + */ + is_deletable?: boolean; + /** + * `true`, если черновик заблокирован. + * + * @type {boolean} + * @memberof V1FbpDraftListResponseItem + */ + locked?: boolean; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftListResponseItem + */ + package_units_count?: number; + /** + * + * @type {V1DraftStatusEnum} + * @memberof V1FbpDraftListResponseItem + */ + status?: V1DraftStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftListResponseItem + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftListResponseItem + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpDraftListResponseItem interface. + */ +export declare function instanceOfV1FbpDraftListResponseItem(value: object): value is V1FbpDraftListResponseItem; +export declare function V1FbpDraftListResponseItemFromJSON(json: any): V1FbpDraftListResponseItem; +export declare function V1FbpDraftListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftListResponseItem; +export declare function V1FbpDraftListResponseItemToJSON(value?: V1FbpDraftListResponseItem | null): any; diff --git a/dist/esm/models/V1FbpDraftListResponseItem.js b/dist/esm/models/V1FbpDraftListResponseItem.js new file mode 100644 index 0000000..a3658f9 --- /dev/null +++ b/dist/esm/models/V1FbpDraftListResponseItem.js @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DraftStatusEnumFromJSON, V1DraftStatusEnumToJSON, } from './V1DraftStatusEnum'; +import { V1CancellationStateFromJSON, V1CancellationStateToJSON, } from './V1CancellationState'; +import { V1fbpDeliveryDetailsFromJSON, V1fbpDeliveryDetailsToJSON, } from './V1fbpDeliveryDetails'; +/** + * Check if a given object implements the V1FbpDraftListResponseItem interface. + */ +export function instanceOfV1FbpDraftListResponseItem(value) { + return true; +} +export function V1FbpDraftListResponseItemFromJSON(json) { + return V1FbpDraftListResponseItemFromJSONTyped(json, false); +} +export function V1FbpDraftListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cancellation_state': json['cancellation_state'] == null ? undefined : V1CancellationStateFromJSON(json['cancellation_state']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'deleted_at': json['deleted_at'] == null ? undefined : json['deleted_at'], + 'delivery_details': json['delivery_details'] == null ? undefined : V1fbpDeliveryDetailsFromJSON(json['delivery_details']), + 'editable': json['editable'] == null ? undefined : json['editable'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_cancelable': json['is_cancelable'] == null ? undefined : json['is_cancelable'], + 'is_deletable': json['is_deletable'] == null ? undefined : json['is_deletable'], + 'locked': json['locked'] == null ? undefined : json['locked'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'status': json['status'] == null ? undefined : V1DraftStatusEnumFromJSON(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V1FbpDraftListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cancellation_state': V1CancellationStateToJSON(value['cancellation_state']), + 'created_at': value['created_at'], + 'deleted_at': value['deleted_at'], + 'delivery_details': V1fbpDeliveryDetailsToJSON(value['delivery_details']), + 'editable': value['editable'], + 'id': value['id'], + 'is_cancelable': value['is_cancelable'], + 'is_deletable': value['is_deletable'], + 'locked': value['locked'], + 'package_units_count': value['package_units_count'], + 'status': V1DraftStatusEnumToJSON(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpDeleteRequest.d.ts b/dist/esm/models/V1FbpDraftPickUpDeleteRequest.d.ts new file mode 100644 index 0000000..bd715b5 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickUpDeleteRequest + */ +export interface V1FbpDraftPickUpDeleteRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftPickUpDeleteRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftPickUpDeleteRequest interface. + */ +export declare function instanceOfV1FbpDraftPickUpDeleteRequest(value: object): value is V1FbpDraftPickUpDeleteRequest; +export declare function V1FbpDraftPickUpDeleteRequestFromJSON(json: any): V1FbpDraftPickUpDeleteRequest; +export declare function V1FbpDraftPickUpDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpDeleteRequest; +export declare function V1FbpDraftPickUpDeleteRequestToJSON(value?: V1FbpDraftPickUpDeleteRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpDeleteRequest.js b/dist/esm/models/V1FbpDraftPickUpDeleteRequest.js new file mode 100644 index 0000000..a7f8208 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpDeleteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftPickUpDeleteRequest interface. + */ +export function instanceOfV1FbpDraftPickUpDeleteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftPickUpDeleteRequestFromJSON(json) { + return V1FbpDraftPickUpDeleteRequestFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftPickUpDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpDeleteResponse.d.ts b/dist/esm/models/V1FbpDraftPickUpDeleteResponse.d.ts new file mode 100644 index 0000000..be69dd7 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancellationState } from './V1CancellationState'; +/** + * + * @export + * @interface V1FbpDraftPickUpDeleteResponse + */ +export interface V1FbpDraftPickUpDeleteResponse { + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftPickUpDeleteResponse + */ + cancellation_state?: V1CancellationState; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickUpDeleteResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpDeleteResponse interface. + */ +export declare function instanceOfV1FbpDraftPickUpDeleteResponse(value: object): value is V1FbpDraftPickUpDeleteResponse; +export declare function V1FbpDraftPickUpDeleteResponseFromJSON(json: any): V1FbpDraftPickUpDeleteResponse; +export declare function V1FbpDraftPickUpDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpDeleteResponse; +export declare function V1FbpDraftPickUpDeleteResponseToJSON(value?: V1FbpDraftPickUpDeleteResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpDeleteResponse.js b/dist/esm/models/V1FbpDraftPickUpDeleteResponse.js new file mode 100644 index 0000000..e5c6f93 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpDeleteResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CancellationStateFromJSON, V1CancellationStateToJSON, } from './V1CancellationState'; +/** + * Check if a given object implements the V1FbpDraftPickUpDeleteResponse interface. + */ +export function instanceOfV1FbpDraftPickUpDeleteResponse(value) { + return true; +} +export function V1FbpDraftPickUpDeleteResponseFromJSON(json) { + return V1FbpDraftPickUpDeleteResponseFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_state': json['cancellation_state'] == null ? undefined : V1CancellationStateFromJSON(json['cancellation_state']), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftPickUpDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_state': V1CancellationStateToJSON(value['cancellation_state']), + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateRequest.d.ts b/dist/esm/models/V1FbpDraftPickUpProductValidateRequest.d.ts new file mode 100644 index 0000000..08820b2 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickUpProductValidateRequestSkuItem } from './V1FbpDraftPickUpProductValidateRequestSkuItem'; +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateRequest + */ +export interface V1FbpDraftPickUpProductValidateRequest { + /** + * Список идентификаторов товаров — SKU. + * @type {Array} + * @memberof V1FbpDraftPickUpProductValidateRequest + */ + skus: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateRequest interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateRequest(value: object): value is V1FbpDraftPickUpProductValidateRequest; +export declare function V1FbpDraftPickUpProductValidateRequestFromJSON(json: any): V1FbpDraftPickUpProductValidateRequest; +export declare function V1FbpDraftPickUpProductValidateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateRequest; +export declare function V1FbpDraftPickUpProductValidateRequestToJSON(value?: V1FbpDraftPickUpProductValidateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateRequest.js b/dist/esm/models/V1FbpDraftPickUpProductValidateRequest.js new file mode 100644 index 0000000..ee85ae6 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON, V1FbpDraftPickUpProductValidateRequestSkuItemToJSON, } from './V1FbpDraftPickUpProductValidateRequestSkuItem'; +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateRequest interface. + */ +export function instanceOfV1FbpDraftPickUpProductValidateRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftPickUpProductValidateRequestFromJSON(json) { + return V1FbpDraftPickUpProductValidateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpProductValidateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': (json['skus'].map(V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON)), + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftPickUpProductValidateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': (value['skus'].map(V1FbpDraftPickUpProductValidateRequestSkuItemToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateRequestSkuItem.d.ts b/dist/esm/models/V1FbpDraftPickUpProductValidateRequestSkuItem.d.ts new file mode 100644 index 0000000..1ca7ef0 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateRequestSkuItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateRequestSkuItem + */ +export interface V1FbpDraftPickUpProductValidateRequestSkuItem { + /** + * Количество единиц товара в поставке. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateRequestSkuItem + */ + count: number; + /** + * Идентификатор товара — SKU. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateRequestSkuItem + */ + sku: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateRequestSkuItem interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateRequestSkuItem(value: object): value is V1FbpDraftPickUpProductValidateRequestSkuItem; +export declare function V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON(json: any): V1FbpDraftPickUpProductValidateRequestSkuItem; +export declare function V1FbpDraftPickUpProductValidateRequestSkuItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateRequestSkuItem; +export declare function V1FbpDraftPickUpProductValidateRequestSkuItemToJSON(value?: V1FbpDraftPickUpProductValidateRequestSkuItem | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateRequestSkuItem.js b/dist/esm/models/V1FbpDraftPickUpProductValidateRequestSkuItem.js new file mode 100644 index 0000000..1d6c02c --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateRequestSkuItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateRequestSkuItem interface. + */ +export function instanceOfV1FbpDraftPickUpProductValidateRequestSkuItem(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON(json) { + return V1FbpDraftPickUpProductValidateRequestSkuItemFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpProductValidateRequestSkuItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'sku': json['sku'], + }; +} +export function V1FbpDraftPickUpProductValidateRequestSkuItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateResponse.d.ts b/dist/esm/models/V1FbpDraftPickUpProductValidateResponse.d.ts new file mode 100644 index 0000000..a746212 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickUpProductValidateResponseApprovedItem } from './V1FbpDraftPickUpProductValidateResponseApprovedItem'; +import type { V1FbpDraftPickUpProductValidateResponseRejectedItem } from './V1FbpDraftPickUpProductValidateResponseRejectedItem'; +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateResponse + */ +export interface V1FbpDraftPickUpProductValidateResponse { + /** + * Подтверждённые товары. + * @type {Array} + * @memberof V1FbpDraftPickUpProductValidateResponse + */ + approved_items?: Array; + /** + * `true`, если проверенный список товаров создан. + * + * @type {boolean} + * @memberof V1FbpDraftPickUpProductValidateResponse + */ + bundle_generated?: boolean; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponse + */ + bundle_id?: string; + /** + * Отклонённые товары. + * @type {Array} + * @memberof V1FbpDraftPickUpProductValidateResponse + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponse interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateResponse(value: object): value is V1FbpDraftPickUpProductValidateResponse; +export declare function V1FbpDraftPickUpProductValidateResponseFromJSON(json: any): V1FbpDraftPickUpProductValidateResponse; +export declare function V1FbpDraftPickUpProductValidateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateResponse; +export declare function V1FbpDraftPickUpProductValidateResponseToJSON(value?: V1FbpDraftPickUpProductValidateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateResponse.js b/dist/esm/models/V1FbpDraftPickUpProductValidateResponse.js new file mode 100644 index 0000000..fcbdfca --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateResponse.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON, V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON, } from './V1FbpDraftPickUpProductValidateResponseApprovedItem'; +import { V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON, V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON, } from './V1FbpDraftPickUpProductValidateResponseRejectedItem'; +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponse interface. + */ +export function instanceOfV1FbpDraftPickUpProductValidateResponse(value) { + return true; +} +export function V1FbpDraftPickUpProductValidateResponseFromJSON(json) { + return V1FbpDraftPickUpProductValidateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpProductValidateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_items': json['approved_items'] == null ? undefined : (json['approved_items'].map(V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON)), + 'bundle_generated': json['bundle_generated'] == null ? undefined : json['bundle_generated'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON)), + }; +} +export function V1FbpDraftPickUpProductValidateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_items': value['approved_items'] == null ? undefined : (value['approved_items'].map(V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON)), + 'bundle_generated': value['bundle_generated'], + 'bundle_id': value['bundle_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON)), + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.d.ts b/dist/esm/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.d.ts new file mode 100644 index 0000000..8f0cd36 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateResponseApprovedItem + */ +export interface V1FbpDraftPickUpProductValidateResponseApprovedItem { + /** + * Штрихкод. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + icon_name?: string; + /** + * Наименование товара. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + name?: string; + /** + * Артикул товара в системе продавца. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + quantity?: number; + /** + * Идентификатор товара — SKU. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponseApprovedItem interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateResponseApprovedItem(value: object): value is V1FbpDraftPickUpProductValidateResponseApprovedItem; +export declare function V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON(json: any): V1FbpDraftPickUpProductValidateResponseApprovedItem; +export declare function V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateResponseApprovedItem; +export declare function V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON(value?: V1FbpDraftPickUpProductValidateResponseApprovedItem | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.js b/dist/esm/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.js new file mode 100644 index 0000000..a0a6949 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponseApprovedItem interface. + */ +export function instanceOfV1FbpDraftPickUpProductValidateResponseApprovedItem(value) { + return true; +} +export function V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON(json) { + return V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +export function V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.d.ts b/dist/esm/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.d.ts new file mode 100644 index 0000000..47a7d8a --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateResponseRejectedItem + */ +export interface V1FbpDraftPickUpProductValidateResponseRejectedItem { + /** + * Штрихкод. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + icon_name?: string; + /** + * Наименование товара. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + name?: string; + /** + * Артикул товара в системе продавца. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + quantity?: number; + /** + * Причины отклонения: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товар не найден; + * - `INVALID` — товар не создан; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — не указан штрихкод; + * - `MULTIPLICITY` — количество товара не кратно требуемой партии; + * - `NO_PRICE` — не указана цена; + * - `BANNED` — товар не доступен к продаже или поставке на выбранный склад; + * - `ZERO_QUANTITY` — количество товаров в поставке равно 0; + * - `QUANTITY_GREATER_THEN_MAX` — количество товаров одной SKU больше максимального значения; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + rejection_reasons?: Array; + /** + * Идентификатор товара — SKU. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponseRejectedItem interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateResponseRejectedItem(value: object): value is V1FbpDraftPickUpProductValidateResponseRejectedItem; +export declare function V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON(json: any): V1FbpDraftPickUpProductValidateResponseRejectedItem; +export declare function V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateResponseRejectedItem; +export declare function V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON(value?: V1FbpDraftPickUpProductValidateResponseRejectedItem | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.js b/dist/esm/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.js new file mode 100644 index 0000000..66d23ed --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1BundleItemErrorEnumFromJSON, V1BundleItemErrorEnumToJSON, } from './V1BundleItemErrorEnum'; +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponseRejectedItem interface. + */ +export function instanceOfV1FbpDraftPickUpProductValidateResponseRejectedItem(value) { + return true; +} +export function V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON(json) { + return V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rejection_reasons': json['rejection_reasons'] == null ? undefined : (json['rejection_reasons'].map(V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +export function V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'rejection_reasons': value['rejection_reasons'] == null ? undefined : (value['rejection_reasons'].map(V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpRegistrateRequest.d.ts b/dist/esm/models/V1FbpDraftPickUpRegistrateRequest.d.ts new file mode 100644 index 0000000..c5f378c --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpRegistrateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickUpRegistrateRequest + */ +export interface V1FbpDraftPickUpRegistrateRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickUpRegistrateRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftPickUpRegistrateRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateRequest interface. + */ +export declare function instanceOfV1FbpDraftPickUpRegistrateRequest(value: object): value is V1FbpDraftPickUpRegistrateRequest; +export declare function V1FbpDraftPickUpRegistrateRequestFromJSON(json: any): V1FbpDraftPickUpRegistrateRequest; +export declare function V1FbpDraftPickUpRegistrateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpRegistrateRequest; +export declare function V1FbpDraftPickUpRegistrateRequestToJSON(value?: V1FbpDraftPickUpRegistrateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpRegistrateRequest.js b/dist/esm/models/V1FbpDraftPickUpRegistrateRequest.js new file mode 100644 index 0000000..aa9bccc --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpRegistrateRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateRequest interface. + */ +export function instanceOfV1FbpDraftPickUpRegistrateRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftPickUpRegistrateRequestFromJSON(json) { + return V1FbpDraftPickUpRegistrateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpRegistrateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftPickUpRegistrateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpRegistrateResponse.d.ts b/dist/esm/models/V1FbpDraftPickUpRegistrateResponse.d.ts new file mode 100644 index 0000000..ca596ae --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpRegistrateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickUpRegistrateResponseRegistrationError } from './V1FbpDraftPickUpRegistrateResponseRegistrationError'; +/** + * + * @export + * @interface V1FbpDraftPickUpRegistrateResponse + */ +export interface V1FbpDraftPickUpRegistrateResponse { + /** + * + * @type {V1FbpDraftPickUpRegistrateResponseRegistrationError} + * @memberof V1FbpDraftPickUpRegistrateResponse + */ + error?: V1FbpDraftPickUpRegistrateResponseRegistrationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpDraftPickUpRegistrateResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickUpRegistrateResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponse interface. + */ +export declare function instanceOfV1FbpDraftPickUpRegistrateResponse(value: object): value is V1FbpDraftPickUpRegistrateResponse; +export declare function V1FbpDraftPickUpRegistrateResponseFromJSON(json: any): V1FbpDraftPickUpRegistrateResponse; +export declare function V1FbpDraftPickUpRegistrateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpRegistrateResponse; +export declare function V1FbpDraftPickUpRegistrateResponseToJSON(value?: V1FbpDraftPickUpRegistrateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpRegistrateResponse.js b/dist/esm/models/V1FbpDraftPickUpRegistrateResponse.js new file mode 100644 index 0000000..a4ffee2 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpRegistrateResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON, V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON, } from './V1FbpDraftPickUpRegistrateResponseRegistrationError'; +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponse interface. + */ +export function instanceOfV1FbpDraftPickUpRegistrateResponse(value) { + return true; +} +export function V1FbpDraftPickUpRegistrateResponseFromJSON(json) { + return V1FbpDraftPickUpRegistrateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpRegistrateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftPickUpRegistrateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.d.ts b/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.d.ts new file mode 100644 index 0000000..6581b5c --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError } from './V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError'; +import type { V1OrderErrorTypeEnum } from './V1OrderErrorTypeEnum'; +/** + * Ошибка. + * @export + * @interface V1FbpDraftPickUpRegistrateResponseRegistrationError + */ +export interface V1FbpDraftPickUpRegistrateResponseRegistrationError { + /** + * Ошибки провалидированного списка товаров. + * @type {Array} + * @memberof V1FbpDraftPickUpRegistrateResponseRegistrationError + */ + bundle_errors?: Array; + /** + * + * @type {V1OrderErrorTypeEnum} + * @memberof V1FbpDraftPickUpRegistrateResponseRegistrationError + */ + order_error?: V1OrderErrorTypeEnum; +} +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponseRegistrationError interface. + */ +export declare function instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationError(value: object): value is V1FbpDraftPickUpRegistrateResponseRegistrationError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON(json: any): V1FbpDraftPickUpRegistrateResponseRegistrationError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpRegistrateResponseRegistrationError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON(value?: V1FbpDraftPickUpRegistrateResponseRegistrationError | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.js b/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.js new file mode 100644 index 0000000..d60f010 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON, V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON, } from './V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError'; +import { V1OrderErrorTypeEnumFromJSON, V1OrderErrorTypeEnumToJSON, } from './V1OrderErrorTypeEnum'; +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponseRegistrationError interface. + */ +export function instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationError(value) { + return true; +} +export function V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON(json) { + return V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_errors': json['bundle_errors'] == null ? undefined : (json['bundle_errors'].map(V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON)), + 'order_error': json['order_error'] == null ? undefined : V1OrderErrorTypeEnumFromJSON(json['order_error']), + }; +} +export function V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_errors': value['bundle_errors'] == null ? undefined : (value['bundle_errors'].map(V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON)), + 'order_error': V1OrderErrorTypeEnumToJSON(value['order_error']), + }; +} diff --git a/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.d.ts b/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.d.ts new file mode 100644 index 0000000..52cdfcf --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError + */ +export interface V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError { + /** + * Ошибки: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товара нет в ассортименте поставки; + * - `INVALID` — неверный статус; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — штрихкод не указан; + * - `MULTIPLICITY` — количество товара не кратно упаковке; + * - `NO_PRICE` — цена не указана; + * - `BANNED` — товар заблокирован; + * - `ZERO_QUANTITY` — количество товара не может быть 0; + * - `QUANTITY_GREATER_THEN_MAX` — превышено максимальное количество товара для одного SKU; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError + */ + errors?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError + */ + sku?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError interface. + */ +export declare function instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError(value: object): value is V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON(json: any): V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON(value?: V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError | null): any; diff --git a/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.js b/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.js new file mode 100644 index 0000000..8ac33b2 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1BundleItemErrorEnumFromJSON, V1BundleItemErrorEnumToJSON, } from './V1BundleItemErrorEnum'; +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError interface. + */ +export function instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError(value) { + return true; +} +export function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON(json) { + return V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, false); +} +export function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickupCreateRequest.d.ts b/dist/esm/models/V1FbpDraftPickupCreateRequest.d.ts new file mode 100644 index 0000000..eacbafb --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickupCreateRequestDeliveryDetails } from './V1FbpDraftPickupCreateRequestDeliveryDetails'; +/** + * + * @export + * @interface V1FbpDraftPickupCreateRequest + */ +export interface V1FbpDraftPickupCreateRequest { + /** + * Идентификатор состава поставки. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftPickupCreateRequestDeliveryDetails} + * @memberof V1FbpDraftPickupCreateRequest + */ + delivery_details: V1FbpDraftPickupCreateRequestDeliveryDetails; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftPickupCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftPickupCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftPickupCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftPickupCreateRequest(value: object): value is V1FbpDraftPickupCreateRequest; +export declare function V1FbpDraftPickupCreateRequestFromJSON(json: any): V1FbpDraftPickupCreateRequest; +export declare function V1FbpDraftPickupCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupCreateRequest; +export declare function V1FbpDraftPickupCreateRequestToJSON(value?: V1FbpDraftPickupCreateRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftPickupCreateRequest.js b/dist/esm/models/V1FbpDraftPickupCreateRequest.js new file mode 100644 index 0000000..9b96d1e --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupCreateRequest.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON, V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON, } from './V1FbpDraftPickupCreateRequestDeliveryDetails'; +/** + * Check if a given object implements the V1FbpDraftPickupCreateRequest interface. + */ +export function instanceOfV1FbpDraftPickupCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftPickupCreateRequestFromJSON(json) { + return V1FbpDraftPickupCreateRequestFromJSONTyped(json, false); +} +export function V1FbpDraftPickupCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpDraftPickupCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickupCreateRequestDeliveryDetails.d.ts b/dist/esm/models/V1FbpDraftPickupCreateRequestDeliveryDetails.d.ts new file mode 100644 index 0000000..84f92f0 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupCreateRequestDeliveryDetails.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftPickupCreateRequestDeliveryDetails + */ +export interface V1FbpDraftPickupCreateRequestDeliveryDetails { + /** + * Адрес. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + address: string; + /** + * Комментарий. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + comment: string; + /** + * Дата доставки. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + date: string; + /** + * ФИО отправителя. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + sender_name: string; + /** + * Номер телефона отправителя. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + sender_phone: string; +} +/** + * Check if a given object implements the V1FbpDraftPickupCreateRequestDeliveryDetails interface. + */ +export declare function instanceOfV1FbpDraftPickupCreateRequestDeliveryDetails(value: object): value is V1FbpDraftPickupCreateRequestDeliveryDetails; +export declare function V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON(json: any): V1FbpDraftPickupCreateRequestDeliveryDetails; +export declare function V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupCreateRequestDeliveryDetails; +export declare function V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON(value?: V1FbpDraftPickupCreateRequestDeliveryDetails | null): any; diff --git a/dist/esm/models/V1FbpDraftPickupCreateRequestDeliveryDetails.js b/dist/esm/models/V1FbpDraftPickupCreateRequestDeliveryDetails.js new file mode 100644 index 0000000..ac70be1 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupCreateRequestDeliveryDetails.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftPickupCreateRequestDeliveryDetails interface. + */ +export function instanceOfV1FbpDraftPickupCreateRequestDeliveryDetails(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('comment' in value) || value['comment'] === undefined) + return false; + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('sender_name' in value) || value['sender_name'] === undefined) + return false; + if (!('sender_phone' in value) || value['sender_phone'] === undefined) + return false; + return true; +} +export function V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON(json) { + return V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSONTyped(json, false); +} +export function V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'comment': json['comment'], + 'date': json['date'], + 'sender_name': json['sender_name'], + 'sender_phone': json['sender_phone'], + }; +} +export function V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'comment': value['comment'], + 'date': value['date'], + 'sender_name': value['sender_name'], + 'sender_phone': value['sender_phone'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickupCreateResponse.d.ts b/dist/esm/models/V1FbpDraftPickupCreateResponse.d.ts new file mode 100644 index 0000000..9dda92c --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickupCreateResponse + */ +export interface V1FbpDraftPickupCreateResponse { + /** + * Идентификатор черновика заявки на поставку. + * @type {number} + * @memberof V1FbpDraftPickupCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickupCreateResponse + */ + row_version?: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftPickupCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftPickupCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftPickupCreateResponse(value: object): value is V1FbpDraftPickupCreateResponse; +export declare function V1FbpDraftPickupCreateResponseFromJSON(json: any): V1FbpDraftPickupCreateResponse; +export declare function V1FbpDraftPickupCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupCreateResponse; +export declare function V1FbpDraftPickupCreateResponseToJSON(value?: V1FbpDraftPickupCreateResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftPickupCreateResponse.js b/dist/esm/models/V1FbpDraftPickupCreateResponse.js new file mode 100644 index 0000000..2286375 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupCreateResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftPickupCreateResponse interface. + */ +export function instanceOfV1FbpDraftPickupCreateResponse(value) { + return true; +} +export function V1FbpDraftPickupCreateResponseFromJSON(json) { + return V1FbpDraftPickupCreateResponseFromJSONTyped(json, false); +} +export function V1FbpDraftPickupCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +export function V1FbpDraftPickupCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickupDlvEditRequest.d.ts b/dist/esm/models/V1FbpDraftPickupDlvEditRequest.d.ts new file mode 100644 index 0000000..3f8e3d6 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupDlvEditRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickupDlvEditRequestDeliveryDetails } from './V1FbpDraftPickupDlvEditRequestDeliveryDetails'; +/** + * + * @export + * @interface V1FbpDraftPickupDlvEditRequest + */ +export interface V1FbpDraftPickupDlvEditRequest { + /** + * + * @type {V1FbpDraftPickupDlvEditRequestDeliveryDetails} + * @memberof V1FbpDraftPickupDlvEditRequest + */ + pickup_details: V1FbpDraftPickupDlvEditRequestDeliveryDetails; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickupDlvEditRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditRequest interface. + */ +export declare function instanceOfV1FbpDraftPickupDlvEditRequest(value: object): value is V1FbpDraftPickupDlvEditRequest; +export declare function V1FbpDraftPickupDlvEditRequestFromJSON(json: any): V1FbpDraftPickupDlvEditRequest; +export declare function V1FbpDraftPickupDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupDlvEditRequest; +export declare function V1FbpDraftPickupDlvEditRequestToJSON(value?: V1FbpDraftPickupDlvEditRequest | null): any; diff --git a/dist/esm/models/V1FbpDraftPickupDlvEditRequest.js b/dist/esm/models/V1FbpDraftPickupDlvEditRequest.js new file mode 100644 index 0000000..a5049be --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupDlvEditRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON, V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON, } from './V1FbpDraftPickupDlvEditRequestDeliveryDetails'; +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditRequest interface. + */ +export function instanceOfV1FbpDraftPickupDlvEditRequest(value) { + if (!('pickup_details' in value) || value['pickup_details'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpDraftPickupDlvEditRequestFromJSON(json) { + return V1FbpDraftPickupDlvEditRequestFromJSONTyped(json, false); +} +export function V1FbpDraftPickupDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'pickup_details': V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON(json['pickup_details']), + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpDraftPickupDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'pickup_details': V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON(value['pickup_details']), + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.d.ts b/dist/esm/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.d.ts new file mode 100644 index 0000000..cfa1cd8 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ +export interface V1FbpDraftPickupDlvEditRequestDeliveryDetails { + /** + * Адрес. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + address: string; + /** + * Комментарий. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + comment: string; + /** + * Дата доставки. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + date: string; + /** + * ФИО отправителя. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + sender_name: string; + /** + * Номер телефона отправителя. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + sender_phone: string; +} +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditRequestDeliveryDetails interface. + */ +export declare function instanceOfV1FbpDraftPickupDlvEditRequestDeliveryDetails(value: object): value is V1FbpDraftPickupDlvEditRequestDeliveryDetails; +export declare function V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON(json: any): V1FbpDraftPickupDlvEditRequestDeliveryDetails; +export declare function V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupDlvEditRequestDeliveryDetails; +export declare function V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON(value?: V1FbpDraftPickupDlvEditRequestDeliveryDetails | null): any; diff --git a/dist/esm/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.js b/dist/esm/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.js new file mode 100644 index 0000000..0243ff6 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditRequestDeliveryDetails interface. + */ +export function instanceOfV1FbpDraftPickupDlvEditRequestDeliveryDetails(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('comment' in value) || value['comment'] === undefined) + return false; + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('sender_name' in value) || value['sender_name'] === undefined) + return false; + if (!('sender_phone' in value) || value['sender_phone'] === undefined) + return false; + return true; +} +export function V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON(json) { + return V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSONTyped(json, false); +} +export function V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'comment': json['comment'], + 'date': json['date'], + 'sender_name': json['sender_name'], + 'sender_phone': json['sender_phone'], + }; +} +export function V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'comment': value['comment'], + 'date': value['date'], + 'sender_name': value['sender_name'], + 'sender_phone': value['sender_phone'], + }; +} diff --git a/dist/esm/models/V1FbpDraftPickupDlvEditResponse.d.ts b/dist/esm/models/V1FbpDraftPickupDlvEditResponse.d.ts new file mode 100644 index 0000000..055bbc4 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupDlvEditResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickupDlvEditResponse + */ +export interface V1FbpDraftPickupDlvEditResponse { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickupDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditResponse interface. + */ +export declare function instanceOfV1FbpDraftPickupDlvEditResponse(value: object): value is V1FbpDraftPickupDlvEditResponse; +export declare function V1FbpDraftPickupDlvEditResponseFromJSON(json: any): V1FbpDraftPickupDlvEditResponse; +export declare function V1FbpDraftPickupDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupDlvEditResponse; +export declare function V1FbpDraftPickupDlvEditResponseToJSON(value?: V1FbpDraftPickupDlvEditResponse | null): any; diff --git a/dist/esm/models/V1FbpDraftPickupDlvEditResponse.js b/dist/esm/models/V1FbpDraftPickupDlvEditResponse.js new file mode 100644 index 0000000..424a318 --- /dev/null +++ b/dist/esm/models/V1FbpDraftPickupDlvEditResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditResponse interface. + */ +export function instanceOfV1FbpDraftPickupDlvEditResponse(value) { + return true; +} +export function V1FbpDraftPickupDlvEditResponseFromJSON(json) { + return V1FbpDraftPickupDlvEditResponseFromJSONTyped(json, false); +} +export function V1FbpDraftPickupDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpDraftPickupDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpEditTimeslotRequest.d.ts b/dist/esm/models/V1FbpEditTimeslotRequest.d.ts new file mode 100644 index 0000000..a97210e --- /dev/null +++ b/dist/esm/models/V1FbpEditTimeslotRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpEditTimeslotRequest + */ +export interface V1FbpEditTimeslotRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpEditTimeslotRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpEditTimeslotRequest + */ + supply_id: string; + /** + * Начало таймслота. + * @type {string} + * @memberof V1FbpEditTimeslotRequest + */ + timeslot_start: string; +} +/** + * Check if a given object implements the V1FbpEditTimeslotRequest interface. + */ +export declare function instanceOfV1FbpEditTimeslotRequest(value: object): value is V1FbpEditTimeslotRequest; +export declare function V1FbpEditTimeslotRequestFromJSON(json: any): V1FbpEditTimeslotRequest; +export declare function V1FbpEditTimeslotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpEditTimeslotRequest; +export declare function V1FbpEditTimeslotRequestToJSON(value?: V1FbpEditTimeslotRequest | null): any; diff --git a/dist/esm/models/V1FbpEditTimeslotRequest.js b/dist/esm/models/V1FbpEditTimeslotRequest.js new file mode 100644 index 0000000..165f4c2 --- /dev/null +++ b/dist/esm/models/V1FbpEditTimeslotRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpEditTimeslotRequest interface. + */ +export function instanceOfV1FbpEditTimeslotRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + return true; +} +export function V1FbpEditTimeslotRequestFromJSON(json) { + return V1FbpEditTimeslotRequestFromJSONTyped(json, false); +} +export function V1FbpEditTimeslotRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'timeslot_start': json['timeslot_start'], + }; +} +export function V1FbpEditTimeslotRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V1FbpEditTimeslotResponse.d.ts b/dist/esm/models/V1FbpEditTimeslotResponse.d.ts new file mode 100644 index 0000000..edf23a5 --- /dev/null +++ b/dist/esm/models/V1FbpEditTimeslotResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpEditTimeslotResponseReserveFailureType } from './V1FbpEditTimeslotResponseReserveFailureType'; +/** + * + * @export + * @interface V1FbpEditTimeslotResponse + */ +export interface V1FbpEditTimeslotResponse { + /** + * Причина ошибки: + * - `RESERVE_FAILURE_TYPE_UNSPECIFIED` — не определена; + * - `REQUEST_VALIDATION` — в запросе указана дата резервирования в прошлом; + * - `INVALID_RESERVE` — исходный резерв не найден, неактивен или уже содержит заявки, а его пытаются перезаписать; + * - `LOGISTICS_REASON` — ошибка на стороне логистики; + * - `SCHEDULE_REASON` — ошибка на стороне расписаний. + * + * @type {Array} + * @memberof V1FbpEditTimeslotResponse + */ + error_reasons?: Array; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpEditTimeslotResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpEditTimeslotResponse interface. + */ +export declare function instanceOfV1FbpEditTimeslotResponse(value: object): value is V1FbpEditTimeslotResponse; +export declare function V1FbpEditTimeslotResponseFromJSON(json: any): V1FbpEditTimeslotResponse; +export declare function V1FbpEditTimeslotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpEditTimeslotResponse; +export declare function V1FbpEditTimeslotResponseToJSON(value?: V1FbpEditTimeslotResponse | null): any; diff --git a/dist/esm/models/V1FbpEditTimeslotResponse.js b/dist/esm/models/V1FbpEditTimeslotResponse.js new file mode 100644 index 0000000..b95f2e4 --- /dev/null +++ b/dist/esm/models/V1FbpEditTimeslotResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpEditTimeslotResponseReserveFailureTypeFromJSON, V1FbpEditTimeslotResponseReserveFailureTypeToJSON, } from './V1FbpEditTimeslotResponseReserveFailureType'; +/** + * Check if a given object implements the V1FbpEditTimeslotResponse interface. + */ +export function instanceOfV1FbpEditTimeslotResponse(value) { + return true; +} +export function V1FbpEditTimeslotResponseFromJSON(json) { + return V1FbpEditTimeslotResponseFromJSONTyped(json, false); +} +export function V1FbpEditTimeslotResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1FbpEditTimeslotResponseReserveFailureTypeFromJSON)), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpEditTimeslotResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1FbpEditTimeslotResponseReserveFailureTypeToJSON)), + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpEditTimeslotResponseReserveFailureType.d.ts b/dist/esm/models/V1FbpEditTimeslotResponseReserveFailureType.d.ts new file mode 100644 index 0000000..edf98ea --- /dev/null +++ b/dist/esm/models/V1FbpEditTimeslotResponseReserveFailureType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1FbpEditTimeslotResponseReserveFailureType: { + readonly RESERVE_FAILURE_TYPE_UNSPECIFIED: "RESERVE_FAILURE_TYPE_UNSPECIFIED"; + readonly REQUEST_VALIDATION: "REQUEST_VALIDATION"; + readonly INVALID_RESERVE: "INVALID_RESERVE"; + readonly LOGISTICS_REASON: "LOGISTICS_REASON"; + readonly SCHEDULE_REASON: "SCHEDULE_REASON"; +}; +export type V1FbpEditTimeslotResponseReserveFailureType = typeof V1FbpEditTimeslotResponseReserveFailureType[keyof typeof V1FbpEditTimeslotResponseReserveFailureType]; +export declare function instanceOfV1FbpEditTimeslotResponseReserveFailureType(value: any): boolean; +export declare function V1FbpEditTimeslotResponseReserveFailureTypeFromJSON(json: any): V1FbpEditTimeslotResponseReserveFailureType; +export declare function V1FbpEditTimeslotResponseReserveFailureTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpEditTimeslotResponseReserveFailureType; +export declare function V1FbpEditTimeslotResponseReserveFailureTypeToJSON(value?: V1FbpEditTimeslotResponseReserveFailureType | null): any; diff --git a/dist/esm/models/V1FbpEditTimeslotResponseReserveFailureType.js b/dist/esm/models/V1FbpEditTimeslotResponseReserveFailureType.js new file mode 100644 index 0000000..81588b6 --- /dev/null +++ b/dist/esm/models/V1FbpEditTimeslotResponseReserveFailureType.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1FbpEditTimeslotResponseReserveFailureType = { + RESERVE_FAILURE_TYPE_UNSPECIFIED: 'RESERVE_FAILURE_TYPE_UNSPECIFIED', + REQUEST_VALIDATION: 'REQUEST_VALIDATION', + INVALID_RESERVE: 'INVALID_RESERVE', + LOGISTICS_REASON: 'LOGISTICS_REASON', + SCHEDULE_REASON: 'SCHEDULE_REASON' +}; +export function instanceOfV1FbpEditTimeslotResponseReserveFailureType(value) { + for (const key in V1FbpEditTimeslotResponseReserveFailureType) { + if (Object.prototype.hasOwnProperty.call(V1FbpEditTimeslotResponseReserveFailureType, key)) { + if (V1FbpEditTimeslotResponseReserveFailureType[key] === value) { + return true; + } + } + } + return false; +} +export function V1FbpEditTimeslotResponseReserveFailureTypeFromJSON(json) { + return V1FbpEditTimeslotResponseReserveFailureTypeFromJSONTyped(json, false); +} +export function V1FbpEditTimeslotResponseReserveFailureTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1FbpEditTimeslotResponseReserveFailureTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1FbpGetLabelRequest.d.ts b/dist/esm/models/V1FbpGetLabelRequest.d.ts new file mode 100644 index 0000000..d56ca16 --- /dev/null +++ b/dist/esm/models/V1FbpGetLabelRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpGetLabelRequest + */ +export interface V1FbpGetLabelRequest { + /** + * Идентификатор задания на генерацию этикеток. + * @type {string} + * @memberof V1FbpGetLabelRequest + */ + code: string; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpGetLabelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpGetLabelRequest interface. + */ +export declare function instanceOfV1FbpGetLabelRequest(value: object): value is V1FbpGetLabelRequest; +export declare function V1FbpGetLabelRequestFromJSON(json: any): V1FbpGetLabelRequest; +export declare function V1FbpGetLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpGetLabelRequest; +export declare function V1FbpGetLabelRequestToJSON(value?: V1FbpGetLabelRequest | null): any; diff --git a/dist/esm/models/V1FbpGetLabelRequest.js b/dist/esm/models/V1FbpGetLabelRequest.js new file mode 100644 index 0000000..6e85a91 --- /dev/null +++ b/dist/esm/models/V1FbpGetLabelRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpGetLabelRequest interface. + */ +export function instanceOfV1FbpGetLabelRequest(value) { + if (!('code' in value) || value['code'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpGetLabelRequestFromJSON(json) { + return V1FbpGetLabelRequestFromJSONTyped(json, false); +} +export function V1FbpGetLabelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpGetLabelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpGetLabelResponse.d.ts b/dist/esm/models/V1FbpGetLabelResponse.d.ts new file mode 100644 index 0000000..a460f7f --- /dev/null +++ b/dist/esm/models/V1FbpGetLabelResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpGetLabelResponseLabelCreationStateTypeEnum } from './FbpGetLabelResponseLabelCreationStateTypeEnum'; +/** + * + * @export + * @interface V1FbpGetLabelResponse + */ +export interface V1FbpGetLabelResponse { + /** + * Ссылка на этикетки для поставки. + * @type {string} + * @memberof V1FbpGetLabelResponse + */ + label_url?: string; + /** + * + * @type {FbpGetLabelResponseLabelCreationStateTypeEnum} + * @memberof V1FbpGetLabelResponse + */ + state?: FbpGetLabelResponseLabelCreationStateTypeEnum; +} +/** + * Check if a given object implements the V1FbpGetLabelResponse interface. + */ +export declare function instanceOfV1FbpGetLabelResponse(value: object): value is V1FbpGetLabelResponse; +export declare function V1FbpGetLabelResponseFromJSON(json: any): V1FbpGetLabelResponse; +export declare function V1FbpGetLabelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpGetLabelResponse; +export declare function V1FbpGetLabelResponseToJSON(value?: V1FbpGetLabelResponse | null): any; diff --git a/dist/esm/models/V1FbpGetLabelResponse.js b/dist/esm/models/V1FbpGetLabelResponse.js new file mode 100644 index 0000000..12d350e --- /dev/null +++ b/dist/esm/models/V1FbpGetLabelResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON, FbpGetLabelResponseLabelCreationStateTypeEnumToJSON, } from './FbpGetLabelResponseLabelCreationStateTypeEnum'; +/** + * Check if a given object implements the V1FbpGetLabelResponse interface. + */ +export function instanceOfV1FbpGetLabelResponse(value) { + return true; +} +export function V1FbpGetLabelResponseFromJSON(json) { + return V1FbpGetLabelResponseFromJSONTyped(json, false); +} +export function V1FbpGetLabelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'label_url': json['label_url'] == null ? undefined : json['label_url'], + 'state': json['state'] == null ? undefined : FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON(json['state']), + }; +} +export function V1FbpGetLabelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'label_url': value['label_url'], + 'state': FbpGetLabelResponseLabelCreationStateTypeEnumToJSON(value['state']), + }; +} diff --git a/dist/esm/models/V1FbpOrderDirectCancelRequest.d.ts b/dist/esm/models/V1FbpOrderDirectCancelRequest.d.ts new file mode 100644 index 0000000..cc24d9c --- /dev/null +++ b/dist/esm/models/V1FbpOrderDirectCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDirectCancelRequest + */ +export interface V1FbpOrderDirectCancelRequest { + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpOrderDirectCancelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderDirectCancelRequest interface. + */ +export declare function instanceOfV1FbpOrderDirectCancelRequest(value: object): value is V1FbpOrderDirectCancelRequest; +export declare function V1FbpOrderDirectCancelRequestFromJSON(json: any): V1FbpOrderDirectCancelRequest; +export declare function V1FbpOrderDirectCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDirectCancelRequest; +export declare function V1FbpOrderDirectCancelRequestToJSON(value?: V1FbpOrderDirectCancelRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderDirectCancelRequest.js b/dist/esm/models/V1FbpOrderDirectCancelRequest.js new file mode 100644 index 0000000..c9fb8c5 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDirectCancelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderDirectCancelRequest interface. + */ +export function instanceOfV1FbpOrderDirectCancelRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpOrderDirectCancelRequestFromJSON(json) { + return V1FbpOrderDirectCancelRequestFromJSONTyped(json, false); +} +export function V1FbpOrderDirectCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpOrderDirectCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDirectCancelResponse.d.ts b/dist/esm/models/V1FbpOrderDirectCancelResponse.d.ts new file mode 100644 index 0000000..0ed642d --- /dev/null +++ b/dist/esm/models/V1FbpOrderDirectCancelResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderDirectCancelResponse + */ +export interface V1FbpOrderDirectCancelResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderDirectCancelResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderDirectCancelResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDirectCancelResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderDirectCancelResponse interface. + */ +export declare function instanceOfV1FbpOrderDirectCancelResponse(value: object): value is V1FbpOrderDirectCancelResponse; +export declare function V1FbpOrderDirectCancelResponseFromJSON(json: any): V1FbpOrderDirectCancelResponse; +export declare function V1FbpOrderDirectCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDirectCancelResponse; +export declare function V1FbpOrderDirectCancelResponseToJSON(value?: V1FbpOrderDirectCancelResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderDirectCancelResponse.js b/dist/esm/models/V1FbpOrderDirectCancelResponse.js new file mode 100644 index 0000000..dfe5bdd --- /dev/null +++ b/dist/esm/models/V1FbpOrderDirectCancelResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderValidationErrorFromJSON, V1OrderValidationErrorToJSON, } from './V1OrderValidationError'; +/** + * Check if a given object implements the V1FbpOrderDirectCancelResponse interface. + */ +export function instanceOfV1FbpOrderDirectCancelResponse(value) { + return true; +} +export function V1FbpOrderDirectCancelResponseFromJSON(json) { + return V1FbpOrderDirectCancelResponseFromJSONTyped(json, false); +} +export function V1FbpOrderDirectCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1OrderValidationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpOrderDirectCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1OrderValidationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDirectSellerDlvEditRequest.d.ts b/dist/esm/models/V1FbpOrderDirectSellerDlvEditRequest.d.ts new file mode 100644 index 0000000..a158bef --- /dev/null +++ b/dist/esm/models/V1FbpOrderDirectSellerDlvEditRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDirectSellerDlvEditRequest + */ +export interface V1FbpOrderDirectSellerDlvEditRequest { + /** + * ФИО водителя. + * @type {string} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + driver_name: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + supply_id: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + vehicle_number: string; + /** + * Тип автомобиля. + * @type {string} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + vehicle_type: string; +} +/** + * Check if a given object implements the V1FbpOrderDirectSellerDlvEditRequest interface. + */ +export declare function instanceOfV1FbpOrderDirectSellerDlvEditRequest(value: object): value is V1FbpOrderDirectSellerDlvEditRequest; +export declare function V1FbpOrderDirectSellerDlvEditRequestFromJSON(json: any): V1FbpOrderDirectSellerDlvEditRequest; +export declare function V1FbpOrderDirectSellerDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDirectSellerDlvEditRequest; +export declare function V1FbpOrderDirectSellerDlvEditRequestToJSON(value?: V1FbpOrderDirectSellerDlvEditRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderDirectSellerDlvEditRequest.js b/dist/esm/models/V1FbpOrderDirectSellerDlvEditRequest.js new file mode 100644 index 0000000..875367b --- /dev/null +++ b/dist/esm/models/V1FbpOrderDirectSellerDlvEditRequest.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderDirectSellerDlvEditRequest interface. + */ +export function instanceOfV1FbpOrderDirectSellerDlvEditRequest(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('vehicle_number' in value) || value['vehicle_number'] === undefined) + return false; + if (!('vehicle_type' in value) || value['vehicle_type'] === undefined) + return false; + return true; +} +export function V1FbpOrderDirectSellerDlvEditRequestFromJSON(json) { + return V1FbpOrderDirectSellerDlvEditRequestFromJSONTyped(json, false); +} +export function V1FbpOrderDirectSellerDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'vehicle_number': json['vehicle_number'], + 'vehicle_type': json['vehicle_type'], + }; +} +export function V1FbpOrderDirectSellerDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'vehicle_number': value['vehicle_number'], + 'vehicle_type': value['vehicle_type'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDirectSellerDlvEditResponse.d.ts b/dist/esm/models/V1FbpOrderDirectSellerDlvEditResponse.d.ts new file mode 100644 index 0000000..6ad5831 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDirectSellerDlvEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderDirectSellerDlvEditResponse + */ +export interface V1FbpOrderDirectSellerDlvEditResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderDirectSellerDlvEditResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderDirectSellerDlvEditResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDirectSellerDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderDirectSellerDlvEditResponse interface. + */ +export declare function instanceOfV1FbpOrderDirectSellerDlvEditResponse(value: object): value is V1FbpOrderDirectSellerDlvEditResponse; +export declare function V1FbpOrderDirectSellerDlvEditResponseFromJSON(json: any): V1FbpOrderDirectSellerDlvEditResponse; +export declare function V1FbpOrderDirectSellerDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDirectSellerDlvEditResponse; +export declare function V1FbpOrderDirectSellerDlvEditResponseToJSON(value?: V1FbpOrderDirectSellerDlvEditResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderDirectSellerDlvEditResponse.js b/dist/esm/models/V1FbpOrderDirectSellerDlvEditResponse.js new file mode 100644 index 0000000..0e6abea --- /dev/null +++ b/dist/esm/models/V1FbpOrderDirectSellerDlvEditResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderValidationErrorFromJSON, V1OrderValidationErrorToJSON, } from './V1OrderValidationError'; +/** + * Check if a given object implements the V1FbpOrderDirectSellerDlvEditResponse interface. + */ +export function instanceOfV1FbpOrderDirectSellerDlvEditResponse(value) { + return true; +} +export function V1FbpOrderDirectSellerDlvEditResponseFromJSON(json) { + return V1FbpOrderDirectSellerDlvEditResponseFromJSONTyped(json, false); +} +export function V1FbpOrderDirectSellerDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1OrderValidationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpOrderDirectSellerDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1OrderValidationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffCancelRequest.d.ts b/dist/esm/models/V1FbpOrderDropOffCancelRequest.d.ts new file mode 100644 index 0000000..38b8a6f --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDropOffCancelRequest + */ +export interface V1FbpOrderDropOffCancelRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderDropOffCancelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderDropOffCancelRequest interface. + */ +export declare function instanceOfV1FbpOrderDropOffCancelRequest(value: object): value is V1FbpOrderDropOffCancelRequest; +export declare function V1FbpOrderDropOffCancelRequestFromJSON(json: any): V1FbpOrderDropOffCancelRequest; +export declare function V1FbpOrderDropOffCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffCancelRequest; +export declare function V1FbpOrderDropOffCancelRequestToJSON(value?: V1FbpOrderDropOffCancelRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffCancelRequest.js b/dist/esm/models/V1FbpOrderDropOffCancelRequest.js new file mode 100644 index 0000000..51f607b --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffCancelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderDropOffCancelRequest interface. + */ +export function instanceOfV1FbpOrderDropOffCancelRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpOrderDropOffCancelRequestFromJSON(json) { + return V1FbpOrderDropOffCancelRequestFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpOrderDropOffCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffCancelResponse.d.ts b/dist/esm/models/V1FbpOrderDropOffCancelResponse.d.ts new file mode 100644 index 0000000..80613da --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffCancelResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderDropOffCancelResponse + */ +export interface V1FbpOrderDropOffCancelResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderDropOffCancelResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderDropOffCancelResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDropOffCancelResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderDropOffCancelResponse interface. + */ +export declare function instanceOfV1FbpOrderDropOffCancelResponse(value: object): value is V1FbpOrderDropOffCancelResponse; +export declare function V1FbpOrderDropOffCancelResponseFromJSON(json: any): V1FbpOrderDropOffCancelResponse; +export declare function V1FbpOrderDropOffCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffCancelResponse; +export declare function V1FbpOrderDropOffCancelResponseToJSON(value?: V1FbpOrderDropOffCancelResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffCancelResponse.js b/dist/esm/models/V1FbpOrderDropOffCancelResponse.js new file mode 100644 index 0000000..536662f --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffCancelResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderValidationErrorFromJSON, V1OrderValidationErrorToJSON, } from './V1OrderValidationError'; +/** + * Check if a given object implements the V1FbpOrderDropOffCancelResponse interface. + */ +export function instanceOfV1FbpOrderDropOffCancelResponse(value) { + return true; +} +export function V1FbpOrderDropOffCancelResponseFromJSON(json) { + return V1FbpOrderDropOffCancelResponseFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1OrderValidationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpOrderDropOffCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1OrderValidationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffDlvEditRequest.d.ts b/dist/esm/models/V1FbpOrderDropOffDlvEditRequest.d.ts new file mode 100644 index 0000000..a8909d2 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffDlvEditRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDropOffDlvEditRequest + */ +export interface V1FbpOrderDropOffDlvEditRequest { + /** + * Дата прибытия поставки на drop-off пункт. + * @type {string} + * @memberof V1FbpOrderDropOffDlvEditRequest + */ + drop_off_date: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDropOffDlvEditRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderDropOffDlvEditRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderDropOffDlvEditRequest interface. + */ +export declare function instanceOfV1FbpOrderDropOffDlvEditRequest(value: object): value is V1FbpOrderDropOffDlvEditRequest; +export declare function V1FbpOrderDropOffDlvEditRequestFromJSON(json: any): V1FbpOrderDropOffDlvEditRequest; +export declare function V1FbpOrderDropOffDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffDlvEditRequest; +export declare function V1FbpOrderDropOffDlvEditRequestToJSON(value?: V1FbpOrderDropOffDlvEditRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffDlvEditRequest.js b/dist/esm/models/V1FbpOrderDropOffDlvEditRequest.js new file mode 100644 index 0000000..647449c --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffDlvEditRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderDropOffDlvEditRequest interface. + */ +export function instanceOfV1FbpOrderDropOffDlvEditRequest(value) { + if (!('drop_off_date' in value) || value['drop_off_date'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpOrderDropOffDlvEditRequestFromJSON(json) { + return V1FbpOrderDropOffDlvEditRequestFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_date': json['drop_off_date'], + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpOrderDropOffDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_date': value['drop_off_date'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffDlvEditResponse.d.ts b/dist/esm/models/V1FbpOrderDropOffDlvEditResponse.d.ts new file mode 100644 index 0000000..ccb86bb --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffDlvEditResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDropOffDlvEditResponse + */ +export interface V1FbpOrderDropOffDlvEditResponse { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDropOffDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderDropOffDlvEditResponse interface. + */ +export declare function instanceOfV1FbpOrderDropOffDlvEditResponse(value: object): value is V1FbpOrderDropOffDlvEditResponse; +export declare function V1FbpOrderDropOffDlvEditResponseFromJSON(json: any): V1FbpOrderDropOffDlvEditResponse; +export declare function V1FbpOrderDropOffDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffDlvEditResponse; +export declare function V1FbpOrderDropOffDlvEditResponseToJSON(value?: V1FbpOrderDropOffDlvEditResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffDlvEditResponse.js b/dist/esm/models/V1FbpOrderDropOffDlvEditResponse.js new file mode 100644 index 0000000..2a8095e --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffDlvEditResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderDropOffDlvEditResponse interface. + */ +export function instanceOfV1FbpOrderDropOffDlvEditResponse(value) { + return true; +} +export function V1FbpOrderDropOffDlvEditResponseFromJSON(json) { + return V1FbpOrderDropOffDlvEditResponseFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpOrderDropOffDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableRequest.d.ts b/dist/esm/models/V1FbpOrderDropOffTimetableRequest.d.ts new file mode 100644 index 0000000..fc8f722 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDropOffTimetableRequest + */ +export interface V1FbpOrderDropOffTimetableRequest { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1FbpOrderDropOffTimetableRequest + */ + drop_off_point_id: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableRequest + */ + province_uuid: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpOrderDropOffTimetableRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableRequest interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableRequest(value: object): value is V1FbpOrderDropOffTimetableRequest; +export declare function V1FbpOrderDropOffTimetableRequestFromJSON(json: any): V1FbpOrderDropOffTimetableRequest; +export declare function V1FbpOrderDropOffTimetableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableRequest; +export declare function V1FbpOrderDropOffTimetableRequestToJSON(value?: V1FbpOrderDropOffTimetableRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableRequest.js b/dist/esm/models/V1FbpOrderDropOffTimetableRequest.js new file mode 100644 index 0000000..bd22620 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableRequest interface. + */ +export function instanceOfV1FbpOrderDropOffTimetableRequest(value) { + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('province_uuid' in value) || value['province_uuid'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1FbpOrderDropOffTimetableRequestFromJSON(json) { + return V1FbpOrderDropOffTimetableRequestFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffTimetableRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_point_id': json['drop_off_point_id'], + 'province_uuid': json['province_uuid'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1FbpOrderDropOffTimetableRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_point_id': value['drop_off_point_id'], + 'province_uuid': value['province_uuid'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponse.d.ts b/dist/esm/models/V1FbpOrderDropOffTimetableResponse.d.ts new file mode 100644 index 0000000..f8099e1 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderDropOffTimetableResponseCalendar } from './V1FbpOrderDropOffTimetableResponseCalendar'; +/** + * + * @export + * @interface V1FbpOrderDropOffTimetableResponse + */ +export interface V1FbpOrderDropOffTimetableResponse { + /** + * Информация о графике работы drop-off пункта. + * @type {Array} + * @memberof V1FbpOrderDropOffTimetableResponse + */ + calendar?: Array; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponse interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponse(value: object): value is V1FbpOrderDropOffTimetableResponse; +export declare function V1FbpOrderDropOffTimetableResponseFromJSON(json: any): V1FbpOrderDropOffTimetableResponse; +export declare function V1FbpOrderDropOffTimetableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponse; +export declare function V1FbpOrderDropOffTimetableResponseToJSON(value?: V1FbpOrderDropOffTimetableResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponse.js b/dist/esm/models/V1FbpOrderDropOffTimetableResponse.js new file mode 100644 index 0000000..339f503 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpOrderDropOffTimetableResponseCalendarFromJSON, V1FbpOrderDropOffTimetableResponseCalendarToJSON, } from './V1FbpOrderDropOffTimetableResponseCalendar'; +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponse interface. + */ +export function instanceOfV1FbpOrderDropOffTimetableResponse(value) { + return true; +} +export function V1FbpOrderDropOffTimetableResponseFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffTimetableResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calendar': json['calendar'] == null ? undefined : (json['calendar'].map(V1FbpOrderDropOffTimetableResponseCalendarFromJSON)), + }; +} +export function V1FbpOrderDropOffTimetableResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'calendar': value['calendar'] == null ? undefined : (value['calendar'].map(V1FbpOrderDropOffTimetableResponseCalendarToJSON)), + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendar.d.ts b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendar.d.ts new file mode 100644 index 0000000..b6492d8 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendar.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderDropOffTimetableResponseCalendarCalendarItem } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItem'; +import type { V1DayOfWeek } from './V1DayOfWeek'; +/** + * + * @export + * @interface V1FbpOrderDropOffTimetableResponseCalendar + */ +export interface V1FbpOrderDropOffTimetableResponseCalendar { + /** + * + * @type {V1FbpOrderDropOffTimetableResponseCalendarCalendarItem} + * @memberof V1FbpOrderDropOffTimetableResponseCalendar + */ + calendar_item?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItem; + /** + * + * @type {V1DayOfWeek} + * @memberof V1FbpOrderDropOffTimetableResponseCalendar + */ + day_of_week?: V1DayOfWeek; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendar interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponseCalendar(value: object): value is V1FbpOrderDropOffTimetableResponseCalendar; +export declare function V1FbpOrderDropOffTimetableResponseCalendarFromJSON(json: any): V1FbpOrderDropOffTimetableResponseCalendar; +export declare function V1FbpOrderDropOffTimetableResponseCalendarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponseCalendar; +export declare function V1FbpOrderDropOffTimetableResponseCalendarToJSON(value?: V1FbpOrderDropOffTimetableResponseCalendar | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendar.js b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendar.js new file mode 100644 index 0000000..7122839 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendar.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON, V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON, } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItem'; +import { V1DayOfWeekFromJSON, V1DayOfWeekToJSON, } from './V1DayOfWeek'; +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendar interface. + */ +export function instanceOfV1FbpOrderDropOffTimetableResponseCalendar(value) { + return true; +} +export function V1FbpOrderDropOffTimetableResponseCalendarFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseCalendarFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffTimetableResponseCalendarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calendar_item': json['calendar_item'] == null ? undefined : V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON(json['calendar_item']), + 'day_of_week': json['day_of_week'] == null ? undefined : V1DayOfWeekFromJSON(json['day_of_week']), + }; +} +export function V1FbpOrderDropOffTimetableResponseCalendarToJSON(value) { + if (value == null) { + return value; + } + return { + 'calendar_item': V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON(value['calendar_item']), + 'day_of_week': V1DayOfWeekToJSON(value['day_of_week']), + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.d.ts b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.d.ts new file mode 100644 index 0000000..f232091 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak'; +import type { V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime'; +/** + * Информация о дне. + * @export + * @interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItem + */ +export interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItem { + /** + * + * @type {V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItem + */ + break_hours?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; + /** + * `true`, если выходной день. + * + * @type {boolean} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItem + */ + is_holiday?: boolean; + /** + * + * @type {V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItem + */ + opening_hours?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItem interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItem(value: object): value is V1FbpOrderDropOffTimetableResponseCalendarCalendarItem; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON(json: any): V1FbpOrderDropOffTimetableResponseCalendarCalendarItem; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponseCalendarCalendarItem; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON(value?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItem | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.js b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.js new file mode 100644 index 0000000..562c5be --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON, V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON, } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak'; +import { V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON, V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON, } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime'; +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItem interface. + */ +export function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItem(value) { + return true; +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'break_hours': json['break_hours'] == null ? undefined : V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON(json['break_hours']), + 'is_holiday': json['is_holiday'] == null ? undefined : json['is_holiday'], + 'opening_hours': json['opening_hours'] == null ? undefined : V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json['opening_hours']), + }; +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'break_hours': V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON(value['break_hours']), + 'is_holiday': value['is_holiday'], + 'opening_hours': V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value['opening_hours']), + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts new file mode 100644 index 0000000..fca5bef --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о рабочих часах. + * @export + * @interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime + */ +export interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime { + /** + * Время начала. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime + */ + timeslot_end?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime(value: object): value is V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json: any): V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.js b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.js new file mode 100644 index 0000000..6b31caf --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime interface. + */ +export function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime(value) { + return true; +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.d.ts b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.d.ts new file mode 100644 index 0000000..81fcba3 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о перерыве. + * @export + * @interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak + */ +export interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak { + /** + * Время начала. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak + */ + timeslot_end?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak(value: object): value is V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON(json: any): V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON(value?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak | null): any; diff --git a/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.js b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.js new file mode 100644 index 0000000..0b7dde3 --- /dev/null +++ b/dist/esm/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak interface. + */ +export function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak(value) { + return true; +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSONTyped(json, false); +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +export function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V1FbpOrderGetRequest.d.ts b/dist/esm/models/V1FbpOrderGetRequest.d.ts new file mode 100644 index 0000000..c56d68e --- /dev/null +++ b/dist/esm/models/V1FbpOrderGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderGetRequest + */ +export interface V1FbpOrderGetRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderGetRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderGetRequest interface. + */ +export declare function instanceOfV1FbpOrderGetRequest(value: object): value is V1FbpOrderGetRequest; +export declare function V1FbpOrderGetRequestFromJSON(json: any): V1FbpOrderGetRequest; +export declare function V1FbpOrderGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderGetRequest; +export declare function V1FbpOrderGetRequestToJSON(value?: V1FbpOrderGetRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderGetRequest.js b/dist/esm/models/V1FbpOrderGetRequest.js new file mode 100644 index 0000000..4c6fab7 --- /dev/null +++ b/dist/esm/models/V1FbpOrderGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderGetRequest interface. + */ +export function instanceOfV1FbpOrderGetRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpOrderGetRequestFromJSON(json) { + return V1FbpOrderGetRequestFromJSONTyped(json, false); +} +export function V1FbpOrderGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpOrderGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderGetResponse.d.ts b/dist/esm/models/V1FbpOrderGetResponse.d.ts new file mode 100644 index 0000000..722b4e5 --- /dev/null +++ b/dist/esm/models/V1FbpOrderGetResponse.d.ts @@ -0,0 +1,145 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fbpv1DeliveryDetails } from './Fbpv1DeliveryDetails'; +import type { V1CancellationState } from './V1CancellationState'; +import type { V1OrderStatusEnum } from './V1OrderStatusEnum'; +import type { V1OrderAttentionTypeEnum } from './V1OrderAttentionTypeEnum'; +/** + * + * @export + * @interface V1FbpOrderGetResponse + */ +export interface V1FbpOrderGetResponse { + /** + * Причины предупреждения: + * - `ORDER_ATTENTION_TYPE_UNSPECIFIED` — не определена; + * - `OLD` — устаревшая заявка; + * - `TIME_SLOT_EXPIRED` — таймслот просрочен. + * + * @type {Array} + * @memberof V1FbpOrderGetResponse + */ + attention_reasons?: Array; + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + bundle_uuid?: string; + /** + * `true`, если заявку можно отменить. + * + * @type {boolean} + * @memberof V1FbpOrderGetResponse + */ + can_be_cancelled?: boolean; + /** + * + * @type {V1CancellationState} + * @memberof V1FbpOrderGetResponse + */ + cancellation_state?: V1CancellationState; + /** + * Дата создания поставки. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + created_date?: string; + /** + * + * @type {Fbpv1DeliveryDetails} + * @memberof V1FbpOrderGetResponse + */ + delivery_details?: Fbpv1DeliveryDetails; + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + draft_id?: number; + /** + * `true`, если есть подписанные документы. + * + * @type {boolean} + * @memberof V1FbpOrderGetResponse + */ + has_consignment_note?: boolean; + /** + * `true`, если есть этикетки. + * + * @type {boolean} + * @memberof V1FbpOrderGetResponse + */ + has_label?: boolean; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + id?: number; + /** + * `true`, если нельзя редактировать поставку. + * + * @type {boolean} + * @memberof V1FbpOrderGetResponse + */ + locked?: boolean; + /** + * Номер поставки. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + order_number?: string; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + package_units_count?: number; + /** + * Дата и время принятия поставки. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + receive_date?: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + row_version?: number; + /** + * + * @type {V1OrderStatusEnum} + * @memberof V1FbpOrderGetResponse + */ + status?: V1OrderStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpOrderGetResponse interface. + */ +export declare function instanceOfV1FbpOrderGetResponse(value: object): value is V1FbpOrderGetResponse; +export declare function V1FbpOrderGetResponseFromJSON(json: any): V1FbpOrderGetResponse; +export declare function V1FbpOrderGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderGetResponse; +export declare function V1FbpOrderGetResponseToJSON(value?: V1FbpOrderGetResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderGetResponse.js b/dist/esm/models/V1FbpOrderGetResponse.js new file mode 100644 index 0000000..bcb290d --- /dev/null +++ b/dist/esm/models/V1FbpOrderGetResponse.js @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Fbpv1DeliveryDetailsFromJSON, Fbpv1DeliveryDetailsToJSON, } from './Fbpv1DeliveryDetails'; +import { V1CancellationStateFromJSON, V1CancellationStateToJSON, } from './V1CancellationState'; +import { V1OrderStatusEnumFromJSON, V1OrderStatusEnumToJSON, } from './V1OrderStatusEnum'; +import { V1OrderAttentionTypeEnumFromJSON, V1OrderAttentionTypeEnumToJSON, } from './V1OrderAttentionTypeEnum'; +/** + * Check if a given object implements the V1FbpOrderGetResponse interface. + */ +export function instanceOfV1FbpOrderGetResponse(value) { + return true; +} +export function V1FbpOrderGetResponseFromJSON(json) { + return V1FbpOrderGetResponseFromJSONTyped(json, false); +} +export function V1FbpOrderGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attention_reasons': json['attention_reasons'] == null ? undefined : (json['attention_reasons'].map(V1OrderAttentionTypeEnumFromJSON)), + 'bundle_uuid': json['bundle_uuid'] == null ? undefined : json['bundle_uuid'], + 'can_be_cancelled': json['can_be_cancelled'] == null ? undefined : json['can_be_cancelled'], + 'cancellation_state': json['cancellation_state'] == null ? undefined : V1CancellationStateFromJSON(json['cancellation_state']), + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'delivery_details': json['delivery_details'] == null ? undefined : Fbpv1DeliveryDetailsFromJSON(json['delivery_details']), + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'has_consignment_note': json['has_consignment_note'] == null ? undefined : json['has_consignment_note'], + 'has_label': json['has_label'] == null ? undefined : json['has_label'], + 'id': json['id'] == null ? undefined : json['id'], + 'locked': json['locked'] == null ? undefined : json['locked'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'status': json['status'] == null ? undefined : V1OrderStatusEnumFromJSON(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V1FbpOrderGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'attention_reasons': value['attention_reasons'] == null ? undefined : (value['attention_reasons'].map(V1OrderAttentionTypeEnumToJSON)), + 'bundle_uuid': value['bundle_uuid'], + 'can_be_cancelled': value['can_be_cancelled'], + 'cancellation_state': V1CancellationStateToJSON(value['cancellation_state']), + 'created_date': value['created_date'], + 'delivery_details': Fbpv1DeliveryDetailsToJSON(value['delivery_details']), + 'draft_id': value['draft_id'], + 'has_consignment_note': value['has_consignment_note'], + 'has_label': value['has_label'], + 'id': value['id'], + 'locked': value['locked'], + 'order_number': value['order_number'], + 'package_units_count': value['package_units_count'], + 'receive_date': value['receive_date'], + 'row_version': value['row_version'], + 'status': V1OrderStatusEnumToJSON(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderListRequest.d.ts b/dist/esm/models/V1FbpOrderListRequest.d.ts new file mode 100644 index 0000000..c2ca116 --- /dev/null +++ b/dist/esm/models/V1FbpOrderListRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderListRequest + */ +export interface V1FbpOrderListRequest { + /** + * Количество поставок в ответе. + * @type {number} + * @memberof V1FbpOrderListRequest + */ + count: number; + /** + * Идентификатор последней поставки на странице. Для первого запроса оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `id` последней поставки из ответа предыдущего запроса. + * + * @type {number} + * @memberof V1FbpOrderListRequest + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpOrderListRequest interface. + */ +export declare function instanceOfV1FbpOrderListRequest(value: object): value is V1FbpOrderListRequest; +export declare function V1FbpOrderListRequestFromJSON(json: any): V1FbpOrderListRequest; +export declare function V1FbpOrderListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderListRequest; +export declare function V1FbpOrderListRequestToJSON(value?: V1FbpOrderListRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderListRequest.js b/dist/esm/models/V1FbpOrderListRequest.js new file mode 100644 index 0000000..6b83929 --- /dev/null +++ b/dist/esm/models/V1FbpOrderListRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderListRequest interface. + */ +export function instanceOfV1FbpOrderListRequest(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + return true; +} +export function V1FbpOrderListRequestFromJSON(json) { + return V1FbpOrderListRequestFromJSONTyped(json, false); +} +export function V1FbpOrderListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1FbpOrderListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderListResponse.d.ts b/dist/esm/models/V1FbpOrderListResponse.d.ts new file mode 100644 index 0000000..f5e4401 --- /dev/null +++ b/dist/esm/models/V1FbpOrderListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderListResponseItem } from './V1FbpOrderListResponseItem'; +/** + * + * @export + * @interface V1FbpOrderListResponse + */ +export interface V1FbpOrderListResponse { + /** + * `true`, если в ответе вернули не все поставки. + * + * @type {boolean} + * @memberof V1FbpOrderListResponse + */ + has_next?: boolean; + /** + * Поставки. + * @type {Array} + * @memberof V1FbpOrderListResponse + */ + items?: Array; + /** + * Идентификатор последней поставки на странице. + * @type {number} + * @memberof V1FbpOrderListResponse + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpOrderListResponse interface. + */ +export declare function instanceOfV1FbpOrderListResponse(value: object): value is V1FbpOrderListResponse; +export declare function V1FbpOrderListResponseFromJSON(json: any): V1FbpOrderListResponse; +export declare function V1FbpOrderListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderListResponse; +export declare function V1FbpOrderListResponseToJSON(value?: V1FbpOrderListResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderListResponse.js b/dist/esm/models/V1FbpOrderListResponse.js new file mode 100644 index 0000000..8ebc706 --- /dev/null +++ b/dist/esm/models/V1FbpOrderListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpOrderListResponseItemFromJSON, V1FbpOrderListResponseItemToJSON, } from './V1FbpOrderListResponseItem'; +/** + * Check if a given object implements the V1FbpOrderListResponse interface. + */ +export function instanceOfV1FbpOrderListResponse(value) { + return true; +} +export function V1FbpOrderListResponseFromJSON(json) { + return V1FbpOrderListResponseFromJSONTyped(json, false); +} +export function V1FbpOrderListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'items': json['items'] == null ? undefined : (json['items'].map(V1FbpOrderListResponseItemFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1FbpOrderListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'items': value['items'] == null ? undefined : (value['items'].map(V1FbpOrderListResponseItemToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderListResponseItem.d.ts b/dist/esm/models/V1FbpOrderListResponseItem.d.ts new file mode 100644 index 0000000..087a7a8 --- /dev/null +++ b/dist/esm/models/V1FbpOrderListResponseItem.d.ts @@ -0,0 +1,134 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fbpv1DeliveryDetails } from './Fbpv1DeliveryDetails'; +import type { V1CancellationState } from './V1CancellationState'; +import type { V1OrderStatusEnum } from './V1OrderStatusEnum'; +import type { V1OrderAttentionTypeEnum } from './V1OrderAttentionTypeEnum'; +import type { ItemBundleSummary } from './ItemBundleSummary'; +/** + * Детали заказа. + * @export + * @interface V1FbpOrderListResponseItem + */ +export interface V1FbpOrderListResponseItem { + /** + * Причины предупреждения: + * - `ORDER_ATTENTION_TYPE_UNSPECIFIED` — не определена; + * - `OLD` — устаревшая заявка; + * - `TIME_SLOT_EXPIRED` — таймслот просрочен. + * + * @type {Array} + * @memberof V1FbpOrderListResponseItem + */ + attention_reasons?: Array; + /** + * + * @type {ItemBundleSummary} + * @memberof V1FbpOrderListResponseItem + */ + bundle_summary?: ItemBundleSummary; + /** + * `true`, если заявку можно отменить. + * + * @type {boolean} + * @memberof V1FbpOrderListResponseItem + */ + can_be_cancelled?: boolean; + /** + * + * @type {V1CancellationState} + * @memberof V1FbpOrderListResponseItem + */ + cancellation_state?: V1CancellationState; + /** + * Дата создания поставки. + * @type {string} + * @memberof V1FbpOrderListResponseItem + */ + created_date?: string; + /** + * + * @type {Fbpv1DeliveryDetails} + * @memberof V1FbpOrderListResponseItem + */ + delivery_details?: Fbpv1DeliveryDetails; + /** + * `true`, если есть подписанные документы. + * + * @type {boolean} + * @memberof V1FbpOrderListResponseItem + */ + has_consignment_note?: boolean; + /** + * `true`, если есть этикетки. + * + * @type {boolean} + * @memberof V1FbpOrderListResponseItem + */ + has_label?: boolean; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1FbpOrderListResponseItem + */ + id?: number; + /** + * `true`, если нельзя редактировать поставку. + * + * @type {boolean} + * @memberof V1FbpOrderListResponseItem + */ + locked?: boolean; + /** + * Номер поставки. + * @type {string} + * @memberof V1FbpOrderListResponseItem + */ + order_number?: string; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpOrderListResponseItem + */ + package_units_count?: number; + /** + * Дата и время принятия поставки. + * @type {string} + * @memberof V1FbpOrderListResponseItem + */ + receive_date?: string; + /** + * + * @type {V1OrderStatusEnum} + * @memberof V1FbpOrderListResponseItem + */ + status?: V1OrderStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderListResponseItem + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpOrderListResponseItem + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpOrderListResponseItem interface. + */ +export declare function instanceOfV1FbpOrderListResponseItem(value: object): value is V1FbpOrderListResponseItem; +export declare function V1FbpOrderListResponseItemFromJSON(json: any): V1FbpOrderListResponseItem; +export declare function V1FbpOrderListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderListResponseItem; +export declare function V1FbpOrderListResponseItemToJSON(value?: V1FbpOrderListResponseItem | null): any; diff --git a/dist/esm/models/V1FbpOrderListResponseItem.js b/dist/esm/models/V1FbpOrderListResponseItem.js new file mode 100644 index 0000000..9da888b --- /dev/null +++ b/dist/esm/models/V1FbpOrderListResponseItem.js @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Fbpv1DeliveryDetailsFromJSON, Fbpv1DeliveryDetailsToJSON, } from './Fbpv1DeliveryDetails'; +import { V1CancellationStateFromJSON, V1CancellationStateToJSON, } from './V1CancellationState'; +import { V1OrderStatusEnumFromJSON, V1OrderStatusEnumToJSON, } from './V1OrderStatusEnum'; +import { V1OrderAttentionTypeEnumFromJSON, V1OrderAttentionTypeEnumToJSON, } from './V1OrderAttentionTypeEnum'; +import { ItemBundleSummaryFromJSON, ItemBundleSummaryToJSON, } from './ItemBundleSummary'; +/** + * Check if a given object implements the V1FbpOrderListResponseItem interface. + */ +export function instanceOfV1FbpOrderListResponseItem(value) { + return true; +} +export function V1FbpOrderListResponseItemFromJSON(json) { + return V1FbpOrderListResponseItemFromJSONTyped(json, false); +} +export function V1FbpOrderListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attention_reasons': json['attention_reasons'] == null ? undefined : (json['attention_reasons'].map(V1OrderAttentionTypeEnumFromJSON)), + 'bundle_summary': json['bundle_summary'] == null ? undefined : ItemBundleSummaryFromJSON(json['bundle_summary']), + 'can_be_cancelled': json['can_be_cancelled'] == null ? undefined : json['can_be_cancelled'], + 'cancellation_state': json['cancellation_state'] == null ? undefined : V1CancellationStateFromJSON(json['cancellation_state']), + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'delivery_details': json['delivery_details'] == null ? undefined : Fbpv1DeliveryDetailsFromJSON(json['delivery_details']), + 'has_consignment_note': json['has_consignment_note'] == null ? undefined : json['has_consignment_note'], + 'has_label': json['has_label'] == null ? undefined : json['has_label'], + 'id': json['id'] == null ? undefined : json['id'], + 'locked': json['locked'] == null ? undefined : json['locked'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], + 'status': json['status'] == null ? undefined : V1OrderStatusEnumFromJSON(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V1FbpOrderListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'attention_reasons': value['attention_reasons'] == null ? undefined : (value['attention_reasons'].map(V1OrderAttentionTypeEnumToJSON)), + 'bundle_summary': ItemBundleSummaryToJSON(value['bundle_summary']), + 'can_be_cancelled': value['can_be_cancelled'], + 'cancellation_state': V1CancellationStateToJSON(value['cancellation_state']), + 'created_date': value['created_date'], + 'delivery_details': Fbpv1DeliveryDetailsToJSON(value['delivery_details']), + 'has_consignment_note': value['has_consignment_note'], + 'has_label': value['has_label'], + 'id': value['id'], + 'locked': value['locked'], + 'order_number': value['order_number'], + 'package_units_count': value['package_units_count'], + 'receive_date': value['receive_date'], + 'status': V1OrderStatusEnumToJSON(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderPickUpCancelRequest.d.ts b/dist/esm/models/V1FbpOrderPickUpCancelRequest.d.ts new file mode 100644 index 0000000..218b4e9 --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderPickUpCancelRequest + */ +export interface V1FbpOrderPickUpCancelRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderPickUpCancelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderPickUpCancelRequest interface. + */ +export declare function instanceOfV1FbpOrderPickUpCancelRequest(value: object): value is V1FbpOrderPickUpCancelRequest; +export declare function V1FbpOrderPickUpCancelRequestFromJSON(json: any): V1FbpOrderPickUpCancelRequest; +export declare function V1FbpOrderPickUpCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpCancelRequest; +export declare function V1FbpOrderPickUpCancelRequestToJSON(value?: V1FbpOrderPickUpCancelRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderPickUpCancelRequest.js b/dist/esm/models/V1FbpOrderPickUpCancelRequest.js new file mode 100644 index 0000000..850b240 --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpCancelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderPickUpCancelRequest interface. + */ +export function instanceOfV1FbpOrderPickUpCancelRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpOrderPickUpCancelRequestFromJSON(json) { + return V1FbpOrderPickUpCancelRequestFromJSONTyped(json, false); +} +export function V1FbpOrderPickUpCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +export function V1FbpOrderPickUpCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderPickUpCancelResponse.d.ts b/dist/esm/models/V1FbpOrderPickUpCancelResponse.d.ts new file mode 100644 index 0000000..f32d2b1 --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpCancelResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderPickUpCancelResponse + */ +export interface V1FbpOrderPickUpCancelResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderPickUpCancelResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderPickUpCancelResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderPickUpCancelResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderPickUpCancelResponse interface. + */ +export declare function instanceOfV1FbpOrderPickUpCancelResponse(value: object): value is V1FbpOrderPickUpCancelResponse; +export declare function V1FbpOrderPickUpCancelResponseFromJSON(json: any): V1FbpOrderPickUpCancelResponse; +export declare function V1FbpOrderPickUpCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpCancelResponse; +export declare function V1FbpOrderPickUpCancelResponseToJSON(value?: V1FbpOrderPickUpCancelResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderPickUpCancelResponse.js b/dist/esm/models/V1FbpOrderPickUpCancelResponse.js new file mode 100644 index 0000000..4908e41 --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpCancelResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderValidationErrorFromJSON, V1OrderValidationErrorToJSON, } from './V1OrderValidationError'; +/** + * Check if a given object implements the V1FbpOrderPickUpCancelResponse interface. + */ +export function instanceOfV1FbpOrderPickUpCancelResponse(value) { + return true; +} +export function V1FbpOrderPickUpCancelResponseFromJSON(json) { + return V1FbpOrderPickUpCancelResponseFromJSONTyped(json, false); +} +export function V1FbpOrderPickUpCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1OrderValidationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpOrderPickUpCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1OrderValidationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpOrderPickUpDlvEditRequest.d.ts b/dist/esm/models/V1FbpOrderPickUpDlvEditRequest.d.ts new file mode 100644 index 0000000..16215ae --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpDlvEditRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderPickUpDlvEditRequestPickUpDetails } from './V1FbpOrderPickUpDlvEditRequestPickUpDetails'; +/** + * + * @export + * @interface V1FbpOrderPickUpDlvEditRequest + */ +export interface V1FbpOrderPickUpDlvEditRequest { + /** + * + * @type {V1FbpOrderPickUpDlvEditRequestPickUpDetails} + * @memberof V1FbpOrderPickUpDlvEditRequest + */ + pickup_details: V1FbpOrderPickUpDlvEditRequestPickUpDetails; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderPickUpDlvEditRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderPickUpDlvEditRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditRequest interface. + */ +export declare function instanceOfV1FbpOrderPickUpDlvEditRequest(value: object): value is V1FbpOrderPickUpDlvEditRequest; +export declare function V1FbpOrderPickUpDlvEditRequestFromJSON(json: any): V1FbpOrderPickUpDlvEditRequest; +export declare function V1FbpOrderPickUpDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpDlvEditRequest; +export declare function V1FbpOrderPickUpDlvEditRequestToJSON(value?: V1FbpOrderPickUpDlvEditRequest | null): any; diff --git a/dist/esm/models/V1FbpOrderPickUpDlvEditRequest.js b/dist/esm/models/V1FbpOrderPickUpDlvEditRequest.js new file mode 100644 index 0000000..0c79c21 --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpDlvEditRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON, V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON, } from './V1FbpOrderPickUpDlvEditRequestPickUpDetails'; +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditRequest interface. + */ +export function instanceOfV1FbpOrderPickUpDlvEditRequest(value) { + if (!('pickup_details' in value) || value['pickup_details'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1FbpOrderPickUpDlvEditRequestFromJSON(json) { + return V1FbpOrderPickUpDlvEditRequestFromJSONTyped(json, false); +} +export function V1FbpOrderPickUpDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'pickup_details': V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON(json['pickup_details']), + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +export function V1FbpOrderPickUpDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'pickup_details': V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON(value['pickup_details']), + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.d.ts b/dist/esm/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.d.ts new file mode 100644 index 0000000..8ea5490 --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали отправителя. + * @export + * @interface V1FbpOrderPickUpDlvEditRequestPickUpDetails + */ +export interface V1FbpOrderPickUpDlvEditRequestPickUpDetails { + /** + * ФИО отправителя. + * @type {string} + * @memberof V1FbpOrderPickUpDlvEditRequestPickUpDetails + */ + sender_name: string; + /** + * Номер телефона отправителя. + * @type {string} + * @memberof V1FbpOrderPickUpDlvEditRequestPickUpDetails + */ + sender_phone: string; +} +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditRequestPickUpDetails interface. + */ +export declare function instanceOfV1FbpOrderPickUpDlvEditRequestPickUpDetails(value: object): value is V1FbpOrderPickUpDlvEditRequestPickUpDetails; +export declare function V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON(json: any): V1FbpOrderPickUpDlvEditRequestPickUpDetails; +export declare function V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpDlvEditRequestPickUpDetails; +export declare function V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON(value?: V1FbpOrderPickUpDlvEditRequestPickUpDetails | null): any; diff --git a/dist/esm/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.js b/dist/esm/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.js new file mode 100644 index 0000000..92c5e5d --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditRequestPickUpDetails interface. + */ +export function instanceOfV1FbpOrderPickUpDlvEditRequestPickUpDetails(value) { + if (!('sender_name' in value) || value['sender_name'] === undefined) + return false; + if (!('sender_phone' in value) || value['sender_phone'] === undefined) + return false; + return true; +} +export function V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON(json) { + return V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSONTyped(json, false); +} +export function V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sender_name': json['sender_name'], + 'sender_phone': json['sender_phone'], + }; +} +export function V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'sender_name': value['sender_name'], + 'sender_phone': value['sender_phone'], + }; +} diff --git a/dist/esm/models/V1FbpOrderPickUpDlvEditResponse.d.ts b/dist/esm/models/V1FbpOrderPickUpDlvEditResponse.d.ts new file mode 100644 index 0000000..34c6e94 --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpDlvEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderPickUpDlvEditResponse + */ +export interface V1FbpOrderPickUpDlvEditResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderPickUpDlvEditResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderPickUpDlvEditResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderPickUpDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditResponse interface. + */ +export declare function instanceOfV1FbpOrderPickUpDlvEditResponse(value: object): value is V1FbpOrderPickUpDlvEditResponse; +export declare function V1FbpOrderPickUpDlvEditResponseFromJSON(json: any): V1FbpOrderPickUpDlvEditResponse; +export declare function V1FbpOrderPickUpDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpDlvEditResponse; +export declare function V1FbpOrderPickUpDlvEditResponseToJSON(value?: V1FbpOrderPickUpDlvEditResponse | null): any; diff --git a/dist/esm/models/V1FbpOrderPickUpDlvEditResponse.js b/dist/esm/models/V1FbpOrderPickUpDlvEditResponse.js new file mode 100644 index 0000000..4880432 --- /dev/null +++ b/dist/esm/models/V1FbpOrderPickUpDlvEditResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderValidationErrorFromJSON, V1OrderValidationErrorToJSON, } from './V1OrderValidationError'; +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditResponse interface. + */ +export function instanceOfV1FbpOrderPickUpDlvEditResponse(value) { + return true; +} +export function V1FbpOrderPickUpDlvEditResponseFromJSON(json) { + return V1FbpOrderPickUpDlvEditResponseFromJSONTyped(json, false); +} +export function V1FbpOrderPickUpDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : V1OrderValidationErrorFromJSON(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +export function V1FbpOrderPickUpDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': V1OrderValidationErrorToJSON(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/esm/models/V1FbpWarehouseListResponse.d.ts b/dist/esm/models/V1FbpWarehouseListResponse.d.ts new file mode 100644 index 0000000..078880a --- /dev/null +++ b/dist/esm/models/V1FbpWarehouseListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpWarehouseListResponseWarehouse } from './FbpWarehouseListResponseWarehouse'; +/** + * + * @export + * @interface V1FbpWarehouseListResponse + */ +export interface V1FbpWarehouseListResponse { + /** + * Список складов. + * @type {Array} + * @memberof V1FbpWarehouseListResponse + */ + warehouses?: Array; +} +/** + * Check if a given object implements the V1FbpWarehouseListResponse interface. + */ +export declare function instanceOfV1FbpWarehouseListResponse(value: object): value is V1FbpWarehouseListResponse; +export declare function V1FbpWarehouseListResponseFromJSON(json: any): V1FbpWarehouseListResponse; +export declare function V1FbpWarehouseListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpWarehouseListResponse; +export declare function V1FbpWarehouseListResponseToJSON(value?: V1FbpWarehouseListResponse | null): any; diff --git a/dist/esm/models/V1FbpWarehouseListResponse.js b/dist/esm/models/V1FbpWarehouseListResponse.js new file mode 100644 index 0000000..2fa3f29 --- /dev/null +++ b/dist/esm/models/V1FbpWarehouseListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbpWarehouseListResponseWarehouseFromJSON, FbpWarehouseListResponseWarehouseToJSON, } from './FbpWarehouseListResponseWarehouse'; +/** + * Check if a given object implements the V1FbpWarehouseListResponse interface. + */ +export function instanceOfV1FbpWarehouseListResponse(value) { + return true; +} +export function V1FbpWarehouseListResponseFromJSON(json) { + return V1FbpWarehouseListResponseFromJSONTyped(json, false); +} +export function V1FbpWarehouseListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(FbpWarehouseListResponseWarehouseFromJSON)), + }; +} +export function V1FbpWarehouseListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(FbpWarehouseListResponseWarehouseToJSON)), + }; +} diff --git a/dist/esm/models/V1FbsPostingProductExemplarUpdateRequest.d.ts b/dist/esm/models/V1FbsPostingProductExemplarUpdateRequest.d.ts new file mode 100644 index 0000000..49f5ae3 --- /dev/null +++ b/dist/esm/models/V1FbsPostingProductExemplarUpdateRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbsPostingProductExemplarUpdateRequest + */ +export interface V1FbsPostingProductExemplarUpdateRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1FbsPostingProductExemplarUpdateRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1FbsPostingProductExemplarUpdateRequest interface. + */ +export declare function instanceOfV1FbsPostingProductExemplarUpdateRequest(value: object): value is V1FbsPostingProductExemplarUpdateRequest; +export declare function V1FbsPostingProductExemplarUpdateRequestFromJSON(json: any): V1FbsPostingProductExemplarUpdateRequest; +export declare function V1FbsPostingProductExemplarUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbsPostingProductExemplarUpdateRequest; +export declare function V1FbsPostingProductExemplarUpdateRequestToJSON(value?: V1FbsPostingProductExemplarUpdateRequest | null): any; diff --git a/dist/esm/models/V1FbsPostingProductExemplarUpdateRequest.js b/dist/esm/models/V1FbsPostingProductExemplarUpdateRequest.js new file mode 100644 index 0000000..9ca246a --- /dev/null +++ b/dist/esm/models/V1FbsPostingProductExemplarUpdateRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1FbsPostingProductExemplarUpdateRequest interface. + */ +export function instanceOfV1FbsPostingProductExemplarUpdateRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1FbsPostingProductExemplarUpdateRequestFromJSON(json) { + return V1FbsPostingProductExemplarUpdateRequestFromJSONTyped(json, false); +} +export function V1FbsPostingProductExemplarUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1FbsPostingProductExemplarUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1GenerateBarcodeRequest.d.ts b/dist/esm/models/V1GenerateBarcodeRequest.d.ts new file mode 100644 index 0000000..8cc9396 --- /dev/null +++ b/dist/esm/models/V1GenerateBarcodeRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GenerateBarcodeRequest + */ +export interface V1GenerateBarcodeRequest { + /** + * Идентификаторы товаров, для которых нужно создать штрихкод. + * @type {Array} + * @memberof V1GenerateBarcodeRequest + */ + product_ids: Array; +} +/** + * Check if a given object implements the V1GenerateBarcodeRequest interface. + */ +export declare function instanceOfV1GenerateBarcodeRequest(value: object): value is V1GenerateBarcodeRequest; +export declare function V1GenerateBarcodeRequestFromJSON(json: any): V1GenerateBarcodeRequest; +export declare function V1GenerateBarcodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GenerateBarcodeRequest; +export declare function V1GenerateBarcodeRequestToJSON(value?: V1GenerateBarcodeRequest | null): any; diff --git a/dist/esm/models/V1GenerateBarcodeRequest.js b/dist/esm/models/V1GenerateBarcodeRequest.js new file mode 100644 index 0000000..f1c6dfa --- /dev/null +++ b/dist/esm/models/V1GenerateBarcodeRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GenerateBarcodeRequest interface. + */ +export function instanceOfV1GenerateBarcodeRequest(value) { + if (!('product_ids' in value) || value['product_ids'] === undefined) + return false; + return true; +} +export function V1GenerateBarcodeRequestFromJSON(json) { + return V1GenerateBarcodeRequestFromJSONTyped(json, false); +} +export function V1GenerateBarcodeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'], + }; +} +export function V1GenerateBarcodeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/esm/models/V1GenerateBarcodeResponse.d.ts b/dist/esm/models/V1GenerateBarcodeResponse.d.ts new file mode 100644 index 0000000..244352b --- /dev/null +++ b/dist/esm/models/V1GenerateBarcodeResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GenerateBarcodeResult } from './V1GenerateBarcodeResult'; +/** + * + * @export + * @interface V1GenerateBarcodeResponse + */ +export interface V1GenerateBarcodeResponse { + /** + * Ошибки при создании штрихкода. + * @type {Array} + * @memberof V1GenerateBarcodeResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1GenerateBarcodeResponse interface. + */ +export declare function instanceOfV1GenerateBarcodeResponse(value: object): value is V1GenerateBarcodeResponse; +export declare function V1GenerateBarcodeResponseFromJSON(json: any): V1GenerateBarcodeResponse; +export declare function V1GenerateBarcodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GenerateBarcodeResponse; +export declare function V1GenerateBarcodeResponseToJSON(value?: V1GenerateBarcodeResponse | null): any; diff --git a/dist/esm/models/V1GenerateBarcodeResponse.js b/dist/esm/models/V1GenerateBarcodeResponse.js new file mode 100644 index 0000000..f798711 --- /dev/null +++ b/dist/esm/models/V1GenerateBarcodeResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GenerateBarcodeResultFromJSON, V1GenerateBarcodeResultToJSON, } from './V1GenerateBarcodeResult'; +/** + * Check if a given object implements the V1GenerateBarcodeResponse interface. + */ +export function instanceOfV1GenerateBarcodeResponse(value) { + return true; +} +export function V1GenerateBarcodeResponseFromJSON(json) { + return V1GenerateBarcodeResponseFromJSONTyped(json, false); +} +export function V1GenerateBarcodeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1GenerateBarcodeResultFromJSON)), + }; +} +export function V1GenerateBarcodeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1GenerateBarcodeResultToJSON)), + }; +} diff --git a/dist/esm/models/V1GenerateBarcodeResult.d.ts b/dist/esm/models/V1GenerateBarcodeResult.d.ts new file mode 100644 index 0000000..e8bb4ed --- /dev/null +++ b/dist/esm/models/V1GenerateBarcodeResult.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GenerateBarcodeResult + */ +export interface V1GenerateBarcodeResult { + /** + * Код ошибки. + * @type {string} + * @memberof V1GenerateBarcodeResult + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1GenerateBarcodeResult + */ + error?: string; + /** + * Штрихкод, при создании которого произошла ошибка. + * @type {string} + * @memberof V1GenerateBarcodeResult + */ + barcode?: string; + /** + * Идентификатор товара, для которого не удалось создать штрихкод. + * @type {number} + * @memberof V1GenerateBarcodeResult + */ + product_id?: number; +} +/** + * Check if a given object implements the V1GenerateBarcodeResult interface. + */ +export declare function instanceOfV1GenerateBarcodeResult(value: object): value is V1GenerateBarcodeResult; +export declare function V1GenerateBarcodeResultFromJSON(json: any): V1GenerateBarcodeResult; +export declare function V1GenerateBarcodeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GenerateBarcodeResult; +export declare function V1GenerateBarcodeResultToJSON(value?: V1GenerateBarcodeResult | null): any; diff --git a/dist/esm/models/V1GenerateBarcodeResult.js b/dist/esm/models/V1GenerateBarcodeResult.js new file mode 100644 index 0000000..8d0a845 --- /dev/null +++ b/dist/esm/models/V1GenerateBarcodeResult.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GenerateBarcodeResult interface. + */ +export function instanceOfV1GenerateBarcodeResult(value) { + return true; +} +export function V1GenerateBarcodeResultFromJSON(json) { + return V1GenerateBarcodeResultFromJSONTyped(json, false); +} +export function V1GenerateBarcodeResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'error': json['error'] == null ? undefined : json['error'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +export function V1GenerateBarcodeResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'error': value['error'], + 'barcode': value['barcode'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V1GetAttributeValuesRequest.d.ts b/dist/esm/models/V1GetAttributeValuesRequest.d.ts new file mode 100644 index 0000000..9ccaa20 --- /dev/null +++ b/dist/esm/models/V1GetAttributeValuesRequest.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LanguageLanguage } from './LanguageLanguage'; +/** + * + * @export + * @interface V1GetAttributeValuesRequest + */ +export interface V1GetAttributeValuesRequest { + /** + * Идентификатор характеристики. Можно получить с помощью метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + attribute_id: number; + /** + * Идентификатор категории. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + description_category_id: number; + /** + * + * @type {LanguageLanguage} + * @memberof V1GetAttributeValuesRequest + */ + language?: LanguageLanguage; + /** + * Идентификатор справочника, с которого нужно начать ответ. Если `last_value_id` — 10, то в ответе будут справочники, начиная с одиннадцатого. + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + last_value_id?: number; + /** + * Количество значений в ответе: + * - максимум — 2000, + * - минимум — 1. + * + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + limit: number; + /** + * Идентификатор типа товара. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + type_id: number; +} +/** + * Check if a given object implements the V1GetAttributeValuesRequest interface. + */ +export declare function instanceOfV1GetAttributeValuesRequest(value: object): value is V1GetAttributeValuesRequest; +export declare function V1GetAttributeValuesRequestFromJSON(json: any): V1GetAttributeValuesRequest; +export declare function V1GetAttributeValuesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributeValuesRequest; +export declare function V1GetAttributeValuesRequestToJSON(value?: V1GetAttributeValuesRequest | null): any; diff --git a/dist/esm/models/V1GetAttributeValuesRequest.js b/dist/esm/models/V1GetAttributeValuesRequest.js new file mode 100644 index 0000000..567d904 --- /dev/null +++ b/dist/esm/models/V1GetAttributeValuesRequest.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LanguageLanguageFromJSON, LanguageLanguageToJSON, } from './LanguageLanguage'; +/** + * Check if a given object implements the V1GetAttributeValuesRequest interface. + */ +export function instanceOfV1GetAttributeValuesRequest(value) { + if (!('attribute_id' in value) || value['attribute_id'] === undefined) + return false; + if (!('description_category_id' in value) || value['description_category_id'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('type_id' in value) || value['type_id'] === undefined) + return false; + return true; +} +export function V1GetAttributeValuesRequestFromJSON(json) { + return V1GetAttributeValuesRequestFromJSONTyped(json, false); +} +export function V1GetAttributeValuesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attribute_id': json['attribute_id'], + 'description_category_id': json['description_category_id'], + 'language': json['language'] == null ? undefined : LanguageLanguageFromJSON(json['language']), + 'last_value_id': json['last_value_id'] == null ? undefined : json['last_value_id'], + 'limit': json['limit'], + 'type_id': json['type_id'], + }; +} +export function V1GetAttributeValuesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'attribute_id': value['attribute_id'], + 'description_category_id': value['description_category_id'], + 'language': LanguageLanguageToJSON(value['language']), + 'last_value_id': value['last_value_id'], + 'limit': value['limit'], + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/V1GetAttributeValuesResponse.d.ts b/dist/esm/models/V1GetAttributeValuesResponse.d.ts new file mode 100644 index 0000000..f627f94 --- /dev/null +++ b/dist/esm/models/V1GetAttributeValuesResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetAttributeValuesResponseDictionaryValue } from './V1GetAttributeValuesResponseDictionaryValue'; +/** + * + * @export + * @interface V1GetAttributeValuesResponse + */ +export interface V1GetAttributeValuesResponse { + /** + * Признак, что в ответе вернулась только часть значений характеристики: + * - `true` — сделайте повторный запрос с новым параметром `last_value_id` для получения остальных значений; + * - `false` — ответ содержит все значения характеристики. + * + * @type {boolean} + * @memberof V1GetAttributeValuesResponse + */ + has_next?: boolean; + /** + * Значения характеристики. + * @type {Array} + * @memberof V1GetAttributeValuesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetAttributeValuesResponse interface. + */ +export declare function instanceOfV1GetAttributeValuesResponse(value: object): value is V1GetAttributeValuesResponse; +export declare function V1GetAttributeValuesResponseFromJSON(json: any): V1GetAttributeValuesResponse; +export declare function V1GetAttributeValuesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributeValuesResponse; +export declare function V1GetAttributeValuesResponseToJSON(value?: V1GetAttributeValuesResponse | null): any; diff --git a/dist/esm/models/V1GetAttributeValuesResponse.js b/dist/esm/models/V1GetAttributeValuesResponse.js new file mode 100644 index 0000000..0e8fff1 --- /dev/null +++ b/dist/esm/models/V1GetAttributeValuesResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetAttributeValuesResponseDictionaryValueFromJSON, V1GetAttributeValuesResponseDictionaryValueToJSON, } from './V1GetAttributeValuesResponseDictionaryValue'; +/** + * Check if a given object implements the V1GetAttributeValuesResponse interface. + */ +export function instanceOfV1GetAttributeValuesResponse(value) { + return true; +} +export function V1GetAttributeValuesResponseFromJSON(json) { + return V1GetAttributeValuesResponseFromJSONTyped(json, false); +} +export function V1GetAttributeValuesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetAttributeValuesResponseDictionaryValueFromJSON)), + }; +} +export function V1GetAttributeValuesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetAttributeValuesResponseDictionaryValueToJSON)), + }; +} diff --git a/dist/esm/models/V1GetAttributeValuesResponseDictionaryValue.d.ts b/dist/esm/models/V1GetAttributeValuesResponseDictionaryValue.d.ts new file mode 100644 index 0000000..fa252b7 --- /dev/null +++ b/dist/esm/models/V1GetAttributeValuesResponseDictionaryValue.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetAttributeValuesResponseDictionaryValue + */ +export interface V1GetAttributeValuesResponseDictionaryValue { + /** + * Идентификатор значения характеристики. + * @type {number} + * @memberof V1GetAttributeValuesResponseDictionaryValue + */ + id?: number; + /** + * Дополнительное описание. + * @type {string} + * @memberof V1GetAttributeValuesResponseDictionaryValue + */ + info?: string; + /** + * Ссылка на изображение. + * @type {string} + * @memberof V1GetAttributeValuesResponseDictionaryValue + */ + picture?: string; + /** + * Значение характеристики товара. + * @type {string} + * @memberof V1GetAttributeValuesResponseDictionaryValue + */ + value?: string; +} +/** + * Check if a given object implements the V1GetAttributeValuesResponseDictionaryValue interface. + */ +export declare function instanceOfV1GetAttributeValuesResponseDictionaryValue(value: object): value is V1GetAttributeValuesResponseDictionaryValue; +export declare function V1GetAttributeValuesResponseDictionaryValueFromJSON(json: any): V1GetAttributeValuesResponseDictionaryValue; +export declare function V1GetAttributeValuesResponseDictionaryValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributeValuesResponseDictionaryValue; +export declare function V1GetAttributeValuesResponseDictionaryValueToJSON(value?: V1GetAttributeValuesResponseDictionaryValue | null): any; diff --git a/dist/esm/models/V1GetAttributeValuesResponseDictionaryValue.js b/dist/esm/models/V1GetAttributeValuesResponseDictionaryValue.js new file mode 100644 index 0000000..a5fd502 --- /dev/null +++ b/dist/esm/models/V1GetAttributeValuesResponseDictionaryValue.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetAttributeValuesResponseDictionaryValue interface. + */ +export function instanceOfV1GetAttributeValuesResponseDictionaryValue(value) { + return true; +} +export function V1GetAttributeValuesResponseDictionaryValueFromJSON(json) { + return V1GetAttributeValuesResponseDictionaryValueFromJSONTyped(json, false); +} +export function V1GetAttributeValuesResponseDictionaryValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'info': json['info'] == null ? undefined : json['info'], + 'picture': json['picture'] == null ? undefined : json['picture'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetAttributeValuesResponseDictionaryValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'info': value['info'], + 'picture': value['picture'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetAttributesRequest.d.ts b/dist/esm/models/V1GetAttributesRequest.d.ts new file mode 100644 index 0000000..ea9814e --- /dev/null +++ b/dist/esm/models/V1GetAttributesRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LanguageLanguage } from './LanguageLanguage'; +/** + * + * @export + * @interface V1GetAttributesRequest + */ +export interface V1GetAttributesRequest { + /** + * Идентификатор категории. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1GetAttributesRequest + */ + description_category_id: number; + /** + * + * @type {LanguageLanguage} + * @memberof V1GetAttributesRequest + */ + language?: LanguageLanguage; + /** + * Идентификатор типа товара. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1GetAttributesRequest + */ + type_id: number; +} +/** + * Check if a given object implements the V1GetAttributesRequest interface. + */ +export declare function instanceOfV1GetAttributesRequest(value: object): value is V1GetAttributesRequest; +export declare function V1GetAttributesRequestFromJSON(json: any): V1GetAttributesRequest; +export declare function V1GetAttributesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributesRequest; +export declare function V1GetAttributesRequestToJSON(value?: V1GetAttributesRequest | null): any; diff --git a/dist/esm/models/V1GetAttributesRequest.js b/dist/esm/models/V1GetAttributesRequest.js new file mode 100644 index 0000000..efcadcb --- /dev/null +++ b/dist/esm/models/V1GetAttributesRequest.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LanguageLanguageFromJSON, LanguageLanguageToJSON, } from './LanguageLanguage'; +/** + * Check if a given object implements the V1GetAttributesRequest interface. + */ +export function instanceOfV1GetAttributesRequest(value) { + if (!('description_category_id' in value) || value['description_category_id'] === undefined) + return false; + if (!('type_id' in value) || value['type_id'] === undefined) + return false; + return true; +} +export function V1GetAttributesRequestFromJSON(json) { + return V1GetAttributesRequestFromJSONTyped(json, false); +} +export function V1GetAttributesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description_category_id': json['description_category_id'], + 'language': json['language'] == null ? undefined : LanguageLanguageFromJSON(json['language']), + 'type_id': json['type_id'], + }; +} +export function V1GetAttributesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'description_category_id': value['description_category_id'], + 'language': LanguageLanguageToJSON(value['language']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/esm/models/V1GetAttributesResponse.d.ts b/dist/esm/models/V1GetAttributesResponse.d.ts new file mode 100644 index 0000000..5ac575d --- /dev/null +++ b/dist/esm/models/V1GetAttributesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetAttributesResponseAttribute } from './V1GetAttributesResponseAttribute'; +/** + * + * @export + * @interface V1GetAttributesResponse + */ +export interface V1GetAttributesResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof V1GetAttributesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetAttributesResponse interface. + */ +export declare function instanceOfV1GetAttributesResponse(value: object): value is V1GetAttributesResponse; +export declare function V1GetAttributesResponseFromJSON(json: any): V1GetAttributesResponse; +export declare function V1GetAttributesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributesResponse; +export declare function V1GetAttributesResponseToJSON(value?: V1GetAttributesResponse | null): any; diff --git a/dist/esm/models/V1GetAttributesResponse.js b/dist/esm/models/V1GetAttributesResponse.js new file mode 100644 index 0000000..5e69a04 --- /dev/null +++ b/dist/esm/models/V1GetAttributesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetAttributesResponseAttributeFromJSON, V1GetAttributesResponseAttributeToJSON, } from './V1GetAttributesResponseAttribute'; +/** + * Check if a given object implements the V1GetAttributesResponse interface. + */ +export function instanceOfV1GetAttributesResponse(value) { + return true; +} +export function V1GetAttributesResponseFromJSON(json) { + return V1GetAttributesResponseFromJSONTyped(json, false); +} +export function V1GetAttributesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetAttributesResponseAttributeFromJSON)), + }; +} +export function V1GetAttributesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetAttributesResponseAttributeToJSON)), + }; +} diff --git a/dist/esm/models/V1GetAttributesResponseAttribute.d.ts b/dist/esm/models/V1GetAttributesResponseAttribute.d.ts new file mode 100644 index 0000000..b89663d --- /dev/null +++ b/dist/esm/models/V1GetAttributesResponseAttribute.d.ts @@ -0,0 +1,127 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetAttributesResponseAttribute + */ +export interface V1GetAttributesResponseAttribute { + /** + * Признак, что значения словарного атрибута зависят от категории: + * - `true` — у атрибута разные значения для каждой категории. + * - `false` — у атрибута одинаковые значения для всех категорий. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + category_dependent?: boolean; + /** + * Описание характеристики. + * @type {string} + * @memberof V1GetAttributesResponseAttribute + */ + description?: string; + /** + * Идентификатор справочника. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + dictionary_id?: number; + /** + * Идентификатор группы характеристик. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + group_id?: number; + /** + * Название группы характеристик. + * @type {string} + * @memberof V1GetAttributesResponseAttribute + */ + group_name?: string; + /** + * Идентификатор характеристики. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + id?: number; + /** + * Признак аспектного атрибута. Аспектный атрибут — характеристика, по которой отличаются товары одной модели. + * + * Например, у одежды и обуви одной модели могут быть разные расцветки и размеры. То есть цвет и размер — это аспектные атрибуты. + * + * Значения поля: + * - `true` — атрибут аспектный и его нельзя изменить после поставки товара на склад или продажи со своего склада. + * - `false` — атрибут не аспектный, можно изменить в любое время. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + is_aspect?: boolean; + /** + * - `true`, если характеристика — набор значений. + * - `false`, если характеристика — одно значение. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + is_collection?: boolean; + /** + * Признак обязательной характеристики: + * - `true` — обязательная характеристика, + * - `false` — характеристику можно не указывать. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + is_required?: boolean; + /** + * Название. + * @type {string} + * @memberof V1GetAttributesResponseAttribute + */ + name?: string; + /** + * Тип характеристики. + * @type {string} + * @memberof V1GetAttributesResponseAttribute + */ + type?: string; + /** + * Идентификатор комплексного атрибута. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + attribute_complex_id?: number; + /** + * Максимальное количество значений для атрибута. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + max_value_count?: number; + /** + * Признак, что комплексная характеристика — набор значений: + * - `true`, если комплексная характеристика — набор значений, + * - `false`, если комплексная характеристика — одно значение. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + complex_is_collection?: boolean; +} +/** + * Check if a given object implements the V1GetAttributesResponseAttribute interface. + */ +export declare function instanceOfV1GetAttributesResponseAttribute(value: object): value is V1GetAttributesResponseAttribute; +export declare function V1GetAttributesResponseAttributeFromJSON(json: any): V1GetAttributesResponseAttribute; +export declare function V1GetAttributesResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributesResponseAttribute; +export declare function V1GetAttributesResponseAttributeToJSON(value?: V1GetAttributesResponseAttribute | null): any; diff --git a/dist/esm/models/V1GetAttributesResponseAttribute.js b/dist/esm/models/V1GetAttributesResponseAttribute.js new file mode 100644 index 0000000..1067e04 --- /dev/null +++ b/dist/esm/models/V1GetAttributesResponseAttribute.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetAttributesResponseAttribute interface. + */ +export function instanceOfV1GetAttributesResponseAttribute(value) { + return true; +} +export function V1GetAttributesResponseAttributeFromJSON(json) { + return V1GetAttributesResponseAttributeFromJSONTyped(json, false); +} +export function V1GetAttributesResponseAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'category_dependent': json['category_dependent'] == null ? undefined : json['category_dependent'], + 'description': json['description'] == null ? undefined : json['description'], + 'dictionary_id': json['dictionary_id'] == null ? undefined : json['dictionary_id'], + 'group_id': json['group_id'] == null ? undefined : json['group_id'], + 'group_name': json['group_name'] == null ? undefined : json['group_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_aspect': json['is_aspect'] == null ? undefined : json['is_aspect'], + 'is_collection': json['is_collection'] == null ? undefined : json['is_collection'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + 'attribute_complex_id': json['attribute_complex_id'] == null ? undefined : json['attribute_complex_id'], + 'max_value_count': json['max_value_count'] == null ? undefined : json['max_value_count'], + 'complex_is_collection': json['complex_is_collection'] == null ? undefined : json['complex_is_collection'], + }; +} +export function V1GetAttributesResponseAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'category_dependent': value['category_dependent'], + 'description': value['description'], + 'dictionary_id': value['dictionary_id'], + 'group_id': value['group_id'], + 'group_name': value['group_name'], + 'id': value['id'], + 'is_aspect': value['is_aspect'], + 'is_collection': value['is_collection'], + 'is_required': value['is_required'], + 'name': value['name'], + 'type': value['type'], + 'attribute_complex_id': value['attribute_complex_id'], + 'max_value_count': value['max_value_count'], + 'complex_is_collection': value['complex_is_collection'], + }; +} diff --git a/dist/esm/models/V1GetCompensationReportRequest.d.ts b/dist/esm/models/V1GetCompensationReportRequest.d.ts new file mode 100644 index 0000000..73d3c64 --- /dev/null +++ b/dist/esm/models/V1GetCompensationReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetCompensationReportRequest + */ +export interface V1GetCompensationReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. + * @type {string} + * @memberof V1GetCompensationReportRequest + */ + date: string; + /** + * Язык отчёта: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1GetCompensationReportRequest + */ + language?: string; +} +/** + * Check if a given object implements the V1GetCompensationReportRequest interface. + */ +export declare function instanceOfV1GetCompensationReportRequest(value: object): value is V1GetCompensationReportRequest; +export declare function V1GetCompensationReportRequestFromJSON(json: any): V1GetCompensationReportRequest; +export declare function V1GetCompensationReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetCompensationReportRequest; +export declare function V1GetCompensationReportRequestToJSON(value?: V1GetCompensationReportRequest | null): any; diff --git a/dist/esm/models/V1GetCompensationReportRequest.js b/dist/esm/models/V1GetCompensationReportRequest.js new file mode 100644 index 0000000..b26b089 --- /dev/null +++ b/dist/esm/models/V1GetCompensationReportRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetCompensationReportRequest interface. + */ +export function instanceOfV1GetCompensationReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +export function V1GetCompensationReportRequestFromJSON(json) { + return V1GetCompensationReportRequestFromJSONTyped(json, false); +} +export function V1GetCompensationReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +export function V1GetCompensationReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'language': value['language'], + }; +} diff --git a/dist/esm/models/V1GetCompetitorsRequest.d.ts b/dist/esm/models/V1GetCompetitorsRequest.d.ts new file mode 100644 index 0000000..e8b584b --- /dev/null +++ b/dist/esm/models/V1GetCompetitorsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetCompetitorsRequest + */ +export interface V1GetCompetitorsRequest { + /** + * Страница списка, с которой нужно выгрузить конкурентов. Минимальное значение — `1`. + * @type {number} + * @memberof V1GetCompetitorsRequest + */ + page: number; + /** + * Максимальное количество конкурентов на странице. Допустимы значения от `1` до `50`. + * @type {number} + * @memberof V1GetCompetitorsRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetCompetitorsRequest interface. + */ +export declare function instanceOfV1GetCompetitorsRequest(value: object): value is V1GetCompetitorsRequest; +export declare function V1GetCompetitorsRequestFromJSON(json: any): V1GetCompetitorsRequest; +export declare function V1GetCompetitorsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetCompetitorsRequest; +export declare function V1GetCompetitorsRequestToJSON(value?: V1GetCompetitorsRequest | null): any; diff --git a/dist/esm/models/V1GetCompetitorsRequest.js b/dist/esm/models/V1GetCompetitorsRequest.js new file mode 100644 index 0000000..a6c91d5 --- /dev/null +++ b/dist/esm/models/V1GetCompetitorsRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetCompetitorsRequest interface. + */ +export function instanceOfV1GetCompetitorsRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1GetCompetitorsRequestFromJSON(json) { + return V1GetCompetitorsRequestFromJSONTyped(json, false); +} +export function V1GetCompetitorsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'limit': json['limit'], + }; +} +export function V1GetCompetitorsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1GetCompetitorsResponse.d.ts b/dist/esm/models/V1GetCompetitorsResponse.d.ts new file mode 100644 index 0000000..3a91921 --- /dev/null +++ b/dist/esm/models/V1GetCompetitorsResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetCompetitorsResponseCompetitorInfo } from './GetCompetitorsResponseCompetitorInfo'; +/** + * + * @export + * @interface V1GetCompetitorsResponse + */ +export interface V1GetCompetitorsResponse { + /** + * Список конкурентов. + * @type {Array} + * @memberof V1GetCompetitorsResponse + */ + competitor?: Array; + /** + * Общее количество конкурентов. + * @type {number} + * @memberof V1GetCompetitorsResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1GetCompetitorsResponse interface. + */ +export declare function instanceOfV1GetCompetitorsResponse(value: object): value is V1GetCompetitorsResponse; +export declare function V1GetCompetitorsResponseFromJSON(json: any): V1GetCompetitorsResponse; +export declare function V1GetCompetitorsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetCompetitorsResponse; +export declare function V1GetCompetitorsResponseToJSON(value?: V1GetCompetitorsResponse | null): any; diff --git a/dist/esm/models/V1GetCompetitorsResponse.js b/dist/esm/models/V1GetCompetitorsResponse.js new file mode 100644 index 0000000..dcebbef --- /dev/null +++ b/dist/esm/models/V1GetCompetitorsResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetCompetitorsResponseCompetitorInfoFromJSON, GetCompetitorsResponseCompetitorInfoToJSON, } from './GetCompetitorsResponseCompetitorInfo'; +/** + * Check if a given object implements the V1GetCompetitorsResponse interface. + */ +export function instanceOfV1GetCompetitorsResponse(value) { + return true; +} +export function V1GetCompetitorsResponseFromJSON(json) { + return V1GetCompetitorsResponseFromJSONTyped(json, false); +} +export function V1GetCompetitorsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'competitor': json['competitor'] == null ? undefined : (json['competitor'].map(GetCompetitorsResponseCompetitorInfoFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V1GetCompetitorsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'competitor': value['competitor'] == null ? undefined : (value['competitor'].map(GetCompetitorsResponseCompetitorInfoToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V1GetDecompensationReportRequest.d.ts b/dist/esm/models/V1GetDecompensationReportRequest.d.ts new file mode 100644 index 0000000..5d124e2 --- /dev/null +++ b/dist/esm/models/V1GetDecompensationReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetDecompensationReportRequest + */ +export interface V1GetDecompensationReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. + * @type {string} + * @memberof V1GetDecompensationReportRequest + */ + date: string; + /** + * Язык отчёта: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1GetDecompensationReportRequest + */ + language?: string; +} +/** + * Check if a given object implements the V1GetDecompensationReportRequest interface. + */ +export declare function instanceOfV1GetDecompensationReportRequest(value: object): value is V1GetDecompensationReportRequest; +export declare function V1GetDecompensationReportRequestFromJSON(json: any): V1GetDecompensationReportRequest; +export declare function V1GetDecompensationReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDecompensationReportRequest; +export declare function V1GetDecompensationReportRequestToJSON(value?: V1GetDecompensationReportRequest | null): any; diff --git a/dist/esm/models/V1GetDecompensationReportRequest.js b/dist/esm/models/V1GetDecompensationReportRequest.js new file mode 100644 index 0000000..6898550 --- /dev/null +++ b/dist/esm/models/V1GetDecompensationReportRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetDecompensationReportRequest interface. + */ +export function instanceOfV1GetDecompensationReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +export function V1GetDecompensationReportRequestFromJSON(json) { + return V1GetDecompensationReportRequestFromJSONTyped(json, false); +} +export function V1GetDecompensationReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +export function V1GetDecompensationReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'language': value['language'], + }; +} diff --git a/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Request.d.ts b/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Request.d.ts new file mode 100644 index 0000000..3d87eac --- /dev/null +++ b/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetDeliveryMethodReturnSettingsV1Request + */ +export interface V1GetDeliveryMethodReturnSettingsV1Request { + /** + * Идентификатор способа доставки. Получите значение параметра методом [/v2/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodListV2). + * @type {number} + * @memberof V1GetDeliveryMethodReturnSettingsV1Request + */ + delivery_method_id: number; +} +/** + * Check if a given object implements the V1GetDeliveryMethodReturnSettingsV1Request interface. + */ +export declare function instanceOfV1GetDeliveryMethodReturnSettingsV1Request(value: object): value is V1GetDeliveryMethodReturnSettingsV1Request; +export declare function V1GetDeliveryMethodReturnSettingsV1RequestFromJSON(json: any): V1GetDeliveryMethodReturnSettingsV1Request; +export declare function V1GetDeliveryMethodReturnSettingsV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDeliveryMethodReturnSettingsV1Request; +export declare function V1GetDeliveryMethodReturnSettingsV1RequestToJSON(value?: V1GetDeliveryMethodReturnSettingsV1Request | null): any; diff --git a/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Request.js b/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Request.js new file mode 100644 index 0000000..82823e7 --- /dev/null +++ b/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Request.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetDeliveryMethodReturnSettingsV1Request interface. + */ +export function instanceOfV1GetDeliveryMethodReturnSettingsV1Request(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + return true; +} +export function V1GetDeliveryMethodReturnSettingsV1RequestFromJSON(json) { + return V1GetDeliveryMethodReturnSettingsV1RequestFromJSONTyped(json, false); +} +export function V1GetDeliveryMethodReturnSettingsV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + }; +} +export function V1GetDeliveryMethodReturnSettingsV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Response.d.ts b/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Response.d.ts new file mode 100644 index 0000000..5a0d736 --- /dev/null +++ b/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetDeliveryMethodReturnSettingsV1ResponseReturnSetting } from './GetDeliveryMethodReturnSettingsV1ResponseReturnSetting'; +/** + * + * @export + * @interface V1GetDeliveryMethodReturnSettingsV1Response + */ +export interface V1GetDeliveryMethodReturnSettingsV1Response { + /** + * + * @type {GetDeliveryMethodReturnSettingsV1ResponseReturnSetting} + * @memberof V1GetDeliveryMethodReturnSettingsV1Response + */ + settings?: GetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +} +/** + * Check if a given object implements the V1GetDeliveryMethodReturnSettingsV1Response interface. + */ +export declare function instanceOfV1GetDeliveryMethodReturnSettingsV1Response(value: object): value is V1GetDeliveryMethodReturnSettingsV1Response; +export declare function V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON(json: any): V1GetDeliveryMethodReturnSettingsV1Response; +export declare function V1GetDeliveryMethodReturnSettingsV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDeliveryMethodReturnSettingsV1Response; +export declare function V1GetDeliveryMethodReturnSettingsV1ResponseToJSON(value?: V1GetDeliveryMethodReturnSettingsV1Response | null): any; diff --git a/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Response.js b/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Response.js new file mode 100644 index 0000000..6420d6b --- /dev/null +++ b/dist/esm/models/V1GetDeliveryMethodReturnSettingsV1Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON, GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON, } from './GetDeliveryMethodReturnSettingsV1ResponseReturnSetting'; +/** + * Check if a given object implements the V1GetDeliveryMethodReturnSettingsV1Response interface. + */ +export function instanceOfV1GetDeliveryMethodReturnSettingsV1Response(value) { + return true; +} +export function V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON(json) { + return V1GetDeliveryMethodReturnSettingsV1ResponseFromJSONTyped(json, false); +} +export function V1GetDeliveryMethodReturnSettingsV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'settings': json['settings'] == null ? undefined : GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON(json['settings']), + }; +} +export function V1GetDeliveryMethodReturnSettingsV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'settings': GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON(value['settings']), + }; +} diff --git a/dist/esm/models/V1GetDiscountTaskListRequest.d.ts b/dist/esm/models/V1GetDiscountTaskListRequest.d.ts new file mode 100644 index 0000000..fbb32ad --- /dev/null +++ b/dist/esm/models/V1GetDiscountTaskListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DiscountTaskStatus } from './V1DiscountTaskStatus'; +/** + * + * @export + * @interface V1GetDiscountTaskListRequest + */ +export interface V1GetDiscountTaskListRequest { + /** + * + * @type {V1DiscountTaskStatus} + * @memberof V1GetDiscountTaskListRequest + */ + status: V1DiscountTaskStatus; + /** + * Страница, с которой нужно выгрузить список заявок на скидку. + * @type {number} + * @memberof V1GetDiscountTaskListRequest + */ + page: number; + /** + * Максимальное количество заявок на странице. + * @type {number} + * @memberof V1GetDiscountTaskListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetDiscountTaskListRequest interface. + */ +export declare function instanceOfV1GetDiscountTaskListRequest(value: object): value is V1GetDiscountTaskListRequest; +export declare function V1GetDiscountTaskListRequestFromJSON(json: any): V1GetDiscountTaskListRequest; +export declare function V1GetDiscountTaskListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDiscountTaskListRequest; +export declare function V1GetDiscountTaskListRequestToJSON(value?: V1GetDiscountTaskListRequest | null): any; diff --git a/dist/esm/models/V1GetDiscountTaskListRequest.js b/dist/esm/models/V1GetDiscountTaskListRequest.js new file mode 100644 index 0000000..d6017f3 --- /dev/null +++ b/dist/esm/models/V1GetDiscountTaskListRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DiscountTaskStatusFromJSON, V1DiscountTaskStatusToJSON, } from './V1DiscountTaskStatus'; +/** + * Check if a given object implements the V1GetDiscountTaskListRequest interface. + */ +export function instanceOfV1GetDiscountTaskListRequest(value) { + if (!('status' in value) || value['status'] === undefined) + return false; + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1GetDiscountTaskListRequestFromJSON(json) { + return V1GetDiscountTaskListRequestFromJSONTyped(json, false); +} +export function V1GetDiscountTaskListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': V1DiscountTaskStatusFromJSON(json['status']), + 'page': json['page'], + 'limit': json['limit'], + }; +} +export function V1GetDiscountTaskListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': V1DiscountTaskStatusToJSON(value['status']), + 'page': value['page'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1GetDiscountTaskListResponse.d.ts b/dist/esm/models/V1GetDiscountTaskListResponse.d.ts new file mode 100644 index 0000000..9b4379e --- /dev/null +++ b/dist/esm/models/V1GetDiscountTaskListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetDiscountTaskListResponseTask } from './V1GetDiscountTaskListResponseTask'; +/** + * + * @export + * @interface V1GetDiscountTaskListResponse + */ +export interface V1GetDiscountTaskListResponse { + /** + * Список заявок. + * @type {Array} + * @memberof V1GetDiscountTaskListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetDiscountTaskListResponse interface. + */ +export declare function instanceOfV1GetDiscountTaskListResponse(value: object): value is V1GetDiscountTaskListResponse; +export declare function V1GetDiscountTaskListResponseFromJSON(json: any): V1GetDiscountTaskListResponse; +export declare function V1GetDiscountTaskListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDiscountTaskListResponse; +export declare function V1GetDiscountTaskListResponseToJSON(value?: V1GetDiscountTaskListResponse | null): any; diff --git a/dist/esm/models/V1GetDiscountTaskListResponse.js b/dist/esm/models/V1GetDiscountTaskListResponse.js new file mode 100644 index 0000000..75c8540 --- /dev/null +++ b/dist/esm/models/V1GetDiscountTaskListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetDiscountTaskListResponseTaskFromJSON, V1GetDiscountTaskListResponseTaskToJSON, } from './V1GetDiscountTaskListResponseTask'; +/** + * Check if a given object implements the V1GetDiscountTaskListResponse interface. + */ +export function instanceOfV1GetDiscountTaskListResponse(value) { + return true; +} +export function V1GetDiscountTaskListResponseFromJSON(json) { + return V1GetDiscountTaskListResponseFromJSONTyped(json, false); +} +export function V1GetDiscountTaskListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetDiscountTaskListResponseTaskFromJSON)), + }; +} +export function V1GetDiscountTaskListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetDiscountTaskListResponseTaskToJSON)), + }; +} diff --git a/dist/esm/models/V1GetDiscountTaskListResponseTask.d.ts b/dist/esm/models/V1GetDiscountTaskListResponseTask.d.ts new file mode 100644 index 0000000..465f4b3 --- /dev/null +++ b/dist/esm/models/V1GetDiscountTaskListResponseTask.d.ts @@ -0,0 +1,236 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetDiscountTaskListResponseTask + */ +export interface V1GetDiscountTaskListResponseTask { + /** + * Идентификатор заявки. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + id?: number; + /** + * Дата создания заявки. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + created_at?: string; + /** + * Время окончания действия заявки. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + end_at?: string; + /** + * Время для изменения решения. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + edited_till?: string; + /** + * Статус заявки. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + status?: string; + /** + * Имя покупателя. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + customer_name?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + sku?: number; + /** + * Комментарий покупателя к заявке. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + user_comment?: string; + /** + * Комментарий продавца к заявке. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + seller_comment?: string; + /** + * Цена по заявке. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + requested_price?: number; + /** + * Одобренная цена. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_price?: number; + /** + * Цена товара до всех скидок. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + original_price?: number; + /** + * Скидка в рублях. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + discount?: number; + /** + * Скидка в процентах. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + discount_percent?: number; + /** + * Базовая цена, по которой товар продаётся на Ozon, если не участвует в акции. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + base_price?: number; + /** + * Минимальное значение цены после автоприменения скидок и акций. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + min_auto_price?: number; + /** + * Идентификатор предыдущей заявки от покупателя по этому товару. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + prev_task_id?: number; + /** + * Является ли товар уценённым. `true`, если уценённый. + * @type {boolean} + * @memberof V1GetDiscountTaskListResponseTask + */ + is_damaged?: boolean; + /** + * Дата модерации: просмотра, одобрения или отклонения заявки. + * + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + moderated_at?: string; + /** + * Скидка в рублях, которую одобрил продавец. Передайте значение `0`, если продавец не одобрял заявку. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_discount?: number; + /** + * Скидка в процентах, которую одобрил продавец. Передайте значение `0`, если продавец не одобрял заявку. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_discount_percent?: number; + /** + * Покупал ли пользователь товар. `true`, если покупал. + * @type {boolean} + * @memberof V1GetDiscountTaskListResponseTask + */ + is_purchased?: boolean; + /** + * Была ли заявка промодерирована автоматически. `true`, если модерация была автоматической. + * @type {boolean} + * @memberof V1GetDiscountTaskListResponseTask + */ + is_auto_moderated?: boolean; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + offer_id?: string; + /** + * Электронный адрес сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + email?: string; + /** + * Фамилия сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + last_name?: string; + /** + * Имя сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + first_name?: string; + /** + * Отчество сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + patronymic?: string; + /** + * Минимальное одобренное количество товаров. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_quantity_min?: number; + /** + * Максимальное одобренное количество товаров. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_quantity_max?: number; + /** + * Запрошенное минимальное количество товаров. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + requested_quantity_min?: number; + /** + * Запрошенное максимальное количество товаров. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + requested_quantity_max?: number; + /** + * Цена по заявке c региональной наценкой. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + requested_price_with_fee?: number; + /** + * Одобренная цена с региональной наценкой. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_price_with_fee?: number; + /** + * Региональная наценка в процентах. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_price_fee_percent?: number; +} +/** + * Check if a given object implements the V1GetDiscountTaskListResponseTask interface. + */ +export declare function instanceOfV1GetDiscountTaskListResponseTask(value: object): value is V1GetDiscountTaskListResponseTask; +export declare function V1GetDiscountTaskListResponseTaskFromJSON(json: any): V1GetDiscountTaskListResponseTask; +export declare function V1GetDiscountTaskListResponseTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDiscountTaskListResponseTask; +export declare function V1GetDiscountTaskListResponseTaskToJSON(value?: V1GetDiscountTaskListResponseTask | null): any; diff --git a/dist/esm/models/V1GetDiscountTaskListResponseTask.js b/dist/esm/models/V1GetDiscountTaskListResponseTask.js new file mode 100644 index 0000000..cdaa4a2 --- /dev/null +++ b/dist/esm/models/V1GetDiscountTaskListResponseTask.js @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetDiscountTaskListResponseTask interface. + */ +export function instanceOfV1GetDiscountTaskListResponseTask(value) { + return true; +} +export function V1GetDiscountTaskListResponseTaskFromJSON(json) { + return V1GetDiscountTaskListResponseTaskFromJSONTyped(json, false); +} +export function V1GetDiscountTaskListResponseTaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'end_at': json['end_at'] == null ? undefined : json['end_at'], + 'edited_till': json['edited_till'] == null ? undefined : json['edited_till'], + 'status': json['status'] == null ? undefined : json['status'], + 'customer_name': json['customer_name'] == null ? undefined : json['customer_name'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'user_comment': json['user_comment'] == null ? undefined : json['user_comment'], + 'seller_comment': json['seller_comment'] == null ? undefined : json['seller_comment'], + 'requested_price': json['requested_price'] == null ? undefined : json['requested_price'], + 'approved_price': json['approved_price'] == null ? undefined : json['approved_price'], + 'original_price': json['original_price'] == null ? undefined : json['original_price'], + 'discount': json['discount'] == null ? undefined : json['discount'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'base_price': json['base_price'] == null ? undefined : json['base_price'], + 'min_auto_price': json['min_auto_price'] == null ? undefined : json['min_auto_price'], + 'prev_task_id': json['prev_task_id'] == null ? undefined : json['prev_task_id'], + 'is_damaged': json['is_damaged'] == null ? undefined : json['is_damaged'], + 'moderated_at': json['moderated_at'] == null ? undefined : json['moderated_at'], + 'approved_discount': json['approved_discount'] == null ? undefined : json['approved_discount'], + 'approved_discount_percent': json['approved_discount_percent'] == null ? undefined : json['approved_discount_percent'], + 'is_purchased': json['is_purchased'] == null ? undefined : json['is_purchased'], + 'is_auto_moderated': json['is_auto_moderated'] == null ? undefined : json['is_auto_moderated'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'email': json['email'] == null ? undefined : json['email'], + 'last_name': json['last_name'] == null ? undefined : json['last_name'], + 'first_name': json['first_name'] == null ? undefined : json['first_name'], + 'patronymic': json['patronymic'] == null ? undefined : json['patronymic'], + 'approved_quantity_min': json['approved_quantity_min'] == null ? undefined : json['approved_quantity_min'], + 'approved_quantity_max': json['approved_quantity_max'] == null ? undefined : json['approved_quantity_max'], + 'requested_quantity_min': json['requested_quantity_min'] == null ? undefined : json['requested_quantity_min'], + 'requested_quantity_max': json['requested_quantity_max'] == null ? undefined : json['requested_quantity_max'], + 'requested_price_with_fee': json['requested_price_with_fee'] == null ? undefined : json['requested_price_with_fee'], + 'approved_price_with_fee': json['approved_price_with_fee'] == null ? undefined : json['approved_price_with_fee'], + 'approved_price_fee_percent': json['approved_price_fee_percent'] == null ? undefined : json['approved_price_fee_percent'], + }; +} +export function V1GetDiscountTaskListResponseTaskToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'created_at': value['created_at'], + 'end_at': value['end_at'], + 'edited_till': value['edited_till'], + 'status': value['status'], + 'customer_name': value['customer_name'], + 'sku': value['sku'], + 'user_comment': value['user_comment'], + 'seller_comment': value['seller_comment'], + 'requested_price': value['requested_price'], + 'approved_price': value['approved_price'], + 'original_price': value['original_price'], + 'discount': value['discount'], + 'discount_percent': value['discount_percent'], + 'base_price': value['base_price'], + 'min_auto_price': value['min_auto_price'], + 'prev_task_id': value['prev_task_id'], + 'is_damaged': value['is_damaged'], + 'moderated_at': value['moderated_at'], + 'approved_discount': value['approved_discount'], + 'approved_discount_percent': value['approved_discount_percent'], + 'is_purchased': value['is_purchased'], + 'is_auto_moderated': value['is_auto_moderated'], + 'offer_id': value['offer_id'], + 'email': value['email'], + 'last_name': value['last_name'], + 'first_name': value['first_name'], + 'patronymic': value['patronymic'], + 'approved_quantity_min': value['approved_quantity_min'], + 'approved_quantity_max': value['approved_quantity_max'], + 'requested_quantity_min': value['requested_quantity_min'], + 'requested_quantity_max': value['requested_quantity_max'], + 'requested_price_with_fee': value['requested_price_with_fee'], + 'approved_price_with_fee': value['approved_price_with_fee'], + 'approved_price_fee_percent': value['approved_price_fee_percent'], + }; +} diff --git a/dist/esm/models/V1GetEtgbRequest.d.ts b/dist/esm/models/V1GetEtgbRequest.d.ts new file mode 100644 index 0000000..d871f30 --- /dev/null +++ b/dist/esm/models/V1GetEtgbRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetEtgbRequestDate } from './GetEtgbRequestDate'; +/** + * + * @export + * @interface V1GetEtgbRequest + */ +export interface V1GetEtgbRequest { + /** + * + * @type {GetEtgbRequestDate} + * @memberof V1GetEtgbRequest + */ + date: GetEtgbRequestDate; +} +/** + * Check if a given object implements the V1GetEtgbRequest interface. + */ +export declare function instanceOfV1GetEtgbRequest(value: object): value is V1GetEtgbRequest; +export declare function V1GetEtgbRequestFromJSON(json: any): V1GetEtgbRequest; +export declare function V1GetEtgbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetEtgbRequest; +export declare function V1GetEtgbRequestToJSON(value?: V1GetEtgbRequest | null): any; diff --git a/dist/esm/models/V1GetEtgbRequest.js b/dist/esm/models/V1GetEtgbRequest.js new file mode 100644 index 0000000..6217858 --- /dev/null +++ b/dist/esm/models/V1GetEtgbRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetEtgbRequestDateFromJSON, GetEtgbRequestDateToJSON, } from './GetEtgbRequestDate'; +/** + * Check if a given object implements the V1GetEtgbRequest interface. + */ +export function instanceOfV1GetEtgbRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +export function V1GetEtgbRequestFromJSON(json) { + return V1GetEtgbRequestFromJSONTyped(json, false); +} +export function V1GetEtgbRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': GetEtgbRequestDateFromJSON(json['date']), + }; +} +export function V1GetEtgbRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': GetEtgbRequestDateToJSON(value['date']), + }; +} diff --git a/dist/esm/models/V1GetEtgbResponse.d.ts b/dist/esm/models/V1GetEtgbResponse.d.ts new file mode 100644 index 0000000..efd8dbd --- /dev/null +++ b/dist/esm/models/V1GetEtgbResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetEtgbResponseResult } from './GetEtgbResponseResult'; +/** + * + * @export + * @interface V1GetEtgbResponse + */ +export interface V1GetEtgbResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof V1GetEtgbResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetEtgbResponse interface. + */ +export declare function instanceOfV1GetEtgbResponse(value: object): value is V1GetEtgbResponse; +export declare function V1GetEtgbResponseFromJSON(json: any): V1GetEtgbResponse; +export declare function V1GetEtgbResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetEtgbResponse; +export declare function V1GetEtgbResponseToJSON(value?: V1GetEtgbResponse | null): any; diff --git a/dist/esm/models/V1GetEtgbResponse.js b/dist/esm/models/V1GetEtgbResponse.js new file mode 100644 index 0000000..f8c26bb --- /dev/null +++ b/dist/esm/models/V1GetEtgbResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetEtgbResponseResultFromJSON, GetEtgbResponseResultToJSON, } from './GetEtgbResponseResult'; +/** + * Check if a given object implements the V1GetEtgbResponse interface. + */ +export function instanceOfV1GetEtgbResponse(value) { + return true; +} +export function V1GetEtgbResponseFromJSON(json) { + return V1GetEtgbResponseFromJSONTyped(json, false); +} +export function V1GetEtgbResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(GetEtgbResponseResultFromJSON)), + }; +} +export function V1GetEtgbResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(GetEtgbResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/V1GetFBSRatingIndexInfoV1Response.d.ts b/dist/esm/models/V1GetFBSRatingIndexInfoV1Response.d.ts new file mode 100644 index 0000000..18fafd4 --- /dev/null +++ b/dist/esm/models/V1GetFBSRatingIndexInfoV1Response.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetFBSRatingIndexInfoV1ResponseIndexDynamics } from './GetFBSRatingIndexInfoV1ResponseIndexDynamics'; +/** + * + * @export + * @interface V1GetFBSRatingIndexInfoV1Response + */ +export interface V1GetFBSRatingIndexInfoV1Response { + /** + * Код валюты стоимости обработки ошибок. + * @type {string} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + currency_code?: string; + /** + * Индекс ошибок по дням. + * @type {Array} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + defects?: Array; + /** + * Значение индекса ошибок за период. + * @type {number} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + index?: number; + /** + * Дата начала расчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + period_from?: string; + /** + * Дата окончания расчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + period_to?: string; + /** + * Расходы на обработку ошибок за период. + * @type {number} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + processing_costs_sum?: number; +} +/** + * Check if a given object implements the V1GetFBSRatingIndexInfoV1Response interface. + */ +export declare function instanceOfV1GetFBSRatingIndexInfoV1Response(value: object): value is V1GetFBSRatingIndexInfoV1Response; +export declare function V1GetFBSRatingIndexInfoV1ResponseFromJSON(json: any): V1GetFBSRatingIndexInfoV1Response; +export declare function V1GetFBSRatingIndexInfoV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFBSRatingIndexInfoV1Response; +export declare function V1GetFBSRatingIndexInfoV1ResponseToJSON(value?: V1GetFBSRatingIndexInfoV1Response | null): any; diff --git a/dist/esm/models/V1GetFBSRatingIndexInfoV1Response.js b/dist/esm/models/V1GetFBSRatingIndexInfoV1Response.js new file mode 100644 index 0000000..9abef0f --- /dev/null +++ b/dist/esm/models/V1GetFBSRatingIndexInfoV1Response.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON, GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON, } from './GetFBSRatingIndexInfoV1ResponseIndexDynamics'; +/** + * Check if a given object implements the V1GetFBSRatingIndexInfoV1Response interface. + */ +export function instanceOfV1GetFBSRatingIndexInfoV1Response(value) { + return true; +} +export function V1GetFBSRatingIndexInfoV1ResponseFromJSON(json) { + return V1GetFBSRatingIndexInfoV1ResponseFromJSONTyped(json, false); +} +export function V1GetFBSRatingIndexInfoV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'defects': json['defects'] == null ? undefined : (json['defects'].map(GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON)), + 'index': json['index'] == null ? undefined : json['index'], + 'period_from': json['period_from'] == null ? undefined : json['period_from'], + 'period_to': json['period_to'] == null ? undefined : json['period_to'], + 'processing_costs_sum': json['processing_costs_sum'] == null ? undefined : json['processing_costs_sum'], + }; +} +export function V1GetFBSRatingIndexInfoV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'defects': value['defects'] == null ? undefined : (value['defects'].map(GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON)), + 'index': value['index'], + 'period_from': value['period_from'], + 'period_to': value['period_to'], + 'processing_costs_sum': value['processing_costs_sum'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1Request.d.ts b/dist/esm/models/V1GetFinanceBalanceV1Request.d.ts new file mode 100644 index 0000000..48f74ff --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetFinanceBalanceV1Request + */ +export interface V1GetFinanceBalanceV1Request { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetFinanceBalanceV1Request + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. Максимальный период между `date_from` и `date_to` — 30 дней. + * @type {string} + * @memberof V1GetFinanceBalanceV1Request + */ + date_to: string; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1Request interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1Request(value: object): value is V1GetFinanceBalanceV1Request; +export declare function V1GetFinanceBalanceV1RequestFromJSON(json: any): V1GetFinanceBalanceV1Request; +export declare function V1GetFinanceBalanceV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1Request; +export declare function V1GetFinanceBalanceV1RequestToJSON(value?: V1GetFinanceBalanceV1Request | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1Request.js b/dist/esm/models/V1GetFinanceBalanceV1Request.js new file mode 100644 index 0000000..bc553ba --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1Request.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1Request interface. + */ +export function instanceOfV1GetFinanceBalanceV1Request(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +export function V1GetFinanceBalanceV1RequestFromJSON(json) { + return V1GetFinanceBalanceV1RequestFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + }; +} +export function V1GetFinanceBalanceV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1Response.d.ts b/dist/esm/models/V1GetFinanceBalanceV1Response.d.ts new file mode 100644 index 0000000..7d271d5 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1Response.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetFinanceBalanceV1ResponseTotal } from './GetFinanceBalanceV1ResponseTotal'; +import type { GetFinanceBalanceV1ResponseCashflows } from './GetFinanceBalanceV1ResponseCashflows'; +/** + * Отчёт о балансе. + * @export + * @interface V1GetFinanceBalanceV1Response + */ +export interface V1GetFinanceBalanceV1Response { + /** + * + * @type {GetFinanceBalanceV1ResponseCashflows} + * @memberof V1GetFinanceBalanceV1Response + */ + cashflows?: GetFinanceBalanceV1ResponseCashflows; + /** + * + * @type {GetFinanceBalanceV1ResponseTotal} + * @memberof V1GetFinanceBalanceV1Response + */ + total?: GetFinanceBalanceV1ResponseTotal; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1Response interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1Response(value: object): value is V1GetFinanceBalanceV1Response; +export declare function V1GetFinanceBalanceV1ResponseFromJSON(json: any): V1GetFinanceBalanceV1Response; +export declare function V1GetFinanceBalanceV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1Response; +export declare function V1GetFinanceBalanceV1ResponseToJSON(value?: V1GetFinanceBalanceV1Response | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1Response.js b/dist/esm/models/V1GetFinanceBalanceV1Response.js new file mode 100644 index 0000000..00bcb14 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1Response.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetFinanceBalanceV1ResponseTotalFromJSON, GetFinanceBalanceV1ResponseTotalToJSON, } from './GetFinanceBalanceV1ResponseTotal'; +import { GetFinanceBalanceV1ResponseCashflowsFromJSON, GetFinanceBalanceV1ResponseCashflowsToJSON, } from './GetFinanceBalanceV1ResponseCashflows'; +/** + * Check if a given object implements the V1GetFinanceBalanceV1Response interface. + */ +export function instanceOfV1GetFinanceBalanceV1Response(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseFromJSON(json) { + return V1GetFinanceBalanceV1ResponseFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cashflows': json['cashflows'] == null ? undefined : GetFinanceBalanceV1ResponseCashflowsFromJSON(json['cashflows']), + 'total': json['total'] == null ? undefined : GetFinanceBalanceV1ResponseTotalFromJSON(json['total']), + }; +} +export function V1GetFinanceBalanceV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cashflows': GetFinanceBalanceV1ResponseCashflowsToJSON(value['cashflows']), + 'total': GetFinanceBalanceV1ResponseTotalToJSON(value['total']), + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseAccruedMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponseAccruedMoney.d.ts new file mode 100644 index 0000000..232f67a --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseAccruedMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Начислено за период. + * @export + * @interface V1GetFinanceBalanceV1ResponseAccruedMoney + */ +export interface V1GetFinanceBalanceV1ResponseAccruedMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseAccruedMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseAccruedMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseAccruedMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseAccruedMoney(value: object): value is V1GetFinanceBalanceV1ResponseAccruedMoney; +export declare function V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseAccruedMoney; +export declare function V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseAccruedMoney; +export declare function V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseAccruedMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseAccruedMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponseAccruedMoney.js new file mode 100644 index 0000000..1e838fb --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseAccruedMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseAccruedMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponseAccruedMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.d.ts new file mode 100644 index 0000000..872bc17 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Баланс на конец периода. + * @export + * @interface V1GetFinanceBalanceV1ResponseClosingBalanceMoney + */ +export interface V1GetFinanceBalanceV1ResponseClosingBalanceMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseClosingBalanceMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseClosingBalanceMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseClosingBalanceMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseClosingBalanceMoney(value: object): value is V1GetFinanceBalanceV1ResponseClosingBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseClosingBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseClosingBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseClosingBalanceMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.js new file mode 100644 index 0000000..794acc6 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseClosingBalanceMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponseClosingBalanceMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseFeeMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponseFeeMoney.d.ts new file mode 100644 index 0000000..cc07eb4 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseFeeMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма вознаграждения Ozon. + * @export + * @interface V1GetFinanceBalanceV1ResponseFeeMoney + */ +export interface V1GetFinanceBalanceV1ResponseFeeMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseFeeMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseFeeMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseFeeMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseFeeMoney(value: object): value is V1GetFinanceBalanceV1ResponseFeeMoney; +export declare function V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseFeeMoney; +export declare function V1GetFinanceBalanceV1ResponseFeeMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseFeeMoney; +export declare function V1GetFinanceBalanceV1ResponseFeeMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseFeeMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseFeeMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponseFeeMoney.js new file mode 100644 index 0000000..d60b003 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseFeeMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseFeeMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponseFeeMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseFeeMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseFeeMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponseFeeMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.d.ts new file mode 100644 index 0000000..07cd968 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Баланс на начало периода. + * @export + * @interface V1GetFinanceBalanceV1ResponseOpeningBalanceMoney + */ +export interface V1GetFinanceBalanceV1ResponseOpeningBalanceMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseOpeningBalanceMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseOpeningBalanceMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseOpeningBalanceMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseOpeningBalanceMoney(value: object): value is V1GetFinanceBalanceV1ResponseOpeningBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseOpeningBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseOpeningBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseOpeningBalanceMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.js new file mode 100644 index 0000000..4cd15f4 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseOpeningBalanceMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponseOpeningBalanceMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponsePartnerMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponsePartnerMoney.d.ts new file mode 100644 index 0000000..09e4a3e --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponsePartnerMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Выплаты по механикам лояльности партнёров. + * @export + * @interface V1GetFinanceBalanceV1ResponsePartnerMoney + */ +export interface V1GetFinanceBalanceV1ResponsePartnerMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponsePartnerMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponsePartnerMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponsePartnerMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponsePartnerMoney(value: object): value is V1GetFinanceBalanceV1ResponsePartnerMoney; +export declare function V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponsePartnerMoney; +export declare function V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponsePartnerMoney; +export declare function V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON(value?: V1GetFinanceBalanceV1ResponsePartnerMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponsePartnerMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponsePartnerMoney.js new file mode 100644 index 0000000..2652d26 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponsePartnerMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponsePartnerMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponsePartnerMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.d.ts new file mode 100644 index 0000000..d9b3a0e --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Выплачено за период. + * @export + * @interface V1GetFinanceBalanceV1ResponsePaymentsMoney + */ +export interface V1GetFinanceBalanceV1ResponsePaymentsMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponsePaymentsMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponsePaymentsMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponsePaymentsMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponsePaymentsMoney(value: object): value is V1GetFinanceBalanceV1ResponsePaymentsMoney; +export declare function V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponsePaymentsMoney; +export declare function V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponsePaymentsMoney; +export declare function V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON(value?: V1GetFinanceBalanceV1ResponsePaymentsMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.js new file mode 100644 index 0000000..7b51a26 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponsePaymentsMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponsePaymentsMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseReturnsMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponseReturnsMoney.d.ts new file mode 100644 index 0000000..e893e97 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseReturnsMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма возвратов. + * @export + * @interface V1GetFinanceBalanceV1ResponseReturnsMoney + */ +export interface V1GetFinanceBalanceV1ResponseReturnsMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseReturnsMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseReturnsMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseReturnsMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseReturnsMoney(value: object): value is V1GetFinanceBalanceV1ResponseReturnsMoney; +export declare function V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseReturnsMoney; +export declare function V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseReturnsMoney; +export declare function V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseReturnsMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseReturnsMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponseReturnsMoney.js new file mode 100644 index 0000000..2f29b64 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseReturnsMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseReturnsMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponseReturnsMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseRevenueMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponseRevenueMoney.d.ts new file mode 100644 index 0000000..40731dc --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseRevenueMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма, которую оплатили покупатели. + * @export + * @interface V1GetFinanceBalanceV1ResponseRevenueMoney + */ +export interface V1GetFinanceBalanceV1ResponseRevenueMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseRevenueMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseRevenueMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseRevenueMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseRevenueMoney(value: object): value is V1GetFinanceBalanceV1ResponseRevenueMoney; +export declare function V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseRevenueMoney; +export declare function V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseRevenueMoney; +export declare function V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseRevenueMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseRevenueMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponseRevenueMoney.js new file mode 100644 index 0000000..6e41e97 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseRevenueMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseRevenueMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponseRevenueMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseSalesMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponseSalesMoney.d.ts new file mode 100644 index 0000000..44fb5bc --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseSalesMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма продаж. + * @export + * @interface V1GetFinanceBalanceV1ResponseSalesMoney + */ +export interface V1GetFinanceBalanceV1ResponseSalesMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseSalesMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseSalesMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseSalesMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseSalesMoney(value: object): value is V1GetFinanceBalanceV1ResponseSalesMoney; +export declare function V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseSalesMoney; +export declare function V1GetFinanceBalanceV1ResponseSalesMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseSalesMoney; +export declare function V1GetFinanceBalanceV1ResponseSalesMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseSalesMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseSalesMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponseSalesMoney.js new file mode 100644 index 0000000..41147a3 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseSalesMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseSalesMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponseSalesMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseSalesMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseSalesMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponseSalesMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseServicesMoney.d.ts b/dist/esm/models/V1GetFinanceBalanceV1ResponseServicesMoney.d.ts new file mode 100644 index 0000000..c730763 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseServicesMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма начислений за другие услуги. + * @export + * @interface V1GetFinanceBalanceV1ResponseServicesMoney + */ +export interface V1GetFinanceBalanceV1ResponseServicesMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseServicesMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseServicesMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseServicesMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseServicesMoney(value: object): value is V1GetFinanceBalanceV1ResponseServicesMoney; +export declare function V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseServicesMoney; +export declare function V1GetFinanceBalanceV1ResponseServicesMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseServicesMoney; +export declare function V1GetFinanceBalanceV1ResponseServicesMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseServicesMoney | null): any; diff --git a/dist/esm/models/V1GetFinanceBalanceV1ResponseServicesMoney.js b/dist/esm/models/V1GetFinanceBalanceV1ResponseServicesMoney.js new file mode 100644 index 0000000..8222db8 --- /dev/null +++ b/dist/esm/models/V1GetFinanceBalanceV1ResponseServicesMoney.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseServicesMoney interface. + */ +export function instanceOfV1GetFinanceBalanceV1ResponseServicesMoney(value) { + return true; +} +export function V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseServicesMoneyFromJSONTyped(json, false); +} +export function V1GetFinanceBalanceV1ResponseServicesMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1GetFinanceBalanceV1ResponseServicesMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1GetFinanceProductsBuyoutRequest.d.ts b/dist/esm/models/V1GetFinanceProductsBuyoutRequest.d.ts new file mode 100644 index 0000000..8a4ea9f --- /dev/null +++ b/dist/esm/models/V1GetFinanceProductsBuyoutRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetFinanceProductsBuyoutRequest + */ +export interface V1GetFinanceProductsBuyoutRequest { + /** + * Дата, с которой будут данные в отчёте. + * @type {string} + * @memberof V1GetFinanceProductsBuyoutRequest + */ + date_from: string; + /** + * Дата, по которую будут данные в отчёте. + * + * Максимальный период — 31 день. + * + * @type {string} + * @memberof V1GetFinanceProductsBuyoutRequest + */ + date_to: string; +} +/** + * Check if a given object implements the V1GetFinanceProductsBuyoutRequest interface. + */ +export declare function instanceOfV1GetFinanceProductsBuyoutRequest(value: object): value is V1GetFinanceProductsBuyoutRequest; +export declare function V1GetFinanceProductsBuyoutRequestFromJSON(json: any): V1GetFinanceProductsBuyoutRequest; +export declare function V1GetFinanceProductsBuyoutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceProductsBuyoutRequest; +export declare function V1GetFinanceProductsBuyoutRequestToJSON(value?: V1GetFinanceProductsBuyoutRequest | null): any; diff --git a/dist/esm/models/V1GetFinanceProductsBuyoutRequest.js b/dist/esm/models/V1GetFinanceProductsBuyoutRequest.js new file mode 100644 index 0000000..81e3a8f --- /dev/null +++ b/dist/esm/models/V1GetFinanceProductsBuyoutRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetFinanceProductsBuyoutRequest interface. + */ +export function instanceOfV1GetFinanceProductsBuyoutRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +export function V1GetFinanceProductsBuyoutRequestFromJSON(json) { + return V1GetFinanceProductsBuyoutRequestFromJSONTyped(json, false); +} +export function V1GetFinanceProductsBuyoutRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + }; +} +export function V1GetFinanceProductsBuyoutRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/esm/models/V1GetFinanceProductsBuyoutResponse.d.ts b/dist/esm/models/V1GetFinanceProductsBuyoutResponse.d.ts new file mode 100644 index 0000000..86ebb5f --- /dev/null +++ b/dist/esm/models/V1GetFinanceProductsBuyoutResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetFinanceProductsBuyoutResponseProduct } from './GetFinanceProductsBuyoutResponseProduct'; +/** + * + * @export + * @interface V1GetFinanceProductsBuyoutResponse + */ +export interface V1GetFinanceProductsBuyoutResponse { + /** + * Список выкупленных товаров + * @type {Array} + * @memberof V1GetFinanceProductsBuyoutResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1GetFinanceProductsBuyoutResponse interface. + */ +export declare function instanceOfV1GetFinanceProductsBuyoutResponse(value: object): value is V1GetFinanceProductsBuyoutResponse; +export declare function V1GetFinanceProductsBuyoutResponseFromJSON(json: any): V1GetFinanceProductsBuyoutResponse; +export declare function V1GetFinanceProductsBuyoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceProductsBuyoutResponse; +export declare function V1GetFinanceProductsBuyoutResponseToJSON(value?: V1GetFinanceProductsBuyoutResponse | null): any; diff --git a/dist/esm/models/V1GetFinanceProductsBuyoutResponse.js b/dist/esm/models/V1GetFinanceProductsBuyoutResponse.js new file mode 100644 index 0000000..ed5de82 --- /dev/null +++ b/dist/esm/models/V1GetFinanceProductsBuyoutResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetFinanceProductsBuyoutResponseProductFromJSON, GetFinanceProductsBuyoutResponseProductToJSON, } from './GetFinanceProductsBuyoutResponseProduct'; +/** + * Check if a given object implements the V1GetFinanceProductsBuyoutResponse interface. + */ +export function instanceOfV1GetFinanceProductsBuyoutResponse(value) { + return true; +} +export function V1GetFinanceProductsBuyoutResponseFromJSON(json) { + return V1GetFinanceProductsBuyoutResponseFromJSONTyped(json, false); +} +export function V1GetFinanceProductsBuyoutResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(GetFinanceProductsBuyoutResponseProductFromJSON)), + }; +} +export function V1GetFinanceProductsBuyoutResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(GetFinanceProductsBuyoutResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/V1GetLabelBatchRequest.d.ts b/dist/esm/models/V1GetLabelBatchRequest.d.ts new file mode 100644 index 0000000..82f50f5 --- /dev/null +++ b/dist/esm/models/V1GetLabelBatchRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetLabelBatchRequest + */ +export interface V1GetLabelBatchRequest { + /** + * Номер задания на формирование этикеток из ответа метода [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * @type {number} + * @memberof V1GetLabelBatchRequest + */ + task_id: number; +} +/** + * Check if a given object implements the V1GetLabelBatchRequest interface. + */ +export declare function instanceOfV1GetLabelBatchRequest(value: object): value is V1GetLabelBatchRequest; +export declare function V1GetLabelBatchRequestFromJSON(json: any): V1GetLabelBatchRequest; +export declare function V1GetLabelBatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetLabelBatchRequest; +export declare function V1GetLabelBatchRequestToJSON(value?: V1GetLabelBatchRequest | null): any; diff --git a/dist/esm/models/V1GetLabelBatchRequest.js b/dist/esm/models/V1GetLabelBatchRequest.js new file mode 100644 index 0000000..e11c688 --- /dev/null +++ b/dist/esm/models/V1GetLabelBatchRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetLabelBatchRequest interface. + */ +export function instanceOfV1GetLabelBatchRequest(value) { + if (!('task_id' in value) || value['task_id'] === undefined) + return false; + return true; +} +export function V1GetLabelBatchRequestFromJSON(json) { + return V1GetLabelBatchRequestFromJSONTyped(json, false); +} +export function V1GetLabelBatchRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'], + }; +} +export function V1GetLabelBatchRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/V1GetLabelBatchResponse.d.ts b/dist/esm/models/V1GetLabelBatchResponse.d.ts new file mode 100644 index 0000000..8556a49 --- /dev/null +++ b/dist/esm/models/V1GetLabelBatchResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetLabelBatchResponseResult } from './V1GetLabelBatchResponseResult'; +/** + * + * @export + * @interface V1GetLabelBatchResponse + */ +export interface V1GetLabelBatchResponse { + /** + * + * @type {V1GetLabelBatchResponseResult} + * @memberof V1GetLabelBatchResponse + */ + result?: V1GetLabelBatchResponseResult; +} +/** + * Check if a given object implements the V1GetLabelBatchResponse interface. + */ +export declare function instanceOfV1GetLabelBatchResponse(value: object): value is V1GetLabelBatchResponse; +export declare function V1GetLabelBatchResponseFromJSON(json: any): V1GetLabelBatchResponse; +export declare function V1GetLabelBatchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetLabelBatchResponse; +export declare function V1GetLabelBatchResponseToJSON(value?: V1GetLabelBatchResponse | null): any; diff --git a/dist/esm/models/V1GetLabelBatchResponse.js b/dist/esm/models/V1GetLabelBatchResponse.js new file mode 100644 index 0000000..91f1d78 --- /dev/null +++ b/dist/esm/models/V1GetLabelBatchResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetLabelBatchResponseResultFromJSON, V1GetLabelBatchResponseResultToJSON, } from './V1GetLabelBatchResponseResult'; +/** + * Check if a given object implements the V1GetLabelBatchResponse interface. + */ +export function instanceOfV1GetLabelBatchResponse(value) { + return true; +} +export function V1GetLabelBatchResponseFromJSON(json) { + return V1GetLabelBatchResponseFromJSONTyped(json, false); +} +export function V1GetLabelBatchResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1GetLabelBatchResponseResultFromJSON(json['result']), + }; +} +export function V1GetLabelBatchResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1GetLabelBatchResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1GetLabelBatchResponseResult.d.ts b/dist/esm/models/V1GetLabelBatchResponseResult.d.ts new file mode 100644 index 0000000..76782ea --- /dev/null +++ b/dist/esm/models/V1GetLabelBatchResponseResult.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultUnprintedPosting } from './ResultUnprintedPosting'; +/** + * Результат работы метода. + * @export + * @interface V1GetLabelBatchResponseResult + */ +export interface V1GetLabelBatchResponseResult { + /** + * Код ошибки. + * @type {string} + * @memberof V1GetLabelBatchResponseResult + */ + error?: string; + /** + * Ссылка на файл с этикетками. + * @type {string} + * @memberof V1GetLabelBatchResponseResult + */ + file_url?: string; + /** + * Количество напечатанных этикеток. + * @type {number} + * @memberof V1GetLabelBatchResponseResult + */ + printed_postings_count?: number; + /** + * Статус формирования этикеток: + * - `pending` — задание в очереди. + * - `in_progress` — формируются. + * - `completed` — файл с этикетками готов. + * - `error` — ошибка при создании файла. + * + * @type {string} + * @memberof V1GetLabelBatchResponseResult + */ + status?: string; + /** + * Информация об ошибках, из-за которых не получилось напечатать этикетки. + * @type {Array} + * @memberof V1GetLabelBatchResponseResult + */ + unprinted_postings?: Array; + /** + * Количество этикеток, которые не получилось напечатать. + * @type {number} + * @memberof V1GetLabelBatchResponseResult + */ + unprinted_postings_count?: number; +} +/** + * Check if a given object implements the V1GetLabelBatchResponseResult interface. + */ +export declare function instanceOfV1GetLabelBatchResponseResult(value: object): value is V1GetLabelBatchResponseResult; +export declare function V1GetLabelBatchResponseResultFromJSON(json: any): V1GetLabelBatchResponseResult; +export declare function V1GetLabelBatchResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetLabelBatchResponseResult; +export declare function V1GetLabelBatchResponseResultToJSON(value?: V1GetLabelBatchResponseResult | null): any; diff --git a/dist/esm/models/V1GetLabelBatchResponseResult.js b/dist/esm/models/V1GetLabelBatchResponseResult.js new file mode 100644 index 0000000..c9cdb61 --- /dev/null +++ b/dist/esm/models/V1GetLabelBatchResponseResult.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResultUnprintedPostingFromJSON, ResultUnprintedPostingToJSON, } from './ResultUnprintedPosting'; +/** + * Check if a given object implements the V1GetLabelBatchResponseResult interface. + */ +export function instanceOfV1GetLabelBatchResponseResult(value) { + return true; +} +export function V1GetLabelBatchResponseResultFromJSON(json) { + return V1GetLabelBatchResponseResultFromJSONTyped(json, false); +} +export function V1GetLabelBatchResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + 'printed_postings_count': json['printed_postings_count'] == null ? undefined : json['printed_postings_count'], + 'status': json['status'] == null ? undefined : json['status'], + 'unprinted_postings': json['unprinted_postings'] == null ? undefined : (json['unprinted_postings'].map(ResultUnprintedPostingFromJSON)), + 'unprinted_postings_count': json['unprinted_postings_count'] == null ? undefined : json['unprinted_postings_count'], + }; +} +export function V1GetLabelBatchResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'file_url': value['file_url'], + 'printed_postings_count': value['printed_postings_count'], + 'status': value['status'], + 'unprinted_postings': value['unprinted_postings'] == null ? undefined : (value['unprinted_postings'].map(ResultUnprintedPostingToJSON)), + 'unprinted_postings_count': value['unprinted_postings_count'], + }; +} diff --git a/dist/esm/models/V1GetProductInfoDiscountedRequest.d.ts b/dist/esm/models/V1GetProductInfoDiscountedRequest.d.ts new file mode 100644 index 0000000..6837c10 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoDiscountedRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductInfoDiscountedRequest + */ +export interface V1GetProductInfoDiscountedRequest { + /** + * Список SKU уценённых товаров. + * @type {Array} + * @memberof V1GetProductInfoDiscountedRequest + */ + discounted_skus: Array; +} +/** + * Check if a given object implements the V1GetProductInfoDiscountedRequest interface. + */ +export declare function instanceOfV1GetProductInfoDiscountedRequest(value: object): value is V1GetProductInfoDiscountedRequest; +export declare function V1GetProductInfoDiscountedRequestFromJSON(json: any): V1GetProductInfoDiscountedRequest; +export declare function V1GetProductInfoDiscountedRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoDiscountedRequest; +export declare function V1GetProductInfoDiscountedRequestToJSON(value?: V1GetProductInfoDiscountedRequest | null): any; diff --git a/dist/esm/models/V1GetProductInfoDiscountedRequest.js b/dist/esm/models/V1GetProductInfoDiscountedRequest.js new file mode 100644 index 0000000..9d07399 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoDiscountedRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetProductInfoDiscountedRequest interface. + */ +export function instanceOfV1GetProductInfoDiscountedRequest(value) { + if (!('discounted_skus' in value) || value['discounted_skus'] === undefined) + return false; + return true; +} +export function V1GetProductInfoDiscountedRequestFromJSON(json) { + return V1GetProductInfoDiscountedRequestFromJSONTyped(json, false); +} +export function V1GetProductInfoDiscountedRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discounted_skus': json['discounted_skus'], + }; +} +export function V1GetProductInfoDiscountedRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'discounted_skus': value['discounted_skus'], + }; +} diff --git a/dist/esm/models/V1GetProductInfoDiscountedResponse.d.ts b/dist/esm/models/V1GetProductInfoDiscountedResponse.d.ts new file mode 100644 index 0000000..00d2a42 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoDiscountedResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetProductInfoDiscountedResponseItem } from './V1GetProductInfoDiscountedResponseItem'; +/** + * + * @export + * @interface V1GetProductInfoDiscountedResponse + */ +export interface V1GetProductInfoDiscountedResponse { + /** + * Информация об уценке и основном товаре. + * @type {Array} + * @memberof V1GetProductInfoDiscountedResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1GetProductInfoDiscountedResponse interface. + */ +export declare function instanceOfV1GetProductInfoDiscountedResponse(value: object): value is V1GetProductInfoDiscountedResponse; +export declare function V1GetProductInfoDiscountedResponseFromJSON(json: any): V1GetProductInfoDiscountedResponse; +export declare function V1GetProductInfoDiscountedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoDiscountedResponse; +export declare function V1GetProductInfoDiscountedResponseToJSON(value?: V1GetProductInfoDiscountedResponse | null): any; diff --git a/dist/esm/models/V1GetProductInfoDiscountedResponse.js b/dist/esm/models/V1GetProductInfoDiscountedResponse.js new file mode 100644 index 0000000..9fc723d --- /dev/null +++ b/dist/esm/models/V1GetProductInfoDiscountedResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetProductInfoDiscountedResponseItemFromJSON, V1GetProductInfoDiscountedResponseItemToJSON, } from './V1GetProductInfoDiscountedResponseItem'; +/** + * Check if a given object implements the V1GetProductInfoDiscountedResponse interface. + */ +export function instanceOfV1GetProductInfoDiscountedResponse(value) { + return true; +} +export function V1GetProductInfoDiscountedResponseFromJSON(json) { + return V1GetProductInfoDiscountedResponseFromJSONTyped(json, false); +} +export function V1GetProductInfoDiscountedResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1GetProductInfoDiscountedResponseItemFromJSON)), + }; +} +export function V1GetProductInfoDiscountedResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1GetProductInfoDiscountedResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V1GetProductInfoDiscountedResponseItem.d.ts b/dist/esm/models/V1GetProductInfoDiscountedResponseItem.d.ts new file mode 100644 index 0000000..2a13c62 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoDiscountedResponseItem.d.ts @@ -0,0 +1,109 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductInfoDiscountedResponseItem + */ +export interface V1GetProductInfoDiscountedResponseItem { + /** + * Комментарий к причине повреждения. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + comment_reason_damaged?: string; + /** + * Состояние товара — новый или Б/У. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + condition?: string; + /** + * Состояние товара по шкале от 1 до 7: + * - 1 — удовлетворительное, + * - 2 — хорошее, + * - 3 — очень хорошее, + * - 4 — отличное, + * - 5–7 — как новый. + * + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + condition_estimation?: string; + /** + * Дефекты товара. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + defects?: string; + /** + * SKU уценённого товара. + * @type {number} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + discounted_sku?: number; + /** + * Описание механического повреждения. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + mechanical_damage?: string; + /** + * Описание повреждения упаковки. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + package_damage?: string; + /** + * Признак нарушения целостности упаковки. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + packaging_violation?: string; + /** + * Причина повреждения. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + reason_damaged?: string; + /** + * Признак, что товар отремонтирован. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + repair?: string; + /** + * Признак, что товар некомплектный. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + shortage?: string; + /** + * SKU основного товара. + * @type {number} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + sku?: number; + /** + * Наличие у товара действующей гарантии. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + warranty_type?: string; +} +/** + * Check if a given object implements the V1GetProductInfoDiscountedResponseItem interface. + */ +export declare function instanceOfV1GetProductInfoDiscountedResponseItem(value: object): value is V1GetProductInfoDiscountedResponseItem; +export declare function V1GetProductInfoDiscountedResponseItemFromJSON(json: any): V1GetProductInfoDiscountedResponseItem; +export declare function V1GetProductInfoDiscountedResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoDiscountedResponseItem; +export declare function V1GetProductInfoDiscountedResponseItemToJSON(value?: V1GetProductInfoDiscountedResponseItem | null): any; diff --git a/dist/esm/models/V1GetProductInfoDiscountedResponseItem.js b/dist/esm/models/V1GetProductInfoDiscountedResponseItem.js new file mode 100644 index 0000000..8ba7bd1 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoDiscountedResponseItem.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetProductInfoDiscountedResponseItem interface. + */ +export function instanceOfV1GetProductInfoDiscountedResponseItem(value) { + return true; +} +export function V1GetProductInfoDiscountedResponseItemFromJSON(json) { + return V1GetProductInfoDiscountedResponseItemFromJSONTyped(json, false); +} +export function V1GetProductInfoDiscountedResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment_reason_damaged': json['comment_reason_damaged'] == null ? undefined : json['comment_reason_damaged'], + 'condition': json['condition'] == null ? undefined : json['condition'], + 'condition_estimation': json['condition_estimation'] == null ? undefined : json['condition_estimation'], + 'defects': json['defects'] == null ? undefined : json['defects'], + 'discounted_sku': json['discounted_sku'] == null ? undefined : json['discounted_sku'], + 'mechanical_damage': json['mechanical_damage'] == null ? undefined : json['mechanical_damage'], + 'package_damage': json['package_damage'] == null ? undefined : json['package_damage'], + 'packaging_violation': json['packaging_violation'] == null ? undefined : json['packaging_violation'], + 'reason_damaged': json['reason_damaged'] == null ? undefined : json['reason_damaged'], + 'repair': json['repair'] == null ? undefined : json['repair'], + 'shortage': json['shortage'] == null ? undefined : json['shortage'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'warranty_type': json['warranty_type'] == null ? undefined : json['warranty_type'], + }; +} +export function V1GetProductInfoDiscountedResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment_reason_damaged': value['comment_reason_damaged'], + 'condition': value['condition'], + 'condition_estimation': value['condition_estimation'], + 'defects': value['defects'], + 'discounted_sku': value['discounted_sku'], + 'mechanical_damage': value['mechanical_damage'], + 'package_damage': value['package_damage'], + 'packaging_violation': value['packaging_violation'], + 'reason_damaged': value['reason_damaged'], + 'repair': value['repair'], + 'shortage': value['shortage'], + 'sku': value['sku'], + 'warranty_type': value['warranty_type'], + }; +} diff --git a/dist/esm/models/V1GetProductInfoSubscriptionRequest.d.ts b/dist/esm/models/V1GetProductInfoSubscriptionRequest.d.ts new file mode 100644 index 0000000..8f6400d --- /dev/null +++ b/dist/esm/models/V1GetProductInfoSubscriptionRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductInfoSubscriptionRequest + */ +export interface V1GetProductInfoSubscriptionRequest { + /** + * Список SKU, идентификаторов товара в системе Ozon. + * @type {Array} + * @memberof V1GetProductInfoSubscriptionRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1GetProductInfoSubscriptionRequest interface. + */ +export declare function instanceOfV1GetProductInfoSubscriptionRequest(value: object): value is V1GetProductInfoSubscriptionRequest; +export declare function V1GetProductInfoSubscriptionRequestFromJSON(json: any): V1GetProductInfoSubscriptionRequest; +export declare function V1GetProductInfoSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoSubscriptionRequest; +export declare function V1GetProductInfoSubscriptionRequestToJSON(value?: V1GetProductInfoSubscriptionRequest | null): any; diff --git a/dist/esm/models/V1GetProductInfoSubscriptionRequest.js b/dist/esm/models/V1GetProductInfoSubscriptionRequest.js new file mode 100644 index 0000000..2e4e806 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoSubscriptionRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetProductInfoSubscriptionRequest interface. + */ +export function instanceOfV1GetProductInfoSubscriptionRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1GetProductInfoSubscriptionRequestFromJSON(json) { + return V1GetProductInfoSubscriptionRequestFromJSONTyped(json, false); +} +export function V1GetProductInfoSubscriptionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +export function V1GetProductInfoSubscriptionRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/V1GetProductInfoSubscriptionResponse.d.ts b/dist/esm/models/V1GetProductInfoSubscriptionResponse.d.ts new file mode 100644 index 0000000..09378a5 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoSubscriptionResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetProductInfoSubscriptionResponseResult } from './V1GetProductInfoSubscriptionResponseResult'; +/** + * + * @export + * @interface V1GetProductInfoSubscriptionResponse + */ +export interface V1GetProductInfoSubscriptionResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof V1GetProductInfoSubscriptionResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetProductInfoSubscriptionResponse interface. + */ +export declare function instanceOfV1GetProductInfoSubscriptionResponse(value: object): value is V1GetProductInfoSubscriptionResponse; +export declare function V1GetProductInfoSubscriptionResponseFromJSON(json: any): V1GetProductInfoSubscriptionResponse; +export declare function V1GetProductInfoSubscriptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoSubscriptionResponse; +export declare function V1GetProductInfoSubscriptionResponseToJSON(value?: V1GetProductInfoSubscriptionResponse | null): any; diff --git a/dist/esm/models/V1GetProductInfoSubscriptionResponse.js b/dist/esm/models/V1GetProductInfoSubscriptionResponse.js new file mode 100644 index 0000000..9788cc8 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoSubscriptionResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetProductInfoSubscriptionResponseResultFromJSON, V1GetProductInfoSubscriptionResponseResultToJSON, } from './V1GetProductInfoSubscriptionResponseResult'; +/** + * Check if a given object implements the V1GetProductInfoSubscriptionResponse interface. + */ +export function instanceOfV1GetProductInfoSubscriptionResponse(value) { + return true; +} +export function V1GetProductInfoSubscriptionResponseFromJSON(json) { + return V1GetProductInfoSubscriptionResponseFromJSONTyped(json, false); +} +export function V1GetProductInfoSubscriptionResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetProductInfoSubscriptionResponseResultFromJSON)), + }; +} +export function V1GetProductInfoSubscriptionResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetProductInfoSubscriptionResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/V1GetProductInfoSubscriptionResponseResult.d.ts b/dist/esm/models/V1GetProductInfoSubscriptionResponseResult.d.ts new file mode 100644 index 0000000..0b78bd6 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoSubscriptionResponseResult.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductInfoSubscriptionResponseResult + */ +export interface V1GetProductInfoSubscriptionResponseResult { + /** + * Количество подписавшихся пользователей. + * @type {number} + * @memberof V1GetProductInfoSubscriptionResponseResult + */ + count?: number; + /** + * Идентификатор товара в системе Ozon, SKU. + * @type {number} + * @memberof V1GetProductInfoSubscriptionResponseResult + */ + sku?: number; +} +/** + * Check if a given object implements the V1GetProductInfoSubscriptionResponseResult interface. + */ +export declare function instanceOfV1GetProductInfoSubscriptionResponseResult(value: object): value is V1GetProductInfoSubscriptionResponseResult; +export declare function V1GetProductInfoSubscriptionResponseResultFromJSON(json: any): V1GetProductInfoSubscriptionResponseResult; +export declare function V1GetProductInfoSubscriptionResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoSubscriptionResponseResult; +export declare function V1GetProductInfoSubscriptionResponseResultToJSON(value?: V1GetProductInfoSubscriptionResponseResult | null): any; diff --git a/dist/esm/models/V1GetProductInfoSubscriptionResponseResult.js b/dist/esm/models/V1GetProductInfoSubscriptionResponseResult.js new file mode 100644 index 0000000..3593dc6 --- /dev/null +++ b/dist/esm/models/V1GetProductInfoSubscriptionResponseResult.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetProductInfoSubscriptionResponseResult interface. + */ +export function instanceOfV1GetProductInfoSubscriptionResponseResult(value) { + return true; +} +export function V1GetProductInfoSubscriptionResponseResultFromJSON(json) { + return V1GetProductInfoSubscriptionResponseResultFromJSONTyped(json, false); +} +export function V1GetProductInfoSubscriptionResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1GetProductInfoSubscriptionResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1GetProductPlacementZoneInfoRequest.d.ts b/dist/esm/models/V1GetProductPlacementZoneInfoRequest.d.ts new file mode 100644 index 0000000..579cba5 --- /dev/null +++ b/dist/esm/models/V1GetProductPlacementZoneInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductPlacementZoneInfoRequest + */ +export interface V1GetProductPlacementZoneInfoRequest { + /** + * Список идентификаторов товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1GetProductPlacementZoneInfoRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1GetProductPlacementZoneInfoRequest interface. + */ +export declare function instanceOfV1GetProductPlacementZoneInfoRequest(value: object): value is V1GetProductPlacementZoneInfoRequest; +export declare function V1GetProductPlacementZoneInfoRequestFromJSON(json: any): V1GetProductPlacementZoneInfoRequest; +export declare function V1GetProductPlacementZoneInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductPlacementZoneInfoRequest; +export declare function V1GetProductPlacementZoneInfoRequestToJSON(value?: V1GetProductPlacementZoneInfoRequest | null): any; diff --git a/dist/esm/models/V1GetProductPlacementZoneInfoRequest.js b/dist/esm/models/V1GetProductPlacementZoneInfoRequest.js new file mode 100644 index 0000000..0639904 --- /dev/null +++ b/dist/esm/models/V1GetProductPlacementZoneInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetProductPlacementZoneInfoRequest interface. + */ +export function instanceOfV1GetProductPlacementZoneInfoRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1GetProductPlacementZoneInfoRequestFromJSON(json) { + return V1GetProductPlacementZoneInfoRequestFromJSONTyped(json, false); +} +export function V1GetProductPlacementZoneInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +export function V1GetProductPlacementZoneInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/V1GetProductPlacementZoneInfoResponse.d.ts b/dist/esm/models/V1GetProductPlacementZoneInfoResponse.d.ts new file mode 100644 index 0000000..30ebfcf --- /dev/null +++ b/dist/esm/models/V1GetProductPlacementZoneInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductPlacementZoneInfoResponseProductPlacement } from './GetProductPlacementZoneInfoResponseProductPlacement'; +/** + * + * @export + * @interface V1GetProductPlacementZoneInfoResponse + */ +export interface V1GetProductPlacementZoneInfoResponse { + /** + * Список товаров с их зонами размещения. + * @type {Array} + * @memberof V1GetProductPlacementZoneInfoResponse + */ + products_placement?: Array; +} +/** + * Check if a given object implements the V1GetProductPlacementZoneInfoResponse interface. + */ +export declare function instanceOfV1GetProductPlacementZoneInfoResponse(value: object): value is V1GetProductPlacementZoneInfoResponse; +export declare function V1GetProductPlacementZoneInfoResponseFromJSON(json: any): V1GetProductPlacementZoneInfoResponse; +export declare function V1GetProductPlacementZoneInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductPlacementZoneInfoResponse; +export declare function V1GetProductPlacementZoneInfoResponseToJSON(value?: V1GetProductPlacementZoneInfoResponse | null): any; diff --git a/dist/esm/models/V1GetProductPlacementZoneInfoResponse.js b/dist/esm/models/V1GetProductPlacementZoneInfoResponse.js new file mode 100644 index 0000000..a0c4ef6 --- /dev/null +++ b/dist/esm/models/V1GetProductPlacementZoneInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetProductPlacementZoneInfoResponseProductPlacementFromJSON, GetProductPlacementZoneInfoResponseProductPlacementToJSON, } from './GetProductPlacementZoneInfoResponseProductPlacement'; +/** + * Check if a given object implements the V1GetProductPlacementZoneInfoResponse interface. + */ +export function instanceOfV1GetProductPlacementZoneInfoResponse(value) { + return true; +} +export function V1GetProductPlacementZoneInfoResponseFromJSON(json) { + return V1GetProductPlacementZoneInfoResponseFromJSONTyped(json, false); +} +export function V1GetProductPlacementZoneInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_placement': json['products_placement'] == null ? undefined : (json['products_placement'].map(GetProductPlacementZoneInfoResponseProductPlacementFromJSON)), + }; +} +export function V1GetProductPlacementZoneInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_placement': value['products_placement'] == null ? undefined : (value['products_placement'].map(GetProductPlacementZoneInfoResponseProductPlacementToJSON)), + }; +} diff --git a/dist/esm/models/V1GetProductRatingBySkuRequest.d.ts b/dist/esm/models/V1GetProductRatingBySkuRequest.d.ts new file mode 100644 index 0000000..246fc28 --- /dev/null +++ b/dist/esm/models/V1GetProductRatingBySkuRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductRatingBySkuRequest + */ +export interface V1GetProductRatingBySkuRequest { + /** + * Идентификаторы товаров в системе Ozon — SKU, для которых нужно вернуть контент-рейтинг. + * @type {Array} + * @memberof V1GetProductRatingBySkuRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1GetProductRatingBySkuRequest interface. + */ +export declare function instanceOfV1GetProductRatingBySkuRequest(value: object): value is V1GetProductRatingBySkuRequest; +export declare function V1GetProductRatingBySkuRequestFromJSON(json: any): V1GetProductRatingBySkuRequest; +export declare function V1GetProductRatingBySkuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductRatingBySkuRequest; +export declare function V1GetProductRatingBySkuRequestToJSON(value?: V1GetProductRatingBySkuRequest | null): any; diff --git a/dist/esm/models/V1GetProductRatingBySkuRequest.js b/dist/esm/models/V1GetProductRatingBySkuRequest.js new file mode 100644 index 0000000..b0b9c2b --- /dev/null +++ b/dist/esm/models/V1GetProductRatingBySkuRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetProductRatingBySkuRequest interface. + */ +export function instanceOfV1GetProductRatingBySkuRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1GetProductRatingBySkuRequestFromJSON(json) { + return V1GetProductRatingBySkuRequestFromJSONTyped(json, false); +} +export function V1GetProductRatingBySkuRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +export function V1GetProductRatingBySkuRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/V1GetProductRatingBySkuResponse.d.ts b/dist/esm/models/V1GetProductRatingBySkuResponse.d.ts new file mode 100644 index 0000000..3b4a299 --- /dev/null +++ b/dist/esm/models/V1GetProductRatingBySkuResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductRatingBySkuResponseProductRating } from './GetProductRatingBySkuResponseProductRating'; +/** + * + * @export + * @interface V1GetProductRatingBySkuResponse + */ +export interface V1GetProductRatingBySkuResponse { + /** + * Контент-рейтинг товаров. + * @type {Array} + * @memberof V1GetProductRatingBySkuResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1GetProductRatingBySkuResponse interface. + */ +export declare function instanceOfV1GetProductRatingBySkuResponse(value: object): value is V1GetProductRatingBySkuResponse; +export declare function V1GetProductRatingBySkuResponseFromJSON(json: any): V1GetProductRatingBySkuResponse; +export declare function V1GetProductRatingBySkuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductRatingBySkuResponse; +export declare function V1GetProductRatingBySkuResponseToJSON(value?: V1GetProductRatingBySkuResponse | null): any; diff --git a/dist/esm/models/V1GetProductRatingBySkuResponse.js b/dist/esm/models/V1GetProductRatingBySkuResponse.js new file mode 100644 index 0000000..f43283d --- /dev/null +++ b/dist/esm/models/V1GetProductRatingBySkuResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetProductRatingBySkuResponseProductRatingFromJSON, GetProductRatingBySkuResponseProductRatingToJSON, } from './GetProductRatingBySkuResponseProductRating'; +/** + * Check if a given object implements the V1GetProductRatingBySkuResponse interface. + */ +export function instanceOfV1GetProductRatingBySkuResponse(value) { + return true; +} +export function V1GetProductRatingBySkuResponseFromJSON(json) { + return V1GetProductRatingBySkuResponseFromJSONTyped(json, false); +} +export function V1GetProductRatingBySkuResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(GetProductRatingBySkuResponseProductRatingFromJSON)), + }; +} +export function V1GetProductRatingBySkuResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(GetProductRatingBySkuResponseProductRatingToJSON)), + }; +} diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityRequest.d.ts b/dist/esm/models/V1GetProductStairwayDiscountByQuantityRequest.d.ts new file mode 100644 index 0000000..5b296ec --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductStairwayDiscountByQuantityRequest + */ +export interface V1GetProductStairwayDiscountByQuantityRequest { + /** + * Список идентификаторов товара в системе Ozon — SKU. + * @type {Array} + * @memberof V1GetProductStairwayDiscountByQuantityRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityRequest interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityRequest(value: object): value is V1GetProductStairwayDiscountByQuantityRequest; +export declare function V1GetProductStairwayDiscountByQuantityRequestFromJSON(json: any): V1GetProductStairwayDiscountByQuantityRequest; +export declare function V1GetProductStairwayDiscountByQuantityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityRequest; +export declare function V1GetProductStairwayDiscountByQuantityRequestToJSON(value?: V1GetProductStairwayDiscountByQuantityRequest | null): any; diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityRequest.js b/dist/esm/models/V1GetProductStairwayDiscountByQuantityRequest.js new file mode 100644 index 0000000..b51aef9 --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityRequest interface. + */ +export function instanceOfV1GetProductStairwayDiscountByQuantityRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1GetProductStairwayDiscountByQuantityRequestFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityRequestFromJSONTyped(json, false); +} +export function V1GetProductStairwayDiscountByQuantityRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +export function V1GetProductStairwayDiscountByQuantityRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponse.d.ts b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponse.d.ts new file mode 100644 index 0000000..e9c4ed9 --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetProductStairwayDiscountByQuantityResponseStairways } from './V1GetProductStairwayDiscountByQuantityResponseStairways'; +/** + * + * @export + * @interface V1GetProductStairwayDiscountByQuantityResponse + */ +export interface V1GetProductStairwayDiscountByQuantityResponse { + /** + * Информация о скидке от количества по конкретному товару. + * @type {Array} + * @memberof V1GetProductStairwayDiscountByQuantityResponse + */ + stairways?: Array; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponse interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityResponse(value: object): value is V1GetProductStairwayDiscountByQuantityResponse; +export declare function V1GetProductStairwayDiscountByQuantityResponseFromJSON(json: any): V1GetProductStairwayDiscountByQuantityResponse; +export declare function V1GetProductStairwayDiscountByQuantityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityResponse; +export declare function V1GetProductStairwayDiscountByQuantityResponseToJSON(value?: V1GetProductStairwayDiscountByQuantityResponse | null): any; diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponse.js b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponse.js new file mode 100644 index 0000000..32f8272 --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON, V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON, } from './V1GetProductStairwayDiscountByQuantityResponseStairways'; +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponse interface. + */ +export function instanceOfV1GetProductStairwayDiscountByQuantityResponse(value) { + return true; +} +export function V1GetProductStairwayDiscountByQuantityResponseFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityResponseFromJSONTyped(json, false); +} +export function V1GetProductStairwayDiscountByQuantityResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stairways': json['stairways'] == null ? undefined : (json['stairways'].map(V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON)), + }; +} +export function V1GetProductStairwayDiscountByQuantityResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'stairways': value['stairways'] == null ? undefined : (value['stairways'].map(V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON)), + }; +} diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairways.d.ts b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairways.d.ts new file mode 100644 index 0000000..24c7ff0 --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairways.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StatusEnum } from './StatusEnum'; +import type { V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway } from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway'; +/** + * + * @export + * @interface V1GetProductStairwayDiscountByQuantityResponseStairways + */ +export interface V1GetProductStairwayDiscountByQuantityResponseStairways { + /** + * `true`, если скидка от количества включена. + * + * @type {boolean} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairways + */ + enabled?: boolean; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairways + */ + sku?: number; + /** + * + * @type {V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairways + */ + stairway?: V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; + /** + * + * @type {StatusEnum} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairways + */ + status?: StatusEnum; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairways interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairways(value: object): value is V1GetProductStairwayDiscountByQuantityResponseStairways; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON(json: any): V1GetProductStairwayDiscountByQuantityResponseStairways; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityResponseStairways; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON(value?: V1GetProductStairwayDiscountByQuantityResponseStairways | null): any; diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairways.js b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairways.js new file mode 100644 index 0000000..35d98a1 --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairways.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { StatusEnumFromJSON, StatusEnumToJSON, } from './StatusEnum'; +import { V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON, V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON, } from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway'; +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairways interface. + */ +export function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairways(value) { + return true; +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSONTyped(json, false); +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'stairway': json['stairway'] == null ? undefined : V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON(json['stairway']), + 'status': json['status'] == null ? undefined : StatusEnumFromJSON(json['status']), + }; +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'sku': value['sku'], + 'stairway': V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON(value['stairway']), + 'status': StatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.d.ts b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.d.ts new file mode 100644 index 0000000..1e6363e --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep } from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep'; +/** + * Информация об уровне скидки от количества. + * @export + * @interface V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway + */ +export interface V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway { + /** + * Информация об уровнях скидки. + * @type {Array} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway + */ + steps?: Array; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairway(value: object): value is V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON(json: any): V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON(value?: V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway | null): any; diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.js b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.js new file mode 100644 index 0000000..505aa1e --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON, V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON, } from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep'; +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway interface. + */ +export function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairway(value) { + return true; +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSONTyped(json, false); +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'steps': json['steps'] == null ? undefined : (json['steps'].map(V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON)), + }; +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON(value) { + if (value == null) { + return value; + } + return { + 'steps': value['steps'] == null ? undefined : (value['steps'].map(V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON)), + }; +} diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.d.ts b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.d.ts new file mode 100644 index 0000000..0d3f39f --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep + */ +export interface V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep { + /** + * Размер скидки в процентах. + * @type {number} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep + */ + discount?: number; + /** + * Количество товара в заказе для применения скидки. + * @type {number} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep + */ + quantity?: number; + /** + * Уровень скидки. + * @type {number} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep + */ + step?: number; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep(value: object): value is V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON(json: any): V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON(value?: V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep | null): any; diff --git a/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.js b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.js new file mode 100644 index 0000000..3240a67 --- /dev/null +++ b/dist/esm/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep interface. + */ +export function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep(value) { + return true; +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSONTyped(json, false); +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount': json['discount'] == null ? undefined : json['discount'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'step': json['step'] == null ? undefined : json['step'], + }; +} +export function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount': value['discount'], + 'quantity': value['quantity'], + 'step': value['step'], + }; +} diff --git a/dist/esm/models/V1GetRealizationReportByDayRequest.d.ts b/dist/esm/models/V1GetRealizationReportByDayRequest.d.ts new file mode 100644 index 0000000..1656121 --- /dev/null +++ b/dist/esm/models/V1GetRealizationReportByDayRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetRealizationReportByDayRequest + */ +export interface V1GetRealizationReportByDayRequest { + /** + * День. + * @type {number} + * @memberof V1GetRealizationReportByDayRequest + */ + day: number; + /** + * Месяц. + * @type {number} + * @memberof V1GetRealizationReportByDayRequest + */ + month: number; + /** + * Год. + * @type {number} + * @memberof V1GetRealizationReportByDayRequest + */ + year: number; +} +/** + * Check if a given object implements the V1GetRealizationReportByDayRequest interface. + */ +export declare function instanceOfV1GetRealizationReportByDayRequest(value: object): value is V1GetRealizationReportByDayRequest; +export declare function V1GetRealizationReportByDayRequestFromJSON(json: any): V1GetRealizationReportByDayRequest; +export declare function V1GetRealizationReportByDayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRealizationReportByDayRequest; +export declare function V1GetRealizationReportByDayRequestToJSON(value?: V1GetRealizationReportByDayRequest | null): any; diff --git a/dist/esm/models/V1GetRealizationReportByDayRequest.js b/dist/esm/models/V1GetRealizationReportByDayRequest.js new file mode 100644 index 0000000..292c6a9 --- /dev/null +++ b/dist/esm/models/V1GetRealizationReportByDayRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetRealizationReportByDayRequest interface. + */ +export function instanceOfV1GetRealizationReportByDayRequest(value) { + if (!('day' in value) || value['day'] === undefined) + return false; + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('year' in value) || value['year'] === undefined) + return false; + return true; +} +export function V1GetRealizationReportByDayRequestFromJSON(json) { + return V1GetRealizationReportByDayRequestFromJSONTyped(json, false); +} +export function V1GetRealizationReportByDayRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'], + 'month': json['month'], + 'year': json['year'], + }; +} +export function V1GetRealizationReportByDayRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/esm/models/V1GetRealizationReportPostingRequest.d.ts b/dist/esm/models/V1GetRealizationReportPostingRequest.d.ts new file mode 100644 index 0000000..ba82f95 --- /dev/null +++ b/dist/esm/models/V1GetRealizationReportPostingRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetRealizationReportPostingRequest + */ +export interface V1GetRealizationReportPostingRequest { + /** + * Месяц. + * @type {number} + * @memberof V1GetRealizationReportPostingRequest + */ + month: number; + /** + * Год. + * @type {number} + * @memberof V1GetRealizationReportPostingRequest + */ + year: number; +} +/** + * Check if a given object implements the V1GetRealizationReportPostingRequest interface. + */ +export declare function instanceOfV1GetRealizationReportPostingRequest(value: object): value is V1GetRealizationReportPostingRequest; +export declare function V1GetRealizationReportPostingRequestFromJSON(json: any): V1GetRealizationReportPostingRequest; +export declare function V1GetRealizationReportPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRealizationReportPostingRequest; +export declare function V1GetRealizationReportPostingRequestToJSON(value?: V1GetRealizationReportPostingRequest | null): any; diff --git a/dist/esm/models/V1GetRealizationReportPostingRequest.js b/dist/esm/models/V1GetRealizationReportPostingRequest.js new file mode 100644 index 0000000..e483857 --- /dev/null +++ b/dist/esm/models/V1GetRealizationReportPostingRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetRealizationReportPostingRequest interface. + */ +export function instanceOfV1GetRealizationReportPostingRequest(value) { + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('year' in value) || value['year'] === undefined) + return false; + return true; +} +export function V1GetRealizationReportPostingRequestFromJSON(json) { + return V1GetRealizationReportPostingRequestFromJSONTyped(json, false); +} +export function V1GetRealizationReportPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'month': json['month'], + 'year': json['year'], + }; +} +export function V1GetRealizationReportPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/esm/models/V1GetRealizationReportPostingResponse.d.ts b/dist/esm/models/V1GetRealizationReportPostingResponse.d.ts new file mode 100644 index 0000000..1e5c477 --- /dev/null +++ b/dist/esm/models/V1GetRealizationReportPostingResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetRealizationReportResponseV2Header } from './GetRealizationReportResponseV2Header'; +import type { V1GetRealizationReportPostingResponseRow } from './V1GetRealizationReportPostingResponseRow'; +/** + * Результат запроса. + * @export + * @interface V1GetRealizationReportPostingResponse + */ +export interface V1GetRealizationReportPostingResponse { + /** + * + * @type {GetRealizationReportResponseV2Header} + * @memberof V1GetRealizationReportPostingResponse + */ + header?: GetRealizationReportResponseV2Header; + /** + * Таблица отчёта. + * @type {Array} + * @memberof V1GetRealizationReportPostingResponse + */ + rows?: Array; +} +/** + * Check if a given object implements the V1GetRealizationReportPostingResponse interface. + */ +export declare function instanceOfV1GetRealizationReportPostingResponse(value: object): value is V1GetRealizationReportPostingResponse; +export declare function V1GetRealizationReportPostingResponseFromJSON(json: any): V1GetRealizationReportPostingResponse; +export declare function V1GetRealizationReportPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRealizationReportPostingResponse; +export declare function V1GetRealizationReportPostingResponseToJSON(value?: V1GetRealizationReportPostingResponse | null): any; diff --git a/dist/esm/models/V1GetRealizationReportPostingResponse.js b/dist/esm/models/V1GetRealizationReportPostingResponse.js new file mode 100644 index 0000000..1d4d3d5 --- /dev/null +++ b/dist/esm/models/V1GetRealizationReportPostingResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetRealizationReportResponseV2HeaderFromJSON, GetRealizationReportResponseV2HeaderToJSON, } from './GetRealizationReportResponseV2Header'; +import { V1GetRealizationReportPostingResponseRowFromJSON, V1GetRealizationReportPostingResponseRowToJSON, } from './V1GetRealizationReportPostingResponseRow'; +/** + * Check if a given object implements the V1GetRealizationReportPostingResponse interface. + */ +export function instanceOfV1GetRealizationReportPostingResponse(value) { + return true; +} +export function V1GetRealizationReportPostingResponseFromJSON(json) { + return V1GetRealizationReportPostingResponseFromJSONTyped(json, false); +} +export function V1GetRealizationReportPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'header': json['header'] == null ? undefined : GetRealizationReportResponseV2HeaderFromJSON(json['header']), + 'rows': json['rows'] == null ? undefined : (json['rows'].map(V1GetRealizationReportPostingResponseRowFromJSON)), + }; +} +export function V1GetRealizationReportPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'header': GetRealizationReportResponseV2HeaderToJSON(value['header']), + 'rows': value['rows'] == null ? undefined : (value['rows'].map(V1GetRealizationReportPostingResponseRowToJSON)), + }; +} diff --git a/dist/esm/models/V1GetRealizationReportPostingResponseRow.d.ts b/dist/esm/models/V1GetRealizationReportPostingResponseRow.d.ts new file mode 100644 index 0000000..8ca2489 --- /dev/null +++ b/dist/esm/models/V1GetRealizationReportPostingResponseRow.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RowItemCommissionReturn } from './RowItemCommissionReturn'; +import type { RowItemLegalEntityDocument } from './RowItemLegalEntityDocument'; +import type { RowItem } from './RowItem'; +import type { RowItemCommission } from './RowItemCommission'; +import type { RowItemOrder } from './RowItemOrder'; +/** + * + * @export + * @interface V1GetRealizationReportPostingResponseRow + */ +export interface V1GetRealizationReportPostingResponseRow { + /** + * Доля комиссии за продажу по категории. + * @type {number} + * @memberof V1GetRealizationReportPostingResponseRow + */ + commission_ratio?: number; + /** + * + * @type {RowItemCommission} + * @memberof V1GetRealizationReportPostingResponseRow + */ + delivery_commission?: RowItemCommission; + /** + * + * @type {RowItem} + * @memberof V1GetRealizationReportPostingResponseRow + */ + item?: RowItem; + /** + * + * @type {RowItemCommissionReturn} + * @memberof V1GetRealizationReportPostingResponseRow + */ + return_commission?: RowItemCommissionReturn; + /** + * Номер строки в отчёте. + * @type {number} + * @memberof V1GetRealizationReportPostingResponseRow + */ + row_number?: number; + /** + * Цена продавца с учётом скидки. + * @type {number} + * @memberof V1GetRealizationReportPostingResponseRow + */ + seller_price_per_instance?: number; + /** + * + * @type {RowItemOrder} + * @memberof V1GetRealizationReportPostingResponseRow + */ + order?: RowItemOrder; + /** + * + * @type {RowItemLegalEntityDocument} + * @memberof V1GetRealizationReportPostingResponseRow + */ + legal_entity_document?: RowItemLegalEntityDocument; +} +/** + * Check if a given object implements the V1GetRealizationReportPostingResponseRow interface. + */ +export declare function instanceOfV1GetRealizationReportPostingResponseRow(value: object): value is V1GetRealizationReportPostingResponseRow; +export declare function V1GetRealizationReportPostingResponseRowFromJSON(json: any): V1GetRealizationReportPostingResponseRow; +export declare function V1GetRealizationReportPostingResponseRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRealizationReportPostingResponseRow; +export declare function V1GetRealizationReportPostingResponseRowToJSON(value?: V1GetRealizationReportPostingResponseRow | null): any; diff --git a/dist/esm/models/V1GetRealizationReportPostingResponseRow.js b/dist/esm/models/V1GetRealizationReportPostingResponseRow.js new file mode 100644 index 0000000..91a5a0e --- /dev/null +++ b/dist/esm/models/V1GetRealizationReportPostingResponseRow.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RowItemCommissionReturnFromJSON, RowItemCommissionReturnToJSON, } from './RowItemCommissionReturn'; +import { RowItemLegalEntityDocumentFromJSON, RowItemLegalEntityDocumentToJSON, } from './RowItemLegalEntityDocument'; +import { RowItemFromJSON, RowItemToJSON, } from './RowItem'; +import { RowItemCommissionFromJSON, RowItemCommissionToJSON, } from './RowItemCommission'; +import { RowItemOrderFromJSON, RowItemOrderToJSON, } from './RowItemOrder'; +/** + * Check if a given object implements the V1GetRealizationReportPostingResponseRow interface. + */ +export function instanceOfV1GetRealizationReportPostingResponseRow(value) { + return true; +} +export function V1GetRealizationReportPostingResponseRowFromJSON(json) { + return V1GetRealizationReportPostingResponseRowFromJSONTyped(json, false); +} +export function V1GetRealizationReportPostingResponseRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commission_ratio': json['commission_ratio'] == null ? undefined : json['commission_ratio'], + 'delivery_commission': json['delivery_commission'] == null ? undefined : RowItemCommissionFromJSON(json['delivery_commission']), + 'item': json['item'] == null ? undefined : RowItemFromJSON(json['item']), + 'return_commission': json['return_commission'] == null ? undefined : RowItemCommissionReturnFromJSON(json['return_commission']), + 'row_number': json['row_number'] == null ? undefined : json['row_number'], + 'seller_price_per_instance': json['seller_price_per_instance'] == null ? undefined : json['seller_price_per_instance'], + 'order': json['order'] == null ? undefined : RowItemOrderFromJSON(json['order']), + 'legal_entity_document': json['legal_entity_document'] == null ? undefined : RowItemLegalEntityDocumentFromJSON(json['legal_entity_document']), + }; +} +export function V1GetRealizationReportPostingResponseRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'commission_ratio': value['commission_ratio'], + 'delivery_commission': RowItemCommissionToJSON(value['delivery_commission']), + 'item': RowItemToJSON(value['item']), + 'return_commission': RowItemCommissionReturnToJSON(value['return_commission']), + 'row_number': value['row_number'], + 'seller_price_per_instance': value['seller_price_per_instance'], + 'order': RowItemOrderToJSON(value['order']), + 'legal_entity_document': RowItemLegalEntityDocumentToJSON(value['legal_entity_document']), + }; +} diff --git a/dist/esm/models/V1GetReceiptRequest.d.ts b/dist/esm/models/V1GetReceiptRequest.d.ts new file mode 100644 index 0000000..83a903a --- /dev/null +++ b/dist/esm/models/V1GetReceiptRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetReceiptRequest + */ +export interface V1GetReceiptRequest { + /** + * Идентификатор чека. Получите значение параметра методом [/v1/receipts/seller/list](#operation/ReceiptsSellerList). + * @type {string} + * @memberof V1GetReceiptRequest + */ + receipt_id: string; +} +/** + * Check if a given object implements the V1GetReceiptRequest interface. + */ +export declare function instanceOfV1GetReceiptRequest(value: object): value is V1GetReceiptRequest; +export declare function V1GetReceiptRequestFromJSON(json: any): V1GetReceiptRequest; +export declare function V1GetReceiptRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetReceiptRequest; +export declare function V1GetReceiptRequestToJSON(value?: V1GetReceiptRequest | null): any; diff --git a/dist/esm/models/V1GetReceiptRequest.js b/dist/esm/models/V1GetReceiptRequest.js new file mode 100644 index 0000000..a166e62 --- /dev/null +++ b/dist/esm/models/V1GetReceiptRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetReceiptRequest interface. + */ +export function instanceOfV1GetReceiptRequest(value) { + if (!('receipt_id' in value) || value['receipt_id'] === undefined) + return false; + return true; +} +export function V1GetReceiptRequestFromJSON(json) { + return V1GetReceiptRequestFromJSONTyped(json, false); +} +export function V1GetReceiptRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'receipt_id': json['receipt_id'], + }; +} +export function V1GetReceiptRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'receipt_id': value['receipt_id'], + }; +} diff --git a/dist/esm/models/V1GetReceiptResponse.d.ts b/dist/esm/models/V1GetReceiptResponse.d.ts new file mode 100644 index 0000000..03586d1 --- /dev/null +++ b/dist/esm/models/V1GetReceiptResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetReceiptResponse + */ +export interface V1GetReceiptResponse { + /** + * PDF-файл с чеком в бинарном виде. + * @type {string} + * @memberof V1GetReceiptResponse + */ + content?: string; +} +/** + * Check if a given object implements the V1GetReceiptResponse interface. + */ +export declare function instanceOfV1GetReceiptResponse(value: object): value is V1GetReceiptResponse; +export declare function V1GetReceiptResponseFromJSON(json: any): V1GetReceiptResponse; +export declare function V1GetReceiptResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetReceiptResponse; +export declare function V1GetReceiptResponseToJSON(value?: V1GetReceiptResponse | null): any; diff --git a/dist/esm/models/V1GetReceiptResponse.js b/dist/esm/models/V1GetReceiptResponse.js new file mode 100644 index 0000000..b202360 --- /dev/null +++ b/dist/esm/models/V1GetReceiptResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetReceiptResponse interface. + */ +export function instanceOfV1GetReceiptResponse(value) { + return true; +} +export function V1GetReceiptResponseFromJSON(json) { + return V1GetReceiptResponseFromJSONTyped(json, false); +} +export function V1GetReceiptResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content': json['content'] == null ? undefined : json['content'], + }; +} +export function V1GetReceiptResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'content': value['content'], + }; +} diff --git a/dist/esm/models/V1GetRestrictionsRequest.d.ts b/dist/esm/models/V1GetRestrictionsRequest.d.ts new file mode 100644 index 0000000..58c7b1f --- /dev/null +++ b/dist/esm/models/V1GetRestrictionsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetRestrictionsRequest + */ +export interface V1GetRestrictionsRequest { + /** + * Номер отправления, для которого нужно определить ограничения. + * @type {string} + * @memberof V1GetRestrictionsRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1GetRestrictionsRequest interface. + */ +export declare function instanceOfV1GetRestrictionsRequest(value: object): value is V1GetRestrictionsRequest; +export declare function V1GetRestrictionsRequestFromJSON(json: any): V1GetRestrictionsRequest; +export declare function V1GetRestrictionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRestrictionsRequest; +export declare function V1GetRestrictionsRequestToJSON(value?: V1GetRestrictionsRequest | null): any; diff --git a/dist/esm/models/V1GetRestrictionsRequest.js b/dist/esm/models/V1GetRestrictionsRequest.js new file mode 100644 index 0000000..6744608 --- /dev/null +++ b/dist/esm/models/V1GetRestrictionsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetRestrictionsRequest interface. + */ +export function instanceOfV1GetRestrictionsRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1GetRestrictionsRequestFromJSON(json) { + return V1GetRestrictionsRequestFromJSONTyped(json, false); +} +export function V1GetRestrictionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1GetRestrictionsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1GetRestrictionsResponse.d.ts b/dist/esm/models/V1GetRestrictionsResponse.d.ts new file mode 100644 index 0000000..efbb20a --- /dev/null +++ b/dist/esm/models/V1GetRestrictionsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Restriction } from './V1Restriction'; +/** + * + * @export + * @interface V1GetRestrictionsResponse + */ +export interface V1GetRestrictionsResponse { + /** + * + * @type {V1Restriction} + * @memberof V1GetRestrictionsResponse + */ + result?: V1Restriction; +} +/** + * Check if a given object implements the V1GetRestrictionsResponse interface. + */ +export declare function instanceOfV1GetRestrictionsResponse(value: object): value is V1GetRestrictionsResponse; +export declare function V1GetRestrictionsResponseFromJSON(json: any): V1GetRestrictionsResponse; +export declare function V1GetRestrictionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRestrictionsResponse; +export declare function V1GetRestrictionsResponseToJSON(value?: V1GetRestrictionsResponse | null): any; diff --git a/dist/esm/models/V1GetRestrictionsResponse.js b/dist/esm/models/V1GetRestrictionsResponse.js new file mode 100644 index 0000000..de6a845 --- /dev/null +++ b/dist/esm/models/V1GetRestrictionsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1RestrictionFromJSON, V1RestrictionToJSON, } from './V1Restriction'; +/** + * Check if a given object implements the V1GetRestrictionsResponse interface. + */ +export function instanceOfV1GetRestrictionsResponse(value) { + return true; +} +export function V1GetRestrictionsResponseFromJSON(json) { + return V1GetRestrictionsResponseFromJSONTyped(json, false); +} +export function V1GetRestrictionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1RestrictionFromJSON(json['result']), + }; +} +export function V1GetRestrictionsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1RestrictionToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1GetReturnsListRequest.d.ts b/dist/esm/models/V1GetReturnsListRequest.d.ts new file mode 100644 index 0000000..58de2b7 --- /dev/null +++ b/dist/esm/models/V1GetReturnsListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListRequestFilter } from './GetReturnsListRequestFilter'; +/** + * + * @export + * @interface V1GetReturnsListRequest + */ +export interface V1GetReturnsListRequest { + /** + * + * @type {GetReturnsListRequestFilter} + * @memberof V1GetReturnsListRequest + */ + filter?: GetReturnsListRequestFilter; + /** + * Количество подгружаемых возвратов. Максимальное значение — 500. + * @type {number} + * @memberof V1GetReturnsListRequest + */ + limit: number; + /** + * Идентификатор последнего подгруженного возврата. + * @type {number} + * @memberof V1GetReturnsListRequest + */ + last_id?: number; +} +/** + * Check if a given object implements the V1GetReturnsListRequest interface. + */ +export declare function instanceOfV1GetReturnsListRequest(value: object): value is V1GetReturnsListRequest; +export declare function V1GetReturnsListRequestFromJSON(json: any): V1GetReturnsListRequest; +export declare function V1GetReturnsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetReturnsListRequest; +export declare function V1GetReturnsListRequestToJSON(value?: V1GetReturnsListRequest | null): any; diff --git a/dist/esm/models/V1GetReturnsListRequest.js b/dist/esm/models/V1GetReturnsListRequest.js new file mode 100644 index 0000000..cd41cbc --- /dev/null +++ b/dist/esm/models/V1GetReturnsListRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetReturnsListRequestFilterFromJSON, GetReturnsListRequestFilterToJSON, } from './GetReturnsListRequestFilter'; +/** + * Check if a given object implements the V1GetReturnsListRequest interface. + */ +export function instanceOfV1GetReturnsListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1GetReturnsListRequestFromJSON(json) { + return V1GetReturnsListRequestFromJSONTyped(json, false); +} +export function V1GetReturnsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : GetReturnsListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1GetReturnsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': GetReturnsListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1GetReturnsListResponse.d.ts b/dist/esm/models/V1GetReturnsListResponse.d.ts new file mode 100644 index 0000000..4b015cd --- /dev/null +++ b/dist/esm/models/V1GetReturnsListResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListResponseReturnsItem } from './GetReturnsListResponseReturnsItem'; +/** + * + * @export + * @interface V1GetReturnsListResponse + */ +export interface V1GetReturnsListResponse { + /** + * Информация о возвратах. + * @type {Array} + * @memberof V1GetReturnsListResponse + */ + returns?: Array; + /** + * `true`, если у продавца есть другие возвраты. + * + * @type {boolean} + * @memberof V1GetReturnsListResponse + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V1GetReturnsListResponse interface. + */ +export declare function instanceOfV1GetReturnsListResponse(value: object): value is V1GetReturnsListResponse; +export declare function V1GetReturnsListResponseFromJSON(json: any): V1GetReturnsListResponse; +export declare function V1GetReturnsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetReturnsListResponse; +export declare function V1GetReturnsListResponseToJSON(value?: V1GetReturnsListResponse | null): any; diff --git a/dist/esm/models/V1GetReturnsListResponse.js b/dist/esm/models/V1GetReturnsListResponse.js new file mode 100644 index 0000000..62f3bf0 --- /dev/null +++ b/dist/esm/models/V1GetReturnsListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetReturnsListResponseReturnsItemFromJSON, GetReturnsListResponseReturnsItemToJSON, } from './GetReturnsListResponseReturnsItem'; +/** + * Check if a given object implements the V1GetReturnsListResponse interface. + */ +export function instanceOfV1GetReturnsListResponse(value) { + return true; +} +export function V1GetReturnsListResponseFromJSON(json) { + return V1GetReturnsListResponseFromJSONTyped(json, false); +} +export function V1GetReturnsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'returns': json['returns'] == null ? undefined : (json['returns'].map(GetReturnsListResponseReturnsItemFromJSON)), + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +export function V1GetReturnsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'returns': value['returns'] == null ? undefined : (value['returns'].map(GetReturnsListResponseReturnsItemToJSON)), + 'has_next': value['has_next'], + }; +} diff --git a/dist/esm/models/V1GetStrategyIDsByItemIDsResponse.d.ts b/dist/esm/models/V1GetStrategyIDsByItemIDsResponse.d.ts new file mode 100644 index 0000000..0717348 --- /dev/null +++ b/dist/esm/models/V1GetStrategyIDsByItemIDsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetStrategyIDsByItemIDsResponseResult } from './V1GetStrategyIDsByItemIDsResponseResult'; +/** + * + * @export + * @interface V1GetStrategyIDsByItemIDsResponse + */ +export interface V1GetStrategyIDsByItemIDsResponse { + /** + * + * @type {V1GetStrategyIDsByItemIDsResponseResult} + * @memberof V1GetStrategyIDsByItemIDsResponse + */ + result?: V1GetStrategyIDsByItemIDsResponseResult; +} +/** + * Check if a given object implements the V1GetStrategyIDsByItemIDsResponse interface. + */ +export declare function instanceOfV1GetStrategyIDsByItemIDsResponse(value: object): value is V1GetStrategyIDsByItemIDsResponse; +export declare function V1GetStrategyIDsByItemIDsResponseFromJSON(json: any): V1GetStrategyIDsByItemIDsResponse; +export declare function V1GetStrategyIDsByItemIDsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyIDsByItemIDsResponse; +export declare function V1GetStrategyIDsByItemIDsResponseToJSON(value?: V1GetStrategyIDsByItemIDsResponse | null): any; diff --git a/dist/esm/models/V1GetStrategyIDsByItemIDsResponse.js b/dist/esm/models/V1GetStrategyIDsByItemIDsResponse.js new file mode 100644 index 0000000..5ec3a32 --- /dev/null +++ b/dist/esm/models/V1GetStrategyIDsByItemIDsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetStrategyIDsByItemIDsResponseResultFromJSON, V1GetStrategyIDsByItemIDsResponseResultToJSON, } from './V1GetStrategyIDsByItemIDsResponseResult'; +/** + * Check if a given object implements the V1GetStrategyIDsByItemIDsResponse interface. + */ +export function instanceOfV1GetStrategyIDsByItemIDsResponse(value) { + return true; +} +export function V1GetStrategyIDsByItemIDsResponseFromJSON(json) { + return V1GetStrategyIDsByItemIDsResponseFromJSONTyped(json, false); +} +export function V1GetStrategyIDsByItemIDsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1GetStrategyIDsByItemIDsResponseResultFromJSON(json['result']), + }; +} +export function V1GetStrategyIDsByItemIDsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1GetStrategyIDsByItemIDsResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1GetStrategyIDsByItemIDsResponseResult.d.ts b/dist/esm/models/V1GetStrategyIDsByItemIDsResponseResult.d.ts new file mode 100644 index 0000000..70cc068 --- /dev/null +++ b/dist/esm/models/V1GetStrategyIDsByItemIDsResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetStrategyIDsByItemIDsResponseProductInfo } from './GetStrategyIDsByItemIDsResponseProductInfo'; +/** + * Результат работы метода. + * @export + * @interface V1GetStrategyIDsByItemIDsResponseResult + */ +export interface V1GetStrategyIDsByItemIDsResponseResult { + /** + * Информация о товаре. + * @type {Array} + * @memberof V1GetStrategyIDsByItemIDsResponseResult + */ + products_info?: Array; +} +/** + * Check if a given object implements the V1GetStrategyIDsByItemIDsResponseResult interface. + */ +export declare function instanceOfV1GetStrategyIDsByItemIDsResponseResult(value: object): value is V1GetStrategyIDsByItemIDsResponseResult; +export declare function V1GetStrategyIDsByItemIDsResponseResultFromJSON(json: any): V1GetStrategyIDsByItemIDsResponseResult; +export declare function V1GetStrategyIDsByItemIDsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyIDsByItemIDsResponseResult; +export declare function V1GetStrategyIDsByItemIDsResponseResultToJSON(value?: V1GetStrategyIDsByItemIDsResponseResult | null): any; diff --git a/dist/esm/models/V1GetStrategyIDsByItemIDsResponseResult.js b/dist/esm/models/V1GetStrategyIDsByItemIDsResponseResult.js new file mode 100644 index 0000000..9290501 --- /dev/null +++ b/dist/esm/models/V1GetStrategyIDsByItemIDsResponseResult.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetStrategyIDsByItemIDsResponseProductInfoFromJSON, GetStrategyIDsByItemIDsResponseProductInfoToJSON, } from './GetStrategyIDsByItemIDsResponseProductInfo'; +/** + * Check if a given object implements the V1GetStrategyIDsByItemIDsResponseResult interface. + */ +export function instanceOfV1GetStrategyIDsByItemIDsResponseResult(value) { + return true; +} +export function V1GetStrategyIDsByItemIDsResponseResultFromJSON(json) { + return V1GetStrategyIDsByItemIDsResponseResultFromJSONTyped(json, false); +} +export function V1GetStrategyIDsByItemIDsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_info': json['products_info'] == null ? undefined : (json['products_info'].map(GetStrategyIDsByItemIDsResponseProductInfoFromJSON)), + }; +} +export function V1GetStrategyIDsByItemIDsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_info': value['products_info'] == null ? undefined : (value['products_info'].map(GetStrategyIDsByItemIDsResponseProductInfoToJSON)), + }; +} diff --git a/dist/esm/models/V1GetStrategyItemInfoRequest.d.ts b/dist/esm/models/V1GetStrategyItemInfoRequest.d.ts new file mode 100644 index 0000000..1b55001 --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetStrategyItemInfoRequest + */ +export interface V1GetStrategyItemInfoRequest { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1GetStrategyItemInfoRequest + */ + product_id: number; +} +/** + * Check if a given object implements the V1GetStrategyItemInfoRequest interface. + */ +export declare function instanceOfV1GetStrategyItemInfoRequest(value: object): value is V1GetStrategyItemInfoRequest; +export declare function V1GetStrategyItemInfoRequestFromJSON(json: any): V1GetStrategyItemInfoRequest; +export declare function V1GetStrategyItemInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemInfoRequest; +export declare function V1GetStrategyItemInfoRequestToJSON(value?: V1GetStrategyItemInfoRequest | null): any; diff --git a/dist/esm/models/V1GetStrategyItemInfoRequest.js b/dist/esm/models/V1GetStrategyItemInfoRequest.js new file mode 100644 index 0000000..4bcc0d3 --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetStrategyItemInfoRequest interface. + */ +export function instanceOfV1GetStrategyItemInfoRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function V1GetStrategyItemInfoRequestFromJSON(json) { + return V1GetStrategyItemInfoRequestFromJSONTyped(json, false); +} +export function V1GetStrategyItemInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +export function V1GetStrategyItemInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V1GetStrategyItemInfoResponse.d.ts b/dist/esm/models/V1GetStrategyItemInfoResponse.d.ts new file mode 100644 index 0000000..a1ff5db --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetStrategyItemInfoResponseResult } from './V1GetStrategyItemInfoResponseResult'; +/** + * + * @export + * @interface V1GetStrategyItemInfoResponse + */ +export interface V1GetStrategyItemInfoResponse { + /** + * + * @type {V1GetStrategyItemInfoResponseResult} + * @memberof V1GetStrategyItemInfoResponse + */ + result?: V1GetStrategyItemInfoResponseResult; +} +/** + * Check if a given object implements the V1GetStrategyItemInfoResponse interface. + */ +export declare function instanceOfV1GetStrategyItemInfoResponse(value: object): value is V1GetStrategyItemInfoResponse; +export declare function V1GetStrategyItemInfoResponseFromJSON(json: any): V1GetStrategyItemInfoResponse; +export declare function V1GetStrategyItemInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemInfoResponse; +export declare function V1GetStrategyItemInfoResponseToJSON(value?: V1GetStrategyItemInfoResponse | null): any; diff --git a/dist/esm/models/V1GetStrategyItemInfoResponse.js b/dist/esm/models/V1GetStrategyItemInfoResponse.js new file mode 100644 index 0000000..648ddeb --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetStrategyItemInfoResponseResultFromJSON, V1GetStrategyItemInfoResponseResultToJSON, } from './V1GetStrategyItemInfoResponseResult'; +/** + * Check if a given object implements the V1GetStrategyItemInfoResponse interface. + */ +export function instanceOfV1GetStrategyItemInfoResponse(value) { + return true; +} +export function V1GetStrategyItemInfoResponseFromJSON(json) { + return V1GetStrategyItemInfoResponseFromJSONTyped(json, false); +} +export function V1GetStrategyItemInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1GetStrategyItemInfoResponseResultFromJSON(json['result']), + }; +} +export function V1GetStrategyItemInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1GetStrategyItemInfoResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1GetStrategyItemInfoResponseResult.d.ts b/dist/esm/models/V1GetStrategyItemInfoResponseResult.d.ts new file mode 100644 index 0000000..d2592ef --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemInfoResponseResult.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface V1GetStrategyItemInfoResponseResult + */ +export interface V1GetStrategyItemInfoResponseResult { + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1GetStrategyItemInfoResponseResult + */ + strategy_id?: string; + /** + * `true`, если товар участвует в стратегии ценообразования. + * + * @type {boolean} + * @memberof V1GetStrategyItemInfoResponseResult + */ + is_enabled?: boolean; + /** + * Цена по стратегии. + * @type {number} + * @memberof V1GetStrategyItemInfoResponseResult + */ + strategy_product_price?: number; + /** + * Дата установки цены по стратегии. + * @type {string} + * @memberof V1GetStrategyItemInfoResponseResult + */ + price_downloaded_at?: string; + /** + * Идентификатор конкурента. + * @type {number} + * @memberof V1GetStrategyItemInfoResponseResult + * @deprecated + */ + strategy_competitor_id?: number; + /** + * Ссылка на товар конкурента. + * @type {string} + * @memberof V1GetStrategyItemInfoResponseResult + */ + strategy_competitor_product_url?: string; +} +/** + * Check if a given object implements the V1GetStrategyItemInfoResponseResult interface. + */ +export declare function instanceOfV1GetStrategyItemInfoResponseResult(value: object): value is V1GetStrategyItemInfoResponseResult; +export declare function V1GetStrategyItemInfoResponseResultFromJSON(json: any): V1GetStrategyItemInfoResponseResult; +export declare function V1GetStrategyItemInfoResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemInfoResponseResult; +export declare function V1GetStrategyItemInfoResponseResultToJSON(value?: V1GetStrategyItemInfoResponseResult | null): any; diff --git a/dist/esm/models/V1GetStrategyItemInfoResponseResult.js b/dist/esm/models/V1GetStrategyItemInfoResponseResult.js new file mode 100644 index 0000000..936a96c --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemInfoResponseResult.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetStrategyItemInfoResponseResult interface. + */ +export function instanceOfV1GetStrategyItemInfoResponseResult(value) { + return true; +} +export function V1GetStrategyItemInfoResponseResultFromJSON(json) { + return V1GetStrategyItemInfoResponseResultFromJSONTyped(json, false); +} +export function V1GetStrategyItemInfoResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'strategy_id': json['strategy_id'] == null ? undefined : json['strategy_id'], + 'is_enabled': json['is_enabled'] == null ? undefined : json['is_enabled'], + 'strategy_product_price': json['strategy_product_price'] == null ? undefined : json['strategy_product_price'], + 'price_downloaded_at': json['price_downloaded_at'] == null ? undefined : json['price_downloaded_at'], + 'strategy_competitor_id': json['strategy_competitor_id'] == null ? undefined : json['strategy_competitor_id'], + 'strategy_competitor_product_url': json['strategy_competitor_product_url'] == null ? undefined : json['strategy_competitor_product_url'], + }; +} +export function V1GetStrategyItemInfoResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'strategy_id': value['strategy_id'], + 'is_enabled': value['is_enabled'], + 'strategy_product_price': value['strategy_product_price'], + 'price_downloaded_at': value['price_downloaded_at'], + 'strategy_competitor_id': value['strategy_competitor_id'], + 'strategy_competitor_product_url': value['strategy_competitor_product_url'], + }; +} diff --git a/dist/esm/models/V1GetStrategyItemsResponse.d.ts b/dist/esm/models/V1GetStrategyItemsResponse.d.ts new file mode 100644 index 0000000..4c10978 --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetStrategyItemsResponseResult } from './V1GetStrategyItemsResponseResult'; +/** + * + * @export + * @interface V1GetStrategyItemsResponse + */ +export interface V1GetStrategyItemsResponse { + /** + * + * @type {V1GetStrategyItemsResponseResult} + * @memberof V1GetStrategyItemsResponse + */ + result?: V1GetStrategyItemsResponseResult; +} +/** + * Check if a given object implements the V1GetStrategyItemsResponse interface. + */ +export declare function instanceOfV1GetStrategyItemsResponse(value: object): value is V1GetStrategyItemsResponse; +export declare function V1GetStrategyItemsResponseFromJSON(json: any): V1GetStrategyItemsResponse; +export declare function V1GetStrategyItemsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemsResponse; +export declare function V1GetStrategyItemsResponseToJSON(value?: V1GetStrategyItemsResponse | null): any; diff --git a/dist/esm/models/V1GetStrategyItemsResponse.js b/dist/esm/models/V1GetStrategyItemsResponse.js new file mode 100644 index 0000000..62ec92e --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetStrategyItemsResponseResultFromJSON, V1GetStrategyItemsResponseResultToJSON, } from './V1GetStrategyItemsResponseResult'; +/** + * Check if a given object implements the V1GetStrategyItemsResponse interface. + */ +export function instanceOfV1GetStrategyItemsResponse(value) { + return true; +} +export function V1GetStrategyItemsResponseFromJSON(json) { + return V1GetStrategyItemsResponseFromJSONTyped(json, false); +} +export function V1GetStrategyItemsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1GetStrategyItemsResponseResultFromJSON(json['result']), + }; +} +export function V1GetStrategyItemsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1GetStrategyItemsResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1GetStrategyItemsResponseResult.d.ts b/dist/esm/models/V1GetStrategyItemsResponseResult.d.ts new file mode 100644 index 0000000..bee56f7 --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemsResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров. + * @export + * @interface V1GetStrategyItemsResponseResult + */ +export interface V1GetStrategyItemsResponseResult { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {Array} + * @memberof V1GetStrategyItemsResponseResult + */ + product_id?: Array; +} +/** + * Check if a given object implements the V1GetStrategyItemsResponseResult interface. + */ +export declare function instanceOfV1GetStrategyItemsResponseResult(value: object): value is V1GetStrategyItemsResponseResult; +export declare function V1GetStrategyItemsResponseResultFromJSON(json: any): V1GetStrategyItemsResponseResult; +export declare function V1GetStrategyItemsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemsResponseResult; +export declare function V1GetStrategyItemsResponseResultToJSON(value?: V1GetStrategyItemsResponseResult | null): any; diff --git a/dist/esm/models/V1GetStrategyItemsResponseResult.js b/dist/esm/models/V1GetStrategyItemsResponseResult.js new file mode 100644 index 0000000..efcec9f --- /dev/null +++ b/dist/esm/models/V1GetStrategyItemsResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetStrategyItemsResponseResult interface. + */ +export function instanceOfV1GetStrategyItemsResponseResult(value) { + return true; +} +export function V1GetStrategyItemsResponseResultFromJSON(json) { + return V1GetStrategyItemsResponseResultFromJSONTyped(json, false); +} +export function V1GetStrategyItemsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +export function V1GetStrategyItemsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V1GetStrategyListRequest.d.ts b/dist/esm/models/V1GetStrategyListRequest.d.ts new file mode 100644 index 0000000..bdf3477 --- /dev/null +++ b/dist/esm/models/V1GetStrategyListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetStrategyListRequest + */ +export interface V1GetStrategyListRequest { + /** + * Страница списка, с которой нужно выгрузить стратегии. Минимальное значение — `1`. + * @type {number} + * @memberof V1GetStrategyListRequest + */ + page: number; + /** + * Максимальное количество стратегий на странице. Допустимые значения — от `1` до `50`. + * @type {number} + * @memberof V1GetStrategyListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetStrategyListRequest interface. + */ +export declare function instanceOfV1GetStrategyListRequest(value: object): value is V1GetStrategyListRequest; +export declare function V1GetStrategyListRequestFromJSON(json: any): V1GetStrategyListRequest; +export declare function V1GetStrategyListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyListRequest; +export declare function V1GetStrategyListRequestToJSON(value?: V1GetStrategyListRequest | null): any; diff --git a/dist/esm/models/V1GetStrategyListRequest.js b/dist/esm/models/V1GetStrategyListRequest.js new file mode 100644 index 0000000..21ab2df --- /dev/null +++ b/dist/esm/models/V1GetStrategyListRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetStrategyListRequest interface. + */ +export function instanceOfV1GetStrategyListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1GetStrategyListRequestFromJSON(json) { + return V1GetStrategyListRequestFromJSONTyped(json, false); +} +export function V1GetStrategyListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'limit': json['limit'], + }; +} +export function V1GetStrategyListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1GetStrategyListResponse.d.ts b/dist/esm/models/V1GetStrategyListResponse.d.ts new file mode 100644 index 0000000..5554d8d --- /dev/null +++ b/dist/esm/models/V1GetStrategyListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetStrategyListResponseStrategy } from './GetStrategyListResponseStrategy'; +/** + * + * @export + * @interface V1GetStrategyListResponse + */ +export interface V1GetStrategyListResponse { + /** + * Список стратегий. + * @type {Array} + * @memberof V1GetStrategyListResponse + */ + strategies?: Array; + /** + * Общее количество стратегий. + * @type {number} + * @memberof V1GetStrategyListResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1GetStrategyListResponse interface. + */ +export declare function instanceOfV1GetStrategyListResponse(value: object): value is V1GetStrategyListResponse; +export declare function V1GetStrategyListResponseFromJSON(json: any): V1GetStrategyListResponse; +export declare function V1GetStrategyListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyListResponse; +export declare function V1GetStrategyListResponseToJSON(value?: V1GetStrategyListResponse | null): any; diff --git a/dist/esm/models/V1GetStrategyListResponse.js b/dist/esm/models/V1GetStrategyListResponse.js new file mode 100644 index 0000000..64327e5 --- /dev/null +++ b/dist/esm/models/V1GetStrategyListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetStrategyListResponseStrategyFromJSON, GetStrategyListResponseStrategyToJSON, } from './GetStrategyListResponseStrategy'; +/** + * Check if a given object implements the V1GetStrategyListResponse interface. + */ +export function instanceOfV1GetStrategyListResponse(value) { + return true; +} +export function V1GetStrategyListResponseFromJSON(json) { + return V1GetStrategyListResponseFromJSONTyped(json, false); +} +export function V1GetStrategyListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'strategies': json['strategies'] == null ? undefined : (json['strategies'].map(GetStrategyListResponseStrategyFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V1GetStrategyListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'strategies': value['strategies'] == null ? undefined : (value['strategies'].map(GetStrategyListResponseStrategyToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V1GetStrategyResponse.d.ts b/dist/esm/models/V1GetStrategyResponse.d.ts new file mode 100644 index 0000000..b6229a0 --- /dev/null +++ b/dist/esm/models/V1GetStrategyResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetStrategyResponseResult } from './V1GetStrategyResponseResult'; +/** + * + * @export + * @interface V1GetStrategyResponse + */ +export interface V1GetStrategyResponse { + /** + * + * @type {V1GetStrategyResponseResult} + * @memberof V1GetStrategyResponse + */ + result?: V1GetStrategyResponseResult; +} +/** + * Check if a given object implements the V1GetStrategyResponse interface. + */ +export declare function instanceOfV1GetStrategyResponse(value: object): value is V1GetStrategyResponse; +export declare function V1GetStrategyResponseFromJSON(json: any): V1GetStrategyResponse; +export declare function V1GetStrategyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyResponse; +export declare function V1GetStrategyResponseToJSON(value?: V1GetStrategyResponse | null): any; diff --git a/dist/esm/models/V1GetStrategyResponse.js b/dist/esm/models/V1GetStrategyResponse.js new file mode 100644 index 0000000..3711cec --- /dev/null +++ b/dist/esm/models/V1GetStrategyResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetStrategyResponseResultFromJSON, V1GetStrategyResponseResultToJSON, } from './V1GetStrategyResponseResult'; +/** + * Check if a given object implements the V1GetStrategyResponse interface. + */ +export function instanceOfV1GetStrategyResponse(value) { + return true; +} +export function V1GetStrategyResponseFromJSON(json) { + return V1GetStrategyResponseFromJSONTyped(json, false); +} +export function V1GetStrategyResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1GetStrategyResponseResultFromJSON(json['result']), + }; +} +export function V1GetStrategyResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1GetStrategyResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1GetStrategyResponseResult.d.ts b/dist/esm/models/V1GetStrategyResponseResult.d.ts new file mode 100644 index 0000000..1ea0404 --- /dev/null +++ b/dist/esm/models/V1GetStrategyResponseResult.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Competitor } from './V1Competitor'; +/** + * Результат работы метода. + * @export + * @interface V1GetStrategyResponseResult + */ +export interface V1GetStrategyResponseResult { + /** + * Список конкурентов. + * @type {Array} + * @memberof V1GetStrategyResponseResult + */ + competitors?: Array; + /** + * Статус стратегии: + * - `true` — включена, + * - `false` — отключена. + * + * @type {boolean} + * @memberof V1GetStrategyResponseResult + */ + enabled?: boolean; + /** + * Название стратегии. + * @type {string} + * @memberof V1GetStrategyResponseResult + */ + name?: string; + /** + * Тип стратегии: + * - `MIN_EXT_PRICE` — системная стратегия, + * - `COMP_PRICE` — пользовательская стратегия. + * + * @type {string} + * @memberof V1GetStrategyResponseResult + */ + type?: string; + /** + * Тип последнего изменения стратегии: + * - `strategyEnabled` — возобновлена, + * - `strategyDisabled` — остановлена, + * - `strategyChanged` — обновлена, + * - `strategyCreated` — создана, + * - `strategyItemsListChanged` — изменён набор товаров в стратегии. + * + * @type {string} + * @memberof V1GetStrategyResponseResult + */ + update_type?: string; +} +/** + * Check if a given object implements the V1GetStrategyResponseResult interface. + */ +export declare function instanceOfV1GetStrategyResponseResult(value: object): value is V1GetStrategyResponseResult; +export declare function V1GetStrategyResponseResultFromJSON(json: any): V1GetStrategyResponseResult; +export declare function V1GetStrategyResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyResponseResult; +export declare function V1GetStrategyResponseResultToJSON(value?: V1GetStrategyResponseResult | null): any; diff --git a/dist/esm/models/V1GetStrategyResponseResult.js b/dist/esm/models/V1GetStrategyResponseResult.js new file mode 100644 index 0000000..5d68d98 --- /dev/null +++ b/dist/esm/models/V1GetStrategyResponseResult.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CompetitorFromJSON, V1CompetitorToJSON, } from './V1Competitor'; +/** + * Check if a given object implements the V1GetStrategyResponseResult interface. + */ +export function instanceOfV1GetStrategyResponseResult(value) { + return true; +} +export function V1GetStrategyResponseResultFromJSON(json) { + return V1GetStrategyResponseResultFromJSONTyped(json, false); +} +export function V1GetStrategyResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'competitors': json['competitors'] == null ? undefined : (json['competitors'].map(V1CompetitorFromJSON)), + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + 'update_type': json['update_type'] == null ? undefined : json['update_type'], + }; +} +export function V1GetStrategyResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'competitors': value['competitors'] == null ? undefined : (value['competitors'].map(V1CompetitorToJSON)), + 'enabled': value['enabled'], + 'name': value['name'], + 'type': value['type'], + 'update_type': value['update_type'], + }; +} diff --git a/dist/esm/models/V1GetSupplierReturnsSummaryReportRequest.d.ts b/dist/esm/models/V1GetSupplierReturnsSummaryReportRequest.d.ts new file mode 100644 index 0000000..23cb10d --- /dev/null +++ b/dist/esm/models/V1GetSupplierReturnsSummaryReportRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplierReturnsSummaryReportRequest + */ +export interface V1GetSupplierReturnsSummaryReportRequest { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportRequest + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportRequest + */ + date_to: string; + /** + * Идентификатор последнего значения на странице. Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportRequest + */ + last_id?: string; + /** + * Количество элементов в ответе. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportRequest interface. + */ +export declare function instanceOfV1GetSupplierReturnsSummaryReportRequest(value: object): value is V1GetSupplierReturnsSummaryReportRequest; +export declare function V1GetSupplierReturnsSummaryReportRequestFromJSON(json: any): V1GetSupplierReturnsSummaryReportRequest; +export declare function V1GetSupplierReturnsSummaryReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplierReturnsSummaryReportRequest; +export declare function V1GetSupplierReturnsSummaryReportRequestToJSON(value?: V1GetSupplierReturnsSummaryReportRequest | null): any; diff --git a/dist/esm/models/V1GetSupplierReturnsSummaryReportRequest.js b/dist/esm/models/V1GetSupplierReturnsSummaryReportRequest.js new file mode 100644 index 0000000..75caca4 --- /dev/null +++ b/dist/esm/models/V1GetSupplierReturnsSummaryReportRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportRequest interface. + */ +export function instanceOfV1GetSupplierReturnsSummaryReportRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1GetSupplierReturnsSummaryReportRequestFromJSON(json) { + return V1GetSupplierReturnsSummaryReportRequestFromJSONTyped(json, false); +} +export function V1GetSupplierReturnsSummaryReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +export function V1GetSupplierReturnsSummaryReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1GetSupplierReturnsSummaryReportResponse.d.ts b/dist/esm/models/V1GetSupplierReturnsSummaryReportResponse.d.ts new file mode 100644 index 0000000..e11c512 --- /dev/null +++ b/dist/esm/models/V1GetSupplierReturnsSummaryReportResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetSupplierReturnsSummaryReportResponseRow } from './V1GetSupplierReturnsSummaryReportResponseRow'; +/** + * + * @export + * @interface V1GetSupplierReturnsSummaryReportResponse + */ +export interface V1GetSupplierReturnsSummaryReportResponse { + /** + * Идентификатор последнего значения на странице. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponse + */ + last_id?: string; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1GetSupplierReturnsSummaryReportResponse + */ + returns_summary_report_rows?: Array; +} +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportResponse interface. + */ +export declare function instanceOfV1GetSupplierReturnsSummaryReportResponse(value: object): value is V1GetSupplierReturnsSummaryReportResponse; +export declare function V1GetSupplierReturnsSummaryReportResponseFromJSON(json: any): V1GetSupplierReturnsSummaryReportResponse; +export declare function V1GetSupplierReturnsSummaryReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplierReturnsSummaryReportResponse; +export declare function V1GetSupplierReturnsSummaryReportResponseToJSON(value?: V1GetSupplierReturnsSummaryReportResponse | null): any; diff --git a/dist/esm/models/V1GetSupplierReturnsSummaryReportResponse.js b/dist/esm/models/V1GetSupplierReturnsSummaryReportResponse.js new file mode 100644 index 0000000..d726b9f --- /dev/null +++ b/dist/esm/models/V1GetSupplierReturnsSummaryReportResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetSupplierReturnsSummaryReportResponseRowFromJSON, V1GetSupplierReturnsSummaryReportResponseRowToJSON, } from './V1GetSupplierReturnsSummaryReportResponseRow'; +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportResponse interface. + */ +export function instanceOfV1GetSupplierReturnsSummaryReportResponse(value) { + return true; +} +export function V1GetSupplierReturnsSummaryReportResponseFromJSON(json) { + return V1GetSupplierReturnsSummaryReportResponseFromJSONTyped(json, false); +} +export function V1GetSupplierReturnsSummaryReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'returns_summary_report_rows': json['returns_summary_report_rows'] == null ? undefined : (json['returns_summary_report_rows'].map(V1GetSupplierReturnsSummaryReportResponseRowFromJSON)), + }; +} +export function V1GetSupplierReturnsSummaryReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'returns_summary_report_rows': value['returns_summary_report_rows'] == null ? undefined : (value['returns_summary_report_rows'].map(V1GetSupplierReturnsSummaryReportResponseRowToJSON)), + }; +} diff --git a/dist/esm/models/V1GetSupplierReturnsSummaryReportResponseRow.d.ts b/dist/esm/models/V1GetSupplierReturnsSummaryReportResponseRow.d.ts new file mode 100644 index 0000000..06b9470 --- /dev/null +++ b/dist/esm/models/V1GetSupplierReturnsSummaryReportResponseRow.d.ts @@ -0,0 +1,257 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplierReturnsSummaryReportResponseRow + */ +export interface V1GetSupplierReturnsSummaryReportResponseRow { + /** + * Штрихкод товара. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + barcode?: string; + /** + * Штрихкод коробки. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_barcode?: string; + /** + * Высота коробки в метрах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_height?: number; + /** + * Идентификатор коробки. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_id?: number; + /** + * Длина коробки в метрах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_length?: number; + /** + * Статус коробки: + * - `доступно к вывозу`; + * - `уже в заявке на вывоз`; + * - `подготовка к вывозу`; + * - `потеряна`; + * - `в пути`; + * - `компенсировано продавцу`; + * - `утилизирована`; + * - `собрано`; + * - `на СЦ`; + * - `у курьера`; + * - `неудачная попытка доставки`; + * - `получена`; + * - `отменено`; + * - `в процессе утилизации`; + * - `в пункте выдачи`; + * - `расформирована`. + * + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_state?: string; + /** + * Объём коробки в литрах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_volume?: number; + /** + * Вес коробки в килограммах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_weight?: number; + /** + * Ширина коробки в метрах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_width?: number; + /** + * Склад, на котором подготовили товары для вывоза. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + clearing_warehouse_name?: string; + /** + * Дата доставки товара в ПВЗ, СЦ или курьером. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + delivery_date?: string; + /** + * Способ вывоза: + * - `самовывоз`; + * - `ПВЗ`; + * - `СЦ`; + * - `курьерская доставка`. + * + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + delivery_type?: string; + /** + * Адрес склада назначения. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + destination_warehouse_address?: string; + /** + * Название склада назначения. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + destination_warehouse_name?: string; + /** + * Дата, когда продавец забрал товары самовывозом со склада Ozon. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + given_out_date?: string; + /** + * Признак, что заявка на вывоз была создана автоматически. + * + * [Подробнее об автовывозе в Базе знаний продавца](https://seller-edu.ozon.ru/fbo/vozvraty-utilizaciya-izlishki/vyvoz-tovarov-so-sklada-ozon/avtovyvoz-tovarov-so-sklada-ozon) + * + * @type {boolean} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + is_auto_return?: boolean; + /** + * Название товара. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + offer_id?: string; + /** + * Предварительная стоимость вывоза товара со склада силами Ozon. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + preliminary_delivery_price?: number; + /** + * Количество квантов в заявке на вывоз. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + quant_count?: number; + /** + * Количество единиц товара в коробке или заявке на вывоз. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + quantity_for_return?: number; + /** + * Дата создания заявки на вывоз. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + return_created_at?: string; + /** + * Идентификатор заявки на вывоз. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + return_id?: number; + /** + * Статус заявки на вывоз. + * + * Возможные значения для самовывоза со стока: + * - `создана`; + * - `собирается на складе`; + * - `собрана складом`; + * - `завершена`; + * - `заполнение данных`; + * - `утилизирована`. + * + * Возможные значения для СЦ, ПВЗ и курьерской доставки со стока: + * - `создаётся`; + * - `собирается на складке`; + * - `передаём в логистику`; + * - `в пути`; + * - `завершено`; + * - `можно забирать часть`; + * - `можно забирать все`; + * - `утилизирована`. + * + * Возможные значения для вывоза с поставок: + * + * - `заполнение данных`; + * - `подготовка к выдаче`; + * - `выдача`; + * - `завершено`; + * - `отклонено складом`; + * - `готово к вывозу`; + * - `утилизировано`; + * - `обрабатывается`; + * - `собирается на складе`; + * - `передаётся в логистику`; + * - `в пути`; + * - `можно забрать часть`; + * - `можно забрать все`. + * + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + return_state?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + sku?: number; + /** + * Тип остатков для товаров стока: + * - `доступно к продаже`; + * - `маркируемые товары, ожидающие действий`; + * - `истекает срок годности`; + * - `брак, доступный к вывозу со стока`. + * + * Тип остатков для товаров в коробках: + * - `брак`; + * - `опознанные излишки`; + * - `неопознанные излишки без SKU`. + * + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + stock_type?: string; + /** + * Дата утилизации. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + utilization_date?: string; +} +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportResponseRow interface. + */ +export declare function instanceOfV1GetSupplierReturnsSummaryReportResponseRow(value: object): value is V1GetSupplierReturnsSummaryReportResponseRow; +export declare function V1GetSupplierReturnsSummaryReportResponseRowFromJSON(json: any): V1GetSupplierReturnsSummaryReportResponseRow; +export declare function V1GetSupplierReturnsSummaryReportResponseRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplierReturnsSummaryReportResponseRow; +export declare function V1GetSupplierReturnsSummaryReportResponseRowToJSON(value?: V1GetSupplierReturnsSummaryReportResponseRow | null): any; diff --git a/dist/esm/models/V1GetSupplierReturnsSummaryReportResponseRow.js b/dist/esm/models/V1GetSupplierReturnsSummaryReportResponseRow.js new file mode 100644 index 0000000..0dbfe33 --- /dev/null +++ b/dist/esm/models/V1GetSupplierReturnsSummaryReportResponseRow.js @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportResponseRow interface. + */ +export function instanceOfV1GetSupplierReturnsSummaryReportResponseRow(value) { + return true; +} +export function V1GetSupplierReturnsSummaryReportResponseRowFromJSON(json) { + return V1GetSupplierReturnsSummaryReportResponseRowFromJSONTyped(json, false); +} +export function V1GetSupplierReturnsSummaryReportResponseRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'box_barcode': json['box_barcode'] == null ? undefined : json['box_barcode'], + 'box_height': json['box_height'] == null ? undefined : json['box_height'], + 'box_id': json['box_id'] == null ? undefined : json['box_id'], + 'box_length': json['box_length'] == null ? undefined : json['box_length'], + 'box_state': json['box_state'] == null ? undefined : json['box_state'], + 'box_volume': json['box_volume'] == null ? undefined : json['box_volume'], + 'box_weight': json['box_weight'] == null ? undefined : json['box_weight'], + 'box_width': json['box_width'] == null ? undefined : json['box_width'], + 'clearing_warehouse_name': json['clearing_warehouse_name'] == null ? undefined : json['clearing_warehouse_name'], + 'delivery_date': json['delivery_date'] == null ? undefined : json['delivery_date'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'destination_warehouse_address': json['destination_warehouse_address'] == null ? undefined : json['destination_warehouse_address'], + 'destination_warehouse_name': json['destination_warehouse_name'] == null ? undefined : json['destination_warehouse_name'], + 'given_out_date': json['given_out_date'] == null ? undefined : json['given_out_date'], + 'is_auto_return': json['is_auto_return'] == null ? undefined : json['is_auto_return'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'preliminary_delivery_price': json['preliminary_delivery_price'] == null ? undefined : json['preliminary_delivery_price'], + 'quant_count': json['quant_count'] == null ? undefined : json['quant_count'], + 'quantity_for_return': json['quantity_for_return'] == null ? undefined : json['quantity_for_return'], + 'return_created_at': json['return_created_at'] == null ? undefined : json['return_created_at'], + 'return_id': json['return_id'] == null ? undefined : json['return_id'], + 'return_state': json['return_state'] == null ? undefined : json['return_state'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'stock_type': json['stock_type'] == null ? undefined : json['stock_type'], + 'utilization_date': json['utilization_date'] == null ? undefined : json['utilization_date'], + }; +} +export function V1GetSupplierReturnsSummaryReportResponseRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'box_barcode': value['box_barcode'], + 'box_height': value['box_height'], + 'box_id': value['box_id'], + 'box_length': value['box_length'], + 'box_state': value['box_state'], + 'box_volume': value['box_volume'], + 'box_weight': value['box_weight'], + 'box_width': value['box_width'], + 'clearing_warehouse_name': value['clearing_warehouse_name'], + 'delivery_date': value['delivery_date'], + 'delivery_type': value['delivery_type'], + 'destination_warehouse_address': value['destination_warehouse_address'], + 'destination_warehouse_name': value['destination_warehouse_name'], + 'given_out_date': value['given_out_date'], + 'is_auto_return': value['is_auto_return'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'preliminary_delivery_price': value['preliminary_delivery_price'], + 'quant_count': value['quant_count'], + 'quantity_for_return': value['quantity_for_return'], + 'return_created_at': value['return_created_at'], + 'return_id': value['return_id'], + 'return_state': value['return_state'], + 'sku': value['sku'], + 'stock_type': value['stock_type'], + 'utilization_date': value['utilization_date'], + }; +} diff --git a/dist/esm/models/V1GetSupplyOrderBundleRequest.d.ts b/dist/esm/models/V1GetSupplyOrderBundleRequest.d.ts new file mode 100644 index 0000000..6c33179 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderBundleRequest.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ItemSortField } from './V1ItemSortField'; +import type { GetSupplyOrderBundleRequestItemTagsCalculation } from './GetSupplyOrderBundleRequestItemTagsCalculation'; +/** + * + * @export + * @interface V1GetSupplyOrderBundleRequest + */ +export interface V1GetSupplyOrderBundleRequest { + /** + * Идентификаторы товарного состава поставки. Можно получить в методе [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {Array} + * @memberof V1GetSupplyOrderBundleRequest + */ + bundle_ids: Array; + /** + * `true`, чтобы сортировать по возрастанию. + * + * @type {boolean} + * @memberof V1GetSupplyOrderBundleRequest + */ + is_asc?: boolean; + /** + * + * @type {GetSupplyOrderBundleRequestItemTagsCalculation} + * @memberof V1GetSupplyOrderBundleRequest + */ + item_tags_calculation?: GetSupplyOrderBundleRequestItemTagsCalculation; + /** + * Идентификатор последнего значения SKU на странице. + * @type {string} + * @memberof V1GetSupplyOrderBundleRequest + */ + last_id?: string; + /** + * Количество товаров на странице. + * @type {number} + * @memberof V1GetSupplyOrderBundleRequest + */ + limit: number; + /** + * Поисковый запрос, например: по названию, артикулу или SKU. + * + * @type {string} + * @memberof V1GetSupplyOrderBundleRequest + */ + query?: string; + /** + * + * @type {V1ItemSortField} + * @memberof V1GetSupplyOrderBundleRequest + */ + sort_field?: V1ItemSortField; +} +/** + * Check if a given object implements the V1GetSupplyOrderBundleRequest interface. + */ +export declare function instanceOfV1GetSupplyOrderBundleRequest(value: object): value is V1GetSupplyOrderBundleRequest; +export declare function V1GetSupplyOrderBundleRequestFromJSON(json: any): V1GetSupplyOrderBundleRequest; +export declare function V1GetSupplyOrderBundleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderBundleRequest; +export declare function V1GetSupplyOrderBundleRequestToJSON(value?: V1GetSupplyOrderBundleRequest | null): any; diff --git a/dist/esm/models/V1GetSupplyOrderBundleRequest.js b/dist/esm/models/V1GetSupplyOrderBundleRequest.js new file mode 100644 index 0000000..6dc6ae1 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderBundleRequest.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ItemSortFieldFromJSON, V1ItemSortFieldToJSON, } from './V1ItemSortField'; +import { GetSupplyOrderBundleRequestItemTagsCalculationFromJSON, GetSupplyOrderBundleRequestItemTagsCalculationToJSON, } from './GetSupplyOrderBundleRequestItemTagsCalculation'; +/** + * Check if a given object implements the V1GetSupplyOrderBundleRequest interface. + */ +export function instanceOfV1GetSupplyOrderBundleRequest(value) { + if (!('bundle_ids' in value) || value['bundle_ids'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1GetSupplyOrderBundleRequestFromJSON(json) { + return V1GetSupplyOrderBundleRequestFromJSONTyped(json, false); +} +export function V1GetSupplyOrderBundleRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_ids': json['bundle_ids'], + 'is_asc': json['is_asc'] == null ? undefined : json['is_asc'], + 'item_tags_calculation': json['item_tags_calculation'] == null ? undefined : GetSupplyOrderBundleRequestItemTagsCalculationFromJSON(json['item_tags_calculation']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'query': json['query'] == null ? undefined : json['query'], + 'sort_field': json['sort_field'] == null ? undefined : V1ItemSortFieldFromJSON(json['sort_field']), + }; +} +export function V1GetSupplyOrderBundleRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_ids': value['bundle_ids'], + 'is_asc': value['is_asc'], + 'item_tags_calculation': GetSupplyOrderBundleRequestItemTagsCalculationToJSON(value['item_tags_calculation']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'query': value['query'], + 'sort_field': V1ItemSortFieldToJSON(value['sort_field']), + }; +} diff --git a/dist/esm/models/V1GetSupplyOrderBundleResponse.d.ts b/dist/esm/models/V1GetSupplyOrderBundleResponse.d.ts new file mode 100644 index 0000000..149d644 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderBundleResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ItemResponse } from './V1ItemResponse'; +/** + * + * @export + * @interface V1GetSupplyOrderBundleResponse + */ +export interface V1GetSupplyOrderBundleResponse { + /** + * Список товаров в заявке на поставку. + * @type {Array} + * @memberof V1GetSupplyOrderBundleResponse + */ + items?: Array; + /** + * Количество товаров в заявке. + * @type {number} + * @memberof V1GetSupplyOrderBundleResponse + */ + total_count?: number; + /** + * Признак, что в ответе вернули не все товары: + * - `true` — сделайте повторный запрос с другим значением `last_id`, чтобы получить остальные значения; + * - `false` — ответ содержит все значения характеристики. + * + * @type {boolean} + * @memberof V1GetSupplyOrderBundleResponse + */ + has_next?: boolean; + /** + * Идентификатор последнего значения на странице. + * @type {string} + * @memberof V1GetSupplyOrderBundleResponse + */ + last_id?: string; +} +/** + * Check if a given object implements the V1GetSupplyOrderBundleResponse interface. + */ +export declare function instanceOfV1GetSupplyOrderBundleResponse(value: object): value is V1GetSupplyOrderBundleResponse; +export declare function V1GetSupplyOrderBundleResponseFromJSON(json: any): V1GetSupplyOrderBundleResponse; +export declare function V1GetSupplyOrderBundleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderBundleResponse; +export declare function V1GetSupplyOrderBundleResponseToJSON(value?: V1GetSupplyOrderBundleResponse | null): any; diff --git a/dist/esm/models/V1GetSupplyOrderBundleResponse.js b/dist/esm/models/V1GetSupplyOrderBundleResponse.js new file mode 100644 index 0000000..175fd2f --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderBundleResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ItemResponseFromJSON, V1ItemResponseToJSON, } from './V1ItemResponse'; +/** + * Check if a given object implements the V1GetSupplyOrderBundleResponse interface. + */ +export function instanceOfV1GetSupplyOrderBundleResponse(value) { + return true; +} +export function V1GetSupplyOrderBundleResponseFromJSON(json) { + return V1GetSupplyOrderBundleResponseFromJSONTyped(json, false); +} +export function V1GetSupplyOrderBundleResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1ItemResponseFromJSON)), + 'total_count': json['total_count'] == null ? undefined : json['total_count'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1GetSupplyOrderBundleResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1ItemResponseToJSON)), + 'total_count': value['total_count'], + 'has_next': value['has_next'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotStatusRequest.d.ts b/dist/esm/models/V1GetSupplyOrderTimeslotStatusRequest.d.ts new file mode 100644 index 0000000..f27a5f7 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplyOrderTimeslotStatusRequest + */ +export interface V1GetSupplyOrderTimeslotStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1GetSupplyOrderTimeslotStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotStatusRequest interface. + */ +export declare function instanceOfV1GetSupplyOrderTimeslotStatusRequest(value: object): value is V1GetSupplyOrderTimeslotStatusRequest; +export declare function V1GetSupplyOrderTimeslotStatusRequestFromJSON(json: any): V1GetSupplyOrderTimeslotStatusRequest; +export declare function V1GetSupplyOrderTimeslotStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotStatusRequest; +export declare function V1GetSupplyOrderTimeslotStatusRequestToJSON(value?: V1GetSupplyOrderTimeslotStatusRequest | null): any; diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotStatusRequest.js b/dist/esm/models/V1GetSupplyOrderTimeslotStatusRequest.js new file mode 100644 index 0000000..af572dd --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotStatusRequest interface. + */ +export function instanceOfV1GetSupplyOrderTimeslotStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function V1GetSupplyOrderTimeslotStatusRequestFromJSON(json) { + return V1GetSupplyOrderTimeslotStatusRequestFromJSONTyped(json, false); +} +export function V1GetSupplyOrderTimeslotStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function V1GetSupplyOrderTimeslotStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponse.d.ts b/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponse.d.ts new file mode 100644 index 0000000..43709e5 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponse.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetSupplyOrderTimeslotStatusResponseStatus } from './V1GetSupplyOrderTimeslotStatusResponseStatus'; +import type { V1UpdateTimeslotError } from './V1UpdateTimeslotError'; +/** + * + * @export + * @interface V1GetSupplyOrderTimeslotStatusResponse + */ +export interface V1GetSupplyOrderTimeslotStatusResponse { + /** + * Возможные ошибки: + * - `UNSPECIFIED` — статус не указан; + * - `INVALID_ORDER_STATE` — неверный статус заказа; + * - `INCOMPATIBLE_ORDER_FLOW` — неверный статус интервала поставки; + * - `SET_TIMESLOT_DEADLINE_EXCEED` — заявка на поставку просрочена; + * - `OUT_OF_ALLOWED_RANGE` — вы ввели некорректное значение интервала поставки; + * - `ORDER_NOT_BELONG_CONTRACTOR` — заявка создана другим юридическом лицом, работать с ней не получится; + * - `ORDER_NOT_BELONG_COMPANY` — заявка не принадлежит вашему кабинету, работать с ней не получится; + * - `UPDATE_TIMESLOT_ERROR_PICKUP_ORDER_LIMIT_EXCEEDED` — превышен суточный лимит на создание заявок на поставку курьером; + * - `UPDATE_TIMESLOT_ERROR_LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED` — превышен лимит изменения интервала доставки. + * + * @type {Array} + * @memberof V1GetSupplyOrderTimeslotStatusResponse + */ + errors?: Array; + /** + * + * @type {V1GetSupplyOrderTimeslotStatusResponseStatus} + * @memberof V1GetSupplyOrderTimeslotStatusResponse + */ + status?: V1GetSupplyOrderTimeslotStatusResponseStatus; +} +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotStatusResponse interface. + */ +export declare function instanceOfV1GetSupplyOrderTimeslotStatusResponse(value: object): value is V1GetSupplyOrderTimeslotStatusResponse; +export declare function V1GetSupplyOrderTimeslotStatusResponseFromJSON(json: any): V1GetSupplyOrderTimeslotStatusResponse; +export declare function V1GetSupplyOrderTimeslotStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotStatusResponse; +export declare function V1GetSupplyOrderTimeslotStatusResponseToJSON(value?: V1GetSupplyOrderTimeslotStatusResponse | null): any; diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponse.js b/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponse.js new file mode 100644 index 0000000..6b3eb86 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON, V1GetSupplyOrderTimeslotStatusResponseStatusToJSON, } from './V1GetSupplyOrderTimeslotStatusResponseStatus'; +import { V1UpdateTimeslotErrorFromJSON, V1UpdateTimeslotErrorToJSON, } from './V1UpdateTimeslotError'; +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotStatusResponse interface. + */ +export function instanceOfV1GetSupplyOrderTimeslotStatusResponse(value) { + return true; +} +export function V1GetSupplyOrderTimeslotStatusResponseFromJSON(json) { + return V1GetSupplyOrderTimeslotStatusResponseFromJSONTyped(json, false); +} +export function V1GetSupplyOrderTimeslotStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1UpdateTimeslotErrorFromJSON)), + 'status': json['status'] == null ? undefined : V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON(json['status']), + }; +} +export function V1GetSupplyOrderTimeslotStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1UpdateTimeslotErrorToJSON)), + 'status': V1GetSupplyOrderTimeslotStatusResponseStatusToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponseStatus.d.ts b/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponseStatus.d.ts new file mode 100644 index 0000000..ea44256 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponseStatus.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус данных: + * - `UNSPECIFIED` — не указан; + * - `ERROR` — ошибка; + * - `IN_PROGRESS` — устанавливается; + * - `SUCCESS` — установлен. + * + * @export + */ +export declare const V1GetSupplyOrderTimeslotStatusResponseStatus: { + readonly UNSPECIFIED: "STATUS_UNSPECIFIED"; + readonly ERROR: "STATUS_ERROR"; + readonly IN_PROGRESS: "STATUS_IN_PROGRESS"; + readonly SUCCESS: "STATUS_SUCCESS"; +}; +export type V1GetSupplyOrderTimeslotStatusResponseStatus = typeof V1GetSupplyOrderTimeslotStatusResponseStatus[keyof typeof V1GetSupplyOrderTimeslotStatusResponseStatus]; +export declare function instanceOfV1GetSupplyOrderTimeslotStatusResponseStatus(value: any): boolean; +export declare function V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON(json: any): V1GetSupplyOrderTimeslotStatusResponseStatus; +export declare function V1GetSupplyOrderTimeslotStatusResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotStatusResponseStatus; +export declare function V1GetSupplyOrderTimeslotStatusResponseStatusToJSON(value?: V1GetSupplyOrderTimeslotStatusResponseStatus | null): any; diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponseStatus.js b/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponseStatus.js new file mode 100644 index 0000000..9624401 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotStatusResponseStatus.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус данных: + * - `UNSPECIFIED` — не указан; + * - `ERROR` — ошибка; + * - `IN_PROGRESS` — устанавливается; + * - `SUCCESS` — установлен. + * + * @export + */ +export const V1GetSupplyOrderTimeslotStatusResponseStatus = { + UNSPECIFIED: 'STATUS_UNSPECIFIED', + ERROR: 'STATUS_ERROR', + IN_PROGRESS: 'STATUS_IN_PROGRESS', + SUCCESS: 'STATUS_SUCCESS' +}; +export function instanceOfV1GetSupplyOrderTimeslotStatusResponseStatus(value) { + for (const key in V1GetSupplyOrderTimeslotStatusResponseStatus) { + if (Object.prototype.hasOwnProperty.call(V1GetSupplyOrderTimeslotStatusResponseStatus, key)) { + if (V1GetSupplyOrderTimeslotStatusResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +export function V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON(json) { + return V1GetSupplyOrderTimeslotStatusResponseStatusFromJSONTyped(json, false); +} +export function V1GetSupplyOrderTimeslotStatusResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1GetSupplyOrderTimeslotStatusResponseStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotsRequest.d.ts b/dist/esm/models/V1GetSupplyOrderTimeslotsRequest.d.ts new file mode 100644 index 0000000..3f3c8e0 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplyOrderTimeslotsRequest + */ +export interface V1GetSupplyOrderTimeslotsRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1GetSupplyOrderTimeslotsRequest + */ + supply_order_id: number; +} +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotsRequest interface. + */ +export declare function instanceOfV1GetSupplyOrderTimeslotsRequest(value: object): value is V1GetSupplyOrderTimeslotsRequest; +export declare function V1GetSupplyOrderTimeslotsRequestFromJSON(json: any): V1GetSupplyOrderTimeslotsRequest; +export declare function V1GetSupplyOrderTimeslotsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotsRequest; +export declare function V1GetSupplyOrderTimeslotsRequestToJSON(value?: V1GetSupplyOrderTimeslotsRequest | null): any; diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotsRequest.js b/dist/esm/models/V1GetSupplyOrderTimeslotsRequest.js new file mode 100644 index 0000000..b0a95f2 --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotsRequest interface. + */ +export function instanceOfV1GetSupplyOrderTimeslotsRequest(value) { + if (!('supply_order_id' in value) || value['supply_order_id'] === undefined) + return false; + return true; +} +export function V1GetSupplyOrderTimeslotsRequestFromJSON(json) { + return V1GetSupplyOrderTimeslotsRequestFromJSONTyped(json, false); +} +export function V1GetSupplyOrderTimeslotsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_order_id': json['supply_order_id'], + }; +} +export function V1GetSupplyOrderTimeslotsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_order_id': value['supply_order_id'], + }; +} diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotsResponse.d.ts b/dist/esm/models/V1GetSupplyOrderTimeslotsResponse.d.ts new file mode 100644 index 0000000..878d79c --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotsResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderTimeslot } from './V1SupplyOrderTimeslot'; +import type { V1Timezone } from './V1Timezone'; +/** + * + * @export + * @interface V1GetSupplyOrderTimeslotsResponse + */ +export interface V1GetSupplyOrderTimeslotsResponse { + /** + * Интервалы поставки. + * @type {Array} + * @memberof V1GetSupplyOrderTimeslotsResponse + */ + timeslots?: Array; + /** + * Часовой пояс. + * @type {Array} + * @memberof V1GetSupplyOrderTimeslotsResponse + */ + timezone?: Array; +} +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotsResponse interface. + */ +export declare function instanceOfV1GetSupplyOrderTimeslotsResponse(value: object): value is V1GetSupplyOrderTimeslotsResponse; +export declare function V1GetSupplyOrderTimeslotsResponseFromJSON(json: any): V1GetSupplyOrderTimeslotsResponse; +export declare function V1GetSupplyOrderTimeslotsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotsResponse; +export declare function V1GetSupplyOrderTimeslotsResponseToJSON(value?: V1GetSupplyOrderTimeslotsResponse | null): any; diff --git a/dist/esm/models/V1GetSupplyOrderTimeslotsResponse.js b/dist/esm/models/V1GetSupplyOrderTimeslotsResponse.js new file mode 100644 index 0000000..c4c31ec --- /dev/null +++ b/dist/esm/models/V1GetSupplyOrderTimeslotsResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SupplyOrderTimeslotFromJSON, V1SupplyOrderTimeslotToJSON, } from './V1SupplyOrderTimeslot'; +import { V1TimezoneFromJSON, V1TimezoneToJSON, } from './V1Timezone'; +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotsResponse interface. + */ +export function instanceOfV1GetSupplyOrderTimeslotsResponse(value) { + return true; +} +export function V1GetSupplyOrderTimeslotsResponseFromJSON(json) { + return V1GetSupplyOrderTimeslotsResponseFromJSONTyped(json, false); +} +export function V1GetSupplyOrderTimeslotsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1SupplyOrderTimeslotFromJSON)), + 'timezone': json['timezone'] == null ? undefined : (json['timezone'].map(V1TimezoneFromJSON)), + }; +} +export function V1GetSupplyOrderTimeslotsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1SupplyOrderTimeslotToJSON)), + 'timezone': value['timezone'] == null ? undefined : (value['timezone'].map(V1TimezoneToJSON)), + }; +} diff --git a/dist/esm/models/V1GetSupplyReturnsSummaryReportRequest.d.ts b/dist/esm/models/V1GetSupplyReturnsSummaryReportRequest.d.ts new file mode 100644 index 0000000..7a55fe9 --- /dev/null +++ b/dist/esm/models/V1GetSupplyReturnsSummaryReportRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplyReturnsSummaryReportRequest + */ +export interface V1GetSupplyReturnsSummaryReportRequest { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportRequest + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportRequest + */ + date_to: string; + /** + * Идентификатор последнего значения на странице. Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportRequest + */ + last_id?: string; + /** + * Количество элементов в ответе. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportRequest interface. + */ +export declare function instanceOfV1GetSupplyReturnsSummaryReportRequest(value: object): value is V1GetSupplyReturnsSummaryReportRequest; +export declare function V1GetSupplyReturnsSummaryReportRequestFromJSON(json: any): V1GetSupplyReturnsSummaryReportRequest; +export declare function V1GetSupplyReturnsSummaryReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyReturnsSummaryReportRequest; +export declare function V1GetSupplyReturnsSummaryReportRequestToJSON(value?: V1GetSupplyReturnsSummaryReportRequest | null): any; diff --git a/dist/esm/models/V1GetSupplyReturnsSummaryReportRequest.js b/dist/esm/models/V1GetSupplyReturnsSummaryReportRequest.js new file mode 100644 index 0000000..1eb9f75 --- /dev/null +++ b/dist/esm/models/V1GetSupplyReturnsSummaryReportRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportRequest interface. + */ +export function instanceOfV1GetSupplyReturnsSummaryReportRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1GetSupplyReturnsSummaryReportRequestFromJSON(json) { + return V1GetSupplyReturnsSummaryReportRequestFromJSONTyped(json, false); +} +export function V1GetSupplyReturnsSummaryReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +export function V1GetSupplyReturnsSummaryReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1GetSupplyReturnsSummaryReportResponse.d.ts b/dist/esm/models/V1GetSupplyReturnsSummaryReportResponse.d.ts new file mode 100644 index 0000000..2ad37e3 --- /dev/null +++ b/dist/esm/models/V1GetSupplyReturnsSummaryReportResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetSupplyReturnsSummaryReportResponseRow } from './V1GetSupplyReturnsSummaryReportResponseRow'; +/** + * + * @export + * @interface V1GetSupplyReturnsSummaryReportResponse + */ +export interface V1GetSupplyReturnsSummaryReportResponse { + /** + * Идентификатор последнего значения на странице. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponse + */ + last_id?: string; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1GetSupplyReturnsSummaryReportResponse + */ + returns_summary_report_rows?: Array; +} +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportResponse interface. + */ +export declare function instanceOfV1GetSupplyReturnsSummaryReportResponse(value: object): value is V1GetSupplyReturnsSummaryReportResponse; +export declare function V1GetSupplyReturnsSummaryReportResponseFromJSON(json: any): V1GetSupplyReturnsSummaryReportResponse; +export declare function V1GetSupplyReturnsSummaryReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyReturnsSummaryReportResponse; +export declare function V1GetSupplyReturnsSummaryReportResponseToJSON(value?: V1GetSupplyReturnsSummaryReportResponse | null): any; diff --git a/dist/esm/models/V1GetSupplyReturnsSummaryReportResponse.js b/dist/esm/models/V1GetSupplyReturnsSummaryReportResponse.js new file mode 100644 index 0000000..cef84a1 --- /dev/null +++ b/dist/esm/models/V1GetSupplyReturnsSummaryReportResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetSupplyReturnsSummaryReportResponseRowFromJSON, V1GetSupplyReturnsSummaryReportResponseRowToJSON, } from './V1GetSupplyReturnsSummaryReportResponseRow'; +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportResponse interface. + */ +export function instanceOfV1GetSupplyReturnsSummaryReportResponse(value) { + return true; +} +export function V1GetSupplyReturnsSummaryReportResponseFromJSON(json) { + return V1GetSupplyReturnsSummaryReportResponseFromJSONTyped(json, false); +} +export function V1GetSupplyReturnsSummaryReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'returns_summary_report_rows': json['returns_summary_report_rows'] == null ? undefined : (json['returns_summary_report_rows'].map(V1GetSupplyReturnsSummaryReportResponseRowFromJSON)), + }; +} +export function V1GetSupplyReturnsSummaryReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'returns_summary_report_rows': value['returns_summary_report_rows'] == null ? undefined : (value['returns_summary_report_rows'].map(V1GetSupplyReturnsSummaryReportResponseRowToJSON)), + }; +} diff --git a/dist/esm/models/V1GetSupplyReturnsSummaryReportResponseRow.d.ts b/dist/esm/models/V1GetSupplyReturnsSummaryReportResponseRow.d.ts new file mode 100644 index 0000000..29166f2 --- /dev/null +++ b/dist/esm/models/V1GetSupplyReturnsSummaryReportResponseRow.d.ts @@ -0,0 +1,257 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplyReturnsSummaryReportResponseRow + */ +export interface V1GetSupplyReturnsSummaryReportResponseRow { + /** + * Штрихкод товара. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + barcode?: string; + /** + * Штрихкод коробки. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_barcode?: string; + /** + * Высота коробки в метрах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_height?: number; + /** + * Идентификатор коробки. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_id?: number; + /** + * Длина коробки в метрах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_length?: number; + /** + * Статус коробки: + * - `доступно к вывозу`; + * - `уже в заявке на вывоз`; + * - `подготовка к вывозу`; + * - `потеряна`; + * - `в пути`; + * - `компенсировано продавцу`; + * - `утилизирована`; + * - `собрано`; + * - `на СЦ`; + * - `у курьера`; + * - `неудачная попытка доставки`; + * - `получена`; + * - `отменено`; + * - `в процессе утилизации`; + * - `в пункте выдачи`; + * - `расформирована`. + * + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_state?: string; + /** + * Объём коробки в литрах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_volume?: number; + /** + * Вес коробки в килограммах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_weight?: number; + /** + * Ширина коробки в метрах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_width?: number; + /** + * Склад, на котором подготовили товары для вывоза. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + clearing_warehouse_name?: string; + /** + * Дата доставки товара в ПВЗ, СЦ или курьером. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + delivery_date?: string; + /** + * Способ вывоза: + * - `самовывоз`; + * - `ПВЗ`; + * - `СЦ`; + * - `курьерская доставка`. + * + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + delivery_type?: string; + /** + * Адрес склада назначения. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + destination_warehouse_address?: string; + /** + * Название склада назначения. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + destination_warehouse_name?: string; + /** + * Дата, когда продавец забрал товары самовывозом со склада Ozon. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + given_out_date?: string; + /** + * Признак, что заявка на вывоз была создана автоматически. + * + * [Подробнее об автовывозе в Базе знаний продавца](https://seller-edu.ozon.ru/fbo/vozvraty-utilizaciya-izlishki/vyvoz-tovarov-so-sklada-ozon/avtovyvoz-tovarov-so-sklada-ozon) + * + * @type {boolean} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + is_auto_return?: boolean; + /** + * Название товара. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + offer_id?: string; + /** + * Предварительная стоимость вывоза товара со склада силами Ozon. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + preliminary_delivery_price?: number; + /** + * Количество квантов в заявке на вывоз. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + quant_count?: number; + /** + * Количество единиц товара в коробке или заявке на вывоз. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + quantity_for_return?: number; + /** + * Дата создания заявки на вывоз. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + return_created_at?: string; + /** + * Идентификатор заявки на вывоз. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + return_id?: number; + /** + * Статус заявки на вывоз. + * + * Возможные значения для самовывоза со стока: + * - `создана`; + * - `собирается на складе`; + * - `собрана складом`; + * - `завершена`; + * - `заполнение данных`; + * - `утилизирована`. + * + * Возможные значения для СЦ, ПВЗ и курьерской доставки со стока: + * - `создаётся`; + * - `собирается на складке`; + * - `передаём в логистику`; + * - `в пути`; + * - `завершено`; + * - `можно забирать часть`; + * - `можно забирать все`; + * - `утилизирована`. + * + * Возможные значения для вывоза с поставок: + * + * - `заполнение данных`; + * - `подготовка к выдаче`; + * - `выдача`; + * - `завершено`; + * - `отклонено складом`; + * - `готово к вывозу`; + * - `утилизировано`; + * - `обрабатывается`; + * - `собирается на складе`; + * - `передаётся в логистику`; + * - `в пути`; + * - `можно забрать часть`; + * - `можно забрать все`. + * + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + return_state?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + sku?: number; + /** + * Тип остатков для товаров стока: + * - `доступно к продаже`; + * - `маркируемые товары, ожидающие действий`; + * - `истекает срок годности`; + * - `брак, доступный к вывозу со стока`. + * + * Тип остатков для товаров в коробках: + * - `брак`; + * - `опознанные излишки`; + * - `неопознанные излишки без SKU`. + * + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + stock_type?: string; + /** + * Дата утилизации. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + utilization_date?: string; +} +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportResponseRow interface. + */ +export declare function instanceOfV1GetSupplyReturnsSummaryReportResponseRow(value: object): value is V1GetSupplyReturnsSummaryReportResponseRow; +export declare function V1GetSupplyReturnsSummaryReportResponseRowFromJSON(json: any): V1GetSupplyReturnsSummaryReportResponseRow; +export declare function V1GetSupplyReturnsSummaryReportResponseRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyReturnsSummaryReportResponseRow; +export declare function V1GetSupplyReturnsSummaryReportResponseRowToJSON(value?: V1GetSupplyReturnsSummaryReportResponseRow | null): any; diff --git a/dist/esm/models/V1GetSupplyReturnsSummaryReportResponseRow.js b/dist/esm/models/V1GetSupplyReturnsSummaryReportResponseRow.js new file mode 100644 index 0000000..3933844 --- /dev/null +++ b/dist/esm/models/V1GetSupplyReturnsSummaryReportResponseRow.js @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportResponseRow interface. + */ +export function instanceOfV1GetSupplyReturnsSummaryReportResponseRow(value) { + return true; +} +export function V1GetSupplyReturnsSummaryReportResponseRowFromJSON(json) { + return V1GetSupplyReturnsSummaryReportResponseRowFromJSONTyped(json, false); +} +export function V1GetSupplyReturnsSummaryReportResponseRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'box_barcode': json['box_barcode'] == null ? undefined : json['box_barcode'], + 'box_height': json['box_height'] == null ? undefined : json['box_height'], + 'box_id': json['box_id'] == null ? undefined : json['box_id'], + 'box_length': json['box_length'] == null ? undefined : json['box_length'], + 'box_state': json['box_state'] == null ? undefined : json['box_state'], + 'box_volume': json['box_volume'] == null ? undefined : json['box_volume'], + 'box_weight': json['box_weight'] == null ? undefined : json['box_weight'], + 'box_width': json['box_width'] == null ? undefined : json['box_width'], + 'clearing_warehouse_name': json['clearing_warehouse_name'] == null ? undefined : json['clearing_warehouse_name'], + 'delivery_date': json['delivery_date'] == null ? undefined : json['delivery_date'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'destination_warehouse_address': json['destination_warehouse_address'] == null ? undefined : json['destination_warehouse_address'], + 'destination_warehouse_name': json['destination_warehouse_name'] == null ? undefined : json['destination_warehouse_name'], + 'given_out_date': json['given_out_date'] == null ? undefined : json['given_out_date'], + 'is_auto_return': json['is_auto_return'] == null ? undefined : json['is_auto_return'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'preliminary_delivery_price': json['preliminary_delivery_price'] == null ? undefined : json['preliminary_delivery_price'], + 'quant_count': json['quant_count'] == null ? undefined : json['quant_count'], + 'quantity_for_return': json['quantity_for_return'] == null ? undefined : json['quantity_for_return'], + 'return_created_at': json['return_created_at'] == null ? undefined : json['return_created_at'], + 'return_id': json['return_id'] == null ? undefined : json['return_id'], + 'return_state': json['return_state'] == null ? undefined : json['return_state'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'stock_type': json['stock_type'] == null ? undefined : json['stock_type'], + 'utilization_date': json['utilization_date'] == null ? undefined : json['utilization_date'], + }; +} +export function V1GetSupplyReturnsSummaryReportResponseRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'box_barcode': value['box_barcode'], + 'box_height': value['box_height'], + 'box_id': value['box_id'], + 'box_length': value['box_length'], + 'box_state': value['box_state'], + 'box_volume': value['box_volume'], + 'box_weight': value['box_weight'], + 'box_width': value['box_width'], + 'clearing_warehouse_name': value['clearing_warehouse_name'], + 'delivery_date': value['delivery_date'], + 'delivery_type': value['delivery_type'], + 'destination_warehouse_address': value['destination_warehouse_address'], + 'destination_warehouse_name': value['destination_warehouse_name'], + 'given_out_date': value['given_out_date'], + 'is_auto_return': value['is_auto_return'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'preliminary_delivery_price': value['preliminary_delivery_price'], + 'quant_count': value['quant_count'], + 'quantity_for_return': value['quantity_for_return'], + 'return_created_at': value['return_created_at'], + 'return_id': value['return_id'], + 'return_state': value['return_state'], + 'sku': value['sku'], + 'stock_type': value['stock_type'], + 'utilization_date': value['utilization_date'], + }; +} diff --git a/dist/esm/models/V1GetTreeRequest.d.ts b/dist/esm/models/V1GetTreeRequest.d.ts new file mode 100644 index 0000000..010ba0e --- /dev/null +++ b/dist/esm/models/V1GetTreeRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LanguageLanguage } from './LanguageLanguage'; +/** + * + * @export + * @interface V1GetTreeRequest + */ +export interface V1GetTreeRequest { + /** + * + * @type {LanguageLanguage} + * @memberof V1GetTreeRequest + */ + language?: LanguageLanguage; +} +/** + * Check if a given object implements the V1GetTreeRequest interface. + */ +export declare function instanceOfV1GetTreeRequest(value: object): value is V1GetTreeRequest; +export declare function V1GetTreeRequestFromJSON(json: any): V1GetTreeRequest; +export declare function V1GetTreeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetTreeRequest; +export declare function V1GetTreeRequestToJSON(value?: V1GetTreeRequest | null): any; diff --git a/dist/esm/models/V1GetTreeRequest.js b/dist/esm/models/V1GetTreeRequest.js new file mode 100644 index 0000000..f760749 --- /dev/null +++ b/dist/esm/models/V1GetTreeRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LanguageLanguageFromJSON, LanguageLanguageToJSON, } from './LanguageLanguage'; +/** + * Check if a given object implements the V1GetTreeRequest interface. + */ +export function instanceOfV1GetTreeRequest(value) { + return true; +} +export function V1GetTreeRequestFromJSON(json) { + return V1GetTreeRequestFromJSONTyped(json, false); +} +export function V1GetTreeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'language': json['language'] == null ? undefined : LanguageLanguageFromJSON(json['language']), + }; +} +export function V1GetTreeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'language': LanguageLanguageToJSON(value['language']), + }; +} diff --git a/dist/esm/models/V1GetTreeResponse.d.ts b/dist/esm/models/V1GetTreeResponse.d.ts new file mode 100644 index 0000000..502a51a --- /dev/null +++ b/dist/esm/models/V1GetTreeResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetTreeResponseItem } from './V1GetTreeResponseItem'; +/** + * + * @export + * @interface V1GetTreeResponse + */ +export interface V1GetTreeResponse { + /** + * Список категорий. + * @type {Array} + * @memberof V1GetTreeResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetTreeResponse interface. + */ +export declare function instanceOfV1GetTreeResponse(value: object): value is V1GetTreeResponse; +export declare function V1GetTreeResponseFromJSON(json: any): V1GetTreeResponse; +export declare function V1GetTreeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetTreeResponse; +export declare function V1GetTreeResponseToJSON(value?: V1GetTreeResponse | null): any; diff --git a/dist/esm/models/V1GetTreeResponse.js b/dist/esm/models/V1GetTreeResponse.js new file mode 100644 index 0000000..aec4ef2 --- /dev/null +++ b/dist/esm/models/V1GetTreeResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1GetTreeResponseItemFromJSON, V1GetTreeResponseItemToJSON, } from './V1GetTreeResponseItem'; +/** + * Check if a given object implements the V1GetTreeResponse interface. + */ +export function instanceOfV1GetTreeResponse(value) { + return true; +} +export function V1GetTreeResponseFromJSON(json) { + return V1GetTreeResponseFromJSONTyped(json, false); +} +export function V1GetTreeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetTreeResponseItemFromJSON)), + }; +} +export function V1GetTreeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetTreeResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V1GetTreeResponseItem.d.ts b/dist/esm/models/V1GetTreeResponseItem.d.ts new file mode 100644 index 0000000..352e39d --- /dev/null +++ b/dist/esm/models/V1GetTreeResponseItem.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetTreeResponseItem + */ +export interface V1GetTreeResponseItem { + /** + * Идентификатор категории. + * @type {number} + * @memberof V1GetTreeResponseItem + */ + description_category_id?: number; + /** + * Название категории. + * @type {string} + * @memberof V1GetTreeResponseItem + */ + category_name?: string; + /** + * Дерево подкатегорий. + * @type {Array} + * @memberof V1GetTreeResponseItem + */ + children?: Array; + /** + * `true`, если в категории нельзя создавать товары. `false`, если можно. + * + * @type {boolean} + * @memberof V1GetTreeResponseItem + */ + disabled?: boolean; + /** + * Идентификатор типа товара. + * @type {number} + * @memberof V1GetTreeResponseItem + */ + type_id?: number; + /** + * Название типа товара. + * @type {string} + * @memberof V1GetTreeResponseItem + */ + type_name?: string; +} +/** + * Check if a given object implements the V1GetTreeResponseItem interface. + */ +export declare function instanceOfV1GetTreeResponseItem(value: object): value is V1GetTreeResponseItem; +export declare function V1GetTreeResponseItemFromJSON(json: any): V1GetTreeResponseItem; +export declare function V1GetTreeResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetTreeResponseItem; +export declare function V1GetTreeResponseItemToJSON(value?: V1GetTreeResponseItem | null): any; diff --git a/dist/esm/models/V1GetTreeResponseItem.js b/dist/esm/models/V1GetTreeResponseItem.js new file mode 100644 index 0000000..6820a56 --- /dev/null +++ b/dist/esm/models/V1GetTreeResponseItem.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetTreeResponseItem interface. + */ +export function instanceOfV1GetTreeResponseItem(value) { + return true; +} +export function V1GetTreeResponseItemFromJSON(json) { + return V1GetTreeResponseItemFromJSONTyped(json, false); +} +export function V1GetTreeResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description_category_id': json['description_category_id'] == null ? undefined : json['description_category_id'], + 'category_name': json['category_name'] == null ? undefined : json['category_name'], + 'children': json['children'] == null ? undefined : (json['children'].map(V1GetTreeResponseItemFromJSON)), + 'disabled': json['disabled'] == null ? undefined : json['disabled'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + 'type_name': json['type_name'] == null ? undefined : json['type_name'], + }; +} +export function V1GetTreeResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'description_category_id': value['description_category_id'], + 'category_name': value['category_name'], + 'children': value['children'] == null ? undefined : (value['children'].map(V1GetTreeResponseItemToJSON)), + 'disabled': value['disabled'], + 'type_id': value['type_id'], + 'type_name': value['type_name'], + }; +} diff --git a/dist/esm/models/V1GetWarehouseFBSOperationStatusRequest.d.ts b/dist/esm/models/V1GetWarehouseFBSOperationStatusRequest.d.ts new file mode 100644 index 0000000..77850ca --- /dev/null +++ b/dist/esm/models/V1GetWarehouseFBSOperationStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetWarehouseFBSOperationStatusRequest + */ +export interface V1GetWarehouseFBSOperationStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1GetWarehouseFBSOperationStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1GetWarehouseFBSOperationStatusRequest interface. + */ +export declare function instanceOfV1GetWarehouseFBSOperationStatusRequest(value: object): value is V1GetWarehouseFBSOperationStatusRequest; +export declare function V1GetWarehouseFBSOperationStatusRequestFromJSON(json: any): V1GetWarehouseFBSOperationStatusRequest; +export declare function V1GetWarehouseFBSOperationStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetWarehouseFBSOperationStatusRequest; +export declare function V1GetWarehouseFBSOperationStatusRequestToJSON(value?: V1GetWarehouseFBSOperationStatusRequest | null): any; diff --git a/dist/esm/models/V1GetWarehouseFBSOperationStatusRequest.js b/dist/esm/models/V1GetWarehouseFBSOperationStatusRequest.js new file mode 100644 index 0000000..7b7a7d0 --- /dev/null +++ b/dist/esm/models/V1GetWarehouseFBSOperationStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GetWarehouseFBSOperationStatusRequest interface. + */ +export function instanceOfV1GetWarehouseFBSOperationStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function V1GetWarehouseFBSOperationStatusRequestFromJSON(json) { + return V1GetWarehouseFBSOperationStatusRequestFromJSONTyped(json, false); +} +export function V1GetWarehouseFBSOperationStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function V1GetWarehouseFBSOperationStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1GetWarehouseFBSOperationStatusResponse.d.ts b/dist/esm/models/V1GetWarehouseFBSOperationStatusResponse.d.ts new file mode 100644 index 0000000..2abb32e --- /dev/null +++ b/dist/esm/models/V1GetWarehouseFBSOperationStatusResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetWarehouseFBSOperationStatusResponseResult } from './GetWarehouseFBSOperationStatusResponseResult'; +import type { GetWarehouseFBSOperationStatusResponseStatusEnum } from './GetWarehouseFBSOperationStatusResponseStatusEnum'; +import type { GetWarehouseFBSOperationStatusResponseError } from './GetWarehouseFBSOperationStatusResponseError'; +import type { GetWarehouseFBSOperationStatusResponseTypeEnum } from './GetWarehouseFBSOperationStatusResponseTypeEnum'; +/** + * + * @export + * @interface V1GetWarehouseFBSOperationStatusResponse + */ +export interface V1GetWarehouseFBSOperationStatusResponse { + /** + * + * @type {GetWarehouseFBSOperationStatusResponseError} + * @memberof V1GetWarehouseFBSOperationStatusResponse + */ + error?: GetWarehouseFBSOperationStatusResponseError; + /** + * + * @type {GetWarehouseFBSOperationStatusResponseResult} + * @memberof V1GetWarehouseFBSOperationStatusResponse + */ + result?: GetWarehouseFBSOperationStatusResponseResult; + /** + * + * @type {GetWarehouseFBSOperationStatusResponseStatusEnum} + * @memberof V1GetWarehouseFBSOperationStatusResponse + */ + status?: GetWarehouseFBSOperationStatusResponseStatusEnum; + /** + * + * @type {GetWarehouseFBSOperationStatusResponseTypeEnum} + * @memberof V1GetWarehouseFBSOperationStatusResponse + */ + type?: GetWarehouseFBSOperationStatusResponseTypeEnum; +} +/** + * Check if a given object implements the V1GetWarehouseFBSOperationStatusResponse interface. + */ +export declare function instanceOfV1GetWarehouseFBSOperationStatusResponse(value: object): value is V1GetWarehouseFBSOperationStatusResponse; +export declare function V1GetWarehouseFBSOperationStatusResponseFromJSON(json: any): V1GetWarehouseFBSOperationStatusResponse; +export declare function V1GetWarehouseFBSOperationStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetWarehouseFBSOperationStatusResponse; +export declare function V1GetWarehouseFBSOperationStatusResponseToJSON(value?: V1GetWarehouseFBSOperationStatusResponse | null): any; diff --git a/dist/esm/models/V1GetWarehouseFBSOperationStatusResponse.js b/dist/esm/models/V1GetWarehouseFBSOperationStatusResponse.js new file mode 100644 index 0000000..852c7b8 --- /dev/null +++ b/dist/esm/models/V1GetWarehouseFBSOperationStatusResponse.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetWarehouseFBSOperationStatusResponseResultFromJSON, GetWarehouseFBSOperationStatusResponseResultToJSON, } from './GetWarehouseFBSOperationStatusResponseResult'; +import { GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON, GetWarehouseFBSOperationStatusResponseStatusEnumToJSON, } from './GetWarehouseFBSOperationStatusResponseStatusEnum'; +import { GetWarehouseFBSOperationStatusResponseErrorFromJSON, GetWarehouseFBSOperationStatusResponseErrorToJSON, } from './GetWarehouseFBSOperationStatusResponseError'; +import { GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON, GetWarehouseFBSOperationStatusResponseTypeEnumToJSON, } from './GetWarehouseFBSOperationStatusResponseTypeEnum'; +/** + * Check if a given object implements the V1GetWarehouseFBSOperationStatusResponse interface. + */ +export function instanceOfV1GetWarehouseFBSOperationStatusResponse(value) { + return true; +} +export function V1GetWarehouseFBSOperationStatusResponseFromJSON(json) { + return V1GetWarehouseFBSOperationStatusResponseFromJSONTyped(json, false); +} +export function V1GetWarehouseFBSOperationStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : GetWarehouseFBSOperationStatusResponseErrorFromJSON(json['error']), + 'result': json['result'] == null ? undefined : GetWarehouseFBSOperationStatusResponseResultFromJSON(json['result']), + 'status': json['status'] == null ? undefined : GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON(json['status']), + 'type': json['type'] == null ? undefined : GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON(json['type']), + }; +} +export function V1GetWarehouseFBSOperationStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': GetWarehouseFBSOperationStatusResponseErrorToJSON(value['error']), + 'result': GetWarehouseFBSOperationStatusResponseResultToJSON(value['result']), + 'status': GetWarehouseFBSOperationStatusResponseStatusEnumToJSON(value['status']), + 'type': GetWarehouseFBSOperationStatusResponseTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/V1GiveoutBarcodeResetResponse.d.ts b/dist/esm/models/V1GiveoutBarcodeResetResponse.d.ts new file mode 100644 index 0000000..f0e77a6 --- /dev/null +++ b/dist/esm/models/V1GiveoutBarcodeResetResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutBarcodeResetResponse + */ +export interface V1GiveoutBarcodeResetResponse { + /** + * Изображение со штрихкодом в бинарном виде. + * @type {string} + * @memberof V1GiveoutBarcodeResetResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V1GiveoutBarcodeResetResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V1GiveoutBarcodeResetResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V1GiveoutBarcodeResetResponse interface. + */ +export declare function instanceOfV1GiveoutBarcodeResetResponse(value: object): value is V1GiveoutBarcodeResetResponse; +export declare function V1GiveoutBarcodeResetResponseFromJSON(json: any): V1GiveoutBarcodeResetResponse; +export declare function V1GiveoutBarcodeResetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutBarcodeResetResponse; +export declare function V1GiveoutBarcodeResetResponseToJSON(value?: V1GiveoutBarcodeResetResponse | null): any; diff --git a/dist/esm/models/V1GiveoutBarcodeResetResponse.js b/dist/esm/models/V1GiveoutBarcodeResetResponse.js new file mode 100644 index 0000000..6b9eaee --- /dev/null +++ b/dist/esm/models/V1GiveoutBarcodeResetResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GiveoutBarcodeResetResponse interface. + */ +export function instanceOfV1GiveoutBarcodeResetResponse(value) { + return true; +} +export function V1GiveoutBarcodeResetResponseFromJSON(json) { + return V1GiveoutBarcodeResetResponseFromJSONTyped(json, false); +} +export function V1GiveoutBarcodeResetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +export function V1GiveoutBarcodeResetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/esm/models/V1GiveoutGetBarcodeResponse.d.ts b/dist/esm/models/V1GiveoutGetBarcodeResponse.d.ts new file mode 100644 index 0000000..99bf7f4 --- /dev/null +++ b/dist/esm/models/V1GiveoutGetBarcodeResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutGetBarcodeResponse + */ +export interface V1GiveoutGetBarcodeResponse { + /** + * Значение штрихкода в текстовом виде. + * @type {string} + * @memberof V1GiveoutGetBarcodeResponse + */ + barcode?: string; +} +/** + * Check if a given object implements the V1GiveoutGetBarcodeResponse interface. + */ +export declare function instanceOfV1GiveoutGetBarcodeResponse(value: object): value is V1GiveoutGetBarcodeResponse; +export declare function V1GiveoutGetBarcodeResponseFromJSON(json: any): V1GiveoutGetBarcodeResponse; +export declare function V1GiveoutGetBarcodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutGetBarcodeResponse; +export declare function V1GiveoutGetBarcodeResponseToJSON(value?: V1GiveoutGetBarcodeResponse | null): any; diff --git a/dist/esm/models/V1GiveoutGetBarcodeResponse.js b/dist/esm/models/V1GiveoutGetBarcodeResponse.js new file mode 100644 index 0000000..ad2eb2d --- /dev/null +++ b/dist/esm/models/V1GiveoutGetBarcodeResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GiveoutGetBarcodeResponse interface. + */ +export function instanceOfV1GiveoutGetBarcodeResponse(value) { + return true; +} +export function V1GiveoutGetBarcodeResponseFromJSON(json) { + return V1GiveoutGetBarcodeResponseFromJSONTyped(json, false); +} +export function V1GiveoutGetBarcodeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + }; +} +export function V1GiveoutGetBarcodeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + }; +} diff --git a/dist/esm/models/V1GiveoutGetPDFResponse.d.ts b/dist/esm/models/V1GiveoutGetPDFResponse.d.ts new file mode 100644 index 0000000..028216b --- /dev/null +++ b/dist/esm/models/V1GiveoutGetPDFResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutGetPDFResponse + */ +export interface V1GiveoutGetPDFResponse { + /** + * PDF-файл со штрихкодом в кодировке Base64. + * @type {string} + * @memberof V1GiveoutGetPDFResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V1GiveoutGetPDFResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V1GiveoutGetPDFResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V1GiveoutGetPDFResponse interface. + */ +export declare function instanceOfV1GiveoutGetPDFResponse(value: object): value is V1GiveoutGetPDFResponse; +export declare function V1GiveoutGetPDFResponseFromJSON(json: any): V1GiveoutGetPDFResponse; +export declare function V1GiveoutGetPDFResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutGetPDFResponse; +export declare function V1GiveoutGetPDFResponseToJSON(value?: V1GiveoutGetPDFResponse | null): any; diff --git a/dist/esm/models/V1GiveoutGetPDFResponse.js b/dist/esm/models/V1GiveoutGetPDFResponse.js new file mode 100644 index 0000000..3ee4a2f --- /dev/null +++ b/dist/esm/models/V1GiveoutGetPDFResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GiveoutGetPDFResponse interface. + */ +export function instanceOfV1GiveoutGetPDFResponse(value) { + return true; +} +export function V1GiveoutGetPDFResponseFromJSON(json) { + return V1GiveoutGetPDFResponseFromJSONTyped(json, false); +} +export function V1GiveoutGetPDFResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +export function V1GiveoutGetPDFResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/esm/models/V1GiveoutGetPNGResponse.d.ts b/dist/esm/models/V1GiveoutGetPNGResponse.d.ts new file mode 100644 index 0000000..02385ad --- /dev/null +++ b/dist/esm/models/V1GiveoutGetPNGResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutGetPNGResponse + */ +export interface V1GiveoutGetPNGResponse { + /** + * PNG-файл со штрихкодом в кодировке Base64. + * @type {string} + * @memberof V1GiveoutGetPNGResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V1GiveoutGetPNGResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V1GiveoutGetPNGResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V1GiveoutGetPNGResponse interface. + */ +export declare function instanceOfV1GiveoutGetPNGResponse(value: object): value is V1GiveoutGetPNGResponse; +export declare function V1GiveoutGetPNGResponseFromJSON(json: any): V1GiveoutGetPNGResponse; +export declare function V1GiveoutGetPNGResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutGetPNGResponse; +export declare function V1GiveoutGetPNGResponseToJSON(value?: V1GiveoutGetPNGResponse | null): any; diff --git a/dist/esm/models/V1GiveoutGetPNGResponse.js b/dist/esm/models/V1GiveoutGetPNGResponse.js new file mode 100644 index 0000000..277b58b --- /dev/null +++ b/dist/esm/models/V1GiveoutGetPNGResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GiveoutGetPNGResponse interface. + */ +export function instanceOfV1GiveoutGetPNGResponse(value) { + return true; +} +export function V1GiveoutGetPNGResponseFromJSON(json) { + return V1GiveoutGetPNGResponseFromJSONTyped(json, false); +} +export function V1GiveoutGetPNGResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +export function V1GiveoutGetPNGResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/esm/models/V1GiveoutInfoRequest.d.ts b/dist/esm/models/V1GiveoutInfoRequest.d.ts new file mode 100644 index 0000000..6554ff9 --- /dev/null +++ b/dist/esm/models/V1GiveoutInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutInfoRequest + */ +export interface V1GiveoutInfoRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1GiveoutInfoRequest + */ + giveout_id: number; +} +/** + * Check if a given object implements the V1GiveoutInfoRequest interface. + */ +export declare function instanceOfV1GiveoutInfoRequest(value: object): value is V1GiveoutInfoRequest; +export declare function V1GiveoutInfoRequestFromJSON(json: any): V1GiveoutInfoRequest; +export declare function V1GiveoutInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutInfoRequest; +export declare function V1GiveoutInfoRequestToJSON(value?: V1GiveoutInfoRequest | null): any; diff --git a/dist/esm/models/V1GiveoutInfoRequest.js b/dist/esm/models/V1GiveoutInfoRequest.js new file mode 100644 index 0000000..f5f123d --- /dev/null +++ b/dist/esm/models/V1GiveoutInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GiveoutInfoRequest interface. + */ +export function instanceOfV1GiveoutInfoRequest(value) { + if (!('giveout_id' in value) || value['giveout_id'] === undefined) + return false; + return true; +} +export function V1GiveoutInfoRequestFromJSON(json) { + return V1GiveoutInfoRequestFromJSONTyped(json, false); +} +export function V1GiveoutInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'giveout_id': json['giveout_id'], + }; +} +export function V1GiveoutInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'giveout_id': value['giveout_id'], + }; +} diff --git a/dist/esm/models/V1GiveoutInfoResponse.d.ts b/dist/esm/models/V1GiveoutInfoResponse.d.ts new file mode 100644 index 0000000..79a5258 --- /dev/null +++ b/dist/esm/models/V1GiveoutInfoResponse.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GiveoutInfoResponseArticleDetails } from './GiveoutInfoResponseArticleDetails'; +/** + * + * @export + * @interface V1GiveoutInfoResponse + */ +export interface V1GiveoutInfoResponse { + /** + * Артикулы товаров. + * @type {Array} + * @memberof V1GiveoutInfoResponse + */ + articles?: Array; + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1GiveoutInfoResponse + */ + giveout_id?: number; + /** + * Статусы возвратной отгрузки: + * - `GIVEOUT_STATUS_UNSPECIFIED` — не определён, напишите в поддержку. + * - `GIVEOUT_STATUS_CREATED` — создана. + * - `GIVEOUT_STATUS_APPROVED` — одобрена. + * - `GIVEOUT_STATUS_COMPLETED` — завершена. + * - `GIVEOUT_STATUS_CANCELLED` — отменена. + * + * @type {string} + * @memberof V1GiveoutInfoResponse + */ + giveout_status?: string; + /** + * Адрес склада. + * @type {string} + * @memberof V1GiveoutInfoResponse + */ + warehouse_address?: string; + /** + * Название склада. + * @type {string} + * @memberof V1GiveoutInfoResponse + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the V1GiveoutInfoResponse interface. + */ +export declare function instanceOfV1GiveoutInfoResponse(value: object): value is V1GiveoutInfoResponse; +export declare function V1GiveoutInfoResponseFromJSON(json: any): V1GiveoutInfoResponse; +export declare function V1GiveoutInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutInfoResponse; +export declare function V1GiveoutInfoResponseToJSON(value?: V1GiveoutInfoResponse | null): any; diff --git a/dist/esm/models/V1GiveoutInfoResponse.js b/dist/esm/models/V1GiveoutInfoResponse.js new file mode 100644 index 0000000..5a156fe --- /dev/null +++ b/dist/esm/models/V1GiveoutInfoResponse.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GiveoutInfoResponseArticleDetailsFromJSON, GiveoutInfoResponseArticleDetailsToJSON, } from './GiveoutInfoResponseArticleDetails'; +/** + * Check if a given object implements the V1GiveoutInfoResponse interface. + */ +export function instanceOfV1GiveoutInfoResponse(value) { + return true; +} +export function V1GiveoutInfoResponseFromJSON(json) { + return V1GiveoutInfoResponseFromJSONTyped(json, false); +} +export function V1GiveoutInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'articles': json['articles'] == null ? undefined : (json['articles'].map(GiveoutInfoResponseArticleDetailsFromJSON)), + 'giveout_id': json['giveout_id'] == null ? undefined : json['giveout_id'], + 'giveout_status': json['giveout_status'] == null ? undefined : json['giveout_status'], + 'warehouse_address': json['warehouse_address'] == null ? undefined : json['warehouse_address'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function V1GiveoutInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'articles': value['articles'] == null ? undefined : (value['articles'].map(GiveoutInfoResponseArticleDetailsToJSON)), + 'giveout_id': value['giveout_id'], + 'giveout_status': value['giveout_status'], + 'warehouse_address': value['warehouse_address'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/V1GiveoutIsEnabledResponse.d.ts b/dist/esm/models/V1GiveoutIsEnabledResponse.d.ts new file mode 100644 index 0000000..ab6f64d --- /dev/null +++ b/dist/esm/models/V1GiveoutIsEnabledResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutIsEnabledResponse + */ +export interface V1GiveoutIsEnabledResponse { + /** + * `true`, если вы можете получить возвратную отгрузку по штрихкоду. + * + * @type {boolean} + * @memberof V1GiveoutIsEnabledResponse + */ + enabled?: boolean; +} +/** + * Check if a given object implements the V1GiveoutIsEnabledResponse interface. + */ +export declare function instanceOfV1GiveoutIsEnabledResponse(value: object): value is V1GiveoutIsEnabledResponse; +export declare function V1GiveoutIsEnabledResponseFromJSON(json: any): V1GiveoutIsEnabledResponse; +export declare function V1GiveoutIsEnabledResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutIsEnabledResponse; +export declare function V1GiveoutIsEnabledResponseToJSON(value?: V1GiveoutIsEnabledResponse | null): any; diff --git a/dist/esm/models/V1GiveoutIsEnabledResponse.js b/dist/esm/models/V1GiveoutIsEnabledResponse.js new file mode 100644 index 0000000..a61a168 --- /dev/null +++ b/dist/esm/models/V1GiveoutIsEnabledResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GiveoutIsEnabledResponse interface. + */ +export function instanceOfV1GiveoutIsEnabledResponse(value) { + return true; +} +export function V1GiveoutIsEnabledResponseFromJSON(json) { + return V1GiveoutIsEnabledResponseFromJSONTyped(json, false); +} +export function V1GiveoutIsEnabledResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + }; +} +export function V1GiveoutIsEnabledResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + }; +} diff --git a/dist/esm/models/V1GiveoutListRequest.d.ts b/dist/esm/models/V1GiveoutListRequest.d.ts new file mode 100644 index 0000000..4e097f5 --- /dev/null +++ b/dist/esm/models/V1GiveoutListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutListRequest + */ +export interface V1GiveoutListRequest { + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1GiveoutListRequest + */ + last_id?: number; + /** + * Количество элементов в ответе. + * @type {number} + * @memberof V1GiveoutListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GiveoutListRequest interface. + */ +export declare function instanceOfV1GiveoutListRequest(value: object): value is V1GiveoutListRequest; +export declare function V1GiveoutListRequestFromJSON(json: any): V1GiveoutListRequest; +export declare function V1GiveoutListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutListRequest; +export declare function V1GiveoutListRequestToJSON(value?: V1GiveoutListRequest | null): any; diff --git a/dist/esm/models/V1GiveoutListRequest.js b/dist/esm/models/V1GiveoutListRequest.js new file mode 100644 index 0000000..75749de --- /dev/null +++ b/dist/esm/models/V1GiveoutListRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1GiveoutListRequest interface. + */ +export function instanceOfV1GiveoutListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1GiveoutListRequestFromJSON(json) { + return V1GiveoutListRequestFromJSONTyped(json, false); +} +export function V1GiveoutListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +export function V1GiveoutListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1GiveoutListResponse.d.ts b/dist/esm/models/V1GiveoutListResponse.d.ts new file mode 100644 index 0000000..7dd6aa2 --- /dev/null +++ b/dist/esm/models/V1GiveoutListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GiveoutListResponseGiveoutDetails } from './GiveoutListResponseGiveoutDetails'; +/** + * + * @export + * @interface V1GiveoutListResponse + */ +export interface V1GiveoutListResponse { + /** + * Идентификатор отгрузки. + * @type {Array} + * @memberof V1GiveoutListResponse + */ + giveouts?: Array; +} +/** + * Check if a given object implements the V1GiveoutListResponse interface. + */ +export declare function instanceOfV1GiveoutListResponse(value: object): value is V1GiveoutListResponse; +export declare function V1GiveoutListResponseFromJSON(json: any): V1GiveoutListResponse; +export declare function V1GiveoutListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutListResponse; +export declare function V1GiveoutListResponseToJSON(value?: V1GiveoutListResponse | null): any; diff --git a/dist/esm/models/V1GiveoutListResponse.js b/dist/esm/models/V1GiveoutListResponse.js new file mode 100644 index 0000000..9d86a3d --- /dev/null +++ b/dist/esm/models/V1GiveoutListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GiveoutListResponseGiveoutDetailsFromJSON, GiveoutListResponseGiveoutDetailsToJSON, } from './GiveoutListResponseGiveoutDetails'; +/** + * Check if a given object implements the V1GiveoutListResponse interface. + */ +export function instanceOfV1GiveoutListResponse(value) { + return true; +} +export function V1GiveoutListResponseFromJSON(json) { + return V1GiveoutListResponseFromJSONTyped(json, false); +} +export function V1GiveoutListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'giveouts': json['giveouts'] == null ? undefined : (json['giveouts'].map(GiveoutListResponseGiveoutDetailsFromJSON)), + }; +} +export function V1GiveoutListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'giveouts': value['giveouts'] == null ? undefined : (value['giveouts'].map(GiveoutListResponseGiveoutDetailsToJSON)), + }; +} diff --git a/dist/esm/models/V1InvoiceDeleteRequest.d.ts b/dist/esm/models/V1InvoiceDeleteRequest.d.ts new file mode 100644 index 0000000..e03506d --- /dev/null +++ b/dist/esm/models/V1InvoiceDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceDeleteRequest + */ +export interface V1InvoiceDeleteRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1InvoiceDeleteRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1InvoiceDeleteRequest interface. + */ +export declare function instanceOfV1InvoiceDeleteRequest(value: object): value is V1InvoiceDeleteRequest; +export declare function V1InvoiceDeleteRequestFromJSON(json: any): V1InvoiceDeleteRequest; +export declare function V1InvoiceDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceDeleteRequest; +export declare function V1InvoiceDeleteRequestToJSON(value?: V1InvoiceDeleteRequest | null): any; diff --git a/dist/esm/models/V1InvoiceDeleteRequest.js b/dist/esm/models/V1InvoiceDeleteRequest.js new file mode 100644 index 0000000..53ae413 --- /dev/null +++ b/dist/esm/models/V1InvoiceDeleteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1InvoiceDeleteRequest interface. + */ +export function instanceOfV1InvoiceDeleteRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1InvoiceDeleteRequestFromJSON(json) { + return V1InvoiceDeleteRequestFromJSONTyped(json, false); +} +export function V1InvoiceDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1InvoiceDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1InvoiceDeleteResponse.d.ts b/dist/esm/models/V1InvoiceDeleteResponse.d.ts new file mode 100644 index 0000000..975cecb --- /dev/null +++ b/dist/esm/models/V1InvoiceDeleteResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceDeleteResponse + */ +export interface V1InvoiceDeleteResponse { + /** + * Результат работы метода. + * @type {boolean} + * @memberof V1InvoiceDeleteResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the V1InvoiceDeleteResponse interface. + */ +export declare function instanceOfV1InvoiceDeleteResponse(value: object): value is V1InvoiceDeleteResponse; +export declare function V1InvoiceDeleteResponseFromJSON(json: any): V1InvoiceDeleteResponse; +export declare function V1InvoiceDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceDeleteResponse; +export declare function V1InvoiceDeleteResponseToJSON(value?: V1InvoiceDeleteResponse | null): any; diff --git a/dist/esm/models/V1InvoiceDeleteResponse.js b/dist/esm/models/V1InvoiceDeleteResponse.js new file mode 100644 index 0000000..c72f7ae --- /dev/null +++ b/dist/esm/models/V1InvoiceDeleteResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1InvoiceDeleteResponse interface. + */ +export function instanceOfV1InvoiceDeleteResponse(value) { + return true; +} +export function V1InvoiceDeleteResponseFromJSON(json) { + return V1InvoiceDeleteResponseFromJSONTyped(json, false); +} +export function V1InvoiceDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function V1InvoiceDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/V1InvoiceFileUploadRequest.d.ts b/dist/esm/models/V1InvoiceFileUploadRequest.d.ts new file mode 100644 index 0000000..d7c4c42 --- /dev/null +++ b/dist/esm/models/V1InvoiceFileUploadRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceFileUploadRequest + */ +export interface V1InvoiceFileUploadRequest { + /** + * Счёт-фактура в кодировке Base64. + * @type {string} + * @memberof V1InvoiceFileUploadRequest + */ + base64_content: string; + /** + * Номер отправления. + * @type {string} + * @memberof V1InvoiceFileUploadRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1InvoiceFileUploadRequest interface. + */ +export declare function instanceOfV1InvoiceFileUploadRequest(value: object): value is V1InvoiceFileUploadRequest; +export declare function V1InvoiceFileUploadRequestFromJSON(json: any): V1InvoiceFileUploadRequest; +export declare function V1InvoiceFileUploadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceFileUploadRequest; +export declare function V1InvoiceFileUploadRequestToJSON(value?: V1InvoiceFileUploadRequest | null): any; diff --git a/dist/esm/models/V1InvoiceFileUploadRequest.js b/dist/esm/models/V1InvoiceFileUploadRequest.js new file mode 100644 index 0000000..34b5a7d --- /dev/null +++ b/dist/esm/models/V1InvoiceFileUploadRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1InvoiceFileUploadRequest interface. + */ +export function instanceOfV1InvoiceFileUploadRequest(value) { + if (!('base64_content' in value) || value['base64_content'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1InvoiceFileUploadRequestFromJSON(json) { + return V1InvoiceFileUploadRequestFromJSONTyped(json, false); +} +export function V1InvoiceFileUploadRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'base64_content': json['base64_content'], + 'posting_number': json['posting_number'], + }; +} +export function V1InvoiceFileUploadRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'base64_content': value['base64_content'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1InvoiceFileUploadResponse.d.ts b/dist/esm/models/V1InvoiceFileUploadResponse.d.ts new file mode 100644 index 0000000..fa2b9fa --- /dev/null +++ b/dist/esm/models/V1InvoiceFileUploadResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceFileUploadResponse + */ +export interface V1InvoiceFileUploadResponse { + /** + * Ссылка на счёт-фактуру. + * @type {string} + * @memberof V1InvoiceFileUploadResponse + */ + url?: string; +} +/** + * Check if a given object implements the V1InvoiceFileUploadResponse interface. + */ +export declare function instanceOfV1InvoiceFileUploadResponse(value: object): value is V1InvoiceFileUploadResponse; +export declare function V1InvoiceFileUploadResponseFromJSON(json: any): V1InvoiceFileUploadResponse; +export declare function V1InvoiceFileUploadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceFileUploadResponse; +export declare function V1InvoiceFileUploadResponseToJSON(value?: V1InvoiceFileUploadResponse | null): any; diff --git a/dist/esm/models/V1InvoiceFileUploadResponse.js b/dist/esm/models/V1InvoiceFileUploadResponse.js new file mode 100644 index 0000000..02e9f1c --- /dev/null +++ b/dist/esm/models/V1InvoiceFileUploadResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1InvoiceFileUploadResponse interface. + */ +export function instanceOfV1InvoiceFileUploadResponse(value) { + return true; +} +export function V1InvoiceFileUploadResponseFromJSON(json) { + return V1InvoiceFileUploadResponseFromJSONTyped(json, false); +} +export function V1InvoiceFileUploadResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'url': json['url'] == null ? undefined : json['url'], + }; +} +export function V1InvoiceFileUploadResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'url': value['url'], + }; +} diff --git a/dist/esm/models/V1InvoiceGetRequest.d.ts b/dist/esm/models/V1InvoiceGetRequest.d.ts new file mode 100644 index 0000000..39e68be --- /dev/null +++ b/dist/esm/models/V1InvoiceGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceGetRequest + */ +export interface V1InvoiceGetRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1InvoiceGetRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1InvoiceGetRequest interface. + */ +export declare function instanceOfV1InvoiceGetRequest(value: object): value is V1InvoiceGetRequest; +export declare function V1InvoiceGetRequestFromJSON(json: any): V1InvoiceGetRequest; +export declare function V1InvoiceGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceGetRequest; +export declare function V1InvoiceGetRequestToJSON(value?: V1InvoiceGetRequest | null): any; diff --git a/dist/esm/models/V1InvoiceGetRequest.js b/dist/esm/models/V1InvoiceGetRequest.js new file mode 100644 index 0000000..69fb168 --- /dev/null +++ b/dist/esm/models/V1InvoiceGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1InvoiceGetRequest interface. + */ +export function instanceOfV1InvoiceGetRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1InvoiceGetRequestFromJSON(json) { + return V1InvoiceGetRequestFromJSONTyped(json, false); +} +export function V1InvoiceGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1InvoiceGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1ItemError.d.ts b/dist/esm/models/V1ItemError.d.ts new file mode 100644 index 0000000..1619d42 --- /dev/null +++ b/dist/esm/models/V1ItemError.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ItemError + */ +export interface V1ItemError { + /** + * Код ошибки. + * @type {string} + * @memberof V1ItemError + */ + code?: string; + /** + * Техническое описание ошибки. + * @type {string} + * @memberof V1ItemError + */ + message?: string; + /** + * Состояние товара, в котором произошла ошибка. + * @type {string} + * @memberof V1ItemError + */ + state?: string; + /** + * Уровень ошибки. + * @type {string} + * @memberof V1ItemError + */ + level?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1ItemError + */ + description?: string; + /** + * Поле, в котором произошла ошибка. + * @type {string} + * @memberof V1ItemError + */ + field?: string; + /** + * Атрибут, в котором произошла ошибка. + * @type {number} + * @memberof V1ItemError + */ + attribute_id?: number; + /** + * Название атрибута, в котором произошла ошибка. + * @type {string} + * @memberof V1ItemError + */ + attribute_name?: string; +} +/** + * Check if a given object implements the V1ItemError interface. + */ +export declare function instanceOfV1ItemError(value: object): value is V1ItemError; +export declare function V1ItemErrorFromJSON(json: any): V1ItemError; +export declare function V1ItemErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemError; +export declare function V1ItemErrorToJSON(value?: V1ItemError | null): any; diff --git a/dist/esm/models/V1ItemError.js b/dist/esm/models/V1ItemError.js new file mode 100644 index 0000000..b101d58 --- /dev/null +++ b/dist/esm/models/V1ItemError.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ItemError interface. + */ +export function instanceOfV1ItemError(value) { + return true; +} +export function V1ItemErrorFromJSON(json) { + return V1ItemErrorFromJSONTyped(json, false); +} +export function V1ItemErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + 'state': json['state'] == null ? undefined : json['state'], + 'level': json['level'] == null ? undefined : json['level'], + 'description': json['description'] == null ? undefined : json['description'], + 'field': json['field'] == null ? undefined : json['field'], + 'attribute_id': json['attribute_id'] == null ? undefined : json['attribute_id'], + 'attribute_name': json['attribute_name'] == null ? undefined : json['attribute_name'], + }; +} +export function V1ItemErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + 'state': value['state'], + 'level': value['level'], + 'description': value['description'], + 'field': value['field'], + 'attribute_id': value['attribute_id'], + 'attribute_name': value['attribute_name'], + }; +} diff --git a/dist/esm/models/V1ItemIDsRequest.d.ts b/dist/esm/models/V1ItemIDsRequest.d.ts new file mode 100644 index 0000000..018d47e --- /dev/null +++ b/dist/esm/models/V1ItemIDsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ItemIDsRequest + */ +export interface V1ItemIDsRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. Максимальное количество — 50. + * @type {Array} + * @memberof V1ItemIDsRequest + */ + product_id: Array; +} +/** + * Check if a given object implements the V1ItemIDsRequest interface. + */ +export declare function instanceOfV1ItemIDsRequest(value: object): value is V1ItemIDsRequest; +export declare function V1ItemIDsRequestFromJSON(json: any): V1ItemIDsRequest; +export declare function V1ItemIDsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemIDsRequest; +export declare function V1ItemIDsRequestToJSON(value?: V1ItemIDsRequest | null): any; diff --git a/dist/esm/models/V1ItemIDsRequest.js b/dist/esm/models/V1ItemIDsRequest.js new file mode 100644 index 0000000..4028d9a --- /dev/null +++ b/dist/esm/models/V1ItemIDsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ItemIDsRequest interface. + */ +export function instanceOfV1ItemIDsRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function V1ItemIDsRequestFromJSON(json) { + return V1ItemIDsRequestFromJSONTyped(json, false); +} +export function V1ItemIDsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +export function V1ItemIDsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V1ItemResponse.d.ts b/dist/esm/models/V1ItemResponse.d.ts new file mode 100644 index 0000000..a175d8b --- /dev/null +++ b/dist/esm/models/V1ItemResponse.d.ts @@ -0,0 +1,172 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemShipmentType } from './V1BundleItemShipmentType'; +import type { V1ItemSfboAttribute } from './V1ItemSfboAttribute'; +/** + * + * @export + * @interface V1ItemResponse + */ +export interface V1ItemResponse { + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1ItemResponse + */ + icon_path?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ItemResponse + */ + sku?: number; + /** + * Название товара. + * @type {string} + * @memberof V1ItemResponse + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1ItemResponse + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1ItemResponse + */ + quantity?: number; + /** + * Штрихкод товара. + * @type {string} + * @memberof V1ItemResponse + */ + barcode?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1ItemResponse + */ + product_id?: number; + /** + * Количество товаров в одной упаковке. + * @type {number} + * @memberof V1ItemResponse + */ + quant?: number; + /** + * `true`, если количество товаров в одной упаковке можно изменить. + * + * @type {boolean} + * @memberof V1ItemResponse + */ + is_quant_editable?: boolean; + /** + * Объём товара в литрах. + * @type {number} + * @memberof V1ItemResponse + */ + volume_in_litres?: number; + /** + * Объём всех товаров в литрах. + * @type {number} + * @memberof V1ItemResponse + */ + total_volume_in_litres?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1ItemResponse + */ + contractor_item_code?: string; + /** + * + * @type {V1ItemSfboAttribute} + * @memberof V1ItemResponse + */ + sfbo_attribute?: V1ItemSfboAttribute; + /** + * + * @type {V1BundleItemShipmentType} + * @memberof V1ItemResponse + */ + shipment_type?: V1BundleItemShipmentType; + /** + * Теги товаров из поставки или заявки на поставку. + * + * Возможные значения: + * - `EVSD_REQUIRED` — товар с сертификацией «Меркурий»; + * - `MARKING_REQUIRED` — товар с обязательной маркировкой «Честный ЗНАК»; + * - `MARKING_POSSIBLE` — товар с возможной маркировкой «Честный ЗНАК»; + * - `JEWELRY` — товар с признаком ювелирного изделия; + * - `TRACEABLE` — товар с признаком прослеживаемости; + * - `ETTN_REQUIRED` — товар с признаком прослеживаемости, для которого необходима электронная ТТН; + * - `UNDEFINED` — неизвестный тег. + * + * @type {Array} + * @memberof V1ItemResponse + */ + tags?: Array; + /** + * Зона размещения товара: + * - `UNSPECIFIED` — не указана; + * - `CLOSED_ZONE` — закрытая зона; + * - `DANGEROUS_GOODS` — товар 2–4 класса опасности; + * - `PRODUCTS` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — неизвестная зона. + * + * @type {string} + * @memberof V1ItemResponse + */ + placement_zone?: V1ItemResponsePlacementZoneEnum; +} +/** + * @export + */ +export declare const V1ItemResponseTagsEnum: { + readonly EVSD_REQUIRED: "EVSD_REQUIRED"; + readonly MARKING_REQUIRED: "MARKING_REQUIRED"; + readonly MARKING_POSSIBLE: "MARKING_POSSIBLE"; + readonly JEWELRY: "JEWELRY"; + readonly TRACEABLE: "TRACEABLE"; + readonly ETTN_REQUIRED: "ETTN_REQUIRED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type V1ItemResponseTagsEnum = typeof V1ItemResponseTagsEnum[keyof typeof V1ItemResponseTagsEnum]; +/** + * @export + */ +export declare const V1ItemResponsePlacementZoneEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CLOSED_ZONE: "CLOSED_ZONE"; + readonly DANGEROUS_GOODS: "DANGEROUS_GOODS"; + readonly PRODUCTS: "PRODUCTS"; + readonly SORT: "SORT"; + readonly NON_SORT: "NON_SORT"; + readonly OVERSIZE: "OVERSIZE"; + readonly JEWELRY: "JEWELRY"; + readonly UNRESOLVED: "UNRESOLVED"; +}; +export type V1ItemResponsePlacementZoneEnum = typeof V1ItemResponsePlacementZoneEnum[keyof typeof V1ItemResponsePlacementZoneEnum]; +/** + * Check if a given object implements the V1ItemResponse interface. + */ +export declare function instanceOfV1ItemResponse(value: object): value is V1ItemResponse; +export declare function V1ItemResponseFromJSON(json: any): V1ItemResponse; +export declare function V1ItemResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemResponse; +export declare function V1ItemResponseToJSON(value?: V1ItemResponse | null): any; diff --git a/dist/esm/models/V1ItemResponse.js b/dist/esm/models/V1ItemResponse.js new file mode 100644 index 0000000..d58b449 --- /dev/null +++ b/dist/esm/models/V1ItemResponse.js @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1BundleItemShipmentTypeFromJSON, V1BundleItemShipmentTypeToJSON, } from './V1BundleItemShipmentType'; +import { V1ItemSfboAttributeFromJSON, V1ItemSfboAttributeToJSON, } from './V1ItemSfboAttribute'; +/** + * @export + */ +export const V1ItemResponseTagsEnum = { + EVSD_REQUIRED: 'EVSD_REQUIRED', + MARKING_REQUIRED: 'MARKING_REQUIRED', + MARKING_POSSIBLE: 'MARKING_POSSIBLE', + JEWELRY: 'JEWELRY', + TRACEABLE: 'TRACEABLE', + ETTN_REQUIRED: 'ETTN_REQUIRED', + UNDEFINED: 'UNDEFINED' +}; +/** + * @export + */ +export const V1ItemResponsePlacementZoneEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CLOSED_ZONE: 'CLOSED_ZONE', + DANGEROUS_GOODS: 'DANGEROUS_GOODS', + PRODUCTS: 'PRODUCTS', + SORT: 'SORT', + NON_SORT: 'NON_SORT', + OVERSIZE: 'OVERSIZE', + JEWELRY: 'JEWELRY', + UNRESOLVED: 'UNRESOLVED' +}; +/** + * Check if a given object implements the V1ItemResponse interface. + */ +export function instanceOfV1ItemResponse(value) { + return true; +} +export function V1ItemResponseFromJSON(json) { + return V1ItemResponseFromJSONTyped(json, false); +} +export function V1ItemResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'icon_path': json['icon_path'] == null ? undefined : json['icon_path'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'is_quant_editable': json['is_quant_editable'] == null ? undefined : json['is_quant_editable'], + 'volume_in_litres': json['volume_in_litres'] == null ? undefined : json['volume_in_litres'], + 'total_volume_in_litres': json['total_volume_in_litres'] == null ? undefined : json['total_volume_in_litres'], + 'contractor_item_code': json['contractor_item_code'] == null ? undefined : json['contractor_item_code'], + 'sfbo_attribute': json['sfbo_attribute'] == null ? undefined : V1ItemSfboAttributeFromJSON(json['sfbo_attribute']), + 'shipment_type': json['shipment_type'] == null ? undefined : V1BundleItemShipmentTypeFromJSON(json['shipment_type']), + 'tags': json['tags'] == null ? undefined : json['tags'], + 'placement_zone': json['placement_zone'] == null ? undefined : json['placement_zone'], + }; +} +export function V1ItemResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'icon_path': value['icon_path'], + 'sku': value['sku'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'barcode': value['barcode'], + 'product_id': value['product_id'], + 'quant': value['quant'], + 'is_quant_editable': value['is_quant_editable'], + 'volume_in_litres': value['volume_in_litres'], + 'total_volume_in_litres': value['total_volume_in_litres'], + 'contractor_item_code': value['contractor_item_code'], + 'sfbo_attribute': V1ItemSfboAttributeToJSON(value['sfbo_attribute']), + 'shipment_type': V1BundleItemShipmentTypeToJSON(value['shipment_type']), + 'tags': value['tags'], + 'placement_zone': value['placement_zone'], + }; +} diff --git a/dist/esm/models/V1ItemSfboAttribute.d.ts b/dist/esm/models/V1ItemSfboAttribute.d.ts new file mode 100644 index 0000000..94e0ef4 --- /dev/null +++ b/dist/esm/models/V1ItemSfboAttribute.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метка Super-товара: + * - `ITEM_SFBO_ATTRIBUTE_NONE` — без метки; + * - `ITEM_SFBO_ATTRIBUTE_SUPER_FBO` — Super-товар; + * - `ITEM_SFBO_ATTRIBUTE_ANTI_FBO` — неходовой товар. + * + * @export + */ +export declare const V1ItemSfboAttribute: { + readonly NONE: "ITEM_SFBO_ATTRIBUTE_NONE"; + readonly SUPER_FBO: "ITEM_SFBO_ATTRIBUTE_SUPER_FBO"; + readonly ANTI_FBO: "ITEM_SFBO_ATTRIBUTE_ANTI_FBO"; +}; +export type V1ItemSfboAttribute = typeof V1ItemSfboAttribute[keyof typeof V1ItemSfboAttribute]; +export declare function instanceOfV1ItemSfboAttribute(value: any): boolean; +export declare function V1ItemSfboAttributeFromJSON(json: any): V1ItemSfboAttribute; +export declare function V1ItemSfboAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemSfboAttribute; +export declare function V1ItemSfboAttributeToJSON(value?: V1ItemSfboAttribute | null): any; diff --git a/dist/esm/models/V1ItemSfboAttribute.js b/dist/esm/models/V1ItemSfboAttribute.js new file mode 100644 index 0000000..6288592 --- /dev/null +++ b/dist/esm/models/V1ItemSfboAttribute.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метка Super-товара: + * - `ITEM_SFBO_ATTRIBUTE_NONE` — без метки; + * - `ITEM_SFBO_ATTRIBUTE_SUPER_FBO` — Super-товар; + * - `ITEM_SFBO_ATTRIBUTE_ANTI_FBO` — неходовой товар. + * + * @export + */ +export const V1ItemSfboAttribute = { + NONE: 'ITEM_SFBO_ATTRIBUTE_NONE', + SUPER_FBO: 'ITEM_SFBO_ATTRIBUTE_SUPER_FBO', + ANTI_FBO: 'ITEM_SFBO_ATTRIBUTE_ANTI_FBO' +}; +export function instanceOfV1ItemSfboAttribute(value) { + for (const key in V1ItemSfboAttribute) { + if (Object.prototype.hasOwnProperty.call(V1ItemSfboAttribute, key)) { + if (V1ItemSfboAttribute[key] === value) { + return true; + } + } + } + return false; +} +export function V1ItemSfboAttributeFromJSON(json) { + return V1ItemSfboAttributeFromJSONTyped(json, false); +} +export function V1ItemSfboAttributeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1ItemSfboAttributeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1ItemSortField.d.ts b/dist/esm/models/V1ItemSortField.d.ts new file mode 100644 index 0000000..9be8dc1 --- /dev/null +++ b/dist/esm/models/V1ItemSortField.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сортировка по параметрам: + * - `SKU` — SKU; + * - `NAME` — названию товара; + * - `QUANTITY` — количеству; + * - `TOTAL_VOLUME_IN_LITRES` — объёму в литрах. + * + * @export + */ +export declare const V1ItemSortField: { + readonly SKU: "SKU"; + readonly NAME: "NAME"; + readonly QUANTITY: "QUANTITY"; + readonly TOTAL_VOLUME_IN_LITRES: "TOTAL_VOLUME_IN_LITRES"; +}; +export type V1ItemSortField = typeof V1ItemSortField[keyof typeof V1ItemSortField]; +export declare function instanceOfV1ItemSortField(value: any): boolean; +export declare function V1ItemSortFieldFromJSON(json: any): V1ItemSortField; +export declare function V1ItemSortFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemSortField; +export declare function V1ItemSortFieldToJSON(value?: V1ItemSortField | null): any; diff --git a/dist/esm/models/V1ItemSortField.js b/dist/esm/models/V1ItemSortField.js new file mode 100644 index 0000000..fa4e609 --- /dev/null +++ b/dist/esm/models/V1ItemSortField.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сортировка по параметрам: + * - `SKU` — SKU; + * - `NAME` — названию товара; + * - `QUANTITY` — количеству; + * - `TOTAL_VOLUME_IN_LITRES` — объёму в литрах. + * + * @export + */ +export const V1ItemSortField = { + SKU: 'SKU', + NAME: 'NAME', + QUANTITY: 'QUANTITY', + TOTAL_VOLUME_IN_LITRES: 'TOTAL_VOLUME_IN_LITRES' +}; +export function instanceOfV1ItemSortField(value) { + for (const key in V1ItemSortField) { + if (Object.prototype.hasOwnProperty.call(V1ItemSortField, key)) { + if (V1ItemSortField[key] === value) { + return true; + } + } + } + return false; +} +export function V1ItemSortFieldFromJSON(json) { + return V1ItemSortFieldFromJSONTyped(json, false); +} +export function V1ItemSortFieldFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1ItemSortFieldToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.d.ts b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.d.ts new file mode 100644 index 0000000..487f577 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates } from './V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates'; +import type { ListDropOffPointsForCreateFBSWarehouseRequestSearch } from './ListDropOffPointsForCreateFBSWarehouseRequestSearch'; +/** + * + * @export + * @interface V1ListDropOffPointsForCreateFBSWarehouseRequest + */ +export interface V1ListDropOffPointsForCreateFBSWarehouseRequest { + /** + * + * @type {V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequest + */ + coordinates?: V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; + /** + * Код страны в формате ISO 2. + * + * @type {string} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequest + */ + country_code: string; + /** + * `true`, если товар крупногабаритный. + * + * @type {boolean} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequest + */ + is_kgt: boolean; + /** + * + * @type {ListDropOffPointsForCreateFBSWarehouseRequestSearch} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequest + */ + search?: ListDropOffPointsForCreateFBSWarehouseRequestSearch; +} +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseRequest interface. + */ +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequest(value: object): value is V1ListDropOffPointsForCreateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseRequest | null): any; diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.js b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.js new file mode 100644 index 0000000..7d0f302 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON, V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON, } from './V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates'; +import { ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON, ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON, } from './ListDropOffPointsForCreateFBSWarehouseRequestSearch'; +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseRequest interface. + */ +export function instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequest(value) { + if (!('country_code' in value) || value['country_code'] === undefined) + return false; + if (!('is_kgt' in value) || value['is_kgt'] === undefined) + return false; + return true; +} +export function V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSONTyped(json, false); +} +export function V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'] == null ? undefined : V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON(json['coordinates']), + 'country_code': json['country_code'], + 'is_kgt': json['is_kgt'], + 'search': json['search'] == null ? undefined : ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON(json['search']), + }; +} +export function V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON(value['coordinates']), + 'country_code': value['country_code'], + 'is_kgt': value['is_kgt'], + 'search': ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON(value['search']), + }; +} diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.d.ts b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.d.ts new file mode 100644 index 0000000..0897a2e --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates + */ +export interface V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates interface. + */ +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates(value: object): value is V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates | null): any; diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.js b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.js new file mode 100644 index 0000000..87be46a --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates interface. + */ +export function instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +export function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSONTyped(json, false); +} +export function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +export function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.d.ts b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.d.ts new file mode 100644 index 0000000..0fad4ec --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint } from './ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint'; +/** + * + * @export + * @interface V1ListDropOffPointsForCreateFBSWarehouseResponse + */ +export interface V1ListDropOffPointsForCreateFBSWarehouseResponse { + /** + * Список пунктов. + * @type {Array} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseResponse interface. + */ +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponse(value: object): value is V1ListDropOffPointsForCreateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseResponse | null): any; diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.js b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.js new file mode 100644 index 0000000..2630144 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON, ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON, } from './ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint'; +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseResponse interface. + */ +export function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponse(value) { + return true; +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSONTyped(json, false); +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'] == null ? undefined : (json['points'].map(ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON)), + }; +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'points': value['points'] == null ? undefined : (value['points'].map(ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON)), + }; +} diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.d.ts b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.d.ts new file mode 100644 index 0000000..9cb8b61 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты drop-off пункта. + * @export + * @interface V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates + */ +export interface V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates interface. + */ +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates(value: object): value is V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates | null): any; diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.js b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.js new file mode 100644 index 0000000..7170da7 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates interface. + */ +export function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates(value) { + return true; +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSONTyped(json, false); +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.d.ts b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.d.ts new file mode 100644 index 0000000..eab4ee5 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum = typeof V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum[keyof typeof V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum]; +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum(value: any): boolean; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum | null): any; diff --git a/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.js b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.js new file mode 100644 index 0000000..761fae8 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export const V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum(value) { + for (const key in V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum, key)) { + if (V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSONTyped(json, false); +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.d.ts b/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.d.ts new file mode 100644 index 0000000..da03634 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForUpdateFBSWarehouseRequestSearch } from './ListDropOffPointsForUpdateFBSWarehouseRequestSearch'; +/** + * + * @export + * @interface V1ListDropOffPointsForUpdateFBSWarehouseRequest + */ +export interface V1ListDropOffPointsForUpdateFBSWarehouseRequest { + /** + * + * @type {ListDropOffPointsForUpdateFBSWarehouseRequestSearch} + * @memberof V1ListDropOffPointsForUpdateFBSWarehouseRequest + */ + search?: ListDropOffPointsForUpdateFBSWarehouseRequestSearch; + /** + * Фильтр по существующему FBS-складу. + * @type {number} + * @memberof V1ListDropOffPointsForUpdateFBSWarehouseRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1ListDropOffPointsForUpdateFBSWarehouseRequest interface. + */ +export declare function instanceOfV1ListDropOffPointsForUpdateFBSWarehouseRequest(value: object): value is V1ListDropOffPointsForUpdateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSON(json: any): V1ListDropOffPointsForUpdateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForUpdateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON(value?: V1ListDropOffPointsForUpdateFBSWarehouseRequest | null): any; diff --git a/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.js b/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.js new file mode 100644 index 0000000..83fe2d2 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON, ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON, } from './ListDropOffPointsForUpdateFBSWarehouseRequestSearch'; +/** + * Check if a given object implements the V1ListDropOffPointsForUpdateFBSWarehouseRequest interface. + */ +export function instanceOfV1ListDropOffPointsForUpdateFBSWarehouseRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSON(json) { + return V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSONTyped(json, false); +} +export function V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'search': json['search'] == null ? undefined : ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON(json['search']), + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'search': ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON(value['search']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.d.ts b/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.d.ts new file mode 100644 index 0000000..4808850 --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint } from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint'; +/** + * + * @export + * @interface V1ListDropOffPointsForUpdateFBSWarehouseResponse + */ +export interface V1ListDropOffPointsForUpdateFBSWarehouseResponse { + /** + * Список пунктов. + * @type {Array} + * @memberof V1ListDropOffPointsForUpdateFBSWarehouseResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1ListDropOffPointsForUpdateFBSWarehouseResponse interface. + */ +export declare function instanceOfV1ListDropOffPointsForUpdateFBSWarehouseResponse(value: object): value is V1ListDropOffPointsForUpdateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON(json: any): V1ListDropOffPointsForUpdateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForUpdateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseResponseToJSON(value?: V1ListDropOffPointsForUpdateFBSWarehouseResponse | null): any; diff --git a/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.js b/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.js new file mode 100644 index 0000000..4e77b6d --- /dev/null +++ b/dist/esm/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON, ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON, } from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint'; +/** + * Check if a given object implements the V1ListDropOffPointsForUpdateFBSWarehouseResponse interface. + */ +export function instanceOfV1ListDropOffPointsForUpdateFBSWarehouseResponse(value) { + return true; +} +export function V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON(json) { + return V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSONTyped(json, false); +} +export function V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'] == null ? undefined : (json['points'].map(ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON)), + }; +} +export function V1ListDropOffPointsForUpdateFBSWarehouseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'points': value['points'] == null ? undefined : (value['points'].map(ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON)), + }; +} diff --git a/dist/esm/models/V1ListFBSRatingIndexPostingsV1Request.d.ts b/dist/esm/models/V1ListFBSRatingIndexPostingsV1Request.d.ts new file mode 100644 index 0000000..4735ead --- /dev/null +++ b/dist/esm/models/V1ListFBSRatingIndexPostingsV1Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListFBSRatingIndexPostingsV1RequestFilter } from './ListFBSRatingIndexPostingsV1RequestFilter'; +/** + * + * @export + * @interface V1ListFBSRatingIndexPostingsV1Request + */ +export interface V1ListFBSRatingIndexPostingsV1Request { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ListFBSRatingIndexPostingsV1Request + */ + cursor?: string; + /** + * + * @type {ListFBSRatingIndexPostingsV1RequestFilter} + * @memberof V1ListFBSRatingIndexPostingsV1Request + */ + filter: ListFBSRatingIndexPostingsV1RequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1ListFBSRatingIndexPostingsV1Request + */ + limit: number; +} +/** + * Check if a given object implements the V1ListFBSRatingIndexPostingsV1Request interface. + */ +export declare function instanceOfV1ListFBSRatingIndexPostingsV1Request(value: object): value is V1ListFBSRatingIndexPostingsV1Request; +export declare function V1ListFBSRatingIndexPostingsV1RequestFromJSON(json: any): V1ListFBSRatingIndexPostingsV1Request; +export declare function V1ListFBSRatingIndexPostingsV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListFBSRatingIndexPostingsV1Request; +export declare function V1ListFBSRatingIndexPostingsV1RequestToJSON(value?: V1ListFBSRatingIndexPostingsV1Request | null): any; diff --git a/dist/esm/models/V1ListFBSRatingIndexPostingsV1Request.js b/dist/esm/models/V1ListFBSRatingIndexPostingsV1Request.js new file mode 100644 index 0000000..0c71270 --- /dev/null +++ b/dist/esm/models/V1ListFBSRatingIndexPostingsV1Request.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListFBSRatingIndexPostingsV1RequestFilterFromJSON, ListFBSRatingIndexPostingsV1RequestFilterToJSON, } from './ListFBSRatingIndexPostingsV1RequestFilter'; +/** + * Check if a given object implements the V1ListFBSRatingIndexPostingsV1Request interface. + */ +export function instanceOfV1ListFBSRatingIndexPostingsV1Request(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1ListFBSRatingIndexPostingsV1RequestFromJSON(json) { + return V1ListFBSRatingIndexPostingsV1RequestFromJSONTyped(json, false); +} +export function V1ListFBSRatingIndexPostingsV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': ListFBSRatingIndexPostingsV1RequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function V1ListFBSRatingIndexPostingsV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': ListFBSRatingIndexPostingsV1RequestFilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1ListFBSRatingIndexPostingsV1Response.d.ts b/dist/esm/models/V1ListFBSRatingIndexPostingsV1Response.d.ts new file mode 100644 index 0000000..37ba1da --- /dev/null +++ b/dist/esm/models/V1ListFBSRatingIndexPostingsV1Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListFBSRatingIndexPostingsV1ResponseError } from './ListFBSRatingIndexPostingsV1ResponseError'; +/** + * + * @export + * @interface V1ListFBSRatingIndexPostingsV1Response + */ +export interface V1ListFBSRatingIndexPostingsV1Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ListFBSRatingIndexPostingsV1Response + */ + cursor?: string; + /** + * Отправления, которые повлияли на индекс. + * @type {Array} + * @memberof V1ListFBSRatingIndexPostingsV1Response + */ + errors?: Array; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof V1ListFBSRatingIndexPostingsV1Response + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V1ListFBSRatingIndexPostingsV1Response interface. + */ +export declare function instanceOfV1ListFBSRatingIndexPostingsV1Response(value: object): value is V1ListFBSRatingIndexPostingsV1Response; +export declare function V1ListFBSRatingIndexPostingsV1ResponseFromJSON(json: any): V1ListFBSRatingIndexPostingsV1Response; +export declare function V1ListFBSRatingIndexPostingsV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListFBSRatingIndexPostingsV1Response; +export declare function V1ListFBSRatingIndexPostingsV1ResponseToJSON(value?: V1ListFBSRatingIndexPostingsV1Response | null): any; diff --git a/dist/esm/models/V1ListFBSRatingIndexPostingsV1Response.js b/dist/esm/models/V1ListFBSRatingIndexPostingsV1Response.js new file mode 100644 index 0000000..fe06f04 --- /dev/null +++ b/dist/esm/models/V1ListFBSRatingIndexPostingsV1Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListFBSRatingIndexPostingsV1ResponseErrorFromJSON, ListFBSRatingIndexPostingsV1ResponseErrorToJSON, } from './ListFBSRatingIndexPostingsV1ResponseError'; +/** + * Check if a given object implements the V1ListFBSRatingIndexPostingsV1Response interface. + */ +export function instanceOfV1ListFBSRatingIndexPostingsV1Response(value) { + return true; +} +export function V1ListFBSRatingIndexPostingsV1ResponseFromJSON(json) { + return V1ListFBSRatingIndexPostingsV1ResponseFromJSONTyped(json, false); +} +export function V1ListFBSRatingIndexPostingsV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(ListFBSRatingIndexPostingsV1ResponseErrorFromJSON)), + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +export function V1ListFBSRatingIndexPostingsV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(ListFBSRatingIndexPostingsV1ResponseErrorToJSON)), + 'has_next': value['has_next'], + }; +} diff --git a/dist/esm/models/V1ListPostingCodesRequest.d.ts b/dist/esm/models/V1ListPostingCodesRequest.d.ts new file mode 100644 index 0000000..2c04004 --- /dev/null +++ b/dist/esm/models/V1ListPostingCodesRequest.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DirEnum } from './DirEnum'; +import type { ListPostingCodesRequestFilter } from './ListPostingCodesRequestFilter'; +import type { ListPostingCodesRequestWithParams } from './ListPostingCodesRequestWithParams'; +/** + * + * @export + * @interface V1ListPostingCodesRequest + */ +export interface V1ListPostingCodesRequest { + /** + * + * @type {DirEnum} + * @memberof V1ListPostingCodesRequest + */ + dir?: DirEnum; + /** + * + * @type {ListPostingCodesRequestFilter} + * @memberof V1ListPostingCodesRequest + */ + filter?: ListPostingCodesRequestFilter; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof V1ListPostingCodesRequest + */ + limit?: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. Максимальное значение — 20000. + * @type {number} + * @memberof V1ListPostingCodesRequest + */ + offset?: number; + /** + * + * @type {ListPostingCodesRequestWithParams} + * @memberof V1ListPostingCodesRequest + */ + _with?: ListPostingCodesRequestWithParams; +} +/** + * Check if a given object implements the V1ListPostingCodesRequest interface. + */ +export declare function instanceOfV1ListPostingCodesRequest(value: object): value is V1ListPostingCodesRequest; +export declare function V1ListPostingCodesRequestFromJSON(json: any): V1ListPostingCodesRequest; +export declare function V1ListPostingCodesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListPostingCodesRequest; +export declare function V1ListPostingCodesRequestToJSON(value?: V1ListPostingCodesRequest | null): any; diff --git a/dist/esm/models/V1ListPostingCodesRequest.js b/dist/esm/models/V1ListPostingCodesRequest.js new file mode 100644 index 0000000..20e4664 --- /dev/null +++ b/dist/esm/models/V1ListPostingCodesRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DirEnumFromJSON, DirEnumToJSON, } from './DirEnum'; +import { ListPostingCodesRequestFilterFromJSON, ListPostingCodesRequestFilterToJSON, } from './ListPostingCodesRequestFilter'; +import { ListPostingCodesRequestWithParamsFromJSON, ListPostingCodesRequestWithParamsToJSON, } from './ListPostingCodesRequestWithParams'; +/** + * Check if a given object implements the V1ListPostingCodesRequest interface. + */ +export function instanceOfV1ListPostingCodesRequest(value) { + return true; +} +export function V1ListPostingCodesRequestFromJSON(json) { + return V1ListPostingCodesRequestFromJSONTyped(json, false); +} +export function V1ListPostingCodesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dir': json['dir'] == null ? undefined : DirEnumFromJSON(json['dir']), + 'filter': json['filter'] == null ? undefined : ListPostingCodesRequestFilterFromJSON(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + '_with': json['with'] == null ? undefined : ListPostingCodesRequestWithParamsFromJSON(json['with']), + }; +} +export function V1ListPostingCodesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'dir': DirEnumToJSON(value['dir']), + 'filter': ListPostingCodesRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'with': ListPostingCodesRequestWithParamsToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/V1ListPostingCodesResponse.d.ts b/dist/esm/models/V1ListPostingCodesResponse.d.ts new file mode 100644 index 0000000..117bbc1 --- /dev/null +++ b/dist/esm/models/V1ListPostingCodesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListPostingCodesResponsePosting } from './ListPostingCodesResponsePosting'; +/** + * + * @export + * @interface V1ListPostingCodesResponse + */ +export interface V1ListPostingCodesResponse { + /** + * Список отправлений. + * @type {Array} + * @memberof V1ListPostingCodesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ListPostingCodesResponse interface. + */ +export declare function instanceOfV1ListPostingCodesResponse(value: object): value is V1ListPostingCodesResponse; +export declare function V1ListPostingCodesResponseFromJSON(json: any): V1ListPostingCodesResponse; +export declare function V1ListPostingCodesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListPostingCodesResponse; +export declare function V1ListPostingCodesResponseToJSON(value?: V1ListPostingCodesResponse | null): any; diff --git a/dist/esm/models/V1ListPostingCodesResponse.js b/dist/esm/models/V1ListPostingCodesResponse.js new file mode 100644 index 0000000..2571249 --- /dev/null +++ b/dist/esm/models/V1ListPostingCodesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ListPostingCodesResponsePostingFromJSON, ListPostingCodesResponsePostingToJSON, } from './ListPostingCodesResponsePosting'; +/** + * Check if a given object implements the V1ListPostingCodesResponse interface. + */ +export function instanceOfV1ListPostingCodesResponse(value) { + return true; +} +export function V1ListPostingCodesResponseFromJSON(json) { + return V1ListPostingCodesResponseFromJSONTyped(json, false); +} +export function V1ListPostingCodesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ListPostingCodesResponsePostingFromJSON)), + }; +} +export function V1ListPostingCodesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ListPostingCodesResponsePostingToJSON)), + }; +} diff --git a/dist/esm/models/V1Money.d.ts b/dist/esm/models/V1Money.d.ts new file mode 100644 index 0000000..60cd315 --- /dev/null +++ b/dist/esm/models/V1Money.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ограничение по цене. + * @export + * @interface V1Money + */ +export interface V1Money { + /** + * Валюта. + * @type {string} + * @memberof V1Money + */ + currency?: string; + /** + * Значение цены. + * @type {number} + * @memberof V1Money + */ + value?: number; +} +/** + * Check if a given object implements the V1Money interface. + */ +export declare function instanceOfV1Money(value: object): value is V1Money; +export declare function V1MoneyFromJSON(json: any): V1Money; +export declare function V1MoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Money; +export declare function V1MoneyToJSON(value?: V1Money | null): any; diff --git a/dist/esm/models/V1Money.js b/dist/esm/models/V1Money.js new file mode 100644 index 0000000..0b8a775 --- /dev/null +++ b/dist/esm/models/V1Money.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1Money interface. + */ +export function instanceOfV1Money(value) { + return true; +} +export function V1MoneyFromJSON(json) { + return V1MoneyFromJSONTyped(json, false); +} +export function V1MoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency': json['currency'] == null ? undefined : json['currency'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1MoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency': value['currency'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1OrderAttentionTypeEnum.d.ts b/dist/esm/models/V1OrderAttentionTypeEnum.d.ts new file mode 100644 index 0000000..5ab342a --- /dev/null +++ b/dist/esm/models/V1OrderAttentionTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1OrderAttentionTypeEnum: { + readonly ORDER_ATTENTION_TYPE_UNSPECIFIED: "ORDER_ATTENTION_TYPE_UNSPECIFIED"; + readonly OLD: "OLD"; + readonly TIME_SLOT_EXPIRED: "TIME_SLOT_EXPIRED"; +}; +export type V1OrderAttentionTypeEnum = typeof V1OrderAttentionTypeEnum[keyof typeof V1OrderAttentionTypeEnum]; +export declare function instanceOfV1OrderAttentionTypeEnum(value: any): boolean; +export declare function V1OrderAttentionTypeEnumFromJSON(json: any): V1OrderAttentionTypeEnum; +export declare function V1OrderAttentionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderAttentionTypeEnum; +export declare function V1OrderAttentionTypeEnumToJSON(value?: V1OrderAttentionTypeEnum | null): any; diff --git a/dist/esm/models/V1OrderAttentionTypeEnum.js b/dist/esm/models/V1OrderAttentionTypeEnum.js new file mode 100644 index 0000000..e13ba6c --- /dev/null +++ b/dist/esm/models/V1OrderAttentionTypeEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1OrderAttentionTypeEnum = { + ORDER_ATTENTION_TYPE_UNSPECIFIED: 'ORDER_ATTENTION_TYPE_UNSPECIFIED', + OLD: 'OLD', + TIME_SLOT_EXPIRED: 'TIME_SLOT_EXPIRED' +}; +export function instanceOfV1OrderAttentionTypeEnum(value) { + for (const key in V1OrderAttentionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1OrderAttentionTypeEnum, key)) { + if (V1OrderAttentionTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1OrderAttentionTypeEnumFromJSON(json) { + return V1OrderAttentionTypeEnumFromJSONTyped(json, false); +} +export function V1OrderAttentionTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1OrderAttentionTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1OrderCancelCheckRequest.d.ts b/dist/esm/models/V1OrderCancelCheckRequest.d.ts new file mode 100644 index 0000000..af00bb9 --- /dev/null +++ b/dist/esm/models/V1OrderCancelCheckRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelCheckRequest + */ +export interface V1OrderCancelCheckRequest { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelCheckRequest + */ + order_number: string; +} +/** + * Check if a given object implements the V1OrderCancelCheckRequest interface. + */ +export declare function instanceOfV1OrderCancelCheckRequest(value: object): value is V1OrderCancelCheckRequest; +export declare function V1OrderCancelCheckRequestFromJSON(json: any): V1OrderCancelCheckRequest; +export declare function V1OrderCancelCheckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelCheckRequest; +export declare function V1OrderCancelCheckRequestToJSON(value?: V1OrderCancelCheckRequest | null): any; diff --git a/dist/esm/models/V1OrderCancelCheckRequest.js b/dist/esm/models/V1OrderCancelCheckRequest.js new file mode 100644 index 0000000..62aa6d1 --- /dev/null +++ b/dist/esm/models/V1OrderCancelCheckRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1OrderCancelCheckRequest interface. + */ +export function instanceOfV1OrderCancelCheckRequest(value) { + if (!('order_number' in value) || value['order_number'] === undefined) + return false; + return true; +} +export function V1OrderCancelCheckRequestFromJSON(json) { + return V1OrderCancelCheckRequestFromJSONTyped(json, false); +} +export function V1OrderCancelCheckRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'], + }; +} +export function V1OrderCancelCheckRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + }; +} diff --git a/dist/esm/models/V1OrderCancelCheckResponse.d.ts b/dist/esm/models/V1OrderCancelCheckResponse.d.ts new file mode 100644 index 0000000..5a6557c --- /dev/null +++ b/dist/esm/models/V1OrderCancelCheckResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderCancelCheckResponsePostingGroup } from './OrderCancelCheckResponsePostingGroup'; +import type { OrderCancelCheckResponsePosting } from './OrderCancelCheckResponsePosting'; +/** + * + * @export + * @interface V1OrderCancelCheckResponse + */ +export interface V1OrderCancelCheckResponse { + /** + * `true`, если заказ можно отменить. + * + * @type {boolean} + * @memberof V1OrderCancelCheckResponse + */ + cancellable?: boolean; + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelCheckResponse + */ + order_number?: string; + /** + * Группы отправлений. + * @type {Array} + * @memberof V1OrderCancelCheckResponse + */ + posting_groups?: Array; + /** + * Информация о возможности отмены отправлений. + * @type {Array} + * @memberof V1OrderCancelCheckResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1OrderCancelCheckResponse interface. + */ +export declare function instanceOfV1OrderCancelCheckResponse(value: object): value is V1OrderCancelCheckResponse; +export declare function V1OrderCancelCheckResponseFromJSON(json: any): V1OrderCancelCheckResponse; +export declare function V1OrderCancelCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelCheckResponse; +export declare function V1OrderCancelCheckResponseToJSON(value?: V1OrderCancelCheckResponse | null): any; diff --git a/dist/esm/models/V1OrderCancelCheckResponse.js b/dist/esm/models/V1OrderCancelCheckResponse.js new file mode 100644 index 0000000..acf3ac4 --- /dev/null +++ b/dist/esm/models/V1OrderCancelCheckResponse.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OrderCancelCheckResponsePostingGroupFromJSON, OrderCancelCheckResponsePostingGroupToJSON, } from './OrderCancelCheckResponsePostingGroup'; +import { OrderCancelCheckResponsePostingFromJSON, OrderCancelCheckResponsePostingToJSON, } from './OrderCancelCheckResponsePosting'; +/** + * Check if a given object implements the V1OrderCancelCheckResponse interface. + */ +export function instanceOfV1OrderCancelCheckResponse(value) { + return true; +} +export function V1OrderCancelCheckResponseFromJSON(json) { + return V1OrderCancelCheckResponseFromJSONTyped(json, false); +} +export function V1OrderCancelCheckResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellable': json['cancellable'] == null ? undefined : json['cancellable'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_groups': json['posting_groups'] == null ? undefined : (json['posting_groups'].map(OrderCancelCheckResponsePostingGroupFromJSON)), + 'postings': json['postings'] == null ? undefined : (json['postings'].map(OrderCancelCheckResponsePostingFromJSON)), + }; +} +export function V1OrderCancelCheckResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellable': value['cancellable'], + 'order_number': value['order_number'], + 'posting_groups': value['posting_groups'] == null ? undefined : (value['posting_groups'].map(OrderCancelCheckResponsePostingGroupToJSON)), + 'postings': value['postings'] == null ? undefined : (value['postings'].map(OrderCancelCheckResponsePostingToJSON)), + }; +} diff --git a/dist/esm/models/V1OrderCancelRequest.d.ts b/dist/esm/models/V1OrderCancelRequest.d.ts new file mode 100644 index 0000000..9d5ca45 --- /dev/null +++ b/dist/esm/models/V1OrderCancelRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelRequest + */ +export interface V1OrderCancelRequest { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelRequest + */ + order_number: string; + /** + * Идентификатор причины отмены заказа. + * @type {number} + * @memberof V1OrderCancelRequest + */ + reason_id: number; + /** + * Причина отмены заказа. + * @type {string} + * @memberof V1OrderCancelRequest + */ + reason_message?: string; +} +/** + * Check if a given object implements the V1OrderCancelRequest interface. + */ +export declare function instanceOfV1OrderCancelRequest(value: object): value is V1OrderCancelRequest; +export declare function V1OrderCancelRequestFromJSON(json: any): V1OrderCancelRequest; +export declare function V1OrderCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelRequest; +export declare function V1OrderCancelRequestToJSON(value?: V1OrderCancelRequest | null): any; diff --git a/dist/esm/models/V1OrderCancelRequest.js b/dist/esm/models/V1OrderCancelRequest.js new file mode 100644 index 0000000..5e57be6 --- /dev/null +++ b/dist/esm/models/V1OrderCancelRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1OrderCancelRequest interface. + */ +export function instanceOfV1OrderCancelRequest(value) { + if (!('order_number' in value) || value['order_number'] === undefined) + return false; + if (!('reason_id' in value) || value['reason_id'] === undefined) + return false; + return true; +} +export function V1OrderCancelRequestFromJSON(json) { + return V1OrderCancelRequestFromJSONTyped(json, false); +} +export function V1OrderCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'], + 'reason_id': json['reason_id'], + 'reason_message': json['reason_message'] == null ? undefined : json['reason_message'], + }; +} +export function V1OrderCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'reason_id': value['reason_id'], + 'reason_message': value['reason_message'], + }; +} diff --git a/dist/esm/models/V1OrderCancelResponse.d.ts b/dist/esm/models/V1OrderCancelResponse.d.ts new file mode 100644 index 0000000..95cdb16 --- /dev/null +++ b/dist/esm/models/V1OrderCancelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelResponse + */ +export interface V1OrderCancelResponse { + /** + * Статус обработки отмены. + * @type {string} + * @memberof V1OrderCancelResponse + */ + message?: string; +} +/** + * Check if a given object implements the V1OrderCancelResponse interface. + */ +export declare function instanceOfV1OrderCancelResponse(value: object): value is V1OrderCancelResponse; +export declare function V1OrderCancelResponseFromJSON(json: any): V1OrderCancelResponse; +export declare function V1OrderCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelResponse; +export declare function V1OrderCancelResponseToJSON(value?: V1OrderCancelResponse | null): any; diff --git a/dist/esm/models/V1OrderCancelResponse.js b/dist/esm/models/V1OrderCancelResponse.js new file mode 100644 index 0000000..5594b93 --- /dev/null +++ b/dist/esm/models/V1OrderCancelResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1OrderCancelResponse interface. + */ +export function instanceOfV1OrderCancelResponse(value) { + return true; +} +export function V1OrderCancelResponseFromJSON(json) { + return V1OrderCancelResponseFromJSONTyped(json, false); +} +export function V1OrderCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function V1OrderCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + }; +} diff --git a/dist/esm/models/V1OrderCancelStatusRequest.d.ts b/dist/esm/models/V1OrderCancelStatusRequest.d.ts new file mode 100644 index 0000000..c1d04f5 --- /dev/null +++ b/dist/esm/models/V1OrderCancelStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelStatusRequest + */ +export interface V1OrderCancelStatusRequest { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelStatusRequest + */ + order_number: string; +} +/** + * Check if a given object implements the V1OrderCancelStatusRequest interface. + */ +export declare function instanceOfV1OrderCancelStatusRequest(value: object): value is V1OrderCancelStatusRequest; +export declare function V1OrderCancelStatusRequestFromJSON(json: any): V1OrderCancelStatusRequest; +export declare function V1OrderCancelStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelStatusRequest; +export declare function V1OrderCancelStatusRequestToJSON(value?: V1OrderCancelStatusRequest | null): any; diff --git a/dist/esm/models/V1OrderCancelStatusRequest.js b/dist/esm/models/V1OrderCancelStatusRequest.js new file mode 100644 index 0000000..cc47fac --- /dev/null +++ b/dist/esm/models/V1OrderCancelStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1OrderCancelStatusRequest interface. + */ +export function instanceOfV1OrderCancelStatusRequest(value) { + if (!('order_number' in value) || value['order_number'] === undefined) + return false; + return true; +} +export function V1OrderCancelStatusRequestFromJSON(json) { + return V1OrderCancelStatusRequestFromJSONTyped(json, false); +} +export function V1OrderCancelStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'], + }; +} +export function V1OrderCancelStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + }; +} diff --git a/dist/esm/models/V1OrderCancelStatusResponse.d.ts b/dist/esm/models/V1OrderCancelStatusResponse.d.ts new file mode 100644 index 0000000..6093412 --- /dev/null +++ b/dist/esm/models/V1OrderCancelStatusResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelStatusResponse + */ +export interface V1OrderCancelStatusResponse { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelStatusResponse + */ + order_number?: string; + /** + * Список отправлений в заказе. + * @type {Array} + * @memberof V1OrderCancelStatusResponse + */ + posting_number?: Array; + /** + * Статус отмены заказа: + * - `Подтверждена`, + * - `На подтверждении`, + * - `Отклонена`, + * - `Ожидает обработки`. + * + * @type {string} + * @memberof V1OrderCancelStatusResponse + */ + state?: string; +} +/** + * Check if a given object implements the V1OrderCancelStatusResponse interface. + */ +export declare function instanceOfV1OrderCancelStatusResponse(value: object): value is V1OrderCancelStatusResponse; +export declare function V1OrderCancelStatusResponseFromJSON(json: any): V1OrderCancelStatusResponse; +export declare function V1OrderCancelStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelStatusResponse; +export declare function V1OrderCancelStatusResponseToJSON(value?: V1OrderCancelStatusResponse | null): any; diff --git a/dist/esm/models/V1OrderCancelStatusResponse.js b/dist/esm/models/V1OrderCancelStatusResponse.js new file mode 100644 index 0000000..0126412 --- /dev/null +++ b/dist/esm/models/V1OrderCancelStatusResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1OrderCancelStatusResponse interface. + */ +export function instanceOfV1OrderCancelStatusResponse(value) { + return true; +} +export function V1OrderCancelStatusResponseFromJSON(json) { + return V1OrderCancelStatusResponseFromJSONTyped(json, false); +} +export function V1OrderCancelStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'state': json['state'] == null ? undefined : json['state'], + }; +} +export function V1OrderCancelStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'state': value['state'], + }; +} diff --git a/dist/esm/models/V1OrderCreateRequest.d.ts b/dist/esm/models/V1OrderCreateRequest.d.ts new file mode 100644 index 0000000..d0c62bc --- /dev/null +++ b/dist/esm/models/V1OrderCreateRequest.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderCreateRequestSplit } from './OrderCreateRequestSplit'; +import type { OrderCreateRequestRecipient } from './OrderCreateRequestRecipient'; +import type { OrderCreateRequestBuyer } from './OrderCreateRequestBuyer'; +import type { OrderCreateRequestDelivery } from './OrderCreateRequestDelivery'; +import type { OrderCreateRequestV2DeliverySchemaEnum } from './OrderCreateRequestV2DeliverySchemaEnum'; +/** + * + * @export + * @interface V1OrderCreateRequest + */ +export interface V1OrderCreateRequest { + /** + * + * @type {OrderCreateRequestBuyer} + * @memberof V1OrderCreateRequest + */ + buyer: OrderCreateRequestBuyer; + /** + * + * @type {OrderCreateRequestDelivery} + * @memberof V1OrderCreateRequest + */ + delivery: OrderCreateRequestDelivery | null; + /** + * + * @type {OrderCreateRequestV2DeliverySchemaEnum} + * @memberof V1OrderCreateRequest + */ + delivery_schema: OrderCreateRequestV2DeliverySchemaEnum; + /** + * + * @type {OrderCreateRequestRecipient} + * @memberof V1OrderCreateRequest + */ + recipient: OrderCreateRequestRecipient; + /** + * Информация об отправлениях в заказе. + * @type {Array} + * @memberof V1OrderCreateRequest + */ + splits: Array; +} +/** + * Check if a given object implements the V1OrderCreateRequest interface. + */ +export declare function instanceOfV1OrderCreateRequest(value: object): value is V1OrderCreateRequest; +export declare function V1OrderCreateRequestFromJSON(json: any): V1OrderCreateRequest; +export declare function V1OrderCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCreateRequest; +export declare function V1OrderCreateRequestToJSON(value?: V1OrderCreateRequest | null): any; diff --git a/dist/esm/models/V1OrderCreateRequest.js b/dist/esm/models/V1OrderCreateRequest.js new file mode 100644 index 0000000..d32a5b1 --- /dev/null +++ b/dist/esm/models/V1OrderCreateRequest.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OrderCreateRequestSplitFromJSON, OrderCreateRequestSplitToJSON, } from './OrderCreateRequestSplit'; +import { OrderCreateRequestRecipientFromJSON, OrderCreateRequestRecipientToJSON, } from './OrderCreateRequestRecipient'; +import { OrderCreateRequestBuyerFromJSON, OrderCreateRequestBuyerToJSON, } from './OrderCreateRequestBuyer'; +import { OrderCreateRequestDeliveryFromJSON, OrderCreateRequestDeliveryToJSON, } from './OrderCreateRequestDelivery'; +import { OrderCreateRequestV2DeliverySchemaEnumFromJSON, OrderCreateRequestV2DeliverySchemaEnumToJSON, } from './OrderCreateRequestV2DeliverySchemaEnum'; +/** + * Check if a given object implements the V1OrderCreateRequest interface. + */ +export function instanceOfV1OrderCreateRequest(value) { + if (!('buyer' in value) || value['buyer'] === undefined) + return false; + if (!('delivery' in value) || value['delivery'] === undefined) + return false; + if (!('delivery_schema' in value) || value['delivery_schema'] === undefined) + return false; + if (!('recipient' in value) || value['recipient'] === undefined) + return false; + if (!('splits' in value) || value['splits'] === undefined) + return false; + return true; +} +export function V1OrderCreateRequestFromJSON(json) { + return V1OrderCreateRequestFromJSONTyped(json, false); +} +export function V1OrderCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'buyer': OrderCreateRequestBuyerFromJSON(json['buyer']), + 'delivery': OrderCreateRequestDeliveryFromJSON(json['delivery']), + 'delivery_schema': OrderCreateRequestV2DeliverySchemaEnumFromJSON(json['delivery_schema']), + 'recipient': OrderCreateRequestRecipientFromJSON(json['recipient']), + 'splits': (json['splits'].map(OrderCreateRequestSplitFromJSON)), + }; +} +export function V1OrderCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'buyer': OrderCreateRequestBuyerToJSON(value['buyer']), + 'delivery': OrderCreateRequestDeliveryToJSON(value['delivery']), + 'delivery_schema': OrderCreateRequestV2DeliverySchemaEnumToJSON(value['delivery_schema']), + 'recipient': OrderCreateRequestRecipientToJSON(value['recipient']), + 'splits': (value['splits'].map(OrderCreateRequestSplitToJSON)), + }; +} diff --git a/dist/esm/models/V1OrderCreateResponse.d.ts b/dist/esm/models/V1OrderCreateResponse.d.ts new file mode 100644 index 0000000..32d2342 --- /dev/null +++ b/dist/esm/models/V1OrderCreateResponse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCreateResponse + */ +export interface V1OrderCreateResponse { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCreateResponse + */ + order_number?: string; + /** + * Отправления. + * @type {Array} + * @memberof V1OrderCreateResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1OrderCreateResponse interface. + */ +export declare function instanceOfV1OrderCreateResponse(value: object): value is V1OrderCreateResponse; +export declare function V1OrderCreateResponseFromJSON(json: any): V1OrderCreateResponse; +export declare function V1OrderCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCreateResponse; +export declare function V1OrderCreateResponseToJSON(value?: V1OrderCreateResponse | null): any; diff --git a/dist/esm/models/V1OrderCreateResponse.js b/dist/esm/models/V1OrderCreateResponse.js new file mode 100644 index 0000000..d2159a2 --- /dev/null +++ b/dist/esm/models/V1OrderCreateResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1OrderCreateResponse interface. + */ +export function instanceOfV1OrderCreateResponse(value) { + return true; +} +export function V1OrderCreateResponseFromJSON(json) { + return V1OrderCreateResponseFromJSONTyped(json, false); +} +export function V1OrderCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'postings': json['postings'] == null ? undefined : json['postings'], + }; +} +export function V1OrderCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'postings': value['postings'], + }; +} diff --git a/dist/esm/models/V1OrderDraftValidationError.d.ts b/dist/esm/models/V1OrderDraftValidationError.d.ts new file mode 100644 index 0000000..ede6c19 --- /dev/null +++ b/dist/esm/models/V1OrderDraftValidationError.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderDraftValidationErrorErrorType } from './V1OrderDraftValidationErrorErrorType'; +/** + * Информация об ошибке. + * @export + * @interface V1OrderDraftValidationError + */ +export interface V1OrderDraftValidationError { + /** + * Тип ошибки: + * - `ERROR_TYPE_UNSPECIFIED` — не определён; + * - `ORDER_DRAFT_LOCKED` — черновик заблокирован; + * - `DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED` — превышена длина имени водителя; + * - `DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED` — превышена длина типа автомобиля; + * - `DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED` — превышена длина номера автомобиля; + * - `DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED` — превышена длина имени стороннего перевозчика; + * - `DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED` — превышена длина номера отслеживания; + * - `DELIVERY_DRIVER_NAME_EMPTY` — ФИО водителя не указано; + * - `DELIVERY_VEHICLE_GENRE_EMPTY` — тип автомобиля не указан; + * - `DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY` — номер автомобиля не указан; + * - `DELIVERY_TPL_NAME_EMPTY` — название стороннего перевозчика не указано; + * - `DELIVERY_TRACKING_NUMBER_EMPTY` — трек-номер не указан; + * - `INVALID_BUSINESS_FLOW` — неверный бизнес-поток; + * - `SUPPLY_TYPE_NOT_SUPPORTED` — тип поставки не поддерживается; + * - `INVALID_STATE` — неверное состояние. + * + * @type {Array} + * @memberof V1OrderDraftValidationError + */ + errors?: Array; +} +/** + * Check if a given object implements the V1OrderDraftValidationError interface. + */ +export declare function instanceOfV1OrderDraftValidationError(value: object): value is V1OrderDraftValidationError; +export declare function V1OrderDraftValidationErrorFromJSON(json: any): V1OrderDraftValidationError; +export declare function V1OrderDraftValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderDraftValidationError; +export declare function V1OrderDraftValidationErrorToJSON(value?: V1OrderDraftValidationError | null): any; diff --git a/dist/esm/models/V1OrderDraftValidationError.js b/dist/esm/models/V1OrderDraftValidationError.js new file mode 100644 index 0000000..4bcdfdc --- /dev/null +++ b/dist/esm/models/V1OrderDraftValidationError.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderDraftValidationErrorErrorTypeFromJSON, V1OrderDraftValidationErrorErrorTypeToJSON, } from './V1OrderDraftValidationErrorErrorType'; +/** + * Check if a given object implements the V1OrderDraftValidationError interface. + */ +export function instanceOfV1OrderDraftValidationError(value) { + return true; +} +export function V1OrderDraftValidationErrorFromJSON(json) { + return V1OrderDraftValidationErrorFromJSONTyped(json, false); +} +export function V1OrderDraftValidationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1OrderDraftValidationErrorErrorTypeFromJSON)), + }; +} +export function V1OrderDraftValidationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1OrderDraftValidationErrorErrorTypeToJSON)), + }; +} diff --git a/dist/esm/models/V1OrderDraftValidationErrorErrorType.d.ts b/dist/esm/models/V1OrderDraftValidationErrorErrorType.d.ts new file mode 100644 index 0000000..f97a593 --- /dev/null +++ b/dist/esm/models/V1OrderDraftValidationErrorErrorType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1OrderDraftValidationErrorErrorType: { + readonly ERROR_TYPE_UNSPECIFIED: "ERROR_TYPE_UNSPECIFIED"; + readonly ORDER_DRAFT_LOCKED: "ORDER_DRAFT_LOCKED"; + readonly DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED: "DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED: "DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED: "DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED: "DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED: "DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_DRIVER_NAME_EMPTY: "DELIVERY_DRIVER_NAME_EMPTY"; + readonly DELIVERY_VEHICLE_GENRE_EMPTY: "DELIVERY_VEHICLE_GENRE_EMPTY"; + readonly DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY: "DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY"; + readonly DELIVERY_TPL_NAME_EMPTY: "DELIVERY_TPL_NAME_EMPTY"; + readonly DELIVERY_TRACKING_NUMBER_EMPTY: "DELIVERY_TRACKING_NUMBER_EMPTY"; + readonly INVALID_BUSINESS_FLOW: "INVALID_BUSINESS_FLOW"; + readonly SUPPLY_TYPE_NOT_SUPPORTED: "SUPPLY_TYPE_NOT_SUPPORTED"; + readonly INVALID_STATE: "INVALID_STATE"; +}; +export type V1OrderDraftValidationErrorErrorType = typeof V1OrderDraftValidationErrorErrorType[keyof typeof V1OrderDraftValidationErrorErrorType]; +export declare function instanceOfV1OrderDraftValidationErrorErrorType(value: any): boolean; +export declare function V1OrderDraftValidationErrorErrorTypeFromJSON(json: any): V1OrderDraftValidationErrorErrorType; +export declare function V1OrderDraftValidationErrorErrorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderDraftValidationErrorErrorType; +export declare function V1OrderDraftValidationErrorErrorTypeToJSON(value?: V1OrderDraftValidationErrorErrorType | null): any; diff --git a/dist/esm/models/V1OrderDraftValidationErrorErrorType.js b/dist/esm/models/V1OrderDraftValidationErrorErrorType.js new file mode 100644 index 0000000..10fe54f --- /dev/null +++ b/dist/esm/models/V1OrderDraftValidationErrorErrorType.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1OrderDraftValidationErrorErrorType = { + ERROR_TYPE_UNSPECIFIED: 'ERROR_TYPE_UNSPECIFIED', + ORDER_DRAFT_LOCKED: 'ORDER_DRAFT_LOCKED', + DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED: 'DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED', + DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED: 'DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED', + DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED: 'DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED', + DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED: 'DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED', + DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED: 'DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED', + DELIVERY_DRIVER_NAME_EMPTY: 'DELIVERY_DRIVER_NAME_EMPTY', + DELIVERY_VEHICLE_GENRE_EMPTY: 'DELIVERY_VEHICLE_GENRE_EMPTY', + DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY: 'DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY', + DELIVERY_TPL_NAME_EMPTY: 'DELIVERY_TPL_NAME_EMPTY', + DELIVERY_TRACKING_NUMBER_EMPTY: 'DELIVERY_TRACKING_NUMBER_EMPTY', + INVALID_BUSINESS_FLOW: 'INVALID_BUSINESS_FLOW', + SUPPLY_TYPE_NOT_SUPPORTED: 'SUPPLY_TYPE_NOT_SUPPORTED', + INVALID_STATE: 'INVALID_STATE' +}; +export function instanceOfV1OrderDraftValidationErrorErrorType(value) { + for (const key in V1OrderDraftValidationErrorErrorType) { + if (Object.prototype.hasOwnProperty.call(V1OrderDraftValidationErrorErrorType, key)) { + if (V1OrderDraftValidationErrorErrorType[key] === value) { + return true; + } + } + } + return false; +} +export function V1OrderDraftValidationErrorErrorTypeFromJSON(json) { + return V1OrderDraftValidationErrorErrorTypeFromJSONTyped(json, false); +} +export function V1OrderDraftValidationErrorErrorTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1OrderDraftValidationErrorErrorTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1OrderErrorTypeEnum.d.ts b/dist/esm/models/V1OrderErrorTypeEnum.d.ts new file mode 100644 index 0000000..9b94411 --- /dev/null +++ b/dist/esm/models/V1OrderErrorTypeEnum.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ошибка регистрации поставки: + * - `ORDER_ERROR_TYPE_UNSPECIFIED` — не определена; + * - `INVALID_NUMBER_OF_PACKAGE_UNITS` — указано неверное количество грузомест в заявке; + * - `MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED` — превышено максимальное количество уникальных SKU в заявке; + * - `MAXIMUM_BUNDLE_VOLUME_REACHED` — достигнут максимальный объём поставки; + * - `BUNDLE_ID_EMPTY` — состав поставки пуст; + * - `INVALID_SUPPLY_TYPE` — тип поставки не указан или указан неверный; + * - `INVALID_TIMESLOT` — таймслот не указан или указан неверный; + * - `INVALID_WHC_NUMBER` — неверный идентификатор поставки WHC; + * - `DRAFT_LOCKED` — заявка ожидает переноса в ордер; + * - `DROP_OFF_POINTS_IS_EMPTY` — для поставки drop-off не указано место отгрузки; + * - `WAREHOUSE_IS_EMPTY` — не указаны данные склада; + * - `BUSINESS_FLOW_TYPE_IS_EMPTY` — не определён тип бизнес-процесса; + * - `WAS_CANCELLED` — поставка уже отменена; + * - `PICK_UP_DETAILS_IS_EMPTY` — для поставки pick-up не указаны данные по отгрузке курьеру со склада продавца; + * - `INVALID_PICK_UP_DETAILS` — для поставки pick-up указаны неверные данные по отгрузке курьеру со склада продавца; + * - `INVALID_PICK_UP_DATE` — для поставки pick-up указана неверная дата отгрузки курьеру со склада продавца; + * - `INTERNAL_ERROR` — ошибка при проверке параметров. + * + * @export + */ +export declare const V1OrderErrorTypeEnum: { + readonly ORDER_ERROR_TYPE_UNSPECIFIED: "ORDER_ERROR_TYPE_UNSPECIFIED"; + readonly INVALID_NUMBER_OF_PACKAGE_UNITS: "INVALID_NUMBER_OF_PACKAGE_UNITS"; + readonly MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED: "MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED"; + readonly MAXIMUM_BUNDLE_VOLUME_REACHED: "MAXIMUM_BUNDLE_VOLUME_REACHED"; + readonly BUNDLE_ID_EMPTY: "BUNDLE_ID_EMPTY"; + readonly INVALID_SUPPLY_TYPE: "INVALID_SUPPLY_TYPE"; + readonly INVALID_TIMESLOT: "INVALID_TIMESLOT"; + readonly INVALID_WHC_NUMBER: "INVALID_WHC_NUMBER"; + readonly DRAFT_LOCKED: "DRAFT_LOCKED"; + readonly DROP_OFF_POINTS_IS_EMPTY: "DROP_OFF_POINTS_IS_EMPTY"; + readonly WAREHOUSE_IS_EMPTY: "WAREHOUSE_IS_EMPTY"; + readonly BUSINESS_FLOW_TYPE_IS_EMPTY: "BUSINESS_FLOW_TYPE_IS_EMPTY"; + readonly WAS_CANCELLED: "WAS_CANCELLED"; + readonly PICK_UP_DETAILS_IS_EMPTY: "PICK_UP_DETAILS_IS_EMPTY"; + readonly INVALID_PICK_UP_DETAILS: "INVALID_PICK_UP_DETAILS"; + readonly INVALID_PICK_UP_DATE: "INVALID_PICK_UP_DATE"; + readonly INTERNAL_ERROR: "INTERNAL_ERROR"; +}; +export type V1OrderErrorTypeEnum = typeof V1OrderErrorTypeEnum[keyof typeof V1OrderErrorTypeEnum]; +export declare function instanceOfV1OrderErrorTypeEnum(value: any): boolean; +export declare function V1OrderErrorTypeEnumFromJSON(json: any): V1OrderErrorTypeEnum; +export declare function V1OrderErrorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderErrorTypeEnum; +export declare function V1OrderErrorTypeEnumToJSON(value?: V1OrderErrorTypeEnum | null): any; diff --git a/dist/esm/models/V1OrderErrorTypeEnum.js b/dist/esm/models/V1OrderErrorTypeEnum.js new file mode 100644 index 0000000..23fbbc9 --- /dev/null +++ b/dist/esm/models/V1OrderErrorTypeEnum.js @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ошибка регистрации поставки: + * - `ORDER_ERROR_TYPE_UNSPECIFIED` — не определена; + * - `INVALID_NUMBER_OF_PACKAGE_UNITS` — указано неверное количество грузомест в заявке; + * - `MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED` — превышено максимальное количество уникальных SKU в заявке; + * - `MAXIMUM_BUNDLE_VOLUME_REACHED` — достигнут максимальный объём поставки; + * - `BUNDLE_ID_EMPTY` — состав поставки пуст; + * - `INVALID_SUPPLY_TYPE` — тип поставки не указан или указан неверный; + * - `INVALID_TIMESLOT` — таймслот не указан или указан неверный; + * - `INVALID_WHC_NUMBER` — неверный идентификатор поставки WHC; + * - `DRAFT_LOCKED` — заявка ожидает переноса в ордер; + * - `DROP_OFF_POINTS_IS_EMPTY` — для поставки drop-off не указано место отгрузки; + * - `WAREHOUSE_IS_EMPTY` — не указаны данные склада; + * - `BUSINESS_FLOW_TYPE_IS_EMPTY` — не определён тип бизнес-процесса; + * - `WAS_CANCELLED` — поставка уже отменена; + * - `PICK_UP_DETAILS_IS_EMPTY` — для поставки pick-up не указаны данные по отгрузке курьеру со склада продавца; + * - `INVALID_PICK_UP_DETAILS` — для поставки pick-up указаны неверные данные по отгрузке курьеру со склада продавца; + * - `INVALID_PICK_UP_DATE` — для поставки pick-up указана неверная дата отгрузки курьеру со склада продавца; + * - `INTERNAL_ERROR` — ошибка при проверке параметров. + * + * @export + */ +export const V1OrderErrorTypeEnum = { + ORDER_ERROR_TYPE_UNSPECIFIED: 'ORDER_ERROR_TYPE_UNSPECIFIED', + INVALID_NUMBER_OF_PACKAGE_UNITS: 'INVALID_NUMBER_OF_PACKAGE_UNITS', + MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED: 'MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED', + MAXIMUM_BUNDLE_VOLUME_REACHED: 'MAXIMUM_BUNDLE_VOLUME_REACHED', + BUNDLE_ID_EMPTY: 'BUNDLE_ID_EMPTY', + INVALID_SUPPLY_TYPE: 'INVALID_SUPPLY_TYPE', + INVALID_TIMESLOT: 'INVALID_TIMESLOT', + INVALID_WHC_NUMBER: 'INVALID_WHC_NUMBER', + DRAFT_LOCKED: 'DRAFT_LOCKED', + DROP_OFF_POINTS_IS_EMPTY: 'DROP_OFF_POINTS_IS_EMPTY', + WAREHOUSE_IS_EMPTY: 'WAREHOUSE_IS_EMPTY', + BUSINESS_FLOW_TYPE_IS_EMPTY: 'BUSINESS_FLOW_TYPE_IS_EMPTY', + WAS_CANCELLED: 'WAS_CANCELLED', + PICK_UP_DETAILS_IS_EMPTY: 'PICK_UP_DETAILS_IS_EMPTY', + INVALID_PICK_UP_DETAILS: 'INVALID_PICK_UP_DETAILS', + INVALID_PICK_UP_DATE: 'INVALID_PICK_UP_DATE', + INTERNAL_ERROR: 'INTERNAL_ERROR' +}; +export function instanceOfV1OrderErrorTypeEnum(value) { + for (const key in V1OrderErrorTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1OrderErrorTypeEnum, key)) { + if (V1OrderErrorTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1OrderErrorTypeEnumFromJSON(json) { + return V1OrderErrorTypeEnumFromJSONTyped(json, false); +} +export function V1OrderErrorTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1OrderErrorTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1OrderState.d.ts b/dist/esm/models/V1OrderState.d.ts new file mode 100644 index 0000000..3c1bfda --- /dev/null +++ b/dist/esm/models/V1OrderState.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — статус не указан; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена. + * + * @export + */ +export declare const V1OrderState: { + readonly UNSPECIFIED: "ORDER_STATE_UNSPECIFIED"; + readonly DATA_FILLING: "ORDER_STATE_DATA_FILLING"; + readonly READY_TO_SUPPLY: "ORDER_STATE_READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ORDER_STATE_ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "ORDER_STATE_IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ORDER_STATE_ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "ORDER_STATE_REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "ORDER_STATE_REPORT_REJECTED"; + readonly COMPLETED: "ORDER_STATE_COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "ORDER_STATE_REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "ORDER_STATE_CANCELLED"; +}; +export type V1OrderState = typeof V1OrderState[keyof typeof V1OrderState]; +export declare function instanceOfV1OrderState(value: any): boolean; +export declare function V1OrderStateFromJSON(json: any): V1OrderState; +export declare function V1OrderStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderState; +export declare function V1OrderStateToJSON(value?: V1OrderState | null): any; diff --git a/dist/esm/models/V1OrderState.js b/dist/esm/models/V1OrderState.js new file mode 100644 index 0000000..164bd85 --- /dev/null +++ b/dist/esm/models/V1OrderState.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — статус не указан; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена. + * + * @export + */ +export const V1OrderState = { + UNSPECIFIED: 'ORDER_STATE_UNSPECIFIED', + DATA_FILLING: 'ORDER_STATE_DATA_FILLING', + READY_TO_SUPPLY: 'ORDER_STATE_READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ORDER_STATE_ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'ORDER_STATE_IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ORDER_STATE_ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'ORDER_STATE_REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'ORDER_STATE_REPORT_REJECTED', + COMPLETED: 'ORDER_STATE_COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'ORDER_STATE_REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'ORDER_STATE_CANCELLED' +}; +export function instanceOfV1OrderState(value) { + for (const key in V1OrderState) { + if (Object.prototype.hasOwnProperty.call(V1OrderState, key)) { + if (V1OrderState[key] === value) { + return true; + } + } + } + return false; +} +export function V1OrderStateFromJSON(json) { + return V1OrderStateFromJSONTyped(json, false); +} +export function V1OrderStateFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1OrderStateToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1OrderStatusEnum.d.ts b/dist/esm/models/V1OrderStatusEnum.d.ts new file mode 100644 index 0000000..ba89c37 --- /dev/null +++ b/dist/esm/models/V1OrderStatusEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа: + * - `ORDER_STATUS_UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готов к отгрузке; + * - `FILLING_DELIVERY_DETAILS` — заполнение данных поставки; + * - `COURIER_ASSIGNED` — курьер назначен; + * - `COURIER_PICKED_UP` — курьер забрал поставку; + * - `ACCEPTANCE_AT_DROP_OFF_POINT` — принято на drop-off пункте; + * - `IN_TRANSIT_TO_STORAGE_WAREHOUSE` — в пути на склад размещения; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `CANCELLED` — заявка отменена. + * + * @export + */ +export declare const V1OrderStatusEnum: { + readonly ORDER_STATUS_UNSPECIFIED: "ORDER_STATUS_UNSPECIFIED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly FILLING_DELIVERY_DETAILS: "FILLING_DELIVERY_DETAILS"; + readonly COURIER_ASSIGNED: "COURIER_ASSIGNED"; + readonly COURIER_PICKED_UP: "COURIER_PICKED_UP"; + readonly ACCEPTANCE_AT_DROP_OFF_POINT: "ACCEPTANCE_AT_DROP_OFF_POINT"; + readonly IN_TRANSIT_TO_STORAGE_WAREHOUSE: "IN_TRANSIT_TO_STORAGE_WAREHOUSE"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; +}; +export type V1OrderStatusEnum = typeof V1OrderStatusEnum[keyof typeof V1OrderStatusEnum]; +export declare function instanceOfV1OrderStatusEnum(value: any): boolean; +export declare function V1OrderStatusEnumFromJSON(json: any): V1OrderStatusEnum; +export declare function V1OrderStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderStatusEnum; +export declare function V1OrderStatusEnumToJSON(value?: V1OrderStatusEnum | null): any; diff --git a/dist/esm/models/V1OrderStatusEnum.js b/dist/esm/models/V1OrderStatusEnum.js new file mode 100644 index 0000000..7a977bc --- /dev/null +++ b/dist/esm/models/V1OrderStatusEnum.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа: + * - `ORDER_STATUS_UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готов к отгрузке; + * - `FILLING_DELIVERY_DETAILS` — заполнение данных поставки; + * - `COURIER_ASSIGNED` — курьер назначен; + * - `COURIER_PICKED_UP` — курьер забрал поставку; + * - `ACCEPTANCE_AT_DROP_OFF_POINT` — принято на drop-off пункте; + * - `IN_TRANSIT_TO_STORAGE_WAREHOUSE` — в пути на склад размещения; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `CANCELLED` — заявка отменена. + * + * @export + */ +export const V1OrderStatusEnum = { + ORDER_STATUS_UNSPECIFIED: 'ORDER_STATUS_UNSPECIFIED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + FILLING_DELIVERY_DETAILS: 'FILLING_DELIVERY_DETAILS', + COURIER_ASSIGNED: 'COURIER_ASSIGNED', + COURIER_PICKED_UP: 'COURIER_PICKED_UP', + ACCEPTANCE_AT_DROP_OFF_POINT: 'ACCEPTANCE_AT_DROP_OFF_POINT', + IN_TRANSIT_TO_STORAGE_WAREHOUSE: 'IN_TRANSIT_TO_STORAGE_WAREHOUSE', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + CANCELLED: 'CANCELLED' +}; +export function instanceOfV1OrderStatusEnum(value) { + for (const key in V1OrderStatusEnum) { + if (Object.prototype.hasOwnProperty.call(V1OrderStatusEnum, key)) { + if (V1OrderStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1OrderStatusEnumFromJSON(json) { + return V1OrderStatusEnumFromJSONTyped(json, false); +} +export function V1OrderStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1OrderStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1OrderValidationError.d.ts b/dist/esm/models/V1OrderValidationError.d.ts new file mode 100644 index 0000000..c255693 --- /dev/null +++ b/dist/esm/models/V1OrderValidationError.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationErrorErrorType } from './V1OrderValidationErrorErrorType'; +/** + * Информация об ошибке. + * @export + * @interface V1OrderValidationError + */ +export interface V1OrderValidationError { + /** + * Тип ошибки: + * - `ERROR_TYPE_UNSPECIFIED` — не определён; + * - `DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED` — превышена длина ФИО водителя; + * - `DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED` — превышена длина типа автомобиля; + * - `DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED` — превышена длина номера автомобиля; + * - `DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED` — превышена длина названия стороннего перевозчика; + * - `DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED` — превышена длина трек-номера отслеживания; + * - `DELIVERY_DRIVER_NAME_EMPTY` — ФИО водителя не указано; + * - `DELIVERY_VEHICLE_GENRE_EMPTY` — тип автомобиля не указан; + * - `DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY` — номер автомобиля не указан; + * - `DELIVERY_TPL_NAME_EMPTY` — название стороннего перевозчика не указано; + * - `DELIVERY_TRACKING_NUMBER_EMPTY` — трек-номер не указан; + * - `SUPPLY_TYPE_NOT_SUPPORTED` — тип поставки не поддерживается; + * - `INVALID_BUSINESS_FLOW` — неверный бизнес-поток; + * - `ORDER_LOCKED` — нельзя редактировать товарный состав; + * - `INVALID_TIMESLOT` — таймслот не указан или указан неверно; + * - `DROP_OFF_DETAILS_EMPTY` — детали drop-off пункта не указаны; + * - `PICK_UP_ADDRESS_IS_EMPTY` — детали адреса точки забора не указаны; + * - `PICK_UP_SENDER_NAME_IS_EMPTY` — ФИО отправителя не указано; + * - `PICK_UP_SENDER_PHONE_IS_EMPTY` — номер телефона отправителя не указан; + * - `PICK_UP_ADDRESS_IS_TOO_LARGE` — превышена длина адреса точки забора; + * - `PICK_UP_SENDER_NAME_IS_TOO_LARGE` — превышена длина ФИО отправителя; + * - `PICK_UP_SENDER_PHONE_IS_TOO_LARGE` — превышена длина номера телефона отправителя; + * - `PICK_UP_COMMENT_IS_TOO_LARGE` — превышена длина комментария к поставке; + * - `PICK_UP_DETAILS_EMPTY` — детали точки забора не указаны; + * - `DROP_OFF_ADDRESS_NOT_SET` — не указан адрес drop-off пункта; + * - `INVALID_STATE` — неверное состояние. + * + * @type {Array} + * @memberof V1OrderValidationError + */ + order_errors?: Array; +} +/** + * Check if a given object implements the V1OrderValidationError interface. + */ +export declare function instanceOfV1OrderValidationError(value: object): value is V1OrderValidationError; +export declare function V1OrderValidationErrorFromJSON(json: any): V1OrderValidationError; +export declare function V1OrderValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderValidationError; +export declare function V1OrderValidationErrorToJSON(value?: V1OrderValidationError | null): any; diff --git a/dist/esm/models/V1OrderValidationError.js b/dist/esm/models/V1OrderValidationError.js new file mode 100644 index 0000000..938d690 --- /dev/null +++ b/dist/esm/models/V1OrderValidationError.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderValidationErrorErrorTypeFromJSON, V1OrderValidationErrorErrorTypeToJSON, } from './V1OrderValidationErrorErrorType'; +/** + * Check if a given object implements the V1OrderValidationError interface. + */ +export function instanceOfV1OrderValidationError(value) { + return true; +} +export function V1OrderValidationErrorFromJSON(json) { + return V1OrderValidationErrorFromJSONTyped(json, false); +} +export function V1OrderValidationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_errors': json['order_errors'] == null ? undefined : (json['order_errors'].map(V1OrderValidationErrorErrorTypeFromJSON)), + }; +} +export function V1OrderValidationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_errors': value['order_errors'] == null ? undefined : (value['order_errors'].map(V1OrderValidationErrorErrorTypeToJSON)), + }; +} diff --git a/dist/esm/models/V1OrderValidationErrorErrorType.d.ts b/dist/esm/models/V1OrderValidationErrorErrorType.d.ts new file mode 100644 index 0000000..621b3f2 --- /dev/null +++ b/dist/esm/models/V1OrderValidationErrorErrorType.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1OrderValidationErrorErrorType: { + readonly ERROR_TYPE_UNSPECIFIED: "ERROR_TYPE_UNSPECIFIED"; + readonly DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED: "DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED: "DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED: "DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED: "DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED: "DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_DRIVER_NAME_EMPTY: "DELIVERY_DRIVER_NAME_EMPTY"; + readonly DELIVERY_VEHICLE_GENRE_EMPTY: "DELIVERY_VEHICLE_GENRE_EMPTY"; + readonly DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY: "DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY"; + readonly DELIVERY_TPL_NAME_EMPTY: "DELIVERY_TPL_NAME_EMPTY"; + readonly DELIVERY_TRACKING_NUMBER_EMPTY: "DELIVERY_TRACKING_NUMBER_EMPTY"; + readonly DELIVERY_BY_SELLER_EMPTY: "DELIVERY_BY_SELLER_EMPTY"; + readonly DELIVERY_BY_TPL_EMPTY: "DELIVERY_BY_TPL_EMPTY"; + readonly RECEIVE_DATE_NOT_SET: "RECEIVE_DATE_NOT_SET"; + readonly SUPPLY_TYPE_NOT_SUPPORTED: "SUPPLY_TYPE_NOT_SUPPORTED"; + readonly INVALID_BUSINESS_FLOW: "INVALID_BUSINESS_FLOW"; + readonly ORDER_LOCKED: "ORDER_LOCKED"; + readonly INVALID_TIMESLOT: "INVALID_TIMESLOT"; + readonly DROP_OFF_DETAILS_EMPTY: "DROP_OFF_DETAILS_EMPTY"; + readonly PICK_UP_ADDRESS_IS_EMPTY: "PICK_UP_ADDRESS_IS_EMPTY"; + readonly PICK_UP_SENDER_NAME_IS_EMPTY: "PICK_UP_SENDER_NAME_IS_EMPTY"; + readonly PICK_UP_SENDER_PHONE_IS_EMPTY: "PICK_UP_SENDER_PHONE_IS_EMPTY"; + readonly PICK_UP_ADDRESS_IS_TOO_LARGE: "PICK_UP_ADDRESS_IS_TOO_LARGE"; + readonly PICK_UP_SENDER_NAME_IS_TOO_LARGE: "PICK_UP_SENDER_NAME_IS_TOO_LARGE"; + readonly PICK_UP_SENDER_PHONE_IS_TOO_LARGE: "PICK_UP_SENDER_PHONE_IS_TOO_LARGE"; + readonly PICK_UP_COMMENT_IS_TOO_LARGE: "PICK_UP_COMMENT_IS_TOO_LARGE"; + readonly PICK_UP_DETAILS_EMPTY: "PICK_UP_DETAILS_EMPTY"; + readonly DROP_OFF_ADDRESS_NOT_SET: "DROP_OFF_ADDRESS_NOT_SET"; + readonly INVALID_STATE: "INVALID_STATE"; +}; +export type V1OrderValidationErrorErrorType = typeof V1OrderValidationErrorErrorType[keyof typeof V1OrderValidationErrorErrorType]; +export declare function instanceOfV1OrderValidationErrorErrorType(value: any): boolean; +export declare function V1OrderValidationErrorErrorTypeFromJSON(json: any): V1OrderValidationErrorErrorType; +export declare function V1OrderValidationErrorErrorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderValidationErrorErrorType; +export declare function V1OrderValidationErrorErrorTypeToJSON(value?: V1OrderValidationErrorErrorType | null): any; diff --git a/dist/esm/models/V1OrderValidationErrorErrorType.js b/dist/esm/models/V1OrderValidationErrorErrorType.js new file mode 100644 index 0000000..6ebffd5 --- /dev/null +++ b/dist/esm/models/V1OrderValidationErrorErrorType.js @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1OrderValidationErrorErrorType = { + ERROR_TYPE_UNSPECIFIED: 'ERROR_TYPE_UNSPECIFIED', + DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED: 'DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED', + DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED: 'DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED', + DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED: 'DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED', + DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED: 'DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED', + DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED: 'DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED', + DELIVERY_DRIVER_NAME_EMPTY: 'DELIVERY_DRIVER_NAME_EMPTY', + DELIVERY_VEHICLE_GENRE_EMPTY: 'DELIVERY_VEHICLE_GENRE_EMPTY', + DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY: 'DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY', + DELIVERY_TPL_NAME_EMPTY: 'DELIVERY_TPL_NAME_EMPTY', + DELIVERY_TRACKING_NUMBER_EMPTY: 'DELIVERY_TRACKING_NUMBER_EMPTY', + DELIVERY_BY_SELLER_EMPTY: 'DELIVERY_BY_SELLER_EMPTY', + DELIVERY_BY_TPL_EMPTY: 'DELIVERY_BY_TPL_EMPTY', + RECEIVE_DATE_NOT_SET: 'RECEIVE_DATE_NOT_SET', + SUPPLY_TYPE_NOT_SUPPORTED: 'SUPPLY_TYPE_NOT_SUPPORTED', + INVALID_BUSINESS_FLOW: 'INVALID_BUSINESS_FLOW', + ORDER_LOCKED: 'ORDER_LOCKED', + INVALID_TIMESLOT: 'INVALID_TIMESLOT', + DROP_OFF_DETAILS_EMPTY: 'DROP_OFF_DETAILS_EMPTY', + PICK_UP_ADDRESS_IS_EMPTY: 'PICK_UP_ADDRESS_IS_EMPTY', + PICK_UP_SENDER_NAME_IS_EMPTY: 'PICK_UP_SENDER_NAME_IS_EMPTY', + PICK_UP_SENDER_PHONE_IS_EMPTY: 'PICK_UP_SENDER_PHONE_IS_EMPTY', + PICK_UP_ADDRESS_IS_TOO_LARGE: 'PICK_UP_ADDRESS_IS_TOO_LARGE', + PICK_UP_SENDER_NAME_IS_TOO_LARGE: 'PICK_UP_SENDER_NAME_IS_TOO_LARGE', + PICK_UP_SENDER_PHONE_IS_TOO_LARGE: 'PICK_UP_SENDER_PHONE_IS_TOO_LARGE', + PICK_UP_COMMENT_IS_TOO_LARGE: 'PICK_UP_COMMENT_IS_TOO_LARGE', + PICK_UP_DETAILS_EMPTY: 'PICK_UP_DETAILS_EMPTY', + DROP_OFF_ADDRESS_NOT_SET: 'DROP_OFF_ADDRESS_NOT_SET', + INVALID_STATE: 'INVALID_STATE' +}; +export function instanceOfV1OrderValidationErrorErrorType(value) { + for (const key in V1OrderValidationErrorErrorType) { + if (Object.prototype.hasOwnProperty.call(V1OrderValidationErrorErrorType, key)) { + if (V1OrderValidationErrorErrorType[key] === value) { + return true; + } + } + } + return false; +} +export function V1OrderValidationErrorErrorTypeFromJSON(json) { + return V1OrderValidationErrorErrorTypeFromJSONTyped(json, false); +} +export function V1OrderValidationErrorErrorTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1OrderValidationErrorErrorTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1PolygonDeleteRequest.d.ts b/dist/esm/models/V1PolygonDeleteRequest.d.ts new file mode 100644 index 0000000..72d0678 --- /dev/null +++ b/dist/esm/models/V1PolygonDeleteRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PolygonDeleteRequest + */ +export interface V1PolygonDeleteRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1PolygonDeleteRequest + */ + delivery_method_id: number; + /** + * Идентификатор полигона. + * @type {number} + * @memberof V1PolygonDeleteRequest + */ + polygon_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1PolygonDeleteRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1PolygonDeleteRequest interface. + */ +export declare function instanceOfV1PolygonDeleteRequest(value: object): value is V1PolygonDeleteRequest; +export declare function V1PolygonDeleteRequestFromJSON(json: any): V1PolygonDeleteRequest; +export declare function V1PolygonDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonDeleteRequest; +export declare function V1PolygonDeleteRequestToJSON(value?: V1PolygonDeleteRequest | null): any; diff --git a/dist/esm/models/V1PolygonDeleteRequest.js b/dist/esm/models/V1PolygonDeleteRequest.js new file mode 100644 index 0000000..3befcf3 --- /dev/null +++ b/dist/esm/models/V1PolygonDeleteRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PolygonDeleteRequest interface. + */ +export function instanceOfV1PolygonDeleteRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1PolygonDeleteRequestFromJSON(json) { + return V1PolygonDeleteRequestFromJSONTyped(json, false); +} +export function V1PolygonDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'polygon_id': json['polygon_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1PolygonDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'polygon_id': value['polygon_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1PolygonListRequest.d.ts b/dist/esm/models/V1PolygonListRequest.d.ts new file mode 100644 index 0000000..06da3e4 --- /dev/null +++ b/dist/esm/models/V1PolygonListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PolygonListRequest + */ +export interface V1PolygonListRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1PolygonListRequest + */ + delivery_method_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1PolygonListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1PolygonListRequest interface. + */ +export declare function instanceOfV1PolygonListRequest(value: object): value is V1PolygonListRequest; +export declare function V1PolygonListRequestFromJSON(json: any): V1PolygonListRequest; +export declare function V1PolygonListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonListRequest; +export declare function V1PolygonListRequestToJSON(value?: V1PolygonListRequest | null): any; diff --git a/dist/esm/models/V1PolygonListRequest.js b/dist/esm/models/V1PolygonListRequest.js new file mode 100644 index 0000000..9258f42 --- /dev/null +++ b/dist/esm/models/V1PolygonListRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PolygonListRequest interface. + */ +export function instanceOfV1PolygonListRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1PolygonListRequestFromJSON(json) { + return V1PolygonListRequestFromJSONTyped(json, false); +} +export function V1PolygonListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1PolygonListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1PolygonListResponse.d.ts b/dist/esm/models/V1PolygonListResponse.d.ts new file mode 100644 index 0000000..c3d943f --- /dev/null +++ b/dist/esm/models/V1PolygonListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PolygonListResponsePolygon } from './PolygonListResponsePolygon'; +/** + * + * @export + * @interface V1PolygonListResponse + */ +export interface V1PolygonListResponse { + /** + * Список полигонов. + * @type {Array} + * @memberof V1PolygonListResponse + */ + polygons?: Array; +} +/** + * Check if a given object implements the V1PolygonListResponse interface. + */ +export declare function instanceOfV1PolygonListResponse(value: object): value is V1PolygonListResponse; +export declare function V1PolygonListResponseFromJSON(json: any): V1PolygonListResponse; +export declare function V1PolygonListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonListResponse; +export declare function V1PolygonListResponseToJSON(value?: V1PolygonListResponse | null): any; diff --git a/dist/esm/models/V1PolygonListResponse.js b/dist/esm/models/V1PolygonListResponse.js new file mode 100644 index 0000000..4b6b557 --- /dev/null +++ b/dist/esm/models/V1PolygonListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PolygonListResponsePolygonFromJSON, PolygonListResponsePolygonToJSON, } from './PolygonListResponsePolygon'; +/** + * Check if a given object implements the V1PolygonListResponse interface. + */ +export function instanceOfV1PolygonListResponse(value) { + return true; +} +export function V1PolygonListResponseFromJSON(json) { + return V1PolygonListResponseFromJSONTyped(json, false); +} +export function V1PolygonListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonListResponsePolygonFromJSON)), + }; +} +export function V1PolygonListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonListResponsePolygonToJSON)), + }; +} diff --git a/dist/esm/models/V1PolygonTimeCoordinatesUpdateRequest.d.ts b/dist/esm/models/V1PolygonTimeCoordinatesUpdateRequest.d.ts new file mode 100644 index 0000000..6ed1cff --- /dev/null +++ b/dist/esm/models/V1PolygonTimeCoordinatesUpdateRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PolygonTimeCoordinatesUpdateRequest + */ +export interface V1PolygonTimeCoordinatesUpdateRequest { + /** + * Новые координаты полигона доставки в формате `[[[lat,long],[lat,long]]]`. + * @type {string} + * @memberof V1PolygonTimeCoordinatesUpdateRequest + */ + coordinates: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1PolygonTimeCoordinatesUpdateRequest + */ + delivery_method_id: number; + /** + * Идентификатор полигона. + * @type {number} + * @memberof V1PolygonTimeCoordinatesUpdateRequest + */ + polygon_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1PolygonTimeCoordinatesUpdateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1PolygonTimeCoordinatesUpdateRequest interface. + */ +export declare function instanceOfV1PolygonTimeCoordinatesUpdateRequest(value: object): value is V1PolygonTimeCoordinatesUpdateRequest; +export declare function V1PolygonTimeCoordinatesUpdateRequestFromJSON(json: any): V1PolygonTimeCoordinatesUpdateRequest; +export declare function V1PolygonTimeCoordinatesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonTimeCoordinatesUpdateRequest; +export declare function V1PolygonTimeCoordinatesUpdateRequestToJSON(value?: V1PolygonTimeCoordinatesUpdateRequest | null): any; diff --git a/dist/esm/models/V1PolygonTimeCoordinatesUpdateRequest.js b/dist/esm/models/V1PolygonTimeCoordinatesUpdateRequest.js new file mode 100644 index 0000000..1a2feac --- /dev/null +++ b/dist/esm/models/V1PolygonTimeCoordinatesUpdateRequest.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PolygonTimeCoordinatesUpdateRequest interface. + */ +export function instanceOfV1PolygonTimeCoordinatesUpdateRequest(value) { + if (!('coordinates' in value) || value['coordinates'] === undefined) + return false; + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1PolygonTimeCoordinatesUpdateRequestFromJSON(json) { + return V1PolygonTimeCoordinatesUpdateRequestFromJSONTyped(json, false); +} +export function V1PolygonTimeCoordinatesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'], + 'delivery_method_id': json['delivery_method_id'], + 'polygon_id': json['polygon_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1PolygonTimeCoordinatesUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': value['coordinates'], + 'delivery_method_id': value['delivery_method_id'], + 'polygon_id': value['polygon_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1PolygonTimeSetRequest.d.ts b/dist/esm/models/V1PolygonTimeSetRequest.d.ts new file mode 100644 index 0000000..5dd5f3a --- /dev/null +++ b/dist/esm/models/V1PolygonTimeSetRequest.d.ts @@ -0,0 +1,81 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PolygonTimeSetRequest + */ +export interface V1PolygonTimeSetRequest { + /** + * Текущее время доставки в минутах. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + current_time: V1PolygonTimeSetRequestCurrentTimeEnum; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + delivery_method_id: number; + /** + * Новое время доставки в минутах. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + new_time: V1PolygonTimeSetRequestNewTimeEnum; + /** + * Идентификатор полигона. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + polygon_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + warehouse_id: number; +} +/** + * @export + */ +export declare const V1PolygonTimeSetRequestCurrentTimeEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_45: 45; + readonly NUMBER_60: 60; + readonly NUMBER_90: 90; + readonly NUMBER_120: 120; + readonly NUMBER_150: 150; +}; +export type V1PolygonTimeSetRequestCurrentTimeEnum = typeof V1PolygonTimeSetRequestCurrentTimeEnum[keyof typeof V1PolygonTimeSetRequestCurrentTimeEnum]; +/** + * @export + */ +export declare const V1PolygonTimeSetRequestNewTimeEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_45: 45; + readonly NUMBER_60: 60; + readonly NUMBER_90: 90; + readonly NUMBER_120: 120; + readonly NUMBER_150: 150; +}; +export type V1PolygonTimeSetRequestNewTimeEnum = typeof V1PolygonTimeSetRequestNewTimeEnum[keyof typeof V1PolygonTimeSetRequestNewTimeEnum]; +/** + * Check if a given object implements the V1PolygonTimeSetRequest interface. + */ +export declare function instanceOfV1PolygonTimeSetRequest(value: object): value is V1PolygonTimeSetRequest; +export declare function V1PolygonTimeSetRequestFromJSON(json: any): V1PolygonTimeSetRequest; +export declare function V1PolygonTimeSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonTimeSetRequest; +export declare function V1PolygonTimeSetRequestToJSON(value?: V1PolygonTimeSetRequest | null): any; diff --git a/dist/esm/models/V1PolygonTimeSetRequest.js b/dist/esm/models/V1PolygonTimeSetRequest.js new file mode 100644 index 0000000..89ec4e2 --- /dev/null +++ b/dist/esm/models/V1PolygonTimeSetRequest.js @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V1PolygonTimeSetRequestCurrentTimeEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_45: 45, + NUMBER_60: 60, + NUMBER_90: 90, + NUMBER_120: 120, + NUMBER_150: 150 +}; +/** + * @export + */ +export const V1PolygonTimeSetRequestNewTimeEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_45: 45, + NUMBER_60: 60, + NUMBER_90: 90, + NUMBER_120: 120, + NUMBER_150: 150 +}; +/** + * Check if a given object implements the V1PolygonTimeSetRequest interface. + */ +export function instanceOfV1PolygonTimeSetRequest(value) { + if (!('current_time' in value) || value['current_time'] === undefined) + return false; + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('new_time' in value) || value['new_time'] === undefined) + return false; + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1PolygonTimeSetRequestFromJSON(json) { + return V1PolygonTimeSetRequestFromJSONTyped(json, false); +} +export function V1PolygonTimeSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_time': json['current_time'], + 'delivery_method_id': json['delivery_method_id'], + 'new_time': json['new_time'], + 'polygon_id': json['polygon_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1PolygonTimeSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_time': value['current_time'], + 'delivery_method_id': value['delivery_method_id'], + 'new_time': value['new_time'], + 'polygon_id': value['polygon_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1PostingCancelRequest.d.ts b/dist/esm/models/V1PostingCancelRequest.d.ts new file mode 100644 index 0000000..f02573d --- /dev/null +++ b/dist/esm/models/V1PostingCancelRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingCancelRequest + */ +export interface V1PostingCancelRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingCancelRequest + */ + posting_number: string; + /** + * Идентификатор причины отмены. + * @type {number} + * @memberof V1PostingCancelRequest + */ + reason_id: number; + /** + * Дополнительная информация по отмене. + * @type {string} + * @memberof V1PostingCancelRequest + */ + reason_message?: string; +} +/** + * Check if a given object implements the V1PostingCancelRequest interface. + */ +export declare function instanceOfV1PostingCancelRequest(value: object): value is V1PostingCancelRequest; +export declare function V1PostingCancelRequestFromJSON(json: any): V1PostingCancelRequest; +export declare function V1PostingCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingCancelRequest; +export declare function V1PostingCancelRequestToJSON(value?: V1PostingCancelRequest | null): any; diff --git a/dist/esm/models/V1PostingCancelRequest.js b/dist/esm/models/V1PostingCancelRequest.js new file mode 100644 index 0000000..a8bdafb --- /dev/null +++ b/dist/esm/models/V1PostingCancelRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingCancelRequest interface. + */ +export function instanceOfV1PostingCancelRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('reason_id' in value) || value['reason_id'] === undefined) + return false; + return true; +} +export function V1PostingCancelRequestFromJSON(json) { + return V1PostingCancelRequestFromJSONTyped(json, false); +} +export function V1PostingCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'reason_id': json['reason_id'], + 'reason_message': json['reason_message'] == null ? undefined : json['reason_message'], + }; +} +export function V1PostingCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'reason_id': value['reason_id'], + 'reason_message': value['reason_message'], + }; +} diff --git a/dist/esm/models/V1PostingCancelResponse.d.ts b/dist/esm/models/V1PostingCancelResponse.d.ts new file mode 100644 index 0000000..7cd43f7 --- /dev/null +++ b/dist/esm/models/V1PostingCancelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingCancelResponse + */ +export interface V1PostingCancelResponse { + /** + * Текст сообщения. + * @type {string} + * @memberof V1PostingCancelResponse + */ + message?: string; +} +/** + * Check if a given object implements the V1PostingCancelResponse interface. + */ +export declare function instanceOfV1PostingCancelResponse(value: object): value is V1PostingCancelResponse; +export declare function V1PostingCancelResponseFromJSON(json: any): V1PostingCancelResponse; +export declare function V1PostingCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingCancelResponse; +export declare function V1PostingCancelResponseToJSON(value?: V1PostingCancelResponse | null): any; diff --git a/dist/esm/models/V1PostingCancelResponse.js b/dist/esm/models/V1PostingCancelResponse.js new file mode 100644 index 0000000..85aeb69 --- /dev/null +++ b/dist/esm/models/V1PostingCancelResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingCancelResponse interface. + */ +export function instanceOfV1PostingCancelResponse(value) { + return true; +} +export function V1PostingCancelResponseFromJSON(json) { + return V1PostingCancelResponseFromJSONTyped(json, false); +} +export function V1PostingCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function V1PostingCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + }; +} diff --git a/dist/esm/models/V1PostingCancelStatusRequest.d.ts b/dist/esm/models/V1PostingCancelStatusRequest.d.ts new file mode 100644 index 0000000..0d49741 --- /dev/null +++ b/dist/esm/models/V1PostingCancelStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingCancelStatusRequest + */ +export interface V1PostingCancelStatusRequest { + /** + * Идентификатор отправления. + * @type {string} + * @memberof V1PostingCancelStatusRequest + */ + posting_number?: string; +} +/** + * Check if a given object implements the V1PostingCancelStatusRequest interface. + */ +export declare function instanceOfV1PostingCancelStatusRequest(value: object): value is V1PostingCancelStatusRequest; +export declare function V1PostingCancelStatusRequestFromJSON(json: any): V1PostingCancelStatusRequest; +export declare function V1PostingCancelStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingCancelStatusRequest; +export declare function V1PostingCancelStatusRequestToJSON(value?: V1PostingCancelStatusRequest | null): any; diff --git a/dist/esm/models/V1PostingCancelStatusRequest.js b/dist/esm/models/V1PostingCancelStatusRequest.js new file mode 100644 index 0000000..7a3c5bf --- /dev/null +++ b/dist/esm/models/V1PostingCancelStatusRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingCancelStatusRequest interface. + */ +export function instanceOfV1PostingCancelStatusRequest(value) { + return true; +} +export function V1PostingCancelStatusRequestFromJSON(json) { + return V1PostingCancelStatusRequestFromJSONTyped(json, false); +} +export function V1PostingCancelStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +export function V1PostingCancelStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1PostingCancelStatusResponse.d.ts b/dist/esm/models/V1PostingCancelStatusResponse.d.ts new file mode 100644 index 0000000..879656f --- /dev/null +++ b/dist/esm/models/V1PostingCancelStatusResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingCancelStatusResponse + */ +export interface V1PostingCancelStatusResponse { + /** + * Номер заказа. + * @type {string} + * @memberof V1PostingCancelStatusResponse + */ + order_number?: string; + /** + * Идентификатор отправления. + * @type {Array} + * @memberof V1PostingCancelStatusResponse + */ + posting_number?: Array; + /** + * Статус отмены отправления: + * - `Подтверждена`, + * - `На подтверждении`, + * - `Отклонена`, + * - `Ожидает обработки`. + * + * @type {string} + * @memberof V1PostingCancelStatusResponse + */ + state?: string; +} +/** + * Check if a given object implements the V1PostingCancelStatusResponse interface. + */ +export declare function instanceOfV1PostingCancelStatusResponse(value: object): value is V1PostingCancelStatusResponse; +export declare function V1PostingCancelStatusResponseFromJSON(json: any): V1PostingCancelStatusResponse; +export declare function V1PostingCancelStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingCancelStatusResponse; +export declare function V1PostingCancelStatusResponseToJSON(value?: V1PostingCancelStatusResponse | null): any; diff --git a/dist/esm/models/V1PostingCancelStatusResponse.js b/dist/esm/models/V1PostingCancelStatusResponse.js new file mode 100644 index 0000000..0ea793d --- /dev/null +++ b/dist/esm/models/V1PostingCancelStatusResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingCancelStatusResponse interface. + */ +export function instanceOfV1PostingCancelStatusResponse(value) { + return true; +} +export function V1PostingCancelStatusResponseFromJSON(json) { + return V1PostingCancelStatusResponseFromJSONTyped(json, false); +} +export function V1PostingCancelStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'state': json['state'] == null ? undefined : json['state'], + }; +} +export function V1PostingCancelStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'state': value['state'], + }; +} diff --git a/dist/esm/models/V1PostingFBSPickupCodeVerifyRequest.d.ts b/dist/esm/models/V1PostingFBSPickupCodeVerifyRequest.d.ts new file mode 100644 index 0000000..e8d2cbe --- /dev/null +++ b/dist/esm/models/V1PostingFBSPickupCodeVerifyRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFBSPickupCodeVerifyRequest + */ +export interface V1PostingFBSPickupCodeVerifyRequest { + /** + * Код курьера. + * @type {string} + * @memberof V1PostingFBSPickupCodeVerifyRequest + */ + pickup_code: string; + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFBSPickupCodeVerifyRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFBSPickupCodeVerifyRequest interface. + */ +export declare function instanceOfV1PostingFBSPickupCodeVerifyRequest(value: object): value is V1PostingFBSPickupCodeVerifyRequest; +export declare function V1PostingFBSPickupCodeVerifyRequestFromJSON(json: any): V1PostingFBSPickupCodeVerifyRequest; +export declare function V1PostingFBSPickupCodeVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFBSPickupCodeVerifyRequest; +export declare function V1PostingFBSPickupCodeVerifyRequestToJSON(value?: V1PostingFBSPickupCodeVerifyRequest | null): any; diff --git a/dist/esm/models/V1PostingFBSPickupCodeVerifyRequest.js b/dist/esm/models/V1PostingFBSPickupCodeVerifyRequest.js new file mode 100644 index 0000000..bc0a809 --- /dev/null +++ b/dist/esm/models/V1PostingFBSPickupCodeVerifyRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFBSPickupCodeVerifyRequest interface. + */ +export function instanceOfV1PostingFBSPickupCodeVerifyRequest(value) { + if (!('pickup_code' in value) || value['pickup_code'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1PostingFBSPickupCodeVerifyRequestFromJSON(json) { + return V1PostingFBSPickupCodeVerifyRequestFromJSONTyped(json, false); +} +export function V1PostingFBSPickupCodeVerifyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'pickup_code': json['pickup_code'], + 'posting_number': json['posting_number'], + }; +} +export function V1PostingFBSPickupCodeVerifyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'pickup_code': value['pickup_code'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1PostingFBSPickupCodeVerifyResponse.d.ts b/dist/esm/models/V1PostingFBSPickupCodeVerifyResponse.d.ts new file mode 100644 index 0000000..3fdd811 --- /dev/null +++ b/dist/esm/models/V1PostingFBSPickupCodeVerifyResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFBSPickupCodeVerifyResponse + */ +export interface V1PostingFBSPickupCodeVerifyResponse { + /** + * `true`, если код корректный. + * + * @type {boolean} + * @memberof V1PostingFBSPickupCodeVerifyResponse + */ + valid?: boolean; +} +/** + * Check if a given object implements the V1PostingFBSPickupCodeVerifyResponse interface. + */ +export declare function instanceOfV1PostingFBSPickupCodeVerifyResponse(value: object): value is V1PostingFBSPickupCodeVerifyResponse; +export declare function V1PostingFBSPickupCodeVerifyResponseFromJSON(json: any): V1PostingFBSPickupCodeVerifyResponse; +export declare function V1PostingFBSPickupCodeVerifyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFBSPickupCodeVerifyResponse; +export declare function V1PostingFBSPickupCodeVerifyResponseToJSON(value?: V1PostingFBSPickupCodeVerifyResponse | null): any; diff --git a/dist/esm/models/V1PostingFBSPickupCodeVerifyResponse.js b/dist/esm/models/V1PostingFBSPickupCodeVerifyResponse.js new file mode 100644 index 0000000..0a0885d --- /dev/null +++ b/dist/esm/models/V1PostingFBSPickupCodeVerifyResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFBSPickupCodeVerifyResponse interface. + */ +export function instanceOfV1PostingFBSPickupCodeVerifyResponse(value) { + return true; +} +export function V1PostingFBSPickupCodeVerifyResponseFromJSON(json) { + return V1PostingFBSPickupCodeVerifyResponseFromJSONTyped(json, false); +} +export function V1PostingFBSPickupCodeVerifyResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'valid': json['valid'] == null ? undefined : json['valid'], + }; +} +export function V1PostingFBSPickupCodeVerifyResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'valid': value['valid'], + }; +} diff --git a/dist/esm/models/V1PostingFbsProductTraceableAttributeRequest.d.ts b/dist/esm/models/V1PostingFbsProductTraceableAttributeRequest.d.ts new file mode 100644 index 0000000..cbe3870 --- /dev/null +++ b/dist/esm/models/V1PostingFbsProductTraceableAttributeRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsProductTraceableAttributeRequest + */ +export interface V1PostingFbsProductTraceableAttributeRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsProductTraceableAttributeRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeRequest interface. + */ +export declare function instanceOfV1PostingFbsProductTraceableAttributeRequest(value: object): value is V1PostingFbsProductTraceableAttributeRequest; +export declare function V1PostingFbsProductTraceableAttributeRequestFromJSON(json: any): V1PostingFbsProductTraceableAttributeRequest; +export declare function V1PostingFbsProductTraceableAttributeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsProductTraceableAttributeRequest; +export declare function V1PostingFbsProductTraceableAttributeRequestToJSON(value?: V1PostingFbsProductTraceableAttributeRequest | null): any; diff --git a/dist/esm/models/V1PostingFbsProductTraceableAttributeRequest.js b/dist/esm/models/V1PostingFbsProductTraceableAttributeRequest.js new file mode 100644 index 0000000..e1cbb95 --- /dev/null +++ b/dist/esm/models/V1PostingFbsProductTraceableAttributeRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeRequest interface. + */ +export function instanceOfV1PostingFbsProductTraceableAttributeRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1PostingFbsProductTraceableAttributeRequestFromJSON(json) { + return V1PostingFbsProductTraceableAttributeRequestFromJSONTyped(json, false); +} +export function V1PostingFbsProductTraceableAttributeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1PostingFbsProductTraceableAttributeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1PostingFbsProductTraceableAttributeResponse.d.ts b/dist/esm/models/V1PostingFbsProductTraceableAttributeResponse.d.ts new file mode 100644 index 0000000..410ccfb --- /dev/null +++ b/dist/esm/models/V1PostingFbsProductTraceableAttributeResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsProductTraceableAttributeResponseProduct } from './V1PostingFbsProductTraceableAttributeResponseProduct'; +/** + * + * @export + * @interface V1PostingFbsProductTraceableAttributeResponse + */ +export interface V1PostingFbsProductTraceableAttributeResponse { + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V1PostingFbsProductTraceableAttributeResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeResponse interface. + */ +export declare function instanceOfV1PostingFbsProductTraceableAttributeResponse(value: object): value is V1PostingFbsProductTraceableAttributeResponse; +export declare function V1PostingFbsProductTraceableAttributeResponseFromJSON(json: any): V1PostingFbsProductTraceableAttributeResponse; +export declare function V1PostingFbsProductTraceableAttributeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsProductTraceableAttributeResponse; +export declare function V1PostingFbsProductTraceableAttributeResponseToJSON(value?: V1PostingFbsProductTraceableAttributeResponse | null): any; diff --git a/dist/esm/models/V1PostingFbsProductTraceableAttributeResponse.js b/dist/esm/models/V1PostingFbsProductTraceableAttributeResponse.js new file mode 100644 index 0000000..c91ec34 --- /dev/null +++ b/dist/esm/models/V1PostingFbsProductTraceableAttributeResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1PostingFbsProductTraceableAttributeResponseProductFromJSON, V1PostingFbsProductTraceableAttributeResponseProductToJSON, } from './V1PostingFbsProductTraceableAttributeResponseProduct'; +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeResponse interface. + */ +export function instanceOfV1PostingFbsProductTraceableAttributeResponse(value) { + return true; +} +export function V1PostingFbsProductTraceableAttributeResponseFromJSON(json) { + return V1PostingFbsProductTraceableAttributeResponseFromJSONTyped(json, false); +} +export function V1PostingFbsProductTraceableAttributeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(V1PostingFbsProductTraceableAttributeResponseProductFromJSON)), + }; +} +export function V1PostingFbsProductTraceableAttributeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(V1PostingFbsProductTraceableAttributeResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingFbsProductTraceableAttributeResponseProduct.d.ts b/dist/esm/models/V1PostingFbsProductTraceableAttributeResponseProduct.d.ts new file mode 100644 index 0000000..e005dbe --- /dev/null +++ b/dist/esm/models/V1PostingFbsProductTraceableAttributeResponseProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsProductTraceableAttributeResponseProduct + */ +export interface V1PostingFbsProductTraceableAttributeResponseProduct { + /** + * Обязательные атрибуты. + * @type {Array} + * @memberof V1PostingFbsProductTraceableAttributeResponseProduct + */ + required_attributes?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1PostingFbsProductTraceableAttributeResponseProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeResponseProduct interface. + */ +export declare function instanceOfV1PostingFbsProductTraceableAttributeResponseProduct(value: object): value is V1PostingFbsProductTraceableAttributeResponseProduct; +export declare function V1PostingFbsProductTraceableAttributeResponseProductFromJSON(json: any): V1PostingFbsProductTraceableAttributeResponseProduct; +export declare function V1PostingFbsProductTraceableAttributeResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsProductTraceableAttributeResponseProduct; +export declare function V1PostingFbsProductTraceableAttributeResponseProductToJSON(value?: V1PostingFbsProductTraceableAttributeResponseProduct | null): any; diff --git a/dist/esm/models/V1PostingFbsProductTraceableAttributeResponseProduct.js b/dist/esm/models/V1PostingFbsProductTraceableAttributeResponseProduct.js new file mode 100644 index 0000000..db6e3a6 --- /dev/null +++ b/dist/esm/models/V1PostingFbsProductTraceableAttributeResponseProduct.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeResponseProduct interface. + */ +export function instanceOfV1PostingFbsProductTraceableAttributeResponseProduct(value) { + return true; +} +export function V1PostingFbsProductTraceableAttributeResponseProductFromJSON(json) { + return V1PostingFbsProductTraceableAttributeResponseProductFromJSONTyped(json, false); +} +export function V1PostingFbsProductTraceableAttributeResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'required_attributes': json['required_attributes'] == null ? undefined : json['required_attributes'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1PostingFbsProductTraceableAttributeResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'required_attributes': value['required_attributes'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1PostingFbsSplitRequest.d.ts b/dist/esm/models/V1PostingFbsSplitRequest.d.ts new file mode 100644 index 0000000..89cd219 --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsSplitRequestPosting } from './V1PostingFbsSplitRequestPosting'; +/** + * + * @export + * @interface V1PostingFbsSplitRequest + */ +export interface V1PostingFbsSplitRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsSplitRequest + */ + posting_number: string; + /** + * Список отправлений, на которые поделится заказ. За один запрос можно разделить один заказ. + * @type {Array} + * @memberof V1PostingFbsSplitRequest + */ + postings: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitRequest interface. + */ +export declare function instanceOfV1PostingFbsSplitRequest(value: object): value is V1PostingFbsSplitRequest; +export declare function V1PostingFbsSplitRequestFromJSON(json: any): V1PostingFbsSplitRequest; +export declare function V1PostingFbsSplitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitRequest; +export declare function V1PostingFbsSplitRequestToJSON(value?: V1PostingFbsSplitRequest | null): any; diff --git a/dist/esm/models/V1PostingFbsSplitRequest.js b/dist/esm/models/V1PostingFbsSplitRequest.js new file mode 100644 index 0000000..81286f1 --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1PostingFbsSplitRequestPostingFromJSON, V1PostingFbsSplitRequestPostingToJSON, } from './V1PostingFbsSplitRequestPosting'; +/** + * Check if a given object implements the V1PostingFbsSplitRequest interface. + */ +export function instanceOfV1PostingFbsSplitRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('postings' in value) || value['postings'] === undefined) + return false; + return true; +} +export function V1PostingFbsSplitRequestFromJSON(json) { + return V1PostingFbsSplitRequestFromJSONTyped(json, false); +} +export function V1PostingFbsSplitRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'postings': (json['postings'].map(V1PostingFbsSplitRequestPostingFromJSON)), + }; +} +export function V1PostingFbsSplitRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'postings': (value['postings'].map(V1PostingFbsSplitRequestPostingToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingFbsSplitRequestPosting.d.ts b/dist/esm/models/V1PostingFbsSplitRequestPosting.d.ts new file mode 100644 index 0000000..7f8aff9 --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitRequestPosting.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductFbsSplit } from './V1ProductFbsSplit'; +/** + * + * @export + * @interface V1PostingFbsSplitRequestPosting + */ +export interface V1PostingFbsSplitRequestPosting { + /** + * Список товаров в заказе. + * @type {Array} + * @memberof V1PostingFbsSplitRequestPosting + */ + products: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitRequestPosting interface. + */ +export declare function instanceOfV1PostingFbsSplitRequestPosting(value: object): value is V1PostingFbsSplitRequestPosting; +export declare function V1PostingFbsSplitRequestPostingFromJSON(json: any): V1PostingFbsSplitRequestPosting; +export declare function V1PostingFbsSplitRequestPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitRequestPosting; +export declare function V1PostingFbsSplitRequestPostingToJSON(value?: V1PostingFbsSplitRequestPosting | null): any; diff --git a/dist/esm/models/V1PostingFbsSplitRequestPosting.js b/dist/esm/models/V1PostingFbsSplitRequestPosting.js new file mode 100644 index 0000000..cf7ca9c --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitRequestPosting.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductFbsSplitFromJSON, V1ProductFbsSplitToJSON, } from './V1ProductFbsSplit'; +/** + * Check if a given object implements the V1PostingFbsSplitRequestPosting interface. + */ +export function instanceOfV1PostingFbsSplitRequestPosting(value) { + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +export function V1PostingFbsSplitRequestPostingFromJSON(json) { + return V1PostingFbsSplitRequestPostingFromJSONTyped(json, false); +} +export function V1PostingFbsSplitRequestPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': (json['products'].map(V1ProductFbsSplitFromJSON)), + }; +} +export function V1PostingFbsSplitRequestPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': (value['products'].map(V1ProductFbsSplitToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingFbsSplitResponse.d.ts b/dist/esm/models/V1PostingFbsSplitResponse.d.ts new file mode 100644 index 0000000..5bf6884 --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsSplitResponsePostingParent } from './V1PostingFbsSplitResponsePostingParent'; +import type { V1PostingFbsSplitResponsePosting } from './V1PostingFbsSplitResponsePosting'; +/** + * + * @export + * @interface V1PostingFbsSplitResponse + */ +export interface V1PostingFbsSplitResponse { + /** + * + * @type {V1PostingFbsSplitResponsePostingParent} + * @memberof V1PostingFbsSplitResponse + */ + parent_posting?: V1PostingFbsSplitResponsePostingParent; + /** + * Список отправлений, на которые разделился заказ. + * @type {Array} + * @memberof V1PostingFbsSplitResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitResponse interface. + */ +export declare function instanceOfV1PostingFbsSplitResponse(value: object): value is V1PostingFbsSplitResponse; +export declare function V1PostingFbsSplitResponseFromJSON(json: any): V1PostingFbsSplitResponse; +export declare function V1PostingFbsSplitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitResponse; +export declare function V1PostingFbsSplitResponseToJSON(value?: V1PostingFbsSplitResponse | null): any; diff --git a/dist/esm/models/V1PostingFbsSplitResponse.js b/dist/esm/models/V1PostingFbsSplitResponse.js new file mode 100644 index 0000000..5ea1520 --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1PostingFbsSplitResponsePostingParentFromJSON, V1PostingFbsSplitResponsePostingParentToJSON, } from './V1PostingFbsSplitResponsePostingParent'; +import { V1PostingFbsSplitResponsePostingFromJSON, V1PostingFbsSplitResponsePostingToJSON, } from './V1PostingFbsSplitResponsePosting'; +/** + * Check if a given object implements the V1PostingFbsSplitResponse interface. + */ +export function instanceOfV1PostingFbsSplitResponse(value) { + return true; +} +export function V1PostingFbsSplitResponseFromJSON(json) { + return V1PostingFbsSplitResponseFromJSONTyped(json, false); +} +export function V1PostingFbsSplitResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'parent_posting': json['parent_posting'] == null ? undefined : V1PostingFbsSplitResponsePostingParentFromJSON(json['parent_posting']), + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V1PostingFbsSplitResponsePostingFromJSON)), + }; +} +export function V1PostingFbsSplitResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'parent_posting': V1PostingFbsSplitResponsePostingParentToJSON(value['parent_posting']), + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V1PostingFbsSplitResponsePostingToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingFbsSplitResponsePosting.d.ts b/dist/esm/models/V1PostingFbsSplitResponsePosting.d.ts new file mode 100644 index 0000000..a29cd1c --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitResponsePosting.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductFbsSplit } from './V1ProductFbsSplit'; +/** + * + * @export + * @interface V1PostingFbsSplitResponsePosting + */ +export interface V1PostingFbsSplitResponsePosting { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsSplitResponsePosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V1PostingFbsSplitResponsePosting + */ + products?: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitResponsePosting interface. + */ +export declare function instanceOfV1PostingFbsSplitResponsePosting(value: object): value is V1PostingFbsSplitResponsePosting; +export declare function V1PostingFbsSplitResponsePostingFromJSON(json: any): V1PostingFbsSplitResponsePosting; +export declare function V1PostingFbsSplitResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitResponsePosting; +export declare function V1PostingFbsSplitResponsePostingToJSON(value?: V1PostingFbsSplitResponsePosting | null): any; diff --git a/dist/esm/models/V1PostingFbsSplitResponsePosting.js b/dist/esm/models/V1PostingFbsSplitResponsePosting.js new file mode 100644 index 0000000..58d57be --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitResponsePosting.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductFbsSplitFromJSON, V1ProductFbsSplitToJSON, } from './V1ProductFbsSplit'; +/** + * Check if a given object implements the V1PostingFbsSplitResponsePosting interface. + */ +export function instanceOfV1PostingFbsSplitResponsePosting(value) { + return true; +} +export function V1PostingFbsSplitResponsePostingFromJSON(json) { + return V1PostingFbsSplitResponsePostingFromJSONTyped(json, false); +} +export function V1PostingFbsSplitResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1ProductFbsSplitFromJSON)), + }; +} +export function V1PostingFbsSplitResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1ProductFbsSplitToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingFbsSplitResponsePostingParent.d.ts b/dist/esm/models/V1PostingFbsSplitResponsePostingParent.d.ts new file mode 100644 index 0000000..9ce421d --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitResponsePostingParent.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductFbsSplit } from './V1ProductFbsSplit'; +/** + * Информация об изначальном отправлении. + * @export + * @interface V1PostingFbsSplitResponsePostingParent + */ +export interface V1PostingFbsSplitResponsePostingParent { + /** + * Номер изначального отправления. + * @type {string} + * @memberof V1PostingFbsSplitResponsePostingParent + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V1PostingFbsSplitResponsePostingParent + */ + products?: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitResponsePostingParent interface. + */ +export declare function instanceOfV1PostingFbsSplitResponsePostingParent(value: object): value is V1PostingFbsSplitResponsePostingParent; +export declare function V1PostingFbsSplitResponsePostingParentFromJSON(json: any): V1PostingFbsSplitResponsePostingParent; +export declare function V1PostingFbsSplitResponsePostingParentFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitResponsePostingParent; +export declare function V1PostingFbsSplitResponsePostingParentToJSON(value?: V1PostingFbsSplitResponsePostingParent | null): any; diff --git a/dist/esm/models/V1PostingFbsSplitResponsePostingParent.js b/dist/esm/models/V1PostingFbsSplitResponsePostingParent.js new file mode 100644 index 0000000..4293ada --- /dev/null +++ b/dist/esm/models/V1PostingFbsSplitResponsePostingParent.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductFbsSplitFromJSON, V1ProductFbsSplitToJSON, } from './V1ProductFbsSplit'; +/** + * Check if a given object implements the V1PostingFbsSplitResponsePostingParent interface. + */ +export function instanceOfV1PostingFbsSplitResponsePostingParent(value) { + return true; +} +export function V1PostingFbsSplitResponsePostingParentFromJSON(json) { + return V1PostingFbsSplitResponsePostingParentFromJSONTyped(json, false); +} +export function V1PostingFbsSplitResponsePostingParentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1ProductFbsSplitFromJSON)), + }; +} +export function V1PostingFbsSplitResponsePostingParentToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1ProductFbsSplitToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.d.ts b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.d.ts new file mode 100644 index 0000000..7e662e8 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период дат, доступных для переноса. + * @export + * @interface V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval + */ +export interface V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval { + /** + * Дата начала периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`. + * + * @type {string} + * @memberof V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval + */ + begin?: string; + /** + * Дата конца периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`. + * + * @type {string} + * @memberof V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval + */ + end?: string; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval interface. + */ +export declare function instanceOfV1PostingFbsTimeslotChangeRestrictionsDeliveryInterval(value: object): value is V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; +export declare function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON(json: any): V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; +export declare function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; +export declare function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON(value?: V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval | null): any; diff --git a/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.js b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.js new file mode 100644 index 0000000..1f77deb --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval interface. + */ +export function instanceOfV1PostingFbsTimeslotChangeRestrictionsDeliveryInterval(value) { + return true; +} +export function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON(json) { + return V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSONTyped(json, false); +} +export function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'begin': json['begin'] == null ? undefined : json['begin'], + 'end': json['end'] == null ? undefined : json['end'], + }; +} +export function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON(value) { + if (value == null) { + return value; + } + return { + 'begin': value['begin'], + 'end': value['end'], + }; +} diff --git a/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsRequest.d.ts b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsRequest.d.ts new file mode 100644 index 0000000..0e77f79 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsTimeslotChangeRestrictionsRequest + */ +export interface V1PostingFbsTimeslotChangeRestrictionsRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsTimeslotChangeRestrictionsRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsRequest interface. + */ +export declare function instanceOfV1PostingFbsTimeslotChangeRestrictionsRequest(value: object): value is V1PostingFbsTimeslotChangeRestrictionsRequest; +export declare function V1PostingFbsTimeslotChangeRestrictionsRequestFromJSON(json: any): V1PostingFbsTimeslotChangeRestrictionsRequest; +export declare function V1PostingFbsTimeslotChangeRestrictionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotChangeRestrictionsRequest; +export declare function V1PostingFbsTimeslotChangeRestrictionsRequestToJSON(value?: V1PostingFbsTimeslotChangeRestrictionsRequest | null): any; diff --git a/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsRequest.js b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsRequest.js new file mode 100644 index 0000000..a44fb9b --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsRequest interface. + */ +export function instanceOfV1PostingFbsTimeslotChangeRestrictionsRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1PostingFbsTimeslotChangeRestrictionsRequestFromJSON(json) { + return V1PostingFbsTimeslotChangeRestrictionsRequestFromJSONTyped(json, false); +} +export function V1PostingFbsTimeslotChangeRestrictionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1PostingFbsTimeslotChangeRestrictionsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsResponse.d.ts b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsResponse.d.ts new file mode 100644 index 0000000..7cf174f --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval } from './V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval'; +/** + * + * @export + * @interface V1PostingFbsTimeslotChangeRestrictionsResponse + */ +export interface V1PostingFbsTimeslotChangeRestrictionsResponse { + /** + * + * @type {V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval} + * @memberof V1PostingFbsTimeslotChangeRestrictionsResponse + */ + delivery_interval?: V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; + /** + * Количество оставшихся переносов. + * @type {number} + * @memberof V1PostingFbsTimeslotChangeRestrictionsResponse + */ + remaining_changes_count?: number; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsResponse interface. + */ +export declare function instanceOfV1PostingFbsTimeslotChangeRestrictionsResponse(value: object): value is V1PostingFbsTimeslotChangeRestrictionsResponse; +export declare function V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON(json: any): V1PostingFbsTimeslotChangeRestrictionsResponse; +export declare function V1PostingFbsTimeslotChangeRestrictionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotChangeRestrictionsResponse; +export declare function V1PostingFbsTimeslotChangeRestrictionsResponseToJSON(value?: V1PostingFbsTimeslotChangeRestrictionsResponse | null): any; diff --git a/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsResponse.js b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsResponse.js new file mode 100644 index 0000000..781c9ed --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotChangeRestrictionsResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON, V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON, } from './V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval'; +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsResponse interface. + */ +export function instanceOfV1PostingFbsTimeslotChangeRestrictionsResponse(value) { + return true; +} +export function V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON(json) { + return V1PostingFbsTimeslotChangeRestrictionsResponseFromJSONTyped(json, false); +} +export function V1PostingFbsTimeslotChangeRestrictionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_interval': json['delivery_interval'] == null ? undefined : V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON(json['delivery_interval']), + 'remaining_changes_count': json['remaining_changes_count'] == null ? undefined : json['remaining_changes_count'], + }; +} +export function V1PostingFbsTimeslotChangeRestrictionsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_interval': V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON(value['delivery_interval']), + 'remaining_changes_count': value['remaining_changes_count'], + }; +} diff --git a/dist/esm/models/V1PostingFbsTimeslotSetNewTimeslot.d.ts b/dist/esm/models/V1PostingFbsTimeslotSetNewTimeslot.d.ts new file mode 100644 index 0000000..b673e85 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotSetNewTimeslot.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Новый период для даты доставки. + * @export + * @interface V1PostingFbsTimeslotSetNewTimeslot + */ +export interface V1PostingFbsTimeslotSetNewTimeslot { + /** + * Дата начала периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`. + * + * @type {string} + * @memberof V1PostingFbsTimeslotSetNewTimeslot + */ + from: string; + /** + * Дата конца периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`. + * + * @type {string} + * @memberof V1PostingFbsTimeslotSetNewTimeslot + */ + to: string; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotSetNewTimeslot interface. + */ +export declare function instanceOfV1PostingFbsTimeslotSetNewTimeslot(value: object): value is V1PostingFbsTimeslotSetNewTimeslot; +export declare function V1PostingFbsTimeslotSetNewTimeslotFromJSON(json: any): V1PostingFbsTimeslotSetNewTimeslot; +export declare function V1PostingFbsTimeslotSetNewTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotSetNewTimeslot; +export declare function V1PostingFbsTimeslotSetNewTimeslotToJSON(value?: V1PostingFbsTimeslotSetNewTimeslot | null): any; diff --git a/dist/esm/models/V1PostingFbsTimeslotSetNewTimeslot.js b/dist/esm/models/V1PostingFbsTimeslotSetNewTimeslot.js new file mode 100644 index 0000000..12e2978 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotSetNewTimeslot.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFbsTimeslotSetNewTimeslot interface. + */ +export function instanceOfV1PostingFbsTimeslotSetNewTimeslot(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function V1PostingFbsTimeslotSetNewTimeslotFromJSON(json) { + return V1PostingFbsTimeslotSetNewTimeslotFromJSONTyped(json, false); +} +export function V1PostingFbsTimeslotSetNewTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +export function V1PostingFbsTimeslotSetNewTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1PostingFbsTimeslotSetRequest.d.ts b/dist/esm/models/V1PostingFbsTimeslotSetRequest.d.ts new file mode 100644 index 0000000..999991f --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotSetRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsTimeslotSetNewTimeslot } from './V1PostingFbsTimeslotSetNewTimeslot'; +/** + * + * @export + * @interface V1PostingFbsTimeslotSetRequest + */ +export interface V1PostingFbsTimeslotSetRequest { + /** + * + * @type {V1PostingFbsTimeslotSetNewTimeslot} + * @memberof V1PostingFbsTimeslotSetRequest + */ + new_timeslot: V1PostingFbsTimeslotSetNewTimeslot; + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsTimeslotSetRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotSetRequest interface. + */ +export declare function instanceOfV1PostingFbsTimeslotSetRequest(value: object): value is V1PostingFbsTimeslotSetRequest; +export declare function V1PostingFbsTimeslotSetRequestFromJSON(json: any): V1PostingFbsTimeslotSetRequest; +export declare function V1PostingFbsTimeslotSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotSetRequest; +export declare function V1PostingFbsTimeslotSetRequestToJSON(value?: V1PostingFbsTimeslotSetRequest | null): any; diff --git a/dist/esm/models/V1PostingFbsTimeslotSetRequest.js b/dist/esm/models/V1PostingFbsTimeslotSetRequest.js new file mode 100644 index 0000000..aef4a21 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotSetRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1PostingFbsTimeslotSetNewTimeslotFromJSON, V1PostingFbsTimeslotSetNewTimeslotToJSON, } from './V1PostingFbsTimeslotSetNewTimeslot'; +/** + * Check if a given object implements the V1PostingFbsTimeslotSetRequest interface. + */ +export function instanceOfV1PostingFbsTimeslotSetRequest(value) { + if (!('new_timeslot' in value) || value['new_timeslot'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1PostingFbsTimeslotSetRequestFromJSON(json) { + return V1PostingFbsTimeslotSetRequestFromJSONTyped(json, false); +} +export function V1PostingFbsTimeslotSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'new_timeslot': V1PostingFbsTimeslotSetNewTimeslotFromJSON(json['new_timeslot']), + 'posting_number': json['posting_number'], + }; +} +export function V1PostingFbsTimeslotSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'new_timeslot': V1PostingFbsTimeslotSetNewTimeslotToJSON(value['new_timeslot']), + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1PostingFbsTimeslotSetResponse.d.ts b/dist/esm/models/V1PostingFbsTimeslotSetResponse.d.ts new file mode 100644 index 0000000..65a6ff4 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotSetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsTimeslotSetResponse + */ +export interface V1PostingFbsTimeslotSetResponse { + /** + * `true`, если дата изменена. + * + * @type {boolean} + * @memberof V1PostingFbsTimeslotSetResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotSetResponse interface. + */ +export declare function instanceOfV1PostingFbsTimeslotSetResponse(value: object): value is V1PostingFbsTimeslotSetResponse; +export declare function V1PostingFbsTimeslotSetResponseFromJSON(json: any): V1PostingFbsTimeslotSetResponse; +export declare function V1PostingFbsTimeslotSetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotSetResponse; +export declare function V1PostingFbsTimeslotSetResponseToJSON(value?: V1PostingFbsTimeslotSetResponse | null): any; diff --git a/dist/esm/models/V1PostingFbsTimeslotSetResponse.js b/dist/esm/models/V1PostingFbsTimeslotSetResponse.js new file mode 100644 index 0000000..e6e6c35 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTimeslotSetResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFbsTimeslotSetResponse interface. + */ +export function instanceOfV1PostingFbsTimeslotSetResponse(value) { + return true; +} +export function V1PostingFbsTimeslotSetResponseFromJSON(json) { + return V1PostingFbsTimeslotSetResponseFromJSONTyped(json, false); +} +export function V1PostingFbsTimeslotSetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function V1PostingFbsTimeslotSetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/V1PostingFbsTraceableSplitRequest.d.ts b/dist/esm/models/V1PostingFbsTraceableSplitRequest.d.ts new file mode 100644 index 0000000..f30f3ac --- /dev/null +++ b/dist/esm/models/V1PostingFbsTraceableSplitRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsTraceableSplitRequest + */ +export interface V1PostingFbsTraceableSplitRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsTraceableSplitRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFbsTraceableSplitRequest interface. + */ +export declare function instanceOfV1PostingFbsTraceableSplitRequest(value: object): value is V1PostingFbsTraceableSplitRequest; +export declare function V1PostingFbsTraceableSplitRequestFromJSON(json: any): V1PostingFbsTraceableSplitRequest; +export declare function V1PostingFbsTraceableSplitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTraceableSplitRequest; +export declare function V1PostingFbsTraceableSplitRequestToJSON(value?: V1PostingFbsTraceableSplitRequest | null): any; diff --git a/dist/esm/models/V1PostingFbsTraceableSplitRequest.js b/dist/esm/models/V1PostingFbsTraceableSplitRequest.js new file mode 100644 index 0000000..154a09e --- /dev/null +++ b/dist/esm/models/V1PostingFbsTraceableSplitRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingFbsTraceableSplitRequest interface. + */ +export function instanceOfV1PostingFbsTraceableSplitRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1PostingFbsTraceableSplitRequestFromJSON(json) { + return V1PostingFbsTraceableSplitRequestFromJSONTyped(json, false); +} +export function V1PostingFbsTraceableSplitRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V1PostingFbsTraceableSplitRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1PostingFbsTraceableSplitResponse.d.ts b/dist/esm/models/V1PostingFbsTraceableSplitResponse.d.ts new file mode 100644 index 0000000..dfb37a8 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTraceableSplitResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsTraceableSplitResponsePosting } from './V1PostingFbsTraceableSplitResponsePosting'; +/** + * + * @export + * @interface V1PostingFbsTraceableSplitResponse + */ +export interface V1PostingFbsTraceableSplitResponse { + /** + * Информация об отправлениях. + * @type {Array} + * @memberof V1PostingFbsTraceableSplitResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1PostingFbsTraceableSplitResponse interface. + */ +export declare function instanceOfV1PostingFbsTraceableSplitResponse(value: object): value is V1PostingFbsTraceableSplitResponse; +export declare function V1PostingFbsTraceableSplitResponseFromJSON(json: any): V1PostingFbsTraceableSplitResponse; +export declare function V1PostingFbsTraceableSplitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTraceableSplitResponse; +export declare function V1PostingFbsTraceableSplitResponseToJSON(value?: V1PostingFbsTraceableSplitResponse | null): any; diff --git a/dist/esm/models/V1PostingFbsTraceableSplitResponse.js b/dist/esm/models/V1PostingFbsTraceableSplitResponse.js new file mode 100644 index 0000000..c2881fb --- /dev/null +++ b/dist/esm/models/V1PostingFbsTraceableSplitResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1PostingFbsTraceableSplitResponsePostingFromJSON, V1PostingFbsTraceableSplitResponsePostingToJSON, } from './V1PostingFbsTraceableSplitResponsePosting'; +/** + * Check if a given object implements the V1PostingFbsTraceableSplitResponse interface. + */ +export function instanceOfV1PostingFbsTraceableSplitResponse(value) { + return true; +} +export function V1PostingFbsTraceableSplitResponseFromJSON(json) { + return V1PostingFbsTraceableSplitResponseFromJSONTyped(json, false); +} +export function V1PostingFbsTraceableSplitResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V1PostingFbsTraceableSplitResponsePostingFromJSON)), + }; +} +export function V1PostingFbsTraceableSplitResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V1PostingFbsTraceableSplitResponsePostingToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingFbsTraceableSplitResponsePosting.d.ts b/dist/esm/models/V1PostingFbsTraceableSplitResponsePosting.d.ts new file mode 100644 index 0000000..ea542fe --- /dev/null +++ b/dist/esm/models/V1PostingFbsTraceableSplitResponsePosting.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFbsTraceableSplitResponsePostingProduct } from './PostingFbsTraceableSplitResponsePostingProduct'; +/** + * + * @export + * @interface V1PostingFbsTraceableSplitResponsePosting + */ +export interface V1PostingFbsTraceableSplitResponsePosting { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsTraceableSplitResponsePosting + */ + posting_number?: string; + /** + * Признак, что товар потенциально прослеживаемый: + * - `true` — отправление считается прослеживаемым на данный момент. При сборке статус может измениться. + * - `false` — отправление не прослеживаемое на данный момент или его статус неизвестный. + * + * @type {boolean} + * @memberof V1PostingFbsTraceableSplitResponsePosting + */ + potential_blr_traceable?: boolean; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V1PostingFbsTraceableSplitResponsePosting + */ + products?: Array; +} +/** + * Check if a given object implements the V1PostingFbsTraceableSplitResponsePosting interface. + */ +export declare function instanceOfV1PostingFbsTraceableSplitResponsePosting(value: object): value is V1PostingFbsTraceableSplitResponsePosting; +export declare function V1PostingFbsTraceableSplitResponsePostingFromJSON(json: any): V1PostingFbsTraceableSplitResponsePosting; +export declare function V1PostingFbsTraceableSplitResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTraceableSplitResponsePosting; +export declare function V1PostingFbsTraceableSplitResponsePostingToJSON(value?: V1PostingFbsTraceableSplitResponsePosting | null): any; diff --git a/dist/esm/models/V1PostingFbsTraceableSplitResponsePosting.js b/dist/esm/models/V1PostingFbsTraceableSplitResponsePosting.js new file mode 100644 index 0000000..caa3231 --- /dev/null +++ b/dist/esm/models/V1PostingFbsTraceableSplitResponsePosting.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFbsTraceableSplitResponsePostingProductFromJSON, PostingFbsTraceableSplitResponsePostingProductToJSON, } from './PostingFbsTraceableSplitResponsePostingProduct'; +/** + * Check if a given object implements the V1PostingFbsTraceableSplitResponsePosting interface. + */ +export function instanceOfV1PostingFbsTraceableSplitResponsePosting(value) { + return true; +} +export function V1PostingFbsTraceableSplitResponsePostingFromJSON(json) { + return V1PostingFbsTraceableSplitResponsePostingFromJSONTyped(json, false); +} +export function V1PostingFbsTraceableSplitResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'potential_blr_traceable': json['potential_blr_traceable'] == null ? undefined : json['potential_blr_traceable'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFbsTraceableSplitResponsePostingProductFromJSON)), + }; +} +export function V1PostingFbsTraceableSplitResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'potential_blr_traceable': value['potential_blr_traceable'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFbsTraceableSplitResponsePostingProductToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingMarksRequest.d.ts b/dist/esm/models/V1PostingMarksRequest.d.ts new file mode 100644 index 0000000..c771809 --- /dev/null +++ b/dist/esm/models/V1PostingMarksRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingMarksRequest + */ +export interface V1PostingMarksRequest { + /** + * Идентификаторы отправлений. + * @type {Array} + * @memberof V1PostingMarksRequest + */ + posting_numbers?: Array; +} +/** + * Check if a given object implements the V1PostingMarksRequest interface. + */ +export declare function instanceOfV1PostingMarksRequest(value: object): value is V1PostingMarksRequest; +export declare function V1PostingMarksRequestFromJSON(json: any): V1PostingMarksRequest; +export declare function V1PostingMarksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingMarksRequest; +export declare function V1PostingMarksRequestToJSON(value?: V1PostingMarksRequest | null): any; diff --git a/dist/esm/models/V1PostingMarksRequest.js b/dist/esm/models/V1PostingMarksRequest.js new file mode 100644 index 0000000..ddf384f --- /dev/null +++ b/dist/esm/models/V1PostingMarksRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingMarksRequest interface. + */ +export function instanceOfV1PostingMarksRequest(value) { + return true; +} +export function V1PostingMarksRequestFromJSON(json) { + return V1PostingMarksRequestFromJSONTyped(json, false); +} +export function V1PostingMarksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + }; +} +export function V1PostingMarksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/esm/models/V1PostingMarksResponse.d.ts b/dist/esm/models/V1PostingMarksResponse.d.ts new file mode 100644 index 0000000..52ab68e --- /dev/null +++ b/dist/esm/models/V1PostingMarksResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingMarksResponseIssuedExemplar } from './PostingMarksResponseIssuedExemplar'; +import type { PostingMarksResponseNonIssuedExemplar } from './PostingMarksResponseNonIssuedExemplar'; +/** + * + * @export + * @interface V1PostingMarksResponse + */ +export interface V1PostingMarksResponse { + /** + * Список неверных идентификаторов отправлений. + * @type {Array} + * @memberof V1PostingMarksResponse + */ + invalid_postings?: Array; + /** + * Список выданных покупателям экземпляров товаров. + * @type {Array} + * @memberof V1PostingMarksResponse + */ + issued_exemplars?: Array; + /** + * Список не выданных покупателям экземпляров товаров. + * @type {Array} + * @memberof V1PostingMarksResponse + */ + non_issued_exemplars?: Array; +} +/** + * Check if a given object implements the V1PostingMarksResponse interface. + */ +export declare function instanceOfV1PostingMarksResponse(value: object): value is V1PostingMarksResponse; +export declare function V1PostingMarksResponseFromJSON(json: any): V1PostingMarksResponse; +export declare function V1PostingMarksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingMarksResponse; +export declare function V1PostingMarksResponseToJSON(value?: V1PostingMarksResponse | null): any; diff --git a/dist/esm/models/V1PostingMarksResponse.js b/dist/esm/models/V1PostingMarksResponse.js new file mode 100644 index 0000000..42c2d68 --- /dev/null +++ b/dist/esm/models/V1PostingMarksResponse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingMarksResponseIssuedExemplarFromJSON, PostingMarksResponseIssuedExemplarToJSON, } from './PostingMarksResponseIssuedExemplar'; +import { PostingMarksResponseNonIssuedExemplarFromJSON, PostingMarksResponseNonIssuedExemplarToJSON, } from './PostingMarksResponseNonIssuedExemplar'; +/** + * Check if a given object implements the V1PostingMarksResponse interface. + */ +export function instanceOfV1PostingMarksResponse(value) { + return true; +} +export function V1PostingMarksResponseFromJSON(json) { + return V1PostingMarksResponseFromJSONTyped(json, false); +} +export function V1PostingMarksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'invalid_postings': json['invalid_postings'] == null ? undefined : json['invalid_postings'], + 'issued_exemplars': json['issued_exemplars'] == null ? undefined : (json['issued_exemplars'].map(PostingMarksResponseIssuedExemplarFromJSON)), + 'non_issued_exemplars': json['non_issued_exemplars'] == null ? undefined : (json['non_issued_exemplars'].map(PostingMarksResponseNonIssuedExemplarFromJSON)), + }; +} +export function V1PostingMarksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'invalid_postings': value['invalid_postings'], + 'issued_exemplars': value['issued_exemplars'] == null ? undefined : (value['issued_exemplars'].map(PostingMarksResponseIssuedExemplarToJSON)), + 'non_issued_exemplars': value['non_issued_exemplars'] == null ? undefined : (value['non_issued_exemplars'].map(PostingMarksResponseNonIssuedExemplarToJSON)), + }; +} diff --git a/dist/esm/models/V1PostingUnpaidLegalProductListRequest.d.ts b/dist/esm/models/V1PostingUnpaidLegalProductListRequest.d.ts new file mode 100644 index 0000000..feccaf5 --- /dev/null +++ b/dist/esm/models/V1PostingUnpaidLegalProductListRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingUnpaidLegalProductListRequest + */ +export interface V1PostingUnpaidLegalProductListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListRequest + */ + cursor?: string; + /** + * Количество значений в ответе. + * + * @type {number} + * @memberof V1PostingUnpaidLegalProductListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListRequest interface. + */ +export declare function instanceOfV1PostingUnpaidLegalProductListRequest(value: object): value is V1PostingUnpaidLegalProductListRequest; +export declare function V1PostingUnpaidLegalProductListRequestFromJSON(json: any): V1PostingUnpaidLegalProductListRequest; +export declare function V1PostingUnpaidLegalProductListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingUnpaidLegalProductListRequest; +export declare function V1PostingUnpaidLegalProductListRequestToJSON(value?: V1PostingUnpaidLegalProductListRequest | null): any; diff --git a/dist/esm/models/V1PostingUnpaidLegalProductListRequest.js b/dist/esm/models/V1PostingUnpaidLegalProductListRequest.js new file mode 100644 index 0000000..2af9578 --- /dev/null +++ b/dist/esm/models/V1PostingUnpaidLegalProductListRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListRequest interface. + */ +export function instanceOfV1PostingUnpaidLegalProductListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1PostingUnpaidLegalProductListRequestFromJSON(json) { + return V1PostingUnpaidLegalProductListRequestFromJSONTyped(json, false); +} +export function V1PostingUnpaidLegalProductListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + }; +} +export function V1PostingUnpaidLegalProductListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1PostingUnpaidLegalProductListResponse.d.ts b/dist/esm/models/V1PostingUnpaidLegalProductListResponse.d.ts new file mode 100644 index 0000000..f00c21e --- /dev/null +++ b/dist/esm/models/V1PostingUnpaidLegalProductListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingUnpaidLegalProductListResponseProducts } from './V1PostingUnpaidLegalProductListResponseProducts'; +/** + * + * @export + * @interface V1PostingUnpaidLegalProductListResponse + */ +export interface V1PostingUnpaidLegalProductListResponse { + /** + * Список неоплаченных товаров. + * @type {Array} + * @memberof V1PostingUnpaidLegalProductListResponse + */ + products?: Array; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListResponse + */ + cursor?: string; +} +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListResponse interface. + */ +export declare function instanceOfV1PostingUnpaidLegalProductListResponse(value: object): value is V1PostingUnpaidLegalProductListResponse; +export declare function V1PostingUnpaidLegalProductListResponseFromJSON(json: any): V1PostingUnpaidLegalProductListResponse; +export declare function V1PostingUnpaidLegalProductListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingUnpaidLegalProductListResponse; +export declare function V1PostingUnpaidLegalProductListResponseToJSON(value?: V1PostingUnpaidLegalProductListResponse | null): any; diff --git a/dist/esm/models/V1PostingUnpaidLegalProductListResponse.js b/dist/esm/models/V1PostingUnpaidLegalProductListResponse.js new file mode 100644 index 0000000..8396e3c --- /dev/null +++ b/dist/esm/models/V1PostingUnpaidLegalProductListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1PostingUnpaidLegalProductListResponseProductsFromJSON, V1PostingUnpaidLegalProductListResponseProductsToJSON, } from './V1PostingUnpaidLegalProductListResponseProducts'; +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListResponse interface. + */ +export function instanceOfV1PostingUnpaidLegalProductListResponse(value) { + return true; +} +export function V1PostingUnpaidLegalProductListResponseFromJSON(json) { + return V1PostingUnpaidLegalProductListResponseFromJSONTyped(json, false); +} +export function V1PostingUnpaidLegalProductListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(V1PostingUnpaidLegalProductListResponseProductsFromJSON)), + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + }; +} +export function V1PostingUnpaidLegalProductListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(V1PostingUnpaidLegalProductListResponseProductsToJSON)), + 'cursor': value['cursor'], + }; +} diff --git a/dist/esm/models/V1PostingUnpaidLegalProductListResponseProducts.d.ts b/dist/esm/models/V1PostingUnpaidLegalProductListResponseProducts.d.ts new file mode 100644 index 0000000..61227f7 --- /dev/null +++ b/dist/esm/models/V1PostingUnpaidLegalProductListResponseProducts.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingUnpaidLegalProductListResponseProducts + */ +export interface V1PostingUnpaidLegalProductListResponseProducts { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + product_id?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + offer_id?: string; + /** + * Количество экземпляров. + * @type {number} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + quantity?: number; + /** + * Название товара. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + name?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + image_url?: string; +} +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListResponseProducts interface. + */ +export declare function instanceOfV1PostingUnpaidLegalProductListResponseProducts(value: object): value is V1PostingUnpaidLegalProductListResponseProducts; +export declare function V1PostingUnpaidLegalProductListResponseProductsFromJSON(json: any): V1PostingUnpaidLegalProductListResponseProducts; +export declare function V1PostingUnpaidLegalProductListResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingUnpaidLegalProductListResponseProducts; +export declare function V1PostingUnpaidLegalProductListResponseProductsToJSON(value?: V1PostingUnpaidLegalProductListResponseProducts | null): any; diff --git a/dist/esm/models/V1PostingUnpaidLegalProductListResponseProducts.js b/dist/esm/models/V1PostingUnpaidLegalProductListResponseProducts.js new file mode 100644 index 0000000..9db37ea --- /dev/null +++ b/dist/esm/models/V1PostingUnpaidLegalProductListResponseProducts.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListResponseProducts interface. + */ +export function instanceOfV1PostingUnpaidLegalProductListResponseProducts(value) { + return true; +} +export function V1PostingUnpaidLegalProductListResponseProductsFromJSON(json) { + return V1PostingUnpaidLegalProductListResponseProductsFromJSONTyped(json, false); +} +export function V1PostingUnpaidLegalProductListResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'name': json['name'] == null ? undefined : json['name'], + 'image_url': json['image_url'] == null ? undefined : json['image_url'], + }; +} +export function V1PostingUnpaidLegalProductListResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'name': value['name'], + 'image_url': value['image_url'], + }; +} diff --git a/dist/esm/models/V1PremiumScores.d.ts b/dist/esm/models/V1PremiumScores.d.ts new file mode 100644 index 0000000..d39083c --- /dev/null +++ b/dist/esm/models/V1PremiumScores.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PremiumScoresScore } from './PremiumScoresScore'; +/** + * + * @export + * @interface V1PremiumScores + */ +export interface V1PremiumScores { + /** + * Название рейтинга. + * @type {string} + * @memberof V1PremiumScores + */ + rating?: string; + /** + * Информация о штрафных баллах. + * @type {Array} + * @memberof V1PremiumScores + */ + scores?: Array; +} +/** + * Check if a given object implements the V1PremiumScores interface. + */ +export declare function instanceOfV1PremiumScores(value: object): value is V1PremiumScores; +export declare function V1PremiumScoresFromJSON(json: any): V1PremiumScores; +export declare function V1PremiumScoresFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PremiumScores; +export declare function V1PremiumScoresToJSON(value?: V1PremiumScores | null): any; diff --git a/dist/esm/models/V1PremiumScores.js b/dist/esm/models/V1PremiumScores.js new file mode 100644 index 0000000..dbdeaa2 --- /dev/null +++ b/dist/esm/models/V1PremiumScores.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PremiumScoresScoreFromJSON, PremiumScoresScoreToJSON, } from './PremiumScoresScore'; +/** + * Check if a given object implements the V1PremiumScores interface. + */ +export function instanceOfV1PremiumScores(value) { + return true; +} +export function V1PremiumScoresFromJSON(json) { + return V1PremiumScoresFromJSONTyped(json, false); +} +export function V1PremiumScoresFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rating': json['rating'] == null ? undefined : json['rating'], + 'scores': json['scores'] == null ? undefined : (json['scores'].map(PremiumScoresScoreFromJSON)), + }; +} +export function V1PremiumScoresToJSON(value) { + if (value == null) { + return value; + } + return { + 'rating': value['rating'], + 'scores': value['scores'] == null ? undefined : (value['scores'].map(PremiumScoresScoreToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductActionTimerStatusRequest.d.ts b/dist/esm/models/V1ProductActionTimerStatusRequest.d.ts new file mode 100644 index 0000000..7531077 --- /dev/null +++ b/dist/esm/models/V1ProductActionTimerStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductActionTimerStatusRequest + */ +export interface V1ProductActionTimerStatusRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof V1ProductActionTimerStatusRequest + */ + product_ids?: Array; +} +/** + * Check if a given object implements the V1ProductActionTimerStatusRequest interface. + */ +export declare function instanceOfV1ProductActionTimerStatusRequest(value: object): value is V1ProductActionTimerStatusRequest; +export declare function V1ProductActionTimerStatusRequestFromJSON(json: any): V1ProductActionTimerStatusRequest; +export declare function V1ProductActionTimerStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductActionTimerStatusRequest; +export declare function V1ProductActionTimerStatusRequestToJSON(value?: V1ProductActionTimerStatusRequest | null): any; diff --git a/dist/esm/models/V1ProductActionTimerStatusRequest.js b/dist/esm/models/V1ProductActionTimerStatusRequest.js new file mode 100644 index 0000000..65514b1 --- /dev/null +++ b/dist/esm/models/V1ProductActionTimerStatusRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductActionTimerStatusRequest interface. + */ +export function instanceOfV1ProductActionTimerStatusRequest(value) { + return true; +} +export function V1ProductActionTimerStatusRequestFromJSON(json) { + return V1ProductActionTimerStatusRequestFromJSONTyped(json, false); +} +export function V1ProductActionTimerStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + }; +} +export function V1ProductActionTimerStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/esm/models/V1ProductActionTimerStatusResponse.d.ts b/dist/esm/models/V1ProductActionTimerStatusResponse.d.ts new file mode 100644 index 0000000..e28c892 --- /dev/null +++ b/dist/esm/models/V1ProductActionTimerStatusResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductActionTimerStatusResponseStatuses } from './V1ProductActionTimerStatusResponseStatuses'; +/** + * + * @export + * @interface V1ProductActionTimerStatusResponse + */ +export interface V1ProductActionTimerStatusResponse { + /** + * + * @type {Array} + * @memberof V1ProductActionTimerStatusResponse + */ + statuses?: Array; +} +/** + * Check if a given object implements the V1ProductActionTimerStatusResponse interface. + */ +export declare function instanceOfV1ProductActionTimerStatusResponse(value: object): value is V1ProductActionTimerStatusResponse; +export declare function V1ProductActionTimerStatusResponseFromJSON(json: any): V1ProductActionTimerStatusResponse; +export declare function V1ProductActionTimerStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductActionTimerStatusResponse; +export declare function V1ProductActionTimerStatusResponseToJSON(value?: V1ProductActionTimerStatusResponse | null): any; diff --git a/dist/esm/models/V1ProductActionTimerStatusResponse.js b/dist/esm/models/V1ProductActionTimerStatusResponse.js new file mode 100644 index 0000000..5d4ad44 --- /dev/null +++ b/dist/esm/models/V1ProductActionTimerStatusResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductActionTimerStatusResponseStatusesFromJSON, V1ProductActionTimerStatusResponseStatusesToJSON, } from './V1ProductActionTimerStatusResponseStatuses'; +/** + * Check if a given object implements the V1ProductActionTimerStatusResponse interface. + */ +export function instanceOfV1ProductActionTimerStatusResponse(value) { + return true; +} +export function V1ProductActionTimerStatusResponseFromJSON(json) { + return V1ProductActionTimerStatusResponseFromJSONTyped(json, false); +} +export function V1ProductActionTimerStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'statuses': json['statuses'] == null ? undefined : (json['statuses'].map(V1ProductActionTimerStatusResponseStatusesFromJSON)), + }; +} +export function V1ProductActionTimerStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'statuses': value['statuses'] == null ? undefined : (value['statuses'].map(V1ProductActionTimerStatusResponseStatusesToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductActionTimerStatusResponseStatuses.d.ts b/dist/esm/models/V1ProductActionTimerStatusResponseStatuses.d.ts new file mode 100644 index 0000000..cf5cd01 --- /dev/null +++ b/dist/esm/models/V1ProductActionTimerStatusResponseStatuses.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductActionTimerStatusResponseStatuses + */ +export interface V1ProductActionTimerStatusResponseStatuses { + /** + * Время окончания таймера. Если параметр пустой, активного таймера нет. + * @type {string} + * @memberof V1ProductActionTimerStatusResponseStatuses + */ + expired_at?: string; + /** + * `true`, если Ozon учитывает минимальную цену при добавлении в акции. + * + * @type {boolean} + * @memberof V1ProductActionTimerStatusResponseStatuses + */ + min_price_for_auto_actions_enabled?: boolean; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1ProductActionTimerStatusResponseStatuses + */ + product_id?: number; +} +/** + * Check if a given object implements the V1ProductActionTimerStatusResponseStatuses interface. + */ +export declare function instanceOfV1ProductActionTimerStatusResponseStatuses(value: object): value is V1ProductActionTimerStatusResponseStatuses; +export declare function V1ProductActionTimerStatusResponseStatusesFromJSON(json: any): V1ProductActionTimerStatusResponseStatuses; +export declare function V1ProductActionTimerStatusResponseStatusesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductActionTimerStatusResponseStatuses; +export declare function V1ProductActionTimerStatusResponseStatusesToJSON(value?: V1ProductActionTimerStatusResponseStatuses | null): any; diff --git a/dist/esm/models/V1ProductActionTimerStatusResponseStatuses.js b/dist/esm/models/V1ProductActionTimerStatusResponseStatuses.js new file mode 100644 index 0000000..373d361 --- /dev/null +++ b/dist/esm/models/V1ProductActionTimerStatusResponseStatuses.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductActionTimerStatusResponseStatuses interface. + */ +export function instanceOfV1ProductActionTimerStatusResponseStatuses(value) { + return true; +} +export function V1ProductActionTimerStatusResponseStatusesFromJSON(json) { + return V1ProductActionTimerStatusResponseStatusesFromJSONTyped(json, false); +} +export function V1ProductActionTimerStatusResponseStatusesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'expired_at': json['expired_at'] == null ? undefined : json['expired_at'], + 'min_price_for_auto_actions_enabled': json['min_price_for_auto_actions_enabled'] == null ? undefined : json['min_price_for_auto_actions_enabled'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +export function V1ProductActionTimerStatusResponseStatusesToJSON(value) { + if (value == null) { + return value; + } + return { + 'expired_at': value['expired_at'], + 'min_price_for_auto_actions_enabled': value['min_price_for_auto_actions_enabled'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V1ProductActionTimerUpdateRequest.d.ts b/dist/esm/models/V1ProductActionTimerUpdateRequest.d.ts new file mode 100644 index 0000000..62ad7c9 --- /dev/null +++ b/dist/esm/models/V1ProductActionTimerUpdateRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductActionTimerUpdateRequest + */ +export interface V1ProductActionTimerUpdateRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof V1ProductActionTimerUpdateRequest + */ + product_ids?: Array; +} +/** + * Check if a given object implements the V1ProductActionTimerUpdateRequest interface. + */ +export declare function instanceOfV1ProductActionTimerUpdateRequest(value: object): value is V1ProductActionTimerUpdateRequest; +export declare function V1ProductActionTimerUpdateRequestFromJSON(json: any): V1ProductActionTimerUpdateRequest; +export declare function V1ProductActionTimerUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductActionTimerUpdateRequest; +export declare function V1ProductActionTimerUpdateRequestToJSON(value?: V1ProductActionTimerUpdateRequest | null): any; diff --git a/dist/esm/models/V1ProductActionTimerUpdateRequest.js b/dist/esm/models/V1ProductActionTimerUpdateRequest.js new file mode 100644 index 0000000..0238cd2 --- /dev/null +++ b/dist/esm/models/V1ProductActionTimerUpdateRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductActionTimerUpdateRequest interface. + */ +export function instanceOfV1ProductActionTimerUpdateRequest(value) { + return true; +} +export function V1ProductActionTimerUpdateRequestFromJSON(json) { + return V1ProductActionTimerUpdateRequestFromJSONTyped(json, false); +} +export function V1ProductActionTimerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + }; +} +export function V1ProductActionTimerUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateDeleteRequest.d.ts b/dist/esm/models/V1ProductCertificateDeleteRequest.d.ts new file mode 100644 index 0000000..eb4a1da --- /dev/null +++ b/dist/esm/models/V1ProductCertificateDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateDeleteRequest + */ +export interface V1ProductCertificateDeleteRequest { + /** + * Идентификатор сертификата. + * @type {number} + * @memberof V1ProductCertificateDeleteRequest + */ + certificate_id: number; +} +/** + * Check if a given object implements the V1ProductCertificateDeleteRequest interface. + */ +export declare function instanceOfV1ProductCertificateDeleteRequest(value: object): value is V1ProductCertificateDeleteRequest; +export declare function V1ProductCertificateDeleteRequestFromJSON(json: any): V1ProductCertificateDeleteRequest; +export declare function V1ProductCertificateDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateDeleteRequest; +export declare function V1ProductCertificateDeleteRequestToJSON(value?: V1ProductCertificateDeleteRequest | null): any; diff --git a/dist/esm/models/V1ProductCertificateDeleteRequest.js b/dist/esm/models/V1ProductCertificateDeleteRequest.js new file mode 100644 index 0000000..9853ddc --- /dev/null +++ b/dist/esm/models/V1ProductCertificateDeleteRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductCertificateDeleteRequest interface. + */ +export function instanceOfV1ProductCertificateDeleteRequest(value) { + if (!('certificate_id' in value) || value['certificate_id'] === undefined) + return false; + return true; +} +export function V1ProductCertificateDeleteRequestFromJSON(json) { + return V1ProductCertificateDeleteRequestFromJSONTyped(json, false); +} +export function V1ProductCertificateDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'], + }; +} +export function V1ProductCertificateDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateDeleteResponse.d.ts b/dist/esm/models/V1ProductCertificateDeleteResponse.d.ts new file mode 100644 index 0000000..aa8524b --- /dev/null +++ b/dist/esm/models/V1ProductCertificateDeleteResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductCertificateDeleteResponseResult } from './V1ProductCertificateDeleteResponseResult'; +/** + * + * @export + * @interface V1ProductCertificateDeleteResponse + */ +export interface V1ProductCertificateDeleteResponse { + /** + * + * @type {V1ProductCertificateDeleteResponseResult} + * @memberof V1ProductCertificateDeleteResponse + */ + result?: V1ProductCertificateDeleteResponseResult; +} +/** + * Check if a given object implements the V1ProductCertificateDeleteResponse interface. + */ +export declare function instanceOfV1ProductCertificateDeleteResponse(value: object): value is V1ProductCertificateDeleteResponse; +export declare function V1ProductCertificateDeleteResponseFromJSON(json: any): V1ProductCertificateDeleteResponse; +export declare function V1ProductCertificateDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateDeleteResponse; +export declare function V1ProductCertificateDeleteResponseToJSON(value?: V1ProductCertificateDeleteResponse | null): any; diff --git a/dist/esm/models/V1ProductCertificateDeleteResponse.js b/dist/esm/models/V1ProductCertificateDeleteResponse.js new file mode 100644 index 0000000..7b4a121 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateDeleteResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductCertificateDeleteResponseResultFromJSON, V1ProductCertificateDeleteResponseResultToJSON, } from './V1ProductCertificateDeleteResponseResult'; +/** + * Check if a given object implements the V1ProductCertificateDeleteResponse interface. + */ +export function instanceOfV1ProductCertificateDeleteResponse(value) { + return true; +} +export function V1ProductCertificateDeleteResponseFromJSON(json) { + return V1ProductCertificateDeleteResponseFromJSONTyped(json, false); +} +export function V1ProductCertificateDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1ProductCertificateDeleteResponseResultFromJSON(json['result']), + }; +} +export function V1ProductCertificateDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1ProductCertificateDeleteResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1ProductCertificateDeleteResponseResult.d.ts b/dist/esm/models/V1ProductCertificateDeleteResponseResult.d.ts new file mode 100644 index 0000000..9947f79 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateDeleteResponseResult.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат удаления сертификата. + * @export + * @interface V1ProductCertificateDeleteResponseResult + */ +export interface V1ProductCertificateDeleteResponseResult { + /** + * Удалён ли сертификат: + * - `true` — удалён, + * - `false` — не удалён. + * + * @type {boolean} + * @memberof V1ProductCertificateDeleteResponseResult + */ + is_delete?: boolean; + /** + * Описание ошибок при удалении сертификата. + * @type {string} + * @memberof V1ProductCertificateDeleteResponseResult + */ + error_message?: string; +} +/** + * Check if a given object implements the V1ProductCertificateDeleteResponseResult interface. + */ +export declare function instanceOfV1ProductCertificateDeleteResponseResult(value: object): value is V1ProductCertificateDeleteResponseResult; +export declare function V1ProductCertificateDeleteResponseResultFromJSON(json: any): V1ProductCertificateDeleteResponseResult; +export declare function V1ProductCertificateDeleteResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateDeleteResponseResult; +export declare function V1ProductCertificateDeleteResponseResultToJSON(value?: V1ProductCertificateDeleteResponseResult | null): any; diff --git a/dist/esm/models/V1ProductCertificateDeleteResponseResult.js b/dist/esm/models/V1ProductCertificateDeleteResponseResult.js new file mode 100644 index 0000000..a709678 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateDeleteResponseResult.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductCertificateDeleteResponseResult interface. + */ +export function instanceOfV1ProductCertificateDeleteResponseResult(value) { + return true; +} +export function V1ProductCertificateDeleteResponseResultFromJSON(json) { + return V1ProductCertificateDeleteResponseResultFromJSONTyped(json, false); +} +export function V1ProductCertificateDeleteResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_delete': json['is_delete'] == null ? undefined : json['is_delete'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +export function V1ProductCertificateDeleteResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_delete': value['is_delete'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateInfoRequest.d.ts b/dist/esm/models/V1ProductCertificateInfoRequest.d.ts new file mode 100644 index 0000000..9af89f2 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateInfoRequest + */ +export interface V1ProductCertificateInfoRequest { + /** + * Идентификатор сертификата. + * @type {string} + * @memberof V1ProductCertificateInfoRequest + */ + certificate_number: string; +} +/** + * Check if a given object implements the V1ProductCertificateInfoRequest interface. + */ +export declare function instanceOfV1ProductCertificateInfoRequest(value: object): value is V1ProductCertificateInfoRequest; +export declare function V1ProductCertificateInfoRequestFromJSON(json: any): V1ProductCertificateInfoRequest; +export declare function V1ProductCertificateInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateInfoRequest; +export declare function V1ProductCertificateInfoRequestToJSON(value?: V1ProductCertificateInfoRequest | null): any; diff --git a/dist/esm/models/V1ProductCertificateInfoRequest.js b/dist/esm/models/V1ProductCertificateInfoRequest.js new file mode 100644 index 0000000..4b3fb78 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductCertificateInfoRequest interface. + */ +export function instanceOfV1ProductCertificateInfoRequest(value) { + if (!('certificate_number' in value) || value['certificate_number'] === undefined) + return false; + return true; +} +export function V1ProductCertificateInfoRequestFromJSON(json) { + return V1ProductCertificateInfoRequestFromJSONTyped(json, false); +} +export function V1ProductCertificateInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_number': json['certificate_number'], + }; +} +export function V1ProductCertificateInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_number': value['certificate_number'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateInfoResponse.d.ts b/dist/esm/models/V1ProductCertificateInfoResponse.d.ts new file mode 100644 index 0000000..521a236 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Certificate } from './V1Certificate'; +/** + * + * @export + * @interface V1ProductCertificateInfoResponse + */ +export interface V1ProductCertificateInfoResponse { + /** + * + * @type {V1Certificate} + * @memberof V1ProductCertificateInfoResponse + */ + result?: V1Certificate; +} +/** + * Check if a given object implements the V1ProductCertificateInfoResponse interface. + */ +export declare function instanceOfV1ProductCertificateInfoResponse(value: object): value is V1ProductCertificateInfoResponse; +export declare function V1ProductCertificateInfoResponseFromJSON(json: any): V1ProductCertificateInfoResponse; +export declare function V1ProductCertificateInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateInfoResponse; +export declare function V1ProductCertificateInfoResponseToJSON(value?: V1ProductCertificateInfoResponse | null): any; diff --git a/dist/esm/models/V1ProductCertificateInfoResponse.js b/dist/esm/models/V1ProductCertificateInfoResponse.js new file mode 100644 index 0000000..744b445 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CertificateFromJSON, V1CertificateToJSON, } from './V1Certificate'; +/** + * Check if a given object implements the V1ProductCertificateInfoResponse interface. + */ +export function instanceOfV1ProductCertificateInfoResponse(value) { + return true; +} +export function V1ProductCertificateInfoResponseFromJSON(json) { + return V1ProductCertificateInfoResponseFromJSONTyped(json, false); +} +export function V1ProductCertificateInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1CertificateFromJSON(json['result']), + }; +} +export function V1ProductCertificateInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1CertificateToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1ProductCertificateListRequest.d.ts b/dist/esm/models/V1ProductCertificateListRequest.d.ts new file mode 100644 index 0000000..a30d590 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateListRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateListRequest + */ +export interface V1ProductCertificateListRequest { + /** + * Идентификатор товара в системе продавца — артикул, привязанный к сертификату. Передайте параметр, если нужны сертификаты, к которым привязаны определённые товары. + * @type {string} + * @memberof V1ProductCertificateListRequest + */ + offer_id?: string; + /** + * Статус сертификата. Передайте параметр, если нужны сертификаты с определённым статусом. + * @type {string} + * @memberof V1ProductCertificateListRequest + */ + status?: string; + /** + * Тип сертификата. Передайте параметр, если нужны сертификаты с определённым типом. + * @type {string} + * @memberof V1ProductCertificateListRequest + */ + type?: string; + /** + * Страница, с которой следует выводить список. Минимальное значение — 1. + * @type {number} + * @memberof V1ProductCertificateListRequest + */ + page: number; + /** + * Количество объектов на странице. Значение — от 1 до 1000. + * @type {number} + * @memberof V1ProductCertificateListRequest + */ + page_size: number; +} +/** + * Check if a given object implements the V1ProductCertificateListRequest interface. + */ +export declare function instanceOfV1ProductCertificateListRequest(value: object): value is V1ProductCertificateListRequest; +export declare function V1ProductCertificateListRequestFromJSON(json: any): V1ProductCertificateListRequest; +export declare function V1ProductCertificateListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateListRequest; +export declare function V1ProductCertificateListRequestToJSON(value?: V1ProductCertificateListRequest | null): any; diff --git a/dist/esm/models/V1ProductCertificateListRequest.js b/dist/esm/models/V1ProductCertificateListRequest.js new file mode 100644 index 0000000..89deefe --- /dev/null +++ b/dist/esm/models/V1ProductCertificateListRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductCertificateListRequest interface. + */ +export function instanceOfV1ProductCertificateListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +export function V1ProductCertificateListRequestFromJSON(json) { + return V1ProductCertificateListRequestFromJSONTyped(json, false); +} +export function V1ProductCertificateListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'status': json['status'] == null ? undefined : json['status'], + 'type': json['type'] == null ? undefined : json['type'], + 'page': json['page'], + 'page_size': json['page_size'], + }; +} +export function V1ProductCertificateListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'status': value['status'], + 'type': value['type'], + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateListResponse.d.ts b/dist/esm/models/V1ProductCertificateListResponse.d.ts new file mode 100644 index 0000000..8354a07 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductCertificateListResponseResult } from './V1ProductCertificateListResponseResult'; +/** + * + * @export + * @interface V1ProductCertificateListResponse + */ +export interface V1ProductCertificateListResponse { + /** + * + * @type {V1ProductCertificateListResponseResult} + * @memberof V1ProductCertificateListResponse + */ + result?: V1ProductCertificateListResponseResult; +} +/** + * Check if a given object implements the V1ProductCertificateListResponse interface. + */ +export declare function instanceOfV1ProductCertificateListResponse(value: object): value is V1ProductCertificateListResponse; +export declare function V1ProductCertificateListResponseFromJSON(json: any): V1ProductCertificateListResponse; +export declare function V1ProductCertificateListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateListResponse; +export declare function V1ProductCertificateListResponseToJSON(value?: V1ProductCertificateListResponse | null): any; diff --git a/dist/esm/models/V1ProductCertificateListResponse.js b/dist/esm/models/V1ProductCertificateListResponse.js new file mode 100644 index 0000000..4a9f735 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductCertificateListResponseResultFromJSON, V1ProductCertificateListResponseResultToJSON, } from './V1ProductCertificateListResponseResult'; +/** + * Check if a given object implements the V1ProductCertificateListResponse interface. + */ +export function instanceOfV1ProductCertificateListResponse(value) { + return true; +} +export function V1ProductCertificateListResponseFromJSON(json) { + return V1ProductCertificateListResponseFromJSONTyped(json, false); +} +export function V1ProductCertificateListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1ProductCertificateListResponseResultFromJSON(json['result']), + }; +} +export function V1ProductCertificateListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1ProductCertificateListResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1ProductCertificateListResponseResult.d.ts b/dist/esm/models/V1ProductCertificateListResponseResult.d.ts new file mode 100644 index 0000000..bf2db5b --- /dev/null +++ b/dist/esm/models/V1ProductCertificateListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Certificate } from './V1Certificate'; +/** + * Список сертификатов. + * @export + * @interface V1ProductCertificateListResponseResult + */ +export interface V1ProductCertificateListResponseResult { + /** + * Информация о сертификате. + * @type {Array} + * @memberof V1ProductCertificateListResponseResult + */ + certificates?: Array; + /** + * Количество страниц. + * @type {number} + * @memberof V1ProductCertificateListResponseResult + */ + page_count?: number; +} +/** + * Check if a given object implements the V1ProductCertificateListResponseResult interface. + */ +export declare function instanceOfV1ProductCertificateListResponseResult(value: object): value is V1ProductCertificateListResponseResult; +export declare function V1ProductCertificateListResponseResultFromJSON(json: any): V1ProductCertificateListResponseResult; +export declare function V1ProductCertificateListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateListResponseResult; +export declare function V1ProductCertificateListResponseResultToJSON(value?: V1ProductCertificateListResponseResult | null): any; diff --git a/dist/esm/models/V1ProductCertificateListResponseResult.js b/dist/esm/models/V1ProductCertificateListResponseResult.js new file mode 100644 index 0000000..14fd79e --- /dev/null +++ b/dist/esm/models/V1ProductCertificateListResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CertificateFromJSON, V1CertificateToJSON, } from './V1Certificate'; +/** + * Check if a given object implements the V1ProductCertificateListResponseResult interface. + */ +export function instanceOfV1ProductCertificateListResponseResult(value) { + return true; +} +export function V1ProductCertificateListResponseResultFromJSON(json) { + return V1ProductCertificateListResponseResultFromJSONTyped(json, false); +} +export function V1ProductCertificateListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificates': json['certificates'] == null ? undefined : (json['certificates'].map(V1CertificateFromJSON)), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + }; +} +export function V1ProductCertificateListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificates': value['certificates'] == null ? undefined : (value['certificates'].map(V1CertificateToJSON)), + 'page_count': value['page_count'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateProductStatusListResponse.d.ts b/dist/esm/models/V1ProductCertificateProductStatusListResponse.d.ts new file mode 100644 index 0000000..75d1802 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateProductStatusListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1StatusCodeNamePair } from './V1StatusCodeNamePair'; +/** + * + * @export + * @interface V1ProductCertificateProductStatusListResponse + */ +export interface V1ProductCertificateProductStatusListResponse { + /** + * Список статусов товаров. + * @type {Array} + * @memberof V1ProductCertificateProductStatusListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateProductStatusListResponse interface. + */ +export declare function instanceOfV1ProductCertificateProductStatusListResponse(value: object): value is V1ProductCertificateProductStatusListResponse; +export declare function V1ProductCertificateProductStatusListResponseFromJSON(json: any): V1ProductCertificateProductStatusListResponse; +export declare function V1ProductCertificateProductStatusListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateProductStatusListResponse; +export declare function V1ProductCertificateProductStatusListResponseToJSON(value?: V1ProductCertificateProductStatusListResponse | null): any; diff --git a/dist/esm/models/V1ProductCertificateProductStatusListResponse.js b/dist/esm/models/V1ProductCertificateProductStatusListResponse.js new file mode 100644 index 0000000..96c8bcb --- /dev/null +++ b/dist/esm/models/V1ProductCertificateProductStatusListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1StatusCodeNamePairFromJSON, V1StatusCodeNamePairToJSON, } from './V1StatusCodeNamePair'; +/** + * Check if a given object implements the V1ProductCertificateProductStatusListResponse interface. + */ +export function instanceOfV1ProductCertificateProductStatusListResponse(value) { + return true; +} +export function V1ProductCertificateProductStatusListResponseFromJSON(json) { + return V1ProductCertificateProductStatusListResponseFromJSONTyped(json, false); +} +export function V1ProductCertificateProductStatusListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1StatusCodeNamePairFromJSON)), + }; +} +export function V1ProductCertificateProductStatusListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1StatusCodeNamePairToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductCertificateProductsListRequest.d.ts b/dist/esm/models/V1ProductCertificateProductsListRequest.d.ts new file mode 100644 index 0000000..20819e5 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateProductsListRequest.d.ts @@ -0,0 +1,66 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateProductsListRequest + */ +export interface V1ProductCertificateProductsListRequest { + /** + * Идентификатор сертификата. + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + */ + certificate_id: number; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + */ + last_id?: number; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + */ + limit?: number; + /** + * Статус проверки товара при привязке к сертификату. + * @type {string} + * @memberof V1ProductCertificateProductsListRequest + */ + product_status_code?: string; + /** + * Номер страницы, с которой выводить список. Минимальное значение — 1. + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + * @deprecated + */ + page?: number; + /** + * Количество объектов на странице. + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + * @deprecated + */ + page_size?: number; +} +/** + * Check if a given object implements the V1ProductCertificateProductsListRequest interface. + */ +export declare function instanceOfV1ProductCertificateProductsListRequest(value: object): value is V1ProductCertificateProductsListRequest; +export declare function V1ProductCertificateProductsListRequestFromJSON(json: any): V1ProductCertificateProductsListRequest; +export declare function V1ProductCertificateProductsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateProductsListRequest; +export declare function V1ProductCertificateProductsListRequestToJSON(value?: V1ProductCertificateProductsListRequest | null): any; diff --git a/dist/esm/models/V1ProductCertificateProductsListRequest.js b/dist/esm/models/V1ProductCertificateProductsListRequest.js new file mode 100644 index 0000000..8b873da --- /dev/null +++ b/dist/esm/models/V1ProductCertificateProductsListRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductCertificateProductsListRequest interface. + */ +export function instanceOfV1ProductCertificateProductsListRequest(value) { + if (!('certificate_id' in value) || value['certificate_id'] === undefined) + return false; + return true; +} +export function V1ProductCertificateProductsListRequestFromJSON(json) { + return V1ProductCertificateProductsListRequestFromJSONTyped(json, false); +} +export function V1ProductCertificateProductsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'product_status_code': json['product_status_code'] == null ? undefined : json['product_status_code'], + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'] == null ? undefined : json['page_size'], + }; +} +export function V1ProductCertificateProductsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'last_id': value['last_id'], + 'limit': value['limit'], + 'product_status_code': value['product_status_code'], + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateProductsListResponse.d.ts b/dist/esm/models/V1ProductCertificateProductsListResponse.d.ts new file mode 100644 index 0000000..1f12853 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateProductsListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductCertificateProductsListResponseResult } from './V1ProductCertificateProductsListResponseResult'; +/** + * + * @export + * @interface V1ProductCertificateProductsListResponse + */ +export interface V1ProductCertificateProductsListResponse { + /** + * + * @type {V1ProductCertificateProductsListResponseResult} + * @memberof V1ProductCertificateProductsListResponse + */ + result?: V1ProductCertificateProductsListResponseResult; +} +/** + * Check if a given object implements the V1ProductCertificateProductsListResponse interface. + */ +export declare function instanceOfV1ProductCertificateProductsListResponse(value: object): value is V1ProductCertificateProductsListResponse; +export declare function V1ProductCertificateProductsListResponseFromJSON(json: any): V1ProductCertificateProductsListResponse; +export declare function V1ProductCertificateProductsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateProductsListResponse; +export declare function V1ProductCertificateProductsListResponseToJSON(value?: V1ProductCertificateProductsListResponse | null): any; diff --git a/dist/esm/models/V1ProductCertificateProductsListResponse.js b/dist/esm/models/V1ProductCertificateProductsListResponse.js new file mode 100644 index 0000000..0cbd804 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateProductsListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductCertificateProductsListResponseResultFromJSON, V1ProductCertificateProductsListResponseResultToJSON, } from './V1ProductCertificateProductsListResponseResult'; +/** + * Check if a given object implements the V1ProductCertificateProductsListResponse interface. + */ +export function instanceOfV1ProductCertificateProductsListResponse(value) { + return true; +} +export function V1ProductCertificateProductsListResponseFromJSON(json) { + return V1ProductCertificateProductsListResponseFromJSONTyped(json, false); +} +export function V1ProductCertificateProductsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1ProductCertificateProductsListResponseResultFromJSON(json['result']), + }; +} +export function V1ProductCertificateProductsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1ProductCertificateProductsListResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1ProductCertificateProductsListResponseResult.d.ts b/dist/esm/models/V1ProductCertificateProductsListResponseResult.d.ts new file mode 100644 index 0000000..375be6d --- /dev/null +++ b/dist/esm/models/V1ProductCertificateProductsListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificateProductsListResponseProduct } from './ProductCertificateProductsListResponseProduct'; +/** + * Товары, привязанные к сертификату. + * @export + * @interface V1ProductCertificateProductsListResponseResult + */ +export interface V1ProductCertificateProductsListResponseResult { + /** + * Список товаров. + * @type {Array} + * @memberof V1ProductCertificateProductsListResponseResult + */ + items?: Array; + /** + * Количество найденных товаров. + * @type {number} + * @memberof V1ProductCertificateProductsListResponseResult + */ + count?: number; +} +/** + * Check if a given object implements the V1ProductCertificateProductsListResponseResult interface. + */ +export declare function instanceOfV1ProductCertificateProductsListResponseResult(value: object): value is V1ProductCertificateProductsListResponseResult; +export declare function V1ProductCertificateProductsListResponseResultFromJSON(json: any): V1ProductCertificateProductsListResponseResult; +export declare function V1ProductCertificateProductsListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateProductsListResponseResult; +export declare function V1ProductCertificateProductsListResponseResultToJSON(value?: V1ProductCertificateProductsListResponseResult | null): any; diff --git a/dist/esm/models/V1ProductCertificateProductsListResponseResult.js b/dist/esm/models/V1ProductCertificateProductsListResponseResult.js new file mode 100644 index 0000000..ce25342 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateProductsListResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductCertificateProductsListResponseProductFromJSON, ProductCertificateProductsListResponseProductToJSON, } from './ProductCertificateProductsListResponseProduct'; +/** + * Check if a given object implements the V1ProductCertificateProductsListResponseResult interface. + */ +export function instanceOfV1ProductCertificateProductsListResponseResult(value) { + return true; +} +export function V1ProductCertificateProductsListResponseResultFromJSON(json) { + return V1ProductCertificateProductsListResponseResultFromJSONTyped(json, false); +} +export function V1ProductCertificateProductsListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductCertificateProductsListResponseProductFromJSON)), + 'count': json['count'] == null ? undefined : json['count'], + }; +} +export function V1ProductCertificateProductsListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductCertificateProductsListResponseProductToJSON)), + 'count': value['count'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateRejectionReasonsListResponse.d.ts b/dist/esm/models/V1ProductCertificateRejectionReasonsListResponse.d.ts new file mode 100644 index 0000000..55eff17 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateRejectionReasonsListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1StatusCodeNamePairRejection } from './V1StatusCodeNamePairRejection'; +/** + * + * @export + * @interface V1ProductCertificateRejectionReasonsListResponse + */ +export interface V1ProductCertificateRejectionReasonsListResponse { + /** + * Причины отклонения сертификата. + * @type {Array} + * @memberof V1ProductCertificateRejectionReasonsListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateRejectionReasonsListResponse interface. + */ +export declare function instanceOfV1ProductCertificateRejectionReasonsListResponse(value: object): value is V1ProductCertificateRejectionReasonsListResponse; +export declare function V1ProductCertificateRejectionReasonsListResponseFromJSON(json: any): V1ProductCertificateRejectionReasonsListResponse; +export declare function V1ProductCertificateRejectionReasonsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateRejectionReasonsListResponse; +export declare function V1ProductCertificateRejectionReasonsListResponseToJSON(value?: V1ProductCertificateRejectionReasonsListResponse | null): any; diff --git a/dist/esm/models/V1ProductCertificateRejectionReasonsListResponse.js b/dist/esm/models/V1ProductCertificateRejectionReasonsListResponse.js new file mode 100644 index 0000000..0721d0b --- /dev/null +++ b/dist/esm/models/V1ProductCertificateRejectionReasonsListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1StatusCodeNamePairRejectionFromJSON, V1StatusCodeNamePairRejectionToJSON, } from './V1StatusCodeNamePairRejection'; +/** + * Check if a given object implements the V1ProductCertificateRejectionReasonsListResponse interface. + */ +export function instanceOfV1ProductCertificateRejectionReasonsListResponse(value) { + return true; +} +export function V1ProductCertificateRejectionReasonsListResponseFromJSON(json) { + return V1ProductCertificateRejectionReasonsListResponseFromJSONTyped(json, false); +} +export function V1ProductCertificateRejectionReasonsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1StatusCodeNamePairRejectionFromJSON)), + }; +} +export function V1ProductCertificateRejectionReasonsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1StatusCodeNamePairRejectionToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductCertificateStatusListResponse.d.ts b/dist/esm/models/V1ProductCertificateStatusListResponse.d.ts new file mode 100644 index 0000000..1fd317e --- /dev/null +++ b/dist/esm/models/V1ProductCertificateStatusListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1StatusCodeNamePairStatuses } from './V1StatusCodeNamePairStatuses'; +/** + * + * @export + * @interface V1ProductCertificateStatusListResponse + */ +export interface V1ProductCertificateStatusListResponse { + /** + * Список возможных статусов сертификатов. + * @type {Array} + * @memberof V1ProductCertificateStatusListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateStatusListResponse interface. + */ +export declare function instanceOfV1ProductCertificateStatusListResponse(value: object): value is V1ProductCertificateStatusListResponse; +export declare function V1ProductCertificateStatusListResponseFromJSON(json: any): V1ProductCertificateStatusListResponse; +export declare function V1ProductCertificateStatusListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateStatusListResponse; +export declare function V1ProductCertificateStatusListResponseToJSON(value?: V1ProductCertificateStatusListResponse | null): any; diff --git a/dist/esm/models/V1ProductCertificateStatusListResponse.js b/dist/esm/models/V1ProductCertificateStatusListResponse.js new file mode 100644 index 0000000..fdb3b6e --- /dev/null +++ b/dist/esm/models/V1ProductCertificateStatusListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1StatusCodeNamePairStatusesFromJSON, V1StatusCodeNamePairStatusesToJSON, } from './V1StatusCodeNamePairStatuses'; +/** + * Check if a given object implements the V1ProductCertificateStatusListResponse interface. + */ +export function instanceOfV1ProductCertificateStatusListResponse(value) { + return true; +} +export function V1ProductCertificateStatusListResponseFromJSON(json) { + return V1ProductCertificateStatusListResponseFromJSONTyped(json, false); +} +export function V1ProductCertificateStatusListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1StatusCodeNamePairStatusesFromJSON)), + }; +} +export function V1ProductCertificateStatusListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1StatusCodeNamePairStatusesToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductCertificateUnbindRequest.d.ts b/dist/esm/models/V1ProductCertificateUnbindRequest.d.ts new file mode 100644 index 0000000..208fdf2 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateUnbindRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateUnbindRequest + */ +export interface V1ProductCertificateUnbindRequest { + /** + * Идентификатор сертификата. + * @type {number} + * @memberof V1ProductCertificateUnbindRequest + */ + certificate_id: number; + /** + * Список идентификаторов товара в системе Ozon — `product_id`, которые нужно отвязать от сертификата. + * @type {Array} + * @memberof V1ProductCertificateUnbindRequest + * @deprecated + */ + product_id?: Array; + /** + * Список идентификаторов товаров в системе Ozon — SKU, которые нужно отвязать от сертификата. + * @type {Array} + * @memberof V1ProductCertificateUnbindRequest + */ + skus?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateUnbindRequest interface. + */ +export declare function instanceOfV1ProductCertificateUnbindRequest(value: object): value is V1ProductCertificateUnbindRequest; +export declare function V1ProductCertificateUnbindRequestFromJSON(json: any): V1ProductCertificateUnbindRequest; +export declare function V1ProductCertificateUnbindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateUnbindRequest; +export declare function V1ProductCertificateUnbindRequestToJSON(value?: V1ProductCertificateUnbindRequest | null): any; diff --git a/dist/esm/models/V1ProductCertificateUnbindRequest.js b/dist/esm/models/V1ProductCertificateUnbindRequest.js new file mode 100644 index 0000000..3192746 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateUnbindRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductCertificateUnbindRequest interface. + */ +export function instanceOfV1ProductCertificateUnbindRequest(value) { + if (!('certificate_id' in value) || value['certificate_id'] === undefined) + return false; + return true; +} +export function V1ProductCertificateUnbindRequestFromJSON(json) { + return V1ProductCertificateUnbindRequestFromJSONTyped(json, false); +} +export function V1ProductCertificateUnbindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +export function V1ProductCertificateUnbindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'product_id': value['product_id'], + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/V1ProductCertificateUnbindResponse.d.ts b/dist/esm/models/V1ProductCertificateUnbindResponse.d.ts new file mode 100644 index 0000000..9b04c56 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateUnbindResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificateUnbindResponseItem } from './ProductCertificateUnbindResponseItem'; +/** + * + * @export + * @interface V1ProductCertificateUnbindResponse + */ +export interface V1ProductCertificateUnbindResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof V1ProductCertificateUnbindResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateUnbindResponse interface. + */ +export declare function instanceOfV1ProductCertificateUnbindResponse(value: object): value is V1ProductCertificateUnbindResponse; +export declare function V1ProductCertificateUnbindResponseFromJSON(json: any): V1ProductCertificateUnbindResponse; +export declare function V1ProductCertificateUnbindResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateUnbindResponse; +export declare function V1ProductCertificateUnbindResponseToJSON(value?: V1ProductCertificateUnbindResponse | null): any; diff --git a/dist/esm/models/V1ProductCertificateUnbindResponse.js b/dist/esm/models/V1ProductCertificateUnbindResponse.js new file mode 100644 index 0000000..c2b20e7 --- /dev/null +++ b/dist/esm/models/V1ProductCertificateUnbindResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductCertificateUnbindResponseItemFromJSON, ProductCertificateUnbindResponseItemToJSON, } from './ProductCertificateUnbindResponseItem'; +/** + * Check if a given object implements the V1ProductCertificateUnbindResponse interface. + */ +export function instanceOfV1ProductCertificateUnbindResponse(value) { + return true; +} +export function V1ProductCertificateUnbindResponseFromJSON(json) { + return V1ProductCertificateUnbindResponseFromJSONTyped(json, false); +} +export function V1ProductCertificateUnbindResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ProductCertificateUnbindResponseItemFromJSON)), + }; +} +export function V1ProductCertificateUnbindResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ProductCertificateUnbindResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductFbsSplit.d.ts b/dist/esm/models/V1ProductFbsSplit.d.ts new file mode 100644 index 0000000..08c6f0b --- /dev/null +++ b/dist/esm/models/V1ProductFbsSplit.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductFbsSplit + */ +export interface V1ProductFbsSplit { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ProductFbsSplit + */ + product_id: number; + /** + * Количество экземпляров. + * @type {number} + * @memberof V1ProductFbsSplit + */ + quantity: number; +} +/** + * Check if a given object implements the V1ProductFbsSplit interface. + */ +export declare function instanceOfV1ProductFbsSplit(value: object): value is V1ProductFbsSplit; +export declare function V1ProductFbsSplitFromJSON(json: any): V1ProductFbsSplit; +export declare function V1ProductFbsSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductFbsSplit; +export declare function V1ProductFbsSplitToJSON(value?: V1ProductFbsSplit | null): any; diff --git a/dist/esm/models/V1ProductFbsSplit.js b/dist/esm/models/V1ProductFbsSplit.js new file mode 100644 index 0000000..0e9339f --- /dev/null +++ b/dist/esm/models/V1ProductFbsSplit.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductFbsSplit interface. + */ +export function instanceOfV1ProductFbsSplit(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + return true; +} +export function V1ProductFbsSplitFromJSON(json) { + return V1ProductFbsSplitFromJSONTyped(json, false); +} +export function V1ProductFbsSplitFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + 'quantity': json['quantity'], + }; +} +export function V1ProductFbsSplitToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/esm/models/V1ProductGetRelatedSKURequest.d.ts b/dist/esm/models/V1ProductGetRelatedSKURequest.d.ts new file mode 100644 index 0000000..bfe10f4 --- /dev/null +++ b/dist/esm/models/V1ProductGetRelatedSKURequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductGetRelatedSKURequest + */ +export interface V1ProductGetRelatedSKURequest { + /** + * Список SKU. + * @type {Array} + * @memberof V1ProductGetRelatedSKURequest + */ + sku: Array; +} +/** + * Check if a given object implements the V1ProductGetRelatedSKURequest interface. + */ +export declare function instanceOfV1ProductGetRelatedSKURequest(value: object): value is V1ProductGetRelatedSKURequest; +export declare function V1ProductGetRelatedSKURequestFromJSON(json: any): V1ProductGetRelatedSKURequest; +export declare function V1ProductGetRelatedSKURequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductGetRelatedSKURequest; +export declare function V1ProductGetRelatedSKURequestToJSON(value?: V1ProductGetRelatedSKURequest | null): any; diff --git a/dist/esm/models/V1ProductGetRelatedSKURequest.js b/dist/esm/models/V1ProductGetRelatedSKURequest.js new file mode 100644 index 0000000..bd425e2 --- /dev/null +++ b/dist/esm/models/V1ProductGetRelatedSKURequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductGetRelatedSKURequest interface. + */ +export function instanceOfV1ProductGetRelatedSKURequest(value) { + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1ProductGetRelatedSKURequestFromJSON(json) { + return V1ProductGetRelatedSKURequestFromJSONTyped(json, false); +} +export function V1ProductGetRelatedSKURequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'], + }; +} +export function V1ProductGetRelatedSKURequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1ProductGetRelatedSKUResponse.d.ts b/dist/esm/models/V1ProductGetRelatedSKUResponse.d.ts new file mode 100644 index 0000000..ad6a60d --- /dev/null +++ b/dist/esm/models/V1ProductGetRelatedSKUResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductGetRelatedSKUResponseError } from './V1ProductGetRelatedSKUResponseError'; +import type { V1ProductGetRelatedSKUResponseItem } from './V1ProductGetRelatedSKUResponseItem'; +/** + * + * @export + * @interface V1ProductGetRelatedSKUResponse + */ +export interface V1ProductGetRelatedSKUResponse { + /** + * Информация о связанных SKU. + * @type {Array} + * @memberof V1ProductGetRelatedSKUResponse + */ + items?: Array; + /** + * Ошибки. + * @type {Array} + * @memberof V1ProductGetRelatedSKUResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponse interface. + */ +export declare function instanceOfV1ProductGetRelatedSKUResponse(value: object): value is V1ProductGetRelatedSKUResponse; +export declare function V1ProductGetRelatedSKUResponseFromJSON(json: any): V1ProductGetRelatedSKUResponse; +export declare function V1ProductGetRelatedSKUResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductGetRelatedSKUResponse; +export declare function V1ProductGetRelatedSKUResponseToJSON(value?: V1ProductGetRelatedSKUResponse | null): any; diff --git a/dist/esm/models/V1ProductGetRelatedSKUResponse.js b/dist/esm/models/V1ProductGetRelatedSKUResponse.js new file mode 100644 index 0000000..d9b5a40 --- /dev/null +++ b/dist/esm/models/V1ProductGetRelatedSKUResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductGetRelatedSKUResponseErrorFromJSON, V1ProductGetRelatedSKUResponseErrorToJSON, } from './V1ProductGetRelatedSKUResponseError'; +import { V1ProductGetRelatedSKUResponseItemFromJSON, V1ProductGetRelatedSKUResponseItemToJSON, } from './V1ProductGetRelatedSKUResponseItem'; +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponse interface. + */ +export function instanceOfV1ProductGetRelatedSKUResponse(value) { + return true; +} +export function V1ProductGetRelatedSKUResponseFromJSON(json) { + return V1ProductGetRelatedSKUResponseFromJSONTyped(json, false); +} +export function V1ProductGetRelatedSKUResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1ProductGetRelatedSKUResponseItemFromJSON)), + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1ProductGetRelatedSKUResponseErrorFromJSON)), + }; +} +export function V1ProductGetRelatedSKUResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1ProductGetRelatedSKUResponseItemToJSON)), + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1ProductGetRelatedSKUResponseErrorToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductGetRelatedSKUResponseError.d.ts b/dist/esm/models/V1ProductGetRelatedSKUResponseError.d.ts new file mode 100644 index 0000000..6d83a81 --- /dev/null +++ b/dist/esm/models/V1ProductGetRelatedSKUResponseError.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductGetRelatedSKUResponseError + */ +export interface V1ProductGetRelatedSKUResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseError + */ + code?: string; + /** + * SKU, в котором произошла ошибка. + * @type {number} + * @memberof V1ProductGetRelatedSKUResponseError + */ + sku?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseError + */ + message?: string; +} +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponseError interface. + */ +export declare function instanceOfV1ProductGetRelatedSKUResponseError(value: object): value is V1ProductGetRelatedSKUResponseError; +export declare function V1ProductGetRelatedSKUResponseErrorFromJSON(json: any): V1ProductGetRelatedSKUResponseError; +export declare function V1ProductGetRelatedSKUResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductGetRelatedSKUResponseError; +export declare function V1ProductGetRelatedSKUResponseErrorToJSON(value?: V1ProductGetRelatedSKUResponseError | null): any; diff --git a/dist/esm/models/V1ProductGetRelatedSKUResponseError.js b/dist/esm/models/V1ProductGetRelatedSKUResponseError.js new file mode 100644 index 0000000..9a81f27 --- /dev/null +++ b/dist/esm/models/V1ProductGetRelatedSKUResponseError.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponseError interface. + */ +export function instanceOfV1ProductGetRelatedSKUResponseError(value) { + return true; +} +export function V1ProductGetRelatedSKUResponseErrorFromJSON(json) { + return V1ProductGetRelatedSKUResponseErrorFromJSONTyped(json, false); +} +export function V1ProductGetRelatedSKUResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function V1ProductGetRelatedSKUResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'sku': value['sku'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/V1ProductGetRelatedSKUResponseItem.d.ts b/dist/esm/models/V1ProductGetRelatedSKUResponseItem.d.ts new file mode 100644 index 0000000..7ec9ddb --- /dev/null +++ b/dist/esm/models/V1ProductGetRelatedSKUResponseItem.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductGetRelatedSKUResponseItem + */ +export interface V1ProductGetRelatedSKUResponseItem { + /** + * Признак доступности товара по SKU: + * - `HIDDEN` — скрыт; + * - `AVAILABLE` — доступен; + * - `UNAVAILABLE` — недоступен, SKU удалён. + * + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + availability?: string; + /** + * Дата и время удаления. + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + deleted_at?: string; + /** + * Схема доставки: + * - `SDS` - идентификатор единого Ozon SKU; + * - `FBO` - идентификатор товара, который продаётся со склада Ozon; + * - `FBS` - идентификатор товара, который продаётся со склада FBS; + * - `Crossborder` - идентификатор товара, который продаётся из-за границы. + * + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + delivery_schema?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + product_id?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + sku?: number; +} +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponseItem interface. + */ +export declare function instanceOfV1ProductGetRelatedSKUResponseItem(value: object): value is V1ProductGetRelatedSKUResponseItem; +export declare function V1ProductGetRelatedSKUResponseItemFromJSON(json: any): V1ProductGetRelatedSKUResponseItem; +export declare function V1ProductGetRelatedSKUResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductGetRelatedSKUResponseItem; +export declare function V1ProductGetRelatedSKUResponseItemToJSON(value?: V1ProductGetRelatedSKUResponseItem | null): any; diff --git a/dist/esm/models/V1ProductGetRelatedSKUResponseItem.js b/dist/esm/models/V1ProductGetRelatedSKUResponseItem.js new file mode 100644 index 0000000..e5c1ef5 --- /dev/null +++ b/dist/esm/models/V1ProductGetRelatedSKUResponseItem.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponseItem interface. + */ +export function instanceOfV1ProductGetRelatedSKUResponseItem(value) { + return true; +} +export function V1ProductGetRelatedSKUResponseItemFromJSON(json) { + return V1ProductGetRelatedSKUResponseItemFromJSONTyped(json, false); +} +export function V1ProductGetRelatedSKUResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'availability': json['availability'] == null ? undefined : json['availability'], + 'deleted_at': json['deleted_at'] == null ? undefined : json['deleted_at'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1ProductGetRelatedSKUResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'availability': value['availability'], + 'deleted_at': value['deleted_at'], + 'delivery_schema': value['delivery_schema'], + 'product_id': value['product_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1ProductInfoWarehouseStocksRequest.d.ts b/dist/esm/models/V1ProductInfoWarehouseStocksRequest.d.ts new file mode 100644 index 0000000..5815a94 --- /dev/null +++ b/dist/esm/models/V1ProductInfoWarehouseStocksRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductInfoWarehouseStocksRequest + */ +export interface V1ProductInfoWarehouseStocksRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ProductInfoWarehouseStocksRequest + */ + cursor?: string; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1ProductInfoWarehouseStocksRequest + */ + limit: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1ProductInfoWarehouseStocksRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1ProductInfoWarehouseStocksRequest interface. + */ +export declare function instanceOfV1ProductInfoWarehouseStocksRequest(value: object): value is V1ProductInfoWarehouseStocksRequest; +export declare function V1ProductInfoWarehouseStocksRequestFromJSON(json: any): V1ProductInfoWarehouseStocksRequest; +export declare function V1ProductInfoWarehouseStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductInfoWarehouseStocksRequest; +export declare function V1ProductInfoWarehouseStocksRequestToJSON(value?: V1ProductInfoWarehouseStocksRequest | null): any; diff --git a/dist/esm/models/V1ProductInfoWarehouseStocksRequest.js b/dist/esm/models/V1ProductInfoWarehouseStocksRequest.js new file mode 100644 index 0000000..3461488 --- /dev/null +++ b/dist/esm/models/V1ProductInfoWarehouseStocksRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductInfoWarehouseStocksRequest interface. + */ +export function instanceOfV1ProductInfoWarehouseStocksRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1ProductInfoWarehouseStocksRequestFromJSON(json) { + return V1ProductInfoWarehouseStocksRequestFromJSONTyped(json, false); +} +export function V1ProductInfoWarehouseStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1ProductInfoWarehouseStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1ProductInfoWarehouseStocksResponse.d.ts b/dist/esm/models/V1ProductInfoWarehouseStocksResponse.d.ts new file mode 100644 index 0000000..b085143 --- /dev/null +++ b/dist/esm/models/V1ProductInfoWarehouseStocksResponse.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductInfoWarehouseStocksResponseStocks } from './ProductInfoWarehouseStocksResponseStocks'; +/** + * + * @export + * @interface V1ProductInfoWarehouseStocksResponse + */ +export interface V1ProductInfoWarehouseStocksResponse { + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof V1ProductInfoWarehouseStocksResponse + */ + cursor?: string; + /** + * Признак, что в ответе вернули не все товары: + * - `true` — сделайте повторный запрос с другим значением `cursor`, чтобы получить остальные значения; + * - `false` — ответ содержит все значения. + * + * @type {boolean} + * @memberof V1ProductInfoWarehouseStocksResponse + */ + has_next?: boolean; + /** + * Информация об остатках товара. + * @type {Array} + * @memberof V1ProductInfoWarehouseStocksResponse + */ + stocks?: Array; +} +/** + * Check if a given object implements the V1ProductInfoWarehouseStocksResponse interface. + */ +export declare function instanceOfV1ProductInfoWarehouseStocksResponse(value: object): value is V1ProductInfoWarehouseStocksResponse; +export declare function V1ProductInfoWarehouseStocksResponseFromJSON(json: any): V1ProductInfoWarehouseStocksResponse; +export declare function V1ProductInfoWarehouseStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductInfoWarehouseStocksResponse; +export declare function V1ProductInfoWarehouseStocksResponseToJSON(value?: V1ProductInfoWarehouseStocksResponse | null): any; diff --git a/dist/esm/models/V1ProductInfoWarehouseStocksResponse.js b/dist/esm/models/V1ProductInfoWarehouseStocksResponse.js new file mode 100644 index 0000000..915681a --- /dev/null +++ b/dist/esm/models/V1ProductInfoWarehouseStocksResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductInfoWarehouseStocksResponseStocksFromJSON, ProductInfoWarehouseStocksResponseStocksToJSON, } from './ProductInfoWarehouseStocksResponseStocks'; +/** + * Check if a given object implements the V1ProductInfoWarehouseStocksResponse interface. + */ +export function instanceOfV1ProductInfoWarehouseStocksResponse(value) { + return true; +} +export function V1ProductInfoWarehouseStocksResponseFromJSON(json) { + return V1ProductInfoWarehouseStocksResponseFromJSONTyped(json, false); +} +export function V1ProductInfoWarehouseStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'stocks': json['stocks'] == null ? undefined : (json['stocks'].map(ProductInfoWarehouseStocksResponseStocksFromJSON)), + }; +} +export function V1ProductInfoWarehouseStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'stocks': value['stocks'] == null ? undefined : (value['stocks'].map(ProductInfoWarehouseStocksResponseStocksToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductInfoWrongVolumeRequest.d.ts b/dist/esm/models/V1ProductInfoWrongVolumeRequest.d.ts new file mode 100644 index 0000000..fdc2a29 --- /dev/null +++ b/dist/esm/models/V1ProductInfoWrongVolumeRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductInfoWrongVolumeRequest + */ +export interface V1ProductInfoWrongVolumeRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ProductInfoWrongVolumeRequest + */ + cursor?: string; + /** + * Максимальное количество элементов в ответе. + * @type {number} + * @memberof V1ProductInfoWrongVolumeRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1ProductInfoWrongVolumeRequest interface. + */ +export declare function instanceOfV1ProductInfoWrongVolumeRequest(value: object): value is V1ProductInfoWrongVolumeRequest; +export declare function V1ProductInfoWrongVolumeRequestFromJSON(json: any): V1ProductInfoWrongVolumeRequest; +export declare function V1ProductInfoWrongVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductInfoWrongVolumeRequest; +export declare function V1ProductInfoWrongVolumeRequestToJSON(value?: V1ProductInfoWrongVolumeRequest | null): any; diff --git a/dist/esm/models/V1ProductInfoWrongVolumeRequest.js b/dist/esm/models/V1ProductInfoWrongVolumeRequest.js new file mode 100644 index 0000000..ae4a5de --- /dev/null +++ b/dist/esm/models/V1ProductInfoWrongVolumeRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductInfoWrongVolumeRequest interface. + */ +export function instanceOfV1ProductInfoWrongVolumeRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1ProductInfoWrongVolumeRequestFromJSON(json) { + return V1ProductInfoWrongVolumeRequestFromJSONTyped(json, false); +} +export function V1ProductInfoWrongVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + }; +} +export function V1ProductInfoWrongVolumeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1ProductInfoWrongVolumeResponse.d.ts b/dist/esm/models/V1ProductInfoWrongVolumeResponse.d.ts new file mode 100644 index 0000000..fb5b96a --- /dev/null +++ b/dist/esm/models/V1ProductInfoWrongVolumeResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductInfoWrongVolumeResponseWrongVolumeProduct } from './ProductInfoWrongVolumeResponseWrongVolumeProduct'; +/** + * + * @export + * @interface V1ProductInfoWrongVolumeResponse + */ +export interface V1ProductInfoWrongVolumeResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ProductInfoWrongVolumeResponse + */ + cursor?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V1ProductInfoWrongVolumeResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1ProductInfoWrongVolumeResponse interface. + */ +export declare function instanceOfV1ProductInfoWrongVolumeResponse(value: object): value is V1ProductInfoWrongVolumeResponse; +export declare function V1ProductInfoWrongVolumeResponseFromJSON(json: any): V1ProductInfoWrongVolumeResponse; +export declare function V1ProductInfoWrongVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductInfoWrongVolumeResponse; +export declare function V1ProductInfoWrongVolumeResponseToJSON(value?: V1ProductInfoWrongVolumeResponse | null): any; diff --git a/dist/esm/models/V1ProductInfoWrongVolumeResponse.js b/dist/esm/models/V1ProductInfoWrongVolumeResponse.js new file mode 100644 index 0000000..4c692eb --- /dev/null +++ b/dist/esm/models/V1ProductInfoWrongVolumeResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON, ProductInfoWrongVolumeResponseWrongVolumeProductToJSON, } from './ProductInfoWrongVolumeResponseWrongVolumeProduct'; +/** + * Check if a given object implements the V1ProductInfoWrongVolumeResponse interface. + */ +export function instanceOfV1ProductInfoWrongVolumeResponse(value) { + return true; +} +export function V1ProductInfoWrongVolumeResponseFromJSON(json) { + return V1ProductInfoWrongVolumeResponseFromJSONTyped(json, false); +} +export function V1ProductInfoWrongVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'products': json['products'] == null ? undefined : (json['products'].map(ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON)), + }; +} +export function V1ProductInfoWrongVolumeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'products': value['products'] == null ? undefined : (value['products'].map(ProductInfoWrongVolumeResponseWrongVolumeProductToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductPricesDetailsRequest.d.ts b/dist/esm/models/V1ProductPricesDetailsRequest.d.ts new file mode 100644 index 0000000..47b57a5 --- /dev/null +++ b/dist/esm/models/V1ProductPricesDetailsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductPricesDetailsRequest + */ +export interface V1ProductPricesDetailsRequest { + /** + * Список SKU. + * @type {Array} + * @memberof V1ProductPricesDetailsRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1ProductPricesDetailsRequest interface. + */ +export declare function instanceOfV1ProductPricesDetailsRequest(value: object): value is V1ProductPricesDetailsRequest; +export declare function V1ProductPricesDetailsRequestFromJSON(json: any): V1ProductPricesDetailsRequest; +export declare function V1ProductPricesDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductPricesDetailsRequest; +export declare function V1ProductPricesDetailsRequestToJSON(value?: V1ProductPricesDetailsRequest | null): any; diff --git a/dist/esm/models/V1ProductPricesDetailsRequest.js b/dist/esm/models/V1ProductPricesDetailsRequest.js new file mode 100644 index 0000000..26f74c7 --- /dev/null +++ b/dist/esm/models/V1ProductPricesDetailsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductPricesDetailsRequest interface. + */ +export function instanceOfV1ProductPricesDetailsRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1ProductPricesDetailsRequestFromJSON(json) { + return V1ProductPricesDetailsRequestFromJSONTyped(json, false); +} +export function V1ProductPricesDetailsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +export function V1ProductPricesDetailsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/V1ProductPricesDetailsResponse.d.ts b/dist/esm/models/V1ProductPricesDetailsResponse.d.ts new file mode 100644 index 0000000..9f4f78e --- /dev/null +++ b/dist/esm/models/V1ProductPricesDetailsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductPricesDetailsResponsePrice } from './V1ProductPricesDetailsResponsePrice'; +/** + * + * @export + * @interface V1ProductPricesDetailsResponse + */ +export interface V1ProductPricesDetailsResponse { + /** + * Цены товаров. + * @type {Array} + * @memberof V1ProductPricesDetailsResponse + */ + prices?: Array; +} +/** + * Check if a given object implements the V1ProductPricesDetailsResponse interface. + */ +export declare function instanceOfV1ProductPricesDetailsResponse(value: object): value is V1ProductPricesDetailsResponse; +export declare function V1ProductPricesDetailsResponseFromJSON(json: any): V1ProductPricesDetailsResponse; +export declare function V1ProductPricesDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductPricesDetailsResponse; +export declare function V1ProductPricesDetailsResponseToJSON(value?: V1ProductPricesDetailsResponse | null): any; diff --git a/dist/esm/models/V1ProductPricesDetailsResponse.js b/dist/esm/models/V1ProductPricesDetailsResponse.js new file mode 100644 index 0000000..e0cbf72 --- /dev/null +++ b/dist/esm/models/V1ProductPricesDetailsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductPricesDetailsResponsePriceFromJSON, V1ProductPricesDetailsResponsePriceToJSON, } from './V1ProductPricesDetailsResponsePrice'; +/** + * Check if a given object implements the V1ProductPricesDetailsResponse interface. + */ +export function instanceOfV1ProductPricesDetailsResponse(value) { + return true; +} +export function V1ProductPricesDetailsResponseFromJSON(json) { + return V1ProductPricesDetailsResponseFromJSONTyped(json, false); +} +export function V1ProductPricesDetailsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'prices': json['prices'] == null ? undefined : (json['prices'].map(V1ProductPricesDetailsResponsePriceFromJSON)), + }; +} +export function V1ProductPricesDetailsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'prices': value['prices'] == null ? undefined : (value['prices'].map(V1ProductPricesDetailsResponsePriceToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductPricesDetailsResponsePrice.d.ts b/dist/esm/models/V1ProductPricesDetailsResponsePrice.d.ts new file mode 100644 index 0000000..97c7de7 --- /dev/null +++ b/dist/esm/models/V1ProductPricesDetailsResponsePrice.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoney } from './MoneyMoney'; +import type { ProductV1ProductPricesDetailsResponsePricePriceIndex } from './ProductV1ProductPricesDetailsResponsePricePriceIndex'; +import type { MoneyMoneyCustomerPrice } from './MoneyMoneyCustomerPrice'; +/** + * + * @export + * @interface V1ProductPricesDetailsResponsePrice + */ +export interface V1ProductPricesDetailsResponsePrice { + /** + * + * @type {MoneyMoneyCustomerPrice} + * @memberof V1ProductPricesDetailsResponsePrice + */ + customer_price?: MoneyMoneyCustomerPrice; + /** + * Процент скидки за счёт Ozon. + * @type {number} + * @memberof V1ProductPricesDetailsResponsePrice + * @deprecated + */ + discount_percent?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1ProductPricesDetailsResponsePrice + */ + offer_id?: string; + /** + * + * @type {MoneyMoney} + * @memberof V1ProductPricesDetailsResponsePrice + */ + price?: MoneyMoney; + /** + * Индекс цен. + * @type {Array} + * @memberof V1ProductPricesDetailsResponsePrice + */ + price_indexes?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ProductPricesDetailsResponsePrice + */ + sku?: number; +} +/** + * Check if a given object implements the V1ProductPricesDetailsResponsePrice interface. + */ +export declare function instanceOfV1ProductPricesDetailsResponsePrice(value: object): value is V1ProductPricesDetailsResponsePrice; +export declare function V1ProductPricesDetailsResponsePriceFromJSON(json: any): V1ProductPricesDetailsResponsePrice; +export declare function V1ProductPricesDetailsResponsePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductPricesDetailsResponsePrice; +export declare function V1ProductPricesDetailsResponsePriceToJSON(value?: V1ProductPricesDetailsResponsePrice | null): any; diff --git a/dist/esm/models/V1ProductPricesDetailsResponsePrice.js b/dist/esm/models/V1ProductPricesDetailsResponsePrice.js new file mode 100644 index 0000000..b541391 --- /dev/null +++ b/dist/esm/models/V1ProductPricesDetailsResponsePrice.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MoneyMoneyFromJSON, MoneyMoneyToJSON, } from './MoneyMoney'; +import { ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON, ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON, } from './ProductV1ProductPricesDetailsResponsePricePriceIndex'; +import { MoneyMoneyCustomerPriceFromJSON, MoneyMoneyCustomerPriceToJSON, } from './MoneyMoneyCustomerPrice'; +/** + * Check if a given object implements the V1ProductPricesDetailsResponsePrice interface. + */ +export function instanceOfV1ProductPricesDetailsResponsePrice(value) { + return true; +} +export function V1ProductPricesDetailsResponsePriceFromJSON(json) { + return V1ProductPricesDetailsResponsePriceFromJSONTyped(json, false); +} +export function V1ProductPricesDetailsResponsePriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'customer_price': json['customer_price'] == null ? undefined : MoneyMoneyCustomerPriceFromJSON(json['customer_price']), + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : MoneyMoneyFromJSON(json['price']), + 'price_indexes': json['price_indexes'] == null ? undefined : (json['price_indexes'].map(ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1ProductPricesDetailsResponsePriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'customer_price': MoneyMoneyCustomerPriceToJSON(value['customer_price']), + 'discount_percent': value['discount_percent'], + 'offer_id': value['offer_id'], + 'price': MoneyMoneyToJSON(value['price']), + 'price_indexes': value['price_indexes'] == null ? undefined : (value['price_indexes'].map(ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1ProductUpdateAttributesRequest.d.ts b/dist/esm/models/V1ProductUpdateAttributesRequest.d.ts new file mode 100644 index 0000000..7084069 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductUpdateAttributesRequestItem } from './V1ProductUpdateAttributesRequestItem'; +/** + * + * @export + * @interface V1ProductUpdateAttributesRequest + */ +export interface V1ProductUpdateAttributesRequest { + /** + * Товары и характеристики, которые нужно обновить. + * @type {Array} + * @memberof V1ProductUpdateAttributesRequest + */ + items?: Array; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesRequest interface. + */ +export declare function instanceOfV1ProductUpdateAttributesRequest(value: object): value is V1ProductUpdateAttributesRequest; +export declare function V1ProductUpdateAttributesRequestFromJSON(json: any): V1ProductUpdateAttributesRequest; +export declare function V1ProductUpdateAttributesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesRequest; +export declare function V1ProductUpdateAttributesRequestToJSON(value?: V1ProductUpdateAttributesRequest | null): any; diff --git a/dist/esm/models/V1ProductUpdateAttributesRequest.js b/dist/esm/models/V1ProductUpdateAttributesRequest.js new file mode 100644 index 0000000..6130e35 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductUpdateAttributesRequestItemFromJSON, V1ProductUpdateAttributesRequestItemToJSON, } from './V1ProductUpdateAttributesRequestItem'; +/** + * Check if a given object implements the V1ProductUpdateAttributesRequest interface. + */ +export function instanceOfV1ProductUpdateAttributesRequest(value) { + return true; +} +export function V1ProductUpdateAttributesRequestFromJSON(json) { + return V1ProductUpdateAttributesRequestFromJSONTyped(json, false); +} +export function V1ProductUpdateAttributesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1ProductUpdateAttributesRequestItemFromJSON)), + }; +} +export function V1ProductUpdateAttributesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1ProductUpdateAttributesRequestItemToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductUpdateAttributesRequestAttribute.d.ts b/dist/esm/models/V1ProductUpdateAttributesRequestAttribute.d.ts new file mode 100644 index 0000000..371d840 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesRequestAttribute.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductUpdateAttributesRequestValue } from './V1ProductUpdateAttributesRequestValue'; +/** + * + * @export + * @interface V1ProductUpdateAttributesRequestAttribute + */ +export interface V1ProductUpdateAttributesRequestAttribute { + /** + * Идентификатор характеристики, которая поддерживает вложенные свойства. У каждой из вложенных характеристик может быть несколько вариантов значений. + * @type {number} + * @memberof V1ProductUpdateAttributesRequestAttribute + */ + complex_id?: number; + /** + * Идентификатор характеристики. + * @type {number} + * @memberof V1ProductUpdateAttributesRequestAttribute + */ + id?: number; + /** + * Массив вложенных значений характеристики. + * @type {Array} + * @memberof V1ProductUpdateAttributesRequestAttribute + */ + values?: Array; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestAttribute interface. + */ +export declare function instanceOfV1ProductUpdateAttributesRequestAttribute(value: object): value is V1ProductUpdateAttributesRequestAttribute; +export declare function V1ProductUpdateAttributesRequestAttributeFromJSON(json: any): V1ProductUpdateAttributesRequestAttribute; +export declare function V1ProductUpdateAttributesRequestAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesRequestAttribute; +export declare function V1ProductUpdateAttributesRequestAttributeToJSON(value?: V1ProductUpdateAttributesRequestAttribute | null): any; diff --git a/dist/esm/models/V1ProductUpdateAttributesRequestAttribute.js b/dist/esm/models/V1ProductUpdateAttributesRequestAttribute.js new file mode 100644 index 0000000..b5c459a --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesRequestAttribute.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductUpdateAttributesRequestValueFromJSON, V1ProductUpdateAttributesRequestValueToJSON, } from './V1ProductUpdateAttributesRequestValue'; +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestAttribute interface. + */ +export function instanceOfV1ProductUpdateAttributesRequestAttribute(value) { + return true; +} +export function V1ProductUpdateAttributesRequestAttributeFromJSON(json) { + return V1ProductUpdateAttributesRequestAttributeFromJSONTyped(json, false); +} +export function V1ProductUpdateAttributesRequestAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'complex_id': json['complex_id'] == null ? undefined : json['complex_id'], + 'id': json['id'] == null ? undefined : json['id'], + 'values': json['values'] == null ? undefined : (json['values'].map(V1ProductUpdateAttributesRequestValueFromJSON)), + }; +} +export function V1ProductUpdateAttributesRequestAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'complex_id': value['complex_id'], + 'id': value['id'], + 'values': value['values'] == null ? undefined : (value['values'].map(V1ProductUpdateAttributesRequestValueToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductUpdateAttributesRequestItem.d.ts b/dist/esm/models/V1ProductUpdateAttributesRequestItem.d.ts new file mode 100644 index 0000000..08c74e1 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesRequestItem.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductUpdateAttributesRequestAttribute } from './V1ProductUpdateAttributesRequestAttribute'; +/** + * + * @export + * @interface V1ProductUpdateAttributesRequestItem + */ +export interface V1ProductUpdateAttributesRequestItem { + /** + * Характеристики товара. + * @type {Array} + * @memberof V1ProductUpdateAttributesRequestItem + */ + attributes?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1ProductUpdateAttributesRequestItem + */ + offer_id: string; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestItem interface. + */ +export declare function instanceOfV1ProductUpdateAttributesRequestItem(value: object): value is V1ProductUpdateAttributesRequestItem; +export declare function V1ProductUpdateAttributesRequestItemFromJSON(json: any): V1ProductUpdateAttributesRequestItem; +export declare function V1ProductUpdateAttributesRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesRequestItem; +export declare function V1ProductUpdateAttributesRequestItemToJSON(value?: V1ProductUpdateAttributesRequestItem | null): any; diff --git a/dist/esm/models/V1ProductUpdateAttributesRequestItem.js b/dist/esm/models/V1ProductUpdateAttributesRequestItem.js new file mode 100644 index 0000000..5e88e67 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesRequestItem.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductUpdateAttributesRequestAttributeFromJSON, V1ProductUpdateAttributesRequestAttributeToJSON, } from './V1ProductUpdateAttributesRequestAttribute'; +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestItem interface. + */ +export function instanceOfV1ProductUpdateAttributesRequestItem(value) { + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + return true; +} +export function V1ProductUpdateAttributesRequestItemFromJSON(json) { + return V1ProductUpdateAttributesRequestItemFromJSONTyped(json, false); +} +export function V1ProductUpdateAttributesRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(V1ProductUpdateAttributesRequestAttributeFromJSON)), + 'offer_id': json['offer_id'], + }; +} +export function V1ProductUpdateAttributesRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(V1ProductUpdateAttributesRequestAttributeToJSON)), + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/esm/models/V1ProductUpdateAttributesRequestValue.d.ts b/dist/esm/models/V1ProductUpdateAttributesRequestValue.d.ts new file mode 100644 index 0000000..e981adf --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesRequestValue.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateAttributesRequestValue + */ +export interface V1ProductUpdateAttributesRequestValue { + /** + * Идентификатор характеристики в словаре. + * @type {number} + * @memberof V1ProductUpdateAttributesRequestValue + */ + dictionary_value_id?: number; + /** + * Значение характеристики товара. + * @type {string} + * @memberof V1ProductUpdateAttributesRequestValue + */ + value?: string; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestValue interface. + */ +export declare function instanceOfV1ProductUpdateAttributesRequestValue(value: object): value is V1ProductUpdateAttributesRequestValue; +export declare function V1ProductUpdateAttributesRequestValueFromJSON(json: any): V1ProductUpdateAttributesRequestValue; +export declare function V1ProductUpdateAttributesRequestValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesRequestValue; +export declare function V1ProductUpdateAttributesRequestValueToJSON(value?: V1ProductUpdateAttributesRequestValue | null): any; diff --git a/dist/esm/models/V1ProductUpdateAttributesRequestValue.js b/dist/esm/models/V1ProductUpdateAttributesRequestValue.js new file mode 100644 index 0000000..b7a486c --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesRequestValue.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestValue interface. + */ +export function instanceOfV1ProductUpdateAttributesRequestValue(value) { + return true; +} +export function V1ProductUpdateAttributesRequestValueFromJSON(json) { + return V1ProductUpdateAttributesRequestValueFromJSONTyped(json, false); +} +export function V1ProductUpdateAttributesRequestValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dictionary_value_id': json['dictionary_value_id'] == null ? undefined : json['dictionary_value_id'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V1ProductUpdateAttributesRequestValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'dictionary_value_id': value['dictionary_value_id'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1ProductUpdateAttributesResponse.d.ts b/dist/esm/models/V1ProductUpdateAttributesResponse.d.ts new file mode 100644 index 0000000..797e94b --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateAttributesResponse + */ +export interface V1ProductUpdateAttributesResponse { + /** + * Номер задания на обновление товаров. + * + * Чтобы проверить статус обновления, передайте полученное значение в метод [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo). + * + * @type {number} + * @memberof V1ProductUpdateAttributesResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesResponse interface. + */ +export declare function instanceOfV1ProductUpdateAttributesResponse(value: object): value is V1ProductUpdateAttributesResponse; +export declare function V1ProductUpdateAttributesResponseFromJSON(json: any): V1ProductUpdateAttributesResponse; +export declare function V1ProductUpdateAttributesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesResponse; +export declare function V1ProductUpdateAttributesResponseToJSON(value?: V1ProductUpdateAttributesResponse | null): any; diff --git a/dist/esm/models/V1ProductUpdateAttributesResponse.js b/dist/esm/models/V1ProductUpdateAttributesResponse.js new file mode 100644 index 0000000..0225ad1 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateAttributesResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductUpdateAttributesResponse interface. + */ +export function instanceOfV1ProductUpdateAttributesResponse(value) { + return true; +} +export function V1ProductUpdateAttributesResponseFromJSON(json) { + return V1ProductUpdateAttributesResponseFromJSONTyped(json, false); +} +export function V1ProductUpdateAttributesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function V1ProductUpdateAttributesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/V1ProductUpdateDiscountRequest.d.ts b/dist/esm/models/V1ProductUpdateDiscountRequest.d.ts new file mode 100644 index 0000000..36d43be --- /dev/null +++ b/dist/esm/models/V1ProductUpdateDiscountRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateDiscountRequest + */ +export interface V1ProductUpdateDiscountRequest { + /** + * Размер скидки: от 3 до 99 процентов. + * + * @type {number} + * @memberof V1ProductUpdateDiscountRequest + */ + discount: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1ProductUpdateDiscountRequest + */ + product_id: number; +} +/** + * Check if a given object implements the V1ProductUpdateDiscountRequest interface. + */ +export declare function instanceOfV1ProductUpdateDiscountRequest(value: object): value is V1ProductUpdateDiscountRequest; +export declare function V1ProductUpdateDiscountRequestFromJSON(json: any): V1ProductUpdateDiscountRequest; +export declare function V1ProductUpdateDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateDiscountRequest; +export declare function V1ProductUpdateDiscountRequestToJSON(value?: V1ProductUpdateDiscountRequest | null): any; diff --git a/dist/esm/models/V1ProductUpdateDiscountRequest.js b/dist/esm/models/V1ProductUpdateDiscountRequest.js new file mode 100644 index 0000000..d05bd3c --- /dev/null +++ b/dist/esm/models/V1ProductUpdateDiscountRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductUpdateDiscountRequest interface. + */ +export function instanceOfV1ProductUpdateDiscountRequest(value) { + if (!('discount' in value) || value['discount'] === undefined) + return false; + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function V1ProductUpdateDiscountRequestFromJSON(json) { + return V1ProductUpdateDiscountRequestFromJSONTyped(json, false); +} +export function V1ProductUpdateDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount': json['discount'], + 'product_id': json['product_id'], + }; +} +export function V1ProductUpdateDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount': value['discount'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V1ProductUpdateDiscountResponse.d.ts b/dist/esm/models/V1ProductUpdateDiscountResponse.d.ts new file mode 100644 index 0000000..6bda4fb --- /dev/null +++ b/dist/esm/models/V1ProductUpdateDiscountResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateDiscountResponse + */ +export interface V1ProductUpdateDiscountResponse { + /** + * Результат работы метода. `true`, если запрос выполнен без ошибок. + * @type {boolean} + * @memberof V1ProductUpdateDiscountResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the V1ProductUpdateDiscountResponse interface. + */ +export declare function instanceOfV1ProductUpdateDiscountResponse(value: object): value is V1ProductUpdateDiscountResponse; +export declare function V1ProductUpdateDiscountResponseFromJSON(json: any): V1ProductUpdateDiscountResponse; +export declare function V1ProductUpdateDiscountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateDiscountResponse; +export declare function V1ProductUpdateDiscountResponseToJSON(value?: V1ProductUpdateDiscountResponse | null): any; diff --git a/dist/esm/models/V1ProductUpdateDiscountResponse.js b/dist/esm/models/V1ProductUpdateDiscountResponse.js new file mode 100644 index 0000000..16ec70c --- /dev/null +++ b/dist/esm/models/V1ProductUpdateDiscountResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductUpdateDiscountResponse interface. + */ +export function instanceOfV1ProductUpdateDiscountResponse(value) { + return true; +} +export function V1ProductUpdateDiscountResponseFromJSON(json) { + return V1ProductUpdateDiscountResponseFromJSONTyped(json, false); +} +export function V1ProductUpdateDiscountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function V1ProductUpdateDiscountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/V1ProductUpdateOfferIdRequest.d.ts b/dist/esm/models/V1ProductUpdateOfferIdRequest.d.ts new file mode 100644 index 0000000..f4e4381 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateOfferIdRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductUpdateOfferIdRequestUpdateOfferId } from './ProductUpdateOfferIdRequestUpdateOfferId'; +/** + * + * @export + * @interface V1ProductUpdateOfferIdRequest + */ +export interface V1ProductUpdateOfferIdRequest { + /** + * Список пар с новыми и старыми значениями артикулов. + * @type {Array} + * @memberof V1ProductUpdateOfferIdRequest + */ + update_offer_id: Array; +} +/** + * Check if a given object implements the V1ProductUpdateOfferIdRequest interface. + */ +export declare function instanceOfV1ProductUpdateOfferIdRequest(value: object): value is V1ProductUpdateOfferIdRequest; +export declare function V1ProductUpdateOfferIdRequestFromJSON(json: any): V1ProductUpdateOfferIdRequest; +export declare function V1ProductUpdateOfferIdRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateOfferIdRequest; +export declare function V1ProductUpdateOfferIdRequestToJSON(value?: V1ProductUpdateOfferIdRequest | null): any; diff --git a/dist/esm/models/V1ProductUpdateOfferIdRequest.js b/dist/esm/models/V1ProductUpdateOfferIdRequest.js new file mode 100644 index 0000000..6c0d473 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateOfferIdRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductUpdateOfferIdRequestUpdateOfferIdFromJSON, ProductUpdateOfferIdRequestUpdateOfferIdToJSON, } from './ProductUpdateOfferIdRequestUpdateOfferId'; +/** + * Check if a given object implements the V1ProductUpdateOfferIdRequest interface. + */ +export function instanceOfV1ProductUpdateOfferIdRequest(value) { + if (!('update_offer_id' in value) || value['update_offer_id'] === undefined) + return false; + return true; +} +export function V1ProductUpdateOfferIdRequestFromJSON(json) { + return V1ProductUpdateOfferIdRequestFromJSONTyped(json, false); +} +export function V1ProductUpdateOfferIdRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'update_offer_id': (json['update_offer_id'].map(ProductUpdateOfferIdRequestUpdateOfferIdFromJSON)), + }; +} +export function V1ProductUpdateOfferIdRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'update_offer_id': (value['update_offer_id'].map(ProductUpdateOfferIdRequestUpdateOfferIdToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductUpdateOfferIdResponse.d.ts b/dist/esm/models/V1ProductUpdateOfferIdResponse.d.ts new file mode 100644 index 0000000..ce9600a --- /dev/null +++ b/dist/esm/models/V1ProductUpdateOfferIdResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductUpdateOfferIdResponseError } from './V1ProductUpdateOfferIdResponseError'; +/** + * + * @export + * @interface V1ProductUpdateOfferIdResponse + */ +export interface V1ProductUpdateOfferIdResponse { + /** + * Список ошибок. + * @type {Array} + * @memberof V1ProductUpdateOfferIdResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1ProductUpdateOfferIdResponse interface. + */ +export declare function instanceOfV1ProductUpdateOfferIdResponse(value: object): value is V1ProductUpdateOfferIdResponse; +export declare function V1ProductUpdateOfferIdResponseFromJSON(json: any): V1ProductUpdateOfferIdResponse; +export declare function V1ProductUpdateOfferIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateOfferIdResponse; +export declare function V1ProductUpdateOfferIdResponseToJSON(value?: V1ProductUpdateOfferIdResponse | null): any; diff --git a/dist/esm/models/V1ProductUpdateOfferIdResponse.js b/dist/esm/models/V1ProductUpdateOfferIdResponse.js new file mode 100644 index 0000000..53f5cea --- /dev/null +++ b/dist/esm/models/V1ProductUpdateOfferIdResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ProductUpdateOfferIdResponseErrorFromJSON, V1ProductUpdateOfferIdResponseErrorToJSON, } from './V1ProductUpdateOfferIdResponseError'; +/** + * Check if a given object implements the V1ProductUpdateOfferIdResponse interface. + */ +export function instanceOfV1ProductUpdateOfferIdResponse(value) { + return true; +} +export function V1ProductUpdateOfferIdResponseFromJSON(json) { + return V1ProductUpdateOfferIdResponseFromJSONTyped(json, false); +} +export function V1ProductUpdateOfferIdResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1ProductUpdateOfferIdResponseErrorFromJSON)), + }; +} +export function V1ProductUpdateOfferIdResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1ProductUpdateOfferIdResponseErrorToJSON)), + }; +} diff --git a/dist/esm/models/V1ProductUpdateOfferIdResponseError.d.ts b/dist/esm/models/V1ProductUpdateOfferIdResponseError.d.ts new file mode 100644 index 0000000..86bd568 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateOfferIdResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateOfferIdResponseError + */ +export interface V1ProductUpdateOfferIdResponseError { + /** + * Сообщение об ошибке. + * @type {string} + * @memberof V1ProductUpdateOfferIdResponseError + */ + message?: string; + /** + * Артикул товара, который не получилось изменить. + * @type {string} + * @memberof V1ProductUpdateOfferIdResponseError + */ + offer_id?: string; +} +/** + * Check if a given object implements the V1ProductUpdateOfferIdResponseError interface. + */ +export declare function instanceOfV1ProductUpdateOfferIdResponseError(value: object): value is V1ProductUpdateOfferIdResponseError; +export declare function V1ProductUpdateOfferIdResponseErrorFromJSON(json: any): V1ProductUpdateOfferIdResponseError; +export declare function V1ProductUpdateOfferIdResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateOfferIdResponseError; +export declare function V1ProductUpdateOfferIdResponseErrorToJSON(value?: V1ProductUpdateOfferIdResponseError | null): any; diff --git a/dist/esm/models/V1ProductUpdateOfferIdResponseError.js b/dist/esm/models/V1ProductUpdateOfferIdResponseError.js new file mode 100644 index 0000000..2554513 --- /dev/null +++ b/dist/esm/models/V1ProductUpdateOfferIdResponseError.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ProductUpdateOfferIdResponseError interface. + */ +export function instanceOfV1ProductUpdateOfferIdResponseError(value) { + return true; +} +export function V1ProductUpdateOfferIdResponseErrorFromJSON(json) { + return V1ProductUpdateOfferIdResponseErrorFromJSONTyped(json, false); +} +export function V1ProductUpdateOfferIdResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + }; +} +export function V1ProductUpdateOfferIdResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/esm/models/V1QuestionAnswerCreateDefault.d.ts b/dist/esm/models/V1QuestionAnswerCreateDefault.d.ts new file mode 100644 index 0000000..0160739 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerCreateDefault.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerCreateDefault + */ +export interface V1QuestionAnswerCreateDefault { + /** + * Код ошибки. + * @type {number} + * @memberof V1QuestionAnswerCreateDefault + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {string} + * @memberof V1QuestionAnswerCreateDefault + */ + details?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1QuestionAnswerCreateDefault + */ + message?: string; +} +/** + * Check if a given object implements the V1QuestionAnswerCreateDefault interface. + */ +export declare function instanceOfV1QuestionAnswerCreateDefault(value: object): value is V1QuestionAnswerCreateDefault; +export declare function V1QuestionAnswerCreateDefaultFromJSON(json: any): V1QuestionAnswerCreateDefault; +export declare function V1QuestionAnswerCreateDefaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerCreateDefault; +export declare function V1QuestionAnswerCreateDefaultToJSON(value?: V1QuestionAnswerCreateDefault | null): any; diff --git a/dist/esm/models/V1QuestionAnswerCreateDefault.js b/dist/esm/models/V1QuestionAnswerCreateDefault.js new file mode 100644 index 0000000..27bdc88 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerCreateDefault.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionAnswerCreateDefault interface. + */ +export function instanceOfV1QuestionAnswerCreateDefault(value) { + return true; +} +export function V1QuestionAnswerCreateDefaultFromJSON(json) { + return V1QuestionAnswerCreateDefaultFromJSONTyped(json, false); +} +export function V1QuestionAnswerCreateDefaultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : json['details'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +export function V1QuestionAnswerCreateDefaultToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'], + 'message': value['message'], + }; +} diff --git a/dist/esm/models/V1QuestionAnswerCreateRequest.d.ts b/dist/esm/models/V1QuestionAnswerCreateRequest.d.ts new file mode 100644 index 0000000..acf229c --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerCreateRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerCreateRequest + */ +export interface V1QuestionAnswerCreateRequest { + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionAnswerCreateRequest + */ + question_id: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionAnswerCreateRequest + */ + sku: number; + /** + * Текст ответа объёмом от 2 до 3000 символов. + * @type {string} + * @memberof V1QuestionAnswerCreateRequest + */ + text: string; +} +/** + * Check if a given object implements the V1QuestionAnswerCreateRequest interface. + */ +export declare function instanceOfV1QuestionAnswerCreateRequest(value: object): value is V1QuestionAnswerCreateRequest; +export declare function V1QuestionAnswerCreateRequestFromJSON(json: any): V1QuestionAnswerCreateRequest; +export declare function V1QuestionAnswerCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerCreateRequest; +export declare function V1QuestionAnswerCreateRequestToJSON(value?: V1QuestionAnswerCreateRequest | null): any; diff --git a/dist/esm/models/V1QuestionAnswerCreateRequest.js b/dist/esm/models/V1QuestionAnswerCreateRequest.js new file mode 100644 index 0000000..75c6f46 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerCreateRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionAnswerCreateRequest interface. + */ +export function instanceOfV1QuestionAnswerCreateRequest(value) { + if (!('question_id' in value) || value['question_id'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + return true; +} +export function V1QuestionAnswerCreateRequestFromJSON(json) { + return V1QuestionAnswerCreateRequestFromJSONTyped(json, false); +} +export function V1QuestionAnswerCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'question_id': json['question_id'], + 'sku': json['sku'], + 'text': json['text'], + }; +} +export function V1QuestionAnswerCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'question_id': value['question_id'], + 'sku': value['sku'], + 'text': value['text'], + }; +} diff --git a/dist/esm/models/V1QuestionAnswerCreateResponse.d.ts b/dist/esm/models/V1QuestionAnswerCreateResponse.d.ts new file mode 100644 index 0000000..bd57992 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerCreateResponse + */ +export interface V1QuestionAnswerCreateResponse { + /** + * Идентификатор ответа на вопрос. + * @type {string} + * @memberof V1QuestionAnswerCreateResponse + */ + answer_id?: string; +} +/** + * Check if a given object implements the V1QuestionAnswerCreateResponse interface. + */ +export declare function instanceOfV1QuestionAnswerCreateResponse(value: object): value is V1QuestionAnswerCreateResponse; +export declare function V1QuestionAnswerCreateResponseFromJSON(json: any): V1QuestionAnswerCreateResponse; +export declare function V1QuestionAnswerCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerCreateResponse; +export declare function V1QuestionAnswerCreateResponseToJSON(value?: V1QuestionAnswerCreateResponse | null): any; diff --git a/dist/esm/models/V1QuestionAnswerCreateResponse.js b/dist/esm/models/V1QuestionAnswerCreateResponse.js new file mode 100644 index 0000000..bd63544 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionAnswerCreateResponse interface. + */ +export function instanceOfV1QuestionAnswerCreateResponse(value) { + return true; +} +export function V1QuestionAnswerCreateResponseFromJSON(json) { + return V1QuestionAnswerCreateResponseFromJSONTyped(json, false); +} +export function V1QuestionAnswerCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answer_id': json['answer_id'] == null ? undefined : json['answer_id'], + }; +} +export function V1QuestionAnswerCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'answer_id': value['answer_id'], + }; +} diff --git a/dist/esm/models/V1QuestionAnswerDeleteRequest.d.ts b/dist/esm/models/V1QuestionAnswerDeleteRequest.d.ts new file mode 100644 index 0000000..dd2730e --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerDeleteRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerDeleteRequest + */ +export interface V1QuestionAnswerDeleteRequest { + /** + * Идентификатор ответа. + * @type {string} + * @memberof V1QuestionAnswerDeleteRequest + */ + answer_id: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionAnswerDeleteRequest + */ + sku: number; +} +/** + * Check if a given object implements the V1QuestionAnswerDeleteRequest interface. + */ +export declare function instanceOfV1QuestionAnswerDeleteRequest(value: object): value is V1QuestionAnswerDeleteRequest; +export declare function V1QuestionAnswerDeleteRequestFromJSON(json: any): V1QuestionAnswerDeleteRequest; +export declare function V1QuestionAnswerDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerDeleteRequest; +export declare function V1QuestionAnswerDeleteRequestToJSON(value?: V1QuestionAnswerDeleteRequest | null): any; diff --git a/dist/esm/models/V1QuestionAnswerDeleteRequest.js b/dist/esm/models/V1QuestionAnswerDeleteRequest.js new file mode 100644 index 0000000..7ec95d4 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerDeleteRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionAnswerDeleteRequest interface. + */ +export function instanceOfV1QuestionAnswerDeleteRequest(value) { + if (!('answer_id' in value) || value['answer_id'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1QuestionAnswerDeleteRequestFromJSON(json) { + return V1QuestionAnswerDeleteRequestFromJSONTyped(json, false); +} +export function V1QuestionAnswerDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answer_id': json['answer_id'], + 'sku': json['sku'], + }; +} +export function V1QuestionAnswerDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'answer_id': value['answer_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1QuestionAnswerListRequest.d.ts b/dist/esm/models/V1QuestionAnswerListRequest.d.ts new file mode 100644 index 0000000..e75ec33 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerListRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerListRequest + */ +export interface V1QuestionAnswerListRequest { + /** + * Идентификатор последнего значения на странице. + * + * Если запрос первый, оставьте поле пустым. Для следующих значений указывайте `last_id` из ответа предыдущего запроса. + * + * @type {any} + * @memberof V1QuestionAnswerListRequest + */ + last_id?: any | null; + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionAnswerListRequest + */ + question_id: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionAnswerListRequest + */ + sku: number; +} +/** + * Check if a given object implements the V1QuestionAnswerListRequest interface. + */ +export declare function instanceOfV1QuestionAnswerListRequest(value: object): value is V1QuestionAnswerListRequest; +export declare function V1QuestionAnswerListRequestFromJSON(json: any): V1QuestionAnswerListRequest; +export declare function V1QuestionAnswerListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerListRequest; +export declare function V1QuestionAnswerListRequestToJSON(value?: V1QuestionAnswerListRequest | null): any; diff --git a/dist/esm/models/V1QuestionAnswerListRequest.js b/dist/esm/models/V1QuestionAnswerListRequest.js new file mode 100644 index 0000000..4d5b5e7 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerListRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionAnswerListRequest interface. + */ +export function instanceOfV1QuestionAnswerListRequest(value) { + if (!('question_id' in value) || value['question_id'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1QuestionAnswerListRequestFromJSON(json) { + return V1QuestionAnswerListRequestFromJSONTyped(json, false); +} +export function V1QuestionAnswerListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'question_id': json['question_id'], + 'sku': json['sku'], + }; +} +export function V1QuestionAnswerListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'question_id': value['question_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1QuestionAnswerListResponse.d.ts b/dist/esm/models/V1QuestionAnswerListResponse.d.ts new file mode 100644 index 0000000..871e839 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerListResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1QuestionAnswerListResponseAnswers } from './V1QuestionAnswerListResponseAnswers'; +/** + * + * @export + * @interface V1QuestionAnswerListResponse + */ +export interface V1QuestionAnswerListResponse { + /** + * Ответы. + * @type {Array} + * @memberof V1QuestionAnswerListResponse + */ + answers?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof V1QuestionAnswerListResponse + */ + last_id?: string; +} +/** + * Check if a given object implements the V1QuestionAnswerListResponse interface. + */ +export declare function instanceOfV1QuestionAnswerListResponse(value: object): value is V1QuestionAnswerListResponse; +export declare function V1QuestionAnswerListResponseFromJSON(json: any): V1QuestionAnswerListResponse; +export declare function V1QuestionAnswerListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerListResponse; +export declare function V1QuestionAnswerListResponseToJSON(value?: V1QuestionAnswerListResponse | null): any; diff --git a/dist/esm/models/V1QuestionAnswerListResponse.js b/dist/esm/models/V1QuestionAnswerListResponse.js new file mode 100644 index 0000000..0ba8b1d --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1QuestionAnswerListResponseAnswersFromJSON, V1QuestionAnswerListResponseAnswersToJSON, } from './V1QuestionAnswerListResponseAnswers'; +/** + * Check if a given object implements the V1QuestionAnswerListResponse interface. + */ +export function instanceOfV1QuestionAnswerListResponse(value) { + return true; +} +export function V1QuestionAnswerListResponseFromJSON(json) { + return V1QuestionAnswerListResponseFromJSONTyped(json, false); +} +export function V1QuestionAnswerListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answers': json['answers'] == null ? undefined : (json['answers'].map(V1QuestionAnswerListResponseAnswersFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +export function V1QuestionAnswerListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'answers': value['answers'] == null ? undefined : (value['answers'].map(V1QuestionAnswerListResponseAnswersToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/esm/models/V1QuestionAnswerListResponseAnswers.d.ts b/dist/esm/models/V1QuestionAnswerListResponseAnswers.d.ts new file mode 100644 index 0000000..d485dc8 --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerListResponseAnswers.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum } from './QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum'; +/** + * + * @export + * @interface V1QuestionAnswerListResponseAnswers + */ +export interface V1QuestionAnswerListResponseAnswers { + /** + * Автор ответа. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + author_name?: string; + /** + * Идентификатор ответа. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + id?: string; + /** + * Дата публикации ответа. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + published_at?: string; + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + question_id?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionAnswerListResponseAnswers + */ + sku?: number; + /** + * + * @type {QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum} + * @memberof V1QuestionAnswerListResponseAnswers + */ + status_publication?: QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum; + /** + * Текст ответа. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + text?: string; +} +/** + * Check if a given object implements the V1QuestionAnswerListResponseAnswers interface. + */ +export declare function instanceOfV1QuestionAnswerListResponseAnswers(value: object): value is V1QuestionAnswerListResponseAnswers; +export declare function V1QuestionAnswerListResponseAnswersFromJSON(json: any): V1QuestionAnswerListResponseAnswers; +export declare function V1QuestionAnswerListResponseAnswersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerListResponseAnswers; +export declare function V1QuestionAnswerListResponseAnswersToJSON(value?: V1QuestionAnswerListResponseAnswers | null): any; diff --git a/dist/esm/models/V1QuestionAnswerListResponseAnswers.js b/dist/esm/models/V1QuestionAnswerListResponseAnswers.js new file mode 100644 index 0000000..ce444fe --- /dev/null +++ b/dist/esm/models/V1QuestionAnswerListResponseAnswers.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON, QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON, } from './QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum'; +/** + * Check if a given object implements the V1QuestionAnswerListResponseAnswers interface. + */ +export function instanceOfV1QuestionAnswerListResponseAnswers(value) { + return true; +} +export function V1QuestionAnswerListResponseAnswersFromJSON(json) { + return V1QuestionAnswerListResponseAnswersFromJSONTyped(json, false); +} +export function V1QuestionAnswerListResponseAnswersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'author_name': json['author_name'] == null ? undefined : json['author_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'question_id': json['question_id'] == null ? undefined : json['question_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status_publication': json['status_publication'] == null ? undefined : QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON(json['status_publication']), + 'text': json['text'] == null ? undefined : json['text'], + }; +} +export function V1QuestionAnswerListResponseAnswersToJSON(value) { + if (value == null) { + return value; + } + return { + 'author_name': value['author_name'], + 'id': value['id'], + 'published_at': value['published_at'], + 'question_id': value['question_id'], + 'sku': value['sku'], + 'status_publication': QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON(value['status_publication']), + 'text': value['text'], + }; +} diff --git a/dist/esm/models/V1QuestionChangeStatusRequest.d.ts b/dist/esm/models/V1QuestionChangeStatusRequest.d.ts new file mode 100644 index 0000000..2e8b3ae --- /dev/null +++ b/dist/esm/models/V1QuestionChangeStatusRequest.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionChangeStatusRequest + */ +export interface V1QuestionChangeStatusRequest { + /** + * Идентификаторы вопросов. + * @type {Array} + * @memberof V1QuestionChangeStatusRequest + */ + question_ids: Array; + /** + * Статусы вопросов: + * - `NEW` — новые, + * - `VIEWED` — просмотренные, + * - `PROCESSED` — обработанные. + * + * @type {string} + * @memberof V1QuestionChangeStatusRequest + */ + status: string; +} +/** + * Check if a given object implements the V1QuestionChangeStatusRequest interface. + */ +export declare function instanceOfV1QuestionChangeStatusRequest(value: object): value is V1QuestionChangeStatusRequest; +export declare function V1QuestionChangeStatusRequestFromJSON(json: any): V1QuestionChangeStatusRequest; +export declare function V1QuestionChangeStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionChangeStatusRequest; +export declare function V1QuestionChangeStatusRequestToJSON(value?: V1QuestionChangeStatusRequest | null): any; diff --git a/dist/esm/models/V1QuestionChangeStatusRequest.js b/dist/esm/models/V1QuestionChangeStatusRequest.js new file mode 100644 index 0000000..6d907c6 --- /dev/null +++ b/dist/esm/models/V1QuestionChangeStatusRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionChangeStatusRequest interface. + */ +export function instanceOfV1QuestionChangeStatusRequest(value) { + if (!('question_ids' in value) || value['question_ids'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +export function V1QuestionChangeStatusRequestFromJSON(json) { + return V1QuestionChangeStatusRequestFromJSONTyped(json, false); +} +export function V1QuestionChangeStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'question_ids': json['question_ids'], + 'status': json['status'], + }; +} +export function V1QuestionChangeStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'question_ids': value['question_ids'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V1QuestionCountResponse.d.ts b/dist/esm/models/V1QuestionCountResponse.d.ts new file mode 100644 index 0000000..50ad435 --- /dev/null +++ b/dist/esm/models/V1QuestionCountResponse.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionCountResponse + */ +export interface V1QuestionCountResponse { + /** + * Всего вопросов. + * @type {number} + * @memberof V1QuestionCountResponse + */ + all?: number; + /** + * Новые вопросы. + * @type {number} + * @memberof V1QuestionCountResponse + */ + _new?: number; + /** + * Обработанные вопросы. + * @type {number} + * @memberof V1QuestionCountResponse + */ + processed?: number; + /** + * Необработанные вопросы. + * @type {number} + * @memberof V1QuestionCountResponse + */ + unprocessed?: number; + /** + * Просмотренные вопросы. + * @type {number} + * @memberof V1QuestionCountResponse + */ + viewed?: number; +} +/** + * Check if a given object implements the V1QuestionCountResponse interface. + */ +export declare function instanceOfV1QuestionCountResponse(value: object): value is V1QuestionCountResponse; +export declare function V1QuestionCountResponseFromJSON(json: any): V1QuestionCountResponse; +export declare function V1QuestionCountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionCountResponse; +export declare function V1QuestionCountResponseToJSON(value?: V1QuestionCountResponse | null): any; diff --git a/dist/esm/models/V1QuestionCountResponse.js b/dist/esm/models/V1QuestionCountResponse.js new file mode 100644 index 0000000..1bc6937 --- /dev/null +++ b/dist/esm/models/V1QuestionCountResponse.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionCountResponse interface. + */ +export function instanceOfV1QuestionCountResponse(value) { + return true; +} +export function V1QuestionCountResponseFromJSON(json) { + return V1QuestionCountResponseFromJSONTyped(json, false); +} +export function V1QuestionCountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'all': json['all'] == null ? undefined : json['all'], + '_new': json['new'] == null ? undefined : json['new'], + 'processed': json['processed'] == null ? undefined : json['processed'], + 'unprocessed': json['unprocessed'] == null ? undefined : json['unprocessed'], + 'viewed': json['viewed'] == null ? undefined : json['viewed'], + }; +} +export function V1QuestionCountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'all': value['all'], + 'new': value['_new'], + 'processed': value['processed'], + 'unprocessed': value['unprocessed'], + 'viewed': value['viewed'], + }; +} diff --git a/dist/esm/models/V1QuestionInfoRequest.d.ts b/dist/esm/models/V1QuestionInfoRequest.d.ts new file mode 100644 index 0000000..500df3c --- /dev/null +++ b/dist/esm/models/V1QuestionInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionInfoRequest + */ +export interface V1QuestionInfoRequest { + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionInfoRequest + */ + question_id: string; +} +/** + * Check if a given object implements the V1QuestionInfoRequest interface. + */ +export declare function instanceOfV1QuestionInfoRequest(value: object): value is V1QuestionInfoRequest; +export declare function V1QuestionInfoRequestFromJSON(json: any): V1QuestionInfoRequest; +export declare function V1QuestionInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionInfoRequest; +export declare function V1QuestionInfoRequestToJSON(value?: V1QuestionInfoRequest | null): any; diff --git a/dist/esm/models/V1QuestionInfoRequest.js b/dist/esm/models/V1QuestionInfoRequest.js new file mode 100644 index 0000000..d486ad2 --- /dev/null +++ b/dist/esm/models/V1QuestionInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionInfoRequest interface. + */ +export function instanceOfV1QuestionInfoRequest(value) { + if (!('question_id' in value) || value['question_id'] === undefined) + return false; + return true; +} +export function V1QuestionInfoRequestFromJSON(json) { + return V1QuestionInfoRequestFromJSONTyped(json, false); +} +export function V1QuestionInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'question_id': json['question_id'], + }; +} +export function V1QuestionInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'question_id': value['question_id'], + }; +} diff --git a/dist/esm/models/V1QuestionInfoResponse.d.ts b/dist/esm/models/V1QuestionInfoResponse.d.ts new file mode 100644 index 0000000..2f8662c --- /dev/null +++ b/dist/esm/models/V1QuestionInfoResponse.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionInfoResponse + */ +export interface V1QuestionInfoResponse { + /** + * Количество ответов на вопрос. + * @type {number} + * @memberof V1QuestionInfoResponse + */ + answers_count?: number; + /** + * Автор вопроса. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + author_name?: string; + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + id?: string; + /** + * Ссылка на товар. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + product_url?: string; + /** + * Дата публикации вопроса. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + published_at?: string; + /** + * Ссылка на вопрос. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + question_link?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionInfoResponse + */ + sku?: number; + /** + * Статус вопроса: + * - `NEW` — новый, + * - `ALL` — все вопросы, + * - `VIEWED` — просмотренный, + * - `PROCESSED` — обработанный, + * - `UNPROCESSED` — необработанный. + * + * @type {string} + * @memberof V1QuestionInfoResponse + */ + status?: string; + /** + * Текст вопроса. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + text?: string; +} +/** + * Check if a given object implements the V1QuestionInfoResponse interface. + */ +export declare function instanceOfV1QuestionInfoResponse(value: object): value is V1QuestionInfoResponse; +export declare function V1QuestionInfoResponseFromJSON(json: any): V1QuestionInfoResponse; +export declare function V1QuestionInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionInfoResponse; +export declare function V1QuestionInfoResponseToJSON(value?: V1QuestionInfoResponse | null): any; diff --git a/dist/esm/models/V1QuestionInfoResponse.js b/dist/esm/models/V1QuestionInfoResponse.js new file mode 100644 index 0000000..d04f241 --- /dev/null +++ b/dist/esm/models/V1QuestionInfoResponse.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionInfoResponse interface. + */ +export function instanceOfV1QuestionInfoResponse(value) { + return true; +} +export function V1QuestionInfoResponseFromJSON(json) { + return V1QuestionInfoResponseFromJSONTyped(json, false); +} +export function V1QuestionInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answers_count': json['answers_count'] == null ? undefined : json['answers_count'], + 'author_name': json['author_name'] == null ? undefined : json['author_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'product_url': json['product_url'] == null ? undefined : json['product_url'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'question_link': json['question_link'] == null ? undefined : json['question_link'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : json['status'], + 'text': json['text'] == null ? undefined : json['text'], + }; +} +export function V1QuestionInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'answers_count': value['answers_count'], + 'author_name': value['author_name'], + 'id': value['id'], + 'product_url': value['product_url'], + 'published_at': value['published_at'], + 'question_link': value['question_link'], + 'sku': value['sku'], + 'status': value['status'], + 'text': value['text'], + }; +} diff --git a/dist/esm/models/V1QuestionListRequest.d.ts b/dist/esm/models/V1QuestionListRequest.d.ts new file mode 100644 index 0000000..81dec33 --- /dev/null +++ b/dist/esm/models/V1QuestionListRequest.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { QuestionV1GetQuestionListRequestSortDirEnum } from './QuestionV1GetQuestionListRequestSortDirEnum'; +import type { V1QuestionListRequestFilter } from './V1QuestionListRequestFilter'; +/** + * + * @export + * @interface V1QuestionListRequest + */ +export interface V1QuestionListRequest { + /** + * + * @type {V1QuestionListRequestFilter} + * @memberof V1QuestionListRequest + */ + filter?: V1QuestionListRequestFilter; + /** + * Идентификатор последнего значения на странице. + * + * Оставьте это поле пустым при выполнении первого запроса. Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof V1QuestionListRequest + */ + last_id?: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1QuestionListRequest + */ + limit?: number; + /** + * + * @type {QuestionV1GetQuestionListRequestSortDirEnum} + * @memberof V1QuestionListRequest + */ + sort_dir?: QuestionV1GetQuestionListRequestSortDirEnum; +} +/** + * Check if a given object implements the V1QuestionListRequest interface. + */ +export declare function instanceOfV1QuestionListRequest(value: object): value is V1QuestionListRequest; +export declare function V1QuestionListRequestFromJSON(json: any): V1QuestionListRequest; +export declare function V1QuestionListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionListRequest; +export declare function V1QuestionListRequestToJSON(value?: V1QuestionListRequest | null): any; diff --git a/dist/esm/models/V1QuestionListRequest.js b/dist/esm/models/V1QuestionListRequest.js new file mode 100644 index 0000000..a9336ef --- /dev/null +++ b/dist/esm/models/V1QuestionListRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { QuestionV1GetQuestionListRequestSortDirEnumFromJSON, QuestionV1GetQuestionListRequestSortDirEnumToJSON, } from './QuestionV1GetQuestionListRequestSortDirEnum'; +import { V1QuestionListRequestFilterFromJSON, V1QuestionListRequestFilterToJSON, } from './V1QuestionListRequestFilter'; +/** + * Check if a given object implements the V1QuestionListRequest interface. + */ +export function instanceOfV1QuestionListRequest(value) { + return true; +} +export function V1QuestionListRequestFromJSON(json) { + return V1QuestionListRequestFromJSONTyped(json, false); +} +export function V1QuestionListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : V1QuestionListRequestFilterFromJSON(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : QuestionV1GetQuestionListRequestSortDirEnumFromJSON(json['sort_dir']), + }; +} +export function V1QuestionListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': V1QuestionListRequestFilterToJSON(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_dir': QuestionV1GetQuestionListRequestSortDirEnumToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/V1QuestionListRequestFilter.d.ts b/dist/esm/models/V1QuestionListRequestFilter.d.ts new file mode 100644 index 0000000..02da531 --- /dev/null +++ b/dist/esm/models/V1QuestionListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1QuestionListRequestFilter + */ +export interface V1QuestionListRequestFilter { + /** + * Начало периода. + * @type {string} + * @memberof V1QuestionListRequestFilter + */ + date_from?: string; + /** + * Конец периода. + * @type {string} + * @memberof V1QuestionListRequestFilter + */ + date_to?: string; + /** + * Статусы вопроса: + * - `NEW` — новый, + * - `ALL` — все вопросы, + * - `VIEWED` — просмотренный, + * - `PROCESSED` — обработанный, + * - `UNPROCESSED` — необработанный. + * + * @type {string} + * @memberof V1QuestionListRequestFilter + */ + status?: string; +} +/** + * Check if a given object implements the V1QuestionListRequestFilter interface. + */ +export declare function instanceOfV1QuestionListRequestFilter(value: object): value is V1QuestionListRequestFilter; +export declare function V1QuestionListRequestFilterFromJSON(json: any): V1QuestionListRequestFilter; +export declare function V1QuestionListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionListRequestFilter; +export declare function V1QuestionListRequestFilterToJSON(value?: V1QuestionListRequestFilter | null): any; diff --git a/dist/esm/models/V1QuestionListRequestFilter.js b/dist/esm/models/V1QuestionListRequestFilter.js new file mode 100644 index 0000000..98a9aff --- /dev/null +++ b/dist/esm/models/V1QuestionListRequestFilter.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionListRequestFilter interface. + */ +export function instanceOfV1QuestionListRequestFilter(value) { + return true; +} +export function V1QuestionListRequestFilterFromJSON(json) { + return V1QuestionListRequestFilterFromJSONTyped(json, false); +} +export function V1QuestionListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V1QuestionListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V1QuestionListResponse.d.ts b/dist/esm/models/V1QuestionListResponse.d.ts new file mode 100644 index 0000000..09a1055 --- /dev/null +++ b/dist/esm/models/V1QuestionListResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1QuestionListResponseQuestions } from './V1QuestionListResponseQuestions'; +/** + * + * @export + * @interface V1QuestionListResponse + */ +export interface V1QuestionListResponse { + /** + * Вопросы. + * @type {Array} + * @memberof V1QuestionListResponse + */ + questions?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof V1QuestionListResponse + */ + last_id?: string; + /** + * `true`, если в ответе вернулись не все вопросы. + * + * @type {boolean} + * @memberof V1QuestionListResponse + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V1QuestionListResponse interface. + */ +export declare function instanceOfV1QuestionListResponse(value: object): value is V1QuestionListResponse; +export declare function V1QuestionListResponseFromJSON(json: any): V1QuestionListResponse; +export declare function V1QuestionListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionListResponse; +export declare function V1QuestionListResponseToJSON(value?: V1QuestionListResponse | null): any; diff --git a/dist/esm/models/V1QuestionListResponse.js b/dist/esm/models/V1QuestionListResponse.js new file mode 100644 index 0000000..3e3c191 --- /dev/null +++ b/dist/esm/models/V1QuestionListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1QuestionListResponseQuestionsFromJSON, V1QuestionListResponseQuestionsToJSON, } from './V1QuestionListResponseQuestions'; +/** + * Check if a given object implements the V1QuestionListResponse interface. + */ +export function instanceOfV1QuestionListResponse(value) { + return true; +} +export function V1QuestionListResponseFromJSON(json) { + return V1QuestionListResponseFromJSONTyped(json, false); +} +export function V1QuestionListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'questions': json['questions'] == null ? undefined : (json['questions'].map(V1QuestionListResponseQuestionsFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +export function V1QuestionListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'questions': value['questions'] == null ? undefined : (value['questions'].map(V1QuestionListResponseQuestionsToJSON)), + 'last_id': value['last_id'], + 'has_next': value['has_next'], + }; +} diff --git a/dist/esm/models/V1QuestionListResponseQuestions.d.ts b/dist/esm/models/V1QuestionListResponseQuestions.d.ts new file mode 100644 index 0000000..4887066 --- /dev/null +++ b/dist/esm/models/V1QuestionListResponseQuestions.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionListResponseQuestions + */ +export interface V1QuestionListResponseQuestions { + /** + * Количество ответов на вопрос. + * @type {number} + * @memberof V1QuestionListResponseQuestions + */ + answers_count?: number; + /** + * Имя автора вопроса. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + author_name?: string; + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + id?: string; + /** + * Ссылка на товар. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + product_url?: string; + /** + * Дата публикации вопроса. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + published_at?: string; + /** + * Ссылка на вопрос. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + question_link?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionListResponseQuestions + */ + sku?: number; + /** + * Статусы вопроса: + * - `NEW` — новый, + * - `ALL` — все вопросы, + * - `VIEWED` — просмотренный, + * - `PROCESSED` — обработанный, + * - `UNPROCESSED` — необработанный. + * + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + status?: string; + /** + * Текст вопроса. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + text?: string; +} +/** + * Check if a given object implements the V1QuestionListResponseQuestions interface. + */ +export declare function instanceOfV1QuestionListResponseQuestions(value: object): value is V1QuestionListResponseQuestions; +export declare function V1QuestionListResponseQuestionsFromJSON(json: any): V1QuestionListResponseQuestions; +export declare function V1QuestionListResponseQuestionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionListResponseQuestions; +export declare function V1QuestionListResponseQuestionsToJSON(value?: V1QuestionListResponseQuestions | null): any; diff --git a/dist/esm/models/V1QuestionListResponseQuestions.js b/dist/esm/models/V1QuestionListResponseQuestions.js new file mode 100644 index 0000000..6fd4709 --- /dev/null +++ b/dist/esm/models/V1QuestionListResponseQuestions.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionListResponseQuestions interface. + */ +export function instanceOfV1QuestionListResponseQuestions(value) { + return true; +} +export function V1QuestionListResponseQuestionsFromJSON(json) { + return V1QuestionListResponseQuestionsFromJSONTyped(json, false); +} +export function V1QuestionListResponseQuestionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answers_count': json['answers_count'] == null ? undefined : json['answers_count'], + 'author_name': json['author_name'] == null ? undefined : json['author_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'product_url': json['product_url'] == null ? undefined : json['product_url'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'question_link': json['question_link'] == null ? undefined : json['question_link'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : json['status'], + 'text': json['text'] == null ? undefined : json['text'], + }; +} +export function V1QuestionListResponseQuestionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'answers_count': value['answers_count'], + 'author_name': value['author_name'], + 'id': value['id'], + 'product_url': value['product_url'], + 'published_at': value['published_at'], + 'question_link': value['question_link'], + 'sku': value['sku'], + 'status': value['status'], + 'text': value['text'], + }; +} diff --git a/dist/esm/models/V1QuestionTopSkuRequest.d.ts b/dist/esm/models/V1QuestionTopSkuRequest.d.ts new file mode 100644 index 0000000..26479b1 --- /dev/null +++ b/dist/esm/models/V1QuestionTopSkuRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionTopSkuRequest + */ +export interface V1QuestionTopSkuRequest { + /** + * Количество значений в ответе. + * + * @type {number} + * @memberof V1QuestionTopSkuRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1QuestionTopSkuRequest interface. + */ +export declare function instanceOfV1QuestionTopSkuRequest(value: object): value is V1QuestionTopSkuRequest; +export declare function V1QuestionTopSkuRequestFromJSON(json: any): V1QuestionTopSkuRequest; +export declare function V1QuestionTopSkuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionTopSkuRequest; +export declare function V1QuestionTopSkuRequestToJSON(value?: V1QuestionTopSkuRequest | null): any; diff --git a/dist/esm/models/V1QuestionTopSkuRequest.js b/dist/esm/models/V1QuestionTopSkuRequest.js new file mode 100644 index 0000000..9d7abd8 --- /dev/null +++ b/dist/esm/models/V1QuestionTopSkuRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionTopSkuRequest interface. + */ +export function instanceOfV1QuestionTopSkuRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1QuestionTopSkuRequestFromJSON(json) { + return V1QuestionTopSkuRequestFromJSONTyped(json, false); +} +export function V1QuestionTopSkuRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + }; +} +export function V1QuestionTopSkuRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1QuestionTopSkuResponse.d.ts b/dist/esm/models/V1QuestionTopSkuResponse.d.ts new file mode 100644 index 0000000..afd7fc0 --- /dev/null +++ b/dist/esm/models/V1QuestionTopSkuResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionTopSkuResponse + */ +export interface V1QuestionTopSkuResponse { + /** + * Список идентификаторов товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1QuestionTopSkuResponse + */ + sku?: Array; +} +/** + * Check if a given object implements the V1QuestionTopSkuResponse interface. + */ +export declare function instanceOfV1QuestionTopSkuResponse(value: object): value is V1QuestionTopSkuResponse; +export declare function V1QuestionTopSkuResponseFromJSON(json: any): V1QuestionTopSkuResponse; +export declare function V1QuestionTopSkuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionTopSkuResponse; +export declare function V1QuestionTopSkuResponseToJSON(value?: V1QuestionTopSkuResponse | null): any; diff --git a/dist/esm/models/V1QuestionTopSkuResponse.js b/dist/esm/models/V1QuestionTopSkuResponse.js new file mode 100644 index 0000000..5d16e68 --- /dev/null +++ b/dist/esm/models/V1QuestionTopSkuResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1QuestionTopSkuResponse interface. + */ +export function instanceOfV1QuestionTopSkuResponse(value) { + return true; +} +export function V1QuestionTopSkuResponseFromJSON(json) { + return V1QuestionTopSkuResponseFromJSONTyped(json, false); +} +export function V1QuestionTopSkuResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1QuestionTopSkuResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1Rating.d.ts b/dist/esm/models/V1Rating.d.ts new file mode 100644 index 0000000..f342418 --- /dev/null +++ b/dist/esm/models/V1Rating.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RatingValue } from './RatingValue'; +/** + * + * @export + * @interface V1Rating + */ +export interface V1Rating { + /** + * Пороговое значение рейтинга, после которого продажи будут заблокированы. + * @type {number} + * @memberof V1Rating + */ + danger_threshold?: number; + /** + * Пороговое значение рейтинга для участия в Premium-программе. + * @type {number} + * @memberof V1Rating + */ + premium_threshold?: number; + /** + * Системное название рейтинга. + * @type {string} + * @memberof V1Rating + */ + rating?: string; + /** + * Список значений рейтинга. + * @type {Array} + * @memberof V1Rating + */ + values?: Array; + /** + * Пороговое значение рейтинга, после которого появится предупреждение о возможной блокировке. + * @type {number} + * @memberof V1Rating + */ + warning_threshold?: number; +} +/** + * Check if a given object implements the V1Rating interface. + */ +export declare function instanceOfV1Rating(value: object): value is V1Rating; +export declare function V1RatingFromJSON(json: any): V1Rating; +export declare function V1RatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Rating; +export declare function V1RatingToJSON(value?: V1Rating | null): any; diff --git a/dist/esm/models/V1Rating.js b/dist/esm/models/V1Rating.js new file mode 100644 index 0000000..de6410c --- /dev/null +++ b/dist/esm/models/V1Rating.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RatingValueFromJSON, RatingValueToJSON, } from './RatingValue'; +/** + * Check if a given object implements the V1Rating interface. + */ +export function instanceOfV1Rating(value) { + return true; +} +export function V1RatingFromJSON(json) { + return V1RatingFromJSONTyped(json, false); +} +export function V1RatingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'danger_threshold': json['danger_threshold'] == null ? undefined : json['danger_threshold'], + 'premium_threshold': json['premium_threshold'] == null ? undefined : json['premium_threshold'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'values': json['values'] == null ? undefined : (json['values'].map(RatingValueFromJSON)), + 'warning_threshold': json['warning_threshold'] == null ? undefined : json['warning_threshold'], + }; +} +export function V1RatingToJSON(value) { + if (value == null) { + return value; + } + return { + 'danger_threshold': value['danger_threshold'], + 'premium_threshold': value['premium_threshold'], + 'rating': value['rating'], + 'values': value['values'] == null ? undefined : (value['values'].map(RatingValueToJSON)), + 'warning_threshold': value['warning_threshold'], + }; +} diff --git a/dist/esm/models/V1RatingHistoryV1Request.d.ts b/dist/esm/models/V1RatingHistoryV1Request.d.ts new file mode 100644 index 0000000..d5d6732 --- /dev/null +++ b/dist/esm/models/V1RatingHistoryV1Request.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1RatingHistoryV1Request + */ +export interface V1RatingHistoryV1Request { + /** + * Начало периода. + * @type {string} + * @memberof V1RatingHistoryV1Request + */ + date_from: string; + /** + * Конец периода. + * @type {string} + * @memberof V1RatingHistoryV1Request + */ + date_to: string; + /** + * Фильтр по рейтингу. + * + * Рейтинги, по которым нужно получить значение за период: + * + * - `rating_on_time` — процент заказов, выполненных вовремя за последние 30 дней. + * - `rating_review_avg_score_total` — средняя оценка всех товаров. + * - `rating_ssl` — оценка работы по FBO. Учитывает `rating_on_time_supply_delivery`, `rating_on_time_supply_cancellation` и `rating_order_accuracy`. + * - `rating_on_time_supply_delivery` — процент поставок, которые вы привезли на склад в выбранный временной интервал за последние 60 дней. + * - `rating_order_accuracy` — процент поставок без излишков, недостач, пересорта и брака за последние 60 дней. + * - `rating_on_time_supply_cancellation` — процент заявок на поставку, которые завершились или были отменены без опоздания за последние 60 дней. + * - `rating_reaction_time` — время в секундах, в течение которого покупатели в среднем ждали ответа на своё первое сообщение в чате за последние 30 дней. + * - `rating_average_response_time` — время в секундах, в течение которого покупатели в среднем ждали вашего ответа за последние 30 дней. + * - `rating_replied_dialogs_ratio` — доля диалогов хотя бы с одним вашим ответом в течение 24 часов за последние 30 дней. + * - `rating_general_indicator_fbs_rfbs` — индекс ошибок FBS и rFBS. + * - `rating_price_green` — выгодный индекс цен. + * - `rating_price_yellow` — умеренный индекс цен. + * - `rating_price_red` — невыгодный индекс цен. + * - `rating_price_super` — супер-выгодный индекс цен. + * + * Если вы хотите получить информацию по начисленным штрафным баллам для рейтингов `rating_on_time` и `rating_review_avg_score_total`, + * передайте значения нужных рейтингов в этом параметре и `with_premium_scores=true`. + * + * @type {Array} + * @memberof V1RatingHistoryV1Request + */ + ratings: Array; + /** + * Признак, что в ответе нужно вернуть информацию о штрафных баллах в Premium-программе. + * @type {boolean} + * @memberof V1RatingHistoryV1Request + */ + with_premium_scores?: boolean; +} +/** + * Check if a given object implements the V1RatingHistoryV1Request interface. + */ +export declare function instanceOfV1RatingHistoryV1Request(value: object): value is V1RatingHistoryV1Request; +export declare function V1RatingHistoryV1RequestFromJSON(json: any): V1RatingHistoryV1Request; +export declare function V1RatingHistoryV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingHistoryV1Request; +export declare function V1RatingHistoryV1RequestToJSON(value?: V1RatingHistoryV1Request | null): any; diff --git a/dist/esm/models/V1RatingHistoryV1Request.js b/dist/esm/models/V1RatingHistoryV1Request.js new file mode 100644 index 0000000..78fe13e --- /dev/null +++ b/dist/esm/models/V1RatingHistoryV1Request.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1RatingHistoryV1Request interface. + */ +export function instanceOfV1RatingHistoryV1Request(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('ratings' in value) || value['ratings'] === undefined) + return false; + return true; +} +export function V1RatingHistoryV1RequestFromJSON(json) { + return V1RatingHistoryV1RequestFromJSONTyped(json, false); +} +export function V1RatingHistoryV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'ratings': json['ratings'], + 'with_premium_scores': json['with_premium_scores'] == null ? undefined : json['with_premium_scores'], + }; +} +export function V1RatingHistoryV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'ratings': value['ratings'], + 'with_premium_scores': value['with_premium_scores'], + }; +} diff --git a/dist/esm/models/V1RatingHistoryV1Response.d.ts b/dist/esm/models/V1RatingHistoryV1Response.d.ts new file mode 100644 index 0000000..e963462 --- /dev/null +++ b/dist/esm/models/V1RatingHistoryV1Response.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Rating } from './V1Rating'; +import type { V1PremiumScores } from './V1PremiumScores'; +/** + * + * @export + * @interface V1RatingHistoryV1Response + */ +export interface V1RatingHistoryV1Response { + /** + * Информация о штрафных баллах в Premium-программе. + * @type {Array} + * @memberof V1RatingHistoryV1Response + */ + premium_scores?: Array; + /** + * Информация о рейтингах продавца. + * @type {Array} + * @memberof V1RatingHistoryV1Response + */ + ratings?: Array; +} +/** + * Check if a given object implements the V1RatingHistoryV1Response interface. + */ +export declare function instanceOfV1RatingHistoryV1Response(value: object): value is V1RatingHistoryV1Response; +export declare function V1RatingHistoryV1ResponseFromJSON(json: any): V1RatingHistoryV1Response; +export declare function V1RatingHistoryV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingHistoryV1Response; +export declare function V1RatingHistoryV1ResponseToJSON(value?: V1RatingHistoryV1Response | null): any; diff --git a/dist/esm/models/V1RatingHistoryV1Response.js b/dist/esm/models/V1RatingHistoryV1Response.js new file mode 100644 index 0000000..f77f574 --- /dev/null +++ b/dist/esm/models/V1RatingHistoryV1Response.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1RatingFromJSON, V1RatingToJSON, } from './V1Rating'; +import { V1PremiumScoresFromJSON, V1PremiumScoresToJSON, } from './V1PremiumScores'; +/** + * Check if a given object implements the V1RatingHistoryV1Response interface. + */ +export function instanceOfV1RatingHistoryV1Response(value) { + return true; +} +export function V1RatingHistoryV1ResponseFromJSON(json) { + return V1RatingHistoryV1ResponseFromJSONTyped(json, false); +} +export function V1RatingHistoryV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'premium_scores': json['premium_scores'] == null ? undefined : (json['premium_scores'].map(V1PremiumScoresFromJSON)), + 'ratings': json['ratings'] == null ? undefined : (json['ratings'].map(V1RatingFromJSON)), + }; +} +export function V1RatingHistoryV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'premium_scores': value['premium_scores'] == null ? undefined : (value['premium_scores'].map(V1PremiumScoresToJSON)), + 'ratings': value['ratings'] == null ? undefined : (value['ratings'].map(V1RatingToJSON)), + }; +} diff --git a/dist/esm/models/V1RatingItem.d.ts b/dist/esm/models/V1RatingItem.d.ts new file mode 100644 index 0000000..cd69ca0 --- /dev/null +++ b/dist/esm/models/V1RatingItem.d.ts @@ -0,0 +1,92 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RatingItemChange } from './RatingItemChange'; +/** + * + * @export + * @interface V1RatingItem + */ +export interface V1RatingItem { + /** + * + * @type {RatingItemChange} + * @memberof V1RatingItem + */ + change?: RatingItemChange; + /** + * Текущее значение рейтинга. + * @type {number} + * @memberof V1RatingItem + */ + current_value?: number; + /** + * Название рейтинга. + * @type {string} + * @memberof V1RatingItem + */ + name?: string; + /** + * Предыдущее значение рейтинга. + * @type {number} + * @memberof V1RatingItem + */ + past_value?: number; + /** + * Название рейтинга в системе. + * @type {string} + * @memberof V1RatingItem + */ + rating?: string; + /** + * Каким должно быть значение рейтинга, чтобы оно считалось хорошим: + * - `UNKNOWN_DIRECTION` — не определено. + * - `NEUTRAL` — неважно. + * - `HIGHER_IS_BETTER` — чем выше, тем лучше. + * - `LOWER_IS_BETTER` — чем ниже, тем лучше. + * + * @type {string} + * @memberof V1RatingItem + */ + rating_direction?: string; + /** + * Статус рейтинга: + * - `UNKNOWN_STATUS` — не определён. + * - `OK` — все хорошо. + * - `WARNING` — показатели требуют внимания. + * - `CRITICAL` — критичный рейтинг. + * + * @type {string} + * @memberof V1RatingItem + */ + status?: string; + /** + * Тип значения: + * - `UNKNOWN_VALUE` — не определён. + * - `INDEX` — индекс. + * - `PERCENT` — процент. + * - `TIME` — время. + * - `RATIO` — коэффициент. + * - `REVIEW_SCORE` — оценка. + * - `COUNT` — счёт. + * + * @type {string} + * @memberof V1RatingItem + */ + value_type?: string; +} +/** + * Check if a given object implements the V1RatingItem interface. + */ +export declare function instanceOfV1RatingItem(value: object): value is V1RatingItem; +export declare function V1RatingItemFromJSON(json: any): V1RatingItem; +export declare function V1RatingItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingItem; +export declare function V1RatingItemToJSON(value?: V1RatingItem | null): any; diff --git a/dist/esm/models/V1RatingItem.js b/dist/esm/models/V1RatingItem.js new file mode 100644 index 0000000..734e4ee --- /dev/null +++ b/dist/esm/models/V1RatingItem.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RatingItemChangeFromJSON, RatingItemChangeToJSON, } from './RatingItemChange'; +/** + * Check if a given object implements the V1RatingItem interface. + */ +export function instanceOfV1RatingItem(value) { + return true; +} +export function V1RatingItemFromJSON(json) { + return V1RatingItemFromJSONTyped(json, false); +} +export function V1RatingItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'change': json['change'] == null ? undefined : RatingItemChangeFromJSON(json['change']), + 'current_value': json['current_value'] == null ? undefined : json['current_value'], + 'name': json['name'] == null ? undefined : json['name'], + 'past_value': json['past_value'] == null ? undefined : json['past_value'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'rating_direction': json['rating_direction'] == null ? undefined : json['rating_direction'], + 'status': json['status'] == null ? undefined : json['status'], + 'value_type': json['value_type'] == null ? undefined : json['value_type'], + }; +} +export function V1RatingItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'change': RatingItemChangeToJSON(value['change']), + 'current_value': value['current_value'], + 'name': value['name'], + 'past_value': value['past_value'], + 'rating': value['rating'], + 'rating_direction': value['rating_direction'], + 'status': value['status'], + 'value_type': value['value_type'], + }; +} diff --git a/dist/esm/models/V1RatingStatus.d.ts b/dist/esm/models/V1RatingStatus.d.ts new file mode 100644 index 0000000..e03468e --- /dev/null +++ b/dist/esm/models/V1RatingStatus.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус рейтинга. + * @export + * @interface V1RatingStatus + */ +export interface V1RatingStatus { + /** + * Признак, превышено ли пороговое значение рейтинга для блокировки. + * @type {boolean} + * @memberof V1RatingStatus + */ + danger?: boolean; + /** + * Признак, достигнуто ли пороговое значение для участия в Premium-программе. + * @type {boolean} + * @memberof V1RatingStatus + */ + premium?: boolean; + /** + * Признак наличия предупреждения о возможном превышении порогового значения для блокировки. + * @type {boolean} + * @memberof V1RatingStatus + */ + warning?: boolean; +} +/** + * Check if a given object implements the V1RatingStatus interface. + */ +export declare function instanceOfV1RatingStatus(value: object): value is V1RatingStatus; +export declare function V1RatingStatusFromJSON(json: any): V1RatingStatus; +export declare function V1RatingStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingStatus; +export declare function V1RatingStatusToJSON(value?: V1RatingStatus | null): any; diff --git a/dist/esm/models/V1RatingStatus.js b/dist/esm/models/V1RatingStatus.js new file mode 100644 index 0000000..1839932 --- /dev/null +++ b/dist/esm/models/V1RatingStatus.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1RatingStatus interface. + */ +export function instanceOfV1RatingStatus(value) { + return true; +} +export function V1RatingStatusFromJSON(json) { + return V1RatingStatusFromJSONTyped(json, false); +} +export function V1RatingStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'danger': json['danger'] == null ? undefined : json['danger'], + 'premium': json['premium'] == null ? undefined : json['premium'], + 'warning': json['warning'] == null ? undefined : json['warning'], + }; +} +export function V1RatingStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'danger': value['danger'], + 'premium': value['premium'], + 'warning': value['warning'], + }; +} diff --git a/dist/esm/models/V1RatingSummaryV1Response.d.ts b/dist/esm/models/V1RatingSummaryV1Response.d.ts new file mode 100644 index 0000000..694f4b5 --- /dev/null +++ b/dist/esm/models/V1RatingSummaryV1Response.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RatingSummaryV1ResponseLocalIndex } from './RatingSummaryV1ResponseLocalIndex'; +import type { RatingSummaryV1ResponseGroup } from './RatingSummaryV1ResponseGroup'; +/** + * + * @export + * @interface V1RatingSummaryV1Response + */ +export interface V1RatingSummaryV1Response { + /** + * Список с группами рейтингов. + * @type {Array} + * @memberof V1RatingSummaryV1Response + */ + groups?: Array; + /** + * Данные по индексу локализации. Если за последние 14 дней у вас не было продаж, поля параметра будут пустыми. + * @type {Array} + * @memberof V1RatingSummaryV1Response + */ + localization_index?: Array; + /** + * Признак, что баланс штрафных баллов превышен. + * @type {boolean} + * @memberof V1RatingSummaryV1Response + */ + penalty_score_exceeded?: boolean; + /** + * Признак наличия подписки [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program). + * @type {boolean} + * @memberof V1RatingSummaryV1Response + */ + premium?: boolean; + /** + * Признак наличия подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * @type {boolean} + * @memberof V1RatingSummaryV1Response + */ + premium_plus?: boolean; +} +/** + * Check if a given object implements the V1RatingSummaryV1Response interface. + */ +export declare function instanceOfV1RatingSummaryV1Response(value: object): value is V1RatingSummaryV1Response; +export declare function V1RatingSummaryV1ResponseFromJSON(json: any): V1RatingSummaryV1Response; +export declare function V1RatingSummaryV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingSummaryV1Response; +export declare function V1RatingSummaryV1ResponseToJSON(value?: V1RatingSummaryV1Response | null): any; diff --git a/dist/esm/models/V1RatingSummaryV1Response.js b/dist/esm/models/V1RatingSummaryV1Response.js new file mode 100644 index 0000000..490a8a4 --- /dev/null +++ b/dist/esm/models/V1RatingSummaryV1Response.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RatingSummaryV1ResponseLocalIndexFromJSON, RatingSummaryV1ResponseLocalIndexToJSON, } from './RatingSummaryV1ResponseLocalIndex'; +import { RatingSummaryV1ResponseGroupFromJSON, RatingSummaryV1ResponseGroupToJSON, } from './RatingSummaryV1ResponseGroup'; +/** + * Check if a given object implements the V1RatingSummaryV1Response interface. + */ +export function instanceOfV1RatingSummaryV1Response(value) { + return true; +} +export function V1RatingSummaryV1ResponseFromJSON(json) { + return V1RatingSummaryV1ResponseFromJSONTyped(json, false); +} +export function V1RatingSummaryV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'groups': json['groups'] == null ? undefined : (json['groups'].map(RatingSummaryV1ResponseGroupFromJSON)), + 'localization_index': json['localization_index'] == null ? undefined : (json['localization_index'].map(RatingSummaryV1ResponseLocalIndexFromJSON)), + 'penalty_score_exceeded': json['penalty_score_exceeded'] == null ? undefined : json['penalty_score_exceeded'], + 'premium': json['premium'] == null ? undefined : json['premium'], + 'premium_plus': json['premium_plus'] == null ? undefined : json['premium_plus'], + }; +} +export function V1RatingSummaryV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'groups': value['groups'] == null ? undefined : (value['groups'].map(RatingSummaryV1ResponseGroupToJSON)), + 'localization_index': value['localization_index'] == null ? undefined : (value['localization_index'].map(RatingSummaryV1ResponseLocalIndexToJSON)), + 'penalty_score_exceeded': value['penalty_score_exceeded'], + 'premium': value['premium'], + 'premium_plus': value['premium_plus'], + }; +} diff --git a/dist/esm/models/V1ReceiptsSellerListRequest.d.ts b/dist/esm/models/V1ReceiptsSellerListRequest.d.ts new file mode 100644 index 0000000..8462e96 --- /dev/null +++ b/dist/esm/models/V1ReceiptsSellerListRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReceiptsSellerListRequest + */ +export interface V1ReceiptsSellerListRequest { + /** + * Количество страниц, которое нужно пропустить. + * @type {number} + * @memberof V1ReceiptsSellerListRequest + */ + page?: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V1ReceiptsSellerListRequest + */ + page_size?: number; + /** + * Фильтр по номерам отправлений. + * @type {Array} + * @memberof V1ReceiptsSellerListRequest + */ + posting_numbers?: Array; +} +/** + * Check if a given object implements the V1ReceiptsSellerListRequest interface. + */ +export declare function instanceOfV1ReceiptsSellerListRequest(value: object): value is V1ReceiptsSellerListRequest; +export declare function V1ReceiptsSellerListRequestFromJSON(json: any): V1ReceiptsSellerListRequest; +export declare function V1ReceiptsSellerListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReceiptsSellerListRequest; +export declare function V1ReceiptsSellerListRequestToJSON(value?: V1ReceiptsSellerListRequest | null): any; diff --git a/dist/esm/models/V1ReceiptsSellerListRequest.js b/dist/esm/models/V1ReceiptsSellerListRequest.js new file mode 100644 index 0000000..2244ad3 --- /dev/null +++ b/dist/esm/models/V1ReceiptsSellerListRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ReceiptsSellerListRequest interface. + */ +export function instanceOfV1ReceiptsSellerListRequest(value) { + return true; +} +export function V1ReceiptsSellerListRequestFromJSON(json) { + return V1ReceiptsSellerListRequestFromJSONTyped(json, false); +} +export function V1ReceiptsSellerListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'] == null ? undefined : json['page_size'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + }; +} +export function V1ReceiptsSellerListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/esm/models/V1ReceiptsSellerListResponse.d.ts b/dist/esm/models/V1ReceiptsSellerListResponse.d.ts new file mode 100644 index 0000000..a4cca14 --- /dev/null +++ b/dist/esm/models/V1ReceiptsSellerListResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReceiptsSellerListResponseReceipt } from './ReceiptsSellerListResponseReceipt'; +/** + * + * @export + * @interface V1ReceiptsSellerListResponse + */ +export interface V1ReceiptsSellerListResponse { + /** + * Признак, что в ответе вернулись не все записи: + * - `true` — сделайте повторный запрос с новым параметром `page`, чтобы получить остальные значения; + * - `false` — ответ содержит все записи с чеками. + * + * @type {boolean} + * @memberof V1ReceiptsSellerListResponse + */ + has_next?: boolean; + /** + * Информация о чеках. + * @type {Array} + * @memberof V1ReceiptsSellerListResponse + */ + receipts?: Array; +} +/** + * Check if a given object implements the V1ReceiptsSellerListResponse interface. + */ +export declare function instanceOfV1ReceiptsSellerListResponse(value: object): value is V1ReceiptsSellerListResponse; +export declare function V1ReceiptsSellerListResponseFromJSON(json: any): V1ReceiptsSellerListResponse; +export declare function V1ReceiptsSellerListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReceiptsSellerListResponse; +export declare function V1ReceiptsSellerListResponseToJSON(value?: V1ReceiptsSellerListResponse | null): any; diff --git a/dist/esm/models/V1ReceiptsSellerListResponse.js b/dist/esm/models/V1ReceiptsSellerListResponse.js new file mode 100644 index 0000000..a248ffa --- /dev/null +++ b/dist/esm/models/V1ReceiptsSellerListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReceiptsSellerListResponseReceiptFromJSON, ReceiptsSellerListResponseReceiptToJSON, } from './ReceiptsSellerListResponseReceipt'; +/** + * Check if a given object implements the V1ReceiptsSellerListResponse interface. + */ +export function instanceOfV1ReceiptsSellerListResponse(value) { + return true; +} +export function V1ReceiptsSellerListResponseFromJSON(json) { + return V1ReceiptsSellerListResponseFromJSONTyped(json, false); +} +export function V1ReceiptsSellerListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'receipts': json['receipts'] == null ? undefined : (json['receipts'].map(ReceiptsSellerListResponseReceiptFromJSON)), + }; +} +export function V1ReceiptsSellerListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'receipts': value['receipts'] == null ? undefined : (value['receipts'].map(ReceiptsSellerListResponseReceiptToJSON)), + }; +} diff --git a/dist/esm/models/V1ReportMarkedProductsSalesCreateRequest.d.ts b/dist/esm/models/V1ReportMarkedProductsSalesCreateRequest.d.ts new file mode 100644 index 0000000..4f15eda --- /dev/null +++ b/dist/esm/models/V1ReportMarkedProductsSalesCreateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportMarkedProductsSalesCreateRequestDate } from './ReportMarkedProductsSalesCreateRequestDate'; +/** + * + * @export + * @interface V1ReportMarkedProductsSalesCreateRequest + */ +export interface V1ReportMarkedProductsSalesCreateRequest { + /** + * + * @type {ReportMarkedProductsSalesCreateRequestDate} + * @memberof V1ReportMarkedProductsSalesCreateRequest + */ + date?: ReportMarkedProductsSalesCreateRequestDate; +} +/** + * Check if a given object implements the V1ReportMarkedProductsSalesCreateRequest interface. + */ +export declare function instanceOfV1ReportMarkedProductsSalesCreateRequest(value: object): value is V1ReportMarkedProductsSalesCreateRequest; +export declare function V1ReportMarkedProductsSalesCreateRequestFromJSON(json: any): V1ReportMarkedProductsSalesCreateRequest; +export declare function V1ReportMarkedProductsSalesCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReportMarkedProductsSalesCreateRequest; +export declare function V1ReportMarkedProductsSalesCreateRequestToJSON(value?: V1ReportMarkedProductsSalesCreateRequest | null): any; diff --git a/dist/esm/models/V1ReportMarkedProductsSalesCreateRequest.js b/dist/esm/models/V1ReportMarkedProductsSalesCreateRequest.js new file mode 100644 index 0000000..bc557c1 --- /dev/null +++ b/dist/esm/models/V1ReportMarkedProductsSalesCreateRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReportMarkedProductsSalesCreateRequestDateFromJSON, ReportMarkedProductsSalesCreateRequestDateToJSON, } from './ReportMarkedProductsSalesCreateRequestDate'; +/** + * Check if a given object implements the V1ReportMarkedProductsSalesCreateRequest interface. + */ +export function instanceOfV1ReportMarkedProductsSalesCreateRequest(value) { + return true; +} +export function V1ReportMarkedProductsSalesCreateRequestFromJSON(json) { + return V1ReportMarkedProductsSalesCreateRequestFromJSONTyped(json, false); +} +export function V1ReportMarkedProductsSalesCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : ReportMarkedProductsSalesCreateRequestDateFromJSON(json['date']), + }; +} +export function V1ReportMarkedProductsSalesCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': ReportMarkedProductsSalesCreateRequestDateToJSON(value['date']), + }; +} diff --git a/dist/esm/models/V1Restriction.d.ts b/dist/esm/models/V1Restriction.d.ts new file mode 100644 index 0000000..27d0b67 --- /dev/null +++ b/dist/esm/models/V1Restriction.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1Restriction + */ +export interface V1Restriction { + /** + * Номер отправления. + * @type {string} + * @memberof V1Restriction + */ + posting_number?: string; + /** + * Ограничение по максимальному весу в граммах. + * @type {number} + * @memberof V1Restriction + */ + max_posting_weight?: number; + /** + * Ограничение по минимальному весу в граммах. + * @type {number} + * @memberof V1Restriction + */ + min_posting_weight?: number; + /** + * Ограничение по ширине в сантиметрах. + * @type {number} + * @memberof V1Restriction + */ + width?: number; + /** + * Ограничение по длине в сантиметрах. + * @type {number} + * @memberof V1Restriction + */ + length?: number; + /** + * Ограничение по высоте в сантиметрах. + * @type {number} + * @memberof V1Restriction + */ + height?: number; + /** + * Ограничение по максимальной стоимости отправления в рублях. + * @type {number} + * @memberof V1Restriction + */ + max_posting_price?: number; + /** + * Ограничение по минимальной стоимости отправления в рублях. + * @type {number} + * @memberof V1Restriction + */ + min_posting_price?: number; +} +/** + * Check if a given object implements the V1Restriction interface. + */ +export declare function instanceOfV1Restriction(value: object): value is V1Restriction; +export declare function V1RestrictionFromJSON(json: any): V1Restriction; +export declare function V1RestrictionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Restriction; +export declare function V1RestrictionToJSON(value?: V1Restriction | null): any; diff --git a/dist/esm/models/V1Restriction.js b/dist/esm/models/V1Restriction.js new file mode 100644 index 0000000..6fd126e --- /dev/null +++ b/dist/esm/models/V1Restriction.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1Restriction interface. + */ +export function instanceOfV1Restriction(value) { + return true; +} +export function V1RestrictionFromJSON(json) { + return V1RestrictionFromJSONTyped(json, false); +} +export function V1RestrictionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'max_posting_weight': json['max_posting_weight'] == null ? undefined : json['max_posting_weight'], + 'min_posting_weight': json['min_posting_weight'] == null ? undefined : json['min_posting_weight'], + 'width': json['width'] == null ? undefined : json['width'], + 'length': json['length'] == null ? undefined : json['length'], + 'height': json['height'] == null ? undefined : json['height'], + 'max_posting_price': json['max_posting_price'] == null ? undefined : json['max_posting_price'], + 'min_posting_price': json['min_posting_price'] == null ? undefined : json['min_posting_price'], + }; +} +export function V1RestrictionToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'max_posting_weight': value['max_posting_weight'], + 'min_posting_weight': value['min_posting_weight'], + 'width': value['width'], + 'length': value['length'], + 'height': value['height'], + 'max_posting_price': value['max_posting_price'], + 'min_posting_price': value['min_posting_price'], + }; +} diff --git a/dist/esm/models/V1ReturnsCompanyFbsInfoRequest.d.ts b/dist/esm/models/V1ReturnsCompanyFbsInfoRequest.d.ts new file mode 100644 index 0000000..57dde46 --- /dev/null +++ b/dist/esm/models/V1ReturnsCompanyFbsInfoRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ReturnsCompanyFbsInfoRequestFilter } from './V1ReturnsCompanyFbsInfoRequestFilter'; +import type { ReturnsCompanyFbsInfoRequestPagination } from './ReturnsCompanyFbsInfoRequestPagination'; +/** + * + * @export + * @interface V1ReturnsCompanyFbsInfoRequest + */ +export interface V1ReturnsCompanyFbsInfoRequest { + /** + * + * @type {V1ReturnsCompanyFbsInfoRequestFilter} + * @memberof V1ReturnsCompanyFbsInfoRequest + */ + filter?: V1ReturnsCompanyFbsInfoRequestFilter; + /** + * + * @type {ReturnsCompanyFbsInfoRequestPagination} + * @memberof V1ReturnsCompanyFbsInfoRequest + */ + pagination: ReturnsCompanyFbsInfoRequestPagination; +} +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoRequest interface. + */ +export declare function instanceOfV1ReturnsCompanyFbsInfoRequest(value: object): value is V1ReturnsCompanyFbsInfoRequest; +export declare function V1ReturnsCompanyFbsInfoRequestFromJSON(json: any): V1ReturnsCompanyFbsInfoRequest; +export declare function V1ReturnsCompanyFbsInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsCompanyFbsInfoRequest; +export declare function V1ReturnsCompanyFbsInfoRequestToJSON(value?: V1ReturnsCompanyFbsInfoRequest | null): any; diff --git a/dist/esm/models/V1ReturnsCompanyFbsInfoRequest.js b/dist/esm/models/V1ReturnsCompanyFbsInfoRequest.js new file mode 100644 index 0000000..753c045 --- /dev/null +++ b/dist/esm/models/V1ReturnsCompanyFbsInfoRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1ReturnsCompanyFbsInfoRequestFilterFromJSON, V1ReturnsCompanyFbsInfoRequestFilterToJSON, } from './V1ReturnsCompanyFbsInfoRequestFilter'; +import { ReturnsCompanyFbsInfoRequestPaginationFromJSON, ReturnsCompanyFbsInfoRequestPaginationToJSON, } from './ReturnsCompanyFbsInfoRequestPagination'; +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoRequest interface. + */ +export function instanceOfV1ReturnsCompanyFbsInfoRequest(value) { + if (!('pagination' in value) || value['pagination'] === undefined) + return false; + return true; +} +export function V1ReturnsCompanyFbsInfoRequestFromJSON(json) { + return V1ReturnsCompanyFbsInfoRequestFromJSONTyped(json, false); +} +export function V1ReturnsCompanyFbsInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : V1ReturnsCompanyFbsInfoRequestFilterFromJSON(json['filter']), + 'pagination': ReturnsCompanyFbsInfoRequestPaginationFromJSON(json['pagination']), + }; +} +export function V1ReturnsCompanyFbsInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': V1ReturnsCompanyFbsInfoRequestFilterToJSON(value['filter']), + 'pagination': ReturnsCompanyFbsInfoRequestPaginationToJSON(value['pagination']), + }; +} diff --git a/dist/esm/models/V1ReturnsCompanyFbsInfoRequestFilter.d.ts b/dist/esm/models/V1ReturnsCompanyFbsInfoRequestFilter.d.ts new file mode 100644 index 0000000..f006f52 --- /dev/null +++ b/dist/esm/models/V1ReturnsCompanyFbsInfoRequestFilter.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтры. + * @export + * @interface V1ReturnsCompanyFbsInfoRequestFilter + */ +export interface V1ReturnsCompanyFbsInfoRequestFilter { + /** + * Фильтр по идентификатору drop-off пункта. + * @type {number} + * @memberof V1ReturnsCompanyFbsInfoRequestFilter + */ + place_id?: number; +} +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoRequestFilter interface. + */ +export declare function instanceOfV1ReturnsCompanyFbsInfoRequestFilter(value: object): value is V1ReturnsCompanyFbsInfoRequestFilter; +export declare function V1ReturnsCompanyFbsInfoRequestFilterFromJSON(json: any): V1ReturnsCompanyFbsInfoRequestFilter; +export declare function V1ReturnsCompanyFbsInfoRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsCompanyFbsInfoRequestFilter; +export declare function V1ReturnsCompanyFbsInfoRequestFilterToJSON(value?: V1ReturnsCompanyFbsInfoRequestFilter | null): any; diff --git a/dist/esm/models/V1ReturnsCompanyFbsInfoRequestFilter.js b/dist/esm/models/V1ReturnsCompanyFbsInfoRequestFilter.js new file mode 100644 index 0000000..cc24035 --- /dev/null +++ b/dist/esm/models/V1ReturnsCompanyFbsInfoRequestFilter.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoRequestFilter interface. + */ +export function instanceOfV1ReturnsCompanyFbsInfoRequestFilter(value) { + return true; +} +export function V1ReturnsCompanyFbsInfoRequestFilterFromJSON(json) { + return V1ReturnsCompanyFbsInfoRequestFilterFromJSONTyped(json, false); +} +export function V1ReturnsCompanyFbsInfoRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'place_id': json['place_id'] == null ? undefined : json['place_id'], + }; +} +export function V1ReturnsCompanyFbsInfoRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'place_id': value['place_id'], + }; +} diff --git a/dist/esm/models/V1ReturnsCompanyFbsInfoResponse.d.ts b/dist/esm/models/V1ReturnsCompanyFbsInfoResponse.d.ts new file mode 100644 index 0000000..502cca1 --- /dev/null +++ b/dist/esm/models/V1ReturnsCompanyFbsInfoResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsCompanyFbsInfoResponseDropOffPoints } from './ReturnsCompanyFbsInfoResponseDropOffPoints'; +/** + * + * @export + * @interface V1ReturnsCompanyFbsInfoResponse + */ +export interface V1ReturnsCompanyFbsInfoResponse { + /** + * Информация о drop-off пунктах. + * @type {Array} + * @memberof V1ReturnsCompanyFbsInfoResponse + */ + drop_off_points?: Array; + /** + * Признак, есть ли ещё пункты, где продавца ожидают возвраты. + * @type {boolean} + * @memberof V1ReturnsCompanyFbsInfoResponse + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoResponse interface. + */ +export declare function instanceOfV1ReturnsCompanyFbsInfoResponse(value: object): value is V1ReturnsCompanyFbsInfoResponse; +export declare function V1ReturnsCompanyFbsInfoResponseFromJSON(json: any): V1ReturnsCompanyFbsInfoResponse; +export declare function V1ReturnsCompanyFbsInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsCompanyFbsInfoResponse; +export declare function V1ReturnsCompanyFbsInfoResponseToJSON(value?: V1ReturnsCompanyFbsInfoResponse | null): any; diff --git a/dist/esm/models/V1ReturnsCompanyFbsInfoResponse.js b/dist/esm/models/V1ReturnsCompanyFbsInfoResponse.js new file mode 100644 index 0000000..681bc58 --- /dev/null +++ b/dist/esm/models/V1ReturnsCompanyFbsInfoResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON, ReturnsCompanyFbsInfoResponseDropOffPointsToJSON, } from './ReturnsCompanyFbsInfoResponseDropOffPoints'; +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoResponse interface. + */ +export function instanceOfV1ReturnsCompanyFbsInfoResponse(value) { + return true; +} +export function V1ReturnsCompanyFbsInfoResponseFromJSON(json) { + return V1ReturnsCompanyFbsInfoResponseFromJSONTyped(json, false); +} +export function V1ReturnsCompanyFbsInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_points': json['drop_off_points'] == null ? undefined : (json['drop_off_points'].map(ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON)), + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +export function V1ReturnsCompanyFbsInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_points': value['drop_off_points'] == null ? undefined : (value['drop_off_points'].map(ReturnsCompanyFbsInfoResponseDropOffPointsToJSON)), + 'has_next': value['has_next'], + }; +} diff --git a/dist/esm/models/V1ReturnsRfbsActionSetRequest.d.ts b/dist/esm/models/V1ReturnsRfbsActionSetRequest.d.ts new file mode 100644 index 0000000..17c9132 --- /dev/null +++ b/dist/esm/models/V1ReturnsRfbsActionSetRequest.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReturnsRfbsActionSetRequest + */ +export interface V1ReturnsRfbsActionSetRequest { + /** + * Комментарий продавца. + * + * Обязателен для `id: -1` и `id: -10`. + * + * @type {string} + * @memberof V1ReturnsRfbsActionSetRequest + */ + comment?: string; + /** + * Сумма компенсации. + * + * Обязательна для `id: 1020`. + * + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + compensation_amount?: number; + /** + * Идентификатор действия. + * + * Получите доступные действия `returns.available_actions` методом [/v2/returns/rfbs/get](#operation/RFBSReturnsAPI_ReturnsRfbsGetV2). + * + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + id?: number; + /** + * Идентификатор причины отмены. + * + * Обязателен для `id: -1` и `id: -10`. + * + * Получите возможные причины отмены `returns.rejection_reason` методом [/v2/returns/rfbs/get](#operation/RFBSReturnsAPI_ReturnsRfbsGetV2). + * + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + rejection_reason_id?: number; + /** + * Сумма, возмещаемая покупателю за пересылку товара. + * + * Отрицательные значения приравниваются к `0`. + * + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + return_for_back_way?: number; + /** + * Идентификатор заявки на возврат. + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + return_id: number; +} +/** + * Check if a given object implements the V1ReturnsRfbsActionSetRequest interface. + */ +export declare function instanceOfV1ReturnsRfbsActionSetRequest(value: object): value is V1ReturnsRfbsActionSetRequest; +export declare function V1ReturnsRfbsActionSetRequestFromJSON(json: any): V1ReturnsRfbsActionSetRequest; +export declare function V1ReturnsRfbsActionSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsRfbsActionSetRequest; +export declare function V1ReturnsRfbsActionSetRequestToJSON(value?: V1ReturnsRfbsActionSetRequest | null): any; diff --git a/dist/esm/models/V1ReturnsRfbsActionSetRequest.js b/dist/esm/models/V1ReturnsRfbsActionSetRequest.js new file mode 100644 index 0000000..b25cb06 --- /dev/null +++ b/dist/esm/models/V1ReturnsRfbsActionSetRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ReturnsRfbsActionSetRequest interface. + */ +export function instanceOfV1ReturnsRfbsActionSetRequest(value) { + if (!('return_id' in value) || value['return_id'] === undefined) + return false; + return true; +} +export function V1ReturnsRfbsActionSetRequestFromJSON(json) { + return V1ReturnsRfbsActionSetRequestFromJSONTyped(json, false); +} +export function V1ReturnsRfbsActionSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment': json['comment'] == null ? undefined : json['comment'], + 'compensation_amount': json['compensation_amount'] == null ? undefined : json['compensation_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'rejection_reason_id': json['rejection_reason_id'] == null ? undefined : json['rejection_reason_id'], + 'return_for_back_way': json['return_for_back_way'] == null ? undefined : json['return_for_back_way'], + 'return_id': json['return_id'], + }; +} +export function V1ReturnsRfbsActionSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment': value['comment'], + 'compensation_amount': value['compensation_amount'], + 'id': value['id'], + 'rejection_reason_id': value['rejection_reason_id'], + 'return_for_back_way': value['return_for_back_way'], + 'return_id': value['return_id'], + }; +} diff --git a/dist/esm/models/V1ReturnsSettingsUtilizationHistoryResponse.d.ts b/dist/esm/models/V1ReturnsSettingsUtilizationHistoryResponse.d.ts new file mode 100644 index 0000000..d1d1bc5 --- /dev/null +++ b/dist/esm/models/V1ReturnsSettingsUtilizationHistoryResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsSettingsUtilizationHistoryResponseHistory } from './ReturnsSettingsUtilizationHistoryResponseHistory'; +/** + * + * @export + * @interface V1ReturnsSettingsUtilizationHistoryResponse + */ +export interface V1ReturnsSettingsUtilizationHistoryResponse { + /** + * История изменений. + * @type {Array} + * @memberof V1ReturnsSettingsUtilizationHistoryResponse + */ + history?: Array; +} +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationHistoryResponse interface. + */ +export declare function instanceOfV1ReturnsSettingsUtilizationHistoryResponse(value: object): value is V1ReturnsSettingsUtilizationHistoryResponse; +export declare function V1ReturnsSettingsUtilizationHistoryResponseFromJSON(json: any): V1ReturnsSettingsUtilizationHistoryResponse; +export declare function V1ReturnsSettingsUtilizationHistoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsSettingsUtilizationHistoryResponse; +export declare function V1ReturnsSettingsUtilizationHistoryResponseToJSON(value?: V1ReturnsSettingsUtilizationHistoryResponse | null): any; diff --git a/dist/esm/models/V1ReturnsSettingsUtilizationHistoryResponse.js b/dist/esm/models/V1ReturnsSettingsUtilizationHistoryResponse.js new file mode 100644 index 0000000..842c4c9 --- /dev/null +++ b/dist/esm/models/V1ReturnsSettingsUtilizationHistoryResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON, ReturnsSettingsUtilizationHistoryResponseHistoryToJSON, } from './ReturnsSettingsUtilizationHistoryResponseHistory'; +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationHistoryResponse interface. + */ +export function instanceOfV1ReturnsSettingsUtilizationHistoryResponse(value) { + return true; +} +export function V1ReturnsSettingsUtilizationHistoryResponseFromJSON(json) { + return V1ReturnsSettingsUtilizationHistoryResponseFromJSONTyped(json, false); +} +export function V1ReturnsSettingsUtilizationHistoryResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'history': json['history'] == null ? undefined : (json['history'].map(ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON)), + }; +} +export function V1ReturnsSettingsUtilizationHistoryResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'history': value['history'] == null ? undefined : (value['history'].map(ReturnsSettingsUtilizationHistoryResponseHistoryToJSON)), + }; +} diff --git a/dist/esm/models/V1ReturnsSettingsUtilizationInfoResponse.d.ts b/dist/esm/models/V1ReturnsSettingsUtilizationInfoResponse.d.ts new file mode 100644 index 0000000..4494e9c --- /dev/null +++ b/dist/esm/models/V1ReturnsSettingsUtilizationInfoResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MinUtilizationMoney } from './MinUtilizationMoney'; +import type { ReturnsSettingsUtilizationInfoResponseUtilizationSettings } from './ReturnsSettingsUtilizationInfoResponseUtilizationSettings'; +/** + * + * @export + * @interface V1ReturnsSettingsUtilizationInfoResponse + */ +export interface V1ReturnsSettingsUtilizationInfoResponse { + /** + * + * @type {MinUtilizationMoney} + * @memberof V1ReturnsSettingsUtilizationInfoResponse + */ + min_price?: MinUtilizationMoney; + /** + * + * @type {ReturnsSettingsUtilizationInfoResponseUtilizationSettings} + * @memberof V1ReturnsSettingsUtilizationInfoResponse + */ + utilization_settings?: ReturnsSettingsUtilizationInfoResponseUtilizationSettings; +} +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationInfoResponse interface. + */ +export declare function instanceOfV1ReturnsSettingsUtilizationInfoResponse(value: object): value is V1ReturnsSettingsUtilizationInfoResponse; +export declare function V1ReturnsSettingsUtilizationInfoResponseFromJSON(json: any): V1ReturnsSettingsUtilizationInfoResponse; +export declare function V1ReturnsSettingsUtilizationInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsSettingsUtilizationInfoResponse; +export declare function V1ReturnsSettingsUtilizationInfoResponseToJSON(value?: V1ReturnsSettingsUtilizationInfoResponse | null): any; diff --git a/dist/esm/models/V1ReturnsSettingsUtilizationInfoResponse.js b/dist/esm/models/V1ReturnsSettingsUtilizationInfoResponse.js new file mode 100644 index 0000000..993e2c0 --- /dev/null +++ b/dist/esm/models/V1ReturnsSettingsUtilizationInfoResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MinUtilizationMoneyFromJSON, MinUtilizationMoneyToJSON, } from './MinUtilizationMoney'; +import { ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON, ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON, } from './ReturnsSettingsUtilizationInfoResponseUtilizationSettings'; +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationInfoResponse interface. + */ +export function instanceOfV1ReturnsSettingsUtilizationInfoResponse(value) { + return true; +} +export function V1ReturnsSettingsUtilizationInfoResponseFromJSON(json) { + return V1ReturnsSettingsUtilizationInfoResponseFromJSONTyped(json, false); +} +export function V1ReturnsSettingsUtilizationInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : MinUtilizationMoneyFromJSON(json['min_price']), + 'utilization_settings': json['utilization_settings'] == null ? undefined : ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON(json['utilization_settings']), + }; +} +export function V1ReturnsSettingsUtilizationInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': MinUtilizationMoneyToJSON(value['min_price']), + 'utilization_settings': ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON(value['utilization_settings']), + }; +} diff --git a/dist/esm/models/V1ReturnsSettingsUtilizationUpdateRequest.d.ts b/dist/esm/models/V1ReturnsSettingsUtilizationUpdateRequest.d.ts new file mode 100644 index 0000000..907af89 --- /dev/null +++ b/dist/esm/models/V1ReturnsSettingsUtilizationUpdateRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects } from './ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects'; +import type { ReturnsSettingsUtilizationUpdateRequestUtilizationPrice } from './ReturnsSettingsUtilizationUpdateRequestUtilizationPrice'; +/** + * + * @export + * @interface V1ReturnsSettingsUtilizationUpdateRequest + */ +export interface V1ReturnsSettingsUtilizationUpdateRequest { + /** + * + * @type {ReturnsSettingsUtilizationUpdateRequestUtilizationPrice} + * @memberof V1ReturnsSettingsUtilizationUpdateRequest + */ + utilization_price: ReturnsSettingsUtilizationUpdateRequestUtilizationPrice; + /** + * + * @type {ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects} + * @memberof V1ReturnsSettingsUtilizationUpdateRequest + */ + utilization_price_defects: ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +} +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationUpdateRequest interface. + */ +export declare function instanceOfV1ReturnsSettingsUtilizationUpdateRequest(value: object): value is V1ReturnsSettingsUtilizationUpdateRequest; +export declare function V1ReturnsSettingsUtilizationUpdateRequestFromJSON(json: any): V1ReturnsSettingsUtilizationUpdateRequest; +export declare function V1ReturnsSettingsUtilizationUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsSettingsUtilizationUpdateRequest; +export declare function V1ReturnsSettingsUtilizationUpdateRequestToJSON(value?: V1ReturnsSettingsUtilizationUpdateRequest | null): any; diff --git a/dist/esm/models/V1ReturnsSettingsUtilizationUpdateRequest.js b/dist/esm/models/V1ReturnsSettingsUtilizationUpdateRequest.js new file mode 100644 index 0000000..7b56cbf --- /dev/null +++ b/dist/esm/models/V1ReturnsSettingsUtilizationUpdateRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON, ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON, } from './ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects'; +import { ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON, ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON, } from './ReturnsSettingsUtilizationUpdateRequestUtilizationPrice'; +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationUpdateRequest interface. + */ +export function instanceOfV1ReturnsSettingsUtilizationUpdateRequest(value) { + if (!('utilization_price' in value) || value['utilization_price'] === undefined) + return false; + if (!('utilization_price_defects' in value) || value['utilization_price_defects'] === undefined) + return false; + return true; +} +export function V1ReturnsSettingsUtilizationUpdateRequestFromJSON(json) { + return V1ReturnsSettingsUtilizationUpdateRequestFromJSONTyped(json, false); +} +export function V1ReturnsSettingsUtilizationUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'utilization_price': ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON(json['utilization_price']), + 'utilization_price_defects': ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON(json['utilization_price_defects']), + }; +} +export function V1ReturnsSettingsUtilizationUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'utilization_price': ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON(value['utilization_price']), + 'utilization_price_defects': ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON(value['utilization_price_defects']), + }; +} diff --git a/dist/esm/models/V1ReviewChangeStatusRequest.d.ts b/dist/esm/models/V1ReviewChangeStatusRequest.d.ts new file mode 100644 index 0000000..f2a3c5e --- /dev/null +++ b/dist/esm/models/V1ReviewChangeStatusRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReviewChangeStatusRequest + */ +export interface V1ReviewChangeStatusRequest { + /** + * Массив с идентификаторами отзывов от 1 до 100. + * @type {Array} + * @memberof V1ReviewChangeStatusRequest + */ + review_ids: Array; + /** + * Статус отзыва: + * - `PROCESSED` — обработанный, + * - `UNPROCESSED` — необработанный. + * + * @type {string} + * @memberof V1ReviewChangeStatusRequest + */ + status: string; +} +/** + * Check if a given object implements the V1ReviewChangeStatusRequest interface. + */ +export declare function instanceOfV1ReviewChangeStatusRequest(value: object): value is V1ReviewChangeStatusRequest; +export declare function V1ReviewChangeStatusRequestFromJSON(json: any): V1ReviewChangeStatusRequest; +export declare function V1ReviewChangeStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewChangeStatusRequest; +export declare function V1ReviewChangeStatusRequestToJSON(value?: V1ReviewChangeStatusRequest | null): any; diff --git a/dist/esm/models/V1ReviewChangeStatusRequest.js b/dist/esm/models/V1ReviewChangeStatusRequest.js new file mode 100644 index 0000000..3d7a013 --- /dev/null +++ b/dist/esm/models/V1ReviewChangeStatusRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ReviewChangeStatusRequest interface. + */ +export function instanceOfV1ReviewChangeStatusRequest(value) { + if (!('review_ids' in value) || value['review_ids'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +export function V1ReviewChangeStatusRequestFromJSON(json) { + return V1ReviewChangeStatusRequestFromJSONTyped(json, false); +} +export function V1ReviewChangeStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'review_ids': json['review_ids'], + 'status': json['status'], + }; +} +export function V1ReviewChangeStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'review_ids': value['review_ids'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V1ReviewCountResponse.d.ts b/dist/esm/models/V1ReviewCountResponse.d.ts new file mode 100644 index 0000000..aabff45 --- /dev/null +++ b/dist/esm/models/V1ReviewCountResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReviewCountResponse + */ +export interface V1ReviewCountResponse { + /** + * Количество обработанных отзывов. + * @type {number} + * @memberof V1ReviewCountResponse + */ + processed?: number; + /** + * Количество всех отзывов. + * @type {number} + * @memberof V1ReviewCountResponse + */ + total?: number; + /** + * Количество необработанных отзывов. + * @type {number} + * @memberof V1ReviewCountResponse + */ + unprocessed?: number; +} +/** + * Check if a given object implements the V1ReviewCountResponse interface. + */ +export declare function instanceOfV1ReviewCountResponse(value: object): value is V1ReviewCountResponse; +export declare function V1ReviewCountResponseFromJSON(json: any): V1ReviewCountResponse; +export declare function V1ReviewCountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewCountResponse; +export declare function V1ReviewCountResponseToJSON(value?: V1ReviewCountResponse | null): any; diff --git a/dist/esm/models/V1ReviewCountResponse.js b/dist/esm/models/V1ReviewCountResponse.js new file mode 100644 index 0000000..e11b3ab --- /dev/null +++ b/dist/esm/models/V1ReviewCountResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ReviewCountResponse interface. + */ +export function instanceOfV1ReviewCountResponse(value) { + return true; +} +export function V1ReviewCountResponseFromJSON(json) { + return V1ReviewCountResponseFromJSONTyped(json, false); +} +export function V1ReviewCountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'processed': json['processed'] == null ? undefined : json['processed'], + 'total': json['total'] == null ? undefined : json['total'], + 'unprocessed': json['unprocessed'] == null ? undefined : json['unprocessed'], + }; +} +export function V1ReviewCountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'processed': value['processed'], + 'total': value['total'], + 'unprocessed': value['unprocessed'], + }; +} diff --git a/dist/esm/models/V1ReviewInfoRequest.d.ts b/dist/esm/models/V1ReviewInfoRequest.d.ts new file mode 100644 index 0000000..210d072 --- /dev/null +++ b/dist/esm/models/V1ReviewInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReviewInfoRequest + */ +export interface V1ReviewInfoRequest { + /** + * Идентификатор отзыва. + * @type {string} + * @memberof V1ReviewInfoRequest + */ + review_id: string; +} +/** + * Check if a given object implements the V1ReviewInfoRequest interface. + */ +export declare function instanceOfV1ReviewInfoRequest(value: object): value is V1ReviewInfoRequest; +export declare function V1ReviewInfoRequestFromJSON(json: any): V1ReviewInfoRequest; +export declare function V1ReviewInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewInfoRequest; +export declare function V1ReviewInfoRequestToJSON(value?: V1ReviewInfoRequest | null): any; diff --git a/dist/esm/models/V1ReviewInfoRequest.js b/dist/esm/models/V1ReviewInfoRequest.js new file mode 100644 index 0000000..91b9d55 --- /dev/null +++ b/dist/esm/models/V1ReviewInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ReviewInfoRequest interface. + */ +export function instanceOfV1ReviewInfoRequest(value) { + if (!('review_id' in value) || value['review_id'] === undefined) + return false; + return true; +} +export function V1ReviewInfoRequestFromJSON(json) { + return V1ReviewInfoRequestFromJSONTyped(json, false); +} +export function V1ReviewInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'review_id': json['review_id'], + }; +} +export function V1ReviewInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'review_id': value['review_id'], + }; +} diff --git a/dist/esm/models/V1ReviewInfoResponse.d.ts b/dist/esm/models/V1ReviewInfoResponse.d.ts new file mode 100644 index 0000000..a2d20de --- /dev/null +++ b/dist/esm/models/V1ReviewInfoResponse.d.ts @@ -0,0 +1,124 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewInfoResponseVideo } from './ReviewInfoResponseVideo'; +import type { ReviewInfoResponsePhoto } from './ReviewInfoResponsePhoto'; +/** + * + * @export + * @interface V1ReviewInfoResponse + */ +export interface V1ReviewInfoResponse { + /** + * Количество комментариев к отзыву. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + comments_amount?: number; + /** + * Количество дизлайков на отзыве. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + dislikes_amount?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof V1ReviewInfoResponse + */ + id?: string; + /** + * `true`, если отзыв участвует в подсчёте рейтинга. + * + * @type {boolean} + * @memberof V1ReviewInfoResponse + */ + is_rating_participant?: boolean; + /** + * Количество лайков на отзыве. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + likes_amount?: number; + /** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен, + * - `CANCELLED` — отменён. + * + * @type {string} + * @memberof V1ReviewInfoResponse + */ + order_status?: string; + /** + * Информация об изображении. + * @type {Array} + * @memberof V1ReviewInfoResponse + */ + photos?: Array; + /** + * Количество изображений у отзыва. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + photos_amount?: number; + /** + * Дата публикации отзыва. + * @type {string} + * @memberof V1ReviewInfoResponse + */ + published_at?: string; + /** + * Оценка отзыва. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + rating?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + sku?: number; + /** + * Статус отзыва: + * - `UNPROCESSED` — не обработан, + * - `PROCESSED` — обработан. + * + * @type {string} + * @memberof V1ReviewInfoResponse + */ + status?: string; + /** + * Текст отзыва. + * @type {string} + * @memberof V1ReviewInfoResponse + */ + text?: string; + /** + * Информация о видео. + * @type {Array} + * @memberof V1ReviewInfoResponse + */ + videos?: Array; + /** + * Количество видео у отзыва. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + videos_amount?: number; +} +/** + * Check if a given object implements the V1ReviewInfoResponse interface. + */ +export declare function instanceOfV1ReviewInfoResponse(value: object): value is V1ReviewInfoResponse; +export declare function V1ReviewInfoResponseFromJSON(json: any): V1ReviewInfoResponse; +export declare function V1ReviewInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewInfoResponse; +export declare function V1ReviewInfoResponseToJSON(value?: V1ReviewInfoResponse | null): any; diff --git a/dist/esm/models/V1ReviewInfoResponse.js b/dist/esm/models/V1ReviewInfoResponse.js new file mode 100644 index 0000000..915732d --- /dev/null +++ b/dist/esm/models/V1ReviewInfoResponse.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewInfoResponseVideoFromJSON, ReviewInfoResponseVideoToJSON, } from './ReviewInfoResponseVideo'; +import { ReviewInfoResponsePhotoFromJSON, ReviewInfoResponsePhotoToJSON, } from './ReviewInfoResponsePhoto'; +/** + * Check if a given object implements the V1ReviewInfoResponse interface. + */ +export function instanceOfV1ReviewInfoResponse(value) { + return true; +} +export function V1ReviewInfoResponseFromJSON(json) { + return V1ReviewInfoResponseFromJSONTyped(json, false); +} +export function V1ReviewInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], + 'dislikes_amount': json['dislikes_amount'] == null ? undefined : json['dislikes_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], + 'likes_amount': json['likes_amount'] == null ? undefined : json['likes_amount'], + 'order_status': json['order_status'] == null ? undefined : json['order_status'], + 'photos': json['photos'] == null ? undefined : (json['photos'].map(ReviewInfoResponsePhotoFromJSON)), + 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : json['status'], + 'text': json['text'] == null ? undefined : json['text'], + 'videos': json['videos'] == null ? undefined : (json['videos'].map(ReviewInfoResponseVideoFromJSON)), + 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], + }; +} +export function V1ReviewInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments_amount': value['comments_amount'], + 'dislikes_amount': value['dislikes_amount'], + 'id': value['id'], + 'is_rating_participant': value['is_rating_participant'], + 'likes_amount': value['likes_amount'], + 'order_status': value['order_status'], + 'photos': value['photos'] == null ? undefined : (value['photos'].map(ReviewInfoResponsePhotoToJSON)), + 'photos_amount': value['photos_amount'], + 'published_at': value['published_at'], + 'rating': value['rating'], + 'sku': value['sku'], + 'status': value['status'], + 'text': value['text'], + 'videos': value['videos'] == null ? undefined : (value['videos'].map(ReviewInfoResponseVideoToJSON)), + 'videos_amount': value['videos_amount'], + }; +} diff --git a/dist/esm/models/V1ReviewListRequest.d.ts b/dist/esm/models/V1ReviewListRequest.d.ts new file mode 100644 index 0000000..0671f82 --- /dev/null +++ b/dist/esm/models/V1ReviewListRequest.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReviewListRequest + */ +export interface V1ReviewListRequest { + /** + * Идентификатор последнего отзыва на странице. + * @type {string} + * @memberof V1ReviewListRequest + */ + last_id?: string; + /** + * Количество отзывов в ответе. Минимум — 20, максимум — 100. + * @type {number} + * @memberof V1ReviewListRequest + */ + limit: number; + /** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @type {string} + * @memberof V1ReviewListRequest + */ + sort_dir?: string; + /** + * Статусы отзывов: + * - `ALL` — все, + * - `UNPROCESSED` — необработанные, + * - `PROCESSED` — обработанные. + * + * @type {string} + * @memberof V1ReviewListRequest + */ + status?: string; +} +/** + * Check if a given object implements the V1ReviewListRequest interface. + */ +export declare function instanceOfV1ReviewListRequest(value: object): value is V1ReviewListRequest; +export declare function V1ReviewListRequestFromJSON(json: any): V1ReviewListRequest; +export declare function V1ReviewListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewListRequest; +export declare function V1ReviewListRequestToJSON(value?: V1ReviewListRequest | null): any; diff --git a/dist/esm/models/V1ReviewListRequest.js b/dist/esm/models/V1ReviewListRequest.js new file mode 100644 index 0000000..2a15e25 --- /dev/null +++ b/dist/esm/models/V1ReviewListRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1ReviewListRequest interface. + */ +export function instanceOfV1ReviewListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1ReviewListRequestFromJSON(json) { + return V1ReviewListRequestFromJSONTyped(json, false); +} +export function V1ReviewListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : json['sort_dir'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V1ReviewListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_dir': value['sort_dir'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V1ReviewListResponse.d.ts b/dist/esm/models/V1ReviewListResponse.d.ts new file mode 100644 index 0000000..02b68d7 --- /dev/null +++ b/dist/esm/models/V1ReviewListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewListResponseReview } from './ReviewListResponseReview'; +/** + * + * @export + * @interface V1ReviewListResponse + */ +export interface V1ReviewListResponse { + /** + * `true`, если в ответе вернули не все отзывы. + * + * @type {boolean} + * @memberof V1ReviewListResponse + */ + has_next?: boolean; + /** + * Идентификатор последнего отзыва на странице. + * @type {string} + * @memberof V1ReviewListResponse + */ + last_id?: string; + /** + * Информация об отзыве. + * @type {Array} + * @memberof V1ReviewListResponse + */ + reviews?: Array; +} +/** + * Check if a given object implements the V1ReviewListResponse interface. + */ +export declare function instanceOfV1ReviewListResponse(value: object): value is V1ReviewListResponse; +export declare function V1ReviewListResponseFromJSON(json: any): V1ReviewListResponse; +export declare function V1ReviewListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewListResponse; +export declare function V1ReviewListResponseToJSON(value?: V1ReviewListResponse | null): any; diff --git a/dist/esm/models/V1ReviewListResponse.js b/dist/esm/models/V1ReviewListResponse.js new file mode 100644 index 0000000..c7e9438 --- /dev/null +++ b/dist/esm/models/V1ReviewListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReviewListResponseReviewFromJSON, ReviewListResponseReviewToJSON, } from './ReviewListResponseReview'; +/** + * Check if a given object implements the V1ReviewListResponse interface. + */ +export function instanceOfV1ReviewListResponse(value) { + return true; +} +export function V1ReviewListResponseFromJSON(json) { + return V1ReviewListResponseFromJSONTyped(json, false); +} +export function V1ReviewListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'reviews': json['reviews'] == null ? undefined : (json['reviews'].map(ReviewListResponseReviewFromJSON)), + }; +} +export function V1ReviewListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'last_id': value['last_id'], + 'reviews': value['reviews'] == null ? undefined : (value['reviews'].map(ReviewListResponseReviewToJSON)), + }; +} diff --git a/dist/esm/models/V1RolesByTokenResponse.d.ts b/dist/esm/models/V1RolesByTokenResponse.d.ts new file mode 100644 index 0000000..2d85d90 --- /dev/null +++ b/dist/esm/models/V1RolesByTokenResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RolesByTokenResponseRoles } from './RolesByTokenResponseRoles'; +/** + * + * @export + * @interface V1RolesByTokenResponse + */ +export interface V1RolesByTokenResponse { + /** + * Дата истечения срока действия ключа. + * @type {string} + * @memberof V1RolesByTokenResponse + */ + expires_at?: string; + /** + * Информация о доступных ролях и методах. + * @type {Array} + * @memberof V1RolesByTokenResponse + */ + roles?: Array; +} +/** + * Check if a given object implements the V1RolesByTokenResponse interface. + */ +export declare function instanceOfV1RolesByTokenResponse(value: object): value is V1RolesByTokenResponse; +export declare function V1RolesByTokenResponseFromJSON(json: any): V1RolesByTokenResponse; +export declare function V1RolesByTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RolesByTokenResponse; +export declare function V1RolesByTokenResponseToJSON(value?: V1RolesByTokenResponse | null): any; diff --git a/dist/esm/models/V1RolesByTokenResponse.js b/dist/esm/models/V1RolesByTokenResponse.js new file mode 100644 index 0000000..ffb3118 --- /dev/null +++ b/dist/esm/models/V1RolesByTokenResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RolesByTokenResponseRolesFromJSON, RolesByTokenResponseRolesToJSON, } from './RolesByTokenResponseRoles'; +/** + * Check if a given object implements the V1RolesByTokenResponse interface. + */ +export function instanceOfV1RolesByTokenResponse(value) { + return true; +} +export function V1RolesByTokenResponseFromJSON(json) { + return V1RolesByTokenResponseFromJSONTyped(json, false); +} +export function V1RolesByTokenResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], + 'roles': json['roles'] == null ? undefined : (json['roles'].map(RolesByTokenResponseRolesFromJSON)), + }; +} +export function V1RolesByTokenResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'expires_at': value['expires_at'], + 'roles': value['roles'] == null ? undefined : (value['roles'].map(RolesByTokenResponseRolesToJSON)), + }; +} diff --git a/dist/esm/models/V1SearchAttributeValuesRequest.d.ts b/dist/esm/models/V1SearchAttributeValuesRequest.d.ts new file mode 100644 index 0000000..08501a4 --- /dev/null +++ b/dist/esm/models/V1SearchAttributeValuesRequest.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SearchAttributeValuesRequest + */ +export interface V1SearchAttributeValuesRequest { + /** + * Идентификатор характеристики. Можно получить с помощью метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * @type {number} + * @memberof V1SearchAttributeValuesRequest + */ + attribute_id: number; + /** + * Идентификатор категории. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1SearchAttributeValuesRequest + */ + description_category_id: number; + /** + * Количество значений в ответе: + * - максимум — 100, + * - минимум — 1. + * + * @type {number} + * @memberof V1SearchAttributeValuesRequest + */ + limit: number; + /** + * Идентификатор типа товара. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1SearchAttributeValuesRequest + */ + type_id: number; + /** + * Значение, по которому система будет искать справочные значения. Минимум — 2 символа. + * @type {string} + * @memberof V1SearchAttributeValuesRequest + */ + value: string; +} +/** + * Check if a given object implements the V1SearchAttributeValuesRequest interface. + */ +export declare function instanceOfV1SearchAttributeValuesRequest(value: object): value is V1SearchAttributeValuesRequest; +export declare function V1SearchAttributeValuesRequestFromJSON(json: any): V1SearchAttributeValuesRequest; +export declare function V1SearchAttributeValuesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchAttributeValuesRequest; +export declare function V1SearchAttributeValuesRequestToJSON(value?: V1SearchAttributeValuesRequest | null): any; diff --git a/dist/esm/models/V1SearchAttributeValuesRequest.js b/dist/esm/models/V1SearchAttributeValuesRequest.js new file mode 100644 index 0000000..b1ae6ff --- /dev/null +++ b/dist/esm/models/V1SearchAttributeValuesRequest.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SearchAttributeValuesRequest interface. + */ +export function instanceOfV1SearchAttributeValuesRequest(value) { + if (!('attribute_id' in value) || value['attribute_id'] === undefined) + return false; + if (!('description_category_id' in value) || value['description_category_id'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('type_id' in value) || value['type_id'] === undefined) + return false; + if (!('value' in value) || value['value'] === undefined) + return false; + return true; +} +export function V1SearchAttributeValuesRequestFromJSON(json) { + return V1SearchAttributeValuesRequestFromJSONTyped(json, false); +} +export function V1SearchAttributeValuesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attribute_id': json['attribute_id'], + 'description_category_id': json['description_category_id'], + 'limit': json['limit'], + 'type_id': json['type_id'], + 'value': json['value'], + }; +} +export function V1SearchAttributeValuesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'attribute_id': value['attribute_id'], + 'description_category_id': value['description_category_id'], + 'limit': value['limit'], + 'type_id': value['type_id'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V1SearchAttributeValuesResponse.d.ts b/dist/esm/models/V1SearchAttributeValuesResponse.d.ts new file mode 100644 index 0000000..f7324ba --- /dev/null +++ b/dist/esm/models/V1SearchAttributeValuesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SearchAttributeValuesResponseValue } from './SearchAttributeValuesResponseValue'; +/** + * + * @export + * @interface V1SearchAttributeValuesResponse + */ +export interface V1SearchAttributeValuesResponse { + /** + * Значения характеристики. + * @type {Array} + * @memberof V1SearchAttributeValuesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1SearchAttributeValuesResponse interface. + */ +export declare function instanceOfV1SearchAttributeValuesResponse(value: object): value is V1SearchAttributeValuesResponse; +export declare function V1SearchAttributeValuesResponseFromJSON(json: any): V1SearchAttributeValuesResponse; +export declare function V1SearchAttributeValuesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchAttributeValuesResponse; +export declare function V1SearchAttributeValuesResponseToJSON(value?: V1SearchAttributeValuesResponse | null): any; diff --git a/dist/esm/models/V1SearchAttributeValuesResponse.js b/dist/esm/models/V1SearchAttributeValuesResponse.js new file mode 100644 index 0000000..e6f87b8 --- /dev/null +++ b/dist/esm/models/V1SearchAttributeValuesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SearchAttributeValuesResponseValueFromJSON, SearchAttributeValuesResponseValueToJSON, } from './SearchAttributeValuesResponseValue'; +/** + * Check if a given object implements the V1SearchAttributeValuesResponse interface. + */ +export function instanceOfV1SearchAttributeValuesResponse(value) { + return true; +} +export function V1SearchAttributeValuesResponseFromJSON(json) { + return V1SearchAttributeValuesResponseFromJSONTyped(json, false); +} +export function V1SearchAttributeValuesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(SearchAttributeValuesResponseValueFromJSON)), + }; +} +export function V1SearchAttributeValuesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(SearchAttributeValuesResponseValueToJSON)), + }; +} diff --git a/dist/esm/models/V1SearchQueriesTextRequest.d.ts b/dist/esm/models/V1SearchQueriesTextRequest.d.ts new file mode 100644 index 0000000..e749bc3 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTextRequest.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SearchQueriesTextRequestSortDir } from './SearchQueriesTextRequestSortDir'; +import type { SearchQueriesTextRequestSortBy } from './SearchQueriesTextRequestSortBy'; +/** + * + * @export + * @interface V1SearchQueriesTextRequest + */ +export interface V1SearchQueriesTextRequest { + /** + * Количество значений на странице. + * @type {string} + * @memberof V1SearchQueriesTextRequest + */ + limit: string; + /** + * Количество элементов, которое будет пропущено в ответе. + * @type {string} + * @memberof V1SearchQueriesTextRequest + */ + offset: string; + /** + * + * @type {SearchQueriesTextRequestSortBy} + * @memberof V1SearchQueriesTextRequest + */ + sort_by?: SearchQueriesTextRequestSortBy; + /** + * + * @type {SearchQueriesTextRequestSortDir} + * @memberof V1SearchQueriesTextRequest + */ + sort_dir?: SearchQueriesTextRequestSortDir; + /** + * Поиск по тексту. + * @type {string} + * @memberof V1SearchQueriesTextRequest + */ + text: string; +} +/** + * Check if a given object implements the V1SearchQueriesTextRequest interface. + */ +export declare function instanceOfV1SearchQueriesTextRequest(value: object): value is V1SearchQueriesTextRequest; +export declare function V1SearchQueriesTextRequestFromJSON(json: any): V1SearchQueriesTextRequest; +export declare function V1SearchQueriesTextRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTextRequest; +export declare function V1SearchQueriesTextRequestToJSON(value?: V1SearchQueriesTextRequest | null): any; diff --git a/dist/esm/models/V1SearchQueriesTextRequest.js b/dist/esm/models/V1SearchQueriesTextRequest.js new file mode 100644 index 0000000..33cd397 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTextRequest.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SearchQueriesTextRequestSortDirFromJSON, SearchQueriesTextRequestSortDirToJSON, } from './SearchQueriesTextRequestSortDir'; +import { SearchQueriesTextRequestSortByFromJSON, SearchQueriesTextRequestSortByToJSON, } from './SearchQueriesTextRequestSortBy'; +/** + * Check if a given object implements the V1SearchQueriesTextRequest interface. + */ +export function instanceOfV1SearchQueriesTextRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('offset' in value) || value['offset'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + return true; +} +export function V1SearchQueriesTextRequestFromJSON(json) { + return V1SearchQueriesTextRequestFromJSONTyped(json, false); +} +export function V1SearchQueriesTextRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'offset': json['offset'], + 'sort_by': json['sort_by'] == null ? undefined : SearchQueriesTextRequestSortByFromJSON(json['sort_by']), + 'sort_dir': json['sort_dir'] == null ? undefined : SearchQueriesTextRequestSortDirFromJSON(json['sort_dir']), + 'text': json['text'], + }; +} +export function V1SearchQueriesTextRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + 'sort_by': SearchQueriesTextRequestSortByToJSON(value['sort_by']), + 'sort_dir': SearchQueriesTextRequestSortDirToJSON(value['sort_dir']), + 'text': value['text'], + }; +} diff --git a/dist/esm/models/V1SearchQueriesTextResponse.d.ts b/dist/esm/models/V1SearchQueriesTextResponse.d.ts new file mode 100644 index 0000000..f21b6e1 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTextResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SearchQueriesTextResponseSearchQuery } from './V1SearchQueriesTextResponseSearchQuery'; +/** + * + * @export + * @interface V1SearchQueriesTextResponse + */ +export interface V1SearchQueriesTextResponse { + /** + * Количество поисковых запросов на странице. + * @type {string} + * @memberof V1SearchQueriesTextResponse + */ + offset?: string; + /** + * Информация о поисковых запросах. + * @type {Array} + * @memberof V1SearchQueriesTextResponse + */ + search_queries?: Array; + /** + * Общее количество поисковых запросов. + * @type {string} + * @memberof V1SearchQueriesTextResponse + */ + total?: string; +} +/** + * Check if a given object implements the V1SearchQueriesTextResponse interface. + */ +export declare function instanceOfV1SearchQueriesTextResponse(value: object): value is V1SearchQueriesTextResponse; +export declare function V1SearchQueriesTextResponseFromJSON(json: any): V1SearchQueriesTextResponse; +export declare function V1SearchQueriesTextResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTextResponse; +export declare function V1SearchQueriesTextResponseToJSON(value?: V1SearchQueriesTextResponse | null): any; diff --git a/dist/esm/models/V1SearchQueriesTextResponse.js b/dist/esm/models/V1SearchQueriesTextResponse.js new file mode 100644 index 0000000..36fa8a5 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTextResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SearchQueriesTextResponseSearchQueryFromJSON, V1SearchQueriesTextResponseSearchQueryToJSON, } from './V1SearchQueriesTextResponseSearchQuery'; +/** + * Check if a given object implements the V1SearchQueriesTextResponse interface. + */ +export function instanceOfV1SearchQueriesTextResponse(value) { + return true; +} +export function V1SearchQueriesTextResponseFromJSON(json) { + return V1SearchQueriesTextResponseFromJSONTyped(json, false); +} +export function V1SearchQueriesTextResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offset': json['offset'] == null ? undefined : json['offset'], + 'search_queries': json['search_queries'] == null ? undefined : (json['search_queries'].map(V1SearchQueriesTextResponseSearchQueryFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V1SearchQueriesTextResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'offset': value['offset'], + 'search_queries': value['search_queries'] == null ? undefined : (value['search_queries'].map(V1SearchQueriesTextResponseSearchQueryToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V1SearchQueriesTextResponseSearchQuery.d.ts b/dist/esm/models/V1SearchQueriesTextResponseSearchQuery.d.ts new file mode 100644 index 0000000..aa293fb --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTextResponseSearchQuery.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SearchQueriesTextResponseSearchQuery + */ +export interface V1SearchQueriesTextResponseSearchQuery { + /** + * Количество покупателей, которые добавили хотя бы 1 товар в корзину. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + add_to_cart?: number; + /** + * Средняя цена товаров в рублях. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + avg_price?: number; + /** + * Количество покупателей, которые искали товар по этому запросу. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + client_count?: number; + /** + * Процент покупателей, которые добавили хотя бы 1 товар в корзину. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + conversion_to_cart?: number; + /** + * Количество просмотров по товарам. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + items_views?: number; + /** + * Поисковый запрос. + * @type {string} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + query?: string; + /** + * Среднее количество продавцов, чьи товары посмотрели покупатели по этому запросу. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + sellers_count?: number; +} +/** + * Check if a given object implements the V1SearchQueriesTextResponseSearchQuery interface. + */ +export declare function instanceOfV1SearchQueriesTextResponseSearchQuery(value: object): value is V1SearchQueriesTextResponseSearchQuery; +export declare function V1SearchQueriesTextResponseSearchQueryFromJSON(json: any): V1SearchQueriesTextResponseSearchQuery; +export declare function V1SearchQueriesTextResponseSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTextResponseSearchQuery; +export declare function V1SearchQueriesTextResponseSearchQueryToJSON(value?: V1SearchQueriesTextResponseSearchQuery | null): any; diff --git a/dist/esm/models/V1SearchQueriesTextResponseSearchQuery.js b/dist/esm/models/V1SearchQueriesTextResponseSearchQuery.js new file mode 100644 index 0000000..6a2d620 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTextResponseSearchQuery.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SearchQueriesTextResponseSearchQuery interface. + */ +export function instanceOfV1SearchQueriesTextResponseSearchQuery(value) { + return true; +} +export function V1SearchQueriesTextResponseSearchQueryFromJSON(json) { + return V1SearchQueriesTextResponseSearchQueryFromJSONTyped(json, false); +} +export function V1SearchQueriesTextResponseSearchQueryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'add_to_cart': json['add_to_cart'] == null ? undefined : json['add_to_cart'], + 'avg_price': json['avg_price'] == null ? undefined : json['avg_price'], + 'client_count': json['client_count'] == null ? undefined : json['client_count'], + 'conversion_to_cart': json['conversion_to_cart'] == null ? undefined : json['conversion_to_cart'], + 'items_views': json['items_views'] == null ? undefined : json['items_views'], + 'query': json['query'] == null ? undefined : json['query'], + 'sellers_count': json['sellers_count'] == null ? undefined : json['sellers_count'], + }; +} +export function V1SearchQueriesTextResponseSearchQueryToJSON(value) { + if (value == null) { + return value; + } + return { + 'add_to_cart': value['add_to_cart'], + 'avg_price': value['avg_price'], + 'client_count': value['client_count'], + 'conversion_to_cart': value['conversion_to_cart'], + 'items_views': value['items_views'], + 'query': value['query'], + 'sellers_count': value['sellers_count'], + }; +} diff --git a/dist/esm/models/V1SearchQueriesTopRequest.d.ts b/dist/esm/models/V1SearchQueriesTopRequest.d.ts new file mode 100644 index 0000000..80260d9 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTopRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SearchQueriesTopRequest + */ +export interface V1SearchQueriesTopRequest { + /** + * Количество значений на странице. + * @type {string} + * @memberof V1SearchQueriesTopRequest + */ + limit: string; + /** + * Количество элементов, которое будет пропущено в ответе. + * @type {string} + * @memberof V1SearchQueriesTopRequest + */ + offset: string; +} +/** + * Check if a given object implements the V1SearchQueriesTopRequest interface. + */ +export declare function instanceOfV1SearchQueriesTopRequest(value: object): value is V1SearchQueriesTopRequest; +export declare function V1SearchQueriesTopRequestFromJSON(json: any): V1SearchQueriesTopRequest; +export declare function V1SearchQueriesTopRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTopRequest; +export declare function V1SearchQueriesTopRequestToJSON(value?: V1SearchQueriesTopRequest | null): any; diff --git a/dist/esm/models/V1SearchQueriesTopRequest.js b/dist/esm/models/V1SearchQueriesTopRequest.js new file mode 100644 index 0000000..b8005f6 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTopRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SearchQueriesTopRequest interface. + */ +export function instanceOfV1SearchQueriesTopRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('offset' in value) || value['offset'] === undefined) + return false; + return true; +} +export function V1SearchQueriesTopRequestFromJSON(json) { + return V1SearchQueriesTopRequestFromJSONTyped(json, false); +} +export function V1SearchQueriesTopRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'offset': json['offset'], + }; +} +export function V1SearchQueriesTopRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/V1SearchQueriesTopResponse.d.ts b/dist/esm/models/V1SearchQueriesTopResponse.d.ts new file mode 100644 index 0000000..5b3baa9 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTopResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SearchQueriesTopResponseSearchQuery } from './V1SearchQueriesTopResponseSearchQuery'; +/** + * + * @export + * @interface V1SearchQueriesTopResponse + */ +export interface V1SearchQueriesTopResponse { + /** + * Количество поисковых запросов на странице. + * @type {string} + * @memberof V1SearchQueriesTopResponse + */ + offset?: string; + /** + * Информация о поисковых запросах. + * @type {Array} + * @memberof V1SearchQueriesTopResponse + */ + search_queries?: Array; + /** + * Общее количество поисковых запросов. + * @type {string} + * @memberof V1SearchQueriesTopResponse + */ + total?: string; +} +/** + * Check if a given object implements the V1SearchQueriesTopResponse interface. + */ +export declare function instanceOfV1SearchQueriesTopResponse(value: object): value is V1SearchQueriesTopResponse; +export declare function V1SearchQueriesTopResponseFromJSON(json: any): V1SearchQueriesTopResponse; +export declare function V1SearchQueriesTopResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTopResponse; +export declare function V1SearchQueriesTopResponseToJSON(value?: V1SearchQueriesTopResponse | null): any; diff --git a/dist/esm/models/V1SearchQueriesTopResponse.js b/dist/esm/models/V1SearchQueriesTopResponse.js new file mode 100644 index 0000000..f8e2fe4 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTopResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SearchQueriesTopResponseSearchQueryFromJSON, V1SearchQueriesTopResponseSearchQueryToJSON, } from './V1SearchQueriesTopResponseSearchQuery'; +/** + * Check if a given object implements the V1SearchQueriesTopResponse interface. + */ +export function instanceOfV1SearchQueriesTopResponse(value) { + return true; +} +export function V1SearchQueriesTopResponseFromJSON(json) { + return V1SearchQueriesTopResponseFromJSONTyped(json, false); +} +export function V1SearchQueriesTopResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offset': json['offset'] == null ? undefined : json['offset'], + 'search_queries': json['search_queries'] == null ? undefined : (json['search_queries'].map(V1SearchQueriesTopResponseSearchQueryFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V1SearchQueriesTopResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'offset': value['offset'], + 'search_queries': value['search_queries'] == null ? undefined : (value['search_queries'].map(V1SearchQueriesTopResponseSearchQueryToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V1SearchQueriesTopResponseSearchQuery.d.ts b/dist/esm/models/V1SearchQueriesTopResponseSearchQuery.d.ts new file mode 100644 index 0000000..b860845 --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTopResponseSearchQuery.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SearchQueriesTopResponseSearchQuery + */ +export interface V1SearchQueriesTopResponseSearchQuery { + /** + * Количество покупателей, которые добавили хотя бы 1 товар в корзину. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + add_to_cart?: number; + /** + * Средняя цена товаров в рублях. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + avg_price?: number; + /** + * Количество покупателей, которые искали товар по этому запросу. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + client_count?: number; + /** + * Процент покупателей, которые добавили хотя бы 1 товар в корзину. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + conversion_to_cart?: number; + /** + * Количество просмотров по товарам. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + items_views?: number; + /** + * Поисковый запрос. + * @type {string} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + query?: string; + /** + * Среднее количество продавцов, чьи товары посмотрели покупатели по этому запросу. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + sellers_count?: number; +} +/** + * Check if a given object implements the V1SearchQueriesTopResponseSearchQuery interface. + */ +export declare function instanceOfV1SearchQueriesTopResponseSearchQuery(value: object): value is V1SearchQueriesTopResponseSearchQuery; +export declare function V1SearchQueriesTopResponseSearchQueryFromJSON(json: any): V1SearchQueriesTopResponseSearchQuery; +export declare function V1SearchQueriesTopResponseSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTopResponseSearchQuery; +export declare function V1SearchQueriesTopResponseSearchQueryToJSON(value?: V1SearchQueriesTopResponseSearchQuery | null): any; diff --git a/dist/esm/models/V1SearchQueriesTopResponseSearchQuery.js b/dist/esm/models/V1SearchQueriesTopResponseSearchQuery.js new file mode 100644 index 0000000..1639a1f --- /dev/null +++ b/dist/esm/models/V1SearchQueriesTopResponseSearchQuery.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SearchQueriesTopResponseSearchQuery interface. + */ +export function instanceOfV1SearchQueriesTopResponseSearchQuery(value) { + return true; +} +export function V1SearchQueriesTopResponseSearchQueryFromJSON(json) { + return V1SearchQueriesTopResponseSearchQueryFromJSONTyped(json, false); +} +export function V1SearchQueriesTopResponseSearchQueryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'add_to_cart': json['add_to_cart'] == null ? undefined : json['add_to_cart'], + 'avg_price': json['avg_price'] == null ? undefined : json['avg_price'], + 'client_count': json['client_count'] == null ? undefined : json['client_count'], + 'conversion_to_cart': json['conversion_to_cart'] == null ? undefined : json['conversion_to_cart'], + 'items_views': json['items_views'] == null ? undefined : json['items_views'], + 'query': json['query'] == null ? undefined : json['query'], + 'sellers_count': json['sellers_count'] == null ? undefined : json['sellers_count'], + }; +} +export function V1SearchQueriesTopResponseSearchQueryToJSON(value) { + if (value == null) { + return value; + } + return { + 'add_to_cart': value['add_to_cart'], + 'avg_price': value['avg_price'], + 'client_count': value['client_count'], + 'conversion_to_cart': value['conversion_to_cart'], + 'items_views': value['items_views'], + 'query': value['query'], + 'sellers_count': value['sellers_count'], + }; +} diff --git a/dist/esm/models/V1SellerActionsArchiveRequest.d.ts b/dist/esm/models/V1SellerActionsArchiveRequest.d.ts new file mode 100644 index 0000000..0701974 --- /dev/null +++ b/dist/esm/models/V1SellerActionsArchiveRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsArchiveRequest + */ +export interface V1SellerActionsArchiveRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsArchiveRequest + */ + action_id: number; +} +/** + * Check if a given object implements the V1SellerActionsArchiveRequest interface. + */ +export declare function instanceOfV1SellerActionsArchiveRequest(value: object): value is V1SellerActionsArchiveRequest; +export declare function V1SellerActionsArchiveRequestFromJSON(json: any): V1SellerActionsArchiveRequest; +export declare function V1SellerActionsArchiveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsArchiveRequest; +export declare function V1SellerActionsArchiveRequestToJSON(value?: V1SellerActionsArchiveRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsArchiveRequest.js b/dist/esm/models/V1SellerActionsArchiveRequest.js new file mode 100644 index 0000000..3c6fb4f --- /dev/null +++ b/dist/esm/models/V1SellerActionsArchiveRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsArchiveRequest interface. + */ +export function instanceOfV1SellerActionsArchiveRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + return true; +} +export function V1SellerActionsArchiveRequestFromJSON(json) { + return V1SellerActionsArchiveRequestFromJSONTyped(json, false); +} +export function V1SellerActionsArchiveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + }; +} +export function V1SellerActionsArchiveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/esm/models/V1SellerActionsChangeActivityRequest.d.ts b/dist/esm/models/V1SellerActionsChangeActivityRequest.d.ts new file mode 100644 index 0000000..0ba6f9a --- /dev/null +++ b/dist/esm/models/V1SellerActionsChangeActivityRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsChangeActivityRequest + */ +export interface V1SellerActionsChangeActivityRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsChangeActivityRequest + */ + action_id: number; + /** + * `true`, чтобы включить акцию. + * + * @type {boolean} + * @memberof V1SellerActionsChangeActivityRequest + */ + is_turn_on: boolean; +} +/** + * Check if a given object implements the V1SellerActionsChangeActivityRequest interface. + */ +export declare function instanceOfV1SellerActionsChangeActivityRequest(value: object): value is V1SellerActionsChangeActivityRequest; +export declare function V1SellerActionsChangeActivityRequestFromJSON(json: any): V1SellerActionsChangeActivityRequest; +export declare function V1SellerActionsChangeActivityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsChangeActivityRequest; +export declare function V1SellerActionsChangeActivityRequestToJSON(value?: V1SellerActionsChangeActivityRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsChangeActivityRequest.js b/dist/esm/models/V1SellerActionsChangeActivityRequest.js new file mode 100644 index 0000000..e5476c2 --- /dev/null +++ b/dist/esm/models/V1SellerActionsChangeActivityRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsChangeActivityRequest interface. + */ +export function instanceOfV1SellerActionsChangeActivityRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('is_turn_on' in value) || value['is_turn_on'] === undefined) + return false; + return true; +} +export function V1SellerActionsChangeActivityRequestFromJSON(json) { + return V1SellerActionsChangeActivityRequestFromJSONTyped(json, false); +} +export function V1SellerActionsChangeActivityRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'is_turn_on': json['is_turn_on'], + }; +} +export function V1SellerActionsChangeActivityRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'is_turn_on': value['is_turn_on'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateDiscountRequest.d.ts b/dist/esm/models/V1SellerActionsCreateDiscountRequest.d.ts new file mode 100644 index 0000000..6b32877 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateDiscountRequest + */ +export interface V1SellerActionsCreateDiscountRequest { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountRequest + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountRequest + */ + date_start: string; + /** + * Минимальный процент скидки. + * @type {number} + * @memberof V1SellerActionsCreateDiscountRequest + */ + min_action_percent: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountRequest + */ + title?: string; +} +/** + * Check if a given object implements the V1SellerActionsCreateDiscountRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateDiscountRequest(value: object): value is V1SellerActionsCreateDiscountRequest; +export declare function V1SellerActionsCreateDiscountRequestFromJSON(json: any): V1SellerActionsCreateDiscountRequest; +export declare function V1SellerActionsCreateDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountRequest; +export declare function V1SellerActionsCreateDiscountRequestToJSON(value?: V1SellerActionsCreateDiscountRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateDiscountRequest.js b/dist/esm/models/V1SellerActionsCreateDiscountRequest.js new file mode 100644 index 0000000..5e85be4 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountRequest.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsCreateDiscountRequest interface. + */ +export function instanceOfV1SellerActionsCreateDiscountRequest(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('min_action_percent' in value) || value['min_action_percent'] === undefined) + return false; + return true; +} +export function V1SellerActionsCreateDiscountRequestFromJSON(json) { + return V1SellerActionsCreateDiscountRequestFromJSONTyped(json, false); +} +export function V1SellerActionsCreateDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'min_action_percent': json['min_action_percent'], + 'title': json['title'] == null ? undefined : json['title'], + }; +} +export function V1SellerActionsCreateDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'min_action_percent': value['min_action_percent'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateDiscountResponse.d.ts b/dist/esm/models/V1SellerActionsCreateDiscountResponse.d.ts new file mode 100644 index 0000000..f7d3744 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateDiscountResponse + */ +export interface V1SellerActionsCreateDiscountResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateDiscountResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateDiscountResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateDiscountResponse(value: object): value is V1SellerActionsCreateDiscountResponse; +export declare function V1SellerActionsCreateDiscountResponseFromJSON(json: any): V1SellerActionsCreateDiscountResponse; +export declare function V1SellerActionsCreateDiscountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountResponse; +export declare function V1SellerActionsCreateDiscountResponseToJSON(value?: V1SellerActionsCreateDiscountResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateDiscountResponse.js b/dist/esm/models/V1SellerActionsCreateDiscountResponse.js new file mode 100644 index 0000000..c8792cf --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsCreateDiscountResponse interface. + */ +export function instanceOfV1SellerActionsCreateDiscountResponse(value) { + return true; +} +export function V1SellerActionsCreateDiscountResponseFromJSON(json) { + return V1SellerActionsCreateDiscountResponseFromJSONTyped(json, false); +} +export function V1SellerActionsCreateDiscountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +export function V1SellerActionsCreateDiscountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequest.d.ts b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequest.d.ts new file mode 100644 index 0000000..e9bd754 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequest.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum } from './V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsCreateDiscountWithConditionRequest + */ +export interface V1SellerActionsCreateDiscountWithConditionRequest { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + date_start: string; + /** + * + * @type {V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + discount_type: V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum; + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + discount_value: number; + /** + * Сумма заказа, с которой действует скидка. + * @type {number} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + min_order_amount: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + title?: string; +} +/** + * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateDiscountWithConditionRequest(value: object): value is V1SellerActionsCreateDiscountWithConditionRequest; +export declare function V1SellerActionsCreateDiscountWithConditionRequestFromJSON(json: any): V1SellerActionsCreateDiscountWithConditionRequest; +export declare function V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountWithConditionRequest; +export declare function V1SellerActionsCreateDiscountWithConditionRequestToJSON(value?: V1SellerActionsCreateDiscountWithConditionRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequest.js b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequest.js new file mode 100644 index 0000000..f550baa --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequest.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON, V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON, } from './V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum'; +/** + * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionRequest interface. + */ +export function instanceOfV1SellerActionsCreateDiscountWithConditionRequest(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_type' in value) || value['discount_type'] === undefined) + return false; + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('min_order_amount' in value) || value['min_order_amount'] === undefined) + return false; + return true; +} +export function V1SellerActionsCreateDiscountWithConditionRequestFromJSON(json) { + return V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped(json, false); +} +export function V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_type': V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON(json['discount_type']), + 'discount_value': json['discount_value'], + 'min_order_amount': json['min_order_amount'], + 'title': json['title'] == null ? undefined : json['title'], + }; +} +export function V1SellerActionsCreateDiscountWithConditionRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_type': V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON(value['discount_type']), + 'discount_value': value['discount_value'], + 'min_order_amount': value['min_order_amount'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.d.ts b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.d.ts new file mode 100644 index 0000000..01cd55b --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export declare const V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum: { + readonly PERCENT: "PERCENT"; + readonly CURRENCY: "CURRENCY"; +}; +export type V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum = typeof V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum[keyof typeof V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum]; +export declare function instanceOfV1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum(value: any): boolean; +export declare function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON(json: any): V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON(value?: V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.js b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.js new file mode 100644 index 0000000..4bca137 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export const V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum = { + PERCENT: 'PERCENT', + CURRENCY: 'CURRENCY' +}; +export function instanceOfV1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum(value) { + for (const key in V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum, key)) { + if (V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON(json) { + return V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSONTyped(json, false); +} +export function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SellerActionsCreateDiscountWithConditionResponse.d.ts b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionResponse.d.ts new file mode 100644 index 0000000..a24fc04 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateDiscountWithConditionResponse + */ +export interface V1SellerActionsCreateDiscountWithConditionResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateDiscountWithConditionResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateDiscountWithConditionResponse(value: object): value is V1SellerActionsCreateDiscountWithConditionResponse; +export declare function V1SellerActionsCreateDiscountWithConditionResponseFromJSON(json: any): V1SellerActionsCreateDiscountWithConditionResponse; +export declare function V1SellerActionsCreateDiscountWithConditionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountWithConditionResponse; +export declare function V1SellerActionsCreateDiscountWithConditionResponseToJSON(value?: V1SellerActionsCreateDiscountWithConditionResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateDiscountWithConditionResponse.js b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionResponse.js new file mode 100644 index 0000000..5ad3467 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateDiscountWithConditionResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionResponse interface. + */ +export function instanceOfV1SellerActionsCreateDiscountWithConditionResponse(value) { + return true; +} +export function V1SellerActionsCreateDiscountWithConditionResponseFromJSON(json) { + return V1SellerActionsCreateDiscountWithConditionResponseFromJSONTyped(json, false); +} +export function V1SellerActionsCreateDiscountWithConditionResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +export function V1SellerActionsCreateDiscountWithConditionResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateInstallmentRequest.d.ts b/dist/esm/models/V1SellerActionsCreateInstallmentRequest.d.ts new file mode 100644 index 0000000..36610b7 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateInstallmentRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateInstallmentRequest + */ +export interface V1SellerActionsCreateInstallmentRequest { + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateInstallmentRequest + */ + date_start: string; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateInstallmentRequest + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsCreateInstallmentRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateInstallmentRequest(value: object): value is V1SellerActionsCreateInstallmentRequest; +export declare function V1SellerActionsCreateInstallmentRequestFromJSON(json: any): V1SellerActionsCreateInstallmentRequest; +export declare function V1SellerActionsCreateInstallmentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateInstallmentRequest; +export declare function V1SellerActionsCreateInstallmentRequestToJSON(value?: V1SellerActionsCreateInstallmentRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateInstallmentRequest.js b/dist/esm/models/V1SellerActionsCreateInstallmentRequest.js new file mode 100644 index 0000000..2a08f9c --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateInstallmentRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsCreateInstallmentRequest interface. + */ +export function instanceOfV1SellerActionsCreateInstallmentRequest(value) { + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +export function V1SellerActionsCreateInstallmentRequestFromJSON(json) { + return V1SellerActionsCreateInstallmentRequestFromJSONTyped(json, false); +} +export function V1SellerActionsCreateInstallmentRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_start': json['date_start'], + 'title': json['title'], + }; +} +export function V1SellerActionsCreateInstallmentRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_start': value['date_start'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateInstallmentResponse.d.ts b/dist/esm/models/V1SellerActionsCreateInstallmentResponse.d.ts new file mode 100644 index 0000000..e2e5d8a --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateInstallmentResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateInstallmentResponse + */ +export interface V1SellerActionsCreateInstallmentResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateInstallmentResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateInstallmentResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateInstallmentResponse(value: object): value is V1SellerActionsCreateInstallmentResponse; +export declare function V1SellerActionsCreateInstallmentResponseFromJSON(json: any): V1SellerActionsCreateInstallmentResponse; +export declare function V1SellerActionsCreateInstallmentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateInstallmentResponse; +export declare function V1SellerActionsCreateInstallmentResponseToJSON(value?: V1SellerActionsCreateInstallmentResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateInstallmentResponse.js b/dist/esm/models/V1SellerActionsCreateInstallmentResponse.js new file mode 100644 index 0000000..513c71c --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateInstallmentResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsCreateInstallmentResponse interface. + */ +export function instanceOfV1SellerActionsCreateInstallmentResponse(value) { + return true; +} +export function V1SellerActionsCreateInstallmentResponseFromJSON(json) { + return V1SellerActionsCreateInstallmentResponseFromJSONTyped(json, false); +} +export function V1SellerActionsCreateInstallmentResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +export function V1SellerActionsCreateInstallmentResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequest.d.ts b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequest.d.ts new file mode 100644 index 0000000..e03938a --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequest.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel } from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel'; +import type { V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum } from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsCreateMultiLevelDiscountRequest + */ +export interface V1SellerActionsCreateMultiLevelDiscountRequest { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + date_start: string; + /** + * Уровни скидки. + * @type {Array} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + discount_levels: Array; + /** + * + * @type {V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + discount_type: V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum; + /** + * `true`, если акция только для юридических лиц. + * + * @type {boolean} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + is_legal_entities_segment?: boolean; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + title?: string; +} +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateMultiLevelDiscountRequest(value: object): value is V1SellerActionsCreateMultiLevelDiscountRequest; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestFromJSON(json: any): V1SellerActionsCreateMultiLevelDiscountRequest; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateMultiLevelDiscountRequest; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestToJSON(value?: V1SellerActionsCreateMultiLevelDiscountRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequest.js b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequest.js new file mode 100644 index 0000000..4a28e0f --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequest.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON, V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON, } from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel'; +import { V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON, V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON, } from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum'; +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountRequest interface. + */ +export function instanceOfV1SellerActionsCreateMultiLevelDiscountRequest(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_levels' in value) || value['discount_levels'] === undefined) + return false; + if (!('discount_type' in value) || value['discount_type'] === undefined) + return false; + return true; +} +export function V1SellerActionsCreateMultiLevelDiscountRequestFromJSON(json) { + return V1SellerActionsCreateMultiLevelDiscountRequestFromJSONTyped(json, false); +} +export function V1SellerActionsCreateMultiLevelDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_levels': (json['discount_levels'].map(V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON)), + 'discount_type': V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON(json['discount_type']), + 'is_legal_entities_segment': json['is_legal_entities_segment'] == null ? undefined : json['is_legal_entities_segment'], + 'title': json['title'] == null ? undefined : json['title'], + }; +} +export function V1SellerActionsCreateMultiLevelDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_levels': (value['discount_levels'].map(V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON)), + 'discount_type': V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON(value['discount_type']), + 'is_legal_entities_segment': value['is_legal_entities_segment'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.d.ts b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.d.ts new file mode 100644 index 0000000..bd27854 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel + */ +export interface V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel { + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel + */ + discount_value: number; + /** + * Минимальная сумма заказа. + * @type {number} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel + */ + order_amount: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel interface. + */ +export declare function instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel(value: object): value is V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON(json: any): V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON(value?: V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.js b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.js new file mode 100644 index 0000000..0f35ae8 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel interface. + */ +export function instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel(value) { + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('order_amount' in value) || value['order_amount'] === undefined) + return false; + return true; +} +export function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON(json) { + return V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSONTyped(json, false); +} +export function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount_value': json['discount_value'], + 'order_amount': json['order_amount'], + }; +} +export function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount_value': value['discount_value'], + 'order_amount': value['order_amount'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.d.ts b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.d.ts new file mode 100644 index 0000000..d4a3b65 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export declare const V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum: { + readonly PERCENT: "PERCENT"; + readonly CURRENCY: "CURRENCY"; +}; +export type V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum = typeof V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum[keyof typeof V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum]; +export declare function instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum(value: any): boolean; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON(json: any): V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON(value?: V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.js b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.js new file mode 100644 index 0000000..1cb8222 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export const V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum = { + PERCENT: 'PERCENT', + CURRENCY: 'CURRENCY' +}; +export function instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum(value) { + for (const key in V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum, key)) { + if (V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON(json) { + return V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSONTyped(json, false); +} +export function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountResponse.d.ts b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountResponse.d.ts new file mode 100644 index 0000000..18aeafd --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateMultiLevelDiscountResponse + */ +export interface V1SellerActionsCreateMultiLevelDiscountResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateMultiLevelDiscountResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateMultiLevelDiscountResponse(value: object): value is V1SellerActionsCreateMultiLevelDiscountResponse; +export declare function V1SellerActionsCreateMultiLevelDiscountResponseFromJSON(json: any): V1SellerActionsCreateMultiLevelDiscountResponse; +export declare function V1SellerActionsCreateMultiLevelDiscountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateMultiLevelDiscountResponse; +export declare function V1SellerActionsCreateMultiLevelDiscountResponseToJSON(value?: V1SellerActionsCreateMultiLevelDiscountResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountResponse.js b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountResponse.js new file mode 100644 index 0000000..5ffd1e0 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateMultiLevelDiscountResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountResponse interface. + */ +export function instanceOfV1SellerActionsCreateMultiLevelDiscountResponse(value) { + return true; +} +export function V1SellerActionsCreateMultiLevelDiscountResponseFromJSON(json) { + return V1SellerActionsCreateMultiLevelDiscountResponseFromJSONTyped(json, false); +} +export function V1SellerActionsCreateMultiLevelDiscountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +export function V1SellerActionsCreateMultiLevelDiscountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateVoucherRequest.d.ts b/dist/esm/models/V1SellerActionsCreateVoucherRequest.d.ts new file mode 100644 index 0000000..b846ef5 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherRequest.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsCreateVoucherRequestDiscountTypeEnum } from './V1SellerActionsCreateVoucherRequestDiscountTypeEnum'; +import type { V1SellerActionsCreateVoucherRequestVoucherParameter } from './V1SellerActionsCreateVoucherRequestVoucherParameter'; +/** + * + * @export + * @interface V1SellerActionsCreateVoucherRequest + */ +export interface V1SellerActionsCreateVoucherRequest { + /** + * Бюджет акции. Если бюджет закончится, акция остановится. + * @type {number} + * @memberof V1SellerActionsCreateVoucherRequest + */ + budget: number; + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsCreateVoucherRequest + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateVoucherRequest + */ + date_start: string; + /** + * + * @type {V1SellerActionsCreateVoucherRequestDiscountTypeEnum} + * @memberof V1SellerActionsCreateVoucherRequest + */ + discount_type: V1SellerActionsCreateVoucherRequestDiscountTypeEnum; + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsCreateVoucherRequest + */ + discount_value: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateVoucherRequest + */ + title: string; + /** + * Идентификаторы пользователей, которым доступен промокод. + * @type {Array} + * @memberof V1SellerActionsCreateVoucherRequest + */ + user_ids?: Array; + /** + * + * @type {V1SellerActionsCreateVoucherRequestVoucherParameter} + * @memberof V1SellerActionsCreateVoucherRequest + */ + voucher_parameters: V1SellerActionsCreateVoucherRequestVoucherParameter; +} +/** + * Check if a given object implements the V1SellerActionsCreateVoucherRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateVoucherRequest(value: object): value is V1SellerActionsCreateVoucherRequest; +export declare function V1SellerActionsCreateVoucherRequestFromJSON(json: any): V1SellerActionsCreateVoucherRequest; +export declare function V1SellerActionsCreateVoucherRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherRequest; +export declare function V1SellerActionsCreateVoucherRequestToJSON(value?: V1SellerActionsCreateVoucherRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateVoucherRequest.js b/dist/esm/models/V1SellerActionsCreateVoucherRequest.js new file mode 100644 index 0000000..5a5a73c --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherRequest.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON, V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON, } from './V1SellerActionsCreateVoucherRequestDiscountTypeEnum'; +import { V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON, V1SellerActionsCreateVoucherRequestVoucherParameterToJSON, } from './V1SellerActionsCreateVoucherRequestVoucherParameter'; +/** + * Check if a given object implements the V1SellerActionsCreateVoucherRequest interface. + */ +export function instanceOfV1SellerActionsCreateVoucherRequest(value) { + if (!('budget' in value) || value['budget'] === undefined) + return false; + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_type' in value) || value['discount_type'] === undefined) + return false; + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + if (!('voucher_parameters' in value) || value['voucher_parameters'] === undefined) + return false; + return true; +} +export function V1SellerActionsCreateVoucherRequestFromJSON(json) { + return V1SellerActionsCreateVoucherRequestFromJSONTyped(json, false); +} +export function V1SellerActionsCreateVoucherRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'budget': json['budget'], + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_type': V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON(json['discount_type']), + 'discount_value': json['discount_value'], + 'title': json['title'], + 'user_ids': json['user_ids'] == null ? undefined : json['user_ids'], + 'voucher_parameters': V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON(json['voucher_parameters']), + }; +} +export function V1SellerActionsCreateVoucherRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'budget': value['budget'], + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_type': V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON(value['discount_type']), + 'discount_value': value['discount_value'], + 'title': value['title'], + 'user_ids': value['user_ids'], + 'voucher_parameters': V1SellerActionsCreateVoucherRequestVoucherParameterToJSON(value['voucher_parameters']), + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.d.ts b/dist/esm/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.d.ts new file mode 100644 index 0000000..23b1370 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export declare const V1SellerActionsCreateVoucherRequestDiscountTypeEnum: { + readonly PERCENT: "PERCENT"; + readonly CURRENCY: "CURRENCY"; +}; +export type V1SellerActionsCreateVoucherRequestDiscountTypeEnum = typeof V1SellerActionsCreateVoucherRequestDiscountTypeEnum[keyof typeof V1SellerActionsCreateVoucherRequestDiscountTypeEnum]; +export declare function instanceOfV1SellerActionsCreateVoucherRequestDiscountTypeEnum(value: any): boolean; +export declare function V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON(json: any): V1SellerActionsCreateVoucherRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON(value?: V1SellerActionsCreateVoucherRequestDiscountTypeEnum | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.js b/dist/esm/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.js new file mode 100644 index 0000000..404f6c2 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export const V1SellerActionsCreateVoucherRequestDiscountTypeEnum = { + PERCENT: 'PERCENT', + CURRENCY: 'CURRENCY' +}; +export function instanceOfV1SellerActionsCreateVoucherRequestDiscountTypeEnum(value) { + for (const key in V1SellerActionsCreateVoucherRequestDiscountTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1SellerActionsCreateVoucherRequestDiscountTypeEnum, key)) { + if (V1SellerActionsCreateVoucherRequestDiscountTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON(json) { + return V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSONTyped(json, false); +} +export function V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameter.d.ts b/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameter.d.ts new file mode 100644 index 0000000..6010640 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameter.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum } from './V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum'; +/** + * Параметры промокодов. + * @export + * @interface V1SellerActionsCreateVoucherRequestVoucherParameter + */ +export interface V1SellerActionsCreateVoucherRequestVoucherParameter { + /** + * Количество промокодов. + * @type {number} + * @memberof V1SellerActionsCreateVoucherRequestVoucherParameter + */ + count_codes: number; + /** + * `true`, если промокод в открытом доступе. + * + * @type {boolean} + * @memberof V1SellerActionsCreateVoucherRequestVoucherParameter + */ + is_private: boolean; + /** + * + * @type {V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum} + * @memberof V1SellerActionsCreateVoucherRequestVoucherParameter + */ + type: V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum; +} +/** + * Check if a given object implements the V1SellerActionsCreateVoucherRequestVoucherParameter interface. + */ +export declare function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter(value: object): value is V1SellerActionsCreateVoucherRequestVoucherParameter; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON(json: any): V1SellerActionsCreateVoucherRequestVoucherParameter; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherRequestVoucherParameter; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterToJSON(value?: V1SellerActionsCreateVoucherRequestVoucherParameter | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameter.js b/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameter.js new file mode 100644 index 0000000..30b0b6a --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameter.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON, V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON, } from './V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum'; +/** + * Check if a given object implements the V1SellerActionsCreateVoucherRequestVoucherParameter interface. + */ +export function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter(value) { + if (!('count_codes' in value) || value['count_codes'] === undefined) + return false; + if (!('is_private' in value) || value['is_private'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON(json) { + return V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped(json, false); +} +export function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_codes': json['count_codes'], + 'is_private': json['is_private'], + 'type': V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON(json['type']), + }; +} +export function V1SellerActionsCreateVoucherRequestVoucherParameterToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_codes': value['count_codes'], + 'is_private': value['is_private'], + 'type': V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.d.ts b/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.d.ts new file mode 100644 index 0000000..0ee113a --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип промокода: + * - `ONE` — промокод для всех покупателей на 1 заказ; + * - `MULTIPLE` — промокод для всех покупателей на любое количество заказов; + * - `UNIQUE` — промокод для 1 покупателя на 1 заказ. + * + * @export + */ +export declare const V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum: { + readonly ONE: "ONE"; + readonly MULTIPLE: "MULTIPLE"; + readonly UNIQUE: "UNIQUE"; +}; +export type V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum = typeof V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum[keyof typeof V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum]; +export declare function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum(value: any): boolean; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON(json: any): V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON(value?: V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.js b/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.js new file mode 100644 index 0000000..22841dd --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип промокода: + * - `ONE` — промокод для всех покупателей на 1 заказ; + * - `MULTIPLE` — промокод для всех покупателей на любое количество заказов; + * - `UNIQUE` — промокод для 1 покупателя на 1 заказ. + * + * @export + */ +export const V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum = { + ONE: 'ONE', + MULTIPLE: 'MULTIPLE', + UNIQUE: 'UNIQUE' +}; +export function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum(value) { + for (const key in V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum, key)) { + if (V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON(json) { + return V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSONTyped(json, false); +} +export function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SellerActionsCreateVoucherResponse.d.ts b/dist/esm/models/V1SellerActionsCreateVoucherResponse.d.ts new file mode 100644 index 0000000..3d8c5f6 --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateVoucherResponse + */ +export interface V1SellerActionsCreateVoucherResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateVoucherResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateVoucherResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateVoucherResponse(value: object): value is V1SellerActionsCreateVoucherResponse; +export declare function V1SellerActionsCreateVoucherResponseFromJSON(json: any): V1SellerActionsCreateVoucherResponse; +export declare function V1SellerActionsCreateVoucherResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherResponse; +export declare function V1SellerActionsCreateVoucherResponseToJSON(value?: V1SellerActionsCreateVoucherResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsCreateVoucherResponse.js b/dist/esm/models/V1SellerActionsCreateVoucherResponse.js new file mode 100644 index 0000000..a4b471c --- /dev/null +++ b/dist/esm/models/V1SellerActionsCreateVoucherResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsCreateVoucherResponse interface. + */ +export function instanceOfV1SellerActionsCreateVoucherResponse(value) { + return true; +} +export function V1SellerActionsCreateVoucherResponseFromJSON(json) { + return V1SellerActionsCreateVoucherResponseFromJSONTyped(json, false); +} +export function V1SellerActionsCreateVoucherResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +export function V1SellerActionsCreateVoucherResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/esm/models/V1SellerActionsListRequest.d.ts b/dist/esm/models/V1SellerActionsListRequest.d.ts new file mode 100644 index 0000000..7f8577a --- /dev/null +++ b/dist/esm/models/V1SellerActionsListRequest.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerActionsListRequestStatusEnum } from './SellerActionsListRequestStatusEnum'; +import type { SellerActionsListRequestActionTypeEnum } from './SellerActionsListRequestActionTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsListRequest + */ +export interface V1SellerActionsListRequest { + /** + * Идентификаторы акций. + * @type {Array} + * @memberof V1SellerActionsListRequest + */ + action_ids?: Array; + /** + * Механика акции: + * - `DISCOUNT` — скидка; + * - `VOUCHER_DISCOUNT` — скидка по промокоду; + * - `DISCOUNT_WITH_CONDITION` — скидка от суммы заказа; + * - `INSTALLMENT` — беспроцентная рассрочка; + * - `INDIVIDUAL_DISCOUNT_BY_PRODUCTS` — бонусы продавца; + * - `OZON_ACCOUNT_DISCOUNT` — повышенная скидка с картой Ozon Банка; + * - `MULTI_LEVEL_DISCOUNT_ON_AMOUNT` — многоуровневая скидка от суммы. + * + * @type {Array} + * @memberof V1SellerActionsListRequest + */ + action_type?: Array; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1SellerActionsListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof V1SellerActionsListRequest + */ + offset?: number; + /** + * Поиск по названию акции. + * @type {string} + * @memberof V1SellerActionsListRequest + */ + search?: string; + /** + * Статус акции: + * - `ACTIVE` — активна; + * - `ENDED` — завершена; + * - `PLANNED` — запланирована; + * - `PAUSED` — приостановлена. + * + * @type {Array} + * @memberof V1SellerActionsListRequest + */ + status?: Array; +} +/** + * Check if a given object implements the V1SellerActionsListRequest interface. + */ +export declare function instanceOfV1SellerActionsListRequest(value: object): value is V1SellerActionsListRequest; +export declare function V1SellerActionsListRequestFromJSON(json: any): V1SellerActionsListRequest; +export declare function V1SellerActionsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsListRequest; +export declare function V1SellerActionsListRequestToJSON(value?: V1SellerActionsListRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsListRequest.js b/dist/esm/models/V1SellerActionsListRequest.js new file mode 100644 index 0000000..ce9abe4 --- /dev/null +++ b/dist/esm/models/V1SellerActionsListRequest.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerActionsListRequestStatusEnumFromJSON, SellerActionsListRequestStatusEnumToJSON, } from './SellerActionsListRequestStatusEnum'; +import { SellerActionsListRequestActionTypeEnumFromJSON, SellerActionsListRequestActionTypeEnumToJSON, } from './SellerActionsListRequestActionTypeEnum'; +/** + * Check if a given object implements the V1SellerActionsListRequest interface. + */ +export function instanceOfV1SellerActionsListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1SellerActionsListRequestFromJSON(json) { + return V1SellerActionsListRequestFromJSONTyped(json, false); +} +export function V1SellerActionsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_ids': json['action_ids'] == null ? undefined : json['action_ids'], + 'action_type': json['action_type'] == null ? undefined : (json['action_type'].map(SellerActionsListRequestActionTypeEnumFromJSON)), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'search': json['search'] == null ? undefined : json['search'], + 'status': json['status'] == null ? undefined : (json['status'].map(SellerActionsListRequestStatusEnumFromJSON)), + }; +} +export function V1SellerActionsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_ids': value['action_ids'], + 'action_type': value['action_type'] == null ? undefined : (value['action_type'].map(SellerActionsListRequestActionTypeEnumToJSON)), + 'limit': value['limit'], + 'offset': value['offset'], + 'search': value['search'], + 'status': value['status'] == null ? undefined : (value['status'].map(SellerActionsListRequestStatusEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1SellerActionsListResponse.d.ts b/dist/esm/models/V1SellerActionsListResponse.d.ts new file mode 100644 index 0000000..14914b1 --- /dev/null +++ b/dist/esm/models/V1SellerActionsListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerActionsListResponseAction } from './SellerActionsListResponseAction'; +/** + * + * @export + * @interface V1SellerActionsListResponse + */ +export interface V1SellerActionsListResponse { + /** + * Список акций. + * @type {Array} + * @memberof V1SellerActionsListResponse + */ + actions?: Array; + /** + * Общее количество акций. + * @type {number} + * @memberof V1SellerActionsListResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1SellerActionsListResponse interface. + */ +export declare function instanceOfV1SellerActionsListResponse(value: object): value is V1SellerActionsListResponse; +export declare function V1SellerActionsListResponseFromJSON(json: any): V1SellerActionsListResponse; +export declare function V1SellerActionsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsListResponse; +export declare function V1SellerActionsListResponseToJSON(value?: V1SellerActionsListResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsListResponse.js b/dist/esm/models/V1SellerActionsListResponse.js new file mode 100644 index 0000000..2835839 --- /dev/null +++ b/dist/esm/models/V1SellerActionsListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerActionsListResponseActionFromJSON, SellerActionsListResponseActionToJSON, } from './SellerActionsListResponseAction'; +/** + * Check if a given object implements the V1SellerActionsListResponse interface. + */ +export function instanceOfV1SellerActionsListResponse(value) { + return true; +} +export function V1SellerActionsListResponseFromJSON(json) { + return V1SellerActionsListResponseFromJSONTyped(json, false); +} +export function V1SellerActionsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : (json['actions'].map(SellerActionsListResponseActionFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V1SellerActionsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'] == null ? undefined : (value['actions'].map(SellerActionsListResponseActionToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsAddRequest.d.ts b/dist/esm/models/V1SellerActionsProductsAddRequest.d.ts new file mode 100644 index 0000000..6648932 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsAddRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsAddRequestProduct } from './V1SellerActionsProductsAddRequestProduct'; +/** + * + * @export + * @interface V1SellerActionsProductsAddRequest + */ +export interface V1SellerActionsProductsAddRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsProductsAddRequest + */ + action_id: number; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1SellerActionsProductsAddRequest + */ + products: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsAddRequest interface. + */ +export declare function instanceOfV1SellerActionsProductsAddRequest(value: object): value is V1SellerActionsProductsAddRequest; +export declare function V1SellerActionsProductsAddRequestFromJSON(json: any): V1SellerActionsProductsAddRequest; +export declare function V1SellerActionsProductsAddRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsAddRequest; +export declare function V1SellerActionsProductsAddRequestToJSON(value?: V1SellerActionsProductsAddRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsAddRequest.js b/dist/esm/models/V1SellerActionsProductsAddRequest.js new file mode 100644 index 0000000..de954ae --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsAddRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsProductsAddRequestProductFromJSON, V1SellerActionsProductsAddRequestProductToJSON, } from './V1SellerActionsProductsAddRequestProduct'; +/** + * Check if a given object implements the V1SellerActionsProductsAddRequest interface. + */ +export function instanceOfV1SellerActionsProductsAddRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +export function V1SellerActionsProductsAddRequestFromJSON(json) { + return V1SellerActionsProductsAddRequestFromJSONTyped(json, false); +} +export function V1SellerActionsProductsAddRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'products': (json['products'].map(V1SellerActionsProductsAddRequestProductFromJSON)), + }; +} +export function V1SellerActionsProductsAddRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'products': (value['products'].map(V1SellerActionsProductsAddRequestProductToJSON)), + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsAddRequestProduct.d.ts b/dist/esm/models/V1SellerActionsProductsAddRequestProduct.d.ts new file mode 100644 index 0000000..7b20bfd --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsAddRequestProduct.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCurrencyEnum } from './ProductCurrencyEnum'; +/** + * + * @export + * @interface V1SellerActionsProductsAddRequestProduct + */ +export interface V1SellerActionsProductsAddRequestProduct { + /** + * + * @type {ProductCurrencyEnum} + * @memberof V1SellerActionsProductsAddRequestProduct + */ + currency?: ProductCurrencyEnum; + /** + * Размер скидки в процентах. Передайте параметр, если механика акции «Скидка». + * @type {number} + * @memberof V1SellerActionsProductsAddRequestProduct + */ + discount_percent?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1SellerActionsProductsAddRequestProduct + */ + sku: number; +} +/** + * Check if a given object implements the V1SellerActionsProductsAddRequestProduct interface. + */ +export declare function instanceOfV1SellerActionsProductsAddRequestProduct(value: object): value is V1SellerActionsProductsAddRequestProduct; +export declare function V1SellerActionsProductsAddRequestProductFromJSON(json: any): V1SellerActionsProductsAddRequestProduct; +export declare function V1SellerActionsProductsAddRequestProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsAddRequestProduct; +export declare function V1SellerActionsProductsAddRequestProductToJSON(value?: V1SellerActionsProductsAddRequestProduct | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsAddRequestProduct.js b/dist/esm/models/V1SellerActionsProductsAddRequestProduct.js new file mode 100644 index 0000000..797e010 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsAddRequestProduct.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductCurrencyEnumFromJSON, ProductCurrencyEnumToJSON, } from './ProductCurrencyEnum'; +/** + * Check if a given object implements the V1SellerActionsProductsAddRequestProduct interface. + */ +export function instanceOfV1SellerActionsProductsAddRequestProduct(value) { + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1SellerActionsProductsAddRequestProductFromJSON(json) { + return V1SellerActionsProductsAddRequestProductFromJSONTyped(json, false); +} +export function V1SellerActionsProductsAddRequestProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency': json['currency'] == null ? undefined : ProductCurrencyEnumFromJSON(json['currency']), + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'sku': json['sku'], + }; +} +export function V1SellerActionsProductsAddRequestProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency': ProductCurrencyEnumToJSON(value['currency']), + 'discount_percent': value['discount_percent'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsCandidatesRequest.d.ts b/dist/esm/models/V1SellerActionsProductsCandidatesRequest.d.ts new file mode 100644 index 0000000..7efd375 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsCandidatesRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsProductsCandidatesRequest + */ +export interface V1SellerActionsProductsCandidatesRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsProductsCandidatesRequest + */ + action_id: number; + /** + * Указатель для выборки следующих данных. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesRequest + */ + cursor?: number; + /** + * Максимальное количество элементов в ответе. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesRequest interface. + */ +export declare function instanceOfV1SellerActionsProductsCandidatesRequest(value: object): value is V1SellerActionsProductsCandidatesRequest; +export declare function V1SellerActionsProductsCandidatesRequestFromJSON(json: any): V1SellerActionsProductsCandidatesRequest; +export declare function V1SellerActionsProductsCandidatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsCandidatesRequest; +export declare function V1SellerActionsProductsCandidatesRequestToJSON(value?: V1SellerActionsProductsCandidatesRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsCandidatesRequest.js b/dist/esm/models/V1SellerActionsProductsCandidatesRequest.js new file mode 100644 index 0000000..0451a80 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsCandidatesRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesRequest interface. + */ +export function instanceOfV1SellerActionsProductsCandidatesRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1SellerActionsProductsCandidatesRequestFromJSON(json) { + return V1SellerActionsProductsCandidatesRequestFromJSONTyped(json, false); +} +export function V1SellerActionsProductsCandidatesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + }; +} +export function V1SellerActionsProductsCandidatesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'cursor': value['cursor'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsCandidatesResponse.d.ts b/dist/esm/models/V1SellerActionsProductsCandidatesResponse.d.ts new file mode 100644 index 0000000..e4f5eef --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsCandidatesResponse.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsCandidatesResponseProduct } from './V1SellerActionsProductsCandidatesResponseProduct'; +/** + * + * @export + * @interface V1SellerActionsProductsCandidatesResponse + */ +export interface V1SellerActionsProductsCandidatesResponse { + /** + * Указатель для выборки следующих данных. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponse + */ + cursor?: number; + /** + * Признак, что в ответе вернулась только часть значений: + * - `true` — сделайте повторный запрос с новым параметром `cursor` для получения остальных значений; + * - `false` — ответ содержит все значения. + * + * @type {boolean} + * @memberof V1SellerActionsProductsCandidatesResponse + */ + has_next?: boolean; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1SellerActionsProductsCandidatesResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesResponse interface. + */ +export declare function instanceOfV1SellerActionsProductsCandidatesResponse(value: object): value is V1SellerActionsProductsCandidatesResponse; +export declare function V1SellerActionsProductsCandidatesResponseFromJSON(json: any): V1SellerActionsProductsCandidatesResponse; +export declare function V1SellerActionsProductsCandidatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsCandidatesResponse; +export declare function V1SellerActionsProductsCandidatesResponseToJSON(value?: V1SellerActionsProductsCandidatesResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsCandidatesResponse.js b/dist/esm/models/V1SellerActionsProductsCandidatesResponse.js new file mode 100644 index 0000000..314085c --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsCandidatesResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsProductsCandidatesResponseProductFromJSON, V1SellerActionsProductsCandidatesResponseProductToJSON, } from './V1SellerActionsProductsCandidatesResponseProduct'; +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesResponse interface. + */ +export function instanceOfV1SellerActionsProductsCandidatesResponse(value) { + return true; +} +export function V1SellerActionsProductsCandidatesResponseFromJSON(json) { + return V1SellerActionsProductsCandidatesResponseFromJSONTyped(json, false); +} +export function V1SellerActionsProductsCandidatesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1SellerActionsProductsCandidatesResponseProductFromJSON)), + }; +} +export function V1SellerActionsProductsCandidatesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1SellerActionsProductsCandidatesResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsCandidatesResponseProduct.d.ts b/dist/esm/models/V1SellerActionsProductsCandidatesResponseProduct.d.ts new file mode 100644 index 0000000..2ecf040 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsCandidatesResponseProduct.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum } from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsProductsCandidatesResponseProduct + */ +export interface V1SellerActionsProductsCandidatesResponseProduct { + /** + * Цена товара с учётом акции. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + action_price?: number; + /** + * Базовая цена, по которой товар продаётся на Ozon, если не участвует в акции. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + base_price?: number; + /** + * Валюта. + * @type {string} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + currency?: string; + /** + * Процент скидки. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + discount_percent?: number; + /** + * `true`, если товар участвует в акции. + * + * @type {boolean} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + is_active?: boolean; + /** + * Минимальная цена для автоматического добавления товара в акцию. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + min_seller_price?: number; + /** + * Название товара. + * @type {string} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + offer_id?: string; + /** + * Цена товара для покупателя. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + product_id?: number; + /** + * Размер кванта. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + quant_size?: number; + /** + * + * @type {V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + quant_type?: V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + sku?: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesResponseProduct interface. + */ +export declare function instanceOfV1SellerActionsProductsCandidatesResponseProduct(value: object): value is V1SellerActionsProductsCandidatesResponseProduct; +export declare function V1SellerActionsProductsCandidatesResponseProductFromJSON(json: any): V1SellerActionsProductsCandidatesResponseProduct; +export declare function V1SellerActionsProductsCandidatesResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsCandidatesResponseProduct; +export declare function V1SellerActionsProductsCandidatesResponseProductToJSON(value?: V1SellerActionsProductsCandidatesResponseProduct | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsCandidatesResponseProduct.js b/dist/esm/models/V1SellerActionsProductsCandidatesResponseProduct.js new file mode 100644 index 0000000..d260a52 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsCandidatesResponseProduct.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON, V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON, } from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesResponseProduct interface. + */ +export function instanceOfV1SellerActionsProductsCandidatesResponseProduct(value) { + return true; +} +export function V1SellerActionsProductsCandidatesResponseProductFromJSON(json) { + return V1SellerActionsProductsCandidatesResponseProductFromJSONTyped(json, false); +} +export function V1SellerActionsProductsCandidatesResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price': json['action_price'] == null ? undefined : json['action_price'], + 'base_price': json['base_price'] == null ? undefined : json['base_price'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'min_seller_price': json['min_seller_price'] == null ? undefined : json['min_seller_price'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + 'quant_type': json['quant_type'] == null ? undefined : V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON(json['quant_type']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1SellerActionsProductsCandidatesResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price': value['action_price'], + 'base_price': value['base_price'], + 'currency': value['currency'], + 'discount_percent': value['discount_percent'], + 'is_active': value['is_active'], + 'min_seller_price': value['min_seller_price'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quant_size': value['quant_size'], + 'quant_type': V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON(value['quant_type']), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.d.ts b/dist/esm/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.d.ts new file mode 100644 index 0000000..1ec62d1 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип кванта: + * - `UNSPECIFIED` — не определён, + * - `BOX` — коробка, + * - `PALLET` — палета, + * - `GENERAL` — товар. + * + * @export + */ +export declare const V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; + readonly GENERAL: "GENERAL"; +}; +export type V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum = typeof V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum[keyof typeof V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum]; +export declare function instanceOfV1SellerActionsProductsCandidatesResponseProductQuantTypeEnum(value: any): boolean; +export declare function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON(json: any): V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; +export declare function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; +export declare function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON(value?: V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.js b/dist/esm/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.js new file mode 100644 index 0000000..89f392d --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип кванта: + * - `UNSPECIFIED` — не определён, + * - `BOX` — коробка, + * - `PALLET` — палета, + * - `GENERAL` — товар. + * + * @export + */ +export const V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BOX: 'BOX', + PALLET: 'PALLET', + GENERAL: 'GENERAL' +}; +export function instanceOfV1SellerActionsProductsCandidatesResponseProductQuantTypeEnum(value) { + for (const key in V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum, key)) { + if (V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON(json) { + return V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSONTyped(json, false); +} +export function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SellerActionsProductsDeleteRequest.d.ts b/dist/esm/models/V1SellerActionsProductsDeleteRequest.d.ts new file mode 100644 index 0000000..4af1d47 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsDeleteRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsProductsDeleteRequest + */ +export interface V1SellerActionsProductsDeleteRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsProductsDeleteRequest + */ + action_id: number; + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1SellerActionsProductsDeleteRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsDeleteRequest interface. + */ +export declare function instanceOfV1SellerActionsProductsDeleteRequest(value: object): value is V1SellerActionsProductsDeleteRequest; +export declare function V1SellerActionsProductsDeleteRequestFromJSON(json: any): V1SellerActionsProductsDeleteRequest; +export declare function V1SellerActionsProductsDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsDeleteRequest; +export declare function V1SellerActionsProductsDeleteRequestToJSON(value?: V1SellerActionsProductsDeleteRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsDeleteRequest.js b/dist/esm/models/V1SellerActionsProductsDeleteRequest.js new file mode 100644 index 0000000..874e13f --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsDeleteRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsProductsDeleteRequest interface. + */ +export function instanceOfV1SellerActionsProductsDeleteRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +export function V1SellerActionsProductsDeleteRequestFromJSON(json) { + return V1SellerActionsProductsDeleteRequestFromJSONTyped(json, false); +} +export function V1SellerActionsProductsDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'skus': json['skus'], + }; +} +export function V1SellerActionsProductsDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'skus': value['skus'], + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsListRequest.d.ts b/dist/esm/models/V1SellerActionsProductsListRequest.d.ts new file mode 100644 index 0000000..3abb978 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsListRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsProductsListRequest + */ +export interface V1SellerActionsProductsListRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsProductsListRequest + */ + action_id: number; + /** + * Указатель для выборки следующих данных. + * @type {number} + * @memberof V1SellerActionsProductsListRequest + */ + cursor?: number; + /** + * Максимальное количество элементов в ответе. + * @type {number} + * @memberof V1SellerActionsProductsListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1SellerActionsProductsListRequest interface. + */ +export declare function instanceOfV1SellerActionsProductsListRequest(value: object): value is V1SellerActionsProductsListRequest; +export declare function V1SellerActionsProductsListRequestFromJSON(json: any): V1SellerActionsProductsListRequest; +export declare function V1SellerActionsProductsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsListRequest; +export declare function V1SellerActionsProductsListRequestToJSON(value?: V1SellerActionsProductsListRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsListRequest.js b/dist/esm/models/V1SellerActionsProductsListRequest.js new file mode 100644 index 0000000..fac235e --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsListRequest.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsProductsListRequest interface. + */ +export function instanceOfV1SellerActionsProductsListRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1SellerActionsProductsListRequestFromJSON(json) { + return V1SellerActionsProductsListRequestFromJSONTyped(json, false); +} +export function V1SellerActionsProductsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + }; +} +export function V1SellerActionsProductsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'cursor': value['cursor'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsListResponse.d.ts b/dist/esm/models/V1SellerActionsProductsListResponse.d.ts new file mode 100644 index 0000000..fcae41c --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsListResponse.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsListResponseProduct } from './V1SellerActionsProductsListResponseProduct'; +/** + * + * @export + * @interface V1SellerActionsProductsListResponse + */ +export interface V1SellerActionsProductsListResponse { + /** + * Указатель для выборки следующих данных. + * @type {number} + * @memberof V1SellerActionsProductsListResponse + */ + cursor?: number; + /** + * Признак, что в ответе вернулась только часть значений: + * - `true` — сделайте повторный запрос с новым параметром `cursor` для получения остальных значений; + * - `false` — ответ содержит все значения. + * + * @type {boolean} + * @memberof V1SellerActionsProductsListResponse + */ + has_next?: boolean; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1SellerActionsProductsListResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsListResponse interface. + */ +export declare function instanceOfV1SellerActionsProductsListResponse(value: object): value is V1SellerActionsProductsListResponse; +export declare function V1SellerActionsProductsListResponseFromJSON(json: any): V1SellerActionsProductsListResponse; +export declare function V1SellerActionsProductsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsListResponse; +export declare function V1SellerActionsProductsListResponseToJSON(value?: V1SellerActionsProductsListResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsListResponse.js b/dist/esm/models/V1SellerActionsProductsListResponse.js new file mode 100644 index 0000000..861df97 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsListResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsProductsListResponseProductFromJSON, V1SellerActionsProductsListResponseProductToJSON, } from './V1SellerActionsProductsListResponseProduct'; +/** + * Check if a given object implements the V1SellerActionsProductsListResponse interface. + */ +export function instanceOfV1SellerActionsProductsListResponse(value) { + return true; +} +export function V1SellerActionsProductsListResponseFromJSON(json) { + return V1SellerActionsProductsListResponseFromJSONTyped(json, false); +} +export function V1SellerActionsProductsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1SellerActionsProductsListResponseProductFromJSON)), + }; +} +export function V1SellerActionsProductsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1SellerActionsProductsListResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/V1SellerActionsProductsListResponseProduct.d.ts b/dist/esm/models/V1SellerActionsProductsListResponseProduct.d.ts new file mode 100644 index 0000000..671c7d5 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsListResponseProduct.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum } from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsProductsListResponseProduct + */ +export interface V1SellerActionsProductsListResponseProduct { + /** + * Цена товара с учётом акции. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + action_price?: number; + /** + * Базовая цена, по которой товар продаётся на Ozon, если не участвует в акции. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + base_price?: number; + /** + * Валюта. + * @type {string} + * @memberof V1SellerActionsProductsListResponseProduct + */ + currency?: string; + /** + * Процент скидки. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + discount_percent?: number; + /** + * `true`, если товар участвует в акции. + * + * @type {boolean} + * @memberof V1SellerActionsProductsListResponseProduct + */ + is_active?: boolean; + /** + * Минимальная цена для автоматического добавления товара в акцию. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + min_seller_price?: number; + /** + * Название товара. + * @type {string} + * @memberof V1SellerActionsProductsListResponseProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1SellerActionsProductsListResponseProduct + */ + offer_id?: string; + /** + * Цена товара для покупателя. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + product_id?: number; + /** + * Размер кванта. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + quant_size?: number; + /** + * + * @type {V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum} + * @memberof V1SellerActionsProductsListResponseProduct + */ + quant_type?: V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof V1SellerActionsProductsListResponseProduct + */ + sku?: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsListResponseProduct interface. + */ +export declare function instanceOfV1SellerActionsProductsListResponseProduct(value: object): value is V1SellerActionsProductsListResponseProduct; +export declare function V1SellerActionsProductsListResponseProductFromJSON(json: any): V1SellerActionsProductsListResponseProduct; +export declare function V1SellerActionsProductsListResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsListResponseProduct; +export declare function V1SellerActionsProductsListResponseProductToJSON(value?: V1SellerActionsProductsListResponseProduct | null): any; diff --git a/dist/esm/models/V1SellerActionsProductsListResponseProduct.js b/dist/esm/models/V1SellerActionsProductsListResponseProduct.js new file mode 100644 index 0000000..b3f0549 --- /dev/null +++ b/dist/esm/models/V1SellerActionsProductsListResponseProduct.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON, V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON, } from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +/** + * Check if a given object implements the V1SellerActionsProductsListResponseProduct interface. + */ +export function instanceOfV1SellerActionsProductsListResponseProduct(value) { + return true; +} +export function V1SellerActionsProductsListResponseProductFromJSON(json) { + return V1SellerActionsProductsListResponseProductFromJSONTyped(json, false); +} +export function V1SellerActionsProductsListResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price': json['action_price'] == null ? undefined : json['action_price'], + 'base_price': json['base_price'] == null ? undefined : json['base_price'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'min_seller_price': json['min_seller_price'] == null ? undefined : json['min_seller_price'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + 'quant_type': json['quant_type'] == null ? undefined : V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON(json['quant_type']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1SellerActionsProductsListResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price': value['action_price'], + 'base_price': value['base_price'], + 'currency': value['currency'], + 'discount_percent': value['discount_percent'], + 'is_active': value['is_active'], + 'min_seller_price': value['min_seller_price'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quant_size': value['quant_size'], + 'quant_type': V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON(value['quant_type']), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateDiscountRequest.d.ts b/dist/esm/models/V1SellerActionsUpdateDiscountRequest.d.ts new file mode 100644 index 0000000..307c71d --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateDiscountRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateDiscountRequestActionParameters } from './V1SellerActionsUpdateDiscountRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateDiscountRequest + */ +export interface V1SellerActionsUpdateDiscountRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateDiscountRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateDiscountRequestActionParameters} + * @memberof V1SellerActionsUpdateDiscountRequest + */ + action_parameters?: V1SellerActionsUpdateDiscountRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateDiscountRequest(value: object): value is V1SellerActionsUpdateDiscountRequest; +export declare function V1SellerActionsUpdateDiscountRequestFromJSON(json: any): V1SellerActionsUpdateDiscountRequest; +export declare function V1SellerActionsUpdateDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateDiscountRequest; +export declare function V1SellerActionsUpdateDiscountRequestToJSON(value?: V1SellerActionsUpdateDiscountRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateDiscountRequest.js b/dist/esm/models/V1SellerActionsUpdateDiscountRequest.js new file mode 100644 index 0000000..ece6c91 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateDiscountRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsUpdateDiscountRequestActionParametersFromJSON, V1SellerActionsUpdateDiscountRequestActionParametersToJSON, } from './V1SellerActionsUpdateDiscountRequestActionParameters'; +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountRequest interface. + */ +export function instanceOfV1SellerActionsUpdateDiscountRequest(value) { + return true; +} +export function V1SellerActionsUpdateDiscountRequestFromJSON(json) { + return V1SellerActionsUpdateDiscountRequestFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : V1SellerActionsUpdateDiscountRequestActionParametersFromJSON(json['action_parameters']), + }; +} +export function V1SellerActionsUpdateDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': V1SellerActionsUpdateDiscountRequestActionParametersToJSON(value['action_parameters']), + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateDiscountRequestActionParameters.d.ts b/dist/esm/models/V1SellerActionsUpdateDiscountRequestActionParameters.d.ts new file mode 100644 index 0000000..1f53e15 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateDiscountRequestActionParameters.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateDiscountRequestActionParameters + */ +export interface V1SellerActionsUpdateDiscountRequestActionParameters { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountRequestActionParameters + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountRequestActionParameters + */ + date_start: string; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountRequestActionParameters + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateDiscountRequestActionParameters(value: object): value is V1SellerActionsUpdateDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountRequestActionParametersToJSON(value?: V1SellerActionsUpdateDiscountRequestActionParameters | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateDiscountRequestActionParameters.js b/dist/esm/models/V1SellerActionsUpdateDiscountRequestActionParameters.js new file mode 100644 index 0000000..8a79dfc --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateDiscountRequestActionParameters.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountRequestActionParameters interface. + */ +export function instanceOfV1SellerActionsUpdateDiscountRequestActionParameters(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +export function V1SellerActionsUpdateDiscountRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateDiscountRequestActionParametersFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateDiscountRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'title': json['title'], + }; +} +export function V1SellerActionsUpdateDiscountRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequest.d.ts b/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequest.d.ts new file mode 100644 index 0000000..622327a --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateDiscountWithConditionRequestActionParameters } from './V1SellerActionsUpdateDiscountWithConditionRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateDiscountWithConditionRequest + */ +export interface V1SellerActionsUpdateDiscountWithConditionRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateDiscountWithConditionRequestActionParameters} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequest + */ + action_parameters?: V1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateDiscountWithConditionRequest(value: object): value is V1SellerActionsUpdateDiscountWithConditionRequest; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestFromJSON(json: any): V1SellerActionsUpdateDiscountWithConditionRequest; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateDiscountWithConditionRequest; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestToJSON(value?: V1SellerActionsUpdateDiscountWithConditionRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequest.js b/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequest.js new file mode 100644 index 0000000..0059058 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON, V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON, } from './V1SellerActionsUpdateDiscountWithConditionRequestActionParameters'; +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequest interface. + */ +export function instanceOfV1SellerActionsUpdateDiscountWithConditionRequest(value) { + return true; +} +export function V1SellerActionsUpdateDiscountWithConditionRequestFromJSON(json) { + return V1SellerActionsUpdateDiscountWithConditionRequestFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateDiscountWithConditionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON(json['action_parameters']), + }; +} +export function V1SellerActionsUpdateDiscountWithConditionRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON(value['action_parameters']), + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.d.ts b/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.d.ts new file mode 100644 index 0000000..c6b0851 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ +export interface V1SellerActionsUpdateDiscountWithConditionRequestActionParameters { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + date_start: string; + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + discount_value: number; + /** + * Минимальная сумма заказа для получения скидки. + * @type {number} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + min_order_amount: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters(value: object): value is V1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON(value?: V1SellerActionsUpdateDiscountWithConditionRequestActionParameters | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.js b/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.js new file mode 100644 index 0000000..850b978 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequestActionParameters interface. + */ +export function instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('min_order_amount' in value) || value['min_order_amount'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +export function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_value': json['discount_value'], + 'min_order_amount': json['min_order_amount'], + 'title': json['title'], + }; +} +export function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_value': value['discount_value'], + 'min_order_amount': value['min_order_amount'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateInstallmentRequest.d.ts b/dist/esm/models/V1SellerActionsUpdateInstallmentRequest.d.ts new file mode 100644 index 0000000..f2064ce --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateInstallmentRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateInstallmentRequestActionParameters } from './V1SellerActionsUpdateInstallmentRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateInstallmentRequest + */ +export interface V1SellerActionsUpdateInstallmentRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateInstallmentRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateInstallmentRequestActionParameters} + * @memberof V1SellerActionsUpdateInstallmentRequest + */ + action_parameters?: V1SellerActionsUpdateInstallmentRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateInstallmentRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateInstallmentRequest(value: object): value is V1SellerActionsUpdateInstallmentRequest; +export declare function V1SellerActionsUpdateInstallmentRequestFromJSON(json: any): V1SellerActionsUpdateInstallmentRequest; +export declare function V1SellerActionsUpdateInstallmentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateInstallmentRequest; +export declare function V1SellerActionsUpdateInstallmentRequestToJSON(value?: V1SellerActionsUpdateInstallmentRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateInstallmentRequest.js b/dist/esm/models/V1SellerActionsUpdateInstallmentRequest.js new file mode 100644 index 0000000..282e778 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateInstallmentRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON, V1SellerActionsUpdateInstallmentRequestActionParametersToJSON, } from './V1SellerActionsUpdateInstallmentRequestActionParameters'; +/** + * Check if a given object implements the V1SellerActionsUpdateInstallmentRequest interface. + */ +export function instanceOfV1SellerActionsUpdateInstallmentRequest(value) { + return true; +} +export function V1SellerActionsUpdateInstallmentRequestFromJSON(json) { + return V1SellerActionsUpdateInstallmentRequestFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateInstallmentRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON(json['action_parameters']), + }; +} +export function V1SellerActionsUpdateInstallmentRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': V1SellerActionsUpdateInstallmentRequestActionParametersToJSON(value['action_parameters']), + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateInstallmentRequestActionParameters.d.ts b/dist/esm/models/V1SellerActionsUpdateInstallmentRequestActionParameters.d.ts new file mode 100644 index 0000000..9b0d72a --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateInstallmentRequestActionParameters.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateInstallmentRequestActionParameters + */ +export interface V1SellerActionsUpdateInstallmentRequestActionParameters { + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateInstallmentRequestActionParameters + */ + date_start: string; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateInstallmentRequestActionParameters + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsUpdateInstallmentRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateInstallmentRequestActionParameters(value: object): value is V1SellerActionsUpdateInstallmentRequestActionParameters; +export declare function V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateInstallmentRequestActionParameters; +export declare function V1SellerActionsUpdateInstallmentRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateInstallmentRequestActionParameters; +export declare function V1SellerActionsUpdateInstallmentRequestActionParametersToJSON(value?: V1SellerActionsUpdateInstallmentRequestActionParameters | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateInstallmentRequestActionParameters.js b/dist/esm/models/V1SellerActionsUpdateInstallmentRequestActionParameters.js new file mode 100644 index 0000000..db6d91c --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateInstallmentRequestActionParameters.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsUpdateInstallmentRequestActionParameters interface. + */ +export function instanceOfV1SellerActionsUpdateInstallmentRequestActionParameters(value) { + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +export function V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateInstallmentRequestActionParametersFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateInstallmentRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_start': json['date_start'], + 'title': json['title'], + }; +} +export function V1SellerActionsUpdateInstallmentRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_start': value['date_start'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequest.d.ts b/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequest.d.ts new file mode 100644 index 0000000..1983c2b --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters } from './V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateMultiLevelDiscountRequest + */ +export interface V1SellerActionsUpdateMultiLevelDiscountRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequest + */ + action_parameters?: V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateMultiLevelDiscountRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateMultiLevelDiscountRequest(value: object): value is V1SellerActionsUpdateMultiLevelDiscountRequest; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestFromJSON(json: any): V1SellerActionsUpdateMultiLevelDiscountRequest; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateMultiLevelDiscountRequest; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestToJSON(value?: V1SellerActionsUpdateMultiLevelDiscountRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequest.js b/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequest.js new file mode 100644 index 0000000..8130dc8 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON, V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON, } from './V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters'; +/** + * Check if a given object implements the V1SellerActionsUpdateMultiLevelDiscountRequest interface. + */ +export function instanceOfV1SellerActionsUpdateMultiLevelDiscountRequest(value) { + return true; +} +export function V1SellerActionsUpdateMultiLevelDiscountRequestFromJSON(json) { + return V1SellerActionsUpdateMultiLevelDiscountRequestFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateMultiLevelDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON(json['action_parameters']), + }; +} +export function V1SellerActionsUpdateMultiLevelDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON(value['action_parameters']), + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.d.ts b/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.d.ts new file mode 100644 index 0000000..8270c68 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel } from './SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel'; +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ +export interface V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + date_start: string; + /** + * Уровни скидки. + * @type {Array} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + discount_levels: Array; + /** + * `true`, если акция только для юридических лиц. + * + * @type {boolean} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + is_legal_entities_segment?: boolean; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateMultiLevelDiscountRequestActionParameters(value: object): value is V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON(value?: V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.js b/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.js new file mode 100644 index 0000000..6bb15e7 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON, SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON, } from './SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel'; +/** + * Check if a given object implements the V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters interface. + */ +export function instanceOfV1SellerActionsUpdateMultiLevelDiscountRequestActionParameters(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_levels' in value) || value['discount_levels'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +export function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_levels': (json['discount_levels'].map(SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON)), + 'is_legal_entities_segment': json['is_legal_entities_segment'] == null ? undefined : json['is_legal_entities_segment'], + 'title': json['title'], + }; +} +export function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_levels': (value['discount_levels'].map(SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON)), + 'is_legal_entities_segment': value['is_legal_entities_segment'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateVoucherRequest.d.ts b/dist/esm/models/V1SellerActionsUpdateVoucherRequest.d.ts new file mode 100644 index 0000000..ad70ba4 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateVoucherRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateVoucherRequestActionParameters } from './V1SellerActionsUpdateVoucherRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateVoucherRequest + */ +export interface V1SellerActionsUpdateVoucherRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateVoucherRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateVoucherRequestActionParameters} + * @memberof V1SellerActionsUpdateVoucherRequest + */ + action_parameters?: V1SellerActionsUpdateVoucherRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateVoucherRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateVoucherRequest(value: object): value is V1SellerActionsUpdateVoucherRequest; +export declare function V1SellerActionsUpdateVoucherRequestFromJSON(json: any): V1SellerActionsUpdateVoucherRequest; +export declare function V1SellerActionsUpdateVoucherRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateVoucherRequest; +export declare function V1SellerActionsUpdateVoucherRequestToJSON(value?: V1SellerActionsUpdateVoucherRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateVoucherRequest.js b/dist/esm/models/V1SellerActionsUpdateVoucherRequest.js new file mode 100644 index 0000000..ab171b3 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateVoucherRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SellerActionsUpdateVoucherRequestActionParametersFromJSON, V1SellerActionsUpdateVoucherRequestActionParametersToJSON, } from './V1SellerActionsUpdateVoucherRequestActionParameters'; +/** + * Check if a given object implements the V1SellerActionsUpdateVoucherRequest interface. + */ +export function instanceOfV1SellerActionsUpdateVoucherRequest(value) { + return true; +} +export function V1SellerActionsUpdateVoucherRequestFromJSON(json) { + return V1SellerActionsUpdateVoucherRequestFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateVoucherRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : V1SellerActionsUpdateVoucherRequestActionParametersFromJSON(json['action_parameters']), + }; +} +export function V1SellerActionsUpdateVoucherRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': V1SellerActionsUpdateVoucherRequestActionParametersToJSON(value['action_parameters']), + }; +} diff --git a/dist/esm/models/V1SellerActionsUpdateVoucherRequestActionParameters.d.ts b/dist/esm/models/V1SellerActionsUpdateVoucherRequestActionParameters.d.ts new file mode 100644 index 0000000..a0a2aa0 --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateVoucherRequestActionParameters.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateVoucherRequestActionParameters + */ +export interface V1SellerActionsUpdateVoucherRequestActionParameters { + /** + * Бюджет акции. Перед тем как его изменить, выключите акцию методом [/v1/seller-actions/change-activity](#operation/SellerActionsChangeActivity). + * @type {number} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + budget: number; + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + date_start: string; + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + discount_value: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + title: string; + /** + * Идентификаторы пользователей, которым доступен промокод. + * @type {Array} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + user_ids?: Array; +} +/** + * Check if a given object implements the V1SellerActionsUpdateVoucherRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateVoucherRequestActionParameters(value: object): value is V1SellerActionsUpdateVoucherRequestActionParameters; +export declare function V1SellerActionsUpdateVoucherRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateVoucherRequestActionParameters; +export declare function V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateVoucherRequestActionParameters; +export declare function V1SellerActionsUpdateVoucherRequestActionParametersToJSON(value?: V1SellerActionsUpdateVoucherRequestActionParameters | null): any; diff --git a/dist/esm/models/V1SellerActionsUpdateVoucherRequestActionParameters.js b/dist/esm/models/V1SellerActionsUpdateVoucherRequestActionParameters.js new file mode 100644 index 0000000..4c6801e --- /dev/null +++ b/dist/esm/models/V1SellerActionsUpdateVoucherRequestActionParameters.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsUpdateVoucherRequestActionParameters interface. + */ +export function instanceOfV1SellerActionsUpdateVoucherRequestActionParameters(value) { + if (!('budget' in value) || value['budget'] === undefined) + return false; + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +export function V1SellerActionsUpdateVoucherRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped(json, false); +} +export function V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'budget': json['budget'], + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_value': json['discount_value'], + 'title': json['title'], + 'user_ids': json['user_ids'] == null ? undefined : json['user_ids'], + }; +} +export function V1SellerActionsUpdateVoucherRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'budget': value['budget'], + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_value': value['discount_value'], + 'title': value['title'], + 'user_ids': value['user_ids'], + }; +} diff --git a/dist/esm/models/V1SellerActionsVoucherGetRequest.d.ts b/dist/esm/models/V1SellerActionsVoucherGetRequest.d.ts new file mode 100644 index 0000000..5df180d --- /dev/null +++ b/dist/esm/models/V1SellerActionsVoucherGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsVoucherGetRequest + */ +export interface V1SellerActionsVoucherGetRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsVoucherGetRequest + */ + action_id: number; +} +/** + * Check if a given object implements the V1SellerActionsVoucherGetRequest interface. + */ +export declare function instanceOfV1SellerActionsVoucherGetRequest(value: object): value is V1SellerActionsVoucherGetRequest; +export declare function V1SellerActionsVoucherGetRequestFromJSON(json: any): V1SellerActionsVoucherGetRequest; +export declare function V1SellerActionsVoucherGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsVoucherGetRequest; +export declare function V1SellerActionsVoucherGetRequestToJSON(value?: V1SellerActionsVoucherGetRequest | null): any; diff --git a/dist/esm/models/V1SellerActionsVoucherGetRequest.js b/dist/esm/models/V1SellerActionsVoucherGetRequest.js new file mode 100644 index 0000000..1a6bcc7 --- /dev/null +++ b/dist/esm/models/V1SellerActionsVoucherGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsVoucherGetRequest interface. + */ +export function instanceOfV1SellerActionsVoucherGetRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + return true; +} +export function V1SellerActionsVoucherGetRequestFromJSON(json) { + return V1SellerActionsVoucherGetRequestFromJSONTyped(json, false); +} +export function V1SellerActionsVoucherGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + }; +} +export function V1SellerActionsVoucherGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/esm/models/V1SellerActionsVoucherGetResponse.d.ts b/dist/esm/models/V1SellerActionsVoucherGetResponse.d.ts new file mode 100644 index 0000000..6abecaa --- /dev/null +++ b/dist/esm/models/V1SellerActionsVoucherGetResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsVoucherGetResponse + */ +export interface V1SellerActionsVoucherGetResponse { + /** + * Ссылка на CSV-файл с промокодами. + * @type {string} + * @memberof V1SellerActionsVoucherGetResponse + */ + file?: string; +} +/** + * Check if a given object implements the V1SellerActionsVoucherGetResponse interface. + */ +export declare function instanceOfV1SellerActionsVoucherGetResponse(value: object): value is V1SellerActionsVoucherGetResponse; +export declare function V1SellerActionsVoucherGetResponseFromJSON(json: any): V1SellerActionsVoucherGetResponse; +export declare function V1SellerActionsVoucherGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsVoucherGetResponse; +export declare function V1SellerActionsVoucherGetResponseToJSON(value?: V1SellerActionsVoucherGetResponse | null): any; diff --git a/dist/esm/models/V1SellerActionsVoucherGetResponse.js b/dist/esm/models/V1SellerActionsVoucherGetResponse.js new file mode 100644 index 0000000..6757a37 --- /dev/null +++ b/dist/esm/models/V1SellerActionsVoucherGetResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SellerActionsVoucherGetResponse interface. + */ +export function instanceOfV1SellerActionsVoucherGetResponse(value) { + return true; +} +export function V1SellerActionsVoucherGetResponseFromJSON(json) { + return V1SellerActionsVoucherGetResponseFromJSONTyped(json, false); +} +export function V1SellerActionsVoucherGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file': json['file'] == null ? undefined : json['file'], + }; +} +export function V1SellerActionsVoucherGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file': value['file'], + }; +} diff --git a/dist/esm/models/V1SellerInfoResponse.d.ts b/dist/esm/models/V1SellerInfoResponse.d.ts new file mode 100644 index 0000000..cb9e9a1 --- /dev/null +++ b/dist/esm/models/V1SellerInfoResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerInfoResponseCompany } from './SellerInfoResponseCompany'; +import type { SellerInfoResponseRating } from './SellerInfoResponseRating'; +import type { SellerInfoResponseSubscription } from './SellerInfoResponseSubscription'; +/** + * + * @export + * @interface V1SellerInfoResponse + */ +export interface V1SellerInfoResponse { + /** + * + * @type {SellerInfoResponseCompany} + * @memberof V1SellerInfoResponse + */ + company?: SellerInfoResponseCompany; + /** + * Список рейтингов. + * @type {Array} + * @memberof V1SellerInfoResponse + */ + ratings?: Array; + /** + * + * @type {SellerInfoResponseSubscription} + * @memberof V1SellerInfoResponse + */ + subscription?: SellerInfoResponseSubscription; +} +/** + * Check if a given object implements the V1SellerInfoResponse interface. + */ +export declare function instanceOfV1SellerInfoResponse(value: object): value is V1SellerInfoResponse; +export declare function V1SellerInfoResponseFromJSON(json: any): V1SellerInfoResponse; +export declare function V1SellerInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerInfoResponse; +export declare function V1SellerInfoResponseToJSON(value?: V1SellerInfoResponse | null): any; diff --git a/dist/esm/models/V1SellerInfoResponse.js b/dist/esm/models/V1SellerInfoResponse.js new file mode 100644 index 0000000..9e51c75 --- /dev/null +++ b/dist/esm/models/V1SellerInfoResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerInfoResponseCompanyFromJSON, SellerInfoResponseCompanyToJSON, } from './SellerInfoResponseCompany'; +import { SellerInfoResponseRatingFromJSON, SellerInfoResponseRatingToJSON, } from './SellerInfoResponseRating'; +import { SellerInfoResponseSubscriptionFromJSON, SellerInfoResponseSubscriptionToJSON, } from './SellerInfoResponseSubscription'; +/** + * Check if a given object implements the V1SellerInfoResponse interface. + */ +export function instanceOfV1SellerInfoResponse(value) { + return true; +} +export function V1SellerInfoResponseFromJSON(json) { + return V1SellerInfoResponseFromJSONTyped(json, false); +} +export function V1SellerInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company': json['company'] == null ? undefined : SellerInfoResponseCompanyFromJSON(json['company']), + 'ratings': json['ratings'] == null ? undefined : (json['ratings'].map(SellerInfoResponseRatingFromJSON)), + 'subscription': json['subscription'] == null ? undefined : SellerInfoResponseSubscriptionFromJSON(json['subscription']), + }; +} +export function V1SellerInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'company': SellerInfoResponseCompanyToJSON(value['company']), + 'ratings': value['ratings'] == null ? undefined : (value['ratings'].map(SellerInfoResponseRatingToJSON)), + 'subscription': SellerInfoResponseSubscriptionToJSON(value['subscription']), + }; +} diff --git a/dist/esm/models/V1SellerOzonLogisticsInfoResponse.d.ts b/dist/esm/models/V1SellerOzonLogisticsInfoResponse.d.ts new file mode 100644 index 0000000..aaafa71 --- /dev/null +++ b/dist/esm/models/V1SellerOzonLogisticsInfoResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerOzonLogisticsInfoResponseAvailableSchemasEnum } from './SellerOzonLogisticsInfoResponseAvailableSchemasEnum'; +/** + * + * @export + * @interface V1SellerOzonLogisticsInfoResponse + */ +export interface V1SellerOzonLogisticsInfoResponse { + /** + * Тип доступной схемы: + * - `UNKNOWN` — не определён, + * - `FBO`, + * - `FBS`. + * + * @type {Array} + * @memberof V1SellerOzonLogisticsInfoResponse + */ + available_schemas?: Array; + /** + * `true`, если Ozon Доставка подключена. + * + * @type {boolean} + * @memberof V1SellerOzonLogisticsInfoResponse + */ + ozon_logistics_enabled?: boolean; +} +/** + * Check if a given object implements the V1SellerOzonLogisticsInfoResponse interface. + */ +export declare function instanceOfV1SellerOzonLogisticsInfoResponse(value: object): value is V1SellerOzonLogisticsInfoResponse; +export declare function V1SellerOzonLogisticsInfoResponseFromJSON(json: any): V1SellerOzonLogisticsInfoResponse; +export declare function V1SellerOzonLogisticsInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerOzonLogisticsInfoResponse; +export declare function V1SellerOzonLogisticsInfoResponseToJSON(value?: V1SellerOzonLogisticsInfoResponse | null): any; diff --git a/dist/esm/models/V1SellerOzonLogisticsInfoResponse.js b/dist/esm/models/V1SellerOzonLogisticsInfoResponse.js new file mode 100644 index 0000000..685e270 --- /dev/null +++ b/dist/esm/models/V1SellerOzonLogisticsInfoResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON, SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON, } from './SellerOzonLogisticsInfoResponseAvailableSchemasEnum'; +/** + * Check if a given object implements the V1SellerOzonLogisticsInfoResponse interface. + */ +export function instanceOfV1SellerOzonLogisticsInfoResponse(value) { + return true; +} +export function V1SellerOzonLogisticsInfoResponseFromJSON(json) { + return V1SellerOzonLogisticsInfoResponseFromJSONTyped(json, false); +} +export function V1SellerOzonLogisticsInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_schemas': json['available_schemas'] == null ? undefined : (json['available_schemas'].map(SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON)), + 'ozon_logistics_enabled': json['ozon_logistics_enabled'] == null ? undefined : json['ozon_logistics_enabled'], + }; +} +export function V1SellerOzonLogisticsInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_schemas': value['available_schemas'] == null ? undefined : (value['available_schemas'].map(SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON)), + 'ozon_logistics_enabled': value['ozon_logistics_enabled'], + }; +} diff --git a/dist/esm/models/V1SetPostingCutoffRequest.d.ts b/dist/esm/models/V1SetPostingCutoffRequest.d.ts new file mode 100644 index 0000000..3b33418 --- /dev/null +++ b/dist/esm/models/V1SetPostingCutoffRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SetPostingCutoffRequest + */ +export interface V1SetPostingCutoffRequest { + /** + * Новая дата отгрузки. + * @type {string} + * @memberof V1SetPostingCutoffRequest + */ + new_cutoff_date: string; + /** + * Номер отправления. + * @type {string} + * @memberof V1SetPostingCutoffRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1SetPostingCutoffRequest interface. + */ +export declare function instanceOfV1SetPostingCutoffRequest(value: object): value is V1SetPostingCutoffRequest; +export declare function V1SetPostingCutoffRequestFromJSON(json: any): V1SetPostingCutoffRequest; +export declare function V1SetPostingCutoffRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetPostingCutoffRequest; +export declare function V1SetPostingCutoffRequestToJSON(value?: V1SetPostingCutoffRequest | null): any; diff --git a/dist/esm/models/V1SetPostingCutoffRequest.js b/dist/esm/models/V1SetPostingCutoffRequest.js new file mode 100644 index 0000000..d80bf0b --- /dev/null +++ b/dist/esm/models/V1SetPostingCutoffRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SetPostingCutoffRequest interface. + */ +export function instanceOfV1SetPostingCutoffRequest(value) { + if (!('new_cutoff_date' in value) || value['new_cutoff_date'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V1SetPostingCutoffRequestFromJSON(json) { + return V1SetPostingCutoffRequestFromJSONTyped(json, false); +} +export function V1SetPostingCutoffRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'new_cutoff_date': json['new_cutoff_date'], + 'posting_number': json['posting_number'], + }; +} +export function V1SetPostingCutoffRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'new_cutoff_date': value['new_cutoff_date'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1SetPostingCutoffResponse.d.ts b/dist/esm/models/V1SetPostingCutoffResponse.d.ts new file mode 100644 index 0000000..580648c --- /dev/null +++ b/dist/esm/models/V1SetPostingCutoffResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SetPostingCutoffResponse + */ +export interface V1SetPostingCutoffResponse { + /** + * `true`, если установлена новая дата. + * + * @type {boolean} + * @memberof V1SetPostingCutoffResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the V1SetPostingCutoffResponse interface. + */ +export declare function instanceOfV1SetPostingCutoffResponse(value: object): value is V1SetPostingCutoffResponse; +export declare function V1SetPostingCutoffResponseFromJSON(json: any): V1SetPostingCutoffResponse; +export declare function V1SetPostingCutoffResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetPostingCutoffResponse; +export declare function V1SetPostingCutoffResponseToJSON(value?: V1SetPostingCutoffResponse | null): any; diff --git a/dist/esm/models/V1SetPostingCutoffResponse.js b/dist/esm/models/V1SetPostingCutoffResponse.js new file mode 100644 index 0000000..ab9d583 --- /dev/null +++ b/dist/esm/models/V1SetPostingCutoffResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SetPostingCutoffResponse interface. + */ +export function instanceOfV1SetPostingCutoffResponse(value) { + return true; +} +export function V1SetPostingCutoffResponseFromJSON(json) { + return V1SetPostingCutoffResponseFromJSONTyped(json, false); +} +export function V1SetPostingCutoffResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function V1SetPostingCutoffResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/V1SetPostingsRequest.d.ts b/dist/esm/models/V1SetPostingsRequest.d.ts new file mode 100644 index 0000000..6458455 --- /dev/null +++ b/dist/esm/models/V1SetPostingsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SetPostingsRequest + */ +export interface V1SetPostingsRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1SetPostingsRequest + */ + carriage_id: number; + /** + * Актуальный список отправлений. + * @type {Array} + * @memberof V1SetPostingsRequest + */ + posting_numbers: Array; +} +/** + * Check if a given object implements the V1SetPostingsRequest interface. + */ +export declare function instanceOfV1SetPostingsRequest(value: object): value is V1SetPostingsRequest; +export declare function V1SetPostingsRequestFromJSON(json: any): V1SetPostingsRequest; +export declare function V1SetPostingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetPostingsRequest; +export declare function V1SetPostingsRequestToJSON(value?: V1SetPostingsRequest | null): any; diff --git a/dist/esm/models/V1SetPostingsRequest.js b/dist/esm/models/V1SetPostingsRequest.js new file mode 100644 index 0000000..d7b2141 --- /dev/null +++ b/dist/esm/models/V1SetPostingsRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SetPostingsRequest interface. + */ +export function instanceOfV1SetPostingsRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + if (!('posting_numbers' in value) || value['posting_numbers'] === undefined) + return false; + return true; +} +export function V1SetPostingsRequestFromJSON(json) { + return V1SetPostingsRequestFromJSONTyped(json, false); +} +export function V1SetPostingsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'posting_numbers': json['posting_numbers'], + }; +} +export function V1SetPostingsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/esm/models/V1SetPostingsResponse.d.ts b/dist/esm/models/V1SetPostingsResponse.d.ts new file mode 100644 index 0000000..cd9903e --- /dev/null +++ b/dist/esm/models/V1SetPostingsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SetPostingsResponseResult } from './SetPostingsResponseResult'; +/** + * + * @export + * @interface V1SetPostingsResponse + */ +export interface V1SetPostingsResponse { + /** + * + * @type {Array} + * @memberof V1SetPostingsResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1SetPostingsResponse interface. + */ +export declare function instanceOfV1SetPostingsResponse(value: object): value is V1SetPostingsResponse; +export declare function V1SetPostingsResponseFromJSON(json: any): V1SetPostingsResponse; +export declare function V1SetPostingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetPostingsResponse; +export declare function V1SetPostingsResponseToJSON(value?: V1SetPostingsResponse | null): any; diff --git a/dist/esm/models/V1SetPostingsResponse.js b/dist/esm/models/V1SetPostingsResponse.js new file mode 100644 index 0000000..e736505 --- /dev/null +++ b/dist/esm/models/V1SetPostingsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SetPostingsResponseResultFromJSON, SetPostingsResponseResultToJSON, } from './SetPostingsResponseResult'; +/** + * Check if a given object implements the V1SetPostingsResponse interface. + */ +export function instanceOfV1SetPostingsResponse(value) { + return true; +} +export function V1SetPostingsResponseFromJSON(json) { + return V1SetPostingsResponseFromJSONTyped(json, false); +} +export function V1SetPostingsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(SetPostingsResponseResultFromJSON)), + }; +} +export function V1SetPostingsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(SetPostingsResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequest.d.ts b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequest.d.ts new file mode 100644 index 0000000..0502af2 --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetProductStairwayDiscountByQuantityRequestStairways } from './V1SetProductStairwayDiscountByQuantityRequestStairways'; +/** + * + * @export + * @interface V1SetProductStairwayDiscountByQuantityRequest + */ +export interface V1SetProductStairwayDiscountByQuantityRequest { + /** + * Информация о скидке от количества по товарам. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityRequest + */ + stairways: Array; + /** + * Передайте `true`, чтобы игнорировать предупреждения и установить скидку. + * + * @type {boolean} + * @memberof V1SetProductStairwayDiscountByQuantityRequest + */ + suppress_warnings?: boolean; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequest interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityRequest(value: object): value is V1SetProductStairwayDiscountByQuantityRequest; +export declare function V1SetProductStairwayDiscountByQuantityRequestFromJSON(json: any): V1SetProductStairwayDiscountByQuantityRequest; +export declare function V1SetProductStairwayDiscountByQuantityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityRequest; +export declare function V1SetProductStairwayDiscountByQuantityRequestToJSON(value?: V1SetProductStairwayDiscountByQuantityRequest | null): any; diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequest.js b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequest.js new file mode 100644 index 0000000..8903b96 --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequest.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON, V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON, } from './V1SetProductStairwayDiscountByQuantityRequestStairways'; +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequest interface. + */ +export function instanceOfV1SetProductStairwayDiscountByQuantityRequest(value) { + if (!('stairways' in value) || value['stairways'] === undefined) + return false; + return true; +} +export function V1SetProductStairwayDiscountByQuantityRequestFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityRequestFromJSONTyped(json, false); +} +export function V1SetProductStairwayDiscountByQuantityRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stairways': (json['stairways'].map(V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON)), + 'suppress_warnings': json['suppress_warnings'] == null ? undefined : json['suppress_warnings'], + }; +} +export function V1SetProductStairwayDiscountByQuantityRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'stairways': (value['stairways'].map(V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON)), + 'suppress_warnings': value['suppress_warnings'], + }; +} diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairways.d.ts b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairways.d.ts new file mode 100644 index 0000000..cef8472 --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairways.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway } from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway'; +/** + * Информация о скидке от количества по конкретному товару. + * @export + * @interface V1SetProductStairwayDiscountByQuantityRequestStairways + */ +export interface V1SetProductStairwayDiscountByQuantityRequestStairways { + /** + * `true`, чтобы включить скидку. + * + * @type {boolean} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairways + */ + enabled: boolean; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairways + */ + sku: number; + /** + * + * @type {V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairways + */ + stairway: V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairways interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairways(value: object): value is V1SetProductStairwayDiscountByQuantityRequestStairways; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON(json: any): V1SetProductStairwayDiscountByQuantityRequestStairways; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityRequestStairways; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON(value?: V1SetProductStairwayDiscountByQuantityRequestStairways | null): any; diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairways.js b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairways.js new file mode 100644 index 0000000..d7557fd --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairways.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON, V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON, } from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway'; +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairways interface. + */ +export function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairways(value) { + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + if (!('stairway' in value) || value['stairway'] === undefined) + return false; + return true; +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSONTyped(json, false); +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'], + 'sku': json['sku'], + 'stairway': V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON(json['stairway']), + }; +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'sku': value['sku'], + 'stairway': V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON(value['stairway']), + }; +} diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.d.ts b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.d.ts new file mode 100644 index 0000000..0b266e8 --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep } from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep'; +/** + * Информация об уровне скидки от количества. + * @export + * @interface V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway + */ +export interface V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway { + /** + * Информация об уровнях скидки. Количество уровней — от 1 до 4. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway + */ + steps: Array; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairway(value: object): value is V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON(json: any): V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON(value?: V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway | null): any; diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.js b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.js new file mode 100644 index 0000000..149139f --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON, V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON, } from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep'; +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway interface. + */ +export function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairway(value) { + if (!('steps' in value) || value['steps'] === undefined) + return false; + return true; +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSONTyped(json, false); +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'steps': (json['steps'].map(V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON)), + }; +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON(value) { + if (value == null) { + return value; + } + return { + 'steps': (value['steps'].map(V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON)), + }; +} diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.d.ts b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.d.ts new file mode 100644 index 0000000..19f2b7a --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep + */ +export interface V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep { + /** + * Размер скидки в процентах. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep + */ + discount: number; + /** + * Количество товаров в заказе для применения скидки. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep + */ + quantity: number; + /** + * Уровень скидки. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep + */ + step: number; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep(value: object): value is V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON(json: any): V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON(value?: V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep | null): any; diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.js b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.js new file mode 100644 index 0000000..6e662a1 --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep interface. + */ +export function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep(value) { + if (!('discount' in value) || value['discount'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('step' in value) || value['step'] === undefined) + return false; + return true; +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSONTyped(json, false); +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount': json['discount'], + 'quantity': json['quantity'], + 'step': json['step'], + }; +} +export function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount': value['discount'], + 'quantity': value['quantity'], + 'step': value['step'], + }; +} diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponse.d.ts b/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponse.d.ts new file mode 100644 index 0000000..0d69dd6 --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetProductStairwayDiscountByQuantityResponseError } from './V1SetProductStairwayDiscountByQuantityResponseError'; +/** + * + * @export + * @interface V1SetProductStairwayDiscountByQuantityResponse + */ +export interface V1SetProductStairwayDiscountByQuantityResponse { + /** + * `true`, если запрос принят. Используйте метод [/v1/product/stairway-discount/by-quantity/get](#operation/ProductAPI_GetProductStairwayDiscountByQuantity), чтобы узнать результат изменения скидки. + * + * @type {boolean} + * @memberof V1SetProductStairwayDiscountByQuantityResponse + */ + accepted?: boolean; + /** + * Описание ошибок. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityResponse + */ + errors?: Array; + /** + * Описание предупреждения. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityResponse + */ + warnings?: Array; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityResponse interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityResponse(value: object): value is V1SetProductStairwayDiscountByQuantityResponse; +export declare function V1SetProductStairwayDiscountByQuantityResponseFromJSON(json: any): V1SetProductStairwayDiscountByQuantityResponse; +export declare function V1SetProductStairwayDiscountByQuantityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityResponse; +export declare function V1SetProductStairwayDiscountByQuantityResponseToJSON(value?: V1SetProductStairwayDiscountByQuantityResponse | null): any; diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponse.js b/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponse.js new file mode 100644 index 0000000..1cf9283 --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON, V1SetProductStairwayDiscountByQuantityResponseErrorToJSON, } from './V1SetProductStairwayDiscountByQuantityResponseError'; +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityResponse interface. + */ +export function instanceOfV1SetProductStairwayDiscountByQuantityResponse(value) { + return true; +} +export function V1SetProductStairwayDiscountByQuantityResponseFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityResponseFromJSONTyped(json, false); +} +export function V1SetProductStairwayDiscountByQuantityResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accepted': json['accepted'] == null ? undefined : json['accepted'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON)), + 'warnings': json['warnings'] == null ? undefined : (json['warnings'].map(V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON)), + }; +} +export function V1SetProductStairwayDiscountByQuantityResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'accepted': value['accepted'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1SetProductStairwayDiscountByQuantityResponseErrorToJSON)), + 'warnings': value['warnings'] == null ? undefined : (value['warnings'].map(V1SetProductStairwayDiscountByQuantityResponseErrorToJSON)), + }; +} diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponseError.d.ts b/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponseError.d.ts new file mode 100644 index 0000000..d690c2d --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponseError.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorData } from './ErrorData'; +/** + * + * @export + * @interface V1SetProductStairwayDiscountByQuantityResponseError + */ +export interface V1SetProductStairwayDiscountByQuantityResponseError { + /** + * Описание ошибки или предупреждения. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityResponseError + */ + data?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityResponseError + */ + sku?: number; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityResponseError interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityResponseError(value: object): value is V1SetProductStairwayDiscountByQuantityResponseError; +export declare function V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON(json: any): V1SetProductStairwayDiscountByQuantityResponseError; +export declare function V1SetProductStairwayDiscountByQuantityResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityResponseError; +export declare function V1SetProductStairwayDiscountByQuantityResponseErrorToJSON(value?: V1SetProductStairwayDiscountByQuantityResponseError | null): any; diff --git a/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponseError.js b/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponseError.js new file mode 100644 index 0000000..49df82c --- /dev/null +++ b/dist/esm/models/V1SetProductStairwayDiscountByQuantityResponseError.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ErrorDataFromJSON, ErrorDataToJSON, } from './ErrorData'; +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityResponseError interface. + */ +export function instanceOfV1SetProductStairwayDiscountByQuantityResponseError(value) { + return true; +} +export function V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityResponseErrorFromJSONTyped(json, false); +} +export function V1SetProductStairwayDiscountByQuantityResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': json['data'] == null ? undefined : (json['data'].map(ErrorDataFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V1SetProductStairwayDiscountByQuantityResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'data': value['data'] == null ? undefined : (value['data'].map(ErrorDataToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1SetVehicleError.d.ts b/dist/esm/models/V1SetVehicleError.d.ts new file mode 100644 index 0000000..ad90ad6 --- /dev/null +++ b/dist/esm/models/V1SetVehicleError.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1SetVehicleError: { + readonly UNSPECIFIED: "SET_VEHICLE_ERROR_UNSPECIFIED"; + readonly INVALID_ORDER_STATE: "SET_VEHICLE_ERROR_INVALID_ORDER_STATE"; + readonly VEHICLE_NOT_REQUIRED: "SET_VEHICLE_ERROR_VEHICLE_NOT_REQUIRED"; + readonly ORDER_NOT_BELONG_CONTRACTOR: "SET_VEHICLE_ERROR_ORDER_NOT_BELONG_CONTRACTOR"; + readonly ORDER_NOT_BELONG_COMPANY: "SET_VEHICLE_ERROR_ORDER_NOT_BELONG_COMPANY"; +}; +export type V1SetVehicleError = typeof V1SetVehicleError[keyof typeof V1SetVehicleError]; +export declare function instanceOfV1SetVehicleError(value: any): boolean; +export declare function V1SetVehicleErrorFromJSON(json: any): V1SetVehicleError; +export declare function V1SetVehicleErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetVehicleError; +export declare function V1SetVehicleErrorToJSON(value?: V1SetVehicleError | null): any; diff --git a/dist/esm/models/V1SetVehicleError.js b/dist/esm/models/V1SetVehicleError.js new file mode 100644 index 0000000..641c317 --- /dev/null +++ b/dist/esm/models/V1SetVehicleError.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1SetVehicleError = { + UNSPECIFIED: 'SET_VEHICLE_ERROR_UNSPECIFIED', + INVALID_ORDER_STATE: 'SET_VEHICLE_ERROR_INVALID_ORDER_STATE', + VEHICLE_NOT_REQUIRED: 'SET_VEHICLE_ERROR_VEHICLE_NOT_REQUIRED', + ORDER_NOT_BELONG_CONTRACTOR: 'SET_VEHICLE_ERROR_ORDER_NOT_BELONG_CONTRACTOR', + ORDER_NOT_BELONG_COMPANY: 'SET_VEHICLE_ERROR_ORDER_NOT_BELONG_COMPANY' +}; +export function instanceOfV1SetVehicleError(value) { + for (const key in V1SetVehicleError) { + if (Object.prototype.hasOwnProperty.call(V1SetVehicleError, key)) { + if (V1SetVehicleError[key] === value) { + return true; + } + } + } + return false; +} +export function V1SetVehicleErrorFromJSON(json) { + return V1SetVehicleErrorFromJSONTyped(json, false); +} +export function V1SetVehicleErrorFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SetVehicleErrorToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1StatusCodeNamePair.d.ts b/dist/esm/models/V1StatusCodeNamePair.d.ts new file mode 100644 index 0000000..8ef622d --- /dev/null +++ b/dist/esm/models/V1StatusCodeNamePair.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1StatusCodeNamePair + */ +export interface V1StatusCodeNamePair { + /** + * Код статуса товара при привязке к сертификату. + * @type {string} + * @memberof V1StatusCodeNamePair + */ + code?: string; + /** + * Описание статуса. + * @type {string} + * @memberof V1StatusCodeNamePair + */ + name?: string; +} +/** + * Check if a given object implements the V1StatusCodeNamePair interface. + */ +export declare function instanceOfV1StatusCodeNamePair(value: object): value is V1StatusCodeNamePair; +export declare function V1StatusCodeNamePairFromJSON(json: any): V1StatusCodeNamePair; +export declare function V1StatusCodeNamePairFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StatusCodeNamePair; +export declare function V1StatusCodeNamePairToJSON(value?: V1StatusCodeNamePair | null): any; diff --git a/dist/esm/models/V1StatusCodeNamePair.js b/dist/esm/models/V1StatusCodeNamePair.js new file mode 100644 index 0000000..1e30231 --- /dev/null +++ b/dist/esm/models/V1StatusCodeNamePair.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1StatusCodeNamePair interface. + */ +export function instanceOfV1StatusCodeNamePair(value) { + return true; +} +export function V1StatusCodeNamePairFromJSON(json) { + return V1StatusCodeNamePairFromJSONTyped(json, false); +} +export function V1StatusCodeNamePairFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function V1StatusCodeNamePairToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/V1StatusCodeNamePairRejection.d.ts b/dist/esm/models/V1StatusCodeNamePairRejection.d.ts new file mode 100644 index 0000000..20e775b --- /dev/null +++ b/dist/esm/models/V1StatusCodeNamePairRejection.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1StatusCodeNamePairRejection + */ +export interface V1StatusCodeNamePairRejection { + /** + * Код причины отклонения сертификата. + * @type {string} + * @memberof V1StatusCodeNamePairRejection + */ + code?: string; + /** + * Описание причины отклонения сертификата. + * @type {string} + * @memberof V1StatusCodeNamePairRejection + */ + name?: string; +} +/** + * Check if a given object implements the V1StatusCodeNamePairRejection interface. + */ +export declare function instanceOfV1StatusCodeNamePairRejection(value: object): value is V1StatusCodeNamePairRejection; +export declare function V1StatusCodeNamePairRejectionFromJSON(json: any): V1StatusCodeNamePairRejection; +export declare function V1StatusCodeNamePairRejectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StatusCodeNamePairRejection; +export declare function V1StatusCodeNamePairRejectionToJSON(value?: V1StatusCodeNamePairRejection | null): any; diff --git a/dist/esm/models/V1StatusCodeNamePairRejection.js b/dist/esm/models/V1StatusCodeNamePairRejection.js new file mode 100644 index 0000000..2057064 --- /dev/null +++ b/dist/esm/models/V1StatusCodeNamePairRejection.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1StatusCodeNamePairRejection interface. + */ +export function instanceOfV1StatusCodeNamePairRejection(value) { + return true; +} +export function V1StatusCodeNamePairRejectionFromJSON(json) { + return V1StatusCodeNamePairRejectionFromJSONTyped(json, false); +} +export function V1StatusCodeNamePairRejectionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function V1StatusCodeNamePairRejectionToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/V1StatusCodeNamePairStatuses.d.ts b/dist/esm/models/V1StatusCodeNamePairStatuses.d.ts new file mode 100644 index 0000000..226514c --- /dev/null +++ b/dist/esm/models/V1StatusCodeNamePairStatuses.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1StatusCodeNamePairStatuses + */ +export interface V1StatusCodeNamePairStatuses { + /** + * Код статуса сертификата. + * @type {string} + * @memberof V1StatusCodeNamePairStatuses + */ + code?: string; + /** + * Описание статуса. + * @type {string} + * @memberof V1StatusCodeNamePairStatuses + */ + name?: string; +} +/** + * Check if a given object implements the V1StatusCodeNamePairStatuses interface. + */ +export declare function instanceOfV1StatusCodeNamePairStatuses(value: object): value is V1StatusCodeNamePairStatuses; +export declare function V1StatusCodeNamePairStatusesFromJSON(json: any): V1StatusCodeNamePairStatuses; +export declare function V1StatusCodeNamePairStatusesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StatusCodeNamePairStatuses; +export declare function V1StatusCodeNamePairStatusesToJSON(value?: V1StatusCodeNamePairStatuses | null): any; diff --git a/dist/esm/models/V1StatusCodeNamePairStatuses.js b/dist/esm/models/V1StatusCodeNamePairStatuses.js new file mode 100644 index 0000000..17f8b3f --- /dev/null +++ b/dist/esm/models/V1StatusCodeNamePairStatuses.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1StatusCodeNamePairStatuses interface. + */ +export function instanceOfV1StatusCodeNamePairStatuses(value) { + return true; +} +export function V1StatusCodeNamePairStatusesFromJSON(json) { + return V1StatusCodeNamePairStatusesFromJSONTyped(json, false); +} +export function V1StatusCodeNamePairStatusesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function V1StatusCodeNamePairStatusesToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/V1StocksImportRequest.d.ts b/dist/esm/models/V1StocksImportRequest.d.ts new file mode 100644 index 0000000..dfb10f2 --- /dev/null +++ b/dist/esm/models/V1StocksImportRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StocksImportRequestItemStock } from './StocksImportRequestItemStock'; +/** + * + * @export + * @interface V1StocksImportRequest + */ +export interface V1StocksImportRequest { + /** + * Данные об остатках. + * @type {Array} + * @memberof V1StocksImportRequest + */ + stocks?: Array; +} +/** + * Check if a given object implements the V1StocksImportRequest interface. + */ +export declare function instanceOfV1StocksImportRequest(value: object): value is V1StocksImportRequest; +export declare function V1StocksImportRequestFromJSON(json: any): V1StocksImportRequest; +export declare function V1StocksImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StocksImportRequest; +export declare function V1StocksImportRequestToJSON(value?: V1StocksImportRequest | null): any; diff --git a/dist/esm/models/V1StocksImportRequest.js b/dist/esm/models/V1StocksImportRequest.js new file mode 100644 index 0000000..3d1177d --- /dev/null +++ b/dist/esm/models/V1StocksImportRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { StocksImportRequestItemStockFromJSON, StocksImportRequestItemStockToJSON, } from './StocksImportRequestItemStock'; +/** + * Check if a given object implements the V1StocksImportRequest interface. + */ +export function instanceOfV1StocksImportRequest(value) { + return true; +} +export function V1StocksImportRequestFromJSON(json) { + return V1StocksImportRequestFromJSONTyped(json, false); +} +export function V1StocksImportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stocks': json['stocks'] == null ? undefined : (json['stocks'].map(StocksImportRequestItemStockFromJSON)), + }; +} +export function V1StocksImportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'stocks': value['stocks'] == null ? undefined : (value['stocks'].map(StocksImportRequestItemStockToJSON)), + }; +} diff --git a/dist/esm/models/V1StocksImportResponse.d.ts b/dist/esm/models/V1StocksImportResponse.d.ts new file mode 100644 index 0000000..24fbffc --- /dev/null +++ b/dist/esm/models/V1StocksImportResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StocksImportResponseItemStatus } from './StocksImportResponseItemStatus'; +/** + * + * @export + * @interface V1StocksImportResponse + */ +export interface V1StocksImportResponse { + /** + * Информация о товарах. + * @type {Array} + * @memberof V1StocksImportResponse + */ + status?: Array; +} +/** + * Check if a given object implements the V1StocksImportResponse interface. + */ +export declare function instanceOfV1StocksImportResponse(value: object): value is V1StocksImportResponse; +export declare function V1StocksImportResponseFromJSON(json: any): V1StocksImportResponse; +export declare function V1StocksImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StocksImportResponse; +export declare function V1StocksImportResponseToJSON(value?: V1StocksImportResponse | null): any; diff --git a/dist/esm/models/V1StocksImportResponse.js b/dist/esm/models/V1StocksImportResponse.js new file mode 100644 index 0000000..65ae611 --- /dev/null +++ b/dist/esm/models/V1StocksImportResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { StocksImportResponseItemStatusFromJSON, StocksImportResponseItemStatusToJSON, } from './StocksImportResponseItemStatus'; +/** + * Check if a given object implements the V1StocksImportResponse interface. + */ +export function instanceOfV1StocksImportResponse(value) { + return true; +} +export function V1StocksImportResponseFromJSON(json) { + return V1StocksImportResponseFromJSONTyped(json, false); +} +export function V1StocksImportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : (json['status'].map(StocksImportResponseItemStatusFromJSON)), + }; +} +export function V1StocksImportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': value['status'] == null ? undefined : (value['status'].map(StocksImportResponseItemStatusToJSON)), + }; +} diff --git a/dist/esm/models/V1StrategyRequest.d.ts b/dist/esm/models/V1StrategyRequest.d.ts new file mode 100644 index 0000000..63b0b00 --- /dev/null +++ b/dist/esm/models/V1StrategyRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1StrategyRequest + */ +export interface V1StrategyRequest { + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1StrategyRequest + */ + strategy_id: string; +} +/** + * Check if a given object implements the V1StrategyRequest interface. + */ +export declare function instanceOfV1StrategyRequest(value: object): value is V1StrategyRequest; +export declare function V1StrategyRequestFromJSON(json: any): V1StrategyRequest; +export declare function V1StrategyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StrategyRequest; +export declare function V1StrategyRequestToJSON(value?: V1StrategyRequest | null): any; diff --git a/dist/esm/models/V1StrategyRequest.js b/dist/esm/models/V1StrategyRequest.js new file mode 100644 index 0000000..b99d416 --- /dev/null +++ b/dist/esm/models/V1StrategyRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1StrategyRequest interface. + */ +export function instanceOfV1StrategyRequest(value) { + if (!('strategy_id' in value) || value['strategy_id'] === undefined) + return false; + return true; +} +export function V1StrategyRequestFromJSON(json) { + return V1StrategyRequestFromJSONTyped(json, false); +} +export function V1StrategyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'strategy_id': json['strategy_id'], + }; +} +export function V1StrategyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/esm/models/V1SupplierAvailableWarehousesResponse.d.ts b/dist/esm/models/V1SupplierAvailableWarehousesResponse.d.ts new file mode 100644 index 0000000..8edf3de --- /dev/null +++ b/dist/esm/models/V1SupplierAvailableWarehousesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplierAvailableWarehousesResponseResult } from './SupplierAvailableWarehousesResponseResult'; +/** + * + * @export + * @interface V1SupplierAvailableWarehousesResponse + */ +export interface V1SupplierAvailableWarehousesResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof V1SupplierAvailableWarehousesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1SupplierAvailableWarehousesResponse interface. + */ +export declare function instanceOfV1SupplierAvailableWarehousesResponse(value: object): value is V1SupplierAvailableWarehousesResponse; +export declare function V1SupplierAvailableWarehousesResponseFromJSON(json: any): V1SupplierAvailableWarehousesResponse; +export declare function V1SupplierAvailableWarehousesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplierAvailableWarehousesResponse; +export declare function V1SupplierAvailableWarehousesResponseToJSON(value?: V1SupplierAvailableWarehousesResponse | null): any; diff --git a/dist/esm/models/V1SupplierAvailableWarehousesResponse.js b/dist/esm/models/V1SupplierAvailableWarehousesResponse.js new file mode 100644 index 0000000..396754f --- /dev/null +++ b/dist/esm/models/V1SupplierAvailableWarehousesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplierAvailableWarehousesResponseResultFromJSON, SupplierAvailableWarehousesResponseResultToJSON, } from './SupplierAvailableWarehousesResponseResult'; +/** + * Check if a given object implements the V1SupplierAvailableWarehousesResponse interface. + */ +export function instanceOfV1SupplierAvailableWarehousesResponse(value) { + return true; +} +export function V1SupplierAvailableWarehousesResponseFromJSON(json) { + return V1SupplierAvailableWarehousesResponseFromJSONTyped(json, false); +} +export function V1SupplierAvailableWarehousesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(SupplierAvailableWarehousesResponseResultFromJSON)), + }; +} +export function V1SupplierAvailableWarehousesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(SupplierAvailableWarehousesResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/V1SupplyOrderCancelRequest.d.ts b/dist/esm/models/V1SupplyOrderCancelRequest.d.ts new file mode 100644 index 0000000..47672b1 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderCancelRequest + */ +export interface V1SupplyOrderCancelRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderCancelRequest + */ + order_id: number; +} +/** + * Check if a given object implements the V1SupplyOrderCancelRequest interface. + */ +export declare function instanceOfV1SupplyOrderCancelRequest(value: object): value is V1SupplyOrderCancelRequest; +export declare function V1SupplyOrderCancelRequestFromJSON(json: any): V1SupplyOrderCancelRequest; +export declare function V1SupplyOrderCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelRequest; +export declare function V1SupplyOrderCancelRequestToJSON(value?: V1SupplyOrderCancelRequest | null): any; diff --git a/dist/esm/models/V1SupplyOrderCancelRequest.js b/dist/esm/models/V1SupplyOrderCancelRequest.js new file mode 100644 index 0000000..9e8c832 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderCancelRequest interface. + */ +export function instanceOfV1SupplyOrderCancelRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +export function V1SupplyOrderCancelRequestFromJSON(json) { + return V1SupplyOrderCancelRequestFromJSONTyped(json, false); +} +export function V1SupplyOrderCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +export function V1SupplyOrderCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderCancelResponse.d.ts b/dist/esm/models/V1SupplyOrderCancelResponse.d.ts new file mode 100644 index 0000000..2e97562 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderCancelResponse + */ +export interface V1SupplyOrderCancelResponse { + /** + * Идентификатор операции на отмену заявки. + * @type {string} + * @memberof V1SupplyOrderCancelResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1SupplyOrderCancelResponse interface. + */ +export declare function instanceOfV1SupplyOrderCancelResponse(value: object): value is V1SupplyOrderCancelResponse; +export declare function V1SupplyOrderCancelResponseFromJSON(json: any): V1SupplyOrderCancelResponse; +export declare function V1SupplyOrderCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelResponse; +export declare function V1SupplyOrderCancelResponseToJSON(value?: V1SupplyOrderCancelResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderCancelResponse.js b/dist/esm/models/V1SupplyOrderCancelResponse.js new file mode 100644 index 0000000..5be84c7 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderCancelResponse interface. + */ +export function instanceOfV1SupplyOrderCancelResponse(value) { + return true; +} +export function V1SupplyOrderCancelResponseFromJSON(json) { + return V1SupplyOrderCancelResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1SupplyOrderCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderCancelStatusRequest.d.ts b/dist/esm/models/V1SupplyOrderCancelStatusRequest.d.ts new file mode 100644 index 0000000..4ec709f --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderCancelStatusRequest + */ +export interface V1SupplyOrderCancelStatusRequest { + /** + * Идентификатор операции на отмену заявки на поставку. + * @type {string} + * @memberof V1SupplyOrderCancelStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1SupplyOrderCancelStatusRequest interface. + */ +export declare function instanceOfV1SupplyOrderCancelStatusRequest(value: object): value is V1SupplyOrderCancelStatusRequest; +export declare function V1SupplyOrderCancelStatusRequestFromJSON(json: any): V1SupplyOrderCancelStatusRequest; +export declare function V1SupplyOrderCancelStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelStatusRequest; +export declare function V1SupplyOrderCancelStatusRequestToJSON(value?: V1SupplyOrderCancelStatusRequest | null): any; diff --git a/dist/esm/models/V1SupplyOrderCancelStatusRequest.js b/dist/esm/models/V1SupplyOrderCancelStatusRequest.js new file mode 100644 index 0000000..75016ae --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderCancelStatusRequest interface. + */ +export function instanceOfV1SupplyOrderCancelStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function V1SupplyOrderCancelStatusRequestFromJSON(json) { + return V1SupplyOrderCancelStatusRequestFromJSONTyped(json, false); +} +export function V1SupplyOrderCancelStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function V1SupplyOrderCancelStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderCancelStatusResponse.d.ts b/dist/esm/models/V1SupplyOrderCancelStatusResponse.d.ts new file mode 100644 index 0000000..4006436 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelStatusResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderCancelStatusResponseResult } from './SupplyOrderCancelStatusResponseResult'; +import type { SupplyOrderCancelStatusResponseCancelOrderError } from './SupplyOrderCancelStatusResponseCancelOrderError'; +import type { V1SupplyOrderCancelStatusResponseStatus } from './V1SupplyOrderCancelStatusResponseStatus'; +/** + * + * @export + * @interface V1SupplyOrderCancelStatusResponse + */ +export interface V1SupplyOrderCancelStatusResponse { + /** + * Причина, по которой не удалось отменить заявку на поставку: + * - `INVALID_ORDER_STATE` — неверный статус заявки на поставку. + * - `ORDER_IS_VIRTUAL` — заявка виртуальная. + * - `ORDER_DOES_NOT_BELONG_TO_CONTRACTOR` — заявка на поставку не принадлежит вашему юридическому лицу. + * - `ORDER_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу. + * - `OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS` — заявка на поставку в процессе отмены. + * + * @type {Array} + * @memberof V1SupplyOrderCancelStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {SupplyOrderCancelStatusResponseResult} + * @memberof V1SupplyOrderCancelStatusResponse + */ + result?: SupplyOrderCancelStatusResponseResult; + /** + * + * @type {V1SupplyOrderCancelStatusResponseStatus} + * @memberof V1SupplyOrderCancelStatusResponse + */ + status?: V1SupplyOrderCancelStatusResponseStatus; +} +/** + * Check if a given object implements the V1SupplyOrderCancelStatusResponse interface. + */ +export declare function instanceOfV1SupplyOrderCancelStatusResponse(value: object): value is V1SupplyOrderCancelStatusResponse; +export declare function V1SupplyOrderCancelStatusResponseFromJSON(json: any): V1SupplyOrderCancelStatusResponse; +export declare function V1SupplyOrderCancelStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelStatusResponse; +export declare function V1SupplyOrderCancelStatusResponseToJSON(value?: V1SupplyOrderCancelStatusResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderCancelStatusResponse.js b/dist/esm/models/V1SupplyOrderCancelStatusResponse.js new file mode 100644 index 0000000..c435bea --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelStatusResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderCancelStatusResponseResultFromJSON, SupplyOrderCancelStatusResponseResultToJSON, } from './SupplyOrderCancelStatusResponseResult'; +import { SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON, SupplyOrderCancelStatusResponseCancelOrderErrorToJSON, } from './SupplyOrderCancelStatusResponseCancelOrderError'; +import { V1SupplyOrderCancelStatusResponseStatusFromJSON, V1SupplyOrderCancelStatusResponseStatusToJSON, } from './V1SupplyOrderCancelStatusResponseStatus'; +/** + * Check if a given object implements the V1SupplyOrderCancelStatusResponse interface. + */ +export function instanceOfV1SupplyOrderCancelStatusResponse(value) { + return true; +} +export function V1SupplyOrderCancelStatusResponseFromJSON(json) { + return V1SupplyOrderCancelStatusResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderCancelStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON)), + 'result': json['result'] == null ? undefined : SupplyOrderCancelStatusResponseResultFromJSON(json['result']), + 'status': json['status'] == null ? undefined : V1SupplyOrderCancelStatusResponseStatusFromJSON(json['status']), + }; +} +export function V1SupplyOrderCancelStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(SupplyOrderCancelStatusResponseCancelOrderErrorToJSON)), + 'result': SupplyOrderCancelStatusResponseResultToJSON(value['result']), + 'status': V1SupplyOrderCancelStatusResponseStatusToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V1SupplyOrderCancelStatusResponseStatus.d.ts b/dist/esm/models/V1SupplyOrderCancelStatusResponseStatus.d.ts new file mode 100644 index 0000000..c3d733a --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelStatusResponseStatus.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отмены заявки на поставку. Возможные значения: + * - `SUCCESS` — заявка отменена. + * - `IN_PROGRESS` — заявки в процессе отмены. + * - `ERROR` — ошибка. + * + * @export + */ +export declare const V1SupplyOrderCancelStatusResponseStatus: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly ERROR: "ERROR"; +}; +export type V1SupplyOrderCancelStatusResponseStatus = typeof V1SupplyOrderCancelStatusResponseStatus[keyof typeof V1SupplyOrderCancelStatusResponseStatus]; +export declare function instanceOfV1SupplyOrderCancelStatusResponseStatus(value: any): boolean; +export declare function V1SupplyOrderCancelStatusResponseStatusFromJSON(json: any): V1SupplyOrderCancelStatusResponseStatus; +export declare function V1SupplyOrderCancelStatusResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelStatusResponseStatus; +export declare function V1SupplyOrderCancelStatusResponseStatusToJSON(value?: V1SupplyOrderCancelStatusResponseStatus | null): any; diff --git a/dist/esm/models/V1SupplyOrderCancelStatusResponseStatus.js b/dist/esm/models/V1SupplyOrderCancelStatusResponseStatus.js new file mode 100644 index 0000000..056ed2a --- /dev/null +++ b/dist/esm/models/V1SupplyOrderCancelStatusResponseStatus.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отмены заявки на поставку. Возможные значения: + * - `SUCCESS` — заявка отменена. + * - `IN_PROGRESS` — заявки в процессе отмены. + * - `ERROR` — ошибка. + * + * @export + */ +export const V1SupplyOrderCancelStatusResponseStatus = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + ERROR: 'ERROR' +}; +export function instanceOfV1SupplyOrderCancelStatusResponseStatus(value) { + for (const key in V1SupplyOrderCancelStatusResponseStatus) { + if (Object.prototype.hasOwnProperty.call(V1SupplyOrderCancelStatusResponseStatus, key)) { + if (V1SupplyOrderCancelStatusResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +export function V1SupplyOrderCancelStatusResponseStatusFromJSON(json) { + return V1SupplyOrderCancelStatusResponseStatusFromJSONTyped(json, false); +} +export function V1SupplyOrderCancelStatusResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SupplyOrderCancelStatusResponseStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateRequest.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateRequest.d.ts new file mode 100644 index 0000000..9ed99d2 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateRequest.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderContentUpdateRequestItem } from './V1SupplyOrderContentUpdateRequestItem'; +/** + * + * @export + * @interface V1SupplyOrderContentUpdateRequest + */ +export interface V1SupplyOrderContentUpdateRequest { + /** + * Новый товарный состав заявки на поставку. + * + * Максимум 5000 товаров. + * + * @type {Array} + * @memberof V1SupplyOrderContentUpdateRequest + */ + items: Array; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequest + */ + order_id: number; + /** + * Идентификатор поставки. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateRequest interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateRequest(value: object): value is V1SupplyOrderContentUpdateRequest; +export declare function V1SupplyOrderContentUpdateRequestFromJSON(json: any): V1SupplyOrderContentUpdateRequest; +export declare function V1SupplyOrderContentUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateRequest; +export declare function V1SupplyOrderContentUpdateRequestToJSON(value?: V1SupplyOrderContentUpdateRequest | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateRequest.js b/dist/esm/models/V1SupplyOrderContentUpdateRequest.js new file mode 100644 index 0000000..f6de8f0 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SupplyOrderContentUpdateRequestItemFromJSON, V1SupplyOrderContentUpdateRequestItemToJSON, } from './V1SupplyOrderContentUpdateRequestItem'; +/** + * Check if a given object implements the V1SupplyOrderContentUpdateRequest interface. + */ +export function instanceOfV1SupplyOrderContentUpdateRequest(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1SupplyOrderContentUpdateRequestFromJSON(json) { + return V1SupplyOrderContentUpdateRequestFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(V1SupplyOrderContentUpdateRequestItemFromJSON)), + 'order_id': json['order_id'], + 'supply_id': json['supply_id'], + }; +} +export function V1SupplyOrderContentUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(V1SupplyOrderContentUpdateRequestItemToJSON)), + 'order_id': value['order_id'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateRequestItem.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateRequestItem.d.ts new file mode 100644 index 0000000..380bff1 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateRequestItem.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderContentUpdateRequestItem + */ +export interface V1SupplyOrderContentUpdateRequestItem { + /** + * Размер кванта. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequestItem + */ + quant: number; + /** + * Количество товара. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequestItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequestItem + */ + sku: number; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateRequestItem interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateRequestItem(value: object): value is V1SupplyOrderContentUpdateRequestItem; +export declare function V1SupplyOrderContentUpdateRequestItemFromJSON(json: any): V1SupplyOrderContentUpdateRequestItem; +export declare function V1SupplyOrderContentUpdateRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateRequestItem; +export declare function V1SupplyOrderContentUpdateRequestItemToJSON(value?: V1SupplyOrderContentUpdateRequestItem | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateRequestItem.js b/dist/esm/models/V1SupplyOrderContentUpdateRequestItem.js new file mode 100644 index 0000000..de3d269 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateRequestItem.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderContentUpdateRequestItem interface. + */ +export function instanceOfV1SupplyOrderContentUpdateRequestItem(value) { + if (!('quant' in value) || value['quant'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +export function V1SupplyOrderContentUpdateRequestItemFromJSON(json) { + return V1SupplyOrderContentUpdateRequestItemFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quant': json['quant'], + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +export function V1SupplyOrderContentUpdateRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quant': value['quant'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateResponse.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateResponse.d.ts new file mode 100644 index 0000000..bd9cef7 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateResponse.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderContentUpdateResponseErrorEnum } from './V1SupplyOrderContentUpdateResponseErrorEnum'; +/** + * + * @export + * @interface V1SupplyOrderContentUpdateResponse + */ +export interface V1SupplyOrderContentUpdateResponse { + /** + * Ошибки при редактировании товарного состава: + * - `INVALID_DRAFT_BUNDLE_ID`, `SOME_SERVICE_ERROR`, `ORDER_IS_NOT_FOUND`, `SUPPLY_IS_NOT_FOUND`, `SUPPLY_DOES_NOT_BELONGS_TO_ORDER` — ошибка при редактировании поставки. + * - `HAS_UTD`, `UTD_IS_UPLOADED` — документы в системе ЭДО не удалены. Аннулируйте документы в системе ЭДО. Когда отредактируете состав, сформируйте и подпишите новые документы. + * - `ORDER_SKU_LIMIT` — количество товаров в поставке должно быть меньше или равно 5000. + * - `SAME_SKU` — товарный состав поставки остался прежним. + * - `SUPPLY_LOCKED` — обновление товарного состава в процессе, попробуйте позже. + * - `INBOUND_NO_CAPACITY` — на складе недостаточно места для поставки. + * - `INBOUND_LOCK`, `ORDER_LOCKED`, `STORAGE_WAREHOUSE_IS_NOT_WMS` — нельзя редактировать товарный состав. + * - `SUPPLY_CONTENT_NOT_VALID` — в составе поставки есть товары, которые склад не может принять. + * - `SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR`, `COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR`, `ORDER_DOES_NOT_BELONG_TO_CONTRACTOR` — заявка на поставку не принадлежит вашему юридическому лицу. + * - `SUPPLY_BELONG_TO_ANOTHER_COMPANY`, `ORDER_DOES_NOT_BELONGS_TO_COMPANY` — заявка на поставку не принадлежит вашему кабинету. + * - `INCORRECT_SUPPLY_STATE` — нельзя изменить поставку в этом статусе. + * - `INCORRECT_SUPPLY_SOURCE` — нельзя изменить поставку с этим источником данных. + * - `INCORRECT_STORAGE_WAREHOUSE` — нельзя изменить поставку с этим складом хранения. + * - `NO_SUPPLY_PRODUCT_BUNDLE_ID` — отсутствует идентификатор товарного состава поставки. + * - `INVALID_VOLUME` — некорректный объём поставки. + * - `SUPPLY_IS_VIRTUAL` — нельзя редактировать виртуальную поставку. + * - `DEADLINE` — нельзя изменить поставку за час до таймслота. + * - `INACTIVE_CONTRACT` — нельзя редактировать состав поставки с истекшим договором. + * - `QUANTITY_OUT_OF_RANGE_BOTTOM` — количество экземпляров каждого товара должно быть больше 0. + * - `QUANTITY_OUT_OF_RANGE_UPPER` — количество экземпляров каждого товара должно быть меньше или равно 1 000 000. + * - `EMPTY_CONTENT` — не сможем принять пустую поставку, добавьте товары. + * - `CONTRACT_IS_NOT_FOUND`, `CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS` — в этом личном кабинете нельзя изменить поставку. + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — объём товаров в поставке ниже минимального. + * + * @type {Array} + * @memberof V1SupplyOrderContentUpdateResponse + */ + errors?: Array; + /** + * Идентификатор операции. + * @type {string} + * @memberof V1SupplyOrderContentUpdateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateResponse interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateResponse(value: object): value is V1SupplyOrderContentUpdateResponse; +export declare function V1SupplyOrderContentUpdateResponseFromJSON(json: any): V1SupplyOrderContentUpdateResponse; +export declare function V1SupplyOrderContentUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateResponse; +export declare function V1SupplyOrderContentUpdateResponseToJSON(value?: V1SupplyOrderContentUpdateResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateResponse.js b/dist/esm/models/V1SupplyOrderContentUpdateResponse.js new file mode 100644 index 0000000..3275d38 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SupplyOrderContentUpdateResponseErrorEnumFromJSON, V1SupplyOrderContentUpdateResponseErrorEnumToJSON, } from './V1SupplyOrderContentUpdateResponseErrorEnum'; +/** + * Check if a given object implements the V1SupplyOrderContentUpdateResponse interface. + */ +export function instanceOfV1SupplyOrderContentUpdateResponse(value) { + return true; +} +export function V1SupplyOrderContentUpdateResponseFromJSON(json) { + return V1SupplyOrderContentUpdateResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1SupplyOrderContentUpdateResponseErrorEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1SupplyOrderContentUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1SupplyOrderContentUpdateResponseErrorEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateResponseErrorEnum.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateResponseErrorEnum.d.ts new file mode 100644 index 0000000..f7a9a47 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateResponseErrorEnum.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1SupplyOrderContentUpdateResponseErrorEnum: { + readonly INVALID_DRAFT_BUNDLE_ID: "INVALID_DRAFT_BUNDLE_ID"; + readonly SOME_SERVICE_ERROR: "SOME_SERVICE_ERROR"; + readonly HAS_UTD: "HAS_UTD"; + readonly ORDER_SKU_LIMIT: "ORDER_SKU_LIMIT"; + readonly SAME_SKU: "SAME_SKU"; + readonly SUPPLY_LOCKED: "SUPPLY_LOCKED"; + readonly INBOUND_NO_CAPACITY: "INBOUND_NO_CAPACITY"; + readonly INBOUND_LOCK: "INBOUND_LOCK"; + readonly SUPPLY_CONTENT_NOT_VALID: "SUPPLY_CONTENT_NOT_VALID"; + readonly SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR: "SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR"; + readonly SUPPLY_BELONG_TO_ANOTHER_COMPANY: "SUPPLY_BELONG_TO_ANOTHER_COMPANY"; + readonly INCORRECT_SUPPLY_STATE: "INCORRECT_SUPPLY_STATE"; + readonly INCORRECT_SUPPLY_SOURCE: "INCORRECT_SUPPLY_SOURCE"; + readonly INCORRECT_STORAGE_WAREHOUSE: "INCORRECT_STORAGE_WAREHOUSE"; + readonly DEADLINE: "DEADLINE"; + readonly INACTIVE_CONTRACT: "INACTIVE_CONTRACT"; + readonly QUANTITY_OUT_OF_RANGE_BOTTOM: "QUANTITY_OUT_OF_RANGE_BOTTOM"; + readonly QUANTITY_OUT_OF_RANGE_UPPER: "QUANTITY_OUT_OF_RANGE_UPPER"; + readonly EMPTY_CONTENT: "EMPTY_CONTENT"; + readonly NO_SUPPLY_PRODUCT_BUNDLE_ID: "NO_SUPPLY_PRODUCT_BUNDLE_ID"; + readonly INVALID_VOLUME: "INVALID_VOLUME"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly ORDER_LOCKED: "ORDER_LOCKED"; + readonly CONTRACT_IS_NOT_FOUND: "CONTRACT_IS_NOT_FOUND"; + readonly COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR: "COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR"; + readonly ORDER_IS_NOT_FOUND: "ORDER_IS_NOT_FOUND"; + readonly ORDER_DOES_NOT_BELONGS_TO_COMPANY: "ORDER_DOES_NOT_BELONGS_TO_COMPANY"; + readonly SUPPLY_IS_NOT_FOUND: "SUPPLY_IS_NOT_FOUND"; + readonly SUPPLY_DOES_NOT_BELONGS_TO_ORDER: "SUPPLY_DOES_NOT_BELONGS_TO_ORDER"; + readonly UTD_IS_UPLOADED: "UTD_IS_UPLOADED"; + readonly STORAGE_WAREHOUSE_IS_NOT_WMS: "STORAGE_WAREHOUSE_IS_NOT_WMS"; + readonly CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: "CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS"; + readonly ORDER_DOES_NOT_BELONG_TO_CONTRACTOR: "ORDER_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly MINIMUM_VOLUME_IN_LITRES_INVALID: "MINIMUM_VOLUME_IN_LITRES_INVALID"; +}; +export type V1SupplyOrderContentUpdateResponseErrorEnum = typeof V1SupplyOrderContentUpdateResponseErrorEnum[keyof typeof V1SupplyOrderContentUpdateResponseErrorEnum]; +export declare function instanceOfV1SupplyOrderContentUpdateResponseErrorEnum(value: any): boolean; +export declare function V1SupplyOrderContentUpdateResponseErrorEnumFromJSON(json: any): V1SupplyOrderContentUpdateResponseErrorEnum; +export declare function V1SupplyOrderContentUpdateResponseErrorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateResponseErrorEnum; +export declare function V1SupplyOrderContentUpdateResponseErrorEnumToJSON(value?: V1SupplyOrderContentUpdateResponseErrorEnum | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateResponseErrorEnum.js b/dist/esm/models/V1SupplyOrderContentUpdateResponseErrorEnum.js new file mode 100644 index 0000000..bb68490 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateResponseErrorEnum.js @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1SupplyOrderContentUpdateResponseErrorEnum = { + INVALID_DRAFT_BUNDLE_ID: 'INVALID_DRAFT_BUNDLE_ID', + SOME_SERVICE_ERROR: 'SOME_SERVICE_ERROR', + HAS_UTD: 'HAS_UTD', + ORDER_SKU_LIMIT: 'ORDER_SKU_LIMIT', + SAME_SKU: 'SAME_SKU', + SUPPLY_LOCKED: 'SUPPLY_LOCKED', + INBOUND_NO_CAPACITY: 'INBOUND_NO_CAPACITY', + INBOUND_LOCK: 'INBOUND_LOCK', + SUPPLY_CONTENT_NOT_VALID: 'SUPPLY_CONTENT_NOT_VALID', + SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR: 'SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR', + SUPPLY_BELONG_TO_ANOTHER_COMPANY: 'SUPPLY_BELONG_TO_ANOTHER_COMPANY', + INCORRECT_SUPPLY_STATE: 'INCORRECT_SUPPLY_STATE', + INCORRECT_SUPPLY_SOURCE: 'INCORRECT_SUPPLY_SOURCE', + INCORRECT_STORAGE_WAREHOUSE: 'INCORRECT_STORAGE_WAREHOUSE', + DEADLINE: 'DEADLINE', + INACTIVE_CONTRACT: 'INACTIVE_CONTRACT', + QUANTITY_OUT_OF_RANGE_BOTTOM: 'QUANTITY_OUT_OF_RANGE_BOTTOM', + QUANTITY_OUT_OF_RANGE_UPPER: 'QUANTITY_OUT_OF_RANGE_UPPER', + EMPTY_CONTENT: 'EMPTY_CONTENT', + NO_SUPPLY_PRODUCT_BUNDLE_ID: 'NO_SUPPLY_PRODUCT_BUNDLE_ID', + INVALID_VOLUME: 'INVALID_VOLUME', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + ORDER_LOCKED: 'ORDER_LOCKED', + CONTRACT_IS_NOT_FOUND: 'CONTRACT_IS_NOT_FOUND', + COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR: 'COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR', + ORDER_IS_NOT_FOUND: 'ORDER_IS_NOT_FOUND', + ORDER_DOES_NOT_BELONGS_TO_COMPANY: 'ORDER_DOES_NOT_BELONGS_TO_COMPANY', + SUPPLY_IS_NOT_FOUND: 'SUPPLY_IS_NOT_FOUND', + SUPPLY_DOES_NOT_BELONGS_TO_ORDER: 'SUPPLY_DOES_NOT_BELONGS_TO_ORDER', + UTD_IS_UPLOADED: 'UTD_IS_UPLOADED', + STORAGE_WAREHOUSE_IS_NOT_WMS: 'STORAGE_WAREHOUSE_IS_NOT_WMS', + CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: 'CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS', + ORDER_DOES_NOT_BELONG_TO_CONTRACTOR: 'ORDER_DOES_NOT_BELONG_TO_CONTRACTOR', + MINIMUM_VOLUME_IN_LITRES_INVALID: 'MINIMUM_VOLUME_IN_LITRES_INVALID' +}; +export function instanceOfV1SupplyOrderContentUpdateResponseErrorEnum(value) { + for (const key in V1SupplyOrderContentUpdateResponseErrorEnum) { + if (Object.prototype.hasOwnProperty.call(V1SupplyOrderContentUpdateResponseErrorEnum, key)) { + if (V1SupplyOrderContentUpdateResponseErrorEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1SupplyOrderContentUpdateResponseErrorEnumFromJSON(json) { + return V1SupplyOrderContentUpdateResponseErrorEnumFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateResponseErrorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SupplyOrderContentUpdateResponseErrorEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateStatusRequest.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateStatusRequest.d.ts new file mode 100644 index 0000000..c32dfb2 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderContentUpdateStatusRequest + */ +export interface V1SupplyOrderContentUpdateStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1SupplyOrderContentUpdateStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateStatusRequest interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateStatusRequest(value: object): value is V1SupplyOrderContentUpdateStatusRequest; +export declare function V1SupplyOrderContentUpdateStatusRequestFromJSON(json: any): V1SupplyOrderContentUpdateStatusRequest; +export declare function V1SupplyOrderContentUpdateStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateStatusRequest; +export declare function V1SupplyOrderContentUpdateStatusRequestToJSON(value?: V1SupplyOrderContentUpdateStatusRequest | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateStatusRequest.js b/dist/esm/models/V1SupplyOrderContentUpdateStatusRequest.js new file mode 100644 index 0000000..c3039af --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderContentUpdateStatusRequest interface. + */ +export function instanceOfV1SupplyOrderContentUpdateStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function V1SupplyOrderContentUpdateStatusRequestFromJSON(json) { + return V1SupplyOrderContentUpdateStatusRequestFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function V1SupplyOrderContentUpdateStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateStatusResponse.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateStatusResponse.d.ts new file mode 100644 index 0000000..c9903fb --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateStatusResponse.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderContentUpdateStatusResponseStatusEnum } from './SupplyOrderContentUpdateStatusResponseStatusEnum'; +import type { V1SupplyOrderContentUpdateStatusResponseErrorEnum } from './V1SupplyOrderContentUpdateStatusResponseErrorEnum'; +/** + * + * @export + * @interface V1SupplyOrderContentUpdateStatusResponse + */ +export interface V1SupplyOrderContentUpdateStatusResponse { + /** + * Список ошибок при редактировании товарного состава: + * - `INVALID_DRAFT_BUNDLE_ID`, `SOME_SERVICE_ERROR` — ошибка при редактировании поставки. + * - `HAS_UTD` — документы в системе ЭДО не удалены. Аннулируйте документы в системе ЭДО. Когда отредактируете состав, сформируйте и подпишите новые документы. + * - `ORDER_SKU_LIMIT` — количество товаров в поставке должно быть меньше или равно 5000. + * - `SAME_SKU` — товарный состав поставки остался прежним. + * - `SUPPLY_LOCKED` — обновление товарного состава в процессе, попробуйте позже. + * - `INBOUND_NO_CAPACITY` — на складе недостаточно места для поставки. + * - `INBOUND_LOCK`, `ORDER_LOCKED` — нельзя редактировать товарный состав. + * - `SUPPLY_CONTENT_NOT_VALID` — в составе поставки есть товары, которые склад не может принять. Провалидируйте товарный состав методом [/v1/supply-order/content/update/validation](#operation/SupplyOrderContentUpdateValidation). + * - `SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR` — заявка на поставку не принадлежит вашему юридическому лицу. + * - `SUPPLY_BELONG_TO_ANOTHER_COMPANY` — заявка на поставку не принадлежит вашему кабинету. + * - `INCORRECT_SUPPLY_STATE` — нельзя изменить поставку в этом статусе. + * - `INCORRECT_SUPPLY_SOURCE` — нельзя изменить поставку с этим источником данных. + * - `INCORRECT_STORAGE_WAREHOUSE` — нельзя изменить поставку с этим складом хранения. + * - `NO_SUPPLY_PRODUCT_BUNDLE_ID` — отсутствует идентификатор товарного состава поставки. + * - `INVALID_VOLUME` — некорректный объём поставки. + * - `SUPPLY_IS_VIRTUAL` — нельзя редактировать виртуальную поставку. + * - `DEADLINE` — нельзя изменить поставку за час до таймслота. + * - `INACTIVE_CONTRACT` — нельзя редактировать состав поставки с истекшим договором. + * - `QUANTITY_OUT_OF_RANGE_BOTTOM` — количество экземпляров каждого товара должно быть больше 0. + * - `QUANTITY_OUT_OF_RANGE_UPPER` — количество экземпляров каждого товара должно быть меньше или равно 1 000 000. + * - `EMPTY_CONTENT` — не сможем принять пустую поставку, добавьте товары. + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — объём товаров в поставке ниже минимального. + * + * @type {Array} + * @memberof V1SupplyOrderContentUpdateStatusResponse + */ + errors?: Array; + /** + * Идентификатор нового товарного состава поставки. + * @type {string} + * @memberof V1SupplyOrderContentUpdateStatusResponse + */ + new_bundle_id?: string; + /** + * + * @type {SupplyOrderContentUpdateStatusResponseStatusEnum} + * @memberof V1SupplyOrderContentUpdateStatusResponse + */ + status?: SupplyOrderContentUpdateStatusResponseStatusEnum; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateStatusResponse interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateStatusResponse(value: object): value is V1SupplyOrderContentUpdateStatusResponse; +export declare function V1SupplyOrderContentUpdateStatusResponseFromJSON(json: any): V1SupplyOrderContentUpdateStatusResponse; +export declare function V1SupplyOrderContentUpdateStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateStatusResponse; +export declare function V1SupplyOrderContentUpdateStatusResponseToJSON(value?: V1SupplyOrderContentUpdateStatusResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateStatusResponse.js b/dist/esm/models/V1SupplyOrderContentUpdateStatusResponse.js new file mode 100644 index 0000000..25c38eb --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateStatusResponse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON, SupplyOrderContentUpdateStatusResponseStatusEnumToJSON, } from './SupplyOrderContentUpdateStatusResponseStatusEnum'; +import { V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON, V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON, } from './V1SupplyOrderContentUpdateStatusResponseErrorEnum'; +/** + * Check if a given object implements the V1SupplyOrderContentUpdateStatusResponse interface. + */ +export function instanceOfV1SupplyOrderContentUpdateStatusResponse(value) { + return true; +} +export function V1SupplyOrderContentUpdateStatusResponseFromJSON(json) { + return V1SupplyOrderContentUpdateStatusResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON)), + 'new_bundle_id': json['new_bundle_id'] == null ? undefined : json['new_bundle_id'], + 'status': json['status'] == null ? undefined : SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function V1SupplyOrderContentUpdateStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON)), + 'new_bundle_id': value['new_bundle_id'], + 'status': SupplyOrderContentUpdateStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.d.ts new file mode 100644 index 0000000..41685f6 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1SupplyOrderContentUpdateStatusResponseErrorEnum: { + readonly INVALID_DRAFT_BUNDLE_ID: "INVALID_DRAFT_BUNDLE_ID"; + readonly SOME_SERVICE_ERROR: "SOME_SERVICE_ERROR"; + readonly HAS_UTD: "HAS_UTD"; + readonly ORDER_SKU_LIMIT: "ORDER_SKU_LIMIT"; + readonly SAME_SKU: "SAME_SKU"; + readonly SUPPLY_LOCKED: "SUPPLY_LOCKED"; + readonly INBOUND_NO_CAPACITY: "INBOUND_NO_CAPACITY"; + readonly INBOUND_LOCK: "INBOUND_LOCK"; + readonly SUPPLY_CONTENT_NOT_VALID: "SUPPLY_CONTENT_NOT_VALID"; + readonly SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR: "SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR"; + readonly SUPPLY_BELONG_TO_ANOTHER_COMPANY: "SUPPLY_BELONG_TO_ANOTHER_COMPANY"; + readonly INCORRECT_SUPPLY_STATE: "INCORRECT_SUPPLY_STATE"; + readonly INCORRECT_SUPPLY_SOURCE: "INCORRECT_SUPPLY_SOURCE"; + readonly INCORRECT_STORAGE_WAREHOUSE: "INCORRECT_STORAGE_WAREHOUSE"; + readonly DEADLINE: "DEADLINE"; + readonly INACTIVE_CONTRACT: "INACTIVE_CONTRACT"; + readonly QUANTITY_OUT_OF_RANGE_BOTTOM: "QUANTITY_OUT_OF_RANGE_BOTTOM"; + readonly QUANTITY_OUT_OF_RANGE_UPPER: "QUANTITY_OUT_OF_RANGE_UPPER"; + readonly EMPTY_CONTENT: "EMPTY_CONTENT"; + readonly NO_SUPPLY_PRODUCT_BUNDLE_ID: "NO_SUPPLY_PRODUCT_BUNDLE_ID"; + readonly INVALID_VOLUME: "INVALID_VOLUME"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly ORDER_LOCKED: "ORDER_LOCKED"; + readonly MINIMUM_VOLUME_IN_LITRES_INVALID: "MINIMUM_VOLUME_IN_LITRES_INVALID"; +}; +export type V1SupplyOrderContentUpdateStatusResponseErrorEnum = typeof V1SupplyOrderContentUpdateStatusResponseErrorEnum[keyof typeof V1SupplyOrderContentUpdateStatusResponseErrorEnum]; +export declare function instanceOfV1SupplyOrderContentUpdateStatusResponseErrorEnum(value: any): boolean; +export declare function V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON(json: any): V1SupplyOrderContentUpdateStatusResponseErrorEnum; +export declare function V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateStatusResponseErrorEnum; +export declare function V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON(value?: V1SupplyOrderContentUpdateStatusResponseErrorEnum | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.js b/dist/esm/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.js new file mode 100644 index 0000000..aff64b1 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.js @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1SupplyOrderContentUpdateStatusResponseErrorEnum = { + INVALID_DRAFT_BUNDLE_ID: 'INVALID_DRAFT_BUNDLE_ID', + SOME_SERVICE_ERROR: 'SOME_SERVICE_ERROR', + HAS_UTD: 'HAS_UTD', + ORDER_SKU_LIMIT: 'ORDER_SKU_LIMIT', + SAME_SKU: 'SAME_SKU', + SUPPLY_LOCKED: 'SUPPLY_LOCKED', + INBOUND_NO_CAPACITY: 'INBOUND_NO_CAPACITY', + INBOUND_LOCK: 'INBOUND_LOCK', + SUPPLY_CONTENT_NOT_VALID: 'SUPPLY_CONTENT_NOT_VALID', + SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR: 'SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR', + SUPPLY_BELONG_TO_ANOTHER_COMPANY: 'SUPPLY_BELONG_TO_ANOTHER_COMPANY', + INCORRECT_SUPPLY_STATE: 'INCORRECT_SUPPLY_STATE', + INCORRECT_SUPPLY_SOURCE: 'INCORRECT_SUPPLY_SOURCE', + INCORRECT_STORAGE_WAREHOUSE: 'INCORRECT_STORAGE_WAREHOUSE', + DEADLINE: 'DEADLINE', + INACTIVE_CONTRACT: 'INACTIVE_CONTRACT', + QUANTITY_OUT_OF_RANGE_BOTTOM: 'QUANTITY_OUT_OF_RANGE_BOTTOM', + QUANTITY_OUT_OF_RANGE_UPPER: 'QUANTITY_OUT_OF_RANGE_UPPER', + EMPTY_CONTENT: 'EMPTY_CONTENT', + NO_SUPPLY_PRODUCT_BUNDLE_ID: 'NO_SUPPLY_PRODUCT_BUNDLE_ID', + INVALID_VOLUME: 'INVALID_VOLUME', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + ORDER_LOCKED: 'ORDER_LOCKED', + MINIMUM_VOLUME_IN_LITRES_INVALID: 'MINIMUM_VOLUME_IN_LITRES_INVALID' +}; +export function instanceOfV1SupplyOrderContentUpdateStatusResponseErrorEnum(value) { + for (const key in V1SupplyOrderContentUpdateStatusResponseErrorEnum) { + if (Object.prototype.hasOwnProperty.call(V1SupplyOrderContentUpdateStatusResponseErrorEnum, key)) { + if (V1SupplyOrderContentUpdateStatusResponseErrorEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON(json) { + return V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateValidationRequest.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateValidationRequest.d.ts new file mode 100644 index 0000000..53723a9 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateValidationRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderContentUpdateValidationRequest + */ +export interface V1SupplyOrderContentUpdateValidationRequest { + /** + * Идентификатор нового товарного состава поставки. + * @type {string} + * @memberof V1SupplyOrderContentUpdateValidationRequest + */ + new_bundle_id: string; + /** + * Идентификатор поставки. + * @type {number} + * @memberof V1SupplyOrderContentUpdateValidationRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateValidationRequest interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateValidationRequest(value: object): value is V1SupplyOrderContentUpdateValidationRequest; +export declare function V1SupplyOrderContentUpdateValidationRequestFromJSON(json: any): V1SupplyOrderContentUpdateValidationRequest; +export declare function V1SupplyOrderContentUpdateValidationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateValidationRequest; +export declare function V1SupplyOrderContentUpdateValidationRequestToJSON(value?: V1SupplyOrderContentUpdateValidationRequest | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateValidationRequest.js b/dist/esm/models/V1SupplyOrderContentUpdateValidationRequest.js new file mode 100644 index 0000000..d7f2c86 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateValidationRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderContentUpdateValidationRequest interface. + */ +export function instanceOfV1SupplyOrderContentUpdateValidationRequest(value) { + if (!('new_bundle_id' in value) || value['new_bundle_id'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +export function V1SupplyOrderContentUpdateValidationRequestFromJSON(json) { + return V1SupplyOrderContentUpdateValidationRequestFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateValidationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'new_bundle_id': json['new_bundle_id'], + 'supply_id': json['supply_id'], + }; +} +export function V1SupplyOrderContentUpdateValidationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'new_bundle_id': value['new_bundle_id'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderContentUpdateValidationResponse.d.ts b/dist/esm/models/V1SupplyOrderContentUpdateValidationResponse.d.ts new file mode 100644 index 0000000..42f6ee4 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateValidationResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderContentUpdateValidationResponseValidatedAssortment } from './SupplyOrderContentUpdateValidationResponseValidatedAssortment'; +import type { SupplyOrderContentUpdateValidationResponseEditingErrorEnum } from './SupplyOrderContentUpdateValidationResponseEditingErrorEnum'; +/** + * + * @export + * @interface V1SupplyOrderContentUpdateValidationResponse + */ +export interface V1SupplyOrderContentUpdateValidationResponse { + /** + * Ошибки: + * - `UNSPECIFIED` — не определено. + * - `UNKNOWN` — неизвестный тип. + * - `INCORRECT_SUPPLY_STATE` — нельзя изменить поставку в этом статусе. + * - `DEADLINE` — нельзя изменить поставку за час до таймслота. + * - `UTD_IS_UPLOADED` — документы в системе ЭДО не удалены. Аннулируйте документы в системе ЭДО. Когда отредактируете состав, сформируйте и подпишите новые документы. + * - `STORAGE_WAREHOUSE_IS_NOT_WMS` — нельзя редактировать товарный состав. + * - `CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS` — в этом личном кабинете нельзя изменить поставку. + * - `SUPPLY_IS_VIRTUAL` — нельзя редактировать виртуальную поставку. + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит вашему кабинету. + * - `ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT` — не получилось добавить товар в заявку. Попробуйте ещё раз. + * - `ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN`, `ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN` — у товара нет кода ТН ВЭД ЕАЭС. + * - `ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE` — у товара нет штрихкода GTIN. + * - `ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY` — не указано количество товара в унифицированных единицах измерения. + * + * @type {Array} + * @memberof V1SupplyOrderContentUpdateValidationResponse + */ + editing_errors?: Array; + /** + * + * @type {SupplyOrderContentUpdateValidationResponseValidatedAssortment} + * @memberof V1SupplyOrderContentUpdateValidationResponse + */ + validated_assortment?: SupplyOrderContentUpdateValidationResponseValidatedAssortment; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateValidationResponse interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateValidationResponse(value: object): value is V1SupplyOrderContentUpdateValidationResponse; +export declare function V1SupplyOrderContentUpdateValidationResponseFromJSON(json: any): V1SupplyOrderContentUpdateValidationResponse; +export declare function V1SupplyOrderContentUpdateValidationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateValidationResponse; +export declare function V1SupplyOrderContentUpdateValidationResponseToJSON(value?: V1SupplyOrderContentUpdateValidationResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderContentUpdateValidationResponse.js b/dist/esm/models/V1SupplyOrderContentUpdateValidationResponse.js new file mode 100644 index 0000000..ae70460 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderContentUpdateValidationResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON, SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON, } from './SupplyOrderContentUpdateValidationResponseValidatedAssortment'; +import { SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON, SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON, } from './SupplyOrderContentUpdateValidationResponseEditingErrorEnum'; +/** + * Check if a given object implements the V1SupplyOrderContentUpdateValidationResponse interface. + */ +export function instanceOfV1SupplyOrderContentUpdateValidationResponse(value) { + return true; +} +export function V1SupplyOrderContentUpdateValidationResponseFromJSON(json) { + return V1SupplyOrderContentUpdateValidationResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderContentUpdateValidationResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'editing_errors': json['editing_errors'] == null ? undefined : (json['editing_errors'].map(SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON)), + 'validated_assortment': json['validated_assortment'] == null ? undefined : SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON(json['validated_assortment']), + }; +} +export function V1SupplyOrderContentUpdateValidationResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'editing_errors': value['editing_errors'] == null ? undefined : (value['editing_errors'].map(SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON)), + 'validated_assortment': SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON(value['validated_assortment']), + }; +} diff --git a/dist/esm/models/V1SupplyOrderDetailsRequest.d.ts b/dist/esm/models/V1SupplyOrderDetailsRequest.d.ts new file mode 100644 index 0000000..fbc859d --- /dev/null +++ b/dist/esm/models/V1SupplyOrderDetailsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderDetailsRequest + */ +export interface V1SupplyOrderDetailsRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderDetailsRequest + */ + order_id: number; +} +/** + * Check if a given object implements the V1SupplyOrderDetailsRequest interface. + */ +export declare function instanceOfV1SupplyOrderDetailsRequest(value: object): value is V1SupplyOrderDetailsRequest; +export declare function V1SupplyOrderDetailsRequestFromJSON(json: any): V1SupplyOrderDetailsRequest; +export declare function V1SupplyOrderDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderDetailsRequest; +export declare function V1SupplyOrderDetailsRequestToJSON(value?: V1SupplyOrderDetailsRequest | null): any; diff --git a/dist/esm/models/V1SupplyOrderDetailsRequest.js b/dist/esm/models/V1SupplyOrderDetailsRequest.js new file mode 100644 index 0000000..dd16df6 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderDetailsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderDetailsRequest interface. + */ +export function instanceOfV1SupplyOrderDetailsRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +export function V1SupplyOrderDetailsRequestFromJSON(json) { + return V1SupplyOrderDetailsRequestFromJSONTyped(json, false); +} +export function V1SupplyOrderDetailsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +export function V1SupplyOrderDetailsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderDetailsResponse.d.ts b/dist/esm/models/V1SupplyOrderDetailsResponse.d.ts new file mode 100644 index 0000000..0b9e155 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderDetailsResponse.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderDetailsResponseTimeslot } from './V1SupplyOrderDetailsResponseTimeslot'; +import type { SupplyOrderDetailsResponseVehicle } from './SupplyOrderDetailsResponseVehicle'; +import type { SupplyOrderDetailsResponseOrderTags } from './SupplyOrderDetailsResponseOrderTags'; +import type { SupplyOrderDetailsResponseOrderStateEnum } from './SupplyOrderDetailsResponseOrderStateEnum'; +import type { SupplyOrderDetailsResponseSupply } from './SupplyOrderDetailsResponseSupply'; +/** + * + * @export + * @interface V1SupplyOrderDetailsResponse + */ +export interface V1SupplyOrderDetailsResponse { + /** + * Дата создания заявки на поставку. + * @type {string} + * @memberof V1SupplyOrderDetailsResponse + */ + created_date?: string; + /** + * Время в секундах, оставшееся на заполнение данных по поставке. Только для заявок с вРЦ. + * @type {string} + * @memberof V1SupplyOrderDetailsResponse + */ + data_filling_deadline_utc?: string; + /** + * Идентификатор пункта отгрузки. + * @type {number} + * @memberof V1SupplyOrderDetailsResponse + */ + dropoff_warehouse_id?: number; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderDetailsResponse + */ + order_id?: number; + /** + * Номер заявки на поставку. + * @type {string} + * @memberof V1SupplyOrderDetailsResponse + */ + order_number?: string; + /** + * + * @type {SupplyOrderDetailsResponseOrderTags} + * @memberof V1SupplyOrderDetailsResponse + */ + order_tags?: SupplyOrderDetailsResponseOrderTags; + /** + * + * @type {SupplyOrderDetailsResponseOrderStateEnum} + * @memberof V1SupplyOrderDetailsResponse + */ + state?: SupplyOrderDetailsResponseOrderStateEnum; + /** + * Дата обновления статуса заявки на поставку. + * @type {string} + * @memberof V1SupplyOrderDetailsResponse + */ + state_updated_date?: string; + /** + * Информация о поставках. + * @type {Array} + * @memberof V1SupplyOrderDetailsResponse + */ + supplies?: Array; + /** + * + * @type {V1SupplyOrderDetailsResponseTimeslot} + * @memberof V1SupplyOrderDetailsResponse + */ + timeslot?: V1SupplyOrderDetailsResponseTimeslot; + /** + * + * @type {SupplyOrderDetailsResponseVehicle} + * @memberof V1SupplyOrderDetailsResponse + */ + vehicle?: SupplyOrderDetailsResponseVehicle; +} +/** + * Check if a given object implements the V1SupplyOrderDetailsResponse interface. + */ +export declare function instanceOfV1SupplyOrderDetailsResponse(value: object): value is V1SupplyOrderDetailsResponse; +export declare function V1SupplyOrderDetailsResponseFromJSON(json: any): V1SupplyOrderDetailsResponse; +export declare function V1SupplyOrderDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderDetailsResponse; +export declare function V1SupplyOrderDetailsResponseToJSON(value?: V1SupplyOrderDetailsResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderDetailsResponse.js b/dist/esm/models/V1SupplyOrderDetailsResponse.js new file mode 100644 index 0000000..630cbc1 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderDetailsResponse.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SupplyOrderDetailsResponseTimeslotFromJSON, V1SupplyOrderDetailsResponseTimeslotToJSON, } from './V1SupplyOrderDetailsResponseTimeslot'; +import { SupplyOrderDetailsResponseVehicleFromJSON, SupplyOrderDetailsResponseVehicleToJSON, } from './SupplyOrderDetailsResponseVehicle'; +import { SupplyOrderDetailsResponseOrderTagsFromJSON, SupplyOrderDetailsResponseOrderTagsToJSON, } from './SupplyOrderDetailsResponseOrderTags'; +import { SupplyOrderDetailsResponseOrderStateEnumFromJSON, SupplyOrderDetailsResponseOrderStateEnumToJSON, } from './SupplyOrderDetailsResponseOrderStateEnum'; +import { SupplyOrderDetailsResponseSupplyFromJSON, SupplyOrderDetailsResponseSupplyToJSON, } from './SupplyOrderDetailsResponseSupply'; +/** + * Check if a given object implements the V1SupplyOrderDetailsResponse interface. + */ +export function instanceOfV1SupplyOrderDetailsResponse(value) { + return true; +} +export function V1SupplyOrderDetailsResponseFromJSON(json) { + return V1SupplyOrderDetailsResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderDetailsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'data_filling_deadline_utc': json['data_filling_deadline_utc'] == null ? undefined : json['data_filling_deadline_utc'], + 'dropoff_warehouse_id': json['dropoff_warehouse_id'] == null ? undefined : json['dropoff_warehouse_id'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'order_tags': json['order_tags'] == null ? undefined : SupplyOrderDetailsResponseOrderTagsFromJSON(json['order_tags']), + 'state': json['state'] == null ? undefined : SupplyOrderDetailsResponseOrderStateEnumFromJSON(json['state']), + 'state_updated_date': json['state_updated_date'] == null ? undefined : json['state_updated_date'], + 'supplies': json['supplies'] == null ? undefined : (json['supplies'].map(SupplyOrderDetailsResponseSupplyFromJSON)), + 'timeslot': json['timeslot'] == null ? undefined : V1SupplyOrderDetailsResponseTimeslotFromJSON(json['timeslot']), + 'vehicle': json['vehicle'] == null ? undefined : SupplyOrderDetailsResponseVehicleFromJSON(json['vehicle']), + }; +} +export function V1SupplyOrderDetailsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_date': value['created_date'], + 'data_filling_deadline_utc': value['data_filling_deadline_utc'], + 'dropoff_warehouse_id': value['dropoff_warehouse_id'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'order_tags': SupplyOrderDetailsResponseOrderTagsToJSON(value['order_tags']), + 'state': SupplyOrderDetailsResponseOrderStateEnumToJSON(value['state']), + 'state_updated_date': value['state_updated_date'], + 'supplies': value['supplies'] == null ? undefined : (value['supplies'].map(SupplyOrderDetailsResponseSupplyToJSON)), + 'timeslot': V1SupplyOrderDetailsResponseTimeslotToJSON(value['timeslot']), + 'vehicle': SupplyOrderDetailsResponseVehicleToJSON(value['vehicle']), + }; +} diff --git a/dist/esm/models/V1SupplyOrderDetailsResponseTimeslot.d.ts b/dist/esm/models/V1SupplyOrderDetailsResponseTimeslot.d.ts new file mode 100644 index 0000000..f79e48b --- /dev/null +++ b/dist/esm/models/V1SupplyOrderDetailsResponseTimeslot.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderDetailsResponseTimeslotValue } from './SupplyOrderDetailsResponseTimeslotValue'; +import type { TimeslotCanNotSetTimeslotReasonEnum } from './TimeslotCanNotSetTimeslotReasonEnum'; +/** + * Информация о таймслоте. + * @export + * @interface V1SupplyOrderDetailsResponseTimeslot + */ +export interface V1SupplyOrderDetailsResponseTimeslot { + /** + * Причина, почему нельзя выбрать интервал поставки: + * - `UNSPECIFIED` — не определена; + * - `INVALID_ORDER_STATE` — нельзя установить таймслот в заявке с текущим статусом; + * - `ORDER_IS_VIRTUAL` — заявка на поставку виртуальная; + * - `SET_TIMESLOT_DEADLINE_EXCEED` — время установки таймслота истекло; + * - `ORDER_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof V1SupplyOrderDetailsResponseTimeslot + */ + can_not_set_reasons?: Array; + /** + * `true`, если можно изменить интервал поставки. + * + * @type {boolean} + * @memberof V1SupplyOrderDetailsResponseTimeslot + */ + can_set?: boolean; + /** + * + * @type {SupplyOrderDetailsResponseTimeslotValue} + * @memberof V1SupplyOrderDetailsResponseTimeslot + */ + value?: SupplyOrderDetailsResponseTimeslotValue; +} +/** + * Check if a given object implements the V1SupplyOrderDetailsResponseTimeslot interface. + */ +export declare function instanceOfV1SupplyOrderDetailsResponseTimeslot(value: object): value is V1SupplyOrderDetailsResponseTimeslot; +export declare function V1SupplyOrderDetailsResponseTimeslotFromJSON(json: any): V1SupplyOrderDetailsResponseTimeslot; +export declare function V1SupplyOrderDetailsResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderDetailsResponseTimeslot; +export declare function V1SupplyOrderDetailsResponseTimeslotToJSON(value?: V1SupplyOrderDetailsResponseTimeslot | null): any; diff --git a/dist/esm/models/V1SupplyOrderDetailsResponseTimeslot.js b/dist/esm/models/V1SupplyOrderDetailsResponseTimeslot.js new file mode 100644 index 0000000..bf403e9 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderDetailsResponseTimeslot.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderDetailsResponseTimeslotValueFromJSON, SupplyOrderDetailsResponseTimeslotValueToJSON, } from './SupplyOrderDetailsResponseTimeslotValue'; +import { TimeslotCanNotSetTimeslotReasonEnumFromJSON, TimeslotCanNotSetTimeslotReasonEnumToJSON, } from './TimeslotCanNotSetTimeslotReasonEnum'; +/** + * Check if a given object implements the V1SupplyOrderDetailsResponseTimeslot interface. + */ +export function instanceOfV1SupplyOrderDetailsResponseTimeslot(value) { + return true; +} +export function V1SupplyOrderDetailsResponseTimeslotFromJSON(json) { + return V1SupplyOrderDetailsResponseTimeslotFromJSONTyped(json, false); +} +export function V1SupplyOrderDetailsResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_not_set_reasons': json['can_not_set_reasons'] == null ? undefined : (json['can_not_set_reasons'].map(TimeslotCanNotSetTimeslotReasonEnumFromJSON)), + 'can_set': json['can_set'] == null ? undefined : json['can_set'], + 'value': json['value'] == null ? undefined : SupplyOrderDetailsResponseTimeslotValueFromJSON(json['value']), + }; +} +export function V1SupplyOrderDetailsResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_not_set_reasons': value['can_not_set_reasons'] == null ? undefined : (value['can_not_set_reasons'].map(TimeslotCanNotSetTimeslotReasonEnumToJSON)), + 'can_set': value['can_set'], + 'value': SupplyOrderDetailsResponseTimeslotValueToJSON(value['value']), + }; +} diff --git a/dist/esm/models/V1SupplyOrderPassCreateRequest.d.ts b/dist/esm/models/V1SupplyOrderPassCreateRequest.d.ts new file mode 100644 index 0000000..a0b7101 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassCreateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1VehicleInfo } from './V1VehicleInfo'; +/** + * + * @export + * @interface V1SupplyOrderPassCreateRequest + */ +export interface V1SupplyOrderPassCreateRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderPassCreateRequest + */ + supply_order_id: number; + /** + * + * @type {V1VehicleInfo} + * @memberof V1SupplyOrderPassCreateRequest + */ + vehicle: V1VehicleInfo; +} +/** + * Check if a given object implements the V1SupplyOrderPassCreateRequest interface. + */ +export declare function instanceOfV1SupplyOrderPassCreateRequest(value: object): value is V1SupplyOrderPassCreateRequest; +export declare function V1SupplyOrderPassCreateRequestFromJSON(json: any): V1SupplyOrderPassCreateRequest; +export declare function V1SupplyOrderPassCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassCreateRequest; +export declare function V1SupplyOrderPassCreateRequestToJSON(value?: V1SupplyOrderPassCreateRequest | null): any; diff --git a/dist/esm/models/V1SupplyOrderPassCreateRequest.js b/dist/esm/models/V1SupplyOrderPassCreateRequest.js new file mode 100644 index 0000000..3e7016d --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassCreateRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1VehicleInfoFromJSON, V1VehicleInfoToJSON, } from './V1VehicleInfo'; +/** + * Check if a given object implements the V1SupplyOrderPassCreateRequest interface. + */ +export function instanceOfV1SupplyOrderPassCreateRequest(value) { + if (!('supply_order_id' in value) || value['supply_order_id'] === undefined) + return false; + if (!('vehicle' in value) || value['vehicle'] === undefined) + return false; + return true; +} +export function V1SupplyOrderPassCreateRequestFromJSON(json) { + return V1SupplyOrderPassCreateRequestFromJSONTyped(json, false); +} +export function V1SupplyOrderPassCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_order_id': json['supply_order_id'], + 'vehicle': V1VehicleInfoFromJSON(json['vehicle']), + }; +} +export function V1SupplyOrderPassCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_order_id': value['supply_order_id'], + 'vehicle': V1VehicleInfoToJSON(value['vehicle']), + }; +} diff --git a/dist/esm/models/V1SupplyOrderPassCreateResponse.d.ts b/dist/esm/models/V1SupplyOrderPassCreateResponse.d.ts new file mode 100644 index 0000000..4d18f46 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassCreateResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetVehicleError } from './V1SetVehicleError'; +/** + * + * @export + * @interface V1SupplyOrderPassCreateResponse + */ +export interface V1SupplyOrderPassCreateResponse { + /** + * Причина ошибки: + * - `UNSPECIFIED` — статус заявки не указан; + * - `INVALID_ORDER_STATE` — неверный статус заявки; + * - `VEHICLE_NOT_REQUIRED` — указывать данные автомобиля необязательно; + * - `ORDER_NOT_BELONG_CONTRACTOR` — заявка создана другим юридическом лицом, работать с ней не получится; + * - `ORDER_NOT_BELONG_COMPANY` — заявка не принадлежит вашему кабинету, работать с ней не получится. + * + * @type {Array} + * @memberof V1SupplyOrderPassCreateResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. + * @type {string} + * @memberof V1SupplyOrderPassCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1SupplyOrderPassCreateResponse interface. + */ +export declare function instanceOfV1SupplyOrderPassCreateResponse(value: object): value is V1SupplyOrderPassCreateResponse; +export declare function V1SupplyOrderPassCreateResponseFromJSON(json: any): V1SupplyOrderPassCreateResponse; +export declare function V1SupplyOrderPassCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassCreateResponse; +export declare function V1SupplyOrderPassCreateResponseToJSON(value?: V1SupplyOrderPassCreateResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderPassCreateResponse.js b/dist/esm/models/V1SupplyOrderPassCreateResponse.js new file mode 100644 index 0000000..5838f2e --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassCreateResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SetVehicleErrorFromJSON, V1SetVehicleErrorToJSON, } from './V1SetVehicleError'; +/** + * Check if a given object implements the V1SupplyOrderPassCreateResponse interface. + */ +export function instanceOfV1SupplyOrderPassCreateResponse(value) { + return true; +} +export function V1SupplyOrderPassCreateResponseFromJSON(json) { + return V1SupplyOrderPassCreateResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderPassCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1SetVehicleErrorFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1SupplyOrderPassCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1SetVehicleErrorToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderPassStatusRequest.d.ts b/dist/esm/models/V1SupplyOrderPassStatusRequest.d.ts new file mode 100644 index 0000000..1eec6ad --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderPassStatusRequest + */ +export interface V1SupplyOrderPassStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1SupplyOrderPassStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1SupplyOrderPassStatusRequest interface. + */ +export declare function instanceOfV1SupplyOrderPassStatusRequest(value: object): value is V1SupplyOrderPassStatusRequest; +export declare function V1SupplyOrderPassStatusRequestFromJSON(json: any): V1SupplyOrderPassStatusRequest; +export declare function V1SupplyOrderPassStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassStatusRequest; +export declare function V1SupplyOrderPassStatusRequestToJSON(value?: V1SupplyOrderPassStatusRequest | null): any; diff --git a/dist/esm/models/V1SupplyOrderPassStatusRequest.js b/dist/esm/models/V1SupplyOrderPassStatusRequest.js new file mode 100644 index 0000000..e9289b3 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderPassStatusRequest interface. + */ +export function instanceOfV1SupplyOrderPassStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function V1SupplyOrderPassStatusRequestFromJSON(json) { + return V1SupplyOrderPassStatusRequestFromJSONTyped(json, false); +} +export function V1SupplyOrderPassStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function V1SupplyOrderPassStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1SupplyOrderPassStatusResponse.d.ts b/dist/esm/models/V1SupplyOrderPassStatusResponse.d.ts new file mode 100644 index 0000000..955fd0f --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassStatusResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderPassStatusResponseStatus } from './V1SupplyOrderPassStatusResponseStatus'; +import type { V1SetVehicleError } from './V1SetVehicleError'; +/** + * + * @export + * @interface V1SupplyOrderPassStatusResponse + */ +export interface V1SupplyOrderPassStatusResponse { + /** + * Причина ошибки: + * - `UNSPECIFIED` — статус не указан; + * - `INVALID_ORDER_STATE` — неверный статус заявки; + * - `VEHICLE_NOT_REQUIRED` — указывать данные автомобиля необязательно; + * - `ORDER_NOT_BELONG_CONTRACTOR` — заявка создана другим юридическом лицом, работать с ней не получится; + * - `ORDER_NOT_BELONG_COMPANY` — заявка не принадлежит вашему кабинету, работать с ней не получится. + * + * @type {Array} + * @memberof V1SupplyOrderPassStatusResponse + */ + errors?: Array; + /** + * + * @type {V1SupplyOrderPassStatusResponseStatus} + * @memberof V1SupplyOrderPassStatusResponse + */ + result?: V1SupplyOrderPassStatusResponseStatus; +} +/** + * Check if a given object implements the V1SupplyOrderPassStatusResponse interface. + */ +export declare function instanceOfV1SupplyOrderPassStatusResponse(value: object): value is V1SupplyOrderPassStatusResponse; +export declare function V1SupplyOrderPassStatusResponseFromJSON(json: any): V1SupplyOrderPassStatusResponse; +export declare function V1SupplyOrderPassStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassStatusResponse; +export declare function V1SupplyOrderPassStatusResponseToJSON(value?: V1SupplyOrderPassStatusResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderPassStatusResponse.js b/dist/esm/models/V1SupplyOrderPassStatusResponse.js new file mode 100644 index 0000000..a7f45d8 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassStatusResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SupplyOrderPassStatusResponseStatusFromJSON, V1SupplyOrderPassStatusResponseStatusToJSON, } from './V1SupplyOrderPassStatusResponseStatus'; +import { V1SetVehicleErrorFromJSON, V1SetVehicleErrorToJSON, } from './V1SetVehicleError'; +/** + * Check if a given object implements the V1SupplyOrderPassStatusResponse interface. + */ +export function instanceOfV1SupplyOrderPassStatusResponse(value) { + return true; +} +export function V1SupplyOrderPassStatusResponseFromJSON(json) { + return V1SupplyOrderPassStatusResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderPassStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1SetVehicleErrorFromJSON)), + 'result': json['result'] == null ? undefined : V1SupplyOrderPassStatusResponseStatusFromJSON(json['result']), + }; +} +export function V1SupplyOrderPassStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1SetVehicleErrorToJSON)), + 'result': V1SupplyOrderPassStatusResponseStatusToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1SupplyOrderPassStatusResponseStatus.d.ts b/dist/esm/models/V1SupplyOrderPassStatusResponseStatus.d.ts new file mode 100644 index 0000000..7dce5ae --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassStatusResponseStatus.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус ввода данных о водителе и автомобиле: + * - `Unknown` — статус неизвестен; + * - `Success` — данные указаны; + * - `InProgress` — данные обрабатываются; + * - `Failed` — не удалось обработать данные. + * + * @export + */ +export declare const V1SupplyOrderPassStatusResponseStatus: { + readonly Unknown: "Unknown"; + readonly Success: "Success"; + readonly InProgress: "InProgress"; + readonly Failed: "Failed"; +}; +export type V1SupplyOrderPassStatusResponseStatus = typeof V1SupplyOrderPassStatusResponseStatus[keyof typeof V1SupplyOrderPassStatusResponseStatus]; +export declare function instanceOfV1SupplyOrderPassStatusResponseStatus(value: any): boolean; +export declare function V1SupplyOrderPassStatusResponseStatusFromJSON(json: any): V1SupplyOrderPassStatusResponseStatus; +export declare function V1SupplyOrderPassStatusResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassStatusResponseStatus; +export declare function V1SupplyOrderPassStatusResponseStatusToJSON(value?: V1SupplyOrderPassStatusResponseStatus | null): any; diff --git a/dist/esm/models/V1SupplyOrderPassStatusResponseStatus.js b/dist/esm/models/V1SupplyOrderPassStatusResponseStatus.js new file mode 100644 index 0000000..1ca5354 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderPassStatusResponseStatus.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус ввода данных о водителе и автомобиле: + * - `Unknown` — статус неизвестен; + * - `Success` — данные указаны; + * - `InProgress` — данные обрабатываются; + * - `Failed` — не удалось обработать данные. + * + * @export + */ +export const V1SupplyOrderPassStatusResponseStatus = { + Unknown: 'Unknown', + Success: 'Success', + InProgress: 'InProgress', + Failed: 'Failed' +}; +export function instanceOfV1SupplyOrderPassStatusResponseStatus(value) { + for (const key in V1SupplyOrderPassStatusResponseStatus) { + if (Object.prototype.hasOwnProperty.call(V1SupplyOrderPassStatusResponseStatus, key)) { + if (V1SupplyOrderPassStatusResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +export function V1SupplyOrderPassStatusResponseStatusFromJSON(json) { + return V1SupplyOrderPassStatusResponseStatusFromJSONTyped(json, false); +} +export function V1SupplyOrderPassStatusResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1SupplyOrderPassStatusResponseStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1SupplyOrderStatusCounterResponse.d.ts b/dist/esm/models/V1SupplyOrderStatusCounterResponse.d.ts new file mode 100644 index 0000000..b01503c --- /dev/null +++ b/dist/esm/models/V1SupplyOrderStatusCounterResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderStatusCounterResponseItem } from './V1SupplyOrderStatusCounterResponseItem'; +/** + * + * @export + * @interface V1SupplyOrderStatusCounterResponse + */ +export interface V1SupplyOrderStatusCounterResponse { + /** + * + * @type {Array} + * @memberof V1SupplyOrderStatusCounterResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1SupplyOrderStatusCounterResponse interface. + */ +export declare function instanceOfV1SupplyOrderStatusCounterResponse(value: object): value is V1SupplyOrderStatusCounterResponse; +export declare function V1SupplyOrderStatusCounterResponseFromJSON(json: any): V1SupplyOrderStatusCounterResponse; +export declare function V1SupplyOrderStatusCounterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderStatusCounterResponse; +export declare function V1SupplyOrderStatusCounterResponseToJSON(value?: V1SupplyOrderStatusCounterResponse | null): any; diff --git a/dist/esm/models/V1SupplyOrderStatusCounterResponse.js b/dist/esm/models/V1SupplyOrderStatusCounterResponse.js new file mode 100644 index 0000000..512f3c6 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderStatusCounterResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SupplyOrderStatusCounterResponseItemFromJSON, V1SupplyOrderStatusCounterResponseItemToJSON, } from './V1SupplyOrderStatusCounterResponseItem'; +/** + * Check if a given object implements the V1SupplyOrderStatusCounterResponse interface. + */ +export function instanceOfV1SupplyOrderStatusCounterResponse(value) { + return true; +} +export function V1SupplyOrderStatusCounterResponseFromJSON(json) { + return V1SupplyOrderStatusCounterResponseFromJSONTyped(json, false); +} +export function V1SupplyOrderStatusCounterResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1SupplyOrderStatusCounterResponseItemFromJSON)), + }; +} +export function V1SupplyOrderStatusCounterResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1SupplyOrderStatusCounterResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V1SupplyOrderStatusCounterResponseItem.d.ts b/dist/esm/models/V1SupplyOrderStatusCounterResponseItem.d.ts new file mode 100644 index 0000000..a256ae7 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderStatusCounterResponseItem.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderState } from './V1OrderState'; +/** + * + * @export + * @interface V1SupplyOrderStatusCounterResponseItem + */ +export interface V1SupplyOrderStatusCounterResponseItem { + /** + * Количество заявок в статусе. + * @type {number} + * @memberof V1SupplyOrderStatusCounterResponseItem + */ + count?: number; + /** + * + * @type {V1OrderState} + * @memberof V1SupplyOrderStatusCounterResponseItem + */ + order_state?: V1OrderState; +} +/** + * Check if a given object implements the V1SupplyOrderStatusCounterResponseItem interface. + */ +export declare function instanceOfV1SupplyOrderStatusCounterResponseItem(value: object): value is V1SupplyOrderStatusCounterResponseItem; +export declare function V1SupplyOrderStatusCounterResponseItemFromJSON(json: any): V1SupplyOrderStatusCounterResponseItem; +export declare function V1SupplyOrderStatusCounterResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderStatusCounterResponseItem; +export declare function V1SupplyOrderStatusCounterResponseItemToJSON(value?: V1SupplyOrderStatusCounterResponseItem | null): any; diff --git a/dist/esm/models/V1SupplyOrderStatusCounterResponseItem.js b/dist/esm/models/V1SupplyOrderStatusCounterResponseItem.js new file mode 100644 index 0000000..ae86a94 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderStatusCounterResponseItem.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1OrderStateFromJSON, V1OrderStateToJSON, } from './V1OrderState'; +/** + * Check if a given object implements the V1SupplyOrderStatusCounterResponseItem interface. + */ +export function instanceOfV1SupplyOrderStatusCounterResponseItem(value) { + return true; +} +export function V1SupplyOrderStatusCounterResponseItemFromJSON(json) { + return V1SupplyOrderStatusCounterResponseItemFromJSONTyped(json, false); +} +export function V1SupplyOrderStatusCounterResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'order_state': json['order_state'] == null ? undefined : V1OrderStateFromJSON(json['order_state']), + }; +} +export function V1SupplyOrderStatusCounterResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'order_state': V1OrderStateToJSON(value['order_state']), + }; +} diff --git a/dist/esm/models/V1SupplyOrderTimeslot.d.ts b/dist/esm/models/V1SupplyOrderTimeslot.d.ts new file mode 100644 index 0000000..79aecb1 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Время интервала поставки. + * @export + * @interface V1SupplyOrderTimeslot + */ +export interface V1SupplyOrderTimeslot { + /** + * Начало интервала по местному времени. + * @type {string} + * @memberof V1SupplyOrderTimeslot + */ + from: string; + /** + * Конец интервала по местному времени. + * @type {string} + * @memberof V1SupplyOrderTimeslot + */ + to: string; +} +/** + * Check if a given object implements the V1SupplyOrderTimeslot interface. + */ +export declare function instanceOfV1SupplyOrderTimeslot(value: object): value is V1SupplyOrderTimeslot; +export declare function V1SupplyOrderTimeslotFromJSON(json: any): V1SupplyOrderTimeslot; +export declare function V1SupplyOrderTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderTimeslot; +export declare function V1SupplyOrderTimeslotToJSON(value?: V1SupplyOrderTimeslot | null): any; diff --git a/dist/esm/models/V1SupplyOrderTimeslot.js b/dist/esm/models/V1SupplyOrderTimeslot.js new file mode 100644 index 0000000..173a431 --- /dev/null +++ b/dist/esm/models/V1SupplyOrderTimeslot.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1SupplyOrderTimeslot interface. + */ +export function instanceOfV1SupplyOrderTimeslot(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function V1SupplyOrderTimeslotFromJSON(json) { + return V1SupplyOrderTimeslotFromJSONTyped(json, false); +} +export function V1SupplyOrderTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +export function V1SupplyOrderTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1TimeRangeReturnDate.d.ts b/dist/esm/models/V1TimeRangeReturnDate.d.ts new file mode 100644 index 0000000..f1615f0 --- /dev/null +++ b/dist/esm/models/V1TimeRangeReturnDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате создания возврата. + * @export + * @interface V1TimeRangeReturnDate + */ +export interface V1TimeRangeReturnDate { + /** + * Начало периода. + * @type {string} + * @memberof V1TimeRangeReturnDate + */ + time_from?: string; + /** + * Окончание периода. + * @type {string} + * @memberof V1TimeRangeReturnDate + */ + time_to?: string; +} +/** + * Check if a given object implements the V1TimeRangeReturnDate interface. + */ +export declare function instanceOfV1TimeRangeReturnDate(value: object): value is V1TimeRangeReturnDate; +export declare function V1TimeRangeReturnDateFromJSON(json: any): V1TimeRangeReturnDate; +export declare function V1TimeRangeReturnDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TimeRangeReturnDate; +export declare function V1TimeRangeReturnDateToJSON(value?: V1TimeRangeReturnDate | null): any; diff --git a/dist/esm/models/V1TimeRangeReturnDate.js b/dist/esm/models/V1TimeRangeReturnDate.js new file mode 100644 index 0000000..86ff8c1 --- /dev/null +++ b/dist/esm/models/V1TimeRangeReturnDate.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1TimeRangeReturnDate interface. + */ +export function instanceOfV1TimeRangeReturnDate(value) { + return true; +} +export function V1TimeRangeReturnDateFromJSON(json) { + return V1TimeRangeReturnDateFromJSONTyped(json, false); +} +export function V1TimeRangeReturnDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'time_from': json['time_from'] == null ? undefined : json['time_from'], + 'time_to': json['time_to'] == null ? undefined : json['time_to'], + }; +} +export function V1TimeRangeReturnDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'time_from': value['time_from'], + 'time_to': value['time_to'], + }; +} diff --git a/dist/esm/models/V1TimeRangeStorageTariffication.d.ts b/dist/esm/models/V1TimeRangeStorageTariffication.d.ts new file mode 100644 index 0000000..ff76d86 --- /dev/null +++ b/dist/esm/models/V1TimeRangeStorageTariffication.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате начала тарификации. + * @export + * @interface V1TimeRangeStorageTariffication + */ +export interface V1TimeRangeStorageTariffication { + /** + * Начало периода. + * @type {string} + * @memberof V1TimeRangeStorageTariffication + */ + time_from?: string; + /** + * Окончание периода. + * @type {string} + * @memberof V1TimeRangeStorageTariffication + */ + time_to?: string; +} +/** + * Check if a given object implements the V1TimeRangeStorageTariffication interface. + */ +export declare function instanceOfV1TimeRangeStorageTariffication(value: object): value is V1TimeRangeStorageTariffication; +export declare function V1TimeRangeStorageTarifficationFromJSON(json: any): V1TimeRangeStorageTariffication; +export declare function V1TimeRangeStorageTarifficationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TimeRangeStorageTariffication; +export declare function V1TimeRangeStorageTarifficationToJSON(value?: V1TimeRangeStorageTariffication | null): any; diff --git a/dist/esm/models/V1TimeRangeStorageTariffication.js b/dist/esm/models/V1TimeRangeStorageTariffication.js new file mode 100644 index 0000000..92d515a --- /dev/null +++ b/dist/esm/models/V1TimeRangeStorageTariffication.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1TimeRangeStorageTariffication interface. + */ +export function instanceOfV1TimeRangeStorageTariffication(value) { + return true; +} +export function V1TimeRangeStorageTarifficationFromJSON(json) { + return V1TimeRangeStorageTarifficationFromJSONTyped(json, false); +} +export function V1TimeRangeStorageTarifficationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'time_from': json['time_from'] == null ? undefined : json['time_from'], + 'time_to': json['time_to'] == null ? undefined : json['time_to'], + }; +} +export function V1TimeRangeStorageTarifficationToJSON(value) { + if (value == null) { + return value; + } + return { + 'time_from': value['time_from'], + 'time_to': value['time_to'], + }; +} diff --git a/dist/esm/models/V1TimeRangeVisualStatus.d.ts b/dist/esm/models/V1TimeRangeVisualStatus.d.ts new file mode 100644 index 0000000..6e3e15f --- /dev/null +++ b/dist/esm/models/V1TimeRangeVisualStatus.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате изменения статуса возврата. + * @export + * @interface V1TimeRangeVisualStatus + */ +export interface V1TimeRangeVisualStatus { + /** + * Начало периода. + * @type {string} + * @memberof V1TimeRangeVisualStatus + */ + time_from?: string; + /** + * Окончание периода. + * @type {string} + * @memberof V1TimeRangeVisualStatus + */ + time_to?: string; +} +/** + * Check if a given object implements the V1TimeRangeVisualStatus interface. + */ +export declare function instanceOfV1TimeRangeVisualStatus(value: object): value is V1TimeRangeVisualStatus; +export declare function V1TimeRangeVisualStatusFromJSON(json: any): V1TimeRangeVisualStatus; +export declare function V1TimeRangeVisualStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TimeRangeVisualStatus; +export declare function V1TimeRangeVisualStatusToJSON(value?: V1TimeRangeVisualStatus | null): any; diff --git a/dist/esm/models/V1TimeRangeVisualStatus.js b/dist/esm/models/V1TimeRangeVisualStatus.js new file mode 100644 index 0000000..9f0f572 --- /dev/null +++ b/dist/esm/models/V1TimeRangeVisualStatus.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1TimeRangeVisualStatus interface. + */ +export function instanceOfV1TimeRangeVisualStatus(value) { + return true; +} +export function V1TimeRangeVisualStatusFromJSON(json) { + return V1TimeRangeVisualStatusFromJSONTyped(json, false); +} +export function V1TimeRangeVisualStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'time_from': json['time_from'] == null ? undefined : json['time_from'], + 'time_to': json['time_to'] == null ? undefined : json['time_to'], + }; +} +export function V1TimeRangeVisualStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'time_from': value['time_from'], + 'time_to': value['time_to'], + }; +} diff --git a/dist/esm/models/V1Timezone.d.ts b/dist/esm/models/V1Timezone.d.ts new file mode 100644 index 0000000..c8e5476 --- /dev/null +++ b/dist/esm/models/V1Timezone.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1Timezone + */ +export interface V1Timezone { + /** + * Название часового пояса. + * @type {string} + * @memberof V1Timezone + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {string} + * @memberof V1Timezone + */ + offset?: string; +} +/** + * Check if a given object implements the V1Timezone interface. + */ +export declare function instanceOfV1Timezone(value: object): value is V1Timezone; +export declare function V1TimezoneFromJSON(json: any): V1Timezone; +export declare function V1TimezoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Timezone; +export declare function V1TimezoneToJSON(value?: V1Timezone | null): any; diff --git a/dist/esm/models/V1Timezone.js b/dist/esm/models/V1Timezone.js new file mode 100644 index 0000000..6fa15f7 --- /dev/null +++ b/dist/esm/models/V1Timezone.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1Timezone interface. + */ +export function instanceOfV1Timezone(value) { + return true; +} +export function V1TimezoneFromJSON(json) { + return V1TimezoneFromJSONTyped(json, false); +} +export function V1TimezoneFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function V1TimezoneToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/V1UnarchiveWarehouseFBSRequest.d.ts b/dist/esm/models/V1UnarchiveWarehouseFBSRequest.d.ts new file mode 100644 index 0000000..4a9a60b --- /dev/null +++ b/dist/esm/models/V1UnarchiveWarehouseFBSRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UnarchiveWarehouseFBSRequest + */ +export interface V1UnarchiveWarehouseFBSRequest { + /** + * Идентификатор пункта возврата. Получите значение параметра методом [/v1/warehouse/fbs/update/return-point/list](#operation/WarehouseFBSUpdateReturnPointList). + * @type {number} + * @memberof V1UnarchiveWarehouseFBSRequest + */ + return_point_id?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1UnarchiveWarehouseFBSRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1UnarchiveWarehouseFBSRequest interface. + */ +export declare function instanceOfV1UnarchiveWarehouseFBSRequest(value: object): value is V1UnarchiveWarehouseFBSRequest; +export declare function V1UnarchiveWarehouseFBSRequestFromJSON(json: any): V1UnarchiveWarehouseFBSRequest; +export declare function V1UnarchiveWarehouseFBSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UnarchiveWarehouseFBSRequest; +export declare function V1UnarchiveWarehouseFBSRequestToJSON(value?: V1UnarchiveWarehouseFBSRequest | null): any; diff --git a/dist/esm/models/V1UnarchiveWarehouseFBSRequest.js b/dist/esm/models/V1UnarchiveWarehouseFBSRequest.js new file mode 100644 index 0000000..a5f119a --- /dev/null +++ b/dist/esm/models/V1UnarchiveWarehouseFBSRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1UnarchiveWarehouseFBSRequest interface. + */ +export function instanceOfV1UnarchiveWarehouseFBSRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1UnarchiveWarehouseFBSRequestFromJSON(json) { + return V1UnarchiveWarehouseFBSRequestFromJSONTyped(json, false); +} +export function V1UnarchiveWarehouseFBSRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1UnarchiveWarehouseFBSRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'return_point_id': value['return_point_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1UnarchiveWarehouseFBSResponse.d.ts b/dist/esm/models/V1UnarchiveWarehouseFBSResponse.d.ts new file mode 100644 index 0000000..778f293 --- /dev/null +++ b/dist/esm/models/V1UnarchiveWarehouseFBSResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UnarchiveWarehouseFBSResponse + */ +export interface V1UnarchiveWarehouseFBSResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1UnarchiveWarehouseFBSResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1UnarchiveWarehouseFBSResponse interface. + */ +export declare function instanceOfV1UnarchiveWarehouseFBSResponse(value: object): value is V1UnarchiveWarehouseFBSResponse; +export declare function V1UnarchiveWarehouseFBSResponseFromJSON(json: any): V1UnarchiveWarehouseFBSResponse; +export declare function V1UnarchiveWarehouseFBSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UnarchiveWarehouseFBSResponse; +export declare function V1UnarchiveWarehouseFBSResponseToJSON(value?: V1UnarchiveWarehouseFBSResponse | null): any; diff --git a/dist/esm/models/V1UnarchiveWarehouseFBSResponse.js b/dist/esm/models/V1UnarchiveWarehouseFBSResponse.js new file mode 100644 index 0000000..1a582eb --- /dev/null +++ b/dist/esm/models/V1UnarchiveWarehouseFBSResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1UnarchiveWarehouseFBSResponse interface. + */ +export function instanceOfV1UnarchiveWarehouseFBSResponse(value) { + return true; +} +export function V1UnarchiveWarehouseFBSResponseFromJSON(json) { + return V1UnarchiveWarehouseFBSResponseFromJSONTyped(json, false); +} +export function V1UnarchiveWarehouseFBSResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1UnarchiveWarehouseFBSResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1UpdatePricingStrategyRequest.d.ts b/dist/esm/models/V1UpdatePricingStrategyRequest.d.ts new file mode 100644 index 0000000..7388e55 --- /dev/null +++ b/dist/esm/models/V1UpdatePricingStrategyRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Competitor } from './V1Competitor'; +/** + * + * @export + * @interface V1UpdatePricingStrategyRequest + */ +export interface V1UpdatePricingStrategyRequest { + /** + * Список конкурентов. + * @type {Array} + * @memberof V1UpdatePricingStrategyRequest + */ + competitors: Array; + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1UpdatePricingStrategyRequest + */ + strategy_id: string; + /** + * Название стратегии. + * @type {string} + * @memberof V1UpdatePricingStrategyRequest + */ + strategy_name: string; +} +/** + * Check if a given object implements the V1UpdatePricingStrategyRequest interface. + */ +export declare function instanceOfV1UpdatePricingStrategyRequest(value: object): value is V1UpdatePricingStrategyRequest; +export declare function V1UpdatePricingStrategyRequestFromJSON(json: any): V1UpdatePricingStrategyRequest; +export declare function V1UpdatePricingStrategyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdatePricingStrategyRequest; +export declare function V1UpdatePricingStrategyRequestToJSON(value?: V1UpdatePricingStrategyRequest | null): any; diff --git a/dist/esm/models/V1UpdatePricingStrategyRequest.js b/dist/esm/models/V1UpdatePricingStrategyRequest.js new file mode 100644 index 0000000..c4f8c55 --- /dev/null +++ b/dist/esm/models/V1UpdatePricingStrategyRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1CompetitorFromJSON, V1CompetitorToJSON, } from './V1Competitor'; +/** + * Check if a given object implements the V1UpdatePricingStrategyRequest interface. + */ +export function instanceOfV1UpdatePricingStrategyRequest(value) { + if (!('competitors' in value) || value['competitors'] === undefined) + return false; + if (!('strategy_id' in value) || value['strategy_id'] === undefined) + return false; + if (!('strategy_name' in value) || value['strategy_name'] === undefined) + return false; + return true; +} +export function V1UpdatePricingStrategyRequestFromJSON(json) { + return V1UpdatePricingStrategyRequestFromJSONTyped(json, false); +} +export function V1UpdatePricingStrategyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'competitors': (json['competitors'].map(V1CompetitorFromJSON)), + 'strategy_id': json['strategy_id'], + 'strategy_name': json['strategy_name'], + }; +} +export function V1UpdatePricingStrategyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'competitors': (value['competitors'].map(V1CompetitorToJSON)), + 'strategy_id': value['strategy_id'], + 'strategy_name': value['strategy_name'], + }; +} diff --git a/dist/esm/models/V1UpdateStatusStrategyRequest.d.ts b/dist/esm/models/V1UpdateStatusStrategyRequest.d.ts new file mode 100644 index 0000000..c9bf959 --- /dev/null +++ b/dist/esm/models/V1UpdateStatusStrategyRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UpdateStatusStrategyRequest + */ +export interface V1UpdateStatusStrategyRequest { + /** + * Статус стратегии: + * - `true` — включена, + * - `false` — отключена. + * + * @type {boolean} + * @memberof V1UpdateStatusStrategyRequest + */ + enabled?: boolean; + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1UpdateStatusStrategyRequest + */ + strategy_id: string; +} +/** + * Check if a given object implements the V1UpdateStatusStrategyRequest interface. + */ +export declare function instanceOfV1UpdateStatusStrategyRequest(value: object): value is V1UpdateStatusStrategyRequest; +export declare function V1UpdateStatusStrategyRequestFromJSON(json: any): V1UpdateStatusStrategyRequest; +export declare function V1UpdateStatusStrategyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateStatusStrategyRequest; +export declare function V1UpdateStatusStrategyRequestToJSON(value?: V1UpdateStatusStrategyRequest | null): any; diff --git a/dist/esm/models/V1UpdateStatusStrategyRequest.js b/dist/esm/models/V1UpdateStatusStrategyRequest.js new file mode 100644 index 0000000..3478cdc --- /dev/null +++ b/dist/esm/models/V1UpdateStatusStrategyRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1UpdateStatusStrategyRequest interface. + */ +export function instanceOfV1UpdateStatusStrategyRequest(value) { + if (!('strategy_id' in value) || value['strategy_id'] === undefined) + return false; + return true; +} +export function V1UpdateStatusStrategyRequestFromJSON(json) { + return V1UpdateStatusStrategyRequestFromJSONTyped(json, false); +} +export function V1UpdateStatusStrategyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + 'strategy_id': json['strategy_id'], + }; +} +export function V1UpdateStatusStrategyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/esm/models/V1UpdateSupplyOrderTimeslotRequest.d.ts b/dist/esm/models/V1UpdateSupplyOrderTimeslotRequest.d.ts new file mode 100644 index 0000000..46c581c --- /dev/null +++ b/dist/esm/models/V1UpdateSupplyOrderTimeslotRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderTimeslot } from './V1SupplyOrderTimeslot'; +/** + * + * @export + * @interface V1UpdateSupplyOrderTimeslotRequest + */ +export interface V1UpdateSupplyOrderTimeslotRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1UpdateSupplyOrderTimeslotRequest + */ + supply_order_id: number; + /** + * + * @type {V1SupplyOrderTimeslot} + * @memberof V1UpdateSupplyOrderTimeslotRequest + */ + timeslot: V1SupplyOrderTimeslot; +} +/** + * Check if a given object implements the V1UpdateSupplyOrderTimeslotRequest interface. + */ +export declare function instanceOfV1UpdateSupplyOrderTimeslotRequest(value: object): value is V1UpdateSupplyOrderTimeslotRequest; +export declare function V1UpdateSupplyOrderTimeslotRequestFromJSON(json: any): V1UpdateSupplyOrderTimeslotRequest; +export declare function V1UpdateSupplyOrderTimeslotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateSupplyOrderTimeslotRequest; +export declare function V1UpdateSupplyOrderTimeslotRequestToJSON(value?: V1UpdateSupplyOrderTimeslotRequest | null): any; diff --git a/dist/esm/models/V1UpdateSupplyOrderTimeslotRequest.js b/dist/esm/models/V1UpdateSupplyOrderTimeslotRequest.js new file mode 100644 index 0000000..6b9afa7 --- /dev/null +++ b/dist/esm/models/V1UpdateSupplyOrderTimeslotRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1SupplyOrderTimeslotFromJSON, V1SupplyOrderTimeslotToJSON, } from './V1SupplyOrderTimeslot'; +/** + * Check if a given object implements the V1UpdateSupplyOrderTimeslotRequest interface. + */ +export function instanceOfV1UpdateSupplyOrderTimeslotRequest(value) { + if (!('supply_order_id' in value) || value['supply_order_id'] === undefined) + return false; + if (!('timeslot' in value) || value['timeslot'] === undefined) + return false; + return true; +} +export function V1UpdateSupplyOrderTimeslotRequestFromJSON(json) { + return V1UpdateSupplyOrderTimeslotRequestFromJSONTyped(json, false); +} +export function V1UpdateSupplyOrderTimeslotRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_order_id': json['supply_order_id'], + 'timeslot': V1SupplyOrderTimeslotFromJSON(json['timeslot']), + }; +} +export function V1UpdateSupplyOrderTimeslotRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_order_id': value['supply_order_id'], + 'timeslot': V1SupplyOrderTimeslotToJSON(value['timeslot']), + }; +} diff --git a/dist/esm/models/V1UpdateSupplyOrderTimeslotResponse.d.ts b/dist/esm/models/V1UpdateSupplyOrderTimeslotResponse.d.ts new file mode 100644 index 0000000..73d3203 --- /dev/null +++ b/dist/esm/models/V1UpdateSupplyOrderTimeslotResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1UpdateTimeslotError } from './V1UpdateTimeslotError'; +/** + * + * @export + * @interface V1UpdateSupplyOrderTimeslotResponse + */ +export interface V1UpdateSupplyOrderTimeslotResponse { + /** + * Возможные ошибки: + * - `UNSPECIFIED` — статус не указан; + * - `INVALID_ORDER_STATE` — неверный статус заказа; + * - `INCOMPATIBLE_ORDER_FLOW` — неверный статус интервала поставки; + * - `SET_TIMESLOT_DEADLINE_EXCEED` — заявка на поставку просрочена; + * - `OUT_OF_ALLOWED_RANGE` — вы ввели некорректное значение интервала поставки; + * - `ORDER_NOT_BELONG_CONTRACTOR` — заявка создана другим юридическим лицом, работать с ней не получится; + * - `ORDER_NOT_BELONG_COMPANY` — заявка не принадлежит вашему кабинету, работать с ней не получится; + * - `UPDATE_TIMESLOT_ERROR_PICKUP_ORDER_LIMIT_EXCEEDED` — превышен суточный лимит на создание заявок на поставку курьером; + * - `UPDATE_TIMESLOT_ERROR_LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED` — превышен лимит изменения интервала доставки. + * + * @type {Array} + * @memberof V1UpdateSupplyOrderTimeslotResponse + */ + errors?: Array; + /** + * Идентификатор операции. + * @type {string} + * @memberof V1UpdateSupplyOrderTimeslotResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1UpdateSupplyOrderTimeslotResponse interface. + */ +export declare function instanceOfV1UpdateSupplyOrderTimeslotResponse(value: object): value is V1UpdateSupplyOrderTimeslotResponse; +export declare function V1UpdateSupplyOrderTimeslotResponseFromJSON(json: any): V1UpdateSupplyOrderTimeslotResponse; +export declare function V1UpdateSupplyOrderTimeslotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateSupplyOrderTimeslotResponse; +export declare function V1UpdateSupplyOrderTimeslotResponseToJSON(value?: V1UpdateSupplyOrderTimeslotResponse | null): any; diff --git a/dist/esm/models/V1UpdateSupplyOrderTimeslotResponse.js b/dist/esm/models/V1UpdateSupplyOrderTimeslotResponse.js new file mode 100644 index 0000000..5c73b56 --- /dev/null +++ b/dist/esm/models/V1UpdateSupplyOrderTimeslotResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1UpdateTimeslotErrorFromJSON, V1UpdateTimeslotErrorToJSON, } from './V1UpdateTimeslotError'; +/** + * Check if a given object implements the V1UpdateSupplyOrderTimeslotResponse interface. + */ +export function instanceOfV1UpdateSupplyOrderTimeslotResponse(value) { + return true; +} +export function V1UpdateSupplyOrderTimeslotResponseFromJSON(json) { + return V1UpdateSupplyOrderTimeslotResponseFromJSONTyped(json, false); +} +export function V1UpdateSupplyOrderTimeslotResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1UpdateTimeslotErrorFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1UpdateSupplyOrderTimeslotResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1UpdateTimeslotErrorToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1UpdateTimeslotError.d.ts b/dist/esm/models/V1UpdateTimeslotError.d.ts new file mode 100644 index 0000000..b11fcfa --- /dev/null +++ b/dist/esm/models/V1UpdateTimeslotError.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1UpdateTimeslotError: { + readonly UNSPECIFIED: "UPDATE_TIMESLOT_ERROR_UNSPECIFIED"; + readonly INVALID_ORDER_STATE: "UPDATE_TIMESLOT_ERROR_INVALID_ORDER_STATE"; + readonly INCOMPATIBLE_ORDER_FLOW: "UPDATE_TIMESLOT_ERROR_INCOMPATIBLE_ORDER_FLOW"; + readonly SET_TIMESLOT_DEADLINE_EXCEED: "UPDATE_TIMESLOT_ERROR_SET_TIMESLOT_DEADLINE_EXCEED"; + readonly OUT_OF_ALLOWED_RANGE: "UPDATE_TIMESLOT_ERROR_OUT_OF_ALLOWED_RANGE"; + readonly ORDER_NOT_BELONG_CONTRACTOR: "UPDATE_TIMESLOT_ERROR_ORDER_NOT_BELONG_CONTRACTOR"; + readonly ORDER_NOT_BELONG_COMPANY: "UPDATE_TIMESLOT_ERROR_ORDER_NOT_BELONG_COMPANY"; + readonly PICKUP_ORDER_LIMIT_EXCEEDED: "UPDATE_TIMESLOT_ERROR_PICKUP_ORDER_LIMIT_EXCEEDED"; + readonly LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED: "UPDATE_TIMESLOT_ERROR_LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED"; +}; +export type V1UpdateTimeslotError = typeof V1UpdateTimeslotError[keyof typeof V1UpdateTimeslotError]; +export declare function instanceOfV1UpdateTimeslotError(value: any): boolean; +export declare function V1UpdateTimeslotErrorFromJSON(json: any): V1UpdateTimeslotError; +export declare function V1UpdateTimeslotErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateTimeslotError; +export declare function V1UpdateTimeslotErrorToJSON(value?: V1UpdateTimeslotError | null): any; diff --git a/dist/esm/models/V1UpdateTimeslotError.js b/dist/esm/models/V1UpdateTimeslotError.js new file mode 100644 index 0000000..a29f2e3 --- /dev/null +++ b/dist/esm/models/V1UpdateTimeslotError.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1UpdateTimeslotError = { + UNSPECIFIED: 'UPDATE_TIMESLOT_ERROR_UNSPECIFIED', + INVALID_ORDER_STATE: 'UPDATE_TIMESLOT_ERROR_INVALID_ORDER_STATE', + INCOMPATIBLE_ORDER_FLOW: 'UPDATE_TIMESLOT_ERROR_INCOMPATIBLE_ORDER_FLOW', + SET_TIMESLOT_DEADLINE_EXCEED: 'UPDATE_TIMESLOT_ERROR_SET_TIMESLOT_DEADLINE_EXCEED', + OUT_OF_ALLOWED_RANGE: 'UPDATE_TIMESLOT_ERROR_OUT_OF_ALLOWED_RANGE', + ORDER_NOT_BELONG_CONTRACTOR: 'UPDATE_TIMESLOT_ERROR_ORDER_NOT_BELONG_CONTRACTOR', + ORDER_NOT_BELONG_COMPANY: 'UPDATE_TIMESLOT_ERROR_ORDER_NOT_BELONG_COMPANY', + PICKUP_ORDER_LIMIT_EXCEEDED: 'UPDATE_TIMESLOT_ERROR_PICKUP_ORDER_LIMIT_EXCEEDED', + LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED: 'UPDATE_TIMESLOT_ERROR_LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED' +}; +export function instanceOfV1UpdateTimeslotError(value) { + for (const key in V1UpdateTimeslotError) { + if (Object.prototype.hasOwnProperty.call(V1UpdateTimeslotError, key)) { + if (V1UpdateTimeslotError[key] === value) { + return true; + } + } + } + return false; +} +export function V1UpdateTimeslotErrorFromJSON(json) { + return V1UpdateTimeslotErrorFromJSONTyped(json, false); +} +export function V1UpdateTimeslotErrorFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1UpdateTimeslotErrorToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequest.d.ts b/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequest.d.ts new file mode 100644 index 0000000..1b2f4fb --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum } from './V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum'; +/** + * + * @export + * @interface V1UpdateWarehouseFBSFirstMileRequest + */ +export interface V1UpdateWarehouseFBSFirstMileRequest { + /** + * Время на приём заказов в минутах. Например, если вы передадите `3000`, приём заказов будет завершён через 50 часов с момента передачи. + * + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + cut_in_time: number; + /** + * Идентификатор drop-off пункта. Если `first_mile_type = DROP_OFF`, параметр обязательный. + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + drop_off_point_id?: number; + /** + * + * @type {V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + first_mile_type: V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + timeslot_id: number; + /** + * Идентификатор пункта возврата. Получите значение параметра методом [/v1/warehouse/fbs/update/return-point/list](#operation/WarehouseFBSUpdateReturnPointList). + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + return_point_id?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSFirstMileRequest interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSFirstMileRequest(value: object): value is V1UpdateWarehouseFBSFirstMileRequest; +export declare function V1UpdateWarehouseFBSFirstMileRequestFromJSON(json: any): V1UpdateWarehouseFBSFirstMileRequest; +export declare function V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSFirstMileRequest; +export declare function V1UpdateWarehouseFBSFirstMileRequestToJSON(value?: V1UpdateWarehouseFBSFirstMileRequest | null): any; diff --git a/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequest.js b/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequest.js new file mode 100644 index 0000000..38b7b4b --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequest.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON, V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON, } from './V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum'; +/** + * Check if a given object implements the V1UpdateWarehouseFBSFirstMileRequest interface. + */ +export function instanceOfV1UpdateWarehouseFBSFirstMileRequest(value) { + if (!('cut_in_time' in value) || value['cut_in_time'] === undefined) + return false; + if (!('first_mile_type' in value) || value['first_mile_type'] === undefined) + return false; + if (!('timeslot_id' in value) || value['timeslot_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1UpdateWarehouseFBSFirstMileRequestFromJSON(json) { + return V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped(json, false); +} +export function V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cut_in_time': json['cut_in_time'], + 'drop_off_point_id': json['drop_off_point_id'] == null ? undefined : json['drop_off_point_id'], + 'first_mile_type': V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON(json['first_mile_type']), + 'timeslot_id': json['timeslot_id'], + 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1UpdateWarehouseFBSFirstMileRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cut_in_time': value['cut_in_time'], + 'drop_off_point_id': value['drop_off_point_id'], + 'first_mile_type': V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON(value['first_mile_type']), + 'timeslot_id': value['timeslot_id'], + 'return_point_id': value['return_point_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.d.ts b/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.d.ts new file mode 100644 index 0000000..28c3930 --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export declare const V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum: { + readonly PICK_UP: "PICK_UP"; + readonly DROP_OFF: "DROP_OFF"; +}; +export type V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum = typeof V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum[keyof typeof V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum]; +export declare function instanceOfV1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum(value: any): boolean; +export declare function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON(json: any): V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum; +export declare function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum; +export declare function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON(value?: V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum | null): any; diff --git a/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.js b/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.js new file mode 100644 index 0000000..34c89b0 --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export const V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum = { + PICK_UP: 'PICK_UP', + DROP_OFF: 'DROP_OFF' +}; +export function instanceOfV1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum(value) { + for (const key in V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum, key)) { + if (V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON(json) { + return V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSONTyped(json, false); +} +export function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1UpdateWarehouseFBSFirstMileResponse.d.ts b/dist/esm/models/V1UpdateWarehouseFBSFirstMileResponse.d.ts new file mode 100644 index 0000000..b4746ce --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSFirstMileResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UpdateWarehouseFBSFirstMileResponse + */ +export interface V1UpdateWarehouseFBSFirstMileResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1UpdateWarehouseFBSFirstMileResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSFirstMileResponse interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSFirstMileResponse(value: object): value is V1UpdateWarehouseFBSFirstMileResponse; +export declare function V1UpdateWarehouseFBSFirstMileResponseFromJSON(json: any): V1UpdateWarehouseFBSFirstMileResponse; +export declare function V1UpdateWarehouseFBSFirstMileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSFirstMileResponse; +export declare function V1UpdateWarehouseFBSFirstMileResponseToJSON(value?: V1UpdateWarehouseFBSFirstMileResponse | null): any; diff --git a/dist/esm/models/V1UpdateWarehouseFBSFirstMileResponse.js b/dist/esm/models/V1UpdateWarehouseFBSFirstMileResponse.js new file mode 100644 index 0000000..5718650 --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSFirstMileResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1UpdateWarehouseFBSFirstMileResponse interface. + */ +export function instanceOfV1UpdateWarehouseFBSFirstMileResponse(value) { + return true; +} +export function V1UpdateWarehouseFBSFirstMileResponseFromJSON(json) { + return V1UpdateWarehouseFBSFirstMileResponseFromJSONTyped(json, false); +} +export function V1UpdateWarehouseFBSFirstMileResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1UpdateWarehouseFBSFirstMileResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1UpdateWarehouseFBSRequest.d.ts b/dist/esm/models/V1UpdateWarehouseFBSRequest.d.ts new file mode 100644 index 0000000..5cd48b5 --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSRequest.d.ts @@ -0,0 +1,72 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1UpdateWarehouseFBSRequestWorkingDaysEnum } from './V1UpdateWarehouseFBSRequestWorkingDaysEnum'; +import type { V1UpdateWarehouseFBSRequestOptions } from './V1UpdateWarehouseFBSRequestOptions'; +import type { V1UpdateWarehouseFBSRequestAddressCoordinates } from './V1UpdateWarehouseFBSRequestAddressCoordinates'; +/** + * + * @export + * @interface V1UpdateWarehouseFBSRequest + */ +export interface V1UpdateWarehouseFBSRequest { + /** + * + * @type {V1UpdateWarehouseFBSRequestAddressCoordinates} + * @memberof V1UpdateWarehouseFBSRequest + */ + address_coordinates: V1UpdateWarehouseFBSRequestAddressCoordinates; + /** + * Название склада. + * @type {string} + * @memberof V1UpdateWarehouseFBSRequest + */ + name?: string; + /** + * + * @type {V1UpdateWarehouseFBSRequestOptions} + * @memberof V1UpdateWarehouseFBSRequest + */ + options?: V1UpdateWarehouseFBSRequestOptions; + /** + * Номер телефона склада. + * @type {string} + * @memberof V1UpdateWarehouseFBSRequest + */ + phone?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1UpdateWarehouseFBSRequest + */ + warehouse_id: number; + /** + * Рабочие дни склада: + * - `MONDAY` — понедельник; + * - `TUESDAY` — вторник; + * - `WEDNESDAY` — среда; + * - `THURSDAY` — четверг; + * - `FRIDAY` — пятница; + * - `SATURDAY` — суббота; + * - `SUNDAY` — воскресенье. + * + * @type {Array} + * @memberof V1UpdateWarehouseFBSRequest + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequest interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSRequest(value: object): value is V1UpdateWarehouseFBSRequest; +export declare function V1UpdateWarehouseFBSRequestFromJSON(json: any): V1UpdateWarehouseFBSRequest; +export declare function V1UpdateWarehouseFBSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSRequest; +export declare function V1UpdateWarehouseFBSRequestToJSON(value?: V1UpdateWarehouseFBSRequest | null): any; diff --git a/dist/esm/models/V1UpdateWarehouseFBSRequest.js b/dist/esm/models/V1UpdateWarehouseFBSRequest.js new file mode 100644 index 0000000..44bbef5 --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSRequest.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON, V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON, } from './V1UpdateWarehouseFBSRequestWorkingDaysEnum'; +import { V1UpdateWarehouseFBSRequestOptionsFromJSON, V1UpdateWarehouseFBSRequestOptionsToJSON, } from './V1UpdateWarehouseFBSRequestOptions'; +import { V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON, V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON, } from './V1UpdateWarehouseFBSRequestAddressCoordinates'; +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequest interface. + */ +export function instanceOfV1UpdateWarehouseFBSRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1UpdateWarehouseFBSRequestFromJSON(json) { + return V1UpdateWarehouseFBSRequestFromJSONTyped(json, false); +} +export function V1UpdateWarehouseFBSRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON(json['address_coordinates']), + 'name': json['name'] == null ? undefined : json['name'], + 'options': json['options'] == null ? undefined : V1UpdateWarehouseFBSRequestOptionsFromJSON(json['options']), + 'phone': json['phone'] == null ? undefined : json['phone'], + 'warehouse_id': json['warehouse_id'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON)), + }; +} +export function V1UpdateWarehouseFBSRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON(value['address_coordinates']), + 'name': value['name'], + 'options': V1UpdateWarehouseFBSRequestOptionsToJSON(value['options']), + 'phone': value['phone'], + 'warehouse_id': value['warehouse_id'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1UpdateWarehouseFBSRequestAddressCoordinates.d.ts b/dist/esm/models/V1UpdateWarehouseFBSRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..3aca292 --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты склада. + * @export + * @interface V1UpdateWarehouseFBSRequestAddressCoordinates + */ +export interface V1UpdateWarehouseFBSRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1UpdateWarehouseFBSRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1UpdateWarehouseFBSRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequestAddressCoordinates interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSRequestAddressCoordinates(value: object): value is V1UpdateWarehouseFBSRequestAddressCoordinates; +export declare function V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON(json: any): V1UpdateWarehouseFBSRequestAddressCoordinates; +export declare function V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSRequestAddressCoordinates; +export declare function V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON(value?: V1UpdateWarehouseFBSRequestAddressCoordinates | null): any; diff --git a/dist/esm/models/V1UpdateWarehouseFBSRequestAddressCoordinates.js b/dist/esm/models/V1UpdateWarehouseFBSRequestAddressCoordinates.js new file mode 100644 index 0000000..989e500 --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSRequestAddressCoordinates.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequestAddressCoordinates interface. + */ +export function instanceOfV1UpdateWarehouseFBSRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +export function V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON(json) { + return V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json, false); +} +export function V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +export function V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1UpdateWarehouseFBSRequestOptions.d.ts b/dist/esm/models/V1UpdateWarehouseFBSRequestOptions.d.ts new file mode 100644 index 0000000..55891aa --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSRequestOptions.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры склада. + * @export + * @interface V1UpdateWarehouseFBSRequestOptions + */ +export interface V1UpdateWarehouseFBSRequestOptions { + /** + * Комментарий для курьера при отгрузке с типом `PICK_UP`. + * @type {string} + * @memberof V1UpdateWarehouseFBSRequestOptions + */ + comment?: string; + /** + * Номера телефонов для курьера при отгрузке с типом `PICK_UP`. + * @type {Array} + * @memberof V1UpdateWarehouseFBSRequestOptions + */ + courier_phones?: Array; + /** + * Признак включённой автосборки. + * @type {boolean} + * @memberof V1UpdateWarehouseFBSRequestOptions + */ + is_auto_assembly?: boolean; + /** + * Признак включённой печати транспортной накладной. + * @type {boolean} + * @memberof V1UpdateWarehouseFBSRequestOptions + */ + is_waybill_enabled?: boolean; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequestOptions interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSRequestOptions(value: object): value is V1UpdateWarehouseFBSRequestOptions; +export declare function V1UpdateWarehouseFBSRequestOptionsFromJSON(json: any): V1UpdateWarehouseFBSRequestOptions; +export declare function V1UpdateWarehouseFBSRequestOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSRequestOptions; +export declare function V1UpdateWarehouseFBSRequestOptionsToJSON(value?: V1UpdateWarehouseFBSRequestOptions | null): any; diff --git a/dist/esm/models/V1UpdateWarehouseFBSRequestOptions.js b/dist/esm/models/V1UpdateWarehouseFBSRequestOptions.js new file mode 100644 index 0000000..f1be9dc --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSRequestOptions.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequestOptions interface. + */ +export function instanceOfV1UpdateWarehouseFBSRequestOptions(value) { + return true; +} +export function V1UpdateWarehouseFBSRequestOptionsFromJSON(json) { + return V1UpdateWarehouseFBSRequestOptionsFromJSONTyped(json, false); +} +export function V1UpdateWarehouseFBSRequestOptionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment': json['comment'] == null ? undefined : json['comment'], + 'courier_phones': json['courier_phones'] == null ? undefined : json['courier_phones'], + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'is_waybill_enabled': json['is_waybill_enabled'] == null ? undefined : json['is_waybill_enabled'], + }; +} +export function V1UpdateWarehouseFBSRequestOptionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment': value['comment'], + 'courier_phones': value['courier_phones'], + 'is_auto_assembly': value['is_auto_assembly'], + 'is_waybill_enabled': value['is_waybill_enabled'], + }; +} diff --git a/dist/esm/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.d.ts b/dist/esm/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.d.ts new file mode 100644 index 0000000..20b0088 --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1UpdateWarehouseFBSRequestWorkingDaysEnum: { + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1UpdateWarehouseFBSRequestWorkingDaysEnum = typeof V1UpdateWarehouseFBSRequestWorkingDaysEnum[keyof typeof V1UpdateWarehouseFBSRequestWorkingDaysEnum]; +export declare function instanceOfV1UpdateWarehouseFBSRequestWorkingDaysEnum(value: any): boolean; +export declare function V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON(json: any): V1UpdateWarehouseFBSRequestWorkingDaysEnum; +export declare function V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSRequestWorkingDaysEnum; +export declare function V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON(value?: V1UpdateWarehouseFBSRequestWorkingDaysEnum | null): any; diff --git a/dist/esm/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.js b/dist/esm/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.js new file mode 100644 index 0000000..3ff4b6a --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1UpdateWarehouseFBSRequestWorkingDaysEnum = { + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfV1UpdateWarehouseFBSRequestWorkingDaysEnum(value) { + for (const key in V1UpdateWarehouseFBSRequestWorkingDaysEnum) { + if (Object.prototype.hasOwnProperty.call(V1UpdateWarehouseFBSRequestWorkingDaysEnum, key)) { + if (V1UpdateWarehouseFBSRequestWorkingDaysEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON(json) { + return V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json, false); +} +export function V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1UpdateWarehouseFBSResponse.d.ts b/dist/esm/models/V1UpdateWarehouseFBSResponse.d.ts new file mode 100644 index 0000000..5151a0c --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UpdateWarehouseFBSResponse + */ +export interface V1UpdateWarehouseFBSResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1UpdateWarehouseFBSResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSResponse interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSResponse(value: object): value is V1UpdateWarehouseFBSResponse; +export declare function V1UpdateWarehouseFBSResponseFromJSON(json: any): V1UpdateWarehouseFBSResponse; +export declare function V1UpdateWarehouseFBSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSResponse; +export declare function V1UpdateWarehouseFBSResponseToJSON(value?: V1UpdateWarehouseFBSResponse | null): any; diff --git a/dist/esm/models/V1UpdateWarehouseFBSResponse.js b/dist/esm/models/V1UpdateWarehouseFBSResponse.js new file mode 100644 index 0000000..ca2dfcc --- /dev/null +++ b/dist/esm/models/V1UpdateWarehouseFBSResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1UpdateWarehouseFBSResponse interface. + */ +export function instanceOfV1UpdateWarehouseFBSResponse(value) { + return true; +} +export function V1UpdateWarehouseFBSResponseFromJSON(json) { + return V1UpdateWarehouseFBSResponseFromJSONTyped(json, false); +} +export function V1UpdateWarehouseFBSResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1UpdateWarehouseFBSResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1UploadPostingCodesRequest.d.ts b/dist/esm/models/V1UploadPostingCodesRequest.d.ts new file mode 100644 index 0000000..0a1997c --- /dev/null +++ b/dist/esm/models/V1UploadPostingCodesRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UploadPostingCodesRequestPostingLineExemplarInfo } from './UploadPostingCodesRequestPostingLineExemplarInfo'; +/** + * + * @export + * @interface V1UploadPostingCodesRequest + */ +export interface V1UploadPostingCodesRequest { + /** + * Данные о кодах цифрового товара по SKU. + * @type {Array} + * @memberof V1UploadPostingCodesRequest + */ + exemplars_by_sku?: Array; + /** + * Номер отправления. + * @type {string} + * @memberof V1UploadPostingCodesRequest + */ + posting_number?: string; +} +/** + * Check if a given object implements the V1UploadPostingCodesRequest interface. + */ +export declare function instanceOfV1UploadPostingCodesRequest(value: object): value is V1UploadPostingCodesRequest; +export declare function V1UploadPostingCodesRequestFromJSON(json: any): V1UploadPostingCodesRequest; +export declare function V1UploadPostingCodesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UploadPostingCodesRequest; +export declare function V1UploadPostingCodesRequestToJSON(value?: V1UploadPostingCodesRequest | null): any; diff --git a/dist/esm/models/V1UploadPostingCodesRequest.js b/dist/esm/models/V1UploadPostingCodesRequest.js new file mode 100644 index 0000000..0e472cb --- /dev/null +++ b/dist/esm/models/V1UploadPostingCodesRequest.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UploadPostingCodesRequestPostingLineExemplarInfoFromJSON, UploadPostingCodesRequestPostingLineExemplarInfoToJSON, } from './UploadPostingCodesRequestPostingLineExemplarInfo'; +/** + * Check if a given object implements the V1UploadPostingCodesRequest interface. + */ +export function instanceOfV1UploadPostingCodesRequest(value) { + return true; +} +export function V1UploadPostingCodesRequestFromJSON(json) { + return V1UploadPostingCodesRequestFromJSONTyped(json, false); +} +export function V1UploadPostingCodesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars_by_sku': json['exemplars_by_sku'] == null ? undefined : (json['exemplars_by_sku'].map(UploadPostingCodesRequestPostingLineExemplarInfoFromJSON)), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +export function V1UploadPostingCodesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars_by_sku': value['exemplars_by_sku'] == null ? undefined : (value['exemplars_by_sku'].map(UploadPostingCodesRequestPostingLineExemplarInfoToJSON)), + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V1UploadPostingCodesResponse.d.ts b/dist/esm/models/V1UploadPostingCodesResponse.d.ts new file mode 100644 index 0000000..690b34b --- /dev/null +++ b/dist/esm/models/V1UploadPostingCodesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UploadPostingCodesResponsePostingExemplarInfo } from './UploadPostingCodesResponsePostingExemplarInfo'; +/** + * + * @export + * @interface V1UploadPostingCodesResponse + */ +export interface V1UploadPostingCodesResponse { + /** + * Данные о кодах цифрового товара по SKU. + * @type {Array} + * @memberof V1UploadPostingCodesResponse + */ + exemplars_by_sku?: Array; +} +/** + * Check if a given object implements the V1UploadPostingCodesResponse interface. + */ +export declare function instanceOfV1UploadPostingCodesResponse(value: object): value is V1UploadPostingCodesResponse; +export declare function V1UploadPostingCodesResponseFromJSON(json: any): V1UploadPostingCodesResponse; +export declare function V1UploadPostingCodesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UploadPostingCodesResponse; +export declare function V1UploadPostingCodesResponseToJSON(value?: V1UploadPostingCodesResponse | null): any; diff --git a/dist/esm/models/V1UploadPostingCodesResponse.js b/dist/esm/models/V1UploadPostingCodesResponse.js new file mode 100644 index 0000000..f4daae6 --- /dev/null +++ b/dist/esm/models/V1UploadPostingCodesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UploadPostingCodesResponsePostingExemplarInfoFromJSON, UploadPostingCodesResponsePostingExemplarInfoToJSON, } from './UploadPostingCodesResponsePostingExemplarInfo'; +/** + * Check if a given object implements the V1UploadPostingCodesResponse interface. + */ +export function instanceOfV1UploadPostingCodesResponse(value) { + return true; +} +export function V1UploadPostingCodesResponseFromJSON(json) { + return V1UploadPostingCodesResponseFromJSONTyped(json, false); +} +export function V1UploadPostingCodesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars_by_sku': json['exemplars_by_sku'] == null ? undefined : (json['exemplars_by_sku'].map(UploadPostingCodesResponsePostingExemplarInfoFromJSON)), + }; +} +export function V1UploadPostingCodesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars_by_sku': value['exemplars_by_sku'] == null ? undefined : (value['exemplars_by_sku'].map(UploadPostingCodesResponsePostingExemplarInfoToJSON)), + }; +} diff --git a/dist/esm/models/V1UploadReceiptRequestTypeEnum.d.ts b/dist/esm/models/V1UploadReceiptRequestTypeEnum.d.ts new file mode 100644 index 0000000..7abcd80 --- /dev/null +++ b/dist/esm/models/V1UploadReceiptRequestTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чека: + * - `INCOMING` — чек реализации; + * - `REFUND` — чек возврата. + * + * @export + */ +export declare const V1UploadReceiptRequestTypeEnum: { + readonly INCOMING: "INCOMING"; + readonly REFUND: "REFUND"; +}; +export type V1UploadReceiptRequestTypeEnum = typeof V1UploadReceiptRequestTypeEnum[keyof typeof V1UploadReceiptRequestTypeEnum]; +export declare function instanceOfV1UploadReceiptRequestTypeEnum(value: any): boolean; +export declare function V1UploadReceiptRequestTypeEnumFromJSON(json: any): V1UploadReceiptRequestTypeEnum; +export declare function V1UploadReceiptRequestTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UploadReceiptRequestTypeEnum; +export declare function V1UploadReceiptRequestTypeEnumToJSON(value?: V1UploadReceiptRequestTypeEnum | null): any; diff --git a/dist/esm/models/V1UploadReceiptRequestTypeEnum.js b/dist/esm/models/V1UploadReceiptRequestTypeEnum.js new file mode 100644 index 0000000..ecc1447 --- /dev/null +++ b/dist/esm/models/V1UploadReceiptRequestTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чека: + * - `INCOMING` — чек реализации; + * - `REFUND` — чек возврата. + * + * @export + */ +export const V1UploadReceiptRequestTypeEnum = { + INCOMING: 'INCOMING', + REFUND: 'REFUND' +}; +export function instanceOfV1UploadReceiptRequestTypeEnum(value) { + for (const key in V1UploadReceiptRequestTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1UploadReceiptRequestTypeEnum, key)) { + if (V1UploadReceiptRequestTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1UploadReceiptRequestTypeEnumFromJSON(json) { + return V1UploadReceiptRequestTypeEnumFromJSONTyped(json, false); +} +export function V1UploadReceiptRequestTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1UploadReceiptRequestTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1UploadReceiptResponse.d.ts b/dist/esm/models/V1UploadReceiptResponse.d.ts new file mode 100644 index 0000000..d726cb0 --- /dev/null +++ b/dist/esm/models/V1UploadReceiptResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UploadReceiptResponse + */ +export interface V1UploadReceiptResponse { + /** + * Идентификатор чека. + * @type {string} + * @memberof V1UploadReceiptResponse + */ + receipt_id?: string; +} +/** + * Check if a given object implements the V1UploadReceiptResponse interface. + */ +export declare function instanceOfV1UploadReceiptResponse(value: object): value is V1UploadReceiptResponse; +export declare function V1UploadReceiptResponseFromJSON(json: any): V1UploadReceiptResponse; +export declare function V1UploadReceiptResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UploadReceiptResponse; +export declare function V1UploadReceiptResponseToJSON(value?: V1UploadReceiptResponse | null): any; diff --git a/dist/esm/models/V1UploadReceiptResponse.js b/dist/esm/models/V1UploadReceiptResponse.js new file mode 100644 index 0000000..b442926 --- /dev/null +++ b/dist/esm/models/V1UploadReceiptResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1UploadReceiptResponse interface. + */ +export function instanceOfV1UploadReceiptResponse(value) { + return true; +} +export function V1UploadReceiptResponseFromJSON(json) { + return V1UploadReceiptResponseFromJSONTyped(json, false); +} +export function V1UploadReceiptResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'receipt_id': json['receipt_id'] == null ? undefined : json['receipt_id'], + }; +} +export function V1UploadReceiptResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'receipt_id': value['receipt_id'], + }; +} diff --git a/dist/esm/models/V1VehicleInfo.d.ts b/dist/esm/models/V1VehicleInfo.d.ts new file mode 100644 index 0000000..6b2eb3b --- /dev/null +++ b/dist/esm/models/V1VehicleInfo.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о водителе и автомобиле. + * @export + * @interface V1VehicleInfo + */ +export interface V1VehicleInfo { + /** + * Имя водителя. + * @type {string} + * @memberof V1VehicleInfo + */ + driver_name: string; + /** + * Телефон водителя. + * @type {string} + * @memberof V1VehicleInfo + */ + driver_phone: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof V1VehicleInfo + */ + vehicle_model: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof V1VehicleInfo + */ + vehicle_number: string; +} +/** + * Check if a given object implements the V1VehicleInfo interface. + */ +export declare function instanceOfV1VehicleInfo(value: object): value is V1VehicleInfo; +export declare function V1VehicleInfoFromJSON(json: any): V1VehicleInfo; +export declare function V1VehicleInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VehicleInfo; +export declare function V1VehicleInfoToJSON(value?: V1VehicleInfo | null): any; diff --git a/dist/esm/models/V1VehicleInfo.js b/dist/esm/models/V1VehicleInfo.js new file mode 100644 index 0000000..e4281c1 --- /dev/null +++ b/dist/esm/models/V1VehicleInfo.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1VehicleInfo interface. + */ +export function instanceOfV1VehicleInfo(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + if (!('vehicle_number' in value) || value['vehicle_number'] === undefined) + return false; + return true; +} +export function V1VehicleInfoFromJSON(json) { + return V1VehicleInfoFromJSONTyped(json, false); +} +export function V1VehicleInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'vehicle_model': json['vehicle_model'], + 'vehicle_number': json['vehicle_number'], + }; +} +export function V1VehicleInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'vehicle_model': value['vehicle_model'], + 'vehicle_number': value['vehicle_number'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequest.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequest.d.ts new file mode 100644 index 0000000..2377ce2 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequest.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse } from './V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse'; +import type { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod'; +import type { V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates } from './V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates'; +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequest + */ +export interface V1WarehouseERFBSAggregatorCreateRequest { + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + address_coordinates: V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; + /** + * `true`, если на складе доступна автосборка. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + is_auto_assembly?: boolean; + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + delivery_method: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; + /** + * Минимальная стоимость заказа. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + min_order_value?: number; + /** + * Название склада. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + name: string; + /** + * Номер телефона склада. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + phone: string; + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + timetable_warehouse: V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequest(value: object): value is V1WarehouseERFBSAggregatorCreateRequest; +export declare function V1WarehouseERFBSAggregatorCreateRequestFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequest; +export declare function V1WarehouseERFBSAggregatorCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequest; +export declare function V1WarehouseERFBSAggregatorCreateRequestToJSON(value?: V1WarehouseERFBSAggregatorCreateRequest | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequest.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequest.js new file mode 100644 index 0000000..10b1b1a --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequest.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON, V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON, } from './V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse'; +import { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON, } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod'; +import { V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON, V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON, } from './V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates'; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequest interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorCreateRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('delivery_method' in value) || value['delivery_method'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + if (!('timetable_warehouse' in value) || value['timetable_warehouse'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSAggregatorCreateRequestFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON(json['address_coordinates']), + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'delivery_method': V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON(json['delivery_method']), + 'min_order_value': json['min_order_value'] == null ? undefined : json['min_order_value'], + 'name': json['name'], + 'phone': json['phone'], + 'timetable_warehouse': V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON(json['timetable_warehouse']), + }; +} +export function V1WarehouseERFBSAggregatorCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON(value['address_coordinates']), + 'is_auto_assembly': value['is_auto_assembly'], + 'delivery_method': V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON(value['delivery_method']), + 'min_order_value': value['min_order_value'], + 'name': value['name'], + 'phone': value['phone'], + 'timetable_warehouse': V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON(value['timetable_warehouse']), + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..ecb4a47 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты адреса склада. + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates + */ +export interface V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestAddressCoordinates(value: object): value is V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.js new file mode 100644 index 0000000..d39c8c7 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorCreateRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +export function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.d.ts new file mode 100644 index 0000000..70ddb5f --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.d.ts @@ -0,0 +1,95 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts } from './WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts'; +import type { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings'; +/** + * Информация о методе доставки «Партнёры Ozon». + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ +export interface V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod { + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + courier_comment?: string; + /** + * `true`, если номер телефона курьера совпадает с номером телефона склада. + * + * Если `is_courier_phone_same_as_warehouse = true`, текущий номер телефона будет указан в `courier_phones`. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + is_courier_phone_same_as_warehouse?: boolean; + /** + * Номера телефонов для связи с курьером. + * @type {Array} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + courier_phones: Array; + /** + * Время сборки. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + cut_in: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum; + /** + * `true`, если доставка Ozon Express в пункт выдачи Ozon. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + deliver_to_pvz: boolean; + /** + * + * @type {WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + delivery_costs: WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; + /** + * Название метода доставки. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + name: string; + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + return_settings: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +} +/** + * @export + */ +export declare const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_60: 60; + readonly NUMBER_120: 120; + readonly NUMBER_180: 180; + readonly NUMBER_240: 240; + readonly NUMBER_300: 300; + readonly NUMBER_360: 360; + readonly NUMBER_420: 420; + readonly NUMBER_480: 480; +}; +export type V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum = typeof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum[keyof typeof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum]; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethod(value: object): value is V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.js new file mode 100644 index 0000000..8f32886 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.js @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON, WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON, } from './WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts'; +import { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON, } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings'; +/** + * @export + */ +export const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_60: 60, + NUMBER_120: 120, + NUMBER_180: 180, + NUMBER_240: 240, + NUMBER_300: 300, + NUMBER_360: 360, + NUMBER_420: 420, + NUMBER_480: 480 +}; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethod(value) { + if (!('courier_phones' in value) || value['courier_phones'] === undefined) + return false; + if (!('cut_in' in value) || value['cut_in'] === undefined) + return false; + if (!('deliver_to_pvz' in value) || value['deliver_to_pvz'] === undefined) + return false; + if (!('delivery_costs' in value) || value['delivery_costs'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('return_settings' in value) || value['return_settings'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_comment': json['courier_comment'] == null ? undefined : json['courier_comment'], + 'is_courier_phone_same_as_warehouse': json['is_courier_phone_same_as_warehouse'] == null ? undefined : json['is_courier_phone_same_as_warehouse'], + 'courier_phones': json['courier_phones'], + 'cut_in': json['cut_in'], + 'deliver_to_pvz': json['deliver_to_pvz'], + 'delivery_costs': WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON(json['delivery_costs']), + 'name': json['name'], + 'return_settings': V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON(json['return_settings']), + }; +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_comment': value['courier_comment'], + 'is_courier_phone_same_as_warehouse': value['is_courier_phone_same_as_warehouse'], + 'courier_phones': value['courier_phones'], + 'cut_in': value['cut_in'], + 'deliver_to_pvz': value['deliver_to_pvz'], + 'delivery_costs': WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON(value['delivery_costs']), + 'name': value['name'], + 'return_settings': V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON(value['return_settings']), + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.d.ts new file mode 100644 index 0000000..05e5a6a --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +/** + * Информация о получении возвратов от покупателей. + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ +export interface V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings { + /** + * Количество дней, за которое вы свяжетесь с покупателем. Параметр обязательный, если `return_method = COURIER`. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ + contact_days?: number; + /** + * Индекс отделения Почты России для [«лёгкого возврата»](https://seller-edu.ozon.ru/rfbs/vozvraty/vozvraty#%C2%AB%D0%BB%D1%91%D0%B3%D0%BA%D0%B8%D0%B8-%D0%B2%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%82%C2%BB-%D0%BF%D0%BE%D1%87%D1%82%D0%BE%D0%B8-%D1%80%D0%BE%D1%81%D1%81%D0%B8%D0%B8). + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ + post_office_zipcode?: string; + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ + return_method: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; + /** + * Название транспортной компании. Параметр обязательный, если `return_method = TRANSPORT_COMPANY`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ + transport_company_name?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings(value: object): value is V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.js new file mode 100644 index 0000000..f7b21e8 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON, } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings(value) { + if (!('return_method' in value) || value['return_method'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'return_method': V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json['return_method']), + 'transport_company_name': json['transport_company_name'] == null ? undefined : json['transport_company_name'], + }; +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + 'post_office_zipcode': value['post_office_zipcode'], + 'return_method': V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value['return_method']), + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts new file mode 100644 index 0000000..5c3899f --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способы возврата: + * - `UNSPECIFIED` — не определён, + * - `COURIER` — курьером, + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export declare const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly COURIER: "COURIER"; + readonly TRANSPORT_COMPANY: "TRANSPORT_COMPANY"; +}; +export type V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = typeof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum[keyof typeof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum]; +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum(value: any): boolean; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js new file mode 100644 index 0000000..40dc076 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способы возврата: + * - `UNSPECIFIED` — не определён, + * - `COURIER` — курьером, + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = { + UNSPECIFIED: 'UNSPECIFIED', + COURIER: 'COURIER', + TRANSPORT_COMPANY: 'TRANSPORT_COMPANY' +}; +export function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum(value) { + for (const key in V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum, key)) { + if (V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.d.ts new file mode 100644 index 0000000..e56ce55 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestHolidays + */ +export interface V1WarehouseERFBSAggregatorCreateRequestHolidays { + /** + * День в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestHolidays + */ + day?: string; + /** + * Время начала выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestHolidays + */ + from?: string; + /** + * Время окончания выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestHolidays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestHolidays interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestHolidays(value: object): value is V1WarehouseERFBSAggregatorCreateRequestHolidays; +export declare function V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestHolidays; +export declare function V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestHolidays; +export declare function V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestHolidays | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.js new file mode 100644 index 0000000..e87ec70 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestHolidays interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorCreateRequestHolidays(value) { + return true; +} +export function V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : json['day'], + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.d.ts new file mode 100644 index 0000000..2c8a487 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorCreateRequestWorkingDays } from './V1WarehouseERFBSAggregatorCreateRequestWorkingDays'; +import type { V1WarehouseERFBSAggregatorCreateRequestHolidays } from './V1WarehouseERFBSAggregatorCreateRequestHolidays'; +/** + * Расписание работы склада. + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse + */ +export interface V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse { + /** + * Выходные дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse + */ + holidays?: Array; + /** + * Рабочие дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse + */ + working_days: Array; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse(value: object): value is V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.js new file mode 100644 index 0000000..f4848de --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON, V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON, } from './V1WarehouseERFBSAggregatorCreateRequestWorkingDays'; +import { V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON, V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON, } from './V1WarehouseERFBSAggregatorCreateRequestHolidays'; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse(value) { + if (!('working_days' in value) || value['working_days'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'holidays': json['holidays'] == null ? undefined : (json['holidays'].map(V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON)), + 'working_days': (json['working_days'].map(V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON)), + }; +} +export function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'holidays': value['holidays'] == null ? undefined : (value['holidays'].map(V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON)), + 'working_days': (value['working_days'].map(V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.d.ts new file mode 100644 index 0000000..11153e1 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum } from './V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestWorkingDays + */ +export interface V1WarehouseERFBSAggregatorCreateRequestWorkingDays { + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum} + * @memberof V1WarehouseERFBSAggregatorCreateRequestWorkingDays + */ + day: V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum; + /** + * Время начала рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestWorkingDays + */ + from: string; + /** + * Время окончания рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestWorkingDays + */ + to: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestWorkingDays interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDays(value: object): value is V1WarehouseERFBSAggregatorCreateRequestWorkingDays; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestWorkingDays; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestWorkingDays; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestWorkingDays | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.js new file mode 100644 index 0000000..804e325 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON, V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON, } from './V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum'; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestWorkingDays interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDays(value) { + if (!('day' in value) || value['day'] === undefined) + return false; + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON(json['day']), + 'from': json['from'], + 'to': json['to'], + }; +} +export function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..565ec46 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum = typeof V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum[keyof typeof V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.js new file mode 100644 index 0000000..7fb423b --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export const V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum(value) { + for (const key in V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum, key)) { + if (V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateResponse.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorCreateResponse.d.ts new file mode 100644 index 0000000..11e10e3 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorCreateResponse + */ +export interface V1WarehouseERFBSAggregatorCreateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateResponse(value: object): value is V1WarehouseERFBSAggregatorCreateResponse; +export declare function V1WarehouseERFBSAggregatorCreateResponseFromJSON(json: any): V1WarehouseERFBSAggregatorCreateResponse; +export declare function V1WarehouseERFBSAggregatorCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateResponse; +export declare function V1WarehouseERFBSAggregatorCreateResponseToJSON(value?: V1WarehouseERFBSAggregatorCreateResponse | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorCreateResponse.js b/dist/esm/models/V1WarehouseERFBSAggregatorCreateResponse.js new file mode 100644 index 0000000..8c98206 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateResponse interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorCreateResponse(value) { + return true; +} +export function V1WarehouseERFBSAggregatorCreateResponseFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateResponseFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1WarehouseERFBSAggregatorCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.d.ts new file mode 100644 index 0000000..fd73e54 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.d.ts @@ -0,0 +1,107 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings'; +import type { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts'; +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ +export interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest { + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + courier_comment?: string; + /** + * `true`, если номер телефона курьера совпадает с номером телефона склада. + * + * Если `is_courier_phone_same_as_warehouse = true`, текущий номер телефона будет указан в `courier_phones`. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + is_courier_phone_same_as_warehouse?: boolean; + /** + * Номера телефонов для связи с курьером. + * @type {Array} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + courier_phones?: Array; + /** + * Время сборки. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + cut_in?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum; + /** + * `true`, если доставка Ozon Express в пункт выдачи Ozon. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + deliver_to_pvz?: boolean; + /** + * + * @type {V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + delivery_costs?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + delivery_method_id: number; + /** + * Название метода доставки. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + name?: string; + /** + * + * @type {V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + return_settings?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + warehouse_id: number; +} +/** + * @export + */ +export declare const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_60: 60; + readonly NUMBER_120: 120; + readonly NUMBER_180: 180; + readonly NUMBER_240: 240; + readonly NUMBER_300: 300; + readonly NUMBER_360: 360; + readonly NUMBER_420: 420; + readonly NUMBER_480: 480; +}; +export type V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum = typeof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum[keyof typeof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum]; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest(value: object): value is V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.js b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.js new file mode 100644 index 0000000..9be47de --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.js @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON, } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings'; +import { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON, } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts'; +/** + * @export + */ +export const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_60: 60, + NUMBER_120: 120, + NUMBER_180: 180, + NUMBER_240: 240, + NUMBER_300: 300, + NUMBER_360: 360, + NUMBER_420: 420, + NUMBER_480: 480 +}; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_comment': json['courier_comment'] == null ? undefined : json['courier_comment'], + 'is_courier_phone_same_as_warehouse': json['is_courier_phone_same_as_warehouse'] == null ? undefined : json['is_courier_phone_same_as_warehouse'], + 'courier_phones': json['courier_phones'] == null ? undefined : json['courier_phones'], + 'cut_in': json['cut_in'] == null ? undefined : json['cut_in'], + 'deliver_to_pvz': json['deliver_to_pvz'] == null ? undefined : json['deliver_to_pvz'], + 'delivery_costs': json['delivery_costs'] == null ? undefined : V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON(json['delivery_costs']), + 'delivery_method_id': json['delivery_method_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'return_settings': json['return_settings'] == null ? undefined : V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON(json['return_settings']), + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_comment': value['courier_comment'], + 'is_courier_phone_same_as_warehouse': value['is_courier_phone_same_as_warehouse'], + 'courier_phones': value['courier_phones'], + 'cut_in': value['cut_in'], + 'deliver_to_pvz': value['deliver_to_pvz'], + 'delivery_costs': V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON(value['delivery_costs']), + 'delivery_method_id': value['delivery_method_id'], + 'name': value['name'], + 'return_settings': V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON(value['return_settings']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.d.ts new file mode 100644 index 0000000..e5e56c0 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Расходы на доставку, которые вы готовы оплатить. + * @export + * @interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ +export interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts { + /** + * Минимальный вес в килограммах. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + min_weight?: number; + /** + * Максимальный вес в килограммах. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + max_weight?: number; + /** + * Минимальная стоимость заказа в копейках. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + min_order_price?: number; + /** + * Максимальная стоимость заказа в копейках. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + max_order_price?: number; + /** + * Цена в копейках. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + seller_payment?: number; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts(value: object): value is V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.js b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.js new file mode 100644 index 0000000..1c9f140 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts(value) { + return true; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_weight': json['min_weight'] == null ? undefined : json['min_weight'], + 'max_weight': json['max_weight'] == null ? undefined : json['max_weight'], + 'min_order_price': json['min_order_price'] == null ? undefined : json['min_order_price'], + 'max_order_price': json['max_order_price'] == null ? undefined : json['max_order_price'], + 'seller_payment': json['seller_payment'] == null ? undefined : json['seller_payment'], + }; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_weight': value['min_weight'], + 'max_weight': value['max_weight'], + 'min_order_price': value['min_order_price'], + 'max_order_price': value['max_order_price'], + 'seller_payment': value['seller_payment'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.d.ts new file mode 100644 index 0000000..8ff862b --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +/** + * Настройки возвратов от покупателей. + * @export + * @interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ +export interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings { + /** + * Количество дней, за которое вы свяжетесь с покупателем. Параметр обязательный, если `return_method = COURIER`. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ + contact_days?: number; + /** + * Индекс отделения Почты России. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ + post_office_zipcode?: string; + /** + * + * @type {V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ + return_method?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; + /** + * Название транспортной компании. Параметр обязательный, если `return_method = TRANSPORT_COMPANY`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ + transport_company_name: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings(value: object): value is V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.js b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.js new file mode 100644 index 0000000..07c459a --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON, } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings(value) { + if (!('transport_company_name' in value) || value['transport_company_name'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'return_method': json['return_method'] == null ? undefined : V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json['return_method']), + 'transport_company_name': json['transport_company_name'], + }; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + 'post_office_zipcode': value['post_office_zipcode'], + 'return_method': V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value['return_method']), + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts new file mode 100644 index 0000000..ba18f41 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ возврата: + * - `COURIER` — курьером; + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export declare const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum: { + readonly COURIER: "COURIER"; + readonly TRANSPORT_COMPANY: "TRANSPORT_COMPANY"; +}; +export type V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = typeof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum[keyof typeof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum]; +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum(value: any): boolean; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js new file mode 100644 index 0000000..856b27d --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ возврата: + * - `COURIER` — курьером; + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = { + COURIER: 'COURIER', + TRANSPORT_COMPANY: 'TRANSPORT_COMPANY' +}; +export function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum(value) { + for (const key in V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum, key)) { + if (V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.d.ts b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.d.ts new file mode 100644 index 0000000..b72c9c1 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse + */ +export interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse(value: object): value is V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.js b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.js new file mode 100644 index 0000000..2c2938c --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse interface. + */ +export function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse(value) { + return true; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSONTyped(json, false); +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequest.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequest.d.ts new file mode 100644 index 0000000..a11dc5c --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequest.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates } from './V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates'; +import type { V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse } from './V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse'; +import type { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod'; +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequest + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequest { + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + address_coordinates: V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; + /** + * `true`, если на складе доступна автосборка. + * + * @type {boolean} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + is_auto_assembly?: boolean; + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + delivery_method: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; + /** + * Минимальная стоимость заказа в рублях. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + min_order_value?: number; + /** + * Название склада. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + name: string; + /** + * Номер телефона склада. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + phone: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + timetable_warehouse: V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequest(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequest; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequest; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequest; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequest | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequest.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequest.js new file mode 100644 index 0000000..1ab3344 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequest.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON, } from './V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates'; +import { V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON, } from './V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse'; +import { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON, } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod'; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequest interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('delivery_method' in value) || value['delivery_method'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + if (!('timetable_warehouse' in value) || value['timetable_warehouse'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON(json['address_coordinates']), + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'delivery_method': V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON(json['delivery_method']), + 'min_order_value': json['min_order_value'] == null ? undefined : json['min_order_value'], + 'name': json['name'], + 'phone': json['phone'], + 'timetable_warehouse': V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON(json['timetable_warehouse']), + }; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON(value['address_coordinates']), + 'is_auto_assembly': value['is_auto_assembly'], + 'delivery_method': V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON(value['delivery_method']), + 'min_order_value': value['min_order_value'], + 'name': value['name'], + 'phone': value['phone'], + 'timetable_warehouse': V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON(value['timetable_warehouse']), + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..daf8ce7 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты адреса склада. + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.js new file mode 100644 index 0000000..942024c --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.d.ts new file mode 100644 index 0000000..c809d6f --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodDeliveryPolygon } from './DeliveryMethodDeliveryPolygon'; +import type { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings'; +/** + * Информация о методе доставки «Вы или сторонняя служба». + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod { + /** + * Скорость отгрузки в доставку. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + courier_cutoff: number; + /** + * Время сборки. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + cut_in: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum; + /** + * Полигоны доставки, созданные через [/v1/polygon/create](#operation/PolygonAPI_CreatePolygon), с указанием времени доставки в каждый. + * @type {Array} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + delivery_polygons: Array; + /** + * Название метода доставки. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + name: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + return_settings: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +} +/** + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_60: 60; + readonly NUMBER_120: 120; + readonly NUMBER_180: 180; + readonly NUMBER_240: 240; + readonly NUMBER_300: 300; + readonly NUMBER_360: 360; + readonly NUMBER_420: 420; + readonly NUMBER_480: 480; +}; +export type V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum = typeof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum[keyof typeof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum]; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.js new file mode 100644 index 0000000..8804066 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.js @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMethodDeliveryPolygonFromJSON, DeliveryMethodDeliveryPolygonToJSON, } from './DeliveryMethodDeliveryPolygon'; +import { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON, } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings'; +/** + * @export + */ +export const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_60: 60, + NUMBER_120: 120, + NUMBER_180: 180, + NUMBER_240: 240, + NUMBER_300: 300, + NUMBER_360: 360, + NUMBER_420: 420, + NUMBER_480: 480 +}; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod(value) { + if (!('courier_cutoff' in value) || value['courier_cutoff'] === undefined) + return false; + if (!('cut_in' in value) || value['cut_in'] === undefined) + return false; + if (!('delivery_polygons' in value) || value['delivery_polygons'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('return_settings' in value) || value['return_settings'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_cutoff': json['courier_cutoff'], + 'cut_in': json['cut_in'], + 'delivery_polygons': (json['delivery_polygons'].map(DeliveryMethodDeliveryPolygonFromJSON)), + 'name': json['name'], + 'return_settings': V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON(json['return_settings']), + }; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_cutoff': value['courier_cutoff'], + 'cut_in': value['cut_in'], + 'delivery_polygons': (value['delivery_polygons'].map(DeliveryMethodDeliveryPolygonToJSON)), + 'name': value['name'], + 'return_settings': V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON(value['return_settings']), + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.d.ts new file mode 100644 index 0000000..e6afd76 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +/** + * Информация о получении возвратов от покупателей. + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings { + /** + * Количество дней, за которое вы свяжетесь с покупателем. Параметр обязательный, если `return_method = COURIER`. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ + contact_days?: number; + /** + * Индекс отделения Почты России для [«лёгкого возврата»](https://seller-edu.ozon.ru/rfbs/vozvraty/vozvraty#%C2%AB%D0%BB%D1%91%D0%B3%D0%BA%D0%B8%D0%B8-%D0%B2%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%82%C2%BB-%D0%BF%D0%BE%D1%87%D1%82%D0%BE%D0%B8-%D1%80%D0%BE%D1%81%D1%81%D0%B8%D0%B8). + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ + post_office_zipcode?: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ + return_method: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; + /** + * Название транспортной компании, если способ возврата `TRANSPORT_COMPANY`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ + transport_company_name?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.js new file mode 100644 index 0000000..72012e2 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON, } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings(value) { + if (!('return_method' in value) || value['return_method'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'return_method': V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json['return_method']), + 'transport_company_name': json['transport_company_name'] == null ? undefined : json['transport_company_name'], + }; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + 'post_office_zipcode': value['post_office_zipcode'], + 'return_method': V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value['return_method']), + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts new file mode 100644 index 0000000..a0bdb75 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способы возврата: + * - `COURIER` — курьером, + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum: { + readonly COURIER: "COURIER"; + readonly TRANSPORT_COMPANY: "TRANSPORT_COMPANY"; +}; +export type V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = typeof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum[keyof typeof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum]; +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum(value: any): boolean; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js new file mode 100644 index 0000000..fd60001 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способы возврата: + * - `COURIER` — курьером, + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = { + COURIER: 'COURIER', + TRANSPORT_COMPANY: 'TRANSPORT_COMPANY' +}; +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum(value) { + for (const key in V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum, key)) { + if (V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.d.ts new file mode 100644 index 0000000..d02a81c --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestHolidays + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestHolidays { + /** + * День в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestHolidays + */ + day?: string; + /** + * Время начала выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestHolidays + */ + from?: string; + /** + * Время окончания выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestHolidays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestHolidays interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestHolidays(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestHolidays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestHolidays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestHolidays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestHolidays | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.js new file mode 100644 index 0000000..c88ef65 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestHolidays interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestHolidays(value) { + return true; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : json['day'], + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.d.ts new file mode 100644 index 0000000..2791483 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays } from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays'; +import type { V1WarehouseERFBSNonIntegratedCreateRequestHolidays } from './V1WarehouseERFBSNonIntegratedCreateRequestHolidays'; +/** + * Расписание работы склада. + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse { + /** + * Выходные дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse + */ + holidays?: Array; + /** + * Рабочие дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse + */ + working_days: Array; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.js new file mode 100644 index 0000000..49eb38b --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON, } from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays'; +import { V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON, } from './V1WarehouseERFBSNonIntegratedCreateRequestHolidays'; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse(value) { + if (!('working_days' in value) || value['working_days'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'holidays': json['holidays'] == null ? undefined : (json['holidays'].map(V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON)), + 'working_days': (json['working_days'].map(V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON)), + }; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'holidays': value['holidays'] == null ? undefined : (value['holidays'].map(V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON)), + 'working_days': (value['working_days'].map(V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.d.ts new file mode 100644 index 0000000..67e8493 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum } from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays { + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays + */ + day: V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum; + /** + * Время начала рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays + */ + from: string; + /** + * Время окончания рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays + */ + to: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDays(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.js new file mode 100644 index 0000000..3d0a9bf --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON, V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON, } from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum'; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDays(value) { + if (!('day' in value) || value['day'] === undefined) + return false; + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON(json['day']), + 'from': json['from'], + 'to': json['to'], + }; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..19af81f --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum: { + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum = typeof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum[keyof typeof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.js new file mode 100644 index 0000000..1e3922a --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export const V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum = { + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum(value) { + for (const key in V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum, key)) { + if (V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateResponse.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateResponse.d.ts new file mode 100644 index 0000000..73e5f4b --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateResponse + */ +export interface V1WarehouseERFBSNonIntegratedCreateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateResponse(value: object): value is V1WarehouseERFBSNonIntegratedCreateResponse; +export declare function V1WarehouseERFBSNonIntegratedCreateResponseFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateResponse; +export declare function V1WarehouseERFBSNonIntegratedCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateResponse; +export declare function V1WarehouseERFBSNonIntegratedCreateResponseToJSON(value?: V1WarehouseERFBSNonIntegratedCreateResponse | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateResponse.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateResponse.js new file mode 100644 index 0000000..ba51284 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedCreateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateResponse interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedCreateResponse(value) { + return true; +} +export function V1WarehouseERFBSNonIntegratedCreateResponseFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateResponseFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1WarehouseERFBSNonIntegratedCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.d.ts new file mode 100644 index 0000000..e891cba --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.d.ts @@ -0,0 +1,93 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings } from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings'; +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ +export interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest { + /** + * Скорость отгрузки. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + courier_cutoff: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum; + /** + * Время сборки. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + cut_in: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + delivery_method_id: number; + /** + * Название метода доставки. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + name: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + return_settings: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + warehouse_id: number; +} +/** + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum: { + readonly NUMBER_5: 5; + readonly NUMBER_10: 10; + readonly NUMBER_15: 15; + readonly NUMBER_20: 20; + readonly NUMBER_25: 25; + readonly NUMBER_30: 30; + readonly NUMBER_35: 35; + readonly NUMBER_40: 40; + readonly NUMBER_45: 45; +}; +export type V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum = typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum[keyof typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum]; +/** + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_60: 60; + readonly NUMBER_120: 120; + readonly NUMBER_180: 180; + readonly NUMBER_240: 240; + readonly NUMBER_300: 300; + readonly NUMBER_360: 360; + readonly NUMBER_420: 420; + readonly NUMBER_480: 480; +}; +export type V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum = typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum[keyof typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum]; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest(value: object): value is V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSON(json: any): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON(value?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.js new file mode 100644 index 0000000..d6c200f --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.js @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON, } from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings'; +/** + * @export + */ +export const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum = { + NUMBER_5: 5, + NUMBER_10: 10, + NUMBER_15: 15, + NUMBER_20: 20, + NUMBER_25: 25, + NUMBER_30: 30, + NUMBER_35: 35, + NUMBER_40: 40, + NUMBER_45: 45 +}; +/** + * @export + */ +export const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_60: 60, + NUMBER_120: 120, + NUMBER_180: 180, + NUMBER_240: 240, + NUMBER_300: 300, + NUMBER_360: 360, + NUMBER_420: 420, + NUMBER_480: 480 +}; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest(value) { + if (!('courier_cutoff' in value) || value['courier_cutoff'] === undefined) + return false; + if (!('cut_in' in value) || value['cut_in'] === undefined) + return false; + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('return_settings' in value) || value['return_settings'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSON(json) { + return V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_cutoff': json['courier_cutoff'], + 'cut_in': json['cut_in'], + 'delivery_method_id': json['delivery_method_id'], + 'name': json['name'], + 'return_settings': V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON(json['return_settings']), + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_cutoff': value['courier_cutoff'], + 'cut_in': value['cut_in'], + 'delivery_method_id': value['delivery_method_id'], + 'name': value['name'], + 'return_settings': V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON(value['return_settings']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.d.ts new file mode 100644 index 0000000..50a8017 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum } from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +/** + * Настройки возвратов от покупателей. + * @export + * @interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ +export interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings { + /** + * Количество дней, за которое вы свяжетесь с покупателем. Параметр обязательный, если `return_method = COURIER`. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ + contact_days?: number; + /** + * Индекс отделения Почты России. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ + post_office_zipcode?: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ + return_method: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; + /** + * Название транспортной компании. Параметр обязательный, если `return_method = TRANSPORT_COMPANY`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ + transport_company_name?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings(value: object): value is V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON(json: any): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON(value?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.js new file mode 100644 index 0000000..ea18280 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON, } from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings(value) { + if (!('return_method' in value) || value['return_method'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON(json) { + return V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'return_method': V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json['return_method']), + 'transport_company_name': json['transport_company_name'] == null ? undefined : json['transport_company_name'], + }; +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + 'post_office_zipcode': value['post_office_zipcode'], + 'return_method': V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value['return_method']), + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts new file mode 100644 index 0000000..393270e --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ возврата: + * - `COURIER` — курьером; + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum: { + readonly COURIER: "COURIER"; + readonly TRANSPORT_COMPANY: "TRANSPORT_COMPANY"; +}; +export type V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum[keyof typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum]; +export declare function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum(value: any): boolean; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json: any): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js new file mode 100644 index 0000000..490ca82 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ возврата: + * - `COURIER` — курьером; + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = { + COURIER: 'COURIER', + TRANSPORT_COMPANY: 'TRANSPORT_COMPANY' +}; +export function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum(value) { + for (const key in V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum, key)) { + if (V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json) { + return V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.d.ts b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.d.ts new file mode 100644 index 0000000..e965083 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse + */ +export interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse(value: object): value is V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON(json: any): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseToJSON(value?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.js b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.js new file mode 100644 index 0000000..f305b30 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse interface. + */ +export function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse(value) { + return true; +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON(json) { + return V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSONTyped(json, false); +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequest.d.ts b/dist/esm/models/V1WarehouseERFBSUpdateRequest.d.ts new file mode 100644 index 0000000..f8de67b --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSUpdateRequestTimetableWarehouse } from './V1WarehouseERFBSUpdateRequestTimetableWarehouse'; +/** + * + * @export + * @interface V1WarehouseERFBSUpdateRequest + */ +export interface V1WarehouseERFBSUpdateRequest { + /** + * `true`, если на складе доступна автосборка. + * + * @type {boolean} + * @memberof V1WarehouseERFBSUpdateRequest + */ + is_auto_assembly?: boolean; + /** + * Минимальная стоимость заказа. + * @type {number} + * @memberof V1WarehouseERFBSUpdateRequest + */ + min_order_value?: number; + /** + * Название склада. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequest + */ + name?: string; + /** + * Номер телефона склада. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequest + */ + phone?: string; + /** + * + * @type {V1WarehouseERFBSUpdateRequestTimetableWarehouse} + * @memberof V1WarehouseERFBSUpdateRequest + */ + timetable_warehouse?: V1WarehouseERFBSUpdateRequestTimetableWarehouse; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseERFBSUpdateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateRequest(value: object): value is V1WarehouseERFBSUpdateRequest; +export declare function V1WarehouseERFBSUpdateRequestFromJSON(json: any): V1WarehouseERFBSUpdateRequest; +export declare function V1WarehouseERFBSUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequest; +export declare function V1WarehouseERFBSUpdateRequestToJSON(value?: V1WarehouseERFBSUpdateRequest | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequest.js b/dist/esm/models/V1WarehouseERFBSUpdateRequest.js new file mode 100644 index 0000000..5249285 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequest.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON, V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON, } from './V1WarehouseERFBSUpdateRequestTimetableWarehouse'; +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequest interface. + */ +export function instanceOfV1WarehouseERFBSUpdateRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseERFBSUpdateRequestFromJSON(json) { + return V1WarehouseERFBSUpdateRequestFromJSONTyped(json, false); +} +export function V1WarehouseERFBSUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'min_order_value': json['min_order_value'] == null ? undefined : json['min_order_value'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'timetable_warehouse': json['timetable_warehouse'] == null ? undefined : V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON(json['timetable_warehouse']), + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseERFBSUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_auto_assembly': value['is_auto_assembly'], + 'min_order_value': value['min_order_value'], + 'name': value['name'], + 'phone': value['phone'], + 'timetable_warehouse': V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON(value['timetable_warehouse']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequestHolidays.d.ts b/dist/esm/models/V1WarehouseERFBSUpdateRequestHolidays.d.ts new file mode 100644 index 0000000..3fa898b --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequestHolidays.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSUpdateRequestHolidays + */ +export interface V1WarehouseERFBSUpdateRequestHolidays { + /** + * День в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestHolidays + */ + day?: string; + /** + * Время начала выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestHolidays + */ + from?: string; + /** + * Время окончания выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestHolidays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestHolidays interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateRequestHolidays(value: object): value is V1WarehouseERFBSUpdateRequestHolidays; +export declare function V1WarehouseERFBSUpdateRequestHolidaysFromJSON(json: any): V1WarehouseERFBSUpdateRequestHolidays; +export declare function V1WarehouseERFBSUpdateRequestHolidaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequestHolidays; +export declare function V1WarehouseERFBSUpdateRequestHolidaysToJSON(value?: V1WarehouseERFBSUpdateRequestHolidays | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequestHolidays.js b/dist/esm/models/V1WarehouseERFBSUpdateRequestHolidays.js new file mode 100644 index 0000000..8156b61 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequestHolidays.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestHolidays interface. + */ +export function instanceOfV1WarehouseERFBSUpdateRequestHolidays(value) { + return true; +} +export function V1WarehouseERFBSUpdateRequestHolidaysFromJSON(json) { + return V1WarehouseERFBSUpdateRequestHolidaysFromJSONTyped(json, false); +} +export function V1WarehouseERFBSUpdateRequestHolidaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : json['day'], + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseERFBSUpdateRequestHolidaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.d.ts b/dist/esm/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.d.ts new file mode 100644 index 0000000..a293e87 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSUpdateRequestWorkingDays } from './V1WarehouseERFBSUpdateRequestWorkingDays'; +import type { V1WarehouseERFBSUpdateRequestHolidays } from './V1WarehouseERFBSUpdateRequestHolidays'; +/** + * Расписание работы склада. + * @export + * @interface V1WarehouseERFBSUpdateRequestTimetableWarehouse + */ +export interface V1WarehouseERFBSUpdateRequestTimetableWarehouse { + /** + * Выходные дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSUpdateRequestTimetableWarehouse + */ + holidays?: Array; + /** + * Рабочие дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSUpdateRequestTimetableWarehouse + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestTimetableWarehouse interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateRequestTimetableWarehouse(value: object): value is V1WarehouseERFBSUpdateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON(json: any): V1WarehouseERFBSUpdateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON(value?: V1WarehouseERFBSUpdateRequestTimetableWarehouse | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.js b/dist/esm/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.js new file mode 100644 index 0000000..c001aa1 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON, V1WarehouseERFBSUpdateRequestWorkingDaysToJSON, } from './V1WarehouseERFBSUpdateRequestWorkingDays'; +import { V1WarehouseERFBSUpdateRequestHolidaysFromJSON, V1WarehouseERFBSUpdateRequestHolidaysToJSON, } from './V1WarehouseERFBSUpdateRequestHolidays'; +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestTimetableWarehouse interface. + */ +export function instanceOfV1WarehouseERFBSUpdateRequestTimetableWarehouse(value) { + return true; +} +export function V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON(json) { + return V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSONTyped(json, false); +} +export function V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'holidays': json['holidays'] == null ? undefined : (json['holidays'].map(V1WarehouseERFBSUpdateRequestHolidaysFromJSON)), + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON)), + }; +} +export function V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'holidays': value['holidays'] == null ? undefined : (value['holidays'].map(V1WarehouseERFBSUpdateRequestHolidaysToJSON)), + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1WarehouseERFBSUpdateRequestWorkingDaysToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDays.d.ts b/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDays.d.ts new file mode 100644 index 0000000..2bd04c6 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum } from './V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseERFBSUpdateRequestWorkingDays + */ +export interface V1WarehouseERFBSUpdateRequestWorkingDays { + /** + * + * @type {V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum} + * @memberof V1WarehouseERFBSUpdateRequestWorkingDays + */ + day?: V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum; + /** + * Время начала рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestWorkingDays + */ + from?: string; + /** + * Время окончания рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestWorkingDays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestWorkingDays interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateRequestWorkingDays(value: object): value is V1WarehouseERFBSUpdateRequestWorkingDays; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON(json: any): V1WarehouseERFBSUpdateRequestWorkingDays; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequestWorkingDays; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysToJSON(value?: V1WarehouseERFBSUpdateRequestWorkingDays | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDays.js b/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDays.js new file mode 100644 index 0000000..d1e2554 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDays.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON, V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON, } from './V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum'; +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestWorkingDays interface. + */ +export function instanceOfV1WarehouseERFBSUpdateRequestWorkingDays(value) { + return true; +} +export function V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON(json) { + return V1WarehouseERFBSUpdateRequestWorkingDaysFromJSONTyped(json, false); +} +export function V1WarehouseERFBSUpdateRequestWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON(json['day']), + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseERFBSUpdateRequestWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.d.ts b/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..371851c --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum = typeof V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum[keyof typeof V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseERFBSUpdateRequestWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON(json: any): V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON(value?: V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.js b/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.js new file mode 100644 index 0000000..8529b06 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export const V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfV1WarehouseERFBSUpdateRequestWorkingDaysDayEnum(value) { + for (const key in V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum, key)) { + if (V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSONTyped(json, false); +} +export function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseERFBSUpdateResponse.d.ts b/dist/esm/models/V1WarehouseERFBSUpdateResponse.d.ts new file mode 100644 index 0000000..bc4df83 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSUpdateResponse + */ +export interface V1WarehouseERFBSUpdateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSUpdateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateResponse(value: object): value is V1WarehouseERFBSUpdateResponse; +export declare function V1WarehouseERFBSUpdateResponseFromJSON(json: any): V1WarehouseERFBSUpdateResponse; +export declare function V1WarehouseERFBSUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateResponse; +export declare function V1WarehouseERFBSUpdateResponseToJSON(value?: V1WarehouseERFBSUpdateResponse | null): any; diff --git a/dist/esm/models/V1WarehouseERFBSUpdateResponse.js b/dist/esm/models/V1WarehouseERFBSUpdateResponse.js new file mode 100644 index 0000000..d57f585 --- /dev/null +++ b/dist/esm/models/V1WarehouseERFBSUpdateResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseERFBSUpdateResponse interface. + */ +export function instanceOfV1WarehouseERFBSUpdateResponse(value) { + return true; +} +export function V1WarehouseERFBSUpdateResponseFromJSON(json) { + return V1WarehouseERFBSUpdateResponseFromJSONTyped(json, false); +} +export function V1WarehouseERFBSUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function V1WarehouseERFBSUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequest.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequest.d.ts new file mode 100644 index 0000000..61fc970 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListRequestSearch } from './V1WarehouseFBSCreateReturnPointListRequestSearch'; +import type { V1WarehouseFBSCreateReturnPointListRequestCoordinates } from './V1WarehouseFBSCreateReturnPointListRequestCoordinates'; +/** + * + * @export + * @interface V1WarehouseFBSCreateReturnPointListRequest + */ +export interface V1WarehouseFBSCreateReturnPointListRequest { + /** + * + * @type {V1WarehouseFBSCreateReturnPointListRequestCoordinates} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + coordinates: V1WarehouseFBSCreateReturnPointListRequestCoordinates; + /** + * Код страны в формате ISO 2. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + country_code: string; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + last_id?: number; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + limit: number; + /** + * + * @type {V1WarehouseFBSCreateReturnPointListRequestSearch} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + search?: V1WarehouseFBSCreateReturnPointListRequestSearch; + /** + * Идентификатор выбранной точки отгрузки на складе. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + selected_dropoff_point_id?: number; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequest interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListRequest(value: object): value is V1WarehouseFBSCreateReturnPointListRequest; +export declare function V1WarehouseFBSCreateReturnPointListRequestFromJSON(json: any): V1WarehouseFBSCreateReturnPointListRequest; +export declare function V1WarehouseFBSCreateReturnPointListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListRequest; +export declare function V1WarehouseFBSCreateReturnPointListRequestToJSON(value?: V1WarehouseFBSCreateReturnPointListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequest.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequest.js new file mode 100644 index 0000000..6aa6fe0 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequest.js @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON, V1WarehouseFBSCreateReturnPointListRequestSearchToJSON, } from './V1WarehouseFBSCreateReturnPointListRequestSearch'; +import { V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON, V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON, } from './V1WarehouseFBSCreateReturnPointListRequestCoordinates'; +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequest interface. + */ +export function instanceOfV1WarehouseFBSCreateReturnPointListRequest(value) { + if (!('coordinates' in value) || value['coordinates'] === undefined) + return false; + if (!('country_code' in value) || value['country_code'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1WarehouseFBSCreateReturnPointListRequestFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListRequestFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON(json['coordinates']), + 'country_code': json['country_code'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'search': json['search'] == null ? undefined : V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON(json['search']), + 'selected_dropoff_point_id': json['selected_dropoff_point_id'] == null ? undefined : json['selected_dropoff_point_id'], + }; +} +export function V1WarehouseFBSCreateReturnPointListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON(value['coordinates']), + 'country_code': value['country_code'], + 'last_id': value['last_id'], + 'limit': value['limit'], + 'search': V1WarehouseFBSCreateReturnPointListRequestSearchToJSON(value['search']), + 'selected_dropoff_point_id': value['selected_dropoff_point_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.d.ts new file mode 100644 index 0000000..7368b3d --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты пункта возврата. + * @export + * @interface V1WarehouseFBSCreateReturnPointListRequestCoordinates + */ +export interface V1WarehouseFBSCreateReturnPointListRequestCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequestCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequestCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequestCoordinates interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListRequestCoordinates(value: object): value is V1WarehouseFBSCreateReturnPointListRequestCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON(json: any): V1WarehouseFBSCreateReturnPointListRequestCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListRequestCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON(value?: V1WarehouseFBSCreateReturnPointListRequestCoordinates | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.js new file mode 100644 index 0000000..12441e1 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequestCoordinates interface. + */ +export function instanceOfV1WarehouseFBSCreateReturnPointListRequestCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +export function V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +export function V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearch.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearch.d.ts new file mode 100644 index 0000000..0f598b5 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearch.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum } from './V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum'; +/** + * Параметры поиска. + * @export + * @interface V1WarehouseFBSCreateReturnPointListRequestSearch + */ +export interface V1WarehouseFBSCreateReturnPointListRequestSearch { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListRequestSearch + */ + address?: string; + /** + * Тип пункта возврата: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @type {Array} + * @memberof V1WarehouseFBSCreateReturnPointListRequestSearch + */ + types?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequestSearch interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListRequestSearch(value: object): value is V1WarehouseFBSCreateReturnPointListRequestSearch; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON(json: any): V1WarehouseFBSCreateReturnPointListRequestSearch; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListRequestSearch; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchToJSON(value?: V1WarehouseFBSCreateReturnPointListRequestSearch | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearch.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearch.js new file mode 100644 index 0000000..209b122 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearch.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON, V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON, } from './V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum'; +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequestSearch interface. + */ +export function instanceOfV1WarehouseFBSCreateReturnPointListRequestSearch(value) { + return true; +} +export function V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListRequestSearchFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListRequestSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'types': json['types'] == null ? undefined : (json['types'].map(V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON)), + }; +} +export function V1WarehouseFBSCreateReturnPointListRequestSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'types': value['types'] == null ? undefined : (value['types'].map(V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..a99b1ad --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum = typeof V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum[keyof typeof V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON(value?: V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.js new file mode 100644 index 0000000..237f772 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfV1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum(value) { + for (const key in V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum, key)) { + if (V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponse.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponse.d.ts new file mode 100644 index 0000000..89b47aa --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListResponseReturnPoint } from './V1WarehouseFBSCreateReturnPointListResponseReturnPoint'; +/** + * + * @export + * @interface V1WarehouseFBSCreateReturnPointListResponse + */ +export interface V1WarehouseFBSCreateReturnPointListResponse { + /** + * Признак, что в ответе вернули не все пункты возврата. + * @type {boolean} + * @memberof V1WarehouseFBSCreateReturnPointListResponse + */ + has_next?: boolean; + /** + * Признак доступности пункта возврата. + * @type {boolean} + * @memberof V1WarehouseFBSCreateReturnPointListResponse + */ + is_selected_point_available?: boolean; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponse + */ + last_id?: number; + /** + * Список пунктов возврата. + * @type {Array} + * @memberof V1WarehouseFBSCreateReturnPointListResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponse interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponse(value: object): value is V1WarehouseFBSCreateReturnPointListResponse; +export declare function V1WarehouseFBSCreateReturnPointListResponseFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponse; +export declare function V1WarehouseFBSCreateReturnPointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponse; +export declare function V1WarehouseFBSCreateReturnPointListResponseToJSON(value?: V1WarehouseFBSCreateReturnPointListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponse.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponse.js new file mode 100644 index 0000000..9be8fc9 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON, V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON, } from './V1WarehouseFBSCreateReturnPointListResponseReturnPoint'; +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponse interface. + */ +export function instanceOfV1WarehouseFBSCreateReturnPointListResponse(value) { + return true; +} +export function V1WarehouseFBSCreateReturnPointListResponseFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'is_selected_point_available': json['is_selected_point_available'] == null ? undefined : json['is_selected_point_available'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'points': json['points'] == null ? undefined : (json['points'].map(V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON)), + }; +} +export function V1WarehouseFBSCreateReturnPointListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'is_selected_point_available': value['is_selected_point_available'], + 'last_id': value['last_id'], + 'points': value['points'] == null ? undefined : (value['points'].map(V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.d.ts new file mode 100644 index 0000000..0ef8846 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты пункта возврата. + * @export + * @interface V1WarehouseFBSCreateReturnPointListResponseCoordinates + */ +export interface V1WarehouseFBSCreateReturnPointListResponseCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponseCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponseCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseCoordinates interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseCoordinates(value: object): value is V1WarehouseFBSCreateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseCoordinates | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.js new file mode 100644 index 0000000..bf7485d --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseCoordinates interface. + */ +export function instanceOfV1WarehouseFBSCreateReturnPointListResponseCoordinates(value) { + return true; +} +export function V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.d.ts new file mode 100644 index 0000000..f02a7a3 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListResponseCoordinates } from './V1WarehouseFBSCreateReturnPointListResponseCoordinates'; +import type { V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum } from './V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum'; +import type { V1WarehouseFBSCreateReturnPointListResponseWorkingDays } from './V1WarehouseFBSCreateReturnPointListResponseWorkingDays'; +/** + * + * @export + * @interface V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ +export interface V1WarehouseFBSCreateReturnPointListResponseReturnPoint { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + address?: string; + /** + * + * @type {V1WarehouseFBSCreateReturnPointListResponseCoordinates} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + coordinates?: V1WarehouseFBSCreateReturnPointListResponseCoordinates; + /** + * Идентификатор пункта возврата. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + id?: number; + /** + * Название пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + name?: string; + /** + * + * @type {V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + type?: V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum; + /** + * Смещение часового пояса от UTC-0 в минутах. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + utc_offset?: number; + /** + * Рабочие дни пункта возврата. + * @type {Array} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseReturnPoint interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPoint(value: object): value is V1WarehouseFBSCreateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseReturnPoint | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.js new file mode 100644 index 0000000..7ba7b08 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON, V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON, } from './V1WarehouseFBSCreateReturnPointListResponseCoordinates'; +import { V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON, V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON, } from './V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum'; +import { V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON, V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON, } from './V1WarehouseFBSCreateReturnPointListResponseWorkingDays'; +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseReturnPoint interface. + */ +export function instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPoint(value) { + return true; +} +export function V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON(json['coordinates']), + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON(json['type']), + 'utc_offset': json['utc_offset'] == null ? undefined : json['utc_offset'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON)), + }; +} +export function V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON(value['coordinates']), + 'id': value['id'], + 'name': value['name'], + 'type': V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON(value['type']), + 'utc_offset': value['utc_offset'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..6110200 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum = typeof V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum[keyof typeof V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.js new file mode 100644 index 0000000..241af45 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export const V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum(value) { + for (const key in V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum, key)) { + if (V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.d.ts new file mode 100644 index 0000000..c8c0c91 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum } from './V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseFBSCreateReturnPointListResponseWorkingDays + */ +export interface V1WarehouseFBSCreateReturnPointListResponseWorkingDays { + /** + * + * @type {V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum} + * @memberof V1WarehouseFBSCreateReturnPointListResponseWorkingDays + */ + day?: V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum; + /** + * Время начала. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListResponseWorkingDays + */ + from?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListResponseWorkingDays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseWorkingDays interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDays(value: object): value is V1WarehouseFBSCreateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseWorkingDays | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.js new file mode 100644 index 0000000..c0270dd --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON, V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON, } from './V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum'; +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseWorkingDays interface. + */ +export function instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDays(value) { + return true; +} +export function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON(json['day']), + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.d.ts b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..cc14582 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum = typeof V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum[keyof typeof V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.js b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.js new file mode 100644 index 0000000..6a70be6 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export const V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum(value) { + for (const key in V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum, key)) { + if (V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json, false); +} +export function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoRequest.d.ts b/dist/esm/models/V1WarehouseFBSReturnMileInfoRequest.d.ts new file mode 100644 index 0000000..9fbd9a9 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFBSReturnMileInfoRequest + */ +export interface V1WarehouseFBSReturnMileInfoRequest { + /** + * Идентификаторы складов. + * @type {Array} + * @memberof V1WarehouseFBSReturnMileInfoRequest + */ + warehouse_ids: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoRequest interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoRequest(value: object): value is V1WarehouseFBSReturnMileInfoRequest; +export declare function V1WarehouseFBSReturnMileInfoRequestFromJSON(json: any): V1WarehouseFBSReturnMileInfoRequest; +export declare function V1WarehouseFBSReturnMileInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoRequest; +export declare function V1WarehouseFBSReturnMileInfoRequestToJSON(value?: V1WarehouseFBSReturnMileInfoRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoRequest.js b/dist/esm/models/V1WarehouseFBSReturnMileInfoRequest.js new file mode 100644 index 0000000..1715ca5 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoRequest interface. + */ +export function instanceOfV1WarehouseFBSReturnMileInfoRequest(value) { + if (!('warehouse_ids' in value) || value['warehouse_ids'] === undefined) + return false; + return true; +} +export function V1WarehouseFBSReturnMileInfoRequestFromJSON(json) { + return V1WarehouseFBSReturnMileInfoRequestFromJSONTyped(json, false); +} +export function V1WarehouseFBSReturnMileInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_ids': json['warehouse_ids'], + }; +} +export function V1WarehouseFBSReturnMileInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponse.d.ts b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponse.d.ts new file mode 100644 index 0000000..03ffd39 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings } from './WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings'; +/** + * + * @export + * @interface V1WarehouseFBSReturnMileInfoResponse + */ +export interface V1WarehouseFBSReturnMileInfoResponse { + /** + * Информация о возвратной миле на складе. + * @type {Array} + * @memberof V1WarehouseFBSReturnMileInfoResponse + */ + return_mile_settings?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponse interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponse(value: object): value is V1WarehouseFBSReturnMileInfoResponse; +export declare function V1WarehouseFBSReturnMileInfoResponseFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponse; +export declare function V1WarehouseFBSReturnMileInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponse; +export declare function V1WarehouseFBSReturnMileInfoResponseToJSON(value?: V1WarehouseFBSReturnMileInfoResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponse.js b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponse.js new file mode 100644 index 0000000..c8fa134 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON, WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON, } from './WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings'; +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponse interface. + */ +export function instanceOfV1WarehouseFBSReturnMileInfoResponse(value) { + return true; +} +export function V1WarehouseFBSReturnMileInfoResponseFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseFromJSONTyped(json, false); +} +export function V1WarehouseFBSReturnMileInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'return_mile_settings': json['return_mile_settings'] == null ? undefined : (json['return_mile_settings'].map(WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON)), + }; +} +export function V1WarehouseFBSReturnMileInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'return_mile_settings': value['return_mile_settings'] == null ? undefined : (value['return_mile_settings'].map(WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.d.ts b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.d.ts new file mode 100644 index 0000000..b1a6ae6 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты пункта возврата. + * @export + * @interface V1WarehouseFBSReturnMileInfoResponseCoordinates + */ +export interface V1WarehouseFBSReturnMileInfoResponseCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFBSReturnMileInfoResponseCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFBSReturnMileInfoResponseCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseCoordinates interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseCoordinates(value: object): value is V1WarehouseFBSReturnMileInfoResponseCoordinates; +export declare function V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseCoordinates; +export declare function V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseCoordinates; +export declare function V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON(value?: V1WarehouseFBSReturnMileInfoResponseCoordinates | null): any; diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.js b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.js new file mode 100644 index 0000000..2629f62 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseCoordinates interface. + */ +export function instanceOfV1WarehouseFBSReturnMileInfoResponseCoordinates(value) { + return true; +} +export function V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSONTyped(json, false); +} +export function V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.d.ts b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.d.ts new file mode 100644 index 0000000..e3aea34 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum } from './V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum'; +import type { V1WarehouseFBSReturnMileInfoResponseWorkingDays } from './V1WarehouseFBSReturnMileInfoResponseWorkingDays'; +import type { V1WarehouseFBSReturnMileInfoResponseCoordinates } from './V1WarehouseFBSReturnMileInfoResponseCoordinates'; +/** + * Информация о пункте возврата. + * @export + * @interface V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ +export interface V1WarehouseFBSReturnMileInfoResponseReturnPoint { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + address?: string; + /** + * + * @type {V1WarehouseFBSReturnMileInfoResponseCoordinates} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + coordinates?: V1WarehouseFBSReturnMileInfoResponseCoordinates; + /** + * Идентификатор пункта возврата. + * @type {number} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + id?: number; + /** + * Название пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + name?: string; + /** + * + * @type {V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + type?: V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum; + /** + * Смещение часового пояса от UTC-0 в минутах. + * @type {number} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + utc_offset?: number; + /** + * Рабочие дни пункта возврата. + * @type {Array} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseReturnPoint interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPoint(value: object): value is V1WarehouseFBSReturnMileInfoResponseReturnPoint; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseReturnPoint; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseReturnPoint; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON(value?: V1WarehouseFBSReturnMileInfoResponseReturnPoint | null): any; diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.js b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.js new file mode 100644 index 0000000..14eba76 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON, V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON, } from './V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum'; +import { V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON, V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON, } from './V1WarehouseFBSReturnMileInfoResponseWorkingDays'; +import { V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON, V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON, } from './V1WarehouseFBSReturnMileInfoResponseCoordinates'; +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseReturnPoint interface. + */ +export function instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPoint(value) { + return true; +} +export function V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSONTyped(json, false); +} +export function V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON(json['coordinates']), + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON(json['type']), + 'utc_offset': json['utc_offset'] == null ? undefined : json['utc_offset'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON)), + }; +} +export function V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON(value['coordinates']), + 'id': value['id'], + 'name': value['name'], + 'type': V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON(value['type']), + 'utc_offset': value['utc_offset'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.d.ts b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..56029ef --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum = typeof V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum[keyof typeof V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON(value?: V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.js b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.js new file mode 100644 index 0000000..a9c9fa0 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export const V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum(value) { + for (const key in V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum, key)) { + if (V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSONTyped(json, false); +} +export function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.d.ts b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.d.ts new file mode 100644 index 0000000..3e478fa --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum } from './V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseFBSReturnMileInfoResponseWorkingDays + */ +export interface V1WarehouseFBSReturnMileInfoResponseWorkingDays { + /** + * + * @type {V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum} + * @memberof V1WarehouseFBSReturnMileInfoResponseWorkingDays + */ + day?: V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum; + /** + * Время начала. + * @type {string} + * @memberof V1WarehouseFBSReturnMileInfoResponseWorkingDays + */ + from?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1WarehouseFBSReturnMileInfoResponseWorkingDays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseWorkingDays interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDays(value: object): value is V1WarehouseFBSReturnMileInfoResponseWorkingDays; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseWorkingDays; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseWorkingDays; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON(value?: V1WarehouseFBSReturnMileInfoResponseWorkingDays | null): any; diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.js b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.js new file mode 100644 index 0000000..70f8629 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON, V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON, } from './V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum'; +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseWorkingDays interface. + */ +export function instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDays(value) { + return true; +} +export function V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSONTyped(json, false); +} +export function V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON(json['day']), + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.d.ts b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..be0669b --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum = typeof V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum[keyof typeof V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON(value?: V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.js b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.js new file mode 100644 index 0000000..0fb56e3 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export const V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum(value) { + for (const key in V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum, key)) { + if (V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSONTyped(json, false); +} +export function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequest.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequest.d.ts new file mode 100644 index 0000000..1dfd5e2 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequest.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListRequestSearch } from './V1WarehouseFBSUpdateReturnPointListRequestSearch'; +/** + * + * @export + * @interface V1WarehouseFBSUpdateReturnPointListRequest + */ +export interface V1WarehouseFBSUpdateReturnPointListRequest { + /** + * Идентификатор выбранной точки отгрузки на складе. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + current_dropoff_point_id?: number; + /** + * Установленный пункт возврата. Получите значение параметра методом [/v1/warehouse/fbs/return-mile/info](#operation/WarehouseFBSReturnMileInfo). + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + current_return_point_id?: number; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + last_id?: number; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + limit: number; + /** + * + * @type {V1WarehouseFBSUpdateReturnPointListRequestSearch} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + search?: V1WarehouseFBSUpdateReturnPointListRequestSearch; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListRequest interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListRequest(value: object): value is V1WarehouseFBSUpdateReturnPointListRequest; +export declare function V1WarehouseFBSUpdateReturnPointListRequestFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListRequest; +export declare function V1WarehouseFBSUpdateReturnPointListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListRequest; +export declare function V1WarehouseFBSUpdateReturnPointListRequestToJSON(value?: V1WarehouseFBSUpdateReturnPointListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequest.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequest.js new file mode 100644 index 0000000..9632863 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequest.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON, V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON, } from './V1WarehouseFBSUpdateReturnPointListRequestSearch'; +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListRequest interface. + */ +export function instanceOfV1WarehouseFBSUpdateReturnPointListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseFBSUpdateReturnPointListRequestFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListRequestFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_dropoff_point_id': json['current_dropoff_point_id'] == null ? undefined : json['current_dropoff_point_id'], + 'current_return_point_id': json['current_return_point_id'] == null ? undefined : json['current_return_point_id'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'search': json['search'] == null ? undefined : V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON(json['search']), + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseFBSUpdateReturnPointListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_dropoff_point_id': value['current_dropoff_point_id'], + 'current_return_point_id': value['current_return_point_id'], + 'last_id': value['last_id'], + 'limit': value['limit'], + 'search': V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON(value['search']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.d.ts new file mode 100644 index 0000000..9ae2cb6 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum } from './V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum'; +/** + * Параметры поиска. + * @export + * @interface V1WarehouseFBSUpdateReturnPointListRequestSearch + */ +export interface V1WarehouseFBSUpdateReturnPointListRequestSearch { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListRequestSearch + */ + address?: string; + /** + * Тип пункта возврата: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @type {Array} + * @memberof V1WarehouseFBSUpdateReturnPointListRequestSearch + */ + types?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListRequestSearch interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearch(value: object): value is V1WarehouseFBSUpdateReturnPointListRequestSearch; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListRequestSearch; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListRequestSearch; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON(value?: V1WarehouseFBSUpdateReturnPointListRequestSearch | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.js new file mode 100644 index 0000000..bb6e56c --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON, V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON, } from './V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum'; +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListRequestSearch interface. + */ +export function instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearch(value) { + return true; +} +export function V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'types': json['types'] == null ? undefined : (json['types'].map(V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON)), + }; +} +export function V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'types': value['types'] == null ? undefined : (value['types'].map(V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..93e3df7 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum = typeof V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum[keyof typeof V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON(value?: V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.js new file mode 100644 index 0000000..4d2a391 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum(value) { + for (const key in V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum, key)) { + if (V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponse.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponse.d.ts new file mode 100644 index 0000000..baec02b --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListResponseReturnPoint } from './V1WarehouseFBSUpdateReturnPointListResponseReturnPoint'; +/** + * + * @export + * @interface V1WarehouseFBSUpdateReturnPointListResponse + */ +export interface V1WarehouseFBSUpdateReturnPointListResponse { + /** + * Признак, что в ответе вернули не все пункты возврата. + * @type {boolean} + * @memberof V1WarehouseFBSUpdateReturnPointListResponse + */ + has_next?: boolean; + /** + * Признак доступности пункта возврата для выбора. + * @type {boolean} + * @memberof V1WarehouseFBSUpdateReturnPointListResponse + */ + is_selected_point_available?: boolean; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponse + */ + last_id?: number; + /** + * Список пунктов возврата. + * @type {Array} + * @memberof V1WarehouseFBSUpdateReturnPointListResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponse interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponse(value: object): value is V1WarehouseFBSUpdateReturnPointListResponse; +export declare function V1WarehouseFBSUpdateReturnPointListResponseFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponse; +export declare function V1WarehouseFBSUpdateReturnPointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponse; +export declare function V1WarehouseFBSUpdateReturnPointListResponseToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponse.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponse.js new file mode 100644 index 0000000..104d9e7 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON, V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON, } from './V1WarehouseFBSUpdateReturnPointListResponseReturnPoint'; +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponse interface. + */ +export function instanceOfV1WarehouseFBSUpdateReturnPointListResponse(value) { + return true; +} +export function V1WarehouseFBSUpdateReturnPointListResponseFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'is_selected_point_available': json['is_selected_point_available'] == null ? undefined : json['is_selected_point_available'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'points': json['points'] == null ? undefined : (json['points'].map(V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON)), + }; +} +export function V1WarehouseFBSUpdateReturnPointListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'is_selected_point_available': value['is_selected_point_available'], + 'last_id': value['last_id'], + 'points': value['points'] == null ? undefined : (value['points'].map(V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.d.ts new file mode 100644 index 0000000..9d018db --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты пункта возврата. + * @export + * @interface V1WarehouseFBSUpdateReturnPointListResponseCoordinates + */ +export interface V1WarehouseFBSUpdateReturnPointListResponseCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseCoordinates interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseCoordinates(value: object): value is V1WarehouseFBSUpdateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseCoordinates | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.js new file mode 100644 index 0000000..37ecc17 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseCoordinates interface. + */ +export function instanceOfV1WarehouseFBSUpdateReturnPointListResponseCoordinates(value) { + return true; +} +export function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.d.ts new file mode 100644 index 0000000..41a4a3c --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum } from './V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum'; +import type { V1WarehouseFBSUpdateReturnPointListResponseWorkingDays } from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDays'; +import type { V1WarehouseFBSUpdateReturnPointListResponseCoordinates } from './V1WarehouseFBSUpdateReturnPointListResponseCoordinates'; +/** + * + * @export + * @interface V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ +export interface V1WarehouseFBSUpdateReturnPointListResponseReturnPoint { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + address?: string; + /** + * + * @type {V1WarehouseFBSUpdateReturnPointListResponseCoordinates} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + coordinates?: V1WarehouseFBSUpdateReturnPointListResponseCoordinates; + /** + * Идентификатор пункта возврата. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + id?: number; + /** + * Название пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + name?: string; + /** + * + * @type {V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + type?: V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum; + /** + * Смещение часового пояса от UTC-0 в минутах. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + utc_offset?: number; + /** + * Рабочие дни пункта. + * @type {Array} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseReturnPoint interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPoint(value: object): value is V1WarehouseFBSUpdateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseReturnPoint | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.js new file mode 100644 index 0000000..42b1716 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON, V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON, } from './V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum'; +import { V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON, V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON, } from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDays'; +import { V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON, V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON, } from './V1WarehouseFBSUpdateReturnPointListResponseCoordinates'; +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseReturnPoint interface. + */ +export function instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPoint(value) { + return true; +} +export function V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON(json['coordinates']), + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON(json['type']), + 'utc_offset': json['utc_offset'] == null ? undefined : json['utc_offset'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON)), + }; +} +export function V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON(value['coordinates']), + 'id': value['id'], + 'name': value['name'], + 'type': V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON(value['type']), + 'utc_offset': value['utc_offset'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..c38889c --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum = typeof V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum[keyof typeof V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.js new file mode 100644 index 0000000..d0a73c0 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export const V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +export function instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum(value) { + for (const key in V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum, key)) { + if (V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.d.ts new file mode 100644 index 0000000..22cf505 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum } from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseFBSUpdateReturnPointListResponseWorkingDays + */ +export interface V1WarehouseFBSUpdateReturnPointListResponseWorkingDays { + /** + * + * @type {V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseWorkingDays + */ + day?: V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum; + /** + * Время начала. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseWorkingDays + */ + from?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseWorkingDays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseWorkingDays interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDays(value: object): value is V1WarehouseFBSUpdateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseWorkingDays | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.js new file mode 100644 index 0000000..53aa042 --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON, V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON, } from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum'; +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseWorkingDays interface. + */ +export function instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDays(value) { + return true; +} +export function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON(json['day']), + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.d.ts b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..90bc62f --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum = typeof V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum[keyof typeof V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.js b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.js new file mode 100644 index 0000000..169c04e --- /dev/null +++ b/dist/esm/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export const V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum(value) { + for (const key in V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum, key)) { + if (V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json, false); +} +export function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFboSellerListResponse.d.ts b/dist/esm/models/V1WarehouseFboSellerListResponse.d.ts new file mode 100644 index 0000000..da55013 --- /dev/null +++ b/dist/esm/models/V1WarehouseFboSellerListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFboSellerListResponseWarehouse } from './V1WarehouseFboSellerListResponseWarehouse'; +/** + * + * @export + * @interface V1WarehouseFboSellerListResponse + */ +export interface V1WarehouseFboSellerListResponse { + /** + * Список складов продавца. + * @type {Array} + * @memberof V1WarehouseFboSellerListResponse + */ + warehouses?: Array; +} +/** + * Check if a given object implements the V1WarehouseFboSellerListResponse interface. + */ +export declare function instanceOfV1WarehouseFboSellerListResponse(value: object): value is V1WarehouseFboSellerListResponse; +export declare function V1WarehouseFboSellerListResponseFromJSON(json: any): V1WarehouseFboSellerListResponse; +export declare function V1WarehouseFboSellerListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFboSellerListResponse; +export declare function V1WarehouseFboSellerListResponseToJSON(value?: V1WarehouseFboSellerListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFboSellerListResponse.js b/dist/esm/models/V1WarehouseFboSellerListResponse.js new file mode 100644 index 0000000..6d3bdd4 --- /dev/null +++ b/dist/esm/models/V1WarehouseFboSellerListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFboSellerListResponseWarehouseFromJSON, V1WarehouseFboSellerListResponseWarehouseToJSON, } from './V1WarehouseFboSellerListResponseWarehouse'; +/** + * Check if a given object implements the V1WarehouseFboSellerListResponse interface. + */ +export function instanceOfV1WarehouseFboSellerListResponse(value) { + return true; +} +export function V1WarehouseFboSellerListResponseFromJSON(json) { + return V1WarehouseFboSellerListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFboSellerListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(V1WarehouseFboSellerListResponseWarehouseFromJSON)), + }; +} +export function V1WarehouseFboSellerListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(V1WarehouseFboSellerListResponseWarehouseToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFboSellerListResponseWarehouse.d.ts b/dist/esm/models/V1WarehouseFboSellerListResponseWarehouse.d.ts new file mode 100644 index 0000000..9452384 --- /dev/null +++ b/dist/esm/models/V1WarehouseFboSellerListResponseWarehouse.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseAddress } from './WarehouseAddress'; +import type { WarehouseContacts } from './WarehouseContacts'; +import type { WarehouseWorkingDay } from './WarehouseWorkingDay'; +/** + * + * @export + * @interface V1WarehouseFboSellerListResponseWarehouse + */ +export interface V1WarehouseFboSellerListResponseWarehouse { + /** + * + * @type {WarehouseAddress} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + address?: WarehouseAddress; + /** + * + * @type {WarehouseContacts} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + contacts?: WarehouseContacts; + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + courier_comment?: string; + /** + * `true`, если склад активный. + * + * @type {boolean} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + is_active?: boolean; + /** + * `true`, если доступна отгрузка курьером. + * + * @type {boolean} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + is_pickup?: boolean; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + seller_warehouse_id?: number; + /** + * Название склада продавца. + * @type {string} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + seller_warehouse_name?: string; + /** + * Рабочие дни склада продавца. + * @type {Array} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseFboSellerListResponseWarehouse interface. + */ +export declare function instanceOfV1WarehouseFboSellerListResponseWarehouse(value: object): value is V1WarehouseFboSellerListResponseWarehouse; +export declare function V1WarehouseFboSellerListResponseWarehouseFromJSON(json: any): V1WarehouseFboSellerListResponseWarehouse; +export declare function V1WarehouseFboSellerListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFboSellerListResponseWarehouse; +export declare function V1WarehouseFboSellerListResponseWarehouseToJSON(value?: V1WarehouseFboSellerListResponseWarehouse | null): any; diff --git a/dist/esm/models/V1WarehouseFboSellerListResponseWarehouse.js b/dist/esm/models/V1WarehouseFboSellerListResponseWarehouse.js new file mode 100644 index 0000000..4fb7353 --- /dev/null +++ b/dist/esm/models/V1WarehouseFboSellerListResponseWarehouse.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseAddressFromJSON, WarehouseAddressToJSON, } from './WarehouseAddress'; +import { WarehouseContactsFromJSON, WarehouseContactsToJSON, } from './WarehouseContacts'; +import { WarehouseWorkingDayFromJSON, WarehouseWorkingDayToJSON, } from './WarehouseWorkingDay'; +/** + * Check if a given object implements the V1WarehouseFboSellerListResponseWarehouse interface. + */ +export function instanceOfV1WarehouseFboSellerListResponseWarehouse(value) { + return true; +} +export function V1WarehouseFboSellerListResponseWarehouseFromJSON(json) { + return V1WarehouseFboSellerListResponseWarehouseFromJSONTyped(json, false); +} +export function V1WarehouseFboSellerListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : WarehouseAddressFromJSON(json['address']), + 'contacts': json['contacts'] == null ? undefined : WarehouseContactsFromJSON(json['contacts']), + 'courier_comment': json['courier_comment'] == null ? undefined : json['courier_comment'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'is_pickup': json['is_pickup'] == null ? undefined : json['is_pickup'], + 'seller_warehouse_id': json['seller_warehouse_id'] == null ? undefined : json['seller_warehouse_id'], + 'seller_warehouse_name': json['seller_warehouse_name'] == null ? undefined : json['seller_warehouse_name'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(WarehouseWorkingDayFromJSON)), + }; +} +export function V1WarehouseFboSellerListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': WarehouseAddressToJSON(value['address']), + 'contacts': WarehouseContactsToJSON(value['contacts']), + 'courier_comment': value['courier_comment'], + 'is_active': value['is_active'], + 'is_pickup': value['is_pickup'], + 'seller_warehouse_id': value['seller_warehouse_id'], + 'seller_warehouse_name': value['seller_warehouse_name'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(WarehouseWorkingDayToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.d.ts b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.d.ts new file mode 100644 index 0000000..4089701 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsCreateDropOffTimeslotListRequest + */ +export interface V1WarehouseFbsCreateDropOffTimeslotListRequest { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListRequest + */ + drop_off_point_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsCreateDropOffTimeslotListRequest(value: object): value is V1WarehouseFbsCreateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSON(json: any): V1WarehouseFbsCreateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON(value?: V1WarehouseFbsCreateDropOffTimeslotListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.js b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.js new file mode 100644 index 0000000..99c3492 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListRequest interface. + */ +export function instanceOfV1WarehouseFbsCreateDropOffTimeslotListRequest(value) { + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSON(json) { + return V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSONTyped(json, false); +} +export function V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_point_id': json['drop_off_point_id'], + }; +} +export function V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_point_id': value['drop_off_point_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.d.ts b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.d.ts new file mode 100644 index 0000000..0e43125 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot } from './V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot'; +/** + * + * @export + * @interface V1WarehouseFbsCreateDropOffTimeslotListResponse + */ +export interface V1WarehouseFbsCreateDropOffTimeslotListResponse { + /** + * Список таймслотов. + * @type {Array} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponse + */ + timeslots?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponse(value: object): value is V1WarehouseFbsCreateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON(json: any): V1WarehouseFbsCreateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseToJSON(value?: V1WarehouseFbsCreateDropOffTimeslotListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.js b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.js new file mode 100644 index 0000000..b11d43b --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON, V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON, } from './V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot'; +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListResponse interface. + */ +export function instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponse(value) { + return true; +} +export function V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON(json) { + return V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON)), + }; +} +export function V1WarehouseFbsCreateDropOffTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.d.ts b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.d.ts new file mode 100644 index 0000000..e43c496 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ +export interface V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot { + /** + * Местное время окончания приёма заказа. + * @type {string} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + acceptance_end_time_local?: string; + /** + * Местное время начала приёма заказа. + * @type {string} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + acceptance_start_time_local?: string; + /** + * Время начала таймслота. + * @type {string} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot interface. + */ +export declare function instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot(value: object): value is V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON(json: any): V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON(value?: V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot | null): any; diff --git a/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.js b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.js new file mode 100644 index 0000000..99f2ada --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot interface. + */ +export function instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot(value) { + return true; +} +export function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON(json) { + return V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSONTyped(json, false); +} +export function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'acceptance_end_time_local': json['acceptance_end_time_local'] == null ? undefined : json['acceptance_end_time_local'], + 'acceptance_start_time_local': json['acceptance_start_time_local'] == null ? undefined : json['acceptance_start_time_local'], + 'from': json['from'] == null ? undefined : json['from'], + 'id': json['id'] == null ? undefined : json['id'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'acceptance_end_time_local': value['acceptance_end_time_local'], + 'acceptance_start_time_local': value['acceptance_start_time_local'], + 'from': value['from'], + 'id': value['id'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.d.ts b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.d.ts new file mode 100644 index 0000000..cd6a372 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates } from './V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates'; +/** + * + * @export + * @interface V1WarehouseFbsCreatePickUpTimeslotListRequest + */ +export interface V1WarehouseFbsCreatePickUpTimeslotListRequest { + /** + * + * @type {V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListRequest + */ + address_coordinates: V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; + /** + * Признак крупногабаритного товара. + * @type {boolean} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListRequest + */ + is_kgt: boolean; +} +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequest(value: object): value is V1WarehouseFbsCreatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSON(json: any): V1WarehouseFbsCreatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON(value?: V1WarehouseFbsCreatePickUpTimeslotListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.js b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.js new file mode 100644 index 0000000..9c78073 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON, V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON, } from './V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates'; +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListRequest interface. + */ +export function instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('is_kgt' in value) || value['is_kgt'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSON(json) { + return V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSONTyped(json, false); +} +export function V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON(json['address_coordinates']), + 'is_kgt': json['is_kgt'], + }; +} +export function V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON(value['address_coordinates']), + 'is_kgt': value['is_kgt'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.d.ts b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..7d65aa8 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты склада. + * @export + * @interface V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates + */ +export interface V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates interface. + */ +export declare function instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates(value: object): value is V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON(json: any): V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON(value?: V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates | null): any; diff --git a/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.js b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.js new file mode 100644 index 0000000..bd1daac --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates interface. + */ +export function instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON(json) { + return V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSONTyped(json, false); +} +export function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +export function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.d.ts b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.d.ts new file mode 100644 index 0000000..49c8520 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot } from './V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot'; +/** + * + * @export + * @interface V1WarehouseFbsCreatePickUpTimeslotListResponse + */ +export interface V1WarehouseFbsCreatePickUpTimeslotListResponse { + /** + * Признак поддержки отгрузки pick-up. + * @type {boolean} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponse + */ + is_pickup_supported?: boolean; + /** + * Список таймслотов. + * @type {Array} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponse + */ + timeslots?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponse(value: object): value is V1WarehouseFbsCreatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON(json: any): V1WarehouseFbsCreatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseToJSON(value?: V1WarehouseFbsCreatePickUpTimeslotListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.js b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.js new file mode 100644 index 0000000..eb12527 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON, V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON, } from './V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot'; +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListResponse interface. + */ +export function instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponse(value) { + return true; +} +export function V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON(json) { + return V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_pickup_supported': json['is_pickup_supported'] == null ? undefined : json['is_pickup_supported'], + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON)), + }; +} +export function V1WarehouseFbsCreatePickUpTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_pickup_supported': value['is_pickup_supported'], + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.d.ts b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.d.ts new file mode 100644 index 0000000..0f55c6d --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot + */ +export interface V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot { + /** + * Время начала таймслота. + * @type {string} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot + */ + from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot + */ + id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot interface. + */ +export declare function instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot(value: object): value is V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON(json: any): V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON(value?: V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot | null): any; diff --git a/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.js b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.js new file mode 100644 index 0000000..e9f0101 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot interface. + */ +export function instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot(value) { + return true; +} +export function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON(json) { + return V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSONTyped(json, false); +} +export function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'id': json['id'] == null ? undefined : json['id'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'id': value['id'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsPickUpCourierCancelRequest.d.ts b/dist/esm/models/V1WarehouseFbsPickUpCourierCancelRequest.d.ts new file mode 100644 index 0000000..99b85d2 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpCourierCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsPickUpCourierCancelRequest + */ +export interface V1WarehouseFbsPickUpCourierCancelRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFbsPickUpCourierCancelRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpCourierCancelRequest interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpCourierCancelRequest(value: object): value is V1WarehouseFbsPickUpCourierCancelRequest; +export declare function V1WarehouseFbsPickUpCourierCancelRequestFromJSON(json: any): V1WarehouseFbsPickUpCourierCancelRequest; +export declare function V1WarehouseFbsPickUpCourierCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpCourierCancelRequest; +export declare function V1WarehouseFbsPickUpCourierCancelRequestToJSON(value?: V1WarehouseFbsPickUpCourierCancelRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFbsPickUpCourierCancelRequest.js b/dist/esm/models/V1WarehouseFbsPickUpCourierCancelRequest.js new file mode 100644 index 0000000..a0c5541 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpCourierCancelRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsPickUpCourierCancelRequest interface. + */ +export function instanceOfV1WarehouseFbsPickUpCourierCancelRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsPickUpCourierCancelRequestFromJSON(json) { + return V1WarehouseFbsPickUpCourierCancelRequestFromJSONTyped(json, false); +} +export function V1WarehouseFbsPickUpCourierCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseFbsPickUpCourierCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsPickUpCourierCreateRequest.d.ts b/dist/esm/models/V1WarehouseFbsPickUpCourierCreateRequest.d.ts new file mode 100644 index 0000000..d65ac09 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpCourierCreateRequest.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsPickUpCourierCreateRequest + */ +export interface V1WarehouseFbsPickUpCourierCreateRequest { + /** + * Идентификатор склада. + * + * Чтобы получить список складов для планирования выездов, используйте [/v1/warehouse/fbs/pickup/planning/list](#operation/WarehouseFbsPickUpPlanningList). + * + * @type {number} + * @memberof V1WarehouseFbsPickUpCourierCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpCourierCreateRequest interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpCourierCreateRequest(value: object): value is V1WarehouseFbsPickUpCourierCreateRequest; +export declare function V1WarehouseFbsPickUpCourierCreateRequestFromJSON(json: any): V1WarehouseFbsPickUpCourierCreateRequest; +export declare function V1WarehouseFbsPickUpCourierCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpCourierCreateRequest; +export declare function V1WarehouseFbsPickUpCourierCreateRequestToJSON(value?: V1WarehouseFbsPickUpCourierCreateRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFbsPickUpCourierCreateRequest.js b/dist/esm/models/V1WarehouseFbsPickUpCourierCreateRequest.js new file mode 100644 index 0000000..99f575e --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpCourierCreateRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsPickUpCourierCreateRequest interface. + */ +export function instanceOfV1WarehouseFbsPickUpCourierCreateRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsPickUpCourierCreateRequestFromJSON(json) { + return V1WarehouseFbsPickUpCourierCreateRequestFromJSONTyped(json, false); +} +export function V1WarehouseFbsPickUpCourierCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseFbsPickUpCourierCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequest.d.ts b/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequest.d.ts new file mode 100644 index 0000000..7f14703 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsPickUpHistoryListRequestFilter } from './V1WarehouseFbsPickUpHistoryListRequestFilter'; +/** + * + * @export + * @interface V1WarehouseFbsPickUpHistoryListRequest + */ +export interface V1WarehouseFbsPickUpHistoryListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1WarehouseFbsPickUpHistoryListRequest + */ + cursor?: string; + /** + * + * @type {V1WarehouseFbsPickUpHistoryListRequestFilter} + * @memberof V1WarehouseFbsPickUpHistoryListRequest + */ + filter?: V1WarehouseFbsPickUpHistoryListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1WarehouseFbsPickUpHistoryListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpHistoryListRequest(value: object): value is V1WarehouseFbsPickUpHistoryListRequest; +export declare function V1WarehouseFbsPickUpHistoryListRequestFromJSON(json: any): V1WarehouseFbsPickUpHistoryListRequest; +export declare function V1WarehouseFbsPickUpHistoryListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpHistoryListRequest; +export declare function V1WarehouseFbsPickUpHistoryListRequestToJSON(value?: V1WarehouseFbsPickUpHistoryListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequest.js b/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequest.js new file mode 100644 index 0000000..cea6f15 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON, V1WarehouseFbsPickUpHistoryListRequestFilterToJSON, } from './V1WarehouseFbsPickUpHistoryListRequestFilter'; +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListRequest interface. + */ +export function instanceOfV1WarehouseFbsPickUpHistoryListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsPickUpHistoryListRequestFromJSON(json) { + return V1WarehouseFbsPickUpHistoryListRequestFromJSONTyped(json, false); +} +export function V1WarehouseFbsPickUpHistoryListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function V1WarehouseFbsPickUpHistoryListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': V1WarehouseFbsPickUpHistoryListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequestFilter.d.ts b/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequestFilter.d.ts new file mode 100644 index 0000000..28e9704 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequestFilter.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1WarehouseFbsPickUpHistoryListRequestFilter + */ +export interface V1WarehouseFbsPickUpHistoryListRequestFilter { + /** + * Дата отгрузки. + * @type {string} + * @memberof V1WarehouseFbsPickUpHistoryListRequestFilter + */ + planned_date?: string; + /** + * Идентификаторы складов. + * @type {Array} + * @memberof V1WarehouseFbsPickUpHistoryListRequestFilter + */ + warehouse_id?: Array; + /** + * `true`, если отгрузка запланирована. + * + * @type {boolean} + * @memberof V1WarehouseFbsPickUpHistoryListRequestFilter + */ + was_planned?: boolean; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListRequestFilter interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpHistoryListRequestFilter(value: object): value is V1WarehouseFbsPickUpHistoryListRequestFilter; +export declare function V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON(json: any): V1WarehouseFbsPickUpHistoryListRequestFilter; +export declare function V1WarehouseFbsPickUpHistoryListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpHistoryListRequestFilter; +export declare function V1WarehouseFbsPickUpHistoryListRequestFilterToJSON(value?: V1WarehouseFbsPickUpHistoryListRequestFilter | null): any; diff --git a/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequestFilter.js b/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequestFilter.js new file mode 100644 index 0000000..b7ddf45 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpHistoryListRequestFilter.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListRequestFilter interface. + */ +export function instanceOfV1WarehouseFbsPickUpHistoryListRequestFilter(value) { + return true; +} +export function V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON(json) { + return V1WarehouseFbsPickUpHistoryListRequestFilterFromJSONTyped(json, false); +} +export function V1WarehouseFbsPickUpHistoryListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'planned_date': json['planned_date'] == null ? undefined : json['planned_date'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'was_planned': json['was_planned'] == null ? undefined : json['was_planned'], + }; +} +export function V1WarehouseFbsPickUpHistoryListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'planned_date': value['planned_date'], + 'warehouse_id': value['warehouse_id'], + 'was_planned': value['was_planned'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponse.d.ts b/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponse.d.ts new file mode 100644 index 0000000..f7e1f69 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsPickUpHistoryListResponseResult } from './V1WarehouseFbsPickUpHistoryListResponseResult'; +/** + * + * @export + * @interface V1WarehouseFbsPickUpHistoryListResponse + */ +export interface V1WarehouseFbsPickUpHistoryListResponse { + /** + * + * @type {V1WarehouseFbsPickUpHistoryListResponseResult} + * @memberof V1WarehouseFbsPickUpHistoryListResponse + */ + result?: V1WarehouseFbsPickUpHistoryListResponseResult; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpHistoryListResponse(value: object): value is V1WarehouseFbsPickUpHistoryListResponse; +export declare function V1WarehouseFbsPickUpHistoryListResponseFromJSON(json: any): V1WarehouseFbsPickUpHistoryListResponse; +export declare function V1WarehouseFbsPickUpHistoryListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpHistoryListResponse; +export declare function V1WarehouseFbsPickUpHistoryListResponseToJSON(value?: V1WarehouseFbsPickUpHistoryListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponse.js b/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponse.js new file mode 100644 index 0000000..befc50f --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsPickUpHistoryListResponseResultFromJSON, V1WarehouseFbsPickUpHistoryListResponseResultToJSON, } from './V1WarehouseFbsPickUpHistoryListResponseResult'; +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListResponse interface. + */ +export function instanceOfV1WarehouseFbsPickUpHistoryListResponse(value) { + return true; +} +export function V1WarehouseFbsPickUpHistoryListResponseFromJSON(json) { + return V1WarehouseFbsPickUpHistoryListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFbsPickUpHistoryListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1WarehouseFbsPickUpHistoryListResponseResultFromJSON(json['result']), + }; +} +export function V1WarehouseFbsPickUpHistoryListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1WarehouseFbsPickUpHistoryListResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponseResult.d.ts b/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponseResult.d.ts new file mode 100644 index 0000000..8a92231 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseFbsPickUpHistoryListResponseHistoryEntity } from './WarehouseFbsPickUpHistoryListResponseHistoryEntity'; +/** + * Результат метода. + * @export + * @interface V1WarehouseFbsPickUpHistoryListResponseResult + */ +export interface V1WarehouseFbsPickUpHistoryListResponseResult { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1WarehouseFbsPickUpHistoryListResponseResult + */ + cursor?: string; + /** + * История отгрузок. + * @type {Array} + * @memberof V1WarehouseFbsPickUpHistoryListResponseResult + */ + history?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListResponseResult interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpHistoryListResponseResult(value: object): value is V1WarehouseFbsPickUpHistoryListResponseResult; +export declare function V1WarehouseFbsPickUpHistoryListResponseResultFromJSON(json: any): V1WarehouseFbsPickUpHistoryListResponseResult; +export declare function V1WarehouseFbsPickUpHistoryListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpHistoryListResponseResult; +export declare function V1WarehouseFbsPickUpHistoryListResponseResultToJSON(value?: V1WarehouseFbsPickUpHistoryListResponseResult | null): any; diff --git a/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponseResult.js b/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponseResult.js new file mode 100644 index 0000000..8c790d4 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpHistoryListResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON, WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON, } from './WarehouseFbsPickUpHistoryListResponseHistoryEntity'; +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListResponseResult interface. + */ +export function instanceOfV1WarehouseFbsPickUpHistoryListResponseResult(value) { + return true; +} +export function V1WarehouseFbsPickUpHistoryListResponseResultFromJSON(json) { + return V1WarehouseFbsPickUpHistoryListResponseResultFromJSONTyped(json, false); +} +export function V1WarehouseFbsPickUpHistoryListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'history': json['history'] == null ? undefined : (json['history'].map(WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON)), + }; +} +export function V1WarehouseFbsPickUpHistoryListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'history': value['history'] == null ? undefined : (value['history'].map(WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponse.d.ts b/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponse.d.ts new file mode 100644 index 0000000..82eabde --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsPickUpPlanningListResponseResult } from './V1WarehouseFbsPickUpPlanningListResponseResult'; +/** + * + * @export + * @interface V1WarehouseFbsPickUpPlanningListResponse + */ +export interface V1WarehouseFbsPickUpPlanningListResponse { + /** + * + * @type {V1WarehouseFbsPickUpPlanningListResponseResult} + * @memberof V1WarehouseFbsPickUpPlanningListResponse + */ + result?: V1WarehouseFbsPickUpPlanningListResponseResult; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpPlanningListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpPlanningListResponse(value: object): value is V1WarehouseFbsPickUpPlanningListResponse; +export declare function V1WarehouseFbsPickUpPlanningListResponseFromJSON(json: any): V1WarehouseFbsPickUpPlanningListResponse; +export declare function V1WarehouseFbsPickUpPlanningListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpPlanningListResponse; +export declare function V1WarehouseFbsPickUpPlanningListResponseToJSON(value?: V1WarehouseFbsPickUpPlanningListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponse.js b/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponse.js new file mode 100644 index 0000000..9622d14 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsPickUpPlanningListResponseResultFromJSON, V1WarehouseFbsPickUpPlanningListResponseResultToJSON, } from './V1WarehouseFbsPickUpPlanningListResponseResult'; +/** + * Check if a given object implements the V1WarehouseFbsPickUpPlanningListResponse interface. + */ +export function instanceOfV1WarehouseFbsPickUpPlanningListResponse(value) { + return true; +} +export function V1WarehouseFbsPickUpPlanningListResponseFromJSON(json) { + return V1WarehouseFbsPickUpPlanningListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFbsPickUpPlanningListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V1WarehouseFbsPickUpPlanningListResponseResultFromJSON(json['result']), + }; +} +export function V1WarehouseFbsPickUpPlanningListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V1WarehouseFbsPickUpPlanningListResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponseResult.d.ts b/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponseResult.d.ts new file mode 100644 index 0000000..d036e6a --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseFbsPickUpPlanningListResponseResultWarehouse } from './WarehouseFbsPickUpPlanningListResponseResultWarehouse'; +/** + * Список складов. + * @export + * @interface V1WarehouseFbsPickUpPlanningListResponseResult + */ +export interface V1WarehouseFbsPickUpPlanningListResponseResult { + /** + * Информация о складах. + * @type {Array} + * @memberof V1WarehouseFbsPickUpPlanningListResponseResult + */ + warehouses?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpPlanningListResponseResult interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpPlanningListResponseResult(value: object): value is V1WarehouseFbsPickUpPlanningListResponseResult; +export declare function V1WarehouseFbsPickUpPlanningListResponseResultFromJSON(json: any): V1WarehouseFbsPickUpPlanningListResponseResult; +export declare function V1WarehouseFbsPickUpPlanningListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpPlanningListResponseResult; +export declare function V1WarehouseFbsPickUpPlanningListResponseResultToJSON(value?: V1WarehouseFbsPickUpPlanningListResponseResult | null): any; diff --git a/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponseResult.js b/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponseResult.js new file mode 100644 index 0000000..7ce9276 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsPickUpPlanningListResponseResult.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON, WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON, } from './WarehouseFbsPickUpPlanningListResponseResultWarehouse'; +/** + * Check if a given object implements the V1WarehouseFbsPickUpPlanningListResponseResult interface. + */ +export function instanceOfV1WarehouseFbsPickUpPlanningListResponseResult(value) { + return true; +} +export function V1WarehouseFbsPickUpPlanningListResponseResultFromJSON(json) { + return V1WarehouseFbsPickUpPlanningListResponseResultFromJSONTyped(json, false); +} +export function V1WarehouseFbsPickUpPlanningListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON)), + }; +} +export function V1WarehouseFbsPickUpPlanningListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsReturnMileCheckRequest.d.ts b/dist/esm/models/V1WarehouseFbsReturnMileCheckRequest.d.ts new file mode 100644 index 0000000..3785c6e --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsReturnMileCheckRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum } from './V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum'; +/** + * + * @export + * @interface V1WarehouseFbsReturnMileCheckRequest + */ +export interface V1WarehouseFbsReturnMileCheckRequest { + /** + * Код страны в формате ISO 2. + * @type {string} + * @memberof V1WarehouseFbsReturnMileCheckRequest + */ + country_code: string; + /** + * + * @type {V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum} + * @memberof V1WarehouseFbsReturnMileCheckRequest + */ + first_mile_type: V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum; + /** + * Признак крупногабаритного товара. + * @type {boolean} + * @memberof V1WarehouseFbsReturnMileCheckRequest + */ + is_kgt: boolean; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFbsReturnMileCheckRequest + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1WarehouseFbsReturnMileCheckRequest interface. + */ +export declare function instanceOfV1WarehouseFbsReturnMileCheckRequest(value: object): value is V1WarehouseFbsReturnMileCheckRequest; +export declare function V1WarehouseFbsReturnMileCheckRequestFromJSON(json: any): V1WarehouseFbsReturnMileCheckRequest; +export declare function V1WarehouseFbsReturnMileCheckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsReturnMileCheckRequest; +export declare function V1WarehouseFbsReturnMileCheckRequestToJSON(value?: V1WarehouseFbsReturnMileCheckRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFbsReturnMileCheckRequest.js b/dist/esm/models/V1WarehouseFbsReturnMileCheckRequest.js new file mode 100644 index 0000000..3f12950 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsReturnMileCheckRequest.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON, V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON, } from './V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum'; +/** + * Check if a given object implements the V1WarehouseFbsReturnMileCheckRequest interface. + */ +export function instanceOfV1WarehouseFbsReturnMileCheckRequest(value) { + if (!('country_code' in value) || value['country_code'] === undefined) + return false; + if (!('first_mile_type' in value) || value['first_mile_type'] === undefined) + return false; + if (!('is_kgt' in value) || value['is_kgt'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsReturnMileCheckRequestFromJSON(json) { + return V1WarehouseFbsReturnMileCheckRequestFromJSONTyped(json, false); +} +export function V1WarehouseFbsReturnMileCheckRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'country_code': json['country_code'], + 'first_mile_type': V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON(json['first_mile_type']), + 'is_kgt': json['is_kgt'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V1WarehouseFbsReturnMileCheckRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'country_code': value['country_code'], + 'first_mile_type': V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON(value['first_mile_type']), + 'is_kgt': value['is_kgt'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.d.ts b/dist/esm/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.d.ts new file mode 100644 index 0000000..5878a54 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export declare const V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum: { + readonly PICK_UP: "PICK_UP"; + readonly DROP_OFF: "DROP_OFF"; +}; +export type V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum = typeof V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum[keyof typeof V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum]; +export declare function instanceOfV1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum(value: any): boolean; +export declare function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON(json: any): V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum; +export declare function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum; +export declare function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON(value?: V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum | null): any; diff --git a/dist/esm/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.js b/dist/esm/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.js new file mode 100644 index 0000000..65f1185 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export const V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum = { + PICK_UP: 'PICK_UP', + DROP_OFF: 'DROP_OFF' +}; +export function instanceOfV1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum(value) { + for (const key in V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum, key)) { + if (V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON(json) { + return V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSONTyped(json, false); +} +export function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseFbsReturnMileCheckResponse.d.ts b/dist/esm/models/V1WarehouseFbsReturnMileCheckResponse.d.ts new file mode 100644 index 0000000..d7dd715 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsReturnMileCheckResponse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsReturnMileCheckResponse + */ +export interface V1WarehouseFbsReturnMileCheckResponse { + /** + * Признак, что необходимо установить возвратную милю. + * @type {boolean} + * @memberof V1WarehouseFbsReturnMileCheckResponse + */ + should_set_return_mile?: boolean; + /** + * Причины, по которым нельзя установить возвратную милю. + * @type {Array} + * @memberof V1WarehouseFbsReturnMileCheckResponse + */ + unavailability_reasons?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsReturnMileCheckResponse interface. + */ +export declare function instanceOfV1WarehouseFbsReturnMileCheckResponse(value: object): value is V1WarehouseFbsReturnMileCheckResponse; +export declare function V1WarehouseFbsReturnMileCheckResponseFromJSON(json: any): V1WarehouseFbsReturnMileCheckResponse; +export declare function V1WarehouseFbsReturnMileCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsReturnMileCheckResponse; +export declare function V1WarehouseFbsReturnMileCheckResponseToJSON(value?: V1WarehouseFbsReturnMileCheckResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFbsReturnMileCheckResponse.js b/dist/esm/models/V1WarehouseFbsReturnMileCheckResponse.js new file mode 100644 index 0000000..58db0ca --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsReturnMileCheckResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsReturnMileCheckResponse interface. + */ +export function instanceOfV1WarehouseFbsReturnMileCheckResponse(value) { + return true; +} +export function V1WarehouseFbsReturnMileCheckResponseFromJSON(json) { + return V1WarehouseFbsReturnMileCheckResponseFromJSONTyped(json, false); +} +export function V1WarehouseFbsReturnMileCheckResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'should_set_return_mile': json['should_set_return_mile'] == null ? undefined : json['should_set_return_mile'], + 'unavailability_reasons': json['unavailability_reasons'] == null ? undefined : json['unavailability_reasons'], + }; +} +export function V1WarehouseFbsReturnMileCheckResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'should_set_return_mile': value['should_set_return_mile'], + 'unavailability_reasons': value['unavailability_reasons'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.d.ts b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.d.ts new file mode 100644 index 0000000..c4c5901 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsUpdateDropOffTimeslotListRequest + */ +export interface V1WarehouseFbsUpdateDropOffTimeslotListRequest { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListRequest + */ + drop_off_point_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListRequest(value: object): value is V1WarehouseFbsUpdateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSON(json: any): V1WarehouseFbsUpdateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON(value?: V1WarehouseFbsUpdateDropOffTimeslotListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.js b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.js new file mode 100644 index 0000000..2525d0d --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListRequest interface. + */ +export function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListRequest(value) { + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSON(json) { + return V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSONTyped(json, false); +} +export function V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_point_id': json['drop_off_point_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_point_id': value['drop_off_point_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.d.ts b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.d.ts new file mode 100644 index 0000000..9dc6342 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot } from './V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot'; +/** + * + * @export + * @interface V1WarehouseFbsUpdateDropOffTimeslotListResponse + */ +export interface V1WarehouseFbsUpdateDropOffTimeslotListResponse { + /** + * Список таймслотов. + * @type {Array} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponse + */ + timeslots?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponse(value: object): value is V1WarehouseFbsUpdateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON(json: any): V1WarehouseFbsUpdateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseToJSON(value?: V1WarehouseFbsUpdateDropOffTimeslotListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.js b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.js new file mode 100644 index 0000000..fbb38c4 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON, V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON, } from './V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot'; +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListResponse interface. + */ +export function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponse(value) { + return true; +} +export function V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON(json) { + return V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON)), + }; +} +export function V1WarehouseFbsUpdateDropOffTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.d.ts b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.d.ts new file mode 100644 index 0000000..7c114d4 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ +export interface V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot { + /** + * Местное время окончания приёма заказа. + * @type {string} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + acceptance_end_time_local?: string; + /** + * Местное время начала приёма заказа. + * @type {string} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + acceptance_start_time_local?: string; + /** + * Время начала таймслота. + * @type {string} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot interface. + */ +export declare function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot(value: object): value is V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON(json: any): V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON(value?: V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot | null): any; diff --git a/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.js b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.js new file mode 100644 index 0000000..c269b57 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot interface. + */ +export function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot(value) { + return true; +} +export function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON(json) { + return V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSONTyped(json, false); +} +export function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'acceptance_end_time_local': json['acceptance_end_time_local'] == null ? undefined : json['acceptance_end_time_local'], + 'acceptance_start_time_local': json['acceptance_start_time_local'] == null ? undefined : json['acceptance_start_time_local'], + 'from': json['from'] == null ? undefined : json['from'], + 'id': json['id'] == null ? undefined : json['id'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'acceptance_end_time_local': value['acceptance_end_time_local'], + 'acceptance_start_time_local': value['acceptance_start_time_local'], + 'from': value['from'], + 'id': value['id'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.d.ts b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.d.ts new file mode 100644 index 0000000..3be9c7a --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsUpdatePickUpTimeslotListRequest + */ +export interface V1WarehouseFbsUpdatePickUpTimeslotListRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListRequest(value: object): value is V1WarehouseFbsUpdatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSON(json: any): V1WarehouseFbsUpdatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON(value?: V1WarehouseFbsUpdatePickUpTimeslotListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.js b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.js new file mode 100644 index 0000000..d5df5fe --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListRequest interface. + */ +export function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSON(json) { + return V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSONTyped(json, false); +} +export function V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.d.ts b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.d.ts new file mode 100644 index 0000000..09b08b3 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot } from './V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot'; +/** + * + * @export + * @interface V1WarehouseFbsUpdatePickUpTimeslotListResponse + */ +export interface V1WarehouseFbsUpdatePickUpTimeslotListResponse { + /** + * Список таймслотов. + * @type {Array} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListResponse + */ + timeslots?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponse(value: object): value is V1WarehouseFbsUpdatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON(json: any): V1WarehouseFbsUpdatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseToJSON(value?: V1WarehouseFbsUpdatePickUpTimeslotListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.js b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.js new file mode 100644 index 0000000..4b68333 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON, V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON, } from './V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot'; +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListResponse interface. + */ +export function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponse(value) { + return true; +} +export function V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON(json) { + return V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSONTyped(json, false); +} +export function V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON)), + }; +} +export function V1WarehouseFbsUpdatePickUpTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.d.ts b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.d.ts new file mode 100644 index 0000000..a79eea3 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot + */ +export interface V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot { + /** + * Время начала таймслота. + * @type {string} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot + */ + from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot + */ + id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot interface. + */ +export declare function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot(value: object): value is V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON(json: any): V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON(value?: V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot | null): any; diff --git a/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.js b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.js new file mode 100644 index 0000000..adef9b0 --- /dev/null +++ b/dist/esm/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot interface. + */ +export function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot(value) { + return true; +} +export function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON(json) { + return V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSONTyped(json, false); +} +export function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'id': json['id'] == null ? undefined : json['id'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'id': value['id'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V1WarehouseInvalidProductsGetRequest.d.ts b/dist/esm/models/V1WarehouseInvalidProductsGetRequest.d.ts new file mode 100644 index 0000000..32fb89c --- /dev/null +++ b/dist/esm/models/V1WarehouseInvalidProductsGetRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseInvalidProductsGetRequest + */ +export interface V1WarehouseInvalidProductsGetRequest { + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {number} + * @memberof V1WarehouseInvalidProductsGetRequest + */ + last_id?: number; + /** + * Идентификатор склада. Получите значение параметра методом [/v1/warehouse/warehouses-with-invalid-products](#operation/WarehouseWithInvalidProducts). + * @type {number} + * @memberof V1WarehouseInvalidProductsGetRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseInvalidProductsGetRequest interface. + */ +export declare function instanceOfV1WarehouseInvalidProductsGetRequest(value: object): value is V1WarehouseInvalidProductsGetRequest; +export declare function V1WarehouseInvalidProductsGetRequestFromJSON(json: any): V1WarehouseInvalidProductsGetRequest; +export declare function V1WarehouseInvalidProductsGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseInvalidProductsGetRequest; +export declare function V1WarehouseInvalidProductsGetRequestToJSON(value?: V1WarehouseInvalidProductsGetRequest | null): any; diff --git a/dist/esm/models/V1WarehouseInvalidProductsGetRequest.js b/dist/esm/models/V1WarehouseInvalidProductsGetRequest.js new file mode 100644 index 0000000..d23d077 --- /dev/null +++ b/dist/esm/models/V1WarehouseInvalidProductsGetRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseInvalidProductsGetRequest interface. + */ +export function instanceOfV1WarehouseInvalidProductsGetRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V1WarehouseInvalidProductsGetRequestFromJSON(json) { + return V1WarehouseInvalidProductsGetRequestFromJSONTyped(json, false); +} +export function V1WarehouseInvalidProductsGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V1WarehouseInvalidProductsGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseInvalidProductsGetResponse.d.ts b/dist/esm/models/V1WarehouseInvalidProductsGetResponse.d.ts new file mode 100644 index 0000000..c34188d --- /dev/null +++ b/dist/esm/models/V1WarehouseInvalidProductsGetResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseInvalidProductsGetResponseValidationResult } from './WarehouseInvalidProductsGetResponseValidationResult'; +/** + * + * @export + * @interface V1WarehouseInvalidProductsGetResponse + */ +export interface V1WarehouseInvalidProductsGetResponse { + /** + * `true`, если в ответе вернулись не все товары. + * + * @type {boolean} + * @memberof V1WarehouseInvalidProductsGetResponse + */ + has_next?: boolean; + /** + * Идентификатор последнего значения на странице. Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * @type {number} + * @memberof V1WarehouseInvalidProductsGetResponse + */ + last_id?: number; + /** + * Результат проверки. + * @type {Array} + * @memberof V1WarehouseInvalidProductsGetResponse + */ + validation_results?: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseInvalidProductsGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1WarehouseInvalidProductsGetResponse interface. + */ +export declare function instanceOfV1WarehouseInvalidProductsGetResponse(value: object): value is V1WarehouseInvalidProductsGetResponse; +export declare function V1WarehouseInvalidProductsGetResponseFromJSON(json: any): V1WarehouseInvalidProductsGetResponse; +export declare function V1WarehouseInvalidProductsGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseInvalidProductsGetResponse; +export declare function V1WarehouseInvalidProductsGetResponseToJSON(value?: V1WarehouseInvalidProductsGetResponse | null): any; diff --git a/dist/esm/models/V1WarehouseInvalidProductsGetResponse.js b/dist/esm/models/V1WarehouseInvalidProductsGetResponse.js new file mode 100644 index 0000000..409459a --- /dev/null +++ b/dist/esm/models/V1WarehouseInvalidProductsGetResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseInvalidProductsGetResponseValidationResultFromJSON, WarehouseInvalidProductsGetResponseValidationResultToJSON, } from './WarehouseInvalidProductsGetResponseValidationResult'; +/** + * Check if a given object implements the V1WarehouseInvalidProductsGetResponse interface. + */ +export function instanceOfV1WarehouseInvalidProductsGetResponse(value) { + return true; +} +export function V1WarehouseInvalidProductsGetResponseFromJSON(json) { + return V1WarehouseInvalidProductsGetResponseFromJSONTyped(json, false); +} +export function V1WarehouseInvalidProductsGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'validation_results': json['validation_results'] == null ? undefined : (json['validation_results'].map(WarehouseInvalidProductsGetResponseValidationResultFromJSON)), + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V1WarehouseInvalidProductsGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'last_id': value['last_id'], + 'validation_results': value['validation_results'] == null ? undefined : (value['validation_results'].map(WarehouseInvalidProductsGetResponseValidationResultToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V1WarehouseListRequest.d.ts b/dist/esm/models/V1WarehouseListRequest.d.ts new file mode 100644 index 0000000..4623b73 --- /dev/null +++ b/dist/esm/models/V1WarehouseListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseListRequestWith } from './V1WarehouseListRequestWith'; +/** + * + * @export + * @interface V1WarehouseListRequest + */ +export interface V1WarehouseListRequest { + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1WarehouseListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof V1WarehouseListRequest + */ + offset?: number; + /** + * + * @type {V1WarehouseListRequestWith} + * @memberof V1WarehouseListRequest + */ + _with?: V1WarehouseListRequestWith; +} +/** + * Check if a given object implements the V1WarehouseListRequest interface. + */ +export declare function instanceOfV1WarehouseListRequest(value: object): value is V1WarehouseListRequest; +export declare function V1WarehouseListRequestFromJSON(json: any): V1WarehouseListRequest; +export declare function V1WarehouseListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseListRequest; +export declare function V1WarehouseListRequestToJSON(value?: V1WarehouseListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseListRequest.js b/dist/esm/models/V1WarehouseListRequest.js new file mode 100644 index 0000000..bb51c5d --- /dev/null +++ b/dist/esm/models/V1WarehouseListRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseListRequestWithFromJSON, V1WarehouseListRequestWithToJSON, } from './V1WarehouseListRequestWith'; +/** + * Check if a given object implements the V1WarehouseListRequest interface. + */ +export function instanceOfV1WarehouseListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V1WarehouseListRequestFromJSON(json) { + return V1WarehouseListRequestFromJSONTyped(json, false); +} +export function V1WarehouseListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + '_with': json['with'] == null ? undefined : V1WarehouseListRequestWithFromJSON(json['with']), + }; +} +export function V1WarehouseListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + 'with': V1WarehouseListRequestWithToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/V1WarehouseListRequestWith.d.ts b/dist/esm/models/V1WarehouseListRequestWith.d.ts new file mode 100644 index 0000000..9d52881 --- /dev/null +++ b/dist/esm/models/V1WarehouseListRequestWith.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface V1WarehouseListRequestWith + */ +export interface V1WarehouseListRequestWith { + /** + * `true`, чтобы добавить в ответ информацию о возможности установить цену. + * + * @type {boolean} + * @memberof V1WarehouseListRequestWith + */ + able_to_set_price?: boolean; +} +/** + * Check if a given object implements the V1WarehouseListRequestWith interface. + */ +export declare function instanceOfV1WarehouseListRequestWith(value: object): value is V1WarehouseListRequestWith; +export declare function V1WarehouseListRequestWithFromJSON(json: any): V1WarehouseListRequestWith; +export declare function V1WarehouseListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseListRequestWith; +export declare function V1WarehouseListRequestWithToJSON(value?: V1WarehouseListRequestWith | null): any; diff --git a/dist/esm/models/V1WarehouseListRequestWith.js b/dist/esm/models/V1WarehouseListRequestWith.js new file mode 100644 index 0000000..79b46b0 --- /dev/null +++ b/dist/esm/models/V1WarehouseListRequestWith.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseListRequestWith interface. + */ +export function instanceOfV1WarehouseListRequestWith(value) { + return true; +} +export function V1WarehouseListRequestWithFromJSON(json) { + return V1WarehouseListRequestWithFromJSONTyped(json, false); +} +export function V1WarehouseListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'able_to_set_price': json['able_to_set_price'] == null ? undefined : json['able_to_set_price'], + }; +} +export function V1WarehouseListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'able_to_set_price': value['able_to_set_price'], + }; +} diff --git a/dist/esm/models/V1WarehouseOZONListRequest.d.ts b/dist/esm/models/V1WarehouseOZONListRequest.d.ts new file mode 100644 index 0000000..e5d28a1 --- /dev/null +++ b/dist/esm/models/V1WarehouseOZONListRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseOZONListRequestWarehouseTypeEnum } from './V1WarehouseOZONListRequestWarehouseTypeEnum'; +/** + * + * @export + * @interface V1WarehouseOZONListRequest + */ +export interface V1WarehouseOZONListRequest { + /** + * Тип склада Ozon: + * - `FULL_FILLMENT` — фулфилмент; + * - `FULL_FILLMENT_RETURNS` — склад возвратов; + * - `FULL_FILLMENT_DEFECT` — склад брака; + * - `EXPRESS_DARK_STORE` — фреш; + * - `CROSS_DOCK` — кросс-док; + * - `SORTING_CENTER` — сортировочный центр; + * - `PHARMACY` — склад аптеки; + * - `DISTRIBUTION_CENTER` — распределительный центр; + * - `ORDERS_RECEIVING_POINT` — пункты приёма заказов; + * - `OUTSOURCE_FF` — аутсорс-склады; + * - `B2B` — B2B-склад; + * - `EXTERNAL_FF` — склады партнёров. + * + * @type {Array} + * @memberof V1WarehouseOZONListRequest + */ + warehouse_types?: Array; +} +/** + * Check if a given object implements the V1WarehouseOZONListRequest interface. + */ +export declare function instanceOfV1WarehouseOZONListRequest(value: object): value is V1WarehouseOZONListRequest; +export declare function V1WarehouseOZONListRequestFromJSON(json: any): V1WarehouseOZONListRequest; +export declare function V1WarehouseOZONListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseOZONListRequest; +export declare function V1WarehouseOZONListRequestToJSON(value?: V1WarehouseOZONListRequest | null): any; diff --git a/dist/esm/models/V1WarehouseOZONListRequest.js b/dist/esm/models/V1WarehouseOZONListRequest.js new file mode 100644 index 0000000..e7c3185 --- /dev/null +++ b/dist/esm/models/V1WarehouseOZONListRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON, V1WarehouseOZONListRequestWarehouseTypeEnumToJSON, } from './V1WarehouseOZONListRequestWarehouseTypeEnum'; +/** + * Check if a given object implements the V1WarehouseOZONListRequest interface. + */ +export function instanceOfV1WarehouseOZONListRequest(value) { + return true; +} +export function V1WarehouseOZONListRequestFromJSON(json) { + return V1WarehouseOZONListRequestFromJSONTyped(json, false); +} +export function V1WarehouseOZONListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_types': json['warehouse_types'] == null ? undefined : (json['warehouse_types'].map(V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON)), + }; +} +export function V1WarehouseOZONListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_types': value['warehouse_types'] == null ? undefined : (value['warehouse_types'].map(V1WarehouseOZONListRequestWarehouseTypeEnumToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseOZONListRequestWarehouseTypeEnum.d.ts b/dist/esm/models/V1WarehouseOZONListRequestWarehouseTypeEnum.d.ts new file mode 100644 index 0000000..709f986 --- /dev/null +++ b/dist/esm/models/V1WarehouseOZONListRequestWarehouseTypeEnum.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1WarehouseOZONListRequestWarehouseTypeEnum: { + readonly FULL_FILLMENT: "FULL_FILLMENT"; + readonly FULL_FILLMENT_RETURNS: "FULL_FILLMENT_RETURNS"; + readonly FULL_FILLMENT_DEFECT: "FULL_FILLMENT_DEFECT"; + readonly EXPRESS_DARK_STORE: "EXPRESS_DARK_STORE"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly PHARMACY: "PHARMACY"; + readonly DISTRIBUTION_CENTER: "DISTRIBUTION_CENTER"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly OUTSOURCE_FF: "OUTSOURCE_FF"; + readonly B2B: "B2B"; + readonly EXTERNAL_FF: "EXTERNAL_FF"; +}; +export type V1WarehouseOZONListRequestWarehouseTypeEnum = typeof V1WarehouseOZONListRequestWarehouseTypeEnum[keyof typeof V1WarehouseOZONListRequestWarehouseTypeEnum]; +export declare function instanceOfV1WarehouseOZONListRequestWarehouseTypeEnum(value: any): boolean; +export declare function V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON(json: any): V1WarehouseOZONListRequestWarehouseTypeEnum; +export declare function V1WarehouseOZONListRequestWarehouseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseOZONListRequestWarehouseTypeEnum; +export declare function V1WarehouseOZONListRequestWarehouseTypeEnumToJSON(value?: V1WarehouseOZONListRequestWarehouseTypeEnum | null): any; diff --git a/dist/esm/models/V1WarehouseOZONListRequestWarehouseTypeEnum.js b/dist/esm/models/V1WarehouseOZONListRequestWarehouseTypeEnum.js new file mode 100644 index 0000000..e03b6b0 --- /dev/null +++ b/dist/esm/models/V1WarehouseOZONListRequestWarehouseTypeEnum.js @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V1WarehouseOZONListRequestWarehouseTypeEnum = { + FULL_FILLMENT: 'FULL_FILLMENT', + FULL_FILLMENT_RETURNS: 'FULL_FILLMENT_RETURNS', + FULL_FILLMENT_DEFECT: 'FULL_FILLMENT_DEFECT', + EXPRESS_DARK_STORE: 'EXPRESS_DARK_STORE', + CROSS_DOCK: 'CROSS_DOCK', + SORTING_CENTER: 'SORTING_CENTER', + PHARMACY: 'PHARMACY', + DISTRIBUTION_CENTER: 'DISTRIBUTION_CENTER', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + OUTSOURCE_FF: 'OUTSOURCE_FF', + B2B: 'B2B', + EXTERNAL_FF: 'EXTERNAL_FF' +}; +export function instanceOfV1WarehouseOZONListRequestWarehouseTypeEnum(value) { + for (const key in V1WarehouseOZONListRequestWarehouseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(V1WarehouseOZONListRequestWarehouseTypeEnum, key)) { + if (V1WarehouseOZONListRequestWarehouseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON(json) { + return V1WarehouseOZONListRequestWarehouseTypeEnumFromJSONTyped(json, false); +} +export function V1WarehouseOZONListRequestWarehouseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V1WarehouseOZONListRequestWarehouseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V1WarehouseOZONListResponse.d.ts b/dist/esm/models/V1WarehouseOZONListResponse.d.ts new file mode 100644 index 0000000..302b03d --- /dev/null +++ b/dist/esm/models/V1WarehouseOZONListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseOZONListResponseWarehouse } from './V1WarehouseOZONListResponseWarehouse'; +/** + * + * @export + * @interface V1WarehouseOZONListResponse + */ +export interface V1WarehouseOZONListResponse { + /** + * Список складов. + * @type {Array} + * @memberof V1WarehouseOZONListResponse + */ + warehouses?: Array; +} +/** + * Check if a given object implements the V1WarehouseOZONListResponse interface. + */ +export declare function instanceOfV1WarehouseOZONListResponse(value: object): value is V1WarehouseOZONListResponse; +export declare function V1WarehouseOZONListResponseFromJSON(json: any): V1WarehouseOZONListResponse; +export declare function V1WarehouseOZONListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseOZONListResponse; +export declare function V1WarehouseOZONListResponseToJSON(value?: V1WarehouseOZONListResponse | null): any; diff --git a/dist/esm/models/V1WarehouseOZONListResponse.js b/dist/esm/models/V1WarehouseOZONListResponse.js new file mode 100644 index 0000000..cd7cfec --- /dev/null +++ b/dist/esm/models/V1WarehouseOZONListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseOZONListResponseWarehouseFromJSON, V1WarehouseOZONListResponseWarehouseToJSON, } from './V1WarehouseOZONListResponseWarehouse'; +/** + * Check if a given object implements the V1WarehouseOZONListResponse interface. + */ +export function instanceOfV1WarehouseOZONListResponse(value) { + return true; +} +export function V1WarehouseOZONListResponseFromJSON(json) { + return V1WarehouseOZONListResponseFromJSONTyped(json, false); +} +export function V1WarehouseOZONListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(V1WarehouseOZONListResponseWarehouseFromJSON)), + }; +} +export function V1WarehouseOZONListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(V1WarehouseOZONListResponseWarehouseToJSON)), + }; +} diff --git a/dist/esm/models/V1WarehouseOZONListResponseWarehouse.d.ts b/dist/esm/models/V1WarehouseOZONListResponseWarehouse.d.ts new file mode 100644 index 0000000..d837392 --- /dev/null +++ b/dist/esm/models/V1WarehouseOZONListResponseWarehouse.d.ts @@ -0,0 +1,110 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseOZONListResponseWarehouseWarehouseTypeEnum } from './WarehouseOZONListResponseWarehouseWarehouseTypeEnum'; +/** + * + * @export + * @interface V1WarehouseOZONListResponseWarehouse + */ +export interface V1WarehouseOZONListResponseWarehouse { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + name?: string; + /** + * Короткое название склада. + * @type {string} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + short_name?: string; + /** + * Адрес склада. + * @type {string} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + address?: string; + /** + * Часовой пояс склада. + * @type {string} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + timezone?: string; + /** + * `true`, если склад активный. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_active?: boolean; + /** + * + * @type {WarehouseOZONListResponseWarehouseWarehouseTypeEnum} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + warehouse_type?: WarehouseOZONListResponseWarehouseWarehouseTypeEnum; + /** + * Код страны в формате ISO 3166-1 numeric. + * @type {number} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + country_iso_numeric?: number; + /** + * `true`, если тип склада — кросс-док. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_cross_dock?: boolean; + /** + * `true`, если тип склада — распределительный центр. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_distribution_center?: boolean; + /** + * `true`, если склад работает с электронным документооборотом. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_edo?: boolean; + /** + * `true`, если тип склада — фреш. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_express?: boolean; + /** + * `true`, если склад доступен для создания поставки. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_for_supply?: boolean; +} +/** + * Check if a given object implements the V1WarehouseOZONListResponseWarehouse interface. + */ +export declare function instanceOfV1WarehouseOZONListResponseWarehouse(value: object): value is V1WarehouseOZONListResponseWarehouse; +export declare function V1WarehouseOZONListResponseWarehouseFromJSON(json: any): V1WarehouseOZONListResponseWarehouse; +export declare function V1WarehouseOZONListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseOZONListResponseWarehouse; +export declare function V1WarehouseOZONListResponseWarehouseToJSON(value?: V1WarehouseOZONListResponseWarehouse | null): any; diff --git a/dist/esm/models/V1WarehouseOZONListResponseWarehouse.js b/dist/esm/models/V1WarehouseOZONListResponseWarehouse.js new file mode 100644 index 0000000..12d1fc5 --- /dev/null +++ b/dist/esm/models/V1WarehouseOZONListResponseWarehouse.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON, WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON, } from './WarehouseOZONListResponseWarehouseWarehouseTypeEnum'; +/** + * Check if a given object implements the V1WarehouseOZONListResponseWarehouse interface. + */ +export function instanceOfV1WarehouseOZONListResponseWarehouse(value) { + return true; +} +export function V1WarehouseOZONListResponseWarehouseFromJSON(json) { + return V1WarehouseOZONListResponseWarehouseFromJSONTyped(json, false); +} +export function V1WarehouseOZONListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'short_name': json['short_name'] == null ? undefined : json['short_name'], + 'address': json['address'] == null ? undefined : json['address'], + 'timezone': json['timezone'] == null ? undefined : json['timezone'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'warehouse_type': json['warehouse_type'] == null ? undefined : WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON(json['warehouse_type']), + 'country_iso_numeric': json['country_iso_numeric'] == null ? undefined : json['country_iso_numeric'], + 'is_cross_dock': json['is_cross_dock'] == null ? undefined : json['is_cross_dock'], + 'is_distribution_center': json['is_distribution_center'] == null ? undefined : json['is_distribution_center'], + 'is_edo': json['is_edo'] == null ? undefined : json['is_edo'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_for_supply': json['is_for_supply'] == null ? undefined : json['is_for_supply'], + }; +} +export function V1WarehouseOZONListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + 'name': value['name'], + 'short_name': value['short_name'], + 'address': value['address'], + 'timezone': value['timezone'], + 'is_active': value['is_active'], + 'warehouse_type': WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON(value['warehouse_type']), + 'country_iso_numeric': value['country_iso_numeric'], + 'is_cross_dock': value['is_cross_dock'], + 'is_distribution_center': value['is_distribution_center'], + 'is_edo': value['is_edo'], + 'is_express': value['is_express'], + 'is_for_supply': value['is_for_supply'], + }; +} diff --git a/dist/esm/models/V1WarehouseWithInvalidProductsResponse.d.ts b/dist/esm/models/V1WarehouseWithInvalidProductsResponse.d.ts new file mode 100644 index 0000000..23ca34a --- /dev/null +++ b/dist/esm/models/V1WarehouseWithInvalidProductsResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseWithInvalidProductsResponse + */ +export interface V1WarehouseWithInvalidProductsResponse { + /** + * Список идентификаторов складов, у которых есть хотя бы 1 товар, который недоступен для доставки со склада. Чтобы получить список товаров с ограничениями, используйте метод [/v1/warehouse/invalid-products/get](#operation/WarehouseInvalidProductsGet). + * @type {Array} + * @memberof V1WarehouseWithInvalidProductsResponse + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the V1WarehouseWithInvalidProductsResponse interface. + */ +export declare function instanceOfV1WarehouseWithInvalidProductsResponse(value: object): value is V1WarehouseWithInvalidProductsResponse; +export declare function V1WarehouseWithInvalidProductsResponseFromJSON(json: any): V1WarehouseWithInvalidProductsResponse; +export declare function V1WarehouseWithInvalidProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseWithInvalidProductsResponse; +export declare function V1WarehouseWithInvalidProductsResponseToJSON(value?: V1WarehouseWithInvalidProductsResponse | null): any; diff --git a/dist/esm/models/V1WarehouseWithInvalidProductsResponse.js b/dist/esm/models/V1WarehouseWithInvalidProductsResponse.js new file mode 100644 index 0000000..84b671a --- /dev/null +++ b/dist/esm/models/V1WarehouseWithInvalidProductsResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1WarehouseWithInvalidProductsResponse interface. + */ +export function instanceOfV1WarehouseWithInvalidProductsResponse(value) { + return true; +} +export function V1WarehouseWithInvalidProductsResponseFromJSON(json) { + return V1WarehouseWithInvalidProductsResponseFromJSONTyped(json, false); +} +export function V1WarehouseWithInvalidProductsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function V1WarehouseWithInvalidProductsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/V1fbpDeliveryDetails.d.ts b/dist/esm/models/V1fbpDeliveryDetails.d.ts new file mode 100644 index 0000000..01f1d29 --- /dev/null +++ b/dist/esm/models/V1fbpDeliveryDetails.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryDetailsPickUpDetails } from './V1DeliveryDetailsPickUpDetails'; +import type { DeliveryDetailsSupplyType } from './DeliveryDetailsSupplyType'; +import type { V1DeliveryDetailsDirectDetails } from './V1DeliveryDetailsDirectDetails'; +import type { DeliveryDetailsDropOffPointDetails } from './DeliveryDetailsDropOffPointDetails'; +/** + * Детали доставки. + * @export + * @interface V1fbpDeliveryDetails + */ +export interface V1fbpDeliveryDetails { + /** + * + * @type {V1DeliveryDetailsDirectDetails} + * @memberof V1fbpDeliveryDetails + */ + direct_details?: V1DeliveryDetailsDirectDetails; + /** + * + * @type {DeliveryDetailsDropOffPointDetails} + * @memberof V1fbpDeliveryDetails + */ + drop_off_point?: DeliveryDetailsDropOffPointDetails; + /** + * + * @type {V1DeliveryDetailsPickUpDetails} + * @memberof V1fbpDeliveryDetails + */ + pickup_details?: V1DeliveryDetailsPickUpDetails; + /** + * + * @type {DeliveryDetailsSupplyType} + * @memberof V1fbpDeliveryDetails + */ + supply_type?: DeliveryDetailsSupplyType; +} +/** + * Check if a given object implements the V1fbpDeliveryDetails interface. + */ +export declare function instanceOfV1fbpDeliveryDetails(value: object): value is V1fbpDeliveryDetails; +export declare function V1fbpDeliveryDetailsFromJSON(json: any): V1fbpDeliveryDetails; +export declare function V1fbpDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1fbpDeliveryDetails; +export declare function V1fbpDeliveryDetailsToJSON(value?: V1fbpDeliveryDetails | null): any; diff --git a/dist/esm/models/V1fbpDeliveryDetails.js b/dist/esm/models/V1fbpDeliveryDetails.js new file mode 100644 index 0000000..ff11cdb --- /dev/null +++ b/dist/esm/models/V1fbpDeliveryDetails.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1DeliveryDetailsPickUpDetailsFromJSON, V1DeliveryDetailsPickUpDetailsToJSON, } from './V1DeliveryDetailsPickUpDetails'; +import { DeliveryDetailsSupplyTypeFromJSON, DeliveryDetailsSupplyTypeToJSON, } from './DeliveryDetailsSupplyType'; +import { V1DeliveryDetailsDirectDetailsFromJSON, V1DeliveryDetailsDirectDetailsToJSON, } from './V1DeliveryDetailsDirectDetails'; +import { DeliveryDetailsDropOffPointDetailsFromJSON, DeliveryDetailsDropOffPointDetailsToJSON, } from './DeliveryDetailsDropOffPointDetails'; +/** + * Check if a given object implements the V1fbpDeliveryDetails interface. + */ +export function instanceOfV1fbpDeliveryDetails(value) { + return true; +} +export function V1fbpDeliveryDetailsFromJSON(json) { + return V1fbpDeliveryDetailsFromJSONTyped(json, false); +} +export function V1fbpDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'direct_details': json['direct_details'] == null ? undefined : V1DeliveryDetailsDirectDetailsFromJSON(json['direct_details']), + 'drop_off_point': json['drop_off_point'] == null ? undefined : DeliveryDetailsDropOffPointDetailsFromJSON(json['drop_off_point']), + 'pickup_details': json['pickup_details'] == null ? undefined : V1DeliveryDetailsPickUpDetailsFromJSON(json['pickup_details']), + 'supply_type': json['supply_type'] == null ? undefined : DeliveryDetailsSupplyTypeFromJSON(json['supply_type']), + }; +} +export function V1fbpDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'direct_details': V1DeliveryDetailsDirectDetailsToJSON(value['direct_details']), + 'drop_off_point': DeliveryDetailsDropOffPointDetailsToJSON(value['drop_off_point']), + 'pickup_details': V1DeliveryDetailsPickUpDetailsToJSON(value['pickup_details']), + 'supply_type': DeliveryDetailsSupplyTypeToJSON(value['supply_type']), + }; +} diff --git a/dist/esm/models/V1fbpTimeslot.d.ts b/dist/esm/models/V1fbpTimeslot.d.ts new file mode 100644 index 0000000..aa34367 --- /dev/null +++ b/dist/esm/models/V1fbpTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Таймслот. + * @export + * @interface V1fbpTimeslot + */ +export interface V1fbpTimeslot { + /** + * Время окончания таймслота по UTC. + * @type {string} + * @memberof V1fbpTimeslot + */ + timeslot_end?: string; + /** + * Время начала таймслота по UTC. + * @type {string} + * @memberof V1fbpTimeslot + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1fbpTimeslot interface. + */ +export declare function instanceOfV1fbpTimeslot(value: object): value is V1fbpTimeslot; +export declare function V1fbpTimeslotFromJSON(json: any): V1fbpTimeslot; +export declare function V1fbpTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1fbpTimeslot; +export declare function V1fbpTimeslotToJSON(value?: V1fbpTimeslot | null): any; diff --git a/dist/esm/models/V1fbpTimeslot.js b/dist/esm/models/V1fbpTimeslot.js new file mode 100644 index 0000000..7816622 --- /dev/null +++ b/dist/esm/models/V1fbpTimeslot.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V1fbpTimeslot interface. + */ +export function instanceOfV1fbpTimeslot(value) { + return true; +} +export function V1fbpTimeslotFromJSON(json) { + return V1fbpTimeslotFromJSONTyped(json, false); +} +export function V1fbpTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +export function V1fbpTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/esm/models/V2AdditionalDataItem.d.ts b/dist/esm/models/V2AdditionalDataItem.d.ts new file mode 100644 index 0000000..f85e2fc --- /dev/null +++ b/dist/esm/models/V2AdditionalDataItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительная информация. + * @export + * @interface V2AdditionalDataItem + */ +export interface V2AdditionalDataItem { + /** + * + * @type {string} + * @memberof V2AdditionalDataItem + */ + key?: string; + /** + * + * @type {string} + * @memberof V2AdditionalDataItem + */ + value?: string; +} +/** + * Check if a given object implements the V2AdditionalDataItem interface. + */ +export declare function instanceOfV2AdditionalDataItem(value: object): value is V2AdditionalDataItem; +export declare function V2AdditionalDataItemFromJSON(json: any): V2AdditionalDataItem; +export declare function V2AdditionalDataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2AdditionalDataItem; +export declare function V2AdditionalDataItemToJSON(value?: V2AdditionalDataItem | null): any; diff --git a/dist/esm/models/V2AdditionalDataItem.js b/dist/esm/models/V2AdditionalDataItem.js new file mode 100644 index 0000000..3542f67 --- /dev/null +++ b/dist/esm/models/V2AdditionalDataItem.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2AdditionalDataItem interface. + */ +export function instanceOfV2AdditionalDataItem(value) { + return true; +} +export function V2AdditionalDataItemFromJSON(json) { + return V2AdditionalDataItemFromJSONTyped(json, false); +} +export function V2AdditionalDataItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V2AdditionalDataItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V2CancellationInitiatorEnum.d.ts b/dist/esm/models/V2CancellationInitiatorEnum.d.ts new file mode 100644 index 0000000..d015ab8 --- /dev/null +++ b/dist/esm/models/V2CancellationInitiatorEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Инициатор отмены: + * - `SELLER` — продавец, + * - `CLIENT` — покупатель, + * - `OZON` — Ozon, + * - `SYSTEM` — система, + * - `DELIVERY` — служба доставки. + * + * @export + */ +export declare const V2CancellationInitiatorEnum: { + readonly OZON: "OZON"; + readonly SELLER: "SELLER"; + readonly CLIENT: "CLIENT"; + readonly SYSTEM: "SYSTEM"; + readonly DELIVERY: "DELIVERY"; +}; +export type V2CancellationInitiatorEnum = typeof V2CancellationInitiatorEnum[keyof typeof V2CancellationInitiatorEnum]; +export declare function instanceOfV2CancellationInitiatorEnum(value: any): boolean; +export declare function V2CancellationInitiatorEnumFromJSON(json: any): V2CancellationInitiatorEnum; +export declare function V2CancellationInitiatorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CancellationInitiatorEnum; +export declare function V2CancellationInitiatorEnumToJSON(value?: V2CancellationInitiatorEnum | null): any; diff --git a/dist/esm/models/V2CancellationInitiatorEnum.js b/dist/esm/models/V2CancellationInitiatorEnum.js new file mode 100644 index 0000000..7ed42e0 --- /dev/null +++ b/dist/esm/models/V2CancellationInitiatorEnum.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Инициатор отмены: + * - `SELLER` — продавец, + * - `CLIENT` — покупатель, + * - `OZON` — Ozon, + * - `SYSTEM` — система, + * - `DELIVERY` — служба доставки. + * + * @export + */ +export const V2CancellationInitiatorEnum = { + OZON: 'OZON', + SELLER: 'SELLER', + CLIENT: 'CLIENT', + SYSTEM: 'SYSTEM', + DELIVERY: 'DELIVERY' +}; +export function instanceOfV2CancellationInitiatorEnum(value) { + for (const key in V2CancellationInitiatorEnum) { + if (Object.prototype.hasOwnProperty.call(V2CancellationInitiatorEnum, key)) { + if (V2CancellationInitiatorEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2CancellationInitiatorEnumFromJSON(json) { + return V2CancellationInitiatorEnumFromJSONTyped(json, false); +} +export function V2CancellationInitiatorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2CancellationInitiatorEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2CancellationStateEnum.d.ts b/dist/esm/models/V2CancellationStateEnum.d.ts new file mode 100644 index 0000000..1021a41 --- /dev/null +++ b/dist/esm/models/V2CancellationStateEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки: + * - `ON_APPROVAL` — заявка на рассмотрении, + * - `APPROVED` — подтверждённая заявка, + * - `REJECTED` — отклонённая заявка. + * + * @export + */ +export declare const V2CancellationStateEnum: { + readonly ON_APPROVAL: "ON_APPROVAL"; + readonly APPROVED: "APPROVED"; + readonly REJECTED: "REJECTED"; +}; +export type V2CancellationStateEnum = typeof V2CancellationStateEnum[keyof typeof V2CancellationStateEnum]; +export declare function instanceOfV2CancellationStateEnum(value: any): boolean; +export declare function V2CancellationStateEnumFromJSON(json: any): V2CancellationStateEnum; +export declare function V2CancellationStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CancellationStateEnum; +export declare function V2CancellationStateEnumToJSON(value?: V2CancellationStateEnum | null): any; diff --git a/dist/esm/models/V2CancellationStateEnum.js b/dist/esm/models/V2CancellationStateEnum.js new file mode 100644 index 0000000..839eb22 --- /dev/null +++ b/dist/esm/models/V2CancellationStateEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки: + * - `ON_APPROVAL` — заявка на рассмотрении, + * - `APPROVED` — подтверждённая заявка, + * - `REJECTED` — отклонённая заявка. + * + * @export + */ +export const V2CancellationStateEnum = { + ON_APPROVAL: 'ON_APPROVAL', + APPROVED: 'APPROVED', + REJECTED: 'REJECTED' +}; +export function instanceOfV2CancellationStateEnum(value) { + for (const key in V2CancellationStateEnum) { + if (Object.prototype.hasOwnProperty.call(V2CancellationStateEnum, key)) { + if (V2CancellationStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2CancellationStateEnumFromJSON(json) { + return V2CancellationStateEnumFromJSONTyped(json, false); +} +export function V2CancellationStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2CancellationStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2CancellationStateEnumFilters.d.ts b/dist/esm/models/V2CancellationStateEnumFilters.d.ts new file mode 100644 index 0000000..51ded73 --- /dev/null +++ b/dist/esm/models/V2CancellationStateEnumFilters.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по статусу заявки на отмену: + * - `ALL` — заявки в любом статусе, + * - `ON_APPROVAL` — заявки на рассмотрении, + * - `APPROVED` — подтверждённые заявки, + * - `REJECTED` — отклонённые заявки. + * + * @export + */ +export declare const V2CancellationStateEnumFilters: { + readonly ALL: "ALL"; + readonly ON_APPROVAL: "ON_APPROVAL"; + readonly APPROVED: "APPROVED"; + readonly REJECTED: "REJECTED"; +}; +export type V2CancellationStateEnumFilters = typeof V2CancellationStateEnumFilters[keyof typeof V2CancellationStateEnumFilters]; +export declare function instanceOfV2CancellationStateEnumFilters(value: any): boolean; +export declare function V2CancellationStateEnumFiltersFromJSON(json: any): V2CancellationStateEnumFilters; +export declare function V2CancellationStateEnumFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CancellationStateEnumFilters; +export declare function V2CancellationStateEnumFiltersToJSON(value?: V2CancellationStateEnumFilters | null): any; diff --git a/dist/esm/models/V2CancellationStateEnumFilters.js b/dist/esm/models/V2CancellationStateEnumFilters.js new file mode 100644 index 0000000..1ed2719 --- /dev/null +++ b/dist/esm/models/V2CancellationStateEnumFilters.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по статусу заявки на отмену: + * - `ALL` — заявки в любом статусе, + * - `ON_APPROVAL` — заявки на рассмотрении, + * - `APPROVED` — подтверждённые заявки, + * - `REJECTED` — отклонённые заявки. + * + * @export + */ +export const V2CancellationStateEnumFilters = { + ALL: 'ALL', + ON_APPROVAL: 'ON_APPROVAL', + APPROVED: 'APPROVED', + REJECTED: 'REJECTED' +}; +export function instanceOfV2CancellationStateEnumFilters(value) { + for (const key in V2CancellationStateEnumFilters) { + if (Object.prototype.hasOwnProperty.call(V2CancellationStateEnumFilters, key)) { + if (V2CancellationStateEnumFilters[key] === value) { + return true; + } + } + } + return false; +} +export function V2CancellationStateEnumFiltersFromJSON(json) { + return V2CancellationStateEnumFiltersFromJSONTyped(json, false); +} +export function V2CancellationStateEnumFiltersFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2CancellationStateEnumFiltersToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2CargoesCreateErrors.d.ts b/dist/esm/models/V2CargoesCreateErrors.d.ts new file mode 100644 index 0000000..1eb8284 --- /dev/null +++ b/dist/esm/models/V2CargoesCreateErrors.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesCreateV2ErrorsItemValidation } from './CargoesCreateV2ErrorsItemValidation'; +import type { CargoesCreateErrorsReasonEnum } from './CargoesCreateErrorsReasonEnum'; +/** + * Ошибки. + * @export + * @interface V2CargoesCreateErrors + */ +export interface V2CargoesCreateErrors { + /** + * Причина ошибки: + * - `INVALID_STATE` — недопустимое состояние поставки; + * - `VALIDATION_FAILED` — ошибки валидации; + * - `WAREHOUSE_LIMITS_EXCEED` — превышены лимиты склада; + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — поставка не относится к указанному контрагенту; + * - `SUPPLY_NOT_BELONG_COMPANY` — поставка не относится к указанной компании; + * - `IS_FINALIZED` — редактирование поставки недоступно; + * - `SKU_DISTRIBUTION_DISABLED` — распределение состава недоступно; + * - `SUPPLY_IS_NOT_EMPTY` — поставка содержит распределение состава; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — ошибка при обработке операции. + * + * @type {Array} + * @memberof V2CargoesCreateErrors + */ + error_reasons?: Array; + /** + * Ошибки валидации. + * @type {Array} + * @memberof V2CargoesCreateErrors + */ + items_validation?: Array; +} +/** + * Check if a given object implements the V2CargoesCreateErrors interface. + */ +export declare function instanceOfV2CargoesCreateErrors(value: object): value is V2CargoesCreateErrors; +export declare function V2CargoesCreateErrorsFromJSON(json: any): V2CargoesCreateErrors; +export declare function V2CargoesCreateErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CargoesCreateErrors; +export declare function V2CargoesCreateErrorsToJSON(value?: V2CargoesCreateErrors | null): any; diff --git a/dist/esm/models/V2CargoesCreateErrors.js b/dist/esm/models/V2CargoesCreateErrors.js new file mode 100644 index 0000000..da08875 --- /dev/null +++ b/dist/esm/models/V2CargoesCreateErrors.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesCreateV2ErrorsItemValidationFromJSON, CargoesCreateV2ErrorsItemValidationToJSON, } from './CargoesCreateV2ErrorsItemValidation'; +import { CargoesCreateErrorsReasonEnumFromJSON, CargoesCreateErrorsReasonEnumToJSON, } from './CargoesCreateErrorsReasonEnum'; +/** + * Check if a given object implements the V2CargoesCreateErrors interface. + */ +export function instanceOfV2CargoesCreateErrors(value) { + return true; +} +export function V2CargoesCreateErrorsFromJSON(json) { + return V2CargoesCreateErrorsFromJSONTyped(json, false); +} +export function V2CargoesCreateErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesCreateErrorsReasonEnumFromJSON)), + 'items_validation': json['items_validation'] == null ? undefined : (json['items_validation'].map(CargoesCreateV2ErrorsItemValidationFromJSON)), + }; +} +export function V2CargoesCreateErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesCreateErrorsReasonEnumToJSON)), + 'items_validation': value['items_validation'] == null ? undefined : (value['items_validation'].map(CargoesCreateV2ErrorsItemValidationToJSON)), + }; +} diff --git a/dist/esm/models/V2CargoesCreateInfoV2Request.d.ts b/dist/esm/models/V2CargoesCreateInfoV2Request.d.ts new file mode 100644 index 0000000..b223399 --- /dev/null +++ b/dist/esm/models/V2CargoesCreateInfoV2Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2CargoesCreateInfoV2Request + */ +export interface V2CargoesCreateInfoV2Request { + /** + * Идентификатор операции. + * @type {string} + * @memberof V2CargoesCreateInfoV2Request + */ + operation_id: string; +} +/** + * Check if a given object implements the V2CargoesCreateInfoV2Request interface. + */ +export declare function instanceOfV2CargoesCreateInfoV2Request(value: object): value is V2CargoesCreateInfoV2Request; +export declare function V2CargoesCreateInfoV2RequestFromJSON(json: any): V2CargoesCreateInfoV2Request; +export declare function V2CargoesCreateInfoV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CargoesCreateInfoV2Request; +export declare function V2CargoesCreateInfoV2RequestToJSON(value?: V2CargoesCreateInfoV2Request | null): any; diff --git a/dist/esm/models/V2CargoesCreateInfoV2Request.js b/dist/esm/models/V2CargoesCreateInfoV2Request.js new file mode 100644 index 0000000..e5afd14 --- /dev/null +++ b/dist/esm/models/V2CargoesCreateInfoV2Request.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2CargoesCreateInfoV2Request interface. + */ +export function instanceOfV2CargoesCreateInfoV2Request(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +export function V2CargoesCreateInfoV2RequestFromJSON(json) { + return V2CargoesCreateInfoV2RequestFromJSONTyped(json, false); +} +export function V2CargoesCreateInfoV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +export function V2CargoesCreateInfoV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/V2CargoesCreateInfoV2Response.d.ts b/dist/esm/models/V2CargoesCreateInfoV2Response.d.ts new file mode 100644 index 0000000..3bfbe0d --- /dev/null +++ b/dist/esm/models/V2CargoesCreateInfoV2Response.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesCreateInfoV2ResponseStatusEnum } from './CargoesCreateInfoV2ResponseStatusEnum'; +import type { V2CargoesCreateErrors } from './V2CargoesCreateErrors'; +import type { CargoesCreateInfoV2ResponseResult } from './CargoesCreateInfoV2ResponseResult'; +/** + * + * @export + * @interface V2CargoesCreateInfoV2Response + */ +export interface V2CargoesCreateInfoV2Response { + /** + * + * @type {V2CargoesCreateErrors} + * @memberof V2CargoesCreateInfoV2Response + */ + errors?: V2CargoesCreateErrors; + /** + * + * @type {CargoesCreateInfoV2ResponseResult} + * @memberof V2CargoesCreateInfoV2Response + */ + result?: CargoesCreateInfoV2ResponseResult; + /** + * + * @type {CargoesCreateInfoV2ResponseStatusEnum} + * @memberof V2CargoesCreateInfoV2Response + */ + status?: CargoesCreateInfoV2ResponseStatusEnum; +} +/** + * Check if a given object implements the V2CargoesCreateInfoV2Response interface. + */ +export declare function instanceOfV2CargoesCreateInfoV2Response(value: object): value is V2CargoesCreateInfoV2Response; +export declare function V2CargoesCreateInfoV2ResponseFromJSON(json: any): V2CargoesCreateInfoV2Response; +export declare function V2CargoesCreateInfoV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CargoesCreateInfoV2Response; +export declare function V2CargoesCreateInfoV2ResponseToJSON(value?: V2CargoesCreateInfoV2Response | null): any; diff --git a/dist/esm/models/V2CargoesCreateInfoV2Response.js b/dist/esm/models/V2CargoesCreateInfoV2Response.js new file mode 100644 index 0000000..2a4d04a --- /dev/null +++ b/dist/esm/models/V2CargoesCreateInfoV2Response.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CargoesCreateInfoV2ResponseStatusEnumFromJSON, CargoesCreateInfoV2ResponseStatusEnumToJSON, } from './CargoesCreateInfoV2ResponseStatusEnum'; +import { V2CargoesCreateErrorsFromJSON, V2CargoesCreateErrorsToJSON, } from './V2CargoesCreateErrors'; +import { CargoesCreateInfoV2ResponseResultFromJSON, CargoesCreateInfoV2ResponseResultToJSON, } from './CargoesCreateInfoV2ResponseResult'; +/** + * Check if a given object implements the V2CargoesCreateInfoV2Response interface. + */ +export function instanceOfV2CargoesCreateInfoV2Response(value) { + return true; +} +export function V2CargoesCreateInfoV2ResponseFromJSON(json) { + return V2CargoesCreateInfoV2ResponseFromJSONTyped(json, false); +} +export function V2CargoesCreateInfoV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : V2CargoesCreateErrorsFromJSON(json['errors']), + 'result': json['result'] == null ? undefined : CargoesCreateInfoV2ResponseResultFromJSON(json['result']), + 'status': json['status'] == null ? undefined : CargoesCreateInfoV2ResponseStatusEnumFromJSON(json['status']), + }; +} +export function V2CargoesCreateInfoV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': V2CargoesCreateErrorsToJSON(value['errors']), + 'result': CargoesCreateInfoV2ResponseResultToJSON(value['result']), + 'status': CargoesCreateInfoV2ResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V2CarriageDeliveryListV2Request.d.ts b/dist/esm/models/V2CarriageDeliveryListV2Request.d.ts new file mode 100644 index 0000000..7a50c73 --- /dev/null +++ b/dist/esm/models/V2CarriageDeliveryListV2Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CarriageDeliveryListV2RequestFilter } from './CarriageDeliveryListV2RequestFilter'; +/** + * + * @export + * @interface V2CarriageDeliveryListV2Request + */ +export interface V2CarriageDeliveryListV2Request { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2CarriageDeliveryListV2Request + */ + cursor?: string; + /** + * + * @type {CarriageDeliveryListV2RequestFilter} + * @memberof V2CarriageDeliveryListV2Request + */ + filter?: CarriageDeliveryListV2RequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V2CarriageDeliveryListV2Request + */ + limit: number; +} +/** + * Check if a given object implements the V2CarriageDeliveryListV2Request interface. + */ +export declare function instanceOfV2CarriageDeliveryListV2Request(value: object): value is V2CarriageDeliveryListV2Request; +export declare function V2CarriageDeliveryListV2RequestFromJSON(json: any): V2CarriageDeliveryListV2Request; +export declare function V2CarriageDeliveryListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CarriageDeliveryListV2Request; +export declare function V2CarriageDeliveryListV2RequestToJSON(value?: V2CarriageDeliveryListV2Request | null): any; diff --git a/dist/esm/models/V2CarriageDeliveryListV2Request.js b/dist/esm/models/V2CarriageDeliveryListV2Request.js new file mode 100644 index 0000000..f7320ff --- /dev/null +++ b/dist/esm/models/V2CarriageDeliveryListV2Request.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CarriageDeliveryListV2RequestFilterFromJSON, CarriageDeliveryListV2RequestFilterToJSON, } from './CarriageDeliveryListV2RequestFilter'; +/** + * Check if a given object implements the V2CarriageDeliveryListV2Request interface. + */ +export function instanceOfV2CarriageDeliveryListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V2CarriageDeliveryListV2RequestFromJSON(json) { + return V2CarriageDeliveryListV2RequestFromJSONTyped(json, false); +} +export function V2CarriageDeliveryListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : CarriageDeliveryListV2RequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function V2CarriageDeliveryListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': CarriageDeliveryListV2RequestFilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V2CarriageDeliveryListV2Response.d.ts b/dist/esm/models/V2CarriageDeliveryListV2Response.d.ts new file mode 100644 index 0000000..6f31aaa --- /dev/null +++ b/dist/esm/models/V2CarriageDeliveryListV2Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CarriageDeliveryListV2ResponseDeliveryMethod } from './CarriageDeliveryListV2ResponseDeliveryMethod'; +/** + * + * @export + * @interface V2CarriageDeliveryListV2Response + */ +export interface V2CarriageDeliveryListV2Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2CarriageDeliveryListV2Response + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все методы доставки. + * + * @type {boolean} + * @memberof V2CarriageDeliveryListV2Response + */ + has_next?: boolean; + /** + * Список методов доставки. + * @type {Array} + * @memberof V2CarriageDeliveryListV2Response + */ + methods?: Array; +} +/** + * Check if a given object implements the V2CarriageDeliveryListV2Response interface. + */ +export declare function instanceOfV2CarriageDeliveryListV2Response(value: object): value is V2CarriageDeliveryListV2Response; +export declare function V2CarriageDeliveryListV2ResponseFromJSON(json: any): V2CarriageDeliveryListV2Response; +export declare function V2CarriageDeliveryListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CarriageDeliveryListV2Response; +export declare function V2CarriageDeliveryListV2ResponseToJSON(value?: V2CarriageDeliveryListV2Response | null): any; diff --git a/dist/esm/models/V2CarriageDeliveryListV2Response.js b/dist/esm/models/V2CarriageDeliveryListV2Response.js new file mode 100644 index 0000000..9507a3d --- /dev/null +++ b/dist/esm/models/V2CarriageDeliveryListV2Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CarriageDeliveryListV2ResponseDeliveryMethodFromJSON, CarriageDeliveryListV2ResponseDeliveryMethodToJSON, } from './CarriageDeliveryListV2ResponseDeliveryMethod'; +/** + * Check if a given object implements the V2CarriageDeliveryListV2Response interface. + */ +export function instanceOfV2CarriageDeliveryListV2Response(value) { + return true; +} +export function V2CarriageDeliveryListV2ResponseFromJSON(json) { + return V2CarriageDeliveryListV2ResponseFromJSONTyped(json, false); +} +export function V2CarriageDeliveryListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'methods': json['methods'] == null ? undefined : (json['methods'].map(CarriageDeliveryListV2ResponseDeliveryMethodFromJSON)), + }; +} +export function V2CarriageDeliveryListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'methods': value['methods'] == null ? undefined : (value['methods'].map(CarriageDeliveryListV2ResponseDeliveryMethodToJSON)), + }; +} diff --git a/dist/esm/models/V2ChatReadResponse.d.ts b/dist/esm/models/V2ChatReadResponse.d.ts new file mode 100644 index 0000000..204506a --- /dev/null +++ b/dist/esm/models/V2ChatReadResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ChatReadResponse + */ +export interface V2ChatReadResponse { + /** + * Количество непрочитанных сообщений в чате. + * @type {number} + * @memberof V2ChatReadResponse + */ + unread_count?: number; +} +/** + * Check if a given object implements the V2ChatReadResponse interface. + */ +export declare function instanceOfV2ChatReadResponse(value: object): value is V2ChatReadResponse; +export declare function V2ChatReadResponseFromJSON(json: any): V2ChatReadResponse; +export declare function V2ChatReadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ChatReadResponse; +export declare function V2ChatReadResponseToJSON(value?: V2ChatReadResponse | null): any; diff --git a/dist/esm/models/V2ChatReadResponse.js b/dist/esm/models/V2ChatReadResponse.js new file mode 100644 index 0000000..8385585 --- /dev/null +++ b/dist/esm/models/V2ChatReadResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ChatReadResponse interface. + */ +export function instanceOfV2ChatReadResponse(value) { + return true; +} +export function V2ChatReadResponseFromJSON(json) { + return V2ChatReadResponseFromJSONTyped(json, false); +} +export function V2ChatReadResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'unread_count': json['unread_count'] == null ? undefined : json['unread_count'], + }; +} +export function V2ChatReadResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'unread_count': value['unread_count'], + }; +} diff --git a/dist/esm/models/V2ConditionalCancellationMoveV2Request.d.ts b/dist/esm/models/V2ConditionalCancellationMoveV2Request.d.ts new file mode 100644 index 0000000..2105cb9 --- /dev/null +++ b/dist/esm/models/V2ConditionalCancellationMoveV2Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ConditionalCancellationMoveV2Request + */ +export interface V2ConditionalCancellationMoveV2Request { + /** + * Идентификатор заявки на отмену. + * @type {number} + * @memberof V2ConditionalCancellationMoveV2Request + */ + cancellation_id: number; + /** + * Комментарий. + * @type {string} + * @memberof V2ConditionalCancellationMoveV2Request + */ + comment?: string; +} +/** + * Check if a given object implements the V2ConditionalCancellationMoveV2Request interface. + */ +export declare function instanceOfV2ConditionalCancellationMoveV2Request(value: object): value is V2ConditionalCancellationMoveV2Request; +export declare function V2ConditionalCancellationMoveV2RequestFromJSON(json: any): V2ConditionalCancellationMoveV2Request; +export declare function V2ConditionalCancellationMoveV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ConditionalCancellationMoveV2Request; +export declare function V2ConditionalCancellationMoveV2RequestToJSON(value?: V2ConditionalCancellationMoveV2Request | null): any; diff --git a/dist/esm/models/V2ConditionalCancellationMoveV2Request.js b/dist/esm/models/V2ConditionalCancellationMoveV2Request.js new file mode 100644 index 0000000..c844013 --- /dev/null +++ b/dist/esm/models/V2ConditionalCancellationMoveV2Request.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ConditionalCancellationMoveV2Request interface. + */ +export function instanceOfV2ConditionalCancellationMoveV2Request(value) { + if (!('cancellation_id' in value) || value['cancellation_id'] === undefined) + return false; + return true; +} +export function V2ConditionalCancellationMoveV2RequestFromJSON(json) { + return V2ConditionalCancellationMoveV2RequestFromJSONTyped(json, false); +} +export function V2ConditionalCancellationMoveV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_id': json['cancellation_id'], + 'comment': json['comment'] == null ? undefined : json['comment'], + }; +} +export function V2ConditionalCancellationMoveV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_id': value['cancellation_id'], + 'comment': value['comment'], + }; +} diff --git a/dist/esm/models/V2CreateLabelBatchResponse.d.ts b/dist/esm/models/V2CreateLabelBatchResponse.d.ts new file mode 100644 index 0000000..bda3917 --- /dev/null +++ b/dist/esm/models/V2CreateLabelBatchResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CreateLabelBatchResponseResult } from './V2CreateLabelBatchResponseResult'; +/** + * + * @export + * @interface V2CreateLabelBatchResponse + */ +export interface V2CreateLabelBatchResponse { + /** + * + * @type {V2CreateLabelBatchResponseResult} + * @memberof V2CreateLabelBatchResponse + */ + result?: V2CreateLabelBatchResponseResult; +} +/** + * Check if a given object implements the V2CreateLabelBatchResponse interface. + */ +export declare function instanceOfV2CreateLabelBatchResponse(value: object): value is V2CreateLabelBatchResponse; +export declare function V2CreateLabelBatchResponseFromJSON(json: any): V2CreateLabelBatchResponse; +export declare function V2CreateLabelBatchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CreateLabelBatchResponse; +export declare function V2CreateLabelBatchResponseToJSON(value?: V2CreateLabelBatchResponse | null): any; diff --git a/dist/esm/models/V2CreateLabelBatchResponse.js b/dist/esm/models/V2CreateLabelBatchResponse.js new file mode 100644 index 0000000..7096c01 --- /dev/null +++ b/dist/esm/models/V2CreateLabelBatchResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2CreateLabelBatchResponseResultFromJSON, V2CreateLabelBatchResponseResultToJSON, } from './V2CreateLabelBatchResponseResult'; +/** + * Check if a given object implements the V2CreateLabelBatchResponse interface. + */ +export function instanceOfV2CreateLabelBatchResponse(value) { + return true; +} +export function V2CreateLabelBatchResponseFromJSON(json) { + return V2CreateLabelBatchResponseFromJSONTyped(json, false); +} +export function V2CreateLabelBatchResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V2CreateLabelBatchResponseResultFromJSON(json['result']), + }; +} +export function V2CreateLabelBatchResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V2CreateLabelBatchResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V2CreateLabelBatchResponseResult.d.ts b/dist/esm/models/V2CreateLabelBatchResponseResult.d.ts new file mode 100644 index 0000000..924f1ec --- /dev/null +++ b/dist/esm/models/V2CreateLabelBatchResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CreateLabelBatchResponseResultTasks } from './V2CreateLabelBatchResponseResultTasks'; +/** + * Результат работы метода. + * @export + * @interface V2CreateLabelBatchResponseResult + */ +export interface V2CreateLabelBatchResponseResult { + /** + * Список заданий. + * @type {Array} + * @memberof V2CreateLabelBatchResponseResult + */ + tasks?: Array; +} +/** + * Check if a given object implements the V2CreateLabelBatchResponseResult interface. + */ +export declare function instanceOfV2CreateLabelBatchResponseResult(value: object): value is V2CreateLabelBatchResponseResult; +export declare function V2CreateLabelBatchResponseResultFromJSON(json: any): V2CreateLabelBatchResponseResult; +export declare function V2CreateLabelBatchResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CreateLabelBatchResponseResult; +export declare function V2CreateLabelBatchResponseResultToJSON(value?: V2CreateLabelBatchResponseResult | null): any; diff --git a/dist/esm/models/V2CreateLabelBatchResponseResult.js b/dist/esm/models/V2CreateLabelBatchResponseResult.js new file mode 100644 index 0000000..9910979 --- /dev/null +++ b/dist/esm/models/V2CreateLabelBatchResponseResult.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2CreateLabelBatchResponseResultTasksFromJSON, V2CreateLabelBatchResponseResultTasksToJSON, } from './V2CreateLabelBatchResponseResultTasks'; +/** + * Check if a given object implements the V2CreateLabelBatchResponseResult interface. + */ +export function instanceOfV2CreateLabelBatchResponseResult(value) { + return true; +} +export function V2CreateLabelBatchResponseResultFromJSON(json) { + return V2CreateLabelBatchResponseResultFromJSONTyped(json, false); +} +export function V2CreateLabelBatchResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tasks': json['tasks'] == null ? undefined : (json['tasks'].map(V2CreateLabelBatchResponseResultTasksFromJSON)), + }; +} +export function V2CreateLabelBatchResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'tasks': value['tasks'] == null ? undefined : (value['tasks'].map(V2CreateLabelBatchResponseResultTasksToJSON)), + }; +} diff --git a/dist/esm/models/V2CreateLabelBatchResponseResultTasks.d.ts b/dist/esm/models/V2CreateLabelBatchResponseResultTasks.d.ts new file mode 100644 index 0000000..6837431 --- /dev/null +++ b/dist/esm/models/V2CreateLabelBatchResponseResultTasks.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2CreateLabelBatchResponseResultTasks + */ +export interface V2CreateLabelBatchResponseResultTasks { + /** + * Идентификатор задания на формирование этикеток. В зависимости от типа этикетки передайте значение в метод [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * @type {number} + * @memberof V2CreateLabelBatchResponseResultTasks + */ + task_id?: number; + /** + * Тип задания на формирование этикеток: + * - `big_label` — для обычной этикетки, + * - `small_label` — для маленькой этикетки. + * + * @type {string} + * @memberof V2CreateLabelBatchResponseResultTasks + */ + task_type?: string; +} +/** + * Check if a given object implements the V2CreateLabelBatchResponseResultTasks interface. + */ +export declare function instanceOfV2CreateLabelBatchResponseResultTasks(value: object): value is V2CreateLabelBatchResponseResultTasks; +export declare function V2CreateLabelBatchResponseResultTasksFromJSON(json: any): V2CreateLabelBatchResponseResultTasks; +export declare function V2CreateLabelBatchResponseResultTasksFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CreateLabelBatchResponseResultTasks; +export declare function V2CreateLabelBatchResponseResultTasksToJSON(value?: V2CreateLabelBatchResponseResultTasks | null): any; diff --git a/dist/esm/models/V2CreateLabelBatchResponseResultTasks.js b/dist/esm/models/V2CreateLabelBatchResponseResultTasks.js new file mode 100644 index 0000000..f65e946 --- /dev/null +++ b/dist/esm/models/V2CreateLabelBatchResponseResultTasks.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2CreateLabelBatchResponseResultTasks interface. + */ +export function instanceOfV2CreateLabelBatchResponseResultTasks(value) { + return true; +} +export function V2CreateLabelBatchResponseResultTasksFromJSON(json) { + return V2CreateLabelBatchResponseResultTasksFromJSONTyped(json, false); +} +export function V2CreateLabelBatchResponseResultTasksFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + 'task_type': json['task_type'] == null ? undefined : json['task_type'], + }; +} +export function V2CreateLabelBatchResponseResultTasksToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + 'task_type': value['task_type'], + }; +} diff --git a/dist/esm/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.d.ts b/dist/esm/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.d.ts new file mode 100644 index 0000000..ea9f451 --- /dev/null +++ b/dist/esm/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `MIX` — на выбор Ozon; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export declare const V2DeliveryCheckoutRequestV2DeliverySchemaEnum: { + readonly MIX: "MIX"; + readonly FBO: "FBO"; + readonly FBS: "FBS"; +}; +export type V2DeliveryCheckoutRequestV2DeliverySchemaEnum = typeof V2DeliveryCheckoutRequestV2DeliverySchemaEnum[keyof typeof V2DeliveryCheckoutRequestV2DeliverySchemaEnum]; +export declare function instanceOfV2DeliveryCheckoutRequestV2DeliverySchemaEnum(value: any): boolean; +export declare function V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON(json: any): V2DeliveryCheckoutRequestV2DeliverySchemaEnum; +export declare function V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DeliveryCheckoutRequestV2DeliverySchemaEnum; +export declare function V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON(value?: V2DeliveryCheckoutRequestV2DeliverySchemaEnum | null): any; diff --git a/dist/esm/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.js b/dist/esm/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.js new file mode 100644 index 0000000..8684f83 --- /dev/null +++ b/dist/esm/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `MIX` — на выбор Ozon; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export const V2DeliveryCheckoutRequestV2DeliverySchemaEnum = { + MIX: 'MIX', + FBO: 'FBO', + FBS: 'FBS' +}; +export function instanceOfV2DeliveryCheckoutRequestV2DeliverySchemaEnum(value) { + for (const key in V2DeliveryCheckoutRequestV2DeliverySchemaEnum) { + if (Object.prototype.hasOwnProperty.call(V2DeliveryCheckoutRequestV2DeliverySchemaEnum, key)) { + if (V2DeliveryCheckoutRequestV2DeliverySchemaEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON(json) { + return V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSONTyped(json, false); +} +export function V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2DeliveryMethodListV2Request.d.ts b/dist/esm/models/V2DeliveryMethodListV2Request.d.ts new file mode 100644 index 0000000..de8b970 --- /dev/null +++ b/dist/esm/models/V2DeliveryMethodListV2Request.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodListV2RequestFilter } from './DeliveryMethodListV2RequestFilter'; +import type { DeliveryMethodListV2RequestSortDirEnum } from './DeliveryMethodListV2RequestSortDirEnum'; +/** + * + * @export + * @interface V2DeliveryMethodListV2Request + */ +export interface V2DeliveryMethodListV2Request { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2DeliveryMethodListV2Request + */ + cursor?: string; + /** + * + * @type {DeliveryMethodListV2RequestFilter} + * @memberof V2DeliveryMethodListV2Request + */ + filter?: DeliveryMethodListV2RequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V2DeliveryMethodListV2Request + */ + limit: number; + /** + * + * @type {DeliveryMethodListV2RequestSortDirEnum} + * @memberof V2DeliveryMethodListV2Request + */ + sort_dir?: DeliveryMethodListV2RequestSortDirEnum; +} +/** + * Check if a given object implements the V2DeliveryMethodListV2Request interface. + */ +export declare function instanceOfV2DeliveryMethodListV2Request(value: object): value is V2DeliveryMethodListV2Request; +export declare function V2DeliveryMethodListV2RequestFromJSON(json: any): V2DeliveryMethodListV2Request; +export declare function V2DeliveryMethodListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DeliveryMethodListV2Request; +export declare function V2DeliveryMethodListV2RequestToJSON(value?: V2DeliveryMethodListV2Request | null): any; diff --git a/dist/esm/models/V2DeliveryMethodListV2Request.js b/dist/esm/models/V2DeliveryMethodListV2Request.js new file mode 100644 index 0000000..3b276a9 --- /dev/null +++ b/dist/esm/models/V2DeliveryMethodListV2Request.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMethodListV2RequestFilterFromJSON, DeliveryMethodListV2RequestFilterToJSON, } from './DeliveryMethodListV2RequestFilter'; +import { DeliveryMethodListV2RequestSortDirEnumFromJSON, DeliveryMethodListV2RequestSortDirEnumToJSON, } from './DeliveryMethodListV2RequestSortDirEnum'; +/** + * Check if a given object implements the V2DeliveryMethodListV2Request interface. + */ +export function instanceOfV2DeliveryMethodListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V2DeliveryMethodListV2RequestFromJSON(json) { + return V2DeliveryMethodListV2RequestFromJSONTyped(json, false); +} +export function V2DeliveryMethodListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : DeliveryMethodListV2RequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : DeliveryMethodListV2RequestSortDirEnumFromJSON(json['sort_dir']), + }; +} +export function V2DeliveryMethodListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': DeliveryMethodListV2RequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'sort_dir': DeliveryMethodListV2RequestSortDirEnumToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/V2DeliveryMethodListV2Response.d.ts b/dist/esm/models/V2DeliveryMethodListV2Response.d.ts new file mode 100644 index 0000000..2cf40db --- /dev/null +++ b/dist/esm/models/V2DeliveryMethodListV2Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodListV2ResponseDeliveryMethod } from './DeliveryMethodListV2ResponseDeliveryMethod'; +/** + * + * @export + * @interface V2DeliveryMethodListV2Response + */ +export interface V2DeliveryMethodListV2Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2DeliveryMethodListV2Response + */ + cursor?: string; + /** + * `true`, если в ответе вернули не все методы доставки. + * + * @type {boolean} + * @memberof V2DeliveryMethodListV2Response + */ + has_next?: boolean; + /** + * Методы доставки. + * @type {Array} + * @memberof V2DeliveryMethodListV2Response + */ + delivery_methods?: Array; +} +/** + * Check if a given object implements the V2DeliveryMethodListV2Response interface. + */ +export declare function instanceOfV2DeliveryMethodListV2Response(value: object): value is V2DeliveryMethodListV2Response; +export declare function V2DeliveryMethodListV2ResponseFromJSON(json: any): V2DeliveryMethodListV2Response; +export declare function V2DeliveryMethodListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DeliveryMethodListV2Response; +export declare function V2DeliveryMethodListV2ResponseToJSON(value?: V2DeliveryMethodListV2Response | null): any; diff --git a/dist/esm/models/V2DeliveryMethodListV2Response.js b/dist/esm/models/V2DeliveryMethodListV2Response.js new file mode 100644 index 0000000..709a474 --- /dev/null +++ b/dist/esm/models/V2DeliveryMethodListV2Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMethodListV2ResponseDeliveryMethodFromJSON, DeliveryMethodListV2ResponseDeliveryMethodToJSON, } from './DeliveryMethodListV2ResponseDeliveryMethod'; +/** + * Check if a given object implements the V2DeliveryMethodListV2Response interface. + */ +export function instanceOfV2DeliveryMethodListV2Response(value) { + return true; +} +export function V2DeliveryMethodListV2ResponseFromJSON(json) { + return V2DeliveryMethodListV2ResponseFromJSONTyped(json, false); +} +export function V2DeliveryMethodListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'delivery_methods': json['delivery_methods'] == null ? undefined : (json['delivery_methods'].map(DeliveryMethodListV2ResponseDeliveryMethodFromJSON)), + }; +} +export function V2DeliveryMethodListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'delivery_methods': value['delivery_methods'] == null ? undefined : (value['delivery_methods'].map(DeliveryMethodListV2ResponseDeliveryMethodToJSON)), + }; +} diff --git a/dist/esm/models/V2DraftClusterListResponse.d.ts b/dist/esm/models/V2DraftClusterListResponse.d.ts new file mode 100644 index 0000000..6b1a934 --- /dev/null +++ b/dist/esm/models/V2DraftClusterListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftClusterListResponseResult } from './V2DraftClusterListResponseResult'; +/** + * + * @export + * @interface V2DraftClusterListResponse + */ +export interface V2DraftClusterListResponse { + /** + * Список кластеров. + * @type {Array} + * @memberof V2DraftClusterListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2DraftClusterListResponse interface. + */ +export declare function instanceOfV2DraftClusterListResponse(value: object): value is V2DraftClusterListResponse; +export declare function V2DraftClusterListResponseFromJSON(json: any): V2DraftClusterListResponse; +export declare function V2DraftClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftClusterListResponse; +export declare function V2DraftClusterListResponseToJSON(value?: V2DraftClusterListResponse | null): any; diff --git a/dist/esm/models/V2DraftClusterListResponse.js b/dist/esm/models/V2DraftClusterListResponse.js new file mode 100644 index 0000000..32c61cf --- /dev/null +++ b/dist/esm/models/V2DraftClusterListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2DraftClusterListResponseResultFromJSON, V2DraftClusterListResponseResultToJSON, } from './V2DraftClusterListResponseResult'; +/** + * Check if a given object implements the V2DraftClusterListResponse interface. + */ +export function instanceOfV2DraftClusterListResponse(value) { + return true; +} +export function V2DraftClusterListResponseFromJSON(json) { + return V2DraftClusterListResponseFromJSONTyped(json, false); +} +export function V2DraftClusterListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2DraftClusterListResponseResultFromJSON)), + }; +} +export function V2DraftClusterListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2DraftClusterListResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/V2DraftClusterListResponseResult.d.ts b/dist/esm/models/V2DraftClusterListResponseResult.d.ts new file mode 100644 index 0000000..a733dba --- /dev/null +++ b/dist/esm/models/V2DraftClusterListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultData } from './ResultData'; +/** + * + * @export + * @interface V2DraftClusterListResponseResult + */ +export interface V2DraftClusterListResponseResult { + /** + * + * @type {ResultData} + * @memberof V2DraftClusterListResponseResult + */ + data?: ResultData; + /** + * Идентификатор кластера. + * @type {number} + * @memberof V2DraftClusterListResponseResult + */ + macrolocal_cluster_id?: number; +} +/** + * Check if a given object implements the V2DraftClusterListResponseResult interface. + */ +export declare function instanceOfV2DraftClusterListResponseResult(value: object): value is V2DraftClusterListResponseResult; +export declare function V2DraftClusterListResponseResultFromJSON(json: any): V2DraftClusterListResponseResult; +export declare function V2DraftClusterListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftClusterListResponseResult; +export declare function V2DraftClusterListResponseResultToJSON(value?: V2DraftClusterListResponseResult | null): any; diff --git a/dist/esm/models/V2DraftClusterListResponseResult.js b/dist/esm/models/V2DraftClusterListResponseResult.js new file mode 100644 index 0000000..8bc61ea --- /dev/null +++ b/dist/esm/models/V2DraftClusterListResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ResultDataFromJSON, ResultDataToJSON, } from './ResultData'; +/** + * Check if a given object implements the V2DraftClusterListResponseResult interface. + */ +export function instanceOfV2DraftClusterListResponseResult(value) { + return true; +} +export function V2DraftClusterListResponseResultFromJSON(json) { + return V2DraftClusterListResponseResultFromJSONTyped(json, false); +} +export function V2DraftClusterListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': json['data'] == null ? undefined : ResultDataFromJSON(json['data']), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + }; +} +export function V2DraftClusterListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'data': ResultDataToJSON(value['data']), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + }; +} diff --git a/dist/esm/models/V2DraftCreateInfoRequest.d.ts b/dist/esm/models/V2DraftCreateInfoRequest.d.ts new file mode 100644 index 0000000..62e78c3 --- /dev/null +++ b/dist/esm/models/V2DraftCreateInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2DraftCreateInfoRequest + */ +export interface V2DraftCreateInfoRequest { + /** + * Идентификатор черновика из методов [/v1/draft/crossdock/create](#operation/DraftCrossdockCreate), [/v1/draft/direct/create](#operation/DraftDirectCreate) или [/v1/draft/multi-cluster/create](#operation/DraftMultiClusterCreate). + * @type {number} + * @memberof V2DraftCreateInfoRequest + */ + draft_id: number; +} +/** + * Check if a given object implements the V2DraftCreateInfoRequest interface. + */ +export declare function instanceOfV2DraftCreateInfoRequest(value: object): value is V2DraftCreateInfoRequest; +export declare function V2DraftCreateInfoRequestFromJSON(json: any): V2DraftCreateInfoRequest; +export declare function V2DraftCreateInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftCreateInfoRequest; +export declare function V2DraftCreateInfoRequestToJSON(value?: V2DraftCreateInfoRequest | null): any; diff --git a/dist/esm/models/V2DraftCreateInfoRequest.js b/dist/esm/models/V2DraftCreateInfoRequest.js new file mode 100644 index 0000000..c93e3f6 --- /dev/null +++ b/dist/esm/models/V2DraftCreateInfoRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2DraftCreateInfoRequest interface. + */ +export function instanceOfV2DraftCreateInfoRequest(value) { + if (!('draft_id' in value) || value['draft_id'] === undefined) + return false; + return true; +} +export function V2DraftCreateInfoRequestFromJSON(json) { + return V2DraftCreateInfoRequestFromJSONTyped(json, false); +} +export function V2DraftCreateInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'], + }; +} +export function V2DraftCreateInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + }; +} diff --git a/dist/esm/models/V2DraftCreateInfoResponse.d.ts b/dist/esm/models/V2DraftCreateInfoResponse.d.ts new file mode 100644 index 0000000..2c4bc77 --- /dev/null +++ b/dist/esm/models/V2DraftCreateInfoResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftCreateInfoResponseStatusEnum } from './V2DraftCreateInfoResponseStatusEnum'; +import type { DraftCreateInfoResponseCluster } from './DraftCreateInfoResponseCluster'; +import type { DraftCreateInfoResponseError } from './DraftCreateInfoResponseError'; +/** + * + * @export + * @interface V2DraftCreateInfoResponse + */ +export interface V2DraftCreateInfoResponse { + /** + * Кластеры. + * @type {Array} + * @memberof V2DraftCreateInfoResponse + */ + clusters?: Array; + /** + * Ошибки. + * @type {Array} + * @memberof V2DraftCreateInfoResponse + */ + errors?: Array; + /** + * + * @type {V2DraftCreateInfoResponseStatusEnum} + * @memberof V2DraftCreateInfoResponse + */ + status?: V2DraftCreateInfoResponseStatusEnum; +} +/** + * Check if a given object implements the V2DraftCreateInfoResponse interface. + */ +export declare function instanceOfV2DraftCreateInfoResponse(value: object): value is V2DraftCreateInfoResponse; +export declare function V2DraftCreateInfoResponseFromJSON(json: any): V2DraftCreateInfoResponse; +export declare function V2DraftCreateInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftCreateInfoResponse; +export declare function V2DraftCreateInfoResponseToJSON(value?: V2DraftCreateInfoResponse | null): any; diff --git a/dist/esm/models/V2DraftCreateInfoResponse.js b/dist/esm/models/V2DraftCreateInfoResponse.js new file mode 100644 index 0000000..6670189 --- /dev/null +++ b/dist/esm/models/V2DraftCreateInfoResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2DraftCreateInfoResponseStatusEnumFromJSON, V2DraftCreateInfoResponseStatusEnumToJSON, } from './V2DraftCreateInfoResponseStatusEnum'; +import { DraftCreateInfoResponseClusterFromJSON, DraftCreateInfoResponseClusterToJSON, } from './DraftCreateInfoResponseCluster'; +import { DraftCreateInfoResponseErrorFromJSON, DraftCreateInfoResponseErrorToJSON, } from './DraftCreateInfoResponseError'; +/** + * Check if a given object implements the V2DraftCreateInfoResponse interface. + */ +export function instanceOfV2DraftCreateInfoResponse(value) { + return true; +} +export function V2DraftCreateInfoResponseFromJSON(json) { + return V2DraftCreateInfoResponseFromJSONTyped(json, false); +} +export function V2DraftCreateInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'clusters': json['clusters'] == null ? undefined : (json['clusters'].map(DraftCreateInfoResponseClusterFromJSON)), + 'errors': json['errors'] == null ? undefined : (json['errors'].map(DraftCreateInfoResponseErrorFromJSON)), + 'status': json['status'] == null ? undefined : V2DraftCreateInfoResponseStatusEnumFromJSON(json['status']), + }; +} +export function V2DraftCreateInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'clusters': value['clusters'] == null ? undefined : (value['clusters'].map(DraftCreateInfoResponseClusterToJSON)), + 'errors': value['errors'] == null ? undefined : (value['errors'].map(DraftCreateInfoResponseErrorToJSON)), + 'status': V2DraftCreateInfoResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V2DraftCreateInfoResponseStatusEnum.d.ts b/dist/esm/models/V2DraftCreateInfoResponseStatusEnum.d.ts new file mode 100644 index 0000000..84723fc --- /dev/null +++ b/dist/esm/models/V2DraftCreateInfoResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания черновика заявки на поставку: + * - `UNSPECIFIED` — не определён, + * - `SUCCESS` — создан, + * - `IN_PROGRESS` — создаётся, + * - `FAILED` — не удалось создать. + * + * @export + */ +export declare const V2DraftCreateInfoResponseStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type V2DraftCreateInfoResponseStatusEnum = typeof V2DraftCreateInfoResponseStatusEnum[keyof typeof V2DraftCreateInfoResponseStatusEnum]; +export declare function instanceOfV2DraftCreateInfoResponseStatusEnum(value: any): boolean; +export declare function V2DraftCreateInfoResponseStatusEnumFromJSON(json: any): V2DraftCreateInfoResponseStatusEnum; +export declare function V2DraftCreateInfoResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftCreateInfoResponseStatusEnum; +export declare function V2DraftCreateInfoResponseStatusEnumToJSON(value?: V2DraftCreateInfoResponseStatusEnum | null): any; diff --git a/dist/esm/models/V2DraftCreateInfoResponseStatusEnum.js b/dist/esm/models/V2DraftCreateInfoResponseStatusEnum.js new file mode 100644 index 0000000..d34f6bc --- /dev/null +++ b/dist/esm/models/V2DraftCreateInfoResponseStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания черновика заявки на поставку: + * - `UNSPECIFIED` — не определён, + * - `SUCCESS` — создан, + * - `IN_PROGRESS` — создаётся, + * - `FAILED` — не удалось создать. + * + * @export + */ +export const V2DraftCreateInfoResponseStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfV2DraftCreateInfoResponseStatusEnum(value) { + for (const key in V2DraftCreateInfoResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(V2DraftCreateInfoResponseStatusEnum, key)) { + if (V2DraftCreateInfoResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2DraftCreateInfoResponseStatusEnumFromJSON(json) { + return V2DraftCreateInfoResponseStatusEnumFromJSONTyped(json, false); +} +export function V2DraftCreateInfoResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2DraftCreateInfoResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2DraftSupplyCreateRequest.d.ts b/dist/esm/models/V2DraftSupplyCreateRequest.d.ts new file mode 100644 index 0000000..e3ed5bc --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateRequest.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftSupplyCreateRequestTimeslot } from './V2DraftSupplyCreateRequestTimeslot'; +import type { V2DraftSupplyCreateRequestSelectedClusterWarehouse } from './V2DraftSupplyCreateRequestSelectedClusterWarehouse'; +/** + * + * @export + * @interface V2DraftSupplyCreateRequest + */ +export interface V2DraftSupplyCreateRequest { + /** + * Идентификатор черновика из метода [/v2/draft/create/info](#operation/DraftCreateInfo). + * @type {number} + * @memberof V2DraftSupplyCreateRequest + */ + draft_id: number; + /** + * Информация о кластере и складах в нём. Можно передать один кластер для кросс-докинговой и прямой поставки или список всех кластеров для поставки в несколько кластеров. + * @type {Array} + * @memberof V2DraftSupplyCreateRequest + */ + selected_cluster_warehouses: Array; + /** + * + * @type {V2DraftSupplyCreateRequestTimeslot} + * @memberof V2DraftSupplyCreateRequest + */ + timeslot?: V2DraftSupplyCreateRequestTimeslot; + /** + * Тип поставки: + * - `CROSSDOCK` — кросс-докинг; + * - `DIRECT` — прямая; + * - `MULTI_CLUSTER` — для нескольких кластеров. + * + * @type {string} + * @memberof V2DraftSupplyCreateRequest + */ + supply_type: V2DraftSupplyCreateRequestSupplyTypeEnum; +} +/** + * @export + */ +export declare const V2DraftSupplyCreateRequestSupplyTypeEnum: { + readonly CROSSDOCK: "CROSSDOCK"; + readonly DIRECT: "DIRECT"; + readonly MULTI_CLUSTER: "MULTI_CLUSTER"; +}; +export type V2DraftSupplyCreateRequestSupplyTypeEnum = typeof V2DraftSupplyCreateRequestSupplyTypeEnum[keyof typeof V2DraftSupplyCreateRequestSupplyTypeEnum]; +/** + * Check if a given object implements the V2DraftSupplyCreateRequest interface. + */ +export declare function instanceOfV2DraftSupplyCreateRequest(value: object): value is V2DraftSupplyCreateRequest; +export declare function V2DraftSupplyCreateRequestFromJSON(json: any): V2DraftSupplyCreateRequest; +export declare function V2DraftSupplyCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateRequest; +export declare function V2DraftSupplyCreateRequestToJSON(value?: V2DraftSupplyCreateRequest | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateRequest.js b/dist/esm/models/V2DraftSupplyCreateRequest.js new file mode 100644 index 0000000..512ddc8 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateRequest.js @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2DraftSupplyCreateRequestTimeslotFromJSON, V2DraftSupplyCreateRequestTimeslotToJSON, } from './V2DraftSupplyCreateRequestTimeslot'; +import { V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON, V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON, } from './V2DraftSupplyCreateRequestSelectedClusterWarehouse'; +/** + * @export + */ +export const V2DraftSupplyCreateRequestSupplyTypeEnum = { + CROSSDOCK: 'CROSSDOCK', + DIRECT: 'DIRECT', + MULTI_CLUSTER: 'MULTI_CLUSTER' +}; +/** + * Check if a given object implements the V2DraftSupplyCreateRequest interface. + */ +export function instanceOfV2DraftSupplyCreateRequest(value) { + if (!('draft_id' in value) || value['draft_id'] === undefined) + return false; + if (!('selected_cluster_warehouses' in value) || value['selected_cluster_warehouses'] === undefined) + return false; + if (!('supply_type' in value) || value['supply_type'] === undefined) + return false; + return true; +} +export function V2DraftSupplyCreateRequestFromJSON(json) { + return V2DraftSupplyCreateRequestFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'], + 'selected_cluster_warehouses': (json['selected_cluster_warehouses'].map(V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON)), + 'timeslot': json['timeslot'] == null ? undefined : V2DraftSupplyCreateRequestTimeslotFromJSON(json['timeslot']), + 'supply_type': json['supply_type'], + }; +} +export function V2DraftSupplyCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'selected_cluster_warehouses': (value['selected_cluster_warehouses'].map(V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON)), + 'timeslot': V2DraftSupplyCreateRequestTimeslotToJSON(value['timeslot']), + 'supply_type': value['supply_type'], + }; +} diff --git a/dist/esm/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.d.ts b/dist/esm/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.d.ts new file mode 100644 index 0000000..cf7af43 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2DraftSupplyCreateRequestSelectedClusterWarehouse + */ +export interface V2DraftSupplyCreateRequestSelectedClusterWarehouse { + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof V2DraftSupplyCreateRequestSelectedClusterWarehouse + */ + macrolocal_cluster_id: number; + /** + * Идентификатор склада размещения. Получите значение параметра методом [/v2/draft/create/info](#operation/DraftCreateInfo). Только для поставок с типом `DIRECT`. + * @type {number} + * @memberof V2DraftSupplyCreateRequestSelectedClusterWarehouse + */ + storage_warehouse_id: number; +} +/** + * Check if a given object implements the V2DraftSupplyCreateRequestSelectedClusterWarehouse interface. + */ +export declare function instanceOfV2DraftSupplyCreateRequestSelectedClusterWarehouse(value: object): value is V2DraftSupplyCreateRequestSelectedClusterWarehouse; +export declare function V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON(json: any): V2DraftSupplyCreateRequestSelectedClusterWarehouse; +export declare function V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateRequestSelectedClusterWarehouse; +export declare function V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON(value?: V2DraftSupplyCreateRequestSelectedClusterWarehouse | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.js b/dist/esm/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.js new file mode 100644 index 0000000..375456d --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2DraftSupplyCreateRequestSelectedClusterWarehouse interface. + */ +export function instanceOfV2DraftSupplyCreateRequestSelectedClusterWarehouse(value) { + if (!('macrolocal_cluster_id' in value) || value['macrolocal_cluster_id'] === undefined) + return false; + if (!('storage_warehouse_id' in value) || value['storage_warehouse_id'] === undefined) + return false; + return true; +} +export function V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON(json) { + return V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'macrolocal_cluster_id': json['macrolocal_cluster_id'], + 'storage_warehouse_id': json['storage_warehouse_id'], + }; +} +export function V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'storage_warehouse_id': value['storage_warehouse_id'], + }; +} diff --git a/dist/esm/models/V2DraftSupplyCreateRequestTimeslot.d.ts b/dist/esm/models/V2DraftSupplyCreateRequestTimeslot.d.ts new file mode 100644 index 0000000..8520143 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateRequestTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Таймслот поставки. + * @export + * @interface V2DraftSupplyCreateRequestTimeslot + */ +export interface V2DraftSupplyCreateRequestTimeslot { + /** + * Начало таймслота. + * @type {string} + * @memberof V2DraftSupplyCreateRequestTimeslot + */ + from_in_timezone?: string; + /** + * Конец таймслота. + * @type {string} + * @memberof V2DraftSupplyCreateRequestTimeslot + */ + to_in_timezone?: string; +} +/** + * Check if a given object implements the V2DraftSupplyCreateRequestTimeslot interface. + */ +export declare function instanceOfV2DraftSupplyCreateRequestTimeslot(value: object): value is V2DraftSupplyCreateRequestTimeslot; +export declare function V2DraftSupplyCreateRequestTimeslotFromJSON(json: any): V2DraftSupplyCreateRequestTimeslot; +export declare function V2DraftSupplyCreateRequestTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateRequestTimeslot; +export declare function V2DraftSupplyCreateRequestTimeslotToJSON(value?: V2DraftSupplyCreateRequestTimeslot | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateRequestTimeslot.js b/dist/esm/models/V2DraftSupplyCreateRequestTimeslot.js new file mode 100644 index 0000000..dc10d5d --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateRequestTimeslot.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2DraftSupplyCreateRequestTimeslot interface. + */ +export function instanceOfV2DraftSupplyCreateRequestTimeslot(value) { + return true; +} +export function V2DraftSupplyCreateRequestTimeslotFromJSON(json) { + return V2DraftSupplyCreateRequestTimeslotFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateRequestTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from_in_timezone': json['from_in_timezone'] == null ? undefined : json['from_in_timezone'], + 'to_in_timezone': json['to_in_timezone'] == null ? undefined : json['to_in_timezone'], + }; +} +export function V2DraftSupplyCreateRequestTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from_in_timezone': value['from_in_timezone'], + 'to_in_timezone': value['to_in_timezone'], + }; +} diff --git a/dist/esm/models/V2DraftSupplyCreateResponse.d.ts b/dist/esm/models/V2DraftSupplyCreateResponse.d.ts new file mode 100644 index 0000000..652ef74 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateResponse.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftSupplyCreateResponseErrorReasonEnum } from './V2DraftSupplyCreateResponseErrorReasonEnum'; +/** + * + * @export + * @interface V2DraftSupplyCreateResponse + */ +export interface V2DraftSupplyCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V2DraftSupplyCreateResponse + */ + draft_id?: number; + /** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `SOME_SERVICE_ERROR` — ошибка при редактировании поставки; + * - `ORDER_SKU_LIMIT` — количество товаров в поставке больше 5000; + * - `INVALID_QUANTITY_OR_QUANT` — некорректное количество товара или грузомест; + * - `ORDER_ALREADY_CREATED` — заказ уже создан; + * - `ORDER_CREATION_IN_PROGRESS` — создание заказа в процессе; + * - `DRAFT_DOES_NOT_EXIST` — черновик не существует; + * - `CONTRACTOR_CAN_NOT_CREATE_ORDER` — контрагент не может создать заказ; + * - `INACTIVE_CONTRACT` — нельзя редактировать состав поставки с неактивным договором; + * - `DRAFT_INCORRECT_STATE` — некорректный статус черновика; + * - `INVALID_VOLUME` — некорректный объём поставки; + * - `INVALID_ROUTE` — некорректный маршрут; + * - `INVALID_STORAGE_WAREHOUSE` — некорректный склад хранения; + * - `INVALID_STORAGE_REGION` — некорректный регион хранения; + * - `INVALID_SPLITTING` — некорректное разделение; + * - `INVALID_SUPPLY_CONTENT` — некорректное содержимое поставки; + * - `TIMESLOT_NOT_AVAILABLE` — нет доступных таймслотов; + * - `SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE` — требуется распределение SKU, но оно невозможно; + * - `XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER` — поставка кросс-докингом через пункт выдачи заказов недоступна для продавца; + * - `DRAFT_IS_LOCKED` — черновик заблокирован; + * - `INVALID_PACKAGE_UNITS_COUNTS` — некорректное количество грузомест; + * - `SELLER_CONVERSATION_DOES_NOT_EXIST` — точка отгрузки с таким `id` не существует; + * - `USER_CAN_NOT_CREATE_SELLER_CONVERSATION` — пользователь не может создать диалог с продавцом; + * - `SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT` — товар с меткой `is_ettn_required` не разрешён для точки отгрузки; + * - `INVALID_SELLER_WAREHOUSE` — склад продавца недоступен; + * - `PICKUP_ORDER_LIMIT_EXCEEDED` — превышен лимит заказов на самовывоз; + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — некорректный минимальный объём в литрах; + * - `INVALID_CLUSTERS_COUNT` — переданы не все кластеры из расчёта; + * - `CAN_NOT_CREATE_ORDER` — не удалось создать заказ; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof V2DraftSupplyCreateResponse + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the V2DraftSupplyCreateResponse interface. + */ +export declare function instanceOfV2DraftSupplyCreateResponse(value: object): value is V2DraftSupplyCreateResponse; +export declare function V2DraftSupplyCreateResponseFromJSON(json: any): V2DraftSupplyCreateResponse; +export declare function V2DraftSupplyCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateResponse; +export declare function V2DraftSupplyCreateResponseToJSON(value?: V2DraftSupplyCreateResponse | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateResponse.js b/dist/esm/models/V2DraftSupplyCreateResponse.js new file mode 100644 index 0000000..0924f3a --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2DraftSupplyCreateResponseErrorReasonEnumFromJSON, V2DraftSupplyCreateResponseErrorReasonEnumToJSON, } from './V2DraftSupplyCreateResponseErrorReasonEnum'; +/** + * Check if a given object implements the V2DraftSupplyCreateResponse interface. + */ +export function instanceOfV2DraftSupplyCreateResponse(value) { + return true; +} +export function V2DraftSupplyCreateResponseFromJSON(json) { + return V2DraftSupplyCreateResponseFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V2DraftSupplyCreateResponseErrorReasonEnumFromJSON)), + }; +} +export function V2DraftSupplyCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V2DraftSupplyCreateResponseErrorReasonEnumToJSON)), + }; +} diff --git a/dist/esm/models/V2DraftSupplyCreateResponseErrorReasonEnum.d.ts b/dist/esm/models/V2DraftSupplyCreateResponseErrorReasonEnum.d.ts new file mode 100644 index 0000000..67a213d --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateResponseErrorReasonEnum.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V2DraftSupplyCreateResponseErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SOME_SERVICE_ERROR: "SOME_SERVICE_ERROR"; + readonly ORDER_SKU_LIMIT: "ORDER_SKU_LIMIT"; + readonly INVALID_QUANTITY_OR_QUANT: "INVALID_QUANTITY_OR_QUANT"; + readonly ORDER_ALREADY_CREATED: "ORDER_ALREADY_CREATED"; + readonly ORDER_CREATION_IN_PROGRESS: "ORDER_CREATION_IN_PROGRESS"; + readonly DRAFT_DOES_NOT_EXIST: "DRAFT_DOES_NOT_EXIST"; + readonly CONTRACTOR_CAN_NOT_CREATE_ORDER: "CONTRACTOR_CAN_NOT_CREATE_ORDER"; + readonly INACTIVE_CONTRACT: "INACTIVE_CONTRACT"; + readonly DRAFT_INCORRECT_STATE: "DRAFT_INCORRECT_STATE"; + readonly INVALID_VOLUME: "INVALID_VOLUME"; + readonly INVALID_ROUTE: "INVALID_ROUTE"; + readonly INVALID_STORAGE_WAREHOUSE: "INVALID_STORAGE_WAREHOUSE"; + readonly INVALID_STORAGE_REGION: "INVALID_STORAGE_REGION"; + readonly INVALID_SPLITTING: "INVALID_SPLITTING"; + readonly INVALID_SUPPLY_CONTENT: "INVALID_SUPPLY_CONTENT"; + readonly TIMESLOT_NOT_AVAILABLE: "TIMESLOT_NOT_AVAILABLE"; + readonly SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: "SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE"; + readonly XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: "XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER"; + readonly DRAFT_IS_LOCKED: "DRAFT_IS_LOCKED"; + readonly INVALID_PACKAGE_UNITS_COUNTS: "INVALID_PACKAGE_UNITS_COUNTS"; + readonly SELLER_CONVERSATION_DOES_NOT_EXIST: "SELLER_CONVERSATION_DOES_NOT_EXIST"; + readonly USER_CAN_NOT_CREATE_SELLER_CONVERSATION: "USER_CAN_NOT_CREATE_SELLER_CONVERSATION"; + readonly SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT: "SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT"; + readonly INVALID_SELLER_WAREHOUSE: "INVALID_SELLER_WAREHOUSE"; + readonly PICKUP_ORDER_LIMIT_EXCEEDED: "PICKUP_ORDER_LIMIT_EXCEEDED"; + readonly MINIMUM_VOLUME_IN_LITRES_INVALID: "MINIMUM_VOLUME_IN_LITRES_INVALID"; + readonly INVALID_CLUSTERS_COUNT: "INVALID_CLUSTERS_COUNT"; + readonly CAN_NOT_CREATE_ORDER: "CAN_NOT_CREATE_ORDER"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type V2DraftSupplyCreateResponseErrorReasonEnum = typeof V2DraftSupplyCreateResponseErrorReasonEnum[keyof typeof V2DraftSupplyCreateResponseErrorReasonEnum]; +export declare function instanceOfV2DraftSupplyCreateResponseErrorReasonEnum(value: any): boolean; +export declare function V2DraftSupplyCreateResponseErrorReasonEnumFromJSON(json: any): V2DraftSupplyCreateResponseErrorReasonEnum; +export declare function V2DraftSupplyCreateResponseErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateResponseErrorReasonEnum; +export declare function V2DraftSupplyCreateResponseErrorReasonEnumToJSON(value?: V2DraftSupplyCreateResponseErrorReasonEnum | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateResponseErrorReasonEnum.js b/dist/esm/models/V2DraftSupplyCreateResponseErrorReasonEnum.js new file mode 100644 index 0000000..a50074b --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateResponseErrorReasonEnum.js @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V2DraftSupplyCreateResponseErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SOME_SERVICE_ERROR: 'SOME_SERVICE_ERROR', + ORDER_SKU_LIMIT: 'ORDER_SKU_LIMIT', + INVALID_QUANTITY_OR_QUANT: 'INVALID_QUANTITY_OR_QUANT', + ORDER_ALREADY_CREATED: 'ORDER_ALREADY_CREATED', + ORDER_CREATION_IN_PROGRESS: 'ORDER_CREATION_IN_PROGRESS', + DRAFT_DOES_NOT_EXIST: 'DRAFT_DOES_NOT_EXIST', + CONTRACTOR_CAN_NOT_CREATE_ORDER: 'CONTRACTOR_CAN_NOT_CREATE_ORDER', + INACTIVE_CONTRACT: 'INACTIVE_CONTRACT', + DRAFT_INCORRECT_STATE: 'DRAFT_INCORRECT_STATE', + INVALID_VOLUME: 'INVALID_VOLUME', + INVALID_ROUTE: 'INVALID_ROUTE', + INVALID_STORAGE_WAREHOUSE: 'INVALID_STORAGE_WAREHOUSE', + INVALID_STORAGE_REGION: 'INVALID_STORAGE_REGION', + INVALID_SPLITTING: 'INVALID_SPLITTING', + INVALID_SUPPLY_CONTENT: 'INVALID_SUPPLY_CONTENT', + TIMESLOT_NOT_AVAILABLE: 'TIMESLOT_NOT_AVAILABLE', + SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: 'SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE', + XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: 'XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER', + DRAFT_IS_LOCKED: 'DRAFT_IS_LOCKED', + INVALID_PACKAGE_UNITS_COUNTS: 'INVALID_PACKAGE_UNITS_COUNTS', + SELLER_CONVERSATION_DOES_NOT_EXIST: 'SELLER_CONVERSATION_DOES_NOT_EXIST', + USER_CAN_NOT_CREATE_SELLER_CONVERSATION: 'USER_CAN_NOT_CREATE_SELLER_CONVERSATION', + SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT: 'SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT', + INVALID_SELLER_WAREHOUSE: 'INVALID_SELLER_WAREHOUSE', + PICKUP_ORDER_LIMIT_EXCEEDED: 'PICKUP_ORDER_LIMIT_EXCEEDED', + MINIMUM_VOLUME_IN_LITRES_INVALID: 'MINIMUM_VOLUME_IN_LITRES_INVALID', + INVALID_CLUSTERS_COUNT: 'INVALID_CLUSTERS_COUNT', + CAN_NOT_CREATE_ORDER: 'CAN_NOT_CREATE_ORDER', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfV2DraftSupplyCreateResponseErrorReasonEnum(value) { + for (const key in V2DraftSupplyCreateResponseErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(V2DraftSupplyCreateResponseErrorReasonEnum, key)) { + if (V2DraftSupplyCreateResponseErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2DraftSupplyCreateResponseErrorReasonEnumFromJSON(json) { + return V2DraftSupplyCreateResponseErrorReasonEnumFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateResponseErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2DraftSupplyCreateResponseErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2DraftSupplyCreateStatusRequest.d.ts b/dist/esm/models/V2DraftSupplyCreateStatusRequest.d.ts new file mode 100644 index 0000000..7acd284 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2DraftSupplyCreateStatusRequest + */ +export interface V2DraftSupplyCreateStatusRequest { + /** + * Идентификатор черновика. Получите значение параметра методом [/v2/draft/supply/create](#operation/DraftSupplyCreate). + * @type {number} + * @memberof V2DraftSupplyCreateStatusRequest + */ + draft_id: number; +} +/** + * Check if a given object implements the V2DraftSupplyCreateStatusRequest interface. + */ +export declare function instanceOfV2DraftSupplyCreateStatusRequest(value: object): value is V2DraftSupplyCreateStatusRequest; +export declare function V2DraftSupplyCreateStatusRequestFromJSON(json: any): V2DraftSupplyCreateStatusRequest; +export declare function V2DraftSupplyCreateStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateStatusRequest; +export declare function V2DraftSupplyCreateStatusRequestToJSON(value?: V2DraftSupplyCreateStatusRequest | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateStatusRequest.js b/dist/esm/models/V2DraftSupplyCreateStatusRequest.js new file mode 100644 index 0000000..1c41ada --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2DraftSupplyCreateStatusRequest interface. + */ +export function instanceOfV2DraftSupplyCreateStatusRequest(value) { + if (!('draft_id' in value) || value['draft_id'] === undefined) + return false; + return true; +} +export function V2DraftSupplyCreateStatusRequestFromJSON(json) { + return V2DraftSupplyCreateStatusRequestFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'], + }; +} +export function V2DraftSupplyCreateStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + }; +} diff --git a/dist/esm/models/V2DraftSupplyCreateStatusResponse.d.ts b/dist/esm/models/V2DraftSupplyCreateStatusResponse.d.ts new file mode 100644 index 0000000..50ebad8 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateStatusResponse.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftSupplyCreateStatusResponseErrorReasonEnum } from './V2DraftSupplyCreateStatusResponseErrorReasonEnum'; +import type { V2DraftSupplyCreateStatusResponseStatusEnum } from './V2DraftSupplyCreateStatusResponseStatusEnum'; +/** + * + * @export + * @interface V2DraftSupplyCreateStatusResponse + */ +export interface V2DraftSupplyCreateStatusResponse { + /** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `SOME_SERVICE_ERROR` — ошибка при редактировании поставки; + * - `ORDER_SKU_LIMIT` — количество товаров в поставке больше 5000; + * - `INVALID_QUANTITY_OR_QUANT` — некорректное количество товара или грузомест; + * - `ORDER_ALREADY_CREATED` — заказ уже создан; + * - `ORDER_CREATION_IN_PROGRESS` — создание заказа в процессе; + * - `DRAFT_DOES_NOT_EXIST` — черновик не существует; + * - `CONTRACTOR_CAN_NOT_CREATE_ORDER` — контрагент не может создать заказ; + * - `INACTIVE_CONTRACT` — нельзя редактировать состав поставки с неактивным договором; + * - `DRAFT_INCORRECT_STATE` — некорректный статус черновика; + * - `INVALID_VOLUME` — некорректный объём поставки; + * - `INVALID_ROUTE` — некорректный маршрут; + * - `INVALID_STORAGE_WAREHOUSE` — некорректный склад хранения; + * - `INVALID_STORAGE_REGION` — некорректный регион хранения; + * - `INVALID_SPLITTING` — некорректное разделение; + * - `INVALID_SUPPLY_CONTENT` — некорректное содержимое поставки; + * - `TIMESLOT_NOT_AVAILABLE` — нет доступных таймслотов; + * - `SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE` — требуется распределение SKU, но оно невозможно; + * - `XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER` — поставка кросс-докингом через пункт выдачи заказов недоступна для продавца; + * - `DRAFT_IS_LOCKED` — черновик заблокирован; + * - `INVALID_PACKAGE_UNITS_COUNTS` — некорректное количество грузомест; + * - `SELLER_CONVERSATION_DOES_NOT_EXIST` — точка отгрузки с таким `id` не существует; + * - `USER_CAN_NOT_CREATE_SELLER_CONVERSATION` — пользователь не может написать продавцу; + * - `SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT` — товар с меткой `is_ettn_required` не разрешён для точки отгрузки; + * - `INVALID_SELLER_WAREHOUSE` — склад продавца недоступен; + * - `PICKUP_ORDER_LIMIT_EXCEEDED` — превышен лимит заказов на самовывоз; + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — некорректный минимальный объём в литрах; + * - `INVALID_CLUSTERS_COUNT` — переданы не все кластеры из расчёта; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof V2DraftSupplyCreateStatusResponse + */ + error_reasons?: Array; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V2DraftSupplyCreateStatusResponse + */ + order_id?: number; + /** + * + * @type {V2DraftSupplyCreateStatusResponseStatusEnum} + * @memberof V2DraftSupplyCreateStatusResponse + */ + status?: V2DraftSupplyCreateStatusResponseStatusEnum; +} +/** + * Check if a given object implements the V2DraftSupplyCreateStatusResponse interface. + */ +export declare function instanceOfV2DraftSupplyCreateStatusResponse(value: object): value is V2DraftSupplyCreateStatusResponse; +export declare function V2DraftSupplyCreateStatusResponseFromJSON(json: any): V2DraftSupplyCreateStatusResponse; +export declare function V2DraftSupplyCreateStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateStatusResponse; +export declare function V2DraftSupplyCreateStatusResponseToJSON(value?: V2DraftSupplyCreateStatusResponse | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateStatusResponse.js b/dist/esm/models/V2DraftSupplyCreateStatusResponse.js new file mode 100644 index 0000000..c5c32f1 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateStatusResponse.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON, V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON, } from './V2DraftSupplyCreateStatusResponseErrorReasonEnum'; +import { V2DraftSupplyCreateStatusResponseStatusEnumFromJSON, V2DraftSupplyCreateStatusResponseStatusEnumToJSON, } from './V2DraftSupplyCreateStatusResponseStatusEnum'; +/** + * Check if a given object implements the V2DraftSupplyCreateStatusResponse interface. + */ +export function instanceOfV2DraftSupplyCreateStatusResponse(value) { + return true; +} +export function V2DraftSupplyCreateStatusResponseFromJSON(json) { + return V2DraftSupplyCreateStatusResponseFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON)), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'status': json['status'] == null ? undefined : V2DraftSupplyCreateStatusResponseStatusEnumFromJSON(json['status']), + }; +} +export function V2DraftSupplyCreateStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON)), + 'order_id': value['order_id'], + 'status': V2DraftSupplyCreateStatusResponseStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.d.ts b/dist/esm/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.d.ts new file mode 100644 index 0000000..87b8b61 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V2DraftSupplyCreateStatusResponseErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SOME_SERVICE_ERROR: "SOME_SERVICE_ERROR"; + readonly ORDER_SKU_LIMIT: "ORDER_SKU_LIMIT"; + readonly INVALID_QUANTITY_OR_QUANT: "INVALID_QUANTITY_OR_QUANT"; + readonly ORDER_ALREADY_CREATED: "ORDER_ALREADY_CREATED"; + readonly ORDER_CREATION_IN_PROGRESS: "ORDER_CREATION_IN_PROGRESS"; + readonly DRAFT_DOES_NOT_EXIST: "DRAFT_DOES_NOT_EXIST"; + readonly CONTRACTOR_CAN_NOT_CREATE_ORDER: "CONTRACTOR_CAN_NOT_CREATE_ORDER"; + readonly INACTIVE_CONTRACT: "INACTIVE_CONTRACT"; + readonly DRAFT_INCORRECT_STATE: "DRAFT_INCORRECT_STATE"; + readonly INVALID_VOLUME: "INVALID_VOLUME"; + readonly INVALID_ROUTE: "INVALID_ROUTE"; + readonly INVALID_STORAGE_WAREHOUSE: "INVALID_STORAGE_WAREHOUSE"; + readonly INVALID_STORAGE_REGION: "INVALID_STORAGE_REGION"; + readonly INVALID_SPLITTING: "INVALID_SPLITTING"; + readonly INVALID_SUPPLY_CONTENT: "INVALID_SUPPLY_CONTENT"; + readonly TIMESLOT_NOT_AVAILABLE: "TIMESLOT_NOT_AVAILABLE"; + readonly SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: "SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE"; + readonly XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: "XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER"; + readonly DRAFT_IS_LOCKED: "DRAFT_IS_LOCKED"; + readonly INVALID_PACKAGE_UNITS_COUNTS: "INVALID_PACKAGE_UNITS_COUNTS"; + readonly SELLER_CONVERSATION_DOES_NOT_EXIST: "SELLER_CONVERSATION_DOES_NOT_EXIST"; + readonly USER_CAN_NOT_CREATE_SELLER_CONVERSATION: "USER_CAN_NOT_CREATE_SELLER_CONVERSATION"; + readonly SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT: "SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT"; + readonly INVALID_SELLER_WAREHOUSE: "INVALID_SELLER_WAREHOUSE"; + readonly PICKUP_ORDER_LIMIT_EXCEEDED: "PICKUP_ORDER_LIMIT_EXCEEDED"; + readonly INVALID_CLUSTERS_COUNT: "INVALID_CLUSTERS_COUNT"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type V2DraftSupplyCreateStatusResponseErrorReasonEnum = typeof V2DraftSupplyCreateStatusResponseErrorReasonEnum[keyof typeof V2DraftSupplyCreateStatusResponseErrorReasonEnum]; +export declare function instanceOfV2DraftSupplyCreateStatusResponseErrorReasonEnum(value: any): boolean; +export declare function V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON(json: any): V2DraftSupplyCreateStatusResponseErrorReasonEnum; +export declare function V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateStatusResponseErrorReasonEnum; +export declare function V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON(value?: V2DraftSupplyCreateStatusResponseErrorReasonEnum | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.js b/dist/esm/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.js new file mode 100644 index 0000000..c3d0b02 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.js @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V2DraftSupplyCreateStatusResponseErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SOME_SERVICE_ERROR: 'SOME_SERVICE_ERROR', + ORDER_SKU_LIMIT: 'ORDER_SKU_LIMIT', + INVALID_QUANTITY_OR_QUANT: 'INVALID_QUANTITY_OR_QUANT', + ORDER_ALREADY_CREATED: 'ORDER_ALREADY_CREATED', + ORDER_CREATION_IN_PROGRESS: 'ORDER_CREATION_IN_PROGRESS', + DRAFT_DOES_NOT_EXIST: 'DRAFT_DOES_NOT_EXIST', + CONTRACTOR_CAN_NOT_CREATE_ORDER: 'CONTRACTOR_CAN_NOT_CREATE_ORDER', + INACTIVE_CONTRACT: 'INACTIVE_CONTRACT', + DRAFT_INCORRECT_STATE: 'DRAFT_INCORRECT_STATE', + INVALID_VOLUME: 'INVALID_VOLUME', + INVALID_ROUTE: 'INVALID_ROUTE', + INVALID_STORAGE_WAREHOUSE: 'INVALID_STORAGE_WAREHOUSE', + INVALID_STORAGE_REGION: 'INVALID_STORAGE_REGION', + INVALID_SPLITTING: 'INVALID_SPLITTING', + INVALID_SUPPLY_CONTENT: 'INVALID_SUPPLY_CONTENT', + TIMESLOT_NOT_AVAILABLE: 'TIMESLOT_NOT_AVAILABLE', + SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: 'SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE', + XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: 'XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER', + DRAFT_IS_LOCKED: 'DRAFT_IS_LOCKED', + INVALID_PACKAGE_UNITS_COUNTS: 'INVALID_PACKAGE_UNITS_COUNTS', + SELLER_CONVERSATION_DOES_NOT_EXIST: 'SELLER_CONVERSATION_DOES_NOT_EXIST', + USER_CAN_NOT_CREATE_SELLER_CONVERSATION: 'USER_CAN_NOT_CREATE_SELLER_CONVERSATION', + SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT: 'SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT', + INVALID_SELLER_WAREHOUSE: 'INVALID_SELLER_WAREHOUSE', + PICKUP_ORDER_LIMIT_EXCEEDED: 'PICKUP_ORDER_LIMIT_EXCEEDED', + INVALID_CLUSTERS_COUNT: 'INVALID_CLUSTERS_COUNT', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfV2DraftSupplyCreateStatusResponseErrorReasonEnum(value) { + for (const key in V2DraftSupplyCreateStatusResponseErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(V2DraftSupplyCreateStatusResponseErrorReasonEnum, key)) { + if (V2DraftSupplyCreateStatusResponseErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON(json) { + return V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2DraftSupplyCreateStatusResponseStatusEnum.d.ts b/dist/esm/models/V2DraftSupplyCreateStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..df27977 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания заявки на поставку: + * - `UNSPECIFIED` — не определён, + * - `SUCCESS` — создана, + * - `IN_PROGRESS` — создаётся, + * - `FAILED` — не удалось создать. + * + * @export + */ +export declare const V2DraftSupplyCreateStatusResponseStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type V2DraftSupplyCreateStatusResponseStatusEnum = typeof V2DraftSupplyCreateStatusResponseStatusEnum[keyof typeof V2DraftSupplyCreateStatusResponseStatusEnum]; +export declare function instanceOfV2DraftSupplyCreateStatusResponseStatusEnum(value: any): boolean; +export declare function V2DraftSupplyCreateStatusResponseStatusEnumFromJSON(json: any): V2DraftSupplyCreateStatusResponseStatusEnum; +export declare function V2DraftSupplyCreateStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateStatusResponseStatusEnum; +export declare function V2DraftSupplyCreateStatusResponseStatusEnumToJSON(value?: V2DraftSupplyCreateStatusResponseStatusEnum | null): any; diff --git a/dist/esm/models/V2DraftSupplyCreateStatusResponseStatusEnum.js b/dist/esm/models/V2DraftSupplyCreateStatusResponseStatusEnum.js new file mode 100644 index 0000000..0886dc6 --- /dev/null +++ b/dist/esm/models/V2DraftSupplyCreateStatusResponseStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания заявки на поставку: + * - `UNSPECIFIED` — не определён, + * - `SUCCESS` — создана, + * - `IN_PROGRESS` — создаётся, + * - `FAILED` — не удалось создать. + * + * @export + */ +export const V2DraftSupplyCreateStatusResponseStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +export function instanceOfV2DraftSupplyCreateStatusResponseStatusEnum(value) { + for (const key in V2DraftSupplyCreateStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(V2DraftSupplyCreateStatusResponseStatusEnum, key)) { + if (V2DraftSupplyCreateStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2DraftSupplyCreateStatusResponseStatusEnumFromJSON(json) { + return V2DraftSupplyCreateStatusResponseStatusEnumFromJSONTyped(json, false); +} +export function V2DraftSupplyCreateStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2DraftSupplyCreateStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2DraftTimeslotInfoRequest.d.ts b/dist/esm/models/V2DraftTimeslotInfoRequest.d.ts new file mode 100644 index 0000000..782e738 --- /dev/null +++ b/dist/esm/models/V2DraftTimeslotInfoRequest.d.ts @@ -0,0 +1,72 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftTimeslotInfoRequestSelectedClusterWarehouse } from './V2DraftTimeslotInfoRequestSelectedClusterWarehouse'; +/** + * + * @export + * @interface V2DraftTimeslotInfoRequest + */ +export interface V2DraftTimeslotInfoRequest { + /** + * Дата начала периода доступных таймслотов. + * @type {string} + * @memberof V2DraftTimeslotInfoRequest + */ + date_from: string; + /** + * Дата окончания периода доступных таймслотов. + * + * Максимальный период — 28 дней с текущей даты. + * + * @type {string} + * @memberof V2DraftTimeslotInfoRequest + */ + date_to: string; + /** + * Идентификатор черновика из метода [/v2/draft/create/info](#operation/DraftCreateInfo). + * @type {number} + * @memberof V2DraftTimeslotInfoRequest + */ + draft_id: number; + /** + * Тип поставки: + * - `CROSSDOCK` — кросс-докинг; + * - `DIRECT` — прямая; + * - `MULTI_CLUSTER` — для нескольких кластеров. + * + * @type {string} + * @memberof V2DraftTimeslotInfoRequest + */ + supply_type: V2DraftTimeslotInfoRequestSupplyTypeEnum; + /** + * Информация о кластере и складах в нём. Можно передать один кластер для кросс-докинговой и прямой поставки или список всех кластеров для поставки в несколько кластеров. + * @type {Array} + * @memberof V2DraftTimeslotInfoRequest + */ + selected_cluster_warehouses: Array; +} +/** + * @export + */ +export declare const V2DraftTimeslotInfoRequestSupplyTypeEnum: { + readonly CROSSDOCK: "CROSSDOCK"; + readonly DIRECT: "DIRECT"; + readonly MULTI_CLUSTER: "MULTI_CLUSTER"; +}; +export type V2DraftTimeslotInfoRequestSupplyTypeEnum = typeof V2DraftTimeslotInfoRequestSupplyTypeEnum[keyof typeof V2DraftTimeslotInfoRequestSupplyTypeEnum]; +/** + * Check if a given object implements the V2DraftTimeslotInfoRequest interface. + */ +export declare function instanceOfV2DraftTimeslotInfoRequest(value: object): value is V2DraftTimeslotInfoRequest; +export declare function V2DraftTimeslotInfoRequestFromJSON(json: any): V2DraftTimeslotInfoRequest; +export declare function V2DraftTimeslotInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftTimeslotInfoRequest; +export declare function V2DraftTimeslotInfoRequestToJSON(value?: V2DraftTimeslotInfoRequest | null): any; diff --git a/dist/esm/models/V2DraftTimeslotInfoRequest.js b/dist/esm/models/V2DraftTimeslotInfoRequest.js new file mode 100644 index 0000000..9e1c9cf --- /dev/null +++ b/dist/esm/models/V2DraftTimeslotInfoRequest.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON, V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON, } from './V2DraftTimeslotInfoRequestSelectedClusterWarehouse'; +/** + * @export + */ +export const V2DraftTimeslotInfoRequestSupplyTypeEnum = { + CROSSDOCK: 'CROSSDOCK', + DIRECT: 'DIRECT', + MULTI_CLUSTER: 'MULTI_CLUSTER' +}; +/** + * Check if a given object implements the V2DraftTimeslotInfoRequest interface. + */ +export function instanceOfV2DraftTimeslotInfoRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('draft_id' in value) || value['draft_id'] === undefined) + return false; + if (!('supply_type' in value) || value['supply_type'] === undefined) + return false; + if (!('selected_cluster_warehouses' in value) || value['selected_cluster_warehouses'] === undefined) + return false; + return true; +} +export function V2DraftTimeslotInfoRequestFromJSON(json) { + return V2DraftTimeslotInfoRequestFromJSONTyped(json, false); +} +export function V2DraftTimeslotInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'draft_id': json['draft_id'], + 'supply_type': json['supply_type'], + 'selected_cluster_warehouses': (json['selected_cluster_warehouses'].map(V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON)), + }; +} +export function V2DraftTimeslotInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'draft_id': value['draft_id'], + 'supply_type': value['supply_type'], + 'selected_cluster_warehouses': (value['selected_cluster_warehouses'].map(V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON)), + }; +} diff --git a/dist/esm/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.d.ts b/dist/esm/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.d.ts new file mode 100644 index 0000000..3967120 --- /dev/null +++ b/dist/esm/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2DraftTimeslotInfoRequestSelectedClusterWarehouse + */ +export interface V2DraftTimeslotInfoRequestSelectedClusterWarehouse { + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof V2DraftTimeslotInfoRequestSelectedClusterWarehouse + */ + macrolocal_cluster_id?: number; + /** + * Идентификатор склада хранения. Только для поставок с типом `DIRECT`. + * @type {number} + * @memberof V2DraftTimeslotInfoRequestSelectedClusterWarehouse + */ + storage_warehouse_id?: number; +} +/** + * Check if a given object implements the V2DraftTimeslotInfoRequestSelectedClusterWarehouse interface. + */ +export declare function instanceOfV2DraftTimeslotInfoRequestSelectedClusterWarehouse(value: object): value is V2DraftTimeslotInfoRequestSelectedClusterWarehouse; +export declare function V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON(json: any): V2DraftTimeslotInfoRequestSelectedClusterWarehouse; +export declare function V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftTimeslotInfoRequestSelectedClusterWarehouse; +export declare function V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON(value?: V2DraftTimeslotInfoRequestSelectedClusterWarehouse | null): any; diff --git a/dist/esm/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.js b/dist/esm/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.js new file mode 100644 index 0000000..2b83789 --- /dev/null +++ b/dist/esm/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2DraftTimeslotInfoRequestSelectedClusterWarehouse interface. + */ +export function instanceOfV2DraftTimeslotInfoRequestSelectedClusterWarehouse(value) { + return true; +} +export function V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON(json) { + return V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSONTyped(json, false); +} +export function V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'storage_warehouse_id': json['storage_warehouse_id'] == null ? undefined : json['storage_warehouse_id'], + }; +} +export function V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'storage_warehouse_id': value['storage_warehouse_id'], + }; +} diff --git a/dist/esm/models/V2DraftTimeslotInfoResponse.d.ts b/dist/esm/models/V2DraftTimeslotInfoResponse.d.ts new file mode 100644 index 0000000..2ef222c --- /dev/null +++ b/dist/esm/models/V2DraftTimeslotInfoResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftTimeslotInfoResponseErrorReasonEnum } from './V2DraftTimeslotInfoResponseErrorReasonEnum'; +import type { DraftTimeslotInfoResponseResult } from './DraftTimeslotInfoResponseResult'; +/** + * + * @export + * @interface V2DraftTimeslotInfoResponse + */ +export interface V2DraftTimeslotInfoResponse { + /** + * + * @type {V2DraftTimeslotInfoResponseErrorReasonEnum} + * @memberof V2DraftTimeslotInfoResponse + */ + error_reason?: V2DraftTimeslotInfoResponseErrorReasonEnum; + /** + * + * @type {DraftTimeslotInfoResponseResult} + * @memberof V2DraftTimeslotInfoResponse + */ + result?: DraftTimeslotInfoResponseResult; +} +/** + * Check if a given object implements the V2DraftTimeslotInfoResponse interface. + */ +export declare function instanceOfV2DraftTimeslotInfoResponse(value: object): value is V2DraftTimeslotInfoResponse; +export declare function V2DraftTimeslotInfoResponseFromJSON(json: any): V2DraftTimeslotInfoResponse; +export declare function V2DraftTimeslotInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftTimeslotInfoResponse; +export declare function V2DraftTimeslotInfoResponseToJSON(value?: V2DraftTimeslotInfoResponse | null): any; diff --git a/dist/esm/models/V2DraftTimeslotInfoResponse.js b/dist/esm/models/V2DraftTimeslotInfoResponse.js new file mode 100644 index 0000000..9ea7c75 --- /dev/null +++ b/dist/esm/models/V2DraftTimeslotInfoResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON, V2DraftTimeslotInfoResponseErrorReasonEnumToJSON, } from './V2DraftTimeslotInfoResponseErrorReasonEnum'; +import { DraftTimeslotInfoResponseResultFromJSON, DraftTimeslotInfoResponseResultToJSON, } from './DraftTimeslotInfoResponseResult'; +/** + * Check if a given object implements the V2DraftTimeslotInfoResponse interface. + */ +export function instanceOfV2DraftTimeslotInfoResponse(value) { + return true; +} +export function V2DraftTimeslotInfoResponseFromJSON(json) { + return V2DraftTimeslotInfoResponseFromJSONTyped(json, false); +} +export function V2DraftTimeslotInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reason': json['error_reason'] == null ? undefined : V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON(json['error_reason']), + 'result': json['result'] == null ? undefined : DraftTimeslotInfoResponseResultFromJSON(json['result']), + }; +} +export function V2DraftTimeslotInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reason': V2DraftTimeslotInfoResponseErrorReasonEnumToJSON(value['error_reason']), + 'result': DraftTimeslotInfoResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V2DraftTimeslotInfoResponseErrorReasonEnum.d.ts b/dist/esm/models/V2DraftTimeslotInfoResponseErrorReasonEnum.d.ts new file mode 100644 index 0000000..762c79f --- /dev/null +++ b/dist/esm/models/V2DraftTimeslotInfoResponseErrorReasonEnum.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `INVALID_CLUSTERS_COUNT` — переданы не все кластеры из расчёта; + * - `REQUESTED_PERIOD_MORE_THAN_MAX` — превышен период; + * - `INVALID_REQUESTED_CLUSTER_IDS` — переданы кластеры, которых нет в расчёте. + * - `UNDEFINED` — неизвестная ошибка. + * + * @export + */ +export declare const V2DraftTimeslotInfoResponseErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_CLUSTERS_COUNT: "INVALID_CLUSTERS_COUNT"; + readonly REQUESTED_PERIOD_MORE_THAN_MAX: "REQUESTED_PERIOD_MORE_THAN_MAX"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type V2DraftTimeslotInfoResponseErrorReasonEnum = typeof V2DraftTimeslotInfoResponseErrorReasonEnum[keyof typeof V2DraftTimeslotInfoResponseErrorReasonEnum]; +export declare function instanceOfV2DraftTimeslotInfoResponseErrorReasonEnum(value: any): boolean; +export declare function V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON(json: any): V2DraftTimeslotInfoResponseErrorReasonEnum; +export declare function V2DraftTimeslotInfoResponseErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftTimeslotInfoResponseErrorReasonEnum; +export declare function V2DraftTimeslotInfoResponseErrorReasonEnumToJSON(value?: V2DraftTimeslotInfoResponseErrorReasonEnum | null): any; diff --git a/dist/esm/models/V2DraftTimeslotInfoResponseErrorReasonEnum.js b/dist/esm/models/V2DraftTimeslotInfoResponseErrorReasonEnum.js new file mode 100644 index 0000000..39b2630 --- /dev/null +++ b/dist/esm/models/V2DraftTimeslotInfoResponseErrorReasonEnum.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `INVALID_CLUSTERS_COUNT` — переданы не все кластеры из расчёта; + * - `REQUESTED_PERIOD_MORE_THAN_MAX` — превышен период; + * - `INVALID_REQUESTED_CLUSTER_IDS` — переданы кластеры, которых нет в расчёте. + * - `UNDEFINED` — неизвестная ошибка. + * + * @export + */ +export const V2DraftTimeslotInfoResponseErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_CLUSTERS_COUNT: 'INVALID_CLUSTERS_COUNT', + REQUESTED_PERIOD_MORE_THAN_MAX: 'REQUESTED_PERIOD_MORE_THAN_MAX', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfV2DraftTimeslotInfoResponseErrorReasonEnum(value) { + for (const key in V2DraftTimeslotInfoResponseErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(V2DraftTimeslotInfoResponseErrorReasonEnum, key)) { + if (V2DraftTimeslotInfoResponseErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON(json) { + return V2DraftTimeslotInfoResponseErrorReasonEnumFromJSONTyped(json, false); +} +export function V2DraftTimeslotInfoResponseErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2DraftTimeslotInfoResponseErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2FboPosting.d.ts b/dist/esm/models/V2FboPosting.d.ts new file mode 100644 index 0000000..1602802 --- /dev/null +++ b/dist/esm/models/V2FboPosting.d.ts @@ -0,0 +1,140 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2FboSinglePostingExternalOrder } from './PostingV2FboSinglePostingExternalOrder'; +import type { FboPostingFboPostingAnalyticsData } from './FboPostingFboPostingAnalyticsData'; +import type { V2AdditionalDataItem } from './V2AdditionalDataItem'; +import type { V2PostingProduct } from './V2PostingProduct'; +import type { V2PostingFinancialDataFBO } from './V2PostingFinancialDataFBO'; +import type { V2FboSinglePostingLegalInfo } from './V2FboSinglePostingLegalInfo'; +/** + * Результат запроса. + * @export + * @interface V2FboPosting + */ +export interface V2FboPosting { + /** + * + * @type {Array} + * @memberof V2FboPosting + */ + additional_data?: Array; + /** + * + * @type {FboPostingFboPostingAnalyticsData} + * @memberof V2FboPosting + */ + analytics_data?: FboPostingFboPostingAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof V2FboPosting + */ + cancel_reason_id?: number; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof V2FboPosting + */ + created_at?: string; + /** + * + * @type {PostingV2FboSinglePostingExternalOrder} + * @memberof V2FboPosting + */ + external_order?: PostingV2FboSinglePostingExternalOrder; + /** + * Дата фактической передачи отправления в доставку. + * @type {string} + * @memberof V2FboPosting + */ + fact_delivery_date?: string; + /** + * + * @type {V2PostingFinancialDataFBO} + * @memberof V2FboPosting + */ + financial_data?: V2PostingFinancialDataFBO; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V2FboPosting + */ + in_process_at?: string; + /** + * + * @type {V2FboSinglePostingLegalInfo} + * @memberof V2FboPosting + */ + legal_info?: V2FboSinglePostingLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V2FboPosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V2FboPosting + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2FboPosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V2FboPosting + */ + products?: Array; + /** + * Статус отправления: + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_deliver` — ожидает отгрузки, + * - `delivering` — доставляется, + * - `delivered` — доставлено, + * - `cancelled` — отменено. + * + * @type {string} + * @memberof V2FboPosting + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_split_pending`, `posting_created` — создано; + * - `posting_packing` — на упаковке; + * - `posting_transferring_to_delivery` — передаётся в доставку; + * - `posting_on_way_to_city` — на пути в город доставки; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_delivered` — доставлено курьером; + * - `posting_received` — получено в пункте выдачи; + * - `posting_canceled` — отменено. + * + * @type {string} + * @memberof V2FboPosting + */ + substatus?: string; +} +/** + * Check if a given object implements the V2FboPosting interface. + */ +export declare function instanceOfV2FboPosting(value: object): value is V2FboPosting; +export declare function V2FboPostingFromJSON(json: any): V2FboPosting; +export declare function V2FboPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboPosting; +export declare function V2FboPostingToJSON(value?: V2FboPosting | null): any; diff --git a/dist/esm/models/V2FboPosting.js b/dist/esm/models/V2FboPosting.js new file mode 100644 index 0000000..6502136 --- /dev/null +++ b/dist/esm/models/V2FboPosting.js @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingV2FboSinglePostingExternalOrderFromJSON, PostingV2FboSinglePostingExternalOrderToJSON, } from './PostingV2FboSinglePostingExternalOrder'; +import { FboPostingFboPostingAnalyticsDataFromJSON, FboPostingFboPostingAnalyticsDataToJSON, } from './FboPostingFboPostingAnalyticsData'; +import { V2AdditionalDataItemFromJSON, V2AdditionalDataItemToJSON, } from './V2AdditionalDataItem'; +import { V2PostingProductFromJSON, V2PostingProductToJSON, } from './V2PostingProduct'; +import { V2PostingFinancialDataFBOFromJSON, V2PostingFinancialDataFBOToJSON, } from './V2PostingFinancialDataFBO'; +import { V2FboSinglePostingLegalInfoFromJSON, V2FboSinglePostingLegalInfoToJSON, } from './V2FboSinglePostingLegalInfo'; +/** + * Check if a given object implements the V2FboPosting interface. + */ +export function instanceOfV2FboPosting(value) { + return true; +} +export function V2FboPostingFromJSON(json) { + return V2FboPostingFromJSONTyped(json, false); +} +export function V2FboPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(V2AdditionalDataItemFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : FboPostingFboPostingAnalyticsDataFromJSON(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'external_order': json['external_order'] == null ? undefined : PostingV2FboSinglePostingExternalOrderFromJSON(json['external_order']), + 'fact_delivery_date': json['fact_delivery_date'] == null ? undefined : json['fact_delivery_date'], + 'financial_data': json['financial_data'] == null ? undefined : V2PostingFinancialDataFBOFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : V2FboSinglePostingLegalInfoFromJSON(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2PostingProductFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + }; +} +export function V2FboPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(V2AdditionalDataItemToJSON)), + 'analytics_data': FboPostingFboPostingAnalyticsDataToJSON(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'created_at': value['created_at'], + 'external_order': PostingV2FboSinglePostingExternalOrderToJSON(value['external_order']), + 'fact_delivery_date': value['fact_delivery_date'], + 'financial_data': V2PostingFinancialDataFBOToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': V2FboSinglePostingLegalInfoToJSON(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2PostingProductToJSON)), + 'status': value['status'], + 'substatus': value['substatus'], + }; +} diff --git a/dist/esm/models/V2FboPostingListResponse.d.ts b/dist/esm/models/V2FboPostingListResponse.d.ts new file mode 100644 index 0000000..4cbedd7 --- /dev/null +++ b/dist/esm/models/V2FboPostingListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FboPostingV2 } from './V2FboPostingV2'; +/** + * + * @export + * @interface V2FboPostingListResponse + */ +export interface V2FboPostingListResponse { + /** + * Массив отправлений. + * @type {Array} + * @memberof V2FboPostingListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2FboPostingListResponse interface. + */ +export declare function instanceOfV2FboPostingListResponse(value: object): value is V2FboPostingListResponse; +export declare function V2FboPostingListResponseFromJSON(json: any): V2FboPostingListResponse; +export declare function V2FboPostingListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboPostingListResponse; +export declare function V2FboPostingListResponseToJSON(value?: V2FboPostingListResponse | null): any; diff --git a/dist/esm/models/V2FboPostingListResponse.js b/dist/esm/models/V2FboPostingListResponse.js new file mode 100644 index 0000000..aac044b --- /dev/null +++ b/dist/esm/models/V2FboPostingListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2FboPostingV2FromJSON, V2FboPostingV2ToJSON, } from './V2FboPostingV2'; +/** + * Check if a given object implements the V2FboPostingListResponse interface. + */ +export function instanceOfV2FboPostingListResponse(value) { + return true; +} +export function V2FboPostingListResponseFromJSON(json) { + return V2FboPostingListResponseFromJSONTyped(json, false); +} +export function V2FboPostingListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2FboPostingV2FromJSON)), + }; +} +export function V2FboPostingListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2FboPostingV2ToJSON)), + }; +} diff --git a/dist/esm/models/V2FboPostingResponse.d.ts b/dist/esm/models/V2FboPostingResponse.d.ts new file mode 100644 index 0000000..f049d64 --- /dev/null +++ b/dist/esm/models/V2FboPostingResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FboPosting } from './V2FboPosting'; +/** + * + * @export + * @interface V2FboPostingResponse + */ +export interface V2FboPostingResponse { + /** + * + * @type {V2FboPosting} + * @memberof V2FboPostingResponse + */ + result?: V2FboPosting; +} +/** + * Check if a given object implements the V2FboPostingResponse interface. + */ +export declare function instanceOfV2FboPostingResponse(value: object): value is V2FboPostingResponse; +export declare function V2FboPostingResponseFromJSON(json: any): V2FboPostingResponse; +export declare function V2FboPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboPostingResponse; +export declare function V2FboPostingResponseToJSON(value?: V2FboPostingResponse | null): any; diff --git a/dist/esm/models/V2FboPostingResponse.js b/dist/esm/models/V2FboPostingResponse.js new file mode 100644 index 0000000..6b56cc1 --- /dev/null +++ b/dist/esm/models/V2FboPostingResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2FboPostingFromJSON, V2FboPostingToJSON, } from './V2FboPosting'; +/** + * Check if a given object implements the V2FboPostingResponse interface. + */ +export function instanceOfV2FboPostingResponse(value) { + return true; +} +export function V2FboPostingResponseFromJSON(json) { + return V2FboPostingResponseFromJSONTyped(json, false); +} +export function V2FboPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V2FboPostingFromJSON(json['result']), + }; +} +export function V2FboPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V2FboPostingToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V2FboPostingV2.d.ts b/dist/esm/models/V2FboPostingV2.d.ts new file mode 100644 index 0000000..486d5c3 --- /dev/null +++ b/dist/esm/models/V2FboPostingV2.d.ts @@ -0,0 +1,127 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFinancialDataFBOV2 } from './V2PostingFinancialDataFBOV2'; +import type { FboPostingFboPostingAnalyticsData } from './FboPostingFboPostingAnalyticsData'; +import type { V2AdditionalDataItem } from './V2AdditionalDataItem'; +import type { V2PostingProduct } from './V2PostingProduct'; +import type { V2FboSinglePostingLegalInfo } from './V2FboSinglePostingLegalInfo'; +/** + * Результат запроса. + * @export + * @interface V2FboPostingV2 + */ +export interface V2FboPostingV2 { + /** + * + * @type {Array} + * @memberof V2FboPostingV2 + */ + additional_data?: Array; + /** + * + * @type {FboPostingFboPostingAnalyticsData} + * @memberof V2FboPostingV2 + */ + analytics_data?: FboPostingFboPostingAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof V2FboPostingV2 + */ + cancel_reason_id?: number; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof V2FboPostingV2 + */ + created_at?: string; + /** + * + * @type {V2PostingFinancialDataFBOV2} + * @memberof V2FboPostingV2 + */ + financial_data?: V2PostingFinancialDataFBOV2; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V2FboPostingV2 + */ + in_process_at?: string; + /** + * + * @type {V2FboSinglePostingLegalInfo} + * @memberof V2FboPostingV2 + */ + legal_info?: V2FboSinglePostingLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V2FboPostingV2 + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V2FboPostingV2 + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2FboPostingV2 + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V2FboPostingV2 + */ + products?: Array; + /** + * Статус отправления: + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_deliver` — ожидает отгрузки, + * - `delivering` — доставляется, + * - `delivered` — доставлено, + * - `cancelled` — отменено. + * + * @type {string} + * @memberof V2FboPostingV2 + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_split_pending`, `posting_created` — создано; + * - `posting_packing` — на упаковке; + * - `posting_transferring_to_delivery` — передаётся в доставку; + * - `posting_on_way_to_city` — на пути в город доставки; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_delivered` — доставлено курьером; + * - `posting_received` — получено в пункте выдачи; + * - `posting_canceled` — отменено. + * + * @type {string} + * @memberof V2FboPostingV2 + */ + substatus?: string; +} +/** + * Check if a given object implements the V2FboPostingV2 interface. + */ +export declare function instanceOfV2FboPostingV2(value: object): value is V2FboPostingV2; +export declare function V2FboPostingV2FromJSON(json: any): V2FboPostingV2; +export declare function V2FboPostingV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboPostingV2; +export declare function V2FboPostingV2ToJSON(value?: V2FboPostingV2 | null): any; diff --git a/dist/esm/models/V2FboPostingV2.js b/dist/esm/models/V2FboPostingV2.js new file mode 100644 index 0000000..e06a54d --- /dev/null +++ b/dist/esm/models/V2FboPostingV2.js @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2PostingFinancialDataFBOV2FromJSON, V2PostingFinancialDataFBOV2ToJSON, } from './V2PostingFinancialDataFBOV2'; +import { FboPostingFboPostingAnalyticsDataFromJSON, FboPostingFboPostingAnalyticsDataToJSON, } from './FboPostingFboPostingAnalyticsData'; +import { V2AdditionalDataItemFromJSON, V2AdditionalDataItemToJSON, } from './V2AdditionalDataItem'; +import { V2PostingProductFromJSON, V2PostingProductToJSON, } from './V2PostingProduct'; +import { V2FboSinglePostingLegalInfoFromJSON, V2FboSinglePostingLegalInfoToJSON, } from './V2FboSinglePostingLegalInfo'; +/** + * Check if a given object implements the V2FboPostingV2 interface. + */ +export function instanceOfV2FboPostingV2(value) { + return true; +} +export function V2FboPostingV2FromJSON(json) { + return V2FboPostingV2FromJSONTyped(json, false); +} +export function V2FboPostingV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(V2AdditionalDataItemFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : FboPostingFboPostingAnalyticsDataFromJSON(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'financial_data': json['financial_data'] == null ? undefined : V2PostingFinancialDataFBOV2FromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : V2FboSinglePostingLegalInfoFromJSON(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2PostingProductFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + }; +} +export function V2FboPostingV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(V2AdditionalDataItemToJSON)), + 'analytics_data': FboPostingFboPostingAnalyticsDataToJSON(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'created_at': value['created_at'], + 'financial_data': V2PostingFinancialDataFBOV2ToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': V2FboSinglePostingLegalInfoToJSON(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2PostingProductToJSON)), + 'status': value['status'], + 'substatus': value['substatus'], + }; +} diff --git a/dist/esm/models/V2FboSinglePostingLegalInfo.d.ts b/dist/esm/models/V2FboSinglePostingLegalInfo.d.ts new file mode 100644 index 0000000..99ab9c6 --- /dev/null +++ b/dist/esm/models/V2FboSinglePostingLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface V2FboSinglePostingLegalInfo + */ +export interface V2FboSinglePostingLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof V2FboSinglePostingLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof V2FboSinglePostingLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof V2FboSinglePostingLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the V2FboSinglePostingLegalInfo interface. + */ +export declare function instanceOfV2FboSinglePostingLegalInfo(value: object): value is V2FboSinglePostingLegalInfo; +export declare function V2FboSinglePostingLegalInfoFromJSON(json: any): V2FboSinglePostingLegalInfo; +export declare function V2FboSinglePostingLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboSinglePostingLegalInfo; +export declare function V2FboSinglePostingLegalInfoToJSON(value?: V2FboSinglePostingLegalInfo | null): any; diff --git a/dist/esm/models/V2FboSinglePostingLegalInfo.js b/dist/esm/models/V2FboSinglePostingLegalInfo.js new file mode 100644 index 0000000..0b84e91 --- /dev/null +++ b/dist/esm/models/V2FboSinglePostingLegalInfo.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2FboSinglePostingLegalInfo interface. + */ +export function instanceOfV2FboSinglePostingLegalInfo(value) { + return true; +} +export function V2FboSinglePostingLegalInfoFromJSON(json) { + return V2FboSinglePostingLegalInfoFromJSONTyped(json, false); +} +export function V2FboSinglePostingLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +export function V2FboSinglePostingLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/esm/models/V2FbsPosting.d.ts b/dist/esm/models/V2FbsPosting.d.ts new file mode 100644 index 0000000..50ca98f --- /dev/null +++ b/dist/esm/models/V2FbsPosting.d.ts @@ -0,0 +1,87 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FbsPostingProduct } from './V2FbsPostingProduct'; +import type { FbsPostingBarcodes } from './FbsPostingBarcodes'; +/** + * Результаты запроса. + * @export + * @interface V2FbsPosting + */ +export interface V2FbsPosting { + /** + * + * @type {FbsPostingBarcodes} + * @memberof V2FbsPosting + */ + barcodes?: FbsPostingBarcodes; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof V2FbsPosting + */ + cancel_reason_id?: number; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof V2FbsPosting + */ + created_at?: string; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V2FbsPosting + */ + in_process_at?: string; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V2FbsPosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V2FbsPosting + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2FbsPosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V2FbsPosting + */ + products?: Array; + /** + * Дата и время, до которой необходимо собрать отправление. Если отправление не собрать к этой дате — оно автоматически отменится. + * @type {string} + * @memberof V2FbsPosting + */ + shipment_date?: string; + /** + * Статус отправления. + * @type {string} + * @memberof V2FbsPosting + */ + status?: string; +} +/** + * Check if a given object implements the V2FbsPosting interface. + */ +export declare function instanceOfV2FbsPosting(value: object): value is V2FbsPosting; +export declare function V2FbsPostingFromJSON(json: any): V2FbsPosting; +export declare function V2FbsPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPosting; +export declare function V2FbsPostingToJSON(value?: V2FbsPosting | null): any; diff --git a/dist/esm/models/V2FbsPosting.js b/dist/esm/models/V2FbsPosting.js new file mode 100644 index 0000000..675d824 --- /dev/null +++ b/dist/esm/models/V2FbsPosting.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2FbsPostingProductFromJSON, V2FbsPostingProductToJSON, } from './V2FbsPostingProduct'; +import { FbsPostingBarcodesFromJSON, FbsPostingBarcodesToJSON, } from './FbsPostingBarcodes'; +/** + * Check if a given object implements the V2FbsPosting interface. + */ +export function instanceOfV2FbsPosting(value) { + return true; +} +export function V2FbsPostingFromJSON(json) { + return V2FbsPostingFromJSONTyped(json, false); +} +export function V2FbsPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcodes': json['barcodes'] == null ? undefined : FbsPostingBarcodesFromJSON(json['barcodes']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2FbsPostingProductFromJSON)), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V2FbsPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcodes': FbsPostingBarcodesToJSON(value['barcodes']), + 'cancel_reason_id': value['cancel_reason_id'], + 'created_at': value['created_at'], + 'in_process_at': value['in_process_at'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2FbsPostingProductToJSON)), + 'shipment_date': value['shipment_date'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V2FbsPostingProduct.d.ts b/dist/esm/models/V2FbsPostingProduct.d.ts new file mode 100644 index 0000000..ef41b41 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProduct.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProduct + */ +export interface V2FbsPostingProduct { + /** + * Название товара. + * @type {string} + * @memberof V2FbsPostingProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2FbsPostingProduct + */ + offer_id?: string; + /** + * Цена товара. + * @type {string} + * @memberof V2FbsPostingProduct + */ + price?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof V2FbsPostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2FbsPostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V2FbsPostingProduct interface. + */ +export declare function instanceOfV2FbsPostingProduct(value: object): value is V2FbsPostingProduct; +export declare function V2FbsPostingProductFromJSON(json: any): V2FbsPostingProduct; +export declare function V2FbsPostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProduct; +export declare function V2FbsPostingProductToJSON(value?: V2FbsPostingProduct | null): any; diff --git a/dist/esm/models/V2FbsPostingProduct.js b/dist/esm/models/V2FbsPostingProduct.js new file mode 100644 index 0000000..a35fab5 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProduct.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2FbsPostingProduct interface. + */ +export function instanceOfV2FbsPostingProduct(value) { + return true; +} +export function V2FbsPostingProductFromJSON(json) { + return V2FbsPostingProductFromJSONTyped(json, false); +} +export function V2FbsPostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V2FbsPostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V2FbsPostingProductCountryListRequest.d.ts b/dist/esm/models/V2FbsPostingProductCountryListRequest.d.ts new file mode 100644 index 0000000..6c3c6b0 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountryListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProductCountryListRequest + */ +export interface V2FbsPostingProductCountryListRequest { + /** + * Фильтрация по строке. + * @type {string} + * @memberof V2FbsPostingProductCountryListRequest + */ + name_search?: string; +} +/** + * Check if a given object implements the V2FbsPostingProductCountryListRequest interface. + */ +export declare function instanceOfV2FbsPostingProductCountryListRequest(value: object): value is V2FbsPostingProductCountryListRequest; +export declare function V2FbsPostingProductCountryListRequestFromJSON(json: any): V2FbsPostingProductCountryListRequest; +export declare function V2FbsPostingProductCountryListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountryListRequest; +export declare function V2FbsPostingProductCountryListRequestToJSON(value?: V2FbsPostingProductCountryListRequest | null): any; diff --git a/dist/esm/models/V2FbsPostingProductCountryListRequest.js b/dist/esm/models/V2FbsPostingProductCountryListRequest.js new file mode 100644 index 0000000..5be6dbc --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountryListRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2FbsPostingProductCountryListRequest interface. + */ +export function instanceOfV2FbsPostingProductCountryListRequest(value) { + return true; +} +export function V2FbsPostingProductCountryListRequestFromJSON(json) { + return V2FbsPostingProductCountryListRequestFromJSONTyped(json, false); +} +export function V2FbsPostingProductCountryListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name_search': json['name_search'] == null ? undefined : json['name_search'], + }; +} +export function V2FbsPostingProductCountryListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'name_search': value['name_search'], + }; +} diff --git a/dist/esm/models/V2FbsPostingProductCountryListResponse.d.ts b/dist/esm/models/V2FbsPostingProductCountryListResponse.d.ts new file mode 100644 index 0000000..a30cdc0 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountryListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FbsPostingProductCountryListResponseResult } from './V2FbsPostingProductCountryListResponseResult'; +/** + * + * @export + * @interface V2FbsPostingProductCountryListResponse + */ +export interface V2FbsPostingProductCountryListResponse { + /** + * Список стран-изготовителей и ISO коды. + * @type {Array} + * @memberof V2FbsPostingProductCountryListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2FbsPostingProductCountryListResponse interface. + */ +export declare function instanceOfV2FbsPostingProductCountryListResponse(value: object): value is V2FbsPostingProductCountryListResponse; +export declare function V2FbsPostingProductCountryListResponseFromJSON(json: any): V2FbsPostingProductCountryListResponse; +export declare function V2FbsPostingProductCountryListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountryListResponse; +export declare function V2FbsPostingProductCountryListResponseToJSON(value?: V2FbsPostingProductCountryListResponse | null): any; diff --git a/dist/esm/models/V2FbsPostingProductCountryListResponse.js b/dist/esm/models/V2FbsPostingProductCountryListResponse.js new file mode 100644 index 0000000..2850fc4 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountryListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2FbsPostingProductCountryListResponseResultFromJSON, V2FbsPostingProductCountryListResponseResultToJSON, } from './V2FbsPostingProductCountryListResponseResult'; +/** + * Check if a given object implements the V2FbsPostingProductCountryListResponse interface. + */ +export function instanceOfV2FbsPostingProductCountryListResponse(value) { + return true; +} +export function V2FbsPostingProductCountryListResponseFromJSON(json) { + return V2FbsPostingProductCountryListResponseFromJSONTyped(json, false); +} +export function V2FbsPostingProductCountryListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2FbsPostingProductCountryListResponseResultFromJSON)), + }; +} +export function V2FbsPostingProductCountryListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2FbsPostingProductCountryListResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/V2FbsPostingProductCountryListResponseResult.d.ts b/dist/esm/models/V2FbsPostingProductCountryListResponseResult.d.ts new file mode 100644 index 0000000..8df202f --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountryListResponseResult.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProductCountryListResponseResult + */ +export interface V2FbsPostingProductCountryListResponseResult { + /** + * Название страны на русском языке. + * @type {string} + * @memberof V2FbsPostingProductCountryListResponseResult + */ + name?: string; + /** + * ISO код страны. + * @type {string} + * @memberof V2FbsPostingProductCountryListResponseResult + */ + country_iso_code?: string; +} +/** + * Check if a given object implements the V2FbsPostingProductCountryListResponseResult interface. + */ +export declare function instanceOfV2FbsPostingProductCountryListResponseResult(value: object): value is V2FbsPostingProductCountryListResponseResult; +export declare function V2FbsPostingProductCountryListResponseResultFromJSON(json: any): V2FbsPostingProductCountryListResponseResult; +export declare function V2FbsPostingProductCountryListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountryListResponseResult; +export declare function V2FbsPostingProductCountryListResponseResultToJSON(value?: V2FbsPostingProductCountryListResponseResult | null): any; diff --git a/dist/esm/models/V2FbsPostingProductCountryListResponseResult.js b/dist/esm/models/V2FbsPostingProductCountryListResponseResult.js new file mode 100644 index 0000000..f422b1d --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountryListResponseResult.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2FbsPostingProductCountryListResponseResult interface. + */ +export function instanceOfV2FbsPostingProductCountryListResponseResult(value) { + return true; +} +export function V2FbsPostingProductCountryListResponseResultFromJSON(json) { + return V2FbsPostingProductCountryListResponseResultFromJSONTyped(json, false); +} +export function V2FbsPostingProductCountryListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'country_iso_code': json['country_iso_code'] == null ? undefined : json['country_iso_code'], + }; +} +export function V2FbsPostingProductCountryListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'country_iso_code': value['country_iso_code'], + }; +} diff --git a/dist/esm/models/V2FbsPostingProductCountrySetRequest.d.ts b/dist/esm/models/V2FbsPostingProductCountrySetRequest.d.ts new file mode 100644 index 0000000..b0e9f17 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountrySetRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProductCountrySetRequest + */ +export interface V2FbsPostingProductCountrySetRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V2FbsPostingProductCountrySetRequest + */ + posting_number: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V2FbsPostingProductCountrySetRequest + */ + product_id: number; + /** + * Двухбуквенный код добавляемой страны по стандарту ISO_3166-1. + * + * Список доступных стран-изготовителей и их ISO коды можно получить с помощью метода [/v2/posting/fbs/product/country/list](#operation/PostingAPI_ListCountryProductFbsPostingV2). + * + * @type {string} + * @memberof V2FbsPostingProductCountrySetRequest + */ + country_iso_code: string; +} +/** + * Check if a given object implements the V2FbsPostingProductCountrySetRequest interface. + */ +export declare function instanceOfV2FbsPostingProductCountrySetRequest(value: object): value is V2FbsPostingProductCountrySetRequest; +export declare function V2FbsPostingProductCountrySetRequestFromJSON(json: any): V2FbsPostingProductCountrySetRequest; +export declare function V2FbsPostingProductCountrySetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountrySetRequest; +export declare function V2FbsPostingProductCountrySetRequestToJSON(value?: V2FbsPostingProductCountrySetRequest | null): any; diff --git a/dist/esm/models/V2FbsPostingProductCountrySetRequest.js b/dist/esm/models/V2FbsPostingProductCountrySetRequest.js new file mode 100644 index 0000000..8d45ff5 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountrySetRequest.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2FbsPostingProductCountrySetRequest interface. + */ +export function instanceOfV2FbsPostingProductCountrySetRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('country_iso_code' in value) || value['country_iso_code'] === undefined) + return false; + return true; +} +export function V2FbsPostingProductCountrySetRequestFromJSON(json) { + return V2FbsPostingProductCountrySetRequestFromJSONTyped(json, false); +} +export function V2FbsPostingProductCountrySetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'product_id': json['product_id'], + 'country_iso_code': json['country_iso_code'], + }; +} +export function V2FbsPostingProductCountrySetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'product_id': value['product_id'], + 'country_iso_code': value['country_iso_code'], + }; +} diff --git a/dist/esm/models/V2FbsPostingProductCountrySetResponse.d.ts b/dist/esm/models/V2FbsPostingProductCountrySetResponse.d.ts new file mode 100644 index 0000000..c1a06b9 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountrySetResponse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProductCountrySetResponse + */ +export interface V2FbsPostingProductCountrySetResponse { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V2FbsPostingProductCountrySetResponse + */ + product_id?: number; + /** + * Признак того, что необходимо передать номер грузовой таможенной декларации (ГТД) для продукта и отправления. + * @type {boolean} + * @memberof V2FbsPostingProductCountrySetResponse + */ + is_gtd_needed?: boolean; +} +/** + * Check if a given object implements the V2FbsPostingProductCountrySetResponse interface. + */ +export declare function instanceOfV2FbsPostingProductCountrySetResponse(value: object): value is V2FbsPostingProductCountrySetResponse; +export declare function V2FbsPostingProductCountrySetResponseFromJSON(json: any): V2FbsPostingProductCountrySetResponse; +export declare function V2FbsPostingProductCountrySetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountrySetResponse; +export declare function V2FbsPostingProductCountrySetResponseToJSON(value?: V2FbsPostingProductCountrySetResponse | null): any; diff --git a/dist/esm/models/V2FbsPostingProductCountrySetResponse.js b/dist/esm/models/V2FbsPostingProductCountrySetResponse.js new file mode 100644 index 0000000..b834bb7 --- /dev/null +++ b/dist/esm/models/V2FbsPostingProductCountrySetResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2FbsPostingProductCountrySetResponse interface. + */ +export function instanceOfV2FbsPostingProductCountrySetResponse(value) { + return true; +} +export function V2FbsPostingProductCountrySetResponseFromJSON(json) { + return V2FbsPostingProductCountrySetResponseFromJSONTyped(json, false); +} +export function V2FbsPostingProductCountrySetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'is_gtd_needed': json['is_gtd_needed'] == null ? undefined : json['is_gtd_needed'], + }; +} +export function V2FbsPostingProductCountrySetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'is_gtd_needed': value['is_gtd_needed'], + }; +} diff --git a/dist/esm/models/V2FbsPostingResponse.d.ts b/dist/esm/models/V2FbsPostingResponse.d.ts new file mode 100644 index 0000000..cb2d7b3 --- /dev/null +++ b/dist/esm/models/V2FbsPostingResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FbsPosting } from './V2FbsPosting'; +/** + * Информация об отправлении. + * @export + * @interface V2FbsPostingResponse + */ +export interface V2FbsPostingResponse { + /** + * + * @type {V2FbsPosting} + * @memberof V2FbsPostingResponse + */ + result?: V2FbsPosting; +} +/** + * Check if a given object implements the V2FbsPostingResponse interface. + */ +export declare function instanceOfV2FbsPostingResponse(value: object): value is V2FbsPostingResponse; +export declare function V2FbsPostingResponseFromJSON(json: any): V2FbsPostingResponse; +export declare function V2FbsPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingResponse; +export declare function V2FbsPostingResponseToJSON(value?: V2FbsPostingResponse | null): any; diff --git a/dist/esm/models/V2FbsPostingResponse.js b/dist/esm/models/V2FbsPostingResponse.js new file mode 100644 index 0000000..876ce8d --- /dev/null +++ b/dist/esm/models/V2FbsPostingResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2FbsPostingFromJSON, V2FbsPostingToJSON, } from './V2FbsPosting'; +/** + * Check if a given object implements the V2FbsPostingResponse interface. + */ +export function instanceOfV2FbsPostingResponse(value) { + return true; +} +export function V2FbsPostingResponseFromJSON(json) { + return V2FbsPostingResponseFromJSONTyped(json, false); +} +export function V2FbsPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V2FbsPostingFromJSON(json['result']), + }; +} +export function V2FbsPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V2FbsPostingToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V2GetConditionalCancellationListV2Request.d.ts b/dist/esm/models/V2GetConditionalCancellationListV2Request.d.ts new file mode 100644 index 0000000..c4ced38 --- /dev/null +++ b/dist/esm/models/V2GetConditionalCancellationListV2Request.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetConditionalCancellationListV2RequestFilters } from './GetConditionalCancellationListV2RequestFilters'; +import type { GetConditionalCancellationListV2RequestWith } from './GetConditionalCancellationListV2RequestWith'; +/** + * + * @export + * @interface V2GetConditionalCancellationListV2Request + */ +export interface V2GetConditionalCancellationListV2Request { + /** + * + * @type {GetConditionalCancellationListV2RequestFilters} + * @memberof V2GetConditionalCancellationListV2Request + */ + filters?: GetConditionalCancellationListV2RequestFilters; + /** + * Идентификатор последнего значения на странице. Оставьте это поле пустым при выполнении первого запроса. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {number} + * @memberof V2GetConditionalCancellationListV2Request + */ + last_id?: number; + /** + * Количество заявок в ответе. + * @type {number} + * @memberof V2GetConditionalCancellationListV2Request + */ + limit: number; + /** + * + * @type {GetConditionalCancellationListV2RequestWith} + * @memberof V2GetConditionalCancellationListV2Request + */ + _with?: GetConditionalCancellationListV2RequestWith; +} +/** + * Check if a given object implements the V2GetConditionalCancellationListV2Request interface. + */ +export declare function instanceOfV2GetConditionalCancellationListV2Request(value: object): value is V2GetConditionalCancellationListV2Request; +export declare function V2GetConditionalCancellationListV2RequestFromJSON(json: any): V2GetConditionalCancellationListV2Request; +export declare function V2GetConditionalCancellationListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetConditionalCancellationListV2Request; +export declare function V2GetConditionalCancellationListV2RequestToJSON(value?: V2GetConditionalCancellationListV2Request | null): any; diff --git a/dist/esm/models/V2GetConditionalCancellationListV2Request.js b/dist/esm/models/V2GetConditionalCancellationListV2Request.js new file mode 100644 index 0000000..dc3a1d4 --- /dev/null +++ b/dist/esm/models/V2GetConditionalCancellationListV2Request.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetConditionalCancellationListV2RequestFiltersFromJSON, GetConditionalCancellationListV2RequestFiltersToJSON, } from './GetConditionalCancellationListV2RequestFilters'; +import { GetConditionalCancellationListV2RequestWithFromJSON, GetConditionalCancellationListV2RequestWithToJSON, } from './GetConditionalCancellationListV2RequestWith'; +/** + * Check if a given object implements the V2GetConditionalCancellationListV2Request interface. + */ +export function instanceOfV2GetConditionalCancellationListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V2GetConditionalCancellationListV2RequestFromJSON(json) { + return V2GetConditionalCancellationListV2RequestFromJSONTyped(json, false); +} +export function V2GetConditionalCancellationListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filters': json['filters'] == null ? undefined : GetConditionalCancellationListV2RequestFiltersFromJSON(json['filters']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + '_with': json['with'] == null ? undefined : GetConditionalCancellationListV2RequestWithFromJSON(json['with']), + }; +} +export function V2GetConditionalCancellationListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filters': GetConditionalCancellationListV2RequestFiltersToJSON(value['filters']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'with': GetConditionalCancellationListV2RequestWithToJSON(value['_with']), + }; +} diff --git a/dist/esm/models/V2GetConditionalCancellationListV2Response.d.ts b/dist/esm/models/V2GetConditionalCancellationListV2Response.d.ts new file mode 100644 index 0000000..b9269fe --- /dev/null +++ b/dist/esm/models/V2GetConditionalCancellationListV2Response.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetConditionalCancellationListV2ResponseResult } from './GetConditionalCancellationListV2ResponseResult'; +/** + * + * @export + * @interface V2GetConditionalCancellationListV2Response + */ +export interface V2GetConditionalCancellationListV2Response { + /** + * Cчётчик заявок в статусе `ON_APPROVAL`. + * @type {number} + * @memberof V2GetConditionalCancellationListV2Response + */ + counter?: number; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * + * @type {number} + * @memberof V2GetConditionalCancellationListV2Response + */ + last_id?: number; + /** + * Информация о заявках на отмену. + * @type {Array} + * @memberof V2GetConditionalCancellationListV2Response + */ + result?: Array; +} +/** + * Check if a given object implements the V2GetConditionalCancellationListV2Response interface. + */ +export declare function instanceOfV2GetConditionalCancellationListV2Response(value: object): value is V2GetConditionalCancellationListV2Response; +export declare function V2GetConditionalCancellationListV2ResponseFromJSON(json: any): V2GetConditionalCancellationListV2Response; +export declare function V2GetConditionalCancellationListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetConditionalCancellationListV2Response; +export declare function V2GetConditionalCancellationListV2ResponseToJSON(value?: V2GetConditionalCancellationListV2Response | null): any; diff --git a/dist/esm/models/V2GetConditionalCancellationListV2Response.js b/dist/esm/models/V2GetConditionalCancellationListV2Response.js new file mode 100644 index 0000000..e10e0f6 --- /dev/null +++ b/dist/esm/models/V2GetConditionalCancellationListV2Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetConditionalCancellationListV2ResponseResultFromJSON, GetConditionalCancellationListV2ResponseResultToJSON, } from './GetConditionalCancellationListV2ResponseResult'; +/** + * Check if a given object implements the V2GetConditionalCancellationListV2Response interface. + */ +export function instanceOfV2GetConditionalCancellationListV2Response(value) { + return true; +} +export function V2GetConditionalCancellationListV2ResponseFromJSON(json) { + return V2GetConditionalCancellationListV2ResponseFromJSONTyped(json, false); +} +export function V2GetConditionalCancellationListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'counter': json['counter'] == null ? undefined : json['counter'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'result': json['result'] == null ? undefined : (json['result'].map(GetConditionalCancellationListV2ResponseResultFromJSON)), + }; +} +export function V2GetConditionalCancellationListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'counter': value['counter'], + 'last_id': value['last_id'], + 'result': value['result'] == null ? undefined : (value['result'].map(GetConditionalCancellationListV2ResponseResultToJSON)), + }; +} diff --git a/dist/esm/models/V2GetDiscountTaskListV2Request.d.ts b/dist/esm/models/V2GetDiscountTaskListV2Request.d.ts new file mode 100644 index 0000000..d77d338 --- /dev/null +++ b/dist/esm/models/V2GetDiscountTaskListV2Request.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum } from './V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum'; +/** + * + * @export + * @interface V2GetDiscountTaskListV2Request + */ +export interface V2GetDiscountTaskListV2Request { + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * @type {number} + * @memberof V2GetDiscountTaskListV2Request + */ + last_id?: number; + /** + * Максимальное количество заявок на странице. + * @type {number} + * @memberof V2GetDiscountTaskListV2Request + */ + limit?: V2GetDiscountTaskListV2RequestLimitEnum; + /** + * + * @type {V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum} + * @memberof V2GetDiscountTaskListV2Request + */ + status?: V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum; +} +/** + * @export + */ +export declare const V2GetDiscountTaskListV2RequestLimitEnum: { + readonly NUMBER_5: 5; + readonly NUMBER_10: 10; + readonly NUMBER_15: 15; + readonly NUMBER_20: 20; + readonly NUMBER_30: 30; + readonly NUMBER_50: 50; +}; +export type V2GetDiscountTaskListV2RequestLimitEnum = typeof V2GetDiscountTaskListV2RequestLimitEnum[keyof typeof V2GetDiscountTaskListV2RequestLimitEnum]; +/** + * Check if a given object implements the V2GetDiscountTaskListV2Request interface. + */ +export declare function instanceOfV2GetDiscountTaskListV2Request(value: object): value is V2GetDiscountTaskListV2Request; +export declare function V2GetDiscountTaskListV2RequestFromJSON(json: any): V2GetDiscountTaskListV2Request; +export declare function V2GetDiscountTaskListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetDiscountTaskListV2Request; +export declare function V2GetDiscountTaskListV2RequestToJSON(value?: V2GetDiscountTaskListV2Request | null): any; diff --git a/dist/esm/models/V2GetDiscountTaskListV2Request.js b/dist/esm/models/V2GetDiscountTaskListV2Request.js new file mode 100644 index 0000000..803bf8c --- /dev/null +++ b/dist/esm/models/V2GetDiscountTaskListV2Request.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON, V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON, } from './V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum'; +/** + * @export + */ +export const V2GetDiscountTaskListV2RequestLimitEnum = { + NUMBER_5: 5, + NUMBER_10: 10, + NUMBER_15: 15, + NUMBER_20: 20, + NUMBER_30: 30, + NUMBER_50: 50 +}; +/** + * Check if a given object implements the V2GetDiscountTaskListV2Request interface. + */ +export function instanceOfV2GetDiscountTaskListV2Request(value) { + return true; +} +export function V2GetDiscountTaskListV2RequestFromJSON(json) { + return V2GetDiscountTaskListV2RequestFromJSONTyped(json, false); +} +export function V2GetDiscountTaskListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'status': json['status'] == null ? undefined : V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON(json['status']), + }; +} +export function V2GetDiscountTaskListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'limit': value['limit'], + 'status': V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON(value['status']), + }; +} diff --git a/dist/esm/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.d.ts b/dist/esm/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.d.ts new file mode 100644 index 0000000..6d462e8 --- /dev/null +++ b/dist/esm/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `ALL` — все статусы, + * - `NEW` — новая, + * - `APPROVED` — одобренная, + * - `DECLINED` — отклонённая. + * + * @export + */ +export declare const V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum: { + readonly ALL: "ALL"; + readonly NEW: "NEW"; + readonly APPROVED: "APPROVED"; + readonly DECLINED: "DECLINED"; +}; +export type V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum = typeof V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum[keyof typeof V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum]; +export declare function instanceOfV2GetDiscountTaskListV2RequestDiscountTaskStatusEnum(value: any): boolean; +export declare function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON(json: any): V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum; +export declare function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum; +export declare function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON(value?: V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum | null): any; diff --git a/dist/esm/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.js b/dist/esm/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.js new file mode 100644 index 0000000..6bc909a --- /dev/null +++ b/dist/esm/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `ALL` — все статусы, + * - `NEW` — новая, + * - `APPROVED` — одобренная, + * - `DECLINED` — отклонённая. + * + * @export + */ +export const V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum = { + ALL: 'ALL', + NEW: 'NEW', + APPROVED: 'APPROVED', + DECLINED: 'DECLINED' +}; +export function instanceOfV2GetDiscountTaskListV2RequestDiscountTaskStatusEnum(value) { + for (const key in V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum) { + if (Object.prototype.hasOwnProperty.call(V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum, key)) { + if (V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +export function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON(json) { + return V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSONTyped(json, false); +} +export function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/V2GetDiscountTaskListV2Response.d.ts b/dist/esm/models/V2GetDiscountTaskListV2Response.d.ts new file mode 100644 index 0000000..51e8e48 --- /dev/null +++ b/dist/esm/models/V2GetDiscountTaskListV2Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetDiscountTaskListV2ResponseTask } from './GetDiscountTaskListV2ResponseTask'; +/** + * + * @export + * @interface V2GetDiscountTaskListV2Response + */ +export interface V2GetDiscountTaskListV2Response { + /** + * Список заявок. + * @type {Array} + * @memberof V2GetDiscountTaskListV2Response + */ + tasks?: Array; +} +/** + * Check if a given object implements the V2GetDiscountTaskListV2Response interface. + */ +export declare function instanceOfV2GetDiscountTaskListV2Response(value: object): value is V2GetDiscountTaskListV2Response; +export declare function V2GetDiscountTaskListV2ResponseFromJSON(json: any): V2GetDiscountTaskListV2Response; +export declare function V2GetDiscountTaskListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetDiscountTaskListV2Response; +export declare function V2GetDiscountTaskListV2ResponseToJSON(value?: V2GetDiscountTaskListV2Response | null): any; diff --git a/dist/esm/models/V2GetDiscountTaskListV2Response.js b/dist/esm/models/V2GetDiscountTaskListV2Response.js new file mode 100644 index 0000000..9ad12d6 --- /dev/null +++ b/dist/esm/models/V2GetDiscountTaskListV2Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetDiscountTaskListV2ResponseTaskFromJSON, GetDiscountTaskListV2ResponseTaskToJSON, } from './GetDiscountTaskListV2ResponseTask'; +/** + * Check if a given object implements the V2GetDiscountTaskListV2Response interface. + */ +export function instanceOfV2GetDiscountTaskListV2Response(value) { + return true; +} +export function V2GetDiscountTaskListV2ResponseFromJSON(json) { + return V2GetDiscountTaskListV2ResponseFromJSONTyped(json, false); +} +export function V2GetDiscountTaskListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tasks': json['tasks'] == null ? undefined : (json['tasks'].map(GetDiscountTaskListV2ResponseTaskFromJSON)), + }; +} +export function V2GetDiscountTaskListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'tasks': value['tasks'] == null ? undefined : (value['tasks'].map(GetDiscountTaskListV2ResponseTaskToJSON)), + }; +} diff --git a/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.d.ts b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.d.ts new file mode 100644 index 0000000..5b0f37e --- /dev/null +++ b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ +export interface V2GetProductInfoStocksByWarehouseFbsRequestV2 { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ + cursor?: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ + limit: number; + /** + * Идентификаторы товаров в системе продавца — артикул. + * @type {Array} + * @memberof V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ + offer_id?: Array; + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ + sku?: Array; +} +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsRequestV2 interface. + */ +export declare function instanceOfV2GetProductInfoStocksByWarehouseFbsRequestV2(value: object): value is V2GetProductInfoStocksByWarehouseFbsRequestV2; +export declare function V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSON(json: any): V2GetProductInfoStocksByWarehouseFbsRequestV2; +export declare function V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetProductInfoStocksByWarehouseFbsRequestV2; +export declare function V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON(value?: V2GetProductInfoStocksByWarehouseFbsRequestV2 | null): any; diff --git a/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.js b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.js new file mode 100644 index 0000000..92622f8 --- /dev/null +++ b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsRequestV2 interface. + */ +export function instanceOfV2GetProductInfoStocksByWarehouseFbsRequestV2(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSON(json) { + return V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSONTyped(json, false); +} +export function V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + 'offer_id': value['offer_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.d.ts b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.d.ts new file mode 100644 index 0000000..5115e56 --- /dev/null +++ b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2GetProductInfoStocksByWarehouseFbsResponseV2Product } from './V2GetProductInfoStocksByWarehouseFbsResponseV2Product'; +/** + * + * @export + * @interface V2GetProductInfoStocksByWarehouseFbsResponseV2 + */ +export interface V2GetProductInfoStocksByWarehouseFbsResponseV2 { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2 + */ + cursor?: string; + /** + * `true`, если в ответе вернули не все товары. + * + * @type {boolean} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2 + */ + has_next?: boolean; + /** + * Остатки товаров. + * @type {Array} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2 + */ + products?: Array; +} +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsResponseV2 interface. + */ +export declare function instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2(value: object): value is V2GetProductInfoStocksByWarehouseFbsResponseV2; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON(json: any): V2GetProductInfoStocksByWarehouseFbsResponseV2; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetProductInfoStocksByWarehouseFbsResponseV2; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2ToJSON(value?: V2GetProductInfoStocksByWarehouseFbsResponseV2 | null): any; diff --git a/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.js b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.js new file mode 100644 index 0000000..8cfd85f --- /dev/null +++ b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON, V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON, } from './V2GetProductInfoStocksByWarehouseFbsResponseV2Product'; +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsResponseV2 interface. + */ +export function instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2(value) { + return true; +} +export function V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON(json) { + return V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSONTyped(json, false); +} +export function V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON)), + }; +} +export function V2GetProductInfoStocksByWarehouseFbsResponseV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON)), + }; +} diff --git a/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.d.ts b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.d.ts new file mode 100644 index 0000000..dcef983 --- /dev/null +++ b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ +export interface V2GetProductInfoStocksByWarehouseFbsResponseV2Product { + /** + * Количество доступных для продажи товаров. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + free_stock?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + offer_id?: string; + /** + * Общее количество товара на складе. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + present?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + product_id?: number; + /** + * Количество зарезервированных товаров на складе. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + reserved?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + sku?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsResponseV2Product interface. + */ +export declare function instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2Product(value: object): value is V2GetProductInfoStocksByWarehouseFbsResponseV2Product; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON(json: any): V2GetProductInfoStocksByWarehouseFbsResponseV2Product; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetProductInfoStocksByWarehouseFbsResponseV2Product; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON(value?: V2GetProductInfoStocksByWarehouseFbsResponseV2Product | null): any; diff --git a/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.js b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.js new file mode 100644 index 0000000..2a71508 --- /dev/null +++ b/dist/esm/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsResponseV2Product interface. + */ +export function instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2Product(value) { + return true; +} +export function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON(json) { + return V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSONTyped(json, false); +} +export function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'free_stock': json['free_stock'] == null ? undefined : json['free_stock'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'present': json['present'] == null ? undefined : json['present'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'free_stock': value['free_stock'], + 'offer_id': value['offer_id'], + 'present': value['present'], + 'product_id': value['product_id'], + 'reserved': value['reserved'], + 'sku': value['sku'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/V2GetRealizationReportRequestV2.d.ts b/dist/esm/models/V2GetRealizationReportRequestV2.d.ts new file mode 100644 index 0000000..ffec06d --- /dev/null +++ b/dist/esm/models/V2GetRealizationReportRequestV2.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2GetRealizationReportRequestV2 + */ +export interface V2GetRealizationReportRequestV2 { + /** + * Месяц. + * @type {number} + * @memberof V2GetRealizationReportRequestV2 + */ + month: number; + /** + * Год. + * @type {number} + * @memberof V2GetRealizationReportRequestV2 + */ + year: number; +} +/** + * Check if a given object implements the V2GetRealizationReportRequestV2 interface. + */ +export declare function instanceOfV2GetRealizationReportRequestV2(value: object): value is V2GetRealizationReportRequestV2; +export declare function V2GetRealizationReportRequestV2FromJSON(json: any): V2GetRealizationReportRequestV2; +export declare function V2GetRealizationReportRequestV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetRealizationReportRequestV2; +export declare function V2GetRealizationReportRequestV2ToJSON(value?: V2GetRealizationReportRequestV2 | null): any; diff --git a/dist/esm/models/V2GetRealizationReportRequestV2.js b/dist/esm/models/V2GetRealizationReportRequestV2.js new file mode 100644 index 0000000..41cbbf2 --- /dev/null +++ b/dist/esm/models/V2GetRealizationReportRequestV2.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2GetRealizationReportRequestV2 interface. + */ +export function instanceOfV2GetRealizationReportRequestV2(value) { + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('year' in value) || value['year'] === undefined) + return false; + return true; +} +export function V2GetRealizationReportRequestV2FromJSON(json) { + return V2GetRealizationReportRequestV2FromJSONTyped(json, false); +} +export function V2GetRealizationReportRequestV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'month': json['month'], + 'year': json['year'], + }; +} +export function V2GetRealizationReportRequestV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/esm/models/V2GetRealizationReportResponseV2.d.ts b/dist/esm/models/V2GetRealizationReportResponseV2.d.ts new file mode 100644 index 0000000..f2d3c52 --- /dev/null +++ b/dist/esm/models/V2GetRealizationReportResponseV2.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetRealizationReportResponseV2Result } from './GetRealizationReportResponseV2Result'; +/** + * + * @export + * @interface V2GetRealizationReportResponseV2 + */ +export interface V2GetRealizationReportResponseV2 { + /** + * + * @type {GetRealizationReportResponseV2Result} + * @memberof V2GetRealizationReportResponseV2 + */ + result?: GetRealizationReportResponseV2Result; +} +/** + * Check if a given object implements the V2GetRealizationReportResponseV2 interface. + */ +export declare function instanceOfV2GetRealizationReportResponseV2(value: object): value is V2GetRealizationReportResponseV2; +export declare function V2GetRealizationReportResponseV2FromJSON(json: any): V2GetRealizationReportResponseV2; +export declare function V2GetRealizationReportResponseV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetRealizationReportResponseV2; +export declare function V2GetRealizationReportResponseV2ToJSON(value?: V2GetRealizationReportResponseV2 | null): any; diff --git a/dist/esm/models/V2GetRealizationReportResponseV2.js b/dist/esm/models/V2GetRealizationReportResponseV2.js new file mode 100644 index 0000000..344368b --- /dev/null +++ b/dist/esm/models/V2GetRealizationReportResponseV2.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetRealizationReportResponseV2ResultFromJSON, GetRealizationReportResponseV2ResultToJSON, } from './GetRealizationReportResponseV2Result'; +/** + * Check if a given object implements the V2GetRealizationReportResponseV2 interface. + */ +export function instanceOfV2GetRealizationReportResponseV2(value) { + return true; +} +export function V2GetRealizationReportResponseV2FromJSON(json) { + return V2GetRealizationReportResponseV2FromJSONTyped(json, false); +} +export function V2GetRealizationReportResponseV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : GetRealizationReportResponseV2ResultFromJSON(json['result']), + }; +} +export function V2GetRealizationReportResponseV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': GetRealizationReportResponseV2ResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V2HsCode.d.ts b/dist/esm/models/V2HsCode.d.ts new file mode 100644 index 0000000..6d13e7f --- /dev/null +++ b/dist/esm/models/V2HsCode.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2HsCode + */ +export interface V2HsCode { + /** + * HS-код товара. + * @type {string} + * @memberof V2HsCode + */ + code?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {string} + * @memberof V2HsCode + */ + sku?: string; +} +/** + * Check if a given object implements the V2HsCode interface. + */ +export declare function instanceOfV2HsCode(value: object): value is V2HsCode; +export declare function V2HsCodeFromJSON(json: any): V2HsCode; +export declare function V2HsCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2HsCode; +export declare function V2HsCodeToJSON(value?: V2HsCode | null): any; diff --git a/dist/esm/models/V2HsCode.js b/dist/esm/models/V2HsCode.js new file mode 100644 index 0000000..2cd71b5 --- /dev/null +++ b/dist/esm/models/V2HsCode.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2HsCode interface. + */ +export function instanceOfV2HsCode(value) { + return true; +} +export function V2HsCodeFromJSON(json) { + return V2HsCodeFromJSONTyped(json, false); +} +export function V2HsCodeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V2HsCodeToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V2InvoiceCreateOrUpdateV2Request.d.ts b/dist/esm/models/V2InvoiceCreateOrUpdateV2Request.d.ts new file mode 100644 index 0000000..5e11eb3 --- /dev/null +++ b/dist/esm/models/V2InvoiceCreateOrUpdateV2Request.d.ts @@ -0,0 +1,77 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2HsCode } from './V2HsCode'; +/** + * + * @export + * @interface V2InvoiceCreateOrUpdateV2Request + */ +export interface V2InvoiceCreateOrUpdateV2Request { + /** + * Дата счёта-фактуры. + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + date: string; + /** + * HS-коды товаров. + * @type {Array} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + hs_codes?: Array; + /** + * Номер счёта-фактуры. Номер может содержать буквы и цифры, максимальная длина — 50 символов. + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + posting_number: string; + /** + * Стоимость, указанная в счёте-фактуре. Разделитель дробной части — точка, до двух знаков после точки. + * @type {number} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + price?: number; + /** + * Валюта счёта-фактуры: + * - `USD` — доллар, + * - `EUR` — евро, + * - `TRY` — турецкая лира, + * - `CNY` — юань, + * - `RUB` — рубль, + * - `GBP` — фунт стерлингов. + * + * Значение по умолчанию — `USD`. + * + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + price_currency?: string; + /** + * Ссылка на счёт-фактуру. Чтобы создать ссылку, используйте метод [v1/invoice/file/upload](#operation/invoice_upload). + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + url: string; +} +/** + * Check if a given object implements the V2InvoiceCreateOrUpdateV2Request interface. + */ +export declare function instanceOfV2InvoiceCreateOrUpdateV2Request(value: object): value is V2InvoiceCreateOrUpdateV2Request; +export declare function V2InvoiceCreateOrUpdateV2RequestFromJSON(json: any): V2InvoiceCreateOrUpdateV2Request; +export declare function V2InvoiceCreateOrUpdateV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2InvoiceCreateOrUpdateV2Request; +export declare function V2InvoiceCreateOrUpdateV2RequestToJSON(value?: V2InvoiceCreateOrUpdateV2Request | null): any; diff --git a/dist/esm/models/V2InvoiceCreateOrUpdateV2Request.js b/dist/esm/models/V2InvoiceCreateOrUpdateV2Request.js new file mode 100644 index 0000000..4b65e2b --- /dev/null +++ b/dist/esm/models/V2InvoiceCreateOrUpdateV2Request.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2HsCodeFromJSON, V2HsCodeToJSON, } from './V2HsCode'; +/** + * Check if a given object implements the V2InvoiceCreateOrUpdateV2Request interface. + */ +export function instanceOfV2InvoiceCreateOrUpdateV2Request(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +export function V2InvoiceCreateOrUpdateV2RequestFromJSON(json) { + return V2InvoiceCreateOrUpdateV2RequestFromJSONTyped(json, false); +} +export function V2InvoiceCreateOrUpdateV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'hs_codes': json['hs_codes'] == null ? undefined : (json['hs_codes'].map(V2HsCodeFromJSON)), + 'number': json['number'] == null ? undefined : json['number'], + 'posting_number': json['posting_number'], + 'price': json['price'] == null ? undefined : json['price'], + 'price_currency': json['price_currency'] == null ? undefined : json['price_currency'], + 'url': json['url'], + }; +} +export function V2InvoiceCreateOrUpdateV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'hs_codes': value['hs_codes'] == null ? undefined : (value['hs_codes'].map(V2HsCodeToJSON)), + 'number': value['number'], + 'posting_number': value['posting_number'], + 'price': value['price'], + 'price_currency': value['price_currency'], + 'url': value['url'], + }; +} diff --git a/dist/esm/models/V2InvoiceCreateOrUpdateV2Response.d.ts b/dist/esm/models/V2InvoiceCreateOrUpdateV2Response.d.ts new file mode 100644 index 0000000..b06297e --- /dev/null +++ b/dist/esm/models/V2InvoiceCreateOrUpdateV2Response.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2InvoiceCreateOrUpdateV2Response + */ +export interface V2InvoiceCreateOrUpdateV2Response { + /** + * Результат работы метода. + * @type {boolean} + * @memberof V2InvoiceCreateOrUpdateV2Response + */ + result?: boolean; +} +/** + * Check if a given object implements the V2InvoiceCreateOrUpdateV2Response interface. + */ +export declare function instanceOfV2InvoiceCreateOrUpdateV2Response(value: object): value is V2InvoiceCreateOrUpdateV2Response; +export declare function V2InvoiceCreateOrUpdateV2ResponseFromJSON(json: any): V2InvoiceCreateOrUpdateV2Response; +export declare function V2InvoiceCreateOrUpdateV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2InvoiceCreateOrUpdateV2Response; +export declare function V2InvoiceCreateOrUpdateV2ResponseToJSON(value?: V2InvoiceCreateOrUpdateV2Response | null): any; diff --git a/dist/esm/models/V2InvoiceCreateOrUpdateV2Response.js b/dist/esm/models/V2InvoiceCreateOrUpdateV2Response.js new file mode 100644 index 0000000..7f597c0 --- /dev/null +++ b/dist/esm/models/V2InvoiceCreateOrUpdateV2Response.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2InvoiceCreateOrUpdateV2Response interface. + */ +export function instanceOfV2InvoiceCreateOrUpdateV2Response(value) { + return true; +} +export function V2InvoiceCreateOrUpdateV2ResponseFromJSON(json) { + return V2InvoiceCreateOrUpdateV2ResponseFromJSONTyped(json, false); +} +export function V2InvoiceCreateOrUpdateV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function V2InvoiceCreateOrUpdateV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/V2InvoiceGetV2Response.d.ts b/dist/esm/models/V2InvoiceGetV2Response.d.ts new file mode 100644 index 0000000..6a2cd1e --- /dev/null +++ b/dist/esm/models/V2InvoiceGetV2Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { InvoiceGetV2ResponseResult } from './InvoiceGetV2ResponseResult'; +/** + * + * @export + * @interface V2InvoiceGetV2Response + */ +export interface V2InvoiceGetV2Response { + /** + * + * @type {InvoiceGetV2ResponseResult} + * @memberof V2InvoiceGetV2Response + */ + result?: InvoiceGetV2ResponseResult; +} +/** + * Check if a given object implements the V2InvoiceGetV2Response interface. + */ +export declare function instanceOfV2InvoiceGetV2Response(value: object): value is V2InvoiceGetV2Response; +export declare function V2InvoiceGetV2ResponseFromJSON(json: any): V2InvoiceGetV2Response; +export declare function V2InvoiceGetV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2InvoiceGetV2Response; +export declare function V2InvoiceGetV2ResponseToJSON(value?: V2InvoiceGetV2Response | null): any; diff --git a/dist/esm/models/V2InvoiceGetV2Response.js b/dist/esm/models/V2InvoiceGetV2Response.js new file mode 100644 index 0000000..18ddfb6 --- /dev/null +++ b/dist/esm/models/V2InvoiceGetV2Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { InvoiceGetV2ResponseResultFromJSON, InvoiceGetV2ResponseResultToJSON, } from './InvoiceGetV2ResponseResult'; +/** + * Check if a given object implements the V2InvoiceGetV2Response interface. + */ +export function instanceOfV2InvoiceGetV2Response(value) { + return true; +} +export function V2InvoiceGetV2ResponseFromJSON(json) { + return V2InvoiceGetV2ResponseFromJSONTyped(json, false); +} +export function V2InvoiceGetV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : InvoiceGetV2ResponseResultFromJSON(json['result']), + }; +} +export function V2InvoiceGetV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': InvoiceGetV2ResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V2MovePostingToAwaitingDeliveryRequest.d.ts b/dist/esm/models/V2MovePostingToAwaitingDeliveryRequest.d.ts new file mode 100644 index 0000000..92a8d83 --- /dev/null +++ b/dist/esm/models/V2MovePostingToAwaitingDeliveryRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2MovePostingToAwaitingDeliveryRequest + */ +export interface V2MovePostingToAwaitingDeliveryRequest { + /** + * Идентификатор отправления. Максимальное количество в одном запросе — 100. + * @type {Array} + * @memberof V2MovePostingToAwaitingDeliveryRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the V2MovePostingToAwaitingDeliveryRequest interface. + */ +export declare function instanceOfV2MovePostingToAwaitingDeliveryRequest(value: object): value is V2MovePostingToAwaitingDeliveryRequest; +export declare function V2MovePostingToAwaitingDeliveryRequestFromJSON(json: any): V2MovePostingToAwaitingDeliveryRequest; +export declare function V2MovePostingToAwaitingDeliveryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2MovePostingToAwaitingDeliveryRequest; +export declare function V2MovePostingToAwaitingDeliveryRequestToJSON(value?: V2MovePostingToAwaitingDeliveryRequest | null): any; diff --git a/dist/esm/models/V2MovePostingToAwaitingDeliveryRequest.js b/dist/esm/models/V2MovePostingToAwaitingDeliveryRequest.js new file mode 100644 index 0000000..d2caab1 --- /dev/null +++ b/dist/esm/models/V2MovePostingToAwaitingDeliveryRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2MovePostingToAwaitingDeliveryRequest interface. + */ +export function instanceOfV2MovePostingToAwaitingDeliveryRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V2MovePostingToAwaitingDeliveryRequestFromJSON(json) { + return V2MovePostingToAwaitingDeliveryRequestFromJSONTyped(json, false); +} +export function V2MovePostingToAwaitingDeliveryRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V2MovePostingToAwaitingDeliveryRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V2PolygonBindRequest.d.ts b/dist/esm/models/V2PolygonBindRequest.d.ts new file mode 100644 index 0000000..5244926 --- /dev/null +++ b/dist/esm/models/V2PolygonBindRequest.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PolygonBindRequest + */ +export interface V2PolygonBindRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V2PolygonBindRequest + */ + delivery_method_id: number; + /** + * Идентификатор полигона. + * @type {number} + * @memberof V2PolygonBindRequest + */ + polygon_id: number; + /** + * Время доставки в минутах. + * @type {number} + * @memberof V2PolygonBindRequest + */ + time: V2PolygonBindRequestTimeEnum; + /** + * Идентификатор склада. + * @type {number} + * @memberof V2PolygonBindRequest + */ + warehouse_id: number; +} +/** + * @export + */ +export declare const V2PolygonBindRequestTimeEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_45: 45; + readonly NUMBER_60: 60; + readonly NUMBER_90: 90; + readonly NUMBER_120: 120; + readonly NUMBER_150: 150; +}; +export type V2PolygonBindRequestTimeEnum = typeof V2PolygonBindRequestTimeEnum[keyof typeof V2PolygonBindRequestTimeEnum]; +/** + * Check if a given object implements the V2PolygonBindRequest interface. + */ +export declare function instanceOfV2PolygonBindRequest(value: object): value is V2PolygonBindRequest; +export declare function V2PolygonBindRequestFromJSON(json: any): V2PolygonBindRequest; +export declare function V2PolygonBindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PolygonBindRequest; +export declare function V2PolygonBindRequestToJSON(value?: V2PolygonBindRequest | null): any; diff --git a/dist/esm/models/V2PolygonBindRequest.js b/dist/esm/models/V2PolygonBindRequest.js new file mode 100644 index 0000000..215b3a4 --- /dev/null +++ b/dist/esm/models/V2PolygonBindRequest.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V2PolygonBindRequestTimeEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_45: 45, + NUMBER_60: 60, + NUMBER_90: 90, + NUMBER_120: 120, + NUMBER_150: 150 +}; +/** + * Check if a given object implements the V2PolygonBindRequest interface. + */ +export function instanceOfV2PolygonBindRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +export function V2PolygonBindRequestFromJSON(json) { + return V2PolygonBindRequestFromJSONTyped(json, false); +} +export function V2PolygonBindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'polygon_id': json['polygon_id'], + 'time': json['time'], + 'warehouse_id': json['warehouse_id'], + }; +} +export function V2PolygonBindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'polygon_id': value['polygon_id'], + 'time': value['time'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V2PostingFBSActGetPostingsRequest.d.ts b/dist/esm/models/V2PostingFBSActGetPostingsRequest.d.ts new file mode 100644 index 0000000..c04d58b --- /dev/null +++ b/dist/esm/models/V2PostingFBSActGetPostingsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSActGetPostingsRequest + */ +export interface V2PostingFBSActGetPostingsRequest { + /** + * Идентификатор акта. Получите значение параметра методом [/v2/posting/fbs/act/list](#operation/PostingAPI_FbsActList) или [/v1/carriage/create](#operation/CarriageAPI_CarriageCreate). + * @type {number} + * @memberof V2PostingFBSActGetPostingsRequest + */ + id: number; +} +/** + * Check if a given object implements the V2PostingFBSActGetPostingsRequest interface. + */ +export declare function instanceOfV2PostingFBSActGetPostingsRequest(value: object): value is V2PostingFBSActGetPostingsRequest; +export declare function V2PostingFBSActGetPostingsRequestFromJSON(json: any): V2PostingFBSActGetPostingsRequest; +export declare function V2PostingFBSActGetPostingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActGetPostingsRequest; +export declare function V2PostingFBSActGetPostingsRequestToJSON(value?: V2PostingFBSActGetPostingsRequest | null): any; diff --git a/dist/esm/models/V2PostingFBSActGetPostingsRequest.js b/dist/esm/models/V2PostingFBSActGetPostingsRequest.js new file mode 100644 index 0000000..40a408b --- /dev/null +++ b/dist/esm/models/V2PostingFBSActGetPostingsRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSActGetPostingsRequest interface. + */ +export function instanceOfV2PostingFBSActGetPostingsRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function V2PostingFBSActGetPostingsRequestFromJSON(json) { + return V2PostingFBSActGetPostingsRequestFromJSONTyped(json, false); +} +export function V2PostingFBSActGetPostingsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +export function V2PostingFBSActGetPostingsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/V2PostingFBSActGetPostingsResponse.d.ts b/dist/esm/models/V2PostingFBSActGetPostingsResponse.d.ts new file mode 100644 index 0000000..55acd80 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActGetPostingsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActGetPostingsResult } from './V2PostingFBSActGetPostingsResult'; +/** + * + * @export + * @interface V2PostingFBSActGetPostingsResponse + */ +export interface V2PostingFBSActGetPostingsResponse { + /** + * Информация об отправлениях. + * @type {Array} + * @memberof V2PostingFBSActGetPostingsResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2PostingFBSActGetPostingsResponse interface. + */ +export declare function instanceOfV2PostingFBSActGetPostingsResponse(value: object): value is V2PostingFBSActGetPostingsResponse; +export declare function V2PostingFBSActGetPostingsResponseFromJSON(json: any): V2PostingFBSActGetPostingsResponse; +export declare function V2PostingFBSActGetPostingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActGetPostingsResponse; +export declare function V2PostingFBSActGetPostingsResponseToJSON(value?: V2PostingFBSActGetPostingsResponse | null): any; diff --git a/dist/esm/models/V2PostingFBSActGetPostingsResponse.js b/dist/esm/models/V2PostingFBSActGetPostingsResponse.js new file mode 100644 index 0000000..6e2f151 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActGetPostingsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2PostingFBSActGetPostingsResultFromJSON, V2PostingFBSActGetPostingsResultToJSON, } from './V2PostingFBSActGetPostingsResult'; +/** + * Check if a given object implements the V2PostingFBSActGetPostingsResponse interface. + */ +export function instanceOfV2PostingFBSActGetPostingsResponse(value) { + return true; +} +export function V2PostingFBSActGetPostingsResponseFromJSON(json) { + return V2PostingFBSActGetPostingsResponseFromJSONTyped(json, false); +} +export function V2PostingFBSActGetPostingsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2PostingFBSActGetPostingsResultFromJSON)), + }; +} +export function V2PostingFBSActGetPostingsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2PostingFBSActGetPostingsResultToJSON)), + }; +} diff --git a/dist/esm/models/V2PostingFBSActGetPostingsResult.d.ts b/dist/esm/models/V2PostingFBSActGetPostingsResult.d.ts new file mode 100644 index 0000000..081be79 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActGetPostingsResult.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActGetProducts } from './V2PostingFBSActGetProducts'; +/** + * + * @export + * @interface V2PostingFBSActGetPostingsResult + */ +export interface V2PostingFBSActGetPostingsResult { + /** + * Идентификатор акта. + * @type {number} + * @memberof V2PostingFBSActGetPostingsResult + */ + id?: number; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V2PostingFBSActGetPostingsResult + */ + multi_box_qty?: number; + /** + * Номер отправления. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + posting_number?: string; + /** + * Статус отправления. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + status?: string; + /** + * Расшифровка кода ошибки. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + seller_error?: string; + /** + * Дата и время обновления записи об отправлении. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + updated_at?: string; + /** + * Дата и время создания записи об отправлении. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + created_at?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V2PostingFBSActGetPostingsResult + */ + products?: Array; +} +/** + * Check if a given object implements the V2PostingFBSActGetPostingsResult interface. + */ +export declare function instanceOfV2PostingFBSActGetPostingsResult(value: object): value is V2PostingFBSActGetPostingsResult; +export declare function V2PostingFBSActGetPostingsResultFromJSON(json: any): V2PostingFBSActGetPostingsResult; +export declare function V2PostingFBSActGetPostingsResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActGetPostingsResult; +export declare function V2PostingFBSActGetPostingsResultToJSON(value?: V2PostingFBSActGetPostingsResult | null): any; diff --git a/dist/esm/models/V2PostingFBSActGetPostingsResult.js b/dist/esm/models/V2PostingFBSActGetPostingsResult.js new file mode 100644 index 0000000..6736103 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActGetPostingsResult.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2PostingFBSActGetProductsFromJSON, V2PostingFBSActGetProductsToJSON, } from './V2PostingFBSActGetProducts'; +/** + * Check if a given object implements the V2PostingFBSActGetPostingsResult interface. + */ +export function instanceOfV2PostingFBSActGetPostingsResult(value) { + return true; +} +export function V2PostingFBSActGetPostingsResultFromJSON(json) { + return V2PostingFBSActGetPostingsResultFromJSONTyped(json, false); +} +export function V2PostingFBSActGetPostingsResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'status': json['status'] == null ? undefined : json['status'], + 'seller_error': json['seller_error'] == null ? undefined : json['seller_error'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2PostingFBSActGetProductsFromJSON)), + }; +} +export function V2PostingFBSActGetPostingsResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'multi_box_qty': value['multi_box_qty'], + 'posting_number': value['posting_number'], + 'status': value['status'], + 'seller_error': value['seller_error'], + 'updated_at': value['updated_at'], + 'created_at': value['created_at'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2PostingFBSActGetProductsToJSON)), + }; +} diff --git a/dist/esm/models/V2PostingFBSActGetProducts.d.ts b/dist/esm/models/V2PostingFBSActGetProducts.d.ts new file mode 100644 index 0000000..c582871 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActGetProducts.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSActGetProducts + */ +export interface V2PostingFBSActGetProducts { + /** + * Название товара. + * @type {string} + * @memberof V2PostingFBSActGetProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2PostingFBSActGetProducts + */ + offer_id?: string; + /** + * Цена товара. + * @type {string} + * @memberof V2PostingFBSActGetProducts + */ + price?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof V2PostingFBSActGetProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2PostingFBSActGetProducts + */ + sku?: number; +} +/** + * Check if a given object implements the V2PostingFBSActGetProducts interface. + */ +export declare function instanceOfV2PostingFBSActGetProducts(value: object): value is V2PostingFBSActGetProducts; +export declare function V2PostingFBSActGetProductsFromJSON(json: any): V2PostingFBSActGetProducts; +export declare function V2PostingFBSActGetProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActGetProducts; +export declare function V2PostingFBSActGetProductsToJSON(value?: V2PostingFBSActGetProducts | null): any; diff --git a/dist/esm/models/V2PostingFBSActGetProducts.js b/dist/esm/models/V2PostingFBSActGetProducts.js new file mode 100644 index 0000000..1bb44d9 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActGetProducts.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSActGetProducts interface. + */ +export function instanceOfV2PostingFBSActGetProducts(value) { + return true; +} +export function V2PostingFBSActGetProductsFromJSON(json) { + return V2PostingFBSActGetProductsFromJSONTyped(json, false); +} +export function V2PostingFBSActGetProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V2PostingFBSActGetProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V2PostingFBSActListFilter.d.ts b/dist/esm/models/V2PostingFBSActListFilter.d.ts new file mode 100644 index 0000000..0929bbd --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListFilter.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры фильтра. + * @export + * @interface V2PostingFBSActListFilter + */ +export interface V2PostingFBSActListFilter { + /** + * Начальная дата создания отгрузок. + * @type {string} + * @memberof V2PostingFBSActListFilter + */ + date_from: string; + /** + * Конечная дата создания отгрузок. + * @type {string} + * @memberof V2PostingFBSActListFilter + */ + date_to: string; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка силами Ozon. + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ. + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ. + * - `non_integrated` — доставка силами продавца. + * + * @type {string} + * @memberof V2PostingFBSActListFilter + */ + integration_type?: string; + /** + * Статусы перевозок: + * - `new` — новая, + * - `awaiting_retry` — повторная попытка создания, + * - `in_process` — собирается, + * - `success` — создана, + * - `error` — ошибка при создании, + * - `sended` — отправлена, + * - `received` — получена, + * - `formed` — собрана, + * - `cancelled` — отменена, + * - `pending` — в очереди на сборку, + * - `completion_enqueued` — в очереди на завершение, + * - `completion_processing` — в процессе завершения, + * - `completion_failed` — ошибка при завершении, + * - `cancelation_enqueued` — в очереди на отмену, + * - `cancelation_processing` — в процессе отмены, + * - `cancelation_failed` — ошибка при отмене, + * - `completed` — завершена, + * - `closed` — закрыта. + * + * @type {Array} + * @memberof V2PostingFBSActListFilter + */ + status?: Array; +} +/** + * Check if a given object implements the V2PostingFBSActListFilter interface. + */ +export declare function instanceOfV2PostingFBSActListFilter(value: object): value is V2PostingFBSActListFilter; +export declare function V2PostingFBSActListFilterFromJSON(json: any): V2PostingFBSActListFilter; +export declare function V2PostingFBSActListFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListFilter; +export declare function V2PostingFBSActListFilterToJSON(value?: V2PostingFBSActListFilter | null): any; diff --git a/dist/esm/models/V2PostingFBSActListFilter.js b/dist/esm/models/V2PostingFBSActListFilter.js new file mode 100644 index 0000000..5002156 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListFilter.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSActListFilter interface. + */ +export function instanceOfV2PostingFBSActListFilter(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +export function V2PostingFBSActListFilterFromJSON(json) { + return V2PostingFBSActListFilterFromJSONTyped(json, false); +} +export function V2PostingFBSActListFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V2PostingFBSActListFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'integration_type': value['integration_type'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V2PostingFBSActListRelatedDocs.d.ts b/dist/esm/models/V2PostingFBSActListRelatedDocs.d.ts new file mode 100644 index 0000000..42e277d --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRelatedDocs.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActListRelatedDocsActOfMismatch } from './V2PostingFBSActListRelatedDocsActOfMismatch'; +import type { V2PostingFBSActListRelatedDocsActOfAcceptance } from './V2PostingFBSActListRelatedDocsActOfAcceptance'; +import type { V2PostingFBSActListRelatedDocsActOfExcess } from './V2PostingFBSActListRelatedDocsActOfExcess'; +/** + * Информация про акты перевозки. + * @export + * @interface V2PostingFBSActListRelatedDocs + */ +export interface V2PostingFBSActListRelatedDocs { + /** + * + * @type {V2PostingFBSActListRelatedDocsActOfAcceptance} + * @memberof V2PostingFBSActListRelatedDocs + */ + act_of_acceptance?: V2PostingFBSActListRelatedDocsActOfAcceptance; + /** + * + * @type {V2PostingFBSActListRelatedDocsActOfMismatch} + * @memberof V2PostingFBSActListRelatedDocs + */ + act_of_mismatch?: V2PostingFBSActListRelatedDocsActOfMismatch; + /** + * + * @type {V2PostingFBSActListRelatedDocsActOfExcess} + * @memberof V2PostingFBSActListRelatedDocs + */ + act_of_excess?: V2PostingFBSActListRelatedDocsActOfExcess; +} +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocs interface. + */ +export declare function instanceOfV2PostingFBSActListRelatedDocs(value: object): value is V2PostingFBSActListRelatedDocs; +export declare function V2PostingFBSActListRelatedDocsFromJSON(json: any): V2PostingFBSActListRelatedDocs; +export declare function V2PostingFBSActListRelatedDocsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRelatedDocs; +export declare function V2PostingFBSActListRelatedDocsToJSON(value?: V2PostingFBSActListRelatedDocs | null): any; diff --git a/dist/esm/models/V2PostingFBSActListRelatedDocs.js b/dist/esm/models/V2PostingFBSActListRelatedDocs.js new file mode 100644 index 0000000..6287e04 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRelatedDocs.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2PostingFBSActListRelatedDocsActOfMismatchFromJSON, V2PostingFBSActListRelatedDocsActOfMismatchToJSON, } from './V2PostingFBSActListRelatedDocsActOfMismatch'; +import { V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON, V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON, } from './V2PostingFBSActListRelatedDocsActOfAcceptance'; +import { V2PostingFBSActListRelatedDocsActOfExcessFromJSON, V2PostingFBSActListRelatedDocsActOfExcessToJSON, } from './V2PostingFBSActListRelatedDocsActOfExcess'; +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocs interface. + */ +export function instanceOfV2PostingFBSActListRelatedDocs(value) { + return true; +} +export function V2PostingFBSActListRelatedDocsFromJSON(json) { + return V2PostingFBSActListRelatedDocsFromJSONTyped(json, false); +} +export function V2PostingFBSActListRelatedDocsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_of_acceptance': json['act_of_acceptance'] == null ? undefined : V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON(json['act_of_acceptance']), + 'act_of_mismatch': json['act_of_mismatch'] == null ? undefined : V2PostingFBSActListRelatedDocsActOfMismatchFromJSON(json['act_of_mismatch']), + 'act_of_excess': json['act_of_excess'] == null ? undefined : V2PostingFBSActListRelatedDocsActOfExcessFromJSON(json['act_of_excess']), + }; +} +export function V2PostingFBSActListRelatedDocsToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_of_acceptance': V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON(value['act_of_acceptance']), + 'act_of_mismatch': V2PostingFBSActListRelatedDocsActOfMismatchToJSON(value['act_of_mismatch']), + 'act_of_excess': V2PostingFBSActListRelatedDocsActOfExcessToJSON(value['act_of_excess']), + }; +} diff --git a/dist/esm/models/V2PostingFBSActListRelatedDocsActOfAcceptance.d.ts b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfAcceptance.d.ts new file mode 100644 index 0000000..627c53d --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfAcceptance.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация про акт приёма-передачи. + * @export + * @interface V2PostingFBSActListRelatedDocsActOfAcceptance + */ +export interface V2PostingFBSActListRelatedDocsActOfAcceptance { + /** + * Дата создания акта. + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfAcceptance + */ + created_at?: string; + /** + * Статус акта: + * - `FORMING` — ещё не готов, + * - `FORMED` — сформирован, + * - `CONFIRMED` — подписан Ozon, + * - `CONFIRMED_WITH_MISMATCH` — подписан Ozon с расхождениями, + * - `ACCEPTED_BY_CARGO_PLACES` — принят по грузовым местам, + * - `PRINTED_CARRIAGE` — электронная подпись не нужна, + * - `ERROR`, `UNKNOWN_ERROR` — ошибка. + * + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfAcceptance + */ + document_status?: string; +} +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfAcceptance interface. + */ +export declare function instanceOfV2PostingFBSActListRelatedDocsActOfAcceptance(value: object): value is V2PostingFBSActListRelatedDocsActOfAcceptance; +export declare function V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON(json: any): V2PostingFBSActListRelatedDocsActOfAcceptance; +export declare function V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRelatedDocsActOfAcceptance; +export declare function V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON(value?: V2PostingFBSActListRelatedDocsActOfAcceptance | null): any; diff --git a/dist/esm/models/V2PostingFBSActListRelatedDocsActOfAcceptance.js b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfAcceptance.js new file mode 100644 index 0000000..cad8755 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfAcceptance.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfAcceptance interface. + */ +export function instanceOfV2PostingFBSActListRelatedDocsActOfAcceptance(value) { + return true; +} +export function V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON(json) { + return V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSONTyped(json, false); +} +export function V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'document_status': json['document_status'] == null ? undefined : json['document_status'], + }; +} +export function V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'document_status': value['document_status'], + }; +} diff --git a/dist/esm/models/V2PostingFBSActListRelatedDocsActOfExcess.d.ts b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfExcess.d.ts new file mode 100644 index 0000000..686cc2b --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfExcess.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация про акт об излишках. + * @export + * @interface V2PostingFBSActListRelatedDocsActOfExcess + */ +export interface V2PostingFBSActListRelatedDocsActOfExcess { + /** + * Дата создания акта. + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfExcess + */ + created_at?: string; + /** + * Статус акта: + * - `NEED_TO_SIGN` — требуется подпись, + * - `CONFIRMED` — подписан Ozon, + * - `UNKNOWN_ERROR` — ошибка. + * + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfExcess + */ + document_status?: string; +} +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfExcess interface. + */ +export declare function instanceOfV2PostingFBSActListRelatedDocsActOfExcess(value: object): value is V2PostingFBSActListRelatedDocsActOfExcess; +export declare function V2PostingFBSActListRelatedDocsActOfExcessFromJSON(json: any): V2PostingFBSActListRelatedDocsActOfExcess; +export declare function V2PostingFBSActListRelatedDocsActOfExcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRelatedDocsActOfExcess; +export declare function V2PostingFBSActListRelatedDocsActOfExcessToJSON(value?: V2PostingFBSActListRelatedDocsActOfExcess | null): any; diff --git a/dist/esm/models/V2PostingFBSActListRelatedDocsActOfExcess.js b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfExcess.js new file mode 100644 index 0000000..1242456 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfExcess.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfExcess interface. + */ +export function instanceOfV2PostingFBSActListRelatedDocsActOfExcess(value) { + return true; +} +export function V2PostingFBSActListRelatedDocsActOfExcessFromJSON(json) { + return V2PostingFBSActListRelatedDocsActOfExcessFromJSONTyped(json, false); +} +export function V2PostingFBSActListRelatedDocsActOfExcessFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'document_status': json['document_status'] == null ? undefined : json['document_status'], + }; +} +export function V2PostingFBSActListRelatedDocsActOfExcessToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'document_status': value['document_status'], + }; +} diff --git a/dist/esm/models/V2PostingFBSActListRelatedDocsActOfMismatch.d.ts b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfMismatch.d.ts new file mode 100644 index 0000000..7f26a78 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfMismatch.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация про акт о расхождениях. + * @export + * @interface V2PostingFBSActListRelatedDocsActOfMismatch + */ +export interface V2PostingFBSActListRelatedDocsActOfMismatch { + /** + * Дата создания перевозки. + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfMismatch + */ + created_at?: string; + /** + * Статус перевозки или акта: + * - `NEED_TO_SIGN` — требуется подпись, + * - `ON_CONFIRMATION` — на подписании Ozon, + * - `CONFIRMED` — подписан Ozon, + * - `DISPUTE_OPENED` — принят по грузовым местам, + * - `PRINTED_CARRIAGE` — электронная подпись не нужна, + * - `UNKNOWN_ERROR` — ошибка. + * + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfMismatch + */ + document_status?: string; +} +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfMismatch interface. + */ +export declare function instanceOfV2PostingFBSActListRelatedDocsActOfMismatch(value: object): value is V2PostingFBSActListRelatedDocsActOfMismatch; +export declare function V2PostingFBSActListRelatedDocsActOfMismatchFromJSON(json: any): V2PostingFBSActListRelatedDocsActOfMismatch; +export declare function V2PostingFBSActListRelatedDocsActOfMismatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRelatedDocsActOfMismatch; +export declare function V2PostingFBSActListRelatedDocsActOfMismatchToJSON(value?: V2PostingFBSActListRelatedDocsActOfMismatch | null): any; diff --git a/dist/esm/models/V2PostingFBSActListRelatedDocsActOfMismatch.js b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfMismatch.js new file mode 100644 index 0000000..e411906 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRelatedDocsActOfMismatch.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfMismatch interface. + */ +export function instanceOfV2PostingFBSActListRelatedDocsActOfMismatch(value) { + return true; +} +export function V2PostingFBSActListRelatedDocsActOfMismatchFromJSON(json) { + return V2PostingFBSActListRelatedDocsActOfMismatchFromJSONTyped(json, false); +} +export function V2PostingFBSActListRelatedDocsActOfMismatchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'document_status': json['document_status'] == null ? undefined : json['document_status'], + }; +} +export function V2PostingFBSActListRelatedDocsActOfMismatchToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'document_status': value['document_status'], + }; +} diff --git a/dist/esm/models/V2PostingFBSActListRequest.d.ts b/dist/esm/models/V2PostingFBSActListRequest.d.ts new file mode 100644 index 0000000..00e74e5 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActListFilter } from './V2PostingFBSActListFilter'; +/** + * + * @export + * @interface V2PostingFBSActListRequest + */ +export interface V2PostingFBSActListRequest { + /** + * + * @type {V2PostingFBSActListFilter} + * @memberof V2PostingFBSActListRequest + */ + filter?: V2PostingFBSActListFilter; + /** + * Максимальное количество актов в ответе. + * @type {number} + * @memberof V2PostingFBSActListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V2PostingFBSActListRequest interface. + */ +export declare function instanceOfV2PostingFBSActListRequest(value: object): value is V2PostingFBSActListRequest; +export declare function V2PostingFBSActListRequestFromJSON(json: any): V2PostingFBSActListRequest; +export declare function V2PostingFBSActListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRequest; +export declare function V2PostingFBSActListRequestToJSON(value?: V2PostingFBSActListRequest | null): any; diff --git a/dist/esm/models/V2PostingFBSActListRequest.js b/dist/esm/models/V2PostingFBSActListRequest.js new file mode 100644 index 0000000..6603511 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListRequest.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2PostingFBSActListFilterFromJSON, V2PostingFBSActListFilterToJSON, } from './V2PostingFBSActListFilter'; +/** + * Check if a given object implements the V2PostingFBSActListRequest interface. + */ +export function instanceOfV2PostingFBSActListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V2PostingFBSActListRequestFromJSON(json) { + return V2PostingFBSActListRequestFromJSONTyped(json, false); +} +export function V2PostingFBSActListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : V2PostingFBSActListFilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function V2PostingFBSActListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': V2PostingFBSActListFilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V2PostingFBSActListResponse.d.ts b/dist/esm/models/V2PostingFBSActListResponse.d.ts new file mode 100644 index 0000000..1405b3a --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActListResult } from './V2PostingFBSActListResult'; +/** + * + * @export + * @interface V2PostingFBSActListResponse + */ +export interface V2PostingFBSActListResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof V2PostingFBSActListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2PostingFBSActListResponse interface. + */ +export declare function instanceOfV2PostingFBSActListResponse(value: object): value is V2PostingFBSActListResponse; +export declare function V2PostingFBSActListResponseFromJSON(json: any): V2PostingFBSActListResponse; +export declare function V2PostingFBSActListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListResponse; +export declare function V2PostingFBSActListResponseToJSON(value?: V2PostingFBSActListResponse | null): any; diff --git a/dist/esm/models/V2PostingFBSActListResponse.js b/dist/esm/models/V2PostingFBSActListResponse.js new file mode 100644 index 0000000..f3b0e13 --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2PostingFBSActListResultFromJSON, V2PostingFBSActListResultToJSON, } from './V2PostingFBSActListResult'; +/** + * Check if a given object implements the V2PostingFBSActListResponse interface. + */ +export function instanceOfV2PostingFBSActListResponse(value) { + return true; +} +export function V2PostingFBSActListResponseFromJSON(json) { + return V2PostingFBSActListResponseFromJSONTyped(json, false); +} +export function V2PostingFBSActListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2PostingFBSActListResultFromJSON)), + }; +} +export function V2PostingFBSActListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2PostingFBSActListResultToJSON)), + }; +} diff --git a/dist/esm/models/V2PostingFBSActListResult.d.ts b/dist/esm/models/V2PostingFBSActListResult.d.ts new file mode 100644 index 0000000..2f134aa --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListResult.d.ts @@ -0,0 +1,116 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActListRelatedDocs } from './V2PostingFBSActListRelatedDocs'; +/** + * + * @export + * @interface V2PostingFBSActListResult + */ +export interface V2PostingFBSActListResult { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V2PostingFBSActListResult + */ + id?: number; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V2PostingFBSActListResult + */ + delivery_method_id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + delivery_method_name?: string; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка через Ozon логистику. + * - `3pl` — доставка внешней службой, продавец регистрирует заказ. + * + * @type {string} + * @memberof V2PostingFBSActListResult + */ + integration_type?: string; + /** + * Число грузовых мест. + * @type {number} + * @memberof V2PostingFBSActListResult + */ + containers_count?: number; + /** + * Статус отгрузки. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + status?: string; + /** + * Дата отгрузки. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + departure_date?: string; + /** + * Дата создания записи об отгрузке. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + created_at?: string; + /** + * Дата обновления записи об отгрузке. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + updated_at?: string; + /** + * Тип акта приёма-передачи для FBS продавцов. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + act_type?: string; + /** + * Признак частичной перевозки. `true`, если перевозка частичная. + * + * Частичная перевозка значит, что отгрузка была разделена на несколько частей и по каждой из частей формируются отдельные акты. + * + * @type {boolean} + * @memberof V2PostingFBSActListResult + */ + is_partial?: boolean; + /** + * Признак наличия подлежащих отгрузке отправлений, которые не попали в текущую перевозку. `true`, если такие отправления есть. + * @type {boolean} + * @memberof V2PostingFBSActListResult + */ + has_postings_for_next_carriage?: boolean; + /** + * Порядковый номер частичной перевозки. + * @type {number} + * @memberof V2PostingFBSActListResult + */ + partial_num?: number; + /** + * + * @type {V2PostingFBSActListRelatedDocs} + * @memberof V2PostingFBSActListResult + */ + related_docs?: V2PostingFBSActListRelatedDocs; +} +/** + * Check if a given object implements the V2PostingFBSActListResult interface. + */ +export declare function instanceOfV2PostingFBSActListResult(value: object): value is V2PostingFBSActListResult; +export declare function V2PostingFBSActListResultFromJSON(json: any): V2PostingFBSActListResult; +export declare function V2PostingFBSActListResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListResult; +export declare function V2PostingFBSActListResultToJSON(value?: V2PostingFBSActListResult | null): any; diff --git a/dist/esm/models/V2PostingFBSActListResult.js b/dist/esm/models/V2PostingFBSActListResult.js new file mode 100644 index 0000000..5b28e7b --- /dev/null +++ b/dist/esm/models/V2PostingFBSActListResult.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2PostingFBSActListRelatedDocsFromJSON, V2PostingFBSActListRelatedDocsToJSON, } from './V2PostingFBSActListRelatedDocs'; +/** + * Check if a given object implements the V2PostingFBSActListResult interface. + */ +export function instanceOfV2PostingFBSActListResult(value) { + return true; +} +export function V2PostingFBSActListResultFromJSON(json) { + return V2PostingFBSActListResultFromJSONTyped(json, false); +} +export function V2PostingFBSActListResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'delivery_method_name': json['delivery_method_name'] == null ? undefined : json['delivery_method_name'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'containers_count': json['containers_count'] == null ? undefined : json['containers_count'], + 'status': json['status'] == null ? undefined : json['status'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'act_type': json['act_type'] == null ? undefined : json['act_type'], + 'is_partial': json['is_partial'] == null ? undefined : json['is_partial'], + 'has_postings_for_next_carriage': json['has_postings_for_next_carriage'] == null ? undefined : json['has_postings_for_next_carriage'], + 'partial_num': json['partial_num'] == null ? undefined : json['partial_num'], + 'related_docs': json['related_docs'] == null ? undefined : V2PostingFBSActListRelatedDocsFromJSON(json['related_docs']), + }; +} +export function V2PostingFBSActListResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'delivery_method_id': value['delivery_method_id'], + 'delivery_method_name': value['delivery_method_name'], + 'integration_type': value['integration_type'], + 'containers_count': value['containers_count'], + 'status': value['status'], + 'departure_date': value['departure_date'], + 'created_at': value['created_at'], + 'updated_at': value['updated_at'], + 'act_type': value['act_type'], + 'is_partial': value['is_partial'], + 'has_postings_for_next_carriage': value['has_postings_for_next_carriage'], + 'partial_num': value['partial_num'], + 'related_docs': V2PostingFBSActListRelatedDocsToJSON(value['related_docs']), + }; +} diff --git a/dist/esm/models/V2PostingFBSDigitalActCheckStatusRequest.d.ts b/dist/esm/models/V2PostingFBSDigitalActCheckStatusRequest.d.ts new file mode 100644 index 0000000..506f239 --- /dev/null +++ b/dist/esm/models/V2PostingFBSDigitalActCheckStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSDigitalActCheckStatusRequest + */ +export interface V2PostingFBSDigitalActCheckStatusRequest { + /** + * Номер задания на формирование документов (также идентификатор перевозки) из метода [POST /v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate). + * @type {number} + * @memberof V2PostingFBSDigitalActCheckStatusRequest + */ + id: number; +} +/** + * Check if a given object implements the V2PostingFBSDigitalActCheckStatusRequest interface. + */ +export declare function instanceOfV2PostingFBSDigitalActCheckStatusRequest(value: object): value is V2PostingFBSDigitalActCheckStatusRequest; +export declare function V2PostingFBSDigitalActCheckStatusRequestFromJSON(json: any): V2PostingFBSDigitalActCheckStatusRequest; +export declare function V2PostingFBSDigitalActCheckStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSDigitalActCheckStatusRequest; +export declare function V2PostingFBSDigitalActCheckStatusRequestToJSON(value?: V2PostingFBSDigitalActCheckStatusRequest | null): any; diff --git a/dist/esm/models/V2PostingFBSDigitalActCheckStatusRequest.js b/dist/esm/models/V2PostingFBSDigitalActCheckStatusRequest.js new file mode 100644 index 0000000..f3b473f --- /dev/null +++ b/dist/esm/models/V2PostingFBSDigitalActCheckStatusRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSDigitalActCheckStatusRequest interface. + */ +export function instanceOfV2PostingFBSDigitalActCheckStatusRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function V2PostingFBSDigitalActCheckStatusRequestFromJSON(json) { + return V2PostingFBSDigitalActCheckStatusRequestFromJSONTyped(json, false); +} +export function V2PostingFBSDigitalActCheckStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +export function V2PostingFBSDigitalActCheckStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/V2PostingFBSDigitalActCheckStatusResponse.d.ts b/dist/esm/models/V2PostingFBSDigitalActCheckStatusResponse.d.ts new file mode 100644 index 0000000..611dac7 --- /dev/null +++ b/dist/esm/models/V2PostingFBSDigitalActCheckStatusResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSDigitalActCheckStatusResponse + */ +export interface V2PostingFBSDigitalActCheckStatusResponse { + /** + * Номер задания на формирование документов. + * @type {number} + * @memberof V2PostingFBSDigitalActCheckStatusResponse + */ + id?: number; + /** + * Cтатус формирования документов: + * - `FORMING` — ещё не готовы, + * - `FORMED` — сформированы успешно, + * - `CONFIRMED` — подписаны Ozon, + * - `CONFIRMED_WITH_MISMATCH` — подписаны Ozon с расхождениями, + * - `NOT_FOUND` — документы не найдены, + * - `UNKNOWN_ERROR` — произошла ошибка. + * + * @type {string} + * @memberof V2PostingFBSDigitalActCheckStatusResponse + */ + status?: string; +} +/** + * Check if a given object implements the V2PostingFBSDigitalActCheckStatusResponse interface. + */ +export declare function instanceOfV2PostingFBSDigitalActCheckStatusResponse(value: object): value is V2PostingFBSDigitalActCheckStatusResponse; +export declare function V2PostingFBSDigitalActCheckStatusResponseFromJSON(json: any): V2PostingFBSDigitalActCheckStatusResponse; +export declare function V2PostingFBSDigitalActCheckStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSDigitalActCheckStatusResponse; +export declare function V2PostingFBSDigitalActCheckStatusResponseToJSON(value?: V2PostingFBSDigitalActCheckStatusResponse | null): any; diff --git a/dist/esm/models/V2PostingFBSDigitalActCheckStatusResponse.js b/dist/esm/models/V2PostingFBSDigitalActCheckStatusResponse.js new file mode 100644 index 0000000..e39331c --- /dev/null +++ b/dist/esm/models/V2PostingFBSDigitalActCheckStatusResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSDigitalActCheckStatusResponse interface. + */ +export function instanceOfV2PostingFBSDigitalActCheckStatusResponse(value) { + return true; +} +export function V2PostingFBSDigitalActCheckStatusResponseFromJSON(json) { + return V2PostingFBSDigitalActCheckStatusResponseFromJSONTyped(json, false); +} +export function V2PostingFBSDigitalActCheckStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V2PostingFBSDigitalActCheckStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V2PostingFBSGetBarcodeRequest.d.ts b/dist/esm/models/V2PostingFBSGetBarcodeRequest.d.ts new file mode 100644 index 0000000..53071fb --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetBarcodeRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetBarcodeRequest + */ +export interface V2PostingFBSGetBarcodeRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V2PostingFBSGetBarcodeRequest + */ + id: number; +} +/** + * Check if a given object implements the V2PostingFBSGetBarcodeRequest interface. + */ +export declare function instanceOfV2PostingFBSGetBarcodeRequest(value: object): value is V2PostingFBSGetBarcodeRequest; +export declare function V2PostingFBSGetBarcodeRequestFromJSON(json: any): V2PostingFBSGetBarcodeRequest; +export declare function V2PostingFBSGetBarcodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetBarcodeRequest; +export declare function V2PostingFBSGetBarcodeRequestToJSON(value?: V2PostingFBSGetBarcodeRequest | null): any; diff --git a/dist/esm/models/V2PostingFBSGetBarcodeRequest.js b/dist/esm/models/V2PostingFBSGetBarcodeRequest.js new file mode 100644 index 0000000..2855f23 --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetBarcodeRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSGetBarcodeRequest interface. + */ +export function instanceOfV2PostingFBSGetBarcodeRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function V2PostingFBSGetBarcodeRequestFromJSON(json) { + return V2PostingFBSGetBarcodeRequestFromJSONTyped(json, false); +} +export function V2PostingFBSGetBarcodeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +export function V2PostingFBSGetBarcodeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/esm/models/V2PostingFBSGetBarcodeResponse.d.ts b/dist/esm/models/V2PostingFBSGetBarcodeResponse.d.ts new file mode 100644 index 0000000..9e93397 --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetBarcodeResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetBarcodeResponse + */ +export interface V2PostingFBSGetBarcodeResponse { + /** + * Изображение со штрихкодом в бинарном виде. + * @type {string} + * @memberof V2PostingFBSGetBarcodeResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V2PostingFBSGetBarcodeResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V2PostingFBSGetBarcodeResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V2PostingFBSGetBarcodeResponse interface. + */ +export declare function instanceOfV2PostingFBSGetBarcodeResponse(value: object): value is V2PostingFBSGetBarcodeResponse; +export declare function V2PostingFBSGetBarcodeResponseFromJSON(json: any): V2PostingFBSGetBarcodeResponse; +export declare function V2PostingFBSGetBarcodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetBarcodeResponse; +export declare function V2PostingFBSGetBarcodeResponseToJSON(value?: V2PostingFBSGetBarcodeResponse | null): any; diff --git a/dist/esm/models/V2PostingFBSGetBarcodeResponse.js b/dist/esm/models/V2PostingFBSGetBarcodeResponse.js new file mode 100644 index 0000000..623bc60 --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetBarcodeResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSGetBarcodeResponse interface. + */ +export function instanceOfV2PostingFBSGetBarcodeResponse(value) { + return true; +} +export function V2PostingFBSGetBarcodeResponseFromJSON(json) { + return V2PostingFBSGetBarcodeResponseFromJSONTyped(json, false); +} +export function V2PostingFBSGetBarcodeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +export function V2PostingFBSGetBarcodeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/esm/models/V2PostingFBSGetBarcodeTextResponse.d.ts b/dist/esm/models/V2PostingFBSGetBarcodeTextResponse.d.ts new file mode 100644 index 0000000..d73c9fe --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetBarcodeTextResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetBarcodeTextResponse + */ +export interface V2PostingFBSGetBarcodeTextResponse { + /** + * Штрихкод в текстовом виде. + * @type {string} + * @memberof V2PostingFBSGetBarcodeTextResponse + */ + result?: string; +} +/** + * Check if a given object implements the V2PostingFBSGetBarcodeTextResponse interface. + */ +export declare function instanceOfV2PostingFBSGetBarcodeTextResponse(value: object): value is V2PostingFBSGetBarcodeTextResponse; +export declare function V2PostingFBSGetBarcodeTextResponseFromJSON(json: any): V2PostingFBSGetBarcodeTextResponse; +export declare function V2PostingFBSGetBarcodeTextResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetBarcodeTextResponse; +export declare function V2PostingFBSGetBarcodeTextResponseToJSON(value?: V2PostingFBSGetBarcodeTextResponse | null): any; diff --git a/dist/esm/models/V2PostingFBSGetBarcodeTextResponse.js b/dist/esm/models/V2PostingFBSGetBarcodeTextResponse.js new file mode 100644 index 0000000..b359dcf --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetBarcodeTextResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSGetBarcodeTextResponse interface. + */ +export function instanceOfV2PostingFBSGetBarcodeTextResponse(value) { + return true; +} +export function V2PostingFBSGetBarcodeTextResponseFromJSON(json) { + return V2PostingFBSGetBarcodeTextResponseFromJSONTyped(json, false); +} +export function V2PostingFBSGetBarcodeTextResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function V2PostingFBSGetBarcodeTextResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/V2PostingFBSGetDigitalActRequest.d.ts b/dist/esm/models/V2PostingFBSGetDigitalActRequest.d.ts new file mode 100644 index 0000000..cfd4868 --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetDigitalActRequest.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetDigitalActRequest + */ +export interface V2PostingFBSGetDigitalActRequest { + /** + * Номер задания на формирование документов (также идентификатор перевозки) из метода [POST /v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate). + * @type {number} + * @memberof V2PostingFBSGetDigitalActRequest + */ + id: number; + /** + * Тип электронного документа: + * - `act_of_acceptance` — лист отгрузки, + * - `act_of_mismatch` — акт о расхождениях, + * - `act_of_excess` — акт об излишках, + * - `waybill` — транспортная накладная. + * + * @type {any} + * @memberof V2PostingFBSGetDigitalActRequest + */ + doc_type?: any | null; +} +/** + * Check if a given object implements the V2PostingFBSGetDigitalActRequest interface. + */ +export declare function instanceOfV2PostingFBSGetDigitalActRequest(value: object): value is V2PostingFBSGetDigitalActRequest; +export declare function V2PostingFBSGetDigitalActRequestFromJSON(json: any): V2PostingFBSGetDigitalActRequest; +export declare function V2PostingFBSGetDigitalActRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetDigitalActRequest; +export declare function V2PostingFBSGetDigitalActRequestToJSON(value?: V2PostingFBSGetDigitalActRequest | null): any; diff --git a/dist/esm/models/V2PostingFBSGetDigitalActRequest.js b/dist/esm/models/V2PostingFBSGetDigitalActRequest.js new file mode 100644 index 0000000..27438a2 --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetDigitalActRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSGetDigitalActRequest interface. + */ +export function instanceOfV2PostingFBSGetDigitalActRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +export function V2PostingFBSGetDigitalActRequestFromJSON(json) { + return V2PostingFBSGetDigitalActRequestFromJSONTyped(json, false); +} +export function V2PostingFBSGetDigitalActRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'doc_type': json['doc_type'] == null ? undefined : json['doc_type'], + }; +} +export function V2PostingFBSGetDigitalActRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'doc_type': value['doc_type'], + }; +} diff --git a/dist/esm/models/V2PostingFBSGetDigitalActResponse.d.ts b/dist/esm/models/V2PostingFBSGetDigitalActResponse.d.ts new file mode 100644 index 0000000..ba9b588 --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetDigitalActResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetDigitalActResponse + */ +export interface V2PostingFBSGetDigitalActResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof V2PostingFBSGetDigitalActResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V2PostingFBSGetDigitalActResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V2PostingFBSGetDigitalActResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V2PostingFBSGetDigitalActResponse interface. + */ +export declare function instanceOfV2PostingFBSGetDigitalActResponse(value: object): value is V2PostingFBSGetDigitalActResponse; +export declare function V2PostingFBSGetDigitalActResponseFromJSON(json: any): V2PostingFBSGetDigitalActResponse; +export declare function V2PostingFBSGetDigitalActResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetDigitalActResponse; +export declare function V2PostingFBSGetDigitalActResponseToJSON(value?: V2PostingFBSGetDigitalActResponse | null): any; diff --git a/dist/esm/models/V2PostingFBSGetDigitalActResponse.js b/dist/esm/models/V2PostingFBSGetDigitalActResponse.js new file mode 100644 index 0000000..4287645 --- /dev/null +++ b/dist/esm/models/V2PostingFBSGetDigitalActResponse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingFBSGetDigitalActResponse interface. + */ +export function instanceOfV2PostingFBSGetDigitalActResponse(value) { + return true; +} +export function V2PostingFBSGetDigitalActResponseFromJSON(json) { + return V2PostingFBSGetDigitalActResponseFromJSONTyped(json, false); +} +export function V2PostingFBSGetDigitalActResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +export function V2PostingFBSGetDigitalActResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/esm/models/V2PostingFinancialDataFBO.d.ts b/dist/esm/models/V2PostingFinancialDataFBO.d.ts new file mode 100644 index 0000000..eb74154 --- /dev/null +++ b/dist/esm/models/V2PostingFinancialDataFBO.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFinancialDataProduct } from './PostingFinancialDataProduct'; +/** + * Финансовые данные. + * @export + * @interface V2PostingFinancialDataFBO + */ +export interface V2PostingFinancialDataFBO { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof V2PostingFinancialDataFBO + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof V2PostingFinancialDataFBO + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof V2PostingFinancialDataFBO + */ + products?: Array; +} +/** + * Check if a given object implements the V2PostingFinancialDataFBO interface. + */ +export declare function instanceOfV2PostingFinancialDataFBO(value: object): value is V2PostingFinancialDataFBO; +export declare function V2PostingFinancialDataFBOFromJSON(json: any): V2PostingFinancialDataFBO; +export declare function V2PostingFinancialDataFBOFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFinancialDataFBO; +export declare function V2PostingFinancialDataFBOToJSON(value?: V2PostingFinancialDataFBO | null): any; diff --git a/dist/esm/models/V2PostingFinancialDataFBO.js b/dist/esm/models/V2PostingFinancialDataFBO.js new file mode 100644 index 0000000..7c799dd --- /dev/null +++ b/dist/esm/models/V2PostingFinancialDataFBO.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFinancialDataProductFromJSON, PostingFinancialDataProductToJSON, } from './PostingFinancialDataProduct'; +/** + * Check if a given object implements the V2PostingFinancialDataFBO interface. + */ +export function instanceOfV2PostingFinancialDataFBO(value) { + return true; +} +export function V2PostingFinancialDataFBOFromJSON(json) { + return V2PostingFinancialDataFBOFromJSONTyped(json, false); +} +export function V2PostingFinancialDataFBOFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProductFromJSON)), + }; +} +export function V2PostingFinancialDataFBOToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProductToJSON)), + }; +} diff --git a/dist/esm/models/V2PostingFinancialDataFBOV2.d.ts b/dist/esm/models/V2PostingFinancialDataFBOV2.d.ts new file mode 100644 index 0000000..d9ecaa8 --- /dev/null +++ b/dist/esm/models/V2PostingFinancialDataFBOV2.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFinancialDataProductV2 } from './PostingFinancialDataProductV2'; +/** + * Финансовые данные. + * @export + * @interface V2PostingFinancialDataFBOV2 + */ +export interface V2PostingFinancialDataFBOV2 { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof V2PostingFinancialDataFBOV2 + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof V2PostingFinancialDataFBOV2 + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof V2PostingFinancialDataFBOV2 + */ + products?: Array; +} +/** + * Check if a given object implements the V2PostingFinancialDataFBOV2 interface. + */ +export declare function instanceOfV2PostingFinancialDataFBOV2(value: object): value is V2PostingFinancialDataFBOV2; +export declare function V2PostingFinancialDataFBOV2FromJSON(json: any): V2PostingFinancialDataFBOV2; +export declare function V2PostingFinancialDataFBOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFinancialDataFBOV2; +export declare function V2PostingFinancialDataFBOV2ToJSON(value?: V2PostingFinancialDataFBOV2 | null): any; diff --git a/dist/esm/models/V2PostingFinancialDataFBOV2.js b/dist/esm/models/V2PostingFinancialDataFBOV2.js new file mode 100644 index 0000000..7981e3a --- /dev/null +++ b/dist/esm/models/V2PostingFinancialDataFBOV2.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFinancialDataProductV2FromJSON, PostingFinancialDataProductV2ToJSON, } from './PostingFinancialDataProductV2'; +/** + * Check if a given object implements the V2PostingFinancialDataFBOV2 interface. + */ +export function instanceOfV2PostingFinancialDataFBOV2(value) { + return true; +} +export function V2PostingFinancialDataFBOV2FromJSON(json) { + return V2PostingFinancialDataFBOV2FromJSONTyped(json, false); +} +export function V2PostingFinancialDataFBOV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProductV2FromJSON)), + }; +} +export function V2PostingFinancialDataFBOV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProductV2ToJSON)), + }; +} diff --git a/dist/esm/models/V2PostingProduct.d.ts b/dist/esm/models/V2PostingProduct.d.ts new file mode 100644 index 0000000..95b845f --- /dev/null +++ b/dist/esm/models/V2PostingProduct.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingProduct + */ +export interface V2PostingProduct { + /** + * Коды активации для услуг и цифровых товаров. + * @type {Array} + * @memberof V2PostingProduct + */ + digital_codes?: Array; + /** + * Название товара. + * @type {string} + * @memberof V2PostingProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2PostingProduct + */ + offer_id?: string; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V2PostingProduct + */ + currency_code?: string; + /** + * Цена товара. + * @type {string} + * @memberof V2PostingProduct + */ + price?: string; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof V2PostingProduct + */ + is_marketplace_buyout?: boolean; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof V2PostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2PostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V2PostingProduct interface. + */ +export declare function instanceOfV2PostingProduct(value: object): value is V2PostingProduct; +export declare function V2PostingProductFromJSON(json: any): V2PostingProduct; +export declare function V2PostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingProduct; +export declare function V2PostingProductToJSON(value?: V2PostingProduct | null): any; diff --git a/dist/esm/models/V2PostingProduct.js b/dist/esm/models/V2PostingProduct.js new file mode 100644 index 0000000..d585bcb --- /dev/null +++ b/dist/esm/models/V2PostingProduct.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2PostingProduct interface. + */ +export function instanceOfV2PostingProduct(value) { + return true; +} +export function V2PostingProductFromJSON(json) { + return V2PostingProductFromJSONTyped(json, false); +} +export function V2PostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'digital_codes': json['digital_codes'] == null ? undefined : json['digital_codes'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V2PostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'digital_codes': value['digital_codes'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'currency_code': value['currency_code'], + 'price': value['price'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V2Product.d.ts b/dist/esm/models/V2Product.d.ts new file mode 100644 index 0000000..4b87410 --- /dev/null +++ b/dist/esm/models/V2Product.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о товаре. + * @export + * @interface V2Product + */ +export interface V2Product { + /** + * Название товара. + * @type {string} + * @memberof V2Product + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2Product + */ + offer_id?: string; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V2Product + */ + currency_code?: string; + /** + * Цена товара. + * @type {number} + * @memberof V2Product + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2Product + */ + sku?: number; +} +/** + * Check if a given object implements the V2Product interface. + */ +export declare function instanceOfV2Product(value: object): value is V2Product; +export declare function V2ProductFromJSON(json: any): V2Product; +export declare function V2ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2Product; +export declare function V2ProductToJSON(value?: V2Product | null): any; diff --git a/dist/esm/models/V2Product.js b/dist/esm/models/V2Product.js new file mode 100644 index 0000000..cc2f1c3 --- /dev/null +++ b/dist/esm/models/V2Product.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2Product interface. + */ +export function instanceOfV2Product(value) { + return true; +} +export function V2ProductFromJSON(json) { + return V2ProductFromJSONTyped(json, false); +} +export function V2ProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V2ProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'currency_code': value['currency_code'], + 'price': value['price'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V2ProductCertificateAccordanceTypesResponse.d.ts b/dist/esm/models/V2ProductCertificateAccordanceTypesResponse.d.ts new file mode 100644 index 0000000..c2ede62 --- /dev/null +++ b/dist/esm/models/V2ProductCertificateAccordanceTypesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ProductCertificateAccordanceTypesResponseResult } from './V2ProductCertificateAccordanceTypesResponseResult'; +/** + * + * @export + * @interface V2ProductCertificateAccordanceTypesResponse + */ +export interface V2ProductCertificateAccordanceTypesResponse { + /** + * + * @type {V2ProductCertificateAccordanceTypesResponseResult} + * @memberof V2ProductCertificateAccordanceTypesResponse + */ + result?: V2ProductCertificateAccordanceTypesResponseResult; +} +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponse interface. + */ +export declare function instanceOfV2ProductCertificateAccordanceTypesResponse(value: object): value is V2ProductCertificateAccordanceTypesResponse; +export declare function V2ProductCertificateAccordanceTypesResponseFromJSON(json: any): V2ProductCertificateAccordanceTypesResponse; +export declare function V2ProductCertificateAccordanceTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificateAccordanceTypesResponse; +export declare function V2ProductCertificateAccordanceTypesResponseToJSON(value?: V2ProductCertificateAccordanceTypesResponse | null): any; diff --git a/dist/esm/models/V2ProductCertificateAccordanceTypesResponse.js b/dist/esm/models/V2ProductCertificateAccordanceTypesResponse.js new file mode 100644 index 0000000..eecc31d --- /dev/null +++ b/dist/esm/models/V2ProductCertificateAccordanceTypesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2ProductCertificateAccordanceTypesResponseResultFromJSON, V2ProductCertificateAccordanceTypesResponseResultToJSON, } from './V2ProductCertificateAccordanceTypesResponseResult'; +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponse interface. + */ +export function instanceOfV2ProductCertificateAccordanceTypesResponse(value) { + return true; +} +export function V2ProductCertificateAccordanceTypesResponseFromJSON(json) { + return V2ProductCertificateAccordanceTypesResponseFromJSONTyped(json, false); +} +export function V2ProductCertificateAccordanceTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V2ProductCertificateAccordanceTypesResponseResultFromJSON(json['result']), + }; +} +export function V2ProductCertificateAccordanceTypesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V2ProductCertificateAccordanceTypesResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V2ProductCertificateAccordanceTypesResponseResult.d.ts b/dist/esm/models/V2ProductCertificateAccordanceTypesResponseResult.d.ts new file mode 100644 index 0000000..c9ab1cb --- /dev/null +++ b/dist/esm/models/V2ProductCertificateAccordanceTypesResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ProductCertificateAccordanceTypesResponseType } from './V2ProductCertificateAccordanceTypesResponseType'; +/** + * Список типов соответствия требованиям. + * @export + * @interface V2ProductCertificateAccordanceTypesResponseResult + */ +export interface V2ProductCertificateAccordanceTypesResponseResult { + /** + * Основные типы соответствия требованиям. + * @type {Array} + * @memberof V2ProductCertificateAccordanceTypesResponseResult + */ + base?: Array; + /** + * Типов соответствия требованиям, относящиеся к опасным товарам. + * @type {Array} + * @memberof V2ProductCertificateAccordanceTypesResponseResult + */ + hazard?: Array; +} +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponseResult interface. + */ +export declare function instanceOfV2ProductCertificateAccordanceTypesResponseResult(value: object): value is V2ProductCertificateAccordanceTypesResponseResult; +export declare function V2ProductCertificateAccordanceTypesResponseResultFromJSON(json: any): V2ProductCertificateAccordanceTypesResponseResult; +export declare function V2ProductCertificateAccordanceTypesResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificateAccordanceTypesResponseResult; +export declare function V2ProductCertificateAccordanceTypesResponseResultToJSON(value?: V2ProductCertificateAccordanceTypesResponseResult | null): any; diff --git a/dist/esm/models/V2ProductCertificateAccordanceTypesResponseResult.js b/dist/esm/models/V2ProductCertificateAccordanceTypesResponseResult.js new file mode 100644 index 0000000..86f0a2c --- /dev/null +++ b/dist/esm/models/V2ProductCertificateAccordanceTypesResponseResult.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2ProductCertificateAccordanceTypesResponseTypeFromJSON, V2ProductCertificateAccordanceTypesResponseTypeToJSON, } from './V2ProductCertificateAccordanceTypesResponseType'; +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponseResult interface. + */ +export function instanceOfV2ProductCertificateAccordanceTypesResponseResult(value) { + return true; +} +export function V2ProductCertificateAccordanceTypesResponseResultFromJSON(json) { + return V2ProductCertificateAccordanceTypesResponseResultFromJSONTyped(json, false); +} +export function V2ProductCertificateAccordanceTypesResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'base': json['base'] == null ? undefined : (json['base'].map(V2ProductCertificateAccordanceTypesResponseTypeFromJSON)), + 'hazard': json['hazard'] == null ? undefined : (json['hazard'].map(V2ProductCertificateAccordanceTypesResponseTypeFromJSON)), + }; +} +export function V2ProductCertificateAccordanceTypesResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'base': value['base'] == null ? undefined : (value['base'].map(V2ProductCertificateAccordanceTypesResponseTypeToJSON)), + 'hazard': value['hazard'] == null ? undefined : (value['hazard'].map(V2ProductCertificateAccordanceTypesResponseTypeToJSON)), + }; +} diff --git a/dist/esm/models/V2ProductCertificateAccordanceTypesResponseType.d.ts b/dist/esm/models/V2ProductCertificateAccordanceTypesResponseType.d.ts new file mode 100644 index 0000000..30ded00 --- /dev/null +++ b/dist/esm/models/V2ProductCertificateAccordanceTypesResponseType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ProductCertificateAccordanceTypesResponseType + */ +export interface V2ProductCertificateAccordanceTypesResponseType { + /** + * Код типа соответствия требованиям. + * @type {string} + * @memberof V2ProductCertificateAccordanceTypesResponseType + */ + code?: string; + /** + * Описание типа соответствия требованиям. + * @type {string} + * @memberof V2ProductCertificateAccordanceTypesResponseType + */ + title?: string; +} +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponseType interface. + */ +export declare function instanceOfV2ProductCertificateAccordanceTypesResponseType(value: object): value is V2ProductCertificateAccordanceTypesResponseType; +export declare function V2ProductCertificateAccordanceTypesResponseTypeFromJSON(json: any): V2ProductCertificateAccordanceTypesResponseType; +export declare function V2ProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificateAccordanceTypesResponseType; +export declare function V2ProductCertificateAccordanceTypesResponseTypeToJSON(value?: V2ProductCertificateAccordanceTypesResponseType | null): any; diff --git a/dist/esm/models/V2ProductCertificateAccordanceTypesResponseType.js b/dist/esm/models/V2ProductCertificateAccordanceTypesResponseType.js new file mode 100644 index 0000000..5f38348 --- /dev/null +++ b/dist/esm/models/V2ProductCertificateAccordanceTypesResponseType.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponseType interface. + */ +export function instanceOfV2ProductCertificateAccordanceTypesResponseType(value) { + return true; +} +export function V2ProductCertificateAccordanceTypesResponseTypeFromJSON(json) { + return V2ProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json, false); +} +export function V2ProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'title': json['title'] == null ? undefined : json['title'], + }; +} +export function V2ProductCertificateAccordanceTypesResponseTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'title': value['title'], + }; +} diff --git a/dist/esm/models/V2ProductCertificationListRequest.d.ts b/dist/esm/models/V2ProductCertificationListRequest.d.ts new file mode 100644 index 0000000..8947ab0 --- /dev/null +++ b/dist/esm/models/V2ProductCertificationListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ProductCertificationListRequest + */ +export interface V2ProductCertificationListRequest { + /** + * Номер страницы. + * @type {number} + * @memberof V2ProductCertificationListRequest + */ + page: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V2ProductCertificationListRequest + */ + page_size: number; +} +/** + * Check if a given object implements the V2ProductCertificationListRequest interface. + */ +export declare function instanceOfV2ProductCertificationListRequest(value: object): value is V2ProductCertificationListRequest; +export declare function V2ProductCertificationListRequestFromJSON(json: any): V2ProductCertificationListRequest; +export declare function V2ProductCertificationListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificationListRequest; +export declare function V2ProductCertificationListRequestToJSON(value?: V2ProductCertificationListRequest | null): any; diff --git a/dist/esm/models/V2ProductCertificationListRequest.js b/dist/esm/models/V2ProductCertificationListRequest.js new file mode 100644 index 0000000..d35c158 --- /dev/null +++ b/dist/esm/models/V2ProductCertificationListRequest.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ProductCertificationListRequest interface. + */ +export function instanceOfV2ProductCertificationListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +export function V2ProductCertificationListRequestFromJSON(json) { + return V2ProductCertificationListRequestFromJSONTyped(json, false); +} +export function V2ProductCertificationListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'page_size': json['page_size'], + }; +} +export function V2ProductCertificationListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/esm/models/V2ProductCertificationListResponse.d.ts b/dist/esm/models/V2ProductCertificationListResponse.d.ts new file mode 100644 index 0000000..fe3f846 --- /dev/null +++ b/dist/esm/models/V2ProductCertificationListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificationListResponseCertificationv2 } from './ProductCertificationListResponseCertificationv2'; +/** + * + * @export + * @interface V2ProductCertificationListResponse + */ +export interface V2ProductCertificationListResponse { + /** + * Информация о сертифицируемых категориях. + * @type {Array} + * @memberof V2ProductCertificationListResponse + */ + certification?: Array; + /** + * Всего категорий. + * @type {number} + * @memberof V2ProductCertificationListResponse + */ + total?: number; +} +/** + * Check if a given object implements the V2ProductCertificationListResponse interface. + */ +export declare function instanceOfV2ProductCertificationListResponse(value: object): value is V2ProductCertificationListResponse; +export declare function V2ProductCertificationListResponseFromJSON(json: any): V2ProductCertificationListResponse; +export declare function V2ProductCertificationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificationListResponse; +export declare function V2ProductCertificationListResponseToJSON(value?: V2ProductCertificationListResponse | null): any; diff --git a/dist/esm/models/V2ProductCertificationListResponse.js b/dist/esm/models/V2ProductCertificationListResponse.js new file mode 100644 index 0000000..af77f53 --- /dev/null +++ b/dist/esm/models/V2ProductCertificationListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductCertificationListResponseCertificationv2FromJSON, ProductCertificationListResponseCertificationv2ToJSON, } from './ProductCertificationListResponseCertificationv2'; +/** + * Check if a given object implements the V2ProductCertificationListResponse interface. + */ +export function instanceOfV2ProductCertificationListResponse(value) { + return true; +} +export function V2ProductCertificationListResponseFromJSON(json) { + return V2ProductCertificationListResponseFromJSONTyped(json, false); +} +export function V2ProductCertificationListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certification': json['certification'] == null ? undefined : (json['certification'].map(ProductCertificationListResponseCertificationv2FromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V2ProductCertificationListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'certification': value['certification'] == null ? undefined : (value['certification'].map(ProductCertificationListResponseCertificationv2ToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V2ProductInfoPicturesRequest.d.ts b/dist/esm/models/V2ProductInfoPicturesRequest.d.ts new file mode 100644 index 0000000..4c49bbb --- /dev/null +++ b/dist/esm/models/V2ProductInfoPicturesRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ProductInfoPicturesRequest + */ +export interface V2ProductInfoPicturesRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof V2ProductInfoPicturesRequest + */ + product_id: Array; +} +/** + * Check if a given object implements the V2ProductInfoPicturesRequest interface. + */ +export declare function instanceOfV2ProductInfoPicturesRequest(value: object): value is V2ProductInfoPicturesRequest; +export declare function V2ProductInfoPicturesRequestFromJSON(json: any): V2ProductInfoPicturesRequest; +export declare function V2ProductInfoPicturesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductInfoPicturesRequest; +export declare function V2ProductInfoPicturesRequestToJSON(value?: V2ProductInfoPicturesRequest | null): any; diff --git a/dist/esm/models/V2ProductInfoPicturesRequest.js b/dist/esm/models/V2ProductInfoPicturesRequest.js new file mode 100644 index 0000000..94d040a --- /dev/null +++ b/dist/esm/models/V2ProductInfoPicturesRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ProductInfoPicturesRequest interface. + */ +export function instanceOfV2ProductInfoPicturesRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function V2ProductInfoPicturesRequestFromJSON(json) { + return V2ProductInfoPicturesRequestFromJSONTyped(json, false); +} +export function V2ProductInfoPicturesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +export function V2ProductInfoPicturesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V2ProductInfoPicturesResponse.d.ts b/dist/esm/models/V2ProductInfoPicturesResponse.d.ts new file mode 100644 index 0000000..0b2f684 --- /dev/null +++ b/dist/esm/models/V2ProductInfoPicturesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ProductInfoPicturesResponseItem } from './V2ProductInfoPicturesResponseItem'; +/** + * + * @export + * @interface V2ProductInfoPicturesResponse + */ +export interface V2ProductInfoPicturesResponse { + /** + * Изображения товаров. + * @type {Array} + * @memberof V2ProductInfoPicturesResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V2ProductInfoPicturesResponse interface. + */ +export declare function instanceOfV2ProductInfoPicturesResponse(value: object): value is V2ProductInfoPicturesResponse; +export declare function V2ProductInfoPicturesResponseFromJSON(json: any): V2ProductInfoPicturesResponse; +export declare function V2ProductInfoPicturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductInfoPicturesResponse; +export declare function V2ProductInfoPicturesResponseToJSON(value?: V2ProductInfoPicturesResponse | null): any; diff --git a/dist/esm/models/V2ProductInfoPicturesResponse.js b/dist/esm/models/V2ProductInfoPicturesResponse.js new file mode 100644 index 0000000..40c5ff7 --- /dev/null +++ b/dist/esm/models/V2ProductInfoPicturesResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2ProductInfoPicturesResponseItemFromJSON, V2ProductInfoPicturesResponseItemToJSON, } from './V2ProductInfoPicturesResponseItem'; +/** + * Check if a given object implements the V2ProductInfoPicturesResponse interface. + */ +export function instanceOfV2ProductInfoPicturesResponse(value) { + return true; +} +export function V2ProductInfoPicturesResponseFromJSON(json) { + return V2ProductInfoPicturesResponseFromJSONTyped(json, false); +} +export function V2ProductInfoPicturesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V2ProductInfoPicturesResponseItemFromJSON)), + }; +} +export function V2ProductInfoPicturesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V2ProductInfoPicturesResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V2ProductInfoPicturesResponseError.d.ts b/dist/esm/models/V2ProductInfoPicturesResponseError.d.ts new file mode 100644 index 0000000..d810be5 --- /dev/null +++ b/dist/esm/models/V2ProductInfoPicturesResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ProductInfoPicturesResponseError + */ +export interface V2ProductInfoPicturesResponseError { + /** + * Описание ошибки. + * @type {string} + * @memberof V2ProductInfoPicturesResponseError + */ + message?: string; + /** + * Ссылка на изображение. + * @type {string} + * @memberof V2ProductInfoPicturesResponseError + */ + url?: string; +} +/** + * Check if a given object implements the V2ProductInfoPicturesResponseError interface. + */ +export declare function instanceOfV2ProductInfoPicturesResponseError(value: object): value is V2ProductInfoPicturesResponseError; +export declare function V2ProductInfoPicturesResponseErrorFromJSON(json: any): V2ProductInfoPicturesResponseError; +export declare function V2ProductInfoPicturesResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductInfoPicturesResponseError; +export declare function V2ProductInfoPicturesResponseErrorToJSON(value?: V2ProductInfoPicturesResponseError | null): any; diff --git a/dist/esm/models/V2ProductInfoPicturesResponseError.js b/dist/esm/models/V2ProductInfoPicturesResponseError.js new file mode 100644 index 0000000..6123d00 --- /dev/null +++ b/dist/esm/models/V2ProductInfoPicturesResponseError.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ProductInfoPicturesResponseError interface. + */ +export function instanceOfV2ProductInfoPicturesResponseError(value) { + return true; +} +export function V2ProductInfoPicturesResponseErrorFromJSON(json) { + return V2ProductInfoPicturesResponseErrorFromJSONTyped(json, false); +} +export function V2ProductInfoPicturesResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +export function V2ProductInfoPicturesResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + 'url': value['url'], + }; +} diff --git a/dist/esm/models/V2ProductInfoPicturesResponseItem.d.ts b/dist/esm/models/V2ProductInfoPicturesResponseItem.d.ts new file mode 100644 index 0000000..88d52f1 --- /dev/null +++ b/dist/esm/models/V2ProductInfoPicturesResponseItem.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ProductInfoPicturesResponseError } from './V2ProductInfoPicturesResponseError'; +/** + * + * @export + * @interface V2ProductInfoPicturesResponseItem + */ +export interface V2ProductInfoPicturesResponseItem { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V2ProductInfoPicturesResponseItem + */ + product_id?: number; + /** + * Ссылка на главное изображение. + * @type {Array} + * @memberof V2ProductInfoPicturesResponseItem + */ + primary_photo?: Array; + /** + * Ссылки на фотографии товара. + * @type {Array} + * @memberof V2ProductInfoPicturesResponseItem + */ + photo?: Array; + /** + * Ссылки на загруженные образцы цвета. + * @type {Array} + * @memberof V2ProductInfoPicturesResponseItem + */ + color_photo?: Array; + /** + * Список ошибок по изображениям товара. + * @type {Array} + * @memberof V2ProductInfoPicturesResponseItem + */ + errors?: Array; +} +/** + * Check if a given object implements the V2ProductInfoPicturesResponseItem interface. + */ +export declare function instanceOfV2ProductInfoPicturesResponseItem(value: object): value is V2ProductInfoPicturesResponseItem; +export declare function V2ProductInfoPicturesResponseItemFromJSON(json: any): V2ProductInfoPicturesResponseItem; +export declare function V2ProductInfoPicturesResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductInfoPicturesResponseItem; +export declare function V2ProductInfoPicturesResponseItemToJSON(value?: V2ProductInfoPicturesResponseItem | null): any; diff --git a/dist/esm/models/V2ProductInfoPicturesResponseItem.js b/dist/esm/models/V2ProductInfoPicturesResponseItem.js new file mode 100644 index 0000000..fc99f03 --- /dev/null +++ b/dist/esm/models/V2ProductInfoPicturesResponseItem.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2ProductInfoPicturesResponseErrorFromJSON, V2ProductInfoPicturesResponseErrorToJSON, } from './V2ProductInfoPicturesResponseError'; +/** + * Check if a given object implements the V2ProductInfoPicturesResponseItem interface. + */ +export function instanceOfV2ProductInfoPicturesResponseItem(value) { + return true; +} +export function V2ProductInfoPicturesResponseItemFromJSON(json) { + return V2ProductInfoPicturesResponseItemFromJSONTyped(json, false); +} +export function V2ProductInfoPicturesResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'primary_photo': json['primary_photo'] == null ? undefined : json['primary_photo'], + 'photo': json['photo'] == null ? undefined : json['photo'], + 'color_photo': json['color_photo'] == null ? undefined : json['color_photo'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V2ProductInfoPicturesResponseErrorFromJSON)), + }; +} +export function V2ProductInfoPicturesResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'primary_photo': value['primary_photo'], + 'photo': value['photo'], + 'color_photo': value['color_photo'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V2ProductInfoPicturesResponseErrorToJSON)), + }; +} diff --git a/dist/esm/models/V2ReportReturnsCreateRequest.d.ts b/dist/esm/models/V2ReportReturnsCreateRequest.d.ts new file mode 100644 index 0000000..2c7d850 --- /dev/null +++ b/dist/esm/models/V2ReportReturnsCreateRequest.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ReportReturnsCreateRequestFilter } from './V2ReportReturnsCreateRequestFilter'; +/** + * + * @export + * @interface V2ReportReturnsCreateRequest + */ +export interface V2ReportReturnsCreateRequest { + /** + * + * @type {V2ReportReturnsCreateRequestFilter} + * @memberof V2ReportReturnsCreateRequest + */ + filter: V2ReportReturnsCreateRequestFilter; + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequest + */ + language?: string; +} +/** + * Check if a given object implements the V2ReportReturnsCreateRequest interface. + */ +export declare function instanceOfV2ReportReturnsCreateRequest(value: object): value is V2ReportReturnsCreateRequest; +export declare function V2ReportReturnsCreateRequestFromJSON(json: any): V2ReportReturnsCreateRequest; +export declare function V2ReportReturnsCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReportReturnsCreateRequest; +export declare function V2ReportReturnsCreateRequestToJSON(value?: V2ReportReturnsCreateRequest | null): any; diff --git a/dist/esm/models/V2ReportReturnsCreateRequest.js b/dist/esm/models/V2ReportReturnsCreateRequest.js new file mode 100644 index 0000000..0aa1da8 --- /dev/null +++ b/dist/esm/models/V2ReportReturnsCreateRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ReportReturnsCreateRequest interface. + */ +export function instanceOfV2ReportReturnsCreateRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + return true; +} +export function V2ReportReturnsCreateRequestFromJSON(json) { + return V2ReportReturnsCreateRequestFromJSONTyped(json, false); +} +export function V2ReportReturnsCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +export function V2ReportReturnsCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': value['filter'], + 'language': value['language'], + }; +} diff --git a/dist/esm/models/V2ReportReturnsCreateRequestFilter.d.ts b/dist/esm/models/V2ReportReturnsCreateRequestFilter.d.ts new file mode 100644 index 0000000..8346063 --- /dev/null +++ b/dist/esm/models/V2ReportReturnsCreateRequestFilter.d.ts @@ -0,0 +1,143 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V2ReportReturnsCreateRequestFilter + */ +export interface V2ReportReturnsCreateRequestFilter { + /** + * Фильтр по схеме работы: + * - `FBS` — возвраты на свой склад. + * - `FBO` — возвраты на склад маркетплейса. + * - `ALL` — все возвраты. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequestFilter + */ + delivery_schema?: V2ReportReturnsCreateRequestFilterDeliverySchemaEnum; + /** + * Дата, с которой данные отображаются в отчёте. + * + * Доступно только за последние три месяца. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequestFilter + */ + date_from: string; + /** + * Дата, по которую данные отображаются в отчёте. + * + * Доступно только за последние три месяца. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequestFilter + */ + date_to: string; + /** + * Фильтр по статусу возврата: + * - `DisputeOpened` — открыт спор с покупателем; + * - `OnSellerApproval` — на согласовании у продавца; + * - `ArrivedAtReturnPlace` — в пункте выдачи; + * - `OnSellerClarification` — на уточнении у продавца; + * - `OnSellerClarificationAfterPartialCompensation` — на уточнении у продавца после частичной компенсации; + * - `OfferedPartialCompensation` — предложена частичная компенсация; + * - `ReturnMoneyApproved` — одобрен возврат денег; + * - `PartialCompensationReturned` — вернули часть денег; + * - `CancelledDisputeNotOpen` — возврат отклонён, спор не открыт; + * - `Rejected` — заявка отклонена; + * - `CrmRejected` — заявка отклонена Ozon; + * - `Cancelled` — заявка отменена; + * - `Approved` — заявка одобрена продавцом; + * - `ApprovedByOzon` — заявка одобрена Ozon; + * - `ReceivedBySeller` — продавец получил возврат; + * - `MovingToSeller` — возврат на пути к продавцу; + * - `ReturnCompensated` — продавец получил компенсацию; + * - `ReturningToSellerByCourier` — курьер везёт возврат продавцу; + * - `Utilizing` — на утилизации; + * - `Utilized` — утилизирован; + * - `MoneyReturned` — покупателю вернули всю сумму; + * - `PartialCompensationInProcess` — одобрен частичный возврат денег; + * - `DisputeYouOpened` — продавец открыл спор; + * - `CompensationRejected` — отказано в компенсации; + * - `DisputeOpening` — обращение в поддержку отправлено; + * - `CompensationOffered` — ожидает вашего решения по компенсации; + * - `WaitingCompensation` — ожидает компенсации; + * - `SendingError` — ошибка при отправке обращения в поддержку; + * - `CompensationRejectedBySla` — истёк срок решения; + * - `CompensationRejectedBySeller` — продавец отказался от компенсации; + * - `MovingToOzon` — едет на склад Ozon; + * - `ReturnedToOzon` — на складе Ozon; + * - `MoneyReturnedBySystem` — быстрый возврат; + * - `WaitingShipment` — ожидает отправки. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequestFilter + */ + status: V2ReportReturnsCreateRequestFilterStatusEnum; +} +/** + * @export + */ +export declare const V2ReportReturnsCreateRequestFilterDeliverySchemaEnum: { + readonly FBS: "FBS"; + readonly FBO: "FBO"; + readonly ALL: "ALL"; +}; +export type V2ReportReturnsCreateRequestFilterDeliverySchemaEnum = typeof V2ReportReturnsCreateRequestFilterDeliverySchemaEnum[keyof typeof V2ReportReturnsCreateRequestFilterDeliverySchemaEnum]; +/** + * @export + */ +export declare const V2ReportReturnsCreateRequestFilterStatusEnum: { + readonly DisputeOpened: "DisputeOpened"; + readonly OnSellerApproval: "OnSellerApproval"; + readonly ArrivedAtReturnPlace: "ArrivedAtReturnPlace"; + readonly OnSellerClarification: "OnSellerClarification"; + readonly OnSellerClarificationAfterPartialCompensation: "OnSellerClarificationAfterPartialCompensation"; + readonly OfferedPartialCompensation: "OfferedPartialCompensation"; + readonly ReturnMoneyApproved: "ReturnMoneyApproved"; + readonly PartialCompensationReturned: "PartialCompensationReturned"; + readonly CancelledDisputeNotOpen: "CancelledDisputeNotOpen"; + readonly Rejected: "Rejected"; + readonly CrmRejected: "CrmRejected"; + readonly Cancelled: "Cancelled"; + readonly Approved: "Approved"; + readonly ApprovedByOzon: "ApprovedByOzon"; + readonly ReceivedBySeller: "ReceivedBySeller"; + readonly MovingToSeller: "MovingToSeller"; + readonly ReturnCompensated: "ReturnCompensated"; + readonly ReturningToSellerByCourier: "ReturningToSellerByCourier"; + readonly Utilizing: "Utilizing"; + readonly Utilized: "Utilized"; + readonly MoneyReturned: "MoneyReturned"; + readonly PartialCompensationInProcess: "PartialCompensationInProcess"; + readonly DisputeYouOpened: "DisputeYouOpened"; + readonly CompensationRejected: "CompensationRejected"; + readonly DisputeOpening: "DisputeOpening"; + readonly CompensationOffered: "CompensationOffered"; + readonly WaitingCompensation: "WaitingCompensation"; + readonly SendingError: "SendingError"; + readonly CompensationRejectedBySla: "CompensationRejectedBySla"; + readonly CompensationRejectedBySeller: "CompensationRejectedBySeller"; + readonly MovingToOzon: "MovingToOzon"; + readonly ReturnedToOzon: "ReturnedToOzon"; + readonly MoneyReturnedBySystem: "MoneyReturnedBySystem"; + readonly WaitingShipment: "WaitingShipment"; +}; +export type V2ReportReturnsCreateRequestFilterStatusEnum = typeof V2ReportReturnsCreateRequestFilterStatusEnum[keyof typeof V2ReportReturnsCreateRequestFilterStatusEnum]; +/** + * Check if a given object implements the V2ReportReturnsCreateRequestFilter interface. + */ +export declare function instanceOfV2ReportReturnsCreateRequestFilter(value: object): value is V2ReportReturnsCreateRequestFilter; +export declare function V2ReportReturnsCreateRequestFilterFromJSON(json: any): V2ReportReturnsCreateRequestFilter; +export declare function V2ReportReturnsCreateRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReportReturnsCreateRequestFilter; +export declare function V2ReportReturnsCreateRequestFilterToJSON(value?: V2ReportReturnsCreateRequestFilter | null): any; diff --git a/dist/esm/models/V2ReportReturnsCreateRequestFilter.js b/dist/esm/models/V2ReportReturnsCreateRequestFilter.js new file mode 100644 index 0000000..b3d74a5 --- /dev/null +++ b/dist/esm/models/V2ReportReturnsCreateRequestFilter.js @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const V2ReportReturnsCreateRequestFilterDeliverySchemaEnum = { + FBS: 'FBS', + FBO: 'FBO', + ALL: 'ALL' +}; +/** + * @export + */ +export const V2ReportReturnsCreateRequestFilterStatusEnum = { + DisputeOpened: 'DisputeOpened', + OnSellerApproval: 'OnSellerApproval', + ArrivedAtReturnPlace: 'ArrivedAtReturnPlace', + OnSellerClarification: 'OnSellerClarification', + OnSellerClarificationAfterPartialCompensation: 'OnSellerClarificationAfterPartialCompensation', + OfferedPartialCompensation: 'OfferedPartialCompensation', + ReturnMoneyApproved: 'ReturnMoneyApproved', + PartialCompensationReturned: 'PartialCompensationReturned', + CancelledDisputeNotOpen: 'CancelledDisputeNotOpen', + Rejected: 'Rejected', + CrmRejected: 'CrmRejected', + Cancelled: 'Cancelled', + Approved: 'Approved', + ApprovedByOzon: 'ApprovedByOzon', + ReceivedBySeller: 'ReceivedBySeller', + MovingToSeller: 'MovingToSeller', + ReturnCompensated: 'ReturnCompensated', + ReturningToSellerByCourier: 'ReturningToSellerByCourier', + Utilizing: 'Utilizing', + Utilized: 'Utilized', + MoneyReturned: 'MoneyReturned', + PartialCompensationInProcess: 'PartialCompensationInProcess', + DisputeYouOpened: 'DisputeYouOpened', + CompensationRejected: 'CompensationRejected', + DisputeOpening: 'DisputeOpening', + CompensationOffered: 'CompensationOffered', + WaitingCompensation: 'WaitingCompensation', + SendingError: 'SendingError', + CompensationRejectedBySla: 'CompensationRejectedBySla', + CompensationRejectedBySeller: 'CompensationRejectedBySeller', + MovingToOzon: 'MovingToOzon', + ReturnedToOzon: 'ReturnedToOzon', + MoneyReturnedBySystem: 'MoneyReturnedBySystem', + WaitingShipment: 'WaitingShipment' +}; +/** + * Check if a given object implements the V2ReportReturnsCreateRequestFilter interface. + */ +export function instanceOfV2ReportReturnsCreateRequestFilter(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +export function V2ReportReturnsCreateRequestFilterFromJSON(json) { + return V2ReportReturnsCreateRequestFilterFromJSONTyped(json, false); +} +export function V2ReportReturnsCreateRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'status': json['status'], + }; +} +export function V2ReportReturnsCreateRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_schema': value['delivery_schema'], + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V2ReportReturnsCreateResponse.d.ts b/dist/esm/models/V2ReportReturnsCreateResponse.d.ts new file mode 100644 index 0000000..40ff2cc --- /dev/null +++ b/dist/esm/models/V2ReportReturnsCreateResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateReportResponseCode } from './CreateReportResponseCode'; +/** + * + * @export + * @interface V2ReportReturnsCreateResponse + */ +export interface V2ReportReturnsCreateResponse { + /** + * + * @type {CreateReportResponseCode} + * @memberof V2ReportReturnsCreateResponse + */ + result?: CreateReportResponseCode; +} +/** + * Check if a given object implements the V2ReportReturnsCreateResponse interface. + */ +export declare function instanceOfV2ReportReturnsCreateResponse(value: object): value is V2ReportReturnsCreateResponse; +export declare function V2ReportReturnsCreateResponseFromJSON(json: any): V2ReportReturnsCreateResponse; +export declare function V2ReportReturnsCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReportReturnsCreateResponse; +export declare function V2ReportReturnsCreateResponseToJSON(value?: V2ReportReturnsCreateResponse | null): any; diff --git a/dist/esm/models/V2ReportReturnsCreateResponse.js b/dist/esm/models/V2ReportReturnsCreateResponse.js new file mode 100644 index 0000000..65d920f --- /dev/null +++ b/dist/esm/models/V2ReportReturnsCreateResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreateReportResponseCodeFromJSON, CreateReportResponseCodeToJSON, } from './CreateReportResponseCode'; +/** + * Check if a given object implements the V2ReportReturnsCreateResponse interface. + */ +export function instanceOfV2ReportReturnsCreateResponse(value) { + return true; +} +export function V2ReportReturnsCreateResponseFromJSON(json) { + return V2ReportReturnsCreateResponseFromJSONTyped(json, false); +} +export function V2ReportReturnsCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : CreateReportResponseCodeFromJSON(json['result']), + }; +} +export function V2ReportReturnsCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': CreateReportResponseCodeToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V2ReturnsRfbsFilter.d.ts b/dist/esm/models/V2ReturnsRfbsFilter.d.ts new file mode 100644 index 0000000..60a9635 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsFilter.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreatedAt } from './CreatedAt'; +/** + * Фильтр. + * @export + * @interface V2ReturnsRfbsFilter + */ +export interface V2ReturnsRfbsFilter { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2ReturnsRfbsFilter + */ + offer_id?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2ReturnsRfbsFilter + */ + posting_number?: string; + /** + * Фильтр по статусам заявок: + * - `All` — все заявки. + * - `New` — новые. + * - `Delivering` — в пути. + * - `Checkout` — на проверке. + * - `Arbitration` — спорные. + * - `Approved` — согласованные. + * - `Rejected` — отклонённые. + * + * @type {Array} + * @memberof V2ReturnsRfbsFilter + */ + group_state?: Array; + /** + * + * @type {CreatedAt} + * @memberof V2ReturnsRfbsFilter + */ + created_at?: CreatedAt; +} +/** + * Check if a given object implements the V2ReturnsRfbsFilter interface. + */ +export declare function instanceOfV2ReturnsRfbsFilter(value: object): value is V2ReturnsRfbsFilter; +export declare function V2ReturnsRfbsFilterFromJSON(json: any): V2ReturnsRfbsFilter; +export declare function V2ReturnsRfbsFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsFilter; +export declare function V2ReturnsRfbsFilterToJSON(value?: V2ReturnsRfbsFilter | null): any; diff --git a/dist/esm/models/V2ReturnsRfbsFilter.js b/dist/esm/models/V2ReturnsRfbsFilter.js new file mode 100644 index 0000000..a6b6764 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsFilter.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CreatedAtFromJSON, CreatedAtToJSON, } from './CreatedAt'; +/** + * Check if a given object implements the V2ReturnsRfbsFilter interface. + */ +export function instanceOfV2ReturnsRfbsFilter(value) { + return true; +} +export function V2ReturnsRfbsFilterFromJSON(json) { + return V2ReturnsRfbsFilterFromJSONTyped(json, false); +} +export function V2ReturnsRfbsFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'group_state': json['group_state'] == null ? undefined : json['group_state'], + 'created_at': json['created_at'] == null ? undefined : CreatedAtFromJSON(json['created_at']), + }; +} +export function V2ReturnsRfbsFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'posting_number': value['posting_number'], + 'group_state': value['group_state'], + 'created_at': CreatedAtToJSON(value['created_at']), + }; +} diff --git a/dist/esm/models/V2ReturnsRfbsGetRequest.d.ts b/dist/esm/models/V2ReturnsRfbsGetRequest.d.ts new file mode 100644 index 0000000..f593aac --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ReturnsRfbsGetRequest + */ +export interface V2ReturnsRfbsGetRequest { + /** + * Идентификатор заявки на возврат. Получите методом [/v2/returns/rfbs/list](#operation/RFBSReturnsAPI_ReturnsRfbsListV2). + * @type {number} + * @memberof V2ReturnsRfbsGetRequest + */ + return_id: number; +} +/** + * Check if a given object implements the V2ReturnsRfbsGetRequest interface. + */ +export declare function instanceOfV2ReturnsRfbsGetRequest(value: object): value is V2ReturnsRfbsGetRequest; +export declare function V2ReturnsRfbsGetRequestFromJSON(json: any): V2ReturnsRfbsGetRequest; +export declare function V2ReturnsRfbsGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsGetRequest; +export declare function V2ReturnsRfbsGetRequestToJSON(value?: V2ReturnsRfbsGetRequest | null): any; diff --git a/dist/esm/models/V2ReturnsRfbsGetRequest.js b/dist/esm/models/V2ReturnsRfbsGetRequest.js new file mode 100644 index 0000000..f071fae --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ReturnsRfbsGetRequest interface. + */ +export function instanceOfV2ReturnsRfbsGetRequest(value) { + if (!('return_id' in value) || value['return_id'] === undefined) + return false; + return true; +} +export function V2ReturnsRfbsGetRequestFromJSON(json) { + return V2ReturnsRfbsGetRequestFromJSONTyped(json, false); +} +export function V2ReturnsRfbsGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'return_id': json['return_id'], + }; +} +export function V2ReturnsRfbsGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'return_id': value['return_id'], + }; +} diff --git a/dist/esm/models/V2ReturnsRfbsGetResponse.d.ts b/dist/esm/models/V2ReturnsRfbsGetResponse.d.ts new file mode 100644 index 0000000..fd2b308 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsRfbsGetResponseReturns } from './ReturnsRfbsGetResponseReturns'; +/** + * + * @export + * @interface V2ReturnsRfbsGetResponse + */ +export interface V2ReturnsRfbsGetResponse { + /** + * + * @type {ReturnsRfbsGetResponseReturns} + * @memberof V2ReturnsRfbsGetResponse + */ + returns?: ReturnsRfbsGetResponseReturns; +} +/** + * Check if a given object implements the V2ReturnsRfbsGetResponse interface. + */ +export declare function instanceOfV2ReturnsRfbsGetResponse(value: object): value is V2ReturnsRfbsGetResponse; +export declare function V2ReturnsRfbsGetResponseFromJSON(json: any): V2ReturnsRfbsGetResponse; +export declare function V2ReturnsRfbsGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsGetResponse; +export declare function V2ReturnsRfbsGetResponseToJSON(value?: V2ReturnsRfbsGetResponse | null): any; diff --git a/dist/esm/models/V2ReturnsRfbsGetResponse.js b/dist/esm/models/V2ReturnsRfbsGetResponse.js new file mode 100644 index 0000000..a58b7bc --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsGetResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReturnsRfbsGetResponseReturnsFromJSON, ReturnsRfbsGetResponseReturnsToJSON, } from './ReturnsRfbsGetResponseReturns'; +/** + * Check if a given object implements the V2ReturnsRfbsGetResponse interface. + */ +export function instanceOfV2ReturnsRfbsGetResponse(value) { + return true; +} +export function V2ReturnsRfbsGetResponseFromJSON(json) { + return V2ReturnsRfbsGetResponseFromJSONTyped(json, false); +} +export function V2ReturnsRfbsGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'returns': json['returns'] == null ? undefined : ReturnsRfbsGetResponseReturnsFromJSON(json['returns']), + }; +} +export function V2ReturnsRfbsGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'returns': ReturnsRfbsGetResponseReturnsToJSON(value['returns']), + }; +} diff --git a/dist/esm/models/V2ReturnsRfbsGetV2ResponseState.d.ts b/dist/esm/models/V2ReturnsRfbsGetV2ResponseState.d.ts new file mode 100644 index 0000000..344a1fe --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsGetV2ResponseState.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о статусе возврата. + * @export + * @interface V2ReturnsRfbsGetV2ResponseState + */ +export interface V2ReturnsRfbsGetV2ResponseState { + /** + * Статус. + * @type {string} + * @memberof V2ReturnsRfbsGetV2ResponseState + */ + state?: string; + /** + * Название статуса на русском. + * @type {string} + * @memberof V2ReturnsRfbsGetV2ResponseState + */ + state_name?: string; +} +/** + * Check if a given object implements the V2ReturnsRfbsGetV2ResponseState interface. + */ +export declare function instanceOfV2ReturnsRfbsGetV2ResponseState(value: object): value is V2ReturnsRfbsGetV2ResponseState; +export declare function V2ReturnsRfbsGetV2ResponseStateFromJSON(json: any): V2ReturnsRfbsGetV2ResponseState; +export declare function V2ReturnsRfbsGetV2ResponseStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsGetV2ResponseState; +export declare function V2ReturnsRfbsGetV2ResponseStateToJSON(value?: V2ReturnsRfbsGetV2ResponseState | null): any; diff --git a/dist/esm/models/V2ReturnsRfbsGetV2ResponseState.js b/dist/esm/models/V2ReturnsRfbsGetV2ResponseState.js new file mode 100644 index 0000000..b3604d3 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsGetV2ResponseState.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ReturnsRfbsGetV2ResponseState interface. + */ +export function instanceOfV2ReturnsRfbsGetV2ResponseState(value) { + return true; +} +export function V2ReturnsRfbsGetV2ResponseStateFromJSON(json) { + return V2ReturnsRfbsGetV2ResponseStateFromJSONTyped(json, false); +} +export function V2ReturnsRfbsGetV2ResponseStateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'state': json['state'] == null ? undefined : json['state'], + 'state_name': json['state_name'] == null ? undefined : json['state_name'], + }; +} +export function V2ReturnsRfbsGetV2ResponseStateToJSON(value) { + if (value == null) { + return value; + } + return { + 'state': value['state'], + 'state_name': value['state_name'], + }; +} diff --git a/dist/esm/models/V2ReturnsRfbsListRequest.d.ts b/dist/esm/models/V2ReturnsRfbsListRequest.d.ts new file mode 100644 index 0000000..4d44fdd --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ReturnsRfbsFilter } from './V2ReturnsRfbsFilter'; +/** + * + * @export + * @interface V2ReturnsRfbsListRequest + */ +export interface V2ReturnsRfbsListRequest { + /** + * + * @type {V2ReturnsRfbsFilter} + * @memberof V2ReturnsRfbsListRequest + */ + filter?: V2ReturnsRfbsFilter; + /** + * Идентификатор последнего значения на странице — `return_id`. Оставьте это поле пустым при выполнении первого запроса. + * @type {number} + * @memberof V2ReturnsRfbsListRequest + */ + last_id?: number; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V2ReturnsRfbsListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V2ReturnsRfbsListRequest interface. + */ +export declare function instanceOfV2ReturnsRfbsListRequest(value: object): value is V2ReturnsRfbsListRequest; +export declare function V2ReturnsRfbsListRequestFromJSON(json: any): V2ReturnsRfbsListRequest; +export declare function V2ReturnsRfbsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsListRequest; +export declare function V2ReturnsRfbsListRequestToJSON(value?: V2ReturnsRfbsListRequest | null): any; diff --git a/dist/esm/models/V2ReturnsRfbsListRequest.js b/dist/esm/models/V2ReturnsRfbsListRequest.js new file mode 100644 index 0000000..89dd632 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsListRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V2ReturnsRfbsFilterFromJSON, V2ReturnsRfbsFilterToJSON, } from './V2ReturnsRfbsFilter'; +/** + * Check if a given object implements the V2ReturnsRfbsListRequest interface. + */ +export function instanceOfV2ReturnsRfbsListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V2ReturnsRfbsListRequestFromJSON(json) { + return V2ReturnsRfbsListRequestFromJSONTyped(json, false); +} +export function V2ReturnsRfbsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : V2ReturnsRfbsFilterFromJSON(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +export function V2ReturnsRfbsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': V2ReturnsRfbsFilterToJSON(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V2ReturnsRfbsListResponse.d.ts b/dist/esm/models/V2ReturnsRfbsListResponse.d.ts new file mode 100644 index 0000000..c554c29 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsRfbsListResponseReturns } from './ReturnsRfbsListResponseReturns'; +/** + * + * @export + * @interface V2ReturnsRfbsListResponse + */ +export interface V2ReturnsRfbsListResponse { + /** + * + * @type {ReturnsRfbsListResponseReturns} + * @memberof V2ReturnsRfbsListResponse + */ + returns?: ReturnsRfbsListResponseReturns; +} +/** + * Check if a given object implements the V2ReturnsRfbsListResponse interface. + */ +export declare function instanceOfV2ReturnsRfbsListResponse(value: object): value is V2ReturnsRfbsListResponse; +export declare function V2ReturnsRfbsListResponseFromJSON(json: any): V2ReturnsRfbsListResponse; +export declare function V2ReturnsRfbsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsListResponse; +export declare function V2ReturnsRfbsListResponseToJSON(value?: V2ReturnsRfbsListResponse | null): any; diff --git a/dist/esm/models/V2ReturnsRfbsListResponse.js b/dist/esm/models/V2ReturnsRfbsListResponse.js new file mode 100644 index 0000000..60d0148 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReturnsRfbsListResponseReturnsFromJSON, ReturnsRfbsListResponseReturnsToJSON, } from './ReturnsRfbsListResponseReturns'; +/** + * Check if a given object implements the V2ReturnsRfbsListResponse interface. + */ +export function instanceOfV2ReturnsRfbsListResponse(value) { + return true; +} +export function V2ReturnsRfbsListResponseFromJSON(json) { + return V2ReturnsRfbsListResponseFromJSONTyped(json, false); +} +export function V2ReturnsRfbsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'returns': json['returns'] == null ? undefined : ReturnsRfbsListResponseReturnsFromJSON(json['returns']), + }; +} +export function V2ReturnsRfbsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'returns': ReturnsRfbsListResponseReturnsToJSON(value['returns']), + }; +} diff --git a/dist/esm/models/V2ReturnsRfbsListV2ResponseState.d.ts b/dist/esm/models/V2ReturnsRfbsListV2ResponseState.d.ts new file mode 100644 index 0000000..fabd558 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsListV2ResponseState.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статусы заявки и возврата денег. + * @export + * @interface V2ReturnsRfbsListV2ResponseState + */ +export interface V2ReturnsRfbsListV2ResponseState { + /** + * Статус заявки по применённому фильтру. + * @type {string} + * @memberof V2ReturnsRfbsListV2ResponseState + */ + group_state?: string; + /** + * Статус возврата денег. + * @type {string} + * @memberof V2ReturnsRfbsListV2ResponseState + */ + money_return_state_name?: string; + /** + * Статус заявки. + * @type {string} + * @memberof V2ReturnsRfbsListV2ResponseState + */ + state?: string; + /** + * Название статуса заявки на русском. + * @type {string} + * @memberof V2ReturnsRfbsListV2ResponseState + */ + state_name?: string; +} +/** + * Check if a given object implements the V2ReturnsRfbsListV2ResponseState interface. + */ +export declare function instanceOfV2ReturnsRfbsListV2ResponseState(value: object): value is V2ReturnsRfbsListV2ResponseState; +export declare function V2ReturnsRfbsListV2ResponseStateFromJSON(json: any): V2ReturnsRfbsListV2ResponseState; +export declare function V2ReturnsRfbsListV2ResponseStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsListV2ResponseState; +export declare function V2ReturnsRfbsListV2ResponseStateToJSON(value?: V2ReturnsRfbsListV2ResponseState | null): any; diff --git a/dist/esm/models/V2ReturnsRfbsListV2ResponseState.js b/dist/esm/models/V2ReturnsRfbsListV2ResponseState.js new file mode 100644 index 0000000..13dc7c8 --- /dev/null +++ b/dist/esm/models/V2ReturnsRfbsListV2ResponseState.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2ReturnsRfbsListV2ResponseState interface. + */ +export function instanceOfV2ReturnsRfbsListV2ResponseState(value) { + return true; +} +export function V2ReturnsRfbsListV2ResponseStateFromJSON(json) { + return V2ReturnsRfbsListV2ResponseStateFromJSONTyped(json, false); +} +export function V2ReturnsRfbsListV2ResponseStateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'group_state': json['group_state'] == null ? undefined : json['group_state'], + 'money_return_state_name': json['money_return_state_name'] == null ? undefined : json['money_return_state_name'], + 'state': json['state'] == null ? undefined : json['state'], + 'state_name': json['state_name'] == null ? undefined : json['state_name'], + }; +} +export function V2ReturnsRfbsListV2ResponseStateToJSON(value) { + if (value == null) { + return value; + } + return { + 'group_state': value['group_state'], + 'money_return_state_name': value['money_return_state_name'], + 'state': value['state'], + 'state_name': value['state_name'], + }; +} diff --git a/dist/esm/models/V2WarehouseListV2Request.d.ts b/dist/esm/models/V2WarehouseListV2Request.d.ts new file mode 100644 index 0000000..26ee281 --- /dev/null +++ b/dist/esm/models/V2WarehouseListV2Request.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2WarehouseListV2Request + */ +export interface V2WarehouseListV2Request { + /** + * Количество значений в ответе. + * @type {number} + * @memberof V2WarehouseListV2Request + */ + limit: number; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2WarehouseListV2Request + */ + cursor?: string; + /** + * Идентификаторы складов. + * @type {Array} + * @memberof V2WarehouseListV2Request + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the V2WarehouseListV2Request interface. + */ +export declare function instanceOfV2WarehouseListV2Request(value: object): value is V2WarehouseListV2Request; +export declare function V2WarehouseListV2RequestFromJSON(json: any): V2WarehouseListV2Request; +export declare function V2WarehouseListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WarehouseListV2Request; +export declare function V2WarehouseListV2RequestToJSON(value?: V2WarehouseListV2Request | null): any; diff --git a/dist/esm/models/V2WarehouseListV2Request.js b/dist/esm/models/V2WarehouseListV2Request.js new file mode 100644 index 0000000..b4d7171 --- /dev/null +++ b/dist/esm/models/V2WarehouseListV2Request.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V2WarehouseListV2Request interface. + */ +export function instanceOfV2WarehouseListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V2WarehouseListV2RequestFromJSON(json) { + return V2WarehouseListV2RequestFromJSONTyped(json, false); +} +export function V2WarehouseListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +export function V2WarehouseListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'cursor': value['cursor'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/esm/models/V2WarehouseListV2Response.d.ts b/dist/esm/models/V2WarehouseListV2Response.d.ts new file mode 100644 index 0000000..1150e2d --- /dev/null +++ b/dist/esm/models/V2WarehouseListV2Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseListV2ResponseWarehouse } from './WarehouseListV2ResponseWarehouse'; +/** + * + * @export + * @interface V2WarehouseListV2Response + */ +export interface V2WarehouseListV2Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2WarehouseListV2Response + */ + cursor?: string; + /** + * Список складов. + * @type {Array} + * @memberof V2WarehouseListV2Response + */ + warehouses?: Array; + /** + * `true`, если в ответе вернулись не все значения. + * + * @type {boolean} + * @memberof V2WarehouseListV2Response + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V2WarehouseListV2Response interface. + */ +export declare function instanceOfV2WarehouseListV2Response(value: object): value is V2WarehouseListV2Response; +export declare function V2WarehouseListV2ResponseFromJSON(json: any): V2WarehouseListV2Response; +export declare function V2WarehouseListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WarehouseListV2Response; +export declare function V2WarehouseListV2ResponseToJSON(value?: V2WarehouseListV2Response | null): any; diff --git a/dist/esm/models/V2WarehouseListV2Response.js b/dist/esm/models/V2WarehouseListV2Response.js new file mode 100644 index 0000000..e305381 --- /dev/null +++ b/dist/esm/models/V2WarehouseListV2Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseListV2ResponseWarehouseFromJSON, WarehouseListV2ResponseWarehouseToJSON, } from './WarehouseListV2ResponseWarehouse'; +/** + * Check if a given object implements the V2WarehouseListV2Response interface. + */ +export function instanceOfV2WarehouseListV2Response(value) { + return true; +} +export function V2WarehouseListV2ResponseFromJSON(json) { + return V2WarehouseListV2ResponseFromJSONTyped(json, false); +} +export function V2WarehouseListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(WarehouseListV2ResponseWarehouseFromJSON)), + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +export function V2WarehouseListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(WarehouseListV2ResponseWarehouseToJSON)), + 'has_next': value['has_next'], + }; +} diff --git a/dist/esm/models/V3AdditionalDataItem.d.ts b/dist/esm/models/V3AdditionalDataItem.d.ts new file mode 100644 index 0000000..80c1a48 --- /dev/null +++ b/dist/esm/models/V3AdditionalDataItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3AdditionalDataItem + */ +export interface V3AdditionalDataItem { + /** + * + * @type {string} + * @memberof V3AdditionalDataItem + */ + key?: string; + /** + * + * @type {string} + * @memberof V3AdditionalDataItem + */ + value?: string; +} +/** + * Check if a given object implements the V3AdditionalDataItem interface. + */ +export declare function instanceOfV3AdditionalDataItem(value: object): value is V3AdditionalDataItem; +export declare function V3AdditionalDataItemFromJSON(json: any): V3AdditionalDataItem; +export declare function V3AdditionalDataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3AdditionalDataItem; +export declare function V3AdditionalDataItemToJSON(value?: V3AdditionalDataItem | null): any; diff --git a/dist/esm/models/V3AdditionalDataItem.js b/dist/esm/models/V3AdditionalDataItem.js new file mode 100644 index 0000000..4efb201 --- /dev/null +++ b/dist/esm/models/V3AdditionalDataItem.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3AdditionalDataItem interface. + */ +export function instanceOfV3AdditionalDataItem(value) { + return true; +} +export function V3AdditionalDataItemFromJSON(json) { + return V3AdditionalDataItemFromJSONTyped(json, false); +} +export function V3AdditionalDataItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V3AdditionalDataItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V3Address.d.ts b/dist/esm/models/V3Address.d.ts new file mode 100644 index 0000000..d18f09e --- /dev/null +++ b/dist/esm/models/V3Address.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об адресе доставки. + * @export + * @interface V3Address + */ +export interface V3Address { + /** + * Адрес в текстовом формате. + * @type {string} + * @memberof V3Address + */ + address_tail?: string; + /** + * Город доставки. + * @type {string} + * @memberof V3Address + */ + city?: string; + /** + * Комментарий к заказу. + * @type {string} + * @memberof V3Address + */ + comment?: string; + /** + * Страна доставки. + * @type {string} + * @memberof V3Address + */ + country?: string; + /** + * Район доставки. + * @type {string} + * @memberof V3Address + */ + district?: string; + /** + * Широта. + * @type {number} + * @memberof V3Address + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V3Address + */ + longitude?: number; + /** + * Код пункта выдачи заказов 3PL провайдера. + * @type {string} + * @memberof V3Address + */ + provider_pvz_code?: string; + /** + * Код пункта выдачи заказов. + * @type {number} + * @memberof V3Address + */ + pvz_code?: number; + /** + * Регион доставки. + * @type {string} + * @memberof V3Address + */ + region?: string; + /** + * Почтовый индекс получателя. + * @type {string} + * @memberof V3Address + */ + zip_code?: string; +} +/** + * Check if a given object implements the V3Address interface. + */ +export declare function instanceOfV3Address(value: object): value is V3Address; +export declare function V3AddressFromJSON(json: any): V3Address; +export declare function V3AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Address; +export declare function V3AddressToJSON(value?: V3Address | null): any; diff --git a/dist/esm/models/V3Address.js b/dist/esm/models/V3Address.js new file mode 100644 index 0000000..965ebef --- /dev/null +++ b/dist/esm/models/V3Address.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3Address interface. + */ +export function instanceOfV3Address(value) { + return true; +} +export function V3AddressFromJSON(json) { + return V3AddressFromJSONTyped(json, false); +} +export function V3AddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_tail': json['address_tail'] == null ? undefined : json['address_tail'], + 'city': json['city'] == null ? undefined : json['city'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'country': json['country'] == null ? undefined : json['country'], + 'district': json['district'] == null ? undefined : json['district'], + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + 'provider_pvz_code': json['provider_pvz_code'] == null ? undefined : json['provider_pvz_code'], + 'pvz_code': json['pvz_code'] == null ? undefined : json['pvz_code'], + 'region': json['region'] == null ? undefined : json['region'], + 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], + }; +} +export function V3AddressToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_tail': value['address_tail'], + 'city': value['city'], + 'comment': value['comment'], + 'country': value['country'], + 'district': value['district'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'provider_pvz_code': value['provider_pvz_code'], + 'pvz_code': value['pvz_code'], + 'region': value['region'], + 'zip_code': value['zip_code'], + }; +} diff --git a/dist/esm/models/V3Addressee.d.ts b/dist/esm/models/V3Addressee.d.ts new file mode 100644 index 0000000..d1f1acd --- /dev/null +++ b/dist/esm/models/V3Addressee.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контактные данные получателя. + * @export + * @interface V3Addressee + */ +export interface V3Addressee { + /** + * Имя покупателя. + * @type {string} + * @memberof V3Addressee + */ + name?: string; + /** + * Подменный контактный телефон получателя. + * + * [Подробнее о подменных номерах в Базе знаний](https://seller-edu.ozon.ru/rfbs/orders-cancellations/replacement-number) + * + * @type {string} + * @memberof V3Addressee + */ + phone?: string; + /** + * Добавочный номер телефона получателя, вводится в тональном режиме. Только для отправлений realFBS со службами доставки: + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ. + * - `non_integrated` — доставка силами продавца. + * + * @type {string} + * @memberof V3Addressee + */ + pin?: string; +} +/** + * Check if a given object implements the V3Addressee interface. + */ +export declare function instanceOfV3Addressee(value: object): value is V3Addressee; +export declare function V3AddresseeFromJSON(json: any): V3Addressee; +export declare function V3AddresseeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Addressee; +export declare function V3AddresseeToJSON(value?: V3Addressee | null): any; diff --git a/dist/esm/models/V3Addressee.js b/dist/esm/models/V3Addressee.js new file mode 100644 index 0000000..1e53fc7 --- /dev/null +++ b/dist/esm/models/V3Addressee.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3Addressee interface. + */ +export function instanceOfV3Addressee(value) { + return true; +} +export function V3AddresseeFromJSON(json) { + return V3AddresseeFromJSONTyped(json, false); +} +export function V3AddresseeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'pin': json['pin'] == null ? undefined : json['pin'], + }; +} +export function V3AddresseeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'phone': value['phone'], + 'pin': value['pin'], + }; +} diff --git a/dist/esm/models/V3AddresseeFbsLists.d.ts b/dist/esm/models/V3AddresseeFbsLists.d.ts new file mode 100644 index 0000000..b018f17 --- /dev/null +++ b/dist/esm/models/V3AddresseeFbsLists.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контактные данные получателя. + * @export + * @interface V3AddresseeFbsLists + */ +export interface V3AddresseeFbsLists { + /** + * Имя покупателя. + * @type {string} + * @memberof V3AddresseeFbsLists + */ + name?: string; + /** + * Контактный телефон получателя. Всегда возвращает пустую строку `""`. Чтобы получить подменный номер телефона, используйте метод [/v3/posting/fbs/get](#operation/PostingAPI_GetFbsPostingV3). + * + * @type {string} + * @memberof V3AddresseeFbsLists + */ + phone?: string; +} +/** + * Check if a given object implements the V3AddresseeFbsLists interface. + */ +export declare function instanceOfV3AddresseeFbsLists(value: object): value is V3AddresseeFbsLists; +export declare function V3AddresseeFbsListsFromJSON(json: any): V3AddresseeFbsLists; +export declare function V3AddresseeFbsListsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3AddresseeFbsLists; +export declare function V3AddresseeFbsListsToJSON(value?: V3AddresseeFbsLists | null): any; diff --git a/dist/esm/models/V3AddresseeFbsLists.js b/dist/esm/models/V3AddresseeFbsLists.js new file mode 100644 index 0000000..1fea3c1 --- /dev/null +++ b/dist/esm/models/V3AddresseeFbsLists.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3AddresseeFbsLists interface. + */ +export function instanceOfV3AddresseeFbsLists(value) { + return true; +} +export function V3AddresseeFbsListsFromJSON(json) { + return V3AddresseeFbsListsFromJSONTyped(json, false); +} +export function V3AddresseeFbsListsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +export function V3AddresseeFbsListsToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/esm/models/V3Barcodes.d.ts b/dist/esm/models/V3Barcodes.d.ts new file mode 100644 index 0000000..fb53283 --- /dev/null +++ b/dist/esm/models/V3Barcodes.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Штрихкоды отправления. + * @export + * @interface V3Barcodes + */ +export interface V3Barcodes { + /** + * Нижний штрихкод на маркировке отправления. + * @type {string} + * @memberof V3Barcodes + */ + lower_barcode?: string; + /** + * Верхний штрихкод на маркировке отправления. + * @type {string} + * @memberof V3Barcodes + */ + upper_barcode?: string; +} +/** + * Check if a given object implements the V3Barcodes interface. + */ +export declare function instanceOfV3Barcodes(value: object): value is V3Barcodes; +export declare function V3BarcodesFromJSON(json: any): V3Barcodes; +export declare function V3BarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Barcodes; +export declare function V3BarcodesToJSON(value?: V3Barcodes | null): any; diff --git a/dist/esm/models/V3Barcodes.js b/dist/esm/models/V3Barcodes.js new file mode 100644 index 0000000..693a0be --- /dev/null +++ b/dist/esm/models/V3Barcodes.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3Barcodes interface. + */ +export function instanceOfV3Barcodes(value) { + return true; +} +export function V3BarcodesFromJSON(json) { + return V3BarcodesFromJSONTyped(json, false); +} +export function V3BarcodesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lower_barcode': json['lower_barcode'] == null ? undefined : json['lower_barcode'], + 'upper_barcode': json['upper_barcode'] == null ? undefined : json['upper_barcode'], + }; +} +export function V3BarcodesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lower_barcode': value['lower_barcode'], + 'upper_barcode': value['upper_barcode'], + }; +} diff --git a/dist/esm/models/V3Cancellation.d.ts b/dist/esm/models/V3Cancellation.d.ts new file mode 100644 index 0000000..ab20e0c --- /dev/null +++ b/dist/esm/models/V3Cancellation.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface V3Cancellation + */ +export interface V3Cancellation { + /** + * Если отмена влияет на рейтинг продавца — `true`. + * @type {boolean} + * @memberof V3Cancellation + */ + affect_cancellation_rating?: boolean; + /** + * Причина отмены. + * @type {string} + * @memberof V3Cancellation + */ + cancel_reason?: string; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof V3Cancellation + */ + cancel_reason_id?: number; + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент` или `покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof V3Cancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены отправления: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system`— отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof V3Cancellation + */ + cancellation_type?: string; + /** + * Если отмена произошла после сборки отправления — `true`. + * @type {boolean} + * @memberof V3Cancellation + */ + cancelled_after_ship?: boolean; +} +/** + * Check if a given object implements the V3Cancellation interface. + */ +export declare function instanceOfV3Cancellation(value: object): value is V3Cancellation; +export declare function V3CancellationFromJSON(json: any): V3Cancellation; +export declare function V3CancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Cancellation; +export declare function V3CancellationToJSON(value?: V3Cancellation | null): any; diff --git a/dist/esm/models/V3Cancellation.js b/dist/esm/models/V3Cancellation.js new file mode 100644 index 0000000..b848f98 --- /dev/null +++ b/dist/esm/models/V3Cancellation.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3Cancellation interface. + */ +export function instanceOfV3Cancellation(value) { + return true; +} +export function V3CancellationFromJSON(json) { + return V3CancellationFromJSONTyped(json, false); +} +export function V3CancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'affect_cancellation_rating': json['affect_cancellation_rating'] == null ? undefined : json['affect_cancellation_rating'], + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + 'cancelled_after_ship': json['cancelled_after_ship'] == null ? undefined : json['cancelled_after_ship'], + }; +} +export function V3CancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'affect_cancellation_rating': value['affect_cancellation_rating'], + 'cancel_reason': value['cancel_reason'], + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + 'cancelled_after_ship': value['cancelled_after_ship'], + }; +} diff --git a/dist/esm/models/V3ChatDetailsInfo.d.ts b/dist/esm/models/V3ChatDetailsInfo.d.ts new file mode 100644 index 0000000..ab5966c --- /dev/null +++ b/dist/esm/models/V3ChatDetailsInfo.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChatInfoChatTypeEnum } from './ChatInfoChatTypeEnum'; +import type { ChatInfoChatStatusEnum } from './ChatInfoChatStatusEnum'; +/** + * Информация о чате. + * @export + * @interface V3ChatDetailsInfo + */ +export interface V3ChatDetailsInfo { + /** + * Дата создания чата. + * @type {string} + * @memberof V3ChatDetailsInfo + */ + created_at?: string; + /** + * Идентификатор чата. + * @type {string} + * @memberof V3ChatDetailsInfo + */ + chat_id?: string; + /** + * + * @type {ChatInfoChatStatusEnum} + * @memberof V3ChatDetailsInfo + */ + chat_status?: ChatInfoChatStatusEnum; + /** + * + * @type {ChatInfoChatTypeEnum} + * @memberof V3ChatDetailsInfo + */ + chat_type?: ChatInfoChatTypeEnum; +} +/** + * Check if a given object implements the V3ChatDetailsInfo interface. + */ +export declare function instanceOfV3ChatDetailsInfo(value: object): value is V3ChatDetailsInfo; +export declare function V3ChatDetailsInfoFromJSON(json: any): V3ChatDetailsInfo; +export declare function V3ChatDetailsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatDetailsInfo; +export declare function V3ChatDetailsInfoToJSON(value?: V3ChatDetailsInfo | null): any; diff --git a/dist/esm/models/V3ChatDetailsInfo.js b/dist/esm/models/V3ChatDetailsInfo.js new file mode 100644 index 0000000..3584dd1 --- /dev/null +++ b/dist/esm/models/V3ChatDetailsInfo.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ChatInfoChatTypeEnumFromJSON, ChatInfoChatTypeEnumToJSON, } from './ChatInfoChatTypeEnum'; +import { ChatInfoChatStatusEnumFromJSON, ChatInfoChatStatusEnumToJSON, } from './ChatInfoChatStatusEnum'; +/** + * Check if a given object implements the V3ChatDetailsInfo interface. + */ +export function instanceOfV3ChatDetailsInfo(value) { + return true; +} +export function V3ChatDetailsInfoFromJSON(json) { + return V3ChatDetailsInfoFromJSONTyped(json, false); +} +export function V3ChatDetailsInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'chat_id': json['chat_id'] == null ? undefined : json['chat_id'], + 'chat_status': json['chat_status'] == null ? undefined : ChatInfoChatStatusEnumFromJSON(json['chat_status']), + 'chat_type': json['chat_type'] == null ? undefined : ChatInfoChatTypeEnumFromJSON(json['chat_type']), + }; +} +export function V3ChatDetailsInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'chat_id': value['chat_id'], + 'chat_status': ChatInfoChatStatusEnumToJSON(value['chat_status']), + 'chat_type': ChatInfoChatTypeEnumToJSON(value['chat_type']), + }; +} diff --git a/dist/esm/models/V3ChatHistoryRequest.d.ts b/dist/esm/models/V3ChatHistoryRequest.d.ts new file mode 100644 index 0000000..4edc26b --- /dev/null +++ b/dist/esm/models/V3ChatHistoryRequest.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChatHistoryRequestFilter } from './ChatHistoryRequestFilter'; +/** + * + * @export + * @interface V3ChatHistoryRequest + */ +export interface V3ChatHistoryRequest { + /** + * Идентификатор чата. + * @type {string} + * @memberof V3ChatHistoryRequest + */ + chat_id: string; + /** + * Направление сортировки сообщений: + * - `Forward` — от старых к новым. + * - `Backward` — от новых к старым. + * + * Значение по умолчанию — `Backward`. Количество сообщений можно установить в параметре `limit`. + * + * @type {string} + * @memberof V3ChatHistoryRequest + */ + direction?: string; + /** + * + * @type {ChatHistoryRequestFilter} + * @memberof V3ChatHistoryRequest + */ + filter?: ChatHistoryRequestFilter; + /** + * Идентификатор сообщения, с которого нужно начать вывод истории чата. По умолчанию — последнее видимое сообщение. + * + * Параметр `from_message_id` обязательный, если `direction = Forward`. + * + * @type {number} + * @memberof V3ChatHistoryRequest + */ + from_message_id?: number; + /** + * Количество сообщений в ответе. По умолчанию — 50. Максимальное значение — 1000. + * @type {number} + * @memberof V3ChatHistoryRequest + */ + limit?: number; +} +/** + * Check if a given object implements the V3ChatHistoryRequest interface. + */ +export declare function instanceOfV3ChatHistoryRequest(value: object): value is V3ChatHistoryRequest; +export declare function V3ChatHistoryRequestFromJSON(json: any): V3ChatHistoryRequest; +export declare function V3ChatHistoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatHistoryRequest; +export declare function V3ChatHistoryRequestToJSON(value?: V3ChatHistoryRequest | null): any; diff --git a/dist/esm/models/V3ChatHistoryRequest.js b/dist/esm/models/V3ChatHistoryRequest.js new file mode 100644 index 0000000..d590868 --- /dev/null +++ b/dist/esm/models/V3ChatHistoryRequest.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ChatHistoryRequestFilterFromJSON, ChatHistoryRequestFilterToJSON, } from './ChatHistoryRequestFilter'; +/** + * Check if a given object implements the V3ChatHistoryRequest interface. + */ +export function instanceOfV3ChatHistoryRequest(value) { + if (!('chat_id' in value) || value['chat_id'] === undefined) + return false; + return true; +} +export function V3ChatHistoryRequestFromJSON(json) { + return V3ChatHistoryRequestFromJSONTyped(json, false); +} +export function V3ChatHistoryRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_id': json['chat_id'], + 'direction': json['direction'] == null ? undefined : json['direction'], + 'filter': json['filter'] == null ? undefined : ChatHistoryRequestFilterFromJSON(json['filter']), + 'from_message_id': json['from_message_id'] == null ? undefined : json['from_message_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + }; +} +export function V3ChatHistoryRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_id': value['chat_id'], + 'direction': value['direction'], + 'filter': ChatHistoryRequestFilterToJSON(value['filter']), + 'from_message_id': value['from_message_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V3ChatHistoryResponse.d.ts b/dist/esm/models/V3ChatHistoryResponse.d.ts new file mode 100644 index 0000000..506bddf --- /dev/null +++ b/dist/esm/models/V3ChatHistoryResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatMessage } from './V3ChatMessage'; +/** + * + * @export + * @interface V3ChatHistoryResponse + */ +export interface V3ChatHistoryResponse { + /** + * Признак, что в ответе вернули не все сообщения. + * @type {boolean} + * @memberof V3ChatHistoryResponse + */ + has_next?: boolean; + /** + * Массив сообщений, отсортированный в соответствии с параметром `direction` из тела запроса. + * @type {Array} + * @memberof V3ChatHistoryResponse + */ + messages?: Array; +} +/** + * Check if a given object implements the V3ChatHistoryResponse interface. + */ +export declare function instanceOfV3ChatHistoryResponse(value: object): value is V3ChatHistoryResponse; +export declare function V3ChatHistoryResponseFromJSON(json: any): V3ChatHistoryResponse; +export declare function V3ChatHistoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatHistoryResponse; +export declare function V3ChatHistoryResponseToJSON(value?: V3ChatHistoryResponse | null): any; diff --git a/dist/esm/models/V3ChatHistoryResponse.js b/dist/esm/models/V3ChatHistoryResponse.js new file mode 100644 index 0000000..5135825 --- /dev/null +++ b/dist/esm/models/V3ChatHistoryResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ChatMessageFromJSON, V3ChatMessageToJSON, } from './V3ChatMessage'; +/** + * Check if a given object implements the V3ChatHistoryResponse interface. + */ +export function instanceOfV3ChatHistoryResponse(value) { + return true; +} +export function V3ChatHistoryResponseFromJSON(json) { + return V3ChatHistoryResponseFromJSONTyped(json, false); +} +export function V3ChatHistoryResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'messages': json['messages'] == null ? undefined : (json['messages'].map(V3ChatMessageFromJSON)), + }; +} +export function V3ChatHistoryResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'messages': value['messages'] == null ? undefined : (value['messages'].map(V3ChatMessageToJSON)), + }; +} diff --git a/dist/esm/models/V3ChatInfo.d.ts b/dist/esm/models/V3ChatInfo.d.ts new file mode 100644 index 0000000..b3258f3 --- /dev/null +++ b/dist/esm/models/V3ChatInfo.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatDetailsInfo } from './V3ChatDetailsInfo'; +/** + * + * @export + * @interface V3ChatInfo + */ +export interface V3ChatInfo { + /** + * + * @type {V3ChatDetailsInfo} + * @memberof V3ChatInfo + */ + chat?: V3ChatDetailsInfo; + /** + * Идентификатор первого непрочитанного сообщения в чате. + * @type {number} + * @memberof V3ChatInfo + */ + first_unread_message_id?: number; + /** + * Идентификатор последнего сообщения в чате. + * @type {number} + * @memberof V3ChatInfo + */ + last_message_id?: number; + /** + * Количество непрочитанных сообщений в чате. + * @type {number} + * @memberof V3ChatInfo + */ + unread_count?: number; +} +/** + * Check if a given object implements the V3ChatInfo interface. + */ +export declare function instanceOfV3ChatInfo(value: object): value is V3ChatInfo; +export declare function V3ChatInfoFromJSON(json: any): V3ChatInfo; +export declare function V3ChatInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatInfo; +export declare function V3ChatInfoToJSON(value?: V3ChatInfo | null): any; diff --git a/dist/esm/models/V3ChatInfo.js b/dist/esm/models/V3ChatInfo.js new file mode 100644 index 0000000..8b7ad89 --- /dev/null +++ b/dist/esm/models/V3ChatInfo.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ChatDetailsInfoFromJSON, V3ChatDetailsInfoToJSON, } from './V3ChatDetailsInfo'; +/** + * Check if a given object implements the V3ChatInfo interface. + */ +export function instanceOfV3ChatInfo(value) { + return true; +} +export function V3ChatInfoFromJSON(json) { + return V3ChatInfoFromJSONTyped(json, false); +} +export function V3ChatInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat': json['chat'] == null ? undefined : V3ChatDetailsInfoFromJSON(json['chat']), + 'first_unread_message_id': json['first_unread_message_id'] == null ? undefined : json['first_unread_message_id'], + 'last_message_id': json['last_message_id'] == null ? undefined : json['last_message_id'], + 'unread_count': json['unread_count'] == null ? undefined : json['unread_count'], + }; +} +export function V3ChatInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat': V3ChatDetailsInfoToJSON(value['chat']), + 'first_unread_message_id': value['first_unread_message_id'], + 'last_message_id': value['last_message_id'], + 'unread_count': value['unread_count'], + }; +} diff --git a/dist/esm/models/V3ChatList.d.ts b/dist/esm/models/V3ChatList.d.ts new file mode 100644 index 0000000..91e88eb --- /dev/null +++ b/dist/esm/models/V3ChatList.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatListRequestFilter } from './V3ChatListRequestFilter'; +/** + * + * @export + * @interface V3ChatList + */ +export interface V3ChatList { + /** + * + * @type {V3ChatListRequestFilter} + * @memberof V3ChatList + */ + filter?: V3ChatListRequestFilter; + /** + * Количество значений в ответе. Значение по умолчанию — 30. Максимальное значение — 100. + * @type {number} + * @memberof V3ChatList + */ + limit: number; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V3ChatList + */ + cursor?: string; +} +/** + * Check if a given object implements the V3ChatList interface. + */ +export declare function instanceOfV3ChatList(value: object): value is V3ChatList; +export declare function V3ChatListFromJSON(json: any): V3ChatList; +export declare function V3ChatListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatList; +export declare function V3ChatListToJSON(value?: V3ChatList | null): any; diff --git a/dist/esm/models/V3ChatList.js b/dist/esm/models/V3ChatList.js new file mode 100644 index 0000000..eef6d2e --- /dev/null +++ b/dist/esm/models/V3ChatList.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ChatListRequestFilterFromJSON, V3ChatListRequestFilterToJSON, } from './V3ChatListRequestFilter'; +/** + * Check if a given object implements the V3ChatList interface. + */ +export function instanceOfV3ChatList(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V3ChatListFromJSON(json) { + return V3ChatListFromJSONTyped(json, false); +} +export function V3ChatListFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : V3ChatListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + }; +} +export function V3ChatListToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': V3ChatListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'cursor': value['cursor'], + }; +} diff --git a/dist/esm/models/V3ChatListRequestFilter.d.ts b/dist/esm/models/V3ChatListRequestFilter.d.ts new file mode 100644 index 0000000..af28ca0 --- /dev/null +++ b/dist/esm/models/V3ChatListRequestFilter.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatListRequestFilterChatStatus } from './V3ChatListRequestFilterChatStatus'; +/** + * Фильтр по чатам. + * @export + * @interface V3ChatListRequestFilter + */ +export interface V3ChatListRequestFilter { + /** + * + * @type {V3ChatListRequestFilterChatStatus} + * @memberof V3ChatListRequestFilter + */ + chat_status?: V3ChatListRequestFilterChatStatus; + /** + * Фильтр по чатам с непрочитанными сообщениями. + * @type {boolean} + * @memberof V3ChatListRequestFilter + */ + unread_only?: boolean; +} +/** + * Check if a given object implements the V3ChatListRequestFilter interface. + */ +export declare function instanceOfV3ChatListRequestFilter(value: object): value is V3ChatListRequestFilter; +export declare function V3ChatListRequestFilterFromJSON(json: any): V3ChatListRequestFilter; +export declare function V3ChatListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatListRequestFilter; +export declare function V3ChatListRequestFilterToJSON(value?: V3ChatListRequestFilter | null): any; diff --git a/dist/esm/models/V3ChatListRequestFilter.js b/dist/esm/models/V3ChatListRequestFilter.js new file mode 100644 index 0000000..4d2f55f --- /dev/null +++ b/dist/esm/models/V3ChatListRequestFilter.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ChatListRequestFilterChatStatusFromJSON, V3ChatListRequestFilterChatStatusToJSON, } from './V3ChatListRequestFilterChatStatus'; +/** + * Check if a given object implements the V3ChatListRequestFilter interface. + */ +export function instanceOfV3ChatListRequestFilter(value) { + return true; +} +export function V3ChatListRequestFilterFromJSON(json) { + return V3ChatListRequestFilterFromJSONTyped(json, false); +} +export function V3ChatListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_status': json['chat_status'] == null ? undefined : V3ChatListRequestFilterChatStatusFromJSON(json['chat_status']), + 'unread_only': json['unread_only'] == null ? undefined : json['unread_only'], + }; +} +export function V3ChatListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_status': V3ChatListRequestFilterChatStatusToJSON(value['chat_status']), + 'unread_only': value['unread_only'], + }; +} diff --git a/dist/esm/models/V3ChatListRequestFilterChatStatus.d.ts b/dist/esm/models/V3ChatListRequestFilterChatStatus.d.ts new file mode 100644 index 0000000..3631b35 --- /dev/null +++ b/dist/esm/models/V3ChatListRequestFilterChatStatus.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по статусу чата: + * - `All` — все чаты; + * - `Opened` — открытые чаты; + * - `Closed` — закрытые чаты. + * + * @export + */ +export declare const V3ChatListRequestFilterChatStatus: { + readonly ALL: "ALL"; + readonly OPENED: "OPENED"; + readonly CLOSED: "CLOSED"; +}; +export type V3ChatListRequestFilterChatStatus = typeof V3ChatListRequestFilterChatStatus[keyof typeof V3ChatListRequestFilterChatStatus]; +export declare function instanceOfV3ChatListRequestFilterChatStatus(value: any): boolean; +export declare function V3ChatListRequestFilterChatStatusFromJSON(json: any): V3ChatListRequestFilterChatStatus; +export declare function V3ChatListRequestFilterChatStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatListRequestFilterChatStatus; +export declare function V3ChatListRequestFilterChatStatusToJSON(value?: V3ChatListRequestFilterChatStatus | null): any; diff --git a/dist/esm/models/V3ChatListRequestFilterChatStatus.js b/dist/esm/models/V3ChatListRequestFilterChatStatus.js new file mode 100644 index 0000000..89ddac3 --- /dev/null +++ b/dist/esm/models/V3ChatListRequestFilterChatStatus.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по статусу чата: + * - `All` — все чаты; + * - `Opened` — открытые чаты; + * - `Closed` — закрытые чаты. + * + * @export + */ +export const V3ChatListRequestFilterChatStatus = { + ALL: 'ALL', + OPENED: 'OPENED', + CLOSED: 'CLOSED' +}; +export function instanceOfV3ChatListRequestFilterChatStatus(value) { + for (const key in V3ChatListRequestFilterChatStatus) { + if (Object.prototype.hasOwnProperty.call(V3ChatListRequestFilterChatStatus, key)) { + if (V3ChatListRequestFilterChatStatus[key] === value) { + return true; + } + } + } + return false; +} +export function V3ChatListRequestFilterChatStatusFromJSON(json) { + return V3ChatListRequestFilterChatStatusFromJSONTyped(json, false); +} +export function V3ChatListRequestFilterChatStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V3ChatListRequestFilterChatStatusToJSON(value) { + return value; +} diff --git a/dist/esm/models/V3ChatListResponse.d.ts b/dist/esm/models/V3ChatListResponse.d.ts new file mode 100644 index 0000000..2e641cd --- /dev/null +++ b/dist/esm/models/V3ChatListResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatInfo } from './V3ChatInfo'; +/** + * + * @export + * @interface V3ChatListResponse + */ +export interface V3ChatListResponse { + /** + * Данные чатов. + * @type {Array} + * @memberof V3ChatListResponse + */ + chats?: Array; + /** + * Общее количество непрочитанных сообщений. + * @type {number} + * @memberof V3ChatListResponse + */ + total_unread_count?: number; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V3ChatListResponse + */ + cursor?: string; + /** + * Признак, что в ответе вернулись не все чаты: + * - `true` — сделайте повторный запрос с новым параметром `cursor` для получения остальных чатов; + * - `false` — ответ содержит все чаты для фильтра, который был задан в запросе. + * + * @type {boolean} + * @memberof V3ChatListResponse + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V3ChatListResponse interface. + */ +export declare function instanceOfV3ChatListResponse(value: object): value is V3ChatListResponse; +export declare function V3ChatListResponseFromJSON(json: any): V3ChatListResponse; +export declare function V3ChatListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatListResponse; +export declare function V3ChatListResponseToJSON(value?: V3ChatListResponse | null): any; diff --git a/dist/esm/models/V3ChatListResponse.js b/dist/esm/models/V3ChatListResponse.js new file mode 100644 index 0000000..daf021e --- /dev/null +++ b/dist/esm/models/V3ChatListResponse.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ChatInfoFromJSON, V3ChatInfoToJSON, } from './V3ChatInfo'; +/** + * Check if a given object implements the V3ChatListResponse interface. + */ +export function instanceOfV3ChatListResponse(value) { + return true; +} +export function V3ChatListResponseFromJSON(json) { + return V3ChatListResponseFromJSONTyped(json, false); +} +export function V3ChatListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chats': json['chats'] == null ? undefined : (json['chats'].map(V3ChatInfoFromJSON)), + 'total_unread_count': json['total_unread_count'] == null ? undefined : json['total_unread_count'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +export function V3ChatListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'chats': value['chats'] == null ? undefined : (value['chats'].map(V3ChatInfoToJSON)), + 'total_unread_count': value['total_unread_count'], + 'cursor': value['cursor'], + 'has_next': value['has_next'], + }; +} diff --git a/dist/esm/models/V3ChatMessage.d.ts b/dist/esm/models/V3ChatMessage.d.ts new file mode 100644 index 0000000..aa594d9 --- /dev/null +++ b/dist/esm/models/V3ChatMessage.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChatMessageContext } from './ChatMessageContext'; +import type { ChatMessageModerateImageStatus } from './ChatMessageModerateImageStatus'; +import type { V3User } from './V3User'; +/** + * + * @export + * @interface V3ChatMessage + */ +export interface V3ChatMessage { + /** + * + * @type {ChatMessageContext} + * @memberof V3ChatMessage + */ + context?: ChatMessageContext; + /** + * Дата создания сообщения. + * @type {string} + * @memberof V3ChatMessage + */ + created_at?: string; + /** + * Массив с содержимым сообщения в формате Markdown. + * @type {Array} + * @memberof V3ChatMessage + */ + data?: Array; + /** + * Признак, что сообщение содержит изображение. + * @type {boolean} + * @memberof V3ChatMessage + */ + is_image?: boolean; + /** + * Признак, что сообщение прочитано. + * @type {boolean} + * @memberof V3ChatMessage + */ + is_read?: boolean; + /** + * Идентификатор сообщения. + * @type {number} + * @memberof V3ChatMessage + */ + message_id?: number; + /** + * + * @type {ChatMessageModerateImageStatus} + * @memberof V3ChatMessage + */ + moderate_image_status?: ChatMessageModerateImageStatus; + /** + * + * @type {V3User} + * @memberof V3ChatMessage + */ + user?: V3User; +} +/** + * Check if a given object implements the V3ChatMessage interface. + */ +export declare function instanceOfV3ChatMessage(value: object): value is V3ChatMessage; +export declare function V3ChatMessageFromJSON(json: any): V3ChatMessage; +export declare function V3ChatMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatMessage; +export declare function V3ChatMessageToJSON(value?: V3ChatMessage | null): any; diff --git a/dist/esm/models/V3ChatMessage.js b/dist/esm/models/V3ChatMessage.js new file mode 100644 index 0000000..9acc653 --- /dev/null +++ b/dist/esm/models/V3ChatMessage.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ChatMessageContextFromJSON, ChatMessageContextToJSON, } from './ChatMessageContext'; +import { ChatMessageModerateImageStatusFromJSON, ChatMessageModerateImageStatusToJSON, } from './ChatMessageModerateImageStatus'; +import { V3UserFromJSON, V3UserToJSON, } from './V3User'; +/** + * Check if a given object implements the V3ChatMessage interface. + */ +export function instanceOfV3ChatMessage(value) { + return true; +} +export function V3ChatMessageFromJSON(json) { + return V3ChatMessageFromJSONTyped(json, false); +} +export function V3ChatMessageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'context': json['context'] == null ? undefined : ChatMessageContextFromJSON(json['context']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'data': json['data'] == null ? undefined : json['data'], + 'is_image': json['is_image'] == null ? undefined : json['is_image'], + 'is_read': json['is_read'] == null ? undefined : json['is_read'], + 'message_id': json['message_id'] == null ? undefined : json['message_id'], + 'moderate_image_status': json['moderate_image_status'] == null ? undefined : ChatMessageModerateImageStatusFromJSON(json['moderate_image_status']), + 'user': json['user'] == null ? undefined : V3UserFromJSON(json['user']), + }; +} +export function V3ChatMessageToJSON(value) { + if (value == null) { + return value; + } + return { + 'context': ChatMessageContextToJSON(value['context']), + 'created_at': value['created_at'], + 'data': value['data'], + 'is_image': value['is_image'], + 'is_read': value['is_read'], + 'message_id': value['message_id'], + 'moderate_image_status': ChatMessageModerateImageStatusToJSON(value['moderate_image_status']), + 'user': V3UserToJSON(value['user']), + }; +} diff --git a/dist/esm/models/V3Customer.d.ts b/dist/esm/models/V3Customer.d.ts new file mode 100644 index 0000000..e8cbaaf --- /dev/null +++ b/dist/esm/models/V3Customer.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3Address } from './V3Address'; +/** + * Данные о покупателе. + * @export + * @interface V3Customer + */ +export interface V3Customer { + /** + * + * @type {V3Address} + * @memberof V3Customer + */ + address?: V3Address; + /** + * Идентификатор покупателя. + * @type {number} + * @memberof V3Customer + */ + customer_id?: number; + /** + * Имя покупателя. + * @type {string} + * @memberof V3Customer + */ + name?: string; + /** + * Подменный контактный телефон покупателя. + * + * [Подробнее о подменных номерах в Базе знаний](https://seller-edu.ozon.ru/rfbs/orders-cancellations/replacement-number) + * + * @type {string} + * @memberof V3Customer + */ + phone?: string; +} +/** + * Check if a given object implements the V3Customer interface. + */ +export declare function instanceOfV3Customer(value: object): value is V3Customer; +export declare function V3CustomerFromJSON(json: any): V3Customer; +export declare function V3CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Customer; +export declare function V3CustomerToJSON(value?: V3Customer | null): any; diff --git a/dist/esm/models/V3Customer.js b/dist/esm/models/V3Customer.js new file mode 100644 index 0000000..df0ce77 --- /dev/null +++ b/dist/esm/models/V3Customer.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3AddressFromJSON, V3AddressToJSON, } from './V3Address'; +/** + * Check if a given object implements the V3Customer interface. + */ +export function instanceOfV3Customer(value) { + return true; +} +export function V3CustomerFromJSON(json) { + return V3CustomerFromJSONTyped(json, false); +} +export function V3CustomerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : V3AddressFromJSON(json['address']), + 'customer_id': json['customer_id'] == null ? undefined : json['customer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +export function V3CustomerToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': V3AddressToJSON(value['address']), + 'customer_id': value['customer_id'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/esm/models/V3CustomerFbsLists.d.ts b/dist/esm/models/V3CustomerFbsLists.d.ts new file mode 100644 index 0000000..683488c --- /dev/null +++ b/dist/esm/models/V3CustomerFbsLists.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3Address } from './V3Address'; +/** + * Данные о покупателе. + * @export + * @interface V3CustomerFbsLists + */ +export interface V3CustomerFbsLists { + /** + * + * @type {V3Address} + * @memberof V3CustomerFbsLists + */ + address?: V3Address; + /** + * Электронный адрес покупателя. + * @type {string} + * @memberof V3CustomerFbsLists + */ + customer_email?: string; + /** + * Идентификатор покупателя. + * @type {number} + * @memberof V3CustomerFbsLists + */ + customer_id?: number; + /** + * Имя покупателя. + * @type {string} + * @memberof V3CustomerFbsLists + */ + name?: string; + /** + * Контактный телефон покупателя. Всегда возвращает пустую строку `""`. Чтобы получить подменный номер телефона, используйте метод [/v3/posting/fbs/get](#operation/PostingAPI_GetFbsPostingV3). + * + * @type {string} + * @memberof V3CustomerFbsLists + */ + phone?: string; +} +/** + * Check if a given object implements the V3CustomerFbsLists interface. + */ +export declare function instanceOfV3CustomerFbsLists(value: object): value is V3CustomerFbsLists; +export declare function V3CustomerFbsListsFromJSON(json: any): V3CustomerFbsLists; +export declare function V3CustomerFbsListsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3CustomerFbsLists; +export declare function V3CustomerFbsListsToJSON(value?: V3CustomerFbsLists | null): any; diff --git a/dist/esm/models/V3CustomerFbsLists.js b/dist/esm/models/V3CustomerFbsLists.js new file mode 100644 index 0000000..db6f529 --- /dev/null +++ b/dist/esm/models/V3CustomerFbsLists.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3AddressFromJSON, V3AddressToJSON, } from './V3Address'; +/** + * Check if a given object implements the V3CustomerFbsLists interface. + */ +export function instanceOfV3CustomerFbsLists(value) { + return true; +} +export function V3CustomerFbsListsFromJSON(json) { + return V3CustomerFbsListsFromJSONTyped(json, false); +} +export function V3CustomerFbsListsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : V3AddressFromJSON(json['address']), + 'customer_email': json['customer_email'] == null ? undefined : json['customer_email'], + 'customer_id': json['customer_id'] == null ? undefined : json['customer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +export function V3CustomerFbsListsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': V3AddressToJSON(value['address']), + 'customer_email': value['customer_email'], + 'customer_id': value['customer_id'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/esm/models/V3DeliveryMethod.d.ts b/dist/esm/models/V3DeliveryMethod.d.ts new file mode 100644 index 0000000..45d8629 --- /dev/null +++ b/dist/esm/models/V3DeliveryMethod.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метод доставки. + * @export + * @interface V3DeliveryMethod + */ +export interface V3DeliveryMethod { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof V3DeliveryMethod + */ + id?: number; + /** + * Название способа доставки. + * @type {string} + * @memberof V3DeliveryMethod + */ + name?: string; + /** + * Служба доставки. + * @type {string} + * @memberof V3DeliveryMethod + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof V3DeliveryMethod + */ + tpl_provider_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V3DeliveryMethod + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V3DeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V3DeliveryMethod interface. + */ +export declare function instanceOfV3DeliveryMethod(value: object): value is V3DeliveryMethod; +export declare function V3DeliveryMethodFromJSON(json: any): V3DeliveryMethod; +export declare function V3DeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3DeliveryMethod; +export declare function V3DeliveryMethodToJSON(value?: V3DeliveryMethod | null): any; diff --git a/dist/esm/models/V3DeliveryMethod.js b/dist/esm/models/V3DeliveryMethod.js new file mode 100644 index 0000000..b1e10fe --- /dev/null +++ b/dist/esm/models/V3DeliveryMethod.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3DeliveryMethod interface. + */ +export function instanceOfV3DeliveryMethod(value) { + return true; +} +export function V3DeliveryMethodFromJSON(json) { + return V3DeliveryMethodFromJSONTyped(json, false); +} +export function V3DeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function V3DeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/V3Dimensions.d.ts b/dist/esm/models/V3Dimensions.d.ts new file mode 100644 index 0000000..556796b --- /dev/null +++ b/dist/esm/models/V3Dimensions.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Размеры товара. + * @export + * @interface V3Dimensions + */ +export interface V3Dimensions { + /** + * Высота упаковки. + * @type {string} + * @memberof V3Dimensions + */ + height?: string; + /** + * Длина товара. + * @type {string} + * @memberof V3Dimensions + */ + length?: string; + /** + * Вес товара в упаковке. + * @type {string} + * @memberof V3Dimensions + */ + weight?: string; + /** + * Ширина упаковки. + * @type {string} + * @memberof V3Dimensions + */ + width?: string; +} +/** + * Check if a given object implements the V3Dimensions interface. + */ +export declare function instanceOfV3Dimensions(value: object): value is V3Dimensions; +export declare function V3DimensionsFromJSON(json: any): V3Dimensions; +export declare function V3DimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Dimensions; +export declare function V3DimensionsToJSON(value?: V3Dimensions | null): any; diff --git a/dist/esm/models/V3Dimensions.js b/dist/esm/models/V3Dimensions.js new file mode 100644 index 0000000..cffef07 --- /dev/null +++ b/dist/esm/models/V3Dimensions.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3Dimensions interface. + */ +export function instanceOfV3Dimensions(value) { + return true; +} +export function V3DimensionsFromJSON(json) { + return V3DimensionsFromJSONTyped(json, false); +} +export function V3DimensionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'length': json['length'] == null ? undefined : json['length'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function V3DimensionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'length': value['length'], + 'weight': value['weight'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/V3FbsPosting.d.ts b/dist/esm/models/V3FbsPosting.d.ts new file mode 100644 index 0000000..ea9d5c0 --- /dev/null +++ b/dist/esm/models/V3FbsPosting.d.ts @@ -0,0 +1,383 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3CustomerFbsLists } from './V3CustomerFbsLists'; +import type { V3FbsPostingRequirementsV3 } from './V3FbsPostingRequirementsV3'; +import type { PostingV3FbsPostingSortingCenter } from './PostingV3FbsPostingSortingCenter'; +import type { V2FboSinglePostingLegalInfo } from './V2FboSinglePostingLegalInfo'; +import type { PostingV4PostingFbsListResponsePostingsTarifficationStep } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import type { V3PostingFinancialData } from './V3PostingFinancialData'; +import type { V3FbsTariffication } from './V3FbsTariffication'; +import type { V3FbsPostingAnalyticsData } from './V3FbsPostingAnalyticsData'; +import type { V3Barcodes } from './V3Barcodes'; +import type { V3Cancellation } from './V3Cancellation'; +import type { V3FbsPostingDetailOptional } from './V3FbsPostingDetailOptional'; +import type { PostingV4PostingFbsListResponsePostingsContainer } from './PostingV4PostingFbsListResponsePostingsContainer'; +import type { V3AddresseeFbsLists } from './V3AddresseeFbsLists'; +import type { V3FbsPostingProduct } from './V3FbsPostingProduct'; +import type { V3DeliveryMethod } from './V3DeliveryMethod'; +/** + * + * @export + * @interface V3FbsPosting + */ +export interface V3FbsPosting { + /** + * + * @type {V3AddresseeFbsLists} + * @memberof V3FbsPosting + */ + addressee?: V3AddresseeFbsLists; + /** + * + * @type {V3FbsPostingAnalyticsData} + * @memberof V3FbsPosting + */ + analytics_data?: V3FbsPostingAnalyticsData; + /** + * Доступные действия и информация об отправлении: + * - `arbitration` — открыть спор; + * - `awaiting_delivery` — перевести в статус «Ожидает отгрузки»; + * - `can_create_chat` — начать чат с покупателем; + * - `cancel` — отменить отправление; + * - `click_track_number` — просмотреть по трек-номеру историю изменения статусов в личном кабинете; + * - `customer_phone_available` — телефон покупателя; + * - `has_weight_products` — весовые товары в отправлении; + * - `hide_region_and_city` — скрыть регион и город покупателя в отчёте; + * - `invoice_get` — получить информацию из счёта-фактуры; + * - `invoice_send` — создать счёт-фактуру; + * - `invoice_update` — отредактировать счёт-фактуру; + * - `label_download_big` — скачать большую этикетку; + * - `label_download_small` — скачать маленькую этикетку; + * - `label_download` — скачать этикетку; + * - `non_int_delivered` — перевести в статус «Условно доставлен»; + * - `non_int_delivering` — перевести в статус «Доставляется»; + * - `non_int_last_mile` — перевести в статус «Курьер в пути»; + * - `product_cancel` — отменить часть товаров в отправлении; + * - `set_cutoff` — необходимо указать дату отгрузки, воспользуйтесь методом [/v1/posting/cutoff/set](#operation/PostingAPI_SetPostingCutoff); + * - `set_timeslot` — изменить время доставки покупателю; + * - `set_track_number` — указать или изменить трек-номер; + * - `ship_async_in_process` — отправление собирается; + * - `ship_async_retry` — собрать отправление повторно после ошибки сборки; + * - `ship_async` — собрать отправление; + * - `ship_with_additional_info` — необходимо заполнить дополнительную информацию; + * - `ship` — собрать отправление; + * - `update_cis` — изменить дополнительную информацию. + * + * @type {Array} + * @memberof V3FbsPosting + */ + available_actions?: Array; + /** + * + * @type {V3Barcodes} + * @memberof V3FbsPosting + */ + barcodes?: V3Barcodes; + /** + * + * @type {V3Cancellation} + * @memberof V3FbsPosting + */ + cancellation?: V3Cancellation; + /** + * + * @type {V3CustomerFbsLists} + * @memberof V3FbsPosting + */ + customer?: V3CustomerFbsLists; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsContainer} + * @memberof V3FbsPosting + */ + container?: PostingV4PostingFbsListResponsePostingsContainer; + /** + * Тип сортировки грузоместа: + * - `SORT` — сортируемый; + * - `NON-SORT` — несортируемый. + * + * @type {string} + * @memberof V3FbsPosting + */ + container_sort_type?: string; + /** + * Дата передачи отправления в доставку. + * @type {string} + * @memberof V3FbsPosting + */ + delivering_date?: string; + /** + * + * @type {V3DeliveryMethod} + * @memberof V3FbsPosting + */ + delivery_method?: V3DeliveryMethod; + /** + * Идентификатор склада назначения. + * @type {number} + * @memberof V3FbsPosting + */ + destination_place_id?: number; + /** + * Название склада назначения. + * @type {string} + * @memberof V3FbsPosting + */ + destination_place_name?: string; + /** + * + * @type {V3PostingFinancialData} + * @memberof V3FbsPosting + */ + financial_data?: V3PostingFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V3FbsPosting + */ + in_process_at?: string; + /** + * Если использовалась быстрая доставка Ozon Express — `true`. + * @type {boolean} + * @memberof V3FbsPosting + */ + is_express?: boolean; + /** + * Признак, что в отправлении есть многокоробочный товар и нужно передать количество коробок для него: + * + * - `true` — до сборки передайте количество коробок через метод [/v3/posting/multiboxqty/set](#operation/PostingAPI_PostingMultiBoxQtySetV3). + * - `false` — отправление собрано с указанием количества коробок в параметре `multi_box_qty` или в отправлении нет многокоробочного товара. + * + * @type {boolean} + * @memberof V3FbsPosting + */ + is_multibox?: boolean; + /** + * `true`, если отгрузка с предсортировкой. + * + * @type {boolean} + * @memberof V3FbsPosting + */ + is_presortable?: boolean; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {string} + * @memberof V3FbsPosting + */ + integration_type_flow?: string; + /** + * + * @type {V2FboSinglePostingLegalInfo} + * @memberof V3FbsPosting + */ + legal_info?: V2FboSinglePostingLegalInfo; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V3FbsPosting + */ + multi_box_qty?: number; + /** + * + * @type {V3FbsPostingDetailOptional} + * @memberof V3FbsPosting + */ + optional?: V3FbsPostingDetailOptional; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V3FbsPosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V3FbsPosting + */ + order_number?: string; + /** + * Номер родительского отправления, в результате разделения которого появилось текущее. + * @type {string} + * @memberof V3FbsPosting + */ + parent_posting_number?: string; + /** + * Дата и время успешной валидации кода курьера. Чтобы проверить код курьера, воспользуйтесь методом [/v1/posting/fbs/pick-up-code/verify](#operation/PostingAPI_PostingFBSPickupCodeVerify). + * @type {string} + * @memberof V3FbsPosting + */ + pickup_code_verified_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V3FbsPosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V3FbsPosting + */ + products?: Array; + /** + * Код услуги погрузочно-разгрузочных работ: + * - `lift` — подъём на лифте. + * - `stairs` — подъём по лестнице. + * - `none` — покупатель отказался от услуги, поднимать товары не нужно. + * - `delivery_default` — доставка включена в стоимость, по условиям оферты нужно доставить товар на этаж. + * + * Параметр актуален для КГТ-отправлений с доставкой силами продавца или интегрированной службой. + * + * @type {string} + * @memberof V3FbsPosting + */ + prr_option?: string; + /** + * Идентификатор эконом-товара. + * @type {number} + * @memberof V3FbsPosting + */ + quantum_id?: number; + /** + * `true`, если нужно заполнить атрибуты прослеживаемости. + * + * @type {boolean} + * @memberof V3FbsPosting + */ + require_blr_traceable_attrs?: boolean; + /** + * + * @type {V3FbsPostingRequirementsV3} + * @memberof V3FbsPosting + */ + requirements?: V3FbsPostingRequirementsV3; + /** + * Дата и время, до которой необходимо собрать отправление. Показываем рекомендованное время отгрузки. По истечении этого времени начнёт применяться новый тариф, информацию о нём уточняйте в поле `tariffication`. + * @type {string} + * @memberof V3FbsPosting + */ + shipment_date?: string; + /** + * Дата и время отгрузки без просрочки. + * @type {string} + * @memberof V3FbsPosting + */ + shipment_date_without_delay?: string; + /** + * + * @type {PostingV3FbsPostingSortingCenter} + * @memberof V3FbsPosting + */ + sorting_center?: PostingV3FbsPostingSortingCenter; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка, + * - `arbitration` — арбитраж, + * - `awaiting_approve` — ожидает подтверждения, + * - `awaiting_deliver` — ожидает отгрузки, + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_registration` — ожидает регистрации, + * - `awaiting_verification` — создано, + * - `cancelled` — отменено, + * - `cancelled_from_split_pending` — отменён из-за разделения отправления, + * - `client_arbitration` — клиентский арбитраж доставки, + * - `delivering` — доставляется, + * - `driver_pickup` — у водителя, + * - `not_accepted` — не принят на сортировочном центре, + * + * @type {string} + * @memberof V3FbsPosting + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_acceptance_in_progress`— идёт приёмка, + * - `posting_in_arbitration` — арбитраж, + * - `posting_created` — создано, + * - `posting_in_carriage` — в перевозке, + * - `posting_not_in_carriage` — не добавлено в перевозку, + * - `posting_registered` — зарегистрировано, + * - `posting_transferring_to_delivery` (`status=awaiting_deliver`) — передаётся в доставку, + * - `posting_awaiting_passport_data` — ожидает паспортных данных, + * - `posting_created` — создано, + * - `posting_awaiting_registration` — ожидает регистрации, + * - `posting_registration_error` — ошибка регистрации, + * - `posting_transferring_to_delivery` (`status=awaiting_registration`) — передаётся курьеру, + * - `posting_split_pending` — создано, + * - `posting_canceled` — отменено, + * - `posting_in_client_arbitration` — клиентский арбитраж доставки, + * - `posting_delivered` — доставлено, + * - `posting_received` — получено, + * - `posting_conditionally_delivered` — условно доставлено, + * - `posting_in_courier_service` — курьер в пути, + * - `posting_in_pickup_point` — в пункте выдачи, + * - `posting_on_way_to_city` — в пути в ваш город, + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи, + * - `posting_returned_to_warehouse` — возвращено на склад, + * - `posting_transferred_to_courier_service` — передаётся в службу доставки, + * - `posting_driver_pick_up` — у водителя, + * - `posting_not_in_sort_center` — не принято на сортировочном центре, + * - `ship_failed` — сборка не удалась. + * + * @type {string} + * @memberof V3FbsPosting + */ + substatus?: string; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка службой Ozon. + * - `3pl_tracking` — доставка интегрированной службой. + * - `non_integrated` — доставка сторонней службой. + * - `aggregator` — доставка через партнёрскую доставку Ozon. + * - `hybryd` — схема доставки Почты России. + * + * @type {string} + * @memberof V3FbsPosting + */ + tpl_integration_type?: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof V3FbsPosting + */ + tracking_number?: string; + /** + * + * @type {V3FbsTariffication} + * @memberof V3FbsPosting + */ + tariffication?: V3FbsTariffication; + /** + * Этапы тарификации. + * @type {Array} + * @memberof V3FbsPosting + */ + tariffication_steps?: Array; +} +/** + * Check if a given object implements the V3FbsPosting interface. + */ +export declare function instanceOfV3FbsPosting(value: object): value is V3FbsPosting; +export declare function V3FbsPostingFromJSON(json: any): V3FbsPosting; +export declare function V3FbsPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPosting; +export declare function V3FbsPostingToJSON(value?: V3FbsPosting | null): any; diff --git a/dist/esm/models/V3FbsPosting.js b/dist/esm/models/V3FbsPosting.js new file mode 100644 index 0000000..83755ff --- /dev/null +++ b/dist/esm/models/V3FbsPosting.js @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3CustomerFbsListsFromJSON, V3CustomerFbsListsToJSON, } from './V3CustomerFbsLists'; +import { V3FbsPostingRequirementsV3FromJSON, V3FbsPostingRequirementsV3ToJSON, } from './V3FbsPostingRequirementsV3'; +import { PostingV3FbsPostingSortingCenterFromJSON, PostingV3FbsPostingSortingCenterToJSON, } from './PostingV3FbsPostingSortingCenter'; +import { V2FboSinglePostingLegalInfoFromJSON, V2FboSinglePostingLegalInfoToJSON, } from './V2FboSinglePostingLegalInfo'; +import { PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON, PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON, } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import { V3PostingFinancialDataFromJSON, V3PostingFinancialDataToJSON, } from './V3PostingFinancialData'; +import { V3FbsTarifficationFromJSON, V3FbsTarifficationToJSON, } from './V3FbsTariffication'; +import { V3FbsPostingAnalyticsDataFromJSON, V3FbsPostingAnalyticsDataToJSON, } from './V3FbsPostingAnalyticsData'; +import { V3BarcodesFromJSON, V3BarcodesToJSON, } from './V3Barcodes'; +import { V3CancellationFromJSON, V3CancellationToJSON, } from './V3Cancellation'; +import { V3FbsPostingDetailOptionalFromJSON, V3FbsPostingDetailOptionalToJSON, } from './V3FbsPostingDetailOptional'; +import { PostingV4PostingFbsListResponsePostingsContainerFromJSON, PostingV4PostingFbsListResponsePostingsContainerToJSON, } from './PostingV4PostingFbsListResponsePostingsContainer'; +import { V3AddresseeFbsListsFromJSON, V3AddresseeFbsListsToJSON, } from './V3AddresseeFbsLists'; +import { V3FbsPostingProductFromJSON, V3FbsPostingProductToJSON, } from './V3FbsPostingProduct'; +import { V3DeliveryMethodFromJSON, V3DeliveryMethodToJSON, } from './V3DeliveryMethod'; +/** + * Check if a given object implements the V3FbsPosting interface. + */ +export function instanceOfV3FbsPosting(value) { + return true; +} +export function V3FbsPostingFromJSON(json) { + return V3FbsPostingFromJSONTyped(json, false); +} +export function V3FbsPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'addressee': json['addressee'] == null ? undefined : V3AddresseeFbsListsFromJSON(json['addressee']), + 'analytics_data': json['analytics_data'] == null ? undefined : V3FbsPostingAnalyticsDataFromJSON(json['analytics_data']), + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'barcodes': json['barcodes'] == null ? undefined : V3BarcodesFromJSON(json['barcodes']), + 'cancellation': json['cancellation'] == null ? undefined : V3CancellationFromJSON(json['cancellation']), + 'customer': json['customer'] == null ? undefined : V3CustomerFbsListsFromJSON(json['customer']), + 'container': json['container'] == null ? undefined : PostingV4PostingFbsListResponsePostingsContainerFromJSON(json['container']), + 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], + 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], + 'delivery_method': json['delivery_method'] == null ? undefined : V3DeliveryMethodFromJSON(json['delivery_method']), + 'destination_place_id': json['destination_place_id'] == null ? undefined : json['destination_place_id'], + 'destination_place_name': json['destination_place_name'] == null ? undefined : json['destination_place_name'], + 'financial_data': json['financial_data'] == null ? undefined : V3PostingFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], + 'is_presortable': json['is_presortable'] == null ? undefined : json['is_presortable'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'legal_info': json['legal_info'] == null ? undefined : V2FboSinglePostingLegalInfoFromJSON(json['legal_info']), + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'optional': json['optional'] == null ? undefined : V3FbsPostingDetailOptionalFromJSON(json['optional']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], + 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V3FbsPostingProductFromJSON)), + 'prr_option': json['prr_option'] == null ? undefined : json['prr_option'], + 'quantum_id': json['quantum_id'] == null ? undefined : json['quantum_id'], + 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], + 'requirements': json['requirements'] == null ? undefined : V3FbsPostingRequirementsV3FromJSON(json['requirements']), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], + 'sorting_center': json['sorting_center'] == null ? undefined : PostingV3FbsPostingSortingCenterFromJSON(json['sorting_center']), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'tariffication': json['tariffication'] == null ? undefined : V3FbsTarifficationFromJSON(json['tariffication']), + 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON)), + }; +} +export function V3FbsPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'addressee': V3AddresseeFbsListsToJSON(value['addressee']), + 'analytics_data': V3FbsPostingAnalyticsDataToJSON(value['analytics_data']), + 'available_actions': value['available_actions'], + 'barcodes': V3BarcodesToJSON(value['barcodes']), + 'cancellation': V3CancellationToJSON(value['cancellation']), + 'customer': V3CustomerFbsListsToJSON(value['customer']), + 'container': PostingV4PostingFbsListResponsePostingsContainerToJSON(value['container']), + 'container_sort_type': value['container_sort_type'], + 'delivering_date': value['delivering_date'], + 'delivery_method': V3DeliveryMethodToJSON(value['delivery_method']), + 'destination_place_id': value['destination_place_id'], + 'destination_place_name': value['destination_place_name'], + 'financial_data': V3PostingFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'is_express': value['is_express'], + 'is_multibox': value['is_multibox'], + 'is_presortable': value['is_presortable'], + 'integration_type_flow': value['integration_type_flow'], + 'legal_info': V2FboSinglePostingLegalInfoToJSON(value['legal_info']), + 'multi_box_qty': value['multi_box_qty'], + 'optional': V3FbsPostingDetailOptionalToJSON(value['optional']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'parent_posting_number': value['parent_posting_number'], + 'pickup_code_verified_at': value['pickup_code_verified_at'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V3FbsPostingProductToJSON)), + 'prr_option': value['prr_option'], + 'quantum_id': value['quantum_id'], + 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], + 'requirements': V3FbsPostingRequirementsV3ToJSON(value['requirements']), + 'shipment_date': value['shipment_date'], + 'shipment_date_without_delay': value['shipment_date_without_delay'], + 'sorting_center': PostingV3FbsPostingSortingCenterToJSON(value['sorting_center']), + 'status': value['status'], + 'substatus': value['substatus'], + 'tpl_integration_type': value['tpl_integration_type'], + 'tracking_number': value['tracking_number'], + 'tariffication': V3FbsTarifficationToJSON(value['tariffication']), + 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON)), + }; +} diff --git a/dist/esm/models/V3FbsPostingAnalyticsData.d.ts b/dist/esm/models/V3FbsPostingAnalyticsData.d.ts new file mode 100644 index 0000000..cf973e8 --- /dev/null +++ b/dist/esm/models/V3FbsPostingAnalyticsData.d.ts @@ -0,0 +1,122 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface V3FbsPostingAnalyticsData + */ +export interface V3FbsPostingAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + delivery_date_begin?: string; + /** + * Дата и время конца доставки. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + delivery_type?: string; + /** + * Признак, что получатель юридическое лицо: + * - `true` — юридическое лицо, + * - `false` — физическое лицо. + * + * @type {boolean} + * @memberof V3FbsPostingAnalyticsData + */ + is_legal?: boolean; + /** + * Наличие подписки Premium. + * @type {boolean} + * @memberof V3FbsPostingAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`, + * - `карта Ozon Банка`, + * - `автосписание с карты Ozon Банка при выдаче`, + * - `сохранённой картой при получении`, + * - `Система Быстрых Платежей`, + * - `Ozon Рассрочка`, + * - `оплата на расчётный счёт`, + * - `SberPay`, + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + region?: string; + /** + * Служба доставки. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof V3FbsPostingAnalyticsData + */ + tpl_provider_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V3FbsPostingAnalyticsData + */ + warehouse_id?: number; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + client_delivery_date_end?: string; +} +/** + * Check if a given object implements the V3FbsPostingAnalyticsData interface. + */ +export declare function instanceOfV3FbsPostingAnalyticsData(value: object): value is V3FbsPostingAnalyticsData; +export declare function V3FbsPostingAnalyticsDataFromJSON(json: any): V3FbsPostingAnalyticsData; +export declare function V3FbsPostingAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingAnalyticsData; +export declare function V3FbsPostingAnalyticsDataToJSON(value?: V3FbsPostingAnalyticsData | null): any; diff --git a/dist/esm/models/V3FbsPostingAnalyticsData.js b/dist/esm/models/V3FbsPostingAnalyticsData.js new file mode 100644 index 0000000..9cb10fe --- /dev/null +++ b/dist/esm/models/V3FbsPostingAnalyticsData.js @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3FbsPostingAnalyticsData interface. + */ +export function instanceOfV3FbsPostingAnalyticsData(value) { + return true; +} +export function V3FbsPostingAnalyticsDataFromJSON(json) { + return V3FbsPostingAnalyticsDataFromJSONTyped(json, false); +} +export function V3FbsPostingAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_date_begin': json['delivery_date_begin'] == null ? undefined : json['delivery_date_begin'], + 'delivery_date_end': json['delivery_date_end'] == null ? undefined : json['delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + }; +} +export function V3FbsPostingAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_date_begin': value['delivery_date_begin'], + 'delivery_date_end': value['delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + }; +} diff --git a/dist/esm/models/V3FbsPostingDetail.d.ts b/dist/esm/models/V3FbsPostingDetail.d.ts new file mode 100644 index 0000000..f240014 --- /dev/null +++ b/dist/esm/models/V3FbsPostingDetail.d.ts @@ -0,0 +1,444 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3AdditionalDataItem } from './V3AdditionalDataItem'; +import type { PostingV3FbsPostingDetailSortingCenter } from './PostingV3FbsPostingDetailSortingCenter'; +import type { PostingV3FbsPostingDetailExternalOrder } from './PostingV3FbsPostingDetailExternalOrder'; +import type { V3FbsPostingRequirementsV3 } from './V3FbsPostingRequirementsV3'; +import type { V2FboSinglePostingLegalInfo } from './V2FboSinglePostingLegalInfo'; +import type { V3PostingProductDetail } from './V3PostingProductDetail'; +import type { PostingV4PostingFbsListResponsePostingsTarifficationStep } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import type { FbsPostingDetailCourier } from './FbsPostingDetailCourier'; +import type { V3FbsPostingProductExemplarsV3 } from './V3FbsPostingProductExemplarsV3'; +import type { V3Customer } from './V3Customer'; +import type { V3PostingFinancialData } from './V3PostingFinancialData'; +import type { FbsPostingDetailPrrOption } from './FbsPostingDetailPrrOption'; +import type { V3FbsTariffication } from './V3FbsTariffication'; +import type { V3FbsPostingAnalyticsData } from './V3FbsPostingAnalyticsData'; +import type { V3Barcodes } from './V3Barcodes'; +import type { V3Cancellation } from './V3Cancellation'; +import type { V3FbsPostingDetailOptional } from './V3FbsPostingDetailOptional'; +import type { V3FbsPostingDetailRelatedPostings } from './V3FbsPostingDetailRelatedPostings'; +import type { PostingV4PostingFbsListResponsePostingsContainer } from './PostingV4PostingFbsListResponsePostingsContainer'; +import type { V3Addressee } from './V3Addressee'; +import type { V3DeliveryMethod } from './V3DeliveryMethod'; +/** + * Информация об отправлении. + * @export + * @interface V3FbsPostingDetail + */ +export interface V3FbsPostingDetail { + /** + * + * @type {Array} + * @memberof V3FbsPostingDetail + */ + additional_data?: Array; + /** + * + * @type {V3Addressee} + * @memberof V3FbsPostingDetail + */ + addressee?: V3Addressee; + /** + * + * @type {V3FbsPostingAnalyticsData} + * @memberof V3FbsPostingDetail + */ + analytics_data?: V3FbsPostingAnalyticsData; + /** + * Доступные действия и информация об отправлении: + * - `arbitration` — открыть спор; + * - `awaiting_delivery` — перевести в статус «Ожидает отгрузки»; + * - `can_create_chat` — начать чат с покупателем; + * - `cancel` — отменить отправление; + * - `click_track_number` — просмотреть по трек-номеру историю изменения статусов в личном кабинете; + * - `customer_phone_available` — телефон покупателя; + * - `has_weight_products` — весовые товары в отправлении; + * - `hide_region_and_city` — скрыть регион и город покупателя в отчёте; + * - `invoice_get` — получить информацию из счёта-фактуры; + * - `invoice_send` — создать счёт-фактуру; + * - `invoice_update` — отредактировать счёт-фактуру; + * - `label_download_big` — скачать большую этикетку; + * - `label_download_small` — скачать маленькую этикетку; + * - `label_download` — скачать этикетку; + * - `non_int_delivered` — перевести в статус «Условно доставлен»; + * - `non_int_delivering` — перевести в статус «Доставляется»; + * - `non_int_last_mile` — перевести в статус «Курьер в пути»; + * - `product_cancel` — отменить часть товаров в отправлении; + * - `set_cutoff` — необходимо указать дату отгрузки, воспользуйтесь методом [/v1/posting/cutoff/set](#operation/PostingAPI_SetPostingCutoff); + * - `set_timeslot` — изменить время доставки покупателю; + * - `set_track_number` — указать или изменить трек-номер; + * - `ship_async_in_process` — отправление собирается; + * - `ship_async_retry` — собрать отправление повторно после ошибки сборки; + * - `ship_async` — собрать отправление; + * - `ship_with_additional_info` — необходимо заполнить дополнительную информацию; + * - `ship` — собрать отправление; + * - `update_cis` — изменить дополнительную информацию. + * + * @type {Array} + * @memberof V3FbsPostingDetail + */ + available_actions?: Array; + /** + * + * @type {V3Barcodes} + * @memberof V3FbsPostingDetail + */ + barcodes?: V3Barcodes; + /** + * + * @type {V3Cancellation} + * @memberof V3FbsPostingDetail + */ + cancellation?: V3Cancellation; + /** + * + * @type {FbsPostingDetailCourier} + * @memberof V3FbsPostingDetail + */ + courier?: FbsPostingDetailCourier; + /** + * + * @type {V3Customer} + * @memberof V3FbsPostingDetail + */ + customer?: V3Customer; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsContainer} + * @memberof V3FbsPostingDetail + */ + container?: PostingV4PostingFbsListResponsePostingsContainer; + /** + * Тип сортировки грузоместа: + * - `SORT` — сортируемый; + * - `NON-SORT` — несортируемый. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + container_sort_type?: string; + /** + * Дата передачи отправления в доставку. + * @type {string} + * @memberof V3FbsPostingDetail + */ + delivering_date?: string; + /** + * + * @type {V3DeliveryMethod} + * @memberof V3FbsPostingDetail + */ + delivery_method?: V3DeliveryMethod; + /** + * Стоимость доставки. + * @type {string} + * @memberof V3FbsPostingDetail + */ + delivery_price?: string; + /** + * + * @type {PostingV3FbsPostingDetailExternalOrder} + * @memberof V3FbsPostingDetail + */ + external_order?: PostingV3FbsPostingDetailExternalOrder; + /** + * Дата фактической передачи отправления в доставку. + * @type {string} + * @memberof V3FbsPostingDetail + */ + fact_delivery_date?: string; + /** + * + * @type {V3PostingFinancialData} + * @memberof V3FbsPostingDetail + */ + financial_data?: V3PostingFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V3FbsPostingDetail + */ + in_process_at?: string; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + integration_type_flow?: string; + /** + * Если использовалась быстрая доставка Ozon Express — `true`. + * @type {boolean} + * @memberof V3FbsPostingDetail + */ + is_express?: boolean; + /** + * Признак, что в отправлении есть многокоробочный товар и нужно передать количество коробок для него: + * + * - `true` — до сборки передайте количество коробок через метод [/v3/posting/multiboxqty/set](#operation/PostingAPI_PostingMultiBoxQtySetV3). + * - `false` — отправление собрано с указанием количества коробок в параметре `multi_box_qty` или в отправлении нет многокоробочного товара. + * + * @type {boolean} + * @memberof V3FbsPostingDetail + */ + is_multibox?: boolean; + /** + * + * @type {V2FboSinglePostingLegalInfo} + * @memberof V3FbsPostingDetail + */ + legal_info?: V2FboSinglePostingLegalInfo; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V3FbsPostingDetail + */ + multi_box_qty?: number; + /** + * + * @type {V3FbsPostingDetailOptional} + * @memberof V3FbsPostingDetail + */ + optional?: V3FbsPostingDetailOptional; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V3FbsPostingDetail + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V3FbsPostingDetail + */ + order_number?: string; + /** + * Номер родительского отправления, в результате разделения которого появилось текущее. + * @type {string} + * @memberof V3FbsPostingDetail + */ + parent_posting_number?: string; + /** + * Дата и время успешной валидации кода курьера. Чтобы проверить код курьера, воспользуйтесь методом [/v1/posting/fbs/pick-up-code/verify](#operation/PostingAPI_PostingFBSPickupCodeVerify). + * @type {string} + * @memberof V3FbsPostingDetail + */ + pickup_code_verified_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V3FbsPostingDetail + */ + posting_number?: string; + /** + * + * @type {V3FbsPostingProductExemplarsV3} + * @memberof V3FbsPostingDetail + */ + product_exemplars?: V3FbsPostingProductExemplarsV3; + /** + * Массив товаров в отправлении. + * @type {Array} + * @memberof V3FbsPostingDetail + */ + products?: Array; + /** + * Статус службы доставки. + * @type {string} + * @memberof V3FbsPostingDetail + */ + provider_status?: string; + /** + * + * @type {FbsPostingDetailPrrOption} + * @memberof V3FbsPostingDetail + */ + prr_option?: FbsPostingDetailPrrOption; + /** + * + * @type {V3FbsPostingDetailRelatedPostings} + * @memberof V3FbsPostingDetail + */ + related_postings?: V3FbsPostingDetailRelatedPostings; + /** + * Список номеров связанных весовых отправлений. + * @type {Array} + * @memberof V3FbsPostingDetail + */ + related_weight_postings?: Array; + /** + * `true`, если нужно заполнить атрибуты прослеживаемости. + * + * @type {boolean} + * @memberof V3FbsPostingDetail + */ + require_blr_traceable_attrs?: boolean; + /** + * + * @type {V3FbsPostingRequirementsV3} + * @memberof V3FbsPostingDetail + */ + requirements?: V3FbsPostingRequirementsV3; + /** + * Дата и время, до которой необходимо собрать отправление. Показываем рекомендованное время отгрузки. По истечении этого времени начнёт применяться новый тариф, информацию о нём уточняйте в поле `tariffication`. + * @type {string} + * @memberof V3FbsPostingDetail + */ + shipment_date?: string; + /** + * Дата и время отгрузки без просрочки. + * @type {string} + * @memberof V3FbsPostingDetail + */ + shipment_date_without_delay?: string; + /** + * + * @type {PostingV3FbsPostingDetailSortingCenter} + * @memberof V3FbsPostingDetail + */ + sorting_center?: PostingV3FbsPostingDetailSortingCenter; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка, + * - `arbitration` — арбитраж, + * - `awaiting_approve` — ожидает подтверждения, + * - `awaiting_deliver` — ожидает отгрузки, + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_registration` — ожидает регистрации, + * - `awaiting_verification` — создано, + * - `cancelled` — отменено, + * - `cancelled_from_split_pending` — отменён из-за разделения отправления, + * - `client_arbitration` — клиентский арбитраж доставки, + * - `delivered` — доставлено, + * - `delivering` — доставляется, + * - `driver_pickup` — у водителя, + * - `not_accepted` — не принят на сортировочном центре, + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_acceptance_in_progress` — идёт приёмка, + * - `posting_in_arbitration` — арбитраж, + * - `posting_created` — создано, + * - `posting_in_carriage` — в перевозке, + * - `posting_not_in_carriage` — не добавлено в перевозку, + * - `posting_registered` — зарегистрировано, + * - `posting_transferring_to_delivery` (`status=awaiting_deliver`) — передаётся в доставку, + * - `posting_awaiting_passport_data` — ожидает паспортных данных, + * - `posting_created` — создано, + * - `posting_awaiting_registration` — ожидает регистрации, + * - `posting_registration_error` — ошибка регистрации, + * - `posting_transferring_to_delivery` (`status=awaiting_registration`) — передаётся курьеру, + * - `posting_split_pending` — создано, + * - `posting_canceled` — отменено, + * - `posting_in_client_arbitration` — клиентский арбитраж доставки, + * - `posting_delivered` — доставлено, + * - `posting_received` — получено, + * - `posting_conditionally_delivered` — условно доставлено, + * - `posting_in_courier_service` — курьер в пути, + * - `posting_in_pickup_point` — в пункте выдачи, + * - `posting_on_way_to_city` — в пути в ваш город, + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи, + * - `posting_returned_to_warehouse` — возвращено на склад, + * - `posting_transferred_to_courier_service` — передаётся в службу доставки, + * - `posting_driver_pick_up` — у водителя, + * - `posting_not_in_sort_center` — не принято на сортировочном центре, + * - `ship_failed` — сборка не удалась. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + substatus?: string; + /** + * Предыдущий подстатус отправления. Возможные значения: + * - `posting_acceptance_in_progress` — идёт приёмка, + * - `posting_in_arbitration` — арбитраж, + * - `posting_created` — создано, + * - `posting_in_carriage` — в перевозке, + * - `posting_not_in_carriage` — не добавлено в перевозку, + * - `posting_registered` — зарегистрировано, + * - `posting_transferring_to_delivery` (`status=awaiting_deliver`) — передаётся в доставку, + * - `posting_awaiting_passport_data` — ожидает паспортных данных, + * - `posting_created` — создано, + * - `posting_awaiting_registration` — ожидает регистрации, + * - `posting_registration_error` — ошибка регистрации, + * - `posting_transferring_to_delivery` (`status=awaiting_registration`) — передаётся курьеру, + * - `posting_split_pending` — создано, + * - `posting_canceled` — отменено, + * - `posting_in_client_arbitration` — клиентский арбитраж доставки, + * - `posting_delivered` — доставлено, + * - `posting_received` — получено, + * - `posting_conditionally_delivered` — условно доставлено, + * - `posting_in_courier_service` — курьер в пути, + * - `posting_in_pickup_point` — в пункте выдачи, + * - `posting_on_way_to_city` — в пути в ваш город, + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи, + * - `posting_returned_to_warehouse` — возвращено на склад, + * - `posting_transferred_to_courier_service` — передаётся в службу доставки, + * - `posting_driver_pick_up` — у водителя, + * - `posting_not_in_sort_center` — не принято на сортировочном центре. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + previous_substatus?: string; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка через Ozon логистику. + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ. + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ. + * - `non_integrated` — доставка силами продавца. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + tpl_integration_type?: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof V3FbsPostingDetail + */ + tracking_number?: string; + /** + * + * @type {V3FbsTariffication} + * @memberof V3FbsPostingDetail + */ + tariffication?: V3FbsTariffication; + /** + * Этапы тарификации. + * @type {Array} + * @memberof V3FbsPostingDetail + */ + tariffication_steps?: Array; +} +/** + * Check if a given object implements the V3FbsPostingDetail interface. + */ +export declare function instanceOfV3FbsPostingDetail(value: object): value is V3FbsPostingDetail; +export declare function V3FbsPostingDetailFromJSON(json: any): V3FbsPostingDetail; +export declare function V3FbsPostingDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingDetail; +export declare function V3FbsPostingDetailToJSON(value?: V3FbsPostingDetail | null): any; diff --git a/dist/esm/models/V3FbsPostingDetail.js b/dist/esm/models/V3FbsPostingDetail.js new file mode 100644 index 0000000..68cc4b4 --- /dev/null +++ b/dist/esm/models/V3FbsPostingDetail.js @@ -0,0 +1,149 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3AdditionalDataItemFromJSON, V3AdditionalDataItemToJSON, } from './V3AdditionalDataItem'; +import { PostingV3FbsPostingDetailSortingCenterFromJSON, PostingV3FbsPostingDetailSortingCenterToJSON, } from './PostingV3FbsPostingDetailSortingCenter'; +import { PostingV3FbsPostingDetailExternalOrderFromJSON, PostingV3FbsPostingDetailExternalOrderToJSON, } from './PostingV3FbsPostingDetailExternalOrder'; +import { V3FbsPostingRequirementsV3FromJSON, V3FbsPostingRequirementsV3ToJSON, } from './V3FbsPostingRequirementsV3'; +import { V2FboSinglePostingLegalInfoFromJSON, V2FboSinglePostingLegalInfoToJSON, } from './V2FboSinglePostingLegalInfo'; +import { V3PostingProductDetailFromJSON, V3PostingProductDetailToJSON, } from './V3PostingProductDetail'; +import { PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON, PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON, } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import { FbsPostingDetailCourierFromJSON, FbsPostingDetailCourierToJSON, } from './FbsPostingDetailCourier'; +import { V3FbsPostingProductExemplarsV3FromJSON, V3FbsPostingProductExemplarsV3ToJSON, } from './V3FbsPostingProductExemplarsV3'; +import { V3CustomerFromJSON, V3CustomerToJSON, } from './V3Customer'; +import { V3PostingFinancialDataFromJSON, V3PostingFinancialDataToJSON, } from './V3PostingFinancialData'; +import { FbsPostingDetailPrrOptionFromJSON, FbsPostingDetailPrrOptionToJSON, } from './FbsPostingDetailPrrOption'; +import { V3FbsTarifficationFromJSON, V3FbsTarifficationToJSON, } from './V3FbsTariffication'; +import { V3FbsPostingAnalyticsDataFromJSON, V3FbsPostingAnalyticsDataToJSON, } from './V3FbsPostingAnalyticsData'; +import { V3BarcodesFromJSON, V3BarcodesToJSON, } from './V3Barcodes'; +import { V3CancellationFromJSON, V3CancellationToJSON, } from './V3Cancellation'; +import { V3FbsPostingDetailOptionalFromJSON, V3FbsPostingDetailOptionalToJSON, } from './V3FbsPostingDetailOptional'; +import { V3FbsPostingDetailRelatedPostingsFromJSON, V3FbsPostingDetailRelatedPostingsToJSON, } from './V3FbsPostingDetailRelatedPostings'; +import { PostingV4PostingFbsListResponsePostingsContainerFromJSON, PostingV4PostingFbsListResponsePostingsContainerToJSON, } from './PostingV4PostingFbsListResponsePostingsContainer'; +import { V3AddresseeFromJSON, V3AddresseeToJSON, } from './V3Addressee'; +import { V3DeliveryMethodFromJSON, V3DeliveryMethodToJSON, } from './V3DeliveryMethod'; +/** + * Check if a given object implements the V3FbsPostingDetail interface. + */ +export function instanceOfV3FbsPostingDetail(value) { + return true; +} +export function V3FbsPostingDetailFromJSON(json) { + return V3FbsPostingDetailFromJSONTyped(json, false); +} +export function V3FbsPostingDetailFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(V3AdditionalDataItemFromJSON)), + 'addressee': json['addressee'] == null ? undefined : V3AddresseeFromJSON(json['addressee']), + 'analytics_data': json['analytics_data'] == null ? undefined : V3FbsPostingAnalyticsDataFromJSON(json['analytics_data']), + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'barcodes': json['barcodes'] == null ? undefined : V3BarcodesFromJSON(json['barcodes']), + 'cancellation': json['cancellation'] == null ? undefined : V3CancellationFromJSON(json['cancellation']), + 'courier': json['courier'] == null ? undefined : FbsPostingDetailCourierFromJSON(json['courier']), + 'customer': json['customer'] == null ? undefined : V3CustomerFromJSON(json['customer']), + 'container': json['container'] == null ? undefined : PostingV4PostingFbsListResponsePostingsContainerFromJSON(json['container']), + 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], + 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], + 'delivery_method': json['delivery_method'] == null ? undefined : V3DeliveryMethodFromJSON(json['delivery_method']), + 'delivery_price': json['delivery_price'] == null ? undefined : json['delivery_price'], + 'external_order': json['external_order'] == null ? undefined : PostingV3FbsPostingDetailExternalOrderFromJSON(json['external_order']), + 'fact_delivery_date': json['fact_delivery_date'] == null ? undefined : json['fact_delivery_date'], + 'financial_data': json['financial_data'] == null ? undefined : V3PostingFinancialDataFromJSON(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], + 'legal_info': json['legal_info'] == null ? undefined : V2FboSinglePostingLegalInfoFromJSON(json['legal_info']), + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'optional': json['optional'] == null ? undefined : V3FbsPostingDetailOptionalFromJSON(json['optional']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], + 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'product_exemplars': json['product_exemplars'] == null ? undefined : V3FbsPostingProductExemplarsV3FromJSON(json['product_exemplars']), + 'products': json['products'] == null ? undefined : (json['products'].map(V3PostingProductDetailFromJSON)), + 'provider_status': json['provider_status'] == null ? undefined : json['provider_status'], + 'prr_option': json['prr_option'] == null ? undefined : FbsPostingDetailPrrOptionFromJSON(json['prr_option']), + 'related_postings': json['related_postings'] == null ? undefined : V3FbsPostingDetailRelatedPostingsFromJSON(json['related_postings']), + 'related_weight_postings': json['related_weight_postings'] == null ? undefined : json['related_weight_postings'], + 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], + 'requirements': json['requirements'] == null ? undefined : V3FbsPostingRequirementsV3FromJSON(json['requirements']), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], + 'sorting_center': json['sorting_center'] == null ? undefined : PostingV3FbsPostingDetailSortingCenterFromJSON(json['sorting_center']), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'previous_substatus': json['previous_substatus'] == null ? undefined : json['previous_substatus'], + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'tariffication': json['tariffication'] == null ? undefined : V3FbsTarifficationFromJSON(json['tariffication']), + 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON)), + }; +} +export function V3FbsPostingDetailToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(V3AdditionalDataItemToJSON)), + 'addressee': V3AddresseeToJSON(value['addressee']), + 'analytics_data': V3FbsPostingAnalyticsDataToJSON(value['analytics_data']), + 'available_actions': value['available_actions'], + 'barcodes': V3BarcodesToJSON(value['barcodes']), + 'cancellation': V3CancellationToJSON(value['cancellation']), + 'courier': FbsPostingDetailCourierToJSON(value['courier']), + 'customer': V3CustomerToJSON(value['customer']), + 'container': PostingV4PostingFbsListResponsePostingsContainerToJSON(value['container']), + 'container_sort_type': value['container_sort_type'], + 'delivering_date': value['delivering_date'], + 'delivery_method': V3DeliveryMethodToJSON(value['delivery_method']), + 'delivery_price': value['delivery_price'], + 'external_order': PostingV3FbsPostingDetailExternalOrderToJSON(value['external_order']), + 'fact_delivery_date': value['fact_delivery_date'], + 'financial_data': V3PostingFinancialDataToJSON(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'integration_type_flow': value['integration_type_flow'], + 'is_express': value['is_express'], + 'is_multibox': value['is_multibox'], + 'legal_info': V2FboSinglePostingLegalInfoToJSON(value['legal_info']), + 'multi_box_qty': value['multi_box_qty'], + 'optional': V3FbsPostingDetailOptionalToJSON(value['optional']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'parent_posting_number': value['parent_posting_number'], + 'pickup_code_verified_at': value['pickup_code_verified_at'], + 'posting_number': value['posting_number'], + 'product_exemplars': V3FbsPostingProductExemplarsV3ToJSON(value['product_exemplars']), + 'products': value['products'] == null ? undefined : (value['products'].map(V3PostingProductDetailToJSON)), + 'provider_status': value['provider_status'], + 'prr_option': FbsPostingDetailPrrOptionToJSON(value['prr_option']), + 'related_postings': V3FbsPostingDetailRelatedPostingsToJSON(value['related_postings']), + 'related_weight_postings': value['related_weight_postings'], + 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], + 'requirements': V3FbsPostingRequirementsV3ToJSON(value['requirements']), + 'shipment_date': value['shipment_date'], + 'shipment_date_without_delay': value['shipment_date_without_delay'], + 'sorting_center': PostingV3FbsPostingDetailSortingCenterToJSON(value['sorting_center']), + 'status': value['status'], + 'substatus': value['substatus'], + 'previous_substatus': value['previous_substatus'], + 'tpl_integration_type': value['tpl_integration_type'], + 'tracking_number': value['tracking_number'], + 'tariffication': V3FbsTarifficationToJSON(value['tariffication']), + 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON)), + }; +} diff --git a/dist/esm/models/V3FbsPostingDetailOptional.d.ts b/dist/esm/models/V3FbsPostingDetailOptional.d.ts new file mode 100644 index 0000000..01015fe --- /dev/null +++ b/dist/esm/models/V3FbsPostingDetailOptional.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров с дополнительными характеристиками. + * @export + * @interface V3FbsPostingDetailOptional + */ +export interface V3FbsPostingDetailOptional { + /** + * Список товаров с возможной маркировкой. + * @type {Array} + * @memberof V3FbsPostingDetailOptional + */ + products_with_possible_mandatory_mark?: Array; +} +/** + * Check if a given object implements the V3FbsPostingDetailOptional interface. + */ +export declare function instanceOfV3FbsPostingDetailOptional(value: object): value is V3FbsPostingDetailOptional; +export declare function V3FbsPostingDetailOptionalFromJSON(json: any): V3FbsPostingDetailOptional; +export declare function V3FbsPostingDetailOptionalFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingDetailOptional; +export declare function V3FbsPostingDetailOptionalToJSON(value?: V3FbsPostingDetailOptional | null): any; diff --git a/dist/esm/models/V3FbsPostingDetailOptional.js b/dist/esm/models/V3FbsPostingDetailOptional.js new file mode 100644 index 0000000..a1757eb --- /dev/null +++ b/dist/esm/models/V3FbsPostingDetailOptional.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3FbsPostingDetailOptional interface. + */ +export function instanceOfV3FbsPostingDetailOptional(value) { + return true; +} +export function V3FbsPostingDetailOptionalFromJSON(json) { + return V3FbsPostingDetailOptionalFromJSONTyped(json, false); +} +export function V3FbsPostingDetailOptionalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_with_possible_mandatory_mark': json['products_with_possible_mandatory_mark'] == null ? undefined : json['products_with_possible_mandatory_mark'], + }; +} +export function V3FbsPostingDetailOptionalToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_with_possible_mandatory_mark': value['products_with_possible_mandatory_mark'], + }; +} diff --git a/dist/esm/models/V3FbsPostingDetailRelatedPostings.d.ts b/dist/esm/models/V3FbsPostingDetailRelatedPostings.d.ts new file mode 100644 index 0000000..6038ba5 --- /dev/null +++ b/dist/esm/models/V3FbsPostingDetailRelatedPostings.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Связанные отправления. + * @export + * @interface V3FbsPostingDetailRelatedPostings + */ +export interface V3FbsPostingDetailRelatedPostings { + /** + * Список номеров связанных отправлений. + * @type {Array} + * @memberof V3FbsPostingDetailRelatedPostings + */ + related_posting_numbers?: Array; +} +/** + * Check if a given object implements the V3FbsPostingDetailRelatedPostings interface. + */ +export declare function instanceOfV3FbsPostingDetailRelatedPostings(value: object): value is V3FbsPostingDetailRelatedPostings; +export declare function V3FbsPostingDetailRelatedPostingsFromJSON(json: any): V3FbsPostingDetailRelatedPostings; +export declare function V3FbsPostingDetailRelatedPostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingDetailRelatedPostings; +export declare function V3FbsPostingDetailRelatedPostingsToJSON(value?: V3FbsPostingDetailRelatedPostings | null): any; diff --git a/dist/esm/models/V3FbsPostingDetailRelatedPostings.js b/dist/esm/models/V3FbsPostingDetailRelatedPostings.js new file mode 100644 index 0000000..ed9d4c9 --- /dev/null +++ b/dist/esm/models/V3FbsPostingDetailRelatedPostings.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3FbsPostingDetailRelatedPostings interface. + */ +export function instanceOfV3FbsPostingDetailRelatedPostings(value) { + return true; +} +export function V3FbsPostingDetailRelatedPostingsFromJSON(json) { + return V3FbsPostingDetailRelatedPostingsFromJSONTyped(json, false); +} +export function V3FbsPostingDetailRelatedPostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'related_posting_numbers': json['related_posting_numbers'] == null ? undefined : json['related_posting_numbers'], + }; +} +export function V3FbsPostingDetailRelatedPostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'related_posting_numbers': value['related_posting_numbers'], + }; +} diff --git a/dist/esm/models/V3FbsPostingExemplarProductV3.d.ts b/dist/esm/models/V3FbsPostingExemplarProductV3.d.ts new file mode 100644 index 0000000..c212fe0 --- /dev/null +++ b/dist/esm/models/V3FbsPostingExemplarProductV3.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPostingProductExemplarInfoV3 } from './V3FbsPostingProductExemplarInfoV3'; +/** + * Список товаров и экземпляров. + * @export + * @interface V3FbsPostingExemplarProductV3 + */ +export interface V3FbsPostingExemplarProductV3 { + /** + * Информация по экземплярам. + * @type {Array} + * @memberof V3FbsPostingExemplarProductV3 + */ + exemplars?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V3FbsPostingExemplarProductV3 + */ + sku?: number; +} +/** + * Check if a given object implements the V3FbsPostingExemplarProductV3 interface. + */ +export declare function instanceOfV3FbsPostingExemplarProductV3(value: object): value is V3FbsPostingExemplarProductV3; +export declare function V3FbsPostingExemplarProductV3FromJSON(json: any): V3FbsPostingExemplarProductV3; +export declare function V3FbsPostingExemplarProductV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingExemplarProductV3; +export declare function V3FbsPostingExemplarProductV3ToJSON(value?: V3FbsPostingExemplarProductV3 | null): any; diff --git a/dist/esm/models/V3FbsPostingExemplarProductV3.js b/dist/esm/models/V3FbsPostingExemplarProductV3.js new file mode 100644 index 0000000..0ce5d85 --- /dev/null +++ b/dist/esm/models/V3FbsPostingExemplarProductV3.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3FbsPostingProductExemplarInfoV3FromJSON, V3FbsPostingProductExemplarInfoV3ToJSON, } from './V3FbsPostingProductExemplarInfoV3'; +/** + * Check if a given object implements the V3FbsPostingExemplarProductV3 interface. + */ +export function instanceOfV3FbsPostingExemplarProductV3(value) { + return true; +} +export function V3FbsPostingExemplarProductV3FromJSON(json) { + return V3FbsPostingExemplarProductV3FromJSONTyped(json, false); +} +export function V3FbsPostingExemplarProductV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(V3FbsPostingProductExemplarInfoV3FromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V3FbsPostingExemplarProductV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(V3FbsPostingProductExemplarInfoV3ToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V3FbsPostingProduct.d.ts b/dist/esm/models/V3FbsPostingProduct.d.ts new file mode 100644 index 0000000..0fea491 --- /dev/null +++ b/dist/esm/models/V3FbsPostingProduct.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3FbsPostingProduct + */ +export interface V3FbsPostingProduct { + /** + * Название товара. + * @type {string} + * @memberof V3FbsPostingProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V3FbsPostingProduct + */ + offer_id?: string; + /** + * Цена товара. + * @type {string} + * @memberof V3FbsPostingProduct + */ + price?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof V3FbsPostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V3FbsPostingProduct + */ + sku?: number; + /** + * Валюта ваших цен. Совпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V3FbsPostingProduct + */ + currency_code?: string; + /** + * Признак прослеживаемости товара. + * @type {boolean} + * @memberof V3FbsPostingProduct + */ + is_blr_traceable?: boolean; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof V3FbsPostingProduct + */ + is_marketplace_buyout?: boolean; + /** + * Список IMEI мобильных устройств. + * @type {Array} + * @memberof V3FbsPostingProduct + */ + imei?: Array; +} +/** + * Check if a given object implements the V3FbsPostingProduct interface. + */ +export declare function instanceOfV3FbsPostingProduct(value: object): value is V3FbsPostingProduct; +export declare function V3FbsPostingProductFromJSON(json: any): V3FbsPostingProduct; +export declare function V3FbsPostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingProduct; +export declare function V3FbsPostingProductToJSON(value?: V3FbsPostingProduct | null): any; diff --git a/dist/esm/models/V3FbsPostingProduct.js b/dist/esm/models/V3FbsPostingProduct.js new file mode 100644 index 0000000..a2eebd4 --- /dev/null +++ b/dist/esm/models/V3FbsPostingProduct.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3FbsPostingProduct interface. + */ +export function instanceOfV3FbsPostingProduct(value) { + return true; +} +export function V3FbsPostingProductFromJSON(json) { + return V3FbsPostingProductFromJSONTyped(json, false); +} +export function V3FbsPostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'imei': json['imei'] == null ? undefined : json['imei'], + }; +} +export function V3FbsPostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'currency_code': value['currency_code'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'imei': value['imei'], + }; +} diff --git a/dist/esm/models/V3FbsPostingProductExemplarInfoV3.d.ts b/dist/esm/models/V3FbsPostingProductExemplarInfoV3.d.ts new file mode 100644 index 0000000..1aa16b9 --- /dev/null +++ b/dist/esm/models/V3FbsPostingProductExemplarInfoV3.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3FbsPostingProductExemplarInfoV3 + */ +export interface V3FbsPostingProductExemplarInfoV3 { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + exemplar_id?: number; + /** + * Обязательная маркировка «Честный ЗНАК». + * @type {string} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + mandatory_mark?: string; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + gtd?: string; + /** + * Признак того, что не указан номер таможенной декларации. + * @type {boolean} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + is_gtd_absent?: boolean; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + rnpt?: string; + /** + * Признак того, что не указан регистрационный номер партии товара (РНПТ). + * @type {boolean} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + is_rnpt_absent?: boolean; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + weight?: number; + /** + * Список IMEI мобильных устройств. + * @type {Array} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + imei?: Array; +} +/** + * Check if a given object implements the V3FbsPostingProductExemplarInfoV3 interface. + */ +export declare function instanceOfV3FbsPostingProductExemplarInfoV3(value: object): value is V3FbsPostingProductExemplarInfoV3; +export declare function V3FbsPostingProductExemplarInfoV3FromJSON(json: any): V3FbsPostingProductExemplarInfoV3; +export declare function V3FbsPostingProductExemplarInfoV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingProductExemplarInfoV3; +export declare function V3FbsPostingProductExemplarInfoV3ToJSON(value?: V3FbsPostingProductExemplarInfoV3 | null): any; diff --git a/dist/esm/models/V3FbsPostingProductExemplarInfoV3.js b/dist/esm/models/V3FbsPostingProductExemplarInfoV3.js new file mode 100644 index 0000000..fff923d --- /dev/null +++ b/dist/esm/models/V3FbsPostingProductExemplarInfoV3.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3FbsPostingProductExemplarInfoV3 interface. + */ +export function instanceOfV3FbsPostingProductExemplarInfoV3(value) { + return true; +} +export function V3FbsPostingProductExemplarInfoV3FromJSON(json) { + return V3FbsPostingProductExemplarInfoV3FromJSONTyped(json, false); +} +export function V3FbsPostingProductExemplarInfoV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'mandatory_mark': json['mandatory_mark'] == null ? undefined : json['mandatory_mark'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'is_gtd_absent': json['is_gtd_absent'] == null ? undefined : json['is_gtd_absent'], + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'is_rnpt_absent': json['is_rnpt_absent'] == null ? undefined : json['is_rnpt_absent'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'imei': json['imei'] == null ? undefined : json['imei'], + }; +} +export function V3FbsPostingProductExemplarInfoV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'mandatory_mark': value['mandatory_mark'], + 'gtd': value['gtd'], + 'is_gtd_absent': value['is_gtd_absent'], + 'rnpt': value['rnpt'], + 'is_rnpt_absent': value['is_rnpt_absent'], + 'weight': value['weight'], + 'imei': value['imei'], + }; +} diff --git a/dist/esm/models/V3FbsPostingProductExemplarsV3.d.ts b/dist/esm/models/V3FbsPostingProductExemplarsV3.d.ts new file mode 100644 index 0000000..37a1ba0 --- /dev/null +++ b/dist/esm/models/V3FbsPostingProductExemplarsV3.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPostingExemplarProductV3 } from './V3FbsPostingExemplarProductV3'; +/** + * Информация по продуктам и их экземплярам. + * + * Ответ содержит поле `product_exemplars`, если в запросе передан признак `with.product_exemplars = true`. + * + * @export + * @interface V3FbsPostingProductExemplarsV3 + */ +export interface V3FbsPostingProductExemplarsV3 { + /** + * Информация по продуктам. + * @type {Array} + * @memberof V3FbsPostingProductExemplarsV3 + */ + products?: Array; +} +/** + * Check if a given object implements the V3FbsPostingProductExemplarsV3 interface. + */ +export declare function instanceOfV3FbsPostingProductExemplarsV3(value: object): value is V3FbsPostingProductExemplarsV3; +export declare function V3FbsPostingProductExemplarsV3FromJSON(json: any): V3FbsPostingProductExemplarsV3; +export declare function V3FbsPostingProductExemplarsV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingProductExemplarsV3; +export declare function V3FbsPostingProductExemplarsV3ToJSON(value?: V3FbsPostingProductExemplarsV3 | null): any; diff --git a/dist/esm/models/V3FbsPostingProductExemplarsV3.js b/dist/esm/models/V3FbsPostingProductExemplarsV3.js new file mode 100644 index 0000000..42e488b --- /dev/null +++ b/dist/esm/models/V3FbsPostingProductExemplarsV3.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3FbsPostingExemplarProductV3FromJSON, V3FbsPostingExemplarProductV3ToJSON, } from './V3FbsPostingExemplarProductV3'; +/** + * Check if a given object implements the V3FbsPostingProductExemplarsV3 interface. + */ +export function instanceOfV3FbsPostingProductExemplarsV3(value) { + return true; +} +export function V3FbsPostingProductExemplarsV3FromJSON(json) { + return V3FbsPostingProductExemplarsV3FromJSONTyped(json, false); +} +export function V3FbsPostingProductExemplarsV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(V3FbsPostingExemplarProductV3FromJSON)), + }; +} +export function V3FbsPostingProductExemplarsV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(V3FbsPostingExemplarProductV3ToJSON)), + }; +} diff --git a/dist/esm/models/V3FbsPostingRequirementsV3.d.ts b/dist/esm/models/V3FbsPostingRequirementsV3.d.ts new file mode 100644 index 0000000..83da50b --- /dev/null +++ b/dist/esm/models/V3FbsPostingRequirementsV3.d.ts @@ -0,0 +1,89 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Cписок продуктов, для которых нужно передать страну-изготовителя, номер грузовой таможенной декларации (ГТД), регистрационный номер партии товара (РНПТ), маркировку «Честный ЗНАК», другие маркировки или вес, чтобы перевести отправление в следующий статус. + * @export + * @interface V3FbsPostingRequirementsV3 + */ +export interface V3FbsPostingRequirementsV3 { + /** + * Список идентификаторов товаров (SKU), для которых нужно изменить страну-изготовитель. Чтобы изменить страну-изготовитель, используйте методы [/v2/posting/fbs/product/country/list](#operation/PostingAPI_ListCountryProductFbsPostingV2) и [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_change_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать номера таможенной декларации (ГТД). + * + * До сборки отправления передайте для всех перечисленных товаров номер таможенной декларации или информацию о том, + * что номера нет, методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_gtd?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать информацию о стране-изготовителе. + * + * Для сборки отправления передайте информацию о стране-изготовителе для всех перечисленных товаров с помощью метода [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать маркировку «Честный ЗНАК». + * + * До сборки отправления передайте для всех перечисленных товаров маркировку «Честный ЗНАК» методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_mandatory_mark?: Array; + /** + * Список товаров, для которых нужно передать уникальный идентификационный номер (УИН) ювелирного изделия. + * + * До сборки отправления передайте для всех перечисленных товаров уникальный идентификационный номер (УИН) методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_jw_uin?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать регистрационный номер партии товара (РНПТ). + * + * До сборки отправления передайте для всех перечисленных товаров регистрационный номер партии товара (РНПТ) методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_rnpt?: Array; + /** + * Список товаров, для которых нужно передать вес. + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_weight?: Array; + /** + * Список идентификаторов товаров, для которых нужно передать IMEI. + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_imei?: Array; +} +/** + * Check if a given object implements the V3FbsPostingRequirementsV3 interface. + */ +export declare function instanceOfV3FbsPostingRequirementsV3(value: object): value is V3FbsPostingRequirementsV3; +export declare function V3FbsPostingRequirementsV3FromJSON(json: any): V3FbsPostingRequirementsV3; +export declare function V3FbsPostingRequirementsV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingRequirementsV3; +export declare function V3FbsPostingRequirementsV3ToJSON(value?: V3FbsPostingRequirementsV3 | null): any; diff --git a/dist/esm/models/V3FbsPostingRequirementsV3.js b/dist/esm/models/V3FbsPostingRequirementsV3.js new file mode 100644 index 0000000..680a9fc --- /dev/null +++ b/dist/esm/models/V3FbsPostingRequirementsV3.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3FbsPostingRequirementsV3 interface. + */ +export function instanceOfV3FbsPostingRequirementsV3(value) { + return true; +} +export function V3FbsPostingRequirementsV3FromJSON(json) { + return V3FbsPostingRequirementsV3FromJSONTyped(json, false); +} +export function V3FbsPostingRequirementsV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_requiring_change_country': json['products_requiring_change_country'] == null ? undefined : json['products_requiring_change_country'], + 'products_requiring_gtd': json['products_requiring_gtd'] == null ? undefined : json['products_requiring_gtd'], + 'products_requiring_country': json['products_requiring_country'] == null ? undefined : json['products_requiring_country'], + 'products_requiring_mandatory_mark': json['products_requiring_mandatory_mark'] == null ? undefined : json['products_requiring_mandatory_mark'], + 'products_requiring_jw_uin': json['products_requiring_jw_uin'] == null ? undefined : json['products_requiring_jw_uin'], + 'products_requiring_rnpt': json['products_requiring_rnpt'] == null ? undefined : json['products_requiring_rnpt'], + 'products_requiring_weight': json['products_requiring_weight'] == null ? undefined : json['products_requiring_weight'], + 'products_requiring_imei': json['products_requiring_imei'] == null ? undefined : json['products_requiring_imei'], + }; +} +export function V3FbsPostingRequirementsV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_requiring_change_country': value['products_requiring_change_country'], + 'products_requiring_gtd': value['products_requiring_gtd'], + 'products_requiring_country': value['products_requiring_country'], + 'products_requiring_mandatory_mark': value['products_requiring_mandatory_mark'], + 'products_requiring_jw_uin': value['products_requiring_jw_uin'], + 'products_requiring_rnpt': value['products_requiring_rnpt'], + 'products_requiring_weight': value['products_requiring_weight'], + 'products_requiring_imei': value['products_requiring_imei'], + }; +} diff --git a/dist/esm/models/V3FbsTariffication.d.ts b/dist/esm/models/V3FbsTariffication.d.ts new file mode 100644 index 0000000..2b9af46 --- /dev/null +++ b/dist/esm/models/V3FbsTariffication.d.ts @@ -0,0 +1,84 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация по тарификации отгрузки. + * @export + * @interface V3FbsTariffication + */ +export interface V3FbsTariffication { + /** + * Текущий процент тарификации. + * @type {number} + * @memberof V3FbsTariffication + */ + current_tariff_rate?: number; + /** + * Текущий тип тарификации — скидка или надбавка. + * @type {string} + * @memberof V3FbsTariffication + */ + current_tariff_type?: string; + /** + * Текущая сумма скидки или надбавки. + * @type {string} + * @memberof V3FbsTariffication + */ + current_tariff_charge?: string; + /** + * Валюта суммы. + * @type {string} + * @memberof V3FbsTariffication + */ + current_tariff_charge_currency_code?: string; + /** + * Процент, по которому будет тарифицироваться отправление через указанное в параметре `next_tariff_starts_at` время. + * @type {number} + * @memberof V3FbsTariffication + */ + next_tariff_rate?: number; + /** + * Тип тарифа, по которому будет тарифицироваться отправление через указанное в параметре `next_tariff_starts_at` время — скидка или надбавка. + * @type {string} + * @memberof V3FbsTariffication + */ + next_tariff_type?: string; + /** + * Сумма скидки или надбавки на следующем шаге тарификации. + * @type {string} + * @memberof V3FbsTariffication + */ + next_tariff_charge?: string; + /** + * Дата и время, когда начнёт применяться новый тариф. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. + * + * Пример: `2023-11-13T08:05:57.657Z`. + * + * @type {string} + * @memberof V3FbsTariffication + */ + next_tariff_starts_at?: string; + /** + * Валюта нового тарифа. + * @type {string} + * @memberof V3FbsTariffication + */ + next_tariff_charge_currency_code?: string; +} +/** + * Check if a given object implements the V3FbsTariffication interface. + */ +export declare function instanceOfV3FbsTariffication(value: object): value is V3FbsTariffication; +export declare function V3FbsTarifficationFromJSON(json: any): V3FbsTariffication; +export declare function V3FbsTarifficationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsTariffication; +export declare function V3FbsTarifficationToJSON(value?: V3FbsTariffication | null): any; diff --git a/dist/esm/models/V3FbsTariffication.js b/dist/esm/models/V3FbsTariffication.js new file mode 100644 index 0000000..69b2425 --- /dev/null +++ b/dist/esm/models/V3FbsTariffication.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3FbsTariffication interface. + */ +export function instanceOfV3FbsTariffication(value) { + return true; +} +export function V3FbsTarifficationFromJSON(json) { + return V3FbsTarifficationFromJSONTyped(json, false); +} +export function V3FbsTarifficationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_tariff_rate': json['current_tariff_rate'] == null ? undefined : json['current_tariff_rate'], + 'current_tariff_type': json['current_tariff_type'] == null ? undefined : json['current_tariff_type'], + 'current_tariff_charge': json['current_tariff_charge'] == null ? undefined : json['current_tariff_charge'], + 'current_tariff_charge_currency_code': json['current_tariff_charge_currency_code'] == null ? undefined : json['current_tariff_charge_currency_code'], + 'next_tariff_rate': json['next_tariff_rate'] == null ? undefined : json['next_tariff_rate'], + 'next_tariff_type': json['next_tariff_type'] == null ? undefined : json['next_tariff_type'], + 'next_tariff_charge': json['next_tariff_charge'] == null ? undefined : json['next_tariff_charge'], + 'next_tariff_starts_at': json['next_tariff_starts_at'] == null ? undefined : json['next_tariff_starts_at'], + 'next_tariff_charge_currency_code': json['next_tariff_charge_currency_code'] == null ? undefined : json['next_tariff_charge_currency_code'], + }; +} +export function V3FbsTarifficationToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_tariff_rate': value['current_tariff_rate'], + 'current_tariff_type': value['current_tariff_type'], + 'current_tariff_charge': value['current_tariff_charge'], + 'current_tariff_charge_currency_code': value['current_tariff_charge_currency_code'], + 'next_tariff_rate': value['next_tariff_rate'], + 'next_tariff_type': value['next_tariff_type'], + 'next_tariff_charge': value['next_tariff_charge'], + 'next_tariff_starts_at': value['next_tariff_starts_at'], + 'next_tariff_charge_currency_code': value['next_tariff_charge_currency_code'], + }; +} diff --git a/dist/esm/models/V3FinanceCashFlowStatementListRequest.d.ts b/dist/esm/models/V3FinanceCashFlowStatementListRequest.d.ts new file mode 100644 index 0000000..c2045f8 --- /dev/null +++ b/dist/esm/models/V3FinanceCashFlowStatementListRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Financev3Period } from './Financev3Period'; +/** + * + * @export + * @interface V3FinanceCashFlowStatementListRequest + */ +export interface V3FinanceCashFlowStatementListRequest { + /** + * + * @type {Financev3Period} + * @memberof V3FinanceCashFlowStatementListRequest + */ + date: Financev3Period; + /** + * Номер страницы, возвращаемой в запросе. + * @type {number} + * @memberof V3FinanceCashFlowStatementListRequest + */ + page: number; + /** + * `true`, если нужно добавить дополнительные параметры в ответ. + * @type {boolean} + * @memberof V3FinanceCashFlowStatementListRequest + */ + with_details?: boolean; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V3FinanceCashFlowStatementListRequest + */ + page_size: number; +} +/** + * Check if a given object implements the V3FinanceCashFlowStatementListRequest interface. + */ +export declare function instanceOfV3FinanceCashFlowStatementListRequest(value: object): value is V3FinanceCashFlowStatementListRequest; +export declare function V3FinanceCashFlowStatementListRequestFromJSON(json: any): V3FinanceCashFlowStatementListRequest; +export declare function V3FinanceCashFlowStatementListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FinanceCashFlowStatementListRequest; +export declare function V3FinanceCashFlowStatementListRequestToJSON(value?: V3FinanceCashFlowStatementListRequest | null): any; diff --git a/dist/esm/models/V3FinanceCashFlowStatementListRequest.js b/dist/esm/models/V3FinanceCashFlowStatementListRequest.js new file mode 100644 index 0000000..3b13655 --- /dev/null +++ b/dist/esm/models/V3FinanceCashFlowStatementListRequest.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Financev3PeriodFromJSON, Financev3PeriodToJSON, } from './Financev3Period'; +/** + * Check if a given object implements the V3FinanceCashFlowStatementListRequest interface. + */ +export function instanceOfV3FinanceCashFlowStatementListRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +export function V3FinanceCashFlowStatementListRequestFromJSON(json) { + return V3FinanceCashFlowStatementListRequestFromJSONTyped(json, false); +} +export function V3FinanceCashFlowStatementListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': Financev3PeriodFromJSON(json['date']), + 'page': json['page'], + 'with_details': json['with_details'] == null ? undefined : json['with_details'], + 'page_size': json['page_size'], + }; +} +export function V3FinanceCashFlowStatementListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': Financev3PeriodToJSON(value['date']), + 'page': value['page'], + 'with_details': value['with_details'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/esm/models/V3FinanceCashFlowStatementListResponse.d.ts b/dist/esm/models/V3FinanceCashFlowStatementListResponse.d.ts new file mode 100644 index 0000000..275e2f2 --- /dev/null +++ b/dist/esm/models/V3FinanceCashFlowStatementListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FinanceCashFlowStatementListResponseResult } from './V3FinanceCashFlowStatementListResponseResult'; +/** + * + * @export + * @interface V3FinanceCashFlowStatementListResponse + */ +export interface V3FinanceCashFlowStatementListResponse { + /** + * + * @type {V3FinanceCashFlowStatementListResponseResult} + * @memberof V3FinanceCashFlowStatementListResponse + */ + result?: V3FinanceCashFlowStatementListResponseResult; +} +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponse interface. + */ +export declare function instanceOfV3FinanceCashFlowStatementListResponse(value: object): value is V3FinanceCashFlowStatementListResponse; +export declare function V3FinanceCashFlowStatementListResponseFromJSON(json: any): V3FinanceCashFlowStatementListResponse; +export declare function V3FinanceCashFlowStatementListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FinanceCashFlowStatementListResponse; +export declare function V3FinanceCashFlowStatementListResponseToJSON(value?: V3FinanceCashFlowStatementListResponse | null): any; diff --git a/dist/esm/models/V3FinanceCashFlowStatementListResponse.js b/dist/esm/models/V3FinanceCashFlowStatementListResponse.js new file mode 100644 index 0000000..ea4f16e --- /dev/null +++ b/dist/esm/models/V3FinanceCashFlowStatementListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3FinanceCashFlowStatementListResponseResultFromJSON, V3FinanceCashFlowStatementListResponseResultToJSON, } from './V3FinanceCashFlowStatementListResponseResult'; +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponse interface. + */ +export function instanceOfV3FinanceCashFlowStatementListResponse(value) { + return true; +} +export function V3FinanceCashFlowStatementListResponseFromJSON(json) { + return V3FinanceCashFlowStatementListResponseFromJSONTyped(json, false); +} +export function V3FinanceCashFlowStatementListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V3FinanceCashFlowStatementListResponseResultFromJSON(json['result']), + }; +} +export function V3FinanceCashFlowStatementListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V3FinanceCashFlowStatementListResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V3FinanceCashFlowStatementListResponsePeriod.d.ts b/dist/esm/models/V3FinanceCashFlowStatementListResponsePeriod.d.ts new file mode 100644 index 0000000..e7789fc --- /dev/null +++ b/dist/esm/models/V3FinanceCashFlowStatementListResponsePeriod.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период. + * @export + * @interface V3FinanceCashFlowStatementListResponsePeriod + */ +export interface V3FinanceCashFlowStatementListResponsePeriod { + /** + * Начало периода. + * @type {string} + * @memberof V3FinanceCashFlowStatementListResponsePeriod + */ + begin?: string; + /** + * Конец периода. + * @type {string} + * @memberof V3FinanceCashFlowStatementListResponsePeriod + */ + end?: string; + /** + * Идентификатор. + * @type {number} + * @memberof V3FinanceCashFlowStatementListResponsePeriod + */ + id?: number; +} +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponsePeriod interface. + */ +export declare function instanceOfV3FinanceCashFlowStatementListResponsePeriod(value: object): value is V3FinanceCashFlowStatementListResponsePeriod; +export declare function V3FinanceCashFlowStatementListResponsePeriodFromJSON(json: any): V3FinanceCashFlowStatementListResponsePeriod; +export declare function V3FinanceCashFlowStatementListResponsePeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FinanceCashFlowStatementListResponsePeriod; +export declare function V3FinanceCashFlowStatementListResponsePeriodToJSON(value?: V3FinanceCashFlowStatementListResponsePeriod | null): any; diff --git a/dist/esm/models/V3FinanceCashFlowStatementListResponsePeriod.js b/dist/esm/models/V3FinanceCashFlowStatementListResponsePeriod.js new file mode 100644 index 0000000..a7f1d8e --- /dev/null +++ b/dist/esm/models/V3FinanceCashFlowStatementListResponsePeriod.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponsePeriod interface. + */ +export function instanceOfV3FinanceCashFlowStatementListResponsePeriod(value) { + return true; +} +export function V3FinanceCashFlowStatementListResponsePeriodFromJSON(json) { + return V3FinanceCashFlowStatementListResponsePeriodFromJSONTyped(json, false); +} +export function V3FinanceCashFlowStatementListResponsePeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'begin': json['begin'] == null ? undefined : json['begin'], + 'end': json['end'] == null ? undefined : json['end'], + 'id': json['id'] == null ? undefined : json['id'], + }; +} +export function V3FinanceCashFlowStatementListResponsePeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'begin': value['begin'], + 'end': value['end'], + 'id': value['id'], + }; +} diff --git a/dist/esm/models/V3FinanceCashFlowStatementListResponseResult.d.ts b/dist/esm/models/V3FinanceCashFlowStatementListResponseResult.d.ts new file mode 100644 index 0000000..4b4f14e --- /dev/null +++ b/dist/esm/models/V3FinanceCashFlowStatementListResponseResult.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseCashFlow } from './FinanceCashFlowStatementListResponseCashFlow'; +import type { FinanceCashFlowStatementListResponseDetails } from './FinanceCashFlowStatementListResponseDetails'; +/** + * Результат работы метода. + * @export + * @interface V3FinanceCashFlowStatementListResponseResult + */ +export interface V3FinanceCashFlowStatementListResponseResult { + /** + * Список отчётов. + * @type {Array} + * @memberof V3FinanceCashFlowStatementListResponseResult + */ + cash_flows?: Array; + /** + * + * @type {FinanceCashFlowStatementListResponseDetails} + * @memberof V3FinanceCashFlowStatementListResponseResult + */ + details?: FinanceCashFlowStatementListResponseDetails; + /** + * Количество страниц с отчётами. + * @type {number} + * @memberof V3FinanceCashFlowStatementListResponseResult + */ + page_count?: number; +} +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponseResult interface. + */ +export declare function instanceOfV3FinanceCashFlowStatementListResponseResult(value: object): value is V3FinanceCashFlowStatementListResponseResult; +export declare function V3FinanceCashFlowStatementListResponseResultFromJSON(json: any): V3FinanceCashFlowStatementListResponseResult; +export declare function V3FinanceCashFlowStatementListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FinanceCashFlowStatementListResponseResult; +export declare function V3FinanceCashFlowStatementListResponseResultToJSON(value?: V3FinanceCashFlowStatementListResponseResult | null): any; diff --git a/dist/esm/models/V3FinanceCashFlowStatementListResponseResult.js b/dist/esm/models/V3FinanceCashFlowStatementListResponseResult.js new file mode 100644 index 0000000..7e5927b --- /dev/null +++ b/dist/esm/models/V3FinanceCashFlowStatementListResponseResult.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FinanceCashFlowStatementListResponseCashFlowFromJSON, FinanceCashFlowStatementListResponseCashFlowToJSON, } from './FinanceCashFlowStatementListResponseCashFlow'; +import { FinanceCashFlowStatementListResponseDetailsFromJSON, FinanceCashFlowStatementListResponseDetailsToJSON, } from './FinanceCashFlowStatementListResponseDetails'; +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponseResult interface. + */ +export function instanceOfV3FinanceCashFlowStatementListResponseResult(value) { + return true; +} +export function V3FinanceCashFlowStatementListResponseResultFromJSON(json) { + return V3FinanceCashFlowStatementListResponseResultFromJSONTyped(json, false); +} +export function V3FinanceCashFlowStatementListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cash_flows': json['cash_flows'] == null ? undefined : (json['cash_flows'].map(FinanceCashFlowStatementListResponseCashFlowFromJSON)), + 'details': json['details'] == null ? undefined : FinanceCashFlowStatementListResponseDetailsFromJSON(json['details']), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + }; +} +export function V3FinanceCashFlowStatementListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'cash_flows': value['cash_flows'] == null ? undefined : (value['cash_flows'].map(FinanceCashFlowStatementListResponseCashFlowToJSON)), + 'details': FinanceCashFlowStatementListResponseDetailsToJSON(value['details']), + 'page_count': value['page_count'], + }; +} diff --git a/dist/esm/models/V3GetFbsPostingListResponseV3.d.ts b/dist/esm/models/V3GetFbsPostingListResponseV3.d.ts new file mode 100644 index 0000000..7e45c78 --- /dev/null +++ b/dist/esm/models/V3GetFbsPostingListResponseV3.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3GetFbsPostingListResponseV3Result } from './V3GetFbsPostingListResponseV3Result'; +/** + * + * @export + * @interface V3GetFbsPostingListResponseV3 + */ +export interface V3GetFbsPostingListResponseV3 { + /** + * + * @type {V3GetFbsPostingListResponseV3Result} + * @memberof V3GetFbsPostingListResponseV3 + */ + result?: V3GetFbsPostingListResponseV3Result; +} +/** + * Check if a given object implements the V3GetFbsPostingListResponseV3 interface. + */ +export declare function instanceOfV3GetFbsPostingListResponseV3(value: object): value is V3GetFbsPostingListResponseV3; +export declare function V3GetFbsPostingListResponseV3FromJSON(json: any): V3GetFbsPostingListResponseV3; +export declare function V3GetFbsPostingListResponseV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetFbsPostingListResponseV3; +export declare function V3GetFbsPostingListResponseV3ToJSON(value?: V3GetFbsPostingListResponseV3 | null): any; diff --git a/dist/esm/models/V3GetFbsPostingListResponseV3.js b/dist/esm/models/V3GetFbsPostingListResponseV3.js new file mode 100644 index 0000000..aa8aaca --- /dev/null +++ b/dist/esm/models/V3GetFbsPostingListResponseV3.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3GetFbsPostingListResponseV3ResultFromJSON, V3GetFbsPostingListResponseV3ResultToJSON, } from './V3GetFbsPostingListResponseV3Result'; +/** + * Check if a given object implements the V3GetFbsPostingListResponseV3 interface. + */ +export function instanceOfV3GetFbsPostingListResponseV3(value) { + return true; +} +export function V3GetFbsPostingListResponseV3FromJSON(json) { + return V3GetFbsPostingListResponseV3FromJSONTyped(json, false); +} +export function V3GetFbsPostingListResponseV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V3GetFbsPostingListResponseV3ResultFromJSON(json['result']), + }; +} +export function V3GetFbsPostingListResponseV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V3GetFbsPostingListResponseV3ResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V3GetFbsPostingListResponseV3Result.d.ts b/dist/esm/models/V3GetFbsPostingListResponseV3Result.d.ts new file mode 100644 index 0000000..2e43fa1 --- /dev/null +++ b/dist/esm/models/V3GetFbsPostingListResponseV3Result.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPosting } from './V3FbsPosting'; +/** + * Массив отправлений. + * @export + * @interface V3GetFbsPostingListResponseV3Result + */ +export interface V3GetFbsPostingListResponseV3Result { + /** + * Признак, что в ответе вернули не весь массив отправлений: + * - `true` — необходимо сделать новый запрос с другим значением `offset`, чтобы получить информацию об остальных отправлениях; + * - `false` — в ответе вернули весь массив отправлений для фильтра, который был задан в запросе. + * + * @type {boolean} + * @memberof V3GetFbsPostingListResponseV3Result + */ + has_next?: boolean; + /** + * Информация об отправлении. + * @type {Array} + * @memberof V3GetFbsPostingListResponseV3Result + */ + postings?: Array; +} +/** + * Check if a given object implements the V3GetFbsPostingListResponseV3Result interface. + */ +export declare function instanceOfV3GetFbsPostingListResponseV3Result(value: object): value is V3GetFbsPostingListResponseV3Result; +export declare function V3GetFbsPostingListResponseV3ResultFromJSON(json: any): V3GetFbsPostingListResponseV3Result; +export declare function V3GetFbsPostingListResponseV3ResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetFbsPostingListResponseV3Result; +export declare function V3GetFbsPostingListResponseV3ResultToJSON(value?: V3GetFbsPostingListResponseV3Result | null): any; diff --git a/dist/esm/models/V3GetFbsPostingListResponseV3Result.js b/dist/esm/models/V3GetFbsPostingListResponseV3Result.js new file mode 100644 index 0000000..6e9cf56 --- /dev/null +++ b/dist/esm/models/V3GetFbsPostingListResponseV3Result.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3FbsPostingFromJSON, V3FbsPostingToJSON, } from './V3FbsPosting'; +/** + * Check if a given object implements the V3GetFbsPostingListResponseV3Result interface. + */ +export function instanceOfV3GetFbsPostingListResponseV3Result(value) { + return true; +} +export function V3GetFbsPostingListResponseV3ResultFromJSON(json) { + return V3GetFbsPostingListResponseV3ResultFromJSONTyped(json, false); +} +export function V3GetFbsPostingListResponseV3ResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V3FbsPostingFromJSON)), + }; +} +export function V3GetFbsPostingListResponseV3ResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V3FbsPostingToJSON)), + }; +} diff --git a/dist/esm/models/V3GetFbsPostingResponseV3.d.ts b/dist/esm/models/V3GetFbsPostingResponseV3.d.ts new file mode 100644 index 0000000..717e2b5 --- /dev/null +++ b/dist/esm/models/V3GetFbsPostingResponseV3.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPostingDetail } from './V3FbsPostingDetail'; +/** + * + * @export + * @interface V3GetFbsPostingResponseV3 + */ +export interface V3GetFbsPostingResponseV3 { + /** + * + * @type {V3FbsPostingDetail} + * @memberof V3GetFbsPostingResponseV3 + */ + result?: V3FbsPostingDetail; +} +/** + * Check if a given object implements the V3GetFbsPostingResponseV3 interface. + */ +export declare function instanceOfV3GetFbsPostingResponseV3(value: object): value is V3GetFbsPostingResponseV3; +export declare function V3GetFbsPostingResponseV3FromJSON(json: any): V3GetFbsPostingResponseV3; +export declare function V3GetFbsPostingResponseV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetFbsPostingResponseV3; +export declare function V3GetFbsPostingResponseV3ToJSON(value?: V3GetFbsPostingResponseV3 | null): any; diff --git a/dist/esm/models/V3GetFbsPostingResponseV3.js b/dist/esm/models/V3GetFbsPostingResponseV3.js new file mode 100644 index 0000000..96bdc2f --- /dev/null +++ b/dist/esm/models/V3GetFbsPostingResponseV3.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3FbsPostingDetailFromJSON, V3FbsPostingDetailToJSON, } from './V3FbsPostingDetail'; +/** + * Check if a given object implements the V3GetFbsPostingResponseV3 interface. + */ +export function instanceOfV3GetFbsPostingResponseV3(value) { + return true; +} +export function V3GetFbsPostingResponseV3FromJSON(json) { + return V3GetFbsPostingResponseV3FromJSONTyped(json, false); +} +export function V3GetFbsPostingResponseV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V3FbsPostingDetailFromJSON(json['result']), + }; +} +export function V3GetFbsPostingResponseV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V3FbsPostingDetailToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V3GetProductInfoListRequest.d.ts b/dist/esm/models/V3GetProductInfoListRequest.d.ts new file mode 100644 index 0000000..bebeb61 --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3GetProductInfoListRequest + */ +export interface V3GetProductInfoListRequest { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {Array} + * @memberof V3GetProductInfoListRequest + */ + offer_id?: Array; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {Array} + * @memberof V3GetProductInfoListRequest + */ + product_id?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof V3GetProductInfoListRequest + */ + sku?: Array; +} +/** + * Check if a given object implements the V3GetProductInfoListRequest interface. + */ +export declare function instanceOfV3GetProductInfoListRequest(value: object): value is V3GetProductInfoListRequest; +export declare function V3GetProductInfoListRequestFromJSON(json: any): V3GetProductInfoListRequest; +export declare function V3GetProductInfoListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListRequest; +export declare function V3GetProductInfoListRequestToJSON(value?: V3GetProductInfoListRequest | null): any; diff --git a/dist/esm/models/V3GetProductInfoListRequest.js b/dist/esm/models/V3GetProductInfoListRequest.js new file mode 100644 index 0000000..a851c1a --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListRequest.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3GetProductInfoListRequest interface. + */ +export function instanceOfV3GetProductInfoListRequest(value) { + return true; +} +export function V3GetProductInfoListRequestFromJSON(json) { + return V3GetProductInfoListRequestFromJSONTyped(json, false); +} +export function V3GetProductInfoListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +export function V3GetProductInfoListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/esm/models/V3GetProductInfoListResponse.d.ts b/dist/esm/models/V3GetProductInfoListResponse.d.ts new file mode 100644 index 0000000..f992a69 --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3GetProductInfoListResponseItem } from './V3GetProductInfoListResponseItem'; +/** + * + * @export + * @interface V3GetProductInfoListResponse + */ +export interface V3GetProductInfoListResponse { + /** + * Массив данных. + * @type {Array} + * @memberof V3GetProductInfoListResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V3GetProductInfoListResponse interface. + */ +export declare function instanceOfV3GetProductInfoListResponse(value: object): value is V3GetProductInfoListResponse; +export declare function V3GetProductInfoListResponseFromJSON(json: any): V3GetProductInfoListResponse; +export declare function V3GetProductInfoListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListResponse; +export declare function V3GetProductInfoListResponseToJSON(value?: V3GetProductInfoListResponse | null): any; diff --git a/dist/esm/models/V3GetProductInfoListResponse.js b/dist/esm/models/V3GetProductInfoListResponse.js new file mode 100644 index 0000000..fc115f9 --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3GetProductInfoListResponseItemFromJSON, V3GetProductInfoListResponseItemToJSON, } from './V3GetProductInfoListResponseItem'; +/** + * Check if a given object implements the V3GetProductInfoListResponse interface. + */ +export function instanceOfV3GetProductInfoListResponse(value) { + return true; +} +export function V3GetProductInfoListResponseFromJSON(json) { + return V3GetProductInfoListResponseFromJSONTyped(json, false); +} +export function V3GetProductInfoListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V3GetProductInfoListResponseItemFromJSON)), + }; +} +export function V3GetProductInfoListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V3GetProductInfoListResponseItemToJSON)), + }; +} diff --git a/dist/esm/models/V3GetProductInfoListResponseItem.d.ts b/dist/esm/models/V3GetProductInfoListResponseItem.d.ts new file mode 100644 index 0000000..8238c0f --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListResponseItem.d.ts @@ -0,0 +1,266 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductInfoListResponseModelInfo } from './GetProductInfoListResponseModelInfo'; +import type { GetProductInfoListResponseSource } from './GetProductInfoListResponseSource'; +import type { V3GetProductInfoListResponsePromotion } from './V3GetProductInfoListResponsePromotion'; +import type { GetProductInfoListResponseStocks } from './GetProductInfoListResponseStocks'; +import type { GetProductInfoListResponsePriceIndexes } from './GetProductInfoListResponsePriceIndexes'; +import type { GetProductInfoListResponseCommission } from './GetProductInfoListResponseCommission'; +import type { GetProductInfoListResponseError } from './GetProductInfoListResponseError'; +import type { GetProductInfoListResponseVisibilityDetails } from './GetProductInfoListResponseVisibilityDetails'; +import type { GetProductInfoListResponseAvailability } from './GetProductInfoListResponseAvailability'; +import type { GetProductInfoListResponseStatuses } from './GetProductInfoListResponseStatuses'; +/** + * + * @export + * @interface V3GetProductInfoListResponseItem + */ +export interface V3GetProductInfoListResponseItem { + /** + * Информация о доступности товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + availabilities?: Array; + /** + * Все штрихкоды товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + barcodes?: Array; + /** + * Изображение цвета товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + color_image?: Array; + /** + * Информация о комиссиях. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + commissions?: Array; + /** + * Дата и время создания товара. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + created_at?: string; + /** + * Валюта. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + currency_code?: string; + /** + * Идентификатор категории. + * Используйте его с методами [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) и [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + description_category_id?: number; + /** + * Остатки уценённого товара на складе Ozon. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + discounted_fbo_stocks?: number; + /** + * Информация об ошибках при создании или валидации товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + errors?: Array; + /** + * Признак, что у товара есть уценённые аналоги на складе Ozon. + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + has_discounted_fbo_item?: boolean; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + id?: number; + /** + * Массив ссылок на изображения. Изображения в массиве расположены в порядке их расположения на сайте. Если параметр + * `primary_image` не указан, первое изображение в массиве главное для товара. + * + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + images?: Array; + /** + * `true`, если товар архивирован вручную. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_archived?: boolean; + /** + * `true`, если товар архивирован автоматически. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_autoarchived?: boolean; + /** + * Признак, является ли товар уценённым: + * - Если товар создавался продавцом как уценённый — `true`. + * - Если товар не уценённый или был уценён Ozon — `false`. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_discounted?: boolean; + /** + * `true`, если товар крупногабаритный. Только для схемы FBS. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_kgt?: boolean; + /** + * `true`, если возможна предоплата. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + * @deprecated + */ + is_prepayment_allowed?: boolean; + /** + * Признак супер-товара. + * + * [Подробнее о супер-товарах в Базе знаний продавца](https://seller-edu.ozon.ru/fbo/rabota-so-stokom/super-tovary) + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_super?: boolean; + /** + * Минимальная цена товара после применения акций. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + min_price?: string; + /** + * + * @type {GetProductInfoListResponseModelInfo} + * @memberof V3GetProductInfoListResponseItem + */ + model_info?: GetProductInfoListResponseModelInfo; + /** + * Название. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + offer_id?: string; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + old_price?: string; + /** + * Цена товара с учётом скидок — это значение показывается на карточке товара. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + price?: string; + /** + * + * @type {GetProductInfoListResponsePriceIndexes} + * @memberof V3GetProductInfoListResponseItem + */ + price_indexes?: GetProductInfoListResponsePriceIndexes; + /** + * Главное изображение товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + primary_image?: Array; + /** + * Акции. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + promotions?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + sku?: number; + /** + * Информация об источниках создания товара. С 1 июля 2023 года продавцы создают товары по схеме SDS. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + sources?: Array; + /** + * + * @type {GetProductInfoListResponseStatuses} + * @memberof V3GetProductInfoListResponseItem + */ + statuses?: GetProductInfoListResponseStatuses; + /** + * + * @type {GetProductInfoListResponseStocks} + * @memberof V3GetProductInfoListResponseItem + */ + stocks?: GetProductInfoListResponseStocks; + /** + * Идентификатор типа товара. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + type_id?: number; + /** + * Дата последнего обновления товара. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + updated_at?: string; + /** + * Ставка НДС для товара. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + vat?: string; + /** + * + * @type {GetProductInfoListResponseVisibilityDetails} + * @memberof V3GetProductInfoListResponseItem + */ + visibility_details?: GetProductInfoListResponseVisibilityDetails; + /** + * Объёмный вес товара. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + volume_weight?: number; +} +/** + * Check if a given object implements the V3GetProductInfoListResponseItem interface. + */ +export declare function instanceOfV3GetProductInfoListResponseItem(value: object): value is V3GetProductInfoListResponseItem; +export declare function V3GetProductInfoListResponseItemFromJSON(json: any): V3GetProductInfoListResponseItem; +export declare function V3GetProductInfoListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListResponseItem; +export declare function V3GetProductInfoListResponseItemToJSON(value?: V3GetProductInfoListResponseItem | null): any; diff --git a/dist/esm/models/V3GetProductInfoListResponseItem.js b/dist/esm/models/V3GetProductInfoListResponseItem.js new file mode 100644 index 0000000..608b53f --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListResponseItem.js @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetProductInfoListResponseModelInfoFromJSON, GetProductInfoListResponseModelInfoToJSON, } from './GetProductInfoListResponseModelInfo'; +import { GetProductInfoListResponseSourceFromJSON, GetProductInfoListResponseSourceToJSON, } from './GetProductInfoListResponseSource'; +import { V3GetProductInfoListResponsePromotionFromJSON, V3GetProductInfoListResponsePromotionToJSON, } from './V3GetProductInfoListResponsePromotion'; +import { GetProductInfoListResponseStocksFromJSON, GetProductInfoListResponseStocksToJSON, } from './GetProductInfoListResponseStocks'; +import { GetProductInfoListResponsePriceIndexesFromJSON, GetProductInfoListResponsePriceIndexesToJSON, } from './GetProductInfoListResponsePriceIndexes'; +import { GetProductInfoListResponseCommissionFromJSON, GetProductInfoListResponseCommissionToJSON, } from './GetProductInfoListResponseCommission'; +import { GetProductInfoListResponseErrorFromJSON, GetProductInfoListResponseErrorToJSON, } from './GetProductInfoListResponseError'; +import { GetProductInfoListResponseVisibilityDetailsFromJSON, GetProductInfoListResponseVisibilityDetailsToJSON, } from './GetProductInfoListResponseVisibilityDetails'; +import { GetProductInfoListResponseAvailabilityFromJSON, GetProductInfoListResponseAvailabilityToJSON, } from './GetProductInfoListResponseAvailability'; +import { GetProductInfoListResponseStatusesFromJSON, GetProductInfoListResponseStatusesToJSON, } from './GetProductInfoListResponseStatuses'; +/** + * Check if a given object implements the V3GetProductInfoListResponseItem interface. + */ +export function instanceOfV3GetProductInfoListResponseItem(value) { + return true; +} +export function V3GetProductInfoListResponseItemFromJSON(json) { + return V3GetProductInfoListResponseItemFromJSONTyped(json, false); +} +export function V3GetProductInfoListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'availabilities': json['availabilities'] == null ? undefined : (json['availabilities'].map(GetProductInfoListResponseAvailabilityFromJSON)), + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'color_image': json['color_image'] == null ? undefined : json['color_image'], + 'commissions': json['commissions'] == null ? undefined : (json['commissions'].map(GetProductInfoListResponseCommissionFromJSON)), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'description_category_id': json['description_category_id'] == null ? undefined : json['description_category_id'], + 'discounted_fbo_stocks': json['discounted_fbo_stocks'] == null ? undefined : json['discounted_fbo_stocks'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(GetProductInfoListResponseErrorFromJSON)), + 'has_discounted_fbo_item': json['has_discounted_fbo_item'] == null ? undefined : json['has_discounted_fbo_item'], + 'id': json['id'] == null ? undefined : json['id'], + 'images': json['images'] == null ? undefined : json['images'], + 'is_archived': json['is_archived'] == null ? undefined : json['is_archived'], + 'is_autoarchived': json['is_autoarchived'] == null ? undefined : json['is_autoarchived'], + 'is_discounted': json['is_discounted'] == null ? undefined : json['is_discounted'], + 'is_kgt': json['is_kgt'] == null ? undefined : json['is_kgt'], + 'is_prepayment_allowed': json['is_prepayment_allowed'] == null ? undefined : json['is_prepayment_allowed'], + 'is_super': json['is_super'] == null ? undefined : json['is_super'], + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'model_info': json['model_info'] == null ? undefined : GetProductInfoListResponseModelInfoFromJSON(json['model_info']), + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'price_indexes': json['price_indexes'] == null ? undefined : GetProductInfoListResponsePriceIndexesFromJSON(json['price_indexes']), + 'primary_image': json['primary_image'] == null ? undefined : json['primary_image'], + 'promotions': json['promotions'] == null ? undefined : (json['promotions'].map(V3GetProductInfoListResponsePromotionFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'sources': json['sources'] == null ? undefined : (json['sources'].map(GetProductInfoListResponseSourceFromJSON)), + 'statuses': json['statuses'] == null ? undefined : GetProductInfoListResponseStatusesFromJSON(json['statuses']), + 'stocks': json['stocks'] == null ? undefined : GetProductInfoListResponseStocksFromJSON(json['stocks']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'vat': json['vat'] == null ? undefined : json['vat'], + 'visibility_details': json['visibility_details'] == null ? undefined : GetProductInfoListResponseVisibilityDetailsFromJSON(json['visibility_details']), + 'volume_weight': json['volume_weight'] == null ? undefined : json['volume_weight'], + }; +} +export function V3GetProductInfoListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'availabilities': value['availabilities'] == null ? undefined : (value['availabilities'].map(GetProductInfoListResponseAvailabilityToJSON)), + 'barcodes': value['barcodes'], + 'color_image': value['color_image'], + 'commissions': value['commissions'] == null ? undefined : (value['commissions'].map(GetProductInfoListResponseCommissionToJSON)), + 'created_at': value['created_at'], + 'currency_code': value['currency_code'], + 'description_category_id': value['description_category_id'], + 'discounted_fbo_stocks': value['discounted_fbo_stocks'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(GetProductInfoListResponseErrorToJSON)), + 'has_discounted_fbo_item': value['has_discounted_fbo_item'], + 'id': value['id'], + 'images': value['images'], + 'is_archived': value['is_archived'], + 'is_autoarchived': value['is_autoarchived'], + 'is_discounted': value['is_discounted'], + 'is_kgt': value['is_kgt'], + 'is_prepayment_allowed': value['is_prepayment_allowed'], + 'is_super': value['is_super'], + 'min_price': value['min_price'], + 'model_info': GetProductInfoListResponseModelInfoToJSON(value['model_info']), + 'name': value['name'], + 'offer_id': value['offer_id'], + 'old_price': value['old_price'], + 'price': value['price'], + 'price_indexes': GetProductInfoListResponsePriceIndexesToJSON(value['price_indexes']), + 'primary_image': value['primary_image'], + 'promotions': value['promotions'] == null ? undefined : (value['promotions'].map(V3GetProductInfoListResponsePromotionToJSON)), + 'sku': value['sku'], + 'sources': value['sources'] == null ? undefined : (value['sources'].map(GetProductInfoListResponseSourceToJSON)), + 'statuses': GetProductInfoListResponseStatusesToJSON(value['statuses']), + 'stocks': GetProductInfoListResponseStocksToJSON(value['stocks']), + 'type_id': value['type_id'], + 'updated_at': value['updated_at'], + 'vat': value['vat'], + 'visibility_details': GetProductInfoListResponseVisibilityDetailsToJSON(value['visibility_details']), + 'volume_weight': value['volume_weight'], + }; +} diff --git a/dist/esm/models/V3GetProductInfoListResponsePromotion.d.ts b/dist/esm/models/V3GetProductInfoListResponsePromotion.d.ts new file mode 100644 index 0000000..01e201f --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListResponsePromotion.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3GetProductInfoListResponsePromotionType } from './V3GetProductInfoListResponsePromotionType'; +/** + * + * @export + * @interface V3GetProductInfoListResponsePromotion + */ +export interface V3GetProductInfoListResponsePromotion { + /** + * `true`, если акция включена. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponsePromotion + */ + is_enabled?: boolean; + /** + * + * @type {V3GetProductInfoListResponsePromotionType} + * @memberof V3GetProductInfoListResponsePromotion + */ + type?: V3GetProductInfoListResponsePromotionType; +} +/** + * Check if a given object implements the V3GetProductInfoListResponsePromotion interface. + */ +export declare function instanceOfV3GetProductInfoListResponsePromotion(value: object): value is V3GetProductInfoListResponsePromotion; +export declare function V3GetProductInfoListResponsePromotionFromJSON(json: any): V3GetProductInfoListResponsePromotion; +export declare function V3GetProductInfoListResponsePromotionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListResponsePromotion; +export declare function V3GetProductInfoListResponsePromotionToJSON(value?: V3GetProductInfoListResponsePromotion | null): any; diff --git a/dist/esm/models/V3GetProductInfoListResponsePromotion.js b/dist/esm/models/V3GetProductInfoListResponsePromotion.js new file mode 100644 index 0000000..6257075 --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListResponsePromotion.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3GetProductInfoListResponsePromotionTypeFromJSON, V3GetProductInfoListResponsePromotionTypeToJSON, } from './V3GetProductInfoListResponsePromotionType'; +/** + * Check if a given object implements the V3GetProductInfoListResponsePromotion interface. + */ +export function instanceOfV3GetProductInfoListResponsePromotion(value) { + return true; +} +export function V3GetProductInfoListResponsePromotionFromJSON(json) { + return V3GetProductInfoListResponsePromotionFromJSONTyped(json, false); +} +export function V3GetProductInfoListResponsePromotionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_enabled': json['is_enabled'] == null ? undefined : json['is_enabled'], + 'type': json['type'] == null ? undefined : V3GetProductInfoListResponsePromotionTypeFromJSON(json['type']), + }; +} +export function V3GetProductInfoListResponsePromotionToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_enabled': value['is_enabled'], + 'type': V3GetProductInfoListResponsePromotionTypeToJSON(value['type']), + }; +} diff --git a/dist/esm/models/V3GetProductInfoListResponsePromotionType.d.ts b/dist/esm/models/V3GetProductInfoListResponsePromotionType.d.ts new file mode 100644 index 0000000..a5b8baa --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListResponsePromotionType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акции: + * - `UNSPECIFIED` — не определено; + * - `REVIEWS_PROMO` — акция «Ускоренный сбор отзывов». + * + * @export + */ +export declare const V3GetProductInfoListResponsePromotionType: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly REVIEWS_PROMO: "REVIEWS_PROMO"; +}; +export type V3GetProductInfoListResponsePromotionType = typeof V3GetProductInfoListResponsePromotionType[keyof typeof V3GetProductInfoListResponsePromotionType]; +export declare function instanceOfV3GetProductInfoListResponsePromotionType(value: any): boolean; +export declare function V3GetProductInfoListResponsePromotionTypeFromJSON(json: any): V3GetProductInfoListResponsePromotionType; +export declare function V3GetProductInfoListResponsePromotionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListResponsePromotionType; +export declare function V3GetProductInfoListResponsePromotionTypeToJSON(value?: V3GetProductInfoListResponsePromotionType | null): any; diff --git a/dist/esm/models/V3GetProductInfoListResponsePromotionType.js b/dist/esm/models/V3GetProductInfoListResponsePromotionType.js new file mode 100644 index 0000000..29484ad --- /dev/null +++ b/dist/esm/models/V3GetProductInfoListResponsePromotionType.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акции: + * - `UNSPECIFIED` — не определено; + * - `REVIEWS_PROMO` — акция «Ускоренный сбор отзывов». + * + * @export + */ +export const V3GetProductInfoListResponsePromotionType = { + UNSPECIFIED: 'UNSPECIFIED', + REVIEWS_PROMO: 'REVIEWS_PROMO' +}; +export function instanceOfV3GetProductInfoListResponsePromotionType(value) { + for (const key in V3GetProductInfoListResponsePromotionType) { + if (Object.prototype.hasOwnProperty.call(V3GetProductInfoListResponsePromotionType, key)) { + if (V3GetProductInfoListResponsePromotionType[key] === value) { + return true; + } + } + } + return false; +} +export function V3GetProductInfoListResponsePromotionTypeFromJSON(json) { + return V3GetProductInfoListResponsePromotionTypeFromJSONTyped(json, false); +} +export function V3GetProductInfoListResponsePromotionTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V3GetProductInfoListResponsePromotionTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V3ImportProductsRequest.d.ts b/dist/esm/models/V3ImportProductsRequest.d.ts new file mode 100644 index 0000000..96deb44 --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsRequestItem } from './V3ImportProductsRequestItem'; +/** + * + * @export + * @interface V3ImportProductsRequest + */ +export interface V3ImportProductsRequest { + /** + * Массив данных. + * @type {Array} + * @memberof V3ImportProductsRequest + */ + items?: Array; +} +/** + * Check if a given object implements the V3ImportProductsRequest interface. + */ +export declare function instanceOfV3ImportProductsRequest(value: object): value is V3ImportProductsRequest; +export declare function V3ImportProductsRequestFromJSON(json: any): V3ImportProductsRequest; +export declare function V3ImportProductsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequest; +export declare function V3ImportProductsRequestToJSON(value?: V3ImportProductsRequest | null): any; diff --git a/dist/esm/models/V3ImportProductsRequest.js b/dist/esm/models/V3ImportProductsRequest.js new file mode 100644 index 0000000..c0bfd31 --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequest.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ImportProductsRequestItemFromJSON, V3ImportProductsRequestItemToJSON, } from './V3ImportProductsRequestItem'; +/** + * Check if a given object implements the V3ImportProductsRequest interface. + */ +export function instanceOfV3ImportProductsRequest(value) { + return true; +} +export function V3ImportProductsRequestFromJSON(json) { + return V3ImportProductsRequestFromJSONTyped(json, false); +} +export function V3ImportProductsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V3ImportProductsRequestItemFromJSON)), + }; +} +export function V3ImportProductsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V3ImportProductsRequestItemToJSON)), + }; +} diff --git a/dist/esm/models/V3ImportProductsRequestAttribute.d.ts b/dist/esm/models/V3ImportProductsRequestAttribute.d.ts new file mode 100644 index 0000000..0ddd646 --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequestAttribute.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsRequestDictionaryValue } from './V3ImportProductsRequestDictionaryValue'; +/** + * + * @export + * @interface V3ImportProductsRequestAttribute + */ +export interface V3ImportProductsRequestAttribute { + /** + * Идентификатор характеристики, которая поддерживает вложенные свойства. Например, у характеристики «Процессор» есть вложенные характеристики «Производитель», «L2 Cache» и другие. У каждой из вложенных характеристик может быть несколько вариантов значений. + * @type {number} + * @memberof V3ImportProductsRequestAttribute + */ + complex_id?: number; + /** + * Идентификатор характеристики. + * @type {number} + * @memberof V3ImportProductsRequestAttribute + */ + id?: number; + /** + * Массив вложенных значений характеристики. + * @type {Array} + * @memberof V3ImportProductsRequestAttribute + */ + values?: Array; +} +/** + * Check if a given object implements the V3ImportProductsRequestAttribute interface. + */ +export declare function instanceOfV3ImportProductsRequestAttribute(value: object): value is V3ImportProductsRequestAttribute; +export declare function V3ImportProductsRequestAttributeFromJSON(json: any): V3ImportProductsRequestAttribute; +export declare function V3ImportProductsRequestAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequestAttribute; +export declare function V3ImportProductsRequestAttributeToJSON(value?: V3ImportProductsRequestAttribute | null): any; diff --git a/dist/esm/models/V3ImportProductsRequestAttribute.js b/dist/esm/models/V3ImportProductsRequestAttribute.js new file mode 100644 index 0000000..ab0bcf4 --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequestAttribute.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ImportProductsRequestDictionaryValueFromJSON, V3ImportProductsRequestDictionaryValueToJSON, } from './V3ImportProductsRequestDictionaryValue'; +/** + * Check if a given object implements the V3ImportProductsRequestAttribute interface. + */ +export function instanceOfV3ImportProductsRequestAttribute(value) { + return true; +} +export function V3ImportProductsRequestAttributeFromJSON(json) { + return V3ImportProductsRequestAttributeFromJSONTyped(json, false); +} +export function V3ImportProductsRequestAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'complex_id': json['complex_id'] == null ? undefined : json['complex_id'], + 'id': json['id'] == null ? undefined : json['id'], + 'values': json['values'] == null ? undefined : (json['values'].map(V3ImportProductsRequestDictionaryValueFromJSON)), + }; +} +export function V3ImportProductsRequestAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'complex_id': value['complex_id'], + 'id': value['id'], + 'values': value['values'] == null ? undefined : (value['values'].map(V3ImportProductsRequestDictionaryValueToJSON)), + }; +} diff --git a/dist/esm/models/V3ImportProductsRequestComplexAttribute.d.ts b/dist/esm/models/V3ImportProductsRequestComplexAttribute.d.ts new file mode 100644 index 0000000..c24e935 --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequestComplexAttribute.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsRequestAttribute } from './V3ImportProductsRequestAttribute'; +/** + * + * @export + * @interface V3ImportProductsRequestComplexAttribute + */ +export interface V3ImportProductsRequestComplexAttribute { + /** + * + * @type {Array} + * @memberof V3ImportProductsRequestComplexAttribute + */ + attributes?: Array; +} +/** + * Check if a given object implements the V3ImportProductsRequestComplexAttribute interface. + */ +export declare function instanceOfV3ImportProductsRequestComplexAttribute(value: object): value is V3ImportProductsRequestComplexAttribute; +export declare function V3ImportProductsRequestComplexAttributeFromJSON(json: any): V3ImportProductsRequestComplexAttribute; +export declare function V3ImportProductsRequestComplexAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequestComplexAttribute; +export declare function V3ImportProductsRequestComplexAttributeToJSON(value?: V3ImportProductsRequestComplexAttribute | null): any; diff --git a/dist/esm/models/V3ImportProductsRequestComplexAttribute.js b/dist/esm/models/V3ImportProductsRequestComplexAttribute.js new file mode 100644 index 0000000..ae07e15 --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequestComplexAttribute.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ImportProductsRequestAttributeFromJSON, V3ImportProductsRequestAttributeToJSON, } from './V3ImportProductsRequestAttribute'; +/** + * Check if a given object implements the V3ImportProductsRequestComplexAttribute interface. + */ +export function instanceOfV3ImportProductsRequestComplexAttribute(value) { + return true; +} +export function V3ImportProductsRequestComplexAttributeFromJSON(json) { + return V3ImportProductsRequestComplexAttributeFromJSONTyped(json, false); +} +export function V3ImportProductsRequestComplexAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(V3ImportProductsRequestAttributeFromJSON)), + }; +} +export function V3ImportProductsRequestComplexAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(V3ImportProductsRequestAttributeToJSON)), + }; +} diff --git a/dist/esm/models/V3ImportProductsRequestDictionaryValue.d.ts b/dist/esm/models/V3ImportProductsRequestDictionaryValue.d.ts new file mode 100644 index 0000000..820ce3c --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequestDictionaryValue.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3ImportProductsRequestDictionaryValue + */ +export interface V3ImportProductsRequestDictionaryValue { + /** + * Идентификатор справочника. + * @type {number} + * @memberof V3ImportProductsRequestDictionaryValue + */ + dictionary_value_id?: number; + /** + * Значение из справочника. + * @type {string} + * @memberof V3ImportProductsRequestDictionaryValue + */ + value?: string; +} +/** + * Check if a given object implements the V3ImportProductsRequestDictionaryValue interface. + */ +export declare function instanceOfV3ImportProductsRequestDictionaryValue(value: object): value is V3ImportProductsRequestDictionaryValue; +export declare function V3ImportProductsRequestDictionaryValueFromJSON(json: any): V3ImportProductsRequestDictionaryValue; +export declare function V3ImportProductsRequestDictionaryValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequestDictionaryValue; +export declare function V3ImportProductsRequestDictionaryValueToJSON(value?: V3ImportProductsRequestDictionaryValue | null): any; diff --git a/dist/esm/models/V3ImportProductsRequestDictionaryValue.js b/dist/esm/models/V3ImportProductsRequestDictionaryValue.js new file mode 100644 index 0000000..b0c2ee6 --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequestDictionaryValue.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3ImportProductsRequestDictionaryValue interface. + */ +export function instanceOfV3ImportProductsRequestDictionaryValue(value) { + return true; +} +export function V3ImportProductsRequestDictionaryValueFromJSON(json) { + return V3ImportProductsRequestDictionaryValueFromJSONTyped(json, false); +} +export function V3ImportProductsRequestDictionaryValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dictionary_value_id': json['dictionary_value_id'] == null ? undefined : json['dictionary_value_id'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +export function V3ImportProductsRequestDictionaryValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'dictionary_value_id': value['dictionary_value_id'], + 'value': value['value'], + }; +} diff --git a/dist/esm/models/V3ImportProductsRequestItem.d.ts b/dist/esm/models/V3ImportProductsRequestItem.d.ts new file mode 100644 index 0000000..633e5ad --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequestItem.d.ts @@ -0,0 +1,239 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsRequestAttribute } from './V3ImportProductsRequestAttribute'; +import type { V3ServiceType } from './V3ServiceType'; +import type { ImportProductsRequestPdfList } from './ImportProductsRequestPdfList'; +import type { V3ImportProductsRequestComplexAttribute } from './V3ImportProductsRequestComplexAttribute'; +import type { ImportProductRequestPromotion } from './ImportProductRequestPromotion'; +/** + * + * @export + * @interface V3ImportProductsRequestItem + */ +export interface V3ImportProductsRequestItem { + /** + * Массив с характеристиками товара. Характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://seller-edu.ozon.ru/) или через API. + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + attributes?: Array; + /** + * Штрихкод товара. + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + barcode?: string; + /** + * Маркетинговый цвет. + * + * Формат: адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + color_image?: string; + /** + * Массив характеристик, у которых есть вложенные атрибуты. + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + complex_attributes?: Array; + /** + * Валюта ваших цен. Переданное значение должно совпадать с валютой, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. + * + * Например, если у вас установлена валюта взаиморасчётов юань, передавайте значение `CNY`, иначе вернётся ошибка. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + currency_code?: string; + /** + * Глубина упаковки. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + depth?: number; + /** + * Идентификатор категории. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). Чтобы изменить категорию, используйте параметр `new_description_category_id`. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + description_category_id: number; + /** + * Новый идентификатор категории. Укажите его, если нужно изменить текущую категорию товара. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + new_description_category_id?: number; + /** + * Единица измерения габаритов: + * - `mm` — миллиметры, + * - `cm` — сантиметры, + * - `in` — дюймы. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + dimension_unit?: string; + /** + * Геоограничения — при необходимости заполните параметр в личном кабинете при создании или редактировании товара. + * + * Необязательный параметр. + * + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + geo_names?: Array; + /** + * Высота упаковки. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + height?: number; + /** + * Массив изображений. До 30 штук. Изображения показываются на сайте в таком же порядке, как в массиве. + * + * Если не передать значение `primary_image`, первое изображение в массиве будет главным для товара. + * + * Если вы передали значение `primary_image`, передайте до 29 изображений. + * Если параметр `primary_image` пустой, передайте до 30 изображений. + * + * Формат: адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. + * + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + images?: Array; + /** + * Название товара. До 500 символов. + * + * [Правила для названия товара](https://seller-edu.ozon.ru/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/nazvanie-tovara) + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * + * Максимальная длина строки — 50 символов. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + offer_id: string; + /** + * Цена до скидок (будет зачёркнута на карточке товара). Указывается в рублях. Разделитель дробной + * части — точка, до двух знаков после точки. + * + * Если вы раньше передавали `old_price`, то при обновлении `price` также обновите `old_price`. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + old_price?: string; + /** + * Список PDF-файлов. + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + pdf_list?: Array; + /** + * Цена товара с учётом скидок, отображается на карточке товара. Если на товар нет скидок, укажите + * значение `old_price` в этом параметре. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + price: string; + /** + * Ссылка на главное изображение товара. + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + primary_image?: string; + /** + * Акции. + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + promotions?: Array; + /** + * + * @type {V3ServiceType} + * @memberof V3ImportProductsRequestItem + */ + service_type?: V3ServiceType; + /** + * Идентификатор типа товара. + * Значения можно получить из такого же параметра `type_id` в ответе метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * При заполнении этого параметра можно не указывать в `attibutes ` атрибут с параметром `id:8229`, `type_id` будет использоваться в приоритете. + * + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + type_id: number; + /** + * Ставка НДС для товара: + * - `0` — не облагается НДС, + * - `0.05` — 5%, + * - `0.07` — 7%, + * - `0.1` — 10%, + * - `0.2` — 20%, + * - `0.22` — 22%. + * + * Передавайте значение ставки, актуальное на данный момент. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + vat?: string; + /** + * Вес товара в упаковке. Предельное значение — 1000 килограммов или конвертированная величина в других + * единицах измерения. + * + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + weight?: number; + /** + * Единица измерения веса: + * - `g` — граммы, + * - `kg` — килограммы, + * - `lb` — фунты. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + weight_unit?: string; + /** + * Ширина упаковки. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + width?: number; +} +/** + * Check if a given object implements the V3ImportProductsRequestItem interface. + */ +export declare function instanceOfV3ImportProductsRequestItem(value: object): value is V3ImportProductsRequestItem; +export declare function V3ImportProductsRequestItemFromJSON(json: any): V3ImportProductsRequestItem; +export declare function V3ImportProductsRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequestItem; +export declare function V3ImportProductsRequestItemToJSON(value?: V3ImportProductsRequestItem | null): any; diff --git a/dist/esm/models/V3ImportProductsRequestItem.js b/dist/esm/models/V3ImportProductsRequestItem.js new file mode 100644 index 0000000..5e71372 --- /dev/null +++ b/dist/esm/models/V3ImportProductsRequestItem.js @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ImportProductsRequestAttributeFromJSON, V3ImportProductsRequestAttributeToJSON, } from './V3ImportProductsRequestAttribute'; +import { V3ServiceTypeFromJSON, V3ServiceTypeToJSON, } from './V3ServiceType'; +import { ImportProductsRequestPdfListFromJSON, ImportProductsRequestPdfListToJSON, } from './ImportProductsRequestPdfList'; +import { V3ImportProductsRequestComplexAttributeFromJSON, V3ImportProductsRequestComplexAttributeToJSON, } from './V3ImportProductsRequestComplexAttribute'; +import { ImportProductRequestPromotionFromJSON, ImportProductRequestPromotionToJSON, } from './ImportProductRequestPromotion'; +/** + * Check if a given object implements the V3ImportProductsRequestItem interface. + */ +export function instanceOfV3ImportProductsRequestItem(value) { + if (!('description_category_id' in value) || value['description_category_id'] === undefined) + return false; + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + if (!('price' in value) || value['price'] === undefined) + return false; + if (!('type_id' in value) || value['type_id'] === undefined) + return false; + return true; +} +export function V3ImportProductsRequestItemFromJSON(json) { + return V3ImportProductsRequestItemFromJSONTyped(json, false); +} +export function V3ImportProductsRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(V3ImportProductsRequestAttributeFromJSON)), + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'color_image': json['color_image'] == null ? undefined : json['color_image'], + 'complex_attributes': json['complex_attributes'] == null ? undefined : (json['complex_attributes'].map(V3ImportProductsRequestComplexAttributeFromJSON)), + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'depth': json['depth'] == null ? undefined : json['depth'], + 'description_category_id': json['description_category_id'], + 'new_description_category_id': json['new_description_category_id'] == null ? undefined : json['new_description_category_id'], + 'dimension_unit': json['dimension_unit'] == null ? undefined : json['dimension_unit'], + 'geo_names': json['geo_names'] == null ? undefined : json['geo_names'], + 'height': json['height'] == null ? undefined : json['height'], + 'images': json['images'] == null ? undefined : json['images'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'pdf_list': json['pdf_list'] == null ? undefined : (json['pdf_list'].map(ImportProductsRequestPdfListFromJSON)), + 'price': json['price'], + 'primary_image': json['primary_image'] == null ? undefined : json['primary_image'], + 'promotions': json['promotions'] == null ? undefined : (json['promotions'].map(ImportProductRequestPromotionFromJSON)), + 'service_type': json['service_type'] == null ? undefined : V3ServiceTypeFromJSON(json['service_type']), + 'type_id': json['type_id'], + 'vat': json['vat'] == null ? undefined : json['vat'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'weight_unit': json['weight_unit'] == null ? undefined : json['weight_unit'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +export function V3ImportProductsRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(V3ImportProductsRequestAttributeToJSON)), + 'barcode': value['barcode'], + 'color_image': value['color_image'], + 'complex_attributes': value['complex_attributes'] == null ? undefined : (value['complex_attributes'].map(V3ImportProductsRequestComplexAttributeToJSON)), + 'currency_code': value['currency_code'], + 'depth': value['depth'], + 'description_category_id': value['description_category_id'], + 'new_description_category_id': value['new_description_category_id'], + 'dimension_unit': value['dimension_unit'], + 'geo_names': value['geo_names'], + 'height': value['height'], + 'images': value['images'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'old_price': value['old_price'], + 'pdf_list': value['pdf_list'] == null ? undefined : (value['pdf_list'].map(ImportProductsRequestPdfListToJSON)), + 'price': value['price'], + 'primary_image': value['primary_image'], + 'promotions': value['promotions'] == null ? undefined : (value['promotions'].map(ImportProductRequestPromotionToJSON)), + 'service_type': V3ServiceTypeToJSON(value['service_type']), + 'type_id': value['type_id'], + 'vat': value['vat'], + 'weight': value['weight'], + 'weight_unit': value['weight_unit'], + 'width': value['width'], + }; +} diff --git a/dist/esm/models/V3ImportProductsResponse.d.ts b/dist/esm/models/V3ImportProductsResponse.d.ts new file mode 100644 index 0000000..814cf96 --- /dev/null +++ b/dist/esm/models/V3ImportProductsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsResponseResult } from './V3ImportProductsResponseResult'; +/** + * + * @export + * @interface V3ImportProductsResponse + */ +export interface V3ImportProductsResponse { + /** + * + * @type {V3ImportProductsResponseResult} + * @memberof V3ImportProductsResponse + */ + result?: V3ImportProductsResponseResult; +} +/** + * Check if a given object implements the V3ImportProductsResponse interface. + */ +export declare function instanceOfV3ImportProductsResponse(value: object): value is V3ImportProductsResponse; +export declare function V3ImportProductsResponseFromJSON(json: any): V3ImportProductsResponse; +export declare function V3ImportProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsResponse; +export declare function V3ImportProductsResponseToJSON(value?: V3ImportProductsResponse | null): any; diff --git a/dist/esm/models/V3ImportProductsResponse.js b/dist/esm/models/V3ImportProductsResponse.js new file mode 100644 index 0000000..1d219ab --- /dev/null +++ b/dist/esm/models/V3ImportProductsResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3ImportProductsResponseResultFromJSON, V3ImportProductsResponseResultToJSON, } from './V3ImportProductsResponseResult'; +/** + * Check if a given object implements the V3ImportProductsResponse interface. + */ +export function instanceOfV3ImportProductsResponse(value) { + return true; +} +export function V3ImportProductsResponseFromJSON(json) { + return V3ImportProductsResponseFromJSONTyped(json, false); +} +export function V3ImportProductsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : V3ImportProductsResponseResultFromJSON(json['result']), + }; +} +export function V3ImportProductsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': V3ImportProductsResponseResultToJSON(value['result']), + }; +} diff --git a/dist/esm/models/V3ImportProductsResponseResult.d.ts b/dist/esm/models/V3ImportProductsResponseResult.d.ts new file mode 100644 index 0000000..4dfc6ee --- /dev/null +++ b/dist/esm/models/V3ImportProductsResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результаты запроса. + * @export + * @interface V3ImportProductsResponseResult + */ +export interface V3ImportProductsResponseResult { + /** + * Номер задания на загрузку товаров. Проверьте статус создания или обновления товара методом [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo). + * @type {number} + * @memberof V3ImportProductsResponseResult + */ + task_id?: number; +} +/** + * Check if a given object implements the V3ImportProductsResponseResult interface. + */ +export declare function instanceOfV3ImportProductsResponseResult(value: object): value is V3ImportProductsResponseResult; +export declare function V3ImportProductsResponseResultFromJSON(json: any): V3ImportProductsResponseResult; +export declare function V3ImportProductsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsResponseResult; +export declare function V3ImportProductsResponseResultToJSON(value?: V3ImportProductsResponseResult | null): any; diff --git a/dist/esm/models/V3ImportProductsResponseResult.js b/dist/esm/models/V3ImportProductsResponseResult.js new file mode 100644 index 0000000..ef2af43 --- /dev/null +++ b/dist/esm/models/V3ImportProductsResponseResult.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3ImportProductsResponseResult interface. + */ +export function instanceOfV3ImportProductsResponseResult(value) { + return true; +} +export function V3ImportProductsResponseResultFromJSON(json) { + return V3ImportProductsResponseResultFromJSONTyped(json, false); +} +export function V3ImportProductsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +export function V3ImportProductsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/esm/models/V3PostingFinancialData.d.ts b/dist/esm/models/V3PostingFinancialData.d.ts new file mode 100644 index 0000000..e4388cb --- /dev/null +++ b/dist/esm/models/V3PostingFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFinancialDataProduct } from './PostingFinancialDataProduct'; +/** + * Данные о стоимости товара, размере скидки, выплате и комиссии. + * @export + * @interface V3PostingFinancialData + */ +export interface V3PostingFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof V3PostingFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof V3PostingFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof V3PostingFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the V3PostingFinancialData interface. + */ +export declare function instanceOfV3PostingFinancialData(value: object): value is V3PostingFinancialData; +export declare function V3PostingFinancialDataFromJSON(json: any): V3PostingFinancialData; +export declare function V3PostingFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3PostingFinancialData; +export declare function V3PostingFinancialDataToJSON(value?: V3PostingFinancialData | null): any; diff --git a/dist/esm/models/V3PostingFinancialData.js b/dist/esm/models/V3PostingFinancialData.js new file mode 100644 index 0000000..7a8f308 --- /dev/null +++ b/dist/esm/models/V3PostingFinancialData.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PostingFinancialDataProductFromJSON, PostingFinancialDataProductToJSON, } from './PostingFinancialDataProduct'; +/** + * Check if a given object implements the V3PostingFinancialData interface. + */ +export function instanceOfV3PostingFinancialData(value) { + return true; +} +export function V3PostingFinancialDataFromJSON(json) { + return V3PostingFinancialDataFromJSONTyped(json, false); +} +export function V3PostingFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProductFromJSON)), + }; +} +export function V3PostingFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProductToJSON)), + }; +} diff --git a/dist/esm/models/V3PostingProductDetail.d.ts b/dist/esm/models/V3PostingProductDetail.d.ts new file mode 100644 index 0000000..bd04281 --- /dev/null +++ b/dist/esm/models/V3PostingProductDetail.d.ts @@ -0,0 +1,133 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3Dimensions } from './V3Dimensions'; +/** + * Размеры товара. + * @export + * @interface V3PostingProductDetail + */ +export interface V3PostingProductDetail { + /** + * + * @type {V3Dimensions} + * @memberof V3PostingProductDetail + */ + dimensions?: V3Dimensions; + /** + * Обязательная маркировка товара. + * @type {Array} + * @memberof V3PostingProductDetail + * @deprecated + */ + mandatory_mark?: Array; + /** + * Название. + * @type {string} + * @memberof V3PostingProductDetail + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V3PostingProductDetail + */ + offer_id?: string; + /** + * Цена товара с учётом скидок — это значение показывается на карточке товара. + * @type {string} + * @memberof V3PostingProductDetail + */ + price?: string; + /** + * Уникальный идентификационный номер (УИН) ювелирного изделия. + * @type {Array} + * @memberof V3PostingProductDetail + */ + jw_uin?: Array; + /** + * Валюта ваших цен. Совпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V3PostingProductDetail + */ + currency_code?: string; + /** + * Признак прослеживаемости товара. + * @type {boolean} + * @memberof V3PostingProductDetail + */ + is_blr_traceable?: boolean; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof V3PostingProductDetail + */ + is_marketplace_buyout?: boolean; + /** + * Количество товара. + * @type {number} + * @memberof V3PostingProductDetail + */ + quantity?: number; + /** + * Идентификатор товара на Ozon. + * @type {number} + * @memberof V3PostingProductDetail + */ + sku?: number; + /** + * `true`, если товар весовой. + * + * @type {boolean} + * @memberof V3PostingProductDetail + */ + is_weight_needed?: boolean; + /** + * Максимальный вес экземпляра. + * @type {number} + * @memberof V3PostingProductDetail + */ + weight_max?: number; + /** + * Минимальный вес экземпляра. + * @type {number} + * @memberof V3PostingProductDetail + */ + weight_min?: number; + /** + * Признак наличия IMEI. + * + * Если IMEI есть — `true`. + * + * @type {boolean} + * @memberof V3PostingProductDetail + */ + has_imei?: boolean; +} +/** + * Check if a given object implements the V3PostingProductDetail interface. + */ +export declare function instanceOfV3PostingProductDetail(value: object): value is V3PostingProductDetail; +export declare function V3PostingProductDetailFromJSON(json: any): V3PostingProductDetail; +export declare function V3PostingProductDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3PostingProductDetail; +export declare function V3PostingProductDetailToJSON(value?: V3PostingProductDetail | null): any; diff --git a/dist/esm/models/V3PostingProductDetail.js b/dist/esm/models/V3PostingProductDetail.js new file mode 100644 index 0000000..a0444da --- /dev/null +++ b/dist/esm/models/V3PostingProductDetail.js @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V3DimensionsFromJSON, V3DimensionsToJSON, } from './V3Dimensions'; +/** + * Check if a given object implements the V3PostingProductDetail interface. + */ +export function instanceOfV3PostingProductDetail(value) { + return true; +} +export function V3PostingProductDetailFromJSON(json) { + return V3PostingProductDetailFromJSONTyped(json, false); +} +export function V3PostingProductDetailFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dimensions': json['dimensions'] == null ? undefined : V3DimensionsFromJSON(json['dimensions']), + 'mandatory_mark': json['mandatory_mark'] == null ? undefined : json['mandatory_mark'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'jw_uin': json['jw_uin'] == null ? undefined : json['jw_uin'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'is_weight_needed': json['is_weight_needed'] == null ? undefined : json['is_weight_needed'], + 'weight_max': json['weight_max'] == null ? undefined : json['weight_max'], + 'weight_min': json['weight_min'] == null ? undefined : json['weight_min'], + 'has_imei': json['has_imei'] == null ? undefined : json['has_imei'], + }; +} +export function V3PostingProductDetailToJSON(value) { + if (value == null) { + return value; + } + return { + 'dimensions': V3DimensionsToJSON(value['dimensions']), + 'mandatory_mark': value['mandatory_mark'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'jw_uin': value['jw_uin'], + 'currency_code': value['currency_code'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'is_weight_needed': value['is_weight_needed'], + 'weight_max': value['weight_max'], + 'weight_min': value['weight_min'], + 'has_imei': value['has_imei'], + }; +} diff --git a/dist/esm/models/V3ServiceType.d.ts b/dist/esm/models/V3ServiceType.d.ts new file mode 100644 index 0000000..174a7b1 --- /dev/null +++ b/dist/esm/models/V3ServiceType.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V3ServiceType: { + readonly CODE_SERVICE: "IS_CODE_SERVICE"; + readonly NO_CODE_SERVICE: "IS_NO_CODE_SERVICE"; +}; +export type V3ServiceType = typeof V3ServiceType[keyof typeof V3ServiceType]; +export declare function instanceOfV3ServiceType(value: any): boolean; +export declare function V3ServiceTypeFromJSON(json: any): V3ServiceType; +export declare function V3ServiceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ServiceType; +export declare function V3ServiceTypeToJSON(value?: V3ServiceType | null): any; diff --git a/dist/esm/models/V3ServiceType.js b/dist/esm/models/V3ServiceType.js new file mode 100644 index 0000000..d96805f --- /dev/null +++ b/dist/esm/models/V3ServiceType.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const V3ServiceType = { + CODE_SERVICE: 'IS_CODE_SERVICE', + NO_CODE_SERVICE: 'IS_NO_CODE_SERVICE' +}; +export function instanceOfV3ServiceType(value) { + for (const key in V3ServiceType) { + if (Object.prototype.hasOwnProperty.call(V3ServiceType, key)) { + if (V3ServiceType[key] === value) { + return true; + } + } + } + return false; +} +export function V3ServiceTypeFromJSON(json) { + return V3ServiceTypeFromJSONTyped(json, false); +} +export function V3ServiceTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V3ServiceTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/V3SupplyOrderGetRequest.d.ts b/dist/esm/models/V3SupplyOrderGetRequest.d.ts new file mode 100644 index 0000000..0f4d0f5 --- /dev/null +++ b/dist/esm/models/V3SupplyOrderGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3SupplyOrderGetRequest + */ +export interface V3SupplyOrderGetRequest { + /** + * Идентификаторы заявок на поставку. + * @type {Array} + * @memberof V3SupplyOrderGetRequest + */ + order_ids: Array; +} +/** + * Check if a given object implements the V3SupplyOrderGetRequest interface. + */ +export declare function instanceOfV3SupplyOrderGetRequest(value: object): value is V3SupplyOrderGetRequest; +export declare function V3SupplyOrderGetRequestFromJSON(json: any): V3SupplyOrderGetRequest; +export declare function V3SupplyOrderGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3SupplyOrderGetRequest; +export declare function V3SupplyOrderGetRequestToJSON(value?: V3SupplyOrderGetRequest | null): any; diff --git a/dist/esm/models/V3SupplyOrderGetRequest.js b/dist/esm/models/V3SupplyOrderGetRequest.js new file mode 100644 index 0000000..206670d --- /dev/null +++ b/dist/esm/models/V3SupplyOrderGetRequest.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3SupplyOrderGetRequest interface. + */ +export function instanceOfV3SupplyOrderGetRequest(value) { + if (!('order_ids' in value) || value['order_ids'] === undefined) + return false; + return true; +} +export function V3SupplyOrderGetRequestFromJSON(json) { + return V3SupplyOrderGetRequestFromJSONTyped(json, false); +} +export function V3SupplyOrderGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_ids': json['order_ids'], + }; +} +export function V3SupplyOrderGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_ids': value['order_ids'], + }; +} diff --git a/dist/esm/models/V3SupplyOrderGetResponse.d.ts b/dist/esm/models/V3SupplyOrderGetResponse.d.ts new file mode 100644 index 0000000..0a32843 --- /dev/null +++ b/dist/esm/models/V3SupplyOrderGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderGetResponseOrder } from './SupplyOrderGetResponseOrder'; +/** + * + * @export + * @interface V3SupplyOrderGetResponse + */ +export interface V3SupplyOrderGetResponse { + /** + * Список заявок на поставку. + * @type {Array} + * @memberof V3SupplyOrderGetResponse + */ + orders?: Array; +} +/** + * Check if a given object implements the V3SupplyOrderGetResponse interface. + */ +export declare function instanceOfV3SupplyOrderGetResponse(value: object): value is V3SupplyOrderGetResponse; +export declare function V3SupplyOrderGetResponseFromJSON(json: any): V3SupplyOrderGetResponse; +export declare function V3SupplyOrderGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3SupplyOrderGetResponse; +export declare function V3SupplyOrderGetResponseToJSON(value?: V3SupplyOrderGetResponse | null): any; diff --git a/dist/esm/models/V3SupplyOrderGetResponse.js b/dist/esm/models/V3SupplyOrderGetResponse.js new file mode 100644 index 0000000..f61c70e --- /dev/null +++ b/dist/esm/models/V3SupplyOrderGetResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderGetResponseOrderFromJSON, SupplyOrderGetResponseOrderToJSON, } from './SupplyOrderGetResponseOrder'; +/** + * Check if a given object implements the V3SupplyOrderGetResponse interface. + */ +export function instanceOfV3SupplyOrderGetResponse(value) { + return true; +} +export function V3SupplyOrderGetResponseFromJSON(json) { + return V3SupplyOrderGetResponseFromJSONTyped(json, false); +} +export function V3SupplyOrderGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'orders': json['orders'] == null ? undefined : (json['orders'].map(SupplyOrderGetResponseOrderFromJSON)), + }; +} +export function V3SupplyOrderGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'orders': value['orders'] == null ? undefined : (value['orders'].map(SupplyOrderGetResponseOrderToJSON)), + }; +} diff --git a/dist/esm/models/V3SupplyOrderListRequest.d.ts b/dist/esm/models/V3SupplyOrderListRequest.d.ts new file mode 100644 index 0000000..a57ef4a --- /dev/null +++ b/dist/esm/models/V3SupplyOrderListRequest.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderListRequestSortByEnum } from './SupplyOrderListRequestSortByEnum'; +import type { SupplyOrderListRequestSortDirEnum } from './SupplyOrderListRequestSortDirEnum'; +import type { SupplyOrderListRequestFilter } from './SupplyOrderListRequestFilter'; +/** + * + * @export + * @interface V3SupplyOrderListRequest + */ +export interface V3SupplyOrderListRequest { + /** + * + * @type {SupplyOrderListRequestFilter} + * @memberof V3SupplyOrderListRequest + */ + filter: SupplyOrderListRequestFilter; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof V3SupplyOrderListRequest + */ + last_id?: string; + /** + * Количество значений на странице. + * @type {number} + * @memberof V3SupplyOrderListRequest + */ + limit: number; + /** + * + * @type {SupplyOrderListRequestSortByEnum} + * @memberof V3SupplyOrderListRequest + */ + sort_by: SupplyOrderListRequestSortByEnum; + /** + * + * @type {SupplyOrderListRequestSortDirEnum} + * @memberof V3SupplyOrderListRequest + */ + sort_dir?: SupplyOrderListRequestSortDirEnum; +} +/** + * Check if a given object implements the V3SupplyOrderListRequest interface. + */ +export declare function instanceOfV3SupplyOrderListRequest(value: object): value is V3SupplyOrderListRequest; +export declare function V3SupplyOrderListRequestFromJSON(json: any): V3SupplyOrderListRequest; +export declare function V3SupplyOrderListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3SupplyOrderListRequest; +export declare function V3SupplyOrderListRequestToJSON(value?: V3SupplyOrderListRequest | null): any; diff --git a/dist/esm/models/V3SupplyOrderListRequest.js b/dist/esm/models/V3SupplyOrderListRequest.js new file mode 100644 index 0000000..d07aaae --- /dev/null +++ b/dist/esm/models/V3SupplyOrderListRequest.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SupplyOrderListRequestSortByEnumFromJSON, SupplyOrderListRequestSortByEnumToJSON, } from './SupplyOrderListRequestSortByEnum'; +import { SupplyOrderListRequestSortDirEnumFromJSON, SupplyOrderListRequestSortDirEnumToJSON, } from './SupplyOrderListRequestSortDirEnum'; +import { SupplyOrderListRequestFilterFromJSON, SupplyOrderListRequestFilterToJSON, } from './SupplyOrderListRequestFilter'; +/** + * Check if a given object implements the V3SupplyOrderListRequest interface. + */ +export function instanceOfV3SupplyOrderListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('sort_by' in value) || value['sort_by'] === undefined) + return false; + return true; +} +export function V3SupplyOrderListRequestFromJSON(json) { + return V3SupplyOrderListRequestFromJSONTyped(json, false); +} +export function V3SupplyOrderListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': SupplyOrderListRequestFilterFromJSON(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'sort_by': SupplyOrderListRequestSortByEnumFromJSON(json['sort_by']), + 'sort_dir': json['sort_dir'] == null ? undefined : SupplyOrderListRequestSortDirEnumFromJSON(json['sort_dir']), + }; +} +export function V3SupplyOrderListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': SupplyOrderListRequestFilterToJSON(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_by': SupplyOrderListRequestSortByEnumToJSON(value['sort_by']), + 'sort_dir': SupplyOrderListRequestSortDirEnumToJSON(value['sort_dir']), + }; +} diff --git a/dist/esm/models/V3SupplyOrderListResponse.d.ts b/dist/esm/models/V3SupplyOrderListResponse.d.ts new file mode 100644 index 0000000..4f3c2cf --- /dev/null +++ b/dist/esm/models/V3SupplyOrderListResponse.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3SupplyOrderListResponse + */ +export interface V3SupplyOrderListResponse { + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, укажите полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof V3SupplyOrderListResponse + */ + last_id?: string; + /** + * Идентификаторы заявок на поставку. + * @type {Array} + * @memberof V3SupplyOrderListResponse + */ + order_ids?: Array; +} +/** + * Check if a given object implements the V3SupplyOrderListResponse interface. + */ +export declare function instanceOfV3SupplyOrderListResponse(value: object): value is V3SupplyOrderListResponse; +export declare function V3SupplyOrderListResponseFromJSON(json: any): V3SupplyOrderListResponse; +export declare function V3SupplyOrderListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3SupplyOrderListResponse; +export declare function V3SupplyOrderListResponseToJSON(value?: V3SupplyOrderListResponse | null): any; diff --git a/dist/esm/models/V3SupplyOrderListResponse.js b/dist/esm/models/V3SupplyOrderListResponse.js new file mode 100644 index 0000000..ce4c2f9 --- /dev/null +++ b/dist/esm/models/V3SupplyOrderListResponse.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3SupplyOrderListResponse interface. + */ +export function instanceOfV3SupplyOrderListResponse(value) { + return true; +} +export function V3SupplyOrderListResponseFromJSON(json) { + return V3SupplyOrderListResponseFromJSONTyped(json, false); +} +export function V3SupplyOrderListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'order_ids': json['order_ids'] == null ? undefined : json['order_ids'], + }; +} +export function V3SupplyOrderListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'order_ids': value['order_ids'], + }; +} diff --git a/dist/esm/models/V3TimeRange.d.ts b/dist/esm/models/V3TimeRange.d.ts new file mode 100644 index 0000000..1fd2dd8 --- /dev/null +++ b/dist/esm/models/V3TimeRange.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, в который последний раз изменялся статус у отправлений. + * @export + * @interface V3TimeRange + */ +export interface V3TimeRange { + /** + * Дата начала периода. + * @type {string} + * @memberof V3TimeRange + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof V3TimeRange + */ + to?: string; +} +/** + * Check if a given object implements the V3TimeRange interface. + */ +export declare function instanceOfV3TimeRange(value: object): value is V3TimeRange; +export declare function V3TimeRangeFromJSON(json: any): V3TimeRange; +export declare function V3TimeRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3TimeRange; +export declare function V3TimeRangeToJSON(value?: V3TimeRange | null): any; diff --git a/dist/esm/models/V3TimeRange.js b/dist/esm/models/V3TimeRange.js new file mode 100644 index 0000000..73306f4 --- /dev/null +++ b/dist/esm/models/V3TimeRange.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3TimeRange interface. + */ +export function instanceOfV3TimeRange(value) { + return true; +} +export function V3TimeRangeFromJSON(json) { + return V3TimeRangeFromJSONTyped(json, false); +} +export function V3TimeRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +export function V3TimeRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/esm/models/V3User.d.ts b/dist/esm/models/V3User.d.ts new file mode 100644 index 0000000..4344970 --- /dev/null +++ b/dist/esm/models/V3User.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об участнике чата. + * @export + * @interface V3User + */ +export interface V3User { + /** + * Идентификатор участника чата. + * @type {string} + * @memberof V3User + */ + id?: string; + /** + * Тип участника чата: + * - `Customer` — покупатель, + * - `Seller` — продавец, + * - `Crm` — системные сообщения, + * - `Courier` — курьер, + * - `Support` — поддержка, + * - `NotificationUser` — уведомления. + * + * @type {string} + * @memberof V3User + */ + type?: string; +} +/** + * Check if a given object implements the V3User interface. + */ +export declare function instanceOfV3User(value: object): value is V3User; +export declare function V3UserFromJSON(json: any): V3User; +export declare function V3UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3User; +export declare function V3UserToJSON(value?: V3User | null): any; diff --git a/dist/esm/models/V3User.js b/dist/esm/models/V3User.js new file mode 100644 index 0000000..b271044 --- /dev/null +++ b/dist/esm/models/V3User.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V3User interface. + */ +export function instanceOfV3User(value) { + return true; +} +export function V3UserFromJSON(json) { + return V3UserFromJSONTyped(json, false); +} +export function V3UserFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} +export function V3UserToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'type': value['type'], + }; +} diff --git a/dist/esm/models/V4FbsPostingShipPackageV4Request.d.ts b/dist/esm/models/V4FbsPostingShipPackageV4Request.d.ts new file mode 100644 index 0000000..00c8865 --- /dev/null +++ b/dist/esm/models/V4FbsPostingShipPackageV4Request.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V4FbsPostingShipPackageV4RequestProduct } from './V4FbsPostingShipPackageV4RequestProduct'; +/** + * + * @export + * @interface V4FbsPostingShipPackageV4Request + */ +export interface V4FbsPostingShipPackageV4Request { + /** + * Номер отправления. + * @type {string} + * @memberof V4FbsPostingShipPackageV4Request + */ + posting_number: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V4FbsPostingShipPackageV4Request + */ + products?: Array; +} +/** + * Check if a given object implements the V4FbsPostingShipPackageV4Request interface. + */ +export declare function instanceOfV4FbsPostingShipPackageV4Request(value: object): value is V4FbsPostingShipPackageV4Request; +export declare function V4FbsPostingShipPackageV4RequestFromJSON(json: any): V4FbsPostingShipPackageV4Request; +export declare function V4FbsPostingShipPackageV4RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4FbsPostingShipPackageV4Request; +export declare function V4FbsPostingShipPackageV4RequestToJSON(value?: V4FbsPostingShipPackageV4Request | null): any; diff --git a/dist/esm/models/V4FbsPostingShipPackageV4Request.js b/dist/esm/models/V4FbsPostingShipPackageV4Request.js new file mode 100644 index 0000000..03229c6 --- /dev/null +++ b/dist/esm/models/V4FbsPostingShipPackageV4Request.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V4FbsPostingShipPackageV4RequestProductFromJSON, V4FbsPostingShipPackageV4RequestProductToJSON, } from './V4FbsPostingShipPackageV4RequestProduct'; +/** + * Check if a given object implements the V4FbsPostingShipPackageV4Request interface. + */ +export function instanceOfV4FbsPostingShipPackageV4Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V4FbsPostingShipPackageV4RequestFromJSON(json) { + return V4FbsPostingShipPackageV4RequestFromJSONTyped(json, false); +} +export function V4FbsPostingShipPackageV4RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V4FbsPostingShipPackageV4RequestProductFromJSON)), + }; +} +export function V4FbsPostingShipPackageV4RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V4FbsPostingShipPackageV4RequestProductToJSON)), + }; +} diff --git a/dist/esm/models/V4FbsPostingShipPackageV4RequestProduct.d.ts b/dist/esm/models/V4FbsPostingShipPackageV4RequestProduct.d.ts new file mode 100644 index 0000000..8016d16 --- /dev/null +++ b/dist/esm/models/V4FbsPostingShipPackageV4RequestProduct.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V4FbsPostingShipPackageV4RequestProduct + */ +export interface V4FbsPostingShipPackageV4RequestProduct { + /** + * Идентификаторы экземпляров товара. + * @type {Array} + * @memberof V4FbsPostingShipPackageV4RequestProduct + */ + exemplarsIds?: Array; + /** + * Идентификатор товара в системе продавца — SKU. + * @type {number} + * @memberof V4FbsPostingShipPackageV4RequestProduct + */ + product_id: number; + /** + * Количество экземпляров. + * @type {number} + * @memberof V4FbsPostingShipPackageV4RequestProduct + */ + quantity: number; +} +/** + * Check if a given object implements the V4FbsPostingShipPackageV4RequestProduct interface. + */ +export declare function instanceOfV4FbsPostingShipPackageV4RequestProduct(value: object): value is V4FbsPostingShipPackageV4RequestProduct; +export declare function V4FbsPostingShipPackageV4RequestProductFromJSON(json: any): V4FbsPostingShipPackageV4RequestProduct; +export declare function V4FbsPostingShipPackageV4RequestProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4FbsPostingShipPackageV4RequestProduct; +export declare function V4FbsPostingShipPackageV4RequestProductToJSON(value?: V4FbsPostingShipPackageV4RequestProduct | null): any; diff --git a/dist/esm/models/V4FbsPostingShipPackageV4RequestProduct.js b/dist/esm/models/V4FbsPostingShipPackageV4RequestProduct.js new file mode 100644 index 0000000..082a16c --- /dev/null +++ b/dist/esm/models/V4FbsPostingShipPackageV4RequestProduct.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V4FbsPostingShipPackageV4RequestProduct interface. + */ +export function instanceOfV4FbsPostingShipPackageV4RequestProduct(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + return true; +} +export function V4FbsPostingShipPackageV4RequestProductFromJSON(json) { + return V4FbsPostingShipPackageV4RequestProductFromJSONTyped(json, false); +} +export function V4FbsPostingShipPackageV4RequestProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplarsIds': json['exemplarsIds'] == null ? undefined : json['exemplarsIds'], + 'product_id': json['product_id'], + 'quantity': json['quantity'], + }; +} +export function V4FbsPostingShipPackageV4RequestProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplarsIds': value['exemplarsIds'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/esm/models/V4FbsPostingShipPackageV4Response.d.ts b/dist/esm/models/V4FbsPostingShipPackageV4Response.d.ts new file mode 100644 index 0000000..da17a0e --- /dev/null +++ b/dist/esm/models/V4FbsPostingShipPackageV4Response.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V4FbsPostingShipPackageV4Response + */ +export interface V4FbsPostingShipPackageV4Response { + /** + * Номера отправлений, сформированные после сборки. + * @type {string} + * @memberof V4FbsPostingShipPackageV4Response + */ + result?: string; +} +/** + * Check if a given object implements the V4FbsPostingShipPackageV4Response interface. + */ +export declare function instanceOfV4FbsPostingShipPackageV4Response(value: object): value is V4FbsPostingShipPackageV4Response; +export declare function V4FbsPostingShipPackageV4ResponseFromJSON(json: any): V4FbsPostingShipPackageV4Response; +export declare function V4FbsPostingShipPackageV4ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4FbsPostingShipPackageV4Response; +export declare function V4FbsPostingShipPackageV4ResponseToJSON(value?: V4FbsPostingShipPackageV4Response | null): any; diff --git a/dist/esm/models/V4FbsPostingShipPackageV4Response.js b/dist/esm/models/V4FbsPostingShipPackageV4Response.js new file mode 100644 index 0000000..416af23 --- /dev/null +++ b/dist/esm/models/V4FbsPostingShipPackageV4Response.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V4FbsPostingShipPackageV4Response interface. + */ +export function instanceOfV4FbsPostingShipPackageV4Response(value) { + return true; +} +export function V4FbsPostingShipPackageV4ResponseFromJSON(json) { + return V4FbsPostingShipPackageV4ResponseFromJSONTyped(json, false); +} +export function V4FbsPostingShipPackageV4ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +export function V4FbsPostingShipPackageV4ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/esm/models/V4GetProductAttributesResponseModelInfo.d.ts b/dist/esm/models/V4GetProductAttributesResponseModelInfo.d.ts new file mode 100644 index 0000000..bac15d6 --- /dev/null +++ b/dist/esm/models/V4GetProductAttributesResponseModelInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о модели. + * @export + * @interface V4GetProductAttributesResponseModelInfo + */ +export interface V4GetProductAttributesResponseModelInfo { + /** + * Идентификатор модели. + * @type {number} + * @memberof V4GetProductAttributesResponseModelInfo + */ + model_id?: number; + /** + * Количество объединённых товаров модели. + * @type {number} + * @memberof V4GetProductAttributesResponseModelInfo + */ + count?: number; +} +/** + * Check if a given object implements the V4GetProductAttributesResponseModelInfo interface. + */ +export declare function instanceOfV4GetProductAttributesResponseModelInfo(value: object): value is V4GetProductAttributesResponseModelInfo; +export declare function V4GetProductAttributesResponseModelInfoFromJSON(json: any): V4GetProductAttributesResponseModelInfo; +export declare function V4GetProductAttributesResponseModelInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductAttributesResponseModelInfo; +export declare function V4GetProductAttributesResponseModelInfoToJSON(value?: V4GetProductAttributesResponseModelInfo | null): any; diff --git a/dist/esm/models/V4GetProductAttributesResponseModelInfo.js b/dist/esm/models/V4GetProductAttributesResponseModelInfo.js new file mode 100644 index 0000000..516a8a4 --- /dev/null +++ b/dist/esm/models/V4GetProductAttributesResponseModelInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V4GetProductAttributesResponseModelInfo interface. + */ +export function instanceOfV4GetProductAttributesResponseModelInfo(value) { + return true; +} +export function V4GetProductAttributesResponseModelInfoFromJSON(json) { + return V4GetProductAttributesResponseModelInfoFromJSONTyped(json, false); +} +export function V4GetProductAttributesResponseModelInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'model_id': json['model_id'] == null ? undefined : json['model_id'], + 'count': json['count'] == null ? undefined : json['count'], + }; +} +export function V4GetProductAttributesResponseModelInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'model_id': value['model_id'], + 'count': value['count'], + }; +} diff --git a/dist/esm/models/V4GetProductAttributesResponsePdf.d.ts b/dist/esm/models/V4GetProductAttributesResponsePdf.d.ts new file mode 100644 index 0000000..695e896 --- /dev/null +++ b/dist/esm/models/V4GetProductAttributesResponsePdf.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V4GetProductAttributesResponsePdf + */ +export interface V4GetProductAttributesResponsePdf { + /** + * Путь к PDF-файлу. + * @type {string} + * @memberof V4GetProductAttributesResponsePdf + */ + file_name?: string; + /** + * Название файла. + * @type {string} + * @memberof V4GetProductAttributesResponsePdf + */ + name?: string; +} +/** + * Check if a given object implements the V4GetProductAttributesResponsePdf interface. + */ +export declare function instanceOfV4GetProductAttributesResponsePdf(value: object): value is V4GetProductAttributesResponsePdf; +export declare function V4GetProductAttributesResponsePdfFromJSON(json: any): V4GetProductAttributesResponsePdf; +export declare function V4GetProductAttributesResponsePdfFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductAttributesResponsePdf; +export declare function V4GetProductAttributesResponsePdfToJSON(value?: V4GetProductAttributesResponsePdf | null): any; diff --git a/dist/esm/models/V4GetProductAttributesResponsePdf.js b/dist/esm/models/V4GetProductAttributesResponsePdf.js new file mode 100644 index 0000000..e4c7b92 --- /dev/null +++ b/dist/esm/models/V4GetProductAttributesResponsePdf.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V4GetProductAttributesResponsePdf interface. + */ +export function instanceOfV4GetProductAttributesResponsePdf(value) { + return true; +} +export function V4GetProductAttributesResponsePdfFromJSON(json) { + return V4GetProductAttributesResponsePdfFromJSONTyped(json, false); +} +export function V4GetProductAttributesResponsePdfFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function V4GetProductAttributesResponsePdfToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_name': value['file_name'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/V4GetProductInfoStocksRequest.d.ts b/dist/esm/models/V4GetProductInfoStocksRequest.d.ts new file mode 100644 index 0000000..a7a8a46 --- /dev/null +++ b/dist/esm/models/V4GetProductInfoStocksRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V4GetProductInfoStocksRequestFilter } from './V4GetProductInfoStocksRequestFilter'; +/** + * + * @export + * @interface V4GetProductInfoStocksRequest + */ +export interface V4GetProductInfoStocksRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V4GetProductInfoStocksRequest + */ + cursor?: string; + /** + * + * @type {V4GetProductInfoStocksRequestFilter} + * @memberof V4GetProductInfoStocksRequest + */ + filter: V4GetProductInfoStocksRequestFilter; + /** + * Количество значений на странице. Минимум — 1, максимум — 1000. + * @type {number} + * @memberof V4GetProductInfoStocksRequest + */ + limit: number; +} +/** + * Check if a given object implements the V4GetProductInfoStocksRequest interface. + */ +export declare function instanceOfV4GetProductInfoStocksRequest(value: object): value is V4GetProductInfoStocksRequest; +export declare function V4GetProductInfoStocksRequestFromJSON(json: any): V4GetProductInfoStocksRequest; +export declare function V4GetProductInfoStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductInfoStocksRequest; +export declare function V4GetProductInfoStocksRequestToJSON(value?: V4GetProductInfoStocksRequest | null): any; diff --git a/dist/esm/models/V4GetProductInfoStocksRequest.js b/dist/esm/models/V4GetProductInfoStocksRequest.js new file mode 100644 index 0000000..f7016ec --- /dev/null +++ b/dist/esm/models/V4GetProductInfoStocksRequest.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V4GetProductInfoStocksRequestFilterFromJSON, V4GetProductInfoStocksRequestFilterToJSON, } from './V4GetProductInfoStocksRequestFilter'; +/** + * Check if a given object implements the V4GetProductInfoStocksRequest interface. + */ +export function instanceOfV4GetProductInfoStocksRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function V4GetProductInfoStocksRequestFromJSON(json) { + return V4GetProductInfoStocksRequestFromJSONTyped(json, false); +} +export function V4GetProductInfoStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': V4GetProductInfoStocksRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + }; +} +export function V4GetProductInfoStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': V4GetProductInfoStocksRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/esm/models/V4GetProductInfoStocksRequestFilter.d.ts b/dist/esm/models/V4GetProductInfoStocksRequestFilter.d.ts new file mode 100644 index 0000000..7735243 --- /dev/null +++ b/dist/esm/models/V4GetProductInfoStocksRequestFilter.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FilterWithQuant } from './FilterWithQuant'; +import type { V4Visibility } from './V4Visibility'; +/** + * Фильтр по товарам. + * @export + * @interface V4GetProductInfoStocksRequestFilter + */ +export interface V4GetProductInfoStocksRequestFilter { + /** + * Фильтр по параметру `offer_id`. Можно передавать список значений. + * @type {Array} + * @memberof V4GetProductInfoStocksRequestFilter + */ + offer_id?: Array; + /** + * Фильтр по параметру `product_id`. Можно передавать список значений. + * @type {Array} + * @memberof V4GetProductInfoStocksRequestFilter + */ + product_id?: Array; + /** + * + * @type {V4Visibility} + * @memberof V4GetProductInfoStocksRequestFilter + */ + visibility?: V4Visibility; + /** + * + * @type {FilterWithQuant} + * @memberof V4GetProductInfoStocksRequestFilter + */ + with_quant?: FilterWithQuant; +} +/** + * Check if a given object implements the V4GetProductInfoStocksRequestFilter interface. + */ +export declare function instanceOfV4GetProductInfoStocksRequestFilter(value: object): value is V4GetProductInfoStocksRequestFilter; +export declare function V4GetProductInfoStocksRequestFilterFromJSON(json: any): V4GetProductInfoStocksRequestFilter; +export declare function V4GetProductInfoStocksRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductInfoStocksRequestFilter; +export declare function V4GetProductInfoStocksRequestFilterToJSON(value?: V4GetProductInfoStocksRequestFilter | null): any; diff --git a/dist/esm/models/V4GetProductInfoStocksRequestFilter.js b/dist/esm/models/V4GetProductInfoStocksRequestFilter.js new file mode 100644 index 0000000..f327f54 --- /dev/null +++ b/dist/esm/models/V4GetProductInfoStocksRequestFilter.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FilterWithQuantFromJSON, FilterWithQuantToJSON, } from './FilterWithQuant'; +import { V4VisibilityFromJSON, V4VisibilityToJSON, } from './V4Visibility'; +/** + * Check if a given object implements the V4GetProductInfoStocksRequestFilter interface. + */ +export function instanceOfV4GetProductInfoStocksRequestFilter(value) { + return true; +} +export function V4GetProductInfoStocksRequestFilterFromJSON(json) { + return V4GetProductInfoStocksRequestFilterFromJSONTyped(json, false); +} +export function V4GetProductInfoStocksRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'visibility': json['visibility'] == null ? undefined : V4VisibilityFromJSON(json['visibility']), + 'with_quant': json['with_quant'] == null ? undefined : FilterWithQuantFromJSON(json['with_quant']), + }; +} +export function V4GetProductInfoStocksRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'visibility': V4VisibilityToJSON(value['visibility']), + 'with_quant': FilterWithQuantToJSON(value['with_quant']), + }; +} diff --git a/dist/esm/models/V4GetProductInfoStocksResponse.d.ts b/dist/esm/models/V4GetProductInfoStocksResponse.d.ts new file mode 100644 index 0000000..73febcb --- /dev/null +++ b/dist/esm/models/V4GetProductInfoStocksResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V4GetProductInfoStocksResponseItem } from './V4GetProductInfoStocksResponseItem'; +/** + * + * @export + * @interface V4GetProductInfoStocksResponse + */ +export interface V4GetProductInfoStocksResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V4GetProductInfoStocksResponse + */ + cursor?: string; + /** + * Информация о товарах. + * @type {Array} + * @memberof V4GetProductInfoStocksResponse + */ + items?: Array; + /** + * Количество уникальных товаров, для которых выводится информация об остатках. + * @type {number} + * @memberof V4GetProductInfoStocksResponse + */ + total?: number; +} +/** + * Check if a given object implements the V4GetProductInfoStocksResponse interface. + */ +export declare function instanceOfV4GetProductInfoStocksResponse(value: object): value is V4GetProductInfoStocksResponse; +export declare function V4GetProductInfoStocksResponseFromJSON(json: any): V4GetProductInfoStocksResponse; +export declare function V4GetProductInfoStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductInfoStocksResponse; +export declare function V4GetProductInfoStocksResponseToJSON(value?: V4GetProductInfoStocksResponse | null): any; diff --git a/dist/esm/models/V4GetProductInfoStocksResponse.js b/dist/esm/models/V4GetProductInfoStocksResponse.js new file mode 100644 index 0000000..d8cd1fa --- /dev/null +++ b/dist/esm/models/V4GetProductInfoStocksResponse.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V4GetProductInfoStocksResponseItemFromJSON, V4GetProductInfoStocksResponseItemToJSON, } from './V4GetProductInfoStocksResponseItem'; +/** + * Check if a given object implements the V4GetProductInfoStocksResponse interface. + */ +export function instanceOfV4GetProductInfoStocksResponse(value) { + return true; +} +export function V4GetProductInfoStocksResponseFromJSON(json) { + return V4GetProductInfoStocksResponseFromJSONTyped(json, false); +} +export function V4GetProductInfoStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'items': json['items'] == null ? undefined : (json['items'].map(V4GetProductInfoStocksResponseItemFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +export function V4GetProductInfoStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'items': value['items'] == null ? undefined : (value['items'].map(V4GetProductInfoStocksResponseItemToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/esm/models/V4GetProductInfoStocksResponseItem.d.ts b/dist/esm/models/V4GetProductInfoStocksResponseItem.d.ts new file mode 100644 index 0000000..a24d71f --- /dev/null +++ b/dist/esm/models/V4GetProductInfoStocksResponseItem.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductInfoStocksResponseStock } from './GetProductInfoStocksResponseStock'; +/** + * + * @export + * @interface V4GetProductInfoStocksResponseItem + */ +export interface V4GetProductInfoStocksResponseItem { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V4GetProductInfoStocksResponseItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V4GetProductInfoStocksResponseItem + */ + product_id?: number; + /** + * Информация об остатках. + * @type {Array} + * @memberof V4GetProductInfoStocksResponseItem + */ + stocks?: Array; +} +/** + * Check if a given object implements the V4GetProductInfoStocksResponseItem interface. + */ +export declare function instanceOfV4GetProductInfoStocksResponseItem(value: object): value is V4GetProductInfoStocksResponseItem; +export declare function V4GetProductInfoStocksResponseItemFromJSON(json: any): V4GetProductInfoStocksResponseItem; +export declare function V4GetProductInfoStocksResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductInfoStocksResponseItem; +export declare function V4GetProductInfoStocksResponseItemToJSON(value?: V4GetProductInfoStocksResponseItem | null): any; diff --git a/dist/esm/models/V4GetProductInfoStocksResponseItem.js b/dist/esm/models/V4GetProductInfoStocksResponseItem.js new file mode 100644 index 0000000..e1ebc08 --- /dev/null +++ b/dist/esm/models/V4GetProductInfoStocksResponseItem.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GetProductInfoStocksResponseStockFromJSON, GetProductInfoStocksResponseStockToJSON, } from './GetProductInfoStocksResponseStock'; +/** + * Check if a given object implements the V4GetProductInfoStocksResponseItem interface. + */ +export function instanceOfV4GetProductInfoStocksResponseItem(value) { + return true; +} +export function V4GetProductInfoStocksResponseItemFromJSON(json) { + return V4GetProductInfoStocksResponseItemFromJSONTyped(json, false); +} +export function V4GetProductInfoStocksResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'stocks': json['stocks'] == null ? undefined : (json['stocks'].map(GetProductInfoStocksResponseStockFromJSON)), + }; +} +export function V4GetProductInfoStocksResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'stocks': value['stocks'] == null ? undefined : (value['stocks'].map(GetProductInfoStocksResponseStockToJSON)), + }; +} diff --git a/dist/esm/models/V4GetUploadQuotaResponse.d.ts b/dist/esm/models/V4GetUploadQuotaResponse.d.ts new file mode 100644 index 0000000..09e4fa4 --- /dev/null +++ b/dist/esm/models/V4GetUploadQuotaResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV4GetUploadQuotaResponseOperationLimits } from './ProductV4GetUploadQuotaResponseOperationLimits'; +import type { GetUploadQuotaResponseDailyUpdate } from './GetUploadQuotaResponseDailyUpdate'; +import type { GetUploadQuotaResponseTotal } from './GetUploadQuotaResponseTotal'; +import type { GetUploadQuotaResponseDailyCreate } from './GetUploadQuotaResponseDailyCreate'; +/** + * + * @export + * @interface V4GetUploadQuotaResponse + */ +export interface V4GetUploadQuotaResponse { + /** + * + * @type {GetUploadQuotaResponseDailyCreate} + * @memberof V4GetUploadQuotaResponse + */ + daily_create?: GetUploadQuotaResponseDailyCreate; + /** + * + * @type {GetUploadQuotaResponseDailyUpdate} + * @memberof V4GetUploadQuotaResponse + */ + daily_update?: GetUploadQuotaResponseDailyUpdate; + /** + * + * @type {ProductV4GetUploadQuotaResponseOperationLimits} + * @memberof V4GetUploadQuotaResponse + */ + operation_limits?: ProductV4GetUploadQuotaResponseOperationLimits; + /** + * + * @type {GetUploadQuotaResponseTotal} + * @memberof V4GetUploadQuotaResponse + */ + total?: GetUploadQuotaResponseTotal; +} +/** + * Check if a given object implements the V4GetUploadQuotaResponse interface. + */ +export declare function instanceOfV4GetUploadQuotaResponse(value: object): value is V4GetUploadQuotaResponse; +export declare function V4GetUploadQuotaResponseFromJSON(json: any): V4GetUploadQuotaResponse; +export declare function V4GetUploadQuotaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetUploadQuotaResponse; +export declare function V4GetUploadQuotaResponseToJSON(value?: V4GetUploadQuotaResponse | null): any; diff --git a/dist/esm/models/V4GetUploadQuotaResponse.js b/dist/esm/models/V4GetUploadQuotaResponse.js new file mode 100644 index 0000000..7e52d2d --- /dev/null +++ b/dist/esm/models/V4GetUploadQuotaResponse.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProductV4GetUploadQuotaResponseOperationLimitsFromJSON, ProductV4GetUploadQuotaResponseOperationLimitsToJSON, } from './ProductV4GetUploadQuotaResponseOperationLimits'; +import { GetUploadQuotaResponseDailyUpdateFromJSON, GetUploadQuotaResponseDailyUpdateToJSON, } from './GetUploadQuotaResponseDailyUpdate'; +import { GetUploadQuotaResponseTotalFromJSON, GetUploadQuotaResponseTotalToJSON, } from './GetUploadQuotaResponseTotal'; +import { GetUploadQuotaResponseDailyCreateFromJSON, GetUploadQuotaResponseDailyCreateToJSON, } from './GetUploadQuotaResponseDailyCreate'; +/** + * Check if a given object implements the V4GetUploadQuotaResponse interface. + */ +export function instanceOfV4GetUploadQuotaResponse(value) { + return true; +} +export function V4GetUploadQuotaResponseFromJSON(json) { + return V4GetUploadQuotaResponseFromJSONTyped(json, false); +} +export function V4GetUploadQuotaResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'daily_create': json['daily_create'] == null ? undefined : GetUploadQuotaResponseDailyCreateFromJSON(json['daily_create']), + 'daily_update': json['daily_update'] == null ? undefined : GetUploadQuotaResponseDailyUpdateFromJSON(json['daily_update']), + 'operation_limits': json['operation_limits'] == null ? undefined : ProductV4GetUploadQuotaResponseOperationLimitsFromJSON(json['operation_limits']), + 'total': json['total'] == null ? undefined : GetUploadQuotaResponseTotalFromJSON(json['total']), + }; +} +export function V4GetUploadQuotaResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'daily_create': GetUploadQuotaResponseDailyCreateToJSON(value['daily_create']), + 'daily_update': GetUploadQuotaResponseDailyUpdateToJSON(value['daily_update']), + 'operation_limits': ProductV4GetUploadQuotaResponseOperationLimitsToJSON(value['operation_limits']), + 'total': GetUploadQuotaResponseTotalToJSON(value['total']), + }; +} diff --git a/dist/esm/models/V4Visibility.d.ts b/dist/esm/models/V4Visibility.d.ts new file mode 100644 index 0000000..53b6f6d --- /dev/null +++ b/dist/esm/models/V4Visibility.d.ts @@ -0,0 +1,79 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `BANNED` — заблокированные товары; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export declare const V4Visibility: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly BANNED: "BANNED"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; + readonly SEASONAL_AUTO_ARCHIVED: "SEASONAL_AUTO_ARCHIVED"; + readonly VISIBLE_WITH_FBO_STOCK: "VISIBLE_WITH_FBO_STOCK"; +}; +export type V4Visibility = typeof V4Visibility[keyof typeof V4Visibility]; +export declare function instanceOfV4Visibility(value: any): boolean; +export declare function V4VisibilityFromJSON(json: any): V4Visibility; +export declare function V4VisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4Visibility; +export declare function V4VisibilityToJSON(value?: V4Visibility | null): any; diff --git a/dist/esm/models/V4Visibility.js b/dist/esm/models/V4Visibility.js new file mode 100644 index 0000000..e17e85a --- /dev/null +++ b/dist/esm/models/V4Visibility.js @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `BANNED` — заблокированные товары; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export const V4Visibility = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + BANNED: 'BANNED', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED', + SEASONAL_AUTO_ARCHIVED: 'SEASONAL_AUTO_ARCHIVED', + VISIBLE_WITH_FBO_STOCK: 'VISIBLE_WITH_FBO_STOCK' +}; +export function instanceOfV4Visibility(value) { + for (const key in V4Visibility) { + if (Object.prototype.hasOwnProperty.call(V4Visibility, key)) { + if (V4Visibility[key] === value) { + return true; + } + } + } + return false; +} +export function V4VisibilityFromJSON(json) { + return V4VisibilityFromJSONTyped(json, false); +} +export function V4VisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function V4VisibilityToJSON(value) { + return value; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5Request.d.ts b/dist/esm/models/V5FbsPostingProductExemplarStatusV5Request.d.ts new file mode 100644 index 0000000..6c1e31b --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5Request + */ +export interface V5FbsPostingProductExemplarStatusV5Request { + /** + * Номер отправления. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5Request + */ + posting_number: string; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5Request interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5Request(value: object): value is V5FbsPostingProductExemplarStatusV5Request; +export declare function V5FbsPostingProductExemplarStatusV5RequestFromJSON(json: any): V5FbsPostingProductExemplarStatusV5Request; +export declare function V5FbsPostingProductExemplarStatusV5RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5Request; +export declare function V5FbsPostingProductExemplarStatusV5RequestToJSON(value?: V5FbsPostingProductExemplarStatusV5Request | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5Request.js b/dist/esm/models/V5FbsPostingProductExemplarStatusV5Request.js new file mode 100644 index 0000000..1de914e --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5Request.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5Request interface. + */ +export function instanceOfV5FbsPostingProductExemplarStatusV5Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V5FbsPostingProductExemplarStatusV5RequestFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5RequestFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarStatusV5RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V5FbsPostingProductExemplarStatusV5RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5Response.d.ts b/dist/esm/models/V5FbsPostingProductExemplarStatusV5Response.d.ts new file mode 100644 index 0000000..2cdbb2d --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5Response.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarStatusV5ResponseProduct } from './V5FbsPostingProductExemplarStatusV5ResponseProduct'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5Response + */ +export interface V5FbsPostingProductExemplarStatusV5Response { + /** + * Номер отправления. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5Response + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5Response + */ + products?: Array; + /** + * Статус проверки всех экземпляров и доступности сборки: + * - `ship_available` — сборка доступна; + * - `ship_not_available` — сборка недоступна; + * - `validation_in_process` — экземпляры на проверке; + * - `update_available` — редактирование информации об экземплярах доступно; + * - `update_not_available` — редактирование информации об экземплярах недоступно. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5Response + */ + status?: string; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5Response interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5Response(value: object): value is V5FbsPostingProductExemplarStatusV5Response; +export declare function V5FbsPostingProductExemplarStatusV5ResponseFromJSON(json: any): V5FbsPostingProductExemplarStatusV5Response; +export declare function V5FbsPostingProductExemplarStatusV5ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5Response; +export declare function V5FbsPostingProductExemplarStatusV5ResponseToJSON(value?: V5FbsPostingProductExemplarStatusV5Response | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5Response.js b/dist/esm/models/V5FbsPostingProductExemplarStatusV5Response.js new file mode 100644 index 0000000..59d27c7 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON, V5FbsPostingProductExemplarStatusV5ResponseProductToJSON, } from './V5FbsPostingProductExemplarStatusV5ResponseProduct'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5Response interface. + */ +export function instanceOfV5FbsPostingProductExemplarStatusV5Response(value) { + return true; +} +export function V5FbsPostingProductExemplarStatusV5ResponseFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5ResponseFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarStatusV5ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + }; +} +export function V5FbsPostingProductExemplarStatusV5ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V5FbsPostingProductExemplarStatusV5ResponseProductToJSON)), + 'status': value['status'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.d.ts b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.d.ts new file mode 100644 index 0000000..722bc3f --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarStatusV5ResponseProductExemplar } from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplar'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5ResponseProduct + */ +export interface V5FbsPostingProductExemplarStatusV5ResponseProduct { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProduct + */ + exemplars?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProduct + */ + product_id?: number; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProduct interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProduct(value: object): value is V5FbsPostingProductExemplarStatusV5ResponseProduct; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON(json: any): V5FbsPostingProductExemplarStatusV5ResponseProduct; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5ResponseProduct; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductToJSON(value?: V5FbsPostingProductExemplarStatusV5ResponseProduct | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.js b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.js new file mode 100644 index 0000000..62ce8f4 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON, V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON, } from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplar'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProduct interface. + */ +export function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProduct(value) { + return true; +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5ResponseProductFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON)), + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON)), + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.d.ts b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.d.ts new file mode 100644 index 0000000..d12bbdc --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.d.ts @@ -0,0 +1,104 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark } from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ +export interface V5FbsPostingProductExemplarStatusV5ResponseProductExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + exemplar_id?: number; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + gtd?: string; + /** + * Статус проверки грузовой таможенной декларации. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + gtd_check_status?: string; + /** + * Коды ошибок при проверке грузовой таможенной декларации. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + gtd_error_codes?: Array; + /** + * Признак того, что не указан номер таможенной декларации (ГТД). + * @type {boolean} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + is_gtd_absent?: boolean; + /** + * Признак того, что не указан регистрационный номер партии товара (РНПТ). + * @type {boolean} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + is_rnpt_absent?: boolean; + /** + * Список контрольных идентификационных знаков (КИЗ) и других маркировок в одном экземпляре. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + rnpt?: string; + /** + * Статус проверки регистрационного номера партии товара. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + rnpt_check_status?: string; + /** + * Коды ошибок при проверке регистрационного номера партии товара. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + rnpt_error_codes?: Array; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + weight?: number; + /** + * Статус проверки фактического веса. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + weight_check_status?: string; + /** + * Коды ошибок при проверке фактического веса. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + weight_error_codes?: Array; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProductExemplar interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplar(value: object): value is V5FbsPostingProductExemplarStatusV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON(json: any): V5FbsPostingProductExemplarStatusV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON(value?: V5FbsPostingProductExemplarStatusV5ResponseProductExemplar | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.js b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.js new file mode 100644 index 0000000..2761c24 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.js @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON, V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON, } from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProductExemplar interface. + */ +export function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplar(value) { + return true; +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'gtd_check_status': json['gtd_check_status'] == null ? undefined : json['gtd_check_status'], + 'gtd_error_codes': json['gtd_error_codes'] == null ? undefined : json['gtd_error_codes'], + 'is_gtd_absent': json['is_gtd_absent'] == null ? undefined : json['is_gtd_absent'], + 'is_rnpt_absent': json['is_rnpt_absent'] == null ? undefined : json['is_rnpt_absent'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'rnpt_check_status': json['rnpt_check_status'] == null ? undefined : json['rnpt_check_status'], + 'rnpt_error_codes': json['rnpt_error_codes'] == null ? undefined : json['rnpt_error_codes'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'weight_check_status': json['weight_check_status'] == null ? undefined : json['weight_check_status'], + 'weight_error_codes': json['weight_error_codes'] == null ? undefined : json['weight_error_codes'], + }; +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'gtd': value['gtd'], + 'gtd_check_status': value['gtd_check_status'], + 'gtd_error_codes': value['gtd_error_codes'], + 'is_gtd_absent': value['is_gtd_absent'], + 'is_rnpt_absent': value['is_rnpt_absent'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON)), + 'rnpt': value['rnpt'], + 'rnpt_check_status': value['rnpt_check_status'], + 'rnpt_error_codes': value['rnpt_error_codes'], + 'weight': value['weight'], + 'weight_check_status': value['weight_check_status'], + 'weight_error_codes': value['weight_error_codes'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.d.ts b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.d.ts new file mode 100644 index 0000000..31b299e --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ +export interface V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark { + /** + * Статус проверки: + * - `processing` — на проверке; + * - `failed` — система не успела обработать запрос; + * - `passed` — заказ готов к сборке. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ + check_status?: string; + /** + * Ошибки при проверке контрольных идентификационных знаков (КИЗ) и других маркировок. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ + error_codes?: Array; + /** + * Значение кода маркировки. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ + mark_type?: string; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark(value: object): value is V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON(json: any): V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON(value?: V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.js b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.js new file mode 100644 index 0000000..86f4b6c --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark interface. + */ +export function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark(value) { + return true; +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'check_status': json['check_status'] == null ? undefined : json['check_status'], + 'error_codes': json['error_codes'] == null ? undefined : json['error_codes'], + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + }; +} +export function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON(value) { + if (value == null) { + return value; + } + return { + 'check_status': value['check_status'], + 'error_codes': value['error_codes'], + 'mark': value['mark'], + 'mark_type': value['mark_type'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5Request.d.ts b/dist/esm/models/V5FbsPostingProductExemplarValidateV5Request.d.ts new file mode 100644 index 0000000..11b5330 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5Request.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5RequestProduct } from './V5FbsPostingProductExemplarValidateV5RequestProduct'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5Request + */ +export interface V5FbsPostingProductExemplarValidateV5Request { + /** + * Номер отправления. + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5Request + */ + posting_number: string; + /** + * Список товаров. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5Request + */ + products: Array; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5Request interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5Request(value: object): value is V5FbsPostingProductExemplarValidateV5Request; +export declare function V5FbsPostingProductExemplarValidateV5RequestFromJSON(json: any): V5FbsPostingProductExemplarValidateV5Request; +export declare function V5FbsPostingProductExemplarValidateV5RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5Request; +export declare function V5FbsPostingProductExemplarValidateV5RequestToJSON(value?: V5FbsPostingProductExemplarValidateV5Request | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5Request.js b/dist/esm/models/V5FbsPostingProductExemplarValidateV5Request.js new file mode 100644 index 0000000..4ed9024 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5Request.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarValidateV5RequestProductFromJSON, V5FbsPostingProductExemplarValidateV5RequestProductToJSON, } from './V5FbsPostingProductExemplarValidateV5RequestProduct'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5Request interface. + */ +export function instanceOfV5FbsPostingProductExemplarValidateV5Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +export function V5FbsPostingProductExemplarValidateV5RequestFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5RequestFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarValidateV5RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'products': (json['products'].map(V5FbsPostingProductExemplarValidateV5RequestProductFromJSON)), + }; +} +export function V5FbsPostingProductExemplarValidateV5RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': (value['products'].map(V5FbsPostingProductExemplarValidateV5RequestProductToJSON)), + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProduct.d.ts b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProduct.d.ts new file mode 100644 index 0000000..5d91d0d --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProduct.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5RequestProductExemplar } from './V5FbsPostingProductExemplarValidateV5RequestProductExemplar'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5RequestProduct + */ +export interface V5FbsPostingProductExemplarValidateV5RequestProduct { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProduct + */ + exemplars: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProduct + */ + product_id: number; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProduct interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5RequestProduct(value: object): value is V5FbsPostingProductExemplarValidateV5RequestProduct; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductFromJSON(json: any): V5FbsPostingProductExemplarValidateV5RequestProduct; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5RequestProduct; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductToJSON(value?: V5FbsPostingProductExemplarValidateV5RequestProduct | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProduct.js b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProduct.js new file mode 100644 index 0000000..bba79e5 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProduct.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON, V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON, } from './V5FbsPostingProductExemplarValidateV5RequestProductExemplar'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProduct interface. + */ +export function instanceOfV5FbsPostingProductExemplarValidateV5RequestProduct(value) { + if (!('exemplars' in value) || value['exemplars'] === undefined) + return false; + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +export function V5FbsPostingProductExemplarValidateV5RequestProductFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5RequestProductFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarValidateV5RequestProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': (json['exemplars'].map(V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON)), + 'product_id': json['product_id'], + }; +} +export function V5FbsPostingProductExemplarValidateV5RequestProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': (value['exemplars'].map(V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON)), + 'product_id': value['product_id'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.d.ts b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.d.ts new file mode 100644 index 0000000..2e59489 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark } from './V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ +export interface V5FbsPostingProductExemplarValidateV5RequestProductExemplar { + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ + gtd?: string; + /** + * Список контрольных идентификационных знаков (КИЗ) и других маркировок в одном экземпляре. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ + rnpt?: string; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ + weight?: number; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProductExemplar interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplar(value: object): value is V5FbsPostingProductExemplarValidateV5RequestProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON(json: any): V5FbsPostingProductExemplarValidateV5RequestProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5RequestProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON(value?: V5FbsPostingProductExemplarValidateV5RequestProductExemplar | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.js b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.js new file mode 100644 index 0000000..e3cf0fa --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON, V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON, } from './V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProductExemplar interface. + */ +export function instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplar(value) { + return true; +} +export function V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'gtd': value['gtd'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON)), + 'rnpt': value['rnpt'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.d.ts b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.d.ts new file mode 100644 index 0000000..63f4365 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark + */ +export interface V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark { + /** + * Значение кода маркировки. + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark + */ + mark_type?: string; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplarMark(value: object): value is V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON(json: any): V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON(value?: V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.js b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.js new file mode 100644 index 0000000..252dadd --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark interface. + */ +export function instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplarMark(value) { + return true; +} +export function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + }; +} +export function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON(value) { + if (value == null) { + return value; + } + return { + 'mark': value['mark'], + 'mark_type': value['mark_type'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5Response.d.ts b/dist/esm/models/V5FbsPostingProductExemplarValidateV5Response.d.ts new file mode 100644 index 0000000..5ab428f --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5ResponseProduct } from './V5FbsPostingProductExemplarValidateV5ResponseProduct'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5Response + */ +export interface V5FbsPostingProductExemplarValidateV5Response { + /** + * Список товаров. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5Response + */ + products?: Array; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5Response interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5Response(value: object): value is V5FbsPostingProductExemplarValidateV5Response; +export declare function V5FbsPostingProductExemplarValidateV5ResponseFromJSON(json: any): V5FbsPostingProductExemplarValidateV5Response; +export declare function V5FbsPostingProductExemplarValidateV5ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5Response; +export declare function V5FbsPostingProductExemplarValidateV5ResponseToJSON(value?: V5FbsPostingProductExemplarValidateV5Response | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5Response.js b/dist/esm/models/V5FbsPostingProductExemplarValidateV5Response.js new file mode 100644 index 0000000..24b15f0 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5Response.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON, V5FbsPostingProductExemplarValidateV5ResponseProductToJSON, } from './V5FbsPostingProductExemplarValidateV5ResponseProduct'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5Response interface. + */ +export function instanceOfV5FbsPostingProductExemplarValidateV5Response(value) { + return true; +} +export function V5FbsPostingProductExemplarValidateV5ResponseFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5ResponseFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarValidateV5ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON)), + }; +} +export function V5FbsPostingProductExemplarValidateV5ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(V5FbsPostingProductExemplarValidateV5ResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.d.ts b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.d.ts new file mode 100644 index 0000000..6019a01 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5ResponseProductExemplar } from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplar'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5ResponseProduct + */ +export interface V5FbsPostingProductExemplarValidateV5ResponseProduct { + /** + * Код ошибки. + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProduct + */ + error?: string; + /** + * Информация об экземплярах. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProduct + */ + exemplars?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProduct + */ + product_id?: number; + /** + * Результат прохождения проверки. `true`, если коды всех экземпляров соответствуют требованиям. + * @type {boolean} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProduct + */ + valid?: boolean; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProduct interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProduct(value: object): value is V5FbsPostingProductExemplarValidateV5ResponseProduct; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON(json: any): V5FbsPostingProductExemplarValidateV5ResponseProduct; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5ResponseProduct; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductToJSON(value?: V5FbsPostingProductExemplarValidateV5ResponseProduct | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.js b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.js new file mode 100644 index 0000000..1811ee4 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON, V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON, } from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplar'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProduct interface. + */ +export function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProduct(value) { + return true; +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5ResponseProductFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON)), + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'valid': json['valid'] == null ? undefined : json['valid'], + }; +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON)), + 'product_id': value['product_id'], + 'valid': value['valid'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.d.ts b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.d.ts new file mode 100644 index 0000000..00266e1 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark } from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ +export interface V5FbsPostingProductExemplarValidateV5ResponseProductExemplar { + /** + * Ошибки валидации экземпляра. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + errors?: Array; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + gtd?: string; + /** + * Ошибки при проверке контрольных идентификационных знаков (КИЗ) и других маркировок. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + rnpt?: string; + /** + * Результат прохождения проверки. `true`, если код экземпляра соответствует требованиям. + * @type {boolean} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + valid?: boolean; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + weight?: number; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProductExemplar interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplar(value: object): value is V5FbsPostingProductExemplarValidateV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON(json: any): V5FbsPostingProductExemplarValidateV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON(value?: V5FbsPostingProductExemplarValidateV5ResponseProductExemplar | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.js b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.js new file mode 100644 index 0000000..916ea21 --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON, V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON, } from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark'; +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProductExemplar interface. + */ +export function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplar(value) { + return true; +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : json['errors'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'valid': json['valid'] == null ? undefined : json['valid'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'], + 'gtd': value['gtd'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON)), + 'rnpt': value['rnpt'], + 'valid': value['valid'], + 'weight': value['weight'], + }; +} diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.d.ts b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.d.ts new file mode 100644 index 0000000..a86374d --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ +export interface V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark { + /** + * Ошибки при проверке контрольных идентификационных знаков (КИЗ) и других маркировок. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ + errors?: Array; + /** + * Значение кода маркировки. + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ + mark_type?: string; + /** + * Результат прохождения проверки. `true`, если контрольный идентификационный знак (КИЗ) и другие маркировки соответствуют требованиям. + * @type {boolean} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ + valid?: boolean; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark(value: object): value is V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON(json: any): V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON(value?: V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark | null): any; diff --git a/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.js b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.js new file mode 100644 index 0000000..11d4ebe --- /dev/null +++ b/dist/esm/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark interface. + */ +export function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark(value) { + return true; +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSONTyped(json, false); +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : json['errors'], + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + 'valid': json['valid'] == null ? undefined : json['valid'], + }; +} +export function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'], + 'mark': value['mark'], + 'mark_type': value['mark_type'], + 'valid': value['valid'], + }; +} diff --git a/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Request.d.ts b/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Request.d.ts new file mode 100644 index 0000000..f33829a --- /dev/null +++ b/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V6FbsPostingProductExemplarCreateOrGetV6Request + */ +export interface V6FbsPostingProductExemplarCreateOrGetV6Request { + /** + * Номер отправления. + * @type {string} + * @memberof V6FbsPostingProductExemplarCreateOrGetV6Request + */ + posting_number: string; +} +/** + * Check if a given object implements the V6FbsPostingProductExemplarCreateOrGetV6Request interface. + */ +export declare function instanceOfV6FbsPostingProductExemplarCreateOrGetV6Request(value: object): value is V6FbsPostingProductExemplarCreateOrGetV6Request; +export declare function V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSON(json: any): V6FbsPostingProductExemplarCreateOrGetV6Request; +export declare function V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V6FbsPostingProductExemplarCreateOrGetV6Request; +export declare function V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON(value?: V6FbsPostingProductExemplarCreateOrGetV6Request | null): any; diff --git a/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Request.js b/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Request.js new file mode 100644 index 0000000..474c036 --- /dev/null +++ b/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Request.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the V6FbsPostingProductExemplarCreateOrGetV6Request interface. + */ +export function instanceOfV6FbsPostingProductExemplarCreateOrGetV6Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +export function V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSON(json) { + return V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSONTyped(json, false); +} +export function V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +export function V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Response.d.ts b/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Response.d.ts new file mode 100644 index 0000000..fa562e2 --- /dev/null +++ b/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Response.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingProductExemplarCreateOrGetV6ResponseProduct } from './FbsPostingProductExemplarCreateOrGetV6ResponseProduct'; +/** + * + * @export + * @interface V6FbsPostingProductExemplarCreateOrGetV6Response + */ +export interface V6FbsPostingProductExemplarCreateOrGetV6Response { + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V6FbsPostingProductExemplarCreateOrGetV6Response + */ + multi_box_qty?: number; + /** + * Номер отправления. + * @type {string} + * @memberof V6FbsPostingProductExemplarCreateOrGetV6Response + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V6FbsPostingProductExemplarCreateOrGetV6Response + */ + products?: Array; +} +/** + * Check if a given object implements the V6FbsPostingProductExemplarCreateOrGetV6Response interface. + */ +export declare function instanceOfV6FbsPostingProductExemplarCreateOrGetV6Response(value: object): value is V6FbsPostingProductExemplarCreateOrGetV6Response; +export declare function V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON(json: any): V6FbsPostingProductExemplarCreateOrGetV6Response; +export declare function V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V6FbsPostingProductExemplarCreateOrGetV6Response; +export declare function V6FbsPostingProductExemplarCreateOrGetV6ResponseToJSON(value?: V6FbsPostingProductExemplarCreateOrGetV6Response | null): any; diff --git a/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Response.js b/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Response.js new file mode 100644 index 0000000..16e00cb --- /dev/null +++ b/dist/esm/models/V6FbsPostingProductExemplarCreateOrGetV6Response.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON, FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON, } from './FbsPostingProductExemplarCreateOrGetV6ResponseProduct'; +/** + * Check if a given object implements the V6FbsPostingProductExemplarCreateOrGetV6Response interface. + */ +export function instanceOfV6FbsPostingProductExemplarCreateOrGetV6Response(value) { + return true; +} +export function V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON(json) { + return V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSONTyped(json, false); +} +export function V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON)), + }; +} +export function V6FbsPostingProductExemplarCreateOrGetV6ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'multi_box_qty': value['multi_box_qty'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON)), + }; +} diff --git a/dist/esm/models/V6FbsPostingProductExemplarSetV6Request.d.ts b/dist/esm/models/V6FbsPostingProductExemplarSetV6Request.d.ts new file mode 100644 index 0000000..ad375ae --- /dev/null +++ b/dist/esm/models/V6FbsPostingProductExemplarSetV6Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingProductExemplarSetV6RequestProducts } from './FbsPostingProductExemplarSetV6RequestProducts'; +/** + * + * @export + * @interface V6FbsPostingProductExemplarSetV6Request + */ +export interface V6FbsPostingProductExemplarSetV6Request { + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V6FbsPostingProductExemplarSetV6Request + */ + multi_box_qty?: number; + /** + * Номер отправления. + * @type {string} + * @memberof V6FbsPostingProductExemplarSetV6Request + */ + posting_number: string; + /** + * Список товаров. + * @type {Array} + * @memberof V6FbsPostingProductExemplarSetV6Request + */ + products: Array; +} +/** + * Check if a given object implements the V6FbsPostingProductExemplarSetV6Request interface. + */ +export declare function instanceOfV6FbsPostingProductExemplarSetV6Request(value: object): value is V6FbsPostingProductExemplarSetV6Request; +export declare function V6FbsPostingProductExemplarSetV6RequestFromJSON(json: any): V6FbsPostingProductExemplarSetV6Request; +export declare function V6FbsPostingProductExemplarSetV6RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V6FbsPostingProductExemplarSetV6Request; +export declare function V6FbsPostingProductExemplarSetV6RequestToJSON(value?: V6FbsPostingProductExemplarSetV6Request | null): any; diff --git a/dist/esm/models/V6FbsPostingProductExemplarSetV6Request.js b/dist/esm/models/V6FbsPostingProductExemplarSetV6Request.js new file mode 100644 index 0000000..940f57e --- /dev/null +++ b/dist/esm/models/V6FbsPostingProductExemplarSetV6Request.js @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FbsPostingProductExemplarSetV6RequestProductsFromJSON, FbsPostingProductExemplarSetV6RequestProductsToJSON, } from './FbsPostingProductExemplarSetV6RequestProducts'; +/** + * Check if a given object implements the V6FbsPostingProductExemplarSetV6Request interface. + */ +export function instanceOfV6FbsPostingProductExemplarSetV6Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +export function V6FbsPostingProductExemplarSetV6RequestFromJSON(json) { + return V6FbsPostingProductExemplarSetV6RequestFromJSONTyped(json, false); +} +export function V6FbsPostingProductExemplarSetV6RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'posting_number': json['posting_number'], + 'products': (json['products'].map(FbsPostingProductExemplarSetV6RequestProductsFromJSON)), + }; +} +export function V6FbsPostingProductExemplarSetV6RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'multi_box_qty': value['multi_box_qty'], + 'posting_number': value['posting_number'], + 'products': (value['products'].map(FbsPostingProductExemplarSetV6RequestProductsToJSON)), + }; +} diff --git a/dist/esm/models/ValidationErrorCharacteristicEnum.d.ts b/dist/esm/models/ValidationErrorCharacteristicEnum.d.ts new file mode 100644 index 0000000..9f08cb3 --- /dev/null +++ b/dist/esm/models/ValidationErrorCharacteristicEnum.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Характеристика, по которой товар не прошёл проверку. + * + * Возможные ограничения: + * - `UNSPECIFIED` — не определено; + * - `LENGTH` — длина, + * - `WIDTH` — ширина, + * - `HEIGHT` — высота, + * - `WEIGHT` — вес, + * - `SUM_OF_DIMENSIONS` — сумма измерений, + * - `VOLUME_WEIGHT` — объёмный вес, + * - `VOLUME` — объём, + * - `PRICE` — цена, + * - `LONGEST_SIDE` — самая длинная сторона. + * + * @export + */ +export declare const ValidationErrorCharacteristicEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly LENGTH: "LENGTH"; + readonly WIDTH: "WIDTH"; + readonly HEIGHT: "HEIGHT"; + readonly WEIGHT: "WEIGHT"; + readonly SUM_OF_DIMENSIONS: "SUM_OF_DIMENSIONS"; + readonly VOLUME_WEIGHT: "VOLUME_WEIGHT"; + readonly VOLUME: "VOLUME"; + readonly PRICE: "PRICE"; + readonly LONGEST_SIDE: "LONGEST_SIDE"; +}; +export type ValidationErrorCharacteristicEnum = typeof ValidationErrorCharacteristicEnum[keyof typeof ValidationErrorCharacteristicEnum]; +export declare function instanceOfValidationErrorCharacteristicEnum(value: any): boolean; +export declare function ValidationErrorCharacteristicEnumFromJSON(json: any): ValidationErrorCharacteristicEnum; +export declare function ValidationErrorCharacteristicEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorCharacteristicEnum; +export declare function ValidationErrorCharacteristicEnumToJSON(value?: ValidationErrorCharacteristicEnum | null): any; diff --git a/dist/esm/models/ValidationErrorCharacteristicEnum.js b/dist/esm/models/ValidationErrorCharacteristicEnum.js new file mode 100644 index 0000000..57100c6 --- /dev/null +++ b/dist/esm/models/ValidationErrorCharacteristicEnum.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Характеристика, по которой товар не прошёл проверку. + * + * Возможные ограничения: + * - `UNSPECIFIED` — не определено; + * - `LENGTH` — длина, + * - `WIDTH` — ширина, + * - `HEIGHT` — высота, + * - `WEIGHT` — вес, + * - `SUM_OF_DIMENSIONS` — сумма измерений, + * - `VOLUME_WEIGHT` — объёмный вес, + * - `VOLUME` — объём, + * - `PRICE` — цена, + * - `LONGEST_SIDE` — самая длинная сторона. + * + * @export + */ +export const ValidationErrorCharacteristicEnum = { + UNSPECIFIED: 'UNSPECIFIED', + LENGTH: 'LENGTH', + WIDTH: 'WIDTH', + HEIGHT: 'HEIGHT', + WEIGHT: 'WEIGHT', + SUM_OF_DIMENSIONS: 'SUM_OF_DIMENSIONS', + VOLUME_WEIGHT: 'VOLUME_WEIGHT', + VOLUME: 'VOLUME', + PRICE: 'PRICE', + LONGEST_SIDE: 'LONGEST_SIDE' +}; +export function instanceOfValidationErrorCharacteristicEnum(value) { + for (const key in ValidationErrorCharacteristicEnum) { + if (Object.prototype.hasOwnProperty.call(ValidationErrorCharacteristicEnum, key)) { + if (ValidationErrorCharacteristicEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ValidationErrorCharacteristicEnumFromJSON(json) { + return ValidationErrorCharacteristicEnumFromJSONTyped(json, false); +} +export function ValidationErrorCharacteristicEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ValidationErrorCharacteristicEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ValidationResultItem.d.ts b/dist/esm/models/ValidationResultItem.d.ts new file mode 100644 index 0000000..103a072 --- /dev/null +++ b/dist/esm/models/ValidationResultItem.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemSize } from './ItemSize'; +/** + * Информация о товаре. + * @export + * @interface ValidationResultItem + */ +export interface ValidationResultItem { + /** + * + * @type {ItemSize} + * @memberof ValidationResultItem + */ + size?: ItemSize; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ValidationResultItem + */ + sku?: number; + /** + * Вес товара в граммах. + * @type {number} + * @memberof ValidationResultItem + */ + weight_g?: number; +} +/** + * Check if a given object implements the ValidationResultItem interface. + */ +export declare function instanceOfValidationResultItem(value: object): value is ValidationResultItem; +export declare function ValidationResultItemFromJSON(json: any): ValidationResultItem; +export declare function ValidationResultItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResultItem; +export declare function ValidationResultItemToJSON(value?: ValidationResultItem | null): any; diff --git a/dist/esm/models/ValidationResultItem.js b/dist/esm/models/ValidationResultItem.js new file mode 100644 index 0000000..4c23aa7 --- /dev/null +++ b/dist/esm/models/ValidationResultItem.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ItemSizeFromJSON, ItemSizeToJSON, } from './ItemSize'; +/** + * Check if a given object implements the ValidationResultItem interface. + */ +export function instanceOfValidationResultItem(value) { + return true; +} +export function ValidationResultItemFromJSON(json) { + return ValidationResultItemFromJSONTyped(json, false); +} +export function ValidationResultItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'size': json['size'] == null ? undefined : ItemSizeFromJSON(json['size']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight_g': json['weight_g'] == null ? undefined : json['weight_g'], + }; +} +export function ValidationResultItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'size': ItemSizeToJSON(value['size']), + 'sku': value['sku'], + 'weight_g': value['weight_g'], + }; +} diff --git a/dist/esm/models/ValidationResultItemStateEnum.d.ts b/dist/esm/models/ValidationResultItemStateEnum.d.ts new file mode 100644 index 0000000..4ff0c90 --- /dev/null +++ b/dist/esm/models/ValidationResultItemStateEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус проверки: + * - `UNSPECIFIED` — не определён; + * - `NOT_VALID` — товар не прошёл проверку. + * + * @export + */ +export declare const ValidationResultItemStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly NOT_VALID: "NOT_VALID"; +}; +export type ValidationResultItemStateEnum = typeof ValidationResultItemStateEnum[keyof typeof ValidationResultItemStateEnum]; +export declare function instanceOfValidationResultItemStateEnum(value: any): boolean; +export declare function ValidationResultItemStateEnumFromJSON(json: any): ValidationResultItemStateEnum; +export declare function ValidationResultItemStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResultItemStateEnum; +export declare function ValidationResultItemStateEnumToJSON(value?: ValidationResultItemStateEnum | null): any; diff --git a/dist/esm/models/ValidationResultItemStateEnum.js b/dist/esm/models/ValidationResultItemStateEnum.js new file mode 100644 index 0000000..0e3ed5f --- /dev/null +++ b/dist/esm/models/ValidationResultItemStateEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус проверки: + * - `UNSPECIFIED` — не определён; + * - `NOT_VALID` — товар не прошёл проверку. + * + * @export + */ +export const ValidationResultItemStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + NOT_VALID: 'NOT_VALID' +}; +export function instanceOfValidationResultItemStateEnum(value) { + for (const key in ValidationResultItemStateEnum) { + if (Object.prototype.hasOwnProperty.call(ValidationResultItemStateEnum, key)) { + if (ValidationResultItemStateEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ValidationResultItemStateEnumFromJSON(json) { + return ValidationResultItemStateEnumFromJSONTyped(json, false); +} +export function ValidationResultItemStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ValidationResultItemStateEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ValidationResultValidationError.d.ts b/dist/esm/models/ValidationResultValidationError.d.ts new file mode 100644 index 0000000..60d39de --- /dev/null +++ b/dist/esm/models/ValidationResultValidationError.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValidationErrorCharacteristicEnum } from './ValidationErrorCharacteristicEnum'; +import type { ValidationResultValidationErrorTypeEnum } from './ValidationResultValidationErrorTypeEnum'; +import type { V1Money } from './V1Money'; +/** + * + * @export + * @interface ValidationResultValidationError + */ +export interface ValidationResultValidationError { + /** + * + * @type {ValidationErrorCharacteristicEnum} + * @memberof ValidationResultValidationError + */ + characteristic?: ValidationErrorCharacteristicEnum; + /** + * + * @type {V1Money} + * @memberof ValidationResultValidationError + */ + restriction_price?: V1Money; + /** + * Значение ограничения по объёмно-весовым характеристикам — ОВХ. + * @type {number} + * @memberof ValidationResultValidationError + */ + restriction_vwc?: number; + /** + * Идентификатор услуги по доставке заказа, на которой установлено ограничение. + * @type {number} + * @memberof ValidationResultValidationError + */ + template_id?: number; + /** + * + * @type {ValidationResultValidationErrorTypeEnum} + * @memberof ValidationResultValidationError + */ + type?: ValidationResultValidationErrorTypeEnum; +} +/** + * Check if a given object implements the ValidationResultValidationError interface. + */ +export declare function instanceOfValidationResultValidationError(value: object): value is ValidationResultValidationError; +export declare function ValidationResultValidationErrorFromJSON(json: any): ValidationResultValidationError; +export declare function ValidationResultValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResultValidationError; +export declare function ValidationResultValidationErrorToJSON(value?: ValidationResultValidationError | null): any; diff --git a/dist/esm/models/ValidationResultValidationError.js b/dist/esm/models/ValidationResultValidationError.js new file mode 100644 index 0000000..0cf647d --- /dev/null +++ b/dist/esm/models/ValidationResultValidationError.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ValidationErrorCharacteristicEnumFromJSON, ValidationErrorCharacteristicEnumToJSON, } from './ValidationErrorCharacteristicEnum'; +import { ValidationResultValidationErrorTypeEnumFromJSON, ValidationResultValidationErrorTypeEnumToJSON, } from './ValidationResultValidationErrorTypeEnum'; +import { V1MoneyFromJSON, V1MoneyToJSON, } from './V1Money'; +/** + * Check if a given object implements the ValidationResultValidationError interface. + */ +export function instanceOfValidationResultValidationError(value) { + return true; +} +export function ValidationResultValidationErrorFromJSON(json) { + return ValidationResultValidationErrorFromJSONTyped(json, false); +} +export function ValidationResultValidationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'characteristic': json['characteristic'] == null ? undefined : ValidationErrorCharacteristicEnumFromJSON(json['characteristic']), + 'restriction_price': json['restriction_price'] == null ? undefined : V1MoneyFromJSON(json['restriction_price']), + 'restriction_vwc': json['restriction_vwc'] == null ? undefined : json['restriction_vwc'], + 'template_id': json['template_id'] == null ? undefined : json['template_id'], + 'type': json['type'] == null ? undefined : ValidationResultValidationErrorTypeEnumFromJSON(json['type']), + }; +} +export function ValidationResultValidationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'characteristic': ValidationErrorCharacteristicEnumToJSON(value['characteristic']), + 'restriction_price': V1MoneyToJSON(value['restriction_price']), + 'restriction_vwc': value['restriction_vwc'], + 'template_id': value['template_id'], + 'type': ValidationResultValidationErrorTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/ValidationResultValidationErrorTypeEnum.d.ts b/dist/esm/models/ValidationResultValidationErrorTypeEnum.d.ts new file mode 100644 index 0000000..5f788e7 --- /dev/null +++ b/dist/esm/models/ValidationResultValidationErrorTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `UNSPECIFIED` — не определён; + * - `LESS_THAN_MIN` — меньше минимального значения; + * - `GREATER_THAN_MAX` — больше максимального значения. + * + * @export + */ +export declare const ValidationResultValidationErrorTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly LESS_THAN_MIN: "LESS_THAN_MIN"; + readonly GREATER_THAN_MAX: "GREATER_THAN_MAX"; +}; +export type ValidationResultValidationErrorTypeEnum = typeof ValidationResultValidationErrorTypeEnum[keyof typeof ValidationResultValidationErrorTypeEnum]; +export declare function instanceOfValidationResultValidationErrorTypeEnum(value: any): boolean; +export declare function ValidationResultValidationErrorTypeEnumFromJSON(json: any): ValidationResultValidationErrorTypeEnum; +export declare function ValidationResultValidationErrorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResultValidationErrorTypeEnum; +export declare function ValidationResultValidationErrorTypeEnumToJSON(value?: ValidationResultValidationErrorTypeEnum | null): any; diff --git a/dist/esm/models/ValidationResultValidationErrorTypeEnum.js b/dist/esm/models/ValidationResultValidationErrorTypeEnum.js new file mode 100644 index 0000000..9b3c004 --- /dev/null +++ b/dist/esm/models/ValidationResultValidationErrorTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `UNSPECIFIED` — не определён; + * - `LESS_THAN_MIN` — меньше минимального значения; + * - `GREATER_THAN_MAX` — больше максимального значения. + * + * @export + */ +export const ValidationResultValidationErrorTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + LESS_THAN_MIN: 'LESS_THAN_MIN', + GREATER_THAN_MAX: 'GREATER_THAN_MAX' +}; +export function instanceOfValidationResultValidationErrorTypeEnum(value) { + for (const key in ValidationResultValidationErrorTypeEnum) { + if (Object.prototype.hasOwnProperty.call(ValidationResultValidationErrorTypeEnum, key)) { + if (ValidationResultValidationErrorTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function ValidationResultValidationErrorTypeEnumFromJSON(json) { + return ValidationResultValidationErrorTypeEnumFromJSONTyped(json, false); +} +export function ValidationResultValidationErrorTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ValidationResultValidationErrorTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/ValueCargoType.d.ts b/dist/esm/models/ValueCargoType.d.ts new file mode 100644 index 0000000..d999392 --- /dev/null +++ b/dist/esm/models/ValueCargoType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка. + * - `PALLET` — палета. + * + * @export + */ +export declare const ValueCargoType: { + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type ValueCargoType = typeof ValueCargoType[keyof typeof ValueCargoType]; +export declare function instanceOfValueCargoType(value: any): boolean; +export declare function ValueCargoTypeFromJSON(json: any): ValueCargoType; +export declare function ValueCargoTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueCargoType; +export declare function ValueCargoTypeToJSON(value?: ValueCargoType | null): any; diff --git a/dist/esm/models/ValueCargoType.js b/dist/esm/models/ValueCargoType.js new file mode 100644 index 0000000..c413409 --- /dev/null +++ b/dist/esm/models/ValueCargoType.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка. + * - `PALLET` — палета. + * + * @export + */ +export const ValueCargoType = { + BOX: 'BOX', + PALLET: 'PALLET' +}; +export function instanceOfValueCargoType(value) { + for (const key in ValueCargoType) { + if (Object.prototype.hasOwnProperty.call(ValueCargoType, key)) { + if (ValueCargoType[key] === value) { + return true; + } + } + } + return false; +} +export function ValueCargoTypeFromJSON(json) { + return ValueCargoTypeFromJSONTyped(json, false); +} +export function ValueCargoTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function ValueCargoTypeToJSON(value) { + return value; +} diff --git a/dist/esm/models/ValueItem.d.ts b/dist/esm/models/ValueItem.d.ts new file mode 100644 index 0000000..7937e66 --- /dev/null +++ b/dist/esm/models/ValueItem.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ValueItem + */ +export interface ValueItem { + /** + * Штрихкод товара. Получите методом [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). + * @type {string} + * @memberof ValueItem + */ + barcode?: string; + /** + * Годен до. + * @type {string} + * @memberof ValueItem + */ + expires_at?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ValueItem + */ + offer_id?: string; + /** + * Размер кванта. + * @type {number} + * @memberof ValueItem + */ + quant?: number; + /** + * Количество товара. + * @type {number} + * @memberof ValueItem + */ + quantity?: number; +} +/** + * Check if a given object implements the ValueItem interface. + */ +export declare function instanceOfValueItem(value: object): value is ValueItem; +export declare function ValueItemFromJSON(json: any): ValueItem; +export declare function ValueItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueItem; +export declare function ValueItemToJSON(value?: ValueItem | null): any; diff --git a/dist/esm/models/ValueItem.js b/dist/esm/models/ValueItem.js new file mode 100644 index 0000000..197c85b --- /dev/null +++ b/dist/esm/models/ValueItem.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ValueItem interface. + */ +export function instanceOfValueItem(value) { + return true; +} +export function ValueItemFromJSON(json) { + return ValueItemFromJSONTyped(json, false); +} +export function ValueItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + }; +} +export function ValueItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'expires_at': value['expires_at'], + 'offer_id': value['offer_id'], + 'quant': value['quant'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/esm/models/ValueTimezoneInfo.d.ts b/dist/esm/models/ValueTimezoneInfo.d.ts new file mode 100644 index 0000000..9899621 --- /dev/null +++ b/dist/esm/models/ValueTimezoneInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface ValueTimezoneInfo + */ +export interface ValueTimezoneInfo { + /** + * Название часового пояса. + * @type {string} + * @memberof ValueTimezoneInfo + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {string} + * @memberof ValueTimezoneInfo + */ + offset?: string; +} +/** + * Check if a given object implements the ValueTimezoneInfo interface. + */ +export declare function instanceOfValueTimezoneInfo(value: object): value is ValueTimezoneInfo; +export declare function ValueTimezoneInfoFromJSON(json: any): ValueTimezoneInfo; +export declare function ValueTimezoneInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueTimezoneInfo; +export declare function ValueTimezoneInfoToJSON(value?: ValueTimezoneInfo | null): any; diff --git a/dist/esm/models/ValueTimezoneInfo.js b/dist/esm/models/ValueTimezoneInfo.js new file mode 100644 index 0000000..0d93c80 --- /dev/null +++ b/dist/esm/models/ValueTimezoneInfo.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the ValueTimezoneInfo interface. + */ +export function instanceOfValueTimezoneInfo(value) { + return true; +} +export function ValueTimezoneInfoFromJSON(json) { + return ValueTimezoneInfoFromJSONTyped(json, false); +} +export function ValueTimezoneInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function ValueTimezoneInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/VehicleCanNotSetVehicleReasonEnum.d.ts b/dist/esm/models/VehicleCanNotSetVehicleReasonEnum.d.ts new file mode 100644 index 0000000..91c1ed2 --- /dev/null +++ b/dist/esm/models/VehicleCanNotSetVehicleReasonEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const VehicleCanNotSetVehicleReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_ORDER_STATE: "INVALID_ORDER_STATE"; + readonly VEHICLE_NOT_REQUIRED: "VEHICLE_NOT_REQUIRED"; + readonly ORDER_DOES_NOT_BELONG_TO_COMPANY: "ORDER_DOES_NOT_BELONG_TO_COMPANY"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type VehicleCanNotSetVehicleReasonEnum = typeof VehicleCanNotSetVehicleReasonEnum[keyof typeof VehicleCanNotSetVehicleReasonEnum]; +export declare function instanceOfVehicleCanNotSetVehicleReasonEnum(value: any): boolean; +export declare function VehicleCanNotSetVehicleReasonEnumFromJSON(json: any): VehicleCanNotSetVehicleReasonEnum; +export declare function VehicleCanNotSetVehicleReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): VehicleCanNotSetVehicleReasonEnum; +export declare function VehicleCanNotSetVehicleReasonEnumToJSON(value?: VehicleCanNotSetVehicleReasonEnum | null): any; diff --git a/dist/esm/models/VehicleCanNotSetVehicleReasonEnum.js b/dist/esm/models/VehicleCanNotSetVehicleReasonEnum.js new file mode 100644 index 0000000..558b172 --- /dev/null +++ b/dist/esm/models/VehicleCanNotSetVehicleReasonEnum.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const VehicleCanNotSetVehicleReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_ORDER_STATE: 'INVALID_ORDER_STATE', + VEHICLE_NOT_REQUIRED: 'VEHICLE_NOT_REQUIRED', + ORDER_DOES_NOT_BELONG_TO_COMPANY: 'ORDER_DOES_NOT_BELONG_TO_COMPANY', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfVehicleCanNotSetVehicleReasonEnum(value) { + for (const key in VehicleCanNotSetVehicleReasonEnum) { + if (Object.prototype.hasOwnProperty.call(VehicleCanNotSetVehicleReasonEnum, key)) { + if (VehicleCanNotSetVehicleReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +export function VehicleCanNotSetVehicleReasonEnumFromJSON(json) { + return VehicleCanNotSetVehicleReasonEnumFromJSONTyped(json, false); +} +export function VehicleCanNotSetVehicleReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function VehicleCanNotSetVehicleReasonEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/WarehouseAddress.d.ts b/dist/esm/models/WarehouseAddress.d.ts new file mode 100644 index 0000000..39231e5 --- /dev/null +++ b/dist/esm/models/WarehouseAddress.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseAddressCoordinates } from './WarehouseAddressCoordinates'; +/** + * Информация об адресе склада продавца. + * @export + * @interface WarehouseAddress + */ +export interface WarehouseAddress { + /** + * Адрес. + * @type {string} + * @memberof WarehouseAddress + */ + address?: string; + /** + * Город. + * @type {string} + * @memberof WarehouseAddress + */ + city?: string; + /** + * + * @type {WarehouseAddressCoordinates} + * @memberof WarehouseAddress + */ + coordinates?: WarehouseAddressCoordinates; + /** + * Код страны в формате ISO 2. + * @type {string} + * @memberof WarehouseAddress + */ + country_code?: string; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof WarehouseAddress + */ + macrolocal_cluster_id?: number; + /** + * Регион. + * @type {string} + * @memberof WarehouseAddress + */ + region?: string; + /** + * Часовой пояс. + * @type {string} + * @memberof WarehouseAddress + */ + timezone?: string; +} +/** + * Check if a given object implements the WarehouseAddress interface. + */ +export declare function instanceOfWarehouseAddress(value: object): value is WarehouseAddress; +export declare function WarehouseAddressFromJSON(json: any): WarehouseAddress; +export declare function WarehouseAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseAddress; +export declare function WarehouseAddressToJSON(value?: WarehouseAddress | null): any; diff --git a/dist/esm/models/WarehouseAddress.js b/dist/esm/models/WarehouseAddress.js new file mode 100644 index 0000000..e6b5565 --- /dev/null +++ b/dist/esm/models/WarehouseAddress.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseAddressCoordinatesFromJSON, WarehouseAddressCoordinatesToJSON, } from './WarehouseAddressCoordinates'; +/** + * Check if a given object implements the WarehouseAddress interface. + */ +export function instanceOfWarehouseAddress(value) { + return true; +} +export function WarehouseAddressFromJSON(json) { + return WarehouseAddressFromJSONTyped(json, false); +} +export function WarehouseAddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'city': json['city'] == null ? undefined : json['city'], + 'coordinates': json['coordinates'] == null ? undefined : WarehouseAddressCoordinatesFromJSON(json['coordinates']), + 'country_code': json['country_code'] == null ? undefined : json['country_code'], + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'region': json['region'] == null ? undefined : json['region'], + 'timezone': json['timezone'] == null ? undefined : json['timezone'], + }; +} +export function WarehouseAddressToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'city': value['city'], + 'coordinates': WarehouseAddressCoordinatesToJSON(value['coordinates']), + 'country_code': value['country_code'], + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'region': value['region'], + 'timezone': value['timezone'], + }; +} diff --git a/dist/esm/models/WarehouseAddressCoordinates.d.ts b/dist/esm/models/WarehouseAddressCoordinates.d.ts new file mode 100644 index 0000000..a34d257 --- /dev/null +++ b/dist/esm/models/WarehouseAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface WarehouseAddressCoordinates + */ +export interface WarehouseAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof WarehouseAddressCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof WarehouseAddressCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the WarehouseAddressCoordinates interface. + */ +export declare function instanceOfWarehouseAddressCoordinates(value: object): value is WarehouseAddressCoordinates; +export declare function WarehouseAddressCoordinatesFromJSON(json: any): WarehouseAddressCoordinates; +export declare function WarehouseAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseAddressCoordinates; +export declare function WarehouseAddressCoordinatesToJSON(value?: WarehouseAddressCoordinates | null): any; diff --git a/dist/esm/models/WarehouseAddressCoordinates.js b/dist/esm/models/WarehouseAddressCoordinates.js new file mode 100644 index 0000000..d081355 --- /dev/null +++ b/dist/esm/models/WarehouseAddressCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseAddressCoordinates interface. + */ +export function instanceOfWarehouseAddressCoordinates(value) { + return true; +} +export function WarehouseAddressCoordinatesFromJSON(json) { + return WarehouseAddressCoordinatesFromJSONTyped(json, false); +} +export function WarehouseAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function WarehouseAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/WarehouseAddressInfo.d.ts b/dist/esm/models/WarehouseAddressInfo.d.ts new file mode 100644 index 0000000..63884bc --- /dev/null +++ b/dist/esm/models/WarehouseAddressInfo.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о расположении склада. + * @export + * @interface WarehouseAddressInfo + */ +export interface WarehouseAddressInfo { + /** + * Адрес склада. + * @type {string} + * @memberof WarehouseAddressInfo + */ + address?: string; + /** + * Широта. + * @type {number} + * @memberof WarehouseAddressInfo + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof WarehouseAddressInfo + */ + longitude?: number; + /** + * Часовой пояс. + * @type {string} + * @memberof WarehouseAddressInfo + */ + utc?: string; +} +/** + * Check if a given object implements the WarehouseAddressInfo interface. + */ +export declare function instanceOfWarehouseAddressInfo(value: object): value is WarehouseAddressInfo; +export declare function WarehouseAddressInfoFromJSON(json: any): WarehouseAddressInfo; +export declare function WarehouseAddressInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseAddressInfo; +export declare function WarehouseAddressInfoToJSON(value?: WarehouseAddressInfo | null): any; diff --git a/dist/esm/models/WarehouseAddressInfo.js b/dist/esm/models/WarehouseAddressInfo.js new file mode 100644 index 0000000..8802538 --- /dev/null +++ b/dist/esm/models/WarehouseAddressInfo.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseAddressInfo interface. + */ +export function instanceOfWarehouseAddressInfo(value) { + return true; +} +export function WarehouseAddressInfoFromJSON(json) { + return WarehouseAddressInfoFromJSONTyped(json, false); +} +export function WarehouseAddressInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + 'utc': json['utc'] == null ? undefined : json['utc'], + }; +} +export function WarehouseAddressInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'utc': value['utc'], + }; +} diff --git a/dist/esm/models/WarehouseAvailabilityStatus.d.ts b/dist/esm/models/WarehouseAvailabilityStatus.d.ts new file mode 100644 index 0000000..62f2a8d --- /dev/null +++ b/dist/esm/models/WarehouseAvailabilityStatus.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AvailabilityStatusInvalidReasonEnum } from './AvailabilityStatusInvalidReasonEnum'; +import type { AvailabilityStatusStateEnum } from './AvailabilityStatusStateEnum'; +/** + * Информация о доступности склада. + * @export + * @interface WarehouseAvailabilityStatus + */ +export interface WarehouseAvailabilityStatus { + /** + * + * @type {AvailabilityStatusInvalidReasonEnum} + * @memberof WarehouseAvailabilityStatus + */ + invalid_reason?: AvailabilityStatusInvalidReasonEnum; + /** + * + * @type {AvailabilityStatusStateEnum} + * @memberof WarehouseAvailabilityStatus + */ + state?: AvailabilityStatusStateEnum; +} +/** + * Check if a given object implements the WarehouseAvailabilityStatus interface. + */ +export declare function instanceOfWarehouseAvailabilityStatus(value: object): value is WarehouseAvailabilityStatus; +export declare function WarehouseAvailabilityStatusFromJSON(json: any): WarehouseAvailabilityStatus; +export declare function WarehouseAvailabilityStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseAvailabilityStatus; +export declare function WarehouseAvailabilityStatusToJSON(value?: WarehouseAvailabilityStatus | null): any; diff --git a/dist/esm/models/WarehouseAvailabilityStatus.js b/dist/esm/models/WarehouseAvailabilityStatus.js new file mode 100644 index 0000000..9308c75 --- /dev/null +++ b/dist/esm/models/WarehouseAvailabilityStatus.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AvailabilityStatusInvalidReasonEnumFromJSON, AvailabilityStatusInvalidReasonEnumToJSON, } from './AvailabilityStatusInvalidReasonEnum'; +import { AvailabilityStatusStateEnumFromJSON, AvailabilityStatusStateEnumToJSON, } from './AvailabilityStatusStateEnum'; +/** + * Check if a given object implements the WarehouseAvailabilityStatus interface. + */ +export function instanceOfWarehouseAvailabilityStatus(value) { + return true; +} +export function WarehouseAvailabilityStatusFromJSON(json) { + return WarehouseAvailabilityStatusFromJSONTyped(json, false); +} +export function WarehouseAvailabilityStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'invalid_reason': json['invalid_reason'] == null ? undefined : AvailabilityStatusInvalidReasonEnumFromJSON(json['invalid_reason']), + 'state': json['state'] == null ? undefined : AvailabilityStatusStateEnumFromJSON(json['state']), + }; +} +export function WarehouseAvailabilityStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'invalid_reason': AvailabilityStatusInvalidReasonEnumToJSON(value['invalid_reason']), + 'state': AvailabilityStatusStateEnumToJSON(value['state']), + }; +} diff --git a/dist/esm/models/WarehouseCarriageLabelTypeEnum.d.ts b/dist/esm/models/WarehouseCarriageLabelTypeEnum.d.ts new file mode 100644 index 0000000..ef0bd01 --- /dev/null +++ b/dist/esm/models/WarehouseCarriageLabelTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип этикетки: + * - `UNSPECIFIED` — неизвестный тип; + * - `BIG` — большая этикетка; + * - `SMALL` — маленькая этикетка. + * + * @export + */ +export declare const WarehouseCarriageLabelTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BIG: "BIG"; + readonly SMALL: "SMALL"; +}; +export type WarehouseCarriageLabelTypeEnum = typeof WarehouseCarriageLabelTypeEnum[keyof typeof WarehouseCarriageLabelTypeEnum]; +export declare function instanceOfWarehouseCarriageLabelTypeEnum(value: any): boolean; +export declare function WarehouseCarriageLabelTypeEnumFromJSON(json: any): WarehouseCarriageLabelTypeEnum; +export declare function WarehouseCarriageLabelTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseCarriageLabelTypeEnum; +export declare function WarehouseCarriageLabelTypeEnumToJSON(value?: WarehouseCarriageLabelTypeEnum | null): any; diff --git a/dist/esm/models/WarehouseCarriageLabelTypeEnum.js b/dist/esm/models/WarehouseCarriageLabelTypeEnum.js new file mode 100644 index 0000000..53827fc --- /dev/null +++ b/dist/esm/models/WarehouseCarriageLabelTypeEnum.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип этикетки: + * - `UNSPECIFIED` — неизвестный тип; + * - `BIG` — большая этикетка; + * - `SMALL` — маленькая этикетка. + * + * @export + */ +export const WarehouseCarriageLabelTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BIG: 'BIG', + SMALL: 'SMALL' +}; +export function instanceOfWarehouseCarriageLabelTypeEnum(value) { + for (const key in WarehouseCarriageLabelTypeEnum) { + if (Object.prototype.hasOwnProperty.call(WarehouseCarriageLabelTypeEnum, key)) { + if (WarehouseCarriageLabelTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function WarehouseCarriageLabelTypeEnumFromJSON(json) { + return WarehouseCarriageLabelTypeEnumFromJSONTyped(json, false); +} +export function WarehouseCarriageLabelTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function WarehouseCarriageLabelTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/WarehouseContacts.d.ts b/dist/esm/models/WarehouseContacts.d.ts new file mode 100644 index 0000000..68f32ae --- /dev/null +++ b/dist/esm/models/WarehouseContacts.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контакты. + * @export + * @interface WarehouseContacts + */ +export interface WarehouseContacts { + /** + * Номера телефонов. + * @type {Array} + * @memberof WarehouseContacts + */ + phone_numbers?: Array; +} +/** + * Check if a given object implements the WarehouseContacts interface. + */ +export declare function instanceOfWarehouseContacts(value: object): value is WarehouseContacts; +export declare function WarehouseContactsFromJSON(json: any): WarehouseContacts; +export declare function WarehouseContactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseContacts; +export declare function WarehouseContactsToJSON(value?: WarehouseContacts | null): any; diff --git a/dist/esm/models/WarehouseContacts.js b/dist/esm/models/WarehouseContacts.js new file mode 100644 index 0000000..ed53509 --- /dev/null +++ b/dist/esm/models/WarehouseContacts.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseContacts interface. + */ +export function instanceOfWarehouseContacts(value) { + return true; +} +export function WarehouseContactsFromJSON(json) { + return WarehouseContactsFromJSONTyped(json, false); +} +export function WarehouseContactsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'phone_numbers': json['phone_numbers'] == null ? undefined : json['phone_numbers'], + }; +} +export function WarehouseContactsToJSON(value) { + if (value == null) { + return value; + } + return { + 'phone_numbers': value['phone_numbers'], + }; +} diff --git a/dist/esm/models/WarehouseDeliveryMethodListRequest.d.ts b/dist/esm/models/WarehouseDeliveryMethodListRequest.d.ts new file mode 100644 index 0000000..7de51c7 --- /dev/null +++ b/dist/esm/models/WarehouseDeliveryMethodListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodListRequestFilter } from './DeliveryMethodListRequestFilter'; +/** + * + * @export + * @interface WarehouseDeliveryMethodListRequest + */ +export interface WarehouseDeliveryMethodListRequest { + /** + * + * @type {DeliveryMethodListRequestFilter} + * @memberof WarehouseDeliveryMethodListRequest + */ + filter?: DeliveryMethodListRequestFilter; + /** + * Количество элементов в ответе. Максимум — 50, минимум — 1. + * @type {number} + * @memberof WarehouseDeliveryMethodListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof WarehouseDeliveryMethodListRequest + */ + offset?: number; +} +/** + * Check if a given object implements the WarehouseDeliveryMethodListRequest interface. + */ +export declare function instanceOfWarehouseDeliveryMethodListRequest(value: object): value is WarehouseDeliveryMethodListRequest; +export declare function WarehouseDeliveryMethodListRequestFromJSON(json: any): WarehouseDeliveryMethodListRequest; +export declare function WarehouseDeliveryMethodListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseDeliveryMethodListRequest; +export declare function WarehouseDeliveryMethodListRequestToJSON(value?: WarehouseDeliveryMethodListRequest | null): any; diff --git a/dist/esm/models/WarehouseDeliveryMethodListRequest.js b/dist/esm/models/WarehouseDeliveryMethodListRequest.js new file mode 100644 index 0000000..10c947e --- /dev/null +++ b/dist/esm/models/WarehouseDeliveryMethodListRequest.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMethodListRequestFilterFromJSON, DeliveryMethodListRequestFilterToJSON, } from './DeliveryMethodListRequestFilter'; +/** + * Check if a given object implements the WarehouseDeliveryMethodListRequest interface. + */ +export function instanceOfWarehouseDeliveryMethodListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +export function WarehouseDeliveryMethodListRequestFromJSON(json) { + return WarehouseDeliveryMethodListRequestFromJSONTyped(json, false); +} +export function WarehouseDeliveryMethodListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : DeliveryMethodListRequestFilterFromJSON(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +export function WarehouseDeliveryMethodListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': DeliveryMethodListRequestFilterToJSON(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/esm/models/WarehouseDeliveryMethodListResponse.d.ts b/dist/esm/models/WarehouseDeliveryMethodListResponse.d.ts new file mode 100644 index 0000000..d0c028e --- /dev/null +++ b/dist/esm/models/WarehouseDeliveryMethodListResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodListResponseDeliveryMethod } from './DeliveryMethodListResponseDeliveryMethod'; +/** + * + * @export + * @interface WarehouseDeliveryMethodListResponse + */ +export interface WarehouseDeliveryMethodListResponse { + /** + * Признак, что в запросе вернулась только часть методов доставки: + * - `true` — сделайте повторный запрос с новым параметром `offset` для получения остальных методов; + * - `false` — ответ содержит все методы доставки по запросу. + * + * @type {boolean} + * @memberof WarehouseDeliveryMethodListResponse + */ + has_next?: boolean; + /** + * Результат запроса. + * @type {Array} + * @memberof WarehouseDeliveryMethodListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the WarehouseDeliveryMethodListResponse interface. + */ +export declare function instanceOfWarehouseDeliveryMethodListResponse(value: object): value is WarehouseDeliveryMethodListResponse; +export declare function WarehouseDeliveryMethodListResponseFromJSON(json: any): WarehouseDeliveryMethodListResponse; +export declare function WarehouseDeliveryMethodListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseDeliveryMethodListResponse; +export declare function WarehouseDeliveryMethodListResponseToJSON(value?: WarehouseDeliveryMethodListResponse | null): any; diff --git a/dist/esm/models/WarehouseDeliveryMethodListResponse.js b/dist/esm/models/WarehouseDeliveryMethodListResponse.js new file mode 100644 index 0000000..7a2d940 --- /dev/null +++ b/dist/esm/models/WarehouseDeliveryMethodListResponse.js @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeliveryMethodListResponseDeliveryMethodFromJSON, DeliveryMethodListResponseDeliveryMethodToJSON, } from './DeliveryMethodListResponseDeliveryMethod'; +/** + * Check if a given object implements the WarehouseDeliveryMethodListResponse interface. + */ +export function instanceOfWarehouseDeliveryMethodListResponse(value) { + return true; +} +export function WarehouseDeliveryMethodListResponseFromJSON(json) { + return WarehouseDeliveryMethodListResponseFromJSONTyped(json, false); +} +export function WarehouseDeliveryMethodListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'result': json['result'] == null ? undefined : (json['result'].map(DeliveryMethodListResponseDeliveryMethodFromJSON)), + }; +} +export function WarehouseDeliveryMethodListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'result': value['result'] == null ? undefined : (value['result'].map(DeliveryMethodListResponseDeliveryMethodToJSON)), + }; +} diff --git a/dist/esm/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.d.ts b/dist/esm/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.d.ts new file mode 100644 index 0000000..40f546d --- /dev/null +++ b/dist/esm/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Расходы на доставку, которые вы готовы оплатить. + * @export + * @interface WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ +export interface WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts { + /** + * Минимальный вес в килограммах. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + min_weight?: number; + /** + * Максимальный вес в килограммах. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + max_weight?: number; + /** + * Минимальная стоимость заказа в копейках. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + min_order_price?: number; + /** + * Максимальная стоимость заказа в копейках. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + max_order_price?: number; + /** + * Цена в копейках. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + seller_payment?: number; +} +/** + * Check if a given object implements the WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts interface. + */ +export declare function instanceOfWarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts(value: object): value is WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; +export declare function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON(json: any): WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; +export declare function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; +export declare function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON(value?: WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts | null): any; diff --git a/dist/esm/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.js b/dist/esm/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.js new file mode 100644 index 0000000..f72260c --- /dev/null +++ b/dist/esm/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts interface. + */ +export function instanceOfWarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts(value) { + return true; +} +export function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON(json) { + return WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSONTyped(json, false); +} +export function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_weight': json['min_weight'] == null ? undefined : json['min_weight'], + 'max_weight': json['max_weight'] == null ? undefined : json['max_weight'], + 'min_order_price': json['min_order_price'] == null ? undefined : json['min_order_price'], + 'max_order_price': json['max_order_price'] == null ? undefined : json['max_order_price'], + 'seller_payment': json['seller_payment'] == null ? undefined : json['seller_payment'], + }; +} +export function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_weight': value['min_weight'], + 'max_weight': value['max_weight'], + 'min_order_price': value['min_order_price'], + 'max_order_price': value['max_order_price'], + 'seller_payment': value['seller_payment'], + }; +} diff --git a/dist/esm/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.d.ts b/dist/esm/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.d.ts new file mode 100644 index 0000000..3681d69 --- /dev/null +++ b/dist/esm/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSReturnMileInfoResponseReturnPoint } from './V1WarehouseFBSReturnMileInfoResponseReturnPoint'; +/** + * + * @export + * @interface WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings + */ +export interface WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings { + /** + * Признак, что необходимо установить пункт возврата. + * @type {boolean} + * @memberof WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings + */ + is_return_mile_required?: boolean; + /** + * + * @type {V1WarehouseFBSReturnMileInfoResponseReturnPoint} + * @memberof WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings + */ + return_point?: V1WarehouseFBSReturnMileInfoResponseReturnPoint; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings interface. + */ +export declare function instanceOfWarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings(value: object): value is WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings; +export declare function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON(json: any): WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings; +export declare function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings; +export declare function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON(value?: WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings | null): any; diff --git a/dist/esm/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.js b/dist/esm/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.js new file mode 100644 index 0000000..d27d32a --- /dev/null +++ b/dist/esm/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON, V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON, } from './V1WarehouseFBSReturnMileInfoResponseReturnPoint'; +/** + * Check if a given object implements the WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings interface. + */ +export function instanceOfWarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings(value) { + return true; +} +export function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON(json) { + return WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSONTyped(json, false); +} +export function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_return_mile_required': json['is_return_mile_required'] == null ? undefined : json['is_return_mile_required'], + 'return_point': json['return_point'] == null ? undefined : V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON(json['return_point']), + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_return_mile_required': value['is_return_mile_required'], + 'return_point': V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON(value['return_point']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.d.ts b/dist/esm/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.d.ts new file mode 100644 index 0000000..d3b7b54 --- /dev/null +++ b/dist/esm/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ +export interface WarehouseFbsPickUpHistoryListResponseHistoryEntity { + /** + * Дата отгрузки в формате `YYYY-MM-DD`. + * @type {string} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + planned_date?: string; + /** + * Статус отгрузки: + * - `courier_called` — продавец вызвал курьера самостоятельно; + * - `courier_cancelled` — продавец отменил курьера; + * - `courier_assigned` — Ozon назначил курьера автоматически; + * - `courier_not_assigned` — курьер не назначен. + * + * @type {string} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + status?: string; + /** + * Дата и время обновления отгрузки. + * @type {string} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + warehouse_name?: string; + /** + * `true`, если отгрузка запланирована. + * + * @type {boolean} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + was_planned?: boolean; +} +/** + * Check if a given object implements the WarehouseFbsPickUpHistoryListResponseHistoryEntity interface. + */ +export declare function instanceOfWarehouseFbsPickUpHistoryListResponseHistoryEntity(value: object): value is WarehouseFbsPickUpHistoryListResponseHistoryEntity; +export declare function WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON(json: any): WarehouseFbsPickUpHistoryListResponseHistoryEntity; +export declare function WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFbsPickUpHistoryListResponseHistoryEntity; +export declare function WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON(value?: WarehouseFbsPickUpHistoryListResponseHistoryEntity | null): any; diff --git a/dist/esm/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.js b/dist/esm/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.js new file mode 100644 index 0000000..91d003e --- /dev/null +++ b/dist/esm/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseFbsPickUpHistoryListResponseHistoryEntity interface. + */ +export function instanceOfWarehouseFbsPickUpHistoryListResponseHistoryEntity(value) { + return true; +} +export function WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON(json) { + return WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSONTyped(json, false); +} +export function WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'planned_date': json['planned_date'] == null ? undefined : json['planned_date'], + 'status': json['status'] == null ? undefined : json['status'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'was_planned': json['was_planned'] == null ? undefined : json['was_planned'], + }; +} +export function WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON(value) { + if (value == null) { + return value; + } + return { + 'planned_date': value['planned_date'], + 'status': value['status'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'was_planned': value['was_planned'], + }; +} diff --git a/dist/esm/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.d.ts b/dist/esm/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.d.ts new file mode 100644 index 0000000..662f526 --- /dev/null +++ b/dist/esm/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ +export interface WarehouseFbsPickUpPlanningListResponseResultWarehouse { + /** + * `true`, если можно изменить возможность планирования вызова курьера. + * + * @type {boolean} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + can_modify_pickup_plan?: boolean; + /** + * `true`, если есть отправления для отгрузки. + * + * @type {boolean} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + has_postings_to_be_planned?: boolean; + /** + * `true`, если запланирована отгрузка курьером. + * + * @type {boolean} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + is_pickup_planned?: boolean; + /** + * Дата и время окончания планирования выезда курьера. + * @type {string} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + last_pickup_plan_date_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the WarehouseFbsPickUpPlanningListResponseResultWarehouse interface. + */ +export declare function instanceOfWarehouseFbsPickUpPlanningListResponseResultWarehouse(value: object): value is WarehouseFbsPickUpPlanningListResponseResultWarehouse; +export declare function WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON(json: any): WarehouseFbsPickUpPlanningListResponseResultWarehouse; +export declare function WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFbsPickUpPlanningListResponseResultWarehouse; +export declare function WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON(value?: WarehouseFbsPickUpPlanningListResponseResultWarehouse | null): any; diff --git a/dist/esm/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.js b/dist/esm/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.js new file mode 100644 index 0000000..b1c53da --- /dev/null +++ b/dist/esm/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseFbsPickUpPlanningListResponseResultWarehouse interface. + */ +export function instanceOfWarehouseFbsPickUpPlanningListResponseResultWarehouse(value) { + return true; +} +export function WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON(json) { + return WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSONTyped(json, false); +} +export function WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_modify_pickup_plan': json['can_modify_pickup_plan'] == null ? undefined : json['can_modify_pickup_plan'], + 'has_postings_to_be_planned': json['has_postings_to_be_planned'] == null ? undefined : json['has_postings_to_be_planned'], + 'is_pickup_planned': json['is_pickup_planned'] == null ? undefined : json['is_pickup_planned'], + 'last_pickup_plan_date_at': json['last_pickup_plan_date_at'] == null ? undefined : json['last_pickup_plan_date_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +export function WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_modify_pickup_plan': value['can_modify_pickup_plan'], + 'has_postings_to_be_planned': value['has_postings_to_be_planned'], + 'is_pickup_planned': value['is_pickup_planned'], + 'last_pickup_plan_date_at': value['last_pickup_plan_date_at'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/esm/models/WarehouseFirstMile.d.ts b/dist/esm/models/WarehouseFirstMile.d.ts new file mode 100644 index 0000000..25dc728 --- /dev/null +++ b/dist/esm/models/WarehouseFirstMile.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FirstMileTypeEnum } from './FirstMileTypeEnum'; +/** + * Первая миля. + * @export + * @interface WarehouseFirstMile + */ +export interface WarehouseFirstMile { + /** + * Идентификатор drop-off пункта. + * @type {string} + * @memberof WarehouseFirstMile + */ + dropoff_point_id?: string; + /** + * Признак, что настройки склада обновляются. + * @type {boolean} + * @memberof WarehouseFirstMile + */ + first_mile_is_changing?: boolean; + /** + * Время начала таймслота. + * @type {string} + * @memberof WarehouseFirstMile + */ + timeslot_from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof WarehouseFirstMile + */ + timeslot_id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof WarehouseFirstMile + */ + timeslot_to?: string; + /** + * + * @type {FirstMileTypeEnum} + * @memberof WarehouseFirstMile + */ + type?: FirstMileTypeEnum; +} +/** + * Check if a given object implements the WarehouseFirstMile interface. + */ +export declare function instanceOfWarehouseFirstMile(value: object): value is WarehouseFirstMile; +export declare function WarehouseFirstMileFromJSON(json: any): WarehouseFirstMile; +export declare function WarehouseFirstMileFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFirstMile; +export declare function WarehouseFirstMileToJSON(value?: WarehouseFirstMile | null): any; diff --git a/dist/esm/models/WarehouseFirstMile.js b/dist/esm/models/WarehouseFirstMile.js new file mode 100644 index 0000000..df4ef6d --- /dev/null +++ b/dist/esm/models/WarehouseFirstMile.js @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FirstMileTypeEnumFromJSON, FirstMileTypeEnumToJSON, } from './FirstMileTypeEnum'; +/** + * Check if a given object implements the WarehouseFirstMile interface. + */ +export function instanceOfWarehouseFirstMile(value) { + return true; +} +export function WarehouseFirstMileFromJSON(json) { + return WarehouseFirstMileFromJSONTyped(json, false); +} +export function WarehouseFirstMileFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'first_mile_is_changing': json['first_mile_is_changing'] == null ? undefined : json['first_mile_is_changing'], + 'timeslot_from': json['timeslot_from'] == null ? undefined : json['timeslot_from'], + 'timeslot_id': json['timeslot_id'] == null ? undefined : json['timeslot_id'], + 'timeslot_to': json['timeslot_to'] == null ? undefined : json['timeslot_to'], + 'type': json['type'] == null ? undefined : FirstMileTypeEnumFromJSON(json['type']), + }; +} +export function WarehouseFirstMileToJSON(value) { + if (value == null) { + return value; + } + return { + 'dropoff_point_id': value['dropoff_point_id'], + 'first_mile_is_changing': value['first_mile_is_changing'], + 'timeslot_from': value['timeslot_from'], + 'timeslot_id': value['timeslot_id'], + 'timeslot_to': value['timeslot_to'], + 'type': FirstMileTypeEnumToJSON(value['type']), + }; +} diff --git a/dist/esm/models/WarehouseFirstMileType.d.ts b/dist/esm/models/WarehouseFirstMileType.d.ts new file mode 100644 index 0000000..a2635f6 --- /dev/null +++ b/dist/esm/models/WarehouseFirstMileType.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Первая миля FBS. + * @export + * @interface WarehouseFirstMileType + */ +export interface WarehouseFirstMileType { + /** + * Идентификатор DropOff-точки. + * @type {string} + * @memberof WarehouseFirstMileType + */ + dropoff_point_id?: string; + /** + * Идентификатор временного слота для DropOff. + * @type {number} + * @memberof WarehouseFirstMileType + */ + dropoff_timeslot_id?: number; + /** + * Признак, что настройки склада обновляются. + * @type {boolean} + * @memberof WarehouseFirstMileType + */ + first_mile_is_changing?: boolean; + /** + * Тип первой мили — `DropOff` или `Pickup`. + * @type {string} + * @memberof WarehouseFirstMileType + */ + first_mile_type?: WarehouseFirstMileTypeFirstMileTypeEnum; +} +/** + * @export + */ +export declare const WarehouseFirstMileTypeFirstMileTypeEnum: { + readonly DropOff: "DropOff"; + readonly Pickup: "Pickup"; +}; +export type WarehouseFirstMileTypeFirstMileTypeEnum = typeof WarehouseFirstMileTypeFirstMileTypeEnum[keyof typeof WarehouseFirstMileTypeFirstMileTypeEnum]; +/** + * Check if a given object implements the WarehouseFirstMileType interface. + */ +export declare function instanceOfWarehouseFirstMileType(value: object): value is WarehouseFirstMileType; +export declare function WarehouseFirstMileTypeFromJSON(json: any): WarehouseFirstMileType; +export declare function WarehouseFirstMileTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFirstMileType; +export declare function WarehouseFirstMileTypeToJSON(value?: WarehouseFirstMileType | null): any; diff --git a/dist/esm/models/WarehouseFirstMileType.js b/dist/esm/models/WarehouseFirstMileType.js new file mode 100644 index 0000000..aea9bb7 --- /dev/null +++ b/dist/esm/models/WarehouseFirstMileType.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const WarehouseFirstMileTypeFirstMileTypeEnum = { + DropOff: 'DropOff', + Pickup: 'Pickup' +}; +/** + * Check if a given object implements the WarehouseFirstMileType interface. + */ +export function instanceOfWarehouseFirstMileType(value) { + return true; +} +export function WarehouseFirstMileTypeFromJSON(json) { + return WarehouseFirstMileTypeFromJSONTyped(json, false); +} +export function WarehouseFirstMileTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'dropoff_timeslot_id': json['dropoff_timeslot_id'] == null ? undefined : json['dropoff_timeslot_id'], + 'first_mile_is_changing': json['first_mile_is_changing'] == null ? undefined : json['first_mile_is_changing'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + }; +} +export function WarehouseFirstMileTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'dropoff_point_id': value['dropoff_point_id'], + 'dropoff_timeslot_id': value['dropoff_timeslot_id'], + 'first_mile_is_changing': value['first_mile_is_changing'], + 'first_mile_type': value['first_mile_type'], + }; +} diff --git a/dist/esm/models/WarehouseInvalidProductsGetResponseValidationResult.d.ts b/dist/esm/models/WarehouseInvalidProductsGetResponseValidationResult.d.ts new file mode 100644 index 0000000..ad49081 --- /dev/null +++ b/dist/esm/models/WarehouseInvalidProductsGetResponseValidationResult.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValidationResultItemStateEnum } from './ValidationResultItemStateEnum'; +import type { ValidationResultItem } from './ValidationResultItem'; +import type { ValidationResultValidationError } from './ValidationResultValidationError'; +/** + * + * @export + * @interface WarehouseInvalidProductsGetResponseValidationResult + */ +export interface WarehouseInvalidProductsGetResponseValidationResult { + /** + * + * @type {ValidationResultItem} + * @memberof WarehouseInvalidProductsGetResponseValidationResult + */ + item?: ValidationResultItem; + /** + * + * @type {ValidationResultItemStateEnum} + * @memberof WarehouseInvalidProductsGetResponseValidationResult + */ + state?: ValidationResultItemStateEnum; + /** + * Информация об ошибках. + * @type {Array} + * @memberof WarehouseInvalidProductsGetResponseValidationResult + */ + validation_errors?: Array; +} +/** + * Check if a given object implements the WarehouseInvalidProductsGetResponseValidationResult interface. + */ +export declare function instanceOfWarehouseInvalidProductsGetResponseValidationResult(value: object): value is WarehouseInvalidProductsGetResponseValidationResult; +export declare function WarehouseInvalidProductsGetResponseValidationResultFromJSON(json: any): WarehouseInvalidProductsGetResponseValidationResult; +export declare function WarehouseInvalidProductsGetResponseValidationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseInvalidProductsGetResponseValidationResult; +export declare function WarehouseInvalidProductsGetResponseValidationResultToJSON(value?: WarehouseInvalidProductsGetResponseValidationResult | null): any; diff --git a/dist/esm/models/WarehouseInvalidProductsGetResponseValidationResult.js b/dist/esm/models/WarehouseInvalidProductsGetResponseValidationResult.js new file mode 100644 index 0000000..4805267 --- /dev/null +++ b/dist/esm/models/WarehouseInvalidProductsGetResponseValidationResult.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ValidationResultItemStateEnumFromJSON, ValidationResultItemStateEnumToJSON, } from './ValidationResultItemStateEnum'; +import { ValidationResultItemFromJSON, ValidationResultItemToJSON, } from './ValidationResultItem'; +import { ValidationResultValidationErrorFromJSON, ValidationResultValidationErrorToJSON, } from './ValidationResultValidationError'; +/** + * Check if a given object implements the WarehouseInvalidProductsGetResponseValidationResult interface. + */ +export function instanceOfWarehouseInvalidProductsGetResponseValidationResult(value) { + return true; +} +export function WarehouseInvalidProductsGetResponseValidationResultFromJSON(json) { + return WarehouseInvalidProductsGetResponseValidationResultFromJSONTyped(json, false); +} +export function WarehouseInvalidProductsGetResponseValidationResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'item': json['item'] == null ? undefined : ValidationResultItemFromJSON(json['item']), + 'state': json['state'] == null ? undefined : ValidationResultItemStateEnumFromJSON(json['state']), + 'validation_errors': json['validation_errors'] == null ? undefined : (json['validation_errors'].map(ValidationResultValidationErrorFromJSON)), + }; +} +export function WarehouseInvalidProductsGetResponseValidationResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'item': ValidationResultItemToJSON(value['item']), + 'state': ValidationResultItemStateEnumToJSON(value['state']), + 'validation_errors': value['validation_errors'] == null ? undefined : (value['validation_errors'].map(ValidationResultValidationErrorToJSON)), + }; +} diff --git a/dist/esm/models/WarehouseListResponseWarehouse.d.ts b/dist/esm/models/WarehouseListResponseWarehouse.d.ts new file mode 100644 index 0000000..47e0457 --- /dev/null +++ b/dist/esm/models/WarehouseListResponseWarehouse.d.ts @@ -0,0 +1,165 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseFirstMileType } from './WarehouseFirstMileType'; +/** + * + * @export + * @interface WarehouseListResponseWarehouse + */ +export interface WarehouseListResponseWarehouse { + /** + * Признак доверительной приёмки. `true`, если доверительная приёмка включена на складе. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + has_entrusted_acceptance?: boolean; + /** + * Признак работы склада по схеме rFBS: + * - `true` — склад работает по схеме rFBS; + * - `false` — не работает по схеме rFBS. + * + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_rfbs?: boolean; + /** + * Название склада. + * @type {string} + * @memberof WarehouseListResponseWarehouse + */ + name?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseListResponseWarehouse + */ + warehouse_id?: number; + /** + * Возможность печати акта приёма-передачи заранее. `true`, если печатать заранее возможно. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + can_print_act_in_advance?: boolean; + /** + * + * @type {WarehouseFirstMileType} + * @memberof WarehouseListResponseWarehouse + */ + first_mile_type?: WarehouseFirstMileType; + /** + * Признак наличия лимита минимального количества заказов. `true`, если лимит есть. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + has_postings_limit?: boolean; + /** + * Признак, что склад не работает из-за карантина. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_karantin?: boolean; + /** + * Признак, что склад принимает крупногабаритные товары. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_kgt?: boolean; + /** + * `true`, если склад работает с эконом-товарами. + * + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_economy?: boolean; + /** + * `true`, если можно установить цену. + * + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_able_to_set_price?: boolean; + /** + * `true`, если отгрузка с предсортировкой. + * + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_presorted?: boolean; + /** + * Признак, что можно менять расписание работы складов. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_timetable_editable?: boolean; + /** + * Минимальное значение лимита — количество заказов, которые можно привезти в одной поставке. + * @type {number} + * @memberof WarehouseListResponseWarehouse + */ + min_postings_limit?: number; + /** + * Значение лимита. `-1`, если лимита нет. + * @type {number} + * @memberof WarehouseListResponseWarehouse + */ + postings_limit?: number; + /** + * Количество рабочих дней склада. + * @type {number} + * @memberof WarehouseListResponseWarehouse + */ + min_working_days?: number; + /** + * Статус склада. + * + * Соответствие статусов склада со статусами с личном кабинете: + * + * | Статус Seller API | Статус в личном кабинете | + * |---|---| + * | `new` | Активируется | + * | `created` | Активный | + * | `disabled` | В архиве | + * | `blocked` | Заблокирован | + * | `disabled_due_to_limit` | На паузе | + * | `error` | Ошибка | + * + * @type {string} + * @memberof WarehouseListResponseWarehouse + */ + status?: string; + /** + * Рабочие дни склада. + * @type {Array} + * @memberof WarehouseListResponseWarehouse + */ + working_days?: Array; +} +/** + * @export + */ +export declare const WarehouseListResponseWarehouseWorkingDaysEnum: { + readonly _1: "1"; + readonly _2: "2"; + readonly _3: "3"; + readonly _4: "4"; + readonly _5: "5"; + readonly _6: "6"; + readonly _7: "7"; +}; +export type WarehouseListResponseWarehouseWorkingDaysEnum = typeof WarehouseListResponseWarehouseWorkingDaysEnum[keyof typeof WarehouseListResponseWarehouseWorkingDaysEnum]; +/** + * Check if a given object implements the WarehouseListResponseWarehouse interface. + */ +export declare function instanceOfWarehouseListResponseWarehouse(value: object): value is WarehouseListResponseWarehouse; +export declare function WarehouseListResponseWarehouseFromJSON(json: any): WarehouseListResponseWarehouse; +export declare function WarehouseListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseListResponseWarehouse; +export declare function WarehouseListResponseWarehouseToJSON(value?: WarehouseListResponseWarehouse | null): any; diff --git a/dist/esm/models/WarehouseListResponseWarehouse.js b/dist/esm/models/WarehouseListResponseWarehouse.js new file mode 100644 index 0000000..fe22c0d --- /dev/null +++ b/dist/esm/models/WarehouseListResponseWarehouse.js @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseFirstMileTypeFromJSON, WarehouseFirstMileTypeToJSON, } from './WarehouseFirstMileType'; +/** + * @export + */ +export const WarehouseListResponseWarehouseWorkingDaysEnum = { + _1: '1', + _2: '2', + _3: '3', + _4: '4', + _5: '5', + _6: '6', + _7: '7' +}; +/** + * Check if a given object implements the WarehouseListResponseWarehouse interface. + */ +export function instanceOfWarehouseListResponseWarehouse(value) { + return true; +} +export function WarehouseListResponseWarehouseFromJSON(json) { + return WarehouseListResponseWarehouseFromJSONTyped(json, false); +} +export function WarehouseListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'is_rfbs': json['is_rfbs'] == null ? undefined : json['is_rfbs'], + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'can_print_act_in_advance': json['can_print_act_in_advance'] == null ? undefined : json['can_print_act_in_advance'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : WarehouseFirstMileTypeFromJSON(json['first_mile_type']), + 'has_postings_limit': json['has_postings_limit'] == null ? undefined : json['has_postings_limit'], + 'is_karantin': json['is_karantin'] == null ? undefined : json['is_karantin'], + 'is_kgt': json['is_kgt'] == null ? undefined : json['is_kgt'], + 'is_economy': json['is_economy'] == null ? undefined : json['is_economy'], + 'is_able_to_set_price': json['is_able_to_set_price'] == null ? undefined : json['is_able_to_set_price'], + 'is_presorted': json['is_presorted'] == null ? undefined : json['is_presorted'], + 'is_timetable_editable': json['is_timetable_editable'] == null ? undefined : json['is_timetable_editable'], + 'min_postings_limit': json['min_postings_limit'] == null ? undefined : json['min_postings_limit'], + 'postings_limit': json['postings_limit'] == null ? undefined : json['postings_limit'], + 'min_working_days': json['min_working_days'] == null ? undefined : json['min_working_days'], + 'status': json['status'] == null ? undefined : json['status'], + 'working_days': json['working_days'] == null ? undefined : json['working_days'], + }; +} +export function WarehouseListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'is_rfbs': value['is_rfbs'], + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + 'can_print_act_in_advance': value['can_print_act_in_advance'], + 'first_mile_type': WarehouseFirstMileTypeToJSON(value['first_mile_type']), + 'has_postings_limit': value['has_postings_limit'], + 'is_karantin': value['is_karantin'], + 'is_kgt': value['is_kgt'], + 'is_economy': value['is_economy'], + 'is_able_to_set_price': value['is_able_to_set_price'], + 'is_presorted': value['is_presorted'], + 'is_timetable_editable': value['is_timetable_editable'], + 'min_postings_limit': value['min_postings_limit'], + 'postings_limit': value['postings_limit'], + 'min_working_days': value['min_working_days'], + 'status': value['status'], + 'working_days': value['working_days'], + }; +} diff --git a/dist/esm/models/WarehouseListV2ResponseWarehouse.d.ts b/dist/esm/models/WarehouseListV2ResponseWarehouse.d.ts new file mode 100644 index 0000000..9246d77 --- /dev/null +++ b/dist/esm/models/WarehouseListV2ResponseWarehouse.d.ts @@ -0,0 +1,207 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseCarriageLabelTypeEnum } from './WarehouseCarriageLabelTypeEnum'; +import type { WarehouseFirstMile } from './WarehouseFirstMile'; +import type { WarehouseWorkingDaysEnum } from './WarehouseWorkingDaysEnum'; +import type { WarehouseAddressInfo } from './WarehouseAddressInfo'; +import type { WarehouseTimetable } from './WarehouseTimetable'; +/** + * + * @export + * @interface WarehouseListV2ResponseWarehouse + */ +export interface WarehouseListV2ResponseWarehouse { + /** + * + * @type {WarehouseAddressInfo} + * @memberof WarehouseListV2ResponseWarehouse + */ + address_info?: WarehouseAddressInfo; + /** + * + * @type {WarehouseCarriageLabelTypeEnum} + * @memberof WarehouseListV2ResponseWarehouse + */ + carriage_label_type?: WarehouseCarriageLabelTypeEnum; + /** + * Комментарий для курьера. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + courier_comment?: string; + /** + * Номера телефонов для связи с курьером. + * @type {Array} + * @memberof WarehouseListV2ResponseWarehouse + */ + courier_phones?: Array; + /** + * Дата и время создания склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + created_at?: string; + /** + * Время на отгрузку в минутах. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + cut_in_time?: number; + /** + * + * @type {WarehouseFirstMile} + * @memberof WarehouseListV2ResponseWarehouse + */ + first_mile?: WarehouseFirstMile; + /** + * Признак подключения доверительной приемки. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + has_entrusted_acceptance?: boolean; + /** + * Признак наличия лимита минимального количества заказов. `true`, если лимит есть. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + has_postings_limit?: boolean; + /** + * Признак включённой автосборки. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_auto_assembly?: boolean; + /** + * Признак доставки comfort. Время доставки до покупателя от 60 минут. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_comfort?: boolean; + /** + * Признак доставки express. Время доставки до покупателя не больше 60 минут. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_express?: boolean; + /** + * Признак, что склад принимает крупногабаритные товары. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_kgt?: boolean; + /** + * Признак работы склада по схеме rFBS. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_rfbs?: boolean; + /** + * Признак включённой печати транспортной накладной. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_waybill_enabled?: boolean; + /** + * Минимальное количество заказов, которое можно привезти в одной поставке. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + min_postings_limit?: number; + /** + * Название склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + name?: string; + /** + * Дата, когда продавец поставил склад на паузу. Если значение `null`, склад активный. Только для rFBS-склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + pause_at?: string; + /** + * Номер телефона склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + phone?: string; + /** + * Лимит заказов. `-1`, если лимита нет. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + postings_limit?: number; + /** + * Минимальное время на сборку заказа в минутах. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + sla_cut_in?: number; + /** + * Статус склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + status?: string; + /** + * + * @type {WarehouseTimetable} + * @memberof WarehouseListV2ResponseWarehouse + */ + timetable?: WarehouseTimetable; + /** + * Дата и время последнего обновления данных склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + warehouse_id?: number; + /** + * Тип склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + warehouse_type?: string; + /** + * Признак включённой печати листа подбора. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + with_item_list?: boolean; + /** + * Рабочие дни склада: + * - `UNSPECIFIED` — значение не определено; + * - `MONDAY` — понедельник; + * - `TUESDAY` — вторник; + * - `WEDNESDAY` — среда; + * - `THURSDAY` — четверг; + * - `FRIDAY` — пятница; + * - `SATURDAY` — суббота; + * - `SUNDAY` — воскресенье. + * + * @type {Array} + * @memberof WarehouseListV2ResponseWarehouse + */ + working_days?: Array; +} +/** + * Check if a given object implements the WarehouseListV2ResponseWarehouse interface. + */ +export declare function instanceOfWarehouseListV2ResponseWarehouse(value: object): value is WarehouseListV2ResponseWarehouse; +export declare function WarehouseListV2ResponseWarehouseFromJSON(json: any): WarehouseListV2ResponseWarehouse; +export declare function WarehouseListV2ResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseListV2ResponseWarehouse; +export declare function WarehouseListV2ResponseWarehouseToJSON(value?: WarehouseListV2ResponseWarehouse | null): any; diff --git a/dist/esm/models/WarehouseListV2ResponseWarehouse.js b/dist/esm/models/WarehouseListV2ResponseWarehouse.js new file mode 100644 index 0000000..81dbc1a --- /dev/null +++ b/dist/esm/models/WarehouseListV2ResponseWarehouse.js @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseCarriageLabelTypeEnumFromJSON, WarehouseCarriageLabelTypeEnumToJSON, } from './WarehouseCarriageLabelTypeEnum'; +import { WarehouseFirstMileFromJSON, WarehouseFirstMileToJSON, } from './WarehouseFirstMile'; +import { WarehouseWorkingDaysEnumFromJSON, WarehouseWorkingDaysEnumToJSON, } from './WarehouseWorkingDaysEnum'; +import { WarehouseAddressInfoFromJSON, WarehouseAddressInfoToJSON, } from './WarehouseAddressInfo'; +import { WarehouseTimetableFromJSON, WarehouseTimetableToJSON, } from './WarehouseTimetable'; +/** + * Check if a given object implements the WarehouseListV2ResponseWarehouse interface. + */ +export function instanceOfWarehouseListV2ResponseWarehouse(value) { + return true; +} +export function WarehouseListV2ResponseWarehouseFromJSON(json) { + return WarehouseListV2ResponseWarehouseFromJSONTyped(json, false); +} +export function WarehouseListV2ResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_info': json['address_info'] == null ? undefined : WarehouseAddressInfoFromJSON(json['address_info']), + 'carriage_label_type': json['carriage_label_type'] == null ? undefined : WarehouseCarriageLabelTypeEnumFromJSON(json['carriage_label_type']), + 'courier_comment': json['courier_comment'] == null ? undefined : json['courier_comment'], + 'courier_phones': json['courier_phones'] == null ? undefined : json['courier_phones'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'cut_in_time': json['cut_in_time'] == null ? undefined : json['cut_in_time'], + 'first_mile': json['first_mile'] == null ? undefined : WarehouseFirstMileFromJSON(json['first_mile']), + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'has_postings_limit': json['has_postings_limit'] == null ? undefined : json['has_postings_limit'], + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'is_comfort': json['is_comfort'] == null ? undefined : json['is_comfort'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_kgt': json['is_kgt'] == null ? undefined : json['is_kgt'], + 'is_rfbs': json['is_rfbs'] == null ? undefined : json['is_rfbs'], + 'is_waybill_enabled': json['is_waybill_enabled'] == null ? undefined : json['is_waybill_enabled'], + 'min_postings_limit': json['min_postings_limit'] == null ? undefined : json['min_postings_limit'], + 'name': json['name'] == null ? undefined : json['name'], + 'pause_at': json['pause_at'] == null ? undefined : json['pause_at'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'postings_limit': json['postings_limit'] == null ? undefined : json['postings_limit'], + 'sla_cut_in': json['sla_cut_in'] == null ? undefined : json['sla_cut_in'], + 'status': json['status'] == null ? undefined : json['status'], + 'timetable': json['timetable'] == null ? undefined : WarehouseTimetableFromJSON(json['timetable']), + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_type': json['warehouse_type'] == null ? undefined : json['warehouse_type'], + 'with_item_list': json['with_item_list'] == null ? undefined : json['with_item_list'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(WarehouseWorkingDaysEnumFromJSON)), + }; +} +export function WarehouseListV2ResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_info': WarehouseAddressInfoToJSON(value['address_info']), + 'carriage_label_type': WarehouseCarriageLabelTypeEnumToJSON(value['carriage_label_type']), + 'courier_comment': value['courier_comment'], + 'courier_phones': value['courier_phones'], + 'created_at': value['created_at'], + 'cut_in_time': value['cut_in_time'], + 'first_mile': WarehouseFirstMileToJSON(value['first_mile']), + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'has_postings_limit': value['has_postings_limit'], + 'is_auto_assembly': value['is_auto_assembly'], + 'is_comfort': value['is_comfort'], + 'is_express': value['is_express'], + 'is_kgt': value['is_kgt'], + 'is_rfbs': value['is_rfbs'], + 'is_waybill_enabled': value['is_waybill_enabled'], + 'min_postings_limit': value['min_postings_limit'], + 'name': value['name'], + 'pause_at': value['pause_at'], + 'phone': value['phone'], + 'postings_limit': value['postings_limit'], + 'sla_cut_in': value['sla_cut_in'], + 'status': value['status'], + 'timetable': WarehouseTimetableToJSON(value['timetable']), + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_type': value['warehouse_type'], + 'with_item_list': value['with_item_list'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(WarehouseWorkingDaysEnumToJSON)), + }; +} diff --git a/dist/esm/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.d.ts b/dist/esm/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.d.ts new file mode 100644 index 0000000..47a3ff1 --- /dev/null +++ b/dist/esm/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада: + * - `UNSPECIFIED` — не указан; + * - `FULL_FILLMENT` — фулфилмент; + * - `FULL_FILLMENT_RETURNS` — склад возвратов; + * - `FULL_FILLMENT_DEFECT` — склад брака; + * - `EXPRESS_DARK_STORE` — фреш; + * - `CROSS_DOCK` — кросс-док; + * - `SORTING_CENTER` — сортировочный центр; + * - `PHARMACY` — склад аптеки; + * - `DISTRIBUTION_CENTER` — распределительный центр; + * - `ORDERS_RECEIVING_POINT` — пункты приёма заказов; + * - `OUTSOURCE_FF` — аутсорс-склады; + * - `B2B` — B2B-склад; + * - `EXTERNAL_FF` — склады партнёров. + * + * @export + */ +export declare const WarehouseOZONListResponseWarehouseWarehouseTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly FULL_FILLMENT: "FULL_FILLMENT"; + readonly FULL_FILLMENT_RETURNS: "FULL_FILLMENT_RETURNS"; + readonly FULL_FILLMENT_DEFECT: "FULL_FILLMENT_DEFECT"; + readonly EXPRESS_DARK_STORE: "EXPRESS_DARK_STORE"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly PHARMACY: "PHARMACY"; + readonly DISTRIBUTION_CENTER: "DISTRIBUTION_CENTER"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly OUTSOURCE_FF: "OUTSOURCE_FF"; + readonly B2B: "B2B"; + readonly EXTERNAL_FF: "EXTERNAL_FF"; +}; +export type WarehouseOZONListResponseWarehouseWarehouseTypeEnum = typeof WarehouseOZONListResponseWarehouseWarehouseTypeEnum[keyof typeof WarehouseOZONListResponseWarehouseWarehouseTypeEnum]; +export declare function instanceOfWarehouseOZONListResponseWarehouseWarehouseTypeEnum(value: any): boolean; +export declare function WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON(json: any): WarehouseOZONListResponseWarehouseWarehouseTypeEnum; +export declare function WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseOZONListResponseWarehouseWarehouseTypeEnum; +export declare function WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON(value?: WarehouseOZONListResponseWarehouseWarehouseTypeEnum | null): any; diff --git a/dist/esm/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.js b/dist/esm/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.js new file mode 100644 index 0000000..a291e1e --- /dev/null +++ b/dist/esm/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.js @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада: + * - `UNSPECIFIED` — не указан; + * - `FULL_FILLMENT` — фулфилмент; + * - `FULL_FILLMENT_RETURNS` — склад возвратов; + * - `FULL_FILLMENT_DEFECT` — склад брака; + * - `EXPRESS_DARK_STORE` — фреш; + * - `CROSS_DOCK` — кросс-док; + * - `SORTING_CENTER` — сортировочный центр; + * - `PHARMACY` — склад аптеки; + * - `DISTRIBUTION_CENTER` — распределительный центр; + * - `ORDERS_RECEIVING_POINT` — пункты приёма заказов; + * - `OUTSOURCE_FF` — аутсорс-склады; + * - `B2B` — B2B-склад; + * - `EXTERNAL_FF` — склады партнёров. + * + * @export + */ +export const WarehouseOZONListResponseWarehouseWarehouseTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + FULL_FILLMENT: 'FULL_FILLMENT', + FULL_FILLMENT_RETURNS: 'FULL_FILLMENT_RETURNS', + FULL_FILLMENT_DEFECT: 'FULL_FILLMENT_DEFECT', + EXPRESS_DARK_STORE: 'EXPRESS_DARK_STORE', + CROSS_DOCK: 'CROSS_DOCK', + SORTING_CENTER: 'SORTING_CENTER', + PHARMACY: 'PHARMACY', + DISTRIBUTION_CENTER: 'DISTRIBUTION_CENTER', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + OUTSOURCE_FF: 'OUTSOURCE_FF', + B2B: 'B2B', + EXTERNAL_FF: 'EXTERNAL_FF' +}; +export function instanceOfWarehouseOZONListResponseWarehouseWarehouseTypeEnum(value) { + for (const key in WarehouseOZONListResponseWarehouseWarehouseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(WarehouseOZONListResponseWarehouseWarehouseTypeEnum, key)) { + if (WarehouseOZONListResponseWarehouseWarehouseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +export function WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON(json) { + return WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSONTyped(json, false); +} +export function WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/WarehouseStorageWarehouse.d.ts b/dist/esm/models/WarehouseStorageWarehouse.d.ts new file mode 100644 index 0000000..27b87b6 --- /dev/null +++ b/dist/esm/models/WarehouseStorageWarehouse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад хранения для поставок с типом `DIRECT`. + * @export + * @interface WarehouseStorageWarehouse + */ +export interface WarehouseStorageWarehouse { + /** + * Адрес склада хранения. + * @type {string} + * @memberof WarehouseStorageWarehouse + */ + address?: string; + /** + * Название склада хранения. + * @type {string} + * @memberof WarehouseStorageWarehouse + */ + name?: string; + /** + * Идентификатор склада хранения. + * @type {number} + * @memberof WarehouseStorageWarehouse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the WarehouseStorageWarehouse interface. + */ +export declare function instanceOfWarehouseStorageWarehouse(value: object): value is WarehouseStorageWarehouse; +export declare function WarehouseStorageWarehouseFromJSON(json: any): WarehouseStorageWarehouse; +export declare function WarehouseStorageWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseStorageWarehouse; +export declare function WarehouseStorageWarehouseToJSON(value?: WarehouseStorageWarehouse | null): any; diff --git a/dist/esm/models/WarehouseStorageWarehouse.js b/dist/esm/models/WarehouseStorageWarehouse.js new file mode 100644 index 0000000..dc6cc26 --- /dev/null +++ b/dist/esm/models/WarehouseStorageWarehouse.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseStorageWarehouse interface. + */ +export function instanceOfWarehouseStorageWarehouse(value) { + return true; +} +export function WarehouseStorageWarehouseFromJSON(json) { + return WarehouseStorageWarehouseFromJSONTyped(json, false); +} +export function WarehouseStorageWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function WarehouseStorageWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/WarehouseSupplyTagEnum.d.ts b/dist/esm/models/WarehouseSupplyTagEnum.d.ts new file mode 100644 index 0000000..30ab64b --- /dev/null +++ b/dist/esm/models/WarehouseSupplyTagEnum.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WarehouseSupplyTagEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly TRACEABLE: "TRACEABLE"; + readonly ETTN_REQUIRED: "ETTN_REQUIRED"; + readonly EVSD_REQUIRED: "EVSD_REQUIRED"; + readonly MARKING_REQUIRED: "MARKING_REQUIRED"; + readonly MARKING_POSSIBLE: "MARKING_POSSIBLE"; + readonly JEWELRY: "JEWELRY"; + readonly FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE: "FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE"; + readonly UTD_REQUIRED: "UTD_REQUIRED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type WarehouseSupplyTagEnum = typeof WarehouseSupplyTagEnum[keyof typeof WarehouseSupplyTagEnum]; +export declare function instanceOfWarehouseSupplyTagEnum(value: any): boolean; +export declare function WarehouseSupplyTagEnumFromJSON(json: any): WarehouseSupplyTagEnum; +export declare function WarehouseSupplyTagEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseSupplyTagEnum; +export declare function WarehouseSupplyTagEnumToJSON(value?: WarehouseSupplyTagEnum | null): any; diff --git a/dist/esm/models/WarehouseSupplyTagEnum.js b/dist/esm/models/WarehouseSupplyTagEnum.js new file mode 100644 index 0000000..5d870d8 --- /dev/null +++ b/dist/esm/models/WarehouseSupplyTagEnum.js @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const WarehouseSupplyTagEnum = { + UNSPECIFIED: 'UNSPECIFIED', + TRACEABLE: 'TRACEABLE', + ETTN_REQUIRED: 'ETTN_REQUIRED', + EVSD_REQUIRED: 'EVSD_REQUIRED', + MARKING_REQUIRED: 'MARKING_REQUIRED', + MARKING_POSSIBLE: 'MARKING_POSSIBLE', + JEWELRY: 'JEWELRY', + FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE: 'FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE', + UTD_REQUIRED: 'UTD_REQUIRED', + UNDEFINED: 'UNDEFINED' +}; +export function instanceOfWarehouseSupplyTagEnum(value) { + for (const key in WarehouseSupplyTagEnum) { + if (Object.prototype.hasOwnProperty.call(WarehouseSupplyTagEnum, key)) { + if (WarehouseSupplyTagEnum[key] === value) { + return true; + } + } + } + return false; +} +export function WarehouseSupplyTagEnumFromJSON(json) { + return WarehouseSupplyTagEnumFromJSONTyped(json, false); +} +export function WarehouseSupplyTagEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function WarehouseSupplyTagEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/WarehouseTimetable.d.ts b/dist/esm/models/WarehouseTimetable.d.ts new file mode 100644 index 0000000..a834ff7 --- /dev/null +++ b/dist/esm/models/WarehouseTimetable.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TimetableWorkingHours } from './TimetableWorkingHours'; +/** + * Расписание работы склада. + * @export + * @interface WarehouseTimetable + */ +export interface WarehouseTimetable { + /** + * Дата начала работы склада. + * @type {string} + * @memberof WarehouseTimetable + */ + timetable_from?: string; + /** + * Дата окончания работы склада. + * @type {string} + * @memberof WarehouseTimetable + */ + timetable_to?: string; + /** + * Часы работы склада. + * @type {Array} + * @memberof WarehouseTimetable + */ + working_hours?: Array; +} +/** + * Check if a given object implements the WarehouseTimetable interface. + */ +export declare function instanceOfWarehouseTimetable(value: object): value is WarehouseTimetable; +export declare function WarehouseTimetableFromJSON(json: any): WarehouseTimetable; +export declare function WarehouseTimetableFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseTimetable; +export declare function WarehouseTimetableToJSON(value?: WarehouseTimetable | null): any; diff --git a/dist/esm/models/WarehouseTimetable.js b/dist/esm/models/WarehouseTimetable.js new file mode 100644 index 0000000..1172a4a --- /dev/null +++ b/dist/esm/models/WarehouseTimetable.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { TimetableWorkingHoursFromJSON, TimetableWorkingHoursToJSON, } from './TimetableWorkingHours'; +/** + * Check if a given object implements the WarehouseTimetable interface. + */ +export function instanceOfWarehouseTimetable(value) { + return true; +} +export function WarehouseTimetableFromJSON(json) { + return WarehouseTimetableFromJSONTyped(json, false); +} +export function WarehouseTimetableFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timetable_from': json['timetable_from'] == null ? undefined : json['timetable_from'], + 'timetable_to': json['timetable_to'] == null ? undefined : json['timetable_to'], + 'working_hours': json['working_hours'] == null ? undefined : (json['working_hours'].map(TimetableWorkingHoursFromJSON)), + }; +} +export function WarehouseTimetableToJSON(value) { + if (value == null) { + return value; + } + return { + 'timetable_from': value['timetable_from'], + 'timetable_to': value['timetable_to'], + 'working_hours': value['working_hours'] == null ? undefined : (value['working_hours'].map(TimetableWorkingHoursToJSON)), + }; +} diff --git a/dist/esm/models/WarehouseV1WarehouseRfbsPauseRequest.d.ts b/dist/esm/models/WarehouseV1WarehouseRfbsPauseRequest.d.ts new file mode 100644 index 0000000..fbf4d55 --- /dev/null +++ b/dist/esm/models/WarehouseV1WarehouseRfbsPauseRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseV1WarehouseRfbsPauseRequest + */ +export interface WarehouseV1WarehouseRfbsPauseRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseV1WarehouseRfbsPauseRequest + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsPauseRequest interface. + */ +export declare function instanceOfWarehouseV1WarehouseRfbsPauseRequest(value: object): value is WarehouseV1WarehouseRfbsPauseRequest; +export declare function WarehouseV1WarehouseRfbsPauseRequestFromJSON(json: any): WarehouseV1WarehouseRfbsPauseRequest; +export declare function WarehouseV1WarehouseRfbsPauseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV1WarehouseRfbsPauseRequest; +export declare function WarehouseV1WarehouseRfbsPauseRequestToJSON(value?: WarehouseV1WarehouseRfbsPauseRequest | null): any; diff --git a/dist/esm/models/WarehouseV1WarehouseRfbsPauseRequest.js b/dist/esm/models/WarehouseV1WarehouseRfbsPauseRequest.js new file mode 100644 index 0000000..32a1050 --- /dev/null +++ b/dist/esm/models/WarehouseV1WarehouseRfbsPauseRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsPauseRequest interface. + */ +export function instanceOfWarehouseV1WarehouseRfbsPauseRequest(value) { + return true; +} +export function WarehouseV1WarehouseRfbsPauseRequestFromJSON(json) { + return WarehouseV1WarehouseRfbsPauseRequestFromJSONTyped(json, false); +} +export function WarehouseV1WarehouseRfbsPauseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function WarehouseV1WarehouseRfbsPauseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/WarehouseV1WarehouseRfbsPauseResponse.d.ts b/dist/esm/models/WarehouseV1WarehouseRfbsPauseResponse.d.ts new file mode 100644 index 0000000..133f79b --- /dev/null +++ b/dist/esm/models/WarehouseV1WarehouseRfbsPauseResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseV1WarehouseRfbsPauseResponse + */ +export interface WarehouseV1WarehouseRfbsPauseResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof WarehouseV1WarehouseRfbsPauseResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsPauseResponse interface. + */ +export declare function instanceOfWarehouseV1WarehouseRfbsPauseResponse(value: object): value is WarehouseV1WarehouseRfbsPauseResponse; +export declare function WarehouseV1WarehouseRfbsPauseResponseFromJSON(json: any): WarehouseV1WarehouseRfbsPauseResponse; +export declare function WarehouseV1WarehouseRfbsPauseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV1WarehouseRfbsPauseResponse; +export declare function WarehouseV1WarehouseRfbsPauseResponseToJSON(value?: WarehouseV1WarehouseRfbsPauseResponse | null): any; diff --git a/dist/esm/models/WarehouseV1WarehouseRfbsPauseResponse.js b/dist/esm/models/WarehouseV1WarehouseRfbsPauseResponse.js new file mode 100644 index 0000000..8ff6919 --- /dev/null +++ b/dist/esm/models/WarehouseV1WarehouseRfbsPauseResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsPauseResponse interface. + */ +export function instanceOfWarehouseV1WarehouseRfbsPauseResponse(value) { + return true; +} +export function WarehouseV1WarehouseRfbsPauseResponseFromJSON(json) { + return WarehouseV1WarehouseRfbsPauseResponseFromJSONTyped(json, false); +} +export function WarehouseV1WarehouseRfbsPauseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function WarehouseV1WarehouseRfbsPauseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseRequest.d.ts b/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseRequest.d.ts new file mode 100644 index 0000000..f7260ac --- /dev/null +++ b/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseV1WarehouseRfbsUnpauseRequest + */ +export interface WarehouseV1WarehouseRfbsUnpauseRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseV1WarehouseRfbsUnpauseRequest + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsUnpauseRequest interface. + */ +export declare function instanceOfWarehouseV1WarehouseRfbsUnpauseRequest(value: object): value is WarehouseV1WarehouseRfbsUnpauseRequest; +export declare function WarehouseV1WarehouseRfbsUnpauseRequestFromJSON(json: any): WarehouseV1WarehouseRfbsUnpauseRequest; +export declare function WarehouseV1WarehouseRfbsUnpauseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV1WarehouseRfbsUnpauseRequest; +export declare function WarehouseV1WarehouseRfbsUnpauseRequestToJSON(value?: WarehouseV1WarehouseRfbsUnpauseRequest | null): any; diff --git a/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseRequest.js b/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseRequest.js new file mode 100644 index 0000000..a32998d --- /dev/null +++ b/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseRequest.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsUnpauseRequest interface. + */ +export function instanceOfWarehouseV1WarehouseRfbsUnpauseRequest(value) { + return true; +} +export function WarehouseV1WarehouseRfbsUnpauseRequestFromJSON(json) { + return WarehouseV1WarehouseRfbsUnpauseRequestFromJSONTyped(json, false); +} +export function WarehouseV1WarehouseRfbsUnpauseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +export function WarehouseV1WarehouseRfbsUnpauseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseResponse.d.ts b/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseResponse.d.ts new file mode 100644 index 0000000..eaeb739 --- /dev/null +++ b/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseV1WarehouseRfbsUnpauseResponse + */ +export interface WarehouseV1WarehouseRfbsUnpauseResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof WarehouseV1WarehouseRfbsUnpauseResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsUnpauseResponse interface. + */ +export declare function instanceOfWarehouseV1WarehouseRfbsUnpauseResponse(value: object): value is WarehouseV1WarehouseRfbsUnpauseResponse; +export declare function WarehouseV1WarehouseRfbsUnpauseResponseFromJSON(json: any): WarehouseV1WarehouseRfbsUnpauseResponse; +export declare function WarehouseV1WarehouseRfbsUnpauseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV1WarehouseRfbsUnpauseResponse; +export declare function WarehouseV1WarehouseRfbsUnpauseResponseToJSON(value?: WarehouseV1WarehouseRfbsUnpauseResponse | null): any; diff --git a/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseResponse.js b/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseResponse.js new file mode 100644 index 0000000..638bb40 --- /dev/null +++ b/dist/esm/models/WarehouseV1WarehouseRfbsUnpauseResponse.js @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsUnpauseResponse interface. + */ +export function instanceOfWarehouseV1WarehouseRfbsUnpauseResponse(value) { + return true; +} +export function WarehouseV1WarehouseRfbsUnpauseResponseFromJSON(json) { + return WarehouseV1WarehouseRfbsUnpauseResponseFromJSONTyped(json, false); +} +export function WarehouseV1WarehouseRfbsUnpauseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +export function WarehouseV1WarehouseRfbsUnpauseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.d.ts b/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.d.ts new file mode 100644 index 0000000..4166979 --- /dev/null +++ b/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates } from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates'; +/** + * Информация о drop-off пункте. + * @export + * @interface WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ +export interface WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ + address?: string; + /** + * + * @type {WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ + address_coordinates?: WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; + /** + * Код drop-off пункта в системе транспортной компании. + * @type {string} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ + code?: string; + /** + * Название drop-off пункта. + * @type {string} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ + name?: string; +} +/** + * Check if a given object implements the WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint interface. + */ +export declare function instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint(value: object): value is WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON(json: any): WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON(value?: WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint | null): any; diff --git a/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.js b/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.js new file mode 100644 index 0000000..3126d34 --- /dev/null +++ b/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.js @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON, WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON, } from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates'; +/** + * Check if a given object implements the WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint interface. + */ +export function instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint(value) { + return true; +} +export function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON(json) { + return WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSONTyped(json, false); +} +export function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'address_coordinates': json['address_coordinates'] == null ? undefined : WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON(json['address_coordinates']), + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +export function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'address_coordinates': WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON(value['address_coordinates']), + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.d.ts b/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.d.ts new file mode 100644 index 0000000..2a19af6 --- /dev/null +++ b/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты drop-off пункта. + * @export + * @interface WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates + */ +export interface WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates interface. + */ +export declare function instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates(value: object): value is WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON(json: any): WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON(value?: WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates | null): any; diff --git a/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.js b/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.js new file mode 100644 index 0000000..e0251be --- /dev/null +++ b/dist/esm/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Check if a given object implements the WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates interface. + */ +export function instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates(value) { + return true; +} +export function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON(json) { + return WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSONTyped(json, false); +} +export function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +export function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/esm/models/WarehouseWarehouseListResponse.d.ts b/dist/esm/models/WarehouseWarehouseListResponse.d.ts new file mode 100644 index 0000000..4ec9db4 --- /dev/null +++ b/dist/esm/models/WarehouseWarehouseListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseListResponseWarehouse } from './WarehouseListResponseWarehouse'; +/** + * + * @export + * @interface WarehouseWarehouseListResponse + */ +export interface WarehouseWarehouseListResponse { + /** + * Список складов. + * @type {Array} + * @memberof WarehouseWarehouseListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the WarehouseWarehouseListResponse interface. + */ +export declare function instanceOfWarehouseWarehouseListResponse(value: object): value is WarehouseWarehouseListResponse; +export declare function WarehouseWarehouseListResponseFromJSON(json: any): WarehouseWarehouseListResponse; +export declare function WarehouseWarehouseListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseWarehouseListResponse; +export declare function WarehouseWarehouseListResponseToJSON(value?: WarehouseWarehouseListResponse | null): any; diff --git a/dist/esm/models/WarehouseWarehouseListResponse.js b/dist/esm/models/WarehouseWarehouseListResponse.js new file mode 100644 index 0000000..c3d240c --- /dev/null +++ b/dist/esm/models/WarehouseWarehouseListResponse.js @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseListResponseWarehouseFromJSON, WarehouseListResponseWarehouseToJSON, } from './WarehouseListResponseWarehouse'; +/** + * Check if a given object implements the WarehouseWarehouseListResponse interface. + */ +export function instanceOfWarehouseWarehouseListResponse(value) { + return true; +} +export function WarehouseWarehouseListResponseFromJSON(json) { + return WarehouseWarehouseListResponseFromJSONTyped(json, false); +} +export function WarehouseWarehouseListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(WarehouseListResponseWarehouseFromJSON)), + }; +} +export function WarehouseWarehouseListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(WarehouseListResponseWarehouseToJSON)), + }; +} diff --git a/dist/esm/models/WarehouseWorkingDay.d.ts b/dist/esm/models/WarehouseWorkingDay.d.ts new file mode 100644 index 0000000..0eae4aa --- /dev/null +++ b/dist/esm/models/WarehouseWorkingDay.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseWorkingDayDayEnum } from './WarehouseWorkingDayDayEnum'; +/** + * + * @export + * @interface WarehouseWorkingDay + */ +export interface WarehouseWorkingDay { + /** + * + * @type {WarehouseWorkingDayDayEnum} + * @memberof WarehouseWorkingDay + */ + day?: WarehouseWorkingDayDayEnum; + /** + * Время начала работы. + * @type {string} + * @memberof WarehouseWorkingDay + */ + time_from_local?: string; + /** + * Время окончания работы. + * @type {string} + * @memberof WarehouseWorkingDay + */ + time_to_local?: string; +} +/** + * Check if a given object implements the WarehouseWorkingDay interface. + */ +export declare function instanceOfWarehouseWorkingDay(value: object): value is WarehouseWorkingDay; +export declare function WarehouseWorkingDayFromJSON(json: any): WarehouseWorkingDay; +export declare function WarehouseWorkingDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseWorkingDay; +export declare function WarehouseWorkingDayToJSON(value?: WarehouseWorkingDay | null): any; diff --git a/dist/esm/models/WarehouseWorkingDay.js b/dist/esm/models/WarehouseWorkingDay.js new file mode 100644 index 0000000..b0ecf67 --- /dev/null +++ b/dist/esm/models/WarehouseWorkingDay.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WarehouseWorkingDayDayEnumFromJSON, WarehouseWorkingDayDayEnumToJSON, } from './WarehouseWorkingDayDayEnum'; +/** + * Check if a given object implements the WarehouseWorkingDay interface. + */ +export function instanceOfWarehouseWorkingDay(value) { + return true; +} +export function WarehouseWorkingDayFromJSON(json) { + return WarehouseWorkingDayFromJSONTyped(json, false); +} +export function WarehouseWorkingDayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : WarehouseWorkingDayDayEnumFromJSON(json['day']), + 'time_from_local': json['time_from_local'] == null ? undefined : json['time_from_local'], + 'time_to_local': json['time_to_local'] == null ? undefined : json['time_to_local'], + }; +} +export function WarehouseWorkingDayToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': WarehouseWorkingDayDayEnumToJSON(value['day']), + 'time_from_local': value['time_from_local'], + 'time_to_local': value['time_to_local'], + }; +} diff --git a/dist/esm/models/WarehouseWorkingDayDayEnum.d.ts b/dist/esm/models/WarehouseWorkingDayDayEnum.d.ts new file mode 100644 index 0000000..908e909 --- /dev/null +++ b/dist/esm/models/WarehouseWorkingDayDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const WarehouseWorkingDayDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type WarehouseWorkingDayDayEnum = typeof WarehouseWorkingDayDayEnum[keyof typeof WarehouseWorkingDayDayEnum]; +export declare function instanceOfWarehouseWorkingDayDayEnum(value: any): boolean; +export declare function WarehouseWorkingDayDayEnumFromJSON(json: any): WarehouseWorkingDayDayEnum; +export declare function WarehouseWorkingDayDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseWorkingDayDayEnum; +export declare function WarehouseWorkingDayDayEnumToJSON(value?: WarehouseWorkingDayDayEnum | null): any; diff --git a/dist/esm/models/WarehouseWorkingDayDayEnum.js b/dist/esm/models/WarehouseWorkingDayDayEnum.js new file mode 100644 index 0000000..89f83a4 --- /dev/null +++ b/dist/esm/models/WarehouseWorkingDayDayEnum.js @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export const WarehouseWorkingDayDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfWarehouseWorkingDayDayEnum(value) { + for (const key in WarehouseWorkingDayDayEnum) { + if (Object.prototype.hasOwnProperty.call(WarehouseWorkingDayDayEnum, key)) { + if (WarehouseWorkingDayDayEnum[key] === value) { + return true; + } + } + } + return false; +} +export function WarehouseWorkingDayDayEnumFromJSON(json) { + return WarehouseWorkingDayDayEnumFromJSONTyped(json, false); +} +export function WarehouseWorkingDayDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function WarehouseWorkingDayDayEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/WarehouseWorkingDaysEnum.d.ts b/dist/esm/models/WarehouseWorkingDaysEnum.d.ts new file mode 100644 index 0000000..ac89d74 --- /dev/null +++ b/dist/esm/models/WarehouseWorkingDaysEnum.d.ts @@ -0,0 +1,30 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WarehouseWorkingDaysEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type WarehouseWorkingDaysEnum = typeof WarehouseWorkingDaysEnum[keyof typeof WarehouseWorkingDaysEnum]; +export declare function instanceOfWarehouseWorkingDaysEnum(value: any): boolean; +export declare function WarehouseWorkingDaysEnumFromJSON(json: any): WarehouseWorkingDaysEnum; +export declare function WarehouseWorkingDaysEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseWorkingDaysEnum; +export declare function WarehouseWorkingDaysEnumToJSON(value?: WarehouseWorkingDaysEnum | null): any; diff --git a/dist/esm/models/WarehouseWorkingDaysEnum.js b/dist/esm/models/WarehouseWorkingDaysEnum.js new file mode 100644 index 0000000..b2a8102 --- /dev/null +++ b/dist/esm/models/WarehouseWorkingDaysEnum.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const WarehouseWorkingDaysEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +export function instanceOfWarehouseWorkingDaysEnum(value) { + for (const key in WarehouseWorkingDaysEnum) { + if (Object.prototype.hasOwnProperty.call(WarehouseWorkingDaysEnum, key)) { + if (WarehouseWorkingDaysEnum[key] === value) { + return true; + } + } + } + return false; +} +export function WarehouseWorkingDaysEnumFromJSON(json) { + return WarehouseWorkingDaysEnumFromJSONTyped(json, false); +} +export function WarehouseWorkingDaysEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function WarehouseWorkingDaysEnumToJSON(value) { + return value; +} diff --git a/dist/esm/models/WorkingHoursPeriods.d.ts b/dist/esm/models/WorkingHoursPeriods.d.ts new file mode 100644 index 0000000..16cb128 --- /dev/null +++ b/dist/esm/models/WorkingHoursPeriods.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MaxPeriodsPeriod } from './MaxPeriodsPeriod'; +import type { MinPeriodsPeriod } from './MinPeriodsPeriod'; +/** + * + * @export + * @interface WorkingHoursPeriods + */ +export interface WorkingHoursPeriods { + /** + * + * @type {MaxPeriodsPeriod} + * @memberof WorkingHoursPeriods + */ + max?: MaxPeriodsPeriod; + /** + * + * @type {MinPeriodsPeriod} + * @memberof WorkingHoursPeriods + */ + min?: MinPeriodsPeriod; +} +/** + * Check if a given object implements the WorkingHoursPeriods interface. + */ +export declare function instanceOfWorkingHoursPeriods(value: object): value is WorkingHoursPeriods; +export declare function WorkingHoursPeriodsFromJSON(json: any): WorkingHoursPeriods; +export declare function WorkingHoursPeriodsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkingHoursPeriods; +export declare function WorkingHoursPeriodsToJSON(value?: WorkingHoursPeriods | null): any; diff --git a/dist/esm/models/WorkingHoursPeriods.js b/dist/esm/models/WorkingHoursPeriods.js new file mode 100644 index 0000000..86effad --- /dev/null +++ b/dist/esm/models/WorkingHoursPeriods.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MaxPeriodsPeriodFromJSON, MaxPeriodsPeriodToJSON, } from './MaxPeriodsPeriod'; +import { MinPeriodsPeriodFromJSON, MinPeriodsPeriodToJSON, } from './MinPeriodsPeriod'; +/** + * Check if a given object implements the WorkingHoursPeriods interface. + */ +export function instanceOfWorkingHoursPeriods(value) { + return true; +} +export function WorkingHoursPeriodsFromJSON(json) { + return WorkingHoursPeriodsFromJSONTyped(json, false); +} +export function WorkingHoursPeriodsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'max': json['max'] == null ? undefined : MaxPeriodsPeriodFromJSON(json['max']), + 'min': json['min'] == null ? undefined : MinPeriodsPeriodFromJSON(json['min']), + }; +} +export function WorkingHoursPeriodsToJSON(value) { + if (value == null) { + return value; + } + return { + 'max': MaxPeriodsPeriodToJSON(value['max']), + 'min': MinPeriodsPeriodToJSON(value['min']), + }; +} diff --git a/dist/esm/models/index.d.ts b/dist/esm/models/index.d.ts new file mode 100644 index 0000000..06eb7e7 --- /dev/null +++ b/dist/esm/models/index.d.ts @@ -0,0 +1,2122 @@ +export * from './ActionParameter'; +export * from './ActionParameterDiscountTypeEnum'; +export * from './ActionParameterVoucherParameter'; +export * from './ActionParameterVoucherParameterTypeEnum'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesRequest'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesResponse'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesResponseProducts'; +export * from './ActionsV1ActionsAutoAddProductsDeleteRequest'; +export * from './ActionsV1ActionsAutoAddProductsDeleteResponse'; +export * from './ActionsV1ActionsAutoAddProductsListRequest'; +export * from './ActionsV1ActionsAutoAddProductsListResponse'; +export * from './ActionsV1ActionsAutoAddProductsListResponseProducts'; +export * from './ActionsV1ActionsAutoAddProductsUpdateRequest'; +export * from './ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponse'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseRejected'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum'; +export * from './AddStrategyItemsResponseError'; +export * from './AnalyticsAnalyticsGetDataRequest'; +export * from './AnalyticsAnalyticsGetDataResponse'; +export * from './AnalyticsDataRow'; +export * from './AnalyticsDataRowDimension'; +export * from './AnalyticsFilter'; +export * from './AnalyticsGetDataResponseResult'; +export * from './AnalyticsGetStockOnWarehousesRequestWarehouseType'; +export * from './AnalyticsProductQueriesDetailsResponseQuery'; +export * from './AnalyticsProductQueriesRequestSortBy'; +export * from './AnalyticsProductQueriesRequestSortDir'; +export * from './AnalyticsProductQueriesResponseAnalyticsPeriod'; +export * from './AnalyticsSorting'; +export * from './AnalyticsStockOnWarehouseRequest'; +export * from './AnalyticsStockOnWarehouseResponse'; +export * from './AnalyticsStockOnWarehouseResponseResult'; +export * from './AnalyticsStockOnWarehouseResultRows'; +export * from './ApproveDeclineDiscountTasksResponseFailDetail'; +export * from './ArrivalPassListRequestFilter'; +export * from './ArrivalpassArrivalPassCreateRequest'; +export * from './ArrivalpassArrivalPassCreateRequestArrivalPass'; +export * from './ArrivalpassArrivalPassCreateResponse'; +export * from './ArrivalpassArrivalPassDeleteRequest'; +export * from './ArrivalpassArrivalPassListRequest'; +export * from './ArrivalpassArrivalPassListResponse'; +export * from './ArrivalpassArrivalPassListResponseArrivalPass'; +export * from './ArrivalpassArrivalPassUpdateRequest'; +export * from './ArrivalpassArrivalPassUpdateRequestArrivalPass'; +export * from './AssemblyFbsProductListResponseProducts'; +export * from './AvailabilityReason'; +export * from './AvailabilityStatusInvalidReasonEnum'; +export * from './AvailabilityStatusStateEnum'; +export * from './BrandBrandCompanyCertificationListRequest'; +export * from './BrandBrandCompanyCertificationListResponse'; +export * from './BrandCompanyCertificationListResponseBrandCertification'; +export * from './BrandCompanyCertificationListResponseBrandCertificationResult'; +export * from './CancelSupplyResultsCancelSupplyError'; +export * from './CancellationAllowabilityCanNotCancelSupplyReasonEnum'; +export * from './CancellationErrorCode'; +export * from './CancellationStateCancellationError'; +export * from './CargoInfoContentTypeEnum'; +export * from './CargoInfoPlacementZoneTypeEnum'; +export * from './CargoInfoTrackingInfo'; +export * from './CargoInfoTrackingInfoStatusEnum'; +export * from './CargoInfoTrackingInfoTypeEnum'; +export * from './CargoValue'; +export * from './CargoesCreateErrorsErrorReason'; +export * from './CargoesCreateErrorsItemValidation'; +export * from './CargoesCreateErrorsReasonEnum'; +export * from './CargoesCreateInfoV2ResponseResult'; +export * from './CargoesCreateInfoV2ResponseStatusEnum'; +export * from './CargoesCreateV2ErrorsItemValidation'; +export * from './CargoesDeleteStatusResponseStatusEnum'; +export * from './CargoesGetResponseSupply'; +export * from './CargoesPresentRuleCargoCountPerType'; +export * from './CargoesPresentRuleCargoCountPerTypeEnum'; +export * from './CargoesRulesGetResponseSupplyCheck'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateRequest'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateResponse'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusRequest'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponse'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseResult'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum'; +export * from './CargoesV1CargoesLabelTransportCreateRequest'; +export * from './CargoesV1CargoesLabelTransportCreateResponse'; +export * from './CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportStatusRequest'; +export * from './CargoesV1CargoesLabelTransportStatusResponse'; +export * from './CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportStatusResponseResult'; +export * from './CargoesV1CargoesLabelTransportStatusResponseStatusEnum'; +export * from './CargoesV1CargoesSuppliesGetRequest'; +export * from './CargoesV1CargoesSuppliesGetResponse'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportActivateRequest'; +export * from './CargoesV1CargoesTransportActivateResponse'; +export * from './CargoesV1CargoesTransportActivateStatusRequest'; +export * from './CargoesV1CargoesTransportActivateStatusResponse'; +export * from './CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportActivateStatusResponseStatusEnum'; +export * from './CargoesV1CargoesTransportBindRequest'; +export * from './CargoesV1CargoesTransportBindRequestTransportCargoBind'; +export * from './CargoesV1CargoesTransportBindResponse'; +export * from './CargoesV1CargoesTransportBindResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportBindStatusRequest'; +export * from './CargoesV1CargoesTransportBindStatusResponse'; +export * from './CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportBindStatusResponseStatusEnum'; +export * from './CargoesV1CargoesTransportCreateRequest'; +export * from './CargoesV1CargoesTransportCreateRequestTransportCargoes'; +export * from './CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportCreateResponse'; +export * from './CargoesV1CargoesTransportCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportCreateStatusRequest'; +export * from './CargoesV1CargoesTransportCreateStatusResponse'; +export * from './CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResult'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportCreateStatusResponseStatusEnum'; +export * from './CargoesV2CargoesDeleteRequest'; +export * from './CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum'; +export * from './CargoesV2CargoesDeleteResponse'; +export * from './CargoesV2CargoesDeleteResponseErrors'; +export * from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusRequest'; +export * from './CargoesV2CargoesDeleteStatusResponse'; +export * from './CargoesV2CargoesDeleteStatusResponseErrors'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseStatusEnum'; +export * from './CargoesV2CargoesGetRequest'; +export * from './CargoesV2CargoesGetRequestSupplies'; +export * from './CargoesV2CargoesGetResponse'; +export * from './CargoesV2CargoesGetResponseSupplies'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoes'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesLimits'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoes'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum'; +export * from './CarriageCarriageGetRequest'; +export * from './CarriageCarriageGetResponse'; +export * from './CarriageCarriageGetResponseCancelAvailability'; +export * from './CarriageDeliveryListV2RequestFilter'; +export * from './CarriageDeliveryListV2ResponseDeliveryMethod'; +export * from './CarriagePickupFee'; +export * from './Carriagev1CarriageContainerApproveRequest'; +export * from './Carriagev1CarriageContainerApproveResponse'; +export * from './Carriagev1CarriageContainerApproveResponseErrorContainers'; +export * from './Carriagev1CarriageContainerCancelRequest'; +export * from './Carriagev1CarriageContainerCancelResponse'; +export * from './Carriagev1CarriageContainerCancelResponseErrorContainers'; +export * from './Carriagev1CarriageContainerCreateRequest'; +export * from './Carriagev1CarriageContainerCreateResponse'; +export * from './Carriagev1CarriageContainerDocumentGetRequest'; +export * from './Carriagev1CarriageContainerDocumentGetResponse'; +export * from './Carriagev1CarriageContainerFillRequest'; +export * from './Carriagev1CarriageContainerFillResponse'; +export * from './Carriagev1CarriageContainerFillResponseErrorPostings'; +export * from './Carriagev1CarriageContainerGetRequest'; +export * from './Carriagev1CarriageContainerGetResponse'; +export * from './Carriagev1CarriageContainerGetResponsePostings'; +export * from './Carriagev1CarriageContainerGetResponsePostingsProducts'; +export * from './Carriagev1CarriageContainerLabelGetRequest'; +export * from './Carriagev1CarriageContainerLabelGetResponse'; +export * from './Carriagev1CarriageContainerLabelGetResponseContent'; +export * from './Carriagev1CarriageContainerLabelGetResponseErrorContainers'; +export * from './Carriagev1CarriageContainerListRequest'; +export * from './Carriagev1CarriageContainerListRequestFilter'; +export * from './Carriagev1CarriageContainerListRequestSortDirEnum'; +export * from './Carriagev1CarriageContainerListResponse'; +export * from './Carriagev1CarriageContainerListResponseContainers'; +export * from './Carriagev1CarriageContainerPlaceIntoRequest'; +export * from './Carriagev1CarriageContainerPlaceIntoResponse'; +export * from './Carriagev1CarriageContainerPlaceIntoResponseErrorContainers'; +export * from './Carriagev1CarriageContainerRemoveFromRequest'; +export * from './Carriagev1CarriageContainerRemoveFromResponse'; +export * from './Carriagev1CarriageContainerRemoveFromResponseErrorContainers'; +export * from './Carriagev1CarriageContainerRemovePostingsRequest'; +export * from './Carriagev1CarriageContainerRemovePostingsResponse'; +export * from './Carriagev1CarriageContainerRemovePostingsResponseErrorPostings'; +export * from './Carriagev1CarriageContainerStatusGetRequest'; +export * from './Carriagev1CarriageContainerStatusGetResponse'; +export * from './Carriagev1CarriageContainerStatusGetResponseContainers'; +export * from './Carriagev1CarriageContainerTaskInfoRequest'; +export * from './Carriagev1CarriageContainerTaskInfoResponse'; +export * from './CertificationV2ProductCertificateCreateRequest'; +export * from './CertificationV2ProductCertificateCreateRequestParams'; +export * from './CertificationV2ProductCertificateCreateResponse'; +export * from './CertificationV2ProductCertificateCreateResponseParam'; +export * from './CertificationV2ProductCertificateCreateResponseParamStateEnum'; +export * from './CertificationV2ProductCertificateCreateResponseStatusEnum'; +export * from './CertificationV2ProductCertificateOptionsResponse'; +export * from './CertificationV2ProductCertificateOptionsResponseOption'; +export * from './CertificationV2ProductCertificateParamsRequest'; +export * from './CertificationV2ProductCertificateParamsRequestParams'; +export * from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +export * from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +export * from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +export * from './CertificationV2ProductCertificateParamsRequestParamsFile'; +export * from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +export * from './CertificationV2ProductCertificateParamsResponse'; +export * from './CertificationV2ProductCertificateParamsResponseParam'; +export * from './ChatChatSendFileRequest'; +export * from './ChatChatSendFileResponse'; +export * from './ChatChatSendMessageRequest'; +export * from './ChatChatSendMessageResponse'; +export * from './ChatChatStartRequest'; +export * from './ChatChatStartResponse'; +export * from './ChatHistoryRequestFilter'; +export * from './ChatInfoChatStatusEnum'; +export * from './ChatInfoChatTypeEnum'; +export * from './ChatMessageContext'; +export * from './ChatMessageModerateImageStatus'; +export * from './ChatRead'; +export * from './ChatStartResponseResult'; +export * from './ClientTimeslotDateRange'; +export * from './ClusterWarehouse'; +export * from './CommentListResponseComment'; +export * from './CommonCreateReportResponse'; +export * from './CompanyTaxSystemEnum'; +export * from './ContentCanNotEditSupplyContentReasonEnum'; +export * from './CourierCoordinates'; +export * from './CreateCompanyPostingsReportRequestWith'; +export * from './CreateDocumentB2BSalesJSONReportResponseBuyer'; +export * from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfo'; +export * from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType'; +export * from './CreateDocumentB2BSalesJSONReportResponseSellerInfo'; +export * from './CreateReportResponse'; +export * from './CreateReportResponseCode'; +export * from './CreateReportResponseCodeNoDeadline'; +export * from './CreateWarehouseFBSRequestAddressCoordinates'; +export * from './CreateWarehouseFBSRequestFirstMileTypeEnum'; +export * from './CreateWarehouseFBSRequestOptions'; +export * from './CreateWarehouseFBSRequestWorkingDaysEnum'; +export * from './CreatedAt'; +export * from './DataFulfillment'; +export * from './DataMacrolocalCluster'; +export * from './DeleteProductsRequestProduct'; +export * from './DeleteProductsResponseDeleteStatus'; +export * from './DeliveryCheckoutResponseSplit'; +export * from './DeliveryCheckoutResponseSplitCommissions'; +export * from './DeliveryCheckoutResponseSplitDeliveryMethod'; +export * from './DeliveryCheckoutResponseSplitItem'; +export * from './DeliveryCheckoutResponseUnavailableReasonEnum'; +export * from './DeliveryCheckoutResponseV2SplitDeliverySchemaEnum'; +export * from './DeliveryCourier'; +export * from './DeliveryDetailsDropOffPointDetails'; +export * from './DeliveryDetailsSupplyType'; +export * from './DeliveryMapRequestViewportCoordinatesLeft'; +export * from './DeliveryMapRequestViewportCoordinatesRight'; +export * from './DeliveryMapResponseCluster'; +export * from './DeliveryMapResponseClusterCoordinates'; +export * from './DeliveryMapResponseClusterCoordinatesLeft'; +export * from './DeliveryMapResponseClusterCoordinatesRight'; +export * from './DeliveryMapResponseClusterViewport'; +export * from './DeliveryMethodAddressDetails'; +export * from './DeliveryMethodCarriage'; +export * from './DeliveryMethodDateRange'; +export * from './DeliveryMethodDeliveryPolygon'; +export * from './DeliveryMethodDeliveryTypeEnum'; +export * from './DeliveryMethodError'; +export * from './DeliveryMethodHolidays'; +export * from './DeliveryMethodListRequestFilter'; +export * from './DeliveryMethodListResponseDeliveryMethod'; +export * from './DeliveryMethodListV2RequestFilter'; +export * from './DeliveryMethodListV2RequestSortDirEnum'; +export * from './DeliveryMethodListV2ResponseDeliveryMethod'; +export * from './DeliveryMethodProperties'; +export * from './DeliveryMethodTimeslot'; +export * from './DeliveryMethodWorkingHours'; +export * from './DeliveryPickUp'; +export * from './DeliveryPointInfoResponsePointDeliveryMethod'; +export * from './DeliveryPointInfoResponsePointDeliveryMethodDeliveryType'; +export * from './DeliveryPointListResponsePointCoordinates'; +export * from './DeliveryTypeCourier'; +export * from './DeliveryTypeCourierCoordinates'; +export * from './DeliveryTypeEnum'; +export * from './DeliveryTypePickUp'; +export * from './DetailsDeliveryDetails'; +export * from './DetailsOthers'; +export * from './DetailsPayment'; +export * from './DetailsReturnDetails'; +export * from './DetailsReturns'; +export * from './DetailsRfbsDetails'; +export * from './DetailsService'; +export * from './DetailsServices'; +export * from './DirEnum'; +export * from './DirectDetailsBySellerDetails'; +export * from './DirectDetailsByTplDetails'; +export * from './DirectDetailsTimeslotDetails'; +export * from './DraftClusterListResponseLogisticCluster'; +export * from './DraftCreateCommonResponseError'; +export * from './DraftCreateCommonResponseErrorItemsValidation'; +export * from './DraftCreateInfoResponseCluster'; +export * from './DraftCreateInfoResponseError'; +export * from './DraftCreateInfoResponseErrorErrorReasonEnum'; +export * from './DraftGetWarehouseFboListResponseCoordinate'; +export * from './DraftGetWarehouseFboListResponseSearch'; +export * from './DraftGetWarehouseFboListResponseWarehouseType'; +export * from './DraftTimeslotInfoResponseResult'; +export * from './DropOffPointCoordinates'; +export * from './DropOffWarehouseTimeslotsDay'; +export * from './DropOffWarehouseTimeslotsDayTimeslot'; +export * from './ErrorData'; +export * from './ErrorErrorLevel'; +export * from './ErrorErrorMessageEnum'; +export * from './ErrorErrorReasonEnum'; +export * from './ErrorHumanTexts'; +export * from './ErrorItemsValidation'; +export * from './ExemplarMark'; +export * from './ExemplarsMarks'; +export * from './FboPostingFboPostingAnalyticsData'; +export * from './FbpCheckActStateResponseErrorReason'; +export * from './FbpCheckConsignmentNoteStateResponseStateType'; +export * from './FbpCreateActResponseCreateActErrorReason'; +export * from './FbpDraftDropOffPointListResponseDropOffPoint'; +export * from './FbpDraftDropOffProvinceListResponseProvince'; +export * from './FbpDraftGetResponseDeclineReason'; +export * from './FbpGetLabelResponseLabelCreationStateTypeEnum'; +export * from './FbpWarehouseListResponseAddressDetailing'; +export * from './FbpWarehouseListResponseWarehouse'; +export * from './Fbpv1DeliveryDetails'; +export * from './Fbpv1Timeslot'; +export * from './FbsPostingBarcodes'; +export * from './FbsPostingDetailCourier'; +export * from './FbsPostingDetailPrrOption'; +export * from './FbsPostingMoveStatusResponseMoveStatus'; +export * from './FbsPostingProductExemplarCreateOrGetV6ResponseProduct'; +export * from './FbsPostingProductExemplarSetV6RequestExemplars'; +export * from './FbsPostingProductExemplarSetV6RequestProducts'; +export * from './FbsPostingShipV4RequestPackage'; +export * from './FbsPostingShipV4RequestPackageProduct'; +export * from './FbsPostingShipV4RequestWith'; +export * from './FbsPostingShipV4ResponseShipAdditionalData'; +export * from './FbsPostingTrackingNumberSetRequestTrackingNumber'; +export * from './Fbsv4FbsPostingShipV4Request'; +export * from './Fbsv4FbsPostingShipV4Response'; +export * from './Fbsv4PostingProductDetailWithoutDimensions'; +export * from './FilterPeriod'; +export * from './FilterStatusEnum'; +export * from './FilterTimeslotFromRange'; +export * from './FilterWithQuant'; +export * from './FinanceCashFlowStatementListResponseCashFlow'; +export * from './FinanceCashFlowStatementListResponseDeliveryService'; +export * from './FinanceCashFlowStatementListResponseDetails'; +export * from './FinanceCashFlowStatementListResponseDetailsOthers'; +export * from './FinanceCashFlowStatementListResponseReturnService'; +export * from './FinanceCashFlowStatementListResponseService'; +export * from './FinanceTransactionListV3RequestFilter'; +export * from './FinanceTransactionListV3ResponseOperation'; +export * from './FinanceTransactionTotalsV3RequestDate'; +export * from './FinanceV1GetFinanceAccrualByDayRequest'; +export * from './FinanceV1GetFinanceAccrualByDayResponse'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrual'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPosting'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService'; +export * from './FinanceV1GetFinanceAccrualPostingsRequest'; +export * from './FinanceV1GetFinanceAccrualPostingsResponse'; +export * from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals'; +export * from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual'; +export * from './FinanceV1GetFinanceAccrualTypesResponse'; +export * from './FinanceV1GetFinanceAccrualTypesResponseAccrualType'; +export * from './Financev3FinanceTransactionListV3Request'; +export * from './Financev3FinanceTransactionListV3Response'; +export * from './Financev3FinanceTransactionListV3ResponseResult'; +export * from './Financev3FinanceTransactionTotalsV3Request'; +export * from './Financev3FinanceTransactionTotalsV3Response'; +export * from './Financev3FinanceTransactionTotalsV3ResponseResult'; +export * from './Financev3Period'; +export * from './FirstMileTypeEnum'; +export * from './GetCarriageAvailableListResponseResult'; +export * from './GetCompetitorsResponseCompetitorInfo'; +export * from './GetConditionalCancellationListV2RequestFilters'; +export * from './GetConditionalCancellationListV2RequestWith'; +export * from './GetConditionalCancellationListV2ResponseCancellationReason'; +export * from './GetConditionalCancellationListV2ResponseResult'; +export * from './GetConditionalCancellationListV2ResponseState'; +export * from './GetDeliveryMethodReturnSettingsV1ResponseReturnSetting'; +export * from './GetDiscountTaskListV2ResponseTask'; +export * from './GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum'; +export * from './GetEtgbRequestDate'; +export * from './GetEtgbResponseResult'; +export * from './GetEtgbResponseResultEtgb'; +export * from './GetFBSRatingIndexInfoV1ResponseIndexDynamics'; +export * from './GetFinanceBalanceV1ResponseCashflows'; +export * from './GetFinanceBalanceV1ResponseReturns'; +export * from './GetFinanceBalanceV1ResponseReturnsDetails'; +export * from './GetFinanceBalanceV1ResponseSales'; +export * from './GetFinanceBalanceV1ResponseSalesDetails'; +export * from './GetFinanceBalanceV1ResponseService'; +export * from './GetFinanceBalanceV1ResponseTotal'; +export * from './GetFinanceProductsBuyoutResponseProduct'; +export * from './GetImportProductsInfoResponseResultItem'; +export * from './GetProductAttributesResponseImage'; +export * from './GetProductAttributesV3ResponseDictionaryValue'; +export * from './GetProductAttributesV4ResponseAttribute'; +export * from './GetProductInfoListResponseAvailability'; +export * from './GetProductInfoListResponseCommission'; +export * from './GetProductInfoListResponseError'; +export * from './GetProductInfoListResponseModelInfo'; +export * from './GetProductInfoListResponsePriceIndexes'; +export * from './GetProductInfoListResponseSource'; +export * from './GetProductInfoListResponseStatuses'; +export * from './GetProductInfoListResponseStocks'; +export * from './GetProductInfoListResponseStocksStock'; +export * from './GetProductInfoListResponseVisibilityDetails'; +export * from './GetProductInfoPricesResponseItemPriceIndexes'; +export * from './GetProductInfoStocksResponseStock'; +export * from './GetProductPlacementZoneInfoResponseProductPlacement'; +export * from './GetProductRatingBySkuResponseProductRating'; +export * from './GetProductRatingBySkuResponseRatingCondition'; +export * from './GetProductRatingBySkuResponseRatingGroup'; +export * from './GetProductRatingBySkuResponseRatingImproveAttribute'; +export * from './GetRealizationReportByDayResponse'; +export * from './GetRealizationReportByDayResponseRow'; +export * from './GetRealizationReportResponseV2Header'; +export * from './GetRealizationReportResponseV2Result'; +export * from './GetRealizationReportResponseV2Row'; +export * from './GetReturnsListRequestFilter'; +export * from './GetReturnsListResponseAdditionalInfo'; +export * from './GetReturnsListResponseCompensation'; +export * from './GetReturnsListResponseCompensationStatus'; +export * from './GetReturnsListResponseExemplar'; +export * from './GetReturnsListResponseLogistic'; +export * from './GetReturnsListResponsePlaceNow'; +export * from './GetReturnsListResponsePlaceTarget'; +export * from './GetReturnsListResponseProduct'; +export * from './GetReturnsListResponseReturnsItem'; +export * from './GetReturnsListResponseStorage'; +export * from './GetReturnsListResponseVisual'; +export * from './GetReturnsListResponseVisualStatus'; +export * from './GetSellerActionsV1ResponseAction'; +export * from './GetStrategyIDsByItemIDsResponseProductInfo'; +export * from './GetStrategyListResponseStrategy'; +export * from './GetSupplyOrderBundleRequestItemTagsCalculation'; +export * from './GetUploadQuotaResponseDailyCreate'; +export * from './GetUploadQuotaResponseDailyUpdate'; +export * from './GetUploadQuotaResponseTotal'; +export * from './GetWarehouseFBSOperationStatusResponseError'; +export * from './GetWarehouseFBSOperationStatusResponseResult'; +export * from './GetWarehouseFBSOperationStatusResponseStatusEnum'; +export * from './GetWarehouseFBSOperationStatusResponseTypeEnum'; +export * from './GiveoutInfoResponseArticleDetails'; +export * from './GiveoutListResponseGiveoutDetails'; +export * from './GoogleTypeDate'; +export * from './GooglerpcStatus'; +export * from './HumanTextsParam'; +export * from './ImportProductRequestPromotion'; +export * from './ImportProductsRequestPdfList'; +export * from './InvoiceGetV2ResponseResult'; +export * from './ItemBundleSummary'; +export * from './ItemCommissionsv5'; +export * from './ItemMarketing'; +export * from './ItemPricev5'; +export * from './ItemSize'; +export * from './ItemStatusError'; +export * from './ItemValidationErrorType'; +export * from './ItemsValidationRejectedItems'; +export * from './LanguageLanguage'; +export * from './ListDropOffPointsForCreateFBSWarehouseRequestSearch'; +export * from './ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +export * from './ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint'; +export * from './ListDropOffPointsForUpdateFBSWarehouseRequestSearch'; +export * from './ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +export * from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint'; +export * from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum'; +export * from './ListFBSRatingIndexPostingsV1RequestFilter'; +export * from './ListFBSRatingIndexPostingsV1ResponseError'; +export * from './ListPostingCodesRequestFilter'; +export * from './ListPostingCodesRequestWithParams'; +export * from './ListPostingCodesResponsePosting'; +export * from './LogisticTimeslotDateRange'; +export * from './MacrolocalClusterCountry'; +export * from './MarketingAction'; +export * from './MaxPeriodsPeriod'; +export * from './MinPeriodsPeriod'; +export * from './MinUtilizationMoney'; +export * from './MoneyMoney'; +export * from './MoneyMoneyAccrued'; +export * from './MoneyMoneyBonus'; +export * from './MoneyMoneyCoinvestment'; +export * from './MoneyMoneyComissions'; +export * from './MoneyMoneyCommission'; +export * from './MoneyMoneyCurrentTariffCharge'; +export * from './MoneyMoneyCurrentTariffMinCharge'; +export * from './MoneyMoneyCustomerPrice'; +export * from './MoneyMoneyFBPget'; +export * from './MoneyMoneyNextTariffCharge'; +export * from './MoneyMoneyNextTariffMinCharge'; +export * from './MoneyMoneyPriceWithoutVat'; +export * from './MoneyMoneySaleAmount'; +export * from './MoneyMoneySaleCommission'; +export * from './MoneyMoneySalePrice'; +export * from './MoneyMoneySelf'; +export * from './MoneyMoneySellerPrice'; +export * from './MoneyMoneySplitCommission'; +export * from './MoneyMoneySupplyActAmount'; +export * from './MoneyMoneySupplyActAmountVat'; +export * from './MoneyMoneySupplyActAmountWithoutVat'; +export * from './MoneyMoneyTotalAccrued'; +export * from './MoneyMoneyTotalAmount'; +export * from './MoneyPostingMoney'; +export * from './NotificationV1CheckNotificationRequest'; +export * from './NotificationV1CheckNotificationResponse'; +export * from './NotificationV1CheckNotificationResponseError'; +export * from './NotificationV1CheckNotificationResponseErrorTypeEnum'; +export * from './NotificationV1DeleteNotificationRequest'; +export * from './NotificationV1EnableNotificationRequest'; +export * from './NotificationV1GetNotificationPushTypeListResponse'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationType'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum'; +export * from './NotificationV1NotificationListResponse'; +export * from './NotificationV1NotificationListResponseNotification'; +export * from './NotificationV1NotificationListResponseNotificationNotificationType'; +export * from './NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum'; +export * from './NotificationV1SetNotificationRequest'; +export * from './NotificationV1SetNotificationRequestTypeEnum'; +export * from './NotificationV1UpdateNotificationRequest'; +export * from './NotificationV1UpdateNotificationRequestTypeEnum'; +export * from './OperationItem'; +export * from './OperationPosting'; +export * from './OperationService'; +export * from './OrderCancelCheckResponsePosting'; +export * from './OrderCancelCheckResponsePostingGroup'; +export * from './OrderCreateRequestBuyer'; +export * from './OrderCreateRequestDelivery'; +export * from './OrderCreateRequestDeliveryPrice'; +export * from './OrderCreateRequestPrice'; +export * from './OrderCreateRequestRecipient'; +export * from './OrderCreateRequestSplit'; +export * from './OrderCreateRequestV2DeliverySchemaEnum'; +export * from './OrderDropOffWarehouse'; +export * from './OrderOrderStateEnum'; +export * from './OrderOrderTags'; +export * from './OrderSupply'; +export * from './OrderSupplyStateEnum'; +export * from './ParameterAutoStopActionReasonEnum'; +export * from './ParameterDiscountLevels'; +export * from './ParameterPickedSegment'; +export * from './PickedSegmentSegment'; +export * from './PickedSegmentSegmentTypeEnum'; +export * from './PointDeliveryMethodCoordinates'; +export * from './PolygonBindRequestpolygon'; +export * from './PolygonBindRequestwhLocation'; +export * from './PolygonListResponsePolygon'; +export * from './Polygonv1PolygonBindRequest'; +export * from './Polygonv1PolygonCreateRequest'; +export * from './Polygonv1PolygonCreateResponse'; +export * from './PostingAdditionalDataItem'; +export * from './PostingBooleanResponse'; +export * from './PostingCancelFbsPostingRequest'; +export * from './PostingCancelReason'; +export * from './PostingCancelReasonListResponse'; +export * from './PostingCancelReasonRequest'; +export * from './PostingCancelReasonResponse'; +export * from './PostingErrorTypeEnum'; +export * from './PostingExemplarInfoExemplarError'; +export * from './PostingFBSActCheckStatusResponseStatus'; +export * from './PostingFBSActCreateResponseAct'; +export * from './PostingFboPostingWithParams'; +export * from './PostingFbsPostingDeliveredRequest'; +export * from './PostingFbsPostingDeliveringRequest'; +export * from './PostingFbsPostingLastMileRequest'; +export * from './PostingFbsPostingMoveStatusResponse'; +export * from './PostingFbsPostingTrackingNumberSetRequest'; +export * from './PostingFbsTraceableSplitResponsePostingProduct'; +export * from './PostingFinancialDataProduct'; +export * from './PostingFinancialDataProductV2'; +export * from './PostingGetFboPostingListRequest'; +export * from './PostingGetFboPostingListRequestFilter'; +export * from './PostingGetFboPostingRequest'; +export * from './PostingGetFbsPostingByBarcodeRequest'; +export * from './PostingLegalInfo'; +export * from './PostingMarksResponseIssuedExemplar'; +export * from './PostingMarksResponseNonIssuedExemplar'; +export * from './PostingMovePostingRequest'; +export * from './PostingPostingAnalyticsData'; +export * from './PostingPostingFBSActCheckStatusRequest'; +export * from './PostingPostingFBSActCheckStatusResponse'; +export * from './PostingPostingFBSActCreateRequest'; +export * from './PostingPostingFBSActCreateResponse'; +export * from './PostingPostingFBSActGetContainerLabelsRequest'; +export * from './PostingPostingFBSActGetContainerLabelsResponse'; +export * from './PostingPostingFBSGetActRequest'; +export * from './PostingPostingFBSGetActResponse'; +export * from './PostingPostingFBSPackageLabelRequest'; +export * from './PostingPostingFBSPackageLabelResponse'; +export * from './PostingPostingFinancialData'; +export * from './PostingPostingProduct'; +export * from './PostingPostingProductCancelRequest'; +export * from './PostingPostingProductCancelResponse'; +export * from './PostingProductCancelRequestItem'; +export * from './PostingV1GetFbpPostingRequest'; +export * from './PostingV1GetFbpPostingResponse'; +export * from './PostingV1GetFbpPostingResponsePosting'; +export * from './PostingV1GetFbpPostingResponsePostingAnalyticsData'; +export * from './PostingV1GetFbpPostingResponsePostingCancellation'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialData'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProducts'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission'; +export * from './PostingV1GetFbpPostingResponsePostingProducts'; +export * from './PostingV1PostingFbpListRequest'; +export * from './PostingV1PostingFbpListRequestFilter'; +export * from './PostingV1PostingFbpListRequestSortDirEnum'; +export * from './PostingV1PostingFbpListResponse'; +export * from './PostingV1PostingFbpListResponsePostings'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialData'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProducts'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission'; +export * from './PostingV1PostingFbpListResponsePostingsProducts'; +export * from './PostingV2FboSinglePostingExternalOrder'; +export * from './PostingV2PostingDigitalListRequest'; +export * from './PostingV2PostingDigitalListRequestFilter'; +export * from './PostingV2PostingDigitalListRequestSortDirEnum'; +export * from './PostingV2PostingDigitalListRequestWith'; +export * from './PostingV2PostingDigitalListResponse'; +export * from './PostingV2PostingDigitalListResponsePostings'; +export * from './PostingV2PostingDigitalListResponsePostingsAdditionalData'; +export * from './PostingV2PostingDigitalListResponsePostingsAnalyticsData'; +export * from './PostingV2PostingDigitalListResponsePostingsCancellation'; +export * from './PostingV2PostingDigitalListResponsePostingsExternalOrder'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialData'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialDataProducts'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV2PostingDigitalListResponsePostingsLegalInfo'; +export * from './PostingV2PostingDigitalListResponsePostingsProducts'; +export * from './PostingV3FbsPostingContainerCargoTypeEnum'; +export * from './PostingV3FbsPostingDetailExternalOrder'; +export * from './PostingV3FbsPostingDetailSortingCenter'; +export * from './PostingV3FbsPostingSortingCenter'; +export * from './PostingV3PostingFboListRequest'; +export * from './PostingV3PostingFboListRequestFilter'; +export * from './PostingV3PostingFboListRequestSortDirEnum'; +export * from './PostingV3PostingFboListRequestWith'; +export * from './PostingV3PostingFboListResponse'; +export * from './PostingV3PostingFboListResponsePostings'; +export * from './PostingV3PostingFboListResponsePostingsAdditionalData'; +export * from './PostingV3PostingFboListResponsePostingsAnalyticsData'; +export * from './PostingV3PostingFboListResponsePostingsCancellation'; +export * from './PostingV3PostingFboListResponsePostingsExternalOrder'; +export * from './PostingV3PostingFboListResponsePostingsFinancialData'; +export * from './PostingV3PostingFboListResponsePostingsFinancialDataProducts'; +export * from './PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV3PostingFboListResponsePostingsLegalInfo'; +export * from './PostingV3PostingFboListResponsePostingsProducts'; +export * from './PostingV4PostingFbsListRequest'; +export * from './PostingV4PostingFbsListRequestFilter'; +export * from './PostingV4PostingFbsListRequestFilterLastChangedStatusDate'; +export * from './PostingV4PostingFbsListRequestSortDirEnum'; +export * from './PostingV4PostingFbsListRequestWith'; +export * from './PostingV4PostingFbsListResponse'; +export * from './PostingV4PostingFbsListResponsePostings'; +export * from './PostingV4PostingFbsListResponsePostingsAddressee'; +export * from './PostingV4PostingFbsListResponsePostingsAnalyticsData'; +export * from './PostingV4PostingFbsListResponsePostingsBarcodes'; +export * from './PostingV4PostingFbsListResponsePostingsCancellation'; +export * from './PostingV4PostingFbsListResponsePostingsContainer'; +export * from './PostingV4PostingFbsListResponsePostingsCustomer'; +export * from './PostingV4PostingFbsListResponsePostingsCustomerAddress'; +export * from './PostingV4PostingFbsListResponsePostingsDeliveryMethod'; +export * from './PostingV4PostingFbsListResponsePostingsExternalOrder'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialData'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialDataProducts'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV4PostingFbsListResponsePostingsLegalInfo'; +export * from './PostingV4PostingFbsListResponsePostingsOptional'; +export * from './PostingV4PostingFbsListResponsePostingsProducts'; +export * from './PostingV4PostingFbsListResponsePostingsRequirements'; +export * from './PostingV4PostingFbsListResponsePostingsSortingCenter'; +export * from './PostingV4PostingFbsListResponsePostingsTariffication'; +export * from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +export * from './PostingV4PostingFbsUnfulfilledListRequest'; +export * from './PostingV4PostingFbsUnfulfilledListRequestFilter'; +export * from './PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate'; +export * from './PostingV4PostingFbsUnfulfilledListRequestSortDirEnum'; +export * from './PostingV4PostingFbsUnfulfilledListRequestWith'; +export * from './PostingV4PostingFbsUnfulfilledListResponse'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostings'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainer'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsOptional'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsProducts'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep'; +export * from './PostinglistV3status'; +export * from './Postingv1GetCarriageAvailableListRequest'; +export * from './Postingv1GetCarriageAvailableListResponse'; +export * from './Postingv3FbsPostingWithParams'; +export * from './Postingv3FbsPostingWithParamsExamplars'; +export * from './Postingv3GetFbsPostingListRequest'; +export * from './Postingv3GetFbsPostingListRequestFilter'; +export * from './Postingv3GetFbsPostingRequest'; +export * from './Postingv3GetFbsPostingUnfulfilledListRequest'; +export * from './Postingv3GetFbsPostingUnfulfilledListRequestFilter'; +export * from './Postingv3GetFbsPostingUnfulfilledListResponse'; +export * from './Postingv3GetFbsPostingUnfulfilledListResponseResult'; +export * from './Postingv3PostingMultiBoxQtySetV3Request'; +export * from './Postingv3PostingMultiBoxQtySetV3Response'; +export * from './Postingv3PostingMultiBoxQtySetV3ResponseResult'; +export * from './PremiumScoresScore'; +export * from './PriceIndexesColorIndex'; +export * from './PriceIndexesIndexDataExternal'; +export * from './PriceIndexesIndexDataOzon'; +export * from './PriceIndexesIndexDataSelf'; +export * from './PriceIndexesIndexExternalData'; +export * from './PriceIndexesIndexOzonData'; +export * from './PriceIndexesIndexSelfData'; +export * from './ProductBooleanResponse'; +export * from './ProductCertificateProductsListResponseProduct'; +export * from './ProductCertificateUnbindResponseItem'; +export * from './ProductCertificationListResponseCertification'; +export * from './ProductCertificationListResponseCertificationResult'; +export * from './ProductCertificationListResponseCertificationv2'; +export * from './ProductCurrencyEnum'; +export * from './ProductExemplar'; +export * from './ProductGetImportProductsInfoRequest'; +export * from './ProductGetImportProductsInfoResponse'; +export * from './ProductGetImportProductsInfoResponseResult'; +export * from './ProductGetProductAttributesV3ResponseDictionaryValue'; +export * from './ProductGetProductAttributesV4ResponseAttribute'; +export * from './ProductGetProductInfoDescriptionRequest'; +export * from './ProductGetProductInfoDescriptionResponse'; +export * from './ProductGetProductInfoDescriptionResponseProduct'; +export * from './ProductGetProductInfoPricesV5ResponseItem'; +export * from './ProductImportProductsBySKURequest'; +export * from './ProductImportProductsBySKURequestItem'; +export * from './ProductImportProductsBySKUResponse'; +export * from './ProductImportProductsBySKUResponseResult'; +export * from './ProductImportProductsPricesRequest'; +export * from './ProductImportProductsPricesRequestPrice'; +export * from './ProductImportProductsPricesResponse'; +export * from './ProductImportProductsPricesResponseError'; +export * from './ProductImportProductsPricesResponseProcessResult'; +export * from './ProductInfoWarehouseStocksResponseStocks'; +export * from './ProductInfoWrongVolumeResponseWrongVolumeProduct'; +export * from './ProductPlacementPlacementZoneEnum'; +export * from './ProductProductArchiveRequest'; +export * from './ProductProductCertificateAccordanceTypesResponse'; +export * from './ProductProductCertificateAccordanceTypesResponseType'; +export * from './ProductProductCertificateBindRequest'; +export * from './ProductProductCertificateTypesResponse'; +export * from './ProductProductCertificateTypesResponseType'; +export * from './ProductProductCertificationListRequest'; +export * from './ProductProductCertificationListResponse'; +export * from './ProductProductInfoPicturesResponsePicture'; +export * from './ProductProductUnarchiveRequest'; +export * from './ProductUpdateOfferIdRequestUpdateOfferId'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboRequest'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboResponse'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboResponseProduct'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndex'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf'; +export * from './ProductV1ProductVisibilityInfoRequest'; +export * from './ProductV1ProductVisibilityInfoResponse'; +export * from './ProductV1ProductVisibilityInfoResponseItem'; +export * from './ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum'; +export * from './ProductV1ProductVisibilitySetRequest'; +export * from './ProductV1ProductVisibilitySetRequestItemPlacement'; +export * from './ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum'; +export * from './ProductV1ProductVisibilitySetResponse'; +export * from './ProductV1ProductVisibilitySetResponseItems'; +export * from './ProductV1ProductVisibilitySetResponseItemsErrors'; +export * from './ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum'; +export * from './ProductV1QuantInfoRequest'; +export * from './ProductV1QuantInfoResponse'; +export * from './ProductV1QuantInfoResponseResultItems'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfo'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuants'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts'; +export * from './ProductV1QuantListRequest'; +export * from './ProductV1QuantListResponse'; +export * from './ProductV1QuantListResponseProducts'; +export * from './ProductV1QuantListResponseProductsQuants'; +export * from './ProductV4GetUploadQuotaResponseOperationLimits'; +export * from './ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum'; +export * from './ProductsPostings'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsRequest'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsResponse'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsResponseResult'; +export * from './Productv1ProductImportPicturesRequest'; +export * from './Productv1ProductInfoPicturesResponse'; +export * from './Productv1ProductInfoPicturesResponseResult'; +export * from './Productv2DeleteProductsRequest'; +export * from './Productv2DeleteProductsResponse'; +export * from './Productv2GetProductListRequestFilterFilterVisibility'; +export * from './Productv2ProductsStocksRequest'; +export * from './Productv2ProductsStocksRequestStock'; +export * from './Productv2ProductsStocksResponse'; +export * from './Productv2ProductsStocksResponseError'; +export * from './Productv2ProductsStocksResponseResult'; +export * from './Productv3GetProductListRequest'; +export * from './Productv3GetProductListRequestFilter'; +export * from './Productv3GetProductListRequestFilterFilterVisibility'; +export * from './Productv3GetProductListResponse'; +export * from './Productv3GetProductListResponseItem'; +export * from './Productv3GetProductListResponseItemQuant'; +export * from './Productv3GetProductListResponseResult'; +export * from './Productv4Filter'; +export * from './Productv4GetProductAttributesV4Request'; +export * from './Productv4GetProductAttributesV4Response'; +export * from './Productv4GetProductAttributesV4ResponseResult'; +export * from './Productv5Filter'; +export * from './Productv5GetProductInfoPricesV5Request'; +export * from './Productv5GetProductInfoPricesV5Response'; +export * from './Productv5GetProductListRequestFilterFilterVisibility'; +export * from './ProtobufAny'; +export * from './ProtobufAnyV2DeliveryCheckout'; +export * from './QuestionV1GetQuestionListRequestSortDirEnum'; +export * from './QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum'; +export * from './RatingItemChange'; +export * from './RatingStatusEnum'; +export * from './RatingSummaryV1ResponseGroup'; +export * from './RatingSummaryV1ResponseLocalIndex'; +export * from './RatingValue'; +export * from './RatingValueCurrent'; +export * from './RatingValuePast'; +export * from './ReasonHumanText'; +export * from './ReceiptsSellerListResponseReceipt'; +export * from './ReceiptsSellerListResponseReceiptOperationTypeEnum'; +export * from './ReceiptsSellerListResponseReceiptTypeEnum'; +export * from './RejectedItemsReasonEnum'; +export * from './RejectedItemsRejectionReasonEnum'; +export * from './RejectedItemsRestrictions'; +export * from './RelatedPostingCancelReason'; +export * from './RelatedPostingCancelReasons'; +export * from './ReportCommonReportAdditionalDataItem'; +export * from './ReportCreateCompanyPostingsReportRequest'; +export * from './ReportCreateCompanyPostingsReportRequestFilter'; +export * from './ReportCreateCompanyProductsReportRequest'; +export * from './ReportCreateCompanyProductsReportRequestVisibility'; +export * from './ReportCreateDiscountedResponse'; +export * from './ReportCreateReportResponse'; +export * from './ReportListResponseResult'; +export * from './ReportMarkedProductsSalesCreateRequestDate'; +export * from './ReportReport'; +export * from './ReportReportInfoRequest'; +export * from './ReportReportInfoResponse'; +export * from './ReportReportListRequest'; +export * from './ReportReportListResponse'; +export * from './ReportReportinfo'; +export * from './ReportV1CreateCompanyFinanceRealizationPostingReportRequest'; +export * from './ReportV1CreateCompanyFinanceRealizationPostingReportResponse'; +export * from './RestrictionsReasonEnum'; +export * from './ResultCargo'; +export * from './ResultData'; +export * from './ResultDropOffWarehouseTimeslots'; +export * from './ResultError'; +export * from './ResultUnprintedPosting'; +export * from './ReturnSettingCourierDetails'; +export * from './ReturnSettingTransportCompanyDetails'; +export * from './ReturnsCompanyFbsInfoRequestPagination'; +export * from './ReturnsCompanyFbsInfoResponseDropOffPoints'; +export * from './ReturnsCompanyFbsInfoResponsePassInfo'; +export * from './ReturnsRfbsGetResponseReturns'; +export * from './ReturnsRfbsGetV2ResponseAvailableAction'; +export * from './ReturnsRfbsGetV2ResponseClientReturnMethodType'; +export * from './ReturnsRfbsGetV2ResponseRejectionReason'; +export * from './ReturnsRfbsGetV2ResponseReturnReason'; +export * from './ReturnsRfbsListResponseReturns'; +export * from './ReturnsSettingsUtilizationHistoryResponseHistory'; +export * from './ReturnsSettingsUtilizationInfoResponseUtilizationSettings'; +export * from './ReturnsSettingsUtilizationUpdateRequestUtilizationPrice'; +export * from './ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects'; +export * from './ReviewInfoResponsePhoto'; +export * from './ReviewInfoResponseVideo'; +export * from './ReviewListResponseReview'; +export * from './ReviewV1CommentListRequestFilter'; +export * from './ReviewV2ReviewChangeStatusV2Request'; +export * from './ReviewV2ReviewChangeStatusV2RequestStatusEnum'; +export * from './ReviewV2ReviewCommentDeleteV2Request'; +export * from './ReviewV2ReviewCountV2Response'; +export * from './ReviewV2ReviewInfoV2Request'; +export * from './ReviewV2ReviewInfoV2Response'; +export * from './ReviewV2ReviewInfoV2ResponseOrderStatusEnum'; +export * from './ReviewV2ReviewInfoV2ResponsePhoto'; +export * from './ReviewV2ReviewInfoV2ResponseStatusEnum'; +export * from './ReviewV2ReviewInfoV2ResponseVideo'; +export * from './ReviewV2ReviewListV2Request'; +export * from './ReviewV2ReviewListV2RequestFilters'; +export * from './ReviewV2ReviewListV2RequestFiltersOrderStatusEnum'; +export * from './ReviewV2ReviewListV2RequestFiltersStatusEnum'; +export * from './ReviewV2ReviewListV2RequestSortDirEnum'; +export * from './ReviewV2ReviewListV2Response'; +export * from './ReviewV2ReviewListV2ResponseReview'; +export * from './ReviewV2ReviewListV2ResponseReviewOrderStatusEnum'; +export * from './ReviewV2ReviewListV2ResponseReviewStatusEnum'; +export * from './RolesByTokenResponseRoles'; +export * from './RowItem'; +export * from './RowItemCommission'; +export * from './RowItemCommissionReturn'; +export * from './RowItemLegalEntityDocument'; +export * from './RowItemOrder'; +export * from './RpcStatus'; +export * from './RpcStatusV1FinanceRealizationPosting'; +export * from './RpcStatusV1PolygonBind'; +export * from './RpcStatusV1PolygonCreate'; +export * from './RpcStatusV2DeliveryCheckout'; +export * from './SearchAttributeValuesResponseValue'; +export * from './SearchQueriesTextRequestSortBy'; +export * from './SearchQueriesTextRequestSortDir'; +export * from './SellerActionsListRequestActionTypeEnum'; +export * from './SellerActionsListRequestStatusEnum'; +export * from './SellerActionsListResponseAction'; +export * from './SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel'; +export * from './SellerApiActivateProductV1Request'; +export * from './SellerApiGetSellerActionsV1Response'; +export * from './SellerApiGetSellerProductV1Request'; +export * from './SellerApiGetSellerProductV1Response'; +export * from './SellerApiGetSellerProductV1ResponseResult'; +export * from './SellerApiProduct'; +export * from './SellerApiProductIDsV1Request'; +export * from './SellerApiProductPrice'; +export * from './SellerApiProductV1Response'; +export * from './SellerApiProductV1ResponseDeactivate'; +export * from './SellerApiProductV1ResponseProduct'; +export * from './SellerApiProductV1ResponseProductDeactivate'; +export * from './SellerApiProductV1ResponseResult'; +export * from './SellerApiProductV1ResponseResultDeactivate'; +export * from './SellerInfoResponseCompany'; +export * from './SellerInfoResponseRating'; +export * from './SellerInfoResponseRatingTypeEnum'; +export * from './SellerInfoResponseSubscription'; +export * from './SellerInfoResponseSubscriptionTypeEnum'; +export * from './SellerOzonLogisticsInfoResponseAvailableSchemasEnum'; +export * from './SellerReturnsv1MoneyCommission'; +export * from './SellerReturnsv1MoneyProduct'; +export * from './SellerReturnsv1MoneyStorage'; +export * from './SellerReturnsv1MoneyUtilization'; +export * from './SellerReturnsv1MoneyWithoutCommission'; +export * from './SellerSellerAPIArrivalPassCreateRequest'; +export * from './SellerSellerAPIArrivalPassCreateRequestArrivalPass'; +export * from './SellerSellerAPIArrivalPassCreateResponse'; +export * from './SellerSellerAPIArrivalPassDeleteRequest'; +export * from './SellerSellerAPIArrivalPassUpdateRequest'; +export * from './SellerSellerAPIArrivalPassUpdateRequestArrivalPass'; +export * from './SellerServiceanalyticsDimension'; +export * from './SetPostingsResponseResult'; +export * from './SourceShipmentType'; +export * from './SplitDeliveryMethod'; +export * from './SplitItem'; +export * from './StatusEnum'; +export * from './StockShipmentType'; +export * from './StocksImportRequestItemStock'; +export * from './StocksImportResponseItemStatus'; +export * from './SupplierAvailableWarehousesResponseCapacity'; +export * from './SupplierAvailableWarehousesResponseResult'; +export * from './SupplierAvailableWarehousesResponseSchedule'; +export * from './SupplierAvailableWarehousesResponseWarehouse'; +export * from './SupplyCancellationAllowability'; +export * from './SupplyCargoInfo'; +export * from './SupplyCargoInfoTypeEnum'; +export * from './SupplyCheckCargoesPresentRule'; +export * from './SupplyCheckEditDeadlineExpireRule'; +export * from './SupplyCheckExpireDatePresentedRule'; +export * from './SupplyCheckIsValidDistributionRule'; +export * from './SupplyCheckPackageUnitWithDistributionRule'; +export * from './SupplyCheckPlacementZoneRule'; +export * from './SupplyContent'; +export * from './SupplyETTN'; +export * from './SupplyOrderCancelStatusResponseCancelOrderError'; +export * from './SupplyOrderCancelStatusResponseCancelSupplyResults'; +export * from './SupplyOrderCancelStatusResponseResult'; +export * from './SupplyOrderContentUpdateStatusResponseStatusEnum'; +export * from './SupplyOrderContentUpdateValidationResponseApprovedItems'; +export * from './SupplyOrderContentUpdateValidationResponseEditingErrorEnum'; +export * from './SupplyOrderContentUpdateValidationResponseRejectedItems'; +export * from './SupplyOrderContentUpdateValidationResponseValidatedAssortment'; +export * from './SupplyOrderDetailsResponseOrderStateEnum'; +export * from './SupplyOrderDetailsResponseOrderTags'; +export * from './SupplyOrderDetailsResponseSupply'; +export * from './SupplyOrderDetailsResponseTimeslotValue'; +export * from './SupplyOrderDetailsResponseVehicle'; +export * from './SupplyOrderDetailsResponseVehicleValue'; +export * from './SupplyOrderGetResponseOrder'; +export * from './SupplyOrderGetResponseTimeslotTZ'; +export * from './SupplyOrderListRequestFilter'; +export * from './SupplyOrderListRequestFilterStateEnum'; +export * from './SupplyOrderListRequestSortByEnum'; +export * from './SupplyOrderListRequestSortDirEnum'; +export * from './SupplyOrderV1SupplyOrderActAcceptRequest'; +export * from './SupplyOrderV1SupplyOrderActAcceptResponse'; +export * from './SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusRequest'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusResponse'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum'; +export * from './SupplyOrderV1SupplyOrderActProductGetRequest'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponse'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetRequest'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponse'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum'; +export * from './SupplyOrderV2SupplyOrderTimeslotListRequest'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponse'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone'; +export * from './SupplyOverdueReasonEnum'; +export * from './SupplyStateEnum'; +export * from './SupplyStorageWarehouse'; +export * from './SupplySupplyTags'; +export * from './SupplyTags'; +export * from './TaskAutoModeratedInfo'; +export * from './TimeslotCanNotSetTimeslotReasonEnum'; +export * from './TimeslotFromRangeTimeslotFilterTypeEnum'; +export * from './TimeslotTZTimeslot'; +export * from './TimeslotTZTimezoneInfo'; +export * from './TimeslotValueTimeslot'; +export * from './TimetableWorkingHours'; +export * from './TypeTimeOfDay'; +export * from './UploadPostingCodesRequestPostingLineExemplarInfo'; +export * from './UploadPostingCodesResponsePostingExemplarInfo'; +export * from './UtilizationDefectsMoney'; +export * from './UtilizationMoney'; +export * from './V1AddBarcodeRequest'; +export * from './V1AddBarcodeResponse'; +export * from './V1AddBarcodeResult'; +export * from './V1AddStrategyItemsRequest'; +export * from './V1AddStrategyItemsResponse'; +export * from './V1AddStrategyItemsResponseResult'; +export * from './V1AnalyticsManageStocksRequest'; +export * from './V1AnalyticsManageStocksRequestFilter'; +export * from './V1AnalyticsManageStocksResponse'; +export * from './V1AnalyticsManageStocksResponseItem'; +export * from './V1AnalyticsProductQueriesDetailsRequest'; +export * from './V1AnalyticsProductQueriesDetailsRequestSortBy'; +export * from './V1AnalyticsProductQueriesDetailsRequestSortDir'; +export * from './V1AnalyticsProductQueriesDetailsResponse'; +export * from './V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod'; +export * from './V1AnalyticsProductQueriesRequest'; +export * from './V1AnalyticsProductQueriesResponse'; +export * from './V1AnalyticsProductQueriesResponseItem'; +export * from './V1AnalyticsStocksRequest'; +export * from './V1AnalyticsStocksResponse'; +export * from './V1AnalyticsStocksResponseItem'; +export * from './V1AnalyticsTurnoverStocksRequest'; +export * from './V1AnalyticsTurnoverStocksResponse'; +export * from './V1AnalyticsTurnoverStocksResponseItem'; +export * from './V1ApproveDeclineDiscountTasksResponse'; +export * from './V1ApproveDeclineDiscountTasksResponseResult'; +export * from './V1ApproveDiscountTasksRequest'; +export * from './V1ApproveDiscountTasksRequestTask'; +export * from './V1ArchiveDeclineReason'; +export * from './V1ArchiveSkuSummary'; +export * from './V1ArchiveStatusEnum'; +export * from './V1ArchiveWarehouseFBSRequest'; +export * from './V1ArchiveWarehouseFBSResponse'; +export * from './V1AssemblyCarriagePostingListRequest'; +export * from './V1AssemblyCarriagePostingListRequestFilter'; +export * from './V1AssemblyCarriagePostingListResponse'; +export * from './V1AssemblyCarriagePostingListResponsePosting'; +export * from './V1AssemblyCarriagePostingListResponsePostingProduct'; +export * from './V1AssemblyCarriageProductListRequest'; +export * from './V1AssemblyCarriageProductListRequestFilter'; +export * from './V1AssemblyCarriageProductListResponse'; +export * from './V1AssemblyCarriageProductListResponseProduct'; +export * from './V1AssemblyFbsPostingListRequest'; +export * from './V1AssemblyFbsPostingListRequestFilter'; +export * from './V1AssemblyFbsPostingListRequestSortDirEnum'; +export * from './V1AssemblyFbsPostingListResponse'; +export * from './V1AssemblyFbsPostingListResponsePosting'; +export * from './V1AssemblyFbsPostingListResponsePostingProduct'; +export * from './V1AssemblyFbsProductListRequest'; +export * from './V1AssemblyFbsProductListRequestFilter'; +export * from './V1AssemblyFbsProductListRequestSortDirEnum'; +export * from './V1AssemblyFbsProductListResponse'; +export * from './V1Barcode'; +export * from './V1BundleItemErrorEnum'; +export * from './V1BundleItemShipmentType'; +export * from './V1CancelReasonListByOrderRequest'; +export * from './V1CancelReasonListByOrderResponse'; +export * from './V1CancelReasonListByOrderResponseReason'; +export * from './V1CancelReasonListByOrderResponseReasonFbo'; +export * from './V1CancelReasonListByPostingRequest'; +export * from './V1CancelReasonListByPostingResponse'; +export * from './V1CancelReasonListByPostingResponseReason'; +export * from './V1CancelReasonListResponse'; +export * from './V1CancelReasonListResponseFbo'; +export * from './V1CancellationState'; +export * from './V1CancellationStateStatus'; +export * from './V1CargoesCreateErrors'; +export * from './V1CargoesCreateRequest'; +export * from './V1CargoesCreateRequestCargo'; +export * from './V1CargoesCreateRequestCargoValue'; +export * from './V1CargoesCreateResponse'; +export * from './V1CargoesDeleteRequest'; +export * from './V1CargoesDeleteResponse'; +export * from './V1CargoesDeleteResponseError'; +export * from './V1CargoesDeleteResponseErrorCargoErrorReason'; +export * from './V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum'; +export * from './V1CargoesDeleteResponseErrorSupplyErrorReasonEnum'; +export * from './V1CargoesDeleteStatusRequest'; +export * from './V1CargoesDeleteStatusResponse'; +export * from './V1CargoesDeleteStatusResponseError'; +export * from './V1CargoesDeleteStatusResponseErrorCargoErrorReason'; +export * from './V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum'; +export * from './V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum'; +export * from './V1CargoesGetRequest'; +export * from './V1CargoesGetResponse'; +export * from './V1CargoesLabelCreateErrors'; +export * from './V1CargoesLabelCreateErrorsErrorReason'; +export * from './V1CargoesLabelCreateRequest'; +export * from './V1CargoesLabelCreateRequestCargo'; +export * from './V1CargoesLabelCreateResponse'; +export * from './V1CargoesLabelGetRequest'; +export * from './V1CargoesLabelGetResponse'; +export * from './V1CargoesLabelGetResponseResult'; +export * from './V1CargoesLabelGetResponseStatus'; +export * from './V1CargoesRulesGetRequest'; +export * from './V1CargoesRulesGetResponse'; +export * from './V1CarriageActDiscrepancyPDFRequest'; +export * from './V1CarriageActDiscrepancyPDFResponse'; +export * from './V1CarriageApproveRequest'; +export * from './V1CarriageCancelRequest'; +export * from './V1CarriageCancelResponse'; +export * from './V1CarriageCourierContactGetRequest'; +export * from './V1CarriageCourierContactGetResponse'; +export * from './V1CarriageCourierContactGetResponseContact'; +export * from './V1CarriageCourierContactSetRequest'; +export * from './V1CarriageCreateRequest'; +export * from './V1CarriageCreateResponse'; +export * from './V1CarriageDeliveryListRequest'; +export * from './V1CarriageDeliveryListResponse'; +export * from './V1CarriageDeliveryListResponseResult'; +export * from './V1CarriageDeliveryListResponseResultCarriages'; +export * from './V1CarriageDeliveryListResponseResultErrors'; +export * from './V1CarriageEttnStatusRequest'; +export * from './V1CarriageEttnStatusResponse'; +export * from './V1Certificate'; +export * from './V1ClusterType'; +export * from './V1CommentCreateRequest'; +export * from './V1CommentCreateResponse'; +export * from './V1CommentDeleteRequest'; +export * from './V1CommentListRequest'; +export * from './V1CommentListResponse'; +export * from './V1CommentSort'; +export * from './V1Competitor'; +export * from './V1CreateDocumentB2BSalesJSONReportRequest'; +export * from './V1CreateDocumentB2BSalesJSONReportResponse'; +export * from './V1CreateDocumentB2BSalesReportRequest'; +export * from './V1CreateLabelBatchRequest'; +export * from './V1CreateLabelBatchResponse'; +export * from './V1CreateLabelBatchResponseResult'; +export * from './V1CreateMutualSettlementReportRequest'; +export * from './V1CreatePlacementByProductsReportRequest'; +export * from './V1CreatePlacementByProductsReportResponse'; +export * from './V1CreatePlacementBySuppliesReportRequest'; +export * from './V1CreatePlacementBySuppliesReportResponse'; +export * from './V1CreatePricingStrategyRequest'; +export * from './V1CreatePricingStrategyResponse'; +export * from './V1CreatePricingStrategyResponseResult'; +export * from './V1CreateStockByWarehouseReportRequest'; +export * from './V1CreateType'; +export * from './V1CreateWarehouseFBSRequest'; +export * from './V1CreateWarehouseFBSResponse'; +export * from './V1DayOfWeek'; +export * from './V1DeclineDiscountTasksRequest'; +export * from './V1DeclineDiscountTasksRequestTask'; +export * from './V1DeleteStrategyItemsResponse'; +export * from './V1DeleteStrategyItemsResponseResult'; +export * from './V1DeliveryCheckRequest'; +export * from './V1DeliveryCheckResponse'; +export * from './V1DeliveryCheckoutRequest'; +export * from './V1DeliveryCheckoutRequestDeliveryType'; +export * from './V1DeliveryCheckoutRequestItem'; +export * from './V1DeliveryCheckoutResponse'; +export * from './V1DeliveryDetailsDirectDetails'; +export * from './V1DeliveryDetailsPickUpDetails'; +export * from './V1DeliveryMapRequest'; +export * from './V1DeliveryMapRequestViewport'; +export * from './V1DeliveryMapResponse'; +export * from './V1DeliveryPointInfoRequest'; +export * from './V1DeliveryPointInfoResponse'; +export * from './V1DeliveryPointInfoResponsePoint'; +export * from './V1DeliveryPointListResponse'; +export * from './V1DeliveryPointListResponsePoint'; +export * from './V1DiscountTaskStatus'; +export * from './V1DraftClusterListRequest'; +export * from './V1DraftClusterListResponse'; +export * from './V1DraftClusterListResponseCluster'; +export * from './V1DraftClusterListResponseWarehouse'; +export * from './V1DraftCreateCommonResponse'; +export * from './V1DraftCrossdockCreateRequest'; +export * from './V1DraftCrossdockCreateRequestClusterInfo'; +export * from './V1DraftCrossdockCreateRequestClusterInfoItem'; +export * from './V1DraftCrossdockCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfo'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum'; +export * from './V1DraftDirectCreateRequest'; +export * from './V1DraftDirectCreateRequestClusterInfo'; +export * from './V1DraftDirectCreateRequestClusterInfoItem'; +export * from './V1DraftDirectCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftGetWarehouseFboListRequest'; +export * from './V1DraftGetWarehouseFboListResponse'; +export * from './V1DraftMultiClusterCreateRequest'; +export * from './V1DraftMultiClusterCreateRequestClusterInfo'; +export * from './V1DraftMultiClusterCreateRequestClusterInfoItem'; +export * from './V1DraftMultiClusterCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfo'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum'; +export * from './V1DraftStatusEnum'; +export * from './V1FbpArchiveGetRequest'; +export * from './V1FbpArchiveGetResponse'; +export * from './V1FbpArchiveListRequest'; +export * from './V1FbpArchiveListResponse'; +export * from './V1FbpArchiveListResponseItem'; +export * from './V1FbpAvailableTimeslotListRequest'; +export * from './V1FbpAvailableTimeslotListResponse'; +export * from './V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason'; +export * from './V1FbpCheckActStateRequest'; +export * from './V1FbpCheckActStateResponse'; +export * from './V1FbpCheckActStateResponseStatus'; +export * from './V1FbpCheckConsignmentNoteStateRequest'; +export * from './V1FbpCheckConsignmentNoteStateResponse'; +export * from './V1FbpCreateActRequest'; +export * from './V1FbpCreateActResponse'; +export * from './V1FbpCreateConsignmentNoteRequest'; +export * from './V1FbpCreateConsignmentNoteResponse'; +export * from './V1FbpCreateLabelRequest'; +export * from './V1FbpCreateLabelResponse'; +export * from './V1FbpDraftDirectCreateRequest'; +export * from './V1FbpDraftDirectCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectCreateResponse'; +export * from './V1FbpDraftDirectDeleteRequest'; +export * from './V1FbpDraftDirectDeleteResponse'; +export * from './V1FbpDraftDirectGetTimeslotRequest'; +export * from './V1FbpDraftDirectGetTimeslotResponse'; +export * from './V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason'; +export * from './V1FbpDraftDirectGetTimeslotResponseTimeslot'; +export * from './V1FbpDraftDirectProductValidateRequest'; +export * from './V1FbpDraftDirectProductValidateRequestSkuItem'; +export * from './V1FbpDraftDirectProductValidateResponse'; +export * from './V1FbpDraftDirectProductValidateResponseApprovedItem'; +export * from './V1FbpDraftDirectProductValidateResponseRejectedItem'; +export * from './V1FbpDraftDirectRegistrateRequest'; +export * from './V1FbpDraftDirectRegistrateResponse'; +export * from './V1FbpDraftDirectRegistrateResponseRegistrationError'; +export * from './V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftDirectSellerDlvCreateRequest'; +export * from './V1FbpDraftDirectSellerDlvCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectSellerDlvCreateResponse'; +export * from './V1FbpDraftDirectSellerDlvEditRequest'; +export * from './V1FbpDraftDirectSellerDlvEditResponse'; +export * from './V1FbpDraftDirectTimeslotEditRequest'; +export * from './V1FbpDraftDirectTimeslotEditResponse'; +export * from './V1FbpDraftDirectTimeslotEditResponseReserveFailureType'; +export * from './V1FbpDraftDirectTplDlvCreateRequest'; +export * from './V1FbpDraftDirectTplDlvCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectTplDlvCreateResponse'; +export * from './V1FbpDraftDirectTplDlvEditRequest'; +export * from './V1FbpDraftDirectTplDlvEditResponse'; +export * from './V1FbpDraftDropOffCreateRequest'; +export * from './V1FbpDraftDropOffCreateRequestDeliveryDetails'; +export * from './V1FbpDraftDropOffCreateResponse'; +export * from './V1FbpDraftDropOffDeleteRequest'; +export * from './V1FbpDraftDropOffDeleteResponse'; +export * from './V1FbpDraftDropOffDlvEditRequest'; +export * from './V1FbpDraftDropOffDlvEditResponse'; +export * from './V1FbpDraftDropOffPointListRequest'; +export * from './V1FbpDraftDropOffPointListResponse'; +export * from './V1FbpDraftDropOffPointTimetableRequest'; +export * from './V1FbpDraftDropOffPointTimetableResponse'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendar'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening'; +export * from './V1FbpDraftDropOffProductValidateRequest'; +export * from './V1FbpDraftDropOffProductValidateRequestSkuItem'; +export * from './V1FbpDraftDropOffProductValidateResponse'; +export * from './V1FbpDraftDropOffProductValidateResponseApprovedItem'; +export * from './V1FbpDraftDropOffProductValidateResponseRejectedItem'; +export * from './V1FbpDraftDropOffProvinceListRequest'; +export * from './V1FbpDraftDropOffProvinceListResponse'; +export * from './V1FbpDraftDropOffRegistrateRequest'; +export * from './V1FbpDraftDropOffRegistrateResponse'; +export * from './V1FbpDraftDropOffRegistrateResponseRegistrationError'; +export * from './V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftGetRequest'; +export * from './V1FbpDraftGetResponse'; +export * from './V1FbpDraftListRequest'; +export * from './V1FbpDraftListResponse'; +export * from './V1FbpDraftListResponseItem'; +export * from './V1FbpDraftPickUpDeleteRequest'; +export * from './V1FbpDraftPickUpDeleteResponse'; +export * from './V1FbpDraftPickUpProductValidateRequest'; +export * from './V1FbpDraftPickUpProductValidateRequestSkuItem'; +export * from './V1FbpDraftPickUpProductValidateResponse'; +export * from './V1FbpDraftPickUpProductValidateResponseApprovedItem'; +export * from './V1FbpDraftPickUpProductValidateResponseRejectedItem'; +export * from './V1FbpDraftPickUpRegistrateRequest'; +export * from './V1FbpDraftPickUpRegistrateResponse'; +export * from './V1FbpDraftPickUpRegistrateResponseRegistrationError'; +export * from './V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftPickupCreateRequest'; +export * from './V1FbpDraftPickupCreateRequestDeliveryDetails'; +export * from './V1FbpDraftPickupCreateResponse'; +export * from './V1FbpDraftPickupDlvEditRequest'; +export * from './V1FbpDraftPickupDlvEditRequestDeliveryDetails'; +export * from './V1FbpDraftPickupDlvEditResponse'; +export * from './V1FbpEditTimeslotRequest'; +export * from './V1FbpEditTimeslotResponse'; +export * from './V1FbpEditTimeslotResponseReserveFailureType'; +export * from './V1FbpGetLabelRequest'; +export * from './V1FbpGetLabelResponse'; +export * from './V1FbpOrderDirectCancelRequest'; +export * from './V1FbpOrderDirectCancelResponse'; +export * from './V1FbpOrderDirectSellerDlvEditRequest'; +export * from './V1FbpOrderDirectSellerDlvEditResponse'; +export * from './V1FbpOrderDropOffCancelRequest'; +export * from './V1FbpOrderDropOffCancelResponse'; +export * from './V1FbpOrderDropOffDlvEditRequest'; +export * from './V1FbpOrderDropOffDlvEditResponse'; +export * from './V1FbpOrderDropOffTimetableRequest'; +export * from './V1FbpOrderDropOffTimetableResponse'; +export * from './V1FbpOrderDropOffTimetableResponseCalendar'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItem'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak'; +export * from './V1FbpOrderGetRequest'; +export * from './V1FbpOrderGetResponse'; +export * from './V1FbpOrderListRequest'; +export * from './V1FbpOrderListResponse'; +export * from './V1FbpOrderListResponseItem'; +export * from './V1FbpOrderPickUpCancelRequest'; +export * from './V1FbpOrderPickUpCancelResponse'; +export * from './V1FbpOrderPickUpDlvEditRequest'; +export * from './V1FbpOrderPickUpDlvEditRequestPickUpDetails'; +export * from './V1FbpOrderPickUpDlvEditResponse'; +export * from './V1FbpWarehouseListResponse'; +export * from './V1FbsPostingProductExemplarUpdateRequest'; +export * from './V1GenerateBarcodeRequest'; +export * from './V1GenerateBarcodeResponse'; +export * from './V1GenerateBarcodeResult'; +export * from './V1GetAttributeValuesRequest'; +export * from './V1GetAttributeValuesResponse'; +export * from './V1GetAttributeValuesResponseDictionaryValue'; +export * from './V1GetAttributesRequest'; +export * from './V1GetAttributesResponse'; +export * from './V1GetAttributesResponseAttribute'; +export * from './V1GetCompensationReportRequest'; +export * from './V1GetCompetitorsRequest'; +export * from './V1GetCompetitorsResponse'; +export * from './V1GetDecompensationReportRequest'; +export * from './V1GetDeliveryMethodReturnSettingsV1Request'; +export * from './V1GetDeliveryMethodReturnSettingsV1Response'; +export * from './V1GetDiscountTaskListRequest'; +export * from './V1GetDiscountTaskListResponse'; +export * from './V1GetDiscountTaskListResponseTask'; +export * from './V1GetEtgbRequest'; +export * from './V1GetEtgbResponse'; +export * from './V1GetFBSRatingIndexInfoV1Response'; +export * from './V1GetFinanceBalanceV1Request'; +export * from './V1GetFinanceBalanceV1Response'; +export * from './V1GetFinanceBalanceV1ResponseAccruedMoney'; +export * from './V1GetFinanceBalanceV1ResponseClosingBalanceMoney'; +export * from './V1GetFinanceBalanceV1ResponseFeeMoney'; +export * from './V1GetFinanceBalanceV1ResponseOpeningBalanceMoney'; +export * from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +export * from './V1GetFinanceBalanceV1ResponsePaymentsMoney'; +export * from './V1GetFinanceBalanceV1ResponseReturnsMoney'; +export * from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +export * from './V1GetFinanceBalanceV1ResponseSalesMoney'; +export * from './V1GetFinanceBalanceV1ResponseServicesMoney'; +export * from './V1GetFinanceProductsBuyoutRequest'; +export * from './V1GetFinanceProductsBuyoutResponse'; +export * from './V1GetLabelBatchRequest'; +export * from './V1GetLabelBatchResponse'; +export * from './V1GetLabelBatchResponseResult'; +export * from './V1GetProductInfoDiscountedRequest'; +export * from './V1GetProductInfoDiscountedResponse'; +export * from './V1GetProductInfoDiscountedResponseItem'; +export * from './V1GetProductInfoSubscriptionRequest'; +export * from './V1GetProductInfoSubscriptionResponse'; +export * from './V1GetProductInfoSubscriptionResponseResult'; +export * from './V1GetProductPlacementZoneInfoRequest'; +export * from './V1GetProductPlacementZoneInfoResponse'; +export * from './V1GetProductRatingBySkuRequest'; +export * from './V1GetProductRatingBySkuResponse'; +export * from './V1GetProductStairwayDiscountByQuantityRequest'; +export * from './V1GetProductStairwayDiscountByQuantityResponse'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairways'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep'; +export * from './V1GetRealizationReportByDayRequest'; +export * from './V1GetRealizationReportPostingRequest'; +export * from './V1GetRealizationReportPostingResponse'; +export * from './V1GetRealizationReportPostingResponseRow'; +export * from './V1GetReceiptRequest'; +export * from './V1GetReceiptResponse'; +export * from './V1GetRestrictionsRequest'; +export * from './V1GetRestrictionsResponse'; +export * from './V1GetReturnsListRequest'; +export * from './V1GetReturnsListResponse'; +export * from './V1GetStrategyIDsByItemIDsResponse'; +export * from './V1GetStrategyIDsByItemIDsResponseResult'; +export * from './V1GetStrategyItemInfoRequest'; +export * from './V1GetStrategyItemInfoResponse'; +export * from './V1GetStrategyItemInfoResponseResult'; +export * from './V1GetStrategyItemsResponse'; +export * from './V1GetStrategyItemsResponseResult'; +export * from './V1GetStrategyListRequest'; +export * from './V1GetStrategyListResponse'; +export * from './V1GetStrategyResponse'; +export * from './V1GetStrategyResponseResult'; +export * from './V1GetSupplierReturnsSummaryReportRequest'; +export * from './V1GetSupplierReturnsSummaryReportResponse'; +export * from './V1GetSupplierReturnsSummaryReportResponseRow'; +export * from './V1GetSupplyOrderBundleRequest'; +export * from './V1GetSupplyOrderBundleResponse'; +export * from './V1GetSupplyOrderTimeslotStatusRequest'; +export * from './V1GetSupplyOrderTimeslotStatusResponse'; +export * from './V1GetSupplyOrderTimeslotStatusResponseStatus'; +export * from './V1GetSupplyOrderTimeslotsRequest'; +export * from './V1GetSupplyOrderTimeslotsResponse'; +export * from './V1GetSupplyReturnsSummaryReportRequest'; +export * from './V1GetSupplyReturnsSummaryReportResponse'; +export * from './V1GetSupplyReturnsSummaryReportResponseRow'; +export * from './V1GetTreeRequest'; +export * from './V1GetTreeResponse'; +export * from './V1GetTreeResponseItem'; +export * from './V1GetWarehouseFBSOperationStatusRequest'; +export * from './V1GetWarehouseFBSOperationStatusResponse'; +export * from './V1GiveoutBarcodeResetResponse'; +export * from './V1GiveoutGetBarcodeResponse'; +export * from './V1GiveoutGetPDFResponse'; +export * from './V1GiveoutGetPNGResponse'; +export * from './V1GiveoutInfoRequest'; +export * from './V1GiveoutInfoResponse'; +export * from './V1GiveoutIsEnabledResponse'; +export * from './V1GiveoutListRequest'; +export * from './V1GiveoutListResponse'; +export * from './V1InvoiceDeleteRequest'; +export * from './V1InvoiceDeleteResponse'; +export * from './V1InvoiceFileUploadRequest'; +export * from './V1InvoiceFileUploadResponse'; +export * from './V1InvoiceGetRequest'; +export * from './V1ItemError'; +export * from './V1ItemIDsRequest'; +export * from './V1ItemResponse'; +export * from './V1ItemSfboAttribute'; +export * from './V1ItemSortField'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseRequest'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponse'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum'; +export * from './V1ListDropOffPointsForUpdateFBSWarehouseRequest'; +export * from './V1ListDropOffPointsForUpdateFBSWarehouseResponse'; +export * from './V1ListFBSRatingIndexPostingsV1Request'; +export * from './V1ListFBSRatingIndexPostingsV1Response'; +export * from './V1ListPostingCodesRequest'; +export * from './V1ListPostingCodesResponse'; +export * from './V1Money'; +export * from './V1OrderAttentionTypeEnum'; +export * from './V1OrderCancelCheckRequest'; +export * from './V1OrderCancelCheckResponse'; +export * from './V1OrderCancelRequest'; +export * from './V1OrderCancelResponse'; +export * from './V1OrderCancelStatusRequest'; +export * from './V1OrderCancelStatusResponse'; +export * from './V1OrderCreateRequest'; +export * from './V1OrderCreateResponse'; +export * from './V1OrderDraftValidationError'; +export * from './V1OrderDraftValidationErrorErrorType'; +export * from './V1OrderErrorTypeEnum'; +export * from './V1OrderState'; +export * from './V1OrderStatusEnum'; +export * from './V1OrderValidationError'; +export * from './V1OrderValidationErrorErrorType'; +export * from './V1PolygonDeleteRequest'; +export * from './V1PolygonListRequest'; +export * from './V1PolygonListResponse'; +export * from './V1PolygonTimeCoordinatesUpdateRequest'; +export * from './V1PolygonTimeSetRequest'; +export * from './V1PostingCancelRequest'; +export * from './V1PostingCancelResponse'; +export * from './V1PostingCancelStatusRequest'; +export * from './V1PostingCancelStatusResponse'; +export * from './V1PostingFBSPickupCodeVerifyRequest'; +export * from './V1PostingFBSPickupCodeVerifyResponse'; +export * from './V1PostingFbsProductTraceableAttributeRequest'; +export * from './V1PostingFbsProductTraceableAttributeResponse'; +export * from './V1PostingFbsProductTraceableAttributeResponseProduct'; +export * from './V1PostingFbsSplitRequest'; +export * from './V1PostingFbsSplitRequestPosting'; +export * from './V1PostingFbsSplitResponse'; +export * from './V1PostingFbsSplitResponsePosting'; +export * from './V1PostingFbsSplitResponsePostingParent'; +export * from './V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval'; +export * from './V1PostingFbsTimeslotChangeRestrictionsRequest'; +export * from './V1PostingFbsTimeslotChangeRestrictionsResponse'; +export * from './V1PostingFbsTimeslotSetNewTimeslot'; +export * from './V1PostingFbsTimeslotSetRequest'; +export * from './V1PostingFbsTimeslotSetResponse'; +export * from './V1PostingFbsTraceableSplitRequest'; +export * from './V1PostingFbsTraceableSplitResponse'; +export * from './V1PostingFbsTraceableSplitResponsePosting'; +export * from './V1PostingMarksRequest'; +export * from './V1PostingMarksResponse'; +export * from './V1PostingUnpaidLegalProductListRequest'; +export * from './V1PostingUnpaidLegalProductListResponse'; +export * from './V1PostingUnpaidLegalProductListResponseProducts'; +export * from './V1PremiumScores'; +export * from './V1ProductActionTimerStatusRequest'; +export * from './V1ProductActionTimerStatusResponse'; +export * from './V1ProductActionTimerStatusResponseStatuses'; +export * from './V1ProductActionTimerUpdateRequest'; +export * from './V1ProductCertificateDeleteRequest'; +export * from './V1ProductCertificateDeleteResponse'; +export * from './V1ProductCertificateDeleteResponseResult'; +export * from './V1ProductCertificateInfoRequest'; +export * from './V1ProductCertificateInfoResponse'; +export * from './V1ProductCertificateListRequest'; +export * from './V1ProductCertificateListResponse'; +export * from './V1ProductCertificateListResponseResult'; +export * from './V1ProductCertificateProductStatusListResponse'; +export * from './V1ProductCertificateProductsListRequest'; +export * from './V1ProductCertificateProductsListResponse'; +export * from './V1ProductCertificateProductsListResponseResult'; +export * from './V1ProductCertificateRejectionReasonsListResponse'; +export * from './V1ProductCertificateStatusListResponse'; +export * from './V1ProductCertificateUnbindRequest'; +export * from './V1ProductCertificateUnbindResponse'; +export * from './V1ProductFbsSplit'; +export * from './V1ProductGetRelatedSKURequest'; +export * from './V1ProductGetRelatedSKUResponse'; +export * from './V1ProductGetRelatedSKUResponseError'; +export * from './V1ProductGetRelatedSKUResponseItem'; +export * from './V1ProductInfoWarehouseStocksRequest'; +export * from './V1ProductInfoWarehouseStocksResponse'; +export * from './V1ProductInfoWrongVolumeRequest'; +export * from './V1ProductInfoWrongVolumeResponse'; +export * from './V1ProductPricesDetailsRequest'; +export * from './V1ProductPricesDetailsResponse'; +export * from './V1ProductPricesDetailsResponsePrice'; +export * from './V1ProductUpdateAttributesRequest'; +export * from './V1ProductUpdateAttributesRequestAttribute'; +export * from './V1ProductUpdateAttributesRequestItem'; +export * from './V1ProductUpdateAttributesRequestValue'; +export * from './V1ProductUpdateAttributesResponse'; +export * from './V1ProductUpdateDiscountRequest'; +export * from './V1ProductUpdateDiscountResponse'; +export * from './V1ProductUpdateOfferIdRequest'; +export * from './V1ProductUpdateOfferIdResponse'; +export * from './V1ProductUpdateOfferIdResponseError'; +export * from './V1QuestionAnswerCreateDefault'; +export * from './V1QuestionAnswerCreateRequest'; +export * from './V1QuestionAnswerCreateResponse'; +export * from './V1QuestionAnswerDeleteRequest'; +export * from './V1QuestionAnswerListRequest'; +export * from './V1QuestionAnswerListResponse'; +export * from './V1QuestionAnswerListResponseAnswers'; +export * from './V1QuestionChangeStatusRequest'; +export * from './V1QuestionCountResponse'; +export * from './V1QuestionInfoRequest'; +export * from './V1QuestionInfoResponse'; +export * from './V1QuestionListRequest'; +export * from './V1QuestionListRequestFilter'; +export * from './V1QuestionListResponse'; +export * from './V1QuestionListResponseQuestions'; +export * from './V1QuestionTopSkuRequest'; +export * from './V1QuestionTopSkuResponse'; +export * from './V1Rating'; +export * from './V1RatingHistoryV1Request'; +export * from './V1RatingHistoryV1Response'; +export * from './V1RatingItem'; +export * from './V1RatingStatus'; +export * from './V1RatingSummaryV1Response'; +export * from './V1ReceiptsSellerListRequest'; +export * from './V1ReceiptsSellerListResponse'; +export * from './V1ReportMarkedProductsSalesCreateRequest'; +export * from './V1Restriction'; +export * from './V1ReturnsCompanyFbsInfoRequest'; +export * from './V1ReturnsCompanyFbsInfoRequestFilter'; +export * from './V1ReturnsCompanyFbsInfoResponse'; +export * from './V1ReturnsRfbsActionSetRequest'; +export * from './V1ReturnsSettingsUtilizationHistoryResponse'; +export * from './V1ReturnsSettingsUtilizationInfoResponse'; +export * from './V1ReturnsSettingsUtilizationUpdateRequest'; +export * from './V1ReviewChangeStatusRequest'; +export * from './V1ReviewCountResponse'; +export * from './V1ReviewInfoRequest'; +export * from './V1ReviewInfoResponse'; +export * from './V1ReviewListRequest'; +export * from './V1ReviewListResponse'; +export * from './V1RolesByTokenResponse'; +export * from './V1SearchAttributeValuesRequest'; +export * from './V1SearchAttributeValuesResponse'; +export * from './V1SearchQueriesTextRequest'; +export * from './V1SearchQueriesTextResponse'; +export * from './V1SearchQueriesTextResponseSearchQuery'; +export * from './V1SearchQueriesTopRequest'; +export * from './V1SearchQueriesTopResponse'; +export * from './V1SearchQueriesTopResponseSearchQuery'; +export * from './V1SellerActionsArchiveRequest'; +export * from './V1SellerActionsChangeActivityRequest'; +export * from './V1SellerActionsCreateDiscountRequest'; +export * from './V1SellerActionsCreateDiscountResponse'; +export * from './V1SellerActionsCreateDiscountWithConditionRequest'; +export * from './V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateDiscountWithConditionResponse'; +export * from './V1SellerActionsCreateInstallmentRequest'; +export * from './V1SellerActionsCreateInstallmentResponse'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequest'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateMultiLevelDiscountResponse'; +export * from './V1SellerActionsCreateVoucherRequest'; +export * from './V1SellerActionsCreateVoucherRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateVoucherRequestVoucherParameter'; +export * from './V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum'; +export * from './V1SellerActionsCreateVoucherResponse'; +export * from './V1SellerActionsListRequest'; +export * from './V1SellerActionsListResponse'; +export * from './V1SellerActionsProductsAddRequest'; +export * from './V1SellerActionsProductsAddRequestProduct'; +export * from './V1SellerActionsProductsCandidatesRequest'; +export * from './V1SellerActionsProductsCandidatesResponse'; +export * from './V1SellerActionsProductsCandidatesResponseProduct'; +export * from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +export * from './V1SellerActionsProductsDeleteRequest'; +export * from './V1SellerActionsProductsListRequest'; +export * from './V1SellerActionsProductsListResponse'; +export * from './V1SellerActionsProductsListResponseProduct'; +export * from './V1SellerActionsUpdateDiscountRequest'; +export * from './V1SellerActionsUpdateDiscountRequestActionParameters'; +export * from './V1SellerActionsUpdateDiscountWithConditionRequest'; +export * from './V1SellerActionsUpdateDiscountWithConditionRequestActionParameters'; +export * from './V1SellerActionsUpdateInstallmentRequest'; +export * from './V1SellerActionsUpdateInstallmentRequestActionParameters'; +export * from './V1SellerActionsUpdateMultiLevelDiscountRequest'; +export * from './V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters'; +export * from './V1SellerActionsUpdateVoucherRequest'; +export * from './V1SellerActionsUpdateVoucherRequestActionParameters'; +export * from './V1SellerActionsVoucherGetRequest'; +export * from './V1SellerActionsVoucherGetResponse'; +export * from './V1SellerInfoResponse'; +export * from './V1SellerOzonLogisticsInfoResponse'; +export * from './V1SetPostingCutoffRequest'; +export * from './V1SetPostingCutoffResponse'; +export * from './V1SetPostingsRequest'; +export * from './V1SetPostingsResponse'; +export * from './V1SetProductStairwayDiscountByQuantityRequest'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairways'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep'; +export * from './V1SetProductStairwayDiscountByQuantityResponse'; +export * from './V1SetProductStairwayDiscountByQuantityResponseError'; +export * from './V1SetVehicleError'; +export * from './V1StatusCodeNamePair'; +export * from './V1StatusCodeNamePairRejection'; +export * from './V1StatusCodeNamePairStatuses'; +export * from './V1StocksImportRequest'; +export * from './V1StocksImportResponse'; +export * from './V1StrategyRequest'; +export * from './V1SupplierAvailableWarehousesResponse'; +export * from './V1SupplyOrderCancelRequest'; +export * from './V1SupplyOrderCancelResponse'; +export * from './V1SupplyOrderCancelStatusRequest'; +export * from './V1SupplyOrderCancelStatusResponse'; +export * from './V1SupplyOrderCancelStatusResponseStatus'; +export * from './V1SupplyOrderContentUpdateRequest'; +export * from './V1SupplyOrderContentUpdateRequestItem'; +export * from './V1SupplyOrderContentUpdateResponse'; +export * from './V1SupplyOrderContentUpdateResponseErrorEnum'; +export * from './V1SupplyOrderContentUpdateStatusRequest'; +export * from './V1SupplyOrderContentUpdateStatusResponse'; +export * from './V1SupplyOrderContentUpdateStatusResponseErrorEnum'; +export * from './V1SupplyOrderContentUpdateValidationRequest'; +export * from './V1SupplyOrderContentUpdateValidationResponse'; +export * from './V1SupplyOrderDetailsRequest'; +export * from './V1SupplyOrderDetailsResponse'; +export * from './V1SupplyOrderDetailsResponseTimeslot'; +export * from './V1SupplyOrderPassCreateRequest'; +export * from './V1SupplyOrderPassCreateResponse'; +export * from './V1SupplyOrderPassStatusRequest'; +export * from './V1SupplyOrderPassStatusResponse'; +export * from './V1SupplyOrderPassStatusResponseStatus'; +export * from './V1SupplyOrderStatusCounterResponse'; +export * from './V1SupplyOrderStatusCounterResponseItem'; +export * from './V1SupplyOrderTimeslot'; +export * from './V1TimeRangeReturnDate'; +export * from './V1TimeRangeStorageTariffication'; +export * from './V1TimeRangeVisualStatus'; +export * from './V1Timezone'; +export * from './V1UnarchiveWarehouseFBSRequest'; +export * from './V1UnarchiveWarehouseFBSResponse'; +export * from './V1UpdatePricingStrategyRequest'; +export * from './V1UpdateStatusStrategyRequest'; +export * from './V1UpdateSupplyOrderTimeslotRequest'; +export * from './V1UpdateSupplyOrderTimeslotResponse'; +export * from './V1UpdateTimeslotError'; +export * from './V1UpdateWarehouseFBSFirstMileRequest'; +export * from './V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum'; +export * from './V1UpdateWarehouseFBSFirstMileResponse'; +export * from './V1UpdateWarehouseFBSRequest'; +export * from './V1UpdateWarehouseFBSRequestAddressCoordinates'; +export * from './V1UpdateWarehouseFBSRequestOptions'; +export * from './V1UpdateWarehouseFBSRequestWorkingDaysEnum'; +export * from './V1UpdateWarehouseFBSResponse'; +export * from './V1UploadPostingCodesRequest'; +export * from './V1UploadPostingCodesResponse'; +export * from './V1UploadReceiptRequestTypeEnum'; +export * from './V1UploadReceiptResponse'; +export * from './V1VehicleInfo'; +export * from './V1WarehouseERFBSAggregatorCreateRequest'; +export * from './V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSAggregatorCreateRequestHolidays'; +export * from './V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSAggregatorCreateRequestWorkingDays'; +export * from './V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSAggregatorCreateResponse'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequest'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestHolidays'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSNonIntegratedCreateResponse'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse'; +export * from './V1WarehouseERFBSUpdateRequest'; +export * from './V1WarehouseERFBSUpdateRequestHolidays'; +export * from './V1WarehouseERFBSUpdateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSUpdateRequestWorkingDays'; +export * from './V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSUpdateResponse'; +export * from './V1WarehouseFBSCreateReturnPointListRequest'; +export * from './V1WarehouseFBSCreateReturnPointListRequestCoordinates'; +export * from './V1WarehouseFBSCreateReturnPointListRequestSearch'; +export * from './V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum'; +export * from './V1WarehouseFBSCreateReturnPointListResponse'; +export * from './V1WarehouseFBSCreateReturnPointListResponseCoordinates'; +export * from './V1WarehouseFBSCreateReturnPointListResponseReturnPoint'; +export * from './V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSCreateReturnPointListResponseWorkingDays'; +export * from './V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFBSReturnMileInfoRequest'; +export * from './V1WarehouseFBSReturnMileInfoResponse'; +export * from './V1WarehouseFBSReturnMileInfoResponseCoordinates'; +export * from './V1WarehouseFBSReturnMileInfoResponseReturnPoint'; +export * from './V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSReturnMileInfoResponseWorkingDays'; +export * from './V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListRequest'; +export * from './V1WarehouseFBSUpdateReturnPointListRequestSearch'; +export * from './V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListResponse'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseCoordinates'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseReturnPoint'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDays'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFboSellerListResponse'; +export * from './V1WarehouseFboSellerListResponseWarehouse'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListRequest'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListResponse'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListRequest'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListResponse'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsPickUpCourierCancelRequest'; +export * from './V1WarehouseFbsPickUpCourierCreateRequest'; +export * from './V1WarehouseFbsPickUpHistoryListRequest'; +export * from './V1WarehouseFbsPickUpHistoryListRequestFilter'; +export * from './V1WarehouseFbsPickUpHistoryListResponse'; +export * from './V1WarehouseFbsPickUpHistoryListResponseResult'; +export * from './V1WarehouseFbsPickUpPlanningListResponse'; +export * from './V1WarehouseFbsPickUpPlanningListResponseResult'; +export * from './V1WarehouseFbsReturnMileCheckRequest'; +export * from './V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum'; +export * from './V1WarehouseFbsReturnMileCheckResponse'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListRequest'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListResponse'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListRequest'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListResponse'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot'; +export * from './V1WarehouseInvalidProductsGetRequest'; +export * from './V1WarehouseInvalidProductsGetResponse'; +export * from './V1WarehouseListRequest'; +export * from './V1WarehouseListRequestWith'; +export * from './V1WarehouseOZONListRequest'; +export * from './V1WarehouseOZONListRequestWarehouseTypeEnum'; +export * from './V1WarehouseOZONListResponse'; +export * from './V1WarehouseOZONListResponseWarehouse'; +export * from './V1WarehouseWithInvalidProductsResponse'; +export * from './V1fbpDeliveryDetails'; +export * from './V1fbpTimeslot'; +export * from './V2AdditionalDataItem'; +export * from './V2CancellationInitiatorEnum'; +export * from './V2CancellationStateEnum'; +export * from './V2CancellationStateEnumFilters'; +export * from './V2CargoesCreateErrors'; +export * from './V2CargoesCreateInfoV2Request'; +export * from './V2CargoesCreateInfoV2Response'; +export * from './V2CarriageDeliveryListV2Request'; +export * from './V2CarriageDeliveryListV2Response'; +export * from './V2ChatReadResponse'; +export * from './V2ConditionalCancellationMoveV2Request'; +export * from './V2CreateLabelBatchResponse'; +export * from './V2CreateLabelBatchResponseResult'; +export * from './V2CreateLabelBatchResponseResultTasks'; +export * from './V2DeliveryCheckoutRequestV2DeliverySchemaEnum'; +export * from './V2DeliveryMethodListV2Request'; +export * from './V2DeliveryMethodListV2Response'; +export * from './V2DraftClusterListResponse'; +export * from './V2DraftClusterListResponseResult'; +export * from './V2DraftCreateInfoRequest'; +export * from './V2DraftCreateInfoResponse'; +export * from './V2DraftCreateInfoResponseStatusEnum'; +export * from './V2DraftSupplyCreateRequest'; +export * from './V2DraftSupplyCreateRequestSelectedClusterWarehouse'; +export * from './V2DraftSupplyCreateRequestTimeslot'; +export * from './V2DraftSupplyCreateResponse'; +export * from './V2DraftSupplyCreateResponseErrorReasonEnum'; +export * from './V2DraftSupplyCreateStatusRequest'; +export * from './V2DraftSupplyCreateStatusResponse'; +export * from './V2DraftSupplyCreateStatusResponseErrorReasonEnum'; +export * from './V2DraftSupplyCreateStatusResponseStatusEnum'; +export * from './V2DraftTimeslotInfoRequest'; +export * from './V2DraftTimeslotInfoRequestSelectedClusterWarehouse'; +export * from './V2DraftTimeslotInfoResponse'; +export * from './V2DraftTimeslotInfoResponseErrorReasonEnum'; +export * from './V2FboPosting'; +export * from './V2FboPostingListResponse'; +export * from './V2FboPostingResponse'; +export * from './V2FboPostingV2'; +export * from './V2FboSinglePostingLegalInfo'; +export * from './V2FbsPosting'; +export * from './V2FbsPostingProduct'; +export * from './V2FbsPostingProductCountryListRequest'; +export * from './V2FbsPostingProductCountryListResponse'; +export * from './V2FbsPostingProductCountryListResponseResult'; +export * from './V2FbsPostingProductCountrySetRequest'; +export * from './V2FbsPostingProductCountrySetResponse'; +export * from './V2FbsPostingResponse'; +export * from './V2GetConditionalCancellationListV2Request'; +export * from './V2GetConditionalCancellationListV2Response'; +export * from './V2GetDiscountTaskListV2Request'; +export * from './V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum'; +export * from './V2GetDiscountTaskListV2Response'; +export * from './V2GetProductInfoStocksByWarehouseFbsRequestV2'; +export * from './V2GetProductInfoStocksByWarehouseFbsResponseV2'; +export * from './V2GetProductInfoStocksByWarehouseFbsResponseV2Product'; +export * from './V2GetRealizationReportRequestV2'; +export * from './V2GetRealizationReportResponseV2'; +export * from './V2HsCode'; +export * from './V2InvoiceCreateOrUpdateV2Request'; +export * from './V2InvoiceCreateOrUpdateV2Response'; +export * from './V2InvoiceGetV2Response'; +export * from './V2MovePostingToAwaitingDeliveryRequest'; +export * from './V2PolygonBindRequest'; +export * from './V2PostingFBSActGetPostingsRequest'; +export * from './V2PostingFBSActGetPostingsResponse'; +export * from './V2PostingFBSActGetPostingsResult'; +export * from './V2PostingFBSActGetProducts'; +export * from './V2PostingFBSActListFilter'; +export * from './V2PostingFBSActListRelatedDocs'; +export * from './V2PostingFBSActListRelatedDocsActOfAcceptance'; +export * from './V2PostingFBSActListRelatedDocsActOfExcess'; +export * from './V2PostingFBSActListRelatedDocsActOfMismatch'; +export * from './V2PostingFBSActListRequest'; +export * from './V2PostingFBSActListResponse'; +export * from './V2PostingFBSActListResult'; +export * from './V2PostingFBSDigitalActCheckStatusRequest'; +export * from './V2PostingFBSDigitalActCheckStatusResponse'; +export * from './V2PostingFBSGetBarcodeRequest'; +export * from './V2PostingFBSGetBarcodeResponse'; +export * from './V2PostingFBSGetBarcodeTextResponse'; +export * from './V2PostingFBSGetDigitalActRequest'; +export * from './V2PostingFBSGetDigitalActResponse'; +export * from './V2PostingFinancialDataFBO'; +export * from './V2PostingFinancialDataFBOV2'; +export * from './V2PostingProduct'; +export * from './V2Product'; +export * from './V2ProductCertificateAccordanceTypesResponse'; +export * from './V2ProductCertificateAccordanceTypesResponseResult'; +export * from './V2ProductCertificateAccordanceTypesResponseType'; +export * from './V2ProductCertificationListRequest'; +export * from './V2ProductCertificationListResponse'; +export * from './V2ProductInfoPicturesRequest'; +export * from './V2ProductInfoPicturesResponse'; +export * from './V2ProductInfoPicturesResponseError'; +export * from './V2ProductInfoPicturesResponseItem'; +export * from './V2ReportReturnsCreateRequest'; +export * from './V2ReportReturnsCreateRequestFilter'; +export * from './V2ReportReturnsCreateResponse'; +export * from './V2ReturnsRfbsFilter'; +export * from './V2ReturnsRfbsGetRequest'; +export * from './V2ReturnsRfbsGetResponse'; +export * from './V2ReturnsRfbsGetV2ResponseState'; +export * from './V2ReturnsRfbsListRequest'; +export * from './V2ReturnsRfbsListResponse'; +export * from './V2ReturnsRfbsListV2ResponseState'; +export * from './V2WarehouseListV2Request'; +export * from './V2WarehouseListV2Response'; +export * from './V3AdditionalDataItem'; +export * from './V3Address'; +export * from './V3Addressee'; +export * from './V3AddresseeFbsLists'; +export * from './V3Barcodes'; +export * from './V3Cancellation'; +export * from './V3ChatDetailsInfo'; +export * from './V3ChatHistoryRequest'; +export * from './V3ChatHistoryResponse'; +export * from './V3ChatInfo'; +export * from './V3ChatList'; +export * from './V3ChatListRequestFilter'; +export * from './V3ChatListRequestFilterChatStatus'; +export * from './V3ChatListResponse'; +export * from './V3ChatMessage'; +export * from './V3Customer'; +export * from './V3CustomerFbsLists'; +export * from './V3DeliveryMethod'; +export * from './V3Dimensions'; +export * from './V3FbsPosting'; +export * from './V3FbsPostingAnalyticsData'; +export * from './V3FbsPostingDetail'; +export * from './V3FbsPostingDetailOptional'; +export * from './V3FbsPostingDetailRelatedPostings'; +export * from './V3FbsPostingExemplarProductV3'; +export * from './V3FbsPostingProduct'; +export * from './V3FbsPostingProductExemplarInfoV3'; +export * from './V3FbsPostingProductExemplarsV3'; +export * from './V3FbsPostingRequirementsV3'; +export * from './V3FbsTariffication'; +export * from './V3FinanceCashFlowStatementListRequest'; +export * from './V3FinanceCashFlowStatementListResponse'; +export * from './V3FinanceCashFlowStatementListResponsePeriod'; +export * from './V3FinanceCashFlowStatementListResponseResult'; +export * from './V3GetFbsPostingListResponseV3'; +export * from './V3GetFbsPostingListResponseV3Result'; +export * from './V3GetFbsPostingResponseV3'; +export * from './V3GetProductInfoListRequest'; +export * from './V3GetProductInfoListResponse'; +export * from './V3GetProductInfoListResponseItem'; +export * from './V3GetProductInfoListResponsePromotion'; +export * from './V3GetProductInfoListResponsePromotionType'; +export * from './V3ImportProductsRequest'; +export * from './V3ImportProductsRequestAttribute'; +export * from './V3ImportProductsRequestComplexAttribute'; +export * from './V3ImportProductsRequestDictionaryValue'; +export * from './V3ImportProductsRequestItem'; +export * from './V3ImportProductsResponse'; +export * from './V3ImportProductsResponseResult'; +export * from './V3PostingFinancialData'; +export * from './V3PostingProductDetail'; +export * from './V3ServiceType'; +export * from './V3SupplyOrderGetRequest'; +export * from './V3SupplyOrderGetResponse'; +export * from './V3SupplyOrderListRequest'; +export * from './V3SupplyOrderListResponse'; +export * from './V3TimeRange'; +export * from './V3User'; +export * from './V4FbsPostingShipPackageV4Request'; +export * from './V4FbsPostingShipPackageV4RequestProduct'; +export * from './V4FbsPostingShipPackageV4Response'; +export * from './V4GetProductAttributesResponseModelInfo'; +export * from './V4GetProductAttributesResponsePdf'; +export * from './V4GetProductInfoStocksRequest'; +export * from './V4GetProductInfoStocksRequestFilter'; +export * from './V4GetProductInfoStocksResponse'; +export * from './V4GetProductInfoStocksResponseItem'; +export * from './V4GetUploadQuotaResponse'; +export * from './V4Visibility'; +export * from './V5FbsPostingProductExemplarStatusV5Request'; +export * from './V5FbsPostingProductExemplarStatusV5Response'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProduct'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplar'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark'; +export * from './V5FbsPostingProductExemplarValidateV5Request'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProduct'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProductExemplar'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark'; +export * from './V5FbsPostingProductExemplarValidateV5Response'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProduct'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplar'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark'; +export * from './V6FbsPostingProductExemplarCreateOrGetV6Request'; +export * from './V6FbsPostingProductExemplarCreateOrGetV6Response'; +export * from './V6FbsPostingProductExemplarSetV6Request'; +export * from './ValidationErrorCharacteristicEnum'; +export * from './ValidationResultItem'; +export * from './ValidationResultItemStateEnum'; +export * from './ValidationResultValidationError'; +export * from './ValidationResultValidationErrorTypeEnum'; +export * from './ValueCargoType'; +export * from './ValueItem'; +export * from './ValueTimezoneInfo'; +export * from './VehicleCanNotSetVehicleReasonEnum'; +export * from './WarehouseAddress'; +export * from './WarehouseAddressCoordinates'; +export * from './WarehouseAddressInfo'; +export * from './WarehouseAvailabilityStatus'; +export * from './WarehouseCarriageLabelTypeEnum'; +export * from './WarehouseContacts'; +export * from './WarehouseDeliveryMethodListRequest'; +export * from './WarehouseDeliveryMethodListResponse'; +export * from './WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts'; +export * from './WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings'; +export * from './WarehouseFbsPickUpHistoryListResponseHistoryEntity'; +export * from './WarehouseFbsPickUpPlanningListResponseResultWarehouse'; +export * from './WarehouseFirstMile'; +export * from './WarehouseFirstMileType'; +export * from './WarehouseInvalidProductsGetResponseValidationResult'; +export * from './WarehouseListResponseWarehouse'; +export * from './WarehouseListV2ResponseWarehouse'; +export * from './WarehouseOZONListResponseWarehouseWarehouseTypeEnum'; +export * from './WarehouseStorageWarehouse'; +export * from './WarehouseSupplyTagEnum'; +export * from './WarehouseTimetable'; +export * from './WarehouseV1WarehouseRfbsPauseRequest'; +export * from './WarehouseV1WarehouseRfbsPauseResponse'; +export * from './WarehouseV1WarehouseRfbsUnpauseRequest'; +export * from './WarehouseV1WarehouseRfbsUnpauseResponse'; +export * from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint'; +export * from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates'; +export * from './WarehouseWarehouseListResponse'; +export * from './WarehouseWorkingDay'; +export * from './WarehouseWorkingDayDayEnum'; +export * from './WarehouseWorkingDaysEnum'; +export * from './WorkingHoursPeriods'; diff --git a/dist/esm/models/index.js b/dist/esm/models/index.js new file mode 100644 index 0000000..ab7df59 --- /dev/null +++ b/dist/esm/models/index.js @@ -0,0 +1,2124 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './ActionParameter'; +export * from './ActionParameterDiscountTypeEnum'; +export * from './ActionParameterVoucherParameter'; +export * from './ActionParameterVoucherParameterTypeEnum'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesRequest'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesResponse'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesResponseProducts'; +export * from './ActionsV1ActionsAutoAddProductsDeleteRequest'; +export * from './ActionsV1ActionsAutoAddProductsDeleteResponse'; +export * from './ActionsV1ActionsAutoAddProductsListRequest'; +export * from './ActionsV1ActionsAutoAddProductsListResponse'; +export * from './ActionsV1ActionsAutoAddProductsListResponseProducts'; +export * from './ActionsV1ActionsAutoAddProductsUpdateRequest'; +export * from './ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponse'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseRejected'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum'; +export * from './AddStrategyItemsResponseError'; +export * from './AnalyticsAnalyticsGetDataRequest'; +export * from './AnalyticsAnalyticsGetDataResponse'; +export * from './AnalyticsDataRow'; +export * from './AnalyticsDataRowDimension'; +export * from './AnalyticsFilter'; +export * from './AnalyticsGetDataResponseResult'; +export * from './AnalyticsGetStockOnWarehousesRequestWarehouseType'; +export * from './AnalyticsProductQueriesDetailsResponseQuery'; +export * from './AnalyticsProductQueriesRequestSortBy'; +export * from './AnalyticsProductQueriesRequestSortDir'; +export * from './AnalyticsProductQueriesResponseAnalyticsPeriod'; +export * from './AnalyticsSorting'; +export * from './AnalyticsStockOnWarehouseRequest'; +export * from './AnalyticsStockOnWarehouseResponse'; +export * from './AnalyticsStockOnWarehouseResponseResult'; +export * from './AnalyticsStockOnWarehouseResultRows'; +export * from './ApproveDeclineDiscountTasksResponseFailDetail'; +export * from './ArrivalPassListRequestFilter'; +export * from './ArrivalpassArrivalPassCreateRequest'; +export * from './ArrivalpassArrivalPassCreateRequestArrivalPass'; +export * from './ArrivalpassArrivalPassCreateResponse'; +export * from './ArrivalpassArrivalPassDeleteRequest'; +export * from './ArrivalpassArrivalPassListRequest'; +export * from './ArrivalpassArrivalPassListResponse'; +export * from './ArrivalpassArrivalPassListResponseArrivalPass'; +export * from './ArrivalpassArrivalPassUpdateRequest'; +export * from './ArrivalpassArrivalPassUpdateRequestArrivalPass'; +export * from './AssemblyFbsProductListResponseProducts'; +export * from './AvailabilityReason'; +export * from './AvailabilityStatusInvalidReasonEnum'; +export * from './AvailabilityStatusStateEnum'; +export * from './BrandBrandCompanyCertificationListRequest'; +export * from './BrandBrandCompanyCertificationListResponse'; +export * from './BrandCompanyCertificationListResponseBrandCertification'; +export * from './BrandCompanyCertificationListResponseBrandCertificationResult'; +export * from './CancelSupplyResultsCancelSupplyError'; +export * from './CancellationAllowabilityCanNotCancelSupplyReasonEnum'; +export * from './CancellationErrorCode'; +export * from './CancellationStateCancellationError'; +export * from './CargoInfoContentTypeEnum'; +export * from './CargoInfoPlacementZoneTypeEnum'; +export * from './CargoInfoTrackingInfo'; +export * from './CargoInfoTrackingInfoStatusEnum'; +export * from './CargoInfoTrackingInfoTypeEnum'; +export * from './CargoValue'; +export * from './CargoesCreateErrorsErrorReason'; +export * from './CargoesCreateErrorsItemValidation'; +export * from './CargoesCreateErrorsReasonEnum'; +export * from './CargoesCreateInfoV2ResponseResult'; +export * from './CargoesCreateInfoV2ResponseStatusEnum'; +export * from './CargoesCreateV2ErrorsItemValidation'; +export * from './CargoesDeleteStatusResponseStatusEnum'; +export * from './CargoesGetResponseSupply'; +export * from './CargoesPresentRuleCargoCountPerType'; +export * from './CargoesPresentRuleCargoCountPerTypeEnum'; +export * from './CargoesRulesGetResponseSupplyCheck'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateRequest'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateResponse'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusRequest'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponse'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseResult'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum'; +export * from './CargoesV1CargoesLabelTransportCreateRequest'; +export * from './CargoesV1CargoesLabelTransportCreateResponse'; +export * from './CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportStatusRequest'; +export * from './CargoesV1CargoesLabelTransportStatusResponse'; +export * from './CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportStatusResponseResult'; +export * from './CargoesV1CargoesLabelTransportStatusResponseStatusEnum'; +export * from './CargoesV1CargoesSuppliesGetRequest'; +export * from './CargoesV1CargoesSuppliesGetResponse'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportActivateRequest'; +export * from './CargoesV1CargoesTransportActivateResponse'; +export * from './CargoesV1CargoesTransportActivateStatusRequest'; +export * from './CargoesV1CargoesTransportActivateStatusResponse'; +export * from './CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportActivateStatusResponseStatusEnum'; +export * from './CargoesV1CargoesTransportBindRequest'; +export * from './CargoesV1CargoesTransportBindRequestTransportCargoBind'; +export * from './CargoesV1CargoesTransportBindResponse'; +export * from './CargoesV1CargoesTransportBindResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportBindStatusRequest'; +export * from './CargoesV1CargoesTransportBindStatusResponse'; +export * from './CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportBindStatusResponseStatusEnum'; +export * from './CargoesV1CargoesTransportCreateRequest'; +export * from './CargoesV1CargoesTransportCreateRequestTransportCargoes'; +export * from './CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportCreateResponse'; +export * from './CargoesV1CargoesTransportCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportCreateStatusRequest'; +export * from './CargoesV1CargoesTransportCreateStatusResponse'; +export * from './CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResult'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportCreateStatusResponseStatusEnum'; +export * from './CargoesV2CargoesDeleteRequest'; +export * from './CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum'; +export * from './CargoesV2CargoesDeleteResponse'; +export * from './CargoesV2CargoesDeleteResponseErrors'; +export * from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusRequest'; +export * from './CargoesV2CargoesDeleteStatusResponse'; +export * from './CargoesV2CargoesDeleteStatusResponseErrors'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseStatusEnum'; +export * from './CargoesV2CargoesGetRequest'; +export * from './CargoesV2CargoesGetRequestSupplies'; +export * from './CargoesV2CargoesGetResponse'; +export * from './CargoesV2CargoesGetResponseSupplies'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoes'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesLimits'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoes'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum'; +export * from './CarriageCarriageGetRequest'; +export * from './CarriageCarriageGetResponse'; +export * from './CarriageCarriageGetResponseCancelAvailability'; +export * from './CarriageDeliveryListV2RequestFilter'; +export * from './CarriageDeliveryListV2ResponseDeliveryMethod'; +export * from './CarriagePickupFee'; +export * from './Carriagev1CarriageContainerApproveRequest'; +export * from './Carriagev1CarriageContainerApproveResponse'; +export * from './Carriagev1CarriageContainerApproveResponseErrorContainers'; +export * from './Carriagev1CarriageContainerCancelRequest'; +export * from './Carriagev1CarriageContainerCancelResponse'; +export * from './Carriagev1CarriageContainerCancelResponseErrorContainers'; +export * from './Carriagev1CarriageContainerCreateRequest'; +export * from './Carriagev1CarriageContainerCreateResponse'; +export * from './Carriagev1CarriageContainerDocumentGetRequest'; +export * from './Carriagev1CarriageContainerDocumentGetResponse'; +export * from './Carriagev1CarriageContainerFillRequest'; +export * from './Carriagev1CarriageContainerFillResponse'; +export * from './Carriagev1CarriageContainerFillResponseErrorPostings'; +export * from './Carriagev1CarriageContainerGetRequest'; +export * from './Carriagev1CarriageContainerGetResponse'; +export * from './Carriagev1CarriageContainerGetResponsePostings'; +export * from './Carriagev1CarriageContainerGetResponsePostingsProducts'; +export * from './Carriagev1CarriageContainerLabelGetRequest'; +export * from './Carriagev1CarriageContainerLabelGetResponse'; +export * from './Carriagev1CarriageContainerLabelGetResponseContent'; +export * from './Carriagev1CarriageContainerLabelGetResponseErrorContainers'; +export * from './Carriagev1CarriageContainerListRequest'; +export * from './Carriagev1CarriageContainerListRequestFilter'; +export * from './Carriagev1CarriageContainerListRequestSortDirEnum'; +export * from './Carriagev1CarriageContainerListResponse'; +export * from './Carriagev1CarriageContainerListResponseContainers'; +export * from './Carriagev1CarriageContainerPlaceIntoRequest'; +export * from './Carriagev1CarriageContainerPlaceIntoResponse'; +export * from './Carriagev1CarriageContainerPlaceIntoResponseErrorContainers'; +export * from './Carriagev1CarriageContainerRemoveFromRequest'; +export * from './Carriagev1CarriageContainerRemoveFromResponse'; +export * from './Carriagev1CarriageContainerRemoveFromResponseErrorContainers'; +export * from './Carriagev1CarriageContainerRemovePostingsRequest'; +export * from './Carriagev1CarriageContainerRemovePostingsResponse'; +export * from './Carriagev1CarriageContainerRemovePostingsResponseErrorPostings'; +export * from './Carriagev1CarriageContainerStatusGetRequest'; +export * from './Carriagev1CarriageContainerStatusGetResponse'; +export * from './Carriagev1CarriageContainerStatusGetResponseContainers'; +export * from './Carriagev1CarriageContainerTaskInfoRequest'; +export * from './Carriagev1CarriageContainerTaskInfoResponse'; +export * from './CertificationV2ProductCertificateCreateRequest'; +export * from './CertificationV2ProductCertificateCreateRequestParams'; +export * from './CertificationV2ProductCertificateCreateResponse'; +export * from './CertificationV2ProductCertificateCreateResponseParam'; +export * from './CertificationV2ProductCertificateCreateResponseParamStateEnum'; +export * from './CertificationV2ProductCertificateCreateResponseStatusEnum'; +export * from './CertificationV2ProductCertificateOptionsResponse'; +export * from './CertificationV2ProductCertificateOptionsResponseOption'; +export * from './CertificationV2ProductCertificateParamsRequest'; +export * from './CertificationV2ProductCertificateParamsRequestParams'; +export * from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +export * from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +export * from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +export * from './CertificationV2ProductCertificateParamsRequestParamsFile'; +export * from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +export * from './CertificationV2ProductCertificateParamsResponse'; +export * from './CertificationV2ProductCertificateParamsResponseParam'; +export * from './ChatChatSendFileRequest'; +export * from './ChatChatSendFileResponse'; +export * from './ChatChatSendMessageRequest'; +export * from './ChatChatSendMessageResponse'; +export * from './ChatChatStartRequest'; +export * from './ChatChatStartResponse'; +export * from './ChatHistoryRequestFilter'; +export * from './ChatInfoChatStatusEnum'; +export * from './ChatInfoChatTypeEnum'; +export * from './ChatMessageContext'; +export * from './ChatMessageModerateImageStatus'; +export * from './ChatRead'; +export * from './ChatStartResponseResult'; +export * from './ClientTimeslotDateRange'; +export * from './ClusterWarehouse'; +export * from './CommentListResponseComment'; +export * from './CommonCreateReportResponse'; +export * from './CompanyTaxSystemEnum'; +export * from './ContentCanNotEditSupplyContentReasonEnum'; +export * from './CourierCoordinates'; +export * from './CreateCompanyPostingsReportRequestWith'; +export * from './CreateDocumentB2BSalesJSONReportResponseBuyer'; +export * from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfo'; +export * from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType'; +export * from './CreateDocumentB2BSalesJSONReportResponseSellerInfo'; +export * from './CreateReportResponse'; +export * from './CreateReportResponseCode'; +export * from './CreateReportResponseCodeNoDeadline'; +export * from './CreateWarehouseFBSRequestAddressCoordinates'; +export * from './CreateWarehouseFBSRequestFirstMileTypeEnum'; +export * from './CreateWarehouseFBSRequestOptions'; +export * from './CreateWarehouseFBSRequestWorkingDaysEnum'; +export * from './CreatedAt'; +export * from './DataFulfillment'; +export * from './DataMacrolocalCluster'; +export * from './DeleteProductsRequestProduct'; +export * from './DeleteProductsResponseDeleteStatus'; +export * from './DeliveryCheckoutResponseSplit'; +export * from './DeliveryCheckoutResponseSplitCommissions'; +export * from './DeliveryCheckoutResponseSplitDeliveryMethod'; +export * from './DeliveryCheckoutResponseSplitItem'; +export * from './DeliveryCheckoutResponseUnavailableReasonEnum'; +export * from './DeliveryCheckoutResponseV2SplitDeliverySchemaEnum'; +export * from './DeliveryCourier'; +export * from './DeliveryDetailsDropOffPointDetails'; +export * from './DeliveryDetailsSupplyType'; +export * from './DeliveryMapRequestViewportCoordinatesLeft'; +export * from './DeliveryMapRequestViewportCoordinatesRight'; +export * from './DeliveryMapResponseCluster'; +export * from './DeliveryMapResponseClusterCoordinates'; +export * from './DeliveryMapResponseClusterCoordinatesLeft'; +export * from './DeliveryMapResponseClusterCoordinatesRight'; +export * from './DeliveryMapResponseClusterViewport'; +export * from './DeliveryMethodAddressDetails'; +export * from './DeliveryMethodCarriage'; +export * from './DeliveryMethodDateRange'; +export * from './DeliveryMethodDeliveryPolygon'; +export * from './DeliveryMethodDeliveryTypeEnum'; +export * from './DeliveryMethodError'; +export * from './DeliveryMethodHolidays'; +export * from './DeliveryMethodListRequestFilter'; +export * from './DeliveryMethodListResponseDeliveryMethod'; +export * from './DeliveryMethodListV2RequestFilter'; +export * from './DeliveryMethodListV2RequestSortDirEnum'; +export * from './DeliveryMethodListV2ResponseDeliveryMethod'; +export * from './DeliveryMethodProperties'; +export * from './DeliveryMethodTimeslot'; +export * from './DeliveryMethodWorkingHours'; +export * from './DeliveryPickUp'; +export * from './DeliveryPointInfoResponsePointDeliveryMethod'; +export * from './DeliveryPointInfoResponsePointDeliveryMethodDeliveryType'; +export * from './DeliveryPointListResponsePointCoordinates'; +export * from './DeliveryTypeCourier'; +export * from './DeliveryTypeCourierCoordinates'; +export * from './DeliveryTypeEnum'; +export * from './DeliveryTypePickUp'; +export * from './DetailsDeliveryDetails'; +export * from './DetailsOthers'; +export * from './DetailsPayment'; +export * from './DetailsReturnDetails'; +export * from './DetailsReturns'; +export * from './DetailsRfbsDetails'; +export * from './DetailsService'; +export * from './DetailsServices'; +export * from './DirEnum'; +export * from './DirectDetailsBySellerDetails'; +export * from './DirectDetailsByTplDetails'; +export * from './DirectDetailsTimeslotDetails'; +export * from './DraftClusterListResponseLogisticCluster'; +export * from './DraftCreateCommonResponseError'; +export * from './DraftCreateCommonResponseErrorItemsValidation'; +export * from './DraftCreateInfoResponseCluster'; +export * from './DraftCreateInfoResponseError'; +export * from './DraftCreateInfoResponseErrorErrorReasonEnum'; +export * from './DraftGetWarehouseFboListResponseCoordinate'; +export * from './DraftGetWarehouseFboListResponseSearch'; +export * from './DraftGetWarehouseFboListResponseWarehouseType'; +export * from './DraftTimeslotInfoResponseResult'; +export * from './DropOffPointCoordinates'; +export * from './DropOffWarehouseTimeslotsDay'; +export * from './DropOffWarehouseTimeslotsDayTimeslot'; +export * from './ErrorData'; +export * from './ErrorErrorLevel'; +export * from './ErrorErrorMessageEnum'; +export * from './ErrorErrorReasonEnum'; +export * from './ErrorHumanTexts'; +export * from './ErrorItemsValidation'; +export * from './ExemplarMark'; +export * from './ExemplarsMarks'; +export * from './FboPostingFboPostingAnalyticsData'; +export * from './FbpCheckActStateResponseErrorReason'; +export * from './FbpCheckConsignmentNoteStateResponseStateType'; +export * from './FbpCreateActResponseCreateActErrorReason'; +export * from './FbpDraftDropOffPointListResponseDropOffPoint'; +export * from './FbpDraftDropOffProvinceListResponseProvince'; +export * from './FbpDraftGetResponseDeclineReason'; +export * from './FbpGetLabelResponseLabelCreationStateTypeEnum'; +export * from './FbpWarehouseListResponseAddressDetailing'; +export * from './FbpWarehouseListResponseWarehouse'; +export * from './Fbpv1DeliveryDetails'; +export * from './Fbpv1Timeslot'; +export * from './FbsPostingBarcodes'; +export * from './FbsPostingDetailCourier'; +export * from './FbsPostingDetailPrrOption'; +export * from './FbsPostingMoveStatusResponseMoveStatus'; +export * from './FbsPostingProductExemplarCreateOrGetV6ResponseProduct'; +export * from './FbsPostingProductExemplarSetV6RequestExemplars'; +export * from './FbsPostingProductExemplarSetV6RequestProducts'; +export * from './FbsPostingShipV4RequestPackage'; +export * from './FbsPostingShipV4RequestPackageProduct'; +export * from './FbsPostingShipV4RequestWith'; +export * from './FbsPostingShipV4ResponseShipAdditionalData'; +export * from './FbsPostingTrackingNumberSetRequestTrackingNumber'; +export * from './Fbsv4FbsPostingShipV4Request'; +export * from './Fbsv4FbsPostingShipV4Response'; +export * from './Fbsv4PostingProductDetailWithoutDimensions'; +export * from './FilterPeriod'; +export * from './FilterStatusEnum'; +export * from './FilterTimeslotFromRange'; +export * from './FilterWithQuant'; +export * from './FinanceCashFlowStatementListResponseCashFlow'; +export * from './FinanceCashFlowStatementListResponseDeliveryService'; +export * from './FinanceCashFlowStatementListResponseDetails'; +export * from './FinanceCashFlowStatementListResponseDetailsOthers'; +export * from './FinanceCashFlowStatementListResponseReturnService'; +export * from './FinanceCashFlowStatementListResponseService'; +export * from './FinanceTransactionListV3RequestFilter'; +export * from './FinanceTransactionListV3ResponseOperation'; +export * from './FinanceTransactionTotalsV3RequestDate'; +export * from './FinanceV1GetFinanceAccrualByDayRequest'; +export * from './FinanceV1GetFinanceAccrualByDayResponse'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrual'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPosting'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService'; +export * from './FinanceV1GetFinanceAccrualPostingsRequest'; +export * from './FinanceV1GetFinanceAccrualPostingsResponse'; +export * from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals'; +export * from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual'; +export * from './FinanceV1GetFinanceAccrualTypesResponse'; +export * from './FinanceV1GetFinanceAccrualTypesResponseAccrualType'; +export * from './Financev3FinanceTransactionListV3Request'; +export * from './Financev3FinanceTransactionListV3Response'; +export * from './Financev3FinanceTransactionListV3ResponseResult'; +export * from './Financev3FinanceTransactionTotalsV3Request'; +export * from './Financev3FinanceTransactionTotalsV3Response'; +export * from './Financev3FinanceTransactionTotalsV3ResponseResult'; +export * from './Financev3Period'; +export * from './FirstMileTypeEnum'; +export * from './GetCarriageAvailableListResponseResult'; +export * from './GetCompetitorsResponseCompetitorInfo'; +export * from './GetConditionalCancellationListV2RequestFilters'; +export * from './GetConditionalCancellationListV2RequestWith'; +export * from './GetConditionalCancellationListV2ResponseCancellationReason'; +export * from './GetConditionalCancellationListV2ResponseResult'; +export * from './GetConditionalCancellationListV2ResponseState'; +export * from './GetDeliveryMethodReturnSettingsV1ResponseReturnSetting'; +export * from './GetDiscountTaskListV2ResponseTask'; +export * from './GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum'; +export * from './GetEtgbRequestDate'; +export * from './GetEtgbResponseResult'; +export * from './GetEtgbResponseResultEtgb'; +export * from './GetFBSRatingIndexInfoV1ResponseIndexDynamics'; +export * from './GetFinanceBalanceV1ResponseCashflows'; +export * from './GetFinanceBalanceV1ResponseReturns'; +export * from './GetFinanceBalanceV1ResponseReturnsDetails'; +export * from './GetFinanceBalanceV1ResponseSales'; +export * from './GetFinanceBalanceV1ResponseSalesDetails'; +export * from './GetFinanceBalanceV1ResponseService'; +export * from './GetFinanceBalanceV1ResponseTotal'; +export * from './GetFinanceProductsBuyoutResponseProduct'; +export * from './GetImportProductsInfoResponseResultItem'; +export * from './GetProductAttributesResponseImage'; +export * from './GetProductAttributesV3ResponseDictionaryValue'; +export * from './GetProductAttributesV4ResponseAttribute'; +export * from './GetProductInfoListResponseAvailability'; +export * from './GetProductInfoListResponseCommission'; +export * from './GetProductInfoListResponseError'; +export * from './GetProductInfoListResponseModelInfo'; +export * from './GetProductInfoListResponsePriceIndexes'; +export * from './GetProductInfoListResponseSource'; +export * from './GetProductInfoListResponseStatuses'; +export * from './GetProductInfoListResponseStocks'; +export * from './GetProductInfoListResponseStocksStock'; +export * from './GetProductInfoListResponseVisibilityDetails'; +export * from './GetProductInfoPricesResponseItemPriceIndexes'; +export * from './GetProductInfoStocksResponseStock'; +export * from './GetProductPlacementZoneInfoResponseProductPlacement'; +export * from './GetProductRatingBySkuResponseProductRating'; +export * from './GetProductRatingBySkuResponseRatingCondition'; +export * from './GetProductRatingBySkuResponseRatingGroup'; +export * from './GetProductRatingBySkuResponseRatingImproveAttribute'; +export * from './GetRealizationReportByDayResponse'; +export * from './GetRealizationReportByDayResponseRow'; +export * from './GetRealizationReportResponseV2Header'; +export * from './GetRealizationReportResponseV2Result'; +export * from './GetRealizationReportResponseV2Row'; +export * from './GetReturnsListRequestFilter'; +export * from './GetReturnsListResponseAdditionalInfo'; +export * from './GetReturnsListResponseCompensation'; +export * from './GetReturnsListResponseCompensationStatus'; +export * from './GetReturnsListResponseExemplar'; +export * from './GetReturnsListResponseLogistic'; +export * from './GetReturnsListResponsePlaceNow'; +export * from './GetReturnsListResponsePlaceTarget'; +export * from './GetReturnsListResponseProduct'; +export * from './GetReturnsListResponseReturnsItem'; +export * from './GetReturnsListResponseStorage'; +export * from './GetReturnsListResponseVisual'; +export * from './GetReturnsListResponseVisualStatus'; +export * from './GetSellerActionsV1ResponseAction'; +export * from './GetStrategyIDsByItemIDsResponseProductInfo'; +export * from './GetStrategyListResponseStrategy'; +export * from './GetSupplyOrderBundleRequestItemTagsCalculation'; +export * from './GetUploadQuotaResponseDailyCreate'; +export * from './GetUploadQuotaResponseDailyUpdate'; +export * from './GetUploadQuotaResponseTotal'; +export * from './GetWarehouseFBSOperationStatusResponseError'; +export * from './GetWarehouseFBSOperationStatusResponseResult'; +export * from './GetWarehouseFBSOperationStatusResponseStatusEnum'; +export * from './GetWarehouseFBSOperationStatusResponseTypeEnum'; +export * from './GiveoutInfoResponseArticleDetails'; +export * from './GiveoutListResponseGiveoutDetails'; +export * from './GoogleTypeDate'; +export * from './GooglerpcStatus'; +export * from './HumanTextsParam'; +export * from './ImportProductRequestPromotion'; +export * from './ImportProductsRequestPdfList'; +export * from './InvoiceGetV2ResponseResult'; +export * from './ItemBundleSummary'; +export * from './ItemCommissionsv5'; +export * from './ItemMarketing'; +export * from './ItemPricev5'; +export * from './ItemSize'; +export * from './ItemStatusError'; +export * from './ItemValidationErrorType'; +export * from './ItemsValidationRejectedItems'; +export * from './LanguageLanguage'; +export * from './ListDropOffPointsForCreateFBSWarehouseRequestSearch'; +export * from './ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +export * from './ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint'; +export * from './ListDropOffPointsForUpdateFBSWarehouseRequestSearch'; +export * from './ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +export * from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint'; +export * from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum'; +export * from './ListFBSRatingIndexPostingsV1RequestFilter'; +export * from './ListFBSRatingIndexPostingsV1ResponseError'; +export * from './ListPostingCodesRequestFilter'; +export * from './ListPostingCodesRequestWithParams'; +export * from './ListPostingCodesResponsePosting'; +export * from './LogisticTimeslotDateRange'; +export * from './MacrolocalClusterCountry'; +export * from './MarketingAction'; +export * from './MaxPeriodsPeriod'; +export * from './MinPeriodsPeriod'; +export * from './MinUtilizationMoney'; +export * from './MoneyMoney'; +export * from './MoneyMoneyAccrued'; +export * from './MoneyMoneyBonus'; +export * from './MoneyMoneyCoinvestment'; +export * from './MoneyMoneyComissions'; +export * from './MoneyMoneyCommission'; +export * from './MoneyMoneyCurrentTariffCharge'; +export * from './MoneyMoneyCurrentTariffMinCharge'; +export * from './MoneyMoneyCustomerPrice'; +export * from './MoneyMoneyFBPget'; +export * from './MoneyMoneyNextTariffCharge'; +export * from './MoneyMoneyNextTariffMinCharge'; +export * from './MoneyMoneyPriceWithoutVat'; +export * from './MoneyMoneySaleAmount'; +export * from './MoneyMoneySaleCommission'; +export * from './MoneyMoneySalePrice'; +export * from './MoneyMoneySelf'; +export * from './MoneyMoneySellerPrice'; +export * from './MoneyMoneySplitCommission'; +export * from './MoneyMoneySupplyActAmount'; +export * from './MoneyMoneySupplyActAmountVat'; +export * from './MoneyMoneySupplyActAmountWithoutVat'; +export * from './MoneyMoneyTotalAccrued'; +export * from './MoneyMoneyTotalAmount'; +export * from './MoneyPostingMoney'; +export * from './NotificationV1CheckNotificationRequest'; +export * from './NotificationV1CheckNotificationResponse'; +export * from './NotificationV1CheckNotificationResponseError'; +export * from './NotificationV1CheckNotificationResponseErrorTypeEnum'; +export * from './NotificationV1DeleteNotificationRequest'; +export * from './NotificationV1EnableNotificationRequest'; +export * from './NotificationV1GetNotificationPushTypeListResponse'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationType'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum'; +export * from './NotificationV1NotificationListResponse'; +export * from './NotificationV1NotificationListResponseNotification'; +export * from './NotificationV1NotificationListResponseNotificationNotificationType'; +export * from './NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum'; +export * from './NotificationV1SetNotificationRequest'; +export * from './NotificationV1SetNotificationRequestTypeEnum'; +export * from './NotificationV1UpdateNotificationRequest'; +export * from './NotificationV1UpdateNotificationRequestTypeEnum'; +export * from './OperationItem'; +export * from './OperationPosting'; +export * from './OperationService'; +export * from './OrderCancelCheckResponsePosting'; +export * from './OrderCancelCheckResponsePostingGroup'; +export * from './OrderCreateRequestBuyer'; +export * from './OrderCreateRequestDelivery'; +export * from './OrderCreateRequestDeliveryPrice'; +export * from './OrderCreateRequestPrice'; +export * from './OrderCreateRequestRecipient'; +export * from './OrderCreateRequestSplit'; +export * from './OrderCreateRequestV2DeliverySchemaEnum'; +export * from './OrderDropOffWarehouse'; +export * from './OrderOrderStateEnum'; +export * from './OrderOrderTags'; +export * from './OrderSupply'; +export * from './OrderSupplyStateEnum'; +export * from './ParameterAutoStopActionReasonEnum'; +export * from './ParameterDiscountLevels'; +export * from './ParameterPickedSegment'; +export * from './PickedSegmentSegment'; +export * from './PickedSegmentSegmentTypeEnum'; +export * from './PointDeliveryMethodCoordinates'; +export * from './PolygonBindRequestpolygon'; +export * from './PolygonBindRequestwhLocation'; +export * from './PolygonListResponsePolygon'; +export * from './Polygonv1PolygonBindRequest'; +export * from './Polygonv1PolygonCreateRequest'; +export * from './Polygonv1PolygonCreateResponse'; +export * from './PostingAdditionalDataItem'; +export * from './PostingBooleanResponse'; +export * from './PostingCancelFbsPostingRequest'; +export * from './PostingCancelReason'; +export * from './PostingCancelReasonListResponse'; +export * from './PostingCancelReasonRequest'; +export * from './PostingCancelReasonResponse'; +export * from './PostingErrorTypeEnum'; +export * from './PostingExemplarInfoExemplarError'; +export * from './PostingFBSActCheckStatusResponseStatus'; +export * from './PostingFBSActCreateResponseAct'; +export * from './PostingFboPostingWithParams'; +export * from './PostingFbsPostingDeliveredRequest'; +export * from './PostingFbsPostingDeliveringRequest'; +export * from './PostingFbsPostingLastMileRequest'; +export * from './PostingFbsPostingMoveStatusResponse'; +export * from './PostingFbsPostingTrackingNumberSetRequest'; +export * from './PostingFbsTraceableSplitResponsePostingProduct'; +export * from './PostingFinancialDataProduct'; +export * from './PostingFinancialDataProductV2'; +export * from './PostingGetFboPostingListRequest'; +export * from './PostingGetFboPostingListRequestFilter'; +export * from './PostingGetFboPostingRequest'; +export * from './PostingGetFbsPostingByBarcodeRequest'; +export * from './PostingLegalInfo'; +export * from './PostingMarksResponseIssuedExemplar'; +export * from './PostingMarksResponseNonIssuedExemplar'; +export * from './PostingMovePostingRequest'; +export * from './PostingPostingAnalyticsData'; +export * from './PostingPostingFBSActCheckStatusRequest'; +export * from './PostingPostingFBSActCheckStatusResponse'; +export * from './PostingPostingFBSActCreateRequest'; +export * from './PostingPostingFBSActCreateResponse'; +export * from './PostingPostingFBSActGetContainerLabelsRequest'; +export * from './PostingPostingFBSActGetContainerLabelsResponse'; +export * from './PostingPostingFBSGetActRequest'; +export * from './PostingPostingFBSGetActResponse'; +export * from './PostingPostingFBSPackageLabelRequest'; +export * from './PostingPostingFBSPackageLabelResponse'; +export * from './PostingPostingFinancialData'; +export * from './PostingPostingProduct'; +export * from './PostingPostingProductCancelRequest'; +export * from './PostingPostingProductCancelResponse'; +export * from './PostingProductCancelRequestItem'; +export * from './PostingV1GetFbpPostingRequest'; +export * from './PostingV1GetFbpPostingResponse'; +export * from './PostingV1GetFbpPostingResponsePosting'; +export * from './PostingV1GetFbpPostingResponsePostingAnalyticsData'; +export * from './PostingV1GetFbpPostingResponsePostingCancellation'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialData'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProducts'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission'; +export * from './PostingV1GetFbpPostingResponsePostingProducts'; +export * from './PostingV1PostingFbpListRequest'; +export * from './PostingV1PostingFbpListRequestFilter'; +export * from './PostingV1PostingFbpListRequestSortDirEnum'; +export * from './PostingV1PostingFbpListResponse'; +export * from './PostingV1PostingFbpListResponsePostings'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialData'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProducts'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission'; +export * from './PostingV1PostingFbpListResponsePostingsProducts'; +export * from './PostingV2FboSinglePostingExternalOrder'; +export * from './PostingV2PostingDigitalListRequest'; +export * from './PostingV2PostingDigitalListRequestFilter'; +export * from './PostingV2PostingDigitalListRequestSortDirEnum'; +export * from './PostingV2PostingDigitalListRequestWith'; +export * from './PostingV2PostingDigitalListResponse'; +export * from './PostingV2PostingDigitalListResponsePostings'; +export * from './PostingV2PostingDigitalListResponsePostingsAdditionalData'; +export * from './PostingV2PostingDigitalListResponsePostingsAnalyticsData'; +export * from './PostingV2PostingDigitalListResponsePostingsCancellation'; +export * from './PostingV2PostingDigitalListResponsePostingsExternalOrder'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialData'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialDataProducts'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV2PostingDigitalListResponsePostingsLegalInfo'; +export * from './PostingV2PostingDigitalListResponsePostingsProducts'; +export * from './PostingV3FbsPostingContainerCargoTypeEnum'; +export * from './PostingV3FbsPostingDetailExternalOrder'; +export * from './PostingV3FbsPostingDetailSortingCenter'; +export * from './PostingV3FbsPostingSortingCenter'; +export * from './PostingV3PostingFboListRequest'; +export * from './PostingV3PostingFboListRequestFilter'; +export * from './PostingV3PostingFboListRequestSortDirEnum'; +export * from './PostingV3PostingFboListRequestWith'; +export * from './PostingV3PostingFboListResponse'; +export * from './PostingV3PostingFboListResponsePostings'; +export * from './PostingV3PostingFboListResponsePostingsAdditionalData'; +export * from './PostingV3PostingFboListResponsePostingsAnalyticsData'; +export * from './PostingV3PostingFboListResponsePostingsCancellation'; +export * from './PostingV3PostingFboListResponsePostingsExternalOrder'; +export * from './PostingV3PostingFboListResponsePostingsFinancialData'; +export * from './PostingV3PostingFboListResponsePostingsFinancialDataProducts'; +export * from './PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV3PostingFboListResponsePostingsLegalInfo'; +export * from './PostingV3PostingFboListResponsePostingsProducts'; +export * from './PostingV4PostingFbsListRequest'; +export * from './PostingV4PostingFbsListRequestFilter'; +export * from './PostingV4PostingFbsListRequestFilterLastChangedStatusDate'; +export * from './PostingV4PostingFbsListRequestSortDirEnum'; +export * from './PostingV4PostingFbsListRequestWith'; +export * from './PostingV4PostingFbsListResponse'; +export * from './PostingV4PostingFbsListResponsePostings'; +export * from './PostingV4PostingFbsListResponsePostingsAddressee'; +export * from './PostingV4PostingFbsListResponsePostingsAnalyticsData'; +export * from './PostingV4PostingFbsListResponsePostingsBarcodes'; +export * from './PostingV4PostingFbsListResponsePostingsCancellation'; +export * from './PostingV4PostingFbsListResponsePostingsContainer'; +export * from './PostingV4PostingFbsListResponsePostingsCustomer'; +export * from './PostingV4PostingFbsListResponsePostingsCustomerAddress'; +export * from './PostingV4PostingFbsListResponsePostingsDeliveryMethod'; +export * from './PostingV4PostingFbsListResponsePostingsExternalOrder'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialData'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialDataProducts'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV4PostingFbsListResponsePostingsLegalInfo'; +export * from './PostingV4PostingFbsListResponsePostingsOptional'; +export * from './PostingV4PostingFbsListResponsePostingsProducts'; +export * from './PostingV4PostingFbsListResponsePostingsRequirements'; +export * from './PostingV4PostingFbsListResponsePostingsSortingCenter'; +export * from './PostingV4PostingFbsListResponsePostingsTariffication'; +export * from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +export * from './PostingV4PostingFbsUnfulfilledListRequest'; +export * from './PostingV4PostingFbsUnfulfilledListRequestFilter'; +export * from './PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate'; +export * from './PostingV4PostingFbsUnfulfilledListRequestSortDirEnum'; +export * from './PostingV4PostingFbsUnfulfilledListRequestWith'; +export * from './PostingV4PostingFbsUnfulfilledListResponse'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostings'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainer'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsOptional'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsProducts'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep'; +export * from './PostinglistV3status'; +export * from './Postingv1GetCarriageAvailableListRequest'; +export * from './Postingv1GetCarriageAvailableListResponse'; +export * from './Postingv3FbsPostingWithParams'; +export * from './Postingv3FbsPostingWithParamsExamplars'; +export * from './Postingv3GetFbsPostingListRequest'; +export * from './Postingv3GetFbsPostingListRequestFilter'; +export * from './Postingv3GetFbsPostingRequest'; +export * from './Postingv3GetFbsPostingUnfulfilledListRequest'; +export * from './Postingv3GetFbsPostingUnfulfilledListRequestFilter'; +export * from './Postingv3GetFbsPostingUnfulfilledListResponse'; +export * from './Postingv3GetFbsPostingUnfulfilledListResponseResult'; +export * from './Postingv3PostingMultiBoxQtySetV3Request'; +export * from './Postingv3PostingMultiBoxQtySetV3Response'; +export * from './Postingv3PostingMultiBoxQtySetV3ResponseResult'; +export * from './PremiumScoresScore'; +export * from './PriceIndexesColorIndex'; +export * from './PriceIndexesIndexDataExternal'; +export * from './PriceIndexesIndexDataOzon'; +export * from './PriceIndexesIndexDataSelf'; +export * from './PriceIndexesIndexExternalData'; +export * from './PriceIndexesIndexOzonData'; +export * from './PriceIndexesIndexSelfData'; +export * from './ProductBooleanResponse'; +export * from './ProductCertificateProductsListResponseProduct'; +export * from './ProductCertificateUnbindResponseItem'; +export * from './ProductCertificationListResponseCertification'; +export * from './ProductCertificationListResponseCertificationResult'; +export * from './ProductCertificationListResponseCertificationv2'; +export * from './ProductCurrencyEnum'; +export * from './ProductExemplar'; +export * from './ProductGetImportProductsInfoRequest'; +export * from './ProductGetImportProductsInfoResponse'; +export * from './ProductGetImportProductsInfoResponseResult'; +export * from './ProductGetProductAttributesV3ResponseDictionaryValue'; +export * from './ProductGetProductAttributesV4ResponseAttribute'; +export * from './ProductGetProductInfoDescriptionRequest'; +export * from './ProductGetProductInfoDescriptionResponse'; +export * from './ProductGetProductInfoDescriptionResponseProduct'; +export * from './ProductGetProductInfoPricesV5ResponseItem'; +export * from './ProductImportProductsBySKURequest'; +export * from './ProductImportProductsBySKURequestItem'; +export * from './ProductImportProductsBySKUResponse'; +export * from './ProductImportProductsBySKUResponseResult'; +export * from './ProductImportProductsPricesRequest'; +export * from './ProductImportProductsPricesRequestPrice'; +export * from './ProductImportProductsPricesResponse'; +export * from './ProductImportProductsPricesResponseError'; +export * from './ProductImportProductsPricesResponseProcessResult'; +export * from './ProductInfoWarehouseStocksResponseStocks'; +export * from './ProductInfoWrongVolumeResponseWrongVolumeProduct'; +export * from './ProductPlacementPlacementZoneEnum'; +export * from './ProductProductArchiveRequest'; +export * from './ProductProductCertificateAccordanceTypesResponse'; +export * from './ProductProductCertificateAccordanceTypesResponseType'; +export * from './ProductProductCertificateBindRequest'; +export * from './ProductProductCertificateTypesResponse'; +export * from './ProductProductCertificateTypesResponseType'; +export * from './ProductProductCertificationListRequest'; +export * from './ProductProductCertificationListResponse'; +export * from './ProductProductInfoPicturesResponsePicture'; +export * from './ProductProductUnarchiveRequest'; +export * from './ProductUpdateOfferIdRequestUpdateOfferId'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboRequest'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboResponse'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboResponseProduct'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndex'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf'; +export * from './ProductV1ProductVisibilityInfoRequest'; +export * from './ProductV1ProductVisibilityInfoResponse'; +export * from './ProductV1ProductVisibilityInfoResponseItem'; +export * from './ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum'; +export * from './ProductV1ProductVisibilitySetRequest'; +export * from './ProductV1ProductVisibilitySetRequestItemPlacement'; +export * from './ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum'; +export * from './ProductV1ProductVisibilitySetResponse'; +export * from './ProductV1ProductVisibilitySetResponseItems'; +export * from './ProductV1ProductVisibilitySetResponseItemsErrors'; +export * from './ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum'; +export * from './ProductV1QuantInfoRequest'; +export * from './ProductV1QuantInfoResponse'; +export * from './ProductV1QuantInfoResponseResultItems'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfo'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuants'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts'; +export * from './ProductV1QuantListRequest'; +export * from './ProductV1QuantListResponse'; +export * from './ProductV1QuantListResponseProducts'; +export * from './ProductV1QuantListResponseProductsQuants'; +export * from './ProductV4GetUploadQuotaResponseOperationLimits'; +export * from './ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum'; +export * from './ProductsPostings'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsRequest'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsResponse'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsResponseResult'; +export * from './Productv1ProductImportPicturesRequest'; +export * from './Productv1ProductInfoPicturesResponse'; +export * from './Productv1ProductInfoPicturesResponseResult'; +export * from './Productv2DeleteProductsRequest'; +export * from './Productv2DeleteProductsResponse'; +export * from './Productv2GetProductListRequestFilterFilterVisibility'; +export * from './Productv2ProductsStocksRequest'; +export * from './Productv2ProductsStocksRequestStock'; +export * from './Productv2ProductsStocksResponse'; +export * from './Productv2ProductsStocksResponseError'; +export * from './Productv2ProductsStocksResponseResult'; +export * from './Productv3GetProductListRequest'; +export * from './Productv3GetProductListRequestFilter'; +export * from './Productv3GetProductListRequestFilterFilterVisibility'; +export * from './Productv3GetProductListResponse'; +export * from './Productv3GetProductListResponseItem'; +export * from './Productv3GetProductListResponseItemQuant'; +export * from './Productv3GetProductListResponseResult'; +export * from './Productv4Filter'; +export * from './Productv4GetProductAttributesV4Request'; +export * from './Productv4GetProductAttributesV4Response'; +export * from './Productv4GetProductAttributesV4ResponseResult'; +export * from './Productv5Filter'; +export * from './Productv5GetProductInfoPricesV5Request'; +export * from './Productv5GetProductInfoPricesV5Response'; +export * from './Productv5GetProductListRequestFilterFilterVisibility'; +export * from './ProtobufAny'; +export * from './ProtobufAnyV2DeliveryCheckout'; +export * from './QuestionV1GetQuestionListRequestSortDirEnum'; +export * from './QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum'; +export * from './RatingItemChange'; +export * from './RatingStatusEnum'; +export * from './RatingSummaryV1ResponseGroup'; +export * from './RatingSummaryV1ResponseLocalIndex'; +export * from './RatingValue'; +export * from './RatingValueCurrent'; +export * from './RatingValuePast'; +export * from './ReasonHumanText'; +export * from './ReceiptsSellerListResponseReceipt'; +export * from './ReceiptsSellerListResponseReceiptOperationTypeEnum'; +export * from './ReceiptsSellerListResponseReceiptTypeEnum'; +export * from './RejectedItemsReasonEnum'; +export * from './RejectedItemsRejectionReasonEnum'; +export * from './RejectedItemsRestrictions'; +export * from './RelatedPostingCancelReason'; +export * from './RelatedPostingCancelReasons'; +export * from './ReportCommonReportAdditionalDataItem'; +export * from './ReportCreateCompanyPostingsReportRequest'; +export * from './ReportCreateCompanyPostingsReportRequestFilter'; +export * from './ReportCreateCompanyProductsReportRequest'; +export * from './ReportCreateCompanyProductsReportRequestVisibility'; +export * from './ReportCreateDiscountedResponse'; +export * from './ReportCreateReportResponse'; +export * from './ReportListResponseResult'; +export * from './ReportMarkedProductsSalesCreateRequestDate'; +export * from './ReportReport'; +export * from './ReportReportInfoRequest'; +export * from './ReportReportInfoResponse'; +export * from './ReportReportListRequest'; +export * from './ReportReportListResponse'; +export * from './ReportReportinfo'; +export * from './ReportV1CreateCompanyFinanceRealizationPostingReportRequest'; +export * from './ReportV1CreateCompanyFinanceRealizationPostingReportResponse'; +export * from './RestrictionsReasonEnum'; +export * from './ResultCargo'; +export * from './ResultData'; +export * from './ResultDropOffWarehouseTimeslots'; +export * from './ResultError'; +export * from './ResultUnprintedPosting'; +export * from './ReturnSettingCourierDetails'; +export * from './ReturnSettingTransportCompanyDetails'; +export * from './ReturnsCompanyFbsInfoRequestPagination'; +export * from './ReturnsCompanyFbsInfoResponseDropOffPoints'; +export * from './ReturnsCompanyFbsInfoResponsePassInfo'; +export * from './ReturnsRfbsGetResponseReturns'; +export * from './ReturnsRfbsGetV2ResponseAvailableAction'; +export * from './ReturnsRfbsGetV2ResponseClientReturnMethodType'; +export * from './ReturnsRfbsGetV2ResponseRejectionReason'; +export * from './ReturnsRfbsGetV2ResponseReturnReason'; +export * from './ReturnsRfbsListResponseReturns'; +export * from './ReturnsSettingsUtilizationHistoryResponseHistory'; +export * from './ReturnsSettingsUtilizationInfoResponseUtilizationSettings'; +export * from './ReturnsSettingsUtilizationUpdateRequestUtilizationPrice'; +export * from './ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects'; +export * from './ReviewInfoResponsePhoto'; +export * from './ReviewInfoResponseVideo'; +export * from './ReviewListResponseReview'; +export * from './ReviewV1CommentListRequestFilter'; +export * from './ReviewV2ReviewChangeStatusV2Request'; +export * from './ReviewV2ReviewChangeStatusV2RequestStatusEnum'; +export * from './ReviewV2ReviewCommentDeleteV2Request'; +export * from './ReviewV2ReviewCountV2Response'; +export * from './ReviewV2ReviewInfoV2Request'; +export * from './ReviewV2ReviewInfoV2Response'; +export * from './ReviewV2ReviewInfoV2ResponseOrderStatusEnum'; +export * from './ReviewV2ReviewInfoV2ResponsePhoto'; +export * from './ReviewV2ReviewInfoV2ResponseStatusEnum'; +export * from './ReviewV2ReviewInfoV2ResponseVideo'; +export * from './ReviewV2ReviewListV2Request'; +export * from './ReviewV2ReviewListV2RequestFilters'; +export * from './ReviewV2ReviewListV2RequestFiltersOrderStatusEnum'; +export * from './ReviewV2ReviewListV2RequestFiltersStatusEnum'; +export * from './ReviewV2ReviewListV2RequestSortDirEnum'; +export * from './ReviewV2ReviewListV2Response'; +export * from './ReviewV2ReviewListV2ResponseReview'; +export * from './ReviewV2ReviewListV2ResponseReviewOrderStatusEnum'; +export * from './ReviewV2ReviewListV2ResponseReviewStatusEnum'; +export * from './RolesByTokenResponseRoles'; +export * from './RowItem'; +export * from './RowItemCommission'; +export * from './RowItemCommissionReturn'; +export * from './RowItemLegalEntityDocument'; +export * from './RowItemOrder'; +export * from './RpcStatus'; +export * from './RpcStatusV1FinanceRealizationPosting'; +export * from './RpcStatusV1PolygonBind'; +export * from './RpcStatusV1PolygonCreate'; +export * from './RpcStatusV2DeliveryCheckout'; +export * from './SearchAttributeValuesResponseValue'; +export * from './SearchQueriesTextRequestSortBy'; +export * from './SearchQueriesTextRequestSortDir'; +export * from './SellerActionsListRequestActionTypeEnum'; +export * from './SellerActionsListRequestStatusEnum'; +export * from './SellerActionsListResponseAction'; +export * from './SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel'; +export * from './SellerApiActivateProductV1Request'; +export * from './SellerApiGetSellerActionsV1Response'; +export * from './SellerApiGetSellerProductV1Request'; +export * from './SellerApiGetSellerProductV1Response'; +export * from './SellerApiGetSellerProductV1ResponseResult'; +export * from './SellerApiProduct'; +export * from './SellerApiProductIDsV1Request'; +export * from './SellerApiProductPrice'; +export * from './SellerApiProductV1Response'; +export * from './SellerApiProductV1ResponseDeactivate'; +export * from './SellerApiProductV1ResponseProduct'; +export * from './SellerApiProductV1ResponseProductDeactivate'; +export * from './SellerApiProductV1ResponseResult'; +export * from './SellerApiProductV1ResponseResultDeactivate'; +export * from './SellerInfoResponseCompany'; +export * from './SellerInfoResponseRating'; +export * from './SellerInfoResponseRatingTypeEnum'; +export * from './SellerInfoResponseSubscription'; +export * from './SellerInfoResponseSubscriptionTypeEnum'; +export * from './SellerOzonLogisticsInfoResponseAvailableSchemasEnum'; +export * from './SellerReturnsv1MoneyCommission'; +export * from './SellerReturnsv1MoneyProduct'; +export * from './SellerReturnsv1MoneyStorage'; +export * from './SellerReturnsv1MoneyUtilization'; +export * from './SellerReturnsv1MoneyWithoutCommission'; +export * from './SellerSellerAPIArrivalPassCreateRequest'; +export * from './SellerSellerAPIArrivalPassCreateRequestArrivalPass'; +export * from './SellerSellerAPIArrivalPassCreateResponse'; +export * from './SellerSellerAPIArrivalPassDeleteRequest'; +export * from './SellerSellerAPIArrivalPassUpdateRequest'; +export * from './SellerSellerAPIArrivalPassUpdateRequestArrivalPass'; +export * from './SellerServiceanalyticsDimension'; +export * from './SetPostingsResponseResult'; +export * from './SourceShipmentType'; +export * from './SplitDeliveryMethod'; +export * from './SplitItem'; +export * from './StatusEnum'; +export * from './StockShipmentType'; +export * from './StocksImportRequestItemStock'; +export * from './StocksImportResponseItemStatus'; +export * from './SupplierAvailableWarehousesResponseCapacity'; +export * from './SupplierAvailableWarehousesResponseResult'; +export * from './SupplierAvailableWarehousesResponseSchedule'; +export * from './SupplierAvailableWarehousesResponseWarehouse'; +export * from './SupplyCancellationAllowability'; +export * from './SupplyCargoInfo'; +export * from './SupplyCargoInfoTypeEnum'; +export * from './SupplyCheckCargoesPresentRule'; +export * from './SupplyCheckEditDeadlineExpireRule'; +export * from './SupplyCheckExpireDatePresentedRule'; +export * from './SupplyCheckIsValidDistributionRule'; +export * from './SupplyCheckPackageUnitWithDistributionRule'; +export * from './SupplyCheckPlacementZoneRule'; +export * from './SupplyContent'; +export * from './SupplyETTN'; +export * from './SupplyOrderCancelStatusResponseCancelOrderError'; +export * from './SupplyOrderCancelStatusResponseCancelSupplyResults'; +export * from './SupplyOrderCancelStatusResponseResult'; +export * from './SupplyOrderContentUpdateStatusResponseStatusEnum'; +export * from './SupplyOrderContentUpdateValidationResponseApprovedItems'; +export * from './SupplyOrderContentUpdateValidationResponseEditingErrorEnum'; +export * from './SupplyOrderContentUpdateValidationResponseRejectedItems'; +export * from './SupplyOrderContentUpdateValidationResponseValidatedAssortment'; +export * from './SupplyOrderDetailsResponseOrderStateEnum'; +export * from './SupplyOrderDetailsResponseOrderTags'; +export * from './SupplyOrderDetailsResponseSupply'; +export * from './SupplyOrderDetailsResponseTimeslotValue'; +export * from './SupplyOrderDetailsResponseVehicle'; +export * from './SupplyOrderDetailsResponseVehicleValue'; +export * from './SupplyOrderGetResponseOrder'; +export * from './SupplyOrderGetResponseTimeslotTZ'; +export * from './SupplyOrderListRequestFilter'; +export * from './SupplyOrderListRequestFilterStateEnum'; +export * from './SupplyOrderListRequestSortByEnum'; +export * from './SupplyOrderListRequestSortDirEnum'; +export * from './SupplyOrderV1SupplyOrderActAcceptRequest'; +export * from './SupplyOrderV1SupplyOrderActAcceptResponse'; +export * from './SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusRequest'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusResponse'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum'; +export * from './SupplyOrderV1SupplyOrderActProductGetRequest'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponse'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetRequest'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponse'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum'; +export * from './SupplyOrderV2SupplyOrderTimeslotListRequest'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponse'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone'; +export * from './SupplyOverdueReasonEnum'; +export * from './SupplyStateEnum'; +export * from './SupplyStorageWarehouse'; +export * from './SupplySupplyTags'; +export * from './SupplyTags'; +export * from './TaskAutoModeratedInfo'; +export * from './TimeslotCanNotSetTimeslotReasonEnum'; +export * from './TimeslotFromRangeTimeslotFilterTypeEnum'; +export * from './TimeslotTZTimeslot'; +export * from './TimeslotTZTimezoneInfo'; +export * from './TimeslotValueTimeslot'; +export * from './TimetableWorkingHours'; +export * from './TypeTimeOfDay'; +export * from './UploadPostingCodesRequestPostingLineExemplarInfo'; +export * from './UploadPostingCodesResponsePostingExemplarInfo'; +export * from './UtilizationDefectsMoney'; +export * from './UtilizationMoney'; +export * from './V1AddBarcodeRequest'; +export * from './V1AddBarcodeResponse'; +export * from './V1AddBarcodeResult'; +export * from './V1AddStrategyItemsRequest'; +export * from './V1AddStrategyItemsResponse'; +export * from './V1AddStrategyItemsResponseResult'; +export * from './V1AnalyticsManageStocksRequest'; +export * from './V1AnalyticsManageStocksRequestFilter'; +export * from './V1AnalyticsManageStocksResponse'; +export * from './V1AnalyticsManageStocksResponseItem'; +export * from './V1AnalyticsProductQueriesDetailsRequest'; +export * from './V1AnalyticsProductQueriesDetailsRequestSortBy'; +export * from './V1AnalyticsProductQueriesDetailsRequestSortDir'; +export * from './V1AnalyticsProductQueriesDetailsResponse'; +export * from './V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod'; +export * from './V1AnalyticsProductQueriesRequest'; +export * from './V1AnalyticsProductQueriesResponse'; +export * from './V1AnalyticsProductQueriesResponseItem'; +export * from './V1AnalyticsStocksRequest'; +export * from './V1AnalyticsStocksResponse'; +export * from './V1AnalyticsStocksResponseItem'; +export * from './V1AnalyticsTurnoverStocksRequest'; +export * from './V1AnalyticsTurnoverStocksResponse'; +export * from './V1AnalyticsTurnoverStocksResponseItem'; +export * from './V1ApproveDeclineDiscountTasksResponse'; +export * from './V1ApproveDeclineDiscountTasksResponseResult'; +export * from './V1ApproveDiscountTasksRequest'; +export * from './V1ApproveDiscountTasksRequestTask'; +export * from './V1ArchiveDeclineReason'; +export * from './V1ArchiveSkuSummary'; +export * from './V1ArchiveStatusEnum'; +export * from './V1ArchiveWarehouseFBSRequest'; +export * from './V1ArchiveWarehouseFBSResponse'; +export * from './V1AssemblyCarriagePostingListRequest'; +export * from './V1AssemblyCarriagePostingListRequestFilter'; +export * from './V1AssemblyCarriagePostingListResponse'; +export * from './V1AssemblyCarriagePostingListResponsePosting'; +export * from './V1AssemblyCarriagePostingListResponsePostingProduct'; +export * from './V1AssemblyCarriageProductListRequest'; +export * from './V1AssemblyCarriageProductListRequestFilter'; +export * from './V1AssemblyCarriageProductListResponse'; +export * from './V1AssemblyCarriageProductListResponseProduct'; +export * from './V1AssemblyFbsPostingListRequest'; +export * from './V1AssemblyFbsPostingListRequestFilter'; +export * from './V1AssemblyFbsPostingListRequestSortDirEnum'; +export * from './V1AssemblyFbsPostingListResponse'; +export * from './V1AssemblyFbsPostingListResponsePosting'; +export * from './V1AssemblyFbsPostingListResponsePostingProduct'; +export * from './V1AssemblyFbsProductListRequest'; +export * from './V1AssemblyFbsProductListRequestFilter'; +export * from './V1AssemblyFbsProductListRequestSortDirEnum'; +export * from './V1AssemblyFbsProductListResponse'; +export * from './V1Barcode'; +export * from './V1BundleItemErrorEnum'; +export * from './V1BundleItemShipmentType'; +export * from './V1CancelReasonListByOrderRequest'; +export * from './V1CancelReasonListByOrderResponse'; +export * from './V1CancelReasonListByOrderResponseReason'; +export * from './V1CancelReasonListByOrderResponseReasonFbo'; +export * from './V1CancelReasonListByPostingRequest'; +export * from './V1CancelReasonListByPostingResponse'; +export * from './V1CancelReasonListByPostingResponseReason'; +export * from './V1CancelReasonListResponse'; +export * from './V1CancelReasonListResponseFbo'; +export * from './V1CancellationState'; +export * from './V1CancellationStateStatus'; +export * from './V1CargoesCreateErrors'; +export * from './V1CargoesCreateRequest'; +export * from './V1CargoesCreateRequestCargo'; +export * from './V1CargoesCreateRequestCargoValue'; +export * from './V1CargoesCreateResponse'; +export * from './V1CargoesDeleteRequest'; +export * from './V1CargoesDeleteResponse'; +export * from './V1CargoesDeleteResponseError'; +export * from './V1CargoesDeleteResponseErrorCargoErrorReason'; +export * from './V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum'; +export * from './V1CargoesDeleteResponseErrorSupplyErrorReasonEnum'; +export * from './V1CargoesDeleteStatusRequest'; +export * from './V1CargoesDeleteStatusResponse'; +export * from './V1CargoesDeleteStatusResponseError'; +export * from './V1CargoesDeleteStatusResponseErrorCargoErrorReason'; +export * from './V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum'; +export * from './V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum'; +export * from './V1CargoesGetRequest'; +export * from './V1CargoesGetResponse'; +export * from './V1CargoesLabelCreateErrors'; +export * from './V1CargoesLabelCreateErrorsErrorReason'; +export * from './V1CargoesLabelCreateRequest'; +export * from './V1CargoesLabelCreateRequestCargo'; +export * from './V1CargoesLabelCreateResponse'; +export * from './V1CargoesLabelGetRequest'; +export * from './V1CargoesLabelGetResponse'; +export * from './V1CargoesLabelGetResponseResult'; +export * from './V1CargoesLabelGetResponseStatus'; +export * from './V1CargoesRulesGetRequest'; +export * from './V1CargoesRulesGetResponse'; +export * from './V1CarriageActDiscrepancyPDFRequest'; +export * from './V1CarriageActDiscrepancyPDFResponse'; +export * from './V1CarriageApproveRequest'; +export * from './V1CarriageCancelRequest'; +export * from './V1CarriageCancelResponse'; +export * from './V1CarriageCourierContactGetRequest'; +export * from './V1CarriageCourierContactGetResponse'; +export * from './V1CarriageCourierContactGetResponseContact'; +export * from './V1CarriageCourierContactSetRequest'; +export * from './V1CarriageCreateRequest'; +export * from './V1CarriageCreateResponse'; +export * from './V1CarriageDeliveryListRequest'; +export * from './V1CarriageDeliveryListResponse'; +export * from './V1CarriageDeliveryListResponseResult'; +export * from './V1CarriageDeliveryListResponseResultCarriages'; +export * from './V1CarriageDeliveryListResponseResultErrors'; +export * from './V1CarriageEttnStatusRequest'; +export * from './V1CarriageEttnStatusResponse'; +export * from './V1Certificate'; +export * from './V1ClusterType'; +export * from './V1CommentCreateRequest'; +export * from './V1CommentCreateResponse'; +export * from './V1CommentDeleteRequest'; +export * from './V1CommentListRequest'; +export * from './V1CommentListResponse'; +export * from './V1CommentSort'; +export * from './V1Competitor'; +export * from './V1CreateDocumentB2BSalesJSONReportRequest'; +export * from './V1CreateDocumentB2BSalesJSONReportResponse'; +export * from './V1CreateDocumentB2BSalesReportRequest'; +export * from './V1CreateLabelBatchRequest'; +export * from './V1CreateLabelBatchResponse'; +export * from './V1CreateLabelBatchResponseResult'; +export * from './V1CreateMutualSettlementReportRequest'; +export * from './V1CreatePlacementByProductsReportRequest'; +export * from './V1CreatePlacementByProductsReportResponse'; +export * from './V1CreatePlacementBySuppliesReportRequest'; +export * from './V1CreatePlacementBySuppliesReportResponse'; +export * from './V1CreatePricingStrategyRequest'; +export * from './V1CreatePricingStrategyResponse'; +export * from './V1CreatePricingStrategyResponseResult'; +export * from './V1CreateStockByWarehouseReportRequest'; +export * from './V1CreateType'; +export * from './V1CreateWarehouseFBSRequest'; +export * from './V1CreateWarehouseFBSResponse'; +export * from './V1DayOfWeek'; +export * from './V1DeclineDiscountTasksRequest'; +export * from './V1DeclineDiscountTasksRequestTask'; +export * from './V1DeleteStrategyItemsResponse'; +export * from './V1DeleteStrategyItemsResponseResult'; +export * from './V1DeliveryCheckRequest'; +export * from './V1DeliveryCheckResponse'; +export * from './V1DeliveryCheckoutRequest'; +export * from './V1DeliveryCheckoutRequestDeliveryType'; +export * from './V1DeliveryCheckoutRequestItem'; +export * from './V1DeliveryCheckoutResponse'; +export * from './V1DeliveryDetailsDirectDetails'; +export * from './V1DeliveryDetailsPickUpDetails'; +export * from './V1DeliveryMapRequest'; +export * from './V1DeliveryMapRequestViewport'; +export * from './V1DeliveryMapResponse'; +export * from './V1DeliveryPointInfoRequest'; +export * from './V1DeliveryPointInfoResponse'; +export * from './V1DeliveryPointInfoResponsePoint'; +export * from './V1DeliveryPointListResponse'; +export * from './V1DeliveryPointListResponsePoint'; +export * from './V1DiscountTaskStatus'; +export * from './V1DraftClusterListRequest'; +export * from './V1DraftClusterListResponse'; +export * from './V1DraftClusterListResponseCluster'; +export * from './V1DraftClusterListResponseWarehouse'; +export * from './V1DraftCreateCommonResponse'; +export * from './V1DraftCrossdockCreateRequest'; +export * from './V1DraftCrossdockCreateRequestClusterInfo'; +export * from './V1DraftCrossdockCreateRequestClusterInfoItem'; +export * from './V1DraftCrossdockCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfo'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum'; +export * from './V1DraftDirectCreateRequest'; +export * from './V1DraftDirectCreateRequestClusterInfo'; +export * from './V1DraftDirectCreateRequestClusterInfoItem'; +export * from './V1DraftDirectCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftGetWarehouseFboListRequest'; +export * from './V1DraftGetWarehouseFboListResponse'; +export * from './V1DraftMultiClusterCreateRequest'; +export * from './V1DraftMultiClusterCreateRequestClusterInfo'; +export * from './V1DraftMultiClusterCreateRequestClusterInfoItem'; +export * from './V1DraftMultiClusterCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfo'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum'; +export * from './V1DraftStatusEnum'; +export * from './V1FbpArchiveGetRequest'; +export * from './V1FbpArchiveGetResponse'; +export * from './V1FbpArchiveListRequest'; +export * from './V1FbpArchiveListResponse'; +export * from './V1FbpArchiveListResponseItem'; +export * from './V1FbpAvailableTimeslotListRequest'; +export * from './V1FbpAvailableTimeslotListResponse'; +export * from './V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason'; +export * from './V1FbpCheckActStateRequest'; +export * from './V1FbpCheckActStateResponse'; +export * from './V1FbpCheckActStateResponseStatus'; +export * from './V1FbpCheckConsignmentNoteStateRequest'; +export * from './V1FbpCheckConsignmentNoteStateResponse'; +export * from './V1FbpCreateActRequest'; +export * from './V1FbpCreateActResponse'; +export * from './V1FbpCreateConsignmentNoteRequest'; +export * from './V1FbpCreateConsignmentNoteResponse'; +export * from './V1FbpCreateLabelRequest'; +export * from './V1FbpCreateLabelResponse'; +export * from './V1FbpDraftDirectCreateRequest'; +export * from './V1FbpDraftDirectCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectCreateResponse'; +export * from './V1FbpDraftDirectDeleteRequest'; +export * from './V1FbpDraftDirectDeleteResponse'; +export * from './V1FbpDraftDirectGetTimeslotRequest'; +export * from './V1FbpDraftDirectGetTimeslotResponse'; +export * from './V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason'; +export * from './V1FbpDraftDirectGetTimeslotResponseTimeslot'; +export * from './V1FbpDraftDirectProductValidateRequest'; +export * from './V1FbpDraftDirectProductValidateRequestSkuItem'; +export * from './V1FbpDraftDirectProductValidateResponse'; +export * from './V1FbpDraftDirectProductValidateResponseApprovedItem'; +export * from './V1FbpDraftDirectProductValidateResponseRejectedItem'; +export * from './V1FbpDraftDirectRegistrateRequest'; +export * from './V1FbpDraftDirectRegistrateResponse'; +export * from './V1FbpDraftDirectRegistrateResponseRegistrationError'; +export * from './V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftDirectSellerDlvCreateRequest'; +export * from './V1FbpDraftDirectSellerDlvCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectSellerDlvCreateResponse'; +export * from './V1FbpDraftDirectSellerDlvEditRequest'; +export * from './V1FbpDraftDirectSellerDlvEditResponse'; +export * from './V1FbpDraftDirectTimeslotEditRequest'; +export * from './V1FbpDraftDirectTimeslotEditResponse'; +export * from './V1FbpDraftDirectTimeslotEditResponseReserveFailureType'; +export * from './V1FbpDraftDirectTplDlvCreateRequest'; +export * from './V1FbpDraftDirectTplDlvCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectTplDlvCreateResponse'; +export * from './V1FbpDraftDirectTplDlvEditRequest'; +export * from './V1FbpDraftDirectTplDlvEditResponse'; +export * from './V1FbpDraftDropOffCreateRequest'; +export * from './V1FbpDraftDropOffCreateRequestDeliveryDetails'; +export * from './V1FbpDraftDropOffCreateResponse'; +export * from './V1FbpDraftDropOffDeleteRequest'; +export * from './V1FbpDraftDropOffDeleteResponse'; +export * from './V1FbpDraftDropOffDlvEditRequest'; +export * from './V1FbpDraftDropOffDlvEditResponse'; +export * from './V1FbpDraftDropOffPointListRequest'; +export * from './V1FbpDraftDropOffPointListResponse'; +export * from './V1FbpDraftDropOffPointTimetableRequest'; +export * from './V1FbpDraftDropOffPointTimetableResponse'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendar'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening'; +export * from './V1FbpDraftDropOffProductValidateRequest'; +export * from './V1FbpDraftDropOffProductValidateRequestSkuItem'; +export * from './V1FbpDraftDropOffProductValidateResponse'; +export * from './V1FbpDraftDropOffProductValidateResponseApprovedItem'; +export * from './V1FbpDraftDropOffProductValidateResponseRejectedItem'; +export * from './V1FbpDraftDropOffProvinceListRequest'; +export * from './V1FbpDraftDropOffProvinceListResponse'; +export * from './V1FbpDraftDropOffRegistrateRequest'; +export * from './V1FbpDraftDropOffRegistrateResponse'; +export * from './V1FbpDraftDropOffRegistrateResponseRegistrationError'; +export * from './V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftGetRequest'; +export * from './V1FbpDraftGetResponse'; +export * from './V1FbpDraftListRequest'; +export * from './V1FbpDraftListResponse'; +export * from './V1FbpDraftListResponseItem'; +export * from './V1FbpDraftPickUpDeleteRequest'; +export * from './V1FbpDraftPickUpDeleteResponse'; +export * from './V1FbpDraftPickUpProductValidateRequest'; +export * from './V1FbpDraftPickUpProductValidateRequestSkuItem'; +export * from './V1FbpDraftPickUpProductValidateResponse'; +export * from './V1FbpDraftPickUpProductValidateResponseApprovedItem'; +export * from './V1FbpDraftPickUpProductValidateResponseRejectedItem'; +export * from './V1FbpDraftPickUpRegistrateRequest'; +export * from './V1FbpDraftPickUpRegistrateResponse'; +export * from './V1FbpDraftPickUpRegistrateResponseRegistrationError'; +export * from './V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftPickupCreateRequest'; +export * from './V1FbpDraftPickupCreateRequestDeliveryDetails'; +export * from './V1FbpDraftPickupCreateResponse'; +export * from './V1FbpDraftPickupDlvEditRequest'; +export * from './V1FbpDraftPickupDlvEditRequestDeliveryDetails'; +export * from './V1FbpDraftPickupDlvEditResponse'; +export * from './V1FbpEditTimeslotRequest'; +export * from './V1FbpEditTimeslotResponse'; +export * from './V1FbpEditTimeslotResponseReserveFailureType'; +export * from './V1FbpGetLabelRequest'; +export * from './V1FbpGetLabelResponse'; +export * from './V1FbpOrderDirectCancelRequest'; +export * from './V1FbpOrderDirectCancelResponse'; +export * from './V1FbpOrderDirectSellerDlvEditRequest'; +export * from './V1FbpOrderDirectSellerDlvEditResponse'; +export * from './V1FbpOrderDropOffCancelRequest'; +export * from './V1FbpOrderDropOffCancelResponse'; +export * from './V1FbpOrderDropOffDlvEditRequest'; +export * from './V1FbpOrderDropOffDlvEditResponse'; +export * from './V1FbpOrderDropOffTimetableRequest'; +export * from './V1FbpOrderDropOffTimetableResponse'; +export * from './V1FbpOrderDropOffTimetableResponseCalendar'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItem'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak'; +export * from './V1FbpOrderGetRequest'; +export * from './V1FbpOrderGetResponse'; +export * from './V1FbpOrderListRequest'; +export * from './V1FbpOrderListResponse'; +export * from './V1FbpOrderListResponseItem'; +export * from './V1FbpOrderPickUpCancelRequest'; +export * from './V1FbpOrderPickUpCancelResponse'; +export * from './V1FbpOrderPickUpDlvEditRequest'; +export * from './V1FbpOrderPickUpDlvEditRequestPickUpDetails'; +export * from './V1FbpOrderPickUpDlvEditResponse'; +export * from './V1FbpWarehouseListResponse'; +export * from './V1FbsPostingProductExemplarUpdateRequest'; +export * from './V1GenerateBarcodeRequest'; +export * from './V1GenerateBarcodeResponse'; +export * from './V1GenerateBarcodeResult'; +export * from './V1GetAttributeValuesRequest'; +export * from './V1GetAttributeValuesResponse'; +export * from './V1GetAttributeValuesResponseDictionaryValue'; +export * from './V1GetAttributesRequest'; +export * from './V1GetAttributesResponse'; +export * from './V1GetAttributesResponseAttribute'; +export * from './V1GetCompensationReportRequest'; +export * from './V1GetCompetitorsRequest'; +export * from './V1GetCompetitorsResponse'; +export * from './V1GetDecompensationReportRequest'; +export * from './V1GetDeliveryMethodReturnSettingsV1Request'; +export * from './V1GetDeliveryMethodReturnSettingsV1Response'; +export * from './V1GetDiscountTaskListRequest'; +export * from './V1GetDiscountTaskListResponse'; +export * from './V1GetDiscountTaskListResponseTask'; +export * from './V1GetEtgbRequest'; +export * from './V1GetEtgbResponse'; +export * from './V1GetFBSRatingIndexInfoV1Response'; +export * from './V1GetFinanceBalanceV1Request'; +export * from './V1GetFinanceBalanceV1Response'; +export * from './V1GetFinanceBalanceV1ResponseAccruedMoney'; +export * from './V1GetFinanceBalanceV1ResponseClosingBalanceMoney'; +export * from './V1GetFinanceBalanceV1ResponseFeeMoney'; +export * from './V1GetFinanceBalanceV1ResponseOpeningBalanceMoney'; +export * from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +export * from './V1GetFinanceBalanceV1ResponsePaymentsMoney'; +export * from './V1GetFinanceBalanceV1ResponseReturnsMoney'; +export * from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +export * from './V1GetFinanceBalanceV1ResponseSalesMoney'; +export * from './V1GetFinanceBalanceV1ResponseServicesMoney'; +export * from './V1GetFinanceProductsBuyoutRequest'; +export * from './V1GetFinanceProductsBuyoutResponse'; +export * from './V1GetLabelBatchRequest'; +export * from './V1GetLabelBatchResponse'; +export * from './V1GetLabelBatchResponseResult'; +export * from './V1GetProductInfoDiscountedRequest'; +export * from './V1GetProductInfoDiscountedResponse'; +export * from './V1GetProductInfoDiscountedResponseItem'; +export * from './V1GetProductInfoSubscriptionRequest'; +export * from './V1GetProductInfoSubscriptionResponse'; +export * from './V1GetProductInfoSubscriptionResponseResult'; +export * from './V1GetProductPlacementZoneInfoRequest'; +export * from './V1GetProductPlacementZoneInfoResponse'; +export * from './V1GetProductRatingBySkuRequest'; +export * from './V1GetProductRatingBySkuResponse'; +export * from './V1GetProductStairwayDiscountByQuantityRequest'; +export * from './V1GetProductStairwayDiscountByQuantityResponse'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairways'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep'; +export * from './V1GetRealizationReportByDayRequest'; +export * from './V1GetRealizationReportPostingRequest'; +export * from './V1GetRealizationReportPostingResponse'; +export * from './V1GetRealizationReportPostingResponseRow'; +export * from './V1GetReceiptRequest'; +export * from './V1GetReceiptResponse'; +export * from './V1GetRestrictionsRequest'; +export * from './V1GetRestrictionsResponse'; +export * from './V1GetReturnsListRequest'; +export * from './V1GetReturnsListResponse'; +export * from './V1GetStrategyIDsByItemIDsResponse'; +export * from './V1GetStrategyIDsByItemIDsResponseResult'; +export * from './V1GetStrategyItemInfoRequest'; +export * from './V1GetStrategyItemInfoResponse'; +export * from './V1GetStrategyItemInfoResponseResult'; +export * from './V1GetStrategyItemsResponse'; +export * from './V1GetStrategyItemsResponseResult'; +export * from './V1GetStrategyListRequest'; +export * from './V1GetStrategyListResponse'; +export * from './V1GetStrategyResponse'; +export * from './V1GetStrategyResponseResult'; +export * from './V1GetSupplierReturnsSummaryReportRequest'; +export * from './V1GetSupplierReturnsSummaryReportResponse'; +export * from './V1GetSupplierReturnsSummaryReportResponseRow'; +export * from './V1GetSupplyOrderBundleRequest'; +export * from './V1GetSupplyOrderBundleResponse'; +export * from './V1GetSupplyOrderTimeslotStatusRequest'; +export * from './V1GetSupplyOrderTimeslotStatusResponse'; +export * from './V1GetSupplyOrderTimeslotStatusResponseStatus'; +export * from './V1GetSupplyOrderTimeslotsRequest'; +export * from './V1GetSupplyOrderTimeslotsResponse'; +export * from './V1GetSupplyReturnsSummaryReportRequest'; +export * from './V1GetSupplyReturnsSummaryReportResponse'; +export * from './V1GetSupplyReturnsSummaryReportResponseRow'; +export * from './V1GetTreeRequest'; +export * from './V1GetTreeResponse'; +export * from './V1GetTreeResponseItem'; +export * from './V1GetWarehouseFBSOperationStatusRequest'; +export * from './V1GetWarehouseFBSOperationStatusResponse'; +export * from './V1GiveoutBarcodeResetResponse'; +export * from './V1GiveoutGetBarcodeResponse'; +export * from './V1GiveoutGetPDFResponse'; +export * from './V1GiveoutGetPNGResponse'; +export * from './V1GiveoutInfoRequest'; +export * from './V1GiveoutInfoResponse'; +export * from './V1GiveoutIsEnabledResponse'; +export * from './V1GiveoutListRequest'; +export * from './V1GiveoutListResponse'; +export * from './V1InvoiceDeleteRequest'; +export * from './V1InvoiceDeleteResponse'; +export * from './V1InvoiceFileUploadRequest'; +export * from './V1InvoiceFileUploadResponse'; +export * from './V1InvoiceGetRequest'; +export * from './V1ItemError'; +export * from './V1ItemIDsRequest'; +export * from './V1ItemResponse'; +export * from './V1ItemSfboAttribute'; +export * from './V1ItemSortField'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseRequest'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponse'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum'; +export * from './V1ListDropOffPointsForUpdateFBSWarehouseRequest'; +export * from './V1ListDropOffPointsForUpdateFBSWarehouseResponse'; +export * from './V1ListFBSRatingIndexPostingsV1Request'; +export * from './V1ListFBSRatingIndexPostingsV1Response'; +export * from './V1ListPostingCodesRequest'; +export * from './V1ListPostingCodesResponse'; +export * from './V1Money'; +export * from './V1OrderAttentionTypeEnum'; +export * from './V1OrderCancelCheckRequest'; +export * from './V1OrderCancelCheckResponse'; +export * from './V1OrderCancelRequest'; +export * from './V1OrderCancelResponse'; +export * from './V1OrderCancelStatusRequest'; +export * from './V1OrderCancelStatusResponse'; +export * from './V1OrderCreateRequest'; +export * from './V1OrderCreateResponse'; +export * from './V1OrderDraftValidationError'; +export * from './V1OrderDraftValidationErrorErrorType'; +export * from './V1OrderErrorTypeEnum'; +export * from './V1OrderState'; +export * from './V1OrderStatusEnum'; +export * from './V1OrderValidationError'; +export * from './V1OrderValidationErrorErrorType'; +export * from './V1PolygonDeleteRequest'; +export * from './V1PolygonListRequest'; +export * from './V1PolygonListResponse'; +export * from './V1PolygonTimeCoordinatesUpdateRequest'; +export * from './V1PolygonTimeSetRequest'; +export * from './V1PostingCancelRequest'; +export * from './V1PostingCancelResponse'; +export * from './V1PostingCancelStatusRequest'; +export * from './V1PostingCancelStatusResponse'; +export * from './V1PostingFBSPickupCodeVerifyRequest'; +export * from './V1PostingFBSPickupCodeVerifyResponse'; +export * from './V1PostingFbsProductTraceableAttributeRequest'; +export * from './V1PostingFbsProductTraceableAttributeResponse'; +export * from './V1PostingFbsProductTraceableAttributeResponseProduct'; +export * from './V1PostingFbsSplitRequest'; +export * from './V1PostingFbsSplitRequestPosting'; +export * from './V1PostingFbsSplitResponse'; +export * from './V1PostingFbsSplitResponsePosting'; +export * from './V1PostingFbsSplitResponsePostingParent'; +export * from './V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval'; +export * from './V1PostingFbsTimeslotChangeRestrictionsRequest'; +export * from './V1PostingFbsTimeslotChangeRestrictionsResponse'; +export * from './V1PostingFbsTimeslotSetNewTimeslot'; +export * from './V1PostingFbsTimeslotSetRequest'; +export * from './V1PostingFbsTimeslotSetResponse'; +export * from './V1PostingFbsTraceableSplitRequest'; +export * from './V1PostingFbsTraceableSplitResponse'; +export * from './V1PostingFbsTraceableSplitResponsePosting'; +export * from './V1PostingMarksRequest'; +export * from './V1PostingMarksResponse'; +export * from './V1PostingUnpaidLegalProductListRequest'; +export * from './V1PostingUnpaidLegalProductListResponse'; +export * from './V1PostingUnpaidLegalProductListResponseProducts'; +export * from './V1PremiumScores'; +export * from './V1ProductActionTimerStatusRequest'; +export * from './V1ProductActionTimerStatusResponse'; +export * from './V1ProductActionTimerStatusResponseStatuses'; +export * from './V1ProductActionTimerUpdateRequest'; +export * from './V1ProductCertificateDeleteRequest'; +export * from './V1ProductCertificateDeleteResponse'; +export * from './V1ProductCertificateDeleteResponseResult'; +export * from './V1ProductCertificateInfoRequest'; +export * from './V1ProductCertificateInfoResponse'; +export * from './V1ProductCertificateListRequest'; +export * from './V1ProductCertificateListResponse'; +export * from './V1ProductCertificateListResponseResult'; +export * from './V1ProductCertificateProductStatusListResponse'; +export * from './V1ProductCertificateProductsListRequest'; +export * from './V1ProductCertificateProductsListResponse'; +export * from './V1ProductCertificateProductsListResponseResult'; +export * from './V1ProductCertificateRejectionReasonsListResponse'; +export * from './V1ProductCertificateStatusListResponse'; +export * from './V1ProductCertificateUnbindRequest'; +export * from './V1ProductCertificateUnbindResponse'; +export * from './V1ProductFbsSplit'; +export * from './V1ProductGetRelatedSKURequest'; +export * from './V1ProductGetRelatedSKUResponse'; +export * from './V1ProductGetRelatedSKUResponseError'; +export * from './V1ProductGetRelatedSKUResponseItem'; +export * from './V1ProductInfoWarehouseStocksRequest'; +export * from './V1ProductInfoWarehouseStocksResponse'; +export * from './V1ProductInfoWrongVolumeRequest'; +export * from './V1ProductInfoWrongVolumeResponse'; +export * from './V1ProductPricesDetailsRequest'; +export * from './V1ProductPricesDetailsResponse'; +export * from './V1ProductPricesDetailsResponsePrice'; +export * from './V1ProductUpdateAttributesRequest'; +export * from './V1ProductUpdateAttributesRequestAttribute'; +export * from './V1ProductUpdateAttributesRequestItem'; +export * from './V1ProductUpdateAttributesRequestValue'; +export * from './V1ProductUpdateAttributesResponse'; +export * from './V1ProductUpdateDiscountRequest'; +export * from './V1ProductUpdateDiscountResponse'; +export * from './V1ProductUpdateOfferIdRequest'; +export * from './V1ProductUpdateOfferIdResponse'; +export * from './V1ProductUpdateOfferIdResponseError'; +export * from './V1QuestionAnswerCreateDefault'; +export * from './V1QuestionAnswerCreateRequest'; +export * from './V1QuestionAnswerCreateResponse'; +export * from './V1QuestionAnswerDeleteRequest'; +export * from './V1QuestionAnswerListRequest'; +export * from './V1QuestionAnswerListResponse'; +export * from './V1QuestionAnswerListResponseAnswers'; +export * from './V1QuestionChangeStatusRequest'; +export * from './V1QuestionCountResponse'; +export * from './V1QuestionInfoRequest'; +export * from './V1QuestionInfoResponse'; +export * from './V1QuestionListRequest'; +export * from './V1QuestionListRequestFilter'; +export * from './V1QuestionListResponse'; +export * from './V1QuestionListResponseQuestions'; +export * from './V1QuestionTopSkuRequest'; +export * from './V1QuestionTopSkuResponse'; +export * from './V1Rating'; +export * from './V1RatingHistoryV1Request'; +export * from './V1RatingHistoryV1Response'; +export * from './V1RatingItem'; +export * from './V1RatingStatus'; +export * from './V1RatingSummaryV1Response'; +export * from './V1ReceiptsSellerListRequest'; +export * from './V1ReceiptsSellerListResponse'; +export * from './V1ReportMarkedProductsSalesCreateRequest'; +export * from './V1Restriction'; +export * from './V1ReturnsCompanyFbsInfoRequest'; +export * from './V1ReturnsCompanyFbsInfoRequestFilter'; +export * from './V1ReturnsCompanyFbsInfoResponse'; +export * from './V1ReturnsRfbsActionSetRequest'; +export * from './V1ReturnsSettingsUtilizationHistoryResponse'; +export * from './V1ReturnsSettingsUtilizationInfoResponse'; +export * from './V1ReturnsSettingsUtilizationUpdateRequest'; +export * from './V1ReviewChangeStatusRequest'; +export * from './V1ReviewCountResponse'; +export * from './V1ReviewInfoRequest'; +export * from './V1ReviewInfoResponse'; +export * from './V1ReviewListRequest'; +export * from './V1ReviewListResponse'; +export * from './V1RolesByTokenResponse'; +export * from './V1SearchAttributeValuesRequest'; +export * from './V1SearchAttributeValuesResponse'; +export * from './V1SearchQueriesTextRequest'; +export * from './V1SearchQueriesTextResponse'; +export * from './V1SearchQueriesTextResponseSearchQuery'; +export * from './V1SearchQueriesTopRequest'; +export * from './V1SearchQueriesTopResponse'; +export * from './V1SearchQueriesTopResponseSearchQuery'; +export * from './V1SellerActionsArchiveRequest'; +export * from './V1SellerActionsChangeActivityRequest'; +export * from './V1SellerActionsCreateDiscountRequest'; +export * from './V1SellerActionsCreateDiscountResponse'; +export * from './V1SellerActionsCreateDiscountWithConditionRequest'; +export * from './V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateDiscountWithConditionResponse'; +export * from './V1SellerActionsCreateInstallmentRequest'; +export * from './V1SellerActionsCreateInstallmentResponse'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequest'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateMultiLevelDiscountResponse'; +export * from './V1SellerActionsCreateVoucherRequest'; +export * from './V1SellerActionsCreateVoucherRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateVoucherRequestVoucherParameter'; +export * from './V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum'; +export * from './V1SellerActionsCreateVoucherResponse'; +export * from './V1SellerActionsListRequest'; +export * from './V1SellerActionsListResponse'; +export * from './V1SellerActionsProductsAddRequest'; +export * from './V1SellerActionsProductsAddRequestProduct'; +export * from './V1SellerActionsProductsCandidatesRequest'; +export * from './V1SellerActionsProductsCandidatesResponse'; +export * from './V1SellerActionsProductsCandidatesResponseProduct'; +export * from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +export * from './V1SellerActionsProductsDeleteRequest'; +export * from './V1SellerActionsProductsListRequest'; +export * from './V1SellerActionsProductsListResponse'; +export * from './V1SellerActionsProductsListResponseProduct'; +export * from './V1SellerActionsUpdateDiscountRequest'; +export * from './V1SellerActionsUpdateDiscountRequestActionParameters'; +export * from './V1SellerActionsUpdateDiscountWithConditionRequest'; +export * from './V1SellerActionsUpdateDiscountWithConditionRequestActionParameters'; +export * from './V1SellerActionsUpdateInstallmentRequest'; +export * from './V1SellerActionsUpdateInstallmentRequestActionParameters'; +export * from './V1SellerActionsUpdateMultiLevelDiscountRequest'; +export * from './V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters'; +export * from './V1SellerActionsUpdateVoucherRequest'; +export * from './V1SellerActionsUpdateVoucherRequestActionParameters'; +export * from './V1SellerActionsVoucherGetRequest'; +export * from './V1SellerActionsVoucherGetResponse'; +export * from './V1SellerInfoResponse'; +export * from './V1SellerOzonLogisticsInfoResponse'; +export * from './V1SetPostingCutoffRequest'; +export * from './V1SetPostingCutoffResponse'; +export * from './V1SetPostingsRequest'; +export * from './V1SetPostingsResponse'; +export * from './V1SetProductStairwayDiscountByQuantityRequest'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairways'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep'; +export * from './V1SetProductStairwayDiscountByQuantityResponse'; +export * from './V1SetProductStairwayDiscountByQuantityResponseError'; +export * from './V1SetVehicleError'; +export * from './V1StatusCodeNamePair'; +export * from './V1StatusCodeNamePairRejection'; +export * from './V1StatusCodeNamePairStatuses'; +export * from './V1StocksImportRequest'; +export * from './V1StocksImportResponse'; +export * from './V1StrategyRequest'; +export * from './V1SupplierAvailableWarehousesResponse'; +export * from './V1SupplyOrderCancelRequest'; +export * from './V1SupplyOrderCancelResponse'; +export * from './V1SupplyOrderCancelStatusRequest'; +export * from './V1SupplyOrderCancelStatusResponse'; +export * from './V1SupplyOrderCancelStatusResponseStatus'; +export * from './V1SupplyOrderContentUpdateRequest'; +export * from './V1SupplyOrderContentUpdateRequestItem'; +export * from './V1SupplyOrderContentUpdateResponse'; +export * from './V1SupplyOrderContentUpdateResponseErrorEnum'; +export * from './V1SupplyOrderContentUpdateStatusRequest'; +export * from './V1SupplyOrderContentUpdateStatusResponse'; +export * from './V1SupplyOrderContentUpdateStatusResponseErrorEnum'; +export * from './V1SupplyOrderContentUpdateValidationRequest'; +export * from './V1SupplyOrderContentUpdateValidationResponse'; +export * from './V1SupplyOrderDetailsRequest'; +export * from './V1SupplyOrderDetailsResponse'; +export * from './V1SupplyOrderDetailsResponseTimeslot'; +export * from './V1SupplyOrderPassCreateRequest'; +export * from './V1SupplyOrderPassCreateResponse'; +export * from './V1SupplyOrderPassStatusRequest'; +export * from './V1SupplyOrderPassStatusResponse'; +export * from './V1SupplyOrderPassStatusResponseStatus'; +export * from './V1SupplyOrderStatusCounterResponse'; +export * from './V1SupplyOrderStatusCounterResponseItem'; +export * from './V1SupplyOrderTimeslot'; +export * from './V1TimeRangeReturnDate'; +export * from './V1TimeRangeStorageTariffication'; +export * from './V1TimeRangeVisualStatus'; +export * from './V1Timezone'; +export * from './V1UnarchiveWarehouseFBSRequest'; +export * from './V1UnarchiveWarehouseFBSResponse'; +export * from './V1UpdatePricingStrategyRequest'; +export * from './V1UpdateStatusStrategyRequest'; +export * from './V1UpdateSupplyOrderTimeslotRequest'; +export * from './V1UpdateSupplyOrderTimeslotResponse'; +export * from './V1UpdateTimeslotError'; +export * from './V1UpdateWarehouseFBSFirstMileRequest'; +export * from './V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum'; +export * from './V1UpdateWarehouseFBSFirstMileResponse'; +export * from './V1UpdateWarehouseFBSRequest'; +export * from './V1UpdateWarehouseFBSRequestAddressCoordinates'; +export * from './V1UpdateWarehouseFBSRequestOptions'; +export * from './V1UpdateWarehouseFBSRequestWorkingDaysEnum'; +export * from './V1UpdateWarehouseFBSResponse'; +export * from './V1UploadPostingCodesRequest'; +export * from './V1UploadPostingCodesResponse'; +export * from './V1UploadReceiptRequestTypeEnum'; +export * from './V1UploadReceiptResponse'; +export * from './V1VehicleInfo'; +export * from './V1WarehouseERFBSAggregatorCreateRequest'; +export * from './V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSAggregatorCreateRequestHolidays'; +export * from './V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSAggregatorCreateRequestWorkingDays'; +export * from './V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSAggregatorCreateResponse'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequest'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestHolidays'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSNonIntegratedCreateResponse'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse'; +export * from './V1WarehouseERFBSUpdateRequest'; +export * from './V1WarehouseERFBSUpdateRequestHolidays'; +export * from './V1WarehouseERFBSUpdateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSUpdateRequestWorkingDays'; +export * from './V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSUpdateResponse'; +export * from './V1WarehouseFBSCreateReturnPointListRequest'; +export * from './V1WarehouseFBSCreateReturnPointListRequestCoordinates'; +export * from './V1WarehouseFBSCreateReturnPointListRequestSearch'; +export * from './V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum'; +export * from './V1WarehouseFBSCreateReturnPointListResponse'; +export * from './V1WarehouseFBSCreateReturnPointListResponseCoordinates'; +export * from './V1WarehouseFBSCreateReturnPointListResponseReturnPoint'; +export * from './V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSCreateReturnPointListResponseWorkingDays'; +export * from './V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFBSReturnMileInfoRequest'; +export * from './V1WarehouseFBSReturnMileInfoResponse'; +export * from './V1WarehouseFBSReturnMileInfoResponseCoordinates'; +export * from './V1WarehouseFBSReturnMileInfoResponseReturnPoint'; +export * from './V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSReturnMileInfoResponseWorkingDays'; +export * from './V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListRequest'; +export * from './V1WarehouseFBSUpdateReturnPointListRequestSearch'; +export * from './V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListResponse'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseCoordinates'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseReturnPoint'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDays'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFboSellerListResponse'; +export * from './V1WarehouseFboSellerListResponseWarehouse'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListRequest'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListResponse'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListRequest'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListResponse'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsPickUpCourierCancelRequest'; +export * from './V1WarehouseFbsPickUpCourierCreateRequest'; +export * from './V1WarehouseFbsPickUpHistoryListRequest'; +export * from './V1WarehouseFbsPickUpHistoryListRequestFilter'; +export * from './V1WarehouseFbsPickUpHistoryListResponse'; +export * from './V1WarehouseFbsPickUpHistoryListResponseResult'; +export * from './V1WarehouseFbsPickUpPlanningListResponse'; +export * from './V1WarehouseFbsPickUpPlanningListResponseResult'; +export * from './V1WarehouseFbsReturnMileCheckRequest'; +export * from './V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum'; +export * from './V1WarehouseFbsReturnMileCheckResponse'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListRequest'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListResponse'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListRequest'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListResponse'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot'; +export * from './V1WarehouseInvalidProductsGetRequest'; +export * from './V1WarehouseInvalidProductsGetResponse'; +export * from './V1WarehouseListRequest'; +export * from './V1WarehouseListRequestWith'; +export * from './V1WarehouseOZONListRequest'; +export * from './V1WarehouseOZONListRequestWarehouseTypeEnum'; +export * from './V1WarehouseOZONListResponse'; +export * from './V1WarehouseOZONListResponseWarehouse'; +export * from './V1WarehouseWithInvalidProductsResponse'; +export * from './V1fbpDeliveryDetails'; +export * from './V1fbpTimeslot'; +export * from './V2AdditionalDataItem'; +export * from './V2CancellationInitiatorEnum'; +export * from './V2CancellationStateEnum'; +export * from './V2CancellationStateEnumFilters'; +export * from './V2CargoesCreateErrors'; +export * from './V2CargoesCreateInfoV2Request'; +export * from './V2CargoesCreateInfoV2Response'; +export * from './V2CarriageDeliveryListV2Request'; +export * from './V2CarriageDeliveryListV2Response'; +export * from './V2ChatReadResponse'; +export * from './V2ConditionalCancellationMoveV2Request'; +export * from './V2CreateLabelBatchResponse'; +export * from './V2CreateLabelBatchResponseResult'; +export * from './V2CreateLabelBatchResponseResultTasks'; +export * from './V2DeliveryCheckoutRequestV2DeliverySchemaEnum'; +export * from './V2DeliveryMethodListV2Request'; +export * from './V2DeliveryMethodListV2Response'; +export * from './V2DraftClusterListResponse'; +export * from './V2DraftClusterListResponseResult'; +export * from './V2DraftCreateInfoRequest'; +export * from './V2DraftCreateInfoResponse'; +export * from './V2DraftCreateInfoResponseStatusEnum'; +export * from './V2DraftSupplyCreateRequest'; +export * from './V2DraftSupplyCreateRequestSelectedClusterWarehouse'; +export * from './V2DraftSupplyCreateRequestTimeslot'; +export * from './V2DraftSupplyCreateResponse'; +export * from './V2DraftSupplyCreateResponseErrorReasonEnum'; +export * from './V2DraftSupplyCreateStatusRequest'; +export * from './V2DraftSupplyCreateStatusResponse'; +export * from './V2DraftSupplyCreateStatusResponseErrorReasonEnum'; +export * from './V2DraftSupplyCreateStatusResponseStatusEnum'; +export * from './V2DraftTimeslotInfoRequest'; +export * from './V2DraftTimeslotInfoRequestSelectedClusterWarehouse'; +export * from './V2DraftTimeslotInfoResponse'; +export * from './V2DraftTimeslotInfoResponseErrorReasonEnum'; +export * from './V2FboPosting'; +export * from './V2FboPostingListResponse'; +export * from './V2FboPostingResponse'; +export * from './V2FboPostingV2'; +export * from './V2FboSinglePostingLegalInfo'; +export * from './V2FbsPosting'; +export * from './V2FbsPostingProduct'; +export * from './V2FbsPostingProductCountryListRequest'; +export * from './V2FbsPostingProductCountryListResponse'; +export * from './V2FbsPostingProductCountryListResponseResult'; +export * from './V2FbsPostingProductCountrySetRequest'; +export * from './V2FbsPostingProductCountrySetResponse'; +export * from './V2FbsPostingResponse'; +export * from './V2GetConditionalCancellationListV2Request'; +export * from './V2GetConditionalCancellationListV2Response'; +export * from './V2GetDiscountTaskListV2Request'; +export * from './V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum'; +export * from './V2GetDiscountTaskListV2Response'; +export * from './V2GetProductInfoStocksByWarehouseFbsRequestV2'; +export * from './V2GetProductInfoStocksByWarehouseFbsResponseV2'; +export * from './V2GetProductInfoStocksByWarehouseFbsResponseV2Product'; +export * from './V2GetRealizationReportRequestV2'; +export * from './V2GetRealizationReportResponseV2'; +export * from './V2HsCode'; +export * from './V2InvoiceCreateOrUpdateV2Request'; +export * from './V2InvoiceCreateOrUpdateV2Response'; +export * from './V2InvoiceGetV2Response'; +export * from './V2MovePostingToAwaitingDeliveryRequest'; +export * from './V2PolygonBindRequest'; +export * from './V2PostingFBSActGetPostingsRequest'; +export * from './V2PostingFBSActGetPostingsResponse'; +export * from './V2PostingFBSActGetPostingsResult'; +export * from './V2PostingFBSActGetProducts'; +export * from './V2PostingFBSActListFilter'; +export * from './V2PostingFBSActListRelatedDocs'; +export * from './V2PostingFBSActListRelatedDocsActOfAcceptance'; +export * from './V2PostingFBSActListRelatedDocsActOfExcess'; +export * from './V2PostingFBSActListRelatedDocsActOfMismatch'; +export * from './V2PostingFBSActListRequest'; +export * from './V2PostingFBSActListResponse'; +export * from './V2PostingFBSActListResult'; +export * from './V2PostingFBSDigitalActCheckStatusRequest'; +export * from './V2PostingFBSDigitalActCheckStatusResponse'; +export * from './V2PostingFBSGetBarcodeRequest'; +export * from './V2PostingFBSGetBarcodeResponse'; +export * from './V2PostingFBSGetBarcodeTextResponse'; +export * from './V2PostingFBSGetDigitalActRequest'; +export * from './V2PostingFBSGetDigitalActResponse'; +export * from './V2PostingFinancialDataFBO'; +export * from './V2PostingFinancialDataFBOV2'; +export * from './V2PostingProduct'; +export * from './V2Product'; +export * from './V2ProductCertificateAccordanceTypesResponse'; +export * from './V2ProductCertificateAccordanceTypesResponseResult'; +export * from './V2ProductCertificateAccordanceTypesResponseType'; +export * from './V2ProductCertificationListRequest'; +export * from './V2ProductCertificationListResponse'; +export * from './V2ProductInfoPicturesRequest'; +export * from './V2ProductInfoPicturesResponse'; +export * from './V2ProductInfoPicturesResponseError'; +export * from './V2ProductInfoPicturesResponseItem'; +export * from './V2ReportReturnsCreateRequest'; +export * from './V2ReportReturnsCreateRequestFilter'; +export * from './V2ReportReturnsCreateResponse'; +export * from './V2ReturnsRfbsFilter'; +export * from './V2ReturnsRfbsGetRequest'; +export * from './V2ReturnsRfbsGetResponse'; +export * from './V2ReturnsRfbsGetV2ResponseState'; +export * from './V2ReturnsRfbsListRequest'; +export * from './V2ReturnsRfbsListResponse'; +export * from './V2ReturnsRfbsListV2ResponseState'; +export * from './V2WarehouseListV2Request'; +export * from './V2WarehouseListV2Response'; +export * from './V3AdditionalDataItem'; +export * from './V3Address'; +export * from './V3Addressee'; +export * from './V3AddresseeFbsLists'; +export * from './V3Barcodes'; +export * from './V3Cancellation'; +export * from './V3ChatDetailsInfo'; +export * from './V3ChatHistoryRequest'; +export * from './V3ChatHistoryResponse'; +export * from './V3ChatInfo'; +export * from './V3ChatList'; +export * from './V3ChatListRequestFilter'; +export * from './V3ChatListRequestFilterChatStatus'; +export * from './V3ChatListResponse'; +export * from './V3ChatMessage'; +export * from './V3Customer'; +export * from './V3CustomerFbsLists'; +export * from './V3DeliveryMethod'; +export * from './V3Dimensions'; +export * from './V3FbsPosting'; +export * from './V3FbsPostingAnalyticsData'; +export * from './V3FbsPostingDetail'; +export * from './V3FbsPostingDetailOptional'; +export * from './V3FbsPostingDetailRelatedPostings'; +export * from './V3FbsPostingExemplarProductV3'; +export * from './V3FbsPostingProduct'; +export * from './V3FbsPostingProductExemplarInfoV3'; +export * from './V3FbsPostingProductExemplarsV3'; +export * from './V3FbsPostingRequirementsV3'; +export * from './V3FbsTariffication'; +export * from './V3FinanceCashFlowStatementListRequest'; +export * from './V3FinanceCashFlowStatementListResponse'; +export * from './V3FinanceCashFlowStatementListResponsePeriod'; +export * from './V3FinanceCashFlowStatementListResponseResult'; +export * from './V3GetFbsPostingListResponseV3'; +export * from './V3GetFbsPostingListResponseV3Result'; +export * from './V3GetFbsPostingResponseV3'; +export * from './V3GetProductInfoListRequest'; +export * from './V3GetProductInfoListResponse'; +export * from './V3GetProductInfoListResponseItem'; +export * from './V3GetProductInfoListResponsePromotion'; +export * from './V3GetProductInfoListResponsePromotionType'; +export * from './V3ImportProductsRequest'; +export * from './V3ImportProductsRequestAttribute'; +export * from './V3ImportProductsRequestComplexAttribute'; +export * from './V3ImportProductsRequestDictionaryValue'; +export * from './V3ImportProductsRequestItem'; +export * from './V3ImportProductsResponse'; +export * from './V3ImportProductsResponseResult'; +export * from './V3PostingFinancialData'; +export * from './V3PostingProductDetail'; +export * from './V3ServiceType'; +export * from './V3SupplyOrderGetRequest'; +export * from './V3SupplyOrderGetResponse'; +export * from './V3SupplyOrderListRequest'; +export * from './V3SupplyOrderListResponse'; +export * from './V3TimeRange'; +export * from './V3User'; +export * from './V4FbsPostingShipPackageV4Request'; +export * from './V4FbsPostingShipPackageV4RequestProduct'; +export * from './V4FbsPostingShipPackageV4Response'; +export * from './V4GetProductAttributesResponseModelInfo'; +export * from './V4GetProductAttributesResponsePdf'; +export * from './V4GetProductInfoStocksRequest'; +export * from './V4GetProductInfoStocksRequestFilter'; +export * from './V4GetProductInfoStocksResponse'; +export * from './V4GetProductInfoStocksResponseItem'; +export * from './V4GetUploadQuotaResponse'; +export * from './V4Visibility'; +export * from './V5FbsPostingProductExemplarStatusV5Request'; +export * from './V5FbsPostingProductExemplarStatusV5Response'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProduct'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplar'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark'; +export * from './V5FbsPostingProductExemplarValidateV5Request'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProduct'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProductExemplar'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark'; +export * from './V5FbsPostingProductExemplarValidateV5Response'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProduct'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplar'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark'; +export * from './V6FbsPostingProductExemplarCreateOrGetV6Request'; +export * from './V6FbsPostingProductExemplarCreateOrGetV6Response'; +export * from './V6FbsPostingProductExemplarSetV6Request'; +export * from './ValidationErrorCharacteristicEnum'; +export * from './ValidationResultItem'; +export * from './ValidationResultItemStateEnum'; +export * from './ValidationResultValidationError'; +export * from './ValidationResultValidationErrorTypeEnum'; +export * from './ValueCargoType'; +export * from './ValueItem'; +export * from './ValueTimezoneInfo'; +export * from './VehicleCanNotSetVehicleReasonEnum'; +export * from './WarehouseAddress'; +export * from './WarehouseAddressCoordinates'; +export * from './WarehouseAddressInfo'; +export * from './WarehouseAvailabilityStatus'; +export * from './WarehouseCarriageLabelTypeEnum'; +export * from './WarehouseContacts'; +export * from './WarehouseDeliveryMethodListRequest'; +export * from './WarehouseDeliveryMethodListResponse'; +export * from './WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts'; +export * from './WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings'; +export * from './WarehouseFbsPickUpHistoryListResponseHistoryEntity'; +export * from './WarehouseFbsPickUpPlanningListResponseResultWarehouse'; +export * from './WarehouseFirstMile'; +export * from './WarehouseFirstMileType'; +export * from './WarehouseInvalidProductsGetResponseValidationResult'; +export * from './WarehouseListResponseWarehouse'; +export * from './WarehouseListV2ResponseWarehouse'; +export * from './WarehouseOZONListResponseWarehouseWarehouseTypeEnum'; +export * from './WarehouseStorageWarehouse'; +export * from './WarehouseSupplyTagEnum'; +export * from './WarehouseTimetable'; +export * from './WarehouseV1WarehouseRfbsPauseRequest'; +export * from './WarehouseV1WarehouseRfbsPauseResponse'; +export * from './WarehouseV1WarehouseRfbsUnpauseRequest'; +export * from './WarehouseV1WarehouseRfbsUnpauseResponse'; +export * from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint'; +export * from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates'; +export * from './WarehouseWarehouseListResponse'; +export * from './WarehouseWorkingDay'; +export * from './WarehouseWorkingDayDayEnum'; +export * from './WarehouseWorkingDaysEnum'; +export * from './WorkingHoursPeriods'; diff --git a/dist/esm/runtime.d.ts b/dist/esm/runtime.d.ts new file mode 100644 index 0000000..59b5797 --- /dev/null +++ b/dist/esm/runtime.d.ts @@ -0,0 +1,181 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export declare const BASE_PATH: string; +export interface ConfigurationParameters { + basePath?: string; + fetchApi?: FetchAPI; + middleware?: Middleware[]; + queryParamsStringify?: (params: HTTPQuery) => string; + username?: string; + password?: string; + apiKey?: string | Promise | ((name: string) => string | Promise); + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); + headers?: HTTPHeaders; + credentials?: RequestCredentials; +} +export declare class Configuration { + private configuration; + constructor(configuration?: ConfigurationParameters); + set config(configuration: Configuration); + get basePath(): string; + get fetchApi(): FetchAPI | undefined; + get middleware(): Middleware[]; + get queryParamsStringify(): (params: HTTPQuery) => string; + get username(): string | undefined; + get password(): string | undefined; + get apiKey(): ((name: string) => string | Promise) | undefined; + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; + get headers(): HTTPHeaders | undefined; + get credentials(): RequestCredentials | undefined; +} +export declare const DefaultConfig: Configuration; +/** + * This is the base class for all generated API classes. + */ +export declare class BaseAPI { + protected configuration: Configuration; + private static readonly jsonRegex; + private middleware; + constructor(configuration?: Configuration); + withMiddleware(this: T, ...middlewares: Middleware[]): T; + withPreMiddleware(this: T, ...preMiddlewares: Array): T; + withPostMiddleware(this: T, ...postMiddlewares: Array): T; + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean; + protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise; + private createFetchParams; + private fetchApi; + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone; +} +export declare class ResponseError extends Error { + response: Response; + name: "ResponseError"; + constructor(response: Response, msg?: string); +} +export declare class FetchError extends Error { + cause: Error; + name: "FetchError"; + constructor(cause: Error, msg?: string); +} +export declare class RequiredError extends Error { + field: string; + name: "RequiredError"; + constructor(field: string, msg?: string); +} +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { + [key: string]: string; +}; +export type HTTPQuery = { + [key: string]: string | number | null | boolean | Array | Set | HTTPQuery; +}; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { + headers?: HTTPHeaders; + method: HTTPMethod; + credentials?: RequestCredentials; + body?: HTTPBody; +}; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; +export type InitOverrideFunction = (requestContext: { + init: HTTPRequestInit; + context: RequestOpts; +}) => Promise; +export interface FetchParams { + url: string; + init: RequestInit; +} +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} +export declare function querystring(params: HTTPQuery, prefix?: string): string; +export declare function mapValues(data: any, fn: (item: any) => any): {}; +export declare function canConsumeForm(consumes: Consume[]): boolean; +export interface Consume { + contentType: string; +} +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} +export interface ApiResponse { + raw: Response; + value(): Promise; +} +export interface ResponseTransformer { + (json: any): T; +} +export declare class JSONApiResponse { + raw: Response; + private transformer; + constructor(raw: Response, transformer?: ResponseTransformer); + value(): Promise; +} +export declare class VoidApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class BlobApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class TextApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} diff --git a/dist/esm/runtime.js b/dist/esm/runtime.js new file mode 100644 index 0000000..a4b2031 --- /dev/null +++ b/dist/esm/runtime.js @@ -0,0 +1,326 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +export const BASE_PATH = "http://api-seller.ozon.ru".replace(/\/+$/, ""); +export class Configuration { + constructor(configuration = {}) { + this.configuration = configuration; + } + set config(configuration) { + this.configuration = configuration; + } + get basePath() { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + get fetchApi() { + return this.configuration.fetchApi; + } + get middleware() { + return this.configuration.middleware || []; + } + get queryParamsStringify() { + return this.configuration.queryParamsStringify || querystring; + } + get username() { + return this.configuration.username; + } + get password() { + return this.configuration.password; + } + get apiKey() { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + get accessToken() { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; }); + } + return undefined; + } + get headers() { + return this.configuration.headers; + } + get credentials() { + return this.configuration.credentials; + } +} +export const DefaultConfig = new Configuration(); +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + constructor(configuration = DefaultConfig) { + this.configuration = configuration; + this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams; + } + } + let response = undefined; + try { + response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } + catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = (yield middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + })) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); + } + else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = (yield middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + })) || response; + } + } + return response; + }); + this.middleware = configuration.middleware; + } + withMiddleware(...middlewares) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + withPreMiddleware(...preMiddlewares) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + withPostMiddleware(...postMiddlewares) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + request(context, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const { url, init } = yield this.createFetchParams(context, initOverrides); + const response = yield this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + }); + } + createFetchParams(context, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + const initOverrideFn = typeof initOverrides === "function" + ? initOverrides + : () => __awaiter(this, void 0, void 0, function* () { return initOverrides; }); + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({ + init: initParams, + context, + }))); + let body; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } + else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } + else { + body = overriddenInit.body; + } + const init = Object.assign(Object.assign({}, overriddenInit), { body }); + return { url, init }; + }); + } + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + clone() { + const constructor = this.constructor; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +} +BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); +; +function isBlob(value) { + return typeof Blob !== 'undefined' && value instanceof Blob; +} +function isFormData(value) { + return typeof FormData !== "undefined" && value instanceof FormData; +} +export class ResponseError extends Error { + constructor(response, msg) { + super(msg); + this.response = response; + this.name = "ResponseError"; + } +} +export class FetchError extends Error { + constructor(cause, msg) { + super(msg); + this.cause = cause; + this.name = "FetchError"; + } +} +export class RequiredError extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } +} +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +export function querystring(params, prefix = '') { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} +function querystringSingleKey(key, value, keyPrefix = '') { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} +export function mapValues(data, fn) { + return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {}); +} +export function canConsumeForm(consumes) { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} +export class JSONApiResponse { + constructor(raw, transformer = (jsonValue) => jsonValue) { + this.raw = raw; + this.transformer = transformer; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return this.transformer(yield this.raw.json()); + }); + } +} +export class VoidApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return undefined; + }); + } +} +export class BlobApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return yield this.raw.blob(); + }); + } + ; +} +export class TextApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return yield this.raw.text(); + }); + } + ; +} diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..f6e3226 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,3 @@ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..495d716 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,21 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +/* tslint:disable */ +/* eslint-disable */ +__exportStar(require("./runtime"), exports); +__exportStar(require("./apis/index"), exports); +__exportStar(require("./models/index"), exports); diff --git a/dist/models/ActionParameter.d.ts b/dist/models/ActionParameter.d.ts new file mode 100644 index 0000000..6545a67 --- /dev/null +++ b/dist/models/ActionParameter.d.ts @@ -0,0 +1,141 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ParameterAutoStopActionReasonEnum } from './ParameterAutoStopActionReasonEnum'; +import type { SellerActionsListRequestStatusEnum } from './SellerActionsListRequestStatusEnum'; +import type { ParameterDiscountLevels } from './ParameterDiscountLevels'; +import type { ActionParameterDiscountTypeEnum } from './ActionParameterDiscountTypeEnum'; +import type { ParameterPickedSegment } from './ParameterPickedSegment'; +import type { SellerActionsListRequestActionTypeEnum } from './SellerActionsListRequestActionTypeEnum'; +import type { ActionParameterVoucherParameter } from './ActionParameterVoucherParameter'; +/** + * Параметры акции. + * @export + * @interface ActionParameter + */ +export interface ActionParameter { + /** + * Список адресов. + * @type {Array} + * @memberof ActionParameter + */ + addresses?: Array; + /** + * + * @type {ParameterAutoStopActionReasonEnum} + * @memberof ActionParameter + */ + auto_stop_action_reason?: ParameterAutoStopActionReasonEnum; + /** + * Бюджет акции. Если бюджет закончится, акция остановится. + * @type {number} + * @memberof ActionParameter + */ + budget?: number; + /** + * Расходы бюджета акции. + * @type {number} + * @memberof ActionParameter + */ + budget_spent?: number; + /** + * Дата и время окончания акции. + * @type {string} + * @memberof ActionParameter + */ + date_end?: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof ActionParameter + */ + date_start?: string; + /** + * Уровни скидки. + * @type {Array} + * @memberof ActionParameter + */ + discount_levels?: Array; + /** + * + * @type {ActionParameterDiscountTypeEnum} + * @memberof ActionParameter + */ + discount_type?: ActionParameterDiscountTypeEnum; + /** + * Размер скидки. Если механика акции «Беспроцентная рассрочка», вернётся период рассрочки. + * @type {number} + * @memberof ActionParameter + */ + discount_value?: number; + /** + * `true`, если акция для юридических лиц. + * + * @type {boolean} + * @memberof ActionParameter + */ + is_legal_entities_segment?: boolean; + /** + * Минимальный процент скидки. + * @type {number} + * @memberof ActionParameter + */ + min_action_percent?: number; + /** + * Сумма заказа, с которой действует скидка. + * @type {number} + * @memberof ActionParameter + */ + min_order_amount?: number; + /** + * Список сегментов аудиторий. + * @type {Array} + * @memberof ActionParameter + */ + picked_segments?: Array; + /** + * + * @type {SellerActionsListRequestStatusEnum} + * @memberof ActionParameter + */ + status?: SellerActionsListRequestStatusEnum; + /** + * Название акции. + * @type {string} + * @memberof ActionParameter + */ + title?: string; + /** + * + * @type {SellerActionsListRequestActionTypeEnum} + * @memberof ActionParameter + */ + type?: SellerActionsListRequestActionTypeEnum; + /** + * + * @type {ActionParameterVoucherParameter} + * @memberof ActionParameter + */ + voucher_parameters?: ActionParameterVoucherParameter; + /** + * Список складов. + * @type {Array} + * @memberof ActionParameter + */ + warehouses?: Array; +} +/** + * Check if a given object implements the ActionParameter interface. + */ +export declare function instanceOfActionParameter(value: object): value is ActionParameter; +export declare function ActionParameterFromJSON(json: any): ActionParameter; +export declare function ActionParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionParameter; +export declare function ActionParameterToJSON(value?: ActionParameter | null): any; diff --git a/dist/models/ActionParameter.js b/dist/models/ActionParameter.js new file mode 100644 index 0000000..6d841ef --- /dev/null +++ b/dist/models/ActionParameter.js @@ -0,0 +1,85 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionParameter = instanceOfActionParameter; +exports.ActionParameterFromJSON = ActionParameterFromJSON; +exports.ActionParameterFromJSONTyped = ActionParameterFromJSONTyped; +exports.ActionParameterToJSON = ActionParameterToJSON; +const ParameterAutoStopActionReasonEnum_1 = require("./ParameterAutoStopActionReasonEnum"); +const SellerActionsListRequestStatusEnum_1 = require("./SellerActionsListRequestStatusEnum"); +const ParameterDiscountLevels_1 = require("./ParameterDiscountLevels"); +const ActionParameterDiscountTypeEnum_1 = require("./ActionParameterDiscountTypeEnum"); +const ParameterPickedSegment_1 = require("./ParameterPickedSegment"); +const SellerActionsListRequestActionTypeEnum_1 = require("./SellerActionsListRequestActionTypeEnum"); +const ActionParameterVoucherParameter_1 = require("./ActionParameterVoucherParameter"); +/** + * Check if a given object implements the ActionParameter interface. + */ +function instanceOfActionParameter(value) { + return true; +} +function ActionParameterFromJSON(json) { + return ActionParameterFromJSONTyped(json, false); +} +function ActionParameterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'addresses': json['addresses'] == null ? undefined : json['addresses'], + 'auto_stop_action_reason': json['auto_stop_action_reason'] == null ? undefined : (0, ParameterAutoStopActionReasonEnum_1.ParameterAutoStopActionReasonEnumFromJSON)(json['auto_stop_action_reason']), + 'budget': json['budget'] == null ? undefined : json['budget'], + 'budget_spent': json['budget_spent'] == null ? undefined : json['budget_spent'], + 'date_end': json['date_end'] == null ? undefined : json['date_end'], + 'date_start': json['date_start'] == null ? undefined : json['date_start'], + 'discount_levels': json['discount_levels'] == null ? undefined : (json['discount_levels'].map(ParameterDiscountLevels_1.ParameterDiscountLevelsFromJSON)), + 'discount_type': json['discount_type'] == null ? undefined : (0, ActionParameterDiscountTypeEnum_1.ActionParameterDiscountTypeEnumFromJSON)(json['discount_type']), + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + 'is_legal_entities_segment': json['is_legal_entities_segment'] == null ? undefined : json['is_legal_entities_segment'], + 'min_action_percent': json['min_action_percent'] == null ? undefined : json['min_action_percent'], + 'min_order_amount': json['min_order_amount'] == null ? undefined : json['min_order_amount'], + 'picked_segments': json['picked_segments'] == null ? undefined : (json['picked_segments'].map(ParameterPickedSegment_1.ParameterPickedSegmentFromJSON)), + 'status': json['status'] == null ? undefined : (0, SellerActionsListRequestStatusEnum_1.SellerActionsListRequestStatusEnumFromJSON)(json['status']), + 'title': json['title'] == null ? undefined : json['title'], + 'type': json['type'] == null ? undefined : (0, SellerActionsListRequestActionTypeEnum_1.SellerActionsListRequestActionTypeEnumFromJSON)(json['type']), + 'voucher_parameters': json['voucher_parameters'] == null ? undefined : (0, ActionParameterVoucherParameter_1.ActionParameterVoucherParameterFromJSON)(json['voucher_parameters']), + 'warehouses': json['warehouses'] == null ? undefined : json['warehouses'], + }; +} +function ActionParameterToJSON(value) { + if (value == null) { + return value; + } + return { + 'addresses': value['addresses'], + 'auto_stop_action_reason': (0, ParameterAutoStopActionReasonEnum_1.ParameterAutoStopActionReasonEnumToJSON)(value['auto_stop_action_reason']), + 'budget': value['budget'], + 'budget_spent': value['budget_spent'], + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_levels': value['discount_levels'] == null ? undefined : (value['discount_levels'].map(ParameterDiscountLevels_1.ParameterDiscountLevelsToJSON)), + 'discount_type': (0, ActionParameterDiscountTypeEnum_1.ActionParameterDiscountTypeEnumToJSON)(value['discount_type']), + 'discount_value': value['discount_value'], + 'is_legal_entities_segment': value['is_legal_entities_segment'], + 'min_action_percent': value['min_action_percent'], + 'min_order_amount': value['min_order_amount'], + 'picked_segments': value['picked_segments'] == null ? undefined : (value['picked_segments'].map(ParameterPickedSegment_1.ParameterPickedSegmentToJSON)), + 'status': (0, SellerActionsListRequestStatusEnum_1.SellerActionsListRequestStatusEnumToJSON)(value['status']), + 'title': value['title'], + 'type': (0, SellerActionsListRequestActionTypeEnum_1.SellerActionsListRequestActionTypeEnumToJSON)(value['type']), + 'voucher_parameters': (0, ActionParameterVoucherParameter_1.ActionParameterVoucherParameterToJSON)(value['voucher_parameters']), + 'warehouses': value['warehouses'], + }; +} diff --git a/dist/models/ActionParameterDiscountTypeEnum.d.ts b/dist/models/ActionParameterDiscountTypeEnum.d.ts new file mode 100644 index 0000000..53b797f --- /dev/null +++ b/dist/models/ActionParameterDiscountTypeEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `UNSPECIFIED` — не определён; + * - `RUB` — скидка в рублях; + * - `PERCENT` — скидка в процентах; + * - `FINAL_PRICE` — финальная цена; + * - `INSTALLED_PERIOD` — период рассрочки; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export declare const ActionParameterDiscountTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly RUB: "RUB"; + readonly PERCENT: "PERCENT"; + readonly FINAL_PRICE: "FINAL_PRICE"; + readonly INSTALLED_PERIOD: "INSTALLED_PERIOD"; + readonly CURRENCY: "CURRENCY"; +}; +export type ActionParameterDiscountTypeEnum = typeof ActionParameterDiscountTypeEnum[keyof typeof ActionParameterDiscountTypeEnum]; +export declare function instanceOfActionParameterDiscountTypeEnum(value: any): boolean; +export declare function ActionParameterDiscountTypeEnumFromJSON(json: any): ActionParameterDiscountTypeEnum; +export declare function ActionParameterDiscountTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionParameterDiscountTypeEnum; +export declare function ActionParameterDiscountTypeEnumToJSON(value?: ActionParameterDiscountTypeEnum | null): any; diff --git a/dist/models/ActionParameterDiscountTypeEnum.js b/dist/models/ActionParameterDiscountTypeEnum.js new file mode 100644 index 0000000..3dc3223 --- /dev/null +++ b/dist/models/ActionParameterDiscountTypeEnum.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActionParameterDiscountTypeEnum = void 0; +exports.instanceOfActionParameterDiscountTypeEnum = instanceOfActionParameterDiscountTypeEnum; +exports.ActionParameterDiscountTypeEnumFromJSON = ActionParameterDiscountTypeEnumFromJSON; +exports.ActionParameterDiscountTypeEnumFromJSONTyped = ActionParameterDiscountTypeEnumFromJSONTyped; +exports.ActionParameterDiscountTypeEnumToJSON = ActionParameterDiscountTypeEnumToJSON; +/** + * Тип скидки: + * - `UNSPECIFIED` — не определён; + * - `RUB` — скидка в рублях; + * - `PERCENT` — скидка в процентах; + * - `FINAL_PRICE` — финальная цена; + * - `INSTALLED_PERIOD` — период рассрочки; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +exports.ActionParameterDiscountTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + RUB: 'RUB', + PERCENT: 'PERCENT', + FINAL_PRICE: 'FINAL_PRICE', + INSTALLED_PERIOD: 'INSTALLED_PERIOD', + CURRENCY: 'CURRENCY' +}; +function instanceOfActionParameterDiscountTypeEnum(value) { + for (const key in exports.ActionParameterDiscountTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ActionParameterDiscountTypeEnum, key)) { + if (exports.ActionParameterDiscountTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ActionParameterDiscountTypeEnumFromJSON(json) { + return ActionParameterDiscountTypeEnumFromJSONTyped(json, false); +} +function ActionParameterDiscountTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ActionParameterDiscountTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ActionParameterVoucherParameter.d.ts b/dist/models/ActionParameterVoucherParameter.d.ts new file mode 100644 index 0000000..566884e --- /dev/null +++ b/dist/models/ActionParameterVoucherParameter.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionParameterVoucherParameterTypeEnum } from './ActionParameterVoucherParameterTypeEnum'; +/** + * Параметры промокодов. + * @export + * @interface ActionParameterVoucherParameter + */ +export interface ActionParameterVoucherParameter { + /** + * Коды промокодов. + * @type {number} + * @memberof ActionParameterVoucherParameter + */ + count_codes?: number; + /** + * `true`, если промокод не в открытом доступе. + * + * @type {boolean} + * @memberof ActionParameterVoucherParameter + */ + is_private?: boolean; + /** + * + * @type {ActionParameterVoucherParameterTypeEnum} + * @memberof ActionParameterVoucherParameter + */ + type?: ActionParameterVoucherParameterTypeEnum; +} +/** + * Check if a given object implements the ActionParameterVoucherParameter interface. + */ +export declare function instanceOfActionParameterVoucherParameter(value: object): value is ActionParameterVoucherParameter; +export declare function ActionParameterVoucherParameterFromJSON(json: any): ActionParameterVoucherParameter; +export declare function ActionParameterVoucherParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionParameterVoucherParameter; +export declare function ActionParameterVoucherParameterToJSON(value?: ActionParameterVoucherParameter | null): any; diff --git a/dist/models/ActionParameterVoucherParameter.js b/dist/models/ActionParameterVoucherParameter.js new file mode 100644 index 0000000..f571d2c --- /dev/null +++ b/dist/models/ActionParameterVoucherParameter.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionParameterVoucherParameter = instanceOfActionParameterVoucherParameter; +exports.ActionParameterVoucherParameterFromJSON = ActionParameterVoucherParameterFromJSON; +exports.ActionParameterVoucherParameterFromJSONTyped = ActionParameterVoucherParameterFromJSONTyped; +exports.ActionParameterVoucherParameterToJSON = ActionParameterVoucherParameterToJSON; +const ActionParameterVoucherParameterTypeEnum_1 = require("./ActionParameterVoucherParameterTypeEnum"); +/** + * Check if a given object implements the ActionParameterVoucherParameter interface. + */ +function instanceOfActionParameterVoucherParameter(value) { + return true; +} +function ActionParameterVoucherParameterFromJSON(json) { + return ActionParameterVoucherParameterFromJSONTyped(json, false); +} +function ActionParameterVoucherParameterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_codes': json['count_codes'] == null ? undefined : json['count_codes'], + 'is_private': json['is_private'] == null ? undefined : json['is_private'], + 'type': json['type'] == null ? undefined : (0, ActionParameterVoucherParameterTypeEnum_1.ActionParameterVoucherParameterTypeEnumFromJSON)(json['type']), + }; +} +function ActionParameterVoucherParameterToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_codes': value['count_codes'], + 'is_private': value['is_private'], + 'type': (0, ActionParameterVoucherParameterTypeEnum_1.ActionParameterVoucherParameterTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/ActionParameterVoucherParameterTypeEnum.d.ts b/dist/models/ActionParameterVoucherParameterTypeEnum.d.ts new file mode 100644 index 0000000..d1d91eb --- /dev/null +++ b/dist/models/ActionParameterVoucherParameterTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип промокода: + * - `UNSPECIFIED` — не определён; + * - `ONE` — промокод для всех покупателей на 1 заказ; + * - `MULTIPLE` — промокод для всех покупателей на любое количество заказов; + * - `UNIQUE` — промокод для 1 покупателя на 1 заказ. + * + * @export + */ +export declare const ActionParameterVoucherParameterTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ONE: "ONE"; + readonly MULTIPLE: "MULTIPLE"; + readonly UNIQUE: "UNIQUE"; +}; +export type ActionParameterVoucherParameterTypeEnum = typeof ActionParameterVoucherParameterTypeEnum[keyof typeof ActionParameterVoucherParameterTypeEnum]; +export declare function instanceOfActionParameterVoucherParameterTypeEnum(value: any): boolean; +export declare function ActionParameterVoucherParameterTypeEnumFromJSON(json: any): ActionParameterVoucherParameterTypeEnum; +export declare function ActionParameterVoucherParameterTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionParameterVoucherParameterTypeEnum; +export declare function ActionParameterVoucherParameterTypeEnumToJSON(value?: ActionParameterVoucherParameterTypeEnum | null): any; diff --git a/dist/models/ActionParameterVoucherParameterTypeEnum.js b/dist/models/ActionParameterVoucherParameterTypeEnum.js new file mode 100644 index 0000000..0fa4603 --- /dev/null +++ b/dist/models/ActionParameterVoucherParameterTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActionParameterVoucherParameterTypeEnum = void 0; +exports.instanceOfActionParameterVoucherParameterTypeEnum = instanceOfActionParameterVoucherParameterTypeEnum; +exports.ActionParameterVoucherParameterTypeEnumFromJSON = ActionParameterVoucherParameterTypeEnumFromJSON; +exports.ActionParameterVoucherParameterTypeEnumFromJSONTyped = ActionParameterVoucherParameterTypeEnumFromJSONTyped; +exports.ActionParameterVoucherParameterTypeEnumToJSON = ActionParameterVoucherParameterTypeEnumToJSON; +/** + * Тип промокода: + * - `UNSPECIFIED` — не определён; + * - `ONE` — промокод для всех покупателей на 1 заказ; + * - `MULTIPLE` — промокод для всех покупателей на любое количество заказов; + * - `UNIQUE` — промокод для 1 покупателя на 1 заказ. + * + * @export + */ +exports.ActionParameterVoucherParameterTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ONE: 'ONE', + MULTIPLE: 'MULTIPLE', + UNIQUE: 'UNIQUE' +}; +function instanceOfActionParameterVoucherParameterTypeEnum(value) { + for (const key in exports.ActionParameterVoucherParameterTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ActionParameterVoucherParameterTypeEnum, key)) { + if (exports.ActionParameterVoucherParameterTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ActionParameterVoucherParameterTypeEnumFromJSON(json) { + return ActionParameterVoucherParameterTypeEnumFromJSONTyped(json, false); +} +function ActionParameterVoucherParameterTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ActionParameterVoucherParameterTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.d.ts new file mode 100644 index 0000000..15d35b9 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsCandidatesRequest + */ +export interface ActionsV1ActionsAutoAddProductsCandidatesRequest { + /** + * Идентификатор акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesRequest + */ + action_id: number; + /** + * Дата и время автодобавления товаров в акцию из параметра `result.auto_add_dates` в ответе метода [/v1/actions](#operation/Promos). + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesRequest + */ + auto_add_date: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, ответ начнётся с 11-го найденного элемента. + * + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesRequest + */ + offset?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesRequest interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsCandidatesRequest(value: object): value is ActionsV1ActionsAutoAddProductsCandidatesRequest; +export declare function ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSON(json: any): ActionsV1ActionsAutoAddProductsCandidatesRequest; +export declare function ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsCandidatesRequest; +export declare function ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON(value?: ActionsV1ActionsAutoAddProductsCandidatesRequest | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.js b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.js new file mode 100644 index 0000000..63e514c --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsCandidatesRequest = instanceOfActionsV1ActionsAutoAddProductsCandidatesRequest; +exports.ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSON = ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSON; +exports.ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSONTyped = ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON = ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesRequest interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsCandidatesRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('auto_add_date' in value) || value['auto_add_date'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSON(json) { + return ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsCandidatesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'auto_add_date': json['auto_add_date'], + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function ActionsV1ActionsAutoAddProductsCandidatesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'auto_add_date': value['auto_add_date'], + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.d.ts new file mode 100644 index 0000000..27cf0e3 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsCandidatesResponseProducts } from './ActionsV1ActionsAutoAddProductsCandidatesResponseProducts'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsCandidatesResponse + */ +export interface ActionsV1ActionsAutoAddProductsCandidatesResponse { + /** + * Список доступных товаров для автодобавления. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponse + */ + products?: Array; + /** + * Общее количество товаров. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponse + */ + total?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesResponse interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsCandidatesResponse(value: object): value is ActionsV1ActionsAutoAddProductsCandidatesResponse; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON(json: any): ActionsV1ActionsAutoAddProductsCandidatesResponse; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsCandidatesResponse; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseToJSON(value?: ActionsV1ActionsAutoAddProductsCandidatesResponse | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.js b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.js new file mode 100644 index 0000000..cc52240 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsCandidatesResponse = instanceOfActionsV1ActionsAutoAddProductsCandidatesResponse; +exports.ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON = ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON; +exports.ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSONTyped = ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsCandidatesResponseToJSON = ActionsV1ActionsAutoAddProductsCandidatesResponseToJSON; +const ActionsV1ActionsAutoAddProductsCandidatesResponseProducts_1 = require("./ActionsV1ActionsAutoAddProductsCandidatesResponseProducts"); +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesResponse interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsCandidatesResponse(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSON(json) { + return ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsCandidatesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(ActionsV1ActionsAutoAddProductsCandidatesResponseProducts_1.ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function ActionsV1ActionsAutoAddProductsCandidatesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(ActionsV1ActionsAutoAddProductsCandidatesResponseProducts_1.ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.d.ts new file mode 100644 index 0000000..909486c --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.d.ts @@ -0,0 +1,103 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ +export interface ActionsV1ActionsAutoAddProductsCandidatesResponseProducts { + /** + * Цена товара по акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + action_price_to_auto_add?: number; + /** + * Цена товара до скидки. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + base_price?: number; + /** + * Валюта цен. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + currency?: string; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + marketplace_seller_price?: number; + /** + * Максимальная цена товара для автодобавления в акцию. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + max_discount_price?: number; + /** + * Минимальное число единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + min_action_quantity?: number; + /** + * Минимальная цена товара после применения акций. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + min_seller_price?: number; + /** + * Название товара. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + offer_id?: string; + /** + * Цена товара без скидки. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + product_id?: number; + /** + * Количество товара в акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + quantity_to_auto_add?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsCandidatesResponseProducts + */ + sku?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesResponseProducts interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsCandidatesResponseProducts(value: object): value is ActionsV1ActionsAutoAddProductsCandidatesResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON(json: any): ActionsV1ActionsAutoAddProductsCandidatesResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsCandidatesResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON(value?: ActionsV1ActionsAutoAddProductsCandidatesResponseProducts | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.js b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.js new file mode 100644 index 0000000..7d1c959 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsCandidatesResponseProducts.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsCandidatesResponseProducts = instanceOfActionsV1ActionsAutoAddProductsCandidatesResponseProducts; +exports.ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON = ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON; +exports.ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSONTyped = ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON = ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsCandidatesResponseProducts interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsCandidatesResponseProducts(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSON(json) { + return ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price_to_auto_add': json['action_price_to_auto_add'] == null ? undefined : json['action_price_to_auto_add'], + 'base_price': json['base_price'] == null ? undefined : json['base_price'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'marketplace_seller_price': json['marketplace_seller_price'] == null ? undefined : json['marketplace_seller_price'], + 'max_discount_price': json['max_discount_price'] == null ? undefined : json['max_discount_price'], + 'min_action_quantity': json['min_action_quantity'] == null ? undefined : json['min_action_quantity'], + 'min_seller_price': json['min_seller_price'] == null ? undefined : json['min_seller_price'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity_to_auto_add': json['quantity_to_auto_add'] == null ? undefined : json['quantity_to_auto_add'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function ActionsV1ActionsAutoAddProductsCandidatesResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price_to_auto_add': value['action_price_to_auto_add'], + 'base_price': value['base_price'], + 'currency': value['currency'], + 'marketplace_seller_price': value['marketplace_seller_price'], + 'max_discount_price': value['max_discount_price'], + 'min_action_quantity': value['min_action_quantity'], + 'min_seller_price': value['min_seller_price'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity_to_auto_add': value['quantity_to_auto_add'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsDeleteRequest.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsDeleteRequest.d.ts new file mode 100644 index 0000000..6f162d2 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsDeleteRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsDeleteRequest + */ +export interface ActionsV1ActionsAutoAddProductsDeleteRequest { + /** + * Идентификатор акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsDeleteRequest + */ + action_id?: number; + /** + * Дата и время автодобавления товаров в акцию из параметра `result.auto_add_dates` в ответе метода [/v1/actions](#operation/Promos). + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsDeleteRequest + */ + auto_add_date?: string; + /** + * Идентификаторы товаров в системе Ozon — `product_id`. + * + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsDeleteRequest + */ + product_ids?: Array; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsDeleteRequest interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsDeleteRequest(value: object): value is ActionsV1ActionsAutoAddProductsDeleteRequest; +export declare function ActionsV1ActionsAutoAddProductsDeleteRequestFromJSON(json: any): ActionsV1ActionsAutoAddProductsDeleteRequest; +export declare function ActionsV1ActionsAutoAddProductsDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsDeleteRequest; +export declare function ActionsV1ActionsAutoAddProductsDeleteRequestToJSON(value?: ActionsV1ActionsAutoAddProductsDeleteRequest | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsDeleteRequest.js b/dist/models/ActionsV1ActionsAutoAddProductsDeleteRequest.js new file mode 100644 index 0000000..bf8c952 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsDeleteRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsDeleteRequest = instanceOfActionsV1ActionsAutoAddProductsDeleteRequest; +exports.ActionsV1ActionsAutoAddProductsDeleteRequestFromJSON = ActionsV1ActionsAutoAddProductsDeleteRequestFromJSON; +exports.ActionsV1ActionsAutoAddProductsDeleteRequestFromJSONTyped = ActionsV1ActionsAutoAddProductsDeleteRequestFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsDeleteRequestToJSON = ActionsV1ActionsAutoAddProductsDeleteRequestToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsDeleteRequest interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsDeleteRequest(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsDeleteRequestFromJSON(json) { + return ActionsV1ActionsAutoAddProductsDeleteRequestFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'auto_add_date': json['auto_add_date'] == null ? undefined : json['auto_add_date'], + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + }; +} +function ActionsV1ActionsAutoAddProductsDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'auto_add_date': value['auto_add_date'], + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsDeleteResponse.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsDeleteResponse.d.ts new file mode 100644 index 0000000..f16dd3f --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsDeleteResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsDeleteResponse + */ +export interface ActionsV1ActionsAutoAddProductsDeleteResponse { + /** + * Идентификаторы товаров, которые удалены из автодобавления. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsDeleteResponse + */ + product_ids?: Array; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsDeleteResponse interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsDeleteResponse(value: object): value is ActionsV1ActionsAutoAddProductsDeleteResponse; +export declare function ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON(json: any): ActionsV1ActionsAutoAddProductsDeleteResponse; +export declare function ActionsV1ActionsAutoAddProductsDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsDeleteResponse; +export declare function ActionsV1ActionsAutoAddProductsDeleteResponseToJSON(value?: ActionsV1ActionsAutoAddProductsDeleteResponse | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsDeleteResponse.js b/dist/models/ActionsV1ActionsAutoAddProductsDeleteResponse.js new file mode 100644 index 0000000..b46c883 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsDeleteResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsDeleteResponse = instanceOfActionsV1ActionsAutoAddProductsDeleteResponse; +exports.ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON = ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON; +exports.ActionsV1ActionsAutoAddProductsDeleteResponseFromJSONTyped = ActionsV1ActionsAutoAddProductsDeleteResponseFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsDeleteResponseToJSON = ActionsV1ActionsAutoAddProductsDeleteResponseToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsDeleteResponse interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsDeleteResponse(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsDeleteResponseFromJSON(json) { + return ActionsV1ActionsAutoAddProductsDeleteResponseFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + }; +} +function ActionsV1ActionsAutoAddProductsDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsListRequest.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsListRequest.d.ts new file mode 100644 index 0000000..2179457 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsListRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsListRequest + */ +export interface ActionsV1ActionsAutoAddProductsListRequest { + /** + * Идентификатор акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListRequest + */ + action_id: number; + /** + * Дата и время автодобавления товаров в акцию из параметра `result.auto_add_dates` в ответе метода [/v1/actions](#operation/Promos). + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListRequest + */ + auto_add_date: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, ответ начнётся с 11-го найденного элемента. + * + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListRequest + */ + offset?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListRequest interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsListRequest(value: object): value is ActionsV1ActionsAutoAddProductsListRequest; +export declare function ActionsV1ActionsAutoAddProductsListRequestFromJSON(json: any): ActionsV1ActionsAutoAddProductsListRequest; +export declare function ActionsV1ActionsAutoAddProductsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsListRequest; +export declare function ActionsV1ActionsAutoAddProductsListRequestToJSON(value?: ActionsV1ActionsAutoAddProductsListRequest | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsListRequest.js b/dist/models/ActionsV1ActionsAutoAddProductsListRequest.js new file mode 100644 index 0000000..54c5bfa --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsListRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsListRequest = instanceOfActionsV1ActionsAutoAddProductsListRequest; +exports.ActionsV1ActionsAutoAddProductsListRequestFromJSON = ActionsV1ActionsAutoAddProductsListRequestFromJSON; +exports.ActionsV1ActionsAutoAddProductsListRequestFromJSONTyped = ActionsV1ActionsAutoAddProductsListRequestFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsListRequestToJSON = ActionsV1ActionsAutoAddProductsListRequestToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListRequest interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsListRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('auto_add_date' in value) || value['auto_add_date'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function ActionsV1ActionsAutoAddProductsListRequestFromJSON(json) { + return ActionsV1ActionsAutoAddProductsListRequestFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'auto_add_date': json['auto_add_date'], + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function ActionsV1ActionsAutoAddProductsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'auto_add_date': value['auto_add_date'], + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsListResponse.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsListResponse.d.ts new file mode 100644 index 0000000..425d60c --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsListResponseProducts } from './ActionsV1ActionsAutoAddProductsListResponseProducts'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsListResponse + */ +export interface ActionsV1ActionsAutoAddProductsListResponse { + /** + * Список товаров с автодобавлением. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsListResponse + */ + products?: Array; + /** + * Общее количество товаров. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponse + */ + total?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListResponse interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsListResponse(value: object): value is ActionsV1ActionsAutoAddProductsListResponse; +export declare function ActionsV1ActionsAutoAddProductsListResponseFromJSON(json: any): ActionsV1ActionsAutoAddProductsListResponse; +export declare function ActionsV1ActionsAutoAddProductsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsListResponse; +export declare function ActionsV1ActionsAutoAddProductsListResponseToJSON(value?: ActionsV1ActionsAutoAddProductsListResponse | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsListResponse.js b/dist/models/ActionsV1ActionsAutoAddProductsListResponse.js new file mode 100644 index 0000000..2b7d975 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsListResponse = instanceOfActionsV1ActionsAutoAddProductsListResponse; +exports.ActionsV1ActionsAutoAddProductsListResponseFromJSON = ActionsV1ActionsAutoAddProductsListResponseFromJSON; +exports.ActionsV1ActionsAutoAddProductsListResponseFromJSONTyped = ActionsV1ActionsAutoAddProductsListResponseFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsListResponseToJSON = ActionsV1ActionsAutoAddProductsListResponseToJSON; +const ActionsV1ActionsAutoAddProductsListResponseProducts_1 = require("./ActionsV1ActionsAutoAddProductsListResponseProducts"); +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListResponse interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsListResponse(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsListResponseFromJSON(json) { + return ActionsV1ActionsAutoAddProductsListResponseFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(ActionsV1ActionsAutoAddProductsListResponseProducts_1.ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function ActionsV1ActionsAutoAddProductsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(ActionsV1ActionsAutoAddProductsListResponseProducts_1.ActionsV1ActionsAutoAddProductsListResponseProductsToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsListResponseProducts.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsListResponseProducts.d.ts new file mode 100644 index 0000000..c062642 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsListResponseProducts.d.ts @@ -0,0 +1,107 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsListResponseProducts + */ +export interface ActionsV1ActionsAutoAddProductsListResponseProducts { + /** + * Цена товара по акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + action_price_to_auto_add?: number; + /** + * Тип добавления товара в акцию: + * - `AUTO` — автоматически; + * - `MANUAL` — вручную продавцом. + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + add_mode?: string; + /** + * Валюта цен. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + currency?: string; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + marketplace_seller_price?: number; + /** + * Максимальная цена товара для автодобавления в акцию. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + max_discount_price?: number; + /** + * Минимальное число единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + min_action_quantity?: number; + /** + * Минимальная цена товара после применения акций. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + min_seller_price?: number; + /** + * Название товара. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + offer_id?: string; + /** + * Цена товара без скидки. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + product_id?: number; + /** + * Количество товара в акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + quantity_to_auto_add?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsListResponseProducts + */ + sku?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListResponseProducts interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsListResponseProducts(value: object): value is ActionsV1ActionsAutoAddProductsListResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON(json: any): ActionsV1ActionsAutoAddProductsListResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsListResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsListResponseProducts; +export declare function ActionsV1ActionsAutoAddProductsListResponseProductsToJSON(value?: ActionsV1ActionsAutoAddProductsListResponseProducts | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsListResponseProducts.js b/dist/models/ActionsV1ActionsAutoAddProductsListResponseProducts.js new file mode 100644 index 0000000..f1b71b7 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsListResponseProducts.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsListResponseProducts = instanceOfActionsV1ActionsAutoAddProductsListResponseProducts; +exports.ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON = ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON; +exports.ActionsV1ActionsAutoAddProductsListResponseProductsFromJSONTyped = ActionsV1ActionsAutoAddProductsListResponseProductsFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsListResponseProductsToJSON = ActionsV1ActionsAutoAddProductsListResponseProductsToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsListResponseProducts interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsListResponseProducts(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsListResponseProductsFromJSON(json) { + return ActionsV1ActionsAutoAddProductsListResponseProductsFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsListResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price_to_auto_add': json['action_price_to_auto_add'] == null ? undefined : json['action_price_to_auto_add'], + 'add_mode': json['add_mode'] == null ? undefined : json['add_mode'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'marketplace_seller_price': json['marketplace_seller_price'] == null ? undefined : json['marketplace_seller_price'], + 'max_discount_price': json['max_discount_price'] == null ? undefined : json['max_discount_price'], + 'min_action_quantity': json['min_action_quantity'] == null ? undefined : json['min_action_quantity'], + 'min_seller_price': json['min_seller_price'] == null ? undefined : json['min_seller_price'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity_to_auto_add': json['quantity_to_auto_add'] == null ? undefined : json['quantity_to_auto_add'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function ActionsV1ActionsAutoAddProductsListResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price_to_auto_add': value['action_price_to_auto_add'], + 'add_mode': value['add_mode'], + 'currency': value['currency'], + 'marketplace_seller_price': value['marketplace_seller_price'], + 'max_discount_price': value['max_discount_price'], + 'min_action_quantity': value['min_action_quantity'], + 'min_seller_price': value['min_seller_price'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity_to_auto_add': value['quantity_to_auto_add'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequest.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequest.d.ts new file mode 100644 index 0000000..f7f4118 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate } from './ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateRequest + */ +export interface ActionsV1ActionsAutoAddProductsUpdateRequest { + /** + * Идентификатор акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequest + */ + action_id?: number; + /** + * Дата и время автодобавления товаров в акцию из параметра `result.auto_add_dates` в ответе метода [/v1/actions](#operation/Promos). + * + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequest + */ + auto_add_date?: string; + /** + * Список товаров, которые нужно добавить или обновить в автодобавлении. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequest + */ + to_update?: Array; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateRequest interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateRequest(value: object): value is ActionsV1ActionsAutoAddProductsUpdateRequest; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateRequest; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateRequest; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateRequest | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequest.js b/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequest.js new file mode 100644 index 0000000..382e1a6 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequest.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsUpdateRequest = instanceOfActionsV1ActionsAutoAddProductsUpdateRequest; +exports.ActionsV1ActionsAutoAddProductsUpdateRequestFromJSON = ActionsV1ActionsAutoAddProductsUpdateRequestFromJSON; +exports.ActionsV1ActionsAutoAddProductsUpdateRequestFromJSONTyped = ActionsV1ActionsAutoAddProductsUpdateRequestFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsUpdateRequestToJSON = ActionsV1ActionsAutoAddProductsUpdateRequestToJSON; +const ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate_1 = require("./ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate"); +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateRequest interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsUpdateRequest(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsUpdateRequestFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateRequestFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'auto_add_date': json['auto_add_date'] == null ? undefined : json['auto_add_date'], + 'to_update': json['to_update'] == null ? undefined : (json['to_update'].map(ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate_1.ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON)), + }; +} +function ActionsV1ActionsAutoAddProductsUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'auto_add_date': value['auto_add_date'], + 'to_update': value['to_update'] == null ? undefined : (value['to_update'].map(ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate_1.ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON)), + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.d.ts new file mode 100644 index 0000000..d9c3572 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ +export interface ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate { + /** + * Цена товара по акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ + action_price?: number; + /** + * Валюта цены. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ + currency?: string; + /** + * Идентификатор товара, который нужно добавить или обновить. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ + product_id?: number; + /** + * Количество товаров в акции. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate + */ + quantity?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateRequestToUpdate(value: object): value is ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate; +export declare function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.js b/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.js new file mode 100644 index 0000000..d74dd00 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsUpdateRequestToUpdate = instanceOfActionsV1ActionsAutoAddProductsUpdateRequestToUpdate; +exports.ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON = ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON; +exports.ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSONTyped = ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON = ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsUpdateRequestToUpdate(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price': json['action_price'] == null ? undefined : json['action_price'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + }; +} +function ActionsV1ActionsAutoAddProductsUpdateRequestToUpdateToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price': value['action_price'], + 'currency': value['currency'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponse.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponse.d.ts new file mode 100644 index 0000000..ef65414 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponse.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsUpdateResponseRejected } from './ActionsV1ActionsAutoAddProductsUpdateResponseRejected'; +import type { ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice } from './ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice'; +import type { ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice } from './ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice'; +import type { ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice } from './ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponse + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponse { + /** + * Список товаров с ценой ниже минимальной. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + below_min_price?: Array; + /** + * Список товаров со скидкой больше 70%. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + extremely_low_price?: Array; + /** + * Список товаров, которые не прошли валидацию по цене. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + failed_price?: Array; + /** + * Идентификаторы товаров, которые не получилось добавить или обновить. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + rejected?: Array; + /** + * Идентификаторы товаров, которые получилось добавить или обновить. + * @type {Array} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponse + */ + updated_ids?: Array; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponse interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponse(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponse; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponse; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponse; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponse | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponse.js b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponse.js new file mode 100644 index 0000000..1552429 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponse.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsUpdateResponse = instanceOfActionsV1ActionsAutoAddProductsUpdateResponse; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON = ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseFromJSONTyped = ActionsV1ActionsAutoAddProductsUpdateResponseFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseToJSON = ActionsV1ActionsAutoAddProductsUpdateResponseToJSON; +const ActionsV1ActionsAutoAddProductsUpdateResponseRejected_1 = require("./ActionsV1ActionsAutoAddProductsUpdateResponseRejected"); +const ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice_1 = require("./ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice"); +const ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice_1 = require("./ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice"); +const ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice_1 = require("./ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice"); +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponse interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsUpdateResponse(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'below_min_price': json['below_min_price'] == null ? undefined : (json['below_min_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice_1.ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON)), + 'extremely_low_price': json['extremely_low_price'] == null ? undefined : (json['extremely_low_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice_1.ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON)), + 'failed_price': json['failed_price'] == null ? undefined : (json['failed_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice_1.ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON)), + 'rejected': json['rejected'] == null ? undefined : (json['rejected'].map(ActionsV1ActionsAutoAddProductsUpdateResponseRejected_1.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON)), + 'updated_ids': json['updated_ids'] == null ? undefined : json['updated_ids'], + }; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'below_min_price': value['below_min_price'] == null ? undefined : (value['below_min_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice_1.ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON)), + 'extremely_low_price': value['extremely_low_price'] == null ? undefined : (value['extremely_low_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice_1.ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON)), + 'failed_price': value['failed_price'] == null ? undefined : (value['failed_price'].map(ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice_1.ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON)), + 'rejected': value['rejected'] == null ? undefined : (value['rejected'].map(ActionsV1ActionsAutoAddProductsUpdateResponseRejected_1.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON)), + 'updated_ids': value['updated_ids'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.d.ts new file mode 100644 index 0000000..020afee --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice + */ + key?: number; + /** + * Цена товара. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice + */ + value?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.js b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.js new file mode 100644 index 0000000..778b814 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice = instanceOfActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON = ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSONTyped = ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON = ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.d.ts new file mode 100644 index 0000000..5c71e9b --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice + */ + key?: number; + /** + * Цена товара. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice + */ + value?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.js b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.js new file mode 100644 index 0000000..0160a25 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice = instanceOfActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON = ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSONTyped = ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON = ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.d.ts new file mode 100644 index 0000000..0b25117 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice + */ + key?: number; + /** + * Значение проблемной цены: + * - Если цена товара больше `max_discount_price` — значение параметра `max_discount_price`; + * - Если скидка на товар больше 95% — цена со скидкой 95%. + * + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice + */ + value?: number; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.js b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.js new file mode 100644 index 0000000..7142c7c --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice = instanceOfActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON = ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSONTyped = ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON = ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON; +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseFailedPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.d.ts new file mode 100644 index 0000000..45ea26e --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum } from './ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum'; +/** + * + * @export + * @interface ActionsV1ActionsAutoAddProductsUpdateResponseRejected + */ +export interface ActionsV1ActionsAutoAddProductsUpdateResponseRejected { + /** + * + * @type {ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseRejected + */ + code?: ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseRejected + */ + product_id?: number; + /** + * Причина, по которой не получилось добавить или обновить товар. + * @type {string} + * @memberof ActionsV1ActionsAutoAddProductsUpdateResponseRejected + */ + reason?: string; +} +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseRejected interface. + */ +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejected(value: object): value is ActionsV1ActionsAutoAddProductsUpdateResponseRejected; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseRejected; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseRejected; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseRejected | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.js b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.js new file mode 100644 index 0000000..bcdc900 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejected.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejected = instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejected; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON = ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSONTyped = ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON = ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON; +const ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum_1 = require("./ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum"); +/** + * Check if a given object implements the ActionsV1ActionsAutoAddProductsUpdateResponseRejected interface. + */ +function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejected(value) { + return true; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : (0, ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum_1.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON)(json['code']), + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': (0, ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum_1.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON)(value['code']), + 'product_id': value['product_id'], + 'reason': value['reason'], + }; +} diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.d.ts b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.d.ts new file mode 100644 index 0000000..493c39b --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Код ошибки: + * - `NOT_FOUND` — товар не найден; + * - `NO_CHANGES` — нет изменений; + * - `STOCK_REQUIRED` — остатков товара не хватит для акции; + * - `INVALID_ACTION_PRICE` — некорректная цена по акции; + * - `MAX_ACTION_PRICE` — цена по акции выше максимальной; + * - `REJECTED_LOW_PRICE` — цена по акции ниже минимальной; + * - `INVALID_CURRENCY` — некорректная валюта. + * + * @export + */ +export declare const ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum: { + readonly NOT_FOUND: "NOT_FOUND"; + readonly NO_CHANGES: "NO_CHANGES"; + readonly STOCK_REQUIRED: "STOCK_REQUIRED"; + readonly INVALID_ACTION_PRICE: "INVALID_ACTION_PRICE"; + readonly MAX_ACTION_PRICE: "MAX_ACTION_PRICE"; + readonly REJECTED_LOW_PRICE: "REJECTED_LOW_PRICE"; + readonly INVALID_CURRENCY: "INVALID_CURRENCY"; +}; +export type ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum = typeof ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum[keyof typeof ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum]; +export declare function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum(value: any): boolean; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON(json: any): ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum; +export declare function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON(value?: ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum | null): any; diff --git a/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.js b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.js new file mode 100644 index 0000000..5234387 --- /dev/null +++ b/dist/models/ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum = void 0; +exports.instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum = instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON = ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSONTyped = ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSONTyped; +exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON = ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON; +/** + * Код ошибки: + * - `NOT_FOUND` — товар не найден; + * - `NO_CHANGES` — нет изменений; + * - `STOCK_REQUIRED` — остатков товара не хватит для акции; + * - `INVALID_ACTION_PRICE` — некорректная цена по акции; + * - `MAX_ACTION_PRICE` — цена по акции выше максимальной; + * - `REJECTED_LOW_PRICE` — цена по акции ниже минимальной; + * - `INVALID_CURRENCY` — некорректная валюта. + * + * @export + */ +exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum = { + NOT_FOUND: 'NOT_FOUND', + NO_CHANGES: 'NO_CHANGES', + STOCK_REQUIRED: 'STOCK_REQUIRED', + INVALID_ACTION_PRICE: 'INVALID_ACTION_PRICE', + MAX_ACTION_PRICE: 'MAX_ACTION_PRICE', + REJECTED_LOW_PRICE: 'REJECTED_LOW_PRICE', + INVALID_CURRENCY: 'INVALID_CURRENCY' +}; +function instanceOfActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum(value) { + for (const key in exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum, key)) { + if (exports.ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSON(json) { + return ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSONTyped(json, false); +} +function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnumToJSON(value) { + return value; +} diff --git a/dist/models/AddStrategyItemsResponseError.d.ts b/dist/models/AddStrategyItemsResponseError.d.ts new file mode 100644 index 0000000..dcc8067 --- /dev/null +++ b/dist/models/AddStrategyItemsResponseError.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AddStrategyItemsResponseError + */ +export interface AddStrategyItemsResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof AddStrategyItemsResponseError + */ + code?: string; + /** + * Текст ошибки. + * @type {string} + * @memberof AddStrategyItemsResponseError + */ + error?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof AddStrategyItemsResponseError + */ + product_id?: number; +} +/** + * Check if a given object implements the AddStrategyItemsResponseError interface. + */ +export declare function instanceOfAddStrategyItemsResponseError(value: object): value is AddStrategyItemsResponseError; +export declare function AddStrategyItemsResponseErrorFromJSON(json: any): AddStrategyItemsResponseError; +export declare function AddStrategyItemsResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddStrategyItemsResponseError; +export declare function AddStrategyItemsResponseErrorToJSON(value?: AddStrategyItemsResponseError | null): any; diff --git a/dist/models/AddStrategyItemsResponseError.js b/dist/models/AddStrategyItemsResponseError.js new file mode 100644 index 0000000..6d79c2b --- /dev/null +++ b/dist/models/AddStrategyItemsResponseError.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAddStrategyItemsResponseError = instanceOfAddStrategyItemsResponseError; +exports.AddStrategyItemsResponseErrorFromJSON = AddStrategyItemsResponseErrorFromJSON; +exports.AddStrategyItemsResponseErrorFromJSONTyped = AddStrategyItemsResponseErrorFromJSONTyped; +exports.AddStrategyItemsResponseErrorToJSON = AddStrategyItemsResponseErrorToJSON; +/** + * Check if a given object implements the AddStrategyItemsResponseError interface. + */ +function instanceOfAddStrategyItemsResponseError(value) { + return true; +} +function AddStrategyItemsResponseErrorFromJSON(json) { + return AddStrategyItemsResponseErrorFromJSONTyped(json, false); +} +function AddStrategyItemsResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'error': json['error'] == null ? undefined : json['error'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +function AddStrategyItemsResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'error': value['error'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/AnalyticsAnalyticsGetDataRequest.d.ts b/dist/models/AnalyticsAnalyticsGetDataRequest.d.ts new file mode 100644 index 0000000..8e24c2a --- /dev/null +++ b/dist/models/AnalyticsAnalyticsGetDataRequest.d.ts @@ -0,0 +1,125 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsFilter } from './AnalyticsFilter'; +import type { SellerServiceanalyticsDimension } from './SellerServiceanalyticsDimension'; +import type { AnalyticsSorting } from './AnalyticsSorting'; +/** + * + * @export + * @interface AnalyticsAnalyticsGetDataRequest + */ +export interface AnalyticsAnalyticsGetDataRequest { + /** + * Дата, с которой будут данные в отчёте. + * + * Если у вас нет Premium-подписки, укажите дату в пределах последних трёх месяцев. + * + * @type {string} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + date_from: string; + /** + * Дата, по которую будут данные в отчёте. + * @type {string} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + date_to: string; + /** + * Группировка данных в отчёте. + * + * Способы группировки, доступные всем продавцам: + * - `unknownDimension` — неизвестное измерение; + * - `sku` — идентификатор товара; + * - `spu` — идентификатор товара — объединённая карточка; + * - `day` — день; + * - `week` — неделя; + * - `month` — месяц. + * + * Способы группировки, доступные только продавцам с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): + * - `year` — год; + * - `category1` — категория первого уровня; + * - `category2` — категория второго уровня; + * - `brand` — бренд; + * - `modelID` — модель; + * - `descriptionType` — тип товара. + * + * @type {Array} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + dimension: Array; + /** + * Фильтры. + * @type {Array} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + filters?: Array; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + limit: number; + /** + * Укажите до 14 метрик. Если их будет больше, вы получите ошибку с кодом `InvalidArgument`. + * + * Список метриĸ, по ĸоторым будет сформирован отчёт. + * + * Метрики, доступные всем продавцам: + * - `revenue` — заказано на сумму, + * - `ordered_units` — заказано товаров. + * + * Метрики, доступные только продавцам с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus): + * - `unknown_metric` — неизвестная метрика. + * - `hits_view_search` — показы в поиске и в категории. + * - `hits_view_pdp` — показы на карточке товара. + * - `hits_view` — всего показов. + * - `hits_tocart_search` — в корзину из поиска или категории. + * - `hits_tocart_pdp` — в корзину из карточки товара. + * - `hits_tocart` — всего добавлено в корзину. + * - `session_view_search` — сессии с показом в поиске или в каталоге. Считаются уникальные посетители с просмотром в поиске или каталоге. + * - `session_view_pdp` — сессии с показом на карточке товара. Считаются уникальные посетители, которые просмотрели карточку товара. + * - `session_view` — всего сессий. Считаются уникальные посетители. + * - `conv_tocart_search` — конверсия в корзину из поиска или категории. + * - `conv_tocart_pdp` — конверсия в корзину из карточки товара. + * - `conv_tocart` — общая конверсия в корзину. + * - `returns` — возвращено товаров. + * - `cancellations` — отменено товаров. + * - `delivered_units` — доставлено товаров. + * - `position_category` — позиция в поиске и категории. + * + * @type {Array} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + metrics: Array; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + offset?: number; + /** + * Настройки сортировки отчёта. + * @type {Array} + * @memberof AnalyticsAnalyticsGetDataRequest + */ + sort?: Array; +} +/** + * Check if a given object implements the AnalyticsAnalyticsGetDataRequest interface. + */ +export declare function instanceOfAnalyticsAnalyticsGetDataRequest(value: object): value is AnalyticsAnalyticsGetDataRequest; +export declare function AnalyticsAnalyticsGetDataRequestFromJSON(json: any): AnalyticsAnalyticsGetDataRequest; +export declare function AnalyticsAnalyticsGetDataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsAnalyticsGetDataRequest; +export declare function AnalyticsAnalyticsGetDataRequestToJSON(value?: AnalyticsAnalyticsGetDataRequest | null): any; diff --git a/dist/models/AnalyticsAnalyticsGetDataRequest.js b/dist/models/AnalyticsAnalyticsGetDataRequest.js new file mode 100644 index 0000000..0e343fd --- /dev/null +++ b/dist/models/AnalyticsAnalyticsGetDataRequest.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsAnalyticsGetDataRequest = instanceOfAnalyticsAnalyticsGetDataRequest; +exports.AnalyticsAnalyticsGetDataRequestFromJSON = AnalyticsAnalyticsGetDataRequestFromJSON; +exports.AnalyticsAnalyticsGetDataRequestFromJSONTyped = AnalyticsAnalyticsGetDataRequestFromJSONTyped; +exports.AnalyticsAnalyticsGetDataRequestToJSON = AnalyticsAnalyticsGetDataRequestToJSON; +const AnalyticsFilter_1 = require("./AnalyticsFilter"); +const SellerServiceanalyticsDimension_1 = require("./SellerServiceanalyticsDimension"); +const AnalyticsSorting_1 = require("./AnalyticsSorting"); +/** + * Check if a given object implements the AnalyticsAnalyticsGetDataRequest interface. + */ +function instanceOfAnalyticsAnalyticsGetDataRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('dimension' in value) || value['dimension'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('metrics' in value) || value['metrics'] === undefined) + return false; + return true; +} +function AnalyticsAnalyticsGetDataRequestFromJSON(json) { + return AnalyticsAnalyticsGetDataRequestFromJSONTyped(json, false); +} +function AnalyticsAnalyticsGetDataRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'dimension': (json['dimension'].map(SellerServiceanalyticsDimension_1.SellerServiceanalyticsDimensionFromJSON)), + 'filters': json['filters'] == null ? undefined : (json['filters'].map(AnalyticsFilter_1.AnalyticsFilterFromJSON)), + 'limit': json['limit'], + 'metrics': json['metrics'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'sort': json['sort'] == null ? undefined : (json['sort'].map(AnalyticsSorting_1.AnalyticsSortingFromJSON)), + }; +} +function AnalyticsAnalyticsGetDataRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'dimension': (value['dimension'].map(SellerServiceanalyticsDimension_1.SellerServiceanalyticsDimensionToJSON)), + 'filters': value['filters'] == null ? undefined : (value['filters'].map(AnalyticsFilter_1.AnalyticsFilterToJSON)), + 'limit': value['limit'], + 'metrics': value['metrics'], + 'offset': value['offset'], + 'sort': value['sort'] == null ? undefined : (value['sort'].map(AnalyticsSorting_1.AnalyticsSortingToJSON)), + }; +} diff --git a/dist/models/AnalyticsAnalyticsGetDataResponse.d.ts b/dist/models/AnalyticsAnalyticsGetDataResponse.d.ts new file mode 100644 index 0000000..a38e5ad --- /dev/null +++ b/dist/models/AnalyticsAnalyticsGetDataResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsGetDataResponseResult } from './AnalyticsGetDataResponseResult'; +/** + * + * @export + * @interface AnalyticsAnalyticsGetDataResponse + */ +export interface AnalyticsAnalyticsGetDataResponse { + /** + * + * @type {AnalyticsGetDataResponseResult} + * @memberof AnalyticsAnalyticsGetDataResponse + */ + result?: AnalyticsGetDataResponseResult; + /** + * Время создания отчёта. + * @type {string} + * @memberof AnalyticsAnalyticsGetDataResponse + */ + timestamp?: string; +} +/** + * Check if a given object implements the AnalyticsAnalyticsGetDataResponse interface. + */ +export declare function instanceOfAnalyticsAnalyticsGetDataResponse(value: object): value is AnalyticsAnalyticsGetDataResponse; +export declare function AnalyticsAnalyticsGetDataResponseFromJSON(json: any): AnalyticsAnalyticsGetDataResponse; +export declare function AnalyticsAnalyticsGetDataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsAnalyticsGetDataResponse; +export declare function AnalyticsAnalyticsGetDataResponseToJSON(value?: AnalyticsAnalyticsGetDataResponse | null): any; diff --git a/dist/models/AnalyticsAnalyticsGetDataResponse.js b/dist/models/AnalyticsAnalyticsGetDataResponse.js new file mode 100644 index 0000000..1d27643 --- /dev/null +++ b/dist/models/AnalyticsAnalyticsGetDataResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsAnalyticsGetDataResponse = instanceOfAnalyticsAnalyticsGetDataResponse; +exports.AnalyticsAnalyticsGetDataResponseFromJSON = AnalyticsAnalyticsGetDataResponseFromJSON; +exports.AnalyticsAnalyticsGetDataResponseFromJSONTyped = AnalyticsAnalyticsGetDataResponseFromJSONTyped; +exports.AnalyticsAnalyticsGetDataResponseToJSON = AnalyticsAnalyticsGetDataResponseToJSON; +const AnalyticsGetDataResponseResult_1 = require("./AnalyticsGetDataResponseResult"); +/** + * Check if a given object implements the AnalyticsAnalyticsGetDataResponse interface. + */ +function instanceOfAnalyticsAnalyticsGetDataResponse(value) { + return true; +} +function AnalyticsAnalyticsGetDataResponseFromJSON(json) { + return AnalyticsAnalyticsGetDataResponseFromJSONTyped(json, false); +} +function AnalyticsAnalyticsGetDataResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, AnalyticsGetDataResponseResult_1.AnalyticsGetDataResponseResultFromJSON)(json['result']), + 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'], + }; +} +function AnalyticsAnalyticsGetDataResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, AnalyticsGetDataResponseResult_1.AnalyticsGetDataResponseResultToJSON)(value['result']), + 'timestamp': value['timestamp'], + }; +} diff --git a/dist/models/AnalyticsDataRow.d.ts b/dist/models/AnalyticsDataRow.d.ts new file mode 100644 index 0000000..e114e90 --- /dev/null +++ b/dist/models/AnalyticsDataRow.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsDataRowDimension } from './AnalyticsDataRowDimension'; +/** + * + * @export + * @interface AnalyticsDataRow + */ +export interface AnalyticsDataRow { + /** + * Группировка данных в отчёте. + * @type {Array} + * @memberof AnalyticsDataRow + */ + dimensions?: Array; + /** + * Список значений метрики. + * @type {Array} + * @memberof AnalyticsDataRow + */ + metrics?: Array; +} +/** + * Check if a given object implements the AnalyticsDataRow interface. + */ +export declare function instanceOfAnalyticsDataRow(value: object): value is AnalyticsDataRow; +export declare function AnalyticsDataRowFromJSON(json: any): AnalyticsDataRow; +export declare function AnalyticsDataRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsDataRow; +export declare function AnalyticsDataRowToJSON(value?: AnalyticsDataRow | null): any; diff --git a/dist/models/AnalyticsDataRow.js b/dist/models/AnalyticsDataRow.js new file mode 100644 index 0000000..8263686 --- /dev/null +++ b/dist/models/AnalyticsDataRow.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsDataRow = instanceOfAnalyticsDataRow; +exports.AnalyticsDataRowFromJSON = AnalyticsDataRowFromJSON; +exports.AnalyticsDataRowFromJSONTyped = AnalyticsDataRowFromJSONTyped; +exports.AnalyticsDataRowToJSON = AnalyticsDataRowToJSON; +const AnalyticsDataRowDimension_1 = require("./AnalyticsDataRowDimension"); +/** + * Check if a given object implements the AnalyticsDataRow interface. + */ +function instanceOfAnalyticsDataRow(value) { + return true; +} +function AnalyticsDataRowFromJSON(json) { + return AnalyticsDataRowFromJSONTyped(json, false); +} +function AnalyticsDataRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dimensions': json['dimensions'] == null ? undefined : (json['dimensions'].map(AnalyticsDataRowDimension_1.AnalyticsDataRowDimensionFromJSON)), + 'metrics': json['metrics'] == null ? undefined : json['metrics'], + }; +} +function AnalyticsDataRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'dimensions': value['dimensions'] == null ? undefined : (value['dimensions'].map(AnalyticsDataRowDimension_1.AnalyticsDataRowDimensionToJSON)), + 'metrics': value['metrics'], + }; +} diff --git a/dist/models/AnalyticsDataRowDimension.d.ts b/dist/models/AnalyticsDataRowDimension.d.ts new file mode 100644 index 0000000..373264d --- /dev/null +++ b/dist/models/AnalyticsDataRowDimension.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsDataRowDimension + */ +export interface AnalyticsDataRowDimension { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {string} + * @memberof AnalyticsDataRowDimension + */ + id?: string; + /** + * Наименование. + * @type {string} + * @memberof AnalyticsDataRowDimension + */ + name?: string; +} +/** + * Check if a given object implements the AnalyticsDataRowDimension interface. + */ +export declare function instanceOfAnalyticsDataRowDimension(value: object): value is AnalyticsDataRowDimension; +export declare function AnalyticsDataRowDimensionFromJSON(json: any): AnalyticsDataRowDimension; +export declare function AnalyticsDataRowDimensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsDataRowDimension; +export declare function AnalyticsDataRowDimensionToJSON(value?: AnalyticsDataRowDimension | null): any; diff --git a/dist/models/AnalyticsDataRowDimension.js b/dist/models/AnalyticsDataRowDimension.js new file mode 100644 index 0000000..46d4fff --- /dev/null +++ b/dist/models/AnalyticsDataRowDimension.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsDataRowDimension = instanceOfAnalyticsDataRowDimension; +exports.AnalyticsDataRowDimensionFromJSON = AnalyticsDataRowDimensionFromJSON; +exports.AnalyticsDataRowDimensionFromJSONTyped = AnalyticsDataRowDimensionFromJSONTyped; +exports.AnalyticsDataRowDimensionToJSON = AnalyticsDataRowDimensionToJSON; +/** + * Check if a given object implements the AnalyticsDataRowDimension interface. + */ +function instanceOfAnalyticsDataRowDimension(value) { + return true; +} +function AnalyticsDataRowDimensionFromJSON(json) { + return AnalyticsDataRowDimensionFromJSONTyped(json, false); +} +function AnalyticsDataRowDimensionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function AnalyticsDataRowDimensionToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/AnalyticsFilter.d.ts b/dist/models/AnalyticsFilter.d.ts new file mode 100644 index 0000000..ff7f1fe --- /dev/null +++ b/dist/models/AnalyticsFilter.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsFilter + */ +export interface AnalyticsFilter { + /** + * Параметр сортировки. Можно передать любой атрибут из параметров `dimension` и `metric`, кроме атрибута `brand`. + * @type {string} + * @memberof AnalyticsFilter + */ + key?: string; + /** + *
+ * + * Операция сравнения: + * - `EQ` — равно, + * - `GT` — больше, + * - `GTE` — больше или равно, + * - `LT` — меньше, + * - `LTE` — меньше или равно. + * + * @type {string} + * @memberof AnalyticsFilter + */ + op?: string; + /** + * Значение для сравнения. + * @type {string} + * @memberof AnalyticsFilter + */ + value?: string; +} +/** + * Check if a given object implements the AnalyticsFilter interface. + */ +export declare function instanceOfAnalyticsFilter(value: object): value is AnalyticsFilter; +export declare function AnalyticsFilterFromJSON(json: any): AnalyticsFilter; +export declare function AnalyticsFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsFilter; +export declare function AnalyticsFilterToJSON(value?: AnalyticsFilter | null): any; diff --git a/dist/models/AnalyticsFilter.js b/dist/models/AnalyticsFilter.js new file mode 100644 index 0000000..0aae702 --- /dev/null +++ b/dist/models/AnalyticsFilter.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsFilter = instanceOfAnalyticsFilter; +exports.AnalyticsFilterFromJSON = AnalyticsFilterFromJSON; +exports.AnalyticsFilterFromJSONTyped = AnalyticsFilterFromJSONTyped; +exports.AnalyticsFilterToJSON = AnalyticsFilterToJSON; +/** + * Check if a given object implements the AnalyticsFilter interface. + */ +function instanceOfAnalyticsFilter(value) { + return true; +} +function AnalyticsFilterFromJSON(json) { + return AnalyticsFilterFromJSONTyped(json, false); +} +function AnalyticsFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'op': json['op'] == null ? undefined : json['op'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function AnalyticsFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'op': value['op'], + 'value': value['value'], + }; +} diff --git a/dist/models/AnalyticsGetDataResponseResult.d.ts b/dist/models/AnalyticsGetDataResponseResult.d.ts new file mode 100644 index 0000000..5c03d07 --- /dev/null +++ b/dist/models/AnalyticsGetDataResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsDataRow } from './AnalyticsDataRow'; +/** + * Результаты запроса. + * @export + * @interface AnalyticsGetDataResponseResult + */ +export interface AnalyticsGetDataResponseResult { + /** + * Массив данных. + * @type {Array} + * @memberof AnalyticsGetDataResponseResult + */ + data?: Array; + /** + * Итоговые и средние значения метрик. + * @type {Array} + * @memberof AnalyticsGetDataResponseResult + */ + totals?: Array; +} +/** + * Check if a given object implements the AnalyticsGetDataResponseResult interface. + */ +export declare function instanceOfAnalyticsGetDataResponseResult(value: object): value is AnalyticsGetDataResponseResult; +export declare function AnalyticsGetDataResponseResultFromJSON(json: any): AnalyticsGetDataResponseResult; +export declare function AnalyticsGetDataResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsGetDataResponseResult; +export declare function AnalyticsGetDataResponseResultToJSON(value?: AnalyticsGetDataResponseResult | null): any; diff --git a/dist/models/AnalyticsGetDataResponseResult.js b/dist/models/AnalyticsGetDataResponseResult.js new file mode 100644 index 0000000..fb232cb --- /dev/null +++ b/dist/models/AnalyticsGetDataResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsGetDataResponseResult = instanceOfAnalyticsGetDataResponseResult; +exports.AnalyticsGetDataResponseResultFromJSON = AnalyticsGetDataResponseResultFromJSON; +exports.AnalyticsGetDataResponseResultFromJSONTyped = AnalyticsGetDataResponseResultFromJSONTyped; +exports.AnalyticsGetDataResponseResultToJSON = AnalyticsGetDataResponseResultToJSON; +const AnalyticsDataRow_1 = require("./AnalyticsDataRow"); +/** + * Check if a given object implements the AnalyticsGetDataResponseResult interface. + */ +function instanceOfAnalyticsGetDataResponseResult(value) { + return true; +} +function AnalyticsGetDataResponseResultFromJSON(json) { + return AnalyticsGetDataResponseResultFromJSONTyped(json, false); +} +function AnalyticsGetDataResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': json['data'] == null ? undefined : (json['data'].map(AnalyticsDataRow_1.AnalyticsDataRowFromJSON)), + 'totals': json['totals'] == null ? undefined : json['totals'], + }; +} +function AnalyticsGetDataResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'data': value['data'] == null ? undefined : (value['data'].map(AnalyticsDataRow_1.AnalyticsDataRowToJSON)), + 'totals': value['totals'], + }; +} diff --git a/dist/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.d.ts b/dist/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.d.ts new file mode 100644 index 0000000..a69d967 --- /dev/null +++ b/dist/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по типу склада: + * - `EXPRESS_DARK_STORE` — склады Ozon с доставкой Fresh. + * - `NOT_EXPRESS_DARK_STORE` — склады Ozon без доставки Fresh. + * - `ALL` — все склады Ozon. + * + * @export + */ +export declare const AnalyticsGetStockOnWarehousesRequestWarehouseType: { + readonly ALL: "ALL"; + readonly EXPRESS_DARK_STORE: "EXPRESS_DARK_STORE"; + readonly NOT_EXPRESS_DARK_STORE: "NOT_EXPRESS_DARK_STORE"; +}; +export type AnalyticsGetStockOnWarehousesRequestWarehouseType = typeof AnalyticsGetStockOnWarehousesRequestWarehouseType[keyof typeof AnalyticsGetStockOnWarehousesRequestWarehouseType]; +export declare function instanceOfAnalyticsGetStockOnWarehousesRequestWarehouseType(value: any): boolean; +export declare function AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON(json: any): AnalyticsGetStockOnWarehousesRequestWarehouseType; +export declare function AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsGetStockOnWarehousesRequestWarehouseType; +export declare function AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON(value?: AnalyticsGetStockOnWarehousesRequestWarehouseType | null): any; diff --git a/dist/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.js b/dist/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.js new file mode 100644 index 0000000..2966edf --- /dev/null +++ b/dist/models/AnalyticsGetStockOnWarehousesRequestWarehouseType.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AnalyticsGetStockOnWarehousesRequestWarehouseType = void 0; +exports.instanceOfAnalyticsGetStockOnWarehousesRequestWarehouseType = instanceOfAnalyticsGetStockOnWarehousesRequestWarehouseType; +exports.AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON = AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON; +exports.AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSONTyped = AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSONTyped; +exports.AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON = AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON; +/** + * Фильтр по типу склада: + * - `EXPRESS_DARK_STORE` — склады Ozon с доставкой Fresh. + * - `NOT_EXPRESS_DARK_STORE` — склады Ozon без доставки Fresh. + * - `ALL` — все склады Ozon. + * + * @export + */ +exports.AnalyticsGetStockOnWarehousesRequestWarehouseType = { + ALL: 'ALL', + EXPRESS_DARK_STORE: 'EXPRESS_DARK_STORE', + NOT_EXPRESS_DARK_STORE: 'NOT_EXPRESS_DARK_STORE' +}; +function instanceOfAnalyticsGetStockOnWarehousesRequestWarehouseType(value) { + for (const key in exports.AnalyticsGetStockOnWarehousesRequestWarehouseType) { + if (Object.prototype.hasOwnProperty.call(exports.AnalyticsGetStockOnWarehousesRequestWarehouseType, key)) { + if (exports.AnalyticsGetStockOnWarehousesRequestWarehouseType[key] === value) { + return true; + } + } + } + return false; +} +function AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON(json) { + return AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSONTyped(json, false); +} +function AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON(value) { + return value; +} diff --git a/dist/models/AnalyticsProductQueriesDetailsResponseQuery.d.ts b/dist/models/AnalyticsProductQueriesDetailsResponseQuery.d.ts new file mode 100644 index 0000000..d0833f4 --- /dev/null +++ b/dist/models/AnalyticsProductQueriesDetailsResponseQuery.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsProductQueriesDetailsResponseQuery + */ +export interface AnalyticsProductQueriesDetailsResponseQuery { + /** + * Валюта. + * @type {string} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + currency?: string; + /** + * Продажи по запросам. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + gmv?: number; + /** + * Количество заказов по запросу. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + order_count?: number; + /** + * Средняя позиция товара. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + position?: number; + /** + * Текст запроса. + * @type {string} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + query?: string; + /** + * Порядковый номер запроса. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + query_index?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + sku?: number; + /** + * Количество покупателей, которые искали ваш товар на Ozon. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + unique_search_users?: number; + /** + * Количество покупателей, которые увидели ваш товар на Ozon. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + unique_view_users?: number; + /** + * Конверсия из просмотра товара. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof AnalyticsProductQueriesDetailsResponseQuery + */ + view_conversion?: number; +} +/** + * Check if a given object implements the AnalyticsProductQueriesDetailsResponseQuery interface. + */ +export declare function instanceOfAnalyticsProductQueriesDetailsResponseQuery(value: object): value is AnalyticsProductQueriesDetailsResponseQuery; +export declare function AnalyticsProductQueriesDetailsResponseQueryFromJSON(json: any): AnalyticsProductQueriesDetailsResponseQuery; +export declare function AnalyticsProductQueriesDetailsResponseQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsProductQueriesDetailsResponseQuery; +export declare function AnalyticsProductQueriesDetailsResponseQueryToJSON(value?: AnalyticsProductQueriesDetailsResponseQuery | null): any; diff --git a/dist/models/AnalyticsProductQueriesDetailsResponseQuery.js b/dist/models/AnalyticsProductQueriesDetailsResponseQuery.js new file mode 100644 index 0000000..d78e0e5 --- /dev/null +++ b/dist/models/AnalyticsProductQueriesDetailsResponseQuery.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsProductQueriesDetailsResponseQuery = instanceOfAnalyticsProductQueriesDetailsResponseQuery; +exports.AnalyticsProductQueriesDetailsResponseQueryFromJSON = AnalyticsProductQueriesDetailsResponseQueryFromJSON; +exports.AnalyticsProductQueriesDetailsResponseQueryFromJSONTyped = AnalyticsProductQueriesDetailsResponseQueryFromJSONTyped; +exports.AnalyticsProductQueriesDetailsResponseQueryToJSON = AnalyticsProductQueriesDetailsResponseQueryToJSON; +/** + * Check if a given object implements the AnalyticsProductQueriesDetailsResponseQuery interface. + */ +function instanceOfAnalyticsProductQueriesDetailsResponseQuery(value) { + return true; +} +function AnalyticsProductQueriesDetailsResponseQueryFromJSON(json) { + return AnalyticsProductQueriesDetailsResponseQueryFromJSONTyped(json, false); +} +function AnalyticsProductQueriesDetailsResponseQueryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency': json['currency'] == null ? undefined : json['currency'], + 'gmv': json['gmv'] == null ? undefined : json['gmv'], + 'order_count': json['order_count'] == null ? undefined : json['order_count'], + 'position': json['position'] == null ? undefined : json['position'], + 'query': json['query'] == null ? undefined : json['query'], + 'query_index': json['query_index'] == null ? undefined : json['query_index'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'unique_search_users': json['unique_search_users'] == null ? undefined : json['unique_search_users'], + 'unique_view_users': json['unique_view_users'] == null ? undefined : json['unique_view_users'], + 'view_conversion': json['view_conversion'] == null ? undefined : json['view_conversion'], + }; +} +function AnalyticsProductQueriesDetailsResponseQueryToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency': value['currency'], + 'gmv': value['gmv'], + 'order_count': value['order_count'], + 'position': value['position'], + 'query': value['query'], + 'query_index': value['query_index'], + 'sku': value['sku'], + 'unique_search_users': value['unique_search_users'], + 'unique_view_users': value['unique_view_users'], + 'view_conversion': value['view_conversion'], + }; +} diff --git a/dist/models/AnalyticsProductQueriesRequestSortBy.d.ts b/dist/models/AnalyticsProductQueriesRequestSortBy.d.ts new file mode 100644 index 0000000..ecdbd78 --- /dev/null +++ b/dist/models/AnalyticsProductQueriesRequestSortBy.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому товары будут отсортированы. Возможные значения: + * - `BY_SEARCHES` — по количеству запросов; + * - `BY_VIEWS` — по количеству просмотров; + * - `BY_POSITION` — по средней позиции товара; + * - `BY_CONVERSION` — по значению конверсии; + * - `BY_GMV` — по объёму продаж по запросам. + * + * @export + */ +export declare const AnalyticsProductQueriesRequestSortBy: { + readonly SEARCHES: "BY_SEARCHES"; + readonly VIEWS: "BY_VIEWS"; + readonly POSITION: "BY_POSITION"; + readonly CONVERSION: "BY_CONVERSION"; + readonly GMV: "BY_GMV"; +}; +export type AnalyticsProductQueriesRequestSortBy = typeof AnalyticsProductQueriesRequestSortBy[keyof typeof AnalyticsProductQueriesRequestSortBy]; +export declare function instanceOfAnalyticsProductQueriesRequestSortBy(value: any): boolean; +export declare function AnalyticsProductQueriesRequestSortByFromJSON(json: any): AnalyticsProductQueriesRequestSortBy; +export declare function AnalyticsProductQueriesRequestSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsProductQueriesRequestSortBy; +export declare function AnalyticsProductQueriesRequestSortByToJSON(value?: AnalyticsProductQueriesRequestSortBy | null): any; diff --git a/dist/models/AnalyticsProductQueriesRequestSortBy.js b/dist/models/AnalyticsProductQueriesRequestSortBy.js new file mode 100644 index 0000000..51ad4a5 --- /dev/null +++ b/dist/models/AnalyticsProductQueriesRequestSortBy.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AnalyticsProductQueriesRequestSortBy = void 0; +exports.instanceOfAnalyticsProductQueriesRequestSortBy = instanceOfAnalyticsProductQueriesRequestSortBy; +exports.AnalyticsProductQueriesRequestSortByFromJSON = AnalyticsProductQueriesRequestSortByFromJSON; +exports.AnalyticsProductQueriesRequestSortByFromJSONTyped = AnalyticsProductQueriesRequestSortByFromJSONTyped; +exports.AnalyticsProductQueriesRequestSortByToJSON = AnalyticsProductQueriesRequestSortByToJSON; +/** + * Параметр, по которому товары будут отсортированы. Возможные значения: + * - `BY_SEARCHES` — по количеству запросов; + * - `BY_VIEWS` — по количеству просмотров; + * - `BY_POSITION` — по средней позиции товара; + * - `BY_CONVERSION` — по значению конверсии; + * - `BY_GMV` — по объёму продаж по запросам. + * + * @export + */ +exports.AnalyticsProductQueriesRequestSortBy = { + SEARCHES: 'BY_SEARCHES', + VIEWS: 'BY_VIEWS', + POSITION: 'BY_POSITION', + CONVERSION: 'BY_CONVERSION', + GMV: 'BY_GMV' +}; +function instanceOfAnalyticsProductQueriesRequestSortBy(value) { + for (const key in exports.AnalyticsProductQueriesRequestSortBy) { + if (Object.prototype.hasOwnProperty.call(exports.AnalyticsProductQueriesRequestSortBy, key)) { + if (exports.AnalyticsProductQueriesRequestSortBy[key] === value) { + return true; + } + } + } + return false; +} +function AnalyticsProductQueriesRequestSortByFromJSON(json) { + return AnalyticsProductQueriesRequestSortByFromJSONTyped(json, false); +} +function AnalyticsProductQueriesRequestSortByFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function AnalyticsProductQueriesRequestSortByToJSON(value) { + return value; +} diff --git a/dist/models/AnalyticsProductQueriesRequestSortDir.d.ts b/dist/models/AnalyticsProductQueriesRequestSortDir.d.ts new file mode 100644 index 0000000..cafc869 --- /dev/null +++ b/dist/models/AnalyticsProductQueriesRequestSortDir.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESCENDING` — по убыванию; + * - `ASCENDING` — по возрастанию. + * + * @export + */ +export declare const AnalyticsProductQueriesRequestSortDir: { + readonly DESCENDING: "DESCENDING"; + readonly ASCENDING: "ASCENDING"; +}; +export type AnalyticsProductQueriesRequestSortDir = typeof AnalyticsProductQueriesRequestSortDir[keyof typeof AnalyticsProductQueriesRequestSortDir]; +export declare function instanceOfAnalyticsProductQueriesRequestSortDir(value: any): boolean; +export declare function AnalyticsProductQueriesRequestSortDirFromJSON(json: any): AnalyticsProductQueriesRequestSortDir; +export declare function AnalyticsProductQueriesRequestSortDirFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsProductQueriesRequestSortDir; +export declare function AnalyticsProductQueriesRequestSortDirToJSON(value?: AnalyticsProductQueriesRequestSortDir | null): any; diff --git a/dist/models/AnalyticsProductQueriesRequestSortDir.js b/dist/models/AnalyticsProductQueriesRequestSortDir.js new file mode 100644 index 0000000..ca5e40f --- /dev/null +++ b/dist/models/AnalyticsProductQueriesRequestSortDir.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AnalyticsProductQueriesRequestSortDir = void 0; +exports.instanceOfAnalyticsProductQueriesRequestSortDir = instanceOfAnalyticsProductQueriesRequestSortDir; +exports.AnalyticsProductQueriesRequestSortDirFromJSON = AnalyticsProductQueriesRequestSortDirFromJSON; +exports.AnalyticsProductQueriesRequestSortDirFromJSONTyped = AnalyticsProductQueriesRequestSortDirFromJSONTyped; +exports.AnalyticsProductQueriesRequestSortDirToJSON = AnalyticsProductQueriesRequestSortDirToJSON; +/** + * Направление сортировки: + * - `DESCENDING` — по убыванию; + * - `ASCENDING` — по возрастанию. + * + * @export + */ +exports.AnalyticsProductQueriesRequestSortDir = { + DESCENDING: 'DESCENDING', + ASCENDING: 'ASCENDING' +}; +function instanceOfAnalyticsProductQueriesRequestSortDir(value) { + for (const key in exports.AnalyticsProductQueriesRequestSortDir) { + if (Object.prototype.hasOwnProperty.call(exports.AnalyticsProductQueriesRequestSortDir, key)) { + if (exports.AnalyticsProductQueriesRequestSortDir[key] === value) { + return true; + } + } + } + return false; +} +function AnalyticsProductQueriesRequestSortDirFromJSON(json) { + return AnalyticsProductQueriesRequestSortDirFromJSONTyped(json, false); +} +function AnalyticsProductQueriesRequestSortDirFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function AnalyticsProductQueriesRequestSortDirToJSON(value) { + return value; +} diff --git a/dist/models/AnalyticsProductQueriesResponseAnalyticsPeriod.d.ts b/dist/models/AnalyticsProductQueriesResponseAnalyticsPeriod.d.ts new file mode 100644 index 0000000..bc52540 --- /dev/null +++ b/dist/models/AnalyticsProductQueriesResponseAnalyticsPeriod.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, за который формируется аналитика. + * @export + * @interface AnalyticsProductQueriesResponseAnalyticsPeriod + */ +export interface AnalyticsProductQueriesResponseAnalyticsPeriod { + /** + * Дата начала формирования аналитики. + * @type {string} + * @memberof AnalyticsProductQueriesResponseAnalyticsPeriod + */ + date_from?: string; + /** + * Дата окончания формирования аналитики. + * @type {string} + * @memberof AnalyticsProductQueriesResponseAnalyticsPeriod + */ + date_to?: string; +} +/** + * Check if a given object implements the AnalyticsProductQueriesResponseAnalyticsPeriod interface. + */ +export declare function instanceOfAnalyticsProductQueriesResponseAnalyticsPeriod(value: object): value is AnalyticsProductQueriesResponseAnalyticsPeriod; +export declare function AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON(json: any): AnalyticsProductQueriesResponseAnalyticsPeriod; +export declare function AnalyticsProductQueriesResponseAnalyticsPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsProductQueriesResponseAnalyticsPeriod; +export declare function AnalyticsProductQueriesResponseAnalyticsPeriodToJSON(value?: AnalyticsProductQueriesResponseAnalyticsPeriod | null): any; diff --git a/dist/models/AnalyticsProductQueriesResponseAnalyticsPeriod.js b/dist/models/AnalyticsProductQueriesResponseAnalyticsPeriod.js new file mode 100644 index 0000000..a164624 --- /dev/null +++ b/dist/models/AnalyticsProductQueriesResponseAnalyticsPeriod.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsProductQueriesResponseAnalyticsPeriod = instanceOfAnalyticsProductQueriesResponseAnalyticsPeriod; +exports.AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON = AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON; +exports.AnalyticsProductQueriesResponseAnalyticsPeriodFromJSONTyped = AnalyticsProductQueriesResponseAnalyticsPeriodFromJSONTyped; +exports.AnalyticsProductQueriesResponseAnalyticsPeriodToJSON = AnalyticsProductQueriesResponseAnalyticsPeriodToJSON; +/** + * Check if a given object implements the AnalyticsProductQueriesResponseAnalyticsPeriod interface. + */ +function instanceOfAnalyticsProductQueriesResponseAnalyticsPeriod(value) { + return true; +} +function AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON(json) { + return AnalyticsProductQueriesResponseAnalyticsPeriodFromJSONTyped(json, false); +} +function AnalyticsProductQueriesResponseAnalyticsPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + }; +} +function AnalyticsProductQueriesResponseAnalyticsPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/models/AnalyticsSorting.d.ts b/dist/models/AnalyticsSorting.d.ts new file mode 100644 index 0000000..98c941c --- /dev/null +++ b/dist/models/AnalyticsSorting.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsSorting + */ +export interface AnalyticsSorting { + /** + * Метрика, по которой будет отсортирован результат запроса. + * @type {string} + * @memberof AnalyticsSorting + */ + key?: string; + /** + * Вид сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @type {string} + * @memberof AnalyticsSorting + */ + order?: string; +} +/** + * Check if a given object implements the AnalyticsSorting interface. + */ +export declare function instanceOfAnalyticsSorting(value: object): value is AnalyticsSorting; +export declare function AnalyticsSortingFromJSON(json: any): AnalyticsSorting; +export declare function AnalyticsSortingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsSorting; +export declare function AnalyticsSortingToJSON(value?: AnalyticsSorting | null): any; diff --git a/dist/models/AnalyticsSorting.js b/dist/models/AnalyticsSorting.js new file mode 100644 index 0000000..c98876d --- /dev/null +++ b/dist/models/AnalyticsSorting.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsSorting = instanceOfAnalyticsSorting; +exports.AnalyticsSortingFromJSON = AnalyticsSortingFromJSON; +exports.AnalyticsSortingFromJSONTyped = AnalyticsSortingFromJSONTyped; +exports.AnalyticsSortingToJSON = AnalyticsSortingToJSON; +/** + * Check if a given object implements the AnalyticsSorting interface. + */ +function instanceOfAnalyticsSorting(value) { + return true; +} +function AnalyticsSortingFromJSON(json) { + return AnalyticsSortingFromJSONTyped(json, false); +} +function AnalyticsSortingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'order': json['order'] == null ? undefined : json['order'], + }; +} +function AnalyticsSortingToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'order': value['order'], + }; +} diff --git a/dist/models/AnalyticsStockOnWarehouseRequest.d.ts b/dist/models/AnalyticsStockOnWarehouseRequest.d.ts new file mode 100644 index 0000000..2a346ad --- /dev/null +++ b/dist/models/AnalyticsStockOnWarehouseRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsGetStockOnWarehousesRequestWarehouseType } from './AnalyticsGetStockOnWarehousesRequestWarehouseType'; +/** + * + * @export + * @interface AnalyticsStockOnWarehouseRequest + */ +export interface AnalyticsStockOnWarehouseRequest { + /** + * Количество ответов на странице. По умолчанию — 100. + * @type {number} + * @memberof AnalyticsStockOnWarehouseRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof AnalyticsStockOnWarehouseRequest + */ + offset?: number; + /** + * + * @type {AnalyticsGetStockOnWarehousesRequestWarehouseType} + * @memberof AnalyticsStockOnWarehouseRequest + */ + warehouse_type?: AnalyticsGetStockOnWarehousesRequestWarehouseType; +} +/** + * Check if a given object implements the AnalyticsStockOnWarehouseRequest interface. + */ +export declare function instanceOfAnalyticsStockOnWarehouseRequest(value: object): value is AnalyticsStockOnWarehouseRequest; +export declare function AnalyticsStockOnWarehouseRequestFromJSON(json: any): AnalyticsStockOnWarehouseRequest; +export declare function AnalyticsStockOnWarehouseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStockOnWarehouseRequest; +export declare function AnalyticsStockOnWarehouseRequestToJSON(value?: AnalyticsStockOnWarehouseRequest | null): any; diff --git a/dist/models/AnalyticsStockOnWarehouseRequest.js b/dist/models/AnalyticsStockOnWarehouseRequest.js new file mode 100644 index 0000000..8593bc5 --- /dev/null +++ b/dist/models/AnalyticsStockOnWarehouseRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsStockOnWarehouseRequest = instanceOfAnalyticsStockOnWarehouseRequest; +exports.AnalyticsStockOnWarehouseRequestFromJSON = AnalyticsStockOnWarehouseRequestFromJSON; +exports.AnalyticsStockOnWarehouseRequestFromJSONTyped = AnalyticsStockOnWarehouseRequestFromJSONTyped; +exports.AnalyticsStockOnWarehouseRequestToJSON = AnalyticsStockOnWarehouseRequestToJSON; +const AnalyticsGetStockOnWarehousesRequestWarehouseType_1 = require("./AnalyticsGetStockOnWarehousesRequestWarehouseType"); +/** + * Check if a given object implements the AnalyticsStockOnWarehouseRequest interface. + */ +function instanceOfAnalyticsStockOnWarehouseRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function AnalyticsStockOnWarehouseRequestFromJSON(json) { + return AnalyticsStockOnWarehouseRequestFromJSONTyped(json, false); +} +function AnalyticsStockOnWarehouseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'warehouse_type': json['warehouse_type'] == null ? undefined : (0, AnalyticsGetStockOnWarehousesRequestWarehouseType_1.AnalyticsGetStockOnWarehousesRequestWarehouseTypeFromJSON)(json['warehouse_type']), + }; +} +function AnalyticsStockOnWarehouseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + 'warehouse_type': (0, AnalyticsGetStockOnWarehousesRequestWarehouseType_1.AnalyticsGetStockOnWarehousesRequestWarehouseTypeToJSON)(value['warehouse_type']), + }; +} diff --git a/dist/models/AnalyticsStockOnWarehouseResponse.d.ts b/dist/models/AnalyticsStockOnWarehouseResponse.d.ts new file mode 100644 index 0000000..e3999f6 --- /dev/null +++ b/dist/models/AnalyticsStockOnWarehouseResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsStockOnWarehouseResponseResult } from './AnalyticsStockOnWarehouseResponseResult'; +/** + * + * @export + * @interface AnalyticsStockOnWarehouseResponse + */ +export interface AnalyticsStockOnWarehouseResponse { + /** + * + * @type {AnalyticsStockOnWarehouseResponseResult} + * @memberof AnalyticsStockOnWarehouseResponse + */ + result?: AnalyticsStockOnWarehouseResponseResult; +} +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResponse interface. + */ +export declare function instanceOfAnalyticsStockOnWarehouseResponse(value: object): value is AnalyticsStockOnWarehouseResponse; +export declare function AnalyticsStockOnWarehouseResponseFromJSON(json: any): AnalyticsStockOnWarehouseResponse; +export declare function AnalyticsStockOnWarehouseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStockOnWarehouseResponse; +export declare function AnalyticsStockOnWarehouseResponseToJSON(value?: AnalyticsStockOnWarehouseResponse | null): any; diff --git a/dist/models/AnalyticsStockOnWarehouseResponse.js b/dist/models/AnalyticsStockOnWarehouseResponse.js new file mode 100644 index 0000000..296e2e2 --- /dev/null +++ b/dist/models/AnalyticsStockOnWarehouseResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsStockOnWarehouseResponse = instanceOfAnalyticsStockOnWarehouseResponse; +exports.AnalyticsStockOnWarehouseResponseFromJSON = AnalyticsStockOnWarehouseResponseFromJSON; +exports.AnalyticsStockOnWarehouseResponseFromJSONTyped = AnalyticsStockOnWarehouseResponseFromJSONTyped; +exports.AnalyticsStockOnWarehouseResponseToJSON = AnalyticsStockOnWarehouseResponseToJSON; +const AnalyticsStockOnWarehouseResponseResult_1 = require("./AnalyticsStockOnWarehouseResponseResult"); +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResponse interface. + */ +function instanceOfAnalyticsStockOnWarehouseResponse(value) { + return true; +} +function AnalyticsStockOnWarehouseResponseFromJSON(json) { + return AnalyticsStockOnWarehouseResponseFromJSONTyped(json, false); +} +function AnalyticsStockOnWarehouseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, AnalyticsStockOnWarehouseResponseResult_1.AnalyticsStockOnWarehouseResponseResultFromJSON)(json['result']), + }; +} +function AnalyticsStockOnWarehouseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, AnalyticsStockOnWarehouseResponseResult_1.AnalyticsStockOnWarehouseResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/AnalyticsStockOnWarehouseResponseResult.d.ts b/dist/models/AnalyticsStockOnWarehouseResponseResult.d.ts new file mode 100644 index 0000000..1d41097 --- /dev/null +++ b/dist/models/AnalyticsStockOnWarehouseResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsStockOnWarehouseResultRows } from './AnalyticsStockOnWarehouseResultRows'; +/** + * Результат запроса. + * @export + * @interface AnalyticsStockOnWarehouseResponseResult + */ +export interface AnalyticsStockOnWarehouseResponseResult { + /** + * Информация о товарах и остатках. + * @type {Array} + * @memberof AnalyticsStockOnWarehouseResponseResult + */ + rows?: Array; +} +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResponseResult interface. + */ +export declare function instanceOfAnalyticsStockOnWarehouseResponseResult(value: object): value is AnalyticsStockOnWarehouseResponseResult; +export declare function AnalyticsStockOnWarehouseResponseResultFromJSON(json: any): AnalyticsStockOnWarehouseResponseResult; +export declare function AnalyticsStockOnWarehouseResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStockOnWarehouseResponseResult; +export declare function AnalyticsStockOnWarehouseResponseResultToJSON(value?: AnalyticsStockOnWarehouseResponseResult | null): any; diff --git a/dist/models/AnalyticsStockOnWarehouseResponseResult.js b/dist/models/AnalyticsStockOnWarehouseResponseResult.js new file mode 100644 index 0000000..1c326a0 --- /dev/null +++ b/dist/models/AnalyticsStockOnWarehouseResponseResult.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsStockOnWarehouseResponseResult = instanceOfAnalyticsStockOnWarehouseResponseResult; +exports.AnalyticsStockOnWarehouseResponseResultFromJSON = AnalyticsStockOnWarehouseResponseResultFromJSON; +exports.AnalyticsStockOnWarehouseResponseResultFromJSONTyped = AnalyticsStockOnWarehouseResponseResultFromJSONTyped; +exports.AnalyticsStockOnWarehouseResponseResultToJSON = AnalyticsStockOnWarehouseResponseResultToJSON; +const AnalyticsStockOnWarehouseResultRows_1 = require("./AnalyticsStockOnWarehouseResultRows"); +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResponseResult interface. + */ +function instanceOfAnalyticsStockOnWarehouseResponseResult(value) { + return true; +} +function AnalyticsStockOnWarehouseResponseResultFromJSON(json) { + return AnalyticsStockOnWarehouseResponseResultFromJSONTyped(json, false); +} +function AnalyticsStockOnWarehouseResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rows': json['rows'] == null ? undefined : (json['rows'].map(AnalyticsStockOnWarehouseResultRows_1.AnalyticsStockOnWarehouseResultRowsFromJSON)), + }; +} +function AnalyticsStockOnWarehouseResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'rows': value['rows'] == null ? undefined : (value['rows'].map(AnalyticsStockOnWarehouseResultRows_1.AnalyticsStockOnWarehouseResultRowsToJSON)), + }; +} diff --git a/dist/models/AnalyticsStockOnWarehouseResultRows.d.ts b/dist/models/AnalyticsStockOnWarehouseResultRows.d.ts new file mode 100644 index 0000000..def10a1 --- /dev/null +++ b/dist/models/AnalyticsStockOnWarehouseResultRows.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AnalyticsStockOnWarehouseResultRows + */ +export interface AnalyticsStockOnWarehouseResultRows { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + sku?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + item_code?: string; + /** + * Название товара в системе Ozon. + * @type {string} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + item_name?: string; + /** + * Количество товара, доступное к продаже на Ozon. + * @type {number} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + free_to_sell_amount?: number; + /** + * Количество товара, указанное в подтверждённых будущих поставках. + * @type {number} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + promised_amount?: number; + /** + * Количество товара, зарезервированное для покупки, возврата и перевозки между складами. + * @type {number} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + reserved_amount?: number; + /** + * Название склада, где находится товар. + * @type {string} + * @memberof AnalyticsStockOnWarehouseResultRows + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResultRows interface. + */ +export declare function instanceOfAnalyticsStockOnWarehouseResultRows(value: object): value is AnalyticsStockOnWarehouseResultRows; +export declare function AnalyticsStockOnWarehouseResultRowsFromJSON(json: any): AnalyticsStockOnWarehouseResultRows; +export declare function AnalyticsStockOnWarehouseResultRowsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStockOnWarehouseResultRows; +export declare function AnalyticsStockOnWarehouseResultRowsToJSON(value?: AnalyticsStockOnWarehouseResultRows | null): any; diff --git a/dist/models/AnalyticsStockOnWarehouseResultRows.js b/dist/models/AnalyticsStockOnWarehouseResultRows.js new file mode 100644 index 0000000..2dcd0b4 --- /dev/null +++ b/dist/models/AnalyticsStockOnWarehouseResultRows.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAnalyticsStockOnWarehouseResultRows = instanceOfAnalyticsStockOnWarehouseResultRows; +exports.AnalyticsStockOnWarehouseResultRowsFromJSON = AnalyticsStockOnWarehouseResultRowsFromJSON; +exports.AnalyticsStockOnWarehouseResultRowsFromJSONTyped = AnalyticsStockOnWarehouseResultRowsFromJSONTyped; +exports.AnalyticsStockOnWarehouseResultRowsToJSON = AnalyticsStockOnWarehouseResultRowsToJSON; +/** + * Check if a given object implements the AnalyticsStockOnWarehouseResultRows interface. + */ +function instanceOfAnalyticsStockOnWarehouseResultRows(value) { + return true; +} +function AnalyticsStockOnWarehouseResultRowsFromJSON(json) { + return AnalyticsStockOnWarehouseResultRowsFromJSONTyped(json, false); +} +function AnalyticsStockOnWarehouseResultRowsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'item_code': json['item_code'] == null ? undefined : json['item_code'], + 'item_name': json['item_name'] == null ? undefined : json['item_name'], + 'free_to_sell_amount': json['free_to_sell_amount'] == null ? undefined : json['free_to_sell_amount'], + 'promised_amount': json['promised_amount'] == null ? undefined : json['promised_amount'], + 'reserved_amount': json['reserved_amount'] == null ? undefined : json['reserved_amount'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function AnalyticsStockOnWarehouseResultRowsToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'item_code': value['item_code'], + 'item_name': value['item_name'], + 'free_to_sell_amount': value['free_to_sell_amount'], + 'promised_amount': value['promised_amount'], + 'reserved_amount': value['reserved_amount'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/ApproveDeclineDiscountTasksResponseFailDetail.d.ts b/dist/models/ApproveDeclineDiscountTasksResponseFailDetail.d.ts new file mode 100644 index 0000000..cb5e59a --- /dev/null +++ b/dist/models/ApproveDeclineDiscountTasksResponseFailDetail.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ApproveDeclineDiscountTasksResponseFailDetail + */ +export interface ApproveDeclineDiscountTasksResponseFailDetail { + /** + * Идентификатор заявки. + * @type {number} + * @memberof ApproveDeclineDiscountTasksResponseFailDetail + */ + task_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof ApproveDeclineDiscountTasksResponseFailDetail + */ + error_for_user?: string; +} +/** + * Check if a given object implements the ApproveDeclineDiscountTasksResponseFailDetail interface. + */ +export declare function instanceOfApproveDeclineDiscountTasksResponseFailDetail(value: object): value is ApproveDeclineDiscountTasksResponseFailDetail; +export declare function ApproveDeclineDiscountTasksResponseFailDetailFromJSON(json: any): ApproveDeclineDiscountTasksResponseFailDetail; +export declare function ApproveDeclineDiscountTasksResponseFailDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApproveDeclineDiscountTasksResponseFailDetail; +export declare function ApproveDeclineDiscountTasksResponseFailDetailToJSON(value?: ApproveDeclineDiscountTasksResponseFailDetail | null): any; diff --git a/dist/models/ApproveDeclineDiscountTasksResponseFailDetail.js b/dist/models/ApproveDeclineDiscountTasksResponseFailDetail.js new file mode 100644 index 0000000..93ee6eb --- /dev/null +++ b/dist/models/ApproveDeclineDiscountTasksResponseFailDetail.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfApproveDeclineDiscountTasksResponseFailDetail = instanceOfApproveDeclineDiscountTasksResponseFailDetail; +exports.ApproveDeclineDiscountTasksResponseFailDetailFromJSON = ApproveDeclineDiscountTasksResponseFailDetailFromJSON; +exports.ApproveDeclineDiscountTasksResponseFailDetailFromJSONTyped = ApproveDeclineDiscountTasksResponseFailDetailFromJSONTyped; +exports.ApproveDeclineDiscountTasksResponseFailDetailToJSON = ApproveDeclineDiscountTasksResponseFailDetailToJSON; +/** + * Check if a given object implements the ApproveDeclineDiscountTasksResponseFailDetail interface. + */ +function instanceOfApproveDeclineDiscountTasksResponseFailDetail(value) { + return true; +} +function ApproveDeclineDiscountTasksResponseFailDetailFromJSON(json) { + return ApproveDeclineDiscountTasksResponseFailDetailFromJSONTyped(json, false); +} +function ApproveDeclineDiscountTasksResponseFailDetailFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + 'error_for_user': json['error_for_user'] == null ? undefined : json['error_for_user'], + }; +} +function ApproveDeclineDiscountTasksResponseFailDetailToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + 'error_for_user': value['error_for_user'], + }; +} diff --git a/dist/models/ArrivalPassListRequestFilter.d.ts b/dist/models/ArrivalPassListRequestFilter.d.ts new file mode 100644 index 0000000..b34feb3 --- /dev/null +++ b/dist/models/ArrivalPassListRequestFilter.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтры. + * @export + * @interface ArrivalPassListRequestFilter + */ +export interface ArrivalPassListRequestFilter { + /** + * Фильтр по идентификатору пропуска. + * @type {Array} + * @memberof ArrivalPassListRequestFilter + */ + arrival_pass_ids?: Array; + /** + * Фильтр по цели въезда: + * - `FBS_DELIVERY` — отгрузка. + * - `FBS_RETURN` — вывоз возвратов. + * + * Если параметр не указан, учитываются обе цели. + * + * Указанная причина должна быть в списке причин в пропусках. + * + * @type {string} + * @memberof ArrivalPassListRequestFilter + */ + arrival_reason?: string; + /** + * Фильтр по точке отгрузки. + * @type {Array} + * @memberof ArrivalPassListRequestFilter + */ + dropoff_point_ids?: Array; + /** + * `true`, чтобы получить только активные заявки на пропуск. + * + * @type {boolean} + * @memberof ArrivalPassListRequestFilter + */ + only_active_passes?: boolean; + /** + * Фильтр по складу продавца. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof ArrivalPassListRequestFilter + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the ArrivalPassListRequestFilter interface. + */ +export declare function instanceOfArrivalPassListRequestFilter(value: object): value is ArrivalPassListRequestFilter; +export declare function ArrivalPassListRequestFilterFromJSON(json: any): ArrivalPassListRequestFilter; +export declare function ArrivalPassListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalPassListRequestFilter; +export declare function ArrivalPassListRequestFilterToJSON(value?: ArrivalPassListRequestFilter | null): any; diff --git a/dist/models/ArrivalPassListRequestFilter.js b/dist/models/ArrivalPassListRequestFilter.js new file mode 100644 index 0000000..a60a014 --- /dev/null +++ b/dist/models/ArrivalPassListRequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalPassListRequestFilter = instanceOfArrivalPassListRequestFilter; +exports.ArrivalPassListRequestFilterFromJSON = ArrivalPassListRequestFilterFromJSON; +exports.ArrivalPassListRequestFilterFromJSONTyped = ArrivalPassListRequestFilterFromJSONTyped; +exports.ArrivalPassListRequestFilterToJSON = ArrivalPassListRequestFilterToJSON; +/** + * Check if a given object implements the ArrivalPassListRequestFilter interface. + */ +function instanceOfArrivalPassListRequestFilter(value) { + return true; +} +function ArrivalPassListRequestFilterFromJSON(json) { + return ArrivalPassListRequestFilterFromJSONTyped(json, false); +} +function ArrivalPassListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'] == null ? undefined : json['arrival_pass_ids'], + 'arrival_reason': json['arrival_reason'] == null ? undefined : json['arrival_reason'], + 'dropoff_point_ids': json['dropoff_point_ids'] == null ? undefined : json['dropoff_point_ids'], + 'only_active_passes': json['only_active_passes'] == null ? undefined : json['only_active_passes'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function ArrivalPassListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + 'arrival_reason': value['arrival_reason'], + 'dropoff_point_ids': value['dropoff_point_ids'], + 'only_active_passes': value['only_active_passes'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/ArrivalpassArrivalPassCreateRequest.d.ts b/dist/models/ArrivalpassArrivalPassCreateRequest.d.ts new file mode 100644 index 0000000..3edb4a5 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassCreateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ArrivalpassArrivalPassCreateRequestArrivalPass } from './ArrivalpassArrivalPassCreateRequestArrivalPass'; +/** + * + * @export + * @interface ArrivalpassArrivalPassCreateRequest + */ +export interface ArrivalpassArrivalPassCreateRequest { + /** + * Список пропусков. + * @type {Array} + * @memberof ArrivalpassArrivalPassCreateRequest + */ + arrival_passes: Array; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateRequest interface. + */ +export declare function instanceOfArrivalpassArrivalPassCreateRequest(value: object): value is ArrivalpassArrivalPassCreateRequest; +export declare function ArrivalpassArrivalPassCreateRequestFromJSON(json: any): ArrivalpassArrivalPassCreateRequest; +export declare function ArrivalpassArrivalPassCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassCreateRequest; +export declare function ArrivalpassArrivalPassCreateRequestToJSON(value?: ArrivalpassArrivalPassCreateRequest | null): any; diff --git a/dist/models/ArrivalpassArrivalPassCreateRequest.js b/dist/models/ArrivalpassArrivalPassCreateRequest.js new file mode 100644 index 0000000..d6145c3 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassCreateRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassCreateRequest = instanceOfArrivalpassArrivalPassCreateRequest; +exports.ArrivalpassArrivalPassCreateRequestFromJSON = ArrivalpassArrivalPassCreateRequestFromJSON; +exports.ArrivalpassArrivalPassCreateRequestFromJSONTyped = ArrivalpassArrivalPassCreateRequestFromJSONTyped; +exports.ArrivalpassArrivalPassCreateRequestToJSON = ArrivalpassArrivalPassCreateRequestToJSON; +const ArrivalpassArrivalPassCreateRequestArrivalPass_1 = require("./ArrivalpassArrivalPassCreateRequestArrivalPass"); +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateRequest interface. + */ +function instanceOfArrivalpassArrivalPassCreateRequest(value) { + if (!('arrival_passes' in value) || value['arrival_passes'] === undefined) + return false; + return true; +} +function ArrivalpassArrivalPassCreateRequestFromJSON(json) { + return ArrivalpassArrivalPassCreateRequestFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': (json['arrival_passes'].map(ArrivalpassArrivalPassCreateRequestArrivalPass_1.ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON)), + }; +} +function ArrivalpassArrivalPassCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': (value['arrival_passes'].map(ArrivalpassArrivalPassCreateRequestArrivalPass_1.ArrivalpassArrivalPassCreateRequestArrivalPassToJSON)), + }; +} diff --git a/dist/models/ArrivalpassArrivalPassCreateRequestArrivalPass.d.ts b/dist/models/ArrivalpassArrivalPassCreateRequestArrivalPass.d.ts new file mode 100644 index 0000000..e1e009a --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassCreateRequestArrivalPass.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassCreateRequestArrivalPass + */ +export interface ArrivalpassArrivalPassCreateRequestArrivalPass { + /** + * Время прибытия в формате UTC. + * В это время пропуск начнёт действовать. + * + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + arrival_time: string; + /** + * ФИО водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + driver_name: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + driver_phone: string; + /** + * Идентификатор склада, на который оформляется пропуск. + * @type {number} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + dropoff_point_id: number; + /** + * Номер автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + vehicle_license_plate: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + vehicle_model: string; + /** + * Идентификатор склада продавца. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {number} + * @memberof ArrivalpassArrivalPassCreateRequestArrivalPass + */ + warehouse_id: number; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateRequestArrivalPass interface. + */ +export declare function instanceOfArrivalpassArrivalPassCreateRequestArrivalPass(value: object): value is ArrivalpassArrivalPassCreateRequestArrivalPass; +export declare function ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON(json: any): ArrivalpassArrivalPassCreateRequestArrivalPass; +export declare function ArrivalpassArrivalPassCreateRequestArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassCreateRequestArrivalPass; +export declare function ArrivalpassArrivalPassCreateRequestArrivalPassToJSON(value?: ArrivalpassArrivalPassCreateRequestArrivalPass | null): any; diff --git a/dist/models/ArrivalpassArrivalPassCreateRequestArrivalPass.js b/dist/models/ArrivalpassArrivalPassCreateRequestArrivalPass.js new file mode 100644 index 0000000..be2465b --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassCreateRequestArrivalPass.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassCreateRequestArrivalPass = instanceOfArrivalpassArrivalPassCreateRequestArrivalPass; +exports.ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON = ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON; +exports.ArrivalpassArrivalPassCreateRequestArrivalPassFromJSONTyped = ArrivalpassArrivalPassCreateRequestArrivalPassFromJSONTyped; +exports.ArrivalpassArrivalPassCreateRequestArrivalPassToJSON = ArrivalpassArrivalPassCreateRequestArrivalPassToJSON; +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateRequestArrivalPass interface. + */ +function instanceOfArrivalpassArrivalPassCreateRequestArrivalPass(value) { + if (!('arrival_time' in value) || value['arrival_time'] === undefined) + return false; + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('dropoff_point_id' in value) || value['dropoff_point_id'] === undefined) + return false; + if (!('vehicle_license_plate' in value) || value['vehicle_license_plate'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function ArrivalpassArrivalPassCreateRequestArrivalPassFromJSON(json) { + return ArrivalpassArrivalPassCreateRequestArrivalPassFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassCreateRequestArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_time': json['arrival_time'], + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'dropoff_point_id': json['dropoff_point_id'], + 'vehicle_license_plate': json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'], + 'warehouse_id': json['warehouse_id'], + }; +} +function ArrivalpassArrivalPassCreateRequestArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_time': value['arrival_time'], + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'dropoff_point_id': value['dropoff_point_id'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/ArrivalpassArrivalPassCreateResponse.d.ts b/dist/models/ArrivalpassArrivalPassCreateResponse.d.ts new file mode 100644 index 0000000..837e9a2 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassCreateResponse + */ +export interface ArrivalpassArrivalPassCreateResponse { + /** + * Идентификаторы пропусков. + * @type {Array} + * @memberof ArrivalpassArrivalPassCreateResponse + */ + arrival_pass_ids?: Array; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateResponse interface. + */ +export declare function instanceOfArrivalpassArrivalPassCreateResponse(value: object): value is ArrivalpassArrivalPassCreateResponse; +export declare function ArrivalpassArrivalPassCreateResponseFromJSON(json: any): ArrivalpassArrivalPassCreateResponse; +export declare function ArrivalpassArrivalPassCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassCreateResponse; +export declare function ArrivalpassArrivalPassCreateResponseToJSON(value?: ArrivalpassArrivalPassCreateResponse | null): any; diff --git a/dist/models/ArrivalpassArrivalPassCreateResponse.js b/dist/models/ArrivalpassArrivalPassCreateResponse.js new file mode 100644 index 0000000..df72974 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassCreateResponse = instanceOfArrivalpassArrivalPassCreateResponse; +exports.ArrivalpassArrivalPassCreateResponseFromJSON = ArrivalpassArrivalPassCreateResponseFromJSON; +exports.ArrivalpassArrivalPassCreateResponseFromJSONTyped = ArrivalpassArrivalPassCreateResponseFromJSONTyped; +exports.ArrivalpassArrivalPassCreateResponseToJSON = ArrivalpassArrivalPassCreateResponseToJSON; +/** + * Check if a given object implements the ArrivalpassArrivalPassCreateResponse interface. + */ +function instanceOfArrivalpassArrivalPassCreateResponse(value) { + return true; +} +function ArrivalpassArrivalPassCreateResponseFromJSON(json) { + return ArrivalpassArrivalPassCreateResponseFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'] == null ? undefined : json['arrival_pass_ids'], + }; +} +function ArrivalpassArrivalPassCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + }; +} diff --git a/dist/models/ArrivalpassArrivalPassDeleteRequest.d.ts b/dist/models/ArrivalpassArrivalPassDeleteRequest.d.ts new file mode 100644 index 0000000..93898a0 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassDeleteRequest + */ +export interface ArrivalpassArrivalPassDeleteRequest { + /** + * Идентификаторы пропусков. + * @type {Array} + * @memberof ArrivalpassArrivalPassDeleteRequest + */ + arrival_pass_ids: Array; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassDeleteRequest interface. + */ +export declare function instanceOfArrivalpassArrivalPassDeleteRequest(value: object): value is ArrivalpassArrivalPassDeleteRequest; +export declare function ArrivalpassArrivalPassDeleteRequestFromJSON(json: any): ArrivalpassArrivalPassDeleteRequest; +export declare function ArrivalpassArrivalPassDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassDeleteRequest; +export declare function ArrivalpassArrivalPassDeleteRequestToJSON(value?: ArrivalpassArrivalPassDeleteRequest | null): any; diff --git a/dist/models/ArrivalpassArrivalPassDeleteRequest.js b/dist/models/ArrivalpassArrivalPassDeleteRequest.js new file mode 100644 index 0000000..8cddd0e --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassDeleteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassDeleteRequest = instanceOfArrivalpassArrivalPassDeleteRequest; +exports.ArrivalpassArrivalPassDeleteRequestFromJSON = ArrivalpassArrivalPassDeleteRequestFromJSON; +exports.ArrivalpassArrivalPassDeleteRequestFromJSONTyped = ArrivalpassArrivalPassDeleteRequestFromJSONTyped; +exports.ArrivalpassArrivalPassDeleteRequestToJSON = ArrivalpassArrivalPassDeleteRequestToJSON; +/** + * Check if a given object implements the ArrivalpassArrivalPassDeleteRequest interface. + */ +function instanceOfArrivalpassArrivalPassDeleteRequest(value) { + if (!('arrival_pass_ids' in value) || value['arrival_pass_ids'] === undefined) + return false; + return true; +} +function ArrivalpassArrivalPassDeleteRequestFromJSON(json) { + return ArrivalpassArrivalPassDeleteRequestFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'], + }; +} +function ArrivalpassArrivalPassDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + }; +} diff --git a/dist/models/ArrivalpassArrivalPassListRequest.d.ts b/dist/models/ArrivalpassArrivalPassListRequest.d.ts new file mode 100644 index 0000000..f65239d --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassListRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ArrivalPassListRequestFilter } from './ArrivalPassListRequestFilter'; +/** + * + * @export + * @interface ArrivalpassArrivalPassListRequest + */ +export interface ArrivalpassArrivalPassListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ArrivalpassArrivalPassListRequest + */ + cursor?: string; + /** + * + * @type {ArrivalPassListRequestFilter} + * @memberof ArrivalpassArrivalPassListRequest + */ + filter?: ArrivalPassListRequestFilter; + /** + * Ограничение по количеству записей в ответе. + * + * @type {number} + * @memberof ArrivalpassArrivalPassListRequest + */ + limit: number; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassListRequest interface. + */ +export declare function instanceOfArrivalpassArrivalPassListRequest(value: object): value is ArrivalpassArrivalPassListRequest; +export declare function ArrivalpassArrivalPassListRequestFromJSON(json: any): ArrivalpassArrivalPassListRequest; +export declare function ArrivalpassArrivalPassListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassListRequest; +export declare function ArrivalpassArrivalPassListRequestToJSON(value?: ArrivalpassArrivalPassListRequest | null): any; diff --git a/dist/models/ArrivalpassArrivalPassListRequest.js b/dist/models/ArrivalpassArrivalPassListRequest.js new file mode 100644 index 0000000..61d6b82 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassListRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassListRequest = instanceOfArrivalpassArrivalPassListRequest; +exports.ArrivalpassArrivalPassListRequestFromJSON = ArrivalpassArrivalPassListRequestFromJSON; +exports.ArrivalpassArrivalPassListRequestFromJSONTyped = ArrivalpassArrivalPassListRequestFromJSONTyped; +exports.ArrivalpassArrivalPassListRequestToJSON = ArrivalpassArrivalPassListRequestToJSON; +const ArrivalPassListRequestFilter_1 = require("./ArrivalPassListRequestFilter"); +/** + * Check if a given object implements the ArrivalpassArrivalPassListRequest interface. + */ +function instanceOfArrivalpassArrivalPassListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function ArrivalpassArrivalPassListRequestFromJSON(json) { + return ArrivalpassArrivalPassListRequestFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, ArrivalPassListRequestFilter_1.ArrivalPassListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function ArrivalpassArrivalPassListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, ArrivalPassListRequestFilter_1.ArrivalPassListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/ArrivalpassArrivalPassListResponse.d.ts b/dist/models/ArrivalpassArrivalPassListResponse.d.ts new file mode 100644 index 0000000..1cf659d --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassListResponse.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ArrivalpassArrivalPassListResponseArrivalPass } from './ArrivalpassArrivalPassListResponseArrivalPass'; +/** + * + * @export + * @interface ArrivalpassArrivalPassListResponse + */ +export interface ArrivalpassArrivalPassListResponse { + /** + * Список пропусков для перевозки. + * @type {Array} + * @memberof ArrivalpassArrivalPassListResponse + */ + arrival_passes?: Array; + /** + * Указатель для выборки следующих данных. + * Если параметр пустой, данных больше нет. + * + * @type {string} + * @memberof ArrivalpassArrivalPassListResponse + */ + cursor?: string; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassListResponse interface. + */ +export declare function instanceOfArrivalpassArrivalPassListResponse(value: object): value is ArrivalpassArrivalPassListResponse; +export declare function ArrivalpassArrivalPassListResponseFromJSON(json: any): ArrivalpassArrivalPassListResponse; +export declare function ArrivalpassArrivalPassListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassListResponse; +export declare function ArrivalpassArrivalPassListResponseToJSON(value?: ArrivalpassArrivalPassListResponse | null): any; diff --git a/dist/models/ArrivalpassArrivalPassListResponse.js b/dist/models/ArrivalpassArrivalPassListResponse.js new file mode 100644 index 0000000..fdeef7d --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassListResponse = instanceOfArrivalpassArrivalPassListResponse; +exports.ArrivalpassArrivalPassListResponseFromJSON = ArrivalpassArrivalPassListResponseFromJSON; +exports.ArrivalpassArrivalPassListResponseFromJSONTyped = ArrivalpassArrivalPassListResponseFromJSONTyped; +exports.ArrivalpassArrivalPassListResponseToJSON = ArrivalpassArrivalPassListResponseToJSON; +const ArrivalpassArrivalPassListResponseArrivalPass_1 = require("./ArrivalpassArrivalPassListResponseArrivalPass"); +/** + * Check if a given object implements the ArrivalpassArrivalPassListResponse interface. + */ +function instanceOfArrivalpassArrivalPassListResponse(value) { + return true; +} +function ArrivalpassArrivalPassListResponseFromJSON(json) { + return ArrivalpassArrivalPassListResponseFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': json['arrival_passes'] == null ? undefined : (json['arrival_passes'].map(ArrivalpassArrivalPassListResponseArrivalPass_1.ArrivalpassArrivalPassListResponseArrivalPassFromJSON)), + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + }; +} +function ArrivalpassArrivalPassListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': value['arrival_passes'] == null ? undefined : (value['arrival_passes'].map(ArrivalpassArrivalPassListResponseArrivalPass_1.ArrivalpassArrivalPassListResponseArrivalPassToJSON)), + 'cursor': value['cursor'], + }; +} diff --git a/dist/models/ArrivalpassArrivalPassListResponseArrivalPass.d.ts b/dist/models/ArrivalpassArrivalPassListResponseArrivalPass.d.ts new file mode 100644 index 0000000..f77d4a9 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassListResponseArrivalPass.d.ts @@ -0,0 +1,86 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassListResponseArrivalPass + */ +export interface ArrivalpassArrivalPassListResponseArrivalPass { + /** + * Идентификатор пропуска. + * @type {number} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + arrival_pass_id?: number; + /** + * Цель приезда. + * @type {Array} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + arrival_reasons?: Array; + /** + * Дата и время въезда в формате UTC. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + arrival_time?: string; + /** + * ФИО водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + driver_name?: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + driver_phone?: string; + /** + * Идентификатор точки отгрузки. + * @type {number} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + dropoff_point_id?: number; + /** + * `true`, если заявка активна. + * + * @type {boolean} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + is_active?: boolean; + /** + * Номер автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + vehicle_license_plate?: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + vehicle_model?: string; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof ArrivalpassArrivalPassListResponseArrivalPass + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassListResponseArrivalPass interface. + */ +export declare function instanceOfArrivalpassArrivalPassListResponseArrivalPass(value: object): value is ArrivalpassArrivalPassListResponseArrivalPass; +export declare function ArrivalpassArrivalPassListResponseArrivalPassFromJSON(json: any): ArrivalpassArrivalPassListResponseArrivalPass; +export declare function ArrivalpassArrivalPassListResponseArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassListResponseArrivalPass; +export declare function ArrivalpassArrivalPassListResponseArrivalPassToJSON(value?: ArrivalpassArrivalPassListResponseArrivalPass | null): any; diff --git a/dist/models/ArrivalpassArrivalPassListResponseArrivalPass.js b/dist/models/ArrivalpassArrivalPassListResponseArrivalPass.js new file mode 100644 index 0000000..f6e7319 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassListResponseArrivalPass.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassListResponseArrivalPass = instanceOfArrivalpassArrivalPassListResponseArrivalPass; +exports.ArrivalpassArrivalPassListResponseArrivalPassFromJSON = ArrivalpassArrivalPassListResponseArrivalPassFromJSON; +exports.ArrivalpassArrivalPassListResponseArrivalPassFromJSONTyped = ArrivalpassArrivalPassListResponseArrivalPassFromJSONTyped; +exports.ArrivalpassArrivalPassListResponseArrivalPassToJSON = ArrivalpassArrivalPassListResponseArrivalPassToJSON; +/** + * Check if a given object implements the ArrivalpassArrivalPassListResponseArrivalPass interface. + */ +function instanceOfArrivalpassArrivalPassListResponseArrivalPass(value) { + return true; +} +function ArrivalpassArrivalPassListResponseArrivalPassFromJSON(json) { + return ArrivalpassArrivalPassListResponseArrivalPassFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassListResponseArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_id': json['arrival_pass_id'] == null ? undefined : json['arrival_pass_id'], + 'arrival_reasons': json['arrival_reasons'] == null ? undefined : json['arrival_reasons'], + 'arrival_time': json['arrival_time'] == null ? undefined : json['arrival_time'], + 'driver_name': json['driver_name'] == null ? undefined : json['driver_name'], + 'driver_phone': json['driver_phone'] == null ? undefined : json['driver_phone'], + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'vehicle_license_plate': json['vehicle_license_plate'] == null ? undefined : json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'] == null ? undefined : json['vehicle_model'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function ArrivalpassArrivalPassListResponseArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_id': value['arrival_pass_id'], + 'arrival_reasons': value['arrival_reasons'], + 'arrival_time': value['arrival_time'], + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'dropoff_point_id': value['dropoff_point_id'], + 'is_active': value['is_active'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/ArrivalpassArrivalPassUpdateRequest.d.ts b/dist/models/ArrivalpassArrivalPassUpdateRequest.d.ts new file mode 100644 index 0000000..d0c55ab --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassUpdateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ArrivalpassArrivalPassUpdateRequestArrivalPass } from './ArrivalpassArrivalPassUpdateRequestArrivalPass'; +/** + * + * @export + * @interface ArrivalpassArrivalPassUpdateRequest + */ +export interface ArrivalpassArrivalPassUpdateRequest { + /** + * Список пропусков. + * @type {Array} + * @memberof ArrivalpassArrivalPassUpdateRequest + */ + arrival_passes: Array; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassUpdateRequest interface. + */ +export declare function instanceOfArrivalpassArrivalPassUpdateRequest(value: object): value is ArrivalpassArrivalPassUpdateRequest; +export declare function ArrivalpassArrivalPassUpdateRequestFromJSON(json: any): ArrivalpassArrivalPassUpdateRequest; +export declare function ArrivalpassArrivalPassUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassUpdateRequest; +export declare function ArrivalpassArrivalPassUpdateRequestToJSON(value?: ArrivalpassArrivalPassUpdateRequest | null): any; diff --git a/dist/models/ArrivalpassArrivalPassUpdateRequest.js b/dist/models/ArrivalpassArrivalPassUpdateRequest.js new file mode 100644 index 0000000..aaea715 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassUpdateRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassUpdateRequest = instanceOfArrivalpassArrivalPassUpdateRequest; +exports.ArrivalpassArrivalPassUpdateRequestFromJSON = ArrivalpassArrivalPassUpdateRequestFromJSON; +exports.ArrivalpassArrivalPassUpdateRequestFromJSONTyped = ArrivalpassArrivalPassUpdateRequestFromJSONTyped; +exports.ArrivalpassArrivalPassUpdateRequestToJSON = ArrivalpassArrivalPassUpdateRequestToJSON; +const ArrivalpassArrivalPassUpdateRequestArrivalPass_1 = require("./ArrivalpassArrivalPassUpdateRequestArrivalPass"); +/** + * Check if a given object implements the ArrivalpassArrivalPassUpdateRequest interface. + */ +function instanceOfArrivalpassArrivalPassUpdateRequest(value) { + if (!('arrival_passes' in value) || value['arrival_passes'] === undefined) + return false; + return true; +} +function ArrivalpassArrivalPassUpdateRequestFromJSON(json) { + return ArrivalpassArrivalPassUpdateRequestFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': (json['arrival_passes'].map(ArrivalpassArrivalPassUpdateRequestArrivalPass_1.ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON)), + }; +} +function ArrivalpassArrivalPassUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': (value['arrival_passes'].map(ArrivalpassArrivalPassUpdateRequestArrivalPass_1.ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON)), + }; +} diff --git a/dist/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.d.ts b/dist/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.d.ts new file mode 100644 index 0000000..3e8084d --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ArrivalpassArrivalPassUpdateRequestArrivalPass + */ +export interface ArrivalpassArrivalPassUpdateRequestArrivalPass { + /** + * Идентификатор пропуска. + * @type {number} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + arrival_pass_id: number; + /** + * Время прибытия в формате UTC. + * В это время начнёт действовать пропуск. + * + * Чтобы изменить время прибытия, используйте метод [/v1/carriage/pass/update](#operation/carriagePassUpdate). + * + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + arrival_time: string; + /** + * ФИО водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + driver_name: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + driver_phone: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + vehicle_license_plate: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof ArrivalpassArrivalPassUpdateRequestArrivalPass + */ + vehicle_model: string; +} +/** + * Check if a given object implements the ArrivalpassArrivalPassUpdateRequestArrivalPass interface. + */ +export declare function instanceOfArrivalpassArrivalPassUpdateRequestArrivalPass(value: object): value is ArrivalpassArrivalPassUpdateRequestArrivalPass; +export declare function ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON(json: any): ArrivalpassArrivalPassUpdateRequestArrivalPass; +export declare function ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArrivalpassArrivalPassUpdateRequestArrivalPass; +export declare function ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON(value?: ArrivalpassArrivalPassUpdateRequestArrivalPass | null): any; diff --git a/dist/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.js b/dist/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.js new file mode 100644 index 0000000..9e5fe82 --- /dev/null +++ b/dist/models/ArrivalpassArrivalPassUpdateRequestArrivalPass.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfArrivalpassArrivalPassUpdateRequestArrivalPass = instanceOfArrivalpassArrivalPassUpdateRequestArrivalPass; +exports.ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON = ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON; +exports.ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSONTyped = ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSONTyped; +exports.ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON = ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON; +/** + * Check if a given object implements the ArrivalpassArrivalPassUpdateRequestArrivalPass interface. + */ +function instanceOfArrivalpassArrivalPassUpdateRequestArrivalPass(value) { + if (!('arrival_pass_id' in value) || value['arrival_pass_id'] === undefined) + return false; + if (!('arrival_time' in value) || value['arrival_time'] === undefined) + return false; + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('vehicle_license_plate' in value) || value['vehicle_license_plate'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + return true; +} +function ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSON(json) { + return ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSONTyped(json, false); +} +function ArrivalpassArrivalPassUpdateRequestArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_id': json['arrival_pass_id'], + 'arrival_time': json['arrival_time'], + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'vehicle_license_plate': json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'], + }; +} +function ArrivalpassArrivalPassUpdateRequestArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_id': value['arrival_pass_id'], + 'arrival_time': value['arrival_time'], + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + }; +} diff --git a/dist/models/AssemblyFbsProductListResponseProducts.d.ts b/dist/models/AssemblyFbsProductListResponseProducts.d.ts new file mode 100644 index 0000000..c7cc865 --- /dev/null +++ b/dist/models/AssemblyFbsProductListResponseProducts.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductsPostings } from './ProductsPostings'; +/** + * + * @export + * @interface AssemblyFbsProductListResponseProducts + */ +export interface AssemblyFbsProductListResponseProducts { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof AssemblyFbsProductListResponseProducts + */ + offer_id?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof AssemblyFbsProductListResponseProducts + */ + picture_url?: string; + /** + * Список отправлений. + * @type {Array} + * @memberof AssemblyFbsProductListResponseProducts + */ + postings?: Array; + /** + * Название товара. + * @type {string} + * @memberof AssemblyFbsProductListResponseProducts + */ + product_name?: string; + /** + * Количество товара. + * @type {number} + * @memberof AssemblyFbsProductListResponseProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof AssemblyFbsProductListResponseProducts + */ + sku?: number; +} +/** + * Check if a given object implements the AssemblyFbsProductListResponseProducts interface. + */ +export declare function instanceOfAssemblyFbsProductListResponseProducts(value: object): value is AssemblyFbsProductListResponseProducts; +export declare function AssemblyFbsProductListResponseProductsFromJSON(json: any): AssemblyFbsProductListResponseProducts; +export declare function AssemblyFbsProductListResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssemblyFbsProductListResponseProducts; +export declare function AssemblyFbsProductListResponseProductsToJSON(value?: AssemblyFbsProductListResponseProducts | null): any; diff --git a/dist/models/AssemblyFbsProductListResponseProducts.js b/dist/models/AssemblyFbsProductListResponseProducts.js new file mode 100644 index 0000000..f79a312 --- /dev/null +++ b/dist/models/AssemblyFbsProductListResponseProducts.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAssemblyFbsProductListResponseProducts = instanceOfAssemblyFbsProductListResponseProducts; +exports.AssemblyFbsProductListResponseProductsFromJSON = AssemblyFbsProductListResponseProductsFromJSON; +exports.AssemblyFbsProductListResponseProductsFromJSONTyped = AssemblyFbsProductListResponseProductsFromJSONTyped; +exports.AssemblyFbsProductListResponseProductsToJSON = AssemblyFbsProductListResponseProductsToJSON; +const ProductsPostings_1 = require("./ProductsPostings"); +/** + * Check if a given object implements the AssemblyFbsProductListResponseProducts interface. + */ +function instanceOfAssemblyFbsProductListResponseProducts(value) { + return true; +} +function AssemblyFbsProductListResponseProductsFromJSON(json) { + return AssemblyFbsProductListResponseProductsFromJSONTyped(json, false); +} +function AssemblyFbsProductListResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(ProductsPostings_1.ProductsPostingsFromJSON)), + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function AssemblyFbsProductListResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'picture_url': value['picture_url'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(ProductsPostings_1.ProductsPostingsToJSON)), + 'product_name': value['product_name'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/AvailabilityReason.d.ts b/dist/models/AvailabilityReason.d.ts new file mode 100644 index 0000000..2b5188c --- /dev/null +++ b/dist/models/AvailabilityReason.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReasonHumanText } from './ReasonHumanText'; +/** + * + * @export + * @interface AvailabilityReason + */ +export interface AvailabilityReason { + /** + * + * @type {ReasonHumanText} + * @memberof AvailabilityReason + */ + human_text?: ReasonHumanText; + /** + * Идентификатор причины. + * @type {number} + * @memberof AvailabilityReason + */ + id?: number; +} +/** + * Check if a given object implements the AvailabilityReason interface. + */ +export declare function instanceOfAvailabilityReason(value: object): value is AvailabilityReason; +export declare function AvailabilityReasonFromJSON(json: any): AvailabilityReason; +export declare function AvailabilityReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityReason; +export declare function AvailabilityReasonToJSON(value?: AvailabilityReason | null): any; diff --git a/dist/models/AvailabilityReason.js b/dist/models/AvailabilityReason.js new file mode 100644 index 0000000..abbbaae --- /dev/null +++ b/dist/models/AvailabilityReason.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAvailabilityReason = instanceOfAvailabilityReason; +exports.AvailabilityReasonFromJSON = AvailabilityReasonFromJSON; +exports.AvailabilityReasonFromJSONTyped = AvailabilityReasonFromJSONTyped; +exports.AvailabilityReasonToJSON = AvailabilityReasonToJSON; +const ReasonHumanText_1 = require("./ReasonHumanText"); +/** + * Check if a given object implements the AvailabilityReason interface. + */ +function instanceOfAvailabilityReason(value) { + return true; +} +function AvailabilityReasonFromJSON(json) { + return AvailabilityReasonFromJSONTyped(json, false); +} +function AvailabilityReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'human_text': json['human_text'] == null ? undefined : (0, ReasonHumanText_1.ReasonHumanTextFromJSON)(json['human_text']), + 'id': json['id'] == null ? undefined : json['id'], + }; +} +function AvailabilityReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'human_text': (0, ReasonHumanText_1.ReasonHumanTextToJSON)(value['human_text']), + 'id': value['id'], + }; +} diff --git a/dist/models/AvailabilityStatusInvalidReasonEnum.d.ts b/dist/models/AvailabilityStatusInvalidReasonEnum.d.ts new file mode 100644 index 0000000..5f71fb6 --- /dev/null +++ b/dist/models/AvailabilityStatusInvalidReasonEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина недоступности склада: + * - `UNSPECIFIED` — не определена; + * - `NO_REASON` — нет причины; + * - `PARTIAL_MATRIX_AVAILABLE` — склад не может принять часть товаров; + * - `NOT_AVAILABLE_MATRIX` — склад не может принять все товары; + * - `NOT_AVAILABLE_RANK` — склад недоступен из-за рейтинга; + * - `NOT_AVAILABLE_ROUTE` — нет доступного маршрута; + * - `NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT` — нет таймслотов на точке отгрузки; + * - `NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE` — нет таймслотов на складе поставки; + * - `NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES` — нет таймслотов на складах отгрузки и поставки; + * - `NOT_AVAILABLE_TIMESLOT_NO_REASON` — нет таймслотов. + * + * @export + */ +export declare const AvailabilityStatusInvalidReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly NO_REASON: "NO_REASON"; + readonly PARTIAL_MATRIX_AVAILABLE: "PARTIAL_MATRIX_AVAILABLE"; + readonly NOT_AVAILABLE_MATRIX: "NOT_AVAILABLE_MATRIX"; + readonly NOT_AVAILABLE_RANK: "NOT_AVAILABLE_RANK"; + readonly NOT_AVAILABLE_ROUTE: "NOT_AVAILABLE_ROUTE"; + readonly NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT: "NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT"; + readonly NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE: "NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE"; + readonly NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES: "NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES"; + readonly NOT_AVAILABLE_TIMESLOT_NO_REASON: "NOT_AVAILABLE_TIMESLOT_NO_REASON"; +}; +export type AvailabilityStatusInvalidReasonEnum = typeof AvailabilityStatusInvalidReasonEnum[keyof typeof AvailabilityStatusInvalidReasonEnum]; +export declare function instanceOfAvailabilityStatusInvalidReasonEnum(value: any): boolean; +export declare function AvailabilityStatusInvalidReasonEnumFromJSON(json: any): AvailabilityStatusInvalidReasonEnum; +export declare function AvailabilityStatusInvalidReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityStatusInvalidReasonEnum; +export declare function AvailabilityStatusInvalidReasonEnumToJSON(value?: AvailabilityStatusInvalidReasonEnum | null): any; diff --git a/dist/models/AvailabilityStatusInvalidReasonEnum.js b/dist/models/AvailabilityStatusInvalidReasonEnum.js new file mode 100644 index 0000000..b92befd --- /dev/null +++ b/dist/models/AvailabilityStatusInvalidReasonEnum.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AvailabilityStatusInvalidReasonEnum = void 0; +exports.instanceOfAvailabilityStatusInvalidReasonEnum = instanceOfAvailabilityStatusInvalidReasonEnum; +exports.AvailabilityStatusInvalidReasonEnumFromJSON = AvailabilityStatusInvalidReasonEnumFromJSON; +exports.AvailabilityStatusInvalidReasonEnumFromJSONTyped = AvailabilityStatusInvalidReasonEnumFromJSONTyped; +exports.AvailabilityStatusInvalidReasonEnumToJSON = AvailabilityStatusInvalidReasonEnumToJSON; +/** + * Причина недоступности склада: + * - `UNSPECIFIED` — не определена; + * - `NO_REASON` — нет причины; + * - `PARTIAL_MATRIX_AVAILABLE` — склад не может принять часть товаров; + * - `NOT_AVAILABLE_MATRIX` — склад не может принять все товары; + * - `NOT_AVAILABLE_RANK` — склад недоступен из-за рейтинга; + * - `NOT_AVAILABLE_ROUTE` — нет доступного маршрута; + * - `NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT` — нет таймслотов на точке отгрузки; + * - `NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE` — нет таймслотов на складе поставки; + * - `NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES` — нет таймслотов на складах отгрузки и поставки; + * - `NOT_AVAILABLE_TIMESLOT_NO_REASON` — нет таймслотов. + * + * @export + */ +exports.AvailabilityStatusInvalidReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + NO_REASON: 'NO_REASON', + PARTIAL_MATRIX_AVAILABLE: 'PARTIAL_MATRIX_AVAILABLE', + NOT_AVAILABLE_MATRIX: 'NOT_AVAILABLE_MATRIX', + NOT_AVAILABLE_RANK: 'NOT_AVAILABLE_RANK', + NOT_AVAILABLE_ROUTE: 'NOT_AVAILABLE_ROUTE', + NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT: 'NOT_AVAILABLE_TIMESLOT_FOR_DROP_OFF_POINT', + NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE: 'NOT_AVAILABLE_TIMESLOT_FOR_STORAGE_WAREHOUSE', + NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES: 'NOT_AVAILABLE_TIMESLOT_FOR_BOTH_WAREHOUSES', + NOT_AVAILABLE_TIMESLOT_NO_REASON: 'NOT_AVAILABLE_TIMESLOT_NO_REASON' +}; +function instanceOfAvailabilityStatusInvalidReasonEnum(value) { + for (const key in exports.AvailabilityStatusInvalidReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.AvailabilityStatusInvalidReasonEnum, key)) { + if (exports.AvailabilityStatusInvalidReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function AvailabilityStatusInvalidReasonEnumFromJSON(json) { + return AvailabilityStatusInvalidReasonEnumFromJSONTyped(json, false); +} +function AvailabilityStatusInvalidReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function AvailabilityStatusInvalidReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/AvailabilityStatusStateEnum.d.ts b/dist/models/AvailabilityStatusStateEnum.d.ts new file mode 100644 index 0000000..ab445cf --- /dev/null +++ b/dist/models/AvailabilityStatusStateEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус доступности: + * - `UNSPECIFIED` — не определён, + * - `FULL_AVAILABLE` — доступен, + * - `PARTIAL_AVAILABLE` — частично доступен, + * - `NOT_AVAILABLE` — недоступен. + * + * @export + */ +export declare const AvailabilityStatusStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly FULL_AVAILABLE: "FULL_AVAILABLE"; + readonly PARTIAL_AVAILABLE: "PARTIAL_AVAILABLE"; + readonly NOT_AVAILABLE: "NOT_AVAILABLE"; +}; +export type AvailabilityStatusStateEnum = typeof AvailabilityStatusStateEnum[keyof typeof AvailabilityStatusStateEnum]; +export declare function instanceOfAvailabilityStatusStateEnum(value: any): boolean; +export declare function AvailabilityStatusStateEnumFromJSON(json: any): AvailabilityStatusStateEnum; +export declare function AvailabilityStatusStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityStatusStateEnum; +export declare function AvailabilityStatusStateEnumToJSON(value?: AvailabilityStatusStateEnum | null): any; diff --git a/dist/models/AvailabilityStatusStateEnum.js b/dist/models/AvailabilityStatusStateEnum.js new file mode 100644 index 0000000..f54cd51 --- /dev/null +++ b/dist/models/AvailabilityStatusStateEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AvailabilityStatusStateEnum = void 0; +exports.instanceOfAvailabilityStatusStateEnum = instanceOfAvailabilityStatusStateEnum; +exports.AvailabilityStatusStateEnumFromJSON = AvailabilityStatusStateEnumFromJSON; +exports.AvailabilityStatusStateEnumFromJSONTyped = AvailabilityStatusStateEnumFromJSONTyped; +exports.AvailabilityStatusStateEnumToJSON = AvailabilityStatusStateEnumToJSON; +/** + * Статус доступности: + * - `UNSPECIFIED` — не определён, + * - `FULL_AVAILABLE` — доступен, + * - `PARTIAL_AVAILABLE` — частично доступен, + * - `NOT_AVAILABLE` — недоступен. + * + * @export + */ +exports.AvailabilityStatusStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + FULL_AVAILABLE: 'FULL_AVAILABLE', + PARTIAL_AVAILABLE: 'PARTIAL_AVAILABLE', + NOT_AVAILABLE: 'NOT_AVAILABLE' +}; +function instanceOfAvailabilityStatusStateEnum(value) { + for (const key in exports.AvailabilityStatusStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.AvailabilityStatusStateEnum, key)) { + if (exports.AvailabilityStatusStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function AvailabilityStatusStateEnumFromJSON(json) { + return AvailabilityStatusStateEnumFromJSONTyped(json, false); +} +function AvailabilityStatusStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function AvailabilityStatusStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/BrandBrandCompanyCertificationListRequest.d.ts b/dist/models/BrandBrandCompanyCertificationListRequest.d.ts new file mode 100644 index 0000000..5ac13fb --- /dev/null +++ b/dist/models/BrandBrandCompanyCertificationListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BrandBrandCompanyCertificationListRequest + */ +export interface BrandBrandCompanyCertificationListRequest { + /** + * Номер страницы, возвращаемой в запросе. + * @type {number} + * @memberof BrandBrandCompanyCertificationListRequest + */ + page: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof BrandBrandCompanyCertificationListRequest + */ + page_size: number; +} +/** + * Check if a given object implements the BrandBrandCompanyCertificationListRequest interface. + */ +export declare function instanceOfBrandBrandCompanyCertificationListRequest(value: object): value is BrandBrandCompanyCertificationListRequest; +export declare function BrandBrandCompanyCertificationListRequestFromJSON(json: any): BrandBrandCompanyCertificationListRequest; +export declare function BrandBrandCompanyCertificationListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandBrandCompanyCertificationListRequest; +export declare function BrandBrandCompanyCertificationListRequestToJSON(value?: BrandBrandCompanyCertificationListRequest | null): any; diff --git a/dist/models/BrandBrandCompanyCertificationListRequest.js b/dist/models/BrandBrandCompanyCertificationListRequest.js new file mode 100644 index 0000000..8a96002 --- /dev/null +++ b/dist/models/BrandBrandCompanyCertificationListRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBrandBrandCompanyCertificationListRequest = instanceOfBrandBrandCompanyCertificationListRequest; +exports.BrandBrandCompanyCertificationListRequestFromJSON = BrandBrandCompanyCertificationListRequestFromJSON; +exports.BrandBrandCompanyCertificationListRequestFromJSONTyped = BrandBrandCompanyCertificationListRequestFromJSONTyped; +exports.BrandBrandCompanyCertificationListRequestToJSON = BrandBrandCompanyCertificationListRequestToJSON; +/** + * Check if a given object implements the BrandBrandCompanyCertificationListRequest interface. + */ +function instanceOfBrandBrandCompanyCertificationListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +function BrandBrandCompanyCertificationListRequestFromJSON(json) { + return BrandBrandCompanyCertificationListRequestFromJSONTyped(json, false); +} +function BrandBrandCompanyCertificationListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'page_size': json['page_size'], + }; +} +function BrandBrandCompanyCertificationListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/models/BrandBrandCompanyCertificationListResponse.d.ts b/dist/models/BrandBrandCompanyCertificationListResponse.d.ts new file mode 100644 index 0000000..cb41926 --- /dev/null +++ b/dist/models/BrandBrandCompanyCertificationListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BrandCompanyCertificationListResponseBrandCertificationResult } from './BrandCompanyCertificationListResponseBrandCertificationResult'; +/** + * + * @export + * @interface BrandBrandCompanyCertificationListResponse + */ +export interface BrandBrandCompanyCertificationListResponse { + /** + * + * @type {BrandCompanyCertificationListResponseBrandCertificationResult} + * @memberof BrandBrandCompanyCertificationListResponse + */ + result?: BrandCompanyCertificationListResponseBrandCertificationResult; +} +/** + * Check if a given object implements the BrandBrandCompanyCertificationListResponse interface. + */ +export declare function instanceOfBrandBrandCompanyCertificationListResponse(value: object): value is BrandBrandCompanyCertificationListResponse; +export declare function BrandBrandCompanyCertificationListResponseFromJSON(json: any): BrandBrandCompanyCertificationListResponse; +export declare function BrandBrandCompanyCertificationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandBrandCompanyCertificationListResponse; +export declare function BrandBrandCompanyCertificationListResponseToJSON(value?: BrandBrandCompanyCertificationListResponse | null): any; diff --git a/dist/models/BrandBrandCompanyCertificationListResponse.js b/dist/models/BrandBrandCompanyCertificationListResponse.js new file mode 100644 index 0000000..f6fe165 --- /dev/null +++ b/dist/models/BrandBrandCompanyCertificationListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBrandBrandCompanyCertificationListResponse = instanceOfBrandBrandCompanyCertificationListResponse; +exports.BrandBrandCompanyCertificationListResponseFromJSON = BrandBrandCompanyCertificationListResponseFromJSON; +exports.BrandBrandCompanyCertificationListResponseFromJSONTyped = BrandBrandCompanyCertificationListResponseFromJSONTyped; +exports.BrandBrandCompanyCertificationListResponseToJSON = BrandBrandCompanyCertificationListResponseToJSON; +const BrandCompanyCertificationListResponseBrandCertificationResult_1 = require("./BrandCompanyCertificationListResponseBrandCertificationResult"); +/** + * Check if a given object implements the BrandBrandCompanyCertificationListResponse interface. + */ +function instanceOfBrandBrandCompanyCertificationListResponse(value) { + return true; +} +function BrandBrandCompanyCertificationListResponseFromJSON(json) { + return BrandBrandCompanyCertificationListResponseFromJSONTyped(json, false); +} +function BrandBrandCompanyCertificationListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, BrandCompanyCertificationListResponseBrandCertificationResult_1.BrandCompanyCertificationListResponseBrandCertificationResultFromJSON)(json['result']), + }; +} +function BrandBrandCompanyCertificationListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, BrandCompanyCertificationListResponseBrandCertificationResult_1.BrandCompanyCertificationListResponseBrandCertificationResultToJSON)(value['result']), + }; +} diff --git a/dist/models/BrandCompanyCertificationListResponseBrandCertification.d.ts b/dist/models/BrandCompanyCertificationListResponseBrandCertification.d.ts new file mode 100644 index 0000000..66fc33d --- /dev/null +++ b/dist/models/BrandCompanyCertificationListResponseBrandCertification.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BrandCompanyCertificationListResponseBrandCertification + */ +export interface BrandCompanyCertificationListResponseBrandCertification { + /** + * Название бренда. + * @type {string} + * @memberof BrandCompanyCertificationListResponseBrandCertification + */ + brand_name?: string; + /** + * Признак, что требуется сертификат: + * - `true` — сертификат не нужен; + * - `false` — требуется сертификат. + * + * @type {boolean} + * @memberof BrandCompanyCertificationListResponseBrandCertification + */ + has_certificate?: boolean; +} +/** + * Check if a given object implements the BrandCompanyCertificationListResponseBrandCertification interface. + */ +export declare function instanceOfBrandCompanyCertificationListResponseBrandCertification(value: object): value is BrandCompanyCertificationListResponseBrandCertification; +export declare function BrandCompanyCertificationListResponseBrandCertificationFromJSON(json: any): BrandCompanyCertificationListResponseBrandCertification; +export declare function BrandCompanyCertificationListResponseBrandCertificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandCompanyCertificationListResponseBrandCertification; +export declare function BrandCompanyCertificationListResponseBrandCertificationToJSON(value?: BrandCompanyCertificationListResponseBrandCertification | null): any; diff --git a/dist/models/BrandCompanyCertificationListResponseBrandCertification.js b/dist/models/BrandCompanyCertificationListResponseBrandCertification.js new file mode 100644 index 0000000..4cf0f14 --- /dev/null +++ b/dist/models/BrandCompanyCertificationListResponseBrandCertification.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBrandCompanyCertificationListResponseBrandCertification = instanceOfBrandCompanyCertificationListResponseBrandCertification; +exports.BrandCompanyCertificationListResponseBrandCertificationFromJSON = BrandCompanyCertificationListResponseBrandCertificationFromJSON; +exports.BrandCompanyCertificationListResponseBrandCertificationFromJSONTyped = BrandCompanyCertificationListResponseBrandCertificationFromJSONTyped; +exports.BrandCompanyCertificationListResponseBrandCertificationToJSON = BrandCompanyCertificationListResponseBrandCertificationToJSON; +/** + * Check if a given object implements the BrandCompanyCertificationListResponseBrandCertification interface. + */ +function instanceOfBrandCompanyCertificationListResponseBrandCertification(value) { + return true; +} +function BrandCompanyCertificationListResponseBrandCertificationFromJSON(json) { + return BrandCompanyCertificationListResponseBrandCertificationFromJSONTyped(json, false); +} +function BrandCompanyCertificationListResponseBrandCertificationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'brand_name': json['brand_name'] == null ? undefined : json['brand_name'], + 'has_certificate': json['has_certificate'] == null ? undefined : json['has_certificate'], + }; +} +function BrandCompanyCertificationListResponseBrandCertificationToJSON(value) { + if (value == null) { + return value; + } + return { + 'brand_name': value['brand_name'], + 'has_certificate': value['has_certificate'], + }; +} diff --git a/dist/models/BrandCompanyCertificationListResponseBrandCertificationResult.d.ts b/dist/models/BrandCompanyCertificationListResponseBrandCertificationResult.d.ts new file mode 100644 index 0000000..4dfa08b --- /dev/null +++ b/dist/models/BrandCompanyCertificationListResponseBrandCertificationResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BrandCompanyCertificationListResponseBrandCertification } from './BrandCompanyCertificationListResponseBrandCertification'; +/** + * Результат запроса. + * @export + * @interface BrandCompanyCertificationListResponseBrandCertificationResult + */ +export interface BrandCompanyCertificationListResponseBrandCertificationResult { + /** + * Информация о сертифицируемых брендах. + * @type {Array} + * @memberof BrandCompanyCertificationListResponseBrandCertificationResult + */ + brand_certification?: Array; + /** + * Общее количество брендов. + * @type {number} + * @memberof BrandCompanyCertificationListResponseBrandCertificationResult + */ + total?: number; +} +/** + * Check if a given object implements the BrandCompanyCertificationListResponseBrandCertificationResult interface. + */ +export declare function instanceOfBrandCompanyCertificationListResponseBrandCertificationResult(value: object): value is BrandCompanyCertificationListResponseBrandCertificationResult; +export declare function BrandCompanyCertificationListResponseBrandCertificationResultFromJSON(json: any): BrandCompanyCertificationListResponseBrandCertificationResult; +export declare function BrandCompanyCertificationListResponseBrandCertificationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandCompanyCertificationListResponseBrandCertificationResult; +export declare function BrandCompanyCertificationListResponseBrandCertificationResultToJSON(value?: BrandCompanyCertificationListResponseBrandCertificationResult | null): any; diff --git a/dist/models/BrandCompanyCertificationListResponseBrandCertificationResult.js b/dist/models/BrandCompanyCertificationListResponseBrandCertificationResult.js new file mode 100644 index 0000000..905e303 --- /dev/null +++ b/dist/models/BrandCompanyCertificationListResponseBrandCertificationResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBrandCompanyCertificationListResponseBrandCertificationResult = instanceOfBrandCompanyCertificationListResponseBrandCertificationResult; +exports.BrandCompanyCertificationListResponseBrandCertificationResultFromJSON = BrandCompanyCertificationListResponseBrandCertificationResultFromJSON; +exports.BrandCompanyCertificationListResponseBrandCertificationResultFromJSONTyped = BrandCompanyCertificationListResponseBrandCertificationResultFromJSONTyped; +exports.BrandCompanyCertificationListResponseBrandCertificationResultToJSON = BrandCompanyCertificationListResponseBrandCertificationResultToJSON; +const BrandCompanyCertificationListResponseBrandCertification_1 = require("./BrandCompanyCertificationListResponseBrandCertification"); +/** + * Check if a given object implements the BrandCompanyCertificationListResponseBrandCertificationResult interface. + */ +function instanceOfBrandCompanyCertificationListResponseBrandCertificationResult(value) { + return true; +} +function BrandCompanyCertificationListResponseBrandCertificationResultFromJSON(json) { + return BrandCompanyCertificationListResponseBrandCertificationResultFromJSONTyped(json, false); +} +function BrandCompanyCertificationListResponseBrandCertificationResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'brand_certification': json['brand_certification'] == null ? undefined : (json['brand_certification'].map(BrandCompanyCertificationListResponseBrandCertification_1.BrandCompanyCertificationListResponseBrandCertificationFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function BrandCompanyCertificationListResponseBrandCertificationResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'brand_certification': value['brand_certification'] == null ? undefined : (value['brand_certification'].map(BrandCompanyCertificationListResponseBrandCertification_1.BrandCompanyCertificationListResponseBrandCertificationToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/CancelSupplyResultsCancelSupplyError.d.ts b/dist/models/CancelSupplyResultsCancelSupplyError.d.ts new file mode 100644 index 0000000..23d98e2 --- /dev/null +++ b/dist/models/CancelSupplyResultsCancelSupplyError.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CancelSupplyResultsCancelSupplyError: { + readonly INVALID_SUPPLY_STATE: "INVALID_SUPPLY_STATE"; + readonly SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly SUPPLY_DOES_NOT_BELONG_TO_ORDER: "SUPPLY_DOES_NOT_BELONG_TO_ORDER"; + readonly SUPPLY_BELONGS_TO_VIRTUAL_ORDER: "SUPPLY_BELONGS_TO_VIRTUAL_ORDER"; + readonly OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS: "OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS"; +}; +export type CancelSupplyResultsCancelSupplyError = typeof CancelSupplyResultsCancelSupplyError[keyof typeof CancelSupplyResultsCancelSupplyError]; +export declare function instanceOfCancelSupplyResultsCancelSupplyError(value: any): boolean; +export declare function CancelSupplyResultsCancelSupplyErrorFromJSON(json: any): CancelSupplyResultsCancelSupplyError; +export declare function CancelSupplyResultsCancelSupplyErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelSupplyResultsCancelSupplyError; +export declare function CancelSupplyResultsCancelSupplyErrorToJSON(value?: CancelSupplyResultsCancelSupplyError | null): any; diff --git a/dist/models/CancelSupplyResultsCancelSupplyError.js b/dist/models/CancelSupplyResultsCancelSupplyError.js new file mode 100644 index 0000000..df6e22c --- /dev/null +++ b/dist/models/CancelSupplyResultsCancelSupplyError.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CancelSupplyResultsCancelSupplyError = void 0; +exports.instanceOfCancelSupplyResultsCancelSupplyError = instanceOfCancelSupplyResultsCancelSupplyError; +exports.CancelSupplyResultsCancelSupplyErrorFromJSON = CancelSupplyResultsCancelSupplyErrorFromJSON; +exports.CancelSupplyResultsCancelSupplyErrorFromJSONTyped = CancelSupplyResultsCancelSupplyErrorFromJSONTyped; +exports.CancelSupplyResultsCancelSupplyErrorToJSON = CancelSupplyResultsCancelSupplyErrorToJSON; +/** + * + * @export + */ +exports.CancelSupplyResultsCancelSupplyError = { + INVALID_SUPPLY_STATE: 'INVALID_SUPPLY_STATE', + SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + SUPPLY_DOES_NOT_BELONG_TO_ORDER: 'SUPPLY_DOES_NOT_BELONG_TO_ORDER', + SUPPLY_BELONGS_TO_VIRTUAL_ORDER: 'SUPPLY_BELONGS_TO_VIRTUAL_ORDER', + OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS: 'OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS' +}; +function instanceOfCancelSupplyResultsCancelSupplyError(value) { + for (const key in exports.CancelSupplyResultsCancelSupplyError) { + if (Object.prototype.hasOwnProperty.call(exports.CancelSupplyResultsCancelSupplyError, key)) { + if (exports.CancelSupplyResultsCancelSupplyError[key] === value) { + return true; + } + } + } + return false; +} +function CancelSupplyResultsCancelSupplyErrorFromJSON(json) { + return CancelSupplyResultsCancelSupplyErrorFromJSONTyped(json, false); +} +function CancelSupplyResultsCancelSupplyErrorFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CancelSupplyResultsCancelSupplyErrorToJSON(value) { + return value; +} diff --git a/dist/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.d.ts b/dist/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.d.ts new file mode 100644 index 0000000..0beb94a --- /dev/null +++ b/dist/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CancellationAllowabilityCanNotCancelSupplyReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_SUPPLY_STATE: "INVALID_SUPPLY_STATE"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly SUPPLY_HAS_ACTIVE_UTD: "SUPPLY_HAS_ACTIVE_UTD"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly PICKUP_SUPPLY_IS_LOCKED_DOWN: "PICKUP_SUPPLY_IS_LOCKED_DOWN"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CancellationAllowabilityCanNotCancelSupplyReasonEnum = typeof CancellationAllowabilityCanNotCancelSupplyReasonEnum[keyof typeof CancellationAllowabilityCanNotCancelSupplyReasonEnum]; +export declare function instanceOfCancellationAllowabilityCanNotCancelSupplyReasonEnum(value: any): boolean; +export declare function CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON(json: any): CancellationAllowabilityCanNotCancelSupplyReasonEnum; +export declare function CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancellationAllowabilityCanNotCancelSupplyReasonEnum; +export declare function CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON(value?: CancellationAllowabilityCanNotCancelSupplyReasonEnum | null): any; diff --git a/dist/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.js b/dist/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.js new file mode 100644 index 0000000..3b60424 --- /dev/null +++ b/dist/models/CancellationAllowabilityCanNotCancelSupplyReasonEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CancellationAllowabilityCanNotCancelSupplyReasonEnum = void 0; +exports.instanceOfCancellationAllowabilityCanNotCancelSupplyReasonEnum = instanceOfCancellationAllowabilityCanNotCancelSupplyReasonEnum; +exports.CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON = CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON; +exports.CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSONTyped = CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSONTyped; +exports.CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON = CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON; +/** + * + * @export + */ +exports.CancellationAllowabilityCanNotCancelSupplyReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_SUPPLY_STATE: 'INVALID_SUPPLY_STATE', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + SUPPLY_HAS_ACTIVE_UTD: 'SUPPLY_HAS_ACTIVE_UTD', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + PICKUP_SUPPLY_IS_LOCKED_DOWN: 'PICKUP_SUPPLY_IS_LOCKED_DOWN', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfCancellationAllowabilityCanNotCancelSupplyReasonEnum(value) { + for (const key in exports.CancellationAllowabilityCanNotCancelSupplyReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CancellationAllowabilityCanNotCancelSupplyReasonEnum, key)) { + if (exports.CancellationAllowabilityCanNotCancelSupplyReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON(json) { + return CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSONTyped(json, false); +} +function CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/CancellationErrorCode.d.ts b/dist/models/CancellationErrorCode.d.ts new file mode 100644 index 0000000..ec1480b --- /dev/null +++ b/dist/models/CancellationErrorCode.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Код ошибки: + * - `CODE_UNSPECIFIED` — не определён; + * - `NO_RESPONSE_FROM_3PF` — отмена заявки не подтверждена, мы не получили ответа от склада партнёра; + * - `ACCEPTANCE_ALREADY_STARTED` — отмена заявки не подтверждена, приёмка уже началась. + * + * @export + */ +export declare const CancellationErrorCode: { + readonly CODE_UNSPECIFIED: "CODE_UNSPECIFIED"; + readonly NO_RESPONSE_FROM_3PF: "NO_RESPONSE_FROM_3PF"; + readonly ACCEPTANCE_ALREADY_STARTED: "ACCEPTANCE_ALREADY_STARTED"; +}; +export type CancellationErrorCode = typeof CancellationErrorCode[keyof typeof CancellationErrorCode]; +export declare function instanceOfCancellationErrorCode(value: any): boolean; +export declare function CancellationErrorCodeFromJSON(json: any): CancellationErrorCode; +export declare function CancellationErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancellationErrorCode; +export declare function CancellationErrorCodeToJSON(value?: CancellationErrorCode | null): any; diff --git a/dist/models/CancellationErrorCode.js b/dist/models/CancellationErrorCode.js new file mode 100644 index 0000000..a24ec9d --- /dev/null +++ b/dist/models/CancellationErrorCode.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CancellationErrorCode = void 0; +exports.instanceOfCancellationErrorCode = instanceOfCancellationErrorCode; +exports.CancellationErrorCodeFromJSON = CancellationErrorCodeFromJSON; +exports.CancellationErrorCodeFromJSONTyped = CancellationErrorCodeFromJSONTyped; +exports.CancellationErrorCodeToJSON = CancellationErrorCodeToJSON; +/** + * Код ошибки: + * - `CODE_UNSPECIFIED` — не определён; + * - `NO_RESPONSE_FROM_3PF` — отмена заявки не подтверждена, мы не получили ответа от склада партнёра; + * - `ACCEPTANCE_ALREADY_STARTED` — отмена заявки не подтверждена, приёмка уже началась. + * + * @export + */ +exports.CancellationErrorCode = { + CODE_UNSPECIFIED: 'CODE_UNSPECIFIED', + NO_RESPONSE_FROM_3PF: 'NO_RESPONSE_FROM_3PF', + ACCEPTANCE_ALREADY_STARTED: 'ACCEPTANCE_ALREADY_STARTED' +}; +function instanceOfCancellationErrorCode(value) { + for (const key in exports.CancellationErrorCode) { + if (Object.prototype.hasOwnProperty.call(exports.CancellationErrorCode, key)) { + if (exports.CancellationErrorCode[key] === value) { + return true; + } + } + } + return false; +} +function CancellationErrorCodeFromJSON(json) { + return CancellationErrorCodeFromJSONTyped(json, false); +} +function CancellationErrorCodeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CancellationErrorCodeToJSON(value) { + return value; +} diff --git a/dist/models/CancellationStateCancellationError.d.ts b/dist/models/CancellationStateCancellationError.d.ts new file mode 100644 index 0000000..c6cd627 --- /dev/null +++ b/dist/models/CancellationStateCancellationError.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CancellationErrorCode } from './CancellationErrorCode'; +/** + * Ошибка отмены. + * @export + * @interface CancellationStateCancellationError + */ +export interface CancellationStateCancellationError { + /** + * + * @type {CancellationErrorCode} + * @memberof CancellationStateCancellationError + */ + error_code?: CancellationErrorCode; + /** + * Описание ошибки. + * @type {string} + * @memberof CancellationStateCancellationError + */ + message?: string; +} +/** + * Check if a given object implements the CancellationStateCancellationError interface. + */ +export declare function instanceOfCancellationStateCancellationError(value: object): value is CancellationStateCancellationError; +export declare function CancellationStateCancellationErrorFromJSON(json: any): CancellationStateCancellationError; +export declare function CancellationStateCancellationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancellationStateCancellationError; +export declare function CancellationStateCancellationErrorToJSON(value?: CancellationStateCancellationError | null): any; diff --git a/dist/models/CancellationStateCancellationError.js b/dist/models/CancellationStateCancellationError.js new file mode 100644 index 0000000..90e668f --- /dev/null +++ b/dist/models/CancellationStateCancellationError.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCancellationStateCancellationError = instanceOfCancellationStateCancellationError; +exports.CancellationStateCancellationErrorFromJSON = CancellationStateCancellationErrorFromJSON; +exports.CancellationStateCancellationErrorFromJSONTyped = CancellationStateCancellationErrorFromJSONTyped; +exports.CancellationStateCancellationErrorToJSON = CancellationStateCancellationErrorToJSON; +const CancellationErrorCode_1 = require("./CancellationErrorCode"); +/** + * Check if a given object implements the CancellationStateCancellationError interface. + */ +function instanceOfCancellationStateCancellationError(value) { + return true; +} +function CancellationStateCancellationErrorFromJSON(json) { + return CancellationStateCancellationErrorFromJSONTyped(json, false); +} +function CancellationStateCancellationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_code': json['error_code'] == null ? undefined : (0, CancellationErrorCode_1.CancellationErrorCodeFromJSON)(json['error_code']), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function CancellationStateCancellationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_code': (0, CancellationErrorCode_1.CancellationErrorCodeToJSON)(value['error_code']), + 'message': value['message'], + }; +} diff --git a/dist/models/CargoInfoContentTypeEnum.d.ts b/dist/models/CargoInfoContentTypeEnum.d.ts new file mode 100644 index 0000000..d7292b8 --- /dev/null +++ b/dist/models/CargoInfoContentTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ассортимента грузоместа: + * - `UNSPECIFIED` — не определён; + * - `MONO` — палета-моно или коробка-моно; + * - `MIX` — палета-микс или коробка-микс; + * - `NONE` — отсутствует. + * + * @export + */ +export declare const CargoInfoContentTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONO: "MONO"; + readonly MIX: "MIX"; + readonly NONE: "NONE"; +}; +export type CargoInfoContentTypeEnum = typeof CargoInfoContentTypeEnum[keyof typeof CargoInfoContentTypeEnum]; +export declare function instanceOfCargoInfoContentTypeEnum(value: any): boolean; +export declare function CargoInfoContentTypeEnumFromJSON(json: any): CargoInfoContentTypeEnum; +export declare function CargoInfoContentTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoContentTypeEnum; +export declare function CargoInfoContentTypeEnumToJSON(value?: CargoInfoContentTypeEnum | null): any; diff --git a/dist/models/CargoInfoContentTypeEnum.js b/dist/models/CargoInfoContentTypeEnum.js new file mode 100644 index 0000000..4df7e4d --- /dev/null +++ b/dist/models/CargoInfoContentTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoInfoContentTypeEnum = void 0; +exports.instanceOfCargoInfoContentTypeEnum = instanceOfCargoInfoContentTypeEnum; +exports.CargoInfoContentTypeEnumFromJSON = CargoInfoContentTypeEnumFromJSON; +exports.CargoInfoContentTypeEnumFromJSONTyped = CargoInfoContentTypeEnumFromJSONTyped; +exports.CargoInfoContentTypeEnumToJSON = CargoInfoContentTypeEnumToJSON; +/** + * Тип ассортимента грузоместа: + * - `UNSPECIFIED` — не определён; + * - `MONO` — палета-моно или коробка-моно; + * - `MIX` — палета-микс или коробка-микс; + * - `NONE` — отсутствует. + * + * @export + */ +exports.CargoInfoContentTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONO: 'MONO', + MIX: 'MIX', + NONE: 'NONE' +}; +function instanceOfCargoInfoContentTypeEnum(value) { + for (const key in exports.CargoInfoContentTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoInfoContentTypeEnum, key)) { + if (exports.CargoInfoContentTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoInfoContentTypeEnumFromJSON(json) { + return CargoInfoContentTypeEnumFromJSONTyped(json, false); +} +function CargoInfoContentTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoInfoContentTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoInfoPlacementZoneTypeEnum.d.ts b/dist/models/CargoInfoPlacementZoneTypeEnum.d.ts new file mode 100644 index 0000000..75b9db1 --- /dev/null +++ b/dist/models/CargoInfoPlacementZoneTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип зоны размещения: + * - `UNSPECIFIED` — не требуется распределение по зонам размещения; + * - `UNDEFINED` — не определён; + * - `SINGLE` — одинаковая зона размещения в составе грузоместа; + * - `MULTI` — разная зона размещения в составе грузоместа. + * + * @export + */ +export declare const CargoInfoPlacementZoneTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNDEFINED: "UNDEFINED"; + readonly SINGLE: "SINGLE"; + readonly MULTI: "MULTI"; +}; +export type CargoInfoPlacementZoneTypeEnum = typeof CargoInfoPlacementZoneTypeEnum[keyof typeof CargoInfoPlacementZoneTypeEnum]; +export declare function instanceOfCargoInfoPlacementZoneTypeEnum(value: any): boolean; +export declare function CargoInfoPlacementZoneTypeEnumFromJSON(json: any): CargoInfoPlacementZoneTypeEnum; +export declare function CargoInfoPlacementZoneTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoPlacementZoneTypeEnum; +export declare function CargoInfoPlacementZoneTypeEnumToJSON(value?: CargoInfoPlacementZoneTypeEnum | null): any; diff --git a/dist/models/CargoInfoPlacementZoneTypeEnum.js b/dist/models/CargoInfoPlacementZoneTypeEnum.js new file mode 100644 index 0000000..3983b00 --- /dev/null +++ b/dist/models/CargoInfoPlacementZoneTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoInfoPlacementZoneTypeEnum = void 0; +exports.instanceOfCargoInfoPlacementZoneTypeEnum = instanceOfCargoInfoPlacementZoneTypeEnum; +exports.CargoInfoPlacementZoneTypeEnumFromJSON = CargoInfoPlacementZoneTypeEnumFromJSON; +exports.CargoInfoPlacementZoneTypeEnumFromJSONTyped = CargoInfoPlacementZoneTypeEnumFromJSONTyped; +exports.CargoInfoPlacementZoneTypeEnumToJSON = CargoInfoPlacementZoneTypeEnumToJSON; +/** + * Тип зоны размещения: + * - `UNSPECIFIED` — не требуется распределение по зонам размещения; + * - `UNDEFINED` — не определён; + * - `SINGLE` — одинаковая зона размещения в составе грузоместа; + * - `MULTI` — разная зона размещения в составе грузоместа. + * + * @export + */ +exports.CargoInfoPlacementZoneTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNDEFINED: 'UNDEFINED', + SINGLE: 'SINGLE', + MULTI: 'MULTI' +}; +function instanceOfCargoInfoPlacementZoneTypeEnum(value) { + for (const key in exports.CargoInfoPlacementZoneTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoInfoPlacementZoneTypeEnum, key)) { + if (exports.CargoInfoPlacementZoneTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoInfoPlacementZoneTypeEnumFromJSON(json) { + return CargoInfoPlacementZoneTypeEnumFromJSONTyped(json, false); +} +function CargoInfoPlacementZoneTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoInfoPlacementZoneTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoInfoTrackingInfo.d.ts b/dist/models/CargoInfoTrackingInfo.d.ts new file mode 100644 index 0000000..e04ed60 --- /dev/null +++ b/dist/models/CargoInfoTrackingInfo.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoInfoTrackingInfoStatusEnum } from './CargoInfoTrackingInfoStatusEnum'; +import type { CargoInfoTrackingInfoTypeEnum } from './CargoInfoTrackingInfoTypeEnum'; +/** + * Отслеживание грузоместа. + * @export + * @interface CargoInfoTrackingInfo + */ +export interface CargoInfoTrackingInfo { + /** + * Дата приезда. + * @type {string} + * @memberof CargoInfoTrackingInfo + */ + date?: string; + /** + * + * @type {CargoInfoTrackingInfoStatusEnum} + * @memberof CargoInfoTrackingInfo + */ + status?: CargoInfoTrackingInfoStatusEnum; + /** + * + * @type {CargoInfoTrackingInfoTypeEnum} + * @memberof CargoInfoTrackingInfo + */ + type?: CargoInfoTrackingInfoTypeEnum; +} +/** + * Check if a given object implements the CargoInfoTrackingInfo interface. + */ +export declare function instanceOfCargoInfoTrackingInfo(value: object): value is CargoInfoTrackingInfo; +export declare function CargoInfoTrackingInfoFromJSON(json: any): CargoInfoTrackingInfo; +export declare function CargoInfoTrackingInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoTrackingInfo; +export declare function CargoInfoTrackingInfoToJSON(value?: CargoInfoTrackingInfo | null): any; diff --git a/dist/models/CargoInfoTrackingInfo.js b/dist/models/CargoInfoTrackingInfo.js new file mode 100644 index 0000000..848c29f --- /dev/null +++ b/dist/models/CargoInfoTrackingInfo.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoInfoTrackingInfo = instanceOfCargoInfoTrackingInfo; +exports.CargoInfoTrackingInfoFromJSON = CargoInfoTrackingInfoFromJSON; +exports.CargoInfoTrackingInfoFromJSONTyped = CargoInfoTrackingInfoFromJSONTyped; +exports.CargoInfoTrackingInfoToJSON = CargoInfoTrackingInfoToJSON; +const CargoInfoTrackingInfoStatusEnum_1 = require("./CargoInfoTrackingInfoStatusEnum"); +const CargoInfoTrackingInfoTypeEnum_1 = require("./CargoInfoTrackingInfoTypeEnum"); +/** + * Check if a given object implements the CargoInfoTrackingInfo interface. + */ +function instanceOfCargoInfoTrackingInfo(value) { + return true; +} +function CargoInfoTrackingInfoFromJSON(json) { + return CargoInfoTrackingInfoFromJSONTyped(json, false); +} +function CargoInfoTrackingInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'status': json['status'] == null ? undefined : (0, CargoInfoTrackingInfoStatusEnum_1.CargoInfoTrackingInfoStatusEnumFromJSON)(json['status']), + 'type': json['type'] == null ? undefined : (0, CargoInfoTrackingInfoTypeEnum_1.CargoInfoTrackingInfoTypeEnumFromJSON)(json['type']), + }; +} +function CargoInfoTrackingInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'status': (0, CargoInfoTrackingInfoStatusEnum_1.CargoInfoTrackingInfoStatusEnumToJSON)(value['status']), + 'type': (0, CargoInfoTrackingInfoTypeEnum_1.CargoInfoTrackingInfoTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoInfoTrackingInfoStatusEnum.d.ts b/dist/models/CargoInfoTrackingInfoStatusEnum.d.ts new file mode 100644 index 0000000..e63e86b --- /dev/null +++ b/dist/models/CargoInfoTrackingInfoStatusEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ACCEPTING` — приёмка; + * - `PROCESSED` — обработано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `DELETED` — удалено. + * + * @export + */ +export declare const CargoInfoTrackingInfoStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly REFUSED: "REFUSED"; + readonly ON_WAREHOUSE: "ON_WAREHOUSE"; + readonly NOT_DELIVERED: "NOT_DELIVERED"; + readonly ACCEPTING: "ACCEPTING"; + readonly PROCESSED: "PROCESSED"; + readonly ON_POINT_SHIPMENT: "ON_POINT_SHIPMENT"; + readonly ON_TRANSIT_WAREHOUSE: "ON_TRANSIT_WAREHOUSE"; + readonly LOST: "LOST"; + readonly CREATED: "CREATED"; + readonly DELETED: "DELETED"; +}; +export type CargoInfoTrackingInfoStatusEnum = typeof CargoInfoTrackingInfoStatusEnum[keyof typeof CargoInfoTrackingInfoStatusEnum]; +export declare function instanceOfCargoInfoTrackingInfoStatusEnum(value: any): boolean; +export declare function CargoInfoTrackingInfoStatusEnumFromJSON(json: any): CargoInfoTrackingInfoStatusEnum; +export declare function CargoInfoTrackingInfoStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoTrackingInfoStatusEnum; +export declare function CargoInfoTrackingInfoStatusEnumToJSON(value?: CargoInfoTrackingInfoStatusEnum | null): any; diff --git a/dist/models/CargoInfoTrackingInfoStatusEnum.js b/dist/models/CargoInfoTrackingInfoStatusEnum.js new file mode 100644 index 0000000..d7f2921 --- /dev/null +++ b/dist/models/CargoInfoTrackingInfoStatusEnum.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoInfoTrackingInfoStatusEnum = void 0; +exports.instanceOfCargoInfoTrackingInfoStatusEnum = instanceOfCargoInfoTrackingInfoStatusEnum; +exports.CargoInfoTrackingInfoStatusEnumFromJSON = CargoInfoTrackingInfoStatusEnumFromJSON; +exports.CargoInfoTrackingInfoStatusEnumFromJSONTyped = CargoInfoTrackingInfoStatusEnumFromJSONTyped; +exports.CargoInfoTrackingInfoStatusEnumToJSON = CargoInfoTrackingInfoStatusEnumToJSON; +/** + * Статус грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ACCEPTING` — приёмка; + * - `PROCESSED` — обработано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `DELETED` — удалено. + * + * @export + */ +exports.CargoInfoTrackingInfoStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + REFUSED: 'REFUSED', + ON_WAREHOUSE: 'ON_WAREHOUSE', + NOT_DELIVERED: 'NOT_DELIVERED', + ACCEPTING: 'ACCEPTING', + PROCESSED: 'PROCESSED', + ON_POINT_SHIPMENT: 'ON_POINT_SHIPMENT', + ON_TRANSIT_WAREHOUSE: 'ON_TRANSIT_WAREHOUSE', + LOST: 'LOST', + CREATED: 'CREATED', + DELETED: 'DELETED' +}; +function instanceOfCargoInfoTrackingInfoStatusEnum(value) { + for (const key in exports.CargoInfoTrackingInfoStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoInfoTrackingInfoStatusEnum, key)) { + if (exports.CargoInfoTrackingInfoStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoInfoTrackingInfoStatusEnumFromJSON(json) { + return CargoInfoTrackingInfoStatusEnumFromJSONTyped(json, false); +} +function CargoInfoTrackingInfoStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoInfoTrackingInfoStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoInfoTrackingInfoTypeEnum.d.ts b/dist/models/CargoInfoTrackingInfoTypeEnum.d.ts new file mode 100644 index 0000000..9f91506 --- /dev/null +++ b/dist/models/CargoInfoTrackingInfoTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export declare const CargoInfoTrackingInfoTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly EXPECTED_ARRIVAL: "EXPECTED_ARRIVAL"; + readonly ACTUAL_ARRIVAL: "ACTUAL_ARRIVAL"; +}; +export type CargoInfoTrackingInfoTypeEnum = typeof CargoInfoTrackingInfoTypeEnum[keyof typeof CargoInfoTrackingInfoTypeEnum]; +export declare function instanceOfCargoInfoTrackingInfoTypeEnum(value: any): boolean; +export declare function CargoInfoTrackingInfoTypeEnumFromJSON(json: any): CargoInfoTrackingInfoTypeEnum; +export declare function CargoInfoTrackingInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoInfoTrackingInfoTypeEnum; +export declare function CargoInfoTrackingInfoTypeEnumToJSON(value?: CargoInfoTrackingInfoTypeEnum | null): any; diff --git a/dist/models/CargoInfoTrackingInfoTypeEnum.js b/dist/models/CargoInfoTrackingInfoTypeEnum.js new file mode 100644 index 0000000..7de219a --- /dev/null +++ b/dist/models/CargoInfoTrackingInfoTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoInfoTrackingInfoTypeEnum = void 0; +exports.instanceOfCargoInfoTrackingInfoTypeEnum = instanceOfCargoInfoTrackingInfoTypeEnum; +exports.CargoInfoTrackingInfoTypeEnumFromJSON = CargoInfoTrackingInfoTypeEnumFromJSON; +exports.CargoInfoTrackingInfoTypeEnumFromJSONTyped = CargoInfoTrackingInfoTypeEnumFromJSONTyped; +exports.CargoInfoTrackingInfoTypeEnumToJSON = CargoInfoTrackingInfoTypeEnumToJSON; +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +exports.CargoInfoTrackingInfoTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + EXPECTED_ARRIVAL: 'EXPECTED_ARRIVAL', + ACTUAL_ARRIVAL: 'ACTUAL_ARRIVAL' +}; +function instanceOfCargoInfoTrackingInfoTypeEnum(value) { + for (const key in exports.CargoInfoTrackingInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoInfoTrackingInfoTypeEnum, key)) { + if (exports.CargoInfoTrackingInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoInfoTrackingInfoTypeEnumFromJSON(json) { + return CargoInfoTrackingInfoTypeEnumFromJSONTyped(json, false); +} +function CargoInfoTrackingInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoInfoTrackingInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoValue.d.ts b/dist/models/CargoValue.d.ts new file mode 100644 index 0000000..5e60414 --- /dev/null +++ b/dist/models/CargoValue.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о грузоместе. + * @export + * @interface CargoValue + */ +export interface CargoValue { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoValue + */ + cargo_id?: number; +} +/** + * Check if a given object implements the CargoValue interface. + */ +export declare function instanceOfCargoValue(value: object): value is CargoValue; +export declare function CargoValueFromJSON(json: any): CargoValue; +export declare function CargoValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoValue; +export declare function CargoValueToJSON(value?: CargoValue | null): any; diff --git a/dist/models/CargoValue.js b/dist/models/CargoValue.js new file mode 100644 index 0000000..b590d6e --- /dev/null +++ b/dist/models/CargoValue.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoValue = instanceOfCargoValue; +exports.CargoValueFromJSON = CargoValueFromJSON; +exports.CargoValueFromJSONTyped = CargoValueFromJSONTyped; +exports.CargoValueToJSON = CargoValueToJSON; +/** + * Check if a given object implements the CargoValue interface. + */ +function instanceOfCargoValue(value) { + return true; +} +function CargoValueFromJSON(json) { + return CargoValueFromJSONTyped(json, false); +} +function CargoValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + }; +} +function CargoValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + }; +} diff --git a/dist/models/CargoesCreateErrorsErrorReason.d.ts b/dist/models/CargoesCreateErrorsErrorReason.d.ts new file mode 100644 index 0000000..d6a8bd6 --- /dev/null +++ b/dist/models/CargoesCreateErrorsErrorReason.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesCreateErrorsErrorReason: { + readonly INVALID_STATE: "INVALID_STATE"; + readonly VALIDATION_FAILED: "VALIDATION_FAILED"; + readonly WAREHOUSE_LIMITS_EXCEED: "WAREHOUSE_LIMITS_EXCEED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly IS_FINALIZED: "IS_FINALIZED"; + readonly SKU_DISTRIBUTION_DISABLED: "SKU_DISTRIBUTION_DISABLED"; + readonly SUPPLY_IS_NOT_EMPTY: "SUPPLY_IS_NOT_EMPTY"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; +}; +export type CargoesCreateErrorsErrorReason = typeof CargoesCreateErrorsErrorReason[keyof typeof CargoesCreateErrorsErrorReason]; +export declare function instanceOfCargoesCreateErrorsErrorReason(value: any): boolean; +export declare function CargoesCreateErrorsErrorReasonFromJSON(json: any): CargoesCreateErrorsErrorReason; +export declare function CargoesCreateErrorsErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateErrorsErrorReason; +export declare function CargoesCreateErrorsErrorReasonToJSON(value?: CargoesCreateErrorsErrorReason | null): any; diff --git a/dist/models/CargoesCreateErrorsErrorReason.js b/dist/models/CargoesCreateErrorsErrorReason.js new file mode 100644 index 0000000..91d7453 --- /dev/null +++ b/dist/models/CargoesCreateErrorsErrorReason.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesCreateErrorsErrorReason = void 0; +exports.instanceOfCargoesCreateErrorsErrorReason = instanceOfCargoesCreateErrorsErrorReason; +exports.CargoesCreateErrorsErrorReasonFromJSON = CargoesCreateErrorsErrorReasonFromJSON; +exports.CargoesCreateErrorsErrorReasonFromJSONTyped = CargoesCreateErrorsErrorReasonFromJSONTyped; +exports.CargoesCreateErrorsErrorReasonToJSON = CargoesCreateErrorsErrorReasonToJSON; +/** + * + * @export + */ +exports.CargoesCreateErrorsErrorReason = { + INVALID_STATE: 'INVALID_STATE', + VALIDATION_FAILED: 'VALIDATION_FAILED', + WAREHOUSE_LIMITS_EXCEED: 'WAREHOUSE_LIMITS_EXCEED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + IS_FINALIZED: 'IS_FINALIZED', + SKU_DISTRIBUTION_DISABLED: 'SKU_DISTRIBUTION_DISABLED', + SUPPLY_IS_NOT_EMPTY: 'SUPPLY_IS_NOT_EMPTY', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED' +}; +function instanceOfCargoesCreateErrorsErrorReason(value) { + for (const key in exports.CargoesCreateErrorsErrorReason) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesCreateErrorsErrorReason, key)) { + if (exports.CargoesCreateErrorsErrorReason[key] === value) { + return true; + } + } + } + return false; +} +function CargoesCreateErrorsErrorReasonFromJSON(json) { + return CargoesCreateErrorsErrorReasonFromJSONTyped(json, false); +} +function CargoesCreateErrorsErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesCreateErrorsErrorReasonToJSON(value) { + return value; +} diff --git a/dist/models/CargoesCreateErrorsItemValidation.d.ts b/dist/models/CargoesCreateErrorsItemValidation.d.ts new file mode 100644 index 0000000..6639121 --- /dev/null +++ b/dist/models/CargoesCreateErrorsItemValidation.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemValidationErrorType } from './ItemValidationErrorType'; +/** + * + * @export + * @interface CargoesCreateErrorsItemValidation + */ +export interface CargoesCreateErrorsItemValidation { + /** + * Штрихкод товара. Получите методом [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). + * @type {string} + * @memberof CargoesCreateErrorsItemValidation + */ + barcode?: string; + /** + * Ключ грузоместа. + * @type {string} + * @memberof CargoesCreateErrorsItemValidation + */ + cargo_key?: string; + /** + * Размер кванта. + * @type {number} + * @memberof CargoesCreateErrorsItemValidation + */ + quant?: number; + /** + * + * @type {ItemValidationErrorType} + * @memberof CargoesCreateErrorsItemValidation + */ + type?: ItemValidationErrorType; +} +/** + * Check if a given object implements the CargoesCreateErrorsItemValidation interface. + */ +export declare function instanceOfCargoesCreateErrorsItemValidation(value: object): value is CargoesCreateErrorsItemValidation; +export declare function CargoesCreateErrorsItemValidationFromJSON(json: any): CargoesCreateErrorsItemValidation; +export declare function CargoesCreateErrorsItemValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateErrorsItemValidation; +export declare function CargoesCreateErrorsItemValidationToJSON(value?: CargoesCreateErrorsItemValidation | null): any; diff --git a/dist/models/CargoesCreateErrorsItemValidation.js b/dist/models/CargoesCreateErrorsItemValidation.js new file mode 100644 index 0000000..c3b3814 --- /dev/null +++ b/dist/models/CargoesCreateErrorsItemValidation.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesCreateErrorsItemValidation = instanceOfCargoesCreateErrorsItemValidation; +exports.CargoesCreateErrorsItemValidationFromJSON = CargoesCreateErrorsItemValidationFromJSON; +exports.CargoesCreateErrorsItemValidationFromJSONTyped = CargoesCreateErrorsItemValidationFromJSONTyped; +exports.CargoesCreateErrorsItemValidationToJSON = CargoesCreateErrorsItemValidationToJSON; +const ItemValidationErrorType_1 = require("./ItemValidationErrorType"); +/** + * Check if a given object implements the CargoesCreateErrorsItemValidation interface. + */ +function instanceOfCargoesCreateErrorsItemValidation(value) { + return true; +} +function CargoesCreateErrorsItemValidationFromJSON(json) { + return CargoesCreateErrorsItemValidationFromJSONTyped(json, false); +} +function CargoesCreateErrorsItemValidationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'cargo_key': json['cargo_key'] == null ? undefined : json['cargo_key'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'type': json['type'] == null ? undefined : (0, ItemValidationErrorType_1.ItemValidationErrorTypeFromJSON)(json['type']), + }; +} +function CargoesCreateErrorsItemValidationToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'cargo_key': value['cargo_key'], + 'quant': value['quant'], + 'type': (0, ItemValidationErrorType_1.ItemValidationErrorTypeToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesCreateErrorsReasonEnum.d.ts b/dist/models/CargoesCreateErrorsReasonEnum.d.ts new file mode 100644 index 0000000..3ae94aa --- /dev/null +++ b/dist/models/CargoesCreateErrorsReasonEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesCreateErrorsReasonEnum: { + readonly ERROR_REASON_UNSPECIFIED: "ERROR_REASON_UNSPECIFIED"; + readonly INVALID_STATE: "INVALID_STATE"; + readonly VALIDATION_FAILED: "VALIDATION_FAILED"; + readonly WAREHOUSE_LIMITS_EXCEED: "WAREHOUSE_LIMITS_EXCEED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly IS_FINALIZED: "IS_FINALIZED"; + readonly SKU_DISTRIBUTION_DISABLED: "SKU_DISTRIBUTION_DISABLED"; + readonly SUPPLY_IS_NOT_EMPTY: "SUPPLY_IS_NOT_EMPTY"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; +}; +export type CargoesCreateErrorsReasonEnum = typeof CargoesCreateErrorsReasonEnum[keyof typeof CargoesCreateErrorsReasonEnum]; +export declare function instanceOfCargoesCreateErrorsReasonEnum(value: any): boolean; +export declare function CargoesCreateErrorsReasonEnumFromJSON(json: any): CargoesCreateErrorsReasonEnum; +export declare function CargoesCreateErrorsReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateErrorsReasonEnum; +export declare function CargoesCreateErrorsReasonEnumToJSON(value?: CargoesCreateErrorsReasonEnum | null): any; diff --git a/dist/models/CargoesCreateErrorsReasonEnum.js b/dist/models/CargoesCreateErrorsReasonEnum.js new file mode 100644 index 0000000..52c0945 --- /dev/null +++ b/dist/models/CargoesCreateErrorsReasonEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesCreateErrorsReasonEnum = void 0; +exports.instanceOfCargoesCreateErrorsReasonEnum = instanceOfCargoesCreateErrorsReasonEnum; +exports.CargoesCreateErrorsReasonEnumFromJSON = CargoesCreateErrorsReasonEnumFromJSON; +exports.CargoesCreateErrorsReasonEnumFromJSONTyped = CargoesCreateErrorsReasonEnumFromJSONTyped; +exports.CargoesCreateErrorsReasonEnumToJSON = CargoesCreateErrorsReasonEnumToJSON; +/** + * + * @export + */ +exports.CargoesCreateErrorsReasonEnum = { + ERROR_REASON_UNSPECIFIED: 'ERROR_REASON_UNSPECIFIED', + INVALID_STATE: 'INVALID_STATE', + VALIDATION_FAILED: 'VALIDATION_FAILED', + WAREHOUSE_LIMITS_EXCEED: 'WAREHOUSE_LIMITS_EXCEED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + IS_FINALIZED: 'IS_FINALIZED', + SKU_DISTRIBUTION_DISABLED: 'SKU_DISTRIBUTION_DISABLED', + SUPPLY_IS_NOT_EMPTY: 'SUPPLY_IS_NOT_EMPTY', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED' +}; +function instanceOfCargoesCreateErrorsReasonEnum(value) { + for (const key in exports.CargoesCreateErrorsReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesCreateErrorsReasonEnum, key)) { + if (exports.CargoesCreateErrorsReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesCreateErrorsReasonEnumFromJSON(json) { + return CargoesCreateErrorsReasonEnumFromJSONTyped(json, false); +} +function CargoesCreateErrorsReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesCreateErrorsReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesCreateInfoV2ResponseResult.d.ts b/dist/models/CargoesCreateInfoV2ResponseResult.d.ts new file mode 100644 index 0000000..2c4329b --- /dev/null +++ b/dist/models/CargoesCreateInfoV2ResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultCargo } from './ResultCargo'; +/** + * Результат запроса. + * @export + * @interface CargoesCreateInfoV2ResponseResult + */ +export interface CargoesCreateInfoV2ResponseResult { + /** + * Информация о грузоместах. + * @type {Array} + * @memberof CargoesCreateInfoV2ResponseResult + */ + cargoes?: Array; +} +/** + * Check if a given object implements the CargoesCreateInfoV2ResponseResult interface. + */ +export declare function instanceOfCargoesCreateInfoV2ResponseResult(value: object): value is CargoesCreateInfoV2ResponseResult; +export declare function CargoesCreateInfoV2ResponseResultFromJSON(json: any): CargoesCreateInfoV2ResponseResult; +export declare function CargoesCreateInfoV2ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateInfoV2ResponseResult; +export declare function CargoesCreateInfoV2ResponseResultToJSON(value?: CargoesCreateInfoV2ResponseResult | null): any; diff --git a/dist/models/CargoesCreateInfoV2ResponseResult.js b/dist/models/CargoesCreateInfoV2ResponseResult.js new file mode 100644 index 0000000..fc65c44 --- /dev/null +++ b/dist/models/CargoesCreateInfoV2ResponseResult.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesCreateInfoV2ResponseResult = instanceOfCargoesCreateInfoV2ResponseResult; +exports.CargoesCreateInfoV2ResponseResultFromJSON = CargoesCreateInfoV2ResponseResultFromJSON; +exports.CargoesCreateInfoV2ResponseResultFromJSONTyped = CargoesCreateInfoV2ResponseResultFromJSONTyped; +exports.CargoesCreateInfoV2ResponseResultToJSON = CargoesCreateInfoV2ResponseResultToJSON; +const ResultCargo_1 = require("./ResultCargo"); +/** + * Check if a given object implements the CargoesCreateInfoV2ResponseResult interface. + */ +function instanceOfCargoesCreateInfoV2ResponseResult(value) { + return true; +} +function CargoesCreateInfoV2ResponseResultFromJSON(json) { + return CargoesCreateInfoV2ResponseResultFromJSONTyped(json, false); +} +function CargoesCreateInfoV2ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(ResultCargo_1.ResultCargoFromJSON)), + }; +} +function CargoesCreateInfoV2ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(ResultCargo_1.ResultCargoToJSON)), + }; +} diff --git a/dist/models/CargoesCreateInfoV2ResponseStatusEnum.d.ts b/dist/models/CargoesCreateInfoV2ResponseStatusEnum.d.ts new file mode 100644 index 0000000..b737132 --- /dev/null +++ b/dist/models/CargoesCreateInfoV2ResponseStatusEnum.d.ts @@ -0,0 +1,30 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус формирования грузоместа: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — формируются; + * - `FAILED` — при формировании грузомест произошла ошибка. + * + * @export + */ +export declare const CargoesCreateInfoV2ResponseStatusEnum: { + readonly STATUS_UNSPECIFIED: "STATUS_UNSPECIFIED"; + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesCreateInfoV2ResponseStatusEnum = typeof CargoesCreateInfoV2ResponseStatusEnum[keyof typeof CargoesCreateInfoV2ResponseStatusEnum]; +export declare function instanceOfCargoesCreateInfoV2ResponseStatusEnum(value: any): boolean; +export declare function CargoesCreateInfoV2ResponseStatusEnumFromJSON(json: any): CargoesCreateInfoV2ResponseStatusEnum; +export declare function CargoesCreateInfoV2ResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateInfoV2ResponseStatusEnum; +export declare function CargoesCreateInfoV2ResponseStatusEnumToJSON(value?: CargoesCreateInfoV2ResponseStatusEnum | null): any; diff --git a/dist/models/CargoesCreateInfoV2ResponseStatusEnum.js b/dist/models/CargoesCreateInfoV2ResponseStatusEnum.js new file mode 100644 index 0000000..77c4cd5 --- /dev/null +++ b/dist/models/CargoesCreateInfoV2ResponseStatusEnum.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesCreateInfoV2ResponseStatusEnum = void 0; +exports.instanceOfCargoesCreateInfoV2ResponseStatusEnum = instanceOfCargoesCreateInfoV2ResponseStatusEnum; +exports.CargoesCreateInfoV2ResponseStatusEnumFromJSON = CargoesCreateInfoV2ResponseStatusEnumFromJSON; +exports.CargoesCreateInfoV2ResponseStatusEnumFromJSONTyped = CargoesCreateInfoV2ResponseStatusEnumFromJSONTyped; +exports.CargoesCreateInfoV2ResponseStatusEnumToJSON = CargoesCreateInfoV2ResponseStatusEnumToJSON; +/** + * Статус формирования грузоместа: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — формируются; + * - `FAILED` — при формировании грузомест произошла ошибка. + * + * @export + */ +exports.CargoesCreateInfoV2ResponseStatusEnum = { + STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED', + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfCargoesCreateInfoV2ResponseStatusEnum(value) { + for (const key in exports.CargoesCreateInfoV2ResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesCreateInfoV2ResponseStatusEnum, key)) { + if (exports.CargoesCreateInfoV2ResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesCreateInfoV2ResponseStatusEnumFromJSON(json) { + return CargoesCreateInfoV2ResponseStatusEnumFromJSONTyped(json, false); +} +function CargoesCreateInfoV2ResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesCreateInfoV2ResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesCreateV2ErrorsItemValidation.d.ts b/dist/models/CargoesCreateV2ErrorsItemValidation.d.ts new file mode 100644 index 0000000..2f98da2 --- /dev/null +++ b/dist/models/CargoesCreateV2ErrorsItemValidation.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemValidationErrorType } from './ItemValidationErrorType'; +/** + * + * @export + * @interface CargoesCreateV2ErrorsItemValidation + */ +export interface CargoesCreateV2ErrorsItemValidation { + /** + * Ключ грузоместа. + * @type {string} + * @memberof CargoesCreateV2ErrorsItemValidation + */ + cargo_key?: string; + /** + * Штрихкод или артикул товара. + * @type {string} + * @memberof CargoesCreateV2ErrorsItemValidation + */ + item?: string; + /** + * Размер кванта. + * @type {number} + * @memberof CargoesCreateV2ErrorsItemValidation + */ + quant?: number; + /** + * + * @type {ItemValidationErrorType} + * @memberof CargoesCreateV2ErrorsItemValidation + */ + type?: ItemValidationErrorType; +} +/** + * Check if a given object implements the CargoesCreateV2ErrorsItemValidation interface. + */ +export declare function instanceOfCargoesCreateV2ErrorsItemValidation(value: object): value is CargoesCreateV2ErrorsItemValidation; +export declare function CargoesCreateV2ErrorsItemValidationFromJSON(json: any): CargoesCreateV2ErrorsItemValidation; +export declare function CargoesCreateV2ErrorsItemValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesCreateV2ErrorsItemValidation; +export declare function CargoesCreateV2ErrorsItemValidationToJSON(value?: CargoesCreateV2ErrorsItemValidation | null): any; diff --git a/dist/models/CargoesCreateV2ErrorsItemValidation.js b/dist/models/CargoesCreateV2ErrorsItemValidation.js new file mode 100644 index 0000000..cf11b20 --- /dev/null +++ b/dist/models/CargoesCreateV2ErrorsItemValidation.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesCreateV2ErrorsItemValidation = instanceOfCargoesCreateV2ErrorsItemValidation; +exports.CargoesCreateV2ErrorsItemValidationFromJSON = CargoesCreateV2ErrorsItemValidationFromJSON; +exports.CargoesCreateV2ErrorsItemValidationFromJSONTyped = CargoesCreateV2ErrorsItemValidationFromJSONTyped; +exports.CargoesCreateV2ErrorsItemValidationToJSON = CargoesCreateV2ErrorsItemValidationToJSON; +const ItemValidationErrorType_1 = require("./ItemValidationErrorType"); +/** + * Check if a given object implements the CargoesCreateV2ErrorsItemValidation interface. + */ +function instanceOfCargoesCreateV2ErrorsItemValidation(value) { + return true; +} +function CargoesCreateV2ErrorsItemValidationFromJSON(json) { + return CargoesCreateV2ErrorsItemValidationFromJSONTyped(json, false); +} +function CargoesCreateV2ErrorsItemValidationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_key': json['cargo_key'] == null ? undefined : json['cargo_key'], + 'item': json['item'] == null ? undefined : json['item'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'type': json['type'] == null ? undefined : (0, ItemValidationErrorType_1.ItemValidationErrorTypeFromJSON)(json['type']), + }; +} +function CargoesCreateV2ErrorsItemValidationToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_key': value['cargo_key'], + 'item': value['item'], + 'quant': value['quant'], + 'type': (0, ItemValidationErrorType_1.ItemValidationErrorTypeToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesDeleteStatusResponseStatusEnum.d.ts b/dist/models/CargoesDeleteStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..fe1295a --- /dev/null +++ b/dist/models/CargoesDeleteStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус удаления грузоместа. + * + * Возможные статусы: + * - `SUCCESS` — грузоместо удалено, + * - `IN_PROGRESS` — грузоместо в процессе удаления, + * - `ERROR` — возникла ошибка при удалении грузоместа. + * + * @export + */ +export declare const CargoesDeleteStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly ERROR: "ERROR"; +}; +export type CargoesDeleteStatusResponseStatusEnum = typeof CargoesDeleteStatusResponseStatusEnum[keyof typeof CargoesDeleteStatusResponseStatusEnum]; +export declare function instanceOfCargoesDeleteStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesDeleteStatusResponseStatusEnumFromJSON(json: any): CargoesDeleteStatusResponseStatusEnum; +export declare function CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesDeleteStatusResponseStatusEnum; +export declare function CargoesDeleteStatusResponseStatusEnumToJSON(value?: CargoesDeleteStatusResponseStatusEnum | null): any; diff --git a/dist/models/CargoesDeleteStatusResponseStatusEnum.js b/dist/models/CargoesDeleteStatusResponseStatusEnum.js new file mode 100644 index 0000000..ae39129 --- /dev/null +++ b/dist/models/CargoesDeleteStatusResponseStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesDeleteStatusResponseStatusEnum = void 0; +exports.instanceOfCargoesDeleteStatusResponseStatusEnum = instanceOfCargoesDeleteStatusResponseStatusEnum; +exports.CargoesDeleteStatusResponseStatusEnumFromJSON = CargoesDeleteStatusResponseStatusEnumFromJSON; +exports.CargoesDeleteStatusResponseStatusEnumFromJSONTyped = CargoesDeleteStatusResponseStatusEnumFromJSONTyped; +exports.CargoesDeleteStatusResponseStatusEnumToJSON = CargoesDeleteStatusResponseStatusEnumToJSON; +/** + * Статус удаления грузоместа. + * + * Возможные статусы: + * - `SUCCESS` — грузоместо удалено, + * - `IN_PROGRESS` — грузоместо в процессе удаления, + * - `ERROR` — возникла ошибка при удалении грузоместа. + * + * @export + */ +exports.CargoesDeleteStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + ERROR: 'ERROR' +}; +function instanceOfCargoesDeleteStatusResponseStatusEnum(value) { + for (const key in exports.CargoesDeleteStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesDeleteStatusResponseStatusEnum, key)) { + if (exports.CargoesDeleteStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesDeleteStatusResponseStatusEnumFromJSON(json) { + return CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json, false); +} +function CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesDeleteStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesGetResponseSupply.d.ts b/dist/models/CargoesGetResponseSupply.d.ts new file mode 100644 index 0000000..997d532 --- /dev/null +++ b/dist/models/CargoesGetResponseSupply.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyCargoInfo } from './SupplyCargoInfo'; +/** + * + * @export + * @interface CargoesGetResponseSupply + */ +export interface CargoesGetResponseSupply { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof CargoesGetResponseSupply + */ + bundle_id?: string; + /** + * Грузоместа. + * @type {Array} + * @memberof CargoesGetResponseSupply + */ + cargoes?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesGetResponseSupply + */ + supply_id?: number; +} +/** + * Check if a given object implements the CargoesGetResponseSupply interface. + */ +export declare function instanceOfCargoesGetResponseSupply(value: object): value is CargoesGetResponseSupply; +export declare function CargoesGetResponseSupplyFromJSON(json: any): CargoesGetResponseSupply; +export declare function CargoesGetResponseSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesGetResponseSupply; +export declare function CargoesGetResponseSupplyToJSON(value?: CargoesGetResponseSupply | null): any; diff --git a/dist/models/CargoesGetResponseSupply.js b/dist/models/CargoesGetResponseSupply.js new file mode 100644 index 0000000..8932e38 --- /dev/null +++ b/dist/models/CargoesGetResponseSupply.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesGetResponseSupply = instanceOfCargoesGetResponseSupply; +exports.CargoesGetResponseSupplyFromJSON = CargoesGetResponseSupplyFromJSON; +exports.CargoesGetResponseSupplyFromJSONTyped = CargoesGetResponseSupplyFromJSONTyped; +exports.CargoesGetResponseSupplyToJSON = CargoesGetResponseSupplyToJSON; +const SupplyCargoInfo_1 = require("./SupplyCargoInfo"); +/** + * Check if a given object implements the CargoesGetResponseSupply interface. + */ +function instanceOfCargoesGetResponseSupply(value) { + return true; +} +function CargoesGetResponseSupplyFromJSON(json) { + return CargoesGetResponseSupplyFromJSONTyped(json, false); +} +function CargoesGetResponseSupplyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(SupplyCargoInfo_1.SupplyCargoInfoFromJSON)), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function CargoesGetResponseSupplyToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(SupplyCargoInfo_1.SupplyCargoInfoToJSON)), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/CargoesPresentRuleCargoCountPerType.d.ts b/dist/models/CargoesPresentRuleCargoCountPerType.d.ts new file mode 100644 index 0000000..74acf91 --- /dev/null +++ b/dist/models/CargoesPresentRuleCargoCountPerType.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesPresentRuleCargoCountPerTypeEnum } from './CargoesPresentRuleCargoCountPerTypeEnum'; +/** + * + * @export + * @interface CargoesPresentRuleCargoCountPerType + */ +export interface CargoesPresentRuleCargoCountPerType { + /** + * Количество грузомест. + * @type {number} + * @memberof CargoesPresentRuleCargoCountPerType + */ + count?: number; + /** + * + * @type {CargoesPresentRuleCargoCountPerTypeEnum} + * @memberof CargoesPresentRuleCargoCountPerType + */ + type?: CargoesPresentRuleCargoCountPerTypeEnum; +} +/** + * Check if a given object implements the CargoesPresentRuleCargoCountPerType interface. + */ +export declare function instanceOfCargoesPresentRuleCargoCountPerType(value: object): value is CargoesPresentRuleCargoCountPerType; +export declare function CargoesPresentRuleCargoCountPerTypeFromJSON(json: any): CargoesPresentRuleCargoCountPerType; +export declare function CargoesPresentRuleCargoCountPerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesPresentRuleCargoCountPerType; +export declare function CargoesPresentRuleCargoCountPerTypeToJSON(value?: CargoesPresentRuleCargoCountPerType | null): any; diff --git a/dist/models/CargoesPresentRuleCargoCountPerType.js b/dist/models/CargoesPresentRuleCargoCountPerType.js new file mode 100644 index 0000000..ee3b720 --- /dev/null +++ b/dist/models/CargoesPresentRuleCargoCountPerType.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesPresentRuleCargoCountPerType = instanceOfCargoesPresentRuleCargoCountPerType; +exports.CargoesPresentRuleCargoCountPerTypeFromJSON = CargoesPresentRuleCargoCountPerTypeFromJSON; +exports.CargoesPresentRuleCargoCountPerTypeFromJSONTyped = CargoesPresentRuleCargoCountPerTypeFromJSONTyped; +exports.CargoesPresentRuleCargoCountPerTypeToJSON = CargoesPresentRuleCargoCountPerTypeToJSON; +const CargoesPresentRuleCargoCountPerTypeEnum_1 = require("./CargoesPresentRuleCargoCountPerTypeEnum"); +/** + * Check if a given object implements the CargoesPresentRuleCargoCountPerType interface. + */ +function instanceOfCargoesPresentRuleCargoCountPerType(value) { + return true; +} +function CargoesPresentRuleCargoCountPerTypeFromJSON(json) { + return CargoesPresentRuleCargoCountPerTypeFromJSONTyped(json, false); +} +function CargoesPresentRuleCargoCountPerTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'type': json['type'] == null ? undefined : (0, CargoesPresentRuleCargoCountPerTypeEnum_1.CargoesPresentRuleCargoCountPerTypeEnumFromJSON)(json['type']), + }; +} +function CargoesPresentRuleCargoCountPerTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'type': (0, CargoesPresentRuleCargoCountPerTypeEnum_1.CargoesPresentRuleCargoCountPerTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesPresentRuleCargoCountPerTypeEnum.d.ts b/dist/models/CargoesPresentRuleCargoCountPerTypeEnum.d.ts new file mode 100644 index 0000000..c99dff3 --- /dev/null +++ b/dist/models/CargoesPresentRuleCargoCountPerTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка, + * - `PALLET` — палета. + * + * @export + */ +export declare const CargoesPresentRuleCargoCountPerTypeEnum: { + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type CargoesPresentRuleCargoCountPerTypeEnum = typeof CargoesPresentRuleCargoCountPerTypeEnum[keyof typeof CargoesPresentRuleCargoCountPerTypeEnum]; +export declare function instanceOfCargoesPresentRuleCargoCountPerTypeEnum(value: any): boolean; +export declare function CargoesPresentRuleCargoCountPerTypeEnumFromJSON(json: any): CargoesPresentRuleCargoCountPerTypeEnum; +export declare function CargoesPresentRuleCargoCountPerTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesPresentRuleCargoCountPerTypeEnum; +export declare function CargoesPresentRuleCargoCountPerTypeEnumToJSON(value?: CargoesPresentRuleCargoCountPerTypeEnum | null): any; diff --git a/dist/models/CargoesPresentRuleCargoCountPerTypeEnum.js b/dist/models/CargoesPresentRuleCargoCountPerTypeEnum.js new file mode 100644 index 0000000..1ec3217 --- /dev/null +++ b/dist/models/CargoesPresentRuleCargoCountPerTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesPresentRuleCargoCountPerTypeEnum = void 0; +exports.instanceOfCargoesPresentRuleCargoCountPerTypeEnum = instanceOfCargoesPresentRuleCargoCountPerTypeEnum; +exports.CargoesPresentRuleCargoCountPerTypeEnumFromJSON = CargoesPresentRuleCargoCountPerTypeEnumFromJSON; +exports.CargoesPresentRuleCargoCountPerTypeEnumFromJSONTyped = CargoesPresentRuleCargoCountPerTypeEnumFromJSONTyped; +exports.CargoesPresentRuleCargoCountPerTypeEnumToJSON = CargoesPresentRuleCargoCountPerTypeEnumToJSON; +/** + * Тип грузоместа: + * - `BOX` — коробка, + * - `PALLET` — палета. + * + * @export + */ +exports.CargoesPresentRuleCargoCountPerTypeEnum = { + BOX: 'BOX', + PALLET: 'PALLET' +}; +function instanceOfCargoesPresentRuleCargoCountPerTypeEnum(value) { + for (const key in exports.CargoesPresentRuleCargoCountPerTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesPresentRuleCargoCountPerTypeEnum, key)) { + if (exports.CargoesPresentRuleCargoCountPerTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesPresentRuleCargoCountPerTypeEnumFromJSON(json) { + return CargoesPresentRuleCargoCountPerTypeEnumFromJSONTyped(json, false); +} +function CargoesPresentRuleCargoCountPerTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesPresentRuleCargoCountPerTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesRulesGetResponseSupplyCheck.d.ts b/dist/models/CargoesRulesGetResponseSupplyCheck.d.ts new file mode 100644 index 0000000..4b8869d --- /dev/null +++ b/dist/models/CargoesRulesGetResponseSupplyCheck.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyCheckIsValidDistributionRule } from './SupplyCheckIsValidDistributionRule'; +import type { SupplyCheckCargoesPresentRule } from './SupplyCheckCargoesPresentRule'; +import type { SupplyCheckEditDeadlineExpireRule } from './SupplyCheckEditDeadlineExpireRule'; +import type { SupplyCheckPackageUnitWithDistributionRule } from './SupplyCheckPackageUnitWithDistributionRule'; +import type { SupplyCheckPlacementZoneRule } from './SupplyCheckPlacementZoneRule'; +import type { SupplyCheckExpireDatePresentedRule } from './SupplyCheckExpireDatePresentedRule'; +/** + * Чек-лист правил заполнения грузомест. + * @export + * @interface CargoesRulesGetResponseSupplyCheck + */ +export interface CargoesRulesGetResponseSupplyCheck { + /** + * + * @type {SupplyCheckCargoesPresentRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + cargoes_presents_rule?: SupplyCheckCargoesPresentRule; + /** + * + * @type {SupplyCheckEditDeadlineExpireRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + edit_deadline_expire_rule?: SupplyCheckEditDeadlineExpireRule; + /** + * + * @type {SupplyCheckExpireDatePresentedRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + expire_dates_presented_rule?: SupplyCheckExpireDatePresentedRule; + /** + * + * @type {SupplyCheckIsValidDistributionRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + is_valid_distribution_rule?: SupplyCheckIsValidDistributionRule; + /** + * + * @type {SupplyCheckPackageUnitWithDistributionRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + package_units_with_distribution_rule?: SupplyCheckPackageUnitWithDistributionRule; + /** + * + * @type {SupplyCheckPlacementZoneRule} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + placement_zones_rule?: SupplyCheckPlacementZoneRule; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesRulesGetResponseSupplyCheck + */ + supply_id?: number; +} +/** + * Check if a given object implements the CargoesRulesGetResponseSupplyCheck interface. + */ +export declare function instanceOfCargoesRulesGetResponseSupplyCheck(value: object): value is CargoesRulesGetResponseSupplyCheck; +export declare function CargoesRulesGetResponseSupplyCheckFromJSON(json: any): CargoesRulesGetResponseSupplyCheck; +export declare function CargoesRulesGetResponseSupplyCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesRulesGetResponseSupplyCheck; +export declare function CargoesRulesGetResponseSupplyCheckToJSON(value?: CargoesRulesGetResponseSupplyCheck | null): any; diff --git a/dist/models/CargoesRulesGetResponseSupplyCheck.js b/dist/models/CargoesRulesGetResponseSupplyCheck.js new file mode 100644 index 0000000..4bfc0ad --- /dev/null +++ b/dist/models/CargoesRulesGetResponseSupplyCheck.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesRulesGetResponseSupplyCheck = instanceOfCargoesRulesGetResponseSupplyCheck; +exports.CargoesRulesGetResponseSupplyCheckFromJSON = CargoesRulesGetResponseSupplyCheckFromJSON; +exports.CargoesRulesGetResponseSupplyCheckFromJSONTyped = CargoesRulesGetResponseSupplyCheckFromJSONTyped; +exports.CargoesRulesGetResponseSupplyCheckToJSON = CargoesRulesGetResponseSupplyCheckToJSON; +const SupplyCheckIsValidDistributionRule_1 = require("./SupplyCheckIsValidDistributionRule"); +const SupplyCheckCargoesPresentRule_1 = require("./SupplyCheckCargoesPresentRule"); +const SupplyCheckEditDeadlineExpireRule_1 = require("./SupplyCheckEditDeadlineExpireRule"); +const SupplyCheckPackageUnitWithDistributionRule_1 = require("./SupplyCheckPackageUnitWithDistributionRule"); +const SupplyCheckPlacementZoneRule_1 = require("./SupplyCheckPlacementZoneRule"); +const SupplyCheckExpireDatePresentedRule_1 = require("./SupplyCheckExpireDatePresentedRule"); +/** + * Check if a given object implements the CargoesRulesGetResponseSupplyCheck interface. + */ +function instanceOfCargoesRulesGetResponseSupplyCheck(value) { + return true; +} +function CargoesRulesGetResponseSupplyCheckFromJSON(json) { + return CargoesRulesGetResponseSupplyCheckFromJSONTyped(json, false); +} +function CargoesRulesGetResponseSupplyCheckFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes_presents_rule': json['cargoes_presents_rule'] == null ? undefined : (0, SupplyCheckCargoesPresentRule_1.SupplyCheckCargoesPresentRuleFromJSON)(json['cargoes_presents_rule']), + 'edit_deadline_expire_rule': json['edit_deadline_expire_rule'] == null ? undefined : (0, SupplyCheckEditDeadlineExpireRule_1.SupplyCheckEditDeadlineExpireRuleFromJSON)(json['edit_deadline_expire_rule']), + 'expire_dates_presented_rule': json['expire_dates_presented_rule'] == null ? undefined : (0, SupplyCheckExpireDatePresentedRule_1.SupplyCheckExpireDatePresentedRuleFromJSON)(json['expire_dates_presented_rule']), + 'is_valid_distribution_rule': json['is_valid_distribution_rule'] == null ? undefined : (0, SupplyCheckIsValidDistributionRule_1.SupplyCheckIsValidDistributionRuleFromJSON)(json['is_valid_distribution_rule']), + 'package_units_with_distribution_rule': json['package_units_with_distribution_rule'] == null ? undefined : (0, SupplyCheckPackageUnitWithDistributionRule_1.SupplyCheckPackageUnitWithDistributionRuleFromJSON)(json['package_units_with_distribution_rule']), + 'placement_zones_rule': json['placement_zones_rule'] == null ? undefined : (0, SupplyCheckPlacementZoneRule_1.SupplyCheckPlacementZoneRuleFromJSON)(json['placement_zones_rule']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function CargoesRulesGetResponseSupplyCheckToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes_presents_rule': (0, SupplyCheckCargoesPresentRule_1.SupplyCheckCargoesPresentRuleToJSON)(value['cargoes_presents_rule']), + 'edit_deadline_expire_rule': (0, SupplyCheckEditDeadlineExpireRule_1.SupplyCheckEditDeadlineExpireRuleToJSON)(value['edit_deadline_expire_rule']), + 'expire_dates_presented_rule': (0, SupplyCheckExpireDatePresentedRule_1.SupplyCheckExpireDatePresentedRuleToJSON)(value['expire_dates_presented_rule']), + 'is_valid_distribution_rule': (0, SupplyCheckIsValidDistributionRule_1.SupplyCheckIsValidDistributionRuleToJSON)(value['is_valid_distribution_rule']), + 'package_units_with_distribution_rule': (0, SupplyCheckPackageUnitWithDistributionRule_1.SupplyCheckPackageUnitWithDistributionRuleToJSON)(value['package_units_with_distribution_rule']), + 'placement_zones_rule': (0, SupplyCheckPlacementZoneRule_1.SupplyCheckPlacementZoneRuleToJSON)(value['placement_zones_rule']), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.d.ts b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.d.ts new file mode 100644 index 0000000..2e5f9d2 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportByOrderCreateRequest + */ +export interface CargoesV1CargoesLabelTransportByOrderCreateRequest { + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesLabelTransportByOrderCreateRequest + */ + order_id: number; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderCreateRequest interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderCreateRequest(value: object): value is CargoesV1CargoesLabelTransportByOrderCreateRequest; +export declare function CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderCreateRequest; +export declare function CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderCreateRequest; +export declare function CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON(value?: CargoesV1CargoesLabelTransportByOrderCreateRequest | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.js b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.js new file mode 100644 index 0000000..dcad9da --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportByOrderCreateRequest = instanceOfCargoesV1CargoesLabelTransportByOrderCreateRequest; +exports.CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSON = CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSON; +exports.CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSONTyped = CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSONTyped; +exports.CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON = CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderCreateRequest interface. + */ +function instanceOfCargoesV1CargoesLabelTransportByOrderCreateRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +function CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportByOrderCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +function CargoesV1CargoesLabelTransportByOrderCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.d.ts b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.d.ts new file mode 100644 index 0000000..496fb6f --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum } from './CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportByOrderCreateResponse + */ +export interface CargoesV1CargoesLabelTransportByOrderCreateResponse { + /** + * Ошибки при генерации этикеток транспортных грузомест: + * - `ORDER_NOT_FOUND` — заявка не найдена; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `ALL_SUPPLIES_SKIPPED` — нет этикеток для поставок; + * - `LABELS_COUNT_EXCEED` — превышено количество генерируемых этикеток; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportByOrderCreateResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/label/transport-by-order/status](#operation/CargoesLabelTransportByOrderStatus). + * @type {string} + * @memberof CargoesV1CargoesLabelTransportByOrderCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderCreateResponse interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponse(value: object): value is CargoesV1CargoesLabelTransportByOrderCreateResponse; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderCreateResponse; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderCreateResponse; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseToJSON(value?: CargoesV1CargoesLabelTransportByOrderCreateResponse | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.js b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.js new file mode 100644 index 0000000..deea5a3 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponse = instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponse; +exports.CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON = CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON; +exports.CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSONTyped = CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSONTyped; +exports.CargoesV1CargoesLabelTransportByOrderCreateResponseToJSON = CargoesV1CargoesLabelTransportByOrderCreateResponseToJSON; +const CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderCreateResponse interface. + */ +function instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponse(value) { + return true; +} +function CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportByOrderCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum_1.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function CargoesV1CargoesLabelTransportByOrderCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum_1.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..71c365e --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum: { + readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly ALL_SUPPLIES_SKIPPED: "ALL_SUPPLIES_SKIPPED"; + readonly LABELS_COUNT_EXCEED: "LABELS_COUNT_EXCEED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum = typeof CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.js new file mode 100644 index 0000000..45eb76c --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum = instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum; +exports.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON = CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON = CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum = { + ORDER_NOT_FOUND: 'ORDER_NOT_FOUND', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + ALL_SUPPLIES_SKIPPED: 'ALL_SUPPLIES_SKIPPED', + LABELS_COUNT_EXCEED: 'LABELS_COUNT_EXCEED', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfCargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.d.ts b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.d.ts new file mode 100644 index 0000000..fe98f98 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportByOrderStatusRequest + */ +export interface CargoesV1CargoesLabelTransportByOrderStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/label/transport-by-order/create](#operation/CargoesLabelTransportByOrderCreate). + * @type {string} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusRequest(value: object): value is CargoesV1CargoesLabelTransportByOrderStatusRequest; +export declare function CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusRequest; +export declare function CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusRequest; +export declare function CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusRequest | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.js b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.js new file mode 100644 index 0000000..3bcbdff --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportByOrderStatusRequest = instanceOfCargoesV1CargoesLabelTransportByOrderStatusRequest; +exports.CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSON = CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSON; +exports.CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSONTyped = CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSONTyped; +exports.CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON = CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusRequest interface. + */ +function instanceOfCargoesV1CargoesLabelTransportByOrderStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportByOrderStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function CargoesV1CargoesLabelTransportByOrderStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.d.ts b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.d.ts new file mode 100644 index 0000000..355762b --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesLabelTransportByOrderStatusResponseResult } from './CargoesV1CargoesLabelTransportByOrderStatusResponseResult'; +import type { CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum } from './CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum'; +import type { CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum } from './CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum'; +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportByOrderStatusResponse + */ +export interface CargoesV1CargoesLabelTransportByOrderStatusResponse { + /** + * Ошибки при генерации этикеток транспортных грузомест: + * - `ORDER_NOT_FOUND` — заявка не найдена; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `ALL_SUPPLIES_SKIPPED` — нет этикеток для поставок; + * - `LABELS_COUNT_EXCEED` — превышено количество генерируемых этикеток; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesLabelTransportByOrderStatusResponseResult} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponse + */ + result?: CargoesV1CargoesLabelTransportByOrderStatusResponseResult; + /** + * + * @type {CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponse + */ + status?: CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponse(value: object): value is CargoesV1CargoesLabelTransportByOrderStatusResponse; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusResponse; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusResponse; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusResponse | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.js b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.js new file mode 100644 index 0000000..d40931a --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponse = instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponse; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON = CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSONTyped = CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSONTyped; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseToJSON = CargoesV1CargoesLabelTransportByOrderStatusResponseToJSON; +const CargoesV1CargoesLabelTransportByOrderStatusResponseResult_1 = require("./CargoesV1CargoesLabelTransportByOrderStatusResponseResult"); +const CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum"); +const CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum_1 = require("./CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum"); +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusResponse interface. + */ +function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponse(value) { + return true; +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum_1.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON)), + 'result': json['result'] == null ? undefined : (0, CargoesV1CargoesLabelTransportByOrderStatusResponseResult_1.CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON)(json['result']), + 'status': json['status'] == null ? undefined : (0, CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum_1.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum_1.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON)), + 'result': (0, CargoesV1CargoesLabelTransportByOrderStatusResponseResult_1.CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON)(value['result']), + 'status': (0, CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum_1.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..41a52ba --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum: { + readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly ALL_SUPPLIES_SKIPPED: "ALL_SUPPLIES_SKIPPED"; + readonly LABELS_COUNT_EXCEED: "LABELS_COUNT_EXCEED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..6183f0e --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum = instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON = CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON = CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum = { + ORDER_NOT_FOUND: 'ORDER_NOT_FOUND', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + ALL_SUPPLIES_SKIPPED: 'ALL_SUPPLIES_SKIPPED', + LABELS_COUNT_EXCEED: 'LABELS_COUNT_EXCEED', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.d.ts b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.d.ts new file mode 100644 index 0000000..a0e9621 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Этикетки транспортных грузомест. + * @export + * @interface CargoesV1CargoesLabelTransportByOrderStatusResponseResult + */ +export interface CargoesV1CargoesLabelTransportByOrderStatusResponseResult { + /** + * Ссылка на PDF-файл с этикетками. + * @type {string} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponseResult + */ + file_url?: string; + /** + * Поставки, по которым не сгенерированы этикетки. + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportByOrderStatusResponseResult + */ + skipped_supplies_ids?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusResponseResult interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseResult(value: object): value is CargoesV1CargoesLabelTransportByOrderStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusResponseResult | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.js b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.js new file mode 100644 index 0000000..a2f9114 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseResult.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseResult = instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseResult; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON = CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSONTyped = CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSONTyped; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON = CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportByOrderStatusResponseResult interface. + */ +function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseResult(value) { + return true; +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + 'skipped_supplies_ids': json['skipped_supplies_ids'] == null ? undefined : json['skipped_supplies_ids'], + }; +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_url': value['file_url'], + 'skipped_supplies_ids': value['skipped_supplies_ids'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.d.ts b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..93414be --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации этикеток: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum = typeof CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum[keyof typeof CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum; +export declare function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.js b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.js new file mode 100644 index 0000000..5630a9a --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum = void 0; +exports.instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum = instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON = CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSONTyped = CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSONTyped; +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON = CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON; +/** + * Статус генерации этикеток: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +exports.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfCargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum(value) { + for (const key in exports.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum, key)) { + if (exports.CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportCreateRequest.d.ts b/dist/models/CargoesV1CargoesLabelTransportCreateRequest.d.ts new file mode 100644 index 0000000..ed9e9d7 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportCreateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportCreateRequest + */ +export interface CargoesV1CargoesLabelTransportCreateRequest { + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesLabelTransportCreateRequest + */ + supply_id: number; + /** + * Идентификаторы транспортных грузомест. Если ничего не передать, в ответе вернутся этикетки для всех транспортных грузомест в поставке. + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportCreateRequest + */ + transport_cargo_ids?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportCreateRequest interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportCreateRequest(value: object): value is CargoesV1CargoesLabelTransportCreateRequest; +export declare function CargoesV1CargoesLabelTransportCreateRequestFromJSON(json: any): CargoesV1CargoesLabelTransportCreateRequest; +export declare function CargoesV1CargoesLabelTransportCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportCreateRequest; +export declare function CargoesV1CargoesLabelTransportCreateRequestToJSON(value?: CargoesV1CargoesLabelTransportCreateRequest | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportCreateRequest.js b/dist/models/CargoesV1CargoesLabelTransportCreateRequest.js new file mode 100644 index 0000000..5cc123e --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportCreateRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportCreateRequest = instanceOfCargoesV1CargoesLabelTransportCreateRequest; +exports.CargoesV1CargoesLabelTransportCreateRequestFromJSON = CargoesV1CargoesLabelTransportCreateRequestFromJSON; +exports.CargoesV1CargoesLabelTransportCreateRequestFromJSONTyped = CargoesV1CargoesLabelTransportCreateRequestFromJSONTyped; +exports.CargoesV1CargoesLabelTransportCreateRequestToJSON = CargoesV1CargoesLabelTransportCreateRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportCreateRequest interface. + */ +function instanceOfCargoesV1CargoesLabelTransportCreateRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function CargoesV1CargoesLabelTransportCreateRequestFromJSON(json) { + return CargoesV1CargoesLabelTransportCreateRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + 'transport_cargo_ids': json['transport_cargo_ids'] == null ? undefined : json['transport_cargo_ids'], + }; +} +function CargoesV1CargoesLabelTransportCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + 'transport_cargo_ids': value['transport_cargo_ids'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportCreateResponse.d.ts b/dist/models/CargoesV1CargoesLabelTransportCreateResponse.d.ts new file mode 100644 index 0000000..b7251e6 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportCreateResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum } from './CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportCreateResponse + */ +export interface CargoesV1CargoesLabelTransportCreateResponse { + /** + * Ошибки при генерации этикеток транспортных грузомест: + * - `INVALID_STATE` — недопустимое состояние поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — поставка не принадлежит юридическому лицу; + * - `SUPPLY_NOT_BELONG_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `SUPPLY_IS_EMPTY` — в поставке нет грузомест; + * - `CARGOES_NOT_FOUND` — грузоместа не найдены. + * + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportCreateResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/label/transport-by-order/status](#operation/CargoesLabelTransportStatus). + * @type {string} + * @memberof CargoesV1CargoesLabelTransportCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportCreateResponse interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportCreateResponse(value: object): value is CargoesV1CargoesLabelTransportCreateResponse; +export declare function CargoesV1CargoesLabelTransportCreateResponseFromJSON(json: any): CargoesV1CargoesLabelTransportCreateResponse; +export declare function CargoesV1CargoesLabelTransportCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportCreateResponse; +export declare function CargoesV1CargoesLabelTransportCreateResponseToJSON(value?: CargoesV1CargoesLabelTransportCreateResponse | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportCreateResponse.js b/dist/models/CargoesV1CargoesLabelTransportCreateResponse.js new file mode 100644 index 0000000..1bcef2e --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportCreateResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportCreateResponse = instanceOfCargoesV1CargoesLabelTransportCreateResponse; +exports.CargoesV1CargoesLabelTransportCreateResponseFromJSON = CargoesV1CargoesLabelTransportCreateResponseFromJSON; +exports.CargoesV1CargoesLabelTransportCreateResponseFromJSONTyped = CargoesV1CargoesLabelTransportCreateResponseFromJSONTyped; +exports.CargoesV1CargoesLabelTransportCreateResponseToJSON = CargoesV1CargoesLabelTransportCreateResponseToJSON; +const CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportCreateResponse interface. + */ +function instanceOfCargoesV1CargoesLabelTransportCreateResponse(value) { + return true; +} +function CargoesV1CargoesLabelTransportCreateResponseFromJSON(json) { + return CargoesV1CargoesLabelTransportCreateResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum_1.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function CargoesV1CargoesLabelTransportCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum_1.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..cbc5ef1 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum: { + readonly INVALID_STATE: "INVALID_STATE"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly SUPPLY_IS_EMPTY: "SUPPLY_IS_EMPTY"; + readonly CARGOES_NOT_FOUND: "CARGOES_NOT_FOUND"; +}; +export type CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum = typeof CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.js new file mode 100644 index 0000000..0c2b411 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum = instanceOfCargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum; +exports.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON = CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON = CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum = { + INVALID_STATE: 'INVALID_STATE', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + SUPPLY_IS_EMPTY: 'SUPPLY_IS_EMPTY', + CARGOES_NOT_FOUND: 'CARGOES_NOT_FOUND' +}; +function instanceOfCargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusRequest.d.ts b/dist/models/CargoesV1CargoesLabelTransportStatusRequest.d.ts new file mode 100644 index 0000000..03dba08 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportStatusRequest + */ +export interface CargoesV1CargoesLabelTransportStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/label/transport/create](#operation/CargoesLabelTransportCreate). + * @type {string} + * @memberof CargoesV1CargoesLabelTransportStatusRequest + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportStatusRequest(value: object): value is CargoesV1CargoesLabelTransportStatusRequest; +export declare function CargoesV1CargoesLabelTransportStatusRequestFromJSON(json: any): CargoesV1CargoesLabelTransportStatusRequest; +export declare function CargoesV1CargoesLabelTransportStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusRequest; +export declare function CargoesV1CargoesLabelTransportStatusRequestToJSON(value?: CargoesV1CargoesLabelTransportStatusRequest | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusRequest.js b/dist/models/CargoesV1CargoesLabelTransportStatusRequest.js new file mode 100644 index 0000000..8ca759d --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportStatusRequest = instanceOfCargoesV1CargoesLabelTransportStatusRequest; +exports.CargoesV1CargoesLabelTransportStatusRequestFromJSON = CargoesV1CargoesLabelTransportStatusRequestFromJSON; +exports.CargoesV1CargoesLabelTransportStatusRequestFromJSONTyped = CargoesV1CargoesLabelTransportStatusRequestFromJSONTyped; +exports.CargoesV1CargoesLabelTransportStatusRequestToJSON = CargoesV1CargoesLabelTransportStatusRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusRequest interface. + */ +function instanceOfCargoesV1CargoesLabelTransportStatusRequest(value) { + return true; +} +function CargoesV1CargoesLabelTransportStatusRequestFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function CargoesV1CargoesLabelTransportStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusResponse.d.ts b/dist/models/CargoesV1CargoesLabelTransportStatusResponse.d.ts new file mode 100644 index 0000000..930a26f --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusResponse.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesLabelTransportStatusResponseStatusEnum } from './CargoesV1CargoesLabelTransportStatusResponseStatusEnum'; +import type { CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum } from './CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum'; +import type { CargoesV1CargoesLabelTransportStatusResponseResult } from './CargoesV1CargoesLabelTransportStatusResponseResult'; +/** + * + * @export + * @interface CargoesV1CargoesLabelTransportStatusResponse + */ +export interface CargoesV1CargoesLabelTransportStatusResponse { + /** + * Ошибки при генерации этикеток транспортных грузомест: + * - `INVALID_STATE` — недопустимое состояние поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — поставка не принадлежит юридическому лицу; + * - `SUPPLY_NOT_BELONG_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `SUPPLY_IS_EMPTY` — в поставке нет грузомест; + * - `CARGOES_NOT_FOUND` — грузоместа не найдены. + * + * @type {Array} + * @memberof CargoesV1CargoesLabelTransportStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesLabelTransportStatusResponseResult} + * @memberof CargoesV1CargoesLabelTransportStatusResponse + */ + result?: CargoesV1CargoesLabelTransportStatusResponseResult; + /** + * + * @type {CargoesV1CargoesLabelTransportStatusResponseStatusEnum} + * @memberof CargoesV1CargoesLabelTransportStatusResponse + */ + status?: CargoesV1CargoesLabelTransportStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportStatusResponse(value: object): value is CargoesV1CargoesLabelTransportStatusResponse; +export declare function CargoesV1CargoesLabelTransportStatusResponseFromJSON(json: any): CargoesV1CargoesLabelTransportStatusResponse; +export declare function CargoesV1CargoesLabelTransportStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusResponse; +export declare function CargoesV1CargoesLabelTransportStatusResponseToJSON(value?: CargoesV1CargoesLabelTransportStatusResponse | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusResponse.js b/dist/models/CargoesV1CargoesLabelTransportStatusResponse.js new file mode 100644 index 0000000..f89458a --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportStatusResponse = instanceOfCargoesV1CargoesLabelTransportStatusResponse; +exports.CargoesV1CargoesLabelTransportStatusResponseFromJSON = CargoesV1CargoesLabelTransportStatusResponseFromJSON; +exports.CargoesV1CargoesLabelTransportStatusResponseFromJSONTyped = CargoesV1CargoesLabelTransportStatusResponseFromJSONTyped; +exports.CargoesV1CargoesLabelTransportStatusResponseToJSON = CargoesV1CargoesLabelTransportStatusResponseToJSON; +const CargoesV1CargoesLabelTransportStatusResponseStatusEnum_1 = require("./CargoesV1CargoesLabelTransportStatusResponseStatusEnum"); +const CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum"); +const CargoesV1CargoesLabelTransportStatusResponseResult_1 = require("./CargoesV1CargoesLabelTransportStatusResponseResult"); +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusResponse interface. + */ +function instanceOfCargoesV1CargoesLabelTransportStatusResponse(value) { + return true; +} +function CargoesV1CargoesLabelTransportStatusResponseFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum_1.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON)), + 'result': json['result'] == null ? undefined : (0, CargoesV1CargoesLabelTransportStatusResponseResult_1.CargoesV1CargoesLabelTransportStatusResponseResultFromJSON)(json['result']), + 'status': json['status'] == null ? undefined : (0, CargoesV1CargoesLabelTransportStatusResponseStatusEnum_1.CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function CargoesV1CargoesLabelTransportStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum_1.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON)), + 'result': (0, CargoesV1CargoesLabelTransportStatusResponseResult_1.CargoesV1CargoesLabelTransportStatusResponseResultToJSON)(value['result']), + 'status': (0, CargoesV1CargoesLabelTransportStatusResponseStatusEnum_1.CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..399290b --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum: { + readonly INVALID_STATE: "INVALID_STATE"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly SUPPLY_IS_EMPTY: "SUPPLY_IS_EMPTY"; + readonly CARGOES_NOT_FOUND: "CARGOES_NOT_FOUND"; +}; +export type CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..922596e --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum = instanceOfCargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum; +exports.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON = CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON = CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum = { + INVALID_STATE: 'INVALID_STATE', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + SUPPLY_IS_EMPTY: 'SUPPLY_IS_EMPTY', + CARGOES_NOT_FOUND: 'CARGOES_NOT_FOUND' +}; +function instanceOfCargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusResponseResult.d.ts b/dist/models/CargoesV1CargoesLabelTransportStatusResponseResult.d.ts new file mode 100644 index 0000000..b887d68 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Этикетки транспортных грузомест. + * @export + * @interface CargoesV1CargoesLabelTransportStatusResponseResult + */ +export interface CargoesV1CargoesLabelTransportStatusResponseResult { + /** + * Ссылка на PDF-файл с этикетками. + * @type {string} + * @memberof CargoesV1CargoesLabelTransportStatusResponseResult + */ + file_url?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusResponseResult interface. + */ +export declare function instanceOfCargoesV1CargoesLabelTransportStatusResponseResult(value: object): value is CargoesV1CargoesLabelTransportStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportStatusResponseResultFromJSON(json: any): CargoesV1CargoesLabelTransportStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusResponseResult; +export declare function CargoesV1CargoesLabelTransportStatusResponseResultToJSON(value?: CargoesV1CargoesLabelTransportStatusResponseResult | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusResponseResult.js b/dist/models/CargoesV1CargoesLabelTransportStatusResponseResult.js new file mode 100644 index 0000000..7ae0842 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesLabelTransportStatusResponseResult = instanceOfCargoesV1CargoesLabelTransportStatusResponseResult; +exports.CargoesV1CargoesLabelTransportStatusResponseResultFromJSON = CargoesV1CargoesLabelTransportStatusResponseResultFromJSON; +exports.CargoesV1CargoesLabelTransportStatusResponseResultFromJSONTyped = CargoesV1CargoesLabelTransportStatusResponseResultFromJSONTyped; +exports.CargoesV1CargoesLabelTransportStatusResponseResultToJSON = CargoesV1CargoesLabelTransportStatusResponseResultToJSON; +/** + * Check if a given object implements the CargoesV1CargoesLabelTransportStatusResponseResult interface. + */ +function instanceOfCargoesV1CargoesLabelTransportStatusResponseResult(value) { + return true; +} +function CargoesV1CargoesLabelTransportStatusResponseResultFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusResponseResultFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + }; +} +function CargoesV1CargoesLabelTransportStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_url': value['file_url'], + }; +} diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.d.ts b/dist/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..b4ffd91 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации этикеток: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesLabelTransportStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesLabelTransportStatusResponseStatusEnum = typeof CargoesV1CargoesLabelTransportStatusResponseStatusEnum[keyof typeof CargoesV1CargoesLabelTransportStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesLabelTransportStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesLabelTransportStatusResponseStatusEnum; +export declare function CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesLabelTransportStatusResponseStatusEnum; +export declare function CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesLabelTransportStatusResponseStatusEnum | null): any; diff --git a/dist/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.js b/dist/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.js new file mode 100644 index 0000000..11199a4 --- /dev/null +++ b/dist/models/CargoesV1CargoesLabelTransportStatusResponseStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesLabelTransportStatusResponseStatusEnum = void 0; +exports.instanceOfCargoesV1CargoesLabelTransportStatusResponseStatusEnum = instanceOfCargoesV1CargoesLabelTransportStatusResponseStatusEnum; +exports.CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON = CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON; +exports.CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSONTyped = CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSONTyped; +exports.CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON = CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON; +/** + * Статус генерации этикеток: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +exports.CargoesV1CargoesLabelTransportStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfCargoesV1CargoesLabelTransportStatusResponseStatusEnum(value) { + for (const key in exports.CargoesV1CargoesLabelTransportStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesLabelTransportStatusResponseStatusEnum, key)) { + if (exports.CargoesV1CargoesLabelTransportStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesLabelTransportStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesLabelTransportStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesSuppliesGetRequest.d.ts b/dist/models/CargoesV1CargoesSuppliesGetRequest.d.ts new file mode 100644 index 0000000..a8ade34 --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetRequest + */ +export interface CargoesV1CargoesSuppliesGetRequest { + /** + * Список идентификаторов поставок. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetRequest + */ + supply_ids: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetRequest interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetRequest(value: object): value is CargoesV1CargoesSuppliesGetRequest; +export declare function CargoesV1CargoesSuppliesGetRequestFromJSON(json: any): CargoesV1CargoesSuppliesGetRequest; +export declare function CargoesV1CargoesSuppliesGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetRequest; +export declare function CargoesV1CargoesSuppliesGetRequestToJSON(value?: CargoesV1CargoesSuppliesGetRequest | null): any; diff --git a/dist/models/CargoesV1CargoesSuppliesGetRequest.js b/dist/models/CargoesV1CargoesSuppliesGetRequest.js new file mode 100644 index 0000000..8055bac --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesSuppliesGetRequest = instanceOfCargoesV1CargoesSuppliesGetRequest; +exports.CargoesV1CargoesSuppliesGetRequestFromJSON = CargoesV1CargoesSuppliesGetRequestFromJSON; +exports.CargoesV1CargoesSuppliesGetRequestFromJSONTyped = CargoesV1CargoesSuppliesGetRequestFromJSONTyped; +exports.CargoesV1CargoesSuppliesGetRequestToJSON = CargoesV1CargoesSuppliesGetRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetRequest interface. + */ +function instanceOfCargoesV1CargoesSuppliesGetRequest(value) { + if (!('supply_ids' in value) || value['supply_ids'] === undefined) + return false; + return true; +} +function CargoesV1CargoesSuppliesGetRequestFromJSON(json) { + return CargoesV1CargoesSuppliesGetRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesSuppliesGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_ids': json['supply_ids'], + }; +} +function CargoesV1CargoesSuppliesGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_ids': value['supply_ids'], + }; +} diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponse.d.ts b/dist/models/CargoesV1CargoesSuppliesGetResponse.d.ts new file mode 100644 index 0000000..e697fd7 --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoes } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoes'; +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponse + */ +export interface CargoesV1CargoesSuppliesGetResponse { + /** + * Поставки, которые не удалось найти. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponse + */ + not_found_supply_ids?: Array; + /** + * Информация о грузоместах в поставках. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponse + */ + supplies_cargoes?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponse interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponse(value: object): value is CargoesV1CargoesSuppliesGetResponse; +export declare function CargoesV1CargoesSuppliesGetResponseFromJSON(json: any): CargoesV1CargoesSuppliesGetResponse; +export declare function CargoesV1CargoesSuppliesGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponse; +export declare function CargoesV1CargoesSuppliesGetResponseToJSON(value?: CargoesV1CargoesSuppliesGetResponse | null): any; diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponse.js b/dist/models/CargoesV1CargoesSuppliesGetResponse.js new file mode 100644 index 0000000..8a260df --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesSuppliesGetResponse = instanceOfCargoesV1CargoesSuppliesGetResponse; +exports.CargoesV1CargoesSuppliesGetResponseFromJSON = CargoesV1CargoesSuppliesGetResponseFromJSON; +exports.CargoesV1CargoesSuppliesGetResponseFromJSONTyped = CargoesV1CargoesSuppliesGetResponseFromJSONTyped; +exports.CargoesV1CargoesSuppliesGetResponseToJSON = CargoesV1CargoesSuppliesGetResponseToJSON; +const CargoesV1CargoesSuppliesGetResponseSuppliesCargoes_1 = require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoes"); +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponse interface. + */ +function instanceOfCargoesV1CargoesSuppliesGetResponse(value) { + return true; +} +function CargoesV1CargoesSuppliesGetResponseFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesSuppliesGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'not_found_supply_ids': json['not_found_supply_ids'] == null ? undefined : json['not_found_supply_ids'], + 'supplies_cargoes': json['supplies_cargoes'] == null ? undefined : (json['supplies_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoes_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON)), + }; +} +function CargoesV1CargoesSuppliesGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'not_found_supply_ids': value['not_found_supply_ids'], + 'supplies_cargoes': value['supplies_cargoes'] == null ? undefined : (value['supplies_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoes_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON)), + }; +} diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.d.ts b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.d.ts new file mode 100644 index 0000000..25008a5 --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes'; +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes'; +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ +export interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoes { + /** + * Идентификатор состава поставки. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ + bundle_id?: string; + /** + * Грузоместа, которые не связаны с транспортными грузоместами. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ + cargoes_without_transport_cargoes?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ + supply_id?: number; + /** + * Список транспортных грузомест в поставке. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoes + */ + transport_cargoes?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoes(value: object): value is CargoesV1CargoesSuppliesGetResponseSuppliesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoes | null): any; diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.js b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.js new file mode 100644 index 0000000..d8ac6be --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoes.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoes = instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoes; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSONTyped = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSONTyped; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON; +const CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes_1 = require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes"); +const CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes_1 = require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes"); +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoes interface. + */ +function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoes(value) { + return true; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSONTyped(json, false); +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargoes_without_transport_cargoes': json['cargoes_without_transport_cargoes'] == null ? undefined : (json['cargoes_without_transport_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON)), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'transport_cargoes': json['transport_cargoes'] == null ? undefined : (json['transport_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON)), + }; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargoes_without_transport_cargoes': value['cargoes_without_transport_cargoes'] == null ? undefined : (value['cargoes_without_transport_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON)), + 'supply_id': value['supply_id'], + 'transport_cargoes': value['transport_cargoes'] == null ? undefined : (value['transport_cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON)), + }; +} diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.d.ts b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.d.ts new file mode 100644 index 0000000..ea7a14c --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes + */ +export interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes { + /** + * Штрихкод грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes + */ + barcode?: string; + /** + * Идентификатор состава грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes + */ + bundle_id?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes + */ + cargo_id?: number; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes(value: object): value is CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes | null): any; diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.js b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.js new file mode 100644 index 0000000..d234756 --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes = instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSONTyped = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSONTyped; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON; +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes interface. + */ +function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes(value) { + return true; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSONTyped(json, false); +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + }; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'bundle_id': value['bundle_id'], + 'cargo_id': value['cargo_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.d.ts b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.d.ts new file mode 100644 index 0000000..74bc8e8 --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes'; +import type { CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum } from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ +export interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes { + /** + * Идентификатор состава грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ + bundle_id?: string; + /** + * Грузоместа в транспортном грузоместе. + * @type {Array} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ + cargoes?: Array; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ + transport_cargo_id?: number; + /** + * + * @type {CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes + */ + type?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes(value: object): value is CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes | null): any; diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.js b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.js new file mode 100644 index 0000000..5d7b846 --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes = instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSONTyped = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSONTyped; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON; +const CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes_1 = require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes"); +const CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum_1 = require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum"); +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes interface. + */ +function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes(value) { + return true; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSONTyped(json, false); +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON)), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + 'type': json['type'] == null ? undefined : (0, CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON)(json['type']), + }; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON)), + 'transport_cargo_id': value['transport_cargo_id'], + 'type': (0, CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum_1.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.d.ts b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.d.ts new file mode 100644 index 0000000..7078793 --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes + */ +export interface CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes { + /** + * Штрихкод грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes + */ + barcode?: string; + /** + * Идентификатор состава грузоместа. + * @type {string} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes + */ + bundle_id?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes + */ + cargo_id?: number; +} +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes(value: object): value is CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes | null): any; diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.js b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.js new file mode 100644 index 0000000..c5da8de --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes = instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSONTyped = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSONTyped; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON; +/** + * Check if a given object implements the CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes interface. + */ +function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes(value) { + return true; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSONTyped(json, false); +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + }; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'bundle_id': value['bundle_id'], + 'cargo_id': value['cargo_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.d.ts b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.d.ts new file mode 100644 index 0000000..1fb2eed --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export declare const CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum: { + readonly PALLET: "PALLET"; +}; +export type CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum = typeof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum[keyof typeof CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum]; +export declare function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum(value: any): boolean; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON(json: any): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum; +export declare function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON(value?: CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum | null): any; diff --git a/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.js b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.js new file mode 100644 index 0000000..8fb8ab5 --- /dev/null +++ b/dist/models/CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum = void 0; +exports.instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum = instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSONTyped = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSONTyped; +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON = CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON; +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum = { + PALLET: 'PALLET' +}; +function instanceOfCargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum(value) { + for (const key in exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum, key)) { + if (exports.CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSON(json) { + return CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportActivateRequest.d.ts b/dist/models/CargoesV1CargoesTransportActivateRequest.d.ts new file mode 100644 index 0000000..61b611a --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportActivateRequest + */ +export interface CargoesV1CargoesTransportActivateRequest { + /** + * `true`, чтобы включить транспортные грузоместа. + * + * @type {boolean} + * @memberof CargoesV1CargoesTransportActivateRequest + */ + is_transport: boolean; + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesTransportActivateRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportActivateRequest(value: object): value is CargoesV1CargoesTransportActivateRequest; +export declare function CargoesV1CargoesTransportActivateRequestFromJSON(json: any): CargoesV1CargoesTransportActivateRequest; +export declare function CargoesV1CargoesTransportActivateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateRequest; +export declare function CargoesV1CargoesTransportActivateRequestToJSON(value?: CargoesV1CargoesTransportActivateRequest | null): any; diff --git a/dist/models/CargoesV1CargoesTransportActivateRequest.js b/dist/models/CargoesV1CargoesTransportActivateRequest.js new file mode 100644 index 0000000..58e69b5 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportActivateRequest = instanceOfCargoesV1CargoesTransportActivateRequest; +exports.CargoesV1CargoesTransportActivateRequestFromJSON = CargoesV1CargoesTransportActivateRequestFromJSON; +exports.CargoesV1CargoesTransportActivateRequestFromJSONTyped = CargoesV1CargoesTransportActivateRequestFromJSONTyped; +exports.CargoesV1CargoesTransportActivateRequestToJSON = CargoesV1CargoesTransportActivateRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateRequest interface. + */ +function instanceOfCargoesV1CargoesTransportActivateRequest(value) { + if (!('is_transport' in value) || value['is_transport'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function CargoesV1CargoesTransportActivateRequestFromJSON(json) { + return CargoesV1CargoesTransportActivateRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportActivateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_transport': json['is_transport'], + 'supply_id': json['supply_id'], + }; +} +function CargoesV1CargoesTransportActivateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_transport': value['is_transport'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesTransportActivateResponse.d.ts b/dist/models/CargoesV1CargoesTransportActivateResponse.d.ts new file mode 100644 index 0000000..7ef7d25 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportActivateResponse + */ +export interface CargoesV1CargoesTransportActivateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/transport/activate/status](#operation/CargoesTransportActivateStatus). + * @type {string} + * @memberof CargoesV1CargoesTransportActivateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportActivateResponse(value: object): value is CargoesV1CargoesTransportActivateResponse; +export declare function CargoesV1CargoesTransportActivateResponseFromJSON(json: any): CargoesV1CargoesTransportActivateResponse; +export declare function CargoesV1CargoesTransportActivateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateResponse; +export declare function CargoesV1CargoesTransportActivateResponseToJSON(value?: CargoesV1CargoesTransportActivateResponse | null): any; diff --git a/dist/models/CargoesV1CargoesTransportActivateResponse.js b/dist/models/CargoesV1CargoesTransportActivateResponse.js new file mode 100644 index 0000000..ace22d3 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportActivateResponse = instanceOfCargoesV1CargoesTransportActivateResponse; +exports.CargoesV1CargoesTransportActivateResponseFromJSON = CargoesV1CargoesTransportActivateResponseFromJSON; +exports.CargoesV1CargoesTransportActivateResponseFromJSONTyped = CargoesV1CargoesTransportActivateResponseFromJSONTyped; +exports.CargoesV1CargoesTransportActivateResponseToJSON = CargoesV1CargoesTransportActivateResponseToJSON; +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateResponse interface. + */ +function instanceOfCargoesV1CargoesTransportActivateResponse(value) { + return true; +} +function CargoesV1CargoesTransportActivateResponseFromJSON(json) { + return CargoesV1CargoesTransportActivateResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportActivateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function CargoesV1CargoesTransportActivateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesTransportActivateStatusRequest.d.ts b/dist/models/CargoesV1CargoesTransportActivateStatusRequest.d.ts new file mode 100644 index 0000000..9e406b3 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportActivateStatusRequest + */ +export interface CargoesV1CargoesTransportActivateStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/transport/activate](#operation/CargoesTransportActivate). + * @type {string} + * @memberof CargoesV1CargoesTransportActivateStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportActivateStatusRequest(value: object): value is CargoesV1CargoesTransportActivateStatusRequest; +export declare function CargoesV1CargoesTransportActivateStatusRequestFromJSON(json: any): CargoesV1CargoesTransportActivateStatusRequest; +export declare function CargoesV1CargoesTransportActivateStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateStatusRequest; +export declare function CargoesV1CargoesTransportActivateStatusRequestToJSON(value?: CargoesV1CargoesTransportActivateStatusRequest | null): any; diff --git a/dist/models/CargoesV1CargoesTransportActivateStatusRequest.js b/dist/models/CargoesV1CargoesTransportActivateStatusRequest.js new file mode 100644 index 0000000..2d71299 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportActivateStatusRequest = instanceOfCargoesV1CargoesTransportActivateStatusRequest; +exports.CargoesV1CargoesTransportActivateStatusRequestFromJSON = CargoesV1CargoesTransportActivateStatusRequestFromJSON; +exports.CargoesV1CargoesTransportActivateStatusRequestFromJSONTyped = CargoesV1CargoesTransportActivateStatusRequestFromJSONTyped; +exports.CargoesV1CargoesTransportActivateStatusRequestToJSON = CargoesV1CargoesTransportActivateStatusRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateStatusRequest interface. + */ +function instanceOfCargoesV1CargoesTransportActivateStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function CargoesV1CargoesTransportActivateStatusRequestFromJSON(json) { + return CargoesV1CargoesTransportActivateStatusRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportActivateStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function CargoesV1CargoesTransportActivateStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesTransportActivateStatusResponse.d.ts b/dist/models/CargoesV1CargoesTransportActivateStatusResponse.d.ts new file mode 100644 index 0000000..6d7f401 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateStatusResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportActivateStatusResponseStatusEnum } from './CargoesV1CargoesTransportActivateStatusResponseStatusEnum'; +import type { CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum } from './CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportActivateStatusResponse + */ +export interface CargoesV1CargoesTransportActivateStatusResponse { + /** + * Ошибки при включении или отключении транспортных грузомест: + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `SUPPLY_IS_FINALIZED`, `CAN_NOT_EDIT_TAG` — нельзя изменить поставку; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportActivateStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesTransportActivateStatusResponseStatusEnum} + * @memberof CargoesV1CargoesTransportActivateStatusResponse + */ + status?: CargoesV1CargoesTransportActivateStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportActivateStatusResponse(value: object): value is CargoesV1CargoesTransportActivateStatusResponse; +export declare function CargoesV1CargoesTransportActivateStatusResponseFromJSON(json: any): CargoesV1CargoesTransportActivateStatusResponse; +export declare function CargoesV1CargoesTransportActivateStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateStatusResponse; +export declare function CargoesV1CargoesTransportActivateStatusResponseToJSON(value?: CargoesV1CargoesTransportActivateStatusResponse | null): any; diff --git a/dist/models/CargoesV1CargoesTransportActivateStatusResponse.js b/dist/models/CargoesV1CargoesTransportActivateStatusResponse.js new file mode 100644 index 0000000..f165e99 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateStatusResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportActivateStatusResponse = instanceOfCargoesV1CargoesTransportActivateStatusResponse; +exports.CargoesV1CargoesTransportActivateStatusResponseFromJSON = CargoesV1CargoesTransportActivateStatusResponseFromJSON; +exports.CargoesV1CargoesTransportActivateStatusResponseFromJSONTyped = CargoesV1CargoesTransportActivateStatusResponseFromJSONTyped; +exports.CargoesV1CargoesTransportActivateStatusResponseToJSON = CargoesV1CargoesTransportActivateStatusResponseToJSON; +const CargoesV1CargoesTransportActivateStatusResponseStatusEnum_1 = require("./CargoesV1CargoesTransportActivateStatusResponseStatusEnum"); +const CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV1CargoesTransportActivateStatusResponse interface. + */ +function instanceOfCargoesV1CargoesTransportActivateStatusResponse(value) { + return true; +} +function CargoesV1CargoesTransportActivateStatusResponseFromJSON(json) { + return CargoesV1CargoesTransportActivateStatusResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportActivateStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum_1.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON)), + 'status': json['status'] == null ? undefined : (0, CargoesV1CargoesTransportActivateStatusResponseStatusEnum_1.CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function CargoesV1CargoesTransportActivateStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum_1.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON)), + 'status': (0, CargoesV1CargoesTransportActivateStatusResponseStatusEnum_1.CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..727c381 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,26 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum: { + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly SUPPLY_IS_FINALIZED: "SUPPLY_IS_FINALIZED"; + readonly CAN_NOT_EDIT_TAG: "CAN_NOT_EDIT_TAG"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..d1f60dc --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum = instanceOfCargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum; +exports.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON = CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON = CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum = { + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + SUPPLY_IS_FINALIZED: 'SUPPLY_IS_FINALIZED', + CAN_NOT_EDIT_TAG: 'CAN_NOT_EDIT_TAG', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfCargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.d.ts b/dist/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..57ea054 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус включения или отключения транспортных грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesTransportActivateStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesTransportActivateStatusResponseStatusEnum = typeof CargoesV1CargoesTransportActivateStatusResponseStatusEnum[keyof typeof CargoesV1CargoesTransportActivateStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesTransportActivateStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesTransportActivateStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportActivateStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesTransportActivateStatusResponseStatusEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.js b/dist/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.js new file mode 100644 index 0000000..831589e --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportActivateStatusResponseStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportActivateStatusResponseStatusEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportActivateStatusResponseStatusEnum = instanceOfCargoesV1CargoesTransportActivateStatusResponseStatusEnum; +exports.CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON = CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON; +exports.CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSONTyped = CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSONTyped; +exports.CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON = CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON; +/** + * Статус включения или отключения транспортных грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +exports.CargoesV1CargoesTransportActivateStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfCargoesV1CargoesTransportActivateStatusResponseStatusEnum(value) { + for (const key in exports.CargoesV1CargoesTransportActivateStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportActivateStatusResponseStatusEnum, key)) { + if (exports.CargoesV1CargoesTransportActivateStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportActivateStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportActivateStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportBindRequest.d.ts b/dist/models/CargoesV1CargoesTransportBindRequest.d.ts new file mode 100644 index 0000000..ca476a0 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportBindRequestTransportCargoBind } from './CargoesV1CargoesTransportBindRequestTransportCargoBind'; +/** + * + * @export + * @interface CargoesV1CargoesTransportBindRequest + */ +export interface CargoesV1CargoesTransportBindRequest { + /** + * Идентификаторы транспортных грузомест, которые надо отвязать. + * @type {Array} + * @memberof CargoesV1CargoesTransportBindRequest + */ + cargoes_unbind_transport_cargoes?: Array; + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesTransportBindRequest + */ + supply_id: number; + /** + * Идентификаторы грузомест и транспортных грузомест, которые надо связать. + * @type {Array} + * @memberof CargoesV1CargoesTransportBindRequest + */ + transport_cargo_bind?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindRequest(value: object): value is CargoesV1CargoesTransportBindRequest; +export declare function CargoesV1CargoesTransportBindRequestFromJSON(json: any): CargoesV1CargoesTransportBindRequest; +export declare function CargoesV1CargoesTransportBindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindRequest; +export declare function CargoesV1CargoesTransportBindRequestToJSON(value?: CargoesV1CargoesTransportBindRequest | null): any; diff --git a/dist/models/CargoesV1CargoesTransportBindRequest.js b/dist/models/CargoesV1CargoesTransportBindRequest.js new file mode 100644 index 0000000..d09c006 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportBindRequest = instanceOfCargoesV1CargoesTransportBindRequest; +exports.CargoesV1CargoesTransportBindRequestFromJSON = CargoesV1CargoesTransportBindRequestFromJSON; +exports.CargoesV1CargoesTransportBindRequestFromJSONTyped = CargoesV1CargoesTransportBindRequestFromJSONTyped; +exports.CargoesV1CargoesTransportBindRequestToJSON = CargoesV1CargoesTransportBindRequestToJSON; +const CargoesV1CargoesTransportBindRequestTransportCargoBind_1 = require("./CargoesV1CargoesTransportBindRequestTransportCargoBind"); +/** + * Check if a given object implements the CargoesV1CargoesTransportBindRequest interface. + */ +function instanceOfCargoesV1CargoesTransportBindRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function CargoesV1CargoesTransportBindRequestFromJSON(json) { + return CargoesV1CargoesTransportBindRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportBindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes_unbind_transport_cargoes': json['cargoes_unbind_transport_cargoes'] == null ? undefined : json['cargoes_unbind_transport_cargoes'], + 'supply_id': json['supply_id'], + 'transport_cargo_bind': json['transport_cargo_bind'] == null ? undefined : (json['transport_cargo_bind'].map(CargoesV1CargoesTransportBindRequestTransportCargoBind_1.CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON)), + }; +} +function CargoesV1CargoesTransportBindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes_unbind_transport_cargoes': value['cargoes_unbind_transport_cargoes'], + 'supply_id': value['supply_id'], + 'transport_cargo_bind': value['transport_cargo_bind'] == null ? undefined : (value['transport_cargo_bind'].map(CargoesV1CargoesTransportBindRequestTransportCargoBind_1.CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON)), + }; +} diff --git a/dist/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.d.ts b/dist/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.d.ts new file mode 100644 index 0000000..2511269 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportBindRequestTransportCargoBind + */ +export interface CargoesV1CargoesTransportBindRequestTransportCargoBind { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof CargoesV1CargoesTransportBindRequestTransportCargoBind + */ + cargo_ids: Array; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV1CargoesTransportBindRequestTransportCargoBind + */ + transport_cargo_id: number; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindRequestTransportCargoBind interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindRequestTransportCargoBind(value: object): value is CargoesV1CargoesTransportBindRequestTransportCargoBind; +export declare function CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON(json: any): CargoesV1CargoesTransportBindRequestTransportCargoBind; +export declare function CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindRequestTransportCargoBind; +export declare function CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON(value?: CargoesV1CargoesTransportBindRequestTransportCargoBind | null): any; diff --git a/dist/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.js b/dist/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.js new file mode 100644 index 0000000..3405dbc --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindRequestTransportCargoBind.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportBindRequestTransportCargoBind = instanceOfCargoesV1CargoesTransportBindRequestTransportCargoBind; +exports.CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON = CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON; +exports.CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSONTyped = CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSONTyped; +exports.CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON = CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON; +/** + * Check if a given object implements the CargoesV1CargoesTransportBindRequestTransportCargoBind interface. + */ +function instanceOfCargoesV1CargoesTransportBindRequestTransportCargoBind(value) { + if (!('cargo_ids' in value) || value['cargo_ids'] === undefined) + return false; + if (!('transport_cargo_id' in value) || value['transport_cargo_id'] === undefined) + return false; + return true; +} +function CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSON(json) { + return CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportBindRequestTransportCargoBindFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_ids': json['cargo_ids'], + 'transport_cargo_id': json['transport_cargo_id'], + }; +} +function CargoesV1CargoesTransportBindRequestTransportCargoBindToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_ids': value['cargo_ids'], + 'transport_cargo_id': value['transport_cargo_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesTransportBindResponse.d.ts b/dist/models/CargoesV1CargoesTransportBindResponse.d.ts new file mode 100644 index 0000000..f5c1361 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindResponse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportBindResponseErrorReasonsEnum } from './CargoesV1CargoesTransportBindResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportBindResponse + */ +export interface CargoesV1CargoesTransportBindResponse { + /** + * Ошибки связывания или отвязывания грузомест: + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR` — поставка не принадлежит юридическому лицу; + * - `TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY` — для поставки не включены транспортные грузоместа; + * - `INVALID_SUPPLY_STATE` — неверный статус поставки; + * - `SUPPLY_IS_FINALIZED` — нельзя редактировать поставку; + * - `CARGO_IDS_NOT_FOUND` — грузоместа не найдены; + * - `TRANSPORT_CARGO_IDS_NOT_FOUND` — траспортные грузоместа не найдены; + * - `ETTN_IS_UPLOADED` — нельзя редактировать поставку с загруженной эТТН. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportBindResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/transport/bind/status](#operation/CargoesTransportBindStatus). + * @type {string} + * @memberof CargoesV1CargoesTransportBindResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindResponse(value: object): value is CargoesV1CargoesTransportBindResponse; +export declare function CargoesV1CargoesTransportBindResponseFromJSON(json: any): CargoesV1CargoesTransportBindResponse; +export declare function CargoesV1CargoesTransportBindResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindResponse; +export declare function CargoesV1CargoesTransportBindResponseToJSON(value?: CargoesV1CargoesTransportBindResponse | null): any; diff --git a/dist/models/CargoesV1CargoesTransportBindResponse.js b/dist/models/CargoesV1CargoesTransportBindResponse.js new file mode 100644 index 0000000..4979376 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportBindResponse = instanceOfCargoesV1CargoesTransportBindResponse; +exports.CargoesV1CargoesTransportBindResponseFromJSON = CargoesV1CargoesTransportBindResponseFromJSON; +exports.CargoesV1CargoesTransportBindResponseFromJSONTyped = CargoesV1CargoesTransportBindResponseFromJSONTyped; +exports.CargoesV1CargoesTransportBindResponseToJSON = CargoesV1CargoesTransportBindResponseToJSON; +const CargoesV1CargoesTransportBindResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesTransportBindResponseErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV1CargoesTransportBindResponse interface. + */ +function instanceOfCargoesV1CargoesTransportBindResponse(value) { + return true; +} +function CargoesV1CargoesTransportBindResponseFromJSON(json) { + return CargoesV1CargoesTransportBindResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportBindResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportBindResponseErrorReasonsEnum_1.CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function CargoesV1CargoesTransportBindResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportBindResponseErrorReasonsEnum_1.CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..8d09bfb --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportBindResponseErrorReasonsEnum: { + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY: "TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY"; + readonly INVALID_SUPPLY_STATE: "INVALID_SUPPLY_STATE"; + readonly SUPPLY_IS_FINALIZED: "SUPPLY_IS_FINALIZED"; + readonly CARGO_IDS_NOT_FOUND: "CARGO_IDS_NOT_FOUND"; + readonly TRANSPORT_CARGO_IDS_NOT_FOUND: "TRANSPORT_CARGO_IDS_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; +}; +export type CargoesV1CargoesTransportBindResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportBindResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportBindResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportBindResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportBindResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportBindResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.js new file mode 100644 index 0000000..37bd38d --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindResponseErrorReasonsEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportBindResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportBindResponseErrorReasonsEnum = instanceOfCargoesV1CargoesTransportBindResponseErrorReasonsEnum; +exports.CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON = CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON = CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesTransportBindResponseErrorReasonsEnum = { + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR', + TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY: 'TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY', + INVALID_SUPPLY_STATE: 'INVALID_SUPPLY_STATE', + SUPPLY_IS_FINALIZED: 'SUPPLY_IS_FINALIZED', + CARGO_IDS_NOT_FOUND: 'CARGO_IDS_NOT_FOUND', + TRANSPORT_CARGO_IDS_NOT_FOUND: 'TRANSPORT_CARGO_IDS_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED' +}; +function instanceOfCargoesV1CargoesTransportBindResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesTransportBindResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportBindResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesTransportBindResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportBindResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportBindResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportBindStatusRequest.d.ts b/dist/models/CargoesV1CargoesTransportBindStatusRequest.d.ts new file mode 100644 index 0000000..606c423 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportBindStatusRequest + */ +export interface CargoesV1CargoesTransportBindStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/transport/bind](#operation/CargoesTransportBind). + * @type {string} + * @memberof CargoesV1CargoesTransportBindStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindStatusRequest(value: object): value is CargoesV1CargoesTransportBindStatusRequest; +export declare function CargoesV1CargoesTransportBindStatusRequestFromJSON(json: any): CargoesV1CargoesTransportBindStatusRequest; +export declare function CargoesV1CargoesTransportBindStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindStatusRequest; +export declare function CargoesV1CargoesTransportBindStatusRequestToJSON(value?: CargoesV1CargoesTransportBindStatusRequest | null): any; diff --git a/dist/models/CargoesV1CargoesTransportBindStatusRequest.js b/dist/models/CargoesV1CargoesTransportBindStatusRequest.js new file mode 100644 index 0000000..7590a26 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportBindStatusRequest = instanceOfCargoesV1CargoesTransportBindStatusRequest; +exports.CargoesV1CargoesTransportBindStatusRequestFromJSON = CargoesV1CargoesTransportBindStatusRequestFromJSON; +exports.CargoesV1CargoesTransportBindStatusRequestFromJSONTyped = CargoesV1CargoesTransportBindStatusRequestFromJSONTyped; +exports.CargoesV1CargoesTransportBindStatusRequestToJSON = CargoesV1CargoesTransportBindStatusRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesTransportBindStatusRequest interface. + */ +function instanceOfCargoesV1CargoesTransportBindStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function CargoesV1CargoesTransportBindStatusRequestFromJSON(json) { + return CargoesV1CargoesTransportBindStatusRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportBindStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function CargoesV1CargoesTransportBindStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesTransportBindStatusResponse.d.ts b/dist/models/CargoesV1CargoesTransportBindStatusResponse.d.ts new file mode 100644 index 0000000..105df45 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindStatusResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum } from './CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum'; +import type { CargoesV1CargoesTransportBindStatusResponseStatusEnum } from './CargoesV1CargoesTransportBindStatusResponseStatusEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportBindStatusResponse + */ +export interface CargoesV1CargoesTransportBindStatusResponse { + /** + * Ошибки связывания или отвязывания грузомест: + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — операция завершилась с ошибкой; + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR` — поставка не принадлежит юридическому лицу; + * - `TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY` — для поставки не включены транспортные грузоместа; + * - `INVALID_SUPPLY_STATE` — неверный статус поставки; + * - `SUPPLY_IS_FINALIZED` — нельзя редактировать поставку; + * - `CARGO_IDS_NOT_FOUND` — грузоместа не найдены; + * - `TRANSPORT_CARGO_IDS_NOT_FOUND` — траспортные грузоместа не найдены; + * - `ETTN_IS_UPLOADED` — нельзя редактировать поставку с загруженной эТТН. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportBindStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesTransportBindStatusResponseStatusEnum} + * @memberof CargoesV1CargoesTransportBindStatusResponse + */ + status?: CargoesV1CargoesTransportBindStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportBindStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportBindStatusResponse(value: object): value is CargoesV1CargoesTransportBindStatusResponse; +export declare function CargoesV1CargoesTransportBindStatusResponseFromJSON(json: any): CargoesV1CargoesTransportBindStatusResponse; +export declare function CargoesV1CargoesTransportBindStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindStatusResponse; +export declare function CargoesV1CargoesTransportBindStatusResponseToJSON(value?: CargoesV1CargoesTransportBindStatusResponse | null): any; diff --git a/dist/models/CargoesV1CargoesTransportBindStatusResponse.js b/dist/models/CargoesV1CargoesTransportBindStatusResponse.js new file mode 100644 index 0000000..bd230d4 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindStatusResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportBindStatusResponse = instanceOfCargoesV1CargoesTransportBindStatusResponse; +exports.CargoesV1CargoesTransportBindStatusResponseFromJSON = CargoesV1CargoesTransportBindStatusResponseFromJSON; +exports.CargoesV1CargoesTransportBindStatusResponseFromJSONTyped = CargoesV1CargoesTransportBindStatusResponseFromJSONTyped; +exports.CargoesV1CargoesTransportBindStatusResponseToJSON = CargoesV1CargoesTransportBindStatusResponseToJSON; +const CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum"); +const CargoesV1CargoesTransportBindStatusResponseStatusEnum_1 = require("./CargoesV1CargoesTransportBindStatusResponseStatusEnum"); +/** + * Check if a given object implements the CargoesV1CargoesTransportBindStatusResponse interface. + */ +function instanceOfCargoesV1CargoesTransportBindStatusResponse(value) { + return true; +} +function CargoesV1CargoesTransportBindStatusResponseFromJSON(json) { + return CargoesV1CargoesTransportBindStatusResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportBindStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum_1.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON)), + 'status': json['status'] == null ? undefined : (0, CargoesV1CargoesTransportBindStatusResponseStatusEnum_1.CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function CargoesV1CargoesTransportBindStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum_1.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON)), + 'status': (0, CargoesV1CargoesTransportBindStatusResponseStatusEnum_1.CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..cd9a0b4 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum: { + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY: "TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY"; + readonly INVALID_SUPPLY_STATE: "INVALID_SUPPLY_STATE"; + readonly SUPPLY_IS_FINALIZED: "SUPPLY_IS_FINALIZED"; + readonly CARGO_IDS_NOT_FOUND: "CARGO_IDS_NOT_FOUND"; + readonly TRANSPORT_CARGO_IDS_NOT_FOUND: "TRANSPORT_CARGO_IDS_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; +}; +export type CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..124602f --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum = instanceOfCargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum; +exports.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON = CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON = CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum = { + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR', + TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY: 'TRANSPORT_CARGOES_NOT_ENABLED_FOR_SUPPLY', + INVALID_SUPPLY_STATE: 'INVALID_SUPPLY_STATE', + SUPPLY_IS_FINALIZED: 'SUPPLY_IS_FINALIZED', + CARGO_IDS_NOT_FOUND: 'CARGO_IDS_NOT_FOUND', + TRANSPORT_CARGO_IDS_NOT_FOUND: 'TRANSPORT_CARGO_IDS_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED' +}; +function instanceOfCargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.d.ts b/dist/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..52400da --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус связывания или отвязывания грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesTransportBindStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesTransportBindStatusResponseStatusEnum = typeof CargoesV1CargoesTransportBindStatusResponseStatusEnum[keyof typeof CargoesV1CargoesTransportBindStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesTransportBindStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesTransportBindStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportBindStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesTransportBindStatusResponseStatusEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.js b/dist/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.js new file mode 100644 index 0000000..c93c934 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportBindStatusResponseStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportBindStatusResponseStatusEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportBindStatusResponseStatusEnum = instanceOfCargoesV1CargoesTransportBindStatusResponseStatusEnum; +exports.CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON = CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON; +exports.CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSONTyped = CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSONTyped; +exports.CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON = CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON; +/** + * Статус связывания или отвязывания грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +exports.CargoesV1CargoesTransportBindStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfCargoesV1CargoesTransportBindStatusResponseStatusEnum(value) { + for (const key in exports.CargoesV1CargoesTransportBindStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportBindStatusResponseStatusEnum, key)) { + if (exports.CargoesV1CargoesTransportBindStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportBindStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportBindStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateRequest.d.ts b/dist/models/CargoesV1CargoesTransportCreateRequest.d.ts new file mode 100644 index 0000000..2d50626 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateRequestTransportCargoes } from './CargoesV1CargoesTransportCreateRequestTransportCargoes'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateRequest + */ +export interface CargoesV1CargoesTransportCreateRequest { + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV1CargoesTransportCreateRequest + */ + supply_id: number; + /** + * Количество транспортных грузомест по типам. + * @type {Array} + * @memberof CargoesV1CargoesTransportCreateRequest + */ + transport_cargoes: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateRequest(value: object): value is CargoesV1CargoesTransportCreateRequest; +export declare function CargoesV1CargoesTransportCreateRequestFromJSON(json: any): CargoesV1CargoesTransportCreateRequest; +export declare function CargoesV1CargoesTransportCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateRequest; +export declare function CargoesV1CargoesTransportCreateRequestToJSON(value?: CargoesV1CargoesTransportCreateRequest | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateRequest.js b/dist/models/CargoesV1CargoesTransportCreateRequest.js new file mode 100644 index 0000000..915fcd6 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportCreateRequest = instanceOfCargoesV1CargoesTransportCreateRequest; +exports.CargoesV1CargoesTransportCreateRequestFromJSON = CargoesV1CargoesTransportCreateRequestFromJSON; +exports.CargoesV1CargoesTransportCreateRequestFromJSONTyped = CargoesV1CargoesTransportCreateRequestFromJSONTyped; +exports.CargoesV1CargoesTransportCreateRequestToJSON = CargoesV1CargoesTransportCreateRequestToJSON; +const CargoesV1CargoesTransportCreateRequestTransportCargoes_1 = require("./CargoesV1CargoesTransportCreateRequestTransportCargoes"); +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateRequest interface. + */ +function instanceOfCargoesV1CargoesTransportCreateRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('transport_cargoes' in value) || value['transport_cargoes'] === undefined) + return false; + return true; +} +function CargoesV1CargoesTransportCreateRequestFromJSON(json) { + return CargoesV1CargoesTransportCreateRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + 'transport_cargoes': (json['transport_cargoes'].map(CargoesV1CargoesTransportCreateRequestTransportCargoes_1.CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON)), + }; +} +function CargoesV1CargoesTransportCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + 'transport_cargoes': (value['transport_cargoes'].map(CargoesV1CargoesTransportCreateRequestTransportCargoes_1.CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON)), + }; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.d.ts b/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.d.ts new file mode 100644 index 0000000..4ae2a9e --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum } from './CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateRequestTransportCargoes + */ +export interface CargoesV1CargoesTransportCreateRequestTransportCargoes { + /** + * Количество транспортных грузомест. + * @type {number} + * @memberof CargoesV1CargoesTransportCreateRequestTransportCargoes + */ + count: number; + /** + * + * @type {CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum} + * @memberof CargoesV1CargoesTransportCreateRequestTransportCargoes + */ + type: CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateRequestTransportCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoes(value: object): value is CargoesV1CargoesTransportCreateRequestTransportCargoes; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON(json: any): CargoesV1CargoesTransportCreateRequestTransportCargoes; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateRequestTransportCargoes; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON(value?: CargoesV1CargoesTransportCreateRequestTransportCargoes | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.js b/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.js new file mode 100644 index 0000000..7bca9a1 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoes.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoes = instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoes; +exports.CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON = CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON; +exports.CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSONTyped = CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSONTyped; +exports.CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON = CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON; +const CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum_1 = require("./CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum"); +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateRequestTransportCargoes interface. + */ +function instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoes(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSON(json) { + return CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateRequestTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'type': (0, CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum_1.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON)(json['type']), + }; +} +function CargoesV1CargoesTransportCreateRequestTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'type': (0, CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum_1.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.d.ts b/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.d.ts new file mode 100644 index 0000000..25d2596 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum: { + readonly PALLET: "PALLET"; +}; +export type CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum = typeof CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum[keyof typeof CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON(json: any): CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum; +export declare function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON(value?: CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.js b/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.js new file mode 100644 index 0000000..cabc0dc --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum = instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum; +exports.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON = CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON; +exports.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSONTyped = CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSONTyped; +exports.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON = CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON; +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +exports.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum = { + PALLET: 'PALLET' +}; +function instanceOfCargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum(value) { + for (const key in exports.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum, key)) { + if (exports.CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateResponse.d.ts b/dist/models/CargoesV1CargoesTransportCreateResponse.d.ts new file mode 100644 index 0000000..9fbeaa9 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateResponse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateResponseErrorReasonsEnum } from './CargoesV1CargoesTransportCreateResponseErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateResponse + */ +export interface CargoesV1CargoesTransportCreateResponse { + /** + * Ошибки при создании транспортных грузомест: + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `WAREHOUSE_LIMITS_EXCEED` — превышены лимиты склада; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — заявка на поставку не принадлежит юридическому лицу; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `PALLET_SUPPLY_CONTAINS_BOXES` — палетная поставка не может содержать коробки; + * - `SUPPLY_CARGOES_IS_FINALIZED` — нельзя редактировать заявку на поставку; + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `ETTN_IS_UPLOADED` — нельзя редактировать поставку с загруженной эТТН; + * - `BOX_SUPPLY_CONTAINS_PALLETS` — поставка может содержать только коробки; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportCreateResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. Получите статус операции методом [/v1/cargoes/transport/create/status](#operation/CargoesTransportCreateStatus). + * @type {string} + * @memberof CargoesV1CargoesTransportCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateResponse(value: object): value is CargoesV1CargoesTransportCreateResponse; +export declare function CargoesV1CargoesTransportCreateResponseFromJSON(json: any): CargoesV1CargoesTransportCreateResponse; +export declare function CargoesV1CargoesTransportCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateResponse; +export declare function CargoesV1CargoesTransportCreateResponseToJSON(value?: CargoesV1CargoesTransportCreateResponse | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateResponse.js b/dist/models/CargoesV1CargoesTransportCreateResponse.js new file mode 100644 index 0000000..f7efeef --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportCreateResponse = instanceOfCargoesV1CargoesTransportCreateResponse; +exports.CargoesV1CargoesTransportCreateResponseFromJSON = CargoesV1CargoesTransportCreateResponseFromJSON; +exports.CargoesV1CargoesTransportCreateResponseFromJSONTyped = CargoesV1CargoesTransportCreateResponseFromJSONTyped; +exports.CargoesV1CargoesTransportCreateResponseToJSON = CargoesV1CargoesTransportCreateResponseToJSON; +const CargoesV1CargoesTransportCreateResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesTransportCreateResponseErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateResponse interface. + */ +function instanceOfCargoesV1CargoesTransportCreateResponse(value) { + return true; +} +function CargoesV1CargoesTransportCreateResponseFromJSON(json) { + return CargoesV1CargoesTransportCreateResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportCreateResponseErrorReasonsEnum_1.CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function CargoesV1CargoesTransportCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportCreateResponseErrorReasonsEnum_1.CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..10cb6ae --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateResponseErrorReasonsEnum: { + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly WAREHOUSE_LIMITS_EXCEED: "WAREHOUSE_LIMITS_EXCEED"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly PALLET_SUPPLY_CONTAINS_BOXES: "PALLET_SUPPLY_CONTAINS_BOXES"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; + readonly BOX_SUPPLY_CONTAINS_PALLETS: "BOX_SUPPLY_CONTAINS_PALLETS"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesTransportCreateResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportCreateResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportCreateResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportCreateResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.js new file mode 100644 index 0000000..f665896 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateResponseErrorReasonsEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportCreateResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportCreateResponseErrorReasonsEnum = instanceOfCargoesV1CargoesTransportCreateResponseErrorReasonsEnum; +exports.CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON = CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON = CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesTransportCreateResponseErrorReasonsEnum = { + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + WAREHOUSE_LIMITS_EXCEED: 'WAREHOUSE_LIMITS_EXCEED', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + PALLET_SUPPLY_CONTAINS_BOXES: 'PALLET_SUPPLY_CONTAINS_BOXES', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED', + BOX_SUPPLY_CONTAINS_PALLETS: 'BOX_SUPPLY_CONTAINS_PALLETS', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfCargoesV1CargoesTransportCreateResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesTransportCreateResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportCreateResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesTransportCreateResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportCreateResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusRequest.d.ts b/dist/models/CargoesV1CargoesTransportCreateStatusRequest.d.ts new file mode 100644 index 0000000..2342244 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateStatusRequest + */ +export interface CargoesV1CargoesTransportCreateStatusRequest { + /** + * Идентификатор операции из метода [/v1/cargoes/transport/create](#operation/CargoesTransportCreate). + * @type {string} + * @memberof CargoesV1CargoesTransportCreateStatusRequest + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusRequest interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateStatusRequest(value: object): value is CargoesV1CargoesTransportCreateStatusRequest; +export declare function CargoesV1CargoesTransportCreateStatusRequestFromJSON(json: any): CargoesV1CargoesTransportCreateStatusRequest; +export declare function CargoesV1CargoesTransportCreateStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusRequest; +export declare function CargoesV1CargoesTransportCreateStatusRequestToJSON(value?: CargoesV1CargoesTransportCreateStatusRequest | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusRequest.js b/dist/models/CargoesV1CargoesTransportCreateStatusRequest.js new file mode 100644 index 0000000..78ea82d --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportCreateStatusRequest = instanceOfCargoesV1CargoesTransportCreateStatusRequest; +exports.CargoesV1CargoesTransportCreateStatusRequestFromJSON = CargoesV1CargoesTransportCreateStatusRequestFromJSON; +exports.CargoesV1CargoesTransportCreateStatusRequestFromJSONTyped = CargoesV1CargoesTransportCreateStatusRequestFromJSONTyped; +exports.CargoesV1CargoesTransportCreateStatusRequestToJSON = CargoesV1CargoesTransportCreateStatusRequestToJSON; +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusRequest interface. + */ +function instanceOfCargoesV1CargoesTransportCreateStatusRequest(value) { + return true; +} +function CargoesV1CargoesTransportCreateStatusRequestFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusRequestFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function CargoesV1CargoesTransportCreateStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponse.d.ts b/dist/models/CargoesV1CargoesTransportCreateStatusResponse.d.ts new file mode 100644 index 0000000..c32a00d --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponse.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum } from './CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum'; +import type { CargoesV1CargoesTransportCreateStatusResponseResult } from './CargoesV1CargoesTransportCreateStatusResponseResult'; +import type { CargoesV1CargoesTransportCreateStatusResponseStatusEnum } from './CargoesV1CargoesTransportCreateStatusResponseStatusEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateStatusResponse + */ +export interface CargoesV1CargoesTransportCreateStatusResponse { + /** + * Ошибки при создании транспортных грузомест: + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `WAREHOUSE_LIMITS_EXCEED` — превышены лимиты склада; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — заявка на поставку не принадлежит юридическому лицу; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `PALLET_SUPPLY_CONTAINS_BOXES` — палетная поставка не может содержать коробки; + * - `SUPPLY_CARGOES_IS_FINALIZED` — нельзя редактировать заявку на поставку; + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `ETTN_IS_UPLOADED` — нельзя редактировать поставку с загруженной эТТН; + * - `BOX_SUPPLY_CONTAINS_PALLETS` — поставка может содержать только коробки; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV1CargoesTransportCreateStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {CargoesV1CargoesTransportCreateStatusResponseResult} + * @memberof CargoesV1CargoesTransportCreateStatusResponse + */ + result?: CargoesV1CargoesTransportCreateStatusResponseResult; + /** + * + * @type {CargoesV1CargoesTransportCreateStatusResponseStatusEnum} + * @memberof CargoesV1CargoesTransportCreateStatusResponse + */ + status?: CargoesV1CargoesTransportCreateStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponse interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponse(value: object): value is CargoesV1CargoesTransportCreateStatusResponse; +export declare function CargoesV1CargoesTransportCreateStatusResponseFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponse; +export declare function CargoesV1CargoesTransportCreateStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponse; +export declare function CargoesV1CargoesTransportCreateStatusResponseToJSON(value?: CargoesV1CargoesTransportCreateStatusResponse | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponse.js b/dist/models/CargoesV1CargoesTransportCreateStatusResponse.js new file mode 100644 index 0000000..934ea43 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportCreateStatusResponse = instanceOfCargoesV1CargoesTransportCreateStatusResponse; +exports.CargoesV1CargoesTransportCreateStatusResponseFromJSON = CargoesV1CargoesTransportCreateStatusResponseFromJSON; +exports.CargoesV1CargoesTransportCreateStatusResponseFromJSONTyped = CargoesV1CargoesTransportCreateStatusResponseFromJSONTyped; +exports.CargoesV1CargoesTransportCreateStatusResponseToJSON = CargoesV1CargoesTransportCreateStatusResponseToJSON; +const CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum_1 = require("./CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum"); +const CargoesV1CargoesTransportCreateStatusResponseResult_1 = require("./CargoesV1CargoesTransportCreateStatusResponseResult"); +const CargoesV1CargoesTransportCreateStatusResponseStatusEnum_1 = require("./CargoesV1CargoesTransportCreateStatusResponseStatusEnum"); +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponse interface. + */ +function instanceOfCargoesV1CargoesTransportCreateStatusResponse(value) { + return true; +} +function CargoesV1CargoesTransportCreateStatusResponseFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum_1.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON)), + 'result': json['result'] == null ? undefined : (0, CargoesV1CargoesTransportCreateStatusResponseResult_1.CargoesV1CargoesTransportCreateStatusResponseResultFromJSON)(json['result']), + 'status': json['status'] == null ? undefined : (0, CargoesV1CargoesTransportCreateStatusResponseStatusEnum_1.CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function CargoesV1CargoesTransportCreateStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum_1.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON)), + 'result': (0, CargoesV1CargoesTransportCreateStatusResponseResult_1.CargoesV1CargoesTransportCreateStatusResponseResultToJSON)(value['result']), + 'status': (0, CargoesV1CargoesTransportCreateStatusResponseStatusEnum_1.CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.d.ts b/dist/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..68b97eb --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum: { + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly WAREHOUSE_LIMITS_EXCEED: "WAREHOUSE_LIMITS_EXCEED"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly PALLET_SUPPLY_CONTAINS_BOXES: "PALLET_SUPPLY_CONTAINS_BOXES"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; + readonly BOX_SUPPLY_CONTAINS_PALLETS: "BOX_SUPPLY_CONTAINS_PALLETS"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum = typeof CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum[keyof typeof CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.js b/dist/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.js new file mode 100644 index 0000000..a3bff7f --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum = instanceOfCargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum; +exports.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON = CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON; +exports.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSONTyped = CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSONTyped; +exports.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON = CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum = { + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + WAREHOUSE_LIMITS_EXCEED: 'WAREHOUSE_LIMITS_EXCEED', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + PALLET_SUPPLY_CONTAINS_BOXES: 'PALLET_SUPPLY_CONTAINS_BOXES', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED', + BOX_SUPPLY_CONTAINS_PALLETS: 'BOX_SUPPLY_CONTAINS_PALLETS', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfCargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum(value) { + for (const key in exports.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum, key)) { + if (exports.CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseResult.d.ts b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResult.d.ts new file mode 100644 index 0000000..8d4aba7 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes } from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes'; +/** + * Созданные транспортные грузоместа. + * @export + * @interface CargoesV1CargoesTransportCreateStatusResponseResult + */ +export interface CargoesV1CargoesTransportCreateStatusResponseResult { + /** + * Информация о созданных транспортных грузоместах. + * @type {Array} + * @memberof CargoesV1CargoesTransportCreateStatusResponseResult + */ + transport_cargoes?: Array; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponseResult interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseResult(value: object): value is CargoesV1CargoesTransportCreateStatusResponseResult; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseResult; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseResult; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseResult | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseResult.js b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResult.js new file mode 100644 index 0000000..83eb845 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResult.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportCreateStatusResponseResult = instanceOfCargoesV1CargoesTransportCreateStatusResponseResult; +exports.CargoesV1CargoesTransportCreateStatusResponseResultFromJSON = CargoesV1CargoesTransportCreateStatusResponseResultFromJSON; +exports.CargoesV1CargoesTransportCreateStatusResponseResultFromJSONTyped = CargoesV1CargoesTransportCreateStatusResponseResultFromJSONTyped; +exports.CargoesV1CargoesTransportCreateStatusResponseResultToJSON = CargoesV1CargoesTransportCreateStatusResponseResultToJSON; +const CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes_1 = require("./CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes"); +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponseResult interface. + */ +function instanceOfCargoesV1CargoesTransportCreateStatusResponseResult(value) { + return true; +} +function CargoesV1CargoesTransportCreateStatusResponseResultFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseResultFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'transport_cargoes': json['transport_cargoes'] == null ? undefined : (json['transport_cargoes'].map(CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes_1.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON)), + }; +} +function CargoesV1CargoesTransportCreateStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'transport_cargoes': value['transport_cargoes'] == null ? undefined : (value['transport_cargoes'].map(CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes_1.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON)), + }; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.d.ts b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.d.ts new file mode 100644 index 0000000..88f71b3 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum } from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes + */ +export interface CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes { + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes + */ + id?: number; + /** + * + * @type {CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum} + * @memberof CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes + */ + type?: CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes interface. + */ +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes(value: object): value is CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.js b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.js new file mode 100644 index 0000000..d9e5790 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes = instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes; +exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON = CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON; +exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSONTyped = CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSONTyped; +exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON = CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON; +const CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum_1 = require("./CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum"); +/** + * Check if a given object implements the CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes interface. + */ +function instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes(value) { + return true; +} +function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'type': json['type'] == null ? undefined : (0, CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum_1.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON)(json['type']), + }; +} +function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'type': (0, CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum_1.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.d.ts b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.d.ts new file mode 100644 index 0000000..837c0d7 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum: { + readonly PALLET: "PALLET"; +}; +export type CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum = typeof CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum[keyof typeof CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.js b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.js new file mode 100644 index 0000000..0e78163 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum = instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum; +exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON = CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON; +exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSONTyped = CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSONTyped; +exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON = CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON; +/** + * Тип транспортного грузоместа: `PALLET` — палета. + * + * @export + */ +exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum = { + PALLET: 'PALLET' +}; +function instanceOfCargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum(value) { + for (const key in exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum, key)) { + if (exports.CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.d.ts b/dist/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..74127d5 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания транспортных грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const CargoesV1CargoesTransportCreateStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV1CargoesTransportCreateStatusResponseStatusEnum = typeof CargoesV1CargoesTransportCreateStatusResponseStatusEnum[keyof typeof CargoesV1CargoesTransportCreateStatusResponseStatusEnum]; +export declare function instanceOfCargoesV1CargoesTransportCreateStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON(json: any): CargoesV1CargoesTransportCreateStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV1CargoesTransportCreateStatusResponseStatusEnum; +export declare function CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON(value?: CargoesV1CargoesTransportCreateStatusResponseStatusEnum | null): any; diff --git a/dist/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.js b/dist/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.js new file mode 100644 index 0000000..1491c20 --- /dev/null +++ b/dist/models/CargoesV1CargoesTransportCreateStatusResponseStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV1CargoesTransportCreateStatusResponseStatusEnum = void 0; +exports.instanceOfCargoesV1CargoesTransportCreateStatusResponseStatusEnum = instanceOfCargoesV1CargoesTransportCreateStatusResponseStatusEnum; +exports.CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON = CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON; +exports.CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSONTyped = CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSONTyped; +exports.CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON = CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON; +/** + * Статус создания транспортных грузомест: + * - `SUCCESS` — успешно; + * - `IN_PROGRESS` — в процессе; + * - `FAILED` — ошибка. + * + * @export + */ +exports.CargoesV1CargoesTransportCreateStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfCargoesV1CargoesTransportCreateStatusResponseStatusEnum(value) { + for (const key in exports.CargoesV1CargoesTransportCreateStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV1CargoesTransportCreateStatusResponseStatusEnum, key)) { + if (exports.CargoesV1CargoesTransportCreateStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSON(json) { + return CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSONTyped(json, false); +} +function CargoesV1CargoesTransportCreateStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV1CargoesTransportCreateStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesDeleteRequest.d.ts b/dist/models/CargoesV2CargoesDeleteRequest.d.ts new file mode 100644 index 0000000..3c3aab2 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum } from './CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteRequest + */ +export interface CargoesV2CargoesDeleteRequest { + /** + * Список идентификаторов грузомест, которые нужно удалить. + * @type {Array} + * @memberof CargoesV2CargoesDeleteRequest + */ + cargo_ids?: Array; + /** + * Идентификатор поставки. Получите значение параметра методом [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {number} + * @memberof CargoesV2CargoesDeleteRequest + */ + supply_id: number; + /** + * + * @type {CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum} + * @memberof CargoesV2CargoesDeleteRequest + */ + transport_cargo_deletion_type: CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum; + /** + * Список идентификаторов транспортных грузомест, которые нужно удалить. + * @type {Array} + * @memberof CargoesV2CargoesDeleteRequest + */ + transport_cargo_ids?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteRequest interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteRequest(value: object): value is CargoesV2CargoesDeleteRequest; +export declare function CargoesV2CargoesDeleteRequestFromJSON(json: any): CargoesV2CargoesDeleteRequest; +export declare function CargoesV2CargoesDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteRequest; +export declare function CargoesV2CargoesDeleteRequestToJSON(value?: CargoesV2CargoesDeleteRequest | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteRequest.js b/dist/models/CargoesV2CargoesDeleteRequest.js new file mode 100644 index 0000000..11bdf69 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteRequest = instanceOfCargoesV2CargoesDeleteRequest; +exports.CargoesV2CargoesDeleteRequestFromJSON = CargoesV2CargoesDeleteRequestFromJSON; +exports.CargoesV2CargoesDeleteRequestFromJSONTyped = CargoesV2CargoesDeleteRequestFromJSONTyped; +exports.CargoesV2CargoesDeleteRequestToJSON = CargoesV2CargoesDeleteRequestToJSON; +const CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum_1 = require("./CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteRequest interface. + */ +function instanceOfCargoesV2CargoesDeleteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('transport_cargo_deletion_type' in value) || value['transport_cargo_deletion_type'] === undefined) + return false; + return true; +} +function CargoesV2CargoesDeleteRequestFromJSON(json) { + return CargoesV2CargoesDeleteRequestFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_ids': json['cargo_ids'] == null ? undefined : json['cargo_ids'], + 'supply_id': json['supply_id'], + 'transport_cargo_deletion_type': (0, CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum_1.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON)(json['transport_cargo_deletion_type']), + 'transport_cargo_ids': json['transport_cargo_ids'] == null ? undefined : json['transport_cargo_ids'], + }; +} +function CargoesV2CargoesDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_ids': value['cargo_ids'], + 'supply_id': value['supply_id'], + 'transport_cargo_deletion_type': (0, CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum_1.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON)(value['transport_cargo_deletion_type']), + 'transport_cargo_ids': value['transport_cargo_ids'], + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.d.ts b/dist/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.d.ts new file mode 100644 index 0000000..83220b4 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип удаления транспортного грузоместа: + * - `UNBIND_CONTAINED_CARGOES` — удалить только транспортное грузоместо и отвязать от него все грузоместа; + * - `DELETE_CONTAINED_CARGOES` — удалить транспортное грузоместо вместе с грузоместами. + * + * @export + */ +export declare const CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum: { + readonly UNBIND_CONTAINED_CARGOES: "UNBIND_CONTAINED_CARGOES"; + readonly DELETE_CONTAINED_CARGOES: "DELETE_CONTAINED_CARGOES"; +}; +export type CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum = typeof CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum[keyof typeof CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum]; +export declare function instanceOfCargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON(json: any): CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum; +export declare function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum; +export declare function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON(value?: CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.js b/dist/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.js new file mode 100644 index 0000000..aae8b42 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum = void 0; +exports.instanceOfCargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum = instanceOfCargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum; +exports.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON = CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON; +exports.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSONTyped = CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSONTyped; +exports.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON = CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON; +/** + * Тип удаления транспортного грузоместа: + * - `UNBIND_CONTAINED_CARGOES` — удалить только транспортное грузоместо и отвязать от него все грузоместа; + * - `DELETE_CONTAINED_CARGOES` — удалить транспортное грузоместо вместе с грузоместами. + * + * @export + */ +exports.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum = { + UNBIND_CONTAINED_CARGOES: 'UNBIND_CONTAINED_CARGOES', + DELETE_CONTAINED_CARGOES: 'DELETE_CONTAINED_CARGOES' +}; +function instanceOfCargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum(value) { + for (const key in exports.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum, key)) { + if (exports.CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSON(json) { + return CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesDeleteResponse.d.ts b/dist/models/CargoesV2CargoesDeleteResponse.d.ts new file mode 100644 index 0000000..b04eaa0 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteResponseErrors } from './CargoesV2CargoesDeleteResponseErrors'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteResponse + */ +export interface CargoesV2CargoesDeleteResponse { + /** + * + * @type {CargoesV2CargoesDeleteResponseErrors} + * @memberof CargoesV2CargoesDeleteResponse + */ + errors?: CargoesV2CargoesDeleteResponseErrors; + /** + * Идентификатор операции. Получите статус операции методом [/v2/cargoes/delete/status](#operation/CargoesDeleteStatusV2). + * @type {string} + * @memberof CargoesV2CargoesDeleteResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponse interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteResponse(value: object): value is CargoesV2CargoesDeleteResponse; +export declare function CargoesV2CargoesDeleteResponseFromJSON(json: any): CargoesV2CargoesDeleteResponse; +export declare function CargoesV2CargoesDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponse; +export declare function CargoesV2CargoesDeleteResponseToJSON(value?: CargoesV2CargoesDeleteResponse | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteResponse.js b/dist/models/CargoesV2CargoesDeleteResponse.js new file mode 100644 index 0000000..507788b --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteResponse = instanceOfCargoesV2CargoesDeleteResponse; +exports.CargoesV2CargoesDeleteResponseFromJSON = CargoesV2CargoesDeleteResponseFromJSON; +exports.CargoesV2CargoesDeleteResponseFromJSONTyped = CargoesV2CargoesDeleteResponseFromJSONTyped; +exports.CargoesV2CargoesDeleteResponseToJSON = CargoesV2CargoesDeleteResponseToJSON; +const CargoesV2CargoesDeleteResponseErrors_1 = require("./CargoesV2CargoesDeleteResponseErrors"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponse interface. + */ +function instanceOfCargoesV2CargoesDeleteResponse(value) { + return true; +} +function CargoesV2CargoesDeleteResponseFromJSON(json) { + return CargoesV2CargoesDeleteResponseFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (0, CargoesV2CargoesDeleteResponseErrors_1.CargoesV2CargoesDeleteResponseErrorsFromJSON)(json['errors']), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function CargoesV2CargoesDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': (0, CargoesV2CargoesDeleteResponseErrors_1.CargoesV2CargoesDeleteResponseErrorsToJSON)(value['errors']), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrors.d.ts b/dist/models/CargoesV2CargoesDeleteResponseErrors.d.ts new file mode 100644 index 0000000..e61f62a --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrors.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum } from './CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum'; +import type { CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons } from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons'; +import type { CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons } from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons'; +/** + * Ошибки. + * @export + * @interface CargoesV2CargoesDeleteResponseErrors + */ +export interface CargoesV2CargoesDeleteResponseErrors { + /** + * Ошибки при удалении грузомест. + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrors + */ + cargo_error_reasons?: Array; + /** + * Ошибки поставки: + * - `UNSPECIFIED` — не определена; + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `CANT_DELETE_ALL_CARGOES` — нельзя удалять все грузоместа; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — не принадлежит вашему юридическому лицу; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — не принадлежит вашему кабинету; + * - `SUPPLY_CARGOES_IS_FINALIZED` — грузоместа поставки нельзя редактировать; + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `ETTN_IS_UPLOADED` — электронная ТТН загружена; + * - `CANT_DELETE_ALL_TRANSPORT_CARGOES` — нельзя удалять все транспортные грузоместа; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrors + */ + supply_error_reasons?: Array; + /** + * Ошибки при удалении транспортных грузомест. + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrors + */ + transport_cargo_error_reasons?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrors interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteResponseErrors(value: object): value is CargoesV2CargoesDeleteResponseErrors; +export declare function CargoesV2CargoesDeleteResponseErrorsFromJSON(json: any): CargoesV2CargoesDeleteResponseErrors; +export declare function CargoesV2CargoesDeleteResponseErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrors; +export declare function CargoesV2CargoesDeleteResponseErrorsToJSON(value?: CargoesV2CargoesDeleteResponseErrors | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrors.js b/dist/models/CargoesV2CargoesDeleteResponseErrors.js new file mode 100644 index 0000000..f043b6d --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrors.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteResponseErrors = instanceOfCargoesV2CargoesDeleteResponseErrors; +exports.CargoesV2CargoesDeleteResponseErrorsFromJSON = CargoesV2CargoesDeleteResponseErrorsFromJSON; +exports.CargoesV2CargoesDeleteResponseErrorsFromJSONTyped = CargoesV2CargoesDeleteResponseErrorsFromJSONTyped; +exports.CargoesV2CargoesDeleteResponseErrorsToJSON = CargoesV2CargoesDeleteResponseErrorsToJSON; +const CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum_1 = require("./CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum"); +const CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons_1 = require("./CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons"); +const CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons_1 = require("./CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrors interface. + */ +function instanceOfCargoesV2CargoesDeleteResponseErrors(value) { + return true; +} +function CargoesV2CargoesDeleteResponseErrorsFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteResponseErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_error_reasons': json['cargo_error_reasons'] == null ? undefined : (json['cargo_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons_1.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON)), + 'supply_error_reasons': json['supply_error_reasons'] == null ? undefined : (json['supply_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum_1.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON)), + 'transport_cargo_error_reasons': json['transport_cargo_error_reasons'] == null ? undefined : (json['transport_cargo_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons_1.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON)), + }; +} +function CargoesV2CargoesDeleteResponseErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_error_reasons': value['cargo_error_reasons'] == null ? undefined : (value['cargo_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons_1.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON)), + 'supply_error_reasons': value['supply_error_reasons'] == null ? undefined : (value['supply_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum_1.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON)), + 'transport_cargo_error_reasons': value['transport_cargo_error_reasons'] == null ? undefined : (value['transport_cargo_error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons_1.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON)), + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.d.ts b/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.d.ts new file mode 100644 index 0000000..f8f4a42 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum } from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons + */ +export interface CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons + */ + cargo_id?: number; + /** + * Список ошибок грузоместа: + * - `UNSPECIFIED` — не определена; + * - `CARGO_NOT_FOUND` — грузоместо не найдено. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasons(value: object): value is CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON(value?: CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.js b/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.js new file mode 100644 index 0000000..f17af7f --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasons = instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasons; +exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON = CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON; +exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSONTyped = CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSONTyped; +exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON = CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON; +const CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum_1 = require("./CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons interface. + */ +function instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasons(value) { + return true; +} +function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum_1.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON)), + }; +} +function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum_1.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON)), + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts b/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts new file mode 100644 index 0000000..3ac9789 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum = typeof CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.js b/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.js new file mode 100644 index 0000000..9faf519 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum = void 0; +exports.instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum = instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum; +exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON = CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON; +exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped = CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped; +exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON = CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +function instanceOfCargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum(value) { + for (const key in exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum, key)) { + if (exports.CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.d.ts b/dist/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.d.ts new file mode 100644 index 0000000..24f8493 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly CANT_DELETE_ALL_CARGOES: "CANT_DELETE_ALL_CARGOES"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; + readonly CANT_DELETE_ALL_TRANSPORT_CARGOES: "CANT_DELETE_ALL_TRANSPORT_CARGOES"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum = typeof CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.js b/dist/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.js new file mode 100644 index 0000000..50f009c --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum = void 0; +exports.instanceOfCargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum = instanceOfCargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum; +exports.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON = CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON; +exports.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSONTyped = CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSONTyped; +exports.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON = CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + CANT_DELETE_ALL_CARGOES: 'CANT_DELETE_ALL_CARGOES', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED', + CANT_DELETE_ALL_TRANSPORT_CARGOES: 'CANT_DELETE_ALL_TRANSPORT_CARGOES', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfCargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum(value) { + for (const key in exports.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum, key)) { + if (exports.CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.d.ts b/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.d.ts new file mode 100644 index 0000000..08aa1fe --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum } from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons + */ +export interface CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons { + /** + * Список ошибок транспортного грузоместа: + * - `UNSPECIFIED` — не определена; + * - `CARGO_NOT_FOUND` — транспортное грузоместо не найдено. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons + */ + error_reasons?: Array; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons + */ + transport_cargo_id?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons(value: object): value is CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON(value?: CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.js b/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.js new file mode 100644 index 0000000..bd5aaed --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons = instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons; +exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON = CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON; +exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSONTyped = CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSONTyped; +exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON = CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON; +const CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum_1 = require("./CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons interface. + */ +function instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons(value) { + return true; +} +function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum_1.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON)), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + }; +} +function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum_1.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON)), + 'transport_cargo_id': value['transport_cargo_id'], + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts b/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts new file mode 100644 index 0000000..297c586 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = typeof CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js b/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js new file mode 100644 index 0000000..5cfd439 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = void 0; +exports.instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON = CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON; +exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped = CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped; +exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON = CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +function instanceOfCargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum(value) { + for (const key in exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum, key)) { + if (exports.CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusRequest.d.ts b/dist/models/CargoesV2CargoesDeleteStatusRequest.d.ts new file mode 100644 index 0000000..0fb261f --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV2CargoesDeleteStatusRequest + */ +export interface CargoesV2CargoesDeleteStatusRequest { + /** + * Идентификатор операции из метода [/v2/cargoes/delete](#operation/CargoesDeleteV2). + * @type {string} + * @memberof CargoesV2CargoesDeleteStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusRequest interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusRequest(value: object): value is CargoesV2CargoesDeleteStatusRequest; +export declare function CargoesV2CargoesDeleteStatusRequestFromJSON(json: any): CargoesV2CargoesDeleteStatusRequest; +export declare function CargoesV2CargoesDeleteStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusRequest; +export declare function CargoesV2CargoesDeleteStatusRequestToJSON(value?: CargoesV2CargoesDeleteStatusRequest | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusRequest.js b/dist/models/CargoesV2CargoesDeleteStatusRequest.js new file mode 100644 index 0000000..b1246ba --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteStatusRequest = instanceOfCargoesV2CargoesDeleteStatusRequest; +exports.CargoesV2CargoesDeleteStatusRequestFromJSON = CargoesV2CargoesDeleteStatusRequestFromJSON; +exports.CargoesV2CargoesDeleteStatusRequestFromJSONTyped = CargoesV2CargoesDeleteStatusRequestFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusRequestToJSON = CargoesV2CargoesDeleteStatusRequestToJSON; +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusRequest interface. + */ +function instanceOfCargoesV2CargoesDeleteStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function CargoesV2CargoesDeleteStatusRequestFromJSON(json) { + return CargoesV2CargoesDeleteStatusRequestFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function CargoesV2CargoesDeleteStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponse.d.ts b/dist/models/CargoesV2CargoesDeleteStatusResponse.d.ts new file mode 100644 index 0000000..8530621 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteStatusResponseErrors } from './CargoesV2CargoesDeleteStatusResponseErrors'; +import type { CargoesV2CargoesDeleteStatusResponseStatusEnum } from './CargoesV2CargoesDeleteStatusResponseStatusEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteStatusResponse + */ +export interface CargoesV2CargoesDeleteStatusResponse { + /** + * + * @type {CargoesV2CargoesDeleteStatusResponseErrors} + * @memberof CargoesV2CargoesDeleteStatusResponse + */ + errors?: CargoesV2CargoesDeleteStatusResponseErrors; + /** + * + * @type {CargoesV2CargoesDeleteStatusResponseStatusEnum} + * @memberof CargoesV2CargoesDeleteStatusResponse + */ + status?: CargoesV2CargoesDeleteStatusResponseStatusEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponse interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusResponse(value: object): value is CargoesV2CargoesDeleteStatusResponse; +export declare function CargoesV2CargoesDeleteStatusResponseFromJSON(json: any): CargoesV2CargoesDeleteStatusResponse; +export declare function CargoesV2CargoesDeleteStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponse; +export declare function CargoesV2CargoesDeleteStatusResponseToJSON(value?: CargoesV2CargoesDeleteStatusResponse | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponse.js b/dist/models/CargoesV2CargoesDeleteStatusResponse.js new file mode 100644 index 0000000..ac16c23 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteStatusResponse = instanceOfCargoesV2CargoesDeleteStatusResponse; +exports.CargoesV2CargoesDeleteStatusResponseFromJSON = CargoesV2CargoesDeleteStatusResponseFromJSON; +exports.CargoesV2CargoesDeleteStatusResponseFromJSONTyped = CargoesV2CargoesDeleteStatusResponseFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusResponseToJSON = CargoesV2CargoesDeleteStatusResponseToJSON; +const CargoesV2CargoesDeleteStatusResponseErrors_1 = require("./CargoesV2CargoesDeleteStatusResponseErrors"); +const CargoesV2CargoesDeleteStatusResponseStatusEnum_1 = require("./CargoesV2CargoesDeleteStatusResponseStatusEnum"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponse interface. + */ +function instanceOfCargoesV2CargoesDeleteStatusResponse(value) { + return true; +} +function CargoesV2CargoesDeleteStatusResponseFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (0, CargoesV2CargoesDeleteStatusResponseErrors_1.CargoesV2CargoesDeleteStatusResponseErrorsFromJSON)(json['errors']), + 'status': json['status'] == null ? undefined : (0, CargoesV2CargoesDeleteStatusResponseStatusEnum_1.CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function CargoesV2CargoesDeleteStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': (0, CargoesV2CargoesDeleteStatusResponseErrors_1.CargoesV2CargoesDeleteStatusResponseErrorsToJSON)(value['errors']), + 'status': (0, CargoesV2CargoesDeleteStatusResponseStatusEnum_1.CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrors.d.ts b/dist/models/CargoesV2CargoesDeleteStatusResponseErrors.d.ts new file mode 100644 index 0000000..a1cae5a --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrors.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons } from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons'; +import type { CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum } from './CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum'; +import type { CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons } from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons'; +/** + * Ошибки. + * @export + * @interface CargoesV2CargoesDeleteStatusResponseErrors + */ +export interface CargoesV2CargoesDeleteStatusResponseErrors { + /** + * Ошибки при удалении грузомест. + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrors + */ + cargo_error_reasons?: Array; + /** + * Ошибки поставки: + * - `UNSPECIFIED` — не определена; + * - `SUPPLY_NOT_FOUND` — поставка не найдена; + * - `CANT_DELETE_ALL_CARGOES` — нельзя удалять все грузоместа; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — не принадлежит вашему юридическому лицу; + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — не принадлежит вашему кабинету; + * - `SUPPLY_CARGOES_IS_FINALIZED` — грузоместа поставки нельзя редактировать; + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `ETTN_IS_UPLOADED` — электронная ТТН загружена; + * - `CANT_DELETE_ALL_TRANSPORT_CARGOES` — нельзя удалять все транспортные грузоместа; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrors + */ + supply_error_reasons?: Array; + /** + * Ошибки при удалении транспортных грузомест. + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrors + */ + transport_cargo_error_reasons?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrors interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrors(value: object): value is CargoesV2CargoesDeleteStatusResponseErrors; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrors; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrors; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrors | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrors.js b/dist/models/CargoesV2CargoesDeleteStatusResponseErrors.js new file mode 100644 index 0000000..c336ea6 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrors.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteStatusResponseErrors = instanceOfCargoesV2CargoesDeleteStatusResponseErrors; +exports.CargoesV2CargoesDeleteStatusResponseErrorsFromJSON = CargoesV2CargoesDeleteStatusResponseErrorsFromJSON; +exports.CargoesV2CargoesDeleteStatusResponseErrorsFromJSONTyped = CargoesV2CargoesDeleteStatusResponseErrorsFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusResponseErrorsToJSON = CargoesV2CargoesDeleteStatusResponseErrorsToJSON; +const CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons_1 = require("./CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons"); +const CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum_1 = require("./CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum"); +const CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons_1 = require("./CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrors interface. + */ +function instanceOfCargoesV2CargoesDeleteStatusResponseErrors(value) { + return true; +} +function CargoesV2CargoesDeleteStatusResponseErrorsFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusResponseErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_error_reasons': json['cargo_error_reasons'] == null ? undefined : (json['cargo_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons_1.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON)), + 'supply_error_reasons': json['supply_error_reasons'] == null ? undefined : (json['supply_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum_1.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON)), + 'transport_cargo_error_reasons': json['transport_cargo_error_reasons'] == null ? undefined : (json['transport_cargo_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons_1.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON)), + }; +} +function CargoesV2CargoesDeleteStatusResponseErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_error_reasons': value['cargo_error_reasons'] == null ? undefined : (value['cargo_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons_1.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON)), + 'supply_error_reasons': value['supply_error_reasons'] == null ? undefined : (value['supply_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum_1.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON)), + 'transport_cargo_error_reasons': value['transport_cargo_error_reasons'] == null ? undefined : (value['transport_cargo_error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons_1.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON)), + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.d.ts b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.d.ts new file mode 100644 index 0000000..81f8b02 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum } from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons + */ +export interface CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons + */ + cargo_id?: number; + /** + * Список ошибок грузоместа: + * - `UNSPECIFIED` — не определена; + * - `CARGO_NOT_FOUND` — грузоместо не найдено. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons(value: object): value is CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.js b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.js new file mode 100644 index 0000000..057d4eb --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons = instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons; +exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON = CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON; +exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSONTyped = CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON = CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON; +const CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum_1 = require("./CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons interface. + */ +function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons(value) { + return true; +} +function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum_1.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON)), + }; +} +function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum_1.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON)), + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts new file mode 100644 index 0000000..ca37b07 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum = typeof CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.js b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.js new file mode 100644 index 0000000..2c0cf30 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum = void 0; +exports.instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum = instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum; +exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON = CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON; +exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped = CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON = CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum(value) { + for (const key in exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum, key)) { + if (exports.CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.d.ts b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.d.ts new file mode 100644 index 0000000..e50cf36 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly CANT_DELETE_ALL_CARGOES: "CANT_DELETE_ALL_CARGOES"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly ETTN_IS_UPLOADED: "ETTN_IS_UPLOADED"; + readonly CANT_DELETE_ALL_TRANSPORT_CARGOES: "CANT_DELETE_ALL_TRANSPORT_CARGOES"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum = typeof CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.js b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.js new file mode 100644 index 0000000..079ec62 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum = void 0; +exports.instanceOfCargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum = instanceOfCargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum; +exports.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON = CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON; +exports.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSONTyped = CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON = CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + CANT_DELETE_ALL_CARGOES: 'CANT_DELETE_ALL_CARGOES', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + ETTN_IS_UPLOADED: 'ETTN_IS_UPLOADED', + CANT_DELETE_ALL_TRANSPORT_CARGOES: 'CANT_DELETE_ALL_TRANSPORT_CARGOES', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum(value) { + for (const key in exports.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum, key)) { + if (exports.CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.d.ts b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.d.ts new file mode 100644 index 0000000..d946306 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum } from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +/** + * + * @export + * @interface CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons + */ +export interface CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons { + /** + * Список ошибок транспортного грузоместа: + * - `UNSPECIFIED` — не определена; + * - `CARGO_NOT_FOUND` — транспортное грузоместо не найдено. + * + * @type {Array} + * @memberof CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons + */ + error_reasons?: Array; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons + */ + transport_cargo_id?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons interface. + */ +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons(value: object): value is CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.js b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.js new file mode 100644 index 0000000..f4fa692 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons = instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons; +exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON = CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON; +exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSONTyped = CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON = CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON; +const CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum_1 = require("./CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum"); +/** + * Check if a given object implements the CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons interface. + */ +function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons(value) { + return true; +} +function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum_1.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON)), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + }; +} +function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum_1.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON)), + 'transport_cargo_id': value['transport_cargo_id'], + }; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts new file mode 100644 index 0000000..33ac6dc --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = typeof CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum[keyof typeof CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum]; +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +export declare function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON(value?: CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js new file mode 100644 index 0000000..8284d01 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = void 0; +exports.instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum; +exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON = CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON; +exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped = CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON = CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +function instanceOfCargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum(value) { + for (const key in exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum, key)) { + if (exports.CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.d.ts b/dist/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..fe65f46 --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус удаления грузоместа: + * - `UNSPECIFIED` — не определён; + * - `SUCCESS` — грузоместо удалено; + * - `IN_PROGRESS` — грузоместо в процессе удаления; + * - `ERROR` — возникла ошибка при удалении грузоместа. + * + * @export + */ +export declare const CargoesV2CargoesDeleteStatusResponseStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type CargoesV2CargoesDeleteStatusResponseStatusEnum = typeof CargoesV2CargoesDeleteStatusResponseStatusEnum[keyof typeof CargoesV2CargoesDeleteStatusResponseStatusEnum]; +export declare function instanceOfCargoesV2CargoesDeleteStatusResponseStatusEnum(value: any): boolean; +export declare function CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON(json: any): CargoesV2CargoesDeleteStatusResponseStatusEnum; +export declare function CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesDeleteStatusResponseStatusEnum; +export declare function CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON(value?: CargoesV2CargoesDeleteStatusResponseStatusEnum | null): any; diff --git a/dist/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.js b/dist/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.js new file mode 100644 index 0000000..4465bba --- /dev/null +++ b/dist/models/CargoesV2CargoesDeleteStatusResponseStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesDeleteStatusResponseStatusEnum = void 0; +exports.instanceOfCargoesV2CargoesDeleteStatusResponseStatusEnum = instanceOfCargoesV2CargoesDeleteStatusResponseStatusEnum; +exports.CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON = CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON; +exports.CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSONTyped = CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSONTyped; +exports.CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON = CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON; +/** + * Статус удаления грузоместа: + * - `UNSPECIFIED` — не определён; + * - `SUCCESS` — грузоместо удалено; + * - `IN_PROGRESS` — грузоместо в процессе удаления; + * - `ERROR` — возникла ошибка при удалении грузоместа. + * + * @export + */ +exports.CargoesV2CargoesDeleteStatusResponseStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfCargoesV2CargoesDeleteStatusResponseStatusEnum(value) { + for (const key in exports.CargoesV2CargoesDeleteStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesDeleteStatusResponseStatusEnum, key)) { + if (exports.CargoesV2CargoesDeleteStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSON(json) { + return CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesDeleteStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesDeleteStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesGetRequest.d.ts b/dist/models/CargoesV2CargoesGetRequest.d.ts new file mode 100644 index 0000000..49ba422 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetRequestSupplies } from './CargoesV2CargoesGetRequestSupplies'; +/** + * + * @export + * @interface CargoesV2CargoesGetRequest + */ +export interface CargoesV2CargoesGetRequest { + /** + * Информация о поставках. + * @type {Array} + * @memberof CargoesV2CargoesGetRequest + */ + supplies: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesGetRequest interface. + */ +export declare function instanceOfCargoesV2CargoesGetRequest(value: object): value is CargoesV2CargoesGetRequest; +export declare function CargoesV2CargoesGetRequestFromJSON(json: any): CargoesV2CargoesGetRequest; +export declare function CargoesV2CargoesGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetRequest; +export declare function CargoesV2CargoesGetRequestToJSON(value?: CargoesV2CargoesGetRequest | null): any; diff --git a/dist/models/CargoesV2CargoesGetRequest.js b/dist/models/CargoesV2CargoesGetRequest.js new file mode 100644 index 0000000..d4311a1 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetRequest = instanceOfCargoesV2CargoesGetRequest; +exports.CargoesV2CargoesGetRequestFromJSON = CargoesV2CargoesGetRequestFromJSON; +exports.CargoesV2CargoesGetRequestFromJSONTyped = CargoesV2CargoesGetRequestFromJSONTyped; +exports.CargoesV2CargoesGetRequestToJSON = CargoesV2CargoesGetRequestToJSON; +const CargoesV2CargoesGetRequestSupplies_1 = require("./CargoesV2CargoesGetRequestSupplies"); +/** + * Check if a given object implements the CargoesV2CargoesGetRequest interface. + */ +function instanceOfCargoesV2CargoesGetRequest(value) { + if (!('supplies' in value) || value['supplies'] === undefined) + return false; + return true; +} +function CargoesV2CargoesGetRequestFromJSON(json) { + return CargoesV2CargoesGetRequestFromJSONTyped(json, false); +} +function CargoesV2CargoesGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supplies': (json['supplies'].map(CargoesV2CargoesGetRequestSupplies_1.CargoesV2CargoesGetRequestSuppliesFromJSON)), + }; +} +function CargoesV2CargoesGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supplies': (value['supplies'].map(CargoesV2CargoesGetRequestSupplies_1.CargoesV2CargoesGetRequestSuppliesToJSON)), + }; +} diff --git a/dist/models/CargoesV2CargoesGetRequestSupplies.d.ts b/dist/models/CargoesV2CargoesGetRequestSupplies.d.ts new file mode 100644 index 0000000..2b4d395 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetRequestSupplies.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CargoesV2CargoesGetRequestSupplies + */ +export interface CargoesV2CargoesGetRequestSupplies { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof CargoesV2CargoesGetRequestSupplies + */ + cargo_ids: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesV2CargoesGetRequestSupplies + */ + supply_id: number; +} +/** + * Check if a given object implements the CargoesV2CargoesGetRequestSupplies interface. + */ +export declare function instanceOfCargoesV2CargoesGetRequestSupplies(value: object): value is CargoesV2CargoesGetRequestSupplies; +export declare function CargoesV2CargoesGetRequestSuppliesFromJSON(json: any): CargoesV2CargoesGetRequestSupplies; +export declare function CargoesV2CargoesGetRequestSuppliesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetRequestSupplies; +export declare function CargoesV2CargoesGetRequestSuppliesToJSON(value?: CargoesV2CargoesGetRequestSupplies | null): any; diff --git a/dist/models/CargoesV2CargoesGetRequestSupplies.js b/dist/models/CargoesV2CargoesGetRequestSupplies.js new file mode 100644 index 0000000..4baafaa --- /dev/null +++ b/dist/models/CargoesV2CargoesGetRequestSupplies.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetRequestSupplies = instanceOfCargoesV2CargoesGetRequestSupplies; +exports.CargoesV2CargoesGetRequestSuppliesFromJSON = CargoesV2CargoesGetRequestSuppliesFromJSON; +exports.CargoesV2CargoesGetRequestSuppliesFromJSONTyped = CargoesV2CargoesGetRequestSuppliesFromJSONTyped; +exports.CargoesV2CargoesGetRequestSuppliesToJSON = CargoesV2CargoesGetRequestSuppliesToJSON; +/** + * Check if a given object implements the CargoesV2CargoesGetRequestSupplies interface. + */ +function instanceOfCargoesV2CargoesGetRequestSupplies(value) { + if (!('cargo_ids' in value) || value['cargo_ids'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function CargoesV2CargoesGetRequestSuppliesFromJSON(json) { + return CargoesV2CargoesGetRequestSuppliesFromJSONTyped(json, false); +} +function CargoesV2CargoesGetRequestSuppliesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_ids': json['cargo_ids'], + 'supply_id': json['supply_id'], + }; +} +function CargoesV2CargoesGetRequestSuppliesToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_ids': value['cargo_ids'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponse.d.ts b/dist/models/CargoesV2CargoesGetResponse.d.ts new file mode 100644 index 0000000..20da3be --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSupplies } from './CargoesV2CargoesGetResponseSupplies'; +/** + * + * @export + * @interface CargoesV2CargoesGetResponse + */ +export interface CargoesV2CargoesGetResponse { + /** + * Информация о грузоместах и транспортных грузоместах. + * @type {Array} + * @memberof CargoesV2CargoesGetResponse + */ + supplies?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponse interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponse(value: object): value is CargoesV2CargoesGetResponse; +export declare function CargoesV2CargoesGetResponseFromJSON(json: any): CargoesV2CargoesGetResponse; +export declare function CargoesV2CargoesGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponse; +export declare function CargoesV2CargoesGetResponseToJSON(value?: CargoesV2CargoesGetResponse | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponse.js b/dist/models/CargoesV2CargoesGetResponse.js new file mode 100644 index 0000000..9342846 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponse = instanceOfCargoesV2CargoesGetResponse; +exports.CargoesV2CargoesGetResponseFromJSON = CargoesV2CargoesGetResponseFromJSON; +exports.CargoesV2CargoesGetResponseFromJSONTyped = CargoesV2CargoesGetResponseFromJSONTyped; +exports.CargoesV2CargoesGetResponseToJSON = CargoesV2CargoesGetResponseToJSON; +const CargoesV2CargoesGetResponseSupplies_1 = require("./CargoesV2CargoesGetResponseSupplies"); +/** + * Check if a given object implements the CargoesV2CargoesGetResponse interface. + */ +function instanceOfCargoesV2CargoesGetResponse(value) { + return true; +} +function CargoesV2CargoesGetResponseFromJSON(json) { + return CargoesV2CargoesGetResponseFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supplies': json['supplies'] == null ? undefined : (json['supplies'].map(CargoesV2CargoesGetResponseSupplies_1.CargoesV2CargoesGetResponseSuppliesFromJSON)), + }; +} +function CargoesV2CargoesGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'supplies': value['supplies'] == null ? undefined : (value['supplies'].map(CargoesV2CargoesGetResponseSupplies_1.CargoesV2CargoesGetResponseSuppliesToJSON)), + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSupplies.d.ts b/dist/models/CargoesV2CargoesGetResponseSupplies.d.ts new file mode 100644 index 0000000..17b2600 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSupplies.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesCargoes } from './CargoesV2CargoesGetResponseSuppliesCargoes'; +import type { CargoesV2CargoesGetResponseSuppliesLimits } from './CargoesV2CargoesGetResponseSuppliesLimits'; +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoes } from './CargoesV2CargoesGetResponseSuppliesTransportCargoes'; +/** + * + * @export + * @interface CargoesV2CargoesGetResponseSupplies + */ +export interface CargoesV2CargoesGetResponseSupplies { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + bundle_id?: string; + /** + * Грузоместа. + * @type {Array} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + cargoes?: Array; + /** + * Товарный состав грузомест. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + cargoes_bundle_id?: string; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesLimits} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + limits?: CargoesV2CargoesGetResponseSuppliesLimits; + /** + * Идентификатор поставки. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + supply_id?: number; + /** + * Информация о транспортных грузоместах. + * @type {Array} + * @memberof CargoesV2CargoesGetResponseSupplies + */ + transport_cargoes?: Array; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSupplies interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSupplies(value: object): value is CargoesV2CargoesGetResponseSupplies; +export declare function CargoesV2CargoesGetResponseSuppliesFromJSON(json: any): CargoesV2CargoesGetResponseSupplies; +export declare function CargoesV2CargoesGetResponseSuppliesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSupplies; +export declare function CargoesV2CargoesGetResponseSuppliesToJSON(value?: CargoesV2CargoesGetResponseSupplies | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSupplies.js b/dist/models/CargoesV2CargoesGetResponseSupplies.js new file mode 100644 index 0000000..665fd42 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSupplies.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSupplies = instanceOfCargoesV2CargoesGetResponseSupplies; +exports.CargoesV2CargoesGetResponseSuppliesFromJSON = CargoesV2CargoesGetResponseSuppliesFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesFromJSONTyped = CargoesV2CargoesGetResponseSuppliesFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesToJSON = CargoesV2CargoesGetResponseSuppliesToJSON; +const CargoesV2CargoesGetResponseSuppliesCargoes_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoes"); +const CargoesV2CargoesGetResponseSuppliesLimits_1 = require("./CargoesV2CargoesGetResponseSuppliesLimits"); +const CargoesV2CargoesGetResponseSuppliesTransportCargoes_1 = require("./CargoesV2CargoesGetResponseSuppliesTransportCargoes"); +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSupplies interface. + */ +function instanceOfCargoesV2CargoesGetResponseSupplies(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(CargoesV2CargoesGetResponseSuppliesCargoes_1.CargoesV2CargoesGetResponseSuppliesCargoesFromJSON)), + 'cargoes_bundle_id': json['cargoes_bundle_id'] == null ? undefined : json['cargoes_bundle_id'], + 'limits': json['limits'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesLimits_1.CargoesV2CargoesGetResponseSuppliesLimitsFromJSON)(json['limits']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'transport_cargoes': json['transport_cargoes'] == null ? undefined : (json['transport_cargoes'].map(CargoesV2CargoesGetResponseSuppliesTransportCargoes_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON)), + }; +} +function CargoesV2CargoesGetResponseSuppliesToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(CargoesV2CargoesGetResponseSuppliesCargoes_1.CargoesV2CargoesGetResponseSuppliesCargoesToJSON)), + 'cargoes_bundle_id': value['cargoes_bundle_id'], + 'limits': (0, CargoesV2CargoesGetResponseSuppliesLimits_1.CargoesV2CargoesGetResponseSuppliesLimitsToJSON)(value['limits']), + 'supply_id': value['supply_id'], + 'transport_cargoes': value['transport_cargoes'] == null ? undefined : (value['transport_cargoes'].map(CargoesV2CargoesGetResponseSuppliesTransportCargoes_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON)), + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoes.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoes.d.ts new file mode 100644 index 0000000..0daf876 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoes.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV2CargoesGetResponseSuppliesCargoes + */ +export interface CargoesV2CargoesGetResponseSuppliesCargoes { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + bundle_id?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + cargo_id?: number; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + content_type?: CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + placement_zone_type?: CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + tracking_info?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + transport_cargo_id?: number; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoes + */ + type?: CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoes interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoes(value: object): value is CargoesV2CargoesGetResponseSuppliesCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoes | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoes.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoes.js new file mode 100644 index 0000000..80b7f3e --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoes.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoes = instanceOfCargoesV2CargoesGetResponseSuppliesCargoes; +exports.CargoesV2CargoesGetResponseSuppliesCargoesFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesToJSON = CargoesV2CargoesGetResponseSuppliesCargoesToJSON; +const CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum"); +const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo"); +const CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum"); +const CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum"); +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoes interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoes(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesCargoesFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'content_type': json['content_type'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON)(json['content_type']), + 'placement_zone_type': json['placement_zone_type'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON)(json['placement_zone_type']), + 'tracking_info': json['tracking_info'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON)(json['tracking_info']), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + 'type': json['type'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON)(json['type']), + }; +} +function CargoesV2CargoesGetResponseSuppliesCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargo_id': value['cargo_id'], + 'content_type': (0, CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON)(value['content_type']), + 'placement_zone_type': (0, CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON)(value['placement_zone_type']), + 'tracking_info': (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON)(value['tracking_info']), + 'transport_cargo_id': value['transport_cargo_id'], + 'type': (0, CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.d.ts new file mode 100644 index 0000000..717af80 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ассортимента грузоместа: + * - `UNSPECIFIED` — не определён; + * - `MONO` — палета-моно или коробка-моно; + * - `MIX` — палета-микс или коробка-микс; + * - `NONE` — отсутствует. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONO: "MONO"; + readonly MIX: "MIX"; + readonly NONE: "NONE"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.js new file mode 100644 index 0000000..017ac85 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum = void 0; +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum = instanceOfCargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum; +exports.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON = CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON; +/** + * Тип ассортимента грузоместа: + * - `UNSPECIFIED` — не определён; + * - `MONO` — палета-моно или коробка-моно; + * - `MIX` — палета-микс или коробка-микс; + * - `NONE` — отсутствует. + * + * @export + */ +exports.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONO: 'MONO', + MIX: 'MIX', + NONE: 'NONE' +}; +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum(value) { + for (const key in exports.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum, key)) { + if (exports.CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.d.ts new file mode 100644 index 0000000..2c93203 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип зоны размещения: + * - `UNSPECIFIED` — не требуется распределение по зонам размещения; + * - `UNDEFINED` — не определён; + * - `SINGLE` — одинаковая зона размещения в составе грузоместа; + * - `MULTI` — разные зоны размещения в составе грузоместа. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNDEFINED: "UNDEFINED"; + readonly TYPE_SINGLE: "TYPE_SINGLE"; + readonly MULTI: "MULTI"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.js new file mode 100644 index 0000000..a65b389 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum = void 0; +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum = instanceOfCargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum; +exports.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON = CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON; +/** + * Тип зоны размещения: + * - `UNSPECIFIED` — не требуется распределение по зонам размещения; + * - `UNDEFINED` — не определён; + * - `SINGLE` — одинаковая зона размещения в составе грузоместа; + * - `MULTI` — разные зоны размещения в составе грузоместа. + * + * @export + */ +exports.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNDEFINED: 'UNDEFINED', + TYPE_SINGLE: 'TYPE_SINGLE', + MULTI: 'MULTI' +}; +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum(value) { + for (const key in exports.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum, key)) { + if (exports.CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.d.ts new file mode 100644 index 0000000..2c84118 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt'; +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum'; +/** + * Отслеживание грузоместа. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo + */ +export interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo { + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo + */ + arrival_at?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo + */ + status?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo + */ + type?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo(value: object): value is CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.js new file mode 100644 index 0000000..12c5d48 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo = instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON; +const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum"); +const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt"); +const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum"); +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_at': json['arrival_at'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON)(json['arrival_at']), + 'status': json['status'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON)(json['status']), + 'type': json['type'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON)(json['type']), + }; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_at': (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON)(value['arrival_at']), + 'status': (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON)(value['status']), + 'type': (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.d.ts new file mode 100644 index 0000000..a7636ca --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo } from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo'; +/** + * Информация о приёме грузоместа. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt + */ +export interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt { + /** + * Дата приёма грузоместа. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt + */ + date?: string; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt + */ + timezone_info?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt(value: object): value is CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.js new file mode 100644 index 0000000..f976c1a --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt = instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON; +const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo_1 = require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo"); +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'timezone_info': json['timezone_info'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON)(json['timezone_info']), + }; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'timezone_info': (0, CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo_1.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON)(value['timezone_info']), + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.d.ts new file mode 100644 index 0000000..13b4e7f --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo + */ +export interface CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo { + /** + * Название часового пояса. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo + */ + offset?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo(value: object): value is CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.js new file mode 100644 index 0000000..78862e8 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo = instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.d.ts new file mode 100644 index 0000000..e6b5844 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ACCEPTING` — приёмка; + * - `PROCESSED` — обработано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `DELETED` — удалено; + * - `DECLARED_IN_TRANSPORT_CARGO` — заявлено в транспортном грузоместе. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly REFUSED: "REFUSED"; + readonly ON_WAREHOUSE: "ON_WAREHOUSE"; + readonly NOT_DELIVERED: "NOT_DELIVERED"; + readonly ACCEPTING: "ACCEPTING"; + readonly PROCESSED: "PROCESSED"; + readonly ON_POINT_SHIPMENT: "ON_POINT_SHIPMENT"; + readonly ON_TRANSIT_WAREHOUSE: "ON_TRANSIT_WAREHOUSE"; + readonly LOST: "LOST"; + readonly CREATED: "CREATED"; + readonly DELETED: "DELETED"; + readonly DECLARED_IN_TRANSPORT_CARGO: "DECLARED_IN_TRANSPORT_CARGO"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.js new file mode 100644 index 0000000..8892edf --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum.js @@ -0,0 +1,72 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum = void 0; +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum = instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON; +/** + * Статус грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ACCEPTING` — приёмка; + * - `PROCESSED` — обработано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `DELETED` — удалено; + * - `DECLARED_IN_TRANSPORT_CARGO` — заявлено в транспортном грузоместе. + * + * @export + */ +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + REFUSED: 'REFUSED', + ON_WAREHOUSE: 'ON_WAREHOUSE', + NOT_DELIVERED: 'NOT_DELIVERED', + ACCEPTING: 'ACCEPTING', + PROCESSED: 'PROCESSED', + ON_POINT_SHIPMENT: 'ON_POINT_SHIPMENT', + ON_TRANSIT_WAREHOUSE: 'ON_TRANSIT_WAREHOUSE', + LOST: 'LOST', + CREATED: 'CREATED', + DELETED: 'DELETED', + DECLARED_IN_TRANSPORT_CARGO: 'DECLARED_IN_TRANSPORT_CARGO' +}; +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum(value) { + for (const key in exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum, key)) { + if (exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.d.ts new file mode 100644 index 0000000..2d127d3 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип отслеживания грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly EXPECTED_ARRIVAL: "EXPECTED_ARRIVAL"; + readonly ACTUAL_ARRIVAL: "ACTUAL_ARRIVAL"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.js new file mode 100644 index 0000000..9350a6e --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum = void 0; +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum = instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON = CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON; +/** + * Тип отслеживания грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + EXPECTED_ARRIVAL: 'EXPECTED_ARRIVAL', + ACTUAL_ARRIVAL: 'ACTUAL_ARRIVAL' +}; +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum(value) { + for (const key in exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum, key)) { + if (exports.CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.d.ts new file mode 100644 index 0000000..e952bca --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.js b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.js new file mode 100644 index 0000000..744f854 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum = void 0; +exports.instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTypeEnum = instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTypeEnum; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON = CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSONTyped = CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON = CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON; +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +exports.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BOX: 'BOX', + PALLET: 'PALLET' +}; +function instanceOfCargoesV2CargoesGetResponseSuppliesCargoesTypeEnum(value) { + for (const key in exports.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum, key)) { + if (exports.CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesGetResponseSuppliesCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesLimits.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesLimits.d.ts new file mode 100644 index 0000000..7456a48 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesLimits.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Количество грузомест и товаров в поставке. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesLimits + */ +export interface CargoesV2CargoesGetResponseSuppliesLimits { + /** + * Максимальное количество коробок. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesLimits + */ + max_box_count?: number; + /** + * Максимальное количество товаров в коробке. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesLimits + */ + max_box_sku_count?: number; + /** + * Максимальное количество палет. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesLimits + */ + max_pallet_count?: number; + /** + * Максимальное количество транспортных грузомест. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesLimits + */ + max_transport_pallet_count?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesLimits interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesLimits(value: object): value is CargoesV2CargoesGetResponseSuppliesLimits; +export declare function CargoesV2CargoesGetResponseSuppliesLimitsFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesLimits; +export declare function CargoesV2CargoesGetResponseSuppliesLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesLimits; +export declare function CargoesV2CargoesGetResponseSuppliesLimitsToJSON(value?: CargoesV2CargoesGetResponseSuppliesLimits | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesLimits.js b/dist/models/CargoesV2CargoesGetResponseSuppliesLimits.js new file mode 100644 index 0000000..5727f87 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesLimits.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesLimits = instanceOfCargoesV2CargoesGetResponseSuppliesLimits; +exports.CargoesV2CargoesGetResponseSuppliesLimitsFromJSON = CargoesV2CargoesGetResponseSuppliesLimitsFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesLimitsFromJSONTyped = CargoesV2CargoesGetResponseSuppliesLimitsFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesLimitsToJSON = CargoesV2CargoesGetResponseSuppliesLimitsToJSON; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesLimits interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesLimits(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesLimitsFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesLimitsFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesLimitsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'max_box_count': json['max_box_count'] == null ? undefined : json['max_box_count'], + 'max_box_sku_count': json['max_box_sku_count'] == null ? undefined : json['max_box_sku_count'], + 'max_pallet_count': json['max_pallet_count'] == null ? undefined : json['max_pallet_count'], + 'max_transport_pallet_count': json['max_transport_pallet_count'] == null ? undefined : json['max_transport_pallet_count'], + }; +} +function CargoesV2CargoesGetResponseSuppliesLimitsToJSON(value) { + if (value == null) { + return value; + } + return { + 'max_box_count': value['max_box_count'], + 'max_box_sku_count': value['max_box_sku_count'], + 'max_pallet_count': value['max_pallet_count'], + 'max_transport_pallet_count': value['max_transport_pallet_count'], + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.d.ts new file mode 100644 index 0000000..e5741c4 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo'; +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum'; +/** + * + * @export + * @interface CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ +export interface CargoesV2CargoesGetResponseSuppliesTransportCargoes { + /** + * Количество грузомест в транспортном грузоместе. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + box_count?: number; + /** + * Идентификатор товарного состава транспортного грузоместа. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + summary_bundle_id?: string; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + tracking_info?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; + /** + * Идентификатор транспортного грузоместа. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + transport_cargo_id?: number; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoes + */ + type?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoes interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoes(value: object): value is CargoesV2CargoesGetResponseSuppliesTransportCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoes; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoes | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.js b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.js new file mode 100644 index 0000000..202a96f --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoes.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoes = instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoes; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSONTyped = CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON; +const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo_1 = require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo"); +const CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum_1 = require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum"); +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoes interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoes(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'box_count': json['box_count'] == null ? undefined : json['box_count'], + 'summary_bundle_id': json['summary_bundle_id'] == null ? undefined : json['summary_bundle_id'], + 'tracking_info': json['tracking_info'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON)(json['tracking_info']), + 'transport_cargo_id': json['transport_cargo_id'] == null ? undefined : json['transport_cargo_id'], + 'type': json['type'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON)(json['type']), + }; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesToJSON(value) { + if (value == null) { + return value; + } + return { + 'box_count': value['box_count'], + 'summary_bundle_id': value['summary_bundle_id'], + 'tracking_info': (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON)(value['tracking_info']), + 'transport_cargo_id': value['transport_cargo_id'], + 'type': (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.d.ts new file mode 100644 index 0000000..d154106 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt'; +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum'; +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum'; +/** + * Отслеживание транспортного грузоместа. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo + */ +export interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo { + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo + */ + arrival_at?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo + */ + status?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo + */ + type?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo(value: object): value is CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.js b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.js new file mode 100644 index 0000000..8ef2f83 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo = instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSONTyped = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON; +const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt_1 = require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt"); +const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum_1 = require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum"); +const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum_1 = require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum"); +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_at': json['arrival_at'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON)(json['arrival_at']), + 'status': json['status'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON)(json['status']), + 'type': json['type'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON)(json['type']), + }; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_at': (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON)(value['arrival_at']), + 'status': (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON)(value['status']), + 'type': (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.d.ts new file mode 100644 index 0000000..4c906b1 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone } from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone'; +/** + * Информация о приёме транспортного грузоместа. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt + */ +export interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt { + /** + * Дата приёма транспортного грузоместа. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt + */ + date?: string; + /** + * + * @type {CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt + */ + timezone?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt(value: object): value is CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.js b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.js new file mode 100644 index 0000000..f540ee3 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt = instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSONTyped = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON; +const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone_1 = require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone"); +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'timezone': json['timezone'] == null ? undefined : (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON)(json['timezone']), + }; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'timezone': (0, CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone_1.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON)(value['timezone']), + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.d.ts new file mode 100644 index 0000000..2a6d494 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone + */ +export interface CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone { + /** + * Название часового пояса. + * @type {string} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {number} + * @memberof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone + */ + offset?: number; +} +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone interface. + */ +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone(value: object): value is CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.js b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.js new file mode 100644 index 0000000..a1d2ed8 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone = instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSONTyped = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON; +/** + * Check if a given object implements the CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone interface. + */ +function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone(value) { + return true; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezoneToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.d.ts new file mode 100644 index 0000000..2c0c85a --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус транспортного грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `CARGO_DISASSEMBLED` — удалено. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly REFUSED: "REFUSED"; + readonly ON_WAREHOUSE: "ON_WAREHOUSE"; + readonly NOT_DELIVERED: "NOT_DELIVERED"; + readonly ON_POINT_SHIPMENT: "ON_POINT_SHIPMENT"; + readonly ON_TRANSIT_WAREHOUSE: "ON_TRANSIT_WAREHOUSE"; + readonly LOST: "LOST"; + readonly CREATED: "CREATED"; + readonly CARGO_DISASSEMBLED: "CARGO_DISASSEMBLED"; +}; +export type CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum = typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.js b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.js new file mode 100644 index 0000000..5b3dcdc --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum = void 0; +exports.instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum = instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSONTyped = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON; +/** + * Статус транспортного грузоместа: + * - `UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готово к отгрузке; + * - `REFUSED` — отказано; + * - `ON_WAREHOUSE` — на складе размещения; + * - `NOT_DELIVERED` — не сдано; + * - `ON_POINT_SHIPMENT` — на точке отгрузки; + * - `ON_TRANSIT_WAREHOUSE` — в пути; + * - `LOST` — потеряно; + * - `CREATED` — создано; + * - `CARGO_DISASSEMBLED` — удалено. + * + * @export + */ +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + REFUSED: 'REFUSED', + ON_WAREHOUSE: 'ON_WAREHOUSE', + NOT_DELIVERED: 'NOT_DELIVERED', + ON_POINT_SHIPMENT: 'ON_POINT_SHIPMENT', + ON_TRANSIT_WAREHOUSE: 'ON_TRANSIT_WAREHOUSE', + LOST: 'LOST', + CREATED: 'CREATED', + CARGO_DISASSEMBLED: 'CARGO_DISASSEMBLED' +}; +function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum(value) { + for (const key in exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum, key)) { + if (exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.d.ts new file mode 100644 index 0000000..0643bf8 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип отслеживания транспортного грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly EXPECTED_ARRIVAL: "EXPECTED_ARRIVAL"; + readonly ACTUAL_ARRIVAL: "ACTUAL_ARRIVAL"; +}; +export type CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.js b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.js new file mode 100644 index 0000000..77c307b --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum = void 0; +exports.instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum = instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSONTyped = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON; +/** + * Тип отслеживания транспортного грузоместа: + * - `UNSPECIFIED` — не определён; + * - `EXPECTED_ARRIVAL` — плановая дата отгрузки; + * - `ACTUAL_ARRIVAL` — фактическая дата отгрузки. + * + * @export + */ +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + EXPECTED_ARRIVAL: 'EXPECTED_ARRIVAL', + ACTUAL_ARRIVAL: 'ACTUAL_ARRIVAL' +}; +function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum(value) { + for (const key in exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum, key)) { + if (exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.d.ts b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.d.ts new file mode 100644 index 0000000..eb8df43 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `PALLET` — палета. + * + * @export + */ +export declare const CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PALLET: "PALLET"; +}; +export type CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum = typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum[keyof typeof CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum]; +export declare function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum(value: any): boolean; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON(json: any): CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum; +export declare function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON(value?: CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum | null): any; diff --git a/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.js b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.js new file mode 100644 index 0000000..fc584a7 --- /dev/null +++ b/dist/models/CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum = void 0; +exports.instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum = instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSONTyped = CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSONTyped; +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON = CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON; +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён; + * - `PALLET` — палета. + * + * @export + */ +exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PALLET: 'PALLET' +}; +function instanceOfCargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum(value) { + for (const key in exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum, key)) { + if (exports.CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSON(json) { + return CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSONTyped(json, false); +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CarriageCarriageGetRequest.d.ts b/dist/models/CarriageCarriageGetRequest.d.ts new file mode 100644 index 0000000..beedada --- /dev/null +++ b/dist/models/CarriageCarriageGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CarriageCarriageGetRequest + */ +export interface CarriageCarriageGetRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof CarriageCarriageGetRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the CarriageCarriageGetRequest interface. + */ +export declare function instanceOfCarriageCarriageGetRequest(value: object): value is CarriageCarriageGetRequest; +export declare function CarriageCarriageGetRequestFromJSON(json: any): CarriageCarriageGetRequest; +export declare function CarriageCarriageGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageCarriageGetRequest; +export declare function CarriageCarriageGetRequestToJSON(value?: CarriageCarriageGetRequest | null): any; diff --git a/dist/models/CarriageCarriageGetRequest.js b/dist/models/CarriageCarriageGetRequest.js new file mode 100644 index 0000000..20c509a --- /dev/null +++ b/dist/models/CarriageCarriageGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriageCarriageGetRequest = instanceOfCarriageCarriageGetRequest; +exports.CarriageCarriageGetRequestFromJSON = CarriageCarriageGetRequestFromJSON; +exports.CarriageCarriageGetRequestFromJSONTyped = CarriageCarriageGetRequestFromJSONTyped; +exports.CarriageCarriageGetRequestToJSON = CarriageCarriageGetRequestToJSON; +/** + * Check if a given object implements the CarriageCarriageGetRequest interface. + */ +function instanceOfCarriageCarriageGetRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function CarriageCarriageGetRequestFromJSON(json) { + return CarriageCarriageGetRequestFromJSONTyped(json, false); +} +function CarriageCarriageGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +function CarriageCarriageGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/CarriageCarriageGetResponse.d.ts b/dist/models/CarriageCarriageGetResponse.d.ts new file mode 100644 index 0000000..2298526 --- /dev/null +++ b/dist/models/CarriageCarriageGetResponse.d.ts @@ -0,0 +1,186 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CarriageCarriageGetResponseCancelAvailability } from './CarriageCarriageGetResponseCancelAvailability'; +/** + * + * @export + * @interface CarriageCarriageGetResponse + */ +export interface CarriageCarriageGetResponse { + /** + * Тип акта приёма-передачи. Актуально для продавцов FBS. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + act_type?: string; + /** + * `true`, если отгрузка с прослеживаемыми товарами. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + all_blr_traceable?: boolean; + /** + * `true`, если доступна печать транспортной накладной. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + is_waybill_enabled?: boolean; + /** + * `true`, если отгрузка относится к товарам «Суперэконом». + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + is_econom?: boolean; + /** + * Список идентификаторов пропусков, оформленных на перевозку. + * @type {Array} + * @memberof CarriageCarriageGetResponse + */ + arrival_pass_ids?: Array; + /** + * Доступные действия с перевозкой: + * - `get_shipping_list` — получить лист отгрузки; + * - `get_act_of_acceptance` — получить акт приёма-передачи; + * - `get_waybill` — получить товарную накладную в формате PDF; + * - `set_arrival_passes` — [оформить пропуск](#operation/carriagePassCreate). + * + * @type {Array} + * @memberof CarriageCarriageGetResponse + */ + available_actions?: Array; + /** + * + * @type {CarriageCarriageGetResponseCancelAvailability} + * @memberof CarriageCarriageGetResponse + */ + cancel_availability?: CarriageCarriageGetResponseCancelAvailability; + /** + * Идентификатор перевозки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + carriage_id?: number; + /** + * Идентификатор продавца. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + company_id?: number; + /** + * Количество грузовых мест. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + containers_count?: number; + /** + * Дата создания перевозки. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + created_at?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + delivery_method_id?: number; + /** + * Дата выполнения перевозки. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + departure_date?: string; + /** + * Тип первой мили. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + first_mile_type?: string; + /** + * `true`, если есть отправления, которые не попали в перевозку, но нужно отгрузить. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + has_postings_for_next_carriage?: boolean; + /** + * Тип перевозки. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + integration_type?: string; + /** + * `true`, если вы уже напечатали этикетки на грузовые места. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + is_container_label_printed?: boolean; + /** + * `true`, если перевозка частичная. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponse + */ + is_partial?: boolean; + /** + * Порядковый номер частичной перевозки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + partial_num?: number; + /** + * Количество повторных попыток создания перевозки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + retry_count?: number; + /** + * Статус перевозки: + * - `received` — идёт приёмка, + * - `closed` — завершена после приёмки, + * - `sended` — отправлена, + * - `cancelled` — отменена. + * + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + status?: string; + /** + * Идентификатор провайдера доставки. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + tpl_provider_id?: number; + /** + * Дата последнего обновления информации о перевозке. + * @type {string} + * @memberof CarriageCarriageGetResponse + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof CarriageCarriageGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the CarriageCarriageGetResponse interface. + */ +export declare function instanceOfCarriageCarriageGetResponse(value: object): value is CarriageCarriageGetResponse; +export declare function CarriageCarriageGetResponseFromJSON(json: any): CarriageCarriageGetResponse; +export declare function CarriageCarriageGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageCarriageGetResponse; +export declare function CarriageCarriageGetResponseToJSON(value?: CarriageCarriageGetResponse | null): any; diff --git a/dist/models/CarriageCarriageGetResponse.js b/dist/models/CarriageCarriageGetResponse.js new file mode 100644 index 0000000..8b6e00e --- /dev/null +++ b/dist/models/CarriageCarriageGetResponse.js @@ -0,0 +1,91 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriageCarriageGetResponse = instanceOfCarriageCarriageGetResponse; +exports.CarriageCarriageGetResponseFromJSON = CarriageCarriageGetResponseFromJSON; +exports.CarriageCarriageGetResponseFromJSONTyped = CarriageCarriageGetResponseFromJSONTyped; +exports.CarriageCarriageGetResponseToJSON = CarriageCarriageGetResponseToJSON; +const CarriageCarriageGetResponseCancelAvailability_1 = require("./CarriageCarriageGetResponseCancelAvailability"); +/** + * Check if a given object implements the CarriageCarriageGetResponse interface. + */ +function instanceOfCarriageCarriageGetResponse(value) { + return true; +} +function CarriageCarriageGetResponseFromJSON(json) { + return CarriageCarriageGetResponseFromJSONTyped(json, false); +} +function CarriageCarriageGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_type': json['act_type'] == null ? undefined : json['act_type'], + 'all_blr_traceable': json['all_blr_traceable'] == null ? undefined : json['all_blr_traceable'], + 'is_waybill_enabled': json['is_waybill_enabled'] == null ? undefined : json['is_waybill_enabled'], + 'is_econom': json['is_econom'] == null ? undefined : json['is_econom'], + 'arrival_pass_ids': json['arrival_pass_ids'] == null ? undefined : json['arrival_pass_ids'], + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'cancel_availability': json['cancel_availability'] == null ? undefined : (0, CarriageCarriageGetResponseCancelAvailability_1.CarriageCarriageGetResponseCancelAvailabilityFromJSON)(json['cancel_availability']), + 'carriage_id': json['carriage_id'] == null ? undefined : json['carriage_id'], + 'company_id': json['company_id'] == null ? undefined : json['company_id'], + 'containers_count': json['containers_count'] == null ? undefined : json['containers_count'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + 'has_postings_for_next_carriage': json['has_postings_for_next_carriage'] == null ? undefined : json['has_postings_for_next_carriage'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'is_container_label_printed': json['is_container_label_printed'] == null ? undefined : json['is_container_label_printed'], + 'is_partial': json['is_partial'] == null ? undefined : json['is_partial'], + 'partial_num': json['partial_num'] == null ? undefined : json['partial_num'], + 'retry_count': json['retry_count'] == null ? undefined : json['retry_count'], + 'status': json['status'] == null ? undefined : json['status'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function CarriageCarriageGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_type': value['act_type'], + 'all_blr_traceable': value['all_blr_traceable'], + 'is_waybill_enabled': value['is_waybill_enabled'], + 'is_econom': value['is_econom'], + 'arrival_pass_ids': value['arrival_pass_ids'], + 'available_actions': value['available_actions'], + 'cancel_availability': (0, CarriageCarriageGetResponseCancelAvailability_1.CarriageCarriageGetResponseCancelAvailabilityToJSON)(value['cancel_availability']), + 'carriage_id': value['carriage_id'], + 'company_id': value['company_id'], + 'containers_count': value['containers_count'], + 'created_at': value['created_at'], + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + 'first_mile_type': value['first_mile_type'], + 'has_postings_for_next_carriage': value['has_postings_for_next_carriage'], + 'integration_type': value['integration_type'], + 'is_container_label_printed': value['is_container_label_printed'], + 'is_partial': value['is_partial'], + 'partial_num': value['partial_num'], + 'retry_count': value['retry_count'], + 'status': value['status'], + 'tpl_provider_id': value['tpl_provider_id'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/CarriageCarriageGetResponseCancelAvailability.d.ts b/dist/models/CarriageCarriageGetResponseCancelAvailability.d.ts new file mode 100644 index 0000000..f74f110 --- /dev/null +++ b/dist/models/CarriageCarriageGetResponseCancelAvailability.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Возможность отмены. + * @export + * @interface CarriageCarriageGetResponseCancelAvailability + */ +export interface CarriageCarriageGetResponseCancelAvailability { + /** + * `true`, если перевозку можно отменить. + * + * @type {boolean} + * @memberof CarriageCarriageGetResponseCancelAvailability + */ + is_cancel_available?: boolean; + /** + * Причина, почему перевозку нельзя отменить. + * @type {string} + * @memberof CarriageCarriageGetResponseCancelAvailability + */ + reason?: string; +} +/** + * Check if a given object implements the CarriageCarriageGetResponseCancelAvailability interface. + */ +export declare function instanceOfCarriageCarriageGetResponseCancelAvailability(value: object): value is CarriageCarriageGetResponseCancelAvailability; +export declare function CarriageCarriageGetResponseCancelAvailabilityFromJSON(json: any): CarriageCarriageGetResponseCancelAvailability; +export declare function CarriageCarriageGetResponseCancelAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageCarriageGetResponseCancelAvailability; +export declare function CarriageCarriageGetResponseCancelAvailabilityToJSON(value?: CarriageCarriageGetResponseCancelAvailability | null): any; diff --git a/dist/models/CarriageCarriageGetResponseCancelAvailability.js b/dist/models/CarriageCarriageGetResponseCancelAvailability.js new file mode 100644 index 0000000..b3952bf --- /dev/null +++ b/dist/models/CarriageCarriageGetResponseCancelAvailability.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriageCarriageGetResponseCancelAvailability = instanceOfCarriageCarriageGetResponseCancelAvailability; +exports.CarriageCarriageGetResponseCancelAvailabilityFromJSON = CarriageCarriageGetResponseCancelAvailabilityFromJSON; +exports.CarriageCarriageGetResponseCancelAvailabilityFromJSONTyped = CarriageCarriageGetResponseCancelAvailabilityFromJSONTyped; +exports.CarriageCarriageGetResponseCancelAvailabilityToJSON = CarriageCarriageGetResponseCancelAvailabilityToJSON; +/** + * Check if a given object implements the CarriageCarriageGetResponseCancelAvailability interface. + */ +function instanceOfCarriageCarriageGetResponseCancelAvailability(value) { + return true; +} +function CarriageCarriageGetResponseCancelAvailabilityFromJSON(json) { + return CarriageCarriageGetResponseCancelAvailabilityFromJSONTyped(json, false); +} +function CarriageCarriageGetResponseCancelAvailabilityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_cancel_available': json['is_cancel_available'] == null ? undefined : json['is_cancel_available'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} +function CarriageCarriageGetResponseCancelAvailabilityToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_cancel_available': value['is_cancel_available'], + 'reason': value['reason'], + }; +} diff --git a/dist/models/CarriageDeliveryListV2RequestFilter.d.ts b/dist/models/CarriageDeliveryListV2RequestFilter.d.ts new file mode 100644 index 0000000..566311d --- /dev/null +++ b/dist/models/CarriageDeliveryListV2RequestFilter.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска методов доставки и отгрузок. + * @export + * @interface CarriageDeliveryListV2RequestFilter + */ +export interface CarriageDeliveryListV2RequestFilter { + /** + * Идентификатор метода доставки. Для realFBS-складов получите его с помощью метода [/v2/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodListV2). Для FBS-складов используйте значение параметра `warehouse_id`. Его можно получить с помощью метода [/v2/warehouse/list](#operation/WarehouseListV2). + * @type {number} + * @memberof CarriageDeliveryListV2RequestFilter + */ + delivery_method_id?: number; + /** + * Дата отгрузки. По умолчанию — текущая дата. + * @type {string} + * @memberof CarriageDeliveryListV2RequestFilter + */ + departure_date?: string; +} +/** + * Check if a given object implements the CarriageDeliveryListV2RequestFilter interface. + */ +export declare function instanceOfCarriageDeliveryListV2RequestFilter(value: object): value is CarriageDeliveryListV2RequestFilter; +export declare function CarriageDeliveryListV2RequestFilterFromJSON(json: any): CarriageDeliveryListV2RequestFilter; +export declare function CarriageDeliveryListV2RequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageDeliveryListV2RequestFilter; +export declare function CarriageDeliveryListV2RequestFilterToJSON(value?: CarriageDeliveryListV2RequestFilter | null): any; diff --git a/dist/models/CarriageDeliveryListV2RequestFilter.js b/dist/models/CarriageDeliveryListV2RequestFilter.js new file mode 100644 index 0000000..25dc115 --- /dev/null +++ b/dist/models/CarriageDeliveryListV2RequestFilter.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriageDeliveryListV2RequestFilter = instanceOfCarriageDeliveryListV2RequestFilter; +exports.CarriageDeliveryListV2RequestFilterFromJSON = CarriageDeliveryListV2RequestFilterFromJSON; +exports.CarriageDeliveryListV2RequestFilterFromJSONTyped = CarriageDeliveryListV2RequestFilterFromJSONTyped; +exports.CarriageDeliveryListV2RequestFilterToJSON = CarriageDeliveryListV2RequestFilterToJSON; +/** + * Check if a given object implements the CarriageDeliveryListV2RequestFilter interface. + */ +function instanceOfCarriageDeliveryListV2RequestFilter(value) { + return true; +} +function CarriageDeliveryListV2RequestFilterFromJSON(json) { + return CarriageDeliveryListV2RequestFilterFromJSONTyped(json, false); +} +function CarriageDeliveryListV2RequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +function CarriageDeliveryListV2RequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/models/CarriageDeliveryListV2ResponseDeliveryMethod.d.ts b/dist/models/CarriageDeliveryListV2ResponseDeliveryMethod.d.ts new file mode 100644 index 0000000..9b6ef7b --- /dev/null +++ b/dist/models/CarriageDeliveryListV2ResponseDeliveryMethod.d.ts @@ -0,0 +1,224 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodCarriage } from './DeliveryMethodCarriage'; +import type { DeliveryMethodError } from './DeliveryMethodError'; +/** + * + * @export + * @interface CarriageDeliveryListV2ResponseDeliveryMethod + */ +export interface CarriageDeliveryListV2ResponseDeliveryMethod { + /** + * Количество отправлений во всех отгрузках. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + carriage_postings_count?: number; + /** + * Список отгрузок. + * @type {Array} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + carriages?: Array; + /** + * Время начала сборки и часовой пояс времени склада. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + cut_in?: string; + /** + * Дата и время, до которых нужно собрать отправление. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + cutoff_at?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + delivery_method_id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + delivery_method_name?: string; + /** + * Статус метода доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + delivery_method_status?: string; + /** + * Дата отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + departure_date?: string; + /** + * Адрес точки отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + dropoff_address?: string; + /** + * Статус возможности смены точки отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + dropoff_change_availability?: string; + /** + * Идентификатор точки отгрузки. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + dropoff_point_id?: number; + /** + * Способ отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + dropoff_point_type?: string; + /** + * Список ошибок, которые возникли при обработке запроса. + * @type {Array} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + errors?: Array; + /** + * `true`, если точка отгрузки изменилась. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + first_mile_changing?: boolean; + /** + * Тип первой мили. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + first_mile_type?: string; + /** + * `true`, если на складе включена доверительная приёмка. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + has_entrusted_acceptance?: boolean; + /** + * Тип интеграции со службой доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + integration_type?: string; + /** + * `true`, если отгрузка не обязательна. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + is_optional_carriage?: boolean; + /** + * `true`, если отгрузка с предсортировкой. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + is_presort?: boolean; + /** + * `true`, если склад работает по схеме rFBS. + * + * @type {boolean} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + is_rfbs?: boolean; + /** + * Количество собранных обязательных отправлений. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + mandatory_packaged_count?: number; + /** + * Количество отправлений, которые нужно собрать. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + mandatory_postings_count?: number; + /** + * Количество собранных необязательных отправлений. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + optional_packaged_count?: number; + /** + * Рекомендуемое местное время отгрузки в пункт приёма заказов. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + recommended_time_local?: string; + /** + * Смещение часового пояса рекомендуемого времени отгрузки от UTC-0 в минутах. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + recommended_time_utc_offset_in_minutes?: number; + /** + * Начало таймслота в точке отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + timeslot_from?: string; + /** + * Окончание таймслота в точке отгрузки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + timeslot_to?: string; + /** + * Ссылка на иконку службы доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + tpl_provider_icon_url?: string; + /** + * Название службы доставки. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + tpl_provider_name?: string; + /** + * Город склада. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + warehouse_city?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof CarriageDeliveryListV2ResponseDeliveryMethod + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the CarriageDeliveryListV2ResponseDeliveryMethod interface. + */ +export declare function instanceOfCarriageDeliveryListV2ResponseDeliveryMethod(value: object): value is CarriageDeliveryListV2ResponseDeliveryMethod; +export declare function CarriageDeliveryListV2ResponseDeliveryMethodFromJSON(json: any): CarriageDeliveryListV2ResponseDeliveryMethod; +export declare function CarriageDeliveryListV2ResponseDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriageDeliveryListV2ResponseDeliveryMethod; +export declare function CarriageDeliveryListV2ResponseDeliveryMethodToJSON(value?: CarriageDeliveryListV2ResponseDeliveryMethod | null): any; diff --git a/dist/models/CarriageDeliveryListV2ResponseDeliveryMethod.js b/dist/models/CarriageDeliveryListV2ResponseDeliveryMethod.js new file mode 100644 index 0000000..001a89d --- /dev/null +++ b/dist/models/CarriageDeliveryListV2ResponseDeliveryMethod.js @@ -0,0 +1,108 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriageDeliveryListV2ResponseDeliveryMethod = instanceOfCarriageDeliveryListV2ResponseDeliveryMethod; +exports.CarriageDeliveryListV2ResponseDeliveryMethodFromJSON = CarriageDeliveryListV2ResponseDeliveryMethodFromJSON; +exports.CarriageDeliveryListV2ResponseDeliveryMethodFromJSONTyped = CarriageDeliveryListV2ResponseDeliveryMethodFromJSONTyped; +exports.CarriageDeliveryListV2ResponseDeliveryMethodToJSON = CarriageDeliveryListV2ResponseDeliveryMethodToJSON; +const DeliveryMethodCarriage_1 = require("./DeliveryMethodCarriage"); +const DeliveryMethodError_1 = require("./DeliveryMethodError"); +/** + * Check if a given object implements the CarriageDeliveryListV2ResponseDeliveryMethod interface. + */ +function instanceOfCarriageDeliveryListV2ResponseDeliveryMethod(value) { + return true; +} +function CarriageDeliveryListV2ResponseDeliveryMethodFromJSON(json) { + return CarriageDeliveryListV2ResponseDeliveryMethodFromJSONTyped(json, false); +} +function CarriageDeliveryListV2ResponseDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_postings_count': json['carriage_postings_count'] == null ? undefined : json['carriage_postings_count'], + 'carriages': json['carriages'] == null ? undefined : (json['carriages'].map(DeliveryMethodCarriage_1.DeliveryMethodCarriageFromJSON)), + 'cut_in': json['cut_in'] == null ? undefined : json['cut_in'], + 'cutoff_at': json['cutoff_at'] == null ? undefined : json['cutoff_at'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'delivery_method_name': json['delivery_method_name'] == null ? undefined : json['delivery_method_name'], + 'delivery_method_status': json['delivery_method_status'] == null ? undefined : json['delivery_method_status'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + 'dropoff_address': json['dropoff_address'] == null ? undefined : json['dropoff_address'], + 'dropoff_change_availability': json['dropoff_change_availability'] == null ? undefined : json['dropoff_change_availability'], + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'dropoff_point_type': json['dropoff_point_type'] == null ? undefined : json['dropoff_point_type'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(DeliveryMethodError_1.DeliveryMethodErrorFromJSON)), + 'first_mile_changing': json['first_mile_changing'] == null ? undefined : json['first_mile_changing'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'is_optional_carriage': json['is_optional_carriage'] == null ? undefined : json['is_optional_carriage'], + 'is_presort': json['is_presort'] == null ? undefined : json['is_presort'], + 'is_rfbs': json['is_rfbs'] == null ? undefined : json['is_rfbs'], + 'mandatory_packaged_count': json['mandatory_packaged_count'] == null ? undefined : json['mandatory_packaged_count'], + 'mandatory_postings_count': json['mandatory_postings_count'] == null ? undefined : json['mandatory_postings_count'], + 'optional_packaged_count': json['optional_packaged_count'] == null ? undefined : json['optional_packaged_count'], + 'recommended_time_local': json['recommended_time_local'] == null ? undefined : json['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': json['recommended_time_utc_offset_in_minutes'] == null ? undefined : json['recommended_time_utc_offset_in_minutes'], + 'timeslot_from': json['timeslot_from'] == null ? undefined : json['timeslot_from'], + 'timeslot_to': json['timeslot_to'] == null ? undefined : json['timeslot_to'], + 'tpl_provider_icon_url': json['tpl_provider_icon_url'] == null ? undefined : json['tpl_provider_icon_url'], + 'tpl_provider_name': json['tpl_provider_name'] == null ? undefined : json['tpl_provider_name'], + 'warehouse_city': json['warehouse_city'] == null ? undefined : json['warehouse_city'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function CarriageDeliveryListV2ResponseDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_postings_count': value['carriage_postings_count'], + 'carriages': value['carriages'] == null ? undefined : (value['carriages'].map(DeliveryMethodCarriage_1.DeliveryMethodCarriageToJSON)), + 'cut_in': value['cut_in'], + 'cutoff_at': value['cutoff_at'], + 'delivery_method_id': value['delivery_method_id'], + 'delivery_method_name': value['delivery_method_name'], + 'delivery_method_status': value['delivery_method_status'], + 'departure_date': value['departure_date'], + 'dropoff_address': value['dropoff_address'], + 'dropoff_change_availability': value['dropoff_change_availability'], + 'dropoff_point_id': value['dropoff_point_id'], + 'dropoff_point_type': value['dropoff_point_type'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(DeliveryMethodError_1.DeliveryMethodErrorToJSON)), + 'first_mile_changing': value['first_mile_changing'], + 'first_mile_type': value['first_mile_type'], + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'integration_type': value['integration_type'], + 'is_optional_carriage': value['is_optional_carriage'], + 'is_presort': value['is_presort'], + 'is_rfbs': value['is_rfbs'], + 'mandatory_packaged_count': value['mandatory_packaged_count'], + 'mandatory_postings_count': value['mandatory_postings_count'], + 'optional_packaged_count': value['optional_packaged_count'], + 'recommended_time_local': value['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': value['recommended_time_utc_offset_in_minutes'], + 'timeslot_from': value['timeslot_from'], + 'timeslot_to': value['timeslot_to'], + 'tpl_provider_icon_url': value['tpl_provider_icon_url'], + 'tpl_provider_name': value['tpl_provider_name'], + 'warehouse_city': value['warehouse_city'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/CarriagePickupFee.d.ts b/dist/models/CarriagePickupFee.d.ts new file mode 100644 index 0000000..135a24d --- /dev/null +++ b/dist/models/CarriagePickupFee.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость отгрузки pick-up. + * @export + * @interface CarriagePickupFee + */ +export interface CarriagePickupFee { + /** + * Код валюты. + * @type {string} + * @memberof CarriagePickupFee + */ + currency_code?: string; + /** + * Предварительная стоимость отгрузки курьеру Ozon. + * @type {number} + * @memberof CarriagePickupFee + */ + value?: number; +} +/** + * Check if a given object implements the CarriagePickupFee interface. + */ +export declare function instanceOfCarriagePickupFee(value: object): value is CarriagePickupFee; +export declare function CarriagePickupFeeFromJSON(json: any): CarriagePickupFee; +export declare function CarriagePickupFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CarriagePickupFee; +export declare function CarriagePickupFeeToJSON(value?: CarriagePickupFee | null): any; diff --git a/dist/models/CarriagePickupFee.js b/dist/models/CarriagePickupFee.js new file mode 100644 index 0000000..7ae0fa8 --- /dev/null +++ b/dist/models/CarriagePickupFee.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagePickupFee = instanceOfCarriagePickupFee; +exports.CarriagePickupFeeFromJSON = CarriagePickupFeeFromJSON; +exports.CarriagePickupFeeFromJSONTyped = CarriagePickupFeeFromJSONTyped; +exports.CarriagePickupFeeToJSON = CarriagePickupFeeToJSON; +/** + * Check if a given object implements the CarriagePickupFee interface. + */ +function instanceOfCarriagePickupFee(value) { + return true; +} +function CarriagePickupFeeFromJSON(json) { + return CarriagePickupFeeFromJSONTyped(json, false); +} +function CarriagePickupFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function CarriagePickupFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerApproveRequest.d.ts b/dist/models/Carriagev1CarriageContainerApproveRequest.d.ts new file mode 100644 index 0000000..6d95345 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerApproveRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerApproveRequest + */ +export interface Carriagev1CarriageContainerApproveRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerApproveRequest + */ + container_ids: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerApproveRequest(value: object): value is Carriagev1CarriageContainerApproveRequest; +export declare function Carriagev1CarriageContainerApproveRequestFromJSON(json: any): Carriagev1CarriageContainerApproveRequest; +export declare function Carriagev1CarriageContainerApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerApproveRequest; +export declare function Carriagev1CarriageContainerApproveRequestToJSON(value?: Carriagev1CarriageContainerApproveRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerApproveRequest.js b/dist/models/Carriagev1CarriageContainerApproveRequest.js new file mode 100644 index 0000000..53b2eee --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerApproveRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerApproveRequest = instanceOfCarriagev1CarriageContainerApproveRequest; +exports.Carriagev1CarriageContainerApproveRequestFromJSON = Carriagev1CarriageContainerApproveRequestFromJSON; +exports.Carriagev1CarriageContainerApproveRequestFromJSONTyped = Carriagev1CarriageContainerApproveRequestFromJSONTyped; +exports.Carriagev1CarriageContainerApproveRequestToJSON = Carriagev1CarriageContainerApproveRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveRequest interface. + */ +function instanceOfCarriagev1CarriageContainerApproveRequest(value) { + if (!('container_ids' in value) || value['container_ids'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerApproveRequestFromJSON(json) { + return Carriagev1CarriageContainerApproveRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerApproveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'], + }; +} +function Carriagev1CarriageContainerApproveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerApproveResponse.d.ts b/dist/models/Carriagev1CarriageContainerApproveResponse.d.ts new file mode 100644 index 0000000..95845dd --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerApproveResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerApproveResponseErrorContainers } from './Carriagev1CarriageContainerApproveResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerApproveResponse + */ +export interface Carriagev1CarriageContainerApproveResponse { + /** + * Ошибки по грузоместам. + * @type {Array} + * @memberof Carriagev1CarriageContainerApproveResponse + */ + error_containers?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerApproveResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerApproveResponse(value: object): value is Carriagev1CarriageContainerApproveResponse; +export declare function Carriagev1CarriageContainerApproveResponseFromJSON(json: any): Carriagev1CarriageContainerApproveResponse; +export declare function Carriagev1CarriageContainerApproveResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerApproveResponse; +export declare function Carriagev1CarriageContainerApproveResponseToJSON(value?: Carriagev1CarriageContainerApproveResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerApproveResponse.js b/dist/models/Carriagev1CarriageContainerApproveResponse.js new file mode 100644 index 0000000..8b2639b --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerApproveResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerApproveResponse = instanceOfCarriagev1CarriageContainerApproveResponse; +exports.Carriagev1CarriageContainerApproveResponseFromJSON = Carriagev1CarriageContainerApproveResponseFromJSON; +exports.Carriagev1CarriageContainerApproveResponseFromJSONTyped = Carriagev1CarriageContainerApproveResponseFromJSONTyped; +exports.Carriagev1CarriageContainerApproveResponseToJSON = Carriagev1CarriageContainerApproveResponseToJSON; +const Carriagev1CarriageContainerApproveResponseErrorContainers_1 = require("./Carriagev1CarriageContainerApproveResponseErrorContainers"); +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveResponse interface. + */ +function instanceOfCarriagev1CarriageContainerApproveResponse(value) { + return true; +} +function Carriagev1CarriageContainerApproveResponseFromJSON(json) { + return Carriagev1CarriageContainerApproveResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerApproveResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerApproveResponseErrorContainers_1.Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function Carriagev1CarriageContainerApproveResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerApproveResponseErrorContainers_1.Carriagev1CarriageContainerApproveResponseErrorContainersToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerApproveResponseErrorContainers.d.ts b/dist/models/Carriagev1CarriageContainerApproveResponseErrorContainers.d.ts new file mode 100644 index 0000000..d37ef75 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerApproveResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerApproveResponseErrorContainers + */ +export interface Carriagev1CarriageContainerApproveResponseErrorContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerApproveResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerApproveResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerApproveResponseErrorContainers(value: object): value is Carriagev1CarriageContainerApproveResponseErrorContainers; +export declare function Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerApproveResponseErrorContainers; +export declare function Carriagev1CarriageContainerApproveResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerApproveResponseErrorContainers; +export declare function Carriagev1CarriageContainerApproveResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerApproveResponseErrorContainers | null): any; diff --git a/dist/models/Carriagev1CarriageContainerApproveResponseErrorContainers.js b/dist/models/Carriagev1CarriageContainerApproveResponseErrorContainers.js new file mode 100644 index 0000000..334c1f7 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerApproveResponseErrorContainers.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerApproveResponseErrorContainers = instanceOfCarriagev1CarriageContainerApproveResponseErrorContainers; +exports.Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON = Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON; +exports.Carriagev1CarriageContainerApproveResponseErrorContainersFromJSONTyped = Carriagev1CarriageContainerApproveResponseErrorContainersFromJSONTyped; +exports.Carriagev1CarriageContainerApproveResponseErrorContainersToJSON = Carriagev1CarriageContainerApproveResponseErrorContainersToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerApproveResponseErrorContainers interface. + */ +function instanceOfCarriagev1CarriageContainerApproveResponseErrorContainers(value) { + return true; +} +function Carriagev1CarriageContainerApproveResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerApproveResponseErrorContainersFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerApproveResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +function Carriagev1CarriageContainerApproveResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerCancelRequest.d.ts b/dist/models/Carriagev1CarriageContainerCancelRequest.d.ts new file mode 100644 index 0000000..46f723b --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerCancelRequest + */ +export interface Carriagev1CarriageContainerCancelRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerCancelRequest + */ + container_ids: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCancelRequest(value: object): value is Carriagev1CarriageContainerCancelRequest; +export declare function Carriagev1CarriageContainerCancelRequestFromJSON(json: any): Carriagev1CarriageContainerCancelRequest; +export declare function Carriagev1CarriageContainerCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCancelRequest; +export declare function Carriagev1CarriageContainerCancelRequestToJSON(value?: Carriagev1CarriageContainerCancelRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerCancelRequest.js b/dist/models/Carriagev1CarriageContainerCancelRequest.js new file mode 100644 index 0000000..b16ae6f --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCancelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerCancelRequest = instanceOfCarriagev1CarriageContainerCancelRequest; +exports.Carriagev1CarriageContainerCancelRequestFromJSON = Carriagev1CarriageContainerCancelRequestFromJSON; +exports.Carriagev1CarriageContainerCancelRequestFromJSONTyped = Carriagev1CarriageContainerCancelRequestFromJSONTyped; +exports.Carriagev1CarriageContainerCancelRequestToJSON = Carriagev1CarriageContainerCancelRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelRequest interface. + */ +function instanceOfCarriagev1CarriageContainerCancelRequest(value) { + if (!('container_ids' in value) || value['container_ids'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerCancelRequestFromJSON(json) { + return Carriagev1CarriageContainerCancelRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'], + }; +} +function Carriagev1CarriageContainerCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerCancelResponse.d.ts b/dist/models/Carriagev1CarriageContainerCancelResponse.d.ts new file mode 100644 index 0000000..2c1803a --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCancelResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerCancelResponseErrorContainers } from './Carriagev1CarriageContainerCancelResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerCancelResponse + */ +export interface Carriagev1CarriageContainerCancelResponse { + /** + * Ошибки по грузоместам. + * @type {Array} + * @memberof Carriagev1CarriageContainerCancelResponse + */ + error_containers?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerCancelResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCancelResponse(value: object): value is Carriagev1CarriageContainerCancelResponse; +export declare function Carriagev1CarriageContainerCancelResponseFromJSON(json: any): Carriagev1CarriageContainerCancelResponse; +export declare function Carriagev1CarriageContainerCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCancelResponse; +export declare function Carriagev1CarriageContainerCancelResponseToJSON(value?: Carriagev1CarriageContainerCancelResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerCancelResponse.js b/dist/models/Carriagev1CarriageContainerCancelResponse.js new file mode 100644 index 0000000..0a37596 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCancelResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerCancelResponse = instanceOfCarriagev1CarriageContainerCancelResponse; +exports.Carriagev1CarriageContainerCancelResponseFromJSON = Carriagev1CarriageContainerCancelResponseFromJSON; +exports.Carriagev1CarriageContainerCancelResponseFromJSONTyped = Carriagev1CarriageContainerCancelResponseFromJSONTyped; +exports.Carriagev1CarriageContainerCancelResponseToJSON = Carriagev1CarriageContainerCancelResponseToJSON; +const Carriagev1CarriageContainerCancelResponseErrorContainers_1 = require("./Carriagev1CarriageContainerCancelResponseErrorContainers"); +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelResponse interface. + */ +function instanceOfCarriagev1CarriageContainerCancelResponse(value) { + return true; +} +function Carriagev1CarriageContainerCancelResponseFromJSON(json) { + return Carriagev1CarriageContainerCancelResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerCancelResponseErrorContainers_1.Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function Carriagev1CarriageContainerCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerCancelResponseErrorContainers_1.Carriagev1CarriageContainerCancelResponseErrorContainersToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerCancelResponseErrorContainers.d.ts b/dist/models/Carriagev1CarriageContainerCancelResponseErrorContainers.d.ts new file mode 100644 index 0000000..458526a --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCancelResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerCancelResponseErrorContainers + */ +export interface Carriagev1CarriageContainerCancelResponseErrorContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerCancelResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerCancelResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCancelResponseErrorContainers(value: object): value is Carriagev1CarriageContainerCancelResponseErrorContainers; +export declare function Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerCancelResponseErrorContainers; +export declare function Carriagev1CarriageContainerCancelResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCancelResponseErrorContainers; +export declare function Carriagev1CarriageContainerCancelResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerCancelResponseErrorContainers | null): any; diff --git a/dist/models/Carriagev1CarriageContainerCancelResponseErrorContainers.js b/dist/models/Carriagev1CarriageContainerCancelResponseErrorContainers.js new file mode 100644 index 0000000..1458579 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCancelResponseErrorContainers.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerCancelResponseErrorContainers = instanceOfCarriagev1CarriageContainerCancelResponseErrorContainers; +exports.Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON = Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON; +exports.Carriagev1CarriageContainerCancelResponseErrorContainersFromJSONTyped = Carriagev1CarriageContainerCancelResponseErrorContainersFromJSONTyped; +exports.Carriagev1CarriageContainerCancelResponseErrorContainersToJSON = Carriagev1CarriageContainerCancelResponseErrorContainersToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerCancelResponseErrorContainers interface. + */ +function instanceOfCarriagev1CarriageContainerCancelResponseErrorContainers(value) { + return true; +} +function Carriagev1CarriageContainerCancelResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerCancelResponseErrorContainersFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerCancelResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +function Carriagev1CarriageContainerCancelResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerCreateRequest.d.ts b/dist/models/Carriagev1CarriageContainerCreateRequest.d.ts new file mode 100644 index 0000000..eaac550 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCreateRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerCreateRequest + */ +export interface Carriagev1CarriageContainerCreateRequest { + /** + * Тип грузоместа: + * - `box` — коробка; + * - `pallet` — палета. + * + * @type {string} + * @memberof Carriagev1CarriageContainerCreateRequest + */ + cargo_type: string; + /** + * Количество грузомест. + * @type {number} + * @memberof Carriagev1CarriageContainerCreateRequest + */ + containers_count: number; + /** + * Тип сортировки: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerCreateRequest + */ + sort_type: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof Carriagev1CarriageContainerCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCreateRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCreateRequest(value: object): value is Carriagev1CarriageContainerCreateRequest; +export declare function Carriagev1CarriageContainerCreateRequestFromJSON(json: any): Carriagev1CarriageContainerCreateRequest; +export declare function Carriagev1CarriageContainerCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCreateRequest; +export declare function Carriagev1CarriageContainerCreateRequestToJSON(value?: Carriagev1CarriageContainerCreateRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerCreateRequest.js b/dist/models/Carriagev1CarriageContainerCreateRequest.js new file mode 100644 index 0000000..3d6e1ad --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCreateRequest.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerCreateRequest = instanceOfCarriagev1CarriageContainerCreateRequest; +exports.Carriagev1CarriageContainerCreateRequestFromJSON = Carriagev1CarriageContainerCreateRequestFromJSON; +exports.Carriagev1CarriageContainerCreateRequestFromJSONTyped = Carriagev1CarriageContainerCreateRequestFromJSONTyped; +exports.Carriagev1CarriageContainerCreateRequestToJSON = Carriagev1CarriageContainerCreateRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerCreateRequest interface. + */ +function instanceOfCarriagev1CarriageContainerCreateRequest(value) { + if (!('cargo_type' in value) || value['cargo_type'] === undefined) + return false; + if (!('containers_count' in value) || value['containers_count'] === undefined) + return false; + if (!('sort_type' in value) || value['sort_type'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerCreateRequestFromJSON(json) { + return Carriagev1CarriageContainerCreateRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_type': json['cargo_type'], + 'containers_count': json['containers_count'], + 'sort_type': json['sort_type'], + 'warehouse_id': json['warehouse_id'], + }; +} +function Carriagev1CarriageContainerCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_type': value['cargo_type'], + 'containers_count': value['containers_count'], + 'sort_type': value['sort_type'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerCreateResponse.d.ts b/dist/models/Carriagev1CarriageContainerCreateResponse.d.ts new file mode 100644 index 0000000..bb1af18 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerCreateResponse + */ +export interface Carriagev1CarriageContainerCreateResponse { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerCreateResponse + */ + container_ids?: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerCreateResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerCreateResponse(value: object): value is Carriagev1CarriageContainerCreateResponse; +export declare function Carriagev1CarriageContainerCreateResponseFromJSON(json: any): Carriagev1CarriageContainerCreateResponse; +export declare function Carriagev1CarriageContainerCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerCreateResponse; +export declare function Carriagev1CarriageContainerCreateResponseToJSON(value?: Carriagev1CarriageContainerCreateResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerCreateResponse.js b/dist/models/Carriagev1CarriageContainerCreateResponse.js new file mode 100644 index 0000000..db6d4bd --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerCreateResponse = instanceOfCarriagev1CarriageContainerCreateResponse; +exports.Carriagev1CarriageContainerCreateResponseFromJSON = Carriagev1CarriageContainerCreateResponseFromJSON; +exports.Carriagev1CarriageContainerCreateResponseFromJSONTyped = Carriagev1CarriageContainerCreateResponseFromJSONTyped; +exports.Carriagev1CarriageContainerCreateResponseToJSON = Carriagev1CarriageContainerCreateResponseToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerCreateResponse interface. + */ +function instanceOfCarriagev1CarriageContainerCreateResponse(value) { + return true; +} +function Carriagev1CarriageContainerCreateResponseFromJSON(json) { + return Carriagev1CarriageContainerCreateResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'] == null ? undefined : json['container_ids'], + }; +} +function Carriagev1CarriageContainerCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerDocumentGetRequest.d.ts b/dist/models/Carriagev1CarriageContainerDocumentGetRequest.d.ts new file mode 100644 index 0000000..443a9e1 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerDocumentGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerDocumentGetRequest + */ +export interface Carriagev1CarriageContainerDocumentGetRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerDocumentGetRequest + */ + container_ids: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerDocumentGetRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerDocumentGetRequest(value: object): value is Carriagev1CarriageContainerDocumentGetRequest; +export declare function Carriagev1CarriageContainerDocumentGetRequestFromJSON(json: any): Carriagev1CarriageContainerDocumentGetRequest; +export declare function Carriagev1CarriageContainerDocumentGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerDocumentGetRequest; +export declare function Carriagev1CarriageContainerDocumentGetRequestToJSON(value?: Carriagev1CarriageContainerDocumentGetRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerDocumentGetRequest.js b/dist/models/Carriagev1CarriageContainerDocumentGetRequest.js new file mode 100644 index 0000000..20fd1b9 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerDocumentGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerDocumentGetRequest = instanceOfCarriagev1CarriageContainerDocumentGetRequest; +exports.Carriagev1CarriageContainerDocumentGetRequestFromJSON = Carriagev1CarriageContainerDocumentGetRequestFromJSON; +exports.Carriagev1CarriageContainerDocumentGetRequestFromJSONTyped = Carriagev1CarriageContainerDocumentGetRequestFromJSONTyped; +exports.Carriagev1CarriageContainerDocumentGetRequestToJSON = Carriagev1CarriageContainerDocumentGetRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerDocumentGetRequest interface. + */ +function instanceOfCarriagev1CarriageContainerDocumentGetRequest(value) { + if (!('container_ids' in value) || value['container_ids'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerDocumentGetRequestFromJSON(json) { + return Carriagev1CarriageContainerDocumentGetRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerDocumentGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'], + }; +} +function Carriagev1CarriageContainerDocumentGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerDocumentGetResponse.d.ts b/dist/models/Carriagev1CarriageContainerDocumentGetResponse.d.ts new file mode 100644 index 0000000..b6e8101 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerDocumentGetResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerDocumentGetResponse + */ +export interface Carriagev1CarriageContainerDocumentGetResponse { + /** + * Тип файла: application или pdf. + * + * @type {string} + * @memberof Carriagev1CarriageContainerDocumentGetResponse + */ + content_type?: string; + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof Carriagev1CarriageContainerDocumentGetResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof Carriagev1CarriageContainerDocumentGetResponse + */ + file_name?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerDocumentGetResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerDocumentGetResponse(value: object): value is Carriagev1CarriageContainerDocumentGetResponse; +export declare function Carriagev1CarriageContainerDocumentGetResponseFromJSON(json: any): Carriagev1CarriageContainerDocumentGetResponse; +export declare function Carriagev1CarriageContainerDocumentGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerDocumentGetResponse; +export declare function Carriagev1CarriageContainerDocumentGetResponseToJSON(value?: Carriagev1CarriageContainerDocumentGetResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerDocumentGetResponse.js b/dist/models/Carriagev1CarriageContainerDocumentGetResponse.js new file mode 100644 index 0000000..8186ebf --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerDocumentGetResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerDocumentGetResponse = instanceOfCarriagev1CarriageContainerDocumentGetResponse; +exports.Carriagev1CarriageContainerDocumentGetResponseFromJSON = Carriagev1CarriageContainerDocumentGetResponseFromJSON; +exports.Carriagev1CarriageContainerDocumentGetResponseFromJSONTyped = Carriagev1CarriageContainerDocumentGetResponseFromJSONTyped; +exports.Carriagev1CarriageContainerDocumentGetResponseToJSON = Carriagev1CarriageContainerDocumentGetResponseToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerDocumentGetResponse interface. + */ +function instanceOfCarriagev1CarriageContainerDocumentGetResponse(value) { + return true; +} +function Carriagev1CarriageContainerDocumentGetResponseFromJSON(json) { + return Carriagev1CarriageContainerDocumentGetResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerDocumentGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + }; +} +function Carriagev1CarriageContainerDocumentGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'content_type': value['content_type'], + 'file_content': value['file_content'], + 'file_name': value['file_name'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerFillRequest.d.ts b/dist/models/Carriagev1CarriageContainerFillRequest.d.ts new file mode 100644 index 0000000..32201d6 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerFillRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerFillRequest + */ +export interface Carriagev1CarriageContainerFillRequest { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerFillRequest + */ + container_id: number; + /** + * Номера отправлений. + * @type {Array} + * @memberof Carriagev1CarriageContainerFillRequest + */ + posting_numbers: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerFillRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerFillRequest(value: object): value is Carriagev1CarriageContainerFillRequest; +export declare function Carriagev1CarriageContainerFillRequestFromJSON(json: any): Carriagev1CarriageContainerFillRequest; +export declare function Carriagev1CarriageContainerFillRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerFillRequest; +export declare function Carriagev1CarriageContainerFillRequestToJSON(value?: Carriagev1CarriageContainerFillRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerFillRequest.js b/dist/models/Carriagev1CarriageContainerFillRequest.js new file mode 100644 index 0000000..35f9919 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerFillRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerFillRequest = instanceOfCarriagev1CarriageContainerFillRequest; +exports.Carriagev1CarriageContainerFillRequestFromJSON = Carriagev1CarriageContainerFillRequestFromJSON; +exports.Carriagev1CarriageContainerFillRequestFromJSONTyped = Carriagev1CarriageContainerFillRequestFromJSONTyped; +exports.Carriagev1CarriageContainerFillRequestToJSON = Carriagev1CarriageContainerFillRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerFillRequest interface. + */ +function instanceOfCarriagev1CarriageContainerFillRequest(value) { + if (!('container_id' in value) || value['container_id'] === undefined) + return false; + if (!('posting_numbers' in value) || value['posting_numbers'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerFillRequestFromJSON(json) { + return Carriagev1CarriageContainerFillRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerFillRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'], + 'posting_numbers': json['posting_numbers'], + }; +} +function Carriagev1CarriageContainerFillRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerFillResponse.d.ts b/dist/models/Carriagev1CarriageContainerFillResponse.d.ts new file mode 100644 index 0000000..53ae6b1 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerFillResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerFillResponseErrorPostings } from './Carriagev1CarriageContainerFillResponseErrorPostings'; +/** + * + * @export + * @interface Carriagev1CarriageContainerFillResponse + */ +export interface Carriagev1CarriageContainerFillResponse { + /** + * Ошибки по отправлениям. + * @type {Array} + * @memberof Carriagev1CarriageContainerFillResponse + */ + error_postings?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerFillResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerFillResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerFillResponse(value: object): value is Carriagev1CarriageContainerFillResponse; +export declare function Carriagev1CarriageContainerFillResponseFromJSON(json: any): Carriagev1CarriageContainerFillResponse; +export declare function Carriagev1CarriageContainerFillResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerFillResponse; +export declare function Carriagev1CarriageContainerFillResponseToJSON(value?: Carriagev1CarriageContainerFillResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerFillResponse.js b/dist/models/Carriagev1CarriageContainerFillResponse.js new file mode 100644 index 0000000..7ff2e2b --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerFillResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerFillResponse = instanceOfCarriagev1CarriageContainerFillResponse; +exports.Carriagev1CarriageContainerFillResponseFromJSON = Carriagev1CarriageContainerFillResponseFromJSON; +exports.Carriagev1CarriageContainerFillResponseFromJSONTyped = Carriagev1CarriageContainerFillResponseFromJSONTyped; +exports.Carriagev1CarriageContainerFillResponseToJSON = Carriagev1CarriageContainerFillResponseToJSON; +const Carriagev1CarriageContainerFillResponseErrorPostings_1 = require("./Carriagev1CarriageContainerFillResponseErrorPostings"); +/** + * Check if a given object implements the Carriagev1CarriageContainerFillResponse interface. + */ +function instanceOfCarriagev1CarriageContainerFillResponse(value) { + return true; +} +function Carriagev1CarriageContainerFillResponseFromJSON(json) { + return Carriagev1CarriageContainerFillResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerFillResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_postings': json['error_postings'] == null ? undefined : (json['error_postings'].map(Carriagev1CarriageContainerFillResponseErrorPostings_1.Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function Carriagev1CarriageContainerFillResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_postings': value['error_postings'] == null ? undefined : (value['error_postings'].map(Carriagev1CarriageContainerFillResponseErrorPostings_1.Carriagev1CarriageContainerFillResponseErrorPostingsToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerFillResponseErrorPostings.d.ts b/dist/models/Carriagev1CarriageContainerFillResponseErrorPostings.d.ts new file mode 100644 index 0000000..f2a9f95 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerFillResponseErrorPostings.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerFillResponseErrorPostings + */ +export interface Carriagev1CarriageContainerFillResponseErrorPostings { + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerFillResponseErrorPostings + */ + error_message?: string; + /** + * Номер отправления. + * @type {string} + * @memberof Carriagev1CarriageContainerFillResponseErrorPostings + */ + posting_number?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerFillResponseErrorPostings interface. + */ +export declare function instanceOfCarriagev1CarriageContainerFillResponseErrorPostings(value: object): value is Carriagev1CarriageContainerFillResponseErrorPostings; +export declare function Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON(json: any): Carriagev1CarriageContainerFillResponseErrorPostings; +export declare function Carriagev1CarriageContainerFillResponseErrorPostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerFillResponseErrorPostings; +export declare function Carriagev1CarriageContainerFillResponseErrorPostingsToJSON(value?: Carriagev1CarriageContainerFillResponseErrorPostings | null): any; diff --git a/dist/models/Carriagev1CarriageContainerFillResponseErrorPostings.js b/dist/models/Carriagev1CarriageContainerFillResponseErrorPostings.js new file mode 100644 index 0000000..b1f0cc8 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerFillResponseErrorPostings.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerFillResponseErrorPostings = instanceOfCarriagev1CarriageContainerFillResponseErrorPostings; +exports.Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON = Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON; +exports.Carriagev1CarriageContainerFillResponseErrorPostingsFromJSONTyped = Carriagev1CarriageContainerFillResponseErrorPostingsFromJSONTyped; +exports.Carriagev1CarriageContainerFillResponseErrorPostingsToJSON = Carriagev1CarriageContainerFillResponseErrorPostingsToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerFillResponseErrorPostings interface. + */ +function instanceOfCarriagev1CarriageContainerFillResponseErrorPostings(value) { + return true; +} +function Carriagev1CarriageContainerFillResponseErrorPostingsFromJSON(json) { + return Carriagev1CarriageContainerFillResponseErrorPostingsFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerFillResponseErrorPostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +function Carriagev1CarriageContainerFillResponseErrorPostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': value['error_message'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerGetRequest.d.ts b/dist/models/Carriagev1CarriageContainerGetRequest.d.ts new file mode 100644 index 0000000..b8efce6 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerGetRequest + */ +export interface Carriagev1CarriageContainerGetRequest { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerGetRequest + */ + container_id: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerGetRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerGetRequest(value: object): value is Carriagev1CarriageContainerGetRequest; +export declare function Carriagev1CarriageContainerGetRequestFromJSON(json: any): Carriagev1CarriageContainerGetRequest; +export declare function Carriagev1CarriageContainerGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerGetRequest; +export declare function Carriagev1CarriageContainerGetRequestToJSON(value?: Carriagev1CarriageContainerGetRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerGetRequest.js b/dist/models/Carriagev1CarriageContainerGetRequest.js new file mode 100644 index 0000000..b16f748 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerGetRequest = instanceOfCarriagev1CarriageContainerGetRequest; +exports.Carriagev1CarriageContainerGetRequestFromJSON = Carriagev1CarriageContainerGetRequestFromJSON; +exports.Carriagev1CarriageContainerGetRequestFromJSONTyped = Carriagev1CarriageContainerGetRequestFromJSONTyped; +exports.Carriagev1CarriageContainerGetRequestToJSON = Carriagev1CarriageContainerGetRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerGetRequest interface. + */ +function instanceOfCarriagev1CarriageContainerGetRequest(value) { + if (!('container_id' in value) || value['container_id'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerGetRequestFromJSON(json) { + return Carriagev1CarriageContainerGetRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'], + }; +} +function Carriagev1CarriageContainerGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerGetResponse.d.ts b/dist/models/Carriagev1CarriageContainerGetResponse.d.ts new file mode 100644 index 0000000..8e08529 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerGetResponse.d.ts @@ -0,0 +1,128 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerGetResponsePostings } from './Carriagev1CarriageContainerGetResponsePostings'; +/** + * + * @export + * @interface Carriagev1CarriageContainerGetResponse + */ +export interface Carriagev1CarriageContainerGetResponse { + /** + * Действия с грузоместом: + * - `approve` — подтвердить состав; + * - `get_label_container` — получить этикетку; + * - `delete` — удалить; + * - `place_box_into_pallet` — добавить коробку на палету; + * - `remove_box_from_pallet` — убрать коробку с палеты; + * - `place_posting_into_container` — перенести отправление в другое грузоместо; + * - `remove_posting_from_container` — убрать отправление из грузоместа; + * - `get_documents` — получить транспортную накладную. + * + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponse + */ + available_actions?: Array; + /** + * Тип грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + cargo_type?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + container_id?: number; + /** + * Порядковый номер грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + container_number?: number; + /** + * Количество отправлений в грузоместе. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + count_of_postings?: number; + /** + * Дата создания грузоместа в UTC. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + created_at?: string; + /** + * Идентификатор родительского грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + parent_container_id?: number; + /** + * Список отправлений. + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponse + */ + postings?: Array; + /** + * Идентификаторы дочерних грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponse + */ + related_container_ids?: Array; + /** + * Тип сортировки грузоместа: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + sort_type?: string; + /** + * Статус грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + status?: string; + /** + * Дата создания грузоместа в часовом поясе склада. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + warehouse_date?: string; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponse + */ + warehouse_name?: string; + /** + * Суммарный вес отправлений в грузоместе, кг. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponse + */ + weight?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerGetResponse(value: object): value is Carriagev1CarriageContainerGetResponse; +export declare function Carriagev1CarriageContainerGetResponseFromJSON(json: any): Carriagev1CarriageContainerGetResponse; +export declare function Carriagev1CarriageContainerGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerGetResponse; +export declare function Carriagev1CarriageContainerGetResponseToJSON(value?: Carriagev1CarriageContainerGetResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerGetResponse.js b/dist/models/Carriagev1CarriageContainerGetResponse.js new file mode 100644 index 0000000..3d7e07f --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerGetResponse.js @@ -0,0 +1,73 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerGetResponse = instanceOfCarriagev1CarriageContainerGetResponse; +exports.Carriagev1CarriageContainerGetResponseFromJSON = Carriagev1CarriageContainerGetResponseFromJSON; +exports.Carriagev1CarriageContainerGetResponseFromJSONTyped = Carriagev1CarriageContainerGetResponseFromJSONTyped; +exports.Carriagev1CarriageContainerGetResponseToJSON = Carriagev1CarriageContainerGetResponseToJSON; +const Carriagev1CarriageContainerGetResponsePostings_1 = require("./Carriagev1CarriageContainerGetResponsePostings"); +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponse interface. + */ +function instanceOfCarriagev1CarriageContainerGetResponse(value) { + return true; +} +function Carriagev1CarriageContainerGetResponseFromJSON(json) { + return Carriagev1CarriageContainerGetResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'cargo_type': json['cargo_type'] == null ? undefined : json['cargo_type'], + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'container_number': json['container_number'] == null ? undefined : json['container_number'], + 'count_of_postings': json['count_of_postings'] == null ? undefined : json['count_of_postings'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'parent_container_id': json['parent_container_id'] == null ? undefined : json['parent_container_id'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(Carriagev1CarriageContainerGetResponsePostings_1.Carriagev1CarriageContainerGetResponsePostingsFromJSON)), + 'related_container_ids': json['related_container_ids'] == null ? undefined : json['related_container_ids'], + 'sort_type': json['sort_type'] == null ? undefined : json['sort_type'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_date': json['warehouse_date'] == null ? undefined : json['warehouse_date'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function Carriagev1CarriageContainerGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_actions': value['available_actions'], + 'cargo_type': value['cargo_type'], + 'container_id': value['container_id'], + 'container_number': value['container_number'], + 'count_of_postings': value['count_of_postings'], + 'created_at': value['created_at'], + 'parent_container_id': value['parent_container_id'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(Carriagev1CarriageContainerGetResponsePostings_1.Carriagev1CarriageContainerGetResponsePostingsToJSON)), + 'related_container_ids': value['related_container_ids'], + 'sort_type': value['sort_type'], + 'status': value['status'], + 'warehouse_date': value['warehouse_date'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerGetResponsePostings.d.ts b/dist/models/Carriagev1CarriageContainerGetResponsePostings.d.ts new file mode 100644 index 0000000..14d738f --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerGetResponsePostings.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerGetResponsePostingsProducts } from './Carriagev1CarriageContainerGetResponsePostingsProducts'; +/** + * + * @export + * @interface Carriagev1CarriageContainerGetResponsePostings + */ +export interface Carriagev1CarriageContainerGetResponsePostings { + /** + * Действия с отправлением. + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + available_actions?: Array; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + in_process_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + products?: Array; + /** + * Тип сортировки грузоместа: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + sort_type?: string; + /** + * Вес отправления, кг. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponsePostings + */ + weight?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponsePostings interface. + */ +export declare function instanceOfCarriagev1CarriageContainerGetResponsePostings(value: object): value is Carriagev1CarriageContainerGetResponsePostings; +export declare function Carriagev1CarriageContainerGetResponsePostingsFromJSON(json: any): Carriagev1CarriageContainerGetResponsePostings; +export declare function Carriagev1CarriageContainerGetResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerGetResponsePostings; +export declare function Carriagev1CarriageContainerGetResponsePostingsToJSON(value?: Carriagev1CarriageContainerGetResponsePostings | null): any; diff --git a/dist/models/Carriagev1CarriageContainerGetResponsePostings.js b/dist/models/Carriagev1CarriageContainerGetResponsePostings.js new file mode 100644 index 0000000..216a5f7 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerGetResponsePostings.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerGetResponsePostings = instanceOfCarriagev1CarriageContainerGetResponsePostings; +exports.Carriagev1CarriageContainerGetResponsePostingsFromJSON = Carriagev1CarriageContainerGetResponsePostingsFromJSON; +exports.Carriagev1CarriageContainerGetResponsePostingsFromJSONTyped = Carriagev1CarriageContainerGetResponsePostingsFromJSONTyped; +exports.Carriagev1CarriageContainerGetResponsePostingsToJSON = Carriagev1CarriageContainerGetResponsePostingsToJSON; +const Carriagev1CarriageContainerGetResponsePostingsProducts_1 = require("./Carriagev1CarriageContainerGetResponsePostingsProducts"); +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponsePostings interface. + */ +function instanceOfCarriagev1CarriageContainerGetResponsePostings(value) { + return true; +} +function Carriagev1CarriageContainerGetResponsePostingsFromJSON(json) { + return Carriagev1CarriageContainerGetResponsePostingsFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerGetResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(Carriagev1CarriageContainerGetResponsePostingsProducts_1.Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON)), + 'sort_type': json['sort_type'] == null ? undefined : json['sort_type'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function Carriagev1CarriageContainerGetResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_actions': value['available_actions'], + 'in_process_at': value['in_process_at'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(Carriagev1CarriageContainerGetResponsePostingsProducts_1.Carriagev1CarriageContainerGetResponsePostingsProductsToJSON)), + 'sort_type': value['sort_type'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerGetResponsePostingsProducts.d.ts b/dist/models/Carriagev1CarriageContainerGetResponsePostingsProducts.d.ts new file mode 100644 index 0000000..1091306 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerGetResponsePostingsProducts.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerGetResponsePostingsProducts + */ +export interface Carriagev1CarriageContainerGetResponsePostingsProducts { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + sku?: number; + /** + * Название товара. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + offer_id?: string; + /** + * Количество экземпляров. + * @type {number} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + quantity?: number; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + picture_url?: string; + /** + * Цвет товара. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + product_color?: string; + /** + * Размер производителя. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + product_size_manufacturer?: string; + /** + * Российский размер. + * @type {string} + * @memberof Carriagev1CarriageContainerGetResponsePostingsProducts + */ + product_size_russian?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponsePostingsProducts interface. + */ +export declare function instanceOfCarriagev1CarriageContainerGetResponsePostingsProducts(value: object): value is Carriagev1CarriageContainerGetResponsePostingsProducts; +export declare function Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON(json: any): Carriagev1CarriageContainerGetResponsePostingsProducts; +export declare function Carriagev1CarriageContainerGetResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerGetResponsePostingsProducts; +export declare function Carriagev1CarriageContainerGetResponsePostingsProductsToJSON(value?: Carriagev1CarriageContainerGetResponsePostingsProducts | null): any; diff --git a/dist/models/Carriagev1CarriageContainerGetResponsePostingsProducts.js b/dist/models/Carriagev1CarriageContainerGetResponsePostingsProducts.js new file mode 100644 index 0000000..cb5c75a --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerGetResponsePostingsProducts.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerGetResponsePostingsProducts = instanceOfCarriagev1CarriageContainerGetResponsePostingsProducts; +exports.Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON = Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON; +exports.Carriagev1CarriageContainerGetResponsePostingsProductsFromJSONTyped = Carriagev1CarriageContainerGetResponsePostingsProductsFromJSONTyped; +exports.Carriagev1CarriageContainerGetResponsePostingsProductsToJSON = Carriagev1CarriageContainerGetResponsePostingsProductsToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerGetResponsePostingsProducts interface. + */ +function instanceOfCarriagev1CarriageContainerGetResponsePostingsProducts(value) { + return true; +} +function Carriagev1CarriageContainerGetResponsePostingsProductsFromJSON(json) { + return Carriagev1CarriageContainerGetResponsePostingsProductsFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerGetResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'product_color': json['product_color'] == null ? undefined : json['product_color'], + 'product_size_manufacturer': json['product_size_manufacturer'] == null ? undefined : json['product_size_manufacturer'], + 'product_size_russian': json['product_size_russian'] == null ? undefined : json['product_size_russian'], + }; +} +function Carriagev1CarriageContainerGetResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'picture_url': value['picture_url'], + 'product_color': value['product_color'], + 'product_size_manufacturer': value['product_size_manufacturer'], + 'product_size_russian': value['product_size_russian'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerLabelGetRequest.d.ts b/dist/models/Carriagev1CarriageContainerLabelGetRequest.d.ts new file mode 100644 index 0000000..c5fcd59 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerLabelGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerLabelGetRequest + */ +export interface Carriagev1CarriageContainerLabelGetRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerLabelGetRequest + */ + container_ids?: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerLabelGetRequest(value: object): value is Carriagev1CarriageContainerLabelGetRequest; +export declare function Carriagev1CarriageContainerLabelGetRequestFromJSON(json: any): Carriagev1CarriageContainerLabelGetRequest; +export declare function Carriagev1CarriageContainerLabelGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerLabelGetRequest; +export declare function Carriagev1CarriageContainerLabelGetRequestToJSON(value?: Carriagev1CarriageContainerLabelGetRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerLabelGetRequest.js b/dist/models/Carriagev1CarriageContainerLabelGetRequest.js new file mode 100644 index 0000000..b830769 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerLabelGetRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerLabelGetRequest = instanceOfCarriagev1CarriageContainerLabelGetRequest; +exports.Carriagev1CarriageContainerLabelGetRequestFromJSON = Carriagev1CarriageContainerLabelGetRequestFromJSON; +exports.Carriagev1CarriageContainerLabelGetRequestFromJSONTyped = Carriagev1CarriageContainerLabelGetRequestFromJSONTyped; +exports.Carriagev1CarriageContainerLabelGetRequestToJSON = Carriagev1CarriageContainerLabelGetRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetRequest interface. + */ +function instanceOfCarriagev1CarriageContainerLabelGetRequest(value) { + return true; +} +function Carriagev1CarriageContainerLabelGetRequestFromJSON(json) { + return Carriagev1CarriageContainerLabelGetRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerLabelGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'] == null ? undefined : json['container_ids'], + }; +} +function Carriagev1CarriageContainerLabelGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerLabelGetResponse.d.ts b/dist/models/Carriagev1CarriageContainerLabelGetResponse.d.ts new file mode 100644 index 0000000..6309c6a --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerLabelGetResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerLabelGetResponseContent } from './Carriagev1CarriageContainerLabelGetResponseContent'; +import type { Carriagev1CarriageContainerLabelGetResponseErrorContainers } from './Carriagev1CarriageContainerLabelGetResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerLabelGetResponse + */ +export interface Carriagev1CarriageContainerLabelGetResponse { + /** + * + * @type {Carriagev1CarriageContainerLabelGetResponseContent} + * @memberof Carriagev1CarriageContainerLabelGetResponse + */ + content?: Carriagev1CarriageContainerLabelGetResponseContent; + /** + * Ошибки грузомест, по которым не удалось сформировать этикетку. + * @type {Array} + * @memberof Carriagev1CarriageContainerLabelGetResponse + */ + error_containers?: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerLabelGetResponse(value: object): value is Carriagev1CarriageContainerLabelGetResponse; +export declare function Carriagev1CarriageContainerLabelGetResponseFromJSON(json: any): Carriagev1CarriageContainerLabelGetResponse; +export declare function Carriagev1CarriageContainerLabelGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerLabelGetResponse; +export declare function Carriagev1CarriageContainerLabelGetResponseToJSON(value?: Carriagev1CarriageContainerLabelGetResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerLabelGetResponse.js b/dist/models/Carriagev1CarriageContainerLabelGetResponse.js new file mode 100644 index 0000000..6275f92 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerLabelGetResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerLabelGetResponse = instanceOfCarriagev1CarriageContainerLabelGetResponse; +exports.Carriagev1CarriageContainerLabelGetResponseFromJSON = Carriagev1CarriageContainerLabelGetResponseFromJSON; +exports.Carriagev1CarriageContainerLabelGetResponseFromJSONTyped = Carriagev1CarriageContainerLabelGetResponseFromJSONTyped; +exports.Carriagev1CarriageContainerLabelGetResponseToJSON = Carriagev1CarriageContainerLabelGetResponseToJSON; +const Carriagev1CarriageContainerLabelGetResponseContent_1 = require("./Carriagev1CarriageContainerLabelGetResponseContent"); +const Carriagev1CarriageContainerLabelGetResponseErrorContainers_1 = require("./Carriagev1CarriageContainerLabelGetResponseErrorContainers"); +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponse interface. + */ +function instanceOfCarriagev1CarriageContainerLabelGetResponse(value) { + return true; +} +function Carriagev1CarriageContainerLabelGetResponseFromJSON(json) { + return Carriagev1CarriageContainerLabelGetResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerLabelGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content': json['content'] == null ? undefined : (0, Carriagev1CarriageContainerLabelGetResponseContent_1.Carriagev1CarriageContainerLabelGetResponseContentFromJSON)(json['content']), + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerLabelGetResponseErrorContainers_1.Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON)), + }; +} +function Carriagev1CarriageContainerLabelGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'content': (0, Carriagev1CarriageContainerLabelGetResponseContent_1.Carriagev1CarriageContainerLabelGetResponseContentToJSON)(value['content']), + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerLabelGetResponseErrorContainers_1.Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON)), + }; +} diff --git a/dist/models/Carriagev1CarriageContainerLabelGetResponseContent.d.ts b/dist/models/Carriagev1CarriageContainerLabelGetResponseContent.d.ts new file mode 100644 index 0000000..56c7f12 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerLabelGetResponseContent.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сформированной этикетке. + * @export + * @interface Carriagev1CarriageContainerLabelGetResponseContent + */ +export interface Carriagev1CarriageContainerLabelGetResponseContent { + /** + * Тип файла. + * @type {string} + * @memberof Carriagev1CarriageContainerLabelGetResponseContent + */ + content_type?: string; + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof Carriagev1CarriageContainerLabelGetResponseContent + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof Carriagev1CarriageContainerLabelGetResponseContent + */ + file_name?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponseContent interface. + */ +export declare function instanceOfCarriagev1CarriageContainerLabelGetResponseContent(value: object): value is Carriagev1CarriageContainerLabelGetResponseContent; +export declare function Carriagev1CarriageContainerLabelGetResponseContentFromJSON(json: any): Carriagev1CarriageContainerLabelGetResponseContent; +export declare function Carriagev1CarriageContainerLabelGetResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerLabelGetResponseContent; +export declare function Carriagev1CarriageContainerLabelGetResponseContentToJSON(value?: Carriagev1CarriageContainerLabelGetResponseContent | null): any; diff --git a/dist/models/Carriagev1CarriageContainerLabelGetResponseContent.js b/dist/models/Carriagev1CarriageContainerLabelGetResponseContent.js new file mode 100644 index 0000000..b138228 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerLabelGetResponseContent.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerLabelGetResponseContent = instanceOfCarriagev1CarriageContainerLabelGetResponseContent; +exports.Carriagev1CarriageContainerLabelGetResponseContentFromJSON = Carriagev1CarriageContainerLabelGetResponseContentFromJSON; +exports.Carriagev1CarriageContainerLabelGetResponseContentFromJSONTyped = Carriagev1CarriageContainerLabelGetResponseContentFromJSONTyped; +exports.Carriagev1CarriageContainerLabelGetResponseContentToJSON = Carriagev1CarriageContainerLabelGetResponseContentToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponseContent interface. + */ +function instanceOfCarriagev1CarriageContainerLabelGetResponseContent(value) { + return true; +} +function Carriagev1CarriageContainerLabelGetResponseContentFromJSON(json) { + return Carriagev1CarriageContainerLabelGetResponseContentFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerLabelGetResponseContentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + }; +} +function Carriagev1CarriageContainerLabelGetResponseContentToJSON(value) { + if (value == null) { + return value; + } + return { + 'content_type': value['content_type'], + 'file_content': value['file_content'], + 'file_name': value['file_name'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.d.ts b/dist/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.d.ts new file mode 100644 index 0000000..81001f1 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerLabelGetResponseErrorContainers + */ +export interface Carriagev1CarriageContainerLabelGetResponseErrorContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerLabelGetResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerLabelGetResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerLabelGetResponseErrorContainers(value: object): value is Carriagev1CarriageContainerLabelGetResponseErrorContainers; +export declare function Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerLabelGetResponseErrorContainers; +export declare function Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerLabelGetResponseErrorContainers; +export declare function Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerLabelGetResponseErrorContainers | null): any; diff --git a/dist/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.js b/dist/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.js new file mode 100644 index 0000000..f6bf6da --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerLabelGetResponseErrorContainers.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerLabelGetResponseErrorContainers = instanceOfCarriagev1CarriageContainerLabelGetResponseErrorContainers; +exports.Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON = Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON; +exports.Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSONTyped = Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSONTyped; +exports.Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON = Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerLabelGetResponseErrorContainers interface. + */ +function instanceOfCarriagev1CarriageContainerLabelGetResponseErrorContainers(value) { + return true; +} +function Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerLabelGetResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +function Carriagev1CarriageContainerLabelGetResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerListRequest.d.ts b/dist/models/Carriagev1CarriageContainerListRequest.d.ts new file mode 100644 index 0000000..6224a25 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerListRequestFilter } from './Carriagev1CarriageContainerListRequestFilter'; +import type { Carriagev1CarriageContainerListRequestSortDirEnum } from './Carriagev1CarriageContainerListRequestSortDirEnum'; +/** + * + * @export + * @interface Carriagev1CarriageContainerListRequest + */ +export interface Carriagev1CarriageContainerListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof Carriagev1CarriageContainerListRequest + */ + cursor?: string; + /** + * + * @type {Carriagev1CarriageContainerListRequestFilter} + * @memberof Carriagev1CarriageContainerListRequest + */ + filter?: Carriagev1CarriageContainerListRequestFilter; + /** + * Количество значений в ответе. Значение по умолчанию — 100. + * @type {number} + * @memberof Carriagev1CarriageContainerListRequest + */ + limit?: number; + /** + * + * @type {Carriagev1CarriageContainerListRequestSortDirEnum} + * @memberof Carriagev1CarriageContainerListRequest + */ + sort_dir?: Carriagev1CarriageContainerListRequestSortDirEnum; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerListRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerListRequest(value: object): value is Carriagev1CarriageContainerListRequest; +export declare function Carriagev1CarriageContainerListRequestFromJSON(json: any): Carriagev1CarriageContainerListRequest; +export declare function Carriagev1CarriageContainerListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListRequest; +export declare function Carriagev1CarriageContainerListRequestToJSON(value?: Carriagev1CarriageContainerListRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerListRequest.js b/dist/models/Carriagev1CarriageContainerListRequest.js new file mode 100644 index 0000000..425787a --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerListRequest = instanceOfCarriagev1CarriageContainerListRequest; +exports.Carriagev1CarriageContainerListRequestFromJSON = Carriagev1CarriageContainerListRequestFromJSON; +exports.Carriagev1CarriageContainerListRequestFromJSONTyped = Carriagev1CarriageContainerListRequestFromJSONTyped; +exports.Carriagev1CarriageContainerListRequestToJSON = Carriagev1CarriageContainerListRequestToJSON; +const Carriagev1CarriageContainerListRequestFilter_1 = require("./Carriagev1CarriageContainerListRequestFilter"); +const Carriagev1CarriageContainerListRequestSortDirEnum_1 = require("./Carriagev1CarriageContainerListRequestSortDirEnum"); +/** + * Check if a given object implements the Carriagev1CarriageContainerListRequest interface. + */ +function instanceOfCarriagev1CarriageContainerListRequest(value) { + return true; +} +function Carriagev1CarriageContainerListRequestFromJSON(json) { + return Carriagev1CarriageContainerListRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, Carriagev1CarriageContainerListRequestFilter_1.Carriagev1CarriageContainerListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, Carriagev1CarriageContainerListRequestSortDirEnum_1.Carriagev1CarriageContainerListRequestSortDirEnumFromJSON)(json['sort_dir']), + }; +} +function Carriagev1CarriageContainerListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, Carriagev1CarriageContainerListRequestFilter_1.Carriagev1CarriageContainerListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'sort_dir': (0, Carriagev1CarriageContainerListRequestSortDirEnum_1.Carriagev1CarriageContainerListRequestSortDirEnumToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/Carriagev1CarriageContainerListRequestFilter.d.ts b/dist/models/Carriagev1CarriageContainerListRequestFilter.d.ts new file mode 100644 index 0000000..f9a9ca6 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListRequestFilter.d.ts @@ -0,0 +1,79 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface Carriagev1CarriageContainerListRequestFilter + */ +export interface Carriagev1CarriageContainerListRequestFilter { + /** + * Тип грузоместа: + * - `box` — коробка; + * - `pallet` — палета. + * + * @type {string} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + cargo_type?: string; + /** + * Дата начала периода создания грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + created_from: string; + /** + * Дата окончания периода создания грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + created_to: string; + /** + * Тип сортировки грузоместа: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + sort_type: string; + /** + * Статус грузоместа: + * - `new` — создано, но не подтверждено; + * - `formed` — подтверждено; + * - `acceptance_in_progress` — началась приёмка в СЦ; + * - `cancelled` — расформировано из-за непривоза или отмены продавцом; + * - `finished` — расформировано на СЦ; + * - `approve_enqueued` — система поставила задачу на подтверждение состава грузоместа; + * - `approve_in_process` — подтверждение состава грузоместа в процессе; + * - `approved` — состав грузоместа подтверждён; + * - `approve_failed` — не удалось подтвердить состав грузоместа, оно осталось пустым; + * - `added` — добавлено на палету; + * - `cancellation_enqueded` — система поставила задачу на отмену грузоместа. + * + * @type {Array} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + statuses?: Array; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof Carriagev1CarriageContainerListRequestFilter + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerListRequestFilter interface. + */ +export declare function instanceOfCarriagev1CarriageContainerListRequestFilter(value: object): value is Carriagev1CarriageContainerListRequestFilter; +export declare function Carriagev1CarriageContainerListRequestFilterFromJSON(json: any): Carriagev1CarriageContainerListRequestFilter; +export declare function Carriagev1CarriageContainerListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListRequestFilter; +export declare function Carriagev1CarriageContainerListRequestFilterToJSON(value?: Carriagev1CarriageContainerListRequestFilter | null): any; diff --git a/dist/models/Carriagev1CarriageContainerListRequestFilter.js b/dist/models/Carriagev1CarriageContainerListRequestFilter.js new file mode 100644 index 0000000..6e01891 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListRequestFilter.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerListRequestFilter = instanceOfCarriagev1CarriageContainerListRequestFilter; +exports.Carriagev1CarriageContainerListRequestFilterFromJSON = Carriagev1CarriageContainerListRequestFilterFromJSON; +exports.Carriagev1CarriageContainerListRequestFilterFromJSONTyped = Carriagev1CarriageContainerListRequestFilterFromJSONTyped; +exports.Carriagev1CarriageContainerListRequestFilterToJSON = Carriagev1CarriageContainerListRequestFilterToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerListRequestFilter interface. + */ +function instanceOfCarriagev1CarriageContainerListRequestFilter(value) { + if (!('created_from' in value) || value['created_from'] === undefined) + return false; + if (!('created_to' in value) || value['created_to'] === undefined) + return false; + if (!('sort_type' in value) || value['sort_type'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerListRequestFilterFromJSON(json) { + return Carriagev1CarriageContainerListRequestFilterFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_type': json['cargo_type'] == null ? undefined : json['cargo_type'], + 'created_from': json['created_from'], + 'created_to': json['created_to'], + 'sort_type': json['sort_type'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function Carriagev1CarriageContainerListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_type': value['cargo_type'], + 'created_from': value['created_from'], + 'created_to': value['created_to'], + 'sort_type': value['sort_type'], + 'statuses': value['statuses'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerListRequestSortDirEnum.d.ts b/dist/models/Carriagev1CarriageContainerListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..9634cae --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const Carriagev1CarriageContainerListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type Carriagev1CarriageContainerListRequestSortDirEnum = typeof Carriagev1CarriageContainerListRequestSortDirEnum[keyof typeof Carriagev1CarriageContainerListRequestSortDirEnum]; +export declare function instanceOfCarriagev1CarriageContainerListRequestSortDirEnum(value: any): boolean; +export declare function Carriagev1CarriageContainerListRequestSortDirEnumFromJSON(json: any): Carriagev1CarriageContainerListRequestSortDirEnum; +export declare function Carriagev1CarriageContainerListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListRequestSortDirEnum; +export declare function Carriagev1CarriageContainerListRequestSortDirEnumToJSON(value?: Carriagev1CarriageContainerListRequestSortDirEnum | null): any; diff --git a/dist/models/Carriagev1CarriageContainerListRequestSortDirEnum.js b/dist/models/Carriagev1CarriageContainerListRequestSortDirEnum.js new file mode 100644 index 0000000..28cd520 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Carriagev1CarriageContainerListRequestSortDirEnum = void 0; +exports.instanceOfCarriagev1CarriageContainerListRequestSortDirEnum = instanceOfCarriagev1CarriageContainerListRequestSortDirEnum; +exports.Carriagev1CarriageContainerListRequestSortDirEnumFromJSON = Carriagev1CarriageContainerListRequestSortDirEnumFromJSON; +exports.Carriagev1CarriageContainerListRequestSortDirEnumFromJSONTyped = Carriagev1CarriageContainerListRequestSortDirEnumFromJSONTyped; +exports.Carriagev1CarriageContainerListRequestSortDirEnumToJSON = Carriagev1CarriageContainerListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.Carriagev1CarriageContainerListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfCarriagev1CarriageContainerListRequestSortDirEnum(value) { + for (const key in exports.Carriagev1CarriageContainerListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.Carriagev1CarriageContainerListRequestSortDirEnum, key)) { + if (exports.Carriagev1CarriageContainerListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function Carriagev1CarriageContainerListRequestSortDirEnumFromJSON(json) { + return Carriagev1CarriageContainerListRequestSortDirEnumFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function Carriagev1CarriageContainerListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/Carriagev1CarriageContainerListResponse.d.ts b/dist/models/Carriagev1CarriageContainerListResponse.d.ts new file mode 100644 index 0000000..611130d --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerListResponseContainers } from './Carriagev1CarriageContainerListResponseContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerListResponse + */ +export interface Carriagev1CarriageContainerListResponse { + /** + * Информация о грузоместах. + * @type {Array} + * @memberof Carriagev1CarriageContainerListResponse + */ + containers?: Array; + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponse + */ + cursor?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerListResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerListResponse(value: object): value is Carriagev1CarriageContainerListResponse; +export declare function Carriagev1CarriageContainerListResponseFromJSON(json: any): Carriagev1CarriageContainerListResponse; +export declare function Carriagev1CarriageContainerListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListResponse; +export declare function Carriagev1CarriageContainerListResponseToJSON(value?: Carriagev1CarriageContainerListResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerListResponse.js b/dist/models/Carriagev1CarriageContainerListResponse.js new file mode 100644 index 0000000..ab5cf7c --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerListResponse = instanceOfCarriagev1CarriageContainerListResponse; +exports.Carriagev1CarriageContainerListResponseFromJSON = Carriagev1CarriageContainerListResponseFromJSON; +exports.Carriagev1CarriageContainerListResponseFromJSONTyped = Carriagev1CarriageContainerListResponseFromJSONTyped; +exports.Carriagev1CarriageContainerListResponseToJSON = Carriagev1CarriageContainerListResponseToJSON; +const Carriagev1CarriageContainerListResponseContainers_1 = require("./Carriagev1CarriageContainerListResponseContainers"); +/** + * Check if a given object implements the Carriagev1CarriageContainerListResponse interface. + */ +function instanceOfCarriagev1CarriageContainerListResponse(value) { + return true; +} +function Carriagev1CarriageContainerListResponseFromJSON(json) { + return Carriagev1CarriageContainerListResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'containers': json['containers'] == null ? undefined : (json['containers'].map(Carriagev1CarriageContainerListResponseContainers_1.Carriagev1CarriageContainerListResponseContainersFromJSON)), + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + }; +} +function Carriagev1CarriageContainerListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'containers': value['containers'] == null ? undefined : (value['containers'].map(Carriagev1CarriageContainerListResponseContainers_1.Carriagev1CarriageContainerListResponseContainersToJSON)), + 'cursor': value['cursor'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerListResponseContainers.d.ts b/dist/models/Carriagev1CarriageContainerListResponseContainers.d.ts new file mode 100644 index 0000000..d7a156d --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListResponseContainers.d.ts @@ -0,0 +1,115 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerListResponseContainers + */ +export interface Carriagev1CarriageContainerListResponseContainers { + /** + * Действия с грузоместом: + * - `approve` — подтвердить состав; + * - `get_label_container` — получить этикетку; + * - `delete` — удалить; + * - `place_box_into_pallet` — добавить коробку на палету; + * - `remove_box_from_pallet` — убрать коробку с палеты; + * - `place_posting_into_container` — перенести отправление в другое грузоместо; + * - `remove_posting_from_container` — убрать отправление из грузоместа; + * - `get_documents` — получить транспортную накладную. + * + * @type {Array} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + available_actions?: Array; + /** + * Тип грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + cargo_type?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + container_id?: number; + /** + * Порядковый номер грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + container_number?: number; + /** + * Количество отправлений в грузоместе. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + count_of_postings?: number; + /** + * Дата создания грузоместа в UTC. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + created_at?: string; + /** + * Дочерние грузоместа. + * @type {Array} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + related_containers?: Array; + /** + * Тип сортировки грузоместа: + * - `sort` — сортируемый; + * - `non-sort` — несортируемый. + * + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + sort_type?: string; + /** + * Статус грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + status?: string; + /** + * Дата создания грузоместа в часовом поясе склада. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + warehouse_date?: string; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + warehouse_name?: string; + /** + * Суммарный вес отправлений в грузоместе, кг. + * @type {number} + * @memberof Carriagev1CarriageContainerListResponseContainers + */ + weight?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerListResponseContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerListResponseContainers(value: object): value is Carriagev1CarriageContainerListResponseContainers; +export declare function Carriagev1CarriageContainerListResponseContainersFromJSON(json: any): Carriagev1CarriageContainerListResponseContainers; +export declare function Carriagev1CarriageContainerListResponseContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerListResponseContainers; +export declare function Carriagev1CarriageContainerListResponseContainersToJSON(value?: Carriagev1CarriageContainerListResponseContainers | null): any; diff --git a/dist/models/Carriagev1CarriageContainerListResponseContainers.js b/dist/models/Carriagev1CarriageContainerListResponseContainers.js new file mode 100644 index 0000000..08f4a6e --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerListResponseContainers.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerListResponseContainers = instanceOfCarriagev1CarriageContainerListResponseContainers; +exports.Carriagev1CarriageContainerListResponseContainersFromJSON = Carriagev1CarriageContainerListResponseContainersFromJSON; +exports.Carriagev1CarriageContainerListResponseContainersFromJSONTyped = Carriagev1CarriageContainerListResponseContainersFromJSONTyped; +exports.Carriagev1CarriageContainerListResponseContainersToJSON = Carriagev1CarriageContainerListResponseContainersToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerListResponseContainers interface. + */ +function instanceOfCarriagev1CarriageContainerListResponseContainers(value) { + return true; +} +function Carriagev1CarriageContainerListResponseContainersFromJSON(json) { + return Carriagev1CarriageContainerListResponseContainersFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerListResponseContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'cargo_type': json['cargo_type'] == null ? undefined : json['cargo_type'], + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'container_number': json['container_number'] == null ? undefined : json['container_number'], + 'count_of_postings': json['count_of_postings'] == null ? undefined : json['count_of_postings'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'related_containers': json['related_containers'] == null ? undefined : json['related_containers'], + 'sort_type': json['sort_type'] == null ? undefined : json['sort_type'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_date': json['warehouse_date'] == null ? undefined : json['warehouse_date'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function Carriagev1CarriageContainerListResponseContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_actions': value['available_actions'], + 'cargo_type': value['cargo_type'], + 'container_id': value['container_id'], + 'container_number': value['container_number'], + 'count_of_postings': value['count_of_postings'], + 'created_at': value['created_at'], + 'related_containers': value['related_containers'], + 'sort_type': value['sort_type'], + 'status': value['status'], + 'warehouse_date': value['warehouse_date'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerPlaceIntoRequest.d.ts b/dist/models/Carriagev1CarriageContainerPlaceIntoRequest.d.ts new file mode 100644 index 0000000..0121eda --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerPlaceIntoRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerPlaceIntoRequest + */ +export interface Carriagev1CarriageContainerPlaceIntoRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerPlaceIntoRequest + */ + child_container_ids: Array; + /** + * Идентификатор родительского грузоместа — палеты. + * @type {number} + * @memberof Carriagev1CarriageContainerPlaceIntoRequest + */ + parent_container_id: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerPlaceIntoRequest(value: object): value is Carriagev1CarriageContainerPlaceIntoRequest; +export declare function Carriagev1CarriageContainerPlaceIntoRequestFromJSON(json: any): Carriagev1CarriageContainerPlaceIntoRequest; +export declare function Carriagev1CarriageContainerPlaceIntoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerPlaceIntoRequest; +export declare function Carriagev1CarriageContainerPlaceIntoRequestToJSON(value?: Carriagev1CarriageContainerPlaceIntoRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerPlaceIntoRequest.js b/dist/models/Carriagev1CarriageContainerPlaceIntoRequest.js new file mode 100644 index 0000000..e8e79aa --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerPlaceIntoRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerPlaceIntoRequest = instanceOfCarriagev1CarriageContainerPlaceIntoRequest; +exports.Carriagev1CarriageContainerPlaceIntoRequestFromJSON = Carriagev1CarriageContainerPlaceIntoRequestFromJSON; +exports.Carriagev1CarriageContainerPlaceIntoRequestFromJSONTyped = Carriagev1CarriageContainerPlaceIntoRequestFromJSONTyped; +exports.Carriagev1CarriageContainerPlaceIntoRequestToJSON = Carriagev1CarriageContainerPlaceIntoRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoRequest interface. + */ +function instanceOfCarriagev1CarriageContainerPlaceIntoRequest(value) { + if (!('child_container_ids' in value) || value['child_container_ids'] === undefined) + return false; + if (!('parent_container_id' in value) || value['parent_container_id'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerPlaceIntoRequestFromJSON(json) { + return Carriagev1CarriageContainerPlaceIntoRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerPlaceIntoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'child_container_ids': json['child_container_ids'], + 'parent_container_id': json['parent_container_id'], + }; +} +function Carriagev1CarriageContainerPlaceIntoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'child_container_ids': value['child_container_ids'], + 'parent_container_id': value['parent_container_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerPlaceIntoResponse.d.ts b/dist/models/Carriagev1CarriageContainerPlaceIntoResponse.d.ts new file mode 100644 index 0000000..91d4ae0 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerPlaceIntoResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerPlaceIntoResponseErrorContainers } from './Carriagev1CarriageContainerPlaceIntoResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerPlaceIntoResponse + */ +export interface Carriagev1CarriageContainerPlaceIntoResponse { + /** + * Ошибки по грузоместам. + * @type {Array} + * @memberof Carriagev1CarriageContainerPlaceIntoResponse + */ + error_containers?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerPlaceIntoResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerPlaceIntoResponse(value: object): value is Carriagev1CarriageContainerPlaceIntoResponse; +export declare function Carriagev1CarriageContainerPlaceIntoResponseFromJSON(json: any): Carriagev1CarriageContainerPlaceIntoResponse; +export declare function Carriagev1CarriageContainerPlaceIntoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerPlaceIntoResponse; +export declare function Carriagev1CarriageContainerPlaceIntoResponseToJSON(value?: Carriagev1CarriageContainerPlaceIntoResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerPlaceIntoResponse.js b/dist/models/Carriagev1CarriageContainerPlaceIntoResponse.js new file mode 100644 index 0000000..69af42a --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerPlaceIntoResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerPlaceIntoResponse = instanceOfCarriagev1CarriageContainerPlaceIntoResponse; +exports.Carriagev1CarriageContainerPlaceIntoResponseFromJSON = Carriagev1CarriageContainerPlaceIntoResponseFromJSON; +exports.Carriagev1CarriageContainerPlaceIntoResponseFromJSONTyped = Carriagev1CarriageContainerPlaceIntoResponseFromJSONTyped; +exports.Carriagev1CarriageContainerPlaceIntoResponseToJSON = Carriagev1CarriageContainerPlaceIntoResponseToJSON; +const Carriagev1CarriageContainerPlaceIntoResponseErrorContainers_1 = require("./Carriagev1CarriageContainerPlaceIntoResponseErrorContainers"); +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoResponse interface. + */ +function instanceOfCarriagev1CarriageContainerPlaceIntoResponse(value) { + return true; +} +function Carriagev1CarriageContainerPlaceIntoResponseFromJSON(json) { + return Carriagev1CarriageContainerPlaceIntoResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerPlaceIntoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerPlaceIntoResponseErrorContainers_1.Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function Carriagev1CarriageContainerPlaceIntoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerPlaceIntoResponseErrorContainers_1.Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.d.ts b/dist/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.d.ts new file mode 100644 index 0000000..f01ebe7 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerPlaceIntoResponseErrorContainers + */ +export interface Carriagev1CarriageContainerPlaceIntoResponseErrorContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerPlaceIntoResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerPlaceIntoResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerPlaceIntoResponseErrorContainers(value: object): value is Carriagev1CarriageContainerPlaceIntoResponseErrorContainers; +export declare function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerPlaceIntoResponseErrorContainers; +export declare function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerPlaceIntoResponseErrorContainers; +export declare function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerPlaceIntoResponseErrorContainers | null): any; diff --git a/dist/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.js b/dist/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.js new file mode 100644 index 0000000..df15aea --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerPlaceIntoResponseErrorContainers.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerPlaceIntoResponseErrorContainers = instanceOfCarriagev1CarriageContainerPlaceIntoResponseErrorContainers; +exports.Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON = Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON; +exports.Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSONTyped = Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSONTyped; +exports.Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON = Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerPlaceIntoResponseErrorContainers interface. + */ +function instanceOfCarriagev1CarriageContainerPlaceIntoResponseErrorContainers(value) { + return true; +} +function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +function Carriagev1CarriageContainerPlaceIntoResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerRemoveFromRequest.d.ts b/dist/models/Carriagev1CarriageContainerRemoveFromRequest.d.ts new file mode 100644 index 0000000..a80e006 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemoveFromRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerRemoveFromRequest + */ +export interface Carriagev1CarriageContainerRemoveFromRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerRemoveFromRequest + */ + child_container_ids: Array; + /** + * Идентификатор родительского грузоместа — палеты. + * @type {number} + * @memberof Carriagev1CarriageContainerRemoveFromRequest + */ + parent_container_id: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemoveFromRequest(value: object): value is Carriagev1CarriageContainerRemoveFromRequest; +export declare function Carriagev1CarriageContainerRemoveFromRequestFromJSON(json: any): Carriagev1CarriageContainerRemoveFromRequest; +export declare function Carriagev1CarriageContainerRemoveFromRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemoveFromRequest; +export declare function Carriagev1CarriageContainerRemoveFromRequestToJSON(value?: Carriagev1CarriageContainerRemoveFromRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerRemoveFromRequest.js b/dist/models/Carriagev1CarriageContainerRemoveFromRequest.js new file mode 100644 index 0000000..1389c3e --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemoveFromRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerRemoveFromRequest = instanceOfCarriagev1CarriageContainerRemoveFromRequest; +exports.Carriagev1CarriageContainerRemoveFromRequestFromJSON = Carriagev1CarriageContainerRemoveFromRequestFromJSON; +exports.Carriagev1CarriageContainerRemoveFromRequestFromJSONTyped = Carriagev1CarriageContainerRemoveFromRequestFromJSONTyped; +exports.Carriagev1CarriageContainerRemoveFromRequestToJSON = Carriagev1CarriageContainerRemoveFromRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromRequest interface. + */ +function instanceOfCarriagev1CarriageContainerRemoveFromRequest(value) { + if (!('child_container_ids' in value) || value['child_container_ids'] === undefined) + return false; + if (!('parent_container_id' in value) || value['parent_container_id'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerRemoveFromRequestFromJSON(json) { + return Carriagev1CarriageContainerRemoveFromRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerRemoveFromRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'child_container_ids': json['child_container_ids'], + 'parent_container_id': json['parent_container_id'], + }; +} +function Carriagev1CarriageContainerRemoveFromRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'child_container_ids': value['child_container_ids'], + 'parent_container_id': value['parent_container_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerRemoveFromResponse.d.ts b/dist/models/Carriagev1CarriageContainerRemoveFromResponse.d.ts new file mode 100644 index 0000000..c8d6ab3 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemoveFromResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerRemoveFromResponseErrorContainers } from './Carriagev1CarriageContainerRemoveFromResponseErrorContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerRemoveFromResponse + */ +export interface Carriagev1CarriageContainerRemoveFromResponse { + /** + * Ошибки по грузоместам. + * @type {Array} + * @memberof Carriagev1CarriageContainerRemoveFromResponse + */ + error_containers?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerRemoveFromResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemoveFromResponse(value: object): value is Carriagev1CarriageContainerRemoveFromResponse; +export declare function Carriagev1CarriageContainerRemoveFromResponseFromJSON(json: any): Carriagev1CarriageContainerRemoveFromResponse; +export declare function Carriagev1CarriageContainerRemoveFromResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemoveFromResponse; +export declare function Carriagev1CarriageContainerRemoveFromResponseToJSON(value?: Carriagev1CarriageContainerRemoveFromResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerRemoveFromResponse.js b/dist/models/Carriagev1CarriageContainerRemoveFromResponse.js new file mode 100644 index 0000000..c919009 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemoveFromResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerRemoveFromResponse = instanceOfCarriagev1CarriageContainerRemoveFromResponse; +exports.Carriagev1CarriageContainerRemoveFromResponseFromJSON = Carriagev1CarriageContainerRemoveFromResponseFromJSON; +exports.Carriagev1CarriageContainerRemoveFromResponseFromJSONTyped = Carriagev1CarriageContainerRemoveFromResponseFromJSONTyped; +exports.Carriagev1CarriageContainerRemoveFromResponseToJSON = Carriagev1CarriageContainerRemoveFromResponseToJSON; +const Carriagev1CarriageContainerRemoveFromResponseErrorContainers_1 = require("./Carriagev1CarriageContainerRemoveFromResponseErrorContainers"); +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromResponse interface. + */ +function instanceOfCarriagev1CarriageContainerRemoveFromResponse(value) { + return true; +} +function Carriagev1CarriageContainerRemoveFromResponseFromJSON(json) { + return Carriagev1CarriageContainerRemoveFromResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerRemoveFromResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_containers': json['error_containers'] == null ? undefined : (json['error_containers'].map(Carriagev1CarriageContainerRemoveFromResponseErrorContainers_1.Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function Carriagev1CarriageContainerRemoveFromResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_containers': value['error_containers'] == null ? undefined : (value['error_containers'].map(Carriagev1CarriageContainerRemoveFromResponseErrorContainers_1.Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.d.ts b/dist/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.d.ts new file mode 100644 index 0000000..ad480f2 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerRemoveFromResponseErrorContainers + */ +export interface Carriagev1CarriageContainerRemoveFromResponseErrorContainers { + /** + * Идентификатор грузоместа + * @type {number} + * @memberof Carriagev1CarriageContainerRemoveFromResponseErrorContainers + */ + container_id?: number; + /** + * Текст ошибки + * @type {string} + * @memberof Carriagev1CarriageContainerRemoveFromResponseErrorContainers + */ + error_message?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromResponseErrorContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemoveFromResponseErrorContainers(value: object): value is Carriagev1CarriageContainerRemoveFromResponseErrorContainers; +export declare function Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON(json: any): Carriagev1CarriageContainerRemoveFromResponseErrorContainers; +export declare function Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemoveFromResponseErrorContainers; +export declare function Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON(value?: Carriagev1CarriageContainerRemoveFromResponseErrorContainers | null): any; diff --git a/dist/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.js b/dist/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.js new file mode 100644 index 0000000..23c85fa --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemoveFromResponseErrorContainers.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerRemoveFromResponseErrorContainers = instanceOfCarriagev1CarriageContainerRemoveFromResponseErrorContainers; +exports.Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON = Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON; +exports.Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSONTyped = Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSONTyped; +exports.Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON = Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerRemoveFromResponseErrorContainers interface. + */ +function instanceOfCarriagev1CarriageContainerRemoveFromResponseErrorContainers(value) { + return true; +} +function Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSON(json) { + return Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerRemoveFromResponseErrorContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +function Carriagev1CarriageContainerRemoveFromResponseErrorContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerRemovePostingsRequest.d.ts b/dist/models/Carriagev1CarriageContainerRemovePostingsRequest.d.ts new file mode 100644 index 0000000..fb966a2 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemovePostingsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerRemovePostingsRequest + */ +export interface Carriagev1CarriageContainerRemovePostingsRequest { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerRemovePostingsRequest + */ + container_id: number; + /** + * Номера отправлений. + * @type {Array} + * @memberof Carriagev1CarriageContainerRemovePostingsRequest + */ + posting_numbers: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemovePostingsRequest(value: object): value is Carriagev1CarriageContainerRemovePostingsRequest; +export declare function Carriagev1CarriageContainerRemovePostingsRequestFromJSON(json: any): Carriagev1CarriageContainerRemovePostingsRequest; +export declare function Carriagev1CarriageContainerRemovePostingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemovePostingsRequest; +export declare function Carriagev1CarriageContainerRemovePostingsRequestToJSON(value?: Carriagev1CarriageContainerRemovePostingsRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerRemovePostingsRequest.js b/dist/models/Carriagev1CarriageContainerRemovePostingsRequest.js new file mode 100644 index 0000000..330a596 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemovePostingsRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerRemovePostingsRequest = instanceOfCarriagev1CarriageContainerRemovePostingsRequest; +exports.Carriagev1CarriageContainerRemovePostingsRequestFromJSON = Carriagev1CarriageContainerRemovePostingsRequestFromJSON; +exports.Carriagev1CarriageContainerRemovePostingsRequestFromJSONTyped = Carriagev1CarriageContainerRemovePostingsRequestFromJSONTyped; +exports.Carriagev1CarriageContainerRemovePostingsRequestToJSON = Carriagev1CarriageContainerRemovePostingsRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsRequest interface. + */ +function instanceOfCarriagev1CarriageContainerRemovePostingsRequest(value) { + if (!('container_id' in value) || value['container_id'] === undefined) + return false; + if (!('posting_numbers' in value) || value['posting_numbers'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerRemovePostingsRequestFromJSON(json) { + return Carriagev1CarriageContainerRemovePostingsRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerRemovePostingsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'], + 'posting_numbers': json['posting_numbers'], + }; +} +function Carriagev1CarriageContainerRemovePostingsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerRemovePostingsResponse.d.ts b/dist/models/Carriagev1CarriageContainerRemovePostingsResponse.d.ts new file mode 100644 index 0000000..d6e48d8 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemovePostingsResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerRemovePostingsResponseErrorPostings } from './Carriagev1CarriageContainerRemovePostingsResponseErrorPostings'; +/** + * + * @export + * @interface Carriagev1CarriageContainerRemovePostingsResponse + */ +export interface Carriagev1CarriageContainerRemovePostingsResponse { + /** + * Ошибки по отправлениям. + * @type {Array} + * @memberof Carriagev1CarriageContainerRemovePostingsResponse + */ + error_postings?: Array; + /** + * Идентификатор задания. + * @type {number} + * @memberof Carriagev1CarriageContainerRemovePostingsResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemovePostingsResponse(value: object): value is Carriagev1CarriageContainerRemovePostingsResponse; +export declare function Carriagev1CarriageContainerRemovePostingsResponseFromJSON(json: any): Carriagev1CarriageContainerRemovePostingsResponse; +export declare function Carriagev1CarriageContainerRemovePostingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemovePostingsResponse; +export declare function Carriagev1CarriageContainerRemovePostingsResponseToJSON(value?: Carriagev1CarriageContainerRemovePostingsResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerRemovePostingsResponse.js b/dist/models/Carriagev1CarriageContainerRemovePostingsResponse.js new file mode 100644 index 0000000..485dadc --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemovePostingsResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerRemovePostingsResponse = instanceOfCarriagev1CarriageContainerRemovePostingsResponse; +exports.Carriagev1CarriageContainerRemovePostingsResponseFromJSON = Carriagev1CarriageContainerRemovePostingsResponseFromJSON; +exports.Carriagev1CarriageContainerRemovePostingsResponseFromJSONTyped = Carriagev1CarriageContainerRemovePostingsResponseFromJSONTyped; +exports.Carriagev1CarriageContainerRemovePostingsResponseToJSON = Carriagev1CarriageContainerRemovePostingsResponseToJSON; +const Carriagev1CarriageContainerRemovePostingsResponseErrorPostings_1 = require("./Carriagev1CarriageContainerRemovePostingsResponseErrorPostings"); +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsResponse interface. + */ +function instanceOfCarriagev1CarriageContainerRemovePostingsResponse(value) { + return true; +} +function Carriagev1CarriageContainerRemovePostingsResponseFromJSON(json) { + return Carriagev1CarriageContainerRemovePostingsResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerRemovePostingsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_postings': json['error_postings'] == null ? undefined : (json['error_postings'].map(Carriagev1CarriageContainerRemovePostingsResponseErrorPostings_1.Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON)), + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function Carriagev1CarriageContainerRemovePostingsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_postings': value['error_postings'] == null ? undefined : (value['error_postings'].map(Carriagev1CarriageContainerRemovePostingsResponseErrorPostings_1.Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON)), + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.d.ts b/dist/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.d.ts new file mode 100644 index 0000000..6f7a4a7 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerRemovePostingsResponseErrorPostings + */ +export interface Carriagev1CarriageContainerRemovePostingsResponseErrorPostings { + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerRemovePostingsResponseErrorPostings + */ + error_message?: string; + /** + * Номер отправления. + * @type {string} + * @memberof Carriagev1CarriageContainerRemovePostingsResponseErrorPostings + */ + posting_number?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsResponseErrorPostings interface. + */ +export declare function instanceOfCarriagev1CarriageContainerRemovePostingsResponseErrorPostings(value: object): value is Carriagev1CarriageContainerRemovePostingsResponseErrorPostings; +export declare function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON(json: any): Carriagev1CarriageContainerRemovePostingsResponseErrorPostings; +export declare function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerRemovePostingsResponseErrorPostings; +export declare function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON(value?: Carriagev1CarriageContainerRemovePostingsResponseErrorPostings | null): any; diff --git a/dist/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.js b/dist/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.js new file mode 100644 index 0000000..fcf3456 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerRemovePostingsResponseErrorPostings.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerRemovePostingsResponseErrorPostings = instanceOfCarriagev1CarriageContainerRemovePostingsResponseErrorPostings; +exports.Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON = Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON; +exports.Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSONTyped = Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSONTyped; +exports.Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON = Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerRemovePostingsResponseErrorPostings interface. + */ +function instanceOfCarriagev1CarriageContainerRemovePostingsResponseErrorPostings(value) { + return true; +} +function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSON(json) { + return Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +function Carriagev1CarriageContainerRemovePostingsResponseErrorPostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': value['error_message'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerStatusGetRequest.d.ts b/dist/models/Carriagev1CarriageContainerStatusGetRequest.d.ts new file mode 100644 index 0000000..1fc14b7 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerStatusGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerStatusGetRequest + */ +export interface Carriagev1CarriageContainerStatusGetRequest { + /** + * Идентификаторы грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerStatusGetRequest + */ + container_ids: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerStatusGetRequest(value: object): value is Carriagev1CarriageContainerStatusGetRequest; +export declare function Carriagev1CarriageContainerStatusGetRequestFromJSON(json: any): Carriagev1CarriageContainerStatusGetRequest; +export declare function Carriagev1CarriageContainerStatusGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerStatusGetRequest; +export declare function Carriagev1CarriageContainerStatusGetRequestToJSON(value?: Carriagev1CarriageContainerStatusGetRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerStatusGetRequest.js b/dist/models/Carriagev1CarriageContainerStatusGetRequest.js new file mode 100644 index 0000000..8850baf --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerStatusGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerStatusGetRequest = instanceOfCarriagev1CarriageContainerStatusGetRequest; +exports.Carriagev1CarriageContainerStatusGetRequestFromJSON = Carriagev1CarriageContainerStatusGetRequestFromJSON; +exports.Carriagev1CarriageContainerStatusGetRequestFromJSONTyped = Carriagev1CarriageContainerStatusGetRequestFromJSONTyped; +exports.Carriagev1CarriageContainerStatusGetRequestToJSON = Carriagev1CarriageContainerStatusGetRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetRequest interface. + */ +function instanceOfCarriagev1CarriageContainerStatusGetRequest(value) { + if (!('container_ids' in value) || value['container_ids'] === undefined) + return false; + return true; +} +function Carriagev1CarriageContainerStatusGetRequestFromJSON(json) { + return Carriagev1CarriageContainerStatusGetRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerStatusGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_ids': json['container_ids'], + }; +} +function Carriagev1CarriageContainerStatusGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_ids': value['container_ids'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerStatusGetResponse.d.ts b/dist/models/Carriagev1CarriageContainerStatusGetResponse.d.ts new file mode 100644 index 0000000..59af697 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerStatusGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Carriagev1CarriageContainerStatusGetResponseContainers } from './Carriagev1CarriageContainerStatusGetResponseContainers'; +/** + * + * @export + * @interface Carriagev1CarriageContainerStatusGetResponse + */ +export interface Carriagev1CarriageContainerStatusGetResponse { + /** + * Список грузомест. + * @type {Array} + * @memberof Carriagev1CarriageContainerStatusGetResponse + */ + containers?: Array; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerStatusGetResponse(value: object): value is Carriagev1CarriageContainerStatusGetResponse; +export declare function Carriagev1CarriageContainerStatusGetResponseFromJSON(json: any): Carriagev1CarriageContainerStatusGetResponse; +export declare function Carriagev1CarriageContainerStatusGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerStatusGetResponse; +export declare function Carriagev1CarriageContainerStatusGetResponseToJSON(value?: Carriagev1CarriageContainerStatusGetResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerStatusGetResponse.js b/dist/models/Carriagev1CarriageContainerStatusGetResponse.js new file mode 100644 index 0000000..c8307f0 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerStatusGetResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerStatusGetResponse = instanceOfCarriagev1CarriageContainerStatusGetResponse; +exports.Carriagev1CarriageContainerStatusGetResponseFromJSON = Carriagev1CarriageContainerStatusGetResponseFromJSON; +exports.Carriagev1CarriageContainerStatusGetResponseFromJSONTyped = Carriagev1CarriageContainerStatusGetResponseFromJSONTyped; +exports.Carriagev1CarriageContainerStatusGetResponseToJSON = Carriagev1CarriageContainerStatusGetResponseToJSON; +const Carriagev1CarriageContainerStatusGetResponseContainers_1 = require("./Carriagev1CarriageContainerStatusGetResponseContainers"); +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetResponse interface. + */ +function instanceOfCarriagev1CarriageContainerStatusGetResponse(value) { + return true; +} +function Carriagev1CarriageContainerStatusGetResponseFromJSON(json) { + return Carriagev1CarriageContainerStatusGetResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerStatusGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'containers': json['containers'] == null ? undefined : (json['containers'].map(Carriagev1CarriageContainerStatusGetResponseContainers_1.Carriagev1CarriageContainerStatusGetResponseContainersFromJSON)), + }; +} +function Carriagev1CarriageContainerStatusGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'containers': value['containers'] == null ? undefined : (value['containers'].map(Carriagev1CarriageContainerStatusGetResponseContainers_1.Carriagev1CarriageContainerStatusGetResponseContainersToJSON)), + }; +} diff --git a/dist/models/Carriagev1CarriageContainerStatusGetResponseContainers.d.ts b/dist/models/Carriagev1CarriageContainerStatusGetResponseContainers.d.ts new file mode 100644 index 0000000..087950f --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerStatusGetResponseContainers.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerStatusGetResponseContainers + */ +export interface Carriagev1CarriageContainerStatusGetResponseContainers { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof Carriagev1CarriageContainerStatusGetResponseContainers + */ + container_id?: number; + /** + * Статус грузоместа. + * @type {string} + * @memberof Carriagev1CarriageContainerStatusGetResponseContainers + */ + status?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetResponseContainers interface. + */ +export declare function instanceOfCarriagev1CarriageContainerStatusGetResponseContainers(value: object): value is Carriagev1CarriageContainerStatusGetResponseContainers; +export declare function Carriagev1CarriageContainerStatusGetResponseContainersFromJSON(json: any): Carriagev1CarriageContainerStatusGetResponseContainers; +export declare function Carriagev1CarriageContainerStatusGetResponseContainersFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerStatusGetResponseContainers; +export declare function Carriagev1CarriageContainerStatusGetResponseContainersToJSON(value?: Carriagev1CarriageContainerStatusGetResponseContainers | null): any; diff --git a/dist/models/Carriagev1CarriageContainerStatusGetResponseContainers.js b/dist/models/Carriagev1CarriageContainerStatusGetResponseContainers.js new file mode 100644 index 0000000..61aa5c0 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerStatusGetResponseContainers.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerStatusGetResponseContainers = instanceOfCarriagev1CarriageContainerStatusGetResponseContainers; +exports.Carriagev1CarriageContainerStatusGetResponseContainersFromJSON = Carriagev1CarriageContainerStatusGetResponseContainersFromJSON; +exports.Carriagev1CarriageContainerStatusGetResponseContainersFromJSONTyped = Carriagev1CarriageContainerStatusGetResponseContainersFromJSONTyped; +exports.Carriagev1CarriageContainerStatusGetResponseContainersToJSON = Carriagev1CarriageContainerStatusGetResponseContainersToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerStatusGetResponseContainers interface. + */ +function instanceOfCarriagev1CarriageContainerStatusGetResponseContainers(value) { + return true; +} +function Carriagev1CarriageContainerStatusGetResponseContainersFromJSON(json) { + return Carriagev1CarriageContainerStatusGetResponseContainersFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerStatusGetResponseContainersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function Carriagev1CarriageContainerStatusGetResponseContainersToJSON(value) { + if (value == null) { + return value; + } + return { + 'container_id': value['container_id'], + 'status': value['status'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerTaskInfoRequest.d.ts b/dist/models/Carriagev1CarriageContainerTaskInfoRequest.d.ts new file mode 100644 index 0000000..9ae5108 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerTaskInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerTaskInfoRequest + */ +export interface Carriagev1CarriageContainerTaskInfoRequest { + /** + * Идентификатор задачи. Получите его в ответе метода /v1/carriage/container/fill или /v1/carriage/container/approve. + * @type {number} + * @memberof Carriagev1CarriageContainerTaskInfoRequest + */ + task_id?: number; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerTaskInfoRequest interface. + */ +export declare function instanceOfCarriagev1CarriageContainerTaskInfoRequest(value: object): value is Carriagev1CarriageContainerTaskInfoRequest; +export declare function Carriagev1CarriageContainerTaskInfoRequestFromJSON(json: any): Carriagev1CarriageContainerTaskInfoRequest; +export declare function Carriagev1CarriageContainerTaskInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerTaskInfoRequest; +export declare function Carriagev1CarriageContainerTaskInfoRequestToJSON(value?: Carriagev1CarriageContainerTaskInfoRequest | null): any; diff --git a/dist/models/Carriagev1CarriageContainerTaskInfoRequest.js b/dist/models/Carriagev1CarriageContainerTaskInfoRequest.js new file mode 100644 index 0000000..5dede46 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerTaskInfoRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerTaskInfoRequest = instanceOfCarriagev1CarriageContainerTaskInfoRequest; +exports.Carriagev1CarriageContainerTaskInfoRequestFromJSON = Carriagev1CarriageContainerTaskInfoRequestFromJSON; +exports.Carriagev1CarriageContainerTaskInfoRequestFromJSONTyped = Carriagev1CarriageContainerTaskInfoRequestFromJSONTyped; +exports.Carriagev1CarriageContainerTaskInfoRequestToJSON = Carriagev1CarriageContainerTaskInfoRequestToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerTaskInfoRequest interface. + */ +function instanceOfCarriagev1CarriageContainerTaskInfoRequest(value) { + return true; +} +function Carriagev1CarriageContainerTaskInfoRequestFromJSON(json) { + return Carriagev1CarriageContainerTaskInfoRequestFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerTaskInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function Carriagev1CarriageContainerTaskInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/Carriagev1CarriageContainerTaskInfoResponse.d.ts b/dist/models/Carriagev1CarriageContainerTaskInfoResponse.d.ts new file mode 100644 index 0000000..1d29d23 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerTaskInfoResponse.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Carriagev1CarriageContainerTaskInfoResponse + */ +export interface Carriagev1CarriageContainerTaskInfoResponse { + /** + * Текст ошибки. + * @type {string} + * @memberof Carriagev1CarriageContainerTaskInfoResponse + */ + error_message?: string; + /** + * Статус выполнения задачи: + * - `pending` — в ожидании; + * - `in_progress` — в процессе; + * - `completed` — выполнено; + * - `failed` — ошибка при выполнении; + * + * @type {string} + * @memberof Carriagev1CarriageContainerTaskInfoResponse + */ + status?: string; +} +/** + * Check if a given object implements the Carriagev1CarriageContainerTaskInfoResponse interface. + */ +export declare function instanceOfCarriagev1CarriageContainerTaskInfoResponse(value: object): value is Carriagev1CarriageContainerTaskInfoResponse; +export declare function Carriagev1CarriageContainerTaskInfoResponseFromJSON(json: any): Carriagev1CarriageContainerTaskInfoResponse; +export declare function Carriagev1CarriageContainerTaskInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Carriagev1CarriageContainerTaskInfoResponse; +export declare function Carriagev1CarriageContainerTaskInfoResponseToJSON(value?: Carriagev1CarriageContainerTaskInfoResponse | null): any; diff --git a/dist/models/Carriagev1CarriageContainerTaskInfoResponse.js b/dist/models/Carriagev1CarriageContainerTaskInfoResponse.js new file mode 100644 index 0000000..adae8a9 --- /dev/null +++ b/dist/models/Carriagev1CarriageContainerTaskInfoResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCarriagev1CarriageContainerTaskInfoResponse = instanceOfCarriagev1CarriageContainerTaskInfoResponse; +exports.Carriagev1CarriageContainerTaskInfoResponseFromJSON = Carriagev1CarriageContainerTaskInfoResponseFromJSON; +exports.Carriagev1CarriageContainerTaskInfoResponseFromJSONTyped = Carriagev1CarriageContainerTaskInfoResponseFromJSONTyped; +exports.Carriagev1CarriageContainerTaskInfoResponseToJSON = Carriagev1CarriageContainerTaskInfoResponseToJSON; +/** + * Check if a given object implements the Carriagev1CarriageContainerTaskInfoResponse interface. + */ +function instanceOfCarriagev1CarriageContainerTaskInfoResponse(value) { + return true; +} +function Carriagev1CarriageContainerTaskInfoResponseFromJSON(json) { + return Carriagev1CarriageContainerTaskInfoResponseFromJSONTyped(json, false); +} +function Carriagev1CarriageContainerTaskInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function Carriagev1CarriageContainerTaskInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': value['error_message'], + 'status': value['status'], + }; +} diff --git a/dist/models/CertificationV2ProductCertificateCreateRequest.d.ts b/dist/models/CertificationV2ProductCertificateCreateRequest.d.ts new file mode 100644 index 0000000..89e6792 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateCreateRequestParams } from './CertificationV2ProductCertificateCreateRequestParams'; +/** + * + * @export + * @interface CertificationV2ProductCertificateCreateRequest + */ +export interface CertificationV2ProductCertificateCreateRequest { + /** + * + * @type {CertificationV2ProductCertificateCreateRequestParams} + * @memberof CertificationV2ProductCertificateCreateRequest + */ + params?: CertificationV2ProductCertificateCreateRequestParams; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateRequest interface. + */ +export declare function instanceOfCertificationV2ProductCertificateCreateRequest(value: object): value is CertificationV2ProductCertificateCreateRequest; +export declare function CertificationV2ProductCertificateCreateRequestFromJSON(json: any): CertificationV2ProductCertificateCreateRequest; +export declare function CertificationV2ProductCertificateCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateRequest; +export declare function CertificationV2ProductCertificateCreateRequestToJSON(value?: CertificationV2ProductCertificateCreateRequest | null): any; diff --git a/dist/models/CertificationV2ProductCertificateCreateRequest.js b/dist/models/CertificationV2ProductCertificateCreateRequest.js new file mode 100644 index 0000000..c0d0f17 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateCreateRequest = instanceOfCertificationV2ProductCertificateCreateRequest; +exports.CertificationV2ProductCertificateCreateRequestFromJSON = CertificationV2ProductCertificateCreateRequestFromJSON; +exports.CertificationV2ProductCertificateCreateRequestFromJSONTyped = CertificationV2ProductCertificateCreateRequestFromJSONTyped; +exports.CertificationV2ProductCertificateCreateRequestToJSON = CertificationV2ProductCertificateCreateRequestToJSON; +const CertificationV2ProductCertificateCreateRequestParams_1 = require("./CertificationV2ProductCertificateCreateRequestParams"); +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateRequest interface. + */ +function instanceOfCertificationV2ProductCertificateCreateRequest(value) { + return true; +} +function CertificationV2ProductCertificateCreateRequestFromJSON(json) { + return CertificationV2ProductCertificateCreateRequestFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': json['params'] == null ? undefined : (0, CertificationV2ProductCertificateCreateRequestParams_1.CertificationV2ProductCertificateCreateRequestParamsFromJSON)(json['params']), + }; +} +function CertificationV2ProductCertificateCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'params': (0, CertificationV2ProductCertificateCreateRequestParams_1.CertificationV2ProductCertificateCreateRequestParamsToJSON)(value['params']), + }; +} diff --git a/dist/models/CertificationV2ProductCertificateCreateRequestParams.d.ts b/dist/models/CertificationV2ProductCertificateCreateRequestParams.d.ts new file mode 100644 index 0000000..4c1f18a --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateRequestParams.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +import type { CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +import type { CertificationV2ProductCertificateParamsRequestParamsFile } from './CertificationV2ProductCertificateParamsRequestParamsFile'; +import type { CertificationV2ProductCertificateParamsRequestParamsExpiredDate } from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +import type { CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +/** + * Параметры для создания сертификата. + * @export + * @interface CertificationV2ProductCertificateCreateRequestParams + */ +export interface CertificationV2ProductCertificateCreateRequestParams { + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + accordance_type?: CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; + /** + * Код страны, где выдали сертификат. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + certificate_country?: string; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + certificate_type?: CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsExpiredDate} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + expired_date?: CertificationV2ProductCertificateParamsRequestParamsExpiredDate; + /** + * Файлы сертификата. + * @type {Array} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + files?: Array; + /** + * Дата выдачи сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + issue_date?: string; + /** + * Ссылка на государственный реестр. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + link_to_registry?: string; + /** + * Название сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + name?: string; + /** + * Номер сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + number?: string; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + product_type?: CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; + /** + * Список идентификаторов товара в системе Ozon — SKU. + * @type {Array} + * @memberof CertificationV2ProductCertificateCreateRequestParams + */ + skus?: Array; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateRequestParams interface. + */ +export declare function instanceOfCertificationV2ProductCertificateCreateRequestParams(value: object): value is CertificationV2ProductCertificateCreateRequestParams; +export declare function CertificationV2ProductCertificateCreateRequestParamsFromJSON(json: any): CertificationV2ProductCertificateCreateRequestParams; +export declare function CertificationV2ProductCertificateCreateRequestParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateRequestParams; +export declare function CertificationV2ProductCertificateCreateRequestParamsToJSON(value?: CertificationV2ProductCertificateCreateRequestParams | null): any; diff --git a/dist/models/CertificationV2ProductCertificateCreateRequestParams.js b/dist/models/CertificationV2ProductCertificateCreateRequestParams.js new file mode 100644 index 0000000..9c5ae98 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateRequestParams.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateCreateRequestParams = instanceOfCertificationV2ProductCertificateCreateRequestParams; +exports.CertificationV2ProductCertificateCreateRequestParamsFromJSON = CertificationV2ProductCertificateCreateRequestParamsFromJSON; +exports.CertificationV2ProductCertificateCreateRequestParamsFromJSONTyped = CertificationV2ProductCertificateCreateRequestParamsFromJSONTyped; +exports.CertificationV2ProductCertificateCreateRequestParamsToJSON = CertificationV2ProductCertificateCreateRequestParamsToJSON; +const CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum_1 = require("./CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum"); +const CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum_1 = require("./CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum"); +const CertificationV2ProductCertificateParamsRequestParamsFile_1 = require("./CertificationV2ProductCertificateParamsRequestParamsFile"); +const CertificationV2ProductCertificateParamsRequestParamsExpiredDate_1 = require("./CertificationV2ProductCertificateParamsRequestParamsExpiredDate"); +const CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum_1 = require("./CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum"); +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateRequestParams interface. + */ +function instanceOfCertificationV2ProductCertificateCreateRequestParams(value) { + return true; +} +function CertificationV2ProductCertificateCreateRequestParamsFromJSON(json) { + return CertificationV2ProductCertificateCreateRequestParamsFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateCreateRequestParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accordance_type': json['accordance_type'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON)(json['accordance_type']), + 'certificate_country': json['certificate_country'] == null ? undefined : json['certificate_country'], + 'certificate_type': json['certificate_type'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON)(json['certificate_type']), + 'expired_date': json['expired_date'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParamsExpiredDate_1.CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON)(json['expired_date']), + 'files': json['files'] == null ? undefined : (json['files'].map(CertificationV2ProductCertificateParamsRequestParamsFile_1.CertificationV2ProductCertificateParamsRequestParamsFileFromJSON)), + 'issue_date': json['issue_date'] == null ? undefined : json['issue_date'], + 'link_to_registry': json['link_to_registry'] == null ? undefined : json['link_to_registry'], + 'name': json['name'] == null ? undefined : json['name'], + 'number': json['number'] == null ? undefined : json['number'], + 'product_type': json['product_type'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON)(json['product_type']), + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +function CertificationV2ProductCertificateCreateRequestParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'accordance_type': (0, CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON)(value['accordance_type']), + 'certificate_country': value['certificate_country'], + 'certificate_type': (0, CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON)(value['certificate_type']), + 'expired_date': (0, CertificationV2ProductCertificateParamsRequestParamsExpiredDate_1.CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON)(value['expired_date']), + 'files': value['files'] == null ? undefined : (value['files'].map(CertificationV2ProductCertificateParamsRequestParamsFile_1.CertificationV2ProductCertificateParamsRequestParamsFileToJSON)), + 'issue_date': value['issue_date'], + 'link_to_registry': value['link_to_registry'], + 'name': value['name'], + 'number': value['number'], + 'product_type': (0, CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON)(value['product_type']), + 'skus': value['skus'], + }; +} diff --git a/dist/models/CertificationV2ProductCertificateCreateResponse.d.ts b/dist/models/CertificationV2ProductCertificateCreateResponse.d.ts new file mode 100644 index 0000000..9dedfad --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateCreateResponseParam } from './CertificationV2ProductCertificateCreateResponseParam'; +import type { CertificationV2ProductCertificateCreateResponseStatusEnum } from './CertificationV2ProductCertificateCreateResponseStatusEnum'; +/** + * + * @export + * @interface CertificationV2ProductCertificateCreateResponse + */ +export interface CertificationV2ProductCertificateCreateResponse { + /** + * Идентификатор сертификата. Если `null`, сертификат создать не удалось. + * @type {number} + * @memberof CertificationV2ProductCertificateCreateResponse + */ + certificate_id?: number; + /** + * Информация о параметрах в запросе. + * @type {Array} + * @memberof CertificationV2ProductCertificateCreateResponse + */ + params?: Array; + /** + * + * @type {CertificationV2ProductCertificateCreateResponseStatusEnum} + * @memberof CertificationV2ProductCertificateCreateResponse + */ + status?: CertificationV2ProductCertificateCreateResponseStatusEnum; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateResponse interface. + */ +export declare function instanceOfCertificationV2ProductCertificateCreateResponse(value: object): value is CertificationV2ProductCertificateCreateResponse; +export declare function CertificationV2ProductCertificateCreateResponseFromJSON(json: any): CertificationV2ProductCertificateCreateResponse; +export declare function CertificationV2ProductCertificateCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateResponse; +export declare function CertificationV2ProductCertificateCreateResponseToJSON(value?: CertificationV2ProductCertificateCreateResponse | null): any; diff --git a/dist/models/CertificationV2ProductCertificateCreateResponse.js b/dist/models/CertificationV2ProductCertificateCreateResponse.js new file mode 100644 index 0000000..3fec626 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateCreateResponse = instanceOfCertificationV2ProductCertificateCreateResponse; +exports.CertificationV2ProductCertificateCreateResponseFromJSON = CertificationV2ProductCertificateCreateResponseFromJSON; +exports.CertificationV2ProductCertificateCreateResponseFromJSONTyped = CertificationV2ProductCertificateCreateResponseFromJSONTyped; +exports.CertificationV2ProductCertificateCreateResponseToJSON = CertificationV2ProductCertificateCreateResponseToJSON; +const CertificationV2ProductCertificateCreateResponseParam_1 = require("./CertificationV2ProductCertificateCreateResponseParam"); +const CertificationV2ProductCertificateCreateResponseStatusEnum_1 = require("./CertificationV2ProductCertificateCreateResponseStatusEnum"); +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateResponse interface. + */ +function instanceOfCertificationV2ProductCertificateCreateResponse(value) { + return true; +} +function CertificationV2ProductCertificateCreateResponseFromJSON(json) { + return CertificationV2ProductCertificateCreateResponseFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'] == null ? undefined : json['certificate_id'], + 'params': json['params'] == null ? undefined : (json['params'].map(CertificationV2ProductCertificateCreateResponseParam_1.CertificationV2ProductCertificateCreateResponseParamFromJSON)), + 'status': json['status'] == null ? undefined : (0, CertificationV2ProductCertificateCreateResponseStatusEnum_1.CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON)(json['status']), + }; +} +function CertificationV2ProductCertificateCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'params': value['params'] == null ? undefined : (value['params'].map(CertificationV2ProductCertificateCreateResponseParam_1.CertificationV2ProductCertificateCreateResponseParamToJSON)), + 'status': (0, CertificationV2ProductCertificateCreateResponseStatusEnum_1.CertificationV2ProductCertificateCreateResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/CertificationV2ProductCertificateCreateResponseParam.d.ts b/dist/models/CertificationV2ProductCertificateCreateResponseParam.d.ts new file mode 100644 index 0000000..93d7946 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateResponseParam.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateCreateResponseParamStateEnum } from './CertificationV2ProductCertificateCreateResponseParamStateEnum'; +/** + * + * @export + * @interface CertificationV2ProductCertificateCreateResponseParam + */ +export interface CertificationV2ProductCertificateCreateResponseParam { + /** + * Ошибки в параметре для `state = INVALID`. + * @type {string} + * @memberof CertificationV2ProductCertificateCreateResponseParam + */ + error?: string; + /** + * Название параметра сертификата: + * - `NAME` — название; + * - `CERTIFICATE_TYPE` — тип; + * - `NUMBER` — номер; + * - `FILES` — файл с сертификатом в кодировке Base64; + * - `CERTIFICATE_COUNTRY` — страна выдачи; + * - `ACCORDANCE_TYPE` — тип соответствия требованиям; + * - `SKUS` — список идентификаторов товара в системе Ozon, SKU; + * - `ISSUE_DATE` — дата выпуска; + * - `EXPIRED_DATE` — дата истечения; + * - `LINK_TO_REGISTRY` — ссылка на государственный реестр; + * - `PRODUCT_TYPE` — тип товаров; + * - `INFINITE` — бессрочность. + * + * @type {string} + * @memberof CertificationV2ProductCertificateCreateResponseParam + */ + name?: string; + /** + * + * @type {CertificationV2ProductCertificateCreateResponseParamStateEnum} + * @memberof CertificationV2ProductCertificateCreateResponseParam + */ + state?: CertificationV2ProductCertificateCreateResponseParamStateEnum; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateResponseParam interface. + */ +export declare function instanceOfCertificationV2ProductCertificateCreateResponseParam(value: object): value is CertificationV2ProductCertificateCreateResponseParam; +export declare function CertificationV2ProductCertificateCreateResponseParamFromJSON(json: any): CertificationV2ProductCertificateCreateResponseParam; +export declare function CertificationV2ProductCertificateCreateResponseParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateResponseParam; +export declare function CertificationV2ProductCertificateCreateResponseParamToJSON(value?: CertificationV2ProductCertificateCreateResponseParam | null): any; diff --git a/dist/models/CertificationV2ProductCertificateCreateResponseParam.js b/dist/models/CertificationV2ProductCertificateCreateResponseParam.js new file mode 100644 index 0000000..10a29a7 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateResponseParam.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateCreateResponseParam = instanceOfCertificationV2ProductCertificateCreateResponseParam; +exports.CertificationV2ProductCertificateCreateResponseParamFromJSON = CertificationV2ProductCertificateCreateResponseParamFromJSON; +exports.CertificationV2ProductCertificateCreateResponseParamFromJSONTyped = CertificationV2ProductCertificateCreateResponseParamFromJSONTyped; +exports.CertificationV2ProductCertificateCreateResponseParamToJSON = CertificationV2ProductCertificateCreateResponseParamToJSON; +const CertificationV2ProductCertificateCreateResponseParamStateEnum_1 = require("./CertificationV2ProductCertificateCreateResponseParamStateEnum"); +/** + * Check if a given object implements the CertificationV2ProductCertificateCreateResponseParam interface. + */ +function instanceOfCertificationV2ProductCertificateCreateResponseParam(value) { + return true; +} +function CertificationV2ProductCertificateCreateResponseParamFromJSON(json) { + return CertificationV2ProductCertificateCreateResponseParamFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateCreateResponseParamFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'name': json['name'] == null ? undefined : json['name'], + 'state': json['state'] == null ? undefined : (0, CertificationV2ProductCertificateCreateResponseParamStateEnum_1.CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON)(json['state']), + }; +} +function CertificationV2ProductCertificateCreateResponseParamToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'name': value['name'], + 'state': (0, CertificationV2ProductCertificateCreateResponseParamStateEnum_1.CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON)(value['state']), + }; +} diff --git a/dist/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.d.ts b/dist/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.d.ts new file mode 100644 index 0000000..ba6d2da --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Состояние параметра: + * - `VALID` — заполнен корректно; + * - `INVALID` — заполнен некорректно; + * - `MISSING` — не заполнен. + * + * @export + */ +export declare const CertificationV2ProductCertificateCreateResponseParamStateEnum: { + readonly VALID: "VALID"; + readonly INVALID: "INVALID"; + readonly MISSING: "MISSING"; +}; +export type CertificationV2ProductCertificateCreateResponseParamStateEnum = typeof CertificationV2ProductCertificateCreateResponseParamStateEnum[keyof typeof CertificationV2ProductCertificateCreateResponseParamStateEnum]; +export declare function instanceOfCertificationV2ProductCertificateCreateResponseParamStateEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON(json: any): CertificationV2ProductCertificateCreateResponseParamStateEnum; +export declare function CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateResponseParamStateEnum; +export declare function CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON(value?: CertificationV2ProductCertificateCreateResponseParamStateEnum | null): any; diff --git a/dist/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.js b/dist/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.js new file mode 100644 index 0000000..2f56e7f --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateResponseParamStateEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CertificationV2ProductCertificateCreateResponseParamStateEnum = void 0; +exports.instanceOfCertificationV2ProductCertificateCreateResponseParamStateEnum = instanceOfCertificationV2ProductCertificateCreateResponseParamStateEnum; +exports.CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON = CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON; +exports.CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSONTyped = CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSONTyped; +exports.CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON = CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON; +/** + * Состояние параметра: + * - `VALID` — заполнен корректно; + * - `INVALID` — заполнен некорректно; + * - `MISSING` — не заполнен. + * + * @export + */ +exports.CertificationV2ProductCertificateCreateResponseParamStateEnum = { + VALID: 'VALID', + INVALID: 'INVALID', + MISSING: 'MISSING' +}; +function instanceOfCertificationV2ProductCertificateCreateResponseParamStateEnum(value) { + for (const key in exports.CertificationV2ProductCertificateCreateResponseParamStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CertificationV2ProductCertificateCreateResponseParamStateEnum, key)) { + if (exports.CertificationV2ProductCertificateCreateResponseParamStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSON(json) { + return CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateCreateResponseParamStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CertificationV2ProductCertificateCreateResponseParamStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/CertificationV2ProductCertificateCreateResponseStatusEnum.d.ts b/dist/models/CertificationV2ProductCertificateCreateResponseStatusEnum.d.ts new file mode 100644 index 0000000..1cac30f --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateResponseStatusEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус сертификата: + * - `INCOMPLETE` — не загружен, некоторые параметры переданы некорректно; + * - `COMPLETED` — загружен. + * + * @export + */ +export declare const CertificationV2ProductCertificateCreateResponseStatusEnum: { + readonly INCOMPLETE: "INCOMPLETE"; + readonly COMPLETED: "COMPLETED"; +}; +export type CertificationV2ProductCertificateCreateResponseStatusEnum = typeof CertificationV2ProductCertificateCreateResponseStatusEnum[keyof typeof CertificationV2ProductCertificateCreateResponseStatusEnum]; +export declare function instanceOfCertificationV2ProductCertificateCreateResponseStatusEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON(json: any): CertificationV2ProductCertificateCreateResponseStatusEnum; +export declare function CertificationV2ProductCertificateCreateResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateCreateResponseStatusEnum; +export declare function CertificationV2ProductCertificateCreateResponseStatusEnumToJSON(value?: CertificationV2ProductCertificateCreateResponseStatusEnum | null): any; diff --git a/dist/models/CertificationV2ProductCertificateCreateResponseStatusEnum.js b/dist/models/CertificationV2ProductCertificateCreateResponseStatusEnum.js new file mode 100644 index 0000000..6da0e9a --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateCreateResponseStatusEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CertificationV2ProductCertificateCreateResponseStatusEnum = void 0; +exports.instanceOfCertificationV2ProductCertificateCreateResponseStatusEnum = instanceOfCertificationV2ProductCertificateCreateResponseStatusEnum; +exports.CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON = CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON; +exports.CertificationV2ProductCertificateCreateResponseStatusEnumFromJSONTyped = CertificationV2ProductCertificateCreateResponseStatusEnumFromJSONTyped; +exports.CertificationV2ProductCertificateCreateResponseStatusEnumToJSON = CertificationV2ProductCertificateCreateResponseStatusEnumToJSON; +/** + * Статус сертификата: + * - `INCOMPLETE` — не загружен, некоторые параметры переданы некорректно; + * - `COMPLETED` — загружен. + * + * @export + */ +exports.CertificationV2ProductCertificateCreateResponseStatusEnum = { + INCOMPLETE: 'INCOMPLETE', + COMPLETED: 'COMPLETED' +}; +function instanceOfCertificationV2ProductCertificateCreateResponseStatusEnum(value) { + for (const key in exports.CertificationV2ProductCertificateCreateResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CertificationV2ProductCertificateCreateResponseStatusEnum, key)) { + if (exports.CertificationV2ProductCertificateCreateResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function CertificationV2ProductCertificateCreateResponseStatusEnumFromJSON(json) { + return CertificationV2ProductCertificateCreateResponseStatusEnumFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateCreateResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CertificationV2ProductCertificateCreateResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/CertificationV2ProductCertificateOptionsResponse.d.ts b/dist/models/CertificationV2ProductCertificateOptionsResponse.d.ts new file mode 100644 index 0000000..ac5eb79 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateOptionsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateOptionsResponseOption } from './CertificationV2ProductCertificateOptionsResponseOption'; +/** + * + * @export + * @interface CertificationV2ProductCertificateOptionsResponse + */ +export interface CertificationV2ProductCertificateOptionsResponse { + /** + * Параметры для создания сертификата. + * @type {Array} + * @memberof CertificationV2ProductCertificateOptionsResponse + */ + option?: Array; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateOptionsResponse interface. + */ +export declare function instanceOfCertificationV2ProductCertificateOptionsResponse(value: object): value is CertificationV2ProductCertificateOptionsResponse; +export declare function CertificationV2ProductCertificateOptionsResponseFromJSON(json: any): CertificationV2ProductCertificateOptionsResponse; +export declare function CertificationV2ProductCertificateOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateOptionsResponse; +export declare function CertificationV2ProductCertificateOptionsResponseToJSON(value?: CertificationV2ProductCertificateOptionsResponse | null): any; diff --git a/dist/models/CertificationV2ProductCertificateOptionsResponse.js b/dist/models/CertificationV2ProductCertificateOptionsResponse.js new file mode 100644 index 0000000..567f020 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateOptionsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateOptionsResponse = instanceOfCertificationV2ProductCertificateOptionsResponse; +exports.CertificationV2ProductCertificateOptionsResponseFromJSON = CertificationV2ProductCertificateOptionsResponseFromJSON; +exports.CertificationV2ProductCertificateOptionsResponseFromJSONTyped = CertificationV2ProductCertificateOptionsResponseFromJSONTyped; +exports.CertificationV2ProductCertificateOptionsResponseToJSON = CertificationV2ProductCertificateOptionsResponseToJSON; +const CertificationV2ProductCertificateOptionsResponseOption_1 = require("./CertificationV2ProductCertificateOptionsResponseOption"); +/** + * Check if a given object implements the CertificationV2ProductCertificateOptionsResponse interface. + */ +function instanceOfCertificationV2ProductCertificateOptionsResponse(value) { + return true; +} +function CertificationV2ProductCertificateOptionsResponseFromJSON(json) { + return CertificationV2ProductCertificateOptionsResponseFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateOptionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'option': json['option'] == null ? undefined : (json['option'].map(CertificationV2ProductCertificateOptionsResponseOption_1.CertificationV2ProductCertificateOptionsResponseOptionFromJSON)), + }; +} +function CertificationV2ProductCertificateOptionsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'option': value['option'] == null ? undefined : (value['option'].map(CertificationV2ProductCertificateOptionsResponseOption_1.CertificationV2ProductCertificateOptionsResponseOptionToJSON)), + }; +} diff --git a/dist/models/CertificationV2ProductCertificateOptionsResponseOption.d.ts b/dist/models/CertificationV2ProductCertificateOptionsResponseOption.d.ts new file mode 100644 index 0000000..47816d1 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateOptionsResponseOption.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CertificationV2ProductCertificateOptionsResponseOption + */ +export interface CertificationV2ProductCertificateOptionsResponseOption { + /** + * Название параметра сертификата: + * - `NAME` — название; + * - `CERTIFICATE_TYPE` — тип; + * - `NUMBER` — номер; + * - `FILES` — файл с сертификатом в кодировке Base64; + * - `CERTIFICATE_COUNTRY` — страна выдачи; + * - `ACCORDANCE_TYPE` — тип соответствия требованиям; + * - `SKUS` — список идентификаторов товара в системе Ozon, SKU; + * - `ISSUE_DATE` — дата выпуска; + * - `EXPIRED_DATE` — дата истечения; + * - `LINK_TO_REGISTRY` — ссылка на государственный реестр; + * - `PRODUCT_TYPE` — тип товаров; + * - `INFINITE` — бессрочность. + * + * @type {string} + * @memberof CertificationV2ProductCertificateOptionsResponseOption + */ + name?: string; + /** + * `true`, если параметр обязательный. + * + * @type {boolean} + * @memberof CertificationV2ProductCertificateOptionsResponseOption + */ + required?: boolean; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateOptionsResponseOption interface. + */ +export declare function instanceOfCertificationV2ProductCertificateOptionsResponseOption(value: object): value is CertificationV2ProductCertificateOptionsResponseOption; +export declare function CertificationV2ProductCertificateOptionsResponseOptionFromJSON(json: any): CertificationV2ProductCertificateOptionsResponseOption; +export declare function CertificationV2ProductCertificateOptionsResponseOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateOptionsResponseOption; +export declare function CertificationV2ProductCertificateOptionsResponseOptionToJSON(value?: CertificationV2ProductCertificateOptionsResponseOption | null): any; diff --git a/dist/models/CertificationV2ProductCertificateOptionsResponseOption.js b/dist/models/CertificationV2ProductCertificateOptionsResponseOption.js new file mode 100644 index 0000000..f04034c --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateOptionsResponseOption.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateOptionsResponseOption = instanceOfCertificationV2ProductCertificateOptionsResponseOption; +exports.CertificationV2ProductCertificateOptionsResponseOptionFromJSON = CertificationV2ProductCertificateOptionsResponseOptionFromJSON; +exports.CertificationV2ProductCertificateOptionsResponseOptionFromJSONTyped = CertificationV2ProductCertificateOptionsResponseOptionFromJSONTyped; +exports.CertificationV2ProductCertificateOptionsResponseOptionToJSON = CertificationV2ProductCertificateOptionsResponseOptionToJSON; +/** + * Check if a given object implements the CertificationV2ProductCertificateOptionsResponseOption interface. + */ +function instanceOfCertificationV2ProductCertificateOptionsResponseOption(value) { + return true; +} +function CertificationV2ProductCertificateOptionsResponseOptionFromJSON(json) { + return CertificationV2ProductCertificateOptionsResponseOptionFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateOptionsResponseOptionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'required': json['required'] == null ? undefined : json['required'], + }; +} +function CertificationV2ProductCertificateOptionsResponseOptionToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'required': value['required'], + }; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsRequest.d.ts b/dist/models/CertificationV2ProductCertificateParamsRequest.d.ts new file mode 100644 index 0000000..23cb36b --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateParamsRequestParams } from './CertificationV2ProductCertificateParamsRequestParams'; +/** + * + * @export + * @interface CertificationV2ProductCertificateParamsRequest + */ +export interface CertificationV2ProductCertificateParamsRequest { + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParams} + * @memberof CertificationV2ProductCertificateParamsRequest + */ + params?: CertificationV2ProductCertificateParamsRequestParams; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequest interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsRequest(value: object): value is CertificationV2ProductCertificateParamsRequest; +export declare function CertificationV2ProductCertificateParamsRequestFromJSON(json: any): CertificationV2ProductCertificateParamsRequest; +export declare function CertificationV2ProductCertificateParamsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequest; +export declare function CertificationV2ProductCertificateParamsRequestToJSON(value?: CertificationV2ProductCertificateParamsRequest | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsRequest.js b/dist/models/CertificationV2ProductCertificateParamsRequest.js new file mode 100644 index 0000000..0b6599b --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateParamsRequest = instanceOfCertificationV2ProductCertificateParamsRequest; +exports.CertificationV2ProductCertificateParamsRequestFromJSON = CertificationV2ProductCertificateParamsRequestFromJSON; +exports.CertificationV2ProductCertificateParamsRequestFromJSONTyped = CertificationV2ProductCertificateParamsRequestFromJSONTyped; +exports.CertificationV2ProductCertificateParamsRequestToJSON = CertificationV2ProductCertificateParamsRequestToJSON; +const CertificationV2ProductCertificateParamsRequestParams_1 = require("./CertificationV2ProductCertificateParamsRequestParams"); +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequest interface. + */ +function instanceOfCertificationV2ProductCertificateParamsRequest(value) { + return true; +} +function CertificationV2ProductCertificateParamsRequestFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': json['params'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParams_1.CertificationV2ProductCertificateParamsRequestParamsFromJSON)(json['params']), + }; +} +function CertificationV2ProductCertificateParamsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'params': (0, CertificationV2ProductCertificateParamsRequestParams_1.CertificationV2ProductCertificateParamsRequestParamsToJSON)(value['params']), + }; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParams.d.ts b/dist/models/CertificationV2ProductCertificateParamsRequestParams.d.ts new file mode 100644 index 0000000..2892de3 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParams.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +import type { CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +import type { CertificationV2ProductCertificateParamsRequestParamsFile } from './CertificationV2ProductCertificateParamsRequestParamsFile'; +import type { CertificationV2ProductCertificateParamsRequestParamsExpiredDate } from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +import type { CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum } from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +/** + * Параметры для создания сертификата. + * @export + * @interface CertificationV2ProductCertificateParamsRequestParams + */ +export interface CertificationV2ProductCertificateParamsRequestParams { + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + accordance_type?: CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; + /** + * Код страны, где выдали сертификат. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + certificate_country?: string; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + certificate_type?: CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsExpiredDate} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + expired_date?: CertificationV2ProductCertificateParamsRequestParamsExpiredDate; + /** + * Файлы сертификата. + * @type {Array} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + files?: Array; + /** + * Дата выдачи сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + issue_date?: string; + /** + * Ссылка на государственный реестр. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + link_to_registry?: string; + /** + * Название сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + name?: string; + /** + * Номер сертификата. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + number?: string; + /** + * + * @type {CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + product_type?: CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; + /** + * Список идентификаторов товара в системе Ozon — SKU. + * @type {Array} + * @memberof CertificationV2ProductCertificateParamsRequestParams + */ + skus?: Array; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParams interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParams(value: object): value is CertificationV2ProductCertificateParamsRequestParams; +export declare function CertificationV2ProductCertificateParamsRequestParamsFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParams; +export declare function CertificationV2ProductCertificateParamsRequestParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParams; +export declare function CertificationV2ProductCertificateParamsRequestParamsToJSON(value?: CertificationV2ProductCertificateParamsRequestParams | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParams.js b/dist/models/CertificationV2ProductCertificateParamsRequestParams.js new file mode 100644 index 0000000..e437872 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParams.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateParamsRequestParams = instanceOfCertificationV2ProductCertificateParamsRequestParams; +exports.CertificationV2ProductCertificateParamsRequestParamsFromJSON = CertificationV2ProductCertificateParamsRequestParamsFromJSON; +exports.CertificationV2ProductCertificateParamsRequestParamsFromJSONTyped = CertificationV2ProductCertificateParamsRequestParamsFromJSONTyped; +exports.CertificationV2ProductCertificateParamsRequestParamsToJSON = CertificationV2ProductCertificateParamsRequestParamsToJSON; +const CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum_1 = require("./CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum"); +const CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum_1 = require("./CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum"); +const CertificationV2ProductCertificateParamsRequestParamsFile_1 = require("./CertificationV2ProductCertificateParamsRequestParamsFile"); +const CertificationV2ProductCertificateParamsRequestParamsExpiredDate_1 = require("./CertificationV2ProductCertificateParamsRequestParamsExpiredDate"); +const CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum_1 = require("./CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum"); +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParams interface. + */ +function instanceOfCertificationV2ProductCertificateParamsRequestParams(value) { + return true; +} +function CertificationV2ProductCertificateParamsRequestParamsFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsRequestParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accordance_type': json['accordance_type'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON)(json['accordance_type']), + 'certificate_country': json['certificate_country'] == null ? undefined : json['certificate_country'], + 'certificate_type': json['certificate_type'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON)(json['certificate_type']), + 'expired_date': json['expired_date'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParamsExpiredDate_1.CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON)(json['expired_date']), + 'files': json['files'] == null ? undefined : (json['files'].map(CertificationV2ProductCertificateParamsRequestParamsFile_1.CertificationV2ProductCertificateParamsRequestParamsFileFromJSON)), + 'issue_date': json['issue_date'] == null ? undefined : json['issue_date'], + 'link_to_registry': json['link_to_registry'] == null ? undefined : json['link_to_registry'], + 'name': json['name'] == null ? undefined : json['name'], + 'number': json['number'] == null ? undefined : json['number'], + 'product_type': json['product_type'] == null ? undefined : (0, CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON)(json['product_type']), + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +function CertificationV2ProductCertificateParamsRequestParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'accordance_type': (0, CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON)(value['accordance_type']), + 'certificate_country': value['certificate_country'], + 'certificate_type': (0, CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON)(value['certificate_type']), + 'expired_date': (0, CertificationV2ProductCertificateParamsRequestParamsExpiredDate_1.CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON)(value['expired_date']), + 'files': value['files'] == null ? undefined : (value['files'].map(CertificationV2ProductCertificateParamsRequestParamsFile_1.CertificationV2ProductCertificateParamsRequestParamsFileToJSON)), + 'issue_date': value['issue_date'], + 'link_to_registry': value['link_to_registry'], + 'name': value['name'], + 'number': value['number'], + 'product_type': (0, CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum_1.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON)(value['product_type']), + 'skus': value['skus'], + }; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.d.ts b/dist/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.d.ts new file mode 100644 index 0000000..3618267 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип соответствия требованиям из метода [/v2/product/certificate/accordance-types/list](#operation/CertificateAccordanceTypes): + * - `UNKNOWN` — неизвестный; + * - `EAEU` — стандарт сертификации ЕАЭС; + * - `NATIONAL` — национальный стандарт сертификации; + * - `TECHNICAL_REGULATIONS_RF` — технический регламент Российской Федерации; + * - `TECHNICAL_REGULATIONS_CU` — технический регламент Таможенного союза; + * - `GOST` — ГОСТ; + * - `CHEMICAL_PRODUCTS` — паспорт безопасности химической продукции; + * - `SAFETY_DATA_SHEET` — паспорт безопасности; + * - `REJECTION_LETTER` — отказное письмо. + * + * @export + */ +export declare const CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly EAEU: "EAEU"; + readonly NATIONAL: "NATIONAL"; + readonly TECHNICAL_REGULATIONS_RF: "TECHNICAL_REGULATIONS_RF"; + readonly TECHNICAL_REGULATIONS_CU: "TECHNICAL_REGULATIONS_CU"; + readonly GOST: "GOST"; + readonly CHEMICAL_PRODUCTS: "CHEMICAL_PRODUCTS"; + readonly SAFETY_DATA_SHEET: "SAFETY_DATA_SHEET"; + readonly REJECTION_LETTER: "REJECTION_LETTER"; +}; +export type CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum = typeof CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum[keyof typeof CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum]; +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.js b/dist/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.js new file mode 100644 index 0000000..b673780 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum = void 0; +exports.instanceOfCertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum = instanceOfCertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum; +exports.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON = CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON; +exports.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSONTyped = CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSONTyped; +exports.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON = CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON; +/** + * Тип соответствия требованиям из метода [/v2/product/certificate/accordance-types/list](#operation/CertificateAccordanceTypes): + * - `UNKNOWN` — неизвестный; + * - `EAEU` — стандарт сертификации ЕАЭС; + * - `NATIONAL` — национальный стандарт сертификации; + * - `TECHNICAL_REGULATIONS_RF` — технический регламент Российской Федерации; + * - `TECHNICAL_REGULATIONS_CU` — технический регламент Таможенного союза; + * - `GOST` — ГОСТ; + * - `CHEMICAL_PRODUCTS` — паспорт безопасности химической продукции; + * - `SAFETY_DATA_SHEET` — паспорт безопасности; + * - `REJECTION_LETTER` — отказное письмо. + * + * @export + */ +exports.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum = { + UNKNOWN: 'UNKNOWN', + EAEU: 'EAEU', + NATIONAL: 'NATIONAL', + TECHNICAL_REGULATIONS_RF: 'TECHNICAL_REGULATIONS_RF', + TECHNICAL_REGULATIONS_CU: 'TECHNICAL_REGULATIONS_CU', + GOST: 'GOST', + CHEMICAL_PRODUCTS: 'CHEMICAL_PRODUCTS', + SAFETY_DATA_SHEET: 'SAFETY_DATA_SHEET', + REJECTION_LETTER: 'REJECTION_LETTER' +}; +function instanceOfCertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum(value) { + for (const key in exports.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum, key)) { + if (exports.CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.d.ts b/dist/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.d.ts new file mode 100644 index 0000000..a35a7b0 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип сертификата: + * - `UNKNOWN` — неизвестный; + * - `CERTIFICATE_OF_CONFORMITY` — сертификат соответствия; + * - `DECLARATION` — декларация о соответствии; + * - `CERTIFICATE_OF_REGISTRATION` — свидетельство о государственной регистрации; + * - `REGISTRATION_CERTIFICATE` — регистрационное удостоверение; + * - `REFUSED_LETTER` — отказное письмо; + * - `VETERINARY_COVER_DOCUMENT` — ветеринарный сопроводительный документ; + * - `SAFETY_DATA_SHEET` — паспорт безопасности. + * + * @export + */ +export declare const CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly CERTIFICATE_OF_CONFORMITY: "CERTIFICATE_OF_CONFORMITY"; + readonly DECLARATION: "DECLARATION"; + readonly CERTIFICATE_OF_REGISTRATION: "CERTIFICATE_OF_REGISTRATION"; + readonly REGISTRATION_CERTIFICATE: "REGISTRATION_CERTIFICATE"; + readonly REFUSED_LETTER: "REFUSED_LETTER"; + readonly VETERINARY_COVER_DOCUMENT: "VETERINARY_COVER_DOCUMENT"; + readonly SAFETY_DATA_SHEET: "SAFETY_DATA_SHEET"; +}; +export type CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum = typeof CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum[keyof typeof CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum]; +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.js b/dist/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.js new file mode 100644 index 0000000..6569925 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum = void 0; +exports.instanceOfCertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum = instanceOfCertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum; +exports.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON = CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON; +exports.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSONTyped = CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSONTyped; +exports.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON = CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON; +/** + * Тип сертификата: + * - `UNKNOWN` — неизвестный; + * - `CERTIFICATE_OF_CONFORMITY` — сертификат соответствия; + * - `DECLARATION` — декларация о соответствии; + * - `CERTIFICATE_OF_REGISTRATION` — свидетельство о государственной регистрации; + * - `REGISTRATION_CERTIFICATE` — регистрационное удостоверение; + * - `REFUSED_LETTER` — отказное письмо; + * - `VETERINARY_COVER_DOCUMENT` — ветеринарный сопроводительный документ; + * - `SAFETY_DATA_SHEET` — паспорт безопасности. + * + * @export + */ +exports.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum = { + UNKNOWN: 'UNKNOWN', + CERTIFICATE_OF_CONFORMITY: 'CERTIFICATE_OF_CONFORMITY', + DECLARATION: 'DECLARATION', + CERTIFICATE_OF_REGISTRATION: 'CERTIFICATE_OF_REGISTRATION', + REGISTRATION_CERTIFICATE: 'REGISTRATION_CERTIFICATE', + REFUSED_LETTER: 'REFUSED_LETTER', + VETERINARY_COVER_DOCUMENT: 'VETERINARY_COVER_DOCUMENT', + SAFETY_DATA_SHEET: 'SAFETY_DATA_SHEET' +}; +function instanceOfCertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum(value) { + for (const key in exports.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum, key)) { + if (exports.CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.d.ts b/dist/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.d.ts new file mode 100644 index 0000000..9e7ee5b --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GoogleTypeDate } from './GoogleTypeDate'; +/** + * Информация о дате истечения сертификата. + * @export + * @interface CertificationV2ProductCertificateParamsRequestParamsExpiredDate + */ +export interface CertificationV2ProductCertificateParamsRequestParamsExpiredDate { + /** + * + * @type {GoogleTypeDate} + * @memberof CertificationV2ProductCertificateParamsRequestParamsExpiredDate + */ + date?: GoogleTypeDate; + /** + * `true`, если сертификат бессрочный. Не передавайте параметр, если указали `date`. + * + * @type {boolean} + * @memberof CertificationV2ProductCertificateParamsRequestParamsExpiredDate + */ + infinite?: boolean; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParamsExpiredDate interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsExpiredDate(value: object): value is CertificationV2ProductCertificateParamsRequestParamsExpiredDate; +export declare function CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsExpiredDate; +export declare function CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsExpiredDate; +export declare function CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsExpiredDate | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.js b/dist/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.js new file mode 100644 index 0000000..604b7ee --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsExpiredDate.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateParamsRequestParamsExpiredDate = instanceOfCertificationV2ProductCertificateParamsRequestParamsExpiredDate; +exports.CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON = CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON; +exports.CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSONTyped = CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSONTyped; +exports.CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON = CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON; +const GoogleTypeDate_1 = require("./GoogleTypeDate"); +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParamsExpiredDate interface. + */ +function instanceOfCertificationV2ProductCertificateParamsRequestParamsExpiredDate(value) { + return true; +} +function CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsRequestParamsExpiredDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : (0, GoogleTypeDate_1.GoogleTypeDateFromJSON)(json['date']), + 'infinite': json['infinite'] == null ? undefined : json['infinite'], + }; +} +function CertificationV2ProductCertificateParamsRequestParamsExpiredDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': (0, GoogleTypeDate_1.GoogleTypeDateToJSON)(value['date']), + 'infinite': value['infinite'], + }; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsFile.d.ts b/dist/models/CertificationV2ProductCertificateParamsRequestParamsFile.d.ts new file mode 100644 index 0000000..17b531f --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsFile.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CertificationV2ProductCertificateParamsRequestParamsFile + */ +export interface CertificationV2ProductCertificateParamsRequestParamsFile { + /** + * Файл в кодировке Base64. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParamsFile + */ + file_content: string; + /** + * Название файла. + * @type {string} + * @memberof CertificationV2ProductCertificateParamsRequestParamsFile + */ + name: string; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParamsFile interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsFile(value: object): value is CertificationV2ProductCertificateParamsRequestParamsFile; +export declare function CertificationV2ProductCertificateParamsRequestParamsFileFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsFile; +export declare function CertificationV2ProductCertificateParamsRequestParamsFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsFile; +export declare function CertificationV2ProductCertificateParamsRequestParamsFileToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsFile | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsFile.js b/dist/models/CertificationV2ProductCertificateParamsRequestParamsFile.js new file mode 100644 index 0000000..37093a2 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsFile.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateParamsRequestParamsFile = instanceOfCertificationV2ProductCertificateParamsRequestParamsFile; +exports.CertificationV2ProductCertificateParamsRequestParamsFileFromJSON = CertificationV2ProductCertificateParamsRequestParamsFileFromJSON; +exports.CertificationV2ProductCertificateParamsRequestParamsFileFromJSONTyped = CertificationV2ProductCertificateParamsRequestParamsFileFromJSONTyped; +exports.CertificationV2ProductCertificateParamsRequestParamsFileToJSON = CertificationV2ProductCertificateParamsRequestParamsFileToJSON; +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsRequestParamsFile interface. + */ +function instanceOfCertificationV2ProductCertificateParamsRequestParamsFile(value) { + if (!('file_content' in value) || value['file_content'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + return true; +} +function CertificationV2ProductCertificateParamsRequestParamsFileFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsFileFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsRequestParamsFileFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'], + 'name': json['name'], + }; +} +function CertificationV2ProductCertificateParamsRequestParamsFileToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'name': value['name'], + }; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.d.ts b/dist/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.d.ts new file mode 100644 index 0000000..e9276ec --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип товаров: + * - `UNKNOWN` — неизвестный; + * - `PRODUCTS_SUBJECT_TO_REGISTRATION` — продукт, подлежащий государственной регистрации; + * - `PESTICIDE` — пестицид; + * - `AGROCHEMICAL` — агрохимикат; + * - `FEED_ADDITIVE` — кормовая добавка; + * - `MEDICAL_PRODUCT` — медицинский продукт; + * - `MEDICINE` — лекарственный препарат; + * - `VETERINARY_DRUG` — ветеринарный препарат; + * - `PHARMACEUTICAL_SUBSTANCE` — фармацевтический ингредиент. + * + * @export + */ +export declare const CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly PRODUCTS_SUBJECT_TO_REGISTRATION: "PRODUCTS_SUBJECT_TO_REGISTRATION"; + readonly PESTICIDE: "PESTICIDE"; + readonly AGROCHEMICAL: "AGROCHEMICAL"; + readonly FEED_ADDITIVE: "FEED_ADDITIVE"; + readonly MEDICAL_PRODUCT: "MEDICAL_PRODUCT"; + readonly MEDICINE: "MEDICINE"; + readonly VETERINARY_DRUG: "VETERINARY_DRUG"; + readonly PHARMACEUTICAL_SUBSTANCE: "PHARMACEUTICAL_SUBSTANCE"; +}; +export type CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum = typeof CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum[keyof typeof CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum]; +export declare function instanceOfCertificationV2ProductCertificateParamsRequestParamsProductTypeEnum(value: any): boolean; +export declare function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON(json: any): CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; +export declare function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON(value?: CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.js b/dist/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.js new file mode 100644 index 0000000..33a00eb --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum = void 0; +exports.instanceOfCertificationV2ProductCertificateParamsRequestParamsProductTypeEnum = instanceOfCertificationV2ProductCertificateParamsRequestParamsProductTypeEnum; +exports.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON = CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON; +exports.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSONTyped = CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSONTyped; +exports.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON = CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON; +/** + * Тип товаров: + * - `UNKNOWN` — неизвестный; + * - `PRODUCTS_SUBJECT_TO_REGISTRATION` — продукт, подлежащий государственной регистрации; + * - `PESTICIDE` — пестицид; + * - `AGROCHEMICAL` — агрохимикат; + * - `FEED_ADDITIVE` — кормовая добавка; + * - `MEDICAL_PRODUCT` — медицинский продукт; + * - `MEDICINE` — лекарственный препарат; + * - `VETERINARY_DRUG` — ветеринарный препарат; + * - `PHARMACEUTICAL_SUBSTANCE` — фармацевтический ингредиент. + * + * @export + */ +exports.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum = { + UNKNOWN: 'UNKNOWN', + PRODUCTS_SUBJECT_TO_REGISTRATION: 'PRODUCTS_SUBJECT_TO_REGISTRATION', + PESTICIDE: 'PESTICIDE', + AGROCHEMICAL: 'AGROCHEMICAL', + FEED_ADDITIVE: 'FEED_ADDITIVE', + MEDICAL_PRODUCT: 'MEDICAL_PRODUCT', + MEDICINE: 'MEDICINE', + VETERINARY_DRUG: 'VETERINARY_DRUG', + PHARMACEUTICAL_SUBSTANCE: 'PHARMACEUTICAL_SUBSTANCE' +}; +function instanceOfCertificationV2ProductCertificateParamsRequestParamsProductTypeEnum(value) { + for (const key in exports.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum, key)) { + if (exports.CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSON(json) { + return CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CertificationV2ProductCertificateParamsRequestParamsProductTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsResponse.d.ts b/dist/models/CertificationV2ProductCertificateParamsResponse.d.ts new file mode 100644 index 0000000..e5ed61c --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CertificationV2ProductCertificateParamsResponseParam } from './CertificationV2ProductCertificateParamsResponseParam'; +/** + * + * @export + * @interface CertificationV2ProductCertificateParamsResponse + */ +export interface CertificationV2ProductCertificateParamsResponse { + /** + * Параметры для создания сертификата. + * @type {Array} + * @memberof CertificationV2ProductCertificateParamsResponse + */ + params?: Array; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsResponse interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsResponse(value: object): value is CertificationV2ProductCertificateParamsResponse; +export declare function CertificationV2ProductCertificateParamsResponseFromJSON(json: any): CertificationV2ProductCertificateParamsResponse; +export declare function CertificationV2ProductCertificateParamsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsResponse; +export declare function CertificationV2ProductCertificateParamsResponseToJSON(value?: CertificationV2ProductCertificateParamsResponse | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsResponse.js b/dist/models/CertificationV2ProductCertificateParamsResponse.js new file mode 100644 index 0000000..880dc52 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateParamsResponse = instanceOfCertificationV2ProductCertificateParamsResponse; +exports.CertificationV2ProductCertificateParamsResponseFromJSON = CertificationV2ProductCertificateParamsResponseFromJSON; +exports.CertificationV2ProductCertificateParamsResponseFromJSONTyped = CertificationV2ProductCertificateParamsResponseFromJSONTyped; +exports.CertificationV2ProductCertificateParamsResponseToJSON = CertificationV2ProductCertificateParamsResponseToJSON; +const CertificationV2ProductCertificateParamsResponseParam_1 = require("./CertificationV2ProductCertificateParamsResponseParam"); +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsResponse interface. + */ +function instanceOfCertificationV2ProductCertificateParamsResponse(value) { + return true; +} +function CertificationV2ProductCertificateParamsResponseFromJSON(json) { + return CertificationV2ProductCertificateParamsResponseFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': json['params'] == null ? undefined : (json['params'].map(CertificationV2ProductCertificateParamsResponseParam_1.CertificationV2ProductCertificateParamsResponseParamFromJSON)), + }; +} +function CertificationV2ProductCertificateParamsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'params': value['params'] == null ? undefined : (value['params'].map(CertificationV2ProductCertificateParamsResponseParam_1.CertificationV2ProductCertificateParamsResponseParamToJSON)), + }; +} diff --git a/dist/models/CertificationV2ProductCertificateParamsResponseParam.d.ts b/dist/models/CertificationV2ProductCertificateParamsResponseParam.d.ts new file mode 100644 index 0000000..d40f9b4 --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsResponseParam.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CertificationV2ProductCertificateParamsResponseParam + */ +export interface CertificationV2ProductCertificateParamsResponseParam { + /** + * Название параметра сертификата: + * - `NAME` — название; + * - `CERTIFICATE_TYPE` — тип; + * - `NUMBER` — номер; + * - `FILES` — файл с сертификатом в кодировке Base64; + * - `CERTIFICATE_COUNTRY` — страна выдачи; + * - `ACCORDANCE_TYPE` — тип соответствия требованиям; + * - `SKUS` — список идентификаторов товара в системе Ozon, SKU; + * - `ISSUE_DATE` — дата выпуска; + * - `EXPIRED_DATE` — дата истечения; + * - `LINK_TO_REGISTRY` — ссылка на государственный реестр; + * - `PRODUCT_TYPE` — тип товаров; + * - `INFINITE` — бессрочность. + * + * @type {string} + * @memberof CertificationV2ProductCertificateParamsResponseParam + */ + name?: string; + /** + * `true`, если параметр обязательный. + * + * @type {boolean} + * @memberof CertificationV2ProductCertificateParamsResponseParam + */ + required?: boolean; +} +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsResponseParam interface. + */ +export declare function instanceOfCertificationV2ProductCertificateParamsResponseParam(value: object): value is CertificationV2ProductCertificateParamsResponseParam; +export declare function CertificationV2ProductCertificateParamsResponseParamFromJSON(json: any): CertificationV2ProductCertificateParamsResponseParam; +export declare function CertificationV2ProductCertificateParamsResponseParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificationV2ProductCertificateParamsResponseParam; +export declare function CertificationV2ProductCertificateParamsResponseParamToJSON(value?: CertificationV2ProductCertificateParamsResponseParam | null): any; diff --git a/dist/models/CertificationV2ProductCertificateParamsResponseParam.js b/dist/models/CertificationV2ProductCertificateParamsResponseParam.js new file mode 100644 index 0000000..858868f --- /dev/null +++ b/dist/models/CertificationV2ProductCertificateParamsResponseParam.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCertificationV2ProductCertificateParamsResponseParam = instanceOfCertificationV2ProductCertificateParamsResponseParam; +exports.CertificationV2ProductCertificateParamsResponseParamFromJSON = CertificationV2ProductCertificateParamsResponseParamFromJSON; +exports.CertificationV2ProductCertificateParamsResponseParamFromJSONTyped = CertificationV2ProductCertificateParamsResponseParamFromJSONTyped; +exports.CertificationV2ProductCertificateParamsResponseParamToJSON = CertificationV2ProductCertificateParamsResponseParamToJSON; +/** + * Check if a given object implements the CertificationV2ProductCertificateParamsResponseParam interface. + */ +function instanceOfCertificationV2ProductCertificateParamsResponseParam(value) { + return true; +} +function CertificationV2ProductCertificateParamsResponseParamFromJSON(json) { + return CertificationV2ProductCertificateParamsResponseParamFromJSONTyped(json, false); +} +function CertificationV2ProductCertificateParamsResponseParamFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'required': json['required'] == null ? undefined : json['required'], + }; +} +function CertificationV2ProductCertificateParamsResponseParamToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'required': value['required'], + }; +} diff --git a/dist/models/ChatChatSendFileRequest.d.ts b/dist/models/ChatChatSendFileRequest.d.ts new file mode 100644 index 0000000..4456d73 --- /dev/null +++ b/dist/models/ChatChatSendFileRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatSendFileRequest + */ +export interface ChatChatSendFileRequest { + /** + * Файл в виде строки base64. + * @type {string} + * @memberof ChatChatSendFileRequest + */ + base64_content: string; + /** + * Идентификатор чата. + * @type {string} + * @memberof ChatChatSendFileRequest + */ + chat_id: string; + /** + * Название файла с расширением. + * @type {string} + * @memberof ChatChatSendFileRequest + */ + name: string; +} +/** + * Check if a given object implements the ChatChatSendFileRequest interface. + */ +export declare function instanceOfChatChatSendFileRequest(value: object): value is ChatChatSendFileRequest; +export declare function ChatChatSendFileRequestFromJSON(json: any): ChatChatSendFileRequest; +export declare function ChatChatSendFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatSendFileRequest; +export declare function ChatChatSendFileRequestToJSON(value?: ChatChatSendFileRequest | null): any; diff --git a/dist/models/ChatChatSendFileRequest.js b/dist/models/ChatChatSendFileRequest.js new file mode 100644 index 0000000..ae9a0de --- /dev/null +++ b/dist/models/ChatChatSendFileRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatChatSendFileRequest = instanceOfChatChatSendFileRequest; +exports.ChatChatSendFileRequestFromJSON = ChatChatSendFileRequestFromJSON; +exports.ChatChatSendFileRequestFromJSONTyped = ChatChatSendFileRequestFromJSONTyped; +exports.ChatChatSendFileRequestToJSON = ChatChatSendFileRequestToJSON; +/** + * Check if a given object implements the ChatChatSendFileRequest interface. + */ +function instanceOfChatChatSendFileRequest(value) { + if (!('base64_content' in value) || value['base64_content'] === undefined) + return false; + if (!('chat_id' in value) || value['chat_id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + return true; +} +function ChatChatSendFileRequestFromJSON(json) { + return ChatChatSendFileRequestFromJSONTyped(json, false); +} +function ChatChatSendFileRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'base64_content': json['base64_content'], + 'chat_id': json['chat_id'], + 'name': json['name'], + }; +} +function ChatChatSendFileRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'base64_content': value['base64_content'], + 'chat_id': value['chat_id'], + 'name': value['name'], + }; +} diff --git a/dist/models/ChatChatSendFileResponse.d.ts b/dist/models/ChatChatSendFileResponse.d.ts new file mode 100644 index 0000000..9526ce1 --- /dev/null +++ b/dist/models/ChatChatSendFileResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatSendFileResponse + */ +export interface ChatChatSendFileResponse { + /** + * Результат обработки запроса. + * @type {string} + * @memberof ChatChatSendFileResponse + */ + result?: string; +} +/** + * Check if a given object implements the ChatChatSendFileResponse interface. + */ +export declare function instanceOfChatChatSendFileResponse(value: object): value is ChatChatSendFileResponse; +export declare function ChatChatSendFileResponseFromJSON(json: any): ChatChatSendFileResponse; +export declare function ChatChatSendFileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatSendFileResponse; +export declare function ChatChatSendFileResponseToJSON(value?: ChatChatSendFileResponse | null): any; diff --git a/dist/models/ChatChatSendFileResponse.js b/dist/models/ChatChatSendFileResponse.js new file mode 100644 index 0000000..faef4cb --- /dev/null +++ b/dist/models/ChatChatSendFileResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatChatSendFileResponse = instanceOfChatChatSendFileResponse; +exports.ChatChatSendFileResponseFromJSON = ChatChatSendFileResponseFromJSON; +exports.ChatChatSendFileResponseFromJSONTyped = ChatChatSendFileResponseFromJSONTyped; +exports.ChatChatSendFileResponseToJSON = ChatChatSendFileResponseToJSON; +/** + * Check if a given object implements the ChatChatSendFileResponse interface. + */ +function instanceOfChatChatSendFileResponse(value) { + return true; +} +function ChatChatSendFileResponseFromJSON(json) { + return ChatChatSendFileResponseFromJSONTyped(json, false); +} +function ChatChatSendFileResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function ChatChatSendFileResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/ChatChatSendMessageRequest.d.ts b/dist/models/ChatChatSendMessageRequest.d.ts new file mode 100644 index 0000000..3dea88f --- /dev/null +++ b/dist/models/ChatChatSendMessageRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatSendMessageRequest + */ +export interface ChatChatSendMessageRequest { + /** + * Идентификатор чата. + * @type {string} + * @memberof ChatChatSendMessageRequest + */ + chat_id: string; + /** + * Текст сообщения в формате plain text от 1 до 1000 символов. + * @type {string} + * @memberof ChatChatSendMessageRequest + */ + text: string; +} +/** + * Check if a given object implements the ChatChatSendMessageRequest interface. + */ +export declare function instanceOfChatChatSendMessageRequest(value: object): value is ChatChatSendMessageRequest; +export declare function ChatChatSendMessageRequestFromJSON(json: any): ChatChatSendMessageRequest; +export declare function ChatChatSendMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatSendMessageRequest; +export declare function ChatChatSendMessageRequestToJSON(value?: ChatChatSendMessageRequest | null): any; diff --git a/dist/models/ChatChatSendMessageRequest.js b/dist/models/ChatChatSendMessageRequest.js new file mode 100644 index 0000000..e82947c --- /dev/null +++ b/dist/models/ChatChatSendMessageRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatChatSendMessageRequest = instanceOfChatChatSendMessageRequest; +exports.ChatChatSendMessageRequestFromJSON = ChatChatSendMessageRequestFromJSON; +exports.ChatChatSendMessageRequestFromJSONTyped = ChatChatSendMessageRequestFromJSONTyped; +exports.ChatChatSendMessageRequestToJSON = ChatChatSendMessageRequestToJSON; +/** + * Check if a given object implements the ChatChatSendMessageRequest interface. + */ +function instanceOfChatChatSendMessageRequest(value) { + if (!('chat_id' in value) || value['chat_id'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + return true; +} +function ChatChatSendMessageRequestFromJSON(json) { + return ChatChatSendMessageRequestFromJSONTyped(json, false); +} +function ChatChatSendMessageRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_id': json['chat_id'], + 'text': json['text'], + }; +} +function ChatChatSendMessageRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_id': value['chat_id'], + 'text': value['text'], + }; +} diff --git a/dist/models/ChatChatSendMessageResponse.d.ts b/dist/models/ChatChatSendMessageResponse.d.ts new file mode 100644 index 0000000..7769269 --- /dev/null +++ b/dist/models/ChatChatSendMessageResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatSendMessageResponse + */ +export interface ChatChatSendMessageResponse { + /** + * Результат обработки запроса. + * @type {string} + * @memberof ChatChatSendMessageResponse + */ + result?: string; +} +/** + * Check if a given object implements the ChatChatSendMessageResponse interface. + */ +export declare function instanceOfChatChatSendMessageResponse(value: object): value is ChatChatSendMessageResponse; +export declare function ChatChatSendMessageResponseFromJSON(json: any): ChatChatSendMessageResponse; +export declare function ChatChatSendMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatSendMessageResponse; +export declare function ChatChatSendMessageResponseToJSON(value?: ChatChatSendMessageResponse | null): any; diff --git a/dist/models/ChatChatSendMessageResponse.js b/dist/models/ChatChatSendMessageResponse.js new file mode 100644 index 0000000..7b674a8 --- /dev/null +++ b/dist/models/ChatChatSendMessageResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatChatSendMessageResponse = instanceOfChatChatSendMessageResponse; +exports.ChatChatSendMessageResponseFromJSON = ChatChatSendMessageResponseFromJSON; +exports.ChatChatSendMessageResponseFromJSONTyped = ChatChatSendMessageResponseFromJSONTyped; +exports.ChatChatSendMessageResponseToJSON = ChatChatSendMessageResponseToJSON; +/** + * Check if a given object implements the ChatChatSendMessageResponse interface. + */ +function instanceOfChatChatSendMessageResponse(value) { + return true; +} +function ChatChatSendMessageResponseFromJSON(json) { + return ChatChatSendMessageResponseFromJSONTyped(json, false); +} +function ChatChatSendMessageResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function ChatChatSendMessageResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/ChatChatStartRequest.d.ts b/dist/models/ChatChatStartRequest.d.ts new file mode 100644 index 0000000..feac7c5 --- /dev/null +++ b/dist/models/ChatChatStartRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatChatStartRequest + */ +export interface ChatChatStartRequest { + /** + * Идентификатор отправления. + * @type {string} + * @memberof ChatChatStartRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the ChatChatStartRequest interface. + */ +export declare function instanceOfChatChatStartRequest(value: object): value is ChatChatStartRequest; +export declare function ChatChatStartRequestFromJSON(json: any): ChatChatStartRequest; +export declare function ChatChatStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatStartRequest; +export declare function ChatChatStartRequestToJSON(value?: ChatChatStartRequest | null): any; diff --git a/dist/models/ChatChatStartRequest.js b/dist/models/ChatChatStartRequest.js new file mode 100644 index 0000000..ab4dae9 --- /dev/null +++ b/dist/models/ChatChatStartRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatChatStartRequest = instanceOfChatChatStartRequest; +exports.ChatChatStartRequestFromJSON = ChatChatStartRequestFromJSON; +exports.ChatChatStartRequestFromJSONTyped = ChatChatStartRequestFromJSONTyped; +exports.ChatChatStartRequestToJSON = ChatChatStartRequestToJSON; +/** + * Check if a given object implements the ChatChatStartRequest interface. + */ +function instanceOfChatChatStartRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function ChatChatStartRequestFromJSON(json) { + return ChatChatStartRequestFromJSONTyped(json, false); +} +function ChatChatStartRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function ChatChatStartRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/ChatChatStartResponse.d.ts b/dist/models/ChatChatStartResponse.d.ts new file mode 100644 index 0000000..501e3ad --- /dev/null +++ b/dist/models/ChatChatStartResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChatStartResponseResult } from './ChatStartResponseResult'; +/** + * + * @export + * @interface ChatChatStartResponse + */ +export interface ChatChatStartResponse { + /** + * + * @type {ChatStartResponseResult} + * @memberof ChatChatStartResponse + */ + result?: ChatStartResponseResult; +} +/** + * Check if a given object implements the ChatChatStartResponse interface. + */ +export declare function instanceOfChatChatStartResponse(value: object): value is ChatChatStartResponse; +export declare function ChatChatStartResponseFromJSON(json: any): ChatChatStartResponse; +export declare function ChatChatStartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatChatStartResponse; +export declare function ChatChatStartResponseToJSON(value?: ChatChatStartResponse | null): any; diff --git a/dist/models/ChatChatStartResponse.js b/dist/models/ChatChatStartResponse.js new file mode 100644 index 0000000..3dbb1cf --- /dev/null +++ b/dist/models/ChatChatStartResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatChatStartResponse = instanceOfChatChatStartResponse; +exports.ChatChatStartResponseFromJSON = ChatChatStartResponseFromJSON; +exports.ChatChatStartResponseFromJSONTyped = ChatChatStartResponseFromJSONTyped; +exports.ChatChatStartResponseToJSON = ChatChatStartResponseToJSON; +const ChatStartResponseResult_1 = require("./ChatStartResponseResult"); +/** + * Check if a given object implements the ChatChatStartResponse interface. + */ +function instanceOfChatChatStartResponse(value) { + return true; +} +function ChatChatStartResponseFromJSON(json) { + return ChatChatStartResponseFromJSONTyped(json, false); +} +function ChatChatStartResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, ChatStartResponseResult_1.ChatStartResponseResultFromJSON)(json['result']), + }; +} +function ChatChatStartResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, ChatStartResponseResult_1.ChatStartResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/ChatHistoryRequestFilter.d.ts b/dist/models/ChatHistoryRequestFilter.d.ts new file mode 100644 index 0000000..45959f5 --- /dev/null +++ b/dist/models/ChatHistoryRequestFilter.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по сообщениям. + * @export + * @interface ChatHistoryRequestFilter + */ +export interface ChatHistoryRequestFilter { + /** + * Идентификаторы сообщений. + * @type {Array} + * @memberof ChatHistoryRequestFilter + */ + message_ids?: Array; +} +/** + * Check if a given object implements the ChatHistoryRequestFilter interface. + */ +export declare function instanceOfChatHistoryRequestFilter(value: object): value is ChatHistoryRequestFilter; +export declare function ChatHistoryRequestFilterFromJSON(json: any): ChatHistoryRequestFilter; +export declare function ChatHistoryRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatHistoryRequestFilter; +export declare function ChatHistoryRequestFilterToJSON(value?: ChatHistoryRequestFilter | null): any; diff --git a/dist/models/ChatHistoryRequestFilter.js b/dist/models/ChatHistoryRequestFilter.js new file mode 100644 index 0000000..8eae2cc --- /dev/null +++ b/dist/models/ChatHistoryRequestFilter.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatHistoryRequestFilter = instanceOfChatHistoryRequestFilter; +exports.ChatHistoryRequestFilterFromJSON = ChatHistoryRequestFilterFromJSON; +exports.ChatHistoryRequestFilterFromJSONTyped = ChatHistoryRequestFilterFromJSONTyped; +exports.ChatHistoryRequestFilterToJSON = ChatHistoryRequestFilterToJSON; +/** + * Check if a given object implements the ChatHistoryRequestFilter interface. + */ +function instanceOfChatHistoryRequestFilter(value) { + return true; +} +function ChatHistoryRequestFilterFromJSON(json) { + return ChatHistoryRequestFilterFromJSONTyped(json, false); +} +function ChatHistoryRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message_ids': json['message_ids'] == null ? undefined : json['message_ids'], + }; +} +function ChatHistoryRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'message_ids': value['message_ids'], + }; +} diff --git a/dist/models/ChatInfoChatStatusEnum.d.ts b/dist/models/ChatInfoChatStatusEnum.d.ts new file mode 100644 index 0000000..96fa0ff --- /dev/null +++ b/dist/models/ChatInfoChatStatusEnum.d.ts @@ -0,0 +1,30 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус чата: + * - `All` — все чаты; + * - `OPENED` — открытые чаты; + * - `CLOSED` — закрытые чаты; + * - `UNSPECIFIED` — не определено. + * + * @export + */ +export declare const ChatInfoChatStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OPENED: "OPENED"; + readonly CLOSED: "CLOSED"; +}; +export type ChatInfoChatStatusEnum = typeof ChatInfoChatStatusEnum[keyof typeof ChatInfoChatStatusEnum]; +export declare function instanceOfChatInfoChatStatusEnum(value: any): boolean; +export declare function ChatInfoChatStatusEnumFromJSON(json: any): ChatInfoChatStatusEnum; +export declare function ChatInfoChatStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatInfoChatStatusEnum; +export declare function ChatInfoChatStatusEnumToJSON(value?: ChatInfoChatStatusEnum | null): any; diff --git a/dist/models/ChatInfoChatStatusEnum.js b/dist/models/ChatInfoChatStatusEnum.js new file mode 100644 index 0000000..7b526db --- /dev/null +++ b/dist/models/ChatInfoChatStatusEnum.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChatInfoChatStatusEnum = void 0; +exports.instanceOfChatInfoChatStatusEnum = instanceOfChatInfoChatStatusEnum; +exports.ChatInfoChatStatusEnumFromJSON = ChatInfoChatStatusEnumFromJSON; +exports.ChatInfoChatStatusEnumFromJSONTyped = ChatInfoChatStatusEnumFromJSONTyped; +exports.ChatInfoChatStatusEnumToJSON = ChatInfoChatStatusEnumToJSON; +/** + * Статус чата: + * - `All` — все чаты; + * - `OPENED` — открытые чаты; + * - `CLOSED` — закрытые чаты; + * - `UNSPECIFIED` — не определено. + * + * @export + */ +exports.ChatInfoChatStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OPENED: 'OPENED', + CLOSED: 'CLOSED' +}; +function instanceOfChatInfoChatStatusEnum(value) { + for (const key in exports.ChatInfoChatStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ChatInfoChatStatusEnum, key)) { + if (exports.ChatInfoChatStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function ChatInfoChatStatusEnumFromJSON(json) { + return ChatInfoChatStatusEnumFromJSONTyped(json, false); +} +function ChatInfoChatStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ChatInfoChatStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/ChatInfoChatTypeEnum.d.ts b/dist/models/ChatInfoChatTypeEnum.d.ts new file mode 100644 index 0000000..ad74609 --- /dev/null +++ b/dist/models/ChatInfoChatTypeEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чата: + * - `UNSPECIFIED` — не определено; + * - `SELLER_SUPPORT` — чат с поддержкой; + * - `BUYER_SELLER` — чат с покупателем; + * - `BUYER_SELLER_SELECT` — чат с покупателем по заказам Ozon Селект; + * - `SELLER_API_UPDATES` — чат с обновлениями Seller API; + * - `SELLER_API_NOTIFICATIONS` — чат с уведомлениями Seller API; + * - `SELLER_NOTIFICATION_LOGISTICS` — чат с уведомлениями Ozon Доставки; + * - `SELLER_NOTIFICATION_UPDATE_CONTENT` — чат с уведомлениями об изменениях в атрибутно-категорийной модели; + * - `SELLER_PERSONAL_MANAGER_UNITY_CRM` — чат с персональным менеджером Ozon; + * - `SELLER_BUSINESS_DEVELOPMENT_GROUP` — чат с группой бизнес-развития Ozon. + * + * @export + */ +export declare const ChatInfoChatTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SELLER_SUPPORT: "SELLER_SUPPORT"; + readonly BUYER_SELLER: "BUYER_SELLER"; + readonly BUYER_SELLER_SELECT: "BUYER_SELLER_SELECT"; + readonly SELLER_API_UPDATES: "SELLER_API_UPDATES"; + readonly SELLER_API_NOTIFICATIONS: "SELLER_API_NOTIFICATIONS"; + readonly SELLER_NOTIFICATION_LOGISTICS: "SELLER_NOTIFICATION_LOGISTICS"; + readonly SELLER_NOTIFICATION_UPDATE_CONTENT: "SELLER_NOTIFICATION_UPDATE_CONTENT"; + readonly SELLER_PERSONAL_MANAGER_UNITY_CRM: "SELLER_PERSONAL_MANAGER_UNITY_CRM"; + readonly SELLER_BUSINESS_DEVELOPMENT_GROUP: "SELLER_BUSINESS_DEVELOPMENT_GROUP"; +}; +export type ChatInfoChatTypeEnum = typeof ChatInfoChatTypeEnum[keyof typeof ChatInfoChatTypeEnum]; +export declare function instanceOfChatInfoChatTypeEnum(value: any): boolean; +export declare function ChatInfoChatTypeEnumFromJSON(json: any): ChatInfoChatTypeEnum; +export declare function ChatInfoChatTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatInfoChatTypeEnum; +export declare function ChatInfoChatTypeEnumToJSON(value?: ChatInfoChatTypeEnum | null): any; diff --git a/dist/models/ChatInfoChatTypeEnum.js b/dist/models/ChatInfoChatTypeEnum.js new file mode 100644 index 0000000..af0f6f3 --- /dev/null +++ b/dist/models/ChatInfoChatTypeEnum.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChatInfoChatTypeEnum = void 0; +exports.instanceOfChatInfoChatTypeEnum = instanceOfChatInfoChatTypeEnum; +exports.ChatInfoChatTypeEnumFromJSON = ChatInfoChatTypeEnumFromJSON; +exports.ChatInfoChatTypeEnumFromJSONTyped = ChatInfoChatTypeEnumFromJSONTyped; +exports.ChatInfoChatTypeEnumToJSON = ChatInfoChatTypeEnumToJSON; +/** + * Тип чата: + * - `UNSPECIFIED` — не определено; + * - `SELLER_SUPPORT` — чат с поддержкой; + * - `BUYER_SELLER` — чат с покупателем; + * - `BUYER_SELLER_SELECT` — чат с покупателем по заказам Ozon Селект; + * - `SELLER_API_UPDATES` — чат с обновлениями Seller API; + * - `SELLER_API_NOTIFICATIONS` — чат с уведомлениями Seller API; + * - `SELLER_NOTIFICATION_LOGISTICS` — чат с уведомлениями Ozon Доставки; + * - `SELLER_NOTIFICATION_UPDATE_CONTENT` — чат с уведомлениями об изменениях в атрибутно-категорийной модели; + * - `SELLER_PERSONAL_MANAGER_UNITY_CRM` — чат с персональным менеджером Ozon; + * - `SELLER_BUSINESS_DEVELOPMENT_GROUP` — чат с группой бизнес-развития Ozon. + * + * @export + */ +exports.ChatInfoChatTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SELLER_SUPPORT: 'SELLER_SUPPORT', + BUYER_SELLER: 'BUYER_SELLER', + BUYER_SELLER_SELECT: 'BUYER_SELLER_SELECT', + SELLER_API_UPDATES: 'SELLER_API_UPDATES', + SELLER_API_NOTIFICATIONS: 'SELLER_API_NOTIFICATIONS', + SELLER_NOTIFICATION_LOGISTICS: 'SELLER_NOTIFICATION_LOGISTICS', + SELLER_NOTIFICATION_UPDATE_CONTENT: 'SELLER_NOTIFICATION_UPDATE_CONTENT', + SELLER_PERSONAL_MANAGER_UNITY_CRM: 'SELLER_PERSONAL_MANAGER_UNITY_CRM', + SELLER_BUSINESS_DEVELOPMENT_GROUP: 'SELLER_BUSINESS_DEVELOPMENT_GROUP' +}; +function instanceOfChatInfoChatTypeEnum(value) { + for (const key in exports.ChatInfoChatTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ChatInfoChatTypeEnum, key)) { + if (exports.ChatInfoChatTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ChatInfoChatTypeEnumFromJSON(json) { + return ChatInfoChatTypeEnumFromJSONTyped(json, false); +} +function ChatInfoChatTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ChatInfoChatTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ChatMessageContext.d.ts b/dist/models/ChatMessageContext.d.ts new file mode 100644 index 0000000..af83b61 --- /dev/null +++ b/dist/models/ChatMessageContext.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о чате. + * @export + * @interface ChatMessageContext + */ +export interface ChatMessageContext { + /** + * Номер заказа. + * @type {string} + * @memberof ChatMessageContext + */ + order_number?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {string} + * @memberof ChatMessageContext + */ + sku?: string; +} +/** + * Check if a given object implements the ChatMessageContext interface. + */ +export declare function instanceOfChatMessageContext(value: object): value is ChatMessageContext; +export declare function ChatMessageContextFromJSON(json: any): ChatMessageContext; +export declare function ChatMessageContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageContext; +export declare function ChatMessageContextToJSON(value?: ChatMessageContext | null): any; diff --git a/dist/models/ChatMessageContext.js b/dist/models/ChatMessageContext.js new file mode 100644 index 0000000..838726d --- /dev/null +++ b/dist/models/ChatMessageContext.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatMessageContext = instanceOfChatMessageContext; +exports.ChatMessageContextFromJSON = ChatMessageContextFromJSON; +exports.ChatMessageContextFromJSONTyped = ChatMessageContextFromJSONTyped; +exports.ChatMessageContextToJSON = ChatMessageContextToJSON; +/** + * Check if a given object implements the ChatMessageContext interface. + */ +function instanceOfChatMessageContext(value) { + return true; +} +function ChatMessageContextFromJSON(json) { + return ChatMessageContextFromJSONTyped(json, false); +} +function ChatMessageContextFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function ChatMessageContextToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/ChatMessageModerateImageStatus.d.ts b/dist/models/ChatMessageModerateImageStatus.d.ts new file mode 100644 index 0000000..7995974 --- /dev/null +++ b/dist/models/ChatMessageModerateImageStatus.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус модерации изображения: + * - `SUCCESS` — прошло модерацию; + * - `MODERATION` — на модерации; + * - `FAILED` — не прошло модерацию. + * + * @export + */ +export declare const ChatMessageModerateImageStatus: { + readonly SUCCESS: "SUCCESS"; + readonly MODERATION: "MODERATION"; + readonly FAILED: "FAILED"; +}; +export type ChatMessageModerateImageStatus = typeof ChatMessageModerateImageStatus[keyof typeof ChatMessageModerateImageStatus]; +export declare function instanceOfChatMessageModerateImageStatus(value: any): boolean; +export declare function ChatMessageModerateImageStatusFromJSON(json: any): ChatMessageModerateImageStatus; +export declare function ChatMessageModerateImageStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageModerateImageStatus; +export declare function ChatMessageModerateImageStatusToJSON(value?: ChatMessageModerateImageStatus | null): any; diff --git a/dist/models/ChatMessageModerateImageStatus.js b/dist/models/ChatMessageModerateImageStatus.js new file mode 100644 index 0000000..9982bf4 --- /dev/null +++ b/dist/models/ChatMessageModerateImageStatus.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChatMessageModerateImageStatus = void 0; +exports.instanceOfChatMessageModerateImageStatus = instanceOfChatMessageModerateImageStatus; +exports.ChatMessageModerateImageStatusFromJSON = ChatMessageModerateImageStatusFromJSON; +exports.ChatMessageModerateImageStatusFromJSONTyped = ChatMessageModerateImageStatusFromJSONTyped; +exports.ChatMessageModerateImageStatusToJSON = ChatMessageModerateImageStatusToJSON; +/** + * Статус модерации изображения: + * - `SUCCESS` — прошло модерацию; + * - `MODERATION` — на модерации; + * - `FAILED` — не прошло модерацию. + * + * @export + */ +exports.ChatMessageModerateImageStatus = { + SUCCESS: 'SUCCESS', + MODERATION: 'MODERATION', + FAILED: 'FAILED' +}; +function instanceOfChatMessageModerateImageStatus(value) { + for (const key in exports.ChatMessageModerateImageStatus) { + if (Object.prototype.hasOwnProperty.call(exports.ChatMessageModerateImageStatus, key)) { + if (exports.ChatMessageModerateImageStatus[key] === value) { + return true; + } + } + } + return false; +} +function ChatMessageModerateImageStatusFromJSON(json) { + return ChatMessageModerateImageStatusFromJSONTyped(json, false); +} +function ChatMessageModerateImageStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ChatMessageModerateImageStatusToJSON(value) { + return value; +} diff --git a/dist/models/ChatRead.d.ts b/dist/models/ChatRead.d.ts new file mode 100644 index 0000000..82c686f --- /dev/null +++ b/dist/models/ChatRead.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ChatRead + */ +export interface ChatRead { + /** + * Идентификатор чата. + * @type {string} + * @memberof ChatRead + */ + chat_id: string; + /** + * Идентификатор сообщения. + * @type {number} + * @memberof ChatRead + */ + from_message_id?: number; +} +/** + * Check if a given object implements the ChatRead interface. + */ +export declare function instanceOfChatRead(value: object): value is ChatRead; +export declare function ChatReadFromJSON(json: any): ChatRead; +export declare function ChatReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatRead; +export declare function ChatReadToJSON(value?: ChatRead | null): any; diff --git a/dist/models/ChatRead.js b/dist/models/ChatRead.js new file mode 100644 index 0000000..aaf85e1 --- /dev/null +++ b/dist/models/ChatRead.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatRead = instanceOfChatRead; +exports.ChatReadFromJSON = ChatReadFromJSON; +exports.ChatReadFromJSONTyped = ChatReadFromJSONTyped; +exports.ChatReadToJSON = ChatReadToJSON; +/** + * Check if a given object implements the ChatRead interface. + */ +function instanceOfChatRead(value) { + if (!('chat_id' in value) || value['chat_id'] === undefined) + return false; + return true; +} +function ChatReadFromJSON(json) { + return ChatReadFromJSONTyped(json, false); +} +function ChatReadFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_id': json['chat_id'], + 'from_message_id': json['from_message_id'] == null ? undefined : json['from_message_id'], + }; +} +function ChatReadToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_id': value['chat_id'], + 'from_message_id': value['from_message_id'], + }; +} diff --git a/dist/models/ChatStartResponseResult.d.ts b/dist/models/ChatStartResponseResult.d.ts new file mode 100644 index 0000000..92dd500 --- /dev/null +++ b/dist/models/ChatStartResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface ChatStartResponseResult + */ +export interface ChatStartResponseResult { + /** + * Идентификатор чата. + * @type {string} + * @memberof ChatStartResponseResult + */ + chat_id?: string; +} +/** + * Check if a given object implements the ChatStartResponseResult interface. + */ +export declare function instanceOfChatStartResponseResult(value: object): value is ChatStartResponseResult; +export declare function ChatStartResponseResultFromJSON(json: any): ChatStartResponseResult; +export declare function ChatStartResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatStartResponseResult; +export declare function ChatStartResponseResultToJSON(value?: ChatStartResponseResult | null): any; diff --git a/dist/models/ChatStartResponseResult.js b/dist/models/ChatStartResponseResult.js new file mode 100644 index 0000000..e636f62 --- /dev/null +++ b/dist/models/ChatStartResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChatStartResponseResult = instanceOfChatStartResponseResult; +exports.ChatStartResponseResultFromJSON = ChatStartResponseResultFromJSON; +exports.ChatStartResponseResultFromJSONTyped = ChatStartResponseResultFromJSONTyped; +exports.ChatStartResponseResultToJSON = ChatStartResponseResultToJSON; +/** + * Check if a given object implements the ChatStartResponseResult interface. + */ +function instanceOfChatStartResponseResult(value) { + return true; +} +function ChatStartResponseResultFromJSON(json) { + return ChatStartResponseResultFromJSONTyped(json, false); +} +function ChatStartResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_id': json['chat_id'] == null ? undefined : json['chat_id'], + }; +} +function ChatStartResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_id': value['chat_id'], + }; +} diff --git a/dist/models/ClientTimeslotDateRange.d.ts b/dist/models/ClientTimeslotDateRange.d.ts new file mode 100644 index 0000000..915442a --- /dev/null +++ b/dist/models/ClientTimeslotDateRange.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал времени, когда покупатель может получить заказ. + * @export + * @interface ClientTimeslotDateRange + */ +export interface ClientTimeslotDateRange { + /** + * Дата и время начала интервала. + * @type {string} + * @memberof ClientTimeslotDateRange + */ + from?: string; + /** + * Дата и время конца интервала. + * @type {string} + * @memberof ClientTimeslotDateRange + */ + to?: string; +} +/** + * Check if a given object implements the ClientTimeslotDateRange interface. + */ +export declare function instanceOfClientTimeslotDateRange(value: object): value is ClientTimeslotDateRange; +export declare function ClientTimeslotDateRangeFromJSON(json: any): ClientTimeslotDateRange; +export declare function ClientTimeslotDateRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientTimeslotDateRange; +export declare function ClientTimeslotDateRangeToJSON(value?: ClientTimeslotDateRange | null): any; diff --git a/dist/models/ClientTimeslotDateRange.js b/dist/models/ClientTimeslotDateRange.js new file mode 100644 index 0000000..6847d3b --- /dev/null +++ b/dist/models/ClientTimeslotDateRange.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfClientTimeslotDateRange = instanceOfClientTimeslotDateRange; +exports.ClientTimeslotDateRangeFromJSON = ClientTimeslotDateRangeFromJSON; +exports.ClientTimeslotDateRangeFromJSONTyped = ClientTimeslotDateRangeFromJSONTyped; +exports.ClientTimeslotDateRangeToJSON = ClientTimeslotDateRangeToJSON; +/** + * Check if a given object implements the ClientTimeslotDateRange interface. + */ +function instanceOfClientTimeslotDateRange(value) { + return true; +} +function ClientTimeslotDateRangeFromJSON(json) { + return ClientTimeslotDateRangeFromJSONTyped(json, false); +} +function ClientTimeslotDateRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function ClientTimeslotDateRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/ClusterWarehouse.d.ts b/dist/models/ClusterWarehouse.d.ts new file mode 100644 index 0000000..7dcf512 --- /dev/null +++ b/dist/models/ClusterWarehouse.d.ts @@ -0,0 +1,81 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseAvailabilityStatus } from './WarehouseAvailabilityStatus'; +import type { WarehouseStorageWarehouse } from './WarehouseStorageWarehouse'; +import type { WarehouseSupplyTagEnum } from './WarehouseSupplyTagEnum'; +/** + * + * @export + * @interface ClusterWarehouse + */ +export interface ClusterWarehouse { + /** + * + * @type {WarehouseAvailabilityStatus} + * @memberof ClusterWarehouse + */ + availability_status?: WarehouseAvailabilityStatus; + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof ClusterWarehouse + */ + bundle_id?: string; + /** + * Комплект товаров, которые не попадают в поставку. Используйте значение параметра в методе [/v1/supply-order/bundle](#operation/SupplyOrderBundle), чтобы получить подробную информацию. + * @type {string} + * @memberof ClusterWarehouse + */ + restricted_bundle_id?: string; + /** + * + * @type {WarehouseStorageWarehouse} + * @memberof ClusterWarehouse + */ + storage_warehouse?: WarehouseStorageWarehouse; + /** + * Метки товаров в заявке на поставку: + * - `UNSPECIFIED` — не определена; + * - `TRACEABLE` — товар с признаком прослеживаемости; + * - `ETTN_REQUIRED` — товар, для которого необходима электронная ТТН; + * - `EVSD_REQUIRED` — товар с сертификацией «Меркурий»; + * - `MARKING_REQUIRED` — товар с обязательной маркировкой «Честный ЗНАК»; + * - `MARKING_POSSIBLE` — товар с возможной маркировкой «Честный ЗНАК»; + * - `JEWELRY` — товар с признаком ювелирного изделия; + * - `FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE` — заморозка стока для поставок, в которых есть маркируемые товары и не был передан УПД; + * - `UTD_REQUIRED` — товар с обязательным УПД; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof ClusterWarehouse + */ + supply_tags?: Array; + /** + * Ранг склада в кластере. Только для поставок с типом `DIRECT`. + * @type {number} + * @memberof ClusterWarehouse + */ + total_rank?: number; + /** + * Рейтинг склада. + * @type {number} + * @memberof ClusterWarehouse + */ + total_score?: number; +} +/** + * Check if a given object implements the ClusterWarehouse interface. + */ +export declare function instanceOfClusterWarehouse(value: object): value is ClusterWarehouse; +export declare function ClusterWarehouseFromJSON(json: any): ClusterWarehouse; +export declare function ClusterWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterWarehouse; +export declare function ClusterWarehouseToJSON(value?: ClusterWarehouse | null): any; diff --git a/dist/models/ClusterWarehouse.js b/dist/models/ClusterWarehouse.js new file mode 100644 index 0000000..2d5fd46 --- /dev/null +++ b/dist/models/ClusterWarehouse.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfClusterWarehouse = instanceOfClusterWarehouse; +exports.ClusterWarehouseFromJSON = ClusterWarehouseFromJSON; +exports.ClusterWarehouseFromJSONTyped = ClusterWarehouseFromJSONTyped; +exports.ClusterWarehouseToJSON = ClusterWarehouseToJSON; +const WarehouseAvailabilityStatus_1 = require("./WarehouseAvailabilityStatus"); +const WarehouseStorageWarehouse_1 = require("./WarehouseStorageWarehouse"); +const WarehouseSupplyTagEnum_1 = require("./WarehouseSupplyTagEnum"); +/** + * Check if a given object implements the ClusterWarehouse interface. + */ +function instanceOfClusterWarehouse(value) { + return true; +} +function ClusterWarehouseFromJSON(json) { + return ClusterWarehouseFromJSONTyped(json, false); +} +function ClusterWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'availability_status': json['availability_status'] == null ? undefined : (0, WarehouseAvailabilityStatus_1.WarehouseAvailabilityStatusFromJSON)(json['availability_status']), + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'restricted_bundle_id': json['restricted_bundle_id'] == null ? undefined : json['restricted_bundle_id'], + 'storage_warehouse': json['storage_warehouse'] == null ? undefined : (0, WarehouseStorageWarehouse_1.WarehouseStorageWarehouseFromJSON)(json['storage_warehouse']), + 'supply_tags': json['supply_tags'] == null ? undefined : (json['supply_tags'].map(WarehouseSupplyTagEnum_1.WarehouseSupplyTagEnumFromJSON)), + 'total_rank': json['total_rank'] == null ? undefined : json['total_rank'], + 'total_score': json['total_score'] == null ? undefined : json['total_score'], + }; +} +function ClusterWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'availability_status': (0, WarehouseAvailabilityStatus_1.WarehouseAvailabilityStatusToJSON)(value['availability_status']), + 'bundle_id': value['bundle_id'], + 'restricted_bundle_id': value['restricted_bundle_id'], + 'storage_warehouse': (0, WarehouseStorageWarehouse_1.WarehouseStorageWarehouseToJSON)(value['storage_warehouse']), + 'supply_tags': value['supply_tags'] == null ? undefined : (value['supply_tags'].map(WarehouseSupplyTagEnum_1.WarehouseSupplyTagEnumToJSON)), + 'total_rank': value['total_rank'], + 'total_score': value['total_score'], + }; +} diff --git a/dist/models/CommentListResponseComment.d.ts b/dist/models/CommentListResponseComment.d.ts new file mode 100644 index 0000000..0ea1394 --- /dev/null +++ b/dist/models/CommentListResponseComment.d.ts @@ -0,0 +1,95 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CommentListResponseComment + */ +export interface CommentListResponseComment { + /** + * Причина отклонения на модерации. + * @type {string} + * @memberof CommentListResponseComment + */ + deviation_reason?: string; + /** + * Количество дизлайков. + * @type {number} + * @memberof CommentListResponseComment + */ + dislikes_amount?: number; + /** + * Идентификатор комментария. + * @type {string} + * @memberof CommentListResponseComment + */ + id?: string; + /** + * `true`, если комментарий оставило официальное лицо, `false` — покупатель. + * + * @type {boolean} + * @memberof CommentListResponseComment + */ + is_official?: boolean; + /** + * `true`, если комментарий оставил продавец, `false` — покупатель. + * + * @type {boolean} + * @memberof CommentListResponseComment + */ + is_owner?: boolean; + /** + * `true`, если комментарий опубликован. + * + * @type {boolean} + * @memberof CommentListResponseComment + */ + is_published?: boolean; + /** + * `true`, если комментарий отклонён. + * + * @type {boolean} + * @memberof CommentListResponseComment + */ + is_rejected?: boolean; + /** + * Количество лайков. + * @type {number} + * @memberof CommentListResponseComment + */ + likes_amount?: number; + /** + * Идентификатор родительского комментария, на который нужно ответить. + * @type {string} + * @memberof CommentListResponseComment + */ + parent_comment_id?: string; + /** + * Дата публикации комментария. + * @type {string} + * @memberof CommentListResponseComment + */ + published_at?: string; + /** + * Текст комментария. + * @type {string} + * @memberof CommentListResponseComment + */ + text?: string; +} +/** + * Check if a given object implements the CommentListResponseComment interface. + */ +export declare function instanceOfCommentListResponseComment(value: object): value is CommentListResponseComment; +export declare function CommentListResponseCommentFromJSON(json: any): CommentListResponseComment; +export declare function CommentListResponseCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommentListResponseComment; +export declare function CommentListResponseCommentToJSON(value?: CommentListResponseComment | null): any; diff --git a/dist/models/CommentListResponseComment.js b/dist/models/CommentListResponseComment.js new file mode 100644 index 0000000..6d44e5d --- /dev/null +++ b/dist/models/CommentListResponseComment.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCommentListResponseComment = instanceOfCommentListResponseComment; +exports.CommentListResponseCommentFromJSON = CommentListResponseCommentFromJSON; +exports.CommentListResponseCommentFromJSONTyped = CommentListResponseCommentFromJSONTyped; +exports.CommentListResponseCommentToJSON = CommentListResponseCommentToJSON; +/** + * Check if a given object implements the CommentListResponseComment interface. + */ +function instanceOfCommentListResponseComment(value) { + return true; +} +function CommentListResponseCommentFromJSON(json) { + return CommentListResponseCommentFromJSONTyped(json, false); +} +function CommentListResponseCommentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'deviation_reason': json['deviation_reason'] == null ? undefined : json['deviation_reason'], + 'dislikes_amount': json['dislikes_amount'] == null ? undefined : json['dislikes_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_official': json['is_official'] == null ? undefined : json['is_official'], + 'is_owner': json['is_owner'] == null ? undefined : json['is_owner'], + 'is_published': json['is_published'] == null ? undefined : json['is_published'], + 'is_rejected': json['is_rejected'] == null ? undefined : json['is_rejected'], + 'likes_amount': json['likes_amount'] == null ? undefined : json['likes_amount'], + 'parent_comment_id': json['parent_comment_id'] == null ? undefined : json['parent_comment_id'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'text': json['text'] == null ? undefined : json['text'], + }; +} +function CommentListResponseCommentToJSON(value) { + if (value == null) { + return value; + } + return { + 'deviation_reason': value['deviation_reason'], + 'dislikes_amount': value['dislikes_amount'], + 'id': value['id'], + 'is_official': value['is_official'], + 'is_owner': value['is_owner'], + 'is_published': value['is_published'], + 'is_rejected': value['is_rejected'], + 'likes_amount': value['likes_amount'], + 'parent_comment_id': value['parent_comment_id'], + 'published_at': value['published_at'], + 'text': value['text'], + }; +} diff --git a/dist/models/CommonCreateReportResponse.d.ts b/dist/models/CommonCreateReportResponse.d.ts new file mode 100644 index 0000000..f13d30a --- /dev/null +++ b/dist/models/CommonCreateReportResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateReportResponseCode } from './CreateReportResponseCode'; +/** + * + * @export + * @interface CommonCreateReportResponse + */ +export interface CommonCreateReportResponse { + /** + * + * @type {CreateReportResponseCode} + * @memberof CommonCreateReportResponse + */ + result?: CreateReportResponseCode; +} +/** + * Check if a given object implements the CommonCreateReportResponse interface. + */ +export declare function instanceOfCommonCreateReportResponse(value: object): value is CommonCreateReportResponse; +export declare function CommonCreateReportResponseFromJSON(json: any): CommonCreateReportResponse; +export declare function CommonCreateReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonCreateReportResponse; +export declare function CommonCreateReportResponseToJSON(value?: CommonCreateReportResponse | null): any; diff --git a/dist/models/CommonCreateReportResponse.js b/dist/models/CommonCreateReportResponse.js new file mode 100644 index 0000000..496882c --- /dev/null +++ b/dist/models/CommonCreateReportResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCommonCreateReportResponse = instanceOfCommonCreateReportResponse; +exports.CommonCreateReportResponseFromJSON = CommonCreateReportResponseFromJSON; +exports.CommonCreateReportResponseFromJSONTyped = CommonCreateReportResponseFromJSONTyped; +exports.CommonCreateReportResponseToJSON = CommonCreateReportResponseToJSON; +const CreateReportResponseCode_1 = require("./CreateReportResponseCode"); +/** + * Check if a given object implements the CommonCreateReportResponse interface. + */ +function instanceOfCommonCreateReportResponse(value) { + return true; +} +function CommonCreateReportResponseFromJSON(json) { + return CommonCreateReportResponseFromJSONTyped(json, false); +} +function CommonCreateReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, CreateReportResponseCode_1.CreateReportResponseCodeFromJSON)(json['result']), + }; +} +function CommonCreateReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, CreateReportResponseCode_1.CreateReportResponseCodeToJSON)(value['result']), + }; +} diff --git a/dist/models/CompanyTaxSystemEnum.d.ts b/dist/models/CompanyTaxSystemEnum.d.ts new file mode 100644 index 0000000..41dedbf --- /dev/null +++ b/dist/models/CompanyTaxSystemEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Система налогообложения: + * - `UNKNOWN` — неизвестная, + * - `UNSPECIFIED` — не определена, + * - `OSNO` — ОСНО, + * - `USN` — УСН, + * - `NPD` — НПД, + * - `AUSN` — АУСН, + * - `PSN` — ПСН. + * + * @export + */ +export declare const CompanyTaxSystemEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OSNO: "OSNO"; + readonly USN: "USN"; + readonly NPD: "NPD"; + readonly AUSN: "AUSN"; + readonly PSN: "PSN"; +}; +export type CompanyTaxSystemEnum = typeof CompanyTaxSystemEnum[keyof typeof CompanyTaxSystemEnum]; +export declare function instanceOfCompanyTaxSystemEnum(value: any): boolean; +export declare function CompanyTaxSystemEnumFromJSON(json: any): CompanyTaxSystemEnum; +export declare function CompanyTaxSystemEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompanyTaxSystemEnum; +export declare function CompanyTaxSystemEnumToJSON(value?: CompanyTaxSystemEnum | null): any; diff --git a/dist/models/CompanyTaxSystemEnum.js b/dist/models/CompanyTaxSystemEnum.js new file mode 100644 index 0000000..c97033a --- /dev/null +++ b/dist/models/CompanyTaxSystemEnum.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CompanyTaxSystemEnum = void 0; +exports.instanceOfCompanyTaxSystemEnum = instanceOfCompanyTaxSystemEnum; +exports.CompanyTaxSystemEnumFromJSON = CompanyTaxSystemEnumFromJSON; +exports.CompanyTaxSystemEnumFromJSONTyped = CompanyTaxSystemEnumFromJSONTyped; +exports.CompanyTaxSystemEnumToJSON = CompanyTaxSystemEnumToJSON; +/** + * Система налогообложения: + * - `UNKNOWN` — неизвестная, + * - `UNSPECIFIED` — не определена, + * - `OSNO` — ОСНО, + * - `USN` — УСН, + * - `NPD` — НПД, + * - `AUSN` — АУСН, + * - `PSN` — ПСН. + * + * @export + */ +exports.CompanyTaxSystemEnum = { + UNKNOWN: 'UNKNOWN', + UNSPECIFIED: 'UNSPECIFIED', + OSNO: 'OSNO', + USN: 'USN', + NPD: 'NPD', + AUSN: 'AUSN', + PSN: 'PSN' +}; +function instanceOfCompanyTaxSystemEnum(value) { + for (const key in exports.CompanyTaxSystemEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CompanyTaxSystemEnum, key)) { + if (exports.CompanyTaxSystemEnum[key] === value) { + return true; + } + } + } + return false; +} +function CompanyTaxSystemEnumFromJSON(json) { + return CompanyTaxSystemEnumFromJSONTyped(json, false); +} +function CompanyTaxSystemEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CompanyTaxSystemEnumToJSON(value) { + return value; +} diff --git a/dist/models/ContentCanNotEditSupplyContentReasonEnum.d.ts b/dist/models/ContentCanNotEditSupplyContentReasonEnum.d.ts new file mode 100644 index 0000000..7dbea96 --- /dev/null +++ b/dist/models/ContentCanNotEditSupplyContentReasonEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ContentCanNotEditSupplyContentReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INCORRECT_SUPPLY_STATE: "INCORRECT_SUPPLY_STATE"; + readonly DEADLINE: "DEADLINE"; + readonly UTD_IS_UPLOADED: "UTD_IS_UPLOADED"; + readonly STORAGE_WAREHOUSE_IS_NOT_WMS: "STORAGE_WAREHOUSE_IS_NOT_WMS"; + readonly CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: "CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type ContentCanNotEditSupplyContentReasonEnum = typeof ContentCanNotEditSupplyContentReasonEnum[keyof typeof ContentCanNotEditSupplyContentReasonEnum]; +export declare function instanceOfContentCanNotEditSupplyContentReasonEnum(value: any): boolean; +export declare function ContentCanNotEditSupplyContentReasonEnumFromJSON(json: any): ContentCanNotEditSupplyContentReasonEnum; +export declare function ContentCanNotEditSupplyContentReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentCanNotEditSupplyContentReasonEnum; +export declare function ContentCanNotEditSupplyContentReasonEnumToJSON(value?: ContentCanNotEditSupplyContentReasonEnum | null): any; diff --git a/dist/models/ContentCanNotEditSupplyContentReasonEnum.js b/dist/models/ContentCanNotEditSupplyContentReasonEnum.js new file mode 100644 index 0000000..45bf377 --- /dev/null +++ b/dist/models/ContentCanNotEditSupplyContentReasonEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ContentCanNotEditSupplyContentReasonEnum = void 0; +exports.instanceOfContentCanNotEditSupplyContentReasonEnum = instanceOfContentCanNotEditSupplyContentReasonEnum; +exports.ContentCanNotEditSupplyContentReasonEnumFromJSON = ContentCanNotEditSupplyContentReasonEnumFromJSON; +exports.ContentCanNotEditSupplyContentReasonEnumFromJSONTyped = ContentCanNotEditSupplyContentReasonEnumFromJSONTyped; +exports.ContentCanNotEditSupplyContentReasonEnumToJSON = ContentCanNotEditSupplyContentReasonEnumToJSON; +/** + * + * @export + */ +exports.ContentCanNotEditSupplyContentReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INCORRECT_SUPPLY_STATE: 'INCORRECT_SUPPLY_STATE', + DEADLINE: 'DEADLINE', + UTD_IS_UPLOADED: 'UTD_IS_UPLOADED', + STORAGE_WAREHOUSE_IS_NOT_WMS: 'STORAGE_WAREHOUSE_IS_NOT_WMS', + CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: 'CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfContentCanNotEditSupplyContentReasonEnum(value) { + for (const key in exports.ContentCanNotEditSupplyContentReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ContentCanNotEditSupplyContentReasonEnum, key)) { + if (exports.ContentCanNotEditSupplyContentReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function ContentCanNotEditSupplyContentReasonEnumFromJSON(json) { + return ContentCanNotEditSupplyContentReasonEnumFromJSONTyped(json, false); +} +function ContentCanNotEditSupplyContentReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ContentCanNotEditSupplyContentReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/CourierCoordinates.d.ts b/dist/models/CourierCoordinates.d.ts new file mode 100644 index 0000000..2a82a10 --- /dev/null +++ b/dist/models/CourierCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты точки выдачи. + * @export + * @interface CourierCoordinates + */ +export interface CourierCoordinates { + /** + * Широта. + * @type {number} + * @memberof CourierCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof CourierCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the CourierCoordinates interface. + */ +export declare function instanceOfCourierCoordinates(value: object): value is CourierCoordinates; +export declare function CourierCoordinatesFromJSON(json: any): CourierCoordinates; +export declare function CourierCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourierCoordinates; +export declare function CourierCoordinatesToJSON(value?: CourierCoordinates | null): any; diff --git a/dist/models/CourierCoordinates.js b/dist/models/CourierCoordinates.js new file mode 100644 index 0000000..e5eace1 --- /dev/null +++ b/dist/models/CourierCoordinates.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCourierCoordinates = instanceOfCourierCoordinates; +exports.CourierCoordinatesFromJSON = CourierCoordinatesFromJSON; +exports.CourierCoordinatesFromJSONTyped = CourierCoordinatesFromJSONTyped; +exports.CourierCoordinatesToJSON = CourierCoordinatesToJSON; +/** + * Check if a given object implements the CourierCoordinates interface. + */ +function instanceOfCourierCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +function CourierCoordinatesFromJSON(json) { + return CourierCoordinatesFromJSONTyped(json, false); +} +function CourierCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +function CourierCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/CreateCompanyPostingsReportRequestWith.d.ts b/dist/models/CreateCompanyPostingsReportRequestWith.d.ts new file mode 100644 index 0000000..c6a567a --- /dev/null +++ b/dist/models/CreateCompanyPostingsReportRequestWith.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface CreateCompanyPostingsReportRequestWith + */ +export interface CreateCompanyPostingsReportRequestWith { + /** + * `true`, чтобы добавить в ответ дополнительную информацию. + * + * @type {boolean} + * @memberof CreateCompanyPostingsReportRequestWith + */ + additional_data?: boolean; + /** + * `true`, чтобы добавить в ответ аналитику. Передайте значение `filter.delivery_schema = fbs`, иначе вернётся ошибка. + * + * @type {boolean} + * @memberof CreateCompanyPostingsReportRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ информацию о покупателе. + * + * @type {boolean} + * @memberof CreateCompanyPostingsReportRequestWith + */ + customer_data?: boolean; + /** + * `true`, чтобы добавить в ответ информацию о ювелирных изделиях. + * + * @type {boolean} + * @memberof CreateCompanyPostingsReportRequestWith + */ + jewelry_codes?: boolean; +} +/** + * Check if a given object implements the CreateCompanyPostingsReportRequestWith interface. + */ +export declare function instanceOfCreateCompanyPostingsReportRequestWith(value: object): value is CreateCompanyPostingsReportRequestWith; +export declare function CreateCompanyPostingsReportRequestWithFromJSON(json: any): CreateCompanyPostingsReportRequestWith; +export declare function CreateCompanyPostingsReportRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCompanyPostingsReportRequestWith; +export declare function CreateCompanyPostingsReportRequestWithToJSON(value?: CreateCompanyPostingsReportRequestWith | null): any; diff --git a/dist/models/CreateCompanyPostingsReportRequestWith.js b/dist/models/CreateCompanyPostingsReportRequestWith.js new file mode 100644 index 0000000..11814f5 --- /dev/null +++ b/dist/models/CreateCompanyPostingsReportRequestWith.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateCompanyPostingsReportRequestWith = instanceOfCreateCompanyPostingsReportRequestWith; +exports.CreateCompanyPostingsReportRequestWithFromJSON = CreateCompanyPostingsReportRequestWithFromJSON; +exports.CreateCompanyPostingsReportRequestWithFromJSONTyped = CreateCompanyPostingsReportRequestWithFromJSONTyped; +exports.CreateCompanyPostingsReportRequestWithToJSON = CreateCompanyPostingsReportRequestWithToJSON; +/** + * Check if a given object implements the CreateCompanyPostingsReportRequestWith interface. + */ +function instanceOfCreateCompanyPostingsReportRequestWith(value) { + return true; +} +function CreateCompanyPostingsReportRequestWithFromJSON(json) { + return CreateCompanyPostingsReportRequestWithFromJSONTyped(json, false); +} +function CreateCompanyPostingsReportRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : json['additional_data'], + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'customer_data': json['customer_data'] == null ? undefined : json['customer_data'], + 'jewelry_codes': json['jewelry_codes'] == null ? undefined : json['jewelry_codes'], + }; +} +function CreateCompanyPostingsReportRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'], + 'analytics_data': value['analytics_data'], + 'customer_data': value['customer_data'], + 'jewelry_codes': value['jewelry_codes'], + }; +} diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseBuyer.d.ts b/dist/models/CreateDocumentB2BSalesJSONReportResponseBuyer.d.ts new file mode 100644 index 0000000..95eef92 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseBuyer.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о покупателе. + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseBuyer + */ +export interface CreateDocumentB2BSalesJSONReportResponseBuyer { + /** + * Название компании. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseBuyer + */ + name?: string; + /** + * Юридический адрес. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseBuyer + */ + address?: string; + /** + * ИНН. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseBuyer + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseBuyer + */ + kpp?: string; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseBuyer interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseBuyer(value: object): value is CreateDocumentB2BSalesJSONReportResponseBuyer; +export declare function CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseBuyer; +export declare function CreateDocumentB2BSalesJSONReportResponseBuyerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseBuyer; +export declare function CreateDocumentB2BSalesJSONReportResponseBuyerToJSON(value?: CreateDocumentB2BSalesJSONReportResponseBuyer | null): any; diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseBuyer.js b/dist/models/CreateDocumentB2BSalesJSONReportResponseBuyer.js new file mode 100644 index 0000000..b45293f --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseBuyer.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateDocumentB2BSalesJSONReportResponseBuyer = instanceOfCreateDocumentB2BSalesJSONReportResponseBuyer; +exports.CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON = CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON; +exports.CreateDocumentB2BSalesJSONReportResponseBuyerFromJSONTyped = CreateDocumentB2BSalesJSONReportResponseBuyerFromJSONTyped; +exports.CreateDocumentB2BSalesJSONReportResponseBuyerToJSON = CreateDocumentB2BSalesJSONReportResponseBuyerToJSON; +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseBuyer interface. + */ +function instanceOfCreateDocumentB2BSalesJSONReportResponseBuyer(value) { + return true; +} +function CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseBuyerFromJSONTyped(json, false); +} +function CreateDocumentB2BSalesJSONReportResponseBuyerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'address': json['address'] == null ? undefined : json['address'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +function CreateDocumentB2BSalesJSONReportResponseBuyerToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'address': value['address'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.d.ts b/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.d.ts new file mode 100644 index 0000000..942b940 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType } from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType'; +/** + * Информация о счёте-фактуре. + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ +export interface CreateDocumentB2BSalesJSONReportResponseInvoiceInfo { + /** + * Дата счёта-фактуры продавца в формате `YYYY-MM-DD`. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ + date?: string; + /** + * Номер счёта-фактуры продавца. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ + number?: string; + /** + * Статус УКД или УПД. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ + status?: string; + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType} + * @memberof CreateDocumentB2BSalesJSONReportResponseInvoiceInfo + */ + type?: CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseInvoiceInfo interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfo(value: object): value is CreateDocumentB2BSalesJSONReportResponseInvoiceInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseInvoiceInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseInvoiceInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON(value?: CreateDocumentB2BSalesJSONReportResponseInvoiceInfo | null): any; diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.js b/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.js new file mode 100644 index 0000000..5f10303 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfo = instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfo; +exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON = CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON; +exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSONTyped = CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSONTyped; +exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON = CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON; +const CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType_1 = require("./CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType"); +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseInvoiceInfo interface. + */ +function instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfo(value) { + return true; +} +function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSONTyped(json, false); +} +function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'number': json['number'] == null ? undefined : json['number'], + 'status': json['status'] == null ? undefined : json['status'], + 'type': json['type'] == null ? undefined : (0, CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType_1.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON)(json['type']), + }; +} +function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'number': value['number'], + 'status': value['status'], + 'type': (0, CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType_1.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON)(value['type']), + }; +} diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.d.ts b/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.d.ts new file mode 100644 index 0000000..eb42d05 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип документа: + * - `UPD` - УПД; + * - `UKD` - УКД. + * + * @export + */ +export declare const CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType: { + readonly UPD: "UPD"; + readonly UKD: "UKD"; +}; +export type CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType = typeof CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType[keyof typeof CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType]; +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfoType(value: any): boolean; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType; +export declare function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON(value?: CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType | null): any; diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.js b/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.js new file mode 100644 index 0000000..e3d6afa --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType = void 0; +exports.instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfoType = instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfoType; +exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON = CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON; +exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSONTyped = CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSONTyped; +exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON = CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON; +/** + * Тип документа: + * - `UPD` - УПД; + * - `UKD` - УКД. + * + * @export + */ +exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType = { + UPD: 'UPD', + UKD: 'UKD' +}; +function instanceOfCreateDocumentB2BSalesJSONReportResponseInvoiceInfoType(value) { + for (const key in exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType) { + if (Object.prototype.hasOwnProperty.call(exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType, key)) { + if (exports.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType[key] === value) { + return true; + } + } + } + return false; +} +function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSONTyped(json, false); +} +function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CreateDocumentB2BSalesJSONReportResponseInvoiceInfoTypeToJSON(value) { + return value; +} diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.d.ts b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.d.ts new file mode 100644 index 0000000..3008868 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateDocumentB2BSalesJSONReportResponseInvoiceInfo } from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfo'; +import type { CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation'; +import type { CreateDocumentB2BSalesJSONReportResponseBuyer } from './CreateDocumentB2BSalesJSONReportResponseBuyer'; +/** + * + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ +export interface CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice { + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseBuyer} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + buyer_info?: CreateDocumentB2BSalesJSONReportResponseBuyer; + /** + * Валюта. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + currency?: string; + /** + * Код валюты. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + currency_code?: number; + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseInvoiceInfo} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + info?: CreateDocumentB2BSalesJSONReportResponseInvoiceInfo; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + offer_id?: string; + /** + * Список операций. + * @type {Array} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + operations?: Array; + /** + * Название товара. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + product_name?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + sku?: number; + /** + * Код условного обозначения. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + unit_code?: number; + /** + * Условное обозначение. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice + */ + unit_name?: string; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice(value: object): value is CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON(value?: CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice | null): any; diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.js b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.js new file mode 100644 index 0000000..7c0cb3e --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice = instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON = CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSONTyped = CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSONTyped; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON = CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON; +const CreateDocumentB2BSalesJSONReportResponseInvoiceInfo_1 = require("./CreateDocumentB2BSalesJSONReportResponseInvoiceInfo"); +const CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation_1 = require("./CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation"); +const CreateDocumentB2BSalesJSONReportResponseBuyer_1 = require("./CreateDocumentB2BSalesJSONReportResponseBuyer"); +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice interface. + */ +function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice(value) { + return true; +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSONTyped(json, false); +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'buyer_info': json['buyer_info'] == null ? undefined : (0, CreateDocumentB2BSalesJSONReportResponseBuyer_1.CreateDocumentB2BSalesJSONReportResponseBuyerFromJSON)(json['buyer_info']), + 'currency': json['currency'] == null ? undefined : json['currency'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'info': json['info'] == null ? undefined : (0, CreateDocumentB2BSalesJSONReportResponseInvoiceInfo_1.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoFromJSON)(json['info']), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'operations': json['operations'] == null ? undefined : (json['operations'].map(CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation_1.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON)), + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'unit_code': json['unit_code'] == null ? undefined : json['unit_code'], + 'unit_name': json['unit_name'] == null ? undefined : json['unit_name'], + }; +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'buyer_info': (0, CreateDocumentB2BSalesJSONReportResponseBuyer_1.CreateDocumentB2BSalesJSONReportResponseBuyerToJSON)(value['buyer_info']), + 'currency': value['currency'], + 'currency_code': value['currency_code'], + 'info': (0, CreateDocumentB2BSalesJSONReportResponseInvoiceInfo_1.CreateDocumentB2BSalesJSONReportResponseInvoiceInfoToJSON)(value['info']), + 'offer_id': value['offer_id'], + 'operations': value['operations'] == null ? undefined : (value['operations'].map(CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation_1.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON)), + 'product_name': value['product_name'], + 'sku': value['sku'], + 'unit_code': value['unit_code'], + 'unit_name': value['unit_name'], + }; +} diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.d.ts b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.d.ts new file mode 100644 index 0000000..6646ed9 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType'; +/** + * + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ +export interface CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation { + /** + * Сумма реализации или возврата. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + amount?: number; + /** + * Стоимость товара без НДС. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + cost_without_vat?: number; + /** + * Дата операции в формате `YYYY-MM-DD`. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + date?: string; + /** + * Номер ГТД. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + gtd_number?: string; + /** + * Страна происхождения товара. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + origin_country?: string; + /** + * Номер отправления. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + posting_number?: string; + /** + * Цена реализации или возврата в рублях. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + price?: number; + /** + * Количество товаров. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + quantity?: number; + /** + * РНПТ. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + rnpt_number?: string; + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + type?: CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType; + /** + * Сумма НДС, которая взимается с покупателя. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + vat_amount?: number; + /** + * Ставка НДС. + * @type {number} + * @memberof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation + */ + vat_rate?: number; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperation(value: object): value is CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON(value?: CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation | null): any; diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.js b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.js new file mode 100644 index 0000000..84fd18b --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperation = instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperation; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON = CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSONTyped = CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSONTyped; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON = CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON; +const CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType_1 = require("./CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType"); +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation interface. + */ +function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperation(value) { + return true; +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSONTyped(json, false); +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'cost_without_vat': json['cost_without_vat'] == null ? undefined : json['cost_without_vat'], + 'date': json['date'] == null ? undefined : json['date'], + 'gtd_number': json['gtd_number'] == null ? undefined : json['gtd_number'], + 'origin_country': json['origin_country'] == null ? undefined : json['origin_country'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rnpt_number': json['rnpt_number'] == null ? undefined : json['rnpt_number'], + 'type': json['type'] == null ? undefined : (0, CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType_1.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON)(json['type']), + 'vat_amount': json['vat_amount'] == null ? undefined : json['vat_amount'], + 'vat_rate': json['vat_rate'] == null ? undefined : json['vat_rate'], + }; +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'cost_without_vat': value['cost_without_vat'], + 'date': value['date'], + 'gtd_number': value['gtd_number'], + 'origin_country': value['origin_country'], + 'posting_number': value['posting_number'], + 'price': value['price'], + 'quantity': value['quantity'], + 'rnpt_number': value['rnpt_number'], + 'type': (0, CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType_1.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON)(value['type']), + 'vat_amount': value['vat_amount'], + 'vat_rate': value['vat_rate'], + }; +} diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.d.ts b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.d.ts new file mode 100644 index 0000000..6a215dd --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `DELIVERY` — отправление, + * - `RETURN` — возврат. + * + * @export + */ +export declare const CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType: { + readonly DELIVERY: "DELIVERY"; + readonly RETURN: "RETURN"; +}; +export type CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType = typeof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType[keyof typeof CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType]; +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType(value: any): boolean; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType; +export declare function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON(value?: CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType | null): any; diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.js b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.js new file mode 100644 index 0000000..ba200c9 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType = void 0; +exports.instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType = instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON = CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSONTyped = CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSONTyped; +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON = CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON; +/** + * Тип операции: + * - `DELIVERY` — отправление, + * - `RETURN` — возврат. + * + * @export + */ +exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType = { + DELIVERY: 'DELIVERY', + RETURN: 'RETURN' +}; +function instanceOfCreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType(value) { + for (const key in exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType) { + if (Object.prototype.hasOwnProperty.call(exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType, key)) { + if (exports.CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType[key] === value) { + return true; + } + } + } + return false; +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSONTyped(json, false); +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationTypeToJSON(value) { + return value; +} diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.d.ts b/dist/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.d.ts new file mode 100644 index 0000000..98c3188 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о продавце. + * @export + * @interface CreateDocumentB2BSalesJSONReportResponseSellerInfo + */ +export interface CreateDocumentB2BSalesJSONReportResponseSellerInfo { + /** + * Название компании. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseSellerInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseSellerInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof CreateDocumentB2BSalesJSONReportResponseSellerInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseSellerInfo interface. + */ +export declare function instanceOfCreateDocumentB2BSalesJSONReportResponseSellerInfo(value: object): value is CreateDocumentB2BSalesJSONReportResponseSellerInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON(json: any): CreateDocumentB2BSalesJSONReportResponseSellerInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDocumentB2BSalesJSONReportResponseSellerInfo; +export declare function CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON(value?: CreateDocumentB2BSalesJSONReportResponseSellerInfo | null): any; diff --git a/dist/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.js b/dist/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.js new file mode 100644 index 0000000..47b8581 --- /dev/null +++ b/dist/models/CreateDocumentB2BSalesJSONReportResponseSellerInfo.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateDocumentB2BSalesJSONReportResponseSellerInfo = instanceOfCreateDocumentB2BSalesJSONReportResponseSellerInfo; +exports.CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON = CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON; +exports.CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSONTyped = CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSONTyped; +exports.CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON = CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON; +/** + * Check if a given object implements the CreateDocumentB2BSalesJSONReportResponseSellerInfo interface. + */ +function instanceOfCreateDocumentB2BSalesJSONReportResponseSellerInfo(value) { + return true; +} +function CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON(json) { + return CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSONTyped(json, false); +} +function CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +function CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/models/CreateReportResponse.d.ts b/dist/models/CreateReportResponse.d.ts new file mode 100644 index 0000000..387315d --- /dev/null +++ b/dist/models/CreateReportResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateReportResponseCodeNoDeadline } from './CreateReportResponseCodeNoDeadline'; +/** + * + * @export + * @interface CreateReportResponse + */ +export interface CreateReportResponse { + /** + * + * @type {CreateReportResponseCodeNoDeadline} + * @memberof CreateReportResponse + */ + result?: CreateReportResponseCodeNoDeadline; +} +/** + * Check if a given object implements the CreateReportResponse interface. + */ +export declare function instanceOfCreateReportResponse(value: object): value is CreateReportResponse; +export declare function CreateReportResponseFromJSON(json: any): CreateReportResponse; +export declare function CreateReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateReportResponse; +export declare function CreateReportResponseToJSON(value?: CreateReportResponse | null): any; diff --git a/dist/models/CreateReportResponse.js b/dist/models/CreateReportResponse.js new file mode 100644 index 0000000..b01b58a --- /dev/null +++ b/dist/models/CreateReportResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateReportResponse = instanceOfCreateReportResponse; +exports.CreateReportResponseFromJSON = CreateReportResponseFromJSON; +exports.CreateReportResponseFromJSONTyped = CreateReportResponseFromJSONTyped; +exports.CreateReportResponseToJSON = CreateReportResponseToJSON; +const CreateReportResponseCodeNoDeadline_1 = require("./CreateReportResponseCodeNoDeadline"); +/** + * Check if a given object implements the CreateReportResponse interface. + */ +function instanceOfCreateReportResponse(value) { + return true; +} +function CreateReportResponseFromJSON(json) { + return CreateReportResponseFromJSONTyped(json, false); +} +function CreateReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, CreateReportResponseCodeNoDeadline_1.CreateReportResponseCodeNoDeadlineFromJSON)(json['result']), + }; +} +function CreateReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, CreateReportResponseCodeNoDeadline_1.CreateReportResponseCodeNoDeadlineToJSON)(value['result']), + }; +} diff --git a/dist/models/CreateReportResponseCode.d.ts b/dist/models/CreateReportResponseCode.d.ts new file mode 100644 index 0000000..3f0bd63 --- /dev/null +++ b/dist/models/CreateReportResponseCode.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результаты запроса. + * @export + * @interface CreateReportResponseCode + */ +export interface CreateReportResponseCode { + /** + * Уникальный идентификатор отчёта. По нему вы можете получить отчёт в течение 3 дней после запроса. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof CreateReportResponseCode + */ + code?: string; +} +/** + * Check if a given object implements the CreateReportResponseCode interface. + */ +export declare function instanceOfCreateReportResponseCode(value: object): value is CreateReportResponseCode; +export declare function CreateReportResponseCodeFromJSON(json: any): CreateReportResponseCode; +export declare function CreateReportResponseCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateReportResponseCode; +export declare function CreateReportResponseCodeToJSON(value?: CreateReportResponseCode | null): any; diff --git a/dist/models/CreateReportResponseCode.js b/dist/models/CreateReportResponseCode.js new file mode 100644 index 0000000..4383da3 --- /dev/null +++ b/dist/models/CreateReportResponseCode.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateReportResponseCode = instanceOfCreateReportResponseCode; +exports.CreateReportResponseCodeFromJSON = CreateReportResponseCodeFromJSON; +exports.CreateReportResponseCodeFromJSONTyped = CreateReportResponseCodeFromJSONTyped; +exports.CreateReportResponseCodeToJSON = CreateReportResponseCodeToJSON; +/** + * Check if a given object implements the CreateReportResponseCode interface. + */ +function instanceOfCreateReportResponseCode(value) { + return true; +} +function CreateReportResponseCodeFromJSON(json) { + return CreateReportResponseCodeFromJSONTyped(json, false); +} +function CreateReportResponseCodeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +function CreateReportResponseCodeToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/CreateReportResponseCodeNoDeadline.d.ts b/dist/models/CreateReportResponseCodeNoDeadline.d.ts new file mode 100644 index 0000000..fdeeee3 --- /dev/null +++ b/dist/models/CreateReportResponseCodeNoDeadline.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат запроса. + * @export + * @interface CreateReportResponseCodeNoDeadline + */ +export interface CreateReportResponseCodeNoDeadline { + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof CreateReportResponseCodeNoDeadline + */ + code?: string; +} +/** + * Check if a given object implements the CreateReportResponseCodeNoDeadline interface. + */ +export declare function instanceOfCreateReportResponseCodeNoDeadline(value: object): value is CreateReportResponseCodeNoDeadline; +export declare function CreateReportResponseCodeNoDeadlineFromJSON(json: any): CreateReportResponseCodeNoDeadline; +export declare function CreateReportResponseCodeNoDeadlineFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateReportResponseCodeNoDeadline; +export declare function CreateReportResponseCodeNoDeadlineToJSON(value?: CreateReportResponseCodeNoDeadline | null): any; diff --git a/dist/models/CreateReportResponseCodeNoDeadline.js b/dist/models/CreateReportResponseCodeNoDeadline.js new file mode 100644 index 0000000..00ff2a5 --- /dev/null +++ b/dist/models/CreateReportResponseCodeNoDeadline.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateReportResponseCodeNoDeadline = instanceOfCreateReportResponseCodeNoDeadline; +exports.CreateReportResponseCodeNoDeadlineFromJSON = CreateReportResponseCodeNoDeadlineFromJSON; +exports.CreateReportResponseCodeNoDeadlineFromJSONTyped = CreateReportResponseCodeNoDeadlineFromJSONTyped; +exports.CreateReportResponseCodeNoDeadlineToJSON = CreateReportResponseCodeNoDeadlineToJSON; +/** + * Check if a given object implements the CreateReportResponseCodeNoDeadline interface. + */ +function instanceOfCreateReportResponseCodeNoDeadline(value) { + return true; +} +function CreateReportResponseCodeNoDeadlineFromJSON(json) { + return CreateReportResponseCodeNoDeadlineFromJSONTyped(json, false); +} +function CreateReportResponseCodeNoDeadlineFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +function CreateReportResponseCodeNoDeadlineToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/CreateWarehouseFBSRequestAddressCoordinates.d.ts b/dist/models/CreateWarehouseFBSRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..331bc28 --- /dev/null +++ b/dist/models/CreateWarehouseFBSRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты адреса склада. + * @export + * @interface CreateWarehouseFBSRequestAddressCoordinates + */ +export interface CreateWarehouseFBSRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof CreateWarehouseFBSRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof CreateWarehouseFBSRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the CreateWarehouseFBSRequestAddressCoordinates interface. + */ +export declare function instanceOfCreateWarehouseFBSRequestAddressCoordinates(value: object): value is CreateWarehouseFBSRequestAddressCoordinates; +export declare function CreateWarehouseFBSRequestAddressCoordinatesFromJSON(json: any): CreateWarehouseFBSRequestAddressCoordinates; +export declare function CreateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWarehouseFBSRequestAddressCoordinates; +export declare function CreateWarehouseFBSRequestAddressCoordinatesToJSON(value?: CreateWarehouseFBSRequestAddressCoordinates | null): any; diff --git a/dist/models/CreateWarehouseFBSRequestAddressCoordinates.js b/dist/models/CreateWarehouseFBSRequestAddressCoordinates.js new file mode 100644 index 0000000..f2bfb82 --- /dev/null +++ b/dist/models/CreateWarehouseFBSRequestAddressCoordinates.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateWarehouseFBSRequestAddressCoordinates = instanceOfCreateWarehouseFBSRequestAddressCoordinates; +exports.CreateWarehouseFBSRequestAddressCoordinatesFromJSON = CreateWarehouseFBSRequestAddressCoordinatesFromJSON; +exports.CreateWarehouseFBSRequestAddressCoordinatesFromJSONTyped = CreateWarehouseFBSRequestAddressCoordinatesFromJSONTyped; +exports.CreateWarehouseFBSRequestAddressCoordinatesToJSON = CreateWarehouseFBSRequestAddressCoordinatesToJSON; +/** + * Check if a given object implements the CreateWarehouseFBSRequestAddressCoordinates interface. + */ +function instanceOfCreateWarehouseFBSRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +function CreateWarehouseFBSRequestAddressCoordinatesFromJSON(json) { + return CreateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json, false); +} +function CreateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +function CreateWarehouseFBSRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/CreateWarehouseFBSRequestFirstMileTypeEnum.d.ts b/dist/models/CreateWarehouseFBSRequestFirstMileTypeEnum.d.ts new file mode 100644 index 0000000..4d3a3e5 --- /dev/null +++ b/dist/models/CreateWarehouseFBSRequestFirstMileTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export declare const CreateWarehouseFBSRequestFirstMileTypeEnum: { + readonly PICK_UP: "PICK_UP"; + readonly DROP_OFF: "DROP_OFF"; +}; +export type CreateWarehouseFBSRequestFirstMileTypeEnum = typeof CreateWarehouseFBSRequestFirstMileTypeEnum[keyof typeof CreateWarehouseFBSRequestFirstMileTypeEnum]; +export declare function instanceOfCreateWarehouseFBSRequestFirstMileTypeEnum(value: any): boolean; +export declare function CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON(json: any): CreateWarehouseFBSRequestFirstMileTypeEnum; +export declare function CreateWarehouseFBSRequestFirstMileTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWarehouseFBSRequestFirstMileTypeEnum; +export declare function CreateWarehouseFBSRequestFirstMileTypeEnumToJSON(value?: CreateWarehouseFBSRequestFirstMileTypeEnum | null): any; diff --git a/dist/models/CreateWarehouseFBSRequestFirstMileTypeEnum.js b/dist/models/CreateWarehouseFBSRequestFirstMileTypeEnum.js new file mode 100644 index 0000000..1a0a01d --- /dev/null +++ b/dist/models/CreateWarehouseFBSRequestFirstMileTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateWarehouseFBSRequestFirstMileTypeEnum = void 0; +exports.instanceOfCreateWarehouseFBSRequestFirstMileTypeEnum = instanceOfCreateWarehouseFBSRequestFirstMileTypeEnum; +exports.CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON = CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON; +exports.CreateWarehouseFBSRequestFirstMileTypeEnumFromJSONTyped = CreateWarehouseFBSRequestFirstMileTypeEnumFromJSONTyped; +exports.CreateWarehouseFBSRequestFirstMileTypeEnumToJSON = CreateWarehouseFBSRequestFirstMileTypeEnumToJSON; +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +exports.CreateWarehouseFBSRequestFirstMileTypeEnum = { + PICK_UP: 'PICK_UP', + DROP_OFF: 'DROP_OFF' +}; +function instanceOfCreateWarehouseFBSRequestFirstMileTypeEnum(value) { + for (const key in exports.CreateWarehouseFBSRequestFirstMileTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CreateWarehouseFBSRequestFirstMileTypeEnum, key)) { + if (exports.CreateWarehouseFBSRequestFirstMileTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON(json) { + return CreateWarehouseFBSRequestFirstMileTypeEnumFromJSONTyped(json, false); +} +function CreateWarehouseFBSRequestFirstMileTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CreateWarehouseFBSRequestFirstMileTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/CreateWarehouseFBSRequestOptions.d.ts b/dist/models/CreateWarehouseFBSRequestOptions.d.ts new file mode 100644 index 0000000..efac636 --- /dev/null +++ b/dist/models/CreateWarehouseFBSRequestOptions.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры склада. + * @export + * @interface CreateWarehouseFBSRequestOptions + */ +export interface CreateWarehouseFBSRequestOptions { + /** + * Комментарий для курьера при отгрузке с типом `PICK_UP`. + * @type {string} + * @memberof CreateWarehouseFBSRequestOptions + */ + comment?: string; + /** + * Номера телефонов для курьера при отгрузке с типом `PICK_UP`. Укажите в формате +7(XXX)XXX-XX-XX. + * @type {Array} + * @memberof CreateWarehouseFBSRequestOptions + */ + courier_phones?: Array; + /** + * `true`, если автосборка включена. + * + * @type {boolean} + * @memberof CreateWarehouseFBSRequestOptions + */ + is_auto_assembly?: boolean; + /** + * `true`, если печать транспортной накладной включена. + * + * @type {boolean} + * @memberof CreateWarehouseFBSRequestOptions + */ + is_waybill_enabled?: boolean; +} +/** + * Check if a given object implements the CreateWarehouseFBSRequestOptions interface. + */ +export declare function instanceOfCreateWarehouseFBSRequestOptions(value: object): value is CreateWarehouseFBSRequestOptions; +export declare function CreateWarehouseFBSRequestOptionsFromJSON(json: any): CreateWarehouseFBSRequestOptions; +export declare function CreateWarehouseFBSRequestOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWarehouseFBSRequestOptions; +export declare function CreateWarehouseFBSRequestOptionsToJSON(value?: CreateWarehouseFBSRequestOptions | null): any; diff --git a/dist/models/CreateWarehouseFBSRequestOptions.js b/dist/models/CreateWarehouseFBSRequestOptions.js new file mode 100644 index 0000000..1ad8997 --- /dev/null +++ b/dist/models/CreateWarehouseFBSRequestOptions.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateWarehouseFBSRequestOptions = instanceOfCreateWarehouseFBSRequestOptions; +exports.CreateWarehouseFBSRequestOptionsFromJSON = CreateWarehouseFBSRequestOptionsFromJSON; +exports.CreateWarehouseFBSRequestOptionsFromJSONTyped = CreateWarehouseFBSRequestOptionsFromJSONTyped; +exports.CreateWarehouseFBSRequestOptionsToJSON = CreateWarehouseFBSRequestOptionsToJSON; +/** + * Check if a given object implements the CreateWarehouseFBSRequestOptions interface. + */ +function instanceOfCreateWarehouseFBSRequestOptions(value) { + return true; +} +function CreateWarehouseFBSRequestOptionsFromJSON(json) { + return CreateWarehouseFBSRequestOptionsFromJSONTyped(json, false); +} +function CreateWarehouseFBSRequestOptionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment': json['comment'] == null ? undefined : json['comment'], + 'courier_phones': json['courier_phones'] == null ? undefined : json['courier_phones'], + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'is_waybill_enabled': json['is_waybill_enabled'] == null ? undefined : json['is_waybill_enabled'], + }; +} +function CreateWarehouseFBSRequestOptionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment': value['comment'], + 'courier_phones': value['courier_phones'], + 'is_auto_assembly': value['is_auto_assembly'], + 'is_waybill_enabled': value['is_waybill_enabled'], + }; +} diff --git a/dist/models/CreateWarehouseFBSRequestWorkingDaysEnum.d.ts b/dist/models/CreateWarehouseFBSRequestWorkingDaysEnum.d.ts new file mode 100644 index 0000000..30f05df --- /dev/null +++ b/dist/models/CreateWarehouseFBSRequestWorkingDaysEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const CreateWarehouseFBSRequestWorkingDaysEnum: { + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type CreateWarehouseFBSRequestWorkingDaysEnum = typeof CreateWarehouseFBSRequestWorkingDaysEnum[keyof typeof CreateWarehouseFBSRequestWorkingDaysEnum]; +export declare function instanceOfCreateWarehouseFBSRequestWorkingDaysEnum(value: any): boolean; +export declare function CreateWarehouseFBSRequestWorkingDaysEnumFromJSON(json: any): CreateWarehouseFBSRequestWorkingDaysEnum; +export declare function CreateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWarehouseFBSRequestWorkingDaysEnum; +export declare function CreateWarehouseFBSRequestWorkingDaysEnumToJSON(value?: CreateWarehouseFBSRequestWorkingDaysEnum | null): any; diff --git a/dist/models/CreateWarehouseFBSRequestWorkingDaysEnum.js b/dist/models/CreateWarehouseFBSRequestWorkingDaysEnum.js new file mode 100644 index 0000000..79050ac --- /dev/null +++ b/dist/models/CreateWarehouseFBSRequestWorkingDaysEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateWarehouseFBSRequestWorkingDaysEnum = void 0; +exports.instanceOfCreateWarehouseFBSRequestWorkingDaysEnum = instanceOfCreateWarehouseFBSRequestWorkingDaysEnum; +exports.CreateWarehouseFBSRequestWorkingDaysEnumFromJSON = CreateWarehouseFBSRequestWorkingDaysEnumFromJSON; +exports.CreateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped = CreateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped; +exports.CreateWarehouseFBSRequestWorkingDaysEnumToJSON = CreateWarehouseFBSRequestWorkingDaysEnumToJSON; +/** + * + * @export + */ +exports.CreateWarehouseFBSRequestWorkingDaysEnum = { + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfCreateWarehouseFBSRequestWorkingDaysEnum(value) { + for (const key in exports.CreateWarehouseFBSRequestWorkingDaysEnum) { + if (Object.prototype.hasOwnProperty.call(exports.CreateWarehouseFBSRequestWorkingDaysEnum, key)) { + if (exports.CreateWarehouseFBSRequestWorkingDaysEnum[key] === value) { + return true; + } + } + } + return false; +} +function CreateWarehouseFBSRequestWorkingDaysEnumFromJSON(json) { + return CreateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json, false); +} +function CreateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function CreateWarehouseFBSRequestWorkingDaysEnumToJSON(value) { + return value; +} diff --git a/dist/models/CreatedAt.d.ts b/dist/models/CreatedAt.d.ts new file mode 100644 index 0000000..305d1b5 --- /dev/null +++ b/dist/models/CreatedAt.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период создания заявки. + * @export + * @interface CreatedAt + */ +export interface CreatedAt { + /** + * Дата начала периода. + * @type {string} + * @memberof CreatedAt + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof CreatedAt + */ + to?: string; +} +/** + * Check if a given object implements the CreatedAt interface. + */ +export declare function instanceOfCreatedAt(value: object): value is CreatedAt; +export declare function CreatedAtFromJSON(json: any): CreatedAt; +export declare function CreatedAtFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedAt; +export declare function CreatedAtToJSON(value?: CreatedAt | null): any; diff --git a/dist/models/CreatedAt.js b/dist/models/CreatedAt.js new file mode 100644 index 0000000..7bbdb35 --- /dev/null +++ b/dist/models/CreatedAt.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreatedAt = instanceOfCreatedAt; +exports.CreatedAtFromJSON = CreatedAtFromJSON; +exports.CreatedAtFromJSONTyped = CreatedAtFromJSONTyped; +exports.CreatedAtToJSON = CreatedAtToJSON; +/** + * Check if a given object implements the CreatedAt interface. + */ +function instanceOfCreatedAt(value) { + return true; +} +function CreatedAtFromJSON(json) { + return CreatedAtFromJSONTyped(json, false); +} +function CreatedAtFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function CreatedAtToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/DataFulfillment.d.ts b/dist/models/DataFulfillment.d.ts new file mode 100644 index 0000000..9247e88 --- /dev/null +++ b/dist/models/DataFulfillment.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DataFulfillment + */ +export interface DataFulfillment { + /** + * Название склада. + * @type {string} + * @memberof DataFulfillment + */ + name?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof DataFulfillment + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DataFulfillment interface. + */ +export declare function instanceOfDataFulfillment(value: object): value is DataFulfillment; +export declare function DataFulfillmentFromJSON(json: any): DataFulfillment; +export declare function DataFulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataFulfillment; +export declare function DataFulfillmentToJSON(value?: DataFulfillment | null): any; diff --git a/dist/models/DataFulfillment.js b/dist/models/DataFulfillment.js new file mode 100644 index 0000000..30de09f --- /dev/null +++ b/dist/models/DataFulfillment.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDataFulfillment = instanceOfDataFulfillment; +exports.DataFulfillmentFromJSON = DataFulfillmentFromJSON; +exports.DataFulfillmentFromJSONTyped = DataFulfillmentFromJSONTyped; +exports.DataFulfillmentToJSON = DataFulfillmentToJSON; +/** + * Check if a given object implements the DataFulfillment interface. + */ +function instanceOfDataFulfillment(value) { + return true; +} +function DataFulfillmentFromJSON(json) { + return DataFulfillmentFromJSONTyped(json, false); +} +function DataFulfillmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function DataFulfillmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/DataMacrolocalCluster.d.ts b/dist/models/DataMacrolocalCluster.d.ts new file mode 100644 index 0000000..84cc08f --- /dev/null +++ b/dist/models/DataMacrolocalCluster.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MacrolocalClusterCountry } from './MacrolocalClusterCountry'; +/** + * Информация о кластере. + * @export + * @interface DataMacrolocalCluster + */ +export interface DataMacrolocalCluster { + /** + * + * @type {MacrolocalClusterCountry} + * @memberof DataMacrolocalCluster + */ + country?: MacrolocalClusterCountry; + /** + * Название кластера. + * @type {string} + * @memberof DataMacrolocalCluster + */ + name?: string; +} +/** + * Check if a given object implements the DataMacrolocalCluster interface. + */ +export declare function instanceOfDataMacrolocalCluster(value: object): value is DataMacrolocalCluster; +export declare function DataMacrolocalClusterFromJSON(json: any): DataMacrolocalCluster; +export declare function DataMacrolocalClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataMacrolocalCluster; +export declare function DataMacrolocalClusterToJSON(value?: DataMacrolocalCluster | null): any; diff --git a/dist/models/DataMacrolocalCluster.js b/dist/models/DataMacrolocalCluster.js new file mode 100644 index 0000000..0d918ba --- /dev/null +++ b/dist/models/DataMacrolocalCluster.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDataMacrolocalCluster = instanceOfDataMacrolocalCluster; +exports.DataMacrolocalClusterFromJSON = DataMacrolocalClusterFromJSON; +exports.DataMacrolocalClusterFromJSONTyped = DataMacrolocalClusterFromJSONTyped; +exports.DataMacrolocalClusterToJSON = DataMacrolocalClusterToJSON; +const MacrolocalClusterCountry_1 = require("./MacrolocalClusterCountry"); +/** + * Check if a given object implements the DataMacrolocalCluster interface. + */ +function instanceOfDataMacrolocalCluster(value) { + return true; +} +function DataMacrolocalClusterFromJSON(json) { + return DataMacrolocalClusterFromJSONTyped(json, false); +} +function DataMacrolocalClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'country': json['country'] == null ? undefined : (0, MacrolocalClusterCountry_1.MacrolocalClusterCountryFromJSON)(json['country']), + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function DataMacrolocalClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'country': (0, MacrolocalClusterCountry_1.MacrolocalClusterCountryToJSON)(value['country']), + 'name': value['name'], + }; +} diff --git a/dist/models/DeleteProductsRequestProduct.d.ts b/dist/models/DeleteProductsRequestProduct.d.ts new file mode 100644 index 0000000..0a82460 --- /dev/null +++ b/dist/models/DeleteProductsRequestProduct.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteProductsRequestProduct + */ +export interface DeleteProductsRequestProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof DeleteProductsRequestProduct + */ + offer_id: string; +} +/** + * Check if a given object implements the DeleteProductsRequestProduct interface. + */ +export declare function instanceOfDeleteProductsRequestProduct(value: object): value is DeleteProductsRequestProduct; +export declare function DeleteProductsRequestProductFromJSON(json: any): DeleteProductsRequestProduct; +export declare function DeleteProductsRequestProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteProductsRequestProduct; +export declare function DeleteProductsRequestProductToJSON(value?: DeleteProductsRequestProduct | null): any; diff --git a/dist/models/DeleteProductsRequestProduct.js b/dist/models/DeleteProductsRequestProduct.js new file mode 100644 index 0000000..c15edc8 --- /dev/null +++ b/dist/models/DeleteProductsRequestProduct.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeleteProductsRequestProduct = instanceOfDeleteProductsRequestProduct; +exports.DeleteProductsRequestProductFromJSON = DeleteProductsRequestProductFromJSON; +exports.DeleteProductsRequestProductFromJSONTyped = DeleteProductsRequestProductFromJSONTyped; +exports.DeleteProductsRequestProductToJSON = DeleteProductsRequestProductToJSON; +/** + * Check if a given object implements the DeleteProductsRequestProduct interface. + */ +function instanceOfDeleteProductsRequestProduct(value) { + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + return true; +} +function DeleteProductsRequestProductFromJSON(json) { + return DeleteProductsRequestProductFromJSONTyped(json, false); +} +function DeleteProductsRequestProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'], + }; +} +function DeleteProductsRequestProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/models/DeleteProductsResponseDeleteStatus.d.ts b/dist/models/DeleteProductsResponseDeleteStatus.d.ts new file mode 100644 index 0000000..be423f6 --- /dev/null +++ b/dist/models/DeleteProductsResponseDeleteStatus.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeleteProductsResponseDeleteStatus + */ +export interface DeleteProductsResponseDeleteStatus { + /** + * Причина ошибки, которая возникла при обработке запроса. + * @type {string} + * @memberof DeleteProductsResponseDeleteStatus + */ + error?: string; + /** + * Если запрос выполнен без ошибок и товары удалены — `true`. + * @type {boolean} + * @memberof DeleteProductsResponseDeleteStatus + */ + is_deleted?: boolean; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof DeleteProductsResponseDeleteStatus + */ + offer_id?: string; +} +/** + * Check if a given object implements the DeleteProductsResponseDeleteStatus interface. + */ +export declare function instanceOfDeleteProductsResponseDeleteStatus(value: object): value is DeleteProductsResponseDeleteStatus; +export declare function DeleteProductsResponseDeleteStatusFromJSON(json: any): DeleteProductsResponseDeleteStatus; +export declare function DeleteProductsResponseDeleteStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteProductsResponseDeleteStatus; +export declare function DeleteProductsResponseDeleteStatusToJSON(value?: DeleteProductsResponseDeleteStatus | null): any; diff --git a/dist/models/DeleteProductsResponseDeleteStatus.js b/dist/models/DeleteProductsResponseDeleteStatus.js new file mode 100644 index 0000000..c21f3ae --- /dev/null +++ b/dist/models/DeleteProductsResponseDeleteStatus.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeleteProductsResponseDeleteStatus = instanceOfDeleteProductsResponseDeleteStatus; +exports.DeleteProductsResponseDeleteStatusFromJSON = DeleteProductsResponseDeleteStatusFromJSON; +exports.DeleteProductsResponseDeleteStatusFromJSONTyped = DeleteProductsResponseDeleteStatusFromJSONTyped; +exports.DeleteProductsResponseDeleteStatusToJSON = DeleteProductsResponseDeleteStatusToJSON; +/** + * Check if a given object implements the DeleteProductsResponseDeleteStatus interface. + */ +function instanceOfDeleteProductsResponseDeleteStatus(value) { + return true; +} +function DeleteProductsResponseDeleteStatusFromJSON(json) { + return DeleteProductsResponseDeleteStatusFromJSONTyped(json, false); +} +function DeleteProductsResponseDeleteStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'is_deleted': json['is_deleted'] == null ? undefined : json['is_deleted'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + }; +} +function DeleteProductsResponseDeleteStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'is_deleted': value['is_deleted'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/models/DeliveryCheckoutResponseSplit.d.ts b/dist/models/DeliveryCheckoutResponseSplit.d.ts new file mode 100644 index 0000000..cedc49a --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseSplit.d.ts @@ -0,0 +1,66 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryCheckoutResponseSplitCommissions } from './DeliveryCheckoutResponseSplitCommissions'; +import type { DeliveryCheckoutResponseUnavailableReasonEnum } from './DeliveryCheckoutResponseUnavailableReasonEnum'; +import type { DeliveryCheckoutResponseV2SplitDeliverySchemaEnum } from './DeliveryCheckoutResponseV2SplitDeliverySchemaEnum'; +import type { DeliveryCheckoutResponseSplitDeliveryMethod } from './DeliveryCheckoutResponseSplitDeliveryMethod'; +import type { DeliveryCheckoutResponseSplitItem } from './DeliveryCheckoutResponseSplitItem'; +/** + * + * @export + * @interface DeliveryCheckoutResponseSplit + */ +export interface DeliveryCheckoutResponseSplit { + /** + * + * @type {DeliveryCheckoutResponseSplitCommissions} + * @memberof DeliveryCheckoutResponseSplit + */ + commissions?: DeliveryCheckoutResponseSplitCommissions; + /** + * + * @type {DeliveryCheckoutResponseSplitDeliveryMethod} + * @memberof DeliveryCheckoutResponseSplit + */ + delivery_method?: DeliveryCheckoutResponseSplitDeliveryMethod; + /** + * + * @type {DeliveryCheckoutResponseV2SplitDeliverySchemaEnum} + * @memberof DeliveryCheckoutResponseSplit + */ + delivery_schema?: DeliveryCheckoutResponseV2SplitDeliverySchemaEnum; + /** + * Информация о товарах. + * @type {Array} + * @memberof DeliveryCheckoutResponseSplit + */ + items?: Array; + /** + * + * @type {DeliveryCheckoutResponseUnavailableReasonEnum} + * @memberof DeliveryCheckoutResponseSplit + */ + unavailable_reason?: DeliveryCheckoutResponseUnavailableReasonEnum; + /** + * Идентификатор склада. + * @type {number} + * @memberof DeliveryCheckoutResponseSplit + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DeliveryCheckoutResponseSplit interface. + */ +export declare function instanceOfDeliveryCheckoutResponseSplit(value: object): value is DeliveryCheckoutResponseSplit; +export declare function DeliveryCheckoutResponseSplitFromJSON(json: any): DeliveryCheckoutResponseSplit; +export declare function DeliveryCheckoutResponseSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseSplit; +export declare function DeliveryCheckoutResponseSplitToJSON(value?: DeliveryCheckoutResponseSplit | null): any; diff --git a/dist/models/DeliveryCheckoutResponseSplit.js b/dist/models/DeliveryCheckoutResponseSplit.js new file mode 100644 index 0000000..00412c5 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseSplit.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryCheckoutResponseSplit = instanceOfDeliveryCheckoutResponseSplit; +exports.DeliveryCheckoutResponseSplitFromJSON = DeliveryCheckoutResponseSplitFromJSON; +exports.DeliveryCheckoutResponseSplitFromJSONTyped = DeliveryCheckoutResponseSplitFromJSONTyped; +exports.DeliveryCheckoutResponseSplitToJSON = DeliveryCheckoutResponseSplitToJSON; +const DeliveryCheckoutResponseSplitCommissions_1 = require("./DeliveryCheckoutResponseSplitCommissions"); +const DeliveryCheckoutResponseUnavailableReasonEnum_1 = require("./DeliveryCheckoutResponseUnavailableReasonEnum"); +const DeliveryCheckoutResponseV2SplitDeliverySchemaEnum_1 = require("./DeliveryCheckoutResponseV2SplitDeliverySchemaEnum"); +const DeliveryCheckoutResponseSplitDeliveryMethod_1 = require("./DeliveryCheckoutResponseSplitDeliveryMethod"); +const DeliveryCheckoutResponseSplitItem_1 = require("./DeliveryCheckoutResponseSplitItem"); +/** + * Check if a given object implements the DeliveryCheckoutResponseSplit interface. + */ +function instanceOfDeliveryCheckoutResponseSplit(value) { + return true; +} +function DeliveryCheckoutResponseSplitFromJSON(json) { + return DeliveryCheckoutResponseSplitFromJSONTyped(json, false); +} +function DeliveryCheckoutResponseSplitFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commissions': json['commissions'] == null ? undefined : (0, DeliveryCheckoutResponseSplitCommissions_1.DeliveryCheckoutResponseSplitCommissionsFromJSON)(json['commissions']), + 'delivery_method': json['delivery_method'] == null ? undefined : (0, DeliveryCheckoutResponseSplitDeliveryMethod_1.DeliveryCheckoutResponseSplitDeliveryMethodFromJSON)(json['delivery_method']), + 'delivery_schema': json['delivery_schema'] == null ? undefined : (0, DeliveryCheckoutResponseV2SplitDeliverySchemaEnum_1.DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON)(json['delivery_schema']), + 'items': json['items'] == null ? undefined : (json['items'].map(DeliveryCheckoutResponseSplitItem_1.DeliveryCheckoutResponseSplitItemFromJSON)), + 'unavailable_reason': json['unavailable_reason'] == null ? undefined : (0, DeliveryCheckoutResponseUnavailableReasonEnum_1.DeliveryCheckoutResponseUnavailableReasonEnumFromJSON)(json['unavailable_reason']), + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function DeliveryCheckoutResponseSplitToJSON(value) { + if (value == null) { + return value; + } + return { + 'commissions': (0, DeliveryCheckoutResponseSplitCommissions_1.DeliveryCheckoutResponseSplitCommissionsToJSON)(value['commissions']), + 'delivery_method': (0, DeliveryCheckoutResponseSplitDeliveryMethod_1.DeliveryCheckoutResponseSplitDeliveryMethodToJSON)(value['delivery_method']), + 'delivery_schema': (0, DeliveryCheckoutResponseV2SplitDeliverySchemaEnum_1.DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON)(value['delivery_schema']), + 'items': value['items'] == null ? undefined : (value['items'].map(DeliveryCheckoutResponseSplitItem_1.DeliveryCheckoutResponseSplitItemToJSON)), + 'unavailable_reason': (0, DeliveryCheckoutResponseUnavailableReasonEnum_1.DeliveryCheckoutResponseUnavailableReasonEnumToJSON)(value['unavailable_reason']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/DeliveryCheckoutResponseSplitCommissions.d.ts b/dist/models/DeliveryCheckoutResponseSplitCommissions.d.ts new file mode 100644 index 0000000..2f5958d --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseSplitCommissions.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySplitCommission } from './MoneyMoneySplitCommission'; +/** + * Информация о комиссиях за доставку отправления. Если `commissions = null`, вариант доставки недоступен. + * @export + * @interface DeliveryCheckoutResponseSplitCommissions + */ +export interface DeliveryCheckoutResponseSplitCommissions { + /** + * + * @type {MoneyMoneySplitCommission} + * @memberof DeliveryCheckoutResponseSplitCommissions + */ + total?: MoneyMoneySplitCommission; +} +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitCommissions interface. + */ +export declare function instanceOfDeliveryCheckoutResponseSplitCommissions(value: object): value is DeliveryCheckoutResponseSplitCommissions; +export declare function DeliveryCheckoutResponseSplitCommissionsFromJSON(json: any): DeliveryCheckoutResponseSplitCommissions; +export declare function DeliveryCheckoutResponseSplitCommissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseSplitCommissions; +export declare function DeliveryCheckoutResponseSplitCommissionsToJSON(value?: DeliveryCheckoutResponseSplitCommissions | null): any; diff --git a/dist/models/DeliveryCheckoutResponseSplitCommissions.js b/dist/models/DeliveryCheckoutResponseSplitCommissions.js new file mode 100644 index 0000000..a46625b --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseSplitCommissions.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryCheckoutResponseSplitCommissions = instanceOfDeliveryCheckoutResponseSplitCommissions; +exports.DeliveryCheckoutResponseSplitCommissionsFromJSON = DeliveryCheckoutResponseSplitCommissionsFromJSON; +exports.DeliveryCheckoutResponseSplitCommissionsFromJSONTyped = DeliveryCheckoutResponseSplitCommissionsFromJSONTyped; +exports.DeliveryCheckoutResponseSplitCommissionsToJSON = DeliveryCheckoutResponseSplitCommissionsToJSON; +const MoneyMoneySplitCommission_1 = require("./MoneyMoneySplitCommission"); +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitCommissions interface. + */ +function instanceOfDeliveryCheckoutResponseSplitCommissions(value) { + return true; +} +function DeliveryCheckoutResponseSplitCommissionsFromJSON(json) { + return DeliveryCheckoutResponseSplitCommissionsFromJSONTyped(json, false); +} +function DeliveryCheckoutResponseSplitCommissionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : (0, MoneyMoneySplitCommission_1.MoneyMoneySplitCommissionFromJSON)(json['total']), + }; +} +function DeliveryCheckoutResponseSplitCommissionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': (0, MoneyMoneySplitCommission_1.MoneyMoneySplitCommissionToJSON)(value['total']), + }; +} diff --git a/dist/models/DeliveryCheckoutResponseSplitDeliveryMethod.d.ts b/dist/models/DeliveryCheckoutResponseSplitDeliveryMethod.d.ts new file mode 100644 index 0000000..82d7b98 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseSplitDeliveryMethod.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodDeliveryTypeEnum } from './DeliveryMethodDeliveryTypeEnum'; +import type { DeliveryCheckoutResponseUnavailableReasonEnum } from './DeliveryCheckoutResponseUnavailableReasonEnum'; +import type { DeliveryMethodTimeslot } from './DeliveryMethodTimeslot'; +/** + * Метод доставки. + * @export + * @interface DeliveryCheckoutResponseSplitDeliveryMethod + */ +export interface DeliveryCheckoutResponseSplitDeliveryMethod { + /** + * Смещение часового пояса доставки в минутах. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + delivery_time_zone_offset?: number; + /** + * + * @type {DeliveryMethodDeliveryTypeEnum} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + delivery_type?: DeliveryMethodDeliveryTypeEnum; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + name?: string; + /** + * Таймслоты. + * @type {Array} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + timeslots?: Array; + /** + * + * @type {DeliveryCheckoutResponseUnavailableReasonEnum} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + unavailable_reason?: DeliveryCheckoutResponseUnavailableReasonEnum; + /** + * Смещение часового пояса склада в минутах. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitDeliveryMethod + */ + warehouse_time_zone_offset?: number; +} +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitDeliveryMethod interface. + */ +export declare function instanceOfDeliveryCheckoutResponseSplitDeliveryMethod(value: object): value is DeliveryCheckoutResponseSplitDeliveryMethod; +export declare function DeliveryCheckoutResponseSplitDeliveryMethodFromJSON(json: any): DeliveryCheckoutResponseSplitDeliveryMethod; +export declare function DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseSplitDeliveryMethod; +export declare function DeliveryCheckoutResponseSplitDeliveryMethodToJSON(value?: DeliveryCheckoutResponseSplitDeliveryMethod | null): any; diff --git a/dist/models/DeliveryCheckoutResponseSplitDeliveryMethod.js b/dist/models/DeliveryCheckoutResponseSplitDeliveryMethod.js new file mode 100644 index 0000000..2d0e0a0 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseSplitDeliveryMethod.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryCheckoutResponseSplitDeliveryMethod = instanceOfDeliveryCheckoutResponseSplitDeliveryMethod; +exports.DeliveryCheckoutResponseSplitDeliveryMethodFromJSON = DeliveryCheckoutResponseSplitDeliveryMethodFromJSON; +exports.DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped = DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped; +exports.DeliveryCheckoutResponseSplitDeliveryMethodToJSON = DeliveryCheckoutResponseSplitDeliveryMethodToJSON; +const DeliveryMethodDeliveryTypeEnum_1 = require("./DeliveryMethodDeliveryTypeEnum"); +const DeliveryCheckoutResponseUnavailableReasonEnum_1 = require("./DeliveryCheckoutResponseUnavailableReasonEnum"); +const DeliveryMethodTimeslot_1 = require("./DeliveryMethodTimeslot"); +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitDeliveryMethod interface. + */ +function instanceOfDeliveryCheckoutResponseSplitDeliveryMethod(value) { + return true; +} +function DeliveryCheckoutResponseSplitDeliveryMethodFromJSON(json) { + return DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped(json, false); +} +function DeliveryCheckoutResponseSplitDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_time_zone_offset': json['delivery_time_zone_offset'] == null ? undefined : json['delivery_time_zone_offset'], + 'delivery_type': json['delivery_type'] == null ? undefined : (0, DeliveryMethodDeliveryTypeEnum_1.DeliveryMethodDeliveryTypeEnumFromJSON)(json['delivery_type']), + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(DeliveryMethodTimeslot_1.DeliveryMethodTimeslotFromJSON)), + 'unavailable_reason': json['unavailable_reason'] == null ? undefined : (0, DeliveryCheckoutResponseUnavailableReasonEnum_1.DeliveryCheckoutResponseUnavailableReasonEnumFromJSON)(json['unavailable_reason']), + 'warehouse_time_zone_offset': json['warehouse_time_zone_offset'] == null ? undefined : json['warehouse_time_zone_offset'], + }; +} +function DeliveryCheckoutResponseSplitDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_time_zone_offset': value['delivery_time_zone_offset'], + 'delivery_type': (0, DeliveryMethodDeliveryTypeEnum_1.DeliveryMethodDeliveryTypeEnumToJSON)(value['delivery_type']), + 'id': value['id'], + 'name': value['name'], + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(DeliveryMethodTimeslot_1.DeliveryMethodTimeslotToJSON)), + 'unavailable_reason': (0, DeliveryCheckoutResponseUnavailableReasonEnum_1.DeliveryCheckoutResponseUnavailableReasonEnumToJSON)(value['unavailable_reason']), + 'warehouse_time_zone_offset': value['warehouse_time_zone_offset'], + }; +} diff --git a/dist/models/DeliveryCheckoutResponseSplitItem.d.ts b/dist/models/DeliveryCheckoutResponseSplitItem.d.ts new file mode 100644 index 0000000..f0adac5 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseSplitItem.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о товарах. + * @export + * @interface DeliveryCheckoutResponseSplitItem + */ +export interface DeliveryCheckoutResponseSplitItem { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof DeliveryCheckoutResponseSplitItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitItem + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof DeliveryCheckoutResponseSplitItem + */ + sku?: number; +} +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitItem interface. + */ +export declare function instanceOfDeliveryCheckoutResponseSplitItem(value: object): value is DeliveryCheckoutResponseSplitItem; +export declare function DeliveryCheckoutResponseSplitItemFromJSON(json: any): DeliveryCheckoutResponseSplitItem; +export declare function DeliveryCheckoutResponseSplitItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseSplitItem; +export declare function DeliveryCheckoutResponseSplitItemToJSON(value?: DeliveryCheckoutResponseSplitItem | null): any; diff --git a/dist/models/DeliveryCheckoutResponseSplitItem.js b/dist/models/DeliveryCheckoutResponseSplitItem.js new file mode 100644 index 0000000..c7f5009 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseSplitItem.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryCheckoutResponseSplitItem = instanceOfDeliveryCheckoutResponseSplitItem; +exports.DeliveryCheckoutResponseSplitItemFromJSON = DeliveryCheckoutResponseSplitItemFromJSON; +exports.DeliveryCheckoutResponseSplitItemFromJSONTyped = DeliveryCheckoutResponseSplitItemFromJSONTyped; +exports.DeliveryCheckoutResponseSplitItemToJSON = DeliveryCheckoutResponseSplitItemToJSON; +/** + * Check if a given object implements the DeliveryCheckoutResponseSplitItem interface. + */ +function instanceOfDeliveryCheckoutResponseSplitItem(value) { + return true; +} +function DeliveryCheckoutResponseSplitItemFromJSON(json) { + return DeliveryCheckoutResponseSplitItemFromJSONTyped(json, false); +} +function DeliveryCheckoutResponseSplitItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function DeliveryCheckoutResponseSplitItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/DeliveryCheckoutResponseUnavailableReasonEnum.d.ts b/dist/models/DeliveryCheckoutResponseUnavailableReasonEnum.d.ts new file mode 100644 index 0000000..bf57692 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseUnavailableReasonEnum.d.ts @@ -0,0 +1,121 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина недоступности: + * - `UNSPECIFIED` — доставка доступна; + * - `UNKNOWN` — неизвестная причина; + * - `OUT_OF_STOCK` — товар закончился; + * - `BANNED_FOR_AREA` — товар заблокирован для этой области; + * - `BANNED_FOR_LEGAL` — товар заблокирован для юридических лиц; + * - `BANNED` — товар заблокирован; + * - `BANNED_FOR_NOT_PREMIUM` — товар заблокирован для покупателей без подписки Premium; + * - `DELIVERY_UNAVAILABLE` — доставка недоступна, например, курьеры перегружены; + * - `BANNED_FOR_INDIVIDUAL` — товар заблокирован для физических лиц; + * - `INVALID_WEIGHT` — вес товара не указан; + * - `INVALID_MULTIPLICITY` — недопустимая кратность в штуках; + * - `NOT_FOUND_POINTS_DARK_STORES` — пункты в массиве дарксторов не найдены; + * - `INVALID_MULTI_WAREHOUSES` — товары в заказе с разными схемами доставки неверно распределены; + * - `MIN_PRICE` — сплит не прошёл минимальную цену; + * - `OZONE_DELIVERY_UNAVAILABLE` — доставка Ozon недоступна; + * - `RFBS_DELIVERY_UNAVAILABLE` — доставка по системе rFBS недоступна; + * - `HACK_COURIER_TAGS` — способ доставки исключён по правилу приоритетного показа; + * - `NO_SLA` — норматив комплектации отсутствует; + * - `DELIVERY_VARIANT_IS_CLOSING` — способ доставки в неподходящем статусе; + * - `TPL_NOT_INTEGRATED` — точки, по которым возврат невозможен; + * - `NOT_ALL_WAREHOUSES_ARE_SERVED` — доставка со склада отправления отсутствует; + * - `DELIVERY_SLOTS_NOT_FOUND` — таймслоты отсутствуют; + * - `NO_ROUTE` — маршрут не найден; + * - `CAPACITY_LIMIT` — таймслоты отсеяны из-за заполненности капаситета; + * - `PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION` — ограничение на максимальный объёмный вес посылки; + * - `PACKAGE_MAX_WEIGHT_RESTRICTION` — ограничение на максимальный физический вес посылки, в килограммах до тысячных грамма; + * - `MAX_COST_RESTRICTION` — ограничение на максимальную стоимость заказа, учитывается стоимость товаров, их доставки, но не учитывается страховой сбор в рублях; + * - `MIN_PACKAGE_WEIGHT_RESTRICTION` — ограничение на минимальный физический вес посылки в килограммах до тысячных грамма; + * - `MIN_COST_RESTRICTION` — ограничение на минимальную стоимость товаров заказа в рублях; + * - `MAX_DIMENSIONS_RESTRICTION` — ограничение на максимальные габариты посылки в сантиметрах; + * - `PRODUCT_TYPES_RESTRICTION` — ограничение на допустимые в заказе товарные категории; + * - `PRODUCT_TAGS_RESTRICTION` — ограничение на допустимые в заказе теги товаров; + * - `SELECTED_DELIVERY_METHOD_UNAVAILABLE` — выбранный способ доставки стал недоступным; + * - `SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE` — выбранный таймслот стал недоступным; + * - `MARKETPLACE_UNAVAILABLE` — в заказе товары нескольких маркетплейсов, оформить заказ можно только с 1; + * - `INVALID_PVZ_FOR_KGT` — выбранный ПВЗ не подходит для КГТ; + * - `LEGAL_USER_PREMIUM_SPLIT` — юридическим лицам запрещена покупка подписки Premium; + * - `USER_ALREADY_HAS_PREMIUM` — у пользователя уже есть подписка Premium и она не подарочная; + * - `WAIT_FOR_PAY_SUBSCRIPTION` — пользователь купил премиум-подписку, но не оплатил заказ или подписка ещё не перешла в активный статус; + * - `ADDRESS_NOT_SET ` — адрес не установлен; + * - `PICKUP_POINT_DISABLED` — ПВЗ недоступен; + * - `LEGAL_PREORDER` — предзаказ недоступен юридическим лицам; + * - `DELIVERY_TYPE_FOR_PREORDER` — тип доставки недоступен для предзаказа; + * - `CROSS_BORDER_PICKUP` — CrossBorder-товары не доставляются в пункты выдачи; + * - `ORDER_CUSTOMS_TYPES` — ограничения на таможенные типы; + * - `PACKAGE_MAX_COST` — ограничение на максимальную стоимость посылки,учитывается стоимость товаров и их доставки; + * - `SUPER_ECONOM` — недоступный «суперэконом»; + * - `ECONOM_NOT_FULL_QUANT` — неполный квант; + * - `EMPTY_DELIVERY_METHODS` — нет доступных способов доставки; + * + * @export + */ +export declare const DeliveryCheckoutResponseUnavailableReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNKNOWN: "UNKNOWN"; + readonly OUT_OF_STOCK: "OUT_OF_STOCK"; + readonly BANNED_FOR_AREA: "BANNED_FOR_AREA"; + readonly BANNED_FOR_LEGAL: "BANNED_FOR_LEGAL"; + readonly BANNED: "BANNED"; + readonly BANNED_FOR_NOT_PREMIUM: "BANNED_FOR_NOT_PREMIUM"; + readonly DELIVERY_UNAVAILABLE: "DELIVERY_UNAVAILABLE"; + readonly BANNED_FOR_INDIVIDUAL: "BANNED_FOR_INDIVIDUAL"; + readonly INVALID_WEIGHT: "INVALID_WEIGHT"; + readonly INVALID_MULTIPLICITY: "INVALID_MULTIPLICITY"; + readonly NOT_FOUND_POINTS_DARK_STORES: "NOT_FOUND_POINTS_DARK_STORES"; + readonly INVALID_MULTI_WAREHOUSES: "INVALID_MULTI_WAREHOUSES"; + readonly MIN_PRICE: "MIN_PRICE"; + readonly OZONE_DELIVERY_UNAVAILABLE: "OZONE_DELIVERY_UNAVAILABLE"; + readonly RFBS_DELIVERY_UNAVAILABLE: "RFBS_DELIVERY_UNAVAILABLE"; + readonly HACK_COURIER_TAGS: "HACK_COURIER_TAGS"; + readonly NO_SLA: "NO_SLA"; + readonly DELIVERY_VARIANT_IS_CLOSING: "DELIVERY_VARIANT_IS_CLOSING"; + readonly TPL_NOT_INTEGRATED: "TPL_NOT_INTEGRATED"; + readonly NOT_ALL_WAREHOUSES_ARE_SERVED: "NOT_ALL_WAREHOUSES_ARE_SERVED"; + readonly DELIVERY_SLOTS_NOT_FOUND: "DELIVERY_SLOTS_NOT_FOUND"; + readonly NO_ROUTE: "NO_ROUTE"; + readonly CAPACITY_LIMIT: "CAPACITY_LIMIT"; + readonly PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION: "PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION"; + readonly PACKAGE_MAX_WEIGHT_RESTRICTION: "PACKAGE_MAX_WEIGHT_RESTRICTION"; + readonly MAX_COST_RESTRICTION: "MAX_COST_RESTRICTION"; + readonly MIN_PACKAGE_WEIGHT_RESTRICTION: "MIN_PACKAGE_WEIGHT_RESTRICTION"; + readonly MIN_COST_RESTRICTION: "MIN_COST_RESTRICTION"; + readonly MAX_DIMENSIONS_RESTRICTION: "MAX_DIMENSIONS_RESTRICTION"; + readonly PRODUCT_TYPES_RESTRICTION: "PRODUCT_TYPES_RESTRICTION"; + readonly PRODUCT_TAGS_RESTRICTION: "PRODUCT_TAGS_RESTRICTION"; + readonly SELECTED_DELIVERY_METHOD_UNAVAILABLE: "SELECTED_DELIVERY_METHOD_UNAVAILABLE"; + readonly SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE: "SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE"; + readonly MARKETPLACE_UNAVAILABLE: "MARKETPLACE_UNAVAILABLE"; + readonly INVALID_PVZ_FOR_KGT: "INVALID_PVZ_FOR_KGT"; + readonly LEGAL_USER_PREMIUM_SPLIT: "LEGAL_USER_PREMIUM_SPLIT"; + readonly USER_ALREADY_HAS_PREMIUM: "USER_ALREADY_HAS_PREMIUM"; + readonly WAIT_FOR_PAY_SUBSCRIPTION: "WAIT_FOR_PAY_SUBSCRIPTION"; + readonly ADDRESS_NOT_SET: "ADDRESS_NOT_SET"; + readonly PICKUP_POINT_DISABLED: "PICKUP_POINT_DISABLED"; + readonly LEGAL_PREORDER: "LEGAL_PREORDER"; + readonly DELIVERY_TYPE_FOR_PREORDER: "DELIVERY_TYPE_FOR_PREORDER"; + readonly CROSS_BORDER_PICKUP: "CROSS_BORDER_PICKUP"; + readonly ORDER_CUSTOMS_TYPES: "ORDER_CUSTOMS_TYPES"; + readonly PACKAGE_MAX_COST: "PACKAGE_MAX_COST"; + readonly SUPER_ECONOM: "SUPER_ECONOM"; + readonly ECONOM_NOT_FULL_QUANT: "ECONOM_NOT_FULL_QUANT"; + readonly EMPTY_DELIVERY_METHODS: "EMPTY_DELIVERY_METHODS"; +}; +export type DeliveryCheckoutResponseUnavailableReasonEnum = typeof DeliveryCheckoutResponseUnavailableReasonEnum[keyof typeof DeliveryCheckoutResponseUnavailableReasonEnum]; +export declare function instanceOfDeliveryCheckoutResponseUnavailableReasonEnum(value: any): boolean; +export declare function DeliveryCheckoutResponseUnavailableReasonEnumFromJSON(json: any): DeliveryCheckoutResponseUnavailableReasonEnum; +export declare function DeliveryCheckoutResponseUnavailableReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseUnavailableReasonEnum; +export declare function DeliveryCheckoutResponseUnavailableReasonEnumToJSON(value?: DeliveryCheckoutResponseUnavailableReasonEnum | null): any; diff --git a/dist/models/DeliveryCheckoutResponseUnavailableReasonEnum.js b/dist/models/DeliveryCheckoutResponseUnavailableReasonEnum.js new file mode 100644 index 0000000..e83f768 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseUnavailableReasonEnum.js @@ -0,0 +1,144 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryCheckoutResponseUnavailableReasonEnum = void 0; +exports.instanceOfDeliveryCheckoutResponseUnavailableReasonEnum = instanceOfDeliveryCheckoutResponseUnavailableReasonEnum; +exports.DeliveryCheckoutResponseUnavailableReasonEnumFromJSON = DeliveryCheckoutResponseUnavailableReasonEnumFromJSON; +exports.DeliveryCheckoutResponseUnavailableReasonEnumFromJSONTyped = DeliveryCheckoutResponseUnavailableReasonEnumFromJSONTyped; +exports.DeliveryCheckoutResponseUnavailableReasonEnumToJSON = DeliveryCheckoutResponseUnavailableReasonEnumToJSON; +/** + * Причина недоступности: + * - `UNSPECIFIED` — доставка доступна; + * - `UNKNOWN` — неизвестная причина; + * - `OUT_OF_STOCK` — товар закончился; + * - `BANNED_FOR_AREA` — товар заблокирован для этой области; + * - `BANNED_FOR_LEGAL` — товар заблокирован для юридических лиц; + * - `BANNED` — товар заблокирован; + * - `BANNED_FOR_NOT_PREMIUM` — товар заблокирован для покупателей без подписки Premium; + * - `DELIVERY_UNAVAILABLE` — доставка недоступна, например, курьеры перегружены; + * - `BANNED_FOR_INDIVIDUAL` — товар заблокирован для физических лиц; + * - `INVALID_WEIGHT` — вес товара не указан; + * - `INVALID_MULTIPLICITY` — недопустимая кратность в штуках; + * - `NOT_FOUND_POINTS_DARK_STORES` — пункты в массиве дарксторов не найдены; + * - `INVALID_MULTI_WAREHOUSES` — товары в заказе с разными схемами доставки неверно распределены; + * - `MIN_PRICE` — сплит не прошёл минимальную цену; + * - `OZONE_DELIVERY_UNAVAILABLE` — доставка Ozon недоступна; + * - `RFBS_DELIVERY_UNAVAILABLE` — доставка по системе rFBS недоступна; + * - `HACK_COURIER_TAGS` — способ доставки исключён по правилу приоритетного показа; + * - `NO_SLA` — норматив комплектации отсутствует; + * - `DELIVERY_VARIANT_IS_CLOSING` — способ доставки в неподходящем статусе; + * - `TPL_NOT_INTEGRATED` — точки, по которым возврат невозможен; + * - `NOT_ALL_WAREHOUSES_ARE_SERVED` — доставка со склада отправления отсутствует; + * - `DELIVERY_SLOTS_NOT_FOUND` — таймслоты отсутствуют; + * - `NO_ROUTE` — маршрут не найден; + * - `CAPACITY_LIMIT` — таймслоты отсеяны из-за заполненности капаситета; + * - `PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION` — ограничение на максимальный объёмный вес посылки; + * - `PACKAGE_MAX_WEIGHT_RESTRICTION` — ограничение на максимальный физический вес посылки, в килограммах до тысячных грамма; + * - `MAX_COST_RESTRICTION` — ограничение на максимальную стоимость заказа, учитывается стоимость товаров, их доставки, но не учитывается страховой сбор в рублях; + * - `MIN_PACKAGE_WEIGHT_RESTRICTION` — ограничение на минимальный физический вес посылки в килограммах до тысячных грамма; + * - `MIN_COST_RESTRICTION` — ограничение на минимальную стоимость товаров заказа в рублях; + * - `MAX_DIMENSIONS_RESTRICTION` — ограничение на максимальные габариты посылки в сантиметрах; + * - `PRODUCT_TYPES_RESTRICTION` — ограничение на допустимые в заказе товарные категории; + * - `PRODUCT_TAGS_RESTRICTION` — ограничение на допустимые в заказе теги товаров; + * - `SELECTED_DELIVERY_METHOD_UNAVAILABLE` — выбранный способ доставки стал недоступным; + * - `SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE` — выбранный таймслот стал недоступным; + * - `MARKETPLACE_UNAVAILABLE` — в заказе товары нескольких маркетплейсов, оформить заказ можно только с 1; + * - `INVALID_PVZ_FOR_KGT` — выбранный ПВЗ не подходит для КГТ; + * - `LEGAL_USER_PREMIUM_SPLIT` — юридическим лицам запрещена покупка подписки Premium; + * - `USER_ALREADY_HAS_PREMIUM` — у пользователя уже есть подписка Premium и она не подарочная; + * - `WAIT_FOR_PAY_SUBSCRIPTION` — пользователь купил премиум-подписку, но не оплатил заказ или подписка ещё не перешла в активный статус; + * - `ADDRESS_NOT_SET ` — адрес не установлен; + * - `PICKUP_POINT_DISABLED` — ПВЗ недоступен; + * - `LEGAL_PREORDER` — предзаказ недоступен юридическим лицам; + * - `DELIVERY_TYPE_FOR_PREORDER` — тип доставки недоступен для предзаказа; + * - `CROSS_BORDER_PICKUP` — CrossBorder-товары не доставляются в пункты выдачи; + * - `ORDER_CUSTOMS_TYPES` — ограничения на таможенные типы; + * - `PACKAGE_MAX_COST` — ограничение на максимальную стоимость посылки,учитывается стоимость товаров и их доставки; + * - `SUPER_ECONOM` — недоступный «суперэконом»; + * - `ECONOM_NOT_FULL_QUANT` — неполный квант; + * - `EMPTY_DELIVERY_METHODS` — нет доступных способов доставки; + * + * @export + */ +exports.DeliveryCheckoutResponseUnavailableReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNKNOWN: 'UNKNOWN', + OUT_OF_STOCK: 'OUT_OF_STOCK', + BANNED_FOR_AREA: 'BANNED_FOR_AREA', + BANNED_FOR_LEGAL: 'BANNED_FOR_LEGAL', + BANNED: 'BANNED', + BANNED_FOR_NOT_PREMIUM: 'BANNED_FOR_NOT_PREMIUM', + DELIVERY_UNAVAILABLE: 'DELIVERY_UNAVAILABLE', + BANNED_FOR_INDIVIDUAL: 'BANNED_FOR_INDIVIDUAL', + INVALID_WEIGHT: 'INVALID_WEIGHT', + INVALID_MULTIPLICITY: 'INVALID_MULTIPLICITY', + NOT_FOUND_POINTS_DARK_STORES: 'NOT_FOUND_POINTS_DARK_STORES', + INVALID_MULTI_WAREHOUSES: 'INVALID_MULTI_WAREHOUSES', + MIN_PRICE: 'MIN_PRICE', + OZONE_DELIVERY_UNAVAILABLE: 'OZONE_DELIVERY_UNAVAILABLE', + RFBS_DELIVERY_UNAVAILABLE: 'RFBS_DELIVERY_UNAVAILABLE', + HACK_COURIER_TAGS: 'HACK_COURIER_TAGS', + NO_SLA: 'NO_SLA', + DELIVERY_VARIANT_IS_CLOSING: 'DELIVERY_VARIANT_IS_CLOSING', + TPL_NOT_INTEGRATED: 'TPL_NOT_INTEGRATED', + NOT_ALL_WAREHOUSES_ARE_SERVED: 'NOT_ALL_WAREHOUSES_ARE_SERVED', + DELIVERY_SLOTS_NOT_FOUND: 'DELIVERY_SLOTS_NOT_FOUND', + NO_ROUTE: 'NO_ROUTE', + CAPACITY_LIMIT: 'CAPACITY_LIMIT', + PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION: 'PACKAGE_MAX_VOLUME_WEIGHT_RESTRICTION', + PACKAGE_MAX_WEIGHT_RESTRICTION: 'PACKAGE_MAX_WEIGHT_RESTRICTION', + MAX_COST_RESTRICTION: 'MAX_COST_RESTRICTION', + MIN_PACKAGE_WEIGHT_RESTRICTION: 'MIN_PACKAGE_WEIGHT_RESTRICTION', + MIN_COST_RESTRICTION: 'MIN_COST_RESTRICTION', + MAX_DIMENSIONS_RESTRICTION: 'MAX_DIMENSIONS_RESTRICTION', + PRODUCT_TYPES_RESTRICTION: 'PRODUCT_TYPES_RESTRICTION', + PRODUCT_TAGS_RESTRICTION: 'PRODUCT_TAGS_RESTRICTION', + SELECTED_DELIVERY_METHOD_UNAVAILABLE: 'SELECTED_DELIVERY_METHOD_UNAVAILABLE', + SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE: 'SELECTED_DELIVERY_TIMESLOT_UNAVAILABLE', + MARKETPLACE_UNAVAILABLE: 'MARKETPLACE_UNAVAILABLE', + INVALID_PVZ_FOR_KGT: 'INVALID_PVZ_FOR_KGT', + LEGAL_USER_PREMIUM_SPLIT: 'LEGAL_USER_PREMIUM_SPLIT', + USER_ALREADY_HAS_PREMIUM: 'USER_ALREADY_HAS_PREMIUM', + WAIT_FOR_PAY_SUBSCRIPTION: 'WAIT_FOR_PAY_SUBSCRIPTION', + ADDRESS_NOT_SET: 'ADDRESS_NOT_SET', + PICKUP_POINT_DISABLED: 'PICKUP_POINT_DISABLED', + LEGAL_PREORDER: 'LEGAL_PREORDER', + DELIVERY_TYPE_FOR_PREORDER: 'DELIVERY_TYPE_FOR_PREORDER', + CROSS_BORDER_PICKUP: 'CROSS_BORDER_PICKUP', + ORDER_CUSTOMS_TYPES: 'ORDER_CUSTOMS_TYPES', + PACKAGE_MAX_COST: 'PACKAGE_MAX_COST', + SUPER_ECONOM: 'SUPER_ECONOM', + ECONOM_NOT_FULL_QUANT: 'ECONOM_NOT_FULL_QUANT', + EMPTY_DELIVERY_METHODS: 'EMPTY_DELIVERY_METHODS' +}; +function instanceOfDeliveryCheckoutResponseUnavailableReasonEnum(value) { + for (const key in exports.DeliveryCheckoutResponseUnavailableReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.DeliveryCheckoutResponseUnavailableReasonEnum, key)) { + if (exports.DeliveryCheckoutResponseUnavailableReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function DeliveryCheckoutResponseUnavailableReasonEnumFromJSON(json) { + return DeliveryCheckoutResponseUnavailableReasonEnumFromJSONTyped(json, false); +} +function DeliveryCheckoutResponseUnavailableReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DeliveryCheckoutResponseUnavailableReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.d.ts b/dist/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.d.ts new file mode 100644 index 0000000..bd5e837 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `UNSPECIFIED` — не определена; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export declare const DeliveryCheckoutResponseV2SplitDeliverySchemaEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly FBO: "FBO"; + readonly FBS: "FBS"; +}; +export type DeliveryCheckoutResponseV2SplitDeliverySchemaEnum = typeof DeliveryCheckoutResponseV2SplitDeliverySchemaEnum[keyof typeof DeliveryCheckoutResponseV2SplitDeliverySchemaEnum]; +export declare function instanceOfDeliveryCheckoutResponseV2SplitDeliverySchemaEnum(value: any): boolean; +export declare function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON(json: any): DeliveryCheckoutResponseV2SplitDeliverySchemaEnum; +export declare function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCheckoutResponseV2SplitDeliverySchemaEnum; +export declare function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON(value?: DeliveryCheckoutResponseV2SplitDeliverySchemaEnum | null): any; diff --git a/dist/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.js b/dist/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.js new file mode 100644 index 0000000..7744d88 --- /dev/null +++ b/dist/models/DeliveryCheckoutResponseV2SplitDeliverySchemaEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryCheckoutResponseV2SplitDeliverySchemaEnum = void 0; +exports.instanceOfDeliveryCheckoutResponseV2SplitDeliverySchemaEnum = instanceOfDeliveryCheckoutResponseV2SplitDeliverySchemaEnum; +exports.DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON = DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON; +exports.DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSONTyped = DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSONTyped; +exports.DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON = DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON; +/** + * Схема доставки: + * - `UNSPECIFIED` — не определена; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +exports.DeliveryCheckoutResponseV2SplitDeliverySchemaEnum = { + UNSPECIFIED: 'UNSPECIFIED', + FBO: 'FBO', + FBS: 'FBS' +}; +function instanceOfDeliveryCheckoutResponseV2SplitDeliverySchemaEnum(value) { + for (const key in exports.DeliveryCheckoutResponseV2SplitDeliverySchemaEnum) { + if (Object.prototype.hasOwnProperty.call(exports.DeliveryCheckoutResponseV2SplitDeliverySchemaEnum, key)) { + if (exports.DeliveryCheckoutResponseV2SplitDeliverySchemaEnum[key] === value) { + return true; + } + } + } + return false; +} +function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSON(json) { + return DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSONTyped(json, false); +} +function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DeliveryCheckoutResponseV2SplitDeliverySchemaEnumToJSON(value) { + return value; +} diff --git a/dist/models/DeliveryCourier.d.ts b/dist/models/DeliveryCourier.d.ts new file mode 100644 index 0000000..afacd06 --- /dev/null +++ b/dist/models/DeliveryCourier.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CourierCoordinates } from './CourierCoordinates'; +/** + * Информация о доставке курьером. + * @export + * @interface DeliveryCourier + */ +export interface DeliveryCourier { + /** + * Квартира. + * @type {string} + * @memberof DeliveryCourier + */ + apartment?: string; + /** + * Город. + * @type {string} + * @memberof DeliveryCourier + */ + city: string; + /** + * Комментарий. + * @type {string} + * @memberof DeliveryCourier + */ + comment?: string; + /** + * + * @type {CourierCoordinates} + * @memberof DeliveryCourier + */ + coordinates: CourierCoordinates; + /** + * Страна. + * @type {string} + * @memberof DeliveryCourier + */ + country: string; + /** + * Подъезд. + * @type {string} + * @memberof DeliveryCourier + */ + entrance?: string; + /** + * Этаж. + * @type {string} + * @memberof DeliveryCourier + */ + floor?: string; + /** + * Номер дома. + * @type {string} + * @memberof DeliveryCourier + */ + house_number: string; + /** + * Код домофона. + * @type {string} + * @memberof DeliveryCourier + */ + intercom?: string; + /** + * Регион. + * @type {string} + * @memberof DeliveryCourier + */ + region?: string; + /** + * Улица. + * @type {string} + * @memberof DeliveryCourier + */ + street?: string; + /** + * Индекс. + * @type {string} + * @memberof DeliveryCourier + */ + zip_code?: string; +} +/** + * Check if a given object implements the DeliveryCourier interface. + */ +export declare function instanceOfDeliveryCourier(value: object): value is DeliveryCourier; +export declare function DeliveryCourierFromJSON(json: any): DeliveryCourier; +export declare function DeliveryCourierFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryCourier; +export declare function DeliveryCourierToJSON(value?: DeliveryCourier | null): any; diff --git a/dist/models/DeliveryCourier.js b/dist/models/DeliveryCourier.js new file mode 100644 index 0000000..8115373 --- /dev/null +++ b/dist/models/DeliveryCourier.js @@ -0,0 +1,75 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryCourier = instanceOfDeliveryCourier; +exports.DeliveryCourierFromJSON = DeliveryCourierFromJSON; +exports.DeliveryCourierFromJSONTyped = DeliveryCourierFromJSONTyped; +exports.DeliveryCourierToJSON = DeliveryCourierToJSON; +const CourierCoordinates_1 = require("./CourierCoordinates"); +/** + * Check if a given object implements the DeliveryCourier interface. + */ +function instanceOfDeliveryCourier(value) { + if (!('city' in value) || value['city'] === undefined) + return false; + if (!('coordinates' in value) || value['coordinates'] === undefined) + return false; + if (!('country' in value) || value['country'] === undefined) + return false; + if (!('house_number' in value) || value['house_number'] === undefined) + return false; + return true; +} +function DeliveryCourierFromJSON(json) { + return DeliveryCourierFromJSONTyped(json, false); +} +function DeliveryCourierFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'apartment': json['apartment'] == null ? undefined : json['apartment'], + 'city': json['city'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'coordinates': (0, CourierCoordinates_1.CourierCoordinatesFromJSON)(json['coordinates']), + 'country': json['country'], + 'entrance': json['entrance'] == null ? undefined : json['entrance'], + 'floor': json['floor'] == null ? undefined : json['floor'], + 'house_number': json['house_number'], + 'intercom': json['intercom'] == null ? undefined : json['intercom'], + 'region': json['region'] == null ? undefined : json['region'], + 'street': json['street'] == null ? undefined : json['street'], + 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], + }; +} +function DeliveryCourierToJSON(value) { + if (value == null) { + return value; + } + return { + 'apartment': value['apartment'], + 'city': value['city'], + 'comment': value['comment'], + 'coordinates': (0, CourierCoordinates_1.CourierCoordinatesToJSON)(value['coordinates']), + 'country': value['country'], + 'entrance': value['entrance'], + 'floor': value['floor'], + 'house_number': value['house_number'], + 'intercom': value['intercom'], + 'region': value['region'], + 'street': value['street'], + 'zip_code': value['zip_code'], + }; +} diff --git a/dist/models/DeliveryDetailsDropOffPointDetails.d.ts b/dist/models/DeliveryDetailsDropOffPointDetails.d.ts new file mode 100644 index 0000000..ebedb51 --- /dev/null +++ b/dist/models/DeliveryDetailsDropOffPointDetails.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1fbpTimeslot } from './V1fbpTimeslot'; +/** + * Детали drop-off пункта. + * @export + * @interface DeliveryDetailsDropOffPointDetails + */ +export interface DeliveryDetailsDropOffPointDetails { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof DeliveryDetailsDropOffPointDetails + */ + id?: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof DeliveryDetailsDropOffPointDetails + */ + province_uuid?: string; + /** + * + * @type {V1fbpTimeslot} + * @memberof DeliveryDetailsDropOffPointDetails + */ + timeslot?: V1fbpTimeslot; +} +/** + * Check if a given object implements the DeliveryDetailsDropOffPointDetails interface. + */ +export declare function instanceOfDeliveryDetailsDropOffPointDetails(value: object): value is DeliveryDetailsDropOffPointDetails; +export declare function DeliveryDetailsDropOffPointDetailsFromJSON(json: any): DeliveryDetailsDropOffPointDetails; +export declare function DeliveryDetailsDropOffPointDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryDetailsDropOffPointDetails; +export declare function DeliveryDetailsDropOffPointDetailsToJSON(value?: DeliveryDetailsDropOffPointDetails | null): any; diff --git a/dist/models/DeliveryDetailsDropOffPointDetails.js b/dist/models/DeliveryDetailsDropOffPointDetails.js new file mode 100644 index 0000000..7af6191 --- /dev/null +++ b/dist/models/DeliveryDetailsDropOffPointDetails.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryDetailsDropOffPointDetails = instanceOfDeliveryDetailsDropOffPointDetails; +exports.DeliveryDetailsDropOffPointDetailsFromJSON = DeliveryDetailsDropOffPointDetailsFromJSON; +exports.DeliveryDetailsDropOffPointDetailsFromJSONTyped = DeliveryDetailsDropOffPointDetailsFromJSONTyped; +exports.DeliveryDetailsDropOffPointDetailsToJSON = DeliveryDetailsDropOffPointDetailsToJSON; +const V1fbpTimeslot_1 = require("./V1fbpTimeslot"); +/** + * Check if a given object implements the DeliveryDetailsDropOffPointDetails interface. + */ +function instanceOfDeliveryDetailsDropOffPointDetails(value) { + return true; +} +function DeliveryDetailsDropOffPointDetailsFromJSON(json) { + return DeliveryDetailsDropOffPointDetailsFromJSONTyped(json, false); +} +function DeliveryDetailsDropOffPointDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'province_uuid': json['province_uuid'] == null ? undefined : json['province_uuid'], + 'timeslot': json['timeslot'] == null ? undefined : (0, V1fbpTimeslot_1.V1fbpTimeslotFromJSON)(json['timeslot']), + }; +} +function DeliveryDetailsDropOffPointDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'province_uuid': value['province_uuid'], + 'timeslot': (0, V1fbpTimeslot_1.V1fbpTimeslotToJSON)(value['timeslot']), + }; +} diff --git a/dist/models/DeliveryDetailsSupplyType.d.ts b/dist/models/DeliveryDetailsSupplyType.d.ts new file mode 100644 index 0000000..8f12477 --- /dev/null +++ b/dist/models/DeliveryDetailsSupplyType.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `SUPPLY_TYPE_UNSPECIFIED` — не определён; + * - `DIRECT_BY_SELLER` — доставка до склада силами продавца; + * - `DIRECT_BY_TPL` — доставка до склада сторонней транспортной компанией; + * - `DROP_OFF` — доставка до drop-off пункта; + * - `PICK_UP` — доставка курьером от склада продавца. + * + * @export + */ +export declare const DeliveryDetailsSupplyType: { + readonly SUPPLY_TYPE_UNSPECIFIED: "SUPPLY_TYPE_UNSPECIFIED"; + readonly DIRECT_BY_SELLER: "DIRECT_BY_SELLER"; + readonly DIRECT_BY_TPL: "DIRECT_BY_TPL"; + readonly DROP_OFF: "DROP_OFF"; + readonly PICK_UP: "PICK_UP"; +}; +export type DeliveryDetailsSupplyType = typeof DeliveryDetailsSupplyType[keyof typeof DeliveryDetailsSupplyType]; +export declare function instanceOfDeliveryDetailsSupplyType(value: any): boolean; +export declare function DeliveryDetailsSupplyTypeFromJSON(json: any): DeliveryDetailsSupplyType; +export declare function DeliveryDetailsSupplyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryDetailsSupplyType; +export declare function DeliveryDetailsSupplyTypeToJSON(value?: DeliveryDetailsSupplyType | null): any; diff --git a/dist/models/DeliveryDetailsSupplyType.js b/dist/models/DeliveryDetailsSupplyType.js new file mode 100644 index 0000000..a8a1157 --- /dev/null +++ b/dist/models/DeliveryDetailsSupplyType.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryDetailsSupplyType = void 0; +exports.instanceOfDeliveryDetailsSupplyType = instanceOfDeliveryDetailsSupplyType; +exports.DeliveryDetailsSupplyTypeFromJSON = DeliveryDetailsSupplyTypeFromJSON; +exports.DeliveryDetailsSupplyTypeFromJSONTyped = DeliveryDetailsSupplyTypeFromJSONTyped; +exports.DeliveryDetailsSupplyTypeToJSON = DeliveryDetailsSupplyTypeToJSON; +/** + * Тип поставки: + * - `SUPPLY_TYPE_UNSPECIFIED` — не определён; + * - `DIRECT_BY_SELLER` — доставка до склада силами продавца; + * - `DIRECT_BY_TPL` — доставка до склада сторонней транспортной компанией; + * - `DROP_OFF` — доставка до drop-off пункта; + * - `PICK_UP` — доставка курьером от склада продавца. + * + * @export + */ +exports.DeliveryDetailsSupplyType = { + SUPPLY_TYPE_UNSPECIFIED: 'SUPPLY_TYPE_UNSPECIFIED', + DIRECT_BY_SELLER: 'DIRECT_BY_SELLER', + DIRECT_BY_TPL: 'DIRECT_BY_TPL', + DROP_OFF: 'DROP_OFF', + PICK_UP: 'PICK_UP' +}; +function instanceOfDeliveryDetailsSupplyType(value) { + for (const key in exports.DeliveryDetailsSupplyType) { + if (Object.prototype.hasOwnProperty.call(exports.DeliveryDetailsSupplyType, key)) { + if (exports.DeliveryDetailsSupplyType[key] === value) { + return true; + } + } + } + return false; +} +function DeliveryDetailsSupplyTypeFromJSON(json) { + return DeliveryDetailsSupplyTypeFromJSONTyped(json, false); +} +function DeliveryDetailsSupplyTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DeliveryDetailsSupplyTypeToJSON(value) { + return value; +} diff --git a/dist/models/DeliveryMapRequestViewportCoordinatesLeft.d.ts b/dist/models/DeliveryMapRequestViewportCoordinatesLeft.d.ts new file mode 100644 index 0000000..fa3589c --- /dev/null +++ b/dist/models/DeliveryMapRequestViewportCoordinatesLeft.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты левого нижнего угла области видимости карты. + * @export + * @interface DeliveryMapRequestViewportCoordinatesLeft + */ +export interface DeliveryMapRequestViewportCoordinatesLeft { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapRequestViewportCoordinatesLeft + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapRequestViewportCoordinatesLeft + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapRequestViewportCoordinatesLeft interface. + */ +export declare function instanceOfDeliveryMapRequestViewportCoordinatesLeft(value: object): value is DeliveryMapRequestViewportCoordinatesLeft; +export declare function DeliveryMapRequestViewportCoordinatesLeftFromJSON(json: any): DeliveryMapRequestViewportCoordinatesLeft; +export declare function DeliveryMapRequestViewportCoordinatesLeftFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapRequestViewportCoordinatesLeft; +export declare function DeliveryMapRequestViewportCoordinatesLeftToJSON(value?: DeliveryMapRequestViewportCoordinatesLeft | null): any; diff --git a/dist/models/DeliveryMapRequestViewportCoordinatesLeft.js b/dist/models/DeliveryMapRequestViewportCoordinatesLeft.js new file mode 100644 index 0000000..28b3cd1 --- /dev/null +++ b/dist/models/DeliveryMapRequestViewportCoordinatesLeft.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMapRequestViewportCoordinatesLeft = instanceOfDeliveryMapRequestViewportCoordinatesLeft; +exports.DeliveryMapRequestViewportCoordinatesLeftFromJSON = DeliveryMapRequestViewportCoordinatesLeftFromJSON; +exports.DeliveryMapRequestViewportCoordinatesLeftFromJSONTyped = DeliveryMapRequestViewportCoordinatesLeftFromJSONTyped; +exports.DeliveryMapRequestViewportCoordinatesLeftToJSON = DeliveryMapRequestViewportCoordinatesLeftToJSON; +/** + * Check if a given object implements the DeliveryMapRequestViewportCoordinatesLeft interface. + */ +function instanceOfDeliveryMapRequestViewportCoordinatesLeft(value) { + return true; +} +function DeliveryMapRequestViewportCoordinatesLeftFromJSON(json) { + return DeliveryMapRequestViewportCoordinatesLeftFromJSONTyped(json, false); +} +function DeliveryMapRequestViewportCoordinatesLeftFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +function DeliveryMapRequestViewportCoordinatesLeftToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/models/DeliveryMapRequestViewportCoordinatesRight.d.ts b/dist/models/DeliveryMapRequestViewportCoordinatesRight.d.ts new file mode 100644 index 0000000..b21182a --- /dev/null +++ b/dist/models/DeliveryMapRequestViewportCoordinatesRight.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты правого верхнего угла области видимости карты. + * @export + * @interface DeliveryMapRequestViewportCoordinatesRight + */ +export interface DeliveryMapRequestViewportCoordinatesRight { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapRequestViewportCoordinatesRight + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapRequestViewportCoordinatesRight + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapRequestViewportCoordinatesRight interface. + */ +export declare function instanceOfDeliveryMapRequestViewportCoordinatesRight(value: object): value is DeliveryMapRequestViewportCoordinatesRight; +export declare function DeliveryMapRequestViewportCoordinatesRightFromJSON(json: any): DeliveryMapRequestViewportCoordinatesRight; +export declare function DeliveryMapRequestViewportCoordinatesRightFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapRequestViewportCoordinatesRight; +export declare function DeliveryMapRequestViewportCoordinatesRightToJSON(value?: DeliveryMapRequestViewportCoordinatesRight | null): any; diff --git a/dist/models/DeliveryMapRequestViewportCoordinatesRight.js b/dist/models/DeliveryMapRequestViewportCoordinatesRight.js new file mode 100644 index 0000000..5acc0db --- /dev/null +++ b/dist/models/DeliveryMapRequestViewportCoordinatesRight.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMapRequestViewportCoordinatesRight = instanceOfDeliveryMapRequestViewportCoordinatesRight; +exports.DeliveryMapRequestViewportCoordinatesRightFromJSON = DeliveryMapRequestViewportCoordinatesRightFromJSON; +exports.DeliveryMapRequestViewportCoordinatesRightFromJSONTyped = DeliveryMapRequestViewportCoordinatesRightFromJSONTyped; +exports.DeliveryMapRequestViewportCoordinatesRightToJSON = DeliveryMapRequestViewportCoordinatesRightToJSON; +/** + * Check if a given object implements the DeliveryMapRequestViewportCoordinatesRight interface. + */ +function instanceOfDeliveryMapRequestViewportCoordinatesRight(value) { + return true; +} +function DeliveryMapRequestViewportCoordinatesRightFromJSON(json) { + return DeliveryMapRequestViewportCoordinatesRightFromJSONTyped(json, false); +} +function DeliveryMapRequestViewportCoordinatesRightFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +function DeliveryMapRequestViewportCoordinatesRightToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/models/DeliveryMapResponseCluster.d.ts b/dist/models/DeliveryMapResponseCluster.d.ts new file mode 100644 index 0000000..abdc32c --- /dev/null +++ b/dist/models/DeliveryMapResponseCluster.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMapResponseClusterCoordinates } from './DeliveryMapResponseClusterCoordinates'; +import type { DeliveryMapResponseClusterViewport } from './DeliveryMapResponseClusterViewport'; +/** + * + * @export + * @interface DeliveryMapResponseCluster + */ +export interface DeliveryMapResponseCluster { + /** + * + * @type {DeliveryMapResponseClusterCoordinates} + * @memberof DeliveryMapResponseCluster + */ + coordinate?: DeliveryMapResponseClusterCoordinates; + /** + * `true`, если все точки находятся в одном здании. + * + * @type {boolean} + * @memberof DeliveryMapResponseCluster + */ + is_same_building?: boolean; + /** + * Идентификаторы точек на карте. + * @type {Array} + * @memberof DeliveryMapResponseCluster + */ + map_point_ids?: Array; + /** + * Количество точек в кластере. + * @type {number} + * @memberof DeliveryMapResponseCluster + */ + points_count?: number; + /** + * + * @type {DeliveryMapResponseClusterViewport} + * @memberof DeliveryMapResponseCluster + */ + viewport?: DeliveryMapResponseClusterViewport; +} +/** + * Check if a given object implements the DeliveryMapResponseCluster interface. + */ +export declare function instanceOfDeliveryMapResponseCluster(value: object): value is DeliveryMapResponseCluster; +export declare function DeliveryMapResponseClusterFromJSON(json: any): DeliveryMapResponseCluster; +export declare function DeliveryMapResponseClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseCluster; +export declare function DeliveryMapResponseClusterToJSON(value?: DeliveryMapResponseCluster | null): any; diff --git a/dist/models/DeliveryMapResponseCluster.js b/dist/models/DeliveryMapResponseCluster.js new file mode 100644 index 0000000..ef77aa1 --- /dev/null +++ b/dist/models/DeliveryMapResponseCluster.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMapResponseCluster = instanceOfDeliveryMapResponseCluster; +exports.DeliveryMapResponseClusterFromJSON = DeliveryMapResponseClusterFromJSON; +exports.DeliveryMapResponseClusterFromJSONTyped = DeliveryMapResponseClusterFromJSONTyped; +exports.DeliveryMapResponseClusterToJSON = DeliveryMapResponseClusterToJSON; +const DeliveryMapResponseClusterCoordinates_1 = require("./DeliveryMapResponseClusterCoordinates"); +const DeliveryMapResponseClusterViewport_1 = require("./DeliveryMapResponseClusterViewport"); +/** + * Check if a given object implements the DeliveryMapResponseCluster interface. + */ +function instanceOfDeliveryMapResponseCluster(value) { + return true; +} +function DeliveryMapResponseClusterFromJSON(json) { + return DeliveryMapResponseClusterFromJSONTyped(json, false); +} +function DeliveryMapResponseClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinate': json['coordinate'] == null ? undefined : (0, DeliveryMapResponseClusterCoordinates_1.DeliveryMapResponseClusterCoordinatesFromJSON)(json['coordinate']), + 'is_same_building': json['is_same_building'] == null ? undefined : json['is_same_building'], + 'map_point_ids': json['map_point_ids'] == null ? undefined : json['map_point_ids'], + 'points_count': json['points_count'] == null ? undefined : json['points_count'], + 'viewport': json['viewport'] == null ? undefined : (0, DeliveryMapResponseClusterViewport_1.DeliveryMapResponseClusterViewportFromJSON)(json['viewport']), + }; +} +function DeliveryMapResponseClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinate': (0, DeliveryMapResponseClusterCoordinates_1.DeliveryMapResponseClusterCoordinatesToJSON)(value['coordinate']), + 'is_same_building': value['is_same_building'], + 'map_point_ids': value['map_point_ids'], + 'points_count': value['points_count'], + 'viewport': (0, DeliveryMapResponseClusterViewport_1.DeliveryMapResponseClusterViewportToJSON)(value['viewport']), + }; +} diff --git a/dist/models/DeliveryMapResponseClusterCoordinates.d.ts b/dist/models/DeliveryMapResponseClusterCoordinates.d.ts new file mode 100644 index 0000000..3539378 --- /dev/null +++ b/dist/models/DeliveryMapResponseClusterCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface DeliveryMapResponseClusterCoordinates + */ +export interface DeliveryMapResponseClusterCoordinates { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinates + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinates + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinates interface. + */ +export declare function instanceOfDeliveryMapResponseClusterCoordinates(value: object): value is DeliveryMapResponseClusterCoordinates; +export declare function DeliveryMapResponseClusterCoordinatesFromJSON(json: any): DeliveryMapResponseClusterCoordinates; +export declare function DeliveryMapResponseClusterCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseClusterCoordinates; +export declare function DeliveryMapResponseClusterCoordinatesToJSON(value?: DeliveryMapResponseClusterCoordinates | null): any; diff --git a/dist/models/DeliveryMapResponseClusterCoordinates.js b/dist/models/DeliveryMapResponseClusterCoordinates.js new file mode 100644 index 0000000..b96607a --- /dev/null +++ b/dist/models/DeliveryMapResponseClusterCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMapResponseClusterCoordinates = instanceOfDeliveryMapResponseClusterCoordinates; +exports.DeliveryMapResponseClusterCoordinatesFromJSON = DeliveryMapResponseClusterCoordinatesFromJSON; +exports.DeliveryMapResponseClusterCoordinatesFromJSONTyped = DeliveryMapResponseClusterCoordinatesFromJSONTyped; +exports.DeliveryMapResponseClusterCoordinatesToJSON = DeliveryMapResponseClusterCoordinatesToJSON; +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinates interface. + */ +function instanceOfDeliveryMapResponseClusterCoordinates(value) { + return true; +} +function DeliveryMapResponseClusterCoordinatesFromJSON(json) { + return DeliveryMapResponseClusterCoordinatesFromJSONTyped(json, false); +} +function DeliveryMapResponseClusterCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +function DeliveryMapResponseClusterCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/models/DeliveryMapResponseClusterCoordinatesLeft.d.ts b/dist/models/DeliveryMapResponseClusterCoordinatesLeft.d.ts new file mode 100644 index 0000000..cea4af4 --- /dev/null +++ b/dist/models/DeliveryMapResponseClusterCoordinatesLeft.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты левого нижнего угла области видимости карты. + * @export + * @interface DeliveryMapResponseClusterCoordinatesLeft + */ +export interface DeliveryMapResponseClusterCoordinatesLeft { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinatesLeft + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinatesLeft + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinatesLeft interface. + */ +export declare function instanceOfDeliveryMapResponseClusterCoordinatesLeft(value: object): value is DeliveryMapResponseClusterCoordinatesLeft; +export declare function DeliveryMapResponseClusterCoordinatesLeftFromJSON(json: any): DeliveryMapResponseClusterCoordinatesLeft; +export declare function DeliveryMapResponseClusterCoordinatesLeftFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseClusterCoordinatesLeft; +export declare function DeliveryMapResponseClusterCoordinatesLeftToJSON(value?: DeliveryMapResponseClusterCoordinatesLeft | null): any; diff --git a/dist/models/DeliveryMapResponseClusterCoordinatesLeft.js b/dist/models/DeliveryMapResponseClusterCoordinatesLeft.js new file mode 100644 index 0000000..0c8e067 --- /dev/null +++ b/dist/models/DeliveryMapResponseClusterCoordinatesLeft.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMapResponseClusterCoordinatesLeft = instanceOfDeliveryMapResponseClusterCoordinatesLeft; +exports.DeliveryMapResponseClusterCoordinatesLeftFromJSON = DeliveryMapResponseClusterCoordinatesLeftFromJSON; +exports.DeliveryMapResponseClusterCoordinatesLeftFromJSONTyped = DeliveryMapResponseClusterCoordinatesLeftFromJSONTyped; +exports.DeliveryMapResponseClusterCoordinatesLeftToJSON = DeliveryMapResponseClusterCoordinatesLeftToJSON; +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinatesLeft interface. + */ +function instanceOfDeliveryMapResponseClusterCoordinatesLeft(value) { + return true; +} +function DeliveryMapResponseClusterCoordinatesLeftFromJSON(json) { + return DeliveryMapResponseClusterCoordinatesLeftFromJSONTyped(json, false); +} +function DeliveryMapResponseClusterCoordinatesLeftFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +function DeliveryMapResponseClusterCoordinatesLeftToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/models/DeliveryMapResponseClusterCoordinatesRight.d.ts b/dist/models/DeliveryMapResponseClusterCoordinatesRight.d.ts new file mode 100644 index 0000000..12a776c --- /dev/null +++ b/dist/models/DeliveryMapResponseClusterCoordinatesRight.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты правого верхнего угла области видимости карты. + * @export + * @interface DeliveryMapResponseClusterCoordinatesRight + */ +export interface DeliveryMapResponseClusterCoordinatesRight { + /** + * Широта. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinatesRight + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryMapResponseClusterCoordinatesRight + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinatesRight interface. + */ +export declare function instanceOfDeliveryMapResponseClusterCoordinatesRight(value: object): value is DeliveryMapResponseClusterCoordinatesRight; +export declare function DeliveryMapResponseClusterCoordinatesRightFromJSON(json: any): DeliveryMapResponseClusterCoordinatesRight; +export declare function DeliveryMapResponseClusterCoordinatesRightFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseClusterCoordinatesRight; +export declare function DeliveryMapResponseClusterCoordinatesRightToJSON(value?: DeliveryMapResponseClusterCoordinatesRight | null): any; diff --git a/dist/models/DeliveryMapResponseClusterCoordinatesRight.js b/dist/models/DeliveryMapResponseClusterCoordinatesRight.js new file mode 100644 index 0000000..b6e951d --- /dev/null +++ b/dist/models/DeliveryMapResponseClusterCoordinatesRight.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMapResponseClusterCoordinatesRight = instanceOfDeliveryMapResponseClusterCoordinatesRight; +exports.DeliveryMapResponseClusterCoordinatesRightFromJSON = DeliveryMapResponseClusterCoordinatesRightFromJSON; +exports.DeliveryMapResponseClusterCoordinatesRightFromJSONTyped = DeliveryMapResponseClusterCoordinatesRightFromJSONTyped; +exports.DeliveryMapResponseClusterCoordinatesRightToJSON = DeliveryMapResponseClusterCoordinatesRightToJSON; +/** + * Check if a given object implements the DeliveryMapResponseClusterCoordinatesRight interface. + */ +function instanceOfDeliveryMapResponseClusterCoordinatesRight(value) { + return true; +} +function DeliveryMapResponseClusterCoordinatesRightFromJSON(json) { + return DeliveryMapResponseClusterCoordinatesRightFromJSONTyped(json, false); +} +function DeliveryMapResponseClusterCoordinatesRightFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +function DeliveryMapResponseClusterCoordinatesRightToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/models/DeliveryMapResponseClusterViewport.d.ts b/dist/models/DeliveryMapResponseClusterViewport.d.ts new file mode 100644 index 0000000..59fc1fa --- /dev/null +++ b/dist/models/DeliveryMapResponseClusterViewport.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMapResponseClusterCoordinatesLeft } from './DeliveryMapResponseClusterCoordinatesLeft'; +import type { DeliveryMapResponseClusterCoordinatesRight } from './DeliveryMapResponseClusterCoordinatesRight'; +/** + * Область карты для получения точек в кластере. + * @export + * @interface DeliveryMapResponseClusterViewport + */ +export interface DeliveryMapResponseClusterViewport { + /** + * + * @type {DeliveryMapResponseClusterCoordinatesLeft} + * @memberof DeliveryMapResponseClusterViewport + */ + left_bottom?: DeliveryMapResponseClusterCoordinatesLeft; + /** + * + * @type {DeliveryMapResponseClusterCoordinatesRight} + * @memberof DeliveryMapResponseClusterViewport + */ + right_top?: DeliveryMapResponseClusterCoordinatesRight; +} +/** + * Check if a given object implements the DeliveryMapResponseClusterViewport interface. + */ +export declare function instanceOfDeliveryMapResponseClusterViewport(value: object): value is DeliveryMapResponseClusterViewport; +export declare function DeliveryMapResponseClusterViewportFromJSON(json: any): DeliveryMapResponseClusterViewport; +export declare function DeliveryMapResponseClusterViewportFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMapResponseClusterViewport; +export declare function DeliveryMapResponseClusterViewportToJSON(value?: DeliveryMapResponseClusterViewport | null): any; diff --git a/dist/models/DeliveryMapResponseClusterViewport.js b/dist/models/DeliveryMapResponseClusterViewport.js new file mode 100644 index 0000000..21c8702 --- /dev/null +++ b/dist/models/DeliveryMapResponseClusterViewport.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMapResponseClusterViewport = instanceOfDeliveryMapResponseClusterViewport; +exports.DeliveryMapResponseClusterViewportFromJSON = DeliveryMapResponseClusterViewportFromJSON; +exports.DeliveryMapResponseClusterViewportFromJSONTyped = DeliveryMapResponseClusterViewportFromJSONTyped; +exports.DeliveryMapResponseClusterViewportToJSON = DeliveryMapResponseClusterViewportToJSON; +const DeliveryMapResponseClusterCoordinatesLeft_1 = require("./DeliveryMapResponseClusterCoordinatesLeft"); +const DeliveryMapResponseClusterCoordinatesRight_1 = require("./DeliveryMapResponseClusterCoordinatesRight"); +/** + * Check if a given object implements the DeliveryMapResponseClusterViewport interface. + */ +function instanceOfDeliveryMapResponseClusterViewport(value) { + return true; +} +function DeliveryMapResponseClusterViewportFromJSON(json) { + return DeliveryMapResponseClusterViewportFromJSONTyped(json, false); +} +function DeliveryMapResponseClusterViewportFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'left_bottom': json['left_bottom'] == null ? undefined : (0, DeliveryMapResponseClusterCoordinatesLeft_1.DeliveryMapResponseClusterCoordinatesLeftFromJSON)(json['left_bottom']), + 'right_top': json['right_top'] == null ? undefined : (0, DeliveryMapResponseClusterCoordinatesRight_1.DeliveryMapResponseClusterCoordinatesRightFromJSON)(json['right_top']), + }; +} +function DeliveryMapResponseClusterViewportToJSON(value) { + if (value == null) { + return value; + } + return { + 'left_bottom': (0, DeliveryMapResponseClusterCoordinatesLeft_1.DeliveryMapResponseClusterCoordinatesLeftToJSON)(value['left_bottom']), + 'right_top': (0, DeliveryMapResponseClusterCoordinatesRight_1.DeliveryMapResponseClusterCoordinatesRightToJSON)(value['right_top']), + }; +} diff --git a/dist/models/DeliveryMethodAddressDetails.d.ts b/dist/models/DeliveryMethodAddressDetails.d.ts new file mode 100644 index 0000000..b80b65f --- /dev/null +++ b/dist/models/DeliveryMethodAddressDetails.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали адреса. + * @export + * @interface DeliveryMethodAddressDetails + */ +export interface DeliveryMethodAddressDetails { + /** + * Город. + * @type {string} + * @memberof DeliveryMethodAddressDetails + */ + city?: string; + /** + * Дом. + * @type {string} + * @memberof DeliveryMethodAddressDetails + */ + house?: string; + /** + * Регион. + * @type {string} + * @memberof DeliveryMethodAddressDetails + */ + region?: string; + /** + * Улица. + * @type {string} + * @memberof DeliveryMethodAddressDetails + */ + street?: string; +} +/** + * Check if a given object implements the DeliveryMethodAddressDetails interface. + */ +export declare function instanceOfDeliveryMethodAddressDetails(value: object): value is DeliveryMethodAddressDetails; +export declare function DeliveryMethodAddressDetailsFromJSON(json: any): DeliveryMethodAddressDetails; +export declare function DeliveryMethodAddressDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodAddressDetails; +export declare function DeliveryMethodAddressDetailsToJSON(value?: DeliveryMethodAddressDetails | null): any; diff --git a/dist/models/DeliveryMethodAddressDetails.js b/dist/models/DeliveryMethodAddressDetails.js new file mode 100644 index 0000000..318283d --- /dev/null +++ b/dist/models/DeliveryMethodAddressDetails.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodAddressDetails = instanceOfDeliveryMethodAddressDetails; +exports.DeliveryMethodAddressDetailsFromJSON = DeliveryMethodAddressDetailsFromJSON; +exports.DeliveryMethodAddressDetailsFromJSONTyped = DeliveryMethodAddressDetailsFromJSONTyped; +exports.DeliveryMethodAddressDetailsToJSON = DeliveryMethodAddressDetailsToJSON; +/** + * Check if a given object implements the DeliveryMethodAddressDetails interface. + */ +function instanceOfDeliveryMethodAddressDetails(value) { + return true; +} +function DeliveryMethodAddressDetailsFromJSON(json) { + return DeliveryMethodAddressDetailsFromJSONTyped(json, false); +} +function DeliveryMethodAddressDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'house': json['house'] == null ? undefined : json['house'], + 'region': json['region'] == null ? undefined : json['region'], + 'street': json['street'] == null ? undefined : json['street'], + }; +} +function DeliveryMethodAddressDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'house': value['house'], + 'region': value['region'], + 'street': value['street'], + }; +} diff --git a/dist/models/DeliveryMethodCarriage.d.ts b/dist/models/DeliveryMethodCarriage.d.ts new file mode 100644 index 0000000..f268bf7 --- /dev/null +++ b/dist/models/DeliveryMethodCarriage.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CarriagePickupFee } from './CarriagePickupFee'; +/** + * + * @export + * @interface DeliveryMethodCarriage + */ +export interface DeliveryMethodCarriage { + /** + * `true`, если в отгрузке есть товары, для которых нужны дополнительные документы при отправке в Беларусь. + * + * @type {boolean} + * @memberof DeliveryMethodCarriage + */ + all_blr_traceable?: boolean; + /** + * Доступные действия с отгрузкой. + * @type {Array} + * @memberof DeliveryMethodCarriage + */ + available_actions?: Array; + /** + * Объём отгрузки в литрах. + * @type {number} + * @memberof DeliveryMethodCarriage + */ + carriage_volume?: number; + /** + * Идентификатор отгрузки. Если `0` — отгрузка, которую можно создать. + * @type {number} + * @memberof DeliveryMethodCarriage + */ + id?: number; + /** + * + * @type {CarriagePickupFee} + * @memberof DeliveryMethodCarriage + */ + pickup_fee?: CarriagePickupFee; + /** + * Количество отправлений в отгрузке. + * @type {number} + * @memberof DeliveryMethodCarriage + */ + postings_count?: number; + /** + * Количество квантов в отгрузке. + * @type {number} + * @memberof DeliveryMethodCarriage + */ + quantum_count?: number; + /** + * Статус отгрузки для запрашиваемых метода и даты. + * @type {string} + * @memberof DeliveryMethodCarriage + */ + status?: string; +} +/** + * Check if a given object implements the DeliveryMethodCarriage interface. + */ +export declare function instanceOfDeliveryMethodCarriage(value: object): value is DeliveryMethodCarriage; +export declare function DeliveryMethodCarriageFromJSON(json: any): DeliveryMethodCarriage; +export declare function DeliveryMethodCarriageFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodCarriage; +export declare function DeliveryMethodCarriageToJSON(value?: DeliveryMethodCarriage | null): any; diff --git a/dist/models/DeliveryMethodCarriage.js b/dist/models/DeliveryMethodCarriage.js new file mode 100644 index 0000000..558f92b --- /dev/null +++ b/dist/models/DeliveryMethodCarriage.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodCarriage = instanceOfDeliveryMethodCarriage; +exports.DeliveryMethodCarriageFromJSON = DeliveryMethodCarriageFromJSON; +exports.DeliveryMethodCarriageFromJSONTyped = DeliveryMethodCarriageFromJSONTyped; +exports.DeliveryMethodCarriageToJSON = DeliveryMethodCarriageToJSON; +const CarriagePickupFee_1 = require("./CarriagePickupFee"); +/** + * Check if a given object implements the DeliveryMethodCarriage interface. + */ +function instanceOfDeliveryMethodCarriage(value) { + return true; +} +function DeliveryMethodCarriageFromJSON(json) { + return DeliveryMethodCarriageFromJSONTyped(json, false); +} +function DeliveryMethodCarriageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'all_blr_traceable': json['all_blr_traceable'] == null ? undefined : json['all_blr_traceable'], + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'carriage_volume': json['carriage_volume'] == null ? undefined : json['carriage_volume'], + 'id': json['id'] == null ? undefined : json['id'], + 'pickup_fee': json['pickup_fee'] == null ? undefined : (0, CarriagePickupFee_1.CarriagePickupFeeFromJSON)(json['pickup_fee']), + 'postings_count': json['postings_count'] == null ? undefined : json['postings_count'], + 'quantum_count': json['quantum_count'] == null ? undefined : json['quantum_count'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function DeliveryMethodCarriageToJSON(value) { + if (value == null) { + return value; + } + return { + 'all_blr_traceable': value['all_blr_traceable'], + 'available_actions': value['available_actions'], + 'carriage_volume': value['carriage_volume'], + 'id': value['id'], + 'pickup_fee': (0, CarriagePickupFee_1.CarriagePickupFeeToJSON)(value['pickup_fee']), + 'postings_count': value['postings_count'], + 'quantum_count': value['quantum_count'], + 'status': value['status'], + }; +} diff --git a/dist/models/DeliveryMethodDateRange.d.ts b/dist/models/DeliveryMethodDateRange.d.ts new file mode 100644 index 0000000..31c7270 --- /dev/null +++ b/dist/models/DeliveryMethodDateRange.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал времени, в течение которого заказ может быть доставлен до точки выдачи. + * @export + * @interface DeliveryMethodDateRange + */ +export interface DeliveryMethodDateRange { + /** + * Время начала интервала. + * @type {string} + * @memberof DeliveryMethodDateRange + */ + from: string; + /** + * Время конца интервала. + * @type {string} + * @memberof DeliveryMethodDateRange + */ + to: string; +} +/** + * Check if a given object implements the DeliveryMethodDateRange interface. + */ +export declare function instanceOfDeliveryMethodDateRange(value: object): value is DeliveryMethodDateRange; +export declare function DeliveryMethodDateRangeFromJSON(json: any): DeliveryMethodDateRange; +export declare function DeliveryMethodDateRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodDateRange; +export declare function DeliveryMethodDateRangeToJSON(value?: DeliveryMethodDateRange | null): any; diff --git a/dist/models/DeliveryMethodDateRange.js b/dist/models/DeliveryMethodDateRange.js new file mode 100644 index 0000000..5105d7c --- /dev/null +++ b/dist/models/DeliveryMethodDateRange.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodDateRange = instanceOfDeliveryMethodDateRange; +exports.DeliveryMethodDateRangeFromJSON = DeliveryMethodDateRangeFromJSON; +exports.DeliveryMethodDateRangeFromJSONTyped = DeliveryMethodDateRangeFromJSONTyped; +exports.DeliveryMethodDateRangeToJSON = DeliveryMethodDateRangeToJSON; +/** + * Check if a given object implements the DeliveryMethodDateRange interface. + */ +function instanceOfDeliveryMethodDateRange(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function DeliveryMethodDateRangeFromJSON(json) { + return DeliveryMethodDateRangeFromJSONTyped(json, false); +} +function DeliveryMethodDateRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +function DeliveryMethodDateRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/DeliveryMethodDeliveryPolygon.d.ts b/dist/models/DeliveryMethodDeliveryPolygon.d.ts new file mode 100644 index 0000000..7ca9fdd --- /dev/null +++ b/dist/models/DeliveryMethodDeliveryPolygon.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodDeliveryPolygon + */ +export interface DeliveryMethodDeliveryPolygon { + /** + * Идентификатор полигона. + * @type {number} + * @memberof DeliveryMethodDeliveryPolygon + */ + id: number; + /** + * Время в минутах, за которое доставят товар в этом полигоне. + * @type {number} + * @memberof DeliveryMethodDeliveryPolygon + */ + time: DeliveryMethodDeliveryPolygonTimeEnum; +} +/** + * @export + */ +export declare const DeliveryMethodDeliveryPolygonTimeEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_45: 45; + readonly NUMBER_60: 60; + readonly NUMBER_90: 90; + readonly NUMBER_120: 120; + readonly NUMBER_150: 150; +}; +export type DeliveryMethodDeliveryPolygonTimeEnum = typeof DeliveryMethodDeliveryPolygonTimeEnum[keyof typeof DeliveryMethodDeliveryPolygonTimeEnum]; +/** + * Check if a given object implements the DeliveryMethodDeliveryPolygon interface. + */ +export declare function instanceOfDeliveryMethodDeliveryPolygon(value: object): value is DeliveryMethodDeliveryPolygon; +export declare function DeliveryMethodDeliveryPolygonFromJSON(json: any): DeliveryMethodDeliveryPolygon; +export declare function DeliveryMethodDeliveryPolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodDeliveryPolygon; +export declare function DeliveryMethodDeliveryPolygonToJSON(value?: DeliveryMethodDeliveryPolygon | null): any; diff --git a/dist/models/DeliveryMethodDeliveryPolygon.js b/dist/models/DeliveryMethodDeliveryPolygon.js new file mode 100644 index 0000000..ff37397 --- /dev/null +++ b/dist/models/DeliveryMethodDeliveryPolygon.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryMethodDeliveryPolygonTimeEnum = void 0; +exports.instanceOfDeliveryMethodDeliveryPolygon = instanceOfDeliveryMethodDeliveryPolygon; +exports.DeliveryMethodDeliveryPolygonFromJSON = DeliveryMethodDeliveryPolygonFromJSON; +exports.DeliveryMethodDeliveryPolygonFromJSONTyped = DeliveryMethodDeliveryPolygonFromJSONTyped; +exports.DeliveryMethodDeliveryPolygonToJSON = DeliveryMethodDeliveryPolygonToJSON; +/** + * @export + */ +exports.DeliveryMethodDeliveryPolygonTimeEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_45: 45, + NUMBER_60: 60, + NUMBER_90: 90, + NUMBER_120: 120, + NUMBER_150: 150 +}; +/** + * Check if a given object implements the DeliveryMethodDeliveryPolygon interface. + */ +function instanceOfDeliveryMethodDeliveryPolygon(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + return true; +} +function DeliveryMethodDeliveryPolygonFromJSON(json) { + return DeliveryMethodDeliveryPolygonFromJSONTyped(json, false); +} +function DeliveryMethodDeliveryPolygonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'time': json['time'], + }; +} +function DeliveryMethodDeliveryPolygonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'time': value['time'], + }; +} diff --git a/dist/models/DeliveryMethodDeliveryTypeEnum.d.ts b/dist/models/DeliveryMethodDeliveryTypeEnum.d.ts new file mode 100644 index 0000000..dd0079c --- /dev/null +++ b/dist/models/DeliveryMethodDeliveryTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ доставки: + * - `UNSPECIFIED` — не определён; + * - `POSTAMAT` — в постамат; + * - `COURIER` — курьером; + * - `PVZ` — в пункт самовывоза. + * + * @export + */ +export declare const DeliveryMethodDeliveryTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly POSTAMAT: "POSTAMAT"; + readonly COURIER: "COURIER"; + readonly PVZ: "PVZ"; +}; +export type DeliveryMethodDeliveryTypeEnum = typeof DeliveryMethodDeliveryTypeEnum[keyof typeof DeliveryMethodDeliveryTypeEnum]; +export declare function instanceOfDeliveryMethodDeliveryTypeEnum(value: any): boolean; +export declare function DeliveryMethodDeliveryTypeEnumFromJSON(json: any): DeliveryMethodDeliveryTypeEnum; +export declare function DeliveryMethodDeliveryTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodDeliveryTypeEnum; +export declare function DeliveryMethodDeliveryTypeEnumToJSON(value?: DeliveryMethodDeliveryTypeEnum | null): any; diff --git a/dist/models/DeliveryMethodDeliveryTypeEnum.js b/dist/models/DeliveryMethodDeliveryTypeEnum.js new file mode 100644 index 0000000..e17af25 --- /dev/null +++ b/dist/models/DeliveryMethodDeliveryTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryMethodDeliveryTypeEnum = void 0; +exports.instanceOfDeliveryMethodDeliveryTypeEnum = instanceOfDeliveryMethodDeliveryTypeEnum; +exports.DeliveryMethodDeliveryTypeEnumFromJSON = DeliveryMethodDeliveryTypeEnumFromJSON; +exports.DeliveryMethodDeliveryTypeEnumFromJSONTyped = DeliveryMethodDeliveryTypeEnumFromJSONTyped; +exports.DeliveryMethodDeliveryTypeEnumToJSON = DeliveryMethodDeliveryTypeEnumToJSON; +/** + * Способ доставки: + * - `UNSPECIFIED` — не определён; + * - `POSTAMAT` — в постамат; + * - `COURIER` — курьером; + * - `PVZ` — в пункт самовывоза. + * + * @export + */ +exports.DeliveryMethodDeliveryTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + POSTAMAT: 'POSTAMAT', + COURIER: 'COURIER', + PVZ: 'PVZ' +}; +function instanceOfDeliveryMethodDeliveryTypeEnum(value) { + for (const key in exports.DeliveryMethodDeliveryTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.DeliveryMethodDeliveryTypeEnum, key)) { + if (exports.DeliveryMethodDeliveryTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function DeliveryMethodDeliveryTypeEnumFromJSON(json) { + return DeliveryMethodDeliveryTypeEnumFromJSONTyped(json, false); +} +function DeliveryMethodDeliveryTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DeliveryMethodDeliveryTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/DeliveryMethodError.d.ts b/dist/models/DeliveryMethodError.d.ts new file mode 100644 index 0000000..ac13153 --- /dev/null +++ b/dist/models/DeliveryMethodError.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodError + */ +export interface DeliveryMethodError { + /** + * Код ошибки. + * @type {string} + * @memberof DeliveryMethodError + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof DeliveryMethodError + */ + description?: string; + /** + * Статус ошибки. + * @type {string} + * @memberof DeliveryMethodError + */ + status?: string; +} +/** + * Check if a given object implements the DeliveryMethodError interface. + */ +export declare function instanceOfDeliveryMethodError(value: object): value is DeliveryMethodError; +export declare function DeliveryMethodErrorFromJSON(json: any): DeliveryMethodError; +export declare function DeliveryMethodErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodError; +export declare function DeliveryMethodErrorToJSON(value?: DeliveryMethodError | null): any; diff --git a/dist/models/DeliveryMethodError.js b/dist/models/DeliveryMethodError.js new file mode 100644 index 0000000..55b9116 --- /dev/null +++ b/dist/models/DeliveryMethodError.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodError = instanceOfDeliveryMethodError; +exports.DeliveryMethodErrorFromJSON = DeliveryMethodErrorFromJSON; +exports.DeliveryMethodErrorFromJSONTyped = DeliveryMethodErrorFromJSONTyped; +exports.DeliveryMethodErrorToJSON = DeliveryMethodErrorToJSON; +/** + * Check if a given object implements the DeliveryMethodError interface. + */ +function instanceOfDeliveryMethodError(value) { + return true; +} +function DeliveryMethodErrorFromJSON(json) { + return DeliveryMethodErrorFromJSONTyped(json, false); +} +function DeliveryMethodErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'description': json['description'] == null ? undefined : json['description'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function DeliveryMethodErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'description': value['description'], + 'status': value['status'], + }; +} diff --git a/dist/models/DeliveryMethodHolidays.d.ts b/dist/models/DeliveryMethodHolidays.d.ts new file mode 100644 index 0000000..1b039cf --- /dev/null +++ b/dist/models/DeliveryMethodHolidays.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodHolidays + */ +export interface DeliveryMethodHolidays { + /** + * Дата и время начала праздничных дней. + * @type {string} + * @memberof DeliveryMethodHolidays + */ + begin?: string; + /** + * Дата и время окончания праздничных дней. + * @type {string} + * @memberof DeliveryMethodHolidays + */ + end?: string; +} +/** + * Check if a given object implements the DeliveryMethodHolidays interface. + */ +export declare function instanceOfDeliveryMethodHolidays(value: object): value is DeliveryMethodHolidays; +export declare function DeliveryMethodHolidaysFromJSON(json: any): DeliveryMethodHolidays; +export declare function DeliveryMethodHolidaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodHolidays; +export declare function DeliveryMethodHolidaysToJSON(value?: DeliveryMethodHolidays | null): any; diff --git a/dist/models/DeliveryMethodHolidays.js b/dist/models/DeliveryMethodHolidays.js new file mode 100644 index 0000000..2fa2d50 --- /dev/null +++ b/dist/models/DeliveryMethodHolidays.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodHolidays = instanceOfDeliveryMethodHolidays; +exports.DeliveryMethodHolidaysFromJSON = DeliveryMethodHolidaysFromJSON; +exports.DeliveryMethodHolidaysFromJSONTyped = DeliveryMethodHolidaysFromJSONTyped; +exports.DeliveryMethodHolidaysToJSON = DeliveryMethodHolidaysToJSON; +/** + * Check if a given object implements the DeliveryMethodHolidays interface. + */ +function instanceOfDeliveryMethodHolidays(value) { + return true; +} +function DeliveryMethodHolidaysFromJSON(json) { + return DeliveryMethodHolidaysFromJSONTyped(json, false); +} +function DeliveryMethodHolidaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'begin': json['begin'] == null ? undefined : json['begin'], + 'end': json['end'] == null ? undefined : json['end'], + }; +} +function DeliveryMethodHolidaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'begin': value['begin'], + 'end': value['end'], + }; +} diff --git a/dist/models/DeliveryMethodListRequestFilter.d.ts b/dist/models/DeliveryMethodListRequestFilter.d.ts new file mode 100644 index 0000000..3b9bebf --- /dev/null +++ b/dist/models/DeliveryMethodListRequestFilter.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска методов доставки. + * @export + * @interface DeliveryMethodListRequestFilter + */ +export interface DeliveryMethodListRequestFilter { + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof DeliveryMethodListRequestFilter + */ + provider_id?: number; + /** + * Статус метода доставки: + * - `NEW` — создан, + * - `EDITED` — редактируется, + * - `ACTIVE` — активный, + * - `DISABLED` — неактивный. + * + * @type {string} + * @memberof DeliveryMethodListRequestFilter + */ + status?: string; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list ](#operation/WarehouseAPI_WarehouseList). + * @type {number} + * @memberof DeliveryMethodListRequestFilter + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DeliveryMethodListRequestFilter interface. + */ +export declare function instanceOfDeliveryMethodListRequestFilter(value: object): value is DeliveryMethodListRequestFilter; +export declare function DeliveryMethodListRequestFilterFromJSON(json: any): DeliveryMethodListRequestFilter; +export declare function DeliveryMethodListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListRequestFilter; +export declare function DeliveryMethodListRequestFilterToJSON(value?: DeliveryMethodListRequestFilter | null): any; diff --git a/dist/models/DeliveryMethodListRequestFilter.js b/dist/models/DeliveryMethodListRequestFilter.js new file mode 100644 index 0000000..96046b0 --- /dev/null +++ b/dist/models/DeliveryMethodListRequestFilter.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodListRequestFilter = instanceOfDeliveryMethodListRequestFilter; +exports.DeliveryMethodListRequestFilterFromJSON = DeliveryMethodListRequestFilterFromJSON; +exports.DeliveryMethodListRequestFilterFromJSONTyped = DeliveryMethodListRequestFilterFromJSONTyped; +exports.DeliveryMethodListRequestFilterToJSON = DeliveryMethodListRequestFilterToJSON; +/** + * Check if a given object implements the DeliveryMethodListRequestFilter interface. + */ +function instanceOfDeliveryMethodListRequestFilter(value) { + return true; +} +function DeliveryMethodListRequestFilterFromJSON(json) { + return DeliveryMethodListRequestFilterFromJSONTyped(json, false); +} +function DeliveryMethodListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function DeliveryMethodListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'provider_id': value['provider_id'], + 'status': value['status'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/DeliveryMethodListResponseDeliveryMethod.d.ts b/dist/models/DeliveryMethodListResponseDeliveryMethod.d.ts new file mode 100644 index 0000000..66f3645 --- /dev/null +++ b/dist/models/DeliveryMethodListResponseDeliveryMethod.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodListResponseDeliveryMethod + */ +export interface DeliveryMethodListResponseDeliveryMethod { + /** + * Идентификатор продавца. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + company_id?: number; + /** + * Дата и время создания метода доставки. + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + created_at?: string; + /** + * Время, до которого продавцу нужно собрать заказ. + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + cutoff?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + name?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + provider_id?: number; + /** + * Минимальное время на сборку заказа в минутах в соответствии с настройками склада. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + sla_cut_in?: number; + /** + * Статус метода доставки: + * - `NEW` — создан, + * - `EDITED` — редактируется, + * - `ACTIVE` — активный, + * - `DISABLED` — неактивный. + * + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + status?: string; + /** + * Идентификатор услуги по доставке заказа. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + template_id?: number; + /** + * Дата и время последнего обновления метода метода доставки. + * @type {string} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof DeliveryMethodListResponseDeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DeliveryMethodListResponseDeliveryMethod interface. + */ +export declare function instanceOfDeliveryMethodListResponseDeliveryMethod(value: object): value is DeliveryMethodListResponseDeliveryMethod; +export declare function DeliveryMethodListResponseDeliveryMethodFromJSON(json: any): DeliveryMethodListResponseDeliveryMethod; +export declare function DeliveryMethodListResponseDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListResponseDeliveryMethod; +export declare function DeliveryMethodListResponseDeliveryMethodToJSON(value?: DeliveryMethodListResponseDeliveryMethod | null): any; diff --git a/dist/models/DeliveryMethodListResponseDeliveryMethod.js b/dist/models/DeliveryMethodListResponseDeliveryMethod.js new file mode 100644 index 0000000..6da9cfb --- /dev/null +++ b/dist/models/DeliveryMethodListResponseDeliveryMethod.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodListResponseDeliveryMethod = instanceOfDeliveryMethodListResponseDeliveryMethod; +exports.DeliveryMethodListResponseDeliveryMethodFromJSON = DeliveryMethodListResponseDeliveryMethodFromJSON; +exports.DeliveryMethodListResponseDeliveryMethodFromJSONTyped = DeliveryMethodListResponseDeliveryMethodFromJSONTyped; +exports.DeliveryMethodListResponseDeliveryMethodToJSON = DeliveryMethodListResponseDeliveryMethodToJSON; +/** + * Check if a given object implements the DeliveryMethodListResponseDeliveryMethod interface. + */ +function instanceOfDeliveryMethodListResponseDeliveryMethod(value) { + return true; +} +function DeliveryMethodListResponseDeliveryMethodFromJSON(json) { + return DeliveryMethodListResponseDeliveryMethodFromJSONTyped(json, false); +} +function DeliveryMethodListResponseDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_id': json['company_id'] == null ? undefined : json['company_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'cutoff': json['cutoff'] == null ? undefined : json['cutoff'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'sla_cut_in': json['sla_cut_in'] == null ? undefined : json['sla_cut_in'], + 'status': json['status'] == null ? undefined : json['status'], + 'template_id': json['template_id'] == null ? undefined : json['template_id'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function DeliveryMethodListResponseDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_id': value['company_id'], + 'created_at': value['created_at'], + 'cutoff': value['cutoff'], + 'id': value['id'], + 'name': value['name'], + 'provider_id': value['provider_id'], + 'sla_cut_in': value['sla_cut_in'], + 'status': value['status'], + 'template_id': value['template_id'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/DeliveryMethodListV2RequestFilter.d.ts b/dist/models/DeliveryMethodListV2RequestFilter.d.ts new file mode 100644 index 0000000..b6bb21a --- /dev/null +++ b/dist/models/DeliveryMethodListV2RequestFilter.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FilterStatusEnum } from './FilterStatusEnum'; +/** + * Фильтр для поиска методов доставки. + * @export + * @interface DeliveryMethodListV2RequestFilter + */ +export interface DeliveryMethodListV2RequestFilter { + /** + * Идентификаторы методов доставки. + * @type {Array} + * @memberof DeliveryMethodListV2RequestFilter + */ + delivery_method_ids?: Array; + /** + * Идентификаторы служб доставки. + * @type {Array} + * @memberof DeliveryMethodListV2RequestFilter + */ + provider_ids?: Array; + /** + * Статус метода доставки: + * - `NEW` — создан, + * - `EDITED` — редактируется, + * - `ACTIVE` — активный, + * - `DISABLED` — неактивный, + * - `WAITING` — на проверке, + * - `BROKEN` — с ошибкой. + * + * @type {Array} + * @memberof DeliveryMethodListV2RequestFilter + */ + status?: Array; + /** + * Идентификаторы складов. Получите с помощью метода [/v2/warehouse/list](#operation/WarehouseListV2). + * @type {Array} + * @memberof DeliveryMethodListV2RequestFilter + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the DeliveryMethodListV2RequestFilter interface. + */ +export declare function instanceOfDeliveryMethodListV2RequestFilter(value: object): value is DeliveryMethodListV2RequestFilter; +export declare function DeliveryMethodListV2RequestFilterFromJSON(json: any): DeliveryMethodListV2RequestFilter; +export declare function DeliveryMethodListV2RequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListV2RequestFilter; +export declare function DeliveryMethodListV2RequestFilterToJSON(value?: DeliveryMethodListV2RequestFilter | null): any; diff --git a/dist/models/DeliveryMethodListV2RequestFilter.js b/dist/models/DeliveryMethodListV2RequestFilter.js new file mode 100644 index 0000000..8aab592 --- /dev/null +++ b/dist/models/DeliveryMethodListV2RequestFilter.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodListV2RequestFilter = instanceOfDeliveryMethodListV2RequestFilter; +exports.DeliveryMethodListV2RequestFilterFromJSON = DeliveryMethodListV2RequestFilterFromJSON; +exports.DeliveryMethodListV2RequestFilterFromJSONTyped = DeliveryMethodListV2RequestFilterFromJSONTyped; +exports.DeliveryMethodListV2RequestFilterToJSON = DeliveryMethodListV2RequestFilterToJSON; +const FilterStatusEnum_1 = require("./FilterStatusEnum"); +/** + * Check if a given object implements the DeliveryMethodListV2RequestFilter interface. + */ +function instanceOfDeliveryMethodListV2RequestFilter(value) { + return true; +} +function DeliveryMethodListV2RequestFilterFromJSON(json) { + return DeliveryMethodListV2RequestFilterFromJSONTyped(json, false); +} +function DeliveryMethodListV2RequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_ids': json['delivery_method_ids'] == null ? undefined : json['delivery_method_ids'], + 'provider_ids': json['provider_ids'] == null ? undefined : json['provider_ids'], + 'status': json['status'] == null ? undefined : (json['status'].map(FilterStatusEnum_1.FilterStatusEnumFromJSON)), + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function DeliveryMethodListV2RequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_ids': value['delivery_method_ids'], + 'provider_ids': value['provider_ids'], + 'status': value['status'] == null ? undefined : (value['status'].map(FilterStatusEnum_1.FilterStatusEnumToJSON)), + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/DeliveryMethodListV2RequestSortDirEnum.d.ts b/dist/models/DeliveryMethodListV2RequestSortDirEnum.d.ts new file mode 100644 index 0000000..d29935e --- /dev/null +++ b/dist/models/DeliveryMethodListV2RequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const DeliveryMethodListV2RequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type DeliveryMethodListV2RequestSortDirEnum = typeof DeliveryMethodListV2RequestSortDirEnum[keyof typeof DeliveryMethodListV2RequestSortDirEnum]; +export declare function instanceOfDeliveryMethodListV2RequestSortDirEnum(value: any): boolean; +export declare function DeliveryMethodListV2RequestSortDirEnumFromJSON(json: any): DeliveryMethodListV2RequestSortDirEnum; +export declare function DeliveryMethodListV2RequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListV2RequestSortDirEnum; +export declare function DeliveryMethodListV2RequestSortDirEnumToJSON(value?: DeliveryMethodListV2RequestSortDirEnum | null): any; diff --git a/dist/models/DeliveryMethodListV2RequestSortDirEnum.js b/dist/models/DeliveryMethodListV2RequestSortDirEnum.js new file mode 100644 index 0000000..a0c5f28 --- /dev/null +++ b/dist/models/DeliveryMethodListV2RequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryMethodListV2RequestSortDirEnum = void 0; +exports.instanceOfDeliveryMethodListV2RequestSortDirEnum = instanceOfDeliveryMethodListV2RequestSortDirEnum; +exports.DeliveryMethodListV2RequestSortDirEnumFromJSON = DeliveryMethodListV2RequestSortDirEnumFromJSON; +exports.DeliveryMethodListV2RequestSortDirEnumFromJSONTyped = DeliveryMethodListV2RequestSortDirEnumFromJSONTyped; +exports.DeliveryMethodListV2RequestSortDirEnumToJSON = DeliveryMethodListV2RequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.DeliveryMethodListV2RequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfDeliveryMethodListV2RequestSortDirEnum(value) { + for (const key in exports.DeliveryMethodListV2RequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.DeliveryMethodListV2RequestSortDirEnum, key)) { + if (exports.DeliveryMethodListV2RequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function DeliveryMethodListV2RequestSortDirEnumFromJSON(json) { + return DeliveryMethodListV2RequestSortDirEnumFromJSONTyped(json, false); +} +function DeliveryMethodListV2RequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DeliveryMethodListV2RequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/DeliveryMethodListV2ResponseDeliveryMethod.d.ts b/dist/models/DeliveryMethodListV2ResponseDeliveryMethod.d.ts new file mode 100644 index 0000000..1a1c733 --- /dev/null +++ b/dist/models/DeliveryMethodListV2ResponseDeliveryMethod.d.ts @@ -0,0 +1,117 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint } from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint'; +/** + * + * @export + * @interface DeliveryMethodListV2ResponseDeliveryMethod + */ +export interface DeliveryMethodListV2ResponseDeliveryMethod { + /** + * Дата создания метода доставки. + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + created_at?: string; + /** + * Время, до которого продавцу нужно собрать заказ. + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + cutoff?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + id?: number; + /** + * `true`, если доступна быстрая доставка Ozon Express. + * + * @type {boolean} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + is_express?: boolean; + /** + * Название метода доставки. + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + name?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + provider_id?: number; + /** + * Минимальное время на сборку заказа в минутах в соответствии с настройками склада. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + sla_cut_in?: number; + /** + * Статус метода доставки: + * - `NEW` — создан, + * - `EDITED` — редактируется, + * - `ACTIVE` — активный, + * - `DISABLED` — неактивный, + * - `WAITING` — на проверке, + * - `BROKEN` — с ошибкой. + * + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + status?: string; + /** + * Идентификатор услуги по доставке заказа. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + template_id?: number; + /** + * + * @type {WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + tpl_dropoff_point?: WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; + /** + * Тип интеграции со службой доставки: + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `hybrid` — гибридная интеграция. + * + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + tpl_integration_type?: string; + /** + * Дата и время последнего обновления метода метода доставки. + * @type {string} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof DeliveryMethodListV2ResponseDeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the DeliveryMethodListV2ResponseDeliveryMethod interface. + */ +export declare function instanceOfDeliveryMethodListV2ResponseDeliveryMethod(value: object): value is DeliveryMethodListV2ResponseDeliveryMethod; +export declare function DeliveryMethodListV2ResponseDeliveryMethodFromJSON(json: any): DeliveryMethodListV2ResponseDeliveryMethod; +export declare function DeliveryMethodListV2ResponseDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodListV2ResponseDeliveryMethod; +export declare function DeliveryMethodListV2ResponseDeliveryMethodToJSON(value?: DeliveryMethodListV2ResponseDeliveryMethod | null): any; diff --git a/dist/models/DeliveryMethodListV2ResponseDeliveryMethod.js b/dist/models/DeliveryMethodListV2ResponseDeliveryMethod.js new file mode 100644 index 0000000..ea2592c --- /dev/null +++ b/dist/models/DeliveryMethodListV2ResponseDeliveryMethod.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodListV2ResponseDeliveryMethod = instanceOfDeliveryMethodListV2ResponseDeliveryMethod; +exports.DeliveryMethodListV2ResponseDeliveryMethodFromJSON = DeliveryMethodListV2ResponseDeliveryMethodFromJSON; +exports.DeliveryMethodListV2ResponseDeliveryMethodFromJSONTyped = DeliveryMethodListV2ResponseDeliveryMethodFromJSONTyped; +exports.DeliveryMethodListV2ResponseDeliveryMethodToJSON = DeliveryMethodListV2ResponseDeliveryMethodToJSON; +const WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint_1 = require("./WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint"); +/** + * Check if a given object implements the DeliveryMethodListV2ResponseDeliveryMethod interface. + */ +function instanceOfDeliveryMethodListV2ResponseDeliveryMethod(value) { + return true; +} +function DeliveryMethodListV2ResponseDeliveryMethodFromJSON(json) { + return DeliveryMethodListV2ResponseDeliveryMethodFromJSONTyped(json, false); +} +function DeliveryMethodListV2ResponseDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'cutoff': json['cutoff'] == null ? undefined : json['cutoff'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'name': json['name'] == null ? undefined : json['name'], + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'sla_cut_in': json['sla_cut_in'] == null ? undefined : json['sla_cut_in'], + 'status': json['status'] == null ? undefined : json['status'], + 'template_id': json['template_id'] == null ? undefined : json['template_id'], + 'tpl_dropoff_point': json['tpl_dropoff_point'] == null ? undefined : (0, WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint_1.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON)(json['tpl_dropoff_point']), + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function DeliveryMethodListV2ResponseDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'cutoff': value['cutoff'], + 'id': value['id'], + 'is_express': value['is_express'], + 'name': value['name'], + 'provider_id': value['provider_id'], + 'sla_cut_in': value['sla_cut_in'], + 'status': value['status'], + 'template_id': value['template_id'], + 'tpl_dropoff_point': (0, WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint_1.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON)(value['tpl_dropoff_point']), + 'tpl_integration_type': value['tpl_integration_type'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/DeliveryMethodProperties.d.ts b/dist/models/DeliveryMethodProperties.d.ts new file mode 100644 index 0000000..3a11f00 --- /dev/null +++ b/dist/models/DeliveryMethodProperties.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DeliveryMethodProperties + */ +export interface DeliveryMethodProperties { + /** + * `true`, если свойство доступно. + * + * @type {boolean} + * @memberof DeliveryMethodProperties + */ + enabled?: boolean; + /** + * Название свойства. + * @type {string} + * @memberof DeliveryMethodProperties + */ + name?: string; +} +/** + * Check if a given object implements the DeliveryMethodProperties interface. + */ +export declare function instanceOfDeliveryMethodProperties(value: object): value is DeliveryMethodProperties; +export declare function DeliveryMethodPropertiesFromJSON(json: any): DeliveryMethodProperties; +export declare function DeliveryMethodPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodProperties; +export declare function DeliveryMethodPropertiesToJSON(value?: DeliveryMethodProperties | null): any; diff --git a/dist/models/DeliveryMethodProperties.js b/dist/models/DeliveryMethodProperties.js new file mode 100644 index 0000000..5fa19b3 --- /dev/null +++ b/dist/models/DeliveryMethodProperties.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodProperties = instanceOfDeliveryMethodProperties; +exports.DeliveryMethodPropertiesFromJSON = DeliveryMethodPropertiesFromJSON; +exports.DeliveryMethodPropertiesFromJSONTyped = DeliveryMethodPropertiesFromJSONTyped; +exports.DeliveryMethodPropertiesToJSON = DeliveryMethodPropertiesToJSON; +/** + * Check if a given object implements the DeliveryMethodProperties interface. + */ +function instanceOfDeliveryMethodProperties(value) { + return true; +} +function DeliveryMethodPropertiesFromJSON(json) { + return DeliveryMethodPropertiesFromJSONTyped(json, false); +} +function DeliveryMethodPropertiesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function DeliveryMethodPropertiesToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'name': value['name'], + }; +} diff --git a/dist/models/DeliveryMethodTimeslot.d.ts b/dist/models/DeliveryMethodTimeslot.d.ts new file mode 100644 index 0000000..bce1758 --- /dev/null +++ b/dist/models/DeliveryMethodTimeslot.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LogisticTimeslotDateRange } from './LogisticTimeslotDateRange'; +import type { ClientTimeslotDateRange } from './ClientTimeslotDateRange'; +/** + * + * @export + * @interface DeliveryMethodTimeslot + */ +export interface DeliveryMethodTimeslot { + /** + * + * @type {ClientTimeslotDateRange} + * @memberof DeliveryMethodTimeslot + */ + client_date_range?: ClientTimeslotDateRange; + /** + * + * @type {LogisticTimeslotDateRange} + * @memberof DeliveryMethodTimeslot + */ + logistic_date_range?: LogisticTimeslotDateRange; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof DeliveryMethodTimeslot + */ + timeslot_id?: number; +} +/** + * Check if a given object implements the DeliveryMethodTimeslot interface. + */ +export declare function instanceOfDeliveryMethodTimeslot(value: object): value is DeliveryMethodTimeslot; +export declare function DeliveryMethodTimeslotFromJSON(json: any): DeliveryMethodTimeslot; +export declare function DeliveryMethodTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodTimeslot; +export declare function DeliveryMethodTimeslotToJSON(value?: DeliveryMethodTimeslot | null): any; diff --git a/dist/models/DeliveryMethodTimeslot.js b/dist/models/DeliveryMethodTimeslot.js new file mode 100644 index 0000000..557c90a --- /dev/null +++ b/dist/models/DeliveryMethodTimeslot.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodTimeslot = instanceOfDeliveryMethodTimeslot; +exports.DeliveryMethodTimeslotFromJSON = DeliveryMethodTimeslotFromJSON; +exports.DeliveryMethodTimeslotFromJSONTyped = DeliveryMethodTimeslotFromJSONTyped; +exports.DeliveryMethodTimeslotToJSON = DeliveryMethodTimeslotToJSON; +const LogisticTimeslotDateRange_1 = require("./LogisticTimeslotDateRange"); +const ClientTimeslotDateRange_1 = require("./ClientTimeslotDateRange"); +/** + * Check if a given object implements the DeliveryMethodTimeslot interface. + */ +function instanceOfDeliveryMethodTimeslot(value) { + return true; +} +function DeliveryMethodTimeslotFromJSON(json) { + return DeliveryMethodTimeslotFromJSONTyped(json, false); +} +function DeliveryMethodTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'client_date_range': json['client_date_range'] == null ? undefined : (0, ClientTimeslotDateRange_1.ClientTimeslotDateRangeFromJSON)(json['client_date_range']), + 'logistic_date_range': json['logistic_date_range'] == null ? undefined : (0, LogisticTimeslotDateRange_1.LogisticTimeslotDateRangeFromJSON)(json['logistic_date_range']), + 'timeslot_id': json['timeslot_id'] == null ? undefined : json['timeslot_id'], + }; +} +function DeliveryMethodTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'client_date_range': (0, ClientTimeslotDateRange_1.ClientTimeslotDateRangeToJSON)(value['client_date_range']), + 'logistic_date_range': (0, LogisticTimeslotDateRange_1.LogisticTimeslotDateRangeToJSON)(value['logistic_date_range']), + 'timeslot_id': value['timeslot_id'], + }; +} diff --git a/dist/models/DeliveryMethodWorkingHours.d.ts b/dist/models/DeliveryMethodWorkingHours.d.ts new file mode 100644 index 0000000..bca0365 --- /dev/null +++ b/dist/models/DeliveryMethodWorkingHours.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WorkingHoursPeriods } from './WorkingHoursPeriods'; +/** + * + * @export + * @interface DeliveryMethodWorkingHours + */ +export interface DeliveryMethodWorkingHours { + /** + * Дата. + * @type {string} + * @memberof DeliveryMethodWorkingHours + */ + date?: string; + /** + * Периоды работы. + * @type {Array} + * @memberof DeliveryMethodWorkingHours + */ + periods?: Array; +} +/** + * Check if a given object implements the DeliveryMethodWorkingHours interface. + */ +export declare function instanceOfDeliveryMethodWorkingHours(value: object): value is DeliveryMethodWorkingHours; +export declare function DeliveryMethodWorkingHoursFromJSON(json: any): DeliveryMethodWorkingHours; +export declare function DeliveryMethodWorkingHoursFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryMethodWorkingHours; +export declare function DeliveryMethodWorkingHoursToJSON(value?: DeliveryMethodWorkingHours | null): any; diff --git a/dist/models/DeliveryMethodWorkingHours.js b/dist/models/DeliveryMethodWorkingHours.js new file mode 100644 index 0000000..560129c --- /dev/null +++ b/dist/models/DeliveryMethodWorkingHours.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryMethodWorkingHours = instanceOfDeliveryMethodWorkingHours; +exports.DeliveryMethodWorkingHoursFromJSON = DeliveryMethodWorkingHoursFromJSON; +exports.DeliveryMethodWorkingHoursFromJSONTyped = DeliveryMethodWorkingHoursFromJSONTyped; +exports.DeliveryMethodWorkingHoursToJSON = DeliveryMethodWorkingHoursToJSON; +const WorkingHoursPeriods_1 = require("./WorkingHoursPeriods"); +/** + * Check if a given object implements the DeliveryMethodWorkingHours interface. + */ +function instanceOfDeliveryMethodWorkingHours(value) { + return true; +} +function DeliveryMethodWorkingHoursFromJSON(json) { + return DeliveryMethodWorkingHoursFromJSONTyped(json, false); +} +function DeliveryMethodWorkingHoursFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'periods': json['periods'] == null ? undefined : (json['periods'].map(WorkingHoursPeriods_1.WorkingHoursPeriodsFromJSON)), + }; +} +function DeliveryMethodWorkingHoursToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'periods': value['periods'] == null ? undefined : (value['periods'].map(WorkingHoursPeriods_1.WorkingHoursPeriodsToJSON)), + }; +} diff --git a/dist/models/DeliveryPickUp.d.ts b/dist/models/DeliveryPickUp.d.ts new file mode 100644 index 0000000..25dd967 --- /dev/null +++ b/dist/models/DeliveryPickUp.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о самовывозе. + * @export + * @interface DeliveryPickUp + */ +export interface DeliveryPickUp { + /** + * Идентификатор точки выдачи на карте. + * @type {number} + * @memberof DeliveryPickUp + */ + map_point_id: number; +} +/** + * Check if a given object implements the DeliveryPickUp interface. + */ +export declare function instanceOfDeliveryPickUp(value: object): value is DeliveryPickUp; +export declare function DeliveryPickUpFromJSON(json: any): DeliveryPickUp; +export declare function DeliveryPickUpFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryPickUp; +export declare function DeliveryPickUpToJSON(value?: DeliveryPickUp | null): any; diff --git a/dist/models/DeliveryPickUp.js b/dist/models/DeliveryPickUp.js new file mode 100644 index 0000000..dc48fd4 --- /dev/null +++ b/dist/models/DeliveryPickUp.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryPickUp = instanceOfDeliveryPickUp; +exports.DeliveryPickUpFromJSON = DeliveryPickUpFromJSON; +exports.DeliveryPickUpFromJSONTyped = DeliveryPickUpFromJSONTyped; +exports.DeliveryPickUpToJSON = DeliveryPickUpToJSON; +/** + * Check if a given object implements the DeliveryPickUp interface. + */ +function instanceOfDeliveryPickUp(value) { + if (!('map_point_id' in value) || value['map_point_id'] === undefined) + return false; + return true; +} +function DeliveryPickUpFromJSON(json) { + return DeliveryPickUpFromJSONTyped(json, false); +} +function DeliveryPickUpFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'map_point_id': json['map_point_id'], + }; +} +function DeliveryPickUpToJSON(value) { + if (value == null) { + return value; + } + return { + 'map_point_id': value['map_point_id'], + }; +} diff --git a/dist/models/DeliveryPointInfoResponsePointDeliveryMethod.d.ts b/dist/models/DeliveryPointInfoResponsePointDeliveryMethod.d.ts new file mode 100644 index 0000000..ccf400d --- /dev/null +++ b/dist/models/DeliveryPointInfoResponsePointDeliveryMethod.d.ts @@ -0,0 +1,128 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodHolidays } from './DeliveryMethodHolidays'; +import type { DeliveryPointInfoResponsePointDeliveryMethodDeliveryType } from './DeliveryPointInfoResponsePointDeliveryMethodDeliveryType'; +import type { PointDeliveryMethodCoordinates } from './PointDeliveryMethodCoordinates'; +import type { DeliveryMethodProperties } from './DeliveryMethodProperties'; +import type { DeliveryMethodWorkingHours } from './DeliveryMethodWorkingHours'; +import type { DeliveryMethodAddressDetails } from './DeliveryMethodAddressDetails'; +/** + * Метод доставки. + * @export + * @interface DeliveryPointInfoResponsePointDeliveryMethod + */ +export interface DeliveryPointInfoResponsePointDeliveryMethod { + /** + * Адрес. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + address?: string; + /** + * + * @type {DeliveryMethodAddressDetails} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + address_details?: DeliveryMethodAddressDetails; + /** + * + * @type {PointDeliveryMethodCoordinates} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + coordinates?: PointDeliveryMethodCoordinates; + /** + * + * @type {DeliveryPointInfoResponsePointDeliveryMethodDeliveryType} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + delivery_type?: DeliveryPointInfoResponsePointDeliveryMethodDeliveryType; + /** + * Описание. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + description?: string; + /** + * Количество гардеробов. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + fitting_rooms_count?: number; + /** + * Праздничные дни. + * @type {Array} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + holidays?: Array; + /** + * `true`, если праздники заполнены. + * + * @type {boolean} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + holidays_filled?: boolean; + /** + * Изображения. + * @type {Array} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + images?: Array; + /** + * Идентификатор локации. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + location_id?: string; + /** + * Идентификатор точки на карте. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + map_point_id?: number; + /** + * Название. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + name?: string; + /** + * Свойства. + * @type {Array} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + properties?: Array; + /** + * Рейтинг пункта выдачи заказов. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + pvz_rating?: number; + /** + * Период хранения. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + storage_period?: number; + /** + * Часы работы. + * @type {Array} + * @memberof DeliveryPointInfoResponsePointDeliveryMethod + */ + working_hours?: Array; +} +/** + * Check if a given object implements the DeliveryPointInfoResponsePointDeliveryMethod interface. + */ +export declare function instanceOfDeliveryPointInfoResponsePointDeliveryMethod(value: object): value is DeliveryPointInfoResponsePointDeliveryMethod; +export declare function DeliveryPointInfoResponsePointDeliveryMethodFromJSON(json: any): DeliveryPointInfoResponsePointDeliveryMethod; +export declare function DeliveryPointInfoResponsePointDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryPointInfoResponsePointDeliveryMethod; +export declare function DeliveryPointInfoResponsePointDeliveryMethodToJSON(value?: DeliveryPointInfoResponsePointDeliveryMethod | null): any; diff --git a/dist/models/DeliveryPointInfoResponsePointDeliveryMethod.js b/dist/models/DeliveryPointInfoResponsePointDeliveryMethod.js new file mode 100644 index 0000000..e57a80b --- /dev/null +++ b/dist/models/DeliveryPointInfoResponsePointDeliveryMethod.js @@ -0,0 +1,80 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryPointInfoResponsePointDeliveryMethod = instanceOfDeliveryPointInfoResponsePointDeliveryMethod; +exports.DeliveryPointInfoResponsePointDeliveryMethodFromJSON = DeliveryPointInfoResponsePointDeliveryMethodFromJSON; +exports.DeliveryPointInfoResponsePointDeliveryMethodFromJSONTyped = DeliveryPointInfoResponsePointDeliveryMethodFromJSONTyped; +exports.DeliveryPointInfoResponsePointDeliveryMethodToJSON = DeliveryPointInfoResponsePointDeliveryMethodToJSON; +const DeliveryMethodHolidays_1 = require("./DeliveryMethodHolidays"); +const DeliveryPointInfoResponsePointDeliveryMethodDeliveryType_1 = require("./DeliveryPointInfoResponsePointDeliveryMethodDeliveryType"); +const PointDeliveryMethodCoordinates_1 = require("./PointDeliveryMethodCoordinates"); +const DeliveryMethodProperties_1 = require("./DeliveryMethodProperties"); +const DeliveryMethodWorkingHours_1 = require("./DeliveryMethodWorkingHours"); +const DeliveryMethodAddressDetails_1 = require("./DeliveryMethodAddressDetails"); +/** + * Check if a given object implements the DeliveryPointInfoResponsePointDeliveryMethod interface. + */ +function instanceOfDeliveryPointInfoResponsePointDeliveryMethod(value) { + return true; +} +function DeliveryPointInfoResponsePointDeliveryMethodFromJSON(json) { + return DeliveryPointInfoResponsePointDeliveryMethodFromJSONTyped(json, false); +} +function DeliveryPointInfoResponsePointDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'address_details': json['address_details'] == null ? undefined : (0, DeliveryMethodAddressDetails_1.DeliveryMethodAddressDetailsFromJSON)(json['address_details']), + 'coordinates': json['coordinates'] == null ? undefined : (0, PointDeliveryMethodCoordinates_1.PointDeliveryMethodCoordinatesFromJSON)(json['coordinates']), + 'delivery_type': json['delivery_type'] == null ? undefined : (0, DeliveryPointInfoResponsePointDeliveryMethodDeliveryType_1.DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON)(json['delivery_type']), + 'description': json['description'] == null ? undefined : json['description'], + 'fitting_rooms_count': json['fitting_rooms_count'] == null ? undefined : json['fitting_rooms_count'], + 'holidays': json['holidays'] == null ? undefined : (json['holidays'].map(DeliveryMethodHolidays_1.DeliveryMethodHolidaysFromJSON)), + 'holidays_filled': json['holidays_filled'] == null ? undefined : json['holidays_filled'], + 'images': json['images'] == null ? undefined : json['images'], + 'location_id': json['location_id'] == null ? undefined : json['location_id'], + 'map_point_id': json['map_point_id'] == null ? undefined : json['map_point_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'properties': json['properties'] == null ? undefined : (json['properties'].map(DeliveryMethodProperties_1.DeliveryMethodPropertiesFromJSON)), + 'pvz_rating': json['pvz_rating'] == null ? undefined : json['pvz_rating'], + 'storage_period': json['storage_period'] == null ? undefined : json['storage_period'], + 'working_hours': json['working_hours'] == null ? undefined : (json['working_hours'].map(DeliveryMethodWorkingHours_1.DeliveryMethodWorkingHoursFromJSON)), + }; +} +function DeliveryPointInfoResponsePointDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'address_details': (0, DeliveryMethodAddressDetails_1.DeliveryMethodAddressDetailsToJSON)(value['address_details']), + 'coordinates': (0, PointDeliveryMethodCoordinates_1.PointDeliveryMethodCoordinatesToJSON)(value['coordinates']), + 'delivery_type': (0, DeliveryPointInfoResponsePointDeliveryMethodDeliveryType_1.DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON)(value['delivery_type']), + 'description': value['description'], + 'fitting_rooms_count': value['fitting_rooms_count'], + 'holidays': value['holidays'] == null ? undefined : (value['holidays'].map(DeliveryMethodHolidays_1.DeliveryMethodHolidaysToJSON)), + 'holidays_filled': value['holidays_filled'], + 'images': value['images'], + 'location_id': value['location_id'], + 'map_point_id': value['map_point_id'], + 'name': value['name'], + 'properties': value['properties'] == null ? undefined : (value['properties'].map(DeliveryMethodProperties_1.DeliveryMethodPropertiesToJSON)), + 'pvz_rating': value['pvz_rating'], + 'storage_period': value['storage_period'], + 'working_hours': value['working_hours'] == null ? undefined : (value['working_hours'].map(DeliveryMethodWorkingHours_1.DeliveryMethodWorkingHoursToJSON)), + }; +} diff --git a/dist/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.d.ts b/dist/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.d.ts new file mode 100644 index 0000000..0724ed1 --- /dev/null +++ b/dist/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ доставки. + * @export + * @interface DeliveryPointInfoResponsePointDeliveryMethodDeliveryType + */ +export interface DeliveryPointInfoResponsePointDeliveryMethodDeliveryType { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof DeliveryPointInfoResponsePointDeliveryMethodDeliveryType + */ + id?: number; + /** + * Название способа доставки. + * @type {string} + * @memberof DeliveryPointInfoResponsePointDeliveryMethodDeliveryType + */ + name?: string; +} +/** + * Check if a given object implements the DeliveryPointInfoResponsePointDeliveryMethodDeliveryType interface. + */ +export declare function instanceOfDeliveryPointInfoResponsePointDeliveryMethodDeliveryType(value: object): value is DeliveryPointInfoResponsePointDeliveryMethodDeliveryType; +export declare function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON(json: any): DeliveryPointInfoResponsePointDeliveryMethodDeliveryType; +export declare function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryPointInfoResponsePointDeliveryMethodDeliveryType; +export declare function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON(value?: DeliveryPointInfoResponsePointDeliveryMethodDeliveryType | null): any; diff --git a/dist/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.js b/dist/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.js new file mode 100644 index 0000000..e114bdb --- /dev/null +++ b/dist/models/DeliveryPointInfoResponsePointDeliveryMethodDeliveryType.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryPointInfoResponsePointDeliveryMethodDeliveryType = instanceOfDeliveryPointInfoResponsePointDeliveryMethodDeliveryType; +exports.DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON = DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON; +exports.DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSONTyped = DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSONTyped; +exports.DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON = DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON; +/** + * Check if a given object implements the DeliveryPointInfoResponsePointDeliveryMethodDeliveryType interface. + */ +function instanceOfDeliveryPointInfoResponsePointDeliveryMethodDeliveryType(value) { + return true; +} +function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSON(json) { + return DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSONTyped(json, false); +} +function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function DeliveryPointInfoResponsePointDeliveryMethodDeliveryTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/DeliveryPointListResponsePointCoordinates.d.ts b/dist/models/DeliveryPointListResponsePointCoordinates.d.ts new file mode 100644 index 0000000..3968a86 --- /dev/null +++ b/dist/models/DeliveryPointListResponsePointCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface DeliveryPointListResponsePointCoordinates + */ +export interface DeliveryPointListResponsePointCoordinates { + /** + * Широта. + * @type {number} + * @memberof DeliveryPointListResponsePointCoordinates + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryPointListResponsePointCoordinates + */ + _long?: number; +} +/** + * Check if a given object implements the DeliveryPointListResponsePointCoordinates interface. + */ +export declare function instanceOfDeliveryPointListResponsePointCoordinates(value: object): value is DeliveryPointListResponsePointCoordinates; +export declare function DeliveryPointListResponsePointCoordinatesFromJSON(json: any): DeliveryPointListResponsePointCoordinates; +export declare function DeliveryPointListResponsePointCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryPointListResponsePointCoordinates; +export declare function DeliveryPointListResponsePointCoordinatesToJSON(value?: DeliveryPointListResponsePointCoordinates | null): any; diff --git a/dist/models/DeliveryPointListResponsePointCoordinates.js b/dist/models/DeliveryPointListResponsePointCoordinates.js new file mode 100644 index 0000000..9980938 --- /dev/null +++ b/dist/models/DeliveryPointListResponsePointCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryPointListResponsePointCoordinates = instanceOfDeliveryPointListResponsePointCoordinates; +exports.DeliveryPointListResponsePointCoordinatesFromJSON = DeliveryPointListResponsePointCoordinatesFromJSON; +exports.DeliveryPointListResponsePointCoordinatesFromJSONTyped = DeliveryPointListResponsePointCoordinatesFromJSONTyped; +exports.DeliveryPointListResponsePointCoordinatesToJSON = DeliveryPointListResponsePointCoordinatesToJSON; +/** + * Check if a given object implements the DeliveryPointListResponsePointCoordinates interface. + */ +function instanceOfDeliveryPointListResponsePointCoordinates(value) { + return true; +} +function DeliveryPointListResponsePointCoordinatesFromJSON(json) { + return DeliveryPointListResponsePointCoordinatesFromJSONTyped(json, false); +} +function DeliveryPointListResponsePointCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +function DeliveryPointListResponsePointCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/models/DeliveryTypeCourier.d.ts b/dist/models/DeliveryTypeCourier.d.ts new file mode 100644 index 0000000..398abb4 --- /dev/null +++ b/dist/models/DeliveryTypeCourier.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryTypeCourierCoordinates } from './DeliveryTypeCourierCoordinates'; +/** + * Доставка курьером. + * @export + * @interface DeliveryTypeCourier + */ +export interface DeliveryTypeCourier { + /** + * + * @type {DeliveryTypeCourierCoordinates} + * @memberof DeliveryTypeCourier + */ + coordinates?: DeliveryTypeCourierCoordinates; +} +/** + * Check if a given object implements the DeliveryTypeCourier interface. + */ +export declare function instanceOfDeliveryTypeCourier(value: object): value is DeliveryTypeCourier; +export declare function DeliveryTypeCourierFromJSON(json: any): DeliveryTypeCourier; +export declare function DeliveryTypeCourierFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryTypeCourier; +export declare function DeliveryTypeCourierToJSON(value?: DeliveryTypeCourier | null): any; diff --git a/dist/models/DeliveryTypeCourier.js b/dist/models/DeliveryTypeCourier.js new file mode 100644 index 0000000..e8c2c6d --- /dev/null +++ b/dist/models/DeliveryTypeCourier.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryTypeCourier = instanceOfDeliveryTypeCourier; +exports.DeliveryTypeCourierFromJSON = DeliveryTypeCourierFromJSON; +exports.DeliveryTypeCourierFromJSONTyped = DeliveryTypeCourierFromJSONTyped; +exports.DeliveryTypeCourierToJSON = DeliveryTypeCourierToJSON; +const DeliveryTypeCourierCoordinates_1 = require("./DeliveryTypeCourierCoordinates"); +/** + * Check if a given object implements the DeliveryTypeCourier interface. + */ +function instanceOfDeliveryTypeCourier(value) { + return true; +} +function DeliveryTypeCourierFromJSON(json) { + return DeliveryTypeCourierFromJSONTyped(json, false); +} +function DeliveryTypeCourierFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'] == null ? undefined : (0, DeliveryTypeCourierCoordinates_1.DeliveryTypeCourierCoordinatesFromJSON)(json['coordinates']), + }; +} +function DeliveryTypeCourierToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': (0, DeliveryTypeCourierCoordinates_1.DeliveryTypeCourierCoordinatesToJSON)(value['coordinates']), + }; +} diff --git a/dist/models/DeliveryTypeCourierCoordinates.d.ts b/dist/models/DeliveryTypeCourierCoordinates.d.ts new file mode 100644 index 0000000..0f717af --- /dev/null +++ b/dist/models/DeliveryTypeCourierCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты точки доставки. + * @export + * @interface DeliveryTypeCourierCoordinates + */ +export interface DeliveryTypeCourierCoordinates { + /** + * Широта. + * @type {number} + * @memberof DeliveryTypeCourierCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof DeliveryTypeCourierCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the DeliveryTypeCourierCoordinates interface. + */ +export declare function instanceOfDeliveryTypeCourierCoordinates(value: object): value is DeliveryTypeCourierCoordinates; +export declare function DeliveryTypeCourierCoordinatesFromJSON(json: any): DeliveryTypeCourierCoordinates; +export declare function DeliveryTypeCourierCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryTypeCourierCoordinates; +export declare function DeliveryTypeCourierCoordinatesToJSON(value?: DeliveryTypeCourierCoordinates | null): any; diff --git a/dist/models/DeliveryTypeCourierCoordinates.js b/dist/models/DeliveryTypeCourierCoordinates.js new file mode 100644 index 0000000..b234837 --- /dev/null +++ b/dist/models/DeliveryTypeCourierCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryTypeCourierCoordinates = instanceOfDeliveryTypeCourierCoordinates; +exports.DeliveryTypeCourierCoordinatesFromJSON = DeliveryTypeCourierCoordinatesFromJSON; +exports.DeliveryTypeCourierCoordinatesFromJSONTyped = DeliveryTypeCourierCoordinatesFromJSONTyped; +exports.DeliveryTypeCourierCoordinatesToJSON = DeliveryTypeCourierCoordinatesToJSON; +/** + * Check if a given object implements the DeliveryTypeCourierCoordinates interface. + */ +function instanceOfDeliveryTypeCourierCoordinates(value) { + return true; +} +function DeliveryTypeCourierCoordinatesFromJSON(json) { + return DeliveryTypeCourierCoordinatesFromJSONTyped(json, false); +} +function DeliveryTypeCourierCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function DeliveryTypeCourierCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/DeliveryTypeEnum.d.ts b/dist/models/DeliveryTypeEnum.d.ts new file mode 100644 index 0000000..e773302 --- /dev/null +++ b/dist/models/DeliveryTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип доставки: + * - `COURIER` — курьером; + * - `PVZ` — в пункт выдачи заказов; + * - `POSTAMAT` — в постамат. + * + * @export + */ +export declare const DeliveryTypeEnum: { + readonly COURIER: "COURIER"; + readonly PVZ: "PVZ"; + readonly POSTAMAT: "POSTAMAT"; +}; +export type DeliveryTypeEnum = typeof DeliveryTypeEnum[keyof typeof DeliveryTypeEnum]; +export declare function instanceOfDeliveryTypeEnum(value: any): boolean; +export declare function DeliveryTypeEnumFromJSON(json: any): DeliveryTypeEnum; +export declare function DeliveryTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryTypeEnum; +export declare function DeliveryTypeEnumToJSON(value?: DeliveryTypeEnum | null): any; diff --git a/dist/models/DeliveryTypeEnum.js b/dist/models/DeliveryTypeEnum.js new file mode 100644 index 0000000..c5280ba --- /dev/null +++ b/dist/models/DeliveryTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeliveryTypeEnum = void 0; +exports.instanceOfDeliveryTypeEnum = instanceOfDeliveryTypeEnum; +exports.DeliveryTypeEnumFromJSON = DeliveryTypeEnumFromJSON; +exports.DeliveryTypeEnumFromJSONTyped = DeliveryTypeEnumFromJSONTyped; +exports.DeliveryTypeEnumToJSON = DeliveryTypeEnumToJSON; +/** + * Тип доставки: + * - `COURIER` — курьером; + * - `PVZ` — в пункт выдачи заказов; + * - `POSTAMAT` — в постамат. + * + * @export + */ +exports.DeliveryTypeEnum = { + COURIER: 'COURIER', + PVZ: 'PVZ', + POSTAMAT: 'POSTAMAT' +}; +function instanceOfDeliveryTypeEnum(value) { + for (const key in exports.DeliveryTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.DeliveryTypeEnum, key)) { + if (exports.DeliveryTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function DeliveryTypeEnumFromJSON(json) { + return DeliveryTypeEnumFromJSONTyped(json, false); +} +function DeliveryTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DeliveryTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/DeliveryTypePickUp.d.ts b/dist/models/DeliveryTypePickUp.d.ts new file mode 100644 index 0000000..3848e90 --- /dev/null +++ b/dist/models/DeliveryTypePickUp.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Самовывоз. + * @export + * @interface DeliveryTypePickUp + */ +export interface DeliveryTypePickUp { + /** + * Идентификатор пункта самовывоза. + * @type {number} + * @memberof DeliveryTypePickUp + */ + map_point_id?: number; +} +/** + * Check if a given object implements the DeliveryTypePickUp interface. + */ +export declare function instanceOfDeliveryTypePickUp(value: object): value is DeliveryTypePickUp; +export declare function DeliveryTypePickUpFromJSON(json: any): DeliveryTypePickUp; +export declare function DeliveryTypePickUpFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryTypePickUp; +export declare function DeliveryTypePickUpToJSON(value?: DeliveryTypePickUp | null): any; diff --git a/dist/models/DeliveryTypePickUp.js b/dist/models/DeliveryTypePickUp.js new file mode 100644 index 0000000..1d79c32 --- /dev/null +++ b/dist/models/DeliveryTypePickUp.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDeliveryTypePickUp = instanceOfDeliveryTypePickUp; +exports.DeliveryTypePickUpFromJSON = DeliveryTypePickUpFromJSON; +exports.DeliveryTypePickUpFromJSONTyped = DeliveryTypePickUpFromJSONTyped; +exports.DeliveryTypePickUpToJSON = DeliveryTypePickUpToJSON; +/** + * Check if a given object implements the DeliveryTypePickUp interface. + */ +function instanceOfDeliveryTypePickUp(value) { + return true; +} +function DeliveryTypePickUpFromJSON(json) { + return DeliveryTypePickUpFromJSONTyped(json, false); +} +function DeliveryTypePickUpFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'map_point_id': json['map_point_id'] == null ? undefined : json['map_point_id'], + }; +} +function DeliveryTypePickUpToJSON(value) { + if (value == null) { + return value; + } + return { + 'map_point_id': value['map_point_id'], + }; +} diff --git a/dist/models/DetailsDeliveryDetails.d.ts b/dist/models/DetailsDeliveryDetails.d.ts new file mode 100644 index 0000000..ae26851 --- /dev/null +++ b/dist/models/DetailsDeliveryDetails.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DetailsServices } from './DetailsServices'; +/** + * Заказы. + * @export + * @interface DetailsDeliveryDetails + */ +export interface DetailsDeliveryDetails { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsDeliveryDetails + */ + total?: number; + /** + * Сумма, на которую выкуплено товаров с учётом комиссий. + * @type {number} + * @memberof DetailsDeliveryDetails + */ + amount?: number; + /** + * + * @type {DetailsServices} + * @memberof DetailsDeliveryDetails + */ + delivery_services?: DetailsServices; +} +/** + * Check if a given object implements the DetailsDeliveryDetails interface. + */ +export declare function instanceOfDetailsDeliveryDetails(value: object): value is DetailsDeliveryDetails; +export declare function DetailsDeliveryDetailsFromJSON(json: any): DetailsDeliveryDetails; +export declare function DetailsDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsDeliveryDetails; +export declare function DetailsDeliveryDetailsToJSON(value?: DetailsDeliveryDetails | null): any; diff --git a/dist/models/DetailsDeliveryDetails.js b/dist/models/DetailsDeliveryDetails.js new file mode 100644 index 0000000..0269143 --- /dev/null +++ b/dist/models/DetailsDeliveryDetails.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailsDeliveryDetails = instanceOfDetailsDeliveryDetails; +exports.DetailsDeliveryDetailsFromJSON = DetailsDeliveryDetailsFromJSON; +exports.DetailsDeliveryDetailsFromJSONTyped = DetailsDeliveryDetailsFromJSONTyped; +exports.DetailsDeliveryDetailsToJSON = DetailsDeliveryDetailsToJSON; +const DetailsServices_1 = require("./DetailsServices"); +/** + * Check if a given object implements the DetailsDeliveryDetails interface. + */ +function instanceOfDetailsDeliveryDetails(value) { + return true; +} +function DetailsDeliveryDetailsFromJSON(json) { + return DetailsDeliveryDetailsFromJSONTyped(json, false); +} +function DetailsDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'delivery_services': json['delivery_services'] == null ? undefined : (0, DetailsServices_1.DetailsServicesFromJSON)(json['delivery_services']), + }; +} +function DetailsDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'amount': value['amount'], + 'delivery_services': (0, DetailsServices_1.DetailsServicesToJSON)(value['delivery_services']), + }; +} diff --git a/dist/models/DetailsOthers.d.ts b/dist/models/DetailsOthers.d.ts new file mode 100644 index 0000000..e2c79d8 --- /dev/null +++ b/dist/models/DetailsOthers.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseDetailsOthers } from './FinanceCashFlowStatementListResponseDetailsOthers'; +/** + * Компенсация и прочие начисления. + * @export + * @interface DetailsOthers + */ +export interface DetailsOthers { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsOthers + */ + total?: number; + /** + * Детализация. + * @type {Array} + * @memberof DetailsOthers + */ + items?: Array; +} +/** + * Check if a given object implements the DetailsOthers interface. + */ +export declare function instanceOfDetailsOthers(value: object): value is DetailsOthers; +export declare function DetailsOthersFromJSON(json: any): DetailsOthers; +export declare function DetailsOthersFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsOthers; +export declare function DetailsOthersToJSON(value?: DetailsOthers | null): any; diff --git a/dist/models/DetailsOthers.js b/dist/models/DetailsOthers.js new file mode 100644 index 0000000..d94f1f9 --- /dev/null +++ b/dist/models/DetailsOthers.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailsOthers = instanceOfDetailsOthers; +exports.DetailsOthersFromJSON = DetailsOthersFromJSON; +exports.DetailsOthersFromJSONTyped = DetailsOthersFromJSONTyped; +exports.DetailsOthersToJSON = DetailsOthersToJSON; +const FinanceCashFlowStatementListResponseDetailsOthers_1 = require("./FinanceCashFlowStatementListResponseDetailsOthers"); +/** + * Check if a given object implements the DetailsOthers interface. + */ +function instanceOfDetailsOthers(value) { + return true; +} +function DetailsOthersFromJSON(json) { + return DetailsOthersFromJSONTyped(json, false); +} +function DetailsOthersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'items': json['items'] == null ? undefined : (json['items'].map(FinanceCashFlowStatementListResponseDetailsOthers_1.FinanceCashFlowStatementListResponseDetailsOthersFromJSON)), + }; +} +function DetailsOthersToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'items': value['items'] == null ? undefined : (value['items'].map(FinanceCashFlowStatementListResponseDetailsOthers_1.FinanceCashFlowStatementListResponseDetailsOthersToJSON)), + }; +} diff --git a/dist/models/DetailsPayment.d.ts b/dist/models/DetailsPayment.d.ts new file mode 100644 index 0000000..af4dc4c --- /dev/null +++ b/dist/models/DetailsPayment.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Выплачено за период. + * @export + * @interface DetailsPayment + */ +export interface DetailsPayment { + /** + * Валюта. + * @type {string} + * @memberof DetailsPayment + */ + currency_code?: string; + /** + * Сумма выплаты. + * @type {number} + * @memberof DetailsPayment + */ + payment?: number; +} +/** + * Check if a given object implements the DetailsPayment interface. + */ +export declare function instanceOfDetailsPayment(value: object): value is DetailsPayment; +export declare function DetailsPaymentFromJSON(json: any): DetailsPayment; +export declare function DetailsPaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsPayment; +export declare function DetailsPaymentToJSON(value?: DetailsPayment | null): any; diff --git a/dist/models/DetailsPayment.js b/dist/models/DetailsPayment.js new file mode 100644 index 0000000..46ac528 --- /dev/null +++ b/dist/models/DetailsPayment.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailsPayment = instanceOfDetailsPayment; +exports.DetailsPaymentFromJSON = DetailsPaymentFromJSON; +exports.DetailsPaymentFromJSONTyped = DetailsPaymentFromJSONTyped; +exports.DetailsPaymentToJSON = DetailsPaymentToJSON; +/** + * Check if a given object implements the DetailsPayment interface. + */ +function instanceOfDetailsPayment(value) { + return true; +} +function DetailsPaymentFromJSON(json) { + return DetailsPaymentFromJSONTyped(json, false); +} +function DetailsPaymentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'payment': json['payment'] == null ? undefined : json['payment'], + }; +} +function DetailsPaymentToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'payment': value['payment'], + }; +} diff --git a/dist/models/DetailsReturnDetails.d.ts b/dist/models/DetailsReturnDetails.d.ts new file mode 100644 index 0000000..c3c8c15 --- /dev/null +++ b/dist/models/DetailsReturnDetails.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DetailsReturns } from './DetailsReturns'; +/** + * Возвраты и отмены. + * @export + * @interface DetailsReturnDetails + */ +export interface DetailsReturnDetails { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsReturnDetails + */ + total?: number; + /** + * Сумма, на которую получено возвратов с учётом комиссий. + * @type {number} + * @memberof DetailsReturnDetails + */ + amount?: number; + /** + * + * @type {DetailsReturns} + * @memberof DetailsReturnDetails + */ + return_services?: DetailsReturns; +} +/** + * Check if a given object implements the DetailsReturnDetails interface. + */ +export declare function instanceOfDetailsReturnDetails(value: object): value is DetailsReturnDetails; +export declare function DetailsReturnDetailsFromJSON(json: any): DetailsReturnDetails; +export declare function DetailsReturnDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsReturnDetails; +export declare function DetailsReturnDetailsToJSON(value?: DetailsReturnDetails | null): any; diff --git a/dist/models/DetailsReturnDetails.js b/dist/models/DetailsReturnDetails.js new file mode 100644 index 0000000..1e08451 --- /dev/null +++ b/dist/models/DetailsReturnDetails.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailsReturnDetails = instanceOfDetailsReturnDetails; +exports.DetailsReturnDetailsFromJSON = DetailsReturnDetailsFromJSON; +exports.DetailsReturnDetailsFromJSONTyped = DetailsReturnDetailsFromJSONTyped; +exports.DetailsReturnDetailsToJSON = DetailsReturnDetailsToJSON; +const DetailsReturns_1 = require("./DetailsReturns"); +/** + * Check if a given object implements the DetailsReturnDetails interface. + */ +function instanceOfDetailsReturnDetails(value) { + return true; +} +function DetailsReturnDetailsFromJSON(json) { + return DetailsReturnDetailsFromJSONTyped(json, false); +} +function DetailsReturnDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'return_services': json['return_services'] == null ? undefined : (0, DetailsReturns_1.DetailsReturnsFromJSON)(json['return_services']), + }; +} +function DetailsReturnDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'amount': value['amount'], + 'return_services': (0, DetailsReturns_1.DetailsReturnsToJSON)(value['return_services']), + }; +} diff --git a/dist/models/DetailsReturns.d.ts b/dist/models/DetailsReturns.d.ts new file mode 100644 index 0000000..b3c3fca --- /dev/null +++ b/dist/models/DetailsReturns.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseReturnService } from './FinanceCashFlowStatementListResponseReturnService'; +/** + * Плата за возвраты и отмены. + * @export + * @interface DetailsReturns + */ +export interface DetailsReturns { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsReturns + */ + total?: number; + /** + * + * @type {FinanceCashFlowStatementListResponseReturnService} + * @memberof DetailsReturns + */ + items?: FinanceCashFlowStatementListResponseReturnService; +} +/** + * Check if a given object implements the DetailsReturns interface. + */ +export declare function instanceOfDetailsReturns(value: object): value is DetailsReturns; +export declare function DetailsReturnsFromJSON(json: any): DetailsReturns; +export declare function DetailsReturnsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsReturns; +export declare function DetailsReturnsToJSON(value?: DetailsReturns | null): any; diff --git a/dist/models/DetailsReturns.js b/dist/models/DetailsReturns.js new file mode 100644 index 0000000..5b679be --- /dev/null +++ b/dist/models/DetailsReturns.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailsReturns = instanceOfDetailsReturns; +exports.DetailsReturnsFromJSON = DetailsReturnsFromJSON; +exports.DetailsReturnsFromJSONTyped = DetailsReturnsFromJSONTyped; +exports.DetailsReturnsToJSON = DetailsReturnsToJSON; +const FinanceCashFlowStatementListResponseReturnService_1 = require("./FinanceCashFlowStatementListResponseReturnService"); +/** + * Check if a given object implements the DetailsReturns interface. + */ +function instanceOfDetailsReturns(value) { + return true; +} +function DetailsReturnsFromJSON(json) { + return DetailsReturnsFromJSONTyped(json, false); +} +function DetailsReturnsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'items': json['items'] == null ? undefined : (0, FinanceCashFlowStatementListResponseReturnService_1.FinanceCashFlowStatementListResponseReturnServiceFromJSON)(json['items']), + }; +} +function DetailsReturnsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'items': (0, FinanceCashFlowStatementListResponseReturnService_1.FinanceCashFlowStatementListResponseReturnServiceToJSON)(value['items']), + }; +} diff --git a/dist/models/DetailsRfbsDetails.d.ts b/dist/models/DetailsRfbsDetails.d.ts new file mode 100644 index 0000000..6eb44da --- /dev/null +++ b/dist/models/DetailsRfbsDetails.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Перечисления по схеме rFBS. + * @export + * @interface DetailsRfbsDetails + */ +export interface DetailsRfbsDetails { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsRfbsDetails + */ + total?: number; + /** + * Перечисления от покупателей. + * @type {number} + * @memberof DetailsRfbsDetails + */ + transfer_delivery?: number; + /** + * Возврат перечислений покупателям. + * @type {number} + * @memberof DetailsRfbsDetails + */ + transfer_delivery_return?: number; + /** + * Компенсация перечислений за доставку. + * @type {number} + * @memberof DetailsRfbsDetails + */ + compensation_delivery_return?: number; + /** + * Перечисления частичных компенсаций покупателям. + * @type {number} + * @memberof DetailsRfbsDetails + */ + partial_compensation?: number; + /** + * Возврат частичных компенсаций. + * @type {number} + * @memberof DetailsRfbsDetails + */ + partial_compensation_return?: number; +} +/** + * Check if a given object implements the DetailsRfbsDetails interface. + */ +export declare function instanceOfDetailsRfbsDetails(value: object): value is DetailsRfbsDetails; +export declare function DetailsRfbsDetailsFromJSON(json: any): DetailsRfbsDetails; +export declare function DetailsRfbsDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsRfbsDetails; +export declare function DetailsRfbsDetailsToJSON(value?: DetailsRfbsDetails | null): any; diff --git a/dist/models/DetailsRfbsDetails.js b/dist/models/DetailsRfbsDetails.js new file mode 100644 index 0000000..b8808cd --- /dev/null +++ b/dist/models/DetailsRfbsDetails.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailsRfbsDetails = instanceOfDetailsRfbsDetails; +exports.DetailsRfbsDetailsFromJSON = DetailsRfbsDetailsFromJSON; +exports.DetailsRfbsDetailsFromJSONTyped = DetailsRfbsDetailsFromJSONTyped; +exports.DetailsRfbsDetailsToJSON = DetailsRfbsDetailsToJSON; +/** + * Check if a given object implements the DetailsRfbsDetails interface. + */ +function instanceOfDetailsRfbsDetails(value) { + return true; +} +function DetailsRfbsDetailsFromJSON(json) { + return DetailsRfbsDetailsFromJSONTyped(json, false); +} +function DetailsRfbsDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'transfer_delivery': json['transfer_delivery'] == null ? undefined : json['transfer_delivery'], + 'transfer_delivery_return': json['transfer_delivery_return'] == null ? undefined : json['transfer_delivery_return'], + 'compensation_delivery_return': json['compensation_delivery_return'] == null ? undefined : json['compensation_delivery_return'], + 'partial_compensation': json['partial_compensation'] == null ? undefined : json['partial_compensation'], + 'partial_compensation_return': json['partial_compensation_return'] == null ? undefined : json['partial_compensation_return'], + }; +} +function DetailsRfbsDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'transfer_delivery': value['transfer_delivery'], + 'transfer_delivery_return': value['transfer_delivery_return'], + 'compensation_delivery_return': value['compensation_delivery_return'], + 'partial_compensation': value['partial_compensation'], + 'partial_compensation_return': value['partial_compensation_return'], + }; +} diff --git a/dist/models/DetailsService.d.ts b/dist/models/DetailsService.d.ts new file mode 100644 index 0000000..8a6922f --- /dev/null +++ b/dist/models/DetailsService.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseService } from './FinanceCashFlowStatementListResponseService'; +/** + * Услуги. + * @export + * @interface DetailsService + */ +export interface DetailsService { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsService + */ + total?: number; + /** + * Детализация. + * @type {Array} + * @memberof DetailsService + */ + items?: Array; +} +/** + * Check if a given object implements the DetailsService interface. + */ +export declare function instanceOfDetailsService(value: object): value is DetailsService; +export declare function DetailsServiceFromJSON(json: any): DetailsService; +export declare function DetailsServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsService; +export declare function DetailsServiceToJSON(value?: DetailsService | null): any; diff --git a/dist/models/DetailsService.js b/dist/models/DetailsService.js new file mode 100644 index 0000000..92eb502 --- /dev/null +++ b/dist/models/DetailsService.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailsService = instanceOfDetailsService; +exports.DetailsServiceFromJSON = DetailsServiceFromJSON; +exports.DetailsServiceFromJSONTyped = DetailsServiceFromJSONTyped; +exports.DetailsServiceToJSON = DetailsServiceToJSON; +const FinanceCashFlowStatementListResponseService_1 = require("./FinanceCashFlowStatementListResponseService"); +/** + * Check if a given object implements the DetailsService interface. + */ +function instanceOfDetailsService(value) { + return true; +} +function DetailsServiceFromJSON(json) { + return DetailsServiceFromJSONTyped(json, false); +} +function DetailsServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'items': json['items'] == null ? undefined : (json['items'].map(FinanceCashFlowStatementListResponseService_1.FinanceCashFlowStatementListResponseServiceFromJSON)), + }; +} +function DetailsServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'items': value['items'] == null ? undefined : (value['items'].map(FinanceCashFlowStatementListResponseService_1.FinanceCashFlowStatementListResponseServiceToJSON)), + }; +} diff --git a/dist/models/DetailsServices.d.ts b/dist/models/DetailsServices.d.ts new file mode 100644 index 0000000..c17f804 --- /dev/null +++ b/dist/models/DetailsServices.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseDeliveryService } from './FinanceCashFlowStatementListResponseDeliveryService'; +/** + * Плата за обработку и доставку. + * @export + * @interface DetailsServices + */ +export interface DetailsServices { + /** + * Общая сумма. + * @type {number} + * @memberof DetailsServices + */ + total?: number; + /** + * + * @type {FinanceCashFlowStatementListResponseDeliveryService} + * @memberof DetailsServices + */ + items?: FinanceCashFlowStatementListResponseDeliveryService; +} +/** + * Check if a given object implements the DetailsServices interface. + */ +export declare function instanceOfDetailsServices(value: object): value is DetailsServices; +export declare function DetailsServicesFromJSON(json: any): DetailsServices; +export declare function DetailsServicesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailsServices; +export declare function DetailsServicesToJSON(value?: DetailsServices | null): any; diff --git a/dist/models/DetailsServices.js b/dist/models/DetailsServices.js new file mode 100644 index 0000000..897d044 --- /dev/null +++ b/dist/models/DetailsServices.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailsServices = instanceOfDetailsServices; +exports.DetailsServicesFromJSON = DetailsServicesFromJSON; +exports.DetailsServicesFromJSONTyped = DetailsServicesFromJSONTyped; +exports.DetailsServicesToJSON = DetailsServicesToJSON; +const FinanceCashFlowStatementListResponseDeliveryService_1 = require("./FinanceCashFlowStatementListResponseDeliveryService"); +/** + * Check if a given object implements the DetailsServices interface. + */ +function instanceOfDetailsServices(value) { + return true; +} +function DetailsServicesFromJSON(json) { + return DetailsServicesFromJSONTyped(json, false); +} +function DetailsServicesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': json['total'] == null ? undefined : json['total'], + 'items': json['items'] == null ? undefined : (0, FinanceCashFlowStatementListResponseDeliveryService_1.FinanceCashFlowStatementListResponseDeliveryServiceFromJSON)(json['items']), + }; +} +function DetailsServicesToJSON(value) { + if (value == null) { + return value; + } + return { + 'total': value['total'], + 'items': (0, FinanceCashFlowStatementListResponseDeliveryService_1.FinanceCashFlowStatementListResponseDeliveryServiceToJSON)(value['items']), + }; +} diff --git a/dist/models/DirEnum.d.ts b/dist/models/DirEnum.d.ts new file mode 100644 index 0000000..2e9a02f --- /dev/null +++ b/dist/models/DirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export declare const DirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type DirEnum = typeof DirEnum[keyof typeof DirEnum]; +export declare function instanceOfDirEnum(value: any): boolean; +export declare function DirEnumFromJSON(json: any): DirEnum; +export declare function DirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirEnum; +export declare function DirEnumToJSON(value?: DirEnum | null): any; diff --git a/dist/models/DirEnum.js b/dist/models/DirEnum.js new file mode 100644 index 0000000..48fbd3a --- /dev/null +++ b/dist/models/DirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DirEnum = void 0; +exports.instanceOfDirEnum = instanceOfDirEnum; +exports.DirEnumFromJSON = DirEnumFromJSON; +exports.DirEnumFromJSONTyped = DirEnumFromJSONTyped; +exports.DirEnumToJSON = DirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +exports.DirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfDirEnum(value) { + for (const key in exports.DirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.DirEnum, key)) { + if (exports.DirEnum[key] === value) { + return true; + } + } + } + return false; +} +function DirEnumFromJSON(json) { + return DirEnumFromJSONTyped(json, false); +} +function DirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DirEnumToJSON(value) { + return value; +} diff --git a/dist/models/DirectDetailsBySellerDetails.d.ts b/dist/models/DirectDetailsBySellerDetails.d.ts new file mode 100644 index 0000000..f7277de --- /dev/null +++ b/dist/models/DirectDetailsBySellerDetails.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки силами продавца. + * @export + * @interface DirectDetailsBySellerDetails + */ +export interface DirectDetailsBySellerDetails { + /** + * ФИО водителя. + * @type {string} + * @memberof DirectDetailsBySellerDetails + */ + driver_name?: string; + /** + * Регистрационный номер транспорта. + * @type {string} + * @memberof DirectDetailsBySellerDetails + */ + vehicle_registration_number?: string; + /** + * Тип транспорта. + * @type {string} + * @memberof DirectDetailsBySellerDetails + */ + vehicle_type?: string; +} +/** + * Check if a given object implements the DirectDetailsBySellerDetails interface. + */ +export declare function instanceOfDirectDetailsBySellerDetails(value: object): value is DirectDetailsBySellerDetails; +export declare function DirectDetailsBySellerDetailsFromJSON(json: any): DirectDetailsBySellerDetails; +export declare function DirectDetailsBySellerDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectDetailsBySellerDetails; +export declare function DirectDetailsBySellerDetailsToJSON(value?: DirectDetailsBySellerDetails | null): any; diff --git a/dist/models/DirectDetailsBySellerDetails.js b/dist/models/DirectDetailsBySellerDetails.js new file mode 100644 index 0000000..0762da3 --- /dev/null +++ b/dist/models/DirectDetailsBySellerDetails.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDirectDetailsBySellerDetails = instanceOfDirectDetailsBySellerDetails; +exports.DirectDetailsBySellerDetailsFromJSON = DirectDetailsBySellerDetailsFromJSON; +exports.DirectDetailsBySellerDetailsFromJSONTyped = DirectDetailsBySellerDetailsFromJSONTyped; +exports.DirectDetailsBySellerDetailsToJSON = DirectDetailsBySellerDetailsToJSON; +/** + * Check if a given object implements the DirectDetailsBySellerDetails interface. + */ +function instanceOfDirectDetailsBySellerDetails(value) { + return true; +} +function DirectDetailsBySellerDetailsFromJSON(json) { + return DirectDetailsBySellerDetailsFromJSONTyped(json, false); +} +function DirectDetailsBySellerDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'] == null ? undefined : json['driver_name'], + 'vehicle_registration_number': json['vehicle_registration_number'] == null ? undefined : json['vehicle_registration_number'], + 'vehicle_type': json['vehicle_type'] == null ? undefined : json['vehicle_type'], + }; +} +function DirectDetailsBySellerDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'vehicle_registration_number': value['vehicle_registration_number'], + 'vehicle_type': value['vehicle_type'], + }; +} diff --git a/dist/models/DirectDetailsByTplDetails.d.ts b/dist/models/DirectDetailsByTplDetails.d.ts new file mode 100644 index 0000000..f23c6de --- /dev/null +++ b/dist/models/DirectDetailsByTplDetails.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки сторонней транспортной компанией. + * @export + * @interface DirectDetailsByTplDetails + */ +export interface DirectDetailsByTplDetails { + /** + * Трек-номер отправления. + * @type {string} + * @memberof DirectDetailsByTplDetails + */ + tracking_number?: string; + /** + * Название транспортной компании. + * @type {string} + * @memberof DirectDetailsByTplDetails + */ + transport_company_name?: string; +} +/** + * Check if a given object implements the DirectDetailsByTplDetails interface. + */ +export declare function instanceOfDirectDetailsByTplDetails(value: object): value is DirectDetailsByTplDetails; +export declare function DirectDetailsByTplDetailsFromJSON(json: any): DirectDetailsByTplDetails; +export declare function DirectDetailsByTplDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectDetailsByTplDetails; +export declare function DirectDetailsByTplDetailsToJSON(value?: DirectDetailsByTplDetails | null): any; diff --git a/dist/models/DirectDetailsByTplDetails.js b/dist/models/DirectDetailsByTplDetails.js new file mode 100644 index 0000000..9323128 --- /dev/null +++ b/dist/models/DirectDetailsByTplDetails.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDirectDetailsByTplDetails = instanceOfDirectDetailsByTplDetails; +exports.DirectDetailsByTplDetailsFromJSON = DirectDetailsByTplDetailsFromJSON; +exports.DirectDetailsByTplDetailsFromJSONTyped = DirectDetailsByTplDetailsFromJSONTyped; +exports.DirectDetailsByTplDetailsToJSON = DirectDetailsByTplDetailsToJSON; +/** + * Check if a given object implements the DirectDetailsByTplDetails interface. + */ +function instanceOfDirectDetailsByTplDetails(value) { + return true; +} +function DirectDetailsByTplDetailsFromJSON(json) { + return DirectDetailsByTplDetailsFromJSONTyped(json, false); +} +function DirectDetailsByTplDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'transport_company_name': json['transport_company_name'] == null ? undefined : json['transport_company_name'], + }; +} +function DirectDetailsByTplDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'tracking_number': value['tracking_number'], + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/models/DirectDetailsTimeslotDetails.d.ts b/dist/models/DirectDetailsTimeslotDetails.d.ts new file mode 100644 index 0000000..bfc44bf --- /dev/null +++ b/dist/models/DirectDetailsTimeslotDetails.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1fbpTimeslot } from './V1fbpTimeslot'; +/** + * Детали интервала поставки. + * @export + * @interface DirectDetailsTimeslotDetails + */ +export interface DirectDetailsTimeslotDetails { + /** + * + * @type {V1fbpTimeslot} + * @memberof DirectDetailsTimeslotDetails + */ + timeslot?: V1fbpTimeslot; + /** + * Идентификатор бронирования интервала поставки. + * @type {string} + * @memberof DirectDetailsTimeslotDetails + */ + timeslot_reservation_id?: string; +} +/** + * Check if a given object implements the DirectDetailsTimeslotDetails interface. + */ +export declare function instanceOfDirectDetailsTimeslotDetails(value: object): value is DirectDetailsTimeslotDetails; +export declare function DirectDetailsTimeslotDetailsFromJSON(json: any): DirectDetailsTimeslotDetails; +export declare function DirectDetailsTimeslotDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectDetailsTimeslotDetails; +export declare function DirectDetailsTimeslotDetailsToJSON(value?: DirectDetailsTimeslotDetails | null): any; diff --git a/dist/models/DirectDetailsTimeslotDetails.js b/dist/models/DirectDetailsTimeslotDetails.js new file mode 100644 index 0000000..0ac13d5 --- /dev/null +++ b/dist/models/DirectDetailsTimeslotDetails.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDirectDetailsTimeslotDetails = instanceOfDirectDetailsTimeslotDetails; +exports.DirectDetailsTimeslotDetailsFromJSON = DirectDetailsTimeslotDetailsFromJSON; +exports.DirectDetailsTimeslotDetailsFromJSONTyped = DirectDetailsTimeslotDetailsFromJSONTyped; +exports.DirectDetailsTimeslotDetailsToJSON = DirectDetailsTimeslotDetailsToJSON; +const V1fbpTimeslot_1 = require("./V1fbpTimeslot"); +/** + * Check if a given object implements the DirectDetailsTimeslotDetails interface. + */ +function instanceOfDirectDetailsTimeslotDetails(value) { + return true; +} +function DirectDetailsTimeslotDetailsFromJSON(json) { + return DirectDetailsTimeslotDetailsFromJSONTyped(json, false); +} +function DirectDetailsTimeslotDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot': json['timeslot'] == null ? undefined : (0, V1fbpTimeslot_1.V1fbpTimeslotFromJSON)(json['timeslot']), + 'timeslot_reservation_id': json['timeslot_reservation_id'] == null ? undefined : json['timeslot_reservation_id'], + }; +} +function DirectDetailsTimeslotDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot': (0, V1fbpTimeslot_1.V1fbpTimeslotToJSON)(value['timeslot']), + 'timeslot_reservation_id': value['timeslot_reservation_id'], + }; +} diff --git a/dist/models/DraftClusterListResponseLogisticCluster.d.ts b/dist/models/DraftClusterListResponseLogisticCluster.d.ts new file mode 100644 index 0000000..4a02f42 --- /dev/null +++ b/dist/models/DraftClusterListResponseLogisticCluster.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftClusterListResponseWarehouse } from './V1DraftClusterListResponseWarehouse'; +/** + * + * @export + * @interface DraftClusterListResponseLogisticCluster + */ +export interface DraftClusterListResponseLogisticCluster { + /** + * Склады. + * @type {Array} + * @memberof DraftClusterListResponseLogisticCluster + */ + warehouses?: Array; +} +/** + * Check if a given object implements the DraftClusterListResponseLogisticCluster interface. + */ +export declare function instanceOfDraftClusterListResponseLogisticCluster(value: object): value is DraftClusterListResponseLogisticCluster; +export declare function DraftClusterListResponseLogisticClusterFromJSON(json: any): DraftClusterListResponseLogisticCluster; +export declare function DraftClusterListResponseLogisticClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftClusterListResponseLogisticCluster; +export declare function DraftClusterListResponseLogisticClusterToJSON(value?: DraftClusterListResponseLogisticCluster | null): any; diff --git a/dist/models/DraftClusterListResponseLogisticCluster.js b/dist/models/DraftClusterListResponseLogisticCluster.js new file mode 100644 index 0000000..658bc66 --- /dev/null +++ b/dist/models/DraftClusterListResponseLogisticCluster.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDraftClusterListResponseLogisticCluster = instanceOfDraftClusterListResponseLogisticCluster; +exports.DraftClusterListResponseLogisticClusterFromJSON = DraftClusterListResponseLogisticClusterFromJSON; +exports.DraftClusterListResponseLogisticClusterFromJSONTyped = DraftClusterListResponseLogisticClusterFromJSONTyped; +exports.DraftClusterListResponseLogisticClusterToJSON = DraftClusterListResponseLogisticClusterToJSON; +const V1DraftClusterListResponseWarehouse_1 = require("./V1DraftClusterListResponseWarehouse"); +/** + * Check if a given object implements the DraftClusterListResponseLogisticCluster interface. + */ +function instanceOfDraftClusterListResponseLogisticCluster(value) { + return true; +} +function DraftClusterListResponseLogisticClusterFromJSON(json) { + return DraftClusterListResponseLogisticClusterFromJSONTyped(json, false); +} +function DraftClusterListResponseLogisticClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(V1DraftClusterListResponseWarehouse_1.V1DraftClusterListResponseWarehouseFromJSON)), + }; +} +function DraftClusterListResponseLogisticClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(V1DraftClusterListResponseWarehouse_1.V1DraftClusterListResponseWarehouseToJSON)), + }; +} diff --git a/dist/models/DraftCreateCommonResponseError.d.ts b/dist/models/DraftCreateCommonResponseError.d.ts new file mode 100644 index 0000000..7ab2036 --- /dev/null +++ b/dist/models/DraftCreateCommonResponseError.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorErrorMessageEnum } from './ErrorErrorMessageEnum'; +import type { ErrorErrorReasonEnum } from './ErrorErrorReasonEnum'; +import type { DraftCreateCommonResponseErrorItemsValidation } from './DraftCreateCommonResponseErrorItemsValidation'; +/** + * + * @export + * @interface DraftCreateCommonResponseError + */ +export interface DraftCreateCommonResponseError { + /** + * + * @type {ErrorErrorMessageEnum} + * @memberof DraftCreateCommonResponseError + */ + error_message?: ErrorErrorMessageEnum; + /** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `ALL_ITEMS_COUNT_INVALID` — в товарном составе больше 5000 SKU; + * - `ALL_ITEMS_VOLUME_INVALID` — в товарном составе объём товаров больше 100 000 литров; + * - `ALL_BUNDLES_EMPTY` — товарные составы пустые; + * - `HAS_EMPTY_BUNDLE` — минимум 1 товарный состав в черновике пустой; + * - `DISABLED_FOR_SELLER` — отгрузка курьером отключена для продавца; + * - `NO_ACTIVE_SELLER_WAREHOUSE` — нет активного склада продавца; + * - `INVALID_SELLER_WAREHOUSE` — склад продавца недоступен. + * + * @type {Array} + * @memberof DraftCreateCommonResponseError + */ + error_reasons?: Array; + /** + * Ошибки валидации. + * @type {Array} + * @memberof DraftCreateCommonResponseError + */ + items_validation?: Array; + /** + * Список идентификаторов кластера размещения. + * @type {Array} + * @memberof DraftCreateCommonResponseError + */ + macrolocal_cluster_ids?: Array; + /** + * Сообщение об ошибке. + * @type {string} + * @memberof DraftCreateCommonResponseError + */ + message?: string; + /** + * Список идентификаторов товаров — SKU. + * @type {Array} + * @memberof DraftCreateCommonResponseError + */ + skus?: Array; +} +/** + * Check if a given object implements the DraftCreateCommonResponseError interface. + */ +export declare function instanceOfDraftCreateCommonResponseError(value: object): value is DraftCreateCommonResponseError; +export declare function DraftCreateCommonResponseErrorFromJSON(json: any): DraftCreateCommonResponseError; +export declare function DraftCreateCommonResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateCommonResponseError; +export declare function DraftCreateCommonResponseErrorToJSON(value?: DraftCreateCommonResponseError | null): any; diff --git a/dist/models/DraftCreateCommonResponseError.js b/dist/models/DraftCreateCommonResponseError.js new file mode 100644 index 0000000..1d84dba --- /dev/null +++ b/dist/models/DraftCreateCommonResponseError.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDraftCreateCommonResponseError = instanceOfDraftCreateCommonResponseError; +exports.DraftCreateCommonResponseErrorFromJSON = DraftCreateCommonResponseErrorFromJSON; +exports.DraftCreateCommonResponseErrorFromJSONTyped = DraftCreateCommonResponseErrorFromJSONTyped; +exports.DraftCreateCommonResponseErrorToJSON = DraftCreateCommonResponseErrorToJSON; +const ErrorErrorMessageEnum_1 = require("./ErrorErrorMessageEnum"); +const ErrorErrorReasonEnum_1 = require("./ErrorErrorReasonEnum"); +const DraftCreateCommonResponseErrorItemsValidation_1 = require("./DraftCreateCommonResponseErrorItemsValidation"); +/** + * Check if a given object implements the DraftCreateCommonResponseError interface. + */ +function instanceOfDraftCreateCommonResponseError(value) { + return true; +} +function DraftCreateCommonResponseErrorFromJSON(json) { + return DraftCreateCommonResponseErrorFromJSONTyped(json, false); +} +function DraftCreateCommonResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : (0, ErrorErrorMessageEnum_1.ErrorErrorMessageEnumFromJSON)(json['error_message']), + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(ErrorErrorReasonEnum_1.ErrorErrorReasonEnumFromJSON)), + 'items_validation': json['items_validation'] == null ? undefined : (json['items_validation'].map(DraftCreateCommonResponseErrorItemsValidation_1.DraftCreateCommonResponseErrorItemsValidationFromJSON)), + 'macrolocal_cluster_ids': json['macrolocal_cluster_ids'] == null ? undefined : json['macrolocal_cluster_ids'], + 'message': json['message'] == null ? undefined : json['message'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +function DraftCreateCommonResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': (0, ErrorErrorMessageEnum_1.ErrorErrorMessageEnumToJSON)(value['error_message']), + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(ErrorErrorReasonEnum_1.ErrorErrorReasonEnumToJSON)), + 'items_validation': value['items_validation'] == null ? undefined : (value['items_validation'].map(DraftCreateCommonResponseErrorItemsValidation_1.DraftCreateCommonResponseErrorItemsValidationToJSON)), + 'macrolocal_cluster_ids': value['macrolocal_cluster_ids'], + 'message': value['message'], + 'skus': value['skus'], + }; +} diff --git a/dist/models/DraftCreateCommonResponseErrorItemsValidation.d.ts b/dist/models/DraftCreateCommonResponseErrorItemsValidation.d.ts new file mode 100644 index 0000000..2649216 --- /dev/null +++ b/dist/models/DraftCreateCommonResponseErrorItemsValidation.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemsValidationRejectedItems } from './ItemsValidationRejectedItems'; +/** + * + * @export + * @interface DraftCreateCommonResponseErrorItemsValidation + */ +export interface DraftCreateCommonResponseErrorItemsValidation { + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof DraftCreateCommonResponseErrorItemsValidation + */ + macrolocal_cluster_id?: number; + /** + * Отклонённые товары. + * @type {Array} + * @memberof DraftCreateCommonResponseErrorItemsValidation + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the DraftCreateCommonResponseErrorItemsValidation interface. + */ +export declare function instanceOfDraftCreateCommonResponseErrorItemsValidation(value: object): value is DraftCreateCommonResponseErrorItemsValidation; +export declare function DraftCreateCommonResponseErrorItemsValidationFromJSON(json: any): DraftCreateCommonResponseErrorItemsValidation; +export declare function DraftCreateCommonResponseErrorItemsValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateCommonResponseErrorItemsValidation; +export declare function DraftCreateCommonResponseErrorItemsValidationToJSON(value?: DraftCreateCommonResponseErrorItemsValidation | null): any; diff --git a/dist/models/DraftCreateCommonResponseErrorItemsValidation.js b/dist/models/DraftCreateCommonResponseErrorItemsValidation.js new file mode 100644 index 0000000..793a460 --- /dev/null +++ b/dist/models/DraftCreateCommonResponseErrorItemsValidation.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDraftCreateCommonResponseErrorItemsValidation = instanceOfDraftCreateCommonResponseErrorItemsValidation; +exports.DraftCreateCommonResponseErrorItemsValidationFromJSON = DraftCreateCommonResponseErrorItemsValidationFromJSON; +exports.DraftCreateCommonResponseErrorItemsValidationFromJSONTyped = DraftCreateCommonResponseErrorItemsValidationFromJSONTyped; +exports.DraftCreateCommonResponseErrorItemsValidationToJSON = DraftCreateCommonResponseErrorItemsValidationToJSON; +const ItemsValidationRejectedItems_1 = require("./ItemsValidationRejectedItems"); +/** + * Check if a given object implements the DraftCreateCommonResponseErrorItemsValidation interface. + */ +function instanceOfDraftCreateCommonResponseErrorItemsValidation(value) { + return true; +} +function DraftCreateCommonResponseErrorItemsValidationFromJSON(json) { + return DraftCreateCommonResponseErrorItemsValidationFromJSONTyped(json, false); +} +function DraftCreateCommonResponseErrorItemsValidationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(ItemsValidationRejectedItems_1.ItemsValidationRejectedItemsFromJSON)), + }; +} +function DraftCreateCommonResponseErrorItemsValidationToJSON(value) { + if (value == null) { + return value; + } + return { + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(ItemsValidationRejectedItems_1.ItemsValidationRejectedItemsToJSON)), + }; +} diff --git a/dist/models/DraftCreateInfoResponseCluster.d.ts b/dist/models/DraftCreateInfoResponseCluster.d.ts new file mode 100644 index 0000000..cad19f3 --- /dev/null +++ b/dist/models/DraftCreateInfoResponseCluster.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ClusterWarehouse } from './ClusterWarehouse'; +/** + * + * @export + * @interface DraftCreateInfoResponseCluster + */ +export interface DraftCreateInfoResponseCluster { + /** + * Название кластера. + * @type {string} + * @memberof DraftCreateInfoResponseCluster + */ + cluster_name?: string; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof DraftCreateInfoResponseCluster + */ + macrolocal_cluster_id?: number; + /** + * Тип поставки: + * - `CROSSDOCK` — кросс-докинг; + * - `DIRECT` — прямая; + * - `MULTI_CLUSTER` — для нескольких кластеров. + * + * @type {string} + * @memberof DraftCreateInfoResponseCluster + */ + supply_type?: DraftCreateInfoResponseClusterSupplyTypeEnum; + /** + * Склады размещения. + * @type {Array} + * @memberof DraftCreateInfoResponseCluster + */ + warehouses?: Array; +} +/** + * @export + */ +export declare const DraftCreateInfoResponseClusterSupplyTypeEnum: { + readonly CROSSDOCK: "CROSSDOCK"; + readonly DIRECT: "DIRECT"; + readonly MULTI_CLUSTER: "MULTI_CLUSTER"; +}; +export type DraftCreateInfoResponseClusterSupplyTypeEnum = typeof DraftCreateInfoResponseClusterSupplyTypeEnum[keyof typeof DraftCreateInfoResponseClusterSupplyTypeEnum]; +/** + * Check if a given object implements the DraftCreateInfoResponseCluster interface. + */ +export declare function instanceOfDraftCreateInfoResponseCluster(value: object): value is DraftCreateInfoResponseCluster; +export declare function DraftCreateInfoResponseClusterFromJSON(json: any): DraftCreateInfoResponseCluster; +export declare function DraftCreateInfoResponseClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateInfoResponseCluster; +export declare function DraftCreateInfoResponseClusterToJSON(value?: DraftCreateInfoResponseCluster | null): any; diff --git a/dist/models/DraftCreateInfoResponseCluster.js b/dist/models/DraftCreateInfoResponseCluster.js new file mode 100644 index 0000000..f2066a4 --- /dev/null +++ b/dist/models/DraftCreateInfoResponseCluster.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DraftCreateInfoResponseClusterSupplyTypeEnum = void 0; +exports.instanceOfDraftCreateInfoResponseCluster = instanceOfDraftCreateInfoResponseCluster; +exports.DraftCreateInfoResponseClusterFromJSON = DraftCreateInfoResponseClusterFromJSON; +exports.DraftCreateInfoResponseClusterFromJSONTyped = DraftCreateInfoResponseClusterFromJSONTyped; +exports.DraftCreateInfoResponseClusterToJSON = DraftCreateInfoResponseClusterToJSON; +const ClusterWarehouse_1 = require("./ClusterWarehouse"); +/** + * @export + */ +exports.DraftCreateInfoResponseClusterSupplyTypeEnum = { + CROSSDOCK: 'CROSSDOCK', + DIRECT: 'DIRECT', + MULTI_CLUSTER: 'MULTI_CLUSTER' +}; +/** + * Check if a given object implements the DraftCreateInfoResponseCluster interface. + */ +function instanceOfDraftCreateInfoResponseCluster(value) { + return true; +} +function DraftCreateInfoResponseClusterFromJSON(json) { + return DraftCreateInfoResponseClusterFromJSONTyped(json, false); +} +function DraftCreateInfoResponseClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_name': json['cluster_name'] == null ? undefined : json['cluster_name'], + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'supply_type': json['supply_type'] == null ? undefined : json['supply_type'], + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(ClusterWarehouse_1.ClusterWarehouseFromJSON)), + }; +} +function DraftCreateInfoResponseClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_name': value['cluster_name'], + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'supply_type': value['supply_type'], + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(ClusterWarehouse_1.ClusterWarehouseToJSON)), + }; +} diff --git a/dist/models/DraftCreateInfoResponseError.d.ts b/dist/models/DraftCreateInfoResponseError.d.ts new file mode 100644 index 0000000..d837c85 --- /dev/null +++ b/dist/models/DraftCreateInfoResponseError.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftCreateInfoResponseErrorErrorReasonEnum } from './DraftCreateInfoResponseErrorErrorReasonEnum'; +import type { ErrorErrorMessageEnum } from './ErrorErrorMessageEnum'; +import type { ErrorItemsValidation } from './ErrorItemsValidation'; +/** + * + * @export + * @interface DraftCreateInfoResponseError + */ +export interface DraftCreateInfoResponseError { + /** + * + * @type {ErrorErrorMessageEnum} + * @memberof DraftCreateInfoResponseError + */ + error_message?: ErrorErrorMessageEnum; + /** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `ALL_ITEMS_COUNT_INVALID` — в товарном составе больше 5000 SKU; + * - `ALL_ITEMS_VOLUME_INVALID` — в товарном составе объём товаров больше 100 000 литров; + * - `ALL_BUNDLES_EMPTY` — товарные составы пустые; + * - `HAS_EMPTY_BUNDLE` — минимум 1 товарный состав в черновике пустой; + * - `DISABLED_FOR_SELLER` — отгрузка курьером отключена для продавца; + * - `NO_ACTIVE_SELLER_WAREHOUSE` — нет хотя бы 1 активного склада продавца; + * - `INVALID_SELLER_WAREHOUSE` — склад продавца недоступен; + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — товарный состав слишком маленький для точки отгрузки. + * + * @type {Array} + * @memberof DraftCreateInfoResponseError + */ + error_reasons?: Array; + /** + * Ошибки валидации. + * @type {Array} + * @memberof DraftCreateInfoResponseError + */ + items_validation?: Array; + /** + * Идентификаторы кластеров размещения. + * @type {Array} + * @memberof DraftCreateInfoResponseError + */ + macrolocal_cluster_ids?: Array; + /** + * Сообщение об ошибке. + * @type {string} + * @memberof DraftCreateInfoResponseError + */ + message?: string; + /** + * Список идентификаторов товаров — SKU. + * @type {Array} + * @memberof DraftCreateInfoResponseError + */ + skus?: Array; +} +/** + * Check if a given object implements the DraftCreateInfoResponseError interface. + */ +export declare function instanceOfDraftCreateInfoResponseError(value: object): value is DraftCreateInfoResponseError; +export declare function DraftCreateInfoResponseErrorFromJSON(json: any): DraftCreateInfoResponseError; +export declare function DraftCreateInfoResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateInfoResponseError; +export declare function DraftCreateInfoResponseErrorToJSON(value?: DraftCreateInfoResponseError | null): any; diff --git a/dist/models/DraftCreateInfoResponseError.js b/dist/models/DraftCreateInfoResponseError.js new file mode 100644 index 0000000..c4b4b03 --- /dev/null +++ b/dist/models/DraftCreateInfoResponseError.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDraftCreateInfoResponseError = instanceOfDraftCreateInfoResponseError; +exports.DraftCreateInfoResponseErrorFromJSON = DraftCreateInfoResponseErrorFromJSON; +exports.DraftCreateInfoResponseErrorFromJSONTyped = DraftCreateInfoResponseErrorFromJSONTyped; +exports.DraftCreateInfoResponseErrorToJSON = DraftCreateInfoResponseErrorToJSON; +const DraftCreateInfoResponseErrorErrorReasonEnum_1 = require("./DraftCreateInfoResponseErrorErrorReasonEnum"); +const ErrorErrorMessageEnum_1 = require("./ErrorErrorMessageEnum"); +const ErrorItemsValidation_1 = require("./ErrorItemsValidation"); +/** + * Check if a given object implements the DraftCreateInfoResponseError interface. + */ +function instanceOfDraftCreateInfoResponseError(value) { + return true; +} +function DraftCreateInfoResponseErrorFromJSON(json) { + return DraftCreateInfoResponseErrorFromJSONTyped(json, false); +} +function DraftCreateInfoResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : (0, ErrorErrorMessageEnum_1.ErrorErrorMessageEnumFromJSON)(json['error_message']), + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(DraftCreateInfoResponseErrorErrorReasonEnum_1.DraftCreateInfoResponseErrorErrorReasonEnumFromJSON)), + 'items_validation': json['items_validation'] == null ? undefined : (json['items_validation'].map(ErrorItemsValidation_1.ErrorItemsValidationFromJSON)), + 'macrolocal_cluster_ids': json['macrolocal_cluster_ids'] == null ? undefined : json['macrolocal_cluster_ids'], + 'message': json['message'] == null ? undefined : json['message'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +function DraftCreateInfoResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': (0, ErrorErrorMessageEnum_1.ErrorErrorMessageEnumToJSON)(value['error_message']), + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(DraftCreateInfoResponseErrorErrorReasonEnum_1.DraftCreateInfoResponseErrorErrorReasonEnumToJSON)), + 'items_validation': value['items_validation'] == null ? undefined : (value['items_validation'].map(ErrorItemsValidation_1.ErrorItemsValidationToJSON)), + 'macrolocal_cluster_ids': value['macrolocal_cluster_ids'], + 'message': value['message'], + 'skus': value['skus'], + }; +} diff --git a/dist/models/DraftCreateInfoResponseErrorErrorReasonEnum.d.ts b/dist/models/DraftCreateInfoResponseErrorErrorReasonEnum.d.ts new file mode 100644 index 0000000..d17d8ec --- /dev/null +++ b/dist/models/DraftCreateInfoResponseErrorErrorReasonEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const DraftCreateInfoResponseErrorErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER: "ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER"; + readonly ALL_ITEMS_REJECTED: "ALL_ITEMS_REJECTED"; + readonly NOT_AVAILABLE_CLUSTERS: "NOT_AVAILABLE_CLUSTERS"; + readonly ALL_ITEMS_COUNT_INVALID: "ALL_ITEMS_COUNT_INVALID"; + readonly ALL_ITEMS_VOLUME_INVALID: "ALL_ITEMS_VOLUME_INVALID"; + readonly ALL_BUNDLES_EMPTY: "ALL_BUNDLES_EMPTY"; + readonly HAS_EMPTY_BUNDLE: "HAS_EMPTY_BUNDLE"; + readonly DISABLED_FOR_SELLER: "DISABLED_FOR_SELLER"; + readonly NO_ACTIVE_SELLER_WAREHOUSE: "NO_ACTIVE_SELLER_WAREHOUSE"; + readonly INVALID_SELLER_WAREHOUSE: "INVALID_SELLER_WAREHOUSE"; + readonly MINIMUM_VOLUME_IN_LITRES_INVALID: "MINIMUM_VOLUME_IN_LITRES_INVALID"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type DraftCreateInfoResponseErrorErrorReasonEnum = typeof DraftCreateInfoResponseErrorErrorReasonEnum[keyof typeof DraftCreateInfoResponseErrorErrorReasonEnum]; +export declare function instanceOfDraftCreateInfoResponseErrorErrorReasonEnum(value: any): boolean; +export declare function DraftCreateInfoResponseErrorErrorReasonEnumFromJSON(json: any): DraftCreateInfoResponseErrorErrorReasonEnum; +export declare function DraftCreateInfoResponseErrorErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftCreateInfoResponseErrorErrorReasonEnum; +export declare function DraftCreateInfoResponseErrorErrorReasonEnumToJSON(value?: DraftCreateInfoResponseErrorErrorReasonEnum | null): any; diff --git a/dist/models/DraftCreateInfoResponseErrorErrorReasonEnum.js b/dist/models/DraftCreateInfoResponseErrorErrorReasonEnum.js new file mode 100644 index 0000000..c721bd1 --- /dev/null +++ b/dist/models/DraftCreateInfoResponseErrorErrorReasonEnum.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DraftCreateInfoResponseErrorErrorReasonEnum = void 0; +exports.instanceOfDraftCreateInfoResponseErrorErrorReasonEnum = instanceOfDraftCreateInfoResponseErrorErrorReasonEnum; +exports.DraftCreateInfoResponseErrorErrorReasonEnumFromJSON = DraftCreateInfoResponseErrorErrorReasonEnumFromJSON; +exports.DraftCreateInfoResponseErrorErrorReasonEnumFromJSONTyped = DraftCreateInfoResponseErrorErrorReasonEnumFromJSONTyped; +exports.DraftCreateInfoResponseErrorErrorReasonEnumToJSON = DraftCreateInfoResponseErrorErrorReasonEnumToJSON; +/** + * + * @export + */ +exports.DraftCreateInfoResponseErrorErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER: 'ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER', + ALL_ITEMS_REJECTED: 'ALL_ITEMS_REJECTED', + NOT_AVAILABLE_CLUSTERS: 'NOT_AVAILABLE_CLUSTERS', + ALL_ITEMS_COUNT_INVALID: 'ALL_ITEMS_COUNT_INVALID', + ALL_ITEMS_VOLUME_INVALID: 'ALL_ITEMS_VOLUME_INVALID', + ALL_BUNDLES_EMPTY: 'ALL_BUNDLES_EMPTY', + HAS_EMPTY_BUNDLE: 'HAS_EMPTY_BUNDLE', + DISABLED_FOR_SELLER: 'DISABLED_FOR_SELLER', + NO_ACTIVE_SELLER_WAREHOUSE: 'NO_ACTIVE_SELLER_WAREHOUSE', + INVALID_SELLER_WAREHOUSE: 'INVALID_SELLER_WAREHOUSE', + MINIMUM_VOLUME_IN_LITRES_INVALID: 'MINIMUM_VOLUME_IN_LITRES_INVALID', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfDraftCreateInfoResponseErrorErrorReasonEnum(value) { + for (const key in exports.DraftCreateInfoResponseErrorErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.DraftCreateInfoResponseErrorErrorReasonEnum, key)) { + if (exports.DraftCreateInfoResponseErrorErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function DraftCreateInfoResponseErrorErrorReasonEnumFromJSON(json) { + return DraftCreateInfoResponseErrorErrorReasonEnumFromJSONTyped(json, false); +} +function DraftCreateInfoResponseErrorErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DraftCreateInfoResponseErrorErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/DraftGetWarehouseFboListResponseCoordinate.d.ts b/dist/models/DraftGetWarehouseFboListResponseCoordinate.d.ts new file mode 100644 index 0000000..2b10ddf --- /dev/null +++ b/dist/models/DraftGetWarehouseFboListResponseCoordinate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты склада. + * @export + * @interface DraftGetWarehouseFboListResponseCoordinate + */ +export interface DraftGetWarehouseFboListResponseCoordinate { + /** + * Широта. + * @type {number} + * @memberof DraftGetWarehouseFboListResponseCoordinate + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof DraftGetWarehouseFboListResponseCoordinate + */ + longitude?: number; +} +/** + * Check if a given object implements the DraftGetWarehouseFboListResponseCoordinate interface. + */ +export declare function instanceOfDraftGetWarehouseFboListResponseCoordinate(value: object): value is DraftGetWarehouseFboListResponseCoordinate; +export declare function DraftGetWarehouseFboListResponseCoordinateFromJSON(json: any): DraftGetWarehouseFboListResponseCoordinate; +export declare function DraftGetWarehouseFboListResponseCoordinateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftGetWarehouseFboListResponseCoordinate; +export declare function DraftGetWarehouseFboListResponseCoordinateToJSON(value?: DraftGetWarehouseFboListResponseCoordinate | null): any; diff --git a/dist/models/DraftGetWarehouseFboListResponseCoordinate.js b/dist/models/DraftGetWarehouseFboListResponseCoordinate.js new file mode 100644 index 0000000..4bffa5e --- /dev/null +++ b/dist/models/DraftGetWarehouseFboListResponseCoordinate.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDraftGetWarehouseFboListResponseCoordinate = instanceOfDraftGetWarehouseFboListResponseCoordinate; +exports.DraftGetWarehouseFboListResponseCoordinateFromJSON = DraftGetWarehouseFboListResponseCoordinateFromJSON; +exports.DraftGetWarehouseFboListResponseCoordinateFromJSONTyped = DraftGetWarehouseFboListResponseCoordinateFromJSONTyped; +exports.DraftGetWarehouseFboListResponseCoordinateToJSON = DraftGetWarehouseFboListResponseCoordinateToJSON; +/** + * Check if a given object implements the DraftGetWarehouseFboListResponseCoordinate interface. + */ +function instanceOfDraftGetWarehouseFboListResponseCoordinate(value) { + return true; +} +function DraftGetWarehouseFboListResponseCoordinateFromJSON(json) { + return DraftGetWarehouseFboListResponseCoordinateFromJSONTyped(json, false); +} +function DraftGetWarehouseFboListResponseCoordinateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function DraftGetWarehouseFboListResponseCoordinateToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/DraftGetWarehouseFboListResponseSearch.d.ts b/dist/models/DraftGetWarehouseFboListResponseSearch.d.ts new file mode 100644 index 0000000..1e81b58 --- /dev/null +++ b/dist/models/DraftGetWarehouseFboListResponseSearch.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftGetWarehouseFboListResponseWarehouseType } from './DraftGetWarehouseFboListResponseWarehouseType'; +import type { DraftGetWarehouseFboListResponseCoordinate } from './DraftGetWarehouseFboListResponseCoordinate'; +/** + * + * @export + * @interface DraftGetWarehouseFboListResponseSearch + */ +export interface DraftGetWarehouseFboListResponseSearch { + /** + * Адрес склада. + * @type {string} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + address?: string; + /** + * + * @type {DraftGetWarehouseFboListResponseCoordinate} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + coordinates?: DraftGetWarehouseFboListResponseCoordinate; + /** + * Название склада. + * @type {string} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + name?: string; + /** + * Идентификатор склада, пункта выдачи заказов или сортировочного центра. + * @type {number} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + warehouse_id?: number; + /** + * + * @type {DraftGetWarehouseFboListResponseWarehouseType} + * @memberof DraftGetWarehouseFboListResponseSearch + */ + warehouse_type?: DraftGetWarehouseFboListResponseWarehouseType; +} +/** + * Check if a given object implements the DraftGetWarehouseFboListResponseSearch interface. + */ +export declare function instanceOfDraftGetWarehouseFboListResponseSearch(value: object): value is DraftGetWarehouseFboListResponseSearch; +export declare function DraftGetWarehouseFboListResponseSearchFromJSON(json: any): DraftGetWarehouseFboListResponseSearch; +export declare function DraftGetWarehouseFboListResponseSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftGetWarehouseFboListResponseSearch; +export declare function DraftGetWarehouseFboListResponseSearchToJSON(value?: DraftGetWarehouseFboListResponseSearch | null): any; diff --git a/dist/models/DraftGetWarehouseFboListResponseSearch.js b/dist/models/DraftGetWarehouseFboListResponseSearch.js new file mode 100644 index 0000000..ec466a0 --- /dev/null +++ b/dist/models/DraftGetWarehouseFboListResponseSearch.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDraftGetWarehouseFboListResponseSearch = instanceOfDraftGetWarehouseFboListResponseSearch; +exports.DraftGetWarehouseFboListResponseSearchFromJSON = DraftGetWarehouseFboListResponseSearchFromJSON; +exports.DraftGetWarehouseFboListResponseSearchFromJSONTyped = DraftGetWarehouseFboListResponseSearchFromJSONTyped; +exports.DraftGetWarehouseFboListResponseSearchToJSON = DraftGetWarehouseFboListResponseSearchToJSON; +const DraftGetWarehouseFboListResponseWarehouseType_1 = require("./DraftGetWarehouseFboListResponseWarehouseType"); +const DraftGetWarehouseFboListResponseCoordinate_1 = require("./DraftGetWarehouseFboListResponseCoordinate"); +/** + * Check if a given object implements the DraftGetWarehouseFboListResponseSearch interface. + */ +function instanceOfDraftGetWarehouseFboListResponseSearch(value) { + return true; +} +function DraftGetWarehouseFboListResponseSearchFromJSON(json) { + return DraftGetWarehouseFboListResponseSearchFromJSONTyped(json, false); +} +function DraftGetWarehouseFboListResponseSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : (0, DraftGetWarehouseFboListResponseCoordinate_1.DraftGetWarehouseFboListResponseCoordinateFromJSON)(json['coordinates']), + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_type': json['warehouse_type'] == null ? undefined : (0, DraftGetWarehouseFboListResponseWarehouseType_1.DraftGetWarehouseFboListResponseWarehouseTypeFromJSON)(json['warehouse_type']), + }; +} +function DraftGetWarehouseFboListResponseSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': (0, DraftGetWarehouseFboListResponseCoordinate_1.DraftGetWarehouseFboListResponseCoordinateToJSON)(value['coordinates']), + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_type': (0, DraftGetWarehouseFboListResponseWarehouseType_1.DraftGetWarehouseFboListResponseWarehouseTypeToJSON)(value['warehouse_type']), + }; +} diff --git a/dist/models/DraftGetWarehouseFboListResponseWarehouseType.d.ts b/dist/models/DraftGetWarehouseFboListResponseWarehouseType.d.ts new file mode 100644 index 0000000..6aa0c8c --- /dev/null +++ b/dist/models/DraftGetWarehouseFboListResponseWarehouseType.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада, пункта выдачи заказов или сортировочного центра: + * - `WAREHOUSE_TYPE_DELIVERY_POINT` — пункт выдачи заказов, + * - `WAREHOUSE_TYPE_ORDERS_RECEIVING_POINT` — пункт приёма заказов, + * - `WAREHOUSE_TYPE_SORTING_CENTER` — сортировочный центр, + * - `WAREHOUSE_TYPE_FULL_FILLMENT` — фулфилмент, + * - `WAREHOUSE_TYPE_CROSS_DOCK` — кросс-докинг. + * + * @export + */ +export declare const DraftGetWarehouseFboListResponseWarehouseType: { + readonly DELIVERY_POINT: "WAREHOUSE_TYPE_DELIVERY_POINT"; + readonly ORDERS_RECEIVING_POINT: "WAREHOUSE_TYPE_ORDERS_RECEIVING_POINT"; + readonly SORTING_CENTER: "WAREHOUSE_TYPE_SORTING_CENTER"; + readonly FULL_FILLMENT: "WAREHOUSE_TYPE_FULL_FILLMENT"; + readonly CROSS_DOCK: "WAREHOUSE_TYPE_CROSS_DOCK"; +}; +export type DraftGetWarehouseFboListResponseWarehouseType = typeof DraftGetWarehouseFboListResponseWarehouseType[keyof typeof DraftGetWarehouseFboListResponseWarehouseType]; +export declare function instanceOfDraftGetWarehouseFboListResponseWarehouseType(value: any): boolean; +export declare function DraftGetWarehouseFboListResponseWarehouseTypeFromJSON(json: any): DraftGetWarehouseFboListResponseWarehouseType; +export declare function DraftGetWarehouseFboListResponseWarehouseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftGetWarehouseFboListResponseWarehouseType; +export declare function DraftGetWarehouseFboListResponseWarehouseTypeToJSON(value?: DraftGetWarehouseFboListResponseWarehouseType | null): any; diff --git a/dist/models/DraftGetWarehouseFboListResponseWarehouseType.js b/dist/models/DraftGetWarehouseFboListResponseWarehouseType.js new file mode 100644 index 0000000..74ee8f3 --- /dev/null +++ b/dist/models/DraftGetWarehouseFboListResponseWarehouseType.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DraftGetWarehouseFboListResponseWarehouseType = void 0; +exports.instanceOfDraftGetWarehouseFboListResponseWarehouseType = instanceOfDraftGetWarehouseFboListResponseWarehouseType; +exports.DraftGetWarehouseFboListResponseWarehouseTypeFromJSON = DraftGetWarehouseFboListResponseWarehouseTypeFromJSON; +exports.DraftGetWarehouseFboListResponseWarehouseTypeFromJSONTyped = DraftGetWarehouseFboListResponseWarehouseTypeFromJSONTyped; +exports.DraftGetWarehouseFboListResponseWarehouseTypeToJSON = DraftGetWarehouseFboListResponseWarehouseTypeToJSON; +/** + * Тип склада, пункта выдачи заказов или сортировочного центра: + * - `WAREHOUSE_TYPE_DELIVERY_POINT` — пункт выдачи заказов, + * - `WAREHOUSE_TYPE_ORDERS_RECEIVING_POINT` — пункт приёма заказов, + * - `WAREHOUSE_TYPE_SORTING_CENTER` — сортировочный центр, + * - `WAREHOUSE_TYPE_FULL_FILLMENT` — фулфилмент, + * - `WAREHOUSE_TYPE_CROSS_DOCK` — кросс-докинг. + * + * @export + */ +exports.DraftGetWarehouseFboListResponseWarehouseType = { + DELIVERY_POINT: 'WAREHOUSE_TYPE_DELIVERY_POINT', + ORDERS_RECEIVING_POINT: 'WAREHOUSE_TYPE_ORDERS_RECEIVING_POINT', + SORTING_CENTER: 'WAREHOUSE_TYPE_SORTING_CENTER', + FULL_FILLMENT: 'WAREHOUSE_TYPE_FULL_FILLMENT', + CROSS_DOCK: 'WAREHOUSE_TYPE_CROSS_DOCK' +}; +function instanceOfDraftGetWarehouseFboListResponseWarehouseType(value) { + for (const key in exports.DraftGetWarehouseFboListResponseWarehouseType) { + if (Object.prototype.hasOwnProperty.call(exports.DraftGetWarehouseFboListResponseWarehouseType, key)) { + if (exports.DraftGetWarehouseFboListResponseWarehouseType[key] === value) { + return true; + } + } + } + return false; +} +function DraftGetWarehouseFboListResponseWarehouseTypeFromJSON(json) { + return DraftGetWarehouseFboListResponseWarehouseTypeFromJSONTyped(json, false); +} +function DraftGetWarehouseFboListResponseWarehouseTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DraftGetWarehouseFboListResponseWarehouseTypeToJSON(value) { + return value; +} diff --git a/dist/models/DraftTimeslotInfoResponseResult.d.ts b/dist/models/DraftTimeslotInfoResponseResult.d.ts new file mode 100644 index 0000000..9e4068c --- /dev/null +++ b/dist/models/DraftTimeslotInfoResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultDropOffWarehouseTimeslots } from './ResultDropOffWarehouseTimeslots'; +/** + * Информация о таймслотах. + * @export + * @interface DraftTimeslotInfoResponseResult + */ +export interface DraftTimeslotInfoResponseResult { + /** + * + * @type {ResultDropOffWarehouseTimeslots} + * @memberof DraftTimeslotInfoResponseResult + */ + drop_off_warehouse_timeslots?: ResultDropOffWarehouseTimeslots; + /** + * Дата начала периода. + * @type {string} + * @memberof DraftTimeslotInfoResponseResult + */ + requested_date_from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof DraftTimeslotInfoResponseResult + */ + requested_date_to?: string; +} +/** + * Check if a given object implements the DraftTimeslotInfoResponseResult interface. + */ +export declare function instanceOfDraftTimeslotInfoResponseResult(value: object): value is DraftTimeslotInfoResponseResult; +export declare function DraftTimeslotInfoResponseResultFromJSON(json: any): DraftTimeslotInfoResponseResult; +export declare function DraftTimeslotInfoResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DraftTimeslotInfoResponseResult; +export declare function DraftTimeslotInfoResponseResultToJSON(value?: DraftTimeslotInfoResponseResult | null): any; diff --git a/dist/models/DraftTimeslotInfoResponseResult.js b/dist/models/DraftTimeslotInfoResponseResult.js new file mode 100644 index 0000000..3352e40 --- /dev/null +++ b/dist/models/DraftTimeslotInfoResponseResult.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDraftTimeslotInfoResponseResult = instanceOfDraftTimeslotInfoResponseResult; +exports.DraftTimeslotInfoResponseResultFromJSON = DraftTimeslotInfoResponseResultFromJSON; +exports.DraftTimeslotInfoResponseResultFromJSONTyped = DraftTimeslotInfoResponseResultFromJSONTyped; +exports.DraftTimeslotInfoResponseResultToJSON = DraftTimeslotInfoResponseResultToJSON; +const ResultDropOffWarehouseTimeslots_1 = require("./ResultDropOffWarehouseTimeslots"); +/** + * Check if a given object implements the DraftTimeslotInfoResponseResult interface. + */ +function instanceOfDraftTimeslotInfoResponseResult(value) { + return true; +} +function DraftTimeslotInfoResponseResultFromJSON(json) { + return DraftTimeslotInfoResponseResultFromJSONTyped(json, false); +} +function DraftTimeslotInfoResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_warehouse_timeslots': json['drop_off_warehouse_timeslots'] == null ? undefined : (0, ResultDropOffWarehouseTimeslots_1.ResultDropOffWarehouseTimeslotsFromJSON)(json['drop_off_warehouse_timeslots']), + 'requested_date_from': json['requested_date_from'] == null ? undefined : json['requested_date_from'], + 'requested_date_to': json['requested_date_to'] == null ? undefined : json['requested_date_to'], + }; +} +function DraftTimeslotInfoResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_warehouse_timeslots': (0, ResultDropOffWarehouseTimeslots_1.ResultDropOffWarehouseTimeslotsToJSON)(value['drop_off_warehouse_timeslots']), + 'requested_date_from': value['requested_date_from'], + 'requested_date_to': value['requested_date_to'], + }; +} diff --git a/dist/models/DropOffPointCoordinates.d.ts b/dist/models/DropOffPointCoordinates.d.ts new file mode 100644 index 0000000..2bc8b56 --- /dev/null +++ b/dist/models/DropOffPointCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты drop-off пункта. + * @export + * @interface DropOffPointCoordinates + */ +export interface DropOffPointCoordinates { + /** + * Широта. + * @type {number} + * @memberof DropOffPointCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof DropOffPointCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the DropOffPointCoordinates interface. + */ +export declare function instanceOfDropOffPointCoordinates(value: object): value is DropOffPointCoordinates; +export declare function DropOffPointCoordinatesFromJSON(json: any): DropOffPointCoordinates; +export declare function DropOffPointCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropOffPointCoordinates; +export declare function DropOffPointCoordinatesToJSON(value?: DropOffPointCoordinates | null): any; diff --git a/dist/models/DropOffPointCoordinates.js b/dist/models/DropOffPointCoordinates.js new file mode 100644 index 0000000..20f9ebb --- /dev/null +++ b/dist/models/DropOffPointCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDropOffPointCoordinates = instanceOfDropOffPointCoordinates; +exports.DropOffPointCoordinatesFromJSON = DropOffPointCoordinatesFromJSON; +exports.DropOffPointCoordinatesFromJSONTyped = DropOffPointCoordinatesFromJSONTyped; +exports.DropOffPointCoordinatesToJSON = DropOffPointCoordinatesToJSON; +/** + * Check if a given object implements the DropOffPointCoordinates interface. + */ +function instanceOfDropOffPointCoordinates(value) { + return true; +} +function DropOffPointCoordinatesFromJSON(json) { + return DropOffPointCoordinatesFromJSONTyped(json, false); +} +function DropOffPointCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function DropOffPointCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/DropOffWarehouseTimeslotsDay.d.ts b/dist/models/DropOffWarehouseTimeslotsDay.d.ts new file mode 100644 index 0000000..7eeb73c --- /dev/null +++ b/dist/models/DropOffWarehouseTimeslotsDay.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DropOffWarehouseTimeslotsDayTimeslot } from './DropOffWarehouseTimeslotsDayTimeslot'; +/** + * + * @export + * @interface DropOffWarehouseTimeslotsDay + */ +export interface DropOffWarehouseTimeslotsDay { + /** + * Дата таймслотов. + * @type {string} + * @memberof DropOffWarehouseTimeslotsDay + */ + date_in_timezone?: string; + /** + * Таймслоты. + * @type {Array} + * @memberof DropOffWarehouseTimeslotsDay + */ + timeslots?: Array; +} +/** + * Check if a given object implements the DropOffWarehouseTimeslotsDay interface. + */ +export declare function instanceOfDropOffWarehouseTimeslotsDay(value: object): value is DropOffWarehouseTimeslotsDay; +export declare function DropOffWarehouseTimeslotsDayFromJSON(json: any): DropOffWarehouseTimeslotsDay; +export declare function DropOffWarehouseTimeslotsDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropOffWarehouseTimeslotsDay; +export declare function DropOffWarehouseTimeslotsDayToJSON(value?: DropOffWarehouseTimeslotsDay | null): any; diff --git a/dist/models/DropOffWarehouseTimeslotsDay.js b/dist/models/DropOffWarehouseTimeslotsDay.js new file mode 100644 index 0000000..6d45e9f --- /dev/null +++ b/dist/models/DropOffWarehouseTimeslotsDay.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDropOffWarehouseTimeslotsDay = instanceOfDropOffWarehouseTimeslotsDay; +exports.DropOffWarehouseTimeslotsDayFromJSON = DropOffWarehouseTimeslotsDayFromJSON; +exports.DropOffWarehouseTimeslotsDayFromJSONTyped = DropOffWarehouseTimeslotsDayFromJSONTyped; +exports.DropOffWarehouseTimeslotsDayToJSON = DropOffWarehouseTimeslotsDayToJSON; +const DropOffWarehouseTimeslotsDayTimeslot_1 = require("./DropOffWarehouseTimeslotsDayTimeslot"); +/** + * Check if a given object implements the DropOffWarehouseTimeslotsDay interface. + */ +function instanceOfDropOffWarehouseTimeslotsDay(value) { + return true; +} +function DropOffWarehouseTimeslotsDayFromJSON(json) { + return DropOffWarehouseTimeslotsDayFromJSONTyped(json, false); +} +function DropOffWarehouseTimeslotsDayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_in_timezone': json['date_in_timezone'] == null ? undefined : json['date_in_timezone'], + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(DropOffWarehouseTimeslotsDayTimeslot_1.DropOffWarehouseTimeslotsDayTimeslotFromJSON)), + }; +} +function DropOffWarehouseTimeslotsDayToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_in_timezone': value['date_in_timezone'], + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(DropOffWarehouseTimeslotsDayTimeslot_1.DropOffWarehouseTimeslotsDayTimeslotToJSON)), + }; +} diff --git a/dist/models/DropOffWarehouseTimeslotsDayTimeslot.d.ts b/dist/models/DropOffWarehouseTimeslotsDayTimeslot.d.ts new file mode 100644 index 0000000..9d2a9ec --- /dev/null +++ b/dist/models/DropOffWarehouseTimeslotsDayTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DropOffWarehouseTimeslotsDayTimeslot + */ +export interface DropOffWarehouseTimeslotsDayTimeslot { + /** + * Начало таймслота. + * @type {string} + * @memberof DropOffWarehouseTimeslotsDayTimeslot + */ + from_in_timezone?: string; + /** + * Конец таймслота. + * @type {string} + * @memberof DropOffWarehouseTimeslotsDayTimeslot + */ + to_in_timezone?: string; +} +/** + * Check if a given object implements the DropOffWarehouseTimeslotsDayTimeslot interface. + */ +export declare function instanceOfDropOffWarehouseTimeslotsDayTimeslot(value: object): value is DropOffWarehouseTimeslotsDayTimeslot; +export declare function DropOffWarehouseTimeslotsDayTimeslotFromJSON(json: any): DropOffWarehouseTimeslotsDayTimeslot; +export declare function DropOffWarehouseTimeslotsDayTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropOffWarehouseTimeslotsDayTimeslot; +export declare function DropOffWarehouseTimeslotsDayTimeslotToJSON(value?: DropOffWarehouseTimeslotsDayTimeslot | null): any; diff --git a/dist/models/DropOffWarehouseTimeslotsDayTimeslot.js b/dist/models/DropOffWarehouseTimeslotsDayTimeslot.js new file mode 100644 index 0000000..fcc84fd --- /dev/null +++ b/dist/models/DropOffWarehouseTimeslotsDayTimeslot.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDropOffWarehouseTimeslotsDayTimeslot = instanceOfDropOffWarehouseTimeslotsDayTimeslot; +exports.DropOffWarehouseTimeslotsDayTimeslotFromJSON = DropOffWarehouseTimeslotsDayTimeslotFromJSON; +exports.DropOffWarehouseTimeslotsDayTimeslotFromJSONTyped = DropOffWarehouseTimeslotsDayTimeslotFromJSONTyped; +exports.DropOffWarehouseTimeslotsDayTimeslotToJSON = DropOffWarehouseTimeslotsDayTimeslotToJSON; +/** + * Check if a given object implements the DropOffWarehouseTimeslotsDayTimeslot interface. + */ +function instanceOfDropOffWarehouseTimeslotsDayTimeslot(value) { + return true; +} +function DropOffWarehouseTimeslotsDayTimeslotFromJSON(json) { + return DropOffWarehouseTimeslotsDayTimeslotFromJSONTyped(json, false); +} +function DropOffWarehouseTimeslotsDayTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from_in_timezone': json['from_in_timezone'] == null ? undefined : json['from_in_timezone'], + 'to_in_timezone': json['to_in_timezone'] == null ? undefined : json['to_in_timezone'], + }; +} +function DropOffWarehouseTimeslotsDayTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from_in_timezone': value['from_in_timezone'], + 'to_in_timezone': value['to_in_timezone'], + }; +} diff --git a/dist/models/ErrorData.d.ts b/dist/models/ErrorData.d.ts new file mode 100644 index 0000000..af03eca --- /dev/null +++ b/dist/models/ErrorData.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ErrorData + */ +export interface ErrorData { + /** + * Код. + * @type {string} + * @memberof ErrorData + */ + code?: string; + /** + * Причина. + * @type {string} + * @memberof ErrorData + */ + field?: string; + /** + * Текстовое описание. + * @type {string} + * @memberof ErrorData + */ + message?: string; + /** + * Уровень скидки. + * @type {number} + * @memberof ErrorData + */ + step?: number; + /** + * Значение поля с ошибкой. + * @type {string} + * @memberof ErrorData + */ + value?: string; +} +/** + * Check if a given object implements the ErrorData interface. + */ +export declare function instanceOfErrorData(value: object): value is ErrorData; +export declare function ErrorDataFromJSON(json: any): ErrorData; +export declare function ErrorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorData; +export declare function ErrorDataToJSON(value?: ErrorData | null): any; diff --git a/dist/models/ErrorData.js b/dist/models/ErrorData.js new file mode 100644 index 0000000..a2ae497 --- /dev/null +++ b/dist/models/ErrorData.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfErrorData = instanceOfErrorData; +exports.ErrorDataFromJSON = ErrorDataFromJSON; +exports.ErrorDataFromJSONTyped = ErrorDataFromJSONTyped; +exports.ErrorDataToJSON = ErrorDataToJSON; +/** + * Check if a given object implements the ErrorData interface. + */ +function instanceOfErrorData(value) { + return true; +} +function ErrorDataFromJSON(json) { + return ErrorDataFromJSONTyped(json, false); +} +function ErrorDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'field': json['field'] == null ? undefined : json['field'], + 'message': json['message'] == null ? undefined : json['message'], + 'step': json['step'] == null ? undefined : json['step'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ErrorDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'field': value['field'], + 'message': value['message'], + 'step': value['step'], + 'value': value['value'], + }; +} diff --git a/dist/models/ErrorErrorLevel.d.ts b/dist/models/ErrorErrorLevel.d.ts new file mode 100644 index 0000000..f93b842 --- /dev/null +++ b/dist/models/ErrorErrorLevel.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Описание уровней ошибок: + * - `ERROR_LEVEL_UNSPECIFIED` — не определён; + * - `ERROR_LEVEL_ERROR` — критичная ошибка, товар нельзя продавать; + * - `ERROR_LEVEL_INTERNAL` — критичная ошибка, товар нельзя продавать. + * - `ERROR_LEVEL_WARNING` — некритичная ошибка, товар можно продавать. + * + * [Подробнее об ошибках при создании товара в Базе знаний продавца](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/oshibki-pri-rabote-s-kartochkami) + * + * @export + */ +export declare const ErrorErrorLevel: { + readonly UNSPECIFIED: "ERROR_LEVEL_UNSPECIFIED"; + readonly ERROR: "ERROR_LEVEL_ERROR"; + readonly WARNING: "ERROR_LEVEL_WARNING"; + readonly INTERNAL: "ERROR_LEVEL_INTERNAL"; +}; +export type ErrorErrorLevel = typeof ErrorErrorLevel[keyof typeof ErrorErrorLevel]; +export declare function instanceOfErrorErrorLevel(value: any): boolean; +export declare function ErrorErrorLevelFromJSON(json: any): ErrorErrorLevel; +export declare function ErrorErrorLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorErrorLevel; +export declare function ErrorErrorLevelToJSON(value?: ErrorErrorLevel | null): any; diff --git a/dist/models/ErrorErrorLevel.js b/dist/models/ErrorErrorLevel.js new file mode 100644 index 0000000..d6b240f --- /dev/null +++ b/dist/models/ErrorErrorLevel.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ErrorErrorLevel = void 0; +exports.instanceOfErrorErrorLevel = instanceOfErrorErrorLevel; +exports.ErrorErrorLevelFromJSON = ErrorErrorLevelFromJSON; +exports.ErrorErrorLevelFromJSONTyped = ErrorErrorLevelFromJSONTyped; +exports.ErrorErrorLevelToJSON = ErrorErrorLevelToJSON; +/** + * Описание уровней ошибок: + * - `ERROR_LEVEL_UNSPECIFIED` — не определён; + * - `ERROR_LEVEL_ERROR` — критичная ошибка, товар нельзя продавать; + * - `ERROR_LEVEL_INTERNAL` — критичная ошибка, товар нельзя продавать. + * - `ERROR_LEVEL_WARNING` — некритичная ошибка, товар можно продавать. + * + * [Подробнее об ошибках при создании товара в Базе знаний продавца](https://seller-edu.ozon.ru/work-with-goods/zagruzka-tovarov/creating-goods/oshibki-pri-rabote-s-kartochkami) + * + * @export + */ +exports.ErrorErrorLevel = { + UNSPECIFIED: 'ERROR_LEVEL_UNSPECIFIED', + ERROR: 'ERROR_LEVEL_ERROR', + WARNING: 'ERROR_LEVEL_WARNING', + INTERNAL: 'ERROR_LEVEL_INTERNAL' +}; +function instanceOfErrorErrorLevel(value) { + for (const key in exports.ErrorErrorLevel) { + if (Object.prototype.hasOwnProperty.call(exports.ErrorErrorLevel, key)) { + if (exports.ErrorErrorLevel[key] === value) { + return true; + } + } + } + return false; +} +function ErrorErrorLevelFromJSON(json) { + return ErrorErrorLevelFromJSONTyped(json, false); +} +function ErrorErrorLevelFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ErrorErrorLevelToJSON(value) { + return value; +} diff --git a/dist/models/ErrorErrorMessageEnum.d.ts b/dist/models/ErrorErrorMessageEnum.d.ts new file mode 100644 index 0000000..fac0d50 --- /dev/null +++ b/dist/models/ErrorErrorMessageEnum.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Возможные ошибки: + * - `UNSPECIFIED` — ошибка не определена; + * - `EMPTY_ITEMS_LIST` — передан пустой список `items`; + * - `ITEMS_COUNT_MORE_THAN_MAX` — превышено количество `sku`; + * - `UNKNOWN_CLUSTER_IDS` — кластер с таким `id` не существует; + * - `ITEMS_VALIDATION` — ошибки валидации товарного состава; + * - `DROP_OFF_POINT_DOES_NOT_EXIST` — точка отгрузки с таким `id` не существует; + * - `DROP_OFF_POINT_HAS_NO_TIMESLOTS` — нет доступных таймслотов на точке отгрузки; + * - `TOTAL_VOLUME_IN_LITRES_INVALID` — объём поставляемых товаров слишком большой для этой точки; + * - `SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE` — требуется распределение SKU, но оно невозможно; + * - `CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER` — поставка кросс-докингом через пункт выдачи заказов недоступна для продавца; + * - `DUPLICATE_SKUS_IN_REQUEST` — в запросе есть дубликаты SKU; + * - `CAN_NOT_CREATE_DRAFT` — не удалось создать черновик; + * - `DRAFT_TOTALS_INVALID_ERROR` — некорректные итоговые данные в черновике; + * - `CAN_NOT_START_CALCULATION` — не удалось начать расчёт; + * - `PICKUP_IS_NOT_AVAILABLE` — самовывоз недоступен; + * - `DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP` — точка отгрузки несовместима с самовывозом; + * - `UNDEFINED` — неизвестная ошибка. + * + * @export + */ +export declare const ErrorErrorMessageEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly EMPTY_ITEMS_LIST: "EMPTY_ITEMS_LIST"; + readonly ITEMS_COUNT_MORE_THAN_MAX: "ITEMS_COUNT_MORE_THAN_MAX"; + readonly UNKNOWN_CLUSTER_IDS: "UNKNOWN_CLUSTER_IDS"; + readonly ITEMS_VALIDATION: "ITEMS_VALIDATION"; + readonly DROP_OFF_POINT_DOES_NOT_EXIST: "DROP_OFF_POINT_DOES_NOT_EXIST"; + readonly DROP_OFF_POINT_HAS_NO_TIMESLOTS: "DROP_OFF_POINT_HAS_NO_TIMESLOTS"; + readonly TOTAL_VOLUME_IN_LITRES_INVALID: "TOTAL_VOLUME_IN_LITRES_INVALID"; + readonly SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: "SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE"; + readonly CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: "CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER"; + readonly DUPLICATE_SKUS_IN_REQUEST: "DUPLICATE_SKUS_IN_REQUEST"; + readonly CAN_NOT_CREATE_DRAFT: "CAN_NOT_CREATE_DRAFT"; + readonly DRAFT_TOTALS_INVALID_ERROR: "DRAFT_TOTALS_INVALID_ERROR"; + readonly CAN_NOT_START_CALCULATION: "CAN_NOT_START_CALCULATION"; + readonly PICKUP_IS_NOT_AVAILABLE: "PICKUP_IS_NOT_AVAILABLE"; + readonly DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP: "DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type ErrorErrorMessageEnum = typeof ErrorErrorMessageEnum[keyof typeof ErrorErrorMessageEnum]; +export declare function instanceOfErrorErrorMessageEnum(value: any): boolean; +export declare function ErrorErrorMessageEnumFromJSON(json: any): ErrorErrorMessageEnum; +export declare function ErrorErrorMessageEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorErrorMessageEnum; +export declare function ErrorErrorMessageEnumToJSON(value?: ErrorErrorMessageEnum | null): any; diff --git a/dist/models/ErrorErrorMessageEnum.js b/dist/models/ErrorErrorMessageEnum.js new file mode 100644 index 0000000..2891070 --- /dev/null +++ b/dist/models/ErrorErrorMessageEnum.js @@ -0,0 +1,80 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ErrorErrorMessageEnum = void 0; +exports.instanceOfErrorErrorMessageEnum = instanceOfErrorErrorMessageEnum; +exports.ErrorErrorMessageEnumFromJSON = ErrorErrorMessageEnumFromJSON; +exports.ErrorErrorMessageEnumFromJSONTyped = ErrorErrorMessageEnumFromJSONTyped; +exports.ErrorErrorMessageEnumToJSON = ErrorErrorMessageEnumToJSON; +/** + * Возможные ошибки: + * - `UNSPECIFIED` — ошибка не определена; + * - `EMPTY_ITEMS_LIST` — передан пустой список `items`; + * - `ITEMS_COUNT_MORE_THAN_MAX` — превышено количество `sku`; + * - `UNKNOWN_CLUSTER_IDS` — кластер с таким `id` не существует; + * - `ITEMS_VALIDATION` — ошибки валидации товарного состава; + * - `DROP_OFF_POINT_DOES_NOT_EXIST` — точка отгрузки с таким `id` не существует; + * - `DROP_OFF_POINT_HAS_NO_TIMESLOTS` — нет доступных таймслотов на точке отгрузки; + * - `TOTAL_VOLUME_IN_LITRES_INVALID` — объём поставляемых товаров слишком большой для этой точки; + * - `SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE` — требуется распределение SKU, но оно невозможно; + * - `CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER` — поставка кросс-докингом через пункт выдачи заказов недоступна для продавца; + * - `DUPLICATE_SKUS_IN_REQUEST` — в запросе есть дубликаты SKU; + * - `CAN_NOT_CREATE_DRAFT` — не удалось создать черновик; + * - `DRAFT_TOTALS_INVALID_ERROR` — некорректные итоговые данные в черновике; + * - `CAN_NOT_START_CALCULATION` — не удалось начать расчёт; + * - `PICKUP_IS_NOT_AVAILABLE` — самовывоз недоступен; + * - `DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP` — точка отгрузки несовместима с самовывозом; + * - `UNDEFINED` — неизвестная ошибка. + * + * @export + */ +exports.ErrorErrorMessageEnum = { + UNSPECIFIED: 'UNSPECIFIED', + EMPTY_ITEMS_LIST: 'EMPTY_ITEMS_LIST', + ITEMS_COUNT_MORE_THAN_MAX: 'ITEMS_COUNT_MORE_THAN_MAX', + UNKNOWN_CLUSTER_IDS: 'UNKNOWN_CLUSTER_IDS', + ITEMS_VALIDATION: 'ITEMS_VALIDATION', + DROP_OFF_POINT_DOES_NOT_EXIST: 'DROP_OFF_POINT_DOES_NOT_EXIST', + DROP_OFF_POINT_HAS_NO_TIMESLOTS: 'DROP_OFF_POINT_HAS_NO_TIMESLOTS', + TOTAL_VOLUME_IN_LITRES_INVALID: 'TOTAL_VOLUME_IN_LITRES_INVALID', + SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: 'SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE', + CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: 'CROSS_DOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER', + DUPLICATE_SKUS_IN_REQUEST: 'DUPLICATE_SKUS_IN_REQUEST', + CAN_NOT_CREATE_DRAFT: 'CAN_NOT_CREATE_DRAFT', + DRAFT_TOTALS_INVALID_ERROR: 'DRAFT_TOTALS_INVALID_ERROR', + CAN_NOT_START_CALCULATION: 'CAN_NOT_START_CALCULATION', + PICKUP_IS_NOT_AVAILABLE: 'PICKUP_IS_NOT_AVAILABLE', + DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP: 'DROP_OFF_NOT_COMPATIBLE_WITH_PICKUP', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfErrorErrorMessageEnum(value) { + for (const key in exports.ErrorErrorMessageEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ErrorErrorMessageEnum, key)) { + if (exports.ErrorErrorMessageEnum[key] === value) { + return true; + } + } + } + return false; +} +function ErrorErrorMessageEnumFromJSON(json) { + return ErrorErrorMessageEnumFromJSONTyped(json, false); +} +function ErrorErrorMessageEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ErrorErrorMessageEnumToJSON(value) { + return value; +} diff --git a/dist/models/ErrorErrorReasonEnum.d.ts b/dist/models/ErrorErrorReasonEnum.d.ts new file mode 100644 index 0000000..53275b6 --- /dev/null +++ b/dist/models/ErrorErrorReasonEnum.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ErrorErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER: "ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER"; + readonly ALL_ITEMS_REJECTED: "ALL_ITEMS_REJECTED"; + readonly NOT_AVAILABLE_CLUSTERS: "NOT_AVAILABLE_CLUSTERS"; + readonly ALL_ITEMS_COUNT_INVALID: "ALL_ITEMS_COUNT_INVALID"; + readonly ALL_ITEMS_VOLUME_INVALID: "ALL_ITEMS_VOLUME_INVALID"; + readonly ALL_BUNDLES_EMPTY: "ALL_BUNDLES_EMPTY"; + readonly HAS_EMPTY_BUNDLE: "HAS_EMPTY_BUNDLE"; + readonly DISABLED_FOR_SELLER: "DISABLED_FOR_SELLER"; + readonly NO_ACTIVE_SELLER_WAREHOUSE: "NO_ACTIVE_SELLER_WAREHOUSE"; + readonly INVALID_SELLER_WAREHOUSE: "INVALID_SELLER_WAREHOUSE"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type ErrorErrorReasonEnum = typeof ErrorErrorReasonEnum[keyof typeof ErrorErrorReasonEnum]; +export declare function instanceOfErrorErrorReasonEnum(value: any): boolean; +export declare function ErrorErrorReasonEnumFromJSON(json: any): ErrorErrorReasonEnum; +export declare function ErrorErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorErrorReasonEnum; +export declare function ErrorErrorReasonEnumToJSON(value?: ErrorErrorReasonEnum | null): any; diff --git a/dist/models/ErrorErrorReasonEnum.js b/dist/models/ErrorErrorReasonEnum.js new file mode 100644 index 0000000..ccaaae3 --- /dev/null +++ b/dist/models/ErrorErrorReasonEnum.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ErrorErrorReasonEnum = void 0; +exports.instanceOfErrorErrorReasonEnum = instanceOfErrorErrorReasonEnum; +exports.ErrorErrorReasonEnumFromJSON = ErrorErrorReasonEnumFromJSON; +exports.ErrorErrorReasonEnumFromJSONTyped = ErrorErrorReasonEnumFromJSONTyped; +exports.ErrorErrorReasonEnumToJSON = ErrorErrorReasonEnumToJSON; +/** + * + * @export + */ +exports.ErrorErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER: 'ORDER_CREATION_NOT_AVAILABLE_FOR_SELLER', + ALL_ITEMS_REJECTED: 'ALL_ITEMS_REJECTED', + NOT_AVAILABLE_CLUSTERS: 'NOT_AVAILABLE_CLUSTERS', + ALL_ITEMS_COUNT_INVALID: 'ALL_ITEMS_COUNT_INVALID', + ALL_ITEMS_VOLUME_INVALID: 'ALL_ITEMS_VOLUME_INVALID', + ALL_BUNDLES_EMPTY: 'ALL_BUNDLES_EMPTY', + HAS_EMPTY_BUNDLE: 'HAS_EMPTY_BUNDLE', + DISABLED_FOR_SELLER: 'DISABLED_FOR_SELLER', + NO_ACTIVE_SELLER_WAREHOUSE: 'NO_ACTIVE_SELLER_WAREHOUSE', + INVALID_SELLER_WAREHOUSE: 'INVALID_SELLER_WAREHOUSE', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfErrorErrorReasonEnum(value) { + for (const key in exports.ErrorErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ErrorErrorReasonEnum, key)) { + if (exports.ErrorErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function ErrorErrorReasonEnumFromJSON(json) { + return ErrorErrorReasonEnumFromJSONTyped(json, false); +} +function ErrorErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ErrorErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/ErrorHumanTexts.d.ts b/dist/models/ErrorHumanTexts.d.ts new file mode 100644 index 0000000..5fae75a --- /dev/null +++ b/dist/models/ErrorHumanTexts.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { HumanTextsParam } from './HumanTextsParam'; +/** + * Описание ошибок. + * @export + * @interface ErrorHumanTexts + */ +export interface ErrorHumanTexts { + /** + * Название атрибута, в котором произошла ошибка. + * @type {string} + * @memberof ErrorHumanTexts + */ + attribute_name?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof ErrorHumanTexts + */ + description?: string; + /** + * Код ошибки в системе Ozon. + * @type {string} + * @memberof ErrorHumanTexts + */ + hint_code?: string; + /** + * Текст ошибки. + * @type {string} + * @memberof ErrorHumanTexts + */ + message?: string; + /** + * В каких параметрах допущена ошибка. + * @type {Array} + * @memberof ErrorHumanTexts + */ + params?: Array; + /** + * Краткое описание ошибки. + * @type {string} + * @memberof ErrorHumanTexts + */ + short_description?: string; +} +/** + * Check if a given object implements the ErrorHumanTexts interface. + */ +export declare function instanceOfErrorHumanTexts(value: object): value is ErrorHumanTexts; +export declare function ErrorHumanTextsFromJSON(json: any): ErrorHumanTexts; +export declare function ErrorHumanTextsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorHumanTexts; +export declare function ErrorHumanTextsToJSON(value?: ErrorHumanTexts | null): any; diff --git a/dist/models/ErrorHumanTexts.js b/dist/models/ErrorHumanTexts.js new file mode 100644 index 0000000..c822131 --- /dev/null +++ b/dist/models/ErrorHumanTexts.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfErrorHumanTexts = instanceOfErrorHumanTexts; +exports.ErrorHumanTextsFromJSON = ErrorHumanTextsFromJSON; +exports.ErrorHumanTextsFromJSONTyped = ErrorHumanTextsFromJSONTyped; +exports.ErrorHumanTextsToJSON = ErrorHumanTextsToJSON; +const HumanTextsParam_1 = require("./HumanTextsParam"); +/** + * Check if a given object implements the ErrorHumanTexts interface. + */ +function instanceOfErrorHumanTexts(value) { + return true; +} +function ErrorHumanTextsFromJSON(json) { + return ErrorHumanTextsFromJSONTyped(json, false); +} +function ErrorHumanTextsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attribute_name': json['attribute_name'] == null ? undefined : json['attribute_name'], + 'description': json['description'] == null ? undefined : json['description'], + 'hint_code': json['hint_code'] == null ? undefined : json['hint_code'], + 'message': json['message'] == null ? undefined : json['message'], + 'params': json['params'] == null ? undefined : (json['params'].map(HumanTextsParam_1.HumanTextsParamFromJSON)), + 'short_description': json['short_description'] == null ? undefined : json['short_description'], + }; +} +function ErrorHumanTextsToJSON(value) { + if (value == null) { + return value; + } + return { + 'attribute_name': value['attribute_name'], + 'description': value['description'], + 'hint_code': value['hint_code'], + 'message': value['message'], + 'params': value['params'] == null ? undefined : (value['params'].map(HumanTextsParam_1.HumanTextsParamToJSON)), + 'short_description': value['short_description'], + }; +} diff --git a/dist/models/ErrorItemsValidation.d.ts b/dist/models/ErrorItemsValidation.d.ts new file mode 100644 index 0000000..0b839cd --- /dev/null +++ b/dist/models/ErrorItemsValidation.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemsValidationRejectedItems } from './ItemsValidationRejectedItems'; +/** + * + * @export + * @interface ErrorItemsValidation + */ +export interface ErrorItemsValidation { + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof ErrorItemsValidation + */ + macrolocal_cluster_id?: number; + /** + * Отклонённые товары. + * @type {Array} + * @memberof ErrorItemsValidation + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the ErrorItemsValidation interface. + */ +export declare function instanceOfErrorItemsValidation(value: object): value is ErrorItemsValidation; +export declare function ErrorItemsValidationFromJSON(json: any): ErrorItemsValidation; +export declare function ErrorItemsValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorItemsValidation; +export declare function ErrorItemsValidationToJSON(value?: ErrorItemsValidation | null): any; diff --git a/dist/models/ErrorItemsValidation.js b/dist/models/ErrorItemsValidation.js new file mode 100644 index 0000000..becdc1c --- /dev/null +++ b/dist/models/ErrorItemsValidation.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfErrorItemsValidation = instanceOfErrorItemsValidation; +exports.ErrorItemsValidationFromJSON = ErrorItemsValidationFromJSON; +exports.ErrorItemsValidationFromJSONTyped = ErrorItemsValidationFromJSONTyped; +exports.ErrorItemsValidationToJSON = ErrorItemsValidationToJSON; +const ItemsValidationRejectedItems_1 = require("./ItemsValidationRejectedItems"); +/** + * Check if a given object implements the ErrorItemsValidation interface. + */ +function instanceOfErrorItemsValidation(value) { + return true; +} +function ErrorItemsValidationFromJSON(json) { + return ErrorItemsValidationFromJSONTyped(json, false); +} +function ErrorItemsValidationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(ItemsValidationRejectedItems_1.ItemsValidationRejectedItemsFromJSON)), + }; +} +function ErrorItemsValidationToJSON(value) { + if (value == null) { + return value; + } + return { + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(ItemsValidationRejectedItems_1.ItemsValidationRejectedItemsToJSON)), + }; +} diff --git a/dist/models/ExemplarMark.d.ts b/dist/models/ExemplarMark.d.ts new file mode 100644 index 0000000..bf8a699 --- /dev/null +++ b/dist/models/ExemplarMark.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ExemplarMark + */ +export interface ExemplarMark { + /** + * Значение кода маркировки. + * @type {string} + * @memberof ExemplarMark + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof ExemplarMark + */ + mark_type?: string; +} +/** + * Check if a given object implements the ExemplarMark interface. + */ +export declare function instanceOfExemplarMark(value: object): value is ExemplarMark; +export declare function ExemplarMarkFromJSON(json: any): ExemplarMark; +export declare function ExemplarMarkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExemplarMark; +export declare function ExemplarMarkToJSON(value?: ExemplarMark | null): any; diff --git a/dist/models/ExemplarMark.js b/dist/models/ExemplarMark.js new file mode 100644 index 0000000..2bdf2f8 --- /dev/null +++ b/dist/models/ExemplarMark.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfExemplarMark = instanceOfExemplarMark; +exports.ExemplarMarkFromJSON = ExemplarMarkFromJSON; +exports.ExemplarMarkFromJSONTyped = ExemplarMarkFromJSONTyped; +exports.ExemplarMarkToJSON = ExemplarMarkToJSON; +/** + * Check if a given object implements the ExemplarMark interface. + */ +function instanceOfExemplarMark(value) { + return true; +} +function ExemplarMarkFromJSON(json) { + return ExemplarMarkFromJSONTyped(json, false); +} +function ExemplarMarkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + }; +} +function ExemplarMarkToJSON(value) { + if (value == null) { + return value; + } + return { + 'mark': value['mark'], + 'mark_type': value['mark_type'], + }; +} diff --git a/dist/models/ExemplarsMarks.d.ts b/dist/models/ExemplarsMarks.d.ts new file mode 100644 index 0000000..f3516db --- /dev/null +++ b/dist/models/ExemplarsMarks.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ExemplarsMarks + */ +export interface ExemplarsMarks { + /** + * Значение кода маркировки. + * @type {string} + * @memberof ExemplarsMarks + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof ExemplarsMarks + */ + mark_type?: string; +} +/** + * Check if a given object implements the ExemplarsMarks interface. + */ +export declare function instanceOfExemplarsMarks(value: object): value is ExemplarsMarks; +export declare function ExemplarsMarksFromJSON(json: any): ExemplarsMarks; +export declare function ExemplarsMarksFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExemplarsMarks; +export declare function ExemplarsMarksToJSON(value?: ExemplarsMarks | null): any; diff --git a/dist/models/ExemplarsMarks.js b/dist/models/ExemplarsMarks.js new file mode 100644 index 0000000..cb9a1be --- /dev/null +++ b/dist/models/ExemplarsMarks.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfExemplarsMarks = instanceOfExemplarsMarks; +exports.ExemplarsMarksFromJSON = ExemplarsMarksFromJSON; +exports.ExemplarsMarksFromJSONTyped = ExemplarsMarksFromJSONTyped; +exports.ExemplarsMarksToJSON = ExemplarsMarksToJSON; +/** + * Check if a given object implements the ExemplarsMarks interface. + */ +function instanceOfExemplarsMarks(value) { + return true; +} +function ExemplarsMarksFromJSON(json) { + return ExemplarsMarksFromJSONTyped(json, false); +} +function ExemplarsMarksFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + }; +} +function ExemplarsMarksToJSON(value) { + if (value == null) { + return value; + } + return { + 'mark': value['mark'], + 'mark_type': value['mark_type'], + }; +} diff --git a/dist/models/FboPostingFboPostingAnalyticsData.d.ts b/dist/models/FboPostingFboPostingAnalyticsData.d.ts new file mode 100644 index 0000000..f87bd27 --- /dev/null +++ b/dist/models/FboPostingFboPostingAnalyticsData.d.ts @@ -0,0 +1,92 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface FboPostingFboPostingAnalyticsData + */ +export interface FboPostingFboPostingAnalyticsData { + /** + * Город доставки. Только для продавцов из СНГ. + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + city?: string; + /** + * Способ доставки. + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + delivery_type?: string; + /** + * Получатель юридическое лицо: + * - `true` — юридическое лицо, + * - `false` — физическое лицо. + * + * @type {boolean} + * @memberof FboPostingFboPostingAnalyticsData + */ + is_legal?: boolean; + /** + * Наличие подписки Premium. + * @type {boolean} + * @memberof FboPostingFboPostingAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`, + * - `карта Ozon Банка`, + * - `автосписание с карты Ozon Банка при выдаче`, + * - `сохранённой картой при получении`, + * - `Система Быстрых Платежей`, + * - `Ozon Рассрочка`, + * - `оплата на расчётный счёт`, + * - `SberPay`, + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + payment_type_group_name?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof FboPostingFboPostingAnalyticsData + */ + warehouse_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + warehouse_name?: string; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof FboPostingFboPostingAnalyticsData + */ + client_delivery_date_end?: string; +} +/** + * Check if a given object implements the FboPostingFboPostingAnalyticsData interface. + */ +export declare function instanceOfFboPostingFboPostingAnalyticsData(value: object): value is FboPostingFboPostingAnalyticsData; +export declare function FboPostingFboPostingAnalyticsDataFromJSON(json: any): FboPostingFboPostingAnalyticsData; +export declare function FboPostingFboPostingAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FboPostingFboPostingAnalyticsData; +export declare function FboPostingFboPostingAnalyticsDataToJSON(value?: FboPostingFboPostingAnalyticsData | null): any; diff --git a/dist/models/FboPostingFboPostingAnalyticsData.js b/dist/models/FboPostingFboPostingAnalyticsData.js new file mode 100644 index 0000000..67621af --- /dev/null +++ b/dist/models/FboPostingFboPostingAnalyticsData.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFboPostingFboPostingAnalyticsData = instanceOfFboPostingFboPostingAnalyticsData; +exports.FboPostingFboPostingAnalyticsDataFromJSON = FboPostingFboPostingAnalyticsDataFromJSON; +exports.FboPostingFboPostingAnalyticsDataFromJSONTyped = FboPostingFboPostingAnalyticsDataFromJSONTyped; +exports.FboPostingFboPostingAnalyticsDataToJSON = FboPostingFboPostingAnalyticsDataToJSON; +/** + * Check if a given object implements the FboPostingFboPostingAnalyticsData interface. + */ +function instanceOfFboPostingFboPostingAnalyticsData(value) { + return true; +} +function FboPostingFboPostingAnalyticsDataFromJSON(json) { + return FboPostingFboPostingAnalyticsDataFromJSONTyped(json, false); +} +function FboPostingFboPostingAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + }; +} +function FboPostingFboPostingAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + }; +} diff --git a/dist/models/FbpCheckActStateResponseErrorReason.d.ts b/dist/models/FbpCheckActStateResponseErrorReason.d.ts new file mode 100644 index 0000000..2f29e17 --- /dev/null +++ b/dist/models/FbpCheckActStateResponseErrorReason.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ошибка генерации: + * - `ERROR_REASON_UNSPECIFIED` — не определена; + * - `INVALID_COMPANY` — неверная компания; + * - `FILE_NOT_FOUND` — файл не найден; + * - `GENERATE_TIMEOUT_REACHED` — превышено время генерации; + * - `GENERATION_ERROR` — ошибка во время генерации. + * + * @export + */ +export declare const FbpCheckActStateResponseErrorReason: { + readonly ERROR_REASON_UNSPECIFIED: "ERROR_REASON_UNSPECIFIED"; + readonly INVALID_COMPANY: "INVALID_COMPANY"; + readonly FILE_NOT_FOUND: "FILE_NOT_FOUND"; + readonly GENERATE_TIMEOUT_REACHED: "GENERATE_TIMEOUT_REACHED"; + readonly GENERATION_ERROR: "GENERATION_ERROR"; +}; +export type FbpCheckActStateResponseErrorReason = typeof FbpCheckActStateResponseErrorReason[keyof typeof FbpCheckActStateResponseErrorReason]; +export declare function instanceOfFbpCheckActStateResponseErrorReason(value: any): boolean; +export declare function FbpCheckActStateResponseErrorReasonFromJSON(json: any): FbpCheckActStateResponseErrorReason; +export declare function FbpCheckActStateResponseErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpCheckActStateResponseErrorReason; +export declare function FbpCheckActStateResponseErrorReasonToJSON(value?: FbpCheckActStateResponseErrorReason | null): any; diff --git a/dist/models/FbpCheckActStateResponseErrorReason.js b/dist/models/FbpCheckActStateResponseErrorReason.js new file mode 100644 index 0000000..4c16864 --- /dev/null +++ b/dist/models/FbpCheckActStateResponseErrorReason.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FbpCheckActStateResponseErrorReason = void 0; +exports.instanceOfFbpCheckActStateResponseErrorReason = instanceOfFbpCheckActStateResponseErrorReason; +exports.FbpCheckActStateResponseErrorReasonFromJSON = FbpCheckActStateResponseErrorReasonFromJSON; +exports.FbpCheckActStateResponseErrorReasonFromJSONTyped = FbpCheckActStateResponseErrorReasonFromJSONTyped; +exports.FbpCheckActStateResponseErrorReasonToJSON = FbpCheckActStateResponseErrorReasonToJSON; +/** + * Ошибка генерации: + * - `ERROR_REASON_UNSPECIFIED` — не определена; + * - `INVALID_COMPANY` — неверная компания; + * - `FILE_NOT_FOUND` — файл не найден; + * - `GENERATE_TIMEOUT_REACHED` — превышено время генерации; + * - `GENERATION_ERROR` — ошибка во время генерации. + * + * @export + */ +exports.FbpCheckActStateResponseErrorReason = { + ERROR_REASON_UNSPECIFIED: 'ERROR_REASON_UNSPECIFIED', + INVALID_COMPANY: 'INVALID_COMPANY', + FILE_NOT_FOUND: 'FILE_NOT_FOUND', + GENERATE_TIMEOUT_REACHED: 'GENERATE_TIMEOUT_REACHED', + GENERATION_ERROR: 'GENERATION_ERROR' +}; +function instanceOfFbpCheckActStateResponseErrorReason(value) { + for (const key in exports.FbpCheckActStateResponseErrorReason) { + if (Object.prototype.hasOwnProperty.call(exports.FbpCheckActStateResponseErrorReason, key)) { + if (exports.FbpCheckActStateResponseErrorReason[key] === value) { + return true; + } + } + } + return false; +} +function FbpCheckActStateResponseErrorReasonFromJSON(json) { + return FbpCheckActStateResponseErrorReasonFromJSONTyped(json, false); +} +function FbpCheckActStateResponseErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function FbpCheckActStateResponseErrorReasonToJSON(value) { + return value; +} diff --git a/dist/models/FbpCheckConsignmentNoteStateResponseStateType.d.ts b/dist/models/FbpCheckConsignmentNoteStateResponseStateType.d.ts new file mode 100644 index 0000000..cdfeff1 --- /dev/null +++ b/dist/models/FbpCheckConsignmentNoteStateResponseStateType.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации: + * - `STATE_TYPE_UNSPECIFIED` — не определён; + * - `IN_PROGRESS` — в процессе; + * - `FINISHED` — завершилась успешно; + * - `FAILED` — ошибка. + * + * @export + */ +export declare const FbpCheckConsignmentNoteStateResponseStateType: { + readonly STATE_TYPE_UNSPECIFIED: "STATE_TYPE_UNSPECIFIED"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FINISHED: "FINISHED"; + readonly FAILED: "FAILED"; +}; +export type FbpCheckConsignmentNoteStateResponseStateType = typeof FbpCheckConsignmentNoteStateResponseStateType[keyof typeof FbpCheckConsignmentNoteStateResponseStateType]; +export declare function instanceOfFbpCheckConsignmentNoteStateResponseStateType(value: any): boolean; +export declare function FbpCheckConsignmentNoteStateResponseStateTypeFromJSON(json: any): FbpCheckConsignmentNoteStateResponseStateType; +export declare function FbpCheckConsignmentNoteStateResponseStateTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpCheckConsignmentNoteStateResponseStateType; +export declare function FbpCheckConsignmentNoteStateResponseStateTypeToJSON(value?: FbpCheckConsignmentNoteStateResponseStateType | null): any; diff --git a/dist/models/FbpCheckConsignmentNoteStateResponseStateType.js b/dist/models/FbpCheckConsignmentNoteStateResponseStateType.js new file mode 100644 index 0000000..5e4cc8a --- /dev/null +++ b/dist/models/FbpCheckConsignmentNoteStateResponseStateType.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FbpCheckConsignmentNoteStateResponseStateType = void 0; +exports.instanceOfFbpCheckConsignmentNoteStateResponseStateType = instanceOfFbpCheckConsignmentNoteStateResponseStateType; +exports.FbpCheckConsignmentNoteStateResponseStateTypeFromJSON = FbpCheckConsignmentNoteStateResponseStateTypeFromJSON; +exports.FbpCheckConsignmentNoteStateResponseStateTypeFromJSONTyped = FbpCheckConsignmentNoteStateResponseStateTypeFromJSONTyped; +exports.FbpCheckConsignmentNoteStateResponseStateTypeToJSON = FbpCheckConsignmentNoteStateResponseStateTypeToJSON; +/** + * Статус генерации: + * - `STATE_TYPE_UNSPECIFIED` — не определён; + * - `IN_PROGRESS` — в процессе; + * - `FINISHED` — завершилась успешно; + * - `FAILED` — ошибка. + * + * @export + */ +exports.FbpCheckConsignmentNoteStateResponseStateType = { + STATE_TYPE_UNSPECIFIED: 'STATE_TYPE_UNSPECIFIED', + IN_PROGRESS: 'IN_PROGRESS', + FINISHED: 'FINISHED', + FAILED: 'FAILED' +}; +function instanceOfFbpCheckConsignmentNoteStateResponseStateType(value) { + for (const key in exports.FbpCheckConsignmentNoteStateResponseStateType) { + if (Object.prototype.hasOwnProperty.call(exports.FbpCheckConsignmentNoteStateResponseStateType, key)) { + if (exports.FbpCheckConsignmentNoteStateResponseStateType[key] === value) { + return true; + } + } + } + return false; +} +function FbpCheckConsignmentNoteStateResponseStateTypeFromJSON(json) { + return FbpCheckConsignmentNoteStateResponseStateTypeFromJSONTyped(json, false); +} +function FbpCheckConsignmentNoteStateResponseStateTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function FbpCheckConsignmentNoteStateResponseStateTypeToJSON(value) { + return value; +} diff --git a/dist/models/FbpCreateActResponseCreateActErrorReason.d.ts b/dist/models/FbpCreateActResponseCreateActErrorReason.d.ts new file mode 100644 index 0000000..f6168c3 --- /dev/null +++ b/dist/models/FbpCreateActResponseCreateActErrorReason.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const FbpCreateActResponseCreateActErrorReason: { + readonly CREATE_ACT_ERROR_REASON_UNSPECIFIED: "CREATE_ACT_ERROR_REASON_UNSPECIFIED"; + readonly INVALID_ORDER_TYPE: "INVALID_ORDER_TYPE"; +}; +export type FbpCreateActResponseCreateActErrorReason = typeof FbpCreateActResponseCreateActErrorReason[keyof typeof FbpCreateActResponseCreateActErrorReason]; +export declare function instanceOfFbpCreateActResponseCreateActErrorReason(value: any): boolean; +export declare function FbpCreateActResponseCreateActErrorReasonFromJSON(json: any): FbpCreateActResponseCreateActErrorReason; +export declare function FbpCreateActResponseCreateActErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpCreateActResponseCreateActErrorReason; +export declare function FbpCreateActResponseCreateActErrorReasonToJSON(value?: FbpCreateActResponseCreateActErrorReason | null): any; diff --git a/dist/models/FbpCreateActResponseCreateActErrorReason.js b/dist/models/FbpCreateActResponseCreateActErrorReason.js new file mode 100644 index 0000000..ab61bae --- /dev/null +++ b/dist/models/FbpCreateActResponseCreateActErrorReason.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FbpCreateActResponseCreateActErrorReason = void 0; +exports.instanceOfFbpCreateActResponseCreateActErrorReason = instanceOfFbpCreateActResponseCreateActErrorReason; +exports.FbpCreateActResponseCreateActErrorReasonFromJSON = FbpCreateActResponseCreateActErrorReasonFromJSON; +exports.FbpCreateActResponseCreateActErrorReasonFromJSONTyped = FbpCreateActResponseCreateActErrorReasonFromJSONTyped; +exports.FbpCreateActResponseCreateActErrorReasonToJSON = FbpCreateActResponseCreateActErrorReasonToJSON; +/** + * + * @export + */ +exports.FbpCreateActResponseCreateActErrorReason = { + CREATE_ACT_ERROR_REASON_UNSPECIFIED: 'CREATE_ACT_ERROR_REASON_UNSPECIFIED', + INVALID_ORDER_TYPE: 'INVALID_ORDER_TYPE' +}; +function instanceOfFbpCreateActResponseCreateActErrorReason(value) { + for (const key in exports.FbpCreateActResponseCreateActErrorReason) { + if (Object.prototype.hasOwnProperty.call(exports.FbpCreateActResponseCreateActErrorReason, key)) { + if (exports.FbpCreateActResponseCreateActErrorReason[key] === value) { + return true; + } + } + } + return false; +} +function FbpCreateActResponseCreateActErrorReasonFromJSON(json) { + return FbpCreateActResponseCreateActErrorReasonFromJSONTyped(json, false); +} +function FbpCreateActResponseCreateActErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function FbpCreateActResponseCreateActErrorReasonToJSON(value) { + return value; +} diff --git a/dist/models/FbpDraftDropOffPointListResponseDropOffPoint.d.ts b/dist/models/FbpDraftDropOffPointListResponseDropOffPoint.d.ts new file mode 100644 index 0000000..6000156 --- /dev/null +++ b/dist/models/FbpDraftDropOffPointListResponseDropOffPoint.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbpDraftDropOffPointListResponseDropOffPoint + */ +export interface FbpDraftDropOffPointListResponseDropOffPoint { + /** + * Город. + * @type {string} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + city?: string; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + drop_off_point_id?: number; + /** + * Ближайшая дата отгрузки. + * @type {string} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + nearest_drop_off_date?: string; + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + point_address?: string; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof FbpDraftDropOffPointListResponseDropOffPoint + */ + province_uuid?: string; +} +/** + * Check if a given object implements the FbpDraftDropOffPointListResponseDropOffPoint interface. + */ +export declare function instanceOfFbpDraftDropOffPointListResponseDropOffPoint(value: object): value is FbpDraftDropOffPointListResponseDropOffPoint; +export declare function FbpDraftDropOffPointListResponseDropOffPointFromJSON(json: any): FbpDraftDropOffPointListResponseDropOffPoint; +export declare function FbpDraftDropOffPointListResponseDropOffPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpDraftDropOffPointListResponseDropOffPoint; +export declare function FbpDraftDropOffPointListResponseDropOffPointToJSON(value?: FbpDraftDropOffPointListResponseDropOffPoint | null): any; diff --git a/dist/models/FbpDraftDropOffPointListResponseDropOffPoint.js b/dist/models/FbpDraftDropOffPointListResponseDropOffPoint.js new file mode 100644 index 0000000..44222b2 --- /dev/null +++ b/dist/models/FbpDraftDropOffPointListResponseDropOffPoint.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbpDraftDropOffPointListResponseDropOffPoint = instanceOfFbpDraftDropOffPointListResponseDropOffPoint; +exports.FbpDraftDropOffPointListResponseDropOffPointFromJSON = FbpDraftDropOffPointListResponseDropOffPointFromJSON; +exports.FbpDraftDropOffPointListResponseDropOffPointFromJSONTyped = FbpDraftDropOffPointListResponseDropOffPointFromJSONTyped; +exports.FbpDraftDropOffPointListResponseDropOffPointToJSON = FbpDraftDropOffPointListResponseDropOffPointToJSON; +/** + * Check if a given object implements the FbpDraftDropOffPointListResponseDropOffPoint interface. + */ +function instanceOfFbpDraftDropOffPointListResponseDropOffPoint(value) { + return true; +} +function FbpDraftDropOffPointListResponseDropOffPointFromJSON(json) { + return FbpDraftDropOffPointListResponseDropOffPointFromJSONTyped(json, false); +} +function FbpDraftDropOffPointListResponseDropOffPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'drop_off_point_id': json['drop_off_point_id'] == null ? undefined : json['drop_off_point_id'], + 'nearest_drop_off_date': json['nearest_drop_off_date'] == null ? undefined : json['nearest_drop_off_date'], + 'point_address': json['point_address'] == null ? undefined : json['point_address'], + 'province_uuid': json['province_uuid'] == null ? undefined : json['province_uuid'], + }; +} +function FbpDraftDropOffPointListResponseDropOffPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'drop_off_point_id': value['drop_off_point_id'], + 'nearest_drop_off_date': value['nearest_drop_off_date'], + 'point_address': value['point_address'], + 'province_uuid': value['province_uuid'], + }; +} diff --git a/dist/models/FbpDraftDropOffProvinceListResponseProvince.d.ts b/dist/models/FbpDraftDropOffProvinceListResponseProvince.d.ts new file mode 100644 index 0000000..7da306f --- /dev/null +++ b/dist/models/FbpDraftDropOffProvinceListResponseProvince.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbpDraftDropOffProvinceListResponseProvince + */ +export interface FbpDraftDropOffProvinceListResponseProvince { + /** + * Название провинции. + * @type {string} + * @memberof FbpDraftDropOffProvinceListResponseProvince + */ + name?: string; + /** + * Количество пунктов на карте. + * @type {number} + * @memberof FbpDraftDropOffProvinceListResponseProvince + */ + points_count?: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof FbpDraftDropOffProvinceListResponseProvince + */ + province_uuid?: string; +} +/** + * Check if a given object implements the FbpDraftDropOffProvinceListResponseProvince interface. + */ +export declare function instanceOfFbpDraftDropOffProvinceListResponseProvince(value: object): value is FbpDraftDropOffProvinceListResponseProvince; +export declare function FbpDraftDropOffProvinceListResponseProvinceFromJSON(json: any): FbpDraftDropOffProvinceListResponseProvince; +export declare function FbpDraftDropOffProvinceListResponseProvinceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpDraftDropOffProvinceListResponseProvince; +export declare function FbpDraftDropOffProvinceListResponseProvinceToJSON(value?: FbpDraftDropOffProvinceListResponseProvince | null): any; diff --git a/dist/models/FbpDraftDropOffProvinceListResponseProvince.js b/dist/models/FbpDraftDropOffProvinceListResponseProvince.js new file mode 100644 index 0000000..217c91b --- /dev/null +++ b/dist/models/FbpDraftDropOffProvinceListResponseProvince.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbpDraftDropOffProvinceListResponseProvince = instanceOfFbpDraftDropOffProvinceListResponseProvince; +exports.FbpDraftDropOffProvinceListResponseProvinceFromJSON = FbpDraftDropOffProvinceListResponseProvinceFromJSON; +exports.FbpDraftDropOffProvinceListResponseProvinceFromJSONTyped = FbpDraftDropOffProvinceListResponseProvinceFromJSONTyped; +exports.FbpDraftDropOffProvinceListResponseProvinceToJSON = FbpDraftDropOffProvinceListResponseProvinceToJSON; +/** + * Check if a given object implements the FbpDraftDropOffProvinceListResponseProvince interface. + */ +function instanceOfFbpDraftDropOffProvinceListResponseProvince(value) { + return true; +} +function FbpDraftDropOffProvinceListResponseProvinceFromJSON(json) { + return FbpDraftDropOffProvinceListResponseProvinceFromJSONTyped(json, false); +} +function FbpDraftDropOffProvinceListResponseProvinceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'points_count': json['points_count'] == null ? undefined : json['points_count'], + 'province_uuid': json['province_uuid'] == null ? undefined : json['province_uuid'], + }; +} +function FbpDraftDropOffProvinceListResponseProvinceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'points_count': value['points_count'], + 'province_uuid': value['province_uuid'], + }; +} diff --git a/dist/models/FbpDraftGetResponseDeclineReason.d.ts b/dist/models/FbpDraftGetResponseDeclineReason.d.ts new file mode 100644 index 0000000..7cfcf83 --- /dev/null +++ b/dist/models/FbpDraftGetResponseDeclineReason.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина отказа. + * @export + * @interface FbpDraftGetResponseDeclineReason + */ +export interface FbpDraftGetResponseDeclineReason { + /** + * Некорректные идентификаторы SKU. + * @type {Array} + * @memberof FbpDraftGetResponseDeclineReason + */ + failed_sku_ids?: Array; + /** + * Текст отказа. + * @type {string} + * @memberof FbpDraftGetResponseDeclineReason + */ + message?: string; +} +/** + * Check if a given object implements the FbpDraftGetResponseDeclineReason interface. + */ +export declare function instanceOfFbpDraftGetResponseDeclineReason(value: object): value is FbpDraftGetResponseDeclineReason; +export declare function FbpDraftGetResponseDeclineReasonFromJSON(json: any): FbpDraftGetResponseDeclineReason; +export declare function FbpDraftGetResponseDeclineReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpDraftGetResponseDeclineReason; +export declare function FbpDraftGetResponseDeclineReasonToJSON(value?: FbpDraftGetResponseDeclineReason | null): any; diff --git a/dist/models/FbpDraftGetResponseDeclineReason.js b/dist/models/FbpDraftGetResponseDeclineReason.js new file mode 100644 index 0000000..623424f --- /dev/null +++ b/dist/models/FbpDraftGetResponseDeclineReason.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbpDraftGetResponseDeclineReason = instanceOfFbpDraftGetResponseDeclineReason; +exports.FbpDraftGetResponseDeclineReasonFromJSON = FbpDraftGetResponseDeclineReasonFromJSON; +exports.FbpDraftGetResponseDeclineReasonFromJSONTyped = FbpDraftGetResponseDeclineReasonFromJSONTyped; +exports.FbpDraftGetResponseDeclineReasonToJSON = FbpDraftGetResponseDeclineReasonToJSON; +/** + * Check if a given object implements the FbpDraftGetResponseDeclineReason interface. + */ +function instanceOfFbpDraftGetResponseDeclineReason(value) { + return true; +} +function FbpDraftGetResponseDeclineReasonFromJSON(json) { + return FbpDraftGetResponseDeclineReasonFromJSONTyped(json, false); +} +function FbpDraftGetResponseDeclineReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'failed_sku_ids': json['failed_sku_ids'] == null ? undefined : json['failed_sku_ids'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function FbpDraftGetResponseDeclineReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'failed_sku_ids': value['failed_sku_ids'], + 'message': value['message'], + }; +} diff --git a/dist/models/FbpGetLabelResponseLabelCreationStateTypeEnum.d.ts b/dist/models/FbpGetLabelResponseLabelCreationStateTypeEnum.d.ts new file mode 100644 index 0000000..49c09fe --- /dev/null +++ b/dist/models/FbpGetLabelResponseLabelCreationStateTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус задания на генерацию этикеток: + * - `UNSPECIFIED` — не определён; + * - `IN_PROGRESS` — в процессе генерации; + * - `FINISHED` — генерация завершилась успешно; + * - `FAILED` — генерация завершилась с ошибкой. + * + * @export + */ +export declare const FbpGetLabelResponseLabelCreationStateTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FINISHED: "FINISHED"; + readonly FAILED: "FAILED"; +}; +export type FbpGetLabelResponseLabelCreationStateTypeEnum = typeof FbpGetLabelResponseLabelCreationStateTypeEnum[keyof typeof FbpGetLabelResponseLabelCreationStateTypeEnum]; +export declare function instanceOfFbpGetLabelResponseLabelCreationStateTypeEnum(value: any): boolean; +export declare function FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON(json: any): FbpGetLabelResponseLabelCreationStateTypeEnum; +export declare function FbpGetLabelResponseLabelCreationStateTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpGetLabelResponseLabelCreationStateTypeEnum; +export declare function FbpGetLabelResponseLabelCreationStateTypeEnumToJSON(value?: FbpGetLabelResponseLabelCreationStateTypeEnum | null): any; diff --git a/dist/models/FbpGetLabelResponseLabelCreationStateTypeEnum.js b/dist/models/FbpGetLabelResponseLabelCreationStateTypeEnum.js new file mode 100644 index 0000000..3f56f46 --- /dev/null +++ b/dist/models/FbpGetLabelResponseLabelCreationStateTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FbpGetLabelResponseLabelCreationStateTypeEnum = void 0; +exports.instanceOfFbpGetLabelResponseLabelCreationStateTypeEnum = instanceOfFbpGetLabelResponseLabelCreationStateTypeEnum; +exports.FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON = FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON; +exports.FbpGetLabelResponseLabelCreationStateTypeEnumFromJSONTyped = FbpGetLabelResponseLabelCreationStateTypeEnumFromJSONTyped; +exports.FbpGetLabelResponseLabelCreationStateTypeEnumToJSON = FbpGetLabelResponseLabelCreationStateTypeEnumToJSON; +/** + * Статус задания на генерацию этикеток: + * - `UNSPECIFIED` — не определён; + * - `IN_PROGRESS` — в процессе генерации; + * - `FINISHED` — генерация завершилась успешно; + * - `FAILED` — генерация завершилась с ошибкой. + * + * @export + */ +exports.FbpGetLabelResponseLabelCreationStateTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + IN_PROGRESS: 'IN_PROGRESS', + FINISHED: 'FINISHED', + FAILED: 'FAILED' +}; +function instanceOfFbpGetLabelResponseLabelCreationStateTypeEnum(value) { + for (const key in exports.FbpGetLabelResponseLabelCreationStateTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.FbpGetLabelResponseLabelCreationStateTypeEnum, key)) { + if (exports.FbpGetLabelResponseLabelCreationStateTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON(json) { + return FbpGetLabelResponseLabelCreationStateTypeEnumFromJSONTyped(json, false); +} +function FbpGetLabelResponseLabelCreationStateTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function FbpGetLabelResponseLabelCreationStateTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/FbpWarehouseListResponseAddressDetailing.d.ts b/dist/models/FbpWarehouseListResponseAddressDetailing.d.ts new file mode 100644 index 0000000..e9ff056 --- /dev/null +++ b/dist/models/FbpWarehouseListResponseAddressDetailing.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали адреса. + * @export + * @interface FbpWarehouseListResponseAddressDetailing + */ +export interface FbpWarehouseListResponseAddressDetailing { + /** + * Город. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + city?: string; + /** + * Страна. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + country?: string; + /** + * Дом. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + house?: string; + /** + * Регион. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + region?: string; + /** + * Улица. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + street?: string; + /** + * Почтовый индекс. + * @type {string} + * @memberof FbpWarehouseListResponseAddressDetailing + */ + zipcode?: string; +} +/** + * Check if a given object implements the FbpWarehouseListResponseAddressDetailing interface. + */ +export declare function instanceOfFbpWarehouseListResponseAddressDetailing(value: object): value is FbpWarehouseListResponseAddressDetailing; +export declare function FbpWarehouseListResponseAddressDetailingFromJSON(json: any): FbpWarehouseListResponseAddressDetailing; +export declare function FbpWarehouseListResponseAddressDetailingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpWarehouseListResponseAddressDetailing; +export declare function FbpWarehouseListResponseAddressDetailingToJSON(value?: FbpWarehouseListResponseAddressDetailing | null): any; diff --git a/dist/models/FbpWarehouseListResponseAddressDetailing.js b/dist/models/FbpWarehouseListResponseAddressDetailing.js new file mode 100644 index 0000000..b2689c2 --- /dev/null +++ b/dist/models/FbpWarehouseListResponseAddressDetailing.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbpWarehouseListResponseAddressDetailing = instanceOfFbpWarehouseListResponseAddressDetailing; +exports.FbpWarehouseListResponseAddressDetailingFromJSON = FbpWarehouseListResponseAddressDetailingFromJSON; +exports.FbpWarehouseListResponseAddressDetailingFromJSONTyped = FbpWarehouseListResponseAddressDetailingFromJSONTyped; +exports.FbpWarehouseListResponseAddressDetailingToJSON = FbpWarehouseListResponseAddressDetailingToJSON; +/** + * Check if a given object implements the FbpWarehouseListResponseAddressDetailing interface. + */ +function instanceOfFbpWarehouseListResponseAddressDetailing(value) { + return true; +} +function FbpWarehouseListResponseAddressDetailingFromJSON(json) { + return FbpWarehouseListResponseAddressDetailingFromJSONTyped(json, false); +} +function FbpWarehouseListResponseAddressDetailingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'country': json['country'] == null ? undefined : json['country'], + 'house': json['house'] == null ? undefined : json['house'], + 'region': json['region'] == null ? undefined : json['region'], + 'street': json['street'] == null ? undefined : json['street'], + 'zipcode': json['zipcode'] == null ? undefined : json['zipcode'], + }; +} +function FbpWarehouseListResponseAddressDetailingToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'country': value['country'], + 'house': value['house'], + 'region': value['region'], + 'street': value['street'], + 'zipcode': value['zipcode'], + }; +} diff --git a/dist/models/FbpWarehouseListResponseWarehouse.d.ts b/dist/models/FbpWarehouseListResponseWarehouse.d.ts new file mode 100644 index 0000000..418963b --- /dev/null +++ b/dist/models/FbpWarehouseListResponseWarehouse.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpWarehouseListResponseAddressDetailing } from './FbpWarehouseListResponseAddressDetailing'; +/** + * + * @export + * @interface FbpWarehouseListResponseWarehouse + */ +export interface FbpWarehouseListResponseWarehouse { + /** + * + * @type {FbpWarehouseListResponseAddressDetailing} + * @memberof FbpWarehouseListResponseWarehouse + */ + address_detailing?: FbpWarehouseListResponseAddressDetailing; + /** + * Идентификатор склада. + * @type {number} + * @memberof FbpWarehouseListResponseWarehouse + */ + id?: number; + /** + * `true`, если склад бондовый. + * + * @type {boolean} + * @memberof FbpWarehouseListResponseWarehouse + */ + is_bonded?: boolean; + /** + * Название склада. + * @type {string} + * @memberof FbpWarehouseListResponseWarehouse + */ + name?: string; + /** + * Название партнёра. + * @type {string} + * @memberof FbpWarehouseListResponseWarehouse + */ + partner_name?: string; + /** + * Тип поставки. + * @type {Array} + * @memberof FbpWarehouseListResponseWarehouse + */ + supply_types?: Array; + /** + * Часовой пояс склада. + * @type {string} + * @memberof FbpWarehouseListResponseWarehouse + */ + timezone_name?: string; +} +/** + * Check if a given object implements the FbpWarehouseListResponseWarehouse interface. + */ +export declare function instanceOfFbpWarehouseListResponseWarehouse(value: object): value is FbpWarehouseListResponseWarehouse; +export declare function FbpWarehouseListResponseWarehouseFromJSON(json: any): FbpWarehouseListResponseWarehouse; +export declare function FbpWarehouseListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbpWarehouseListResponseWarehouse; +export declare function FbpWarehouseListResponseWarehouseToJSON(value?: FbpWarehouseListResponseWarehouse | null): any; diff --git a/dist/models/FbpWarehouseListResponseWarehouse.js b/dist/models/FbpWarehouseListResponseWarehouse.js new file mode 100644 index 0000000..07308a5 --- /dev/null +++ b/dist/models/FbpWarehouseListResponseWarehouse.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbpWarehouseListResponseWarehouse = instanceOfFbpWarehouseListResponseWarehouse; +exports.FbpWarehouseListResponseWarehouseFromJSON = FbpWarehouseListResponseWarehouseFromJSON; +exports.FbpWarehouseListResponseWarehouseFromJSONTyped = FbpWarehouseListResponseWarehouseFromJSONTyped; +exports.FbpWarehouseListResponseWarehouseToJSON = FbpWarehouseListResponseWarehouseToJSON; +const FbpWarehouseListResponseAddressDetailing_1 = require("./FbpWarehouseListResponseAddressDetailing"); +/** + * Check if a given object implements the FbpWarehouseListResponseWarehouse interface. + */ +function instanceOfFbpWarehouseListResponseWarehouse(value) { + return true; +} +function FbpWarehouseListResponseWarehouseFromJSON(json) { + return FbpWarehouseListResponseWarehouseFromJSONTyped(json, false); +} +function FbpWarehouseListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_detailing': json['address_detailing'] == null ? undefined : (0, FbpWarehouseListResponseAddressDetailing_1.FbpWarehouseListResponseAddressDetailingFromJSON)(json['address_detailing']), + 'id': json['id'] == null ? undefined : json['id'], + 'is_bonded': json['is_bonded'] == null ? undefined : json['is_bonded'], + 'name': json['name'] == null ? undefined : json['name'], + 'partner_name': json['partner_name'] == null ? undefined : json['partner_name'], + 'supply_types': json['supply_types'] == null ? undefined : json['supply_types'], + 'timezone_name': json['timezone_name'] == null ? undefined : json['timezone_name'], + }; +} +function FbpWarehouseListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_detailing': (0, FbpWarehouseListResponseAddressDetailing_1.FbpWarehouseListResponseAddressDetailingToJSON)(value['address_detailing']), + 'id': value['id'], + 'is_bonded': value['is_bonded'], + 'name': value['name'], + 'partner_name': value['partner_name'], + 'supply_types': value['supply_types'], + 'timezone_name': value['timezone_name'], + }; +} diff --git a/dist/models/Fbpv1DeliveryDetails.d.ts b/dist/models/Fbpv1DeliveryDetails.d.ts new file mode 100644 index 0000000..7f8b52b --- /dev/null +++ b/dist/models/Fbpv1DeliveryDetails.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryDetailsPickUpDetails } from './V1DeliveryDetailsPickUpDetails'; +import type { DeliveryDetailsSupplyType } from './DeliveryDetailsSupplyType'; +import type { V1DeliveryDetailsDirectDetails } from './V1DeliveryDetailsDirectDetails'; +import type { DeliveryDetailsDropOffPointDetails } from './DeliveryDetailsDropOffPointDetails'; +/** + * Детали доставки. + * @export + * @interface Fbpv1DeliveryDetails + */ +export interface Fbpv1DeliveryDetails { + /** + * + * @type {V1DeliveryDetailsDirectDetails} + * @memberof Fbpv1DeliveryDetails + */ + direct_details?: V1DeliveryDetailsDirectDetails; + /** + * + * @type {DeliveryDetailsDropOffPointDetails} + * @memberof Fbpv1DeliveryDetails + */ + drop_off_point?: DeliveryDetailsDropOffPointDetails; + /** + * + * @type {V1DeliveryDetailsPickUpDetails} + * @memberof Fbpv1DeliveryDetails + */ + pickup_details?: V1DeliveryDetailsPickUpDetails; + /** + * + * @type {DeliveryDetailsSupplyType} + * @memberof Fbpv1DeliveryDetails + */ + supply_type?: DeliveryDetailsSupplyType; +} +/** + * Check if a given object implements the Fbpv1DeliveryDetails interface. + */ +export declare function instanceOfFbpv1DeliveryDetails(value: object): value is Fbpv1DeliveryDetails; +export declare function Fbpv1DeliveryDetailsFromJSON(json: any): Fbpv1DeliveryDetails; +export declare function Fbpv1DeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbpv1DeliveryDetails; +export declare function Fbpv1DeliveryDetailsToJSON(value?: Fbpv1DeliveryDetails | null): any; diff --git a/dist/models/Fbpv1DeliveryDetails.js b/dist/models/Fbpv1DeliveryDetails.js new file mode 100644 index 0000000..2f2a8cf --- /dev/null +++ b/dist/models/Fbpv1DeliveryDetails.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbpv1DeliveryDetails = instanceOfFbpv1DeliveryDetails; +exports.Fbpv1DeliveryDetailsFromJSON = Fbpv1DeliveryDetailsFromJSON; +exports.Fbpv1DeliveryDetailsFromJSONTyped = Fbpv1DeliveryDetailsFromJSONTyped; +exports.Fbpv1DeliveryDetailsToJSON = Fbpv1DeliveryDetailsToJSON; +const V1DeliveryDetailsPickUpDetails_1 = require("./V1DeliveryDetailsPickUpDetails"); +const DeliveryDetailsSupplyType_1 = require("./DeliveryDetailsSupplyType"); +const V1DeliveryDetailsDirectDetails_1 = require("./V1DeliveryDetailsDirectDetails"); +const DeliveryDetailsDropOffPointDetails_1 = require("./DeliveryDetailsDropOffPointDetails"); +/** + * Check if a given object implements the Fbpv1DeliveryDetails interface. + */ +function instanceOfFbpv1DeliveryDetails(value) { + return true; +} +function Fbpv1DeliveryDetailsFromJSON(json) { + return Fbpv1DeliveryDetailsFromJSONTyped(json, false); +} +function Fbpv1DeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'direct_details': json['direct_details'] == null ? undefined : (0, V1DeliveryDetailsDirectDetails_1.V1DeliveryDetailsDirectDetailsFromJSON)(json['direct_details']), + 'drop_off_point': json['drop_off_point'] == null ? undefined : (0, DeliveryDetailsDropOffPointDetails_1.DeliveryDetailsDropOffPointDetailsFromJSON)(json['drop_off_point']), + 'pickup_details': json['pickup_details'] == null ? undefined : (0, V1DeliveryDetailsPickUpDetails_1.V1DeliveryDetailsPickUpDetailsFromJSON)(json['pickup_details']), + 'supply_type': json['supply_type'] == null ? undefined : (0, DeliveryDetailsSupplyType_1.DeliveryDetailsSupplyTypeFromJSON)(json['supply_type']), + }; +} +function Fbpv1DeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'direct_details': (0, V1DeliveryDetailsDirectDetails_1.V1DeliveryDetailsDirectDetailsToJSON)(value['direct_details']), + 'drop_off_point': (0, DeliveryDetailsDropOffPointDetails_1.DeliveryDetailsDropOffPointDetailsToJSON)(value['drop_off_point']), + 'pickup_details': (0, V1DeliveryDetailsPickUpDetails_1.V1DeliveryDetailsPickUpDetailsToJSON)(value['pickup_details']), + 'supply_type': (0, DeliveryDetailsSupplyType_1.DeliveryDetailsSupplyTypeToJSON)(value['supply_type']), + }; +} diff --git a/dist/models/Fbpv1Timeslot.d.ts b/dist/models/Fbpv1Timeslot.d.ts new file mode 100644 index 0000000..2e4cd26 --- /dev/null +++ b/dist/models/Fbpv1Timeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Fbpv1Timeslot + */ +export interface Fbpv1Timeslot { + /** + * Дата окончания таймслота. + * @type {string} + * @memberof Fbpv1Timeslot + */ + timeslot_end?: string; + /** + * Дата начала таймслота. + * @type {string} + * @memberof Fbpv1Timeslot + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the Fbpv1Timeslot interface. + */ +export declare function instanceOfFbpv1Timeslot(value: object): value is Fbpv1Timeslot; +export declare function Fbpv1TimeslotFromJSON(json: any): Fbpv1Timeslot; +export declare function Fbpv1TimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbpv1Timeslot; +export declare function Fbpv1TimeslotToJSON(value?: Fbpv1Timeslot | null): any; diff --git a/dist/models/Fbpv1Timeslot.js b/dist/models/Fbpv1Timeslot.js new file mode 100644 index 0000000..1fc42a4 --- /dev/null +++ b/dist/models/Fbpv1Timeslot.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbpv1Timeslot = instanceOfFbpv1Timeslot; +exports.Fbpv1TimeslotFromJSON = Fbpv1TimeslotFromJSON; +exports.Fbpv1TimeslotFromJSONTyped = Fbpv1TimeslotFromJSONTyped; +exports.Fbpv1TimeslotToJSON = Fbpv1TimeslotToJSON; +/** + * Check if a given object implements the Fbpv1Timeslot interface. + */ +function instanceOfFbpv1Timeslot(value) { + return true; +} +function Fbpv1TimeslotFromJSON(json) { + return Fbpv1TimeslotFromJSONTyped(json, false); +} +function Fbpv1TimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +function Fbpv1TimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/FbsPostingBarcodes.d.ts b/dist/models/FbsPostingBarcodes.d.ts new file mode 100644 index 0000000..f79aea6 --- /dev/null +++ b/dist/models/FbsPostingBarcodes.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Штрихкоды отправления. + * @export + * @interface FbsPostingBarcodes + */ +export interface FbsPostingBarcodes { + /** + * Нижний штрихкод на маркировке отправления. + * @type {string} + * @memberof FbsPostingBarcodes + */ + lower_barcode?: string; + /** + * Верхний штрихкод на маркировке отправления. + * @type {string} + * @memberof FbsPostingBarcodes + */ + upper_barcode?: string; +} +/** + * Check if a given object implements the FbsPostingBarcodes interface. + */ +export declare function instanceOfFbsPostingBarcodes(value: object): value is FbsPostingBarcodes; +export declare function FbsPostingBarcodesFromJSON(json: any): FbsPostingBarcodes; +export declare function FbsPostingBarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingBarcodes; +export declare function FbsPostingBarcodesToJSON(value?: FbsPostingBarcodes | null): any; diff --git a/dist/models/FbsPostingBarcodes.js b/dist/models/FbsPostingBarcodes.js new file mode 100644 index 0000000..384049b --- /dev/null +++ b/dist/models/FbsPostingBarcodes.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingBarcodes = instanceOfFbsPostingBarcodes; +exports.FbsPostingBarcodesFromJSON = FbsPostingBarcodesFromJSON; +exports.FbsPostingBarcodesFromJSONTyped = FbsPostingBarcodesFromJSONTyped; +exports.FbsPostingBarcodesToJSON = FbsPostingBarcodesToJSON; +/** + * Check if a given object implements the FbsPostingBarcodes interface. + */ +function instanceOfFbsPostingBarcodes(value) { + return true; +} +function FbsPostingBarcodesFromJSON(json) { + return FbsPostingBarcodesFromJSONTyped(json, false); +} +function FbsPostingBarcodesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lower_barcode': json['lower_barcode'] == null ? undefined : json['lower_barcode'], + 'upper_barcode': json['upper_barcode'] == null ? undefined : json['upper_barcode'], + }; +} +function FbsPostingBarcodesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lower_barcode': value['lower_barcode'], + 'upper_barcode': value['upper_barcode'], + }; +} diff --git a/dist/models/FbsPostingDetailCourier.d.ts b/dist/models/FbsPostingDetailCourier.d.ts new file mode 100644 index 0000000..bbb93cb --- /dev/null +++ b/dist/models/FbsPostingDetailCourier.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о курьере. + * @export + * @interface FbsPostingDetailCourier + */ +export interface FbsPostingDetailCourier { + /** + * Модель автомобиля. + * @type {string} + * @memberof FbsPostingDetailCourier + */ + car_model?: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof FbsPostingDetailCourier + */ + car_number?: string; + /** + * Полное имя курьера. + * @type {string} + * @memberof FbsPostingDetailCourier + */ + name?: string; + /** + * Телефон курьера. + * + * Всегда возвращает пустую строку `""`. + * + * @type {string} + * @memberof FbsPostingDetailCourier + */ + phone?: string; +} +/** + * Check if a given object implements the FbsPostingDetailCourier interface. + */ +export declare function instanceOfFbsPostingDetailCourier(value: object): value is FbsPostingDetailCourier; +export declare function FbsPostingDetailCourierFromJSON(json: any): FbsPostingDetailCourier; +export declare function FbsPostingDetailCourierFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingDetailCourier; +export declare function FbsPostingDetailCourierToJSON(value?: FbsPostingDetailCourier | null): any; diff --git a/dist/models/FbsPostingDetailCourier.js b/dist/models/FbsPostingDetailCourier.js new file mode 100644 index 0000000..a6111ea --- /dev/null +++ b/dist/models/FbsPostingDetailCourier.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingDetailCourier = instanceOfFbsPostingDetailCourier; +exports.FbsPostingDetailCourierFromJSON = FbsPostingDetailCourierFromJSON; +exports.FbsPostingDetailCourierFromJSONTyped = FbsPostingDetailCourierFromJSONTyped; +exports.FbsPostingDetailCourierToJSON = FbsPostingDetailCourierToJSON; +/** + * Check if a given object implements the FbsPostingDetailCourier interface. + */ +function instanceOfFbsPostingDetailCourier(value) { + return true; +} +function FbsPostingDetailCourierFromJSON(json) { + return FbsPostingDetailCourierFromJSONTyped(json, false); +} +function FbsPostingDetailCourierFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'car_model': json['car_model'] == null ? undefined : json['car_model'], + 'car_number': json['car_number'] == null ? undefined : json['car_number'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +function FbsPostingDetailCourierToJSON(value) { + if (value == null) { + return value; + } + return { + 'car_model': value['car_model'], + 'car_number': value['car_number'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/models/FbsPostingDetailPrrOption.d.ts b/dist/models/FbsPostingDetailPrrOption.d.ts new file mode 100644 index 0000000..8f9fde5 --- /dev/null +++ b/dist/models/FbsPostingDetailPrrOption.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об услуге погрузочно-разгрузочных работ. Актуально для КГТ-отправлений с доставкой силами продавца или интегрированной службой. + * @export + * @interface FbsPostingDetailPrrOption + */ +export interface FbsPostingDetailPrrOption { + /** + * Код услуги погрузочно-разгрузочных работ: + * - `lift` — подъём на лифте. + * - `stairs` — подъём по лестнице. + * - `none` — покупатель отказался от услуги, поднимать товары не нужно. + * - `delivery_default` — доставка включена в стоимость, по условиям оферты нужно доставить товар на этаж. + * + * @type {string} + * @memberof FbsPostingDetailPrrOption + */ + code?: string; + /** + * Стоимость услуги, которую Ozon компенсирует продавцу. + * @type {string} + * @memberof FbsPostingDetailPrrOption + */ + price?: string; + /** + * Валюта. + * @type {string} + * @memberof FbsPostingDetailPrrOption + */ + currency_code?: string; + /** + * Этаж, на который нужно поднять товар. + * @type {string} + * @memberof FbsPostingDetailPrrOption + */ + floor?: string; +} +/** + * Check if a given object implements the FbsPostingDetailPrrOption interface. + */ +export declare function instanceOfFbsPostingDetailPrrOption(value: object): value is FbsPostingDetailPrrOption; +export declare function FbsPostingDetailPrrOptionFromJSON(json: any): FbsPostingDetailPrrOption; +export declare function FbsPostingDetailPrrOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingDetailPrrOption; +export declare function FbsPostingDetailPrrOptionToJSON(value?: FbsPostingDetailPrrOption | null): any; diff --git a/dist/models/FbsPostingDetailPrrOption.js b/dist/models/FbsPostingDetailPrrOption.js new file mode 100644 index 0000000..2871b19 --- /dev/null +++ b/dist/models/FbsPostingDetailPrrOption.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingDetailPrrOption = instanceOfFbsPostingDetailPrrOption; +exports.FbsPostingDetailPrrOptionFromJSON = FbsPostingDetailPrrOptionFromJSON; +exports.FbsPostingDetailPrrOptionFromJSONTyped = FbsPostingDetailPrrOptionFromJSONTyped; +exports.FbsPostingDetailPrrOptionToJSON = FbsPostingDetailPrrOptionToJSON; +/** + * Check if a given object implements the FbsPostingDetailPrrOption interface. + */ +function instanceOfFbsPostingDetailPrrOption(value) { + return true; +} +function FbsPostingDetailPrrOptionFromJSON(json) { + return FbsPostingDetailPrrOptionFromJSONTyped(json, false); +} +function FbsPostingDetailPrrOptionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'price': json['price'] == null ? undefined : json['price'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'floor': json['floor'] == null ? undefined : json['floor'], + }; +} +function FbsPostingDetailPrrOptionToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'price': value['price'], + 'currency_code': value['currency_code'], + 'floor': value['floor'], + }; +} diff --git a/dist/models/FbsPostingMoveStatusResponseMoveStatus.d.ts b/dist/models/FbsPostingMoveStatusResponseMoveStatus.d.ts new file mode 100644 index 0000000..712e598 --- /dev/null +++ b/dist/models/FbsPostingMoveStatusResponseMoveStatus.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbsPostingMoveStatusResponseMoveStatus + */ +export interface FbsPostingMoveStatusResponseMoveStatus { + /** + * Ошибка при обработке запроса. + * @type {string} + * @memberof FbsPostingMoveStatusResponseMoveStatus + */ + error?: string; + /** + * Номер отправления. + * @type {string} + * @memberof FbsPostingMoveStatusResponseMoveStatus + */ + posting_number?: string; + /** + * Если запрос выполнен без ошибок — `true`. + * @type {boolean} + * @memberof FbsPostingMoveStatusResponseMoveStatus + */ + result?: boolean; +} +/** + * Check if a given object implements the FbsPostingMoveStatusResponseMoveStatus interface. + */ +export declare function instanceOfFbsPostingMoveStatusResponseMoveStatus(value: object): value is FbsPostingMoveStatusResponseMoveStatus; +export declare function FbsPostingMoveStatusResponseMoveStatusFromJSON(json: any): FbsPostingMoveStatusResponseMoveStatus; +export declare function FbsPostingMoveStatusResponseMoveStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingMoveStatusResponseMoveStatus; +export declare function FbsPostingMoveStatusResponseMoveStatusToJSON(value?: FbsPostingMoveStatusResponseMoveStatus | null): any; diff --git a/dist/models/FbsPostingMoveStatusResponseMoveStatus.js b/dist/models/FbsPostingMoveStatusResponseMoveStatus.js new file mode 100644 index 0000000..5d357a7 --- /dev/null +++ b/dist/models/FbsPostingMoveStatusResponseMoveStatus.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingMoveStatusResponseMoveStatus = instanceOfFbsPostingMoveStatusResponseMoveStatus; +exports.FbsPostingMoveStatusResponseMoveStatusFromJSON = FbsPostingMoveStatusResponseMoveStatusFromJSON; +exports.FbsPostingMoveStatusResponseMoveStatusFromJSONTyped = FbsPostingMoveStatusResponseMoveStatusFromJSONTyped; +exports.FbsPostingMoveStatusResponseMoveStatusToJSON = FbsPostingMoveStatusResponseMoveStatusToJSON; +/** + * Check if a given object implements the FbsPostingMoveStatusResponseMoveStatus interface. + */ +function instanceOfFbsPostingMoveStatusResponseMoveStatus(value) { + return true; +} +function FbsPostingMoveStatusResponseMoveStatusFromJSON(json) { + return FbsPostingMoveStatusResponseMoveStatusFromJSONTyped(json, false); +} +function FbsPostingMoveStatusResponseMoveStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function FbsPostingMoveStatusResponseMoveStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'posting_number': value['posting_number'], + 'result': value['result'], + }; +} diff --git a/dist/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.d.ts b/dist/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.d.ts new file mode 100644 index 0000000..8181744 --- /dev/null +++ b/dist/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.d.ts @@ -0,0 +1,102 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductExemplar } from './ProductExemplar'; +/** + * + * @export + * @interface FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ +export interface FbsPostingProductExemplarCreateOrGetV6ResponseProduct { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + exemplars?: Array; + /** + * Признак наличия IMEI. + * + * Если IMEI есть — `true`. + * + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + has_imei?: boolean; + /** + * Признак того, что необходимо передать номер грузовой таможенной декларации (ГТД) для продукта и отправления. + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_gtd_needed?: boolean; + /** + * Признак того, что необходимо передать уникальный идентификационный номер ювелирного изделия (УИН). + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_jw_uin_needed?: boolean; + /** + * Признак того, что необходимо передать маркировку «Честный ЗНАК». + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_mandatory_mark_needed?: boolean; + /** + * Признак того, что возможно заполнить маркировку «Честный ЗНАК». + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_mandatory_mark_possible?: boolean; + /** + * Признак того, что необходимо передать номер партии товара (РНПТ). + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_rnpt_needed?: boolean; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + product_id?: number; + /** + * Количество экземпляров. + * @type {number} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + quantity?: number; + /** + * `true`, если товар весовой. + * + * @type {boolean} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + is_weight_needed?: boolean; + /** + * Максимальный вес экземпляра. + * @type {number} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + weight_max?: number; + /** + * Минимальный вес экземпляра. + * @type {number} + * @memberof FbsPostingProductExemplarCreateOrGetV6ResponseProduct + */ + weight_min?: number; +} +/** + * Check if a given object implements the FbsPostingProductExemplarCreateOrGetV6ResponseProduct interface. + */ +export declare function instanceOfFbsPostingProductExemplarCreateOrGetV6ResponseProduct(value: object): value is FbsPostingProductExemplarCreateOrGetV6ResponseProduct; +export declare function FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON(json: any): FbsPostingProductExemplarCreateOrGetV6ResponseProduct; +export declare function FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingProductExemplarCreateOrGetV6ResponseProduct; +export declare function FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON(value?: FbsPostingProductExemplarCreateOrGetV6ResponseProduct | null): any; diff --git a/dist/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.js b/dist/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.js new file mode 100644 index 0000000..c0781f5 --- /dev/null +++ b/dist/models/FbsPostingProductExemplarCreateOrGetV6ResponseProduct.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingProductExemplarCreateOrGetV6ResponseProduct = instanceOfFbsPostingProductExemplarCreateOrGetV6ResponseProduct; +exports.FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON = FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON; +exports.FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSONTyped = FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSONTyped; +exports.FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON = FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON; +const ProductExemplar_1 = require("./ProductExemplar"); +/** + * Check if a given object implements the FbsPostingProductExemplarCreateOrGetV6ResponseProduct interface. + */ +function instanceOfFbsPostingProductExemplarCreateOrGetV6ResponseProduct(value) { + return true; +} +function FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON(json) { + return FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSONTyped(json, false); +} +function FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(ProductExemplar_1.ProductExemplarFromJSON)), + 'has_imei': json['has_imei'] == null ? undefined : json['has_imei'], + 'is_gtd_needed': json['is_gtd_needed'] == null ? undefined : json['is_gtd_needed'], + 'is_jw_uin_needed': json['is_jw_uin_needed'] == null ? undefined : json['is_jw_uin_needed'], + 'is_mandatory_mark_needed': json['is_mandatory_mark_needed'] == null ? undefined : json['is_mandatory_mark_needed'], + 'is_mandatory_mark_possible': json['is_mandatory_mark_possible'] == null ? undefined : json['is_mandatory_mark_possible'], + 'is_rnpt_needed': json['is_rnpt_needed'] == null ? undefined : json['is_rnpt_needed'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'is_weight_needed': json['is_weight_needed'] == null ? undefined : json['is_weight_needed'], + 'weight_max': json['weight_max'] == null ? undefined : json['weight_max'], + 'weight_min': json['weight_min'] == null ? undefined : json['weight_min'], + }; +} +function FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(ProductExemplar_1.ProductExemplarToJSON)), + 'has_imei': value['has_imei'], + 'is_gtd_needed': value['is_gtd_needed'], + 'is_jw_uin_needed': value['is_jw_uin_needed'], + 'is_mandatory_mark_needed': value['is_mandatory_mark_needed'], + 'is_mandatory_mark_possible': value['is_mandatory_mark_possible'], + 'is_rnpt_needed': value['is_rnpt_needed'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'is_weight_needed': value['is_weight_needed'], + 'weight_max': value['weight_max'], + 'weight_min': value['weight_min'], + }; +} diff --git a/dist/models/FbsPostingProductExemplarSetV6RequestExemplars.d.ts b/dist/models/FbsPostingProductExemplarSetV6RequestExemplars.d.ts new file mode 100644 index 0000000..f7b23ce --- /dev/null +++ b/dist/models/FbsPostingProductExemplarSetV6RequestExemplars.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ExemplarsMarks } from './ExemplarsMarks'; +/** + * + * @export + * @interface FbsPostingProductExemplarSetV6RequestExemplars + */ +export interface FbsPostingProductExemplarSetV6RequestExemplars { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + exemplar_id: number; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + gtd?: string; + /** + * Признак того, что не указан номер грузовой таможенной декларации (ГТД). + * @type {boolean} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + is_gtd_absent?: boolean; + /** + * Признак того, что не указан регистрационный номер партии товара (РНПТ). + * @type {boolean} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + is_rnpt_absent?: boolean; + /** + * Список контрольных идентификационных знаков (КИЗ) и других маркировок в одном экземпляре. + * @type {Array} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + rnpt?: string; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof FbsPostingProductExemplarSetV6RequestExemplars + */ + weight?: number; +} +/** + * Check if a given object implements the FbsPostingProductExemplarSetV6RequestExemplars interface. + */ +export declare function instanceOfFbsPostingProductExemplarSetV6RequestExemplars(value: object): value is FbsPostingProductExemplarSetV6RequestExemplars; +export declare function FbsPostingProductExemplarSetV6RequestExemplarsFromJSON(json: any): FbsPostingProductExemplarSetV6RequestExemplars; +export declare function FbsPostingProductExemplarSetV6RequestExemplarsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingProductExemplarSetV6RequestExemplars; +export declare function FbsPostingProductExemplarSetV6RequestExemplarsToJSON(value?: FbsPostingProductExemplarSetV6RequestExemplars | null): any; diff --git a/dist/models/FbsPostingProductExemplarSetV6RequestExemplars.js b/dist/models/FbsPostingProductExemplarSetV6RequestExemplars.js new file mode 100644 index 0000000..2608a13 --- /dev/null +++ b/dist/models/FbsPostingProductExemplarSetV6RequestExemplars.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingProductExemplarSetV6RequestExemplars = instanceOfFbsPostingProductExemplarSetV6RequestExemplars; +exports.FbsPostingProductExemplarSetV6RequestExemplarsFromJSON = FbsPostingProductExemplarSetV6RequestExemplarsFromJSON; +exports.FbsPostingProductExemplarSetV6RequestExemplarsFromJSONTyped = FbsPostingProductExemplarSetV6RequestExemplarsFromJSONTyped; +exports.FbsPostingProductExemplarSetV6RequestExemplarsToJSON = FbsPostingProductExemplarSetV6RequestExemplarsToJSON; +const ExemplarsMarks_1 = require("./ExemplarsMarks"); +/** + * Check if a given object implements the FbsPostingProductExemplarSetV6RequestExemplars interface. + */ +function instanceOfFbsPostingProductExemplarSetV6RequestExemplars(value) { + if (!('exemplar_id' in value) || value['exemplar_id'] === undefined) + return false; + return true; +} +function FbsPostingProductExemplarSetV6RequestExemplarsFromJSON(json) { + return FbsPostingProductExemplarSetV6RequestExemplarsFromJSONTyped(json, false); +} +function FbsPostingProductExemplarSetV6RequestExemplarsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'is_gtd_absent': json['is_gtd_absent'] == null ? undefined : json['is_gtd_absent'], + 'is_rnpt_absent': json['is_rnpt_absent'] == null ? undefined : json['is_rnpt_absent'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(ExemplarsMarks_1.ExemplarsMarksFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function FbsPostingProductExemplarSetV6RequestExemplarsToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'gtd': value['gtd'], + 'is_gtd_absent': value['is_gtd_absent'], + 'is_rnpt_absent': value['is_rnpt_absent'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(ExemplarsMarks_1.ExemplarsMarksToJSON)), + 'rnpt': value['rnpt'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/FbsPostingProductExemplarSetV6RequestProducts.d.ts b/dist/models/FbsPostingProductExemplarSetV6RequestProducts.d.ts new file mode 100644 index 0000000..c8c5261 --- /dev/null +++ b/dist/models/FbsPostingProductExemplarSetV6RequestProducts.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingProductExemplarSetV6RequestExemplars } from './FbsPostingProductExemplarSetV6RequestExemplars'; +/** + * + * @export + * @interface FbsPostingProductExemplarSetV6RequestProducts + */ +export interface FbsPostingProductExemplarSetV6RequestProducts { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof FbsPostingProductExemplarSetV6RequestProducts + */ + exemplars: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FbsPostingProductExemplarSetV6RequestProducts + */ + product_id: number; +} +/** + * Check if a given object implements the FbsPostingProductExemplarSetV6RequestProducts interface. + */ +export declare function instanceOfFbsPostingProductExemplarSetV6RequestProducts(value: object): value is FbsPostingProductExemplarSetV6RequestProducts; +export declare function FbsPostingProductExemplarSetV6RequestProductsFromJSON(json: any): FbsPostingProductExemplarSetV6RequestProducts; +export declare function FbsPostingProductExemplarSetV6RequestProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingProductExemplarSetV6RequestProducts; +export declare function FbsPostingProductExemplarSetV6RequestProductsToJSON(value?: FbsPostingProductExemplarSetV6RequestProducts | null): any; diff --git a/dist/models/FbsPostingProductExemplarSetV6RequestProducts.js b/dist/models/FbsPostingProductExemplarSetV6RequestProducts.js new file mode 100644 index 0000000..c1fb789 --- /dev/null +++ b/dist/models/FbsPostingProductExemplarSetV6RequestProducts.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingProductExemplarSetV6RequestProducts = instanceOfFbsPostingProductExemplarSetV6RequestProducts; +exports.FbsPostingProductExemplarSetV6RequestProductsFromJSON = FbsPostingProductExemplarSetV6RequestProductsFromJSON; +exports.FbsPostingProductExemplarSetV6RequestProductsFromJSONTyped = FbsPostingProductExemplarSetV6RequestProductsFromJSONTyped; +exports.FbsPostingProductExemplarSetV6RequestProductsToJSON = FbsPostingProductExemplarSetV6RequestProductsToJSON; +const FbsPostingProductExemplarSetV6RequestExemplars_1 = require("./FbsPostingProductExemplarSetV6RequestExemplars"); +/** + * Check if a given object implements the FbsPostingProductExemplarSetV6RequestProducts interface. + */ +function instanceOfFbsPostingProductExemplarSetV6RequestProducts(value) { + if (!('exemplars' in value) || value['exemplars'] === undefined) + return false; + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function FbsPostingProductExemplarSetV6RequestProductsFromJSON(json) { + return FbsPostingProductExemplarSetV6RequestProductsFromJSONTyped(json, false); +} +function FbsPostingProductExemplarSetV6RequestProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': (json['exemplars'].map(FbsPostingProductExemplarSetV6RequestExemplars_1.FbsPostingProductExemplarSetV6RequestExemplarsFromJSON)), + 'product_id': json['product_id'], + }; +} +function FbsPostingProductExemplarSetV6RequestProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': (value['exemplars'].map(FbsPostingProductExemplarSetV6RequestExemplars_1.FbsPostingProductExemplarSetV6RequestExemplarsToJSON)), + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/FbsPostingShipV4RequestPackage.d.ts b/dist/models/FbsPostingShipV4RequestPackage.d.ts new file mode 100644 index 0000000..59c7333 --- /dev/null +++ b/dist/models/FbsPostingShipV4RequestPackage.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingShipV4RequestPackageProduct } from './FbsPostingShipV4RequestPackageProduct'; +/** + * + * @export + * @interface FbsPostingShipV4RequestPackage + */ +export interface FbsPostingShipV4RequestPackage { + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof FbsPostingShipV4RequestPackage + */ + products: Array; +} +/** + * Check if a given object implements the FbsPostingShipV4RequestPackage interface. + */ +export declare function instanceOfFbsPostingShipV4RequestPackage(value: object): value is FbsPostingShipV4RequestPackage; +export declare function FbsPostingShipV4RequestPackageFromJSON(json: any): FbsPostingShipV4RequestPackage; +export declare function FbsPostingShipV4RequestPackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingShipV4RequestPackage; +export declare function FbsPostingShipV4RequestPackageToJSON(value?: FbsPostingShipV4RequestPackage | null): any; diff --git a/dist/models/FbsPostingShipV4RequestPackage.js b/dist/models/FbsPostingShipV4RequestPackage.js new file mode 100644 index 0000000..24ac429 --- /dev/null +++ b/dist/models/FbsPostingShipV4RequestPackage.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingShipV4RequestPackage = instanceOfFbsPostingShipV4RequestPackage; +exports.FbsPostingShipV4RequestPackageFromJSON = FbsPostingShipV4RequestPackageFromJSON; +exports.FbsPostingShipV4RequestPackageFromJSONTyped = FbsPostingShipV4RequestPackageFromJSONTyped; +exports.FbsPostingShipV4RequestPackageToJSON = FbsPostingShipV4RequestPackageToJSON; +const FbsPostingShipV4RequestPackageProduct_1 = require("./FbsPostingShipV4RequestPackageProduct"); +/** + * Check if a given object implements the FbsPostingShipV4RequestPackage interface. + */ +function instanceOfFbsPostingShipV4RequestPackage(value) { + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +function FbsPostingShipV4RequestPackageFromJSON(json) { + return FbsPostingShipV4RequestPackageFromJSONTyped(json, false); +} +function FbsPostingShipV4RequestPackageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': (json['products'].map(FbsPostingShipV4RequestPackageProduct_1.FbsPostingShipV4RequestPackageProductFromJSON)), + }; +} +function FbsPostingShipV4RequestPackageToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': (value['products'].map(FbsPostingShipV4RequestPackageProduct_1.FbsPostingShipV4RequestPackageProductToJSON)), + }; +} diff --git a/dist/models/FbsPostingShipV4RequestPackageProduct.d.ts b/dist/models/FbsPostingShipV4RequestPackageProduct.d.ts new file mode 100644 index 0000000..b0bcef4 --- /dev/null +++ b/dist/models/FbsPostingShipV4RequestPackageProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbsPostingShipV4RequestPackageProduct + */ +export interface FbsPostingShipV4RequestPackageProduct { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FbsPostingShipV4RequestPackageProduct + */ + product_id: number; + /** + * Количество экземпляров. + * @type {number} + * @memberof FbsPostingShipV4RequestPackageProduct + */ + quantity: number; +} +/** + * Check if a given object implements the FbsPostingShipV4RequestPackageProduct interface. + */ +export declare function instanceOfFbsPostingShipV4RequestPackageProduct(value: object): value is FbsPostingShipV4RequestPackageProduct; +export declare function FbsPostingShipV4RequestPackageProductFromJSON(json: any): FbsPostingShipV4RequestPackageProduct; +export declare function FbsPostingShipV4RequestPackageProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingShipV4RequestPackageProduct; +export declare function FbsPostingShipV4RequestPackageProductToJSON(value?: FbsPostingShipV4RequestPackageProduct | null): any; diff --git a/dist/models/FbsPostingShipV4RequestPackageProduct.js b/dist/models/FbsPostingShipV4RequestPackageProduct.js new file mode 100644 index 0000000..8e3b281 --- /dev/null +++ b/dist/models/FbsPostingShipV4RequestPackageProduct.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingShipV4RequestPackageProduct = instanceOfFbsPostingShipV4RequestPackageProduct; +exports.FbsPostingShipV4RequestPackageProductFromJSON = FbsPostingShipV4RequestPackageProductFromJSON; +exports.FbsPostingShipV4RequestPackageProductFromJSONTyped = FbsPostingShipV4RequestPackageProductFromJSONTyped; +exports.FbsPostingShipV4RequestPackageProductToJSON = FbsPostingShipV4RequestPackageProductToJSON; +/** + * Check if a given object implements the FbsPostingShipV4RequestPackageProduct interface. + */ +function instanceOfFbsPostingShipV4RequestPackageProduct(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + return true; +} +function FbsPostingShipV4RequestPackageProductFromJSON(json) { + return FbsPostingShipV4RequestPackageProductFromJSONTyped(json, false); +} +function FbsPostingShipV4RequestPackageProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + 'quantity': json['quantity'], + }; +} +function FbsPostingShipV4RequestPackageProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/models/FbsPostingShipV4RequestWith.d.ts b/dist/models/FbsPostingShipV4RequestWith.d.ts new file mode 100644 index 0000000..96cf33c --- /dev/null +++ b/dist/models/FbsPostingShipV4RequestWith.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительная информация. + * @export + * @interface FbsPostingShipV4RequestWith + */ +export interface FbsPostingShipV4RequestWith { + /** + * Чтобы получить дополнительную информацию, передайте `true`. + * @type {boolean} + * @memberof FbsPostingShipV4RequestWith + */ + additional_data?: boolean; +} +/** + * Check if a given object implements the FbsPostingShipV4RequestWith interface. + */ +export declare function instanceOfFbsPostingShipV4RequestWith(value: object): value is FbsPostingShipV4RequestWith; +export declare function FbsPostingShipV4RequestWithFromJSON(json: any): FbsPostingShipV4RequestWith; +export declare function FbsPostingShipV4RequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingShipV4RequestWith; +export declare function FbsPostingShipV4RequestWithToJSON(value?: FbsPostingShipV4RequestWith | null): any; diff --git a/dist/models/FbsPostingShipV4RequestWith.js b/dist/models/FbsPostingShipV4RequestWith.js new file mode 100644 index 0000000..2b83b2e --- /dev/null +++ b/dist/models/FbsPostingShipV4RequestWith.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingShipV4RequestWith = instanceOfFbsPostingShipV4RequestWith; +exports.FbsPostingShipV4RequestWithFromJSON = FbsPostingShipV4RequestWithFromJSON; +exports.FbsPostingShipV4RequestWithFromJSONTyped = FbsPostingShipV4RequestWithFromJSONTyped; +exports.FbsPostingShipV4RequestWithToJSON = FbsPostingShipV4RequestWithToJSON; +/** + * Check if a given object implements the FbsPostingShipV4RequestWith interface. + */ +function instanceOfFbsPostingShipV4RequestWith(value) { + return true; +} +function FbsPostingShipV4RequestWithFromJSON(json) { + return FbsPostingShipV4RequestWithFromJSONTyped(json, false); +} +function FbsPostingShipV4RequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : json['additional_data'], + }; +} +function FbsPostingShipV4RequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'], + }; +} diff --git a/dist/models/FbsPostingShipV4ResponseShipAdditionalData.d.ts b/dist/models/FbsPostingShipV4ResponseShipAdditionalData.d.ts new file mode 100644 index 0000000..1e69f62 --- /dev/null +++ b/dist/models/FbsPostingShipV4ResponseShipAdditionalData.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fbsv4PostingProductDetailWithoutDimensions } from './Fbsv4PostingProductDetailWithoutDimensions'; +/** + * + * @export + * @interface FbsPostingShipV4ResponseShipAdditionalData + */ +export interface FbsPostingShipV4ResponseShipAdditionalData { + /** + * Номер отправления. + * @type {string} + * @memberof FbsPostingShipV4ResponseShipAdditionalData + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof FbsPostingShipV4ResponseShipAdditionalData + */ + products?: Array; +} +/** + * Check if a given object implements the FbsPostingShipV4ResponseShipAdditionalData interface. + */ +export declare function instanceOfFbsPostingShipV4ResponseShipAdditionalData(value: object): value is FbsPostingShipV4ResponseShipAdditionalData; +export declare function FbsPostingShipV4ResponseShipAdditionalDataFromJSON(json: any): FbsPostingShipV4ResponseShipAdditionalData; +export declare function FbsPostingShipV4ResponseShipAdditionalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingShipV4ResponseShipAdditionalData; +export declare function FbsPostingShipV4ResponseShipAdditionalDataToJSON(value?: FbsPostingShipV4ResponseShipAdditionalData | null): any; diff --git a/dist/models/FbsPostingShipV4ResponseShipAdditionalData.js b/dist/models/FbsPostingShipV4ResponseShipAdditionalData.js new file mode 100644 index 0000000..d042133 --- /dev/null +++ b/dist/models/FbsPostingShipV4ResponseShipAdditionalData.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingShipV4ResponseShipAdditionalData = instanceOfFbsPostingShipV4ResponseShipAdditionalData; +exports.FbsPostingShipV4ResponseShipAdditionalDataFromJSON = FbsPostingShipV4ResponseShipAdditionalDataFromJSON; +exports.FbsPostingShipV4ResponseShipAdditionalDataFromJSONTyped = FbsPostingShipV4ResponseShipAdditionalDataFromJSONTyped; +exports.FbsPostingShipV4ResponseShipAdditionalDataToJSON = FbsPostingShipV4ResponseShipAdditionalDataToJSON; +const Fbsv4PostingProductDetailWithoutDimensions_1 = require("./Fbsv4PostingProductDetailWithoutDimensions"); +/** + * Check if a given object implements the FbsPostingShipV4ResponseShipAdditionalData interface. + */ +function instanceOfFbsPostingShipV4ResponseShipAdditionalData(value) { + return true; +} +function FbsPostingShipV4ResponseShipAdditionalDataFromJSON(json) { + return FbsPostingShipV4ResponseShipAdditionalDataFromJSONTyped(json, false); +} +function FbsPostingShipV4ResponseShipAdditionalDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(Fbsv4PostingProductDetailWithoutDimensions_1.Fbsv4PostingProductDetailWithoutDimensionsFromJSON)), + }; +} +function FbsPostingShipV4ResponseShipAdditionalDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(Fbsv4PostingProductDetailWithoutDimensions_1.Fbsv4PostingProductDetailWithoutDimensionsToJSON)), + }; +} diff --git a/dist/models/FbsPostingTrackingNumberSetRequestTrackingNumber.d.ts b/dist/models/FbsPostingTrackingNumberSetRequestTrackingNumber.d.ts new file mode 100644 index 0000000..886c40a --- /dev/null +++ b/dist/models/FbsPostingTrackingNumberSetRequestTrackingNumber.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FbsPostingTrackingNumberSetRequestTrackingNumber + */ +export interface FbsPostingTrackingNumberSetRequestTrackingNumber { + /** + * Идентификатор отправления. + * @type {string} + * @memberof FbsPostingTrackingNumberSetRequestTrackingNumber + */ + posting_number: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof FbsPostingTrackingNumberSetRequestTrackingNumber + */ + tracking_number: string; +} +/** + * Check if a given object implements the FbsPostingTrackingNumberSetRequestTrackingNumber interface. + */ +export declare function instanceOfFbsPostingTrackingNumberSetRequestTrackingNumber(value: object): value is FbsPostingTrackingNumberSetRequestTrackingNumber; +export declare function FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON(json: any): FbsPostingTrackingNumberSetRequestTrackingNumber; +export declare function FbsPostingTrackingNumberSetRequestTrackingNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): FbsPostingTrackingNumberSetRequestTrackingNumber; +export declare function FbsPostingTrackingNumberSetRequestTrackingNumberToJSON(value?: FbsPostingTrackingNumberSetRequestTrackingNumber | null): any; diff --git a/dist/models/FbsPostingTrackingNumberSetRequestTrackingNumber.js b/dist/models/FbsPostingTrackingNumberSetRequestTrackingNumber.js new file mode 100644 index 0000000..34ad38f --- /dev/null +++ b/dist/models/FbsPostingTrackingNumberSetRequestTrackingNumber.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsPostingTrackingNumberSetRequestTrackingNumber = instanceOfFbsPostingTrackingNumberSetRequestTrackingNumber; +exports.FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON = FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON; +exports.FbsPostingTrackingNumberSetRequestTrackingNumberFromJSONTyped = FbsPostingTrackingNumberSetRequestTrackingNumberFromJSONTyped; +exports.FbsPostingTrackingNumberSetRequestTrackingNumberToJSON = FbsPostingTrackingNumberSetRequestTrackingNumberToJSON; +/** + * Check if a given object implements the FbsPostingTrackingNumberSetRequestTrackingNumber interface. + */ +function instanceOfFbsPostingTrackingNumberSetRequestTrackingNumber(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('tracking_number' in value) || value['tracking_number'] === undefined) + return false; + return true; +} +function FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON(json) { + return FbsPostingTrackingNumberSetRequestTrackingNumberFromJSONTyped(json, false); +} +function FbsPostingTrackingNumberSetRequestTrackingNumberFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'tracking_number': json['tracking_number'], + }; +} +function FbsPostingTrackingNumberSetRequestTrackingNumberToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'tracking_number': value['tracking_number'], + }; +} diff --git a/dist/models/Fbsv4FbsPostingShipV4Request.d.ts b/dist/models/Fbsv4FbsPostingShipV4Request.d.ts new file mode 100644 index 0000000..0f07980 --- /dev/null +++ b/dist/models/Fbsv4FbsPostingShipV4Request.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingShipV4RequestWith } from './FbsPostingShipV4RequestWith'; +import type { FbsPostingShipV4RequestPackage } from './FbsPostingShipV4RequestPackage'; +/** + * + * @export + * @interface Fbsv4FbsPostingShipV4Request + */ +export interface Fbsv4FbsPostingShipV4Request { + /** + * Список упаковок. Каждая упаковка содержит список отправлений, на которые делится заказ. + * @type {Array} + * @memberof Fbsv4FbsPostingShipV4Request + */ + packages: Array; + /** + * Номер отправления. + * @type {string} + * @memberof Fbsv4FbsPostingShipV4Request + */ + posting_number: string; + /** + * + * @type {FbsPostingShipV4RequestWith} + * @memberof Fbsv4FbsPostingShipV4Request + */ + _with?: FbsPostingShipV4RequestWith; +} +/** + * Check if a given object implements the Fbsv4FbsPostingShipV4Request interface. + */ +export declare function instanceOfFbsv4FbsPostingShipV4Request(value: object): value is Fbsv4FbsPostingShipV4Request; +export declare function Fbsv4FbsPostingShipV4RequestFromJSON(json: any): Fbsv4FbsPostingShipV4Request; +export declare function Fbsv4FbsPostingShipV4RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbsv4FbsPostingShipV4Request; +export declare function Fbsv4FbsPostingShipV4RequestToJSON(value?: Fbsv4FbsPostingShipV4Request | null): any; diff --git a/dist/models/Fbsv4FbsPostingShipV4Request.js b/dist/models/Fbsv4FbsPostingShipV4Request.js new file mode 100644 index 0000000..16cedb0 --- /dev/null +++ b/dist/models/Fbsv4FbsPostingShipV4Request.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsv4FbsPostingShipV4Request = instanceOfFbsv4FbsPostingShipV4Request; +exports.Fbsv4FbsPostingShipV4RequestFromJSON = Fbsv4FbsPostingShipV4RequestFromJSON; +exports.Fbsv4FbsPostingShipV4RequestFromJSONTyped = Fbsv4FbsPostingShipV4RequestFromJSONTyped; +exports.Fbsv4FbsPostingShipV4RequestToJSON = Fbsv4FbsPostingShipV4RequestToJSON; +const FbsPostingShipV4RequestWith_1 = require("./FbsPostingShipV4RequestWith"); +const FbsPostingShipV4RequestPackage_1 = require("./FbsPostingShipV4RequestPackage"); +/** + * Check if a given object implements the Fbsv4FbsPostingShipV4Request interface. + */ +function instanceOfFbsv4FbsPostingShipV4Request(value) { + if (!('packages' in value) || value['packages'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function Fbsv4FbsPostingShipV4RequestFromJSON(json) { + return Fbsv4FbsPostingShipV4RequestFromJSONTyped(json, false); +} +function Fbsv4FbsPostingShipV4RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'packages': (json['packages'].map(FbsPostingShipV4RequestPackage_1.FbsPostingShipV4RequestPackageFromJSON)), + 'posting_number': json['posting_number'], + '_with': json['with'] == null ? undefined : (0, FbsPostingShipV4RequestWith_1.FbsPostingShipV4RequestWithFromJSON)(json['with']), + }; +} +function Fbsv4FbsPostingShipV4RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'packages': (value['packages'].map(FbsPostingShipV4RequestPackage_1.FbsPostingShipV4RequestPackageToJSON)), + 'posting_number': value['posting_number'], + 'with': (0, FbsPostingShipV4RequestWith_1.FbsPostingShipV4RequestWithToJSON)(value['_with']), + }; +} diff --git a/dist/models/Fbsv4FbsPostingShipV4Response.d.ts b/dist/models/Fbsv4FbsPostingShipV4Response.d.ts new file mode 100644 index 0000000..d325625 --- /dev/null +++ b/dist/models/Fbsv4FbsPostingShipV4Response.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingShipV4ResponseShipAdditionalData } from './FbsPostingShipV4ResponseShipAdditionalData'; +/** + * + * @export + * @interface Fbsv4FbsPostingShipV4Response + */ +export interface Fbsv4FbsPostingShipV4Response { + /** + * Дополнительная информация об отправлениях. + * @type {Array} + * @memberof Fbsv4FbsPostingShipV4Response + */ + additional_data?: Array; + /** + * Результат сборки отправлений. + * @type {Array} + * @memberof Fbsv4FbsPostingShipV4Response + */ + result?: Array; +} +/** + * Check if a given object implements the Fbsv4FbsPostingShipV4Response interface. + */ +export declare function instanceOfFbsv4FbsPostingShipV4Response(value: object): value is Fbsv4FbsPostingShipV4Response; +export declare function Fbsv4FbsPostingShipV4ResponseFromJSON(json: any): Fbsv4FbsPostingShipV4Response; +export declare function Fbsv4FbsPostingShipV4ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbsv4FbsPostingShipV4Response; +export declare function Fbsv4FbsPostingShipV4ResponseToJSON(value?: Fbsv4FbsPostingShipV4Response | null): any; diff --git a/dist/models/Fbsv4FbsPostingShipV4Response.js b/dist/models/Fbsv4FbsPostingShipV4Response.js new file mode 100644 index 0000000..8e3408b --- /dev/null +++ b/dist/models/Fbsv4FbsPostingShipV4Response.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsv4FbsPostingShipV4Response = instanceOfFbsv4FbsPostingShipV4Response; +exports.Fbsv4FbsPostingShipV4ResponseFromJSON = Fbsv4FbsPostingShipV4ResponseFromJSON; +exports.Fbsv4FbsPostingShipV4ResponseFromJSONTyped = Fbsv4FbsPostingShipV4ResponseFromJSONTyped; +exports.Fbsv4FbsPostingShipV4ResponseToJSON = Fbsv4FbsPostingShipV4ResponseToJSON; +const FbsPostingShipV4ResponseShipAdditionalData_1 = require("./FbsPostingShipV4ResponseShipAdditionalData"); +/** + * Check if a given object implements the Fbsv4FbsPostingShipV4Response interface. + */ +function instanceOfFbsv4FbsPostingShipV4Response(value) { + return true; +} +function Fbsv4FbsPostingShipV4ResponseFromJSON(json) { + return Fbsv4FbsPostingShipV4ResponseFromJSONTyped(json, false); +} +function Fbsv4FbsPostingShipV4ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(FbsPostingShipV4ResponseShipAdditionalData_1.FbsPostingShipV4ResponseShipAdditionalDataFromJSON)), + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function Fbsv4FbsPostingShipV4ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(FbsPostingShipV4ResponseShipAdditionalData_1.FbsPostingShipV4ResponseShipAdditionalDataToJSON)), + 'result': value['result'], + }; +} diff --git a/dist/models/Fbsv4PostingProductDetailWithoutDimensions.d.ts b/dist/models/Fbsv4PostingProductDetailWithoutDimensions.d.ts new file mode 100644 index 0000000..8c0c6b6 --- /dev/null +++ b/dist/models/Fbsv4PostingProductDetailWithoutDimensions.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Fbsv4PostingProductDetailWithoutDimensions + */ +export interface Fbsv4PostingProductDetailWithoutDimensions { + /** + * Обязательная маркировка «Честный ЗНАК». + * @type {Array} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + mandatory_mark?: Array; + /** + * Название товара. + * @type {string} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + offer_id?: string; + /** + * Цена. + * @type {string} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + price?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + sku?: number; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof Fbsv4PostingProductDetailWithoutDimensions + */ + currency_code?: string; +} +/** + * Check if a given object implements the Fbsv4PostingProductDetailWithoutDimensions interface. + */ +export declare function instanceOfFbsv4PostingProductDetailWithoutDimensions(value: object): value is Fbsv4PostingProductDetailWithoutDimensions; +export declare function Fbsv4PostingProductDetailWithoutDimensionsFromJSON(json: any): Fbsv4PostingProductDetailWithoutDimensions; +export declare function Fbsv4PostingProductDetailWithoutDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fbsv4PostingProductDetailWithoutDimensions; +export declare function Fbsv4PostingProductDetailWithoutDimensionsToJSON(value?: Fbsv4PostingProductDetailWithoutDimensions | null): any; diff --git a/dist/models/Fbsv4PostingProductDetailWithoutDimensions.js b/dist/models/Fbsv4PostingProductDetailWithoutDimensions.js new file mode 100644 index 0000000..05925d6 --- /dev/null +++ b/dist/models/Fbsv4PostingProductDetailWithoutDimensions.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFbsv4PostingProductDetailWithoutDimensions = instanceOfFbsv4PostingProductDetailWithoutDimensions; +exports.Fbsv4PostingProductDetailWithoutDimensionsFromJSON = Fbsv4PostingProductDetailWithoutDimensionsFromJSON; +exports.Fbsv4PostingProductDetailWithoutDimensionsFromJSONTyped = Fbsv4PostingProductDetailWithoutDimensionsFromJSONTyped; +exports.Fbsv4PostingProductDetailWithoutDimensionsToJSON = Fbsv4PostingProductDetailWithoutDimensionsToJSON; +/** + * Check if a given object implements the Fbsv4PostingProductDetailWithoutDimensions interface. + */ +function instanceOfFbsv4PostingProductDetailWithoutDimensions(value) { + return true; +} +function Fbsv4PostingProductDetailWithoutDimensionsFromJSON(json) { + return Fbsv4PostingProductDetailWithoutDimensionsFromJSONTyped(json, false); +} +function Fbsv4PostingProductDetailWithoutDimensionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mandatory_mark': json['mandatory_mark'] == null ? undefined : json['mandatory_mark'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + }; +} +function Fbsv4PostingProductDetailWithoutDimensionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'mandatory_mark': value['mandatory_mark'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'currency_code': value['currency_code'], + }; +} diff --git a/dist/models/FilterPeriod.d.ts b/dist/models/FilterPeriod.d.ts new file mode 100644 index 0000000..c6e4195 --- /dev/null +++ b/dist/models/FilterPeriod.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате. + * @export + * @interface FilterPeriod + */ +export interface FilterPeriod { + /** + * Начало периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`.
+ * Пример: `2019-11-25T10:43:06.51`. + * + * @type {string} + * @memberof FilterPeriod + */ + from?: string; + /** + * Конец периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`.
+ * Пример: `2019-11-25T10:43:06.51`. + * + * @type {string} + * @memberof FilterPeriod + */ + to?: string; +} +/** + * Check if a given object implements the FilterPeriod interface. + */ +export declare function instanceOfFilterPeriod(value: object): value is FilterPeriod; +export declare function FilterPeriodFromJSON(json: any): FilterPeriod; +export declare function FilterPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterPeriod; +export declare function FilterPeriodToJSON(value?: FilterPeriod | null): any; diff --git a/dist/models/FilterPeriod.js b/dist/models/FilterPeriod.js new file mode 100644 index 0000000..b0508b8 --- /dev/null +++ b/dist/models/FilterPeriod.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFilterPeriod = instanceOfFilterPeriod; +exports.FilterPeriodFromJSON = FilterPeriodFromJSON; +exports.FilterPeriodFromJSONTyped = FilterPeriodFromJSONTyped; +exports.FilterPeriodToJSON = FilterPeriodToJSON; +/** + * Check if a given object implements the FilterPeriod interface. + */ +function instanceOfFilterPeriod(value) { + return true; +} +function FilterPeriodFromJSON(json) { + return FilterPeriodFromJSONTyped(json, false); +} +function FilterPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function FilterPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/FilterStatusEnum.d.ts b/dist/models/FilterStatusEnum.d.ts new file mode 100644 index 0000000..ad9d9d9 --- /dev/null +++ b/dist/models/FilterStatusEnum.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const FilterStatusEnum: { + readonly NEW: "NEW"; + readonly EDITED: "EDITED"; + readonly ACTIVE: "ACTIVE"; + readonly DISABLED: "DISABLED"; + readonly WAITING: "WAITING"; + readonly BROKEN: "BROKEN"; +}; +export type FilterStatusEnum = typeof FilterStatusEnum[keyof typeof FilterStatusEnum]; +export declare function instanceOfFilterStatusEnum(value: any): boolean; +export declare function FilterStatusEnumFromJSON(json: any): FilterStatusEnum; +export declare function FilterStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterStatusEnum; +export declare function FilterStatusEnumToJSON(value?: FilterStatusEnum | null): any; diff --git a/dist/models/FilterStatusEnum.js b/dist/models/FilterStatusEnum.js new file mode 100644 index 0000000..a4105a3 --- /dev/null +++ b/dist/models/FilterStatusEnum.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FilterStatusEnum = void 0; +exports.instanceOfFilterStatusEnum = instanceOfFilterStatusEnum; +exports.FilterStatusEnumFromJSON = FilterStatusEnumFromJSON; +exports.FilterStatusEnumFromJSONTyped = FilterStatusEnumFromJSONTyped; +exports.FilterStatusEnumToJSON = FilterStatusEnumToJSON; +/** + * + * @export + */ +exports.FilterStatusEnum = { + NEW: 'NEW', + EDITED: 'EDITED', + ACTIVE: 'ACTIVE', + DISABLED: 'DISABLED', + WAITING: 'WAITING', + BROKEN: 'BROKEN' +}; +function instanceOfFilterStatusEnum(value) { + for (const key in exports.FilterStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.FilterStatusEnum, key)) { + if (exports.FilterStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function FilterStatusEnumFromJSON(json) { + return FilterStatusEnumFromJSONTyped(json, false); +} +function FilterStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function FilterStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/FilterTimeslotFromRange.d.ts b/dist/models/FilterTimeslotFromRange.d.ts new file mode 100644 index 0000000..43d874d --- /dev/null +++ b/dist/models/FilterTimeslotFromRange.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TimeslotFromRangeTimeslotFilterTypeEnum } from './TimeslotFromRangeTimeslotFilterTypeEnum'; +/** + * Фильтр по таймслоту. + * @export + * @interface FilterTimeslotFromRange + */ +export interface FilterTimeslotFromRange { + /** + * Дата начала. + * @type {string} + * @memberof FilterTimeslotFromRange + */ + from?: string; + /** + * + * @type {TimeslotFromRangeTimeslotFilterTypeEnum} + * @memberof FilterTimeslotFromRange + */ + timeslot_filter_type?: TimeslotFromRangeTimeslotFilterTypeEnum; + /** + * Дата окончания. + * @type {string} + * @memberof FilterTimeslotFromRange + */ + to?: string; +} +/** + * Check if a given object implements the FilterTimeslotFromRange interface. + */ +export declare function instanceOfFilterTimeslotFromRange(value: object): value is FilterTimeslotFromRange; +export declare function FilterTimeslotFromRangeFromJSON(json: any): FilterTimeslotFromRange; +export declare function FilterTimeslotFromRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterTimeslotFromRange; +export declare function FilterTimeslotFromRangeToJSON(value?: FilterTimeslotFromRange | null): any; diff --git a/dist/models/FilterTimeslotFromRange.js b/dist/models/FilterTimeslotFromRange.js new file mode 100644 index 0000000..64af9fe --- /dev/null +++ b/dist/models/FilterTimeslotFromRange.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFilterTimeslotFromRange = instanceOfFilterTimeslotFromRange; +exports.FilterTimeslotFromRangeFromJSON = FilterTimeslotFromRangeFromJSON; +exports.FilterTimeslotFromRangeFromJSONTyped = FilterTimeslotFromRangeFromJSONTyped; +exports.FilterTimeslotFromRangeToJSON = FilterTimeslotFromRangeToJSON; +const TimeslotFromRangeTimeslotFilterTypeEnum_1 = require("./TimeslotFromRangeTimeslotFilterTypeEnum"); +/** + * Check if a given object implements the FilterTimeslotFromRange interface. + */ +function instanceOfFilterTimeslotFromRange(value) { + return true; +} +function FilterTimeslotFromRangeFromJSON(json) { + return FilterTimeslotFromRangeFromJSONTyped(json, false); +} +function FilterTimeslotFromRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'timeslot_filter_type': json['timeslot_filter_type'] == null ? undefined : (0, TimeslotFromRangeTimeslotFilterTypeEnum_1.TimeslotFromRangeTimeslotFilterTypeEnumFromJSON)(json['timeslot_filter_type']), + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function FilterTimeslotFromRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'timeslot_filter_type': (0, TimeslotFromRangeTimeslotFilterTypeEnum_1.TimeslotFromRangeTimeslotFilterTypeEnumToJSON)(value['timeslot_filter_type']), + 'to': value['to'], + }; +} diff --git a/dist/models/FilterWithQuant.d.ts b/dist/models/FilterWithQuant.d.ts new file mode 100644 index 0000000..f8333e0 --- /dev/null +++ b/dist/models/FilterWithQuant.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Товары по тарифу «Эконом». + * @export + * @interface FilterWithQuant + */ +export interface FilterWithQuant { + /** + * Активные эконом-товары. + * @type {boolean} + * @memberof FilterWithQuant + */ + created?: boolean; + /** + * Эконом-товары во всех статусах. + * @type {boolean} + * @memberof FilterWithQuant + */ + _exists?: boolean; +} +/** + * Check if a given object implements the FilterWithQuant interface. + */ +export declare function instanceOfFilterWithQuant(value: object): value is FilterWithQuant; +export declare function FilterWithQuantFromJSON(json: any): FilterWithQuant; +export declare function FilterWithQuantFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterWithQuant; +export declare function FilterWithQuantToJSON(value?: FilterWithQuant | null): any; diff --git a/dist/models/FilterWithQuant.js b/dist/models/FilterWithQuant.js new file mode 100644 index 0000000..b7e64f1 --- /dev/null +++ b/dist/models/FilterWithQuant.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFilterWithQuant = instanceOfFilterWithQuant; +exports.FilterWithQuantFromJSON = FilterWithQuantFromJSON; +exports.FilterWithQuantFromJSONTyped = FilterWithQuantFromJSONTyped; +exports.FilterWithQuantToJSON = FilterWithQuantToJSON; +/** + * Check if a given object implements the FilterWithQuant interface. + */ +function instanceOfFilterWithQuant(value) { + return true; +} +function FilterWithQuantFromJSON(json) { + return FilterWithQuantFromJSONTyped(json, false); +} +function FilterWithQuantFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created': json['created'] == null ? undefined : json['created'], + '_exists': json['exists'] == null ? undefined : json['exists'], + }; +} +function FilterWithQuantToJSON(value) { + if (value == null) { + return value; + } + return { + 'created': value['created'], + 'exists': value['_exists'], + }; +} diff --git a/dist/models/FinanceCashFlowStatementListResponseCashFlow.d.ts b/dist/models/FinanceCashFlowStatementListResponseCashFlow.d.ts new file mode 100644 index 0000000..f58b27d --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseCashFlow.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FinanceCashFlowStatementListResponsePeriod } from './V3FinanceCashFlowStatementListResponsePeriod'; +/** + * + * @export + * @interface FinanceCashFlowStatementListResponseCashFlow + */ +export interface FinanceCashFlowStatementListResponseCashFlow { + /** + * + * @type {V3FinanceCashFlowStatementListResponsePeriod} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + period?: V3FinanceCashFlowStatementListResponsePeriod; + /** + * Сумма цен реализованных товаров. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + orders_amount?: number; + /** + * Сумма цен возвращённых товаров. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + returns_amount?: number; + /** + * Комиссия Ozon за реализацию товаров. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + commission_amount?: number; + /** + * Сумма дополнительных услуг. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + services_amount?: number; + /** + * Сумма услуг логистики. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + item_delivery_and_return_amount?: number; + /** + * Код валюты, в которой рассчитываются комиссии. + * @type {string} + * @memberof FinanceCashFlowStatementListResponseCashFlow + */ + currency_code?: string; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseCashFlow interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseCashFlow(value: object): value is FinanceCashFlowStatementListResponseCashFlow; +export declare function FinanceCashFlowStatementListResponseCashFlowFromJSON(json: any): FinanceCashFlowStatementListResponseCashFlow; +export declare function FinanceCashFlowStatementListResponseCashFlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseCashFlow; +export declare function FinanceCashFlowStatementListResponseCashFlowToJSON(value?: FinanceCashFlowStatementListResponseCashFlow | null): any; diff --git a/dist/models/FinanceCashFlowStatementListResponseCashFlow.js b/dist/models/FinanceCashFlowStatementListResponseCashFlow.js new file mode 100644 index 0000000..cf30917 --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseCashFlow.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceCashFlowStatementListResponseCashFlow = instanceOfFinanceCashFlowStatementListResponseCashFlow; +exports.FinanceCashFlowStatementListResponseCashFlowFromJSON = FinanceCashFlowStatementListResponseCashFlowFromJSON; +exports.FinanceCashFlowStatementListResponseCashFlowFromJSONTyped = FinanceCashFlowStatementListResponseCashFlowFromJSONTyped; +exports.FinanceCashFlowStatementListResponseCashFlowToJSON = FinanceCashFlowStatementListResponseCashFlowToJSON; +const V3FinanceCashFlowStatementListResponsePeriod_1 = require("./V3FinanceCashFlowStatementListResponsePeriod"); +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseCashFlow interface. + */ +function instanceOfFinanceCashFlowStatementListResponseCashFlow(value) { + return true; +} +function FinanceCashFlowStatementListResponseCashFlowFromJSON(json) { + return FinanceCashFlowStatementListResponseCashFlowFromJSONTyped(json, false); +} +function FinanceCashFlowStatementListResponseCashFlowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'period': json['period'] == null ? undefined : (0, V3FinanceCashFlowStatementListResponsePeriod_1.V3FinanceCashFlowStatementListResponsePeriodFromJSON)(json['period']), + 'orders_amount': json['orders_amount'] == null ? undefined : json['orders_amount'], + 'returns_amount': json['returns_amount'] == null ? undefined : json['returns_amount'], + 'commission_amount': json['commission_amount'] == null ? undefined : json['commission_amount'], + 'services_amount': json['services_amount'] == null ? undefined : json['services_amount'], + 'item_delivery_and_return_amount': json['item_delivery_and_return_amount'] == null ? undefined : json['item_delivery_and_return_amount'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + }; +} +function FinanceCashFlowStatementListResponseCashFlowToJSON(value) { + if (value == null) { + return value; + } + return { + 'period': (0, V3FinanceCashFlowStatementListResponsePeriod_1.V3FinanceCashFlowStatementListResponsePeriodToJSON)(value['period']), + 'orders_amount': value['orders_amount'], + 'returns_amount': value['returns_amount'], + 'commission_amount': value['commission_amount'], + 'services_amount': value['services_amount'], + 'item_delivery_and_return_amount': value['item_delivery_and_return_amount'], + 'currency_code': value['currency_code'], + }; +} diff --git a/dist/models/FinanceCashFlowStatementListResponseDeliveryService.d.ts b/dist/models/FinanceCashFlowStatementListResponseDeliveryService.d.ts new file mode 100644 index 0000000..9777e11 --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseDeliveryService.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детализация. + * @export + * @interface FinanceCashFlowStatementListResponseDeliveryService + */ +export interface FinanceCashFlowStatementListResponseDeliveryService { + /** + * Название операции. Возможные значения: + * - `MarketplaceServiceItemDirectFlowLogisticSum` — логистика, + * - `MarketplaceServiceItemDirectFlowLogisticDC` — логистика РЦ, + * - `MarketplaceServiceItemDropoff` — обработка отправления Drop-off, + * - `MarketplaceServiceItemDirectFlowTrans` — магистраль, + * - `MarketplaceServiceDCFlowTrans` — магистраль РЦ, + * - `MarketplaceServiceItemFulfillment` — сборка заказа, + * - `MarketplaceServiceItemDelivToCustomer` — последняя миля. + * + * @type {string} + * @memberof FinanceCashFlowStatementListResponseDeliveryService + */ + name?: string; + /** + * Сумма по операции. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDeliveryService + */ + price?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDeliveryService interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseDeliveryService(value: object): value is FinanceCashFlowStatementListResponseDeliveryService; +export declare function FinanceCashFlowStatementListResponseDeliveryServiceFromJSON(json: any): FinanceCashFlowStatementListResponseDeliveryService; +export declare function FinanceCashFlowStatementListResponseDeliveryServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseDeliveryService; +export declare function FinanceCashFlowStatementListResponseDeliveryServiceToJSON(value?: FinanceCashFlowStatementListResponseDeliveryService | null): any; diff --git a/dist/models/FinanceCashFlowStatementListResponseDeliveryService.js b/dist/models/FinanceCashFlowStatementListResponseDeliveryService.js new file mode 100644 index 0000000..41bed4a --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseDeliveryService.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceCashFlowStatementListResponseDeliveryService = instanceOfFinanceCashFlowStatementListResponseDeliveryService; +exports.FinanceCashFlowStatementListResponseDeliveryServiceFromJSON = FinanceCashFlowStatementListResponseDeliveryServiceFromJSON; +exports.FinanceCashFlowStatementListResponseDeliveryServiceFromJSONTyped = FinanceCashFlowStatementListResponseDeliveryServiceFromJSONTyped; +exports.FinanceCashFlowStatementListResponseDeliveryServiceToJSON = FinanceCashFlowStatementListResponseDeliveryServiceToJSON; +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDeliveryService interface. + */ +function instanceOfFinanceCashFlowStatementListResponseDeliveryService(value) { + return true; +} +function FinanceCashFlowStatementListResponseDeliveryServiceFromJSON(json) { + return FinanceCashFlowStatementListResponseDeliveryServiceFromJSONTyped(json, false); +} +function FinanceCashFlowStatementListResponseDeliveryServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function FinanceCashFlowStatementListResponseDeliveryServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/models/FinanceCashFlowStatementListResponseDetails.d.ts b/dist/models/FinanceCashFlowStatementListResponseDetails.d.ts new file mode 100644 index 0000000..e742126 --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseDetails.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DetailsRfbsDetails } from './DetailsRfbsDetails'; +import type { DetailsService } from './DetailsService'; +import type { V3FinanceCashFlowStatementListResponsePeriod } from './V3FinanceCashFlowStatementListResponsePeriod'; +import type { DetailsOthers } from './DetailsOthers'; +import type { DetailsDeliveryDetails } from './DetailsDeliveryDetails'; +import type { DetailsPayment } from './DetailsPayment'; +import type { DetailsReturnDetails } from './DetailsReturnDetails'; +/** + * Детализированная информация. + * @export + * @interface FinanceCashFlowStatementListResponseDetails + */ +export interface FinanceCashFlowStatementListResponseDetails { + /** + * Баланс на начало периода. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + begin_balance_amount?: number; + /** + * + * @type {DetailsDeliveryDetails} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + delivery?: DetailsDeliveryDetails; + /** + * Сумма к выплате за период. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + invoice_transfer?: number; + /** + * Перевод по договорам займа. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + loan?: number; + /** + * + * @type {DetailsPayment} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + payments?: DetailsPayment; + /** + * + * @type {V3FinanceCashFlowStatementListResponsePeriod} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + period?: V3FinanceCashFlowStatementListResponsePeriod; + /** + * + * @type {DetailsReturnDetails} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + _return?: DetailsReturnDetails; + /** + * + * @type {DetailsRfbsDetails} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + rfbs?: DetailsRfbsDetails; + /** + * + * @type {DetailsService} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + services?: DetailsService; + /** + * + * @type {DetailsOthers} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + others?: DetailsOthers; + /** + * Баланс на конец периода. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetails + */ + end_balance_amount?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDetails interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseDetails(value: object): value is FinanceCashFlowStatementListResponseDetails; +export declare function FinanceCashFlowStatementListResponseDetailsFromJSON(json: any): FinanceCashFlowStatementListResponseDetails; +export declare function FinanceCashFlowStatementListResponseDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseDetails; +export declare function FinanceCashFlowStatementListResponseDetailsToJSON(value?: FinanceCashFlowStatementListResponseDetails | null): any; diff --git a/dist/models/FinanceCashFlowStatementListResponseDetails.js b/dist/models/FinanceCashFlowStatementListResponseDetails.js new file mode 100644 index 0000000..99e65db --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseDetails.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceCashFlowStatementListResponseDetails = instanceOfFinanceCashFlowStatementListResponseDetails; +exports.FinanceCashFlowStatementListResponseDetailsFromJSON = FinanceCashFlowStatementListResponseDetailsFromJSON; +exports.FinanceCashFlowStatementListResponseDetailsFromJSONTyped = FinanceCashFlowStatementListResponseDetailsFromJSONTyped; +exports.FinanceCashFlowStatementListResponseDetailsToJSON = FinanceCashFlowStatementListResponseDetailsToJSON; +const DetailsRfbsDetails_1 = require("./DetailsRfbsDetails"); +const DetailsService_1 = require("./DetailsService"); +const V3FinanceCashFlowStatementListResponsePeriod_1 = require("./V3FinanceCashFlowStatementListResponsePeriod"); +const DetailsOthers_1 = require("./DetailsOthers"); +const DetailsDeliveryDetails_1 = require("./DetailsDeliveryDetails"); +const DetailsPayment_1 = require("./DetailsPayment"); +const DetailsReturnDetails_1 = require("./DetailsReturnDetails"); +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDetails interface. + */ +function instanceOfFinanceCashFlowStatementListResponseDetails(value) { + return true; +} +function FinanceCashFlowStatementListResponseDetailsFromJSON(json) { + return FinanceCashFlowStatementListResponseDetailsFromJSONTyped(json, false); +} +function FinanceCashFlowStatementListResponseDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'begin_balance_amount': json['begin_balance_amount'] == null ? undefined : json['begin_balance_amount'], + 'delivery': json['delivery'] == null ? undefined : (0, DetailsDeliveryDetails_1.DetailsDeliveryDetailsFromJSON)(json['delivery']), + 'invoice_transfer': json['invoice_transfer'] == null ? undefined : json['invoice_transfer'], + 'loan': json['loan'] == null ? undefined : json['loan'], + 'payments': json['payments'] == null ? undefined : (0, DetailsPayment_1.DetailsPaymentFromJSON)(json['payments']), + 'period': json['period'] == null ? undefined : (0, V3FinanceCashFlowStatementListResponsePeriod_1.V3FinanceCashFlowStatementListResponsePeriodFromJSON)(json['period']), + '_return': json['return'] == null ? undefined : (0, DetailsReturnDetails_1.DetailsReturnDetailsFromJSON)(json['return']), + 'rfbs': json['rfbs'] == null ? undefined : (0, DetailsRfbsDetails_1.DetailsRfbsDetailsFromJSON)(json['rfbs']), + 'services': json['services'] == null ? undefined : (0, DetailsService_1.DetailsServiceFromJSON)(json['services']), + 'others': json['others'] == null ? undefined : (0, DetailsOthers_1.DetailsOthersFromJSON)(json['others']), + 'end_balance_amount': json['end_balance_amount'] == null ? undefined : json['end_balance_amount'], + }; +} +function FinanceCashFlowStatementListResponseDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'begin_balance_amount': value['begin_balance_amount'], + 'delivery': (0, DetailsDeliveryDetails_1.DetailsDeliveryDetailsToJSON)(value['delivery']), + 'invoice_transfer': value['invoice_transfer'], + 'loan': value['loan'], + 'payments': (0, DetailsPayment_1.DetailsPaymentToJSON)(value['payments']), + 'period': (0, V3FinanceCashFlowStatementListResponsePeriod_1.V3FinanceCashFlowStatementListResponsePeriodToJSON)(value['period']), + 'return': (0, DetailsReturnDetails_1.DetailsReturnDetailsToJSON)(value['_return']), + 'rfbs': (0, DetailsRfbsDetails_1.DetailsRfbsDetailsToJSON)(value['rfbs']), + 'services': (0, DetailsService_1.DetailsServiceToJSON)(value['services']), + 'others': (0, DetailsOthers_1.DetailsOthersToJSON)(value['others']), + 'end_balance_amount': value['end_balance_amount'], + }; +} diff --git a/dist/models/FinanceCashFlowStatementListResponseDetailsOthers.d.ts b/dist/models/FinanceCashFlowStatementListResponseDetailsOthers.d.ts new file mode 100644 index 0000000..8b97253 --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseDetailsOthers.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детализация. + * @export + * @interface FinanceCashFlowStatementListResponseDetailsOthers + */ +export interface FinanceCashFlowStatementListResponseDetailsOthers { + /** + * Название операции. Возможные значения: + * - `MarketplaceRedistributionOfAcquiringOperation` — оплата эквайринга, + * - `MarketplaceSellerCompensationLossOfGoodsOperation` — компенсация за уничтоженный товар, + * - `MarketplaceSellerCorrectionOperation` — корректировка стоимости услуг, + * - `OperationCorrectionSeller` — инвентаризация взаиморасчётов, + * - `OperationMarketplaceWithHoldingForUndeliverableGoods` — компенсация за недовложение товаров, + * - `OperationClaim` — начисления по претензиям. + * + * @type {string} + * @memberof FinanceCashFlowStatementListResponseDetailsOthers + */ + name?: string; + /** + * Сумма по операции. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseDetailsOthers + */ + price?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDetailsOthers interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseDetailsOthers(value: object): value is FinanceCashFlowStatementListResponseDetailsOthers; +export declare function FinanceCashFlowStatementListResponseDetailsOthersFromJSON(json: any): FinanceCashFlowStatementListResponseDetailsOthers; +export declare function FinanceCashFlowStatementListResponseDetailsOthersFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseDetailsOthers; +export declare function FinanceCashFlowStatementListResponseDetailsOthersToJSON(value?: FinanceCashFlowStatementListResponseDetailsOthers | null): any; diff --git a/dist/models/FinanceCashFlowStatementListResponseDetailsOthers.js b/dist/models/FinanceCashFlowStatementListResponseDetailsOthers.js new file mode 100644 index 0000000..ba44f14 --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseDetailsOthers.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceCashFlowStatementListResponseDetailsOthers = instanceOfFinanceCashFlowStatementListResponseDetailsOthers; +exports.FinanceCashFlowStatementListResponseDetailsOthersFromJSON = FinanceCashFlowStatementListResponseDetailsOthersFromJSON; +exports.FinanceCashFlowStatementListResponseDetailsOthersFromJSONTyped = FinanceCashFlowStatementListResponseDetailsOthersFromJSONTyped; +exports.FinanceCashFlowStatementListResponseDetailsOthersToJSON = FinanceCashFlowStatementListResponseDetailsOthersToJSON; +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseDetailsOthers interface. + */ +function instanceOfFinanceCashFlowStatementListResponseDetailsOthers(value) { + return true; +} +function FinanceCashFlowStatementListResponseDetailsOthersFromJSON(json) { + return FinanceCashFlowStatementListResponseDetailsOthersFromJSONTyped(json, false); +} +function FinanceCashFlowStatementListResponseDetailsOthersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function FinanceCashFlowStatementListResponseDetailsOthersToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/models/FinanceCashFlowStatementListResponseReturnService.d.ts b/dist/models/FinanceCashFlowStatementListResponseReturnService.d.ts new file mode 100644 index 0000000..79f9293 --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseReturnService.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детализация. + * @export + * @interface FinanceCashFlowStatementListResponseReturnService + */ +export interface FinanceCashFlowStatementListResponseReturnService { + /** + * Название операции. Возможные значения: + * - `MarketplaceServiceItemReturnAfterDelivToCustomer` — обработка возвратов, + * - `MarketplaceServiceItemReturnPartGoodsCustomer` — обработка частичного невыкупа, + * - `MarketplaceServiceItemReturnNotDelivToCustomer` — обработка отменённых и невостребованных товаров, + * - `MarketplaceServiceItemReturnFlowLogistic` — обратная логистика. + * + * @type {string} + * @memberof FinanceCashFlowStatementListResponseReturnService + */ + name?: string; + /** + * Сумма по операции. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseReturnService + */ + price?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseReturnService interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseReturnService(value: object): value is FinanceCashFlowStatementListResponseReturnService; +export declare function FinanceCashFlowStatementListResponseReturnServiceFromJSON(json: any): FinanceCashFlowStatementListResponseReturnService; +export declare function FinanceCashFlowStatementListResponseReturnServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseReturnService; +export declare function FinanceCashFlowStatementListResponseReturnServiceToJSON(value?: FinanceCashFlowStatementListResponseReturnService | null): any; diff --git a/dist/models/FinanceCashFlowStatementListResponseReturnService.js b/dist/models/FinanceCashFlowStatementListResponseReturnService.js new file mode 100644 index 0000000..6bb3f5d --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseReturnService.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceCashFlowStatementListResponseReturnService = instanceOfFinanceCashFlowStatementListResponseReturnService; +exports.FinanceCashFlowStatementListResponseReturnServiceFromJSON = FinanceCashFlowStatementListResponseReturnServiceFromJSON; +exports.FinanceCashFlowStatementListResponseReturnServiceFromJSONTyped = FinanceCashFlowStatementListResponseReturnServiceFromJSONTyped; +exports.FinanceCashFlowStatementListResponseReturnServiceToJSON = FinanceCashFlowStatementListResponseReturnServiceToJSON; +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseReturnService interface. + */ +function instanceOfFinanceCashFlowStatementListResponseReturnService(value) { + return true; +} +function FinanceCashFlowStatementListResponseReturnServiceFromJSON(json) { + return FinanceCashFlowStatementListResponseReturnServiceFromJSONTyped(json, false); +} +function FinanceCashFlowStatementListResponseReturnServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function FinanceCashFlowStatementListResponseReturnServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/models/FinanceCashFlowStatementListResponseService.d.ts b/dist/models/FinanceCashFlowStatementListResponseService.d.ts new file mode 100644 index 0000000..d78f553 --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseService.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детализация. + * @export + * @interface FinanceCashFlowStatementListResponseService + */ +export interface FinanceCashFlowStatementListResponseService { + /** + * Название операции: + * - `MarketplaceServiceItemElectronicServiceStencil` — услуга «Трафареты»; + * - `MarketplaceServiceItemElectronicServicesPromotionInSearch` — услуга «Продвижение в поиске»; + * - `MarketplaceServiceItemElectronicServicesBrandShelf` — услуга «Брендовая полка»; + * - `MarketplaceServiceBrandPromotion` и `MarketplaceServiceBrandCommission` — услуга «Продвижение бренда»; + * - `MarketplaceServiceItemMarketingServices` — маркетинговые услуги; + * - `MarketplaceServiceItemTechnicalServicesAndOtherServices` — технические и иные услуги; + * - `MarketplaceServiceItemOtherElectronicServices` — иные электронные услуги; + * - `ItemAgentServiceStarsMembership` — звёздные товары; + * - `MarketplaceReturnStorageServiceAtThePickupPointFbsItem` — краткосрочное размещение возврата FBS; + * - `MarketplaceSaleReviewsItem` — приобретение отзывов на платформе; + * - `MarketplaceServicePremiumCashbackIndividualPoints` — услуга продвижения «Бонусы продавца»; + * - `OperationMarketplaceServiceStorage` — услуга размещения товаров; + * - `MarketplaceServiceStockDisposal` — утилизация со стока; + * - `MarketplaceReturnDisposalServiceFbsItem` — утилизация FBS; + * - `MarketplaceServiceItemFlexiblePaymentSchedule` — услуга «Гибкий график выплат»; + * - `MarketplaceServiceProcessingSpoilage` — обработка брака; + * - `MarketplaceServiceProcessingIdentifiedSurplus` — обработка опознанных излишков; + * - `MarketplaceServiceProcessingIdentifiedDiscrepancies` — бронирование места для размещения на складе; + * - `MarketplaceServiceItemInternetSiteAdvertising` — реклама на сайте Ozon; + * - `MarketplaceServiceItemSubscribtionPremium` — премиум-подписка; + * - `MarketplaceAgencyFeeAggregator3PLGlobalItem` — агентское вознаграждение Ozon. + * + * @type {string} + * @memberof FinanceCashFlowStatementListResponseService + */ + name?: string; + /** + * Сумма по операции. + * @type {number} + * @memberof FinanceCashFlowStatementListResponseService + */ + price?: number; +} +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseService interface. + */ +export declare function instanceOfFinanceCashFlowStatementListResponseService(value: object): value is FinanceCashFlowStatementListResponseService; +export declare function FinanceCashFlowStatementListResponseServiceFromJSON(json: any): FinanceCashFlowStatementListResponseService; +export declare function FinanceCashFlowStatementListResponseServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceCashFlowStatementListResponseService; +export declare function FinanceCashFlowStatementListResponseServiceToJSON(value?: FinanceCashFlowStatementListResponseService | null): any; diff --git a/dist/models/FinanceCashFlowStatementListResponseService.js b/dist/models/FinanceCashFlowStatementListResponseService.js new file mode 100644 index 0000000..f28b608 --- /dev/null +++ b/dist/models/FinanceCashFlowStatementListResponseService.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceCashFlowStatementListResponseService = instanceOfFinanceCashFlowStatementListResponseService; +exports.FinanceCashFlowStatementListResponseServiceFromJSON = FinanceCashFlowStatementListResponseServiceFromJSON; +exports.FinanceCashFlowStatementListResponseServiceFromJSONTyped = FinanceCashFlowStatementListResponseServiceFromJSONTyped; +exports.FinanceCashFlowStatementListResponseServiceToJSON = FinanceCashFlowStatementListResponseServiceToJSON; +/** + * Check if a given object implements the FinanceCashFlowStatementListResponseService interface. + */ +function instanceOfFinanceCashFlowStatementListResponseService(value) { + return true; +} +function FinanceCashFlowStatementListResponseServiceFromJSON(json) { + return FinanceCashFlowStatementListResponseServiceFromJSONTyped(json, false); +} +function FinanceCashFlowStatementListResponseServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function FinanceCashFlowStatementListResponseServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/models/FinanceTransactionListV3RequestFilter.d.ts b/dist/models/FinanceTransactionListV3RequestFilter.d.ts new file mode 100644 index 0000000..40b369f --- /dev/null +++ b/dist/models/FinanceTransactionListV3RequestFilter.d.ts @@ -0,0 +1,99 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FilterPeriod } from './FilterPeriod'; +/** + * Фильтр. + * @export + * @interface FinanceTransactionListV3RequestFilter + */ +export interface FinanceTransactionListV3RequestFilter { + /** + * + * @type {FilterPeriod} + * @memberof FinanceTransactionListV3RequestFilter + */ + date?: FilterPeriod; + /** + * Тип операции: + * - `ClientReturnAgentOperation` — получение возврата, отмены, невыкупа от покупателя; + * - `MarketplaceMarketingActionCostOperation` — услуги продвижения товаров; + * - `MarketplaceSaleReviewsOperation` — приобретение отзывов на платформе; + * - `MarketplaceSellerCompensationOperation` — прочие компенсации; + * - `OperationAgentDeliveredToCustomer` — доставка покупателю; + * - `OperationAgentDeliveredToCustomerCanceled` — доставка покупателю — исправленное начисление; + * - `OperationAgentStornoDeliveredToCustomer` — доставка покупателю — отмена начисления; + * - `OperationClaim` — начисление по претензии; + * - `OperationCorrectionSeller` — инвентаризация взаиморасчетов; + * - `OperationDefectiveWriteOff` — компенсация за повреждённый на складе товар; + * - `OperationItemReturn` — доставка и обработка возврата, отмены, невыкупа; + * - `OperationLackWriteOff` — компенсация за утерянный на складе товар; + * - `OperationMarketplaceCrossDockServiceWriteOff` — доставка товаров на склад Ozon (кросс-докинг); + * - `OperationMarketplaceServiceStorage` — услуга размещения товаров на складе; + * - `OperationSetOff` — взаимозачёт с другими договорами контрагента; + * - `MarketplaceSellerReexposureDeliveryReturnOperation` — перечисление за доставку от покупателя; + * - `OperationReturnGoodsFBSofRMS` — доставка и обработка возврата, отмены, невыкупа; + * - `ReturnAgentOperationRFBS` — возврат перечисления за доставку покупателю; + * - `ItemAgentServiceStarsMembership` — вознаграждение за услугу [«Звёздные товары»](https://s.ozon.ru/e7NlR6b); + * - `MarketplaceSellerShippingCompensationReturnOperation` — компенсация перечисления за доставку; + * - `OperationMarketplaceServicePremiumCashback` — услуга продвижения Premium; + * - `MarketplaceServicePremiumPromotion` — услуга продвижения Premium, фиксированная комиссия; + * - `MarketplaceRedistributionOfAcquiringOperation` — оплата эквайринга; + * - `MarketplaceReturnStorageServiceAtThePickupPointFbsItem` — краткосрочное размещение возврата FBS; + * - `MarketplaceReturnStorageServiceInTheWarehouseFbsItem` — долгосрочное размещение возврата FBS; + * - `MarketplaceServiceItemDeliveryKGT` — доставка КГТ; + * - `MarketplaceServiceItemDirectFlowLogistic` — логистика; + * - `MarketplaceServiceItemReturnFlowLogistic` — обратная логистика; + * - `MarketplaceServicePremiumCashbackIndividualPoints` — услуга продвижения «Бонусы продавца»; + * - `OperationMarketplaceWithHoldingForUndeliverableGoods` — удержание за недовложение товара; + * - `MarketplaceServiceItemDirectFlowLogisticVDC` — логистика вРЦ; + * - `MarketplaceServiceItemDropoffPPZ` — услуга drop-off в пункте приёма заказов; + * - `MarketplaceServicePremiumCashback` — услуга продвижения Premium; + * - `MarketplaceServiceItemRedistributionReturnsPVZ` — перевыставление возвратов на пункте выдачи; + * - `OperationElectronicServiceStencil` — услуга «Трафареты»; + * - `OperationElectronicServicesPromotionInSearch` — услуга «Продвижение в поиске»; + * - `OperationMarketplaceServiceItemElectronicServicesBrandShelf` — услуга «Брендовая полка»; + * - `OperationSubscriptionPremium` — подписка Premium. + * + * @type {Array} + * @memberof FinanceTransactionListV3RequestFilter + */ + operation_type?: Array; + /** + * Номер отправления. + * @type {string} + * @memberof FinanceTransactionListV3RequestFilter + */ + posting_number?: string; + /** + * Тип начисления: + * - `all` — все, + * - `orders` — заказы, + * - `returns` — возвраты и отмены, + * - `services` — сервисные сборы, + * - `compensation` — компенсация, + * - `transferDelivery` — стоимость доставки, + * - `other` — прочее. + * + * Некоторые операции могут быть разделены во времени. Например, при приёме возврата от покупателя списывается стоимость товара и возвращается комиссия, а когда товар возвращается на склад, взимается стоимость услуга по обработке возврата. + * + * @type {string} + * @memberof FinanceTransactionListV3RequestFilter + */ + transaction_type?: string; +} +/** + * Check if a given object implements the FinanceTransactionListV3RequestFilter interface. + */ +export declare function instanceOfFinanceTransactionListV3RequestFilter(value: object): value is FinanceTransactionListV3RequestFilter; +export declare function FinanceTransactionListV3RequestFilterFromJSON(json: any): FinanceTransactionListV3RequestFilter; +export declare function FinanceTransactionListV3RequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceTransactionListV3RequestFilter; +export declare function FinanceTransactionListV3RequestFilterToJSON(value?: FinanceTransactionListV3RequestFilter | null): any; diff --git a/dist/models/FinanceTransactionListV3RequestFilter.js b/dist/models/FinanceTransactionListV3RequestFilter.js new file mode 100644 index 0000000..74ef889 --- /dev/null +++ b/dist/models/FinanceTransactionListV3RequestFilter.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceTransactionListV3RequestFilter = instanceOfFinanceTransactionListV3RequestFilter; +exports.FinanceTransactionListV3RequestFilterFromJSON = FinanceTransactionListV3RequestFilterFromJSON; +exports.FinanceTransactionListV3RequestFilterFromJSONTyped = FinanceTransactionListV3RequestFilterFromJSONTyped; +exports.FinanceTransactionListV3RequestFilterToJSON = FinanceTransactionListV3RequestFilterToJSON; +const FilterPeriod_1 = require("./FilterPeriod"); +/** + * Check if a given object implements the FinanceTransactionListV3RequestFilter interface. + */ +function instanceOfFinanceTransactionListV3RequestFilter(value) { + return true; +} +function FinanceTransactionListV3RequestFilterFromJSON(json) { + return FinanceTransactionListV3RequestFilterFromJSONTyped(json, false); +} +function FinanceTransactionListV3RequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : (0, FilterPeriod_1.FilterPeriodFromJSON)(json['date']), + 'operation_type': json['operation_type'] == null ? undefined : json['operation_type'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'transaction_type': json['transaction_type'] == null ? undefined : json['transaction_type'], + }; +} +function FinanceTransactionListV3RequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': (0, FilterPeriod_1.FilterPeriodToJSON)(value['date']), + 'operation_type': value['operation_type'], + 'posting_number': value['posting_number'], + 'transaction_type': value['transaction_type'], + }; +} diff --git a/dist/models/FinanceTransactionListV3ResponseOperation.d.ts b/dist/models/FinanceTransactionListV3ResponseOperation.d.ts new file mode 100644 index 0000000..71a2e83 --- /dev/null +++ b/dist/models/FinanceTransactionListV3ResponseOperation.d.ts @@ -0,0 +1,114 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OperationPosting } from './OperationPosting'; +import type { OperationService } from './OperationService'; +import type { OperationItem } from './OperationItem'; +/** + * + * @export + * @interface FinanceTransactionListV3ResponseOperation + */ +export interface FinanceTransactionListV3ResponseOperation { + /** + * Стоимость товаров с учётом скидок продавца. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + accruals_for_sale?: number; + /** + * Итоговая сумма операции. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + amount?: number; + /** + * Стоимость доставки для начислений по тарифам, которые действовали до 1 февраля 2021 года, а также начислений для крупногабаритных товаров. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + delivery_charge?: number; + /** + * Информация о товаре. + * @type {Array} + * @memberof FinanceTransactionListV3ResponseOperation + */ + items?: Array; + /** + * Дата операции. + * @type {string} + * @memberof FinanceTransactionListV3ResponseOperation + */ + operation_date?: string; + /** + * Идентификатор операции. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + operation_id?: number; + /** + * Тип операции. + * @type {string} + * @memberof FinanceTransactionListV3ResponseOperation + */ + operation_type?: string; + /** + * Название типа операции. + * @type {string} + * @memberof FinanceTransactionListV3ResponseOperation + */ + operation_type_name?: string; + /** + * + * @type {OperationPosting} + * @memberof FinanceTransactionListV3ResponseOperation + */ + posting?: OperationPosting; + /** + * Плата за возвраты и отмены для начислений по тарифам, которые действовали до 1 февраля 2021 года, а также начислений для крупногабаритных товаров. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + return_delivery_charge?: number; + /** + * Комиссия за продажу или возврат комиссии за продажу. + * @type {number} + * @memberof FinanceTransactionListV3ResponseOperation + */ + sale_commission?: number; + /** + * Название услуги. + * @type {Array} + * @memberof FinanceTransactionListV3ResponseOperation + */ + services?: Array; + /** + * Тип начисления: + * - `all` — все, + * - `orders` — заказы, + * - `returns` — возвраты и отмены, + * - `services` — сервисные сборы, + * - `compensation` — компенсация, + * - `transferDelivery` — стоимость доставки, + * - `other` — прочее. + * + * @type {string} + * @memberof FinanceTransactionListV3ResponseOperation + */ + type?: string; +} +/** + * Check if a given object implements the FinanceTransactionListV3ResponseOperation interface. + */ +export declare function instanceOfFinanceTransactionListV3ResponseOperation(value: object): value is FinanceTransactionListV3ResponseOperation; +export declare function FinanceTransactionListV3ResponseOperationFromJSON(json: any): FinanceTransactionListV3ResponseOperation; +export declare function FinanceTransactionListV3ResponseOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceTransactionListV3ResponseOperation; +export declare function FinanceTransactionListV3ResponseOperationToJSON(value?: FinanceTransactionListV3ResponseOperation | null): any; diff --git a/dist/models/FinanceTransactionListV3ResponseOperation.js b/dist/models/FinanceTransactionListV3ResponseOperation.js new file mode 100644 index 0000000..75177c8 --- /dev/null +++ b/dist/models/FinanceTransactionListV3ResponseOperation.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceTransactionListV3ResponseOperation = instanceOfFinanceTransactionListV3ResponseOperation; +exports.FinanceTransactionListV3ResponseOperationFromJSON = FinanceTransactionListV3ResponseOperationFromJSON; +exports.FinanceTransactionListV3ResponseOperationFromJSONTyped = FinanceTransactionListV3ResponseOperationFromJSONTyped; +exports.FinanceTransactionListV3ResponseOperationToJSON = FinanceTransactionListV3ResponseOperationToJSON; +const OperationPosting_1 = require("./OperationPosting"); +const OperationService_1 = require("./OperationService"); +const OperationItem_1 = require("./OperationItem"); +/** + * Check if a given object implements the FinanceTransactionListV3ResponseOperation interface. + */ +function instanceOfFinanceTransactionListV3ResponseOperation(value) { + return true; +} +function FinanceTransactionListV3ResponseOperationFromJSON(json) { + return FinanceTransactionListV3ResponseOperationFromJSONTyped(json, false); +} +function FinanceTransactionListV3ResponseOperationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accruals_for_sale': json['accruals_for_sale'] == null ? undefined : json['accruals_for_sale'], + 'amount': json['amount'] == null ? undefined : json['amount'], + 'delivery_charge': json['delivery_charge'] == null ? undefined : json['delivery_charge'], + 'items': json['items'] == null ? undefined : (json['items'].map(OperationItem_1.OperationItemFromJSON)), + 'operation_date': json['operation_date'] == null ? undefined : json['operation_date'], + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + 'operation_type': json['operation_type'] == null ? undefined : json['operation_type'], + 'operation_type_name': json['operation_type_name'] == null ? undefined : json['operation_type_name'], + 'posting': json['posting'] == null ? undefined : (0, OperationPosting_1.OperationPostingFromJSON)(json['posting']), + 'return_delivery_charge': json['return_delivery_charge'] == null ? undefined : json['return_delivery_charge'], + 'sale_commission': json['sale_commission'] == null ? undefined : json['sale_commission'], + 'services': json['services'] == null ? undefined : (json['services'].map(OperationService_1.OperationServiceFromJSON)), + 'type': json['type'] == null ? undefined : json['type'], + }; +} +function FinanceTransactionListV3ResponseOperationToJSON(value) { + if (value == null) { + return value; + } + return { + 'accruals_for_sale': value['accruals_for_sale'], + 'amount': value['amount'], + 'delivery_charge': value['delivery_charge'], + 'items': value['items'] == null ? undefined : (value['items'].map(OperationItem_1.OperationItemToJSON)), + 'operation_date': value['operation_date'], + 'operation_id': value['operation_id'], + 'operation_type': value['operation_type'], + 'operation_type_name': value['operation_type_name'], + 'posting': (0, OperationPosting_1.OperationPostingToJSON)(value['posting']), + 'return_delivery_charge': value['return_delivery_charge'], + 'sale_commission': value['sale_commission'], + 'services': value['services'] == null ? undefined : (value['services'].map(OperationService_1.OperationServiceToJSON)), + 'type': value['type'], + }; +} diff --git a/dist/models/FinanceTransactionTotalsV3RequestDate.d.ts b/dist/models/FinanceTransactionTotalsV3RequestDate.d.ts new file mode 100644 index 0000000..9f9654e --- /dev/null +++ b/dist/models/FinanceTransactionTotalsV3RequestDate.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате. + * @export + * @interface FinanceTransactionTotalsV3RequestDate + */ +export interface FinanceTransactionTotalsV3RequestDate { + /** + * Начало периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`.
+ * Пример: `2019-11-25T10:43:06.51`. + * + * @type {string} + * @memberof FinanceTransactionTotalsV3RequestDate + */ + from?: string; + /** + * Конец периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`.
+ * Пример: `2019-11-25T10:43:06.51`. + * + * @type {string} + * @memberof FinanceTransactionTotalsV3RequestDate + */ + to?: string; +} +/** + * Check if a given object implements the FinanceTransactionTotalsV3RequestDate interface. + */ +export declare function instanceOfFinanceTransactionTotalsV3RequestDate(value: object): value is FinanceTransactionTotalsV3RequestDate; +export declare function FinanceTransactionTotalsV3RequestDateFromJSON(json: any): FinanceTransactionTotalsV3RequestDate; +export declare function FinanceTransactionTotalsV3RequestDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceTransactionTotalsV3RequestDate; +export declare function FinanceTransactionTotalsV3RequestDateToJSON(value?: FinanceTransactionTotalsV3RequestDate | null): any; diff --git a/dist/models/FinanceTransactionTotalsV3RequestDate.js b/dist/models/FinanceTransactionTotalsV3RequestDate.js new file mode 100644 index 0000000..e7f56ad --- /dev/null +++ b/dist/models/FinanceTransactionTotalsV3RequestDate.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceTransactionTotalsV3RequestDate = instanceOfFinanceTransactionTotalsV3RequestDate; +exports.FinanceTransactionTotalsV3RequestDateFromJSON = FinanceTransactionTotalsV3RequestDateFromJSON; +exports.FinanceTransactionTotalsV3RequestDateFromJSONTyped = FinanceTransactionTotalsV3RequestDateFromJSONTyped; +exports.FinanceTransactionTotalsV3RequestDateToJSON = FinanceTransactionTotalsV3RequestDateToJSON; +/** + * Check if a given object implements the FinanceTransactionTotalsV3RequestDate interface. + */ +function instanceOfFinanceTransactionTotalsV3RequestDate(value) { + return true; +} +function FinanceTransactionTotalsV3RequestDateFromJSON(json) { + return FinanceTransactionTotalsV3RequestDateFromJSONTyped(json, false); +} +function FinanceTransactionTotalsV3RequestDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function FinanceTransactionTotalsV3RequestDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayRequest.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayRequest.d.ts new file mode 100644 index 0000000..57c6b26 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayRequest + */ +export interface FinanceV1GetFinanceAccrualByDayRequest { + /** + * Дата начислений. Самая ранняя — 1 января 2022 года. + * + * Если укажете `last_id`, передайте значение `date` из предыдущего запроса. + * + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayRequest + */ + date: string; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * Срок жизни идентификатора — 15 минут. + * + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayRequest + */ + last_id: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayRequest interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayRequest(value: object): value is FinanceV1GetFinanceAccrualByDayRequest; +export declare function FinanceV1GetFinanceAccrualByDayRequestFromJSON(json: any): FinanceV1GetFinanceAccrualByDayRequest; +export declare function FinanceV1GetFinanceAccrualByDayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayRequest; +export declare function FinanceV1GetFinanceAccrualByDayRequestToJSON(value?: FinanceV1GetFinanceAccrualByDayRequest | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayRequest.js b/dist/models/FinanceV1GetFinanceAccrualByDayRequest.js new file mode 100644 index 0000000..d68cf81 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayRequest = instanceOfFinanceV1GetFinanceAccrualByDayRequest; +exports.FinanceV1GetFinanceAccrualByDayRequestFromJSON = FinanceV1GetFinanceAccrualByDayRequestFromJSON; +exports.FinanceV1GetFinanceAccrualByDayRequestFromJSONTyped = FinanceV1GetFinanceAccrualByDayRequestFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayRequestToJSON = FinanceV1GetFinanceAccrualByDayRequestToJSON; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayRequest interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('last_id' in value) || value['last_id'] === undefined) + return false; + return true; +} +function FinanceV1GetFinanceAccrualByDayRequestFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayRequestFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'last_id': json['last_id'], + }; +} +function FinanceV1GetFinanceAccrualByDayRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponse.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponse.d.ts new file mode 100644 index 0000000..f8df138 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrual } from './FinanceV1GetFinanceAccrualByDayResponseAccrual'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponse + */ +export interface FinanceV1GetFinanceAccrualByDayResponse { + /** + * Список начислений по отправлению. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponse + */ + accruals?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Срок жизни идентификатора — 15 минут. + * + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponse + */ + last_id?: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponse interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponse(value: object): value is FinanceV1GetFinanceAccrualByDayResponse; +export declare function FinanceV1GetFinanceAccrualByDayResponseFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponse; +export declare function FinanceV1GetFinanceAccrualByDayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponse; +export declare function FinanceV1GetFinanceAccrualByDayResponseToJSON(value?: FinanceV1GetFinanceAccrualByDayResponse | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponse.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponse.js new file mode 100644 index 0000000..9c9074f --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponse = instanceOfFinanceV1GetFinanceAccrualByDayResponse; +exports.FinanceV1GetFinanceAccrualByDayResponseFromJSON = FinanceV1GetFinanceAccrualByDayResponseFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseToJSON = FinanceV1GetFinanceAccrualByDayResponseToJSON; +const FinanceV1GetFinanceAccrualByDayResponseAccrual_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrual"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponse interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponse(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accruals': json['accruals'] == null ? undefined : (json['accruals'].map(FinanceV1GetFinanceAccrualByDayResponseAccrual_1.FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function FinanceV1GetFinanceAccrualByDayResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'accruals': value['accruals'] == null ? undefined : (value['accruals'].map(FinanceV1GetFinanceAccrualByDayResponseAccrual_1.FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.d.ts new file mode 100644 index 0000000..084a1de --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPosting } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPosting'; +import type { MoneyMoneyTotalAmount } from './MoneyMoneyTotalAmount'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees } from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee } from './FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum } from './FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrual + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrual { + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + accrued_category?: FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + container_fees?: FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; + /** + * Дата начислений. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + date?: string; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + item_fees?: FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees | null; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + non_item_fee?: FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualPosting} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + posting?: FinanceV1GetFinanceAccrualByDayResponseAccrualPosting | null; + /** + * + * @type {MoneyMoneyTotalAmount} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + total_amount?: MoneyMoneyTotalAmount; + /** + * Идентификатор начисления. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + accrual_id?: number; + /** + * Идентификатор заказа или услуги. Например, номер отправления или номер рекламного договора. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrual + */ + unit_number?: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrual interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrual(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrual; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrual; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrual; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrual | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.js new file mode 100644 index 0000000..9a516e4 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrual.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrual = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrual; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON; +const FinanceV1GetFinanceAccrualByDayResponseAccrualPosting_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPosting"); +const MoneyMoneyTotalAmount_1 = require("./MoneyMoneyTotalAmount"); +const FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees"); +const FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees"); +const FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee"); +const FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrual interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrual(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued_category': json['accrued_category'] == null ? undefined : (0, FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum_1.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON)(json['accrued_category']), + 'container_fees': json['container_fees'] == null ? undefined : (0, FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees_1.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON)(json['container_fees']), + 'date': json['date'] == null ? undefined : json['date'], + 'item_fees': json['item_fees'] == null ? undefined : (0, FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees_1.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON)(json['item_fees']), + 'non_item_fee': json['non_item_fee'] == null ? undefined : (0, FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee_1.FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON)(json['non_item_fee']), + 'posting': json['posting'] == null ? undefined : (0, FinanceV1GetFinanceAccrualByDayResponseAccrualPosting_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON)(json['posting']), + 'total_amount': json['total_amount'] == null ? undefined : (0, MoneyMoneyTotalAmount_1.MoneyMoneyTotalAmountFromJSON)(json['total_amount']), + 'accrual_id': json['accrual_id'] == null ? undefined : json['accrual_id'], + 'unit_number': json['unit_number'] == null ? undefined : json['unit_number'], + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued_category': (0, FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum_1.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON)(value['accrued_category']), + 'container_fees': (0, FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees_1.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON)(value['container_fees']), + 'date': value['date'], + 'item_fees': (0, FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees_1.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON)(value['item_fees']), + 'non_item_fee': (0, FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee_1.FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON)(value['non_item_fee']), + 'posting': (0, FinanceV1GetFinanceAccrualByDayResponseAccrualPosting_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON)(value['posting']), + 'total_amount': (0, MoneyMoneyTotalAmount_1.MoneyMoneyTotalAmountToJSON)(value['total_amount']), + 'accrual_id': value['accrual_id'], + 'unit_number': value['unit_number'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.d.ts new file mode 100644 index 0000000..6ac3edc --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип начисления: + * - `UNSPECIFIED` — не определён; + * - `POSTING` — начисление по отправлению; + * - `ITEM` — начисление по товару; + * - `NON_ITEM` — начисление по продавцу без привязки к товару; + * - `CONTAINER_FEES` — начисление по контейнеру. + * + * @export + */ +export declare const FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly POSTING: "POSTING"; + readonly ITEM: "ITEM"; + readonly NON_ITEM: "NON_ITEM"; + readonly CONTAINER_FEES: "CONTAINER_FEES"; +}; +export type FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum = typeof FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum[keyof typeof FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum]; +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum(value: any): boolean; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.js new file mode 100644 index 0000000..6e4583a --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum = void 0; +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON; +/** + * Тип начисления: + * - `UNSPECIFIED` — не определён; + * - `POSTING` — начисление по отправлению; + * - `ITEM` — начисление по товару; + * - `NON_ITEM` — начисление по продавцу без привязки к товару; + * - `CONTAINER_FEES` — начисление по контейнеру. + * + * @export + */ +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum = { + UNSPECIFIED: 'UNSPECIFIED', + POSTING: 'POSTING', + ITEM: 'ITEM', + NON_ITEM: 'NON_ITEM', + CONTAINER_FEES: 'CONTAINER_FEES' +}; +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum(value) { + for (const key in exports.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum) { + if (Object.prototype.hasOwnProperty.call(exports.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum, key)) { + if (exports.FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum[key] === value) { + return true; + } + } + } + return false; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnumToJSON(value) { + return value; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.d.ts new file mode 100644 index 0000000..d0ffb03 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee } from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee'; +/** + * Начисления по контейнеру. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees { + /** + * Начисления. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees + */ + fees?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.js new file mode 100644 index 0000000..c3850da --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON; +const FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fees': json['fees'] == null ? undefined : (json['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee_1.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON)), + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesToJSON(value) { + if (value == null) { + return value; + } + return { + 'fees': value['fees'] == null ? undefined : (value['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee_1.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON)), + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.d.ts new file mode 100644 index 0000000..48cd6d0 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee { + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee + */ + accrued?: MoneyMoneyAccrued; + /** + * Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.js new file mode 100644 index 0000000..b731117 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON; +const MoneyMoneyAccrued_1 = require("./MoneyMoneyAccrued"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedFromJSON)(json['accrued']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedToJSON)(value['accrued']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.d.ts new file mode 100644 index 0000000..50008b7 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee'; +/** + * Начисления по товарам. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees { + /** + * Начисления по товару. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees + */ + fees?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFees(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.js new file mode 100644 index 0000000..822e274 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFees = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFees; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON; +const FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFees(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fees': json['fees'] == null ? undefined : (json['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee_1.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON)), + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesToJSON(value) { + if (value == null) { + return value; + } + return { + 'fees': value['fees'] == null ? undefined : (value['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee_1.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON)), + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.d.ts new file mode 100644 index 0000000..5f8680d --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee } from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee { + /** + * Начисления. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee + */ + fees?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee + */ + sku?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.js new file mode 100644 index 0000000..1261945 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON; +const FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fees': json['fees'] == null ? undefined : (json['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee_1.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'fees': value['fees'] == null ? undefined : (value['fees'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee_1.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.d.ts new file mode 100644 index 0000000..8a39556 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee { + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee + */ + accrued?: MoneyMoneyAccrued; + /** + * Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.js new file mode 100644 index 0000000..ddc5671 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON; +const MoneyMoneyAccrued_1 = require("./MoneyMoneyAccrued"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedFromJSON)(json['accrued']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedToJSON)(value['accrued']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.d.ts new file mode 100644 index 0000000..e66ecbf --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * Начисление по продавцу без привязки к товару. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee { + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee + */ + accrued?: MoneyMoneyAccrued; + /** + * Идентификатор типа начисления. Можно получить методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.js new file mode 100644 index 0000000..44e5438 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON; +const MoneyMoneyAccrued_1 = require("./MoneyMoneyAccrued"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedFromJSON)(json['accrued']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFeeToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedToJSON)(value['accrued']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.d.ts new file mode 100644 index 0000000..4cf9b9a --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct'; +/** + * Начисления по отправлению. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPosting + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPosting { + /** + * Схема продаж. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPosting + */ + delivery_schema?: string; + /** + * Скорость доставки. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPosting + */ + delivery_speed?: number; + /** + * Данные по товарам из отправления. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPosting + */ + products?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPosting interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPosting(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPosting; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPosting; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPosting; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPosting | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.js new file mode 100644 index 0000000..d4a9829 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPosting.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPosting = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPosting; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON; +const FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPosting interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPosting(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'delivery_speed': json['delivery_speed'] == null ? undefined : json['delivery_speed'], + 'products': json['products'] == null ? undefined : (json['products'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON)), + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_schema': value['delivery_schema'], + 'delivery_speed': value['delivery_speed'], + 'products': value['products'] == null ? undefined : (value['products'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON)), + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.d.ts new file mode 100644 index 0000000..4854852 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct { + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct + */ + commission?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; + /** + * + * @type {FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct + */ + delivery?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.js new file mode 100644 index 0000000..7ccce9d --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON; +const FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission"); +const FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commission': json['commission'] == null ? undefined : (0, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON)(json['commission']), + 'delivery': json['delivery'] == null ? undefined : (0, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON)(json['delivery']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'commission': (0, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON)(value['commission']), + 'delivery': (0, FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON)(value['delivery']), + 'sku': value['sku'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.d.ts new file mode 100644 index 0000000..2fde5bf --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyBonus } from './MoneyMoneyBonus'; +import type { MoneyMoneyCommission } from './MoneyMoneyCommission'; +import type { MoneyMoneySaleCommission } from './MoneyMoneySaleCommission'; +import type { MoneyMoneySaleAmount } from './MoneyMoneySaleAmount'; +import type { MoneyMoneySalePrice } from './MoneyMoneySalePrice'; +import type { MoneyMoneySellerPrice } from './MoneyMoneySellerPrice'; +import type { MoneyMoneyCoinvestment } from './MoneyMoneyCoinvestment'; +/** + * Итоговая комиссия с учётом скидок и наценки. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission { + /** + * + * @type {MoneyMoneyBonus} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + bonus?: MoneyMoneyBonus; + /** + * + * @type {MoneyMoneyCoinvestment} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + coinvestment?: MoneyMoneyCoinvestment; + /** + * + * @type {MoneyMoneyCommission} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + commission?: MoneyMoneyCommission; + /** + * Доля комиссии за продажу по категории. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + commission_ratio?: string; + /** + * + * @type {MoneyMoneySaleAmount} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + sale_amount?: MoneyMoneySaleAmount; + /** + * + * @type {MoneyMoneySaleCommission} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + sale_commission?: MoneyMoneySaleCommission; + /** + * + * @type {MoneyMoneySalePrice} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + sale_price?: MoneyMoneySalePrice; + /** + * + * @type {MoneyMoneySellerPrice} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission + */ + seller_price?: MoneyMoneySellerPrice | null; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.js new file mode 100644 index 0000000..8ebd669 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON; +const MoneyMoneyBonus_1 = require("./MoneyMoneyBonus"); +const MoneyMoneyCommission_1 = require("./MoneyMoneyCommission"); +const MoneyMoneySaleCommission_1 = require("./MoneyMoneySaleCommission"); +const MoneyMoneySaleAmount_1 = require("./MoneyMoneySaleAmount"); +const MoneyMoneySalePrice_1 = require("./MoneyMoneySalePrice"); +const MoneyMoneySellerPrice_1 = require("./MoneyMoneySellerPrice"); +const MoneyMoneyCoinvestment_1 = require("./MoneyMoneyCoinvestment"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bonus': json['bonus'] == null ? undefined : (0, MoneyMoneyBonus_1.MoneyMoneyBonusFromJSON)(json['bonus']), + 'coinvestment': json['coinvestment'] == null ? undefined : (0, MoneyMoneyCoinvestment_1.MoneyMoneyCoinvestmentFromJSON)(json['coinvestment']), + 'commission': json['commission'] == null ? undefined : (0, MoneyMoneyCommission_1.MoneyMoneyCommissionFromJSON)(json['commission']), + 'commission_ratio': json['commission_ratio'] == null ? undefined : json['commission_ratio'], + 'sale_amount': json['sale_amount'] == null ? undefined : (0, MoneyMoneySaleAmount_1.MoneyMoneySaleAmountFromJSON)(json['sale_amount']), + 'sale_commission': json['sale_commission'] == null ? undefined : (0, MoneyMoneySaleCommission_1.MoneyMoneySaleCommissionFromJSON)(json['sale_commission']), + 'sale_price': json['sale_price'] == null ? undefined : (0, MoneyMoneySalePrice_1.MoneyMoneySalePriceFromJSON)(json['sale_price']), + 'seller_price': json['seller_price'] == null ? undefined : (0, MoneyMoneySellerPrice_1.MoneyMoneySellerPriceFromJSON)(json['seller_price']), + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'bonus': (0, MoneyMoneyBonus_1.MoneyMoneyBonusToJSON)(value['bonus']), + 'coinvestment': (0, MoneyMoneyCoinvestment_1.MoneyMoneyCoinvestmentToJSON)(value['coinvestment']), + 'commission': (0, MoneyMoneyCommission_1.MoneyMoneyCommissionToJSON)(value['commission']), + 'commission_ratio': value['commission_ratio'], + 'sale_amount': (0, MoneyMoneySaleAmount_1.MoneyMoneySaleAmountToJSON)(value['sale_amount']), + 'sale_commission': (0, MoneyMoneySaleCommission_1.MoneyMoneySaleCommissionToJSON)(value['sale_commission']), + 'sale_price': (0, MoneyMoneySalePrice_1.MoneyMoneySalePriceToJSON)(value['sale_price']), + 'seller_price': (0, MoneyMoneySellerPrice_1.MoneyMoneySellerPriceToJSON)(value['seller_price']), + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.d.ts new file mode 100644 index 0000000..93f2b40 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyTotalAccrued } from './MoneyMoneyTotalAccrued'; +import type { FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService } from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService'; +/** + * Начисления по доставке. + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery { + /** + * Начисления по услугам доставки. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery + */ + services?: Array; + /** + * + * @type {MoneyMoneyTotalAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery + */ + total_accrued?: MoneyMoneyTotalAccrued; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.js new file mode 100644 index 0000000..1173fec --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON; +const MoneyMoneyTotalAccrued_1 = require("./MoneyMoneyTotalAccrued"); +const FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService_1 = require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'services': json['services'] == null ? undefined : (json['services'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON)), + 'total_accrued': json['total_accrued'] == null ? undefined : (0, MoneyMoneyTotalAccrued_1.MoneyMoneyTotalAccruedFromJSON)(json['total_accrued']), + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryToJSON(value) { + if (value == null) { + return value; + } + return { + 'services': value['services'] == null ? undefined : (value['services'].map(FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService_1.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON)), + 'total_accrued': (0, MoneyMoneyTotalAccrued_1.MoneyMoneyTotalAccruedToJSON)(value['total_accrued']), + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.d.ts b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.d.ts new file mode 100644 index 0000000..94200d8 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService + */ +export interface FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService { + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService + */ + accrued?: MoneyMoneyAccrued; + /** + * Идентификатор типа начисления. Получите значение параметра методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService(value: object): value is FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON(json: any): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService; +export declare function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON(value?: FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.js b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.js new file mode 100644 index 0000000..5591e8f --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService = instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSONTyped = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSONTyped; +exports.FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON = FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON; +const MoneyMoneyAccrued_1 = require("./MoneyMoneyAccrued"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService interface. + */ +function instanceOfFinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService(value) { + return true; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSON(json) { + return FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedFromJSON)(json['accrued']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +function FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedToJSON)(value['accrued']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualPostingsRequest.d.ts b/dist/models/FinanceV1GetFinanceAccrualPostingsRequest.d.ts new file mode 100644 index 0000000..27ca001 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualPostingsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualPostingsRequest + */ +export interface FinanceV1GetFinanceAccrualPostingsRequest { + /** + * Номера отправлений. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualPostingsRequest + */ + posting_numbers: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsRequest interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualPostingsRequest(value: object): value is FinanceV1GetFinanceAccrualPostingsRequest; +export declare function FinanceV1GetFinanceAccrualPostingsRequestFromJSON(json: any): FinanceV1GetFinanceAccrualPostingsRequest; +export declare function FinanceV1GetFinanceAccrualPostingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualPostingsRequest; +export declare function FinanceV1GetFinanceAccrualPostingsRequestToJSON(value?: FinanceV1GetFinanceAccrualPostingsRequest | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualPostingsRequest.js b/dist/models/FinanceV1GetFinanceAccrualPostingsRequest.js new file mode 100644 index 0000000..8f447a7 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualPostingsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualPostingsRequest = instanceOfFinanceV1GetFinanceAccrualPostingsRequest; +exports.FinanceV1GetFinanceAccrualPostingsRequestFromJSON = FinanceV1GetFinanceAccrualPostingsRequestFromJSON; +exports.FinanceV1GetFinanceAccrualPostingsRequestFromJSONTyped = FinanceV1GetFinanceAccrualPostingsRequestFromJSONTyped; +exports.FinanceV1GetFinanceAccrualPostingsRequestToJSON = FinanceV1GetFinanceAccrualPostingsRequestToJSON; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsRequest interface. + */ +function instanceOfFinanceV1GetFinanceAccrualPostingsRequest(value) { + if (!('posting_numbers' in value) || value['posting_numbers'] === undefined) + return false; + return true; +} +function FinanceV1GetFinanceAccrualPostingsRequestFromJSON(json) { + return FinanceV1GetFinanceAccrualPostingsRequestFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualPostingsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_numbers': json['posting_numbers'], + }; +} +function FinanceV1GetFinanceAccrualPostingsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualPostingsResponse.d.ts b/dist/models/FinanceV1GetFinanceAccrualPostingsResponse.d.ts new file mode 100644 index 0000000..f187d18 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualPostingsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals } from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualPostingsResponse + */ +export interface FinanceV1GetFinanceAccrualPostingsResponse { + /** + * Список начислений по отправлениям. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualPostingsResponse + */ + posting_accruals?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponse interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualPostingsResponse(value: object): value is FinanceV1GetFinanceAccrualPostingsResponse; +export declare function FinanceV1GetFinanceAccrualPostingsResponseFromJSON(json: any): FinanceV1GetFinanceAccrualPostingsResponse; +export declare function FinanceV1GetFinanceAccrualPostingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualPostingsResponse; +export declare function FinanceV1GetFinanceAccrualPostingsResponseToJSON(value?: FinanceV1GetFinanceAccrualPostingsResponse | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualPostingsResponse.js b/dist/models/FinanceV1GetFinanceAccrualPostingsResponse.js new file mode 100644 index 0000000..dc8e9c4 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualPostingsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualPostingsResponse = instanceOfFinanceV1GetFinanceAccrualPostingsResponse; +exports.FinanceV1GetFinanceAccrualPostingsResponseFromJSON = FinanceV1GetFinanceAccrualPostingsResponseFromJSON; +exports.FinanceV1GetFinanceAccrualPostingsResponseFromJSONTyped = FinanceV1GetFinanceAccrualPostingsResponseFromJSONTyped; +exports.FinanceV1GetFinanceAccrualPostingsResponseToJSON = FinanceV1GetFinanceAccrualPostingsResponseToJSON; +const FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals_1 = require("./FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponse interface. + */ +function instanceOfFinanceV1GetFinanceAccrualPostingsResponse(value) { + return true; +} +function FinanceV1GetFinanceAccrualPostingsResponseFromJSON(json) { + return FinanceV1GetFinanceAccrualPostingsResponseFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualPostingsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_accruals': json['posting_accruals'] == null ? undefined : (json['posting_accruals'].map(FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals_1.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON)), + }; +} +function FinanceV1GetFinanceAccrualPostingsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_accruals': value['posting_accruals'] == null ? undefined : (value['posting_accruals'].map(FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals_1.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON)), + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.d.ts b/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.d.ts new file mode 100644 index 0000000..9aed1f2 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual } from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals + */ +export interface FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals { + /** + * Список начислений. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals + */ + accruals?: Array; + /** + * Номер отправления. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals + */ + posting_number?: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccruals(value: object): value is FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON(json: any): FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON(value?: FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.js b/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.js new file mode 100644 index 0000000..38cb74d --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccruals = instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccruals; +exports.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON = FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON; +exports.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSONTyped = FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSONTyped; +exports.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON = FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON; +const FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual_1 = require("./FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals interface. + */ +function instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccruals(value) { + return true; +} +function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSON(json) { + return FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accruals': json['accruals'] == null ? undefined : (json['accruals'].map(FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual_1.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON)), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsToJSON(value) { + if (value == null) { + return value; + } + return { + 'accruals': value['accruals'] == null ? undefined : (value['accruals'].map(FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual_1.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON)), + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.d.ts b/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.d.ts new file mode 100644 index 0000000..60ed72a --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySellerPrice } from './MoneyMoneySellerPrice'; +import type { MoneyMoneyAccrued } from './MoneyMoneyAccrued'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ +export interface FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual { + /** + * Дата начисления. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + accrual_date?: string; + /** + * + * @type {MoneyMoneyAccrued} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + accrued?: MoneyMoneyAccrued; + /** + * Количество товара. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + quantity?: number | null; + /** + * + * @type {MoneyMoneySellerPrice} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + seller_price?: MoneyMoneySellerPrice | null; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + sku?: number | null; + /** + * Идентификатор типа начисления. Можно получить методом [/v1/finance/accrual/types](#operation/GetFinanceAccrualTypes). + * @type {number} + * @memberof FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual + */ + type_id?: number; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual(value: object): value is FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON(json: any): FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual; +export declare function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON(value?: FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.js b/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.js new file mode 100644 index 0000000..934291e --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual = instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual; +exports.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON = FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON; +exports.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSONTyped = FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSONTyped; +exports.FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON = FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON; +const MoneyMoneySellerPrice_1 = require("./MoneyMoneySellerPrice"); +const MoneyMoneyAccrued_1 = require("./MoneyMoneyAccrued"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual interface. + */ +function instanceOfFinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual(value) { + return true; +} +function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSON(json) { + return FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrual_date': json['accrual_date'] == null ? undefined : json['accrual_date'], + 'accrued': json['accrued'] == null ? undefined : (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedFromJSON)(json['accrued']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'seller_price': json['seller_price'] == null ? undefined : (0, MoneyMoneySellerPrice_1.MoneyMoneySellerPriceFromJSON)(json['seller_price']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +function FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrualToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrual_date': value['accrual_date'], + 'accrued': (0, MoneyMoneyAccrued_1.MoneyMoneyAccruedToJSON)(value['accrued']), + 'quantity': value['quantity'], + 'seller_price': (0, MoneyMoneySellerPrice_1.MoneyMoneySellerPriceToJSON)(value['seller_price']), + 'sku': value['sku'], + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualTypesResponse.d.ts b/dist/models/FinanceV1GetFinanceAccrualTypesResponse.d.ts new file mode 100644 index 0000000..896bd30 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualTypesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceV1GetFinanceAccrualTypesResponseAccrualType } from './FinanceV1GetFinanceAccrualTypesResponseAccrualType'; +/** + * + * @export + * @interface FinanceV1GetFinanceAccrualTypesResponse + */ +export interface FinanceV1GetFinanceAccrualTypesResponse { + /** + * Информация о начислениях. + * @type {Array} + * @memberof FinanceV1GetFinanceAccrualTypesResponse + */ + accrual_types?: Array; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualTypesResponse interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualTypesResponse(value: object): value is FinanceV1GetFinanceAccrualTypesResponse; +export declare function FinanceV1GetFinanceAccrualTypesResponseFromJSON(json: any): FinanceV1GetFinanceAccrualTypesResponse; +export declare function FinanceV1GetFinanceAccrualTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualTypesResponse; +export declare function FinanceV1GetFinanceAccrualTypesResponseToJSON(value?: FinanceV1GetFinanceAccrualTypesResponse | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualTypesResponse.js b/dist/models/FinanceV1GetFinanceAccrualTypesResponse.js new file mode 100644 index 0000000..0a257c8 --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualTypesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualTypesResponse = instanceOfFinanceV1GetFinanceAccrualTypesResponse; +exports.FinanceV1GetFinanceAccrualTypesResponseFromJSON = FinanceV1GetFinanceAccrualTypesResponseFromJSON; +exports.FinanceV1GetFinanceAccrualTypesResponseFromJSONTyped = FinanceV1GetFinanceAccrualTypesResponseFromJSONTyped; +exports.FinanceV1GetFinanceAccrualTypesResponseToJSON = FinanceV1GetFinanceAccrualTypesResponseToJSON; +const FinanceV1GetFinanceAccrualTypesResponseAccrualType_1 = require("./FinanceV1GetFinanceAccrualTypesResponseAccrualType"); +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualTypesResponse interface. + */ +function instanceOfFinanceV1GetFinanceAccrualTypesResponse(value) { + return true; +} +function FinanceV1GetFinanceAccrualTypesResponseFromJSON(json) { + return FinanceV1GetFinanceAccrualTypesResponseFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrual_types': json['accrual_types'] == null ? undefined : (json['accrual_types'].map(FinanceV1GetFinanceAccrualTypesResponseAccrualType_1.FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON)), + }; +} +function FinanceV1GetFinanceAccrualTypesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrual_types': value['accrual_types'] == null ? undefined : (value['accrual_types'].map(FinanceV1GetFinanceAccrualTypesResponseAccrualType_1.FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON)), + }; +} diff --git a/dist/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.d.ts b/dist/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.d.ts new file mode 100644 index 0000000..f42a3cd --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о начислении. + * @export + * @interface FinanceV1GetFinanceAccrualTypesResponseAccrualType + */ +export interface FinanceV1GetFinanceAccrualTypesResponseAccrualType { + /** + * Описание начисления. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualTypesResponseAccrualType + */ + description?: string; + /** + * Идентификатор начисления. + * @type {number} + * @memberof FinanceV1GetFinanceAccrualTypesResponseAccrualType + */ + id?: number; + /** + * Название начисления. + * @type {string} + * @memberof FinanceV1GetFinanceAccrualTypesResponseAccrualType + */ + name?: string; +} +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualTypesResponseAccrualType interface. + */ +export declare function instanceOfFinanceV1GetFinanceAccrualTypesResponseAccrualType(value: object): value is FinanceV1GetFinanceAccrualTypesResponseAccrualType; +export declare function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON(json: any): FinanceV1GetFinanceAccrualTypesResponseAccrualType; +export declare function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinanceV1GetFinanceAccrualTypesResponseAccrualType; +export declare function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON(value?: FinanceV1GetFinanceAccrualTypesResponseAccrualType | null): any; diff --git a/dist/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.js b/dist/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.js new file mode 100644 index 0000000..4d7658f --- /dev/null +++ b/dist/models/FinanceV1GetFinanceAccrualTypesResponseAccrualType.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinanceV1GetFinanceAccrualTypesResponseAccrualType = instanceOfFinanceV1GetFinanceAccrualTypesResponseAccrualType; +exports.FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON = FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON; +exports.FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSONTyped = FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSONTyped; +exports.FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON = FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON; +/** + * Check if a given object implements the FinanceV1GetFinanceAccrualTypesResponseAccrualType interface. + */ +function instanceOfFinanceV1GetFinanceAccrualTypesResponseAccrualType(value) { + return true; +} +function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSON(json) { + return FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSONTyped(json, false); +} +function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function FinanceV1GetFinanceAccrualTypesResponseAccrualTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/Financev3FinanceTransactionListV3Request.d.ts b/dist/models/Financev3FinanceTransactionListV3Request.d.ts new file mode 100644 index 0000000..fb4adac --- /dev/null +++ b/dist/models/Financev3FinanceTransactionListV3Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceTransactionListV3RequestFilter } from './FinanceTransactionListV3RequestFilter'; +/** + * + * @export + * @interface Financev3FinanceTransactionListV3Request + */ +export interface Financev3FinanceTransactionListV3Request { + /** + * + * @type {FinanceTransactionListV3RequestFilter} + * @memberof Financev3FinanceTransactionListV3Request + */ + filter?: FinanceTransactionListV3RequestFilter | null; + /** + * Номер страницы, возвращаемой в запросе. + * @type {number} + * @memberof Financev3FinanceTransactionListV3Request + */ + page: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof Financev3FinanceTransactionListV3Request + */ + page_size: number; +} +/** + * Check if a given object implements the Financev3FinanceTransactionListV3Request interface. + */ +export declare function instanceOfFinancev3FinanceTransactionListV3Request(value: object): value is Financev3FinanceTransactionListV3Request; +export declare function Financev3FinanceTransactionListV3RequestFromJSON(json: any): Financev3FinanceTransactionListV3Request; +export declare function Financev3FinanceTransactionListV3RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionListV3Request; +export declare function Financev3FinanceTransactionListV3RequestToJSON(value?: Financev3FinanceTransactionListV3Request | null): any; diff --git a/dist/models/Financev3FinanceTransactionListV3Request.js b/dist/models/Financev3FinanceTransactionListV3Request.js new file mode 100644 index 0000000..43b3f07 --- /dev/null +++ b/dist/models/Financev3FinanceTransactionListV3Request.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinancev3FinanceTransactionListV3Request = instanceOfFinancev3FinanceTransactionListV3Request; +exports.Financev3FinanceTransactionListV3RequestFromJSON = Financev3FinanceTransactionListV3RequestFromJSON; +exports.Financev3FinanceTransactionListV3RequestFromJSONTyped = Financev3FinanceTransactionListV3RequestFromJSONTyped; +exports.Financev3FinanceTransactionListV3RequestToJSON = Financev3FinanceTransactionListV3RequestToJSON; +const FinanceTransactionListV3RequestFilter_1 = require("./FinanceTransactionListV3RequestFilter"); +/** + * Check if a given object implements the Financev3FinanceTransactionListV3Request interface. + */ +function instanceOfFinancev3FinanceTransactionListV3Request(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +function Financev3FinanceTransactionListV3RequestFromJSON(json) { + return Financev3FinanceTransactionListV3RequestFromJSONTyped(json, false); +} +function Financev3FinanceTransactionListV3RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, FinanceTransactionListV3RequestFilter_1.FinanceTransactionListV3RequestFilterFromJSON)(json['filter']), + 'page': json['page'], + 'page_size': json['page_size'], + }; +} +function Financev3FinanceTransactionListV3RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, FinanceTransactionListV3RequestFilter_1.FinanceTransactionListV3RequestFilterToJSON)(value['filter']), + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/models/Financev3FinanceTransactionListV3Response.d.ts b/dist/models/Financev3FinanceTransactionListV3Response.d.ts new file mode 100644 index 0000000..96a2342 --- /dev/null +++ b/dist/models/Financev3FinanceTransactionListV3Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Financev3FinanceTransactionListV3ResponseResult } from './Financev3FinanceTransactionListV3ResponseResult'; +/** + * + * @export + * @interface Financev3FinanceTransactionListV3Response + */ +export interface Financev3FinanceTransactionListV3Response { + /** + * + * @type {Financev3FinanceTransactionListV3ResponseResult} + * @memberof Financev3FinanceTransactionListV3Response + */ + result?: Financev3FinanceTransactionListV3ResponseResult; +} +/** + * Check if a given object implements the Financev3FinanceTransactionListV3Response interface. + */ +export declare function instanceOfFinancev3FinanceTransactionListV3Response(value: object): value is Financev3FinanceTransactionListV3Response; +export declare function Financev3FinanceTransactionListV3ResponseFromJSON(json: any): Financev3FinanceTransactionListV3Response; +export declare function Financev3FinanceTransactionListV3ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionListV3Response; +export declare function Financev3FinanceTransactionListV3ResponseToJSON(value?: Financev3FinanceTransactionListV3Response | null): any; diff --git a/dist/models/Financev3FinanceTransactionListV3Response.js b/dist/models/Financev3FinanceTransactionListV3Response.js new file mode 100644 index 0000000..770bf4a --- /dev/null +++ b/dist/models/Financev3FinanceTransactionListV3Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinancev3FinanceTransactionListV3Response = instanceOfFinancev3FinanceTransactionListV3Response; +exports.Financev3FinanceTransactionListV3ResponseFromJSON = Financev3FinanceTransactionListV3ResponseFromJSON; +exports.Financev3FinanceTransactionListV3ResponseFromJSONTyped = Financev3FinanceTransactionListV3ResponseFromJSONTyped; +exports.Financev3FinanceTransactionListV3ResponseToJSON = Financev3FinanceTransactionListV3ResponseToJSON; +const Financev3FinanceTransactionListV3ResponseResult_1 = require("./Financev3FinanceTransactionListV3ResponseResult"); +/** + * Check if a given object implements the Financev3FinanceTransactionListV3Response interface. + */ +function instanceOfFinancev3FinanceTransactionListV3Response(value) { + return true; +} +function Financev3FinanceTransactionListV3ResponseFromJSON(json) { + return Financev3FinanceTransactionListV3ResponseFromJSONTyped(json, false); +} +function Financev3FinanceTransactionListV3ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, Financev3FinanceTransactionListV3ResponseResult_1.Financev3FinanceTransactionListV3ResponseResultFromJSON)(json['result']), + }; +} +function Financev3FinanceTransactionListV3ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, Financev3FinanceTransactionListV3ResponseResult_1.Financev3FinanceTransactionListV3ResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/Financev3FinanceTransactionListV3ResponseResult.d.ts b/dist/models/Financev3FinanceTransactionListV3ResponseResult.d.ts new file mode 100644 index 0000000..60e9f22 --- /dev/null +++ b/dist/models/Financev3FinanceTransactionListV3ResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceTransactionListV3ResponseOperation } from './FinanceTransactionListV3ResponseOperation'; +/** + * Результаты запроса. + * @export + * @interface Financev3FinanceTransactionListV3ResponseResult + */ +export interface Financev3FinanceTransactionListV3ResponseResult { + /** + * Информация об операциях. + * @type {Array} + * @memberof Financev3FinanceTransactionListV3ResponseResult + */ + operations?: Array; + /** + * Количество страниц. Если 0, страниц больше нет. + * @type {number} + * @memberof Financev3FinanceTransactionListV3ResponseResult + */ + page_count?: number; + /** + * Количество транзакций на всех страницах. Если 0, транзакций больше нет. + * @type {number} + * @memberof Financev3FinanceTransactionListV3ResponseResult + */ + row_count?: number; +} +/** + * Check if a given object implements the Financev3FinanceTransactionListV3ResponseResult interface. + */ +export declare function instanceOfFinancev3FinanceTransactionListV3ResponseResult(value: object): value is Financev3FinanceTransactionListV3ResponseResult; +export declare function Financev3FinanceTransactionListV3ResponseResultFromJSON(json: any): Financev3FinanceTransactionListV3ResponseResult; +export declare function Financev3FinanceTransactionListV3ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionListV3ResponseResult; +export declare function Financev3FinanceTransactionListV3ResponseResultToJSON(value?: Financev3FinanceTransactionListV3ResponseResult | null): any; diff --git a/dist/models/Financev3FinanceTransactionListV3ResponseResult.js b/dist/models/Financev3FinanceTransactionListV3ResponseResult.js new file mode 100644 index 0000000..9d2d332 --- /dev/null +++ b/dist/models/Financev3FinanceTransactionListV3ResponseResult.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinancev3FinanceTransactionListV3ResponseResult = instanceOfFinancev3FinanceTransactionListV3ResponseResult; +exports.Financev3FinanceTransactionListV3ResponseResultFromJSON = Financev3FinanceTransactionListV3ResponseResultFromJSON; +exports.Financev3FinanceTransactionListV3ResponseResultFromJSONTyped = Financev3FinanceTransactionListV3ResponseResultFromJSONTyped; +exports.Financev3FinanceTransactionListV3ResponseResultToJSON = Financev3FinanceTransactionListV3ResponseResultToJSON; +const FinanceTransactionListV3ResponseOperation_1 = require("./FinanceTransactionListV3ResponseOperation"); +/** + * Check if a given object implements the Financev3FinanceTransactionListV3ResponseResult interface. + */ +function instanceOfFinancev3FinanceTransactionListV3ResponseResult(value) { + return true; +} +function Financev3FinanceTransactionListV3ResponseResultFromJSON(json) { + return Financev3FinanceTransactionListV3ResponseResultFromJSONTyped(json, false); +} +function Financev3FinanceTransactionListV3ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operations': json['operations'] == null ? undefined : (json['operations'].map(FinanceTransactionListV3ResponseOperation_1.FinanceTransactionListV3ResponseOperationFromJSON)), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + 'row_count': json['row_count'] == null ? undefined : json['row_count'], + }; +} +function Financev3FinanceTransactionListV3ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'operations': value['operations'] == null ? undefined : (value['operations'].map(FinanceTransactionListV3ResponseOperation_1.FinanceTransactionListV3ResponseOperationToJSON)), + 'page_count': value['page_count'], + 'row_count': value['row_count'], + }; +} diff --git a/dist/models/Financev3FinanceTransactionTotalsV3Request.d.ts b/dist/models/Financev3FinanceTransactionTotalsV3Request.d.ts new file mode 100644 index 0000000..4b9becd --- /dev/null +++ b/dist/models/Financev3FinanceTransactionTotalsV3Request.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceTransactionTotalsV3RequestDate } from './FinanceTransactionTotalsV3RequestDate'; +/** + * + * @export + * @interface Financev3FinanceTransactionTotalsV3Request + */ +export interface Financev3FinanceTransactionTotalsV3Request { + /** + * + * @type {FinanceTransactionTotalsV3RequestDate} + * @memberof Financev3FinanceTransactionTotalsV3Request + */ + date?: FinanceTransactionTotalsV3RequestDate; + /** + * Номер отправления. + * @type {string} + * @memberof Financev3FinanceTransactionTotalsV3Request + */ + posting_number?: string; + /** + * Тип операции: + * - `all` — все, + * - `orders` — заказы, + * - `returns` — возвраты и отмены, + * - `services` — сервисные сборы, + * - `compensation` — компенсация, + * - `transferDelivery` — стоимость доставки, + * - `other` — прочее. + * + * @type {string} + * @memberof Financev3FinanceTransactionTotalsV3Request + */ + transaction_type?: string; +} +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3Request interface. + */ +export declare function instanceOfFinancev3FinanceTransactionTotalsV3Request(value: object): value is Financev3FinanceTransactionTotalsV3Request; +export declare function Financev3FinanceTransactionTotalsV3RequestFromJSON(json: any): Financev3FinanceTransactionTotalsV3Request; +export declare function Financev3FinanceTransactionTotalsV3RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionTotalsV3Request; +export declare function Financev3FinanceTransactionTotalsV3RequestToJSON(value?: Financev3FinanceTransactionTotalsV3Request | null): any; diff --git a/dist/models/Financev3FinanceTransactionTotalsV3Request.js b/dist/models/Financev3FinanceTransactionTotalsV3Request.js new file mode 100644 index 0000000..d99be7c --- /dev/null +++ b/dist/models/Financev3FinanceTransactionTotalsV3Request.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinancev3FinanceTransactionTotalsV3Request = instanceOfFinancev3FinanceTransactionTotalsV3Request; +exports.Financev3FinanceTransactionTotalsV3RequestFromJSON = Financev3FinanceTransactionTotalsV3RequestFromJSON; +exports.Financev3FinanceTransactionTotalsV3RequestFromJSONTyped = Financev3FinanceTransactionTotalsV3RequestFromJSONTyped; +exports.Financev3FinanceTransactionTotalsV3RequestToJSON = Financev3FinanceTransactionTotalsV3RequestToJSON; +const FinanceTransactionTotalsV3RequestDate_1 = require("./FinanceTransactionTotalsV3RequestDate"); +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3Request interface. + */ +function instanceOfFinancev3FinanceTransactionTotalsV3Request(value) { + return true; +} +function Financev3FinanceTransactionTotalsV3RequestFromJSON(json) { + return Financev3FinanceTransactionTotalsV3RequestFromJSONTyped(json, false); +} +function Financev3FinanceTransactionTotalsV3RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : (0, FinanceTransactionTotalsV3RequestDate_1.FinanceTransactionTotalsV3RequestDateFromJSON)(json['date']), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'transaction_type': json['transaction_type'] == null ? undefined : json['transaction_type'], + }; +} +function Financev3FinanceTransactionTotalsV3RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': (0, FinanceTransactionTotalsV3RequestDate_1.FinanceTransactionTotalsV3RequestDateToJSON)(value['date']), + 'posting_number': value['posting_number'], + 'transaction_type': value['transaction_type'], + }; +} diff --git a/dist/models/Financev3FinanceTransactionTotalsV3Response.d.ts b/dist/models/Financev3FinanceTransactionTotalsV3Response.d.ts new file mode 100644 index 0000000..2cc5869 --- /dev/null +++ b/dist/models/Financev3FinanceTransactionTotalsV3Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Financev3FinanceTransactionTotalsV3ResponseResult } from './Financev3FinanceTransactionTotalsV3ResponseResult'; +/** + * + * @export + * @interface Financev3FinanceTransactionTotalsV3Response + */ +export interface Financev3FinanceTransactionTotalsV3Response { + /** + * + * @type {Financev3FinanceTransactionTotalsV3ResponseResult} + * @memberof Financev3FinanceTransactionTotalsV3Response + */ + result?: Financev3FinanceTransactionTotalsV3ResponseResult; +} +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3Response interface. + */ +export declare function instanceOfFinancev3FinanceTransactionTotalsV3Response(value: object): value is Financev3FinanceTransactionTotalsV3Response; +export declare function Financev3FinanceTransactionTotalsV3ResponseFromJSON(json: any): Financev3FinanceTransactionTotalsV3Response; +export declare function Financev3FinanceTransactionTotalsV3ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionTotalsV3Response; +export declare function Financev3FinanceTransactionTotalsV3ResponseToJSON(value?: Financev3FinanceTransactionTotalsV3Response | null): any; diff --git a/dist/models/Financev3FinanceTransactionTotalsV3Response.js b/dist/models/Financev3FinanceTransactionTotalsV3Response.js new file mode 100644 index 0000000..b61c7bf --- /dev/null +++ b/dist/models/Financev3FinanceTransactionTotalsV3Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinancev3FinanceTransactionTotalsV3Response = instanceOfFinancev3FinanceTransactionTotalsV3Response; +exports.Financev3FinanceTransactionTotalsV3ResponseFromJSON = Financev3FinanceTransactionTotalsV3ResponseFromJSON; +exports.Financev3FinanceTransactionTotalsV3ResponseFromJSONTyped = Financev3FinanceTransactionTotalsV3ResponseFromJSONTyped; +exports.Financev3FinanceTransactionTotalsV3ResponseToJSON = Financev3FinanceTransactionTotalsV3ResponseToJSON; +const Financev3FinanceTransactionTotalsV3ResponseResult_1 = require("./Financev3FinanceTransactionTotalsV3ResponseResult"); +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3Response interface. + */ +function instanceOfFinancev3FinanceTransactionTotalsV3Response(value) { + return true; +} +function Financev3FinanceTransactionTotalsV3ResponseFromJSON(json) { + return Financev3FinanceTransactionTotalsV3ResponseFromJSONTyped(json, false); +} +function Financev3FinanceTransactionTotalsV3ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, Financev3FinanceTransactionTotalsV3ResponseResult_1.Financev3FinanceTransactionTotalsV3ResponseResultFromJSON)(json['result']), + }; +} +function Financev3FinanceTransactionTotalsV3ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, Financev3FinanceTransactionTotalsV3ResponseResult_1.Financev3FinanceTransactionTotalsV3ResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/Financev3FinanceTransactionTotalsV3ResponseResult.d.ts b/dist/models/Financev3FinanceTransactionTotalsV3ResponseResult.d.ts new file mode 100644 index 0000000..98a9b31 --- /dev/null +++ b/dist/models/Financev3FinanceTransactionTotalsV3ResponseResult.d.ts @@ -0,0 +1,83 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результаты запроса. + * @export + * @interface Financev3FinanceTransactionTotalsV3ResponseResult + */ +export interface Financev3FinanceTransactionTotalsV3ResponseResult { + /** + * Общая стоимость товаров и возвратов в заданный период. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + accruals_for_sale?: number; + /** + * Компенсации. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + compensation_amount?: number; + /** + * Начисления за доставку и возвраты при работе по схеме «Доставка по выбору продавца». + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + money_transfer?: number; + /** + * Прочие начисления. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + others_amount?: number; + /** + * Стоимость услуг обработки отправлений, сборки заказов, магистрали и последней мили, а также доставки до введения новых комиссий и тарифов с 1 февраля 2021 года. + * + * Магистраль — доставка товаров между кластерами. + * + * Последняя миля — доставка товаров покупателю в пункт выдачи заказов, постамат или курьером. + * + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + processing_and_delivery?: number; + /** + * Стоимость обратной магистрали, обработки возвратов, отмен и невыкупа товара, а также возвратов до введения новых комиссий и тарифов с 1 февраля 2021 года. + * + * Магистраль — доставка товаров между кластерами. + * + * Последняя миля — доставка товаров покупателю в пункт выдачи заказов, постамат или курьером. + * + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + refunds_and_cancellations?: number; + /** + * Сумма комиссии, которая была удержана при продаже товара и возвращена при его возврате. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + sale_commission?: number; + /** + * Стоимость дополнительных услуг, не связанных напрямую с доставками и возвратами товаров. Например, продвижения или размещения товаров. + * @type {number} + * @memberof Financev3FinanceTransactionTotalsV3ResponseResult + */ + services_amount?: number; +} +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3ResponseResult interface. + */ +export declare function instanceOfFinancev3FinanceTransactionTotalsV3ResponseResult(value: object): value is Financev3FinanceTransactionTotalsV3ResponseResult; +export declare function Financev3FinanceTransactionTotalsV3ResponseResultFromJSON(json: any): Financev3FinanceTransactionTotalsV3ResponseResult; +export declare function Financev3FinanceTransactionTotalsV3ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3FinanceTransactionTotalsV3ResponseResult; +export declare function Financev3FinanceTransactionTotalsV3ResponseResultToJSON(value?: Financev3FinanceTransactionTotalsV3ResponseResult | null): any; diff --git a/dist/models/Financev3FinanceTransactionTotalsV3ResponseResult.js b/dist/models/Financev3FinanceTransactionTotalsV3ResponseResult.js new file mode 100644 index 0000000..f9055ac --- /dev/null +++ b/dist/models/Financev3FinanceTransactionTotalsV3ResponseResult.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinancev3FinanceTransactionTotalsV3ResponseResult = instanceOfFinancev3FinanceTransactionTotalsV3ResponseResult; +exports.Financev3FinanceTransactionTotalsV3ResponseResultFromJSON = Financev3FinanceTransactionTotalsV3ResponseResultFromJSON; +exports.Financev3FinanceTransactionTotalsV3ResponseResultFromJSONTyped = Financev3FinanceTransactionTotalsV3ResponseResultFromJSONTyped; +exports.Financev3FinanceTransactionTotalsV3ResponseResultToJSON = Financev3FinanceTransactionTotalsV3ResponseResultToJSON; +/** + * Check if a given object implements the Financev3FinanceTransactionTotalsV3ResponseResult interface. + */ +function instanceOfFinancev3FinanceTransactionTotalsV3ResponseResult(value) { + return true; +} +function Financev3FinanceTransactionTotalsV3ResponseResultFromJSON(json) { + return Financev3FinanceTransactionTotalsV3ResponseResultFromJSONTyped(json, false); +} +function Financev3FinanceTransactionTotalsV3ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accruals_for_sale': json['accruals_for_sale'] == null ? undefined : json['accruals_for_sale'], + 'compensation_amount': json['compensation_amount'] == null ? undefined : json['compensation_amount'], + 'money_transfer': json['money_transfer'] == null ? undefined : json['money_transfer'], + 'others_amount': json['others_amount'] == null ? undefined : json['others_amount'], + 'processing_and_delivery': json['processing_and_delivery'] == null ? undefined : json['processing_and_delivery'], + 'refunds_and_cancellations': json['refunds_and_cancellations'] == null ? undefined : json['refunds_and_cancellations'], + 'sale_commission': json['sale_commission'] == null ? undefined : json['sale_commission'], + 'services_amount': json['services_amount'] == null ? undefined : json['services_amount'], + }; +} +function Financev3FinanceTransactionTotalsV3ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'accruals_for_sale': value['accruals_for_sale'], + 'compensation_amount': value['compensation_amount'], + 'money_transfer': value['money_transfer'], + 'others_amount': value['others_amount'], + 'processing_and_delivery': value['processing_and_delivery'], + 'refunds_and_cancellations': value['refunds_and_cancellations'], + 'sale_commission': value['sale_commission'], + 'services_amount': value['services_amount'], + }; +} diff --git a/dist/models/Financev3Period.d.ts b/dist/models/Financev3Period.d.ts new file mode 100644 index 0000000..70fd865 --- /dev/null +++ b/dist/models/Financev3Period.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период формирования отчёта. + * @export + * @interface Financev3Period + */ +export interface Financev3Period { + /** + * Дата, с ĸоторой рассчитывается отчёт. + * @type {string} + * @memberof Financev3Period + */ + from: string; + /** + * Дата, по ĸоторую рассчитывается отчёт. + * @type {string} + * @memberof Financev3Period + */ + to: string; +} +/** + * Check if a given object implements the Financev3Period interface. + */ +export declare function instanceOfFinancev3Period(value: object): value is Financev3Period; +export declare function Financev3PeriodFromJSON(json: any): Financev3Period; +export declare function Financev3PeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Financev3Period; +export declare function Financev3PeriodToJSON(value?: Financev3Period | null): any; diff --git a/dist/models/Financev3Period.js b/dist/models/Financev3Period.js new file mode 100644 index 0000000..9fc5eb0 --- /dev/null +++ b/dist/models/Financev3Period.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFinancev3Period = instanceOfFinancev3Period; +exports.Financev3PeriodFromJSON = Financev3PeriodFromJSON; +exports.Financev3PeriodFromJSONTyped = Financev3PeriodFromJSONTyped; +exports.Financev3PeriodToJSON = Financev3PeriodToJSON; +/** + * Check if a given object implements the Financev3Period interface. + */ +function instanceOfFinancev3Period(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function Financev3PeriodFromJSON(json) { + return Financev3PeriodFromJSONTyped(json, false); +} +function Financev3PeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +function Financev3PeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/FirstMileTypeEnum.d.ts b/dist/models/FirstMileTypeEnum.d.ts new file mode 100644 index 0000000..572043a --- /dev/null +++ b/dist/models/FirstMileTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили — `PICK_UP` или `DROP_OFF`. + * @export + */ +export declare const FirstMileTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PICK_UP: "PICK_UP"; + readonly DROP_OFF: "DROP_OFF"; +}; +export type FirstMileTypeEnum = typeof FirstMileTypeEnum[keyof typeof FirstMileTypeEnum]; +export declare function instanceOfFirstMileTypeEnum(value: any): boolean; +export declare function FirstMileTypeEnumFromJSON(json: any): FirstMileTypeEnum; +export declare function FirstMileTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstMileTypeEnum; +export declare function FirstMileTypeEnumToJSON(value?: FirstMileTypeEnum | null): any; diff --git a/dist/models/FirstMileTypeEnum.js b/dist/models/FirstMileTypeEnum.js new file mode 100644 index 0000000..f9bef56 --- /dev/null +++ b/dist/models/FirstMileTypeEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FirstMileTypeEnum = void 0; +exports.instanceOfFirstMileTypeEnum = instanceOfFirstMileTypeEnum; +exports.FirstMileTypeEnumFromJSON = FirstMileTypeEnumFromJSON; +exports.FirstMileTypeEnumFromJSONTyped = FirstMileTypeEnumFromJSONTyped; +exports.FirstMileTypeEnumToJSON = FirstMileTypeEnumToJSON; +/** + * Тип первой мили — `PICK_UP` или `DROP_OFF`. + * @export + */ +exports.FirstMileTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PICK_UP: 'PICK_UP', + DROP_OFF: 'DROP_OFF' +}; +function instanceOfFirstMileTypeEnum(value) { + for (const key in exports.FirstMileTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.FirstMileTypeEnum, key)) { + if (exports.FirstMileTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function FirstMileTypeEnumFromJSON(json) { + return FirstMileTypeEnumFromJSONTyped(json, false); +} +function FirstMileTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function FirstMileTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/GetCarriageAvailableListResponseResult.d.ts b/dist/models/GetCarriageAvailableListResponseResult.d.ts new file mode 100644 index 0000000..5382367 --- /dev/null +++ b/dist/models/GetCarriageAvailableListResponseResult.d.ts @@ -0,0 +1,140 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultError } from './ResultError'; +/** + * + * @export + * @interface GetCarriageAvailableListResponseResult + */ +export interface GetCarriageAvailableListResponseResult { + /** + * Идентификатор перевозки (также номер задания на формирование документов). + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + carriage_id?: number; + /** + * Количество отправлений в перевозке. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + carriage_postings_count?: number; + /** + * Статус перевозки для запрашиваемого метода доставки и даты отгрузки. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + carriage_status?: string; + /** + * Дата и время, до которых нужно собрать отправление. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + cutoff_at?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + delivery_method_id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + delivery_method_name?: string; + /** + * Список ошибок. + * @type {Array} + * @memberof GetCarriageAvailableListResponseResult + */ + errors?: Array; + /** + * Тип первой мили. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + first_mile_type?: string; + /** + * Признак доверительной приёмки. `true`, если доверительная приёмка включена на складе. + * @type {boolean} + * @memberof GetCarriageAvailableListResponseResult + */ + has_entrusted_acceptance?: boolean; + /** + * Количество отправлений, которые нужно собрать. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + mandatory_postings_count?: number; + /** + * Количество собранных отправлений. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + mandatory_packaged_count?: number; + /** + * Рекомендуемое местное время отгрузки на пункт приёма заказов. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + recommended_time_local?: string; + /** + * Смещение часового пояса рекомендуемого времени отгрузки от UTC-0 в минутах. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + recommended_time_utc_offset_in_minutes?: number; + /** + * Ссылка на иконку службы доставки. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + tpl_provider_icon_url?: string; + /** + * Название службы доставки. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + tpl_provider_name?: string; + /** + * Город склада. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + warehouse_city?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof GetCarriageAvailableListResponseResult + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + warehouse_name?: string; + /** + * Часовой пояс, в котором находится склад. + * @type {string} + * @memberof GetCarriageAvailableListResponseResult + */ + warehouse_timezone?: string; +} +/** + * Check if a given object implements the GetCarriageAvailableListResponseResult interface. + */ +export declare function instanceOfGetCarriageAvailableListResponseResult(value: object): value is GetCarriageAvailableListResponseResult; +export declare function GetCarriageAvailableListResponseResultFromJSON(json: any): GetCarriageAvailableListResponseResult; +export declare function GetCarriageAvailableListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCarriageAvailableListResponseResult; +export declare function GetCarriageAvailableListResponseResultToJSON(value?: GetCarriageAvailableListResponseResult | null): any; diff --git a/dist/models/GetCarriageAvailableListResponseResult.js b/dist/models/GetCarriageAvailableListResponseResult.js new file mode 100644 index 0000000..0fb3b20 --- /dev/null +++ b/dist/models/GetCarriageAvailableListResponseResult.js @@ -0,0 +1,81 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetCarriageAvailableListResponseResult = instanceOfGetCarriageAvailableListResponseResult; +exports.GetCarriageAvailableListResponseResultFromJSON = GetCarriageAvailableListResponseResultFromJSON; +exports.GetCarriageAvailableListResponseResultFromJSONTyped = GetCarriageAvailableListResponseResultFromJSONTyped; +exports.GetCarriageAvailableListResponseResultToJSON = GetCarriageAvailableListResponseResultToJSON; +const ResultError_1 = require("./ResultError"); +/** + * Check if a given object implements the GetCarriageAvailableListResponseResult interface. + */ +function instanceOfGetCarriageAvailableListResponseResult(value) { + return true; +} +function GetCarriageAvailableListResponseResultFromJSON(json) { + return GetCarriageAvailableListResponseResultFromJSONTyped(json, false); +} +function GetCarriageAvailableListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'] == null ? undefined : json['carriage_id'], + 'carriage_postings_count': json['carriage_postings_count'] == null ? undefined : json['carriage_postings_count'], + 'carriage_status': json['carriage_status'] == null ? undefined : json['carriage_status'], + 'cutoff_at': json['cutoff_at'] == null ? undefined : json['cutoff_at'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'delivery_method_name': json['delivery_method_name'] == null ? undefined : json['delivery_method_name'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(ResultError_1.ResultErrorFromJSON)), + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'mandatory_postings_count': json['mandatory_postings_count'] == null ? undefined : json['mandatory_postings_count'], + 'mandatory_packaged_count': json['mandatory_packaged_count'] == null ? undefined : json['mandatory_packaged_count'], + 'recommended_time_local': json['recommended_time_local'] == null ? undefined : json['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': json['recommended_time_utc_offset_in_minutes'] == null ? undefined : json['recommended_time_utc_offset_in_minutes'], + 'tpl_provider_icon_url': json['tpl_provider_icon_url'] == null ? undefined : json['tpl_provider_icon_url'], + 'tpl_provider_name': json['tpl_provider_name'] == null ? undefined : json['tpl_provider_name'], + 'warehouse_city': json['warehouse_city'] == null ? undefined : json['warehouse_city'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'warehouse_timezone': json['warehouse_timezone'] == null ? undefined : json['warehouse_timezone'], + }; +} +function GetCarriageAvailableListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'carriage_postings_count': value['carriage_postings_count'], + 'carriage_status': value['carriage_status'], + 'cutoff_at': value['cutoff_at'], + 'delivery_method_id': value['delivery_method_id'], + 'delivery_method_name': value['delivery_method_name'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(ResultError_1.ResultErrorToJSON)), + 'first_mile_type': value['first_mile_type'], + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'mandatory_postings_count': value['mandatory_postings_count'], + 'mandatory_packaged_count': value['mandatory_packaged_count'], + 'recommended_time_local': value['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': value['recommended_time_utc_offset_in_minutes'], + 'tpl_provider_icon_url': value['tpl_provider_icon_url'], + 'tpl_provider_name': value['tpl_provider_name'], + 'warehouse_city': value['warehouse_city'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'warehouse_timezone': value['warehouse_timezone'], + }; +} diff --git a/dist/models/GetCompetitorsResponseCompetitorInfo.d.ts b/dist/models/GetCompetitorsResponseCompetitorInfo.d.ts new file mode 100644 index 0000000..adb47aa --- /dev/null +++ b/dist/models/GetCompetitorsResponseCompetitorInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetCompetitorsResponseCompetitorInfo + */ +export interface GetCompetitorsResponseCompetitorInfo { + /** + * Название конкурента. + * @type {string} + * @memberof GetCompetitorsResponseCompetitorInfo + */ + name?: string; + /** + * Идентификатор конкурента. + * @type {number} + * @memberof GetCompetitorsResponseCompetitorInfo + */ + id?: number; +} +/** + * Check if a given object implements the GetCompetitorsResponseCompetitorInfo interface. + */ +export declare function instanceOfGetCompetitorsResponseCompetitorInfo(value: object): value is GetCompetitorsResponseCompetitorInfo; +export declare function GetCompetitorsResponseCompetitorInfoFromJSON(json: any): GetCompetitorsResponseCompetitorInfo; +export declare function GetCompetitorsResponseCompetitorInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCompetitorsResponseCompetitorInfo; +export declare function GetCompetitorsResponseCompetitorInfoToJSON(value?: GetCompetitorsResponseCompetitorInfo | null): any; diff --git a/dist/models/GetCompetitorsResponseCompetitorInfo.js b/dist/models/GetCompetitorsResponseCompetitorInfo.js new file mode 100644 index 0000000..525db5d --- /dev/null +++ b/dist/models/GetCompetitorsResponseCompetitorInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetCompetitorsResponseCompetitorInfo = instanceOfGetCompetitorsResponseCompetitorInfo; +exports.GetCompetitorsResponseCompetitorInfoFromJSON = GetCompetitorsResponseCompetitorInfoFromJSON; +exports.GetCompetitorsResponseCompetitorInfoFromJSONTyped = GetCompetitorsResponseCompetitorInfoFromJSONTyped; +exports.GetCompetitorsResponseCompetitorInfoToJSON = GetCompetitorsResponseCompetitorInfoToJSON; +/** + * Check if a given object implements the GetCompetitorsResponseCompetitorInfo interface. + */ +function instanceOfGetCompetitorsResponseCompetitorInfo(value) { + return true; +} +function GetCompetitorsResponseCompetitorInfoFromJSON(json) { + return GetCompetitorsResponseCompetitorInfoFromJSONTyped(json, false); +} +function GetCompetitorsResponseCompetitorInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'id': json['id'] == null ? undefined : json['id'], + }; +} +function GetCompetitorsResponseCompetitorInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'id': value['id'], + }; +} diff --git a/dist/models/GetConditionalCancellationListV2RequestFilters.d.ts b/dist/models/GetConditionalCancellationListV2RequestFilters.d.ts new file mode 100644 index 0000000..35ba29f --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2RequestFilters.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CancellationInitiatorEnum } from './V2CancellationInitiatorEnum'; +import type { V2CancellationStateEnumFilters } from './V2CancellationStateEnumFilters'; +/** + * Фильтры. + * @export + * @interface GetConditionalCancellationListV2RequestFilters + */ +export interface GetConditionalCancellationListV2RequestFilters { + /** + * Инициатор отмены: + * - `SELLER` — продавец, + * - `CLIENT` — покупатель, + * - `OZON` — Ozon, + * - `SYSTEM` — система, + * - `DELIVERY` — служба доставки. + * + * @type {Array} + * @memberof GetConditionalCancellationListV2RequestFilters + */ + cancellation_initiator?: Array; + /** + * Фильтр по номеру отправления. + * @type {Array} + * @memberof GetConditionalCancellationListV2RequestFilters + */ + posting_number?: Array; + /** + * + * @type {V2CancellationStateEnumFilters} + * @memberof GetConditionalCancellationListV2RequestFilters + */ + state?: V2CancellationStateEnumFilters; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2RequestFilters interface. + */ +export declare function instanceOfGetConditionalCancellationListV2RequestFilters(value: object): value is GetConditionalCancellationListV2RequestFilters; +export declare function GetConditionalCancellationListV2RequestFiltersFromJSON(json: any): GetConditionalCancellationListV2RequestFilters; +export declare function GetConditionalCancellationListV2RequestFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2RequestFilters; +export declare function GetConditionalCancellationListV2RequestFiltersToJSON(value?: GetConditionalCancellationListV2RequestFilters | null): any; diff --git a/dist/models/GetConditionalCancellationListV2RequestFilters.js b/dist/models/GetConditionalCancellationListV2RequestFilters.js new file mode 100644 index 0000000..26c1cd2 --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2RequestFilters.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetConditionalCancellationListV2RequestFilters = instanceOfGetConditionalCancellationListV2RequestFilters; +exports.GetConditionalCancellationListV2RequestFiltersFromJSON = GetConditionalCancellationListV2RequestFiltersFromJSON; +exports.GetConditionalCancellationListV2RequestFiltersFromJSONTyped = GetConditionalCancellationListV2RequestFiltersFromJSONTyped; +exports.GetConditionalCancellationListV2RequestFiltersToJSON = GetConditionalCancellationListV2RequestFiltersToJSON; +const V2CancellationInitiatorEnum_1 = require("./V2CancellationInitiatorEnum"); +const V2CancellationStateEnumFilters_1 = require("./V2CancellationStateEnumFilters"); +/** + * Check if a given object implements the GetConditionalCancellationListV2RequestFilters interface. + */ +function instanceOfGetConditionalCancellationListV2RequestFilters(value) { + return true; +} +function GetConditionalCancellationListV2RequestFiltersFromJSON(json) { + return GetConditionalCancellationListV2RequestFiltersFromJSONTyped(json, false); +} +function GetConditionalCancellationListV2RequestFiltersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : (json['cancellation_initiator'].map(V2CancellationInitiatorEnum_1.V2CancellationInitiatorEnumFromJSON)), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'state': json['state'] == null ? undefined : (0, V2CancellationStateEnumFilters_1.V2CancellationStateEnumFiltersFromJSON)(json['state']), + }; +} +function GetConditionalCancellationListV2RequestFiltersToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_initiator': value['cancellation_initiator'] == null ? undefined : (value['cancellation_initiator'].map(V2CancellationInitiatorEnum_1.V2CancellationInitiatorEnumToJSON)), + 'posting_number': value['posting_number'], + 'state': (0, V2CancellationStateEnumFilters_1.V2CancellationStateEnumFiltersToJSON)(value['state']), + }; +} diff --git a/dist/models/GetConditionalCancellationListV2RequestWith.d.ts b/dist/models/GetConditionalCancellationListV2RequestWith.d.ts new file mode 100644 index 0000000..d7e3cb9 --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2RequestWith.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительная информация. + * @export + * @interface GetConditionalCancellationListV2RequestWith + */ +export interface GetConditionalCancellationListV2RequestWith { + /** + * Признак, что в ответе нужно вывести счётчик заявок в статусе `ON_APPROVAL`. + * @type {boolean} + * @memberof GetConditionalCancellationListV2RequestWith + */ + counter?: boolean; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2RequestWith interface. + */ +export declare function instanceOfGetConditionalCancellationListV2RequestWith(value: object): value is GetConditionalCancellationListV2RequestWith; +export declare function GetConditionalCancellationListV2RequestWithFromJSON(json: any): GetConditionalCancellationListV2RequestWith; +export declare function GetConditionalCancellationListV2RequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2RequestWith; +export declare function GetConditionalCancellationListV2RequestWithToJSON(value?: GetConditionalCancellationListV2RequestWith | null): any; diff --git a/dist/models/GetConditionalCancellationListV2RequestWith.js b/dist/models/GetConditionalCancellationListV2RequestWith.js new file mode 100644 index 0000000..1ca32b4 --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2RequestWith.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetConditionalCancellationListV2RequestWith = instanceOfGetConditionalCancellationListV2RequestWith; +exports.GetConditionalCancellationListV2RequestWithFromJSON = GetConditionalCancellationListV2RequestWithFromJSON; +exports.GetConditionalCancellationListV2RequestWithFromJSONTyped = GetConditionalCancellationListV2RequestWithFromJSONTyped; +exports.GetConditionalCancellationListV2RequestWithToJSON = GetConditionalCancellationListV2RequestWithToJSON; +/** + * Check if a given object implements the GetConditionalCancellationListV2RequestWith interface. + */ +function instanceOfGetConditionalCancellationListV2RequestWith(value) { + return true; +} +function GetConditionalCancellationListV2RequestWithFromJSON(json) { + return GetConditionalCancellationListV2RequestWithFromJSONTyped(json, false); +} +function GetConditionalCancellationListV2RequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'counter': json['counter'] == null ? undefined : json['counter'], + }; +} +function GetConditionalCancellationListV2RequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'counter': value['counter'], + }; +} diff --git a/dist/models/GetConditionalCancellationListV2ResponseCancellationReason.d.ts b/dist/models/GetConditionalCancellationListV2ResponseCancellationReason.d.ts new file mode 100644 index 0000000..4489ec0 --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2ResponseCancellationReason.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина отмены. + * @export + * @interface GetConditionalCancellationListV2ResponseCancellationReason + */ +export interface GetConditionalCancellationListV2ResponseCancellationReason { + /** + * Идентификатор причины отмены. + * @type {number} + * @memberof GetConditionalCancellationListV2ResponseCancellationReason + */ + id?: number; + /** + * Название причины отмены. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseCancellationReason + */ + name?: string; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseCancellationReason interface. + */ +export declare function instanceOfGetConditionalCancellationListV2ResponseCancellationReason(value: object): value is GetConditionalCancellationListV2ResponseCancellationReason; +export declare function GetConditionalCancellationListV2ResponseCancellationReasonFromJSON(json: any): GetConditionalCancellationListV2ResponseCancellationReason; +export declare function GetConditionalCancellationListV2ResponseCancellationReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2ResponseCancellationReason; +export declare function GetConditionalCancellationListV2ResponseCancellationReasonToJSON(value?: GetConditionalCancellationListV2ResponseCancellationReason | null): any; diff --git a/dist/models/GetConditionalCancellationListV2ResponseCancellationReason.js b/dist/models/GetConditionalCancellationListV2ResponseCancellationReason.js new file mode 100644 index 0000000..e003473 --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2ResponseCancellationReason.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetConditionalCancellationListV2ResponseCancellationReason = instanceOfGetConditionalCancellationListV2ResponseCancellationReason; +exports.GetConditionalCancellationListV2ResponseCancellationReasonFromJSON = GetConditionalCancellationListV2ResponseCancellationReasonFromJSON; +exports.GetConditionalCancellationListV2ResponseCancellationReasonFromJSONTyped = GetConditionalCancellationListV2ResponseCancellationReasonFromJSONTyped; +exports.GetConditionalCancellationListV2ResponseCancellationReasonToJSON = GetConditionalCancellationListV2ResponseCancellationReasonToJSON; +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseCancellationReason interface. + */ +function instanceOfGetConditionalCancellationListV2ResponseCancellationReason(value) { + return true; +} +function GetConditionalCancellationListV2ResponseCancellationReasonFromJSON(json) { + return GetConditionalCancellationListV2ResponseCancellationReasonFromJSONTyped(json, false); +} +function GetConditionalCancellationListV2ResponseCancellationReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function GetConditionalCancellationListV2ResponseCancellationReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/GetConditionalCancellationListV2ResponseResult.d.ts b/dist/models/GetConditionalCancellationListV2ResponseResult.d.ts new file mode 100644 index 0000000..03364f5 --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2ResponseResult.d.ts @@ -0,0 +1,109 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CancellationInitiatorEnum } from './V2CancellationInitiatorEnum'; +import type { GetConditionalCancellationListV2ResponseState } from './GetConditionalCancellationListV2ResponseState'; +import type { GetConditionalCancellationListV2ResponseCancellationReason } from './GetConditionalCancellationListV2ResponseCancellationReason'; +/** + * + * @export + * @interface GetConditionalCancellationListV2ResponseResult + */ +export interface GetConditionalCancellationListV2ResponseResult { + /** + * Комментарий, оставленный при подтверждении или отклонении заявки на отмену. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + approve_comment?: string; + /** + * Дата подтверждения или отклонения заявки на отмену. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + approve_date?: string; + /** + * Дата, после которой заявка будет автоматически подтверждена. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + auto_approve_date?: string; + /** + * Идентификатор заявки на отмену. + * @type {number} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancellation_id?: number; + /** + * + * @type {V2CancellationInitiatorEnum} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancellation_initiator?: V2CancellationInitiatorEnum; + /** + * + * @type {GetConditionalCancellationListV2ResponseCancellationReason} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancellation_reason?: GetConditionalCancellationListV2ResponseCancellationReason; + /** + * Комментарий к заявке на отмену, введённый инициатором отмены вручную. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancellation_reason_message?: string; + /** + * Дата создания заявки на отмену. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + cancelled_at?: string; + /** + * Дата создания заказа. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + order_date?: string; + /** + * Номер отправления. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + posting_number?: string; + /** + * Предыдущий идентификатор заявки на отмену. + * + * Используется для поддержания обратной совместимости. + * + * @type {number} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + source_id?: number; + /** + * + * @type {GetConditionalCancellationListV2ResponseState} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + state?: GetConditionalCancellationListV2ResponseState; + /** + * Тип интеграции со службой доставки. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseResult + */ + tpl_integration_type?: string; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseResult interface. + */ +export declare function instanceOfGetConditionalCancellationListV2ResponseResult(value: object): value is GetConditionalCancellationListV2ResponseResult; +export declare function GetConditionalCancellationListV2ResponseResultFromJSON(json: any): GetConditionalCancellationListV2ResponseResult; +export declare function GetConditionalCancellationListV2ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2ResponseResult; +export declare function GetConditionalCancellationListV2ResponseResultToJSON(value?: GetConditionalCancellationListV2ResponseResult | null): any; diff --git a/dist/models/GetConditionalCancellationListV2ResponseResult.js b/dist/models/GetConditionalCancellationListV2ResponseResult.js new file mode 100644 index 0000000..9d7d42a --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2ResponseResult.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetConditionalCancellationListV2ResponseResult = instanceOfGetConditionalCancellationListV2ResponseResult; +exports.GetConditionalCancellationListV2ResponseResultFromJSON = GetConditionalCancellationListV2ResponseResultFromJSON; +exports.GetConditionalCancellationListV2ResponseResultFromJSONTyped = GetConditionalCancellationListV2ResponseResultFromJSONTyped; +exports.GetConditionalCancellationListV2ResponseResultToJSON = GetConditionalCancellationListV2ResponseResultToJSON; +const V2CancellationInitiatorEnum_1 = require("./V2CancellationInitiatorEnum"); +const GetConditionalCancellationListV2ResponseState_1 = require("./GetConditionalCancellationListV2ResponseState"); +const GetConditionalCancellationListV2ResponseCancellationReason_1 = require("./GetConditionalCancellationListV2ResponseCancellationReason"); +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseResult interface. + */ +function instanceOfGetConditionalCancellationListV2ResponseResult(value) { + return true; +} +function GetConditionalCancellationListV2ResponseResultFromJSON(json) { + return GetConditionalCancellationListV2ResponseResultFromJSONTyped(json, false); +} +function GetConditionalCancellationListV2ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approve_comment': json['approve_comment'] == null ? undefined : json['approve_comment'], + 'approve_date': json['approve_date'] == null ? undefined : json['approve_date'], + 'auto_approve_date': json['auto_approve_date'] == null ? undefined : json['auto_approve_date'], + 'cancellation_id': json['cancellation_id'] == null ? undefined : json['cancellation_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : (0, V2CancellationInitiatorEnum_1.V2CancellationInitiatorEnumFromJSON)(json['cancellation_initiator']), + 'cancellation_reason': json['cancellation_reason'] == null ? undefined : (0, GetConditionalCancellationListV2ResponseCancellationReason_1.GetConditionalCancellationListV2ResponseCancellationReasonFromJSON)(json['cancellation_reason']), + 'cancellation_reason_message': json['cancellation_reason_message'] == null ? undefined : json['cancellation_reason_message'], + 'cancelled_at': json['cancelled_at'] == null ? undefined : json['cancelled_at'], + 'order_date': json['order_date'] == null ? undefined : json['order_date'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'source_id': json['source_id'] == null ? undefined : json['source_id'], + 'state': json['state'] == null ? undefined : (0, GetConditionalCancellationListV2ResponseState_1.GetConditionalCancellationListV2ResponseStateFromJSON)(json['state']), + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + }; +} +function GetConditionalCancellationListV2ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'approve_comment': value['approve_comment'], + 'approve_date': value['approve_date'], + 'auto_approve_date': value['auto_approve_date'], + 'cancellation_id': value['cancellation_id'], + 'cancellation_initiator': (0, V2CancellationInitiatorEnum_1.V2CancellationInitiatorEnumToJSON)(value['cancellation_initiator']), + 'cancellation_reason': (0, GetConditionalCancellationListV2ResponseCancellationReason_1.GetConditionalCancellationListV2ResponseCancellationReasonToJSON)(value['cancellation_reason']), + 'cancellation_reason_message': value['cancellation_reason_message'], + 'cancelled_at': value['cancelled_at'], + 'order_date': value['order_date'], + 'posting_number': value['posting_number'], + 'source_id': value['source_id'], + 'state': (0, GetConditionalCancellationListV2ResponseState_1.GetConditionalCancellationListV2ResponseStateToJSON)(value['state']), + 'tpl_integration_type': value['tpl_integration_type'], + }; +} diff --git a/dist/models/GetConditionalCancellationListV2ResponseState.d.ts b/dist/models/GetConditionalCancellationListV2ResponseState.d.ts new file mode 100644 index 0000000..58598b5 --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2ResponseState.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CancellationStateEnum } from './V2CancellationStateEnum'; +/** + * Статус заявки на отмену. + * @export + * @interface GetConditionalCancellationListV2ResponseState + */ +export interface GetConditionalCancellationListV2ResponseState { + /** + * Идентификатор статуса. + * @type {number} + * @memberof GetConditionalCancellationListV2ResponseState + */ + id?: number; + /** + * Название статуса. + * @type {string} + * @memberof GetConditionalCancellationListV2ResponseState + */ + name?: string; + /** + * + * @type {V2CancellationStateEnum} + * @memberof GetConditionalCancellationListV2ResponseState + */ + state?: V2CancellationStateEnum; +} +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseState interface. + */ +export declare function instanceOfGetConditionalCancellationListV2ResponseState(value: object): value is GetConditionalCancellationListV2ResponseState; +export declare function GetConditionalCancellationListV2ResponseStateFromJSON(json: any): GetConditionalCancellationListV2ResponseState; +export declare function GetConditionalCancellationListV2ResponseStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConditionalCancellationListV2ResponseState; +export declare function GetConditionalCancellationListV2ResponseStateToJSON(value?: GetConditionalCancellationListV2ResponseState | null): any; diff --git a/dist/models/GetConditionalCancellationListV2ResponseState.js b/dist/models/GetConditionalCancellationListV2ResponseState.js new file mode 100644 index 0000000..f661e6b --- /dev/null +++ b/dist/models/GetConditionalCancellationListV2ResponseState.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetConditionalCancellationListV2ResponseState = instanceOfGetConditionalCancellationListV2ResponseState; +exports.GetConditionalCancellationListV2ResponseStateFromJSON = GetConditionalCancellationListV2ResponseStateFromJSON; +exports.GetConditionalCancellationListV2ResponseStateFromJSONTyped = GetConditionalCancellationListV2ResponseStateFromJSONTyped; +exports.GetConditionalCancellationListV2ResponseStateToJSON = GetConditionalCancellationListV2ResponseStateToJSON; +const V2CancellationStateEnum_1 = require("./V2CancellationStateEnum"); +/** + * Check if a given object implements the GetConditionalCancellationListV2ResponseState interface. + */ +function instanceOfGetConditionalCancellationListV2ResponseState(value) { + return true; +} +function GetConditionalCancellationListV2ResponseStateFromJSON(json) { + return GetConditionalCancellationListV2ResponseStateFromJSONTyped(json, false); +} +function GetConditionalCancellationListV2ResponseStateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'state': json['state'] == null ? undefined : (0, V2CancellationStateEnum_1.V2CancellationStateEnumFromJSON)(json['state']), + }; +} +function GetConditionalCancellationListV2ResponseStateToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'state': (0, V2CancellationStateEnum_1.V2CancellationStateEnumToJSON)(value['state']), + }; +} diff --git a/dist/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.d.ts b/dist/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.d.ts new file mode 100644 index 0000000..1d03e34 --- /dev/null +++ b/dist/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnSettingTransportCompanyDetails } from './ReturnSettingTransportCompanyDetails'; +import type { ReturnSettingCourierDetails } from './ReturnSettingCourierDetails'; +/** + * Информация о возвратных настройках. + * @export + * @interface GetDeliveryMethodReturnSettingsV1ResponseReturnSetting + */ +export interface GetDeliveryMethodReturnSettingsV1ResponseReturnSetting { + /** + * + * @type {ReturnSettingCourierDetails} + * @memberof GetDeliveryMethodReturnSettingsV1ResponseReturnSetting + */ + courier_details?: ReturnSettingCourierDetails; + /** + * Индекс отделения Почты России для [«лёгкого возврата»](https://seller-edu.ozon.ru/rfbs/vozvraty/vozvraty#«лёгкии-возврат»-почтои-россии). + * @type {string} + * @memberof GetDeliveryMethodReturnSettingsV1ResponseReturnSetting + */ + post_office_zipcode?: string; + /** + * + * @type {ReturnSettingTransportCompanyDetails} + * @memberof GetDeliveryMethodReturnSettingsV1ResponseReturnSetting + */ + transport_company_details?: ReturnSettingTransportCompanyDetails; +} +/** + * Check if a given object implements the GetDeliveryMethodReturnSettingsV1ResponseReturnSetting interface. + */ +export declare function instanceOfGetDeliveryMethodReturnSettingsV1ResponseReturnSetting(value: object): value is GetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +export declare function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON(json: any): GetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +export declare function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +export declare function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON(value?: GetDeliveryMethodReturnSettingsV1ResponseReturnSetting | null): any; diff --git a/dist/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.js b/dist/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.js new file mode 100644 index 0000000..32e83c7 --- /dev/null +++ b/dist/models/GetDeliveryMethodReturnSettingsV1ResponseReturnSetting.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetDeliveryMethodReturnSettingsV1ResponseReturnSetting = instanceOfGetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +exports.GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON = GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON; +exports.GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSONTyped = GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSONTyped; +exports.GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON = GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON; +const ReturnSettingTransportCompanyDetails_1 = require("./ReturnSettingTransportCompanyDetails"); +const ReturnSettingCourierDetails_1 = require("./ReturnSettingCourierDetails"); +/** + * Check if a given object implements the GetDeliveryMethodReturnSettingsV1ResponseReturnSetting interface. + */ +function instanceOfGetDeliveryMethodReturnSettingsV1ResponseReturnSetting(value) { + return true; +} +function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON(json) { + return GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSONTyped(json, false); +} +function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_details': json['courier_details'] == null ? undefined : (0, ReturnSettingCourierDetails_1.ReturnSettingCourierDetailsFromJSON)(json['courier_details']), + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'transport_company_details': json['transport_company_details'] == null ? undefined : (0, ReturnSettingTransportCompanyDetails_1.ReturnSettingTransportCompanyDetailsFromJSON)(json['transport_company_details']), + }; +} +function GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_details': (0, ReturnSettingCourierDetails_1.ReturnSettingCourierDetailsToJSON)(value['courier_details']), + 'post_office_zipcode': value['post_office_zipcode'], + 'transport_company_details': (0, ReturnSettingTransportCompanyDetails_1.ReturnSettingTransportCompanyDetailsToJSON)(value['transport_company_details']), + }; +} diff --git a/dist/models/GetDiscountTaskListV2ResponseTask.d.ts b/dist/models/GetDiscountTaskListV2ResponseTask.d.ts new file mode 100644 index 0000000..6a98d07 --- /dev/null +++ b/dist/models/GetDiscountTaskListV2ResponseTask.d.ts @@ -0,0 +1,179 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum } from './GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum'; +import type { TaskAutoModeratedInfo } from './TaskAutoModeratedInfo'; +/** + * + * @export + * @interface GetDiscountTaskListV2ResponseTask + */ +export interface GetDiscountTaskListV2ResponseTask { + /** + * Скидка в рублях, которую одобрил продавец. Передайте значение `0`, если продавец не одобрил заявку. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + approved_discount?: number; + /** + * Одобренная цена. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + approved_price?: number; + /** + * Максимальное одобренное количество товаров. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + approved_quantity_max?: number; + /** + * + * @type {TaskAutoModeratedInfo} + * @memberof GetDiscountTaskListV2ResponseTask + */ + auto_moderated_info?: TaskAutoModeratedInfo; + /** + * Дата создания заявки. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + created_at?: string; + /** + * Время для изменения решения. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + edited_till?: string; + /** + * Время для изменения решения в секундах. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + edited_till_duration?: number; + /** + * Электронный адрес сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + email?: string; + /** + * Время окончания действия заявки. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + end_at?: string; + /** + * Время окончания действия заявки в секундах. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + end_at_duration?: number; + /** + * Имя сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + first_name?: string; + /** + * Идентификатор заявки. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + id?: number; + /** + * `true`, если модерация была автоматической. + * + * @type {boolean} + * @memberof GetDiscountTaskListV2ResponseTask + */ + is_auto_moderated?: boolean; + /** + * Фамилия сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + last_name?: string; + /** + * Минимальное значение цены после автоприменения скидок и акций. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + min_auto_price?: number; + /** + * Дата модерации: просмотра, одобрения или отклонения заявки. + * + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + moderated_at?: string; + /** + * Название товара. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + name?: string; + /** + * Цена товара до всех скидок. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + original_price?: number; + /** + * Отчество сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof GetDiscountTaskListV2ResponseTask + */ + patronymic?: string; + /** + * Разница между ценой пользователя и продавца в момент создания заявки. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + reduction_factor?: number; + /** + * Скидка в процентах. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + requested_discount?: number; + /** + * Цена по заявке. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + requested_price?: number; + /** + * Запрошенное максимальное количество товаров. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + requested_quantity_max?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetDiscountTaskListV2ResponseTask + */ + sku?: number; + /** + * + * @type {GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum} + * @memberof GetDiscountTaskListV2ResponseTask + */ + status?: GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum; +} +/** + * Check if a given object implements the GetDiscountTaskListV2ResponseTask interface. + */ +export declare function instanceOfGetDiscountTaskListV2ResponseTask(value: object): value is GetDiscountTaskListV2ResponseTask; +export declare function GetDiscountTaskListV2ResponseTaskFromJSON(json: any): GetDiscountTaskListV2ResponseTask; +export declare function GetDiscountTaskListV2ResponseTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDiscountTaskListV2ResponseTask; +export declare function GetDiscountTaskListV2ResponseTaskToJSON(value?: GetDiscountTaskListV2ResponseTask | null): any; diff --git a/dist/models/GetDiscountTaskListV2ResponseTask.js b/dist/models/GetDiscountTaskListV2ResponseTask.js new file mode 100644 index 0000000..0ab889f --- /dev/null +++ b/dist/models/GetDiscountTaskListV2ResponseTask.js @@ -0,0 +1,94 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetDiscountTaskListV2ResponseTask = instanceOfGetDiscountTaskListV2ResponseTask; +exports.GetDiscountTaskListV2ResponseTaskFromJSON = GetDiscountTaskListV2ResponseTaskFromJSON; +exports.GetDiscountTaskListV2ResponseTaskFromJSONTyped = GetDiscountTaskListV2ResponseTaskFromJSONTyped; +exports.GetDiscountTaskListV2ResponseTaskToJSON = GetDiscountTaskListV2ResponseTaskToJSON; +const GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum_1 = require("./GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum"); +const TaskAutoModeratedInfo_1 = require("./TaskAutoModeratedInfo"); +/** + * Check if a given object implements the GetDiscountTaskListV2ResponseTask interface. + */ +function instanceOfGetDiscountTaskListV2ResponseTask(value) { + return true; +} +function GetDiscountTaskListV2ResponseTaskFromJSON(json) { + return GetDiscountTaskListV2ResponseTaskFromJSONTyped(json, false); +} +function GetDiscountTaskListV2ResponseTaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_discount': json['approved_discount'] == null ? undefined : json['approved_discount'], + 'approved_price': json['approved_price'] == null ? undefined : json['approved_price'], + 'approved_quantity_max': json['approved_quantity_max'] == null ? undefined : json['approved_quantity_max'], + 'auto_moderated_info': json['auto_moderated_info'] == null ? undefined : (0, TaskAutoModeratedInfo_1.TaskAutoModeratedInfoFromJSON)(json['auto_moderated_info']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'edited_till': json['edited_till'] == null ? undefined : json['edited_till'], + 'edited_till_duration': json['edited_till_duration'] == null ? undefined : json['edited_till_duration'], + 'email': json['email'] == null ? undefined : json['email'], + 'end_at': json['end_at'] == null ? undefined : json['end_at'], + 'end_at_duration': json['end_at_duration'] == null ? undefined : json['end_at_duration'], + 'first_name': json['first_name'] == null ? undefined : json['first_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_auto_moderated': json['is_auto_moderated'] == null ? undefined : json['is_auto_moderated'], + 'last_name': json['last_name'] == null ? undefined : json['last_name'], + 'min_auto_price': json['min_auto_price'] == null ? undefined : json['min_auto_price'], + 'moderated_at': json['moderated_at'] == null ? undefined : json['moderated_at'], + 'name': json['name'] == null ? undefined : json['name'], + 'original_price': json['original_price'] == null ? undefined : json['original_price'], + 'patronymic': json['patronymic'] == null ? undefined : json['patronymic'], + 'reduction_factor': json['reduction_factor'] == null ? undefined : json['reduction_factor'], + 'requested_discount': json['requested_discount'] == null ? undefined : json['requested_discount'], + 'requested_price': json['requested_price'] == null ? undefined : json['requested_price'], + 'requested_quantity_max': json['requested_quantity_max'] == null ? undefined : json['requested_quantity_max'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : (0, GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum_1.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON)(json['status']), + }; +} +function GetDiscountTaskListV2ResponseTaskToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_discount': value['approved_discount'], + 'approved_price': value['approved_price'], + 'approved_quantity_max': value['approved_quantity_max'], + 'auto_moderated_info': (0, TaskAutoModeratedInfo_1.TaskAutoModeratedInfoToJSON)(value['auto_moderated_info']), + 'created_at': value['created_at'], + 'edited_till': value['edited_till'], + 'edited_till_duration': value['edited_till_duration'], + 'email': value['email'], + 'end_at': value['end_at'], + 'end_at_duration': value['end_at_duration'], + 'first_name': value['first_name'], + 'id': value['id'], + 'is_auto_moderated': value['is_auto_moderated'], + 'last_name': value['last_name'], + 'min_auto_price': value['min_auto_price'], + 'moderated_at': value['moderated_at'], + 'name': value['name'], + 'original_price': value['original_price'], + 'patronymic': value['patronymic'], + 'reduction_factor': value['reduction_factor'], + 'requested_discount': value['requested_discount'], + 'requested_price': value['requested_price'], + 'requested_quantity_max': value['requested_quantity_max'], + 'sku': value['sku'], + 'status': (0, GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum_1.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.d.ts b/dist/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.d.ts new file mode 100644 index 0000000..7de2833 --- /dev/null +++ b/dist/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `ALL` — все статусы, + * - `NEW` — новая, + * - `APPROVED` — одобренная, + * - `DECLINED` — отклонённая. + * + * @export + */ +export declare const GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum: { + readonly ALL: "ALL"; + readonly NEW: "NEW"; + readonly APPROVED: "APPROVED"; + readonly DECLINED: "DECLINED"; +}; +export type GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum = typeof GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum[keyof typeof GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum]; +export declare function instanceOfGetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum(value: any): boolean; +export declare function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON(json: any): GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum; +export declare function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum; +export declare function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON(value?: GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum | null): any; diff --git a/dist/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.js b/dist/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.js new file mode 100644 index 0000000..bcc55d2 --- /dev/null +++ b/dist/models/GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum = void 0; +exports.instanceOfGetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum = instanceOfGetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum; +exports.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON = GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON; +exports.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSONTyped = GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSONTyped; +exports.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON = GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON; +/** + * Статус заявки на скидку: + * - `ALL` — все статусы, + * - `NEW` — новая, + * - `APPROVED` — одобренная, + * - `DECLINED` — отклонённая. + * + * @export + */ +exports.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum = { + ALL: 'ALL', + NEW: 'NEW', + APPROVED: 'APPROVED', + DECLINED: 'DECLINED' +}; +function instanceOfGetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum(value) { + for (const key in exports.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum, key)) { + if (exports.GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSON(json) { + return GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSONTyped(json, false); +} +function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/GetEtgbRequestDate.d.ts b/dist/models/GetEtgbRequestDate.d.ts new file mode 100644 index 0000000..088ec0b --- /dev/null +++ b/dist/models/GetEtgbRequestDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по периоду создания деклараций. + * @export + * @interface GetEtgbRequestDate + */ +export interface GetEtgbRequestDate { + /** + * Дата начала. + * @type {string} + * @memberof GetEtgbRequestDate + */ + from: string; + /** + * Дата окончания. + * @type {string} + * @memberof GetEtgbRequestDate + */ + to: string; +} +/** + * Check if a given object implements the GetEtgbRequestDate interface. + */ +export declare function instanceOfGetEtgbRequestDate(value: object): value is GetEtgbRequestDate; +export declare function GetEtgbRequestDateFromJSON(json: any): GetEtgbRequestDate; +export declare function GetEtgbRequestDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEtgbRequestDate; +export declare function GetEtgbRequestDateToJSON(value?: GetEtgbRequestDate | null): any; diff --git a/dist/models/GetEtgbRequestDate.js b/dist/models/GetEtgbRequestDate.js new file mode 100644 index 0000000..af91dfd --- /dev/null +++ b/dist/models/GetEtgbRequestDate.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetEtgbRequestDate = instanceOfGetEtgbRequestDate; +exports.GetEtgbRequestDateFromJSON = GetEtgbRequestDateFromJSON; +exports.GetEtgbRequestDateFromJSONTyped = GetEtgbRequestDateFromJSONTyped; +exports.GetEtgbRequestDateToJSON = GetEtgbRequestDateToJSON; +/** + * Check if a given object implements the GetEtgbRequestDate interface. + */ +function instanceOfGetEtgbRequestDate(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function GetEtgbRequestDateFromJSON(json) { + return GetEtgbRequestDateFromJSONTyped(json, false); +} +function GetEtgbRequestDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +function GetEtgbRequestDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/GetEtgbResponseResult.d.ts b/dist/models/GetEtgbResponseResult.d.ts new file mode 100644 index 0000000..815065b --- /dev/null +++ b/dist/models/GetEtgbResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetEtgbResponseResultEtgb } from './GetEtgbResponseResultEtgb'; +/** + * + * @export + * @interface GetEtgbResponseResult + */ +export interface GetEtgbResponseResult { + /** + * Номер отправления. + * @type {string} + * @memberof GetEtgbResponseResult + */ + posting_number?: string; + /** + * + * @type {GetEtgbResponseResultEtgb} + * @memberof GetEtgbResponseResult + */ + etgb?: GetEtgbResponseResultEtgb; +} +/** + * Check if a given object implements the GetEtgbResponseResult interface. + */ +export declare function instanceOfGetEtgbResponseResult(value: object): value is GetEtgbResponseResult; +export declare function GetEtgbResponseResultFromJSON(json: any): GetEtgbResponseResult; +export declare function GetEtgbResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEtgbResponseResult; +export declare function GetEtgbResponseResultToJSON(value?: GetEtgbResponseResult | null): any; diff --git a/dist/models/GetEtgbResponseResult.js b/dist/models/GetEtgbResponseResult.js new file mode 100644 index 0000000..4102066 --- /dev/null +++ b/dist/models/GetEtgbResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetEtgbResponseResult = instanceOfGetEtgbResponseResult; +exports.GetEtgbResponseResultFromJSON = GetEtgbResponseResultFromJSON; +exports.GetEtgbResponseResultFromJSONTyped = GetEtgbResponseResultFromJSONTyped; +exports.GetEtgbResponseResultToJSON = GetEtgbResponseResultToJSON; +const GetEtgbResponseResultEtgb_1 = require("./GetEtgbResponseResultEtgb"); +/** + * Check if a given object implements the GetEtgbResponseResult interface. + */ +function instanceOfGetEtgbResponseResult(value) { + return true; +} +function GetEtgbResponseResultFromJSON(json) { + return GetEtgbResponseResultFromJSONTyped(json, false); +} +function GetEtgbResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'etgb': json['etgb'] == null ? undefined : (0, GetEtgbResponseResultEtgb_1.GetEtgbResponseResultEtgbFromJSON)(json['etgb']), + }; +} +function GetEtgbResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'etgb': (0, GetEtgbResponseResultEtgb_1.GetEtgbResponseResultEtgbToJSON)(value['etgb']), + }; +} diff --git a/dist/models/GetEtgbResponseResultEtgb.d.ts b/dist/models/GetEtgbResponseResultEtgb.d.ts new file mode 100644 index 0000000..1900beb --- /dev/null +++ b/dist/models/GetEtgbResponseResultEtgb.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о декларации. + * @export + * @interface GetEtgbResponseResultEtgb + */ +export interface GetEtgbResponseResultEtgb { + /** + * Номер. + * @type {string} + * @memberof GetEtgbResponseResultEtgb + */ + number?: string; + /** + * Дата создания. + * @type {string} + * @memberof GetEtgbResponseResultEtgb + */ + date?: string; + /** + * Ссылка на файл. + * + * Если поле пустое и вам нужен файл, обратитесь в поддержку Ozon. + * + * @type {string} + * @memberof GetEtgbResponseResultEtgb + */ + url?: string; +} +/** + * Check if a given object implements the GetEtgbResponseResultEtgb interface. + */ +export declare function instanceOfGetEtgbResponseResultEtgb(value: object): value is GetEtgbResponseResultEtgb; +export declare function GetEtgbResponseResultEtgbFromJSON(json: any): GetEtgbResponseResultEtgb; +export declare function GetEtgbResponseResultEtgbFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEtgbResponseResultEtgb; +export declare function GetEtgbResponseResultEtgbToJSON(value?: GetEtgbResponseResultEtgb | null): any; diff --git a/dist/models/GetEtgbResponseResultEtgb.js b/dist/models/GetEtgbResponseResultEtgb.js new file mode 100644 index 0000000..20b41fc --- /dev/null +++ b/dist/models/GetEtgbResponseResultEtgb.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetEtgbResponseResultEtgb = instanceOfGetEtgbResponseResultEtgb; +exports.GetEtgbResponseResultEtgbFromJSON = GetEtgbResponseResultEtgbFromJSON; +exports.GetEtgbResponseResultEtgbFromJSONTyped = GetEtgbResponseResultEtgbFromJSONTyped; +exports.GetEtgbResponseResultEtgbToJSON = GetEtgbResponseResultEtgbToJSON; +/** + * Check if a given object implements the GetEtgbResponseResultEtgb interface. + */ +function instanceOfGetEtgbResponseResultEtgb(value) { + return true; +} +function GetEtgbResponseResultEtgbFromJSON(json) { + return GetEtgbResponseResultEtgbFromJSONTyped(json, false); +} +function GetEtgbResponseResultEtgbFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'number': json['number'] == null ? undefined : json['number'], + 'date': json['date'] == null ? undefined : json['date'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +function GetEtgbResponseResultEtgbToJSON(value) { + if (value == null) { + return value; + } + return { + 'number': value['number'], + 'date': value['date'], + 'url': value['url'], + }; +} diff --git a/dist/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.d.ts b/dist/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.d.ts new file mode 100644 index 0000000..e43c36d --- /dev/null +++ b/dist/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetFBSRatingIndexInfoV1ResponseIndexDynamics + */ +export interface GetFBSRatingIndexInfoV1ResponseIndexDynamics { + /** + * Дата в формате `YYYY-MM-DD`. + * @type {string} + * @memberof GetFBSRatingIndexInfoV1ResponseIndexDynamics + */ + date?: string; + /** + * Значение индекса ошибок. + * @type {number} + * @memberof GetFBSRatingIndexInfoV1ResponseIndexDynamics + */ + index_by_date?: number; + /** + * Расходы на обработку ошибок. + * @type {number} + * @memberof GetFBSRatingIndexInfoV1ResponseIndexDynamics + */ + processing_costs_sum_by_date?: number; +} +/** + * Check if a given object implements the GetFBSRatingIndexInfoV1ResponseIndexDynamics interface. + */ +export declare function instanceOfGetFBSRatingIndexInfoV1ResponseIndexDynamics(value: object): value is GetFBSRatingIndexInfoV1ResponseIndexDynamics; +export declare function GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON(json: any): GetFBSRatingIndexInfoV1ResponseIndexDynamics; +export declare function GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFBSRatingIndexInfoV1ResponseIndexDynamics; +export declare function GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON(value?: GetFBSRatingIndexInfoV1ResponseIndexDynamics | null): any; diff --git a/dist/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.js b/dist/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.js new file mode 100644 index 0000000..6692cf6 --- /dev/null +++ b/dist/models/GetFBSRatingIndexInfoV1ResponseIndexDynamics.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFBSRatingIndexInfoV1ResponseIndexDynamics = instanceOfGetFBSRatingIndexInfoV1ResponseIndexDynamics; +exports.GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON = GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON; +exports.GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSONTyped = GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSONTyped; +exports.GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON = GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON; +/** + * Check if a given object implements the GetFBSRatingIndexInfoV1ResponseIndexDynamics interface. + */ +function instanceOfGetFBSRatingIndexInfoV1ResponseIndexDynamics(value) { + return true; +} +function GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON(json) { + return GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSONTyped(json, false); +} +function GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'index_by_date': json['index_by_date'] == null ? undefined : json['index_by_date'], + 'processing_costs_sum_by_date': json['processing_costs_sum_by_date'] == null ? undefined : json['processing_costs_sum_by_date'], + }; +} +function GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'index_by_date': value['index_by_date'], + 'processing_costs_sum_by_date': value['processing_costs_sum_by_date'], + }; +} diff --git a/dist/models/GetFinanceBalanceV1ResponseCashflows.d.ts b/dist/models/GetFinanceBalanceV1ResponseCashflows.d.ts new file mode 100644 index 0000000..fe7cdc4 --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseCashflows.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetFinanceBalanceV1ResponseReturns } from './GetFinanceBalanceV1ResponseReturns'; +import type { GetFinanceBalanceV1ResponseSales } from './GetFinanceBalanceV1ResponseSales'; +import type { GetFinanceBalanceV1ResponseService } from './GetFinanceBalanceV1ResponseService'; +/** + * Информация о доходах и расходах. + * @export + * @interface GetFinanceBalanceV1ResponseCashflows + */ +export interface GetFinanceBalanceV1ResponseCashflows { + /** + * + * @type {GetFinanceBalanceV1ResponseReturns} + * @memberof GetFinanceBalanceV1ResponseCashflows + */ + returns?: GetFinanceBalanceV1ResponseReturns; + /** + * + * @type {GetFinanceBalanceV1ResponseSales} + * @memberof GetFinanceBalanceV1ResponseCashflows + */ + sales?: GetFinanceBalanceV1ResponseSales; + /** + * Начисления за другие услуги. + * @type {Array} + * @memberof GetFinanceBalanceV1ResponseCashflows + */ + services?: Array; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseCashflows interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseCashflows(value: object): value is GetFinanceBalanceV1ResponseCashflows; +export declare function GetFinanceBalanceV1ResponseCashflowsFromJSON(json: any): GetFinanceBalanceV1ResponseCashflows; +export declare function GetFinanceBalanceV1ResponseCashflowsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseCashflows; +export declare function GetFinanceBalanceV1ResponseCashflowsToJSON(value?: GetFinanceBalanceV1ResponseCashflows | null): any; diff --git a/dist/models/GetFinanceBalanceV1ResponseCashflows.js b/dist/models/GetFinanceBalanceV1ResponseCashflows.js new file mode 100644 index 0000000..3925a5c --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseCashflows.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFinanceBalanceV1ResponseCashflows = instanceOfGetFinanceBalanceV1ResponseCashflows; +exports.GetFinanceBalanceV1ResponseCashflowsFromJSON = GetFinanceBalanceV1ResponseCashflowsFromJSON; +exports.GetFinanceBalanceV1ResponseCashflowsFromJSONTyped = GetFinanceBalanceV1ResponseCashflowsFromJSONTyped; +exports.GetFinanceBalanceV1ResponseCashflowsToJSON = GetFinanceBalanceV1ResponseCashflowsToJSON; +const GetFinanceBalanceV1ResponseReturns_1 = require("./GetFinanceBalanceV1ResponseReturns"); +const GetFinanceBalanceV1ResponseSales_1 = require("./GetFinanceBalanceV1ResponseSales"); +const GetFinanceBalanceV1ResponseService_1 = require("./GetFinanceBalanceV1ResponseService"); +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseCashflows interface. + */ +function instanceOfGetFinanceBalanceV1ResponseCashflows(value) { + return true; +} +function GetFinanceBalanceV1ResponseCashflowsFromJSON(json) { + return GetFinanceBalanceV1ResponseCashflowsFromJSONTyped(json, false); +} +function GetFinanceBalanceV1ResponseCashflowsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'returns': json['returns'] == null ? undefined : (0, GetFinanceBalanceV1ResponseReturns_1.GetFinanceBalanceV1ResponseReturnsFromJSON)(json['returns']), + 'sales': json['sales'] == null ? undefined : (0, GetFinanceBalanceV1ResponseSales_1.GetFinanceBalanceV1ResponseSalesFromJSON)(json['sales']), + 'services': json['services'] == null ? undefined : (json['services'].map(GetFinanceBalanceV1ResponseService_1.GetFinanceBalanceV1ResponseServiceFromJSON)), + }; +} +function GetFinanceBalanceV1ResponseCashflowsToJSON(value) { + if (value == null) { + return value; + } + return { + 'returns': (0, GetFinanceBalanceV1ResponseReturns_1.GetFinanceBalanceV1ResponseReturnsToJSON)(value['returns']), + 'sales': (0, GetFinanceBalanceV1ResponseSales_1.GetFinanceBalanceV1ResponseSalesToJSON)(value['sales']), + 'services': value['services'] == null ? undefined : (value['services'].map(GetFinanceBalanceV1ResponseService_1.GetFinanceBalanceV1ResponseServiceToJSON)), + }; +} diff --git a/dist/models/GetFinanceBalanceV1ResponseReturns.d.ts b/dist/models/GetFinanceBalanceV1ResponseReturns.d.ts new file mode 100644 index 0000000..a492c50 --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseReturns.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponseReturnsMoney } from './V1GetFinanceBalanceV1ResponseReturnsMoney'; +import type { V1GetFinanceBalanceV1ResponseFeeMoney } from './V1GetFinanceBalanceV1ResponseFeeMoney'; +import type { GetFinanceBalanceV1ResponseReturnsDetails } from './GetFinanceBalanceV1ResponseReturnsDetails'; +/** + * Начисления за возвраты. + * @export + * @interface GetFinanceBalanceV1ResponseReturns + */ +export interface GetFinanceBalanceV1ResponseReturns { + /** + * + * @type {V1GetFinanceBalanceV1ResponseReturnsMoney} + * @memberof GetFinanceBalanceV1ResponseReturns + */ + amount?: V1GetFinanceBalanceV1ResponseReturnsMoney; + /** + * + * @type {GetFinanceBalanceV1ResponseReturnsDetails} + * @memberof GetFinanceBalanceV1ResponseReturns + */ + amount_details?: GetFinanceBalanceV1ResponseReturnsDetails; + /** + * + * @type {V1GetFinanceBalanceV1ResponseFeeMoney} + * @memberof GetFinanceBalanceV1ResponseReturns + */ + fee?: V1GetFinanceBalanceV1ResponseFeeMoney; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseReturns interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseReturns(value: object): value is GetFinanceBalanceV1ResponseReturns; +export declare function GetFinanceBalanceV1ResponseReturnsFromJSON(json: any): GetFinanceBalanceV1ResponseReturns; +export declare function GetFinanceBalanceV1ResponseReturnsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseReturns; +export declare function GetFinanceBalanceV1ResponseReturnsToJSON(value?: GetFinanceBalanceV1ResponseReturns | null): any; diff --git a/dist/models/GetFinanceBalanceV1ResponseReturns.js b/dist/models/GetFinanceBalanceV1ResponseReturns.js new file mode 100644 index 0000000..0640b55 --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseReturns.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFinanceBalanceV1ResponseReturns = instanceOfGetFinanceBalanceV1ResponseReturns; +exports.GetFinanceBalanceV1ResponseReturnsFromJSON = GetFinanceBalanceV1ResponseReturnsFromJSON; +exports.GetFinanceBalanceV1ResponseReturnsFromJSONTyped = GetFinanceBalanceV1ResponseReturnsFromJSONTyped; +exports.GetFinanceBalanceV1ResponseReturnsToJSON = GetFinanceBalanceV1ResponseReturnsToJSON; +const V1GetFinanceBalanceV1ResponseReturnsMoney_1 = require("./V1GetFinanceBalanceV1ResponseReturnsMoney"); +const V1GetFinanceBalanceV1ResponseFeeMoney_1 = require("./V1GetFinanceBalanceV1ResponseFeeMoney"); +const GetFinanceBalanceV1ResponseReturnsDetails_1 = require("./GetFinanceBalanceV1ResponseReturnsDetails"); +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseReturns interface. + */ +function instanceOfGetFinanceBalanceV1ResponseReturns(value) { + return true; +} +function GetFinanceBalanceV1ResponseReturnsFromJSON(json) { + return GetFinanceBalanceV1ResponseReturnsFromJSONTyped(json, false); +} +function GetFinanceBalanceV1ResponseReturnsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseReturnsMoney_1.V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON)(json['amount']), + 'amount_details': json['amount_details'] == null ? undefined : (0, GetFinanceBalanceV1ResponseReturnsDetails_1.GetFinanceBalanceV1ResponseReturnsDetailsFromJSON)(json['amount_details']), + 'fee': json['fee'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseFeeMoney_1.V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON)(json['fee']), + }; +} +function GetFinanceBalanceV1ResponseReturnsToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': (0, V1GetFinanceBalanceV1ResponseReturnsMoney_1.V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON)(value['amount']), + 'amount_details': (0, GetFinanceBalanceV1ResponseReturnsDetails_1.GetFinanceBalanceV1ResponseReturnsDetailsToJSON)(value['amount_details']), + 'fee': (0, V1GetFinanceBalanceV1ResponseFeeMoney_1.V1GetFinanceBalanceV1ResponseFeeMoneyToJSON)(value['fee']), + }; +} diff --git a/dist/models/GetFinanceBalanceV1ResponseReturnsDetails.d.ts b/dist/models/GetFinanceBalanceV1ResponseReturnsDetails.d.ts new file mode 100644 index 0000000..07a3e8c --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseReturnsDetails.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponsePartnerMoney } from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +import type { V1GetFinanceBalanceV1ResponseRevenueMoney } from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +/** + * Детализация суммы возвратов. + * @export + * @interface GetFinanceBalanceV1ResponseReturnsDetails + */ +export interface GetFinanceBalanceV1ResponseReturnsDetails { + /** + * + * @type {V1GetFinanceBalanceV1ResponsePartnerMoney} + * @memberof GetFinanceBalanceV1ResponseReturnsDetails + */ + partner_programs?: V1GetFinanceBalanceV1ResponsePartnerMoney; + /** + * Баллы за скидки. + * @type {string} + * @memberof GetFinanceBalanceV1ResponseReturnsDetails + */ + points_for_discounts?: string; + /** + * + * @type {V1GetFinanceBalanceV1ResponseRevenueMoney} + * @memberof GetFinanceBalanceV1ResponseReturnsDetails + */ + revenue?: V1GetFinanceBalanceV1ResponseRevenueMoney; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseReturnsDetails interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseReturnsDetails(value: object): value is GetFinanceBalanceV1ResponseReturnsDetails; +export declare function GetFinanceBalanceV1ResponseReturnsDetailsFromJSON(json: any): GetFinanceBalanceV1ResponseReturnsDetails; +export declare function GetFinanceBalanceV1ResponseReturnsDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseReturnsDetails; +export declare function GetFinanceBalanceV1ResponseReturnsDetailsToJSON(value?: GetFinanceBalanceV1ResponseReturnsDetails | null): any; diff --git a/dist/models/GetFinanceBalanceV1ResponseReturnsDetails.js b/dist/models/GetFinanceBalanceV1ResponseReturnsDetails.js new file mode 100644 index 0000000..be34e47 --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseReturnsDetails.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFinanceBalanceV1ResponseReturnsDetails = instanceOfGetFinanceBalanceV1ResponseReturnsDetails; +exports.GetFinanceBalanceV1ResponseReturnsDetailsFromJSON = GetFinanceBalanceV1ResponseReturnsDetailsFromJSON; +exports.GetFinanceBalanceV1ResponseReturnsDetailsFromJSONTyped = GetFinanceBalanceV1ResponseReturnsDetailsFromJSONTyped; +exports.GetFinanceBalanceV1ResponseReturnsDetailsToJSON = GetFinanceBalanceV1ResponseReturnsDetailsToJSON; +const V1GetFinanceBalanceV1ResponsePartnerMoney_1 = require("./V1GetFinanceBalanceV1ResponsePartnerMoney"); +const V1GetFinanceBalanceV1ResponseRevenueMoney_1 = require("./V1GetFinanceBalanceV1ResponseRevenueMoney"); +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseReturnsDetails interface. + */ +function instanceOfGetFinanceBalanceV1ResponseReturnsDetails(value) { + return true; +} +function GetFinanceBalanceV1ResponseReturnsDetailsFromJSON(json) { + return GetFinanceBalanceV1ResponseReturnsDetailsFromJSONTyped(json, false); +} +function GetFinanceBalanceV1ResponseReturnsDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'partner_programs': json['partner_programs'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponsePartnerMoney_1.V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON)(json['partner_programs']), + 'points_for_discounts': json['points_for_discounts'] == null ? undefined : json['points_for_discounts'], + 'revenue': json['revenue'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseRevenueMoney_1.V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON)(json['revenue']), + }; +} +function GetFinanceBalanceV1ResponseReturnsDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'partner_programs': (0, V1GetFinanceBalanceV1ResponsePartnerMoney_1.V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON)(value['partner_programs']), + 'points_for_discounts': value['points_for_discounts'], + 'revenue': (0, V1GetFinanceBalanceV1ResponseRevenueMoney_1.V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON)(value['revenue']), + }; +} diff --git a/dist/models/GetFinanceBalanceV1ResponseSales.d.ts b/dist/models/GetFinanceBalanceV1ResponseSales.d.ts new file mode 100644 index 0000000..3fc444f --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseSales.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponseFeeMoney } from './V1GetFinanceBalanceV1ResponseFeeMoney'; +import type { GetFinanceBalanceV1ResponseSalesDetails } from './GetFinanceBalanceV1ResponseSalesDetails'; +import type { V1GetFinanceBalanceV1ResponseSalesMoney } from './V1GetFinanceBalanceV1ResponseSalesMoney'; +/** + * Начисления за продажи. + * @export + * @interface GetFinanceBalanceV1ResponseSales + */ +export interface GetFinanceBalanceV1ResponseSales { + /** + * + * @type {V1GetFinanceBalanceV1ResponseSalesMoney} + * @memberof GetFinanceBalanceV1ResponseSales + */ + amount?: V1GetFinanceBalanceV1ResponseSalesMoney; + /** + * + * @type {GetFinanceBalanceV1ResponseSalesDetails} + * @memberof GetFinanceBalanceV1ResponseSales + */ + amount_details?: GetFinanceBalanceV1ResponseSalesDetails; + /** + * + * @type {V1GetFinanceBalanceV1ResponseFeeMoney} + * @memberof GetFinanceBalanceV1ResponseSales + */ + fee?: V1GetFinanceBalanceV1ResponseFeeMoney; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseSales interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseSales(value: object): value is GetFinanceBalanceV1ResponseSales; +export declare function GetFinanceBalanceV1ResponseSalesFromJSON(json: any): GetFinanceBalanceV1ResponseSales; +export declare function GetFinanceBalanceV1ResponseSalesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseSales; +export declare function GetFinanceBalanceV1ResponseSalesToJSON(value?: GetFinanceBalanceV1ResponseSales | null): any; diff --git a/dist/models/GetFinanceBalanceV1ResponseSales.js b/dist/models/GetFinanceBalanceV1ResponseSales.js new file mode 100644 index 0000000..adaa400 --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseSales.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFinanceBalanceV1ResponseSales = instanceOfGetFinanceBalanceV1ResponseSales; +exports.GetFinanceBalanceV1ResponseSalesFromJSON = GetFinanceBalanceV1ResponseSalesFromJSON; +exports.GetFinanceBalanceV1ResponseSalesFromJSONTyped = GetFinanceBalanceV1ResponseSalesFromJSONTyped; +exports.GetFinanceBalanceV1ResponseSalesToJSON = GetFinanceBalanceV1ResponseSalesToJSON; +const V1GetFinanceBalanceV1ResponseFeeMoney_1 = require("./V1GetFinanceBalanceV1ResponseFeeMoney"); +const GetFinanceBalanceV1ResponseSalesDetails_1 = require("./GetFinanceBalanceV1ResponseSalesDetails"); +const V1GetFinanceBalanceV1ResponseSalesMoney_1 = require("./V1GetFinanceBalanceV1ResponseSalesMoney"); +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseSales interface. + */ +function instanceOfGetFinanceBalanceV1ResponseSales(value) { + return true; +} +function GetFinanceBalanceV1ResponseSalesFromJSON(json) { + return GetFinanceBalanceV1ResponseSalesFromJSONTyped(json, false); +} +function GetFinanceBalanceV1ResponseSalesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseSalesMoney_1.V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON)(json['amount']), + 'amount_details': json['amount_details'] == null ? undefined : (0, GetFinanceBalanceV1ResponseSalesDetails_1.GetFinanceBalanceV1ResponseSalesDetailsFromJSON)(json['amount_details']), + 'fee': json['fee'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseFeeMoney_1.V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON)(json['fee']), + }; +} +function GetFinanceBalanceV1ResponseSalesToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': (0, V1GetFinanceBalanceV1ResponseSalesMoney_1.V1GetFinanceBalanceV1ResponseSalesMoneyToJSON)(value['amount']), + 'amount_details': (0, GetFinanceBalanceV1ResponseSalesDetails_1.GetFinanceBalanceV1ResponseSalesDetailsToJSON)(value['amount_details']), + 'fee': (0, V1GetFinanceBalanceV1ResponseFeeMoney_1.V1GetFinanceBalanceV1ResponseFeeMoneyToJSON)(value['fee']), + }; +} diff --git a/dist/models/GetFinanceBalanceV1ResponseSalesDetails.d.ts b/dist/models/GetFinanceBalanceV1ResponseSalesDetails.d.ts new file mode 100644 index 0000000..a498863 --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseSalesDetails.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponsePartnerMoney } from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +import type { V1GetFinanceBalanceV1ResponseRevenueMoney } from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +/** + * Детализация суммы продаж. + * @export + * @interface GetFinanceBalanceV1ResponseSalesDetails + */ +export interface GetFinanceBalanceV1ResponseSalesDetails { + /** + * + * @type {V1GetFinanceBalanceV1ResponsePartnerMoney} + * @memberof GetFinanceBalanceV1ResponseSalesDetails + */ + partner_programs?: V1GetFinanceBalanceV1ResponsePartnerMoney; + /** + * Баллы за скидки. + * @type {string} + * @memberof GetFinanceBalanceV1ResponseSalesDetails + */ + points_for_discounts?: string; + /** + * + * @type {V1GetFinanceBalanceV1ResponseRevenueMoney} + * @memberof GetFinanceBalanceV1ResponseSalesDetails + */ + revenue?: V1GetFinanceBalanceV1ResponseRevenueMoney; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseSalesDetails interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseSalesDetails(value: object): value is GetFinanceBalanceV1ResponseSalesDetails; +export declare function GetFinanceBalanceV1ResponseSalesDetailsFromJSON(json: any): GetFinanceBalanceV1ResponseSalesDetails; +export declare function GetFinanceBalanceV1ResponseSalesDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseSalesDetails; +export declare function GetFinanceBalanceV1ResponseSalesDetailsToJSON(value?: GetFinanceBalanceV1ResponseSalesDetails | null): any; diff --git a/dist/models/GetFinanceBalanceV1ResponseSalesDetails.js b/dist/models/GetFinanceBalanceV1ResponseSalesDetails.js new file mode 100644 index 0000000..7c7f11c --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseSalesDetails.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFinanceBalanceV1ResponseSalesDetails = instanceOfGetFinanceBalanceV1ResponseSalesDetails; +exports.GetFinanceBalanceV1ResponseSalesDetailsFromJSON = GetFinanceBalanceV1ResponseSalesDetailsFromJSON; +exports.GetFinanceBalanceV1ResponseSalesDetailsFromJSONTyped = GetFinanceBalanceV1ResponseSalesDetailsFromJSONTyped; +exports.GetFinanceBalanceV1ResponseSalesDetailsToJSON = GetFinanceBalanceV1ResponseSalesDetailsToJSON; +const V1GetFinanceBalanceV1ResponsePartnerMoney_1 = require("./V1GetFinanceBalanceV1ResponsePartnerMoney"); +const V1GetFinanceBalanceV1ResponseRevenueMoney_1 = require("./V1GetFinanceBalanceV1ResponseRevenueMoney"); +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseSalesDetails interface. + */ +function instanceOfGetFinanceBalanceV1ResponseSalesDetails(value) { + return true; +} +function GetFinanceBalanceV1ResponseSalesDetailsFromJSON(json) { + return GetFinanceBalanceV1ResponseSalesDetailsFromJSONTyped(json, false); +} +function GetFinanceBalanceV1ResponseSalesDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'partner_programs': json['partner_programs'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponsePartnerMoney_1.V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON)(json['partner_programs']), + 'points_for_discounts': json['points_for_discounts'] == null ? undefined : json['points_for_discounts'], + 'revenue': json['revenue'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseRevenueMoney_1.V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON)(json['revenue']), + }; +} +function GetFinanceBalanceV1ResponseSalesDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'partner_programs': (0, V1GetFinanceBalanceV1ResponsePartnerMoney_1.V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON)(value['partner_programs']), + 'points_for_discounts': value['points_for_discounts'], + 'revenue': (0, V1GetFinanceBalanceV1ResponseRevenueMoney_1.V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON)(value['revenue']), + }; +} diff --git a/dist/models/GetFinanceBalanceV1ResponseService.d.ts b/dist/models/GetFinanceBalanceV1ResponseService.d.ts new file mode 100644 index 0000000..3e9563f --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseService.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponseServicesMoney } from './V1GetFinanceBalanceV1ResponseServicesMoney'; +/** + * + * @export + * @interface GetFinanceBalanceV1ResponseService + */ +export interface GetFinanceBalanceV1ResponseService { + /** + * + * @type {V1GetFinanceBalanceV1ResponseServicesMoney} + * @memberof GetFinanceBalanceV1ResponseService + */ + amount?: V1GetFinanceBalanceV1ResponseServicesMoney; + /** + * Cистемное название услуги. + * @type {string} + * @memberof GetFinanceBalanceV1ResponseService + */ + name?: string; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseService interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseService(value: object): value is GetFinanceBalanceV1ResponseService; +export declare function GetFinanceBalanceV1ResponseServiceFromJSON(json: any): GetFinanceBalanceV1ResponseService; +export declare function GetFinanceBalanceV1ResponseServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseService; +export declare function GetFinanceBalanceV1ResponseServiceToJSON(value?: GetFinanceBalanceV1ResponseService | null): any; diff --git a/dist/models/GetFinanceBalanceV1ResponseService.js b/dist/models/GetFinanceBalanceV1ResponseService.js new file mode 100644 index 0000000..26274f2 --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseService.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFinanceBalanceV1ResponseService = instanceOfGetFinanceBalanceV1ResponseService; +exports.GetFinanceBalanceV1ResponseServiceFromJSON = GetFinanceBalanceV1ResponseServiceFromJSON; +exports.GetFinanceBalanceV1ResponseServiceFromJSONTyped = GetFinanceBalanceV1ResponseServiceFromJSONTyped; +exports.GetFinanceBalanceV1ResponseServiceToJSON = GetFinanceBalanceV1ResponseServiceToJSON; +const V1GetFinanceBalanceV1ResponseServicesMoney_1 = require("./V1GetFinanceBalanceV1ResponseServicesMoney"); +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseService interface. + */ +function instanceOfGetFinanceBalanceV1ResponseService(value) { + return true; +} +function GetFinanceBalanceV1ResponseServiceFromJSON(json) { + return GetFinanceBalanceV1ResponseServiceFromJSONTyped(json, false); +} +function GetFinanceBalanceV1ResponseServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseServicesMoney_1.V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON)(json['amount']), + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function GetFinanceBalanceV1ResponseServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': (0, V1GetFinanceBalanceV1ResponseServicesMoney_1.V1GetFinanceBalanceV1ResponseServicesMoneyToJSON)(value['amount']), + 'name': value['name'], + }; +} diff --git a/dist/models/GetFinanceBalanceV1ResponseTotal.d.ts b/dist/models/GetFinanceBalanceV1ResponseTotal.d.ts new file mode 100644 index 0000000..5f95854 --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseTotal.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetFinanceBalanceV1ResponseAccruedMoney } from './V1GetFinanceBalanceV1ResponseAccruedMoney'; +import type { V1GetFinanceBalanceV1ResponseOpeningBalanceMoney } from './V1GetFinanceBalanceV1ResponseOpeningBalanceMoney'; +import type { V1GetFinanceBalanceV1ResponsePaymentsMoney } from './V1GetFinanceBalanceV1ResponsePaymentsMoney'; +import type { V1GetFinanceBalanceV1ResponseClosingBalanceMoney } from './V1GetFinanceBalanceV1ResponseClosingBalanceMoney'; +/** + * Общие данные по балансу за период. + * @export + * @interface GetFinanceBalanceV1ResponseTotal + */ +export interface GetFinanceBalanceV1ResponseTotal { + /** + * + * @type {V1GetFinanceBalanceV1ResponseAccruedMoney} + * @memberof GetFinanceBalanceV1ResponseTotal + */ + accrued?: V1GetFinanceBalanceV1ResponseAccruedMoney; + /** + * + * @type {V1GetFinanceBalanceV1ResponseClosingBalanceMoney} + * @memberof GetFinanceBalanceV1ResponseTotal + */ + closing_balance?: V1GetFinanceBalanceV1ResponseClosingBalanceMoney; + /** + * + * @type {V1GetFinanceBalanceV1ResponseOpeningBalanceMoney} + * @memberof GetFinanceBalanceV1ResponseTotal + */ + opening_balance?: V1GetFinanceBalanceV1ResponseOpeningBalanceMoney; + /** + * Выплаты за период. + * @type {Array} + * @memberof GetFinanceBalanceV1ResponseTotal + */ + payments?: Array; +} +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseTotal interface. + */ +export declare function instanceOfGetFinanceBalanceV1ResponseTotal(value: object): value is GetFinanceBalanceV1ResponseTotal; +export declare function GetFinanceBalanceV1ResponseTotalFromJSON(json: any): GetFinanceBalanceV1ResponseTotal; +export declare function GetFinanceBalanceV1ResponseTotalFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceBalanceV1ResponseTotal; +export declare function GetFinanceBalanceV1ResponseTotalToJSON(value?: GetFinanceBalanceV1ResponseTotal | null): any; diff --git a/dist/models/GetFinanceBalanceV1ResponseTotal.js b/dist/models/GetFinanceBalanceV1ResponseTotal.js new file mode 100644 index 0000000..fb9044e --- /dev/null +++ b/dist/models/GetFinanceBalanceV1ResponseTotal.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFinanceBalanceV1ResponseTotal = instanceOfGetFinanceBalanceV1ResponseTotal; +exports.GetFinanceBalanceV1ResponseTotalFromJSON = GetFinanceBalanceV1ResponseTotalFromJSON; +exports.GetFinanceBalanceV1ResponseTotalFromJSONTyped = GetFinanceBalanceV1ResponseTotalFromJSONTyped; +exports.GetFinanceBalanceV1ResponseTotalToJSON = GetFinanceBalanceV1ResponseTotalToJSON; +const V1GetFinanceBalanceV1ResponseAccruedMoney_1 = require("./V1GetFinanceBalanceV1ResponseAccruedMoney"); +const V1GetFinanceBalanceV1ResponseOpeningBalanceMoney_1 = require("./V1GetFinanceBalanceV1ResponseOpeningBalanceMoney"); +const V1GetFinanceBalanceV1ResponsePaymentsMoney_1 = require("./V1GetFinanceBalanceV1ResponsePaymentsMoney"); +const V1GetFinanceBalanceV1ResponseClosingBalanceMoney_1 = require("./V1GetFinanceBalanceV1ResponseClosingBalanceMoney"); +/** + * Check if a given object implements the GetFinanceBalanceV1ResponseTotal interface. + */ +function instanceOfGetFinanceBalanceV1ResponseTotal(value) { + return true; +} +function GetFinanceBalanceV1ResponseTotalFromJSON(json) { + return GetFinanceBalanceV1ResponseTotalFromJSONTyped(json, false); +} +function GetFinanceBalanceV1ResponseTotalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accrued': json['accrued'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseAccruedMoney_1.V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON)(json['accrued']), + 'closing_balance': json['closing_balance'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseClosingBalanceMoney_1.V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON)(json['closing_balance']), + 'opening_balance': json['opening_balance'] == null ? undefined : (0, V1GetFinanceBalanceV1ResponseOpeningBalanceMoney_1.V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON)(json['opening_balance']), + 'payments': json['payments'] == null ? undefined : (json['payments'].map(V1GetFinanceBalanceV1ResponsePaymentsMoney_1.V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON)), + }; +} +function GetFinanceBalanceV1ResponseTotalToJSON(value) { + if (value == null) { + return value; + } + return { + 'accrued': (0, V1GetFinanceBalanceV1ResponseAccruedMoney_1.V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON)(value['accrued']), + 'closing_balance': (0, V1GetFinanceBalanceV1ResponseClosingBalanceMoney_1.V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON)(value['closing_balance']), + 'opening_balance': (0, V1GetFinanceBalanceV1ResponseOpeningBalanceMoney_1.V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON)(value['opening_balance']), + 'payments': value['payments'] == null ? undefined : (value['payments'].map(V1GetFinanceBalanceV1ResponsePaymentsMoney_1.V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON)), + }; +} diff --git a/dist/models/GetFinanceProductsBuyoutResponseProduct.d.ts b/dist/models/GetFinanceProductsBuyoutResponseProduct.d.ts new file mode 100644 index 0000000..cae2a45 --- /dev/null +++ b/dist/models/GetFinanceProductsBuyoutResponseProduct.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetFinanceProductsBuyoutResponseProduct + */ +export interface GetFinanceProductsBuyoutResponseProduct { + /** + * Сумма к начислению. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + amount?: number; + /** + * Цена выкупа товара с НДС. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + buyout_price?: number; + /** + * Скидка по категории в процентах. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + deduction_by_category_percent?: number; + /** + * Название товара. + * @type {string} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + offer_id?: string; + /** + * Номер отправления. + * @type {string} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + posting_number?: string; + /** + * Количество товара. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + quantity?: number; + /** + * Цена продавца с учётом скидки. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + seller_price_per_instance?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + sku?: number; + /** + * Ставка НДС для товара в процентах. + * @type {number} + * @memberof GetFinanceProductsBuyoutResponseProduct + */ + vat_percent?: number; +} +/** + * Check if a given object implements the GetFinanceProductsBuyoutResponseProduct interface. + */ +export declare function instanceOfGetFinanceProductsBuyoutResponseProduct(value: object): value is GetFinanceProductsBuyoutResponseProduct; +export declare function GetFinanceProductsBuyoutResponseProductFromJSON(json: any): GetFinanceProductsBuyoutResponseProduct; +export declare function GetFinanceProductsBuyoutResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFinanceProductsBuyoutResponseProduct; +export declare function GetFinanceProductsBuyoutResponseProductToJSON(value?: GetFinanceProductsBuyoutResponseProduct | null): any; diff --git a/dist/models/GetFinanceProductsBuyoutResponseProduct.js b/dist/models/GetFinanceProductsBuyoutResponseProduct.js new file mode 100644 index 0000000..f268842 --- /dev/null +++ b/dist/models/GetFinanceProductsBuyoutResponseProduct.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetFinanceProductsBuyoutResponseProduct = instanceOfGetFinanceProductsBuyoutResponseProduct; +exports.GetFinanceProductsBuyoutResponseProductFromJSON = GetFinanceProductsBuyoutResponseProductFromJSON; +exports.GetFinanceProductsBuyoutResponseProductFromJSONTyped = GetFinanceProductsBuyoutResponseProductFromJSONTyped; +exports.GetFinanceProductsBuyoutResponseProductToJSON = GetFinanceProductsBuyoutResponseProductToJSON; +/** + * Check if a given object implements the GetFinanceProductsBuyoutResponseProduct interface. + */ +function instanceOfGetFinanceProductsBuyoutResponseProduct(value) { + return true; +} +function GetFinanceProductsBuyoutResponseProductFromJSON(json) { + return GetFinanceProductsBuyoutResponseProductFromJSONTyped(json, false); +} +function GetFinanceProductsBuyoutResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'buyout_price': json['buyout_price'] == null ? undefined : json['buyout_price'], + 'deduction_by_category_percent': json['deduction_by_category_percent'] == null ? undefined : json['deduction_by_category_percent'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'seller_price_per_instance': json['seller_price_per_instance'] == null ? undefined : json['seller_price_per_instance'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'vat_percent': json['vat_percent'] == null ? undefined : json['vat_percent'], + }; +} +function GetFinanceProductsBuyoutResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'buyout_price': value['buyout_price'], + 'deduction_by_category_percent': value['deduction_by_category_percent'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'posting_number': value['posting_number'], + 'quantity': value['quantity'], + 'seller_price_per_instance': value['seller_price_per_instance'], + 'sku': value['sku'], + 'vat_percent': value['vat_percent'], + }; +} diff --git a/dist/models/GetImportProductsInfoResponseResultItem.d.ts b/dist/models/GetImportProductsInfoResponseResultItem.d.ts new file mode 100644 index 0000000..cad92ef --- /dev/null +++ b/dist/models/GetImportProductsInfoResponseResultItem.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ItemError } from './V1ItemError'; +/** + * + * @export + * @interface GetImportProductsInfoResponseResultItem + */ +export interface GetImportProductsInfoResponseResultItem { + /** + * Идентификатор товара в системе продавца — артикул. + * + * Максимальная длина строки в значении поля — 50 символов. + * + * @type {string} + * @memberof GetImportProductsInfoResponseResultItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof GetImportProductsInfoResponseResultItem + */ + product_id?: number; + /** + * Статус создания или обновления товара. Информация о товаре обрабатывается очередями. + * Возможные значения параметра: + * - `pending` — товар в очереди на обработку; + * - `imported` — товар успешно загружен; + * - `failed` — товар загружен с ошибками; + * - `skipped` — товар не был обновлен, так как запрос не содержал изменений. + * + * @type {string} + * @memberof GetImportProductsInfoResponseResultItem + */ + status?: string; + /** + * Массив ошибок. + * @type {Array} + * @memberof GetImportProductsInfoResponseResultItem + */ + errors?: Array; +} +/** + * Check if a given object implements the GetImportProductsInfoResponseResultItem interface. + */ +export declare function instanceOfGetImportProductsInfoResponseResultItem(value: object): value is GetImportProductsInfoResponseResultItem; +export declare function GetImportProductsInfoResponseResultItemFromJSON(json: any): GetImportProductsInfoResponseResultItem; +export declare function GetImportProductsInfoResponseResultItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetImportProductsInfoResponseResultItem; +export declare function GetImportProductsInfoResponseResultItemToJSON(value?: GetImportProductsInfoResponseResultItem | null): any; diff --git a/dist/models/GetImportProductsInfoResponseResultItem.js b/dist/models/GetImportProductsInfoResponseResultItem.js new file mode 100644 index 0000000..6fc2b2b --- /dev/null +++ b/dist/models/GetImportProductsInfoResponseResultItem.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetImportProductsInfoResponseResultItem = instanceOfGetImportProductsInfoResponseResultItem; +exports.GetImportProductsInfoResponseResultItemFromJSON = GetImportProductsInfoResponseResultItemFromJSON; +exports.GetImportProductsInfoResponseResultItemFromJSONTyped = GetImportProductsInfoResponseResultItemFromJSONTyped; +exports.GetImportProductsInfoResponseResultItemToJSON = GetImportProductsInfoResponseResultItemToJSON; +const V1ItemError_1 = require("./V1ItemError"); +/** + * Check if a given object implements the GetImportProductsInfoResponseResultItem interface. + */ +function instanceOfGetImportProductsInfoResponseResultItem(value) { + return true; +} +function GetImportProductsInfoResponseResultItemFromJSON(json) { + return GetImportProductsInfoResponseResultItemFromJSONTyped(json, false); +} +function GetImportProductsInfoResponseResultItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'status': json['status'] == null ? undefined : json['status'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1ItemError_1.V1ItemErrorFromJSON)), + }; +} +function GetImportProductsInfoResponseResultItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'status': value['status'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1ItemError_1.V1ItemErrorToJSON)), + }; +} diff --git a/dist/models/GetProductAttributesResponseImage.d.ts b/dist/models/GetProductAttributesResponseImage.d.ts new file mode 100644 index 0000000..bf6d6ff --- /dev/null +++ b/dist/models/GetProductAttributesResponseImage.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductAttributesResponseImage + */ +export interface GetProductAttributesResponseImage { + /** + * `true`, если изображение главное и отображается первым на карточке товара. + * + * @type {boolean} + * @memberof GetProductAttributesResponseImage + */ + _default?: boolean; + /** + * + * @type {string} + * @memberof GetProductAttributesResponseImage + */ + file_name?: string; + /** + * + * @type {number} + * @memberof GetProductAttributesResponseImage + */ + index?: number; +} +/** + * Check if a given object implements the GetProductAttributesResponseImage interface. + */ +export declare function instanceOfGetProductAttributesResponseImage(value: object): value is GetProductAttributesResponseImage; +export declare function GetProductAttributesResponseImageFromJSON(json: any): GetProductAttributesResponseImage; +export declare function GetProductAttributesResponseImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductAttributesResponseImage; +export declare function GetProductAttributesResponseImageToJSON(value?: GetProductAttributesResponseImage | null): any; diff --git a/dist/models/GetProductAttributesResponseImage.js b/dist/models/GetProductAttributesResponseImage.js new file mode 100644 index 0000000..ac02bc0 --- /dev/null +++ b/dist/models/GetProductAttributesResponseImage.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductAttributesResponseImage = instanceOfGetProductAttributesResponseImage; +exports.GetProductAttributesResponseImageFromJSON = GetProductAttributesResponseImageFromJSON; +exports.GetProductAttributesResponseImageFromJSONTyped = GetProductAttributesResponseImageFromJSONTyped; +exports.GetProductAttributesResponseImageToJSON = GetProductAttributesResponseImageToJSON; +/** + * Check if a given object implements the GetProductAttributesResponseImage interface. + */ +function instanceOfGetProductAttributesResponseImage(value) { + return true; +} +function GetProductAttributesResponseImageFromJSON(json) { + return GetProductAttributesResponseImageFromJSONTyped(json, false); +} +function GetProductAttributesResponseImageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + '_default': json['default'] == null ? undefined : json['default'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'index': json['index'] == null ? undefined : json['index'], + }; +} +function GetProductAttributesResponseImageToJSON(value) { + if (value == null) { + return value; + } + return { + 'default': value['_default'], + 'file_name': value['file_name'], + 'index': value['index'], + }; +} diff --git a/dist/models/GetProductAttributesV3ResponseDictionaryValue.d.ts b/dist/models/GetProductAttributesV3ResponseDictionaryValue.d.ts new file mode 100644 index 0000000..307f975 --- /dev/null +++ b/dist/models/GetProductAttributesV3ResponseDictionaryValue.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductAttributesV3ResponseDictionaryValue + */ +export interface GetProductAttributesV3ResponseDictionaryValue { + /** + * Идентификатор характеристики в словаре. + * @type {number} + * @memberof GetProductAttributesV3ResponseDictionaryValue + */ + dictionaryValueId?: number; + /** + * Значение характеристики товара. + * @type {string} + * @memberof GetProductAttributesV3ResponseDictionaryValue + */ + value?: string; +} +/** + * Check if a given object implements the GetProductAttributesV3ResponseDictionaryValue interface. + */ +export declare function instanceOfGetProductAttributesV3ResponseDictionaryValue(value: object): value is GetProductAttributesV3ResponseDictionaryValue; +export declare function GetProductAttributesV3ResponseDictionaryValueFromJSON(json: any): GetProductAttributesV3ResponseDictionaryValue; +export declare function GetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductAttributesV3ResponseDictionaryValue; +export declare function GetProductAttributesV3ResponseDictionaryValueToJSON(value?: GetProductAttributesV3ResponseDictionaryValue | null): any; diff --git a/dist/models/GetProductAttributesV3ResponseDictionaryValue.js b/dist/models/GetProductAttributesV3ResponseDictionaryValue.js new file mode 100644 index 0000000..de50a18 --- /dev/null +++ b/dist/models/GetProductAttributesV3ResponseDictionaryValue.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductAttributesV3ResponseDictionaryValue = instanceOfGetProductAttributesV3ResponseDictionaryValue; +exports.GetProductAttributesV3ResponseDictionaryValueFromJSON = GetProductAttributesV3ResponseDictionaryValueFromJSON; +exports.GetProductAttributesV3ResponseDictionaryValueFromJSONTyped = GetProductAttributesV3ResponseDictionaryValueFromJSONTyped; +exports.GetProductAttributesV3ResponseDictionaryValueToJSON = GetProductAttributesV3ResponseDictionaryValueToJSON; +/** + * Check if a given object implements the GetProductAttributesV3ResponseDictionaryValue interface. + */ +function instanceOfGetProductAttributesV3ResponseDictionaryValue(value) { + return true; +} +function GetProductAttributesV3ResponseDictionaryValueFromJSON(json) { + return GetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json, false); +} +function GetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dictionaryValueId': json['dictionaryValueId'] == null ? undefined : json['dictionaryValueId'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function GetProductAttributesV3ResponseDictionaryValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'dictionaryValueId': value['dictionaryValueId'], + 'value': value['value'], + }; +} diff --git a/dist/models/GetProductAttributesV4ResponseAttribute.d.ts b/dist/models/GetProductAttributesV4ResponseAttribute.d.ts new file mode 100644 index 0000000..211a483 --- /dev/null +++ b/dist/models/GetProductAttributesV4ResponseAttribute.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductAttributesV3ResponseDictionaryValue } from './GetProductAttributesV3ResponseDictionaryValue'; +/** + * + * @export + * @interface GetProductAttributesV4ResponseAttribute + */ +export interface GetProductAttributesV4ResponseAttribute { + /** + * Идентификатор характеристики. + * @type {number} + * @memberof GetProductAttributesV4ResponseAttribute + */ + id?: number; + /** + * Идентификатор характеристики, которая поддерживает вложенные свойства. Например, у характеристики «Процессор» есть вложенные характеристики «Производитель» и «L2 Cache». У каждой из вложенных характеристик может быть несколько вариантов значений. + * @type {number} + * @memberof GetProductAttributesV4ResponseAttribute + */ + complex_id?: number; + /** + * Массив значений характеристик. + * @type {Array} + * @memberof GetProductAttributesV4ResponseAttribute + */ + values?: Array; +} +/** + * Check if a given object implements the GetProductAttributesV4ResponseAttribute interface. + */ +export declare function instanceOfGetProductAttributesV4ResponseAttribute(value: object): value is GetProductAttributesV4ResponseAttribute; +export declare function GetProductAttributesV4ResponseAttributeFromJSON(json: any): GetProductAttributesV4ResponseAttribute; +export declare function GetProductAttributesV4ResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductAttributesV4ResponseAttribute; +export declare function GetProductAttributesV4ResponseAttributeToJSON(value?: GetProductAttributesV4ResponseAttribute | null): any; diff --git a/dist/models/GetProductAttributesV4ResponseAttribute.js b/dist/models/GetProductAttributesV4ResponseAttribute.js new file mode 100644 index 0000000..251be88 --- /dev/null +++ b/dist/models/GetProductAttributesV4ResponseAttribute.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductAttributesV4ResponseAttribute = instanceOfGetProductAttributesV4ResponseAttribute; +exports.GetProductAttributesV4ResponseAttributeFromJSON = GetProductAttributesV4ResponseAttributeFromJSON; +exports.GetProductAttributesV4ResponseAttributeFromJSONTyped = GetProductAttributesV4ResponseAttributeFromJSONTyped; +exports.GetProductAttributesV4ResponseAttributeToJSON = GetProductAttributesV4ResponseAttributeToJSON; +const GetProductAttributesV3ResponseDictionaryValue_1 = require("./GetProductAttributesV3ResponseDictionaryValue"); +/** + * Check if a given object implements the GetProductAttributesV4ResponseAttribute interface. + */ +function instanceOfGetProductAttributesV4ResponseAttribute(value) { + return true; +} +function GetProductAttributesV4ResponseAttributeFromJSON(json) { + return GetProductAttributesV4ResponseAttributeFromJSONTyped(json, false); +} +function GetProductAttributesV4ResponseAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'complex_id': json['complex_id'] == null ? undefined : json['complex_id'], + 'values': json['values'] == null ? undefined : (json['values'].map(GetProductAttributesV3ResponseDictionaryValue_1.GetProductAttributesV3ResponseDictionaryValueFromJSON)), + }; +} +function GetProductAttributesV4ResponseAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'complex_id': value['complex_id'], + 'values': value['values'] == null ? undefined : (value['values'].map(GetProductAttributesV3ResponseDictionaryValue_1.GetProductAttributesV3ResponseDictionaryValueToJSON)), + }; +} diff --git a/dist/models/GetProductInfoListResponseAvailability.d.ts b/dist/models/GetProductInfoListResponseAvailability.d.ts new file mode 100644 index 0000000..4c71d37 --- /dev/null +++ b/dist/models/GetProductInfoListResponseAvailability.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AvailabilityReason } from './AvailabilityReason'; +/** + * + * @export + * @interface GetProductInfoListResponseAvailability + */ +export interface GetProductInfoListResponseAvailability { + /** + * Доступность товара. + * @type {string} + * @memberof GetProductInfoListResponseAvailability + */ + availability?: string; + /** + * Причина, почему товар скрыт. + * @type {Array} + * @memberof GetProductInfoListResponseAvailability + */ + reasons?: Array; + /** + * Идентификатор товара. + * @type {number} + * @memberof GetProductInfoListResponseAvailability + */ + sku?: number; + /** + * Ссылка на источник. + * @type {string} + * @memberof GetProductInfoListResponseAvailability + */ + source?: string; +} +/** + * Check if a given object implements the GetProductInfoListResponseAvailability interface. + */ +export declare function instanceOfGetProductInfoListResponseAvailability(value: object): value is GetProductInfoListResponseAvailability; +export declare function GetProductInfoListResponseAvailabilityFromJSON(json: any): GetProductInfoListResponseAvailability; +export declare function GetProductInfoListResponseAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseAvailability; +export declare function GetProductInfoListResponseAvailabilityToJSON(value?: GetProductInfoListResponseAvailability | null): any; diff --git a/dist/models/GetProductInfoListResponseAvailability.js b/dist/models/GetProductInfoListResponseAvailability.js new file mode 100644 index 0000000..bc49bda --- /dev/null +++ b/dist/models/GetProductInfoListResponseAvailability.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseAvailability = instanceOfGetProductInfoListResponseAvailability; +exports.GetProductInfoListResponseAvailabilityFromJSON = GetProductInfoListResponseAvailabilityFromJSON; +exports.GetProductInfoListResponseAvailabilityFromJSONTyped = GetProductInfoListResponseAvailabilityFromJSONTyped; +exports.GetProductInfoListResponseAvailabilityToJSON = GetProductInfoListResponseAvailabilityToJSON; +const AvailabilityReason_1 = require("./AvailabilityReason"); +/** + * Check if a given object implements the GetProductInfoListResponseAvailability interface. + */ +function instanceOfGetProductInfoListResponseAvailability(value) { + return true; +} +function GetProductInfoListResponseAvailabilityFromJSON(json) { + return GetProductInfoListResponseAvailabilityFromJSONTyped(json, false); +} +function GetProductInfoListResponseAvailabilityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'availability': json['availability'] == null ? undefined : json['availability'], + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(AvailabilityReason_1.AvailabilityReasonFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'source': json['source'] == null ? undefined : json['source'], + }; +} +function GetProductInfoListResponseAvailabilityToJSON(value) { + if (value == null) { + return value; + } + return { + 'availability': value['availability'], + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(AvailabilityReason_1.AvailabilityReasonToJSON)), + 'sku': value['sku'], + 'source': value['source'], + }; +} diff --git a/dist/models/GetProductInfoListResponseCommission.d.ts b/dist/models/GetProductInfoListResponseCommission.d.ts new file mode 100644 index 0000000..18af865 --- /dev/null +++ b/dist/models/GetProductInfoListResponseCommission.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductInfoListResponseCommission + */ +export interface GetProductInfoListResponseCommission { + /** + * Стоимость доставки. + * @type {number} + * @memberof GetProductInfoListResponseCommission + */ + delivery_amount?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof GetProductInfoListResponseCommission + */ + percent?: number; + /** + * Стоимость возврата. + * @type {number} + * @memberof GetProductInfoListResponseCommission + */ + return_amount?: number; + /** + * Схема продажи. + * @type {string} + * @memberof GetProductInfoListResponseCommission + */ + sale_schema?: string; + /** + * Сумма комиссии. + * @type {number} + * @memberof GetProductInfoListResponseCommission + */ + value?: number; +} +/** + * Check if a given object implements the GetProductInfoListResponseCommission interface. + */ +export declare function instanceOfGetProductInfoListResponseCommission(value: object): value is GetProductInfoListResponseCommission; +export declare function GetProductInfoListResponseCommissionFromJSON(json: any): GetProductInfoListResponseCommission; +export declare function GetProductInfoListResponseCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseCommission; +export declare function GetProductInfoListResponseCommissionToJSON(value?: GetProductInfoListResponseCommission | null): any; diff --git a/dist/models/GetProductInfoListResponseCommission.js b/dist/models/GetProductInfoListResponseCommission.js new file mode 100644 index 0000000..70e6670 --- /dev/null +++ b/dist/models/GetProductInfoListResponseCommission.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseCommission = instanceOfGetProductInfoListResponseCommission; +exports.GetProductInfoListResponseCommissionFromJSON = GetProductInfoListResponseCommissionFromJSON; +exports.GetProductInfoListResponseCommissionFromJSONTyped = GetProductInfoListResponseCommissionFromJSONTyped; +exports.GetProductInfoListResponseCommissionToJSON = GetProductInfoListResponseCommissionToJSON; +/** + * Check if a given object implements the GetProductInfoListResponseCommission interface. + */ +function instanceOfGetProductInfoListResponseCommission(value) { + return true; +} +function GetProductInfoListResponseCommissionFromJSON(json) { + return GetProductInfoListResponseCommissionFromJSONTyped(json, false); +} +function GetProductInfoListResponseCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_amount': json['delivery_amount'] == null ? undefined : json['delivery_amount'], + 'percent': json['percent'] == null ? undefined : json['percent'], + 'return_amount': json['return_amount'] == null ? undefined : json['return_amount'], + 'sale_schema': json['sale_schema'] == null ? undefined : json['sale_schema'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function GetProductInfoListResponseCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_amount': value['delivery_amount'], + 'percent': value['percent'], + 'return_amount': value['return_amount'], + 'sale_schema': value['sale_schema'], + 'value': value['value'], + }; +} diff --git a/dist/models/GetProductInfoListResponseError.d.ts b/dist/models/GetProductInfoListResponseError.d.ts new file mode 100644 index 0000000..79b0668 --- /dev/null +++ b/dist/models/GetProductInfoListResponseError.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorErrorLevel } from './ErrorErrorLevel'; +import type { ErrorHumanTexts } from './ErrorHumanTexts'; +/** + * + * @export + * @interface GetProductInfoListResponseError + */ +export interface GetProductInfoListResponseError { + /** + * Идентификатор характеристики. + * @type {number} + * @memberof GetProductInfoListResponseError + */ + attribute_id?: number; + /** + * Код ошибки. + * @type {string} + * @memberof GetProductInfoListResponseError + */ + code?: string; + /** + * Поле, в котором найдена ошибка. + * @type {string} + * @memberof GetProductInfoListResponseError + */ + field?: string; + /** + * + * @type {ErrorErrorLevel} + * @memberof GetProductInfoListResponseError + */ + level?: ErrorErrorLevel; + /** + * Статус товара, в котором произошла ошибка. + * @type {string} + * @memberof GetProductInfoListResponseError + */ + state?: string; + /** + * + * @type {ErrorHumanTexts} + * @memberof GetProductInfoListResponseError + */ + texts?: ErrorHumanTexts; +} +/** + * Check if a given object implements the GetProductInfoListResponseError interface. + */ +export declare function instanceOfGetProductInfoListResponseError(value: object): value is GetProductInfoListResponseError; +export declare function GetProductInfoListResponseErrorFromJSON(json: any): GetProductInfoListResponseError; +export declare function GetProductInfoListResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseError; +export declare function GetProductInfoListResponseErrorToJSON(value?: GetProductInfoListResponseError | null): any; diff --git a/dist/models/GetProductInfoListResponseError.js b/dist/models/GetProductInfoListResponseError.js new file mode 100644 index 0000000..0e10f6e --- /dev/null +++ b/dist/models/GetProductInfoListResponseError.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseError = instanceOfGetProductInfoListResponseError; +exports.GetProductInfoListResponseErrorFromJSON = GetProductInfoListResponseErrorFromJSON; +exports.GetProductInfoListResponseErrorFromJSONTyped = GetProductInfoListResponseErrorFromJSONTyped; +exports.GetProductInfoListResponseErrorToJSON = GetProductInfoListResponseErrorToJSON; +const ErrorErrorLevel_1 = require("./ErrorErrorLevel"); +const ErrorHumanTexts_1 = require("./ErrorHumanTexts"); +/** + * Check if a given object implements the GetProductInfoListResponseError interface. + */ +function instanceOfGetProductInfoListResponseError(value) { + return true; +} +function GetProductInfoListResponseErrorFromJSON(json) { + return GetProductInfoListResponseErrorFromJSONTyped(json, false); +} +function GetProductInfoListResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attribute_id': json['attribute_id'] == null ? undefined : json['attribute_id'], + 'code': json['code'] == null ? undefined : json['code'], + 'field': json['field'] == null ? undefined : json['field'], + 'level': json['level'] == null ? undefined : (0, ErrorErrorLevel_1.ErrorErrorLevelFromJSON)(json['level']), + 'state': json['state'] == null ? undefined : json['state'], + 'texts': json['texts'] == null ? undefined : (0, ErrorHumanTexts_1.ErrorHumanTextsFromJSON)(json['texts']), + }; +} +function GetProductInfoListResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'attribute_id': value['attribute_id'], + 'code': value['code'], + 'field': value['field'], + 'level': (0, ErrorErrorLevel_1.ErrorErrorLevelToJSON)(value['level']), + 'state': value['state'], + 'texts': (0, ErrorHumanTexts_1.ErrorHumanTextsToJSON)(value['texts']), + }; +} diff --git a/dist/models/GetProductInfoListResponseModelInfo.d.ts b/dist/models/GetProductInfoListResponseModelInfo.d.ts new file mode 100644 index 0000000..3ac1656 --- /dev/null +++ b/dist/models/GetProductInfoListResponseModelInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о модели товара. + * @export + * @interface GetProductInfoListResponseModelInfo + */ +export interface GetProductInfoListResponseModelInfo { + /** + * Количество товаров в ответе. + * @type {number} + * @memberof GetProductInfoListResponseModelInfo + */ + count?: number; + /** + * Идентификатор модели товара. + * @type {number} + * @memberof GetProductInfoListResponseModelInfo + */ + model_id?: number; +} +/** + * Check if a given object implements the GetProductInfoListResponseModelInfo interface. + */ +export declare function instanceOfGetProductInfoListResponseModelInfo(value: object): value is GetProductInfoListResponseModelInfo; +export declare function GetProductInfoListResponseModelInfoFromJSON(json: any): GetProductInfoListResponseModelInfo; +export declare function GetProductInfoListResponseModelInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseModelInfo; +export declare function GetProductInfoListResponseModelInfoToJSON(value?: GetProductInfoListResponseModelInfo | null): any; diff --git a/dist/models/GetProductInfoListResponseModelInfo.js b/dist/models/GetProductInfoListResponseModelInfo.js new file mode 100644 index 0000000..094b8c9 --- /dev/null +++ b/dist/models/GetProductInfoListResponseModelInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseModelInfo = instanceOfGetProductInfoListResponseModelInfo; +exports.GetProductInfoListResponseModelInfoFromJSON = GetProductInfoListResponseModelInfoFromJSON; +exports.GetProductInfoListResponseModelInfoFromJSONTyped = GetProductInfoListResponseModelInfoFromJSONTyped; +exports.GetProductInfoListResponseModelInfoToJSON = GetProductInfoListResponseModelInfoToJSON; +/** + * Check if a given object implements the GetProductInfoListResponseModelInfo interface. + */ +function instanceOfGetProductInfoListResponseModelInfo(value) { + return true; +} +function GetProductInfoListResponseModelInfoFromJSON(json) { + return GetProductInfoListResponseModelInfoFromJSONTyped(json, false); +} +function GetProductInfoListResponseModelInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'model_id': json['model_id'] == null ? undefined : json['model_id'], + }; +} +function GetProductInfoListResponseModelInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'model_id': value['model_id'], + }; +} diff --git a/dist/models/GetProductInfoListResponsePriceIndexes.d.ts b/dist/models/GetProductInfoListResponsePriceIndexes.d.ts new file mode 100644 index 0000000..31ff23b --- /dev/null +++ b/dist/models/GetProductInfoListResponsePriceIndexes.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PriceIndexesIndexDataSelf } from './PriceIndexesIndexDataSelf'; +import type { PriceIndexesColorIndex } from './PriceIndexesColorIndex'; +import type { PriceIndexesIndexDataExternal } from './PriceIndexesIndexDataExternal'; +import type { PriceIndexesIndexDataOzon } from './PriceIndexesIndexDataOzon'; +/** + * Ценовые индексы товара. + * @export + * @interface GetProductInfoListResponsePriceIndexes + */ +export interface GetProductInfoListResponsePriceIndexes { + /** + * + * @type {PriceIndexesColorIndex} + * @memberof GetProductInfoListResponsePriceIndexes + */ + color_index?: PriceIndexesColorIndex; + /** + * + * @type {PriceIndexesIndexDataExternal} + * @memberof GetProductInfoListResponsePriceIndexes + */ + external_index_data?: PriceIndexesIndexDataExternal; + /** + * + * @type {PriceIndexesIndexDataOzon} + * @memberof GetProductInfoListResponsePriceIndexes + */ + ozon_index_data?: PriceIndexesIndexDataOzon; + /** + * + * @type {PriceIndexesIndexDataSelf} + * @memberof GetProductInfoListResponsePriceIndexes + */ + self_marketplaces_index_data?: PriceIndexesIndexDataSelf; +} +/** + * Check if a given object implements the GetProductInfoListResponsePriceIndexes interface. + */ +export declare function instanceOfGetProductInfoListResponsePriceIndexes(value: object): value is GetProductInfoListResponsePriceIndexes; +export declare function GetProductInfoListResponsePriceIndexesFromJSON(json: any): GetProductInfoListResponsePriceIndexes; +export declare function GetProductInfoListResponsePriceIndexesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponsePriceIndexes; +export declare function GetProductInfoListResponsePriceIndexesToJSON(value?: GetProductInfoListResponsePriceIndexes | null): any; diff --git a/dist/models/GetProductInfoListResponsePriceIndexes.js b/dist/models/GetProductInfoListResponsePriceIndexes.js new file mode 100644 index 0000000..69ea979 --- /dev/null +++ b/dist/models/GetProductInfoListResponsePriceIndexes.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponsePriceIndexes = instanceOfGetProductInfoListResponsePriceIndexes; +exports.GetProductInfoListResponsePriceIndexesFromJSON = GetProductInfoListResponsePriceIndexesFromJSON; +exports.GetProductInfoListResponsePriceIndexesFromJSONTyped = GetProductInfoListResponsePriceIndexesFromJSONTyped; +exports.GetProductInfoListResponsePriceIndexesToJSON = GetProductInfoListResponsePriceIndexesToJSON; +const PriceIndexesIndexDataSelf_1 = require("./PriceIndexesIndexDataSelf"); +const PriceIndexesColorIndex_1 = require("./PriceIndexesColorIndex"); +const PriceIndexesIndexDataExternal_1 = require("./PriceIndexesIndexDataExternal"); +const PriceIndexesIndexDataOzon_1 = require("./PriceIndexesIndexDataOzon"); +/** + * Check if a given object implements the GetProductInfoListResponsePriceIndexes interface. + */ +function instanceOfGetProductInfoListResponsePriceIndexes(value) { + return true; +} +function GetProductInfoListResponsePriceIndexesFromJSON(json) { + return GetProductInfoListResponsePriceIndexesFromJSONTyped(json, false); +} +function GetProductInfoListResponsePriceIndexesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'color_index': json['color_index'] == null ? undefined : (0, PriceIndexesColorIndex_1.PriceIndexesColorIndexFromJSON)(json['color_index']), + 'external_index_data': json['external_index_data'] == null ? undefined : (0, PriceIndexesIndexDataExternal_1.PriceIndexesIndexDataExternalFromJSON)(json['external_index_data']), + 'ozon_index_data': json['ozon_index_data'] == null ? undefined : (0, PriceIndexesIndexDataOzon_1.PriceIndexesIndexDataOzonFromJSON)(json['ozon_index_data']), + 'self_marketplaces_index_data': json['self_marketplaces_index_data'] == null ? undefined : (0, PriceIndexesIndexDataSelf_1.PriceIndexesIndexDataSelfFromJSON)(json['self_marketplaces_index_data']), + }; +} +function GetProductInfoListResponsePriceIndexesToJSON(value) { + if (value == null) { + return value; + } + return { + 'color_index': (0, PriceIndexesColorIndex_1.PriceIndexesColorIndexToJSON)(value['color_index']), + 'external_index_data': (0, PriceIndexesIndexDataExternal_1.PriceIndexesIndexDataExternalToJSON)(value['external_index_data']), + 'ozon_index_data': (0, PriceIndexesIndexDataOzon_1.PriceIndexesIndexDataOzonToJSON)(value['ozon_index_data']), + 'self_marketplaces_index_data': (0, PriceIndexesIndexDataSelf_1.PriceIndexesIndexDataSelfToJSON)(value['self_marketplaces_index_data']), + }; +} diff --git a/dist/models/GetProductInfoListResponseSource.d.ts b/dist/models/GetProductInfoListResponseSource.d.ts new file mode 100644 index 0000000..4c1fa13 --- /dev/null +++ b/dist/models/GetProductInfoListResponseSource.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SourceShipmentType } from './SourceShipmentType'; +/** + * + * @export + * @interface GetProductInfoListResponseSource + */ +export interface GetProductInfoListResponseSource { + /** + * Дата создания товара. + * @type {string} + * @memberof GetProductInfoListResponseSource + */ + created_at?: string; + /** + * Список квантов с товарами. + * @type {string} + * @memberof GetProductInfoListResponseSource + */ + quant_code?: string; + /** + * + * @type {SourceShipmentType} + * @memberof GetProductInfoListResponseSource + */ + shipment_type?: SourceShipmentType; + /** + * Идентификатор товара на Ozon — SKU. + * @type {number} + * @memberof GetProductInfoListResponseSource + */ + sku?: number; + /** + * Схема продажи: + * - `SDS` — FBO и FBS с одинаковым SKU; + * - `FBO`; + * - `FBS`. + * + * @type {string} + * @memberof GetProductInfoListResponseSource + */ + source?: string; +} +/** + * Check if a given object implements the GetProductInfoListResponseSource interface. + */ +export declare function instanceOfGetProductInfoListResponseSource(value: object): value is GetProductInfoListResponseSource; +export declare function GetProductInfoListResponseSourceFromJSON(json: any): GetProductInfoListResponseSource; +export declare function GetProductInfoListResponseSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseSource; +export declare function GetProductInfoListResponseSourceToJSON(value?: GetProductInfoListResponseSource | null): any; diff --git a/dist/models/GetProductInfoListResponseSource.js b/dist/models/GetProductInfoListResponseSource.js new file mode 100644 index 0000000..ec9a62e --- /dev/null +++ b/dist/models/GetProductInfoListResponseSource.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseSource = instanceOfGetProductInfoListResponseSource; +exports.GetProductInfoListResponseSourceFromJSON = GetProductInfoListResponseSourceFromJSON; +exports.GetProductInfoListResponseSourceFromJSONTyped = GetProductInfoListResponseSourceFromJSONTyped; +exports.GetProductInfoListResponseSourceToJSON = GetProductInfoListResponseSourceToJSON; +const SourceShipmentType_1 = require("./SourceShipmentType"); +/** + * Check if a given object implements the GetProductInfoListResponseSource interface. + */ +function instanceOfGetProductInfoListResponseSource(value) { + return true; +} +function GetProductInfoListResponseSourceFromJSON(json) { + return GetProductInfoListResponseSourceFromJSONTyped(json, false); +} +function GetProductInfoListResponseSourceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'quant_code': json['quant_code'] == null ? undefined : json['quant_code'], + 'shipment_type': json['shipment_type'] == null ? undefined : (0, SourceShipmentType_1.SourceShipmentTypeFromJSON)(json['shipment_type']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'source': json['source'] == null ? undefined : json['source'], + }; +} +function GetProductInfoListResponseSourceToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'quant_code': value['quant_code'], + 'shipment_type': (0, SourceShipmentType_1.SourceShipmentTypeToJSON)(value['shipment_type']), + 'sku': value['sku'], + 'source': value['source'], + }; +} diff --git a/dist/models/GetProductInfoListResponseStatuses.d.ts b/dist/models/GetProductInfoListResponseStatuses.d.ts new file mode 100644 index 0000000..7941f64 --- /dev/null +++ b/dist/models/GetProductInfoListResponseStatuses.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о статусах товара. + * @export + * @interface GetProductInfoListResponseStatuses + */ +export interface GetProductInfoListResponseStatuses { + /** + * `true`, если товар создан корректно. + * + * @type {boolean} + * @memberof GetProductInfoListResponseStatuses + */ + is_created?: boolean; + /** + * Статус модерации. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + moderate_status?: string; + /** + * Статус товара. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status?: string; + /** + * Описание статуса товара. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_description?: string; + /** + * Статус товара, в котором возникла ошибка. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_failed?: string; + /** + * Название статуса товара. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_name?: string; + /** + * Описание статуса. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_tooltip?: string; + /** + * Время последнего изменения статуса. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + status_updated_at?: string; + /** + * Статус валидации. + * @type {string} + * @memberof GetProductInfoListResponseStatuses + */ + validation_status?: string; +} +/** + * Check if a given object implements the GetProductInfoListResponseStatuses interface. + */ +export declare function instanceOfGetProductInfoListResponseStatuses(value: object): value is GetProductInfoListResponseStatuses; +export declare function GetProductInfoListResponseStatusesFromJSON(json: any): GetProductInfoListResponseStatuses; +export declare function GetProductInfoListResponseStatusesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseStatuses; +export declare function GetProductInfoListResponseStatusesToJSON(value?: GetProductInfoListResponseStatuses | null): any; diff --git a/dist/models/GetProductInfoListResponseStatuses.js b/dist/models/GetProductInfoListResponseStatuses.js new file mode 100644 index 0000000..ab3fbc9 --- /dev/null +++ b/dist/models/GetProductInfoListResponseStatuses.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseStatuses = instanceOfGetProductInfoListResponseStatuses; +exports.GetProductInfoListResponseStatusesFromJSON = GetProductInfoListResponseStatusesFromJSON; +exports.GetProductInfoListResponseStatusesFromJSONTyped = GetProductInfoListResponseStatusesFromJSONTyped; +exports.GetProductInfoListResponseStatusesToJSON = GetProductInfoListResponseStatusesToJSON; +/** + * Check if a given object implements the GetProductInfoListResponseStatuses interface. + */ +function instanceOfGetProductInfoListResponseStatuses(value) { + return true; +} +function GetProductInfoListResponseStatusesFromJSON(json) { + return GetProductInfoListResponseStatusesFromJSONTyped(json, false); +} +function GetProductInfoListResponseStatusesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_created': json['is_created'] == null ? undefined : json['is_created'], + 'moderate_status': json['moderate_status'] == null ? undefined : json['moderate_status'], + 'status': json['status'] == null ? undefined : json['status'], + 'status_description': json['status_description'] == null ? undefined : json['status_description'], + 'status_failed': json['status_failed'] == null ? undefined : json['status_failed'], + 'status_name': json['status_name'] == null ? undefined : json['status_name'], + 'status_tooltip': json['status_tooltip'] == null ? undefined : json['status_tooltip'], + 'status_updated_at': json['status_updated_at'] == null ? undefined : json['status_updated_at'], + 'validation_status': json['validation_status'] == null ? undefined : json['validation_status'], + }; +} +function GetProductInfoListResponseStatusesToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_created': value['is_created'], + 'moderate_status': value['moderate_status'], + 'status': value['status'], + 'status_description': value['status_description'], + 'status_failed': value['status_failed'], + 'status_name': value['status_name'], + 'status_tooltip': value['status_tooltip'], + 'status_updated_at': value['status_updated_at'], + 'validation_status': value['validation_status'], + }; +} diff --git a/dist/models/GetProductInfoListResponseStocks.d.ts b/dist/models/GetProductInfoListResponseStocks.d.ts new file mode 100644 index 0000000..d4557c2 --- /dev/null +++ b/dist/models/GetProductInfoListResponseStocks.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductInfoListResponseStocksStock } from './GetProductInfoListResponseStocksStock'; +/** + * Информация об остатках товара. + * @export + * @interface GetProductInfoListResponseStocks + */ +export interface GetProductInfoListResponseStocks { + /** + * `true`, если есть остаток на складах. + * + * @type {boolean} + * @memberof GetProductInfoListResponseStocks + */ + has_stock?: boolean; + /** + * Статус остатков товара. + * @type {Array} + * @memberof GetProductInfoListResponseStocks + */ + stocks?: Array; +} +/** + * Check if a given object implements the GetProductInfoListResponseStocks interface. + */ +export declare function instanceOfGetProductInfoListResponseStocks(value: object): value is GetProductInfoListResponseStocks; +export declare function GetProductInfoListResponseStocksFromJSON(json: any): GetProductInfoListResponseStocks; +export declare function GetProductInfoListResponseStocksFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseStocks; +export declare function GetProductInfoListResponseStocksToJSON(value?: GetProductInfoListResponseStocks | null): any; diff --git a/dist/models/GetProductInfoListResponseStocks.js b/dist/models/GetProductInfoListResponseStocks.js new file mode 100644 index 0000000..ceb53d6 --- /dev/null +++ b/dist/models/GetProductInfoListResponseStocks.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseStocks = instanceOfGetProductInfoListResponseStocks; +exports.GetProductInfoListResponseStocksFromJSON = GetProductInfoListResponseStocksFromJSON; +exports.GetProductInfoListResponseStocksFromJSONTyped = GetProductInfoListResponseStocksFromJSONTyped; +exports.GetProductInfoListResponseStocksToJSON = GetProductInfoListResponseStocksToJSON; +const GetProductInfoListResponseStocksStock_1 = require("./GetProductInfoListResponseStocksStock"); +/** + * Check if a given object implements the GetProductInfoListResponseStocks interface. + */ +function instanceOfGetProductInfoListResponseStocks(value) { + return true; +} +function GetProductInfoListResponseStocksFromJSON(json) { + return GetProductInfoListResponseStocksFromJSONTyped(json, false); +} +function GetProductInfoListResponseStocksFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_stock': json['has_stock'] == null ? undefined : json['has_stock'], + 'stocks': json['stocks'] == null ? undefined : (json['stocks'].map(GetProductInfoListResponseStocksStock_1.GetProductInfoListResponseStocksStockFromJSON)), + }; +} +function GetProductInfoListResponseStocksToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_stock': value['has_stock'], + 'stocks': value['stocks'] == null ? undefined : (value['stocks'].map(GetProductInfoListResponseStocksStock_1.GetProductInfoListResponseStocksStockToJSON)), + }; +} diff --git a/dist/models/GetProductInfoListResponseStocksStock.d.ts b/dist/models/GetProductInfoListResponseStocksStock.d.ts new file mode 100644 index 0000000..95fd341 --- /dev/null +++ b/dist/models/GetProductInfoListResponseStocksStock.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductInfoListResponseStocksStock + */ +export interface GetProductInfoListResponseStocksStock { + /** + * Сейчас на складе. + * @type {number} + * @memberof GetProductInfoListResponseStocksStock + */ + present?: number; + /** + * Зарезервировано. + * @type {number} + * @memberof GetProductInfoListResponseStocksStock + */ + reserved?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetProductInfoListResponseStocksStock + */ + sku?: number; + /** + * Схема продажи. + * @type {string} + * @memberof GetProductInfoListResponseStocksStock + */ + source?: string; +} +/** + * Check if a given object implements the GetProductInfoListResponseStocksStock interface. + */ +export declare function instanceOfGetProductInfoListResponseStocksStock(value: object): value is GetProductInfoListResponseStocksStock; +export declare function GetProductInfoListResponseStocksStockFromJSON(json: any): GetProductInfoListResponseStocksStock; +export declare function GetProductInfoListResponseStocksStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseStocksStock; +export declare function GetProductInfoListResponseStocksStockToJSON(value?: GetProductInfoListResponseStocksStock | null): any; diff --git a/dist/models/GetProductInfoListResponseStocksStock.js b/dist/models/GetProductInfoListResponseStocksStock.js new file mode 100644 index 0000000..9370ee0 --- /dev/null +++ b/dist/models/GetProductInfoListResponseStocksStock.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseStocksStock = instanceOfGetProductInfoListResponseStocksStock; +exports.GetProductInfoListResponseStocksStockFromJSON = GetProductInfoListResponseStocksStockFromJSON; +exports.GetProductInfoListResponseStocksStockFromJSONTyped = GetProductInfoListResponseStocksStockFromJSONTyped; +exports.GetProductInfoListResponseStocksStockToJSON = GetProductInfoListResponseStocksStockToJSON; +/** + * Check if a given object implements the GetProductInfoListResponseStocksStock interface. + */ +function instanceOfGetProductInfoListResponseStocksStock(value) { + return true; +} +function GetProductInfoListResponseStocksStockFromJSON(json) { + return GetProductInfoListResponseStocksStockFromJSONTyped(json, false); +} +function GetProductInfoListResponseStocksStockFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'present': json['present'] == null ? undefined : json['present'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'source': json['source'] == null ? undefined : json['source'], + }; +} +function GetProductInfoListResponseStocksStockToJSON(value) { + if (value == null) { + return value; + } + return { + 'present': value['present'], + 'reserved': value['reserved'], + 'sku': value['sku'], + 'source': value['source'], + }; +} diff --git a/dist/models/GetProductInfoListResponseVisibilityDetails.d.ts b/dist/models/GetProductInfoListResponseVisibilityDetails.d.ts new file mode 100644 index 0000000..b579c89 --- /dev/null +++ b/dist/models/GetProductInfoListResponseVisibilityDetails.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Настройки видимости товара. + * @export + * @interface GetProductInfoListResponseVisibilityDetails + */ +export interface GetProductInfoListResponseVisibilityDetails { + /** + * Если установлена цена — `true`. + * @type {boolean} + * @memberof GetProductInfoListResponseVisibilityDetails + */ + has_price?: boolean; + /** + * Если есть остаток на складах — `true`. + * @type {boolean} + * @memberof GetProductInfoListResponseVisibilityDetails + */ + has_stock?: boolean; +} +/** + * Check if a given object implements the GetProductInfoListResponseVisibilityDetails interface. + */ +export declare function instanceOfGetProductInfoListResponseVisibilityDetails(value: object): value is GetProductInfoListResponseVisibilityDetails; +export declare function GetProductInfoListResponseVisibilityDetailsFromJSON(json: any): GetProductInfoListResponseVisibilityDetails; +export declare function GetProductInfoListResponseVisibilityDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoListResponseVisibilityDetails; +export declare function GetProductInfoListResponseVisibilityDetailsToJSON(value?: GetProductInfoListResponseVisibilityDetails | null): any; diff --git a/dist/models/GetProductInfoListResponseVisibilityDetails.js b/dist/models/GetProductInfoListResponseVisibilityDetails.js new file mode 100644 index 0000000..f8b8bf8 --- /dev/null +++ b/dist/models/GetProductInfoListResponseVisibilityDetails.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoListResponseVisibilityDetails = instanceOfGetProductInfoListResponseVisibilityDetails; +exports.GetProductInfoListResponseVisibilityDetailsFromJSON = GetProductInfoListResponseVisibilityDetailsFromJSON; +exports.GetProductInfoListResponseVisibilityDetailsFromJSONTyped = GetProductInfoListResponseVisibilityDetailsFromJSONTyped; +exports.GetProductInfoListResponseVisibilityDetailsToJSON = GetProductInfoListResponseVisibilityDetailsToJSON; +/** + * Check if a given object implements the GetProductInfoListResponseVisibilityDetails interface. + */ +function instanceOfGetProductInfoListResponseVisibilityDetails(value) { + return true; +} +function GetProductInfoListResponseVisibilityDetailsFromJSON(json) { + return GetProductInfoListResponseVisibilityDetailsFromJSONTyped(json, false); +} +function GetProductInfoListResponseVisibilityDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_price': json['has_price'] == null ? undefined : json['has_price'], + 'has_stock': json['has_stock'] == null ? undefined : json['has_stock'], + }; +} +function GetProductInfoListResponseVisibilityDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_price': value['has_price'], + 'has_stock': value['has_stock'], + }; +} diff --git a/dist/models/GetProductInfoPricesResponseItemPriceIndexes.d.ts b/dist/models/GetProductInfoPricesResponseItemPriceIndexes.d.ts new file mode 100644 index 0000000..b6ff9ef --- /dev/null +++ b/dist/models/GetProductInfoPricesResponseItemPriceIndexes.d.ts @@ -0,0 +1,72 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PriceIndexesIndexExternalData } from './PriceIndexesIndexExternalData'; +import type { PriceIndexesIndexSelfData } from './PriceIndexesIndexSelfData'; +import type { PriceIndexesIndexOzonData } from './PriceIndexesIndexOzonData'; +/** + * Индексы цены товара. + * + * [Подробнее об индексе цен в Базе знаний продавца](https://seller-edu.ozon.ru/seller-rating/metrics/price-index) + * + * @export + * @interface GetProductInfoPricesResponseItemPriceIndexes + */ +export interface GetProductInfoPricesResponseItemPriceIndexes { + /** + * Итоговый индекс цены товара: + * - `WITHOUT_INDEX` — нет индекса, + * - `SUPER` — супервыгодный, + * - `GREEN` — выгодный, + * - `YELLOW` — умеренный, + * - `RED` — невыгодный. + * + * @type {string} + * @memberof GetProductInfoPricesResponseItemPriceIndexes + */ + color_index?: GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum; + /** + * + * @type {PriceIndexesIndexExternalData} + * @memberof GetProductInfoPricesResponseItemPriceIndexes + */ + external_index_data?: PriceIndexesIndexExternalData; + /** + * + * @type {PriceIndexesIndexOzonData} + * @memberof GetProductInfoPricesResponseItemPriceIndexes + */ + ozon_index_data?: PriceIndexesIndexOzonData; + /** + * + * @type {PriceIndexesIndexSelfData} + * @memberof GetProductInfoPricesResponseItemPriceIndexes + */ + self_marketplaces_index_data?: PriceIndexesIndexSelfData; +} +/** + * @export + */ +export declare const GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum: { + readonly WITHOUT_INDEX: "WITHOUT_INDEX"; + readonly GREEN: "GREEN"; + readonly YELLOW: "YELLOW"; + readonly RED: "RED"; + readonly SUPER: "SUPER"; +}; +export type GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum = typeof GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum[keyof typeof GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum]; +/** + * Check if a given object implements the GetProductInfoPricesResponseItemPriceIndexes interface. + */ +export declare function instanceOfGetProductInfoPricesResponseItemPriceIndexes(value: object): value is GetProductInfoPricesResponseItemPriceIndexes; +export declare function GetProductInfoPricesResponseItemPriceIndexesFromJSON(json: any): GetProductInfoPricesResponseItemPriceIndexes; +export declare function GetProductInfoPricesResponseItemPriceIndexesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoPricesResponseItemPriceIndexes; +export declare function GetProductInfoPricesResponseItemPriceIndexesToJSON(value?: GetProductInfoPricesResponseItemPriceIndexes | null): any; diff --git a/dist/models/GetProductInfoPricesResponseItemPriceIndexes.js b/dist/models/GetProductInfoPricesResponseItemPriceIndexes.js new file mode 100644 index 0000000..602433b --- /dev/null +++ b/dist/models/GetProductInfoPricesResponseItemPriceIndexes.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum = void 0; +exports.instanceOfGetProductInfoPricesResponseItemPriceIndexes = instanceOfGetProductInfoPricesResponseItemPriceIndexes; +exports.GetProductInfoPricesResponseItemPriceIndexesFromJSON = GetProductInfoPricesResponseItemPriceIndexesFromJSON; +exports.GetProductInfoPricesResponseItemPriceIndexesFromJSONTyped = GetProductInfoPricesResponseItemPriceIndexesFromJSONTyped; +exports.GetProductInfoPricesResponseItemPriceIndexesToJSON = GetProductInfoPricesResponseItemPriceIndexesToJSON; +const PriceIndexesIndexExternalData_1 = require("./PriceIndexesIndexExternalData"); +const PriceIndexesIndexSelfData_1 = require("./PriceIndexesIndexSelfData"); +const PriceIndexesIndexOzonData_1 = require("./PriceIndexesIndexOzonData"); +/** + * @export + */ +exports.GetProductInfoPricesResponseItemPriceIndexesColorIndexEnum = { + WITHOUT_INDEX: 'WITHOUT_INDEX', + GREEN: 'GREEN', + YELLOW: 'YELLOW', + RED: 'RED', + SUPER: 'SUPER' +}; +/** + * Check if a given object implements the GetProductInfoPricesResponseItemPriceIndexes interface. + */ +function instanceOfGetProductInfoPricesResponseItemPriceIndexes(value) { + return true; +} +function GetProductInfoPricesResponseItemPriceIndexesFromJSON(json) { + return GetProductInfoPricesResponseItemPriceIndexesFromJSONTyped(json, false); +} +function GetProductInfoPricesResponseItemPriceIndexesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'color_index': json['color_index'] == null ? undefined : json['color_index'], + 'external_index_data': json['external_index_data'] == null ? undefined : (0, PriceIndexesIndexExternalData_1.PriceIndexesIndexExternalDataFromJSON)(json['external_index_data']), + 'ozon_index_data': json['ozon_index_data'] == null ? undefined : (0, PriceIndexesIndexOzonData_1.PriceIndexesIndexOzonDataFromJSON)(json['ozon_index_data']), + 'self_marketplaces_index_data': json['self_marketplaces_index_data'] == null ? undefined : (0, PriceIndexesIndexSelfData_1.PriceIndexesIndexSelfDataFromJSON)(json['self_marketplaces_index_data']), + }; +} +function GetProductInfoPricesResponseItemPriceIndexesToJSON(value) { + if (value == null) { + return value; + } + return { + 'color_index': value['color_index'], + 'external_index_data': (0, PriceIndexesIndexExternalData_1.PriceIndexesIndexExternalDataToJSON)(value['external_index_data']), + 'ozon_index_data': (0, PriceIndexesIndexOzonData_1.PriceIndexesIndexOzonDataToJSON)(value['ozon_index_data']), + 'self_marketplaces_index_data': (0, PriceIndexesIndexSelfData_1.PriceIndexesIndexSelfDataToJSON)(value['self_marketplaces_index_data']), + }; +} diff --git a/dist/models/GetProductInfoStocksResponseStock.d.ts b/dist/models/GetProductInfoStocksResponseStock.d.ts new file mode 100644 index 0000000..b255adc --- /dev/null +++ b/dist/models/GetProductInfoStocksResponseStock.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StockShipmentType } from './StockShipmentType'; +/** + * + * @export + * @interface GetProductInfoStocksResponseStock + */ +export interface GetProductInfoStocksResponseStock { + /** + * Сейчас на складе. + * @type {number} + * @memberof GetProductInfoStocksResponseStock + */ + present?: number; + /** + * Зарезервировано. + * @type {number} + * @memberof GetProductInfoStocksResponseStock + */ + reserved?: number; + /** + * + * @type {StockShipmentType} + * @memberof GetProductInfoStocksResponseStock + */ + shipment_type?: StockShipmentType; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetProductInfoStocksResponseStock + */ + sku?: number; + /** + * Тип склада: + * - `fbs` — склад продавца, доставка силами Ozon; + * - `rfbs` — склад продавца, доставка силами продавца; + * - `fbo` — склад Ozon; + * - `fbp` — склад партнёра. + * + * @type {string} + * @memberof GetProductInfoStocksResponseStock + */ + type?: string; + /** + * Идентификаторы складов, на которых хранился или хранится товар. + * @type {Array} + * @memberof GetProductInfoStocksResponseStock + * @deprecated + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the GetProductInfoStocksResponseStock interface. + */ +export declare function instanceOfGetProductInfoStocksResponseStock(value: object): value is GetProductInfoStocksResponseStock; +export declare function GetProductInfoStocksResponseStockFromJSON(json: any): GetProductInfoStocksResponseStock; +export declare function GetProductInfoStocksResponseStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductInfoStocksResponseStock; +export declare function GetProductInfoStocksResponseStockToJSON(value?: GetProductInfoStocksResponseStock | null): any; diff --git a/dist/models/GetProductInfoStocksResponseStock.js b/dist/models/GetProductInfoStocksResponseStock.js new file mode 100644 index 0000000..2fea74a --- /dev/null +++ b/dist/models/GetProductInfoStocksResponseStock.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductInfoStocksResponseStock = instanceOfGetProductInfoStocksResponseStock; +exports.GetProductInfoStocksResponseStockFromJSON = GetProductInfoStocksResponseStockFromJSON; +exports.GetProductInfoStocksResponseStockFromJSONTyped = GetProductInfoStocksResponseStockFromJSONTyped; +exports.GetProductInfoStocksResponseStockToJSON = GetProductInfoStocksResponseStockToJSON; +const StockShipmentType_1 = require("./StockShipmentType"); +/** + * Check if a given object implements the GetProductInfoStocksResponseStock interface. + */ +function instanceOfGetProductInfoStocksResponseStock(value) { + return true; +} +function GetProductInfoStocksResponseStockFromJSON(json) { + return GetProductInfoStocksResponseStockFromJSONTyped(json, false); +} +function GetProductInfoStocksResponseStockFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'present': json['present'] == null ? undefined : json['present'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'shipment_type': json['shipment_type'] == null ? undefined : (0, StockShipmentType_1.StockShipmentTypeFromJSON)(json['shipment_type']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'type': json['type'] == null ? undefined : json['type'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function GetProductInfoStocksResponseStockToJSON(value) { + if (value == null) { + return value; + } + return { + 'present': value['present'], + 'reserved': value['reserved'], + 'shipment_type': (0, StockShipmentType_1.StockShipmentTypeToJSON)(value['shipment_type']), + 'sku': value['sku'], + 'type': value['type'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/GetProductPlacementZoneInfoResponseProductPlacement.d.ts b/dist/models/GetProductPlacementZoneInfoResponseProductPlacement.d.ts new file mode 100644 index 0000000..4244e5f --- /dev/null +++ b/dist/models/GetProductPlacementZoneInfoResponseProductPlacement.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductPlacementPlacementZoneEnum } from './ProductPlacementPlacementZoneEnum'; +/** + * + * @export + * @interface GetProductPlacementZoneInfoResponseProductPlacement + */ +export interface GetProductPlacementZoneInfoResponseProductPlacement { + /** + * + * @type {ProductPlacementPlacementZoneEnum} + * @memberof GetProductPlacementZoneInfoResponseProductPlacement + */ + placement_zone?: ProductPlacementPlacementZoneEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetProductPlacementZoneInfoResponseProductPlacement + */ + sku?: number; +} +/** + * Check if a given object implements the GetProductPlacementZoneInfoResponseProductPlacement interface. + */ +export declare function instanceOfGetProductPlacementZoneInfoResponseProductPlacement(value: object): value is GetProductPlacementZoneInfoResponseProductPlacement; +export declare function GetProductPlacementZoneInfoResponseProductPlacementFromJSON(json: any): GetProductPlacementZoneInfoResponseProductPlacement; +export declare function GetProductPlacementZoneInfoResponseProductPlacementFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductPlacementZoneInfoResponseProductPlacement; +export declare function GetProductPlacementZoneInfoResponseProductPlacementToJSON(value?: GetProductPlacementZoneInfoResponseProductPlacement | null): any; diff --git a/dist/models/GetProductPlacementZoneInfoResponseProductPlacement.js b/dist/models/GetProductPlacementZoneInfoResponseProductPlacement.js new file mode 100644 index 0000000..18d178c --- /dev/null +++ b/dist/models/GetProductPlacementZoneInfoResponseProductPlacement.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductPlacementZoneInfoResponseProductPlacement = instanceOfGetProductPlacementZoneInfoResponseProductPlacement; +exports.GetProductPlacementZoneInfoResponseProductPlacementFromJSON = GetProductPlacementZoneInfoResponseProductPlacementFromJSON; +exports.GetProductPlacementZoneInfoResponseProductPlacementFromJSONTyped = GetProductPlacementZoneInfoResponseProductPlacementFromJSONTyped; +exports.GetProductPlacementZoneInfoResponseProductPlacementToJSON = GetProductPlacementZoneInfoResponseProductPlacementToJSON; +const ProductPlacementPlacementZoneEnum_1 = require("./ProductPlacementPlacementZoneEnum"); +/** + * Check if a given object implements the GetProductPlacementZoneInfoResponseProductPlacement interface. + */ +function instanceOfGetProductPlacementZoneInfoResponseProductPlacement(value) { + return true; +} +function GetProductPlacementZoneInfoResponseProductPlacementFromJSON(json) { + return GetProductPlacementZoneInfoResponseProductPlacementFromJSONTyped(json, false); +} +function GetProductPlacementZoneInfoResponseProductPlacementFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'placement_zone': json['placement_zone'] == null ? undefined : (0, ProductPlacementPlacementZoneEnum_1.ProductPlacementPlacementZoneEnumFromJSON)(json['placement_zone']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function GetProductPlacementZoneInfoResponseProductPlacementToJSON(value) { + if (value == null) { + return value; + } + return { + 'placement_zone': (0, ProductPlacementPlacementZoneEnum_1.ProductPlacementPlacementZoneEnumToJSON)(value['placement_zone']), + 'sku': value['sku'], + }; +} diff --git a/dist/models/GetProductRatingBySkuResponseProductRating.d.ts b/dist/models/GetProductRatingBySkuResponseProductRating.d.ts new file mode 100644 index 0000000..bd6f4c0 --- /dev/null +++ b/dist/models/GetProductRatingBySkuResponseProductRating.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductRatingBySkuResponseRatingGroup } from './GetProductRatingBySkuResponseRatingGroup'; +/** + * + * @export + * @interface GetProductRatingBySkuResponseProductRating + */ +export interface GetProductRatingBySkuResponseProductRating { + /** + * Идентификатор товара на Ozon. + * @type {number} + * @memberof GetProductRatingBySkuResponseProductRating + */ + sku?: number; + /** + * Контент-рейтинг товара: от 0 до 100. + * + * @type {number} + * @memberof GetProductRatingBySkuResponseProductRating + */ + rating?: number; + /** + * Группы характеристик, из которых складывается контент-рейтинг. + * @type {Array} + * @memberof GetProductRatingBySkuResponseProductRating + */ + groups?: Array; +} +/** + * Check if a given object implements the GetProductRatingBySkuResponseProductRating interface. + */ +export declare function instanceOfGetProductRatingBySkuResponseProductRating(value: object): value is GetProductRatingBySkuResponseProductRating; +export declare function GetProductRatingBySkuResponseProductRatingFromJSON(json: any): GetProductRatingBySkuResponseProductRating; +export declare function GetProductRatingBySkuResponseProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductRatingBySkuResponseProductRating; +export declare function GetProductRatingBySkuResponseProductRatingToJSON(value?: GetProductRatingBySkuResponseProductRating | null): any; diff --git a/dist/models/GetProductRatingBySkuResponseProductRating.js b/dist/models/GetProductRatingBySkuResponseProductRating.js new file mode 100644 index 0000000..c9fb46b --- /dev/null +++ b/dist/models/GetProductRatingBySkuResponseProductRating.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductRatingBySkuResponseProductRating = instanceOfGetProductRatingBySkuResponseProductRating; +exports.GetProductRatingBySkuResponseProductRatingFromJSON = GetProductRatingBySkuResponseProductRatingFromJSON; +exports.GetProductRatingBySkuResponseProductRatingFromJSONTyped = GetProductRatingBySkuResponseProductRatingFromJSONTyped; +exports.GetProductRatingBySkuResponseProductRatingToJSON = GetProductRatingBySkuResponseProductRatingToJSON; +const GetProductRatingBySkuResponseRatingGroup_1 = require("./GetProductRatingBySkuResponseRatingGroup"); +/** + * Check if a given object implements the GetProductRatingBySkuResponseProductRating interface. + */ +function instanceOfGetProductRatingBySkuResponseProductRating(value) { + return true; +} +function GetProductRatingBySkuResponseProductRatingFromJSON(json) { + return GetProductRatingBySkuResponseProductRatingFromJSONTyped(json, false); +} +function GetProductRatingBySkuResponseProductRatingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'groups': json['groups'] == null ? undefined : (json['groups'].map(GetProductRatingBySkuResponseRatingGroup_1.GetProductRatingBySkuResponseRatingGroupFromJSON)), + }; +} +function GetProductRatingBySkuResponseProductRatingToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'rating': value['rating'], + 'groups': value['groups'] == null ? undefined : (value['groups'].map(GetProductRatingBySkuResponseRatingGroup_1.GetProductRatingBySkuResponseRatingGroupToJSON)), + }; +} diff --git a/dist/models/GetProductRatingBySkuResponseRatingCondition.d.ts b/dist/models/GetProductRatingBySkuResponseRatingCondition.d.ts new file mode 100644 index 0000000..65999ab --- /dev/null +++ b/dist/models/GetProductRatingBySkuResponseRatingCondition.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductRatingBySkuResponseRatingCondition + */ +export interface GetProductRatingBySkuResponseRatingCondition { + /** + * Количество баллов контент-рейтинга, которое даёт выполнение условия. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingCondition + */ + cost?: number; + /** + * Описание условия. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingCondition + */ + description?: string; + /** + * Признак, что условие выполнено. + * @type {boolean} + * @memberof GetProductRatingBySkuResponseRatingCondition + */ + fulfilled?: boolean; + /** + * Идентификатор условия. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingCondition + */ + key?: string; +} +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingCondition interface. + */ +export declare function instanceOfGetProductRatingBySkuResponseRatingCondition(value: object): value is GetProductRatingBySkuResponseRatingCondition; +export declare function GetProductRatingBySkuResponseRatingConditionFromJSON(json: any): GetProductRatingBySkuResponseRatingCondition; +export declare function GetProductRatingBySkuResponseRatingConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductRatingBySkuResponseRatingCondition; +export declare function GetProductRatingBySkuResponseRatingConditionToJSON(value?: GetProductRatingBySkuResponseRatingCondition | null): any; diff --git a/dist/models/GetProductRatingBySkuResponseRatingCondition.js b/dist/models/GetProductRatingBySkuResponseRatingCondition.js new file mode 100644 index 0000000..fb46575 --- /dev/null +++ b/dist/models/GetProductRatingBySkuResponseRatingCondition.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductRatingBySkuResponseRatingCondition = instanceOfGetProductRatingBySkuResponseRatingCondition; +exports.GetProductRatingBySkuResponseRatingConditionFromJSON = GetProductRatingBySkuResponseRatingConditionFromJSON; +exports.GetProductRatingBySkuResponseRatingConditionFromJSONTyped = GetProductRatingBySkuResponseRatingConditionFromJSONTyped; +exports.GetProductRatingBySkuResponseRatingConditionToJSON = GetProductRatingBySkuResponseRatingConditionToJSON; +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingCondition interface. + */ +function instanceOfGetProductRatingBySkuResponseRatingCondition(value) { + return true; +} +function GetProductRatingBySkuResponseRatingConditionFromJSON(json) { + return GetProductRatingBySkuResponseRatingConditionFromJSONTyped(json, false); +} +function GetProductRatingBySkuResponseRatingConditionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cost': json['cost'] == null ? undefined : json['cost'], + 'description': json['description'] == null ? undefined : json['description'], + 'fulfilled': json['fulfilled'] == null ? undefined : json['fulfilled'], + 'key': json['key'] == null ? undefined : json['key'], + }; +} +function GetProductRatingBySkuResponseRatingConditionToJSON(value) { + if (value == null) { + return value; + } + return { + 'cost': value['cost'], + 'description': value['description'], + 'fulfilled': value['fulfilled'], + 'key': value['key'], + }; +} diff --git a/dist/models/GetProductRatingBySkuResponseRatingGroup.d.ts b/dist/models/GetProductRatingBySkuResponseRatingGroup.d.ts new file mode 100644 index 0000000..e3c43f0 --- /dev/null +++ b/dist/models/GetProductRatingBySkuResponseRatingGroup.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductRatingBySkuResponseRatingCondition } from './GetProductRatingBySkuResponseRatingCondition'; +import type { GetProductRatingBySkuResponseRatingImproveAttribute } from './GetProductRatingBySkuResponseRatingImproveAttribute'; +/** + * + * @export + * @interface GetProductRatingBySkuResponseRatingGroup + */ +export interface GetProductRatingBySkuResponseRatingGroup { + /** + * Список условий, увеличивающих контент-рейтинг товара. + * @type {Array} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + conditions?: Array; + /** + * Количество атрибутов, которые нужно заполнить для получения максимального балла в этой группе характеристик. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + improve_at_least?: number; + /** + * Cписок атрибутов, заполнение которых может увеличить контент-рейтинг товара. + * @type {Array} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + improve_attributes?: Array; + /** + * Идентификатор группы. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + key?: string; + /** + * Название группы. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + name?: string; + /** + * Рейтинг в группе. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + rating?: number; + /** + * Процент влияния характеристик группы на контент-рейтинг. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingGroup + */ + weight?: number; +} +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingGroup interface. + */ +export declare function instanceOfGetProductRatingBySkuResponseRatingGroup(value: object): value is GetProductRatingBySkuResponseRatingGroup; +export declare function GetProductRatingBySkuResponseRatingGroupFromJSON(json: any): GetProductRatingBySkuResponseRatingGroup; +export declare function GetProductRatingBySkuResponseRatingGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductRatingBySkuResponseRatingGroup; +export declare function GetProductRatingBySkuResponseRatingGroupToJSON(value?: GetProductRatingBySkuResponseRatingGroup | null): any; diff --git a/dist/models/GetProductRatingBySkuResponseRatingGroup.js b/dist/models/GetProductRatingBySkuResponseRatingGroup.js new file mode 100644 index 0000000..fd5d59d --- /dev/null +++ b/dist/models/GetProductRatingBySkuResponseRatingGroup.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductRatingBySkuResponseRatingGroup = instanceOfGetProductRatingBySkuResponseRatingGroup; +exports.GetProductRatingBySkuResponseRatingGroupFromJSON = GetProductRatingBySkuResponseRatingGroupFromJSON; +exports.GetProductRatingBySkuResponseRatingGroupFromJSONTyped = GetProductRatingBySkuResponseRatingGroupFromJSONTyped; +exports.GetProductRatingBySkuResponseRatingGroupToJSON = GetProductRatingBySkuResponseRatingGroupToJSON; +const GetProductRatingBySkuResponseRatingCondition_1 = require("./GetProductRatingBySkuResponseRatingCondition"); +const GetProductRatingBySkuResponseRatingImproveAttribute_1 = require("./GetProductRatingBySkuResponseRatingImproveAttribute"); +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingGroup interface. + */ +function instanceOfGetProductRatingBySkuResponseRatingGroup(value) { + return true; +} +function GetProductRatingBySkuResponseRatingGroupFromJSON(json) { + return GetProductRatingBySkuResponseRatingGroupFromJSONTyped(json, false); +} +function GetProductRatingBySkuResponseRatingGroupFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'conditions': json['conditions'] == null ? undefined : (json['conditions'].map(GetProductRatingBySkuResponseRatingCondition_1.GetProductRatingBySkuResponseRatingConditionFromJSON)), + 'improve_at_least': json['improve_at_least'] == null ? undefined : json['improve_at_least'], + 'improve_attributes': json['improve_attributes'] == null ? undefined : (json['improve_attributes'].map(GetProductRatingBySkuResponseRatingImproveAttribute_1.GetProductRatingBySkuResponseRatingImproveAttributeFromJSON)), + 'key': json['key'] == null ? undefined : json['key'], + 'name': json['name'] == null ? undefined : json['name'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function GetProductRatingBySkuResponseRatingGroupToJSON(value) { + if (value == null) { + return value; + } + return { + 'conditions': value['conditions'] == null ? undefined : (value['conditions'].map(GetProductRatingBySkuResponseRatingCondition_1.GetProductRatingBySkuResponseRatingConditionToJSON)), + 'improve_at_least': value['improve_at_least'], + 'improve_attributes': value['improve_attributes'] == null ? undefined : (value['improve_attributes'].map(GetProductRatingBySkuResponseRatingImproveAttribute_1.GetProductRatingBySkuResponseRatingImproveAttributeToJSON)), + 'key': value['key'], + 'name': value['name'], + 'rating': value['rating'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/GetProductRatingBySkuResponseRatingImproveAttribute.d.ts b/dist/models/GetProductRatingBySkuResponseRatingImproveAttribute.d.ts new file mode 100644 index 0000000..8a25870 --- /dev/null +++ b/dist/models/GetProductRatingBySkuResponseRatingImproveAttribute.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetProductRatingBySkuResponseRatingImproveAttribute + */ +export interface GetProductRatingBySkuResponseRatingImproveAttribute { + /** + * Идентификатор атрибута. + * @type {number} + * @memberof GetProductRatingBySkuResponseRatingImproveAttribute + */ + id?: number; + /** + * Название атрибута. + * @type {string} + * @memberof GetProductRatingBySkuResponseRatingImproveAttribute + */ + name?: string; +} +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingImproveAttribute interface. + */ +export declare function instanceOfGetProductRatingBySkuResponseRatingImproveAttribute(value: object): value is GetProductRatingBySkuResponseRatingImproveAttribute; +export declare function GetProductRatingBySkuResponseRatingImproveAttributeFromJSON(json: any): GetProductRatingBySkuResponseRatingImproveAttribute; +export declare function GetProductRatingBySkuResponseRatingImproveAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductRatingBySkuResponseRatingImproveAttribute; +export declare function GetProductRatingBySkuResponseRatingImproveAttributeToJSON(value?: GetProductRatingBySkuResponseRatingImproveAttribute | null): any; diff --git a/dist/models/GetProductRatingBySkuResponseRatingImproveAttribute.js b/dist/models/GetProductRatingBySkuResponseRatingImproveAttribute.js new file mode 100644 index 0000000..65b7276 --- /dev/null +++ b/dist/models/GetProductRatingBySkuResponseRatingImproveAttribute.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetProductRatingBySkuResponseRatingImproveAttribute = instanceOfGetProductRatingBySkuResponseRatingImproveAttribute; +exports.GetProductRatingBySkuResponseRatingImproveAttributeFromJSON = GetProductRatingBySkuResponseRatingImproveAttributeFromJSON; +exports.GetProductRatingBySkuResponseRatingImproveAttributeFromJSONTyped = GetProductRatingBySkuResponseRatingImproveAttributeFromJSONTyped; +exports.GetProductRatingBySkuResponseRatingImproveAttributeToJSON = GetProductRatingBySkuResponseRatingImproveAttributeToJSON; +/** + * Check if a given object implements the GetProductRatingBySkuResponseRatingImproveAttribute interface. + */ +function instanceOfGetProductRatingBySkuResponseRatingImproveAttribute(value) { + return true; +} +function GetProductRatingBySkuResponseRatingImproveAttributeFromJSON(json) { + return GetProductRatingBySkuResponseRatingImproveAttributeFromJSONTyped(json, false); +} +function GetProductRatingBySkuResponseRatingImproveAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function GetProductRatingBySkuResponseRatingImproveAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/GetRealizationReportByDayResponse.d.ts b/dist/models/GetRealizationReportByDayResponse.d.ts new file mode 100644 index 0000000..3e30720 --- /dev/null +++ b/dist/models/GetRealizationReportByDayResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetRealizationReportByDayResponseRow } from './GetRealizationReportByDayResponseRow'; +/** + * Результат запроса. + * @export + * @interface GetRealizationReportByDayResponse + */ +export interface GetRealizationReportByDayResponse { + /** + * Таблица отчёта. + * @type {Array} + * @memberof GetRealizationReportByDayResponse + */ + rows?: Array; +} +/** + * Check if a given object implements the GetRealizationReportByDayResponse interface. + */ +export declare function instanceOfGetRealizationReportByDayResponse(value: object): value is GetRealizationReportByDayResponse; +export declare function GetRealizationReportByDayResponseFromJSON(json: any): GetRealizationReportByDayResponse; +export declare function GetRealizationReportByDayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportByDayResponse; +export declare function GetRealizationReportByDayResponseToJSON(value?: GetRealizationReportByDayResponse | null): any; diff --git a/dist/models/GetRealizationReportByDayResponse.js b/dist/models/GetRealizationReportByDayResponse.js new file mode 100644 index 0000000..e5320bf --- /dev/null +++ b/dist/models/GetRealizationReportByDayResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetRealizationReportByDayResponse = instanceOfGetRealizationReportByDayResponse; +exports.GetRealizationReportByDayResponseFromJSON = GetRealizationReportByDayResponseFromJSON; +exports.GetRealizationReportByDayResponseFromJSONTyped = GetRealizationReportByDayResponseFromJSONTyped; +exports.GetRealizationReportByDayResponseToJSON = GetRealizationReportByDayResponseToJSON; +const GetRealizationReportByDayResponseRow_1 = require("./GetRealizationReportByDayResponseRow"); +/** + * Check if a given object implements the GetRealizationReportByDayResponse interface. + */ +function instanceOfGetRealizationReportByDayResponse(value) { + return true; +} +function GetRealizationReportByDayResponseFromJSON(json) { + return GetRealizationReportByDayResponseFromJSONTyped(json, false); +} +function GetRealizationReportByDayResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rows': json['rows'] == null ? undefined : (json['rows'].map(GetRealizationReportByDayResponseRow_1.GetRealizationReportByDayResponseRowFromJSON)), + }; +} +function GetRealizationReportByDayResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'rows': value['rows'] == null ? undefined : (value['rows'].map(GetRealizationReportByDayResponseRow_1.GetRealizationReportByDayResponseRowToJSON)), + }; +} diff --git a/dist/models/GetRealizationReportByDayResponseRow.d.ts b/dist/models/GetRealizationReportByDayResponseRow.d.ts new file mode 100644 index 0000000..7dfd4fb --- /dev/null +++ b/dist/models/GetRealizationReportByDayResponseRow.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RowItemCommissionReturn } from './RowItemCommissionReturn'; +import type { RowItem } from './RowItem'; +import type { RowItemCommission } from './RowItemCommission'; +/** + * + * @export + * @interface GetRealizationReportByDayResponseRow + */ +export interface GetRealizationReportByDayResponseRow { + /** + * Доля комиссии за продажу по категории. + * @type {number} + * @memberof GetRealizationReportByDayResponseRow + */ + commission_ratio?: number; + /** + * + * @type {RowItemCommission} + * @memberof GetRealizationReportByDayResponseRow + */ + delivery_commission?: RowItemCommission; + /** + * + * @type {RowItem} + * @memberof GetRealizationReportByDayResponseRow + */ + item?: RowItem; + /** + * + * @type {RowItemCommissionReturn} + * @memberof GetRealizationReportByDayResponseRow + */ + return_commission?: RowItemCommissionReturn; + /** + * Номер строки в отчёте. + * @type {number} + * @memberof GetRealizationReportByDayResponseRow + */ + rowNumber?: number; + /** + * Цена продавца с учётом скидки. + * @type {number} + * @memberof GetRealizationReportByDayResponseRow + */ + seller_price_per_instance?: number; +} +/** + * Check if a given object implements the GetRealizationReportByDayResponseRow interface. + */ +export declare function instanceOfGetRealizationReportByDayResponseRow(value: object): value is GetRealizationReportByDayResponseRow; +export declare function GetRealizationReportByDayResponseRowFromJSON(json: any): GetRealizationReportByDayResponseRow; +export declare function GetRealizationReportByDayResponseRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportByDayResponseRow; +export declare function GetRealizationReportByDayResponseRowToJSON(value?: GetRealizationReportByDayResponseRow | null): any; diff --git a/dist/models/GetRealizationReportByDayResponseRow.js b/dist/models/GetRealizationReportByDayResponseRow.js new file mode 100644 index 0000000..c826436 --- /dev/null +++ b/dist/models/GetRealizationReportByDayResponseRow.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetRealizationReportByDayResponseRow = instanceOfGetRealizationReportByDayResponseRow; +exports.GetRealizationReportByDayResponseRowFromJSON = GetRealizationReportByDayResponseRowFromJSON; +exports.GetRealizationReportByDayResponseRowFromJSONTyped = GetRealizationReportByDayResponseRowFromJSONTyped; +exports.GetRealizationReportByDayResponseRowToJSON = GetRealizationReportByDayResponseRowToJSON; +const RowItemCommissionReturn_1 = require("./RowItemCommissionReturn"); +const RowItem_1 = require("./RowItem"); +const RowItemCommission_1 = require("./RowItemCommission"); +/** + * Check if a given object implements the GetRealizationReportByDayResponseRow interface. + */ +function instanceOfGetRealizationReportByDayResponseRow(value) { + return true; +} +function GetRealizationReportByDayResponseRowFromJSON(json) { + return GetRealizationReportByDayResponseRowFromJSONTyped(json, false); +} +function GetRealizationReportByDayResponseRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commission_ratio': json['commission_ratio'] == null ? undefined : json['commission_ratio'], + 'delivery_commission': json['delivery_commission'] == null ? undefined : (0, RowItemCommission_1.RowItemCommissionFromJSON)(json['delivery_commission']), + 'item': json['item'] == null ? undefined : (0, RowItem_1.RowItemFromJSON)(json['item']), + 'return_commission': json['return_commission'] == null ? undefined : (0, RowItemCommissionReturn_1.RowItemCommissionReturnFromJSON)(json['return_commission']), + 'rowNumber': json['rowNumber'] == null ? undefined : json['rowNumber'], + 'seller_price_per_instance': json['seller_price_per_instance'] == null ? undefined : json['seller_price_per_instance'], + }; +} +function GetRealizationReportByDayResponseRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'commission_ratio': value['commission_ratio'], + 'delivery_commission': (0, RowItemCommission_1.RowItemCommissionToJSON)(value['delivery_commission']), + 'item': (0, RowItem_1.RowItemToJSON)(value['item']), + 'return_commission': (0, RowItemCommissionReturn_1.RowItemCommissionReturnToJSON)(value['return_commission']), + 'rowNumber': value['rowNumber'], + 'seller_price_per_instance': value['seller_price_per_instance'], + }; +} diff --git a/dist/models/GetRealizationReportResponseV2Header.d.ts b/dist/models/GetRealizationReportResponseV2Header.d.ts new file mode 100644 index 0000000..b9238f4 --- /dev/null +++ b/dist/models/GetRealizationReportResponseV2Header.d.ts @@ -0,0 +1,103 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Титульный лист отчёта. + * @export + * @interface GetRealizationReportResponseV2Header + */ +export interface GetRealizationReportResponseV2Header { + /** + * Дата заключения договора. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + contract_date?: string; + /** + * Номер договора. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + contract_number?: string; + /** + * Валюта. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + currency_sys_name?: string; + /** + * Дата формирования документа. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + doc_date?: string; + /** + * Номер отчёта о реализации. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + number?: string; + /** + * ИНН плательщика. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + payer_inn?: string; + /** + * КПП плательщика. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + payer_kpp?: string; + /** + * Название плательщика. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + payer_name?: string; + /** + * ИНН получателя. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + receiver_inn?: string; + /** + * КПП получателя. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + receiver_kpp?: string; + /** + * Название получателя. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + receiver_name?: string; + /** + * Начало периода. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + start_date?: string; + /** + * Конец периода. + * @type {string} + * @memberof GetRealizationReportResponseV2Header + */ + stop_date?: string; +} +/** + * Check if a given object implements the GetRealizationReportResponseV2Header interface. + */ +export declare function instanceOfGetRealizationReportResponseV2Header(value: object): value is GetRealizationReportResponseV2Header; +export declare function GetRealizationReportResponseV2HeaderFromJSON(json: any): GetRealizationReportResponseV2Header; +export declare function GetRealizationReportResponseV2HeaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportResponseV2Header; +export declare function GetRealizationReportResponseV2HeaderToJSON(value?: GetRealizationReportResponseV2Header | null): any; diff --git a/dist/models/GetRealizationReportResponseV2Header.js b/dist/models/GetRealizationReportResponseV2Header.js new file mode 100644 index 0000000..89e5cc6 --- /dev/null +++ b/dist/models/GetRealizationReportResponseV2Header.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetRealizationReportResponseV2Header = instanceOfGetRealizationReportResponseV2Header; +exports.GetRealizationReportResponseV2HeaderFromJSON = GetRealizationReportResponseV2HeaderFromJSON; +exports.GetRealizationReportResponseV2HeaderFromJSONTyped = GetRealizationReportResponseV2HeaderFromJSONTyped; +exports.GetRealizationReportResponseV2HeaderToJSON = GetRealizationReportResponseV2HeaderToJSON; +/** + * Check if a given object implements the GetRealizationReportResponseV2Header interface. + */ +function instanceOfGetRealizationReportResponseV2Header(value) { + return true; +} +function GetRealizationReportResponseV2HeaderFromJSON(json) { + return GetRealizationReportResponseV2HeaderFromJSONTyped(json, false); +} +function GetRealizationReportResponseV2HeaderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contract_date': json['contract_date'] == null ? undefined : json['contract_date'], + 'contract_number': json['contract_number'] == null ? undefined : json['contract_number'], + 'currency_sys_name': json['currency_sys_name'] == null ? undefined : json['currency_sys_name'], + 'doc_date': json['doc_date'] == null ? undefined : json['doc_date'], + 'number': json['number'] == null ? undefined : json['number'], + 'payer_inn': json['payer_inn'] == null ? undefined : json['payer_inn'], + 'payer_kpp': json['payer_kpp'] == null ? undefined : json['payer_kpp'], + 'payer_name': json['payer_name'] == null ? undefined : json['payer_name'], + 'receiver_inn': json['receiver_inn'] == null ? undefined : json['receiver_inn'], + 'receiver_kpp': json['receiver_kpp'] == null ? undefined : json['receiver_kpp'], + 'receiver_name': json['receiver_name'] == null ? undefined : json['receiver_name'], + 'start_date': json['start_date'] == null ? undefined : json['start_date'], + 'stop_date': json['stop_date'] == null ? undefined : json['stop_date'], + }; +} +function GetRealizationReportResponseV2HeaderToJSON(value) { + if (value == null) { + return value; + } + return { + 'contract_date': value['contract_date'], + 'contract_number': value['contract_number'], + 'currency_sys_name': value['currency_sys_name'], + 'doc_date': value['doc_date'], + 'number': value['number'], + 'payer_inn': value['payer_inn'], + 'payer_kpp': value['payer_kpp'], + 'payer_name': value['payer_name'], + 'receiver_inn': value['receiver_inn'], + 'receiver_kpp': value['receiver_kpp'], + 'receiver_name': value['receiver_name'], + 'start_date': value['start_date'], + 'stop_date': value['stop_date'], + }; +} diff --git a/dist/models/GetRealizationReportResponseV2Result.d.ts b/dist/models/GetRealizationReportResponseV2Result.d.ts new file mode 100644 index 0000000..4909875 --- /dev/null +++ b/dist/models/GetRealizationReportResponseV2Result.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetRealizationReportResponseV2Header } from './GetRealizationReportResponseV2Header'; +import type { GetRealizationReportResponseV2Row } from './GetRealizationReportResponseV2Row'; +/** + * Результат запроса. + * @export + * @interface GetRealizationReportResponseV2Result + */ +export interface GetRealizationReportResponseV2Result { + /** + * + * @type {GetRealizationReportResponseV2Header} + * @memberof GetRealizationReportResponseV2Result + */ + header?: GetRealizationReportResponseV2Header; + /** + * Таблица отчёта. + * @type {Array} + * @memberof GetRealizationReportResponseV2Result + */ + rows?: Array; +} +/** + * Check if a given object implements the GetRealizationReportResponseV2Result interface. + */ +export declare function instanceOfGetRealizationReportResponseV2Result(value: object): value is GetRealizationReportResponseV2Result; +export declare function GetRealizationReportResponseV2ResultFromJSON(json: any): GetRealizationReportResponseV2Result; +export declare function GetRealizationReportResponseV2ResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportResponseV2Result; +export declare function GetRealizationReportResponseV2ResultToJSON(value?: GetRealizationReportResponseV2Result | null): any; diff --git a/dist/models/GetRealizationReportResponseV2Result.js b/dist/models/GetRealizationReportResponseV2Result.js new file mode 100644 index 0000000..1ebe488 --- /dev/null +++ b/dist/models/GetRealizationReportResponseV2Result.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetRealizationReportResponseV2Result = instanceOfGetRealizationReportResponseV2Result; +exports.GetRealizationReportResponseV2ResultFromJSON = GetRealizationReportResponseV2ResultFromJSON; +exports.GetRealizationReportResponseV2ResultFromJSONTyped = GetRealizationReportResponseV2ResultFromJSONTyped; +exports.GetRealizationReportResponseV2ResultToJSON = GetRealizationReportResponseV2ResultToJSON; +const GetRealizationReportResponseV2Header_1 = require("./GetRealizationReportResponseV2Header"); +const GetRealizationReportResponseV2Row_1 = require("./GetRealizationReportResponseV2Row"); +/** + * Check if a given object implements the GetRealizationReportResponseV2Result interface. + */ +function instanceOfGetRealizationReportResponseV2Result(value) { + return true; +} +function GetRealizationReportResponseV2ResultFromJSON(json) { + return GetRealizationReportResponseV2ResultFromJSONTyped(json, false); +} +function GetRealizationReportResponseV2ResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'header': json['header'] == null ? undefined : (0, GetRealizationReportResponseV2Header_1.GetRealizationReportResponseV2HeaderFromJSON)(json['header']), + 'rows': json['rows'] == null ? undefined : (json['rows'].map(GetRealizationReportResponseV2Row_1.GetRealizationReportResponseV2RowFromJSON)), + }; +} +function GetRealizationReportResponseV2ResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'header': (0, GetRealizationReportResponseV2Header_1.GetRealizationReportResponseV2HeaderToJSON)(value['header']), + 'rows': value['rows'] == null ? undefined : (value['rows'].map(GetRealizationReportResponseV2Row_1.GetRealizationReportResponseV2RowToJSON)), + }; +} diff --git a/dist/models/GetRealizationReportResponseV2Row.d.ts b/dist/models/GetRealizationReportResponseV2Row.d.ts new file mode 100644 index 0000000..854dc93 --- /dev/null +++ b/dist/models/GetRealizationReportResponseV2Row.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RowItemCommissionReturn } from './RowItemCommissionReturn'; +import type { RowItem } from './RowItem'; +import type { RowItemCommission } from './RowItemCommission'; +/** + * + * @export + * @interface GetRealizationReportResponseV2Row + */ +export interface GetRealizationReportResponseV2Row { + /** + * Доля комиссии за продажу по категории. + * @type {number} + * @memberof GetRealizationReportResponseV2Row + */ + commission_ratio?: number; + /** + * + * @type {RowItemCommission} + * @memberof GetRealizationReportResponseV2Row + */ + delivery_commission?: RowItemCommission; + /** + * + * @type {RowItem} + * @memberof GetRealizationReportResponseV2Row + */ + item?: RowItem; + /** + * + * @type {RowItemCommissionReturn} + * @memberof GetRealizationReportResponseV2Row + */ + return_commission?: RowItemCommissionReturn; + /** + * Номер строки в отчёте. + * @type {number} + * @memberof GetRealizationReportResponseV2Row + */ + rowNumber?: number; + /** + * Цена продавца с учётом скидки. + * @type {number} + * @memberof GetRealizationReportResponseV2Row + */ + seller_price_per_instance?: number; +} +/** + * Check if a given object implements the GetRealizationReportResponseV2Row interface. + */ +export declare function instanceOfGetRealizationReportResponseV2Row(value: object): value is GetRealizationReportResponseV2Row; +export declare function GetRealizationReportResponseV2RowFromJSON(json: any): GetRealizationReportResponseV2Row; +export declare function GetRealizationReportResponseV2RowFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRealizationReportResponseV2Row; +export declare function GetRealizationReportResponseV2RowToJSON(value?: GetRealizationReportResponseV2Row | null): any; diff --git a/dist/models/GetRealizationReportResponseV2Row.js b/dist/models/GetRealizationReportResponseV2Row.js new file mode 100644 index 0000000..2c9f85c --- /dev/null +++ b/dist/models/GetRealizationReportResponseV2Row.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetRealizationReportResponseV2Row = instanceOfGetRealizationReportResponseV2Row; +exports.GetRealizationReportResponseV2RowFromJSON = GetRealizationReportResponseV2RowFromJSON; +exports.GetRealizationReportResponseV2RowFromJSONTyped = GetRealizationReportResponseV2RowFromJSONTyped; +exports.GetRealizationReportResponseV2RowToJSON = GetRealizationReportResponseV2RowToJSON; +const RowItemCommissionReturn_1 = require("./RowItemCommissionReturn"); +const RowItem_1 = require("./RowItem"); +const RowItemCommission_1 = require("./RowItemCommission"); +/** + * Check if a given object implements the GetRealizationReportResponseV2Row interface. + */ +function instanceOfGetRealizationReportResponseV2Row(value) { + return true; +} +function GetRealizationReportResponseV2RowFromJSON(json) { + return GetRealizationReportResponseV2RowFromJSONTyped(json, false); +} +function GetRealizationReportResponseV2RowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commission_ratio': json['commission_ratio'] == null ? undefined : json['commission_ratio'], + 'delivery_commission': json['delivery_commission'] == null ? undefined : (0, RowItemCommission_1.RowItemCommissionFromJSON)(json['delivery_commission']), + 'item': json['item'] == null ? undefined : (0, RowItem_1.RowItemFromJSON)(json['item']), + 'return_commission': json['return_commission'] == null ? undefined : (0, RowItemCommissionReturn_1.RowItemCommissionReturnFromJSON)(json['return_commission']), + 'rowNumber': json['rowNumber'] == null ? undefined : json['rowNumber'], + 'seller_price_per_instance': json['seller_price_per_instance'] == null ? undefined : json['seller_price_per_instance'], + }; +} +function GetRealizationReportResponseV2RowToJSON(value) { + if (value == null) { + return value; + } + return { + 'commission_ratio': value['commission_ratio'], + 'delivery_commission': (0, RowItemCommission_1.RowItemCommissionToJSON)(value['delivery_commission']), + 'item': (0, RowItem_1.RowItemToJSON)(value['item']), + 'return_commission': (0, RowItemCommissionReturn_1.RowItemCommissionReturnToJSON)(value['return_commission']), + 'rowNumber': value['rowNumber'], + 'seller_price_per_instance': value['seller_price_per_instance'], + }; +} diff --git a/dist/models/GetReturnsListRequestFilter.d.ts b/dist/models/GetReturnsListRequestFilter.d.ts new file mode 100644 index 0000000..7ffc380 --- /dev/null +++ b/dist/models/GetReturnsListRequestFilter.d.ts @@ -0,0 +1,141 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1TimeRangeVisualStatus } from './V1TimeRangeVisualStatus'; +import type { V1TimeRangeStorageTariffication } from './V1TimeRangeStorageTariffication'; +import type { V1TimeRangeReturnDate } from './V1TimeRangeReturnDate'; +/** + * Фильтры. Используйте только один фильтр в запросе: `logistic_return_date`, `storage_tariffication_start_date` или `visual_status_change_moment`, иначе вернётся ошибка. + * + * @export + * @interface GetReturnsListRequestFilter + */ +export interface GetReturnsListRequestFilter { + /** + * + * @type {V1TimeRangeReturnDate} + * @memberof GetReturnsListRequestFilter + */ + logistic_return_date?: V1TimeRangeReturnDate; + /** + * + * @type {V1TimeRangeStorageTariffication} + * @memberof GetReturnsListRequestFilter + */ + storage_tariffication_start_date?: V1TimeRangeStorageTariffication; + /** + * + * @type {V1TimeRangeVisualStatus} + * @memberof GetReturnsListRequestFilter + */ + visual_status_change_moment?: V1TimeRangeVisualStatus; + /** + * Фильтр по идентификатору заказа. + * @type {number} + * @memberof GetReturnsListRequestFilter + */ + order_id?: number; + /** + * Фильтр по номеру отправления. Передавайте не больше 50 постингов. + * @type {Array} + * @memberof GetReturnsListRequestFilter + */ + posting_numbers?: Array; + /** + * Фильтр по названию товара. + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + product_name?: string; + /** + * Фильтр по артикулу товара. + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + offer_id?: string; + /** + * Фильтр по статусу возврата: + * - `DisputeOpened` — открыт спор с покупателем; + * - `OnSellerApproval` — на согласовании у продавца; + * - `ArrivedAtReturnPlace` — в пункте выдачи; + * - `OnSellerClarification` — на уточнении у продавца; + * - `OnSellerClarificationAfterPartialCompensation` — на уточнении у продавца после частичной компенсации; + * - `OfferedPartialCompensation` — предложена частичная компенсация; + * - `ReturnMoneyApproved` — одобрен возврат денег; + * - `PartialCompensationReturned` — вернули часть денег; + * - `CancelledDisputeNotOpen` — возврат отклонён, спор не открыт; + * - `Rejected` — заявка отклонена; + * - `CrmRejected` — заявка отклонена Ozon; + * - `Cancelled` — заявка отменена; + * - `Approved` — заявка одобрена продавцом; + * - `ApprovedByOzon` — заявка одобрена Ozon; + * - `ReceivedBySeller` — продавец получил возврат; + * - `MovingToSeller` — возврат на пути к продавцу; + * - `ReturningToSellerByCourier` — курьер везёт возврат продавцу; + * - `Utilizing` — на утилизации; + * - `Utilized` — утилизирован; + * - `MoneyReturned` — покупателю вернули всю сумму; + * - `PartialCompensationInProcess` — одобрен частичный возврат денег; + * - `DisputeYouOpened` — продавец открыл спор; + * - `CompensationRejected` — отказано в компенсации; + * - `DisputeOpening` — обращение в поддержку отправлено; + * - `CompensationOffered` — ожидает вашего решения по компенсации; + * - `WaitingCompensation` — ожидает компенсации; + * - `SendingError` — ошибка при отправке обращения в поддержку; + * - `CompensationRejectedBySla` — истёк срок решения; + * - `CompensationRejectedBySeller` — продавец отказался от компенсации; + * - `MovingToOzon` — едет на склад Ozon; + * - `ReturnedToOzon` — на складе Ozon; + * - `MoneyReturnedBySystem` — быстрый возврат; + * - `WaitingShipment` — ожидает отправки. + * + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + visual_status_name?: string; + /** + * Фильтр по идентификатору склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {number} + * @memberof GetReturnsListRequestFilter + */ + warehouse_id?: number; + /** + * Фильтр по штрихкоду возвратной этикетки. + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + barcode?: string; + /** + * Фильтр по схеме доставки: `FBS` или `FBO`. + * + * @type {string} + * @memberof GetReturnsListRequestFilter + */ + return_schema?: string; + /** + * Фильтр по статусу компенсации: + * - `1` — отправлена; + * - `2` — получена; + * - `3` — отменена; + * - `4` — проведена декомпенсация. + * + * @type {number} + * @memberof GetReturnsListRequestFilter + */ + compensation_status_id?: number; +} +/** + * Check if a given object implements the GetReturnsListRequestFilter interface. + */ +export declare function instanceOfGetReturnsListRequestFilter(value: object): value is GetReturnsListRequestFilter; +export declare function GetReturnsListRequestFilterFromJSON(json: any): GetReturnsListRequestFilter; +export declare function GetReturnsListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListRequestFilter; +export declare function GetReturnsListRequestFilterToJSON(value?: GetReturnsListRequestFilter | null): any; diff --git a/dist/models/GetReturnsListRequestFilter.js b/dist/models/GetReturnsListRequestFilter.js new file mode 100644 index 0000000..496acda --- /dev/null +++ b/dist/models/GetReturnsListRequestFilter.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListRequestFilter = instanceOfGetReturnsListRequestFilter; +exports.GetReturnsListRequestFilterFromJSON = GetReturnsListRequestFilterFromJSON; +exports.GetReturnsListRequestFilterFromJSONTyped = GetReturnsListRequestFilterFromJSONTyped; +exports.GetReturnsListRequestFilterToJSON = GetReturnsListRequestFilterToJSON; +const V1TimeRangeVisualStatus_1 = require("./V1TimeRangeVisualStatus"); +const V1TimeRangeStorageTariffication_1 = require("./V1TimeRangeStorageTariffication"); +const V1TimeRangeReturnDate_1 = require("./V1TimeRangeReturnDate"); +/** + * Check if a given object implements the GetReturnsListRequestFilter interface. + */ +function instanceOfGetReturnsListRequestFilter(value) { + return true; +} +function GetReturnsListRequestFilterFromJSON(json) { + return GetReturnsListRequestFilterFromJSONTyped(json, false); +} +function GetReturnsListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'logistic_return_date': json['logistic_return_date'] == null ? undefined : (0, V1TimeRangeReturnDate_1.V1TimeRangeReturnDateFromJSON)(json['logistic_return_date']), + 'storage_tariffication_start_date': json['storage_tariffication_start_date'] == null ? undefined : (0, V1TimeRangeStorageTariffication_1.V1TimeRangeStorageTarifficationFromJSON)(json['storage_tariffication_start_date']), + 'visual_status_change_moment': json['visual_status_change_moment'] == null ? undefined : (0, V1TimeRangeVisualStatus_1.V1TimeRangeVisualStatusFromJSON)(json['visual_status_change_moment']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'visual_status_name': json['visual_status_name'] == null ? undefined : json['visual_status_name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'return_schema': json['return_schema'] == null ? undefined : json['return_schema'], + 'compensation_status_id': json['compensation_status_id'] == null ? undefined : json['compensation_status_id'], + }; +} +function GetReturnsListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'logistic_return_date': (0, V1TimeRangeReturnDate_1.V1TimeRangeReturnDateToJSON)(value['logistic_return_date']), + 'storage_tariffication_start_date': (0, V1TimeRangeStorageTariffication_1.V1TimeRangeStorageTarifficationToJSON)(value['storage_tariffication_start_date']), + 'visual_status_change_moment': (0, V1TimeRangeVisualStatus_1.V1TimeRangeVisualStatusToJSON)(value['visual_status_change_moment']), + 'order_id': value['order_id'], + 'posting_numbers': value['posting_numbers'], + 'product_name': value['product_name'], + 'offer_id': value['offer_id'], + 'visual_status_name': value['visual_status_name'], + 'warehouse_id': value['warehouse_id'], + 'barcode': value['barcode'], + 'return_schema': value['return_schema'], + 'compensation_status_id': value['compensation_status_id'], + }; +} diff --git a/dist/models/GetReturnsListResponseAdditionalInfo.d.ts b/dist/models/GetReturnsListResponseAdditionalInfo.d.ts new file mode 100644 index 0000000..e72be1f --- /dev/null +++ b/dist/models/GetReturnsListResponseAdditionalInfo.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительная информация. + * @export + * @interface GetReturnsListResponseAdditionalInfo + */ +export interface GetReturnsListResponseAdditionalInfo { + /** + * `true`, если возврат вскрыт. + * + * @type {boolean} + * @memberof GetReturnsListResponseAdditionalInfo + */ + is_opened?: boolean; + /** + * `true`, если возврат относится к товарам «Суперэконом». + * + * @type {boolean} + * @memberof GetReturnsListResponseAdditionalInfo + */ + is_super_econom?: boolean; +} +/** + * Check if a given object implements the GetReturnsListResponseAdditionalInfo interface. + */ +export declare function instanceOfGetReturnsListResponseAdditionalInfo(value: object): value is GetReturnsListResponseAdditionalInfo; +export declare function GetReturnsListResponseAdditionalInfoFromJSON(json: any): GetReturnsListResponseAdditionalInfo; +export declare function GetReturnsListResponseAdditionalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseAdditionalInfo; +export declare function GetReturnsListResponseAdditionalInfoToJSON(value?: GetReturnsListResponseAdditionalInfo | null): any; diff --git a/dist/models/GetReturnsListResponseAdditionalInfo.js b/dist/models/GetReturnsListResponseAdditionalInfo.js new file mode 100644 index 0000000..29b31d6 --- /dev/null +++ b/dist/models/GetReturnsListResponseAdditionalInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseAdditionalInfo = instanceOfGetReturnsListResponseAdditionalInfo; +exports.GetReturnsListResponseAdditionalInfoFromJSON = GetReturnsListResponseAdditionalInfoFromJSON; +exports.GetReturnsListResponseAdditionalInfoFromJSONTyped = GetReturnsListResponseAdditionalInfoFromJSONTyped; +exports.GetReturnsListResponseAdditionalInfoToJSON = GetReturnsListResponseAdditionalInfoToJSON; +/** + * Check if a given object implements the GetReturnsListResponseAdditionalInfo interface. + */ +function instanceOfGetReturnsListResponseAdditionalInfo(value) { + return true; +} +function GetReturnsListResponseAdditionalInfoFromJSON(json) { + return GetReturnsListResponseAdditionalInfoFromJSONTyped(json, false); +} +function GetReturnsListResponseAdditionalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_opened': json['is_opened'] == null ? undefined : json['is_opened'], + 'is_super_econom': json['is_super_econom'] == null ? undefined : json['is_super_econom'], + }; +} +function GetReturnsListResponseAdditionalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_opened': value['is_opened'], + 'is_super_econom': value['is_super_econom'], + }; +} diff --git a/dist/models/GetReturnsListResponseCompensation.d.ts b/dist/models/GetReturnsListResponseCompensation.d.ts new file mode 100644 index 0000000..a23a918 --- /dev/null +++ b/dist/models/GetReturnsListResponseCompensation.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListResponseCompensationStatus } from './GetReturnsListResponseCompensationStatus'; +/** + * Информация о статусе компенсации. + * @export + * @interface GetReturnsListResponseCompensation + */ +export interface GetReturnsListResponseCompensation { + /** + * + * @type {GetReturnsListResponseCompensationStatus} + * @memberof GetReturnsListResponseCompensation + */ + status?: GetReturnsListResponseCompensationStatus; + /** + * Дата изменения статуса компенсации. + * @type {string} + * @memberof GetReturnsListResponseCompensation + */ + change_moment?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseCompensation interface. + */ +export declare function instanceOfGetReturnsListResponseCompensation(value: object): value is GetReturnsListResponseCompensation; +export declare function GetReturnsListResponseCompensationFromJSON(json: any): GetReturnsListResponseCompensation; +export declare function GetReturnsListResponseCompensationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseCompensation; +export declare function GetReturnsListResponseCompensationToJSON(value?: GetReturnsListResponseCompensation | null): any; diff --git a/dist/models/GetReturnsListResponseCompensation.js b/dist/models/GetReturnsListResponseCompensation.js new file mode 100644 index 0000000..91817b7 --- /dev/null +++ b/dist/models/GetReturnsListResponseCompensation.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseCompensation = instanceOfGetReturnsListResponseCompensation; +exports.GetReturnsListResponseCompensationFromJSON = GetReturnsListResponseCompensationFromJSON; +exports.GetReturnsListResponseCompensationFromJSONTyped = GetReturnsListResponseCompensationFromJSONTyped; +exports.GetReturnsListResponseCompensationToJSON = GetReturnsListResponseCompensationToJSON; +const GetReturnsListResponseCompensationStatus_1 = require("./GetReturnsListResponseCompensationStatus"); +/** + * Check if a given object implements the GetReturnsListResponseCompensation interface. + */ +function instanceOfGetReturnsListResponseCompensation(value) { + return true; +} +function GetReturnsListResponseCompensationFromJSON(json) { + return GetReturnsListResponseCompensationFromJSONTyped(json, false); +} +function GetReturnsListResponseCompensationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : (0, GetReturnsListResponseCompensationStatus_1.GetReturnsListResponseCompensationStatusFromJSON)(json['status']), + 'change_moment': json['change_moment'] == null ? undefined : json['change_moment'], + }; +} +function GetReturnsListResponseCompensationToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': (0, GetReturnsListResponseCompensationStatus_1.GetReturnsListResponseCompensationStatusToJSON)(value['status']), + 'change_moment': value['change_moment'], + }; +} diff --git a/dist/models/GetReturnsListResponseCompensationStatus.d.ts b/dist/models/GetReturnsListResponseCompensationStatus.d.ts new file mode 100644 index 0000000..b549874 --- /dev/null +++ b/dist/models/GetReturnsListResponseCompensationStatus.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус компенсации. + * @export + * @interface GetReturnsListResponseCompensationStatus + */ +export interface GetReturnsListResponseCompensationStatus { + /** + * Идентификатор статуса. + * @type {number} + * @memberof GetReturnsListResponseCompensationStatus + */ + id?: number; + /** + * Название статуса: + * - «Отправлено на компенсацию», + * - «Вы получили компенсацию», + * - «Компенсация отменена», + * - «Провели декомпенсацию». + * + * @type {string} + * @memberof GetReturnsListResponseCompensationStatus + */ + display_name?: string; + /** + * Системное название статуса: + * - `Sent` — отправлена; + * - `Received` — получена; + * - `Canceled` — отменена; + * - `DecompensationSent` — проведена декомпенсация. + * + * @type {string} + * @memberof GetReturnsListResponseCompensationStatus + */ + sys_name?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseCompensationStatus interface. + */ +export declare function instanceOfGetReturnsListResponseCompensationStatus(value: object): value is GetReturnsListResponseCompensationStatus; +export declare function GetReturnsListResponseCompensationStatusFromJSON(json: any): GetReturnsListResponseCompensationStatus; +export declare function GetReturnsListResponseCompensationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseCompensationStatus; +export declare function GetReturnsListResponseCompensationStatusToJSON(value?: GetReturnsListResponseCompensationStatus | null): any; diff --git a/dist/models/GetReturnsListResponseCompensationStatus.js b/dist/models/GetReturnsListResponseCompensationStatus.js new file mode 100644 index 0000000..a8787c7 --- /dev/null +++ b/dist/models/GetReturnsListResponseCompensationStatus.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseCompensationStatus = instanceOfGetReturnsListResponseCompensationStatus; +exports.GetReturnsListResponseCompensationStatusFromJSON = GetReturnsListResponseCompensationStatusFromJSON; +exports.GetReturnsListResponseCompensationStatusFromJSONTyped = GetReturnsListResponseCompensationStatusFromJSONTyped; +exports.GetReturnsListResponseCompensationStatusToJSON = GetReturnsListResponseCompensationStatusToJSON; +/** + * Check if a given object implements the GetReturnsListResponseCompensationStatus interface. + */ +function instanceOfGetReturnsListResponseCompensationStatus(value) { + return true; +} +function GetReturnsListResponseCompensationStatusFromJSON(json) { + return GetReturnsListResponseCompensationStatusFromJSONTyped(json, false); +} +function GetReturnsListResponseCompensationStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'display_name': json['display_name'] == null ? undefined : json['display_name'], + 'sys_name': json['sys_name'] == null ? undefined : json['sys_name'], + }; +} +function GetReturnsListResponseCompensationStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'display_name': value['display_name'], + 'sys_name': value['sys_name'], + }; +} diff --git a/dist/models/GetReturnsListResponseExemplar.d.ts b/dist/models/GetReturnsListResponseExemplar.d.ts new file mode 100644 index 0000000..c4a001e --- /dev/null +++ b/dist/models/GetReturnsListResponseExemplar.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetReturnsListResponseExemplar + */ +export interface GetReturnsListResponseExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof GetReturnsListResponseExemplar + */ + id?: number; +} +/** + * Check if a given object implements the GetReturnsListResponseExemplar interface. + */ +export declare function instanceOfGetReturnsListResponseExemplar(value: object): value is GetReturnsListResponseExemplar; +export declare function GetReturnsListResponseExemplarFromJSON(json: any): GetReturnsListResponseExemplar; +export declare function GetReturnsListResponseExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseExemplar; +export declare function GetReturnsListResponseExemplarToJSON(value?: GetReturnsListResponseExemplar | null): any; diff --git a/dist/models/GetReturnsListResponseExemplar.js b/dist/models/GetReturnsListResponseExemplar.js new file mode 100644 index 0000000..b0a6f99 --- /dev/null +++ b/dist/models/GetReturnsListResponseExemplar.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseExemplar = instanceOfGetReturnsListResponseExemplar; +exports.GetReturnsListResponseExemplarFromJSON = GetReturnsListResponseExemplarFromJSON; +exports.GetReturnsListResponseExemplarFromJSONTyped = GetReturnsListResponseExemplarFromJSONTyped; +exports.GetReturnsListResponseExemplarToJSON = GetReturnsListResponseExemplarToJSON; +/** + * Check if a given object implements the GetReturnsListResponseExemplar interface. + */ +function instanceOfGetReturnsListResponseExemplar(value) { + return true; +} +function GetReturnsListResponseExemplarFromJSON(json) { + return GetReturnsListResponseExemplarFromJSONTyped(json, false); +} +function GetReturnsListResponseExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + }; +} +function GetReturnsListResponseExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/GetReturnsListResponseLogistic.d.ts b/dist/models/GetReturnsListResponseLogistic.d.ts new file mode 100644 index 0000000..f46fe8a --- /dev/null +++ b/dist/models/GetReturnsListResponseLogistic.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о возврате. + * @export + * @interface GetReturnsListResponseLogistic + */ +export interface GetReturnsListResponseLogistic { + /** + * Дата, когда заказ поставили на технический возврат. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + technical_return_moment?: string; + /** + * Дата, когда возврат прибыл на фулфилмент или выдан продавцу. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + final_moment?: string; + /** + * Дата, когда продавцу компенсировали возврат. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + cancelled_with_compensation_moment?: string; + /** + * Дата, когда покупатель вернул товар. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + return_date?: string; + /** + * Штрихкод этикетки возврата. + * @type {string} + * @memberof GetReturnsListResponseLogistic + */ + barcode?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseLogistic interface. + */ +export declare function instanceOfGetReturnsListResponseLogistic(value: object): value is GetReturnsListResponseLogistic; +export declare function GetReturnsListResponseLogisticFromJSON(json: any): GetReturnsListResponseLogistic; +export declare function GetReturnsListResponseLogisticFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseLogistic; +export declare function GetReturnsListResponseLogisticToJSON(value?: GetReturnsListResponseLogistic | null): any; diff --git a/dist/models/GetReturnsListResponseLogistic.js b/dist/models/GetReturnsListResponseLogistic.js new file mode 100644 index 0000000..745f5c0 --- /dev/null +++ b/dist/models/GetReturnsListResponseLogistic.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseLogistic = instanceOfGetReturnsListResponseLogistic; +exports.GetReturnsListResponseLogisticFromJSON = GetReturnsListResponseLogisticFromJSON; +exports.GetReturnsListResponseLogisticFromJSONTyped = GetReturnsListResponseLogisticFromJSONTyped; +exports.GetReturnsListResponseLogisticToJSON = GetReturnsListResponseLogisticToJSON; +/** + * Check if a given object implements the GetReturnsListResponseLogistic interface. + */ +function instanceOfGetReturnsListResponseLogistic(value) { + return true; +} +function GetReturnsListResponseLogisticFromJSON(json) { + return GetReturnsListResponseLogisticFromJSONTyped(json, false); +} +function GetReturnsListResponseLogisticFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'technical_return_moment': json['technical_return_moment'] == null ? undefined : json['technical_return_moment'], + 'final_moment': json['final_moment'] == null ? undefined : json['final_moment'], + 'cancelled_with_compensation_moment': json['cancelled_with_compensation_moment'] == null ? undefined : json['cancelled_with_compensation_moment'], + 'return_date': json['return_date'] == null ? undefined : json['return_date'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + }; +} +function GetReturnsListResponseLogisticToJSON(value) { + if (value == null) { + return value; + } + return { + 'technical_return_moment': value['technical_return_moment'], + 'final_moment': value['final_moment'], + 'cancelled_with_compensation_moment': value['cancelled_with_compensation_moment'], + 'return_date': value['return_date'], + 'barcode': value['barcode'], + }; +} diff --git a/dist/models/GetReturnsListResponsePlaceNow.d.ts b/dist/models/GetReturnsListResponsePlaceNow.d.ts new file mode 100644 index 0000000..3db3042 --- /dev/null +++ b/dist/models/GetReturnsListResponsePlaceNow.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад, где находится возврат. + * @export + * @interface GetReturnsListResponsePlaceNow + */ +export interface GetReturnsListResponsePlaceNow { + /** + * Идентификатор склада. + * @type {number} + * @memberof GetReturnsListResponsePlaceNow + */ + id?: number; + /** + * Название. + * @type {string} + * @memberof GetReturnsListResponsePlaceNow + */ + name?: string; + /** + * Адрес. + * @type {string} + * @memberof GetReturnsListResponsePlaceNow + */ + address?: string; +} +/** + * Check if a given object implements the GetReturnsListResponsePlaceNow interface. + */ +export declare function instanceOfGetReturnsListResponsePlaceNow(value: object): value is GetReturnsListResponsePlaceNow; +export declare function GetReturnsListResponsePlaceNowFromJSON(json: any): GetReturnsListResponsePlaceNow; +export declare function GetReturnsListResponsePlaceNowFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponsePlaceNow; +export declare function GetReturnsListResponsePlaceNowToJSON(value?: GetReturnsListResponsePlaceNow | null): any; diff --git a/dist/models/GetReturnsListResponsePlaceNow.js b/dist/models/GetReturnsListResponsePlaceNow.js new file mode 100644 index 0000000..1034f40 --- /dev/null +++ b/dist/models/GetReturnsListResponsePlaceNow.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponsePlaceNow = instanceOfGetReturnsListResponsePlaceNow; +exports.GetReturnsListResponsePlaceNowFromJSON = GetReturnsListResponsePlaceNowFromJSON; +exports.GetReturnsListResponsePlaceNowFromJSONTyped = GetReturnsListResponsePlaceNowFromJSONTyped; +exports.GetReturnsListResponsePlaceNowToJSON = GetReturnsListResponsePlaceNowToJSON; +/** + * Check if a given object implements the GetReturnsListResponsePlaceNow interface. + */ +function instanceOfGetReturnsListResponsePlaceNow(value) { + return true; +} +function GetReturnsListResponsePlaceNowFromJSON(json) { + return GetReturnsListResponsePlaceNowFromJSONTyped(json, false); +} +function GetReturnsListResponsePlaceNowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'address': json['address'] == null ? undefined : json['address'], + }; +} +function GetReturnsListResponsePlaceNowToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'address': value['address'], + }; +} diff --git a/dist/models/GetReturnsListResponsePlaceTarget.d.ts b/dist/models/GetReturnsListResponsePlaceTarget.d.ts new file mode 100644 index 0000000..ec9ac4f --- /dev/null +++ b/dist/models/GetReturnsListResponsePlaceTarget.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад, куда едет возврат. + * @export + * @interface GetReturnsListResponsePlaceTarget + */ +export interface GetReturnsListResponsePlaceTarget { + /** + * Идентификатор склада. + * @type {number} + * @memberof GetReturnsListResponsePlaceTarget + */ + id?: number; + /** + * Название. + * @type {string} + * @memberof GetReturnsListResponsePlaceTarget + */ + name?: string; + /** + * Адрес. + * @type {string} + * @memberof GetReturnsListResponsePlaceTarget + */ + address?: string; +} +/** + * Check if a given object implements the GetReturnsListResponsePlaceTarget interface. + */ +export declare function instanceOfGetReturnsListResponsePlaceTarget(value: object): value is GetReturnsListResponsePlaceTarget; +export declare function GetReturnsListResponsePlaceTargetFromJSON(json: any): GetReturnsListResponsePlaceTarget; +export declare function GetReturnsListResponsePlaceTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponsePlaceTarget; +export declare function GetReturnsListResponsePlaceTargetToJSON(value?: GetReturnsListResponsePlaceTarget | null): any; diff --git a/dist/models/GetReturnsListResponsePlaceTarget.js b/dist/models/GetReturnsListResponsePlaceTarget.js new file mode 100644 index 0000000..c05916d --- /dev/null +++ b/dist/models/GetReturnsListResponsePlaceTarget.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponsePlaceTarget = instanceOfGetReturnsListResponsePlaceTarget; +exports.GetReturnsListResponsePlaceTargetFromJSON = GetReturnsListResponsePlaceTargetFromJSON; +exports.GetReturnsListResponsePlaceTargetFromJSONTyped = GetReturnsListResponsePlaceTargetFromJSONTyped; +exports.GetReturnsListResponsePlaceTargetToJSON = GetReturnsListResponsePlaceTargetToJSON; +/** + * Check if a given object implements the GetReturnsListResponsePlaceTarget interface. + */ +function instanceOfGetReturnsListResponsePlaceTarget(value) { + return true; +} +function GetReturnsListResponsePlaceTargetFromJSON(json) { + return GetReturnsListResponsePlaceTargetFromJSONTyped(json, false); +} +function GetReturnsListResponsePlaceTargetFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'address': json['address'] == null ? undefined : json['address'], + }; +} +function GetReturnsListResponsePlaceTargetToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'address': value['address'], + }; +} diff --git a/dist/models/GetReturnsListResponseProduct.d.ts b/dist/models/GetReturnsListResponseProduct.d.ts new file mode 100644 index 0000000..87d1741 --- /dev/null +++ b/dist/models/GetReturnsListResponseProduct.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerReturnsv1MoneyWithoutCommission } from './SellerReturnsv1MoneyWithoutCommission'; +import type { SellerReturnsv1MoneyCommission } from './SellerReturnsv1MoneyCommission'; +import type { SellerReturnsv1MoneyProduct } from './SellerReturnsv1MoneyProduct'; +/** + * Информация о товаре. + * @export + * @interface GetReturnsListResponseProduct + */ +export interface GetReturnsListResponseProduct { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof GetReturnsListResponseProduct + */ + sku?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof GetReturnsListResponseProduct + */ + offer_id?: string; + /** + * Название товара. + * @type {string} + * @memberof GetReturnsListResponseProduct + */ + name?: string; + /** + * + * @type {SellerReturnsv1MoneyProduct} + * @memberof GetReturnsListResponseProduct + */ + price?: SellerReturnsv1MoneyProduct; + /** + * + * @type {SellerReturnsv1MoneyWithoutCommission} + * @memberof GetReturnsListResponseProduct + */ + price_without_commission?: SellerReturnsv1MoneyWithoutCommission; + /** + * Процент комиссии. + * @type {number} + * @memberof GetReturnsListResponseProduct + */ + commission_percent?: number; + /** + * + * @type {SellerReturnsv1MoneyCommission} + * @memberof GetReturnsListResponseProduct + */ + commission?: SellerReturnsv1MoneyCommission; + /** + * Количество товара. + * @type {number} + * @memberof GetReturnsListResponseProduct + */ + quantity?: number; +} +/** + * Check if a given object implements the GetReturnsListResponseProduct interface. + */ +export declare function instanceOfGetReturnsListResponseProduct(value: object): value is GetReturnsListResponseProduct; +export declare function GetReturnsListResponseProductFromJSON(json: any): GetReturnsListResponseProduct; +export declare function GetReturnsListResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseProduct; +export declare function GetReturnsListResponseProductToJSON(value?: GetReturnsListResponseProduct | null): any; diff --git a/dist/models/GetReturnsListResponseProduct.js b/dist/models/GetReturnsListResponseProduct.js new file mode 100644 index 0000000..910efa6 --- /dev/null +++ b/dist/models/GetReturnsListResponseProduct.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseProduct = instanceOfGetReturnsListResponseProduct; +exports.GetReturnsListResponseProductFromJSON = GetReturnsListResponseProductFromJSON; +exports.GetReturnsListResponseProductFromJSONTyped = GetReturnsListResponseProductFromJSONTyped; +exports.GetReturnsListResponseProductToJSON = GetReturnsListResponseProductToJSON; +const SellerReturnsv1MoneyWithoutCommission_1 = require("./SellerReturnsv1MoneyWithoutCommission"); +const SellerReturnsv1MoneyCommission_1 = require("./SellerReturnsv1MoneyCommission"); +const SellerReturnsv1MoneyProduct_1 = require("./SellerReturnsv1MoneyProduct"); +/** + * Check if a given object implements the GetReturnsListResponseProduct interface. + */ +function instanceOfGetReturnsListResponseProduct(value) { + return true; +} +function GetReturnsListResponseProductFromJSON(json) { + return GetReturnsListResponseProductFromJSONTyped(json, false); +} +function GetReturnsListResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : (0, SellerReturnsv1MoneyProduct_1.SellerReturnsv1MoneyProductFromJSON)(json['price']), + 'price_without_commission': json['price_without_commission'] == null ? undefined : (0, SellerReturnsv1MoneyWithoutCommission_1.SellerReturnsv1MoneyWithoutCommissionFromJSON)(json['price_without_commission']), + 'commission_percent': json['commission_percent'] == null ? undefined : json['commission_percent'], + 'commission': json['commission'] == null ? undefined : (0, SellerReturnsv1MoneyCommission_1.SellerReturnsv1MoneyCommissionFromJSON)(json['commission']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + }; +} +function GetReturnsListResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'offer_id': value['offer_id'], + 'name': value['name'], + 'price': (0, SellerReturnsv1MoneyProduct_1.SellerReturnsv1MoneyProductToJSON)(value['price']), + 'price_without_commission': (0, SellerReturnsv1MoneyWithoutCommission_1.SellerReturnsv1MoneyWithoutCommissionToJSON)(value['price_without_commission']), + 'commission_percent': value['commission_percent'], + 'commission': (0, SellerReturnsv1MoneyCommission_1.SellerReturnsv1MoneyCommissionToJSON)(value['commission']), + 'quantity': value['quantity'], + }; +} diff --git a/dist/models/GetReturnsListResponseReturnsItem.d.ts b/dist/models/GetReturnsListResponseReturnsItem.d.ts new file mode 100644 index 0000000..ca34369 --- /dev/null +++ b/dist/models/GetReturnsListResponseReturnsItem.d.ts @@ -0,0 +1,163 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListResponseAdditionalInfo } from './GetReturnsListResponseAdditionalInfo'; +import type { GetReturnsListResponsePlaceTarget } from './GetReturnsListResponsePlaceTarget'; +import type { GetReturnsListResponseProduct } from './GetReturnsListResponseProduct'; +import type { GetReturnsListResponseVisual } from './GetReturnsListResponseVisual'; +import type { GetReturnsListResponseCompensation } from './GetReturnsListResponseCompensation'; +import type { GetReturnsListResponsePlaceNow } from './GetReturnsListResponsePlaceNow'; +import type { GetReturnsListResponseExemplar } from './GetReturnsListResponseExemplar'; +import type { GetReturnsListResponseLogistic } from './GetReturnsListResponseLogistic'; +import type { GetReturnsListResponseStorage } from './GetReturnsListResponseStorage'; +/** + * + * @export + * @interface GetReturnsListResponseReturnsItem + */ +export interface GetReturnsListResponseReturnsItem { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof GetReturnsListResponseReturnsItem + */ + exemplars?: Array; + /** + * Идентификатор возврата. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + id?: number; + /** + * Идентификатор продавца. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + company_id?: number; + /** + * Причина возврата или отмены. + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + return_reason_name?: string; + /** + * Тип возврата: + * `Cancellation` - отмена (до вручения); + * `FullReturn` - полный отказ при вручении; + * `PartialReturn` - частичный отказ при вручении; + * `ClientReturn` - клиентский возврат (после вручения); + * `Unknown` - технический возврат. + * + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + type?: string; + /** + * Схема возврата: + * `FBS`; + * `FBO`. + * + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + schema?: string; + /** + * Идентификатор заказа. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + order_id?: number; + /** + * Номер заказа. + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + order_number?: string; + /** + * + * @type {GetReturnsListResponsePlaceNow} + * @memberof GetReturnsListResponseReturnsItem + */ + place?: GetReturnsListResponsePlaceNow; + /** + * + * @type {GetReturnsListResponsePlaceTarget} + * @memberof GetReturnsListResponseReturnsItem + */ + target_place?: GetReturnsListResponsePlaceTarget; + /** + * + * @type {GetReturnsListResponseStorage} + * @memberof GetReturnsListResponseReturnsItem + */ + storage?: GetReturnsListResponseStorage; + /** + * + * @type {GetReturnsListResponseProduct} + * @memberof GetReturnsListResponseReturnsItem + */ + product?: GetReturnsListResponseProduct; + /** + * + * @type {GetReturnsListResponseLogistic} + * @memberof GetReturnsListResponseReturnsItem + */ + logistic?: GetReturnsListResponseLogistic; + /** + * + * @type {GetReturnsListResponseVisual} + * @memberof GetReturnsListResponseReturnsItem + */ + visual?: GetReturnsListResponseVisual; + /** + * + * @type {GetReturnsListResponseAdditionalInfo} + * @memberof GetReturnsListResponseReturnsItem + */ + additional_info?: GetReturnsListResponseAdditionalInfo; + /** + * Предыдущий идентификатор возврата. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + source_id?: number; + /** + * Номер отправления. + * @type {string} + * @memberof GetReturnsListResponseReturnsItem + */ + posting_number?: string; + /** + * Штрихкод изначального отправления. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + clearing_id?: number; + /** + * Возвратный штрихкод изначального отправления. + * @type {number} + * @memberof GetReturnsListResponseReturnsItem + */ + return_clearing_id?: number; + /** + * + * @type {GetReturnsListResponseCompensation} + * @memberof GetReturnsListResponseReturnsItem + */ + compensation_status?: GetReturnsListResponseCompensation; +} +/** + * Check if a given object implements the GetReturnsListResponseReturnsItem interface. + */ +export declare function instanceOfGetReturnsListResponseReturnsItem(value: object): value is GetReturnsListResponseReturnsItem; +export declare function GetReturnsListResponseReturnsItemFromJSON(json: any): GetReturnsListResponseReturnsItem; +export declare function GetReturnsListResponseReturnsItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseReturnsItem; +export declare function GetReturnsListResponseReturnsItemToJSON(value?: GetReturnsListResponseReturnsItem | null): any; diff --git a/dist/models/GetReturnsListResponseReturnsItem.js b/dist/models/GetReturnsListResponseReturnsItem.js new file mode 100644 index 0000000..ad7c71f --- /dev/null +++ b/dist/models/GetReturnsListResponseReturnsItem.js @@ -0,0 +1,91 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseReturnsItem = instanceOfGetReturnsListResponseReturnsItem; +exports.GetReturnsListResponseReturnsItemFromJSON = GetReturnsListResponseReturnsItemFromJSON; +exports.GetReturnsListResponseReturnsItemFromJSONTyped = GetReturnsListResponseReturnsItemFromJSONTyped; +exports.GetReturnsListResponseReturnsItemToJSON = GetReturnsListResponseReturnsItemToJSON; +const GetReturnsListResponseAdditionalInfo_1 = require("./GetReturnsListResponseAdditionalInfo"); +const GetReturnsListResponsePlaceTarget_1 = require("./GetReturnsListResponsePlaceTarget"); +const GetReturnsListResponseProduct_1 = require("./GetReturnsListResponseProduct"); +const GetReturnsListResponseVisual_1 = require("./GetReturnsListResponseVisual"); +const GetReturnsListResponseCompensation_1 = require("./GetReturnsListResponseCompensation"); +const GetReturnsListResponsePlaceNow_1 = require("./GetReturnsListResponsePlaceNow"); +const GetReturnsListResponseExemplar_1 = require("./GetReturnsListResponseExemplar"); +const GetReturnsListResponseLogistic_1 = require("./GetReturnsListResponseLogistic"); +const GetReturnsListResponseStorage_1 = require("./GetReturnsListResponseStorage"); +/** + * Check if a given object implements the GetReturnsListResponseReturnsItem interface. + */ +function instanceOfGetReturnsListResponseReturnsItem(value) { + return true; +} +function GetReturnsListResponseReturnsItemFromJSON(json) { + return GetReturnsListResponseReturnsItemFromJSONTyped(json, false); +} +function GetReturnsListResponseReturnsItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(GetReturnsListResponseExemplar_1.GetReturnsListResponseExemplarFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], + 'company_id': json['company_id'] == null ? undefined : json['company_id'], + 'return_reason_name': json['return_reason_name'] == null ? undefined : json['return_reason_name'], + 'type': json['type'] == null ? undefined : json['type'], + 'schema': json['schema'] == null ? undefined : json['schema'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'place': json['place'] == null ? undefined : (0, GetReturnsListResponsePlaceNow_1.GetReturnsListResponsePlaceNowFromJSON)(json['place']), + 'target_place': json['target_place'] == null ? undefined : (0, GetReturnsListResponsePlaceTarget_1.GetReturnsListResponsePlaceTargetFromJSON)(json['target_place']), + 'storage': json['storage'] == null ? undefined : (0, GetReturnsListResponseStorage_1.GetReturnsListResponseStorageFromJSON)(json['storage']), + 'product': json['product'] == null ? undefined : (0, GetReturnsListResponseProduct_1.GetReturnsListResponseProductFromJSON)(json['product']), + 'logistic': json['logistic'] == null ? undefined : (0, GetReturnsListResponseLogistic_1.GetReturnsListResponseLogisticFromJSON)(json['logistic']), + 'visual': json['visual'] == null ? undefined : (0, GetReturnsListResponseVisual_1.GetReturnsListResponseVisualFromJSON)(json['visual']), + 'additional_info': json['additional_info'] == null ? undefined : (0, GetReturnsListResponseAdditionalInfo_1.GetReturnsListResponseAdditionalInfoFromJSON)(json['additional_info']), + 'source_id': json['source_id'] == null ? undefined : json['source_id'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'clearing_id': json['clearing_id'] == null ? undefined : json['clearing_id'], + 'return_clearing_id': json['return_clearing_id'] == null ? undefined : json['return_clearing_id'], + 'compensation_status': json['compensation_status'] == null ? undefined : (0, GetReturnsListResponseCompensation_1.GetReturnsListResponseCompensationFromJSON)(json['compensation_status']), + }; +} +function GetReturnsListResponseReturnsItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(GetReturnsListResponseExemplar_1.GetReturnsListResponseExemplarToJSON)), + 'id': value['id'], + 'company_id': value['company_id'], + 'return_reason_name': value['return_reason_name'], + 'type': value['type'], + 'schema': value['schema'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'place': (0, GetReturnsListResponsePlaceNow_1.GetReturnsListResponsePlaceNowToJSON)(value['place']), + 'target_place': (0, GetReturnsListResponsePlaceTarget_1.GetReturnsListResponsePlaceTargetToJSON)(value['target_place']), + 'storage': (0, GetReturnsListResponseStorage_1.GetReturnsListResponseStorageToJSON)(value['storage']), + 'product': (0, GetReturnsListResponseProduct_1.GetReturnsListResponseProductToJSON)(value['product']), + 'logistic': (0, GetReturnsListResponseLogistic_1.GetReturnsListResponseLogisticToJSON)(value['logistic']), + 'visual': (0, GetReturnsListResponseVisual_1.GetReturnsListResponseVisualToJSON)(value['visual']), + 'additional_info': (0, GetReturnsListResponseAdditionalInfo_1.GetReturnsListResponseAdditionalInfoToJSON)(value['additional_info']), + 'source_id': value['source_id'], + 'posting_number': value['posting_number'], + 'clearing_id': value['clearing_id'], + 'return_clearing_id': value['return_clearing_id'], + 'compensation_status': (0, GetReturnsListResponseCompensation_1.GetReturnsListResponseCompensationToJSON)(value['compensation_status']), + }; +} diff --git a/dist/models/GetReturnsListResponseStorage.d.ts b/dist/models/GetReturnsListResponseStorage.d.ts new file mode 100644 index 0000000..f743f52 --- /dev/null +++ b/dist/models/GetReturnsListResponseStorage.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerReturnsv1MoneyUtilization } from './SellerReturnsv1MoneyUtilization'; +import type { SellerReturnsv1MoneyStorage } from './SellerReturnsv1MoneyStorage'; +/** + * Информация о хранении. + * @export + * @interface GetReturnsListResponseStorage + */ +export interface GetReturnsListResponseStorage { + /** + * + * @type {SellerReturnsv1MoneyStorage} + * @memberof GetReturnsListResponseStorage + */ + sum?: SellerReturnsv1MoneyStorage; + /** + * Первый день тарификации за хранение. + * @type {string} + * @memberof GetReturnsListResponseStorage + */ + tariffication_first_date?: string; + /** + * Дата старта тарификации за хранение. + * @type {string} + * @memberof GetReturnsListResponseStorage + */ + tariffication_start_date?: string; + /** + * Дата, когда возврат был готов к выдаче. + * @type {string} + * @memberof GetReturnsListResponseStorage + */ + arrived_moment?: string; + /** + * Сколько дней возврат ожидает выдачи продавцу. + * @type {number} + * @memberof GetReturnsListResponseStorage + */ + days?: number; + /** + * + * @type {SellerReturnsv1MoneyUtilization} + * @memberof GetReturnsListResponseStorage + */ + utilization_sum?: SellerReturnsv1MoneyUtilization; + /** + * Планируемая дата утилизации. + * @type {string} + * @memberof GetReturnsListResponseStorage + */ + utilization_forecast_date?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseStorage interface. + */ +export declare function instanceOfGetReturnsListResponseStorage(value: object): value is GetReturnsListResponseStorage; +export declare function GetReturnsListResponseStorageFromJSON(json: any): GetReturnsListResponseStorage; +export declare function GetReturnsListResponseStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseStorage; +export declare function GetReturnsListResponseStorageToJSON(value?: GetReturnsListResponseStorage | null): any; diff --git a/dist/models/GetReturnsListResponseStorage.js b/dist/models/GetReturnsListResponseStorage.js new file mode 100644 index 0000000..f8ecba7 --- /dev/null +++ b/dist/models/GetReturnsListResponseStorage.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseStorage = instanceOfGetReturnsListResponseStorage; +exports.GetReturnsListResponseStorageFromJSON = GetReturnsListResponseStorageFromJSON; +exports.GetReturnsListResponseStorageFromJSONTyped = GetReturnsListResponseStorageFromJSONTyped; +exports.GetReturnsListResponseStorageToJSON = GetReturnsListResponseStorageToJSON; +const SellerReturnsv1MoneyUtilization_1 = require("./SellerReturnsv1MoneyUtilization"); +const SellerReturnsv1MoneyStorage_1 = require("./SellerReturnsv1MoneyStorage"); +/** + * Check if a given object implements the GetReturnsListResponseStorage interface. + */ +function instanceOfGetReturnsListResponseStorage(value) { + return true; +} +function GetReturnsListResponseStorageFromJSON(json) { + return GetReturnsListResponseStorageFromJSONTyped(json, false); +} +function GetReturnsListResponseStorageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sum': json['sum'] == null ? undefined : (0, SellerReturnsv1MoneyStorage_1.SellerReturnsv1MoneyStorageFromJSON)(json['sum']), + 'tariffication_first_date': json['tariffication_first_date'] == null ? undefined : json['tariffication_first_date'], + 'tariffication_start_date': json['tariffication_start_date'] == null ? undefined : json['tariffication_start_date'], + 'arrived_moment': json['arrived_moment'] == null ? undefined : json['arrived_moment'], + 'days': json['days'] == null ? undefined : json['days'], + 'utilization_sum': json['utilization_sum'] == null ? undefined : (0, SellerReturnsv1MoneyUtilization_1.SellerReturnsv1MoneyUtilizationFromJSON)(json['utilization_sum']), + 'utilization_forecast_date': json['utilization_forecast_date'] == null ? undefined : json['utilization_forecast_date'], + }; +} +function GetReturnsListResponseStorageToJSON(value) { + if (value == null) { + return value; + } + return { + 'sum': (0, SellerReturnsv1MoneyStorage_1.SellerReturnsv1MoneyStorageToJSON)(value['sum']), + 'tariffication_first_date': value['tariffication_first_date'], + 'tariffication_start_date': value['tariffication_start_date'], + 'arrived_moment': value['arrived_moment'], + 'days': value['days'], + 'utilization_sum': (0, SellerReturnsv1MoneyUtilization_1.SellerReturnsv1MoneyUtilizationToJSON)(value['utilization_sum']), + 'utilization_forecast_date': value['utilization_forecast_date'], + }; +} diff --git a/dist/models/GetReturnsListResponseVisual.d.ts b/dist/models/GetReturnsListResponseVisual.d.ts new file mode 100644 index 0000000..f6a3ebc --- /dev/null +++ b/dist/models/GetReturnsListResponseVisual.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListResponseVisualStatus } from './GetReturnsListResponseVisualStatus'; +/** + * Информация о статусе возврата. + * @export + * @interface GetReturnsListResponseVisual + */ +export interface GetReturnsListResponseVisual { + /** + * + * @type {GetReturnsListResponseVisualStatus} + * @memberof GetReturnsListResponseVisual + */ + status?: GetReturnsListResponseVisualStatus; + /** + * Дата изменения статуса возврата. + * @type {string} + * @memberof GetReturnsListResponseVisual + */ + change_moment?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseVisual interface. + */ +export declare function instanceOfGetReturnsListResponseVisual(value: object): value is GetReturnsListResponseVisual; +export declare function GetReturnsListResponseVisualFromJSON(json: any): GetReturnsListResponseVisual; +export declare function GetReturnsListResponseVisualFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseVisual; +export declare function GetReturnsListResponseVisualToJSON(value?: GetReturnsListResponseVisual | null): any; diff --git a/dist/models/GetReturnsListResponseVisual.js b/dist/models/GetReturnsListResponseVisual.js new file mode 100644 index 0000000..bcacfa2 --- /dev/null +++ b/dist/models/GetReturnsListResponseVisual.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseVisual = instanceOfGetReturnsListResponseVisual; +exports.GetReturnsListResponseVisualFromJSON = GetReturnsListResponseVisualFromJSON; +exports.GetReturnsListResponseVisualFromJSONTyped = GetReturnsListResponseVisualFromJSONTyped; +exports.GetReturnsListResponseVisualToJSON = GetReturnsListResponseVisualToJSON; +const GetReturnsListResponseVisualStatus_1 = require("./GetReturnsListResponseVisualStatus"); +/** + * Check if a given object implements the GetReturnsListResponseVisual interface. + */ +function instanceOfGetReturnsListResponseVisual(value) { + return true; +} +function GetReturnsListResponseVisualFromJSON(json) { + return GetReturnsListResponseVisualFromJSONTyped(json, false); +} +function GetReturnsListResponseVisualFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : (0, GetReturnsListResponseVisualStatus_1.GetReturnsListResponseVisualStatusFromJSON)(json['status']), + 'change_moment': json['change_moment'] == null ? undefined : json['change_moment'], + }; +} +function GetReturnsListResponseVisualToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': (0, GetReturnsListResponseVisualStatus_1.GetReturnsListResponseVisualStatusToJSON)(value['status']), + 'change_moment': value['change_moment'], + }; +} diff --git a/dist/models/GetReturnsListResponseVisualStatus.d.ts b/dist/models/GetReturnsListResponseVisualStatus.d.ts new file mode 100644 index 0000000..427a125 --- /dev/null +++ b/dist/models/GetReturnsListResponseVisualStatus.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус возврата. + * @export + * @interface GetReturnsListResponseVisualStatus + */ +export interface GetReturnsListResponseVisualStatus { + /** + * Идентификатор статуса возврата. + * @type {number} + * @memberof GetReturnsListResponseVisualStatus + */ + id?: number; + /** + * Название статуса возврата. + * @type {string} + * @memberof GetReturnsListResponseVisualStatus + */ + display_name?: string; + /** + * Системное название статуса возврата. + * @type {string} + * @memberof GetReturnsListResponseVisualStatus + */ + sys_name?: string; +} +/** + * Check if a given object implements the GetReturnsListResponseVisualStatus interface. + */ +export declare function instanceOfGetReturnsListResponseVisualStatus(value: object): value is GetReturnsListResponseVisualStatus; +export declare function GetReturnsListResponseVisualStatusFromJSON(json: any): GetReturnsListResponseVisualStatus; +export declare function GetReturnsListResponseVisualStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReturnsListResponseVisualStatus; +export declare function GetReturnsListResponseVisualStatusToJSON(value?: GetReturnsListResponseVisualStatus | null): any; diff --git a/dist/models/GetReturnsListResponseVisualStatus.js b/dist/models/GetReturnsListResponseVisualStatus.js new file mode 100644 index 0000000..a1b5093 --- /dev/null +++ b/dist/models/GetReturnsListResponseVisualStatus.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetReturnsListResponseVisualStatus = instanceOfGetReturnsListResponseVisualStatus; +exports.GetReturnsListResponseVisualStatusFromJSON = GetReturnsListResponseVisualStatusFromJSON; +exports.GetReturnsListResponseVisualStatusFromJSONTyped = GetReturnsListResponseVisualStatusFromJSONTyped; +exports.GetReturnsListResponseVisualStatusToJSON = GetReturnsListResponseVisualStatusToJSON; +/** + * Check if a given object implements the GetReturnsListResponseVisualStatus interface. + */ +function instanceOfGetReturnsListResponseVisualStatus(value) { + return true; +} +function GetReturnsListResponseVisualStatusFromJSON(json) { + return GetReturnsListResponseVisualStatusFromJSONTyped(json, false); +} +function GetReturnsListResponseVisualStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'display_name': json['display_name'] == null ? undefined : json['display_name'], + 'sys_name': json['sys_name'] == null ? undefined : json['sys_name'], + }; +} +function GetReturnsListResponseVisualStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'display_name': value['display_name'], + 'sys_name': value['sys_name'], + }; +} diff --git a/dist/models/GetSellerActionsV1ResponseAction.d.ts b/dist/models/GetSellerActionsV1ResponseAction.d.ts new file mode 100644 index 0000000..77346d8 --- /dev/null +++ b/dist/models/GetSellerActionsV1ResponseAction.d.ts @@ -0,0 +1,132 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetSellerActionsV1ResponseAction + */ +export interface GetSellerActionsV1ResponseAction { + /** + * Идентификатор акции. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + id?: number; + /** + * Название акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + title?: string; + /** + * Тип акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + action_type?: string; + /** + * Описание акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + description?: string; + /** + * Дата начала акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + date_start?: string; + /** + * Дата окончания акции. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + date_end?: string; + /** + * Дата и время автодобавления товаров в акцию. + * @type {Array} + * @memberof GetSellerActionsV1ResponseAction + */ + auto_add_dates?: Array; + /** + * Дата приостановки акции. + * + * Если поле заполнено, продавец не может повышать цены, изменять список товаров и уменьшать количество единиц товаров в акции. + * + * Продавец может понижать цены и увеличивать количество единиц товара в акции. + * + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + freeze_date?: string; + /** + * Количество товаров, доступных для акции. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + potential_products_count?: number; + /** + * Количество товаров, которые участвуют в акции. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + participating_products_count?: number; + /** + * Участвуете вы в этой акции или нет. + * @type {boolean} + * @memberof GetSellerActionsV1ResponseAction + */ + is_participating?: boolean; + /** + * Признак, что для участия в акции покупателям нужен промокод. + * @type {boolean} + * @memberof GetSellerActionsV1ResponseAction + */ + is_voucher_action?: boolean; + /** + * Количество заблокированных товаров. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + banned_products_count?: number; + /** + * Признак, что акция с целевой аудиторией. + * @type {boolean} + * @memberof GetSellerActionsV1ResponseAction + */ + with_targeting?: boolean; + /** + * Сумма заказа. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + order_amount?: number; + /** + * Тип скидки. + * @type {string} + * @memberof GetSellerActionsV1ResponseAction + */ + discount_type?: string; + /** + * Размер скидки. + * @type {number} + * @memberof GetSellerActionsV1ResponseAction + */ + discount_value?: number; +} +/** + * Check if a given object implements the GetSellerActionsV1ResponseAction interface. + */ +export declare function instanceOfGetSellerActionsV1ResponseAction(value: object): value is GetSellerActionsV1ResponseAction; +export declare function GetSellerActionsV1ResponseActionFromJSON(json: any): GetSellerActionsV1ResponseAction; +export declare function GetSellerActionsV1ResponseActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSellerActionsV1ResponseAction; +export declare function GetSellerActionsV1ResponseActionToJSON(value?: GetSellerActionsV1ResponseAction | null): any; diff --git a/dist/models/GetSellerActionsV1ResponseAction.js b/dist/models/GetSellerActionsV1ResponseAction.js new file mode 100644 index 0000000..e8e64d4 --- /dev/null +++ b/dist/models/GetSellerActionsV1ResponseAction.js @@ -0,0 +1,76 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetSellerActionsV1ResponseAction = instanceOfGetSellerActionsV1ResponseAction; +exports.GetSellerActionsV1ResponseActionFromJSON = GetSellerActionsV1ResponseActionFromJSON; +exports.GetSellerActionsV1ResponseActionFromJSONTyped = GetSellerActionsV1ResponseActionFromJSONTyped; +exports.GetSellerActionsV1ResponseActionToJSON = GetSellerActionsV1ResponseActionToJSON; +/** + * Check if a given object implements the GetSellerActionsV1ResponseAction interface. + */ +function instanceOfGetSellerActionsV1ResponseAction(value) { + return true; +} +function GetSellerActionsV1ResponseActionFromJSON(json) { + return GetSellerActionsV1ResponseActionFromJSONTyped(json, false); +} +function GetSellerActionsV1ResponseActionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'title': json['title'] == null ? undefined : json['title'], + 'action_type': json['action_type'] == null ? undefined : json['action_type'], + 'description': json['description'] == null ? undefined : json['description'], + 'date_start': json['date_start'] == null ? undefined : json['date_start'], + 'date_end': json['date_end'] == null ? undefined : json['date_end'], + 'auto_add_dates': json['auto_add_dates'] == null ? undefined : json['auto_add_dates'], + 'freeze_date': json['freeze_date'] == null ? undefined : json['freeze_date'], + 'potential_products_count': json['potential_products_count'] == null ? undefined : json['potential_products_count'], + 'participating_products_count': json['participating_products_count'] == null ? undefined : json['participating_products_count'], + 'is_participating': json['is_participating'] == null ? undefined : json['is_participating'], + 'is_voucher_action': json['is_voucher_action'] == null ? undefined : json['is_voucher_action'], + 'banned_products_count': json['banned_products_count'] == null ? undefined : json['banned_products_count'], + 'with_targeting': json['with_targeting'] == null ? undefined : json['with_targeting'], + 'order_amount': json['order_amount'] == null ? undefined : json['order_amount'], + 'discount_type': json['discount_type'] == null ? undefined : json['discount_type'], + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + }; +} +function GetSellerActionsV1ResponseActionToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'title': value['title'], + 'action_type': value['action_type'], + 'description': value['description'], + 'date_start': value['date_start'], + 'date_end': value['date_end'], + 'auto_add_dates': value['auto_add_dates'], + 'freeze_date': value['freeze_date'], + 'potential_products_count': value['potential_products_count'], + 'participating_products_count': value['participating_products_count'], + 'is_participating': value['is_participating'], + 'is_voucher_action': value['is_voucher_action'], + 'banned_products_count': value['banned_products_count'], + 'with_targeting': value['with_targeting'], + 'order_amount': value['order_amount'], + 'discount_type': value['discount_type'], + 'discount_value': value['discount_value'], + }; +} diff --git a/dist/models/GetStrategyIDsByItemIDsResponseProductInfo.d.ts b/dist/models/GetStrategyIDsByItemIDsResponseProductInfo.d.ts new file mode 100644 index 0000000..c13f8cf --- /dev/null +++ b/dist/models/GetStrategyIDsByItemIDsResponseProductInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetStrategyIDsByItemIDsResponseProductInfo + */ +export interface GetStrategyIDsByItemIDsResponseProductInfo { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof GetStrategyIDsByItemIDsResponseProductInfo + */ + product_id?: number; + /** + * Идентификатор стратегии, в которую добавлен товар. + * @type {string} + * @memberof GetStrategyIDsByItemIDsResponseProductInfo + */ + strategy_id?: string; +} +/** + * Check if a given object implements the GetStrategyIDsByItemIDsResponseProductInfo interface. + */ +export declare function instanceOfGetStrategyIDsByItemIDsResponseProductInfo(value: object): value is GetStrategyIDsByItemIDsResponseProductInfo; +export declare function GetStrategyIDsByItemIDsResponseProductInfoFromJSON(json: any): GetStrategyIDsByItemIDsResponseProductInfo; +export declare function GetStrategyIDsByItemIDsResponseProductInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetStrategyIDsByItemIDsResponseProductInfo; +export declare function GetStrategyIDsByItemIDsResponseProductInfoToJSON(value?: GetStrategyIDsByItemIDsResponseProductInfo | null): any; diff --git a/dist/models/GetStrategyIDsByItemIDsResponseProductInfo.js b/dist/models/GetStrategyIDsByItemIDsResponseProductInfo.js new file mode 100644 index 0000000..a8efb93 --- /dev/null +++ b/dist/models/GetStrategyIDsByItemIDsResponseProductInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetStrategyIDsByItemIDsResponseProductInfo = instanceOfGetStrategyIDsByItemIDsResponseProductInfo; +exports.GetStrategyIDsByItemIDsResponseProductInfoFromJSON = GetStrategyIDsByItemIDsResponseProductInfoFromJSON; +exports.GetStrategyIDsByItemIDsResponseProductInfoFromJSONTyped = GetStrategyIDsByItemIDsResponseProductInfoFromJSONTyped; +exports.GetStrategyIDsByItemIDsResponseProductInfoToJSON = GetStrategyIDsByItemIDsResponseProductInfoToJSON; +/** + * Check if a given object implements the GetStrategyIDsByItemIDsResponseProductInfo interface. + */ +function instanceOfGetStrategyIDsByItemIDsResponseProductInfo(value) { + return true; +} +function GetStrategyIDsByItemIDsResponseProductInfoFromJSON(json) { + return GetStrategyIDsByItemIDsResponseProductInfoFromJSONTyped(json, false); +} +function GetStrategyIDsByItemIDsResponseProductInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'strategy_id': json['strategy_id'] == null ? undefined : json['strategy_id'], + }; +} +function GetStrategyIDsByItemIDsResponseProductInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/models/GetStrategyListResponseStrategy.d.ts b/dist/models/GetStrategyListResponseStrategy.d.ts new file mode 100644 index 0000000..a738e50 --- /dev/null +++ b/dist/models/GetStrategyListResponseStrategy.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GetStrategyListResponseStrategy + */ +export interface GetStrategyListResponseStrategy { + /** + * Идентификатор стратегии. + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + id?: string; + /** + * Название стратегии. + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + name?: string; + /** + * Тип стратегии: + * - `MIN_EXT_PRICE` — системная, + * - `COMP_PRICE` — пользовательская. + * + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + type?: string; + /** + * Тип последнего изменения стратегии: + * - `strategyEnabled` — возобновлена, + * - `strategyDisabled` — остановлена, + * - `strategyChanged` — обновлена, + * - `strategyCreated` — создана, + * - `strategyItemsListChanged` — изменён набор товаров в стратегии. + * + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + update_type?: string; + /** + * Дата последнего изменения. + * @type {string} + * @memberof GetStrategyListResponseStrategy + */ + updated_at?: string; + /** + * Количество товаров в стратегии. + * @type {number} + * @memberof GetStrategyListResponseStrategy + */ + products_count?: number; + /** + * Количество выбранных конкурентов. + * @type {number} + * @memberof GetStrategyListResponseStrategy + */ + competitors_count?: number; + /** + * Статус стратегии: + * - `true` — включена, + * - `false` — отключена. + * + * @type {boolean} + * @memberof GetStrategyListResponseStrategy + */ + enabled?: boolean; +} +/** + * Check if a given object implements the GetStrategyListResponseStrategy interface. + */ +export declare function instanceOfGetStrategyListResponseStrategy(value: object): value is GetStrategyListResponseStrategy; +export declare function GetStrategyListResponseStrategyFromJSON(json: any): GetStrategyListResponseStrategy; +export declare function GetStrategyListResponseStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetStrategyListResponseStrategy; +export declare function GetStrategyListResponseStrategyToJSON(value?: GetStrategyListResponseStrategy | null): any; diff --git a/dist/models/GetStrategyListResponseStrategy.js b/dist/models/GetStrategyListResponseStrategy.js new file mode 100644 index 0000000..3d925b7 --- /dev/null +++ b/dist/models/GetStrategyListResponseStrategy.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetStrategyListResponseStrategy = instanceOfGetStrategyListResponseStrategy; +exports.GetStrategyListResponseStrategyFromJSON = GetStrategyListResponseStrategyFromJSON; +exports.GetStrategyListResponseStrategyFromJSONTyped = GetStrategyListResponseStrategyFromJSONTyped; +exports.GetStrategyListResponseStrategyToJSON = GetStrategyListResponseStrategyToJSON; +/** + * Check if a given object implements the GetStrategyListResponseStrategy interface. + */ +function instanceOfGetStrategyListResponseStrategy(value) { + return true; +} +function GetStrategyListResponseStrategyFromJSON(json) { + return GetStrategyListResponseStrategyFromJSONTyped(json, false); +} +function GetStrategyListResponseStrategyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + 'update_type': json['update_type'] == null ? undefined : json['update_type'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'products_count': json['products_count'] == null ? undefined : json['products_count'], + 'competitors_count': json['competitors_count'] == null ? undefined : json['competitors_count'], + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + }; +} +function GetStrategyListResponseStrategyToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'type': value['type'], + 'update_type': value['update_type'], + 'updated_at': value['updated_at'], + 'products_count': value['products_count'], + 'competitors_count': value['competitors_count'], + 'enabled': value['enabled'], + }; +} diff --git a/dist/models/GetSupplyOrderBundleRequestItemTagsCalculation.d.ts b/dist/models/GetSupplyOrderBundleRequestItemTagsCalculation.d.ts new file mode 100644 index 0000000..2ebd712 --- /dev/null +++ b/dist/models/GetSupplyOrderBundleRequestItemTagsCalculation.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список складов для расчёта товарных тегов. + * @export + * @interface GetSupplyOrderBundleRequestItemTagsCalculation + */ +export interface GetSupplyOrderBundleRequestItemTagsCalculation { + /** + * Идентификатор склада отгрузки поставки. + * @type {string} + * @memberof GetSupplyOrderBundleRequestItemTagsCalculation + */ + dropoff_warehouse_id: string; + /** + * Список идентификаторов складов поставки, не больше 25 значений. + * @type {Array} + * @memberof GetSupplyOrderBundleRequestItemTagsCalculation + */ + storage_warehouse_ids: Array; +} +/** + * Check if a given object implements the GetSupplyOrderBundleRequestItemTagsCalculation interface. + */ +export declare function instanceOfGetSupplyOrderBundleRequestItemTagsCalculation(value: object): value is GetSupplyOrderBundleRequestItemTagsCalculation; +export declare function GetSupplyOrderBundleRequestItemTagsCalculationFromJSON(json: any): GetSupplyOrderBundleRequestItemTagsCalculation; +export declare function GetSupplyOrderBundleRequestItemTagsCalculationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupplyOrderBundleRequestItemTagsCalculation; +export declare function GetSupplyOrderBundleRequestItemTagsCalculationToJSON(value?: GetSupplyOrderBundleRequestItemTagsCalculation | null): any; diff --git a/dist/models/GetSupplyOrderBundleRequestItemTagsCalculation.js b/dist/models/GetSupplyOrderBundleRequestItemTagsCalculation.js new file mode 100644 index 0000000..6c62ddb --- /dev/null +++ b/dist/models/GetSupplyOrderBundleRequestItemTagsCalculation.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetSupplyOrderBundleRequestItemTagsCalculation = instanceOfGetSupplyOrderBundleRequestItemTagsCalculation; +exports.GetSupplyOrderBundleRequestItemTagsCalculationFromJSON = GetSupplyOrderBundleRequestItemTagsCalculationFromJSON; +exports.GetSupplyOrderBundleRequestItemTagsCalculationFromJSONTyped = GetSupplyOrderBundleRequestItemTagsCalculationFromJSONTyped; +exports.GetSupplyOrderBundleRequestItemTagsCalculationToJSON = GetSupplyOrderBundleRequestItemTagsCalculationToJSON; +/** + * Check if a given object implements the GetSupplyOrderBundleRequestItemTagsCalculation interface. + */ +function instanceOfGetSupplyOrderBundleRequestItemTagsCalculation(value) { + if (!('dropoff_warehouse_id' in value) || value['dropoff_warehouse_id'] === undefined) + return false; + if (!('storage_warehouse_ids' in value) || value['storage_warehouse_ids'] === undefined) + return false; + return true; +} +function GetSupplyOrderBundleRequestItemTagsCalculationFromJSON(json) { + return GetSupplyOrderBundleRequestItemTagsCalculationFromJSONTyped(json, false); +} +function GetSupplyOrderBundleRequestItemTagsCalculationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dropoff_warehouse_id': json['dropoff_warehouse_id'], + 'storage_warehouse_ids': json['storage_warehouse_ids'], + }; +} +function GetSupplyOrderBundleRequestItemTagsCalculationToJSON(value) { + if (value == null) { + return value; + } + return { + 'dropoff_warehouse_id': value['dropoff_warehouse_id'], + 'storage_warehouse_ids': value['storage_warehouse_ids'], + }; +} diff --git a/dist/models/GetUploadQuotaResponseDailyCreate.d.ts b/dist/models/GetUploadQuotaResponseDailyCreate.d.ts new file mode 100644 index 0000000..b0a37b0 --- /dev/null +++ b/dist/models/GetUploadQuotaResponseDailyCreate.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Суточный лимит на создание товаров. + * @export + * @interface GetUploadQuotaResponseDailyCreate + */ +export interface GetUploadQuotaResponseDailyCreate { + /** + * Количество товаров, которое можно создать за сутки. Если значение `-1`, лимит не ограничен. + * @type {number} + * @memberof GetUploadQuotaResponseDailyCreate + */ + limit?: number; + /** + * Время в формате UTC, когда сбросится значение счётчика за текущие сутки. + * @type {string} + * @memberof GetUploadQuotaResponseDailyCreate + */ + reset_at?: string; + /** + * Сколько товаров создано за текущие сутки. + * @type {number} + * @memberof GetUploadQuotaResponseDailyCreate + */ + usage?: number; +} +/** + * Check if a given object implements the GetUploadQuotaResponseDailyCreate interface. + */ +export declare function instanceOfGetUploadQuotaResponseDailyCreate(value: object): value is GetUploadQuotaResponseDailyCreate; +export declare function GetUploadQuotaResponseDailyCreateFromJSON(json: any): GetUploadQuotaResponseDailyCreate; +export declare function GetUploadQuotaResponseDailyCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadQuotaResponseDailyCreate; +export declare function GetUploadQuotaResponseDailyCreateToJSON(value?: GetUploadQuotaResponseDailyCreate | null): any; diff --git a/dist/models/GetUploadQuotaResponseDailyCreate.js b/dist/models/GetUploadQuotaResponseDailyCreate.js new file mode 100644 index 0000000..9e0cf3a --- /dev/null +++ b/dist/models/GetUploadQuotaResponseDailyCreate.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetUploadQuotaResponseDailyCreate = instanceOfGetUploadQuotaResponseDailyCreate; +exports.GetUploadQuotaResponseDailyCreateFromJSON = GetUploadQuotaResponseDailyCreateFromJSON; +exports.GetUploadQuotaResponseDailyCreateFromJSONTyped = GetUploadQuotaResponseDailyCreateFromJSONTyped; +exports.GetUploadQuotaResponseDailyCreateToJSON = GetUploadQuotaResponseDailyCreateToJSON; +/** + * Check if a given object implements the GetUploadQuotaResponseDailyCreate interface. + */ +function instanceOfGetUploadQuotaResponseDailyCreate(value) { + return true; +} +function GetUploadQuotaResponseDailyCreateFromJSON(json) { + return GetUploadQuotaResponseDailyCreateFromJSONTyped(json, false); +} +function GetUploadQuotaResponseDailyCreateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'reset_at': json['reset_at'] == null ? undefined : json['reset_at'], + 'usage': json['usage'] == null ? undefined : json['usage'], + }; +} +function GetUploadQuotaResponseDailyCreateToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'reset_at': value['reset_at'], + 'usage': value['usage'], + }; +} diff --git a/dist/models/GetUploadQuotaResponseDailyUpdate.d.ts b/dist/models/GetUploadQuotaResponseDailyUpdate.d.ts new file mode 100644 index 0000000..f99a16e --- /dev/null +++ b/dist/models/GetUploadQuotaResponseDailyUpdate.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Суточный лимит на обновление товаров. + * @export + * @interface GetUploadQuotaResponseDailyUpdate + */ +export interface GetUploadQuotaResponseDailyUpdate { + /** + * Количество товаров, которое можно обновить за сутки. Если значение `-1`, лимит не ограничен. + * @type {number} + * @memberof GetUploadQuotaResponseDailyUpdate + */ + limit?: number; + /** + * Время в формате UTC, когда сбросится значение счётчика за текущие сутки. + * @type {string} + * @memberof GetUploadQuotaResponseDailyUpdate + */ + reset_at?: string; + /** + * Сколько товаров обновлено за текущие сутки. + * @type {number} + * @memberof GetUploadQuotaResponseDailyUpdate + */ + usage?: number; +} +/** + * Check if a given object implements the GetUploadQuotaResponseDailyUpdate interface. + */ +export declare function instanceOfGetUploadQuotaResponseDailyUpdate(value: object): value is GetUploadQuotaResponseDailyUpdate; +export declare function GetUploadQuotaResponseDailyUpdateFromJSON(json: any): GetUploadQuotaResponseDailyUpdate; +export declare function GetUploadQuotaResponseDailyUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadQuotaResponseDailyUpdate; +export declare function GetUploadQuotaResponseDailyUpdateToJSON(value?: GetUploadQuotaResponseDailyUpdate | null): any; diff --git a/dist/models/GetUploadQuotaResponseDailyUpdate.js b/dist/models/GetUploadQuotaResponseDailyUpdate.js new file mode 100644 index 0000000..d807d8b --- /dev/null +++ b/dist/models/GetUploadQuotaResponseDailyUpdate.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetUploadQuotaResponseDailyUpdate = instanceOfGetUploadQuotaResponseDailyUpdate; +exports.GetUploadQuotaResponseDailyUpdateFromJSON = GetUploadQuotaResponseDailyUpdateFromJSON; +exports.GetUploadQuotaResponseDailyUpdateFromJSONTyped = GetUploadQuotaResponseDailyUpdateFromJSONTyped; +exports.GetUploadQuotaResponseDailyUpdateToJSON = GetUploadQuotaResponseDailyUpdateToJSON; +/** + * Check if a given object implements the GetUploadQuotaResponseDailyUpdate interface. + */ +function instanceOfGetUploadQuotaResponseDailyUpdate(value) { + return true; +} +function GetUploadQuotaResponseDailyUpdateFromJSON(json) { + return GetUploadQuotaResponseDailyUpdateFromJSONTyped(json, false); +} +function GetUploadQuotaResponseDailyUpdateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'reset_at': json['reset_at'] == null ? undefined : json['reset_at'], + 'usage': json['usage'] == null ? undefined : json['usage'], + }; +} +function GetUploadQuotaResponseDailyUpdateToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'reset_at': value['reset_at'], + 'usage': value['usage'], + }; +} diff --git a/dist/models/GetUploadQuotaResponseTotal.d.ts b/dist/models/GetUploadQuotaResponseTotal.d.ts new file mode 100644 index 0000000..b6a802c --- /dev/null +++ b/dist/models/GetUploadQuotaResponseTotal.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Лимит на ассортимент. + * @export + * @interface GetUploadQuotaResponseTotal + */ +export interface GetUploadQuotaResponseTotal { + /** + * Количество товаров, которое можно создать в личном кабинете. Если значение `-1`, лимит не ограничен. + * @type {number} + * @memberof GetUploadQuotaResponseTotal + */ + limit?: number; + /** + * Сколько товаров уже создано. + * @type {number} + * @memberof GetUploadQuotaResponseTotal + */ + usage?: number; +} +/** + * Check if a given object implements the GetUploadQuotaResponseTotal interface. + */ +export declare function instanceOfGetUploadQuotaResponseTotal(value: object): value is GetUploadQuotaResponseTotal; +export declare function GetUploadQuotaResponseTotalFromJSON(json: any): GetUploadQuotaResponseTotal; +export declare function GetUploadQuotaResponseTotalFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadQuotaResponseTotal; +export declare function GetUploadQuotaResponseTotalToJSON(value?: GetUploadQuotaResponseTotal | null): any; diff --git a/dist/models/GetUploadQuotaResponseTotal.js b/dist/models/GetUploadQuotaResponseTotal.js new file mode 100644 index 0000000..74e31c0 --- /dev/null +++ b/dist/models/GetUploadQuotaResponseTotal.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetUploadQuotaResponseTotal = instanceOfGetUploadQuotaResponseTotal; +exports.GetUploadQuotaResponseTotalFromJSON = GetUploadQuotaResponseTotalFromJSON; +exports.GetUploadQuotaResponseTotalFromJSONTyped = GetUploadQuotaResponseTotalFromJSONTyped; +exports.GetUploadQuotaResponseTotalToJSON = GetUploadQuotaResponseTotalToJSON; +/** + * Check if a given object implements the GetUploadQuotaResponseTotal interface. + */ +function instanceOfGetUploadQuotaResponseTotal(value) { + return true; +} +function GetUploadQuotaResponseTotalFromJSON(json) { + return GetUploadQuotaResponseTotalFromJSONTyped(json, false); +} +function GetUploadQuotaResponseTotalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'usage': json['usage'] == null ? undefined : json['usage'], + }; +} +function GetUploadQuotaResponseTotalToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'usage': value['usage'], + }; +} diff --git a/dist/models/GetWarehouseFBSOperationStatusResponseError.d.ts b/dist/models/GetWarehouseFBSOperationStatusResponseError.d.ts new file mode 100644 index 0000000..a81602b --- /dev/null +++ b/dist/models/GetWarehouseFBSOperationStatusResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ошибка при обработке операции. + * @export + * @interface GetWarehouseFBSOperationStatusResponseError + */ +export interface GetWarehouseFBSOperationStatusResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof GetWarehouseFBSOperationStatusResponseError + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof GetWarehouseFBSOperationStatusResponseError + */ + message?: string; +} +/** + * Check if a given object implements the GetWarehouseFBSOperationStatusResponseError interface. + */ +export declare function instanceOfGetWarehouseFBSOperationStatusResponseError(value: object): value is GetWarehouseFBSOperationStatusResponseError; +export declare function GetWarehouseFBSOperationStatusResponseErrorFromJSON(json: any): GetWarehouseFBSOperationStatusResponseError; +export declare function GetWarehouseFBSOperationStatusResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWarehouseFBSOperationStatusResponseError; +export declare function GetWarehouseFBSOperationStatusResponseErrorToJSON(value?: GetWarehouseFBSOperationStatusResponseError | null): any; diff --git a/dist/models/GetWarehouseFBSOperationStatusResponseError.js b/dist/models/GetWarehouseFBSOperationStatusResponseError.js new file mode 100644 index 0000000..c36a45d --- /dev/null +++ b/dist/models/GetWarehouseFBSOperationStatusResponseError.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetWarehouseFBSOperationStatusResponseError = instanceOfGetWarehouseFBSOperationStatusResponseError; +exports.GetWarehouseFBSOperationStatusResponseErrorFromJSON = GetWarehouseFBSOperationStatusResponseErrorFromJSON; +exports.GetWarehouseFBSOperationStatusResponseErrorFromJSONTyped = GetWarehouseFBSOperationStatusResponseErrorFromJSONTyped; +exports.GetWarehouseFBSOperationStatusResponseErrorToJSON = GetWarehouseFBSOperationStatusResponseErrorToJSON; +/** + * Check if a given object implements the GetWarehouseFBSOperationStatusResponseError interface. + */ +function instanceOfGetWarehouseFBSOperationStatusResponseError(value) { + return true; +} +function GetWarehouseFBSOperationStatusResponseErrorFromJSON(json) { + return GetWarehouseFBSOperationStatusResponseErrorFromJSONTyped(json, false); +} +function GetWarehouseFBSOperationStatusResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function GetWarehouseFBSOperationStatusResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/models/GetWarehouseFBSOperationStatusResponseResult.d.ts b/dist/models/GetWarehouseFBSOperationStatusResponseResult.d.ts new file mode 100644 index 0000000..b994341 --- /dev/null +++ b/dist/models/GetWarehouseFBSOperationStatusResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат операции. + * @export + * @interface GetWarehouseFBSOperationStatusResponseResult + */ +export interface GetWarehouseFBSOperationStatusResponseResult { + /** + * Идентификатор обрабатываемой сущности. Если операция `CREATE_FBS_WAREHOUSE`, вернётся идентификатор склада. + * @type {number} + * @memberof GetWarehouseFBSOperationStatusResponseResult + */ + entity_id?: number; +} +/** + * Check if a given object implements the GetWarehouseFBSOperationStatusResponseResult interface. + */ +export declare function instanceOfGetWarehouseFBSOperationStatusResponseResult(value: object): value is GetWarehouseFBSOperationStatusResponseResult; +export declare function GetWarehouseFBSOperationStatusResponseResultFromJSON(json: any): GetWarehouseFBSOperationStatusResponseResult; +export declare function GetWarehouseFBSOperationStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWarehouseFBSOperationStatusResponseResult; +export declare function GetWarehouseFBSOperationStatusResponseResultToJSON(value?: GetWarehouseFBSOperationStatusResponseResult | null): any; diff --git a/dist/models/GetWarehouseFBSOperationStatusResponseResult.js b/dist/models/GetWarehouseFBSOperationStatusResponseResult.js new file mode 100644 index 0000000..fe468f8 --- /dev/null +++ b/dist/models/GetWarehouseFBSOperationStatusResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGetWarehouseFBSOperationStatusResponseResult = instanceOfGetWarehouseFBSOperationStatusResponseResult; +exports.GetWarehouseFBSOperationStatusResponseResultFromJSON = GetWarehouseFBSOperationStatusResponseResultFromJSON; +exports.GetWarehouseFBSOperationStatusResponseResultFromJSONTyped = GetWarehouseFBSOperationStatusResponseResultFromJSONTyped; +exports.GetWarehouseFBSOperationStatusResponseResultToJSON = GetWarehouseFBSOperationStatusResponseResultToJSON; +/** + * Check if a given object implements the GetWarehouseFBSOperationStatusResponseResult interface. + */ +function instanceOfGetWarehouseFBSOperationStatusResponseResult(value) { + return true; +} +function GetWarehouseFBSOperationStatusResponseResultFromJSON(json) { + return GetWarehouseFBSOperationStatusResponseResultFromJSONTyped(json, false); +} +function GetWarehouseFBSOperationStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'entity_id': json['entity_id'] == null ? undefined : json['entity_id'], + }; +} +function GetWarehouseFBSOperationStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'entity_id': value['entity_id'], + }; +} diff --git a/dist/models/GetWarehouseFBSOperationStatusResponseStatusEnum.d.ts b/dist/models/GetWarehouseFBSOperationStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..04c0a47 --- /dev/null +++ b/dist/models/GetWarehouseFBSOperationStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус операции: + * - `UNSPECIFIED` — не определено; + * - `IN_PROGRESS` — в процессе; + * - `SUCCESS` — выполнена; + * - `ERROR` — завершилась с ошибкой. + * + * @export + */ +export declare const GetWarehouseFBSOperationStatusResponseStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly SUCCESS: "SUCCESS"; + readonly ERROR: "ERROR"; +}; +export type GetWarehouseFBSOperationStatusResponseStatusEnum = typeof GetWarehouseFBSOperationStatusResponseStatusEnum[keyof typeof GetWarehouseFBSOperationStatusResponseStatusEnum]; +export declare function instanceOfGetWarehouseFBSOperationStatusResponseStatusEnum(value: any): boolean; +export declare function GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON(json: any): GetWarehouseFBSOperationStatusResponseStatusEnum; +export declare function GetWarehouseFBSOperationStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWarehouseFBSOperationStatusResponseStatusEnum; +export declare function GetWarehouseFBSOperationStatusResponseStatusEnumToJSON(value?: GetWarehouseFBSOperationStatusResponseStatusEnum | null): any; diff --git a/dist/models/GetWarehouseFBSOperationStatusResponseStatusEnum.js b/dist/models/GetWarehouseFBSOperationStatusResponseStatusEnum.js new file mode 100644 index 0000000..5b6333c --- /dev/null +++ b/dist/models/GetWarehouseFBSOperationStatusResponseStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetWarehouseFBSOperationStatusResponseStatusEnum = void 0; +exports.instanceOfGetWarehouseFBSOperationStatusResponseStatusEnum = instanceOfGetWarehouseFBSOperationStatusResponseStatusEnum; +exports.GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON = GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON; +exports.GetWarehouseFBSOperationStatusResponseStatusEnumFromJSONTyped = GetWarehouseFBSOperationStatusResponseStatusEnumFromJSONTyped; +exports.GetWarehouseFBSOperationStatusResponseStatusEnumToJSON = GetWarehouseFBSOperationStatusResponseStatusEnumToJSON; +/** + * Статус операции: + * - `UNSPECIFIED` — не определено; + * - `IN_PROGRESS` — в процессе; + * - `SUCCESS` — выполнена; + * - `ERROR` — завершилась с ошибкой. + * + * @export + */ +exports.GetWarehouseFBSOperationStatusResponseStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + IN_PROGRESS: 'IN_PROGRESS', + SUCCESS: 'SUCCESS', + ERROR: 'ERROR' +}; +function instanceOfGetWarehouseFBSOperationStatusResponseStatusEnum(value) { + for (const key in exports.GetWarehouseFBSOperationStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.GetWarehouseFBSOperationStatusResponseStatusEnum, key)) { + if (exports.GetWarehouseFBSOperationStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON(json) { + return GetWarehouseFBSOperationStatusResponseStatusEnumFromJSONTyped(json, false); +} +function GetWarehouseFBSOperationStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function GetWarehouseFBSOperationStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/GetWarehouseFBSOperationStatusResponseTypeEnum.d.ts b/dist/models/GetWarehouseFBSOperationStatusResponseTypeEnum.d.ts new file mode 100644 index 0000000..a316cd2 --- /dev/null +++ b/dist/models/GetWarehouseFBSOperationStatusResponseTypeEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `UNSPECIFIED` — не определено; + * - `CREATE_FBS_WAREHOUSE` — создание FBS-склада; + * - `UPDATE_FBS_WAREHOUSE` — обновление FBS-склада; + * - `SET_FIRST_MILE` — установка первой мили; + * - `WAREHOUSE_ENABLE_DISABLE` — архивация или разархивация FBS-склада; + * - `WAREHOUSE_PAUSE_UNPAUSE` — включение или выключение паузы rFBS-склада. + * + * @export + */ +export declare const GetWarehouseFBSOperationStatusResponseTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CREATE_FBS_WAREHOUSE: "CREATE_FBS_WAREHOUSE"; + readonly UPDATE_FBS_WAREHOUSE: "UPDATE_FBS_WAREHOUSE"; + readonly SET_FIRST_MILE: "SET_FIRST_MILE"; + readonly WAREHOUSE_ENABLE_DISABLE: "WAREHOUSE_ENABLE_DISABLE"; + readonly WAREHOUSE_PAUSE_UNPAUSE: "WAREHOUSE_PAUSE_UNPAUSE"; +}; +export type GetWarehouseFBSOperationStatusResponseTypeEnum = typeof GetWarehouseFBSOperationStatusResponseTypeEnum[keyof typeof GetWarehouseFBSOperationStatusResponseTypeEnum]; +export declare function instanceOfGetWarehouseFBSOperationStatusResponseTypeEnum(value: any): boolean; +export declare function GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON(json: any): GetWarehouseFBSOperationStatusResponseTypeEnum; +export declare function GetWarehouseFBSOperationStatusResponseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetWarehouseFBSOperationStatusResponseTypeEnum; +export declare function GetWarehouseFBSOperationStatusResponseTypeEnumToJSON(value?: GetWarehouseFBSOperationStatusResponseTypeEnum | null): any; diff --git a/dist/models/GetWarehouseFBSOperationStatusResponseTypeEnum.js b/dist/models/GetWarehouseFBSOperationStatusResponseTypeEnum.js new file mode 100644 index 0000000..55c0ed0 --- /dev/null +++ b/dist/models/GetWarehouseFBSOperationStatusResponseTypeEnum.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetWarehouseFBSOperationStatusResponseTypeEnum = void 0; +exports.instanceOfGetWarehouseFBSOperationStatusResponseTypeEnum = instanceOfGetWarehouseFBSOperationStatusResponseTypeEnum; +exports.GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON = GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON; +exports.GetWarehouseFBSOperationStatusResponseTypeEnumFromJSONTyped = GetWarehouseFBSOperationStatusResponseTypeEnumFromJSONTyped; +exports.GetWarehouseFBSOperationStatusResponseTypeEnumToJSON = GetWarehouseFBSOperationStatusResponseTypeEnumToJSON; +/** + * Тип операции: + * - `UNSPECIFIED` — не определено; + * - `CREATE_FBS_WAREHOUSE` — создание FBS-склада; + * - `UPDATE_FBS_WAREHOUSE` — обновление FBS-склада; + * - `SET_FIRST_MILE` — установка первой мили; + * - `WAREHOUSE_ENABLE_DISABLE` — архивация или разархивация FBS-склада; + * - `WAREHOUSE_PAUSE_UNPAUSE` — включение или выключение паузы rFBS-склада. + * + * @export + */ +exports.GetWarehouseFBSOperationStatusResponseTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CREATE_FBS_WAREHOUSE: 'CREATE_FBS_WAREHOUSE', + UPDATE_FBS_WAREHOUSE: 'UPDATE_FBS_WAREHOUSE', + SET_FIRST_MILE: 'SET_FIRST_MILE', + WAREHOUSE_ENABLE_DISABLE: 'WAREHOUSE_ENABLE_DISABLE', + WAREHOUSE_PAUSE_UNPAUSE: 'WAREHOUSE_PAUSE_UNPAUSE' +}; +function instanceOfGetWarehouseFBSOperationStatusResponseTypeEnum(value) { + for (const key in exports.GetWarehouseFBSOperationStatusResponseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.GetWarehouseFBSOperationStatusResponseTypeEnum, key)) { + if (exports.GetWarehouseFBSOperationStatusResponseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON(json) { + return GetWarehouseFBSOperationStatusResponseTypeEnumFromJSONTyped(json, false); +} +function GetWarehouseFBSOperationStatusResponseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function GetWarehouseFBSOperationStatusResponseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/GiveoutInfoResponseArticleDetails.d.ts b/dist/models/GiveoutInfoResponseArticleDetails.d.ts new file mode 100644 index 0000000..9575799 --- /dev/null +++ b/dist/models/GiveoutInfoResponseArticleDetails.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GiveoutInfoResponseArticleDetails + */ +export interface GiveoutInfoResponseArticleDetails { + /** + * `true`, если отгрузка подтверждена. + * + * @type {boolean} + * @memberof GiveoutInfoResponseArticleDetails + */ + approved?: boolean; + /** + * Cхема доставки: + * - `GIVEOUT_DELIVERY_SCHEMA_UNSPECIFIED` — не определёна, напишите в поддержку. + * - `GIVEOUT_DELIVERY_SCHEMA_FBO` — FBO. + * - `GIVEOUT_DELIVERY_SCHEMA_FBS` — FBS. + * + * @type {string} + * @memberof GiveoutInfoResponseArticleDetails + */ + delivery_schema?: string; + /** + * Название товара. + * @type {string} + * @memberof GiveoutInfoResponseArticleDetails + */ + name?: string; + /** + * Идентификатор продавца. + * @type {number} + * @memberof GiveoutInfoResponseArticleDetails + */ + seller_id?: number; +} +/** + * Check if a given object implements the GiveoutInfoResponseArticleDetails interface. + */ +export declare function instanceOfGiveoutInfoResponseArticleDetails(value: object): value is GiveoutInfoResponseArticleDetails; +export declare function GiveoutInfoResponseArticleDetailsFromJSON(json: any): GiveoutInfoResponseArticleDetails; +export declare function GiveoutInfoResponseArticleDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GiveoutInfoResponseArticleDetails; +export declare function GiveoutInfoResponseArticleDetailsToJSON(value?: GiveoutInfoResponseArticleDetails | null): any; diff --git a/dist/models/GiveoutInfoResponseArticleDetails.js b/dist/models/GiveoutInfoResponseArticleDetails.js new file mode 100644 index 0000000..c05e990 --- /dev/null +++ b/dist/models/GiveoutInfoResponseArticleDetails.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGiveoutInfoResponseArticleDetails = instanceOfGiveoutInfoResponseArticleDetails; +exports.GiveoutInfoResponseArticleDetailsFromJSON = GiveoutInfoResponseArticleDetailsFromJSON; +exports.GiveoutInfoResponseArticleDetailsFromJSONTyped = GiveoutInfoResponseArticleDetailsFromJSONTyped; +exports.GiveoutInfoResponseArticleDetailsToJSON = GiveoutInfoResponseArticleDetailsToJSON; +/** + * Check if a given object implements the GiveoutInfoResponseArticleDetails interface. + */ +function instanceOfGiveoutInfoResponseArticleDetails(value) { + return true; +} +function GiveoutInfoResponseArticleDetailsFromJSON(json) { + return GiveoutInfoResponseArticleDetailsFromJSONTyped(json, false); +} +function GiveoutInfoResponseArticleDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved': json['approved'] == null ? undefined : json['approved'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'name': json['name'] == null ? undefined : json['name'], + 'seller_id': json['seller_id'] == null ? undefined : json['seller_id'], + }; +} +function GiveoutInfoResponseArticleDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved': value['approved'], + 'delivery_schema': value['delivery_schema'], + 'name': value['name'], + 'seller_id': value['seller_id'], + }; +} diff --git a/dist/models/GiveoutListResponseGiveoutDetails.d.ts b/dist/models/GiveoutListResponseGiveoutDetails.d.ts new file mode 100644 index 0000000..51e3d38 --- /dev/null +++ b/dist/models/GiveoutListResponseGiveoutDetails.d.ts @@ -0,0 +1,79 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface GiveoutListResponseGiveoutDetails + */ +export interface GiveoutListResponseGiveoutDetails { + /** + * Количество товаров в отгрузке. + * @type {number} + * @memberof GiveoutListResponseGiveoutDetails + */ + approved_articles_count?: number; + /** + * Дата и время. + * @type {string} + * @memberof GiveoutListResponseGiveoutDetails + */ + created_at?: string; + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof GiveoutListResponseGiveoutDetails + */ + giveout_id?: number; + /** + * Статусы возвратной отгрузки: + * - `GIVEOUT_STATUS_UNSPECIFIED` — не определён, напишите в поддержку. + * - `GIVEOUT_STATUS_CREATED` — создана. + * - `GIVEOUT_STATUS_APPROVED` — одобрена. + * - `GIVEOUT_STATUS_COMPLETED` — завершена. + * - `GIVEOUT_STATUS_CANCELLED` — отменена. + * + * @type {string} + * @memberof GiveoutListResponseGiveoutDetails + */ + giveout_status?: string; + /** + * Общее количество товаров, которые нужно забрать со склада. + * @type {number} + * @memberof GiveoutListResponseGiveoutDetails + */ + total_articles_count?: number; + /** + * Адрес склада. + * @type {string} + * @memberof GiveoutListResponseGiveoutDetails + */ + warehouse_address?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof GiveoutListResponseGiveoutDetails + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof GiveoutListResponseGiveoutDetails + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the GiveoutListResponseGiveoutDetails interface. + */ +export declare function instanceOfGiveoutListResponseGiveoutDetails(value: object): value is GiveoutListResponseGiveoutDetails; +export declare function GiveoutListResponseGiveoutDetailsFromJSON(json: any): GiveoutListResponseGiveoutDetails; +export declare function GiveoutListResponseGiveoutDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GiveoutListResponseGiveoutDetails; +export declare function GiveoutListResponseGiveoutDetailsToJSON(value?: GiveoutListResponseGiveoutDetails | null): any; diff --git a/dist/models/GiveoutListResponseGiveoutDetails.js b/dist/models/GiveoutListResponseGiveoutDetails.js new file mode 100644 index 0000000..bd8e027 --- /dev/null +++ b/dist/models/GiveoutListResponseGiveoutDetails.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGiveoutListResponseGiveoutDetails = instanceOfGiveoutListResponseGiveoutDetails; +exports.GiveoutListResponseGiveoutDetailsFromJSON = GiveoutListResponseGiveoutDetailsFromJSON; +exports.GiveoutListResponseGiveoutDetailsFromJSONTyped = GiveoutListResponseGiveoutDetailsFromJSONTyped; +exports.GiveoutListResponseGiveoutDetailsToJSON = GiveoutListResponseGiveoutDetailsToJSON; +/** + * Check if a given object implements the GiveoutListResponseGiveoutDetails interface. + */ +function instanceOfGiveoutListResponseGiveoutDetails(value) { + return true; +} +function GiveoutListResponseGiveoutDetailsFromJSON(json) { + return GiveoutListResponseGiveoutDetailsFromJSONTyped(json, false); +} +function GiveoutListResponseGiveoutDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_articles_count': json['approved_articles_count'] == null ? undefined : json['approved_articles_count'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'giveout_id': json['giveout_id'] == null ? undefined : json['giveout_id'], + 'giveout_status': json['giveout_status'] == null ? undefined : json['giveout_status'], + 'total_articles_count': json['total_articles_count'] == null ? undefined : json['total_articles_count'], + 'warehouse_address': json['warehouse_address'] == null ? undefined : json['warehouse_address'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function GiveoutListResponseGiveoutDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_articles_count': value['approved_articles_count'], + 'created_at': value['created_at'], + 'giveout_id': value['giveout_id'], + 'giveout_status': value['giveout_status'], + 'total_articles_count': value['total_articles_count'], + 'warehouse_address': value['warehouse_address'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/GoogleTypeDate.d.ts b/dist/models/GoogleTypeDate.d.ts new file mode 100644 index 0000000..18d5299 --- /dev/null +++ b/dist/models/GoogleTypeDate.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дата истечения сертификата. Не передавайте параметр, если `infinite = true`. + * @export + * @interface GoogleTypeDate + */ +export interface GoogleTypeDate { + /** + * День. + * @type {number} + * @memberof GoogleTypeDate + */ + day?: number; + /** + * Месяц. + * @type {number} + * @memberof GoogleTypeDate + */ + month?: number; + /** + * Год. + * @type {number} + * @memberof GoogleTypeDate + */ + year?: number; +} +/** + * Check if a given object implements the GoogleTypeDate interface. + */ +export declare function instanceOfGoogleTypeDate(value: object): value is GoogleTypeDate; +export declare function GoogleTypeDateFromJSON(json: any): GoogleTypeDate; +export declare function GoogleTypeDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleTypeDate; +export declare function GoogleTypeDateToJSON(value?: GoogleTypeDate | null): any; diff --git a/dist/models/GoogleTypeDate.js b/dist/models/GoogleTypeDate.js new file mode 100644 index 0000000..baa0586 --- /dev/null +++ b/dist/models/GoogleTypeDate.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGoogleTypeDate = instanceOfGoogleTypeDate; +exports.GoogleTypeDateFromJSON = GoogleTypeDateFromJSON; +exports.GoogleTypeDateFromJSONTyped = GoogleTypeDateFromJSONTyped; +exports.GoogleTypeDateToJSON = GoogleTypeDateToJSON; +/** + * Check if a given object implements the GoogleTypeDate interface. + */ +function instanceOfGoogleTypeDate(value) { + return true; +} +function GoogleTypeDateFromJSON(json) { + return GoogleTypeDateFromJSONTyped(json, false); +} +function GoogleTypeDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : json['day'], + 'month': json['month'] == null ? undefined : json['month'], + 'year': json['year'] == null ? undefined : json['year'], + }; +} +function GoogleTypeDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/models/GooglerpcStatus.d.ts b/dist/models/GooglerpcStatus.d.ts new file mode 100644 index 0000000..ec1e473 --- /dev/null +++ b/dist/models/GooglerpcStatus.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface GooglerpcStatus + */ +export interface GooglerpcStatus { + /** + * Код ошибки. + * @type {number} + * @memberof GooglerpcStatus + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {Array} + * @memberof GooglerpcStatus + */ + details?: Array; + /** + * Описание ошибки. + * @type {string} + * @memberof GooglerpcStatus + */ + message?: string; +} +/** + * Check if a given object implements the GooglerpcStatus interface. + */ +export declare function instanceOfGooglerpcStatus(value: object): value is GooglerpcStatus; +export declare function GooglerpcStatusFromJSON(json: any): GooglerpcStatus; +export declare function GooglerpcStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GooglerpcStatus; +export declare function GooglerpcStatusToJSON(value?: GooglerpcStatus | null): any; diff --git a/dist/models/GooglerpcStatus.js b/dist/models/GooglerpcStatus.js new file mode 100644 index 0000000..8a94eb4 --- /dev/null +++ b/dist/models/GooglerpcStatus.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfGooglerpcStatus = instanceOfGooglerpcStatus; +exports.GooglerpcStatusFromJSON = GooglerpcStatusFromJSON; +exports.GooglerpcStatusFromJSONTyped = GooglerpcStatusFromJSONTyped; +exports.GooglerpcStatusToJSON = GooglerpcStatusToJSON; +const ProtobufAny_1 = require("./ProtobufAny"); +/** + * Check if a given object implements the GooglerpcStatus interface. + */ +function instanceOfGooglerpcStatus(value) { + return true; +} +function GooglerpcStatusFromJSON(json) { + return GooglerpcStatusFromJSONTyped(json, false); +} +function GooglerpcStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAny_1.ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function GooglerpcStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAny_1.ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/models/HumanTextsParam.d.ts b/dist/models/HumanTextsParam.d.ts new file mode 100644 index 0000000..bfcbf90 --- /dev/null +++ b/dist/models/HumanTextsParam.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HumanTextsParam + */ +export interface HumanTextsParam { + /** + * Название параметра. + * @type {string} + * @memberof HumanTextsParam + */ + name?: string; + /** + * Значение параметра. + * @type {string} + * @memberof HumanTextsParam + */ + value?: string; +} +/** + * Check if a given object implements the HumanTextsParam interface. + */ +export declare function instanceOfHumanTextsParam(value: object): value is HumanTextsParam; +export declare function HumanTextsParamFromJSON(json: any): HumanTextsParam; +export declare function HumanTextsParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): HumanTextsParam; +export declare function HumanTextsParamToJSON(value?: HumanTextsParam | null): any; diff --git a/dist/models/HumanTextsParam.js b/dist/models/HumanTextsParam.js new file mode 100644 index 0000000..51dfbc5 --- /dev/null +++ b/dist/models/HumanTextsParam.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfHumanTextsParam = instanceOfHumanTextsParam; +exports.HumanTextsParamFromJSON = HumanTextsParamFromJSON; +exports.HumanTextsParamFromJSONTyped = HumanTextsParamFromJSONTyped; +exports.HumanTextsParamToJSON = HumanTextsParamToJSON; +/** + * Check if a given object implements the HumanTextsParam interface. + */ +function instanceOfHumanTextsParam(value) { + return true; +} +function HumanTextsParamFromJSON(json) { + return HumanTextsParamFromJSONTyped(json, false); +} +function HumanTextsParamFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function HumanTextsParamToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'value': value['value'], + }; +} diff --git a/dist/models/ImportProductRequestPromotion.d.ts b/dist/models/ImportProductRequestPromotion.d.ts new file mode 100644 index 0000000..f2b3a78 --- /dev/null +++ b/dist/models/ImportProductRequestPromotion.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ImportProductRequestPromotion + */ +export interface ImportProductRequestPromotion { + /** + * Атрибут для действий с акцией: + * - `ENABLE` — включить, + * - `DISABLE` — выключить, + * - `UNKNOWN` — ничего не менять, передаётся по умолчанию. + * + * @type {string} + * @memberof ImportProductRequestPromotion + */ + operation?: ImportProductRequestPromotionOperationEnum; + /** + * Тип акции: + * - `REVIEWS_PROMO` — акция «Ускоренный сбор отзывов». + * + * @type {string} + * @memberof ImportProductRequestPromotion + */ + type?: ImportProductRequestPromotionTypeEnum; +} +/** + * @export + */ +export declare const ImportProductRequestPromotionOperationEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly ENABLE: "ENABLE"; + readonly DISABLE: "DISABLE"; +}; +export type ImportProductRequestPromotionOperationEnum = typeof ImportProductRequestPromotionOperationEnum[keyof typeof ImportProductRequestPromotionOperationEnum]; +/** + * @export + */ +export declare const ImportProductRequestPromotionTypeEnum: { + readonly REVIEWS_PROMO: "REVIEWS_PROMO"; +}; +export type ImportProductRequestPromotionTypeEnum = typeof ImportProductRequestPromotionTypeEnum[keyof typeof ImportProductRequestPromotionTypeEnum]; +/** + * Check if a given object implements the ImportProductRequestPromotion interface. + */ +export declare function instanceOfImportProductRequestPromotion(value: object): value is ImportProductRequestPromotion; +export declare function ImportProductRequestPromotionFromJSON(json: any): ImportProductRequestPromotion; +export declare function ImportProductRequestPromotionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProductRequestPromotion; +export declare function ImportProductRequestPromotionToJSON(value?: ImportProductRequestPromotion | null): any; diff --git a/dist/models/ImportProductRequestPromotion.js b/dist/models/ImportProductRequestPromotion.js new file mode 100644 index 0000000..c8303de --- /dev/null +++ b/dist/models/ImportProductRequestPromotion.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImportProductRequestPromotionTypeEnum = exports.ImportProductRequestPromotionOperationEnum = void 0; +exports.instanceOfImportProductRequestPromotion = instanceOfImportProductRequestPromotion; +exports.ImportProductRequestPromotionFromJSON = ImportProductRequestPromotionFromJSON; +exports.ImportProductRequestPromotionFromJSONTyped = ImportProductRequestPromotionFromJSONTyped; +exports.ImportProductRequestPromotionToJSON = ImportProductRequestPromotionToJSON; +/** + * @export + */ +exports.ImportProductRequestPromotionOperationEnum = { + UNKNOWN: 'UNKNOWN', + ENABLE: 'ENABLE', + DISABLE: 'DISABLE' +}; +/** + * @export + */ +exports.ImportProductRequestPromotionTypeEnum = { + REVIEWS_PROMO: 'REVIEWS_PROMO' +}; +/** + * Check if a given object implements the ImportProductRequestPromotion interface. + */ +function instanceOfImportProductRequestPromotion(value) { + return true; +} +function ImportProductRequestPromotionFromJSON(json) { + return ImportProductRequestPromotionFromJSONTyped(json, false); +} +function ImportProductRequestPromotionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation': json['operation'] == null ? undefined : json['operation'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} +function ImportProductRequestPromotionToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation': value['operation'], + 'type': value['type'], + }; +} diff --git a/dist/models/ImportProductsRequestPdfList.d.ts b/dist/models/ImportProductsRequestPdfList.d.ts new file mode 100644 index 0000000..bbd6bd4 --- /dev/null +++ b/dist/models/ImportProductsRequestPdfList.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ImportProductsRequestPdfList + */ +export interface ImportProductsRequestPdfList { + /** + * Индекс документа в хранилище, который задаёт порядок. + * @type {number} + * @memberof ImportProductsRequestPdfList + */ + index?: number; + /** + * Название файла. + * @type {string} + * @memberof ImportProductsRequestPdfList + */ + name?: string; + /** + * Адрес файла. + * @type {string} + * @memberof ImportProductsRequestPdfList + */ + src_url?: string; +} +/** + * Check if a given object implements the ImportProductsRequestPdfList interface. + */ +export declare function instanceOfImportProductsRequestPdfList(value: object): value is ImportProductsRequestPdfList; +export declare function ImportProductsRequestPdfListFromJSON(json: any): ImportProductsRequestPdfList; +export declare function ImportProductsRequestPdfListFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportProductsRequestPdfList; +export declare function ImportProductsRequestPdfListToJSON(value?: ImportProductsRequestPdfList | null): any; diff --git a/dist/models/ImportProductsRequestPdfList.js b/dist/models/ImportProductsRequestPdfList.js new file mode 100644 index 0000000..604443b --- /dev/null +++ b/dist/models/ImportProductsRequestPdfList.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfImportProductsRequestPdfList = instanceOfImportProductsRequestPdfList; +exports.ImportProductsRequestPdfListFromJSON = ImportProductsRequestPdfListFromJSON; +exports.ImportProductsRequestPdfListFromJSONTyped = ImportProductsRequestPdfListFromJSONTyped; +exports.ImportProductsRequestPdfListToJSON = ImportProductsRequestPdfListToJSON; +/** + * Check if a given object implements the ImportProductsRequestPdfList interface. + */ +function instanceOfImportProductsRequestPdfList(value) { + return true; +} +function ImportProductsRequestPdfListFromJSON(json) { + return ImportProductsRequestPdfListFromJSONTyped(json, false); +} +function ImportProductsRequestPdfListFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'index': json['index'] == null ? undefined : json['index'], + 'name': json['name'] == null ? undefined : json['name'], + 'src_url': json['src_url'] == null ? undefined : json['src_url'], + }; +} +function ImportProductsRequestPdfListToJSON(value) { + if (value == null) { + return value; + } + return { + 'index': value['index'], + 'name': value['name'], + 'src_url': value['src_url'], + }; +} diff --git a/dist/models/InvoiceGetV2ResponseResult.d.ts b/dist/models/InvoiceGetV2ResponseResult.d.ts new file mode 100644 index 0000000..cb7a8f0 --- /dev/null +++ b/dist/models/InvoiceGetV2ResponseResult.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2HsCode } from './V2HsCode'; +/** + * Информация о счёте-фактуре. + * @export + * @interface InvoiceGetV2ResponseResult + */ +export interface InvoiceGetV2ResponseResult { + /** + * Дата загрузки счёта-фактуры. + * @type {string} + * @memberof InvoiceGetV2ResponseResult + */ + date?: string; + /** + * Ссылка на счёт-фактуру. + * @type {string} + * @memberof InvoiceGetV2ResponseResult + */ + file_url?: string; + /** + * HS-коды товаров. + * @type {Array} + * @memberof InvoiceGetV2ResponseResult + */ + hs_codes?: Array; + /** + * Номер счёта-фактуры. + * @type {string} + * @memberof InvoiceGetV2ResponseResult + */ + number?: string; + /** + * Стоимость, указанная в счёте-фактуре. + * Разделитель дробной части — точка, до двух знаков после точки. + * Пример: `199.99`. + * + * @type {number} + * @memberof InvoiceGetV2ResponseResult + */ + price?: number; + /** + * Валюта счёта-фактуры: + * - `USD` — доллар, + * - `EUR` — евро, + * - `TRY` — турецкая лира, + * - `CNY` — юань, + * - `RUB` — рубль, + * - `GBP` — фунт стерлингов. + * + * Значение по умолчанию — `USD`. + * + * @type {string} + * @memberof InvoiceGetV2ResponseResult + */ + price_currency?: string; +} +/** + * Check if a given object implements the InvoiceGetV2ResponseResult interface. + */ +export declare function instanceOfInvoiceGetV2ResponseResult(value: object): value is InvoiceGetV2ResponseResult; +export declare function InvoiceGetV2ResponseResultFromJSON(json: any): InvoiceGetV2ResponseResult; +export declare function InvoiceGetV2ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceGetV2ResponseResult; +export declare function InvoiceGetV2ResponseResultToJSON(value?: InvoiceGetV2ResponseResult | null): any; diff --git a/dist/models/InvoiceGetV2ResponseResult.js b/dist/models/InvoiceGetV2ResponseResult.js new file mode 100644 index 0000000..ced1ecf --- /dev/null +++ b/dist/models/InvoiceGetV2ResponseResult.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfInvoiceGetV2ResponseResult = instanceOfInvoiceGetV2ResponseResult; +exports.InvoiceGetV2ResponseResultFromJSON = InvoiceGetV2ResponseResultFromJSON; +exports.InvoiceGetV2ResponseResultFromJSONTyped = InvoiceGetV2ResponseResultFromJSONTyped; +exports.InvoiceGetV2ResponseResultToJSON = InvoiceGetV2ResponseResultToJSON; +const V2HsCode_1 = require("./V2HsCode"); +/** + * Check if a given object implements the InvoiceGetV2ResponseResult interface. + */ +function instanceOfInvoiceGetV2ResponseResult(value) { + return true; +} +function InvoiceGetV2ResponseResultFromJSON(json) { + return InvoiceGetV2ResponseResultFromJSONTyped(json, false); +} +function InvoiceGetV2ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + 'hs_codes': json['hs_codes'] == null ? undefined : (json['hs_codes'].map(V2HsCode_1.V2HsCodeFromJSON)), + 'number': json['number'] == null ? undefined : json['number'], + 'price': json['price'] == null ? undefined : json['price'], + 'price_currency': json['price_currency'] == null ? undefined : json['price_currency'], + }; +} +function InvoiceGetV2ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'file_url': value['file_url'], + 'hs_codes': value['hs_codes'] == null ? undefined : (value['hs_codes'].map(V2HsCode_1.V2HsCodeToJSON)), + 'number': value['number'], + 'price': value['price'], + 'price_currency': value['price_currency'], + }; +} diff --git a/dist/models/ItemBundleSummary.d.ts b/dist/models/ItemBundleSummary.d.ts new file mode 100644 index 0000000..bcfbcde --- /dev/null +++ b/dist/models/ItemBundleSummary.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сводная информация по товарам в поставке. + * @export + * @interface ItemBundleSummary + */ +export interface ItemBundleSummary { + /** + * Общий объём товаров в литрах. + * @type {number} + * @memberof ItemBundleSummary + */ + rounded_total_volume_in_litres?: number; + /** + * Количество SKU в поставке. + * @type {number} + * @memberof ItemBundleSummary + */ + total_item_count?: number; + /** + * Количество единиц товаров в поставке. + * @type {number} + * @memberof ItemBundleSummary + */ + total_quantity?: number; +} +/** + * Check if a given object implements the ItemBundleSummary interface. + */ +export declare function instanceOfItemBundleSummary(value: object): value is ItemBundleSummary; +export declare function ItemBundleSummaryFromJSON(json: any): ItemBundleSummary; +export declare function ItemBundleSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemBundleSummary; +export declare function ItemBundleSummaryToJSON(value?: ItemBundleSummary | null): any; diff --git a/dist/models/ItemBundleSummary.js b/dist/models/ItemBundleSummary.js new file mode 100644 index 0000000..175d335 --- /dev/null +++ b/dist/models/ItemBundleSummary.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfItemBundleSummary = instanceOfItemBundleSummary; +exports.ItemBundleSummaryFromJSON = ItemBundleSummaryFromJSON; +exports.ItemBundleSummaryFromJSONTyped = ItemBundleSummaryFromJSONTyped; +exports.ItemBundleSummaryToJSON = ItemBundleSummaryToJSON; +/** + * Check if a given object implements the ItemBundleSummary interface. + */ +function instanceOfItemBundleSummary(value) { + return true; +} +function ItemBundleSummaryFromJSON(json) { + return ItemBundleSummaryFromJSONTyped(json, false); +} +function ItemBundleSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rounded_total_volume_in_litres': json['rounded_total_volume_in_litres'] == null ? undefined : json['rounded_total_volume_in_litres'], + 'total_item_count': json['total_item_count'] == null ? undefined : json['total_item_count'], + 'total_quantity': json['total_quantity'] == null ? undefined : json['total_quantity'], + }; +} +function ItemBundleSummaryToJSON(value) { + if (value == null) { + return value; + } + return { + 'rounded_total_volume_in_litres': value['rounded_total_volume_in_litres'], + 'total_item_count': value['total_item_count'], + 'total_quantity': value['total_quantity'], + }; +} diff --git a/dist/models/ItemCommissionsv5.d.ts b/dist/models/ItemCommissionsv5.d.ts new file mode 100644 index 0000000..0cf2397 --- /dev/null +++ b/dist/models/ItemCommissionsv5.d.ts @@ -0,0 +1,115 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о комиссиях. + * @export + * @interface ItemCommissionsv5 + */ +export interface ItemCommissionsv5 { + /** + * Последняя миля (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbo_deliv_to_customer_amount?: number; + /** + * Магистраль до (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbo_direct_flow_trans_max_amount?: number; + /** + * Магистраль от (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbo_direct_flow_trans_min_amount?: number; + /** + * Комиссия за возврат и отмену (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbo_return_flow_amount?: number; + /** + * Последняя миля (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_deliv_to_customer_amount?: number; + /** + * Магистраль до (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_direct_flow_trans_max_amount?: number; + /** + * Магистраль от (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_direct_flow_trans_min_amount?: number; + /** + * Максимальная комиссия за обработку отправления (FBS). + * + * [Подробнее о тарифах в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/rashody-na-dop-uslugi#выезд-транспортного-средства-по-адресу-продавца-для-забора-отправлении-(pick-up)) + * + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_first_mile_max_amount?: number; + /** + * Минимальная комиссия за обработку отправления (FBS). + * + * [Подробнее о тарифах в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/rashody-na-dop-uslugi#выезд-транспортного-средства-по-адресу-продавца-для-забора-отправлении-(pick-up)) + * + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_first_mile_min_amount?: number; + /** + * Комиссия за возврат и отмену, обработка отправления (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + fbs_return_flow_amount?: number; + /** + * Процент комиссии за продажу (FBO). + * @type {number} + * @memberof ItemCommissionsv5 + */ + sales_percent_fbo?: number; + /** + * Процент комиссии за продажу (FBP). + * @type {number} + * @memberof ItemCommissionsv5 + */ + sales_percent_fbp?: number; + /** + * Процент комиссии за продажу (FBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + sales_percent_fbs?: number; + /** + * Процент комиссии за продажу (rFBS). + * @type {number} + * @memberof ItemCommissionsv5 + */ + sales_percent_rfbs?: number; +} +/** + * Check if a given object implements the ItemCommissionsv5 interface. + */ +export declare function instanceOfItemCommissionsv5(value: object): value is ItemCommissionsv5; +export declare function ItemCommissionsv5FromJSON(json: any): ItemCommissionsv5; +export declare function ItemCommissionsv5FromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemCommissionsv5; +export declare function ItemCommissionsv5ToJSON(value?: ItemCommissionsv5 | null): any; diff --git a/dist/models/ItemCommissionsv5.js b/dist/models/ItemCommissionsv5.js new file mode 100644 index 0000000..f979447 --- /dev/null +++ b/dist/models/ItemCommissionsv5.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfItemCommissionsv5 = instanceOfItemCommissionsv5; +exports.ItemCommissionsv5FromJSON = ItemCommissionsv5FromJSON; +exports.ItemCommissionsv5FromJSONTyped = ItemCommissionsv5FromJSONTyped; +exports.ItemCommissionsv5ToJSON = ItemCommissionsv5ToJSON; +/** + * Check if a given object implements the ItemCommissionsv5 interface. + */ +function instanceOfItemCommissionsv5(value) { + return true; +} +function ItemCommissionsv5FromJSON(json) { + return ItemCommissionsv5FromJSONTyped(json, false); +} +function ItemCommissionsv5FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fbo_deliv_to_customer_amount': json['fbo_deliv_to_customer_amount'] == null ? undefined : json['fbo_deliv_to_customer_amount'], + 'fbo_direct_flow_trans_max_amount': json['fbo_direct_flow_trans_max_amount'] == null ? undefined : json['fbo_direct_flow_trans_max_amount'], + 'fbo_direct_flow_trans_min_amount': json['fbo_direct_flow_trans_min_amount'] == null ? undefined : json['fbo_direct_flow_trans_min_amount'], + 'fbo_return_flow_amount': json['fbo_return_flow_amount'] == null ? undefined : json['fbo_return_flow_amount'], + 'fbs_deliv_to_customer_amount': json['fbs_deliv_to_customer_amount'] == null ? undefined : json['fbs_deliv_to_customer_amount'], + 'fbs_direct_flow_trans_max_amount': json['fbs_direct_flow_trans_max_amount'] == null ? undefined : json['fbs_direct_flow_trans_max_amount'], + 'fbs_direct_flow_trans_min_amount': json['fbs_direct_flow_trans_min_amount'] == null ? undefined : json['fbs_direct_flow_trans_min_amount'], + 'fbs_first_mile_max_amount': json['fbs_first_mile_max_amount'] == null ? undefined : json['fbs_first_mile_max_amount'], + 'fbs_first_mile_min_amount': json['fbs_first_mile_min_amount'] == null ? undefined : json['fbs_first_mile_min_amount'], + 'fbs_return_flow_amount': json['fbs_return_flow_amount'] == null ? undefined : json['fbs_return_flow_amount'], + 'sales_percent_fbo': json['sales_percent_fbo'] == null ? undefined : json['sales_percent_fbo'], + 'sales_percent_fbp': json['sales_percent_fbp'] == null ? undefined : json['sales_percent_fbp'], + 'sales_percent_fbs': json['sales_percent_fbs'] == null ? undefined : json['sales_percent_fbs'], + 'sales_percent_rfbs': json['sales_percent_rfbs'] == null ? undefined : json['sales_percent_rfbs'], + }; +} +function ItemCommissionsv5ToJSON(value) { + if (value == null) { + return value; + } + return { + 'fbo_deliv_to_customer_amount': value['fbo_deliv_to_customer_amount'], + 'fbo_direct_flow_trans_max_amount': value['fbo_direct_flow_trans_max_amount'], + 'fbo_direct_flow_trans_min_amount': value['fbo_direct_flow_trans_min_amount'], + 'fbo_return_flow_amount': value['fbo_return_flow_amount'], + 'fbs_deliv_to_customer_amount': value['fbs_deliv_to_customer_amount'], + 'fbs_direct_flow_trans_max_amount': value['fbs_direct_flow_trans_max_amount'], + 'fbs_direct_flow_trans_min_amount': value['fbs_direct_flow_trans_min_amount'], + 'fbs_first_mile_max_amount': value['fbs_first_mile_max_amount'], + 'fbs_first_mile_min_amount': value['fbs_first_mile_min_amount'], + 'fbs_return_flow_amount': value['fbs_return_flow_amount'], + 'sales_percent_fbo': value['sales_percent_fbo'], + 'sales_percent_fbp': value['sales_percent_fbp'], + 'sales_percent_fbs': value['sales_percent_fbs'], + 'sales_percent_rfbs': value['sales_percent_rfbs'], + }; +} diff --git a/dist/models/ItemMarketing.d.ts b/dist/models/ItemMarketing.d.ts new file mode 100644 index 0000000..cb88f1a --- /dev/null +++ b/dist/models/ItemMarketing.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MarketingAction } from './MarketingAction'; +/** + * Маркетинговые акции. + * @export + * @interface ItemMarketing + */ +export interface ItemMarketing { + /** + * Маркетинговые акции. Параметры `date_from`, `date_to`, `title` и `value` указываются для каждой акции. + * @type {Array} + * @memberof ItemMarketing + */ + actions?: Array; + /** + * Дата и время начала текущего периода по всем действующим акциям. + * @type {string} + * @memberof ItemMarketing + */ + current_period_from?: string; + /** + * Дата и время окончания текущего периода по всем действующим акциям. + * @type {string} + * @memberof ItemMarketing + */ + current_period_to?: string; + /** + * `true`, если к товару можно применить акцию за счёт Ozon. + * + * @type {boolean} + * @memberof ItemMarketing + */ + ozon_actions_exist?: boolean; +} +/** + * Check if a given object implements the ItemMarketing interface. + */ +export declare function instanceOfItemMarketing(value: object): value is ItemMarketing; +export declare function ItemMarketingFromJSON(json: any): ItemMarketing; +export declare function ItemMarketingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemMarketing; +export declare function ItemMarketingToJSON(value?: ItemMarketing | null): any; diff --git a/dist/models/ItemMarketing.js b/dist/models/ItemMarketing.js new file mode 100644 index 0000000..7aa44af --- /dev/null +++ b/dist/models/ItemMarketing.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfItemMarketing = instanceOfItemMarketing; +exports.ItemMarketingFromJSON = ItemMarketingFromJSON; +exports.ItemMarketingFromJSONTyped = ItemMarketingFromJSONTyped; +exports.ItemMarketingToJSON = ItemMarketingToJSON; +const MarketingAction_1 = require("./MarketingAction"); +/** + * Check if a given object implements the ItemMarketing interface. + */ +function instanceOfItemMarketing(value) { + return true; +} +function ItemMarketingFromJSON(json) { + return ItemMarketingFromJSONTyped(json, false); +} +function ItemMarketingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : (json['actions'].map(MarketingAction_1.MarketingActionFromJSON)), + 'current_period_from': json['current_period_from'] == null ? undefined : json['current_period_from'], + 'current_period_to': json['current_period_to'] == null ? undefined : json['current_period_to'], + 'ozon_actions_exist': json['ozon_actions_exist'] == null ? undefined : json['ozon_actions_exist'], + }; +} +function ItemMarketingToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'] == null ? undefined : (value['actions'].map(MarketingAction_1.MarketingActionToJSON)), + 'current_period_from': value['current_period_from'], + 'current_period_to': value['current_period_to'], + 'ozon_actions_exist': value['ozon_actions_exist'], + }; +} diff --git a/dist/models/ItemPricev5.d.ts b/dist/models/ItemPricev5.d.ts new file mode 100644 index 0000000..219c415 --- /dev/null +++ b/dist/models/ItemPricev5.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара. + * @export + * @interface ItemPricev5 + */ +export interface ItemPricev5 { + /** + * `true`, если автоприменение акций у товара включено. + * + * @type {boolean} + * @memberof ItemPricev5 + */ + auto_action_enabled?: boolean; + /** + * `true`, если автодобавление товара в акции включено. + * + * @type {boolean} + * @memberof ItemPricev5 + */ + auto_add_to_ozon_actions_list_enabled?: boolean; + /** + * Валюта ваших цен. Совпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ItemPricev5 + */ + currency_code?: string; + /** + * Цена на товар с учётом акций продавца. + * @type {number} + * @memberof ItemPricev5 + */ + marketing_seller_price?: number; + /** + * Минимальная цена товара после применения всех скидок. + * @type {number} + * @memberof ItemPricev5 + */ + min_price?: number; + /** + * Себестоимость товара. + * @type {number} + * @memberof ItemPricev5 + */ + net_price?: number; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof ItemPricev5 + */ + old_price?: number; + /** + * Цена товара с учётом скидок — это значение показывается на карточке товара. + * @type {number} + * @memberof ItemPricev5 + */ + price?: number; + /** + * Цена поставщика по договору. Поле вернётся пустым, если нет договора на поставку. + * @type {number} + * @memberof ItemPricev5 + */ + retail_price?: number; + /** + * Ставка НДС для товара. + * @type {number} + * @memberof ItemPricev5 + */ + vat?: number; +} +/** + * Check if a given object implements the ItemPricev5 interface. + */ +export declare function instanceOfItemPricev5(value: object): value is ItemPricev5; +export declare function ItemPricev5FromJSON(json: any): ItemPricev5; +export declare function ItemPricev5FromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemPricev5; +export declare function ItemPricev5ToJSON(value?: ItemPricev5 | null): any; diff --git a/dist/models/ItemPricev5.js b/dist/models/ItemPricev5.js new file mode 100644 index 0000000..9167b6c --- /dev/null +++ b/dist/models/ItemPricev5.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfItemPricev5 = instanceOfItemPricev5; +exports.ItemPricev5FromJSON = ItemPricev5FromJSON; +exports.ItemPricev5FromJSONTyped = ItemPricev5FromJSONTyped; +exports.ItemPricev5ToJSON = ItemPricev5ToJSON; +/** + * Check if a given object implements the ItemPricev5 interface. + */ +function instanceOfItemPricev5(value) { + return true; +} +function ItemPricev5FromJSON(json) { + return ItemPricev5FromJSONTyped(json, false); +} +function ItemPricev5FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'auto_action_enabled': json['auto_action_enabled'] == null ? undefined : json['auto_action_enabled'], + 'auto_add_to_ozon_actions_list_enabled': json['auto_add_to_ozon_actions_list_enabled'] == null ? undefined : json['auto_add_to_ozon_actions_list_enabled'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'marketing_seller_price': json['marketing_seller_price'] == null ? undefined : json['marketing_seller_price'], + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'net_price': json['net_price'] == null ? undefined : json['net_price'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'retail_price': json['retail_price'] == null ? undefined : json['retail_price'], + 'vat': json['vat'] == null ? undefined : json['vat'], + }; +} +function ItemPricev5ToJSON(value) { + if (value == null) { + return value; + } + return { + 'auto_action_enabled': value['auto_action_enabled'], + 'auto_add_to_ozon_actions_list_enabled': value['auto_add_to_ozon_actions_list_enabled'], + 'currency_code': value['currency_code'], + 'marketing_seller_price': value['marketing_seller_price'], + 'min_price': value['min_price'], + 'net_price': value['net_price'], + 'old_price': value['old_price'], + 'price': value['price'], + 'retail_price': value['retail_price'], + 'vat': value['vat'], + }; +} diff --git a/dist/models/ItemSize.d.ts b/dist/models/ItemSize.d.ts new file mode 100644 index 0000000..8e8605c --- /dev/null +++ b/dist/models/ItemSize.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Габариты товара. + * @export + * @interface ItemSize + */ +export interface ItemSize { + /** + * Высота товара в миллиметрах. + * @type {number} + * @memberof ItemSize + */ + height_mm?: number; + /** + * Длина товара в миллиметрах. + * @type {number} + * @memberof ItemSize + */ + length_mm?: number; + /** + * Ширина товара в миллиметрах. + * @type {number} + * @memberof ItemSize + */ + width_mm?: number; +} +/** + * Check if a given object implements the ItemSize interface. + */ +export declare function instanceOfItemSize(value: object): value is ItemSize; +export declare function ItemSizeFromJSON(json: any): ItemSize; +export declare function ItemSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemSize; +export declare function ItemSizeToJSON(value?: ItemSize | null): any; diff --git a/dist/models/ItemSize.js b/dist/models/ItemSize.js new file mode 100644 index 0000000..13f6c20 --- /dev/null +++ b/dist/models/ItemSize.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfItemSize = instanceOfItemSize; +exports.ItemSizeFromJSON = ItemSizeFromJSON; +exports.ItemSizeFromJSONTyped = ItemSizeFromJSONTyped; +exports.ItemSizeToJSON = ItemSizeToJSON; +/** + * Check if a given object implements the ItemSize interface. + */ +function instanceOfItemSize(value) { + return true; +} +function ItemSizeFromJSON(json) { + return ItemSizeFromJSONTyped(json, false); +} +function ItemSizeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height_mm': json['height_mm'] == null ? undefined : json['height_mm'], + 'length_mm': json['length_mm'] == null ? undefined : json['length_mm'], + 'width_mm': json['width_mm'] == null ? undefined : json['width_mm'], + }; +} +function ItemSizeToJSON(value) { + if (value == null) { + return value; + } + return { + 'height_mm': value['height_mm'], + 'length_mm': value['length_mm'], + 'width_mm': value['width_mm'], + }; +} diff --git a/dist/models/ItemStatusError.d.ts b/dist/models/ItemStatusError.d.ts new file mode 100644 index 0000000..c544aec --- /dev/null +++ b/dist/models/ItemStatusError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ItemStatusError + */ +export interface ItemStatusError { + /** + * Код ошибки. + * @type {string} + * @memberof ItemStatusError + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof ItemStatusError + */ + message?: string; +} +/** + * Check if a given object implements the ItemStatusError interface. + */ +export declare function instanceOfItemStatusError(value: object): value is ItemStatusError; +export declare function ItemStatusErrorFromJSON(json: any): ItemStatusError; +export declare function ItemStatusErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemStatusError; +export declare function ItemStatusErrorToJSON(value?: ItemStatusError | null): any; diff --git a/dist/models/ItemStatusError.js b/dist/models/ItemStatusError.js new file mode 100644 index 0000000..bde6d5e --- /dev/null +++ b/dist/models/ItemStatusError.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfItemStatusError = instanceOfItemStatusError; +exports.ItemStatusErrorFromJSON = ItemStatusErrorFromJSON; +exports.ItemStatusErrorFromJSONTyped = ItemStatusErrorFromJSONTyped; +exports.ItemStatusErrorToJSON = ItemStatusErrorToJSON; +/** + * Check if a given object implements the ItemStatusError interface. + */ +function instanceOfItemStatusError(value) { + return true; +} +function ItemStatusErrorFromJSON(json) { + return ItemStatusErrorFromJSONTyped(json, false); +} +function ItemStatusErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function ItemStatusErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/models/ItemValidationErrorType.d.ts b/dist/models/ItemValidationErrorType.d.ts new file mode 100644 index 0000000..d14b7d1 --- /dev/null +++ b/dist/models/ItemValidationErrorType.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `SUPPLY_ITEM_NOT_FOUND` — товар не найден; + * - `DUPLICATED_SUPPLY_ITEM` — найден дубликат товара; + * - `BEFORE_DEADLINE` — некорректный срок годности; + * - `SAME_BARCODES` — у разных SKU одинаковые штрихкоды; + * - `SAME_ARTICLES` — у разных SKU одинаковые артикулы; + * - `NOT_UNIQUE_SKU_BY_PRODUCT` — одинаковый SKU в грузоместе используется для разных товаров; + * - `QUANTITY_NOT_DIVISIBLE_BY_QUANT` — количество SKU в грузоместе не кратно кванту; + * - `NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO` — в грузоместе отсутствует палетная SKU; + * - `NOT_ONE_QUANT_PALLET_SKU` — в квантовом палетном грузоместе должен быть только один квант; + * - `NOT_ECONOM_SKU` — в эконом-поставке указан не эконом-SKU; + * - `QUANTITY_LESS_ONE` — количество SKU в эконом-поставке меньше 1; + * - `SUPPLY_ITEM_WITH_QUANT_NOT_FOUND` — товар не найден по артикулу, штрихкоду и размеру кванта. + * + * @export + */ +export declare const ItemValidationErrorType: { + readonly SUPPLY_ITEM_NOT_FOUND: "SUPPLY_ITEM_NOT_FOUND"; + readonly DUPLICATED_SUPPLY_ITEM: "DUPLICATED_SUPPLY_ITEM"; + readonly BEFORE_DEADLINE: "BEFORE_DEADLINE"; + readonly SAME_BARCODES: "SAME_BARCODES"; + readonly SAME_ARTICLES: "SAME_ARTICLES"; + readonly NOT_UNIQUE_SKU_BY_PRODUCT: "NOT_UNIQUE_SKU_BY_PRODUCT"; + readonly QUANTITY_NOT_DIVISIBLE_BY_QUANT: "QUANTITY_NOT_DIVISIBLE_BY_QUANT"; + readonly NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO: "NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO"; + readonly NOT_ONE_QUANT_PALLET_SKU: "NOT_ONE_QUANT_PALLET_SKU"; + readonly NOT_ECONOM_SKU: "NOT_ECONOM_SKU"; + readonly QUANTITY_LESS_ONE: "QUANTITY_LESS_ONE"; + readonly SUPPLY_ITEM_WITH_QUANT_NOT_FOUND: "SUPPLY_ITEM_WITH_QUANT_NOT_FOUND"; +}; +export type ItemValidationErrorType = typeof ItemValidationErrorType[keyof typeof ItemValidationErrorType]; +export declare function instanceOfItemValidationErrorType(value: any): boolean; +export declare function ItemValidationErrorTypeFromJSON(json: any): ItemValidationErrorType; +export declare function ItemValidationErrorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemValidationErrorType; +export declare function ItemValidationErrorTypeToJSON(value?: ItemValidationErrorType | null): any; diff --git a/dist/models/ItemValidationErrorType.js b/dist/models/ItemValidationErrorType.js new file mode 100644 index 0000000..56dd532 --- /dev/null +++ b/dist/models/ItemValidationErrorType.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemValidationErrorType = void 0; +exports.instanceOfItemValidationErrorType = instanceOfItemValidationErrorType; +exports.ItemValidationErrorTypeFromJSON = ItemValidationErrorTypeFromJSON; +exports.ItemValidationErrorTypeFromJSONTyped = ItemValidationErrorTypeFromJSONTyped; +exports.ItemValidationErrorTypeToJSON = ItemValidationErrorTypeToJSON; +/** + * Тип ошибки: + * - `SUPPLY_ITEM_NOT_FOUND` — товар не найден; + * - `DUPLICATED_SUPPLY_ITEM` — найден дубликат товара; + * - `BEFORE_DEADLINE` — некорректный срок годности; + * - `SAME_BARCODES` — у разных SKU одинаковые штрихкоды; + * - `SAME_ARTICLES` — у разных SKU одинаковые артикулы; + * - `NOT_UNIQUE_SKU_BY_PRODUCT` — одинаковый SKU в грузоместе используется для разных товаров; + * - `QUANTITY_NOT_DIVISIBLE_BY_QUANT` — количество SKU в грузоместе не кратно кванту; + * - `NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO` — в грузоместе отсутствует палетная SKU; + * - `NOT_ONE_QUANT_PALLET_SKU` — в квантовом палетном грузоместе должен быть только один квант; + * - `NOT_ECONOM_SKU` — в эконом-поставке указан не эконом-SKU; + * - `QUANTITY_LESS_ONE` — количество SKU в эконом-поставке меньше 1; + * - `SUPPLY_ITEM_WITH_QUANT_NOT_FOUND` — товар не найден по артикулу, штрихкоду и размеру кванта. + * + * @export + */ +exports.ItemValidationErrorType = { + SUPPLY_ITEM_NOT_FOUND: 'SUPPLY_ITEM_NOT_FOUND', + DUPLICATED_SUPPLY_ITEM: 'DUPLICATED_SUPPLY_ITEM', + BEFORE_DEADLINE: 'BEFORE_DEADLINE', + SAME_BARCODES: 'SAME_BARCODES', + SAME_ARTICLES: 'SAME_ARTICLES', + NOT_UNIQUE_SKU_BY_PRODUCT: 'NOT_UNIQUE_SKU_BY_PRODUCT', + QUANTITY_NOT_DIVISIBLE_BY_QUANT: 'QUANTITY_NOT_DIVISIBLE_BY_QUANT', + NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO: 'NOT_SINGLE_PALLET_SKU_IN_PALLET_CARGO', + NOT_ONE_QUANT_PALLET_SKU: 'NOT_ONE_QUANT_PALLET_SKU', + NOT_ECONOM_SKU: 'NOT_ECONOM_SKU', + QUANTITY_LESS_ONE: 'QUANTITY_LESS_ONE', + SUPPLY_ITEM_WITH_QUANT_NOT_FOUND: 'SUPPLY_ITEM_WITH_QUANT_NOT_FOUND' +}; +function instanceOfItemValidationErrorType(value) { + for (const key in exports.ItemValidationErrorType) { + if (Object.prototype.hasOwnProperty.call(exports.ItemValidationErrorType, key)) { + if (exports.ItemValidationErrorType[key] === value) { + return true; + } + } + } + return false; +} +function ItemValidationErrorTypeFromJSON(json) { + return ItemValidationErrorTypeFromJSONTyped(json, false); +} +function ItemValidationErrorTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ItemValidationErrorTypeToJSON(value) { + return value; +} diff --git a/dist/models/ItemsValidationRejectedItems.d.ts b/dist/models/ItemsValidationRejectedItems.d.ts new file mode 100644 index 0000000..ccf16de --- /dev/null +++ b/dist/models/ItemsValidationRejectedItems.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RejectedItemsReasonEnum } from './RejectedItemsReasonEnum'; +/** + * + * @export + * @interface ItemsValidationRejectedItems + */ +export interface ItemsValidationRejectedItems { + /** + * Причины отклонения: + * - `UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товар не входит в ассортимент; + * - `INVALID` — недействительный товар; + * - `INCOMPATIBLE_WAREHOUSE` — товар нельзя разместить на выбранном складе; + * - `EMPTY_BARCODE` — нет штрихкода; + * - `EMPTY_PS_ATTRIBUTE` — нет обязательного атрибута товара; + * - `MULTIPLICITY` — количество товара в поставке не кратно продаваемым партиям; + * - `NO_PRICE` — нет цены; + * - `INVALID_ITEM_COUNT_MAX` — количество товара больше максимального; + * - `INVALID_ITEM_COUNT_ZERO` — количество товара равно нулю; + * - `SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS` — товар отклонён из-за ограничений на приёмку; + * - `SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED` — товар с меткой `is_ettn_required` не разрешён; + * - `SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED` — товар без метки `is_ettn_required` не разрешён; + * - `SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED` — товар с тегом отслеживаемости не разрешён; + * - `SKU_IS_RESTRICTED` — товар ограничен к приёмке; + * - `EMPTY_CLUSTER` — нет кластера; + * - `SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED` — товар с обязательным тегом UTD не разрешён; + * - `CORRUPTED_ASSORTMENT` — не получилось добавить товар в заявку; + * - `STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN` — у товара для хранения в Беларуси нет кода ТН ВЭД; + * - `STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN`— у товара для хранения в Беларуси нет кода ТН ВЭД продавца; + * - `TRACEABLE_SKU_HAS_NO_GTIN_BARCODE` — у товара нет штрихкода GTIN; + * - `TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY` — у товара нет указанного количества в единицах; + * - `SKU_HAS_INVALID_HS_CODE` — у товара некорректный HS-код; + * - `SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS` — у товара есть ограничения по стране хранения; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof ItemsValidationRejectedItems + */ + reasons?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ItemsValidationRejectedItems + */ + sku?: number; +} +/** + * Check if a given object implements the ItemsValidationRejectedItems interface. + */ +export declare function instanceOfItemsValidationRejectedItems(value: object): value is ItemsValidationRejectedItems; +export declare function ItemsValidationRejectedItemsFromJSON(json: any): ItemsValidationRejectedItems; +export declare function ItemsValidationRejectedItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemsValidationRejectedItems; +export declare function ItemsValidationRejectedItemsToJSON(value?: ItemsValidationRejectedItems | null): any; diff --git a/dist/models/ItemsValidationRejectedItems.js b/dist/models/ItemsValidationRejectedItems.js new file mode 100644 index 0000000..51f80f3 --- /dev/null +++ b/dist/models/ItemsValidationRejectedItems.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfItemsValidationRejectedItems = instanceOfItemsValidationRejectedItems; +exports.ItemsValidationRejectedItemsFromJSON = ItemsValidationRejectedItemsFromJSON; +exports.ItemsValidationRejectedItemsFromJSONTyped = ItemsValidationRejectedItemsFromJSONTyped; +exports.ItemsValidationRejectedItemsToJSON = ItemsValidationRejectedItemsToJSON; +const RejectedItemsReasonEnum_1 = require("./RejectedItemsReasonEnum"); +/** + * Check if a given object implements the ItemsValidationRejectedItems interface. + */ +function instanceOfItemsValidationRejectedItems(value) { + return true; +} +function ItemsValidationRejectedItemsFromJSON(json) { + return ItemsValidationRejectedItemsFromJSONTyped(json, false); +} +function ItemsValidationRejectedItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(RejectedItemsReasonEnum_1.RejectedItemsReasonEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function ItemsValidationRejectedItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(RejectedItemsReasonEnum_1.RejectedItemsReasonEnumToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/models/LanguageLanguage.d.ts b/dist/models/LanguageLanguage.d.ts new file mode 100644 index 0000000..c1cd402 --- /dev/null +++ b/dist/models/LanguageLanguage.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Язык в ответе: + * - `EN` — английский, + * - `RU` — русский, + * - `TR` — турецкий, + * - `ZH_HANS` — китайский. + * + * По умолчанию используется русский язык. + * + * @export + */ +export declare const LanguageLanguage: { + readonly DEFAULT: "DEFAULT"; + readonly RU: "RU"; + readonly EN: "EN"; + readonly TR: "TR"; + readonly ZH_HANS: "ZH_HANS"; +}; +export type LanguageLanguage = typeof LanguageLanguage[keyof typeof LanguageLanguage]; +export declare function instanceOfLanguageLanguage(value: any): boolean; +export declare function LanguageLanguageFromJSON(json: any): LanguageLanguage; +export declare function LanguageLanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): LanguageLanguage; +export declare function LanguageLanguageToJSON(value?: LanguageLanguage | null): any; diff --git a/dist/models/LanguageLanguage.js b/dist/models/LanguageLanguage.js new file mode 100644 index 0000000..f7f189a --- /dev/null +++ b/dist/models/LanguageLanguage.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LanguageLanguage = void 0; +exports.instanceOfLanguageLanguage = instanceOfLanguageLanguage; +exports.LanguageLanguageFromJSON = LanguageLanguageFromJSON; +exports.LanguageLanguageFromJSONTyped = LanguageLanguageFromJSONTyped; +exports.LanguageLanguageToJSON = LanguageLanguageToJSON; +/** + * Язык в ответе: + * - `EN` — английский, + * - `RU` — русский, + * - `TR` — турецкий, + * - `ZH_HANS` — китайский. + * + * По умолчанию используется русский язык. + * + * @export + */ +exports.LanguageLanguage = { + DEFAULT: 'DEFAULT', + RU: 'RU', + EN: 'EN', + TR: 'TR', + ZH_HANS: 'ZH_HANS' +}; +function instanceOfLanguageLanguage(value) { + for (const key in exports.LanguageLanguage) { + if (Object.prototype.hasOwnProperty.call(exports.LanguageLanguage, key)) { + if (exports.LanguageLanguage[key] === value) { + return true; + } + } + } + return false; +} +function LanguageLanguageFromJSON(json) { + return LanguageLanguageFromJSONTyped(json, false); +} +function LanguageLanguageFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function LanguageLanguageToJSON(value) { + return value; +} diff --git a/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.d.ts b/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.d.ts new file mode 100644 index 0000000..61a6b17 --- /dev/null +++ b/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum } from './ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +/** + * Параметры поиска. + * @export + * @interface ListDropOffPointsForCreateFBSWarehouseRequestSearch + */ +export interface ListDropOffPointsForCreateFBSWarehouseRequestSearch { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForCreateFBSWarehouseRequestSearch + */ + address?: string; + /** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @type {Array} + * @memberof ListDropOffPointsForCreateFBSWarehouseRequestSearch + */ + types?: Array; +} +/** + * Check if a given object implements the ListDropOffPointsForCreateFBSWarehouseRequestSearch interface. + */ +export declare function instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearch(value: object): value is ListDropOffPointsForCreateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON(json: any): ListDropOffPointsForCreateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForCreateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON(value?: ListDropOffPointsForCreateFBSWarehouseRequestSearch | null): any; diff --git a/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.js b/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.js new file mode 100644 index 0000000..fa929f2 --- /dev/null +++ b/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearch.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearch = instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearch; +exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON = ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON; +exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSONTyped = ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSONTyped; +exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON = ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON; +const ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum_1 = require("./ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum"); +/** + * Check if a given object implements the ListDropOffPointsForCreateFBSWarehouseRequestSearch interface. + */ +function instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearch(value) { + return true; +} +function ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON(json) { + return ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSONTyped(json, false); +} +function ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'types': json['types'] == null ? undefined : (json['types'].map(ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum_1.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON)), + }; +} +function ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'types': value['types'] == null ? undefined : (value['types'].map(ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum_1.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON)), + }; +} diff --git a/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts b/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts new file mode 100644 index 0000000..cc90c30 --- /dev/null +++ b/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum = typeof ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum[keyof typeof ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum]; +export declare function instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum(value: any): boolean; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON(json: any): ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum; +export declare function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON(value?: ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum | null): any; diff --git a/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.js b/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.js new file mode 100644 index 0000000..3443909 --- /dev/null +++ b/dist/models/ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum = void 0; +exports.instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum = instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum; +exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON = ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON; +exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped = ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped; +exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON = ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON; +/** + * + * @export + */ +exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum(value) { + for (const key in exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum, key)) { + if (exports.ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON(json) { + return ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json, false); +} +function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.d.ts b/dist/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.d.ts new file mode 100644 index 0000000..6b37b8b --- /dev/null +++ b/dist/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum } from './V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum'; +import type { TypeTimeOfDay } from './TypeTimeOfDay'; +import type { V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates } from './V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates'; +/** + * + * @export + * @interface ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ +export interface ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + address?: string; + /** + * + * @type {V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + coordinates?: V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; + /** + * Процент скидки за передачу отправления. + * @type {number} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + discount_percent?: number; + /** + * Идентификатор drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + id?: string; + /** + * + * @type {TypeTimeOfDay} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + last_transit_time_local?: TypeTimeOfDay; + /** + * + * @type {V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum} + * @memberof ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint + */ + type?: V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum; +} +/** + * Check if a given object implements the ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint interface. + */ +export declare function instanceOfListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint(value: object): value is ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON(json: any): ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON(value?: ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint | null): any; diff --git a/dist/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.js b/dist/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.js new file mode 100644 index 0000000..cec379a --- /dev/null +++ b/dist/models/ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint = instanceOfListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint; +exports.ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON = ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON; +exports.ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSONTyped = ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSONTyped; +exports.ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON = ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON; +const V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum_1 = require("./V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum"); +const TypeTimeOfDay_1 = require("./TypeTimeOfDay"); +const V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates_1 = require("./V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates"); +/** + * Check if a given object implements the ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint interface. + */ +function instanceOfListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint(value) { + return true; +} +function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON(json) { + return ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSONTyped(json, false); +} +function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : (0, V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates_1.V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON)(json['coordinates']), + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'id': json['id'] == null ? undefined : json['id'], + 'last_transit_time_local': json['last_transit_time_local'] == null ? undefined : (0, TypeTimeOfDay_1.TypeTimeOfDayFromJSON)(json['last_transit_time_local']), + 'type': json['type'] == null ? undefined : (0, V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum_1.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON)(json['type']), + }; +} +function ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': (0, V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates_1.V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON)(value['coordinates']), + 'discount_percent': value['discount_percent'], + 'id': value['id'], + 'last_transit_time_local': (0, TypeTimeOfDay_1.TypeTimeOfDayToJSON)(value['last_transit_time_local']), + 'type': (0, V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum_1.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.d.ts b/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.d.ts new file mode 100644 index 0000000..586e29d --- /dev/null +++ b/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum } from './ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +/** + * Параметры поиска. + * @export + * @interface ListDropOffPointsForUpdateFBSWarehouseRequestSearch + */ +export interface ListDropOffPointsForUpdateFBSWarehouseRequestSearch { + /** + * Поиск по адресу drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForUpdateFBSWarehouseRequestSearch + */ + address?: string; + /** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @type {Array} + * @memberof ListDropOffPointsForUpdateFBSWarehouseRequestSearch + */ + types?: Array; +} +/** + * Check if a given object implements the ListDropOffPointsForUpdateFBSWarehouseRequestSearch interface. + */ +export declare function instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearch(value: object): value is ListDropOffPointsForUpdateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON(json: any): ListDropOffPointsForUpdateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForUpdateFBSWarehouseRequestSearch; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON(value?: ListDropOffPointsForUpdateFBSWarehouseRequestSearch | null): any; diff --git a/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.js b/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.js new file mode 100644 index 0000000..e29b045 --- /dev/null +++ b/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearch.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearch = instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearch; +exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON = ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON; +exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSONTyped = ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSONTyped; +exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON = ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON; +const ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum_1 = require("./ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum"); +/** + * Check if a given object implements the ListDropOffPointsForUpdateFBSWarehouseRequestSearch interface. + */ +function instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearch(value) { + return true; +} +function ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON(json) { + return ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSONTyped(json, false); +} +function ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'types': json['types'] == null ? undefined : (json['types'].map(ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum_1.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON)), + }; +} +function ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'types': value['types'] == null ? undefined : (value['types'].map(ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum_1.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON)), + }; +} diff --git a/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts b/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts new file mode 100644 index 0000000..b9298e1 --- /dev/null +++ b/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum = typeof ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum[keyof typeof ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum]; +export declare function instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum(value: any): boolean; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON(json: any): ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum; +export declare function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON(value?: ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum | null): any; diff --git a/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.js b/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.js new file mode 100644 index 0000000..42b1a96 --- /dev/null +++ b/dist/models/ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum = void 0; +exports.instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum = instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum; +exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON = ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON; +exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped = ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped; +exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON = ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON; +/** + * + * @export + */ +exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum(value) { + for (const key in exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum, key)) { + if (exports.ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSON(json) { + return ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json, false); +} +function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.d.ts b/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.d.ts new file mode 100644 index 0000000..93d13ee --- /dev/null +++ b/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum } from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum'; +import type { TypeTimeOfDay } from './TypeTimeOfDay'; +import type { DropOffPointCoordinates } from './DropOffPointCoordinates'; +/** + * + * @export + * @interface ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ +export interface ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + address?: string; + /** + * + * @type {DropOffPointCoordinates} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + coordinates?: DropOffPointCoordinates; + /** + * Процент скидки за передачу отправления. + * @type {number} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + discount_percent?: number; + /** + * Идентификатор drop-off пункта. + * @type {string} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + id?: string; + /** + * + * @type {TypeTimeOfDay} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + last_transit_time_local?: TypeTimeOfDay; + /** + * + * @type {ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum} + * @memberof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint + */ + type?: ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum; +} +/** + * Check if a given object implements the ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint interface. + */ +export declare function instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint(value: object): value is ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON(json: any): ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON(value?: ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint | null): any; diff --git a/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.js b/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.js new file mode 100644 index 0000000..2f81040 --- /dev/null +++ b/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint = instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint; +exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON = ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON; +exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSONTyped = ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSONTyped; +exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON = ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON; +const ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum_1 = require("./ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum"); +const TypeTimeOfDay_1 = require("./TypeTimeOfDay"); +const DropOffPointCoordinates_1 = require("./DropOffPointCoordinates"); +/** + * Check if a given object implements the ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint interface. + */ +function instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint(value) { + return true; +} +function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON(json) { + return ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSONTyped(json, false); +} +function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : (0, DropOffPointCoordinates_1.DropOffPointCoordinatesFromJSON)(json['coordinates']), + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'id': json['id'] == null ? undefined : json['id'], + 'last_transit_time_local': json['last_transit_time_local'] == null ? undefined : (0, TypeTimeOfDay_1.TypeTimeOfDayFromJSON)(json['last_transit_time_local']), + 'type': json['type'] == null ? undefined : (0, ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum_1.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON)(json['type']), + }; +} +function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': (0, DropOffPointCoordinates_1.DropOffPointCoordinatesToJSON)(value['coordinates']), + 'discount_percent': value['discount_percent'], + 'id': value['id'], + 'last_transit_time_local': (0, TypeTimeOfDay_1.TypeTimeOfDayToJSON)(value['last_transit_time_local']), + 'type': (0, ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum_1.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.d.ts b/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.d.ts new file mode 100644 index 0000000..41e7e58 --- /dev/null +++ b/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum = typeof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum[keyof typeof ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum]; +export declare function instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum(value: any): boolean; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON(json: any): ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum; +export declare function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON(value?: ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum | null): any; diff --git a/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.js b/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.js new file mode 100644 index 0000000..3eac773 --- /dev/null +++ b/dist/models/ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum = void 0; +exports.instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum = instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum; +exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON = ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON; +exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSONTyped = ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSONTyped; +exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON = ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON; +/** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum(value) { + for (const key in exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum, key)) { + if (exports.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSON(json) { + return ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSONTyped(json, false); +} +function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ListFBSRatingIndexPostingsV1RequestFilter.d.ts b/dist/models/ListFBSRatingIndexPostingsV1RequestFilter.d.ts new file mode 100644 index 0000000..1b5363f --- /dev/null +++ b/dist/models/ListFBSRatingIndexPostingsV1RequestFilter.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface ListFBSRatingIndexPostingsV1RequestFilter + */ +export interface ListFBSRatingIndexPostingsV1RequestFilter { + /** + * Дата начала периода. + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1RequestFilter + */ + date_from: string; + /** + * Дата конца периода. + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1RequestFilter + */ + date_to: string; + /** + * Номера отправлений. + * @type {Array} + * @memberof ListFBSRatingIndexPostingsV1RequestFilter + */ + posting_numbers?: Array; +} +/** + * Check if a given object implements the ListFBSRatingIndexPostingsV1RequestFilter interface. + */ +export declare function instanceOfListFBSRatingIndexPostingsV1RequestFilter(value: object): value is ListFBSRatingIndexPostingsV1RequestFilter; +export declare function ListFBSRatingIndexPostingsV1RequestFilterFromJSON(json: any): ListFBSRatingIndexPostingsV1RequestFilter; +export declare function ListFBSRatingIndexPostingsV1RequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListFBSRatingIndexPostingsV1RequestFilter; +export declare function ListFBSRatingIndexPostingsV1RequestFilterToJSON(value?: ListFBSRatingIndexPostingsV1RequestFilter | null): any; diff --git a/dist/models/ListFBSRatingIndexPostingsV1RequestFilter.js b/dist/models/ListFBSRatingIndexPostingsV1RequestFilter.js new file mode 100644 index 0000000..e926a89 --- /dev/null +++ b/dist/models/ListFBSRatingIndexPostingsV1RequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListFBSRatingIndexPostingsV1RequestFilter = instanceOfListFBSRatingIndexPostingsV1RequestFilter; +exports.ListFBSRatingIndexPostingsV1RequestFilterFromJSON = ListFBSRatingIndexPostingsV1RequestFilterFromJSON; +exports.ListFBSRatingIndexPostingsV1RequestFilterFromJSONTyped = ListFBSRatingIndexPostingsV1RequestFilterFromJSONTyped; +exports.ListFBSRatingIndexPostingsV1RequestFilterToJSON = ListFBSRatingIndexPostingsV1RequestFilterToJSON; +/** + * Check if a given object implements the ListFBSRatingIndexPostingsV1RequestFilter interface. + */ +function instanceOfListFBSRatingIndexPostingsV1RequestFilter(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +function ListFBSRatingIndexPostingsV1RequestFilterFromJSON(json) { + return ListFBSRatingIndexPostingsV1RequestFilterFromJSONTyped(json, false); +} +function ListFBSRatingIndexPostingsV1RequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + }; +} +function ListFBSRatingIndexPostingsV1RequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/models/ListFBSRatingIndexPostingsV1ResponseError.d.ts b/dist/models/ListFBSRatingIndexPostingsV1ResponseError.d.ts new file mode 100644 index 0000000..4a5ea50 --- /dev/null +++ b/dist/models/ListFBSRatingIndexPostingsV1ResponseError.d.ts @@ -0,0 +1,111 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingErrorTypeEnum } from './PostingErrorTypeEnum'; +/** + * + * @export + * @interface ListFBSRatingIndexPostingsV1ResponseError + */ +export interface ListFBSRatingIndexPostingsV1ResponseError { + /** + * Процент стоимости обработки от стоимости отправления. + * @type {number} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + charge_percent?: number; + /** + * Стоимость обработки ошибок. + * @type {number} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + charge_price?: number; + /** + * Код валюты стоимости обработки ошибок: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + charge_price_currency_code?: string; + /** + * Схема доставки: + * - `FBS`, + * - `rFBS`, + * - `erFBS`. + * + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + delivery_schema?: string; + /** + * Дата, когда возникла ошибка. + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + error_at?: string; + /** + * `true`, если у отправления льготный статус. + * + * @type {boolean} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + has_grace_status?: boolean; + /** + * Значение индекса ошибок. + * @type {number} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + index?: number; + /** + * + * @type {PostingErrorTypeEnum} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + posting_error_type?: PostingErrorTypeEnum; + /** + * Номер отправления. + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + posting_number?: string; + /** + * Стоимость товара в отправлении. + * @type {number} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + product_price?: number; + /** + * Код валюты стоимости товара: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ListFBSRatingIndexPostingsV1ResponseError + */ + product_price_currency_code?: string; +} +/** + * Check if a given object implements the ListFBSRatingIndexPostingsV1ResponseError interface. + */ +export declare function instanceOfListFBSRatingIndexPostingsV1ResponseError(value: object): value is ListFBSRatingIndexPostingsV1ResponseError; +export declare function ListFBSRatingIndexPostingsV1ResponseErrorFromJSON(json: any): ListFBSRatingIndexPostingsV1ResponseError; +export declare function ListFBSRatingIndexPostingsV1ResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListFBSRatingIndexPostingsV1ResponseError; +export declare function ListFBSRatingIndexPostingsV1ResponseErrorToJSON(value?: ListFBSRatingIndexPostingsV1ResponseError | null): any; diff --git a/dist/models/ListFBSRatingIndexPostingsV1ResponseError.js b/dist/models/ListFBSRatingIndexPostingsV1ResponseError.js new file mode 100644 index 0000000..52b65b6 --- /dev/null +++ b/dist/models/ListFBSRatingIndexPostingsV1ResponseError.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListFBSRatingIndexPostingsV1ResponseError = instanceOfListFBSRatingIndexPostingsV1ResponseError; +exports.ListFBSRatingIndexPostingsV1ResponseErrorFromJSON = ListFBSRatingIndexPostingsV1ResponseErrorFromJSON; +exports.ListFBSRatingIndexPostingsV1ResponseErrorFromJSONTyped = ListFBSRatingIndexPostingsV1ResponseErrorFromJSONTyped; +exports.ListFBSRatingIndexPostingsV1ResponseErrorToJSON = ListFBSRatingIndexPostingsV1ResponseErrorToJSON; +const PostingErrorTypeEnum_1 = require("./PostingErrorTypeEnum"); +/** + * Check if a given object implements the ListFBSRatingIndexPostingsV1ResponseError interface. + */ +function instanceOfListFBSRatingIndexPostingsV1ResponseError(value) { + return true; +} +function ListFBSRatingIndexPostingsV1ResponseErrorFromJSON(json) { + return ListFBSRatingIndexPostingsV1ResponseErrorFromJSONTyped(json, false); +} +function ListFBSRatingIndexPostingsV1ResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'charge_percent': json['charge_percent'] == null ? undefined : json['charge_percent'], + 'charge_price': json['charge_price'] == null ? undefined : json['charge_price'], + 'charge_price_currency_code': json['charge_price_currency_code'] == null ? undefined : json['charge_price_currency_code'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'error_at': json['error_at'] == null ? undefined : json['error_at'], + 'has_grace_status': json['has_grace_status'] == null ? undefined : json['has_grace_status'], + 'index': json['index'] == null ? undefined : json['index'], + 'posting_error_type': json['posting_error_type'] == null ? undefined : (0, PostingErrorTypeEnum_1.PostingErrorTypeEnumFromJSON)(json['posting_error_type']), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'product_price': json['product_price'] == null ? undefined : json['product_price'], + 'product_price_currency_code': json['product_price_currency_code'] == null ? undefined : json['product_price_currency_code'], + }; +} +function ListFBSRatingIndexPostingsV1ResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'charge_percent': value['charge_percent'], + 'charge_price': value['charge_price'], + 'charge_price_currency_code': value['charge_price_currency_code'], + 'delivery_schema': value['delivery_schema'], + 'error_at': value['error_at'], + 'has_grace_status': value['has_grace_status'], + 'index': value['index'], + 'posting_error_type': (0, PostingErrorTypeEnum_1.PostingErrorTypeEnumToJSON)(value['posting_error_type']), + 'posting_number': value['posting_number'], + 'product_price': value['product_price'], + 'product_price_currency_code': value['product_price_currency_code'], + }; +} diff --git a/dist/models/ListPostingCodesRequestFilter.d.ts b/dist/models/ListPostingCodesRequestFilter.d.ts new file mode 100644 index 0000000..cb862e4 --- /dev/null +++ b/dist/models/ListPostingCodesRequestFilter.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface ListPostingCodesRequestFilter + */ +export interface ListPostingCodesRequestFilter { + /** + * Номер отправления. + * @type {Array} + * @memberof ListPostingCodesRequestFilter + */ + posting_number?: Array; + /** + * Начало периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof ListPostingCodesRequestFilter + */ + since?: string; + /** + * Конец периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof ListPostingCodesRequestFilter + */ + to?: string; +} +/** + * Check if a given object implements the ListPostingCodesRequestFilter interface. + */ +export declare function instanceOfListPostingCodesRequestFilter(value: object): value is ListPostingCodesRequestFilter; +export declare function ListPostingCodesRequestFilterFromJSON(json: any): ListPostingCodesRequestFilter; +export declare function ListPostingCodesRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPostingCodesRequestFilter; +export declare function ListPostingCodesRequestFilterToJSON(value?: ListPostingCodesRequestFilter | null): any; diff --git a/dist/models/ListPostingCodesRequestFilter.js b/dist/models/ListPostingCodesRequestFilter.js new file mode 100644 index 0000000..66769dd --- /dev/null +++ b/dist/models/ListPostingCodesRequestFilter.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListPostingCodesRequestFilter = instanceOfListPostingCodesRequestFilter; +exports.ListPostingCodesRequestFilterFromJSON = ListPostingCodesRequestFilterFromJSON; +exports.ListPostingCodesRequestFilterFromJSONTyped = ListPostingCodesRequestFilterFromJSONTyped; +exports.ListPostingCodesRequestFilterToJSON = ListPostingCodesRequestFilterToJSON; +/** + * Check if a given object implements the ListPostingCodesRequestFilter interface. + */ +function instanceOfListPostingCodesRequestFilter(value) { + return true; +} +function ListPostingCodesRequestFilterFromJSON(json) { + return ListPostingCodesRequestFilterFromJSONTyped(json, false); +} +function ListPostingCodesRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'since': json['since'] == null ? undefined : json['since'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function ListPostingCodesRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'since': value['since'], + 'to': value['to'], + }; +} diff --git a/dist/models/ListPostingCodesRequestWithParams.d.ts b/dist/models/ListPostingCodesRequestWithParams.d.ts new file mode 100644 index 0000000..a4e175e --- /dev/null +++ b/dist/models/ListPostingCodesRequestWithParams.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface ListPostingCodesRequestWithParams + */ +export interface ListPostingCodesRequestWithParams { + /** + * Передайте `true`, чтобы добавить в ответ данные аналитики. + * @type {boolean} + * @memberof ListPostingCodesRequestWithParams + */ + analytics_data?: boolean; + /** + * Передайте `true`, чтобы добавить в ответ финансовые данные. + * @type {boolean} + * @memberof ListPostingCodesRequestWithParams + */ + financial_data?: boolean; + /** + * Передайте `true`, чтобы добавить в ответ юридическую информацию. + * @type {boolean} + * @memberof ListPostingCodesRequestWithParams + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the ListPostingCodesRequestWithParams interface. + */ +export declare function instanceOfListPostingCodesRequestWithParams(value: object): value is ListPostingCodesRequestWithParams; +export declare function ListPostingCodesRequestWithParamsFromJSON(json: any): ListPostingCodesRequestWithParams; +export declare function ListPostingCodesRequestWithParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPostingCodesRequestWithParams; +export declare function ListPostingCodesRequestWithParamsToJSON(value?: ListPostingCodesRequestWithParams | null): any; diff --git a/dist/models/ListPostingCodesRequestWithParams.js b/dist/models/ListPostingCodesRequestWithParams.js new file mode 100644 index 0000000..e2aeece --- /dev/null +++ b/dist/models/ListPostingCodesRequestWithParams.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListPostingCodesRequestWithParams = instanceOfListPostingCodesRequestWithParams; +exports.ListPostingCodesRequestWithParamsFromJSON = ListPostingCodesRequestWithParamsFromJSON; +exports.ListPostingCodesRequestWithParamsFromJSONTyped = ListPostingCodesRequestWithParamsFromJSONTyped; +exports.ListPostingCodesRequestWithParamsToJSON = ListPostingCodesRequestWithParamsToJSON; +/** + * Check if a given object implements the ListPostingCodesRequestWithParams interface. + */ +function instanceOfListPostingCodesRequestWithParams(value) { + return true; +} +function ListPostingCodesRequestWithParamsFromJSON(json) { + return ListPostingCodesRequestWithParamsFromJSONTyped(json, false); +} +function ListPostingCodesRequestWithParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +function ListPostingCodesRequestWithParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/models/ListPostingCodesResponsePosting.d.ts b/dist/models/ListPostingCodesResponsePosting.d.ts new file mode 100644 index 0000000..21bb67d --- /dev/null +++ b/dist/models/ListPostingCodesResponsePosting.d.ts @@ -0,0 +1,109 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingPostingFinancialData } from './PostingPostingFinancialData'; +import type { PostingAdditionalDataItem } from './PostingAdditionalDataItem'; +import type { PostingPostingAnalyticsData } from './PostingPostingAnalyticsData'; +import type { PostingLegalInfo } from './PostingLegalInfo'; +import type { PostingPostingProduct } from './PostingPostingProduct'; +/** + * + * @export + * @interface ListPostingCodesResponsePosting + */ +export interface ListPostingCodesResponsePosting { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof ListPostingCodesResponsePosting + */ + additional_data?: Array; + /** + * + * @type {PostingPostingAnalyticsData} + * @memberof ListPostingCodesResponsePosting + */ + analytics_data?: PostingPostingAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof ListPostingCodesResponsePosting + */ + cancel_reason_id?: number; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + created_at?: string; + /** + * + * @type {PostingPostingFinancialData} + * @memberof ListPostingCodesResponsePosting + */ + financial_data?: PostingPostingFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + in_process_at?: string; + /** + * + * @type {PostingLegalInfo} + * @memberof ListPostingCodesResponsePosting + */ + legal_info?: PostingLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof ListPostingCodesResponsePosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof ListPostingCodesResponsePosting + */ + products?: Array; + /** + * Статус отправления: `awaiting_packaging` — ожидает упаковки. + * + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + status?: string; + /** + * Время, до которого нужно передать коды цифровых товаров. Передайте коды цифровых товаров с помощью метода [/v1/posting/digital/codes/upload](#operation/UploadPostingCodes). + * @type {string} + * @memberof ListPostingCodesResponsePosting + */ + waiting_deadline_for_digital_code?: string; +} +/** + * Check if a given object implements the ListPostingCodesResponsePosting interface. + */ +export declare function instanceOfListPostingCodesResponsePosting(value: object): value is ListPostingCodesResponsePosting; +export declare function ListPostingCodesResponsePostingFromJSON(json: any): ListPostingCodesResponsePosting; +export declare function ListPostingCodesResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPostingCodesResponsePosting; +export declare function ListPostingCodesResponsePostingToJSON(value?: ListPostingCodesResponsePosting | null): any; diff --git a/dist/models/ListPostingCodesResponsePosting.js b/dist/models/ListPostingCodesResponsePosting.js new file mode 100644 index 0000000..62f2b6c --- /dev/null +++ b/dist/models/ListPostingCodesResponsePosting.js @@ -0,0 +1,73 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfListPostingCodesResponsePosting = instanceOfListPostingCodesResponsePosting; +exports.ListPostingCodesResponsePostingFromJSON = ListPostingCodesResponsePostingFromJSON; +exports.ListPostingCodesResponsePostingFromJSONTyped = ListPostingCodesResponsePostingFromJSONTyped; +exports.ListPostingCodesResponsePostingToJSON = ListPostingCodesResponsePostingToJSON; +const PostingPostingFinancialData_1 = require("./PostingPostingFinancialData"); +const PostingAdditionalDataItem_1 = require("./PostingAdditionalDataItem"); +const PostingPostingAnalyticsData_1 = require("./PostingPostingAnalyticsData"); +const PostingLegalInfo_1 = require("./PostingLegalInfo"); +const PostingPostingProduct_1 = require("./PostingPostingProduct"); +/** + * Check if a given object implements the ListPostingCodesResponsePosting interface. + */ +function instanceOfListPostingCodesResponsePosting(value) { + return true; +} +function ListPostingCodesResponsePostingFromJSON(json) { + return ListPostingCodesResponsePostingFromJSONTyped(json, false); +} +function ListPostingCodesResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(PostingAdditionalDataItem_1.PostingAdditionalDataItemFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, PostingPostingAnalyticsData_1.PostingPostingAnalyticsDataFromJSON)(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'financial_data': json['financial_data'] == null ? undefined : (0, PostingPostingFinancialData_1.PostingPostingFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : (0, PostingLegalInfo_1.PostingLegalInfoFromJSON)(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingPostingProduct_1.PostingPostingProductFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'waiting_deadline_for_digital_code': json['waiting_deadline_for_digital_code'] == null ? undefined : json['waiting_deadline_for_digital_code'], + }; +} +function ListPostingCodesResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(PostingAdditionalDataItem_1.PostingAdditionalDataItemToJSON)), + 'analytics_data': (0, PostingPostingAnalyticsData_1.PostingPostingAnalyticsDataToJSON)(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'created_at': value['created_at'], + 'financial_data': (0, PostingPostingFinancialData_1.PostingPostingFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': (0, PostingLegalInfo_1.PostingLegalInfoToJSON)(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingPostingProduct_1.PostingPostingProductToJSON)), + 'status': value['status'], + 'waiting_deadline_for_digital_code': value['waiting_deadline_for_digital_code'], + }; +} diff --git a/dist/models/LogisticTimeslotDateRange.d.ts b/dist/models/LogisticTimeslotDateRange.d.ts new file mode 100644 index 0000000..22cd000 --- /dev/null +++ b/dist/models/LogisticTimeslotDateRange.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал времени, в течение которого заказ может быть доставлен до пункта выдачи. + * @export + * @interface LogisticTimeslotDateRange + */ +export interface LogisticTimeslotDateRange { + /** + * Дата и время начала интервала. + * @type {string} + * @memberof LogisticTimeslotDateRange + */ + from?: string; + /** + * Дата и время конца интервала. + * @type {string} + * @memberof LogisticTimeslotDateRange + */ + to?: string; +} +/** + * Check if a given object implements the LogisticTimeslotDateRange interface. + */ +export declare function instanceOfLogisticTimeslotDateRange(value: object): value is LogisticTimeslotDateRange; +export declare function LogisticTimeslotDateRangeFromJSON(json: any): LogisticTimeslotDateRange; +export declare function LogisticTimeslotDateRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogisticTimeslotDateRange; +export declare function LogisticTimeslotDateRangeToJSON(value?: LogisticTimeslotDateRange | null): any; diff --git a/dist/models/LogisticTimeslotDateRange.js b/dist/models/LogisticTimeslotDateRange.js new file mode 100644 index 0000000..e77ca87 --- /dev/null +++ b/dist/models/LogisticTimeslotDateRange.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLogisticTimeslotDateRange = instanceOfLogisticTimeslotDateRange; +exports.LogisticTimeslotDateRangeFromJSON = LogisticTimeslotDateRangeFromJSON; +exports.LogisticTimeslotDateRangeFromJSONTyped = LogisticTimeslotDateRangeFromJSONTyped; +exports.LogisticTimeslotDateRangeToJSON = LogisticTimeslotDateRangeToJSON; +/** + * Check if a given object implements the LogisticTimeslotDateRange interface. + */ +function instanceOfLogisticTimeslotDateRange(value) { + return true; +} +function LogisticTimeslotDateRangeFromJSON(json) { + return LogisticTimeslotDateRangeFromJSONTyped(json, false); +} +function LogisticTimeslotDateRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function LogisticTimeslotDateRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/MacrolocalClusterCountry.d.ts b/dist/models/MacrolocalClusterCountry.d.ts new file mode 100644 index 0000000..d3f2032 --- /dev/null +++ b/dist/models/MacrolocalClusterCountry.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о стране кластера. + * @export + * @interface MacrolocalClusterCountry + */ +export interface MacrolocalClusterCountry { + /** + * Название страны. + * @type {string} + * @memberof MacrolocalClusterCountry + */ + name?: string; + /** + * Идентификатор страны. + * @type {string} + * @memberof MacrolocalClusterCountry + */ + uid?: string; +} +/** + * Check if a given object implements the MacrolocalClusterCountry interface. + */ +export declare function instanceOfMacrolocalClusterCountry(value: object): value is MacrolocalClusterCountry; +export declare function MacrolocalClusterCountryFromJSON(json: any): MacrolocalClusterCountry; +export declare function MacrolocalClusterCountryFromJSONTyped(json: any, ignoreDiscriminator: boolean): MacrolocalClusterCountry; +export declare function MacrolocalClusterCountryToJSON(value?: MacrolocalClusterCountry | null): any; diff --git a/dist/models/MacrolocalClusterCountry.js b/dist/models/MacrolocalClusterCountry.js new file mode 100644 index 0000000..73108db --- /dev/null +++ b/dist/models/MacrolocalClusterCountry.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMacrolocalClusterCountry = instanceOfMacrolocalClusterCountry; +exports.MacrolocalClusterCountryFromJSON = MacrolocalClusterCountryFromJSON; +exports.MacrolocalClusterCountryFromJSONTyped = MacrolocalClusterCountryFromJSONTyped; +exports.MacrolocalClusterCountryToJSON = MacrolocalClusterCountryToJSON; +/** + * Check if a given object implements the MacrolocalClusterCountry interface. + */ +function instanceOfMacrolocalClusterCountry(value) { + return true; +} +function MacrolocalClusterCountryFromJSON(json) { + return MacrolocalClusterCountryFromJSONTyped(json, false); +} +function MacrolocalClusterCountryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'uid': json['uid'] == null ? undefined : json['uid'], + }; +} +function MacrolocalClusterCountryToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'uid': value['uid'], + }; +} diff --git a/dist/models/MarketingAction.d.ts b/dist/models/MarketingAction.d.ts new file mode 100644 index 0000000..26c7cad --- /dev/null +++ b/dist/models/MarketingAction.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MarketingAction + */ +export interface MarketingAction { + /** + * Дата и время начала акции. + * @type {string} + * @memberof MarketingAction + */ + date_from?: string; + /** + * Дата и время окончания акции. + * @type {string} + * @memberof MarketingAction + */ + date_to?: string; + /** + * Название акции. + * @type {string} + * @memberof MarketingAction + */ + title?: string; + /** + * Скидка по акции. + * @type {number} + * @memberof MarketingAction + */ + value?: number; +} +/** + * Check if a given object implements the MarketingAction interface. + */ +export declare function instanceOfMarketingAction(value: object): value is MarketingAction; +export declare function MarketingActionFromJSON(json: any): MarketingAction; +export declare function MarketingActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingAction; +export declare function MarketingActionToJSON(value?: MarketingAction | null): any; diff --git a/dist/models/MarketingAction.js b/dist/models/MarketingAction.js new file mode 100644 index 0000000..c377b51 --- /dev/null +++ b/dist/models/MarketingAction.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMarketingAction = instanceOfMarketingAction; +exports.MarketingActionFromJSON = MarketingActionFromJSON; +exports.MarketingActionFromJSONTyped = MarketingActionFromJSONTyped; +exports.MarketingActionToJSON = MarketingActionToJSON; +/** + * Check if a given object implements the MarketingAction interface. + */ +function instanceOfMarketingAction(value) { + return true; +} +function MarketingActionFromJSON(json) { + return MarketingActionFromJSONTyped(json, false); +} +function MarketingActionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'title': json['title'] == null ? undefined : json['title'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function MarketingActionToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'title': value['title'], + 'value': value['value'], + }; +} diff --git a/dist/models/MaxPeriodsPeriod.d.ts b/dist/models/MaxPeriodsPeriod.d.ts new file mode 100644 index 0000000..c3d9184 --- /dev/null +++ b/dist/models/MaxPeriodsPeriod.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период максимального времени. + * @export + * @interface MaxPeriodsPeriod + */ +export interface MaxPeriodsPeriod { + /** + * Часы. + * @type {number} + * @memberof MaxPeriodsPeriod + */ + hours?: number; + /** + * Минуты. + * @type {number} + * @memberof MaxPeriodsPeriod + */ + minutes?: number; +} +/** + * Check if a given object implements the MaxPeriodsPeriod interface. + */ +export declare function instanceOfMaxPeriodsPeriod(value: object): value is MaxPeriodsPeriod; +export declare function MaxPeriodsPeriodFromJSON(json: any): MaxPeriodsPeriod; +export declare function MaxPeriodsPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaxPeriodsPeriod; +export declare function MaxPeriodsPeriodToJSON(value?: MaxPeriodsPeriod | null): any; diff --git a/dist/models/MaxPeriodsPeriod.js b/dist/models/MaxPeriodsPeriod.js new file mode 100644 index 0000000..46c9fa1 --- /dev/null +++ b/dist/models/MaxPeriodsPeriod.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMaxPeriodsPeriod = instanceOfMaxPeriodsPeriod; +exports.MaxPeriodsPeriodFromJSON = MaxPeriodsPeriodFromJSON; +exports.MaxPeriodsPeriodFromJSONTyped = MaxPeriodsPeriodFromJSONTyped; +exports.MaxPeriodsPeriodToJSON = MaxPeriodsPeriodToJSON; +/** + * Check if a given object implements the MaxPeriodsPeriod interface. + */ +function instanceOfMaxPeriodsPeriod(value) { + return true; +} +function MaxPeriodsPeriodFromJSON(json) { + return MaxPeriodsPeriodFromJSONTyped(json, false); +} +function MaxPeriodsPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'hours': json['hours'] == null ? undefined : json['hours'], + 'minutes': json['minutes'] == null ? undefined : json['minutes'], + }; +} +function MaxPeriodsPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'hours': value['hours'], + 'minutes': value['minutes'], + }; +} diff --git a/dist/models/MinPeriodsPeriod.d.ts b/dist/models/MinPeriodsPeriod.d.ts new file mode 100644 index 0000000..aee7dfa --- /dev/null +++ b/dist/models/MinPeriodsPeriod.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период минимального времени. + * @export + * @interface MinPeriodsPeriod + */ +export interface MinPeriodsPeriod { + /** + * Часы. + * @type {number} + * @memberof MinPeriodsPeriod + */ + hours?: number; + /** + * Минуты. + * @type {number} + * @memberof MinPeriodsPeriod + */ + minutes?: number; +} +/** + * Check if a given object implements the MinPeriodsPeriod interface. + */ +export declare function instanceOfMinPeriodsPeriod(value: object): value is MinPeriodsPeriod; +export declare function MinPeriodsPeriodFromJSON(json: any): MinPeriodsPeriod; +export declare function MinPeriodsPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinPeriodsPeriod; +export declare function MinPeriodsPeriodToJSON(value?: MinPeriodsPeriod | null): any; diff --git a/dist/models/MinPeriodsPeriod.js b/dist/models/MinPeriodsPeriod.js new file mode 100644 index 0000000..6dd2660 --- /dev/null +++ b/dist/models/MinPeriodsPeriod.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMinPeriodsPeriod = instanceOfMinPeriodsPeriod; +exports.MinPeriodsPeriodFromJSON = MinPeriodsPeriodFromJSON; +exports.MinPeriodsPeriodFromJSONTyped = MinPeriodsPeriodFromJSONTyped; +exports.MinPeriodsPeriodToJSON = MinPeriodsPeriodToJSON; +/** + * Check if a given object implements the MinPeriodsPeriod interface. + */ +function instanceOfMinPeriodsPeriod(value) { + return true; +} +function MinPeriodsPeriodFromJSON(json) { + return MinPeriodsPeriodFromJSONTyped(json, false); +} +function MinPeriodsPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'hours': json['hours'] == null ? undefined : json['hours'], + 'minutes': json['minutes'] == null ? undefined : json['minutes'], + }; +} +function MinPeriodsPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'hours': value['hours'], + 'minutes': value['minutes'], + }; +} diff --git a/dist/models/MinUtilizationMoney.d.ts b/dist/models/MinUtilizationMoney.d.ts new file mode 100644 index 0000000..5d3c106 --- /dev/null +++ b/dist/models/MinUtilizationMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная цена товара, с которой можно установить автоутилизацию методом [/v1/returns/settings/utilization/update](#operation/UtilizationUpdate). + * @export + * @interface MinUtilizationMoney + */ +export interface MinUtilizationMoney { + /** + * Сумма. + * @type {string} + * @memberof MinUtilizationMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MinUtilizationMoney + */ + currency?: string; +} +/** + * Check if a given object implements the MinUtilizationMoney interface. + */ +export declare function instanceOfMinUtilizationMoney(value: object): value is MinUtilizationMoney; +export declare function MinUtilizationMoneyFromJSON(json: any): MinUtilizationMoney; +export declare function MinUtilizationMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinUtilizationMoney; +export declare function MinUtilizationMoneyToJSON(value?: MinUtilizationMoney | null): any; diff --git a/dist/models/MinUtilizationMoney.js b/dist/models/MinUtilizationMoney.js new file mode 100644 index 0000000..a126f97 --- /dev/null +++ b/dist/models/MinUtilizationMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMinUtilizationMoney = instanceOfMinUtilizationMoney; +exports.MinUtilizationMoneyFromJSON = MinUtilizationMoneyFromJSON; +exports.MinUtilizationMoneyFromJSONTyped = MinUtilizationMoneyFromJSONTyped; +exports.MinUtilizationMoneyToJSON = MinUtilizationMoneyToJSON; +/** + * Check if a given object implements the MinUtilizationMoney interface. + */ +function instanceOfMinUtilizationMoney(value) { + return true; +} +function MinUtilizationMoneyFromJSON(json) { + return MinUtilizationMoneyFromJSONTyped(json, false); +} +function MinUtilizationMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MinUtilizationMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoney.d.ts b/dist/models/MoneyMoney.d.ts new file mode 100644 index 0000000..0930a60 --- /dev/null +++ b/dist/models/MoneyMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная цена товара конкурента. + * @export + * @interface MoneyMoney + */ +export interface MoneyMoney { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoney + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoney interface. + */ +export declare function instanceOfMoneyMoney(value: object): value is MoneyMoney; +export declare function MoneyMoneyFromJSON(json: any): MoneyMoney; +export declare function MoneyMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoney; +export declare function MoneyMoneyToJSON(value?: MoneyMoney | null): any; diff --git a/dist/models/MoneyMoney.js b/dist/models/MoneyMoney.js new file mode 100644 index 0000000..e97f24a --- /dev/null +++ b/dist/models/MoneyMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoney = instanceOfMoneyMoney; +exports.MoneyMoneyFromJSON = MoneyMoneyFromJSON; +exports.MoneyMoneyFromJSONTyped = MoneyMoneyFromJSONTyped; +exports.MoneyMoneyToJSON = MoneyMoneyToJSON; +/** + * Check if a given object implements the MoneyMoney interface. + */ +function instanceOfMoneyMoney(value) { + return true; +} +function MoneyMoneyFromJSON(json) { + return MoneyMoneyFromJSONTyped(json, false); +} +function MoneyMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyAccrued.d.ts b/dist/models/MoneyMoneyAccrued.d.ts new file mode 100644 index 0000000..76e610e --- /dev/null +++ b/dist/models/MoneyMoneyAccrued.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Начислено за услугу. + * @export + * @interface MoneyMoneyAccrued + */ +export interface MoneyMoneyAccrued { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyAccrued + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyAccrued + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyAccrued interface. + */ +export declare function instanceOfMoneyMoneyAccrued(value: object): value is MoneyMoneyAccrued; +export declare function MoneyMoneyAccruedFromJSON(json: any): MoneyMoneyAccrued; +export declare function MoneyMoneyAccruedFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyAccrued; +export declare function MoneyMoneyAccruedToJSON(value?: MoneyMoneyAccrued | null): any; diff --git a/dist/models/MoneyMoneyAccrued.js b/dist/models/MoneyMoneyAccrued.js new file mode 100644 index 0000000..a630d63 --- /dev/null +++ b/dist/models/MoneyMoneyAccrued.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyAccrued = instanceOfMoneyMoneyAccrued; +exports.MoneyMoneyAccruedFromJSON = MoneyMoneyAccruedFromJSON; +exports.MoneyMoneyAccruedFromJSONTyped = MoneyMoneyAccruedFromJSONTyped; +exports.MoneyMoneyAccruedToJSON = MoneyMoneyAccruedToJSON; +/** + * Check if a given object implements the MoneyMoneyAccrued interface. + */ +function instanceOfMoneyMoneyAccrued(value) { + return true; +} +function MoneyMoneyAccruedFromJSON(json) { + return MoneyMoneyAccruedFromJSONTyped(json, false); +} +function MoneyMoneyAccruedFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyAccruedToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyBonus.d.ts b/dist/models/MoneyMoneyBonus.d.ts new file mode 100644 index 0000000..c2af3f2 --- /dev/null +++ b/dist/models/MoneyMoneyBonus.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Начислено баллов за скидки. + * @export + * @interface MoneyMoneyBonus + */ +export interface MoneyMoneyBonus { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyBonus + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyBonus + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyBonus interface. + */ +export declare function instanceOfMoneyMoneyBonus(value: object): value is MoneyMoneyBonus; +export declare function MoneyMoneyBonusFromJSON(json: any): MoneyMoneyBonus; +export declare function MoneyMoneyBonusFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyBonus; +export declare function MoneyMoneyBonusToJSON(value?: MoneyMoneyBonus | null): any; diff --git a/dist/models/MoneyMoneyBonus.js b/dist/models/MoneyMoneyBonus.js new file mode 100644 index 0000000..0616b61 --- /dev/null +++ b/dist/models/MoneyMoneyBonus.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyBonus = instanceOfMoneyMoneyBonus; +exports.MoneyMoneyBonusFromJSON = MoneyMoneyBonusFromJSON; +exports.MoneyMoneyBonusFromJSONTyped = MoneyMoneyBonusFromJSONTyped; +exports.MoneyMoneyBonusToJSON = MoneyMoneyBonusToJSON; +/** + * Check if a given object implements the MoneyMoneyBonus interface. + */ +function instanceOfMoneyMoneyBonus(value) { + return true; +} +function MoneyMoneyBonusFromJSON(json) { + return MoneyMoneyBonusFromJSONTyped(json, false); +} +function MoneyMoneyBonusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyBonusToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyCoinvestment.d.ts b/dist/models/MoneyMoneyCoinvestment.d.ts new file mode 100644 index 0000000..5b63cf1 --- /dev/null +++ b/dist/models/MoneyMoneyCoinvestment.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Начислено по программе партнёров. + * @export + * @interface MoneyMoneyCoinvestment + */ +export interface MoneyMoneyCoinvestment { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyCoinvestment + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCoinvestment + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCoinvestment interface. + */ +export declare function instanceOfMoneyMoneyCoinvestment(value: object): value is MoneyMoneyCoinvestment; +export declare function MoneyMoneyCoinvestmentFromJSON(json: any): MoneyMoneyCoinvestment; +export declare function MoneyMoneyCoinvestmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCoinvestment; +export declare function MoneyMoneyCoinvestmentToJSON(value?: MoneyMoneyCoinvestment | null): any; diff --git a/dist/models/MoneyMoneyCoinvestment.js b/dist/models/MoneyMoneyCoinvestment.js new file mode 100644 index 0000000..0912c12 --- /dev/null +++ b/dist/models/MoneyMoneyCoinvestment.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyCoinvestment = instanceOfMoneyMoneyCoinvestment; +exports.MoneyMoneyCoinvestmentFromJSON = MoneyMoneyCoinvestmentFromJSON; +exports.MoneyMoneyCoinvestmentFromJSONTyped = MoneyMoneyCoinvestmentFromJSONTyped; +exports.MoneyMoneyCoinvestmentToJSON = MoneyMoneyCoinvestmentToJSON; +/** + * Check if a given object implements the MoneyMoneyCoinvestment interface. + */ +function instanceOfMoneyMoneyCoinvestment(value) { + return true; +} +function MoneyMoneyCoinvestmentFromJSON(json) { + return MoneyMoneyCoinvestmentFromJSONTyped(json, false); +} +function MoneyMoneyCoinvestmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyCoinvestmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyComissions.d.ts b/dist/models/MoneyMoneyComissions.d.ts new file mode 100644 index 0000000..01d490c --- /dev/null +++ b/dist/models/MoneyMoneyComissions.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface MoneyMoneyComissions + */ +export interface MoneyMoneyComissions { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyComissions + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyComissions + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyComissions interface. + */ +export declare function instanceOfMoneyMoneyComissions(value: object): value is MoneyMoneyComissions; +export declare function MoneyMoneyComissionsFromJSON(json: any): MoneyMoneyComissions; +export declare function MoneyMoneyComissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyComissions; +export declare function MoneyMoneyComissionsToJSON(value?: MoneyMoneyComissions | null): any; diff --git a/dist/models/MoneyMoneyComissions.js b/dist/models/MoneyMoneyComissions.js new file mode 100644 index 0000000..2f802da --- /dev/null +++ b/dist/models/MoneyMoneyComissions.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyComissions = instanceOfMoneyMoneyComissions; +exports.MoneyMoneyComissionsFromJSON = MoneyMoneyComissionsFromJSON; +exports.MoneyMoneyComissionsFromJSONTyped = MoneyMoneyComissionsFromJSONTyped; +exports.MoneyMoneyComissionsToJSON = MoneyMoneyComissionsToJSON; +/** + * Check if a given object implements the MoneyMoneyComissions interface. + */ +function instanceOfMoneyMoneyComissions(value) { + return true; +} +function MoneyMoneyComissionsFromJSON(json) { + return MoneyMoneyComissionsFromJSONTyped(json, false); +} +function MoneyMoneyComissionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyComissionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyCommission.d.ts b/dist/models/MoneyMoneyCommission.d.ts new file mode 100644 index 0000000..077dbf8 --- /dev/null +++ b/dist/models/MoneyMoneyCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Итоговая комиссия с учётом скидок и наценки. + * @export + * @interface MoneyMoneyCommission + */ +export interface MoneyMoneyCommission { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyCommission + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCommission + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCommission interface. + */ +export declare function instanceOfMoneyMoneyCommission(value: object): value is MoneyMoneyCommission; +export declare function MoneyMoneyCommissionFromJSON(json: any): MoneyMoneyCommission; +export declare function MoneyMoneyCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCommission; +export declare function MoneyMoneyCommissionToJSON(value?: MoneyMoneyCommission | null): any; diff --git a/dist/models/MoneyMoneyCommission.js b/dist/models/MoneyMoneyCommission.js new file mode 100644 index 0000000..629627a --- /dev/null +++ b/dist/models/MoneyMoneyCommission.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyCommission = instanceOfMoneyMoneyCommission; +exports.MoneyMoneyCommissionFromJSON = MoneyMoneyCommissionFromJSON; +exports.MoneyMoneyCommissionFromJSONTyped = MoneyMoneyCommissionFromJSONTyped; +exports.MoneyMoneyCommissionToJSON = MoneyMoneyCommissionToJSON; +/** + * Check if a given object implements the MoneyMoneyCommission interface. + */ +function instanceOfMoneyMoneyCommission(value) { + return true; +} +function MoneyMoneyCommissionFromJSON(json) { + return MoneyMoneyCommissionFromJSONTyped(json, false); +} +function MoneyMoneyCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyCurrentTariffCharge.d.ts b/dist/models/MoneyMoneyCurrentTariffCharge.d.ts new file mode 100644 index 0000000..b827596 --- /dev/null +++ b/dist/models/MoneyMoneyCurrentTariffCharge.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Скидка или надбавка. + * @export + * @interface MoneyMoneyCurrentTariffCharge + */ +export interface MoneyMoneyCurrentTariffCharge { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyCurrentTariffCharge + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCurrentTariffCharge + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCurrentTariffCharge interface. + */ +export declare function instanceOfMoneyMoneyCurrentTariffCharge(value: object): value is MoneyMoneyCurrentTariffCharge; +export declare function MoneyMoneyCurrentTariffChargeFromJSON(json: any): MoneyMoneyCurrentTariffCharge; +export declare function MoneyMoneyCurrentTariffChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCurrentTariffCharge; +export declare function MoneyMoneyCurrentTariffChargeToJSON(value?: MoneyMoneyCurrentTariffCharge | null): any; diff --git a/dist/models/MoneyMoneyCurrentTariffCharge.js b/dist/models/MoneyMoneyCurrentTariffCharge.js new file mode 100644 index 0000000..f42cfa2 --- /dev/null +++ b/dist/models/MoneyMoneyCurrentTariffCharge.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyCurrentTariffCharge = instanceOfMoneyMoneyCurrentTariffCharge; +exports.MoneyMoneyCurrentTariffChargeFromJSON = MoneyMoneyCurrentTariffChargeFromJSON; +exports.MoneyMoneyCurrentTariffChargeFromJSONTyped = MoneyMoneyCurrentTariffChargeFromJSONTyped; +exports.MoneyMoneyCurrentTariffChargeToJSON = MoneyMoneyCurrentTariffChargeToJSON; +/** + * Check if a given object implements the MoneyMoneyCurrentTariffCharge interface. + */ +function instanceOfMoneyMoneyCurrentTariffCharge(value) { + return true; +} +function MoneyMoneyCurrentTariffChargeFromJSON(json) { + return MoneyMoneyCurrentTariffChargeFromJSONTyped(json, false); +} +function MoneyMoneyCurrentTariffChargeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyCurrentTariffChargeToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyCurrentTariffMinCharge.d.ts b/dist/models/MoneyMoneyCurrentTariffMinCharge.d.ts new file mode 100644 index 0000000..ee7da4c --- /dev/null +++ b/dist/models/MoneyMoneyCurrentTariffMinCharge.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная скидка или надбавка. + * @export + * @interface MoneyMoneyCurrentTariffMinCharge + */ +export interface MoneyMoneyCurrentTariffMinCharge { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyCurrentTariffMinCharge + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCurrentTariffMinCharge + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCurrentTariffMinCharge interface. + */ +export declare function instanceOfMoneyMoneyCurrentTariffMinCharge(value: object): value is MoneyMoneyCurrentTariffMinCharge; +export declare function MoneyMoneyCurrentTariffMinChargeFromJSON(json: any): MoneyMoneyCurrentTariffMinCharge; +export declare function MoneyMoneyCurrentTariffMinChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCurrentTariffMinCharge; +export declare function MoneyMoneyCurrentTariffMinChargeToJSON(value?: MoneyMoneyCurrentTariffMinCharge | null): any; diff --git a/dist/models/MoneyMoneyCurrentTariffMinCharge.js b/dist/models/MoneyMoneyCurrentTariffMinCharge.js new file mode 100644 index 0000000..8896858 --- /dev/null +++ b/dist/models/MoneyMoneyCurrentTariffMinCharge.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyCurrentTariffMinCharge = instanceOfMoneyMoneyCurrentTariffMinCharge; +exports.MoneyMoneyCurrentTariffMinChargeFromJSON = MoneyMoneyCurrentTariffMinChargeFromJSON; +exports.MoneyMoneyCurrentTariffMinChargeFromJSONTyped = MoneyMoneyCurrentTariffMinChargeFromJSONTyped; +exports.MoneyMoneyCurrentTariffMinChargeToJSON = MoneyMoneyCurrentTariffMinChargeToJSON; +/** + * Check if a given object implements the MoneyMoneyCurrentTariffMinCharge interface. + */ +function instanceOfMoneyMoneyCurrentTariffMinCharge(value) { + return true; +} +function MoneyMoneyCurrentTariffMinChargeFromJSON(json) { + return MoneyMoneyCurrentTariffMinChargeFromJSONTyped(json, false); +} +function MoneyMoneyCurrentTariffMinChargeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyCurrentTariffMinChargeToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyCustomerPrice.d.ts b/dist/models/MoneyMoneyCustomerPrice.d.ts new file mode 100644 index 0000000..826c511 --- /dev/null +++ b/dist/models/MoneyMoneyCustomerPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара на сайте. + * @export + * @interface MoneyMoneyCustomerPrice + */ +export interface MoneyMoneyCustomerPrice { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyCustomerPrice + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyCustomerPrice + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyCustomerPrice interface. + */ +export declare function instanceOfMoneyMoneyCustomerPrice(value: object): value is MoneyMoneyCustomerPrice; +export declare function MoneyMoneyCustomerPriceFromJSON(json: any): MoneyMoneyCustomerPrice; +export declare function MoneyMoneyCustomerPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyCustomerPrice; +export declare function MoneyMoneyCustomerPriceToJSON(value?: MoneyMoneyCustomerPrice | null): any; diff --git a/dist/models/MoneyMoneyCustomerPrice.js b/dist/models/MoneyMoneyCustomerPrice.js new file mode 100644 index 0000000..b1d1e86 --- /dev/null +++ b/dist/models/MoneyMoneyCustomerPrice.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyCustomerPrice = instanceOfMoneyMoneyCustomerPrice; +exports.MoneyMoneyCustomerPriceFromJSON = MoneyMoneyCustomerPriceFromJSON; +exports.MoneyMoneyCustomerPriceFromJSONTyped = MoneyMoneyCustomerPriceFromJSONTyped; +exports.MoneyMoneyCustomerPriceToJSON = MoneyMoneyCustomerPriceToJSON; +/** + * Check if a given object implements the MoneyMoneyCustomerPrice interface. + */ +function instanceOfMoneyMoneyCustomerPrice(value) { + return true; +} +function MoneyMoneyCustomerPriceFromJSON(json) { + return MoneyMoneyCustomerPriceFromJSONTyped(json, false); +} +function MoneyMoneyCustomerPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyCustomerPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyFBPget.d.ts b/dist/models/MoneyMoneyFBPget.d.ts new file mode 100644 index 0000000..ea62e9b --- /dev/null +++ b/dist/models/MoneyMoneyFBPget.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @export + * @interface MoneyMoneyFBPget + */ +export interface MoneyMoneyFBPget { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyFBPget + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyFBPget + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyFBPget interface. + */ +export declare function instanceOfMoneyMoneyFBPget(value: object): value is MoneyMoneyFBPget; +export declare function MoneyMoneyFBPgetFromJSON(json: any): MoneyMoneyFBPget; +export declare function MoneyMoneyFBPgetFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyFBPget; +export declare function MoneyMoneyFBPgetToJSON(value?: MoneyMoneyFBPget | null): any; diff --git a/dist/models/MoneyMoneyFBPget.js b/dist/models/MoneyMoneyFBPget.js new file mode 100644 index 0000000..d4acef1 --- /dev/null +++ b/dist/models/MoneyMoneyFBPget.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyFBPget = instanceOfMoneyMoneyFBPget; +exports.MoneyMoneyFBPgetFromJSON = MoneyMoneyFBPgetFromJSON; +exports.MoneyMoneyFBPgetFromJSONTyped = MoneyMoneyFBPgetFromJSONTyped; +exports.MoneyMoneyFBPgetToJSON = MoneyMoneyFBPgetToJSON; +/** + * Check if a given object implements the MoneyMoneyFBPget interface. + */ +function instanceOfMoneyMoneyFBPget(value) { + return true; +} +function MoneyMoneyFBPgetFromJSON(json) { + return MoneyMoneyFBPgetFromJSONTyped(json, false); +} +function MoneyMoneyFBPgetFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyFBPgetToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyNextTariffCharge.d.ts b/dist/models/MoneyMoneyNextTariffCharge.d.ts new file mode 100644 index 0000000..ebcd431 --- /dev/null +++ b/dist/models/MoneyMoneyNextTariffCharge.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Скидка или надбавка через время из параметра `next_tariff_starts_at`. + * @export + * @interface MoneyMoneyNextTariffCharge + */ +export interface MoneyMoneyNextTariffCharge { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyNextTariffCharge + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyNextTariffCharge + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyNextTariffCharge interface. + */ +export declare function instanceOfMoneyMoneyNextTariffCharge(value: object): value is MoneyMoneyNextTariffCharge; +export declare function MoneyMoneyNextTariffChargeFromJSON(json: any): MoneyMoneyNextTariffCharge; +export declare function MoneyMoneyNextTariffChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyNextTariffCharge; +export declare function MoneyMoneyNextTariffChargeToJSON(value?: MoneyMoneyNextTariffCharge | null): any; diff --git a/dist/models/MoneyMoneyNextTariffCharge.js b/dist/models/MoneyMoneyNextTariffCharge.js new file mode 100644 index 0000000..be85d0c --- /dev/null +++ b/dist/models/MoneyMoneyNextTariffCharge.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyNextTariffCharge = instanceOfMoneyMoneyNextTariffCharge; +exports.MoneyMoneyNextTariffChargeFromJSON = MoneyMoneyNextTariffChargeFromJSON; +exports.MoneyMoneyNextTariffChargeFromJSONTyped = MoneyMoneyNextTariffChargeFromJSONTyped; +exports.MoneyMoneyNextTariffChargeToJSON = MoneyMoneyNextTariffChargeToJSON; +/** + * Check if a given object implements the MoneyMoneyNextTariffCharge interface. + */ +function instanceOfMoneyMoneyNextTariffCharge(value) { + return true; +} +function MoneyMoneyNextTariffChargeFromJSON(json) { + return MoneyMoneyNextTariffChargeFromJSONTyped(json, false); +} +function MoneyMoneyNextTariffChargeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyNextTariffChargeToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyNextTariffMinCharge.d.ts b/dist/models/MoneyMoneyNextTariffMinCharge.d.ts new file mode 100644 index 0000000..fe267bf --- /dev/null +++ b/dist/models/MoneyMoneyNextTariffMinCharge.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная скидка или надбавка через время из параметра `next_tariff_starts_at`. + * @export + * @interface MoneyMoneyNextTariffMinCharge + */ +export interface MoneyMoneyNextTariffMinCharge { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyNextTariffMinCharge + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyNextTariffMinCharge + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyNextTariffMinCharge interface. + */ +export declare function instanceOfMoneyMoneyNextTariffMinCharge(value: object): value is MoneyMoneyNextTariffMinCharge; +export declare function MoneyMoneyNextTariffMinChargeFromJSON(json: any): MoneyMoneyNextTariffMinCharge; +export declare function MoneyMoneyNextTariffMinChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyNextTariffMinCharge; +export declare function MoneyMoneyNextTariffMinChargeToJSON(value?: MoneyMoneyNextTariffMinCharge | null): any; diff --git a/dist/models/MoneyMoneyNextTariffMinCharge.js b/dist/models/MoneyMoneyNextTariffMinCharge.js new file mode 100644 index 0000000..d4372e2 --- /dev/null +++ b/dist/models/MoneyMoneyNextTariffMinCharge.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyNextTariffMinCharge = instanceOfMoneyMoneyNextTariffMinCharge; +exports.MoneyMoneyNextTariffMinChargeFromJSON = MoneyMoneyNextTariffMinChargeFromJSON; +exports.MoneyMoneyNextTariffMinChargeFromJSONTyped = MoneyMoneyNextTariffMinChargeFromJSONTyped; +exports.MoneyMoneyNextTariffMinChargeToJSON = MoneyMoneyNextTariffMinChargeToJSON; +/** + * Check if a given object implements the MoneyMoneyNextTariffMinCharge interface. + */ +function instanceOfMoneyMoneyNextTariffMinCharge(value) { + return true; +} +function MoneyMoneyNextTariffMinChargeFromJSON(json) { + return MoneyMoneyNextTariffMinChargeFromJSONTyped(json, false); +} +function MoneyMoneyNextTariffMinChargeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyNextTariffMinChargeToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyPriceWithoutVat.d.ts b/dist/models/MoneyMoneyPriceWithoutVat.d.ts new file mode 100644 index 0000000..6d151eb --- /dev/null +++ b/dist/models/MoneyMoneyPriceWithoutVat.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара без НДС. + * @export + * @interface MoneyMoneyPriceWithoutVat + */ +export interface MoneyMoneyPriceWithoutVat { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyPriceWithoutVat + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyPriceWithoutVat + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyPriceWithoutVat interface. + */ +export declare function instanceOfMoneyMoneyPriceWithoutVat(value: object): value is MoneyMoneyPriceWithoutVat; +export declare function MoneyMoneyPriceWithoutVatFromJSON(json: any): MoneyMoneyPriceWithoutVat; +export declare function MoneyMoneyPriceWithoutVatFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyPriceWithoutVat; +export declare function MoneyMoneyPriceWithoutVatToJSON(value?: MoneyMoneyPriceWithoutVat | null): any; diff --git a/dist/models/MoneyMoneyPriceWithoutVat.js b/dist/models/MoneyMoneyPriceWithoutVat.js new file mode 100644 index 0000000..8c344ff --- /dev/null +++ b/dist/models/MoneyMoneyPriceWithoutVat.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyPriceWithoutVat = instanceOfMoneyMoneyPriceWithoutVat; +exports.MoneyMoneyPriceWithoutVatFromJSON = MoneyMoneyPriceWithoutVatFromJSON; +exports.MoneyMoneyPriceWithoutVatFromJSONTyped = MoneyMoneyPriceWithoutVatFromJSONTyped; +exports.MoneyMoneyPriceWithoutVatToJSON = MoneyMoneyPriceWithoutVatToJSON; +/** + * Check if a given object implements the MoneyMoneyPriceWithoutVat interface. + */ +function instanceOfMoneyMoneyPriceWithoutVat(value) { + return true; +} +function MoneyMoneyPriceWithoutVatFromJSON(json) { + return MoneyMoneyPriceWithoutVatFromJSONTyped(json, false); +} +function MoneyMoneyPriceWithoutVatFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyPriceWithoutVatToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySaleAmount.d.ts b/dist/models/MoneyMoneySaleAmount.d.ts new file mode 100644 index 0000000..633edf9 --- /dev/null +++ b/dist/models/MoneyMoneySaleAmount.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Реализовано на сумму. + * @export + * @interface MoneyMoneySaleAmount + */ +export interface MoneyMoneySaleAmount { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneySaleAmount + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySaleAmount + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySaleAmount interface. + */ +export declare function instanceOfMoneyMoneySaleAmount(value: object): value is MoneyMoneySaleAmount; +export declare function MoneyMoneySaleAmountFromJSON(json: any): MoneyMoneySaleAmount; +export declare function MoneyMoneySaleAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySaleAmount; +export declare function MoneyMoneySaleAmountToJSON(value?: MoneyMoneySaleAmount | null): any; diff --git a/dist/models/MoneyMoneySaleAmount.js b/dist/models/MoneyMoneySaleAmount.js new file mode 100644 index 0000000..3701dcb --- /dev/null +++ b/dist/models/MoneyMoneySaleAmount.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySaleAmount = instanceOfMoneyMoneySaleAmount; +exports.MoneyMoneySaleAmountFromJSON = MoneyMoneySaleAmountFromJSON; +exports.MoneyMoneySaleAmountFromJSONTyped = MoneyMoneySaleAmountFromJSONTyped; +exports.MoneyMoneySaleAmountToJSON = MoneyMoneySaleAmountToJSON; +/** + * Check if a given object implements the MoneyMoneySaleAmount interface. + */ +function instanceOfMoneyMoneySaleAmount(value) { + return true; +} +function MoneyMoneySaleAmountFromJSON(json) { + return MoneyMoneySaleAmountFromJSONTyped(json, false); +} +function MoneyMoneySaleAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySaleAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySaleCommission.d.ts b/dist/models/MoneyMoneySaleCommission.d.ts new file mode 100644 index 0000000..5539076 --- /dev/null +++ b/dist/models/MoneyMoneySaleCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия по прайс-листу. + * @export + * @interface MoneyMoneySaleCommission + */ +export interface MoneyMoneySaleCommission { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneySaleCommission + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySaleCommission + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySaleCommission interface. + */ +export declare function instanceOfMoneyMoneySaleCommission(value: object): value is MoneyMoneySaleCommission; +export declare function MoneyMoneySaleCommissionFromJSON(json: any): MoneyMoneySaleCommission; +export declare function MoneyMoneySaleCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySaleCommission; +export declare function MoneyMoneySaleCommissionToJSON(value?: MoneyMoneySaleCommission | null): any; diff --git a/dist/models/MoneyMoneySaleCommission.js b/dist/models/MoneyMoneySaleCommission.js new file mode 100644 index 0000000..27fd86f --- /dev/null +++ b/dist/models/MoneyMoneySaleCommission.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySaleCommission = instanceOfMoneyMoneySaleCommission; +exports.MoneyMoneySaleCommissionFromJSON = MoneyMoneySaleCommissionFromJSON; +exports.MoneyMoneySaleCommissionFromJSONTyped = MoneyMoneySaleCommissionFromJSONTyped; +exports.MoneyMoneySaleCommissionToJSON = MoneyMoneySaleCommissionToJSON; +/** + * Check if a given object implements the MoneyMoneySaleCommission interface. + */ +function instanceOfMoneyMoneySaleCommission(value) { + return true; +} +function MoneyMoneySaleCommissionFromJSON(json) { + return MoneyMoneySaleCommissionFromJSONTyped(json, false); +} +function MoneyMoneySaleCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySaleCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySalePrice.d.ts b/dist/models/MoneyMoneySalePrice.d.ts new file mode 100644 index 0000000..8eef77f --- /dev/null +++ b/dist/models/MoneyMoneySalePrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена покупателя. + * @export + * @interface MoneyMoneySalePrice + */ +export interface MoneyMoneySalePrice { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneySalePrice + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySalePrice + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySalePrice interface. + */ +export declare function instanceOfMoneyMoneySalePrice(value: object): value is MoneyMoneySalePrice; +export declare function MoneyMoneySalePriceFromJSON(json: any): MoneyMoneySalePrice; +export declare function MoneyMoneySalePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySalePrice; +export declare function MoneyMoneySalePriceToJSON(value?: MoneyMoneySalePrice | null): any; diff --git a/dist/models/MoneyMoneySalePrice.js b/dist/models/MoneyMoneySalePrice.js new file mode 100644 index 0000000..b569414 --- /dev/null +++ b/dist/models/MoneyMoneySalePrice.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySalePrice = instanceOfMoneyMoneySalePrice; +exports.MoneyMoneySalePriceFromJSON = MoneyMoneySalePriceFromJSON; +exports.MoneyMoneySalePriceFromJSONTyped = MoneyMoneySalePriceFromJSONTyped; +exports.MoneyMoneySalePriceToJSON = MoneyMoneySalePriceToJSON; +/** + * Check if a given object implements the MoneyMoneySalePrice interface. + */ +function instanceOfMoneyMoneySalePrice(value) { + return true; +} +function MoneyMoneySalePriceFromJSON(json) { + return MoneyMoneySalePriceFromJSONTyped(json, false); +} +function MoneyMoneySalePriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySalePriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySelf.d.ts b/dist/models/MoneyMoneySelf.d.ts new file mode 100644 index 0000000..d63a3f4 --- /dev/null +++ b/dist/models/MoneyMoneySelf.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Минимальная цена вашего товара. + * @export + * @interface MoneyMoneySelf + */ +export interface MoneyMoneySelf { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySelf + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySelf + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySelf interface. + */ +export declare function instanceOfMoneyMoneySelf(value: object): value is MoneyMoneySelf; +export declare function MoneyMoneySelfFromJSON(json: any): MoneyMoneySelf; +export declare function MoneyMoneySelfFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySelf; +export declare function MoneyMoneySelfToJSON(value?: MoneyMoneySelf | null): any; diff --git a/dist/models/MoneyMoneySelf.js b/dist/models/MoneyMoneySelf.js new file mode 100644 index 0000000..76e1130 --- /dev/null +++ b/dist/models/MoneyMoneySelf.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySelf = instanceOfMoneyMoneySelf; +exports.MoneyMoneySelfFromJSON = MoneyMoneySelfFromJSON; +exports.MoneyMoneySelfFromJSONTyped = MoneyMoneySelfFromJSONTyped; +exports.MoneyMoneySelfToJSON = MoneyMoneySelfToJSON; +/** + * Check if a given object implements the MoneyMoneySelf interface. + */ +function instanceOfMoneyMoneySelf(value) { + return true; +} +function MoneyMoneySelfFromJSON(json) { + return MoneyMoneySelfFromJSONTyped(json, false); +} +function MoneyMoneySelfFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySelfToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySellerPrice.d.ts b/dist/models/MoneyMoneySellerPrice.d.ts new file mode 100644 index 0000000..3b7a790 --- /dev/null +++ b/dist/models/MoneyMoneySellerPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена для продавца с учётом скидок Ozon. + * @export + * @interface MoneyMoneySellerPrice + */ +export interface MoneyMoneySellerPrice { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySellerPrice + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySellerPrice + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySellerPrice interface. + */ +export declare function instanceOfMoneyMoneySellerPrice(value: object): value is MoneyMoneySellerPrice; +export declare function MoneyMoneySellerPriceFromJSON(json: any): MoneyMoneySellerPrice; +export declare function MoneyMoneySellerPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySellerPrice; +export declare function MoneyMoneySellerPriceToJSON(value?: MoneyMoneySellerPrice | null): any; diff --git a/dist/models/MoneyMoneySellerPrice.js b/dist/models/MoneyMoneySellerPrice.js new file mode 100644 index 0000000..0b6ba9c --- /dev/null +++ b/dist/models/MoneyMoneySellerPrice.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySellerPrice = instanceOfMoneyMoneySellerPrice; +exports.MoneyMoneySellerPriceFromJSON = MoneyMoneySellerPriceFromJSON; +exports.MoneyMoneySellerPriceFromJSONTyped = MoneyMoneySellerPriceFromJSONTyped; +exports.MoneyMoneySellerPriceToJSON = MoneyMoneySellerPriceToJSON; +/** + * Check if a given object implements the MoneyMoneySellerPrice interface. + */ +function instanceOfMoneyMoneySellerPrice(value) { + return true; +} +function MoneyMoneySellerPriceFromJSON(json) { + return MoneyMoneySellerPriceFromJSONTyped(json, false); +} +function MoneyMoneySellerPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySellerPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySplitCommission.d.ts b/dist/models/MoneyMoneySplitCommission.d.ts new file mode 100644 index 0000000..fee1e0b --- /dev/null +++ b/dist/models/MoneyMoneySplitCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость доставки отправления из заказа с учётом комиссии. + * @export + * @interface MoneyMoneySplitCommission + */ +export interface MoneyMoneySplitCommission { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySplitCommission + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySplitCommission + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySplitCommission interface. + */ +export declare function instanceOfMoneyMoneySplitCommission(value: object): value is MoneyMoneySplitCommission; +export declare function MoneyMoneySplitCommissionFromJSON(json: any): MoneyMoneySplitCommission; +export declare function MoneyMoneySplitCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySplitCommission; +export declare function MoneyMoneySplitCommissionToJSON(value?: MoneyMoneySplitCommission | null): any; diff --git a/dist/models/MoneyMoneySplitCommission.js b/dist/models/MoneyMoneySplitCommission.js new file mode 100644 index 0000000..06f42f9 --- /dev/null +++ b/dist/models/MoneyMoneySplitCommission.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySplitCommission = instanceOfMoneyMoneySplitCommission; +exports.MoneyMoneySplitCommissionFromJSON = MoneyMoneySplitCommissionFromJSON; +exports.MoneyMoneySplitCommissionFromJSONTyped = MoneyMoneySplitCommissionFromJSONTyped; +exports.MoneyMoneySplitCommissionToJSON = MoneyMoneySplitCommissionToJSON; +/** + * Check if a given object implements the MoneyMoneySplitCommission interface. + */ +function instanceOfMoneyMoneySplitCommission(value) { + return true; +} +function MoneyMoneySplitCommissionFromJSON(json) { + return MoneyMoneySplitCommissionFromJSONTyped(json, false); +} +function MoneyMoneySplitCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySplitCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySupplyActAmount.d.ts b/dist/models/MoneyMoneySupplyActAmount.d.ts new file mode 100644 index 0000000..7942106 --- /dev/null +++ b/dist/models/MoneyMoneySupplyActAmount.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма с НДС. + * @export + * @interface MoneyMoneySupplyActAmount + */ +export interface MoneyMoneySupplyActAmount { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySupplyActAmount + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySupplyActAmount + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySupplyActAmount interface. + */ +export declare function instanceOfMoneyMoneySupplyActAmount(value: object): value is MoneyMoneySupplyActAmount; +export declare function MoneyMoneySupplyActAmountFromJSON(json: any): MoneyMoneySupplyActAmount; +export declare function MoneyMoneySupplyActAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySupplyActAmount; +export declare function MoneyMoneySupplyActAmountToJSON(value?: MoneyMoneySupplyActAmount | null): any; diff --git a/dist/models/MoneyMoneySupplyActAmount.js b/dist/models/MoneyMoneySupplyActAmount.js new file mode 100644 index 0000000..b752f1f --- /dev/null +++ b/dist/models/MoneyMoneySupplyActAmount.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySupplyActAmount = instanceOfMoneyMoneySupplyActAmount; +exports.MoneyMoneySupplyActAmountFromJSON = MoneyMoneySupplyActAmountFromJSON; +exports.MoneyMoneySupplyActAmountFromJSONTyped = MoneyMoneySupplyActAmountFromJSONTyped; +exports.MoneyMoneySupplyActAmountToJSON = MoneyMoneySupplyActAmountToJSON; +/** + * Check if a given object implements the MoneyMoneySupplyActAmount interface. + */ +function instanceOfMoneyMoneySupplyActAmount(value) { + return true; +} +function MoneyMoneySupplyActAmountFromJSON(json) { + return MoneyMoneySupplyActAmountFromJSONTyped(json, false); +} +function MoneyMoneySupplyActAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySupplyActAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySupplyActAmountVat.d.ts b/dist/models/MoneyMoneySupplyActAmountVat.d.ts new file mode 100644 index 0000000..715caf1 --- /dev/null +++ b/dist/models/MoneyMoneySupplyActAmountVat.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма НДС. + * @export + * @interface MoneyMoneySupplyActAmountVat + */ +export interface MoneyMoneySupplyActAmountVat { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySupplyActAmountVat + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySupplyActAmountVat + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySupplyActAmountVat interface. + */ +export declare function instanceOfMoneyMoneySupplyActAmountVat(value: object): value is MoneyMoneySupplyActAmountVat; +export declare function MoneyMoneySupplyActAmountVatFromJSON(json: any): MoneyMoneySupplyActAmountVat; +export declare function MoneyMoneySupplyActAmountVatFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySupplyActAmountVat; +export declare function MoneyMoneySupplyActAmountVatToJSON(value?: MoneyMoneySupplyActAmountVat | null): any; diff --git a/dist/models/MoneyMoneySupplyActAmountVat.js b/dist/models/MoneyMoneySupplyActAmountVat.js new file mode 100644 index 0000000..78f0763 --- /dev/null +++ b/dist/models/MoneyMoneySupplyActAmountVat.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySupplyActAmountVat = instanceOfMoneyMoneySupplyActAmountVat; +exports.MoneyMoneySupplyActAmountVatFromJSON = MoneyMoneySupplyActAmountVatFromJSON; +exports.MoneyMoneySupplyActAmountVatFromJSONTyped = MoneyMoneySupplyActAmountVatFromJSONTyped; +exports.MoneyMoneySupplyActAmountVatToJSON = MoneyMoneySupplyActAmountVatToJSON; +/** + * Check if a given object implements the MoneyMoneySupplyActAmountVat interface. + */ +function instanceOfMoneyMoneySupplyActAmountVat(value) { + return true; +} +function MoneyMoneySupplyActAmountVatFromJSON(json) { + return MoneyMoneySupplyActAmountVatFromJSONTyped(json, false); +} +function MoneyMoneySupplyActAmountVatFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySupplyActAmountVatToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneySupplyActAmountWithoutVat.d.ts b/dist/models/MoneyMoneySupplyActAmountWithoutVat.d.ts new file mode 100644 index 0000000..bbdde5c --- /dev/null +++ b/dist/models/MoneyMoneySupplyActAmountWithoutVat.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма без НДС. + * @export + * @interface MoneyMoneySupplyActAmountWithoutVat + */ +export interface MoneyMoneySupplyActAmountWithoutVat { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneySupplyActAmountWithoutVat + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneySupplyActAmountWithoutVat + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneySupplyActAmountWithoutVat interface. + */ +export declare function instanceOfMoneyMoneySupplyActAmountWithoutVat(value: object): value is MoneyMoneySupplyActAmountWithoutVat; +export declare function MoneyMoneySupplyActAmountWithoutVatFromJSON(json: any): MoneyMoneySupplyActAmountWithoutVat; +export declare function MoneyMoneySupplyActAmountWithoutVatFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneySupplyActAmountWithoutVat; +export declare function MoneyMoneySupplyActAmountWithoutVatToJSON(value?: MoneyMoneySupplyActAmountWithoutVat | null): any; diff --git a/dist/models/MoneyMoneySupplyActAmountWithoutVat.js b/dist/models/MoneyMoneySupplyActAmountWithoutVat.js new file mode 100644 index 0000000..2545699 --- /dev/null +++ b/dist/models/MoneyMoneySupplyActAmountWithoutVat.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneySupplyActAmountWithoutVat = instanceOfMoneyMoneySupplyActAmountWithoutVat; +exports.MoneyMoneySupplyActAmountWithoutVatFromJSON = MoneyMoneySupplyActAmountWithoutVatFromJSON; +exports.MoneyMoneySupplyActAmountWithoutVatFromJSONTyped = MoneyMoneySupplyActAmountWithoutVatFromJSONTyped; +exports.MoneyMoneySupplyActAmountWithoutVatToJSON = MoneyMoneySupplyActAmountWithoutVatToJSON; +/** + * Check if a given object implements the MoneyMoneySupplyActAmountWithoutVat interface. + */ +function instanceOfMoneyMoneySupplyActAmountWithoutVat(value) { + return true; +} +function MoneyMoneySupplyActAmountWithoutVatFromJSON(json) { + return MoneyMoneySupplyActAmountWithoutVatFromJSONTyped(json, false); +} +function MoneyMoneySupplyActAmountWithoutVatFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneySupplyActAmountWithoutVatToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyTotalAccrued.d.ts b/dist/models/MoneyMoneyTotalAccrued.d.ts new file mode 100644 index 0000000..e040ed7 --- /dev/null +++ b/dist/models/MoneyMoneyTotalAccrued.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Общая сумма начислений за услугу. + * @export + * @interface MoneyMoneyTotalAccrued + */ +export interface MoneyMoneyTotalAccrued { + /** + * Сумма. Значение может быть отрицательным. + * @type {string} + * @memberof MoneyMoneyTotalAccrued + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyTotalAccrued + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyTotalAccrued interface. + */ +export declare function instanceOfMoneyMoneyTotalAccrued(value: object): value is MoneyMoneyTotalAccrued; +export declare function MoneyMoneyTotalAccruedFromJSON(json: any): MoneyMoneyTotalAccrued; +export declare function MoneyMoneyTotalAccruedFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyTotalAccrued; +export declare function MoneyMoneyTotalAccruedToJSON(value?: MoneyMoneyTotalAccrued | null): any; diff --git a/dist/models/MoneyMoneyTotalAccrued.js b/dist/models/MoneyMoneyTotalAccrued.js new file mode 100644 index 0000000..d71923e --- /dev/null +++ b/dist/models/MoneyMoneyTotalAccrued.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyTotalAccrued = instanceOfMoneyMoneyTotalAccrued; +exports.MoneyMoneyTotalAccruedFromJSON = MoneyMoneyTotalAccruedFromJSON; +exports.MoneyMoneyTotalAccruedFromJSONTyped = MoneyMoneyTotalAccruedFromJSONTyped; +exports.MoneyMoneyTotalAccruedToJSON = MoneyMoneyTotalAccruedToJSON; +/** + * Check if a given object implements the MoneyMoneyTotalAccrued interface. + */ +function instanceOfMoneyMoneyTotalAccrued(value) { + return true; +} +function MoneyMoneyTotalAccruedFromJSON(json) { + return MoneyMoneyTotalAccruedFromJSONTyped(json, false); +} +function MoneyMoneyTotalAccruedFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyTotalAccruedToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyMoneyTotalAmount.d.ts b/dist/models/MoneyMoneyTotalAmount.d.ts new file mode 100644 index 0000000..fc53f1a --- /dev/null +++ b/dist/models/MoneyMoneyTotalAmount.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Общая сумма начислений. + * @export + * @interface MoneyMoneyTotalAmount + */ +export interface MoneyMoneyTotalAmount { + /** + * Сумма. + * @type {string} + * @memberof MoneyMoneyTotalAmount + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyMoneyTotalAmount + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyMoneyTotalAmount interface. + */ +export declare function instanceOfMoneyMoneyTotalAmount(value: object): value is MoneyMoneyTotalAmount; +export declare function MoneyMoneyTotalAmountFromJSON(json: any): MoneyMoneyTotalAmount; +export declare function MoneyMoneyTotalAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyMoneyTotalAmount; +export declare function MoneyMoneyTotalAmountToJSON(value?: MoneyMoneyTotalAmount | null): any; diff --git a/dist/models/MoneyMoneyTotalAmount.js b/dist/models/MoneyMoneyTotalAmount.js new file mode 100644 index 0000000..04936df --- /dev/null +++ b/dist/models/MoneyMoneyTotalAmount.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyMoneyTotalAmount = instanceOfMoneyMoneyTotalAmount; +exports.MoneyMoneyTotalAmountFromJSON = MoneyMoneyTotalAmountFromJSON; +exports.MoneyMoneyTotalAmountFromJSONTyped = MoneyMoneyTotalAmountFromJSONTyped; +exports.MoneyMoneyTotalAmountToJSON = MoneyMoneyTotalAmountToJSON; +/** + * Check if a given object implements the MoneyMoneyTotalAmount interface. + */ +function instanceOfMoneyMoneyTotalAmount(value) { + return true; +} +function MoneyMoneyTotalAmountFromJSON(json) { + return MoneyMoneyTotalAmountFromJSONTyped(json, false); +} +function MoneyMoneyTotalAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyMoneyTotalAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/MoneyPostingMoney.d.ts b/dist/models/MoneyPostingMoney.d.ts new file mode 100644 index 0000000..f91e6aa --- /dev/null +++ b/dist/models/MoneyPostingMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара. + * @export + * @interface MoneyPostingMoney + */ +export interface MoneyPostingMoney { + /** + * Сумма. + * @type {string} + * @memberof MoneyPostingMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof MoneyPostingMoney + */ + currency?: string; +} +/** + * Check if a given object implements the MoneyPostingMoney interface. + */ +export declare function instanceOfMoneyPostingMoney(value: object): value is MoneyPostingMoney; +export declare function MoneyPostingMoneyFromJSON(json: any): MoneyPostingMoney; +export declare function MoneyPostingMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyPostingMoney; +export declare function MoneyPostingMoneyToJSON(value?: MoneyPostingMoney | null): any; diff --git a/dist/models/MoneyPostingMoney.js b/dist/models/MoneyPostingMoney.js new file mode 100644 index 0000000..6434729 --- /dev/null +++ b/dist/models/MoneyPostingMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMoneyPostingMoney = instanceOfMoneyPostingMoney; +exports.MoneyPostingMoneyFromJSON = MoneyPostingMoneyFromJSON; +exports.MoneyPostingMoneyFromJSONTyped = MoneyPostingMoneyFromJSONTyped; +exports.MoneyPostingMoneyToJSON = MoneyPostingMoneyToJSON; +/** + * Check if a given object implements the MoneyPostingMoney interface. + */ +function instanceOfMoneyPostingMoney(value) { + return true; +} +function MoneyPostingMoneyFromJSON(json) { + return MoneyPostingMoneyFromJSONTyped(json, false); +} +function MoneyPostingMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function MoneyPostingMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/NotificationV1CheckNotificationRequest.d.ts b/dist/models/NotificationV1CheckNotificationRequest.d.ts new file mode 100644 index 0000000..ac8a318 --- /dev/null +++ b/dist/models/NotificationV1CheckNotificationRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface NotificationV1CheckNotificationRequest + */ +export interface NotificationV1CheckNotificationRequest { + /** + * URL-адрес. + * @type {string} + * @memberof NotificationV1CheckNotificationRequest + */ + url: string; +} +/** + * Check if a given object implements the NotificationV1CheckNotificationRequest interface. + */ +export declare function instanceOfNotificationV1CheckNotificationRequest(value: object): value is NotificationV1CheckNotificationRequest; +export declare function NotificationV1CheckNotificationRequestFromJSON(json: any): NotificationV1CheckNotificationRequest; +export declare function NotificationV1CheckNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1CheckNotificationRequest; +export declare function NotificationV1CheckNotificationRequestToJSON(value?: NotificationV1CheckNotificationRequest | null): any; diff --git a/dist/models/NotificationV1CheckNotificationRequest.js b/dist/models/NotificationV1CheckNotificationRequest.js new file mode 100644 index 0000000..bad3edf --- /dev/null +++ b/dist/models/NotificationV1CheckNotificationRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1CheckNotificationRequest = instanceOfNotificationV1CheckNotificationRequest; +exports.NotificationV1CheckNotificationRequestFromJSON = NotificationV1CheckNotificationRequestFromJSON; +exports.NotificationV1CheckNotificationRequestFromJSONTyped = NotificationV1CheckNotificationRequestFromJSONTyped; +exports.NotificationV1CheckNotificationRequestToJSON = NotificationV1CheckNotificationRequestToJSON; +/** + * Check if a given object implements the NotificationV1CheckNotificationRequest interface. + */ +function instanceOfNotificationV1CheckNotificationRequest(value) { + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +function NotificationV1CheckNotificationRequestFromJSON(json) { + return NotificationV1CheckNotificationRequestFromJSONTyped(json, false); +} +function NotificationV1CheckNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'url': json['url'], + }; +} +function NotificationV1CheckNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'url': value['url'], + }; +} diff --git a/dist/models/NotificationV1CheckNotificationResponse.d.ts b/dist/models/NotificationV1CheckNotificationResponse.d.ts new file mode 100644 index 0000000..bcec8ed --- /dev/null +++ b/dist/models/NotificationV1CheckNotificationResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1CheckNotificationResponseError } from './NotificationV1CheckNotificationResponseError'; +/** + * + * @export + * @interface NotificationV1CheckNotificationResponse + */ +export interface NotificationV1CheckNotificationResponse { + /** + * Ошибки, возникшие при проверке. + * @type {Array} + * @memberof NotificationV1CheckNotificationResponse + */ + errors?: Array; + /** + * `true`, если URL-адрес активен. + * + * @type {boolean} + * @memberof NotificationV1CheckNotificationResponse + */ + is_active: boolean; +} +/** + * Check if a given object implements the NotificationV1CheckNotificationResponse interface. + */ +export declare function instanceOfNotificationV1CheckNotificationResponse(value: object): value is NotificationV1CheckNotificationResponse; +export declare function NotificationV1CheckNotificationResponseFromJSON(json: any): NotificationV1CheckNotificationResponse; +export declare function NotificationV1CheckNotificationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1CheckNotificationResponse; +export declare function NotificationV1CheckNotificationResponseToJSON(value?: NotificationV1CheckNotificationResponse | null): any; diff --git a/dist/models/NotificationV1CheckNotificationResponse.js b/dist/models/NotificationV1CheckNotificationResponse.js new file mode 100644 index 0000000..3011629 --- /dev/null +++ b/dist/models/NotificationV1CheckNotificationResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1CheckNotificationResponse = instanceOfNotificationV1CheckNotificationResponse; +exports.NotificationV1CheckNotificationResponseFromJSON = NotificationV1CheckNotificationResponseFromJSON; +exports.NotificationV1CheckNotificationResponseFromJSONTyped = NotificationV1CheckNotificationResponseFromJSONTyped; +exports.NotificationV1CheckNotificationResponseToJSON = NotificationV1CheckNotificationResponseToJSON; +const NotificationV1CheckNotificationResponseError_1 = require("./NotificationV1CheckNotificationResponseError"); +/** + * Check if a given object implements the NotificationV1CheckNotificationResponse interface. + */ +function instanceOfNotificationV1CheckNotificationResponse(value) { + if (!('is_active' in value) || value['is_active'] === undefined) + return false; + return true; +} +function NotificationV1CheckNotificationResponseFromJSON(json) { + return NotificationV1CheckNotificationResponseFromJSONTyped(json, false); +} +function NotificationV1CheckNotificationResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(NotificationV1CheckNotificationResponseError_1.NotificationV1CheckNotificationResponseErrorFromJSON)), + 'is_active': json['is_active'], + }; +} +function NotificationV1CheckNotificationResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(NotificationV1CheckNotificationResponseError_1.NotificationV1CheckNotificationResponseErrorToJSON)), + 'is_active': value['is_active'], + }; +} diff --git a/dist/models/NotificationV1CheckNotificationResponseError.d.ts b/dist/models/NotificationV1CheckNotificationResponseError.d.ts new file mode 100644 index 0000000..e7a0ac5 --- /dev/null +++ b/dist/models/NotificationV1CheckNotificationResponseError.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1CheckNotificationResponseErrorTypeEnum } from './NotificationV1CheckNotificationResponseErrorTypeEnum'; +/** + * + * @export + * @interface NotificationV1CheckNotificationResponseError + */ +export interface NotificationV1CheckNotificationResponseError { + /** + * Описание ошибки. + * @type {string} + * @memberof NotificationV1CheckNotificationResponseError + */ + description?: string; + /** + * + * @type {NotificationV1CheckNotificationResponseErrorTypeEnum} + * @memberof NotificationV1CheckNotificationResponseError + */ + type?: NotificationV1CheckNotificationResponseErrorTypeEnum; +} +/** + * Check if a given object implements the NotificationV1CheckNotificationResponseError interface. + */ +export declare function instanceOfNotificationV1CheckNotificationResponseError(value: object): value is NotificationV1CheckNotificationResponseError; +export declare function NotificationV1CheckNotificationResponseErrorFromJSON(json: any): NotificationV1CheckNotificationResponseError; +export declare function NotificationV1CheckNotificationResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1CheckNotificationResponseError; +export declare function NotificationV1CheckNotificationResponseErrorToJSON(value?: NotificationV1CheckNotificationResponseError | null): any; diff --git a/dist/models/NotificationV1CheckNotificationResponseError.js b/dist/models/NotificationV1CheckNotificationResponseError.js new file mode 100644 index 0000000..5bf4351 --- /dev/null +++ b/dist/models/NotificationV1CheckNotificationResponseError.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1CheckNotificationResponseError = instanceOfNotificationV1CheckNotificationResponseError; +exports.NotificationV1CheckNotificationResponseErrorFromJSON = NotificationV1CheckNotificationResponseErrorFromJSON; +exports.NotificationV1CheckNotificationResponseErrorFromJSONTyped = NotificationV1CheckNotificationResponseErrorFromJSONTyped; +exports.NotificationV1CheckNotificationResponseErrorToJSON = NotificationV1CheckNotificationResponseErrorToJSON; +const NotificationV1CheckNotificationResponseErrorTypeEnum_1 = require("./NotificationV1CheckNotificationResponseErrorTypeEnum"); +/** + * Check if a given object implements the NotificationV1CheckNotificationResponseError interface. + */ +function instanceOfNotificationV1CheckNotificationResponseError(value) { + return true; +} +function NotificationV1CheckNotificationResponseErrorFromJSON(json) { + return NotificationV1CheckNotificationResponseErrorFromJSONTyped(json, false); +} +function NotificationV1CheckNotificationResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'] == null ? undefined : json['description'], + 'type': json['type'] == null ? undefined : (0, NotificationV1CheckNotificationResponseErrorTypeEnum_1.NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON)(json['type']), + }; +} +function NotificationV1CheckNotificationResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'type': (0, NotificationV1CheckNotificationResponseErrorTypeEnum_1.NotificationV1CheckNotificationResponseErrorTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/NotificationV1CheckNotificationResponseErrorTypeEnum.d.ts b/dist/models/NotificationV1CheckNotificationResponseErrorTypeEnum.d.ts new file mode 100644 index 0000000..12f26ed --- /dev/null +++ b/dist/models/NotificationV1CheckNotificationResponseErrorTypeEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `REQUEST_ERROR` — нет подключения по URL-адресу; + * - `REQUEST_TIMEOUT` — превышено время ожидания запроса; + * - `SERVER_FAULT` — сервис вернул внутреннюю ошибку; + * - `STATUS_CODE_NOT_OK` — HTTP-статус ответа не `200`; + * - `EMPTY_BODY` — тело ответа пустое или отсутствует; + * - `INVALID_BODY` — некорректный формат тела ответа; + * - `INVALID_JSON` — ошибка при разборе или валидации JSON-данных; + * - `WRONG_RESULT_FIELD` — сервис вернул тело ответа не по шаблону; + * - `WRONG_RESULT_TIME_FIELD` — параметр `time` в теле ответа некорректный. + * + * @export + */ +export declare const NotificationV1CheckNotificationResponseErrorTypeEnum: { + readonly REQUEST_ERROR: "REQUEST_ERROR"; + readonly REQUEST_TIMEOUT: "REQUEST_TIMEOUT"; + readonly SERVER_FAULT: "SERVER_FAULT"; + readonly STATUS_CODE_NOT_OK: "STATUS_CODE_NOT_OK"; + readonly EMPTY_BODY: "EMPTY_BODY"; + readonly INVALID_BODY: "INVALID_BODY"; + readonly INVALID_JSON: "INVALID_JSON"; + readonly WRONG_RESULT_FIELD: "WRONG_RESULT_FIELD"; + readonly WRONG_RESULT_TIME_FIELD: "WRONG_RESULT_TIME_FIELD"; +}; +export type NotificationV1CheckNotificationResponseErrorTypeEnum = typeof NotificationV1CheckNotificationResponseErrorTypeEnum[keyof typeof NotificationV1CheckNotificationResponseErrorTypeEnum]; +export declare function instanceOfNotificationV1CheckNotificationResponseErrorTypeEnum(value: any): boolean; +export declare function NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON(json: any): NotificationV1CheckNotificationResponseErrorTypeEnum; +export declare function NotificationV1CheckNotificationResponseErrorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1CheckNotificationResponseErrorTypeEnum; +export declare function NotificationV1CheckNotificationResponseErrorTypeEnumToJSON(value?: NotificationV1CheckNotificationResponseErrorTypeEnum | null): any; diff --git a/dist/models/NotificationV1CheckNotificationResponseErrorTypeEnum.js b/dist/models/NotificationV1CheckNotificationResponseErrorTypeEnum.js new file mode 100644 index 0000000..a95455d --- /dev/null +++ b/dist/models/NotificationV1CheckNotificationResponseErrorTypeEnum.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NotificationV1CheckNotificationResponseErrorTypeEnum = void 0; +exports.instanceOfNotificationV1CheckNotificationResponseErrorTypeEnum = instanceOfNotificationV1CheckNotificationResponseErrorTypeEnum; +exports.NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON = NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON; +exports.NotificationV1CheckNotificationResponseErrorTypeEnumFromJSONTyped = NotificationV1CheckNotificationResponseErrorTypeEnumFromJSONTyped; +exports.NotificationV1CheckNotificationResponseErrorTypeEnumToJSON = NotificationV1CheckNotificationResponseErrorTypeEnumToJSON; +/** + * Тип ошибки: + * - `REQUEST_ERROR` — нет подключения по URL-адресу; + * - `REQUEST_TIMEOUT` — превышено время ожидания запроса; + * - `SERVER_FAULT` — сервис вернул внутреннюю ошибку; + * - `STATUS_CODE_NOT_OK` — HTTP-статус ответа не `200`; + * - `EMPTY_BODY` — тело ответа пустое или отсутствует; + * - `INVALID_BODY` — некорректный формат тела ответа; + * - `INVALID_JSON` — ошибка при разборе или валидации JSON-данных; + * - `WRONG_RESULT_FIELD` — сервис вернул тело ответа не по шаблону; + * - `WRONG_RESULT_TIME_FIELD` — параметр `time` в теле ответа некорректный. + * + * @export + */ +exports.NotificationV1CheckNotificationResponseErrorTypeEnum = { + REQUEST_ERROR: 'REQUEST_ERROR', + REQUEST_TIMEOUT: 'REQUEST_TIMEOUT', + SERVER_FAULT: 'SERVER_FAULT', + STATUS_CODE_NOT_OK: 'STATUS_CODE_NOT_OK', + EMPTY_BODY: 'EMPTY_BODY', + INVALID_BODY: 'INVALID_BODY', + INVALID_JSON: 'INVALID_JSON', + WRONG_RESULT_FIELD: 'WRONG_RESULT_FIELD', + WRONG_RESULT_TIME_FIELD: 'WRONG_RESULT_TIME_FIELD' +}; +function instanceOfNotificationV1CheckNotificationResponseErrorTypeEnum(value) { + for (const key in exports.NotificationV1CheckNotificationResponseErrorTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.NotificationV1CheckNotificationResponseErrorTypeEnum, key)) { + if (exports.NotificationV1CheckNotificationResponseErrorTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function NotificationV1CheckNotificationResponseErrorTypeEnumFromJSON(json) { + return NotificationV1CheckNotificationResponseErrorTypeEnumFromJSONTyped(json, false); +} +function NotificationV1CheckNotificationResponseErrorTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function NotificationV1CheckNotificationResponseErrorTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/NotificationV1DeleteNotificationRequest.d.ts b/dist/models/NotificationV1DeleteNotificationRequest.d.ts new file mode 100644 index 0000000..82e3b67 --- /dev/null +++ b/dist/models/NotificationV1DeleteNotificationRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface NotificationV1DeleteNotificationRequest + */ +export interface NotificationV1DeleteNotificationRequest { + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1DeleteNotificationRequest + */ + id: number; +} +/** + * Check if a given object implements the NotificationV1DeleteNotificationRequest interface. + */ +export declare function instanceOfNotificationV1DeleteNotificationRequest(value: object): value is NotificationV1DeleteNotificationRequest; +export declare function NotificationV1DeleteNotificationRequestFromJSON(json: any): NotificationV1DeleteNotificationRequest; +export declare function NotificationV1DeleteNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1DeleteNotificationRequest; +export declare function NotificationV1DeleteNotificationRequestToJSON(value?: NotificationV1DeleteNotificationRequest | null): any; diff --git a/dist/models/NotificationV1DeleteNotificationRequest.js b/dist/models/NotificationV1DeleteNotificationRequest.js new file mode 100644 index 0000000..4d0bdfb --- /dev/null +++ b/dist/models/NotificationV1DeleteNotificationRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1DeleteNotificationRequest = instanceOfNotificationV1DeleteNotificationRequest; +exports.NotificationV1DeleteNotificationRequestFromJSON = NotificationV1DeleteNotificationRequestFromJSON; +exports.NotificationV1DeleteNotificationRequestFromJSONTyped = NotificationV1DeleteNotificationRequestFromJSONTyped; +exports.NotificationV1DeleteNotificationRequestToJSON = NotificationV1DeleteNotificationRequestToJSON; +/** + * Check if a given object implements the NotificationV1DeleteNotificationRequest interface. + */ +function instanceOfNotificationV1DeleteNotificationRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function NotificationV1DeleteNotificationRequestFromJSON(json) { + return NotificationV1DeleteNotificationRequestFromJSONTyped(json, false); +} +function NotificationV1DeleteNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function NotificationV1DeleteNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/NotificationV1EnableNotificationRequest.d.ts b/dist/models/NotificationV1EnableNotificationRequest.d.ts new file mode 100644 index 0000000..ab7ccf5 --- /dev/null +++ b/dist/models/NotificationV1EnableNotificationRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface NotificationV1EnableNotificationRequest + */ +export interface NotificationV1EnableNotificationRequest { + /** + * Передайте: + * - `true` — чтобы включить уведомления; + * - `false` — чтобы выключить уведомления. + * + * @type {boolean} + * @memberof NotificationV1EnableNotificationRequest + */ + enabled: boolean; + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1EnableNotificationRequest + */ + id: number; +} +/** + * Check if a given object implements the NotificationV1EnableNotificationRequest interface. + */ +export declare function instanceOfNotificationV1EnableNotificationRequest(value: object): value is NotificationV1EnableNotificationRequest; +export declare function NotificationV1EnableNotificationRequestFromJSON(json: any): NotificationV1EnableNotificationRequest; +export declare function NotificationV1EnableNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1EnableNotificationRequest; +export declare function NotificationV1EnableNotificationRequestToJSON(value?: NotificationV1EnableNotificationRequest | null): any; diff --git a/dist/models/NotificationV1EnableNotificationRequest.js b/dist/models/NotificationV1EnableNotificationRequest.js new file mode 100644 index 0000000..505290e --- /dev/null +++ b/dist/models/NotificationV1EnableNotificationRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1EnableNotificationRequest = instanceOfNotificationV1EnableNotificationRequest; +exports.NotificationV1EnableNotificationRequestFromJSON = NotificationV1EnableNotificationRequestFromJSON; +exports.NotificationV1EnableNotificationRequestFromJSONTyped = NotificationV1EnableNotificationRequestFromJSONTyped; +exports.NotificationV1EnableNotificationRequestToJSON = NotificationV1EnableNotificationRequestToJSON; +/** + * Check if a given object implements the NotificationV1EnableNotificationRequest interface. + */ +function instanceOfNotificationV1EnableNotificationRequest(value) { + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function NotificationV1EnableNotificationRequestFromJSON(json) { + return NotificationV1EnableNotificationRequestFromJSONTyped(json, false); +} +function NotificationV1EnableNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'], + 'id': json['id'], + }; +} +function NotificationV1EnableNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'id': value['id'], + }; +} diff --git a/dist/models/NotificationV1GetNotificationPushTypeListResponse.d.ts b/dist/models/NotificationV1GetNotificationPushTypeListResponse.d.ts new file mode 100644 index 0000000..db4f04b --- /dev/null +++ b/dist/models/NotificationV1GetNotificationPushTypeListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1GetNotificationPushTypeListResponseNotificationType } from './NotificationV1GetNotificationPushTypeListResponseNotificationType'; +/** + * + * @export + * @interface NotificationV1GetNotificationPushTypeListResponse + */ +export interface NotificationV1GetNotificationPushTypeListResponse { + /** + * Типы пуш-уведомлений. + * @type {Array} + * @memberof NotificationV1GetNotificationPushTypeListResponse + */ + types: Array; +} +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponse interface. + */ +export declare function instanceOfNotificationV1GetNotificationPushTypeListResponse(value: object): value is NotificationV1GetNotificationPushTypeListResponse; +export declare function NotificationV1GetNotificationPushTypeListResponseFromJSON(json: any): NotificationV1GetNotificationPushTypeListResponse; +export declare function NotificationV1GetNotificationPushTypeListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1GetNotificationPushTypeListResponse; +export declare function NotificationV1GetNotificationPushTypeListResponseToJSON(value?: NotificationV1GetNotificationPushTypeListResponse | null): any; diff --git a/dist/models/NotificationV1GetNotificationPushTypeListResponse.js b/dist/models/NotificationV1GetNotificationPushTypeListResponse.js new file mode 100644 index 0000000..58aade2 --- /dev/null +++ b/dist/models/NotificationV1GetNotificationPushTypeListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1GetNotificationPushTypeListResponse = instanceOfNotificationV1GetNotificationPushTypeListResponse; +exports.NotificationV1GetNotificationPushTypeListResponseFromJSON = NotificationV1GetNotificationPushTypeListResponseFromJSON; +exports.NotificationV1GetNotificationPushTypeListResponseFromJSONTyped = NotificationV1GetNotificationPushTypeListResponseFromJSONTyped; +exports.NotificationV1GetNotificationPushTypeListResponseToJSON = NotificationV1GetNotificationPushTypeListResponseToJSON; +const NotificationV1GetNotificationPushTypeListResponseNotificationType_1 = require("./NotificationV1GetNotificationPushTypeListResponseNotificationType"); +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponse interface. + */ +function instanceOfNotificationV1GetNotificationPushTypeListResponse(value) { + if (!('types' in value) || value['types'] === undefined) + return false; + return true; +} +function NotificationV1GetNotificationPushTypeListResponseFromJSON(json) { + return NotificationV1GetNotificationPushTypeListResponseFromJSONTyped(json, false); +} +function NotificationV1GetNotificationPushTypeListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'types': (json['types'].map(NotificationV1GetNotificationPushTypeListResponseNotificationType_1.NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON)), + }; +} +function NotificationV1GetNotificationPushTypeListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'types': (value['types'].map(NotificationV1GetNotificationPushTypeListResponseNotificationType_1.NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON)), + }; +} diff --git a/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.d.ts b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.d.ts new file mode 100644 index 0000000..2e7838c --- /dev/null +++ b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum } from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum'; +import type { NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint } from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint'; +/** + * + * @export + * @interface NotificationV1GetNotificationPushTypeListResponseNotificationType + */ +export interface NotificationV1GetNotificationPushTypeListResponseNotificationType { + /** + * Описание. + * @type {string} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationType + */ + description: string; + /** + * + * @type {NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationType + */ + seller_endpoint?: NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; + /** + * + * @type {NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationType + */ + type: NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum; +} +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponseNotificationType interface. + */ +export declare function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationType(value: object): value is NotificationV1GetNotificationPushTypeListResponseNotificationType; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON(json: any): NotificationV1GetNotificationPushTypeListResponseNotificationType; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1GetNotificationPushTypeListResponseNotificationType; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON(value?: NotificationV1GetNotificationPushTypeListResponseNotificationType | null): any; diff --git a/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.js b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.js new file mode 100644 index 0000000..10a83ca --- /dev/null +++ b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationType.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationType = instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationType; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON = NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSONTyped = NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSONTyped; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON = NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON; +const NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum_1 = require("./NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum"); +const NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint_1 = require("./NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint"); +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponseNotificationType interface. + */ +function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationType(value) { + if (!('description' in value) || value['description'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSON(json) { + return NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSONTyped(json, false); +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'], + 'seller_endpoint': json['seller_endpoint'] == null ? undefined : (0, NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint_1.NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON)(json['seller_endpoint']), + 'type': (0, NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum_1.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON)(json['type']), + }; +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'seller_endpoint': (0, NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint_1.NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON)(value['seller_endpoint']), + 'type': (0, NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum_1.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.d.ts b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.d.ts new file mode 100644 index 0000000..7d17f64 --- /dev/null +++ b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * URL-адрес, на который приходит тип уведомлений. + * @export + * @interface NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint + */ +export interface NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint { + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint + */ + id: number; + /** + * URL-адрес. + * @type {string} + * @memberof NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint + */ + url: string; +} +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint interface. + */ +export declare function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint(value: object): value is NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON(json: any): NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON(value?: NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint | null): any; diff --git a/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.js b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.js new file mode 100644 index 0000000..dc7fa32 --- /dev/null +++ b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint = instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON = NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSONTyped = NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSONTyped; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON = NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON; +/** + * Check if a given object implements the NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint interface. + */ +function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSON(json) { + return NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSONTyped(json, false); +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'url': json['url'], + }; +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpointToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'url': value['url'], + }; +} diff --git a/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.d.ts b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.d.ts new file mode 100644 index 0000000..7180404 --- /dev/null +++ b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип уведомления: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @export + */ +export declare const NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum: { + readonly NEW_MESSAGE: "TYPE_NEW_MESSAGE"; + readonly UPDATE_MESSAGE: "TYPE_UPDATE_MESSAGE"; + readonly MESSAGE_READ: "TYPE_MESSAGE_READ"; + readonly CHAT_CLOSED: "TYPE_CHAT_CLOSED"; + readonly NEW_POSTING: "TYPE_NEW_POSTING"; + readonly POSTING_CANCELLED: "TYPE_POSTING_CANCELLED"; + readonly STATE_CHANGED: "TYPE_STATE_CHANGED"; + readonly DELIVERY_DATE_CHANGED: "TYPE_DELIVERY_DATE_CHANGED"; + readonly CUTOFF_DATE_CHANGED: "TYPE_CUTOFF_DATE_CHANGED"; + readonly CREATE_ITEM: "TYPE_CREATE_ITEM"; + readonly UPDATE_ITEM: "TYPE_UPDATE_ITEM"; + readonly CREATE_OR_UPDATE_ITEM: "TYPE_CREATE_OR_UPDATE_ITEM"; + readonly STOCKS_CHANGED: "TYPE_STOCKS_CHANGED"; + readonly FBO_POSTING_NEW: "TYPE_FBO_POSTING_NEW"; + readonly FBO_POSTING_CANCELLED: "TYPE_FBO_POSTING_CANCELLED"; + readonly FBO_POSTING_STATE_CHANGED: "TYPE_FBO_POSTING_STATE_CHANGED"; + readonly FBO_POSTING_DELIVERY_DATE_CHANGED: "TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED"; + readonly FBO_STOCKS_CHANGED: "TYPE_FBO_STOCKS_CHANGED"; + readonly ORDER_NEW: "TYPE_ORDER_NEW"; + readonly ORDER_CANCELLED: "TYPE_ORDER_CANCELLED"; + readonly ORDER_STATE_CHANGED: "TYPE_ORDER_STATE_CHANGED"; +}; +export type NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum = typeof NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum[keyof typeof NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum]; +export declare function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum(value: any): boolean; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON(json: any): NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum; +export declare function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON(value?: NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum | null): any; diff --git a/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.js b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.js new file mode 100644 index 0000000..fbdd70d --- /dev/null +++ b/dist/models/NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum.js @@ -0,0 +1,88 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum = void 0; +exports.instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum = instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON = NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSONTyped = NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSONTyped; +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON = NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON; +/** + * Тип уведомления: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @export + */ +exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum = { + NEW_MESSAGE: 'TYPE_NEW_MESSAGE', + UPDATE_MESSAGE: 'TYPE_UPDATE_MESSAGE', + MESSAGE_READ: 'TYPE_MESSAGE_READ', + CHAT_CLOSED: 'TYPE_CHAT_CLOSED', + NEW_POSTING: 'TYPE_NEW_POSTING', + POSTING_CANCELLED: 'TYPE_POSTING_CANCELLED', + STATE_CHANGED: 'TYPE_STATE_CHANGED', + DELIVERY_DATE_CHANGED: 'TYPE_DELIVERY_DATE_CHANGED', + CUTOFF_DATE_CHANGED: 'TYPE_CUTOFF_DATE_CHANGED', + CREATE_ITEM: 'TYPE_CREATE_ITEM', + UPDATE_ITEM: 'TYPE_UPDATE_ITEM', + CREATE_OR_UPDATE_ITEM: 'TYPE_CREATE_OR_UPDATE_ITEM', + STOCKS_CHANGED: 'TYPE_STOCKS_CHANGED', + FBO_POSTING_NEW: 'TYPE_FBO_POSTING_NEW', + FBO_POSTING_CANCELLED: 'TYPE_FBO_POSTING_CANCELLED', + FBO_POSTING_STATE_CHANGED: 'TYPE_FBO_POSTING_STATE_CHANGED', + FBO_POSTING_DELIVERY_DATE_CHANGED: 'TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED', + FBO_STOCKS_CHANGED: 'TYPE_FBO_STOCKS_CHANGED', + ORDER_NEW: 'TYPE_ORDER_NEW', + ORDER_CANCELLED: 'TYPE_ORDER_CANCELLED', + ORDER_STATE_CHANGED: 'TYPE_ORDER_STATE_CHANGED' +}; +function instanceOfNotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum(value) { + for (const key in exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum, key)) { + if (exports.NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSON(json) { + return NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSONTyped(json, false); +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/NotificationV1NotificationListResponse.d.ts b/dist/models/NotificationV1NotificationListResponse.d.ts new file mode 100644 index 0000000..413e6f5 --- /dev/null +++ b/dist/models/NotificationV1NotificationListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1NotificationListResponseNotification } from './NotificationV1NotificationListResponseNotification'; +/** + * + * @export + * @interface NotificationV1NotificationListResponse + */ +export interface NotificationV1NotificationListResponse { + /** + * Подключённые URL-адреса. + * @type {Array} + * @memberof NotificationV1NotificationListResponse + */ + urls: Array; +} +/** + * Check if a given object implements the NotificationV1NotificationListResponse interface. + */ +export declare function instanceOfNotificationV1NotificationListResponse(value: object): value is NotificationV1NotificationListResponse; +export declare function NotificationV1NotificationListResponseFromJSON(json: any): NotificationV1NotificationListResponse; +export declare function NotificationV1NotificationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1NotificationListResponse; +export declare function NotificationV1NotificationListResponseToJSON(value?: NotificationV1NotificationListResponse | null): any; diff --git a/dist/models/NotificationV1NotificationListResponse.js b/dist/models/NotificationV1NotificationListResponse.js new file mode 100644 index 0000000..9060fcb --- /dev/null +++ b/dist/models/NotificationV1NotificationListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1NotificationListResponse = instanceOfNotificationV1NotificationListResponse; +exports.NotificationV1NotificationListResponseFromJSON = NotificationV1NotificationListResponseFromJSON; +exports.NotificationV1NotificationListResponseFromJSONTyped = NotificationV1NotificationListResponseFromJSONTyped; +exports.NotificationV1NotificationListResponseToJSON = NotificationV1NotificationListResponseToJSON; +const NotificationV1NotificationListResponseNotification_1 = require("./NotificationV1NotificationListResponseNotification"); +/** + * Check if a given object implements the NotificationV1NotificationListResponse interface. + */ +function instanceOfNotificationV1NotificationListResponse(value) { + if (!('urls' in value) || value['urls'] === undefined) + return false; + return true; +} +function NotificationV1NotificationListResponseFromJSON(json) { + return NotificationV1NotificationListResponseFromJSONTyped(json, false); +} +function NotificationV1NotificationListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'urls': (json['urls'].map(NotificationV1NotificationListResponseNotification_1.NotificationV1NotificationListResponseNotificationFromJSON)), + }; +} +function NotificationV1NotificationListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'urls': (value['urls'].map(NotificationV1NotificationListResponseNotification_1.NotificationV1NotificationListResponseNotificationToJSON)), + }; +} diff --git a/dist/models/NotificationV1NotificationListResponseNotification.d.ts b/dist/models/NotificationV1NotificationListResponseNotification.d.ts new file mode 100644 index 0000000..e33ac72 --- /dev/null +++ b/dist/models/NotificationV1NotificationListResponseNotification.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1NotificationListResponseNotificationNotificationType } from './NotificationV1NotificationListResponseNotificationNotificationType'; +/** + * + * @export + * @interface NotificationV1NotificationListResponseNotification + */ +export interface NotificationV1NotificationListResponseNotification { + /** + * Дата подключения URL-адреса. + * @type {string} + * @memberof NotificationV1NotificationListResponseNotification + */ + created_at: string; + /** + * `true`, если URL-адрес включён. + * + * @type {boolean} + * @memberof NotificationV1NotificationListResponseNotification + */ + enable: boolean; + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1NotificationListResponseNotification + */ + id: number; + /** + * Типы уведомлений. + * @type {Array} + * @memberof NotificationV1NotificationListResponseNotification + */ + types: Array; + /** + * URL-адрес. + * @type {string} + * @memberof NotificationV1NotificationListResponseNotification + */ + url: string; +} +/** + * Check if a given object implements the NotificationV1NotificationListResponseNotification interface. + */ +export declare function instanceOfNotificationV1NotificationListResponseNotification(value: object): value is NotificationV1NotificationListResponseNotification; +export declare function NotificationV1NotificationListResponseNotificationFromJSON(json: any): NotificationV1NotificationListResponseNotification; +export declare function NotificationV1NotificationListResponseNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1NotificationListResponseNotification; +export declare function NotificationV1NotificationListResponseNotificationToJSON(value?: NotificationV1NotificationListResponseNotification | null): any; diff --git a/dist/models/NotificationV1NotificationListResponseNotification.js b/dist/models/NotificationV1NotificationListResponseNotification.js new file mode 100644 index 0000000..e58e8e6 --- /dev/null +++ b/dist/models/NotificationV1NotificationListResponseNotification.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1NotificationListResponseNotification = instanceOfNotificationV1NotificationListResponseNotification; +exports.NotificationV1NotificationListResponseNotificationFromJSON = NotificationV1NotificationListResponseNotificationFromJSON; +exports.NotificationV1NotificationListResponseNotificationFromJSONTyped = NotificationV1NotificationListResponseNotificationFromJSONTyped; +exports.NotificationV1NotificationListResponseNotificationToJSON = NotificationV1NotificationListResponseNotificationToJSON; +const NotificationV1NotificationListResponseNotificationNotificationType_1 = require("./NotificationV1NotificationListResponseNotificationNotificationType"); +/** + * Check if a given object implements the NotificationV1NotificationListResponseNotification interface. + */ +function instanceOfNotificationV1NotificationListResponseNotification(value) { + if (!('created_at' in value) || value['created_at'] === undefined) + return false; + if (!('enable' in value) || value['enable'] === undefined) + return false; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('types' in value) || value['types'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +function NotificationV1NotificationListResponseNotificationFromJSON(json) { + return NotificationV1NotificationListResponseNotificationFromJSONTyped(json, false); +} +function NotificationV1NotificationListResponseNotificationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'], + 'enable': json['enable'], + 'id': json['id'], + 'types': (json['types'].map(NotificationV1NotificationListResponseNotificationNotificationType_1.NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON)), + 'url': json['url'], + }; +} +function NotificationV1NotificationListResponseNotificationToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'enable': value['enable'], + 'id': value['id'], + 'types': (value['types'].map(NotificationV1NotificationListResponseNotificationNotificationType_1.NotificationV1NotificationListResponseNotificationNotificationTypeToJSON)), + 'url': value['url'], + }; +} diff --git a/dist/models/NotificationV1NotificationListResponseNotificationNotificationType.d.ts b/dist/models/NotificationV1NotificationListResponseNotificationNotificationType.d.ts new file mode 100644 index 0000000..bf96933 --- /dev/null +++ b/dist/models/NotificationV1NotificationListResponseNotificationNotificationType.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum } from './NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum'; +/** + * + * @export + * @interface NotificationV1NotificationListResponseNotificationNotificationType + */ +export interface NotificationV1NotificationListResponseNotificationNotificationType { + /** + * Описание типа уведомлений. + * @type {string} + * @memberof NotificationV1NotificationListResponseNotificationNotificationType + */ + description: string; + /** + * + * @type {NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum} + * @memberof NotificationV1NotificationListResponseNotificationNotificationType + */ + type: NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum; +} +/** + * Check if a given object implements the NotificationV1NotificationListResponseNotificationNotificationType interface. + */ +export declare function instanceOfNotificationV1NotificationListResponseNotificationNotificationType(value: object): value is NotificationV1NotificationListResponseNotificationNotificationType; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON(json: any): NotificationV1NotificationListResponseNotificationNotificationType; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1NotificationListResponseNotificationNotificationType; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeToJSON(value?: NotificationV1NotificationListResponseNotificationNotificationType | null): any; diff --git a/dist/models/NotificationV1NotificationListResponseNotificationNotificationType.js b/dist/models/NotificationV1NotificationListResponseNotificationNotificationType.js new file mode 100644 index 0000000..ea8a7ab --- /dev/null +++ b/dist/models/NotificationV1NotificationListResponseNotificationNotificationType.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1NotificationListResponseNotificationNotificationType = instanceOfNotificationV1NotificationListResponseNotificationNotificationType; +exports.NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON = NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON; +exports.NotificationV1NotificationListResponseNotificationNotificationTypeFromJSONTyped = NotificationV1NotificationListResponseNotificationNotificationTypeFromJSONTyped; +exports.NotificationV1NotificationListResponseNotificationNotificationTypeToJSON = NotificationV1NotificationListResponseNotificationNotificationTypeToJSON; +const NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum_1 = require("./NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum"); +/** + * Check if a given object implements the NotificationV1NotificationListResponseNotificationNotificationType interface. + */ +function instanceOfNotificationV1NotificationListResponseNotificationNotificationType(value) { + if (!('description' in value) || value['description'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function NotificationV1NotificationListResponseNotificationNotificationTypeFromJSON(json) { + return NotificationV1NotificationListResponseNotificationNotificationTypeFromJSONTyped(json, false); +} +function NotificationV1NotificationListResponseNotificationNotificationTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'], + 'type': (0, NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum_1.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON)(json['type']), + }; +} +function NotificationV1NotificationListResponseNotificationNotificationTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'type': (0, NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum_1.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.d.ts b/dist/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.d.ts new file mode 100644 index 0000000..1f23d02 --- /dev/null +++ b/dist/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип уведомления: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @export + */ +export declare const NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum: { + readonly NEW_MESSAGE: "TYPE_NEW_MESSAGE"; + readonly UPDATE_MESSAGE: "TYPE_UPDATE_MESSAGE"; + readonly MESSAGE_READ: "TYPE_MESSAGE_READ"; + readonly CHAT_CLOSED: "TYPE_CHAT_CLOSED"; + readonly NEW_POSTING: "TYPE_NEW_POSTING"; + readonly POSTING_CANCELLED: "TYPE_POSTING_CANCELLED"; + readonly STATE_CHANGED: "TYPE_STATE_CHANGED"; + readonly DELIVERY_DATE_CHANGED: "TYPE_DELIVERY_DATE_CHANGED"; + readonly CUTOFF_DATE_CHANGED: "TYPE_CUTOFF_DATE_CHANGED"; + readonly CREATE_ITEM: "TYPE_CREATE_ITEM"; + readonly UPDATE_ITEM: "TYPE_UPDATE_ITEM"; + readonly CREATE_OR_UPDATE_ITEM: "TYPE_CREATE_OR_UPDATE_ITEM"; + readonly STOCKS_CHANGED: "TYPE_STOCKS_CHANGED"; + readonly FBO_POSTING_NEW: "TYPE_FBO_POSTING_NEW"; + readonly FBO_POSTING_CANCELLED: "TYPE_FBO_POSTING_CANCELLED"; + readonly FBO_POSTING_STATE_CHANGED: "TYPE_FBO_POSTING_STATE_CHANGED"; + readonly FBO_POSTING_DELIVERY_DATE_CHANGED: "TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED"; + readonly FBO_STOCKS_CHANGED: "TYPE_FBO_STOCKS_CHANGED"; + readonly ORDER_NEW: "TYPE_ORDER_NEW"; + readonly ORDER_CANCELLED: "TYPE_ORDER_CANCELLED"; + readonly ORDER_STATE_CHANGED: "TYPE_ORDER_STATE_CHANGED"; +}; +export type NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum = typeof NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum[keyof typeof NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum]; +export declare function instanceOfNotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum(value: any): boolean; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON(json: any): NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum; +export declare function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON(value?: NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum | null): any; diff --git a/dist/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.js b/dist/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.js new file mode 100644 index 0000000..0fff2d2 --- /dev/null +++ b/dist/models/NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum.js @@ -0,0 +1,88 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum = void 0; +exports.instanceOfNotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum = instanceOfNotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum; +exports.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON = NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON; +exports.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSONTyped = NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSONTyped; +exports.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON = NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON; +/** + * Тип уведомления: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @export + */ +exports.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum = { + NEW_MESSAGE: 'TYPE_NEW_MESSAGE', + UPDATE_MESSAGE: 'TYPE_UPDATE_MESSAGE', + MESSAGE_READ: 'TYPE_MESSAGE_READ', + CHAT_CLOSED: 'TYPE_CHAT_CLOSED', + NEW_POSTING: 'TYPE_NEW_POSTING', + POSTING_CANCELLED: 'TYPE_POSTING_CANCELLED', + STATE_CHANGED: 'TYPE_STATE_CHANGED', + DELIVERY_DATE_CHANGED: 'TYPE_DELIVERY_DATE_CHANGED', + CUTOFF_DATE_CHANGED: 'TYPE_CUTOFF_DATE_CHANGED', + CREATE_ITEM: 'TYPE_CREATE_ITEM', + UPDATE_ITEM: 'TYPE_UPDATE_ITEM', + CREATE_OR_UPDATE_ITEM: 'TYPE_CREATE_OR_UPDATE_ITEM', + STOCKS_CHANGED: 'TYPE_STOCKS_CHANGED', + FBO_POSTING_NEW: 'TYPE_FBO_POSTING_NEW', + FBO_POSTING_CANCELLED: 'TYPE_FBO_POSTING_CANCELLED', + FBO_POSTING_STATE_CHANGED: 'TYPE_FBO_POSTING_STATE_CHANGED', + FBO_POSTING_DELIVERY_DATE_CHANGED: 'TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED', + FBO_STOCKS_CHANGED: 'TYPE_FBO_STOCKS_CHANGED', + ORDER_NEW: 'TYPE_ORDER_NEW', + ORDER_CANCELLED: 'TYPE_ORDER_CANCELLED', + ORDER_STATE_CHANGED: 'TYPE_ORDER_STATE_CHANGED' +}; +function instanceOfNotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum(value) { + for (const key in exports.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum, key)) { + if (exports.NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSON(json) { + return NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSONTyped(json, false); +} +function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/NotificationV1SetNotificationRequest.d.ts b/dist/models/NotificationV1SetNotificationRequest.d.ts new file mode 100644 index 0000000..923bd66 --- /dev/null +++ b/dist/models/NotificationV1SetNotificationRequest.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1SetNotificationRequestTypeEnum } from './NotificationV1SetNotificationRequestTypeEnum'; +/** + * + * @export + * @interface NotificationV1SetNotificationRequest + */ +export interface NotificationV1SetNotificationRequest { + /** + * Типы уведомлений: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @type {Array} + * @memberof NotificationV1SetNotificationRequest + */ + types: Array; + /** + * URL-адрес. + * @type {string} + * @memberof NotificationV1SetNotificationRequest + */ + url: string; +} +/** + * Check if a given object implements the NotificationV1SetNotificationRequest interface. + */ +export declare function instanceOfNotificationV1SetNotificationRequest(value: object): value is NotificationV1SetNotificationRequest; +export declare function NotificationV1SetNotificationRequestFromJSON(json: any): NotificationV1SetNotificationRequest; +export declare function NotificationV1SetNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1SetNotificationRequest; +export declare function NotificationV1SetNotificationRequestToJSON(value?: NotificationV1SetNotificationRequest | null): any; diff --git a/dist/models/NotificationV1SetNotificationRequest.js b/dist/models/NotificationV1SetNotificationRequest.js new file mode 100644 index 0000000..41c387d --- /dev/null +++ b/dist/models/NotificationV1SetNotificationRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1SetNotificationRequest = instanceOfNotificationV1SetNotificationRequest; +exports.NotificationV1SetNotificationRequestFromJSON = NotificationV1SetNotificationRequestFromJSON; +exports.NotificationV1SetNotificationRequestFromJSONTyped = NotificationV1SetNotificationRequestFromJSONTyped; +exports.NotificationV1SetNotificationRequestToJSON = NotificationV1SetNotificationRequestToJSON; +const NotificationV1SetNotificationRequestTypeEnum_1 = require("./NotificationV1SetNotificationRequestTypeEnum"); +/** + * Check if a given object implements the NotificationV1SetNotificationRequest interface. + */ +function instanceOfNotificationV1SetNotificationRequest(value) { + if (!('types' in value) || value['types'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +function NotificationV1SetNotificationRequestFromJSON(json) { + return NotificationV1SetNotificationRequestFromJSONTyped(json, false); +} +function NotificationV1SetNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'types': (json['types'].map(NotificationV1SetNotificationRequestTypeEnum_1.NotificationV1SetNotificationRequestTypeEnumFromJSON)), + 'url': json['url'], + }; +} +function NotificationV1SetNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'types': (value['types'].map(NotificationV1SetNotificationRequestTypeEnum_1.NotificationV1SetNotificationRequestTypeEnumToJSON)), + 'url': value['url'], + }; +} diff --git a/dist/models/NotificationV1SetNotificationRequestTypeEnum.d.ts b/dist/models/NotificationV1SetNotificationRequestTypeEnum.d.ts new file mode 100644 index 0000000..bd95cfb --- /dev/null +++ b/dist/models/NotificationV1SetNotificationRequestTypeEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const NotificationV1SetNotificationRequestTypeEnum: { + readonly NEW_MESSAGE: "TYPE_NEW_MESSAGE"; + readonly UPDATE_MESSAGE: "TYPE_UPDATE_MESSAGE"; + readonly MESSAGE_READ: "TYPE_MESSAGE_READ"; + readonly CHAT_CLOSED: "TYPE_CHAT_CLOSED"; + readonly NEW_POSTING: "TYPE_NEW_POSTING"; + readonly POSTING_CANCELLED: "TYPE_POSTING_CANCELLED"; + readonly STATE_CHANGED: "TYPE_STATE_CHANGED"; + readonly DELIVERY_DATE_CHANGED: "TYPE_DELIVERY_DATE_CHANGED"; + readonly CUTOFF_DATE_CHANGED: "TYPE_CUTOFF_DATE_CHANGED"; + readonly CREATE_ITEM: "TYPE_CREATE_ITEM"; + readonly UPDATE_ITEM: "TYPE_UPDATE_ITEM"; + readonly CREATE_OR_UPDATE_ITEM: "TYPE_CREATE_OR_UPDATE_ITEM"; + readonly STOCKS_CHANGED: "TYPE_STOCKS_CHANGED"; + readonly FBO_POSTING_NEW: "TYPE_FBO_POSTING_NEW"; + readonly FBO_POSTING_CANCELLED: "TYPE_FBO_POSTING_CANCELLED"; + readonly FBO_POSTING_STATE_CHANGED: "TYPE_FBO_POSTING_STATE_CHANGED"; + readonly FBO_POSTING_DELIVERY_DATE_CHANGED: "TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED"; + readonly FBO_STOCKS_CHANGED: "TYPE_FBO_STOCKS_CHANGED"; + readonly ORDER_NEW: "TYPE_ORDER_NEW"; + readonly ORDER_CANCELLED: "TYPE_ORDER_CANCELLED"; + readonly ORDER_STATE_CHANGED: "TYPE_ORDER_STATE_CHANGED"; +}; +export type NotificationV1SetNotificationRequestTypeEnum = typeof NotificationV1SetNotificationRequestTypeEnum[keyof typeof NotificationV1SetNotificationRequestTypeEnum]; +export declare function instanceOfNotificationV1SetNotificationRequestTypeEnum(value: any): boolean; +export declare function NotificationV1SetNotificationRequestTypeEnumFromJSON(json: any): NotificationV1SetNotificationRequestTypeEnum; +export declare function NotificationV1SetNotificationRequestTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1SetNotificationRequestTypeEnum; +export declare function NotificationV1SetNotificationRequestTypeEnumToJSON(value?: NotificationV1SetNotificationRequestTypeEnum | null): any; diff --git a/dist/models/NotificationV1SetNotificationRequestTypeEnum.js b/dist/models/NotificationV1SetNotificationRequestTypeEnum.js new file mode 100644 index 0000000..caeb6dc --- /dev/null +++ b/dist/models/NotificationV1SetNotificationRequestTypeEnum.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NotificationV1SetNotificationRequestTypeEnum = void 0; +exports.instanceOfNotificationV1SetNotificationRequestTypeEnum = instanceOfNotificationV1SetNotificationRequestTypeEnum; +exports.NotificationV1SetNotificationRequestTypeEnumFromJSON = NotificationV1SetNotificationRequestTypeEnumFromJSON; +exports.NotificationV1SetNotificationRequestTypeEnumFromJSONTyped = NotificationV1SetNotificationRequestTypeEnumFromJSONTyped; +exports.NotificationV1SetNotificationRequestTypeEnumToJSON = NotificationV1SetNotificationRequestTypeEnumToJSON; +/** + * + * @export + */ +exports.NotificationV1SetNotificationRequestTypeEnum = { + NEW_MESSAGE: 'TYPE_NEW_MESSAGE', + UPDATE_MESSAGE: 'TYPE_UPDATE_MESSAGE', + MESSAGE_READ: 'TYPE_MESSAGE_READ', + CHAT_CLOSED: 'TYPE_CHAT_CLOSED', + NEW_POSTING: 'TYPE_NEW_POSTING', + POSTING_CANCELLED: 'TYPE_POSTING_CANCELLED', + STATE_CHANGED: 'TYPE_STATE_CHANGED', + DELIVERY_DATE_CHANGED: 'TYPE_DELIVERY_DATE_CHANGED', + CUTOFF_DATE_CHANGED: 'TYPE_CUTOFF_DATE_CHANGED', + CREATE_ITEM: 'TYPE_CREATE_ITEM', + UPDATE_ITEM: 'TYPE_UPDATE_ITEM', + CREATE_OR_UPDATE_ITEM: 'TYPE_CREATE_OR_UPDATE_ITEM', + STOCKS_CHANGED: 'TYPE_STOCKS_CHANGED', + FBO_POSTING_NEW: 'TYPE_FBO_POSTING_NEW', + FBO_POSTING_CANCELLED: 'TYPE_FBO_POSTING_CANCELLED', + FBO_POSTING_STATE_CHANGED: 'TYPE_FBO_POSTING_STATE_CHANGED', + FBO_POSTING_DELIVERY_DATE_CHANGED: 'TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED', + FBO_STOCKS_CHANGED: 'TYPE_FBO_STOCKS_CHANGED', + ORDER_NEW: 'TYPE_ORDER_NEW', + ORDER_CANCELLED: 'TYPE_ORDER_CANCELLED', + ORDER_STATE_CHANGED: 'TYPE_ORDER_STATE_CHANGED' +}; +function instanceOfNotificationV1SetNotificationRequestTypeEnum(value) { + for (const key in exports.NotificationV1SetNotificationRequestTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.NotificationV1SetNotificationRequestTypeEnum, key)) { + if (exports.NotificationV1SetNotificationRequestTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function NotificationV1SetNotificationRequestTypeEnumFromJSON(json) { + return NotificationV1SetNotificationRequestTypeEnumFromJSONTyped(json, false); +} +function NotificationV1SetNotificationRequestTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function NotificationV1SetNotificationRequestTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/NotificationV1UpdateNotificationRequest.d.ts b/dist/models/NotificationV1UpdateNotificationRequest.d.ts new file mode 100644 index 0000000..2fa8e95 --- /dev/null +++ b/dist/models/NotificationV1UpdateNotificationRequest.d.ts @@ -0,0 +1,66 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { NotificationV1UpdateNotificationRequestTypeEnum } from './NotificationV1UpdateNotificationRequestTypeEnum'; +/** + * + * @export + * @interface NotificationV1UpdateNotificationRequest + */ +export interface NotificationV1UpdateNotificationRequest { + /** + * Идентификатор URL-адреса. + * @type {number} + * @memberof NotificationV1UpdateNotificationRequest + */ + id: number; + /** + * Типы уведомлений: + * - `TYPE_NEW_MESSAGE` — новое сообщение в чате; + * - `TYPE_UPDATE_MESSAGE` — изменение сообщения в чате; + * - `TYPE_MESSAGE_READ` — ваше сообщение прочитано покупателем или поддержкой; + * - `TYPE_CHAT_CLOSED` — чат закрыт; + * - `TYPE_NEW_POSTING` — новое отправление; + * - `TYPE_POSTING_CANCELLED` — отмена отправления; + * - `TYPE_STATE_CHANGED` — изменение статуса отправления; + * - `TYPE_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления; + * - `TYPE_CUTOFF_DATE_CHANGED` — изменение даты отгрузки отправления; + * - `TYPE_CREATE_ITEM` — создание товара или ошибка при его создании; + * - `TYPE_UPDATE_ITEM` — обновление товара или ошибка при обновлении; + * - `TYPE_CREATE_OR_UPDATE_ITEM` — создание и обновление товара или ошибка в процессе; + * - `TYPE_STOCKS_CHANGED` — изменение остатков на складах продавца; + * - `TYPE_FBO_POSTING_NEW` — новое отправление FBO; + * - `TYPE_FBO_POSTING_CANCELLED` — отмена отправления FBO; + * - `TYPE_FBO_POSTING_STATE_CHANGED` — изменение статуса отправления FBO; + * - `TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED` — изменение даты доставки отправления FBO; + * - `TYPE_FBO_STOCKS_CHANGED` — изменение остатков на складах Ozon; + * - `TYPE_ORDER_NEW` — новый заказ; + * - `TYPE_ORDER_CANCELLED` — отмена заказа; + * - `TYPE_ORDER_STATE_CHANGED` — изменение статуса заказа. + * + * @type {Array} + * @memberof NotificationV1UpdateNotificationRequest + */ + types?: Array; + /** + * Новый URL-адрес. + * @type {string} + * @memberof NotificationV1UpdateNotificationRequest + */ + url?: string; +} +/** + * Check if a given object implements the NotificationV1UpdateNotificationRequest interface. + */ +export declare function instanceOfNotificationV1UpdateNotificationRequest(value: object): value is NotificationV1UpdateNotificationRequest; +export declare function NotificationV1UpdateNotificationRequestFromJSON(json: any): NotificationV1UpdateNotificationRequest; +export declare function NotificationV1UpdateNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1UpdateNotificationRequest; +export declare function NotificationV1UpdateNotificationRequestToJSON(value?: NotificationV1UpdateNotificationRequest | null): any; diff --git a/dist/models/NotificationV1UpdateNotificationRequest.js b/dist/models/NotificationV1UpdateNotificationRequest.js new file mode 100644 index 0000000..ad99caa --- /dev/null +++ b/dist/models/NotificationV1UpdateNotificationRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNotificationV1UpdateNotificationRequest = instanceOfNotificationV1UpdateNotificationRequest; +exports.NotificationV1UpdateNotificationRequestFromJSON = NotificationV1UpdateNotificationRequestFromJSON; +exports.NotificationV1UpdateNotificationRequestFromJSONTyped = NotificationV1UpdateNotificationRequestFromJSONTyped; +exports.NotificationV1UpdateNotificationRequestToJSON = NotificationV1UpdateNotificationRequestToJSON; +const NotificationV1UpdateNotificationRequestTypeEnum_1 = require("./NotificationV1UpdateNotificationRequestTypeEnum"); +/** + * Check if a given object implements the NotificationV1UpdateNotificationRequest interface. + */ +function instanceOfNotificationV1UpdateNotificationRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function NotificationV1UpdateNotificationRequestFromJSON(json) { + return NotificationV1UpdateNotificationRequestFromJSONTyped(json, false); +} +function NotificationV1UpdateNotificationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'types': json['types'] == null ? undefined : (json['types'].map(NotificationV1UpdateNotificationRequestTypeEnum_1.NotificationV1UpdateNotificationRequestTypeEnumFromJSON)), + 'url': json['url'] == null ? undefined : json['url'], + }; +} +function NotificationV1UpdateNotificationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'types': value['types'] == null ? undefined : (value['types'].map(NotificationV1UpdateNotificationRequestTypeEnum_1.NotificationV1UpdateNotificationRequestTypeEnumToJSON)), + 'url': value['url'], + }; +} diff --git a/dist/models/NotificationV1UpdateNotificationRequestTypeEnum.d.ts b/dist/models/NotificationV1UpdateNotificationRequestTypeEnum.d.ts new file mode 100644 index 0000000..49468eb --- /dev/null +++ b/dist/models/NotificationV1UpdateNotificationRequestTypeEnum.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const NotificationV1UpdateNotificationRequestTypeEnum: { + readonly NEW_MESSAGE: "TYPE_NEW_MESSAGE"; + readonly UPDATE_MESSAGE: "TYPE_UPDATE_MESSAGE"; + readonly MESSAGE_READ: "TYPE_MESSAGE_READ"; + readonly CHAT_CLOSED: "TYPE_CHAT_CLOSED"; + readonly NEW_POSTING: "TYPE_NEW_POSTING"; + readonly POSTING_CANCELLED: "TYPE_POSTING_CANCELLED"; + readonly STATE_CHANGED: "TYPE_STATE_CHANGED"; + readonly DELIVERY_DATE_CHANGED: "TYPE_DELIVERY_DATE_CHANGED"; + readonly CUTOFF_DATE_CHANGED: "TYPE_CUTOFF_DATE_CHANGED"; + readonly CREATE_ITEM: "TYPE_CREATE_ITEM"; + readonly UPDATE_ITEM: "TYPE_UPDATE_ITEM"; + readonly CREATE_OR_UPDATE_ITEM: "TYPE_CREATE_OR_UPDATE_ITEM"; + readonly STOCKS_CHANGED: "TYPE_STOCKS_CHANGED"; + readonly FBO_POSTING_NEW: "TYPE_FBO_POSTING_NEW"; + readonly FBO_POSTING_CANCELLED: "TYPE_FBO_POSTING_CANCELLED"; + readonly FBO_POSTING_STATE_CHANGED: "TYPE_FBO_POSTING_STATE_CHANGED"; + readonly FBO_POSTING_DELIVERY_DATE_CHANGED: "TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED"; + readonly FBO_STOCKS_CHANGED: "TYPE_FBO_STOCKS_CHANGED"; + readonly ORDER_NEW: "TYPE_ORDER_NEW"; + readonly ORDER_CANCELLED: "TYPE_ORDER_CANCELLED"; + readonly ORDER_STATE_CHANGED: "TYPE_ORDER_STATE_CHANGED"; +}; +export type NotificationV1UpdateNotificationRequestTypeEnum = typeof NotificationV1UpdateNotificationRequestTypeEnum[keyof typeof NotificationV1UpdateNotificationRequestTypeEnum]; +export declare function instanceOfNotificationV1UpdateNotificationRequestTypeEnum(value: any): boolean; +export declare function NotificationV1UpdateNotificationRequestTypeEnumFromJSON(json: any): NotificationV1UpdateNotificationRequestTypeEnum; +export declare function NotificationV1UpdateNotificationRequestTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationV1UpdateNotificationRequestTypeEnum; +export declare function NotificationV1UpdateNotificationRequestTypeEnumToJSON(value?: NotificationV1UpdateNotificationRequestTypeEnum | null): any; diff --git a/dist/models/NotificationV1UpdateNotificationRequestTypeEnum.js b/dist/models/NotificationV1UpdateNotificationRequestTypeEnum.js new file mode 100644 index 0000000..0f6005d --- /dev/null +++ b/dist/models/NotificationV1UpdateNotificationRequestTypeEnum.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NotificationV1UpdateNotificationRequestTypeEnum = void 0; +exports.instanceOfNotificationV1UpdateNotificationRequestTypeEnum = instanceOfNotificationV1UpdateNotificationRequestTypeEnum; +exports.NotificationV1UpdateNotificationRequestTypeEnumFromJSON = NotificationV1UpdateNotificationRequestTypeEnumFromJSON; +exports.NotificationV1UpdateNotificationRequestTypeEnumFromJSONTyped = NotificationV1UpdateNotificationRequestTypeEnumFromJSONTyped; +exports.NotificationV1UpdateNotificationRequestTypeEnumToJSON = NotificationV1UpdateNotificationRequestTypeEnumToJSON; +/** + * + * @export + */ +exports.NotificationV1UpdateNotificationRequestTypeEnum = { + NEW_MESSAGE: 'TYPE_NEW_MESSAGE', + UPDATE_MESSAGE: 'TYPE_UPDATE_MESSAGE', + MESSAGE_READ: 'TYPE_MESSAGE_READ', + CHAT_CLOSED: 'TYPE_CHAT_CLOSED', + NEW_POSTING: 'TYPE_NEW_POSTING', + POSTING_CANCELLED: 'TYPE_POSTING_CANCELLED', + STATE_CHANGED: 'TYPE_STATE_CHANGED', + DELIVERY_DATE_CHANGED: 'TYPE_DELIVERY_DATE_CHANGED', + CUTOFF_DATE_CHANGED: 'TYPE_CUTOFF_DATE_CHANGED', + CREATE_ITEM: 'TYPE_CREATE_ITEM', + UPDATE_ITEM: 'TYPE_UPDATE_ITEM', + CREATE_OR_UPDATE_ITEM: 'TYPE_CREATE_OR_UPDATE_ITEM', + STOCKS_CHANGED: 'TYPE_STOCKS_CHANGED', + FBO_POSTING_NEW: 'TYPE_FBO_POSTING_NEW', + FBO_POSTING_CANCELLED: 'TYPE_FBO_POSTING_CANCELLED', + FBO_POSTING_STATE_CHANGED: 'TYPE_FBO_POSTING_STATE_CHANGED', + FBO_POSTING_DELIVERY_DATE_CHANGED: 'TYPE_FBO_POSTING_DELIVERY_DATE_CHANGED', + FBO_STOCKS_CHANGED: 'TYPE_FBO_STOCKS_CHANGED', + ORDER_NEW: 'TYPE_ORDER_NEW', + ORDER_CANCELLED: 'TYPE_ORDER_CANCELLED', + ORDER_STATE_CHANGED: 'TYPE_ORDER_STATE_CHANGED' +}; +function instanceOfNotificationV1UpdateNotificationRequestTypeEnum(value) { + for (const key in exports.NotificationV1UpdateNotificationRequestTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.NotificationV1UpdateNotificationRequestTypeEnum, key)) { + if (exports.NotificationV1UpdateNotificationRequestTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function NotificationV1UpdateNotificationRequestTypeEnumFromJSON(json) { + return NotificationV1UpdateNotificationRequestTypeEnumFromJSONTyped(json, false); +} +function NotificationV1UpdateNotificationRequestTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function NotificationV1UpdateNotificationRequestTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/OperationItem.d.ts b/dist/models/OperationItem.d.ts new file mode 100644 index 0000000..3508677 --- /dev/null +++ b/dist/models/OperationItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface OperationItem + */ +export interface OperationItem { + /** + * Название товара. + * @type {string} + * @memberof OperationItem + */ + name?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof OperationItem + */ + sku?: number; +} +/** + * Check if a given object implements the OperationItem interface. + */ +export declare function instanceOfOperationItem(value: object): value is OperationItem; +export declare function OperationItemFromJSON(json: any): OperationItem; +export declare function OperationItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationItem; +export declare function OperationItemToJSON(value?: OperationItem | null): any; diff --git a/dist/models/OperationItem.js b/dist/models/OperationItem.js new file mode 100644 index 0000000..e814f47 --- /dev/null +++ b/dist/models/OperationItem.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOperationItem = instanceOfOperationItem; +exports.OperationItemFromJSON = OperationItemFromJSON; +exports.OperationItemFromJSONTyped = OperationItemFromJSONTyped; +exports.OperationItemToJSON = OperationItemToJSON; +/** + * Check if a given object implements the OperationItem interface. + */ +function instanceOfOperationItem(value) { + return true; +} +function OperationItemFromJSON(json) { + return OperationItemFromJSONTyped(json, false); +} +function OperationItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function OperationItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/OperationPosting.d.ts b/dist/models/OperationPosting.d.ts new file mode 100644 index 0000000..a74cb60 --- /dev/null +++ b/dist/models/OperationPosting.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отправлении. + * @export + * @interface OperationPosting + */ +export interface OperationPosting { + /** + * Схема доставки: + * - `FBO` — доставка со склада Ozon, + * - `FBS` — доставка со своего склада, + * - `CROSSBORDER` — доставка из-за рубежа, + * - `RFBS` — доставка по выбору продавца, + * - `FBP` — доставка с партнёрских складов Ozon, + * - `FBOECONOMY` — доставка эконом-товаров со склада Ozon, + * - `FBSECONOMY` — доставка эконом-товаров со своего склада. + * + * @type {string} + * @memberof OperationPosting + */ + delivery_schema?: string; + /** + * Дата принятия отправления в обработку. + * @type {string} + * @memberof OperationPosting + */ + order_date?: string; + /** + * Номер отправления. + * @type {string} + * @memberof OperationPosting + */ + posting_number?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof OperationPosting + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the OperationPosting interface. + */ +export declare function instanceOfOperationPosting(value: object): value is OperationPosting; +export declare function OperationPostingFromJSON(json: any): OperationPosting; +export declare function OperationPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationPosting; +export declare function OperationPostingToJSON(value?: OperationPosting | null): any; diff --git a/dist/models/OperationPosting.js b/dist/models/OperationPosting.js new file mode 100644 index 0000000..4029f6e --- /dev/null +++ b/dist/models/OperationPosting.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOperationPosting = instanceOfOperationPosting; +exports.OperationPostingFromJSON = OperationPostingFromJSON; +exports.OperationPostingFromJSONTyped = OperationPostingFromJSONTyped; +exports.OperationPostingToJSON = OperationPostingToJSON; +/** + * Check if a given object implements the OperationPosting interface. + */ +function instanceOfOperationPosting(value) { + return true; +} +function OperationPostingFromJSON(json) { + return OperationPostingFromJSONTyped(json, false); +} +function OperationPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'order_date': json['order_date'] == null ? undefined : json['order_date'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function OperationPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_schema': value['delivery_schema'], + 'order_date': value['order_date'], + 'posting_number': value['posting_number'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/OperationService.d.ts b/dist/models/OperationService.d.ts new file mode 100644 index 0000000..6be1d73 --- /dev/null +++ b/dist/models/OperationService.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface OperationService + */ +export interface OperationService { + /** + * Название услуги: + * - `MarketplaceNotDeliveredCostItem` — возврат невостребованного товара от покупателя на склад. + * - `MarketplaceReturnAfterDeliveryCostItem` — возврат от покупателя на склад после доставки. + * - `MarketplaceDeliveryCostItem` — доставка товара до покупателя. + * - `MarketplaceSaleReviewsItem` — приобретение отзывов на платформе. + * - `ItemAdvertisementForSupplierLogistic` — доставка товаров на склад Ozon — кросс-докинг. + * - `OperationMarketplaceServiceStorage` — размещения товаров. + * - `MarketplaceMarketingActionCostItem` — продвижение товаров. + * - `MarketplaceServiceItemInstallment` — продвижениe и продажа в рассрочку. + * - `MarketplaceServiceItemMarkingItems` — обязательная маркировка товаров. + * - `MarketplaceServiceItemFlexiblePaymentSchedule` — гибкий график выплат. + * - `MarketplaceServiceItemReturnFromStock` — комплектация товаров для вывоза продавцом. + * - `ItemAdvertisementForSupplierLogisticSeller` — транспортно-экспедиционные услуги. + * - `ItemAgentServiceStarsMembership` — вознаграждение за услугу [«Звёздные товары»](https://s.ozon.ru/e7NlR6b). + * - `MarketplaceServiceItemDelivToCustomer` — последняя миля. + * - `MarketplaceServiceItemDirectFlowTrans` — магистраль. + * - `MarketplaceServiceItemDropoffFF` — обработка отправления. + * - `MarketplaceServiceItemDropoffPVZ` — обработка отправления. + * - `MarketplaceServiceItemDropoffSC` — обработка отправления. + * - `MarketplaceServiceItemFulfillment` — сборка заказа. + * - `MarketplaceServiceItemPickup` — выезд транспортного средства по адресу продавца для забора отправлений — Pick-up. + * - `MarketplaceServiceItemReturnAfterDelivToCustomer` — обработка возврата. + * - `MarketplaceServiceItemReturnFlowTrans` — обратная магистраль. + * - `MarketplaceServiceItemReturnNotDelivToCustomer` — обработка отмен. + * - `MarketplaceServiceItemReturnPartGoodsCustomer` — обработка невыкупа. + * - `MarketplaceRedistributionOfAcquiringOperation` — оплата эквайринга. + * - `MarketplaceReturnStorageServiceAtThePickupPointFbsItem` — краткосрочное размещение возврата FBS. + * - `MarketplaceReturnStorageServiceInTheWarehouseFbsItem` — долгосрочное размещение возврата FBS. + * - `MarketplaceServiceItemDeliveryKGT` — доставка крупногабаритного товара (КГТ). + * - `MarketplaceServiceItemDirectFlowLogistic` — логистика. + * - `MarketplaceServiceItemReturnFlowLogistic` — обратная логистика. + * - `MarketplaceServicePremiumCashbackIndividualPoints` — услуга продвижения «Бонусы продавца». + * - `MarketplaceServicePremiumPromotion` — услуга продвижение Premium, фиксированная комиссия. + * - `OperationMarketplaceWithHoldingForUndeliverableGoods` — удержание за недовложение товара. + * - `MarketplaceServiceItemDropoffPPZ` — услуга drop-off в пункте приёма заказов. + * - `MarketplaceServiceItemRedistributionReturnsPVZ` — перевыставление возвратов на ПВЗ. + * - `OperationMarketplaceAgencyFeeAggregator3PLGlobal` — тарификация агентской услуги Agregator 3PL Global. + * - `MarketplaceServiceItemDirectFlowLogisticVDC` — логистика вРЦ. + * + * @type {string} + * @memberof OperationService + */ + name?: string; + /** + * Цена. + * @type {number} + * @memberof OperationService + */ + price?: number; +} +/** + * Check if a given object implements the OperationService interface. + */ +export declare function instanceOfOperationService(value: object): value is OperationService; +export declare function OperationServiceFromJSON(json: any): OperationService; +export declare function OperationServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationService; +export declare function OperationServiceToJSON(value?: OperationService | null): any; diff --git a/dist/models/OperationService.js b/dist/models/OperationService.js new file mode 100644 index 0000000..86dd903 --- /dev/null +++ b/dist/models/OperationService.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOperationService = instanceOfOperationService; +exports.OperationServiceFromJSON = OperationServiceFromJSON; +exports.OperationServiceFromJSONTyped = OperationServiceFromJSONTyped; +exports.OperationServiceToJSON = OperationServiceToJSON; +/** + * Check if a given object implements the OperationService interface. + */ +function instanceOfOperationService(value) { + return true; +} +function OperationServiceFromJSON(json) { + return OperationServiceFromJSONTyped(json, false); +} +function OperationServiceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function OperationServiceToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'price': value['price'], + }; +} diff --git a/dist/models/OrderCancelCheckResponsePosting.d.ts b/dist/models/OrderCancelCheckResponsePosting.d.ts new file mode 100644 index 0000000..1758707 --- /dev/null +++ b/dist/models/OrderCancelCheckResponsePosting.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface OrderCancelCheckResponsePosting + */ +export interface OrderCancelCheckResponsePosting { + /** + * `true`, если отправление можно отменить. + * + * @type {boolean} + * @memberof OrderCancelCheckResponsePosting + */ + cancellable?: boolean; + /** + * Идентификатор отправления. + * @type {string} + * @memberof OrderCancelCheckResponsePosting + */ + posting_number?: string; + /** + * Причина, по которой отправление нельзя отменить. + * @type {string} + * @memberof OrderCancelCheckResponsePosting + */ + why_not_cancellable?: string; +} +/** + * Check if a given object implements the OrderCancelCheckResponsePosting interface. + */ +export declare function instanceOfOrderCancelCheckResponsePosting(value: object): value is OrderCancelCheckResponsePosting; +export declare function OrderCancelCheckResponsePostingFromJSON(json: any): OrderCancelCheckResponsePosting; +export declare function OrderCancelCheckResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCancelCheckResponsePosting; +export declare function OrderCancelCheckResponsePostingToJSON(value?: OrderCancelCheckResponsePosting | null): any; diff --git a/dist/models/OrderCancelCheckResponsePosting.js b/dist/models/OrderCancelCheckResponsePosting.js new file mode 100644 index 0000000..472fc55 --- /dev/null +++ b/dist/models/OrderCancelCheckResponsePosting.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderCancelCheckResponsePosting = instanceOfOrderCancelCheckResponsePosting; +exports.OrderCancelCheckResponsePostingFromJSON = OrderCancelCheckResponsePostingFromJSON; +exports.OrderCancelCheckResponsePostingFromJSONTyped = OrderCancelCheckResponsePostingFromJSONTyped; +exports.OrderCancelCheckResponsePostingToJSON = OrderCancelCheckResponsePostingToJSON; +/** + * Check if a given object implements the OrderCancelCheckResponsePosting interface. + */ +function instanceOfOrderCancelCheckResponsePosting(value) { + return true; +} +function OrderCancelCheckResponsePostingFromJSON(json) { + return OrderCancelCheckResponsePostingFromJSONTyped(json, false); +} +function OrderCancelCheckResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellable': json['cancellable'] == null ? undefined : json['cancellable'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'why_not_cancellable': json['why_not_cancellable'] == null ? undefined : json['why_not_cancellable'], + }; +} +function OrderCancelCheckResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellable': value['cancellable'], + 'posting_number': value['posting_number'], + 'why_not_cancellable': value['why_not_cancellable'], + }; +} diff --git a/dist/models/OrderCancelCheckResponsePostingGroup.d.ts b/dist/models/OrderCancelCheckResponsePostingGroup.d.ts new file mode 100644 index 0000000..3dc289d --- /dev/null +++ b/dist/models/OrderCancelCheckResponsePostingGroup.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface OrderCancelCheckResponsePostingGroup + */ +export interface OrderCancelCheckResponsePostingGroup { + /** + * Список отправлений в группе. + * @type {Array} + * @memberof OrderCancelCheckResponsePostingGroup + */ + posting_numbers?: Array; +} +/** + * Check if a given object implements the OrderCancelCheckResponsePostingGroup interface. + */ +export declare function instanceOfOrderCancelCheckResponsePostingGroup(value: object): value is OrderCancelCheckResponsePostingGroup; +export declare function OrderCancelCheckResponsePostingGroupFromJSON(json: any): OrderCancelCheckResponsePostingGroup; +export declare function OrderCancelCheckResponsePostingGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCancelCheckResponsePostingGroup; +export declare function OrderCancelCheckResponsePostingGroupToJSON(value?: OrderCancelCheckResponsePostingGroup | null): any; diff --git a/dist/models/OrderCancelCheckResponsePostingGroup.js b/dist/models/OrderCancelCheckResponsePostingGroup.js new file mode 100644 index 0000000..0ad3ab2 --- /dev/null +++ b/dist/models/OrderCancelCheckResponsePostingGroup.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderCancelCheckResponsePostingGroup = instanceOfOrderCancelCheckResponsePostingGroup; +exports.OrderCancelCheckResponsePostingGroupFromJSON = OrderCancelCheckResponsePostingGroupFromJSON; +exports.OrderCancelCheckResponsePostingGroupFromJSONTyped = OrderCancelCheckResponsePostingGroupFromJSONTyped; +exports.OrderCancelCheckResponsePostingGroupToJSON = OrderCancelCheckResponsePostingGroupToJSON; +/** + * Check if a given object implements the OrderCancelCheckResponsePostingGroup interface. + */ +function instanceOfOrderCancelCheckResponsePostingGroup(value) { + return true; +} +function OrderCancelCheckResponsePostingGroupFromJSON(json) { + return OrderCancelCheckResponsePostingGroupFromJSONTyped(json, false); +} +function OrderCancelCheckResponsePostingGroupFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + }; +} +function OrderCancelCheckResponsePostingGroupToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/models/OrderCreateRequestBuyer.d.ts b/dist/models/OrderCreateRequestBuyer.d.ts new file mode 100644 index 0000000..3d8e9a0 --- /dev/null +++ b/dist/models/OrderCreateRequestBuyer.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о покупателе. + * @export + * @interface OrderCreateRequestBuyer + */ +export interface OrderCreateRequestBuyer { + /** + * Имя. + * @type {string} + * @memberof OrderCreateRequestBuyer + */ + first_name: string; + /** + * Фамилия. + * @type {string} + * @memberof OrderCreateRequestBuyer + */ + last_name: string; + /** + * Отчество. + * @type {string} + * @memberof OrderCreateRequestBuyer + */ + middle_name?: string; + /** + * Номер телефона. + * @type {string} + * @memberof OrderCreateRequestBuyer + */ + phone: string; +} +/** + * Check if a given object implements the OrderCreateRequestBuyer interface. + */ +export declare function instanceOfOrderCreateRequestBuyer(value: object): value is OrderCreateRequestBuyer; +export declare function OrderCreateRequestBuyerFromJSON(json: any): OrderCreateRequestBuyer; +export declare function OrderCreateRequestBuyerFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestBuyer; +export declare function OrderCreateRequestBuyerToJSON(value?: OrderCreateRequestBuyer | null): any; diff --git a/dist/models/OrderCreateRequestBuyer.js b/dist/models/OrderCreateRequestBuyer.js new file mode 100644 index 0000000..f6a93cf --- /dev/null +++ b/dist/models/OrderCreateRequestBuyer.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderCreateRequestBuyer = instanceOfOrderCreateRequestBuyer; +exports.OrderCreateRequestBuyerFromJSON = OrderCreateRequestBuyerFromJSON; +exports.OrderCreateRequestBuyerFromJSONTyped = OrderCreateRequestBuyerFromJSONTyped; +exports.OrderCreateRequestBuyerToJSON = OrderCreateRequestBuyerToJSON; +/** + * Check if a given object implements the OrderCreateRequestBuyer interface. + */ +function instanceOfOrderCreateRequestBuyer(value) { + if (!('first_name' in value) || value['first_name'] === undefined) + return false; + if (!('last_name' in value) || value['last_name'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + return true; +} +function OrderCreateRequestBuyerFromJSON(json) { + return OrderCreateRequestBuyerFromJSONTyped(json, false); +} +function OrderCreateRequestBuyerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'first_name': json['first_name'], + 'last_name': json['last_name'], + 'middle_name': json['middle_name'] == null ? undefined : json['middle_name'], + 'phone': json['phone'], + }; +} +function OrderCreateRequestBuyerToJSON(value) { + if (value == null) { + return value; + } + return { + 'first_name': value['first_name'], + 'last_name': value['last_name'], + 'middle_name': value['middle_name'], + 'phone': value['phone'], + }; +} diff --git a/dist/models/OrderCreateRequestDelivery.d.ts b/dist/models/OrderCreateRequestDelivery.d.ts new file mode 100644 index 0000000..a425486 --- /dev/null +++ b/dist/models/OrderCreateRequestDelivery.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryCourier } from './DeliveryCourier'; +import type { DeliveryPickUp } from './DeliveryPickUp'; +/** + * Информация о доставке. + * @export + * @interface OrderCreateRequestDelivery + */ +export interface OrderCreateRequestDelivery { + /** + * + * @type {DeliveryCourier} + * @memberof OrderCreateRequestDelivery + */ + courier?: DeliveryCourier; + /** + * + * @type {DeliveryPickUp} + * @memberof OrderCreateRequestDelivery + */ + pick_up?: DeliveryPickUp; +} +/** + * Check if a given object implements the OrderCreateRequestDelivery interface. + */ +export declare function instanceOfOrderCreateRequestDelivery(value: object): value is OrderCreateRequestDelivery; +export declare function OrderCreateRequestDeliveryFromJSON(json: any): OrderCreateRequestDelivery; +export declare function OrderCreateRequestDeliveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestDelivery; +export declare function OrderCreateRequestDeliveryToJSON(value?: OrderCreateRequestDelivery | null): any; diff --git a/dist/models/OrderCreateRequestDelivery.js b/dist/models/OrderCreateRequestDelivery.js new file mode 100644 index 0000000..a9f43f3 --- /dev/null +++ b/dist/models/OrderCreateRequestDelivery.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderCreateRequestDelivery = instanceOfOrderCreateRequestDelivery; +exports.OrderCreateRequestDeliveryFromJSON = OrderCreateRequestDeliveryFromJSON; +exports.OrderCreateRequestDeliveryFromJSONTyped = OrderCreateRequestDeliveryFromJSONTyped; +exports.OrderCreateRequestDeliveryToJSON = OrderCreateRequestDeliveryToJSON; +const DeliveryCourier_1 = require("./DeliveryCourier"); +const DeliveryPickUp_1 = require("./DeliveryPickUp"); +/** + * Check if a given object implements the OrderCreateRequestDelivery interface. + */ +function instanceOfOrderCreateRequestDelivery(value) { + return true; +} +function OrderCreateRequestDeliveryFromJSON(json) { + return OrderCreateRequestDeliveryFromJSONTyped(json, false); +} +function OrderCreateRequestDeliveryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier': json['courier'] == null ? undefined : (0, DeliveryCourier_1.DeliveryCourierFromJSON)(json['courier']), + 'pick_up': json['pick_up'] == null ? undefined : (0, DeliveryPickUp_1.DeliveryPickUpFromJSON)(json['pick_up']), + }; +} +function OrderCreateRequestDeliveryToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier': (0, DeliveryCourier_1.DeliveryCourierToJSON)(value['courier']), + 'pick_up': (0, DeliveryPickUp_1.DeliveryPickUpToJSON)(value['pick_up']), + }; +} diff --git a/dist/models/OrderCreateRequestDeliveryPrice.d.ts b/dist/models/OrderCreateRequestDeliveryPrice.d.ts new file mode 100644 index 0000000..781addc --- /dev/null +++ b/dist/models/OrderCreateRequestDeliveryPrice.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена доставки. Чтобы отобразить покупателю бесплатную доставку, не передавайте объект. + * @export + * @interface OrderCreateRequestDeliveryPrice + */ +export interface OrderCreateRequestDeliveryPrice { + /** + * Код валюты. + * @type {string} + * @memberof OrderCreateRequestDeliveryPrice + */ + currency_code?: string; + /** + * Часть стоимости в копейках. + * @type {number} + * @memberof OrderCreateRequestDeliveryPrice + */ + nanos?: number; + /** + * Часть стоимости в рублях. + * @type {number} + * @memberof OrderCreateRequestDeliveryPrice + */ + units?: number; +} +/** + * Check if a given object implements the OrderCreateRequestDeliveryPrice interface. + */ +export declare function instanceOfOrderCreateRequestDeliveryPrice(value: object): value is OrderCreateRequestDeliveryPrice; +export declare function OrderCreateRequestDeliveryPriceFromJSON(json: any): OrderCreateRequestDeliveryPrice; +export declare function OrderCreateRequestDeliveryPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestDeliveryPrice; +export declare function OrderCreateRequestDeliveryPriceToJSON(value?: OrderCreateRequestDeliveryPrice | null): any; diff --git a/dist/models/OrderCreateRequestDeliveryPrice.js b/dist/models/OrderCreateRequestDeliveryPrice.js new file mode 100644 index 0000000..7f444a1 --- /dev/null +++ b/dist/models/OrderCreateRequestDeliveryPrice.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderCreateRequestDeliveryPrice = instanceOfOrderCreateRequestDeliveryPrice; +exports.OrderCreateRequestDeliveryPriceFromJSON = OrderCreateRequestDeliveryPriceFromJSON; +exports.OrderCreateRequestDeliveryPriceFromJSONTyped = OrderCreateRequestDeliveryPriceFromJSONTyped; +exports.OrderCreateRequestDeliveryPriceToJSON = OrderCreateRequestDeliveryPriceToJSON; +/** + * Check if a given object implements the OrderCreateRequestDeliveryPrice interface. + */ +function instanceOfOrderCreateRequestDeliveryPrice(value) { + return true; +} +function OrderCreateRequestDeliveryPriceFromJSON(json) { + return OrderCreateRequestDeliveryPriceFromJSONTyped(json, false); +} +function OrderCreateRequestDeliveryPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'nanos': json['nanos'] == null ? undefined : json['nanos'], + 'units': json['units'] == null ? undefined : json['units'], + }; +} +function OrderCreateRequestDeliveryPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'nanos': value['nanos'], + 'units': value['units'], + }; +} diff --git a/dist/models/OrderCreateRequestPrice.d.ts b/dist/models/OrderCreateRequestPrice.d.ts new file mode 100644 index 0000000..1d3175e --- /dev/null +++ b/dist/models/OrderCreateRequestPrice.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара. + * @export + * @interface OrderCreateRequestPrice + */ +export interface OrderCreateRequestPrice { + /** + * Код валюты. + * @type {string} + * @memberof OrderCreateRequestPrice + */ + currency_code: string; + /** + * Часть стоимости в копейках. + * @type {number} + * @memberof OrderCreateRequestPrice + */ + nanos?: number; + /** + * Часть стоимости в рублях. + * @type {number} + * @memberof OrderCreateRequestPrice + */ + units: number; +} +/** + * Check if a given object implements the OrderCreateRequestPrice interface. + */ +export declare function instanceOfOrderCreateRequestPrice(value: object): value is OrderCreateRequestPrice; +export declare function OrderCreateRequestPriceFromJSON(json: any): OrderCreateRequestPrice; +export declare function OrderCreateRequestPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestPrice; +export declare function OrderCreateRequestPriceToJSON(value?: OrderCreateRequestPrice | null): any; diff --git a/dist/models/OrderCreateRequestPrice.js b/dist/models/OrderCreateRequestPrice.js new file mode 100644 index 0000000..b6def99 --- /dev/null +++ b/dist/models/OrderCreateRequestPrice.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderCreateRequestPrice = instanceOfOrderCreateRequestPrice; +exports.OrderCreateRequestPriceFromJSON = OrderCreateRequestPriceFromJSON; +exports.OrderCreateRequestPriceFromJSONTyped = OrderCreateRequestPriceFromJSONTyped; +exports.OrderCreateRequestPriceToJSON = OrderCreateRequestPriceToJSON; +/** + * Check if a given object implements the OrderCreateRequestPrice interface. + */ +function instanceOfOrderCreateRequestPrice(value) { + if (!('currency_code' in value) || value['currency_code'] === undefined) + return false; + if (!('units' in value) || value['units'] === undefined) + return false; + return true; +} +function OrderCreateRequestPriceFromJSON(json) { + return OrderCreateRequestPriceFromJSONTyped(json, false); +} +function OrderCreateRequestPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'], + 'nanos': json['nanos'] == null ? undefined : json['nanos'], + 'units': json['units'], + }; +} +function OrderCreateRequestPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'nanos': value['nanos'], + 'units': value['units'], + }; +} diff --git a/dist/models/OrderCreateRequestRecipient.d.ts b/dist/models/OrderCreateRequestRecipient.d.ts new file mode 100644 index 0000000..64bbc13 --- /dev/null +++ b/dist/models/OrderCreateRequestRecipient.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о получателе. + * @export + * @interface OrderCreateRequestRecipient + */ +export interface OrderCreateRequestRecipient { + /** + * Имя. + * @type {string} + * @memberof OrderCreateRequestRecipient + */ + recipient_first_name: string; + /** + * Фамилия. + * @type {string} + * @memberof OrderCreateRequestRecipient + */ + recipient_last_name: string; + /** + * Отчество. + * @type {string} + * @memberof OrderCreateRequestRecipient + */ + recipient_middle_name?: string; + /** + * Номер телефона. + * @type {string} + * @memberof OrderCreateRequestRecipient + */ + recipient_phone: string; +} +/** + * Check if a given object implements the OrderCreateRequestRecipient interface. + */ +export declare function instanceOfOrderCreateRequestRecipient(value: object): value is OrderCreateRequestRecipient; +export declare function OrderCreateRequestRecipientFromJSON(json: any): OrderCreateRequestRecipient; +export declare function OrderCreateRequestRecipientFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestRecipient; +export declare function OrderCreateRequestRecipientToJSON(value?: OrderCreateRequestRecipient | null): any; diff --git a/dist/models/OrderCreateRequestRecipient.js b/dist/models/OrderCreateRequestRecipient.js new file mode 100644 index 0000000..c289b0e --- /dev/null +++ b/dist/models/OrderCreateRequestRecipient.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderCreateRequestRecipient = instanceOfOrderCreateRequestRecipient; +exports.OrderCreateRequestRecipientFromJSON = OrderCreateRequestRecipientFromJSON; +exports.OrderCreateRequestRecipientFromJSONTyped = OrderCreateRequestRecipientFromJSONTyped; +exports.OrderCreateRequestRecipientToJSON = OrderCreateRequestRecipientToJSON; +/** + * Check if a given object implements the OrderCreateRequestRecipient interface. + */ +function instanceOfOrderCreateRequestRecipient(value) { + if (!('recipient_first_name' in value) || value['recipient_first_name'] === undefined) + return false; + if (!('recipient_last_name' in value) || value['recipient_last_name'] === undefined) + return false; + if (!('recipient_phone' in value) || value['recipient_phone'] === undefined) + return false; + return true; +} +function OrderCreateRequestRecipientFromJSON(json) { + return OrderCreateRequestRecipientFromJSONTyped(json, false); +} +function OrderCreateRequestRecipientFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'recipient_first_name': json['recipient_first_name'], + 'recipient_last_name': json['recipient_last_name'], + 'recipient_middle_name': json['recipient_middle_name'] == null ? undefined : json['recipient_middle_name'], + 'recipient_phone': json['recipient_phone'], + }; +} +function OrderCreateRequestRecipientToJSON(value) { + if (value == null) { + return value; + } + return { + 'recipient_first_name': value['recipient_first_name'], + 'recipient_last_name': value['recipient_last_name'], + 'recipient_middle_name': value['recipient_middle_name'], + 'recipient_phone': value['recipient_phone'], + }; +} diff --git a/dist/models/OrderCreateRequestSplit.d.ts b/dist/models/OrderCreateRequestSplit.d.ts new file mode 100644 index 0000000..393b7c8 --- /dev/null +++ b/dist/models/OrderCreateRequestSplit.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SplitItem } from './SplitItem'; +import type { SplitDeliveryMethod } from './SplitDeliveryMethod'; +/** + * + * @export + * @interface OrderCreateRequestSplit + */ +export interface OrderCreateRequestSplit { + /** + * + * @type {SplitDeliveryMethod} + * @memberof OrderCreateRequestSplit + */ + delivery_method: SplitDeliveryMethod; + /** + * Товары в отправлении. + * @type {Array} + * @memberof OrderCreateRequestSplit + */ + items: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof OrderCreateRequestSplit + */ + warehouse_id: number; +} +/** + * Check if a given object implements the OrderCreateRequestSplit interface. + */ +export declare function instanceOfOrderCreateRequestSplit(value: object): value is OrderCreateRequestSplit; +export declare function OrderCreateRequestSplitFromJSON(json: any): OrderCreateRequestSplit; +export declare function OrderCreateRequestSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestSplit; +export declare function OrderCreateRequestSplitToJSON(value?: OrderCreateRequestSplit | null): any; diff --git a/dist/models/OrderCreateRequestSplit.js b/dist/models/OrderCreateRequestSplit.js new file mode 100644 index 0000000..35e2d9d --- /dev/null +++ b/dist/models/OrderCreateRequestSplit.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderCreateRequestSplit = instanceOfOrderCreateRequestSplit; +exports.OrderCreateRequestSplitFromJSON = OrderCreateRequestSplitFromJSON; +exports.OrderCreateRequestSplitFromJSONTyped = OrderCreateRequestSplitFromJSONTyped; +exports.OrderCreateRequestSplitToJSON = OrderCreateRequestSplitToJSON; +const SplitItem_1 = require("./SplitItem"); +const SplitDeliveryMethod_1 = require("./SplitDeliveryMethod"); +/** + * Check if a given object implements the OrderCreateRequestSplit interface. + */ +function instanceOfOrderCreateRequestSplit(value) { + if (!('delivery_method' in value) || value['delivery_method'] === undefined) + return false; + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function OrderCreateRequestSplitFromJSON(json) { + return OrderCreateRequestSplitFromJSONTyped(json, false); +} +function OrderCreateRequestSplitFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method': (0, SplitDeliveryMethod_1.SplitDeliveryMethodFromJSON)(json['delivery_method']), + 'items': (json['items'].map(SplitItem_1.SplitItemFromJSON)), + 'warehouse_id': json['warehouse_id'], + }; +} +function OrderCreateRequestSplitToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method': (0, SplitDeliveryMethod_1.SplitDeliveryMethodToJSON)(value['delivery_method']), + 'items': (value['items'].map(SplitItem_1.SplitItemToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/OrderCreateRequestV2DeliverySchemaEnum.d.ts b/dist/models/OrderCreateRequestV2DeliverySchemaEnum.d.ts new file mode 100644 index 0000000..7f8ac2f --- /dev/null +++ b/dist/models/OrderCreateRequestV2DeliverySchemaEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `MIX` — на выбор Ozon; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export declare const OrderCreateRequestV2DeliverySchemaEnum: { + readonly MIX: "MIX"; + readonly FBO: "FBO"; + readonly FBS: "FBS"; +}; +export type OrderCreateRequestV2DeliverySchemaEnum = typeof OrderCreateRequestV2DeliverySchemaEnum[keyof typeof OrderCreateRequestV2DeliverySchemaEnum]; +export declare function instanceOfOrderCreateRequestV2DeliverySchemaEnum(value: any): boolean; +export declare function OrderCreateRequestV2DeliverySchemaEnumFromJSON(json: any): OrderCreateRequestV2DeliverySchemaEnum; +export declare function OrderCreateRequestV2DeliverySchemaEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCreateRequestV2DeliverySchemaEnum; +export declare function OrderCreateRequestV2DeliverySchemaEnumToJSON(value?: OrderCreateRequestV2DeliverySchemaEnum | null): any; diff --git a/dist/models/OrderCreateRequestV2DeliverySchemaEnum.js b/dist/models/OrderCreateRequestV2DeliverySchemaEnum.js new file mode 100644 index 0000000..e89698b --- /dev/null +++ b/dist/models/OrderCreateRequestV2DeliverySchemaEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderCreateRequestV2DeliverySchemaEnum = void 0; +exports.instanceOfOrderCreateRequestV2DeliverySchemaEnum = instanceOfOrderCreateRequestV2DeliverySchemaEnum; +exports.OrderCreateRequestV2DeliverySchemaEnumFromJSON = OrderCreateRequestV2DeliverySchemaEnumFromJSON; +exports.OrderCreateRequestV2DeliverySchemaEnumFromJSONTyped = OrderCreateRequestV2DeliverySchemaEnumFromJSONTyped; +exports.OrderCreateRequestV2DeliverySchemaEnumToJSON = OrderCreateRequestV2DeliverySchemaEnumToJSON; +/** + * Схема доставки: + * - `MIX` — на выбор Ozon; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +exports.OrderCreateRequestV2DeliverySchemaEnum = { + MIX: 'MIX', + FBO: 'FBO', + FBS: 'FBS' +}; +function instanceOfOrderCreateRequestV2DeliverySchemaEnum(value) { + for (const key in exports.OrderCreateRequestV2DeliverySchemaEnum) { + if (Object.prototype.hasOwnProperty.call(exports.OrderCreateRequestV2DeliverySchemaEnum, key)) { + if (exports.OrderCreateRequestV2DeliverySchemaEnum[key] === value) { + return true; + } + } + } + return false; +} +function OrderCreateRequestV2DeliverySchemaEnumFromJSON(json) { + return OrderCreateRequestV2DeliverySchemaEnumFromJSONTyped(json, false); +} +function OrderCreateRequestV2DeliverySchemaEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function OrderCreateRequestV2DeliverySchemaEnumToJSON(value) { + return value; +} diff --git a/dist/models/OrderDropOffWarehouse.d.ts b/dist/models/OrderDropOffWarehouse.d.ts new file mode 100644 index 0000000..2ce6ce4 --- /dev/null +++ b/dist/models/OrderDropOffWarehouse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о пункте отгрузки. + * @export + * @interface OrderDropOffWarehouse + */ +export interface OrderDropOffWarehouse { + /** + * Адрес пункта отгрузки. + * @type {string} + * @memberof OrderDropOffWarehouse + */ + address?: string; + /** + * Название пункта отгрузки. + * @type {string} + * @memberof OrderDropOffWarehouse + */ + name?: string; + /** + * Идентификатор пункта отгрузки. + * @type {number} + * @memberof OrderDropOffWarehouse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the OrderDropOffWarehouse interface. + */ +export declare function instanceOfOrderDropOffWarehouse(value: object): value is OrderDropOffWarehouse; +export declare function OrderDropOffWarehouseFromJSON(json: any): OrderDropOffWarehouse; +export declare function OrderDropOffWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDropOffWarehouse; +export declare function OrderDropOffWarehouseToJSON(value?: OrderDropOffWarehouse | null): any; diff --git a/dist/models/OrderDropOffWarehouse.js b/dist/models/OrderDropOffWarehouse.js new file mode 100644 index 0000000..7530dc0 --- /dev/null +++ b/dist/models/OrderDropOffWarehouse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderDropOffWarehouse = instanceOfOrderDropOffWarehouse; +exports.OrderDropOffWarehouseFromJSON = OrderDropOffWarehouseFromJSON; +exports.OrderDropOffWarehouseFromJSONTyped = OrderDropOffWarehouseFromJSONTyped; +exports.OrderDropOffWarehouseToJSON = OrderDropOffWarehouseToJSON; +/** + * Check if a given object implements the OrderDropOffWarehouse interface. + */ +function instanceOfOrderDropOffWarehouse(value) { + return true; +} +function OrderDropOffWarehouseFromJSON(json) { + return OrderDropOffWarehouseFromJSONTyped(json, false); +} +function OrderDropOffWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function OrderDropOffWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/OrderOrderStateEnum.d.ts b/dist/models/OrderOrderStateEnum.d.ts new file mode 100644 index 0000000..4e2bd8f --- /dev/null +++ b/dist/models/OrderOrderStateEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на поставку: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export declare const OrderOrderStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type OrderOrderStateEnum = typeof OrderOrderStateEnum[keyof typeof OrderOrderStateEnum]; +export declare function instanceOfOrderOrderStateEnum(value: any): boolean; +export declare function OrderOrderStateEnumFromJSON(json: any): OrderOrderStateEnum; +export declare function OrderOrderStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOrderStateEnum; +export declare function OrderOrderStateEnumToJSON(value?: OrderOrderStateEnum | null): any; diff --git a/dist/models/OrderOrderStateEnum.js b/dist/models/OrderOrderStateEnum.js new file mode 100644 index 0000000..1155913 --- /dev/null +++ b/dist/models/OrderOrderStateEnum.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderOrderStateEnum = void 0; +exports.instanceOfOrderOrderStateEnum = instanceOfOrderOrderStateEnum; +exports.OrderOrderStateEnumFromJSON = OrderOrderStateEnumFromJSON; +exports.OrderOrderStateEnumFromJSONTyped = OrderOrderStateEnumFromJSONTyped; +exports.OrderOrderStateEnumToJSON = OrderOrderStateEnumToJSON; +/** + * Статус заявки на поставку: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +exports.OrderOrderStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +function instanceOfOrderOrderStateEnum(value) { + for (const key in exports.OrderOrderStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.OrderOrderStateEnum, key)) { + if (exports.OrderOrderStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function OrderOrderStateEnumFromJSON(json) { + return OrderOrderStateEnumFromJSONTyped(json, false); +} +function OrderOrderStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function OrderOrderStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/OrderOrderTags.d.ts b/dist/models/OrderOrderTags.d.ts new file mode 100644 index 0000000..b4bd14e --- /dev/null +++ b/dist/models/OrderOrderTags.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метки заявки на поставку. + * @export + * @interface OrderOrderTags + */ +export interface OrderOrderTags { + /** + * `true`, если заявка на поставку относится к товарам «Суперэконом». + * + * @type {boolean} + * @memberof OrderOrderTags + */ + is_econom?: boolean; + /** + * `true`, если доступна отгрузка курьером. + * + * @type {boolean} + * @memberof OrderOrderTags + */ + is_pickup?: boolean; + /** + * Признак, что в поставке есть кванты. + * @type {boolean} + * @memberof OrderOrderTags + */ + is_quant?: boolean; + /** + * `true`, если продавец подключён к Super-поставкам. + * + * @type {boolean} + * @memberof OrderOrderTags + */ + is_super_fbo?: boolean; + /** + * `true`, если заявка на поставку виртуальная. + * + * @type {boolean} + * @memberof OrderOrderTags + */ + is_virtual?: boolean; + /** + * Идентификатор исходной поставки. + * @type {number} + * @memberof OrderOrderTags + */ + original_supply_id?: number; + /** + * `true`, если заявка на поставку относится к Super-товарам. + * + * @type {boolean} + * @memberof OrderOrderTags + */ + product_super_fbo?: boolean; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof OrderOrderTags + */ + seller_warehouse_id?: number; +} +/** + * Check if a given object implements the OrderOrderTags interface. + */ +export declare function instanceOfOrderOrderTags(value: object): value is OrderOrderTags; +export declare function OrderOrderTagsFromJSON(json: any): OrderOrderTags; +export declare function OrderOrderTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOrderTags; +export declare function OrderOrderTagsToJSON(value?: OrderOrderTags | null): any; diff --git a/dist/models/OrderOrderTags.js b/dist/models/OrderOrderTags.js new file mode 100644 index 0000000..72dc6a2 --- /dev/null +++ b/dist/models/OrderOrderTags.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderOrderTags = instanceOfOrderOrderTags; +exports.OrderOrderTagsFromJSON = OrderOrderTagsFromJSON; +exports.OrderOrderTagsFromJSONTyped = OrderOrderTagsFromJSONTyped; +exports.OrderOrderTagsToJSON = OrderOrderTagsToJSON; +/** + * Check if a given object implements the OrderOrderTags interface. + */ +function instanceOfOrderOrderTags(value) { + return true; +} +function OrderOrderTagsFromJSON(json) { + return OrderOrderTagsFromJSONTyped(json, false); +} +function OrderOrderTagsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_econom': json['is_econom'] == null ? undefined : json['is_econom'], + 'is_pickup': json['is_pickup'] == null ? undefined : json['is_pickup'], + 'is_quant': json['is_quant'] == null ? undefined : json['is_quant'], + 'is_super_fbo': json['is_super_fbo'] == null ? undefined : json['is_super_fbo'], + 'is_virtual': json['is_virtual'] == null ? undefined : json['is_virtual'], + 'original_supply_id': json['original_supply_id'] == null ? undefined : json['original_supply_id'], + 'product_super_fbo': json['product_super_fbo'] == null ? undefined : json['product_super_fbo'], + 'seller_warehouse_id': json['seller_warehouse_id'] == null ? undefined : json['seller_warehouse_id'], + }; +} +function OrderOrderTagsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_econom': value['is_econom'], + 'is_pickup': value['is_pickup'], + 'is_quant': value['is_quant'], + 'is_super_fbo': value['is_super_fbo'], + 'is_virtual': value['is_virtual'], + 'original_supply_id': value['original_supply_id'], + 'product_super_fbo': value['product_super_fbo'], + 'seller_warehouse_id': value['seller_warehouse_id'], + }; +} diff --git a/dist/models/OrderSupply.d.ts b/dist/models/OrderSupply.d.ts new file mode 100644 index 0000000..b0302d4 --- /dev/null +++ b/dist/models/OrderSupply.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplySupplyTags } from './SupplySupplyTags'; +import type { SupplyStorageWarehouse } from './SupplyStorageWarehouse'; +import type { OrderSupplyStateEnum } from './OrderSupplyStateEnum'; +/** + * + * @export + * @interface OrderSupply + */ +export interface OrderSupply { + /** + * `true`, если поставка кросс-докинг. + * + * @type {boolean} + * @memberof OrderSupply + */ + is_crossdock?: boolean; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof OrderSupply + */ + macrolocal_cluster_id?: number; + /** + * Идентификатор состава поставки. + * @type {string} + * @memberof OrderSupply + */ + bundle_id?: string; + /** + * + * @type {OrderSupplyStateEnum} + * @memberof OrderSupply + */ + state?: OrderSupplyStateEnum; + /** + * + * @type {SupplyStorageWarehouse} + * @memberof OrderSupply + */ + storage_warehouse?: SupplyStorageWarehouse; + /** + * Идентификатор поставки. + * @type {number} + * @memberof OrderSupply + */ + supply_id?: number; + /** + * + * @type {SupplySupplyTags} + * @memberof OrderSupply + */ + supply_tags?: SupplySupplyTags; +} +/** + * Check if a given object implements the OrderSupply interface. + */ +export declare function instanceOfOrderSupply(value: object): value is OrderSupply; +export declare function OrderSupplyFromJSON(json: any): OrderSupply; +export declare function OrderSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderSupply; +export declare function OrderSupplyToJSON(value?: OrderSupply | null): any; diff --git a/dist/models/OrderSupply.js b/dist/models/OrderSupply.js new file mode 100644 index 0000000..fb3394d --- /dev/null +++ b/dist/models/OrderSupply.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderSupply = instanceOfOrderSupply; +exports.OrderSupplyFromJSON = OrderSupplyFromJSON; +exports.OrderSupplyFromJSONTyped = OrderSupplyFromJSONTyped; +exports.OrderSupplyToJSON = OrderSupplyToJSON; +const SupplySupplyTags_1 = require("./SupplySupplyTags"); +const SupplyStorageWarehouse_1 = require("./SupplyStorageWarehouse"); +const OrderSupplyStateEnum_1 = require("./OrderSupplyStateEnum"); +/** + * Check if a given object implements the OrderSupply interface. + */ +function instanceOfOrderSupply(value) { + return true; +} +function OrderSupplyFromJSON(json) { + return OrderSupplyFromJSONTyped(json, false); +} +function OrderSupplyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_crossdock': json['is_crossdock'] == null ? undefined : json['is_crossdock'], + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'state': json['state'] == null ? undefined : (0, OrderSupplyStateEnum_1.OrderSupplyStateEnumFromJSON)(json['state']), + 'storage_warehouse': json['storage_warehouse'] == null ? undefined : (0, SupplyStorageWarehouse_1.SupplyStorageWarehouseFromJSON)(json['storage_warehouse']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'supply_tags': json['supply_tags'] == null ? undefined : (0, SupplySupplyTags_1.SupplySupplyTagsFromJSON)(json['supply_tags']), + }; +} +function OrderSupplyToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_crossdock': value['is_crossdock'], + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'bundle_id': value['bundle_id'], + 'state': (0, OrderSupplyStateEnum_1.OrderSupplyStateEnumToJSON)(value['state']), + 'storage_warehouse': (0, SupplyStorageWarehouse_1.SupplyStorageWarehouseToJSON)(value['storage_warehouse']), + 'supply_id': value['supply_id'], + 'supply_tags': (0, SupplySupplyTags_1.SupplySupplyTagsToJSON)(value['supply_tags']), + }; +} diff --git a/dist/models/OrderSupplyStateEnum.d.ts b/dist/models/OrderSupplyStateEnum.d.ts new file mode 100644 index 0000000..4d57b24 --- /dev/null +++ b/dist/models/OrderSupplyStateEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export declare const OrderSupplyStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type OrderSupplyStateEnum = typeof OrderSupplyStateEnum[keyof typeof OrderSupplyStateEnum]; +export declare function instanceOfOrderSupplyStateEnum(value: any): boolean; +export declare function OrderSupplyStateEnumFromJSON(json: any): OrderSupplyStateEnum; +export declare function OrderSupplyStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderSupplyStateEnum; +export declare function OrderSupplyStateEnumToJSON(value?: OrderSupplyStateEnum | null): any; diff --git a/dist/models/OrderSupplyStateEnum.js b/dist/models/OrderSupplyStateEnum.js new file mode 100644 index 0000000..444c92d --- /dev/null +++ b/dist/models/OrderSupplyStateEnum.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderSupplyStateEnum = void 0; +exports.instanceOfOrderSupplyStateEnum = instanceOfOrderSupplyStateEnum; +exports.OrderSupplyStateEnumFromJSON = OrderSupplyStateEnumFromJSON; +exports.OrderSupplyStateEnumFromJSONTyped = OrderSupplyStateEnumFromJSONTyped; +exports.OrderSupplyStateEnumToJSON = OrderSupplyStateEnumToJSON; +/** + * Статус поставки: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +exports.OrderSupplyStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +function instanceOfOrderSupplyStateEnum(value) { + for (const key in exports.OrderSupplyStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.OrderSupplyStateEnum, key)) { + if (exports.OrderSupplyStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function OrderSupplyStateEnumFromJSON(json) { + return OrderSupplyStateEnumFromJSONTyped(json, false); +} +function OrderSupplyStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function OrderSupplyStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/ParameterAutoStopActionReasonEnum.d.ts b/dist/models/ParameterAutoStopActionReasonEnum.d.ts new file mode 100644 index 0000000..f52ffdb --- /dev/null +++ b/dist/models/ParameterAutoStopActionReasonEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина остановки акции: + * - `UNSPECIFIED` — не определена; + * - `BUDGET_EXCEEDED` — закончился бюджет; + * - `FAST_BUDGET_SPENDING` — быстрый расход бюджета в первые часы; + * - `BUDGET_SPENDING_IS_CRAZY` — быстрый расход бюджета за короткое время. + * + * @export + */ +export declare const ParameterAutoStopActionReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BUDGET_EXCEEDED: "BUDGET_EXCEEDED"; + readonly FAST_BUDGET_SPENDING: "FAST_BUDGET_SPENDING"; + readonly BUDGET_SPENDING_IS_CRAZY: "BUDGET_SPENDING_IS_CRAZY"; +}; +export type ParameterAutoStopActionReasonEnum = typeof ParameterAutoStopActionReasonEnum[keyof typeof ParameterAutoStopActionReasonEnum]; +export declare function instanceOfParameterAutoStopActionReasonEnum(value: any): boolean; +export declare function ParameterAutoStopActionReasonEnumFromJSON(json: any): ParameterAutoStopActionReasonEnum; +export declare function ParameterAutoStopActionReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterAutoStopActionReasonEnum; +export declare function ParameterAutoStopActionReasonEnumToJSON(value?: ParameterAutoStopActionReasonEnum | null): any; diff --git a/dist/models/ParameterAutoStopActionReasonEnum.js b/dist/models/ParameterAutoStopActionReasonEnum.js new file mode 100644 index 0000000..4828e37 --- /dev/null +++ b/dist/models/ParameterAutoStopActionReasonEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ParameterAutoStopActionReasonEnum = void 0; +exports.instanceOfParameterAutoStopActionReasonEnum = instanceOfParameterAutoStopActionReasonEnum; +exports.ParameterAutoStopActionReasonEnumFromJSON = ParameterAutoStopActionReasonEnumFromJSON; +exports.ParameterAutoStopActionReasonEnumFromJSONTyped = ParameterAutoStopActionReasonEnumFromJSONTyped; +exports.ParameterAutoStopActionReasonEnumToJSON = ParameterAutoStopActionReasonEnumToJSON; +/** + * Причина остановки акции: + * - `UNSPECIFIED` — не определена; + * - `BUDGET_EXCEEDED` — закончился бюджет; + * - `FAST_BUDGET_SPENDING` — быстрый расход бюджета в первые часы; + * - `BUDGET_SPENDING_IS_CRAZY` — быстрый расход бюджета за короткое время. + * + * @export + */ +exports.ParameterAutoStopActionReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BUDGET_EXCEEDED: 'BUDGET_EXCEEDED', + FAST_BUDGET_SPENDING: 'FAST_BUDGET_SPENDING', + BUDGET_SPENDING_IS_CRAZY: 'BUDGET_SPENDING_IS_CRAZY' +}; +function instanceOfParameterAutoStopActionReasonEnum(value) { + for (const key in exports.ParameterAutoStopActionReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ParameterAutoStopActionReasonEnum, key)) { + if (exports.ParameterAutoStopActionReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function ParameterAutoStopActionReasonEnumFromJSON(json) { + return ParameterAutoStopActionReasonEnumFromJSONTyped(json, false); +} +function ParameterAutoStopActionReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ParameterAutoStopActionReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/ParameterDiscountLevels.d.ts b/dist/models/ParameterDiscountLevels.d.ts new file mode 100644 index 0000000..31a3819 --- /dev/null +++ b/dist/models/ParameterDiscountLevels.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ParameterDiscountLevels + */ +export interface ParameterDiscountLevels { + /** + * Значение скидки. + * @type {number} + * @memberof ParameterDiscountLevels + */ + discount_value?: number; + /** + * Сумма заказа. + * @type {number} + * @memberof ParameterDiscountLevels + */ + order_amount?: number; +} +/** + * Check if a given object implements the ParameterDiscountLevels interface. + */ +export declare function instanceOfParameterDiscountLevels(value: object): value is ParameterDiscountLevels; +export declare function ParameterDiscountLevelsFromJSON(json: any): ParameterDiscountLevels; +export declare function ParameterDiscountLevelsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterDiscountLevels; +export declare function ParameterDiscountLevelsToJSON(value?: ParameterDiscountLevels | null): any; diff --git a/dist/models/ParameterDiscountLevels.js b/dist/models/ParameterDiscountLevels.js new file mode 100644 index 0000000..f2fa73b --- /dev/null +++ b/dist/models/ParameterDiscountLevels.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfParameterDiscountLevels = instanceOfParameterDiscountLevels; +exports.ParameterDiscountLevelsFromJSON = ParameterDiscountLevelsFromJSON; +exports.ParameterDiscountLevelsFromJSONTyped = ParameterDiscountLevelsFromJSONTyped; +exports.ParameterDiscountLevelsToJSON = ParameterDiscountLevelsToJSON; +/** + * Check if a given object implements the ParameterDiscountLevels interface. + */ +function instanceOfParameterDiscountLevels(value) { + return true; +} +function ParameterDiscountLevelsFromJSON(json) { + return ParameterDiscountLevelsFromJSONTyped(json, false); +} +function ParameterDiscountLevelsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + 'order_amount': json['order_amount'] == null ? undefined : json['order_amount'], + }; +} +function ParameterDiscountLevelsToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount_value': value['discount_value'], + 'order_amount': value['order_amount'], + }; +} diff --git a/dist/models/ParameterPickedSegment.d.ts b/dist/models/ParameterPickedSegment.d.ts new file mode 100644 index 0000000..7d626a4 --- /dev/null +++ b/dist/models/ParameterPickedSegment.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PickedSegmentSegment } from './PickedSegmentSegment'; +/** + * + * @export + * @interface ParameterPickedSegment + */ +export interface ParameterPickedSegment { + /** + * Параметры сегментов аудиторий. + * @type {Array} + * @memberof ParameterPickedSegment + */ + segments?: Array; +} +/** + * Check if a given object implements the ParameterPickedSegment interface. + */ +export declare function instanceOfParameterPickedSegment(value: object): value is ParameterPickedSegment; +export declare function ParameterPickedSegmentFromJSON(json: any): ParameterPickedSegment; +export declare function ParameterPickedSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterPickedSegment; +export declare function ParameterPickedSegmentToJSON(value?: ParameterPickedSegment | null): any; diff --git a/dist/models/ParameterPickedSegment.js b/dist/models/ParameterPickedSegment.js new file mode 100644 index 0000000..9bde07e --- /dev/null +++ b/dist/models/ParameterPickedSegment.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfParameterPickedSegment = instanceOfParameterPickedSegment; +exports.ParameterPickedSegmentFromJSON = ParameterPickedSegmentFromJSON; +exports.ParameterPickedSegmentFromJSONTyped = ParameterPickedSegmentFromJSONTyped; +exports.ParameterPickedSegmentToJSON = ParameterPickedSegmentToJSON; +const PickedSegmentSegment_1 = require("./PickedSegmentSegment"); +/** + * Check if a given object implements the ParameterPickedSegment interface. + */ +function instanceOfParameterPickedSegment(value) { + return true; +} +function ParameterPickedSegmentFromJSON(json) { + return ParameterPickedSegmentFromJSONTyped(json, false); +} +function ParameterPickedSegmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'segments': json['segments'] == null ? undefined : (json['segments'].map(PickedSegmentSegment_1.PickedSegmentSegmentFromJSON)), + }; +} +function ParameterPickedSegmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'segments': value['segments'] == null ? undefined : (value['segments'].map(PickedSegmentSegment_1.PickedSegmentSegmentToJSON)), + }; +} diff --git a/dist/models/PickedSegmentSegment.d.ts b/dist/models/PickedSegmentSegment.d.ts new file mode 100644 index 0000000..dbbcc29 --- /dev/null +++ b/dist/models/PickedSegmentSegment.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PickedSegmentSegmentTypeEnum } from './PickedSegmentSegmentTypeEnum'; +/** + * + * @export + * @interface PickedSegmentSegment + */ +export interface PickedSegmentSegment { + /** + * Описание сегмента. + * @type {string} + * @memberof PickedSegmentSegment + */ + description?: string; + /** + * Идентификатор сегмента. + * @type {number} + * @memberof PickedSegmentSegment + */ + id?: number; + /** + * Название сегмента. + * @type {string} + * @memberof PickedSegmentSegment + */ + name?: string; + /** + * + * @type {PickedSegmentSegmentTypeEnum} + * @memberof PickedSegmentSegment + */ + type?: PickedSegmentSegmentTypeEnum; +} +/** + * Check if a given object implements the PickedSegmentSegment interface. + */ +export declare function instanceOfPickedSegmentSegment(value: object): value is PickedSegmentSegment; +export declare function PickedSegmentSegmentFromJSON(json: any): PickedSegmentSegment; +export declare function PickedSegmentSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickedSegmentSegment; +export declare function PickedSegmentSegmentToJSON(value?: PickedSegmentSegment | null): any; diff --git a/dist/models/PickedSegmentSegment.js b/dist/models/PickedSegmentSegment.js new file mode 100644 index 0000000..b78b01f --- /dev/null +++ b/dist/models/PickedSegmentSegment.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPickedSegmentSegment = instanceOfPickedSegmentSegment; +exports.PickedSegmentSegmentFromJSON = PickedSegmentSegmentFromJSON; +exports.PickedSegmentSegmentFromJSONTyped = PickedSegmentSegmentFromJSONTyped; +exports.PickedSegmentSegmentToJSON = PickedSegmentSegmentToJSON; +const PickedSegmentSegmentTypeEnum_1 = require("./PickedSegmentSegmentTypeEnum"); +/** + * Check if a given object implements the PickedSegmentSegment interface. + */ +function instanceOfPickedSegmentSegment(value) { + return true; +} +function PickedSegmentSegmentFromJSON(json) { + return PickedSegmentSegmentFromJSONTyped(json, false); +} +function PickedSegmentSegmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : (0, PickedSegmentSegmentTypeEnum_1.PickedSegmentSegmentTypeEnumFromJSON)(json['type']), + }; +} +function PickedSegmentSegmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'id': value['id'], + 'name': value['name'], + 'type': (0, PickedSegmentSegmentTypeEnum_1.PickedSegmentSegmentTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/PickedSegmentSegmentTypeEnum.d.ts b/dist/models/PickedSegmentSegmentTypeEnum.d.ts new file mode 100644 index 0000000..8f9a082 --- /dev/null +++ b/dist/models/PickedSegmentSegmentTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип сегмента: + * - `UNSPECIFIED` — не определён; + * - `OZON` — Ozon; + * - `SELLER` — продавца. + * + * @export + */ +export declare const PickedSegmentSegmentTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELLER: "SELLER"; +}; +export type PickedSegmentSegmentTypeEnum = typeof PickedSegmentSegmentTypeEnum[keyof typeof PickedSegmentSegmentTypeEnum]; +export declare function instanceOfPickedSegmentSegmentTypeEnum(value: any): boolean; +export declare function PickedSegmentSegmentTypeEnumFromJSON(json: any): PickedSegmentSegmentTypeEnum; +export declare function PickedSegmentSegmentTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickedSegmentSegmentTypeEnum; +export declare function PickedSegmentSegmentTypeEnumToJSON(value?: PickedSegmentSegmentTypeEnum | null): any; diff --git a/dist/models/PickedSegmentSegmentTypeEnum.js b/dist/models/PickedSegmentSegmentTypeEnum.js new file mode 100644 index 0000000..d3e48f4 --- /dev/null +++ b/dist/models/PickedSegmentSegmentTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PickedSegmentSegmentTypeEnum = void 0; +exports.instanceOfPickedSegmentSegmentTypeEnum = instanceOfPickedSegmentSegmentTypeEnum; +exports.PickedSegmentSegmentTypeEnumFromJSON = PickedSegmentSegmentTypeEnumFromJSON; +exports.PickedSegmentSegmentTypeEnumFromJSONTyped = PickedSegmentSegmentTypeEnumFromJSONTyped; +exports.PickedSegmentSegmentTypeEnumToJSON = PickedSegmentSegmentTypeEnumToJSON; +/** + * Тип сегмента: + * - `UNSPECIFIED` — не определён; + * - `OZON` — Ozon; + * - `SELLER` — продавца. + * + * @export + */ +exports.PickedSegmentSegmentTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELLER: 'SELLER' +}; +function instanceOfPickedSegmentSegmentTypeEnum(value) { + for (const key in exports.PickedSegmentSegmentTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PickedSegmentSegmentTypeEnum, key)) { + if (exports.PickedSegmentSegmentTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function PickedSegmentSegmentTypeEnumFromJSON(json) { + return PickedSegmentSegmentTypeEnumFromJSONTyped(json, false); +} +function PickedSegmentSegmentTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PickedSegmentSegmentTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/PointDeliveryMethodCoordinates.d.ts b/dist/models/PointDeliveryMethodCoordinates.d.ts new file mode 100644 index 0000000..dad7b5e --- /dev/null +++ b/dist/models/PointDeliveryMethodCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface PointDeliveryMethodCoordinates + */ +export interface PointDeliveryMethodCoordinates { + /** + * Широта. + * @type {number} + * @memberof PointDeliveryMethodCoordinates + */ + lat?: number; + /** + * Долгота. + * @type {number} + * @memberof PointDeliveryMethodCoordinates + */ + _long?: number; +} +/** + * Check if a given object implements the PointDeliveryMethodCoordinates interface. + */ +export declare function instanceOfPointDeliveryMethodCoordinates(value: object): value is PointDeliveryMethodCoordinates; +export declare function PointDeliveryMethodCoordinatesFromJSON(json: any): PointDeliveryMethodCoordinates; +export declare function PointDeliveryMethodCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointDeliveryMethodCoordinates; +export declare function PointDeliveryMethodCoordinatesToJSON(value?: PointDeliveryMethodCoordinates | null): any; diff --git a/dist/models/PointDeliveryMethodCoordinates.js b/dist/models/PointDeliveryMethodCoordinates.js new file mode 100644 index 0000000..a1aab2f --- /dev/null +++ b/dist/models/PointDeliveryMethodCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPointDeliveryMethodCoordinates = instanceOfPointDeliveryMethodCoordinates; +exports.PointDeliveryMethodCoordinatesFromJSON = PointDeliveryMethodCoordinatesFromJSON; +exports.PointDeliveryMethodCoordinatesFromJSONTyped = PointDeliveryMethodCoordinatesFromJSONTyped; +exports.PointDeliveryMethodCoordinatesToJSON = PointDeliveryMethodCoordinatesToJSON; +/** + * Check if a given object implements the PointDeliveryMethodCoordinates interface. + */ +function instanceOfPointDeliveryMethodCoordinates(value) { + return true; +} +function PointDeliveryMethodCoordinatesFromJSON(json) { + return PointDeliveryMethodCoordinatesFromJSONTyped(json, false); +} +function PointDeliveryMethodCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'] == null ? undefined : json['lat'], + '_long': json['long'] == null ? undefined : json['long'], + }; +} +function PointDeliveryMethodCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'long': value['_long'], + }; +} diff --git a/dist/models/PolygonBindRequestpolygon.d.ts b/dist/models/PolygonBindRequestpolygon.d.ts new file mode 100644 index 0000000..8972f90 --- /dev/null +++ b/dist/models/PolygonBindRequestpolygon.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PolygonBindRequestpolygon + */ +export interface PolygonBindRequestpolygon { + /** + * Идентификатор полигона. + * @type {number} + * @memberof PolygonBindRequestpolygon + */ + polygon_id: number; + /** + * Время в минутах, за которое доставят товар в этом полигоне. + * @type {number} + * @memberof PolygonBindRequestpolygon + */ + time: number; +} +/** + * Check if a given object implements the PolygonBindRequestpolygon interface. + */ +export declare function instanceOfPolygonBindRequestpolygon(value: object): value is PolygonBindRequestpolygon; +export declare function PolygonBindRequestpolygonFromJSON(json: any): PolygonBindRequestpolygon; +export declare function PolygonBindRequestpolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonBindRequestpolygon; +export declare function PolygonBindRequestpolygonToJSON(value?: PolygonBindRequestpolygon | null): any; diff --git a/dist/models/PolygonBindRequestpolygon.js b/dist/models/PolygonBindRequestpolygon.js new file mode 100644 index 0000000..dee37b9 --- /dev/null +++ b/dist/models/PolygonBindRequestpolygon.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPolygonBindRequestpolygon = instanceOfPolygonBindRequestpolygon; +exports.PolygonBindRequestpolygonFromJSON = PolygonBindRequestpolygonFromJSON; +exports.PolygonBindRequestpolygonFromJSONTyped = PolygonBindRequestpolygonFromJSONTyped; +exports.PolygonBindRequestpolygonToJSON = PolygonBindRequestpolygonToJSON; +/** + * Check if a given object implements the PolygonBindRequestpolygon interface. + */ +function instanceOfPolygonBindRequestpolygon(value) { + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + return true; +} +function PolygonBindRequestpolygonFromJSON(json) { + return PolygonBindRequestpolygonFromJSONTyped(json, false); +} +function PolygonBindRequestpolygonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'polygon_id': json['polygon_id'], + 'time': json['time'], + }; +} +function PolygonBindRequestpolygonToJSON(value) { + if (value == null) { + return value; + } + return { + 'polygon_id': value['polygon_id'], + 'time': value['time'], + }; +} diff --git a/dist/models/PolygonBindRequestwhLocation.d.ts b/dist/models/PolygonBindRequestwhLocation.d.ts new file mode 100644 index 0000000..75cc2ea --- /dev/null +++ b/dist/models/PolygonBindRequestwhLocation.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Расположение склада. + * @export + * @interface PolygonBindRequestwhLocation + */ +export interface PolygonBindRequestwhLocation { + /** + * Географическая широта расположения склада. + * @type {string} + * @memberof PolygonBindRequestwhLocation + */ + lat: string; + /** + * Географическая долгота расположения склада. + * @type {string} + * @memberof PolygonBindRequestwhLocation + */ + lon: string; +} +/** + * Check if a given object implements the PolygonBindRequestwhLocation interface. + */ +export declare function instanceOfPolygonBindRequestwhLocation(value: object): value is PolygonBindRequestwhLocation; +export declare function PolygonBindRequestwhLocationFromJSON(json: any): PolygonBindRequestwhLocation; +export declare function PolygonBindRequestwhLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonBindRequestwhLocation; +export declare function PolygonBindRequestwhLocationToJSON(value?: PolygonBindRequestwhLocation | null): any; diff --git a/dist/models/PolygonBindRequestwhLocation.js b/dist/models/PolygonBindRequestwhLocation.js new file mode 100644 index 0000000..3cc5bab --- /dev/null +++ b/dist/models/PolygonBindRequestwhLocation.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPolygonBindRequestwhLocation = instanceOfPolygonBindRequestwhLocation; +exports.PolygonBindRequestwhLocationFromJSON = PolygonBindRequestwhLocationFromJSON; +exports.PolygonBindRequestwhLocationFromJSONTyped = PolygonBindRequestwhLocationFromJSONTyped; +exports.PolygonBindRequestwhLocationToJSON = PolygonBindRequestwhLocationToJSON; +/** + * Check if a given object implements the PolygonBindRequestwhLocation interface. + */ +function instanceOfPolygonBindRequestwhLocation(value) { + if (!('lat' in value) || value['lat'] === undefined) + return false; + if (!('lon' in value) || value['lon'] === undefined) + return false; + return true; +} +function PolygonBindRequestwhLocationFromJSON(json) { + return PolygonBindRequestwhLocationFromJSONTyped(json, false); +} +function PolygonBindRequestwhLocationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lat': json['lat'], + 'lon': json['lon'], + }; +} +function PolygonBindRequestwhLocationToJSON(value) { + if (value == null) { + return value; + } + return { + 'lat': value['lat'], + 'lon': value['lon'], + }; +} diff --git a/dist/models/PolygonListResponsePolygon.d.ts b/dist/models/PolygonListResponsePolygon.d.ts new file mode 100644 index 0000000..376d512 --- /dev/null +++ b/dist/models/PolygonListResponsePolygon.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PolygonListResponsePolygon + */ +export interface PolygonListResponsePolygon { + /** + * Координаты полигона доставки в формате `[[[lat,long],[lat,long]]]`. + * @type {string} + * @memberof PolygonListResponsePolygon + */ + coordinates?: string; + /** + * Идентификатор полигона. + * @type {number} + * @memberof PolygonListResponsePolygon + */ + polygon_id?: number; + /** + * Время доставки в минутах. + * @type {number} + * @memberof PolygonListResponsePolygon + */ + time?: number; +} +/** + * Check if a given object implements the PolygonListResponsePolygon interface. + */ +export declare function instanceOfPolygonListResponsePolygon(value: object): value is PolygonListResponsePolygon; +export declare function PolygonListResponsePolygonFromJSON(json: any): PolygonListResponsePolygon; +export declare function PolygonListResponsePolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonListResponsePolygon; +export declare function PolygonListResponsePolygonToJSON(value?: PolygonListResponsePolygon | null): any; diff --git a/dist/models/PolygonListResponsePolygon.js b/dist/models/PolygonListResponsePolygon.js new file mode 100644 index 0000000..c248c4b --- /dev/null +++ b/dist/models/PolygonListResponsePolygon.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPolygonListResponsePolygon = instanceOfPolygonListResponsePolygon; +exports.PolygonListResponsePolygonFromJSON = PolygonListResponsePolygonFromJSON; +exports.PolygonListResponsePolygonFromJSONTyped = PolygonListResponsePolygonFromJSONTyped; +exports.PolygonListResponsePolygonToJSON = PolygonListResponsePolygonToJSON; +/** + * Check if a given object implements the PolygonListResponsePolygon interface. + */ +function instanceOfPolygonListResponsePolygon(value) { + return true; +} +function PolygonListResponsePolygonFromJSON(json) { + return PolygonListResponsePolygonFromJSONTyped(json, false); +} +function PolygonListResponsePolygonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'] == null ? undefined : json['coordinates'], + 'polygon_id': json['polygon_id'] == null ? undefined : json['polygon_id'], + 'time': json['time'] == null ? undefined : json['time'], + }; +} +function PolygonListResponsePolygonToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': value['coordinates'], + 'polygon_id': value['polygon_id'], + 'time': value['time'], + }; +} diff --git a/dist/models/Polygonv1PolygonBindRequest.d.ts b/dist/models/Polygonv1PolygonBindRequest.d.ts new file mode 100644 index 0000000..c67fc4c --- /dev/null +++ b/dist/models/Polygonv1PolygonBindRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PolygonBindRequestwhLocation } from './PolygonBindRequestwhLocation'; +import type { PolygonBindRequestpolygon } from './PolygonBindRequestpolygon'; +/** + * + * @export + * @interface Polygonv1PolygonBindRequest + */ +export interface Polygonv1PolygonBindRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof Polygonv1PolygonBindRequest + */ + delivery_method_id: number; + /** + * Список полигонов. + * @type {Array} + * @memberof Polygonv1PolygonBindRequest + */ + polygons: Array; + /** + * + * @type {PolygonBindRequestwhLocation} + * @memberof Polygonv1PolygonBindRequest + */ + warehouse_location: PolygonBindRequestwhLocation; +} +/** + * Check if a given object implements the Polygonv1PolygonBindRequest interface. + */ +export declare function instanceOfPolygonv1PolygonBindRequest(value: object): value is Polygonv1PolygonBindRequest; +export declare function Polygonv1PolygonBindRequestFromJSON(json: any): Polygonv1PolygonBindRequest; +export declare function Polygonv1PolygonBindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygonv1PolygonBindRequest; +export declare function Polygonv1PolygonBindRequestToJSON(value?: Polygonv1PolygonBindRequest | null): any; diff --git a/dist/models/Polygonv1PolygonBindRequest.js b/dist/models/Polygonv1PolygonBindRequest.js new file mode 100644 index 0000000..1fc9b91 --- /dev/null +++ b/dist/models/Polygonv1PolygonBindRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPolygonv1PolygonBindRequest = instanceOfPolygonv1PolygonBindRequest; +exports.Polygonv1PolygonBindRequestFromJSON = Polygonv1PolygonBindRequestFromJSON; +exports.Polygonv1PolygonBindRequestFromJSONTyped = Polygonv1PolygonBindRequestFromJSONTyped; +exports.Polygonv1PolygonBindRequestToJSON = Polygonv1PolygonBindRequestToJSON; +const PolygonBindRequestwhLocation_1 = require("./PolygonBindRequestwhLocation"); +const PolygonBindRequestpolygon_1 = require("./PolygonBindRequestpolygon"); +/** + * Check if a given object implements the Polygonv1PolygonBindRequest interface. + */ +function instanceOfPolygonv1PolygonBindRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('polygons' in value) || value['polygons'] === undefined) + return false; + if (!('warehouse_location' in value) || value['warehouse_location'] === undefined) + return false; + return true; +} +function Polygonv1PolygonBindRequestFromJSON(json) { + return Polygonv1PolygonBindRequestFromJSONTyped(json, false); +} +function Polygonv1PolygonBindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'polygons': (json['polygons'].map(PolygonBindRequestpolygon_1.PolygonBindRequestpolygonFromJSON)), + 'warehouse_location': (0, PolygonBindRequestwhLocation_1.PolygonBindRequestwhLocationFromJSON)(json['warehouse_location']), + }; +} +function Polygonv1PolygonBindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'polygons': (value['polygons'].map(PolygonBindRequestpolygon_1.PolygonBindRequestpolygonToJSON)), + 'warehouse_location': (0, PolygonBindRequestwhLocation_1.PolygonBindRequestwhLocationToJSON)(value['warehouse_location']), + }; +} diff --git a/dist/models/Polygonv1PolygonCreateRequest.d.ts b/dist/models/Polygonv1PolygonCreateRequest.d.ts new file mode 100644 index 0000000..b91ca37 --- /dev/null +++ b/dist/models/Polygonv1PolygonCreateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Polygonv1PolygonCreateRequest + */ +export interface Polygonv1PolygonCreateRequest { + /** + * Координаты полигона доставки в формате `[[[lat long]]]`. + * + * @type {string} + * @memberof Polygonv1PolygonCreateRequest + */ + coordinates: string; +} +/** + * Check if a given object implements the Polygonv1PolygonCreateRequest interface. + */ +export declare function instanceOfPolygonv1PolygonCreateRequest(value: object): value is Polygonv1PolygonCreateRequest; +export declare function Polygonv1PolygonCreateRequestFromJSON(json: any): Polygonv1PolygonCreateRequest; +export declare function Polygonv1PolygonCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygonv1PolygonCreateRequest; +export declare function Polygonv1PolygonCreateRequestToJSON(value?: Polygonv1PolygonCreateRequest | null): any; diff --git a/dist/models/Polygonv1PolygonCreateRequest.js b/dist/models/Polygonv1PolygonCreateRequest.js new file mode 100644 index 0000000..481283d --- /dev/null +++ b/dist/models/Polygonv1PolygonCreateRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPolygonv1PolygonCreateRequest = instanceOfPolygonv1PolygonCreateRequest; +exports.Polygonv1PolygonCreateRequestFromJSON = Polygonv1PolygonCreateRequestFromJSON; +exports.Polygonv1PolygonCreateRequestFromJSONTyped = Polygonv1PolygonCreateRequestFromJSONTyped; +exports.Polygonv1PolygonCreateRequestToJSON = Polygonv1PolygonCreateRequestToJSON; +/** + * Check if a given object implements the Polygonv1PolygonCreateRequest interface. + */ +function instanceOfPolygonv1PolygonCreateRequest(value) { + if (!('coordinates' in value) || value['coordinates'] === undefined) + return false; + return true; +} +function Polygonv1PolygonCreateRequestFromJSON(json) { + return Polygonv1PolygonCreateRequestFromJSONTyped(json, false); +} +function Polygonv1PolygonCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'], + }; +} +function Polygonv1PolygonCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': value['coordinates'], + }; +} diff --git a/dist/models/Polygonv1PolygonCreateResponse.d.ts b/dist/models/Polygonv1PolygonCreateResponse.d.ts new file mode 100644 index 0000000..0ee2ce2 --- /dev/null +++ b/dist/models/Polygonv1PolygonCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Polygonv1PolygonCreateResponse + */ +export interface Polygonv1PolygonCreateResponse { + /** + * Идентификатор полигона. + * @type {number} + * @memberof Polygonv1PolygonCreateResponse + */ + polygon_id?: number; +} +/** + * Check if a given object implements the Polygonv1PolygonCreateResponse interface. + */ +export declare function instanceOfPolygonv1PolygonCreateResponse(value: object): value is Polygonv1PolygonCreateResponse; +export declare function Polygonv1PolygonCreateResponseFromJSON(json: any): Polygonv1PolygonCreateResponse; +export declare function Polygonv1PolygonCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygonv1PolygonCreateResponse; +export declare function Polygonv1PolygonCreateResponseToJSON(value?: Polygonv1PolygonCreateResponse | null): any; diff --git a/dist/models/Polygonv1PolygonCreateResponse.js b/dist/models/Polygonv1PolygonCreateResponse.js new file mode 100644 index 0000000..4d20a29 --- /dev/null +++ b/dist/models/Polygonv1PolygonCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPolygonv1PolygonCreateResponse = instanceOfPolygonv1PolygonCreateResponse; +exports.Polygonv1PolygonCreateResponseFromJSON = Polygonv1PolygonCreateResponseFromJSON; +exports.Polygonv1PolygonCreateResponseFromJSONTyped = Polygonv1PolygonCreateResponseFromJSONTyped; +exports.Polygonv1PolygonCreateResponseToJSON = Polygonv1PolygonCreateResponseToJSON; +/** + * Check if a given object implements the Polygonv1PolygonCreateResponse interface. + */ +function instanceOfPolygonv1PolygonCreateResponse(value) { + return true; +} +function Polygonv1PolygonCreateResponseFromJSON(json) { + return Polygonv1PolygonCreateResponseFromJSONTyped(json, false); +} +function Polygonv1PolygonCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'polygon_id': json['polygon_id'] == null ? undefined : json['polygon_id'], + }; +} +function Polygonv1PolygonCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'polygon_id': value['polygon_id'], + }; +} diff --git a/dist/models/PostingAdditionalDataItem.d.ts b/dist/models/PostingAdditionalDataItem.d.ts new file mode 100644 index 0000000..13e8b1e --- /dev/null +++ b/dist/models/PostingAdditionalDataItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingAdditionalDataItem + */ +export interface PostingAdditionalDataItem { + /** + * Ключ дополнительного параметра. + * @type {string} + * @memberof PostingAdditionalDataItem + */ + key?: string; + /** + * Значение дополнительного параметра. + * @type {string} + * @memberof PostingAdditionalDataItem + */ + value?: string; +} +/** + * Check if a given object implements the PostingAdditionalDataItem interface. + */ +export declare function instanceOfPostingAdditionalDataItem(value: object): value is PostingAdditionalDataItem; +export declare function PostingAdditionalDataItemFromJSON(json: any): PostingAdditionalDataItem; +export declare function PostingAdditionalDataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingAdditionalDataItem; +export declare function PostingAdditionalDataItemToJSON(value?: PostingAdditionalDataItem | null): any; diff --git a/dist/models/PostingAdditionalDataItem.js b/dist/models/PostingAdditionalDataItem.js new file mode 100644 index 0000000..b92a9d7 --- /dev/null +++ b/dist/models/PostingAdditionalDataItem.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingAdditionalDataItem = instanceOfPostingAdditionalDataItem; +exports.PostingAdditionalDataItemFromJSON = PostingAdditionalDataItemFromJSON; +exports.PostingAdditionalDataItemFromJSONTyped = PostingAdditionalDataItemFromJSONTyped; +exports.PostingAdditionalDataItemToJSON = PostingAdditionalDataItemToJSON; +/** + * Check if a given object implements the PostingAdditionalDataItem interface. + */ +function instanceOfPostingAdditionalDataItem(value) { + return true; +} +function PostingAdditionalDataItemFromJSON(json) { + return PostingAdditionalDataItemFromJSONTyped(json, false); +} +function PostingAdditionalDataItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function PostingAdditionalDataItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/PostingBooleanResponse.d.ts b/dist/models/PostingBooleanResponse.d.ts new file mode 100644 index 0000000..b284cbe --- /dev/null +++ b/dist/models/PostingBooleanResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingBooleanResponse + */ +export interface PostingBooleanResponse { + /** + * Результат обработки запроса. `true`, если запрос выполнился без ошибок. + * @type {boolean} + * @memberof PostingBooleanResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the PostingBooleanResponse interface. + */ +export declare function instanceOfPostingBooleanResponse(value: object): value is PostingBooleanResponse; +export declare function PostingBooleanResponseFromJSON(json: any): PostingBooleanResponse; +export declare function PostingBooleanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingBooleanResponse; +export declare function PostingBooleanResponseToJSON(value?: PostingBooleanResponse | null): any; diff --git a/dist/models/PostingBooleanResponse.js b/dist/models/PostingBooleanResponse.js new file mode 100644 index 0000000..494f037 --- /dev/null +++ b/dist/models/PostingBooleanResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingBooleanResponse = instanceOfPostingBooleanResponse; +exports.PostingBooleanResponseFromJSON = PostingBooleanResponseFromJSON; +exports.PostingBooleanResponseFromJSONTyped = PostingBooleanResponseFromJSONTyped; +exports.PostingBooleanResponseToJSON = PostingBooleanResponseToJSON; +/** + * Check if a given object implements the PostingBooleanResponse interface. + */ +function instanceOfPostingBooleanResponse(value) { + return true; +} +function PostingBooleanResponseFromJSON(json) { + return PostingBooleanResponseFromJSONTyped(json, false); +} +function PostingBooleanResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function PostingBooleanResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/PostingCancelFbsPostingRequest.d.ts b/dist/models/PostingCancelFbsPostingRequest.d.ts new file mode 100644 index 0000000..96a347f --- /dev/null +++ b/dist/models/PostingCancelFbsPostingRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingCancelFbsPostingRequest + */ +export interface PostingCancelFbsPostingRequest { + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingCancelFbsPostingRequest + */ + cancel_reason_id: number; + /** + * Дополнительная информация по отмене. Если `cancel_reason_id = 402`, параметр обязательный. + * @type {string} + * @memberof PostingCancelFbsPostingRequest + */ + cancel_reason_message?: string; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingCancelFbsPostingRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the PostingCancelFbsPostingRequest interface. + */ +export declare function instanceOfPostingCancelFbsPostingRequest(value: object): value is PostingCancelFbsPostingRequest; +export declare function PostingCancelFbsPostingRequestFromJSON(json: any): PostingCancelFbsPostingRequest; +export declare function PostingCancelFbsPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelFbsPostingRequest; +export declare function PostingCancelFbsPostingRequestToJSON(value?: PostingCancelFbsPostingRequest | null): any; diff --git a/dist/models/PostingCancelFbsPostingRequest.js b/dist/models/PostingCancelFbsPostingRequest.js new file mode 100644 index 0000000..a280945 --- /dev/null +++ b/dist/models/PostingCancelFbsPostingRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingCancelFbsPostingRequest = instanceOfPostingCancelFbsPostingRequest; +exports.PostingCancelFbsPostingRequestFromJSON = PostingCancelFbsPostingRequestFromJSON; +exports.PostingCancelFbsPostingRequestFromJSONTyped = PostingCancelFbsPostingRequestFromJSONTyped; +exports.PostingCancelFbsPostingRequestToJSON = PostingCancelFbsPostingRequestToJSON; +/** + * Check if a given object implements the PostingCancelFbsPostingRequest interface. + */ +function instanceOfPostingCancelFbsPostingRequest(value) { + if (!('cancel_reason_id' in value) || value['cancel_reason_id'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingCancelFbsPostingRequestFromJSON(json) { + return PostingCancelFbsPostingRequestFromJSONTyped(json, false); +} +function PostingCancelFbsPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason_id': json['cancel_reason_id'], + 'cancel_reason_message': json['cancel_reason_message'] == null ? undefined : json['cancel_reason_message'], + 'posting_number': json['posting_number'], + }; +} +function PostingCancelFbsPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason_id': value['cancel_reason_id'], + 'cancel_reason_message': value['cancel_reason_message'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/PostingCancelReason.d.ts b/dist/models/PostingCancelReason.d.ts new file mode 100644 index 0000000..5f9e25c --- /dev/null +++ b/dist/models/PostingCancelReason.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingCancelReason + */ +export interface PostingCancelReason { + /** + * Идентификатор причины отмены. + * + * @type {number} + * @memberof PostingCancelReason + */ + id?: number; + /** + * Результат отмены отправления. `true`, если запрос доступен для отмены. + * @type {boolean} + * @memberof PostingCancelReason + */ + is_available_for_cancellation?: boolean; + /** + * Название категории. + * @type {string} + * @memberof PostingCancelReason + */ + title?: string; + /** + * Инициатор отмены отправления: + * - `buyer` — покупатель, + * - `seller` — продавец. + * + * @type {string} + * @memberof PostingCancelReason + */ + type_id?: string; +} +/** + * Check if a given object implements the PostingCancelReason interface. + */ +export declare function instanceOfPostingCancelReason(value: object): value is PostingCancelReason; +export declare function PostingCancelReasonFromJSON(json: any): PostingCancelReason; +export declare function PostingCancelReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelReason; +export declare function PostingCancelReasonToJSON(value?: PostingCancelReason | null): any; diff --git a/dist/models/PostingCancelReason.js b/dist/models/PostingCancelReason.js new file mode 100644 index 0000000..1ceb686 --- /dev/null +++ b/dist/models/PostingCancelReason.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingCancelReason = instanceOfPostingCancelReason; +exports.PostingCancelReasonFromJSON = PostingCancelReasonFromJSON; +exports.PostingCancelReasonFromJSONTyped = PostingCancelReasonFromJSONTyped; +exports.PostingCancelReasonToJSON = PostingCancelReasonToJSON; +/** + * Check if a given object implements the PostingCancelReason interface. + */ +function instanceOfPostingCancelReason(value) { + return true; +} +function PostingCancelReasonFromJSON(json) { + return PostingCancelReasonFromJSONTyped(json, false); +} +function PostingCancelReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'is_available_for_cancellation': json['is_available_for_cancellation'] == null ? undefined : json['is_available_for_cancellation'], + 'title': json['title'] == null ? undefined : json['title'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +function PostingCancelReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'is_available_for_cancellation': value['is_available_for_cancellation'], + 'title': value['title'], + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/PostingCancelReasonListResponse.d.ts b/dist/models/PostingCancelReasonListResponse.d.ts new file mode 100644 index 0000000..0864d7f --- /dev/null +++ b/dist/models/PostingCancelReasonListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingCancelReason } from './PostingCancelReason'; +/** + * + * @export + * @interface PostingCancelReasonListResponse + */ +export interface PostingCancelReasonListResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof PostingCancelReasonListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the PostingCancelReasonListResponse interface. + */ +export declare function instanceOfPostingCancelReasonListResponse(value: object): value is PostingCancelReasonListResponse; +export declare function PostingCancelReasonListResponseFromJSON(json: any): PostingCancelReasonListResponse; +export declare function PostingCancelReasonListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelReasonListResponse; +export declare function PostingCancelReasonListResponseToJSON(value?: PostingCancelReasonListResponse | null): any; diff --git a/dist/models/PostingCancelReasonListResponse.js b/dist/models/PostingCancelReasonListResponse.js new file mode 100644 index 0000000..e889e5a --- /dev/null +++ b/dist/models/PostingCancelReasonListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingCancelReasonListResponse = instanceOfPostingCancelReasonListResponse; +exports.PostingCancelReasonListResponseFromJSON = PostingCancelReasonListResponseFromJSON; +exports.PostingCancelReasonListResponseFromJSONTyped = PostingCancelReasonListResponseFromJSONTyped; +exports.PostingCancelReasonListResponseToJSON = PostingCancelReasonListResponseToJSON; +const PostingCancelReason_1 = require("./PostingCancelReason"); +/** + * Check if a given object implements the PostingCancelReasonListResponse interface. + */ +function instanceOfPostingCancelReasonListResponse(value) { + return true; +} +function PostingCancelReasonListResponseFromJSON(json) { + return PostingCancelReasonListResponseFromJSONTyped(json, false); +} +function PostingCancelReasonListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(PostingCancelReason_1.PostingCancelReasonFromJSON)), + }; +} +function PostingCancelReasonListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(PostingCancelReason_1.PostingCancelReasonToJSON)), + }; +} diff --git a/dist/models/PostingCancelReasonRequest.d.ts b/dist/models/PostingCancelReasonRequest.d.ts new file mode 100644 index 0000000..7cc80d3 --- /dev/null +++ b/dist/models/PostingCancelReasonRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingCancelReasonRequest + */ +export interface PostingCancelReasonRequest { + /** + * Номера отправлений. + * @type {Array} + * @memberof PostingCancelReasonRequest + */ + related_posting_numbers: Array; +} +/** + * Check if a given object implements the PostingCancelReasonRequest interface. + */ +export declare function instanceOfPostingCancelReasonRequest(value: object): value is PostingCancelReasonRequest; +export declare function PostingCancelReasonRequestFromJSON(json: any): PostingCancelReasonRequest; +export declare function PostingCancelReasonRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelReasonRequest; +export declare function PostingCancelReasonRequestToJSON(value?: PostingCancelReasonRequest | null): any; diff --git a/dist/models/PostingCancelReasonRequest.js b/dist/models/PostingCancelReasonRequest.js new file mode 100644 index 0000000..8604e93 --- /dev/null +++ b/dist/models/PostingCancelReasonRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingCancelReasonRequest = instanceOfPostingCancelReasonRequest; +exports.PostingCancelReasonRequestFromJSON = PostingCancelReasonRequestFromJSON; +exports.PostingCancelReasonRequestFromJSONTyped = PostingCancelReasonRequestFromJSONTyped; +exports.PostingCancelReasonRequestToJSON = PostingCancelReasonRequestToJSON; +/** + * Check if a given object implements the PostingCancelReasonRequest interface. + */ +function instanceOfPostingCancelReasonRequest(value) { + if (!('related_posting_numbers' in value) || value['related_posting_numbers'] === undefined) + return false; + return true; +} +function PostingCancelReasonRequestFromJSON(json) { + return PostingCancelReasonRequestFromJSONTyped(json, false); +} +function PostingCancelReasonRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'related_posting_numbers': json['related_posting_numbers'], + }; +} +function PostingCancelReasonRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'related_posting_numbers': value['related_posting_numbers'], + }; +} diff --git a/dist/models/PostingCancelReasonResponse.d.ts b/dist/models/PostingCancelReasonResponse.d.ts new file mode 100644 index 0000000..3812d0a --- /dev/null +++ b/dist/models/PostingCancelReasonResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RelatedPostingCancelReason } from './RelatedPostingCancelReason'; +/** + * + * @export + * @interface PostingCancelReasonResponse + */ +export interface PostingCancelReasonResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof PostingCancelReasonResponse + */ + result?: Array; +} +/** + * Check if a given object implements the PostingCancelReasonResponse interface. + */ +export declare function instanceOfPostingCancelReasonResponse(value: object): value is PostingCancelReasonResponse; +export declare function PostingCancelReasonResponseFromJSON(json: any): PostingCancelReasonResponse; +export declare function PostingCancelReasonResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingCancelReasonResponse; +export declare function PostingCancelReasonResponseToJSON(value?: PostingCancelReasonResponse | null): any; diff --git a/dist/models/PostingCancelReasonResponse.js b/dist/models/PostingCancelReasonResponse.js new file mode 100644 index 0000000..d18d607 --- /dev/null +++ b/dist/models/PostingCancelReasonResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingCancelReasonResponse = instanceOfPostingCancelReasonResponse; +exports.PostingCancelReasonResponseFromJSON = PostingCancelReasonResponseFromJSON; +exports.PostingCancelReasonResponseFromJSONTyped = PostingCancelReasonResponseFromJSONTyped; +exports.PostingCancelReasonResponseToJSON = PostingCancelReasonResponseToJSON; +const RelatedPostingCancelReason_1 = require("./RelatedPostingCancelReason"); +/** + * Check if a given object implements the PostingCancelReasonResponse interface. + */ +function instanceOfPostingCancelReasonResponse(value) { + return true; +} +function PostingCancelReasonResponseFromJSON(json) { + return PostingCancelReasonResponseFromJSONTyped(json, false); +} +function PostingCancelReasonResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(RelatedPostingCancelReason_1.RelatedPostingCancelReasonFromJSON)), + }; +} +function PostingCancelReasonResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(RelatedPostingCancelReason_1.RelatedPostingCancelReasonToJSON)), + }; +} diff --git a/dist/models/PostingErrorTypeEnum.d.ts b/dist/models/PostingErrorTypeEnum.d.ts new file mode 100644 index 0000000..fd6c6b2 --- /dev/null +++ b/dist/models/PostingErrorTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `UNSPECIFIED` — не указан; + * - `SELLER_CANCELLATION` — отмена по вине продавца; + * - `SELLER_DELAY` — просрочка по вине продавца. + * + * @export + */ +export declare const PostingErrorTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SELLER_CANCELLATION: "SELLER_CANCELLATION"; + readonly SELLER_DELAY: "SELLER_DELAY"; +}; +export type PostingErrorTypeEnum = typeof PostingErrorTypeEnum[keyof typeof PostingErrorTypeEnum]; +export declare function instanceOfPostingErrorTypeEnum(value: any): boolean; +export declare function PostingErrorTypeEnumFromJSON(json: any): PostingErrorTypeEnum; +export declare function PostingErrorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingErrorTypeEnum; +export declare function PostingErrorTypeEnumToJSON(value?: PostingErrorTypeEnum | null): any; diff --git a/dist/models/PostingErrorTypeEnum.js b/dist/models/PostingErrorTypeEnum.js new file mode 100644 index 0000000..8f6fcb1 --- /dev/null +++ b/dist/models/PostingErrorTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PostingErrorTypeEnum = void 0; +exports.instanceOfPostingErrorTypeEnum = instanceOfPostingErrorTypeEnum; +exports.PostingErrorTypeEnumFromJSON = PostingErrorTypeEnumFromJSON; +exports.PostingErrorTypeEnumFromJSONTyped = PostingErrorTypeEnumFromJSONTyped; +exports.PostingErrorTypeEnumToJSON = PostingErrorTypeEnumToJSON; +/** + * Тип ошибки: + * - `UNSPECIFIED` — не указан; + * - `SELLER_CANCELLATION` — отмена по вине продавца; + * - `SELLER_DELAY` — просрочка по вине продавца. + * + * @export + */ +exports.PostingErrorTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SELLER_CANCELLATION: 'SELLER_CANCELLATION', + SELLER_DELAY: 'SELLER_DELAY' +}; +function instanceOfPostingErrorTypeEnum(value) { + for (const key in exports.PostingErrorTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PostingErrorTypeEnum, key)) { + if (exports.PostingErrorTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function PostingErrorTypeEnumFromJSON(json) { + return PostingErrorTypeEnumFromJSONTyped(json, false); +} +function PostingErrorTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PostingErrorTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/PostingExemplarInfoExemplarError.d.ts b/dist/models/PostingExemplarInfoExemplarError.d.ts new file mode 100644 index 0000000..177fc67 --- /dev/null +++ b/dist/models/PostingExemplarInfoExemplarError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingExemplarInfoExemplarError + */ +export interface PostingExemplarInfoExemplarError { + /** + * Значение кода цифрового товара. + * @type {string} + * @memberof PostingExemplarInfoExemplarError + */ + key?: string; + /** + * Текст ошибки. + * @type {string} + * @memberof PostingExemplarInfoExemplarError + */ + message?: string; +} +/** + * Check if a given object implements the PostingExemplarInfoExemplarError interface. + */ +export declare function instanceOfPostingExemplarInfoExemplarError(value: object): value is PostingExemplarInfoExemplarError; +export declare function PostingExemplarInfoExemplarErrorFromJSON(json: any): PostingExemplarInfoExemplarError; +export declare function PostingExemplarInfoExemplarErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingExemplarInfoExemplarError; +export declare function PostingExemplarInfoExemplarErrorToJSON(value?: PostingExemplarInfoExemplarError | null): any; diff --git a/dist/models/PostingExemplarInfoExemplarError.js b/dist/models/PostingExemplarInfoExemplarError.js new file mode 100644 index 0000000..388ca92 --- /dev/null +++ b/dist/models/PostingExemplarInfoExemplarError.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingExemplarInfoExemplarError = instanceOfPostingExemplarInfoExemplarError; +exports.PostingExemplarInfoExemplarErrorFromJSON = PostingExemplarInfoExemplarErrorFromJSON; +exports.PostingExemplarInfoExemplarErrorFromJSONTyped = PostingExemplarInfoExemplarErrorFromJSONTyped; +exports.PostingExemplarInfoExemplarErrorToJSON = PostingExemplarInfoExemplarErrorToJSON; +/** + * Check if a given object implements the PostingExemplarInfoExemplarError interface. + */ +function instanceOfPostingExemplarInfoExemplarError(value) { + return true; +} +function PostingExemplarInfoExemplarErrorFromJSON(json) { + return PostingExemplarInfoExemplarErrorFromJSONTyped(json, false); +} +function PostingExemplarInfoExemplarErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function PostingExemplarInfoExemplarErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'message': value['message'], + }; +} diff --git a/dist/models/PostingFBSActCheckStatusResponseStatus.d.ts b/dist/models/PostingFBSActCheckStatusResponseStatus.d.ts new file mode 100644 index 0000000..7155af2 --- /dev/null +++ b/dist/models/PostingFBSActCheckStatusResponseStatus.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface PostingFBSActCheckStatusResponseStatus + */ +export interface PostingFBSActCheckStatusResponseStatus { + /** + * Тип документов. + * + * @type {string} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + act_type?: string; + /** + * Массив c номерами отправлений, которые добавлены в перевозку. Эти отправления нужно передать сегодня. + * @type {Array} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + added_to_act?: Array; + /** + * Массив с номерами отправлений, которые не попали в перевозку. Такие отправления нужно передавать со следующей отгрузкой. + * @type {Array} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + removed_from_act?: Array; + /** + * Статус запроса: + * - `in_process` — документы формируются, нужно подождать. + * - `ready` — документы сформированы и готовы для скачивания. + * - `error` — произошла ошибка при формировании документов, запросите документы повторно. + * - `cancelled` — создание документов отменено, запросите их повторно. + * - `The next postings aren't ready` — произошла ошибка, отправления не включены в отгрузку. Подождите некоторое время и проверьте результат запроса. Если ошибка повторяется, обратитесь в службу поддержки. + * + * @type {string} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + status?: string; + /** + * Признак частичной перевозки. `true`, если перевозка частичная. + * + * Частичная перевозка значит, что отгрузка была разделена на несколько частей. + * + * @type {boolean} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + is_partial?: boolean; + /** + * `true`, если есть отправления, не попавшие в текущую перевозку, но которые нужно отгрузить. + * + * Если в ответе вернулось `true`, подтвердите отгрузку или создайте новый акт через метод [/v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate) и проверьте их статус. Повторяйте действия, пока в ответе не вернётся `false`. + * + * @type {boolean} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + has_postings_for_next_carriage?: boolean; + /** + * Порядковый номер частичной перевозки. + * @type {number} + * @memberof PostingFBSActCheckStatusResponseStatus + */ + partial_num?: number; +} +/** + * Check if a given object implements the PostingFBSActCheckStatusResponseStatus interface. + */ +export declare function instanceOfPostingFBSActCheckStatusResponseStatus(value: object): value is PostingFBSActCheckStatusResponseStatus; +export declare function PostingFBSActCheckStatusResponseStatusFromJSON(json: any): PostingFBSActCheckStatusResponseStatus; +export declare function PostingFBSActCheckStatusResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFBSActCheckStatusResponseStatus; +export declare function PostingFBSActCheckStatusResponseStatusToJSON(value?: PostingFBSActCheckStatusResponseStatus | null): any; diff --git a/dist/models/PostingFBSActCheckStatusResponseStatus.js b/dist/models/PostingFBSActCheckStatusResponseStatus.js new file mode 100644 index 0000000..958a3ca --- /dev/null +++ b/dist/models/PostingFBSActCheckStatusResponseStatus.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFBSActCheckStatusResponseStatus = instanceOfPostingFBSActCheckStatusResponseStatus; +exports.PostingFBSActCheckStatusResponseStatusFromJSON = PostingFBSActCheckStatusResponseStatusFromJSON; +exports.PostingFBSActCheckStatusResponseStatusFromJSONTyped = PostingFBSActCheckStatusResponseStatusFromJSONTyped; +exports.PostingFBSActCheckStatusResponseStatusToJSON = PostingFBSActCheckStatusResponseStatusToJSON; +/** + * Check if a given object implements the PostingFBSActCheckStatusResponseStatus interface. + */ +function instanceOfPostingFBSActCheckStatusResponseStatus(value) { + return true; +} +function PostingFBSActCheckStatusResponseStatusFromJSON(json) { + return PostingFBSActCheckStatusResponseStatusFromJSONTyped(json, false); +} +function PostingFBSActCheckStatusResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_type': json['act_type'] == null ? undefined : json['act_type'], + 'added_to_act': json['added_to_act'] == null ? undefined : json['added_to_act'], + 'removed_from_act': json['removed_from_act'] == null ? undefined : json['removed_from_act'], + 'status': json['status'] == null ? undefined : json['status'], + 'is_partial': json['is_partial'] == null ? undefined : json['is_partial'], + 'has_postings_for_next_carriage': json['has_postings_for_next_carriage'] == null ? undefined : json['has_postings_for_next_carriage'], + 'partial_num': json['partial_num'] == null ? undefined : json['partial_num'], + }; +} +function PostingFBSActCheckStatusResponseStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_type': value['act_type'], + 'added_to_act': value['added_to_act'], + 'removed_from_act': value['removed_from_act'], + 'status': value['status'], + 'is_partial': value['is_partial'], + 'has_postings_for_next_carriage': value['has_postings_for_next_carriage'], + 'partial_num': value['partial_num'], + }; +} diff --git a/dist/models/PostingFBSActCreateResponseAct.d.ts b/dist/models/PostingFBSActCreateResponseAct.d.ts new file mode 100644 index 0000000..a7057a7 --- /dev/null +++ b/dist/models/PostingFBSActCreateResponseAct.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface PostingFBSActCreateResponseAct + */ +export interface PostingFBSActCreateResponseAct { + /** + * Номер задания на формирование штрихкода и документов. + * @type {number} + * @memberof PostingFBSActCreateResponseAct + */ + id?: number; +} +/** + * Check if a given object implements the PostingFBSActCreateResponseAct interface. + */ +export declare function instanceOfPostingFBSActCreateResponseAct(value: object): value is PostingFBSActCreateResponseAct; +export declare function PostingFBSActCreateResponseActFromJSON(json: any): PostingFBSActCreateResponseAct; +export declare function PostingFBSActCreateResponseActFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFBSActCreateResponseAct; +export declare function PostingFBSActCreateResponseActToJSON(value?: PostingFBSActCreateResponseAct | null): any; diff --git a/dist/models/PostingFBSActCreateResponseAct.js b/dist/models/PostingFBSActCreateResponseAct.js new file mode 100644 index 0000000..0e3e962 --- /dev/null +++ b/dist/models/PostingFBSActCreateResponseAct.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFBSActCreateResponseAct = instanceOfPostingFBSActCreateResponseAct; +exports.PostingFBSActCreateResponseActFromJSON = PostingFBSActCreateResponseActFromJSON; +exports.PostingFBSActCreateResponseActFromJSONTyped = PostingFBSActCreateResponseActFromJSONTyped; +exports.PostingFBSActCreateResponseActToJSON = PostingFBSActCreateResponseActToJSON; +/** + * Check if a given object implements the PostingFBSActCreateResponseAct interface. + */ +function instanceOfPostingFBSActCreateResponseAct(value) { + return true; +} +function PostingFBSActCreateResponseActFromJSON(json) { + return PostingFBSActCreateResponseActFromJSONTyped(json, false); +} +function PostingFBSActCreateResponseActFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + }; +} +function PostingFBSActCreateResponseActToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/PostingFboPostingWithParams.d.ts b/dist/models/PostingFboPostingWithParams.d.ts new file mode 100644 index 0000000..381eeaa --- /dev/null +++ b/dist/models/PostingFboPostingWithParams.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingFboPostingWithParams + */ +export interface PostingFboPostingWithParams { + /** + * Передайте `true`, чтобы добавить в ответ данные аналитики. + * @type {boolean} + * @memberof PostingFboPostingWithParams + */ + analytics_data?: boolean; + /** + * Передайте `true`, чтобы добавить в ответ финансовые данные. + * @type {boolean} + * @memberof PostingFboPostingWithParams + */ + financial_data?: boolean; + /** + * Передайте `true`, чтобы добавить в ответ юридическую информацию. + * @type {boolean} + * @memberof PostingFboPostingWithParams + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingFboPostingWithParams interface. + */ +export declare function instanceOfPostingFboPostingWithParams(value: object): value is PostingFboPostingWithParams; +export declare function PostingFboPostingWithParamsFromJSON(json: any): PostingFboPostingWithParams; +export declare function PostingFboPostingWithParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFboPostingWithParams; +export declare function PostingFboPostingWithParamsToJSON(value?: PostingFboPostingWithParams | null): any; diff --git a/dist/models/PostingFboPostingWithParams.js b/dist/models/PostingFboPostingWithParams.js new file mode 100644 index 0000000..7fc85bb --- /dev/null +++ b/dist/models/PostingFboPostingWithParams.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFboPostingWithParams = instanceOfPostingFboPostingWithParams; +exports.PostingFboPostingWithParamsFromJSON = PostingFboPostingWithParamsFromJSON; +exports.PostingFboPostingWithParamsFromJSONTyped = PostingFboPostingWithParamsFromJSONTyped; +exports.PostingFboPostingWithParamsToJSON = PostingFboPostingWithParamsToJSON; +/** + * Check if a given object implements the PostingFboPostingWithParams interface. + */ +function instanceOfPostingFboPostingWithParams(value) { + return true; +} +function PostingFboPostingWithParamsFromJSON(json) { + return PostingFboPostingWithParamsFromJSONTyped(json, false); +} +function PostingFboPostingWithParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +function PostingFboPostingWithParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/models/PostingFbsPostingDeliveredRequest.d.ts b/dist/models/PostingFbsPostingDeliveredRequest.d.ts new file mode 100644 index 0000000..e3317be --- /dev/null +++ b/dist/models/PostingFbsPostingDeliveredRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFbsPostingDeliveredRequest + */ +export interface PostingFbsPostingDeliveredRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingFbsPostingDeliveredRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingFbsPostingDeliveredRequest interface. + */ +export declare function instanceOfPostingFbsPostingDeliveredRequest(value: object): value is PostingFbsPostingDeliveredRequest; +export declare function PostingFbsPostingDeliveredRequestFromJSON(json: any): PostingFbsPostingDeliveredRequest; +export declare function PostingFbsPostingDeliveredRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingDeliveredRequest; +export declare function PostingFbsPostingDeliveredRequestToJSON(value?: PostingFbsPostingDeliveredRequest | null): any; diff --git a/dist/models/PostingFbsPostingDeliveredRequest.js b/dist/models/PostingFbsPostingDeliveredRequest.js new file mode 100644 index 0000000..4e1cae5 --- /dev/null +++ b/dist/models/PostingFbsPostingDeliveredRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFbsPostingDeliveredRequest = instanceOfPostingFbsPostingDeliveredRequest; +exports.PostingFbsPostingDeliveredRequestFromJSON = PostingFbsPostingDeliveredRequestFromJSON; +exports.PostingFbsPostingDeliveredRequestFromJSONTyped = PostingFbsPostingDeliveredRequestFromJSONTyped; +exports.PostingFbsPostingDeliveredRequestToJSON = PostingFbsPostingDeliveredRequestToJSON; +/** + * Check if a given object implements the PostingFbsPostingDeliveredRequest interface. + */ +function instanceOfPostingFbsPostingDeliveredRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingFbsPostingDeliveredRequestFromJSON(json) { + return PostingFbsPostingDeliveredRequestFromJSONTyped(json, false); +} +function PostingFbsPostingDeliveredRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function PostingFbsPostingDeliveredRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/PostingFbsPostingDeliveringRequest.d.ts b/dist/models/PostingFbsPostingDeliveringRequest.d.ts new file mode 100644 index 0000000..016269f --- /dev/null +++ b/dist/models/PostingFbsPostingDeliveringRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFbsPostingDeliveringRequest + */ +export interface PostingFbsPostingDeliveringRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingFbsPostingDeliveringRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingFbsPostingDeliveringRequest interface. + */ +export declare function instanceOfPostingFbsPostingDeliveringRequest(value: object): value is PostingFbsPostingDeliveringRequest; +export declare function PostingFbsPostingDeliveringRequestFromJSON(json: any): PostingFbsPostingDeliveringRequest; +export declare function PostingFbsPostingDeliveringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingDeliveringRequest; +export declare function PostingFbsPostingDeliveringRequestToJSON(value?: PostingFbsPostingDeliveringRequest | null): any; diff --git a/dist/models/PostingFbsPostingDeliveringRequest.js b/dist/models/PostingFbsPostingDeliveringRequest.js new file mode 100644 index 0000000..29028e2 --- /dev/null +++ b/dist/models/PostingFbsPostingDeliveringRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFbsPostingDeliveringRequest = instanceOfPostingFbsPostingDeliveringRequest; +exports.PostingFbsPostingDeliveringRequestFromJSON = PostingFbsPostingDeliveringRequestFromJSON; +exports.PostingFbsPostingDeliveringRequestFromJSONTyped = PostingFbsPostingDeliveringRequestFromJSONTyped; +exports.PostingFbsPostingDeliveringRequestToJSON = PostingFbsPostingDeliveringRequestToJSON; +/** + * Check if a given object implements the PostingFbsPostingDeliveringRequest interface. + */ +function instanceOfPostingFbsPostingDeliveringRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingFbsPostingDeliveringRequestFromJSON(json) { + return PostingFbsPostingDeliveringRequestFromJSONTyped(json, false); +} +function PostingFbsPostingDeliveringRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function PostingFbsPostingDeliveringRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/PostingFbsPostingLastMileRequest.d.ts b/dist/models/PostingFbsPostingLastMileRequest.d.ts new file mode 100644 index 0000000..88e8219 --- /dev/null +++ b/dist/models/PostingFbsPostingLastMileRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFbsPostingLastMileRequest + */ +export interface PostingFbsPostingLastMileRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingFbsPostingLastMileRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingFbsPostingLastMileRequest interface. + */ +export declare function instanceOfPostingFbsPostingLastMileRequest(value: object): value is PostingFbsPostingLastMileRequest; +export declare function PostingFbsPostingLastMileRequestFromJSON(json: any): PostingFbsPostingLastMileRequest; +export declare function PostingFbsPostingLastMileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingLastMileRequest; +export declare function PostingFbsPostingLastMileRequestToJSON(value?: PostingFbsPostingLastMileRequest | null): any; diff --git a/dist/models/PostingFbsPostingLastMileRequest.js b/dist/models/PostingFbsPostingLastMileRequest.js new file mode 100644 index 0000000..610832f --- /dev/null +++ b/dist/models/PostingFbsPostingLastMileRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFbsPostingLastMileRequest = instanceOfPostingFbsPostingLastMileRequest; +exports.PostingFbsPostingLastMileRequestFromJSON = PostingFbsPostingLastMileRequestFromJSON; +exports.PostingFbsPostingLastMileRequestFromJSONTyped = PostingFbsPostingLastMileRequestFromJSONTyped; +exports.PostingFbsPostingLastMileRequestToJSON = PostingFbsPostingLastMileRequestToJSON; +/** + * Check if a given object implements the PostingFbsPostingLastMileRequest interface. + */ +function instanceOfPostingFbsPostingLastMileRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingFbsPostingLastMileRequestFromJSON(json) { + return PostingFbsPostingLastMileRequestFromJSONTyped(json, false); +} +function PostingFbsPostingLastMileRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function PostingFbsPostingLastMileRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/PostingFbsPostingMoveStatusResponse.d.ts b/dist/models/PostingFbsPostingMoveStatusResponse.d.ts new file mode 100644 index 0000000..e6b8d46 --- /dev/null +++ b/dist/models/PostingFbsPostingMoveStatusResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingMoveStatusResponseMoveStatus } from './FbsPostingMoveStatusResponseMoveStatus'; +/** + * + * @export + * @interface PostingFbsPostingMoveStatusResponse + */ +export interface PostingFbsPostingMoveStatusResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof PostingFbsPostingMoveStatusResponse + */ + result?: Array; +} +/** + * Check if a given object implements the PostingFbsPostingMoveStatusResponse interface. + */ +export declare function instanceOfPostingFbsPostingMoveStatusResponse(value: object): value is PostingFbsPostingMoveStatusResponse; +export declare function PostingFbsPostingMoveStatusResponseFromJSON(json: any): PostingFbsPostingMoveStatusResponse; +export declare function PostingFbsPostingMoveStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingMoveStatusResponse; +export declare function PostingFbsPostingMoveStatusResponseToJSON(value?: PostingFbsPostingMoveStatusResponse | null): any; diff --git a/dist/models/PostingFbsPostingMoveStatusResponse.js b/dist/models/PostingFbsPostingMoveStatusResponse.js new file mode 100644 index 0000000..5f9f167 --- /dev/null +++ b/dist/models/PostingFbsPostingMoveStatusResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFbsPostingMoveStatusResponse = instanceOfPostingFbsPostingMoveStatusResponse; +exports.PostingFbsPostingMoveStatusResponseFromJSON = PostingFbsPostingMoveStatusResponseFromJSON; +exports.PostingFbsPostingMoveStatusResponseFromJSONTyped = PostingFbsPostingMoveStatusResponseFromJSONTyped; +exports.PostingFbsPostingMoveStatusResponseToJSON = PostingFbsPostingMoveStatusResponseToJSON; +const FbsPostingMoveStatusResponseMoveStatus_1 = require("./FbsPostingMoveStatusResponseMoveStatus"); +/** + * Check if a given object implements the PostingFbsPostingMoveStatusResponse interface. + */ +function instanceOfPostingFbsPostingMoveStatusResponse(value) { + return true; +} +function PostingFbsPostingMoveStatusResponseFromJSON(json) { + return PostingFbsPostingMoveStatusResponseFromJSONTyped(json, false); +} +function PostingFbsPostingMoveStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(FbsPostingMoveStatusResponseMoveStatus_1.FbsPostingMoveStatusResponseMoveStatusFromJSON)), + }; +} +function PostingFbsPostingMoveStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(FbsPostingMoveStatusResponseMoveStatus_1.FbsPostingMoveStatusResponseMoveStatusToJSON)), + }; +} diff --git a/dist/models/PostingFbsPostingTrackingNumberSetRequest.d.ts b/dist/models/PostingFbsPostingTrackingNumberSetRequest.d.ts new file mode 100644 index 0000000..2acd3a5 --- /dev/null +++ b/dist/models/PostingFbsPostingTrackingNumberSetRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingTrackingNumberSetRequestTrackingNumber } from './FbsPostingTrackingNumberSetRequestTrackingNumber'; +/** + * + * @export + * @interface PostingFbsPostingTrackingNumberSetRequest + */ +export interface PostingFbsPostingTrackingNumberSetRequest { + /** + * Массив с парами идентификатор отправления — трек-номер. + * @type {Array} + * @memberof PostingFbsPostingTrackingNumberSetRequest + */ + tracking_numbers: Array; +} +/** + * Check if a given object implements the PostingFbsPostingTrackingNumberSetRequest interface. + */ +export declare function instanceOfPostingFbsPostingTrackingNumberSetRequest(value: object): value is PostingFbsPostingTrackingNumberSetRequest; +export declare function PostingFbsPostingTrackingNumberSetRequestFromJSON(json: any): PostingFbsPostingTrackingNumberSetRequest; +export declare function PostingFbsPostingTrackingNumberSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsPostingTrackingNumberSetRequest; +export declare function PostingFbsPostingTrackingNumberSetRequestToJSON(value?: PostingFbsPostingTrackingNumberSetRequest | null): any; diff --git a/dist/models/PostingFbsPostingTrackingNumberSetRequest.js b/dist/models/PostingFbsPostingTrackingNumberSetRequest.js new file mode 100644 index 0000000..ebaafca --- /dev/null +++ b/dist/models/PostingFbsPostingTrackingNumberSetRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFbsPostingTrackingNumberSetRequest = instanceOfPostingFbsPostingTrackingNumberSetRequest; +exports.PostingFbsPostingTrackingNumberSetRequestFromJSON = PostingFbsPostingTrackingNumberSetRequestFromJSON; +exports.PostingFbsPostingTrackingNumberSetRequestFromJSONTyped = PostingFbsPostingTrackingNumberSetRequestFromJSONTyped; +exports.PostingFbsPostingTrackingNumberSetRequestToJSON = PostingFbsPostingTrackingNumberSetRequestToJSON; +const FbsPostingTrackingNumberSetRequestTrackingNumber_1 = require("./FbsPostingTrackingNumberSetRequestTrackingNumber"); +/** + * Check if a given object implements the PostingFbsPostingTrackingNumberSetRequest interface. + */ +function instanceOfPostingFbsPostingTrackingNumberSetRequest(value) { + if (!('tracking_numbers' in value) || value['tracking_numbers'] === undefined) + return false; + return true; +} +function PostingFbsPostingTrackingNumberSetRequestFromJSON(json) { + return PostingFbsPostingTrackingNumberSetRequestFromJSONTyped(json, false); +} +function PostingFbsPostingTrackingNumberSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tracking_numbers': (json['tracking_numbers'].map(FbsPostingTrackingNumberSetRequestTrackingNumber_1.FbsPostingTrackingNumberSetRequestTrackingNumberFromJSON)), + }; +} +function PostingFbsPostingTrackingNumberSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'tracking_numbers': (value['tracking_numbers'].map(FbsPostingTrackingNumberSetRequestTrackingNumber_1.FbsPostingTrackingNumberSetRequestTrackingNumberToJSON)), + }; +} diff --git a/dist/models/PostingFbsTraceableSplitResponsePostingProduct.d.ts b/dist/models/PostingFbsTraceableSplitResponsePostingProduct.d.ts new file mode 100644 index 0000000..f5ad756 --- /dev/null +++ b/dist/models/PostingFbsTraceableSplitResponsePostingProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFbsTraceableSplitResponsePostingProduct + */ +export interface PostingFbsTraceableSplitResponsePostingProduct { + /** + * Количество. + * @type {number} + * @memberof PostingFbsTraceableSplitResponsePostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingFbsTraceableSplitResponsePostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the PostingFbsTraceableSplitResponsePostingProduct interface. + */ +export declare function instanceOfPostingFbsTraceableSplitResponsePostingProduct(value: object): value is PostingFbsTraceableSplitResponsePostingProduct; +export declare function PostingFbsTraceableSplitResponsePostingProductFromJSON(json: any): PostingFbsTraceableSplitResponsePostingProduct; +export declare function PostingFbsTraceableSplitResponsePostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFbsTraceableSplitResponsePostingProduct; +export declare function PostingFbsTraceableSplitResponsePostingProductToJSON(value?: PostingFbsTraceableSplitResponsePostingProduct | null): any; diff --git a/dist/models/PostingFbsTraceableSplitResponsePostingProduct.js b/dist/models/PostingFbsTraceableSplitResponsePostingProduct.js new file mode 100644 index 0000000..f7136c3 --- /dev/null +++ b/dist/models/PostingFbsTraceableSplitResponsePostingProduct.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFbsTraceableSplitResponsePostingProduct = instanceOfPostingFbsTraceableSplitResponsePostingProduct; +exports.PostingFbsTraceableSplitResponsePostingProductFromJSON = PostingFbsTraceableSplitResponsePostingProductFromJSON; +exports.PostingFbsTraceableSplitResponsePostingProductFromJSONTyped = PostingFbsTraceableSplitResponsePostingProductFromJSONTyped; +exports.PostingFbsTraceableSplitResponsePostingProductToJSON = PostingFbsTraceableSplitResponsePostingProductToJSON; +/** + * Check if a given object implements the PostingFbsTraceableSplitResponsePostingProduct interface. + */ +function instanceOfPostingFbsTraceableSplitResponsePostingProduct(value) { + return true; +} +function PostingFbsTraceableSplitResponsePostingProductFromJSON(json) { + return PostingFbsTraceableSplitResponsePostingProductFromJSONTyped(json, false); +} +function PostingFbsTraceableSplitResponsePostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function PostingFbsTraceableSplitResponsePostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/PostingFinancialDataProduct.d.ts b/dist/models/PostingFinancialDataProduct.d.ts new file mode 100644 index 0000000..92e83cf --- /dev/null +++ b/dist/models/PostingFinancialDataProduct.d.ts @@ -0,0 +1,118 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFinancialDataProduct + */ +export interface PostingFinancialDataProduct { + /** + * Список акций. + * @type {Array} + * @memberof PostingFinancialDataProduct + */ + actions?: Array; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof PostingFinancialDataProduct + */ + currency_code?: string; + /** + * Код валюты покупателя. + * @type {string} + * @memberof PostingFinancialDataProduct + */ + customer_currency_code?: string; + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + commission_amount?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + commission_percent?: number; + /** + * Код валюты, в которой рассчитывались комиссии. + * @type {string} + * @memberof PostingFinancialDataProduct + */ + commissions_currency_code?: string; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + price?: number; + /** + * Цена товара для покупателя с учётом скидок продавца и Ozon. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + customer_price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + product_id?: number; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingFinancialDataProduct + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingFinancialDataProduct interface. + */ +export declare function instanceOfPostingFinancialDataProduct(value: object): value is PostingFinancialDataProduct; +export declare function PostingFinancialDataProductFromJSON(json: any): PostingFinancialDataProduct; +export declare function PostingFinancialDataProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFinancialDataProduct; +export declare function PostingFinancialDataProductToJSON(value?: PostingFinancialDataProduct | null): any; diff --git a/dist/models/PostingFinancialDataProduct.js b/dist/models/PostingFinancialDataProduct.js new file mode 100644 index 0000000..f7ebd36 --- /dev/null +++ b/dist/models/PostingFinancialDataProduct.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFinancialDataProduct = instanceOfPostingFinancialDataProduct; +exports.PostingFinancialDataProductFromJSON = PostingFinancialDataProductFromJSON; +exports.PostingFinancialDataProductFromJSONTyped = PostingFinancialDataProductFromJSONTyped; +exports.PostingFinancialDataProductToJSON = PostingFinancialDataProductToJSON; +/** + * Check if a given object implements the PostingFinancialDataProduct interface. + */ +function instanceOfPostingFinancialDataProduct(value) { + return true; +} +function PostingFinancialDataProductFromJSON(json) { + return PostingFinancialDataProductFromJSONTyped(json, false); +} +function PostingFinancialDataProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'customer_currency_code': json['customer_currency_code'] == null ? undefined : json['customer_currency_code'], + 'commission_amount': json['commission_amount'] == null ? undefined : json['commission_amount'], + 'commission_percent': json['commission_percent'] == null ? undefined : json['commission_percent'], + 'commissions_currency_code': json['commissions_currency_code'] == null ? undefined : json['commissions_currency_code'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'customer_price': json['customer_price'] == null ? undefined : json['customer_price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +function PostingFinancialDataProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'currency_code': value['currency_code'], + 'customer_currency_code': value['customer_currency_code'], + 'commission_amount': value['commission_amount'], + 'commission_percent': value['commission_percent'], + 'commissions_currency_code': value['commissions_currency_code'], + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'customer_price': value['customer_price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/models/PostingFinancialDataProductV2.d.ts b/dist/models/PostingFinancialDataProductV2.d.ts new file mode 100644 index 0000000..94e24d2 --- /dev/null +++ b/dist/models/PostingFinancialDataProductV2.d.ts @@ -0,0 +1,106 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingFinancialDataProductV2 + */ +export interface PostingFinancialDataProductV2 { + /** + * Список акций. + * @type {Array} + * @memberof PostingFinancialDataProductV2 + */ + actions?: Array; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof PostingFinancialDataProductV2 + */ + currency_code?: string; + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + commission_amount?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + commission_percent?: number; + /** + * Код валюты, в которой рассчитывались комиссии. + * @type {string} + * @memberof PostingFinancialDataProductV2 + */ + commissions_currency_code?: string; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + product_id?: number; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingFinancialDataProductV2 + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingFinancialDataProductV2 interface. + */ +export declare function instanceOfPostingFinancialDataProductV2(value: object): value is PostingFinancialDataProductV2; +export declare function PostingFinancialDataProductV2FromJSON(json: any): PostingFinancialDataProductV2; +export declare function PostingFinancialDataProductV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingFinancialDataProductV2; +export declare function PostingFinancialDataProductV2ToJSON(value?: PostingFinancialDataProductV2 | null): any; diff --git a/dist/models/PostingFinancialDataProductV2.js b/dist/models/PostingFinancialDataProductV2.js new file mode 100644 index 0000000..485e94b --- /dev/null +++ b/dist/models/PostingFinancialDataProductV2.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingFinancialDataProductV2 = instanceOfPostingFinancialDataProductV2; +exports.PostingFinancialDataProductV2FromJSON = PostingFinancialDataProductV2FromJSON; +exports.PostingFinancialDataProductV2FromJSONTyped = PostingFinancialDataProductV2FromJSONTyped; +exports.PostingFinancialDataProductV2ToJSON = PostingFinancialDataProductV2ToJSON; +/** + * Check if a given object implements the PostingFinancialDataProductV2 interface. + */ +function instanceOfPostingFinancialDataProductV2(value) { + return true; +} +function PostingFinancialDataProductV2FromJSON(json) { + return PostingFinancialDataProductV2FromJSONTyped(json, false); +} +function PostingFinancialDataProductV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'commission_amount': json['commission_amount'] == null ? undefined : json['commission_amount'], + 'commission_percent': json['commission_percent'] == null ? undefined : json['commission_percent'], + 'commissions_currency_code': json['commissions_currency_code'] == null ? undefined : json['commissions_currency_code'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +function PostingFinancialDataProductV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'currency_code': value['currency_code'], + 'commission_amount': value['commission_amount'], + 'commission_percent': value['commission_percent'], + 'commissions_currency_code': value['commissions_currency_code'], + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/models/PostingGetFboPostingListRequest.d.ts b/dist/models/PostingGetFboPostingListRequest.d.ts new file mode 100644 index 0000000..f7b7d2b --- /dev/null +++ b/dist/models/PostingGetFboPostingListRequest.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFboPostingWithParams } from './PostingFboPostingWithParams'; +import type { PostingGetFboPostingListRequestFilter } from './PostingGetFboPostingListRequestFilter'; +/** + * + * @export + * @interface PostingGetFboPostingListRequest + */ +export interface PostingGetFboPostingListRequest { + /** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @type {string} + * @memberof PostingGetFboPostingListRequest + */ + dir?: string; + /** + * + * @type {PostingGetFboPostingListRequestFilter} + * @memberof PostingGetFboPostingListRequest + */ + filter: PostingGetFboPostingListRequestFilter; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof PostingGetFboPostingListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. Максимальное значение — 20000. + * @type {number} + * @memberof PostingGetFboPostingListRequest + */ + offset?: number; + /** + * Если включена транслитерация адреса из кириллицы в латиницу — `true`. + * @type {boolean} + * @memberof PostingGetFboPostingListRequest + */ + translit?: boolean; + /** + * + * @type {PostingFboPostingWithParams} + * @memberof PostingGetFboPostingListRequest + */ + _with?: PostingFboPostingWithParams; +} +/** + * Check if a given object implements the PostingGetFboPostingListRequest interface. + */ +export declare function instanceOfPostingGetFboPostingListRequest(value: object): value is PostingGetFboPostingListRequest; +export declare function PostingGetFboPostingListRequestFromJSON(json: any): PostingGetFboPostingListRequest; +export declare function PostingGetFboPostingListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingGetFboPostingListRequest; +export declare function PostingGetFboPostingListRequestToJSON(value?: PostingGetFboPostingListRequest | null): any; diff --git a/dist/models/PostingGetFboPostingListRequest.js b/dist/models/PostingGetFboPostingListRequest.js new file mode 100644 index 0000000..eae6ad3 --- /dev/null +++ b/dist/models/PostingGetFboPostingListRequest.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingGetFboPostingListRequest = instanceOfPostingGetFboPostingListRequest; +exports.PostingGetFboPostingListRequestFromJSON = PostingGetFboPostingListRequestFromJSON; +exports.PostingGetFboPostingListRequestFromJSONTyped = PostingGetFboPostingListRequestFromJSONTyped; +exports.PostingGetFboPostingListRequestToJSON = PostingGetFboPostingListRequestToJSON; +const PostingFboPostingWithParams_1 = require("./PostingFboPostingWithParams"); +const PostingGetFboPostingListRequestFilter_1 = require("./PostingGetFboPostingListRequestFilter"); +/** + * Check if a given object implements the PostingGetFboPostingListRequest interface. + */ +function instanceOfPostingGetFboPostingListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function PostingGetFboPostingListRequestFromJSON(json) { + return PostingGetFboPostingListRequestFromJSONTyped(json, false); +} +function PostingGetFboPostingListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dir': json['dir'] == null ? undefined : json['dir'], + 'filter': (0, PostingGetFboPostingListRequestFilter_1.PostingGetFboPostingListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : (0, PostingFboPostingWithParams_1.PostingFboPostingWithParamsFromJSON)(json['with']), + }; +} +function PostingGetFboPostingListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'dir': value['dir'], + 'filter': (0, PostingGetFboPostingListRequestFilter_1.PostingGetFboPostingListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'translit': value['translit'], + 'with': (0, PostingFboPostingWithParams_1.PostingFboPostingWithParamsToJSON)(value['_with']), + }; +} diff --git a/dist/models/PostingGetFboPostingListRequestFilter.d.ts b/dist/models/PostingGetFboPostingListRequestFilter.d.ts new file mode 100644 index 0000000..d0735bf --- /dev/null +++ b/dist/models/PostingGetFboPostingListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface PostingGetFboPostingListRequestFilter + */ +export interface PostingGetFboPostingListRequestFilter { + /** + * Начало периода. + * @type {string} + * @memberof PostingGetFboPostingListRequestFilter + */ + since: string; + /** + * Статус отправления. + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_deliver` — ожидает отгрузки, + * - `delivering` — доставляется, + * - `delivered` — доставлено, + * - `cancelled` — отменено. + * + * @type {string} + * @memberof PostingGetFboPostingListRequestFilter + */ + status?: string; + /** + * Конец периода. + * @type {string} + * @memberof PostingGetFboPostingListRequestFilter + */ + to: string; +} +/** + * Check if a given object implements the PostingGetFboPostingListRequestFilter interface. + */ +export declare function instanceOfPostingGetFboPostingListRequestFilter(value: object): value is PostingGetFboPostingListRequestFilter; +export declare function PostingGetFboPostingListRequestFilterFromJSON(json: any): PostingGetFboPostingListRequestFilter; +export declare function PostingGetFboPostingListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingGetFboPostingListRequestFilter; +export declare function PostingGetFboPostingListRequestFilterToJSON(value?: PostingGetFboPostingListRequestFilter | null): any; diff --git a/dist/models/PostingGetFboPostingListRequestFilter.js b/dist/models/PostingGetFboPostingListRequestFilter.js new file mode 100644 index 0000000..2815c2f --- /dev/null +++ b/dist/models/PostingGetFboPostingListRequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingGetFboPostingListRequestFilter = instanceOfPostingGetFboPostingListRequestFilter; +exports.PostingGetFboPostingListRequestFilterFromJSON = PostingGetFboPostingListRequestFilterFromJSON; +exports.PostingGetFboPostingListRequestFilterFromJSONTyped = PostingGetFboPostingListRequestFilterFromJSONTyped; +exports.PostingGetFboPostingListRequestFilterToJSON = PostingGetFboPostingListRequestFilterToJSON; +/** + * Check if a given object implements the PostingGetFboPostingListRequestFilter interface. + */ +function instanceOfPostingGetFboPostingListRequestFilter(value) { + if (!('since' in value) || value['since'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function PostingGetFboPostingListRequestFilterFromJSON(json) { + return PostingGetFboPostingListRequestFilterFromJSONTyped(json, false); +} +function PostingGetFboPostingListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'since': json['since'], + 'status': json['status'] == null ? undefined : json['status'], + 'to': json['to'], + }; +} +function PostingGetFboPostingListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'since': value['since'], + 'status': value['status'], + 'to': value['to'], + }; +} diff --git a/dist/models/PostingGetFboPostingRequest.d.ts b/dist/models/PostingGetFboPostingRequest.d.ts new file mode 100644 index 0000000..e568bf5 --- /dev/null +++ b/dist/models/PostingGetFboPostingRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFboPostingWithParams } from './PostingFboPostingWithParams'; +/** + * + * @export + * @interface PostingGetFboPostingRequest + */ +export interface PostingGetFboPostingRequest { + /** + * Номер отправления. + * @type {string} + * @memberof PostingGetFboPostingRequest + */ + posting_number: string; + /** + * Если включена транслитерация адреса из кириллицы в латиницу — `true`. + * @type {boolean} + * @memberof PostingGetFboPostingRequest + */ + translit?: boolean; + /** + * + * @type {PostingFboPostingWithParams} + * @memberof PostingGetFboPostingRequest + */ + _with?: PostingFboPostingWithParams; +} +/** + * Check if a given object implements the PostingGetFboPostingRequest interface. + */ +export declare function instanceOfPostingGetFboPostingRequest(value: object): value is PostingGetFboPostingRequest; +export declare function PostingGetFboPostingRequestFromJSON(json: any): PostingGetFboPostingRequest; +export declare function PostingGetFboPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingGetFboPostingRequest; +export declare function PostingGetFboPostingRequestToJSON(value?: PostingGetFboPostingRequest | null): any; diff --git a/dist/models/PostingGetFboPostingRequest.js b/dist/models/PostingGetFboPostingRequest.js new file mode 100644 index 0000000..ce0a3a8 --- /dev/null +++ b/dist/models/PostingGetFboPostingRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingGetFboPostingRequest = instanceOfPostingGetFboPostingRequest; +exports.PostingGetFboPostingRequestFromJSON = PostingGetFboPostingRequestFromJSON; +exports.PostingGetFboPostingRequestFromJSONTyped = PostingGetFboPostingRequestFromJSONTyped; +exports.PostingGetFboPostingRequestToJSON = PostingGetFboPostingRequestToJSON; +const PostingFboPostingWithParams_1 = require("./PostingFboPostingWithParams"); +/** + * Check if a given object implements the PostingGetFboPostingRequest interface. + */ +function instanceOfPostingGetFboPostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingGetFboPostingRequestFromJSON(json) { + return PostingGetFboPostingRequestFromJSONTyped(json, false); +} +function PostingGetFboPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : (0, PostingFboPostingWithParams_1.PostingFboPostingWithParamsFromJSON)(json['with']), + }; +} +function PostingGetFboPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'translit': value['translit'], + 'with': (0, PostingFboPostingWithParams_1.PostingFboPostingWithParamsToJSON)(value['_with']), + }; +} diff --git a/dist/models/PostingGetFbsPostingByBarcodeRequest.d.ts b/dist/models/PostingGetFbsPostingByBarcodeRequest.d.ts new file mode 100644 index 0000000..7861bda --- /dev/null +++ b/dist/models/PostingGetFbsPostingByBarcodeRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingGetFbsPostingByBarcodeRequest + */ +export interface PostingGetFbsPostingByBarcodeRequest { + /** + * Штрихкод отправления. Можно получить с помощью методов: [/v3/posting/fbs/get](#operation/PostingAPI_GetFbsPostingV3), [/v3/posting/fbs/list](#operation/PostingAPI_GetFbsPostingListV3) и [/v3/posting/fbs/unfulfilled/list](#operation/PostingAPI_GetFbsPostingUnfulfilledList) в массиве `barcodes`. + * + * @type {string} + * @memberof PostingGetFbsPostingByBarcodeRequest + */ + barcode: string; +} +/** + * Check if a given object implements the PostingGetFbsPostingByBarcodeRequest interface. + */ +export declare function instanceOfPostingGetFbsPostingByBarcodeRequest(value: object): value is PostingGetFbsPostingByBarcodeRequest; +export declare function PostingGetFbsPostingByBarcodeRequestFromJSON(json: any): PostingGetFbsPostingByBarcodeRequest; +export declare function PostingGetFbsPostingByBarcodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingGetFbsPostingByBarcodeRequest; +export declare function PostingGetFbsPostingByBarcodeRequestToJSON(value?: PostingGetFbsPostingByBarcodeRequest | null): any; diff --git a/dist/models/PostingGetFbsPostingByBarcodeRequest.js b/dist/models/PostingGetFbsPostingByBarcodeRequest.js new file mode 100644 index 0000000..9683870 --- /dev/null +++ b/dist/models/PostingGetFbsPostingByBarcodeRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingGetFbsPostingByBarcodeRequest = instanceOfPostingGetFbsPostingByBarcodeRequest; +exports.PostingGetFbsPostingByBarcodeRequestFromJSON = PostingGetFbsPostingByBarcodeRequestFromJSON; +exports.PostingGetFbsPostingByBarcodeRequestFromJSONTyped = PostingGetFbsPostingByBarcodeRequestFromJSONTyped; +exports.PostingGetFbsPostingByBarcodeRequestToJSON = PostingGetFbsPostingByBarcodeRequestToJSON; +/** + * Check if a given object implements the PostingGetFbsPostingByBarcodeRequest interface. + */ +function instanceOfPostingGetFbsPostingByBarcodeRequest(value) { + if (!('barcode' in value) || value['barcode'] === undefined) + return false; + return true; +} +function PostingGetFbsPostingByBarcodeRequestFromJSON(json) { + return PostingGetFbsPostingByBarcodeRequestFromJSONTyped(json, false); +} +function PostingGetFbsPostingByBarcodeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'], + }; +} +function PostingGetFbsPostingByBarcodeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + }; +} diff --git a/dist/models/PostingLegalInfo.d.ts b/dist/models/PostingLegalInfo.d.ts new file mode 100644 index 0000000..54b33bd --- /dev/null +++ b/dist/models/PostingLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingLegalInfo + */ +export interface PostingLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingLegalInfo interface. + */ +export declare function instanceOfPostingLegalInfo(value: object): value is PostingLegalInfo; +export declare function PostingLegalInfoFromJSON(json: any): PostingLegalInfo; +export declare function PostingLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingLegalInfo; +export declare function PostingLegalInfoToJSON(value?: PostingLegalInfo | null): any; diff --git a/dist/models/PostingLegalInfo.js b/dist/models/PostingLegalInfo.js new file mode 100644 index 0000000..bffc19d --- /dev/null +++ b/dist/models/PostingLegalInfo.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingLegalInfo = instanceOfPostingLegalInfo; +exports.PostingLegalInfoFromJSON = PostingLegalInfoFromJSON; +exports.PostingLegalInfoFromJSONTyped = PostingLegalInfoFromJSONTyped; +exports.PostingLegalInfoToJSON = PostingLegalInfoToJSON; +/** + * Check if a given object implements the PostingLegalInfo interface. + */ +function instanceOfPostingLegalInfo(value) { + return true; +} +function PostingLegalInfoFromJSON(json) { + return PostingLegalInfoFromJSONTyped(json, false); +} +function PostingLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +function PostingLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/models/PostingMarksResponseIssuedExemplar.d.ts b/dist/models/PostingMarksResponseIssuedExemplar.d.ts new file mode 100644 index 0000000..6216300 --- /dev/null +++ b/dist/models/PostingMarksResponseIssuedExemplar.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingMarksResponseIssuedExemplar + */ +export interface PostingMarksResponseIssuedExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof PostingMarksResponseIssuedExemplar + */ + exemplar_id?: number; + /** + * Cписок маркировок выданных покупателям экземпляров. + * @type {Array} + * @memberof PostingMarksResponseIssuedExemplar + */ + mandatory_marks?: Array; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingMarksResponseIssuedExemplar + */ + posting_number?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingMarksResponseIssuedExemplar + */ + sku?: number; +} +/** + * Check if a given object implements the PostingMarksResponseIssuedExemplar interface. + */ +export declare function instanceOfPostingMarksResponseIssuedExemplar(value: object): value is PostingMarksResponseIssuedExemplar; +export declare function PostingMarksResponseIssuedExemplarFromJSON(json: any): PostingMarksResponseIssuedExemplar; +export declare function PostingMarksResponseIssuedExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingMarksResponseIssuedExemplar; +export declare function PostingMarksResponseIssuedExemplarToJSON(value?: PostingMarksResponseIssuedExemplar | null): any; diff --git a/dist/models/PostingMarksResponseIssuedExemplar.js b/dist/models/PostingMarksResponseIssuedExemplar.js new file mode 100644 index 0000000..f1feb53 --- /dev/null +++ b/dist/models/PostingMarksResponseIssuedExemplar.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingMarksResponseIssuedExemplar = instanceOfPostingMarksResponseIssuedExemplar; +exports.PostingMarksResponseIssuedExemplarFromJSON = PostingMarksResponseIssuedExemplarFromJSON; +exports.PostingMarksResponseIssuedExemplarFromJSONTyped = PostingMarksResponseIssuedExemplarFromJSONTyped; +exports.PostingMarksResponseIssuedExemplarToJSON = PostingMarksResponseIssuedExemplarToJSON; +/** + * Check if a given object implements the PostingMarksResponseIssuedExemplar interface. + */ +function instanceOfPostingMarksResponseIssuedExemplar(value) { + return true; +} +function PostingMarksResponseIssuedExemplarFromJSON(json) { + return PostingMarksResponseIssuedExemplarFromJSONTyped(json, false); +} +function PostingMarksResponseIssuedExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'mandatory_marks': json['mandatory_marks'] == null ? undefined : json['mandatory_marks'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function PostingMarksResponseIssuedExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'mandatory_marks': value['mandatory_marks'], + 'posting_number': value['posting_number'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/PostingMarksResponseNonIssuedExemplar.d.ts b/dist/models/PostingMarksResponseNonIssuedExemplar.d.ts new file mode 100644 index 0000000..f493186 --- /dev/null +++ b/dist/models/PostingMarksResponseNonIssuedExemplar.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingMarksResponseNonIssuedExemplar + */ +export interface PostingMarksResponseNonIssuedExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof PostingMarksResponseNonIssuedExemplar + */ + exemplar_id?: number; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingMarksResponseNonIssuedExemplar + */ + posting_number?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingMarksResponseNonIssuedExemplar + */ + sku?: number; +} +/** + * Check if a given object implements the PostingMarksResponseNonIssuedExemplar interface. + */ +export declare function instanceOfPostingMarksResponseNonIssuedExemplar(value: object): value is PostingMarksResponseNonIssuedExemplar; +export declare function PostingMarksResponseNonIssuedExemplarFromJSON(json: any): PostingMarksResponseNonIssuedExemplar; +export declare function PostingMarksResponseNonIssuedExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingMarksResponseNonIssuedExemplar; +export declare function PostingMarksResponseNonIssuedExemplarToJSON(value?: PostingMarksResponseNonIssuedExemplar | null): any; diff --git a/dist/models/PostingMarksResponseNonIssuedExemplar.js b/dist/models/PostingMarksResponseNonIssuedExemplar.js new file mode 100644 index 0000000..4a9e3b3 --- /dev/null +++ b/dist/models/PostingMarksResponseNonIssuedExemplar.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingMarksResponseNonIssuedExemplar = instanceOfPostingMarksResponseNonIssuedExemplar; +exports.PostingMarksResponseNonIssuedExemplarFromJSON = PostingMarksResponseNonIssuedExemplarFromJSON; +exports.PostingMarksResponseNonIssuedExemplarFromJSONTyped = PostingMarksResponseNonIssuedExemplarFromJSONTyped; +exports.PostingMarksResponseNonIssuedExemplarToJSON = PostingMarksResponseNonIssuedExemplarToJSON; +/** + * Check if a given object implements the PostingMarksResponseNonIssuedExemplar interface. + */ +function instanceOfPostingMarksResponseNonIssuedExemplar(value) { + return true; +} +function PostingMarksResponseNonIssuedExemplarFromJSON(json) { + return PostingMarksResponseNonIssuedExemplarFromJSONTyped(json, false); +} +function PostingMarksResponseNonIssuedExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function PostingMarksResponseNonIssuedExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'posting_number': value['posting_number'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/PostingMovePostingRequest.d.ts b/dist/models/PostingMovePostingRequest.d.ts new file mode 100644 index 0000000..8515b27 --- /dev/null +++ b/dist/models/PostingMovePostingRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingMovePostingRequest + */ +export interface PostingMovePostingRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingMovePostingRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingMovePostingRequest interface. + */ +export declare function instanceOfPostingMovePostingRequest(value: object): value is PostingMovePostingRequest; +export declare function PostingMovePostingRequestFromJSON(json: any): PostingMovePostingRequest; +export declare function PostingMovePostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingMovePostingRequest; +export declare function PostingMovePostingRequestToJSON(value?: PostingMovePostingRequest | null): any; diff --git a/dist/models/PostingMovePostingRequest.js b/dist/models/PostingMovePostingRequest.js new file mode 100644 index 0000000..dbb0305 --- /dev/null +++ b/dist/models/PostingMovePostingRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingMovePostingRequest = instanceOfPostingMovePostingRequest; +exports.PostingMovePostingRequestFromJSON = PostingMovePostingRequestFromJSON; +exports.PostingMovePostingRequestFromJSONTyped = PostingMovePostingRequestFromJSONTyped; +exports.PostingMovePostingRequestToJSON = PostingMovePostingRequestToJSON; +/** + * Check if a given object implements the PostingMovePostingRequest interface. + */ +function instanceOfPostingMovePostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingMovePostingRequestFromJSON(json) { + return PostingMovePostingRequestFromJSONTyped(json, false); +} +function PostingMovePostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function PostingMovePostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/PostingPostingAnalyticsData.d.ts b/dist/models/PostingPostingAnalyticsData.d.ts new file mode 100644 index 0000000..b08a779 --- /dev/null +++ b/dist/models/PostingPostingAnalyticsData.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingPostingAnalyticsData + */ +export interface PostingPostingAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + city?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + delivery_type?: string; + /** + * Признак, что получатель юридическое лицо: + * - `true` — юридическое лицо, + * - `false` — физическое лицо. + * + * @type {boolean} + * @memberof PostingPostingAnalyticsData + */ + is_legal?: boolean; + /** + * Наличие подписки Premium. + * @type {boolean} + * @memberof PostingPostingAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`, + * - `карта Ozon Банка`, + * - `автосписание с карты Ozon Банка при выдаче`, + * - `сохранённой картой при получении`, + * - `Система Быстрых Платежей`, + * - `Ozon Рассрочка`, + * - `оплата на расчётный счёт`, + * - `SberPay`. + * + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + region?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingPostingAnalyticsData + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof PostingPostingAnalyticsData + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the PostingPostingAnalyticsData interface. + */ +export declare function instanceOfPostingPostingAnalyticsData(value: object): value is PostingPostingAnalyticsData; +export declare function PostingPostingAnalyticsDataFromJSON(json: any): PostingPostingAnalyticsData; +export declare function PostingPostingAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingAnalyticsData; +export declare function PostingPostingAnalyticsDataToJSON(value?: PostingPostingAnalyticsData | null): any; diff --git a/dist/models/PostingPostingAnalyticsData.js b/dist/models/PostingPostingAnalyticsData.js new file mode 100644 index 0000000..eeb744f --- /dev/null +++ b/dist/models/PostingPostingAnalyticsData.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingAnalyticsData = instanceOfPostingPostingAnalyticsData; +exports.PostingPostingAnalyticsDataFromJSON = PostingPostingAnalyticsDataFromJSON; +exports.PostingPostingAnalyticsDataFromJSONTyped = PostingPostingAnalyticsDataFromJSONTyped; +exports.PostingPostingAnalyticsDataToJSON = PostingPostingAnalyticsDataToJSON; +/** + * Check if a given object implements the PostingPostingAnalyticsData interface. + */ +function instanceOfPostingPostingAnalyticsData(value) { + return true; +} +function PostingPostingAnalyticsDataFromJSON(json) { + return PostingPostingAnalyticsDataFromJSONTyped(json, false); +} +function PostingPostingAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function PostingPostingAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/PostingPostingFBSActCheckStatusRequest.d.ts b/dist/models/PostingPostingFBSActCheckStatusRequest.d.ts new file mode 100644 index 0000000..d7c430e --- /dev/null +++ b/dist/models/PostingPostingFBSActCheckStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSActCheckStatusRequest + */ +export interface PostingPostingFBSActCheckStatusRequest { + /** + * Номер задания на формирование документов (также идентификатор перевозки) из метода [POST /v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate). + * @type {number} + * @memberof PostingPostingFBSActCheckStatusRequest + */ + id: number; +} +/** + * Check if a given object implements the PostingPostingFBSActCheckStatusRequest interface. + */ +export declare function instanceOfPostingPostingFBSActCheckStatusRequest(value: object): value is PostingPostingFBSActCheckStatusRequest; +export declare function PostingPostingFBSActCheckStatusRequestFromJSON(json: any): PostingPostingFBSActCheckStatusRequest; +export declare function PostingPostingFBSActCheckStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActCheckStatusRequest; +export declare function PostingPostingFBSActCheckStatusRequestToJSON(value?: PostingPostingFBSActCheckStatusRequest | null): any; diff --git a/dist/models/PostingPostingFBSActCheckStatusRequest.js b/dist/models/PostingPostingFBSActCheckStatusRequest.js new file mode 100644 index 0000000..f95c8e7 --- /dev/null +++ b/dist/models/PostingPostingFBSActCheckStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSActCheckStatusRequest = instanceOfPostingPostingFBSActCheckStatusRequest; +exports.PostingPostingFBSActCheckStatusRequestFromJSON = PostingPostingFBSActCheckStatusRequestFromJSON; +exports.PostingPostingFBSActCheckStatusRequestFromJSONTyped = PostingPostingFBSActCheckStatusRequestFromJSONTyped; +exports.PostingPostingFBSActCheckStatusRequestToJSON = PostingPostingFBSActCheckStatusRequestToJSON; +/** + * Check if a given object implements the PostingPostingFBSActCheckStatusRequest interface. + */ +function instanceOfPostingPostingFBSActCheckStatusRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function PostingPostingFBSActCheckStatusRequestFromJSON(json) { + return PostingPostingFBSActCheckStatusRequestFromJSONTyped(json, false); +} +function PostingPostingFBSActCheckStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function PostingPostingFBSActCheckStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/PostingPostingFBSActCheckStatusResponse.d.ts b/dist/models/PostingPostingFBSActCheckStatusResponse.d.ts new file mode 100644 index 0000000..265d272 --- /dev/null +++ b/dist/models/PostingPostingFBSActCheckStatusResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFBSActCheckStatusResponseStatus } from './PostingFBSActCheckStatusResponseStatus'; +/** + * + * @export + * @interface PostingPostingFBSActCheckStatusResponse + */ +export interface PostingPostingFBSActCheckStatusResponse { + /** + * + * @type {PostingFBSActCheckStatusResponseStatus} + * @memberof PostingPostingFBSActCheckStatusResponse + */ + result?: PostingFBSActCheckStatusResponseStatus; +} +/** + * Check if a given object implements the PostingPostingFBSActCheckStatusResponse interface. + */ +export declare function instanceOfPostingPostingFBSActCheckStatusResponse(value: object): value is PostingPostingFBSActCheckStatusResponse; +export declare function PostingPostingFBSActCheckStatusResponseFromJSON(json: any): PostingPostingFBSActCheckStatusResponse; +export declare function PostingPostingFBSActCheckStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActCheckStatusResponse; +export declare function PostingPostingFBSActCheckStatusResponseToJSON(value?: PostingPostingFBSActCheckStatusResponse | null): any; diff --git a/dist/models/PostingPostingFBSActCheckStatusResponse.js b/dist/models/PostingPostingFBSActCheckStatusResponse.js new file mode 100644 index 0000000..f9ec665 --- /dev/null +++ b/dist/models/PostingPostingFBSActCheckStatusResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSActCheckStatusResponse = instanceOfPostingPostingFBSActCheckStatusResponse; +exports.PostingPostingFBSActCheckStatusResponseFromJSON = PostingPostingFBSActCheckStatusResponseFromJSON; +exports.PostingPostingFBSActCheckStatusResponseFromJSONTyped = PostingPostingFBSActCheckStatusResponseFromJSONTyped; +exports.PostingPostingFBSActCheckStatusResponseToJSON = PostingPostingFBSActCheckStatusResponseToJSON; +const PostingFBSActCheckStatusResponseStatus_1 = require("./PostingFBSActCheckStatusResponseStatus"); +/** + * Check if a given object implements the PostingPostingFBSActCheckStatusResponse interface. + */ +function instanceOfPostingPostingFBSActCheckStatusResponse(value) { + return true; +} +function PostingPostingFBSActCheckStatusResponseFromJSON(json) { + return PostingPostingFBSActCheckStatusResponseFromJSONTyped(json, false); +} +function PostingPostingFBSActCheckStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, PostingFBSActCheckStatusResponseStatus_1.PostingFBSActCheckStatusResponseStatusFromJSON)(json['result']), + }; +} +function PostingPostingFBSActCheckStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, PostingFBSActCheckStatusResponseStatus_1.PostingFBSActCheckStatusResponseStatusToJSON)(value['result']), + }; +} diff --git a/dist/models/PostingPostingFBSActCreateRequest.d.ts b/dist/models/PostingPostingFBSActCreateRequest.d.ts new file mode 100644 index 0000000..aef2133 --- /dev/null +++ b/dist/models/PostingPostingFBSActCreateRequest.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSActCreateRequest + */ +export interface PostingPostingFBSActCreateRequest { + /** + * Количество грузовых мест. + * + * Используйте параметр, если вы подключены к доверительной приёмке и отгружаете заказы грузовыми местами. Если вы не подключены к доверительной приёмке, пропустите его. + * + * [Подробнее в Базе знаний продавца](https://docs.ozon.ru/partners/prodayoa-so-svoego-sklada-fbs/doveritel-naya-priemka-gruzovogo-mesta) + * + * @type {number} + * @memberof PostingPostingFBSActCreateRequest + */ + containers_count?: number; + /** + * Идентификатор метода доставки. Для realFBS-складов получите его с помощью метода [/v2/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodListV2). Для FBS-складов используйте значение параметра `warehouse_id`. Его можно получить с помощью метода [/v2/warehouse/list](#operation/WarehouseListV2). + * @type {number} + * @memberof PostingPostingFBSActCreateRequest + */ + delivery_method_id: number; + /** + * Дата отгрузки. + * @type {string} + * @memberof PostingPostingFBSActCreateRequest + */ + departure_date?: string; +} +/** + * Check if a given object implements the PostingPostingFBSActCreateRequest interface. + */ +export declare function instanceOfPostingPostingFBSActCreateRequest(value: object): value is PostingPostingFBSActCreateRequest; +export declare function PostingPostingFBSActCreateRequestFromJSON(json: any): PostingPostingFBSActCreateRequest; +export declare function PostingPostingFBSActCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActCreateRequest; +export declare function PostingPostingFBSActCreateRequestToJSON(value?: PostingPostingFBSActCreateRequest | null): any; diff --git a/dist/models/PostingPostingFBSActCreateRequest.js b/dist/models/PostingPostingFBSActCreateRequest.js new file mode 100644 index 0000000..87740a6 --- /dev/null +++ b/dist/models/PostingPostingFBSActCreateRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSActCreateRequest = instanceOfPostingPostingFBSActCreateRequest; +exports.PostingPostingFBSActCreateRequestFromJSON = PostingPostingFBSActCreateRequestFromJSON; +exports.PostingPostingFBSActCreateRequestFromJSONTyped = PostingPostingFBSActCreateRequestFromJSONTyped; +exports.PostingPostingFBSActCreateRequestToJSON = PostingPostingFBSActCreateRequestToJSON; +/** + * Check if a given object implements the PostingPostingFBSActCreateRequest interface. + */ +function instanceOfPostingPostingFBSActCreateRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + return true; +} +function PostingPostingFBSActCreateRequestFromJSON(json) { + return PostingPostingFBSActCreateRequestFromJSONTyped(json, false); +} +function PostingPostingFBSActCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'containers_count': json['containers_count'] == null ? undefined : json['containers_count'], + 'delivery_method_id': json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +function PostingPostingFBSActCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'containers_count': value['containers_count'], + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/models/PostingPostingFBSActCreateResponse.d.ts b/dist/models/PostingPostingFBSActCreateResponse.d.ts new file mode 100644 index 0000000..5fb6dd6 --- /dev/null +++ b/dist/models/PostingPostingFBSActCreateResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFBSActCreateResponseAct } from './PostingFBSActCreateResponseAct'; +/** + * + * @export + * @interface PostingPostingFBSActCreateResponse + */ +export interface PostingPostingFBSActCreateResponse { + /** + * + * @type {PostingFBSActCreateResponseAct} + * @memberof PostingPostingFBSActCreateResponse + */ + result?: PostingFBSActCreateResponseAct; +} +/** + * Check if a given object implements the PostingPostingFBSActCreateResponse interface. + */ +export declare function instanceOfPostingPostingFBSActCreateResponse(value: object): value is PostingPostingFBSActCreateResponse; +export declare function PostingPostingFBSActCreateResponseFromJSON(json: any): PostingPostingFBSActCreateResponse; +export declare function PostingPostingFBSActCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActCreateResponse; +export declare function PostingPostingFBSActCreateResponseToJSON(value?: PostingPostingFBSActCreateResponse | null): any; diff --git a/dist/models/PostingPostingFBSActCreateResponse.js b/dist/models/PostingPostingFBSActCreateResponse.js new file mode 100644 index 0000000..19af5bd --- /dev/null +++ b/dist/models/PostingPostingFBSActCreateResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSActCreateResponse = instanceOfPostingPostingFBSActCreateResponse; +exports.PostingPostingFBSActCreateResponseFromJSON = PostingPostingFBSActCreateResponseFromJSON; +exports.PostingPostingFBSActCreateResponseFromJSONTyped = PostingPostingFBSActCreateResponseFromJSONTyped; +exports.PostingPostingFBSActCreateResponseToJSON = PostingPostingFBSActCreateResponseToJSON; +const PostingFBSActCreateResponseAct_1 = require("./PostingFBSActCreateResponseAct"); +/** + * Check if a given object implements the PostingPostingFBSActCreateResponse interface. + */ +function instanceOfPostingPostingFBSActCreateResponse(value) { + return true; +} +function PostingPostingFBSActCreateResponseFromJSON(json) { + return PostingPostingFBSActCreateResponseFromJSONTyped(json, false); +} +function PostingPostingFBSActCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, PostingFBSActCreateResponseAct_1.PostingFBSActCreateResponseActFromJSON)(json['result']), + }; +} +function PostingPostingFBSActCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, PostingFBSActCreateResponseAct_1.PostingFBSActCreateResponseActToJSON)(value['result']), + }; +} diff --git a/dist/models/PostingPostingFBSActGetContainerLabelsRequest.d.ts b/dist/models/PostingPostingFBSActGetContainerLabelsRequest.d.ts new file mode 100644 index 0000000..b1d7f8c --- /dev/null +++ b/dist/models/PostingPostingFBSActGetContainerLabelsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSActGetContainerLabelsRequest + */ +export interface PostingPostingFBSActGetContainerLabelsRequest { + /** + * Идентификатор перевозки из метода [/v1/carriage/create](#operation/CarriageAPI_CarriageCreate). + * @type {number} + * @memberof PostingPostingFBSActGetContainerLabelsRequest + */ + id: number; +} +/** + * Check if a given object implements the PostingPostingFBSActGetContainerLabelsRequest interface. + */ +export declare function instanceOfPostingPostingFBSActGetContainerLabelsRequest(value: object): value is PostingPostingFBSActGetContainerLabelsRequest; +export declare function PostingPostingFBSActGetContainerLabelsRequestFromJSON(json: any): PostingPostingFBSActGetContainerLabelsRequest; +export declare function PostingPostingFBSActGetContainerLabelsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActGetContainerLabelsRequest; +export declare function PostingPostingFBSActGetContainerLabelsRequestToJSON(value?: PostingPostingFBSActGetContainerLabelsRequest | null): any; diff --git a/dist/models/PostingPostingFBSActGetContainerLabelsRequest.js b/dist/models/PostingPostingFBSActGetContainerLabelsRequest.js new file mode 100644 index 0000000..acaa06f --- /dev/null +++ b/dist/models/PostingPostingFBSActGetContainerLabelsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSActGetContainerLabelsRequest = instanceOfPostingPostingFBSActGetContainerLabelsRequest; +exports.PostingPostingFBSActGetContainerLabelsRequestFromJSON = PostingPostingFBSActGetContainerLabelsRequestFromJSON; +exports.PostingPostingFBSActGetContainerLabelsRequestFromJSONTyped = PostingPostingFBSActGetContainerLabelsRequestFromJSONTyped; +exports.PostingPostingFBSActGetContainerLabelsRequestToJSON = PostingPostingFBSActGetContainerLabelsRequestToJSON; +/** + * Check if a given object implements the PostingPostingFBSActGetContainerLabelsRequest interface. + */ +function instanceOfPostingPostingFBSActGetContainerLabelsRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function PostingPostingFBSActGetContainerLabelsRequestFromJSON(json) { + return PostingPostingFBSActGetContainerLabelsRequestFromJSONTyped(json, false); +} +function PostingPostingFBSActGetContainerLabelsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function PostingPostingFBSActGetContainerLabelsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/PostingPostingFBSActGetContainerLabelsResponse.d.ts b/dist/models/PostingPostingFBSActGetContainerLabelsResponse.d.ts new file mode 100644 index 0000000..8e8b76e --- /dev/null +++ b/dist/models/PostingPostingFBSActGetContainerLabelsResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSActGetContainerLabelsResponse + */ +export interface PostingPostingFBSActGetContainerLabelsResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof PostingPostingFBSActGetContainerLabelsResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof PostingPostingFBSActGetContainerLabelsResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof PostingPostingFBSActGetContainerLabelsResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the PostingPostingFBSActGetContainerLabelsResponse interface. + */ +export declare function instanceOfPostingPostingFBSActGetContainerLabelsResponse(value: object): value is PostingPostingFBSActGetContainerLabelsResponse; +export declare function PostingPostingFBSActGetContainerLabelsResponseFromJSON(json: any): PostingPostingFBSActGetContainerLabelsResponse; +export declare function PostingPostingFBSActGetContainerLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSActGetContainerLabelsResponse; +export declare function PostingPostingFBSActGetContainerLabelsResponseToJSON(value?: PostingPostingFBSActGetContainerLabelsResponse | null): any; diff --git a/dist/models/PostingPostingFBSActGetContainerLabelsResponse.js b/dist/models/PostingPostingFBSActGetContainerLabelsResponse.js new file mode 100644 index 0000000..d0d4d26 --- /dev/null +++ b/dist/models/PostingPostingFBSActGetContainerLabelsResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSActGetContainerLabelsResponse = instanceOfPostingPostingFBSActGetContainerLabelsResponse; +exports.PostingPostingFBSActGetContainerLabelsResponseFromJSON = PostingPostingFBSActGetContainerLabelsResponseFromJSON; +exports.PostingPostingFBSActGetContainerLabelsResponseFromJSONTyped = PostingPostingFBSActGetContainerLabelsResponseFromJSONTyped; +exports.PostingPostingFBSActGetContainerLabelsResponseToJSON = PostingPostingFBSActGetContainerLabelsResponseToJSON; +/** + * Check if a given object implements the PostingPostingFBSActGetContainerLabelsResponse interface. + */ +function instanceOfPostingPostingFBSActGetContainerLabelsResponse(value) { + return true; +} +function PostingPostingFBSActGetContainerLabelsResponseFromJSON(json) { + return PostingPostingFBSActGetContainerLabelsResponseFromJSONTyped(json, false); +} +function PostingPostingFBSActGetContainerLabelsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +function PostingPostingFBSActGetContainerLabelsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/models/PostingPostingFBSGetActRequest.d.ts b/dist/models/PostingPostingFBSGetActRequest.d.ts new file mode 100644 index 0000000..88e617a --- /dev/null +++ b/dist/models/PostingPostingFBSGetActRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSGetActRequest + */ +export interface PostingPostingFBSGetActRequest { + /** + * Номер задания на формирование документов (также идентификатор перевозки) из методов [/v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate) или [/v1/carriage/create](#operation/CarriageAPI_CarriageCreate). + * @type {number} + * @memberof PostingPostingFBSGetActRequest + */ + id: number; +} +/** + * Check if a given object implements the PostingPostingFBSGetActRequest interface. + */ +export declare function instanceOfPostingPostingFBSGetActRequest(value: object): value is PostingPostingFBSGetActRequest; +export declare function PostingPostingFBSGetActRequestFromJSON(json: any): PostingPostingFBSGetActRequest; +export declare function PostingPostingFBSGetActRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSGetActRequest; +export declare function PostingPostingFBSGetActRequestToJSON(value?: PostingPostingFBSGetActRequest | null): any; diff --git a/dist/models/PostingPostingFBSGetActRequest.js b/dist/models/PostingPostingFBSGetActRequest.js new file mode 100644 index 0000000..9bfc98b --- /dev/null +++ b/dist/models/PostingPostingFBSGetActRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSGetActRequest = instanceOfPostingPostingFBSGetActRequest; +exports.PostingPostingFBSGetActRequestFromJSON = PostingPostingFBSGetActRequestFromJSON; +exports.PostingPostingFBSGetActRequestFromJSONTyped = PostingPostingFBSGetActRequestFromJSONTyped; +exports.PostingPostingFBSGetActRequestToJSON = PostingPostingFBSGetActRequestToJSON; +/** + * Check if a given object implements the PostingPostingFBSGetActRequest interface. + */ +function instanceOfPostingPostingFBSGetActRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function PostingPostingFBSGetActRequestFromJSON(json) { + return PostingPostingFBSGetActRequestFromJSONTyped(json, false); +} +function PostingPostingFBSGetActRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function PostingPostingFBSGetActRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/PostingPostingFBSGetActResponse.d.ts b/dist/models/PostingPostingFBSGetActResponse.d.ts new file mode 100644 index 0000000..c655f01 --- /dev/null +++ b/dist/models/PostingPostingFBSGetActResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSGetActResponse + */ +export interface PostingPostingFBSGetActResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof PostingPostingFBSGetActResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof PostingPostingFBSGetActResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof PostingPostingFBSGetActResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the PostingPostingFBSGetActResponse interface. + */ +export declare function instanceOfPostingPostingFBSGetActResponse(value: object): value is PostingPostingFBSGetActResponse; +export declare function PostingPostingFBSGetActResponseFromJSON(json: any): PostingPostingFBSGetActResponse; +export declare function PostingPostingFBSGetActResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSGetActResponse; +export declare function PostingPostingFBSGetActResponseToJSON(value?: PostingPostingFBSGetActResponse | null): any; diff --git a/dist/models/PostingPostingFBSGetActResponse.js b/dist/models/PostingPostingFBSGetActResponse.js new file mode 100644 index 0000000..8d28ce5 --- /dev/null +++ b/dist/models/PostingPostingFBSGetActResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSGetActResponse = instanceOfPostingPostingFBSGetActResponse; +exports.PostingPostingFBSGetActResponseFromJSON = PostingPostingFBSGetActResponseFromJSON; +exports.PostingPostingFBSGetActResponseFromJSONTyped = PostingPostingFBSGetActResponseFromJSONTyped; +exports.PostingPostingFBSGetActResponseToJSON = PostingPostingFBSGetActResponseToJSON; +/** + * Check if a given object implements the PostingPostingFBSGetActResponse interface. + */ +function instanceOfPostingPostingFBSGetActResponse(value) { + return true; +} +function PostingPostingFBSGetActResponseFromJSON(json) { + return PostingPostingFBSGetActResponseFromJSONTyped(json, false); +} +function PostingPostingFBSGetActResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +function PostingPostingFBSGetActResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/models/PostingPostingFBSPackageLabelRequest.d.ts b/dist/models/PostingPostingFBSPackageLabelRequest.d.ts new file mode 100644 index 0000000..75498f6 --- /dev/null +++ b/dist/models/PostingPostingFBSPackageLabelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSPackageLabelRequest + */ +export interface PostingPostingFBSPackageLabelRequest { + /** + * Идентификатор отправления. + * @type {Array} + * @memberof PostingPostingFBSPackageLabelRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the PostingPostingFBSPackageLabelRequest interface. + */ +export declare function instanceOfPostingPostingFBSPackageLabelRequest(value: object): value is PostingPostingFBSPackageLabelRequest; +export declare function PostingPostingFBSPackageLabelRequestFromJSON(json: any): PostingPostingFBSPackageLabelRequest; +export declare function PostingPostingFBSPackageLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSPackageLabelRequest; +export declare function PostingPostingFBSPackageLabelRequestToJSON(value?: PostingPostingFBSPackageLabelRequest | null): any; diff --git a/dist/models/PostingPostingFBSPackageLabelRequest.js b/dist/models/PostingPostingFBSPackageLabelRequest.js new file mode 100644 index 0000000..09caa8d --- /dev/null +++ b/dist/models/PostingPostingFBSPackageLabelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSPackageLabelRequest = instanceOfPostingPostingFBSPackageLabelRequest; +exports.PostingPostingFBSPackageLabelRequestFromJSON = PostingPostingFBSPackageLabelRequestFromJSON; +exports.PostingPostingFBSPackageLabelRequestFromJSONTyped = PostingPostingFBSPackageLabelRequestFromJSONTyped; +exports.PostingPostingFBSPackageLabelRequestToJSON = PostingPostingFBSPackageLabelRequestToJSON; +/** + * Check if a given object implements the PostingPostingFBSPackageLabelRequest interface. + */ +function instanceOfPostingPostingFBSPackageLabelRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingPostingFBSPackageLabelRequestFromJSON(json) { + return PostingPostingFBSPackageLabelRequestFromJSONTyped(json, false); +} +function PostingPostingFBSPackageLabelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function PostingPostingFBSPackageLabelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/PostingPostingFBSPackageLabelResponse.d.ts b/dist/models/PostingPostingFBSPackageLabelResponse.d.ts new file mode 100644 index 0000000..bac1560 --- /dev/null +++ b/dist/models/PostingPostingFBSPackageLabelResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingFBSPackageLabelResponse + */ +export interface PostingPostingFBSPackageLabelResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof PostingPostingFBSPackageLabelResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof PostingPostingFBSPackageLabelResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof PostingPostingFBSPackageLabelResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the PostingPostingFBSPackageLabelResponse interface. + */ +export declare function instanceOfPostingPostingFBSPackageLabelResponse(value: object): value is PostingPostingFBSPackageLabelResponse; +export declare function PostingPostingFBSPackageLabelResponseFromJSON(json: any): PostingPostingFBSPackageLabelResponse; +export declare function PostingPostingFBSPackageLabelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFBSPackageLabelResponse; +export declare function PostingPostingFBSPackageLabelResponseToJSON(value?: PostingPostingFBSPackageLabelResponse | null): any; diff --git a/dist/models/PostingPostingFBSPackageLabelResponse.js b/dist/models/PostingPostingFBSPackageLabelResponse.js new file mode 100644 index 0000000..cc405db --- /dev/null +++ b/dist/models/PostingPostingFBSPackageLabelResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFBSPackageLabelResponse = instanceOfPostingPostingFBSPackageLabelResponse; +exports.PostingPostingFBSPackageLabelResponseFromJSON = PostingPostingFBSPackageLabelResponseFromJSON; +exports.PostingPostingFBSPackageLabelResponseFromJSONTyped = PostingPostingFBSPackageLabelResponseFromJSONTyped; +exports.PostingPostingFBSPackageLabelResponseToJSON = PostingPostingFBSPackageLabelResponseToJSON; +/** + * Check if a given object implements the PostingPostingFBSPackageLabelResponse interface. + */ +function instanceOfPostingPostingFBSPackageLabelResponse(value) { + return true; +} +function PostingPostingFBSPackageLabelResponseFromJSON(json) { + return PostingPostingFBSPackageLabelResponseFromJSONTyped(json, false); +} +function PostingPostingFBSPackageLabelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +function PostingPostingFBSPackageLabelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/models/PostingPostingFinancialData.d.ts b/dist/models/PostingPostingFinancialData.d.ts new file mode 100644 index 0000000..9e9e3ca --- /dev/null +++ b/dist/models/PostingPostingFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFinancialDataProduct } from './PostingFinancialDataProduct'; +/** + * Финансовые данные. + * @export + * @interface PostingPostingFinancialData + */ +export interface PostingPostingFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingPostingFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingPostingFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingPostingFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingPostingFinancialData interface. + */ +export declare function instanceOfPostingPostingFinancialData(value: object): value is PostingPostingFinancialData; +export declare function PostingPostingFinancialDataFromJSON(json: any): PostingPostingFinancialData; +export declare function PostingPostingFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingFinancialData; +export declare function PostingPostingFinancialDataToJSON(value?: PostingPostingFinancialData | null): any; diff --git a/dist/models/PostingPostingFinancialData.js b/dist/models/PostingPostingFinancialData.js new file mode 100644 index 0000000..728ce09 --- /dev/null +++ b/dist/models/PostingPostingFinancialData.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingFinancialData = instanceOfPostingPostingFinancialData; +exports.PostingPostingFinancialDataFromJSON = PostingPostingFinancialDataFromJSON; +exports.PostingPostingFinancialDataFromJSONTyped = PostingPostingFinancialDataFromJSONTyped; +exports.PostingPostingFinancialDataToJSON = PostingPostingFinancialDataToJSON; +const PostingFinancialDataProduct_1 = require("./PostingFinancialDataProduct"); +/** + * Check if a given object implements the PostingPostingFinancialData interface. + */ +function instanceOfPostingPostingFinancialData(value) { + return true; +} +function PostingPostingFinancialDataFromJSON(json) { + return PostingPostingFinancialDataFromJSONTyped(json, false); +} +function PostingPostingFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProduct_1.PostingFinancialDataProductFromJSON)), + }; +} +function PostingPostingFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProduct_1.PostingFinancialDataProductToJSON)), + }; +} diff --git a/dist/models/PostingPostingProduct.d.ts b/dist/models/PostingPostingProduct.d.ts new file mode 100644 index 0000000..4b62f2a --- /dev/null +++ b/dist/models/PostingPostingProduct.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingProduct + */ +export interface PostingPostingProduct { + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof PostingPostingProduct + */ + currency_code?: string; + /** + * Название товара. + * @type {string} + * @memberof PostingPostingProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingPostingProduct + */ + offer_id?: string; + /** + * Цена товара. + * @type {string} + * @memberof PostingPostingProduct + */ + price?: string; + /** + * Количество кодов цифровых товаров, которое нужно передать по товару в отправлении. Передайте коды цифровых товаров с помощью метода [/v1/posting/digital/codes/upload](#operation/UploadPostingCodes). + * @type {number} + * @memberof PostingPostingProduct + */ + required_qty_for_digital_code?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingPostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the PostingPostingProduct interface. + */ +export declare function instanceOfPostingPostingProduct(value: object): value is PostingPostingProduct; +export declare function PostingPostingProductFromJSON(json: any): PostingPostingProduct; +export declare function PostingPostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingProduct; +export declare function PostingPostingProductToJSON(value?: PostingPostingProduct | null): any; diff --git a/dist/models/PostingPostingProduct.js b/dist/models/PostingPostingProduct.js new file mode 100644 index 0000000..a3b3f59 --- /dev/null +++ b/dist/models/PostingPostingProduct.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingProduct = instanceOfPostingPostingProduct; +exports.PostingPostingProductFromJSON = PostingPostingProductFromJSON; +exports.PostingPostingProductFromJSONTyped = PostingPostingProductFromJSONTyped; +exports.PostingPostingProductToJSON = PostingPostingProductToJSON; +/** + * Check if a given object implements the PostingPostingProduct interface. + */ +function instanceOfPostingPostingProduct(value) { + return true; +} +function PostingPostingProductFromJSON(json) { + return PostingPostingProductFromJSONTyped(json, false); +} +function PostingPostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'required_qty_for_digital_code': json['required_qty_for_digital_code'] == null ? undefined : json['required_qty_for_digital_code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function PostingPostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'required_qty_for_digital_code': value['required_qty_for_digital_code'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/PostingPostingProductCancelRequest.d.ts b/dist/models/PostingPostingProductCancelRequest.d.ts new file mode 100644 index 0000000..759265b --- /dev/null +++ b/dist/models/PostingPostingProductCancelRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingProductCancelRequestItem } from './PostingProductCancelRequestItem'; +/** + * + * @export + * @interface PostingPostingProductCancelRequest + */ +export interface PostingPostingProductCancelRequest { + /** + * Идентификатор причины отмены отправления товара. + * @type {number} + * @memberof PostingPostingProductCancelRequest + */ + cancel_reason_id: number; + /** + * Обязательное поле. Дополнительная информация по отмене. + * @type {string} + * @memberof PostingPostingProductCancelRequest + */ + cancel_reason_message: string; + /** + * Информация о товарах. + * @type {Array} + * @memberof PostingPostingProductCancelRequest + */ + items: Array; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingPostingProductCancelRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the PostingPostingProductCancelRequest interface. + */ +export declare function instanceOfPostingPostingProductCancelRequest(value: object): value is PostingPostingProductCancelRequest; +export declare function PostingPostingProductCancelRequestFromJSON(json: any): PostingPostingProductCancelRequest; +export declare function PostingPostingProductCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingProductCancelRequest; +export declare function PostingPostingProductCancelRequestToJSON(value?: PostingPostingProductCancelRequest | null): any; diff --git a/dist/models/PostingPostingProductCancelRequest.js b/dist/models/PostingPostingProductCancelRequest.js new file mode 100644 index 0000000..dcd3461 --- /dev/null +++ b/dist/models/PostingPostingProductCancelRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingProductCancelRequest = instanceOfPostingPostingProductCancelRequest; +exports.PostingPostingProductCancelRequestFromJSON = PostingPostingProductCancelRequestFromJSON; +exports.PostingPostingProductCancelRequestFromJSONTyped = PostingPostingProductCancelRequestFromJSONTyped; +exports.PostingPostingProductCancelRequestToJSON = PostingPostingProductCancelRequestToJSON; +const PostingProductCancelRequestItem_1 = require("./PostingProductCancelRequestItem"); +/** + * Check if a given object implements the PostingPostingProductCancelRequest interface. + */ +function instanceOfPostingPostingProductCancelRequest(value) { + if (!('cancel_reason_id' in value) || value['cancel_reason_id'] === undefined) + return false; + if (!('cancel_reason_message' in value) || value['cancel_reason_message'] === undefined) + return false; + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingPostingProductCancelRequestFromJSON(json) { + return PostingPostingProductCancelRequestFromJSONTyped(json, false); +} +function PostingPostingProductCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason_id': json['cancel_reason_id'], + 'cancel_reason_message': json['cancel_reason_message'], + 'items': (json['items'].map(PostingProductCancelRequestItem_1.PostingProductCancelRequestItemFromJSON)), + 'posting_number': json['posting_number'], + }; +} +function PostingPostingProductCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason_id': value['cancel_reason_id'], + 'cancel_reason_message': value['cancel_reason_message'], + 'items': (value['items'].map(PostingProductCancelRequestItem_1.PostingProductCancelRequestItemToJSON)), + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/PostingPostingProductCancelResponse.d.ts b/dist/models/PostingPostingProductCancelResponse.d.ts new file mode 100644 index 0000000..6ba8d02 --- /dev/null +++ b/dist/models/PostingPostingProductCancelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingPostingProductCancelResponse + */ +export interface PostingPostingProductCancelResponse { + /** + * Номер отправления. + * @type {string} + * @memberof PostingPostingProductCancelResponse + */ + result?: string; +} +/** + * Check if a given object implements the PostingPostingProductCancelResponse interface. + */ +export declare function instanceOfPostingPostingProductCancelResponse(value: object): value is PostingPostingProductCancelResponse; +export declare function PostingPostingProductCancelResponseFromJSON(json: any): PostingPostingProductCancelResponse; +export declare function PostingPostingProductCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingPostingProductCancelResponse; +export declare function PostingPostingProductCancelResponseToJSON(value?: PostingPostingProductCancelResponse | null): any; diff --git a/dist/models/PostingPostingProductCancelResponse.js b/dist/models/PostingPostingProductCancelResponse.js new file mode 100644 index 0000000..326d578 --- /dev/null +++ b/dist/models/PostingPostingProductCancelResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingPostingProductCancelResponse = instanceOfPostingPostingProductCancelResponse; +exports.PostingPostingProductCancelResponseFromJSON = PostingPostingProductCancelResponseFromJSON; +exports.PostingPostingProductCancelResponseFromJSONTyped = PostingPostingProductCancelResponseFromJSONTyped; +exports.PostingPostingProductCancelResponseToJSON = PostingPostingProductCancelResponseToJSON; +/** + * Check if a given object implements the PostingPostingProductCancelResponse interface. + */ +function instanceOfPostingPostingProductCancelResponse(value) { + return true; +} +function PostingPostingProductCancelResponseFromJSON(json) { + return PostingPostingProductCancelResponseFromJSONTyped(json, false); +} +function PostingPostingProductCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function PostingPostingProductCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/PostingProductCancelRequestItem.d.ts b/dist/models/PostingProductCancelRequestItem.d.ts new file mode 100644 index 0000000..ce26705 --- /dev/null +++ b/dist/models/PostingProductCancelRequestItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingProductCancelRequestItem + */ +export interface PostingProductCancelRequestItem { + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingProductCancelRequestItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingProductCancelRequestItem + */ + sku: number; +} +/** + * Check if a given object implements the PostingProductCancelRequestItem interface. + */ +export declare function instanceOfPostingProductCancelRequestItem(value: object): value is PostingProductCancelRequestItem; +export declare function PostingProductCancelRequestItemFromJSON(json: any): PostingProductCancelRequestItem; +export declare function PostingProductCancelRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingProductCancelRequestItem; +export declare function PostingProductCancelRequestItemToJSON(value?: PostingProductCancelRequestItem | null): any; diff --git a/dist/models/PostingProductCancelRequestItem.js b/dist/models/PostingProductCancelRequestItem.js new file mode 100644 index 0000000..6b78f00 --- /dev/null +++ b/dist/models/PostingProductCancelRequestItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingProductCancelRequestItem = instanceOfPostingProductCancelRequestItem; +exports.PostingProductCancelRequestItemFromJSON = PostingProductCancelRequestItemFromJSON; +exports.PostingProductCancelRequestItemFromJSONTyped = PostingProductCancelRequestItemFromJSONTyped; +exports.PostingProductCancelRequestItemToJSON = PostingProductCancelRequestItemToJSON; +/** + * Check if a given object implements the PostingProductCancelRequestItem interface. + */ +function instanceOfPostingProductCancelRequestItem(value) { + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function PostingProductCancelRequestItemFromJSON(json) { + return PostingProductCancelRequestItemFromJSONTyped(json, false); +} +function PostingProductCancelRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +function PostingProductCancelRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingRequest.d.ts b/dist/models/PostingV1GetFbpPostingRequest.d.ts new file mode 100644 index 0000000..407ba4a --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV1GetFbpPostingRequest + */ +export interface PostingV1GetFbpPostingRequest { + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingV1GetFbpPostingRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingRequest interface. + */ +export declare function instanceOfPostingV1GetFbpPostingRequest(value: object): value is PostingV1GetFbpPostingRequest; +export declare function PostingV1GetFbpPostingRequestFromJSON(json: any): PostingV1GetFbpPostingRequest; +export declare function PostingV1GetFbpPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingRequest; +export declare function PostingV1GetFbpPostingRequestToJSON(value?: PostingV1GetFbpPostingRequest | null): any; diff --git a/dist/models/PostingV1GetFbpPostingRequest.js b/dist/models/PostingV1GetFbpPostingRequest.js new file mode 100644 index 0000000..7ca3abc --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingRequest = instanceOfPostingV1GetFbpPostingRequest; +exports.PostingV1GetFbpPostingRequestFromJSON = PostingV1GetFbpPostingRequestFromJSON; +exports.PostingV1GetFbpPostingRequestFromJSONTyped = PostingV1GetFbpPostingRequestFromJSONTyped; +exports.PostingV1GetFbpPostingRequestToJSON = PostingV1GetFbpPostingRequestToJSON; +/** + * Check if a given object implements the PostingV1GetFbpPostingRequest interface. + */ +function instanceOfPostingV1GetFbpPostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function PostingV1GetFbpPostingRequestFromJSON(json) { + return PostingV1GetFbpPostingRequestFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function PostingV1GetFbpPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponse.d.ts b/dist/models/PostingV1GetFbpPostingResponse.d.ts new file mode 100644 index 0000000..4876421 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1GetFbpPostingResponsePosting } from './PostingV1GetFbpPostingResponsePosting'; +/** + * + * @export + * @interface PostingV1GetFbpPostingResponse + */ +export interface PostingV1GetFbpPostingResponse { + /** + * + * @type {PostingV1GetFbpPostingResponsePosting} + * @memberof PostingV1GetFbpPostingResponse + */ + posting?: PostingV1GetFbpPostingResponsePosting; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponse interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponse(value: object): value is PostingV1GetFbpPostingResponse; +export declare function PostingV1GetFbpPostingResponseFromJSON(json: any): PostingV1GetFbpPostingResponse; +export declare function PostingV1GetFbpPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponse; +export declare function PostingV1GetFbpPostingResponseToJSON(value?: PostingV1GetFbpPostingResponse | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponse.js b/dist/models/PostingV1GetFbpPostingResponse.js new file mode 100644 index 0000000..fafb7b7 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponse = instanceOfPostingV1GetFbpPostingResponse; +exports.PostingV1GetFbpPostingResponseFromJSON = PostingV1GetFbpPostingResponseFromJSON; +exports.PostingV1GetFbpPostingResponseFromJSONTyped = PostingV1GetFbpPostingResponseFromJSONTyped; +exports.PostingV1GetFbpPostingResponseToJSON = PostingV1GetFbpPostingResponseToJSON; +const PostingV1GetFbpPostingResponsePosting_1 = require("./PostingV1GetFbpPostingResponsePosting"); +/** + * Check if a given object implements the PostingV1GetFbpPostingResponse interface. + */ +function instanceOfPostingV1GetFbpPostingResponse(value) { + return true; +} +function PostingV1GetFbpPostingResponseFromJSON(json) { + return PostingV1GetFbpPostingResponseFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting': json['posting'] == null ? undefined : (0, PostingV1GetFbpPostingResponsePosting_1.PostingV1GetFbpPostingResponsePostingFromJSON)(json['posting']), + }; +} +function PostingV1GetFbpPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting': (0, PostingV1GetFbpPostingResponsePosting_1.PostingV1GetFbpPostingResponsePostingToJSON)(value['posting']), + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePosting.d.ts b/dist/models/PostingV1GetFbpPostingResponsePosting.d.ts new file mode 100644 index 0000000..96cd638 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePosting.d.ts @@ -0,0 +1,101 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1GetFbpPostingResponsePostingFinancialData } from './PostingV1GetFbpPostingResponsePostingFinancialData'; +import type { PostingV1GetFbpPostingResponsePostingAnalyticsData } from './PostingV1GetFbpPostingResponsePostingAnalyticsData'; +import type { PostingV1GetFbpPostingResponsePostingCancellation } from './PostingV1GetFbpPostingResponsePostingCancellation'; +import type { PostingV1GetFbpPostingResponsePostingProducts } from './PostingV1GetFbpPostingResponsePostingProducts'; +/** + * Информация об отправлении. + * @export + * @interface PostingV1GetFbpPostingResponsePosting + */ +export interface PostingV1GetFbpPostingResponsePosting { + /** + * + * @type {PostingV1GetFbpPostingResponsePostingAnalyticsData} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + analytics_data?: PostingV1GetFbpPostingResponsePostingAnalyticsData; + /** + * + * @type {PostingV1GetFbpPostingResponsePostingCancellation} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + cancellation?: PostingV1GetFbpPostingResponsePostingCancellation; + /** + * + * @type {PostingV1GetFbpPostingResponsePostingFinancialData} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + financial_data?: PostingV1GetFbpPostingResponsePostingFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + in_process_at?: string; + /** + * Дата создания заказа. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + order_date?: string; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + order_number?: string; + /** + * Идентификатор отправления. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + products?: Array; + /** + * Статус отправления. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + status?: number; + /** + * Подстатус отправления. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + substatus?: string; + /** + * Идентификатор провайдера доставки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePosting + */ + tpl_provider_id?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePosting interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePosting(value: object): value is PostingV1GetFbpPostingResponsePosting; +export declare function PostingV1GetFbpPostingResponsePostingFromJSON(json: any): PostingV1GetFbpPostingResponsePosting; +export declare function PostingV1GetFbpPostingResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePosting; +export declare function PostingV1GetFbpPostingResponsePostingToJSON(value?: PostingV1GetFbpPostingResponsePosting | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePosting.js b/dist/models/PostingV1GetFbpPostingResponsePosting.js new file mode 100644 index 0000000..5f96f58 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePosting.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePosting = instanceOfPostingV1GetFbpPostingResponsePosting; +exports.PostingV1GetFbpPostingResponsePostingFromJSON = PostingV1GetFbpPostingResponsePostingFromJSON; +exports.PostingV1GetFbpPostingResponsePostingFromJSONTyped = PostingV1GetFbpPostingResponsePostingFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingToJSON = PostingV1GetFbpPostingResponsePostingToJSON; +const PostingV1GetFbpPostingResponsePostingFinancialData_1 = require("./PostingV1GetFbpPostingResponsePostingFinancialData"); +const PostingV1GetFbpPostingResponsePostingAnalyticsData_1 = require("./PostingV1GetFbpPostingResponsePostingAnalyticsData"); +const PostingV1GetFbpPostingResponsePostingCancellation_1 = require("./PostingV1GetFbpPostingResponsePostingCancellation"); +const PostingV1GetFbpPostingResponsePostingProducts_1 = require("./PostingV1GetFbpPostingResponsePostingProducts"); +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePosting interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePosting(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : (0, PostingV1GetFbpPostingResponsePostingAnalyticsData_1.PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON)(json['analytics_data']), + 'cancellation': json['cancellation'] == null ? undefined : (0, PostingV1GetFbpPostingResponsePostingCancellation_1.PostingV1GetFbpPostingResponsePostingCancellationFromJSON)(json['cancellation']), + 'financial_data': json['financial_data'] == null ? undefined : (0, PostingV1GetFbpPostingResponsePostingFinancialData_1.PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'order_date': json['order_date'] == null ? undefined : json['order_date'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV1GetFbpPostingResponsePostingProducts_1.PostingV1GetFbpPostingResponsePostingProductsFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + }; +} +function PostingV1GetFbpPostingResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': (0, PostingV1GetFbpPostingResponsePostingAnalyticsData_1.PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON)(value['analytics_data']), + 'cancellation': (0, PostingV1GetFbpPostingResponsePostingCancellation_1.PostingV1GetFbpPostingResponsePostingCancellationToJSON)(value['cancellation']), + 'financial_data': (0, PostingV1GetFbpPostingResponsePostingFinancialData_1.PostingV1GetFbpPostingResponsePostingFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'order_date': value['order_date'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV1GetFbpPostingResponsePostingProducts_1.PostingV1GetFbpPostingResponsePostingProductsToJSON)), + 'status': value['status'], + 'substatus': value['substatus'], + 'tpl_provider_id': value['tpl_provider_id'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.d.ts b/dist/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.d.ts new file mode 100644 index 0000000..12b66ab --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV1GetFbpPostingResponsePostingAnalyticsData + */ +export interface PostingV1GetFbpPostingResponsePostingAnalyticsData { + /** + * Город доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + delivery_date_begin?: string; + /** + * Дата и время конца доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + delivery_type?: string; + /** + * Регион доставки. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + region?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingAnalyticsData + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingAnalyticsData interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingAnalyticsData(value: object): value is PostingV1GetFbpPostingResponsePostingAnalyticsData; +export declare function PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON(json: any): PostingV1GetFbpPostingResponsePostingAnalyticsData; +export declare function PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingAnalyticsData; +export declare function PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON(value?: PostingV1GetFbpPostingResponsePostingAnalyticsData | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.js b/dist/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.js new file mode 100644 index 0000000..e50c852 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingAnalyticsData.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePostingAnalyticsData = instanceOfPostingV1GetFbpPostingResponsePostingAnalyticsData; +exports.PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON = PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON; +exports.PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSONTyped = PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON = PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingAnalyticsData interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePostingAnalyticsData(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_date_begin': json['delivery_date_begin'] == null ? undefined : json['delivery_date_begin'], + 'delivery_date_end': json['delivery_date_end'] == null ? undefined : json['delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'region': json['region'] == null ? undefined : json['region'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function PostingV1GetFbpPostingResponsePostingAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_date_begin': value['delivery_date_begin'], + 'delivery_date_end': value['delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'region': value['region'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingCancellation.d.ts b/dist/models/PostingV1GetFbpPostingResponsePostingCancellation.d.ts new file mode 100644 index 0000000..162df96 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingCancellation.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV1GetFbpPostingResponsePostingCancellation + */ +export interface PostingV1GetFbpPostingResponsePostingCancellation { + /** + * Причина отмены. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingCancellation + */ + cancel_reason?: string; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingCancellation + */ + cancel_reason_id?: number; + /** + * Инициатор отмены. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingCancellation + */ + cancellation_type?: string; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingCancellation interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingCancellation(value: object): value is PostingV1GetFbpPostingResponsePostingCancellation; +export declare function PostingV1GetFbpPostingResponsePostingCancellationFromJSON(json: any): PostingV1GetFbpPostingResponsePostingCancellation; +export declare function PostingV1GetFbpPostingResponsePostingCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingCancellation; +export declare function PostingV1GetFbpPostingResponsePostingCancellationToJSON(value?: PostingV1GetFbpPostingResponsePostingCancellation | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingCancellation.js b/dist/models/PostingV1GetFbpPostingResponsePostingCancellation.js new file mode 100644 index 0000000..cad72fb --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingCancellation.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePostingCancellation = instanceOfPostingV1GetFbpPostingResponsePostingCancellation; +exports.PostingV1GetFbpPostingResponsePostingCancellationFromJSON = PostingV1GetFbpPostingResponsePostingCancellationFromJSON; +exports.PostingV1GetFbpPostingResponsePostingCancellationFromJSONTyped = PostingV1GetFbpPostingResponsePostingCancellationFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingCancellationToJSON = PostingV1GetFbpPostingResponsePostingCancellationToJSON; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingCancellation interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePostingCancellation(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingCancellationFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingCancellationFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + }; +} +function PostingV1GetFbpPostingResponsePostingCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason': value['cancel_reason'], + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialData.d.ts b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialData.d.ts new file mode 100644 index 0000000..306f41e --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialData.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1GetFbpPostingResponsePostingFinancialDataProducts } from './PostingV1GetFbpPostingResponsePostingFinancialDataProducts'; +/** + * Финансовые данные. + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialData + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialData + */ + cluster_to?: string; + /** + * Стоимость доставки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialData + */ + delivery_amount?: number; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialData interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialData(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialData; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialData; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialData; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialData | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialData.js b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialData.js new file mode 100644 index 0000000..bdaef95 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialData.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePostingFinancialData = instanceOfPostingV1GetFbpPostingResponsePostingFinancialData; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON = PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataFromJSONTyped = PostingV1GetFbpPostingResponsePostingFinancialDataFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataToJSON = PostingV1GetFbpPostingResponsePostingFinancialDataToJSON; +const PostingV1GetFbpPostingResponsePostingFinancialDataProducts_1 = require("./PostingV1GetFbpPostingResponsePostingFinancialDataProducts"); +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialData interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePostingFinancialData(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'delivery_amount': json['delivery_amount'] == null ? undefined : json['delivery_amount'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV1GetFbpPostingResponsePostingFinancialDataProducts_1.PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON)), + }; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'delivery_amount': value['delivery_amount'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV1GetFbpPostingResponsePostingFinancialDataProducts_1.PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON)), + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.d.ts b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.d.ts new file mode 100644 index 0000000..fb728d9 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.d.ts @@ -0,0 +1,97 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions'; +import type { MoneyMoneySellerPrice } from './MoneyMoneySellerPrice'; +import type { MoneyMoneyCustomerPrice } from './MoneyMoneyCustomerPrice'; +import type { PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission'; +import type { MoneyMoneyComissions } from './MoneyMoneyComissions'; +import type { PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission } from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission'; +/** + * + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {MoneyMoneyComissions} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + commissions_price?: MoneyMoneyComissions; + /** + * + * @type {MoneyMoneyCustomerPrice} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + customer_price?: MoneyMoneyCustomerPrice; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + old_price?: number; + /** + * + * @type {PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + posting_commission?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + quantity?: number; + /** + * + * @type {PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + return_commission?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; + /** + * + * @type {MoneyMoneySellerPrice} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + seller_price?: MoneyMoneySellerPrice; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + sku?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProducts interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProducts(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialDataProducts; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialDataProducts; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialDataProducts; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialDataProducts | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.js b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.js new file mode 100644 index 0000000..f3b21bf --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProducts.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProducts = instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProducts; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON = PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSONTyped = PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON = PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON; +const PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions_1 = require("./PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions"); +const MoneyMoneySellerPrice_1 = require("./MoneyMoneySellerPrice"); +const MoneyMoneyCustomerPrice_1 = require("./MoneyMoneyCustomerPrice"); +const PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission_1 = require("./PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission"); +const MoneyMoneyComissions_1 = require("./MoneyMoneyComissions"); +const PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission_1 = require("./PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission"); +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProducts interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProducts(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : (json['actions'].map(PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions_1.PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON)), + 'commissions_price': json['commissions_price'] == null ? undefined : (0, MoneyMoneyComissions_1.MoneyMoneyComissionsFromJSON)(json['commissions_price']), + 'customer_price': json['customer_price'] == null ? undefined : (0, MoneyMoneyCustomerPrice_1.MoneyMoneyCustomerPriceFromJSON)(json['customer_price']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'posting_commission': json['posting_commission'] == null ? undefined : (0, PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission_1.PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON)(json['posting_commission']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'return_commission': json['return_commission'] == null ? undefined : (0, PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission_1.PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON)(json['return_commission']), + 'seller_price': json['seller_price'] == null ? undefined : (0, MoneyMoneySellerPrice_1.MoneyMoneySellerPriceFromJSON)(json['seller_price']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'] == null ? undefined : (value['actions'].map(PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions_1.PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON)), + 'commissions_price': (0, MoneyMoneyComissions_1.MoneyMoneyComissionsToJSON)(value['commissions_price']), + 'customer_price': (0, MoneyMoneyCustomerPrice_1.MoneyMoneyCustomerPriceToJSON)(value['customer_price']), + 'old_price': value['old_price'], + 'posting_commission': (0, PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission_1.PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON)(value['posting_commission']), + 'quantity': value['quantity'], + 'return_commission': (0, PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission_1.PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON)(value['return_commission']), + 'seller_price': (0, MoneyMoneySellerPrice_1.MoneyMoneySellerPriceToJSON)(value['seller_price']), + 'sku': value['sku'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.d.ts b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.d.ts new file mode 100644 index 0000000..8f02881 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions { + /** + * Идентификатор акции. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + action_id?: number; + /** + * Тип акции. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + action_type?: string; + /** + * Дата начала акции. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + date_from?: string; + /** + * Дата окончания акции. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + date_to?: string; + /** + * Название акции. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + description?: string; + /** + * Скидка в процентах. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions + */ + discount_value?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsActions(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.js b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.js new file mode 100644 index 0000000..be5e323 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsActions = instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsActions; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON = PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSONTyped = PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON = PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsActions(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_type': json['action_type'] == null ? undefined : json['action_type'], + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'description': json['description'] == null ? undefined : json['description'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + }; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsActionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_type': value['action_type'], + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'description': value['description'], + 'discount_percent': value['discount_percent'], + 'discount_value': value['discount_value'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.d.ts b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.d.ts new file mode 100644 index 0000000..e3f81f0 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Коммисия за отправление. + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission { + /** + * Сумма. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission + */ + amount?: number; + /** + * Выплата. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission + */ + payout?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.js b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.js new file mode 100644 index 0000000..44bfbf5 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission = instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON = PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSONTyped = PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON = PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'payout': value['payout'], + 'percent': value['percent'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.d.ts b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.d.ts new file mode 100644 index 0000000..60d2b49 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за возврат товара. + * @export + * @interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission + */ +export interface PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission { + /** + * Сумма. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission + */ + amount?: number; + /** + * Выплата. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission + */ + payout?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission(value: object): value is PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON(json: any): PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; +export declare function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON(value?: PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.js b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.js new file mode 100644 index 0000000..bb49908 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission = instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON = PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSONTyped = PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON = PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON; +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +function PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'payout': value['payout'], + 'percent': value['percent'], + }; +} diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingProducts.d.ts b/dist/models/PostingV1GetFbpPostingResponsePostingProducts.d.ts new file mode 100644 index 0000000..4082980 --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingProducts.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyFBPget } from './MoneyMoneyFBPget'; +/** + * + * @export + * @interface PostingV1GetFbpPostingResponsePostingProducts + */ +export interface PostingV1GetFbpPostingResponsePostingProducts { + /** + * `true`, если есть IMEI. + * + * @type {boolean} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + has_imei?: boolean; + /** + * + * @type {MoneyMoneyFBPget} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + marketplace_seller_price?: MoneyMoneyFBPget; + /** + * Название товара. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + sku?: number; + /** + * Максимальный вес экземпляра. + * @type {number} + * @memberof PostingV1GetFbpPostingResponsePostingProducts + */ + weight_max?: number; +} +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingProducts interface. + */ +export declare function instanceOfPostingV1GetFbpPostingResponsePostingProducts(value: object): value is PostingV1GetFbpPostingResponsePostingProducts; +export declare function PostingV1GetFbpPostingResponsePostingProductsFromJSON(json: any): PostingV1GetFbpPostingResponsePostingProducts; +export declare function PostingV1GetFbpPostingResponsePostingProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1GetFbpPostingResponsePostingProducts; +export declare function PostingV1GetFbpPostingResponsePostingProductsToJSON(value?: PostingV1GetFbpPostingResponsePostingProducts | null): any; diff --git a/dist/models/PostingV1GetFbpPostingResponsePostingProducts.js b/dist/models/PostingV1GetFbpPostingResponsePostingProducts.js new file mode 100644 index 0000000..fc79d7b --- /dev/null +++ b/dist/models/PostingV1GetFbpPostingResponsePostingProducts.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1GetFbpPostingResponsePostingProducts = instanceOfPostingV1GetFbpPostingResponsePostingProducts; +exports.PostingV1GetFbpPostingResponsePostingProductsFromJSON = PostingV1GetFbpPostingResponsePostingProductsFromJSON; +exports.PostingV1GetFbpPostingResponsePostingProductsFromJSONTyped = PostingV1GetFbpPostingResponsePostingProductsFromJSONTyped; +exports.PostingV1GetFbpPostingResponsePostingProductsToJSON = PostingV1GetFbpPostingResponsePostingProductsToJSON; +const MoneyMoneyFBPget_1 = require("./MoneyMoneyFBPget"); +/** + * Check if a given object implements the PostingV1GetFbpPostingResponsePostingProducts interface. + */ +function instanceOfPostingV1GetFbpPostingResponsePostingProducts(value) { + return true; +} +function PostingV1GetFbpPostingResponsePostingProductsFromJSON(json) { + return PostingV1GetFbpPostingResponsePostingProductsFromJSONTyped(json, false); +} +function PostingV1GetFbpPostingResponsePostingProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_imei': json['has_imei'] == null ? undefined : json['has_imei'], + 'marketplace_seller_price': json['marketplace_seller_price'] == null ? undefined : (0, MoneyMoneyFBPget_1.MoneyMoneyFBPgetFromJSON)(json['marketplace_seller_price']), + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight_max': json['weight_max'] == null ? undefined : json['weight_max'], + }; +} +function PostingV1GetFbpPostingResponsePostingProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_imei': value['has_imei'], + 'marketplace_seller_price': (0, MoneyMoneyFBPget_1.MoneyMoneyFBPgetToJSON)(value['marketplace_seller_price']), + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'weight_max': value['weight_max'], + }; +} diff --git a/dist/models/PostingV1PostingFbpListRequest.d.ts b/dist/models/PostingV1PostingFbpListRequest.d.ts new file mode 100644 index 0000000..4c22528 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListRequest.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListRequestFilter } from './PostingV1PostingFbpListRequestFilter'; +import type { PostingV1PostingFbpListRequestSortDirEnum } from './PostingV1PostingFbpListRequestSortDirEnum'; +/** + * + * @export + * @interface PostingV1PostingFbpListRequest + */ +export interface PostingV1PostingFbpListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV1PostingFbpListRequest + */ + cursor?: string; + /** + * + * @type {PostingV1PostingFbpListRequestFilter} + * @memberof PostingV1PostingFbpListRequest + */ + filter?: PostingV1PostingFbpListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV1PostingFbpListRequest + */ + limit?: number; + /** + * Параметр, по которому сортируются отправления: + * - `last_change_status_date` — по дате последнего изменения статуса; + * - `in_process_at` — по дате начала обработки. + * + * @type {string} + * @memberof PostingV1PostingFbpListRequest + */ + sort_by?: string; + /** + * + * @type {PostingV1PostingFbpListRequestSortDirEnum} + * @memberof PostingV1PostingFbpListRequest + */ + sort_dir?: PostingV1PostingFbpListRequestSortDirEnum; +} +/** + * Check if a given object implements the PostingV1PostingFbpListRequest interface. + */ +export declare function instanceOfPostingV1PostingFbpListRequest(value: object): value is PostingV1PostingFbpListRequest; +export declare function PostingV1PostingFbpListRequestFromJSON(json: any): PostingV1PostingFbpListRequest; +export declare function PostingV1PostingFbpListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListRequest; +export declare function PostingV1PostingFbpListRequestToJSON(value?: PostingV1PostingFbpListRequest | null): any; diff --git a/dist/models/PostingV1PostingFbpListRequest.js b/dist/models/PostingV1PostingFbpListRequest.js new file mode 100644 index 0000000..1c88e43 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListRequest = instanceOfPostingV1PostingFbpListRequest; +exports.PostingV1PostingFbpListRequestFromJSON = PostingV1PostingFbpListRequestFromJSON; +exports.PostingV1PostingFbpListRequestFromJSONTyped = PostingV1PostingFbpListRequestFromJSONTyped; +exports.PostingV1PostingFbpListRequestToJSON = PostingV1PostingFbpListRequestToJSON; +const PostingV1PostingFbpListRequestFilter_1 = require("./PostingV1PostingFbpListRequestFilter"); +const PostingV1PostingFbpListRequestSortDirEnum_1 = require("./PostingV1PostingFbpListRequestSortDirEnum"); +/** + * Check if a given object implements the PostingV1PostingFbpListRequest interface. + */ +function instanceOfPostingV1PostingFbpListRequest(value) { + return true; +} +function PostingV1PostingFbpListRequestFromJSON(json) { + return PostingV1PostingFbpListRequestFromJSONTyped(json, false); +} +function PostingV1PostingFbpListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, PostingV1PostingFbpListRequestFilter_1.PostingV1PostingFbpListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_by': json['sort_by'] == null ? undefined : json['sort_by'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, PostingV1PostingFbpListRequestSortDirEnum_1.PostingV1PostingFbpListRequestSortDirEnumFromJSON)(json['sort_dir']), + }; +} +function PostingV1PostingFbpListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, PostingV1PostingFbpListRequestFilter_1.PostingV1PostingFbpListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'sort_by': value['sort_by'], + 'sort_dir': (0, PostingV1PostingFbpListRequestSortDirEnum_1.PostingV1PostingFbpListRequestSortDirEnumToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/PostingV1PostingFbpListRequestFilter.d.ts b/dist/models/PostingV1PostingFbpListRequestFilter.d.ts new file mode 100644 index 0000000..e8c8906 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListRequestFilter.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface PostingV1PostingFbpListRequestFilter + */ +export interface PostingV1PostingFbpListRequestFilter { + /** + * Название товара. + * @type {string} + * @memberof PostingV1PostingFbpListRequestFilter + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV1PostingFbpListRequestFilter + */ + offer_id?: string; + /** + * Номера отправлений. + * @type {Array} + * @memberof PostingV1PostingFbpListRequestFilter + */ + posting_numbers?: Array; + /** + * Начало периода. + * @type {string} + * @memberof PostingV1PostingFbpListRequestFilter + */ + since?: string; + /** + * Статус отправления. + * @type {Array} + * @memberof PostingV1PostingFbpListRequestFilter + */ + statuses?: Array; + /** + * Конец периода. + * @type {string} + * @memberof PostingV1PostingFbpListRequestFilter + */ + to?: string; +} +/** + * Check if a given object implements the PostingV1PostingFbpListRequestFilter interface. + */ +export declare function instanceOfPostingV1PostingFbpListRequestFilter(value: object): value is PostingV1PostingFbpListRequestFilter; +export declare function PostingV1PostingFbpListRequestFilterFromJSON(json: any): PostingV1PostingFbpListRequestFilter; +export declare function PostingV1PostingFbpListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListRequestFilter; +export declare function PostingV1PostingFbpListRequestFilterToJSON(value?: PostingV1PostingFbpListRequestFilter | null): any; diff --git a/dist/models/PostingV1PostingFbpListRequestFilter.js b/dist/models/PostingV1PostingFbpListRequestFilter.js new file mode 100644 index 0000000..96e63cb --- /dev/null +++ b/dist/models/PostingV1PostingFbpListRequestFilter.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListRequestFilter = instanceOfPostingV1PostingFbpListRequestFilter; +exports.PostingV1PostingFbpListRequestFilterFromJSON = PostingV1PostingFbpListRequestFilterFromJSON; +exports.PostingV1PostingFbpListRequestFilterFromJSONTyped = PostingV1PostingFbpListRequestFilterFromJSONTyped; +exports.PostingV1PostingFbpListRequestFilterToJSON = PostingV1PostingFbpListRequestFilterToJSON; +/** + * Check if a given object implements the PostingV1PostingFbpListRequestFilter interface. + */ +function instanceOfPostingV1PostingFbpListRequestFilter(value) { + return true; +} +function PostingV1PostingFbpListRequestFilterFromJSON(json) { + return PostingV1PostingFbpListRequestFilterFromJSONTyped(json, false); +} +function PostingV1PostingFbpListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'since': json['since'] == null ? undefined : json['since'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function PostingV1PostingFbpListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'posting_numbers': value['posting_numbers'], + 'since': value['since'], + 'statuses': value['statuses'], + 'to': value['to'], + }; +} diff --git a/dist/models/PostingV1PostingFbpListRequestSortDirEnum.d.ts b/dist/models/PostingV1PostingFbpListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..147e8f6 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV1PostingFbpListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV1PostingFbpListRequestSortDirEnum = typeof PostingV1PostingFbpListRequestSortDirEnum[keyof typeof PostingV1PostingFbpListRequestSortDirEnum]; +export declare function instanceOfPostingV1PostingFbpListRequestSortDirEnum(value: any): boolean; +export declare function PostingV1PostingFbpListRequestSortDirEnumFromJSON(json: any): PostingV1PostingFbpListRequestSortDirEnum; +export declare function PostingV1PostingFbpListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListRequestSortDirEnum; +export declare function PostingV1PostingFbpListRequestSortDirEnumToJSON(value?: PostingV1PostingFbpListRequestSortDirEnum | null): any; diff --git a/dist/models/PostingV1PostingFbpListRequestSortDirEnum.js b/dist/models/PostingV1PostingFbpListRequestSortDirEnum.js new file mode 100644 index 0000000..4da5511 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PostingV1PostingFbpListRequestSortDirEnum = void 0; +exports.instanceOfPostingV1PostingFbpListRequestSortDirEnum = instanceOfPostingV1PostingFbpListRequestSortDirEnum; +exports.PostingV1PostingFbpListRequestSortDirEnumFromJSON = PostingV1PostingFbpListRequestSortDirEnumFromJSON; +exports.PostingV1PostingFbpListRequestSortDirEnumFromJSONTyped = PostingV1PostingFbpListRequestSortDirEnumFromJSONTyped; +exports.PostingV1PostingFbpListRequestSortDirEnumToJSON = PostingV1PostingFbpListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.PostingV1PostingFbpListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfPostingV1PostingFbpListRequestSortDirEnum(value) { + for (const key in exports.PostingV1PostingFbpListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PostingV1PostingFbpListRequestSortDirEnum, key)) { + if (exports.PostingV1PostingFbpListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function PostingV1PostingFbpListRequestSortDirEnumFromJSON(json) { + return PostingV1PostingFbpListRequestSortDirEnumFromJSONTyped(json, false); +} +function PostingV1PostingFbpListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PostingV1PostingFbpListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/PostingV1PostingFbpListResponse.d.ts b/dist/models/PostingV1PostingFbpListResponse.d.ts new file mode 100644 index 0000000..308023f --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListResponsePostings } from './PostingV1PostingFbpListResponsePostings'; +/** + * + * @export + * @interface PostingV1PostingFbpListResponse + */ +export interface PostingV1PostingFbpListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV1PostingFbpListResponse + */ + cursor?: string; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV1PostingFbpListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponse interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponse(value: object): value is PostingV1PostingFbpListResponse; +export declare function PostingV1PostingFbpListResponseFromJSON(json: any): PostingV1PostingFbpListResponse; +export declare function PostingV1PostingFbpListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponse; +export declare function PostingV1PostingFbpListResponseToJSON(value?: PostingV1PostingFbpListResponse | null): any; diff --git a/dist/models/PostingV1PostingFbpListResponse.js b/dist/models/PostingV1PostingFbpListResponse.js new file mode 100644 index 0000000..071c71a --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListResponse = instanceOfPostingV1PostingFbpListResponse; +exports.PostingV1PostingFbpListResponseFromJSON = PostingV1PostingFbpListResponseFromJSON; +exports.PostingV1PostingFbpListResponseFromJSONTyped = PostingV1PostingFbpListResponseFromJSONTyped; +exports.PostingV1PostingFbpListResponseToJSON = PostingV1PostingFbpListResponseToJSON; +const PostingV1PostingFbpListResponsePostings_1 = require("./PostingV1PostingFbpListResponsePostings"); +/** + * Check if a given object implements the PostingV1PostingFbpListResponse interface. + */ +function instanceOfPostingV1PostingFbpListResponse(value) { + return true; +} +function PostingV1PostingFbpListResponseFromJSON(json) { + return PostingV1PostingFbpListResponseFromJSONTyped(json, false); +} +function PostingV1PostingFbpListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV1PostingFbpListResponsePostings_1.PostingV1PostingFbpListResponsePostingsFromJSON)), + }; +} +function PostingV1PostingFbpListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV1PostingFbpListResponsePostings_1.PostingV1PostingFbpListResponsePostingsToJSON)), + }; +} diff --git a/dist/models/PostingV1PostingFbpListResponsePostings.d.ts b/dist/models/PostingV1PostingFbpListResponsePostings.d.ts new file mode 100644 index 0000000..426cfb7 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostings.d.ts @@ -0,0 +1,81 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListResponsePostingsProducts } from './PostingV1PostingFbpListResponsePostingsProducts'; +import type { PostingV1PostingFbpListResponsePostingsFinancialData } from './PostingV1PostingFbpListResponsePostingsFinancialData'; +/** + * + * @export + * @interface PostingV1PostingFbpListResponsePostings + */ +export interface PostingV1PostingFbpListResponsePostings { + /** + * + * @type {PostingV1PostingFbpListResponsePostingsFinancialData} + * @memberof PostingV1PostingFbpListResponsePostings + */ + financial_data?: PostingV1PostingFbpListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + in_process_at?: string; + /** + * Дата создания заказа. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + order_date?: string; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV1PostingFbpListResponsePostings + */ + products?: Array; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostings + */ + provider_id?: number; + /** + * Статус отправления. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostings + */ + status?: string; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostings interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostings(value: object): value is PostingV1PostingFbpListResponsePostings; +export declare function PostingV1PostingFbpListResponsePostingsFromJSON(json: any): PostingV1PostingFbpListResponsePostings; +export declare function PostingV1PostingFbpListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostings; +export declare function PostingV1PostingFbpListResponsePostingsToJSON(value?: PostingV1PostingFbpListResponsePostings | null): any; diff --git a/dist/models/PostingV1PostingFbpListResponsePostings.js b/dist/models/PostingV1PostingFbpListResponsePostings.js new file mode 100644 index 0000000..4b18cce --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostings.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListResponsePostings = instanceOfPostingV1PostingFbpListResponsePostings; +exports.PostingV1PostingFbpListResponsePostingsFromJSON = PostingV1PostingFbpListResponsePostingsFromJSON; +exports.PostingV1PostingFbpListResponsePostingsFromJSONTyped = PostingV1PostingFbpListResponsePostingsFromJSONTyped; +exports.PostingV1PostingFbpListResponsePostingsToJSON = PostingV1PostingFbpListResponsePostingsToJSON; +const PostingV1PostingFbpListResponsePostingsProducts_1 = require("./PostingV1PostingFbpListResponsePostingsProducts"); +const PostingV1PostingFbpListResponsePostingsFinancialData_1 = require("./PostingV1PostingFbpListResponsePostingsFinancialData"); +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostings interface. + */ +function instanceOfPostingV1PostingFbpListResponsePostings(value) { + return true; +} +function PostingV1PostingFbpListResponsePostingsFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFromJSONTyped(json, false); +} +function PostingV1PostingFbpListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'financial_data': json['financial_data'] == null ? undefined : (0, PostingV1PostingFbpListResponsePostingsFinancialData_1.PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'order_date': json['order_date'] == null ? undefined : json['order_date'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV1PostingFbpListResponsePostingsProducts_1.PostingV1PostingFbpListResponsePostingsProductsFromJSON)), + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function PostingV1PostingFbpListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'financial_data': (0, PostingV1PostingFbpListResponsePostingsFinancialData_1.PostingV1PostingFbpListResponsePostingsFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'order_date': value['order_date'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV1PostingFbpListResponsePostingsProducts_1.PostingV1PostingFbpListResponsePostingsProductsToJSON)), + 'provider_id': value['provider_id'], + 'status': value['status'], + }; +} diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialData.d.ts b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..5f5a2a2 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialData.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListResponsePostingsFinancialDataProducts } from './PostingV1PostingFbpListResponsePostingsFinancialDataProducts'; +/** + * Финансовые данные. + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialData + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Стоимость доставки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialData + */ + delivery_amount?: number; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialData(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialData; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialData; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialData; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialData | null): any; diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialData.js b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialData.js new file mode 100644 index 0000000..0bc2abd --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialData.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListResponsePostingsFinancialData = instanceOfPostingV1PostingFbpListResponsePostingsFinancialData; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON = PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataFromJSONTyped = PostingV1PostingFbpListResponsePostingsFinancialDataFromJSONTyped; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataToJSON = PostingV1PostingFbpListResponsePostingsFinancialDataToJSON; +const PostingV1PostingFbpListResponsePostingsFinancialDataProducts_1 = require("./PostingV1PostingFbpListResponsePostingsFinancialDataProducts"); +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialData interface. + */ +function instanceOfPostingV1PostingFbpListResponsePostingsFinancialData(value) { + return true; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +function PostingV1PostingFbpListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'delivery_amount': json['delivery_amount'] == null ? undefined : json['delivery_amount'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV1PostingFbpListResponsePostingsFinancialDataProducts_1.PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'delivery_amount': value['delivery_amount'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV1PostingFbpListResponsePostingsFinancialDataProducts_1.PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.d.ts b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..21808dc --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission'; +import type { PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission'; +import type { PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions } from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions'; +/** + * + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * Код валюты комиссии. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + commissions_currency_code?: string; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Количество товара. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * + * @type {PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + posting_commission?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; + /** + * + * @type {PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + return_commission?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProducts(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialDataProducts; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialDataProducts; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialDataProducts; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.js b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..eb56e8c --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProducts = instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProducts; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON = PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSONTyped = PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSONTyped; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON = PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON; +const PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission_1 = require("./PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission"); +const PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission_1 = require("./PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission"); +const PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions_1 = require("./PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions"); +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProducts interface. + */ +function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProducts(value) { + return true; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : (json['actions'].map(PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions_1.PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON)), + 'commissions_currency_code': json['commissions_currency_code'] == null ? undefined : json['commissions_currency_code'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'posting_commission': json['posting_commission'] == null ? undefined : (0, PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission_1.PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON)(json['posting_commission']), + 'return_commission': json['return_commission'] == null ? undefined : (0, PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission_1.PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON)(json['return_commission']), + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'] == null ? undefined : (value['actions'].map(PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions_1.PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON)), + 'commissions_currency_code': value['commissions_currency_code'], + 'old_price': value['old_price'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'posting_commission': (0, PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission_1.PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON)(value['posting_commission']), + 'return_commission': (0, PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission_1.PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON)(value['return_commission']), + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.d.ts b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.d.ts new file mode 100644 index 0000000..0c6912b --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions { + /** + * Идентификатор акции. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + action_id?: string; + /** + * Дата начала акции. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + date_from?: string; + /** + * Дата окончания акции. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + date_to?: string; + /** + * Скидка в процентах. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + discount_value?: number; + /** + * `true`, если акцию создал продавец. + * + * @type {boolean} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + is_from_seller?: boolean; + /** + * Название акции. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions + */ + description?: string; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsActions(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions | null): any; diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.js b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.js new file mode 100644 index 0000000..35cca5d --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsActions = instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsActions; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON = PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSONTyped = PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSONTyped; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON = PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON; +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions interface. + */ +function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsActions(value) { + return true; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSONTyped(json, false); +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'discount_value': json['discount_value'] == null ? undefined : json['discount_value'], + 'is_from_seller': json['is_from_seller'] == null ? undefined : json['is_from_seller'], + 'description': json['description'] == null ? undefined : json['description'], + }; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsActionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'discount_percent': value['discount_percent'], + 'discount_value': value['discount_value'], + 'is_from_seller': value['is_from_seller'], + 'description': value['description'], + }; +} diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..79e4ee5 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за отправление. + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission { + /** + * Сумма. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Выплата. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission + */ + payout?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.js b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..28306a8 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission = instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON = PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSONTyped = PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSONTyped; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON = PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON; +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission interface. + */ +function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'payout': value['payout'], + 'percent': value['percent'], + }; +} diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.d.ts b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.d.ts new file mode 100644 index 0000000..eb39208 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за возврат товара. + * @export + * @interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission + */ +export interface PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission { + /** + * Сумма. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission + */ + amount?: number; + /** + * Выплата. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission + */ + payout?: number; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission(value: object): value is PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON(json: any): PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; +export declare function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON(value?: PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission | null): any; diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.js b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.js new file mode 100644 index 0000000..8e7bdc9 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission = instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON = PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSONTyped = PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSONTyped; +exports.PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON = PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON; +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission interface. + */ +function instanceOfPostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission(value) { + return true; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSONTyped(json, false); +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +function PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'payout': value['payout'], + 'percent': value['percent'], + }; +} diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsProducts.d.ts b/dist/models/PostingV1PostingFbpListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..4d75ae4 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsProducts.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySellerPrice } from './MoneyMoneySellerPrice'; +import type { MoneyMoneyCustomerPrice } from './MoneyMoneyCustomerPrice'; +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV1PostingFbpListResponsePostingsProducts + */ +export interface PostingV1PostingFbpListResponsePostingsProducts { + /** + * + * @type {MoneyMoneyCustomerPrice} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + customer_price?: MoneyMoneyCustomerPrice; + /** + * Название товара в заказе. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + quantity?: number; + /** + * + * @type {MoneyMoneySellerPrice} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + seller_price?: MoneyMoneySellerPrice; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV1PostingFbpListResponsePostingsProducts + */ + sku?: number; +} +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV1PostingFbpListResponsePostingsProducts(value: object): value is PostingV1PostingFbpListResponsePostingsProducts; +export declare function PostingV1PostingFbpListResponsePostingsProductsFromJSON(json: any): PostingV1PostingFbpListResponsePostingsProducts; +export declare function PostingV1PostingFbpListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV1PostingFbpListResponsePostingsProducts; +export declare function PostingV1PostingFbpListResponsePostingsProductsToJSON(value?: PostingV1PostingFbpListResponsePostingsProducts | null): any; diff --git a/dist/models/PostingV1PostingFbpListResponsePostingsProducts.js b/dist/models/PostingV1PostingFbpListResponsePostingsProducts.js new file mode 100644 index 0000000..7e57353 --- /dev/null +++ b/dist/models/PostingV1PostingFbpListResponsePostingsProducts.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV1PostingFbpListResponsePostingsProducts = instanceOfPostingV1PostingFbpListResponsePostingsProducts; +exports.PostingV1PostingFbpListResponsePostingsProductsFromJSON = PostingV1PostingFbpListResponsePostingsProductsFromJSON; +exports.PostingV1PostingFbpListResponsePostingsProductsFromJSONTyped = PostingV1PostingFbpListResponsePostingsProductsFromJSONTyped; +exports.PostingV1PostingFbpListResponsePostingsProductsToJSON = PostingV1PostingFbpListResponsePostingsProductsToJSON; +const MoneyMoneySellerPrice_1 = require("./MoneyMoneySellerPrice"); +const MoneyMoneyCustomerPrice_1 = require("./MoneyMoneyCustomerPrice"); +const MoneyPostingMoney_1 = require("./MoneyPostingMoney"); +/** + * Check if a given object implements the PostingV1PostingFbpListResponsePostingsProducts interface. + */ +function instanceOfPostingV1PostingFbpListResponsePostingsProducts(value) { + return true; +} +function PostingV1PostingFbpListResponsePostingsProductsFromJSON(json) { + return PostingV1PostingFbpListResponsePostingsProductsFromJSONTyped(json, false); +} +function PostingV1PostingFbpListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'customer_price': json['customer_price'] == null ? undefined : (0, MoneyMoneyCustomerPrice_1.MoneyMoneyCustomerPriceFromJSON)(json['customer_price']), + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : (0, MoneyPostingMoney_1.MoneyPostingMoneyFromJSON)(json['price']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'seller_price': json['seller_price'] == null ? undefined : (0, MoneyMoneySellerPrice_1.MoneyMoneySellerPriceFromJSON)(json['seller_price']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function PostingV1PostingFbpListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'customer_price': (0, MoneyMoneyCustomerPrice_1.MoneyMoneyCustomerPriceToJSON)(value['customer_price']), + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': (0, MoneyPostingMoney_1.MoneyPostingMoneyToJSON)(value['price']), + 'quantity': value['quantity'], + 'seller_price': (0, MoneyMoneySellerPrice_1.MoneyMoneySellerPriceToJSON)(value['seller_price']), + 'sku': value['sku'], + }; +} diff --git a/dist/models/PostingV2FboSinglePostingExternalOrder.d.ts b/dist/models/PostingV2FboSinglePostingExternalOrder.d.ts new file mode 100644 index 0000000..52ac3fa --- /dev/null +++ b/dist/models/PostingV2FboSinglePostingExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV2FboSinglePostingExternalOrder + */ +export interface PostingV2FboSinglePostingExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV2FboSinglePostingExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV2FboSinglePostingExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV2FboSinglePostingExternalOrder interface. + */ +export declare function instanceOfPostingV2FboSinglePostingExternalOrder(value: object): value is PostingV2FboSinglePostingExternalOrder; +export declare function PostingV2FboSinglePostingExternalOrderFromJSON(json: any): PostingV2FboSinglePostingExternalOrder; +export declare function PostingV2FboSinglePostingExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2FboSinglePostingExternalOrder; +export declare function PostingV2FboSinglePostingExternalOrderToJSON(value?: PostingV2FboSinglePostingExternalOrder | null): any; diff --git a/dist/models/PostingV2FboSinglePostingExternalOrder.js b/dist/models/PostingV2FboSinglePostingExternalOrder.js new file mode 100644 index 0000000..bc5d38a --- /dev/null +++ b/dist/models/PostingV2FboSinglePostingExternalOrder.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2FboSinglePostingExternalOrder = instanceOfPostingV2FboSinglePostingExternalOrder; +exports.PostingV2FboSinglePostingExternalOrderFromJSON = PostingV2FboSinglePostingExternalOrderFromJSON; +exports.PostingV2FboSinglePostingExternalOrderFromJSONTyped = PostingV2FboSinglePostingExternalOrderFromJSONTyped; +exports.PostingV2FboSinglePostingExternalOrderToJSON = PostingV2FboSinglePostingExternalOrderToJSON; +/** + * Check if a given object implements the PostingV2FboSinglePostingExternalOrder interface. + */ +function instanceOfPostingV2FboSinglePostingExternalOrder(value) { + return true; +} +function PostingV2FboSinglePostingExternalOrderFromJSON(json) { + return PostingV2FboSinglePostingExternalOrderFromJSONTyped(json, false); +} +function PostingV2FboSinglePostingExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +function PostingV2FboSinglePostingExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListRequest.d.ts b/dist/models/PostingV2PostingDigitalListRequest.d.ts new file mode 100644 index 0000000..af31f29 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListRequest.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListRequestWith } from './PostingV2PostingDigitalListRequestWith'; +import type { PostingV2PostingDigitalListRequestFilter } from './PostingV2PostingDigitalListRequestFilter'; +import type { PostingV2PostingDigitalListRequestSortDirEnum } from './PostingV2PostingDigitalListRequestSortDirEnum'; +/** + * + * @export + * @interface PostingV2PostingDigitalListRequest + */ +export interface PostingV2PostingDigitalListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV2PostingDigitalListRequest + */ + cursor?: string; + /** + * + * @type {PostingV2PostingDigitalListRequestFilter} + * @memberof PostingV2PostingDigitalListRequest + */ + filter?: PostingV2PostingDigitalListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV2PostingDigitalListRequest + */ + limit?: number; + /** + * + * @type {PostingV2PostingDigitalListRequestSortDirEnum} + * @memberof PostingV2PostingDigitalListRequest + */ + sort_dir?: PostingV2PostingDigitalListRequestSortDirEnum; + /** + * + * @type {PostingV2PostingDigitalListRequestWith} + * @memberof PostingV2PostingDigitalListRequest + */ + _with?: PostingV2PostingDigitalListRequestWith; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListRequest interface. + */ +export declare function instanceOfPostingV2PostingDigitalListRequest(value: object): value is PostingV2PostingDigitalListRequest; +export declare function PostingV2PostingDigitalListRequestFromJSON(json: any): PostingV2PostingDigitalListRequest; +export declare function PostingV2PostingDigitalListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListRequest; +export declare function PostingV2PostingDigitalListRequestToJSON(value?: PostingV2PostingDigitalListRequest | null): any; diff --git a/dist/models/PostingV2PostingDigitalListRequest.js b/dist/models/PostingV2PostingDigitalListRequest.js new file mode 100644 index 0000000..affe712 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListRequest = instanceOfPostingV2PostingDigitalListRequest; +exports.PostingV2PostingDigitalListRequestFromJSON = PostingV2PostingDigitalListRequestFromJSON; +exports.PostingV2PostingDigitalListRequestFromJSONTyped = PostingV2PostingDigitalListRequestFromJSONTyped; +exports.PostingV2PostingDigitalListRequestToJSON = PostingV2PostingDigitalListRequestToJSON; +const PostingV2PostingDigitalListRequestWith_1 = require("./PostingV2PostingDigitalListRequestWith"); +const PostingV2PostingDigitalListRequestFilter_1 = require("./PostingV2PostingDigitalListRequestFilter"); +const PostingV2PostingDigitalListRequestSortDirEnum_1 = require("./PostingV2PostingDigitalListRequestSortDirEnum"); +/** + * Check if a given object implements the PostingV2PostingDigitalListRequest interface. + */ +function instanceOfPostingV2PostingDigitalListRequest(value) { + return true; +} +function PostingV2PostingDigitalListRequestFromJSON(json) { + return PostingV2PostingDigitalListRequestFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, PostingV2PostingDigitalListRequestFilter_1.PostingV2PostingDigitalListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, PostingV2PostingDigitalListRequestSortDirEnum_1.PostingV2PostingDigitalListRequestSortDirEnumFromJSON)(json['sort_dir']), + '_with': json['with'] == null ? undefined : (0, PostingV2PostingDigitalListRequestWith_1.PostingV2PostingDigitalListRequestWithFromJSON)(json['with']), + }; +} +function PostingV2PostingDigitalListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, PostingV2PostingDigitalListRequestFilter_1.PostingV2PostingDigitalListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'sort_dir': (0, PostingV2PostingDigitalListRequestSortDirEnum_1.PostingV2PostingDigitalListRequestSortDirEnumToJSON)(value['sort_dir']), + 'with': (0, PostingV2PostingDigitalListRequestWith_1.PostingV2PostingDigitalListRequestWithToJSON)(value['_with']), + }; +} diff --git a/dist/models/PostingV2PostingDigitalListRequestFilter.d.ts b/dist/models/PostingV2PostingDigitalListRequestFilter.d.ts new file mode 100644 index 0000000..0533e75 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface PostingV2PostingDigitalListRequestFilter + */ +export interface PostingV2PostingDigitalListRequestFilter { + /** + * Номера заказов, к которым относятся отправления. + * @type {Array} + * @memberof PostingV2PostingDigitalListRequestFilter + */ + order_numbers?: Array; + /** + * Идентификаторы отправлений. + * @type {Array} + * @memberof PostingV2PostingDigitalListRequestFilter + */ + posting_numbers?: Array; + /** + * Начало периода. + * @type {string} + * @memberof PostingV2PostingDigitalListRequestFilter + */ + since?: string; + /** + * Конец периода. + * @type {string} + * @memberof PostingV2PostingDigitalListRequestFilter + */ + to?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListRequestFilter interface. + */ +export declare function instanceOfPostingV2PostingDigitalListRequestFilter(value: object): value is PostingV2PostingDigitalListRequestFilter; +export declare function PostingV2PostingDigitalListRequestFilterFromJSON(json: any): PostingV2PostingDigitalListRequestFilter; +export declare function PostingV2PostingDigitalListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListRequestFilter; +export declare function PostingV2PostingDigitalListRequestFilterToJSON(value?: PostingV2PostingDigitalListRequestFilter | null): any; diff --git a/dist/models/PostingV2PostingDigitalListRequestFilter.js b/dist/models/PostingV2PostingDigitalListRequestFilter.js new file mode 100644 index 0000000..3c114a4 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListRequestFilter.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListRequestFilter = instanceOfPostingV2PostingDigitalListRequestFilter; +exports.PostingV2PostingDigitalListRequestFilterFromJSON = PostingV2PostingDigitalListRequestFilterFromJSON; +exports.PostingV2PostingDigitalListRequestFilterFromJSONTyped = PostingV2PostingDigitalListRequestFilterFromJSONTyped; +exports.PostingV2PostingDigitalListRequestFilterToJSON = PostingV2PostingDigitalListRequestFilterToJSON; +/** + * Check if a given object implements the PostingV2PostingDigitalListRequestFilter interface. + */ +function instanceOfPostingV2PostingDigitalListRequestFilter(value) { + return true; +} +function PostingV2PostingDigitalListRequestFilterFromJSON(json) { + return PostingV2PostingDigitalListRequestFilterFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_numbers': json['order_numbers'] == null ? undefined : json['order_numbers'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'since': json['since'] == null ? undefined : json['since'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function PostingV2PostingDigitalListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_numbers': value['order_numbers'], + 'posting_numbers': value['posting_numbers'], + 'since': value['since'], + 'to': value['to'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListRequestSortDirEnum.d.ts b/dist/models/PostingV2PostingDigitalListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..7d9a003 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV2PostingDigitalListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV2PostingDigitalListRequestSortDirEnum = typeof PostingV2PostingDigitalListRequestSortDirEnum[keyof typeof PostingV2PostingDigitalListRequestSortDirEnum]; +export declare function instanceOfPostingV2PostingDigitalListRequestSortDirEnum(value: any): boolean; +export declare function PostingV2PostingDigitalListRequestSortDirEnumFromJSON(json: any): PostingV2PostingDigitalListRequestSortDirEnum; +export declare function PostingV2PostingDigitalListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListRequestSortDirEnum; +export declare function PostingV2PostingDigitalListRequestSortDirEnumToJSON(value?: PostingV2PostingDigitalListRequestSortDirEnum | null): any; diff --git a/dist/models/PostingV2PostingDigitalListRequestSortDirEnum.js b/dist/models/PostingV2PostingDigitalListRequestSortDirEnum.js new file mode 100644 index 0000000..3e780c4 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PostingV2PostingDigitalListRequestSortDirEnum = void 0; +exports.instanceOfPostingV2PostingDigitalListRequestSortDirEnum = instanceOfPostingV2PostingDigitalListRequestSortDirEnum; +exports.PostingV2PostingDigitalListRequestSortDirEnumFromJSON = PostingV2PostingDigitalListRequestSortDirEnumFromJSON; +exports.PostingV2PostingDigitalListRequestSortDirEnumFromJSONTyped = PostingV2PostingDigitalListRequestSortDirEnumFromJSONTyped; +exports.PostingV2PostingDigitalListRequestSortDirEnumToJSON = PostingV2PostingDigitalListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.PostingV2PostingDigitalListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfPostingV2PostingDigitalListRequestSortDirEnum(value) { + for (const key in exports.PostingV2PostingDigitalListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PostingV2PostingDigitalListRequestSortDirEnum, key)) { + if (exports.PostingV2PostingDigitalListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function PostingV2PostingDigitalListRequestSortDirEnumFromJSON(json) { + return PostingV2PostingDigitalListRequestSortDirEnumFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PostingV2PostingDigitalListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/PostingV2PostingDigitalListRequestWith.d.ts b/dist/models/PostingV2PostingDigitalListRequestWith.d.ts new file mode 100644 index 0000000..7c41cea --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListRequestWith.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingV2PostingDigitalListRequestWith + */ +export interface PostingV2PostingDigitalListRequestWith { + /** + * `true`, чтобы добавить в ответ данные аналитики. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ финансовые данные. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListRequestWith + */ + financial_data?: boolean; + /** + * `true`, чтобы добавить в ответ юридическую информацию. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListRequestWith + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListRequestWith interface. + */ +export declare function instanceOfPostingV2PostingDigitalListRequestWith(value: object): value is PostingV2PostingDigitalListRequestWith; +export declare function PostingV2PostingDigitalListRequestWithFromJSON(json: any): PostingV2PostingDigitalListRequestWith; +export declare function PostingV2PostingDigitalListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListRequestWith; +export declare function PostingV2PostingDigitalListRequestWithToJSON(value?: PostingV2PostingDigitalListRequestWith | null): any; diff --git a/dist/models/PostingV2PostingDigitalListRequestWith.js b/dist/models/PostingV2PostingDigitalListRequestWith.js new file mode 100644 index 0000000..22566e1 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListRequestWith.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListRequestWith = instanceOfPostingV2PostingDigitalListRequestWith; +exports.PostingV2PostingDigitalListRequestWithFromJSON = PostingV2PostingDigitalListRequestWithFromJSON; +exports.PostingV2PostingDigitalListRequestWithFromJSONTyped = PostingV2PostingDigitalListRequestWithFromJSONTyped; +exports.PostingV2PostingDigitalListRequestWithToJSON = PostingV2PostingDigitalListRequestWithToJSON; +/** + * Check if a given object implements the PostingV2PostingDigitalListRequestWith interface. + */ +function instanceOfPostingV2PostingDigitalListRequestWith(value) { + return true; +} +function PostingV2PostingDigitalListRequestWithFromJSON(json) { + return PostingV2PostingDigitalListRequestWithFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +function PostingV2PostingDigitalListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponse.d.ts b/dist/models/PostingV2PostingDigitalListResponse.d.ts new file mode 100644 index 0000000..7b2931e --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListResponsePostings } from './PostingV2PostingDigitalListResponsePostings'; +/** + * + * @export + * @interface PostingV2PostingDigitalListResponse + */ +export interface PostingV2PostingDigitalListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV2PostingDigitalListResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListResponse + */ + has_next?: boolean; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponse interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponse(value: object): value is PostingV2PostingDigitalListResponse; +export declare function PostingV2PostingDigitalListResponseFromJSON(json: any): PostingV2PostingDigitalListResponse; +export declare function PostingV2PostingDigitalListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponse; +export declare function PostingV2PostingDigitalListResponseToJSON(value?: PostingV2PostingDigitalListResponse | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponse.js b/dist/models/PostingV2PostingDigitalListResponse.js new file mode 100644 index 0000000..45ebaaa --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponse = instanceOfPostingV2PostingDigitalListResponse; +exports.PostingV2PostingDigitalListResponseFromJSON = PostingV2PostingDigitalListResponseFromJSON; +exports.PostingV2PostingDigitalListResponseFromJSONTyped = PostingV2PostingDigitalListResponseFromJSONTyped; +exports.PostingV2PostingDigitalListResponseToJSON = PostingV2PostingDigitalListResponseToJSON; +const PostingV2PostingDigitalListResponsePostings_1 = require("./PostingV2PostingDigitalListResponsePostings"); +/** + * Check if a given object implements the PostingV2PostingDigitalListResponse interface. + */ +function instanceOfPostingV2PostingDigitalListResponse(value) { + return true; +} +function PostingV2PostingDigitalListResponseFromJSON(json) { + return PostingV2PostingDigitalListResponseFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV2PostingDigitalListResponsePostings_1.PostingV2PostingDigitalListResponsePostingsFromJSON)), + }; +} +function PostingV2PostingDigitalListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV2PostingDigitalListResponsePostings_1.PostingV2PostingDigitalListResponsePostingsToJSON)), + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostings.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostings.d.ts new file mode 100644 index 0000000..d0b5073 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostings.d.ts @@ -0,0 +1,125 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListResponsePostingsAnalyticsData } from './PostingV2PostingDigitalListResponsePostingsAnalyticsData'; +import type { PostingV2PostingDigitalListResponsePostingsExternalOrder } from './PostingV2PostingDigitalListResponsePostingsExternalOrder'; +import type { PostingV2PostingDigitalListResponsePostingsAdditionalData } from './PostingV2PostingDigitalListResponsePostingsAdditionalData'; +import type { PostingV2PostingDigitalListResponsePostingsCancellation } from './PostingV2PostingDigitalListResponsePostingsCancellation'; +import type { PostingV2PostingDigitalListResponsePostingsFinancialData } from './PostingV2PostingDigitalListResponsePostingsFinancialData'; +import type { PostingV2PostingDigitalListResponsePostingsProducts } from './PostingV2PostingDigitalListResponsePostingsProducts'; +import type { PostingV2PostingDigitalListResponsePostingsLegalInfo } from './PostingV2PostingDigitalListResponsePostingsLegalInfo'; +/** + * + * @export + * @interface PostingV2PostingDigitalListResponsePostings + */ +export interface PostingV2PostingDigitalListResponsePostings { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + additional_data?: Array; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsAnalyticsData} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + analytics_data?: PostingV2PostingDigitalListResponsePostingsAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + cancel_reason_id?: number; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsCancellation} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + cancellation?: PostingV2PostingDigitalListResponsePostingsCancellation; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + created_at?: string; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsExternalOrder} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + external_order?: PostingV2PostingDigitalListResponsePostingsExternalOrder; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsFinancialData} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + financial_data?: PostingV2PostingDigitalListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + in_process_at?: string; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsLegalInfo} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + legal_info?: PostingV2PostingDigitalListResponsePostingsLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + products?: Array; + /** + * Статус отправления: + * + * `awaiting_packaging` — ожидает упаковки. + * + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + status?: string; + /** + * Время, до которого нужно передать коды цифровых товаров. Передайте коды цифровых товаров с помощью метода [/v1/posting/digital/codes/upload](#operation/UploadPostingCodes). + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostings + */ + waiting_deadline_for_digital_code?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostings interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostings(value: object): value is PostingV2PostingDigitalListResponsePostings; +export declare function PostingV2PostingDigitalListResponsePostingsFromJSON(json: any): PostingV2PostingDigitalListResponsePostings; +export declare function PostingV2PostingDigitalListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostings; +export declare function PostingV2PostingDigitalListResponsePostingsToJSON(value?: PostingV2PostingDigitalListResponsePostings | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostings.js b/dist/models/PostingV2PostingDigitalListResponsePostings.js new file mode 100644 index 0000000..f5a3976 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostings.js @@ -0,0 +1,79 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostings = instanceOfPostingV2PostingDigitalListResponsePostings; +exports.PostingV2PostingDigitalListResponsePostingsFromJSON = PostingV2PostingDigitalListResponsePostingsFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsFromJSONTyped = PostingV2PostingDigitalListResponsePostingsFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsToJSON = PostingV2PostingDigitalListResponsePostingsToJSON; +const PostingV2PostingDigitalListResponsePostingsAnalyticsData_1 = require("./PostingV2PostingDigitalListResponsePostingsAnalyticsData"); +const PostingV2PostingDigitalListResponsePostingsExternalOrder_1 = require("./PostingV2PostingDigitalListResponsePostingsExternalOrder"); +const PostingV2PostingDigitalListResponsePostingsAdditionalData_1 = require("./PostingV2PostingDigitalListResponsePostingsAdditionalData"); +const PostingV2PostingDigitalListResponsePostingsCancellation_1 = require("./PostingV2PostingDigitalListResponsePostingsCancellation"); +const PostingV2PostingDigitalListResponsePostingsFinancialData_1 = require("./PostingV2PostingDigitalListResponsePostingsFinancialData"); +const PostingV2PostingDigitalListResponsePostingsProducts_1 = require("./PostingV2PostingDigitalListResponsePostingsProducts"); +const PostingV2PostingDigitalListResponsePostingsLegalInfo_1 = require("./PostingV2PostingDigitalListResponsePostingsLegalInfo"); +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostings interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostings(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(PostingV2PostingDigitalListResponsePostingsAdditionalData_1.PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, PostingV2PostingDigitalListResponsePostingsAnalyticsData_1.PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON)(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation': json['cancellation'] == null ? undefined : (0, PostingV2PostingDigitalListResponsePostingsCancellation_1.PostingV2PostingDigitalListResponsePostingsCancellationFromJSON)(json['cancellation']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'external_order': json['external_order'] == null ? undefined : (0, PostingV2PostingDigitalListResponsePostingsExternalOrder_1.PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON)(json['external_order']), + 'financial_data': json['financial_data'] == null ? undefined : (0, PostingV2PostingDigitalListResponsePostingsFinancialData_1.PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : (0, PostingV2PostingDigitalListResponsePostingsLegalInfo_1.PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON)(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV2PostingDigitalListResponsePostingsProducts_1.PostingV2PostingDigitalListResponsePostingsProductsFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'waiting_deadline_for_digital_code': json['waiting_deadline_for_digital_code'] == null ? undefined : json['waiting_deadline_for_digital_code'], + }; +} +function PostingV2PostingDigitalListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(PostingV2PostingDigitalListResponsePostingsAdditionalData_1.PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON)), + 'analytics_data': (0, PostingV2PostingDigitalListResponsePostingsAnalyticsData_1.PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON)(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation': (0, PostingV2PostingDigitalListResponsePostingsCancellation_1.PostingV2PostingDigitalListResponsePostingsCancellationToJSON)(value['cancellation']), + 'created_at': value['created_at'], + 'external_order': (0, PostingV2PostingDigitalListResponsePostingsExternalOrder_1.PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON)(value['external_order']), + 'financial_data': (0, PostingV2PostingDigitalListResponsePostingsFinancialData_1.PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': (0, PostingV2PostingDigitalListResponsePostingsLegalInfo_1.PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON)(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV2PostingDigitalListResponsePostingsProducts_1.PostingV2PostingDigitalListResponsePostingsProductsToJSON)), + 'status': value['status'], + 'waiting_deadline_for_digital_code': value['waiting_deadline_for_digital_code'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.d.ts new file mode 100644 index 0000000..e8d956d --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV2PostingDigitalListResponsePostingsAdditionalData + */ +export interface PostingV2PostingDigitalListResponsePostingsAdditionalData { + /** + * Ключ дополнительного параметра. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAdditionalData + */ + key?: string; + /** + * Значение дополнительного параметра. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAdditionalData + */ + value?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsAdditionalData interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsAdditionalData(value: object): value is PostingV2PostingDigitalListResponsePostingsAdditionalData; +export declare function PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsAdditionalData; +export declare function PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsAdditionalData; +export declare function PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON(value?: PostingV2PostingDigitalListResponsePostingsAdditionalData | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.js b/dist/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.js new file mode 100644 index 0000000..1381d8a --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsAdditionalData.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsAdditionalData = instanceOfPostingV2PostingDigitalListResponsePostingsAdditionalData; +exports.PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON = PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSONTyped = PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON = PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsAdditionalData interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsAdditionalData(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsAdditionalDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function PostingV2PostingDigitalListResponsePostingsAdditionalDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.d.ts new file mode 100644 index 0000000..a54aeab --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ +export interface PostingV2PostingDigitalListResponsePostingsAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + city?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + delivery_type?: string; + /** + * `true`, если получатель юридическое лицо. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + is_legal?: boolean; + /** + * `true`, если у получателя есть подписка Premium. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`; + * - `карта Ozon Банка`; + * - `автосписание с карты Ozon Банка при выдаче`; + * - `сохранённой картой при получении`; + * - `Система Быстрых Платежей`; + * - `Ozon Рассрочка`; + * - `оплата на расчётный счёт`; + * - `SberPay`; + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + region?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + warehouse_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsAnalyticsData + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsAnalyticsData interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsAnalyticsData(value: object): value is PostingV2PostingDigitalListResponsePostingsAnalyticsData; +export declare function PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsAnalyticsData; +export declare function PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsAnalyticsData; +export declare function PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON(value?: PostingV2PostingDigitalListResponsePostingsAnalyticsData | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.js b/dist/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.js new file mode 100644 index 0000000..b031a8c --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsAnalyticsData.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsAnalyticsData = instanceOfPostingV2PostingDigitalListResponsePostingsAnalyticsData; +exports.PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON = PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSONTyped = PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON = PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsAnalyticsData interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsAnalyticsData(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function PostingV2PostingDigitalListResponsePostingsAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsCancellation.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsCancellation.d.ts new file mode 100644 index 0000000..f75e6d6 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsCancellation.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsCancellation + */ +export interface PostingV2PostingDigitalListResponsePostingsCancellation { + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент`, + * - `Покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system` — отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsCancellation + */ + cancellation_type?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsCancellation interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsCancellation(value: object): value is PostingV2PostingDigitalListResponsePostingsCancellation; +export declare function PostingV2PostingDigitalListResponsePostingsCancellationFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsCancellation; +export declare function PostingV2PostingDigitalListResponsePostingsCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsCancellation; +export declare function PostingV2PostingDigitalListResponsePostingsCancellationToJSON(value?: PostingV2PostingDigitalListResponsePostingsCancellation | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsCancellation.js b/dist/models/PostingV2PostingDigitalListResponsePostingsCancellation.js new file mode 100644 index 0000000..4fac59e --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsCancellation.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsCancellation = instanceOfPostingV2PostingDigitalListResponsePostingsCancellation; +exports.PostingV2PostingDigitalListResponsePostingsCancellationFromJSON = PostingV2PostingDigitalListResponsePostingsCancellationFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsCancellationFromJSONTyped = PostingV2PostingDigitalListResponsePostingsCancellationFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsCancellationToJSON = PostingV2PostingDigitalListResponsePostingsCancellationToJSON; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsCancellation interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsCancellation(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsCancellationFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsCancellationFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + }; +} +function PostingV2PostingDigitalListResponsePostingsCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.d.ts new file mode 100644 index 0000000..1f6da95 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsExternalOrder + */ +export interface PostingV2PostingDigitalListResponsePostingsExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV2PostingDigitalListResponsePostingsExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsExternalOrder interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsExternalOrder(value: object): value is PostingV2PostingDigitalListResponsePostingsExternalOrder; +export declare function PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsExternalOrder; +export declare function PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsExternalOrder; +export declare function PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON(value?: PostingV2PostingDigitalListResponsePostingsExternalOrder | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.js b/dist/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.js new file mode 100644 index 0000000..66c4503 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsExternalOrder.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsExternalOrder = instanceOfPostingV2PostingDigitalListResponsePostingsExternalOrder; +exports.PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON = PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSONTyped = PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON = PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsExternalOrder interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsExternalOrder(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +function PostingV2PostingDigitalListResponsePostingsExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialData.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..1c228a0 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListResponsePostingsFinancialDataProducts } from './PostingV2PostingDigitalListResponsePostingsFinancialDataProducts'; +/** + * Финансовые данные. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsFinancialData + */ +export interface PostingV2PostingDigitalListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialData(value: object): value is PostingV2PostingDigitalListResponsePostingsFinancialData; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsFinancialData; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsFinancialData; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON(value?: PostingV2PostingDigitalListResponsePostingsFinancialData | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialData.js b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialData.js new file mode 100644 index 0000000..254f7a5 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialData.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsFinancialData = instanceOfPostingV2PostingDigitalListResponsePostingsFinancialData; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON = PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSONTyped = PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON = PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON; +const PostingV2PostingDigitalListResponsePostingsFinancialDataProducts_1 = require("./PostingV2PostingDigitalListResponsePostingsFinancialDataProducts"); +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialData interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialData(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV2PostingDigitalListResponsePostingsFinancialDataProducts_1.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV2PostingDigitalListResponsePostingsFinancialDataProducts_1.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..24bc82e --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission } from './PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission'; +/** + * + * @export + * @interface PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ +export interface PostingV2PostingDigitalListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + commission?: PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProducts(value: object): value is PostingV2PostingDigitalListResponsePostingsFinancialDataProducts; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsFinancialDataProducts; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsFinancialDataProducts; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON(value?: PostingV2PostingDigitalListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.js b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..61e03df --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProducts = instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProducts; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON = PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSONTyped = PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON = PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON; +const PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission_1 = require("./PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission"); +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialDataProducts interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProducts(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'commission': json['commission'] == null ? undefined : (0, PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission_1.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON)(json['commission']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'commission': (0, PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission_1.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON)(value['commission']), + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..ab0a39d --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission { + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Код валюты, в которой рассчитывалась комиссия. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission + */ + currency?: string; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.js b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..87d17c3 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission = instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON = PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSONTyped = PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON = PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +function PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + 'percent': value['percent'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.d.ts new file mode 100644 index 0000000..8fa761d --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingV2PostingDigitalListResponsePostingsLegalInfo + */ +export interface PostingV2PostingDigitalListResponsePostingsLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsLegalInfo interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsLegalInfo(value: object): value is PostingV2PostingDigitalListResponsePostingsLegalInfo; +export declare function PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsLegalInfo; +export declare function PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsLegalInfo; +export declare function PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON(value?: PostingV2PostingDigitalListResponsePostingsLegalInfo | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.js b/dist/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.js new file mode 100644 index 0000000..89559e8 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsLegalInfo.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsLegalInfo = instanceOfPostingV2PostingDigitalListResponsePostingsLegalInfo; +exports.PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON = PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSONTyped = PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON = PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON; +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsLegalInfo interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsLegalInfo(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +function PostingV2PostingDigitalListResponsePostingsLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsProducts.d.ts b/dist/models/PostingV2PostingDigitalListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..63a92ae --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsProducts.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV2PostingDigitalListResponsePostingsProducts + */ +export interface PostingV2PostingDigitalListResponsePostingsProducts { + /** + * Название товара. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + quantity?: number; + /** + * Количество кодов цифровых товаров, которые нужно передать по товару в отправлении. Передайте коды цифровых товаров с помощью метода [/v1/posting/digital/codes/upload](#operation/UploadPostingCodes). + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + required_qty_for_digital_code?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV2PostingDigitalListResponsePostingsProducts + */ + sku?: number; +} +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV2PostingDigitalListResponsePostingsProducts(value: object): value is PostingV2PostingDigitalListResponsePostingsProducts; +export declare function PostingV2PostingDigitalListResponsePostingsProductsFromJSON(json: any): PostingV2PostingDigitalListResponsePostingsProducts; +export declare function PostingV2PostingDigitalListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV2PostingDigitalListResponsePostingsProducts; +export declare function PostingV2PostingDigitalListResponsePostingsProductsToJSON(value?: PostingV2PostingDigitalListResponsePostingsProducts | null): any; diff --git a/dist/models/PostingV2PostingDigitalListResponsePostingsProducts.js b/dist/models/PostingV2PostingDigitalListResponsePostingsProducts.js new file mode 100644 index 0000000..58b63c3 --- /dev/null +++ b/dist/models/PostingV2PostingDigitalListResponsePostingsProducts.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV2PostingDigitalListResponsePostingsProducts = instanceOfPostingV2PostingDigitalListResponsePostingsProducts; +exports.PostingV2PostingDigitalListResponsePostingsProductsFromJSON = PostingV2PostingDigitalListResponsePostingsProductsFromJSON; +exports.PostingV2PostingDigitalListResponsePostingsProductsFromJSONTyped = PostingV2PostingDigitalListResponsePostingsProductsFromJSONTyped; +exports.PostingV2PostingDigitalListResponsePostingsProductsToJSON = PostingV2PostingDigitalListResponsePostingsProductsToJSON; +const MoneyPostingMoney_1 = require("./MoneyPostingMoney"); +/** + * Check if a given object implements the PostingV2PostingDigitalListResponsePostingsProducts interface. + */ +function instanceOfPostingV2PostingDigitalListResponsePostingsProducts(value) { + return true; +} +function PostingV2PostingDigitalListResponsePostingsProductsFromJSON(json) { + return PostingV2PostingDigitalListResponsePostingsProductsFromJSONTyped(json, false); +} +function PostingV2PostingDigitalListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : (0, MoneyPostingMoney_1.MoneyPostingMoneyFromJSON)(json['price']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'required_qty_for_digital_code': json['required_qty_for_digital_code'] == null ? undefined : json['required_qty_for_digital_code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function PostingV2PostingDigitalListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': (0, MoneyPostingMoney_1.MoneyPostingMoneyToJSON)(value['price']), + 'quantity': value['quantity'], + 'required_qty_for_digital_code': value['required_qty_for_digital_code'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/PostingV3FbsPostingContainerCargoTypeEnum.d.ts b/dist/models/PostingV3FbsPostingContainerCargoTypeEnum.d.ts new file mode 100644 index 0000000..7a69664 --- /dev/null +++ b/dist/models/PostingV3FbsPostingContainerCargoTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export declare const PostingV3FbsPostingContainerCargoTypeEnum: { + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type PostingV3FbsPostingContainerCargoTypeEnum = typeof PostingV3FbsPostingContainerCargoTypeEnum[keyof typeof PostingV3FbsPostingContainerCargoTypeEnum]; +export declare function instanceOfPostingV3FbsPostingContainerCargoTypeEnum(value: any): boolean; +export declare function PostingV3FbsPostingContainerCargoTypeEnumFromJSON(json: any): PostingV3FbsPostingContainerCargoTypeEnum; +export declare function PostingV3FbsPostingContainerCargoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3FbsPostingContainerCargoTypeEnum; +export declare function PostingV3FbsPostingContainerCargoTypeEnumToJSON(value?: PostingV3FbsPostingContainerCargoTypeEnum | null): any; diff --git a/dist/models/PostingV3FbsPostingContainerCargoTypeEnum.js b/dist/models/PostingV3FbsPostingContainerCargoTypeEnum.js new file mode 100644 index 0000000..a210ba4 --- /dev/null +++ b/dist/models/PostingV3FbsPostingContainerCargoTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PostingV3FbsPostingContainerCargoTypeEnum = void 0; +exports.instanceOfPostingV3FbsPostingContainerCargoTypeEnum = instanceOfPostingV3FbsPostingContainerCargoTypeEnum; +exports.PostingV3FbsPostingContainerCargoTypeEnumFromJSON = PostingV3FbsPostingContainerCargoTypeEnumFromJSON; +exports.PostingV3FbsPostingContainerCargoTypeEnumFromJSONTyped = PostingV3FbsPostingContainerCargoTypeEnumFromJSONTyped; +exports.PostingV3FbsPostingContainerCargoTypeEnumToJSON = PostingV3FbsPostingContainerCargoTypeEnumToJSON; +/** + * Тип грузоместа: + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +exports.PostingV3FbsPostingContainerCargoTypeEnum = { + BOX: 'BOX', + PALLET: 'PALLET' +}; +function instanceOfPostingV3FbsPostingContainerCargoTypeEnum(value) { + for (const key in exports.PostingV3FbsPostingContainerCargoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PostingV3FbsPostingContainerCargoTypeEnum, key)) { + if (exports.PostingV3FbsPostingContainerCargoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function PostingV3FbsPostingContainerCargoTypeEnumFromJSON(json) { + return PostingV3FbsPostingContainerCargoTypeEnumFromJSONTyped(json, false); +} +function PostingV3FbsPostingContainerCargoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PostingV3FbsPostingContainerCargoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/PostingV3FbsPostingDetailExternalOrder.d.ts b/dist/models/PostingV3FbsPostingDetailExternalOrder.d.ts new file mode 100644 index 0000000..c0f550e --- /dev/null +++ b/dist/models/PostingV3FbsPostingDetailExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV3FbsPostingDetailExternalOrder + */ +export interface PostingV3FbsPostingDetailExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV3FbsPostingDetailExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV3FbsPostingDetailExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV3FbsPostingDetailExternalOrder interface. + */ +export declare function instanceOfPostingV3FbsPostingDetailExternalOrder(value: object): value is PostingV3FbsPostingDetailExternalOrder; +export declare function PostingV3FbsPostingDetailExternalOrderFromJSON(json: any): PostingV3FbsPostingDetailExternalOrder; +export declare function PostingV3FbsPostingDetailExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3FbsPostingDetailExternalOrder; +export declare function PostingV3FbsPostingDetailExternalOrderToJSON(value?: PostingV3FbsPostingDetailExternalOrder | null): any; diff --git a/dist/models/PostingV3FbsPostingDetailExternalOrder.js b/dist/models/PostingV3FbsPostingDetailExternalOrder.js new file mode 100644 index 0000000..f45eac0 --- /dev/null +++ b/dist/models/PostingV3FbsPostingDetailExternalOrder.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3FbsPostingDetailExternalOrder = instanceOfPostingV3FbsPostingDetailExternalOrder; +exports.PostingV3FbsPostingDetailExternalOrderFromJSON = PostingV3FbsPostingDetailExternalOrderFromJSON; +exports.PostingV3FbsPostingDetailExternalOrderFromJSONTyped = PostingV3FbsPostingDetailExternalOrderFromJSONTyped; +exports.PostingV3FbsPostingDetailExternalOrderToJSON = PostingV3FbsPostingDetailExternalOrderToJSON; +/** + * Check if a given object implements the PostingV3FbsPostingDetailExternalOrder interface. + */ +function instanceOfPostingV3FbsPostingDetailExternalOrder(value) { + return true; +} +function PostingV3FbsPostingDetailExternalOrderFromJSON(json) { + return PostingV3FbsPostingDetailExternalOrderFromJSONTyped(json, false); +} +function PostingV3FbsPostingDetailExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +function PostingV3FbsPostingDetailExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/models/PostingV3FbsPostingDetailSortingCenter.d.ts b/dist/models/PostingV3FbsPostingDetailSortingCenter.d.ts new file mode 100644 index 0000000..fe82fa9 --- /dev/null +++ b/dist/models/PostingV3FbsPostingDetailSortingCenter.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сортировочном центре, в который нужно привезти отправление. Для `integration_type_flow = hybrid_3pl_tracking`. + * Если значение `null`, информацию получить не удалось. + * + * @export + * @interface PostingV3FbsPostingDetailSortingCenter + */ +export interface PostingV3FbsPostingDetailSortingCenter { + /** + * Код сортировочного центра. + * @type {string} + * @memberof PostingV3FbsPostingDetailSortingCenter + */ + code?: string; + /** + * Название сортировочного центра. + * @type {string} + * @memberof PostingV3FbsPostingDetailSortingCenter + */ + name?: string; +} +/** + * Check if a given object implements the PostingV3FbsPostingDetailSortingCenter interface. + */ +export declare function instanceOfPostingV3FbsPostingDetailSortingCenter(value: object): value is PostingV3FbsPostingDetailSortingCenter; +export declare function PostingV3FbsPostingDetailSortingCenterFromJSON(json: any): PostingV3FbsPostingDetailSortingCenter; +export declare function PostingV3FbsPostingDetailSortingCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3FbsPostingDetailSortingCenter; +export declare function PostingV3FbsPostingDetailSortingCenterToJSON(value?: PostingV3FbsPostingDetailSortingCenter | null): any; diff --git a/dist/models/PostingV3FbsPostingDetailSortingCenter.js b/dist/models/PostingV3FbsPostingDetailSortingCenter.js new file mode 100644 index 0000000..9435f31 --- /dev/null +++ b/dist/models/PostingV3FbsPostingDetailSortingCenter.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3FbsPostingDetailSortingCenter = instanceOfPostingV3FbsPostingDetailSortingCenter; +exports.PostingV3FbsPostingDetailSortingCenterFromJSON = PostingV3FbsPostingDetailSortingCenterFromJSON; +exports.PostingV3FbsPostingDetailSortingCenterFromJSONTyped = PostingV3FbsPostingDetailSortingCenterFromJSONTyped; +exports.PostingV3FbsPostingDetailSortingCenterToJSON = PostingV3FbsPostingDetailSortingCenterToJSON; +/** + * Check if a given object implements the PostingV3FbsPostingDetailSortingCenter interface. + */ +function instanceOfPostingV3FbsPostingDetailSortingCenter(value) { + return true; +} +function PostingV3FbsPostingDetailSortingCenterFromJSON(json) { + return PostingV3FbsPostingDetailSortingCenterFromJSONTyped(json, false); +} +function PostingV3FbsPostingDetailSortingCenterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function PostingV3FbsPostingDetailSortingCenterToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/models/PostingV3FbsPostingSortingCenter.d.ts b/dist/models/PostingV3FbsPostingSortingCenter.d.ts new file mode 100644 index 0000000..7e55bc4 --- /dev/null +++ b/dist/models/PostingV3FbsPostingSortingCenter.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сортировочном центре, в который нужно привезти отправление. Для `integration_type_flow = hybrid_3pl_tracking`. + * Если значение `null`, информацию получить не удалось. + * + * @export + * @interface PostingV3FbsPostingSortingCenter + */ +export interface PostingV3FbsPostingSortingCenter { + /** + * Код сортировочного центра. + * @type {string} + * @memberof PostingV3FbsPostingSortingCenter + */ + code?: string; + /** + * Название сортировочного центра. + * @type {string} + * @memberof PostingV3FbsPostingSortingCenter + */ + name?: string; +} +/** + * Check if a given object implements the PostingV3FbsPostingSortingCenter interface. + */ +export declare function instanceOfPostingV3FbsPostingSortingCenter(value: object): value is PostingV3FbsPostingSortingCenter; +export declare function PostingV3FbsPostingSortingCenterFromJSON(json: any): PostingV3FbsPostingSortingCenter; +export declare function PostingV3FbsPostingSortingCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3FbsPostingSortingCenter; +export declare function PostingV3FbsPostingSortingCenterToJSON(value?: PostingV3FbsPostingSortingCenter | null): any; diff --git a/dist/models/PostingV3FbsPostingSortingCenter.js b/dist/models/PostingV3FbsPostingSortingCenter.js new file mode 100644 index 0000000..e61361c --- /dev/null +++ b/dist/models/PostingV3FbsPostingSortingCenter.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3FbsPostingSortingCenter = instanceOfPostingV3FbsPostingSortingCenter; +exports.PostingV3FbsPostingSortingCenterFromJSON = PostingV3FbsPostingSortingCenterFromJSON; +exports.PostingV3FbsPostingSortingCenterFromJSONTyped = PostingV3FbsPostingSortingCenterFromJSONTyped; +exports.PostingV3FbsPostingSortingCenterToJSON = PostingV3FbsPostingSortingCenterToJSON; +/** + * Check if a given object implements the PostingV3FbsPostingSortingCenter interface. + */ +function instanceOfPostingV3FbsPostingSortingCenter(value) { + return true; +} +function PostingV3FbsPostingSortingCenterFromJSON(json) { + return PostingV3FbsPostingSortingCenterFromJSONTyped(json, false); +} +function PostingV3FbsPostingSortingCenterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function PostingV3FbsPostingSortingCenterToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/models/PostingV3PostingFboListRequest.d.ts b/dist/models/PostingV3PostingFboListRequest.d.ts new file mode 100644 index 0000000..c3a30b4 --- /dev/null +++ b/dist/models/PostingV3PostingFboListRequest.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListRequestFilter } from './PostingV3PostingFboListRequestFilter'; +import type { PostingV3PostingFboListRequestSortDirEnum } from './PostingV3PostingFboListRequestSortDirEnum'; +import type { PostingV3PostingFboListRequestWith } from './PostingV3PostingFboListRequestWith'; +/** + * + * @export + * @interface PostingV3PostingFboListRequest + */ +export interface PostingV3PostingFboListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV3PostingFboListRequest + */ + cursor?: string; + /** + * + * @type {PostingV3PostingFboListRequestFilter} + * @memberof PostingV3PostingFboListRequest + */ + filter?: PostingV3PostingFboListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV3PostingFboListRequest + */ + limit?: number; + /** + * + * @type {PostingV3PostingFboListRequestSortDirEnum} + * @memberof PostingV3PostingFboListRequest + */ + sort_dir?: PostingV3PostingFboListRequestSortDirEnum; + /** + * `true`, чтобы включить транслитерацию адреса из кириллицы в латиницу. + * + * @type {boolean} + * @memberof PostingV3PostingFboListRequest + */ + translit?: boolean; + /** + * + * @type {PostingV3PostingFboListRequestWith} + * @memberof PostingV3PostingFboListRequest + */ + _with?: PostingV3PostingFboListRequestWith; +} +/** + * Check if a given object implements the PostingV3PostingFboListRequest interface. + */ +export declare function instanceOfPostingV3PostingFboListRequest(value: object): value is PostingV3PostingFboListRequest; +export declare function PostingV3PostingFboListRequestFromJSON(json: any): PostingV3PostingFboListRequest; +export declare function PostingV3PostingFboListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListRequest; +export declare function PostingV3PostingFboListRequestToJSON(value?: PostingV3PostingFboListRequest | null): any; diff --git a/dist/models/PostingV3PostingFboListRequest.js b/dist/models/PostingV3PostingFboListRequest.js new file mode 100644 index 0000000..8f74ad8 --- /dev/null +++ b/dist/models/PostingV3PostingFboListRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListRequest = instanceOfPostingV3PostingFboListRequest; +exports.PostingV3PostingFboListRequestFromJSON = PostingV3PostingFboListRequestFromJSON; +exports.PostingV3PostingFboListRequestFromJSONTyped = PostingV3PostingFboListRequestFromJSONTyped; +exports.PostingV3PostingFboListRequestToJSON = PostingV3PostingFboListRequestToJSON; +const PostingV3PostingFboListRequestFilter_1 = require("./PostingV3PostingFboListRequestFilter"); +const PostingV3PostingFboListRequestSortDirEnum_1 = require("./PostingV3PostingFboListRequestSortDirEnum"); +const PostingV3PostingFboListRequestWith_1 = require("./PostingV3PostingFboListRequestWith"); +/** + * Check if a given object implements the PostingV3PostingFboListRequest interface. + */ +function instanceOfPostingV3PostingFboListRequest(value) { + return true; +} +function PostingV3PostingFboListRequestFromJSON(json) { + return PostingV3PostingFboListRequestFromJSONTyped(json, false); +} +function PostingV3PostingFboListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, PostingV3PostingFboListRequestFilter_1.PostingV3PostingFboListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, PostingV3PostingFboListRequestSortDirEnum_1.PostingV3PostingFboListRequestSortDirEnumFromJSON)(json['sort_dir']), + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : (0, PostingV3PostingFboListRequestWith_1.PostingV3PostingFboListRequestWithFromJSON)(json['with']), + }; +} +function PostingV3PostingFboListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, PostingV3PostingFboListRequestFilter_1.PostingV3PostingFboListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'sort_dir': (0, PostingV3PostingFboListRequestSortDirEnum_1.PostingV3PostingFboListRequestSortDirEnumToJSON)(value['sort_dir']), + 'translit': value['translit'], + 'with': (0, PostingV3PostingFboListRequestWith_1.PostingV3PostingFboListRequestWithToJSON)(value['_with']), + }; +} diff --git a/dist/models/PostingV3PostingFboListRequestFilter.d.ts b/dist/models/PostingV3PostingFboListRequestFilter.d.ts new file mode 100644 index 0000000..cb3a163 --- /dev/null +++ b/dist/models/PostingV3PostingFboListRequestFilter.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр для поиска отправлений. + * @export + * @interface PostingV3PostingFboListRequestFilter + */ +export interface PostingV3PostingFboListRequestFilter { + /** + * Номера заказов, к которым относятся отправления. + * @type {Array} + * @memberof PostingV3PostingFboListRequestFilter + */ + order_numbers?: Array; + /** + * Идентификаторы отправлений. + * @type {Array} + * @memberof PostingV3PostingFboListRequestFilter + */ + posting_numbers?: Array; + /** + * Начало периода. + * @type {string} + * @memberof PostingV3PostingFboListRequestFilter + */ + since?: string; + /** + * Статус отправления: + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_deliver` — ожидает отгрузки; + * - `delivering` — доставляется; + * - `delivered` — доставлено; + * - `cancelled` — отменено. + * + * @type {Array} + * @memberof PostingV3PostingFboListRequestFilter + */ + statuses?: Array; + /** + * Конец периода. + * @type {string} + * @memberof PostingV3PostingFboListRequestFilter + */ + to?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListRequestFilter interface. + */ +export declare function instanceOfPostingV3PostingFboListRequestFilter(value: object): value is PostingV3PostingFboListRequestFilter; +export declare function PostingV3PostingFboListRequestFilterFromJSON(json: any): PostingV3PostingFboListRequestFilter; +export declare function PostingV3PostingFboListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListRequestFilter; +export declare function PostingV3PostingFboListRequestFilterToJSON(value?: PostingV3PostingFboListRequestFilter | null): any; diff --git a/dist/models/PostingV3PostingFboListRequestFilter.js b/dist/models/PostingV3PostingFboListRequestFilter.js new file mode 100644 index 0000000..70abd80 --- /dev/null +++ b/dist/models/PostingV3PostingFboListRequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListRequestFilter = instanceOfPostingV3PostingFboListRequestFilter; +exports.PostingV3PostingFboListRequestFilterFromJSON = PostingV3PostingFboListRequestFilterFromJSON; +exports.PostingV3PostingFboListRequestFilterFromJSONTyped = PostingV3PostingFboListRequestFilterFromJSONTyped; +exports.PostingV3PostingFboListRequestFilterToJSON = PostingV3PostingFboListRequestFilterToJSON; +/** + * Check if a given object implements the PostingV3PostingFboListRequestFilter interface. + */ +function instanceOfPostingV3PostingFboListRequestFilter(value) { + return true; +} +function PostingV3PostingFboListRequestFilterFromJSON(json) { + return PostingV3PostingFboListRequestFilterFromJSONTyped(json, false); +} +function PostingV3PostingFboListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_numbers': json['order_numbers'] == null ? undefined : json['order_numbers'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'since': json['since'] == null ? undefined : json['since'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function PostingV3PostingFboListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_numbers': value['order_numbers'], + 'posting_numbers': value['posting_numbers'], + 'since': value['since'], + 'statuses': value['statuses'], + 'to': value['to'], + }; +} diff --git a/dist/models/PostingV3PostingFboListRequestSortDirEnum.d.ts b/dist/models/PostingV3PostingFboListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..da8e3d7 --- /dev/null +++ b/dist/models/PostingV3PostingFboListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV3PostingFboListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV3PostingFboListRequestSortDirEnum = typeof PostingV3PostingFboListRequestSortDirEnum[keyof typeof PostingV3PostingFboListRequestSortDirEnum]; +export declare function instanceOfPostingV3PostingFboListRequestSortDirEnum(value: any): boolean; +export declare function PostingV3PostingFboListRequestSortDirEnumFromJSON(json: any): PostingV3PostingFboListRequestSortDirEnum; +export declare function PostingV3PostingFboListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListRequestSortDirEnum; +export declare function PostingV3PostingFboListRequestSortDirEnumToJSON(value?: PostingV3PostingFboListRequestSortDirEnum | null): any; diff --git a/dist/models/PostingV3PostingFboListRequestSortDirEnum.js b/dist/models/PostingV3PostingFboListRequestSortDirEnum.js new file mode 100644 index 0000000..0ad6def --- /dev/null +++ b/dist/models/PostingV3PostingFboListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PostingV3PostingFboListRequestSortDirEnum = void 0; +exports.instanceOfPostingV3PostingFboListRequestSortDirEnum = instanceOfPostingV3PostingFboListRequestSortDirEnum; +exports.PostingV3PostingFboListRequestSortDirEnumFromJSON = PostingV3PostingFboListRequestSortDirEnumFromJSON; +exports.PostingV3PostingFboListRequestSortDirEnumFromJSONTyped = PostingV3PostingFboListRequestSortDirEnumFromJSONTyped; +exports.PostingV3PostingFboListRequestSortDirEnumToJSON = PostingV3PostingFboListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.PostingV3PostingFboListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfPostingV3PostingFboListRequestSortDirEnum(value) { + for (const key in exports.PostingV3PostingFboListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PostingV3PostingFboListRequestSortDirEnum, key)) { + if (exports.PostingV3PostingFboListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function PostingV3PostingFboListRequestSortDirEnumFromJSON(json) { + return PostingV3PostingFboListRequestSortDirEnumFromJSONTyped(json, false); +} +function PostingV3PostingFboListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PostingV3PostingFboListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/PostingV3PostingFboListRequestWith.d.ts b/dist/models/PostingV3PostingFboListRequestWith.d.ts new file mode 100644 index 0000000..e3c7ad0 --- /dev/null +++ b/dist/models/PostingV3PostingFboListRequestWith.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingV3PostingFboListRequestWith + */ +export interface PostingV3PostingFboListRequestWith { + /** + * `true`, чтобы добавить в ответ данные аналитики. + * + * @type {boolean} + * @memberof PostingV3PostingFboListRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ финансовые данные. + * + * @type {boolean} + * @memberof PostingV3PostingFboListRequestWith + */ + financial_data?: boolean; + /** + * `true`, чтобы добавить в ответ юридическую информацию. + * + * @type {boolean} + * @memberof PostingV3PostingFboListRequestWith + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingV3PostingFboListRequestWith interface. + */ +export declare function instanceOfPostingV3PostingFboListRequestWith(value: object): value is PostingV3PostingFboListRequestWith; +export declare function PostingV3PostingFboListRequestWithFromJSON(json: any): PostingV3PostingFboListRequestWith; +export declare function PostingV3PostingFboListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListRequestWith; +export declare function PostingV3PostingFboListRequestWithToJSON(value?: PostingV3PostingFboListRequestWith | null): any; diff --git a/dist/models/PostingV3PostingFboListRequestWith.js b/dist/models/PostingV3PostingFboListRequestWith.js new file mode 100644 index 0000000..de9ca2e --- /dev/null +++ b/dist/models/PostingV3PostingFboListRequestWith.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListRequestWith = instanceOfPostingV3PostingFboListRequestWith; +exports.PostingV3PostingFboListRequestWithFromJSON = PostingV3PostingFboListRequestWithFromJSON; +exports.PostingV3PostingFboListRequestWithFromJSONTyped = PostingV3PostingFboListRequestWithFromJSONTyped; +exports.PostingV3PostingFboListRequestWithToJSON = PostingV3PostingFboListRequestWithToJSON; +/** + * Check if a given object implements the PostingV3PostingFboListRequestWith interface. + */ +function instanceOfPostingV3PostingFboListRequestWith(value) { + return true; +} +function PostingV3PostingFboListRequestWithFromJSON(json) { + return PostingV3PostingFboListRequestWithFromJSONTyped(json, false); +} +function PostingV3PostingFboListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +function PostingV3PostingFboListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponse.d.ts b/dist/models/PostingV3PostingFboListResponse.d.ts new file mode 100644 index 0000000..6ad211a --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListResponsePostings } from './PostingV3PostingFboListResponsePostings'; +/** + * + * @export + * @interface PostingV3PostingFboListResponse + */ +export interface PostingV3PostingFboListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV3PostingFboListResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponse + */ + has_next?: boolean; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV3PostingFboListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponse interface. + */ +export declare function instanceOfPostingV3PostingFboListResponse(value: object): value is PostingV3PostingFboListResponse; +export declare function PostingV3PostingFboListResponseFromJSON(json: any): PostingV3PostingFboListResponse; +export declare function PostingV3PostingFboListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponse; +export declare function PostingV3PostingFboListResponseToJSON(value?: PostingV3PostingFboListResponse | null): any; diff --git a/dist/models/PostingV3PostingFboListResponse.js b/dist/models/PostingV3PostingFboListResponse.js new file mode 100644 index 0000000..d559044 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponse = instanceOfPostingV3PostingFboListResponse; +exports.PostingV3PostingFboListResponseFromJSON = PostingV3PostingFboListResponseFromJSON; +exports.PostingV3PostingFboListResponseFromJSONTyped = PostingV3PostingFboListResponseFromJSONTyped; +exports.PostingV3PostingFboListResponseToJSON = PostingV3PostingFboListResponseToJSON; +const PostingV3PostingFboListResponsePostings_1 = require("./PostingV3PostingFboListResponsePostings"); +/** + * Check if a given object implements the PostingV3PostingFboListResponse interface. + */ +function instanceOfPostingV3PostingFboListResponse(value) { + return true; +} +function PostingV3PostingFboListResponseFromJSON(json) { + return PostingV3PostingFboListResponseFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV3PostingFboListResponsePostings_1.PostingV3PostingFboListResponsePostingsFromJSON)), + }; +} +function PostingV3PostingFboListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV3PostingFboListResponsePostings_1.PostingV3PostingFboListResponsePostingsToJSON)), + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostings.d.ts b/dist/models/PostingV3PostingFboListResponsePostings.d.ts new file mode 100644 index 0000000..be49bf3 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostings.d.ts @@ -0,0 +1,141 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListResponsePostingsAdditionalData } from './PostingV3PostingFboListResponsePostingsAdditionalData'; +import type { PostingV3PostingFboListResponsePostingsProducts } from './PostingV3PostingFboListResponsePostingsProducts'; +import type { PostingV3PostingFboListResponsePostingsCancellation } from './PostingV3PostingFboListResponsePostingsCancellation'; +import type { PostingV3PostingFboListResponsePostingsFinancialData } from './PostingV3PostingFboListResponsePostingsFinancialData'; +import type { PostingV3PostingFboListResponsePostingsLegalInfo } from './PostingV3PostingFboListResponsePostingsLegalInfo'; +import type { PostingV3PostingFboListResponsePostingsAnalyticsData } from './PostingV3PostingFboListResponsePostingsAnalyticsData'; +import type { PostingV3PostingFboListResponsePostingsExternalOrder } from './PostingV3PostingFboListResponsePostingsExternalOrder'; +/** + * + * @export + * @interface PostingV3PostingFboListResponsePostings + */ +export interface PostingV3PostingFboListResponsePostings { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostings + */ + additional_data?: Array; + /** + * + * @type {PostingV3PostingFboListResponsePostingsAnalyticsData} + * @memberof PostingV3PostingFboListResponsePostings + */ + analytics_data?: PostingV3PostingFboListResponsePostingsAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostings + */ + cancel_reason_id?: number; + /** + * + * @type {PostingV3PostingFboListResponsePostingsCancellation} + * @memberof PostingV3PostingFboListResponsePostings + */ + cancellation?: PostingV3PostingFboListResponsePostingsCancellation; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + created_at?: string; + /** + * + * @type {PostingV3PostingFboListResponsePostingsExternalOrder} + * @memberof PostingV3PostingFboListResponsePostings + */ + external_order?: PostingV3PostingFboListResponsePostingsExternalOrder; + /** + * + * @type {PostingV3PostingFboListResponsePostingsFinancialData} + * @memberof PostingV3PostingFboListResponsePostings + */ + financial_data?: PostingV3PostingFboListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + in_process_at?: string; + /** + * + * @type {PostingV3PostingFboListResponsePostingsLegalInfo} + * @memberof PostingV3PostingFboListResponsePostings + */ + legal_info?: PostingV3PostingFboListResponsePostingsLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostings + */ + products?: Array; + /** + * Статус отправления: + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_deliver` — ожидает отгрузки; + * - `delivering` — доставляется; + * - `delivered` — доставлено; + * - `cancelled` — отменено. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_split_pending`, `posting_created` — создано; + * - `posting_packing` — на упаковке; + * - `posting_transferring_to_delivery` — передаётся в доставку; + * - `posting_on_way_to_city` — на пути в город доставки; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_delivered` — доставлено курьером; + * - `posting_received` — получено в пункте выдачи; + * - `posting_canceled` — отменено. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostings + */ + substatus?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostings interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostings(value: object): value is PostingV3PostingFboListResponsePostings; +export declare function PostingV3PostingFboListResponsePostingsFromJSON(json: any): PostingV3PostingFboListResponsePostings; +export declare function PostingV3PostingFboListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostings; +export declare function PostingV3PostingFboListResponsePostingsToJSON(value?: PostingV3PostingFboListResponsePostings | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostings.js b/dist/models/PostingV3PostingFboListResponsePostings.js new file mode 100644 index 0000000..d07cedd --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostings.js @@ -0,0 +1,79 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostings = instanceOfPostingV3PostingFboListResponsePostings; +exports.PostingV3PostingFboListResponsePostingsFromJSON = PostingV3PostingFboListResponsePostingsFromJSON; +exports.PostingV3PostingFboListResponsePostingsFromJSONTyped = PostingV3PostingFboListResponsePostingsFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsToJSON = PostingV3PostingFboListResponsePostingsToJSON; +const PostingV3PostingFboListResponsePostingsAdditionalData_1 = require("./PostingV3PostingFboListResponsePostingsAdditionalData"); +const PostingV3PostingFboListResponsePostingsProducts_1 = require("./PostingV3PostingFboListResponsePostingsProducts"); +const PostingV3PostingFboListResponsePostingsCancellation_1 = require("./PostingV3PostingFboListResponsePostingsCancellation"); +const PostingV3PostingFboListResponsePostingsFinancialData_1 = require("./PostingV3PostingFboListResponsePostingsFinancialData"); +const PostingV3PostingFboListResponsePostingsLegalInfo_1 = require("./PostingV3PostingFboListResponsePostingsLegalInfo"); +const PostingV3PostingFboListResponsePostingsAnalyticsData_1 = require("./PostingV3PostingFboListResponsePostingsAnalyticsData"); +const PostingV3PostingFboListResponsePostingsExternalOrder_1 = require("./PostingV3PostingFboListResponsePostingsExternalOrder"); +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostings interface. + */ +function instanceOfPostingV3PostingFboListResponsePostings(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsFromJSON(json) { + return PostingV3PostingFboListResponsePostingsFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(PostingV3PostingFboListResponsePostingsAdditionalData_1.PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, PostingV3PostingFboListResponsePostingsAnalyticsData_1.PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON)(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation': json['cancellation'] == null ? undefined : (0, PostingV3PostingFboListResponsePostingsCancellation_1.PostingV3PostingFboListResponsePostingsCancellationFromJSON)(json['cancellation']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'external_order': json['external_order'] == null ? undefined : (0, PostingV3PostingFboListResponsePostingsExternalOrder_1.PostingV3PostingFboListResponsePostingsExternalOrderFromJSON)(json['external_order']), + 'financial_data': json['financial_data'] == null ? undefined : (0, PostingV3PostingFboListResponsePostingsFinancialData_1.PostingV3PostingFboListResponsePostingsFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : (0, PostingV3PostingFboListResponsePostingsLegalInfo_1.PostingV3PostingFboListResponsePostingsLegalInfoFromJSON)(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV3PostingFboListResponsePostingsProducts_1.PostingV3PostingFboListResponsePostingsProductsFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + }; +} +function PostingV3PostingFboListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(PostingV3PostingFboListResponsePostingsAdditionalData_1.PostingV3PostingFboListResponsePostingsAdditionalDataToJSON)), + 'analytics_data': (0, PostingV3PostingFboListResponsePostingsAnalyticsData_1.PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON)(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation': (0, PostingV3PostingFboListResponsePostingsCancellation_1.PostingV3PostingFboListResponsePostingsCancellationToJSON)(value['cancellation']), + 'created_at': value['created_at'], + 'external_order': (0, PostingV3PostingFboListResponsePostingsExternalOrder_1.PostingV3PostingFboListResponsePostingsExternalOrderToJSON)(value['external_order']), + 'financial_data': (0, PostingV3PostingFboListResponsePostingsFinancialData_1.PostingV3PostingFboListResponsePostingsFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': (0, PostingV3PostingFboListResponsePostingsLegalInfo_1.PostingV3PostingFboListResponsePostingsLegalInfoToJSON)(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV3PostingFboListResponsePostingsProducts_1.PostingV3PostingFboListResponsePostingsProductsToJSON)), + 'status': value['status'], + 'substatus': value['substatus'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsAdditionalData.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsAdditionalData.d.ts new file mode 100644 index 0000000..bd54c13 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsAdditionalData.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PostingV3PostingFboListResponsePostingsAdditionalData + */ +export interface PostingV3PostingFboListResponsePostingsAdditionalData { + /** + * Ключ дополнительного параметра. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAdditionalData + */ + key?: string; + /** + * Значение дополнительного параметра. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAdditionalData + */ + value?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsAdditionalData interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsAdditionalData(value: object): value is PostingV3PostingFboListResponsePostingsAdditionalData; +export declare function PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON(json: any): PostingV3PostingFboListResponsePostingsAdditionalData; +export declare function PostingV3PostingFboListResponsePostingsAdditionalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsAdditionalData; +export declare function PostingV3PostingFboListResponsePostingsAdditionalDataToJSON(value?: PostingV3PostingFboListResponsePostingsAdditionalData | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsAdditionalData.js b/dist/models/PostingV3PostingFboListResponsePostingsAdditionalData.js new file mode 100644 index 0000000..afd9e7b --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsAdditionalData.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsAdditionalData = instanceOfPostingV3PostingFboListResponsePostingsAdditionalData; +exports.PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON = PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON; +exports.PostingV3PostingFboListResponsePostingsAdditionalDataFromJSONTyped = PostingV3PostingFboListResponsePostingsAdditionalDataFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsAdditionalDataToJSON = PostingV3PostingFboListResponsePostingsAdditionalDataToJSON; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsAdditionalData interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsAdditionalData(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsAdditionalDataFromJSON(json) { + return PostingV3PostingFboListResponsePostingsAdditionalDataFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsAdditionalDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function PostingV3PostingFboListResponsePostingsAdditionalDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsAnalyticsData.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsAnalyticsData.d.ts new file mode 100644 index 0000000..9e57c6c --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsAnalyticsData.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV3PostingFboListResponsePostingsAnalyticsData + */ +export interface PostingV3PostingFboListResponsePostingsAnalyticsData { + /** + * Город доставки. Только для продавцов из СНГ. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + client_delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + delivery_type?: string; + /** + * `true`, если получатель юридическое лицо. + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + is_legal?: boolean; + /** + * `true`, если у получателя есть подписка Premium. + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`; + * - `карта Ozon Банка`; + * - `автосписание с карты Ozon Банка при выдаче`; + * - `сохранённой картой при получении`; + * - `Система Быстрых Платежей`; + * - `Ozon Рассрочка`; + * - `оплата на расчётный счёт`; + * - `SberPay`; + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + payment_type_group_name?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + warehouse_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsAnalyticsData + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsAnalyticsData interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsAnalyticsData(value: object): value is PostingV3PostingFboListResponsePostingsAnalyticsData; +export declare function PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON(json: any): PostingV3PostingFboListResponsePostingsAnalyticsData; +export declare function PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsAnalyticsData; +export declare function PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON(value?: PostingV3PostingFboListResponsePostingsAnalyticsData | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsAnalyticsData.js b/dist/models/PostingV3PostingFboListResponsePostingsAnalyticsData.js new file mode 100644 index 0000000..dcb9da3 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsAnalyticsData.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsAnalyticsData = instanceOfPostingV3PostingFboListResponsePostingsAnalyticsData; +exports.PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON = PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON; +exports.PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSONTyped = PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON = PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsAnalyticsData interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsAnalyticsData(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSON(json) { + return PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function PostingV3PostingFboListResponsePostingsAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsCancellation.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsCancellation.d.ts new file mode 100644 index 0000000..6bf0557 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsCancellation.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV3PostingFboListResponsePostingsCancellation + */ +export interface PostingV3PostingFboListResponsePostingsCancellation { + /** + * Причина отмены. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsCancellation + */ + cancel_reason?: string; + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент`, + * - `Покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system` — отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsCancellation + */ + cancellation_type?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsCancellation interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsCancellation(value: object): value is PostingV3PostingFboListResponsePostingsCancellation; +export declare function PostingV3PostingFboListResponsePostingsCancellationFromJSON(json: any): PostingV3PostingFboListResponsePostingsCancellation; +export declare function PostingV3PostingFboListResponsePostingsCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsCancellation; +export declare function PostingV3PostingFboListResponsePostingsCancellationToJSON(value?: PostingV3PostingFboListResponsePostingsCancellation | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsCancellation.js b/dist/models/PostingV3PostingFboListResponsePostingsCancellation.js new file mode 100644 index 0000000..3fda574 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsCancellation.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsCancellation = instanceOfPostingV3PostingFboListResponsePostingsCancellation; +exports.PostingV3PostingFboListResponsePostingsCancellationFromJSON = PostingV3PostingFboListResponsePostingsCancellationFromJSON; +exports.PostingV3PostingFboListResponsePostingsCancellationFromJSONTyped = PostingV3PostingFboListResponsePostingsCancellationFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsCancellationToJSON = PostingV3PostingFboListResponsePostingsCancellationToJSON; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsCancellation interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsCancellation(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsCancellationFromJSON(json) { + return PostingV3PostingFboListResponsePostingsCancellationFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + }; +} +function PostingV3PostingFboListResponsePostingsCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason': value['cancel_reason'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsExternalOrder.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsExternalOrder.d.ts new file mode 100644 index 0000000..5c9e5b0 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV3PostingFboListResponsePostingsExternalOrder + */ +export interface PostingV3PostingFboListResponsePostingsExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponsePostingsExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsExternalOrder interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsExternalOrder(value: object): value is PostingV3PostingFboListResponsePostingsExternalOrder; +export declare function PostingV3PostingFboListResponsePostingsExternalOrderFromJSON(json: any): PostingV3PostingFboListResponsePostingsExternalOrder; +export declare function PostingV3PostingFboListResponsePostingsExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsExternalOrder; +export declare function PostingV3PostingFboListResponsePostingsExternalOrderToJSON(value?: PostingV3PostingFboListResponsePostingsExternalOrder | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsExternalOrder.js b/dist/models/PostingV3PostingFboListResponsePostingsExternalOrder.js new file mode 100644 index 0000000..d9425e6 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsExternalOrder.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsExternalOrder = instanceOfPostingV3PostingFboListResponsePostingsExternalOrder; +exports.PostingV3PostingFboListResponsePostingsExternalOrderFromJSON = PostingV3PostingFboListResponsePostingsExternalOrderFromJSON; +exports.PostingV3PostingFboListResponsePostingsExternalOrderFromJSONTyped = PostingV3PostingFboListResponsePostingsExternalOrderFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsExternalOrderToJSON = PostingV3PostingFboListResponsePostingsExternalOrderToJSON; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsExternalOrder interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsExternalOrder(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsExternalOrderFromJSON(json) { + return PostingV3PostingFboListResponsePostingsExternalOrderFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +function PostingV3PostingFboListResponsePostingsExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsFinancialData.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..6a7230a --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListResponsePostingsFinancialDataProducts } from './PostingV3PostingFboListResponsePostingsFinancialDataProducts'; +/** + * Финансовые данные. + * @export + * @interface PostingV3PostingFboListResponsePostingsFinancialData + */ +export interface PostingV3PostingFboListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsFinancialData(value: object): value is PostingV3PostingFboListResponsePostingsFinancialData; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataFromJSON(json: any): PostingV3PostingFboListResponsePostingsFinancialData; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsFinancialData; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataToJSON(value?: PostingV3PostingFboListResponsePostingsFinancialData | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsFinancialData.js b/dist/models/PostingV3PostingFboListResponsePostingsFinancialData.js new file mode 100644 index 0000000..523b4ad --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsFinancialData.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsFinancialData = instanceOfPostingV3PostingFboListResponsePostingsFinancialData; +exports.PostingV3PostingFboListResponsePostingsFinancialDataFromJSON = PostingV3PostingFboListResponsePostingsFinancialDataFromJSON; +exports.PostingV3PostingFboListResponsePostingsFinancialDataFromJSONTyped = PostingV3PostingFboListResponsePostingsFinancialDataFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsFinancialDataToJSON = PostingV3PostingFboListResponsePostingsFinancialDataToJSON; +const PostingV3PostingFboListResponsePostingsFinancialDataProducts_1 = require("./PostingV3PostingFboListResponsePostingsFinancialDataProducts"); +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialData interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsFinancialData(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsFinancialDataFromJSON(json) { + return PostingV3PostingFboListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV3PostingFboListResponsePostingsFinancialDataProducts_1.PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +function PostingV3PostingFboListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV3PostingFboListResponsePostingsFinancialDataProducts_1.PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..98cbedc --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission } from './PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission'; +/** + * + * @export + * @interface PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ +export interface PostingV3PostingFboListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + commission?: PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProducts(value: object): value is PostingV3PostingFboListResponsePostingsFinancialDataProducts; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV3PostingFboListResponsePostingsFinancialDataProducts; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsFinancialDataProducts; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON(value?: PostingV3PostingFboListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.js b/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..359c155 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProducts = instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProducts; +exports.PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON = PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON; +exports.PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSONTyped = PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON = PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON; +const PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission_1 = require("./PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission"); +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialDataProducts interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProducts(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'commission': json['commission'] == null ? undefined : (0, PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission_1.PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON)(json['commission']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +function PostingV3PostingFboListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'commission': (0, PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission_1.PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON)(value['commission']), + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..fee5f61 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission { + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Код валюты, в которой рассчитывалась комиссия. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission + */ + currency?: string; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.js b/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..8224ebe --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProductsCommission = instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProductsCommission; +exports.PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON = PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON; +exports.PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSONTyped = PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON = PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +function PostingV3PostingFboListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + 'percent': value['percent'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsLegalInfo.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsLegalInfo.d.ts new file mode 100644 index 0000000..9de181f --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingV3PostingFboListResponsePostingsLegalInfo + */ +export interface PostingV3PostingFboListResponsePostingsLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsLegalInfo interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsLegalInfo(value: object): value is PostingV3PostingFboListResponsePostingsLegalInfo; +export declare function PostingV3PostingFboListResponsePostingsLegalInfoFromJSON(json: any): PostingV3PostingFboListResponsePostingsLegalInfo; +export declare function PostingV3PostingFboListResponsePostingsLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsLegalInfo; +export declare function PostingV3PostingFboListResponsePostingsLegalInfoToJSON(value?: PostingV3PostingFboListResponsePostingsLegalInfo | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsLegalInfo.js b/dist/models/PostingV3PostingFboListResponsePostingsLegalInfo.js new file mode 100644 index 0000000..0bb9975 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsLegalInfo.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsLegalInfo = instanceOfPostingV3PostingFboListResponsePostingsLegalInfo; +exports.PostingV3PostingFboListResponsePostingsLegalInfoFromJSON = PostingV3PostingFboListResponsePostingsLegalInfoFromJSON; +exports.PostingV3PostingFboListResponsePostingsLegalInfoFromJSONTyped = PostingV3PostingFboListResponsePostingsLegalInfoFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsLegalInfoToJSON = PostingV3PostingFboListResponsePostingsLegalInfoToJSON; +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsLegalInfo interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsLegalInfo(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsLegalInfoFromJSON(json) { + return PostingV3PostingFboListResponsePostingsLegalInfoFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +function PostingV3PostingFboListResponsePostingsLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/models/PostingV3PostingFboListResponsePostingsProducts.d.ts b/dist/models/PostingV3PostingFboListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..3c2d3b7 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsProducts.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV3PostingFboListResponsePostingsProducts + */ +export interface PostingV3PostingFboListResponsePostingsProducts { + /** + * Коды активации для услуг и цифровых товаров. + * @type {Array} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + digital_codes?: Array; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + is_marketplace_buyout?: boolean; + /** + * Название товара. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV3PostingFboListResponsePostingsProducts + */ + sku?: number; +} +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV3PostingFboListResponsePostingsProducts(value: object): value is PostingV3PostingFboListResponsePostingsProducts; +export declare function PostingV3PostingFboListResponsePostingsProductsFromJSON(json: any): PostingV3PostingFboListResponsePostingsProducts; +export declare function PostingV3PostingFboListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV3PostingFboListResponsePostingsProducts; +export declare function PostingV3PostingFboListResponsePostingsProductsToJSON(value?: PostingV3PostingFboListResponsePostingsProducts | null): any; diff --git a/dist/models/PostingV3PostingFboListResponsePostingsProducts.js b/dist/models/PostingV3PostingFboListResponsePostingsProducts.js new file mode 100644 index 0000000..7a699f0 --- /dev/null +++ b/dist/models/PostingV3PostingFboListResponsePostingsProducts.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV3PostingFboListResponsePostingsProducts = instanceOfPostingV3PostingFboListResponsePostingsProducts; +exports.PostingV3PostingFboListResponsePostingsProductsFromJSON = PostingV3PostingFboListResponsePostingsProductsFromJSON; +exports.PostingV3PostingFboListResponsePostingsProductsFromJSONTyped = PostingV3PostingFboListResponsePostingsProductsFromJSONTyped; +exports.PostingV3PostingFboListResponsePostingsProductsToJSON = PostingV3PostingFboListResponsePostingsProductsToJSON; +const MoneyPostingMoney_1 = require("./MoneyPostingMoney"); +/** + * Check if a given object implements the PostingV3PostingFboListResponsePostingsProducts interface. + */ +function instanceOfPostingV3PostingFboListResponsePostingsProducts(value) { + return true; +} +function PostingV3PostingFboListResponsePostingsProductsFromJSON(json) { + return PostingV3PostingFboListResponsePostingsProductsFromJSONTyped(json, false); +} +function PostingV3PostingFboListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'digital_codes': json['digital_codes'] == null ? undefined : json['digital_codes'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : (0, MoneyPostingMoney_1.MoneyPostingMoneyFromJSON)(json['price']), + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function PostingV3PostingFboListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'digital_codes': value['digital_codes'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': (0, MoneyPostingMoney_1.MoneyPostingMoneyToJSON)(value['price']), + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListRequest.d.ts b/dist/models/PostingV4PostingFbsListRequest.d.ts new file mode 100644 index 0000000..7f3ff8f --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequest.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListRequestFilter } from './PostingV4PostingFbsListRequestFilter'; +import type { PostingV4PostingFbsListRequestSortDirEnum } from './PostingV4PostingFbsListRequestSortDirEnum'; +import type { PostingV4PostingFbsListRequestWith } from './PostingV4PostingFbsListRequestWith'; +/** + * + * @export + * @interface PostingV4PostingFbsListRequest + */ +export interface PostingV4PostingFbsListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV4PostingFbsListRequest + */ + cursor?: string; + /** + * + * @type {PostingV4PostingFbsListRequestFilter} + * @memberof PostingV4PostingFbsListRequest + */ + filter: PostingV4PostingFbsListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV4PostingFbsListRequest + */ + limit: number; + /** + * + * @type {PostingV4PostingFbsListRequestSortDirEnum} + * @memberof PostingV4PostingFbsListRequest + */ + sort_dir?: PostingV4PostingFbsListRequestSortDirEnum; + /** + * `true`, чтобы включить транслитерацию адреса из кириллицы в латиницу. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequest + */ + translit?: boolean; + /** + * + * @type {PostingV4PostingFbsListRequestWith} + * @memberof PostingV4PostingFbsListRequest + */ + _with?: PostingV4PostingFbsListRequestWith; +} +/** + * Check if a given object implements the PostingV4PostingFbsListRequest interface. + */ +export declare function instanceOfPostingV4PostingFbsListRequest(value: object): value is PostingV4PostingFbsListRequest; +export declare function PostingV4PostingFbsListRequestFromJSON(json: any): PostingV4PostingFbsListRequest; +export declare function PostingV4PostingFbsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequest; +export declare function PostingV4PostingFbsListRequestToJSON(value?: PostingV4PostingFbsListRequest | null): any; diff --git a/dist/models/PostingV4PostingFbsListRequest.js b/dist/models/PostingV4PostingFbsListRequest.js new file mode 100644 index 0000000..54f5cd5 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequest.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListRequest = instanceOfPostingV4PostingFbsListRequest; +exports.PostingV4PostingFbsListRequestFromJSON = PostingV4PostingFbsListRequestFromJSON; +exports.PostingV4PostingFbsListRequestFromJSONTyped = PostingV4PostingFbsListRequestFromJSONTyped; +exports.PostingV4PostingFbsListRequestToJSON = PostingV4PostingFbsListRequestToJSON; +const PostingV4PostingFbsListRequestFilter_1 = require("./PostingV4PostingFbsListRequestFilter"); +const PostingV4PostingFbsListRequestSortDirEnum_1 = require("./PostingV4PostingFbsListRequestSortDirEnum"); +const PostingV4PostingFbsListRequestWith_1 = require("./PostingV4PostingFbsListRequestWith"); +/** + * Check if a given object implements the PostingV4PostingFbsListRequest interface. + */ +function instanceOfPostingV4PostingFbsListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function PostingV4PostingFbsListRequestFromJSON(json) { + return PostingV4PostingFbsListRequestFromJSONTyped(json, false); +} +function PostingV4PostingFbsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': (0, PostingV4PostingFbsListRequestFilter_1.PostingV4PostingFbsListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, PostingV4PostingFbsListRequestSortDirEnum_1.PostingV4PostingFbsListRequestSortDirEnumFromJSON)(json['sort_dir']), + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : (0, PostingV4PostingFbsListRequestWith_1.PostingV4PostingFbsListRequestWithFromJSON)(json['with']), + }; +} +function PostingV4PostingFbsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, PostingV4PostingFbsListRequestFilter_1.PostingV4PostingFbsListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'sort_dir': (0, PostingV4PostingFbsListRequestSortDirEnum_1.PostingV4PostingFbsListRequestSortDirEnumToJSON)(value['sort_dir']), + 'translit': value['translit'], + 'with': (0, PostingV4PostingFbsListRequestWith_1.PostingV4PostingFbsListRequestWithToJSON)(value['_with']), + }; +} diff --git a/dist/models/PostingV4PostingFbsListRequestFilter.d.ts b/dist/models/PostingV4PostingFbsListRequestFilter.d.ts new file mode 100644 index 0000000..cc8ee58 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequestFilter.d.ts @@ -0,0 +1,120 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListRequestFilterLastChangedStatusDate } from './PostingV4PostingFbsListRequestFilterLastChangedStatusDate'; +/** + * Фильтр. + * @export + * @interface PostingV4PostingFbsListRequestFilter + */ +export interface PostingV4PostingFbsListRequestFilter { + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + delivery_method_ids?: Array; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + integration_type_flow?: Array; + /** + * `true`, если товар отслеживаемый. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestFilter + */ + is_blr_traceable?: boolean; + /** + * + * @type {PostingV4PostingFbsListRequestFilterLastChangedStatusDate} + * @memberof PostingV4PostingFbsListRequestFilter + */ + last_changed_status_date?: PostingV4PostingFbsListRequestFilterLastChangedStatusDate; + /** + * Идентификатор заказа. + * @type {number} + * @memberof PostingV4PostingFbsListRequestFilter + */ + order_id?: number; + /** + * Номера заказов, к которым относятся отправления. + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + order_numbers?: Array; + /** + * Идентификатор службы доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + provider_ids?: Array; + /** + * Дата начала периода, за который нужно получить список отправлений. + * @type {string} + * @memberof PostingV4PostingFbsListRequestFilter + */ + since: string; + /** + * Статус отправления: + * - `awaiting_registration` — ожидает регистрации; + * - `acceptance_in_progress` — идёт приёмка; + * - `awaiting_approve` — ожидает подтверждения; + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_deliver` — ожидает отгрузки; + * - `arbitration` — арбитраж; + * - `client_arbitration` — клиентский арбитраж доставки; + * - `delivering` — доставляется; + * - `driver_pickup` — у водителя; + * - `delivered` — доставлено; + * - `cancelled` — отменено; + * - `not_accepted` — не принято на сортировочном центре; + * - `sent_by_seller` – отправлено продавцом. + * + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + statuses?: Array; + /** + * Дата конца периода, за который нужно получить список отправлений. + * @type {string} + * @memberof PostingV4PostingFbsListRequestFilter + */ + to: string; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof PostingV4PostingFbsListRequestFilter + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListRequestFilter interface. + */ +export declare function instanceOfPostingV4PostingFbsListRequestFilter(value: object): value is PostingV4PostingFbsListRequestFilter; +export declare function PostingV4PostingFbsListRequestFilterFromJSON(json: any): PostingV4PostingFbsListRequestFilter; +export declare function PostingV4PostingFbsListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequestFilter; +export declare function PostingV4PostingFbsListRequestFilterToJSON(value?: PostingV4PostingFbsListRequestFilter | null): any; diff --git a/dist/models/PostingV4PostingFbsListRequestFilter.js b/dist/models/PostingV4PostingFbsListRequestFilter.js new file mode 100644 index 0000000..fff198b --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequestFilter.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListRequestFilter = instanceOfPostingV4PostingFbsListRequestFilter; +exports.PostingV4PostingFbsListRequestFilterFromJSON = PostingV4PostingFbsListRequestFilterFromJSON; +exports.PostingV4PostingFbsListRequestFilterFromJSONTyped = PostingV4PostingFbsListRequestFilterFromJSONTyped; +exports.PostingV4PostingFbsListRequestFilterToJSON = PostingV4PostingFbsListRequestFilterToJSON; +const PostingV4PostingFbsListRequestFilterLastChangedStatusDate_1 = require("./PostingV4PostingFbsListRequestFilterLastChangedStatusDate"); +/** + * Check if a given object implements the PostingV4PostingFbsListRequestFilter interface. + */ +function instanceOfPostingV4PostingFbsListRequestFilter(value) { + if (!('since' in value) || value['since'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function PostingV4PostingFbsListRequestFilterFromJSON(json) { + return PostingV4PostingFbsListRequestFilterFromJSONTyped(json, false); +} +function PostingV4PostingFbsListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_ids': json['delivery_method_ids'] == null ? undefined : json['delivery_method_ids'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'last_changed_status_date': json['last_changed_status_date'] == null ? undefined : (0, PostingV4PostingFbsListRequestFilterLastChangedStatusDate_1.PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON)(json['last_changed_status_date']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_numbers': json['order_numbers'] == null ? undefined : json['order_numbers'], + 'provider_ids': json['provider_ids'] == null ? undefined : json['provider_ids'], + 'since': json['since'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'to': json['to'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function PostingV4PostingFbsListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_ids': value['delivery_method_ids'], + 'integration_type_flow': value['integration_type_flow'], + 'is_blr_traceable': value['is_blr_traceable'], + 'last_changed_status_date': (0, PostingV4PostingFbsListRequestFilterLastChangedStatusDate_1.PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON)(value['last_changed_status_date']), + 'order_id': value['order_id'], + 'order_numbers': value['order_numbers'], + 'provider_ids': value['provider_ids'], + 'since': value['since'], + 'statuses': value['statuses'], + 'to': value['to'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.d.ts b/dist/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.d.ts new file mode 100644 index 0000000..072f7c2 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, в который последний раз изменялся статус у отправлений. + * @export + * @interface PostingV4PostingFbsListRequestFilterLastChangedStatusDate + */ +export interface PostingV4PostingFbsListRequestFilterLastChangedStatusDate { + /** + * Дата начала периода. + * @type {string} + * @memberof PostingV4PostingFbsListRequestFilterLastChangedStatusDate + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof PostingV4PostingFbsListRequestFilterLastChangedStatusDate + */ + to?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListRequestFilterLastChangedStatusDate interface. + */ +export declare function instanceOfPostingV4PostingFbsListRequestFilterLastChangedStatusDate(value: object): value is PostingV4PostingFbsListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON(json: any): PostingV4PostingFbsListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON(value?: PostingV4PostingFbsListRequestFilterLastChangedStatusDate | null): any; diff --git a/dist/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.js b/dist/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.js new file mode 100644 index 0000000..83385db --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequestFilterLastChangedStatusDate.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListRequestFilterLastChangedStatusDate = instanceOfPostingV4PostingFbsListRequestFilterLastChangedStatusDate; +exports.PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON = PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON; +exports.PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSONTyped = PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSONTyped; +exports.PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON = PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListRequestFilterLastChangedStatusDate interface. + */ +function instanceOfPostingV4PostingFbsListRequestFilterLastChangedStatusDate(value) { + return true; +} +function PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSON(json) { + return PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSONTyped(json, false); +} +function PostingV4PostingFbsListRequestFilterLastChangedStatusDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function PostingV4PostingFbsListRequestFilterLastChangedStatusDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListRequestSortDirEnum.d.ts b/dist/models/PostingV4PostingFbsListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..d4080c6 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV4PostingFbsListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV4PostingFbsListRequestSortDirEnum = typeof PostingV4PostingFbsListRequestSortDirEnum[keyof typeof PostingV4PostingFbsListRequestSortDirEnum]; +export declare function instanceOfPostingV4PostingFbsListRequestSortDirEnum(value: any): boolean; +export declare function PostingV4PostingFbsListRequestSortDirEnumFromJSON(json: any): PostingV4PostingFbsListRequestSortDirEnum; +export declare function PostingV4PostingFbsListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequestSortDirEnum; +export declare function PostingV4PostingFbsListRequestSortDirEnumToJSON(value?: PostingV4PostingFbsListRequestSortDirEnum | null): any; diff --git a/dist/models/PostingV4PostingFbsListRequestSortDirEnum.js b/dist/models/PostingV4PostingFbsListRequestSortDirEnum.js new file mode 100644 index 0000000..e74003f --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PostingV4PostingFbsListRequestSortDirEnum = void 0; +exports.instanceOfPostingV4PostingFbsListRequestSortDirEnum = instanceOfPostingV4PostingFbsListRequestSortDirEnum; +exports.PostingV4PostingFbsListRequestSortDirEnumFromJSON = PostingV4PostingFbsListRequestSortDirEnumFromJSON; +exports.PostingV4PostingFbsListRequestSortDirEnumFromJSONTyped = PostingV4PostingFbsListRequestSortDirEnumFromJSONTyped; +exports.PostingV4PostingFbsListRequestSortDirEnumToJSON = PostingV4PostingFbsListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.PostingV4PostingFbsListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfPostingV4PostingFbsListRequestSortDirEnum(value) { + for (const key in exports.PostingV4PostingFbsListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PostingV4PostingFbsListRequestSortDirEnum, key)) { + if (exports.PostingV4PostingFbsListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function PostingV4PostingFbsListRequestSortDirEnumFromJSON(json) { + return PostingV4PostingFbsListRequestSortDirEnumFromJSONTyped(json, false); +} +function PostingV4PostingFbsListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PostingV4PostingFbsListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/PostingV4PostingFbsListRequestWith.d.ts b/dist/models/PostingV4PostingFbsListRequestWith.d.ts new file mode 100644 index 0000000..71cbbe2 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequestWith.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingV4PostingFbsListRequestWith + */ +export interface PostingV4PostingFbsListRequestWith { + /** + * `true`, чтобы добавить в ответ данные аналитики. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ штрихкоды отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestWith + */ + barcodes?: boolean; + /** + * `true`, чтобы добавить в ответ финансовые данные. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestWith + */ + financial_data?: boolean; + /** + * `true`, чтобы добавить в ответ юридическую информацию. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListRequestWith + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingV4PostingFbsListRequestWith interface. + */ +export declare function instanceOfPostingV4PostingFbsListRequestWith(value: object): value is PostingV4PostingFbsListRequestWith; +export declare function PostingV4PostingFbsListRequestWithFromJSON(json: any): PostingV4PostingFbsListRequestWith; +export declare function PostingV4PostingFbsListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListRequestWith; +export declare function PostingV4PostingFbsListRequestWithToJSON(value?: PostingV4PostingFbsListRequestWith | null): any; diff --git a/dist/models/PostingV4PostingFbsListRequestWith.js b/dist/models/PostingV4PostingFbsListRequestWith.js new file mode 100644 index 0000000..346c531 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListRequestWith.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListRequestWith = instanceOfPostingV4PostingFbsListRequestWith; +exports.PostingV4PostingFbsListRequestWithFromJSON = PostingV4PostingFbsListRequestWithFromJSON; +exports.PostingV4PostingFbsListRequestWithFromJSONTyped = PostingV4PostingFbsListRequestWithFromJSONTyped; +exports.PostingV4PostingFbsListRequestWithToJSON = PostingV4PostingFbsListRequestWithToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListRequestWith interface. + */ +function instanceOfPostingV4PostingFbsListRequestWith(value) { + return true; +} +function PostingV4PostingFbsListRequestWithFromJSON(json) { + return PostingV4PostingFbsListRequestWithFromJSONTyped(json, false); +} +function PostingV4PostingFbsListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +function PostingV4PostingFbsListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'barcodes': value['barcodes'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponse.d.ts b/dist/models/PostingV4PostingFbsListResponse.d.ts new file mode 100644 index 0000000..c9f5db2 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListResponsePostings } from './PostingV4PostingFbsListResponsePostings'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponse + */ +export interface PostingV4PostingFbsListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV4PostingFbsListResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponse + */ + has_next?: boolean; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV4PostingFbsListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponse interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponse(value: object): value is PostingV4PostingFbsListResponse; +export declare function PostingV4PostingFbsListResponseFromJSON(json: any): PostingV4PostingFbsListResponse; +export declare function PostingV4PostingFbsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponse; +export declare function PostingV4PostingFbsListResponseToJSON(value?: PostingV4PostingFbsListResponse | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponse.js b/dist/models/PostingV4PostingFbsListResponse.js new file mode 100644 index 0000000..435c607 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponse = instanceOfPostingV4PostingFbsListResponse; +exports.PostingV4PostingFbsListResponseFromJSON = PostingV4PostingFbsListResponseFromJSON; +exports.PostingV4PostingFbsListResponseFromJSONTyped = PostingV4PostingFbsListResponseFromJSONTyped; +exports.PostingV4PostingFbsListResponseToJSON = PostingV4PostingFbsListResponseToJSON; +const PostingV4PostingFbsListResponsePostings_1 = require("./PostingV4PostingFbsListResponsePostings"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponse interface. + */ +function instanceOfPostingV4PostingFbsListResponse(value) { + return true; +} +function PostingV4PostingFbsListResponseFromJSON(json) { + return PostingV4PostingFbsListResponseFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV4PostingFbsListResponsePostings_1.PostingV4PostingFbsListResponsePostingsFromJSON)), + }; +} +function PostingV4PostingFbsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV4PostingFbsListResponsePostings_1.PostingV4PostingFbsListResponsePostingsToJSON)), + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostings.d.ts b/dist/models/PostingV4PostingFbsListResponsePostings.d.ts new file mode 100644 index 0000000..a7bdb27 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostings.d.ts @@ -0,0 +1,415 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListResponsePostingsDeliveryMethod } from './PostingV4PostingFbsListResponsePostingsDeliveryMethod'; +import type { PostingV4PostingFbsListResponsePostingsRequirements } from './PostingV4PostingFbsListResponsePostingsRequirements'; +import type { PostingV4PostingFbsListResponsePostingsAnalyticsData } from './PostingV4PostingFbsListResponsePostingsAnalyticsData'; +import type { PostingV4PostingFbsListResponsePostingsCustomer } from './PostingV4PostingFbsListResponsePostingsCustomer'; +import type { PostingV4PostingFbsListResponsePostingsSortingCenter } from './PostingV4PostingFbsListResponsePostingsSortingCenter'; +import type { PostingV4PostingFbsListResponsePostingsExternalOrder } from './PostingV4PostingFbsListResponsePostingsExternalOrder'; +import type { PostingV4PostingFbsListResponsePostingsTarifficationStep } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import type { PostingV4PostingFbsListResponsePostingsTariffication } from './PostingV4PostingFbsListResponsePostingsTariffication'; +import type { PostingV4PostingFbsListResponsePostingsAddressee } from './PostingV4PostingFbsListResponsePostingsAddressee'; +import type { PostingV4PostingFbsListResponsePostingsBarcodes } from './PostingV4PostingFbsListResponsePostingsBarcodes'; +import type { PostingV4PostingFbsListResponsePostingsFinancialData } from './PostingV4PostingFbsListResponsePostingsFinancialData'; +import type { PostingV4PostingFbsListResponsePostingsLegalInfo } from './PostingV4PostingFbsListResponsePostingsLegalInfo'; +import type { PostingV4PostingFbsListResponsePostingsOptional } from './PostingV4PostingFbsListResponsePostingsOptional'; +import type { PostingV4PostingFbsListResponsePostingsCancellation } from './PostingV4PostingFbsListResponsePostingsCancellation'; +import type { PostingV4PostingFbsListResponsePostingsContainer } from './PostingV4PostingFbsListResponsePostingsContainer'; +import type { PostingV4PostingFbsListResponsePostingsProducts } from './PostingV4PostingFbsListResponsePostingsProducts'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponsePostings + */ +export interface PostingV4PostingFbsListResponsePostings { + /** + * + * @type {PostingV4PostingFbsListResponsePostingsAddressee} + * @memberof PostingV4PostingFbsListResponsePostings + */ + addressee?: PostingV4PostingFbsListResponsePostingsAddressee; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsAnalyticsData} + * @memberof PostingV4PostingFbsListResponsePostings + */ + analytics_data?: PostingV4PostingFbsListResponsePostingsAnalyticsData; + /** + * Доступные действия и информация об отправлении: + * - `arbitration` — открыть спор; + * - `awaiting_delivery` — перевести в статус «Ожидает отгрузки»; + * - `can_create_chat` — начать чат с покупателем; + * - `cancel` — отменить отправление; + * - `click_track_number` — просмотреть по трек-номеру историю изменения статусов в личном кабинете; + * - `customer_phone_available` — телефон покупателя; + * - `has_weight_products` — весовые товары в отправлении; + * - `hide_region_and_city` — скрыть регион и город покупателя в отчёте; + * - `invoice_get` — получить информацию из счёта-фактуры; + * - `invoice_send` — создать счёт-фактуру; + * - `invoice_update` — отредактировать счёт-фактуру; + * - `label_download_big` — скачать большую этикетку; + * - `label_download_small` — скачать маленькую этикетку; + * - `label_download` — скачать этикетку; + * - `non_int_delivered` — перевести в статус «Условно доставлен»; + * - `non_int_delivering` — перевести в статус «Доставляется»; + * - `non_int_last_mile` — перевести в статус «Курьер в пути»; + * - `product_cancel` — отменить часть товаров в отправлении; + * - `set_cutoff` — укажите дату отгрузки методом [/v1/posting/cutoff/set](#operation/PostingAPI_SetPostingCutoff) не позже даты в параметре `shipment_date`; + * - `set_timeslot` — изменить время доставки покупателю; + * - `set_track_number` — указать или изменить трек-номер; + * - `ship_async_in_process` — отправление собирается; + * - `ship_async_retry` — собрать отправление повторно после ошибки сборки; + * - `ship_async` — собрать отправление; + * - `ship_with_additional_info` — заполните дополнительную информацию методом [/v6/fbs/posting/product/exemplar/set](https://docs.ozon.ru/api/seller/#operation/PostingAPI_FbsPostingProductExemplarSetV6); + * - `ship` — собрать отправление; + * - `update_cis` — изменить дополнительную информацию. + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostings + */ + available_actions?: Array; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsBarcodes} + * @memberof PostingV4PostingFbsListResponsePostings + */ + barcodes?: PostingV4PostingFbsListResponsePostingsBarcodes; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsCancellation} + * @memberof PostingV4PostingFbsListResponsePostings + */ + cancellation?: PostingV4PostingFbsListResponsePostingsCancellation; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsCustomer} + * @memberof PostingV4PostingFbsListResponsePostings + */ + customer?: PostingV4PostingFbsListResponsePostingsCustomer; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsContainer} + * @memberof PostingV4PostingFbsListResponsePostings + */ + container?: PostingV4PostingFbsListResponsePostingsContainer; + /** + * Тип сортировки грузоместа: + * - `SORT` — сортируемый; + * - `NON-SORT` — несортируемый. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + container_sort_type?: string; + /** + * Дата передачи отправления в доставку. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + delivering_date?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsDeliveryMethod} + * @memberof PostingV4PostingFbsListResponsePostings + */ + delivery_method?: PostingV4PostingFbsListResponsePostingsDeliveryMethod; + /** + * Схема доставки: + * - `SDS` — идентификатор единого SKU; + * - `FBO` — идентификатор товара, который продаётся со склада Ozon; + * - `FBS` — идентификатор товара, который продаётся со склада FBS; + * - `Crossborder` — идентификатор товара, который продаётся из-за границы. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + delivery_schema?: string; + /** + * Идентификатор места назначения. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + destination_place_id?: number; + /** + * Название места назначения. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + destination_place_name?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsExternalOrder} + * @memberof PostingV4PostingFbsListResponsePostings + */ + external_order?: PostingV4PostingFbsListResponsePostingsExternalOrder; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsFinancialData} + * @memberof PostingV4PostingFbsListResponsePostings + */ + financial_data?: PostingV4PostingFbsListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + in_process_at?: string; + /** + * `true`, если отправление доставляется методом «Самовывоз из магазина». + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + is_click_and_collect?: boolean; + /** + * `true`, если использовалась быстрая доставка Ozon Express. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + is_express?: boolean; + /** + * Признак, что в отправлении есть многокоробочный товар и нужно передать количество коробок для него: + * + * - `true` — до сборки передайте количество коробок через метод [/v3/posting/multiboxqty/set](#operation/PostingAPI_PostingMultiBoxQtySetV3). + * - `false` — отправление собрано с указанием количества коробок в параметре `multi_box_qty` или в отправлении нет многокоробочного товара. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + is_multibox?: boolean; + /** + * `true`, если товар — пересорт. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + is_presortable?: boolean; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + integration_type_flow?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsLegalInfo} + * @memberof PostingV4PostingFbsListResponsePostings + */ + legal_info?: PostingV4PostingFbsListResponsePostingsLegalInfo; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + multi_box_qty?: number; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsOptional} + * @memberof PostingV4PostingFbsListResponsePostings + */ + optional?: PostingV4PostingFbsListResponsePostingsOptional; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + order_number?: string; + /** + * Номер родительского отправления, в результате разделения которого появилось текущее. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + parent_posting_number?: string; + /** + * Дата и время успешной валидации кода курьера. Проверьте код курьера методом [/v1/posting/fbs/pick-up-code/verify](#operation/PostingAPI_PostingFBSPickupCodeVerify). + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + pickup_code_verified_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostings + */ + products?: Array; + /** + * Код услуги погрузочно-разгрузочных работ: + * - `lift` — подъём на лифте; + * - `stairs` — подъём по лестнице; + * - `none` — покупатель отказался от услуги, поднимать товары не нужно; + * - `delivery_default` — доставка включена в стоимость, по условиям оферты нужно доставить товар на этаж. + * + * Для КГТ-отправлений с доставкой силами продавца или интегрированной службой. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + prr_option?: string; + /** + * Идентификатор эконом-товара. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + quantum_id?: number; + /** + * `true`, если нужно заполнить атрибуты отслеживаемости. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostings + */ + require_blr_traceable_attrs?: boolean; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsRequirements} + * @memberof PostingV4PostingFbsListResponsePostings + */ + requirements?: PostingV4PostingFbsListResponsePostingsRequirements; + /** + * Дата и время, до которой нужно собрать отправление. Показываем рекомендованное время отгрузки. По истечении этого времени начнёт применяться новый тариф, информацию о нём получите в поле `tariffication`. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + shipment_date?: string; + /** + * Дата и время отгрузки без просрочки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + shipment_date_without_delay?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsSortingCenter} + * @memberof PostingV4PostingFbsListResponsePostings + */ + sorting_center?: PostingV4PostingFbsListResponsePostingsSortingCenter; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка; + * - `arbitration` — арбитраж; + * - `awaiting_approve` — ожидает подтверждения; + * - `awaiting_deliver` — ожидает отгрузки; + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_registration` — ожидает регистрации; + * - `awaiting_verification` — создано; + * - `cancelled` — отменено; + * - `cancelled_from_split_pending` — отменено из-за разделения отправления; + * - `client_arbitration` — клиентский арбитраж доставки; + * - `delivering` — доставляется; + * - `driver_pickup` — у водителя; + * - `not_accepted` — не принято на сортировочном центре. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_acceptance_in_progress`— идёт приёмка; + * - `posting_in_arbitration` — арбитраж; + * - `posting_created` — создано; + * - `posting_in_carriage` — в перевозке; + * - `posting_not_in_carriage` — не добавлено в перевозку; + * - `posting_registered` — зарегистрировано; + * - `posting_transferring_to_delivery`, если `status=awaiting_deliver` — передаётся в доставку; + * - `posting_awaiting_passport_data` — ожидает паспортных данных; + * - `posting_created` — создано; + * - `posting_awaiting_registration` — ожидает регистрации; + * - `posting_registration_error` — ошибка регистрации; + * - `posting_transferring_to_delivery`, если `status=awaiting_registration` — передаётся курьеру; + * - `posting_split_pending` — создано; + * - `posting_canceled` — отменено; + * - `posting_in_client_arbitration` — клиентский арбитраж доставки; + * - `posting_delivered` — доставлено; + * - `posting_received` — получено; + * - `posting_conditionally_delivered` — условно доставлено; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_on_way_to_city` — в пути в ваш город; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_driver_pick_up` — у водителя; + * - `posting_not_in_sort_center` — не принято на сортировочном центре; + * - `ship_failed` — сборка не удалась. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + substatus?: string; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsTariffication} + * @memberof PostingV4PostingFbsListResponsePostings + */ + tariffication?: PostingV4PostingFbsListResponsePostingsTariffication; + /** + * Этапы тарификации. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostings + */ + tariffication_steps?: Array; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка службой Ozon; + * - `3pl_tracking` — доставка интегрированной службой; + * - `non_integrated` — доставка сторонней службой; + * - `aggregator` — доставка через партнёрскую доставку Ozon; + * - `hybryd` — схема доставки Почты России. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + tpl_integration_type?: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostings + */ + tracking_number?: string; + /** + * Объёмный вес товара. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostings + */ + volume_weight?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostings interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostings(value: object): value is PostingV4PostingFbsListResponsePostings; +export declare function PostingV4PostingFbsListResponsePostingsFromJSON(json: any): PostingV4PostingFbsListResponsePostings; +export declare function PostingV4PostingFbsListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostings; +export declare function PostingV4PostingFbsListResponsePostingsToJSON(value?: PostingV4PostingFbsListResponsePostings | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostings.js b/dist/models/PostingV4PostingFbsListResponsePostings.js new file mode 100644 index 0000000..1d91fcf --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostings.js @@ -0,0 +1,146 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostings = instanceOfPostingV4PostingFbsListResponsePostings; +exports.PostingV4PostingFbsListResponsePostingsFromJSON = PostingV4PostingFbsListResponsePostingsFromJSON; +exports.PostingV4PostingFbsListResponsePostingsFromJSONTyped = PostingV4PostingFbsListResponsePostingsFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsToJSON = PostingV4PostingFbsListResponsePostingsToJSON; +const PostingV4PostingFbsListResponsePostingsDeliveryMethod_1 = require("./PostingV4PostingFbsListResponsePostingsDeliveryMethod"); +const PostingV4PostingFbsListResponsePostingsRequirements_1 = require("./PostingV4PostingFbsListResponsePostingsRequirements"); +const PostingV4PostingFbsListResponsePostingsAnalyticsData_1 = require("./PostingV4PostingFbsListResponsePostingsAnalyticsData"); +const PostingV4PostingFbsListResponsePostingsCustomer_1 = require("./PostingV4PostingFbsListResponsePostingsCustomer"); +const PostingV4PostingFbsListResponsePostingsSortingCenter_1 = require("./PostingV4PostingFbsListResponsePostingsSortingCenter"); +const PostingV4PostingFbsListResponsePostingsExternalOrder_1 = require("./PostingV4PostingFbsListResponsePostingsExternalOrder"); +const PostingV4PostingFbsListResponsePostingsTarifficationStep_1 = require("./PostingV4PostingFbsListResponsePostingsTarifficationStep"); +const PostingV4PostingFbsListResponsePostingsTariffication_1 = require("./PostingV4PostingFbsListResponsePostingsTariffication"); +const PostingV4PostingFbsListResponsePostingsAddressee_1 = require("./PostingV4PostingFbsListResponsePostingsAddressee"); +const PostingV4PostingFbsListResponsePostingsBarcodes_1 = require("./PostingV4PostingFbsListResponsePostingsBarcodes"); +const PostingV4PostingFbsListResponsePostingsFinancialData_1 = require("./PostingV4PostingFbsListResponsePostingsFinancialData"); +const PostingV4PostingFbsListResponsePostingsLegalInfo_1 = require("./PostingV4PostingFbsListResponsePostingsLegalInfo"); +const PostingV4PostingFbsListResponsePostingsOptional_1 = require("./PostingV4PostingFbsListResponsePostingsOptional"); +const PostingV4PostingFbsListResponsePostingsCancellation_1 = require("./PostingV4PostingFbsListResponsePostingsCancellation"); +const PostingV4PostingFbsListResponsePostingsContainer_1 = require("./PostingV4PostingFbsListResponsePostingsContainer"); +const PostingV4PostingFbsListResponsePostingsProducts_1 = require("./PostingV4PostingFbsListResponsePostingsProducts"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostings interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostings(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'addressee': json['addressee'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsAddressee_1.PostingV4PostingFbsListResponsePostingsAddresseeFromJSON)(json['addressee']), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsAnalyticsData_1.PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON)(json['analytics_data']), + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'barcodes': json['barcodes'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsBarcodes_1.PostingV4PostingFbsListResponsePostingsBarcodesFromJSON)(json['barcodes']), + 'cancellation': json['cancellation'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsCancellation_1.PostingV4PostingFbsListResponsePostingsCancellationFromJSON)(json['cancellation']), + 'customer': json['customer'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsCustomer_1.PostingV4PostingFbsListResponsePostingsCustomerFromJSON)(json['customer']), + 'container': json['container'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsContainer_1.PostingV4PostingFbsListResponsePostingsContainerFromJSON)(json['container']), + 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], + 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], + 'delivery_method': json['delivery_method'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsDeliveryMethod_1.PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON)(json['delivery_method']), + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'destination_place_id': json['destination_place_id'] == null ? undefined : json['destination_place_id'], + 'destination_place_name': json['destination_place_name'] == null ? undefined : json['destination_place_name'], + 'external_order': json['external_order'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsExternalOrder_1.PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON)(json['external_order']), + 'financial_data': json['financial_data'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsFinancialData_1.PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'is_click_and_collect': json['is_click_and_collect'] == null ? undefined : json['is_click_and_collect'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], + 'is_presortable': json['is_presortable'] == null ? undefined : json['is_presortable'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'legal_info': json['legal_info'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsLegalInfo_1.PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON)(json['legal_info']), + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'optional': json['optional'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsOptional_1.PostingV4PostingFbsListResponsePostingsOptionalFromJSON)(json['optional']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], + 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV4PostingFbsListResponsePostingsProducts_1.PostingV4PostingFbsListResponsePostingsProductsFromJSON)), + 'prr_option': json['prr_option'] == null ? undefined : json['prr_option'], + 'quantum_id': json['quantum_id'] == null ? undefined : json['quantum_id'], + 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], + 'requirements': json['requirements'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsRequirements_1.PostingV4PostingFbsListResponsePostingsRequirementsFromJSON)(json['requirements']), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], + 'sorting_center': json['sorting_center'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsSortingCenter_1.PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON)(json['sorting_center']), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'tariffication': json['tariffication'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsTariffication_1.PostingV4PostingFbsListResponsePostingsTarifficationFromJSON)(json['tariffication']), + 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStep_1.PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON)), + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'volume_weight': json['volume_weight'] == null ? undefined : json['volume_weight'], + }; +} +function PostingV4PostingFbsListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'addressee': (0, PostingV4PostingFbsListResponsePostingsAddressee_1.PostingV4PostingFbsListResponsePostingsAddresseeToJSON)(value['addressee']), + 'analytics_data': (0, PostingV4PostingFbsListResponsePostingsAnalyticsData_1.PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON)(value['analytics_data']), + 'available_actions': value['available_actions'], + 'barcodes': (0, PostingV4PostingFbsListResponsePostingsBarcodes_1.PostingV4PostingFbsListResponsePostingsBarcodesToJSON)(value['barcodes']), + 'cancellation': (0, PostingV4PostingFbsListResponsePostingsCancellation_1.PostingV4PostingFbsListResponsePostingsCancellationToJSON)(value['cancellation']), + 'customer': (0, PostingV4PostingFbsListResponsePostingsCustomer_1.PostingV4PostingFbsListResponsePostingsCustomerToJSON)(value['customer']), + 'container': (0, PostingV4PostingFbsListResponsePostingsContainer_1.PostingV4PostingFbsListResponsePostingsContainerToJSON)(value['container']), + 'container_sort_type': value['container_sort_type'], + 'delivering_date': value['delivering_date'], + 'delivery_method': (0, PostingV4PostingFbsListResponsePostingsDeliveryMethod_1.PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON)(value['delivery_method']), + 'delivery_schema': value['delivery_schema'], + 'destination_place_id': value['destination_place_id'], + 'destination_place_name': value['destination_place_name'], + 'external_order': (0, PostingV4PostingFbsListResponsePostingsExternalOrder_1.PostingV4PostingFbsListResponsePostingsExternalOrderToJSON)(value['external_order']), + 'financial_data': (0, PostingV4PostingFbsListResponsePostingsFinancialData_1.PostingV4PostingFbsListResponsePostingsFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'is_click_and_collect': value['is_click_and_collect'], + 'is_express': value['is_express'], + 'is_multibox': value['is_multibox'], + 'is_presortable': value['is_presortable'], + 'integration_type_flow': value['integration_type_flow'], + 'legal_info': (0, PostingV4PostingFbsListResponsePostingsLegalInfo_1.PostingV4PostingFbsListResponsePostingsLegalInfoToJSON)(value['legal_info']), + 'multi_box_qty': value['multi_box_qty'], + 'optional': (0, PostingV4PostingFbsListResponsePostingsOptional_1.PostingV4PostingFbsListResponsePostingsOptionalToJSON)(value['optional']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'parent_posting_number': value['parent_posting_number'], + 'pickup_code_verified_at': value['pickup_code_verified_at'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV4PostingFbsListResponsePostingsProducts_1.PostingV4PostingFbsListResponsePostingsProductsToJSON)), + 'prr_option': value['prr_option'], + 'quantum_id': value['quantum_id'], + 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], + 'requirements': (0, PostingV4PostingFbsListResponsePostingsRequirements_1.PostingV4PostingFbsListResponsePostingsRequirementsToJSON)(value['requirements']), + 'shipment_date': value['shipment_date'], + 'shipment_date_without_delay': value['shipment_date_without_delay'], + 'sorting_center': (0, PostingV4PostingFbsListResponsePostingsSortingCenter_1.PostingV4PostingFbsListResponsePostingsSortingCenterToJSON)(value['sorting_center']), + 'status': value['status'], + 'substatus': value['substatus'], + 'tariffication': (0, PostingV4PostingFbsListResponsePostingsTariffication_1.PostingV4PostingFbsListResponsePostingsTarifficationToJSON)(value['tariffication']), + 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStep_1.PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON)), + 'tpl_integration_type': value['tpl_integration_type'], + 'tracking_number': value['tracking_number'], + 'volume_weight': value['volume_weight'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsAddressee.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsAddressee.d.ts new file mode 100644 index 0000000..b7ad9cb --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsAddressee.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контактные данные получателя. + * @export + * @interface PostingV4PostingFbsListResponsePostingsAddressee + */ +export interface PostingV4PostingFbsListResponsePostingsAddressee { + /** + * Имя получателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAddressee + */ + name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsAddressee interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsAddressee(value: object): value is PostingV4PostingFbsListResponsePostingsAddressee; +export declare function PostingV4PostingFbsListResponsePostingsAddresseeFromJSON(json: any): PostingV4PostingFbsListResponsePostingsAddressee; +export declare function PostingV4PostingFbsListResponsePostingsAddresseeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsAddressee; +export declare function PostingV4PostingFbsListResponsePostingsAddresseeToJSON(value?: PostingV4PostingFbsListResponsePostingsAddressee | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsAddressee.js b/dist/models/PostingV4PostingFbsListResponsePostingsAddressee.js new file mode 100644 index 0000000..ca8bb1d --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsAddressee.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsAddressee = instanceOfPostingV4PostingFbsListResponsePostingsAddressee; +exports.PostingV4PostingFbsListResponsePostingsAddresseeFromJSON = PostingV4PostingFbsListResponsePostingsAddresseeFromJSON; +exports.PostingV4PostingFbsListResponsePostingsAddresseeFromJSONTyped = PostingV4PostingFbsListResponsePostingsAddresseeFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsAddresseeToJSON = PostingV4PostingFbsListResponsePostingsAddresseeToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsAddressee interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsAddressee(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsAddresseeFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsAddresseeFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsAddresseeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function PostingV4PostingFbsListResponsePostingsAddresseeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.d.ts new file mode 100644 index 0000000..3e39bc0 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.d.ts @@ -0,0 +1,121 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV4PostingFbsListResponsePostingsAnalyticsData + */ +export interface PostingV4PostingFbsListResponsePostingsAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + client_delivery_date_end?: string; + /** + * Дата и время начала доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + delivery_date_begin?: string; + /** + * Дата и время конца доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + delivery_type?: string; + /** + * `true`, если получатель юридическое лицо. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + is_legal?: boolean; + /** + * `true`, если у получателя есть подписка Premium. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`; + * - `карта Ozon Банка`; + * - `автосписание с карты Ozon Банка при выдаче`; + * - `сохранённой картой при получении`; + * - `Система Быстрых Платежей`; + * - `Ozon Рассрочка`; + * - `оплата на расчётный счёт`; + * - `SberPay`; + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + region?: string; + /** + * Служба доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + tpl_provider_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsAnalyticsData + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsAnalyticsData interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsAnalyticsData(value: object): value is PostingV4PostingFbsListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON(json: any): PostingV4PostingFbsListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON(value?: PostingV4PostingFbsListResponsePostingsAnalyticsData | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.js b/dist/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.js new file mode 100644 index 0000000..8d62296 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsAnalyticsData.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsAnalyticsData = instanceOfPostingV4PostingFbsListResponsePostingsAnalyticsData; +exports.PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON = PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON; +exports.PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSONTyped = PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON = PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsAnalyticsData interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsAnalyticsData(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + 'delivery_date_begin': json['delivery_date_begin'] == null ? undefined : json['delivery_date_begin'], + 'delivery_date_end': json['delivery_date_end'] == null ? undefined : json['delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function PostingV4PostingFbsListResponsePostingsAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + 'delivery_date_begin': value['delivery_date_begin'], + 'delivery_date_end': value['delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsBarcodes.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsBarcodes.d.ts new file mode 100644 index 0000000..cda8105 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsBarcodes.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Штрихкоды отправления. + * @export + * @interface PostingV4PostingFbsListResponsePostingsBarcodes + */ +export interface PostingV4PostingFbsListResponsePostingsBarcodes { + /** + * Нижний штрихкод на маркировке отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsBarcodes + */ + lower_barcode?: string; + /** + * Верхний штрихкод на маркировке отправления. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsBarcodes + */ + upper_barcode?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsBarcodes interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsBarcodes(value: object): value is PostingV4PostingFbsListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsListResponsePostingsBarcodesFromJSON(json: any): PostingV4PostingFbsListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsListResponsePostingsBarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsListResponsePostingsBarcodesToJSON(value?: PostingV4PostingFbsListResponsePostingsBarcodes | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsBarcodes.js b/dist/models/PostingV4PostingFbsListResponsePostingsBarcodes.js new file mode 100644 index 0000000..3a92dfb --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsBarcodes.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsBarcodes = instanceOfPostingV4PostingFbsListResponsePostingsBarcodes; +exports.PostingV4PostingFbsListResponsePostingsBarcodesFromJSON = PostingV4PostingFbsListResponsePostingsBarcodesFromJSON; +exports.PostingV4PostingFbsListResponsePostingsBarcodesFromJSONTyped = PostingV4PostingFbsListResponsePostingsBarcodesFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsBarcodesToJSON = PostingV4PostingFbsListResponsePostingsBarcodesToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsBarcodes interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsBarcodes(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsBarcodesFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsBarcodesFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsBarcodesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lower_barcode': json['lower_barcode'] == null ? undefined : json['lower_barcode'], + 'upper_barcode': json['upper_barcode'] == null ? undefined : json['upper_barcode'], + }; +} +function PostingV4PostingFbsListResponsePostingsBarcodesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lower_barcode': value['lower_barcode'], + 'upper_barcode': value['upper_barcode'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsCancellation.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsCancellation.d.ts new file mode 100644 index 0000000..0b77ac5 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsCancellation.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV4PostingFbsListResponsePostingsCancellation + */ +export interface PostingV4PostingFbsListResponsePostingsCancellation { + /** + * `true`, если отмена влияет на рейтинг продавца. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + affect_cancellation_rating?: boolean; + /** + * Причина отмены. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancel_reason?: string; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancel_reason_id?: number; + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент`, + * - `Покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system` — отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancellation_type?: string; + /** + * `true`, если отмена произошла после сборки отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsCancellation + */ + cancelled_after_ship?: boolean; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCancellation interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsCancellation(value: object): value is PostingV4PostingFbsListResponsePostingsCancellation; +export declare function PostingV4PostingFbsListResponsePostingsCancellationFromJSON(json: any): PostingV4PostingFbsListResponsePostingsCancellation; +export declare function PostingV4PostingFbsListResponsePostingsCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsCancellation; +export declare function PostingV4PostingFbsListResponsePostingsCancellationToJSON(value?: PostingV4PostingFbsListResponsePostingsCancellation | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsCancellation.js b/dist/models/PostingV4PostingFbsListResponsePostingsCancellation.js new file mode 100644 index 0000000..6cc2096 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsCancellation.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsCancellation = instanceOfPostingV4PostingFbsListResponsePostingsCancellation; +exports.PostingV4PostingFbsListResponsePostingsCancellationFromJSON = PostingV4PostingFbsListResponsePostingsCancellationFromJSON; +exports.PostingV4PostingFbsListResponsePostingsCancellationFromJSONTyped = PostingV4PostingFbsListResponsePostingsCancellationFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsCancellationToJSON = PostingV4PostingFbsListResponsePostingsCancellationToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCancellation interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsCancellation(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsCancellationFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsCancellationFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'affect_cancellation_rating': json['affect_cancellation_rating'] == null ? undefined : json['affect_cancellation_rating'], + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + 'cancelled_after_ship': json['cancelled_after_ship'] == null ? undefined : json['cancelled_after_ship'], + }; +} +function PostingV4PostingFbsListResponsePostingsCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'affect_cancellation_rating': value['affect_cancellation_rating'], + 'cancel_reason': value['cancel_reason'], + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + 'cancelled_after_ship': value['cancelled_after_ship'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsContainer.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsContainer.d.ts new file mode 100644 index 0000000..8e6eaf3 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsContainer.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV3FbsPostingContainerCargoTypeEnum } from './PostingV3FbsPostingContainerCargoTypeEnum'; +/** + * Информация о грузоместе. + * @export + * @interface PostingV4PostingFbsListResponsePostingsContainer + */ +export interface PostingV4PostingFbsListResponsePostingsContainer { + /** + * + * @type {PostingV3FbsPostingContainerCargoTypeEnum} + * @memberof PostingV4PostingFbsListResponsePostingsContainer + */ + cargo_type?: PostingV3FbsPostingContainerCargoTypeEnum; + /** + * Дата создания грузоместа в часовом поясе склада. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsContainer + */ + container_date?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsContainer + */ + container_id?: number; + /** + * Порядковый номер грузоместа. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsContainer + */ + container_number?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsContainer interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsContainer(value: object): value is PostingV4PostingFbsListResponsePostingsContainer; +export declare function PostingV4PostingFbsListResponsePostingsContainerFromJSON(json: any): PostingV4PostingFbsListResponsePostingsContainer; +export declare function PostingV4PostingFbsListResponsePostingsContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsContainer; +export declare function PostingV4PostingFbsListResponsePostingsContainerToJSON(value?: PostingV4PostingFbsListResponsePostingsContainer | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsContainer.js b/dist/models/PostingV4PostingFbsListResponsePostingsContainer.js new file mode 100644 index 0000000..6062b78 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsContainer.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsContainer = instanceOfPostingV4PostingFbsListResponsePostingsContainer; +exports.PostingV4PostingFbsListResponsePostingsContainerFromJSON = PostingV4PostingFbsListResponsePostingsContainerFromJSON; +exports.PostingV4PostingFbsListResponsePostingsContainerFromJSONTyped = PostingV4PostingFbsListResponsePostingsContainerFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsContainerToJSON = PostingV4PostingFbsListResponsePostingsContainerToJSON; +const PostingV3FbsPostingContainerCargoTypeEnum_1 = require("./PostingV3FbsPostingContainerCargoTypeEnum"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsContainer interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsContainer(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsContainerFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsContainerFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsContainerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_type': json['cargo_type'] == null ? undefined : (0, PostingV3FbsPostingContainerCargoTypeEnum_1.PostingV3FbsPostingContainerCargoTypeEnumFromJSON)(json['cargo_type']), + 'container_date': json['container_date'] == null ? undefined : json['container_date'], + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'container_number': json['container_number'] == null ? undefined : json['container_number'], + }; +} +function PostingV4PostingFbsListResponsePostingsContainerToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_type': (0, PostingV3FbsPostingContainerCargoTypeEnum_1.PostingV3FbsPostingContainerCargoTypeEnumToJSON)(value['cargo_type']), + 'container_date': value['container_date'], + 'container_id': value['container_id'], + 'container_number': value['container_number'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsCustomer.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsCustomer.d.ts new file mode 100644 index 0000000..61479e4 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsCustomer.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListResponsePostingsCustomerAddress } from './PostingV4PostingFbsListResponsePostingsCustomerAddress'; +/** + * Информация о покупателе. + * @export + * @interface PostingV4PostingFbsListResponsePostingsCustomer + */ +export interface PostingV4PostingFbsListResponsePostingsCustomer { + /** + * + * @type {PostingV4PostingFbsListResponsePostingsCustomerAddress} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + address?: PostingV4PostingFbsListResponsePostingsCustomerAddress; + /** + * Электронная почта покупателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + customer_email?: string; + /** + * Идентификатор покупателя. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + customer_id?: number; + /** + * Имя покупателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + name?: string; + /** + * Подменный контактный телефон покупателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomer + */ + phone?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCustomer interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsCustomer(value: object): value is PostingV4PostingFbsListResponsePostingsCustomer; +export declare function PostingV4PostingFbsListResponsePostingsCustomerFromJSON(json: any): PostingV4PostingFbsListResponsePostingsCustomer; +export declare function PostingV4PostingFbsListResponsePostingsCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsCustomer; +export declare function PostingV4PostingFbsListResponsePostingsCustomerToJSON(value?: PostingV4PostingFbsListResponsePostingsCustomer | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsCustomer.js b/dist/models/PostingV4PostingFbsListResponsePostingsCustomer.js new file mode 100644 index 0000000..9ce9cc4 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsCustomer.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsCustomer = instanceOfPostingV4PostingFbsListResponsePostingsCustomer; +exports.PostingV4PostingFbsListResponsePostingsCustomerFromJSON = PostingV4PostingFbsListResponsePostingsCustomerFromJSON; +exports.PostingV4PostingFbsListResponsePostingsCustomerFromJSONTyped = PostingV4PostingFbsListResponsePostingsCustomerFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsCustomerToJSON = PostingV4PostingFbsListResponsePostingsCustomerToJSON; +const PostingV4PostingFbsListResponsePostingsCustomerAddress_1 = require("./PostingV4PostingFbsListResponsePostingsCustomerAddress"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCustomer interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsCustomer(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsCustomerFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsCustomerFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsCustomerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsCustomerAddress_1.PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON)(json['address']), + 'customer_email': json['customer_email'] == null ? undefined : json['customer_email'], + 'customer_id': json['customer_id'] == null ? undefined : json['customer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +function PostingV4PostingFbsListResponsePostingsCustomerToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': (0, PostingV4PostingFbsListResponsePostingsCustomerAddress_1.PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON)(value['address']), + 'customer_email': value['customer_email'], + 'customer_id': value['customer_id'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.d.ts new file mode 100644 index 0000000..7a94452 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Адрес доставки. + * @export + * @interface PostingV4PostingFbsListResponsePostingsCustomerAddress + */ +export interface PostingV4PostingFbsListResponsePostingsCustomerAddress { + /** + * Адрес в текстовом формате. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + address_tail?: string; + /** + * Город доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + city?: string; + /** + * Комментарий к заказу. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + comment?: string; + /** + * Страна доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + country?: string; + /** + * Район доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + district?: string; + /** + * Широта. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + longitude?: number; + /** + * Код пункта выдачи заказов 3PL-провайдера. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + provider_pvz_code?: string; + /** + * Код пункта выдачи заказов. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + pvz_code?: number; + /** + * Регион доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + region?: string; + /** + * Почтовый индекс получателя. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsCustomerAddress + */ + zip_code?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCustomerAddress interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsCustomerAddress(value: object): value is PostingV4PostingFbsListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON(json: any): PostingV4PostingFbsListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON(value?: PostingV4PostingFbsListResponsePostingsCustomerAddress | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.js b/dist/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.js new file mode 100644 index 0000000..bee51a1 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsCustomerAddress.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsCustomerAddress = instanceOfPostingV4PostingFbsListResponsePostingsCustomerAddress; +exports.PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON = PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON; +exports.PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSONTyped = PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON = PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsCustomerAddress interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsCustomerAddress(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsCustomerAddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_tail': json['address_tail'] == null ? undefined : json['address_tail'], + 'city': json['city'] == null ? undefined : json['city'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'country': json['country'] == null ? undefined : json['country'], + 'district': json['district'] == null ? undefined : json['district'], + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + 'provider_pvz_code': json['provider_pvz_code'] == null ? undefined : json['provider_pvz_code'], + 'pvz_code': json['pvz_code'] == null ? undefined : json['pvz_code'], + 'region': json['region'] == null ? undefined : json['region'], + 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], + }; +} +function PostingV4PostingFbsListResponsePostingsCustomerAddressToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_tail': value['address_tail'], + 'city': value['city'], + 'comment': value['comment'], + 'country': value['country'], + 'district': value['district'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'provider_pvz_code': value['provider_pvz_code'], + 'pvz_code': value['pvz_code'], + 'region': value['region'], + 'zip_code': value['zip_code'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.d.ts new file mode 100644 index 0000000..44092fd --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о способе доставки. + * @export + * @interface PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ +export interface PostingV4PostingFbsListResponsePostingsDeliveryMethod { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + id?: number; + /** + * Название способа доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + name?: string; + /** + * Служба доставки. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + tpl_provider_id?: number; + /** + * Название склада. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsDeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsDeliveryMethod interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsDeliveryMethod(value: object): value is PostingV4PostingFbsListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON(json: any): PostingV4PostingFbsListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON(value?: PostingV4PostingFbsListResponsePostingsDeliveryMethod | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.js b/dist/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.js new file mode 100644 index 0000000..538b32d --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsDeliveryMethod.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsDeliveryMethod = instanceOfPostingV4PostingFbsListResponsePostingsDeliveryMethod; +exports.PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON = PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON; +exports.PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSONTyped = PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON = PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsDeliveryMethod interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsDeliveryMethod(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function PostingV4PostingFbsListResponsePostingsDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsExternalOrder.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsExternalOrder.d.ts new file mode 100644 index 0000000..f50f27d --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV4PostingFbsListResponsePostingsExternalOrder + */ +export interface PostingV4PostingFbsListResponsePostingsExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsExternalOrder interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsExternalOrder(value: object): value is PostingV4PostingFbsListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON(json: any): PostingV4PostingFbsListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsListResponsePostingsExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsListResponsePostingsExternalOrderToJSON(value?: PostingV4PostingFbsListResponsePostingsExternalOrder | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsExternalOrder.js b/dist/models/PostingV4PostingFbsListResponsePostingsExternalOrder.js new file mode 100644 index 0000000..a5b0c49 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsExternalOrder.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsExternalOrder = instanceOfPostingV4PostingFbsListResponsePostingsExternalOrder; +exports.PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON = PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON; +exports.PostingV4PostingFbsListResponsePostingsExternalOrderFromJSONTyped = PostingV4PostingFbsListResponsePostingsExternalOrderFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsExternalOrderToJSON = PostingV4PostingFbsListResponsePostingsExternalOrderToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsExternalOrder interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsExternalOrder(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsExternalOrderFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsExternalOrderFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +function PostingV4PostingFbsListResponsePostingsExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsFinancialData.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..21916f3 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsListResponsePostingsFinancialDataProducts } from './PostingV4PostingFbsListResponsePostingsFinancialDataProducts'; +/** + * Информация о стоимости товара, размере скидки, выплате и комиссии. + * @export + * @interface PostingV4PostingFbsListResponsePostingsFinancialData + */ +export interface PostingV4PostingFbsListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsFinancialData(value: object): value is PostingV4PostingFbsListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON(json: any): PostingV4PostingFbsListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataToJSON(value?: PostingV4PostingFbsListResponsePostingsFinancialData | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsFinancialData.js b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialData.js new file mode 100644 index 0000000..57067ea --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialData.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsFinancialData = instanceOfPostingV4PostingFbsListResponsePostingsFinancialData; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON = PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataFromJSONTyped = PostingV4PostingFbsListResponsePostingsFinancialDataFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataToJSON = PostingV4PostingFbsListResponsePostingsFinancialDataToJSON; +const PostingV4PostingFbsListResponsePostingsFinancialDataProducts_1 = require("./PostingV4PostingFbsListResponsePostingsFinancialDataProducts"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialData interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsFinancialData(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsFinancialDataFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV4PostingFbsListResponsePostingsFinancialDataProducts_1.PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +function PostingV4PostingFbsListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV4PostingFbsListResponsePostingsFinancialDataProducts_1.PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..8d409ba --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,87 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +import type { PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission } from './PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ +export interface PostingV4PostingFbsListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + commission?: PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + customer_price?: MoneyPostingMoney; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProducts(value: object): value is PostingV4PostingFbsListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV4PostingFbsListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON(value?: PostingV4PostingFbsListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.js b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..a42a0eb --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProducts = instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProducts; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON = PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSONTyped = PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON = PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON; +const MoneyPostingMoney_1 = require("./MoneyPostingMoney"); +const PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission_1 = require("./PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialDataProducts interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProducts(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'commission': json['commission'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission_1.PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON)(json['commission']), + 'customer_price': json['customer_price'] == null ? undefined : (0, MoneyPostingMoney_1.MoneyPostingMoneyFromJSON)(json['customer_price']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +function PostingV4PostingFbsListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'commission': (0, PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission_1.PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON)(value['commission']), + 'customer_price': (0, MoneyPostingMoney_1.MoneyPostingMoneyToJSON)(value['customer_price']), + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..deae1aa --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission { + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Код валюты, в которой рассчитывалась комиссия. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission + */ + currency?: string; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.js b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..1ce4e2d --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission = instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON = PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSONTyped = PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON = PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +function PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + 'percent': value['percent'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsLegalInfo.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsLegalInfo.d.ts new file mode 100644 index 0000000..fc08ab6 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingV4PostingFbsListResponsePostingsLegalInfo + */ +export interface PostingV4PostingFbsListResponsePostingsLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsLegalInfo interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsLegalInfo(value: object): value is PostingV4PostingFbsListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON(json: any): PostingV4PostingFbsListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsListResponsePostingsLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsListResponsePostingsLegalInfoToJSON(value?: PostingV4PostingFbsListResponsePostingsLegalInfo | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsLegalInfo.js b/dist/models/PostingV4PostingFbsListResponsePostingsLegalInfo.js new file mode 100644 index 0000000..c6c20c4 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsLegalInfo.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsLegalInfo = instanceOfPostingV4PostingFbsListResponsePostingsLegalInfo; +exports.PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON = PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON; +exports.PostingV4PostingFbsListResponsePostingsLegalInfoFromJSONTyped = PostingV4PostingFbsListResponsePostingsLegalInfoFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsLegalInfoToJSON = PostingV4PostingFbsListResponsePostingsLegalInfoToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsLegalInfo interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsLegalInfo(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsLegalInfoFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsLegalInfoFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +function PostingV4PostingFbsListResponsePostingsLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsOptional.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsOptional.d.ts new file mode 100644 index 0000000..2b29437 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsOptional.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров с дополнительными характеристиками. + * @export + * @interface PostingV4PostingFbsListResponsePostingsOptional + */ +export interface PostingV4PostingFbsListResponsePostingsOptional { + /** + * Список товаров с возможной маркировкой. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsOptional + */ + products_with_possible_mandatory_mark?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsOptional interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsOptional(value: object): value is PostingV4PostingFbsListResponsePostingsOptional; +export declare function PostingV4PostingFbsListResponsePostingsOptionalFromJSON(json: any): PostingV4PostingFbsListResponsePostingsOptional; +export declare function PostingV4PostingFbsListResponsePostingsOptionalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsOptional; +export declare function PostingV4PostingFbsListResponsePostingsOptionalToJSON(value?: PostingV4PostingFbsListResponsePostingsOptional | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsOptional.js b/dist/models/PostingV4PostingFbsListResponsePostingsOptional.js new file mode 100644 index 0000000..deebbc2 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsOptional.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsOptional = instanceOfPostingV4PostingFbsListResponsePostingsOptional; +exports.PostingV4PostingFbsListResponsePostingsOptionalFromJSON = PostingV4PostingFbsListResponsePostingsOptionalFromJSON; +exports.PostingV4PostingFbsListResponsePostingsOptionalFromJSONTyped = PostingV4PostingFbsListResponsePostingsOptionalFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsOptionalToJSON = PostingV4PostingFbsListResponsePostingsOptionalToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsOptional interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsOptional(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsOptionalFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsOptionalFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsOptionalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_with_possible_mandatory_mark': json['products_with_possible_mandatory_mark'] == null ? undefined : json['products_with_possible_mandatory_mark'], + }; +} +function PostingV4PostingFbsListResponsePostingsOptionalToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_with_possible_mandatory_mark': value['products_with_possible_mandatory_mark'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsProducts.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..b72fde6 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsProducts.d.ts @@ -0,0 +1,90 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsProducts + */ +export interface PostingV4PostingFbsListResponsePostingsProducts { + /** + * Список IMEI мобильных устройств. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + imei?: Array; + /** + * `true`, если товар отслеживаемый. + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + is_blr_traceable?: boolean; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + is_marketplace_buyout?: boolean; + /** + * Название товара. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Цвет товара. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + product_color?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + sku?: number; + /** + * Вес товара в упаковке. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsProducts + */ + weight?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsProducts(value: object): value is PostingV4PostingFbsListResponsePostingsProducts; +export declare function PostingV4PostingFbsListResponsePostingsProductsFromJSON(json: any): PostingV4PostingFbsListResponsePostingsProducts; +export declare function PostingV4PostingFbsListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsProducts; +export declare function PostingV4PostingFbsListResponsePostingsProductsToJSON(value?: PostingV4PostingFbsListResponsePostingsProducts | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsProducts.js b/dist/models/PostingV4PostingFbsListResponsePostingsProducts.js new file mode 100644 index 0000000..d8d37a5 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsProducts.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsProducts = instanceOfPostingV4PostingFbsListResponsePostingsProducts; +exports.PostingV4PostingFbsListResponsePostingsProductsFromJSON = PostingV4PostingFbsListResponsePostingsProductsFromJSON; +exports.PostingV4PostingFbsListResponsePostingsProductsFromJSONTyped = PostingV4PostingFbsListResponsePostingsProductsFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsProductsToJSON = PostingV4PostingFbsListResponsePostingsProductsToJSON; +const MoneyPostingMoney_1 = require("./MoneyPostingMoney"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsProducts interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsProducts(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsProductsFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsProductsFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'imei': json['imei'] == null ? undefined : json['imei'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : (0, MoneyPostingMoney_1.MoneyPostingMoneyFromJSON)(json['price']), + 'product_color': json['product_color'] == null ? undefined : json['product_color'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function PostingV4PostingFbsListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'imei': value['imei'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': (0, MoneyPostingMoney_1.MoneyPostingMoneyToJSON)(value['price']), + 'product_color': value['product_color'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsRequirements.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsRequirements.d.ts new file mode 100644 index 0000000..c5c55dc --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsRequirements.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Товары, для которых нужна дополнительная информация. + * + * Чтобы перевести отправление в следующий статус, передайте: + * - страну-изготовителя; + * - номер грузовой таможенной декларации (ГТД); + * - регистрационный номер партии товара (РНПТ); + * - маркировку «Честный знак»; + * - другие маркировки; + * - вес. + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsRequirements + */ +export interface PostingV4PostingFbsListResponsePostingsRequirements { + /** + * Список идентификаторов товаров (SKU), для которых нужно изменить страну-изготовителя. Чтобы изменить страну-изготовителя, используйте методы [/v2/posting/fbs/product/country/list](#operation/PostingAPI_ListCountryProductFbsPostingV2) и [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_change_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать информацию о стране-изготовителе. + * + * Для сборки отправления передайте информацию о стране-изготовителе для всех перечисленных товаров методом [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать номера грузовой таможенной декларации (ГТД). + * + * До сборки отправления передайте для всех перечисленных товаров номер грузовой таможенной декларации или информацию о том, + * что номера нет, методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_gtd?: Array; + /** + * Список идентификаторов товаров, для которых нужно передать IMEI. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_imei?: Array; + /** + * Список товаров, для которых нужно передать уникальный идентификационный номер (УИН) ювелирного изделия. + * + * До сборки отправления передайте для всех перечисленных товаров УИН методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_jw_uin?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать маркировку «Честный знак». + * + * До сборки отправления передайте для всех перечисленных товаров маркировку «Честный знак» методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_mandatory_mark?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать регистрационный номер партии товара (РНПТ). + * + * До сборки отправления передайте для всех перечисленных товаров РНПТ методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_rnpt?: Array; + /** + * Список товаров, для которых нужно передать вес. + * @type {Array} + * @memberof PostingV4PostingFbsListResponsePostingsRequirements + */ + products_requiring_weight?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsRequirements interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsRequirements(value: object): value is PostingV4PostingFbsListResponsePostingsRequirements; +export declare function PostingV4PostingFbsListResponsePostingsRequirementsFromJSON(json: any): PostingV4PostingFbsListResponsePostingsRequirements; +export declare function PostingV4PostingFbsListResponsePostingsRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsRequirements; +export declare function PostingV4PostingFbsListResponsePostingsRequirementsToJSON(value?: PostingV4PostingFbsListResponsePostingsRequirements | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsRequirements.js b/dist/models/PostingV4PostingFbsListResponsePostingsRequirements.js new file mode 100644 index 0000000..ea823b4 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsRequirements.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsRequirements = instanceOfPostingV4PostingFbsListResponsePostingsRequirements; +exports.PostingV4PostingFbsListResponsePostingsRequirementsFromJSON = PostingV4PostingFbsListResponsePostingsRequirementsFromJSON; +exports.PostingV4PostingFbsListResponsePostingsRequirementsFromJSONTyped = PostingV4PostingFbsListResponsePostingsRequirementsFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsRequirementsToJSON = PostingV4PostingFbsListResponsePostingsRequirementsToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsRequirements interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsRequirements(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsRequirementsFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsRequirementsFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsRequirementsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_requiring_change_country': json['products_requiring_change_country'] == null ? undefined : json['products_requiring_change_country'], + 'products_requiring_country': json['products_requiring_country'] == null ? undefined : json['products_requiring_country'], + 'products_requiring_gtd': json['products_requiring_gtd'] == null ? undefined : json['products_requiring_gtd'], + 'products_requiring_imei': json['products_requiring_imei'] == null ? undefined : json['products_requiring_imei'], + 'products_requiring_jw_uin': json['products_requiring_jw_uin'] == null ? undefined : json['products_requiring_jw_uin'], + 'products_requiring_mandatory_mark': json['products_requiring_mandatory_mark'] == null ? undefined : json['products_requiring_mandatory_mark'], + 'products_requiring_rnpt': json['products_requiring_rnpt'] == null ? undefined : json['products_requiring_rnpt'], + 'products_requiring_weight': json['products_requiring_weight'] == null ? undefined : json['products_requiring_weight'], + }; +} +function PostingV4PostingFbsListResponsePostingsRequirementsToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_requiring_change_country': value['products_requiring_change_country'], + 'products_requiring_country': value['products_requiring_country'], + 'products_requiring_gtd': value['products_requiring_gtd'], + 'products_requiring_imei': value['products_requiring_imei'], + 'products_requiring_jw_uin': value['products_requiring_jw_uin'], + 'products_requiring_mandatory_mark': value['products_requiring_mandatory_mark'], + 'products_requiring_rnpt': value['products_requiring_rnpt'], + 'products_requiring_weight': value['products_requiring_weight'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsSortingCenter.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsSortingCenter.d.ts new file mode 100644 index 0000000..bdf86be --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsSortingCenter.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сортировочном центре, в который нужно привезти отправление. Для `integration_type_flow = hybrid_3pl_tracking`. + * Если значение `null`, информацию получить не удалось. + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsSortingCenter + */ +export interface PostingV4PostingFbsListResponsePostingsSortingCenter { + /** + * Код сортировочного центра. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsSortingCenter + */ + code?: string; + /** + * Название сортировочного центра. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsSortingCenter + */ + name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsSortingCenter interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsSortingCenter(value: object): value is PostingV4PostingFbsListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON(json: any): PostingV4PostingFbsListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsListResponsePostingsSortingCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsListResponsePostingsSortingCenterToJSON(value?: PostingV4PostingFbsListResponsePostingsSortingCenter | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsSortingCenter.js b/dist/models/PostingV4PostingFbsListResponsePostingsSortingCenter.js new file mode 100644 index 0000000..c72524d --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsSortingCenter.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsSortingCenter = instanceOfPostingV4PostingFbsListResponsePostingsSortingCenter; +exports.PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON = PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON; +exports.PostingV4PostingFbsListResponsePostingsSortingCenterFromJSONTyped = PostingV4PostingFbsListResponsePostingsSortingCenterFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsSortingCenterToJSON = PostingV4PostingFbsListResponsePostingsSortingCenterToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsSortingCenter interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsSortingCenter(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsSortingCenterFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsSortingCenterFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsSortingCenterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function PostingV4PostingFbsListResponsePostingsSortingCenterToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsTariffication.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsTariffication.d.ts new file mode 100644 index 0000000..fd77166 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsTariffication.d.ts @@ -0,0 +1,83 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyCurrentTariffMinCharge } from './MoneyMoneyCurrentTariffMinCharge'; +import type { MoneyMoneyNextTariffCharge } from './MoneyMoneyNextTariffCharge'; +import type { MoneyMoneyCurrentTariffCharge } from './MoneyMoneyCurrentTariffCharge'; +import type { MoneyMoneyNextTariffMinCharge } from './MoneyMoneyNextTariffMinCharge'; +/** + * Информация по тарификации отгрузки. + * @export + * @interface PostingV4PostingFbsListResponsePostingsTariffication + */ +export interface PostingV4PostingFbsListResponsePostingsTariffication { + /** + * + * @type {MoneyMoneyCurrentTariffCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + current_tariff_charge?: MoneyMoneyCurrentTariffCharge; + /** + * + * @type {MoneyMoneyCurrentTariffMinCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + current_tariff_min_charge?: MoneyMoneyCurrentTariffMinCharge; + /** + * Процент тарификации. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + current_tariff_rate?: number; + /** + * Тип тарификации — скидка или надбавка. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + current_tariff_type?: string; + /** + * + * @type {MoneyMoneyNextTariffCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_charge?: MoneyMoneyNextTariffCharge; + /** + * + * @type {MoneyMoneyNextTariffMinCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_min_charge?: MoneyMoneyNextTariffMinCharge; + /** + * Процент, по которому будет тарифицироваться отправление через время из параметра `next_tariff_starts_at`. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_rate?: number; + /** + * Дата и время, когда начнёт применяться новый тариф. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_starts_at?: string; + /** + * Тип тарификации через время из параметра `next_tariff_starts_at` — скидка или надбавка. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTariffication + */ + next_tariff_type?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsTariffication interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsTariffication(value: object): value is PostingV4PostingFbsListResponsePostingsTariffication; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationFromJSON(json: any): PostingV4PostingFbsListResponsePostingsTariffication; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsTariffication; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationToJSON(value?: PostingV4PostingFbsListResponsePostingsTariffication | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsTariffication.js b/dist/models/PostingV4PostingFbsListResponsePostingsTariffication.js new file mode 100644 index 0000000..0013a63 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsTariffication.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsTariffication = instanceOfPostingV4PostingFbsListResponsePostingsTariffication; +exports.PostingV4PostingFbsListResponsePostingsTarifficationFromJSON = PostingV4PostingFbsListResponsePostingsTarifficationFromJSON; +exports.PostingV4PostingFbsListResponsePostingsTarifficationFromJSONTyped = PostingV4PostingFbsListResponsePostingsTarifficationFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsTarifficationToJSON = PostingV4PostingFbsListResponsePostingsTarifficationToJSON; +const MoneyMoneyCurrentTariffMinCharge_1 = require("./MoneyMoneyCurrentTariffMinCharge"); +const MoneyMoneyNextTariffCharge_1 = require("./MoneyMoneyNextTariffCharge"); +const MoneyMoneyCurrentTariffCharge_1 = require("./MoneyMoneyCurrentTariffCharge"); +const MoneyMoneyNextTariffMinCharge_1 = require("./MoneyMoneyNextTariffMinCharge"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsTariffication interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsTariffication(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsTarifficationFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsTarifficationFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsTarifficationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_tariff_charge': json['current_tariff_charge'] == null ? undefined : (0, MoneyMoneyCurrentTariffCharge_1.MoneyMoneyCurrentTariffChargeFromJSON)(json['current_tariff_charge']), + 'current_tariff_min_charge': json['current_tariff_min_charge'] == null ? undefined : (0, MoneyMoneyCurrentTariffMinCharge_1.MoneyMoneyCurrentTariffMinChargeFromJSON)(json['current_tariff_min_charge']), + 'current_tariff_rate': json['current_tariff_rate'] == null ? undefined : json['current_tariff_rate'], + 'current_tariff_type': json['current_tariff_type'] == null ? undefined : json['current_tariff_type'], + 'next_tariff_charge': json['next_tariff_charge'] == null ? undefined : (0, MoneyMoneyNextTariffCharge_1.MoneyMoneyNextTariffChargeFromJSON)(json['next_tariff_charge']), + 'next_tariff_min_charge': json['next_tariff_min_charge'] == null ? undefined : (0, MoneyMoneyNextTariffMinCharge_1.MoneyMoneyNextTariffMinChargeFromJSON)(json['next_tariff_min_charge']), + 'next_tariff_rate': json['next_tariff_rate'] == null ? undefined : json['next_tariff_rate'], + 'next_tariff_starts_at': json['next_tariff_starts_at'] == null ? undefined : json['next_tariff_starts_at'], + 'next_tariff_type': json['next_tariff_type'] == null ? undefined : json['next_tariff_type'], + }; +} +function PostingV4PostingFbsListResponsePostingsTarifficationToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_tariff_charge': (0, MoneyMoneyCurrentTariffCharge_1.MoneyMoneyCurrentTariffChargeToJSON)(value['current_tariff_charge']), + 'current_tariff_min_charge': (0, MoneyMoneyCurrentTariffMinCharge_1.MoneyMoneyCurrentTariffMinChargeToJSON)(value['current_tariff_min_charge']), + 'current_tariff_rate': value['current_tariff_rate'], + 'current_tariff_type': value['current_tariff_type'], + 'next_tariff_charge': (0, MoneyMoneyNextTariffCharge_1.MoneyMoneyNextTariffChargeToJSON)(value['next_tariff_charge']), + 'next_tariff_min_charge': (0, MoneyMoneyNextTariffMinCharge_1.MoneyMoneyNextTariffMinChargeToJSON)(value['next_tariff_min_charge']), + 'next_tariff_rate': value['next_tariff_rate'], + 'next_tariff_starts_at': value['next_tariff_starts_at'], + 'next_tariff_type': value['next_tariff_type'], + }; +} diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.d.ts b/dist/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.d.ts new file mode 100644 index 0000000..c00d228 --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyCurrentTariffMinCharge } from './MoneyMoneyCurrentTariffMinCharge'; +import type { MoneyMoneyCurrentTariffCharge } from './MoneyMoneyCurrentTariffCharge'; +/** + * + * @export + * @interface PostingV4PostingFbsListResponsePostingsTarifficationStep + */ +export interface PostingV4PostingFbsListResponsePostingsTarifficationStep { + /** + * + * @type {MoneyMoneyCurrentTariffMinCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + min_charge?: MoneyMoneyCurrentTariffMinCharge; + /** + * + * @type {MoneyMoneyCurrentTariffCharge} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + tariff_charge?: MoneyMoneyCurrentTariffCharge; + /** + * Дата и время окончания этапа тарификации. После этой даты автоматически начинается следующий этап. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + tariff_deadline_at?: string; + /** + * Процент скидки или надбавки. + * @type {number} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + tariff_rate?: number; + /** + * Тип тарификации. + * @type {string} + * @memberof PostingV4PostingFbsListResponsePostingsTarifficationStep + */ + tariff_type?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsTarifficationStep interface. + */ +export declare function instanceOfPostingV4PostingFbsListResponsePostingsTarifficationStep(value: object): value is PostingV4PostingFbsListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON(json: any): PostingV4PostingFbsListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON(value?: PostingV4PostingFbsListResponsePostingsTarifficationStep | null): any; diff --git a/dist/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.js b/dist/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.js new file mode 100644 index 0000000..5e39c3a --- /dev/null +++ b/dist/models/PostingV4PostingFbsListResponsePostingsTarifficationStep.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsListResponsePostingsTarifficationStep = instanceOfPostingV4PostingFbsListResponsePostingsTarifficationStep; +exports.PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON = PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON; +exports.PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSONTyped = PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSONTyped; +exports.PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON = PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON; +const MoneyMoneyCurrentTariffMinCharge_1 = require("./MoneyMoneyCurrentTariffMinCharge"); +const MoneyMoneyCurrentTariffCharge_1 = require("./MoneyMoneyCurrentTariffCharge"); +/** + * Check if a given object implements the PostingV4PostingFbsListResponsePostingsTarifficationStep interface. + */ +function instanceOfPostingV4PostingFbsListResponsePostingsTarifficationStep(value) { + return true; +} +function PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON(json) { + return PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSONTyped(json, false); +} +function PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_charge': json['min_charge'] == null ? undefined : (0, MoneyMoneyCurrentTariffMinCharge_1.MoneyMoneyCurrentTariffMinChargeFromJSON)(json['min_charge']), + 'tariff_charge': json['tariff_charge'] == null ? undefined : (0, MoneyMoneyCurrentTariffCharge_1.MoneyMoneyCurrentTariffChargeFromJSON)(json['tariff_charge']), + 'tariff_deadline_at': json['tariff_deadline_at'] == null ? undefined : json['tariff_deadline_at'], + 'tariff_rate': json['tariff_rate'] == null ? undefined : json['tariff_rate'], + 'tariff_type': json['tariff_type'] == null ? undefined : json['tariff_type'], + }; +} +function PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_charge': (0, MoneyMoneyCurrentTariffMinCharge_1.MoneyMoneyCurrentTariffMinChargeToJSON)(value['min_charge']), + 'tariff_charge': (0, MoneyMoneyCurrentTariffCharge_1.MoneyMoneyCurrentTariffChargeToJSON)(value['tariff_charge']), + 'tariff_deadline_at': value['tariff_deadline_at'], + 'tariff_rate': value['tariff_rate'], + 'tariff_type': value['tariff_type'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequest.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListRequest.d.ts new file mode 100644 index 0000000..338bb9d --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequest.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListRequestSortDirEnum } from './PostingV4PostingFbsUnfulfilledListRequestSortDirEnum'; +import type { PostingV4PostingFbsUnfulfilledListRequestFilter } from './PostingV4PostingFbsUnfulfilledListRequestFilter'; +import type { PostingV4PostingFbsUnfulfilledListRequestWith } from './PostingV4PostingFbsUnfulfilledListRequestWith'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListRequest + */ +export interface PostingV4PostingFbsUnfulfilledListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + cursor?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListRequestFilter} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + filter?: PostingV4PostingFbsUnfulfilledListRequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + limit?: number; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListRequestSortDirEnum} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + sort_dir?: PostingV4PostingFbsUnfulfilledListRequestSortDirEnum; + /** + * `true`, чтобы включить транслитерацию адреса из кириллицы в латиницу. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + translit?: boolean; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListRequestWith} + * @memberof PostingV4PostingFbsUnfulfilledListRequest + */ + _with?: PostingV4PostingFbsUnfulfilledListRequestWith; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequest interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequest(value: object): value is PostingV4PostingFbsUnfulfilledListRequest; +export declare function PostingV4PostingFbsUnfulfilledListRequestFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequest; +export declare function PostingV4PostingFbsUnfulfilledListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequest; +export declare function PostingV4PostingFbsUnfulfilledListRequestToJSON(value?: PostingV4PostingFbsUnfulfilledListRequest | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequest.js b/dist/models/PostingV4PostingFbsUnfulfilledListRequest.js new file mode 100644 index 0000000..6b06e37 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListRequest = instanceOfPostingV4PostingFbsUnfulfilledListRequest; +exports.PostingV4PostingFbsUnfulfilledListRequestFromJSON = PostingV4PostingFbsUnfulfilledListRequestFromJSON; +exports.PostingV4PostingFbsUnfulfilledListRequestFromJSONTyped = PostingV4PostingFbsUnfulfilledListRequestFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListRequestToJSON = PostingV4PostingFbsUnfulfilledListRequestToJSON; +const PostingV4PostingFbsUnfulfilledListRequestSortDirEnum_1 = require("./PostingV4PostingFbsUnfulfilledListRequestSortDirEnum"); +const PostingV4PostingFbsUnfulfilledListRequestFilter_1 = require("./PostingV4PostingFbsUnfulfilledListRequestFilter"); +const PostingV4PostingFbsUnfulfilledListRequestWith_1 = require("./PostingV4PostingFbsUnfulfilledListRequestWith"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequest interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListRequest(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListRequestFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListRequestFilter_1.PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListRequestSortDirEnum_1.PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON)(json['sort_dir']), + 'translit': json['translit'] == null ? undefined : json['translit'], + '_with': json['with'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListRequestWith_1.PostingV4PostingFbsUnfulfilledListRequestWithFromJSON)(json['with']), + }; +} +function PostingV4PostingFbsUnfulfilledListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, PostingV4PostingFbsUnfulfilledListRequestFilter_1.PostingV4PostingFbsUnfulfilledListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'sort_dir': (0, PostingV4PostingFbsUnfulfilledListRequestSortDirEnum_1.PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON)(value['sort_dir']), + 'translit': value['translit'], + 'with': (0, PostingV4PostingFbsUnfulfilledListRequestWith_1.PostingV4PostingFbsUnfulfilledListRequestWithToJSON)(value['_with']), + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilter.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilter.d.ts new file mode 100644 index 0000000..b0bff12 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilter.d.ts @@ -0,0 +1,99 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate } from './PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate'; +/** + * Фильтр запроса. + * + * Используйте фильтр по времени сборки — `cutoff` или по дате передачи отправления в доставку — `delivering_date`. + * Если использовать их вместе, в ответе вернётся ошибка. + * + * Чтобы использовать фильтр по времени сборки, заполните поля `cutoff_from` и `cutoff_to`. + * + * Чтобы использовать фильтр по дате передачи отправления в доставку, заполните поля `delivering_date_from` и `delivering_date_to`. + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListRequestFilter + */ +export interface PostingV4PostingFbsUnfulfilledListRequestFilter { + /** + * Время, до которого продавцу нужно собрать заказ. Начало периода. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + cutoff_from?: string; + /** + * Время, до которого продавцу нужно собрать заказ. Конец периода. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + cutoff_to?: string; + /** + * Минимальная дата передачи отправления в доставку. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + delivering_date_from?: string; + /** + * Максимальная дата передачи отправления в доставку. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + delivering_date_to?: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + delivery_method_ids?: Array; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + last_changed_status_date?: PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; + /** + * Идентификатор службы доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + provider_ids?: Array; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка; + * - `awaiting_approve` — ожидает подтверждения; + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_registration` — ожидает регистрации; + * - `awaiting_deliver` — ожидает отгрузки; + * - `arbitration` — арбитраж; + * - `client_arbitration` — клиентский арбитраж доставки; + * - `delivering` — доставляется; + * - `driver_pickup` — у водителя; + * - `not_accepted` — не принято на сортировочном центре. + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + statuses?: Array; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilter + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestFilter interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequestFilter(value: object): value is PostingV4PostingFbsUnfulfilledListRequestFilter; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequestFilter; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequestFilter; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterToJSON(value?: PostingV4PostingFbsUnfulfilledListRequestFilter | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilter.js b/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilter.js new file mode 100644 index 0000000..e53aec5 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilter.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListRequestFilter = instanceOfPostingV4PostingFbsUnfulfilledListRequestFilter; +exports.PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON = PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON; +exports.PostingV4PostingFbsUnfulfilledListRequestFilterFromJSONTyped = PostingV4PostingFbsUnfulfilledListRequestFilterFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListRequestFilterToJSON = PostingV4PostingFbsUnfulfilledListRequestFilterToJSON; +const PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate_1 = require("./PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestFilter interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListRequestFilter(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListRequestFilterFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestFilterFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cutoff_from': json['cutoff_from'] == null ? undefined : json['cutoff_from'], + 'cutoff_to': json['cutoff_to'] == null ? undefined : json['cutoff_to'], + 'delivering_date_from': json['delivering_date_from'] == null ? undefined : json['delivering_date_from'], + 'delivering_date_to': json['delivering_date_to'] == null ? undefined : json['delivering_date_to'], + 'delivery_method_ids': json['delivery_method_ids'] == null ? undefined : json['delivery_method_ids'], + 'last_changed_status_date': json['last_changed_status_date'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate_1.PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON)(json['last_changed_status_date']), + 'provider_ids': json['provider_ids'] == null ? undefined : json['provider_ids'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function PostingV4PostingFbsUnfulfilledListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivering_date_from': value['delivering_date_from'], + 'delivering_date_to': value['delivering_date_to'], + 'delivery_method_ids': value['delivery_method_ids'], + 'last_changed_status_date': (0, PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate_1.PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON)(value['last_changed_status_date']), + 'provider_ids': value['provider_ids'], + 'statuses': value['statuses'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.d.ts new file mode 100644 index 0000000..3955b5c --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, в который последний раз изменялся статус отправления. + * @export + * @interface PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate + */ +export interface PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate { + /** + * Дата начала периода. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate + */ + to?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate(value: object): value is PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; +export declare function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON(value?: PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.js b/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.js new file mode 100644 index 0000000..7fcc8dd --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate = instanceOfPostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate; +exports.PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON = PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON; +exports.PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSONTyped = PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON = PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..e9b24cd --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const PostingV4PostingFbsUnfulfilledListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type PostingV4PostingFbsUnfulfilledListRequestSortDirEnum = typeof PostingV4PostingFbsUnfulfilledListRequestSortDirEnum[keyof typeof PostingV4PostingFbsUnfulfilledListRequestSortDirEnum]; +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequestSortDirEnum(value: any): boolean; +export declare function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequestSortDirEnum; +export declare function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequestSortDirEnum; +export declare function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON(value?: PostingV4PostingFbsUnfulfilledListRequestSortDirEnum | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.js b/dist/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.js new file mode 100644 index 0000000..ccdadf5 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PostingV4PostingFbsUnfulfilledListRequestSortDirEnum = void 0; +exports.instanceOfPostingV4PostingFbsUnfulfilledListRequestSortDirEnum = instanceOfPostingV4PostingFbsUnfulfilledListRequestSortDirEnum; +exports.PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON = PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON; +exports.PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSONTyped = PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON = PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.PostingV4PostingFbsUnfulfilledListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfPostingV4PostingFbsUnfulfilledListRequestSortDirEnum(value) { + for (const key in exports.PostingV4PostingFbsUnfulfilledListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PostingV4PostingFbsUnfulfilledListRequestSortDirEnum, key)) { + if (exports.PostingV4PostingFbsUnfulfilledListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PostingV4PostingFbsUnfulfilledListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequestWith.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListRequestWith.d.ts new file mode 100644 index 0000000..a08009b --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequestWith.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface PostingV4PostingFbsUnfulfilledListRequestWith + */ +export interface PostingV4PostingFbsUnfulfilledListRequestWith { + /** + * `true`, чтобы добавить в ответ данные аналитики. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequestWith + */ + analytics_data?: boolean; + /** + * `true`, чтобы добавить в ответ штрихкоды отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequestWith + */ + barcodes?: boolean; + /** + * `true`, чтобы добавить в ответ финансовые данные. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequestWith + */ + financial_data?: boolean; + /** + * `true`, чтобы добавить в ответ юридическую информацию. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListRequestWith + */ + legal_info?: boolean; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestWith interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListRequestWith(value: object): value is PostingV4PostingFbsUnfulfilledListRequestWith; +export declare function PostingV4PostingFbsUnfulfilledListRequestWithFromJSON(json: any): PostingV4PostingFbsUnfulfilledListRequestWith; +export declare function PostingV4PostingFbsUnfulfilledListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListRequestWith; +export declare function PostingV4PostingFbsUnfulfilledListRequestWithToJSON(value?: PostingV4PostingFbsUnfulfilledListRequestWith | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListRequestWith.js b/dist/models/PostingV4PostingFbsUnfulfilledListRequestWith.js new file mode 100644 index 0000000..287b479 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListRequestWith.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListRequestWith = instanceOfPostingV4PostingFbsUnfulfilledListRequestWith; +exports.PostingV4PostingFbsUnfulfilledListRequestWithFromJSON = PostingV4PostingFbsUnfulfilledListRequestWithFromJSON; +exports.PostingV4PostingFbsUnfulfilledListRequestWithFromJSONTyped = PostingV4PostingFbsUnfulfilledListRequestWithFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListRequestWithToJSON = PostingV4PostingFbsUnfulfilledListRequestWithToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListRequestWith interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListRequestWith(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListRequestWithFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListRequestWithFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + }; +} +function PostingV4PostingFbsUnfulfilledListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'barcodes': value['barcodes'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponse.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponse.d.ts new file mode 100644 index 0000000..dc215d5 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostings } from './PostingV4PostingFbsUnfulfilledListResponsePostings'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponse + */ +export interface PostingV4PostingFbsUnfulfilledListResponse { + /** + * Количество отправлений в ответе. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponse + */ + count?: number; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponse + */ + has_next?: boolean; + /** + * Список отправлений. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponse interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponse(value: object): value is PostingV4PostingFbsUnfulfilledListResponse; +export declare function PostingV4PostingFbsUnfulfilledListResponseFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponse; +export declare function PostingV4PostingFbsUnfulfilledListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponse; +export declare function PostingV4PostingFbsUnfulfilledListResponseToJSON(value?: PostingV4PostingFbsUnfulfilledListResponse | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponse.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponse.js new file mode 100644 index 0000000..2506cd3 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponse = instanceOfPostingV4PostingFbsUnfulfilledListResponse; +exports.PostingV4PostingFbsUnfulfilledListResponseFromJSON = PostingV4PostingFbsUnfulfilledListResponseFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponseFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponseFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponseToJSON = PostingV4PostingFbsUnfulfilledListResponseToJSON; +const PostingV4PostingFbsUnfulfilledListResponsePostings_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostings"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponse interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponse(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponseFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponseFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(PostingV4PostingFbsUnfulfilledListResponsePostings_1.PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON)), + }; +} +function PostingV4PostingFbsUnfulfilledListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(PostingV4PostingFbsUnfulfilledListResponsePostings_1.PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON)), + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostings.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostings.d.ts new file mode 100644 index 0000000..62ca722 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostings.d.ts @@ -0,0 +1,415 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication } from './PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder } from './PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter } from './PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod } from './PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsContainer } from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainer'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep } from './PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsProducts } from './PostingV4PostingFbsUnfulfilledListResponsePostingsProducts'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsOptional } from './PostingV4PostingFbsUnfulfilledListResponsePostingsOptional'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData } from './PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo } from './PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements } from './PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes } from './PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee } from './PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostings + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostings { + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + addressee?: PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + analytics_data?: PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; + /** + * Доступные действия и информация об отправлении: + * - `arbitration` — открыть спор; + * - `awaiting_delivery` — перевести в статус «Ожидает отгрузки»; + * - `can_create_chat` — начать чат с покупателем; + * - `cancel` — отменить отправление; + * - `click_track_number` — просмотреть по трек-номеру историю изменения статусов в личном кабинете; + * - `customer_phone_available` — телефон покупателя; + * - `has_weight_products` — весовые товары в отправлении; + * - `hide_region_and_city` — скрыть регион и город покупателя в отчёте; + * - `invoice_get` — получить информацию из счёта-фактуры; + * - `invoice_send` — создать счёт-фактуру; + * - `invoice_update` — отредактировать счёт-фактуру; + * - `label_download_big` — скачать большую этикетку; + * - `label_download_small` — скачать маленькую этикетку; + * - `label_download` — скачать этикетку; + * - `non_int_delivered` — перевести в статус «Условно доставлен»; + * - `non_int_delivering` — перевести в статус «Доставляется»; + * - `non_int_last_mile` — перевести в статус «Курьер в пути»; + * - `product_cancel` — отменить часть товаров в отправлении; + * - `set_cutoff` — укажите дату отгрузки методом [/v1/posting/cutoff/set](#operation/PostingAPI_SetPostingCutoff) не позже даты в параметре `shipment_date`; + * - `set_timeslot` — изменить время доставки покупателю; + * - `set_track_number` — указать или изменить трек-номер; + * - `ship_async_in_process` — отправление собирается; + * - `ship_async_retry` — собрать отправление повторно после ошибки сборки; + * - `ship_async` — собрать отправление; + * - `ship_with_additional_info` — заполните дополнительную информацию методом [/v6/fbs/posting/product/exemplar/set](https://docs.ozon.ru/api/seller/#operation/PostingAPI_FbsPostingProductExemplarSetV6); + * - `ship` — собрать отправление; + * - `update_cis` — изменить дополнительную информацию. + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + available_actions?: Array; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + barcodes?: PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + cancellation?: PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + customer?: PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsContainer} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + container?: PostingV4PostingFbsUnfulfilledListResponsePostingsContainer; + /** + * Тип сортировки грузоместа: + * - `SORT` — сортируемый; + * - `NON-SORT` — несортируемый. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + container_sort_type?: string; + /** + * Дата передачи отправления в доставку. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + delivering_date?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + delivery_method?: PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; + /** + * Схема доставки: + * - `SDS` — идентификатор единого SKU; + * - `FBO` — идентификатор товара, который продаётся со склада Ozon; + * - `FBS` — идентификатор товара, который продаётся со склада FBS; + * - `Crossborder` — идентификатор товара, который продаётся из-за границы. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + delivery_schema?: string; + /** + * Идентификатор места назначения. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + destination_place_id?: number; + /** + * Название места назначения. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + destination_place_name?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + external_order?: PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + financial_data?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + in_process_at?: string; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + integration_type_flow?: string; + /** + * `true`, если отправление доставляется методом «Самовывоз из магазина». + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + is_click_and_collect?: boolean; + /** + * `true`, если использовалась быстрая доставка Ozon Express. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + is_express?: boolean; + /** + * Признак, что в отправлении есть многокоробочный товар и нужно передать количество коробок для него: + * + * - `true` — до сборки передайте количество коробок через метод [/v3/posting/multiboxqty/set](#operation/PostingAPI_PostingMultiBoxQtySetV3). + * - `false` — отправление собрано с указанием количества коробок в параметре `multi_box_qty` или в отправлении нет многокоробочного товара. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + is_multibox?: boolean; + /** + * `true`, если товар пересорт. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + is_presortable?: boolean; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + legal_info?: PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + multi_box_qty?: number; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsOptional} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + optional?: PostingV4PostingFbsUnfulfilledListResponsePostingsOptional; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + order_number?: string; + /** + * Номер родительского отправления, в результате разделения которого появилось текущее. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + parent_posting_number?: string; + /** + * Дата и время успешной валидации кода курьера. Проверьте код курьера методом [/v1/posting/fbs/pick-up-code/verify](#operation/PostingAPI_PostingFBSPickupCodeVerify). + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + pickup_code_verified_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + products?: Array; + /** + * Код услуги погрузочно-разгрузочных работ: + * - `lift` — подъём на лифте; + * - `stairs` — подъём по лестнице; + * - `none` — покупатель отказался от услуги, поднимать товары не нужно; + * - `delivery_default` — доставка включена в стоимость, по условиям оферты нужно доставить товар на этаж. + * + * Для КГТ-отправлений с доставкой силами продавца или интегрированной службой. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + prr_option?: string; + /** + * Идентификатор эконом-товара. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + quantum_id?: number; + /** + * `true`, если нужно заполнить атрибуты отслеживаемости. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + require_blr_traceable_attrs?: boolean; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + requirements?: PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; + /** + * Дата и время, до которой нужно собрать отправление. Показываем рекомендованное время отгрузки. По истечении этого времени начнёт применяться новый тариф, информацию о нём получите в поле `tariffication`. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + shipment_date?: string; + /** + * Дата и время отгрузки без просрочки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + shipment_date_without_delay?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + sorting_center?: PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка; + * - `arbitration` — арбитраж; + * - `awaiting_approve` — ожидает подтверждения; + * - `awaiting_deliver` — ожидает отгрузки; + * - `awaiting_packaging` — ожидает упаковки; + * - `awaiting_registration` — ожидает регистрации; + * - `awaiting_verification` — создано; + * - `cancelled` — отменено; + * - `cancelled_from_split_pending` — отменено из-за разделения отправления; + * - `client_arbitration` — клиентский арбитраж доставки; + * - `delivering` — доставляется; + * - `driver_pickup` — у водителя; + * - `not_accepted` — не принято на сортировочном центре. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_acceptance_in_progress`— идёт приёмка; + * - `posting_in_arbitration` — арбитраж; + * - `posting_created` — создано; + * - `posting_in_carriage` — в перевозке; + * - `posting_not_in_carriage` — не добавлено в перевозку; + * - `posting_registered` — зарегистрировано; + * - `posting_transferring_to_delivery`, если `status=awaiting_deliver` — передаётся в доставку; + * - `posting_awaiting_passport_data` — ожидает паспортных данных; + * - `posting_created` — создано; + * - `posting_awaiting_registration` — ожидает регистрации; + * - `posting_registration_error` — ошибка регистрации; + * - `posting_transferring_to_delivery`, если `status=awaiting_registration` — передаётся курьеру; + * - `posting_split_pending` — создано; + * - `posting_canceled` — отменено; + * - `posting_in_client_arbitration` — клиентский арбитраж доставки; + * - `posting_delivered` — доставлено; + * - `posting_received` — получено; + * - `posting_conditionally_delivered` — условно доставлено; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_on_way_to_city` — в пути в ваш город; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_driver_pick_up` — у водителя; + * - `posting_not_in_sort_center` — не принято на сортировочном центре; + * - `ship_failed` — сборка не удалась. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + substatus?: string; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + tariffication?: PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; + /** + * Этапы тарификации. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + tariffication_steps?: Array; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка службой Ozon; + * - `3pl_tracking` — доставка интегрированной службой; + * - `non_integrated` — доставка сторонней службой; + * - `aggregator` — доставка через партнёрскую доставку Ozon; + * - `hybryd` — схема доставки Почты России. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + tpl_integration_type?: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + tracking_number?: string; + /** + * Объёмный вес товара. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostings + */ + volume_weight?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostings interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostings(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostings; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostings; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostings; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostings | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostings.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostings.js new file mode 100644 index 0000000..f1f469b --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostings.js @@ -0,0 +1,146 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostings = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostings; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON; +const PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsContainer_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsContainer"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsProducts_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsProducts"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsOptional_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsOptional"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostings interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostings(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'addressee': json['addressee'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee_1.PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON)(json['addressee']), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData_1.PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON)(json['analytics_data']), + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'barcodes': json['barcodes'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes_1.PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON)(json['barcodes']), + 'cancellation': json['cancellation'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation_1.PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON)(json['cancellation']), + 'customer': json['customer'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer_1.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON)(json['customer']), + 'container': json['container'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsContainer_1.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON)(json['container']), + 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], + 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], + 'delivery_method': json['delivery_method'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod_1.PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON)(json['delivery_method']), + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'destination_place_id': json['destination_place_id'] == null ? undefined : json['destination_place_id'], + 'destination_place_name': json['destination_place_name'] == null ? undefined : json['destination_place_name'], + 'external_order': json['external_order'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder_1.PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON)(json['external_order']), + 'financial_data': json['financial_data'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData_1.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'is_click_and_collect': json['is_click_and_collect'] == null ? undefined : json['is_click_and_collect'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], + 'is_presortable': json['is_presortable'] == null ? undefined : json['is_presortable'], + 'legal_info': json['legal_info'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo_1.PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON)(json['legal_info']), + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'optional': json['optional'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsOptional_1.PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON)(json['optional']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], + 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsProducts_1.PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON)), + 'prr_option': json['prr_option'] == null ? undefined : json['prr_option'], + 'quantum_id': json['quantum_id'] == null ? undefined : json['quantum_id'], + 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], + 'requirements': json['requirements'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements_1.PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON)(json['requirements']), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], + 'sorting_center': json['sorting_center'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter_1.PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON)(json['sorting_center']), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'tariffication': json['tariffication'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication_1.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON)(json['tariffication']), + 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep_1.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON)), + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'volume_weight': json['volume_weight'] == null ? undefined : json['volume_weight'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'addressee': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee_1.PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON)(value['addressee']), + 'analytics_data': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData_1.PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON)(value['analytics_data']), + 'available_actions': value['available_actions'], + 'barcodes': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes_1.PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON)(value['barcodes']), + 'cancellation': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation_1.PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON)(value['cancellation']), + 'customer': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer_1.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON)(value['customer']), + 'container': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsContainer_1.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON)(value['container']), + 'container_sort_type': value['container_sort_type'], + 'delivering_date': value['delivering_date'], + 'delivery_method': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod_1.PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON)(value['delivery_method']), + 'delivery_schema': value['delivery_schema'], + 'destination_place_id': value['destination_place_id'], + 'destination_place_name': value['destination_place_name'], + 'external_order': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder_1.PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON)(value['external_order']), + 'financial_data': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData_1.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'integration_type_flow': value['integration_type_flow'], + 'is_click_and_collect': value['is_click_and_collect'], + 'is_express': value['is_express'], + 'is_multibox': value['is_multibox'], + 'is_presortable': value['is_presortable'], + 'legal_info': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo_1.PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON)(value['legal_info']), + 'multi_box_qty': value['multi_box_qty'], + 'optional': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsOptional_1.PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON)(value['optional']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'parent_posting_number': value['parent_posting_number'], + 'pickup_code_verified_at': value['pickup_code_verified_at'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsProducts_1.PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON)), + 'prr_option': value['prr_option'], + 'quantum_id': value['quantum_id'], + 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], + 'requirements': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements_1.PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON)(value['requirements']), + 'shipment_date': value['shipment_date'], + 'shipment_date_without_delay': value['shipment_date_without_delay'], + 'sorting_center': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter_1.PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON)(value['sorting_center']), + 'status': value['status'], + 'substatus': value['substatus'], + 'tariffication': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication_1.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON)(value['tariffication']), + 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep_1.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON)), + 'tpl_integration_type': value['tpl_integration_type'], + 'tracking_number': value['tracking_number'], + 'volume_weight': value['volume_weight'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.d.ts new file mode 100644 index 0000000..08d0752 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контактные данные получателя. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee { + /** + * Имя получателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee + */ + name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAddressee(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.js new file mode 100644 index 0000000..7a11e6f --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAddressee = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAddressee; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAddressee(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsAddresseeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.d.ts new file mode 100644 index 0000000..4d245f6 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.d.ts @@ -0,0 +1,121 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + client_delivery_date_end?: string; + /** + * Дата и время начала доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + delivery_date_begin?: string; + /** + * Дата и время конца доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + delivery_type?: string; + /** + * `true`, если получатель юридическое лицо. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + is_legal?: boolean; + /** + * `true`, если у получателя есть подписка Premium. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`; + * - `карта Ozon Банка`; + * - `автосписание с карты Ozon Банка при выдаче`; + * - `сохранённой картой при получении`; + * - `Система Быстрых Платежей`; + * - `Ozon Рассрочка`; + * - `оплата на расчётный счёт`; + * - `SberPay`; + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + region?: string; + /** + * Служба доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + tpl_provider_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.js new file mode 100644 index 0000000..a928ed9 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + 'delivery_date_begin': json['delivery_date_begin'] == null ? undefined : json['delivery_date_begin'], + 'delivery_date_end': json['delivery_date_end'] == null ? undefined : json['delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + 'delivery_date_begin': value['delivery_date_begin'], + 'delivery_date_end': value['delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.d.ts new file mode 100644 index 0000000..94b41c9 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Штрихкоды отправления. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes { + /** + * Нижний штрихкод на маркировке отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes + */ + lower_barcode?: string; + /** + * Верхний штрихкод на маркировке отправления. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes + */ + upper_barcode?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.js new file mode 100644 index 0000000..3fe1319 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lower_barcode': json['lower_barcode'] == null ? undefined : json['lower_barcode'], + 'upper_barcode': json['upper_barcode'] == null ? undefined : json['upper_barcode'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lower_barcode': value['lower_barcode'], + 'upper_barcode': value['upper_barcode'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.d.ts new file mode 100644 index 0000000..978e7da --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation { + /** + * `true`, если отмена влияет на рейтинг продавца. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + affect_cancellation_rating?: boolean; + /** + * Причина отмены. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancel_reason?: string; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancel_reason_id?: number; + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент`, + * - `Покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system` — отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancellation_type?: string; + /** + * `true`, если отмена произошла после сборки отправления. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation + */ + cancelled_after_ship?: boolean; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCancellation(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.js new file mode 100644 index 0000000..f202e48 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCancellation = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCancellation; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCancellation(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'affect_cancellation_rating': json['affect_cancellation_rating'] == null ? undefined : json['affect_cancellation_rating'], + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + 'cancelled_after_ship': json['cancelled_after_ship'] == null ? undefined : json['cancelled_after_ship'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'affect_cancellation_rating': value['affect_cancellation_rating'], + 'cancel_reason': value['cancel_reason'], + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + 'cancelled_after_ship': value['cancelled_after_ship'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.d.ts new file mode 100644 index 0000000..9cd936f --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum } from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum'; +/** + * Информация о грузоместе. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsContainer { + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ + cargo_type?: PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum; + /** + * Дата создания грузоместа в часовом поясе склада. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ + container_date?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ + container_id?: number; + /** + * Порядковый номер грузоместа. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsContainer + */ + container_number?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsContainer interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainer(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsContainer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsContainer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsContainer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsContainer | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.js new file mode 100644 index 0000000..49a9c82 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainer.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainer = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainer; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON; +const PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsContainer interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainer(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_type': json['cargo_type'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum_1.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON)(json['cargo_type']), + 'container_date': json['container_date'] == null ? undefined : json['container_date'], + 'container_id': json['container_id'] == null ? undefined : json['container_id'], + 'container_number': json['container_number'] == null ? undefined : json['container_number'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_type': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum_1.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON)(value['cargo_type']), + 'container_date': value['container_date'], + 'container_id': value['container_id'], + 'container_number': value['container_number'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.d.ts new file mode 100644 index 0000000..57dca6b --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +export declare const PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum: { + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum = typeof PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum[keyof typeof PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum]; +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum(value: any): boolean; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.js new file mode 100644 index 0000000..93a2494 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum = void 0; +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON; +/** + * Тип грузоместа: + * - `BOX` — коробка; + * - `PALLET` — палета. + * + * @export + */ +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum = { + BOX: 'BOX', + PALLET: 'PALLET' +}; +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum(value) { + for (const key in exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum, key)) { + if (exports.PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.d.ts new file mode 100644 index 0000000..da88081 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress } from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress'; +/** + * Информация о покупателе. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer { + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + address?: PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; + /** + * Электронная почта покупателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + customer_email?: string; + /** + * Идентификатор покупателя. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + customer_id?: number; + /** + * Имя покупателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + name?: string; + /** + * Подменный контактный телефон покупателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer + */ + phone?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomer(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.js new file mode 100644 index 0000000..9692deb --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomer = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomer; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON; +const PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomer(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress_1.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON)(json['address']), + 'customer_email': json['customer_email'] == null ? undefined : json['customer_email'], + 'customer_id': json['customer_id'] == null ? undefined : json['customer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress_1.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON)(value['address']), + 'customer_email': value['customer_email'], + 'customer_id': value['customer_id'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.d.ts new file mode 100644 index 0000000..f73f1d8 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об адресе доставки. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress { + /** + * Адрес в текстовом формате. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + address_tail?: string; + /** + * Город доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + city?: string; + /** + * Комментарий к заказу. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + comment?: string; + /** + * Страна доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + country?: string; + /** + * Район доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + district?: string; + /** + * Широта. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + longitude?: number; + /** + * Код пункта выдачи заказов 3PL-провайдера. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + provider_pvz_code?: string; + /** + * Код пункта выдачи заказов. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + pvz_code?: number; + /** + * Регион доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + region?: string; + /** + * Почтовый индекс получателя. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress + */ + zip_code?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.js new file mode 100644 index 0000000..326f6f3 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_tail': json['address_tail'] == null ? undefined : json['address_tail'], + 'city': json['city'] == null ? undefined : json['city'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'country': json['country'] == null ? undefined : json['country'], + 'district': json['district'] == null ? undefined : json['district'], + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + 'provider_pvz_code': json['provider_pvz_code'] == null ? undefined : json['provider_pvz_code'], + 'pvz_code': json['pvz_code'] == null ? undefined : json['pvz_code'], + 'region': json['region'] == null ? undefined : json['region'], + 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddressToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_tail': value['address_tail'], + 'city': value['city'], + 'comment': value['comment'], + 'country': value['country'], + 'district': value['district'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'provider_pvz_code': value['provider_pvz_code'], + 'pvz_code': value['pvz_code'], + 'region': value['region'], + 'zip_code': value['zip_code'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.d.ts new file mode 100644 index 0000000..a743a35 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о способе доставки. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + id?: number; + /** + * Название способа доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + name?: string; + /** + * Служба доставки. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + tpl_provider_id?: number; + /** + * Название склада. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.js new file mode 100644 index 0000000..1573959 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.d.ts new file mode 100644 index 0000000..c76d460 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе с внешней платформы. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder { + /** + * `true`, если заказ с внешней платформы. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder + */ + is_external?: boolean; + /** + * Название платформы, с которой сделали заказ. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder + */ + platform_name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.js new file mode 100644 index 0000000..dc3aca8 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_external': json['is_external'] == null ? undefined : json['is_external'], + 'platform_name': json['platform_name'] == null ? undefined : json['platform_name'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_external': value['is_external'], + 'platform_name': value['platform_name'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.d.ts new file mode 100644 index 0000000..5566d11 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts'; +/** + * Информация о стоимости товара, размере скидки, выплате и комиссии. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.js new file mode 100644 index 0000000..c06316c --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON; +const PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts_1.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON)), + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts_1.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON)), + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.d.ts new file mode 100644 index 0000000..8c3b9ba --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.d.ts @@ -0,0 +1,87 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +import type { PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission } from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts { + /** + * Список акций. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + actions?: Array; + /** + * + * @type {PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + commission?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + customer_price?: MoneyPostingMoney; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + old_price?: number; + /** + * Выплата продавцу. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + payout?: number; + /** + * Цена товара с учётом акций, кроме акций за счёт Ozon. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + product_id?: number; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + quantity?: number; + /** + * Процент скидки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + total_discount_percent?: number; + /** + * Сумма скидки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts + */ + total_discount_value?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.js new file mode 100644 index 0000000..4659f6d --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON; +const MoneyPostingMoney_1 = require("./MoneyPostingMoney"); +const PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission_1 = require("./PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : json['actions'], + 'commission': json['commission'] == null ? undefined : (0, PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission_1.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON)(json['commission']), + 'customer_price': json['customer_price'] == null ? undefined : (0, MoneyPostingMoney_1.MoneyPostingMoneyFromJSON)(json['customer_price']), + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'payout': json['payout'] == null ? undefined : json['payout'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'total_discount_percent': json['total_discount_percent'] == null ? undefined : json['total_discount_percent'], + 'total_discount_value': json['total_discount_value'] == null ? undefined : json['total_discount_value'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'], + 'commission': (0, PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission_1.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON)(value['commission']), + 'customer_price': (0, MoneyPostingMoney_1.MoneyPostingMoneyToJSON)(value['customer_price']), + 'old_price': value['old_price'], + 'payout': value['payout'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + 'total_discount_percent': value['total_discount_percent'], + 'total_discount_value': value['total_discount_value'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.d.ts new file mode 100644 index 0000000..e9befb5 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за товар. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission { + /** + * Размер комиссии за товар. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission + */ + amount?: number; + /** + * Код валюты, в которой рассчитывалась комиссия. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission + */ + currency?: string; + /** + * Процент комиссии. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission + */ + percent?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.js new file mode 100644 index 0000000..4e8bc63 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'percent': json['percent'] == null ? undefined : json['percent'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + 'percent': value['percent'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.d.ts new file mode 100644 index 0000000..536f829 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.js new file mode 100644 index 0000000..b7134ab --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.d.ts new file mode 100644 index 0000000..c811288 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров с дополнительными характеристиками. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsOptional + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsOptional { + /** + * Список товаров с возможной маркировкой. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsOptional + */ + products_with_possible_mandatory_mark?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsOptional interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsOptional(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsOptional; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsOptional; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsOptional; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsOptional | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.js new file mode 100644 index 0000000..f013dae --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsOptional.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsOptional = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsOptional; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsOptional interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsOptional(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_with_possible_mandatory_mark': json['products_with_possible_mandatory_mark'] == null ? undefined : json['products_with_possible_mandatory_mark'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsOptionalToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_with_possible_mandatory_mark': value['products_with_possible_mandatory_mark'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.d.ts new file mode 100644 index 0000000..2e5ff21 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.d.ts @@ -0,0 +1,90 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyPostingMoney } from './MoneyPostingMoney'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsProducts { + /** + * Список IMEI мобильных устройств. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + imei?: Array; + /** + * `true`, если товар отслеживаемый. + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + is_blr_traceable?: boolean; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + is_marketplace_buyout?: boolean; + /** + * Название товара. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + offer_id?: string; + /** + * + * @type {MoneyPostingMoney} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + price?: MoneyPostingMoney; + /** + * Цвет товара. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + product_color?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + sku?: number; + /** + * Вес товара в упаковке. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsProducts + */ + weight?: number; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsProducts interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsProducts(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsProducts; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsProducts | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.js new file mode 100644 index 0000000..5a0b100 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsProducts.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsProducts = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsProducts; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON; +const MoneyPostingMoney_1 = require("./MoneyPostingMoney"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsProducts interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsProducts(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'imei': json['imei'] == null ? undefined : json['imei'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : (0, MoneyPostingMoney_1.MoneyPostingMoneyFromJSON)(json['price']), + 'product_color': json['product_color'] == null ? undefined : json['product_color'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'imei': value['imei'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': (0, MoneyPostingMoney_1.MoneyPostingMoneyToJSON)(value['price']), + 'product_color': value['product_color'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.d.ts new file mode 100644 index 0000000..6e35f10 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Товары, для которых нужна дополнительная информация. + * + * Чтобы перевести отправление в следующий статус, передайте: + * - страну-изготовителя; + * - номер грузовой таможенной декларации (ГТД); + * - регистрационный номер партии товара (РНПТ); + * - маркировку «Честный знак»; + * - другие маркировки; + * - вес. + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements { + /** + * Список идентификаторов товаров (SKU), для которых нужно изменить страну-изготовителя. Чтобы изменить страну-изготовителя, используйте методы [/v2/posting/fbs/product/country/list](#operation/PostingAPI_ListCountryProductFbsPostingV2) и [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_change_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать информацию о стране-изготовителе. + * + * Для сборки отправления передайте информацию о стране-изготовителе для всех перечисленных товаров методом [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать номера грузовой таможенной декларации (ГТД). + * + * До сборки отправления передайте для всех перечисленных товаров номер грузовой таможенной декларации или информацию о том, + * что номера нет, методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_gtd?: Array; + /** + * Список идентификаторов товаров, для которых нужно передать IMEI. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_imei?: Array; + /** + * Список товаров, для которых нужно передать уникальный идентификационный номер (УИН) ювелирного изделия. + * + * До сборки отправления передайте для всех перечисленных товаров УИН методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_jw_uin?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать маркировку «Честный знак». + * + * До сборки отправления передайте для всех перечисленных товаров маркировку «Честный знак» методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_mandatory_mark?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать регистрационный номер партии товара (РНПТ). + * + * До сборки отправления передайте для всех перечисленных товаров РНПТ методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_rnpt?: Array; + /** + * Список товаров, для которых нужно передать вес. + * @type {Array} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements + */ + products_requiring_weight?: Array; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsRequirements(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.js new file mode 100644 index 0000000..11c3b16 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsRequirements = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsRequirements; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsRequirements(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_requiring_change_country': json['products_requiring_change_country'] == null ? undefined : json['products_requiring_change_country'], + 'products_requiring_country': json['products_requiring_country'] == null ? undefined : json['products_requiring_country'], + 'products_requiring_gtd': json['products_requiring_gtd'] == null ? undefined : json['products_requiring_gtd'], + 'products_requiring_imei': json['products_requiring_imei'] == null ? undefined : json['products_requiring_imei'], + 'products_requiring_jw_uin': json['products_requiring_jw_uin'] == null ? undefined : json['products_requiring_jw_uin'], + 'products_requiring_mandatory_mark': json['products_requiring_mandatory_mark'] == null ? undefined : json['products_requiring_mandatory_mark'], + 'products_requiring_rnpt': json['products_requiring_rnpt'] == null ? undefined : json['products_requiring_rnpt'], + 'products_requiring_weight': json['products_requiring_weight'] == null ? undefined : json['products_requiring_weight'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsRequirementsToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_requiring_change_country': value['products_requiring_change_country'], + 'products_requiring_country': value['products_requiring_country'], + 'products_requiring_gtd': value['products_requiring_gtd'], + 'products_requiring_imei': value['products_requiring_imei'], + 'products_requiring_jw_uin': value['products_requiring_jw_uin'], + 'products_requiring_mandatory_mark': value['products_requiring_mandatory_mark'], + 'products_requiring_rnpt': value['products_requiring_rnpt'], + 'products_requiring_weight': value['products_requiring_weight'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.d.ts new file mode 100644 index 0000000..cea262c --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сортировочном центре, в который нужно привезти отправление. Для `integration_type_flow = hybrid_3pl_tracking`. + * Если значение `null`, информацию получить не удалось. + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter { + /** + * Код сортировочного центра. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter + */ + code?: string; + /** + * Название сортировочного центра. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter + */ + name?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.js new file mode 100644 index 0000000..d9c8036 --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON; +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenterToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.d.ts new file mode 100644 index 0000000..a0138ff --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.d.ts @@ -0,0 +1,83 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyCurrentTariffMinCharge } from './MoneyMoneyCurrentTariffMinCharge'; +import type { MoneyMoneyNextTariffCharge } from './MoneyMoneyNextTariffCharge'; +import type { MoneyMoneyCurrentTariffCharge } from './MoneyMoneyCurrentTariffCharge'; +import type { MoneyMoneyNextTariffMinCharge } from './MoneyMoneyNextTariffMinCharge'; +/** + * Информация по тарификации отгрузки. + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication { + /** + * + * @type {MoneyMoneyCurrentTariffCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + current_tariff_charge?: MoneyMoneyCurrentTariffCharge; + /** + * + * @type {MoneyMoneyCurrentTariffMinCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + current_tariff_min_charge?: MoneyMoneyCurrentTariffMinCharge; + /** + * Процент тарификации. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + current_tariff_rate?: number; + /** + * Тип тарификации — скидка или надбавка. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + current_tariff_type?: string; + /** + * + * @type {MoneyMoneyNextTariffCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_charge?: MoneyMoneyNextTariffCharge; + /** + * + * @type {MoneyMoneyNextTariffMinCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_min_charge?: MoneyMoneyNextTariffMinCharge; + /** + * Процент, по которому будет тарифицироваться отправление через время из параметра `next_tariff_starts_at`. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_rate?: number; + /** + * Дата и время, когда начнёт применяться новый тариф. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_starts_at?: string; + /** + * Тип тарификации через время из параметра `next_tariff_starts_at` — скидка или надбавка. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication + */ + next_tariff_type?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTariffication(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.js new file mode 100644 index 0000000..ea8ee2c --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTariffication = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTariffication; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON; +const MoneyMoneyCurrentTariffMinCharge_1 = require("./MoneyMoneyCurrentTariffMinCharge"); +const MoneyMoneyNextTariffCharge_1 = require("./MoneyMoneyNextTariffCharge"); +const MoneyMoneyCurrentTariffCharge_1 = require("./MoneyMoneyCurrentTariffCharge"); +const MoneyMoneyNextTariffMinCharge_1 = require("./MoneyMoneyNextTariffMinCharge"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTariffication(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_tariff_charge': json['current_tariff_charge'] == null ? undefined : (0, MoneyMoneyCurrentTariffCharge_1.MoneyMoneyCurrentTariffChargeFromJSON)(json['current_tariff_charge']), + 'current_tariff_min_charge': json['current_tariff_min_charge'] == null ? undefined : (0, MoneyMoneyCurrentTariffMinCharge_1.MoneyMoneyCurrentTariffMinChargeFromJSON)(json['current_tariff_min_charge']), + 'current_tariff_rate': json['current_tariff_rate'] == null ? undefined : json['current_tariff_rate'], + 'current_tariff_type': json['current_tariff_type'] == null ? undefined : json['current_tariff_type'], + 'next_tariff_charge': json['next_tariff_charge'] == null ? undefined : (0, MoneyMoneyNextTariffCharge_1.MoneyMoneyNextTariffChargeFromJSON)(json['next_tariff_charge']), + 'next_tariff_min_charge': json['next_tariff_min_charge'] == null ? undefined : (0, MoneyMoneyNextTariffMinCharge_1.MoneyMoneyNextTariffMinChargeFromJSON)(json['next_tariff_min_charge']), + 'next_tariff_rate': json['next_tariff_rate'] == null ? undefined : json['next_tariff_rate'], + 'next_tariff_starts_at': json['next_tariff_starts_at'] == null ? undefined : json['next_tariff_starts_at'], + 'next_tariff_type': json['next_tariff_type'] == null ? undefined : json['next_tariff_type'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_tariff_charge': (0, MoneyMoneyCurrentTariffCharge_1.MoneyMoneyCurrentTariffChargeToJSON)(value['current_tariff_charge']), + 'current_tariff_min_charge': (0, MoneyMoneyCurrentTariffMinCharge_1.MoneyMoneyCurrentTariffMinChargeToJSON)(value['current_tariff_min_charge']), + 'current_tariff_rate': value['current_tariff_rate'], + 'current_tariff_type': value['current_tariff_type'], + 'next_tariff_charge': (0, MoneyMoneyNextTariffCharge_1.MoneyMoneyNextTariffChargeToJSON)(value['next_tariff_charge']), + 'next_tariff_min_charge': (0, MoneyMoneyNextTariffMinCharge_1.MoneyMoneyNextTariffMinChargeToJSON)(value['next_tariff_min_charge']), + 'next_tariff_rate': value['next_tariff_rate'], + 'next_tariff_starts_at': value['next_tariff_starts_at'], + 'next_tariff_type': value['next_tariff_type'], + }; +} diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.d.ts b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.d.ts new file mode 100644 index 0000000..f4a8fea --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyCurrentTariffMinCharge } from './MoneyMoneyCurrentTariffMinCharge'; +import type { MoneyMoneyCurrentTariffCharge } from './MoneyMoneyCurrentTariffCharge'; +/** + * + * @export + * @interface PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ +export interface PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep { + /** + * + * @type {MoneyMoneyCurrentTariffMinCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + min_charge?: MoneyMoneyCurrentTariffMinCharge; + /** + * + * @type {MoneyMoneyCurrentTariffCharge} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + tariff_charge?: MoneyMoneyCurrentTariffCharge; + /** + * Дата и время окончания этапа тарификации. После этой даты автоматически применяется следующий этап. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + tariff_deadline_at?: string; + /** + * Процент скидки или надбавки. + * @type {number} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + tariff_rate?: number; + /** + * Тип тарификации. + * @type {string} + * @memberof PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep + */ + tariff_type?: string; +} +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep interface. + */ +export declare function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep(value: object): value is PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON(json: any): PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep; +export declare function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON(value?: PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep | null): any; diff --git a/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.js b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.js new file mode 100644 index 0000000..aaa1e7e --- /dev/null +++ b/dist/models/PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep = instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSONTyped = PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSONTyped; +exports.PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON = PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON; +const MoneyMoneyCurrentTariffMinCharge_1 = require("./MoneyMoneyCurrentTariffMinCharge"); +const MoneyMoneyCurrentTariffCharge_1 = require("./MoneyMoneyCurrentTariffCharge"); +/** + * Check if a given object implements the PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep interface. + */ +function instanceOfPostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep(value) { + return true; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSON(json) { + return PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSONTyped(json, false); +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_charge': json['min_charge'] == null ? undefined : (0, MoneyMoneyCurrentTariffMinCharge_1.MoneyMoneyCurrentTariffMinChargeFromJSON)(json['min_charge']), + 'tariff_charge': json['tariff_charge'] == null ? undefined : (0, MoneyMoneyCurrentTariffCharge_1.MoneyMoneyCurrentTariffChargeFromJSON)(json['tariff_charge']), + 'tariff_deadline_at': json['tariff_deadline_at'] == null ? undefined : json['tariff_deadline_at'], + 'tariff_rate': json['tariff_rate'] == null ? undefined : json['tariff_rate'], + 'tariff_type': json['tariff_type'] == null ? undefined : json['tariff_type'], + }; +} +function PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStepToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_charge': (0, MoneyMoneyCurrentTariffMinCharge_1.MoneyMoneyCurrentTariffMinChargeToJSON)(value['min_charge']), + 'tariff_charge': (0, MoneyMoneyCurrentTariffCharge_1.MoneyMoneyCurrentTariffChargeToJSON)(value['tariff_charge']), + 'tariff_deadline_at': value['tariff_deadline_at'], + 'tariff_rate': value['tariff_rate'], + 'tariff_type': value['tariff_type'], + }; +} diff --git a/dist/models/PostinglistV3status.d.ts b/dist/models/PostinglistV3status.d.ts new file mode 100644 index 0000000..9786e66 --- /dev/null +++ b/dist/models/PostinglistV3status.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, в который последний раз изменялся статус у отправлений. + * @export + * @interface PostinglistV3status + */ +export interface PostinglistV3status { + /** + * Дата начала периода. + * @type {string} + * @memberof PostinglistV3status + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof PostinglistV3status + */ + to?: string; +} +/** + * Check if a given object implements the PostinglistV3status interface. + */ +export declare function instanceOfPostinglistV3status(value: object): value is PostinglistV3status; +export declare function PostinglistV3statusFromJSON(json: any): PostinglistV3status; +export declare function PostinglistV3statusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostinglistV3status; +export declare function PostinglistV3statusToJSON(value?: PostinglistV3status | null): any; diff --git a/dist/models/PostinglistV3status.js b/dist/models/PostinglistV3status.js new file mode 100644 index 0000000..16fd02d --- /dev/null +++ b/dist/models/PostinglistV3status.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostinglistV3status = instanceOfPostinglistV3status; +exports.PostinglistV3statusFromJSON = PostinglistV3statusFromJSON; +exports.PostinglistV3statusFromJSONTyped = PostinglistV3statusFromJSONTyped; +exports.PostinglistV3statusToJSON = PostinglistV3statusToJSON; +/** + * Check if a given object implements the PostinglistV3status interface. + */ +function instanceOfPostinglistV3status(value) { + return true; +} +function PostinglistV3statusFromJSON(json) { + return PostinglistV3statusFromJSONTyped(json, false); +} +function PostinglistV3statusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function PostinglistV3statusToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/Postingv1GetCarriageAvailableListRequest.d.ts b/dist/models/Postingv1GetCarriageAvailableListRequest.d.ts new file mode 100644 index 0000000..a6c7329 --- /dev/null +++ b/dist/models/Postingv1GetCarriageAvailableListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Postingv1GetCarriageAvailableListRequest + */ +export interface Postingv1GetCarriageAvailableListRequest { + /** + * Фильтр по методу доставки. Можно получить с помощью метода [/v2/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodListV2). + * @type {number} + * @memberof Postingv1GetCarriageAvailableListRequest + */ + delivery_method_id: number; + /** + * Дата отгрузки. По умолчанию — текущая дата. + * @type {string} + * @memberof Postingv1GetCarriageAvailableListRequest + */ + departure_date?: string; +} +/** + * Check if a given object implements the Postingv1GetCarriageAvailableListRequest interface. + */ +export declare function instanceOfPostingv1GetCarriageAvailableListRequest(value: object): value is Postingv1GetCarriageAvailableListRequest; +export declare function Postingv1GetCarriageAvailableListRequestFromJSON(json: any): Postingv1GetCarriageAvailableListRequest; +export declare function Postingv1GetCarriageAvailableListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv1GetCarriageAvailableListRequest; +export declare function Postingv1GetCarriageAvailableListRequestToJSON(value?: Postingv1GetCarriageAvailableListRequest | null): any; diff --git a/dist/models/Postingv1GetCarriageAvailableListRequest.js b/dist/models/Postingv1GetCarriageAvailableListRequest.js new file mode 100644 index 0000000..0f677fd --- /dev/null +++ b/dist/models/Postingv1GetCarriageAvailableListRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv1GetCarriageAvailableListRequest = instanceOfPostingv1GetCarriageAvailableListRequest; +exports.Postingv1GetCarriageAvailableListRequestFromJSON = Postingv1GetCarriageAvailableListRequestFromJSON; +exports.Postingv1GetCarriageAvailableListRequestFromJSONTyped = Postingv1GetCarriageAvailableListRequestFromJSONTyped; +exports.Postingv1GetCarriageAvailableListRequestToJSON = Postingv1GetCarriageAvailableListRequestToJSON; +/** + * Check if a given object implements the Postingv1GetCarriageAvailableListRequest interface. + */ +function instanceOfPostingv1GetCarriageAvailableListRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + return true; +} +function Postingv1GetCarriageAvailableListRequestFromJSON(json) { + return Postingv1GetCarriageAvailableListRequestFromJSONTyped(json, false); +} +function Postingv1GetCarriageAvailableListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +function Postingv1GetCarriageAvailableListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/models/Postingv1GetCarriageAvailableListResponse.d.ts b/dist/models/Postingv1GetCarriageAvailableListResponse.d.ts new file mode 100644 index 0000000..704f4ef --- /dev/null +++ b/dist/models/Postingv1GetCarriageAvailableListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetCarriageAvailableListResponseResult } from './GetCarriageAvailableListResponseResult'; +/** + * + * @export + * @interface Postingv1GetCarriageAvailableListResponse + */ +export interface Postingv1GetCarriageAvailableListResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof Postingv1GetCarriageAvailableListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the Postingv1GetCarriageAvailableListResponse interface. + */ +export declare function instanceOfPostingv1GetCarriageAvailableListResponse(value: object): value is Postingv1GetCarriageAvailableListResponse; +export declare function Postingv1GetCarriageAvailableListResponseFromJSON(json: any): Postingv1GetCarriageAvailableListResponse; +export declare function Postingv1GetCarriageAvailableListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv1GetCarriageAvailableListResponse; +export declare function Postingv1GetCarriageAvailableListResponseToJSON(value?: Postingv1GetCarriageAvailableListResponse | null): any; diff --git a/dist/models/Postingv1GetCarriageAvailableListResponse.js b/dist/models/Postingv1GetCarriageAvailableListResponse.js new file mode 100644 index 0000000..25573c2 --- /dev/null +++ b/dist/models/Postingv1GetCarriageAvailableListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv1GetCarriageAvailableListResponse = instanceOfPostingv1GetCarriageAvailableListResponse; +exports.Postingv1GetCarriageAvailableListResponseFromJSON = Postingv1GetCarriageAvailableListResponseFromJSON; +exports.Postingv1GetCarriageAvailableListResponseFromJSONTyped = Postingv1GetCarriageAvailableListResponseFromJSONTyped; +exports.Postingv1GetCarriageAvailableListResponseToJSON = Postingv1GetCarriageAvailableListResponseToJSON; +const GetCarriageAvailableListResponseResult_1 = require("./GetCarriageAvailableListResponseResult"); +/** + * Check if a given object implements the Postingv1GetCarriageAvailableListResponse interface. + */ +function instanceOfPostingv1GetCarriageAvailableListResponse(value) { + return true; +} +function Postingv1GetCarriageAvailableListResponseFromJSON(json) { + return Postingv1GetCarriageAvailableListResponseFromJSONTyped(json, false); +} +function Postingv1GetCarriageAvailableListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(GetCarriageAvailableListResponseResult_1.GetCarriageAvailableListResponseResultFromJSON)), + }; +} +function Postingv1GetCarriageAvailableListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(GetCarriageAvailableListResponseResult_1.GetCarriageAvailableListResponseResultToJSON)), + }; +} diff --git a/dist/models/Postingv3FbsPostingWithParams.d.ts b/dist/models/Postingv3FbsPostingWithParams.d.ts new file mode 100644 index 0000000..984cd29 --- /dev/null +++ b/dist/models/Postingv3FbsPostingWithParams.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface Postingv3FbsPostingWithParams + */ +export interface Postingv3FbsPostingWithParams { + /** + * Добавить в ответ данные аналитики. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + analytics_data?: boolean; + /** + * Добавить в ответ штрихкоды отправления. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + barcodes?: boolean; + /** + * Добавить в ответ финансовые данные. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + financial_data?: boolean; + /** + * Добавить в ответ юридическую информацию. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + legal_info?: boolean; + /** + * Выполнить транслитерацию возвращаемых значений. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParams + */ + translit?: boolean; +} +/** + * Check if a given object implements the Postingv3FbsPostingWithParams interface. + */ +export declare function instanceOfPostingv3FbsPostingWithParams(value: object): value is Postingv3FbsPostingWithParams; +export declare function Postingv3FbsPostingWithParamsFromJSON(json: any): Postingv3FbsPostingWithParams; +export declare function Postingv3FbsPostingWithParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3FbsPostingWithParams; +export declare function Postingv3FbsPostingWithParamsToJSON(value?: Postingv3FbsPostingWithParams | null): any; diff --git a/dist/models/Postingv3FbsPostingWithParams.js b/dist/models/Postingv3FbsPostingWithParams.js new file mode 100644 index 0000000..a406238 --- /dev/null +++ b/dist/models/Postingv3FbsPostingWithParams.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3FbsPostingWithParams = instanceOfPostingv3FbsPostingWithParams; +exports.Postingv3FbsPostingWithParamsFromJSON = Postingv3FbsPostingWithParamsFromJSON; +exports.Postingv3FbsPostingWithParamsFromJSONTyped = Postingv3FbsPostingWithParamsFromJSONTyped; +exports.Postingv3FbsPostingWithParamsToJSON = Postingv3FbsPostingWithParamsToJSON; +/** + * Check if a given object implements the Postingv3FbsPostingWithParams interface. + */ +function instanceOfPostingv3FbsPostingWithParams(value) { + return true; +} +function Postingv3FbsPostingWithParamsFromJSON(json) { + return Postingv3FbsPostingWithParamsFromJSONTyped(json, false); +} +function Postingv3FbsPostingWithParamsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + 'translit': json['translit'] == null ? undefined : json['translit'], + }; +} +function Postingv3FbsPostingWithParamsToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'barcodes': value['barcodes'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + 'translit': value['translit'], + }; +} diff --git a/dist/models/Postingv3FbsPostingWithParamsExamplars.d.ts b/dist/models/Postingv3FbsPostingWithParamsExamplars.d.ts new file mode 100644 index 0000000..460dfde --- /dev/null +++ b/dist/models/Postingv3FbsPostingWithParamsExamplars.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface Postingv3FbsPostingWithParamsExamplars + */ +export interface Postingv3FbsPostingWithParamsExamplars { + /** + * Добавить в ответ данные аналитики. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + analytics_data?: boolean; + /** + * Добавить в ответ штрихкоды отправления. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + barcodes?: boolean; + /** + * Добавить в ответ финансовые данные. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + financial_data?: boolean; + /** + * Добавить в ответ юридическую информацию. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + legal_info?: boolean; + /** + * Добавить в ответ данные о продуктах и их экземплярах. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + product_exemplars?: boolean; + /** + * Добавить в ответ номера связанных отправлений. Связанные отправления — те, на которое было разделено родительское отправление при сборке. + * + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + related_postings?: boolean; + /** + * Выполнить транслитерацию возвращаемых значений. + * @type {boolean} + * @memberof Postingv3FbsPostingWithParamsExamplars + */ + translit?: boolean; +} +/** + * Check if a given object implements the Postingv3FbsPostingWithParamsExamplars interface. + */ +export declare function instanceOfPostingv3FbsPostingWithParamsExamplars(value: object): value is Postingv3FbsPostingWithParamsExamplars; +export declare function Postingv3FbsPostingWithParamsExamplarsFromJSON(json: any): Postingv3FbsPostingWithParamsExamplars; +export declare function Postingv3FbsPostingWithParamsExamplarsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3FbsPostingWithParamsExamplars; +export declare function Postingv3FbsPostingWithParamsExamplarsToJSON(value?: Postingv3FbsPostingWithParamsExamplars | null): any; diff --git a/dist/models/Postingv3FbsPostingWithParamsExamplars.js b/dist/models/Postingv3FbsPostingWithParamsExamplars.js new file mode 100644 index 0000000..be6ec9f --- /dev/null +++ b/dist/models/Postingv3FbsPostingWithParamsExamplars.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3FbsPostingWithParamsExamplars = instanceOfPostingv3FbsPostingWithParamsExamplars; +exports.Postingv3FbsPostingWithParamsExamplarsFromJSON = Postingv3FbsPostingWithParamsExamplarsFromJSON; +exports.Postingv3FbsPostingWithParamsExamplarsFromJSONTyped = Postingv3FbsPostingWithParamsExamplarsFromJSONTyped; +exports.Postingv3FbsPostingWithParamsExamplarsToJSON = Postingv3FbsPostingWithParamsExamplarsToJSON; +/** + * Check if a given object implements the Postingv3FbsPostingWithParamsExamplars interface. + */ +function instanceOfPostingv3FbsPostingWithParamsExamplars(value) { + return true; +} +function Postingv3FbsPostingWithParamsExamplarsFromJSON(json) { + return Postingv3FbsPostingWithParamsExamplarsFromJSONTyped(json, false); +} +function Postingv3FbsPostingWithParamsExamplarsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_data': json['analytics_data'] == null ? undefined : json['analytics_data'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'financial_data': json['financial_data'] == null ? undefined : json['financial_data'], + 'legal_info': json['legal_info'] == null ? undefined : json['legal_info'], + 'product_exemplars': json['product_exemplars'] == null ? undefined : json['product_exemplars'], + 'related_postings': json['related_postings'] == null ? undefined : json['related_postings'], + 'translit': json['translit'] == null ? undefined : json['translit'], + }; +} +function Postingv3FbsPostingWithParamsExamplarsToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_data': value['analytics_data'], + 'barcodes': value['barcodes'], + 'financial_data': value['financial_data'], + 'legal_info': value['legal_info'], + 'product_exemplars': value['product_exemplars'], + 'related_postings': value['related_postings'], + 'translit': value['translit'], + }; +} diff --git a/dist/models/Postingv3GetFbsPostingListRequest.d.ts b/dist/models/Postingv3GetFbsPostingListRequest.d.ts new file mode 100644 index 0000000..0010589 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingListRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3GetFbsPostingListRequestFilter } from './Postingv3GetFbsPostingListRequestFilter'; +import type { Postingv3FbsPostingWithParams } from './Postingv3FbsPostingWithParams'; +/** + * + * @export + * @interface Postingv3GetFbsPostingListRequest + */ +export interface Postingv3GetFbsPostingListRequest { + /** + * Направление сортировки: + * - `asc` — по возрастанию, + * - `desc` — по убыванию. + * + * @type {string} + * @memberof Postingv3GetFbsPostingListRequest + */ + dir?: string; + /** + * + * @type {Postingv3GetFbsPostingListRequestFilter} + * @memberof Postingv3GetFbsPostingListRequest + */ + filter: Postingv3GetFbsPostingListRequestFilter; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof Postingv3GetFbsPostingListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof Postingv3GetFbsPostingListRequest + */ + offset: number; + /** + * + * @type {Postingv3FbsPostingWithParams} + * @memberof Postingv3GetFbsPostingListRequest + */ + _with?: Postingv3FbsPostingWithParams; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingListRequest interface. + */ +export declare function instanceOfPostingv3GetFbsPostingListRequest(value: object): value is Postingv3GetFbsPostingListRequest; +export declare function Postingv3GetFbsPostingListRequestFromJSON(json: any): Postingv3GetFbsPostingListRequest; +export declare function Postingv3GetFbsPostingListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingListRequest; +export declare function Postingv3GetFbsPostingListRequestToJSON(value?: Postingv3GetFbsPostingListRequest | null): any; diff --git a/dist/models/Postingv3GetFbsPostingListRequest.js b/dist/models/Postingv3GetFbsPostingListRequest.js new file mode 100644 index 0000000..9d28ec3 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingListRequest.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3GetFbsPostingListRequest = instanceOfPostingv3GetFbsPostingListRequest; +exports.Postingv3GetFbsPostingListRequestFromJSON = Postingv3GetFbsPostingListRequestFromJSON; +exports.Postingv3GetFbsPostingListRequestFromJSONTyped = Postingv3GetFbsPostingListRequestFromJSONTyped; +exports.Postingv3GetFbsPostingListRequestToJSON = Postingv3GetFbsPostingListRequestToJSON; +const Postingv3GetFbsPostingListRequestFilter_1 = require("./Postingv3GetFbsPostingListRequestFilter"); +const Postingv3FbsPostingWithParams_1 = require("./Postingv3FbsPostingWithParams"); +/** + * Check if a given object implements the Postingv3GetFbsPostingListRequest interface. + */ +function instanceOfPostingv3GetFbsPostingListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('offset' in value) || value['offset'] === undefined) + return false; + return true; +} +function Postingv3GetFbsPostingListRequestFromJSON(json) { + return Postingv3GetFbsPostingListRequestFromJSONTyped(json, false); +} +function Postingv3GetFbsPostingListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dir': json['dir'] == null ? undefined : json['dir'], + 'filter': (0, Postingv3GetFbsPostingListRequestFilter_1.Postingv3GetFbsPostingListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'], + '_with': json['with'] == null ? undefined : (0, Postingv3FbsPostingWithParams_1.Postingv3FbsPostingWithParamsFromJSON)(json['with']), + }; +} +function Postingv3GetFbsPostingListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'dir': value['dir'], + 'filter': (0, Postingv3GetFbsPostingListRequestFilter_1.Postingv3GetFbsPostingListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'with': (0, Postingv3FbsPostingWithParams_1.Postingv3FbsPostingWithParamsToJSON)(value['_with']), + }; +} diff --git a/dist/models/Postingv3GetFbsPostingListRequestFilter.d.ts b/dist/models/Postingv3GetFbsPostingListRequestFilter.d.ts new file mode 100644 index 0000000..fc55d75 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingListRequestFilter.d.ts @@ -0,0 +1,131 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostinglistV3status } from './PostinglistV3status'; +/** + * Фильтр. + * @export + * @interface Postingv3GetFbsPostingListRequestFilter + */ +export interface Postingv3GetFbsPostingListRequestFilter { + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + delivery_method_id?: Array; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {Array} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + integration_type_flow?: Array; + /** + * `true`, если товар прослеживаемый. + * + * @type {boolean} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + is_blr_traceable?: boolean; + /** + * Укажите `true`, чтобы получить только отправления квантов. + * + * По умолчанию — `false`, в ответе придут все отправления. + * + * @type {boolean} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + is_quantum?: boolean; + /** + * Идентификатор заказа. + * @type {number} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + order_id?: number; + /** + * Идентификатор службы доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + provider_id?: Array; + /** + * Дата начала периода, за который нужно получить список отправлений. + * + * Формат UTC: ГГГГ-ММ-ДДTЧЧ:ММ:ССZ. + * + * Пример: 2019-08-24T14:15:22Z. + * + * @type {string} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + since: string; + /** + * Дата конца периода, за который нужно получить список отправлений. + * + * Формат UTC: ГГГГ-ММ-ДДTЧЧ:ММ:ССZ. + * + * Пример: 2019-08-24T14:15:22Z. + * + * @type {string} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + to: string; + /** + * Статус отправления: + * - `awaiting_registration` — ожидает регистрации, + * - `acceptance_in_progress` — идёт приёмка, + * - `awaiting_approve` — ожидает подтверждения, + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_deliver` — ожидает отгрузки, + * - `arbitration` — арбитраж, + * - `client_arbitration` — клиентский арбитраж доставки, + * - `delivering` — доставляется, + * - `driver_pickup` — у водителя, + * - `delivered` — доставлено, + * - `cancelled` — отменено, + * - `not_accepted` — не принят на сортировочном центре, + * - `sent_by_seller` – отправлено продавцом. + * + * @type {string} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + status?: string; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + warehouse_id?: Array; + /** + * + * @type {PostinglistV3status} + * @memberof Postingv3GetFbsPostingListRequestFilter + */ + last_changed_status_date?: PostinglistV3status; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingListRequestFilter interface. + */ +export declare function instanceOfPostingv3GetFbsPostingListRequestFilter(value: object): value is Postingv3GetFbsPostingListRequestFilter; +export declare function Postingv3GetFbsPostingListRequestFilterFromJSON(json: any): Postingv3GetFbsPostingListRequestFilter; +export declare function Postingv3GetFbsPostingListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingListRequestFilter; +export declare function Postingv3GetFbsPostingListRequestFilterToJSON(value?: Postingv3GetFbsPostingListRequestFilter | null): any; diff --git a/dist/models/Postingv3GetFbsPostingListRequestFilter.js b/dist/models/Postingv3GetFbsPostingListRequestFilter.js new file mode 100644 index 0000000..5df8b47 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingListRequestFilter.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3GetFbsPostingListRequestFilter = instanceOfPostingv3GetFbsPostingListRequestFilter; +exports.Postingv3GetFbsPostingListRequestFilterFromJSON = Postingv3GetFbsPostingListRequestFilterFromJSON; +exports.Postingv3GetFbsPostingListRequestFilterFromJSONTyped = Postingv3GetFbsPostingListRequestFilterFromJSONTyped; +exports.Postingv3GetFbsPostingListRequestFilterToJSON = Postingv3GetFbsPostingListRequestFilterToJSON; +const PostinglistV3status_1 = require("./PostinglistV3status"); +/** + * Check if a given object implements the Postingv3GetFbsPostingListRequestFilter interface. + */ +function instanceOfPostingv3GetFbsPostingListRequestFilter(value) { + if (!('since' in value) || value['since'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function Postingv3GetFbsPostingListRequestFilterFromJSON(json) { + return Postingv3GetFbsPostingListRequestFilterFromJSONTyped(json, false); +} +function Postingv3GetFbsPostingListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_quantum': json['is_quantum'] == null ? undefined : json['is_quantum'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'since': json['since'], + 'to': json['to'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'last_changed_status_date': json['last_changed_status_date'] == null ? undefined : (0, PostinglistV3status_1.PostinglistV3statusFromJSON)(json['last_changed_status_date']), + }; +} +function Postingv3GetFbsPostingListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'integration_type_flow': value['integration_type_flow'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_quantum': value['is_quantum'], + 'order_id': value['order_id'], + 'provider_id': value['provider_id'], + 'since': value['since'], + 'to': value['to'], + 'status': value['status'], + 'warehouse_id': value['warehouse_id'], + 'last_changed_status_date': (0, PostinglistV3status_1.PostinglistV3statusToJSON)(value['last_changed_status_date']), + }; +} diff --git a/dist/models/Postingv3GetFbsPostingRequest.d.ts b/dist/models/Postingv3GetFbsPostingRequest.d.ts new file mode 100644 index 0000000..bf208a3 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3FbsPostingWithParamsExamplars } from './Postingv3FbsPostingWithParamsExamplars'; +/** + * + * @export + * @interface Postingv3GetFbsPostingRequest + */ +export interface Postingv3GetFbsPostingRequest { + /** + * Идентификатор отправления. + * @type {string} + * @memberof Postingv3GetFbsPostingRequest + */ + posting_number: string; + /** + * + * @type {Postingv3FbsPostingWithParamsExamplars} + * @memberof Postingv3GetFbsPostingRequest + */ + _with?: Postingv3FbsPostingWithParamsExamplars; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingRequest interface. + */ +export declare function instanceOfPostingv3GetFbsPostingRequest(value: object): value is Postingv3GetFbsPostingRequest; +export declare function Postingv3GetFbsPostingRequestFromJSON(json: any): Postingv3GetFbsPostingRequest; +export declare function Postingv3GetFbsPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingRequest; +export declare function Postingv3GetFbsPostingRequestToJSON(value?: Postingv3GetFbsPostingRequest | null): any; diff --git a/dist/models/Postingv3GetFbsPostingRequest.js b/dist/models/Postingv3GetFbsPostingRequest.js new file mode 100644 index 0000000..f21fd18 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingRequest.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3GetFbsPostingRequest = instanceOfPostingv3GetFbsPostingRequest; +exports.Postingv3GetFbsPostingRequestFromJSON = Postingv3GetFbsPostingRequestFromJSON; +exports.Postingv3GetFbsPostingRequestFromJSONTyped = Postingv3GetFbsPostingRequestFromJSONTyped; +exports.Postingv3GetFbsPostingRequestToJSON = Postingv3GetFbsPostingRequestToJSON; +const Postingv3FbsPostingWithParamsExamplars_1 = require("./Postingv3FbsPostingWithParamsExamplars"); +/** + * Check if a given object implements the Postingv3GetFbsPostingRequest interface. + */ +function instanceOfPostingv3GetFbsPostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function Postingv3GetFbsPostingRequestFromJSON(json) { + return Postingv3GetFbsPostingRequestFromJSONTyped(json, false); +} +function Postingv3GetFbsPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + '_with': json['with'] == null ? undefined : (0, Postingv3FbsPostingWithParamsExamplars_1.Postingv3FbsPostingWithParamsExamplarsFromJSON)(json['with']), + }; +} +function Postingv3GetFbsPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'with': (0, Postingv3FbsPostingWithParamsExamplars_1.Postingv3FbsPostingWithParamsExamplarsToJSON)(value['_with']), + }; +} diff --git a/dist/models/Postingv3GetFbsPostingUnfulfilledListRequest.d.ts b/dist/models/Postingv3GetFbsPostingUnfulfilledListRequest.d.ts new file mode 100644 index 0000000..1f5d4cf --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingUnfulfilledListRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3GetFbsPostingUnfulfilledListRequestFilter } from './Postingv3GetFbsPostingUnfulfilledListRequestFilter'; +import type { Postingv3FbsPostingWithParams } from './Postingv3FbsPostingWithParams'; +/** + * + * @export + * @interface Postingv3GetFbsPostingUnfulfilledListRequest + */ +export interface Postingv3GetFbsPostingUnfulfilledListRequest { + /** + * Направление сортировки: + * - `asc` — по возрастанию, + * - `desc` — по убыванию. + * + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + dir?: string; + /** + * + * @type {Postingv3GetFbsPostingUnfulfilledListRequestFilter} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + filter: Postingv3GetFbsPostingUnfulfilledListRequestFilter; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + offset: number; + /** + * + * @type {Postingv3FbsPostingWithParams} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequest + */ + _with?: Postingv3FbsPostingWithParams; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListRequest interface. + */ +export declare function instanceOfPostingv3GetFbsPostingUnfulfilledListRequest(value: object): value is Postingv3GetFbsPostingUnfulfilledListRequest; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFromJSON(json: any): Postingv3GetFbsPostingUnfulfilledListRequest; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingUnfulfilledListRequest; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestToJSON(value?: Postingv3GetFbsPostingUnfulfilledListRequest | null): any; diff --git a/dist/models/Postingv3GetFbsPostingUnfulfilledListRequest.js b/dist/models/Postingv3GetFbsPostingUnfulfilledListRequest.js new file mode 100644 index 0000000..6893506 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingUnfulfilledListRequest.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3GetFbsPostingUnfulfilledListRequest = instanceOfPostingv3GetFbsPostingUnfulfilledListRequest; +exports.Postingv3GetFbsPostingUnfulfilledListRequestFromJSON = Postingv3GetFbsPostingUnfulfilledListRequestFromJSON; +exports.Postingv3GetFbsPostingUnfulfilledListRequestFromJSONTyped = Postingv3GetFbsPostingUnfulfilledListRequestFromJSONTyped; +exports.Postingv3GetFbsPostingUnfulfilledListRequestToJSON = Postingv3GetFbsPostingUnfulfilledListRequestToJSON; +const Postingv3GetFbsPostingUnfulfilledListRequestFilter_1 = require("./Postingv3GetFbsPostingUnfulfilledListRequestFilter"); +const Postingv3FbsPostingWithParams_1 = require("./Postingv3FbsPostingWithParams"); +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListRequest interface. + */ +function instanceOfPostingv3GetFbsPostingUnfulfilledListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('offset' in value) || value['offset'] === undefined) + return false; + return true; +} +function Postingv3GetFbsPostingUnfulfilledListRequestFromJSON(json) { + return Postingv3GetFbsPostingUnfulfilledListRequestFromJSONTyped(json, false); +} +function Postingv3GetFbsPostingUnfulfilledListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dir': json['dir'] == null ? undefined : json['dir'], + 'filter': (0, Postingv3GetFbsPostingUnfulfilledListRequestFilter_1.Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'], + '_with': json['with'] == null ? undefined : (0, Postingv3FbsPostingWithParams_1.Postingv3FbsPostingWithParamsFromJSON)(json['with']), + }; +} +function Postingv3GetFbsPostingUnfulfilledListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'dir': value['dir'], + 'filter': (0, Postingv3GetFbsPostingUnfulfilledListRequestFilter_1.Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'with': (0, Postingv3FbsPostingWithParams_1.Postingv3FbsPostingWithParamsToJSON)(value['_with']), + }; +} diff --git a/dist/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.d.ts b/dist/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.d.ts new file mode 100644 index 0000000..b7045de --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.d.ts @@ -0,0 +1,116 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3TimeRange } from './V3TimeRange'; +/** + * Фильтр запроса. + * + * Используйте фильтр либо по времени сборки — `cutoff`, либо по дате передачи отправления в доставку — `delivering_date`. + * Если использовать их вместе, в ответе вернётся ошибка. + * + * Чтобы использовать фильтр по времени сборки, заполните поля `cutoff_from` и `cutoff_to`. + * + * Чтобы использовать фильтр по дате передачи отправления в доставку, заполните поля `delivering_date_from` и `delivering_date_to`. + * + * @export + * @interface Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ +export interface Postingv3GetFbsPostingUnfulfilledListRequestFilter { + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: YYYY-MM-DDThh:mm:ss.mcsZ. + * Пример: 2020-03-18T07:34:50.359Z. + * + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + cutoff_from: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: YYYY-MM-DDThh:mm:ss.mcsZ. + * Пример: 2020-03-18T07:34:50.359Z. + * + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + cutoff_to: string; + /** + * Минимальная дата передачи отправления в доставку. + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + delivering_date_from?: string; + /** + * Максимальная дата передачи отправления в доставку. + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + delivering_date_to?: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + delivery_method_id?: Array; + /** + * Укажите `true`, чтобы получить только отправления квантов. + * + * По умолчанию — `false`, в ответе придут все отправления. + * + * @type {boolean} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + is_quantum?: boolean; + /** + * + * @type {V3TimeRange} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + last_changed_status_date?: V3TimeRange; + /** + * Идентификатор службы доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + provider_id?: Array; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка, + * - `awaiting_approve` — ожидает подтверждения, + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_registration` — ожидает регистрации, + * - `awaiting_deliver` — ожидает отгрузки, + * - `arbitration` — арбитраж, + * - `client_arbitration` — клиентский арбитраж доставки, + * - `delivering` — доставляется, + * - `driver_pickup` — у водителя, + * - `not_accepted` — не принят на сортировочном центре. + * + * @type {string} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + status?: string; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof Postingv3GetFbsPostingUnfulfilledListRequestFilter + */ + warehouse_id?: Array; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListRequestFilter interface. + */ +export declare function instanceOfPostingv3GetFbsPostingUnfulfilledListRequestFilter(value: object): value is Postingv3GetFbsPostingUnfulfilledListRequestFilter; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON(json: any): Postingv3GetFbsPostingUnfulfilledListRequestFilter; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingUnfulfilledListRequestFilter; +export declare function Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON(value?: Postingv3GetFbsPostingUnfulfilledListRequestFilter | null): any; diff --git a/dist/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.js b/dist/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.js new file mode 100644 index 0000000..13fb4b6 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingUnfulfilledListRequestFilter.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3GetFbsPostingUnfulfilledListRequestFilter = instanceOfPostingv3GetFbsPostingUnfulfilledListRequestFilter; +exports.Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON = Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON; +exports.Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSONTyped = Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSONTyped; +exports.Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON = Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON; +const V3TimeRange_1 = require("./V3TimeRange"); +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListRequestFilter interface. + */ +function instanceOfPostingv3GetFbsPostingUnfulfilledListRequestFilter(value) { + if (!('cutoff_from' in value) || value['cutoff_from'] === undefined) + return false; + if (!('cutoff_to' in value) || value['cutoff_to'] === undefined) + return false; + return true; +} +function Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSON(json) { + return Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSONTyped(json, false); +} +function Postingv3GetFbsPostingUnfulfilledListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cutoff_from': json['cutoff_from'], + 'cutoff_to': json['cutoff_to'], + 'delivering_date_from': json['delivering_date_from'] == null ? undefined : json['delivering_date_from'], + 'delivering_date_to': json['delivering_date_to'] == null ? undefined : json['delivering_date_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'is_quantum': json['is_quantum'] == null ? undefined : json['is_quantum'], + 'last_changed_status_date': json['last_changed_status_date'] == null ? undefined : (0, V3TimeRange_1.V3TimeRangeFromJSON)(json['last_changed_status_date']), + 'provider_id': json['provider_id'] == null ? undefined : json['provider_id'], + 'status': json['status'] == null ? undefined : json['status'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function Postingv3GetFbsPostingUnfulfilledListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivering_date_from': value['delivering_date_from'], + 'delivering_date_to': value['delivering_date_to'], + 'delivery_method_id': value['delivery_method_id'], + 'is_quantum': value['is_quantum'], + 'last_changed_status_date': (0, V3TimeRange_1.V3TimeRangeToJSON)(value['last_changed_status_date']), + 'provider_id': value['provider_id'], + 'status': value['status'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/Postingv3GetFbsPostingUnfulfilledListResponse.d.ts b/dist/models/Postingv3GetFbsPostingUnfulfilledListResponse.d.ts new file mode 100644 index 0000000..75bc361 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingUnfulfilledListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3GetFbsPostingUnfulfilledListResponseResult } from './Postingv3GetFbsPostingUnfulfilledListResponseResult'; +/** + * + * @export + * @interface Postingv3GetFbsPostingUnfulfilledListResponse + */ +export interface Postingv3GetFbsPostingUnfulfilledListResponse { + /** + * + * @type {Postingv3GetFbsPostingUnfulfilledListResponseResult} + * @memberof Postingv3GetFbsPostingUnfulfilledListResponse + */ + result?: Postingv3GetFbsPostingUnfulfilledListResponseResult; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListResponse interface. + */ +export declare function instanceOfPostingv3GetFbsPostingUnfulfilledListResponse(value: object): value is Postingv3GetFbsPostingUnfulfilledListResponse; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseFromJSON(json: any): Postingv3GetFbsPostingUnfulfilledListResponse; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingUnfulfilledListResponse; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseToJSON(value?: Postingv3GetFbsPostingUnfulfilledListResponse | null): any; diff --git a/dist/models/Postingv3GetFbsPostingUnfulfilledListResponse.js b/dist/models/Postingv3GetFbsPostingUnfulfilledListResponse.js new file mode 100644 index 0000000..4b215e9 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingUnfulfilledListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3GetFbsPostingUnfulfilledListResponse = instanceOfPostingv3GetFbsPostingUnfulfilledListResponse; +exports.Postingv3GetFbsPostingUnfulfilledListResponseFromJSON = Postingv3GetFbsPostingUnfulfilledListResponseFromJSON; +exports.Postingv3GetFbsPostingUnfulfilledListResponseFromJSONTyped = Postingv3GetFbsPostingUnfulfilledListResponseFromJSONTyped; +exports.Postingv3GetFbsPostingUnfulfilledListResponseToJSON = Postingv3GetFbsPostingUnfulfilledListResponseToJSON; +const Postingv3GetFbsPostingUnfulfilledListResponseResult_1 = require("./Postingv3GetFbsPostingUnfulfilledListResponseResult"); +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListResponse interface. + */ +function instanceOfPostingv3GetFbsPostingUnfulfilledListResponse(value) { + return true; +} +function Postingv3GetFbsPostingUnfulfilledListResponseFromJSON(json) { + return Postingv3GetFbsPostingUnfulfilledListResponseFromJSONTyped(json, false); +} +function Postingv3GetFbsPostingUnfulfilledListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, Postingv3GetFbsPostingUnfulfilledListResponseResult_1.Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON)(json['result']), + }; +} +function Postingv3GetFbsPostingUnfulfilledListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, Postingv3GetFbsPostingUnfulfilledListResponseResult_1.Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.d.ts b/dist/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.d.ts new file mode 100644 index 0000000..8e03d50 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPosting } from './V3FbsPosting'; +/** + * Результат запроса. + * @export + * @interface Postingv3GetFbsPostingUnfulfilledListResponseResult + */ +export interface Postingv3GetFbsPostingUnfulfilledListResponseResult { + /** + * Счётчик элементов в ответе. + * @type {number} + * @memberof Postingv3GetFbsPostingUnfulfilledListResponseResult + */ + count?: number; + /** + * Список отправлений и подробная информация по каждому. + * @type {Array} + * @memberof Postingv3GetFbsPostingUnfulfilledListResponseResult + */ + postings?: Array; +} +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListResponseResult interface. + */ +export declare function instanceOfPostingv3GetFbsPostingUnfulfilledListResponseResult(value: object): value is Postingv3GetFbsPostingUnfulfilledListResponseResult; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON(json: any): Postingv3GetFbsPostingUnfulfilledListResponseResult; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3GetFbsPostingUnfulfilledListResponseResult; +export declare function Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON(value?: Postingv3GetFbsPostingUnfulfilledListResponseResult | null): any; diff --git a/dist/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.js b/dist/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.js new file mode 100644 index 0000000..8f844a7 --- /dev/null +++ b/dist/models/Postingv3GetFbsPostingUnfulfilledListResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3GetFbsPostingUnfulfilledListResponseResult = instanceOfPostingv3GetFbsPostingUnfulfilledListResponseResult; +exports.Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON = Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON; +exports.Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSONTyped = Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSONTyped; +exports.Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON = Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON; +const V3FbsPosting_1 = require("./V3FbsPosting"); +/** + * Check if a given object implements the Postingv3GetFbsPostingUnfulfilledListResponseResult interface. + */ +function instanceOfPostingv3GetFbsPostingUnfulfilledListResponseResult(value) { + return true; +} +function Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSON(json) { + return Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSONTyped(json, false); +} +function Postingv3GetFbsPostingUnfulfilledListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V3FbsPosting_1.V3FbsPostingFromJSON)), + }; +} +function Postingv3GetFbsPostingUnfulfilledListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V3FbsPosting_1.V3FbsPostingToJSON)), + }; +} diff --git a/dist/models/Postingv3PostingMultiBoxQtySetV3Request.d.ts b/dist/models/Postingv3PostingMultiBoxQtySetV3Request.d.ts new file mode 100644 index 0000000..9c5e7c9 --- /dev/null +++ b/dist/models/Postingv3PostingMultiBoxQtySetV3Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Postingv3PostingMultiBoxQtySetV3Request + */ +export interface Postingv3PostingMultiBoxQtySetV3Request { + /** + * Идентификатор многокоробочного отправления. + * @type {string} + * @memberof Postingv3PostingMultiBoxQtySetV3Request + */ + posting_number: string; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof Postingv3PostingMultiBoxQtySetV3Request + */ + multi_box_qty: number; +} +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3Request interface. + */ +export declare function instanceOfPostingv3PostingMultiBoxQtySetV3Request(value: object): value is Postingv3PostingMultiBoxQtySetV3Request; +export declare function Postingv3PostingMultiBoxQtySetV3RequestFromJSON(json: any): Postingv3PostingMultiBoxQtySetV3Request; +export declare function Postingv3PostingMultiBoxQtySetV3RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3PostingMultiBoxQtySetV3Request; +export declare function Postingv3PostingMultiBoxQtySetV3RequestToJSON(value?: Postingv3PostingMultiBoxQtySetV3Request | null): any; diff --git a/dist/models/Postingv3PostingMultiBoxQtySetV3Request.js b/dist/models/Postingv3PostingMultiBoxQtySetV3Request.js new file mode 100644 index 0000000..9b6c13c --- /dev/null +++ b/dist/models/Postingv3PostingMultiBoxQtySetV3Request.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3PostingMultiBoxQtySetV3Request = instanceOfPostingv3PostingMultiBoxQtySetV3Request; +exports.Postingv3PostingMultiBoxQtySetV3RequestFromJSON = Postingv3PostingMultiBoxQtySetV3RequestFromJSON; +exports.Postingv3PostingMultiBoxQtySetV3RequestFromJSONTyped = Postingv3PostingMultiBoxQtySetV3RequestFromJSONTyped; +exports.Postingv3PostingMultiBoxQtySetV3RequestToJSON = Postingv3PostingMultiBoxQtySetV3RequestToJSON; +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3Request interface. + */ +function instanceOfPostingv3PostingMultiBoxQtySetV3Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('multi_box_qty' in value) || value['multi_box_qty'] === undefined) + return false; + return true; +} +function Postingv3PostingMultiBoxQtySetV3RequestFromJSON(json) { + return Postingv3PostingMultiBoxQtySetV3RequestFromJSONTyped(json, false); +} +function Postingv3PostingMultiBoxQtySetV3RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'multi_box_qty': json['multi_box_qty'], + }; +} +function Postingv3PostingMultiBoxQtySetV3RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'multi_box_qty': value['multi_box_qty'], + }; +} diff --git a/dist/models/Postingv3PostingMultiBoxQtySetV3Response.d.ts b/dist/models/Postingv3PostingMultiBoxQtySetV3Response.d.ts new file mode 100644 index 0000000..d38d55b --- /dev/null +++ b/dist/models/Postingv3PostingMultiBoxQtySetV3Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Postingv3PostingMultiBoxQtySetV3ResponseResult } from './Postingv3PostingMultiBoxQtySetV3ResponseResult'; +/** + * + * @export + * @interface Postingv3PostingMultiBoxQtySetV3Response + */ +export interface Postingv3PostingMultiBoxQtySetV3Response { + /** + * + * @type {Postingv3PostingMultiBoxQtySetV3ResponseResult} + * @memberof Postingv3PostingMultiBoxQtySetV3Response + */ + result?: Postingv3PostingMultiBoxQtySetV3ResponseResult; +} +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3Response interface. + */ +export declare function instanceOfPostingv3PostingMultiBoxQtySetV3Response(value: object): value is Postingv3PostingMultiBoxQtySetV3Response; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseFromJSON(json: any): Postingv3PostingMultiBoxQtySetV3Response; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3PostingMultiBoxQtySetV3Response; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseToJSON(value?: Postingv3PostingMultiBoxQtySetV3Response | null): any; diff --git a/dist/models/Postingv3PostingMultiBoxQtySetV3Response.js b/dist/models/Postingv3PostingMultiBoxQtySetV3Response.js new file mode 100644 index 0000000..e440a72 --- /dev/null +++ b/dist/models/Postingv3PostingMultiBoxQtySetV3Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3PostingMultiBoxQtySetV3Response = instanceOfPostingv3PostingMultiBoxQtySetV3Response; +exports.Postingv3PostingMultiBoxQtySetV3ResponseFromJSON = Postingv3PostingMultiBoxQtySetV3ResponseFromJSON; +exports.Postingv3PostingMultiBoxQtySetV3ResponseFromJSONTyped = Postingv3PostingMultiBoxQtySetV3ResponseFromJSONTyped; +exports.Postingv3PostingMultiBoxQtySetV3ResponseToJSON = Postingv3PostingMultiBoxQtySetV3ResponseToJSON; +const Postingv3PostingMultiBoxQtySetV3ResponseResult_1 = require("./Postingv3PostingMultiBoxQtySetV3ResponseResult"); +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3Response interface. + */ +function instanceOfPostingv3PostingMultiBoxQtySetV3Response(value) { + return true; +} +function Postingv3PostingMultiBoxQtySetV3ResponseFromJSON(json) { + return Postingv3PostingMultiBoxQtySetV3ResponseFromJSONTyped(json, false); +} +function Postingv3PostingMultiBoxQtySetV3ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, Postingv3PostingMultiBoxQtySetV3ResponseResult_1.Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON)(json['result']), + }; +} +function Postingv3PostingMultiBoxQtySetV3ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, Postingv3PostingMultiBoxQtySetV3ResponseResult_1.Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.d.ts b/dist/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.d.ts new file mode 100644 index 0000000..134d1bc --- /dev/null +++ b/dist/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат передачи количества коробок. + * @export + * @interface Postingv3PostingMultiBoxQtySetV3ResponseResult + */ +export interface Postingv3PostingMultiBoxQtySetV3ResponseResult { + /** + * Возможные значения: + * - `true` — значение передано успешно. + * - `false` — при передаче произошла ошибка. Попробуйте снова. + * + * @type {boolean} + * @memberof Postingv3PostingMultiBoxQtySetV3ResponseResult + */ + result?: boolean; +} +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3ResponseResult interface. + */ +export declare function instanceOfPostingv3PostingMultiBoxQtySetV3ResponseResult(value: object): value is Postingv3PostingMultiBoxQtySetV3ResponseResult; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON(json: any): Postingv3PostingMultiBoxQtySetV3ResponseResult; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postingv3PostingMultiBoxQtySetV3ResponseResult; +export declare function Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON(value?: Postingv3PostingMultiBoxQtySetV3ResponseResult | null): any; diff --git a/dist/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.js b/dist/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.js new file mode 100644 index 0000000..8f72f6f --- /dev/null +++ b/dist/models/Postingv3PostingMultiBoxQtySetV3ResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPostingv3PostingMultiBoxQtySetV3ResponseResult = instanceOfPostingv3PostingMultiBoxQtySetV3ResponseResult; +exports.Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON = Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON; +exports.Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSONTyped = Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSONTyped; +exports.Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON = Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON; +/** + * Check if a given object implements the Postingv3PostingMultiBoxQtySetV3ResponseResult interface. + */ +function instanceOfPostingv3PostingMultiBoxQtySetV3ResponseResult(value) { + return true; +} +function Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSON(json) { + return Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSONTyped(json, false); +} +function Postingv3PostingMultiBoxQtySetV3ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function Postingv3PostingMultiBoxQtySetV3ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/PremiumScoresScore.d.ts b/dist/models/PremiumScoresScore.d.ts new file mode 100644 index 0000000..d6be633 --- /dev/null +++ b/dist/models/PremiumScoresScore.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PremiumScoresScore + */ +export interface PremiumScoresScore { + /** + * Дата, когда были начислены штрафные баллы. + * @type {string} + * @memberof PremiumScoresScore + */ + date?: string; + /** + * Значение рейтинга, за которое были начислены штрафные баллы. + * @type {number} + * @memberof PremiumScoresScore + */ + rating_value?: number; + /** + * Количество начисленных штрафных баллов. + * @type {number} + * @memberof PremiumScoresScore + */ + value?: number; +} +/** + * Check if a given object implements the PremiumScoresScore interface. + */ +export declare function instanceOfPremiumScoresScore(value: object): value is PremiumScoresScore; +export declare function PremiumScoresScoreFromJSON(json: any): PremiumScoresScore; +export declare function PremiumScoresScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): PremiumScoresScore; +export declare function PremiumScoresScoreToJSON(value?: PremiumScoresScore | null): any; diff --git a/dist/models/PremiumScoresScore.js b/dist/models/PremiumScoresScore.js new file mode 100644 index 0000000..5fb466b --- /dev/null +++ b/dist/models/PremiumScoresScore.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPremiumScoresScore = instanceOfPremiumScoresScore; +exports.PremiumScoresScoreFromJSON = PremiumScoresScoreFromJSON; +exports.PremiumScoresScoreFromJSONTyped = PremiumScoresScoreFromJSONTyped; +exports.PremiumScoresScoreToJSON = PremiumScoresScoreToJSON; +/** + * Check if a given object implements the PremiumScoresScore interface. + */ +function instanceOfPremiumScoresScore(value) { + return true; +} +function PremiumScoresScoreFromJSON(json) { + return PremiumScoresScoreFromJSONTyped(json, false); +} +function PremiumScoresScoreFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : json['date'], + 'rating_value': json['rating_value'] == null ? undefined : json['rating_value'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function PremiumScoresScoreToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'rating_value': value['rating_value'], + 'value': value['value'], + }; +} diff --git a/dist/models/PriceIndexesColorIndex.d.ts b/dist/models/PriceIndexesColorIndex.d.ts new file mode 100644 index 0000000..5225084 --- /dev/null +++ b/dist/models/PriceIndexesColorIndex.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Виды индекса цен: + * - `COLOR_INDEX_UNSPECIFIED` — не определён, + * - `COLOR_INDEX_WITHOUT_INDEX` — отсутствует, + * - `COLOR_INDEX_SUPER` — супервыгодный, + * - `COLOR_INDEX_GREEN` — выгодный, + * - `COLOR_INDEX_YELLOW` — умеренный, + * - `COLOR_INDEX_RED` — невыгодный. + * + * [Подробнее об индексе цен в Базе знаний продавца](https://seller-edu.ozon.ru/ceny-i-akcii/rabota-s-cenami/price-index) + * + * @export + */ +export declare const PriceIndexesColorIndex: { + readonly UNSPECIFIED: "COLOR_INDEX_UNSPECIFIED"; + readonly WITHOUT_INDEX: "COLOR_INDEX_WITHOUT_INDEX"; + readonly SUPER: "COLOR_INDEX_SUPER"; + readonly GREEN: "COLOR_INDEX_GREEN"; + readonly YELLOW: "COLOR_INDEX_YELLOW"; + readonly RED: "COLOR_INDEX_RED"; +}; +export type PriceIndexesColorIndex = typeof PriceIndexesColorIndex[keyof typeof PriceIndexesColorIndex]; +export declare function instanceOfPriceIndexesColorIndex(value: any): boolean; +export declare function PriceIndexesColorIndexFromJSON(json: any): PriceIndexesColorIndex; +export declare function PriceIndexesColorIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesColorIndex; +export declare function PriceIndexesColorIndexToJSON(value?: PriceIndexesColorIndex | null): any; diff --git a/dist/models/PriceIndexesColorIndex.js b/dist/models/PriceIndexesColorIndex.js new file mode 100644 index 0000000..2dff3aa --- /dev/null +++ b/dist/models/PriceIndexesColorIndex.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PriceIndexesColorIndex = void 0; +exports.instanceOfPriceIndexesColorIndex = instanceOfPriceIndexesColorIndex; +exports.PriceIndexesColorIndexFromJSON = PriceIndexesColorIndexFromJSON; +exports.PriceIndexesColorIndexFromJSONTyped = PriceIndexesColorIndexFromJSONTyped; +exports.PriceIndexesColorIndexToJSON = PriceIndexesColorIndexToJSON; +/** + * Виды индекса цен: + * - `COLOR_INDEX_UNSPECIFIED` — не определён, + * - `COLOR_INDEX_WITHOUT_INDEX` — отсутствует, + * - `COLOR_INDEX_SUPER` — супервыгодный, + * - `COLOR_INDEX_GREEN` — выгодный, + * - `COLOR_INDEX_YELLOW` — умеренный, + * - `COLOR_INDEX_RED` — невыгодный. + * + * [Подробнее об индексе цен в Базе знаний продавца](https://seller-edu.ozon.ru/ceny-i-akcii/rabota-s-cenami/price-index) + * + * @export + */ +exports.PriceIndexesColorIndex = { + UNSPECIFIED: 'COLOR_INDEX_UNSPECIFIED', + WITHOUT_INDEX: 'COLOR_INDEX_WITHOUT_INDEX', + SUPER: 'COLOR_INDEX_SUPER', + GREEN: 'COLOR_INDEX_GREEN', + YELLOW: 'COLOR_INDEX_YELLOW', + RED: 'COLOR_INDEX_RED' +}; +function instanceOfPriceIndexesColorIndex(value) { + for (const key in exports.PriceIndexesColorIndex) { + if (Object.prototype.hasOwnProperty.call(exports.PriceIndexesColorIndex, key)) { + if (exports.PriceIndexesColorIndex[key] === value) { + return true; + } + } + } + return false; +} +function PriceIndexesColorIndexFromJSON(json) { + return PriceIndexesColorIndexFromJSONTyped(json, false); +} +function PriceIndexesColorIndexFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function PriceIndexesColorIndexToJSON(value) { + return value; +} diff --git a/dist/models/PriceIndexesIndexDataExternal.d.ts b/dist/models/PriceIndexesIndexDataExternal.d.ts new file mode 100644 index 0000000..fba0d61 --- /dev/null +++ b/dist/models/PriceIndexesIndexDataExternal.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара у конкурентов на других площадках. + * @export + * @interface PriceIndexesIndexDataExternal + */ +export interface PriceIndexesIndexDataExternal { + /** + * Минимальная цена товара у конкурентов на другой площадке. + * @type {string} + * @memberof PriceIndexesIndexDataExternal + */ + minimal_price?: string; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexDataExternal + */ + minimal_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexDataExternal + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexDataExternal interface. + */ +export declare function instanceOfPriceIndexesIndexDataExternal(value: object): value is PriceIndexesIndexDataExternal; +export declare function PriceIndexesIndexDataExternalFromJSON(json: any): PriceIndexesIndexDataExternal; +export declare function PriceIndexesIndexDataExternalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexDataExternal; +export declare function PriceIndexesIndexDataExternalToJSON(value?: PriceIndexesIndexDataExternal | null): any; diff --git a/dist/models/PriceIndexesIndexDataExternal.js b/dist/models/PriceIndexesIndexDataExternal.js new file mode 100644 index 0000000..2aab1d5 --- /dev/null +++ b/dist/models/PriceIndexesIndexDataExternal.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPriceIndexesIndexDataExternal = instanceOfPriceIndexesIndexDataExternal; +exports.PriceIndexesIndexDataExternalFromJSON = PriceIndexesIndexDataExternalFromJSON; +exports.PriceIndexesIndexDataExternalFromJSONTyped = PriceIndexesIndexDataExternalFromJSONTyped; +exports.PriceIndexesIndexDataExternalToJSON = PriceIndexesIndexDataExternalToJSON; +/** + * Check if a given object implements the PriceIndexesIndexDataExternal interface. + */ +function instanceOfPriceIndexesIndexDataExternal(value) { + return true; +} +function PriceIndexesIndexDataExternalFromJSON(json) { + return PriceIndexesIndexDataExternalFromJSONTyped(json, false); +} +function PriceIndexesIndexDataExternalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'minimal_price': json['minimal_price'] == null ? undefined : json['minimal_price'], + 'minimal_price_currency': json['minimal_price_currency'] == null ? undefined : json['minimal_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +function PriceIndexesIndexDataExternalToJSON(value) { + if (value == null) { + return value; + } + return { + 'minimal_price': value['minimal_price'], + 'minimal_price_currency': value['minimal_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/models/PriceIndexesIndexDataOzon.d.ts b/dist/models/PriceIndexesIndexDataOzon.d.ts new file mode 100644 index 0000000..3ab5e5e --- /dev/null +++ b/dist/models/PriceIndexesIndexDataOzon.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара у конкурентов на Ozon. + * @export + * @interface PriceIndexesIndexDataOzon + */ +export interface PriceIndexesIndexDataOzon { + /** + * Минимальная цена товара у конкурентов на Ozon. + * @type {string} + * @memberof PriceIndexesIndexDataOzon + */ + minimal_price?: string; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexDataOzon + */ + minimal_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexDataOzon + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexDataOzon interface. + */ +export declare function instanceOfPriceIndexesIndexDataOzon(value: object): value is PriceIndexesIndexDataOzon; +export declare function PriceIndexesIndexDataOzonFromJSON(json: any): PriceIndexesIndexDataOzon; +export declare function PriceIndexesIndexDataOzonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexDataOzon; +export declare function PriceIndexesIndexDataOzonToJSON(value?: PriceIndexesIndexDataOzon | null): any; diff --git a/dist/models/PriceIndexesIndexDataOzon.js b/dist/models/PriceIndexesIndexDataOzon.js new file mode 100644 index 0000000..ba425f8 --- /dev/null +++ b/dist/models/PriceIndexesIndexDataOzon.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPriceIndexesIndexDataOzon = instanceOfPriceIndexesIndexDataOzon; +exports.PriceIndexesIndexDataOzonFromJSON = PriceIndexesIndexDataOzonFromJSON; +exports.PriceIndexesIndexDataOzonFromJSONTyped = PriceIndexesIndexDataOzonFromJSONTyped; +exports.PriceIndexesIndexDataOzonToJSON = PriceIndexesIndexDataOzonToJSON; +/** + * Check if a given object implements the PriceIndexesIndexDataOzon interface. + */ +function instanceOfPriceIndexesIndexDataOzon(value) { + return true; +} +function PriceIndexesIndexDataOzonFromJSON(json) { + return PriceIndexesIndexDataOzonFromJSONTyped(json, false); +} +function PriceIndexesIndexDataOzonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'minimal_price': json['minimal_price'] == null ? undefined : json['minimal_price'], + 'minimal_price_currency': json['minimal_price_currency'] == null ? undefined : json['minimal_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +function PriceIndexesIndexDataOzonToJSON(value) { + if (value == null) { + return value; + } + return { + 'minimal_price': value['minimal_price'], + 'minimal_price_currency': value['minimal_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/models/PriceIndexesIndexDataSelf.d.ts b/dist/models/PriceIndexesIndexDataSelf.d.ts new file mode 100644 index 0000000..9d1d6cf --- /dev/null +++ b/dist/models/PriceIndexesIndexDataSelf.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена вашего товара на других площадках. + * @export + * @interface PriceIndexesIndexDataSelf + */ +export interface PriceIndexesIndexDataSelf { + /** + * Минимальная цена вашего товара на других площадках. + * @type {string} + * @memberof PriceIndexesIndexDataSelf + */ + minimal_price?: string; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexDataSelf + */ + minimal_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexDataSelf + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexDataSelf interface. + */ +export declare function instanceOfPriceIndexesIndexDataSelf(value: object): value is PriceIndexesIndexDataSelf; +export declare function PriceIndexesIndexDataSelfFromJSON(json: any): PriceIndexesIndexDataSelf; +export declare function PriceIndexesIndexDataSelfFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexDataSelf; +export declare function PriceIndexesIndexDataSelfToJSON(value?: PriceIndexesIndexDataSelf | null): any; diff --git a/dist/models/PriceIndexesIndexDataSelf.js b/dist/models/PriceIndexesIndexDataSelf.js new file mode 100644 index 0000000..1cee763 --- /dev/null +++ b/dist/models/PriceIndexesIndexDataSelf.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPriceIndexesIndexDataSelf = instanceOfPriceIndexesIndexDataSelf; +exports.PriceIndexesIndexDataSelfFromJSON = PriceIndexesIndexDataSelfFromJSON; +exports.PriceIndexesIndexDataSelfFromJSONTyped = PriceIndexesIndexDataSelfFromJSONTyped; +exports.PriceIndexesIndexDataSelfToJSON = PriceIndexesIndexDataSelfToJSON; +/** + * Check if a given object implements the PriceIndexesIndexDataSelf interface. + */ +function instanceOfPriceIndexesIndexDataSelf(value) { + return true; +} +function PriceIndexesIndexDataSelfFromJSON(json) { + return PriceIndexesIndexDataSelfFromJSONTyped(json, false); +} +function PriceIndexesIndexDataSelfFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'minimal_price': json['minimal_price'] == null ? undefined : json['minimal_price'], + 'minimal_price_currency': json['minimal_price_currency'] == null ? undefined : json['minimal_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +function PriceIndexesIndexDataSelfToJSON(value) { + if (value == null) { + return value; + } + return { + 'minimal_price': value['minimal_price'], + 'minimal_price_currency': value['minimal_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/models/PriceIndexesIndexExternalData.d.ts b/dist/models/PriceIndexesIndexExternalData.d.ts new file mode 100644 index 0000000..acf1787 --- /dev/null +++ b/dist/models/PriceIndexesIndexExternalData.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара у конкурентов на других площадках. + * @export + * @interface PriceIndexesIndexExternalData + */ +export interface PriceIndexesIndexExternalData { + /** + * Минимальная цена товара у конкурентов на другой площадке. + * @type {number} + * @memberof PriceIndexesIndexExternalData + */ + min_price?: number; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexExternalData + */ + min_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexExternalData + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexExternalData interface. + */ +export declare function instanceOfPriceIndexesIndexExternalData(value: object): value is PriceIndexesIndexExternalData; +export declare function PriceIndexesIndexExternalDataFromJSON(json: any): PriceIndexesIndexExternalData; +export declare function PriceIndexesIndexExternalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexExternalData; +export declare function PriceIndexesIndexExternalDataToJSON(value?: PriceIndexesIndexExternalData | null): any; diff --git a/dist/models/PriceIndexesIndexExternalData.js b/dist/models/PriceIndexesIndexExternalData.js new file mode 100644 index 0000000..ef5f8d5 --- /dev/null +++ b/dist/models/PriceIndexesIndexExternalData.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPriceIndexesIndexExternalData = instanceOfPriceIndexesIndexExternalData; +exports.PriceIndexesIndexExternalDataFromJSON = PriceIndexesIndexExternalDataFromJSON; +exports.PriceIndexesIndexExternalDataFromJSONTyped = PriceIndexesIndexExternalDataFromJSONTyped; +exports.PriceIndexesIndexExternalDataToJSON = PriceIndexesIndexExternalDataToJSON; +/** + * Check if a given object implements the PriceIndexesIndexExternalData interface. + */ +function instanceOfPriceIndexesIndexExternalData(value) { + return true; +} +function PriceIndexesIndexExternalDataFromJSON(json) { + return PriceIndexesIndexExternalDataFromJSONTyped(json, false); +} +function PriceIndexesIndexExternalDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'min_price_currency': json['min_price_currency'] == null ? undefined : json['min_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +function PriceIndexesIndexExternalDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': value['min_price'], + 'min_price_currency': value['min_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/models/PriceIndexesIndexOzonData.d.ts b/dist/models/PriceIndexesIndexOzonData.d.ts new file mode 100644 index 0000000..d874a60 --- /dev/null +++ b/dist/models/PriceIndexesIndexOzonData.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена товара у конкурентов на Ozon. + * @export + * @interface PriceIndexesIndexOzonData + */ +export interface PriceIndexesIndexOzonData { + /** + * Минимальная цена товара у конкурентов на Ozon. + * @type {number} + * @memberof PriceIndexesIndexOzonData + */ + min_price?: number; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexOzonData + */ + min_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexOzonData + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexOzonData interface. + */ +export declare function instanceOfPriceIndexesIndexOzonData(value: object): value is PriceIndexesIndexOzonData; +export declare function PriceIndexesIndexOzonDataFromJSON(json: any): PriceIndexesIndexOzonData; +export declare function PriceIndexesIndexOzonDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexOzonData; +export declare function PriceIndexesIndexOzonDataToJSON(value?: PriceIndexesIndexOzonData | null): any; diff --git a/dist/models/PriceIndexesIndexOzonData.js b/dist/models/PriceIndexesIndexOzonData.js new file mode 100644 index 0000000..3c9d770 --- /dev/null +++ b/dist/models/PriceIndexesIndexOzonData.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPriceIndexesIndexOzonData = instanceOfPriceIndexesIndexOzonData; +exports.PriceIndexesIndexOzonDataFromJSON = PriceIndexesIndexOzonDataFromJSON; +exports.PriceIndexesIndexOzonDataFromJSONTyped = PriceIndexesIndexOzonDataFromJSONTyped; +exports.PriceIndexesIndexOzonDataToJSON = PriceIndexesIndexOzonDataToJSON; +/** + * Check if a given object implements the PriceIndexesIndexOzonData interface. + */ +function instanceOfPriceIndexesIndexOzonData(value) { + return true; +} +function PriceIndexesIndexOzonDataFromJSON(json) { + return PriceIndexesIndexOzonDataFromJSONTyped(json, false); +} +function PriceIndexesIndexOzonDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'min_price_currency': json['min_price_currency'] == null ? undefined : json['min_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +function PriceIndexesIndexOzonDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': value['min_price'], + 'min_price_currency': value['min_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/models/PriceIndexesIndexSelfData.d.ts b/dist/models/PriceIndexesIndexSelfData.d.ts new file mode 100644 index 0000000..7f73fcf --- /dev/null +++ b/dist/models/PriceIndexesIndexSelfData.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена вашего товара на других площадках. + * @export + * @interface PriceIndexesIndexSelfData + */ +export interface PriceIndexesIndexSelfData { + /** + * Минимальная цена вашего товара на других площадках. + * @type {number} + * @memberof PriceIndexesIndexSelfData + */ + min_price?: number; + /** + * Валюта цены. + * @type {string} + * @memberof PriceIndexesIndexSelfData + */ + min_price_currency?: string; + /** + * Значение индекса цены. + * @type {number} + * @memberof PriceIndexesIndexSelfData + */ + price_index_value?: number; +} +/** + * Check if a given object implements the PriceIndexesIndexSelfData interface. + */ +export declare function instanceOfPriceIndexesIndexSelfData(value: object): value is PriceIndexesIndexSelfData; +export declare function PriceIndexesIndexSelfDataFromJSON(json: any): PriceIndexesIndexSelfData; +export declare function PriceIndexesIndexSelfDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceIndexesIndexSelfData; +export declare function PriceIndexesIndexSelfDataToJSON(value?: PriceIndexesIndexSelfData | null): any; diff --git a/dist/models/PriceIndexesIndexSelfData.js b/dist/models/PriceIndexesIndexSelfData.js new file mode 100644 index 0000000..4c26b47 --- /dev/null +++ b/dist/models/PriceIndexesIndexSelfData.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPriceIndexesIndexSelfData = instanceOfPriceIndexesIndexSelfData; +exports.PriceIndexesIndexSelfDataFromJSON = PriceIndexesIndexSelfDataFromJSON; +exports.PriceIndexesIndexSelfDataFromJSONTyped = PriceIndexesIndexSelfDataFromJSONTyped; +exports.PriceIndexesIndexSelfDataToJSON = PriceIndexesIndexSelfDataToJSON; +/** + * Check if a given object implements the PriceIndexesIndexSelfData interface. + */ +function instanceOfPriceIndexesIndexSelfData(value) { + return true; +} +function PriceIndexesIndexSelfDataFromJSON(json) { + return PriceIndexesIndexSelfDataFromJSONTyped(json, false); +} +function PriceIndexesIndexSelfDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'min_price_currency': json['min_price_currency'] == null ? undefined : json['min_price_currency'], + 'price_index_value': json['price_index_value'] == null ? undefined : json['price_index_value'], + }; +} +function PriceIndexesIndexSelfDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': value['min_price'], + 'min_price_currency': value['min_price_currency'], + 'price_index_value': value['price_index_value'], + }; +} diff --git a/dist/models/ProductBooleanResponse.d.ts b/dist/models/ProductBooleanResponse.d.ts new file mode 100644 index 0000000..1de9204 --- /dev/null +++ b/dist/models/ProductBooleanResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductBooleanResponse + */ +export interface ProductBooleanResponse { + /** + * Результат обработки запроса. `true`, если запрос выполнен без ошибок. + * @type {boolean} + * @memberof ProductBooleanResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the ProductBooleanResponse interface. + */ +export declare function instanceOfProductBooleanResponse(value: object): value is ProductBooleanResponse; +export declare function ProductBooleanResponseFromJSON(json: any): ProductBooleanResponse; +export declare function ProductBooleanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductBooleanResponse; +export declare function ProductBooleanResponseToJSON(value?: ProductBooleanResponse | null): any; diff --git a/dist/models/ProductBooleanResponse.js b/dist/models/ProductBooleanResponse.js new file mode 100644 index 0000000..cb27606 --- /dev/null +++ b/dist/models/ProductBooleanResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductBooleanResponse = instanceOfProductBooleanResponse; +exports.ProductBooleanResponseFromJSON = ProductBooleanResponseFromJSON; +exports.ProductBooleanResponseFromJSONTyped = ProductBooleanResponseFromJSONTyped; +exports.ProductBooleanResponseToJSON = ProductBooleanResponseToJSON; +/** + * Check if a given object implements the ProductBooleanResponse interface. + */ +function instanceOfProductBooleanResponse(value) { + return true; +} +function ProductBooleanResponseFromJSON(json) { + return ProductBooleanResponseFromJSONTyped(json, false); +} +function ProductBooleanResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function ProductBooleanResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/ProductCertificateProductsListResponseProduct.d.ts b/dist/models/ProductCertificateProductsListResponseProduct.d.ts new file mode 100644 index 0000000..b74ad36 --- /dev/null +++ b/dist/models/ProductCertificateProductsListResponseProduct.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductCertificateProductsListResponseProduct + */ +export interface ProductCertificateProductsListResponseProduct { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductCertificateProductsListResponseProduct + */ + product_id?: number; + /** + * Статус обработки товара при привязке к сертификату. + * @type {string} + * @memberof ProductCertificateProductsListResponseProduct + */ + product_status_code?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductCertificateProductsListResponseProduct + */ + sku?: number; +} +/** + * Check if a given object implements the ProductCertificateProductsListResponseProduct interface. + */ +export declare function instanceOfProductCertificateProductsListResponseProduct(value: object): value is ProductCertificateProductsListResponseProduct; +export declare function ProductCertificateProductsListResponseProductFromJSON(json: any): ProductCertificateProductsListResponseProduct; +export declare function ProductCertificateProductsListResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificateProductsListResponseProduct; +export declare function ProductCertificateProductsListResponseProductToJSON(value?: ProductCertificateProductsListResponseProduct | null): any; diff --git a/dist/models/ProductCertificateProductsListResponseProduct.js b/dist/models/ProductCertificateProductsListResponseProduct.js new file mode 100644 index 0000000..400b9cb --- /dev/null +++ b/dist/models/ProductCertificateProductsListResponseProduct.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductCertificateProductsListResponseProduct = instanceOfProductCertificateProductsListResponseProduct; +exports.ProductCertificateProductsListResponseProductFromJSON = ProductCertificateProductsListResponseProductFromJSON; +exports.ProductCertificateProductsListResponseProductFromJSONTyped = ProductCertificateProductsListResponseProductFromJSONTyped; +exports.ProductCertificateProductsListResponseProductToJSON = ProductCertificateProductsListResponseProductToJSON; +/** + * Check if a given object implements the ProductCertificateProductsListResponseProduct interface. + */ +function instanceOfProductCertificateProductsListResponseProduct(value) { + return true; +} +function ProductCertificateProductsListResponseProductFromJSON(json) { + return ProductCertificateProductsListResponseProductFromJSONTyped(json, false); +} +function ProductCertificateProductsListResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'product_status_code': json['product_status_code'] == null ? undefined : json['product_status_code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function ProductCertificateProductsListResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'product_status_code': value['product_status_code'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/ProductCertificateUnbindResponseItem.d.ts b/dist/models/ProductCertificateUnbindResponseItem.d.ts new file mode 100644 index 0000000..2cc8fc4 --- /dev/null +++ b/dist/models/ProductCertificateUnbindResponseItem.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductCertificateUnbindResponseItem + */ +export interface ProductCertificateUnbindResponseItem { + /** + * Сообщение об ошибке при отвязывании товара. + * @type {string} + * @memberof ProductCertificateUnbindResponseItem + */ + error?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductCertificateUnbindResponseItem + */ + product_id?: number; + /** + * Был ли отвязан товар от сертификата: + * - `true` — отвязан, + * - `false` — не отвязан. + * + * @type {boolean} + * @memberof ProductCertificateUnbindResponseItem + */ + updated?: boolean; +} +/** + * Check if a given object implements the ProductCertificateUnbindResponseItem interface. + */ +export declare function instanceOfProductCertificateUnbindResponseItem(value: object): value is ProductCertificateUnbindResponseItem; +export declare function ProductCertificateUnbindResponseItemFromJSON(json: any): ProductCertificateUnbindResponseItem; +export declare function ProductCertificateUnbindResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificateUnbindResponseItem; +export declare function ProductCertificateUnbindResponseItemToJSON(value?: ProductCertificateUnbindResponseItem | null): any; diff --git a/dist/models/ProductCertificateUnbindResponseItem.js b/dist/models/ProductCertificateUnbindResponseItem.js new file mode 100644 index 0000000..99331bd --- /dev/null +++ b/dist/models/ProductCertificateUnbindResponseItem.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductCertificateUnbindResponseItem = instanceOfProductCertificateUnbindResponseItem; +exports.ProductCertificateUnbindResponseItemFromJSON = ProductCertificateUnbindResponseItemFromJSON; +exports.ProductCertificateUnbindResponseItemFromJSONTyped = ProductCertificateUnbindResponseItemFromJSONTyped; +exports.ProductCertificateUnbindResponseItemToJSON = ProductCertificateUnbindResponseItemToJSON; +/** + * Check if a given object implements the ProductCertificateUnbindResponseItem interface. + */ +function instanceOfProductCertificateUnbindResponseItem(value) { + return true; +} +function ProductCertificateUnbindResponseItemFromJSON(json) { + return ProductCertificateUnbindResponseItemFromJSONTyped(json, false); +} +function ProductCertificateUnbindResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'updated': json['updated'] == null ? undefined : json['updated'], + }; +} +function ProductCertificateUnbindResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'product_id': value['product_id'], + 'updated': value['updated'], + }; +} diff --git a/dist/models/ProductCertificationListResponseCertification.d.ts b/dist/models/ProductCertificationListResponseCertification.d.ts new file mode 100644 index 0000000..aca9306 --- /dev/null +++ b/dist/models/ProductCertificationListResponseCertification.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductCertificationListResponseCertification + */ +export interface ProductCertificationListResponseCertification { + /** + * Название сертифицируемой категории. + * @type {string} + * @memberof ProductCertificationListResponseCertification + */ + category_name?: string; + /** + * Признак обязательной характеристики. + * @type {boolean} + * @memberof ProductCertificationListResponseCertification + */ + is_required?: boolean; +} +/** + * Check if a given object implements the ProductCertificationListResponseCertification interface. + */ +export declare function instanceOfProductCertificationListResponseCertification(value: object): value is ProductCertificationListResponseCertification; +export declare function ProductCertificationListResponseCertificationFromJSON(json: any): ProductCertificationListResponseCertification; +export declare function ProductCertificationListResponseCertificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificationListResponseCertification; +export declare function ProductCertificationListResponseCertificationToJSON(value?: ProductCertificationListResponseCertification | null): any; diff --git a/dist/models/ProductCertificationListResponseCertification.js b/dist/models/ProductCertificationListResponseCertification.js new file mode 100644 index 0000000..08371e3 --- /dev/null +++ b/dist/models/ProductCertificationListResponseCertification.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductCertificationListResponseCertification = instanceOfProductCertificationListResponseCertification; +exports.ProductCertificationListResponseCertificationFromJSON = ProductCertificationListResponseCertificationFromJSON; +exports.ProductCertificationListResponseCertificationFromJSONTyped = ProductCertificationListResponseCertificationFromJSONTyped; +exports.ProductCertificationListResponseCertificationToJSON = ProductCertificationListResponseCertificationToJSON; +/** + * Check if a given object implements the ProductCertificationListResponseCertification interface. + */ +function instanceOfProductCertificationListResponseCertification(value) { + return true; +} +function ProductCertificationListResponseCertificationFromJSON(json) { + return ProductCertificationListResponseCertificationFromJSONTyped(json, false); +} +function ProductCertificationListResponseCertificationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'category_name': json['category_name'] == null ? undefined : json['category_name'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + }; +} +function ProductCertificationListResponseCertificationToJSON(value) { + if (value == null) { + return value; + } + return { + 'category_name': value['category_name'], + 'is_required': value['is_required'], + }; +} diff --git a/dist/models/ProductCertificationListResponseCertificationResult.d.ts b/dist/models/ProductCertificationListResponseCertificationResult.d.ts new file mode 100644 index 0000000..6692c42 --- /dev/null +++ b/dist/models/ProductCertificationListResponseCertificationResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificationListResponseCertification } from './ProductCertificationListResponseCertification'; +/** + * Результат запроса. + * @export + * @interface ProductCertificationListResponseCertificationResult + */ +export interface ProductCertificationListResponseCertificationResult { + /** + * Информация о сертифицируемых категориях. + * @type {Array} + * @memberof ProductCertificationListResponseCertificationResult + */ + certification?: Array; + /** + * Всего категорий. + * @type {number} + * @memberof ProductCertificationListResponseCertificationResult + */ + total?: number; +} +/** + * Check if a given object implements the ProductCertificationListResponseCertificationResult interface. + */ +export declare function instanceOfProductCertificationListResponseCertificationResult(value: object): value is ProductCertificationListResponseCertificationResult; +export declare function ProductCertificationListResponseCertificationResultFromJSON(json: any): ProductCertificationListResponseCertificationResult; +export declare function ProductCertificationListResponseCertificationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificationListResponseCertificationResult; +export declare function ProductCertificationListResponseCertificationResultToJSON(value?: ProductCertificationListResponseCertificationResult | null): any; diff --git a/dist/models/ProductCertificationListResponseCertificationResult.js b/dist/models/ProductCertificationListResponseCertificationResult.js new file mode 100644 index 0000000..4bfe968 --- /dev/null +++ b/dist/models/ProductCertificationListResponseCertificationResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductCertificationListResponseCertificationResult = instanceOfProductCertificationListResponseCertificationResult; +exports.ProductCertificationListResponseCertificationResultFromJSON = ProductCertificationListResponseCertificationResultFromJSON; +exports.ProductCertificationListResponseCertificationResultFromJSONTyped = ProductCertificationListResponseCertificationResultFromJSONTyped; +exports.ProductCertificationListResponseCertificationResultToJSON = ProductCertificationListResponseCertificationResultToJSON; +const ProductCertificationListResponseCertification_1 = require("./ProductCertificationListResponseCertification"); +/** + * Check if a given object implements the ProductCertificationListResponseCertificationResult interface. + */ +function instanceOfProductCertificationListResponseCertificationResult(value) { + return true; +} +function ProductCertificationListResponseCertificationResultFromJSON(json) { + return ProductCertificationListResponseCertificationResultFromJSONTyped(json, false); +} +function ProductCertificationListResponseCertificationResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certification': json['certification'] == null ? undefined : (json['certification'].map(ProductCertificationListResponseCertification_1.ProductCertificationListResponseCertificationFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function ProductCertificationListResponseCertificationResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'certification': value['certification'] == null ? undefined : (value['certification'].map(ProductCertificationListResponseCertification_1.ProductCertificationListResponseCertificationToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/ProductCertificationListResponseCertificationv2.d.ts b/dist/models/ProductCertificationListResponseCertificationv2.d.ts new file mode 100644 index 0000000..1b14ce4 --- /dev/null +++ b/dist/models/ProductCertificationListResponseCertificationv2.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductCertificationListResponseCertificationv2 + */ +export interface ProductCertificationListResponseCertificationv2 { + /** + * Идентификатор сертифицируемой категории. + * @type {number} + * @memberof ProductCertificationListResponseCertificationv2 + */ + category_id?: number; + /** + * Название сертифицируемой категории. + * @type {string} + * @memberof ProductCertificationListResponseCertificationv2 + */ + category_name?: string; + /** + * Признак обязательной характеристики. + * @type {boolean} + * @memberof ProductCertificationListResponseCertificationv2 + */ + is_required?: boolean; + /** + * Идентификатор типа сертифицируемой категории. + * @type {number} + * @memberof ProductCertificationListResponseCertificationv2 + */ + type_id?: number; + /** + * Название типа сертифицируемой категории. + * @type {string} + * @memberof ProductCertificationListResponseCertificationv2 + */ + type_name?: string; +} +/** + * Check if a given object implements the ProductCertificationListResponseCertificationv2 interface. + */ +export declare function instanceOfProductCertificationListResponseCertificationv2(value: object): value is ProductCertificationListResponseCertificationv2; +export declare function ProductCertificationListResponseCertificationv2FromJSON(json: any): ProductCertificationListResponseCertificationv2; +export declare function ProductCertificationListResponseCertificationv2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCertificationListResponseCertificationv2; +export declare function ProductCertificationListResponseCertificationv2ToJSON(value?: ProductCertificationListResponseCertificationv2 | null): any; diff --git a/dist/models/ProductCertificationListResponseCertificationv2.js b/dist/models/ProductCertificationListResponseCertificationv2.js new file mode 100644 index 0000000..3cdf62d --- /dev/null +++ b/dist/models/ProductCertificationListResponseCertificationv2.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductCertificationListResponseCertificationv2 = instanceOfProductCertificationListResponseCertificationv2; +exports.ProductCertificationListResponseCertificationv2FromJSON = ProductCertificationListResponseCertificationv2FromJSON; +exports.ProductCertificationListResponseCertificationv2FromJSONTyped = ProductCertificationListResponseCertificationv2FromJSONTyped; +exports.ProductCertificationListResponseCertificationv2ToJSON = ProductCertificationListResponseCertificationv2ToJSON; +/** + * Check if a given object implements the ProductCertificationListResponseCertificationv2 interface. + */ +function instanceOfProductCertificationListResponseCertificationv2(value) { + return true; +} +function ProductCertificationListResponseCertificationv2FromJSON(json) { + return ProductCertificationListResponseCertificationv2FromJSONTyped(json, false); +} +function ProductCertificationListResponseCertificationv2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'category_id': json['category_id'] == null ? undefined : json['category_id'], + 'category_name': json['category_name'] == null ? undefined : json['category_name'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + 'type_name': json['type_name'] == null ? undefined : json['type_name'], + }; +} +function ProductCertificationListResponseCertificationv2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'category_id': value['category_id'], + 'category_name': value['category_name'], + 'is_required': value['is_required'], + 'type_id': value['type_id'], + 'type_name': value['type_name'], + }; +} diff --git a/dist/models/ProductCurrencyEnum.d.ts b/dist/models/ProductCurrencyEnum.d.ts new file mode 100644 index 0000000..e26423f --- /dev/null +++ b/dist/models/ProductCurrencyEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Валюта: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @export + */ +export declare const ProductCurrencyEnum: { + readonly RUB: "RUB"; + readonly BYN: "BYN"; + readonly KZT: "KZT"; + readonly EUR: "EUR"; + readonly USD: "USD"; + readonly CNY: "CNY"; +}; +export type ProductCurrencyEnum = typeof ProductCurrencyEnum[keyof typeof ProductCurrencyEnum]; +export declare function instanceOfProductCurrencyEnum(value: any): boolean; +export declare function ProductCurrencyEnumFromJSON(json: any): ProductCurrencyEnum; +export declare function ProductCurrencyEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCurrencyEnum; +export declare function ProductCurrencyEnumToJSON(value?: ProductCurrencyEnum | null): any; diff --git a/dist/models/ProductCurrencyEnum.js b/dist/models/ProductCurrencyEnum.js new file mode 100644 index 0000000..2bad809 --- /dev/null +++ b/dist/models/ProductCurrencyEnum.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductCurrencyEnum = void 0; +exports.instanceOfProductCurrencyEnum = instanceOfProductCurrencyEnum; +exports.ProductCurrencyEnumFromJSON = ProductCurrencyEnumFromJSON; +exports.ProductCurrencyEnumFromJSONTyped = ProductCurrencyEnumFromJSONTyped; +exports.ProductCurrencyEnumToJSON = ProductCurrencyEnumToJSON; +/** + * Валюта: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @export + */ +exports.ProductCurrencyEnum = { + RUB: 'RUB', + BYN: 'BYN', + KZT: 'KZT', + EUR: 'EUR', + USD: 'USD', + CNY: 'CNY' +}; +function instanceOfProductCurrencyEnum(value) { + for (const key in exports.ProductCurrencyEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductCurrencyEnum, key)) { + if (exports.ProductCurrencyEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductCurrencyEnumFromJSON(json) { + return ProductCurrencyEnumFromJSONTyped(json, false); +} +function ProductCurrencyEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductCurrencyEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductExemplar.d.ts b/dist/models/ProductExemplar.d.ts new file mode 100644 index 0000000..aa9613d --- /dev/null +++ b/dist/models/ProductExemplar.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ExemplarMark } from './ExemplarMark'; +/** + * + * @export + * @interface ProductExemplar + */ +export interface ProductExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof ProductExemplar + */ + exemplar_id?: number; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof ProductExemplar + */ + gtd?: string; + /** + * Признак того, что не указан номер грузовой таможенной декларации (ГТД). + * @type {boolean} + * @memberof ProductExemplar + */ + is_gtd_absent?: boolean; + /** + * Признак того, что не указан регистрационный номер партии товара (РНПТ). + * @type {boolean} + * @memberof ProductExemplar + */ + is_rnpt_absent?: boolean; + /** + * Список контрольных идентификационных знаков (КИЗ) и других маркировок в одном экземпляре. + * @type {Array} + * @memberof ProductExemplar + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof ProductExemplar + */ + rnpt?: string; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof ProductExemplar + */ + weight?: number; +} +/** + * Check if a given object implements the ProductExemplar interface. + */ +export declare function instanceOfProductExemplar(value: object): value is ProductExemplar; +export declare function ProductExemplarFromJSON(json: any): ProductExemplar; +export declare function ProductExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductExemplar; +export declare function ProductExemplarToJSON(value?: ProductExemplar | null): any; diff --git a/dist/models/ProductExemplar.js b/dist/models/ProductExemplar.js new file mode 100644 index 0000000..5b8a6a6 --- /dev/null +++ b/dist/models/ProductExemplar.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductExemplar = instanceOfProductExemplar; +exports.ProductExemplarFromJSON = ProductExemplarFromJSON; +exports.ProductExemplarFromJSONTyped = ProductExemplarFromJSONTyped; +exports.ProductExemplarToJSON = ProductExemplarToJSON; +const ExemplarMark_1 = require("./ExemplarMark"); +/** + * Check if a given object implements the ProductExemplar interface. + */ +function instanceOfProductExemplar(value) { + return true; +} +function ProductExemplarFromJSON(json) { + return ProductExemplarFromJSONTyped(json, false); +} +function ProductExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'is_gtd_absent': json['is_gtd_absent'] == null ? undefined : json['is_gtd_absent'], + 'is_rnpt_absent': json['is_rnpt_absent'] == null ? undefined : json['is_rnpt_absent'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(ExemplarMark_1.ExemplarMarkFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function ProductExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'gtd': value['gtd'], + 'is_gtd_absent': value['is_gtd_absent'], + 'is_rnpt_absent': value['is_rnpt_absent'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(ExemplarMark_1.ExemplarMarkToJSON)), + 'rnpt': value['rnpt'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/ProductGetImportProductsInfoRequest.d.ts b/dist/models/ProductGetImportProductsInfoRequest.d.ts new file mode 100644 index 0000000..26aecfc --- /dev/null +++ b/dist/models/ProductGetImportProductsInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductGetImportProductsInfoRequest + */ +export interface ProductGetImportProductsInfoRequest { + /** + * Код задачи на импорт товаров. Можно получить с помощью метода [/v3/product/import](#operation/ProductAPI_ImportProductsV3). + * @type {number} + * @memberof ProductGetImportProductsInfoRequest + */ + task_id: number; +} +/** + * Check if a given object implements the ProductGetImportProductsInfoRequest interface. + */ +export declare function instanceOfProductGetImportProductsInfoRequest(value: object): value is ProductGetImportProductsInfoRequest; +export declare function ProductGetImportProductsInfoRequestFromJSON(json: any): ProductGetImportProductsInfoRequest; +export declare function ProductGetImportProductsInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetImportProductsInfoRequest; +export declare function ProductGetImportProductsInfoRequestToJSON(value?: ProductGetImportProductsInfoRequest | null): any; diff --git a/dist/models/ProductGetImportProductsInfoRequest.js b/dist/models/ProductGetImportProductsInfoRequest.js new file mode 100644 index 0000000..989a1f1 --- /dev/null +++ b/dist/models/ProductGetImportProductsInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetImportProductsInfoRequest = instanceOfProductGetImportProductsInfoRequest; +exports.ProductGetImportProductsInfoRequestFromJSON = ProductGetImportProductsInfoRequestFromJSON; +exports.ProductGetImportProductsInfoRequestFromJSONTyped = ProductGetImportProductsInfoRequestFromJSONTyped; +exports.ProductGetImportProductsInfoRequestToJSON = ProductGetImportProductsInfoRequestToJSON; +/** + * Check if a given object implements the ProductGetImportProductsInfoRequest interface. + */ +function instanceOfProductGetImportProductsInfoRequest(value) { + if (!('task_id' in value) || value['task_id'] === undefined) + return false; + return true; +} +function ProductGetImportProductsInfoRequestFromJSON(json) { + return ProductGetImportProductsInfoRequestFromJSONTyped(json, false); +} +function ProductGetImportProductsInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'], + }; +} +function ProductGetImportProductsInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/ProductGetImportProductsInfoResponse.d.ts b/dist/models/ProductGetImportProductsInfoResponse.d.ts new file mode 100644 index 0000000..822094c --- /dev/null +++ b/dist/models/ProductGetImportProductsInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetImportProductsInfoResponseResult } from './ProductGetImportProductsInfoResponseResult'; +/** + * + * @export + * @interface ProductGetImportProductsInfoResponse + */ +export interface ProductGetImportProductsInfoResponse { + /** + * + * @type {ProductGetImportProductsInfoResponseResult} + * @memberof ProductGetImportProductsInfoResponse + */ + result?: ProductGetImportProductsInfoResponseResult; +} +/** + * Check if a given object implements the ProductGetImportProductsInfoResponse interface. + */ +export declare function instanceOfProductGetImportProductsInfoResponse(value: object): value is ProductGetImportProductsInfoResponse; +export declare function ProductGetImportProductsInfoResponseFromJSON(json: any): ProductGetImportProductsInfoResponse; +export declare function ProductGetImportProductsInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetImportProductsInfoResponse; +export declare function ProductGetImportProductsInfoResponseToJSON(value?: ProductGetImportProductsInfoResponse | null): any; diff --git a/dist/models/ProductGetImportProductsInfoResponse.js b/dist/models/ProductGetImportProductsInfoResponse.js new file mode 100644 index 0000000..0245ed5 --- /dev/null +++ b/dist/models/ProductGetImportProductsInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetImportProductsInfoResponse = instanceOfProductGetImportProductsInfoResponse; +exports.ProductGetImportProductsInfoResponseFromJSON = ProductGetImportProductsInfoResponseFromJSON; +exports.ProductGetImportProductsInfoResponseFromJSONTyped = ProductGetImportProductsInfoResponseFromJSONTyped; +exports.ProductGetImportProductsInfoResponseToJSON = ProductGetImportProductsInfoResponseToJSON; +const ProductGetImportProductsInfoResponseResult_1 = require("./ProductGetImportProductsInfoResponseResult"); +/** + * Check if a given object implements the ProductGetImportProductsInfoResponse interface. + */ +function instanceOfProductGetImportProductsInfoResponse(value) { + return true; +} +function ProductGetImportProductsInfoResponseFromJSON(json) { + return ProductGetImportProductsInfoResponseFromJSONTyped(json, false); +} +function ProductGetImportProductsInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, ProductGetImportProductsInfoResponseResult_1.ProductGetImportProductsInfoResponseResultFromJSON)(json['result']), + }; +} +function ProductGetImportProductsInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, ProductGetImportProductsInfoResponseResult_1.ProductGetImportProductsInfoResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/ProductGetImportProductsInfoResponseResult.d.ts b/dist/models/ProductGetImportProductsInfoResponseResult.d.ts new file mode 100644 index 0000000..c8e7ae7 --- /dev/null +++ b/dist/models/ProductGetImportProductsInfoResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetImportProductsInfoResponseResultItem } from './GetImportProductsInfoResponseResultItem'; +/** + * + * @export + * @interface ProductGetImportProductsInfoResponseResult + */ +export interface ProductGetImportProductsInfoResponseResult { + /** + * Информация о товарах. + * @type {Array} + * @memberof ProductGetImportProductsInfoResponseResult + */ + items?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {number} + * @memberof ProductGetImportProductsInfoResponseResult + */ + total?: number; +} +/** + * Check if a given object implements the ProductGetImportProductsInfoResponseResult interface. + */ +export declare function instanceOfProductGetImportProductsInfoResponseResult(value: object): value is ProductGetImportProductsInfoResponseResult; +export declare function ProductGetImportProductsInfoResponseResultFromJSON(json: any): ProductGetImportProductsInfoResponseResult; +export declare function ProductGetImportProductsInfoResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetImportProductsInfoResponseResult; +export declare function ProductGetImportProductsInfoResponseResultToJSON(value?: ProductGetImportProductsInfoResponseResult | null): any; diff --git a/dist/models/ProductGetImportProductsInfoResponseResult.js b/dist/models/ProductGetImportProductsInfoResponseResult.js new file mode 100644 index 0000000..4cdf0cd --- /dev/null +++ b/dist/models/ProductGetImportProductsInfoResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetImportProductsInfoResponseResult = instanceOfProductGetImportProductsInfoResponseResult; +exports.ProductGetImportProductsInfoResponseResultFromJSON = ProductGetImportProductsInfoResponseResultFromJSON; +exports.ProductGetImportProductsInfoResponseResultFromJSONTyped = ProductGetImportProductsInfoResponseResultFromJSONTyped; +exports.ProductGetImportProductsInfoResponseResultToJSON = ProductGetImportProductsInfoResponseResultToJSON; +const GetImportProductsInfoResponseResultItem_1 = require("./GetImportProductsInfoResponseResultItem"); +/** + * Check if a given object implements the ProductGetImportProductsInfoResponseResult interface. + */ +function instanceOfProductGetImportProductsInfoResponseResult(value) { + return true; +} +function ProductGetImportProductsInfoResponseResultFromJSON(json) { + return ProductGetImportProductsInfoResponseResultFromJSONTyped(json, false); +} +function ProductGetImportProductsInfoResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(GetImportProductsInfoResponseResultItem_1.GetImportProductsInfoResponseResultItemFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function ProductGetImportProductsInfoResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(GetImportProductsInfoResponseResultItem_1.GetImportProductsInfoResponseResultItemToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/ProductGetProductAttributesV3ResponseDictionaryValue.d.ts b/dist/models/ProductGetProductAttributesV3ResponseDictionaryValue.d.ts new file mode 100644 index 0000000..d924742 --- /dev/null +++ b/dist/models/ProductGetProductAttributesV3ResponseDictionaryValue.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductGetProductAttributesV3ResponseDictionaryValue + */ +export interface ProductGetProductAttributesV3ResponseDictionaryValue { + /** + * Идентификатор характеристики в словаре. + * @type {number} + * @memberof ProductGetProductAttributesV3ResponseDictionaryValue + */ + dictionary_value_id?: number; + /** + * Значение характеристики товара. + * @type {string} + * @memberof ProductGetProductAttributesV3ResponseDictionaryValue + */ + value?: string; +} +/** + * Check if a given object implements the ProductGetProductAttributesV3ResponseDictionaryValue interface. + */ +export declare function instanceOfProductGetProductAttributesV3ResponseDictionaryValue(value: object): value is ProductGetProductAttributesV3ResponseDictionaryValue; +export declare function ProductGetProductAttributesV3ResponseDictionaryValueFromJSON(json: any): ProductGetProductAttributesV3ResponseDictionaryValue; +export declare function ProductGetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductAttributesV3ResponseDictionaryValue; +export declare function ProductGetProductAttributesV3ResponseDictionaryValueToJSON(value?: ProductGetProductAttributesV3ResponseDictionaryValue | null): any; diff --git a/dist/models/ProductGetProductAttributesV3ResponseDictionaryValue.js b/dist/models/ProductGetProductAttributesV3ResponseDictionaryValue.js new file mode 100644 index 0000000..1f765da --- /dev/null +++ b/dist/models/ProductGetProductAttributesV3ResponseDictionaryValue.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetProductAttributesV3ResponseDictionaryValue = instanceOfProductGetProductAttributesV3ResponseDictionaryValue; +exports.ProductGetProductAttributesV3ResponseDictionaryValueFromJSON = ProductGetProductAttributesV3ResponseDictionaryValueFromJSON; +exports.ProductGetProductAttributesV3ResponseDictionaryValueFromJSONTyped = ProductGetProductAttributesV3ResponseDictionaryValueFromJSONTyped; +exports.ProductGetProductAttributesV3ResponseDictionaryValueToJSON = ProductGetProductAttributesV3ResponseDictionaryValueToJSON; +/** + * Check if a given object implements the ProductGetProductAttributesV3ResponseDictionaryValue interface. + */ +function instanceOfProductGetProductAttributesV3ResponseDictionaryValue(value) { + return true; +} +function ProductGetProductAttributesV3ResponseDictionaryValueFromJSON(json) { + return ProductGetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json, false); +} +function ProductGetProductAttributesV3ResponseDictionaryValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dictionary_value_id': json['dictionary_value_id'] == null ? undefined : json['dictionary_value_id'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ProductGetProductAttributesV3ResponseDictionaryValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'dictionary_value_id': value['dictionary_value_id'], + 'value': value['value'], + }; +} diff --git a/dist/models/ProductGetProductAttributesV4ResponseAttribute.d.ts b/dist/models/ProductGetProductAttributesV4ResponseAttribute.d.ts new file mode 100644 index 0000000..95eea86 --- /dev/null +++ b/dist/models/ProductGetProductAttributesV4ResponseAttribute.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetProductAttributesV3ResponseDictionaryValue } from './ProductGetProductAttributesV3ResponseDictionaryValue'; +/** + * + * @export + * @interface ProductGetProductAttributesV4ResponseAttribute + */ +export interface ProductGetProductAttributesV4ResponseAttribute { + /** + * Идентификатор характеристики. + * @type {number} + * @memberof ProductGetProductAttributesV4ResponseAttribute + */ + id?: number; + /** + * Идентификатор характеристики, которая поддерживает вложенные свойства. Например, у характеристики «Процессор» есть вложенные характеристики «Производитель» и «L2 Cache». У каждой из вложенных характеристик может быть несколько вариантов значений. + * @type {number} + * @memberof ProductGetProductAttributesV4ResponseAttribute + */ + complex_id?: number; + /** + * Массив значений характеристик. + * @type {Array} + * @memberof ProductGetProductAttributesV4ResponseAttribute + */ + values?: Array; +} +/** + * Check if a given object implements the ProductGetProductAttributesV4ResponseAttribute interface. + */ +export declare function instanceOfProductGetProductAttributesV4ResponseAttribute(value: object): value is ProductGetProductAttributesV4ResponseAttribute; +export declare function ProductGetProductAttributesV4ResponseAttributeFromJSON(json: any): ProductGetProductAttributesV4ResponseAttribute; +export declare function ProductGetProductAttributesV4ResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductAttributesV4ResponseAttribute; +export declare function ProductGetProductAttributesV4ResponseAttributeToJSON(value?: ProductGetProductAttributesV4ResponseAttribute | null): any; diff --git a/dist/models/ProductGetProductAttributesV4ResponseAttribute.js b/dist/models/ProductGetProductAttributesV4ResponseAttribute.js new file mode 100644 index 0000000..5a24bfb --- /dev/null +++ b/dist/models/ProductGetProductAttributesV4ResponseAttribute.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetProductAttributesV4ResponseAttribute = instanceOfProductGetProductAttributesV4ResponseAttribute; +exports.ProductGetProductAttributesV4ResponseAttributeFromJSON = ProductGetProductAttributesV4ResponseAttributeFromJSON; +exports.ProductGetProductAttributesV4ResponseAttributeFromJSONTyped = ProductGetProductAttributesV4ResponseAttributeFromJSONTyped; +exports.ProductGetProductAttributesV4ResponseAttributeToJSON = ProductGetProductAttributesV4ResponseAttributeToJSON; +const ProductGetProductAttributesV3ResponseDictionaryValue_1 = require("./ProductGetProductAttributesV3ResponseDictionaryValue"); +/** + * Check if a given object implements the ProductGetProductAttributesV4ResponseAttribute interface. + */ +function instanceOfProductGetProductAttributesV4ResponseAttribute(value) { + return true; +} +function ProductGetProductAttributesV4ResponseAttributeFromJSON(json) { + return ProductGetProductAttributesV4ResponseAttributeFromJSONTyped(json, false); +} +function ProductGetProductAttributesV4ResponseAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'complex_id': json['complex_id'] == null ? undefined : json['complex_id'], + 'values': json['values'] == null ? undefined : (json['values'].map(ProductGetProductAttributesV3ResponseDictionaryValue_1.ProductGetProductAttributesV3ResponseDictionaryValueFromJSON)), + }; +} +function ProductGetProductAttributesV4ResponseAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'complex_id': value['complex_id'], + 'values': value['values'] == null ? undefined : (value['values'].map(ProductGetProductAttributesV3ResponseDictionaryValue_1.ProductGetProductAttributesV3ResponseDictionaryValueToJSON)), + }; +} diff --git a/dist/models/ProductGetProductInfoDescriptionRequest.d.ts b/dist/models/ProductGetProductInfoDescriptionRequest.d.ts new file mode 100644 index 0000000..67896d5 --- /dev/null +++ b/dist/models/ProductGetProductInfoDescriptionRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductGetProductInfoDescriptionRequest + */ +export interface ProductGetProductInfoDescriptionRequest { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductGetProductInfoDescriptionRequest + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductGetProductInfoDescriptionRequest + */ + product_id?: number; +} +/** + * Check if a given object implements the ProductGetProductInfoDescriptionRequest interface. + */ +export declare function instanceOfProductGetProductInfoDescriptionRequest(value: object): value is ProductGetProductInfoDescriptionRequest; +export declare function ProductGetProductInfoDescriptionRequestFromJSON(json: any): ProductGetProductInfoDescriptionRequest; +export declare function ProductGetProductInfoDescriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductInfoDescriptionRequest; +export declare function ProductGetProductInfoDescriptionRequestToJSON(value?: ProductGetProductInfoDescriptionRequest | null): any; diff --git a/dist/models/ProductGetProductInfoDescriptionRequest.js b/dist/models/ProductGetProductInfoDescriptionRequest.js new file mode 100644 index 0000000..e83ede5 --- /dev/null +++ b/dist/models/ProductGetProductInfoDescriptionRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetProductInfoDescriptionRequest = instanceOfProductGetProductInfoDescriptionRequest; +exports.ProductGetProductInfoDescriptionRequestFromJSON = ProductGetProductInfoDescriptionRequestFromJSON; +exports.ProductGetProductInfoDescriptionRequestFromJSONTyped = ProductGetProductInfoDescriptionRequestFromJSONTyped; +exports.ProductGetProductInfoDescriptionRequestToJSON = ProductGetProductInfoDescriptionRequestToJSON; +/** + * Check if a given object implements the ProductGetProductInfoDescriptionRequest interface. + */ +function instanceOfProductGetProductInfoDescriptionRequest(value) { + return true; +} +function ProductGetProductInfoDescriptionRequestFromJSON(json) { + return ProductGetProductInfoDescriptionRequestFromJSONTyped(json, false); +} +function ProductGetProductInfoDescriptionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +function ProductGetProductInfoDescriptionRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/ProductGetProductInfoDescriptionResponse.d.ts b/dist/models/ProductGetProductInfoDescriptionResponse.d.ts new file mode 100644 index 0000000..0b877f4 --- /dev/null +++ b/dist/models/ProductGetProductInfoDescriptionResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetProductInfoDescriptionResponseProduct } from './ProductGetProductInfoDescriptionResponseProduct'; +/** + * + * @export + * @interface ProductGetProductInfoDescriptionResponse + */ +export interface ProductGetProductInfoDescriptionResponse { + /** + * + * @type {ProductGetProductInfoDescriptionResponseProduct} + * @memberof ProductGetProductInfoDescriptionResponse + */ + result?: ProductGetProductInfoDescriptionResponseProduct; +} +/** + * Check if a given object implements the ProductGetProductInfoDescriptionResponse interface. + */ +export declare function instanceOfProductGetProductInfoDescriptionResponse(value: object): value is ProductGetProductInfoDescriptionResponse; +export declare function ProductGetProductInfoDescriptionResponseFromJSON(json: any): ProductGetProductInfoDescriptionResponse; +export declare function ProductGetProductInfoDescriptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductInfoDescriptionResponse; +export declare function ProductGetProductInfoDescriptionResponseToJSON(value?: ProductGetProductInfoDescriptionResponse | null): any; diff --git a/dist/models/ProductGetProductInfoDescriptionResponse.js b/dist/models/ProductGetProductInfoDescriptionResponse.js new file mode 100644 index 0000000..f895f7a --- /dev/null +++ b/dist/models/ProductGetProductInfoDescriptionResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetProductInfoDescriptionResponse = instanceOfProductGetProductInfoDescriptionResponse; +exports.ProductGetProductInfoDescriptionResponseFromJSON = ProductGetProductInfoDescriptionResponseFromJSON; +exports.ProductGetProductInfoDescriptionResponseFromJSONTyped = ProductGetProductInfoDescriptionResponseFromJSONTyped; +exports.ProductGetProductInfoDescriptionResponseToJSON = ProductGetProductInfoDescriptionResponseToJSON; +const ProductGetProductInfoDescriptionResponseProduct_1 = require("./ProductGetProductInfoDescriptionResponseProduct"); +/** + * Check if a given object implements the ProductGetProductInfoDescriptionResponse interface. + */ +function instanceOfProductGetProductInfoDescriptionResponse(value) { + return true; +} +function ProductGetProductInfoDescriptionResponseFromJSON(json) { + return ProductGetProductInfoDescriptionResponseFromJSONTyped(json, false); +} +function ProductGetProductInfoDescriptionResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, ProductGetProductInfoDescriptionResponseProduct_1.ProductGetProductInfoDescriptionResponseProductFromJSON)(json['result']), + }; +} +function ProductGetProductInfoDescriptionResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, ProductGetProductInfoDescriptionResponseProduct_1.ProductGetProductInfoDescriptionResponseProductToJSON)(value['result']), + }; +} diff --git a/dist/models/ProductGetProductInfoDescriptionResponseProduct.d.ts b/dist/models/ProductGetProductInfoDescriptionResponseProduct.d.ts new file mode 100644 index 0000000..d2a371b --- /dev/null +++ b/dist/models/ProductGetProductInfoDescriptionResponseProduct.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductGetProductInfoDescriptionResponseProduct + */ +export interface ProductGetProductInfoDescriptionResponseProduct { + /** + * Описание. + * @type {string} + * @memberof ProductGetProductInfoDescriptionResponseProduct + */ + description?: string; + /** + * Идентификатор. + * @type {number} + * @memberof ProductGetProductInfoDescriptionResponseProduct + */ + id?: number; + /** + * Название. + * @type {string} + * @memberof ProductGetProductInfoDescriptionResponseProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductGetProductInfoDescriptionResponseProduct + */ + offer_id?: string; +} +/** + * Check if a given object implements the ProductGetProductInfoDescriptionResponseProduct interface. + */ +export declare function instanceOfProductGetProductInfoDescriptionResponseProduct(value: object): value is ProductGetProductInfoDescriptionResponseProduct; +export declare function ProductGetProductInfoDescriptionResponseProductFromJSON(json: any): ProductGetProductInfoDescriptionResponseProduct; +export declare function ProductGetProductInfoDescriptionResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductInfoDescriptionResponseProduct; +export declare function ProductGetProductInfoDescriptionResponseProductToJSON(value?: ProductGetProductInfoDescriptionResponseProduct | null): any; diff --git a/dist/models/ProductGetProductInfoDescriptionResponseProduct.js b/dist/models/ProductGetProductInfoDescriptionResponseProduct.js new file mode 100644 index 0000000..10c4b23 --- /dev/null +++ b/dist/models/ProductGetProductInfoDescriptionResponseProduct.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetProductInfoDescriptionResponseProduct = instanceOfProductGetProductInfoDescriptionResponseProduct; +exports.ProductGetProductInfoDescriptionResponseProductFromJSON = ProductGetProductInfoDescriptionResponseProductFromJSON; +exports.ProductGetProductInfoDescriptionResponseProductFromJSONTyped = ProductGetProductInfoDescriptionResponseProductFromJSONTyped; +exports.ProductGetProductInfoDescriptionResponseProductToJSON = ProductGetProductInfoDescriptionResponseProductToJSON; +/** + * Check if a given object implements the ProductGetProductInfoDescriptionResponseProduct interface. + */ +function instanceOfProductGetProductInfoDescriptionResponseProduct(value) { + return true; +} +function ProductGetProductInfoDescriptionResponseProductFromJSON(json) { + return ProductGetProductInfoDescriptionResponseProductFromJSONTyped(json, false); +} +function ProductGetProductInfoDescriptionResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + }; +} +function ProductGetProductInfoDescriptionResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'description': value['description'], + 'id': value['id'], + 'name': value['name'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/models/ProductGetProductInfoPricesV5ResponseItem.d.ts b/dist/models/ProductGetProductInfoPricesV5ResponseItem.d.ts new file mode 100644 index 0000000..9210d5f --- /dev/null +++ b/dist/models/ProductGetProductInfoPricesV5ResponseItem.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemCommissionsv5 } from './ItemCommissionsv5'; +import type { GetProductInfoPricesResponseItemPriceIndexes } from './GetProductInfoPricesResponseItemPriceIndexes'; +import type { ItemMarketing } from './ItemMarketing'; +import type { ItemPricev5 } from './ItemPricev5'; +/** + * + * @export + * @interface ProductGetProductInfoPricesV5ResponseItem + */ +export interface ProductGetProductInfoPricesV5ResponseItem { + /** + * Максимальная комиссия за эквайринг. + * + * [Подробнее об эквайринге в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/rashody-na-dop-uslugi#экваиринг) + * + * @type {number} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + acquiring?: number; + /** + * + * @type {ItemCommissionsv5} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + commissions?: ItemCommissionsv5; + /** + * + * @type {ItemMarketing} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + marketing_actions?: ItemMarketing; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + offer_id?: string; + /** + * + * @type {ItemPricev5} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + price?: ItemPricev5; + /** + * + * @type {GetProductInfoPricesResponseItemPriceIndexes} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + price_indexes?: GetProductInfoPricesResponseItemPriceIndexes; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + product_id?: number; + /** + * Объёмный вес товара. + * @type {number} + * @memberof ProductGetProductInfoPricesV5ResponseItem + */ + volume_weight?: number; +} +/** + * Check if a given object implements the ProductGetProductInfoPricesV5ResponseItem interface. + */ +export declare function instanceOfProductGetProductInfoPricesV5ResponseItem(value: object): value is ProductGetProductInfoPricesV5ResponseItem; +export declare function ProductGetProductInfoPricesV5ResponseItemFromJSON(json: any): ProductGetProductInfoPricesV5ResponseItem; +export declare function ProductGetProductInfoPricesV5ResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductGetProductInfoPricesV5ResponseItem; +export declare function ProductGetProductInfoPricesV5ResponseItemToJSON(value?: ProductGetProductInfoPricesV5ResponseItem | null): any; diff --git a/dist/models/ProductGetProductInfoPricesV5ResponseItem.js b/dist/models/ProductGetProductInfoPricesV5ResponseItem.js new file mode 100644 index 0000000..1fc9e78 --- /dev/null +++ b/dist/models/ProductGetProductInfoPricesV5ResponseItem.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductGetProductInfoPricesV5ResponseItem = instanceOfProductGetProductInfoPricesV5ResponseItem; +exports.ProductGetProductInfoPricesV5ResponseItemFromJSON = ProductGetProductInfoPricesV5ResponseItemFromJSON; +exports.ProductGetProductInfoPricesV5ResponseItemFromJSONTyped = ProductGetProductInfoPricesV5ResponseItemFromJSONTyped; +exports.ProductGetProductInfoPricesV5ResponseItemToJSON = ProductGetProductInfoPricesV5ResponseItemToJSON; +const ItemCommissionsv5_1 = require("./ItemCommissionsv5"); +const GetProductInfoPricesResponseItemPriceIndexes_1 = require("./GetProductInfoPricesResponseItemPriceIndexes"); +const ItemMarketing_1 = require("./ItemMarketing"); +const ItemPricev5_1 = require("./ItemPricev5"); +/** + * Check if a given object implements the ProductGetProductInfoPricesV5ResponseItem interface. + */ +function instanceOfProductGetProductInfoPricesV5ResponseItem(value) { + return true; +} +function ProductGetProductInfoPricesV5ResponseItemFromJSON(json) { + return ProductGetProductInfoPricesV5ResponseItemFromJSONTyped(json, false); +} +function ProductGetProductInfoPricesV5ResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'acquiring': json['acquiring'] == null ? undefined : json['acquiring'], + 'commissions': json['commissions'] == null ? undefined : (0, ItemCommissionsv5_1.ItemCommissionsv5FromJSON)(json['commissions']), + 'marketing_actions': json['marketing_actions'] == null ? undefined : (0, ItemMarketing_1.ItemMarketingFromJSON)(json['marketing_actions']), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : (0, ItemPricev5_1.ItemPricev5FromJSON)(json['price']), + 'price_indexes': json['price_indexes'] == null ? undefined : (0, GetProductInfoPricesResponseItemPriceIndexes_1.GetProductInfoPricesResponseItemPriceIndexesFromJSON)(json['price_indexes']), + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'volume_weight': json['volume_weight'] == null ? undefined : json['volume_weight'], + }; +} +function ProductGetProductInfoPricesV5ResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'acquiring': value['acquiring'], + 'commissions': (0, ItemCommissionsv5_1.ItemCommissionsv5ToJSON)(value['commissions']), + 'marketing_actions': (0, ItemMarketing_1.ItemMarketingToJSON)(value['marketing_actions']), + 'offer_id': value['offer_id'], + 'price': (0, ItemPricev5_1.ItemPricev5ToJSON)(value['price']), + 'price_indexes': (0, GetProductInfoPricesResponseItemPriceIndexes_1.GetProductInfoPricesResponseItemPriceIndexesToJSON)(value['price_indexes']), + 'product_id': value['product_id'], + 'volume_weight': value['volume_weight'], + }; +} diff --git a/dist/models/ProductImportProductsBySKURequest.d.ts b/dist/models/ProductImportProductsBySKURequest.d.ts new file mode 100644 index 0000000..15a79d7 --- /dev/null +++ b/dist/models/ProductImportProductsBySKURequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsBySKURequestItem } from './ProductImportProductsBySKURequestItem'; +/** + * + * @export + * @interface ProductImportProductsBySKURequest + */ +export interface ProductImportProductsBySKURequest { + /** + * Информация о товарах. + * @type {Array} + * @memberof ProductImportProductsBySKURequest + */ + items?: Array; +} +/** + * Check if a given object implements the ProductImportProductsBySKURequest interface. + */ +export declare function instanceOfProductImportProductsBySKURequest(value: object): value is ProductImportProductsBySKURequest; +export declare function ProductImportProductsBySKURequestFromJSON(json: any): ProductImportProductsBySKURequest; +export declare function ProductImportProductsBySKURequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsBySKURequest; +export declare function ProductImportProductsBySKURequestToJSON(value?: ProductImportProductsBySKURequest | null): any; diff --git a/dist/models/ProductImportProductsBySKURequest.js b/dist/models/ProductImportProductsBySKURequest.js new file mode 100644 index 0000000..e1f33db --- /dev/null +++ b/dist/models/ProductImportProductsBySKURequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductImportProductsBySKURequest = instanceOfProductImportProductsBySKURequest; +exports.ProductImportProductsBySKURequestFromJSON = ProductImportProductsBySKURequestFromJSON; +exports.ProductImportProductsBySKURequestFromJSONTyped = ProductImportProductsBySKURequestFromJSONTyped; +exports.ProductImportProductsBySKURequestToJSON = ProductImportProductsBySKURequestToJSON; +const ProductImportProductsBySKURequestItem_1 = require("./ProductImportProductsBySKURequestItem"); +/** + * Check if a given object implements the ProductImportProductsBySKURequest interface. + */ +function instanceOfProductImportProductsBySKURequest(value) { + return true; +} +function ProductImportProductsBySKURequestFromJSON(json) { + return ProductImportProductsBySKURequestFromJSONTyped(json, false); +} +function ProductImportProductsBySKURequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductImportProductsBySKURequestItem_1.ProductImportProductsBySKURequestItemFromJSON)), + }; +} +function ProductImportProductsBySKURequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductImportProductsBySKURequestItem_1.ProductImportProductsBySKURequestItemToJSON)), + }; +} diff --git a/dist/models/ProductImportProductsBySKURequestItem.d.ts b/dist/models/ProductImportProductsBySKURequestItem.d.ts new file mode 100644 index 0000000..6c0ff80 --- /dev/null +++ b/dist/models/ProductImportProductsBySKURequestItem.d.ts @@ -0,0 +1,90 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductImportProductsBySKURequestItem + */ +export interface ProductImportProductsBySKURequestItem { + /** + * Название товара. До 500 символов. + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * + * Максимальная длина строки — 50 символов. + * + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + offer_id?: string; + /** + * Цена до скидок (будет зачеркнута на карточке товара). Указывается в рублях. Разделитель дробной части — точка, до двух знаков после точки. + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + old_price?: string; + /** + * Цена товара с учётом скидок, отображается на карточке товара. Если на товар нет скидок, укажите значение `old_price` в этом параметре. + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + price?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductImportProductsBySKURequestItem + */ + sku: number; + /** + * Ставка НДС для товара: + * - `0` — не облагается НДС, + * - `0.05` — 5%, + * - `0.07` — 7%, + * - `0.1` — 10%, + * - `0.2` — 20%, + * - `0.22` — 22%. + * + * Передавайте значение ставки, актуальное на данный момент. + * + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + vat?: string; + /** + * Валюта ваших цен. Переданное значение должно совпадать с валютой, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. + * + * Например, если у вас установлена валюта взаиморасчётов юань, передавайте значение `CNY`, иначе вернётся ошибка. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ProductImportProductsBySKURequestItem + */ + currency_code?: string; +} +/** + * Check if a given object implements the ProductImportProductsBySKURequestItem interface. + */ +export declare function instanceOfProductImportProductsBySKURequestItem(value: object): value is ProductImportProductsBySKURequestItem; +export declare function ProductImportProductsBySKURequestItemFromJSON(json: any): ProductImportProductsBySKURequestItem; +export declare function ProductImportProductsBySKURequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsBySKURequestItem; +export declare function ProductImportProductsBySKURequestItemToJSON(value?: ProductImportProductsBySKURequestItem | null): any; diff --git a/dist/models/ProductImportProductsBySKURequestItem.js b/dist/models/ProductImportProductsBySKURequestItem.js new file mode 100644 index 0000000..ec0e118 --- /dev/null +++ b/dist/models/ProductImportProductsBySKURequestItem.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductImportProductsBySKURequestItem = instanceOfProductImportProductsBySKURequestItem; +exports.ProductImportProductsBySKURequestItemFromJSON = ProductImportProductsBySKURequestItemFromJSON; +exports.ProductImportProductsBySKURequestItemFromJSONTyped = ProductImportProductsBySKURequestItemFromJSONTyped; +exports.ProductImportProductsBySKURequestItemToJSON = ProductImportProductsBySKURequestItemToJSON; +/** + * Check if a given object implements the ProductImportProductsBySKURequestItem interface. + */ +function instanceOfProductImportProductsBySKURequestItem(value) { + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function ProductImportProductsBySKURequestItemFromJSON(json) { + return ProductImportProductsBySKURequestItemFromJSONTyped(json, false); +} +function ProductImportProductsBySKURequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'sku': json['sku'], + 'vat': json['vat'] == null ? undefined : json['vat'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + }; +} +function ProductImportProductsBySKURequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'old_price': value['old_price'], + 'price': value['price'], + 'sku': value['sku'], + 'vat': value['vat'], + 'currency_code': value['currency_code'], + }; +} diff --git a/dist/models/ProductImportProductsBySKUResponse.d.ts b/dist/models/ProductImportProductsBySKUResponse.d.ts new file mode 100644 index 0000000..a7a37e2 --- /dev/null +++ b/dist/models/ProductImportProductsBySKUResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsBySKUResponseResult } from './ProductImportProductsBySKUResponseResult'; +/** + * + * @export + * @interface ProductImportProductsBySKUResponse + */ +export interface ProductImportProductsBySKUResponse { + /** + * + * @type {ProductImportProductsBySKUResponseResult} + * @memberof ProductImportProductsBySKUResponse + */ + result?: ProductImportProductsBySKUResponseResult; +} +/** + * Check if a given object implements the ProductImportProductsBySKUResponse interface. + */ +export declare function instanceOfProductImportProductsBySKUResponse(value: object): value is ProductImportProductsBySKUResponse; +export declare function ProductImportProductsBySKUResponseFromJSON(json: any): ProductImportProductsBySKUResponse; +export declare function ProductImportProductsBySKUResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsBySKUResponse; +export declare function ProductImportProductsBySKUResponseToJSON(value?: ProductImportProductsBySKUResponse | null): any; diff --git a/dist/models/ProductImportProductsBySKUResponse.js b/dist/models/ProductImportProductsBySKUResponse.js new file mode 100644 index 0000000..29fc2e1 --- /dev/null +++ b/dist/models/ProductImportProductsBySKUResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductImportProductsBySKUResponse = instanceOfProductImportProductsBySKUResponse; +exports.ProductImportProductsBySKUResponseFromJSON = ProductImportProductsBySKUResponseFromJSON; +exports.ProductImportProductsBySKUResponseFromJSONTyped = ProductImportProductsBySKUResponseFromJSONTyped; +exports.ProductImportProductsBySKUResponseToJSON = ProductImportProductsBySKUResponseToJSON; +const ProductImportProductsBySKUResponseResult_1 = require("./ProductImportProductsBySKUResponseResult"); +/** + * Check if a given object implements the ProductImportProductsBySKUResponse interface. + */ +function instanceOfProductImportProductsBySKUResponse(value) { + return true; +} +function ProductImportProductsBySKUResponseFromJSON(json) { + return ProductImportProductsBySKUResponseFromJSONTyped(json, false); +} +function ProductImportProductsBySKUResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, ProductImportProductsBySKUResponseResult_1.ProductImportProductsBySKUResponseResultFromJSON)(json['result']), + }; +} +function ProductImportProductsBySKUResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, ProductImportProductsBySKUResponseResult_1.ProductImportProductsBySKUResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/ProductImportProductsBySKUResponseResult.d.ts b/dist/models/ProductImportProductsBySKUResponseResult.d.ts new file mode 100644 index 0000000..1891136 --- /dev/null +++ b/dist/models/ProductImportProductsBySKUResponseResult.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductImportProductsBySKUResponseResult + */ +export interface ProductImportProductsBySKUResponseResult { + /** + * Код задачи на импорт товаров. + * @type {number} + * @memberof ProductImportProductsBySKUResponseResult + */ + task_id?: number; + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof ProductImportProductsBySKUResponseResult + */ + unmatched_sku_list?: Array; +} +/** + * Check if a given object implements the ProductImportProductsBySKUResponseResult interface. + */ +export declare function instanceOfProductImportProductsBySKUResponseResult(value: object): value is ProductImportProductsBySKUResponseResult; +export declare function ProductImportProductsBySKUResponseResultFromJSON(json: any): ProductImportProductsBySKUResponseResult; +export declare function ProductImportProductsBySKUResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsBySKUResponseResult; +export declare function ProductImportProductsBySKUResponseResultToJSON(value?: ProductImportProductsBySKUResponseResult | null): any; diff --git a/dist/models/ProductImportProductsBySKUResponseResult.js b/dist/models/ProductImportProductsBySKUResponseResult.js new file mode 100644 index 0000000..c9647f5 --- /dev/null +++ b/dist/models/ProductImportProductsBySKUResponseResult.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductImportProductsBySKUResponseResult = instanceOfProductImportProductsBySKUResponseResult; +exports.ProductImportProductsBySKUResponseResultFromJSON = ProductImportProductsBySKUResponseResultFromJSON; +exports.ProductImportProductsBySKUResponseResultFromJSONTyped = ProductImportProductsBySKUResponseResultFromJSONTyped; +exports.ProductImportProductsBySKUResponseResultToJSON = ProductImportProductsBySKUResponseResultToJSON; +/** + * Check if a given object implements the ProductImportProductsBySKUResponseResult interface. + */ +function instanceOfProductImportProductsBySKUResponseResult(value) { + return true; +} +function ProductImportProductsBySKUResponseResultFromJSON(json) { + return ProductImportProductsBySKUResponseResultFromJSONTyped(json, false); +} +function ProductImportProductsBySKUResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + 'unmatched_sku_list': json['unmatched_sku_list'] == null ? undefined : json['unmatched_sku_list'], + }; +} +function ProductImportProductsBySKUResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + 'unmatched_sku_list': value['unmatched_sku_list'], + }; +} diff --git a/dist/models/ProductImportProductsPricesRequest.d.ts b/dist/models/ProductImportProductsPricesRequest.d.ts new file mode 100644 index 0000000..b05e26c --- /dev/null +++ b/dist/models/ProductImportProductsPricesRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsPricesRequestPrice } from './ProductImportProductsPricesRequestPrice'; +/** + * + * @export + * @interface ProductImportProductsPricesRequest + */ +export interface ProductImportProductsPricesRequest { + /** + * Информация о ценах товаров. + * @type {Array} + * @memberof ProductImportProductsPricesRequest + */ + prices?: Array; +} +/** + * Check if a given object implements the ProductImportProductsPricesRequest interface. + */ +export declare function instanceOfProductImportProductsPricesRequest(value: object): value is ProductImportProductsPricesRequest; +export declare function ProductImportProductsPricesRequestFromJSON(json: any): ProductImportProductsPricesRequest; +export declare function ProductImportProductsPricesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesRequest; +export declare function ProductImportProductsPricesRequestToJSON(value?: ProductImportProductsPricesRequest | null): any; diff --git a/dist/models/ProductImportProductsPricesRequest.js b/dist/models/ProductImportProductsPricesRequest.js new file mode 100644 index 0000000..d4e4fb3 --- /dev/null +++ b/dist/models/ProductImportProductsPricesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductImportProductsPricesRequest = instanceOfProductImportProductsPricesRequest; +exports.ProductImportProductsPricesRequestFromJSON = ProductImportProductsPricesRequestFromJSON; +exports.ProductImportProductsPricesRequestFromJSONTyped = ProductImportProductsPricesRequestFromJSONTyped; +exports.ProductImportProductsPricesRequestToJSON = ProductImportProductsPricesRequestToJSON; +const ProductImportProductsPricesRequestPrice_1 = require("./ProductImportProductsPricesRequestPrice"); +/** + * Check if a given object implements the ProductImportProductsPricesRequest interface. + */ +function instanceOfProductImportProductsPricesRequest(value) { + return true; +} +function ProductImportProductsPricesRequestFromJSON(json) { + return ProductImportProductsPricesRequestFromJSONTyped(json, false); +} +function ProductImportProductsPricesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'prices': json['prices'] == null ? undefined : (json['prices'].map(ProductImportProductsPricesRequestPrice_1.ProductImportProductsPricesRequestPriceFromJSON)), + }; +} +function ProductImportProductsPricesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'prices': value['prices'] == null ? undefined : (value['prices'].map(ProductImportProductsPricesRequestPrice_1.ProductImportProductsPricesRequestPriceToJSON)), + }; +} diff --git a/dist/models/ProductImportProductsPricesRequestPrice.d.ts b/dist/models/ProductImportProductsPricesRequestPrice.d.ts new file mode 100644 index 0000000..f1b2b35 --- /dev/null +++ b/dist/models/ProductImportProductsPricesRequestPrice.d.ts @@ -0,0 +1,205 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductImportProductsPricesRequestPrice + */ +export interface ProductImportProductsPricesRequestPrice { + /** + * Атрибут для включения и выключения автоматического применения к товару доступных акций Ozon: + * - `ENABLED` — включить; + * - `DISABLED` — выключить; + * - `UNKNOWN` — ничего не менять, передаётся по умолчанию. + * + * Например, если ранее вы включили автодобавление и не хотите выключать его, передавайте `UNKNOWN`. + * + * Если вы передаёте `ENABLED` в этом параметре, установите значение минимальной цены в параметре `min_price`. Цена не опустится ниже минимальной. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + auto_action_enabled?: ProductImportProductsPricesRequestPriceAutoActionEnabledEnum; + /** + * Атрибут для включения и выключения автодобавления товара в акции: + * - `ENABLED` — включить; + * - `DISABLED` — выключить; + * - `UNKNOWN` — ничего не менять, передаётся по умолчанию. + * + * Например, если ранее вы включили автодобавление товара в акции и не хотите выключать его, передавайте `UNKNOWN`. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + auto_add_to_ozon_actions_list_enabled?: ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum; + /** + * Валюта ваших цен. Переданное значение должно совпадать с валютой, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. + * + * Например, если у вас установлена валюта взаиморасчётов юань, передавайте значение `CNY`, иначе вернётся ошибка. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + currency_code?: string; + /** + * Управление участием в акции «Эластичный бустинг»: + * + * - `true` — автоматически добавляет товар в акцию или увеличивает в ней скидку и бустинг, если значение из параметра `price` соответствует условиям акции; + * - `false` — изменение значения параметра `price` не влияет на участие в акции. + * + * Если ничего не передать, изменений в статусе участия не будет. + * + * @type {boolean} + * @memberof ProductImportProductsPricesRequestPrice + */ + manage_elastic_boosting_through_price?: boolean; + /** + * Минимальная цена товара после применения акций.
[Подробнее о минимальной цене в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ceny-i-akcii/akcii-skidki-i-kupony/akcii-ozon/voprosy-otvety-akcii-ozon#что-такое-минимальная-цена?) + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + min_price?: string; + /** + * `true`, если Ozon учитывает минимальную цену при добавлении в акции. Если ничего не передать, изменений в статусе учёта цены не будет. + * + * @type {boolean} + * @memberof ProductImportProductsPricesRequestPrice + */ + min_price_for_auto_actions_enabled?: boolean; + /** + * Себестоимость товара. + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + net_price?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + offer_id?: string; + /** + * Цена до скидок (зачеркнута на карточке товара). Указывается в рублях. Разделитель дробной части — точка, до двух знаков после точки. + * + * Если на товар нет скидок, укажите значение `0` в этом поле, а текущую цену передайте в поле `price`. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + old_price?: string; + /** + * Цена товара с учётом скидок, отображается на карточке товара. + * + * Если значение параметра `old_price` больше 0, между `price` и `old_price` должна быть определённая разница. + * Она зависит от значения `price`. + * + * | Значение `price` | Минимальная разница | + * |---|---| + * | < 400 | 20 рублей | + * | 400–10 000 | 5% | + * | > 10 000 | 500 рублей | + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + price?: string; + /** + * Атрибут для автоприменения стратегий цены: + * - `ENABLED` — включить; + * - `DISABLED` — выключить; + * - `UNKNOWN` — ничего не менять, передаётся по умолчанию. + * + * Если ранее вы включили автоприменение стратегий цены и не хотите выключать его, передавайте `UNKNOWN` в следующих запросах. + * + * Если вы передаёте `ENABLED` в этом параметре, установите значение минимальной цены в параметре `min_price`. + * + * Если вы передаёте `DISABLED` в этом параметре, товар удаляется из стратегии. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + price_strategy_enabled?: ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductImportProductsPricesRequestPrice + */ + product_id?: number; + /** + * Используйте параметр, если у обычного и эконом-товара совпадает артикул — `offer_id = quant_id`. Чтобы обновить цену: + * - обычного товара — передайте значение `1`; + * - эконом-товара — передайте размер его кванта. + * + * Если у обычного и эконом-товара разные артикулы, не передавайте параметр. + * + * @type {number} + * @memberof ProductImportProductsPricesRequestPrice + */ + quant_size?: number; + /** + * Ставка НДС для товара: + * - `0` — не облагается НДС, + * - `0.05` — 5%, + * - `0.07` — 7%, + * - `0.1` — 10%, + * - `0.2` — 20%, + * - `0.22` — 22%. + * + * Передавайте значение ставки, актуальное на данный момент. + * + * @type {string} + * @memberof ProductImportProductsPricesRequestPrice + */ + vat?: string; +} +/** + * @export + */ +export declare const ProductImportProductsPricesRequestPriceAutoActionEnabledEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly ENABLED: "ENABLED"; + readonly DISABLED: "DISABLED"; +}; +export type ProductImportProductsPricesRequestPriceAutoActionEnabledEnum = typeof ProductImportProductsPricesRequestPriceAutoActionEnabledEnum[keyof typeof ProductImportProductsPricesRequestPriceAutoActionEnabledEnum]; +/** + * @export + */ +export declare const ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly ENABLED: "ENABLED"; + readonly DISABLED: "DISABLED"; +}; +export type ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum = typeof ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum[keyof typeof ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum]; +/** + * @export + */ +export declare const ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly ENABLED: "ENABLED"; + readonly DISABLED: "DISABLED"; +}; +export type ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum = typeof ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum[keyof typeof ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum]; +/** + * Check if a given object implements the ProductImportProductsPricesRequestPrice interface. + */ +export declare function instanceOfProductImportProductsPricesRequestPrice(value: object): value is ProductImportProductsPricesRequestPrice; +export declare function ProductImportProductsPricesRequestPriceFromJSON(json: any): ProductImportProductsPricesRequestPrice; +export declare function ProductImportProductsPricesRequestPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesRequestPrice; +export declare function ProductImportProductsPricesRequestPriceToJSON(value?: ProductImportProductsPricesRequestPrice | null): any; diff --git a/dist/models/ProductImportProductsPricesRequestPrice.js b/dist/models/ProductImportProductsPricesRequestPrice.js new file mode 100644 index 0000000..8ee60a0 --- /dev/null +++ b/dist/models/ProductImportProductsPricesRequestPrice.js @@ -0,0 +1,95 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum = exports.ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum = exports.ProductImportProductsPricesRequestPriceAutoActionEnabledEnum = void 0; +exports.instanceOfProductImportProductsPricesRequestPrice = instanceOfProductImportProductsPricesRequestPrice; +exports.ProductImportProductsPricesRequestPriceFromJSON = ProductImportProductsPricesRequestPriceFromJSON; +exports.ProductImportProductsPricesRequestPriceFromJSONTyped = ProductImportProductsPricesRequestPriceFromJSONTyped; +exports.ProductImportProductsPricesRequestPriceToJSON = ProductImportProductsPricesRequestPriceToJSON; +/** + * @export + */ +exports.ProductImportProductsPricesRequestPriceAutoActionEnabledEnum = { + UNKNOWN: 'UNKNOWN', + ENABLED: 'ENABLED', + DISABLED: 'DISABLED' +}; +/** + * @export + */ +exports.ProductImportProductsPricesRequestPriceAutoAddToOzonActionsListEnabledEnum = { + UNKNOWN: 'UNKNOWN', + ENABLED: 'ENABLED', + DISABLED: 'DISABLED' +}; +/** + * @export + */ +exports.ProductImportProductsPricesRequestPricePriceStrategyEnabledEnum = { + UNKNOWN: 'UNKNOWN', + ENABLED: 'ENABLED', + DISABLED: 'DISABLED' +}; +/** + * Check if a given object implements the ProductImportProductsPricesRequestPrice interface. + */ +function instanceOfProductImportProductsPricesRequestPrice(value) { + return true; +} +function ProductImportProductsPricesRequestPriceFromJSON(json) { + return ProductImportProductsPricesRequestPriceFromJSONTyped(json, false); +} +function ProductImportProductsPricesRequestPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'auto_action_enabled': json['auto_action_enabled'] == null ? undefined : json['auto_action_enabled'], + 'auto_add_to_ozon_actions_list_enabled': json['auto_add_to_ozon_actions_list_enabled'] == null ? undefined : json['auto_add_to_ozon_actions_list_enabled'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'manage_elastic_boosting_through_price': json['manage_elastic_boosting_through_price'] == null ? undefined : json['manage_elastic_boosting_through_price'], + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'min_price_for_auto_actions_enabled': json['min_price_for_auto_actions_enabled'] == null ? undefined : json['min_price_for_auto_actions_enabled'], + 'net_price': json['net_price'] == null ? undefined : json['net_price'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'price_strategy_enabled': json['price_strategy_enabled'] == null ? undefined : json['price_strategy_enabled'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + 'vat': json['vat'] == null ? undefined : json['vat'], + }; +} +function ProductImportProductsPricesRequestPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'auto_action_enabled': value['auto_action_enabled'], + 'auto_add_to_ozon_actions_list_enabled': value['auto_add_to_ozon_actions_list_enabled'], + 'currency_code': value['currency_code'], + 'manage_elastic_boosting_through_price': value['manage_elastic_boosting_through_price'], + 'min_price': value['min_price'], + 'min_price_for_auto_actions_enabled': value['min_price_for_auto_actions_enabled'], + 'net_price': value['net_price'], + 'offer_id': value['offer_id'], + 'old_price': value['old_price'], + 'price': value['price'], + 'price_strategy_enabled': value['price_strategy_enabled'], + 'product_id': value['product_id'], + 'quant_size': value['quant_size'], + 'vat': value['vat'], + }; +} diff --git a/dist/models/ProductImportProductsPricesResponse.d.ts b/dist/models/ProductImportProductsPricesResponse.d.ts new file mode 100644 index 0000000..711a7c0 --- /dev/null +++ b/dist/models/ProductImportProductsPricesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsPricesResponseProcessResult } from './ProductImportProductsPricesResponseProcessResult'; +/** + * + * @export + * @interface ProductImportProductsPricesResponse + */ +export interface ProductImportProductsPricesResponse { + /** + * Результаты запроса. + * @type {Array} + * @memberof ProductImportProductsPricesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the ProductImportProductsPricesResponse interface. + */ +export declare function instanceOfProductImportProductsPricesResponse(value: object): value is ProductImportProductsPricesResponse; +export declare function ProductImportProductsPricesResponseFromJSON(json: any): ProductImportProductsPricesResponse; +export declare function ProductImportProductsPricesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesResponse; +export declare function ProductImportProductsPricesResponseToJSON(value?: ProductImportProductsPricesResponse | null): any; diff --git a/dist/models/ProductImportProductsPricesResponse.js b/dist/models/ProductImportProductsPricesResponse.js new file mode 100644 index 0000000..99924f1 --- /dev/null +++ b/dist/models/ProductImportProductsPricesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductImportProductsPricesResponse = instanceOfProductImportProductsPricesResponse; +exports.ProductImportProductsPricesResponseFromJSON = ProductImportProductsPricesResponseFromJSON; +exports.ProductImportProductsPricesResponseFromJSONTyped = ProductImportProductsPricesResponseFromJSONTyped; +exports.ProductImportProductsPricesResponseToJSON = ProductImportProductsPricesResponseToJSON; +const ProductImportProductsPricesResponseProcessResult_1 = require("./ProductImportProductsPricesResponseProcessResult"); +/** + * Check if a given object implements the ProductImportProductsPricesResponse interface. + */ +function instanceOfProductImportProductsPricesResponse(value) { + return true; +} +function ProductImportProductsPricesResponseFromJSON(json) { + return ProductImportProductsPricesResponseFromJSONTyped(json, false); +} +function ProductImportProductsPricesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ProductImportProductsPricesResponseProcessResult_1.ProductImportProductsPricesResponseProcessResultFromJSON)), + }; +} +function ProductImportProductsPricesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ProductImportProductsPricesResponseProcessResult_1.ProductImportProductsPricesResponseProcessResultToJSON)), + }; +} diff --git a/dist/models/ProductImportProductsPricesResponseError.d.ts b/dist/models/ProductImportProductsPricesResponseError.d.ts new file mode 100644 index 0000000..d465a55 --- /dev/null +++ b/dist/models/ProductImportProductsPricesResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductImportProductsPricesResponseError + */ +export interface ProductImportProductsPricesResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof ProductImportProductsPricesResponseError + */ + code?: string; + /** + * Причина ошибки. + * @type {string} + * @memberof ProductImportProductsPricesResponseError + */ + message?: string; +} +/** + * Check if a given object implements the ProductImportProductsPricesResponseError interface. + */ +export declare function instanceOfProductImportProductsPricesResponseError(value: object): value is ProductImportProductsPricesResponseError; +export declare function ProductImportProductsPricesResponseErrorFromJSON(json: any): ProductImportProductsPricesResponseError; +export declare function ProductImportProductsPricesResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesResponseError; +export declare function ProductImportProductsPricesResponseErrorToJSON(value?: ProductImportProductsPricesResponseError | null): any; diff --git a/dist/models/ProductImportProductsPricesResponseError.js b/dist/models/ProductImportProductsPricesResponseError.js new file mode 100644 index 0000000..6df9a59 --- /dev/null +++ b/dist/models/ProductImportProductsPricesResponseError.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductImportProductsPricesResponseError = instanceOfProductImportProductsPricesResponseError; +exports.ProductImportProductsPricesResponseErrorFromJSON = ProductImportProductsPricesResponseErrorFromJSON; +exports.ProductImportProductsPricesResponseErrorFromJSONTyped = ProductImportProductsPricesResponseErrorFromJSONTyped; +exports.ProductImportProductsPricesResponseErrorToJSON = ProductImportProductsPricesResponseErrorToJSON; +/** + * Check if a given object implements the ProductImportProductsPricesResponseError interface. + */ +function instanceOfProductImportProductsPricesResponseError(value) { + return true; +} +function ProductImportProductsPricesResponseErrorFromJSON(json) { + return ProductImportProductsPricesResponseErrorFromJSONTyped(json, false); +} +function ProductImportProductsPricesResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function ProductImportProductsPricesResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/models/ProductImportProductsPricesResponseProcessResult.d.ts b/dist/models/ProductImportProductsPricesResponseProcessResult.d.ts new file mode 100644 index 0000000..6038e8b --- /dev/null +++ b/dist/models/ProductImportProductsPricesResponseProcessResult.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductImportProductsPricesResponseError } from './ProductImportProductsPricesResponseError'; +/** + * + * @export + * @interface ProductImportProductsPricesResponseProcessResult + */ +export interface ProductImportProductsPricesResponseProcessResult { + /** + * Массив ошибок, которые возникли при обработке запроса. + * @type {Array} + * @memberof ProductImportProductsPricesResponseProcessResult + */ + errors?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductImportProductsPricesResponseProcessResult + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductImportProductsPricesResponseProcessResult + */ + product_id?: number; + /** + * Если информации о товаре успешно обновлена — `true`. + * @type {boolean} + * @memberof ProductImportProductsPricesResponseProcessResult + */ + updated?: boolean; +} +/** + * Check if a given object implements the ProductImportProductsPricesResponseProcessResult interface. + */ +export declare function instanceOfProductImportProductsPricesResponseProcessResult(value: object): value is ProductImportProductsPricesResponseProcessResult; +export declare function ProductImportProductsPricesResponseProcessResultFromJSON(json: any): ProductImportProductsPricesResponseProcessResult; +export declare function ProductImportProductsPricesResponseProcessResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductImportProductsPricesResponseProcessResult; +export declare function ProductImportProductsPricesResponseProcessResultToJSON(value?: ProductImportProductsPricesResponseProcessResult | null): any; diff --git a/dist/models/ProductImportProductsPricesResponseProcessResult.js b/dist/models/ProductImportProductsPricesResponseProcessResult.js new file mode 100644 index 0000000..33673af --- /dev/null +++ b/dist/models/ProductImportProductsPricesResponseProcessResult.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductImportProductsPricesResponseProcessResult = instanceOfProductImportProductsPricesResponseProcessResult; +exports.ProductImportProductsPricesResponseProcessResultFromJSON = ProductImportProductsPricesResponseProcessResultFromJSON; +exports.ProductImportProductsPricesResponseProcessResultFromJSONTyped = ProductImportProductsPricesResponseProcessResultFromJSONTyped; +exports.ProductImportProductsPricesResponseProcessResultToJSON = ProductImportProductsPricesResponseProcessResultToJSON; +const ProductImportProductsPricesResponseError_1 = require("./ProductImportProductsPricesResponseError"); +/** + * Check if a given object implements the ProductImportProductsPricesResponseProcessResult interface. + */ +function instanceOfProductImportProductsPricesResponseProcessResult(value) { + return true; +} +function ProductImportProductsPricesResponseProcessResultFromJSON(json) { + return ProductImportProductsPricesResponseProcessResultFromJSONTyped(json, false); +} +function ProductImportProductsPricesResponseProcessResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(ProductImportProductsPricesResponseError_1.ProductImportProductsPricesResponseErrorFromJSON)), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'updated': json['updated'] == null ? undefined : json['updated'], + }; +} +function ProductImportProductsPricesResponseProcessResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(ProductImportProductsPricesResponseError_1.ProductImportProductsPricesResponseErrorToJSON)), + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'updated': value['updated'], + }; +} diff --git a/dist/models/ProductInfoWarehouseStocksResponseStocks.d.ts b/dist/models/ProductInfoWarehouseStocksResponseStocks.d.ts new file mode 100644 index 0000000..0090894 --- /dev/null +++ b/dist/models/ProductInfoWarehouseStocksResponseStocks.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductInfoWarehouseStocksResponseStocks + */ +export interface ProductInfoWarehouseStocksResponseStocks { + /** + * Количество товара на складе, которое доступно для заказа. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + free_stock?: number; + /** + * Идентификатор товара в системе продавца — `offer_id`. + * @type {string} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + offer_id?: string; + /** + * Общее количество товара на складе. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + present?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + product_id?: number; + /** + * Количество зарезервированных товаров на складе. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + reserved?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + sku?: number; + /** + * Дата последнего обновления товара. + * @type {string} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof ProductInfoWarehouseStocksResponseStocks + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the ProductInfoWarehouseStocksResponseStocks interface. + */ +export declare function instanceOfProductInfoWarehouseStocksResponseStocks(value: object): value is ProductInfoWarehouseStocksResponseStocks; +export declare function ProductInfoWarehouseStocksResponseStocksFromJSON(json: any): ProductInfoWarehouseStocksResponseStocks; +export declare function ProductInfoWarehouseStocksResponseStocksFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInfoWarehouseStocksResponseStocks; +export declare function ProductInfoWarehouseStocksResponseStocksToJSON(value?: ProductInfoWarehouseStocksResponseStocks | null): any; diff --git a/dist/models/ProductInfoWarehouseStocksResponseStocks.js b/dist/models/ProductInfoWarehouseStocksResponseStocks.js new file mode 100644 index 0000000..4d19630 --- /dev/null +++ b/dist/models/ProductInfoWarehouseStocksResponseStocks.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductInfoWarehouseStocksResponseStocks = instanceOfProductInfoWarehouseStocksResponseStocks; +exports.ProductInfoWarehouseStocksResponseStocksFromJSON = ProductInfoWarehouseStocksResponseStocksFromJSON; +exports.ProductInfoWarehouseStocksResponseStocksFromJSONTyped = ProductInfoWarehouseStocksResponseStocksFromJSONTyped; +exports.ProductInfoWarehouseStocksResponseStocksToJSON = ProductInfoWarehouseStocksResponseStocksToJSON; +/** + * Check if a given object implements the ProductInfoWarehouseStocksResponseStocks interface. + */ +function instanceOfProductInfoWarehouseStocksResponseStocks(value) { + return true; +} +function ProductInfoWarehouseStocksResponseStocksFromJSON(json) { + return ProductInfoWarehouseStocksResponseStocksFromJSONTyped(json, false); +} +function ProductInfoWarehouseStocksResponseStocksFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'free_stock': json['free_stock'] == null ? undefined : json['free_stock'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'present': json['present'] == null ? undefined : json['present'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function ProductInfoWarehouseStocksResponseStocksToJSON(value) { + if (value == null) { + return value; + } + return { + 'free_stock': value['free_stock'], + 'offer_id': value['offer_id'], + 'present': value['present'], + 'product_id': value['product_id'], + 'reserved': value['reserved'], + 'sku': value['sku'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.d.ts b/dist/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.d.ts new file mode 100644 index 0000000..9ab0b1c --- /dev/null +++ b/dist/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductInfoWrongVolumeResponseWrongVolumeProduct + */ +export interface ProductInfoWrongVolumeResponseWrongVolumeProduct { + /** + * Высота товара. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + height?: number; + /** + * Длина товара. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + length?: number; + /** + * Название товара. + * @type {string} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + product_id?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + sku?: number; + /** + * Вес товара в упаковке. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + weight?: number; + /** + * Ширина товара. + * @type {number} + * @memberof ProductInfoWrongVolumeResponseWrongVolumeProduct + */ + width?: number; +} +/** + * Check if a given object implements the ProductInfoWrongVolumeResponseWrongVolumeProduct interface. + */ +export declare function instanceOfProductInfoWrongVolumeResponseWrongVolumeProduct(value: object): value is ProductInfoWrongVolumeResponseWrongVolumeProduct; +export declare function ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON(json: any): ProductInfoWrongVolumeResponseWrongVolumeProduct; +export declare function ProductInfoWrongVolumeResponseWrongVolumeProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInfoWrongVolumeResponseWrongVolumeProduct; +export declare function ProductInfoWrongVolumeResponseWrongVolumeProductToJSON(value?: ProductInfoWrongVolumeResponseWrongVolumeProduct | null): any; diff --git a/dist/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.js b/dist/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.js new file mode 100644 index 0000000..d567279 --- /dev/null +++ b/dist/models/ProductInfoWrongVolumeResponseWrongVolumeProduct.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductInfoWrongVolumeResponseWrongVolumeProduct = instanceOfProductInfoWrongVolumeResponseWrongVolumeProduct; +exports.ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON = ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON; +exports.ProductInfoWrongVolumeResponseWrongVolumeProductFromJSONTyped = ProductInfoWrongVolumeResponseWrongVolumeProductFromJSONTyped; +exports.ProductInfoWrongVolumeResponseWrongVolumeProductToJSON = ProductInfoWrongVolumeResponseWrongVolumeProductToJSON; +/** + * Check if a given object implements the ProductInfoWrongVolumeResponseWrongVolumeProduct interface. + */ +function instanceOfProductInfoWrongVolumeResponseWrongVolumeProduct(value) { + return true; +} +function ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON(json) { + return ProductInfoWrongVolumeResponseWrongVolumeProductFromJSONTyped(json, false); +} +function ProductInfoWrongVolumeResponseWrongVolumeProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'length': json['length'] == null ? undefined : json['length'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function ProductInfoWrongVolumeResponseWrongVolumeProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'length': value['length'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + 'weight': value['weight'], + 'width': value['width'], + }; +} diff --git a/dist/models/ProductPlacementPlacementZoneEnum.d.ts b/dist/models/ProductPlacementPlacementZoneEnum.d.ts new file mode 100644 index 0000000..0df9d82 --- /dev/null +++ b/dist/models/ProductPlacementPlacementZoneEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Зона размещения товара: + * - `UNSPECIFIED` — не указана; + * - `CLOSED_ZONE` — закрытая зона; + * - `DANGEROUS_GOODS` — товар 2–4 класса опасности; + * - `PRODUCTS` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — неизвестная зона. + * + * @export + */ +export declare const ProductPlacementPlacementZoneEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CLOSED_ZONE: "CLOSED_ZONE"; + readonly DANGEROUS_GOODS: "DANGEROUS_GOODS"; + readonly PRODUCTS: "PRODUCTS"; + readonly SORT: "SORT"; + readonly NON_SORT: "NON_SORT"; + readonly OVERSIZE: "OVERSIZE"; + readonly JEWELRY: "JEWELRY"; + readonly UNRESOLVED: "UNRESOLVED"; +}; +export type ProductPlacementPlacementZoneEnum = typeof ProductPlacementPlacementZoneEnum[keyof typeof ProductPlacementPlacementZoneEnum]; +export declare function instanceOfProductPlacementPlacementZoneEnum(value: any): boolean; +export declare function ProductPlacementPlacementZoneEnumFromJSON(json: any): ProductPlacementPlacementZoneEnum; +export declare function ProductPlacementPlacementZoneEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductPlacementPlacementZoneEnum; +export declare function ProductPlacementPlacementZoneEnumToJSON(value?: ProductPlacementPlacementZoneEnum | null): any; diff --git a/dist/models/ProductPlacementPlacementZoneEnum.js b/dist/models/ProductPlacementPlacementZoneEnum.js new file mode 100644 index 0000000..a37f138 --- /dev/null +++ b/dist/models/ProductPlacementPlacementZoneEnum.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductPlacementPlacementZoneEnum = void 0; +exports.instanceOfProductPlacementPlacementZoneEnum = instanceOfProductPlacementPlacementZoneEnum; +exports.ProductPlacementPlacementZoneEnumFromJSON = ProductPlacementPlacementZoneEnumFromJSON; +exports.ProductPlacementPlacementZoneEnumFromJSONTyped = ProductPlacementPlacementZoneEnumFromJSONTyped; +exports.ProductPlacementPlacementZoneEnumToJSON = ProductPlacementPlacementZoneEnumToJSON; +/** + * Зона размещения товара: + * - `UNSPECIFIED` — не указана; + * - `CLOSED_ZONE` — закрытая зона; + * - `DANGEROUS_GOODS` — товар 2–4 класса опасности; + * - `PRODUCTS` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — неизвестная зона. + * + * @export + */ +exports.ProductPlacementPlacementZoneEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CLOSED_ZONE: 'CLOSED_ZONE', + DANGEROUS_GOODS: 'DANGEROUS_GOODS', + PRODUCTS: 'PRODUCTS', + SORT: 'SORT', + NON_SORT: 'NON_SORT', + OVERSIZE: 'OVERSIZE', + JEWELRY: 'JEWELRY', + UNRESOLVED: 'UNRESOLVED' +}; +function instanceOfProductPlacementPlacementZoneEnum(value) { + for (const key in exports.ProductPlacementPlacementZoneEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductPlacementPlacementZoneEnum, key)) { + if (exports.ProductPlacementPlacementZoneEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductPlacementPlacementZoneEnumFromJSON(json) { + return ProductPlacementPlacementZoneEnumFromJSONTyped(json, false); +} +function ProductPlacementPlacementZoneEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductPlacementPlacementZoneEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductProductArchiveRequest.d.ts b/dist/models/ProductProductArchiveRequest.d.ts new file mode 100644 index 0000000..f7ec0b9 --- /dev/null +++ b/dist/models/ProductProductArchiveRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductArchiveRequest + */ +export interface ProductProductArchiveRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. Вы можете передать до 100 идентификаторов за раз. + * @type {Array} + * @memberof ProductProductArchiveRequest + */ + product_id: Array; +} +/** + * Check if a given object implements the ProductProductArchiveRequest interface. + */ +export declare function instanceOfProductProductArchiveRequest(value: object): value is ProductProductArchiveRequest; +export declare function ProductProductArchiveRequestFromJSON(json: any): ProductProductArchiveRequest; +export declare function ProductProductArchiveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductArchiveRequest; +export declare function ProductProductArchiveRequestToJSON(value?: ProductProductArchiveRequest | null): any; diff --git a/dist/models/ProductProductArchiveRequest.js b/dist/models/ProductProductArchiveRequest.js new file mode 100644 index 0000000..69be2e8 --- /dev/null +++ b/dist/models/ProductProductArchiveRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductArchiveRequest = instanceOfProductProductArchiveRequest; +exports.ProductProductArchiveRequestFromJSON = ProductProductArchiveRequestFromJSON; +exports.ProductProductArchiveRequestFromJSONTyped = ProductProductArchiveRequestFromJSONTyped; +exports.ProductProductArchiveRequestToJSON = ProductProductArchiveRequestToJSON; +/** + * Check if a given object implements the ProductProductArchiveRequest interface. + */ +function instanceOfProductProductArchiveRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function ProductProductArchiveRequestFromJSON(json) { + return ProductProductArchiveRequestFromJSONTyped(json, false); +} +function ProductProductArchiveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +function ProductProductArchiveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/ProductProductCertificateAccordanceTypesResponse.d.ts b/dist/models/ProductProductCertificateAccordanceTypesResponse.d.ts new file mode 100644 index 0000000..4ac5b37 --- /dev/null +++ b/dist/models/ProductProductCertificateAccordanceTypesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductProductCertificateAccordanceTypesResponseType } from './ProductProductCertificateAccordanceTypesResponseType'; +/** + * + * @export + * @interface ProductProductCertificateAccordanceTypesResponse + */ +export interface ProductProductCertificateAccordanceTypesResponse { + /** + * Список типов и названий сертификатов. + * @type {Array} + * @memberof ProductProductCertificateAccordanceTypesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the ProductProductCertificateAccordanceTypesResponse interface. + */ +export declare function instanceOfProductProductCertificateAccordanceTypesResponse(value: object): value is ProductProductCertificateAccordanceTypesResponse; +export declare function ProductProductCertificateAccordanceTypesResponseFromJSON(json: any): ProductProductCertificateAccordanceTypesResponse; +export declare function ProductProductCertificateAccordanceTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateAccordanceTypesResponse; +export declare function ProductProductCertificateAccordanceTypesResponseToJSON(value?: ProductProductCertificateAccordanceTypesResponse | null): any; diff --git a/dist/models/ProductProductCertificateAccordanceTypesResponse.js b/dist/models/ProductProductCertificateAccordanceTypesResponse.js new file mode 100644 index 0000000..0a27a6b --- /dev/null +++ b/dist/models/ProductProductCertificateAccordanceTypesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductCertificateAccordanceTypesResponse = instanceOfProductProductCertificateAccordanceTypesResponse; +exports.ProductProductCertificateAccordanceTypesResponseFromJSON = ProductProductCertificateAccordanceTypesResponseFromJSON; +exports.ProductProductCertificateAccordanceTypesResponseFromJSONTyped = ProductProductCertificateAccordanceTypesResponseFromJSONTyped; +exports.ProductProductCertificateAccordanceTypesResponseToJSON = ProductProductCertificateAccordanceTypesResponseToJSON; +const ProductProductCertificateAccordanceTypesResponseType_1 = require("./ProductProductCertificateAccordanceTypesResponseType"); +/** + * Check if a given object implements the ProductProductCertificateAccordanceTypesResponse interface. + */ +function instanceOfProductProductCertificateAccordanceTypesResponse(value) { + return true; +} +function ProductProductCertificateAccordanceTypesResponseFromJSON(json) { + return ProductProductCertificateAccordanceTypesResponseFromJSONTyped(json, false); +} +function ProductProductCertificateAccordanceTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ProductProductCertificateAccordanceTypesResponseType_1.ProductProductCertificateAccordanceTypesResponseTypeFromJSON)), + }; +} +function ProductProductCertificateAccordanceTypesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ProductProductCertificateAccordanceTypesResponseType_1.ProductProductCertificateAccordanceTypesResponseTypeToJSON)), + }; +} diff --git a/dist/models/ProductProductCertificateAccordanceTypesResponseType.d.ts b/dist/models/ProductProductCertificateAccordanceTypesResponseType.d.ts new file mode 100644 index 0000000..096150a --- /dev/null +++ b/dist/models/ProductProductCertificateAccordanceTypesResponseType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductCertificateAccordanceTypesResponseType + */ +export interface ProductProductCertificateAccordanceTypesResponseType { + /** + * Название документа. + * @type {string} + * @memberof ProductProductCertificateAccordanceTypesResponseType + */ + name?: string; + /** + * Значение справочника. + * @type {string} + * @memberof ProductProductCertificateAccordanceTypesResponseType + */ + value?: string; +} +/** + * Check if a given object implements the ProductProductCertificateAccordanceTypesResponseType interface. + */ +export declare function instanceOfProductProductCertificateAccordanceTypesResponseType(value: object): value is ProductProductCertificateAccordanceTypesResponseType; +export declare function ProductProductCertificateAccordanceTypesResponseTypeFromJSON(json: any): ProductProductCertificateAccordanceTypesResponseType; +export declare function ProductProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateAccordanceTypesResponseType; +export declare function ProductProductCertificateAccordanceTypesResponseTypeToJSON(value?: ProductProductCertificateAccordanceTypesResponseType | null): any; diff --git a/dist/models/ProductProductCertificateAccordanceTypesResponseType.js b/dist/models/ProductProductCertificateAccordanceTypesResponseType.js new file mode 100644 index 0000000..7c097da --- /dev/null +++ b/dist/models/ProductProductCertificateAccordanceTypesResponseType.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductCertificateAccordanceTypesResponseType = instanceOfProductProductCertificateAccordanceTypesResponseType; +exports.ProductProductCertificateAccordanceTypesResponseTypeFromJSON = ProductProductCertificateAccordanceTypesResponseTypeFromJSON; +exports.ProductProductCertificateAccordanceTypesResponseTypeFromJSONTyped = ProductProductCertificateAccordanceTypesResponseTypeFromJSONTyped; +exports.ProductProductCertificateAccordanceTypesResponseTypeToJSON = ProductProductCertificateAccordanceTypesResponseTypeToJSON; +/** + * Check if a given object implements the ProductProductCertificateAccordanceTypesResponseType interface. + */ +function instanceOfProductProductCertificateAccordanceTypesResponseType(value) { + return true; +} +function ProductProductCertificateAccordanceTypesResponseTypeFromJSON(json) { + return ProductProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json, false); +} +function ProductProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ProductProductCertificateAccordanceTypesResponseTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'value': value['value'], + }; +} diff --git a/dist/models/ProductProductCertificateBindRequest.d.ts b/dist/models/ProductProductCertificateBindRequest.d.ts new file mode 100644 index 0000000..9e66e32 --- /dev/null +++ b/dist/models/ProductProductCertificateBindRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductCertificateBindRequest + */ +export interface ProductProductCertificateBindRequest { + /** + * Идентификатор сертификата, который был присвоен при его загрузке. + * @type {number} + * @memberof ProductProductCertificateBindRequest + */ + certificate_id: number; + /** + * Массив идентификаторов товаров в системе Ozon — `product_id`, к которым относится этот сертификат. + * @type {Array} + * @memberof ProductProductCertificateBindRequest + * @deprecated + */ + product_id?: Array; + /** + * Список идентификаторов товаров в системе Ozon — SKU, к которым относится этот сертификат. + * @type {Array} + * @memberof ProductProductCertificateBindRequest + */ + skus?: Array; +} +/** + * Check if a given object implements the ProductProductCertificateBindRequest interface. + */ +export declare function instanceOfProductProductCertificateBindRequest(value: object): value is ProductProductCertificateBindRequest; +export declare function ProductProductCertificateBindRequestFromJSON(json: any): ProductProductCertificateBindRequest; +export declare function ProductProductCertificateBindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateBindRequest; +export declare function ProductProductCertificateBindRequestToJSON(value?: ProductProductCertificateBindRequest | null): any; diff --git a/dist/models/ProductProductCertificateBindRequest.js b/dist/models/ProductProductCertificateBindRequest.js new file mode 100644 index 0000000..0b1bc78 --- /dev/null +++ b/dist/models/ProductProductCertificateBindRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductCertificateBindRequest = instanceOfProductProductCertificateBindRequest; +exports.ProductProductCertificateBindRequestFromJSON = ProductProductCertificateBindRequestFromJSON; +exports.ProductProductCertificateBindRequestFromJSONTyped = ProductProductCertificateBindRequestFromJSONTyped; +exports.ProductProductCertificateBindRequestToJSON = ProductProductCertificateBindRequestToJSON; +/** + * Check if a given object implements the ProductProductCertificateBindRequest interface. + */ +function instanceOfProductProductCertificateBindRequest(value) { + if (!('certificate_id' in value) || value['certificate_id'] === undefined) + return false; + return true; +} +function ProductProductCertificateBindRequestFromJSON(json) { + return ProductProductCertificateBindRequestFromJSONTyped(json, false); +} +function ProductProductCertificateBindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +function ProductProductCertificateBindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'product_id': value['product_id'], + 'skus': value['skus'], + }; +} diff --git a/dist/models/ProductProductCertificateTypesResponse.d.ts b/dist/models/ProductProductCertificateTypesResponse.d.ts new file mode 100644 index 0000000..724c35e --- /dev/null +++ b/dist/models/ProductProductCertificateTypesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductProductCertificateTypesResponseType } from './ProductProductCertificateTypesResponseType'; +/** + * + * @export + * @interface ProductProductCertificateTypesResponse + */ +export interface ProductProductCertificateTypesResponse { + /** + * Список типов и названий сертификатов. + * @type {Array} + * @memberof ProductProductCertificateTypesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the ProductProductCertificateTypesResponse interface. + */ +export declare function instanceOfProductProductCertificateTypesResponse(value: object): value is ProductProductCertificateTypesResponse; +export declare function ProductProductCertificateTypesResponseFromJSON(json: any): ProductProductCertificateTypesResponse; +export declare function ProductProductCertificateTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateTypesResponse; +export declare function ProductProductCertificateTypesResponseToJSON(value?: ProductProductCertificateTypesResponse | null): any; diff --git a/dist/models/ProductProductCertificateTypesResponse.js b/dist/models/ProductProductCertificateTypesResponse.js new file mode 100644 index 0000000..b79142a --- /dev/null +++ b/dist/models/ProductProductCertificateTypesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductCertificateTypesResponse = instanceOfProductProductCertificateTypesResponse; +exports.ProductProductCertificateTypesResponseFromJSON = ProductProductCertificateTypesResponseFromJSON; +exports.ProductProductCertificateTypesResponseFromJSONTyped = ProductProductCertificateTypesResponseFromJSONTyped; +exports.ProductProductCertificateTypesResponseToJSON = ProductProductCertificateTypesResponseToJSON; +const ProductProductCertificateTypesResponseType_1 = require("./ProductProductCertificateTypesResponseType"); +/** + * Check if a given object implements the ProductProductCertificateTypesResponse interface. + */ +function instanceOfProductProductCertificateTypesResponse(value) { + return true; +} +function ProductProductCertificateTypesResponseFromJSON(json) { + return ProductProductCertificateTypesResponseFromJSONTyped(json, false); +} +function ProductProductCertificateTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ProductProductCertificateTypesResponseType_1.ProductProductCertificateTypesResponseTypeFromJSON)), + }; +} +function ProductProductCertificateTypesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ProductProductCertificateTypesResponseType_1.ProductProductCertificateTypesResponseTypeToJSON)), + }; +} diff --git a/dist/models/ProductProductCertificateTypesResponseType.d.ts b/dist/models/ProductProductCertificateTypesResponseType.d.ts new file mode 100644 index 0000000..abe5ebd --- /dev/null +++ b/dist/models/ProductProductCertificateTypesResponseType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductCertificateTypesResponseType + */ +export interface ProductProductCertificateTypesResponseType { + /** + * Название документа. + * @type {string} + * @memberof ProductProductCertificateTypesResponseType + */ + name?: string; + /** + * Значение справочника. + * @type {string} + * @memberof ProductProductCertificateTypesResponseType + */ + value?: string; +} +/** + * Check if a given object implements the ProductProductCertificateTypesResponseType interface. + */ +export declare function instanceOfProductProductCertificateTypesResponseType(value: object): value is ProductProductCertificateTypesResponseType; +export declare function ProductProductCertificateTypesResponseTypeFromJSON(json: any): ProductProductCertificateTypesResponseType; +export declare function ProductProductCertificateTypesResponseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificateTypesResponseType; +export declare function ProductProductCertificateTypesResponseTypeToJSON(value?: ProductProductCertificateTypesResponseType | null): any; diff --git a/dist/models/ProductProductCertificateTypesResponseType.js b/dist/models/ProductProductCertificateTypesResponseType.js new file mode 100644 index 0000000..2a76f5c --- /dev/null +++ b/dist/models/ProductProductCertificateTypesResponseType.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductCertificateTypesResponseType = instanceOfProductProductCertificateTypesResponseType; +exports.ProductProductCertificateTypesResponseTypeFromJSON = ProductProductCertificateTypesResponseTypeFromJSON; +exports.ProductProductCertificateTypesResponseTypeFromJSONTyped = ProductProductCertificateTypesResponseTypeFromJSONTyped; +exports.ProductProductCertificateTypesResponseTypeToJSON = ProductProductCertificateTypesResponseTypeToJSON; +/** + * Check if a given object implements the ProductProductCertificateTypesResponseType interface. + */ +function instanceOfProductProductCertificateTypesResponseType(value) { + return true; +} +function ProductProductCertificateTypesResponseTypeFromJSON(json) { + return ProductProductCertificateTypesResponseTypeFromJSONTyped(json, false); +} +function ProductProductCertificateTypesResponseTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ProductProductCertificateTypesResponseTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'value': value['value'], + }; +} diff --git a/dist/models/ProductProductCertificationListRequest.d.ts b/dist/models/ProductProductCertificationListRequest.d.ts new file mode 100644 index 0000000..165119f --- /dev/null +++ b/dist/models/ProductProductCertificationListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductCertificationListRequest + */ +export interface ProductProductCertificationListRequest { + /** + * Номер страницы, возвращаемой в запросе. + * @type {number} + * @memberof ProductProductCertificationListRequest + */ + page?: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof ProductProductCertificationListRequest + */ + page_size?: number; +} +/** + * Check if a given object implements the ProductProductCertificationListRequest interface. + */ +export declare function instanceOfProductProductCertificationListRequest(value: object): value is ProductProductCertificationListRequest; +export declare function ProductProductCertificationListRequestFromJSON(json: any): ProductProductCertificationListRequest; +export declare function ProductProductCertificationListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificationListRequest; +export declare function ProductProductCertificationListRequestToJSON(value?: ProductProductCertificationListRequest | null): any; diff --git a/dist/models/ProductProductCertificationListRequest.js b/dist/models/ProductProductCertificationListRequest.js new file mode 100644 index 0000000..69ba4e8 --- /dev/null +++ b/dist/models/ProductProductCertificationListRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductCertificationListRequest = instanceOfProductProductCertificationListRequest; +exports.ProductProductCertificationListRequestFromJSON = ProductProductCertificationListRequestFromJSON; +exports.ProductProductCertificationListRequestFromJSONTyped = ProductProductCertificationListRequestFromJSONTyped; +exports.ProductProductCertificationListRequestToJSON = ProductProductCertificationListRequestToJSON; +/** + * Check if a given object implements the ProductProductCertificationListRequest interface. + */ +function instanceOfProductProductCertificationListRequest(value) { + return true; +} +function ProductProductCertificationListRequestFromJSON(json) { + return ProductProductCertificationListRequestFromJSONTyped(json, false); +} +function ProductProductCertificationListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'] == null ? undefined : json['page_size'], + }; +} +function ProductProductCertificationListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/models/ProductProductCertificationListResponse.d.ts b/dist/models/ProductProductCertificationListResponse.d.ts new file mode 100644 index 0000000..8966707 --- /dev/null +++ b/dist/models/ProductProductCertificationListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificationListResponseCertificationResult } from './ProductCertificationListResponseCertificationResult'; +/** + * + * @export + * @interface ProductProductCertificationListResponse + */ +export interface ProductProductCertificationListResponse { + /** + * + * @type {ProductCertificationListResponseCertificationResult} + * @memberof ProductProductCertificationListResponse + */ + result?: ProductCertificationListResponseCertificationResult; +} +/** + * Check if a given object implements the ProductProductCertificationListResponse interface. + */ +export declare function instanceOfProductProductCertificationListResponse(value: object): value is ProductProductCertificationListResponse; +export declare function ProductProductCertificationListResponseFromJSON(json: any): ProductProductCertificationListResponse; +export declare function ProductProductCertificationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductCertificationListResponse; +export declare function ProductProductCertificationListResponseToJSON(value?: ProductProductCertificationListResponse | null): any; diff --git a/dist/models/ProductProductCertificationListResponse.js b/dist/models/ProductProductCertificationListResponse.js new file mode 100644 index 0000000..eba150a --- /dev/null +++ b/dist/models/ProductProductCertificationListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductCertificationListResponse = instanceOfProductProductCertificationListResponse; +exports.ProductProductCertificationListResponseFromJSON = ProductProductCertificationListResponseFromJSON; +exports.ProductProductCertificationListResponseFromJSONTyped = ProductProductCertificationListResponseFromJSONTyped; +exports.ProductProductCertificationListResponseToJSON = ProductProductCertificationListResponseToJSON; +const ProductCertificationListResponseCertificationResult_1 = require("./ProductCertificationListResponseCertificationResult"); +/** + * Check if a given object implements the ProductProductCertificationListResponse interface. + */ +function instanceOfProductProductCertificationListResponse(value) { + return true; +} +function ProductProductCertificationListResponseFromJSON(json) { + return ProductProductCertificationListResponseFromJSONTyped(json, false); +} +function ProductProductCertificationListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, ProductCertificationListResponseCertificationResult_1.ProductCertificationListResponseCertificationResultFromJSON)(json['result']), + }; +} +function ProductProductCertificationListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, ProductCertificationListResponseCertificationResult_1.ProductCertificationListResponseCertificationResultToJSON)(value['result']), + }; +} diff --git a/dist/models/ProductProductInfoPicturesResponsePicture.d.ts b/dist/models/ProductProductInfoPicturesResponsePicture.d.ts new file mode 100644 index 0000000..6af3165 --- /dev/null +++ b/dist/models/ProductProductInfoPicturesResponsePicture.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductInfoPicturesResponsePicture + */ +export interface ProductProductInfoPicturesResponsePicture { + /** + * Признак, что картинка — образец цвета. + * @type {boolean} + * @memberof ProductProductInfoPicturesResponsePicture + */ + is_color?: boolean; + /** + * Признак, что картинка — главное изображение. + * @type {boolean} + * @memberof ProductProductInfoPicturesResponsePicture + */ + is_primary?: boolean; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductProductInfoPicturesResponsePicture + */ + product_id?: number; + /** + * Статус загрузки изображения. + * + * Если вызывали метод [/v1/product/pictures/import](#operation/ProductAPI_ProductImportPictures), в ответе метода всегда будет `imported` — картинка не обработана. + * Чтобы посмотреть финальный статус, примерно через 10 секунд вызовите метод [/v2/product/pictures/info](#operation/ProductAPI_ProductInfoPicturesV2). + * + * @type {string} + * @memberof ProductProductInfoPicturesResponsePicture + */ + state?: string; + /** + * Адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. + * @type {string} + * @memberof ProductProductInfoPicturesResponsePicture + */ + url?: string; +} +/** + * Check if a given object implements the ProductProductInfoPicturesResponsePicture interface. + */ +export declare function instanceOfProductProductInfoPicturesResponsePicture(value: object): value is ProductProductInfoPicturesResponsePicture; +export declare function ProductProductInfoPicturesResponsePictureFromJSON(json: any): ProductProductInfoPicturesResponsePicture; +export declare function ProductProductInfoPicturesResponsePictureFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductInfoPicturesResponsePicture; +export declare function ProductProductInfoPicturesResponsePictureToJSON(value?: ProductProductInfoPicturesResponsePicture | null): any; diff --git a/dist/models/ProductProductInfoPicturesResponsePicture.js b/dist/models/ProductProductInfoPicturesResponsePicture.js new file mode 100644 index 0000000..eb9189b --- /dev/null +++ b/dist/models/ProductProductInfoPicturesResponsePicture.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductInfoPicturesResponsePicture = instanceOfProductProductInfoPicturesResponsePicture; +exports.ProductProductInfoPicturesResponsePictureFromJSON = ProductProductInfoPicturesResponsePictureFromJSON; +exports.ProductProductInfoPicturesResponsePictureFromJSONTyped = ProductProductInfoPicturesResponsePictureFromJSONTyped; +exports.ProductProductInfoPicturesResponsePictureToJSON = ProductProductInfoPicturesResponsePictureToJSON; +/** + * Check if a given object implements the ProductProductInfoPicturesResponsePicture interface. + */ +function instanceOfProductProductInfoPicturesResponsePicture(value) { + return true; +} +function ProductProductInfoPicturesResponsePictureFromJSON(json) { + return ProductProductInfoPicturesResponsePictureFromJSONTyped(json, false); +} +function ProductProductInfoPicturesResponsePictureFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_color': json['is_color'] == null ? undefined : json['is_color'], + 'is_primary': json['is_primary'] == null ? undefined : json['is_primary'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'state': json['state'] == null ? undefined : json['state'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +function ProductProductInfoPicturesResponsePictureToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_color': value['is_color'], + 'is_primary': value['is_primary'], + 'product_id': value['product_id'], + 'state': value['state'], + 'url': value['url'], + }; +} diff --git a/dist/models/ProductProductUnarchiveRequest.d.ts b/dist/models/ProductProductUnarchiveRequest.d.ts new file mode 100644 index 0000000..4666c87 --- /dev/null +++ b/dist/models/ProductProductUnarchiveRequest.d.ts @@ -0,0 +1,36 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductProductUnarchiveRequest + */ +export interface ProductProductUnarchiveRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. Вы можете передать до 100 идентификаторов за раз. + * + * В сутки можно восстановить из архива не больше 100 товаров, которые были архивированы автоматически. + * Лимит обновляется в 03:00 по московскому времени. + * На разархивацию товаров, перенесённых в архив вручную, ограничений нет. + * + * @type {Array} + * @memberof ProductProductUnarchiveRequest + */ + product_id: Array; +} +/** + * Check if a given object implements the ProductProductUnarchiveRequest interface. + */ +export declare function instanceOfProductProductUnarchiveRequest(value: object): value is ProductProductUnarchiveRequest; +export declare function ProductProductUnarchiveRequestFromJSON(json: any): ProductProductUnarchiveRequest; +export declare function ProductProductUnarchiveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductProductUnarchiveRequest; +export declare function ProductProductUnarchiveRequestToJSON(value?: ProductProductUnarchiveRequest | null): any; diff --git a/dist/models/ProductProductUnarchiveRequest.js b/dist/models/ProductProductUnarchiveRequest.js new file mode 100644 index 0000000..cfa65ed --- /dev/null +++ b/dist/models/ProductProductUnarchiveRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductProductUnarchiveRequest = instanceOfProductProductUnarchiveRequest; +exports.ProductProductUnarchiveRequestFromJSON = ProductProductUnarchiveRequestFromJSON; +exports.ProductProductUnarchiveRequestFromJSONTyped = ProductProductUnarchiveRequestFromJSONTyped; +exports.ProductProductUnarchiveRequestToJSON = ProductProductUnarchiveRequestToJSON; +/** + * Check if a given object implements the ProductProductUnarchiveRequest interface. + */ +function instanceOfProductProductUnarchiveRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function ProductProductUnarchiveRequestFromJSON(json) { + return ProductProductUnarchiveRequestFromJSONTyped(json, false); +} +function ProductProductUnarchiveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +function ProductProductUnarchiveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/ProductUpdateOfferIdRequestUpdateOfferId.d.ts b/dist/models/ProductUpdateOfferIdRequestUpdateOfferId.d.ts new file mode 100644 index 0000000..faadb96 --- /dev/null +++ b/dist/models/ProductUpdateOfferIdRequestUpdateOfferId.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductUpdateOfferIdRequestUpdateOfferId + */ +export interface ProductUpdateOfferIdRequestUpdateOfferId { + /** + * Новый артикул. + * + * @type {string} + * @memberof ProductUpdateOfferIdRequestUpdateOfferId + */ + new_offer_id: string; + /** + * Старый артикул. + * @type {string} + * @memberof ProductUpdateOfferIdRequestUpdateOfferId + */ + offer_id: string; +} +/** + * Check if a given object implements the ProductUpdateOfferIdRequestUpdateOfferId interface. + */ +export declare function instanceOfProductUpdateOfferIdRequestUpdateOfferId(value: object): value is ProductUpdateOfferIdRequestUpdateOfferId; +export declare function ProductUpdateOfferIdRequestUpdateOfferIdFromJSON(json: any): ProductUpdateOfferIdRequestUpdateOfferId; +export declare function ProductUpdateOfferIdRequestUpdateOfferIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductUpdateOfferIdRequestUpdateOfferId; +export declare function ProductUpdateOfferIdRequestUpdateOfferIdToJSON(value?: ProductUpdateOfferIdRequestUpdateOfferId | null): any; diff --git a/dist/models/ProductUpdateOfferIdRequestUpdateOfferId.js b/dist/models/ProductUpdateOfferIdRequestUpdateOfferId.js new file mode 100644 index 0000000..bcd2a69 --- /dev/null +++ b/dist/models/ProductUpdateOfferIdRequestUpdateOfferId.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductUpdateOfferIdRequestUpdateOfferId = instanceOfProductUpdateOfferIdRequestUpdateOfferId; +exports.ProductUpdateOfferIdRequestUpdateOfferIdFromJSON = ProductUpdateOfferIdRequestUpdateOfferIdFromJSON; +exports.ProductUpdateOfferIdRequestUpdateOfferIdFromJSONTyped = ProductUpdateOfferIdRequestUpdateOfferIdFromJSONTyped; +exports.ProductUpdateOfferIdRequestUpdateOfferIdToJSON = ProductUpdateOfferIdRequestUpdateOfferIdToJSON; +/** + * Check if a given object implements the ProductUpdateOfferIdRequestUpdateOfferId interface. + */ +function instanceOfProductUpdateOfferIdRequestUpdateOfferId(value) { + if (!('new_offer_id' in value) || value['new_offer_id'] === undefined) + return false; + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + return true; +} +function ProductUpdateOfferIdRequestUpdateOfferIdFromJSON(json) { + return ProductUpdateOfferIdRequestUpdateOfferIdFromJSONTyped(json, false); +} +function ProductUpdateOfferIdRequestUpdateOfferIdFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'new_offer_id': json['new_offer_id'], + 'offer_id': json['offer_id'], + }; +} +function ProductUpdateOfferIdRequestUpdateOfferIdToJSON(value) { + if (value == null) { + return value; + } + return { + 'new_offer_id': value['new_offer_id'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.d.ts b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.d.ts new file mode 100644 index 0000000..fdbef94 --- /dev/null +++ b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1GetProductInfoStocksByWarehouseFboRequest + */ +export interface ProductV1GetProductInfoStocksByWarehouseFboRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboRequest + */ + cursor?: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboRequest + */ + limit: number; + /** + * Идентификатор товаров в системе продавца — артикул. + * @type {Array} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboRequest + */ + offer_ids?: Array; + /** + * Идентификатор товаров в системе Ozon — SKU. + * @type {Array} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboRequest + */ + skus?: Array; +} +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboRequest interface. + */ +export declare function instanceOfProductV1GetProductInfoStocksByWarehouseFboRequest(value: object): value is ProductV1GetProductInfoStocksByWarehouseFboRequest; +export declare function ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSON(json: any): ProductV1GetProductInfoStocksByWarehouseFboRequest; +export declare function ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1GetProductInfoStocksByWarehouseFboRequest; +export declare function ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON(value?: ProductV1GetProductInfoStocksByWarehouseFboRequest | null): any; diff --git a/dist/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.js b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.js new file mode 100644 index 0000000..edcc91a --- /dev/null +++ b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1GetProductInfoStocksByWarehouseFboRequest = instanceOfProductV1GetProductInfoStocksByWarehouseFboRequest; +exports.ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSON = ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSON; +exports.ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSONTyped = ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSONTyped; +exports.ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON = ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON; +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboRequest interface. + */ +function instanceOfProductV1GetProductInfoStocksByWarehouseFboRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSON(json) { + return ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSONTyped(json, false); +} +function ProductV1GetProductInfoStocksByWarehouseFboRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + 'offer_ids': json['offer_ids'] == null ? undefined : json['offer_ids'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +function ProductV1GetProductInfoStocksByWarehouseFboRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + 'offer_ids': value['offer_ids'], + 'skus': value['skus'], + }; +} diff --git a/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.d.ts b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.d.ts new file mode 100644 index 0000000..a5e2049 --- /dev/null +++ b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1GetProductInfoStocksByWarehouseFboResponseProduct } from './ProductV1GetProductInfoStocksByWarehouseFboResponseProduct'; +/** + * + * @export + * @interface ProductV1GetProductInfoStocksByWarehouseFboResponse + */ +export interface ProductV1GetProductInfoStocksByWarehouseFboResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponse + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все значения. + * + * @type {boolean} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponse + */ + has_next?: boolean; + /** + * Остатки товаров FBO. + * @type {Array} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponse + */ + products?: Array; +} +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboResponse interface. + */ +export declare function instanceOfProductV1GetProductInfoStocksByWarehouseFboResponse(value: object): value is ProductV1GetProductInfoStocksByWarehouseFboResponse; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON(json: any): ProductV1GetProductInfoStocksByWarehouseFboResponse; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1GetProductInfoStocksByWarehouseFboResponse; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseToJSON(value?: ProductV1GetProductInfoStocksByWarehouseFboResponse | null): any; diff --git a/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.js b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.js new file mode 100644 index 0000000..3d97c0b --- /dev/null +++ b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1GetProductInfoStocksByWarehouseFboResponse = instanceOfProductV1GetProductInfoStocksByWarehouseFboResponse; +exports.ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON = ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON; +exports.ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSONTyped = ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSONTyped; +exports.ProductV1GetProductInfoStocksByWarehouseFboResponseToJSON = ProductV1GetProductInfoStocksByWarehouseFboResponseToJSON; +const ProductV1GetProductInfoStocksByWarehouseFboResponseProduct_1 = require("./ProductV1GetProductInfoStocksByWarehouseFboResponseProduct"); +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboResponse interface. + */ +function instanceOfProductV1GetProductInfoStocksByWarehouseFboResponse(value) { + return true; +} +function ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSON(json) { + return ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSONTyped(json, false); +} +function ProductV1GetProductInfoStocksByWarehouseFboResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(ProductV1GetProductInfoStocksByWarehouseFboResponseProduct_1.ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON)), + }; +} +function ProductV1GetProductInfoStocksByWarehouseFboResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(ProductV1GetProductInfoStocksByWarehouseFboResponseProduct_1.ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON)), + }; +} diff --git a/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.d.ts b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.d.ts new file mode 100644 index 0000000..e872669 --- /dev/null +++ b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ +export interface ProductV1GetProductInfoStocksByWarehouseFboResponseProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + offer_id?: string; + /** + * Общее количество товара на складе. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + present?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + product_id?: number; + /** + * Количество зарезервированных товаров на складе. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + reserved?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + sku?: number; + /** + * Идентификатор склада. Можно получить с помощью метода [/v1/warehouse/ozon/list](#operation/WarehouseOZONList). + * @type {number} + * @memberof ProductV1GetProductInfoStocksByWarehouseFboResponseProduct + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboResponseProduct interface. + */ +export declare function instanceOfProductV1GetProductInfoStocksByWarehouseFboResponseProduct(value: object): value is ProductV1GetProductInfoStocksByWarehouseFboResponseProduct; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON(json: any): ProductV1GetProductInfoStocksByWarehouseFboResponseProduct; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1GetProductInfoStocksByWarehouseFboResponseProduct; +export declare function ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON(value?: ProductV1GetProductInfoStocksByWarehouseFboResponseProduct | null): any; diff --git a/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.js b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.js new file mode 100644 index 0000000..502647b --- /dev/null +++ b/dist/models/ProductV1GetProductInfoStocksByWarehouseFboResponseProduct.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1GetProductInfoStocksByWarehouseFboResponseProduct = instanceOfProductV1GetProductInfoStocksByWarehouseFboResponseProduct; +exports.ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON = ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON; +exports.ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSONTyped = ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSONTyped; +exports.ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON = ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON; +/** + * Check if a given object implements the ProductV1GetProductInfoStocksByWarehouseFboResponseProduct interface. + */ +function instanceOfProductV1GetProductInfoStocksByWarehouseFboResponseProduct(value) { + return true; +} +function ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSON(json) { + return ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSONTyped(json, false); +} +function ProductV1GetProductInfoStocksByWarehouseFboResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'present': json['present'] == null ? undefined : json['present'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function ProductV1GetProductInfoStocksByWarehouseFboResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'present': value['present'], + 'product_id': value['product_id'], + 'reserved': value['reserved'], + 'sku': value['sku'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.d.ts b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.d.ts new file mode 100644 index 0000000..17affbf --- /dev/null +++ b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf } from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf'; +import type { ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData } from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData'; +/** + * + * @export + * @interface ProductV1ProductPricesDetailsResponsePricePriceIndex + */ +export interface ProductV1ProductPricesDetailsResponsePricePriceIndex { + /** + * + * @type {ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndex + */ + external_index_data?: ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; + /** + * + * @type {ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndex + */ + self_index_data?: ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +} +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndex interface. + */ +export declare function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndex(value: object): value is ProductV1ProductPricesDetailsResponsePricePriceIndex; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON(json: any): ProductV1ProductPricesDetailsResponsePricePriceIndex; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductPricesDetailsResponsePricePriceIndex; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON(value?: ProductV1ProductPricesDetailsResponsePricePriceIndex | null): any; diff --git a/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.js b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.js new file mode 100644 index 0000000..b57351f --- /dev/null +++ b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndex.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductPricesDetailsResponsePricePriceIndex = instanceOfProductV1ProductPricesDetailsResponsePricePriceIndex; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON = ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSONTyped = ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSONTyped; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON = ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON; +const ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf_1 = require("./ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf"); +const ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData_1 = require("./ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData"); +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndex interface. + */ +function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndex(value) { + return true; +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON(json) { + return ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSONTyped(json, false); +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'external_index_data': json['external_index_data'] == null ? undefined : (0, ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData_1.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON)(json['external_index_data']), + 'self_index_data': json['self_index_data'] == null ? undefined : (0, ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf_1.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON)(json['self_index_data']), + }; +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON(value) { + if (value == null) { + return value; + } + return { + 'external_index_data': (0, ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData_1.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON)(value['external_index_data']), + 'self_index_data': (0, ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf_1.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON)(value['self_index_data']), + }; +} diff --git a/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.d.ts b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.d.ts new file mode 100644 index 0000000..1e3fdf3 --- /dev/null +++ b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoney } from './MoneyMoney'; +/** + * Цена товара конкурента. + * @export + * @interface ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData + */ +export interface ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData { + /** + * + * @type {MoneyMoney} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData + */ + min_price?: MoneyMoney; + /** + * Индекс цены. + * @type {number} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData + */ + price_index?: number; + /** + * Ссылка на товар конкурента. + * @type {string} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData + */ + url?: string; +} +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData interface. + */ +export declare function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexData(value: object): value is ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON(json: any): ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON(value?: ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData | null): any; diff --git a/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.js b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.js new file mode 100644 index 0000000..bfd8a8c --- /dev/null +++ b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexData = instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexData; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON = ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSONTyped = ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSONTyped; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON = ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON; +const MoneyMoney_1 = require("./MoneyMoney"); +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData interface. + */ +function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexData(value) { + return true; +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSON(json) { + return ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSONTyped(json, false); +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : (0, MoneyMoney_1.MoneyMoneyFromJSON)(json['min_price']), + 'price_index': json['price_index'] == null ? undefined : json['price_index'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': (0, MoneyMoney_1.MoneyMoneyToJSON)(value['min_price']), + 'price_index': value['price_index'], + 'url': value['url'], + }; +} diff --git a/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.d.ts b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.d.ts new file mode 100644 index 0000000..a4c444f --- /dev/null +++ b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySelf } from './MoneyMoneySelf'; +/** + * Цена вашего товара. + * @export + * @interface ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf + */ +export interface ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf { + /** + * + * @type {MoneyMoneySelf} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf + */ + min_price?: MoneyMoneySelf; + /** + * Индекс цены. + * @type {number} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf + */ + price_index?: number; + /** + * Ссылка на ваш товар. + * @type {string} + * @memberof ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf + */ + url?: string; +} +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf interface. + */ +export declare function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf(value: object): value is ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON(json: any): ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +export declare function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON(value?: ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf | null): any; diff --git a/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.js b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.js new file mode 100644 index 0000000..9742aff --- /dev/null +++ b/dist/models/ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf = instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON = ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSONTyped = ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSONTyped; +exports.ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON = ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON; +const MoneyMoneySelf_1 = require("./MoneyMoneySelf"); +/** + * Check if a given object implements the ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf interface. + */ +function instanceOfProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf(value) { + return true; +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSON(json) { + return ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSONTyped(json, false); +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : (0, MoneyMoneySelf_1.MoneyMoneySelfFromJSON)(json['min_price']), + 'price_index': json['price_index'] == null ? undefined : json['price_index'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +function ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelfToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': (0, MoneyMoneySelf_1.MoneyMoneySelfToJSON)(value['min_price']), + 'price_index': value['price_index'], + 'url': value['url'], + }; +} diff --git a/dist/models/ProductV1ProductVisibilityInfoRequest.d.ts b/dist/models/ProductV1ProductVisibilityInfoRequest.d.ts new file mode 100644 index 0000000..d1538eb --- /dev/null +++ b/dist/models/ProductV1ProductVisibilityInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1ProductVisibilityInfoRequest + */ +export interface ProductV1ProductVisibilityInfoRequest { + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof ProductV1ProductVisibilityInfoRequest + */ + skus?: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoRequest interface. + */ +export declare function instanceOfProductV1ProductVisibilityInfoRequest(value: object): value is ProductV1ProductVisibilityInfoRequest; +export declare function ProductV1ProductVisibilityInfoRequestFromJSON(json: any): ProductV1ProductVisibilityInfoRequest; +export declare function ProductV1ProductVisibilityInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilityInfoRequest; +export declare function ProductV1ProductVisibilityInfoRequestToJSON(value?: ProductV1ProductVisibilityInfoRequest | null): any; diff --git a/dist/models/ProductV1ProductVisibilityInfoRequest.js b/dist/models/ProductV1ProductVisibilityInfoRequest.js new file mode 100644 index 0000000..7b1bb7a --- /dev/null +++ b/dist/models/ProductV1ProductVisibilityInfoRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductVisibilityInfoRequest = instanceOfProductV1ProductVisibilityInfoRequest; +exports.ProductV1ProductVisibilityInfoRequestFromJSON = ProductV1ProductVisibilityInfoRequestFromJSON; +exports.ProductV1ProductVisibilityInfoRequestFromJSONTyped = ProductV1ProductVisibilityInfoRequestFromJSONTyped; +exports.ProductV1ProductVisibilityInfoRequestToJSON = ProductV1ProductVisibilityInfoRequestToJSON; +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoRequest interface. + */ +function instanceOfProductV1ProductVisibilityInfoRequest(value) { + return true; +} +function ProductV1ProductVisibilityInfoRequestFromJSON(json) { + return ProductV1ProductVisibilityInfoRequestFromJSONTyped(json, false); +} +function ProductV1ProductVisibilityInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +function ProductV1ProductVisibilityInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/models/ProductV1ProductVisibilityInfoResponse.d.ts b/dist/models/ProductV1ProductVisibilityInfoResponse.d.ts new file mode 100644 index 0000000..5e57799 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilityInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilityInfoResponseItem } from './ProductV1ProductVisibilityInfoResponseItem'; +/** + * + * @export + * @interface ProductV1ProductVisibilityInfoResponse + */ +export interface ProductV1ProductVisibilityInfoResponse { + /** + * Список товаров. + * @type {Array} + * @memberof ProductV1ProductVisibilityInfoResponse + */ + items?: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoResponse interface. + */ +export declare function instanceOfProductV1ProductVisibilityInfoResponse(value: object): value is ProductV1ProductVisibilityInfoResponse; +export declare function ProductV1ProductVisibilityInfoResponseFromJSON(json: any): ProductV1ProductVisibilityInfoResponse; +export declare function ProductV1ProductVisibilityInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilityInfoResponse; +export declare function ProductV1ProductVisibilityInfoResponseToJSON(value?: ProductV1ProductVisibilityInfoResponse | null): any; diff --git a/dist/models/ProductV1ProductVisibilityInfoResponse.js b/dist/models/ProductV1ProductVisibilityInfoResponse.js new file mode 100644 index 0000000..6b85359 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilityInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductVisibilityInfoResponse = instanceOfProductV1ProductVisibilityInfoResponse; +exports.ProductV1ProductVisibilityInfoResponseFromJSON = ProductV1ProductVisibilityInfoResponseFromJSON; +exports.ProductV1ProductVisibilityInfoResponseFromJSONTyped = ProductV1ProductVisibilityInfoResponseFromJSONTyped; +exports.ProductV1ProductVisibilityInfoResponseToJSON = ProductV1ProductVisibilityInfoResponseToJSON; +const ProductV1ProductVisibilityInfoResponseItem_1 = require("./ProductV1ProductVisibilityInfoResponseItem"); +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoResponse interface. + */ +function instanceOfProductV1ProductVisibilityInfoResponse(value) { + return true; +} +function ProductV1ProductVisibilityInfoResponseFromJSON(json) { + return ProductV1ProductVisibilityInfoResponseFromJSONTyped(json, false); +} +function ProductV1ProductVisibilityInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductV1ProductVisibilityInfoResponseItem_1.ProductV1ProductVisibilityInfoResponseItemFromJSON)), + }; +} +function ProductV1ProductVisibilityInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductV1ProductVisibilityInfoResponseItem_1.ProductV1ProductVisibilityInfoResponseItemToJSON)), + }; +} diff --git a/dist/models/ProductV1ProductVisibilityInfoResponseItem.d.ts b/dist/models/ProductV1ProductVisibilityInfoResponseItem.d.ts new file mode 100644 index 0000000..0902958 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilityInfoResponseItem.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum } from './ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum'; +/** + * + * @export + * @interface ProductV1ProductVisibilityInfoResponseItem + */ +export interface ProductV1ProductVisibilityInfoResponseItem { + /** + * + * @type {ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum} + * @memberof ProductV1ProductVisibilityInfoResponseItem + */ + showcases_visibility?: ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1ProductVisibilityInfoResponseItem + */ + sku?: number; +} +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoResponseItem interface. + */ +export declare function instanceOfProductV1ProductVisibilityInfoResponseItem(value: object): value is ProductV1ProductVisibilityInfoResponseItem; +export declare function ProductV1ProductVisibilityInfoResponseItemFromJSON(json: any): ProductV1ProductVisibilityInfoResponseItem; +export declare function ProductV1ProductVisibilityInfoResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilityInfoResponseItem; +export declare function ProductV1ProductVisibilityInfoResponseItemToJSON(value?: ProductV1ProductVisibilityInfoResponseItem | null): any; diff --git a/dist/models/ProductV1ProductVisibilityInfoResponseItem.js b/dist/models/ProductV1ProductVisibilityInfoResponseItem.js new file mode 100644 index 0000000..ddcb2d8 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilityInfoResponseItem.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductVisibilityInfoResponseItem = instanceOfProductV1ProductVisibilityInfoResponseItem; +exports.ProductV1ProductVisibilityInfoResponseItemFromJSON = ProductV1ProductVisibilityInfoResponseItemFromJSON; +exports.ProductV1ProductVisibilityInfoResponseItemFromJSONTyped = ProductV1ProductVisibilityInfoResponseItemFromJSONTyped; +exports.ProductV1ProductVisibilityInfoResponseItemToJSON = ProductV1ProductVisibilityInfoResponseItemToJSON; +const ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum_1 = require("./ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum"); +/** + * Check if a given object implements the ProductV1ProductVisibilityInfoResponseItem interface. + */ +function instanceOfProductV1ProductVisibilityInfoResponseItem(value) { + return true; +} +function ProductV1ProductVisibilityInfoResponseItemFromJSON(json) { + return ProductV1ProductVisibilityInfoResponseItemFromJSONTyped(json, false); +} +function ProductV1ProductVisibilityInfoResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'showcases_visibility': json['showcases_visibility'] == null ? undefined : (0, ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum_1.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON)(json['showcases_visibility']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function ProductV1ProductVisibilityInfoResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'showcases_visibility': (0, ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum_1.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON)(value['showcases_visibility']), + 'sku': value['sku'], + }; +} diff --git a/dist/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.d.ts b/dist/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.d.ts new file mode 100644 index 0000000..2985b7d --- /dev/null +++ b/dist/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * На каких витринах показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export declare const ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; + readonly OZON_SELECT: "OZON_SELECT"; + readonly NONE: "NONE"; +}; +export type ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum = typeof ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum[keyof typeof ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum]; +export declare function instanceOfProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum(value: any): boolean; +export declare function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON(json: any): ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum; +export declare function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum; +export declare function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON(value?: ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum | null): any; diff --git a/dist/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.js b/dist/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.js new file mode 100644 index 0000000..a25d893 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum = void 0; +exports.instanceOfProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum = instanceOfProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum; +exports.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON = ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON; +exports.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSONTyped = ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSONTyped; +exports.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON = ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON; +/** + * На каких витринах показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +exports.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT', + OZON_SELECT: 'OZON_SELECT', + NONE: 'NONE' +}; +function instanceOfProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum(value) { + for (const key in exports.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum, key)) { + if (exports.ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSON(json) { + return ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSONTyped(json, false); +} +function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductV1ProductVisibilitySetRequest.d.ts b/dist/models/ProductV1ProductVisibilitySetRequest.d.ts new file mode 100644 index 0000000..6b156d8 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilitySetRequestItemPlacement } from './ProductV1ProductVisibilitySetRequestItemPlacement'; +/** + * + * @export + * @interface ProductV1ProductVisibilitySetRequest + */ +export interface ProductV1ProductVisibilitySetRequest { + /** + * Информация о видимости товара. + * @type {Array} + * @memberof ProductV1ProductVisibilitySetRequest + */ + item_placement: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetRequest interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetRequest(value: object): value is ProductV1ProductVisibilitySetRequest; +export declare function ProductV1ProductVisibilitySetRequestFromJSON(json: any): ProductV1ProductVisibilitySetRequest; +export declare function ProductV1ProductVisibilitySetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetRequest; +export declare function ProductV1ProductVisibilitySetRequestToJSON(value?: ProductV1ProductVisibilitySetRequest | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetRequest.js b/dist/models/ProductV1ProductVisibilitySetRequest.js new file mode 100644 index 0000000..b88499f --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductVisibilitySetRequest = instanceOfProductV1ProductVisibilitySetRequest; +exports.ProductV1ProductVisibilitySetRequestFromJSON = ProductV1ProductVisibilitySetRequestFromJSON; +exports.ProductV1ProductVisibilitySetRequestFromJSONTyped = ProductV1ProductVisibilitySetRequestFromJSONTyped; +exports.ProductV1ProductVisibilitySetRequestToJSON = ProductV1ProductVisibilitySetRequestToJSON; +const ProductV1ProductVisibilitySetRequestItemPlacement_1 = require("./ProductV1ProductVisibilitySetRequestItemPlacement"); +/** + * Check if a given object implements the ProductV1ProductVisibilitySetRequest interface. + */ +function instanceOfProductV1ProductVisibilitySetRequest(value) { + if (!('item_placement' in value) || value['item_placement'] === undefined) + return false; + return true; +} +function ProductV1ProductVisibilitySetRequestFromJSON(json) { + return ProductV1ProductVisibilitySetRequestFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'item_placement': (json['item_placement'].map(ProductV1ProductVisibilitySetRequestItemPlacement_1.ProductV1ProductVisibilitySetRequestItemPlacementFromJSON)), + }; +} +function ProductV1ProductVisibilitySetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'item_placement': (value['item_placement'].map(ProductV1ProductVisibilitySetRequestItemPlacement_1.ProductV1ProductVisibilitySetRequestItemPlacementToJSON)), + }; +} diff --git a/dist/models/ProductV1ProductVisibilitySetRequestItemPlacement.d.ts b/dist/models/ProductV1ProductVisibilitySetRequestItemPlacement.d.ts new file mode 100644 index 0000000..5beb5cd --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetRequestItemPlacement.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum } from './ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum'; +/** + * + * @export + * @interface ProductV1ProductVisibilitySetRequestItemPlacement + */ +export interface ProductV1ProductVisibilitySetRequestItemPlacement { + /** + * + * @type {ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum} + * @memberof ProductV1ProductVisibilitySetRequestItemPlacement + */ + placement: ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1ProductVisibilitySetRequestItemPlacement + */ + sku: number; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetRequestItemPlacement interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetRequestItemPlacement(value: object): value is ProductV1ProductVisibilitySetRequestItemPlacement; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementFromJSON(json: any): ProductV1ProductVisibilitySetRequestItemPlacement; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetRequestItemPlacement; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementToJSON(value?: ProductV1ProductVisibilitySetRequestItemPlacement | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetRequestItemPlacement.js b/dist/models/ProductV1ProductVisibilitySetRequestItemPlacement.js new file mode 100644 index 0000000..7dc215a --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetRequestItemPlacement.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductVisibilitySetRequestItemPlacement = instanceOfProductV1ProductVisibilitySetRequestItemPlacement; +exports.ProductV1ProductVisibilitySetRequestItemPlacementFromJSON = ProductV1ProductVisibilitySetRequestItemPlacementFromJSON; +exports.ProductV1ProductVisibilitySetRequestItemPlacementFromJSONTyped = ProductV1ProductVisibilitySetRequestItemPlacementFromJSONTyped; +exports.ProductV1ProductVisibilitySetRequestItemPlacementToJSON = ProductV1ProductVisibilitySetRequestItemPlacementToJSON; +const ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum_1 = require("./ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum"); +/** + * Check if a given object implements the ProductV1ProductVisibilitySetRequestItemPlacement interface. + */ +function instanceOfProductV1ProductVisibilitySetRequestItemPlacement(value) { + if (!('placement' in value) || value['placement'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function ProductV1ProductVisibilitySetRequestItemPlacementFromJSON(json) { + return ProductV1ProductVisibilitySetRequestItemPlacementFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetRequestItemPlacementFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'placement': (0, ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum_1.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON)(json['placement']), + 'sku': json['sku'], + }; +} +function ProductV1ProductVisibilitySetRequestItemPlacementToJSON(value) { + if (value == null) { + return value; + } + return { + 'placement': (0, ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum_1.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON)(value['placement']), + 'sku': value['sku'], + }; +} diff --git a/dist/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.d.ts b/dist/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.d.ts new file mode 100644 index 0000000..88bbfd3 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Платформа для размещения товаров: + * - `OZON` — только на Ozon. + * - `SELECT` — только на Селект.
[Подробнее об Ozon Селект в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ozon-select) + * - `OZON_SELECT` — на Селект и Ozon. + * - `NONE` — товар скрыт везде. Только для продавцов, которые работают через Ozon Доставку.
[Подробнее об Ozon Доставке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ozon-logistika/osobennosti-raboty#что-такое-ozon-доставка) + * + * @export + */ +export declare const ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum: { + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; + readonly OZON_SELECT: "OZON_SELECT"; + readonly NONE: "NONE"; +}; +export type ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum = typeof ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum[keyof typeof ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum]; +export declare function instanceOfProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON(json: any): ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum; +export declare function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON(value?: ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.js b/dist/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.js new file mode 100644 index 0000000..dc4bb55 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum = void 0; +exports.instanceOfProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum = instanceOfProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum; +exports.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON = ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON; +exports.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSONTyped = ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSONTyped; +exports.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON = ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON; +/** + * Платформа для размещения товаров: + * - `OZON` — только на Ozon. + * - `SELECT` — только на Селект.
[Подробнее об Ozon Селект в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ozon-select) + * - `OZON_SELECT` — на Селект и Ozon. + * - `NONE` — товар скрыт везде. Только для продавцов, которые работают через Ozon Доставку.
[Подробнее об Ozon Доставке в Базе знаний продавца](https://seller-edu.ozon.ru/libra/ozon-logistika/osobennosti-raboty#что-такое-ozon-доставка) + * + * @export + */ +exports.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum = { + OZON: 'OZON', + SELECT: 'SELECT', + OZON_SELECT: 'OZON_SELECT', + NONE: 'NONE' +}; +function instanceOfProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum(value) { + for (const key in exports.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum, key)) { + if (exports.ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSON(json) { + return ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductV1ProductVisibilitySetResponse.d.ts b/dist/models/ProductV1ProductVisibilitySetResponse.d.ts new file mode 100644 index 0000000..b46aee7 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilitySetResponseItems } from './ProductV1ProductVisibilitySetResponseItems'; +import type { ProductV1ProductVisibilitySetResponseItemsErrors } from './ProductV1ProductVisibilitySetResponseItemsErrors'; +/** + * + * @export + * @interface ProductV1ProductVisibilitySetResponse + */ +export interface ProductV1ProductVisibilitySetResponse { + /** + * Информация о видимости товаров. + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponse + */ + items?: Array; + /** + * Товары с ошибками. + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponse + */ + items_errors?: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponse interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetResponse(value: object): value is ProductV1ProductVisibilitySetResponse; +export declare function ProductV1ProductVisibilitySetResponseFromJSON(json: any): ProductV1ProductVisibilitySetResponse; +export declare function ProductV1ProductVisibilitySetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponse; +export declare function ProductV1ProductVisibilitySetResponseToJSON(value?: ProductV1ProductVisibilitySetResponse | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetResponse.js b/dist/models/ProductV1ProductVisibilitySetResponse.js new file mode 100644 index 0000000..ad962c6 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductVisibilitySetResponse = instanceOfProductV1ProductVisibilitySetResponse; +exports.ProductV1ProductVisibilitySetResponseFromJSON = ProductV1ProductVisibilitySetResponseFromJSON; +exports.ProductV1ProductVisibilitySetResponseFromJSONTyped = ProductV1ProductVisibilitySetResponseFromJSONTyped; +exports.ProductV1ProductVisibilitySetResponseToJSON = ProductV1ProductVisibilitySetResponseToJSON; +const ProductV1ProductVisibilitySetResponseItems_1 = require("./ProductV1ProductVisibilitySetResponseItems"); +const ProductV1ProductVisibilitySetResponseItemsErrors_1 = require("./ProductV1ProductVisibilitySetResponseItemsErrors"); +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponse interface. + */ +function instanceOfProductV1ProductVisibilitySetResponse(value) { + return true; +} +function ProductV1ProductVisibilitySetResponseFromJSON(json) { + return ProductV1ProductVisibilitySetResponseFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductV1ProductVisibilitySetResponseItems_1.ProductV1ProductVisibilitySetResponseItemsFromJSON)), + 'items_errors': json['items_errors'] == null ? undefined : (json['items_errors'].map(ProductV1ProductVisibilitySetResponseItemsErrors_1.ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON)), + }; +} +function ProductV1ProductVisibilitySetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductV1ProductVisibilitySetResponseItems_1.ProductV1ProductVisibilitySetResponseItemsToJSON)), + 'items_errors': value['items_errors'] == null ? undefined : (value['items_errors'].map(ProductV1ProductVisibilitySetResponseItemsErrors_1.ProductV1ProductVisibilitySetResponseItemsErrorsToJSON)), + }; +} diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItems.d.ts b/dist/models/ProductV1ProductVisibilitySetResponseItems.d.ts new file mode 100644 index 0000000..77d5cfc --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItems.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum } from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum'; +import type { ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum } from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum'; +import type { ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum } from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum'; +import type { ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum } from './ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum'; +import type { ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum } from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum'; +/** + * + * @export + * @interface ProductV1ProductVisibilitySetResponseItems + */ +export interface ProductV1ProductVisibilitySetResponseItems { + /** + * + * @type {ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + select_permission?: ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum; + /** + * + * @type {ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + seller_item_placement?: ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum; + /** + * Список значений видимости, которые установил продавец: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект. + * + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + seller_item_placement_list?: Array; + /** + * + * @type {ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + showcases_visibility?: ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum; + /** + * Список витрин, на которых показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект. + * + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + showcases_visibility_list?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + sku?: number; + /** + * Предупреждения. + * @type {Array} + * @memberof ProductV1ProductVisibilitySetResponseItems + */ + warnings?: Array; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponseItems interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetResponseItems(value: object): value is ProductV1ProductVisibilitySetResponseItems; +export declare function ProductV1ProductVisibilitySetResponseItemsFromJSON(json: any): ProductV1ProductVisibilitySetResponseItems; +export declare function ProductV1ProductVisibilitySetResponseItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItems; +export declare function ProductV1ProductVisibilitySetResponseItemsToJSON(value?: ProductV1ProductVisibilitySetResponseItems | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItems.js b/dist/models/ProductV1ProductVisibilitySetResponseItems.js new file mode 100644 index 0000000..ccaea7b --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItems.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductVisibilitySetResponseItems = instanceOfProductV1ProductVisibilitySetResponseItems; +exports.ProductV1ProductVisibilitySetResponseItemsFromJSON = ProductV1ProductVisibilitySetResponseItemsFromJSON; +exports.ProductV1ProductVisibilitySetResponseItemsFromJSONTyped = ProductV1ProductVisibilitySetResponseItemsFromJSONTyped; +exports.ProductV1ProductVisibilitySetResponseItemsToJSON = ProductV1ProductVisibilitySetResponseItemsToJSON; +const ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum_1 = require("./ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum"); +const ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum_1 = require("./ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum"); +const ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum_1 = require("./ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum"); +const ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum_1 = require("./ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum"); +const ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum_1 = require("./ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum"); +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponseItems interface. + */ +function instanceOfProductV1ProductVisibilitySetResponseItems(value) { + return true; +} +function ProductV1ProductVisibilitySetResponseItemsFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetResponseItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'select_permission': json['select_permission'] == null ? undefined : (0, ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum_1.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON)(json['select_permission']), + 'seller_item_placement': json['seller_item_placement'] == null ? undefined : (0, ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum_1.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON)(json['seller_item_placement']), + 'seller_item_placement_list': json['seller_item_placement_list'] == null ? undefined : (json['seller_item_placement_list'].map(ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum_1.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON)), + 'showcases_visibility': json['showcases_visibility'] == null ? undefined : (0, ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum_1.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON)(json['showcases_visibility']), + 'showcases_visibility_list': json['showcases_visibility_list'] == null ? undefined : (json['showcases_visibility_list'].map(ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum_1.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'warnings': json['warnings'] == null ? undefined : json['warnings'], + }; +} +function ProductV1ProductVisibilitySetResponseItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'select_permission': (0, ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum_1.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON)(value['select_permission']), + 'seller_item_placement': (0, ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum_1.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON)(value['seller_item_placement']), + 'seller_item_placement_list': value['seller_item_placement_list'] == null ? undefined : (value['seller_item_placement_list'].map(ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum_1.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON)), + 'showcases_visibility': (0, ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum_1.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON)(value['showcases_visibility']), + 'showcases_visibility_list': value['showcases_visibility_list'] == null ? undefined : (value['showcases_visibility_list'].map(ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum_1.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON)), + 'sku': value['sku'], + 'warnings': value['warnings'], + }; +} diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsErrors.d.ts b/dist/models/ProductV1ProductVisibilitySetResponseItemsErrors.d.ts new file mode 100644 index 0000000..96e5fd2 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsErrors.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1ProductVisibilitySetResponseItemsErrors + */ +export interface ProductV1ProductVisibilitySetResponseItemsErrors { + /** + * Код ошибки. + * @type {string} + * @memberof ProductV1ProductVisibilitySetResponseItemsErrors + */ + code?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1ProductVisibilitySetResponseItemsErrors + */ + sku?: number; +} +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponseItemsErrors interface. + */ +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsErrors(value: object): value is ProductV1ProductVisibilitySetResponseItemsErrors; +export declare function ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsErrors; +export declare function ProductV1ProductVisibilitySetResponseItemsErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsErrors; +export declare function ProductV1ProductVisibilitySetResponseItemsErrorsToJSON(value?: ProductV1ProductVisibilitySetResponseItemsErrors | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsErrors.js b/dist/models/ProductV1ProductVisibilitySetResponseItemsErrors.js new file mode 100644 index 0000000..fb7603a --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsErrors.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1ProductVisibilitySetResponseItemsErrors = instanceOfProductV1ProductVisibilitySetResponseItemsErrors; +exports.ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON = ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON; +exports.ProductV1ProductVisibilitySetResponseItemsErrorsFromJSONTyped = ProductV1ProductVisibilitySetResponseItemsErrorsFromJSONTyped; +exports.ProductV1ProductVisibilitySetResponseItemsErrorsToJSON = ProductV1ProductVisibilitySetResponseItemsErrorsToJSON; +/** + * Check if a given object implements the ProductV1ProductVisibilitySetResponseItemsErrors interface. + */ +function instanceOfProductV1ProductVisibilitySetResponseItemsErrors(value) { + return true; +} +function ProductV1ProductVisibilitySetResponseItemsErrorsFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsErrorsFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetResponseItemsErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function ProductV1ProductVisibilitySetResponseItemsErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.d.ts b/dist/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.d.ts new file mode 100644 index 0000000..fffd153 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Возможность продажи товара на Ozon Селект: + * - `UNSPECIFIED` — не определено; + * - `RESTRICTED` — товар нельзя продавать; + * - `ALLOWED` — товар можно продавать. + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly RESTRICTED: "RESTRICTED"; + readonly ALLOWED: "ALLOWED"; +}; +export type ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum = typeof ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.js b/dist/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.js new file mode 100644 index 0000000..9cea44c --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum = void 0; +exports.instanceOfProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum = instanceOfProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum; +exports.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON = ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON; +exports.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSONTyped = ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSONTyped; +exports.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON = ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON; +/** + * Возможность продажи товара на Ozon Селект: + * - `UNSPECIFIED` — не определено; + * - `RESTRICTED` — товар нельзя продавать; + * - `ALLOWED` — товар можно продавать. + * + * @export + */ +exports.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum = { + UNSPECIFIED: 'UNSPECIFIED', + RESTRICTED: 'RESTRICTED', + ALLOWED: 'ALLOWED' +}; +function instanceOfProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum(value) { + for (const key in exports.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum, key)) { + if (exports.ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.d.ts b/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.d.ts new file mode 100644 index 0000000..480fffe --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Значение видимости, которое установил продавец: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; + readonly OZON_SELECT: "OZON_SELECT"; + readonly NONE: "NONE"; +}; +export type ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum = typeof ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.js b/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.js new file mode 100644 index 0000000..33decfa --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum = void 0; +exports.instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum = instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum; +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON = ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON; +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSONTyped = ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSONTyped; +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON = ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON; +/** + * Значение видимости, которое установил продавец: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT', + OZON_SELECT: 'OZON_SELECT', + NONE: 'NONE' +}; +function instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum(value) { + for (const key in exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum, key)) { + if (exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.d.ts b/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.d.ts new file mode 100644 index 0000000..dac5a30 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; +}; +export type ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum = typeof ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.js b/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.js new file mode 100644 index 0000000..6a77df7 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum = void 0; +exports.instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum = instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum; +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON = ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON; +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSONTyped = ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSONTyped; +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON = ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON; +/** + * + * @export + */ +exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT' +}; +function instanceOfProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum(value) { + for (const key in exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum, key)) { + if (exports.ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.d.ts b/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.d.ts new file mode 100644 index 0000000..1232c4e --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * На каких витринах показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; + readonly OZON_SELECT: "OZON_SELECT"; + readonly NONE: "NONE"; +}; +export type ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum = typeof ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.js b/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.js new file mode 100644 index 0000000..e809cd1 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum = void 0; +exports.instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum = instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum; +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON = ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON; +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSONTyped = ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSONTyped; +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON = ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON; +/** + * На каких витринах показывается товар: + * - `UNSPECIFIED` — не определено; + * - `OZON` — только на Ozon; + * - `SELECT` — только на Селект; + * - `OZON_SELECT` — на Селект и Ozon; + * - `NONE` — товар скрыт везде. + * + * @export + */ +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT', + OZON_SELECT: 'OZON_SELECT', + NONE: 'NONE' +}; +function instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum(value) { + for (const key in exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum, key)) { + if (exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.d.ts b/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.d.ts new file mode 100644 index 0000000..e554e06 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OZON: "OZON"; + readonly SELECT: "SELECT"; +}; +export type ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum = typeof ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum[keyof typeof ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum]; +export declare function instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum(value: any): boolean; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON(json: any): ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum; +export declare function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON(value?: ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum | null): any; diff --git a/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.js b/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.js new file mode 100644 index 0000000..a197ed0 --- /dev/null +++ b/dist/models/ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum = void 0; +exports.instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum = instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum; +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON = ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON; +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSONTyped = ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSONTyped; +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON = ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON; +/** + * + * @export + */ +exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OZON: 'OZON', + SELECT: 'SELECT' +}; +function instanceOfProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum(value) { + for (const key in exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum, key)) { + if (exports.ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSON(json) { + return ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSONTyped(json, false); +} +function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductV1QuantInfoRequest.d.ts b/dist/models/ProductV1QuantInfoRequest.d.ts new file mode 100644 index 0000000..0f47781 --- /dev/null +++ b/dist/models/ProductV1QuantInfoRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1QuantInfoRequest + */ +export interface ProductV1QuantInfoRequest { + /** + * Список квантов с товарами. + * + * @type {Array} + * @memberof ProductV1QuantInfoRequest + */ + quant_code: Array; +} +/** + * Check if a given object implements the ProductV1QuantInfoRequest interface. + */ +export declare function instanceOfProductV1QuantInfoRequest(value: object): value is ProductV1QuantInfoRequest; +export declare function ProductV1QuantInfoRequestFromJSON(json: any): ProductV1QuantInfoRequest; +export declare function ProductV1QuantInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoRequest; +export declare function ProductV1QuantInfoRequestToJSON(value?: ProductV1QuantInfoRequest | null): any; diff --git a/dist/models/ProductV1QuantInfoRequest.js b/dist/models/ProductV1QuantInfoRequest.js new file mode 100644 index 0000000..bdb6f82 --- /dev/null +++ b/dist/models/ProductV1QuantInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoRequest = instanceOfProductV1QuantInfoRequest; +exports.ProductV1QuantInfoRequestFromJSON = ProductV1QuantInfoRequestFromJSON; +exports.ProductV1QuantInfoRequestFromJSONTyped = ProductV1QuantInfoRequestFromJSONTyped; +exports.ProductV1QuantInfoRequestToJSON = ProductV1QuantInfoRequestToJSON; +/** + * Check if a given object implements the ProductV1QuantInfoRequest interface. + */ +function instanceOfProductV1QuantInfoRequest(value) { + if (!('quant_code' in value) || value['quant_code'] === undefined) + return false; + return true; +} +function ProductV1QuantInfoRequestFromJSON(json) { + return ProductV1QuantInfoRequestFromJSONTyped(json, false); +} +function ProductV1QuantInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quant_code': json['quant_code'], + }; +} +function ProductV1QuantInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'quant_code': value['quant_code'], + }; +} diff --git a/dist/models/ProductV1QuantInfoResponse.d.ts b/dist/models/ProductV1QuantInfoResponse.d.ts new file mode 100644 index 0000000..775df8f --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantInfoResponseResultItems } from './ProductV1QuantInfoResponseResultItems'; +/** + * + * @export + * @interface ProductV1QuantInfoResponse + */ +export interface ProductV1QuantInfoResponse { + /** + * Эконом-товары. + * @type {Array} + * @memberof ProductV1QuantInfoResponse + */ + items?: Array; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponse interface. + */ +export declare function instanceOfProductV1QuantInfoResponse(value: object): value is ProductV1QuantInfoResponse; +export declare function ProductV1QuantInfoResponseFromJSON(json: any): ProductV1QuantInfoResponse; +export declare function ProductV1QuantInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponse; +export declare function ProductV1QuantInfoResponseToJSON(value?: ProductV1QuantInfoResponse | null): any; diff --git a/dist/models/ProductV1QuantInfoResponse.js b/dist/models/ProductV1QuantInfoResponse.js new file mode 100644 index 0000000..867ab6f --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoResponse = instanceOfProductV1QuantInfoResponse; +exports.ProductV1QuantInfoResponseFromJSON = ProductV1QuantInfoResponseFromJSON; +exports.ProductV1QuantInfoResponseFromJSONTyped = ProductV1QuantInfoResponseFromJSONTyped; +exports.ProductV1QuantInfoResponseToJSON = ProductV1QuantInfoResponseToJSON; +const ProductV1QuantInfoResponseResultItems_1 = require("./ProductV1QuantInfoResponseResultItems"); +/** + * Check if a given object implements the ProductV1QuantInfoResponse interface. + */ +function instanceOfProductV1QuantInfoResponse(value) { + return true; +} +function ProductV1QuantInfoResponseFromJSON(json) { + return ProductV1QuantInfoResponseFromJSONTyped(json, false); +} +function ProductV1QuantInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductV1QuantInfoResponseResultItems_1.ProductV1QuantInfoResponseResultItemsFromJSON)), + }; +} +function ProductV1QuantInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductV1QuantInfoResponseResultItems_1.ProductV1QuantInfoResponseResultItemsToJSON)), + }; +} diff --git a/dist/models/ProductV1QuantInfoResponseResultItems.d.ts b/dist/models/ProductV1QuantInfoResponseResultItems.d.ts new file mode 100644 index 0000000..b462f7b --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItems.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantInfoResponseResultItemsQuantInfo } from './ProductV1QuantInfoResponseResultItemsQuantInfo'; +/** + * + * @export + * @interface ProductV1QuantInfoResponseResultItems + */ +export interface ProductV1QuantInfoResponseResultItems { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItems + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItems + */ + product_id?: number; + /** + * + * @type {ProductV1QuantInfoResponseResultItemsQuantInfo} + * @memberof ProductV1QuantInfoResponseResultItems + */ + quant_info?: ProductV1QuantInfoResponseResultItemsQuantInfo; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItems interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItems(value: object): value is ProductV1QuantInfoResponseResultItems; +export declare function ProductV1QuantInfoResponseResultItemsFromJSON(json: any): ProductV1QuantInfoResponseResultItems; +export declare function ProductV1QuantInfoResponseResultItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItems; +export declare function ProductV1QuantInfoResponseResultItemsToJSON(value?: ProductV1QuantInfoResponseResultItems | null): any; diff --git a/dist/models/ProductV1QuantInfoResponseResultItems.js b/dist/models/ProductV1QuantInfoResponseResultItems.js new file mode 100644 index 0000000..9e8ae5d --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItems.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoResponseResultItems = instanceOfProductV1QuantInfoResponseResultItems; +exports.ProductV1QuantInfoResponseResultItemsFromJSON = ProductV1QuantInfoResponseResultItemsFromJSON; +exports.ProductV1QuantInfoResponseResultItemsFromJSONTyped = ProductV1QuantInfoResponseResultItemsFromJSONTyped; +exports.ProductV1QuantInfoResponseResultItemsToJSON = ProductV1QuantInfoResponseResultItemsToJSON; +const ProductV1QuantInfoResponseResultItemsQuantInfo_1 = require("./ProductV1QuantInfoResponseResultItemsQuantInfo"); +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItems interface. + */ +function instanceOfProductV1QuantInfoResponseResultItems(value) { + return true; +} +function ProductV1QuantInfoResponseResultItemsFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsFromJSONTyped(json, false); +} +function ProductV1QuantInfoResponseResultItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant_info': json['quant_info'] == null ? undefined : (0, ProductV1QuantInfoResponseResultItemsQuantInfo_1.ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON)(json['quant_info']), + }; +} +function ProductV1QuantInfoResponseResultItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'quant_info': (0, ProductV1QuantInfoResponseResultItemsQuantInfo_1.ProductV1QuantInfoResponseResultItemsQuantInfoToJSON)(value['quant_info']), + }; +} diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfo.d.ts b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfo.d.ts new file mode 100644 index 0000000..8d8ac34 --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfo.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuants } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuants'; +/** + * Информация о кванте. + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfo + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfo { + /** + * Список квантов. + * @type {Array} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfo + */ + quants?: Array; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfo interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfo(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfo; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfo; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfo; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfo | null): any; diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfo.js b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfo.js new file mode 100644 index 0000000..161bf3a --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfo.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoResponseResultItemsQuantInfo = instanceOfProductV1QuantInfoResponseResultItemsQuantInfo; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON = ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoFromJSONTyped = ProductV1QuantInfoResponseResultItemsQuantInfoFromJSONTyped; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoToJSON = ProductV1QuantInfoResponseResultItemsQuantInfoToJSON; +const ProductV1QuantInfoResponseResultItemsQuantInfoQuants_1 = require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuants"); +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfo interface. + */ +function instanceOfProductV1QuantInfoResponseResultItemsQuantInfo(value) { + return true; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoFromJSONTyped(json, false); +} +function ProductV1QuantInfoResponseResultItemsQuantInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quants': json['quants'] == null ? undefined : (json['quants'].map(ProductV1QuantInfoResponseResultItemsQuantInfoQuants_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON)), + }; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'quants': value['quants'] == null ? undefined : (value['quants'].map(ProductV1QuantInfoResponseResultItemsQuantInfoQuants_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON)), + }; +} diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.d.ts b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.d.ts new file mode 100644 index 0000000..c5ac288 --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.d.ts @@ -0,0 +1,95 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts'; +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions'; +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice'; +import type { ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended } from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended'; +/** + * + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuants { + /** + * Информация о штрихкодах. + * @type {Array} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + barcodes_extended?: Array; + /** + * + * @type {ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + dimensions?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; + /** + * + * @type {ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + marketing_price?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; + /** + * Минимальная цена, указанная продавцом. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + min_price?: string; + /** + * Зачёркнутая цена, указанная продавцом. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + old_price?: string; + /** + * Цена продажи, указанная продавцом. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + price?: string; + /** + * Идентификатор эконом-товара. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + quant_code?: string; + /** + * Размер кванта. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + quant_sice?: number; + /** + * Тип доставки товара. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + shipment_type?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + sku?: number; + /** + * + * @type {ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuants + */ + statuses?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuants interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuants(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuants; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuants; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuants; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuants | null): any; diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.js b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.js new file mode 100644 index 0000000..a9ee3d3 --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuants.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuants = instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuants; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSONTyped = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSONTyped; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON; +const ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts_1 = require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts"); +const ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions_1 = require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions"); +const ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice_1 = require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice"); +const ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended_1 = require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended"); +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuants interface. + */ +function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuants(value) { + return true; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSONTyped(json, false); +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcodes_extended': json['barcodes_extended'] == null ? undefined : (json['barcodes_extended'].map(ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON)), + 'dimensions': json['dimensions'] == null ? undefined : (0, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON)(json['dimensions']), + 'marketing_price': json['marketing_price'] == null ? undefined : (0, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON)(json['marketing_price']), + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'quant_code': json['quant_code'] == null ? undefined : json['quant_code'], + 'quant_sice': json['quant_sice'] == null ? undefined : json['quant_sice'], + 'shipment_type': json['shipment_type'] == null ? undefined : json['shipment_type'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'statuses': json['statuses'] == null ? undefined : (0, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON)(json['statuses']), + }; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcodes_extended': value['barcodes_extended'] == null ? undefined : (value['barcodes_extended'].map(ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON)), + 'dimensions': (0, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON)(value['dimensions']), + 'marketing_price': (0, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON)(value['marketing_price']), + 'min_price': value['min_price'], + 'old_price': value['old_price'], + 'price': value['price'], + 'quant_code': value['quant_code'], + 'quant_sice': value['quant_sice'], + 'shipment_type': value['shipment_type'], + 'sku': value['sku'], + 'statuses': (0, ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts_1.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON)(value['statuses']), + }; +} diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.d.ts b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.d.ts new file mode 100644 index 0000000..1fe922a --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended { + /** + * Штрихкод. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended + */ + barcode?: string; + /** + * Ошибка получения штрихкода. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended + */ + error?: string; + /** + * Статус штрихкода. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended + */ + status?: string; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended | null): any; diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.js b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.js new file mode 100644 index 0000000..0994eb1 --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended = instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSONTyped = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSONTyped; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON; +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended interface. + */ +function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended(value) { + return true; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSONTyped(json, false); +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'error': json['error'] == null ? undefined : json['error'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtendedToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'error': value['error'], + 'status': value['status'], + }; +} diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.d.ts b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.d.ts new file mode 100644 index 0000000..f9eaa68 --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Габариты. + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions { + /** + * Глубина, мм. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ + depth?: number; + /** + * Высота, мм. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ + height?: number; + /** + * Вес, г. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ + weight?: number; + /** + * Ширина, мм. + * @type {number} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions + */ + width?: number; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions | null): any; diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.js b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.js new file mode 100644 index 0000000..f451c7a --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions = instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSONTyped = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSONTyped; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON; +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions interface. + */ +function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions(value) { + return true; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSONTyped(json, false); +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'depth': json['depth'] == null ? undefined : json['depth'], + 'height': json['height'] == null ? undefined : json['height'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'depth': value['depth'], + 'height': value['height'], + 'weight': value['weight'], + 'width': value['width'], + }; +} diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.d.ts b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.d.ts new file mode 100644 index 0000000..da1688d --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Цена на товар с учётом всех акций, которая будет указана на витрине Ozon, без учёта скидки по карте Ozon Банка. + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice { + /** + * Цена продажи. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice + */ + price?: string; + /** + * Цена, которую указал продавец. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice + */ + seller_price?: string; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice | null): any; diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.js b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.js new file mode 100644 index 0000000..ba493b5 --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice = instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSONTyped = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSONTyped; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON; +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice interface. + */ +function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice(value) { + return true; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSONTyped(json, false); +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'price': json['price'] == null ? undefined : json['price'], + 'seller_price': json['seller_price'] == null ? undefined : json['seller_price'], + }; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'price': value['price'], + 'seller_price': value['seller_price'], + }; +} diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.d.ts b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.d.ts new file mode 100644 index 0000000..e412bb8 --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Описание статусов. + * @export + * @interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ +export interface ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts { + /** + * Описание статуса. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ + state_description?: string; + /** + * Название статуса. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ + state_name?: string; + /** + * Системное название статуса. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ + state_sys_name?: string; + /** + * Подсказка о текущем состоянии товара. + * @type {string} + * @memberof ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts + */ + state_tooltip?: string; +} +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts interface. + */ +export declare function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts(value: object): value is ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON(json: any): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +export declare function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON(value?: ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts | null): any; diff --git a/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.js b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.js new file mode 100644 index 0000000..5f1f593 --- /dev/null +++ b/dist/models/ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts = instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSONTyped = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSONTyped; +exports.ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON = ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON; +/** + * Check if a given object implements the ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts interface. + */ +function instanceOfProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts(value) { + return true; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSON(json) { + return ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSONTyped(json, false); +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'state_description': json['state_description'] == null ? undefined : json['state_description'], + 'state_name': json['state_name'] == null ? undefined : json['state_name'], + 'state_sys_name': json['state_sys_name'] == null ? undefined : json['state_sys_name'], + 'state_tooltip': json['state_tooltip'] == null ? undefined : json['state_tooltip'], + }; +} +function ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTextsToJSON(value) { + if (value == null) { + return value; + } + return { + 'state_description': value['state_description'], + 'state_name': value['state_name'], + 'state_sys_name': value['state_sys_name'], + 'state_tooltip': value['state_tooltip'], + }; +} diff --git a/dist/models/ProductV1QuantListRequest.d.ts b/dist/models/ProductV1QuantListRequest.d.ts new file mode 100644 index 0000000..b28de6c --- /dev/null +++ b/dist/models/ProductV1QuantListRequest.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1QuantListRequest + */ +export interface ProductV1QuantListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ProductV1QuantListRequest + */ + cursor?: string; + /** + * Максимальное количество элементов в ответе. + * @type {number} + * @memberof ProductV1QuantListRequest + */ + limit: number; + /** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных. + * - `VISIBLE` — товары, которые видны покупателям. + * - `INVISIBLE` — товары, которые не видны покупателям. + * - `EMPTY_STOCK` — товары, которых нет в наличии. + * - `NOT_MODERATED` — товары, которые не прошли модерацию. + * - `MODERATED` — товары, которые прошли модерацию. + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке. + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой. + * - `READY_TO_SUPPLY` — товары, готовые к поставке. + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации. + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации. + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации. + * - `TO_SUPPLY` — товары, готовые к продаже. + * - `IN_SALE` — товары в продаже. + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей. + * - `OVERPRICED` — превышение цены. + * - `CRITICALLY_OVERPRICED` — критическое превышение цены. + * - `EMPTY_BARCODE` — пустой штрихкод. + * - `BARCODE_EXISTS` — штрихкод указан. + * - `QUARANTINE` — товар в карантине после изменения цены на 50% и больше. + * - `ARCHIVED` — товары в архиве. + * - `OVERPRICED_WITH_STOCK` — товары в продаже, цена которых выше, чем у конкурентов. + * - `PARTIAL_APPROVED` — товары в продаже, у которых пустое или неполное описание. + * + * @type {string} + * @memberof ProductV1QuantListRequest + */ + visibility?: ProductV1QuantListRequestVisibilityEnum; +} +/** + * @export + */ +export declare const ProductV1QuantListRequestVisibilityEnum: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; +}; +export type ProductV1QuantListRequestVisibilityEnum = typeof ProductV1QuantListRequestVisibilityEnum[keyof typeof ProductV1QuantListRequestVisibilityEnum]; +/** + * Check if a given object implements the ProductV1QuantListRequest interface. + */ +export declare function instanceOfProductV1QuantListRequest(value: object): value is ProductV1QuantListRequest; +export declare function ProductV1QuantListRequestFromJSON(json: any): ProductV1QuantListRequest; +export declare function ProductV1QuantListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantListRequest; +export declare function ProductV1QuantListRequestToJSON(value?: ProductV1QuantListRequest | null): any; diff --git a/dist/models/ProductV1QuantListRequest.js b/dist/models/ProductV1QuantListRequest.js new file mode 100644 index 0000000..9b00789 --- /dev/null +++ b/dist/models/ProductV1QuantListRequest.js @@ -0,0 +1,79 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV1QuantListRequestVisibilityEnum = void 0; +exports.instanceOfProductV1QuantListRequest = instanceOfProductV1QuantListRequest; +exports.ProductV1QuantListRequestFromJSON = ProductV1QuantListRequestFromJSON; +exports.ProductV1QuantListRequestFromJSONTyped = ProductV1QuantListRequestFromJSONTyped; +exports.ProductV1QuantListRequestToJSON = ProductV1QuantListRequestToJSON; +/** + * @export + */ +exports.ProductV1QuantListRequestVisibilityEnum = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED' +}; +/** + * Check if a given object implements the ProductV1QuantListRequest interface. + */ +function instanceOfProductV1QuantListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function ProductV1QuantListRequestFromJSON(json) { + return ProductV1QuantListRequestFromJSONTyped(json, false); +} +function ProductV1QuantListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + 'visibility': json['visibility'] == null ? undefined : json['visibility'], + }; +} +function ProductV1QuantListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + 'visibility': value['visibility'], + }; +} diff --git a/dist/models/ProductV1QuantListResponse.d.ts b/dist/models/ProductV1QuantListResponse.d.ts new file mode 100644 index 0000000..cd3931d --- /dev/null +++ b/dist/models/ProductV1QuantListResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantListResponseProducts } from './ProductV1QuantListResponseProducts'; +/** + * + * @export + * @interface ProductV1QuantListResponse + */ +export interface ProductV1QuantListResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof ProductV1QuantListResponse + */ + cursor?: string; + /** + * Эконом-товары. + * @type {Array} + * @memberof ProductV1QuantListResponse + */ + products?: Array; + /** + * Остаток на всех складах, шт. + * @type {number} + * @memberof ProductV1QuantListResponse + */ + total_items?: number; +} +/** + * Check if a given object implements the ProductV1QuantListResponse interface. + */ +export declare function instanceOfProductV1QuantListResponse(value: object): value is ProductV1QuantListResponse; +export declare function ProductV1QuantListResponseFromJSON(json: any): ProductV1QuantListResponse; +export declare function ProductV1QuantListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantListResponse; +export declare function ProductV1QuantListResponseToJSON(value?: ProductV1QuantListResponse | null): any; diff --git a/dist/models/ProductV1QuantListResponse.js b/dist/models/ProductV1QuantListResponse.js new file mode 100644 index 0000000..ac3c281 --- /dev/null +++ b/dist/models/ProductV1QuantListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantListResponse = instanceOfProductV1QuantListResponse; +exports.ProductV1QuantListResponseFromJSON = ProductV1QuantListResponseFromJSON; +exports.ProductV1QuantListResponseFromJSONTyped = ProductV1QuantListResponseFromJSONTyped; +exports.ProductV1QuantListResponseToJSON = ProductV1QuantListResponseToJSON; +const ProductV1QuantListResponseProducts_1 = require("./ProductV1QuantListResponseProducts"); +/** + * Check if a given object implements the ProductV1QuantListResponse interface. + */ +function instanceOfProductV1QuantListResponse(value) { + return true; +} +function ProductV1QuantListResponseFromJSON(json) { + return ProductV1QuantListResponseFromJSONTyped(json, false); +} +function ProductV1QuantListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'products': json['products'] == null ? undefined : (json['products'].map(ProductV1QuantListResponseProducts_1.ProductV1QuantListResponseProductsFromJSON)), + 'total_items': json['total_items'] == null ? undefined : json['total_items'], + }; +} +function ProductV1QuantListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'products': value['products'] == null ? undefined : (value['products'].map(ProductV1QuantListResponseProducts_1.ProductV1QuantListResponseProductsToJSON)), + 'total_items': value['total_items'], + }; +} diff --git a/dist/models/ProductV1QuantListResponseProducts.d.ts b/dist/models/ProductV1QuantListResponseProducts.d.ts new file mode 100644 index 0000000..ca04fe0 --- /dev/null +++ b/dist/models/ProductV1QuantListResponseProducts.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV1QuantListResponseProductsQuants } from './ProductV1QuantListResponseProductsQuants'; +/** + * + * @export + * @interface ProductV1QuantListResponseProducts + */ +export interface ProductV1QuantListResponseProducts { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ProductV1QuantListResponseProducts + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof ProductV1QuantListResponseProducts + */ + product_id?: number; + /** + * Список квантов товара. + * @type {Array} + * @memberof ProductV1QuantListResponseProducts + */ + quants?: Array; +} +/** + * Check if a given object implements the ProductV1QuantListResponseProducts interface. + */ +export declare function instanceOfProductV1QuantListResponseProducts(value: object): value is ProductV1QuantListResponseProducts; +export declare function ProductV1QuantListResponseProductsFromJSON(json: any): ProductV1QuantListResponseProducts; +export declare function ProductV1QuantListResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantListResponseProducts; +export declare function ProductV1QuantListResponseProductsToJSON(value?: ProductV1QuantListResponseProducts | null): any; diff --git a/dist/models/ProductV1QuantListResponseProducts.js b/dist/models/ProductV1QuantListResponseProducts.js new file mode 100644 index 0000000..88d753b --- /dev/null +++ b/dist/models/ProductV1QuantListResponseProducts.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantListResponseProducts = instanceOfProductV1QuantListResponseProducts; +exports.ProductV1QuantListResponseProductsFromJSON = ProductV1QuantListResponseProductsFromJSON; +exports.ProductV1QuantListResponseProductsFromJSONTyped = ProductV1QuantListResponseProductsFromJSONTyped; +exports.ProductV1QuantListResponseProductsToJSON = ProductV1QuantListResponseProductsToJSON; +const ProductV1QuantListResponseProductsQuants_1 = require("./ProductV1QuantListResponseProductsQuants"); +/** + * Check if a given object implements the ProductV1QuantListResponseProducts interface. + */ +function instanceOfProductV1QuantListResponseProducts(value) { + return true; +} +function ProductV1QuantListResponseProductsFromJSON(json) { + return ProductV1QuantListResponseProductsFromJSONTyped(json, false); +} +function ProductV1QuantListResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quants': json['quants'] == null ? undefined : (json['quants'].map(ProductV1QuantListResponseProductsQuants_1.ProductV1QuantListResponseProductsQuantsFromJSON)), + }; +} +function ProductV1QuantListResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'quants': value['quants'] == null ? undefined : (value['quants'].map(ProductV1QuantListResponseProductsQuants_1.ProductV1QuantListResponseProductsQuantsToJSON)), + }; +} diff --git a/dist/models/ProductV1QuantListResponseProductsQuants.d.ts b/dist/models/ProductV1QuantListResponseProductsQuants.d.ts new file mode 100644 index 0000000..ba11750 --- /dev/null +++ b/dist/models/ProductV1QuantListResponseProductsQuants.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductV1QuantListResponseProductsQuants + */ +export interface ProductV1QuantListResponseProductsQuants { + /** + * Идентификатор кванта. + * @type {string} + * @memberof ProductV1QuantListResponseProductsQuants + */ + quant_code?: string; + /** + * Размер кванта. + * @type {number} + * @memberof ProductV1QuantListResponseProductsQuants + */ + quant_size?: number; +} +/** + * Check if a given object implements the ProductV1QuantListResponseProductsQuants interface. + */ +export declare function instanceOfProductV1QuantListResponseProductsQuants(value: object): value is ProductV1QuantListResponseProductsQuants; +export declare function ProductV1QuantListResponseProductsQuantsFromJSON(json: any): ProductV1QuantListResponseProductsQuants; +export declare function ProductV1QuantListResponseProductsQuantsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV1QuantListResponseProductsQuants; +export declare function ProductV1QuantListResponseProductsQuantsToJSON(value?: ProductV1QuantListResponseProductsQuants | null): any; diff --git a/dist/models/ProductV1QuantListResponseProductsQuants.js b/dist/models/ProductV1QuantListResponseProductsQuants.js new file mode 100644 index 0000000..a7863c0 --- /dev/null +++ b/dist/models/ProductV1QuantListResponseProductsQuants.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV1QuantListResponseProductsQuants = instanceOfProductV1QuantListResponseProductsQuants; +exports.ProductV1QuantListResponseProductsQuantsFromJSON = ProductV1QuantListResponseProductsQuantsFromJSON; +exports.ProductV1QuantListResponseProductsQuantsFromJSONTyped = ProductV1QuantListResponseProductsQuantsFromJSONTyped; +exports.ProductV1QuantListResponseProductsQuantsToJSON = ProductV1QuantListResponseProductsQuantsToJSON; +/** + * Check if a given object implements the ProductV1QuantListResponseProductsQuants interface. + */ +function instanceOfProductV1QuantListResponseProductsQuants(value) { + return true; +} +function ProductV1QuantListResponseProductsQuantsFromJSON(json) { + return ProductV1QuantListResponseProductsQuantsFromJSONTyped(json, false); +} +function ProductV1QuantListResponseProductsQuantsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quant_code': json['quant_code'] == null ? undefined : json['quant_code'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + }; +} +function ProductV1QuantListResponseProductsQuantsToJSON(value) { + if (value == null) { + return value; + } + return { + 'quant_code': value['quant_code'], + 'quant_size': value['quant_size'], + }; +} diff --git a/dist/models/ProductV4GetUploadQuotaResponseOperationLimits.d.ts b/dist/models/ProductV4GetUploadQuotaResponseOperationLimits.d.ts new file mode 100644 index 0000000..8ac3e28 --- /dev/null +++ b/dist/models/ProductV4GetUploadQuotaResponseOperationLimits.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum } from './ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum'; +/** + * Доступный лимит на работу с товарами. + * @export + * @interface ProductV4GetUploadQuotaResponseOperationLimits + */ +export interface ProductV4GetUploadQuotaResponseOperationLimits { + /** + * Количество товаров, которое можно создать за минуту. + * @type {number} + * @memberof ProductV4GetUploadQuotaResponseOperationLimits + */ + limit?: number; + /** + * + * @type {ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum} + * @memberof ProductV4GetUploadQuotaResponseOperationLimits + */ + limit_type?: ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum; +} +/** + * Check if a given object implements the ProductV4GetUploadQuotaResponseOperationLimits interface. + */ +export declare function instanceOfProductV4GetUploadQuotaResponseOperationLimits(value: object): value is ProductV4GetUploadQuotaResponseOperationLimits; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsFromJSON(json: any): ProductV4GetUploadQuotaResponseOperationLimits; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV4GetUploadQuotaResponseOperationLimits; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsToJSON(value?: ProductV4GetUploadQuotaResponseOperationLimits | null): any; diff --git a/dist/models/ProductV4GetUploadQuotaResponseOperationLimits.js b/dist/models/ProductV4GetUploadQuotaResponseOperationLimits.js new file mode 100644 index 0000000..04e896c --- /dev/null +++ b/dist/models/ProductV4GetUploadQuotaResponseOperationLimits.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductV4GetUploadQuotaResponseOperationLimits = instanceOfProductV4GetUploadQuotaResponseOperationLimits; +exports.ProductV4GetUploadQuotaResponseOperationLimitsFromJSON = ProductV4GetUploadQuotaResponseOperationLimitsFromJSON; +exports.ProductV4GetUploadQuotaResponseOperationLimitsFromJSONTyped = ProductV4GetUploadQuotaResponseOperationLimitsFromJSONTyped; +exports.ProductV4GetUploadQuotaResponseOperationLimitsToJSON = ProductV4GetUploadQuotaResponseOperationLimitsToJSON; +const ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum_1 = require("./ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum"); +/** + * Check if a given object implements the ProductV4GetUploadQuotaResponseOperationLimits interface. + */ +function instanceOfProductV4GetUploadQuotaResponseOperationLimits(value) { + return true; +} +function ProductV4GetUploadQuotaResponseOperationLimitsFromJSON(json) { + return ProductV4GetUploadQuotaResponseOperationLimitsFromJSONTyped(json, false); +} +function ProductV4GetUploadQuotaResponseOperationLimitsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'limit_type': json['limit_type'] == null ? undefined : (0, ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum_1.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON)(json['limit_type']), + }; +} +function ProductV4GetUploadQuotaResponseOperationLimitsToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'limit_type': (0, ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum_1.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON)(value['limit_type']), + }; +} diff --git a/dist/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.d.ts b/dist/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.d.ts new file mode 100644 index 0000000..c9560c3 --- /dev/null +++ b/dist/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Текущий лимит: + * - `UNSPECIFIED` — не указан; + * - `RATE_LIMIT_PER_MINUTE` — поминутный лимит. + * + * @export + */ +export declare const ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly RATE_LIMIT_PER_MINUTE: "RATE_LIMIT_PER_MINUTE"; +}; +export type ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum = typeof ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum[keyof typeof ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum]; +export declare function instanceOfProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum(value: any): boolean; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON(json: any): ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum; +export declare function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON(value?: ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum | null): any; diff --git a/dist/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.js b/dist/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.js new file mode 100644 index 0000000..5e67c1e --- /dev/null +++ b/dist/models/ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum = void 0; +exports.instanceOfProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum = instanceOfProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum; +exports.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON = ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON; +exports.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSONTyped = ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSONTyped; +exports.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON = ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON; +/** + * Текущий лимит: + * - `UNSPECIFIED` — не указан; + * - `RATE_LIMIT_PER_MINUTE` — поминутный лимит. + * + * @export + */ +exports.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + RATE_LIMIT_PER_MINUTE: 'RATE_LIMIT_PER_MINUTE' +}; +function instanceOfProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum(value) { + for (const key in exports.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum, key)) { + if (exports.ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSON(json) { + return ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSONTyped(json, false); +} +function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ProductsPostings.d.ts b/dist/models/ProductsPostings.d.ts new file mode 100644 index 0000000..3a13910 --- /dev/null +++ b/dist/models/ProductsPostings.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProductsPostings + */ +export interface ProductsPostings { + /** + * Номер отправления. + * @type {string} + * @memberof ProductsPostings + */ + posting_number?: string; + /** + * Количество товаров в отправлении. + * @type {number} + * @memberof ProductsPostings + */ + quantity?: number; +} +/** + * Check if a given object implements the ProductsPostings interface. + */ +export declare function instanceOfProductsPostings(value: object): value is ProductsPostings; +export declare function ProductsPostingsFromJSON(json: any): ProductsPostings; +export declare function ProductsPostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsPostings; +export declare function ProductsPostingsToJSON(value?: ProductsPostings | null): any; diff --git a/dist/models/ProductsPostings.js b/dist/models/ProductsPostings.js new file mode 100644 index 0000000..c2bdd15 --- /dev/null +++ b/dist/models/ProductsPostings.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductsPostings = instanceOfProductsPostings; +exports.ProductsPostingsFromJSON = ProductsPostingsFromJSON; +exports.ProductsPostingsFromJSONTyped = ProductsPostingsFromJSONTyped; +exports.ProductsPostingsToJSON = ProductsPostingsToJSON; +/** + * Check if a given object implements the ProductsPostings interface. + */ +function instanceOfProductsPostings(value) { + return true; +} +function ProductsPostingsFromJSON(json) { + return ProductsPostingsFromJSONTyped(json, false); +} +function ProductsPostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + }; +} +function ProductsPostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.d.ts b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.d.ts new file mode 100644 index 0000000..1ca53ed --- /dev/null +++ b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productsv1GetProductInfoStocksByWarehouseFbsRequest + */ +export interface Productsv1GetProductInfoStocksByWarehouseFbsRequest { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsRequest + */ + sku?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {Array} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsRequest + */ + offer_id?: Array; +} +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsRequest interface. + */ +export declare function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsRequest(value: object): value is Productsv1GetProductInfoStocksByWarehouseFbsRequest; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSON(json: any): Productsv1GetProductInfoStocksByWarehouseFbsRequest; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productsv1GetProductInfoStocksByWarehouseFbsRequest; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON(value?: Productsv1GetProductInfoStocksByWarehouseFbsRequest | null): any; diff --git a/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.js b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.js new file mode 100644 index 0000000..348a36c --- /dev/null +++ b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductsv1GetProductInfoStocksByWarehouseFbsRequest = instanceOfProductsv1GetProductInfoStocksByWarehouseFbsRequest; +exports.Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSON = Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSON; +exports.Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSONTyped = Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSONTyped; +exports.Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON = Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON; +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsRequest interface. + */ +function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsRequest(value) { + return true; +} +function Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSON(json) { + return Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSONTyped(json, false); +} +function Productsv1GetProductInfoStocksByWarehouseFbsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + }; +} +function Productsv1GetProductInfoStocksByWarehouseFbsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.d.ts b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.d.ts new file mode 100644 index 0000000..69e4fe9 --- /dev/null +++ b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productsv1GetProductInfoStocksByWarehouseFbsResponseResult } from './Productsv1GetProductInfoStocksByWarehouseFbsResponseResult'; +/** + * + * @export + * @interface Productsv1GetProductInfoStocksByWarehouseFbsResponse + */ +export interface Productsv1GetProductInfoStocksByWarehouseFbsResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponse + */ + result?: Array; +} +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsResponse interface. + */ +export declare function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponse(value: object): value is Productsv1GetProductInfoStocksByWarehouseFbsResponse; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON(json: any): Productsv1GetProductInfoStocksByWarehouseFbsResponse; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productsv1GetProductInfoStocksByWarehouseFbsResponse; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseToJSON(value?: Productsv1GetProductInfoStocksByWarehouseFbsResponse | null): any; diff --git a/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.js b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.js new file mode 100644 index 0000000..f0c9dca --- /dev/null +++ b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponse = instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponse; +exports.Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON = Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON; +exports.Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSONTyped = Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSONTyped; +exports.Productsv1GetProductInfoStocksByWarehouseFbsResponseToJSON = Productsv1GetProductInfoStocksByWarehouseFbsResponseToJSON; +const Productsv1GetProductInfoStocksByWarehouseFbsResponseResult_1 = require("./Productsv1GetProductInfoStocksByWarehouseFbsResponseResult"); +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsResponse interface. + */ +function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponse(value) { + return true; +} +function Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSON(json) { + return Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSONTyped(json, false); +} +function Productsv1GetProductInfoStocksByWarehouseFbsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(Productsv1GetProductInfoStocksByWarehouseFbsResponseResult_1.Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON)), + }; +} +function Productsv1GetProductInfoStocksByWarehouseFbsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(Productsv1GetProductInfoStocksByWarehouseFbsResponseResult_1.Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON)), + }; +} diff --git a/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.d.ts b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.d.ts new file mode 100644 index 0000000..0c62474 --- /dev/null +++ b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ +export interface Productsv1GetProductInfoStocksByWarehouseFbsResponseResult { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + sku?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + offer_id?: string; + /** + * Общее количество товара на складе. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + present?: number; + /** + * Идентификатор товара в системе Ozon — артикул. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + product_id?: number; + /** + * Количество зарезервированных товаров на складе. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + reserved?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof Productsv1GetProductInfoStocksByWarehouseFbsResponseResult + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsResponseResult interface. + */ +export declare function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponseResult(value: object): value is Productsv1GetProductInfoStocksByWarehouseFbsResponseResult; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON(json: any): Productsv1GetProductInfoStocksByWarehouseFbsResponseResult; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productsv1GetProductInfoStocksByWarehouseFbsResponseResult; +export declare function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON(value?: Productsv1GetProductInfoStocksByWarehouseFbsResponseResult | null): any; diff --git a/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.js b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.js new file mode 100644 index 0000000..48dd651 --- /dev/null +++ b/dist/models/Productsv1GetProductInfoStocksByWarehouseFbsResponseResult.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponseResult = instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponseResult; +exports.Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON = Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON; +exports.Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSONTyped = Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSONTyped; +exports.Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON = Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON; +/** + * Check if a given object implements the Productsv1GetProductInfoStocksByWarehouseFbsResponseResult interface. + */ +function instanceOfProductsv1GetProductInfoStocksByWarehouseFbsResponseResult(value) { + return true; +} +function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSON(json) { + return Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSONTyped(json, false); +} +function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'present': json['present'] == null ? undefined : json['present'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function Productsv1GetProductInfoStocksByWarehouseFbsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + 'offer_id': value['offer_id'], + 'present': value['present'], + 'product_id': value['product_id'], + 'reserved': value['reserved'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/Productv1ProductImportPicturesRequest.d.ts b/dist/models/Productv1ProductImportPicturesRequest.d.ts new file mode 100644 index 0000000..4e32957 --- /dev/null +++ b/dist/models/Productv1ProductImportPicturesRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productv1ProductImportPicturesRequest + */ +export interface Productv1ProductImportPicturesRequest { + /** + * Маркетинговый цвет. + * @type {string} + * @memberof Productv1ProductImportPicturesRequest + */ + color_image?: string; + /** + * Массив ссылок на изображения. До 30 штук. + * Изображения в массиве расположены в порядке их расположения на сайте. + * Первое изображение в массиве будет главным. + * + * @type {Array} + * @memberof Productv1ProductImportPicturesRequest + */ + images?: Array; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv1ProductImportPicturesRequest + */ + product_id: number; +} +/** + * Check if a given object implements the Productv1ProductImportPicturesRequest interface. + */ +export declare function instanceOfProductv1ProductImportPicturesRequest(value: object): value is Productv1ProductImportPicturesRequest; +export declare function Productv1ProductImportPicturesRequestFromJSON(json: any): Productv1ProductImportPicturesRequest; +export declare function Productv1ProductImportPicturesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv1ProductImportPicturesRequest; +export declare function Productv1ProductImportPicturesRequestToJSON(value?: Productv1ProductImportPicturesRequest | null): any; diff --git a/dist/models/Productv1ProductImportPicturesRequest.js b/dist/models/Productv1ProductImportPicturesRequest.js new file mode 100644 index 0000000..32a72aa --- /dev/null +++ b/dist/models/Productv1ProductImportPicturesRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv1ProductImportPicturesRequest = instanceOfProductv1ProductImportPicturesRequest; +exports.Productv1ProductImportPicturesRequestFromJSON = Productv1ProductImportPicturesRequestFromJSON; +exports.Productv1ProductImportPicturesRequestFromJSONTyped = Productv1ProductImportPicturesRequestFromJSONTyped; +exports.Productv1ProductImportPicturesRequestToJSON = Productv1ProductImportPicturesRequestToJSON; +/** + * Check if a given object implements the Productv1ProductImportPicturesRequest interface. + */ +function instanceOfProductv1ProductImportPicturesRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function Productv1ProductImportPicturesRequestFromJSON(json) { + return Productv1ProductImportPicturesRequestFromJSONTyped(json, false); +} +function Productv1ProductImportPicturesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'color_image': json['color_image'] == null ? undefined : json['color_image'], + 'images': json['images'] == null ? undefined : json['images'], + 'product_id': json['product_id'], + }; +} +function Productv1ProductImportPicturesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'color_image': value['color_image'], + 'images': value['images'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/Productv1ProductInfoPicturesResponse.d.ts b/dist/models/Productv1ProductInfoPicturesResponse.d.ts new file mode 100644 index 0000000..f52c2a3 --- /dev/null +++ b/dist/models/Productv1ProductInfoPicturesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv1ProductInfoPicturesResponseResult } from './Productv1ProductInfoPicturesResponseResult'; +/** + * + * @export + * @interface Productv1ProductInfoPicturesResponse + */ +export interface Productv1ProductInfoPicturesResponse { + /** + * + * @type {Productv1ProductInfoPicturesResponseResult} + * @memberof Productv1ProductInfoPicturesResponse + */ + result?: Productv1ProductInfoPicturesResponseResult; +} +/** + * Check if a given object implements the Productv1ProductInfoPicturesResponse interface. + */ +export declare function instanceOfProductv1ProductInfoPicturesResponse(value: object): value is Productv1ProductInfoPicturesResponse; +export declare function Productv1ProductInfoPicturesResponseFromJSON(json: any): Productv1ProductInfoPicturesResponse; +export declare function Productv1ProductInfoPicturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv1ProductInfoPicturesResponse; +export declare function Productv1ProductInfoPicturesResponseToJSON(value?: Productv1ProductInfoPicturesResponse | null): any; diff --git a/dist/models/Productv1ProductInfoPicturesResponse.js b/dist/models/Productv1ProductInfoPicturesResponse.js new file mode 100644 index 0000000..e2caa1d --- /dev/null +++ b/dist/models/Productv1ProductInfoPicturesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv1ProductInfoPicturesResponse = instanceOfProductv1ProductInfoPicturesResponse; +exports.Productv1ProductInfoPicturesResponseFromJSON = Productv1ProductInfoPicturesResponseFromJSON; +exports.Productv1ProductInfoPicturesResponseFromJSONTyped = Productv1ProductInfoPicturesResponseFromJSONTyped; +exports.Productv1ProductInfoPicturesResponseToJSON = Productv1ProductInfoPicturesResponseToJSON; +const Productv1ProductInfoPicturesResponseResult_1 = require("./Productv1ProductInfoPicturesResponseResult"); +/** + * Check if a given object implements the Productv1ProductInfoPicturesResponse interface. + */ +function instanceOfProductv1ProductInfoPicturesResponse(value) { + return true; +} +function Productv1ProductInfoPicturesResponseFromJSON(json) { + return Productv1ProductInfoPicturesResponseFromJSONTyped(json, false); +} +function Productv1ProductInfoPicturesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, Productv1ProductInfoPicturesResponseResult_1.Productv1ProductInfoPicturesResponseResultFromJSON)(json['result']), + }; +} +function Productv1ProductInfoPicturesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, Productv1ProductInfoPicturesResponseResult_1.Productv1ProductInfoPicturesResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/Productv1ProductInfoPicturesResponseResult.d.ts b/dist/models/Productv1ProductInfoPicturesResponseResult.d.ts new file mode 100644 index 0000000..b5e7e8c --- /dev/null +++ b/dist/models/Productv1ProductInfoPicturesResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductProductInfoPicturesResponsePicture } from './ProductProductInfoPicturesResponsePicture'; +/** + * Результат работы метода. + * @export + * @interface Productv1ProductInfoPicturesResponseResult + */ +export interface Productv1ProductInfoPicturesResponseResult { + /** + * + * @type {Array} + * @memberof Productv1ProductInfoPicturesResponseResult + */ + pictures?: Array; +} +/** + * Check if a given object implements the Productv1ProductInfoPicturesResponseResult interface. + */ +export declare function instanceOfProductv1ProductInfoPicturesResponseResult(value: object): value is Productv1ProductInfoPicturesResponseResult; +export declare function Productv1ProductInfoPicturesResponseResultFromJSON(json: any): Productv1ProductInfoPicturesResponseResult; +export declare function Productv1ProductInfoPicturesResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv1ProductInfoPicturesResponseResult; +export declare function Productv1ProductInfoPicturesResponseResultToJSON(value?: Productv1ProductInfoPicturesResponseResult | null): any; diff --git a/dist/models/Productv1ProductInfoPicturesResponseResult.js b/dist/models/Productv1ProductInfoPicturesResponseResult.js new file mode 100644 index 0000000..d2c2e55 --- /dev/null +++ b/dist/models/Productv1ProductInfoPicturesResponseResult.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv1ProductInfoPicturesResponseResult = instanceOfProductv1ProductInfoPicturesResponseResult; +exports.Productv1ProductInfoPicturesResponseResultFromJSON = Productv1ProductInfoPicturesResponseResultFromJSON; +exports.Productv1ProductInfoPicturesResponseResultFromJSONTyped = Productv1ProductInfoPicturesResponseResultFromJSONTyped; +exports.Productv1ProductInfoPicturesResponseResultToJSON = Productv1ProductInfoPicturesResponseResultToJSON; +const ProductProductInfoPicturesResponsePicture_1 = require("./ProductProductInfoPicturesResponsePicture"); +/** + * Check if a given object implements the Productv1ProductInfoPicturesResponseResult interface. + */ +function instanceOfProductv1ProductInfoPicturesResponseResult(value) { + return true; +} +function Productv1ProductInfoPicturesResponseResultFromJSON(json) { + return Productv1ProductInfoPicturesResponseResultFromJSONTyped(json, false); +} +function Productv1ProductInfoPicturesResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'pictures': json['pictures'] == null ? undefined : (json['pictures'].map(ProductProductInfoPicturesResponsePicture_1.ProductProductInfoPicturesResponsePictureFromJSON)), + }; +} +function Productv1ProductInfoPicturesResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'pictures': value['pictures'] == null ? undefined : (value['pictures'].map(ProductProductInfoPicturesResponsePicture_1.ProductProductInfoPicturesResponsePictureToJSON)), + }; +} diff --git a/dist/models/Productv2DeleteProductsRequest.d.ts b/dist/models/Productv2DeleteProductsRequest.d.ts new file mode 100644 index 0000000..db35987 --- /dev/null +++ b/dist/models/Productv2DeleteProductsRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeleteProductsRequestProduct } from './DeleteProductsRequestProduct'; +/** + * + * @export + * @interface Productv2DeleteProductsRequest + */ +export interface Productv2DeleteProductsRequest { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {Array} + * @memberof Productv2DeleteProductsRequest + */ + products: Array; +} +/** + * Check if a given object implements the Productv2DeleteProductsRequest interface. + */ +export declare function instanceOfProductv2DeleteProductsRequest(value: object): value is Productv2DeleteProductsRequest; +export declare function Productv2DeleteProductsRequestFromJSON(json: any): Productv2DeleteProductsRequest; +export declare function Productv2DeleteProductsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2DeleteProductsRequest; +export declare function Productv2DeleteProductsRequestToJSON(value?: Productv2DeleteProductsRequest | null): any; diff --git a/dist/models/Productv2DeleteProductsRequest.js b/dist/models/Productv2DeleteProductsRequest.js new file mode 100644 index 0000000..7aeafe6 --- /dev/null +++ b/dist/models/Productv2DeleteProductsRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv2DeleteProductsRequest = instanceOfProductv2DeleteProductsRequest; +exports.Productv2DeleteProductsRequestFromJSON = Productv2DeleteProductsRequestFromJSON; +exports.Productv2DeleteProductsRequestFromJSONTyped = Productv2DeleteProductsRequestFromJSONTyped; +exports.Productv2DeleteProductsRequestToJSON = Productv2DeleteProductsRequestToJSON; +const DeleteProductsRequestProduct_1 = require("./DeleteProductsRequestProduct"); +/** + * Check if a given object implements the Productv2DeleteProductsRequest interface. + */ +function instanceOfProductv2DeleteProductsRequest(value) { + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +function Productv2DeleteProductsRequestFromJSON(json) { + return Productv2DeleteProductsRequestFromJSONTyped(json, false); +} +function Productv2DeleteProductsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': (json['products'].map(DeleteProductsRequestProduct_1.DeleteProductsRequestProductFromJSON)), + }; +} +function Productv2DeleteProductsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': (value['products'].map(DeleteProductsRequestProduct_1.DeleteProductsRequestProductToJSON)), + }; +} diff --git a/dist/models/Productv2DeleteProductsResponse.d.ts b/dist/models/Productv2DeleteProductsResponse.d.ts new file mode 100644 index 0000000..6056f8f --- /dev/null +++ b/dist/models/Productv2DeleteProductsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeleteProductsResponseDeleteStatus } from './DeleteProductsResponseDeleteStatus'; +/** + * + * @export + * @interface Productv2DeleteProductsResponse + */ +export interface Productv2DeleteProductsResponse { + /** + * Статус обработки запроса. + * @type {Array} + * @memberof Productv2DeleteProductsResponse + */ + status?: Array; +} +/** + * Check if a given object implements the Productv2DeleteProductsResponse interface. + */ +export declare function instanceOfProductv2DeleteProductsResponse(value: object): value is Productv2DeleteProductsResponse; +export declare function Productv2DeleteProductsResponseFromJSON(json: any): Productv2DeleteProductsResponse; +export declare function Productv2DeleteProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2DeleteProductsResponse; +export declare function Productv2DeleteProductsResponseToJSON(value?: Productv2DeleteProductsResponse | null): any; diff --git a/dist/models/Productv2DeleteProductsResponse.js b/dist/models/Productv2DeleteProductsResponse.js new file mode 100644 index 0000000..4f2de67 --- /dev/null +++ b/dist/models/Productv2DeleteProductsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv2DeleteProductsResponse = instanceOfProductv2DeleteProductsResponse; +exports.Productv2DeleteProductsResponseFromJSON = Productv2DeleteProductsResponseFromJSON; +exports.Productv2DeleteProductsResponseFromJSONTyped = Productv2DeleteProductsResponseFromJSONTyped; +exports.Productv2DeleteProductsResponseToJSON = Productv2DeleteProductsResponseToJSON; +const DeleteProductsResponseDeleteStatus_1 = require("./DeleteProductsResponseDeleteStatus"); +/** + * Check if a given object implements the Productv2DeleteProductsResponse interface. + */ +function instanceOfProductv2DeleteProductsResponse(value) { + return true; +} +function Productv2DeleteProductsResponseFromJSON(json) { + return Productv2DeleteProductsResponseFromJSONTyped(json, false); +} +function Productv2DeleteProductsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : (json['status'].map(DeleteProductsResponseDeleteStatus_1.DeleteProductsResponseDeleteStatusFromJSON)), + }; +} +function Productv2DeleteProductsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': value['status'] == null ? undefined : (value['status'].map(DeleteProductsResponseDeleteStatus_1.DeleteProductsResponseDeleteStatusToJSON)), + }; +} diff --git a/dist/models/Productv2GetProductListRequestFilterFilterVisibility.d.ts b/dist/models/Productv2GetProductListRequestFilterFilterVisibility.d.ts new file mode 100644 index 0000000..c216d09 --- /dev/null +++ b/dist/models/Productv2GetProductListRequestFilterFilterVisibility.d.ts @@ -0,0 +1,77 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export declare const Productv2GetProductListRequestFilterFilterVisibility: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; + readonly SEASONAL_AUTO_ARCHIVED: "SEASONAL_AUTO_ARCHIVED"; + readonly VISIBLE_WITH_FBO_STOCK: "VISIBLE_WITH_FBO_STOCK"; +}; +export type Productv2GetProductListRequestFilterFilterVisibility = typeof Productv2GetProductListRequestFilterFilterVisibility[keyof typeof Productv2GetProductListRequestFilterFilterVisibility]; +export declare function instanceOfProductv2GetProductListRequestFilterFilterVisibility(value: any): boolean; +export declare function Productv2GetProductListRequestFilterFilterVisibilityFromJSON(json: any): Productv2GetProductListRequestFilterFilterVisibility; +export declare function Productv2GetProductListRequestFilterFilterVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2GetProductListRequestFilterFilterVisibility; +export declare function Productv2GetProductListRequestFilterFilterVisibilityToJSON(value?: Productv2GetProductListRequestFilterFilterVisibility | null): any; diff --git a/dist/models/Productv2GetProductListRequestFilterFilterVisibility.js b/dist/models/Productv2GetProductListRequestFilterFilterVisibility.js new file mode 100644 index 0000000..521f61d --- /dev/null +++ b/dist/models/Productv2GetProductListRequestFilterFilterVisibility.js @@ -0,0 +1,100 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Productv2GetProductListRequestFilterFilterVisibility = void 0; +exports.instanceOfProductv2GetProductListRequestFilterFilterVisibility = instanceOfProductv2GetProductListRequestFilterFilterVisibility; +exports.Productv2GetProductListRequestFilterFilterVisibilityFromJSON = Productv2GetProductListRequestFilterFilterVisibilityFromJSON; +exports.Productv2GetProductListRequestFilterFilterVisibilityFromJSONTyped = Productv2GetProductListRequestFilterFilterVisibilityFromJSONTyped; +exports.Productv2GetProductListRequestFilterFilterVisibilityToJSON = Productv2GetProductListRequestFilterFilterVisibilityToJSON; +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +exports.Productv2GetProductListRequestFilterFilterVisibility = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED', + SEASONAL_AUTO_ARCHIVED: 'SEASONAL_AUTO_ARCHIVED', + VISIBLE_WITH_FBO_STOCK: 'VISIBLE_WITH_FBO_STOCK' +}; +function instanceOfProductv2GetProductListRequestFilterFilterVisibility(value) { + for (const key in exports.Productv2GetProductListRequestFilterFilterVisibility) { + if (Object.prototype.hasOwnProperty.call(exports.Productv2GetProductListRequestFilterFilterVisibility, key)) { + if (exports.Productv2GetProductListRequestFilterFilterVisibility[key] === value) { + return true; + } + } + } + return false; +} +function Productv2GetProductListRequestFilterFilterVisibilityFromJSON(json) { + return Productv2GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, false); +} +function Productv2GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function Productv2GetProductListRequestFilterFilterVisibilityToJSON(value) { + return value; +} diff --git a/dist/models/Productv2ProductsStocksRequest.d.ts b/dist/models/Productv2ProductsStocksRequest.d.ts new file mode 100644 index 0000000..5c49d5c --- /dev/null +++ b/dist/models/Productv2ProductsStocksRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv2ProductsStocksRequestStock } from './Productv2ProductsStocksRequestStock'; +/** + * + * @export + * @interface Productv2ProductsStocksRequest + */ +export interface Productv2ProductsStocksRequest { + /** + * Информация о товарах на складах. + * @type {Array} + * @memberof Productv2ProductsStocksRequest + */ + stocks: Array; +} +/** + * Check if a given object implements the Productv2ProductsStocksRequest interface. + */ +export declare function instanceOfProductv2ProductsStocksRequest(value: object): value is Productv2ProductsStocksRequest; +export declare function Productv2ProductsStocksRequestFromJSON(json: any): Productv2ProductsStocksRequest; +export declare function Productv2ProductsStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksRequest; +export declare function Productv2ProductsStocksRequestToJSON(value?: Productv2ProductsStocksRequest | null): any; diff --git a/dist/models/Productv2ProductsStocksRequest.js b/dist/models/Productv2ProductsStocksRequest.js new file mode 100644 index 0000000..da34c42 --- /dev/null +++ b/dist/models/Productv2ProductsStocksRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv2ProductsStocksRequest = instanceOfProductv2ProductsStocksRequest; +exports.Productv2ProductsStocksRequestFromJSON = Productv2ProductsStocksRequestFromJSON; +exports.Productv2ProductsStocksRequestFromJSONTyped = Productv2ProductsStocksRequestFromJSONTyped; +exports.Productv2ProductsStocksRequestToJSON = Productv2ProductsStocksRequestToJSON; +const Productv2ProductsStocksRequestStock_1 = require("./Productv2ProductsStocksRequestStock"); +/** + * Check if a given object implements the Productv2ProductsStocksRequest interface. + */ +function instanceOfProductv2ProductsStocksRequest(value) { + if (!('stocks' in value) || value['stocks'] === undefined) + return false; + return true; +} +function Productv2ProductsStocksRequestFromJSON(json) { + return Productv2ProductsStocksRequestFromJSONTyped(json, false); +} +function Productv2ProductsStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stocks': (json['stocks'].map(Productv2ProductsStocksRequestStock_1.Productv2ProductsStocksRequestStockFromJSON)), + }; +} +function Productv2ProductsStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'stocks': (value['stocks'].map(Productv2ProductsStocksRequestStock_1.Productv2ProductsStocksRequestStockToJSON)), + }; +} diff --git a/dist/models/Productv2ProductsStocksRequestStock.d.ts b/dist/models/Productv2ProductsStocksRequestStock.d.ts new file mode 100644 index 0000000..7c68dfa --- /dev/null +++ b/dist/models/Productv2ProductsStocksRequestStock.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productv2ProductsStocksRequestStock + */ +export interface Productv2ProductsStocksRequestStock { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productv2ProductsStocksRequestStock + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv2ProductsStocksRequestStock + */ + product_id: number; + /** + * Количество товара в наличии без учёта зарезервированных товаров. + * @type {number} + * @memberof Productv2ProductsStocksRequestStock + */ + stock: number; + /** + * Идентификатор склада, полученный из метода [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {number} + * @memberof Productv2ProductsStocksRequestStock + */ + warehouse_id: number; +} +/** + * Check if a given object implements the Productv2ProductsStocksRequestStock interface. + */ +export declare function instanceOfProductv2ProductsStocksRequestStock(value: object): value is Productv2ProductsStocksRequestStock; +export declare function Productv2ProductsStocksRequestStockFromJSON(json: any): Productv2ProductsStocksRequestStock; +export declare function Productv2ProductsStocksRequestStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksRequestStock; +export declare function Productv2ProductsStocksRequestStockToJSON(value?: Productv2ProductsStocksRequestStock | null): any; diff --git a/dist/models/Productv2ProductsStocksRequestStock.js b/dist/models/Productv2ProductsStocksRequestStock.js new file mode 100644 index 0000000..15f5099 --- /dev/null +++ b/dist/models/Productv2ProductsStocksRequestStock.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv2ProductsStocksRequestStock = instanceOfProductv2ProductsStocksRequestStock; +exports.Productv2ProductsStocksRequestStockFromJSON = Productv2ProductsStocksRequestStockFromJSON; +exports.Productv2ProductsStocksRequestStockFromJSONTyped = Productv2ProductsStocksRequestStockFromJSONTyped; +exports.Productv2ProductsStocksRequestStockToJSON = Productv2ProductsStocksRequestStockToJSON; +/** + * Check if a given object implements the Productv2ProductsStocksRequestStock interface. + */ +function instanceOfProductv2ProductsStocksRequestStock(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('stock' in value) || value['stock'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function Productv2ProductsStocksRequestStockFromJSON(json) { + return Productv2ProductsStocksRequestStockFromJSONTyped(json, false); +} +function Productv2ProductsStocksRequestStockFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'], + 'stock': json['stock'], + 'warehouse_id': json['warehouse_id'], + }; +} +function Productv2ProductsStocksRequestStockToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'stock': value['stock'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/Productv2ProductsStocksResponse.d.ts b/dist/models/Productv2ProductsStocksResponse.d.ts new file mode 100644 index 0000000..8a90909 --- /dev/null +++ b/dist/models/Productv2ProductsStocksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv2ProductsStocksResponseResult } from './Productv2ProductsStocksResponseResult'; +/** + * Результаты запроса. + * @export + * @interface Productv2ProductsStocksResponse + */ +export interface Productv2ProductsStocksResponse { + /** + * + * @type {Array} + * @memberof Productv2ProductsStocksResponse + */ + result?: Array; +} +/** + * Check if a given object implements the Productv2ProductsStocksResponse interface. + */ +export declare function instanceOfProductv2ProductsStocksResponse(value: object): value is Productv2ProductsStocksResponse; +export declare function Productv2ProductsStocksResponseFromJSON(json: any): Productv2ProductsStocksResponse; +export declare function Productv2ProductsStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksResponse; +export declare function Productv2ProductsStocksResponseToJSON(value?: Productv2ProductsStocksResponse | null): any; diff --git a/dist/models/Productv2ProductsStocksResponse.js b/dist/models/Productv2ProductsStocksResponse.js new file mode 100644 index 0000000..cde45e7 --- /dev/null +++ b/dist/models/Productv2ProductsStocksResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv2ProductsStocksResponse = instanceOfProductv2ProductsStocksResponse; +exports.Productv2ProductsStocksResponseFromJSON = Productv2ProductsStocksResponseFromJSON; +exports.Productv2ProductsStocksResponseFromJSONTyped = Productv2ProductsStocksResponseFromJSONTyped; +exports.Productv2ProductsStocksResponseToJSON = Productv2ProductsStocksResponseToJSON; +const Productv2ProductsStocksResponseResult_1 = require("./Productv2ProductsStocksResponseResult"); +/** + * Check if a given object implements the Productv2ProductsStocksResponse interface. + */ +function instanceOfProductv2ProductsStocksResponse(value) { + return true; +} +function Productv2ProductsStocksResponseFromJSON(json) { + return Productv2ProductsStocksResponseFromJSONTyped(json, false); +} +function Productv2ProductsStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(Productv2ProductsStocksResponseResult_1.Productv2ProductsStocksResponseResultFromJSON)), + }; +} +function Productv2ProductsStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(Productv2ProductsStocksResponseResult_1.Productv2ProductsStocksResponseResultToJSON)), + }; +} diff --git a/dist/models/Productv2ProductsStocksResponseError.d.ts b/dist/models/Productv2ProductsStocksResponseError.d.ts new file mode 100644 index 0000000..4e0a33f --- /dev/null +++ b/dist/models/Productv2ProductsStocksResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productv2ProductsStocksResponseError + */ +export interface Productv2ProductsStocksResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof Productv2ProductsStocksResponseError + */ + code?: string; + /** + * Причина ошибки. + * @type {string} + * @memberof Productv2ProductsStocksResponseError + */ + message?: string; +} +/** + * Check if a given object implements the Productv2ProductsStocksResponseError interface. + */ +export declare function instanceOfProductv2ProductsStocksResponseError(value: object): value is Productv2ProductsStocksResponseError; +export declare function Productv2ProductsStocksResponseErrorFromJSON(json: any): Productv2ProductsStocksResponseError; +export declare function Productv2ProductsStocksResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksResponseError; +export declare function Productv2ProductsStocksResponseErrorToJSON(value?: Productv2ProductsStocksResponseError | null): any; diff --git a/dist/models/Productv2ProductsStocksResponseError.js b/dist/models/Productv2ProductsStocksResponseError.js new file mode 100644 index 0000000..c94db2e --- /dev/null +++ b/dist/models/Productv2ProductsStocksResponseError.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv2ProductsStocksResponseError = instanceOfProductv2ProductsStocksResponseError; +exports.Productv2ProductsStocksResponseErrorFromJSON = Productv2ProductsStocksResponseErrorFromJSON; +exports.Productv2ProductsStocksResponseErrorFromJSONTyped = Productv2ProductsStocksResponseErrorFromJSONTyped; +exports.Productv2ProductsStocksResponseErrorToJSON = Productv2ProductsStocksResponseErrorToJSON; +/** + * Check if a given object implements the Productv2ProductsStocksResponseError interface. + */ +function instanceOfProductv2ProductsStocksResponseError(value) { + return true; +} +function Productv2ProductsStocksResponseErrorFromJSON(json) { + return Productv2ProductsStocksResponseErrorFromJSONTyped(json, false); +} +function Productv2ProductsStocksResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function Productv2ProductsStocksResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/models/Productv2ProductsStocksResponseResult.d.ts b/dist/models/Productv2ProductsStocksResponseResult.d.ts new file mode 100644 index 0000000..8f1ba87 --- /dev/null +++ b/dist/models/Productv2ProductsStocksResponseResult.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv2ProductsStocksResponseError } from './Productv2ProductsStocksResponseError'; +/** + * + * @export + * @interface Productv2ProductsStocksResponseResult + */ +export interface Productv2ProductsStocksResponseResult { + /** + * Массив ошибок, которые возникли при обработке запроса. + * @type {Array} + * @memberof Productv2ProductsStocksResponseResult + */ + errors?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productv2ProductsStocksResponseResult + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv2ProductsStocksResponseResult + */ + product_id?: number; + /** + * Если запрос выполнен успешно и остатки обновлены — `true`. + * @type {boolean} + * @memberof Productv2ProductsStocksResponseResult + */ + updated?: boolean; + /** + * Идентификатор склада. + * @type {number} + * @memberof Productv2ProductsStocksResponseResult + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the Productv2ProductsStocksResponseResult interface. + */ +export declare function instanceOfProductv2ProductsStocksResponseResult(value: object): value is Productv2ProductsStocksResponseResult; +export declare function Productv2ProductsStocksResponseResultFromJSON(json: any): Productv2ProductsStocksResponseResult; +export declare function Productv2ProductsStocksResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv2ProductsStocksResponseResult; +export declare function Productv2ProductsStocksResponseResultToJSON(value?: Productv2ProductsStocksResponseResult | null): any; diff --git a/dist/models/Productv2ProductsStocksResponseResult.js b/dist/models/Productv2ProductsStocksResponseResult.js new file mode 100644 index 0000000..2fa254b --- /dev/null +++ b/dist/models/Productv2ProductsStocksResponseResult.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv2ProductsStocksResponseResult = instanceOfProductv2ProductsStocksResponseResult; +exports.Productv2ProductsStocksResponseResultFromJSON = Productv2ProductsStocksResponseResultFromJSON; +exports.Productv2ProductsStocksResponseResultFromJSONTyped = Productv2ProductsStocksResponseResultFromJSONTyped; +exports.Productv2ProductsStocksResponseResultToJSON = Productv2ProductsStocksResponseResultToJSON; +const Productv2ProductsStocksResponseError_1 = require("./Productv2ProductsStocksResponseError"); +/** + * Check if a given object implements the Productv2ProductsStocksResponseResult interface. + */ +function instanceOfProductv2ProductsStocksResponseResult(value) { + return true; +} +function Productv2ProductsStocksResponseResultFromJSON(json) { + return Productv2ProductsStocksResponseResultFromJSONTyped(json, false); +} +function Productv2ProductsStocksResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(Productv2ProductsStocksResponseError_1.Productv2ProductsStocksResponseErrorFromJSON)), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'updated': json['updated'] == null ? undefined : json['updated'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function Productv2ProductsStocksResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(Productv2ProductsStocksResponseError_1.Productv2ProductsStocksResponseErrorToJSON)), + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'updated': value['updated'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/Productv3GetProductListRequest.d.ts b/dist/models/Productv3GetProductListRequest.d.ts new file mode 100644 index 0000000..df7ff03 --- /dev/null +++ b/dist/models/Productv3GetProductListRequest.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListRequestFilter } from './Productv3GetProductListRequestFilter'; +/** + * + * @export + * @interface Productv3GetProductListRequest + */ +export interface Productv3GetProductListRequest { + /** + * + * @type {Productv3GetProductListRequestFilter} + * @memberof Productv3GetProductListRequest + */ + filter?: Productv3GetProductListRequestFilter; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof Productv3GetProductListRequest + */ + last_id?: string; + /** + * Количество значений на странице. Минимум — 1, максимум — 1000. + * @type {number} + * @memberof Productv3GetProductListRequest + */ + limit?: number; +} +/** + * Check if a given object implements the Productv3GetProductListRequest interface. + */ +export declare function instanceOfProductv3GetProductListRequest(value: object): value is Productv3GetProductListRequest; +export declare function Productv3GetProductListRequestFromJSON(json: any): Productv3GetProductListRequest; +export declare function Productv3GetProductListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListRequest; +export declare function Productv3GetProductListRequestToJSON(value?: Productv3GetProductListRequest | null): any; diff --git a/dist/models/Productv3GetProductListRequest.js b/dist/models/Productv3GetProductListRequest.js new file mode 100644 index 0000000..5359cfa --- /dev/null +++ b/dist/models/Productv3GetProductListRequest.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv3GetProductListRequest = instanceOfProductv3GetProductListRequest; +exports.Productv3GetProductListRequestFromJSON = Productv3GetProductListRequestFromJSON; +exports.Productv3GetProductListRequestFromJSONTyped = Productv3GetProductListRequestFromJSONTyped; +exports.Productv3GetProductListRequestToJSON = Productv3GetProductListRequestToJSON; +const Productv3GetProductListRequestFilter_1 = require("./Productv3GetProductListRequestFilter"); +/** + * Check if a given object implements the Productv3GetProductListRequest interface. + */ +function instanceOfProductv3GetProductListRequest(value) { + return true; +} +function Productv3GetProductListRequestFromJSON(json) { + return Productv3GetProductListRequestFromJSONTyped(json, false); +} +function Productv3GetProductListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, Productv3GetProductListRequestFilter_1.Productv3GetProductListRequestFilterFromJSON)(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + }; +} +function Productv3GetProductListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, Productv3GetProductListRequestFilter_1.Productv3GetProductListRequestFilterToJSON)(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/Productv3GetProductListRequestFilter.d.ts b/dist/models/Productv3GetProductListRequestFilter.d.ts new file mode 100644 index 0000000..cd78f24 --- /dev/null +++ b/dist/models/Productv3GetProductListRequestFilter.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListRequestFilterFilterVisibility } from './Productv3GetProductListRequestFilterFilterVisibility'; +/** + * Фильтр по товарам. + * @export + * @interface Productv3GetProductListRequestFilter + */ +export interface Productv3GetProductListRequestFilter { + /** + * Фильтр по параметру `offer_id`. Вы можете передавать список значений. + * @type {Array} + * @memberof Productv3GetProductListRequestFilter + */ + offer_id?: Array; + /** + * Фильтр по параметру `product_id`. Вы можете передавать список значений. + * @type {Array} + * @memberof Productv3GetProductListRequestFilter + */ + product_id?: Array; + /** + * Фильтр по параметру `sku`. Вы можете передавать список значений. + * @type {Array} + * @memberof Productv3GetProductListRequestFilter + */ + skus?: Array; + /** + * + * @type {Productv3GetProductListRequestFilterFilterVisibility} + * @memberof Productv3GetProductListRequestFilter + */ + visibility?: Productv3GetProductListRequestFilterFilterVisibility; +} +/** + * Check if a given object implements the Productv3GetProductListRequestFilter interface. + */ +export declare function instanceOfProductv3GetProductListRequestFilter(value: object): value is Productv3GetProductListRequestFilter; +export declare function Productv3GetProductListRequestFilterFromJSON(json: any): Productv3GetProductListRequestFilter; +export declare function Productv3GetProductListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListRequestFilter; +export declare function Productv3GetProductListRequestFilterToJSON(value?: Productv3GetProductListRequestFilter | null): any; diff --git a/dist/models/Productv3GetProductListRequestFilter.js b/dist/models/Productv3GetProductListRequestFilter.js new file mode 100644 index 0000000..b2bd020 --- /dev/null +++ b/dist/models/Productv3GetProductListRequestFilter.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv3GetProductListRequestFilter = instanceOfProductv3GetProductListRequestFilter; +exports.Productv3GetProductListRequestFilterFromJSON = Productv3GetProductListRequestFilterFromJSON; +exports.Productv3GetProductListRequestFilterFromJSONTyped = Productv3GetProductListRequestFilterFromJSONTyped; +exports.Productv3GetProductListRequestFilterToJSON = Productv3GetProductListRequestFilterToJSON; +const Productv3GetProductListRequestFilterFilterVisibility_1 = require("./Productv3GetProductListRequestFilterFilterVisibility"); +/** + * Check if a given object implements the Productv3GetProductListRequestFilter interface. + */ +function instanceOfProductv3GetProductListRequestFilter(value) { + return true; +} +function Productv3GetProductListRequestFilterFromJSON(json) { + return Productv3GetProductListRequestFilterFromJSONTyped(json, false); +} +function Productv3GetProductListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'skus': json['skus'] == null ? undefined : json['skus'], + 'visibility': json['visibility'] == null ? undefined : (0, Productv3GetProductListRequestFilterFilterVisibility_1.Productv3GetProductListRequestFilterFilterVisibilityFromJSON)(json['visibility']), + }; +} +function Productv3GetProductListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'skus': value['skus'], + 'visibility': (0, Productv3GetProductListRequestFilterFilterVisibility_1.Productv3GetProductListRequestFilterFilterVisibilityToJSON)(value['visibility']), + }; +} diff --git a/dist/models/Productv3GetProductListRequestFilterFilterVisibility.d.ts b/dist/models/Productv3GetProductListRequestFilterFilterVisibility.d.ts new file mode 100644 index 0000000..3b27d0d --- /dev/null +++ b/dist/models/Productv3GetProductListRequestFilterFilterVisibility.d.ts @@ -0,0 +1,77 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export declare const Productv3GetProductListRequestFilterFilterVisibility: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; + readonly SEASONAL_AUTO_ARCHIVED: "SEASONAL_AUTO_ARCHIVED"; + readonly VISIBLE_WITH_FBO_STOCK: "VISIBLE_WITH_FBO_STOCK"; +}; +export type Productv3GetProductListRequestFilterFilterVisibility = typeof Productv3GetProductListRequestFilterFilterVisibility[keyof typeof Productv3GetProductListRequestFilterFilterVisibility]; +export declare function instanceOfProductv3GetProductListRequestFilterFilterVisibility(value: any): boolean; +export declare function Productv3GetProductListRequestFilterFilterVisibilityFromJSON(json: any): Productv3GetProductListRequestFilterFilterVisibility; +export declare function Productv3GetProductListRequestFilterFilterVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListRequestFilterFilterVisibility; +export declare function Productv3GetProductListRequestFilterFilterVisibilityToJSON(value?: Productv3GetProductListRequestFilterFilterVisibility | null): any; diff --git a/dist/models/Productv3GetProductListRequestFilterFilterVisibility.js b/dist/models/Productv3GetProductListRequestFilterFilterVisibility.js new file mode 100644 index 0000000..4cb30e0 --- /dev/null +++ b/dist/models/Productv3GetProductListRequestFilterFilterVisibility.js @@ -0,0 +1,100 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Productv3GetProductListRequestFilterFilterVisibility = void 0; +exports.instanceOfProductv3GetProductListRequestFilterFilterVisibility = instanceOfProductv3GetProductListRequestFilterFilterVisibility; +exports.Productv3GetProductListRequestFilterFilterVisibilityFromJSON = Productv3GetProductListRequestFilterFilterVisibilityFromJSON; +exports.Productv3GetProductListRequestFilterFilterVisibilityFromJSONTyped = Productv3GetProductListRequestFilterFilterVisibilityFromJSONTyped; +exports.Productv3GetProductListRequestFilterFilterVisibilityToJSON = Productv3GetProductListRequestFilterFilterVisibilityToJSON; +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +exports.Productv3GetProductListRequestFilterFilterVisibility = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED', + SEASONAL_AUTO_ARCHIVED: 'SEASONAL_AUTO_ARCHIVED', + VISIBLE_WITH_FBO_STOCK: 'VISIBLE_WITH_FBO_STOCK' +}; +function instanceOfProductv3GetProductListRequestFilterFilterVisibility(value) { + for (const key in exports.Productv3GetProductListRequestFilterFilterVisibility) { + if (Object.prototype.hasOwnProperty.call(exports.Productv3GetProductListRequestFilterFilterVisibility, key)) { + if (exports.Productv3GetProductListRequestFilterFilterVisibility[key] === value) { + return true; + } + } + } + return false; +} +function Productv3GetProductListRequestFilterFilterVisibilityFromJSON(json) { + return Productv3GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, false); +} +function Productv3GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function Productv3GetProductListRequestFilterFilterVisibilityToJSON(value) { + return value; +} diff --git a/dist/models/Productv3GetProductListResponse.d.ts b/dist/models/Productv3GetProductListResponse.d.ts new file mode 100644 index 0000000..fae29c8 --- /dev/null +++ b/dist/models/Productv3GetProductListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListResponseResult } from './Productv3GetProductListResponseResult'; +/** + * + * @export + * @interface Productv3GetProductListResponse + */ +export interface Productv3GetProductListResponse { + /** + * + * @type {Productv3GetProductListResponseResult} + * @memberof Productv3GetProductListResponse + */ + result?: Productv3GetProductListResponseResult; +} +/** + * Check if a given object implements the Productv3GetProductListResponse interface. + */ +export declare function instanceOfProductv3GetProductListResponse(value: object): value is Productv3GetProductListResponse; +export declare function Productv3GetProductListResponseFromJSON(json: any): Productv3GetProductListResponse; +export declare function Productv3GetProductListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListResponse; +export declare function Productv3GetProductListResponseToJSON(value?: Productv3GetProductListResponse | null): any; diff --git a/dist/models/Productv3GetProductListResponse.js b/dist/models/Productv3GetProductListResponse.js new file mode 100644 index 0000000..96062a7 --- /dev/null +++ b/dist/models/Productv3GetProductListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv3GetProductListResponse = instanceOfProductv3GetProductListResponse; +exports.Productv3GetProductListResponseFromJSON = Productv3GetProductListResponseFromJSON; +exports.Productv3GetProductListResponseFromJSONTyped = Productv3GetProductListResponseFromJSONTyped; +exports.Productv3GetProductListResponseToJSON = Productv3GetProductListResponseToJSON; +const Productv3GetProductListResponseResult_1 = require("./Productv3GetProductListResponseResult"); +/** + * Check if a given object implements the Productv3GetProductListResponse interface. + */ +function instanceOfProductv3GetProductListResponse(value) { + return true; +} +function Productv3GetProductListResponseFromJSON(json) { + return Productv3GetProductListResponseFromJSONTyped(json, false); +} +function Productv3GetProductListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, Productv3GetProductListResponseResult_1.Productv3GetProductListResponseResultFromJSON)(json['result']), + }; +} +function Productv3GetProductListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, Productv3GetProductListResponseResult_1.Productv3GetProductListResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/Productv3GetProductListResponseItem.d.ts b/dist/models/Productv3GetProductListResponseItem.d.ts new file mode 100644 index 0000000..b848d81 --- /dev/null +++ b/dist/models/Productv3GetProductListResponseItem.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListResponseItemQuant } from './Productv3GetProductListResponseItemQuant'; +/** + * + * @export + * @interface Productv3GetProductListResponseItem + */ +export interface Productv3GetProductListResponseItem { + /** + * Товар в архиве. + * @type {boolean} + * @memberof Productv3GetProductListResponseItem + */ + archived?: boolean; + /** + * Есть остатки на складах FBO. + * @type {boolean} + * @memberof Productv3GetProductListResponseItem + */ + has_fbo_stocks?: boolean; + /** + * Есть остатки на складах FBS. + * @type {boolean} + * @memberof Productv3GetProductListResponseItem + */ + has_fbs_stocks?: boolean; + /** + * Уценённый товар. + * @type {boolean} + * @memberof Productv3GetProductListResponseItem + */ + is_discounted?: boolean; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productv3GetProductListResponseItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv3GetProductListResponseItem + */ + product_id?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof Productv3GetProductListResponseItem + */ + sku?: number; + /** + * Список квантов. + * @type {Array} + * @memberof Productv3GetProductListResponseItem + */ + quants?: Array; +} +/** + * Check if a given object implements the Productv3GetProductListResponseItem interface. + */ +export declare function instanceOfProductv3GetProductListResponseItem(value: object): value is Productv3GetProductListResponseItem; +export declare function Productv3GetProductListResponseItemFromJSON(json: any): Productv3GetProductListResponseItem; +export declare function Productv3GetProductListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListResponseItem; +export declare function Productv3GetProductListResponseItemToJSON(value?: Productv3GetProductListResponseItem | null): any; diff --git a/dist/models/Productv3GetProductListResponseItem.js b/dist/models/Productv3GetProductListResponseItem.js new file mode 100644 index 0000000..c340398 --- /dev/null +++ b/dist/models/Productv3GetProductListResponseItem.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv3GetProductListResponseItem = instanceOfProductv3GetProductListResponseItem; +exports.Productv3GetProductListResponseItemFromJSON = Productv3GetProductListResponseItemFromJSON; +exports.Productv3GetProductListResponseItemFromJSONTyped = Productv3GetProductListResponseItemFromJSONTyped; +exports.Productv3GetProductListResponseItemToJSON = Productv3GetProductListResponseItemToJSON; +const Productv3GetProductListResponseItemQuant_1 = require("./Productv3GetProductListResponseItemQuant"); +/** + * Check if a given object implements the Productv3GetProductListResponseItem interface. + */ +function instanceOfProductv3GetProductListResponseItem(value) { + return true; +} +function Productv3GetProductListResponseItemFromJSON(json) { + return Productv3GetProductListResponseItemFromJSONTyped(json, false); +} +function Productv3GetProductListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'archived': json['archived'] == null ? undefined : json['archived'], + 'has_fbo_stocks': json['has_fbo_stocks'] == null ? undefined : json['has_fbo_stocks'], + 'has_fbs_stocks': json['has_fbs_stocks'] == null ? undefined : json['has_fbs_stocks'], + 'is_discounted': json['is_discounted'] == null ? undefined : json['is_discounted'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'quants': json['quants'] == null ? undefined : (json['quants'].map(Productv3GetProductListResponseItemQuant_1.Productv3GetProductListResponseItemQuantFromJSON)), + }; +} +function Productv3GetProductListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'archived': value['archived'], + 'has_fbo_stocks': value['has_fbo_stocks'], + 'has_fbs_stocks': value['has_fbs_stocks'], + 'is_discounted': value['is_discounted'], + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + 'quants': value['quants'] == null ? undefined : (value['quants'].map(Productv3GetProductListResponseItemQuant_1.Productv3GetProductListResponseItemQuantToJSON)), + }; +} diff --git a/dist/models/Productv3GetProductListResponseItemQuant.d.ts b/dist/models/Productv3GetProductListResponseItemQuant.d.ts new file mode 100644 index 0000000..dce777a --- /dev/null +++ b/dist/models/Productv3GetProductListResponseItemQuant.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Productv3GetProductListResponseItemQuant + */ +export interface Productv3GetProductListResponseItemQuant { + /** + * Идентификатор эконом-товара. + * @type {string} + * @memberof Productv3GetProductListResponseItemQuant + */ + quant_code?: string; + /** + * Размер кванта. + * @type {number} + * @memberof Productv3GetProductListResponseItemQuant + */ + quant_size?: number; +} +/** + * Check if a given object implements the Productv3GetProductListResponseItemQuant interface. + */ +export declare function instanceOfProductv3GetProductListResponseItemQuant(value: object): value is Productv3GetProductListResponseItemQuant; +export declare function Productv3GetProductListResponseItemQuantFromJSON(json: any): Productv3GetProductListResponseItemQuant; +export declare function Productv3GetProductListResponseItemQuantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListResponseItemQuant; +export declare function Productv3GetProductListResponseItemQuantToJSON(value?: Productv3GetProductListResponseItemQuant | null): any; diff --git a/dist/models/Productv3GetProductListResponseItemQuant.js b/dist/models/Productv3GetProductListResponseItemQuant.js new file mode 100644 index 0000000..740bdbc --- /dev/null +++ b/dist/models/Productv3GetProductListResponseItemQuant.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv3GetProductListResponseItemQuant = instanceOfProductv3GetProductListResponseItemQuant; +exports.Productv3GetProductListResponseItemQuantFromJSON = Productv3GetProductListResponseItemQuantFromJSON; +exports.Productv3GetProductListResponseItemQuantFromJSONTyped = Productv3GetProductListResponseItemQuantFromJSONTyped; +exports.Productv3GetProductListResponseItemQuantToJSON = Productv3GetProductListResponseItemQuantToJSON; +/** + * Check if a given object implements the Productv3GetProductListResponseItemQuant interface. + */ +function instanceOfProductv3GetProductListResponseItemQuant(value) { + return true; +} +function Productv3GetProductListResponseItemQuantFromJSON(json) { + return Productv3GetProductListResponseItemQuantFromJSONTyped(json, false); +} +function Productv3GetProductListResponseItemQuantFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quant_code': json['quant_code'] == null ? undefined : json['quant_code'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + }; +} +function Productv3GetProductListResponseItemQuantToJSON(value) { + if (value == null) { + return value; + } + return { + 'quant_code': value['quant_code'], + 'quant_size': value['quant_size'], + }; +} diff --git a/dist/models/Productv3GetProductListResponseResult.d.ts b/dist/models/Productv3GetProductListResponseResult.d.ts new file mode 100644 index 0000000..470d9b6 --- /dev/null +++ b/dist/models/Productv3GetProductListResponseResult.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv3GetProductListResponseItem } from './Productv3GetProductListResponseItem'; +/** + * Результат. + * @export + * @interface Productv3GetProductListResponseResult + */ +export interface Productv3GetProductListResponseResult { + /** + * Список товаров. + * @type {Array} + * @memberof Productv3GetProductListResponseResult + */ + items?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof Productv3GetProductListResponseResult + */ + last_id?: string; + /** + * Всего товаров. + * @type {number} + * @memberof Productv3GetProductListResponseResult + */ + total?: number; +} +/** + * Check if a given object implements the Productv3GetProductListResponseResult interface. + */ +export declare function instanceOfProductv3GetProductListResponseResult(value: object): value is Productv3GetProductListResponseResult; +export declare function Productv3GetProductListResponseResultFromJSON(json: any): Productv3GetProductListResponseResult; +export declare function Productv3GetProductListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv3GetProductListResponseResult; +export declare function Productv3GetProductListResponseResultToJSON(value?: Productv3GetProductListResponseResult | null): any; diff --git a/dist/models/Productv3GetProductListResponseResult.js b/dist/models/Productv3GetProductListResponseResult.js new file mode 100644 index 0000000..b088d59 --- /dev/null +++ b/dist/models/Productv3GetProductListResponseResult.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv3GetProductListResponseResult = instanceOfProductv3GetProductListResponseResult; +exports.Productv3GetProductListResponseResultFromJSON = Productv3GetProductListResponseResultFromJSON; +exports.Productv3GetProductListResponseResultFromJSONTyped = Productv3GetProductListResponseResultFromJSONTyped; +exports.Productv3GetProductListResponseResultToJSON = Productv3GetProductListResponseResultToJSON; +const Productv3GetProductListResponseItem_1 = require("./Productv3GetProductListResponseItem"); +/** + * Check if a given object implements the Productv3GetProductListResponseResult interface. + */ +function instanceOfProductv3GetProductListResponseResult(value) { + return true; +} +function Productv3GetProductListResponseResultFromJSON(json) { + return Productv3GetProductListResponseResultFromJSONTyped(json, false); +} +function Productv3GetProductListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(Productv3GetProductListResponseItem_1.Productv3GetProductListResponseItemFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function Productv3GetProductListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(Productv3GetProductListResponseItem_1.Productv3GetProductListResponseItemToJSON)), + 'last_id': value['last_id'], + 'total': value['total'], + }; +} diff --git a/dist/models/Productv4Filter.d.ts b/dist/models/Productv4Filter.d.ts new file mode 100644 index 0000000..87fa387 --- /dev/null +++ b/dist/models/Productv4Filter.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv2GetProductListRequestFilterFilterVisibility } from './Productv2GetProductListRequestFilterFilterVisibility'; +/** + * Фильтр по товарам. + * @export + * @interface Productv4Filter + */ +export interface Productv4Filter { + /** + * Фильтр по параметру `offer_id`. Можно передавать список значений. + * @type {Array} + * @memberof Productv4Filter + */ + offer_id?: Array; + /** + * Фильтр по параметру `product_id`. Можно передавать до 1000 значений. + * @type {Array} + * @memberof Productv4Filter + */ + product_id?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof Productv4Filter + */ + sku?: Array; + /** + * + * @type {Productv2GetProductListRequestFilterFilterVisibility} + * @memberof Productv4Filter + */ + visibility?: Productv2GetProductListRequestFilterFilterVisibility; +} +/** + * Check if a given object implements the Productv4Filter interface. + */ +export declare function instanceOfProductv4Filter(value: object): value is Productv4Filter; +export declare function Productv4FilterFromJSON(json: any): Productv4Filter; +export declare function Productv4FilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv4Filter; +export declare function Productv4FilterToJSON(value?: Productv4Filter | null): any; diff --git a/dist/models/Productv4Filter.js b/dist/models/Productv4Filter.js new file mode 100644 index 0000000..a694c1a --- /dev/null +++ b/dist/models/Productv4Filter.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv4Filter = instanceOfProductv4Filter; +exports.Productv4FilterFromJSON = Productv4FilterFromJSON; +exports.Productv4FilterFromJSONTyped = Productv4FilterFromJSONTyped; +exports.Productv4FilterToJSON = Productv4FilterToJSON; +const Productv2GetProductListRequestFilterFilterVisibility_1 = require("./Productv2GetProductListRequestFilterFilterVisibility"); +/** + * Check if a given object implements the Productv4Filter interface. + */ +function instanceOfProductv4Filter(value) { + return true; +} +function Productv4FilterFromJSON(json) { + return Productv4FilterFromJSONTyped(json, false); +} +function Productv4FilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'visibility': json['visibility'] == null ? undefined : (0, Productv2GetProductListRequestFilterFilterVisibility_1.Productv2GetProductListRequestFilterFilterVisibilityFromJSON)(json['visibility']), + }; +} +function Productv4FilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + 'visibility': (0, Productv2GetProductListRequestFilterFilterVisibility_1.Productv2GetProductListRequestFilterFilterVisibilityToJSON)(value['visibility']), + }; +} diff --git a/dist/models/Productv4GetProductAttributesV4Request.d.ts b/dist/models/Productv4GetProductAttributesV4Request.d.ts new file mode 100644 index 0000000..8f320ee --- /dev/null +++ b/dist/models/Productv4GetProductAttributesV4Request.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv4Filter } from './Productv4Filter'; +/** + * + * @export + * @interface Productv4GetProductAttributesV4Request + */ +export interface Productv4GetProductAttributesV4Request { + /** + * + * @type {Productv4Filter} + * @memberof Productv4GetProductAttributesV4Request + */ + filter?: Productv4Filter; + /** + * Идентификатор последнего значения на странице. Оставьте это поле пустым при выполнении первого запроса. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4Request + */ + last_id?: string; + /** + * Количество значений на странице. + * @type {number} + * @memberof Productv4GetProductAttributesV4Request + */ + limit?: number; + /** + * Параметр, по которому товары будут отсортированы: + * - `sku` — сортировка по идентификатору товара в системе Ozon; + * - `offer_id` — сортировка по артикулу товара; + * - `id` — сортировка по идентификатору товара; + * - `title` — сортировка по названию товара. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4Request + */ + sort_by?: string; + /** + * Направление сортировки: + * - `asc` — по возрастанию, + * - `desc` — по убыванию. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4Request + */ + sort_dir?: string; +} +/** + * Check if a given object implements the Productv4GetProductAttributesV4Request interface. + */ +export declare function instanceOfProductv4GetProductAttributesV4Request(value: object): value is Productv4GetProductAttributesV4Request; +export declare function Productv4GetProductAttributesV4RequestFromJSON(json: any): Productv4GetProductAttributesV4Request; +export declare function Productv4GetProductAttributesV4RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv4GetProductAttributesV4Request; +export declare function Productv4GetProductAttributesV4RequestToJSON(value?: Productv4GetProductAttributesV4Request | null): any; diff --git a/dist/models/Productv4GetProductAttributesV4Request.js b/dist/models/Productv4GetProductAttributesV4Request.js new file mode 100644 index 0000000..06e3308 --- /dev/null +++ b/dist/models/Productv4GetProductAttributesV4Request.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv4GetProductAttributesV4Request = instanceOfProductv4GetProductAttributesV4Request; +exports.Productv4GetProductAttributesV4RequestFromJSON = Productv4GetProductAttributesV4RequestFromJSON; +exports.Productv4GetProductAttributesV4RequestFromJSONTyped = Productv4GetProductAttributesV4RequestFromJSONTyped; +exports.Productv4GetProductAttributesV4RequestToJSON = Productv4GetProductAttributesV4RequestToJSON; +const Productv4Filter_1 = require("./Productv4Filter"); +/** + * Check if a given object implements the Productv4GetProductAttributesV4Request interface. + */ +function instanceOfProductv4GetProductAttributesV4Request(value) { + return true; +} +function Productv4GetProductAttributesV4RequestFromJSON(json) { + return Productv4GetProductAttributesV4RequestFromJSONTyped(json, false); +} +function Productv4GetProductAttributesV4RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, Productv4Filter_1.Productv4FilterFromJSON)(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_by': json['sort_by'] == null ? undefined : json['sort_by'], + 'sort_dir': json['sort_dir'] == null ? undefined : json['sort_dir'], + }; +} +function Productv4GetProductAttributesV4RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, Productv4Filter_1.Productv4FilterToJSON)(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_by': value['sort_by'], + 'sort_dir': value['sort_dir'], + }; +} diff --git a/dist/models/Productv4GetProductAttributesV4Response.d.ts b/dist/models/Productv4GetProductAttributesV4Response.d.ts new file mode 100644 index 0000000..c424e80 --- /dev/null +++ b/dist/models/Productv4GetProductAttributesV4Response.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv4GetProductAttributesV4ResponseResult } from './Productv4GetProductAttributesV4ResponseResult'; +/** + * + * @export + * @interface Productv4GetProductAttributesV4Response + */ +export interface Productv4GetProductAttributesV4Response { + /** + * Результаты запроса. + * @type {Array} + * @memberof Productv4GetProductAttributesV4Response + */ + result?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, укажите полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4Response + */ + last_id?: string; + /** + * Количество товаров в списке. + * @type {string} + * @memberof Productv4GetProductAttributesV4Response + */ + total?: string; +} +/** + * Check if a given object implements the Productv4GetProductAttributesV4Response interface. + */ +export declare function instanceOfProductv4GetProductAttributesV4Response(value: object): value is Productv4GetProductAttributesV4Response; +export declare function Productv4GetProductAttributesV4ResponseFromJSON(json: any): Productv4GetProductAttributesV4Response; +export declare function Productv4GetProductAttributesV4ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv4GetProductAttributesV4Response; +export declare function Productv4GetProductAttributesV4ResponseToJSON(value?: Productv4GetProductAttributesV4Response | null): any; diff --git a/dist/models/Productv4GetProductAttributesV4Response.js b/dist/models/Productv4GetProductAttributesV4Response.js new file mode 100644 index 0000000..f0b8daf --- /dev/null +++ b/dist/models/Productv4GetProductAttributesV4Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv4GetProductAttributesV4Response = instanceOfProductv4GetProductAttributesV4Response; +exports.Productv4GetProductAttributesV4ResponseFromJSON = Productv4GetProductAttributesV4ResponseFromJSON; +exports.Productv4GetProductAttributesV4ResponseFromJSONTyped = Productv4GetProductAttributesV4ResponseFromJSONTyped; +exports.Productv4GetProductAttributesV4ResponseToJSON = Productv4GetProductAttributesV4ResponseToJSON; +const Productv4GetProductAttributesV4ResponseResult_1 = require("./Productv4GetProductAttributesV4ResponseResult"); +/** + * Check if a given object implements the Productv4GetProductAttributesV4Response interface. + */ +function instanceOfProductv4GetProductAttributesV4Response(value) { + return true; +} +function Productv4GetProductAttributesV4ResponseFromJSON(json) { + return Productv4GetProductAttributesV4ResponseFromJSONTyped(json, false); +} +function Productv4GetProductAttributesV4ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(Productv4GetProductAttributesV4ResponseResult_1.Productv4GetProductAttributesV4ResponseResultFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function Productv4GetProductAttributesV4ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(Productv4GetProductAttributesV4ResponseResult_1.Productv4GetProductAttributesV4ResponseResultToJSON)), + 'last_id': value['last_id'], + 'total': value['total'], + }; +} diff --git a/dist/models/Productv4GetProductAttributesV4ResponseResult.d.ts b/dist/models/Productv4GetProductAttributesV4ResponseResult.d.ts new file mode 100644 index 0000000..c08841d --- /dev/null +++ b/dist/models/Productv4GetProductAttributesV4ResponseResult.d.ts @@ -0,0 +1,168 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetProductAttributesV4ResponseAttribute } from './ProductGetProductAttributesV4ResponseAttribute'; +import type { V4GetProductAttributesResponseModelInfo } from './V4GetProductAttributesResponseModelInfo'; +import type { V4GetProductAttributesResponsePdf } from './V4GetProductAttributesResponsePdf'; +import type { GetProductAttributesV4ResponseAttribute } from './GetProductAttributesV4ResponseAttribute'; +import type { GetProductAttributesResponseImage } from './GetProductAttributesResponseImage'; +/** + * + * @export + * @interface Productv4GetProductAttributesV4ResponseResult + */ +export interface Productv4GetProductAttributesV4ResponseResult { + /** + * Список характеристик товара. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + attributes?: Array; + /** + * Список идентификаторов характеристик со значением по умолчанию. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + attributes_with_defaults?: Array; + /** + * Штрихкод. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + barcode?: string; + /** + * Все штрихкоды товара. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + barcodes?: Array; + /** + * Идентификатор категории. + * Используйте его с методами [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) и [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + description_category_id?: number; + /** + * Маркетинговый цвет. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + color_image?: string; + /** + * Массив вложенных характеристик. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + complex_attributes?: Array; + /** + * Глубина. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + depth?: number; + /** + * Единица измерения габаритов: + * - `mm` — миллиметры, + * - `cm` — сантиметры, + * - `in` — дюймы. + * + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + dimension_unit?: string; + /** + * Высота упаковки. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + height?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + id?: number; + /** + * Массив ссылок на изображения товара. Порядок изображений аналогичен порядку в карточке товаров. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + images?: Array; + /** + * + * @type {V4GetProductAttributesResponseModelInfo} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + model_info?: V4GetProductAttributesResponseModelInfo; + /** + * Название товара. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + offer_id?: string; + /** + * Массив PDF-файлов. + * @type {Array} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + pdf_list?: Array; + /** + * Ссылка на главное изображение товара. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + primary_image?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + sku?: string; + /** + * Идентификатор типа товара. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + type_id?: number; + /** + * Вес товара в упаковке. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + weight?: number; + /** + * Единица измерения веса. + * @type {string} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + weight_unit?: string; + /** + * Ширина упаковки. + * @type {number} + * @memberof Productv4GetProductAttributesV4ResponseResult + */ + width?: number; +} +/** + * Check if a given object implements the Productv4GetProductAttributesV4ResponseResult interface. + */ +export declare function instanceOfProductv4GetProductAttributesV4ResponseResult(value: object): value is Productv4GetProductAttributesV4ResponseResult; +export declare function Productv4GetProductAttributesV4ResponseResultFromJSON(json: any): Productv4GetProductAttributesV4ResponseResult; +export declare function Productv4GetProductAttributesV4ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv4GetProductAttributesV4ResponseResult; +export declare function Productv4GetProductAttributesV4ResponseResultToJSON(value?: Productv4GetProductAttributesV4ResponseResult | null): any; diff --git a/dist/models/Productv4GetProductAttributesV4ResponseResult.js b/dist/models/Productv4GetProductAttributesV4ResponseResult.js new file mode 100644 index 0000000..7542ad8 --- /dev/null +++ b/dist/models/Productv4GetProductAttributesV4ResponseResult.js @@ -0,0 +1,91 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv4GetProductAttributesV4ResponseResult = instanceOfProductv4GetProductAttributesV4ResponseResult; +exports.Productv4GetProductAttributesV4ResponseResultFromJSON = Productv4GetProductAttributesV4ResponseResultFromJSON; +exports.Productv4GetProductAttributesV4ResponseResultFromJSONTyped = Productv4GetProductAttributesV4ResponseResultFromJSONTyped; +exports.Productv4GetProductAttributesV4ResponseResultToJSON = Productv4GetProductAttributesV4ResponseResultToJSON; +const ProductGetProductAttributesV4ResponseAttribute_1 = require("./ProductGetProductAttributesV4ResponseAttribute"); +const V4GetProductAttributesResponseModelInfo_1 = require("./V4GetProductAttributesResponseModelInfo"); +const V4GetProductAttributesResponsePdf_1 = require("./V4GetProductAttributesResponsePdf"); +const GetProductAttributesV4ResponseAttribute_1 = require("./GetProductAttributesV4ResponseAttribute"); +const GetProductAttributesResponseImage_1 = require("./GetProductAttributesResponseImage"); +/** + * Check if a given object implements the Productv4GetProductAttributesV4ResponseResult interface. + */ +function instanceOfProductv4GetProductAttributesV4ResponseResult(value) { + return true; +} +function Productv4GetProductAttributesV4ResponseResultFromJSON(json) { + return Productv4GetProductAttributesV4ResponseResultFromJSONTyped(json, false); +} +function Productv4GetProductAttributesV4ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(ProductGetProductAttributesV4ResponseAttribute_1.ProductGetProductAttributesV4ResponseAttributeFromJSON)), + 'attributes_with_defaults': json['attributes_with_defaults'] == null ? undefined : json['attributes_with_defaults'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'description_category_id': json['description_category_id'] == null ? undefined : json['description_category_id'], + 'color_image': json['color_image'] == null ? undefined : json['color_image'], + 'complex_attributes': json['complex_attributes'] == null ? undefined : (json['complex_attributes'].map(GetProductAttributesV4ResponseAttribute_1.GetProductAttributesV4ResponseAttributeFromJSON)), + 'depth': json['depth'] == null ? undefined : json['depth'], + 'dimension_unit': json['dimension_unit'] == null ? undefined : json['dimension_unit'], + 'height': json['height'] == null ? undefined : json['height'], + 'id': json['id'] == null ? undefined : json['id'], + 'images': json['images'] == null ? undefined : (json['images'].map(GetProductAttributesResponseImage_1.GetProductAttributesResponseImageFromJSON)), + 'model_info': json['model_info'] == null ? undefined : (0, V4GetProductAttributesResponseModelInfo_1.V4GetProductAttributesResponseModelInfoFromJSON)(json['model_info']), + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'pdf_list': json['pdf_list'] == null ? undefined : (json['pdf_list'].map(V4GetProductAttributesResponsePdf_1.V4GetProductAttributesResponsePdfFromJSON)), + 'primary_image': json['primary_image'] == null ? undefined : json['primary_image'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'weight_unit': json['weight_unit'] == null ? undefined : json['weight_unit'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function Productv4GetProductAttributesV4ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(ProductGetProductAttributesV4ResponseAttribute_1.ProductGetProductAttributesV4ResponseAttributeToJSON)), + 'attributes_with_defaults': value['attributes_with_defaults'], + 'barcode': value['barcode'], + 'barcodes': value['barcodes'], + 'description_category_id': value['description_category_id'], + 'color_image': value['color_image'], + 'complex_attributes': value['complex_attributes'] == null ? undefined : (value['complex_attributes'].map(GetProductAttributesV4ResponseAttribute_1.GetProductAttributesV4ResponseAttributeToJSON)), + 'depth': value['depth'], + 'dimension_unit': value['dimension_unit'], + 'height': value['height'], + 'id': value['id'], + 'images': value['images'] == null ? undefined : (value['images'].map(GetProductAttributesResponseImage_1.GetProductAttributesResponseImageToJSON)), + 'model_info': (0, V4GetProductAttributesResponseModelInfo_1.V4GetProductAttributesResponseModelInfoToJSON)(value['model_info']), + 'name': value['name'], + 'offer_id': value['offer_id'], + 'pdf_list': value['pdf_list'] == null ? undefined : (value['pdf_list'].map(V4GetProductAttributesResponsePdf_1.V4GetProductAttributesResponsePdfToJSON)), + 'primary_image': value['primary_image'], + 'sku': value['sku'], + 'type_id': value['type_id'], + 'weight': value['weight'], + 'weight_unit': value['weight_unit'], + 'width': value['width'], + }; +} diff --git a/dist/models/Productv5Filter.d.ts b/dist/models/Productv5Filter.d.ts new file mode 100644 index 0000000..fb57c86 --- /dev/null +++ b/dist/models/Productv5Filter.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv5GetProductListRequestFilterFilterVisibility } from './Productv5GetProductListRequestFilterFilterVisibility'; +/** + * Фильтр по товарам. + * @export + * @interface Productv5Filter + */ +export interface Productv5Filter { + /** + * Фильтр по параметру `offer_id`. Можно передавать до 1000 значений. + * @type {Array} + * @memberof Productv5Filter + */ + offer_id?: Array; + /** + * Фильтр по параметру `product_id`. Можно передавать до 1000 значений. + * @type {Array} + * @memberof Productv5Filter + */ + product_id?: Array; + /** + * + * @type {Productv5GetProductListRequestFilterFilterVisibility} + * @memberof Productv5Filter + */ + visibility?: Productv5GetProductListRequestFilterFilterVisibility; +} +/** + * Check if a given object implements the Productv5Filter interface. + */ +export declare function instanceOfProductv5Filter(value: object): value is Productv5Filter; +export declare function Productv5FilterFromJSON(json: any): Productv5Filter; +export declare function Productv5FilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv5Filter; +export declare function Productv5FilterToJSON(value?: Productv5Filter | null): any; diff --git a/dist/models/Productv5Filter.js b/dist/models/Productv5Filter.js new file mode 100644 index 0000000..0db9b67 --- /dev/null +++ b/dist/models/Productv5Filter.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv5Filter = instanceOfProductv5Filter; +exports.Productv5FilterFromJSON = Productv5FilterFromJSON; +exports.Productv5FilterFromJSONTyped = Productv5FilterFromJSONTyped; +exports.Productv5FilterToJSON = Productv5FilterToJSON; +const Productv5GetProductListRequestFilterFilterVisibility_1 = require("./Productv5GetProductListRequestFilterFilterVisibility"); +/** + * Check if a given object implements the Productv5Filter interface. + */ +function instanceOfProductv5Filter(value) { + return true; +} +function Productv5FilterFromJSON(json) { + return Productv5FilterFromJSONTyped(json, false); +} +function Productv5FilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'visibility': json['visibility'] == null ? undefined : (0, Productv5GetProductListRequestFilterFilterVisibility_1.Productv5GetProductListRequestFilterFilterVisibilityFromJSON)(json['visibility']), + }; +} +function Productv5FilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'visibility': (0, Productv5GetProductListRequestFilterFilterVisibility_1.Productv5GetProductListRequestFilterFilterVisibilityToJSON)(value['visibility']), + }; +} diff --git a/dist/models/Productv5GetProductInfoPricesV5Request.d.ts b/dist/models/Productv5GetProductInfoPricesV5Request.d.ts new file mode 100644 index 0000000..938510e --- /dev/null +++ b/dist/models/Productv5GetProductInfoPricesV5Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Productv5Filter } from './Productv5Filter'; +/** + * + * @export + * @interface Productv5GetProductInfoPricesV5Request + */ +export interface Productv5GetProductInfoPricesV5Request { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof Productv5GetProductInfoPricesV5Request + */ + cursor?: string; + /** + * + * @type {Productv5Filter} + * @memberof Productv5GetProductInfoPricesV5Request + */ + filter: Productv5Filter; + /** + * Количество значений на странице. + * @type {number} + * @memberof Productv5GetProductInfoPricesV5Request + */ + limit: number; +} +/** + * Check if a given object implements the Productv5GetProductInfoPricesV5Request interface. + */ +export declare function instanceOfProductv5GetProductInfoPricesV5Request(value: object): value is Productv5GetProductInfoPricesV5Request; +export declare function Productv5GetProductInfoPricesV5RequestFromJSON(json: any): Productv5GetProductInfoPricesV5Request; +export declare function Productv5GetProductInfoPricesV5RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv5GetProductInfoPricesV5Request; +export declare function Productv5GetProductInfoPricesV5RequestToJSON(value?: Productv5GetProductInfoPricesV5Request | null): any; diff --git a/dist/models/Productv5GetProductInfoPricesV5Request.js b/dist/models/Productv5GetProductInfoPricesV5Request.js new file mode 100644 index 0000000..c93a6ef --- /dev/null +++ b/dist/models/Productv5GetProductInfoPricesV5Request.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv5GetProductInfoPricesV5Request = instanceOfProductv5GetProductInfoPricesV5Request; +exports.Productv5GetProductInfoPricesV5RequestFromJSON = Productv5GetProductInfoPricesV5RequestFromJSON; +exports.Productv5GetProductInfoPricesV5RequestFromJSONTyped = Productv5GetProductInfoPricesV5RequestFromJSONTyped; +exports.Productv5GetProductInfoPricesV5RequestToJSON = Productv5GetProductInfoPricesV5RequestToJSON; +const Productv5Filter_1 = require("./Productv5Filter"); +/** + * Check if a given object implements the Productv5GetProductInfoPricesV5Request interface. + */ +function instanceOfProductv5GetProductInfoPricesV5Request(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function Productv5GetProductInfoPricesV5RequestFromJSON(json) { + return Productv5GetProductInfoPricesV5RequestFromJSONTyped(json, false); +} +function Productv5GetProductInfoPricesV5RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': (0, Productv5Filter_1.Productv5FilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function Productv5GetProductInfoPricesV5RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, Productv5Filter_1.Productv5FilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/Productv5GetProductInfoPricesV5Response.d.ts b/dist/models/Productv5GetProductInfoPricesV5Response.d.ts new file mode 100644 index 0000000..d0c8473 --- /dev/null +++ b/dist/models/Productv5GetProductInfoPricesV5Response.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductGetProductInfoPricesV5ResponseItem } from './ProductGetProductInfoPricesV5ResponseItem'; +/** + * + * @export + * @interface Productv5GetProductInfoPricesV5Response + */ +export interface Productv5GetProductInfoPricesV5Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof Productv5GetProductInfoPricesV5Response + */ + cursor?: string; + /** + * Список товаров. + * @type {Array} + * @memberof Productv5GetProductInfoPricesV5Response + */ + items?: Array; + /** + * Количество товаров в списке. + * @type {number} + * @memberof Productv5GetProductInfoPricesV5Response + */ + total?: number; +} +/** + * Check if a given object implements the Productv5GetProductInfoPricesV5Response interface. + */ +export declare function instanceOfProductv5GetProductInfoPricesV5Response(value: object): value is Productv5GetProductInfoPricesV5Response; +export declare function Productv5GetProductInfoPricesV5ResponseFromJSON(json: any): Productv5GetProductInfoPricesV5Response; +export declare function Productv5GetProductInfoPricesV5ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv5GetProductInfoPricesV5Response; +export declare function Productv5GetProductInfoPricesV5ResponseToJSON(value?: Productv5GetProductInfoPricesV5Response | null): any; diff --git a/dist/models/Productv5GetProductInfoPricesV5Response.js b/dist/models/Productv5GetProductInfoPricesV5Response.js new file mode 100644 index 0000000..ae8ade7 --- /dev/null +++ b/dist/models/Productv5GetProductInfoPricesV5Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProductv5GetProductInfoPricesV5Response = instanceOfProductv5GetProductInfoPricesV5Response; +exports.Productv5GetProductInfoPricesV5ResponseFromJSON = Productv5GetProductInfoPricesV5ResponseFromJSON; +exports.Productv5GetProductInfoPricesV5ResponseFromJSONTyped = Productv5GetProductInfoPricesV5ResponseFromJSONTyped; +exports.Productv5GetProductInfoPricesV5ResponseToJSON = Productv5GetProductInfoPricesV5ResponseToJSON; +const ProductGetProductInfoPricesV5ResponseItem_1 = require("./ProductGetProductInfoPricesV5ResponseItem"); +/** + * Check if a given object implements the Productv5GetProductInfoPricesV5Response interface. + */ +function instanceOfProductv5GetProductInfoPricesV5Response(value) { + return true; +} +function Productv5GetProductInfoPricesV5ResponseFromJSON(json) { + return Productv5GetProductInfoPricesV5ResponseFromJSONTyped(json, false); +} +function Productv5GetProductInfoPricesV5ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'items': json['items'] == null ? undefined : (json['items'].map(ProductGetProductInfoPricesV5ResponseItem_1.ProductGetProductInfoPricesV5ResponseItemFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function Productv5GetProductInfoPricesV5ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'items': value['items'] == null ? undefined : (value['items'].map(ProductGetProductInfoPricesV5ResponseItem_1.ProductGetProductInfoPricesV5ResponseItemToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/Productv5GetProductListRequestFilterFilterVisibility.d.ts b/dist/models/Productv5GetProductListRequestFilterFilterVisibility.d.ts new file mode 100644 index 0000000..e66e5f4 --- /dev/null +++ b/dist/models/Productv5GetProductListRequestFilterFilterVisibility.d.ts @@ -0,0 +1,77 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export declare const Productv5GetProductListRequestFilterFilterVisibility: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; + readonly SEASONAL_AUTO_ARCHIVED: "SEASONAL_AUTO_ARCHIVED"; + readonly VISIBLE_WITH_FBO_STOCK: "VISIBLE_WITH_FBO_STOCK"; +}; +export type Productv5GetProductListRequestFilterFilterVisibility = typeof Productv5GetProductListRequestFilterFilterVisibility[keyof typeof Productv5GetProductListRequestFilterFilterVisibility]; +export declare function instanceOfProductv5GetProductListRequestFilterFilterVisibility(value: any): boolean; +export declare function Productv5GetProductListRequestFilterFilterVisibilityFromJSON(json: any): Productv5GetProductListRequestFilterFilterVisibility; +export declare function Productv5GetProductListRequestFilterFilterVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Productv5GetProductListRequestFilterFilterVisibility; +export declare function Productv5GetProductListRequestFilterFilterVisibilityToJSON(value?: Productv5GetProductListRequestFilterFilterVisibility | null): any; diff --git a/dist/models/Productv5GetProductListRequestFilterFilterVisibility.js b/dist/models/Productv5GetProductListRequestFilterFilterVisibility.js new file mode 100644 index 0000000..fbf316b --- /dev/null +++ b/dist/models/Productv5GetProductListRequestFilterFilterVisibility.js @@ -0,0 +1,100 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Productv5GetProductListRequestFilterFilterVisibility = void 0; +exports.instanceOfProductv5GetProductListRequestFilterFilterVisibility = instanceOfProductv5GetProductListRequestFilterFilterVisibility; +exports.Productv5GetProductListRequestFilterFilterVisibilityFromJSON = Productv5GetProductListRequestFilterFilterVisibilityFromJSON; +exports.Productv5GetProductListRequestFilterFilterVisibilityFromJSONTyped = Productv5GetProductListRequestFilterFilterVisibilityFromJSONTyped; +exports.Productv5GetProductListRequestFilterFilterVisibilityToJSON = Productv5GetProductListRequestFilterFilterVisibilityToJSON; +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +exports.Productv5GetProductListRequestFilterFilterVisibility = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED', + SEASONAL_AUTO_ARCHIVED: 'SEASONAL_AUTO_ARCHIVED', + VISIBLE_WITH_FBO_STOCK: 'VISIBLE_WITH_FBO_STOCK' +}; +function instanceOfProductv5GetProductListRequestFilterFilterVisibility(value) { + for (const key in exports.Productv5GetProductListRequestFilterFilterVisibility) { + if (Object.prototype.hasOwnProperty.call(exports.Productv5GetProductListRequestFilterFilterVisibility, key)) { + if (exports.Productv5GetProductListRequestFilterFilterVisibility[key] === value) { + return true; + } + } + } + return false; +} +function Productv5GetProductListRequestFilterFilterVisibilityFromJSON(json) { + return Productv5GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, false); +} +function Productv5GetProductListRequestFilterFilterVisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function Productv5GetProductListRequestFilterFilterVisibilityToJSON(value) { + return value; +} diff --git a/dist/models/ProtobufAny.d.ts b/dist/models/ProtobufAny.d.ts new file mode 100644 index 0000000..8dc18c6 --- /dev/null +++ b/dist/models/ProtobufAny.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProtobufAny + */ +export interface ProtobufAny { + /** + * Тип протокола передачи данных. + * @type {string} + * @memberof ProtobufAny + */ + typeUrl?: string; + /** + * Значение ошибки. + * @type {string} + * @memberof ProtobufAny + */ + value?: string; +} +/** + * Check if a given object implements the ProtobufAny interface. + */ +export declare function instanceOfProtobufAny(value: object): value is ProtobufAny; +export declare function ProtobufAnyFromJSON(json: any): ProtobufAny; +export declare function ProtobufAnyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProtobufAny; +export declare function ProtobufAnyToJSON(value?: ProtobufAny | null): any; diff --git a/dist/models/ProtobufAny.js b/dist/models/ProtobufAny.js new file mode 100644 index 0000000..e1962aa --- /dev/null +++ b/dist/models/ProtobufAny.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProtobufAny = instanceOfProtobufAny; +exports.ProtobufAnyFromJSON = ProtobufAnyFromJSON; +exports.ProtobufAnyFromJSONTyped = ProtobufAnyFromJSONTyped; +exports.ProtobufAnyToJSON = ProtobufAnyToJSON; +/** + * Check if a given object implements the ProtobufAny interface. + */ +function instanceOfProtobufAny(value) { + return true; +} +function ProtobufAnyFromJSON(json) { + return ProtobufAnyFromJSONTyped(json, false); +} +function ProtobufAnyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'typeUrl': json['typeUrl'] == null ? undefined : json['typeUrl'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ProtobufAnyToJSON(value) { + if (value == null) { + return value; + } + return { + 'typeUrl': value['typeUrl'], + 'value': value['value'], + }; +} diff --git a/dist/models/ProtobufAnyV2DeliveryCheckout.d.ts b/dist/models/ProtobufAnyV2DeliveryCheckout.d.ts new file mode 100644 index 0000000..0654ad3 --- /dev/null +++ b/dist/models/ProtobufAnyV2DeliveryCheckout.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ProtobufAnyV2DeliveryCheckout + */ +export interface ProtobufAnyV2DeliveryCheckout { + /** + * Тип протокола передачи данных. + * @type {string} + * @memberof ProtobufAnyV2DeliveryCheckout + */ + type?: string; + /** + * Идентификатор ошибки: + * + * `USER_DELIVERY_UNAVAILABLE` — нельзя доставить товары этому покупателю. + * + * @type {string} + * @memberof ProtobufAnyV2DeliveryCheckout + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof ProtobufAnyV2DeliveryCheckout + */ + message?: string; +} +/** + * Check if a given object implements the ProtobufAnyV2DeliveryCheckout interface. + */ +export declare function instanceOfProtobufAnyV2DeliveryCheckout(value: object): value is ProtobufAnyV2DeliveryCheckout; +export declare function ProtobufAnyV2DeliveryCheckoutFromJSON(json: any): ProtobufAnyV2DeliveryCheckout; +export declare function ProtobufAnyV2DeliveryCheckoutFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProtobufAnyV2DeliveryCheckout; +export declare function ProtobufAnyV2DeliveryCheckoutToJSON(value?: ProtobufAnyV2DeliveryCheckout | null): any; diff --git a/dist/models/ProtobufAnyV2DeliveryCheckout.js b/dist/models/ProtobufAnyV2DeliveryCheckout.js new file mode 100644 index 0000000..1ac0feb --- /dev/null +++ b/dist/models/ProtobufAnyV2DeliveryCheckout.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProtobufAnyV2DeliveryCheckout = instanceOfProtobufAnyV2DeliveryCheckout; +exports.ProtobufAnyV2DeliveryCheckoutFromJSON = ProtobufAnyV2DeliveryCheckoutFromJSON; +exports.ProtobufAnyV2DeliveryCheckoutFromJSONTyped = ProtobufAnyV2DeliveryCheckoutFromJSONTyped; +exports.ProtobufAnyV2DeliveryCheckoutToJSON = ProtobufAnyV2DeliveryCheckoutToJSON; +/** + * Check if a given object implements the ProtobufAnyV2DeliveryCheckout interface. + */ +function instanceOfProtobufAnyV2DeliveryCheckout(value) { + return true; +} +function ProtobufAnyV2DeliveryCheckoutFromJSON(json) { + return ProtobufAnyV2DeliveryCheckoutFromJSONTyped(json, false); +} +function ProtobufAnyV2DeliveryCheckoutFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['@type'] == null ? undefined : json['@type'], + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function ProtobufAnyV2DeliveryCheckoutToJSON(value) { + if (value == null) { + return value; + } + return { + '@type': value['type'], + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/models/QuestionV1GetQuestionListRequestSortDirEnum.d.ts b/dist/models/QuestionV1GetQuestionListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..d068cbc --- /dev/null +++ b/dist/models/QuestionV1GetQuestionListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESC` — по убыванию; + * - `ASC` — по возрастанию. + * + * @export + */ +export declare const QuestionV1GetQuestionListRequestSortDirEnum: { + readonly DESC: "DESC"; + readonly ASC: "ASC"; +}; +export type QuestionV1GetQuestionListRequestSortDirEnum = typeof QuestionV1GetQuestionListRequestSortDirEnum[keyof typeof QuestionV1GetQuestionListRequestSortDirEnum]; +export declare function instanceOfQuestionV1GetQuestionListRequestSortDirEnum(value: any): boolean; +export declare function QuestionV1GetQuestionListRequestSortDirEnumFromJSON(json: any): QuestionV1GetQuestionListRequestSortDirEnum; +export declare function QuestionV1GetQuestionListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionV1GetQuestionListRequestSortDirEnum; +export declare function QuestionV1GetQuestionListRequestSortDirEnumToJSON(value?: QuestionV1GetQuestionListRequestSortDirEnum | null): any; diff --git a/dist/models/QuestionV1GetQuestionListRequestSortDirEnum.js b/dist/models/QuestionV1GetQuestionListRequestSortDirEnum.js new file mode 100644 index 0000000..449d043 --- /dev/null +++ b/dist/models/QuestionV1GetQuestionListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QuestionV1GetQuestionListRequestSortDirEnum = void 0; +exports.instanceOfQuestionV1GetQuestionListRequestSortDirEnum = instanceOfQuestionV1GetQuestionListRequestSortDirEnum; +exports.QuestionV1GetQuestionListRequestSortDirEnumFromJSON = QuestionV1GetQuestionListRequestSortDirEnumFromJSON; +exports.QuestionV1GetQuestionListRequestSortDirEnumFromJSONTyped = QuestionV1GetQuestionListRequestSortDirEnumFromJSONTyped; +exports.QuestionV1GetQuestionListRequestSortDirEnumToJSON = QuestionV1GetQuestionListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `DESC` — по убыванию; + * - `ASC` — по возрастанию. + * + * @export + */ +exports.QuestionV1GetQuestionListRequestSortDirEnum = { + DESC: 'DESC', + ASC: 'ASC' +}; +function instanceOfQuestionV1GetQuestionListRequestSortDirEnum(value) { + for (const key in exports.QuestionV1GetQuestionListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.QuestionV1GetQuestionListRequestSortDirEnum, key)) { + if (exports.QuestionV1GetQuestionListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function QuestionV1GetQuestionListRequestSortDirEnumFromJSON(json) { + return QuestionV1GetQuestionListRequestSortDirEnumFromJSONTyped(json, false); +} +function QuestionV1GetQuestionListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function QuestionV1GetQuestionListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.d.ts b/dist/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.d.ts new file mode 100644 index 0000000..0af4915 --- /dev/null +++ b/dist/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус публикации ответа: + * - `PUBLISHED` — опубликован; + * - `AWAITING_MODERATION` — ожидает модерации; + * - `MODERATION_FAILED` — модерация не пройдена; + * - `DUPLICATE` — дубль. + * + * @export + */ +export declare const QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum: { + readonly PUBLISHED: "PUBLISHED"; + readonly AWAITING_MODERATION: "AWAITING_MODERATION"; + readonly MODERATION_FAILED: "MODERATION_FAILED"; + readonly DUPLICATE: "DUPLICATE"; +}; +export type QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum = typeof QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum[keyof typeof QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum]; +export declare function instanceOfQuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum(value: any): boolean; +export declare function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON(json: any): QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum; +export declare function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum; +export declare function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON(value?: QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum | null): any; diff --git a/dist/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.js b/dist/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.js new file mode 100644 index 0000000..3bf3530 --- /dev/null +++ b/dist/models/QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum = void 0; +exports.instanceOfQuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum = instanceOfQuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum; +exports.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON = QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON; +exports.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSONTyped = QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSONTyped; +exports.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON = QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON; +/** + * Статус публикации ответа: + * - `PUBLISHED` — опубликован; + * - `AWAITING_MODERATION` — ожидает модерации; + * - `MODERATION_FAILED` — модерация не пройдена; + * - `DUPLICATE` — дубль. + * + * @export + */ +exports.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum = { + PUBLISHED: 'PUBLISHED', + AWAITING_MODERATION: 'AWAITING_MODERATION', + MODERATION_FAILED: 'MODERATION_FAILED', + DUPLICATE: 'DUPLICATE' +}; +function instanceOfQuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum(value) { + for (const key in exports.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum) { + if (Object.prototype.hasOwnProperty.call(exports.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum, key)) { + if (exports.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum[key] === value) { + return true; + } + } + } + return false; +} +function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON(json) { + return QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSONTyped(json, false); +} +function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON(value) { + return value; +} diff --git a/dist/models/RatingItemChange.d.ts b/dist/models/RatingItemChange.d.ts new file mode 100644 index 0000000..c7687e1 --- /dev/null +++ b/dist/models/RatingItemChange.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Изменение рейтинга: отношение предыдущего значения к текущему. + * + * @export + * @interface RatingItemChange + */ +export interface RatingItemChange { + /** + * Как изменилось значение рейтинга: + * - `DIRECTION_UNKNOWN` — не определено. + * - `DIRECTION_NONE` — не изменилось. + * - `DIRECTION_RISE` — выросло. + * - `DIRECTION_FALL` — упало. + * + * @type {string} + * @memberof RatingItemChange + */ + direction?: string; + /** + * Что означает изменение: + * - `MEANING_UNKNOWN` — неизвестно. + * - `MEANING_NONE` — нейтрально. + * - `MEANING_GOOD` — показатель улучшается, всё хорошо. + * - `MEANING_BAD` — показатель падает, нужно что-то сделать. + * + * @type {string} + * @memberof RatingItemChange + */ + meaning?: string; +} +/** + * Check if a given object implements the RatingItemChange interface. + */ +export declare function instanceOfRatingItemChange(value: object): value is RatingItemChange; +export declare function RatingItemChangeFromJSON(json: any): RatingItemChange; +export declare function RatingItemChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingItemChange; +export declare function RatingItemChangeToJSON(value?: RatingItemChange | null): any; diff --git a/dist/models/RatingItemChange.js b/dist/models/RatingItemChange.js new file mode 100644 index 0000000..0096fbb --- /dev/null +++ b/dist/models/RatingItemChange.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRatingItemChange = instanceOfRatingItemChange; +exports.RatingItemChangeFromJSON = RatingItemChangeFromJSON; +exports.RatingItemChangeFromJSONTyped = RatingItemChangeFromJSONTyped; +exports.RatingItemChangeToJSON = RatingItemChangeToJSON; +/** + * Check if a given object implements the RatingItemChange interface. + */ +function instanceOfRatingItemChange(value) { + return true; +} +function RatingItemChangeFromJSON(json) { + return RatingItemChangeFromJSONTyped(json, false); +} +function RatingItemChangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'direction': json['direction'] == null ? undefined : json['direction'], + 'meaning': json['meaning'] == null ? undefined : json['meaning'], + }; +} +function RatingItemChangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'direction': value['direction'], + 'meaning': value['meaning'], + }; +} diff --git a/dist/models/RatingStatusEnum.d.ts b/dist/models/RatingStatusEnum.d.ts new file mode 100644 index 0000000..5600c1f --- /dev/null +++ b/dist/models/RatingStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус рейтинга: + * - `UNKNOWN` — не определён; + * - `OK` — хороший; + * - `WARNING` — показатели требуют внимания; + * - `CRITICAL` — критичный. + * + * @export + */ +export declare const RatingStatusEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly OK: "OK"; + readonly WARNING: "WARNING"; + readonly CRITICAL: "CRITICAL"; +}; +export type RatingStatusEnum = typeof RatingStatusEnum[keyof typeof RatingStatusEnum]; +export declare function instanceOfRatingStatusEnum(value: any): boolean; +export declare function RatingStatusEnumFromJSON(json: any): RatingStatusEnum; +export declare function RatingStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingStatusEnum; +export declare function RatingStatusEnumToJSON(value?: RatingStatusEnum | null): any; diff --git a/dist/models/RatingStatusEnum.js b/dist/models/RatingStatusEnum.js new file mode 100644 index 0000000..2a45bac --- /dev/null +++ b/dist/models/RatingStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RatingStatusEnum = void 0; +exports.instanceOfRatingStatusEnum = instanceOfRatingStatusEnum; +exports.RatingStatusEnumFromJSON = RatingStatusEnumFromJSON; +exports.RatingStatusEnumFromJSONTyped = RatingStatusEnumFromJSONTyped; +exports.RatingStatusEnumToJSON = RatingStatusEnumToJSON; +/** + * Статус рейтинга: + * - `UNKNOWN` — не определён; + * - `OK` — хороший; + * - `WARNING` — показатели требуют внимания; + * - `CRITICAL` — критичный. + * + * @export + */ +exports.RatingStatusEnum = { + UNKNOWN: 'UNKNOWN', + OK: 'OK', + WARNING: 'WARNING', + CRITICAL: 'CRITICAL' +}; +function instanceOfRatingStatusEnum(value) { + for (const key in exports.RatingStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.RatingStatusEnum, key)) { + if (exports.RatingStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function RatingStatusEnumFromJSON(json) { + return RatingStatusEnumFromJSONTyped(json, false); +} +function RatingStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function RatingStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/RatingSummaryV1ResponseGroup.d.ts b/dist/models/RatingSummaryV1ResponseGroup.d.ts new file mode 100644 index 0000000..09b4601 --- /dev/null +++ b/dist/models/RatingSummaryV1ResponseGroup.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1RatingItem } from './V1RatingItem'; +/** + * + * @export + * @interface RatingSummaryV1ResponseGroup + */ +export interface RatingSummaryV1ResponseGroup { + /** + * Название группы рейтингов. + * @type {string} + * @memberof RatingSummaryV1ResponseGroup + */ + group_name?: string; + /** + * Список рейтингов. + * @type {Array} + * @memberof RatingSummaryV1ResponseGroup + */ + items?: Array; +} +/** + * Check if a given object implements the RatingSummaryV1ResponseGroup interface. + */ +export declare function instanceOfRatingSummaryV1ResponseGroup(value: object): value is RatingSummaryV1ResponseGroup; +export declare function RatingSummaryV1ResponseGroupFromJSON(json: any): RatingSummaryV1ResponseGroup; +export declare function RatingSummaryV1ResponseGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingSummaryV1ResponseGroup; +export declare function RatingSummaryV1ResponseGroupToJSON(value?: RatingSummaryV1ResponseGroup | null): any; diff --git a/dist/models/RatingSummaryV1ResponseGroup.js b/dist/models/RatingSummaryV1ResponseGroup.js new file mode 100644 index 0000000..5e62553 --- /dev/null +++ b/dist/models/RatingSummaryV1ResponseGroup.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRatingSummaryV1ResponseGroup = instanceOfRatingSummaryV1ResponseGroup; +exports.RatingSummaryV1ResponseGroupFromJSON = RatingSummaryV1ResponseGroupFromJSON; +exports.RatingSummaryV1ResponseGroupFromJSONTyped = RatingSummaryV1ResponseGroupFromJSONTyped; +exports.RatingSummaryV1ResponseGroupToJSON = RatingSummaryV1ResponseGroupToJSON; +const V1RatingItem_1 = require("./V1RatingItem"); +/** + * Check if a given object implements the RatingSummaryV1ResponseGroup interface. + */ +function instanceOfRatingSummaryV1ResponseGroup(value) { + return true; +} +function RatingSummaryV1ResponseGroupFromJSON(json) { + return RatingSummaryV1ResponseGroupFromJSONTyped(json, false); +} +function RatingSummaryV1ResponseGroupFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'group_name': json['group_name'] == null ? undefined : json['group_name'], + 'items': json['items'] == null ? undefined : (json['items'].map(V1RatingItem_1.V1RatingItemFromJSON)), + }; +} +function RatingSummaryV1ResponseGroupToJSON(value) { + if (value == null) { + return value; + } + return { + 'group_name': value['group_name'], + 'items': value['items'] == null ? undefined : (value['items'].map(V1RatingItem_1.V1RatingItemToJSON)), + }; +} diff --git a/dist/models/RatingSummaryV1ResponseLocalIndex.d.ts b/dist/models/RatingSummaryV1ResponseLocalIndex.d.ts new file mode 100644 index 0000000..d85ea8e --- /dev/null +++ b/dist/models/RatingSummaryV1ResponseLocalIndex.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RatingSummaryV1ResponseLocalIndex + */ +export interface RatingSummaryV1ResponseLocalIndex { + /** + * Дата расчёта индекса локализации. + * @type {string} + * @memberof RatingSummaryV1ResponseLocalIndex + */ + calculation_date?: string; + /** + * Значение индекса локализации. + * @type {number} + * @memberof RatingSummaryV1ResponseLocalIndex + */ + localization_percentage?: number; +} +/** + * Check if a given object implements the RatingSummaryV1ResponseLocalIndex interface. + */ +export declare function instanceOfRatingSummaryV1ResponseLocalIndex(value: object): value is RatingSummaryV1ResponseLocalIndex; +export declare function RatingSummaryV1ResponseLocalIndexFromJSON(json: any): RatingSummaryV1ResponseLocalIndex; +export declare function RatingSummaryV1ResponseLocalIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingSummaryV1ResponseLocalIndex; +export declare function RatingSummaryV1ResponseLocalIndexToJSON(value?: RatingSummaryV1ResponseLocalIndex | null): any; diff --git a/dist/models/RatingSummaryV1ResponseLocalIndex.js b/dist/models/RatingSummaryV1ResponseLocalIndex.js new file mode 100644 index 0000000..af6a389 --- /dev/null +++ b/dist/models/RatingSummaryV1ResponseLocalIndex.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRatingSummaryV1ResponseLocalIndex = instanceOfRatingSummaryV1ResponseLocalIndex; +exports.RatingSummaryV1ResponseLocalIndexFromJSON = RatingSummaryV1ResponseLocalIndexFromJSON; +exports.RatingSummaryV1ResponseLocalIndexFromJSONTyped = RatingSummaryV1ResponseLocalIndexFromJSONTyped; +exports.RatingSummaryV1ResponseLocalIndexToJSON = RatingSummaryV1ResponseLocalIndexToJSON; +/** + * Check if a given object implements the RatingSummaryV1ResponseLocalIndex interface. + */ +function instanceOfRatingSummaryV1ResponseLocalIndex(value) { + return true; +} +function RatingSummaryV1ResponseLocalIndexFromJSON(json) { + return RatingSummaryV1ResponseLocalIndexFromJSONTyped(json, false); +} +function RatingSummaryV1ResponseLocalIndexFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calculation_date': json['calculation_date'] == null ? undefined : json['calculation_date'], + 'localization_percentage': json['localization_percentage'] == null ? undefined : json['localization_percentage'], + }; +} +function RatingSummaryV1ResponseLocalIndexToJSON(value) { + if (value == null) { + return value; + } + return { + 'calculation_date': value['calculation_date'], + 'localization_percentage': value['localization_percentage'], + }; +} diff --git a/dist/models/RatingValue.d.ts b/dist/models/RatingValue.d.ts new file mode 100644 index 0000000..ae3130f --- /dev/null +++ b/dist/models/RatingValue.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1RatingStatus } from './V1RatingStatus'; +/** + * + * @export + * @interface RatingValue + */ +export interface RatingValue { + /** + * Дата начала подсчёта рейтинга. + * @type {string} + * @memberof RatingValue + */ + date_from?: string; + /** + * Дата конца подсчёта рейтинга. + * @type {string} + * @memberof RatingValue + */ + date_to?: string; + /** + * + * @type {V1RatingStatus} + * @memberof RatingValue + */ + status?: V1RatingStatus; + /** + * Значение рейтинга. + * @type {number} + * @memberof RatingValue + */ + value?: number; +} +/** + * Check if a given object implements the RatingValue interface. + */ +export declare function instanceOfRatingValue(value: object): value is RatingValue; +export declare function RatingValueFromJSON(json: any): RatingValue; +export declare function RatingValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingValue; +export declare function RatingValueToJSON(value?: RatingValue | null): any; diff --git a/dist/models/RatingValue.js b/dist/models/RatingValue.js new file mode 100644 index 0000000..1ad14b4 --- /dev/null +++ b/dist/models/RatingValue.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRatingValue = instanceOfRatingValue; +exports.RatingValueFromJSON = RatingValueFromJSON; +exports.RatingValueFromJSONTyped = RatingValueFromJSONTyped; +exports.RatingValueToJSON = RatingValueToJSON; +const V1RatingStatus_1 = require("./V1RatingStatus"); +/** + * Check if a given object implements the RatingValue interface. + */ +function instanceOfRatingValue(value) { + return true; +} +function RatingValueFromJSON(json) { + return RatingValueFromJSONTyped(json, false); +} +function RatingValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'status': json['status'] == null ? undefined : (0, V1RatingStatus_1.V1RatingStatusFromJSON)(json['status']), + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function RatingValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'status': (0, V1RatingStatus_1.V1RatingStatusToJSON)(value['status']), + 'value': value['value'], + }; +} diff --git a/dist/models/RatingValueCurrent.d.ts b/dist/models/RatingValueCurrent.d.ts new file mode 100644 index 0000000..8e708a3 --- /dev/null +++ b/dist/models/RatingValueCurrent.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1RatingStatus } from './V1RatingStatus'; +/** + * Значение рейтинга. + * @export + * @interface RatingValueCurrent + */ +export interface RatingValueCurrent { + /** + * Дата начала подсчёта рейтинга. + * @type {string} + * @memberof RatingValueCurrent + */ + date_from?: string; + /** + * Дата конца подсчёта рейтинга. + * @type {string} + * @memberof RatingValueCurrent + */ + date_to?: string; + /** + * Отформатированное значение рейтинга. + * @type {string} + * @memberof RatingValueCurrent + */ + formatted?: string; + /** + * + * @type {V1RatingStatus} + * @memberof RatingValueCurrent + */ + status?: V1RatingStatus; + /** + * Значение рейтинга в системе. + * @type {number} + * @memberof RatingValueCurrent + */ + value?: number; +} +/** + * Check if a given object implements the RatingValueCurrent interface. + */ +export declare function instanceOfRatingValueCurrent(value: object): value is RatingValueCurrent; +export declare function RatingValueCurrentFromJSON(json: any): RatingValueCurrent; +export declare function RatingValueCurrentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingValueCurrent; +export declare function RatingValueCurrentToJSON(value?: RatingValueCurrent | null): any; diff --git a/dist/models/RatingValueCurrent.js b/dist/models/RatingValueCurrent.js new file mode 100644 index 0000000..cb0573e --- /dev/null +++ b/dist/models/RatingValueCurrent.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRatingValueCurrent = instanceOfRatingValueCurrent; +exports.RatingValueCurrentFromJSON = RatingValueCurrentFromJSON; +exports.RatingValueCurrentFromJSONTyped = RatingValueCurrentFromJSONTyped; +exports.RatingValueCurrentToJSON = RatingValueCurrentToJSON; +const V1RatingStatus_1 = require("./V1RatingStatus"); +/** + * Check if a given object implements the RatingValueCurrent interface. + */ +function instanceOfRatingValueCurrent(value) { + return true; +} +function RatingValueCurrentFromJSON(json) { + return RatingValueCurrentFromJSONTyped(json, false); +} +function RatingValueCurrentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'formatted': json['formatted'] == null ? undefined : json['formatted'], + 'status': json['status'] == null ? undefined : (0, V1RatingStatus_1.V1RatingStatusFromJSON)(json['status']), + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function RatingValueCurrentToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'formatted': value['formatted'], + 'status': (0, V1RatingStatus_1.V1RatingStatusToJSON)(value['status']), + 'value': value['value'], + }; +} diff --git a/dist/models/RatingValuePast.d.ts b/dist/models/RatingValuePast.d.ts new file mode 100644 index 0000000..65e514d --- /dev/null +++ b/dist/models/RatingValuePast.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1RatingStatus } from './V1RatingStatus'; +/** + * Предыдущее значение рейтинга. + * @export + * @interface RatingValuePast + */ +export interface RatingValuePast { + /** + * Дата начала подсчёта рейтинга. + * @type {string} + * @memberof RatingValuePast + */ + date_from?: string; + /** + * Дата конца подсчёта рейтинга. + * @type {string} + * @memberof RatingValuePast + */ + date_to?: string; + /** + * Отформатированное значение рейтинга. + * @type {string} + * @memberof RatingValuePast + */ + formatted?: string; + /** + * + * @type {V1RatingStatus} + * @memberof RatingValuePast + */ + status?: V1RatingStatus; + /** + * Значение рейтинга в системе. + * @type {number} + * @memberof RatingValuePast + */ + value?: number; +} +/** + * Check if a given object implements the RatingValuePast interface. + */ +export declare function instanceOfRatingValuePast(value: object): value is RatingValuePast; +export declare function RatingValuePastFromJSON(json: any): RatingValuePast; +export declare function RatingValuePastFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingValuePast; +export declare function RatingValuePastToJSON(value?: RatingValuePast | null): any; diff --git a/dist/models/RatingValuePast.js b/dist/models/RatingValuePast.js new file mode 100644 index 0000000..bb96bfd --- /dev/null +++ b/dist/models/RatingValuePast.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRatingValuePast = instanceOfRatingValuePast; +exports.RatingValuePastFromJSON = RatingValuePastFromJSON; +exports.RatingValuePastFromJSONTyped = RatingValuePastFromJSONTyped; +exports.RatingValuePastToJSON = RatingValuePastToJSON; +const V1RatingStatus_1 = require("./V1RatingStatus"); +/** + * Check if a given object implements the RatingValuePast interface. + */ +function instanceOfRatingValuePast(value) { + return true; +} +function RatingValuePastFromJSON(json) { + return RatingValuePastFromJSONTyped(json, false); +} +function RatingValuePastFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'formatted': json['formatted'] == null ? undefined : json['formatted'], + 'status': json['status'] == null ? undefined : (0, V1RatingStatus_1.V1RatingStatusFromJSON)(json['status']), + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function RatingValuePastToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'formatted': value['formatted'], + 'status': (0, V1RatingStatus_1.V1RatingStatusToJSON)(value['status']), + 'value': value['value'], + }; +} diff --git a/dist/models/ReasonHumanText.d.ts b/dist/models/ReasonHumanText.d.ts new file mode 100644 index 0000000..ed0cfc0 --- /dev/null +++ b/dist/models/ReasonHumanText.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о причине. + * @export + * @interface ReasonHumanText + */ +export interface ReasonHumanText { + /** + * Описание причины. + * @type {string} + * @memberof ReasonHumanText + */ + text?: string; +} +/** + * Check if a given object implements the ReasonHumanText interface. + */ +export declare function instanceOfReasonHumanText(value: object): value is ReasonHumanText; +export declare function ReasonHumanTextFromJSON(json: any): ReasonHumanText; +export declare function ReasonHumanTextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReasonHumanText; +export declare function ReasonHumanTextToJSON(value?: ReasonHumanText | null): any; diff --git a/dist/models/ReasonHumanText.js b/dist/models/ReasonHumanText.js new file mode 100644 index 0000000..2d5d0bf --- /dev/null +++ b/dist/models/ReasonHumanText.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReasonHumanText = instanceOfReasonHumanText; +exports.ReasonHumanTextFromJSON = ReasonHumanTextFromJSON; +exports.ReasonHumanTextFromJSONTyped = ReasonHumanTextFromJSONTyped; +exports.ReasonHumanTextToJSON = ReasonHumanTextToJSON; +/** + * Check if a given object implements the ReasonHumanText interface. + */ +function instanceOfReasonHumanText(value) { + return true; +} +function ReasonHumanTextFromJSON(json) { + return ReasonHumanTextFromJSONTyped(json, false); +} +function ReasonHumanTextFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'text': json['text'] == null ? undefined : json['text'], + }; +} +function ReasonHumanTextToJSON(value) { + if (value == null) { + return value; + } + return { + 'text': value['text'], + }; +} diff --git a/dist/models/ReceiptsSellerListResponseReceipt.d.ts b/dist/models/ReceiptsSellerListResponseReceipt.d.ts new file mode 100644 index 0000000..3df586f --- /dev/null +++ b/dist/models/ReceiptsSellerListResponseReceipt.d.ts @@ -0,0 +1,81 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReceiptsSellerListResponseReceiptOperationTypeEnum } from './ReceiptsSellerListResponseReceiptOperationTypeEnum'; +import type { ReceiptsSellerListResponseReceiptTypeEnum } from './ReceiptsSellerListResponseReceiptTypeEnum'; +/** + * + * @export + * @interface ReceiptsSellerListResponseReceipt + */ +export interface ReceiptsSellerListResponseReceipt { + /** + * Дата создания чека. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + created_at?: string; + /** + * + * @type {ReceiptsSellerListResponseReceiptOperationTypeEnum} + * @memberof ReceiptsSellerListResponseReceipt + */ + operation_type?: ReceiptsSellerListResponseReceiptOperationTypeEnum; + /** + * Идентификатор заказа. + * @type {number} + * @memberof ReceiptsSellerListResponseReceipt + */ + order_id?: number; + /** + * Идентификатор родительского чека. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + parent_receipt_id?: string; + /** + * Номера отправлений. + * @type {Array} + * @memberof ReceiptsSellerListResponseReceipt + */ + posting_numbers?: Array; + /** + * Идентификатор чека. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + receipt_id?: string; + /** + * Номер чека. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + receipt_number?: string; + /** + * + * @type {ReceiptsSellerListResponseReceiptTypeEnum} + * @memberof ReceiptsSellerListResponseReceipt + */ + type?: ReceiptsSellerListResponseReceiptTypeEnum; + /** + * Дата обновления. + * @type {string} + * @memberof ReceiptsSellerListResponseReceipt + */ + updated_at?: string; +} +/** + * Check if a given object implements the ReceiptsSellerListResponseReceipt interface. + */ +export declare function instanceOfReceiptsSellerListResponseReceipt(value: object): value is ReceiptsSellerListResponseReceipt; +export declare function ReceiptsSellerListResponseReceiptFromJSON(json: any): ReceiptsSellerListResponseReceipt; +export declare function ReceiptsSellerListResponseReceiptFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReceiptsSellerListResponseReceipt; +export declare function ReceiptsSellerListResponseReceiptToJSON(value?: ReceiptsSellerListResponseReceipt | null): any; diff --git a/dist/models/ReceiptsSellerListResponseReceipt.js b/dist/models/ReceiptsSellerListResponseReceipt.js new file mode 100644 index 0000000..c7c81f0 --- /dev/null +++ b/dist/models/ReceiptsSellerListResponseReceipt.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReceiptsSellerListResponseReceipt = instanceOfReceiptsSellerListResponseReceipt; +exports.ReceiptsSellerListResponseReceiptFromJSON = ReceiptsSellerListResponseReceiptFromJSON; +exports.ReceiptsSellerListResponseReceiptFromJSONTyped = ReceiptsSellerListResponseReceiptFromJSONTyped; +exports.ReceiptsSellerListResponseReceiptToJSON = ReceiptsSellerListResponseReceiptToJSON; +const ReceiptsSellerListResponseReceiptOperationTypeEnum_1 = require("./ReceiptsSellerListResponseReceiptOperationTypeEnum"); +const ReceiptsSellerListResponseReceiptTypeEnum_1 = require("./ReceiptsSellerListResponseReceiptTypeEnum"); +/** + * Check if a given object implements the ReceiptsSellerListResponseReceipt interface. + */ +function instanceOfReceiptsSellerListResponseReceipt(value) { + return true; +} +function ReceiptsSellerListResponseReceiptFromJSON(json) { + return ReceiptsSellerListResponseReceiptFromJSONTyped(json, false); +} +function ReceiptsSellerListResponseReceiptFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'operation_type': json['operation_type'] == null ? undefined : (0, ReceiptsSellerListResponseReceiptOperationTypeEnum_1.ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON)(json['operation_type']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'parent_receipt_id': json['parent_receipt_id'] == null ? undefined : json['parent_receipt_id'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'receipt_id': json['receipt_id'] == null ? undefined : json['receipt_id'], + 'receipt_number': json['receipt_number'] == null ? undefined : json['receipt_number'], + 'type': json['type'] == null ? undefined : (0, ReceiptsSellerListResponseReceiptTypeEnum_1.ReceiptsSellerListResponseReceiptTypeEnumFromJSON)(json['type']), + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + }; +} +function ReceiptsSellerListResponseReceiptToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'operation_type': (0, ReceiptsSellerListResponseReceiptOperationTypeEnum_1.ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON)(value['operation_type']), + 'order_id': value['order_id'], + 'parent_receipt_id': value['parent_receipt_id'], + 'posting_numbers': value['posting_numbers'], + 'receipt_id': value['receipt_id'], + 'receipt_number': value['receipt_number'], + 'type': (0, ReceiptsSellerListResponseReceiptTypeEnum_1.ReceiptsSellerListResponseReceiptTypeEnumToJSON)(value['type']), + 'updated_at': value['updated_at'], + }; +} diff --git a/dist/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.d.ts b/dist/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.d.ts new file mode 100644 index 0000000..49e708a --- /dev/null +++ b/dist/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип операции: + * - `UNSPECIFIED` — не определён; + * - `COMMODITY` — товарная операция. + * + * @export + */ +export declare const ReceiptsSellerListResponseReceiptOperationTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly COMMODITY: "COMMODITY"; +}; +export type ReceiptsSellerListResponseReceiptOperationTypeEnum = typeof ReceiptsSellerListResponseReceiptOperationTypeEnum[keyof typeof ReceiptsSellerListResponseReceiptOperationTypeEnum]; +export declare function instanceOfReceiptsSellerListResponseReceiptOperationTypeEnum(value: any): boolean; +export declare function ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON(json: any): ReceiptsSellerListResponseReceiptOperationTypeEnum; +export declare function ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReceiptsSellerListResponseReceiptOperationTypeEnum; +export declare function ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON(value?: ReceiptsSellerListResponseReceiptOperationTypeEnum | null): any; diff --git a/dist/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.js b/dist/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.js new file mode 100644 index 0000000..5790006 --- /dev/null +++ b/dist/models/ReceiptsSellerListResponseReceiptOperationTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReceiptsSellerListResponseReceiptOperationTypeEnum = void 0; +exports.instanceOfReceiptsSellerListResponseReceiptOperationTypeEnum = instanceOfReceiptsSellerListResponseReceiptOperationTypeEnum; +exports.ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON = ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON; +exports.ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSONTyped = ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSONTyped; +exports.ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON = ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON; +/** + * Тип операции: + * - `UNSPECIFIED` — не определён; + * - `COMMODITY` — товарная операция. + * + * @export + */ +exports.ReceiptsSellerListResponseReceiptOperationTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + COMMODITY: 'COMMODITY' +}; +function instanceOfReceiptsSellerListResponseReceiptOperationTypeEnum(value) { + for (const key in exports.ReceiptsSellerListResponseReceiptOperationTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReceiptsSellerListResponseReceiptOperationTypeEnum, key)) { + if (exports.ReceiptsSellerListResponseReceiptOperationTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSON(json) { + return ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSONTyped(json, false); +} +function ReceiptsSellerListResponseReceiptOperationTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReceiptsSellerListResponseReceiptOperationTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ReceiptsSellerListResponseReceiptTypeEnum.d.ts b/dist/models/ReceiptsSellerListResponseReceiptTypeEnum.d.ts new file mode 100644 index 0000000..af24466 --- /dev/null +++ b/dist/models/ReceiptsSellerListResponseReceiptTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чека: + * - `UNSPECIFIED` — не определён; + * - `INCOMING` — чек реализации; + * - `REFUND` — чек возврата. + * + * @export + */ +export declare const ReceiptsSellerListResponseReceiptTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INCOMING: "INCOMING"; + readonly REFUND: "REFUND"; +}; +export type ReceiptsSellerListResponseReceiptTypeEnum = typeof ReceiptsSellerListResponseReceiptTypeEnum[keyof typeof ReceiptsSellerListResponseReceiptTypeEnum]; +export declare function instanceOfReceiptsSellerListResponseReceiptTypeEnum(value: any): boolean; +export declare function ReceiptsSellerListResponseReceiptTypeEnumFromJSON(json: any): ReceiptsSellerListResponseReceiptTypeEnum; +export declare function ReceiptsSellerListResponseReceiptTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReceiptsSellerListResponseReceiptTypeEnum; +export declare function ReceiptsSellerListResponseReceiptTypeEnumToJSON(value?: ReceiptsSellerListResponseReceiptTypeEnum | null): any; diff --git a/dist/models/ReceiptsSellerListResponseReceiptTypeEnum.js b/dist/models/ReceiptsSellerListResponseReceiptTypeEnum.js new file mode 100644 index 0000000..b739fd4 --- /dev/null +++ b/dist/models/ReceiptsSellerListResponseReceiptTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReceiptsSellerListResponseReceiptTypeEnum = void 0; +exports.instanceOfReceiptsSellerListResponseReceiptTypeEnum = instanceOfReceiptsSellerListResponseReceiptTypeEnum; +exports.ReceiptsSellerListResponseReceiptTypeEnumFromJSON = ReceiptsSellerListResponseReceiptTypeEnumFromJSON; +exports.ReceiptsSellerListResponseReceiptTypeEnumFromJSONTyped = ReceiptsSellerListResponseReceiptTypeEnumFromJSONTyped; +exports.ReceiptsSellerListResponseReceiptTypeEnumToJSON = ReceiptsSellerListResponseReceiptTypeEnumToJSON; +/** + * Тип чека: + * - `UNSPECIFIED` — не определён; + * - `INCOMING` — чек реализации; + * - `REFUND` — чек возврата. + * + * @export + */ +exports.ReceiptsSellerListResponseReceiptTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INCOMING: 'INCOMING', + REFUND: 'REFUND' +}; +function instanceOfReceiptsSellerListResponseReceiptTypeEnum(value) { + for (const key in exports.ReceiptsSellerListResponseReceiptTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReceiptsSellerListResponseReceiptTypeEnum, key)) { + if (exports.ReceiptsSellerListResponseReceiptTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReceiptsSellerListResponseReceiptTypeEnumFromJSON(json) { + return ReceiptsSellerListResponseReceiptTypeEnumFromJSONTyped(json, false); +} +function ReceiptsSellerListResponseReceiptTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReceiptsSellerListResponseReceiptTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/RejectedItemsReasonEnum.d.ts b/dist/models/RejectedItemsReasonEnum.d.ts new file mode 100644 index 0000000..799f21d --- /dev/null +++ b/dist/models/RejectedItemsReasonEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const RejectedItemsReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly OUT_OF_ASSORTMENT: "OUT_OF_ASSORTMENT"; + readonly INVALID: "INVALID"; + readonly INCOMPATIBLE_WAREHOUSE: "INCOMPATIBLE_WAREHOUSE"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly EMPTY_PS_ATTRIBUTE: "EMPTY_PS_ATTRIBUTE"; + readonly MULTIPLICITY: "MULTIPLICITY"; + readonly NO_PRICE: "NO_PRICE"; + readonly INVALID_ITEM_COUNT_MAX: "INVALID_ITEM_COUNT_MAX"; + readonly INVALID_ITEM_COUNT_ZERO: "INVALID_ITEM_COUNT_ZERO"; + readonly SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS: "SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS"; + readonly SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED"; + readonly SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED"; + readonly SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED: "SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED"; + readonly SKU_IS_RESTRICTED: "SKU_IS_RESTRICTED"; + readonly EMPTY_CLUSTER: "EMPTY_CLUSTER"; + readonly SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED"; + readonly CORRUPTED_ASSORTMENT: "CORRUPTED_ASSORTMENT"; + readonly STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN: "STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN"; + readonly STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN: "STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN"; + readonly TRACEABLE_SKU_HAS_NO_GTIN_BARCODE: "TRACEABLE_SKU_HAS_NO_GTIN_BARCODE"; + readonly TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY: "TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY"; + readonly SKU_HAS_INVALID_HS_CODE: "SKU_HAS_INVALID_HS_CODE"; + readonly SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS: "SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type RejectedItemsReasonEnum = typeof RejectedItemsReasonEnum[keyof typeof RejectedItemsReasonEnum]; +export declare function instanceOfRejectedItemsReasonEnum(value: any): boolean; +export declare function RejectedItemsReasonEnumFromJSON(json: any): RejectedItemsReasonEnum; +export declare function RejectedItemsReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectedItemsReasonEnum; +export declare function RejectedItemsReasonEnumToJSON(value?: RejectedItemsReasonEnum | null): any; diff --git a/dist/models/RejectedItemsReasonEnum.js b/dist/models/RejectedItemsReasonEnum.js new file mode 100644 index 0000000..2a0cb97 --- /dev/null +++ b/dist/models/RejectedItemsReasonEnum.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RejectedItemsReasonEnum = void 0; +exports.instanceOfRejectedItemsReasonEnum = instanceOfRejectedItemsReasonEnum; +exports.RejectedItemsReasonEnumFromJSON = RejectedItemsReasonEnumFromJSON; +exports.RejectedItemsReasonEnumFromJSONTyped = RejectedItemsReasonEnumFromJSONTyped; +exports.RejectedItemsReasonEnumToJSON = RejectedItemsReasonEnumToJSON; +/** + * + * @export + */ +exports.RejectedItemsReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + OUT_OF_ASSORTMENT: 'OUT_OF_ASSORTMENT', + INVALID: 'INVALID', + INCOMPATIBLE_WAREHOUSE: 'INCOMPATIBLE_WAREHOUSE', + EMPTY_BARCODE: 'EMPTY_BARCODE', + EMPTY_PS_ATTRIBUTE: 'EMPTY_PS_ATTRIBUTE', + MULTIPLICITY: 'MULTIPLICITY', + NO_PRICE: 'NO_PRICE', + INVALID_ITEM_COUNT_MAX: 'INVALID_ITEM_COUNT_MAX', + INVALID_ITEM_COUNT_ZERO: 'INVALID_ITEM_COUNT_ZERO', + SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS: 'SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS', + SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED', + SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED', + SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED: 'SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED', + SKU_IS_RESTRICTED: 'SKU_IS_RESTRICTED', + EMPTY_CLUSTER: 'EMPTY_CLUSTER', + SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED', + CORRUPTED_ASSORTMENT: 'CORRUPTED_ASSORTMENT', + STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN: 'STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN', + STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN: 'STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN', + TRACEABLE_SKU_HAS_NO_GTIN_BARCODE: 'TRACEABLE_SKU_HAS_NO_GTIN_BARCODE', + TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY: 'TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY', + SKU_HAS_INVALID_HS_CODE: 'SKU_HAS_INVALID_HS_CODE', + SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS: 'SKU_HAS_STORAGE_COUNTRY_RESTRICTIONS', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfRejectedItemsReasonEnum(value) { + for (const key in exports.RejectedItemsReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.RejectedItemsReasonEnum, key)) { + if (exports.RejectedItemsReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function RejectedItemsReasonEnumFromJSON(json) { + return RejectedItemsReasonEnumFromJSONTyped(json, false); +} +function RejectedItemsReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function RejectedItemsReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/RejectedItemsRejectionReasonEnum.d.ts b/dist/models/RejectedItemsRejectionReasonEnum.d.ts new file mode 100644 index 0000000..4dcaa74 --- /dev/null +++ b/dist/models/RejectedItemsRejectionReasonEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const RejectedItemsRejectionReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNKNOWN: "UNKNOWN"; + readonly OUT_OF_ASSORTMENT: "OUT_OF_ASSORTMENT"; + readonly INVALID: "INVALID"; + readonly INCOMPATIBLE_WAREHOUSE: "INCOMPATIBLE_WAREHOUSE"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly EMPTY_PS_ATTRIBUTE: "EMPTY_PS_ATTRIBUTE"; + readonly MULTIPLICITY: "MULTIPLICITY"; + readonly NO_PRICE: "NO_PRICE"; + readonly INVALID_ITEM_COUNT_MAX: "INVALID_ITEM_COUNT_MAX"; + readonly INVALID_ITEM_COUNT_ZERO: "INVALID_ITEM_COUNT_ZERO"; + readonly INCOMPATIBLE_SHIPMENT_TYPE: "INCOMPATIBLE_SHIPMENT_TYPE"; + readonly ECONOM_QUANT_IS_NOT_FROZEN: "ECONOM_QUANT_IS_NOT_FROZEN"; + readonly QUANTITY_NOT_MULTIPLE_BY_QUANT: "QUANTITY_NOT_MULTIPLE_BY_QUANT"; + readonly INVALID_QUANT_VALUE: "INVALID_QUANT_VALUE"; + readonly JEWELRY_FORBIDDEN_FOR_ECONOM: "JEWELRY_FORBIDDEN_FOR_ECONOM"; + readonly NON_UNIQUE_ECONOM_ITEM_IN_REQUEST: "NON_UNIQUE_ECONOM_ITEM_IN_REQUEST"; + readonly NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE: "NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE"; + readonly SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS: "SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS"; + readonly SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED"; + readonly SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED"; + readonly SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED: "SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED"; + readonly EMPTY_CLUSTER: "EMPTY_CLUSTER"; + readonly SKU_IS_RESTRICTED: "SKU_IS_RESTRICTED"; + readonly SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED: "SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED"; +}; +export type RejectedItemsRejectionReasonEnum = typeof RejectedItemsRejectionReasonEnum[keyof typeof RejectedItemsRejectionReasonEnum]; +export declare function instanceOfRejectedItemsRejectionReasonEnum(value: any): boolean; +export declare function RejectedItemsRejectionReasonEnumFromJSON(json: any): RejectedItemsRejectionReasonEnum; +export declare function RejectedItemsRejectionReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectedItemsRejectionReasonEnum; +export declare function RejectedItemsRejectionReasonEnumToJSON(value?: RejectedItemsRejectionReasonEnum | null): any; diff --git a/dist/models/RejectedItemsRejectionReasonEnum.js b/dist/models/RejectedItemsRejectionReasonEnum.js new file mode 100644 index 0000000..9ef7fe6 --- /dev/null +++ b/dist/models/RejectedItemsRejectionReasonEnum.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RejectedItemsRejectionReasonEnum = void 0; +exports.instanceOfRejectedItemsRejectionReasonEnum = instanceOfRejectedItemsRejectionReasonEnum; +exports.RejectedItemsRejectionReasonEnumFromJSON = RejectedItemsRejectionReasonEnumFromJSON; +exports.RejectedItemsRejectionReasonEnumFromJSONTyped = RejectedItemsRejectionReasonEnumFromJSONTyped; +exports.RejectedItemsRejectionReasonEnumToJSON = RejectedItemsRejectionReasonEnumToJSON; +/** + * + * @export + */ +exports.RejectedItemsRejectionReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNKNOWN: 'UNKNOWN', + OUT_OF_ASSORTMENT: 'OUT_OF_ASSORTMENT', + INVALID: 'INVALID', + INCOMPATIBLE_WAREHOUSE: 'INCOMPATIBLE_WAREHOUSE', + EMPTY_BARCODE: 'EMPTY_BARCODE', + EMPTY_PS_ATTRIBUTE: 'EMPTY_PS_ATTRIBUTE', + MULTIPLICITY: 'MULTIPLICITY', + NO_PRICE: 'NO_PRICE', + INVALID_ITEM_COUNT_MAX: 'INVALID_ITEM_COUNT_MAX', + INVALID_ITEM_COUNT_ZERO: 'INVALID_ITEM_COUNT_ZERO', + INCOMPATIBLE_SHIPMENT_TYPE: 'INCOMPATIBLE_SHIPMENT_TYPE', + ECONOM_QUANT_IS_NOT_FROZEN: 'ECONOM_QUANT_IS_NOT_FROZEN', + QUANTITY_NOT_MULTIPLE_BY_QUANT: 'QUANTITY_NOT_MULTIPLE_BY_QUANT', + INVALID_QUANT_VALUE: 'INVALID_QUANT_VALUE', + JEWELRY_FORBIDDEN_FOR_ECONOM: 'JEWELRY_FORBIDDEN_FOR_ECONOM', + NON_UNIQUE_ECONOM_ITEM_IN_REQUEST: 'NON_UNIQUE_ECONOM_ITEM_IN_REQUEST', + NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE: 'NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE', + SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS: 'SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS', + SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED', + SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED', + SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED: 'SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED', + EMPTY_CLUSTER: 'EMPTY_CLUSTER', + SKU_IS_RESTRICTED: 'SKU_IS_RESTRICTED', + SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED: 'SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED' +}; +function instanceOfRejectedItemsRejectionReasonEnum(value) { + for (const key in exports.RejectedItemsRejectionReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.RejectedItemsRejectionReasonEnum, key)) { + if (exports.RejectedItemsRejectionReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function RejectedItemsRejectionReasonEnumFromJSON(json) { + return RejectedItemsRejectionReasonEnumFromJSONTyped(json, false); +} +function RejectedItemsRejectionReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function RejectedItemsRejectionReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/RejectedItemsRestrictions.d.ts b/dist/models/RejectedItemsRestrictions.d.ts new file mode 100644 index 0000000..66a2c60 --- /dev/null +++ b/dist/models/RejectedItemsRestrictions.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RestrictionsReasonEnum } from './RestrictionsReasonEnum'; +/** + * Ограничения. + * @export + * @interface RejectedItemsRestrictions + */ +export interface RejectedItemsRestrictions { + /** + * Причины ограничения: + * - `UNKNOWN` — неизвестный тип; + * - `SKU_HAS_NO_SALES` — товар не продавался; + * - `SKU_HAS_QUANTITY_LIMIT` — лимит по количеству товара. + * + * @type {Array} + * @memberof RejectedItemsRestrictions + */ + reasons_restrictions?: Array; + /** + * Количество дней, которое товар не продавался. + * @type {number} + * @memberof RejectedItemsRestrictions + */ + sku_has_no_sales_in_days?: number; + /** + * Лимит по количеству товара. + * @type {number} + * @memberof RejectedItemsRestrictions + */ + sku_quantity_limit?: number; +} +/** + * Check if a given object implements the RejectedItemsRestrictions interface. + */ +export declare function instanceOfRejectedItemsRestrictions(value: object): value is RejectedItemsRestrictions; +export declare function RejectedItemsRestrictionsFromJSON(json: any): RejectedItemsRestrictions; +export declare function RejectedItemsRestrictionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectedItemsRestrictions; +export declare function RejectedItemsRestrictionsToJSON(value?: RejectedItemsRestrictions | null): any; diff --git a/dist/models/RejectedItemsRestrictions.js b/dist/models/RejectedItemsRestrictions.js new file mode 100644 index 0000000..3cc4d07 --- /dev/null +++ b/dist/models/RejectedItemsRestrictions.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRejectedItemsRestrictions = instanceOfRejectedItemsRestrictions; +exports.RejectedItemsRestrictionsFromJSON = RejectedItemsRestrictionsFromJSON; +exports.RejectedItemsRestrictionsFromJSONTyped = RejectedItemsRestrictionsFromJSONTyped; +exports.RejectedItemsRestrictionsToJSON = RejectedItemsRestrictionsToJSON; +const RestrictionsReasonEnum_1 = require("./RestrictionsReasonEnum"); +/** + * Check if a given object implements the RejectedItemsRestrictions interface. + */ +function instanceOfRejectedItemsRestrictions(value) { + return true; +} +function RejectedItemsRestrictionsFromJSON(json) { + return RejectedItemsRestrictionsFromJSONTyped(json, false); +} +function RejectedItemsRestrictionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons_restrictions': json['reasons_restrictions'] == null ? undefined : (json['reasons_restrictions'].map(RestrictionsReasonEnum_1.RestrictionsReasonEnumFromJSON)), + 'sku_has_no_sales_in_days': json['sku_has_no_sales_in_days'] == null ? undefined : json['sku_has_no_sales_in_days'], + 'sku_quantity_limit': json['sku_quantity_limit'] == null ? undefined : json['sku_quantity_limit'], + }; +} +function RejectedItemsRestrictionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons_restrictions': value['reasons_restrictions'] == null ? undefined : (value['reasons_restrictions'].map(RestrictionsReasonEnum_1.RestrictionsReasonEnumToJSON)), + 'sku_has_no_sales_in_days': value['sku_has_no_sales_in_days'], + 'sku_quantity_limit': value['sku_quantity_limit'], + }; +} diff --git a/dist/models/RelatedPostingCancelReason.d.ts b/dist/models/RelatedPostingCancelReason.d.ts new file mode 100644 index 0000000..7bdfd59 --- /dev/null +++ b/dist/models/RelatedPostingCancelReason.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RelatedPostingCancelReasons } from './RelatedPostingCancelReasons'; +/** + * + * @export + * @interface RelatedPostingCancelReason + */ +export interface RelatedPostingCancelReason { + /** + * Номер отправления. + * @type {string} + * @memberof RelatedPostingCancelReason + */ + posting_number?: string; + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof RelatedPostingCancelReason + */ + reasons?: Array; +} +/** + * Check if a given object implements the RelatedPostingCancelReason interface. + */ +export declare function instanceOfRelatedPostingCancelReason(value: object): value is RelatedPostingCancelReason; +export declare function RelatedPostingCancelReasonFromJSON(json: any): RelatedPostingCancelReason; +export declare function RelatedPostingCancelReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedPostingCancelReason; +export declare function RelatedPostingCancelReasonToJSON(value?: RelatedPostingCancelReason | null): any; diff --git a/dist/models/RelatedPostingCancelReason.js b/dist/models/RelatedPostingCancelReason.js new file mode 100644 index 0000000..62eae31 --- /dev/null +++ b/dist/models/RelatedPostingCancelReason.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRelatedPostingCancelReason = instanceOfRelatedPostingCancelReason; +exports.RelatedPostingCancelReasonFromJSON = RelatedPostingCancelReasonFromJSON; +exports.RelatedPostingCancelReasonFromJSONTyped = RelatedPostingCancelReasonFromJSONTyped; +exports.RelatedPostingCancelReasonToJSON = RelatedPostingCancelReasonToJSON; +const RelatedPostingCancelReasons_1 = require("./RelatedPostingCancelReasons"); +/** + * Check if a given object implements the RelatedPostingCancelReason interface. + */ +function instanceOfRelatedPostingCancelReason(value) { + return true; +} +function RelatedPostingCancelReasonFromJSON(json) { + return RelatedPostingCancelReasonFromJSONTyped(json, false); +} +function RelatedPostingCancelReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(RelatedPostingCancelReasons_1.RelatedPostingCancelReasonsFromJSON)), + }; +} +function RelatedPostingCancelReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(RelatedPostingCancelReasons_1.RelatedPostingCancelReasonsToJSON)), + }; +} diff --git a/dist/models/RelatedPostingCancelReasons.d.ts b/dist/models/RelatedPostingCancelReasons.d.ts new file mode 100644 index 0000000..ecc2017 --- /dev/null +++ b/dist/models/RelatedPostingCancelReasons.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RelatedPostingCancelReasons + */ +export interface RelatedPostingCancelReasons { + /** + * Идентификатор причины отмены: + * - `352` — товар закончился на складе продавца. + * - `400` — остался только бракованный товар. + * - `401` — продавец отклонил арбитраж. + * - `402` — другое (вина продавца). + * - `665` — покупатель не забрал заказ. + * - `666` — возврат из службы доставки: нет доставки в указанный регион. + * - `667` — заказ утерян службой доставки. + * + * @type {number} + * @memberof RelatedPostingCancelReasons + */ + id?: number; + /** + * Описание причины отмены. + * @type {string} + * @memberof RelatedPostingCancelReasons + */ + title?: string; + /** + * Инициатор отмены отправления: + * - `buyer` — покупатель, + * - `seller` — продавец. + * + * @type {string} + * @memberof RelatedPostingCancelReasons + */ + type_id?: string; +} +/** + * Check if a given object implements the RelatedPostingCancelReasons interface. + */ +export declare function instanceOfRelatedPostingCancelReasons(value: object): value is RelatedPostingCancelReasons; +export declare function RelatedPostingCancelReasonsFromJSON(json: any): RelatedPostingCancelReasons; +export declare function RelatedPostingCancelReasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedPostingCancelReasons; +export declare function RelatedPostingCancelReasonsToJSON(value?: RelatedPostingCancelReasons | null): any; diff --git a/dist/models/RelatedPostingCancelReasons.js b/dist/models/RelatedPostingCancelReasons.js new file mode 100644 index 0000000..6510d58 --- /dev/null +++ b/dist/models/RelatedPostingCancelReasons.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRelatedPostingCancelReasons = instanceOfRelatedPostingCancelReasons; +exports.RelatedPostingCancelReasonsFromJSON = RelatedPostingCancelReasonsFromJSON; +exports.RelatedPostingCancelReasonsFromJSONTyped = RelatedPostingCancelReasonsFromJSONTyped; +exports.RelatedPostingCancelReasonsToJSON = RelatedPostingCancelReasonsToJSON; +/** + * Check if a given object implements the RelatedPostingCancelReasons interface. + */ +function instanceOfRelatedPostingCancelReasons(value) { + return true; +} +function RelatedPostingCancelReasonsFromJSON(json) { + return RelatedPostingCancelReasonsFromJSONTyped(json, false); +} +function RelatedPostingCancelReasonsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'title': json['title'] == null ? undefined : json['title'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + }; +} +function RelatedPostingCancelReasonsToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'title': value['title'], + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/ReportCommonReportAdditionalDataItem.d.ts b/dist/models/ReportCommonReportAdditionalDataItem.d.ts new file mode 100644 index 0000000..f71750d --- /dev/null +++ b/dist/models/ReportCommonReportAdditionalDataItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportCommonReportAdditionalDataItem + */ +export interface ReportCommonReportAdditionalDataItem { + /** + * Ключ дополнительного параметра. + * @type {string} + * @memberof ReportCommonReportAdditionalDataItem + */ + key?: string; + /** + * Значение дополнительного параметра. + * @type {string} + * @memberof ReportCommonReportAdditionalDataItem + */ + value?: string; +} +/** + * Check if a given object implements the ReportCommonReportAdditionalDataItem interface. + */ +export declare function instanceOfReportCommonReportAdditionalDataItem(value: object): value is ReportCommonReportAdditionalDataItem; +export declare function ReportCommonReportAdditionalDataItemFromJSON(json: any): ReportCommonReportAdditionalDataItem; +export declare function ReportCommonReportAdditionalDataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCommonReportAdditionalDataItem; +export declare function ReportCommonReportAdditionalDataItemToJSON(value?: ReportCommonReportAdditionalDataItem | null): any; diff --git a/dist/models/ReportCommonReportAdditionalDataItem.js b/dist/models/ReportCommonReportAdditionalDataItem.js new file mode 100644 index 0000000..c43b03c --- /dev/null +++ b/dist/models/ReportCommonReportAdditionalDataItem.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportCommonReportAdditionalDataItem = instanceOfReportCommonReportAdditionalDataItem; +exports.ReportCommonReportAdditionalDataItemFromJSON = ReportCommonReportAdditionalDataItemFromJSON; +exports.ReportCommonReportAdditionalDataItemFromJSONTyped = ReportCommonReportAdditionalDataItemFromJSONTyped; +exports.ReportCommonReportAdditionalDataItemToJSON = ReportCommonReportAdditionalDataItemToJSON; +/** + * Check if a given object implements the ReportCommonReportAdditionalDataItem interface. + */ +function instanceOfReportCommonReportAdditionalDataItem(value) { + return true; +} +function ReportCommonReportAdditionalDataItemFromJSON(json) { + return ReportCommonReportAdditionalDataItemFromJSONTyped(json, false); +} +function ReportCommonReportAdditionalDataItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ReportCommonReportAdditionalDataItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/ReportCreateCompanyPostingsReportRequest.d.ts b/dist/models/ReportCreateCompanyPostingsReportRequest.d.ts new file mode 100644 index 0000000..6b2d0da --- /dev/null +++ b/dist/models/ReportCreateCompanyPostingsReportRequest.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportCreateCompanyPostingsReportRequestFilter } from './ReportCreateCompanyPostingsReportRequestFilter'; +import type { CreateCompanyPostingsReportRequestWith } from './CreateCompanyPostingsReportRequestWith'; +/** + * + * @export + * @interface ReportCreateCompanyPostingsReportRequest + */ +export interface ReportCreateCompanyPostingsReportRequest { + /** + * + * @type {ReportCreateCompanyPostingsReportRequestFilter} + * @memberof ReportCreateCompanyPostingsReportRequest + */ + filter: ReportCreateCompanyPostingsReportRequestFilter; + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequest + */ + language?: string; + /** + * + * @type {CreateCompanyPostingsReportRequestWith} + * @memberof ReportCreateCompanyPostingsReportRequest + */ + _with?: CreateCompanyPostingsReportRequestWith; +} +/** + * Check if a given object implements the ReportCreateCompanyPostingsReportRequest interface. + */ +export declare function instanceOfReportCreateCompanyPostingsReportRequest(value: object): value is ReportCreateCompanyPostingsReportRequest; +export declare function ReportCreateCompanyPostingsReportRequestFromJSON(json: any): ReportCreateCompanyPostingsReportRequest; +export declare function ReportCreateCompanyPostingsReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateCompanyPostingsReportRequest; +export declare function ReportCreateCompanyPostingsReportRequestToJSON(value?: ReportCreateCompanyPostingsReportRequest | null): any; diff --git a/dist/models/ReportCreateCompanyPostingsReportRequest.js b/dist/models/ReportCreateCompanyPostingsReportRequest.js new file mode 100644 index 0000000..57f3713 --- /dev/null +++ b/dist/models/ReportCreateCompanyPostingsReportRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportCreateCompanyPostingsReportRequest = instanceOfReportCreateCompanyPostingsReportRequest; +exports.ReportCreateCompanyPostingsReportRequestFromJSON = ReportCreateCompanyPostingsReportRequestFromJSON; +exports.ReportCreateCompanyPostingsReportRequestFromJSONTyped = ReportCreateCompanyPostingsReportRequestFromJSONTyped; +exports.ReportCreateCompanyPostingsReportRequestToJSON = ReportCreateCompanyPostingsReportRequestToJSON; +const ReportCreateCompanyPostingsReportRequestFilter_1 = require("./ReportCreateCompanyPostingsReportRequestFilter"); +const CreateCompanyPostingsReportRequestWith_1 = require("./CreateCompanyPostingsReportRequestWith"); +/** + * Check if a given object implements the ReportCreateCompanyPostingsReportRequest interface. + */ +function instanceOfReportCreateCompanyPostingsReportRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + return true; +} +function ReportCreateCompanyPostingsReportRequestFromJSON(json) { + return ReportCreateCompanyPostingsReportRequestFromJSONTyped(json, false); +} +function ReportCreateCompanyPostingsReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': (0, ReportCreateCompanyPostingsReportRequestFilter_1.ReportCreateCompanyPostingsReportRequestFilterFromJSON)(json['filter']), + 'language': json['language'] == null ? undefined : json['language'], + '_with': json['with'] == null ? undefined : (0, CreateCompanyPostingsReportRequestWith_1.CreateCompanyPostingsReportRequestWithFromJSON)(json['with']), + }; +} +function ReportCreateCompanyPostingsReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, ReportCreateCompanyPostingsReportRequestFilter_1.ReportCreateCompanyPostingsReportRequestFilterToJSON)(value['filter']), + 'language': value['language'], + 'with': (0, CreateCompanyPostingsReportRequestWith_1.CreateCompanyPostingsReportRequestWithToJSON)(value['_with']), + }; +} diff --git a/dist/models/ReportCreateCompanyPostingsReportRequestFilter.d.ts b/dist/models/ReportCreateCompanyPostingsReportRequestFilter.d.ts new file mode 100644 index 0000000..5575a77 --- /dev/null +++ b/dist/models/ReportCreateCompanyPostingsReportRequestFilter.d.ts @@ -0,0 +1,107 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface ReportCreateCompanyPostingsReportRequestFilter + */ +export interface ReportCreateCompanyPostingsReportRequestFilter { + /** + * Идентификатор причины отмены. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + cancel_reason_id?: Array; + /** + * Схема работы — FBO или FBS. + * + * За один запрос вы можете передать только одно значение: + * * `fbo` — чтобы получить отчёт по схеме FBO, + * * `fbs` — чтобы получить отчёт по схеме FBS. + * + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + delivery_schema?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + offer_id?: string; + /** + * Время, когда заказ попал в обработку. + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + processed_at_from: string; + /** + * Время, когда заказ появился в личном кабинете. + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + processed_at_to: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + sku?: Array; + /** + * Текст статуса. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + status_alias?: Array; + /** + * Числовой статус. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + statuses?: Array; + /** + * Название товара. + * @type {string} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + title?: string; + /** + * Идентификатор склада. + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + warehouse_id?: Array; + /** + * Идентификатор способа доставки. Получите методом [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {Array} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + delivery_method_id?: Array; + /** + * Экспресс-доставка: + * - `true` — только отправления с доставкой Ozon Express; + * - `false` — только отправления без доставки Ozon Express. + * + * Если ничего не передать, вернутся все отправления. + * + * @type {boolean} + * @memberof ReportCreateCompanyPostingsReportRequestFilter + */ + is_express?: boolean; +} +/** + * Check if a given object implements the ReportCreateCompanyPostingsReportRequestFilter interface. + */ +export declare function instanceOfReportCreateCompanyPostingsReportRequestFilter(value: object): value is ReportCreateCompanyPostingsReportRequestFilter; +export declare function ReportCreateCompanyPostingsReportRequestFilterFromJSON(json: any): ReportCreateCompanyPostingsReportRequestFilter; +export declare function ReportCreateCompanyPostingsReportRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateCompanyPostingsReportRequestFilter; +export declare function ReportCreateCompanyPostingsReportRequestFilterToJSON(value?: ReportCreateCompanyPostingsReportRequestFilter | null): any; diff --git a/dist/models/ReportCreateCompanyPostingsReportRequestFilter.js b/dist/models/ReportCreateCompanyPostingsReportRequestFilter.js new file mode 100644 index 0000000..f013cb8 --- /dev/null +++ b/dist/models/ReportCreateCompanyPostingsReportRequestFilter.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportCreateCompanyPostingsReportRequestFilter = instanceOfReportCreateCompanyPostingsReportRequestFilter; +exports.ReportCreateCompanyPostingsReportRequestFilterFromJSON = ReportCreateCompanyPostingsReportRequestFilterFromJSON; +exports.ReportCreateCompanyPostingsReportRequestFilterFromJSONTyped = ReportCreateCompanyPostingsReportRequestFilterFromJSONTyped; +exports.ReportCreateCompanyPostingsReportRequestFilterToJSON = ReportCreateCompanyPostingsReportRequestFilterToJSON; +/** + * Check if a given object implements the ReportCreateCompanyPostingsReportRequestFilter interface. + */ +function instanceOfReportCreateCompanyPostingsReportRequestFilter(value) { + if (!('processed_at_from' in value) || value['processed_at_from'] === undefined) + return false; + if (!('processed_at_to' in value) || value['processed_at_to'] === undefined) + return false; + return true; +} +function ReportCreateCompanyPostingsReportRequestFilterFromJSON(json) { + return ReportCreateCompanyPostingsReportRequestFilterFromJSONTyped(json, false); +} +function ReportCreateCompanyPostingsReportRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'processed_at_from': json['processed_at_from'], + 'processed_at_to': json['processed_at_to'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status_alias': json['status_alias'] == null ? undefined : json['status_alias'], + 'statuses': json['statuses'] == null ? undefined : json['statuses'], + 'title': json['title'] == null ? undefined : json['title'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + }; +} +function ReportCreateCompanyPostingsReportRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancel_reason_id': value['cancel_reason_id'], + 'delivery_schema': value['delivery_schema'], + 'offer_id': value['offer_id'], + 'processed_at_from': value['processed_at_from'], + 'processed_at_to': value['processed_at_to'], + 'sku': value['sku'], + 'status_alias': value['status_alias'], + 'statuses': value['statuses'], + 'title': value['title'], + 'warehouse_id': value['warehouse_id'], + 'delivery_method_id': value['delivery_method_id'], + 'is_express': value['is_express'], + }; +} diff --git a/dist/models/ReportCreateCompanyProductsReportRequest.d.ts b/dist/models/ReportCreateCompanyProductsReportRequest.d.ts new file mode 100644 index 0000000..92b96e3 --- /dev/null +++ b/dist/models/ReportCreateCompanyProductsReportRequest.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportCreateCompanyProductsReportRequestVisibility } from './ReportCreateCompanyProductsReportRequestVisibility'; +/** + * + * @export + * @interface ReportCreateCompanyProductsReportRequest + */ +export interface ReportCreateCompanyProductsReportRequest { + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof ReportCreateCompanyProductsReportRequest + */ + language?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {Array} + * @memberof ReportCreateCompanyProductsReportRequest + */ + offer_id?: Array; + /** + * Поиск по содержанию записи, проверяет наличие. + * @type {string} + * @memberof ReportCreateCompanyProductsReportRequest + */ + search?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof ReportCreateCompanyProductsReportRequest + */ + sku?: Array; + /** + * + * @type {ReportCreateCompanyProductsReportRequestVisibility} + * @memberof ReportCreateCompanyProductsReportRequest + */ + visibility?: ReportCreateCompanyProductsReportRequestVisibility; +} +/** + * Check if a given object implements the ReportCreateCompanyProductsReportRequest interface. + */ +export declare function instanceOfReportCreateCompanyProductsReportRequest(value: object): value is ReportCreateCompanyProductsReportRequest; +export declare function ReportCreateCompanyProductsReportRequestFromJSON(json: any): ReportCreateCompanyProductsReportRequest; +export declare function ReportCreateCompanyProductsReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateCompanyProductsReportRequest; +export declare function ReportCreateCompanyProductsReportRequestToJSON(value?: ReportCreateCompanyProductsReportRequest | null): any; diff --git a/dist/models/ReportCreateCompanyProductsReportRequest.js b/dist/models/ReportCreateCompanyProductsReportRequest.js new file mode 100644 index 0000000..d1739dc --- /dev/null +++ b/dist/models/ReportCreateCompanyProductsReportRequest.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportCreateCompanyProductsReportRequest = instanceOfReportCreateCompanyProductsReportRequest; +exports.ReportCreateCompanyProductsReportRequestFromJSON = ReportCreateCompanyProductsReportRequestFromJSON; +exports.ReportCreateCompanyProductsReportRequestFromJSONTyped = ReportCreateCompanyProductsReportRequestFromJSONTyped; +exports.ReportCreateCompanyProductsReportRequestToJSON = ReportCreateCompanyProductsReportRequestToJSON; +const ReportCreateCompanyProductsReportRequestVisibility_1 = require("./ReportCreateCompanyProductsReportRequestVisibility"); +/** + * Check if a given object implements the ReportCreateCompanyProductsReportRequest interface. + */ +function instanceOfReportCreateCompanyProductsReportRequest(value) { + return true; +} +function ReportCreateCompanyProductsReportRequestFromJSON(json) { + return ReportCreateCompanyProductsReportRequestFromJSONTyped(json, false); +} +function ReportCreateCompanyProductsReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'language': json['language'] == null ? undefined : json['language'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'search': json['search'] == null ? undefined : json['search'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'visibility': json['visibility'] == null ? undefined : (0, ReportCreateCompanyProductsReportRequestVisibility_1.ReportCreateCompanyProductsReportRequestVisibilityFromJSON)(json['visibility']), + }; +} +function ReportCreateCompanyProductsReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'language': value['language'], + 'offer_id': value['offer_id'], + 'search': value['search'], + 'sku': value['sku'], + 'visibility': (0, ReportCreateCompanyProductsReportRequestVisibility_1.ReportCreateCompanyProductsReportRequestVisibilityToJSON)(value['visibility']), + }; +} diff --git a/dist/models/ReportCreateCompanyProductsReportRequestVisibility.d.ts b/dist/models/ReportCreateCompanyProductsReportRequestVisibility.d.ts new file mode 100644 index 0000000..79d3405 --- /dev/null +++ b/dist/models/ReportCreateCompanyProductsReportRequestVisibility.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `PARTIAL_APPROVED` — товары с предупреждениями, требуют доработки; + * - `IMAGE_ABSENT` — товары без фото; + * - `ARCHIVED` — товары в архиве; + * - `AUTO_ARCHIVED` — товары, архивированные автоматически; + * - `MANUAL_ARCHIVED` — товары, архивированные вручную. + * + * @export + */ +export declare const ReportCreateCompanyProductsReportRequestVisibility: { + readonly ALL: "ALL"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly IMAGE_ABSENT: "IMAGE_ABSENT"; + readonly ARCHIVED: "ARCHIVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; +}; +export type ReportCreateCompanyProductsReportRequestVisibility = typeof ReportCreateCompanyProductsReportRequestVisibility[keyof typeof ReportCreateCompanyProductsReportRequestVisibility]; +export declare function instanceOfReportCreateCompanyProductsReportRequestVisibility(value: any): boolean; +export declare function ReportCreateCompanyProductsReportRequestVisibilityFromJSON(json: any): ReportCreateCompanyProductsReportRequestVisibility; +export declare function ReportCreateCompanyProductsReportRequestVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateCompanyProductsReportRequestVisibility; +export declare function ReportCreateCompanyProductsReportRequestVisibilityToJSON(value?: ReportCreateCompanyProductsReportRequestVisibility | null): any; diff --git a/dist/models/ReportCreateCompanyProductsReportRequestVisibility.js b/dist/models/ReportCreateCompanyProductsReportRequestVisibility.js new file mode 100644 index 0000000..07e0190 --- /dev/null +++ b/dist/models/ReportCreateCompanyProductsReportRequestVisibility.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReportCreateCompanyProductsReportRequestVisibility = void 0; +exports.instanceOfReportCreateCompanyProductsReportRequestVisibility = instanceOfReportCreateCompanyProductsReportRequestVisibility; +exports.ReportCreateCompanyProductsReportRequestVisibilityFromJSON = ReportCreateCompanyProductsReportRequestVisibilityFromJSON; +exports.ReportCreateCompanyProductsReportRequestVisibilityFromJSONTyped = ReportCreateCompanyProductsReportRequestVisibilityFromJSONTyped; +exports.ReportCreateCompanyProductsReportRequestVisibilityToJSON = ReportCreateCompanyProductsReportRequestVisibilityToJSON; +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `PARTIAL_APPROVED` — товары с предупреждениями, требуют доработки; + * - `IMAGE_ABSENT` — товары без фото; + * - `ARCHIVED` — товары в архиве; + * - `AUTO_ARCHIVED` — товары, архивированные автоматически; + * - `MANUAL_ARCHIVED` — товары, архивированные вручную. + * + * @export + */ +exports.ReportCreateCompanyProductsReportRequestVisibility = { + ALL: 'ALL', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + IMAGE_ABSENT: 'IMAGE_ABSENT', + ARCHIVED: 'ARCHIVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED' +}; +function instanceOfReportCreateCompanyProductsReportRequestVisibility(value) { + for (const key in exports.ReportCreateCompanyProductsReportRequestVisibility) { + if (Object.prototype.hasOwnProperty.call(exports.ReportCreateCompanyProductsReportRequestVisibility, key)) { + if (exports.ReportCreateCompanyProductsReportRequestVisibility[key] === value) { + return true; + } + } + } + return false; +} +function ReportCreateCompanyProductsReportRequestVisibilityFromJSON(json) { + return ReportCreateCompanyProductsReportRequestVisibilityFromJSONTyped(json, false); +} +function ReportCreateCompanyProductsReportRequestVisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReportCreateCompanyProductsReportRequestVisibilityToJSON(value) { + return value; +} diff --git a/dist/models/ReportCreateDiscountedResponse.d.ts b/dist/models/ReportCreateDiscountedResponse.d.ts new file mode 100644 index 0000000..1fdd53b --- /dev/null +++ b/dist/models/ReportCreateDiscountedResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportCreateDiscountedResponse + */ +export interface ReportCreateDiscountedResponse { + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof ReportCreateDiscountedResponse + */ + code?: string; +} +/** + * Check if a given object implements the ReportCreateDiscountedResponse interface. + */ +export declare function instanceOfReportCreateDiscountedResponse(value: object): value is ReportCreateDiscountedResponse; +export declare function ReportCreateDiscountedResponseFromJSON(json: any): ReportCreateDiscountedResponse; +export declare function ReportCreateDiscountedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateDiscountedResponse; +export declare function ReportCreateDiscountedResponseToJSON(value?: ReportCreateDiscountedResponse | null): any; diff --git a/dist/models/ReportCreateDiscountedResponse.js b/dist/models/ReportCreateDiscountedResponse.js new file mode 100644 index 0000000..0da3af5 --- /dev/null +++ b/dist/models/ReportCreateDiscountedResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportCreateDiscountedResponse = instanceOfReportCreateDiscountedResponse; +exports.ReportCreateDiscountedResponseFromJSON = ReportCreateDiscountedResponseFromJSON; +exports.ReportCreateDiscountedResponseFromJSONTyped = ReportCreateDiscountedResponseFromJSONTyped; +exports.ReportCreateDiscountedResponseToJSON = ReportCreateDiscountedResponseToJSON; +/** + * Check if a given object implements the ReportCreateDiscountedResponse interface. + */ +function instanceOfReportCreateDiscountedResponse(value) { + return true; +} +function ReportCreateDiscountedResponseFromJSON(json) { + return ReportCreateDiscountedResponseFromJSONTyped(json, false); +} +function ReportCreateDiscountedResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +function ReportCreateDiscountedResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/ReportCreateReportResponse.d.ts b/dist/models/ReportCreateReportResponse.d.ts new file mode 100644 index 0000000..70dd4ba --- /dev/null +++ b/dist/models/ReportCreateReportResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateReportResponseCode } from './CreateReportResponseCode'; +/** + * + * @export + * @interface ReportCreateReportResponse + */ +export interface ReportCreateReportResponse { + /** + * + * @type {CreateReportResponseCode} + * @memberof ReportCreateReportResponse + */ + result?: CreateReportResponseCode; +} +/** + * Check if a given object implements the ReportCreateReportResponse interface. + */ +export declare function instanceOfReportCreateReportResponse(value: object): value is ReportCreateReportResponse; +export declare function ReportCreateReportResponseFromJSON(json: any): ReportCreateReportResponse; +export declare function ReportCreateReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreateReportResponse; +export declare function ReportCreateReportResponseToJSON(value?: ReportCreateReportResponse | null): any; diff --git a/dist/models/ReportCreateReportResponse.js b/dist/models/ReportCreateReportResponse.js new file mode 100644 index 0000000..414c51a --- /dev/null +++ b/dist/models/ReportCreateReportResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportCreateReportResponse = instanceOfReportCreateReportResponse; +exports.ReportCreateReportResponseFromJSON = ReportCreateReportResponseFromJSON; +exports.ReportCreateReportResponseFromJSONTyped = ReportCreateReportResponseFromJSONTyped; +exports.ReportCreateReportResponseToJSON = ReportCreateReportResponseToJSON; +const CreateReportResponseCode_1 = require("./CreateReportResponseCode"); +/** + * Check if a given object implements the ReportCreateReportResponse interface. + */ +function instanceOfReportCreateReportResponse(value) { + return true; +} +function ReportCreateReportResponseFromJSON(json) { + return ReportCreateReportResponseFromJSONTyped(json, false); +} +function ReportCreateReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, CreateReportResponseCode_1.CreateReportResponseCodeFromJSON)(json['result']), + }; +} +function ReportCreateReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, CreateReportResponseCode_1.CreateReportResponseCodeToJSON)(value['result']), + }; +} diff --git a/dist/models/ReportListResponseResult.d.ts b/dist/models/ReportListResponseResult.d.ts new file mode 100644 index 0000000..d0cfbe6 --- /dev/null +++ b/dist/models/ReportListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportReport } from './ReportReport'; +/** + * Результаты запроса. + * @export + * @interface ReportListResponseResult + */ +export interface ReportListResponseResult { + /** + * Массив со всеми сгенерированными отчётами. + * @type {Array} + * @memberof ReportListResponseResult + */ + reports?: Array; + /** + * Суммарное количество отчётов. + * @type {number} + * @memberof ReportListResponseResult + */ + total?: number; +} +/** + * Check if a given object implements the ReportListResponseResult interface. + */ +export declare function instanceOfReportListResponseResult(value: object): value is ReportListResponseResult; +export declare function ReportListResponseResultFromJSON(json: any): ReportListResponseResult; +export declare function ReportListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportListResponseResult; +export declare function ReportListResponseResultToJSON(value?: ReportListResponseResult | null): any; diff --git a/dist/models/ReportListResponseResult.js b/dist/models/ReportListResponseResult.js new file mode 100644 index 0000000..4aadc3a --- /dev/null +++ b/dist/models/ReportListResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportListResponseResult = instanceOfReportListResponseResult; +exports.ReportListResponseResultFromJSON = ReportListResponseResultFromJSON; +exports.ReportListResponseResultFromJSONTyped = ReportListResponseResultFromJSONTyped; +exports.ReportListResponseResultToJSON = ReportListResponseResultToJSON; +const ReportReport_1 = require("./ReportReport"); +/** + * Check if a given object implements the ReportListResponseResult interface. + */ +function instanceOfReportListResponseResult(value) { + return true; +} +function ReportListResponseResultFromJSON(json) { + return ReportListResponseResultFromJSONTyped(json, false); +} +function ReportListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reports': json['reports'] == null ? undefined : (json['reports'].map(ReportReport_1.ReportReportFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function ReportListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'reports': value['reports'] == null ? undefined : (value['reports'].map(ReportReport_1.ReportReportToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/ReportMarkedProductsSalesCreateRequestDate.d.ts b/dist/models/ReportMarkedProductsSalesCreateRequestDate.d.ts new file mode 100644 index 0000000..f8fd29a --- /dev/null +++ b/dist/models/ReportMarkedProductsSalesCreateRequestDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период формирования отчёта. + * @export + * @interface ReportMarkedProductsSalesCreateRequestDate + */ +export interface ReportMarkedProductsSalesCreateRequestDate { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof ReportMarkedProductsSalesCreateRequestDate + */ + from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof ReportMarkedProductsSalesCreateRequestDate + */ + to: string; +} +/** + * Check if a given object implements the ReportMarkedProductsSalesCreateRequestDate interface. + */ +export declare function instanceOfReportMarkedProductsSalesCreateRequestDate(value: object): value is ReportMarkedProductsSalesCreateRequestDate; +export declare function ReportMarkedProductsSalesCreateRequestDateFromJSON(json: any): ReportMarkedProductsSalesCreateRequestDate; +export declare function ReportMarkedProductsSalesCreateRequestDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportMarkedProductsSalesCreateRequestDate; +export declare function ReportMarkedProductsSalesCreateRequestDateToJSON(value?: ReportMarkedProductsSalesCreateRequestDate | null): any; diff --git a/dist/models/ReportMarkedProductsSalesCreateRequestDate.js b/dist/models/ReportMarkedProductsSalesCreateRequestDate.js new file mode 100644 index 0000000..840ef90 --- /dev/null +++ b/dist/models/ReportMarkedProductsSalesCreateRequestDate.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportMarkedProductsSalesCreateRequestDate = instanceOfReportMarkedProductsSalesCreateRequestDate; +exports.ReportMarkedProductsSalesCreateRequestDateFromJSON = ReportMarkedProductsSalesCreateRequestDateFromJSON; +exports.ReportMarkedProductsSalesCreateRequestDateFromJSONTyped = ReportMarkedProductsSalesCreateRequestDateFromJSONTyped; +exports.ReportMarkedProductsSalesCreateRequestDateToJSON = ReportMarkedProductsSalesCreateRequestDateToJSON; +/** + * Check if a given object implements the ReportMarkedProductsSalesCreateRequestDate interface. + */ +function instanceOfReportMarkedProductsSalesCreateRequestDate(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function ReportMarkedProductsSalesCreateRequestDateFromJSON(json) { + return ReportMarkedProductsSalesCreateRequestDateFromJSONTyped(json, false); +} +function ReportMarkedProductsSalesCreateRequestDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +function ReportMarkedProductsSalesCreateRequestDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/ReportReport.d.ts b/dist/models/ReportReport.d.ts new file mode 100644 index 0000000..e6b6ac2 --- /dev/null +++ b/dist/models/ReportReport.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportCommonReportAdditionalDataItem } from './ReportCommonReportAdditionalDataItem'; +/** + * Информация об отчёте. + * @export + * @interface ReportReport + */ +export interface ReportReport { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof ReportReport + */ + additional_data?: Array; + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof ReportReport + */ + code?: string; + /** + * Дата создания отчёта. + * @type {string} + * @memberof ReportReport + */ + created_at?: string; + /** + * Код ошибки при генерации отчёта. + * @type {string} + * @memberof ReportReport + */ + error?: string; + /** + * Дата и время, до которых отчёт доступен по ссылке. + * Поле вернётся пустым, если отчёт сформирован до 14 октября 2025. + * + * @type {string} + * @memberof ReportReport + */ + expires_at?: string; + /** + * Ссылка на XLSX-файл. + * + * Для отчёта с типом `SELLER_RETURNS` ссылка доступна 5 минут после выполнения запроса. + * + * @type {string} + * @memberof ReportReport + */ + file?: string; + /** + * Массив с фильтрами, указанными при создании отчёта продавцом. + * @type {{ [key: string]: string | undefined; }} + * @memberof ReportReport + */ + params?: { + [key: string]: string | undefined; + }; + /** + * Тип отчёта: + * - `SELLER_PRODUCTS` — отчёт по товарам; + * - `SELLER_STOCK` — отчёт об остатках товаров; + * - `SELLER_RETURNS` — отчёт о возвратах; + * - `SELLER_POSTINGS` — отчёт об отправлениях; + * - `SELLER_DISCOUNTED` — отчёт об уценённых товарах; + * - `MUTUAL_SETTLEMENT` — отчёт о взаиморасчётах; + * - `DOCUMENT_B2B_SALES` — отчёт о продажах юридическим лицам; + * - `COMPENSATION_REPORT` — отчёт о компенсациях; + * - `DECOMPENSATION_REPORT` — отчёт о декомпенсациях; + * - `MARKED_PRODUCTS_SALES` — отчёт по продажам маркированных товаров; + * - `SELLER_PLACEMENT_BY_PRODUCTS` — отчёт о стоимости размещения по товарам; + * - `SELLER_PLACEMENT_BY_SUPPLIES` — отчёт о стоимости размещения по поставкам. + * + * @type {string} + * @memberof ReportReport + */ + report_type?: string; + /** + * Статус генерации отчёта: + * - `waiting` — в очереди на обработку, + * - `processing` — обрабатывается, + * - `success` — отчёт успешно создан, + * - `failed` — ошибка при создании отчёта. + * + * @type {string} + * @memberof ReportReport + */ + status?: string; +} +/** + * Check if a given object implements the ReportReport interface. + */ +export declare function instanceOfReportReport(value: object): value is ReportReport; +export declare function ReportReportFromJSON(json: any): ReportReport; +export declare function ReportReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReport; +export declare function ReportReportToJSON(value?: ReportReport | null): any; diff --git a/dist/models/ReportReport.js b/dist/models/ReportReport.js new file mode 100644 index 0000000..48c333e --- /dev/null +++ b/dist/models/ReportReport.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportReport = instanceOfReportReport; +exports.ReportReportFromJSON = ReportReportFromJSON; +exports.ReportReportFromJSONTyped = ReportReportFromJSONTyped; +exports.ReportReportToJSON = ReportReportToJSON; +const ReportCommonReportAdditionalDataItem_1 = require("./ReportCommonReportAdditionalDataItem"); +/** + * Check if a given object implements the ReportReport interface. + */ +function instanceOfReportReport(value) { + return true; +} +function ReportReportFromJSON(json) { + return ReportReportFromJSONTyped(json, false); +} +function ReportReportFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(ReportCommonReportAdditionalDataItem_1.ReportCommonReportAdditionalDataItemFromJSON)), + 'code': json['code'] == null ? undefined : json['code'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'error': json['error'] == null ? undefined : json['error'], + 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], + 'file': json['file'] == null ? undefined : json['file'], + 'params': json['params'] == null ? undefined : json['params'], + 'report_type': json['report_type'] == null ? undefined : json['report_type'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function ReportReportToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(ReportCommonReportAdditionalDataItem_1.ReportCommonReportAdditionalDataItemToJSON)), + 'code': value['code'], + 'created_at': value['created_at'], + 'error': value['error'], + 'expires_at': value['expires_at'], + 'file': value['file'], + 'params': value['params'], + 'report_type': value['report_type'], + 'status': value['status'], + }; +} diff --git a/dist/models/ReportReportInfoRequest.d.ts b/dist/models/ReportReportInfoRequest.d.ts new file mode 100644 index 0000000..4b84e0e --- /dev/null +++ b/dist/models/ReportReportInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportReportInfoRequest + */ +export interface ReportReportInfoRequest { + /** + * Уникальный идентификатор отчёта. + * @type {string} + * @memberof ReportReportInfoRequest + */ + code: string; +} +/** + * Check if a given object implements the ReportReportInfoRequest interface. + */ +export declare function instanceOfReportReportInfoRequest(value: object): value is ReportReportInfoRequest; +export declare function ReportReportInfoRequestFromJSON(json: any): ReportReportInfoRequest; +export declare function ReportReportInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportInfoRequest; +export declare function ReportReportInfoRequestToJSON(value?: ReportReportInfoRequest | null): any; diff --git a/dist/models/ReportReportInfoRequest.js b/dist/models/ReportReportInfoRequest.js new file mode 100644 index 0000000..f3180e5 --- /dev/null +++ b/dist/models/ReportReportInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportReportInfoRequest = instanceOfReportReportInfoRequest; +exports.ReportReportInfoRequestFromJSON = ReportReportInfoRequestFromJSON; +exports.ReportReportInfoRequestFromJSONTyped = ReportReportInfoRequestFromJSONTyped; +exports.ReportReportInfoRequestToJSON = ReportReportInfoRequestToJSON; +/** + * Check if a given object implements the ReportReportInfoRequest interface. + */ +function instanceOfReportReportInfoRequest(value) { + if (!('code' in value) || value['code'] === undefined) + return false; + return true; +} +function ReportReportInfoRequestFromJSON(json) { + return ReportReportInfoRequestFromJSONTyped(json, false); +} +function ReportReportInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'], + }; +} +function ReportReportInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/ReportReportInfoResponse.d.ts b/dist/models/ReportReportInfoResponse.d.ts new file mode 100644 index 0000000..76c58d0 --- /dev/null +++ b/dist/models/ReportReportInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportReportinfo } from './ReportReportinfo'; +/** + * + * @export + * @interface ReportReportInfoResponse + */ +export interface ReportReportInfoResponse { + /** + * + * @type {ReportReportinfo} + * @memberof ReportReportInfoResponse + */ + result?: ReportReportinfo; +} +/** + * Check if a given object implements the ReportReportInfoResponse interface. + */ +export declare function instanceOfReportReportInfoResponse(value: object): value is ReportReportInfoResponse; +export declare function ReportReportInfoResponseFromJSON(json: any): ReportReportInfoResponse; +export declare function ReportReportInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportInfoResponse; +export declare function ReportReportInfoResponseToJSON(value?: ReportReportInfoResponse | null): any; diff --git a/dist/models/ReportReportInfoResponse.js b/dist/models/ReportReportInfoResponse.js new file mode 100644 index 0000000..219ae3a --- /dev/null +++ b/dist/models/ReportReportInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportReportInfoResponse = instanceOfReportReportInfoResponse; +exports.ReportReportInfoResponseFromJSON = ReportReportInfoResponseFromJSON; +exports.ReportReportInfoResponseFromJSONTyped = ReportReportInfoResponseFromJSONTyped; +exports.ReportReportInfoResponseToJSON = ReportReportInfoResponseToJSON; +const ReportReportinfo_1 = require("./ReportReportinfo"); +/** + * Check if a given object implements the ReportReportInfoResponse interface. + */ +function instanceOfReportReportInfoResponse(value) { + return true; +} +function ReportReportInfoResponseFromJSON(json) { + return ReportReportInfoResponseFromJSONTyped(json, false); +} +function ReportReportInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, ReportReportinfo_1.ReportReportinfoFromJSON)(json['result']), + }; +} +function ReportReportInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, ReportReportinfo_1.ReportReportinfoToJSON)(value['result']), + }; +} diff --git a/dist/models/ReportReportListRequest.d.ts b/dist/models/ReportReportListRequest.d.ts new file mode 100644 index 0000000..2271f95 --- /dev/null +++ b/dist/models/ReportReportListRequest.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportReportListRequest + */ +export interface ReportReportListRequest { + /** + * Номер страницы. + * @type {number} + * @memberof ReportReportListRequest + */ + page: number; + /** + * Количество значений на странице: + * - по умолчанию — 100, + * - маĸсимальное значение — 1000. + * + * @type {number} + * @memberof ReportReportListRequest + */ + page_size: number; + /** + * Тип отчёта: + * - `ALL` — все отчёты; + * - `SELLER_PRODUCTS` — отчёт по товарам; + * - `SELLER_STOCK` — отчёт об остатках товаров; + * - `SELLER_RETURNS` — отчёт о возвратах; + * - `SELLER_POSTINGS` — отчёт об отправлениях; + * - `SELLER_DISCOUNTED` — отчёт об уценённых товарах; + * - `MUTUAL_SETTLEMENT` — отчёт о взаиморасчётах; + * - `DOCUMENT_B2B_SALES` — отчёт о продажах юридическим лицам; + * - `COMPENSATION_REPORT` — отчёт о компенсациях; + * - `DECOMPENSATION_REPORT` — отчёт о декомпенсациях; + * - `MARKED_PRODUCTS_SALES` — отчёт по продажам маркированных товаров; + * - `SELLER_PLACEMENT_BY_PRODUCTS` — отчёт о стоимости размещения по товарам; + * - `SELLER_PLACEMENT_BY_SUPPLIES` — отчёт о стоимости размещения по поставкам. + * + * @type {string} + * @memberof ReportReportListRequest + */ + report_type?: string; +} +/** + * Check if a given object implements the ReportReportListRequest interface. + */ +export declare function instanceOfReportReportListRequest(value: object): value is ReportReportListRequest; +export declare function ReportReportListRequestFromJSON(json: any): ReportReportListRequest; +export declare function ReportReportListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportListRequest; +export declare function ReportReportListRequestToJSON(value?: ReportReportListRequest | null): any; diff --git a/dist/models/ReportReportListRequest.js b/dist/models/ReportReportListRequest.js new file mode 100644 index 0000000..33e5793 --- /dev/null +++ b/dist/models/ReportReportListRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportReportListRequest = instanceOfReportReportListRequest; +exports.ReportReportListRequestFromJSON = ReportReportListRequestFromJSON; +exports.ReportReportListRequestFromJSONTyped = ReportReportListRequestFromJSONTyped; +exports.ReportReportListRequestToJSON = ReportReportListRequestToJSON; +/** + * Check if a given object implements the ReportReportListRequest interface. + */ +function instanceOfReportReportListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +function ReportReportListRequestFromJSON(json) { + return ReportReportListRequestFromJSONTyped(json, false); +} +function ReportReportListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'page_size': json['page_size'], + 'report_type': json['report_type'] == null ? undefined : json['report_type'], + }; +} +function ReportReportListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + 'report_type': value['report_type'], + }; +} diff --git a/dist/models/ReportReportListResponse.d.ts b/dist/models/ReportReportListResponse.d.ts new file mode 100644 index 0000000..fa0e0e2 --- /dev/null +++ b/dist/models/ReportReportListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportListResponseResult } from './ReportListResponseResult'; +/** + * + * @export + * @interface ReportReportListResponse + */ +export interface ReportReportListResponse { + /** + * + * @type {ReportListResponseResult} + * @memberof ReportReportListResponse + */ + result?: ReportListResponseResult; +} +/** + * Check if a given object implements the ReportReportListResponse interface. + */ +export declare function instanceOfReportReportListResponse(value: object): value is ReportReportListResponse; +export declare function ReportReportListResponseFromJSON(json: any): ReportReportListResponse; +export declare function ReportReportListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportListResponse; +export declare function ReportReportListResponseToJSON(value?: ReportReportListResponse | null): any; diff --git a/dist/models/ReportReportListResponse.js b/dist/models/ReportReportListResponse.js new file mode 100644 index 0000000..bdab588 --- /dev/null +++ b/dist/models/ReportReportListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportReportListResponse = instanceOfReportReportListResponse; +exports.ReportReportListResponseFromJSON = ReportReportListResponseFromJSON; +exports.ReportReportListResponseFromJSONTyped = ReportReportListResponseFromJSONTyped; +exports.ReportReportListResponseToJSON = ReportReportListResponseToJSON; +const ReportListResponseResult_1 = require("./ReportListResponseResult"); +/** + * Check if a given object implements the ReportReportListResponse interface. + */ +function instanceOfReportReportListResponse(value) { + return true; +} +function ReportReportListResponseFromJSON(json) { + return ReportReportListResponseFromJSONTyped(json, false); +} +function ReportReportListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, ReportListResponseResult_1.ReportListResponseResultFromJSON)(json['result']), + }; +} +function ReportReportListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, ReportListResponseResult_1.ReportListResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/ReportReportinfo.d.ts b/dist/models/ReportReportinfo.d.ts new file mode 100644 index 0000000..3c9d181 --- /dev/null +++ b/dist/models/ReportReportinfo.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportCommonReportAdditionalDataItem } from './ReportCommonReportAdditionalDataItem'; +/** + * Информация об отчёте. + * @export + * @interface ReportReportinfo + */ +export interface ReportReportinfo { + /** + * Дополнительные параметры. + * @type {Array} + * @memberof ReportReportinfo + */ + additional_data?: Array; + /** + * Уникальный идентификатор отчёта. + * @type {string} + * @memberof ReportReportinfo + */ + code?: string; + /** + * Дата создания отчёта. + * @type {string} + * @memberof ReportReportinfo + */ + created_at?: string; + /** + * Код ошибки при генерации отчёта. + * @type {string} + * @memberof ReportReportinfo + */ + error?: string; + /** + * Дата и время, до которых отчёт доступен по ссылке. + * Поле вернётся пустым, если отчёт сформирован до 14 октября 2025. + * + * @type {string} + * @memberof ReportReportinfo + */ + expires_at?: string; + /** + * Ссылка на XLSX-файл. + * + * Для отчёта с типом `SELLER_RETURNS` ссылка доступна 5 минут после выполнения запроса. + * + * @type {string} + * @memberof ReportReportinfo + */ + file?: string; + /** + * Массив с фильтрами, указанными при создании отчёта продавцом. + * @type {{ [key: string]: string | undefined; }} + * @memberof ReportReportinfo + */ + params?: { + [key: string]: string | undefined; + }; + /** + * Тип отчёта: + * - `SELLER_PRODUCTS` — отчёт по товарам; + * - `SELLER_STOCK` — отчёт об остатках товаров; + * - `SELLER_RETURNS` — отчёт о возвратах; + * - `SELLER_POSTINGS` — отчёт об отправлениях; + * - `SELLER_DISCOUNTED` — отчёт об уценённых товарах; + * - `MUTUAL_SETTLEMENT` — отчёт о взаиморасчётах; + * - `DOCUMENT_B2B_SALES` — отчёт о продажах юридическим лицам; + * - `COMPENSATION_REPORT` — отчёт о компенсациях; + * - `DECOMPENSATION_REPORT` — отчёт о декомпенсациях; + * - `MARKED_PRODUCTS_SALES` — отчёт по продажам маркированных товаров; + * - `SELLER_PLACEMENT_BY_PRODUCTS` — отчёт о стоимости размещения по товарам; + * - `SELLER_PLACEMENT_BY_SUPPLIES` — отчёт о стоимости размещения по поставкам. + * + * @type {string} + * @memberof ReportReportinfo + */ + report_type?: string; + /** + * Статус генерации отчёта: + * - `waiting` — в очереди на обработку, + * - `processing` — обрабатывается, + * - `success` — отчёт успешно создан, + * - `failed` — ошибка при создании отчёта. + * + * @type {string} + * @memberof ReportReportinfo + */ + status?: string; +} +/** + * Check if a given object implements the ReportReportinfo interface. + */ +export declare function instanceOfReportReportinfo(value: object): value is ReportReportinfo; +export declare function ReportReportinfoFromJSON(json: any): ReportReportinfo; +export declare function ReportReportinfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportReportinfo; +export declare function ReportReportinfoToJSON(value?: ReportReportinfo | null): any; diff --git a/dist/models/ReportReportinfo.js b/dist/models/ReportReportinfo.js new file mode 100644 index 0000000..c66f1c3 --- /dev/null +++ b/dist/models/ReportReportinfo.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportReportinfo = instanceOfReportReportinfo; +exports.ReportReportinfoFromJSON = ReportReportinfoFromJSON; +exports.ReportReportinfoFromJSONTyped = ReportReportinfoFromJSONTyped; +exports.ReportReportinfoToJSON = ReportReportinfoToJSON; +const ReportCommonReportAdditionalDataItem_1 = require("./ReportCommonReportAdditionalDataItem"); +/** + * Check if a given object implements the ReportReportinfo interface. + */ +function instanceOfReportReportinfo(value) { + return true; +} +function ReportReportinfoFromJSON(json) { + return ReportReportinfoFromJSONTyped(json, false); +} +function ReportReportinfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(ReportCommonReportAdditionalDataItem_1.ReportCommonReportAdditionalDataItemFromJSON)), + 'code': json['code'] == null ? undefined : json['code'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'error': json['error'] == null ? undefined : json['error'], + 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], + 'file': json['file'] == null ? undefined : json['file'], + 'params': json['params'] == null ? undefined : json['params'], + 'report_type': json['report_type'] == null ? undefined : json['report_type'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function ReportReportinfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(ReportCommonReportAdditionalDataItem_1.ReportCommonReportAdditionalDataItemToJSON)), + 'code': value['code'], + 'created_at': value['created_at'], + 'error': value['error'], + 'expires_at': value['expires_at'], + 'file': value['file'], + 'params': value['params'], + 'report_type': value['report_type'], + 'status': value['status'], + }; +} diff --git a/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.d.ts b/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.d.ts new file mode 100644 index 0000000..7f67538 --- /dev/null +++ b/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportV1CreateCompanyFinanceRealizationPostingReportRequest + */ +export interface ReportV1CreateCompanyFinanceRealizationPostingReportRequest { + /** + * Месяц. + * @type {number} + * @memberof ReportV1CreateCompanyFinanceRealizationPostingReportRequest + */ + month: number; + /** + * Год. + * @type {number} + * @memberof ReportV1CreateCompanyFinanceRealizationPostingReportRequest + */ + year: number; +} +/** + * Check if a given object implements the ReportV1CreateCompanyFinanceRealizationPostingReportRequest interface. + */ +export declare function instanceOfReportV1CreateCompanyFinanceRealizationPostingReportRequest(value: object): value is ReportV1CreateCompanyFinanceRealizationPostingReportRequest; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSON(json: any): ReportV1CreateCompanyFinanceRealizationPostingReportRequest; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportV1CreateCompanyFinanceRealizationPostingReportRequest; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON(value?: ReportV1CreateCompanyFinanceRealizationPostingReportRequest | null): any; diff --git a/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.js b/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.js new file mode 100644 index 0000000..992dd97 --- /dev/null +++ b/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportV1CreateCompanyFinanceRealizationPostingReportRequest = instanceOfReportV1CreateCompanyFinanceRealizationPostingReportRequest; +exports.ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSON = ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSON; +exports.ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSONTyped = ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSONTyped; +exports.ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON = ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON; +/** + * Check if a given object implements the ReportV1CreateCompanyFinanceRealizationPostingReportRequest interface. + */ +function instanceOfReportV1CreateCompanyFinanceRealizationPostingReportRequest(value) { + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('year' in value) || value['year'] === undefined) + return false; + return true; +} +function ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSON(json) { + return ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSONTyped(json, false); +} +function ReportV1CreateCompanyFinanceRealizationPostingReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'month': json['month'], + 'year': json['year'], + }; +} +function ReportV1CreateCompanyFinanceRealizationPostingReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.d.ts b/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.d.ts new file mode 100644 index 0000000..6f237d1 --- /dev/null +++ b/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReportV1CreateCompanyFinanceRealizationPostingReportResponse + */ +export interface ReportV1CreateCompanyFinanceRealizationPostingReportResponse { + /** + * Уникальный идентификатор отчёта. Получите отчёт методом [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof ReportV1CreateCompanyFinanceRealizationPostingReportResponse + */ + code?: string; +} +/** + * Check if a given object implements the ReportV1CreateCompanyFinanceRealizationPostingReportResponse interface. + */ +export declare function instanceOfReportV1CreateCompanyFinanceRealizationPostingReportResponse(value: object): value is ReportV1CreateCompanyFinanceRealizationPostingReportResponse; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON(json: any): ReportV1CreateCompanyFinanceRealizationPostingReportResponse; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportV1CreateCompanyFinanceRealizationPostingReportResponse; +export declare function ReportV1CreateCompanyFinanceRealizationPostingReportResponseToJSON(value?: ReportV1CreateCompanyFinanceRealizationPostingReportResponse | null): any; diff --git a/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.js b/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.js new file mode 100644 index 0000000..18df4a5 --- /dev/null +++ b/dist/models/ReportV1CreateCompanyFinanceRealizationPostingReportResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReportV1CreateCompanyFinanceRealizationPostingReportResponse = instanceOfReportV1CreateCompanyFinanceRealizationPostingReportResponse; +exports.ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON = ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON; +exports.ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSONTyped = ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSONTyped; +exports.ReportV1CreateCompanyFinanceRealizationPostingReportResponseToJSON = ReportV1CreateCompanyFinanceRealizationPostingReportResponseToJSON; +/** + * Check if a given object implements the ReportV1CreateCompanyFinanceRealizationPostingReportResponse interface. + */ +function instanceOfReportV1CreateCompanyFinanceRealizationPostingReportResponse(value) { + return true; +} +function ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSON(json) { + return ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSONTyped(json, false); +} +function ReportV1CreateCompanyFinanceRealizationPostingReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +function ReportV1CreateCompanyFinanceRealizationPostingReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/RestrictionsReasonEnum.d.ts b/dist/models/RestrictionsReasonEnum.d.ts new file mode 100644 index 0000000..4e24605 --- /dev/null +++ b/dist/models/RestrictionsReasonEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const RestrictionsReasonEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly SKU_HAS_NO_SALES: "SKU_HAS_NO_SALES"; + readonly SKU_HAS_QUANTITY_LIMIT: "SKU_HAS_QUANTITY_LIMIT"; +}; +export type RestrictionsReasonEnum = typeof RestrictionsReasonEnum[keyof typeof RestrictionsReasonEnum]; +export declare function instanceOfRestrictionsReasonEnum(value: any): boolean; +export declare function RestrictionsReasonEnumFromJSON(json: any): RestrictionsReasonEnum; +export declare function RestrictionsReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestrictionsReasonEnum; +export declare function RestrictionsReasonEnumToJSON(value?: RestrictionsReasonEnum | null): any; diff --git a/dist/models/RestrictionsReasonEnum.js b/dist/models/RestrictionsReasonEnum.js new file mode 100644 index 0000000..5a1ae48 --- /dev/null +++ b/dist/models/RestrictionsReasonEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RestrictionsReasonEnum = void 0; +exports.instanceOfRestrictionsReasonEnum = instanceOfRestrictionsReasonEnum; +exports.RestrictionsReasonEnumFromJSON = RestrictionsReasonEnumFromJSON; +exports.RestrictionsReasonEnumFromJSONTyped = RestrictionsReasonEnumFromJSONTyped; +exports.RestrictionsReasonEnumToJSON = RestrictionsReasonEnumToJSON; +/** + * + * @export + */ +exports.RestrictionsReasonEnum = { + UNKNOWN: 'UNKNOWN', + SKU_HAS_NO_SALES: 'SKU_HAS_NO_SALES', + SKU_HAS_QUANTITY_LIMIT: 'SKU_HAS_QUANTITY_LIMIT' +}; +function instanceOfRestrictionsReasonEnum(value) { + for (const key in exports.RestrictionsReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.RestrictionsReasonEnum, key)) { + if (exports.RestrictionsReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function RestrictionsReasonEnumFromJSON(json) { + return RestrictionsReasonEnumFromJSONTyped(json, false); +} +function RestrictionsReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function RestrictionsReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/ResultCargo.d.ts b/dist/models/ResultCargo.d.ts new file mode 100644 index 0000000..bb15b84 --- /dev/null +++ b/dist/models/ResultCargo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoValue } from './CargoValue'; +/** + * + * @export + * @interface ResultCargo + */ +export interface ResultCargo { + /** + * Ключ грузоместа. + * @type {string} + * @memberof ResultCargo + */ + key?: string; + /** + * + * @type {CargoValue} + * @memberof ResultCargo + */ + value?: CargoValue; +} +/** + * Check if a given object implements the ResultCargo interface. + */ +export declare function instanceOfResultCargo(value: object): value is ResultCargo; +export declare function ResultCargoFromJSON(json: any): ResultCargo; +export declare function ResultCargoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultCargo; +export declare function ResultCargoToJSON(value?: ResultCargo | null): any; diff --git a/dist/models/ResultCargo.js b/dist/models/ResultCargo.js new file mode 100644 index 0000000..185f611 --- /dev/null +++ b/dist/models/ResultCargo.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfResultCargo = instanceOfResultCargo; +exports.ResultCargoFromJSON = ResultCargoFromJSON; +exports.ResultCargoFromJSONTyped = ResultCargoFromJSONTyped; +exports.ResultCargoToJSON = ResultCargoToJSON; +const CargoValue_1 = require("./CargoValue"); +/** + * Check if a given object implements the ResultCargo interface. + */ +function instanceOfResultCargo(value) { + return true; +} +function ResultCargoFromJSON(json) { + return ResultCargoFromJSONTyped(json, false); +} +function ResultCargoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : (0, CargoValue_1.CargoValueFromJSON)(json['value']), + }; +} +function ResultCargoToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': (0, CargoValue_1.CargoValueToJSON)(value['value']), + }; +} diff --git a/dist/models/ResultData.d.ts b/dist/models/ResultData.d.ts new file mode 100644 index 0000000..cae9402 --- /dev/null +++ b/dist/models/ResultData.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DataMacrolocalCluster } from './DataMacrolocalCluster'; +import type { DataFulfillment } from './DataFulfillment'; +/** + * Кластер. + * @export + * @interface ResultData + */ +export interface ResultData { + /** + * Склады Ozon в кластере. + * @type {Array} + * @memberof ResultData + */ + fulfillments?: Array; + /** + * + * @type {DataMacrolocalCluster} + * @memberof ResultData + */ + macrolocal_cluster?: DataMacrolocalCluster; +} +/** + * Check if a given object implements the ResultData interface. + */ +export declare function instanceOfResultData(value: object): value is ResultData; +export declare function ResultDataFromJSON(json: any): ResultData; +export declare function ResultDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultData; +export declare function ResultDataToJSON(value?: ResultData | null): any; diff --git a/dist/models/ResultData.js b/dist/models/ResultData.js new file mode 100644 index 0000000..525543d --- /dev/null +++ b/dist/models/ResultData.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfResultData = instanceOfResultData; +exports.ResultDataFromJSON = ResultDataFromJSON; +exports.ResultDataFromJSONTyped = ResultDataFromJSONTyped; +exports.ResultDataToJSON = ResultDataToJSON; +const DataMacrolocalCluster_1 = require("./DataMacrolocalCluster"); +const DataFulfillment_1 = require("./DataFulfillment"); +/** + * Check if a given object implements the ResultData interface. + */ +function instanceOfResultData(value) { + return true; +} +function ResultDataFromJSON(json) { + return ResultDataFromJSONTyped(json, false); +} +function ResultDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fulfillments': json['fulfillments'] == null ? undefined : (json['fulfillments'].map(DataFulfillment_1.DataFulfillmentFromJSON)), + 'macrolocal_cluster': json['macrolocal_cluster'] == null ? undefined : (0, DataMacrolocalCluster_1.DataMacrolocalClusterFromJSON)(json['macrolocal_cluster']), + }; +} +function ResultDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'fulfillments': value['fulfillments'] == null ? undefined : (value['fulfillments'].map(DataFulfillment_1.DataFulfillmentToJSON)), + 'macrolocal_cluster': (0, DataMacrolocalCluster_1.DataMacrolocalClusterToJSON)(value['macrolocal_cluster']), + }; +} diff --git a/dist/models/ResultDropOffWarehouseTimeslots.d.ts b/dist/models/ResultDropOffWarehouseTimeslots.d.ts new file mode 100644 index 0000000..45dcd40 --- /dev/null +++ b/dist/models/ResultDropOffWarehouseTimeslots.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DropOffWarehouseTimeslotsDay } from './DropOffWarehouseTimeslotsDay'; +/** + * Таймслоты складов. + * @export + * @interface ResultDropOffWarehouseTimeslots + */ +export interface ResultDropOffWarehouseTimeslots { + /** + * Текущее время в часовом поясе склада. + * @type {string} + * @memberof ResultDropOffWarehouseTimeslots + */ + current_time_in_timezone?: string; + /** + * Таймслоты по датам. + * @type {Array} + * @memberof ResultDropOffWarehouseTimeslots + */ + days?: Array; + /** + * Часовой пояс склада. + * @type {string} + * @memberof ResultDropOffWarehouseTimeslots + */ + warehouse_timezone?: string; +} +/** + * Check if a given object implements the ResultDropOffWarehouseTimeslots interface. + */ +export declare function instanceOfResultDropOffWarehouseTimeslots(value: object): value is ResultDropOffWarehouseTimeslots; +export declare function ResultDropOffWarehouseTimeslotsFromJSON(json: any): ResultDropOffWarehouseTimeslots; +export declare function ResultDropOffWarehouseTimeslotsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultDropOffWarehouseTimeslots; +export declare function ResultDropOffWarehouseTimeslotsToJSON(value?: ResultDropOffWarehouseTimeslots | null): any; diff --git a/dist/models/ResultDropOffWarehouseTimeslots.js b/dist/models/ResultDropOffWarehouseTimeslots.js new file mode 100644 index 0000000..cc17174 --- /dev/null +++ b/dist/models/ResultDropOffWarehouseTimeslots.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfResultDropOffWarehouseTimeslots = instanceOfResultDropOffWarehouseTimeslots; +exports.ResultDropOffWarehouseTimeslotsFromJSON = ResultDropOffWarehouseTimeslotsFromJSON; +exports.ResultDropOffWarehouseTimeslotsFromJSONTyped = ResultDropOffWarehouseTimeslotsFromJSONTyped; +exports.ResultDropOffWarehouseTimeslotsToJSON = ResultDropOffWarehouseTimeslotsToJSON; +const DropOffWarehouseTimeslotsDay_1 = require("./DropOffWarehouseTimeslotsDay"); +/** + * Check if a given object implements the ResultDropOffWarehouseTimeslots interface. + */ +function instanceOfResultDropOffWarehouseTimeslots(value) { + return true; +} +function ResultDropOffWarehouseTimeslotsFromJSON(json) { + return ResultDropOffWarehouseTimeslotsFromJSONTyped(json, false); +} +function ResultDropOffWarehouseTimeslotsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_time_in_timezone': json['current_time_in_timezone'] == null ? undefined : json['current_time_in_timezone'], + 'days': json['days'] == null ? undefined : (json['days'].map(DropOffWarehouseTimeslotsDay_1.DropOffWarehouseTimeslotsDayFromJSON)), + 'warehouse_timezone': json['warehouse_timezone'] == null ? undefined : json['warehouse_timezone'], + }; +} +function ResultDropOffWarehouseTimeslotsToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_time_in_timezone': value['current_time_in_timezone'], + 'days': value['days'] == null ? undefined : (value['days'].map(DropOffWarehouseTimeslotsDay_1.DropOffWarehouseTimeslotsDayToJSON)), + 'warehouse_timezone': value['warehouse_timezone'], + }; +} diff --git a/dist/models/ResultError.d.ts b/dist/models/ResultError.d.ts new file mode 100644 index 0000000..7e86e0e --- /dev/null +++ b/dist/models/ResultError.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ResultError + */ +export interface ResultError { + /** + * Код ошибки. + * @type {string} + * @memberof ResultError + */ + code?: string; + /** + * Тип ошибки: + * - `warning` — предупреждение; + * - `critical` — критическая ошибка. + * + * @type {string} + * @memberof ResultError + */ + status?: string; +} +/** + * Check if a given object implements the ResultError interface. + */ +export declare function instanceOfResultError(value: object): value is ResultError; +export declare function ResultErrorFromJSON(json: any): ResultError; +export declare function ResultErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultError; +export declare function ResultErrorToJSON(value?: ResultError | null): any; diff --git a/dist/models/ResultError.js b/dist/models/ResultError.js new file mode 100644 index 0000000..7a22bed --- /dev/null +++ b/dist/models/ResultError.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfResultError = instanceOfResultError; +exports.ResultErrorFromJSON = ResultErrorFromJSON; +exports.ResultErrorFromJSONTyped = ResultErrorFromJSONTyped; +exports.ResultErrorToJSON = ResultErrorToJSON; +/** + * Check if a given object implements the ResultError interface. + */ +function instanceOfResultError(value) { + return true; +} +function ResultErrorFromJSON(json) { + return ResultErrorFromJSONTyped(json, false); +} +function ResultErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function ResultErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'status': value['status'], + }; +} diff --git a/dist/models/ResultUnprintedPosting.d.ts b/dist/models/ResultUnprintedPosting.d.ts new file mode 100644 index 0000000..1aefdde --- /dev/null +++ b/dist/models/ResultUnprintedPosting.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ResultUnprintedPosting + */ +export interface ResultUnprintedPosting { + /** + * Причина ошибки. + * @type {string} + * @memberof ResultUnprintedPosting + */ + msg?: string; + /** + * Номер отправления. + * @type {string} + * @memberof ResultUnprintedPosting + */ + posting_number?: string; +} +/** + * Check if a given object implements the ResultUnprintedPosting interface. + */ +export declare function instanceOfResultUnprintedPosting(value: object): value is ResultUnprintedPosting; +export declare function ResultUnprintedPostingFromJSON(json: any): ResultUnprintedPosting; +export declare function ResultUnprintedPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultUnprintedPosting; +export declare function ResultUnprintedPostingToJSON(value?: ResultUnprintedPosting | null): any; diff --git a/dist/models/ResultUnprintedPosting.js b/dist/models/ResultUnprintedPosting.js new file mode 100644 index 0000000..32525bb --- /dev/null +++ b/dist/models/ResultUnprintedPosting.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfResultUnprintedPosting = instanceOfResultUnprintedPosting; +exports.ResultUnprintedPostingFromJSON = ResultUnprintedPostingFromJSON; +exports.ResultUnprintedPostingFromJSONTyped = ResultUnprintedPostingFromJSONTyped; +exports.ResultUnprintedPostingToJSON = ResultUnprintedPostingToJSON; +/** + * Check if a given object implements the ResultUnprintedPosting interface. + */ +function instanceOfResultUnprintedPosting(value) { + return true; +} +function ResultUnprintedPostingFromJSON(json) { + return ResultUnprintedPostingFromJSONTyped(json, false); +} +function ResultUnprintedPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'msg': json['msg'] == null ? undefined : json['msg'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +function ResultUnprintedPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'msg': value['msg'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/ReturnSettingCourierDetails.d.ts b/dist/models/ReturnSettingCourierDetails.d.ts new file mode 100644 index 0000000..9487702 --- /dev/null +++ b/dist/models/ReturnSettingCourierDetails.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Настройки курьера. + * @export + * @interface ReturnSettingCourierDetails + */ +export interface ReturnSettingCourierDetails { + /** + * Количество дней, за которое вы свяжетесь с покупателем для возврата. + * @type {number} + * @memberof ReturnSettingCourierDetails + */ + contact_days?: number; +} +/** + * Check if a given object implements the ReturnSettingCourierDetails interface. + */ +export declare function instanceOfReturnSettingCourierDetails(value: object): value is ReturnSettingCourierDetails; +export declare function ReturnSettingCourierDetailsFromJSON(json: any): ReturnSettingCourierDetails; +export declare function ReturnSettingCourierDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnSettingCourierDetails; +export declare function ReturnSettingCourierDetailsToJSON(value?: ReturnSettingCourierDetails | null): any; diff --git a/dist/models/ReturnSettingCourierDetails.js b/dist/models/ReturnSettingCourierDetails.js new file mode 100644 index 0000000..34df028 --- /dev/null +++ b/dist/models/ReturnSettingCourierDetails.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnSettingCourierDetails = instanceOfReturnSettingCourierDetails; +exports.ReturnSettingCourierDetailsFromJSON = ReturnSettingCourierDetailsFromJSON; +exports.ReturnSettingCourierDetailsFromJSONTyped = ReturnSettingCourierDetailsFromJSONTyped; +exports.ReturnSettingCourierDetailsToJSON = ReturnSettingCourierDetailsToJSON; +/** + * Check if a given object implements the ReturnSettingCourierDetails interface. + */ +function instanceOfReturnSettingCourierDetails(value) { + return true; +} +function ReturnSettingCourierDetailsFromJSON(json) { + return ReturnSettingCourierDetailsFromJSONTyped(json, false); +} +function ReturnSettingCourierDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + }; +} +function ReturnSettingCourierDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + }; +} diff --git a/dist/models/ReturnSettingTransportCompanyDetails.d.ts b/dist/models/ReturnSettingTransportCompanyDetails.d.ts new file mode 100644 index 0000000..7a6a649 --- /dev/null +++ b/dist/models/ReturnSettingTransportCompanyDetails.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Настройки транспортной компании. + * @export + * @interface ReturnSettingTransportCompanyDetails + */ +export interface ReturnSettingTransportCompanyDetails { + /** + * Название транспортной компании. + * @type {Array} + * @memberof ReturnSettingTransportCompanyDetails + */ + transport_company_names?: Array; + /** + * Почтовый индекс транспортной компании. + * @type {string} + * @memberof ReturnSettingTransportCompanyDetails + */ + zipcode?: string; +} +/** + * Check if a given object implements the ReturnSettingTransportCompanyDetails interface. + */ +export declare function instanceOfReturnSettingTransportCompanyDetails(value: object): value is ReturnSettingTransportCompanyDetails; +export declare function ReturnSettingTransportCompanyDetailsFromJSON(json: any): ReturnSettingTransportCompanyDetails; +export declare function ReturnSettingTransportCompanyDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnSettingTransportCompanyDetails; +export declare function ReturnSettingTransportCompanyDetailsToJSON(value?: ReturnSettingTransportCompanyDetails | null): any; diff --git a/dist/models/ReturnSettingTransportCompanyDetails.js b/dist/models/ReturnSettingTransportCompanyDetails.js new file mode 100644 index 0000000..3ded04d --- /dev/null +++ b/dist/models/ReturnSettingTransportCompanyDetails.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnSettingTransportCompanyDetails = instanceOfReturnSettingTransportCompanyDetails; +exports.ReturnSettingTransportCompanyDetailsFromJSON = ReturnSettingTransportCompanyDetailsFromJSON; +exports.ReturnSettingTransportCompanyDetailsFromJSONTyped = ReturnSettingTransportCompanyDetailsFromJSONTyped; +exports.ReturnSettingTransportCompanyDetailsToJSON = ReturnSettingTransportCompanyDetailsToJSON; +/** + * Check if a given object implements the ReturnSettingTransportCompanyDetails interface. + */ +function instanceOfReturnSettingTransportCompanyDetails(value) { + return true; +} +function ReturnSettingTransportCompanyDetailsFromJSON(json) { + return ReturnSettingTransportCompanyDetailsFromJSONTyped(json, false); +} +function ReturnSettingTransportCompanyDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'transport_company_names': json['transport_company_names'] == null ? undefined : json['transport_company_names'], + 'zipcode': json['zipcode'] == null ? undefined : json['zipcode'], + }; +} +function ReturnSettingTransportCompanyDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'transport_company_names': value['transport_company_names'], + 'zipcode': value['zipcode'], + }; +} diff --git a/dist/models/ReturnsCompanyFbsInfoRequestPagination.d.ts b/dist/models/ReturnsCompanyFbsInfoRequestPagination.d.ts new file mode 100644 index 0000000..8558b0c --- /dev/null +++ b/dist/models/ReturnsCompanyFbsInfoRequestPagination.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Разделение ответа метода. + * @export + * @interface ReturnsCompanyFbsInfoRequestPagination + */ +export interface ReturnsCompanyFbsInfoRequestPagination { + /** + * Идентификатор последнего drop-off пункта на странице. Для первого запроса оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `id` последнего drop-off пункта из ответа предыдущего запроса. + * + * @type {number} + * @memberof ReturnsCompanyFbsInfoRequestPagination + */ + last_id?: number; + /** + * Количество drop-off пунктов на странице. Максимум — 500. + * @type {number} + * @memberof ReturnsCompanyFbsInfoRequestPagination + */ + limit: number; +} +/** + * Check if a given object implements the ReturnsCompanyFbsInfoRequestPagination interface. + */ +export declare function instanceOfReturnsCompanyFbsInfoRequestPagination(value: object): value is ReturnsCompanyFbsInfoRequestPagination; +export declare function ReturnsCompanyFbsInfoRequestPaginationFromJSON(json: any): ReturnsCompanyFbsInfoRequestPagination; +export declare function ReturnsCompanyFbsInfoRequestPaginationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsCompanyFbsInfoRequestPagination; +export declare function ReturnsCompanyFbsInfoRequestPaginationToJSON(value?: ReturnsCompanyFbsInfoRequestPagination | null): any; diff --git a/dist/models/ReturnsCompanyFbsInfoRequestPagination.js b/dist/models/ReturnsCompanyFbsInfoRequestPagination.js new file mode 100644 index 0000000..5c4fbfc --- /dev/null +++ b/dist/models/ReturnsCompanyFbsInfoRequestPagination.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsCompanyFbsInfoRequestPagination = instanceOfReturnsCompanyFbsInfoRequestPagination; +exports.ReturnsCompanyFbsInfoRequestPaginationFromJSON = ReturnsCompanyFbsInfoRequestPaginationFromJSON; +exports.ReturnsCompanyFbsInfoRequestPaginationFromJSONTyped = ReturnsCompanyFbsInfoRequestPaginationFromJSONTyped; +exports.ReturnsCompanyFbsInfoRequestPaginationToJSON = ReturnsCompanyFbsInfoRequestPaginationToJSON; +/** + * Check if a given object implements the ReturnsCompanyFbsInfoRequestPagination interface. + */ +function instanceOfReturnsCompanyFbsInfoRequestPagination(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function ReturnsCompanyFbsInfoRequestPaginationFromJSON(json) { + return ReturnsCompanyFbsInfoRequestPaginationFromJSONTyped(json, false); +} +function ReturnsCompanyFbsInfoRequestPaginationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +function ReturnsCompanyFbsInfoRequestPaginationToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/ReturnsCompanyFbsInfoResponseDropOffPoints.d.ts b/dist/models/ReturnsCompanyFbsInfoResponseDropOffPoints.d.ts new file mode 100644 index 0000000..baa555a --- /dev/null +++ b/dist/models/ReturnsCompanyFbsInfoResponseDropOffPoints.d.ts @@ -0,0 +1,80 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsCompanyFbsInfoResponsePassInfo } from './ReturnsCompanyFbsInfoResponsePassInfo'; +/** + * + * @export + * @interface ReturnsCompanyFbsInfoResponseDropOffPoints + */ +export interface ReturnsCompanyFbsInfoResponseDropOffPoints { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + address?: string; + /** + * Количество коробок в drop-off пункте. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + box_count?: number; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + id?: number; + /** + * Название drop-off пункта. + * @type {string} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + name?: string; + /** + * + * @type {ReturnsCompanyFbsInfoResponsePassInfo} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + pass_info?: ReturnsCompanyFbsInfoResponsePassInfo; + /** + * Идентификатор склада, на который приедет отгрузка. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + place_id?: number; + /** + * Количество возвратов в drop-off пункте. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + returns_count?: number; + /** + * Смещение часового пояса времени отгрузки от UTC-0. + * @type {string} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + utc_offset?: string; + /** + * Идентификатор складов продавца. + * @type {Array} + * @memberof ReturnsCompanyFbsInfoResponseDropOffPoints + */ + warehouses_ids?: Array; +} +/** + * Check if a given object implements the ReturnsCompanyFbsInfoResponseDropOffPoints interface. + */ +export declare function instanceOfReturnsCompanyFbsInfoResponseDropOffPoints(value: object): value is ReturnsCompanyFbsInfoResponseDropOffPoints; +export declare function ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON(json: any): ReturnsCompanyFbsInfoResponseDropOffPoints; +export declare function ReturnsCompanyFbsInfoResponseDropOffPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsCompanyFbsInfoResponseDropOffPoints; +export declare function ReturnsCompanyFbsInfoResponseDropOffPointsToJSON(value?: ReturnsCompanyFbsInfoResponseDropOffPoints | null): any; diff --git a/dist/models/ReturnsCompanyFbsInfoResponseDropOffPoints.js b/dist/models/ReturnsCompanyFbsInfoResponseDropOffPoints.js new file mode 100644 index 0000000..6a965e2 --- /dev/null +++ b/dist/models/ReturnsCompanyFbsInfoResponseDropOffPoints.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsCompanyFbsInfoResponseDropOffPoints = instanceOfReturnsCompanyFbsInfoResponseDropOffPoints; +exports.ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON = ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON; +exports.ReturnsCompanyFbsInfoResponseDropOffPointsFromJSONTyped = ReturnsCompanyFbsInfoResponseDropOffPointsFromJSONTyped; +exports.ReturnsCompanyFbsInfoResponseDropOffPointsToJSON = ReturnsCompanyFbsInfoResponseDropOffPointsToJSON; +const ReturnsCompanyFbsInfoResponsePassInfo_1 = require("./ReturnsCompanyFbsInfoResponsePassInfo"); +/** + * Check if a given object implements the ReturnsCompanyFbsInfoResponseDropOffPoints interface. + */ +function instanceOfReturnsCompanyFbsInfoResponseDropOffPoints(value) { + return true; +} +function ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON(json) { + return ReturnsCompanyFbsInfoResponseDropOffPointsFromJSONTyped(json, false); +} +function ReturnsCompanyFbsInfoResponseDropOffPointsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'box_count': json['box_count'] == null ? undefined : json['box_count'], + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'pass_info': json['pass_info'] == null ? undefined : (0, ReturnsCompanyFbsInfoResponsePassInfo_1.ReturnsCompanyFbsInfoResponsePassInfoFromJSON)(json['pass_info']), + 'place_id': json['place_id'] == null ? undefined : json['place_id'], + 'returns_count': json['returns_count'] == null ? undefined : json['returns_count'], + 'utc_offset': json['utc_offset'] == null ? undefined : json['utc_offset'], + 'warehouses_ids': json['warehouses_ids'] == null ? undefined : json['warehouses_ids'], + }; +} +function ReturnsCompanyFbsInfoResponseDropOffPointsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'box_count': value['box_count'], + 'id': value['id'], + 'name': value['name'], + 'pass_info': (0, ReturnsCompanyFbsInfoResponsePassInfo_1.ReturnsCompanyFbsInfoResponsePassInfoToJSON)(value['pass_info']), + 'place_id': value['place_id'], + 'returns_count': value['returns_count'], + 'utc_offset': value['utc_offset'], + 'warehouses_ids': value['warehouses_ids'], + }; +} diff --git a/dist/models/ReturnsCompanyFbsInfoResponsePassInfo.d.ts b/dist/models/ReturnsCompanyFbsInfoResponsePassInfo.d.ts new file mode 100644 index 0000000..f5050cc --- /dev/null +++ b/dist/models/ReturnsCompanyFbsInfoResponsePassInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о пропуске. + * @export + * @interface ReturnsCompanyFbsInfoResponsePassInfo + */ +export interface ReturnsCompanyFbsInfoResponsePassInfo { + /** + * Количество пропусков на drop-off пункт. + * @type {number} + * @memberof ReturnsCompanyFbsInfoResponsePassInfo + */ + count?: number; + /** + * Признак, нужен ли пропуск на drop-off пункт. + * @type {boolean} + * @memberof ReturnsCompanyFbsInfoResponsePassInfo + */ + is_required?: boolean; +} +/** + * Check if a given object implements the ReturnsCompanyFbsInfoResponsePassInfo interface. + */ +export declare function instanceOfReturnsCompanyFbsInfoResponsePassInfo(value: object): value is ReturnsCompanyFbsInfoResponsePassInfo; +export declare function ReturnsCompanyFbsInfoResponsePassInfoFromJSON(json: any): ReturnsCompanyFbsInfoResponsePassInfo; +export declare function ReturnsCompanyFbsInfoResponsePassInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsCompanyFbsInfoResponsePassInfo; +export declare function ReturnsCompanyFbsInfoResponsePassInfoToJSON(value?: ReturnsCompanyFbsInfoResponsePassInfo | null): any; diff --git a/dist/models/ReturnsCompanyFbsInfoResponsePassInfo.js b/dist/models/ReturnsCompanyFbsInfoResponsePassInfo.js new file mode 100644 index 0000000..6834a21 --- /dev/null +++ b/dist/models/ReturnsCompanyFbsInfoResponsePassInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsCompanyFbsInfoResponsePassInfo = instanceOfReturnsCompanyFbsInfoResponsePassInfo; +exports.ReturnsCompanyFbsInfoResponsePassInfoFromJSON = ReturnsCompanyFbsInfoResponsePassInfoFromJSON; +exports.ReturnsCompanyFbsInfoResponsePassInfoFromJSONTyped = ReturnsCompanyFbsInfoResponsePassInfoFromJSONTyped; +exports.ReturnsCompanyFbsInfoResponsePassInfoToJSON = ReturnsCompanyFbsInfoResponsePassInfoToJSON; +/** + * Check if a given object implements the ReturnsCompanyFbsInfoResponsePassInfo interface. + */ +function instanceOfReturnsCompanyFbsInfoResponsePassInfo(value) { + return true; +} +function ReturnsCompanyFbsInfoResponsePassInfoFromJSON(json) { + return ReturnsCompanyFbsInfoResponsePassInfoFromJSONTyped(json, false); +} +function ReturnsCompanyFbsInfoResponsePassInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + }; +} +function ReturnsCompanyFbsInfoResponsePassInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'is_required': value['is_required'], + }; +} diff --git a/dist/models/ReturnsRfbsGetResponseReturns.d.ts b/dist/models/ReturnsRfbsGetResponseReturns.d.ts new file mode 100644 index 0000000..9620d36 --- /dev/null +++ b/dist/models/ReturnsRfbsGetResponseReturns.d.ts @@ -0,0 +1,135 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsRfbsGetV2ResponseAvailableAction } from './ReturnsRfbsGetV2ResponseAvailableAction'; +import type { ReturnsRfbsGetV2ResponseReturnReason } from './ReturnsRfbsGetV2ResponseReturnReason'; +import type { ReturnsRfbsGetV2ResponseClientReturnMethodType } from './ReturnsRfbsGetV2ResponseClientReturnMethodType'; +import type { V2ReturnsRfbsGetV2ResponseState } from './V2ReturnsRfbsGetV2ResponseState'; +import type { V2Product } from './V2Product'; +import type { ReturnsRfbsGetV2ResponseRejectionReason } from './ReturnsRfbsGetV2ResponseRejectionReason'; +/** + * Данные о заявке. + * @export + * @interface ReturnsRfbsGetResponseReturns + */ +export interface ReturnsRfbsGetResponseReturns { + /** + * Данные о доступных действиях с заявкой. + * @type {Array} + * @memberof ReturnsRfbsGetResponseReturns + */ + available_actions?: Array; + /** + * Имя покупателя. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + * @deprecated + */ + client_name?: string; + /** + * Ссылки на фотографии товара. + * @type {Array} + * @memberof ReturnsRfbsGetResponseReturns + */ + client_photo?: Array; + /** + * + * @type {ReturnsRfbsGetV2ResponseClientReturnMethodType} + * @memberof ReturnsRfbsGetResponseReturns + */ + client_return_method_type?: ReturnsRfbsGetV2ResponseClientReturnMethodType; + /** + * Комментарий покупателя. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + comment?: string; + /** + * Дата создания заявки. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + created_at?: string; + /** + * Номер заказа. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + posting_number?: string; + /** + * + * @type {V2Product} + * @memberof ReturnsRfbsGetResponseReturns + */ + product?: V2Product; + /** + * Комментарий об отклонении заявки. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + rejection_comment?: string; + /** + * Данные о причине отклонения заявки. + * @type {Array} + * @memberof ReturnsRfbsGetResponseReturns + */ + rejection_reason?: Array; + /** + * Способ возврата товара. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + * @deprecated + */ + return_method_description?: string; + /** + * Номер заявки на возврат. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + return_number?: string; + /** + * + * @type {ReturnsRfbsGetV2ResponseReturnReason} + * @memberof ReturnsRfbsGetResponseReturns + */ + return_reason?: ReturnsRfbsGetV2ResponseReturnReason; + /** + * Трек-номер почтового отправления. + * @type {string} + * @memberof ReturnsRfbsGetResponseReturns + */ + ru_post_tracking_number?: string; + /** + * + * @type {V2ReturnsRfbsGetV2ResponseState} + * @memberof ReturnsRfbsGetResponseReturns + */ + state?: V2ReturnsRfbsGetV2ResponseState; + /** + * Идентификатор склада. + * @type {number} + * @memberof ReturnsRfbsGetResponseReturns + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the ReturnsRfbsGetResponseReturns interface. + */ +export declare function instanceOfReturnsRfbsGetResponseReturns(value: object): value is ReturnsRfbsGetResponseReturns; +export declare function ReturnsRfbsGetResponseReturnsFromJSON(json: any): ReturnsRfbsGetResponseReturns; +export declare function ReturnsRfbsGetResponseReturnsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetResponseReturns; +export declare function ReturnsRfbsGetResponseReturnsToJSON(value?: ReturnsRfbsGetResponseReturns | null): any; diff --git a/dist/models/ReturnsRfbsGetResponseReturns.js b/dist/models/ReturnsRfbsGetResponseReturns.js new file mode 100644 index 0000000..323ebcf --- /dev/null +++ b/dist/models/ReturnsRfbsGetResponseReturns.js @@ -0,0 +1,82 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsRfbsGetResponseReturns = instanceOfReturnsRfbsGetResponseReturns; +exports.ReturnsRfbsGetResponseReturnsFromJSON = ReturnsRfbsGetResponseReturnsFromJSON; +exports.ReturnsRfbsGetResponseReturnsFromJSONTyped = ReturnsRfbsGetResponseReturnsFromJSONTyped; +exports.ReturnsRfbsGetResponseReturnsToJSON = ReturnsRfbsGetResponseReturnsToJSON; +const ReturnsRfbsGetV2ResponseAvailableAction_1 = require("./ReturnsRfbsGetV2ResponseAvailableAction"); +const ReturnsRfbsGetV2ResponseReturnReason_1 = require("./ReturnsRfbsGetV2ResponseReturnReason"); +const ReturnsRfbsGetV2ResponseClientReturnMethodType_1 = require("./ReturnsRfbsGetV2ResponseClientReturnMethodType"); +const V2ReturnsRfbsGetV2ResponseState_1 = require("./V2ReturnsRfbsGetV2ResponseState"); +const V2Product_1 = require("./V2Product"); +const ReturnsRfbsGetV2ResponseRejectionReason_1 = require("./ReturnsRfbsGetV2ResponseRejectionReason"); +/** + * Check if a given object implements the ReturnsRfbsGetResponseReturns interface. + */ +function instanceOfReturnsRfbsGetResponseReturns(value) { + return true; +} +function ReturnsRfbsGetResponseReturnsFromJSON(json) { + return ReturnsRfbsGetResponseReturnsFromJSONTyped(json, false); +} +function ReturnsRfbsGetResponseReturnsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_actions': json['available_actions'] == null ? undefined : (json['available_actions'].map(ReturnsRfbsGetV2ResponseAvailableAction_1.ReturnsRfbsGetV2ResponseAvailableActionFromJSON)), + 'client_name': json['client_name'] == null ? undefined : json['client_name'], + 'client_photo': json['client_photo'] == null ? undefined : json['client_photo'], + 'client_return_method_type': json['client_return_method_type'] == null ? undefined : (0, ReturnsRfbsGetV2ResponseClientReturnMethodType_1.ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON)(json['client_return_method_type']), + 'comment': json['comment'] == null ? undefined : json['comment'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'product': json['product'] == null ? undefined : (0, V2Product_1.V2ProductFromJSON)(json['product']), + 'rejection_comment': json['rejection_comment'] == null ? undefined : json['rejection_comment'], + 'rejection_reason': json['rejection_reason'] == null ? undefined : (json['rejection_reason'].map(ReturnsRfbsGetV2ResponseRejectionReason_1.ReturnsRfbsGetV2ResponseRejectionReasonFromJSON)), + 'return_method_description': json['return_method_description'] == null ? undefined : json['return_method_description'], + 'return_number': json['return_number'] == null ? undefined : json['return_number'], + 'return_reason': json['return_reason'] == null ? undefined : (0, ReturnsRfbsGetV2ResponseReturnReason_1.ReturnsRfbsGetV2ResponseReturnReasonFromJSON)(json['return_reason']), + 'ru_post_tracking_number': json['ru_post_tracking_number'] == null ? undefined : json['ru_post_tracking_number'], + 'state': json['state'] == null ? undefined : (0, V2ReturnsRfbsGetV2ResponseState_1.V2ReturnsRfbsGetV2ResponseStateFromJSON)(json['state']), + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function ReturnsRfbsGetResponseReturnsToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_actions': value['available_actions'] == null ? undefined : (value['available_actions'].map(ReturnsRfbsGetV2ResponseAvailableAction_1.ReturnsRfbsGetV2ResponseAvailableActionToJSON)), + 'client_name': value['client_name'], + 'client_photo': value['client_photo'], + 'client_return_method_type': (0, ReturnsRfbsGetV2ResponseClientReturnMethodType_1.ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON)(value['client_return_method_type']), + 'comment': value['comment'], + 'created_at': value['created_at'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'product': (0, V2Product_1.V2ProductToJSON)(value['product']), + 'rejection_comment': value['rejection_comment'], + 'rejection_reason': value['rejection_reason'] == null ? undefined : (value['rejection_reason'].map(ReturnsRfbsGetV2ResponseRejectionReason_1.ReturnsRfbsGetV2ResponseRejectionReasonToJSON)), + 'return_method_description': value['return_method_description'], + 'return_number': value['return_number'], + 'return_reason': (0, ReturnsRfbsGetV2ResponseReturnReason_1.ReturnsRfbsGetV2ResponseReturnReasonToJSON)(value['return_reason']), + 'ru_post_tracking_number': value['ru_post_tracking_number'], + 'state': (0, V2ReturnsRfbsGetV2ResponseState_1.V2ReturnsRfbsGetV2ResponseStateToJSON)(value['state']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/ReturnsRfbsGetV2ResponseAvailableAction.d.ts b/dist/models/ReturnsRfbsGetV2ResponseAvailableAction.d.ts new file mode 100644 index 0000000..f8709ab --- /dev/null +++ b/dist/models/ReturnsRfbsGetV2ResponseAvailableAction.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReturnsRfbsGetV2ResponseAvailableAction + */ +export interface ReturnsRfbsGetV2ResponseAvailableAction { + /** + * Идентификатор действия. + * @type {number} + * @memberof ReturnsRfbsGetV2ResponseAvailableAction + */ + id?: number; + /** + * Название действия. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseAvailableAction + */ + name?: string; +} +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseAvailableAction interface. + */ +export declare function instanceOfReturnsRfbsGetV2ResponseAvailableAction(value: object): value is ReturnsRfbsGetV2ResponseAvailableAction; +export declare function ReturnsRfbsGetV2ResponseAvailableActionFromJSON(json: any): ReturnsRfbsGetV2ResponseAvailableAction; +export declare function ReturnsRfbsGetV2ResponseAvailableActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetV2ResponseAvailableAction; +export declare function ReturnsRfbsGetV2ResponseAvailableActionToJSON(value?: ReturnsRfbsGetV2ResponseAvailableAction | null): any; diff --git a/dist/models/ReturnsRfbsGetV2ResponseAvailableAction.js b/dist/models/ReturnsRfbsGetV2ResponseAvailableAction.js new file mode 100644 index 0000000..544f398 --- /dev/null +++ b/dist/models/ReturnsRfbsGetV2ResponseAvailableAction.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsRfbsGetV2ResponseAvailableAction = instanceOfReturnsRfbsGetV2ResponseAvailableAction; +exports.ReturnsRfbsGetV2ResponseAvailableActionFromJSON = ReturnsRfbsGetV2ResponseAvailableActionFromJSON; +exports.ReturnsRfbsGetV2ResponseAvailableActionFromJSONTyped = ReturnsRfbsGetV2ResponseAvailableActionFromJSONTyped; +exports.ReturnsRfbsGetV2ResponseAvailableActionToJSON = ReturnsRfbsGetV2ResponseAvailableActionToJSON; +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseAvailableAction interface. + */ +function instanceOfReturnsRfbsGetV2ResponseAvailableAction(value) { + return true; +} +function ReturnsRfbsGetV2ResponseAvailableActionFromJSON(json) { + return ReturnsRfbsGetV2ResponseAvailableActionFromJSONTyped(json, false); +} +function ReturnsRfbsGetV2ResponseAvailableActionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function ReturnsRfbsGetV2ResponseAvailableActionToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.d.ts b/dist/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.d.ts new file mode 100644 index 0000000..61e177d --- /dev/null +++ b/dist/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о способе возврата. + * @export + * @interface ReturnsRfbsGetV2ResponseClientReturnMethodType + */ +export interface ReturnsRfbsGetV2ResponseClientReturnMethodType { + /** + * Идентификатор. + * @type {number} + * @memberof ReturnsRfbsGetV2ResponseClientReturnMethodType + */ + id?: number; + /** + * Название. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseClientReturnMethodType + */ + name?: string; +} +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseClientReturnMethodType interface. + */ +export declare function instanceOfReturnsRfbsGetV2ResponseClientReturnMethodType(value: object): value is ReturnsRfbsGetV2ResponseClientReturnMethodType; +export declare function ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON(json: any): ReturnsRfbsGetV2ResponseClientReturnMethodType; +export declare function ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetV2ResponseClientReturnMethodType; +export declare function ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON(value?: ReturnsRfbsGetV2ResponseClientReturnMethodType | null): any; diff --git a/dist/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.js b/dist/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.js new file mode 100644 index 0000000..938828a --- /dev/null +++ b/dist/models/ReturnsRfbsGetV2ResponseClientReturnMethodType.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsRfbsGetV2ResponseClientReturnMethodType = instanceOfReturnsRfbsGetV2ResponseClientReturnMethodType; +exports.ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON = ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON; +exports.ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSONTyped = ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSONTyped; +exports.ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON = ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON; +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseClientReturnMethodType interface. + */ +function instanceOfReturnsRfbsGetV2ResponseClientReturnMethodType(value) { + return true; +} +function ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSON(json) { + return ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSONTyped(json, false); +} +function ReturnsRfbsGetV2ResponseClientReturnMethodTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function ReturnsRfbsGetV2ResponseClientReturnMethodTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/ReturnsRfbsGetV2ResponseRejectionReason.d.ts b/dist/models/ReturnsRfbsGetV2ResponseRejectionReason.d.ts new file mode 100644 index 0000000..ff97344 --- /dev/null +++ b/dist/models/ReturnsRfbsGetV2ResponseRejectionReason.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReturnsRfbsGetV2ResponseRejectionReason + */ +export interface ReturnsRfbsGetV2ResponseRejectionReason { + /** + * Подсказка о дальнейших действиях с возвратом. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseRejectionReason + */ + hint?: string; + /** + * Идентификатор причины. + * @type {number} + * @memberof ReturnsRfbsGetV2ResponseRejectionReason + */ + id?: number; + /** + * Признак, нужно ли прикладывать комментарий. + * @type {boolean} + * @memberof ReturnsRfbsGetV2ResponseRejectionReason + */ + is_comment_required?: boolean; + /** + * Описание причины. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseRejectionReason + */ + name?: string; +} +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseRejectionReason interface. + */ +export declare function instanceOfReturnsRfbsGetV2ResponseRejectionReason(value: object): value is ReturnsRfbsGetV2ResponseRejectionReason; +export declare function ReturnsRfbsGetV2ResponseRejectionReasonFromJSON(json: any): ReturnsRfbsGetV2ResponseRejectionReason; +export declare function ReturnsRfbsGetV2ResponseRejectionReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetV2ResponseRejectionReason; +export declare function ReturnsRfbsGetV2ResponseRejectionReasonToJSON(value?: ReturnsRfbsGetV2ResponseRejectionReason | null): any; diff --git a/dist/models/ReturnsRfbsGetV2ResponseRejectionReason.js b/dist/models/ReturnsRfbsGetV2ResponseRejectionReason.js new file mode 100644 index 0000000..cbba5f9 --- /dev/null +++ b/dist/models/ReturnsRfbsGetV2ResponseRejectionReason.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsRfbsGetV2ResponseRejectionReason = instanceOfReturnsRfbsGetV2ResponseRejectionReason; +exports.ReturnsRfbsGetV2ResponseRejectionReasonFromJSON = ReturnsRfbsGetV2ResponseRejectionReasonFromJSON; +exports.ReturnsRfbsGetV2ResponseRejectionReasonFromJSONTyped = ReturnsRfbsGetV2ResponseRejectionReasonFromJSONTyped; +exports.ReturnsRfbsGetV2ResponseRejectionReasonToJSON = ReturnsRfbsGetV2ResponseRejectionReasonToJSON; +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseRejectionReason interface. + */ +function instanceOfReturnsRfbsGetV2ResponseRejectionReason(value) { + return true; +} +function ReturnsRfbsGetV2ResponseRejectionReasonFromJSON(json) { + return ReturnsRfbsGetV2ResponseRejectionReasonFromJSONTyped(json, false); +} +function ReturnsRfbsGetV2ResponseRejectionReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'hint': json['hint'] == null ? undefined : json['hint'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_comment_required': json['is_comment_required'] == null ? undefined : json['is_comment_required'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function ReturnsRfbsGetV2ResponseRejectionReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'hint': value['hint'], + 'id': value['id'], + 'is_comment_required': value['is_comment_required'], + 'name': value['name'], + }; +} diff --git a/dist/models/ReturnsRfbsGetV2ResponseReturnReason.d.ts b/dist/models/ReturnsRfbsGetV2ResponseReturnReason.d.ts new file mode 100644 index 0000000..7b2aa65 --- /dev/null +++ b/dist/models/ReturnsRfbsGetV2ResponseReturnReason.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о причине возврата. + * @export + * @interface ReturnsRfbsGetV2ResponseReturnReason + */ +export interface ReturnsRfbsGetV2ResponseReturnReason { + /** + * Идентификатор причины. + * @type {number} + * @memberof ReturnsRfbsGetV2ResponseReturnReason + */ + id?: number; + /** + * Признак, является ли товар бракованным. + * @type {boolean} + * @memberof ReturnsRfbsGetV2ResponseReturnReason + */ + is_defect?: boolean; + /** + * Описание причины. + * @type {string} + * @memberof ReturnsRfbsGetV2ResponseReturnReason + */ + name?: string; +} +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseReturnReason interface. + */ +export declare function instanceOfReturnsRfbsGetV2ResponseReturnReason(value: object): value is ReturnsRfbsGetV2ResponseReturnReason; +export declare function ReturnsRfbsGetV2ResponseReturnReasonFromJSON(json: any): ReturnsRfbsGetV2ResponseReturnReason; +export declare function ReturnsRfbsGetV2ResponseReturnReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsGetV2ResponseReturnReason; +export declare function ReturnsRfbsGetV2ResponseReturnReasonToJSON(value?: ReturnsRfbsGetV2ResponseReturnReason | null): any; diff --git a/dist/models/ReturnsRfbsGetV2ResponseReturnReason.js b/dist/models/ReturnsRfbsGetV2ResponseReturnReason.js new file mode 100644 index 0000000..7e5760a --- /dev/null +++ b/dist/models/ReturnsRfbsGetV2ResponseReturnReason.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsRfbsGetV2ResponseReturnReason = instanceOfReturnsRfbsGetV2ResponseReturnReason; +exports.ReturnsRfbsGetV2ResponseReturnReasonFromJSON = ReturnsRfbsGetV2ResponseReturnReasonFromJSON; +exports.ReturnsRfbsGetV2ResponseReturnReasonFromJSONTyped = ReturnsRfbsGetV2ResponseReturnReasonFromJSONTyped; +exports.ReturnsRfbsGetV2ResponseReturnReasonToJSON = ReturnsRfbsGetV2ResponseReturnReasonToJSON; +/** + * Check if a given object implements the ReturnsRfbsGetV2ResponseReturnReason interface. + */ +function instanceOfReturnsRfbsGetV2ResponseReturnReason(value) { + return true; +} +function ReturnsRfbsGetV2ResponseReturnReasonFromJSON(json) { + return ReturnsRfbsGetV2ResponseReturnReasonFromJSONTyped(json, false); +} +function ReturnsRfbsGetV2ResponseReturnReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'is_defect': json['is_defect'] == null ? undefined : json['is_defect'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function ReturnsRfbsGetV2ResponseReturnReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'is_defect': value['is_defect'], + 'name': value['name'], + }; +} diff --git a/dist/models/ReturnsRfbsListResponseReturns.d.ts b/dist/models/ReturnsRfbsListResponseReturns.d.ts new file mode 100644 index 0000000..0ae0f54 --- /dev/null +++ b/dist/models/ReturnsRfbsListResponseReturns.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ReturnsRfbsListV2ResponseState } from './V2ReturnsRfbsListV2ResponseState'; +import type { V2Product } from './V2Product'; +/** + * Данные о заявках. + * @export + * @interface ReturnsRfbsListResponseReturns + */ +export interface ReturnsRfbsListResponseReturns { + /** + * Имя покупателя. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + * @deprecated + */ + client_name?: string; + /** + * Дата создания заявки. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + */ + created_at?: string; + /** + * Номер заказа. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + */ + posting_number?: string; + /** + * + * @type {V2Product} + * @memberof ReturnsRfbsListResponseReturns + */ + product?: V2Product; + /** + * Идентификатор заявки на возврат. + * @type {number} + * @memberof ReturnsRfbsListResponseReturns + */ + return_id?: number; + /** + * Номер заявки на возврат. + * @type {string} + * @memberof ReturnsRfbsListResponseReturns + */ + return_number?: string; + /** + * + * @type {V2ReturnsRfbsListV2ResponseState} + * @memberof ReturnsRfbsListResponseReturns + */ + state?: V2ReturnsRfbsListV2ResponseState; +} +/** + * Check if a given object implements the ReturnsRfbsListResponseReturns interface. + */ +export declare function instanceOfReturnsRfbsListResponseReturns(value: object): value is ReturnsRfbsListResponseReturns; +export declare function ReturnsRfbsListResponseReturnsFromJSON(json: any): ReturnsRfbsListResponseReturns; +export declare function ReturnsRfbsListResponseReturnsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsRfbsListResponseReturns; +export declare function ReturnsRfbsListResponseReturnsToJSON(value?: ReturnsRfbsListResponseReturns | null): any; diff --git a/dist/models/ReturnsRfbsListResponseReturns.js b/dist/models/ReturnsRfbsListResponseReturns.js new file mode 100644 index 0000000..f40ad2c --- /dev/null +++ b/dist/models/ReturnsRfbsListResponseReturns.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsRfbsListResponseReturns = instanceOfReturnsRfbsListResponseReturns; +exports.ReturnsRfbsListResponseReturnsFromJSON = ReturnsRfbsListResponseReturnsFromJSON; +exports.ReturnsRfbsListResponseReturnsFromJSONTyped = ReturnsRfbsListResponseReturnsFromJSONTyped; +exports.ReturnsRfbsListResponseReturnsToJSON = ReturnsRfbsListResponseReturnsToJSON; +const V2ReturnsRfbsListV2ResponseState_1 = require("./V2ReturnsRfbsListV2ResponseState"); +const V2Product_1 = require("./V2Product"); +/** + * Check if a given object implements the ReturnsRfbsListResponseReturns interface. + */ +function instanceOfReturnsRfbsListResponseReturns(value) { + return true; +} +function ReturnsRfbsListResponseReturnsFromJSON(json) { + return ReturnsRfbsListResponseReturnsFromJSONTyped(json, false); +} +function ReturnsRfbsListResponseReturnsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'client_name': json['client_name'] == null ? undefined : json['client_name'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'product': json['product'] == null ? undefined : (0, V2Product_1.V2ProductFromJSON)(json['product']), + 'return_id': json['return_id'] == null ? undefined : json['return_id'], + 'return_number': json['return_number'] == null ? undefined : json['return_number'], + 'state': json['state'] == null ? undefined : (0, V2ReturnsRfbsListV2ResponseState_1.V2ReturnsRfbsListV2ResponseStateFromJSON)(json['state']), + }; +} +function ReturnsRfbsListResponseReturnsToJSON(value) { + if (value == null) { + return value; + } + return { + 'client_name': value['client_name'], + 'created_at': value['created_at'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'product': (0, V2Product_1.V2ProductToJSON)(value['product']), + 'return_id': value['return_id'], + 'return_number': value['return_number'], + 'state': (0, V2ReturnsRfbsListV2ResponseState_1.V2ReturnsRfbsListV2ResponseStateToJSON)(value['state']), + }; +} diff --git a/dist/models/ReturnsSettingsUtilizationHistoryResponseHistory.d.ts b/dist/models/ReturnsSettingsUtilizationHistoryResponseHistory.d.ts new file mode 100644 index 0000000..83538f0 --- /dev/null +++ b/dist/models/ReturnsSettingsUtilizationHistoryResponseHistory.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReturnsSettingsUtilizationHistoryResponseHistory + */ +export interface ReturnsSettingsUtilizationHistoryResponseHistory { + /** + * Описание события. + * @type {Array} + * @memberof ReturnsSettingsUtilizationHistoryResponseHistory + */ + descriptions?: Array; + /** + * Дата обновления. + * @type {string} + * @memberof ReturnsSettingsUtilizationHistoryResponseHistory + */ + updated_at?: string; + /** + * Имя пользователя. + * @type {string} + * @memberof ReturnsSettingsUtilizationHistoryResponseHistory + */ + user_name?: string; +} +/** + * Check if a given object implements the ReturnsSettingsUtilizationHistoryResponseHistory interface. + */ +export declare function instanceOfReturnsSettingsUtilizationHistoryResponseHistory(value: object): value is ReturnsSettingsUtilizationHistoryResponseHistory; +export declare function ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON(json: any): ReturnsSettingsUtilizationHistoryResponseHistory; +export declare function ReturnsSettingsUtilizationHistoryResponseHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsSettingsUtilizationHistoryResponseHistory; +export declare function ReturnsSettingsUtilizationHistoryResponseHistoryToJSON(value?: ReturnsSettingsUtilizationHistoryResponseHistory | null): any; diff --git a/dist/models/ReturnsSettingsUtilizationHistoryResponseHistory.js b/dist/models/ReturnsSettingsUtilizationHistoryResponseHistory.js new file mode 100644 index 0000000..5704a00 --- /dev/null +++ b/dist/models/ReturnsSettingsUtilizationHistoryResponseHistory.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsSettingsUtilizationHistoryResponseHistory = instanceOfReturnsSettingsUtilizationHistoryResponseHistory; +exports.ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON = ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON; +exports.ReturnsSettingsUtilizationHistoryResponseHistoryFromJSONTyped = ReturnsSettingsUtilizationHistoryResponseHistoryFromJSONTyped; +exports.ReturnsSettingsUtilizationHistoryResponseHistoryToJSON = ReturnsSettingsUtilizationHistoryResponseHistoryToJSON; +/** + * Check if a given object implements the ReturnsSettingsUtilizationHistoryResponseHistory interface. + */ +function instanceOfReturnsSettingsUtilizationHistoryResponseHistory(value) { + return true; +} +function ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON(json) { + return ReturnsSettingsUtilizationHistoryResponseHistoryFromJSONTyped(json, false); +} +function ReturnsSettingsUtilizationHistoryResponseHistoryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'descriptions': json['descriptions'] == null ? undefined : json['descriptions'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'user_name': json['user_name'] == null ? undefined : json['user_name'], + }; +} +function ReturnsSettingsUtilizationHistoryResponseHistoryToJSON(value) { + if (value == null) { + return value; + } + return { + 'descriptions': value['descriptions'], + 'updated_at': value['updated_at'], + 'user_name': value['user_name'], + }; +} diff --git a/dist/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.d.ts b/dist/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.d.ts new file mode 100644 index 0000000..df50c57 --- /dev/null +++ b/dist/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UtilizationMoney } from './UtilizationMoney'; +import type { UtilizationDefectsMoney } from './UtilizationDefectsMoney'; +/** + * Настройки утилизации. + * @export + * @interface ReturnsSettingsUtilizationInfoResponseUtilizationSettings + */ +export interface ReturnsSettingsUtilizationInfoResponseUtilizationSettings { + /** + * + * @type {UtilizationMoney} + * @memberof ReturnsSettingsUtilizationInfoResponseUtilizationSettings + */ + utilization_price?: UtilizationMoney; + /** + * + * @type {UtilizationDefectsMoney} + * @memberof ReturnsSettingsUtilizationInfoResponseUtilizationSettings + */ + utilization_price_defects?: UtilizationDefectsMoney; +} +/** + * Check if a given object implements the ReturnsSettingsUtilizationInfoResponseUtilizationSettings interface. + */ +export declare function instanceOfReturnsSettingsUtilizationInfoResponseUtilizationSettings(value: object): value is ReturnsSettingsUtilizationInfoResponseUtilizationSettings; +export declare function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON(json: any): ReturnsSettingsUtilizationInfoResponseUtilizationSettings; +export declare function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsSettingsUtilizationInfoResponseUtilizationSettings; +export declare function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON(value?: ReturnsSettingsUtilizationInfoResponseUtilizationSettings | null): any; diff --git a/dist/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.js b/dist/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.js new file mode 100644 index 0000000..9f0cf22 --- /dev/null +++ b/dist/models/ReturnsSettingsUtilizationInfoResponseUtilizationSettings.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsSettingsUtilizationInfoResponseUtilizationSettings = instanceOfReturnsSettingsUtilizationInfoResponseUtilizationSettings; +exports.ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON = ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON; +exports.ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSONTyped = ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSONTyped; +exports.ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON = ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON; +const UtilizationMoney_1 = require("./UtilizationMoney"); +const UtilizationDefectsMoney_1 = require("./UtilizationDefectsMoney"); +/** + * Check if a given object implements the ReturnsSettingsUtilizationInfoResponseUtilizationSettings interface. + */ +function instanceOfReturnsSettingsUtilizationInfoResponseUtilizationSettings(value) { + return true; +} +function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON(json) { + return ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSONTyped(json, false); +} +function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'utilization_price': json['utilization_price'] == null ? undefined : (0, UtilizationMoney_1.UtilizationMoneyFromJSON)(json['utilization_price']), + 'utilization_price_defects': json['utilization_price_defects'] == null ? undefined : (0, UtilizationDefectsMoney_1.UtilizationDefectsMoneyFromJSON)(json['utilization_price_defects']), + }; +} +function ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'utilization_price': (0, UtilizationMoney_1.UtilizationMoneyToJSON)(value['utilization_price']), + 'utilization_price_defects': (0, UtilizationDefectsMoney_1.UtilizationDefectsMoneyToJSON)(value['utilization_price_defects']), + }; +} diff --git a/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.d.ts b/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.d.ts new file mode 100644 index 0000000..4857b10 --- /dev/null +++ b/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Максимальная цена автоутилизации для товаров без дефектов. + * @export + * @interface ReturnsSettingsUtilizationUpdateRequestUtilizationPrice + */ +export interface ReturnsSettingsUtilizationUpdateRequestUtilizationPrice { + /** + * `true`, если автоутилизация для товаров без дефектов включена. + * + * @type {boolean} + * @memberof ReturnsSettingsUtilizationUpdateRequestUtilizationPrice + */ + enabled: boolean; + /** + * Значение цены. Параметр обязательный, если `enabled = true`. + * @type {number} + * @memberof ReturnsSettingsUtilizationUpdateRequestUtilizationPrice + */ + value?: number; +} +/** + * Check if a given object implements the ReturnsSettingsUtilizationUpdateRequestUtilizationPrice interface. + */ +export declare function instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPrice(value: object): value is ReturnsSettingsUtilizationUpdateRequestUtilizationPrice; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON(json: any): ReturnsSettingsUtilizationUpdateRequestUtilizationPrice; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsSettingsUtilizationUpdateRequestUtilizationPrice; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON(value?: ReturnsSettingsUtilizationUpdateRequestUtilizationPrice | null): any; diff --git a/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.js b/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.js new file mode 100644 index 0000000..51e4c94 --- /dev/null +++ b/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPrice.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPrice = instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPrice; +exports.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON = ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON; +exports.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSONTyped = ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSONTyped; +exports.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON = ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON; +/** + * Check if a given object implements the ReturnsSettingsUtilizationUpdateRequestUtilizationPrice interface. + */ +function instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPrice(value) { + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + return true; +} +function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON(json) { + return ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSONTyped(json, false); +} +function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'value': value['value'], + }; +} diff --git a/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.d.ts b/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.d.ts new file mode 100644 index 0000000..9ab1679 --- /dev/null +++ b/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Максимальная цена автоутилизации для товаров с дефектами. + * @export + * @interface ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects + */ +export interface ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects { + /** + * `true`, если автоутилизация для товаров с дефектами включена. + * + * @type {boolean} + * @memberof ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects + */ + enabled: boolean; + /** + * Значение цены. Параметр обязательный, если `enabled = true`. + * @type {number} + * @memberof ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects + */ + value?: number; +} +/** + * Check if a given object implements the ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects interface. + */ +export declare function instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects(value: object): value is ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON(json: any): ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +export declare function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON(value?: ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects | null): any; diff --git a/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.js b/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.js new file mode 100644 index 0000000..7a48898 --- /dev/null +++ b/dist/models/ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects = instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +exports.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON = ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON; +exports.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSONTyped = ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSONTyped; +exports.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON = ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON; +/** + * Check if a given object implements the ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects interface. + */ +function instanceOfReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects(value) { + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + return true; +} +function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON(json) { + return ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSONTyped(json, false); +} +function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'value': value['value'], + }; +} diff --git a/dist/models/ReviewInfoResponsePhoto.d.ts b/dist/models/ReviewInfoResponsePhoto.d.ts new file mode 100644 index 0000000..2d7059c --- /dev/null +++ b/dist/models/ReviewInfoResponsePhoto.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewInfoResponsePhoto + */ +export interface ReviewInfoResponsePhoto { + /** + * Высота. + * @type {number} + * @memberof ReviewInfoResponsePhoto + */ + height?: number; + /** + * Ссылка на изображение. + * @type {string} + * @memberof ReviewInfoResponsePhoto + */ + url?: string; + /** + * Ширина. + * @type {number} + * @memberof ReviewInfoResponsePhoto + */ + width?: number; +} +/** + * Check if a given object implements the ReviewInfoResponsePhoto interface. + */ +export declare function instanceOfReviewInfoResponsePhoto(value: object): value is ReviewInfoResponsePhoto; +export declare function ReviewInfoResponsePhotoFromJSON(json: any): ReviewInfoResponsePhoto; +export declare function ReviewInfoResponsePhotoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewInfoResponsePhoto; +export declare function ReviewInfoResponsePhotoToJSON(value?: ReviewInfoResponsePhoto | null): any; diff --git a/dist/models/ReviewInfoResponsePhoto.js b/dist/models/ReviewInfoResponsePhoto.js new file mode 100644 index 0000000..2b01d3c --- /dev/null +++ b/dist/models/ReviewInfoResponsePhoto.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewInfoResponsePhoto = instanceOfReviewInfoResponsePhoto; +exports.ReviewInfoResponsePhotoFromJSON = ReviewInfoResponsePhotoFromJSON; +exports.ReviewInfoResponsePhotoFromJSONTyped = ReviewInfoResponsePhotoFromJSONTyped; +exports.ReviewInfoResponsePhotoToJSON = ReviewInfoResponsePhotoToJSON; +/** + * Check if a given object implements the ReviewInfoResponsePhoto interface. + */ +function instanceOfReviewInfoResponsePhoto(value) { + return true; +} +function ReviewInfoResponsePhotoFromJSON(json) { + return ReviewInfoResponsePhotoFromJSONTyped(json, false); +} +function ReviewInfoResponsePhotoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'url': json['url'] == null ? undefined : json['url'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function ReviewInfoResponsePhotoToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'url': value['url'], + 'width': value['width'], + }; +} diff --git a/dist/models/ReviewInfoResponseVideo.d.ts b/dist/models/ReviewInfoResponseVideo.d.ts new file mode 100644 index 0000000..da94891 --- /dev/null +++ b/dist/models/ReviewInfoResponseVideo.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewInfoResponseVideo + */ +export interface ReviewInfoResponseVideo { + /** + * Высота. + * @type {number} + * @memberof ReviewInfoResponseVideo + */ + height?: number; + /** + * Ссылка на превью видео. + * @type {string} + * @memberof ReviewInfoResponseVideo + */ + preview_url?: string; + /** + * Ссылка на короткое видео. + * @type {string} + * @memberof ReviewInfoResponseVideo + */ + short_video_preview_url?: string; + /** + * Ссылка на видео. + * @type {string} + * @memberof ReviewInfoResponseVideo + */ + url?: string; + /** + * Ширина. + * @type {number} + * @memberof ReviewInfoResponseVideo + */ + width?: number; +} +/** + * Check if a given object implements the ReviewInfoResponseVideo interface. + */ +export declare function instanceOfReviewInfoResponseVideo(value: object): value is ReviewInfoResponseVideo; +export declare function ReviewInfoResponseVideoFromJSON(json: any): ReviewInfoResponseVideo; +export declare function ReviewInfoResponseVideoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewInfoResponseVideo; +export declare function ReviewInfoResponseVideoToJSON(value?: ReviewInfoResponseVideo | null): any; diff --git a/dist/models/ReviewInfoResponseVideo.js b/dist/models/ReviewInfoResponseVideo.js new file mode 100644 index 0000000..68ffc90 --- /dev/null +++ b/dist/models/ReviewInfoResponseVideo.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewInfoResponseVideo = instanceOfReviewInfoResponseVideo; +exports.ReviewInfoResponseVideoFromJSON = ReviewInfoResponseVideoFromJSON; +exports.ReviewInfoResponseVideoFromJSONTyped = ReviewInfoResponseVideoFromJSONTyped; +exports.ReviewInfoResponseVideoToJSON = ReviewInfoResponseVideoToJSON; +/** + * Check if a given object implements the ReviewInfoResponseVideo interface. + */ +function instanceOfReviewInfoResponseVideo(value) { + return true; +} +function ReviewInfoResponseVideoFromJSON(json) { + return ReviewInfoResponseVideoFromJSONTyped(json, false); +} +function ReviewInfoResponseVideoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'preview_url': json['preview_url'] == null ? undefined : json['preview_url'], + 'short_video_preview_url': json['short_video_preview_url'] == null ? undefined : json['short_video_preview_url'], + 'url': json['url'] == null ? undefined : json['url'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function ReviewInfoResponseVideoToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'preview_url': value['preview_url'], + 'short_video_preview_url': value['short_video_preview_url'], + 'url': value['url'], + 'width': value['width'], + }; +} diff --git a/dist/models/ReviewListResponseReview.d.ts b/dist/models/ReviewListResponseReview.d.ts new file mode 100644 index 0000000..aaca284 --- /dev/null +++ b/dist/models/ReviewListResponseReview.d.ts @@ -0,0 +1,98 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewListResponseReview + */ +export interface ReviewListResponseReview { + /** + * Количество комментариев у отзыва. + * @type {number} + * @memberof ReviewListResponseReview + */ + comments_amount?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof ReviewListResponseReview + */ + id?: string; + /** + * `true`, если отзыв участвует в подсчёте рейтинга. + * + * @type {boolean} + * @memberof ReviewListResponseReview + */ + is_rating_participant?: boolean; + /** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен, + * - `CANCELLED` — отменён. + * + * @type {string} + * @memberof ReviewListResponseReview + */ + order_status?: string; + /** + * Количество изображений у отзыва. + * @type {number} + * @memberof ReviewListResponseReview + */ + photos_amount?: number; + /** + * Дата публикации отзыва. + * @type {string} + * @memberof ReviewListResponseReview + */ + published_at?: string; + /** + * Оценка отзыва. + * @type {number} + * @memberof ReviewListResponseReview + */ + rating?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewListResponseReview + */ + sku?: number; + /** + * Статус отзыва: + * - `UNPROCESSED` — не обработан, + * - `PROCESSED` — обработан. + * + * @type {string} + * @memberof ReviewListResponseReview + */ + status?: string; + /** + * Текст отзыва. + * @type {string} + * @memberof ReviewListResponseReview + */ + text?: string; + /** + * Количество видео у отзыва. + * @type {number} + * @memberof ReviewListResponseReview + */ + videos_amount?: number; +} +/** + * Check if a given object implements the ReviewListResponseReview interface. + */ +export declare function instanceOfReviewListResponseReview(value: object): value is ReviewListResponseReview; +export declare function ReviewListResponseReviewFromJSON(json: any): ReviewListResponseReview; +export declare function ReviewListResponseReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewListResponseReview; +export declare function ReviewListResponseReviewToJSON(value?: ReviewListResponseReview | null): any; diff --git a/dist/models/ReviewListResponseReview.js b/dist/models/ReviewListResponseReview.js new file mode 100644 index 0000000..3b3df18 --- /dev/null +++ b/dist/models/ReviewListResponseReview.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewListResponseReview = instanceOfReviewListResponseReview; +exports.ReviewListResponseReviewFromJSON = ReviewListResponseReviewFromJSON; +exports.ReviewListResponseReviewFromJSONTyped = ReviewListResponseReviewFromJSONTyped; +exports.ReviewListResponseReviewToJSON = ReviewListResponseReviewToJSON; +/** + * Check if a given object implements the ReviewListResponseReview interface. + */ +function instanceOfReviewListResponseReview(value) { + return true; +} +function ReviewListResponseReviewFromJSON(json) { + return ReviewListResponseReviewFromJSONTyped(json, false); +} +function ReviewListResponseReviewFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], + 'order_status': json['order_status'] == null ? undefined : json['order_status'], + 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : json['status'], + 'text': json['text'] == null ? undefined : json['text'], + 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], + }; +} +function ReviewListResponseReviewToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments_amount': value['comments_amount'], + 'id': value['id'], + 'is_rating_participant': value['is_rating_participant'], + 'order_status': value['order_status'], + 'photos_amount': value['photos_amount'], + 'published_at': value['published_at'], + 'rating': value['rating'], + 'sku': value['sku'], + 'status': value['status'], + 'text': value['text'], + 'videos_amount': value['videos_amount'], + }; +} diff --git a/dist/models/ReviewV1CommentListRequestFilter.d.ts b/dist/models/ReviewV1CommentListRequestFilter.d.ts new file mode 100644 index 0000000..4ebcd34 --- /dev/null +++ b/dist/models/ReviewV1CommentListRequestFilter.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтры для поиска отзывов. + * @export + * @interface ReviewV1CommentListRequestFilter + */ +export interface ReviewV1CommentListRequestFilter { + /** + * Начало периода. Вернутся отзывы, которые созданы после этой даты. + * @type {string} + * @memberof ReviewV1CommentListRequestFilter + */ + published_from?: string; + /** + * Конец периода. Вернутся отзывы, которые созданы до этой даты. + * @type {string} + * @memberof ReviewV1CommentListRequestFilter + */ + published_to?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewV1CommentListRequestFilter + */ + sku?: number; +} +/** + * Check if a given object implements the ReviewV1CommentListRequestFilter interface. + */ +export declare function instanceOfReviewV1CommentListRequestFilter(value: object): value is ReviewV1CommentListRequestFilter; +export declare function ReviewV1CommentListRequestFilterFromJSON(json: any): ReviewV1CommentListRequestFilter; +export declare function ReviewV1CommentListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV1CommentListRequestFilter; +export declare function ReviewV1CommentListRequestFilterToJSON(value?: ReviewV1CommentListRequestFilter | null): any; diff --git a/dist/models/ReviewV1CommentListRequestFilter.js b/dist/models/ReviewV1CommentListRequestFilter.js new file mode 100644 index 0000000..206cbd2 --- /dev/null +++ b/dist/models/ReviewV1CommentListRequestFilter.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV1CommentListRequestFilter = instanceOfReviewV1CommentListRequestFilter; +exports.ReviewV1CommentListRequestFilterFromJSON = ReviewV1CommentListRequestFilterFromJSON; +exports.ReviewV1CommentListRequestFilterFromJSONTyped = ReviewV1CommentListRequestFilterFromJSONTyped; +exports.ReviewV1CommentListRequestFilterToJSON = ReviewV1CommentListRequestFilterToJSON; +/** + * Check if a given object implements the ReviewV1CommentListRequestFilter interface. + */ +function instanceOfReviewV1CommentListRequestFilter(value) { + return true; +} +function ReviewV1CommentListRequestFilterFromJSON(json) { + return ReviewV1CommentListRequestFilterFromJSONTyped(json, false); +} +function ReviewV1CommentListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'published_from': json['published_from'] == null ? undefined : json['published_from'], + 'published_to': json['published_to'] == null ? undefined : json['published_to'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function ReviewV1CommentListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'published_from': value['published_from'], + 'published_to': value['published_to'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/ReviewV2ReviewChangeStatusV2Request.d.ts b/dist/models/ReviewV2ReviewChangeStatusV2Request.d.ts new file mode 100644 index 0000000..fd96d38 --- /dev/null +++ b/dist/models/ReviewV2ReviewChangeStatusV2Request.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewChangeStatusV2RequestStatusEnum } from './ReviewV2ReviewChangeStatusV2RequestStatusEnum'; +/** + * + * @export + * @interface ReviewV2ReviewChangeStatusV2Request + */ +export interface ReviewV2ReviewChangeStatusV2Request { + /** + * Список идентификаторов отзывов. + * @type {Array} + * @memberof ReviewV2ReviewChangeStatusV2Request + */ + review_ids?: Array; + /** + * + * @type {ReviewV2ReviewChangeStatusV2RequestStatusEnum} + * @memberof ReviewV2ReviewChangeStatusV2Request + */ + status?: ReviewV2ReviewChangeStatusV2RequestStatusEnum; +} +/** + * Check if a given object implements the ReviewV2ReviewChangeStatusV2Request interface. + */ +export declare function instanceOfReviewV2ReviewChangeStatusV2Request(value: object): value is ReviewV2ReviewChangeStatusV2Request; +export declare function ReviewV2ReviewChangeStatusV2RequestFromJSON(json: any): ReviewV2ReviewChangeStatusV2Request; +export declare function ReviewV2ReviewChangeStatusV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewChangeStatusV2Request; +export declare function ReviewV2ReviewChangeStatusV2RequestToJSON(value?: ReviewV2ReviewChangeStatusV2Request | null): any; diff --git a/dist/models/ReviewV2ReviewChangeStatusV2Request.js b/dist/models/ReviewV2ReviewChangeStatusV2Request.js new file mode 100644 index 0000000..20e19dc --- /dev/null +++ b/dist/models/ReviewV2ReviewChangeStatusV2Request.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewChangeStatusV2Request = instanceOfReviewV2ReviewChangeStatusV2Request; +exports.ReviewV2ReviewChangeStatusV2RequestFromJSON = ReviewV2ReviewChangeStatusV2RequestFromJSON; +exports.ReviewV2ReviewChangeStatusV2RequestFromJSONTyped = ReviewV2ReviewChangeStatusV2RequestFromJSONTyped; +exports.ReviewV2ReviewChangeStatusV2RequestToJSON = ReviewV2ReviewChangeStatusV2RequestToJSON; +const ReviewV2ReviewChangeStatusV2RequestStatusEnum_1 = require("./ReviewV2ReviewChangeStatusV2RequestStatusEnum"); +/** + * Check if a given object implements the ReviewV2ReviewChangeStatusV2Request interface. + */ +function instanceOfReviewV2ReviewChangeStatusV2Request(value) { + return true; +} +function ReviewV2ReviewChangeStatusV2RequestFromJSON(json) { + return ReviewV2ReviewChangeStatusV2RequestFromJSONTyped(json, false); +} +function ReviewV2ReviewChangeStatusV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'review_ids': json['review_ids'] == null ? undefined : json['review_ids'], + 'status': json['status'] == null ? undefined : (0, ReviewV2ReviewChangeStatusV2RequestStatusEnum_1.ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON)(json['status']), + }; +} +function ReviewV2ReviewChangeStatusV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'review_ids': value['review_ids'], + 'status': (0, ReviewV2ReviewChangeStatusV2RequestStatusEnum_1.ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.d.ts b/dist/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.d.ts new file mode 100644 index 0000000..1ad8ef5 --- /dev/null +++ b/dist/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Новый статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export declare const ReviewV2ReviewChangeStatusV2RequestStatusEnum: { + readonly NEW: "NEW"; + readonly VIEWED: "VIEWED"; + readonly PROCESSED: "PROCESSED"; +}; +export type ReviewV2ReviewChangeStatusV2RequestStatusEnum = typeof ReviewV2ReviewChangeStatusV2RequestStatusEnum[keyof typeof ReviewV2ReviewChangeStatusV2RequestStatusEnum]; +export declare function instanceOfReviewV2ReviewChangeStatusV2RequestStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON(json: any): ReviewV2ReviewChangeStatusV2RequestStatusEnum; +export declare function ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewChangeStatusV2RequestStatusEnum; +export declare function ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON(value?: ReviewV2ReviewChangeStatusV2RequestStatusEnum | null): any; diff --git a/dist/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.js b/dist/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.js new file mode 100644 index 0000000..8785b87 --- /dev/null +++ b/dist/models/ReviewV2ReviewChangeStatusV2RequestStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewV2ReviewChangeStatusV2RequestStatusEnum = void 0; +exports.instanceOfReviewV2ReviewChangeStatusV2RequestStatusEnum = instanceOfReviewV2ReviewChangeStatusV2RequestStatusEnum; +exports.ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON = ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON; +exports.ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSONTyped = ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSONTyped; +exports.ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON = ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON; +/** + * Новый статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +exports.ReviewV2ReviewChangeStatusV2RequestStatusEnum = { + NEW: 'NEW', + VIEWED: 'VIEWED', + PROCESSED: 'PROCESSED' +}; +function instanceOfReviewV2ReviewChangeStatusV2RequestStatusEnum(value) { + for (const key in exports.ReviewV2ReviewChangeStatusV2RequestStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReviewV2ReviewChangeStatusV2RequestStatusEnum, key)) { + if (exports.ReviewV2ReviewChangeStatusV2RequestStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSON(json) { + return ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSONTyped(json, false); +} +function ReviewV2ReviewChangeStatusV2RequestStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReviewV2ReviewChangeStatusV2RequestStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/ReviewV2ReviewCommentDeleteV2Request.d.ts b/dist/models/ReviewV2ReviewCommentDeleteV2Request.d.ts new file mode 100644 index 0000000..8a5dc73 --- /dev/null +++ b/dist/models/ReviewV2ReviewCommentDeleteV2Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewCommentDeleteV2Request + */ +export interface ReviewV2ReviewCommentDeleteV2Request { + /** + * Идентификатор комментария. + * @type {string} + * @memberof ReviewV2ReviewCommentDeleteV2Request + */ + comment_id: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewV2ReviewCommentDeleteV2Request + */ + sku: number; +} +/** + * Check if a given object implements the ReviewV2ReviewCommentDeleteV2Request interface. + */ +export declare function instanceOfReviewV2ReviewCommentDeleteV2Request(value: object): value is ReviewV2ReviewCommentDeleteV2Request; +export declare function ReviewV2ReviewCommentDeleteV2RequestFromJSON(json: any): ReviewV2ReviewCommentDeleteV2Request; +export declare function ReviewV2ReviewCommentDeleteV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewCommentDeleteV2Request; +export declare function ReviewV2ReviewCommentDeleteV2RequestToJSON(value?: ReviewV2ReviewCommentDeleteV2Request | null): any; diff --git a/dist/models/ReviewV2ReviewCommentDeleteV2Request.js b/dist/models/ReviewV2ReviewCommentDeleteV2Request.js new file mode 100644 index 0000000..1fe5caf --- /dev/null +++ b/dist/models/ReviewV2ReviewCommentDeleteV2Request.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewCommentDeleteV2Request = instanceOfReviewV2ReviewCommentDeleteV2Request; +exports.ReviewV2ReviewCommentDeleteV2RequestFromJSON = ReviewV2ReviewCommentDeleteV2RequestFromJSON; +exports.ReviewV2ReviewCommentDeleteV2RequestFromJSONTyped = ReviewV2ReviewCommentDeleteV2RequestFromJSONTyped; +exports.ReviewV2ReviewCommentDeleteV2RequestToJSON = ReviewV2ReviewCommentDeleteV2RequestToJSON; +/** + * Check if a given object implements the ReviewV2ReviewCommentDeleteV2Request interface. + */ +function instanceOfReviewV2ReviewCommentDeleteV2Request(value) { + if (!('comment_id' in value) || value['comment_id'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function ReviewV2ReviewCommentDeleteV2RequestFromJSON(json) { + return ReviewV2ReviewCommentDeleteV2RequestFromJSONTyped(json, false); +} +function ReviewV2ReviewCommentDeleteV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment_id': json['comment_id'], + 'sku': json['sku'], + }; +} +function ReviewV2ReviewCommentDeleteV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment_id': value['comment_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/ReviewV2ReviewCountV2Response.d.ts b/dist/models/ReviewV2ReviewCountV2Response.d.ts new file mode 100644 index 0000000..8ba460a --- /dev/null +++ b/dist/models/ReviewV2ReviewCountV2Response.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewCountV2Response + */ +export interface ReviewV2ReviewCountV2Response { + /** + * Количество новых отзывов. + * @type {number} + * @memberof ReviewV2ReviewCountV2Response + */ + _new?: number; + /** + * Количество обработанных отзывов. + * @type {number} + * @memberof ReviewV2ReviewCountV2Response + */ + processed?: number; + /** + * Количество всех отзывов. + * @type {number} + * @memberof ReviewV2ReviewCountV2Response + */ + total?: number; + /** + * Количество просмотренных отзывов. + * @type {number} + * @memberof ReviewV2ReviewCountV2Response + */ + viewed?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewCountV2Response interface. + */ +export declare function instanceOfReviewV2ReviewCountV2Response(value: object): value is ReviewV2ReviewCountV2Response; +export declare function ReviewV2ReviewCountV2ResponseFromJSON(json: any): ReviewV2ReviewCountV2Response; +export declare function ReviewV2ReviewCountV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewCountV2Response; +export declare function ReviewV2ReviewCountV2ResponseToJSON(value?: ReviewV2ReviewCountV2Response | null): any; diff --git a/dist/models/ReviewV2ReviewCountV2Response.js b/dist/models/ReviewV2ReviewCountV2Response.js new file mode 100644 index 0000000..aeff557 --- /dev/null +++ b/dist/models/ReviewV2ReviewCountV2Response.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewCountV2Response = instanceOfReviewV2ReviewCountV2Response; +exports.ReviewV2ReviewCountV2ResponseFromJSON = ReviewV2ReviewCountV2ResponseFromJSON; +exports.ReviewV2ReviewCountV2ResponseFromJSONTyped = ReviewV2ReviewCountV2ResponseFromJSONTyped; +exports.ReviewV2ReviewCountV2ResponseToJSON = ReviewV2ReviewCountV2ResponseToJSON; +/** + * Check if a given object implements the ReviewV2ReviewCountV2Response interface. + */ +function instanceOfReviewV2ReviewCountV2Response(value) { + return true; +} +function ReviewV2ReviewCountV2ResponseFromJSON(json) { + return ReviewV2ReviewCountV2ResponseFromJSONTyped(json, false); +} +function ReviewV2ReviewCountV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + '_new': json['new'] == null ? undefined : json['new'], + 'processed': json['processed'] == null ? undefined : json['processed'], + 'total': json['total'] == null ? undefined : json['total'], + 'viewed': json['viewed'] == null ? undefined : json['viewed'], + }; +} +function ReviewV2ReviewCountV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'new': value['_new'], + 'processed': value['processed'], + 'total': value['total'], + 'viewed': value['viewed'], + }; +} diff --git a/dist/models/ReviewV2ReviewInfoV2Request.d.ts b/dist/models/ReviewV2ReviewInfoV2Request.d.ts new file mode 100644 index 0000000..918b070 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewInfoV2Request + */ +export interface ReviewV2ReviewInfoV2Request { + /** + * Идентификатор отзыва. + * @type {string} + * @memberof ReviewV2ReviewInfoV2Request + */ + review_id: string; +} +/** + * Check if a given object implements the ReviewV2ReviewInfoV2Request interface. + */ +export declare function instanceOfReviewV2ReviewInfoV2Request(value: object): value is ReviewV2ReviewInfoV2Request; +export declare function ReviewV2ReviewInfoV2RequestFromJSON(json: any): ReviewV2ReviewInfoV2Request; +export declare function ReviewV2ReviewInfoV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2Request; +export declare function ReviewV2ReviewInfoV2RequestToJSON(value?: ReviewV2ReviewInfoV2Request | null): any; diff --git a/dist/models/ReviewV2ReviewInfoV2Request.js b/dist/models/ReviewV2ReviewInfoV2Request.js new file mode 100644 index 0000000..03c2b64 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2Request.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewInfoV2Request = instanceOfReviewV2ReviewInfoV2Request; +exports.ReviewV2ReviewInfoV2RequestFromJSON = ReviewV2ReviewInfoV2RequestFromJSON; +exports.ReviewV2ReviewInfoV2RequestFromJSONTyped = ReviewV2ReviewInfoV2RequestFromJSONTyped; +exports.ReviewV2ReviewInfoV2RequestToJSON = ReviewV2ReviewInfoV2RequestToJSON; +/** + * Check if a given object implements the ReviewV2ReviewInfoV2Request interface. + */ +function instanceOfReviewV2ReviewInfoV2Request(value) { + if (!('review_id' in value) || value['review_id'] === undefined) + return false; + return true; +} +function ReviewV2ReviewInfoV2RequestFromJSON(json) { + return ReviewV2ReviewInfoV2RequestFromJSONTyped(json, false); +} +function ReviewV2ReviewInfoV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'review_id': json['review_id'], + }; +} +function ReviewV2ReviewInfoV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'review_id': value['review_id'], + }; +} diff --git a/dist/models/ReviewV2ReviewInfoV2Response.d.ts b/dist/models/ReviewV2ReviewInfoV2Response.d.ts new file mode 100644 index 0000000..04bf2ce --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2Response.d.ts @@ -0,0 +1,120 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewInfoV2ResponseStatusEnum } from './ReviewV2ReviewInfoV2ResponseStatusEnum'; +import type { ReviewV2ReviewInfoV2ResponseVideo } from './ReviewV2ReviewInfoV2ResponseVideo'; +import type { ReviewV2ReviewInfoV2ResponseOrderStatusEnum } from './ReviewV2ReviewInfoV2ResponseOrderStatusEnum'; +import type { ReviewV2ReviewInfoV2ResponsePhoto } from './ReviewV2ReviewInfoV2ResponsePhoto'; +/** + * + * @export + * @interface ReviewV2ReviewInfoV2Response + */ +export interface ReviewV2ReviewInfoV2Response { + /** + * Количество комментариев к отзыву. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + comments_amount?: number; + /** + * Количество дизлайков на отзыве. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + dislikes_amount?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof ReviewV2ReviewInfoV2Response + */ + id?: string; + /** + * `true`, если отзыв участвует в подсчёте рейтинга. + * + * @type {boolean} + * @memberof ReviewV2ReviewInfoV2Response + */ + is_rating_participant?: boolean; + /** + * Количество лайков на отзыве. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + likes_amount?: number; + /** + * + * @type {ReviewV2ReviewInfoV2ResponseOrderStatusEnum} + * @memberof ReviewV2ReviewInfoV2Response + */ + order_status?: ReviewV2ReviewInfoV2ResponseOrderStatusEnum; + /** + * Информация об изображениях. + * @type {Array} + * @memberof ReviewV2ReviewInfoV2Response + */ + photos?: Array; + /** + * Количество изображений у отзыва. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + photos_amount?: number; + /** + * Дата публикации отзыва. + * @type {string} + * @memberof ReviewV2ReviewInfoV2Response + */ + published_at?: string; + /** + * Оценка отзыва. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + rating?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + sku?: number; + /** + * + * @type {ReviewV2ReviewInfoV2ResponseStatusEnum} + * @memberof ReviewV2ReviewInfoV2Response + */ + status?: ReviewV2ReviewInfoV2ResponseStatusEnum; + /** + * Текст отзыва. + * @type {string} + * @memberof ReviewV2ReviewInfoV2Response + */ + text?: string; + /** + * Информация о видео. + * @type {Array} + * @memberof ReviewV2ReviewInfoV2Response + */ + videos?: Array; + /** + * Количество видео у отзыва. + * @type {number} + * @memberof ReviewV2ReviewInfoV2Response + */ + videos_amount?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewInfoV2Response interface. + */ +export declare function instanceOfReviewV2ReviewInfoV2Response(value: object): value is ReviewV2ReviewInfoV2Response; +export declare function ReviewV2ReviewInfoV2ResponseFromJSON(json: any): ReviewV2ReviewInfoV2Response; +export declare function ReviewV2ReviewInfoV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2Response; +export declare function ReviewV2ReviewInfoV2ResponseToJSON(value?: ReviewV2ReviewInfoV2Response | null): any; diff --git a/dist/models/ReviewV2ReviewInfoV2Response.js b/dist/models/ReviewV2ReviewInfoV2Response.js new file mode 100644 index 0000000..4746733 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2Response.js @@ -0,0 +1,76 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewInfoV2Response = instanceOfReviewV2ReviewInfoV2Response; +exports.ReviewV2ReviewInfoV2ResponseFromJSON = ReviewV2ReviewInfoV2ResponseFromJSON; +exports.ReviewV2ReviewInfoV2ResponseFromJSONTyped = ReviewV2ReviewInfoV2ResponseFromJSONTyped; +exports.ReviewV2ReviewInfoV2ResponseToJSON = ReviewV2ReviewInfoV2ResponseToJSON; +const ReviewV2ReviewInfoV2ResponseStatusEnum_1 = require("./ReviewV2ReviewInfoV2ResponseStatusEnum"); +const ReviewV2ReviewInfoV2ResponseVideo_1 = require("./ReviewV2ReviewInfoV2ResponseVideo"); +const ReviewV2ReviewInfoV2ResponseOrderStatusEnum_1 = require("./ReviewV2ReviewInfoV2ResponseOrderStatusEnum"); +const ReviewV2ReviewInfoV2ResponsePhoto_1 = require("./ReviewV2ReviewInfoV2ResponsePhoto"); +/** + * Check if a given object implements the ReviewV2ReviewInfoV2Response interface. + */ +function instanceOfReviewV2ReviewInfoV2Response(value) { + return true; +} +function ReviewV2ReviewInfoV2ResponseFromJSON(json) { + return ReviewV2ReviewInfoV2ResponseFromJSONTyped(json, false); +} +function ReviewV2ReviewInfoV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], + 'dislikes_amount': json['dislikes_amount'] == null ? undefined : json['dislikes_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], + 'likes_amount': json['likes_amount'] == null ? undefined : json['likes_amount'], + 'order_status': json['order_status'] == null ? undefined : (0, ReviewV2ReviewInfoV2ResponseOrderStatusEnum_1.ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON)(json['order_status']), + 'photos': json['photos'] == null ? undefined : (json['photos'].map(ReviewV2ReviewInfoV2ResponsePhoto_1.ReviewV2ReviewInfoV2ResponsePhotoFromJSON)), + 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : (0, ReviewV2ReviewInfoV2ResponseStatusEnum_1.ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON)(json['status']), + 'text': json['text'] == null ? undefined : json['text'], + 'videos': json['videos'] == null ? undefined : (json['videos'].map(ReviewV2ReviewInfoV2ResponseVideo_1.ReviewV2ReviewInfoV2ResponseVideoFromJSON)), + 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], + }; +} +function ReviewV2ReviewInfoV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments_amount': value['comments_amount'], + 'dislikes_amount': value['dislikes_amount'], + 'id': value['id'], + 'is_rating_participant': value['is_rating_participant'], + 'likes_amount': value['likes_amount'], + 'order_status': (0, ReviewV2ReviewInfoV2ResponseOrderStatusEnum_1.ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON)(value['order_status']), + 'photos': value['photos'] == null ? undefined : (value['photos'].map(ReviewV2ReviewInfoV2ResponsePhoto_1.ReviewV2ReviewInfoV2ResponsePhotoToJSON)), + 'photos_amount': value['photos_amount'], + 'published_at': value['published_at'], + 'rating': value['rating'], + 'sku': value['sku'], + 'status': (0, ReviewV2ReviewInfoV2ResponseStatusEnum_1.ReviewV2ReviewInfoV2ResponseStatusEnumToJSON)(value['status']), + 'text': value['text'], + 'videos': value['videos'] == null ? undefined : (value['videos'].map(ReviewV2ReviewInfoV2ResponseVideo_1.ReviewV2ReviewInfoV2ResponseVideoToJSON)), + 'videos_amount': value['videos_amount'], + }; +} diff --git a/dist/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.d.ts b/dist/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.d.ts new file mode 100644 index 0000000..a26bf82 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export declare const ReviewV2ReviewInfoV2ResponseOrderStatusEnum: { + readonly DELIVERED: "DELIVERED"; + readonly CANCELLED: "CANCELLED"; +}; +export type ReviewV2ReviewInfoV2ResponseOrderStatusEnum = typeof ReviewV2ReviewInfoV2ResponseOrderStatusEnum[keyof typeof ReviewV2ReviewInfoV2ResponseOrderStatusEnum]; +export declare function instanceOfReviewV2ReviewInfoV2ResponseOrderStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON(json: any): ReviewV2ReviewInfoV2ResponseOrderStatusEnum; +export declare function ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2ResponseOrderStatusEnum; +export declare function ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON(value?: ReviewV2ReviewInfoV2ResponseOrderStatusEnum | null): any; diff --git a/dist/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.js b/dist/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.js new file mode 100644 index 0000000..1a67603 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2ResponseOrderStatusEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewV2ReviewInfoV2ResponseOrderStatusEnum = void 0; +exports.instanceOfReviewV2ReviewInfoV2ResponseOrderStatusEnum = instanceOfReviewV2ReviewInfoV2ResponseOrderStatusEnum; +exports.ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON = ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON; +exports.ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSONTyped = ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSONTyped; +exports.ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON = ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON; +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +exports.ReviewV2ReviewInfoV2ResponseOrderStatusEnum = { + DELIVERED: 'DELIVERED', + CANCELLED: 'CANCELLED' +}; +function instanceOfReviewV2ReviewInfoV2ResponseOrderStatusEnum(value) { + for (const key in exports.ReviewV2ReviewInfoV2ResponseOrderStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReviewV2ReviewInfoV2ResponseOrderStatusEnum, key)) { + if (exports.ReviewV2ReviewInfoV2ResponseOrderStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSON(json) { + return ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSONTyped(json, false); +} +function ReviewV2ReviewInfoV2ResponseOrderStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReviewV2ReviewInfoV2ResponseOrderStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/ReviewV2ReviewInfoV2ResponsePhoto.d.ts b/dist/models/ReviewV2ReviewInfoV2ResponsePhoto.d.ts new file mode 100644 index 0000000..4f04c33 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2ResponsePhoto.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewInfoV2ResponsePhoto + */ +export interface ReviewV2ReviewInfoV2ResponsePhoto { + /** + * Высота. + * @type {number} + * @memberof ReviewV2ReviewInfoV2ResponsePhoto + */ + height?: number; + /** + * Ссылка на изображение. + * @type {string} + * @memberof ReviewV2ReviewInfoV2ResponsePhoto + */ + url?: string; + /** + * Ширина. + * @type {number} + * @memberof ReviewV2ReviewInfoV2ResponsePhoto + */ + width?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewInfoV2ResponsePhoto interface. + */ +export declare function instanceOfReviewV2ReviewInfoV2ResponsePhoto(value: object): value is ReviewV2ReviewInfoV2ResponsePhoto; +export declare function ReviewV2ReviewInfoV2ResponsePhotoFromJSON(json: any): ReviewV2ReviewInfoV2ResponsePhoto; +export declare function ReviewV2ReviewInfoV2ResponsePhotoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2ResponsePhoto; +export declare function ReviewV2ReviewInfoV2ResponsePhotoToJSON(value?: ReviewV2ReviewInfoV2ResponsePhoto | null): any; diff --git a/dist/models/ReviewV2ReviewInfoV2ResponsePhoto.js b/dist/models/ReviewV2ReviewInfoV2ResponsePhoto.js new file mode 100644 index 0000000..5eb9d81 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2ResponsePhoto.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewInfoV2ResponsePhoto = instanceOfReviewV2ReviewInfoV2ResponsePhoto; +exports.ReviewV2ReviewInfoV2ResponsePhotoFromJSON = ReviewV2ReviewInfoV2ResponsePhotoFromJSON; +exports.ReviewV2ReviewInfoV2ResponsePhotoFromJSONTyped = ReviewV2ReviewInfoV2ResponsePhotoFromJSONTyped; +exports.ReviewV2ReviewInfoV2ResponsePhotoToJSON = ReviewV2ReviewInfoV2ResponsePhotoToJSON; +/** + * Check if a given object implements the ReviewV2ReviewInfoV2ResponsePhoto interface. + */ +function instanceOfReviewV2ReviewInfoV2ResponsePhoto(value) { + return true; +} +function ReviewV2ReviewInfoV2ResponsePhotoFromJSON(json) { + return ReviewV2ReviewInfoV2ResponsePhotoFromJSONTyped(json, false); +} +function ReviewV2ReviewInfoV2ResponsePhotoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'url': json['url'] == null ? undefined : json['url'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function ReviewV2ReviewInfoV2ResponsePhotoToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'url': value['url'], + 'width': value['width'], + }; +} diff --git a/dist/models/ReviewV2ReviewInfoV2ResponseStatusEnum.d.ts b/dist/models/ReviewV2ReviewInfoV2ResponseStatusEnum.d.ts new file mode 100644 index 0000000..bb90a15 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2ResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export declare const ReviewV2ReviewInfoV2ResponseStatusEnum: { + readonly NEW: "NEW"; + readonly VIEWED: "VIEWED"; + readonly PROCESSED: "PROCESSED"; +}; +export type ReviewV2ReviewInfoV2ResponseStatusEnum = typeof ReviewV2ReviewInfoV2ResponseStatusEnum[keyof typeof ReviewV2ReviewInfoV2ResponseStatusEnum]; +export declare function instanceOfReviewV2ReviewInfoV2ResponseStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON(json: any): ReviewV2ReviewInfoV2ResponseStatusEnum; +export declare function ReviewV2ReviewInfoV2ResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2ResponseStatusEnum; +export declare function ReviewV2ReviewInfoV2ResponseStatusEnumToJSON(value?: ReviewV2ReviewInfoV2ResponseStatusEnum | null): any; diff --git a/dist/models/ReviewV2ReviewInfoV2ResponseStatusEnum.js b/dist/models/ReviewV2ReviewInfoV2ResponseStatusEnum.js new file mode 100644 index 0000000..8280948 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2ResponseStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewV2ReviewInfoV2ResponseStatusEnum = void 0; +exports.instanceOfReviewV2ReviewInfoV2ResponseStatusEnum = instanceOfReviewV2ReviewInfoV2ResponseStatusEnum; +exports.ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON = ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON; +exports.ReviewV2ReviewInfoV2ResponseStatusEnumFromJSONTyped = ReviewV2ReviewInfoV2ResponseStatusEnumFromJSONTyped; +exports.ReviewV2ReviewInfoV2ResponseStatusEnumToJSON = ReviewV2ReviewInfoV2ResponseStatusEnumToJSON; +/** + * Статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +exports.ReviewV2ReviewInfoV2ResponseStatusEnum = { + NEW: 'NEW', + VIEWED: 'VIEWED', + PROCESSED: 'PROCESSED' +}; +function instanceOfReviewV2ReviewInfoV2ResponseStatusEnum(value) { + for (const key in exports.ReviewV2ReviewInfoV2ResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReviewV2ReviewInfoV2ResponseStatusEnum, key)) { + if (exports.ReviewV2ReviewInfoV2ResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReviewV2ReviewInfoV2ResponseStatusEnumFromJSON(json) { + return ReviewV2ReviewInfoV2ResponseStatusEnumFromJSONTyped(json, false); +} +function ReviewV2ReviewInfoV2ResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReviewV2ReviewInfoV2ResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/ReviewV2ReviewInfoV2ResponseVideo.d.ts b/dist/models/ReviewV2ReviewInfoV2ResponseVideo.d.ts new file mode 100644 index 0000000..696759d --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2ResponseVideo.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ReviewV2ReviewInfoV2ResponseVideo + */ +export interface ReviewV2ReviewInfoV2ResponseVideo { + /** + * Высота. + * @type {number} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + height?: number; + /** + * Ссылка на превью видео. + * @type {string} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + preview_url?: string; + /** + * Ссылка на короткое видео. + * @type {string} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + short_video_preview_url?: string; + /** + * Ссылка на видео. + * @type {string} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + url?: string; + /** + * Ширина. + * @type {number} + * @memberof ReviewV2ReviewInfoV2ResponseVideo + */ + width?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewInfoV2ResponseVideo interface. + */ +export declare function instanceOfReviewV2ReviewInfoV2ResponseVideo(value: object): value is ReviewV2ReviewInfoV2ResponseVideo; +export declare function ReviewV2ReviewInfoV2ResponseVideoFromJSON(json: any): ReviewV2ReviewInfoV2ResponseVideo; +export declare function ReviewV2ReviewInfoV2ResponseVideoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewInfoV2ResponseVideo; +export declare function ReviewV2ReviewInfoV2ResponseVideoToJSON(value?: ReviewV2ReviewInfoV2ResponseVideo | null): any; diff --git a/dist/models/ReviewV2ReviewInfoV2ResponseVideo.js b/dist/models/ReviewV2ReviewInfoV2ResponseVideo.js new file mode 100644 index 0000000..cbf79f6 --- /dev/null +++ b/dist/models/ReviewV2ReviewInfoV2ResponseVideo.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewInfoV2ResponseVideo = instanceOfReviewV2ReviewInfoV2ResponseVideo; +exports.ReviewV2ReviewInfoV2ResponseVideoFromJSON = ReviewV2ReviewInfoV2ResponseVideoFromJSON; +exports.ReviewV2ReviewInfoV2ResponseVideoFromJSONTyped = ReviewV2ReviewInfoV2ResponseVideoFromJSONTyped; +exports.ReviewV2ReviewInfoV2ResponseVideoToJSON = ReviewV2ReviewInfoV2ResponseVideoToJSON; +/** + * Check if a given object implements the ReviewV2ReviewInfoV2ResponseVideo interface. + */ +function instanceOfReviewV2ReviewInfoV2ResponseVideo(value) { + return true; +} +function ReviewV2ReviewInfoV2ResponseVideoFromJSON(json) { + return ReviewV2ReviewInfoV2ResponseVideoFromJSONTyped(json, false); +} +function ReviewV2ReviewInfoV2ResponseVideoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'preview_url': json['preview_url'] == null ? undefined : json['preview_url'], + 'short_video_preview_url': json['short_video_preview_url'] == null ? undefined : json['short_video_preview_url'], + 'url': json['url'] == null ? undefined : json['url'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function ReviewV2ReviewInfoV2ResponseVideoToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'preview_url': value['preview_url'], + 'short_video_preview_url': value['short_video_preview_url'], + 'url': value['url'], + 'width': value['width'], + }; +} diff --git a/dist/models/ReviewV2ReviewListV2Request.d.ts b/dist/models/ReviewV2ReviewListV2Request.d.ts new file mode 100644 index 0000000..176b7f6 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2Request.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewListV2RequestFilters } from './ReviewV2ReviewListV2RequestFilters'; +import type { ReviewV2ReviewListV2RequestSortDirEnum } from './ReviewV2ReviewListV2RequestSortDirEnum'; +/** + * + * @export + * @interface ReviewV2ReviewListV2Request + */ +export interface ReviewV2ReviewListV2Request { + /** + * + * @type {ReviewV2ReviewListV2RequestFilters} + * @memberof ReviewV2ReviewListV2Request + */ + filters?: ReviewV2ReviewListV2RequestFilters; + /** + * Идентификатор последнего отзыва в ответе. + * @type {string} + * @memberof ReviewV2ReviewListV2Request + */ + last_id?: string; + /** + * Количество отзывов в ответе. + * @type {number} + * @memberof ReviewV2ReviewListV2Request + */ + limit: number; + /** + * + * @type {ReviewV2ReviewListV2RequestSortDirEnum} + * @memberof ReviewV2ReviewListV2Request + */ + sort_dir?: ReviewV2ReviewListV2RequestSortDirEnum; +} +/** + * Check if a given object implements the ReviewV2ReviewListV2Request interface. + */ +export declare function instanceOfReviewV2ReviewListV2Request(value: object): value is ReviewV2ReviewListV2Request; +export declare function ReviewV2ReviewListV2RequestFromJSON(json: any): ReviewV2ReviewListV2Request; +export declare function ReviewV2ReviewListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2Request; +export declare function ReviewV2ReviewListV2RequestToJSON(value?: ReviewV2ReviewListV2Request | null): any; diff --git a/dist/models/ReviewV2ReviewListV2Request.js b/dist/models/ReviewV2ReviewListV2Request.js new file mode 100644 index 0000000..afe488a --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2Request.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewListV2Request = instanceOfReviewV2ReviewListV2Request; +exports.ReviewV2ReviewListV2RequestFromJSON = ReviewV2ReviewListV2RequestFromJSON; +exports.ReviewV2ReviewListV2RequestFromJSONTyped = ReviewV2ReviewListV2RequestFromJSONTyped; +exports.ReviewV2ReviewListV2RequestToJSON = ReviewV2ReviewListV2RequestToJSON; +const ReviewV2ReviewListV2RequestFilters_1 = require("./ReviewV2ReviewListV2RequestFilters"); +const ReviewV2ReviewListV2RequestSortDirEnum_1 = require("./ReviewV2ReviewListV2RequestSortDirEnum"); +/** + * Check if a given object implements the ReviewV2ReviewListV2Request interface. + */ +function instanceOfReviewV2ReviewListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function ReviewV2ReviewListV2RequestFromJSON(json) { + return ReviewV2ReviewListV2RequestFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filters': json['filters'] == null ? undefined : (0, ReviewV2ReviewListV2RequestFilters_1.ReviewV2ReviewListV2RequestFiltersFromJSON)(json['filters']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, ReviewV2ReviewListV2RequestSortDirEnum_1.ReviewV2ReviewListV2RequestSortDirEnumFromJSON)(json['sort_dir']), + }; +} +function ReviewV2ReviewListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filters': (0, ReviewV2ReviewListV2RequestFilters_1.ReviewV2ReviewListV2RequestFiltersToJSON)(value['filters']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_dir': (0, ReviewV2ReviewListV2RequestSortDirEnum_1.ReviewV2ReviewListV2RequestSortDirEnumToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/ReviewV2ReviewListV2RequestFilters.d.ts b/dist/models/ReviewV2ReviewListV2RequestFilters.d.ts new file mode 100644 index 0000000..21d026b --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2RequestFilters.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewListV2RequestFiltersOrderStatusEnum } from './ReviewV2ReviewListV2RequestFiltersOrderStatusEnum'; +import type { ReviewV2ReviewListV2RequestFiltersStatusEnum } from './ReviewV2ReviewListV2RequestFiltersStatusEnum'; +/** + * Фильтры для поиска отзывов. + * @export + * @interface ReviewV2ReviewListV2RequestFilters + */ +export interface ReviewV2ReviewListV2RequestFilters { + /** + * + * @type {ReviewV2ReviewListV2RequestFiltersOrderStatusEnum} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + order_status?: ReviewV2ReviewListV2RequestFiltersOrderStatusEnum; + /** + * Начало периода. Вернутся отзывы, которые созданы после этой даты. + * @type {string} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + published_from?: string; + /** + * Конец периода. Вернутся отзывы, которые созданы до этой даты. + * @type {string} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + published_to?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + skus?: Array; + /** + * + * @type {ReviewV2ReviewListV2RequestFiltersStatusEnum} + * @memberof ReviewV2ReviewListV2RequestFilters + */ + status?: ReviewV2ReviewListV2RequestFiltersStatusEnum; +} +/** + * Check if a given object implements the ReviewV2ReviewListV2RequestFilters interface. + */ +export declare function instanceOfReviewV2ReviewListV2RequestFilters(value: object): value is ReviewV2ReviewListV2RequestFilters; +export declare function ReviewV2ReviewListV2RequestFiltersFromJSON(json: any): ReviewV2ReviewListV2RequestFilters; +export declare function ReviewV2ReviewListV2RequestFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2RequestFilters; +export declare function ReviewV2ReviewListV2RequestFiltersToJSON(value?: ReviewV2ReviewListV2RequestFilters | null): any; diff --git a/dist/models/ReviewV2ReviewListV2RequestFilters.js b/dist/models/ReviewV2ReviewListV2RequestFilters.js new file mode 100644 index 0000000..4710fc2 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2RequestFilters.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewListV2RequestFilters = instanceOfReviewV2ReviewListV2RequestFilters; +exports.ReviewV2ReviewListV2RequestFiltersFromJSON = ReviewV2ReviewListV2RequestFiltersFromJSON; +exports.ReviewV2ReviewListV2RequestFiltersFromJSONTyped = ReviewV2ReviewListV2RequestFiltersFromJSONTyped; +exports.ReviewV2ReviewListV2RequestFiltersToJSON = ReviewV2ReviewListV2RequestFiltersToJSON; +const ReviewV2ReviewListV2RequestFiltersOrderStatusEnum_1 = require("./ReviewV2ReviewListV2RequestFiltersOrderStatusEnum"); +const ReviewV2ReviewListV2RequestFiltersStatusEnum_1 = require("./ReviewV2ReviewListV2RequestFiltersStatusEnum"); +/** + * Check if a given object implements the ReviewV2ReviewListV2RequestFilters interface. + */ +function instanceOfReviewV2ReviewListV2RequestFilters(value) { + return true; +} +function ReviewV2ReviewListV2RequestFiltersFromJSON(json) { + return ReviewV2ReviewListV2RequestFiltersFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2RequestFiltersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_status': json['order_status'] == null ? undefined : (0, ReviewV2ReviewListV2RequestFiltersOrderStatusEnum_1.ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON)(json['order_status']), + 'published_from': json['published_from'] == null ? undefined : json['published_from'], + 'published_to': json['published_to'] == null ? undefined : json['published_to'], + 'skus': json['skus'] == null ? undefined : json['skus'], + 'status': json['status'] == null ? undefined : (0, ReviewV2ReviewListV2RequestFiltersStatusEnum_1.ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON)(json['status']), + }; +} +function ReviewV2ReviewListV2RequestFiltersToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_status': (0, ReviewV2ReviewListV2RequestFiltersOrderStatusEnum_1.ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON)(value['order_status']), + 'published_from': value['published_from'], + 'published_to': value['published_to'], + 'skus': value['skus'], + 'status': (0, ReviewV2ReviewListV2RequestFiltersStatusEnum_1.ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.d.ts b/dist/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.d.ts new file mode 100644 index 0000000..07bcdf2 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `ALL` — все; + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export declare const ReviewV2ReviewListV2RequestFiltersOrderStatusEnum: { + readonly ALL: "ALL"; + readonly DELIVERED: "DELIVERED"; + readonly CANCELLED: "CANCELLED"; +}; +export type ReviewV2ReviewListV2RequestFiltersOrderStatusEnum = typeof ReviewV2ReviewListV2RequestFiltersOrderStatusEnum[keyof typeof ReviewV2ReviewListV2RequestFiltersOrderStatusEnum]; +export declare function instanceOfReviewV2ReviewListV2RequestFiltersOrderStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON(json: any): ReviewV2ReviewListV2RequestFiltersOrderStatusEnum; +export declare function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2RequestFiltersOrderStatusEnum; +export declare function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON(value?: ReviewV2ReviewListV2RequestFiltersOrderStatusEnum | null): any; diff --git a/dist/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.js b/dist/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.js new file mode 100644 index 0000000..31802f2 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2RequestFiltersOrderStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewV2ReviewListV2RequestFiltersOrderStatusEnum = void 0; +exports.instanceOfReviewV2ReviewListV2RequestFiltersOrderStatusEnum = instanceOfReviewV2ReviewListV2RequestFiltersOrderStatusEnum; +exports.ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON = ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON; +exports.ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSONTyped = ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSONTyped; +exports.ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON = ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON; +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `ALL` — все; + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +exports.ReviewV2ReviewListV2RequestFiltersOrderStatusEnum = { + ALL: 'ALL', + DELIVERED: 'DELIVERED', + CANCELLED: 'CANCELLED' +}; +function instanceOfReviewV2ReviewListV2RequestFiltersOrderStatusEnum(value) { + for (const key in exports.ReviewV2ReviewListV2RequestFiltersOrderStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReviewV2ReviewListV2RequestFiltersOrderStatusEnum, key)) { + if (exports.ReviewV2ReviewListV2RequestFiltersOrderStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSON(json) { + return ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReviewV2ReviewListV2RequestFiltersOrderStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.d.ts b/dist/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.d.ts new file mode 100644 index 0000000..0c781a5 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `ALL` — все; + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export declare const ReviewV2ReviewListV2RequestFiltersStatusEnum: { + readonly ALL: "ALL"; + readonly NEW: "NEW"; + readonly VIEWED: "VIEWED"; + readonly PROCESSED: "PROCESSED"; +}; +export type ReviewV2ReviewListV2RequestFiltersStatusEnum = typeof ReviewV2ReviewListV2RequestFiltersStatusEnum[keyof typeof ReviewV2ReviewListV2RequestFiltersStatusEnum]; +export declare function instanceOfReviewV2ReviewListV2RequestFiltersStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON(json: any): ReviewV2ReviewListV2RequestFiltersStatusEnum; +export declare function ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2RequestFiltersStatusEnum; +export declare function ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON(value?: ReviewV2ReviewListV2RequestFiltersStatusEnum | null): any; diff --git a/dist/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.js b/dist/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.js new file mode 100644 index 0000000..90fd875 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2RequestFiltersStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewV2ReviewListV2RequestFiltersStatusEnum = void 0; +exports.instanceOfReviewV2ReviewListV2RequestFiltersStatusEnum = instanceOfReviewV2ReviewListV2RequestFiltersStatusEnum; +exports.ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON = ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON; +exports.ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSONTyped = ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSONTyped; +exports.ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON = ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON; +/** + * Статус отзыва: + * - `ALL` — все; + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +exports.ReviewV2ReviewListV2RequestFiltersStatusEnum = { + ALL: 'ALL', + NEW: 'NEW', + VIEWED: 'VIEWED', + PROCESSED: 'PROCESSED' +}; +function instanceOfReviewV2ReviewListV2RequestFiltersStatusEnum(value) { + for (const key in exports.ReviewV2ReviewListV2RequestFiltersStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReviewV2ReviewListV2RequestFiltersStatusEnum, key)) { + if (exports.ReviewV2ReviewListV2RequestFiltersStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSON(json) { + return ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2RequestFiltersStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReviewV2ReviewListV2RequestFiltersStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/ReviewV2ReviewListV2RequestSortDirEnum.d.ts b/dist/models/ReviewV2ReviewListV2RequestSortDirEnum.d.ts new file mode 100644 index 0000000..7989bba --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2RequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const ReviewV2ReviewListV2RequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type ReviewV2ReviewListV2RequestSortDirEnum = typeof ReviewV2ReviewListV2RequestSortDirEnum[keyof typeof ReviewV2ReviewListV2RequestSortDirEnum]; +export declare function instanceOfReviewV2ReviewListV2RequestSortDirEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2RequestSortDirEnumFromJSON(json: any): ReviewV2ReviewListV2RequestSortDirEnum; +export declare function ReviewV2ReviewListV2RequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2RequestSortDirEnum; +export declare function ReviewV2ReviewListV2RequestSortDirEnumToJSON(value?: ReviewV2ReviewListV2RequestSortDirEnum | null): any; diff --git a/dist/models/ReviewV2ReviewListV2RequestSortDirEnum.js b/dist/models/ReviewV2ReviewListV2RequestSortDirEnum.js new file mode 100644 index 0000000..7c2dfe7 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2RequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewV2ReviewListV2RequestSortDirEnum = void 0; +exports.instanceOfReviewV2ReviewListV2RequestSortDirEnum = instanceOfReviewV2ReviewListV2RequestSortDirEnum; +exports.ReviewV2ReviewListV2RequestSortDirEnumFromJSON = ReviewV2ReviewListV2RequestSortDirEnumFromJSON; +exports.ReviewV2ReviewListV2RequestSortDirEnumFromJSONTyped = ReviewV2ReviewListV2RequestSortDirEnumFromJSONTyped; +exports.ReviewV2ReviewListV2RequestSortDirEnumToJSON = ReviewV2ReviewListV2RequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.ReviewV2ReviewListV2RequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfReviewV2ReviewListV2RequestSortDirEnum(value) { + for (const key in exports.ReviewV2ReviewListV2RequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReviewV2ReviewListV2RequestSortDirEnum, key)) { + if (exports.ReviewV2ReviewListV2RequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReviewV2ReviewListV2RequestSortDirEnumFromJSON(json) { + return ReviewV2ReviewListV2RequestSortDirEnumFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2RequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReviewV2ReviewListV2RequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/ReviewV2ReviewListV2Response.d.ts b/dist/models/ReviewV2ReviewListV2Response.d.ts new file mode 100644 index 0000000..5ec271e --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewListV2ResponseReview } from './ReviewV2ReviewListV2ResponseReview'; +/** + * + * @export + * @interface ReviewV2ReviewListV2Response + */ +export interface ReviewV2ReviewListV2Response { + /** + * `true`, если в ответе вернули не все отзывы. + * + * @type {boolean} + * @memberof ReviewV2ReviewListV2Response + */ + has_next?: boolean; + /** + * Идентификатор последнего отзыва на странице. + * @type {string} + * @memberof ReviewV2ReviewListV2Response + */ + last_id?: string; + /** + * Список отзывов. + * @type {Array} + * @memberof ReviewV2ReviewListV2Response + */ + reviews?: Array; +} +/** + * Check if a given object implements the ReviewV2ReviewListV2Response interface. + */ +export declare function instanceOfReviewV2ReviewListV2Response(value: object): value is ReviewV2ReviewListV2Response; +export declare function ReviewV2ReviewListV2ResponseFromJSON(json: any): ReviewV2ReviewListV2Response; +export declare function ReviewV2ReviewListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2Response; +export declare function ReviewV2ReviewListV2ResponseToJSON(value?: ReviewV2ReviewListV2Response | null): any; diff --git a/dist/models/ReviewV2ReviewListV2Response.js b/dist/models/ReviewV2ReviewListV2Response.js new file mode 100644 index 0000000..94f39f4 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewListV2Response = instanceOfReviewV2ReviewListV2Response; +exports.ReviewV2ReviewListV2ResponseFromJSON = ReviewV2ReviewListV2ResponseFromJSON; +exports.ReviewV2ReviewListV2ResponseFromJSONTyped = ReviewV2ReviewListV2ResponseFromJSONTyped; +exports.ReviewV2ReviewListV2ResponseToJSON = ReviewV2ReviewListV2ResponseToJSON; +const ReviewV2ReviewListV2ResponseReview_1 = require("./ReviewV2ReviewListV2ResponseReview"); +/** + * Check if a given object implements the ReviewV2ReviewListV2Response interface. + */ +function instanceOfReviewV2ReviewListV2Response(value) { + return true; +} +function ReviewV2ReviewListV2ResponseFromJSON(json) { + return ReviewV2ReviewListV2ResponseFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'reviews': json['reviews'] == null ? undefined : (json['reviews'].map(ReviewV2ReviewListV2ResponseReview_1.ReviewV2ReviewListV2ResponseReviewFromJSON)), + }; +} +function ReviewV2ReviewListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'last_id': value['last_id'], + 'reviews': value['reviews'] == null ? undefined : (value['reviews'].map(ReviewV2ReviewListV2ResponseReview_1.ReviewV2ReviewListV2ResponseReviewToJSON)), + }; +} diff --git a/dist/models/ReviewV2ReviewListV2ResponseReview.d.ts b/dist/models/ReviewV2ReviewListV2ResponseReview.d.ts new file mode 100644 index 0000000..14e77b3 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2ResponseReview.d.ts @@ -0,0 +1,94 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV2ReviewListV2ResponseReviewOrderStatusEnum } from './ReviewV2ReviewListV2ResponseReviewOrderStatusEnum'; +import type { ReviewV2ReviewListV2ResponseReviewStatusEnum } from './ReviewV2ReviewListV2ResponseReviewStatusEnum'; +/** + * + * @export + * @interface ReviewV2ReviewListV2ResponseReview + */ +export interface ReviewV2ReviewListV2ResponseReview { + /** + * Количество комментариев у отзыва. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + comments_amount?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + id?: string; + /** + * `true`, если отзыв участвует в подсчёте рейтинга. + * + * @type {boolean} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + is_rating_participant?: boolean; + /** + * + * @type {ReviewV2ReviewListV2ResponseReviewOrderStatusEnum} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + order_status?: ReviewV2ReviewListV2ResponseReviewOrderStatusEnum; + /** + * Количество изображений у отзыва. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + photos_amount?: number; + /** + * Дата публикации отзыва. + * @type {string} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + published_at?: string; + /** + * Оценка отзыва. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + rating?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + sku?: number; + /** + * + * @type {ReviewV2ReviewListV2ResponseReviewStatusEnum} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + status?: ReviewV2ReviewListV2ResponseReviewStatusEnum; + /** + * Текст отзыва. + * @type {string} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + text?: string; + /** + * Количество видео у отзыва. + * @type {number} + * @memberof ReviewV2ReviewListV2ResponseReview + */ + videos_amount?: number; +} +/** + * Check if a given object implements the ReviewV2ReviewListV2ResponseReview interface. + */ +export declare function instanceOfReviewV2ReviewListV2ResponseReview(value: object): value is ReviewV2ReviewListV2ResponseReview; +export declare function ReviewV2ReviewListV2ResponseReviewFromJSON(json: any): ReviewV2ReviewListV2ResponseReview; +export declare function ReviewV2ReviewListV2ResponseReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2ResponseReview; +export declare function ReviewV2ReviewListV2ResponseReviewToJSON(value?: ReviewV2ReviewListV2ResponseReview | null): any; diff --git a/dist/models/ReviewV2ReviewListV2ResponseReview.js b/dist/models/ReviewV2ReviewListV2ResponseReview.js new file mode 100644 index 0000000..6866563 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2ResponseReview.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReviewV2ReviewListV2ResponseReview = instanceOfReviewV2ReviewListV2ResponseReview; +exports.ReviewV2ReviewListV2ResponseReviewFromJSON = ReviewV2ReviewListV2ResponseReviewFromJSON; +exports.ReviewV2ReviewListV2ResponseReviewFromJSONTyped = ReviewV2ReviewListV2ResponseReviewFromJSONTyped; +exports.ReviewV2ReviewListV2ResponseReviewToJSON = ReviewV2ReviewListV2ResponseReviewToJSON; +const ReviewV2ReviewListV2ResponseReviewOrderStatusEnum_1 = require("./ReviewV2ReviewListV2ResponseReviewOrderStatusEnum"); +const ReviewV2ReviewListV2ResponseReviewStatusEnum_1 = require("./ReviewV2ReviewListV2ResponseReviewStatusEnum"); +/** + * Check if a given object implements the ReviewV2ReviewListV2ResponseReview interface. + */ +function instanceOfReviewV2ReviewListV2ResponseReview(value) { + return true; +} +function ReviewV2ReviewListV2ResponseReviewFromJSON(json) { + return ReviewV2ReviewListV2ResponseReviewFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2ResponseReviewFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], + 'order_status': json['order_status'] == null ? undefined : (0, ReviewV2ReviewListV2ResponseReviewOrderStatusEnum_1.ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON)(json['order_status']), + 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : (0, ReviewV2ReviewListV2ResponseReviewStatusEnum_1.ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON)(json['status']), + 'text': json['text'] == null ? undefined : json['text'], + 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], + }; +} +function ReviewV2ReviewListV2ResponseReviewToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments_amount': value['comments_amount'], + 'id': value['id'], + 'is_rating_participant': value['is_rating_participant'], + 'order_status': (0, ReviewV2ReviewListV2ResponseReviewOrderStatusEnum_1.ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON)(value['order_status']), + 'photos_amount': value['photos_amount'], + 'published_at': value['published_at'], + 'rating': value['rating'], + 'sku': value['sku'], + 'status': (0, ReviewV2ReviewListV2ResponseReviewStatusEnum_1.ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON)(value['status']), + 'text': value['text'], + 'videos_amount': value['videos_amount'], + }; +} diff --git a/dist/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.d.ts b/dist/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.d.ts new file mode 100644 index 0000000..aad9c23 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +export declare const ReviewV2ReviewListV2ResponseReviewOrderStatusEnum: { + readonly DELIVERED: "DELIVERED"; + readonly CANCELLED: "CANCELLED"; +}; +export type ReviewV2ReviewListV2ResponseReviewOrderStatusEnum = typeof ReviewV2ReviewListV2ResponseReviewOrderStatusEnum[keyof typeof ReviewV2ReviewListV2ResponseReviewOrderStatusEnum]; +export declare function instanceOfReviewV2ReviewListV2ResponseReviewOrderStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON(json: any): ReviewV2ReviewListV2ResponseReviewOrderStatusEnum; +export declare function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2ResponseReviewOrderStatusEnum; +export declare function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON(value?: ReviewV2ReviewListV2ResponseReviewOrderStatusEnum | null): any; diff --git a/dist/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.js b/dist/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.js new file mode 100644 index 0000000..9bf0c98 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2ResponseReviewOrderStatusEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewV2ReviewListV2ResponseReviewOrderStatusEnum = void 0; +exports.instanceOfReviewV2ReviewListV2ResponseReviewOrderStatusEnum = instanceOfReviewV2ReviewListV2ResponseReviewOrderStatusEnum; +exports.ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON = ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON; +exports.ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSONTyped = ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSONTyped; +exports.ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON = ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON; +/** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен; + * - `CANCELLED` — отменён. + * + * @export + */ +exports.ReviewV2ReviewListV2ResponseReviewOrderStatusEnum = { + DELIVERED: 'DELIVERED', + CANCELLED: 'CANCELLED' +}; +function instanceOfReviewV2ReviewListV2ResponseReviewOrderStatusEnum(value) { + for (const key in exports.ReviewV2ReviewListV2ResponseReviewOrderStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReviewV2ReviewListV2ResponseReviewOrderStatusEnum, key)) { + if (exports.ReviewV2ReviewListV2ResponseReviewOrderStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSON(json) { + return ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReviewV2ReviewListV2ResponseReviewOrderStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.d.ts b/dist/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.d.ts new file mode 100644 index 0000000..3a45f47 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +export declare const ReviewV2ReviewListV2ResponseReviewStatusEnum: { + readonly NEW: "NEW"; + readonly VIEWED: "VIEWED"; + readonly PROCESSED: "PROCESSED"; +}; +export type ReviewV2ReviewListV2ResponseReviewStatusEnum = typeof ReviewV2ReviewListV2ResponseReviewStatusEnum[keyof typeof ReviewV2ReviewListV2ResponseReviewStatusEnum]; +export declare function instanceOfReviewV2ReviewListV2ResponseReviewStatusEnum(value: any): boolean; +export declare function ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON(json: any): ReviewV2ReviewListV2ResponseReviewStatusEnum; +export declare function ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewV2ReviewListV2ResponseReviewStatusEnum; +export declare function ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON(value?: ReviewV2ReviewListV2ResponseReviewStatusEnum | null): any; diff --git a/dist/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.js b/dist/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.js new file mode 100644 index 0000000..a7e22f1 --- /dev/null +++ b/dist/models/ReviewV2ReviewListV2ResponseReviewStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReviewV2ReviewListV2ResponseReviewStatusEnum = void 0; +exports.instanceOfReviewV2ReviewListV2ResponseReviewStatusEnum = instanceOfReviewV2ReviewListV2ResponseReviewStatusEnum; +exports.ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON = ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON; +exports.ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSONTyped = ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSONTyped; +exports.ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON = ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON; +/** + * Статус отзыва: + * - `NEW` — новый; + * - `VIEWED` — просмотренный; + * - `PROCESSED` — обработанный. + * + * @export + */ +exports.ReviewV2ReviewListV2ResponseReviewStatusEnum = { + NEW: 'NEW', + VIEWED: 'VIEWED', + PROCESSED: 'PROCESSED' +}; +function instanceOfReviewV2ReviewListV2ResponseReviewStatusEnum(value) { + for (const key in exports.ReviewV2ReviewListV2ResponseReviewStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ReviewV2ReviewListV2ResponseReviewStatusEnum, key)) { + if (exports.ReviewV2ReviewListV2ResponseReviewStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSON(json) { + return ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSONTyped(json, false); +} +function ReviewV2ReviewListV2ResponseReviewStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ReviewV2ReviewListV2ResponseReviewStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/RolesByTokenResponseRoles.d.ts b/dist/models/RolesByTokenResponseRoles.d.ts new file mode 100644 index 0000000..4a62a9c --- /dev/null +++ b/dist/models/RolesByTokenResponseRoles.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RolesByTokenResponseRoles + */ +export interface RolesByTokenResponseRoles { + /** + * Название роли. + * @type {string} + * @memberof RolesByTokenResponseRoles + */ + name?: string; + /** + * Методы, доступные для роли. + * @type {Array} + * @memberof RolesByTokenResponseRoles + */ + methods?: Array; +} +/** + * Check if a given object implements the RolesByTokenResponseRoles interface. + */ +export declare function instanceOfRolesByTokenResponseRoles(value: object): value is RolesByTokenResponseRoles; +export declare function RolesByTokenResponseRolesFromJSON(json: any): RolesByTokenResponseRoles; +export declare function RolesByTokenResponseRolesFromJSONTyped(json: any, ignoreDiscriminator: boolean): RolesByTokenResponseRoles; +export declare function RolesByTokenResponseRolesToJSON(value?: RolesByTokenResponseRoles | null): any; diff --git a/dist/models/RolesByTokenResponseRoles.js b/dist/models/RolesByTokenResponseRoles.js new file mode 100644 index 0000000..9174606 --- /dev/null +++ b/dist/models/RolesByTokenResponseRoles.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRolesByTokenResponseRoles = instanceOfRolesByTokenResponseRoles; +exports.RolesByTokenResponseRolesFromJSON = RolesByTokenResponseRolesFromJSON; +exports.RolesByTokenResponseRolesFromJSONTyped = RolesByTokenResponseRolesFromJSONTyped; +exports.RolesByTokenResponseRolesToJSON = RolesByTokenResponseRolesToJSON; +/** + * Check if a given object implements the RolesByTokenResponseRoles interface. + */ +function instanceOfRolesByTokenResponseRoles(value) { + return true; +} +function RolesByTokenResponseRolesFromJSON(json) { + return RolesByTokenResponseRolesFromJSONTyped(json, false); +} +function RolesByTokenResponseRolesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'methods': json['methods'] == null ? undefined : json['methods'], + }; +} +function RolesByTokenResponseRolesToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'methods': value['methods'], + }; +} diff --git a/dist/models/RowItem.d.ts b/dist/models/RowItem.d.ts new file mode 100644 index 0000000..4f62d26 --- /dev/null +++ b/dist/models/RowItem.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о товаре. + * @export + * @interface RowItem + */ +export interface RowItem { + /** + * Штрихкод товара. + * @type {string} + * @memberof RowItem + */ + barcode?: string; + /** + * Наименование товара. + * @type {string} + * @memberof RowItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof RowItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof RowItem + */ + sku?: number; +} +/** + * Check if a given object implements the RowItem interface. + */ +export declare function instanceOfRowItem(value: object): value is RowItem; +export declare function RowItemFromJSON(json: any): RowItem; +export declare function RowItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItem; +export declare function RowItemToJSON(value?: RowItem | null): any; diff --git a/dist/models/RowItem.js b/dist/models/RowItem.js new file mode 100644 index 0000000..baa3432 --- /dev/null +++ b/dist/models/RowItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRowItem = instanceOfRowItem; +exports.RowItemFromJSON = RowItemFromJSON; +exports.RowItemFromJSONTyped = RowItemFromJSONTyped; +exports.RowItemToJSON = RowItemToJSON; +/** + * Check if a given object implements the RowItem interface. + */ +function instanceOfRowItem(value) { + return true; +} +function RowItemFromJSON(json) { + return RowItemFromJSONTyped(json, false); +} +function RowItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function RowItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/RowItemCommission.d.ts b/dist/models/RowItemCommission.d.ts new file mode 100644 index 0000000..2d7c19c --- /dev/null +++ b/dist/models/RowItemCommission.d.ts @@ -0,0 +1,101 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за доставку. + * @export + * @interface RowItemCommission + */ +export interface RowItemCommission { + /** + * Сумма. + * @type {number} + * @memberof RowItemCommission + */ + amount?: number; + /** + * Баллы за скидки. + * @type {number} + * @memberof RowItemCommission + */ + bonus?: number; + /** + * Итоговая комиссия с учётом скидок и наценки. + * + * + * + * @type {number} + * @memberof RowItemCommission + */ + commission?: number; + /** + * Доплата за счёт Ozon. + * + * + * + * @type {number} + * @memberof RowItemCommission + */ + compensation?: number; + /** + * Цена за экземпляр. + * @type {number} + * @memberof RowItemCommission + */ + price_per_instance?: number; + /** + * Количество товара. + * @type {number} + * @memberof RowItemCommission + */ + quantity?: number; + /** + * Базовое вознаграждение Ozon. + * @type {number} + * @memberof RowItemCommission + */ + standard_fee?: number; + /** + * Выплаты по механикам лояльности партнёров: зелёные цены. + * @type {number} + * @memberof RowItemCommission + */ + bank_coinvestment?: number; + /** + * Выплаты по механикам лояльности партнёров: звёзды. + * @type {number} + * @memberof RowItemCommission + */ + stars?: number; + /** + * Выплаты по механикам лояльности партнёров: АПВЗ. + * @type {number} + * @memberof RowItemCommission + */ + pick_up_point_coinvestment?: number; + /** + * Итого к начислению. + * @type {number} + * @memberof RowItemCommission + */ + total?: number; +} +/** + * Check if a given object implements the RowItemCommission interface. + */ +export declare function instanceOfRowItemCommission(value: object): value is RowItemCommission; +export declare function RowItemCommissionFromJSON(json: any): RowItemCommission; +export declare function RowItemCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItemCommission; +export declare function RowItemCommissionToJSON(value?: RowItemCommission | null): any; diff --git a/dist/models/RowItemCommission.js b/dist/models/RowItemCommission.js new file mode 100644 index 0000000..1824245 --- /dev/null +++ b/dist/models/RowItemCommission.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRowItemCommission = instanceOfRowItemCommission; +exports.RowItemCommissionFromJSON = RowItemCommissionFromJSON; +exports.RowItemCommissionFromJSONTyped = RowItemCommissionFromJSONTyped; +exports.RowItemCommissionToJSON = RowItemCommissionToJSON; +/** + * Check if a given object implements the RowItemCommission interface. + */ +function instanceOfRowItemCommission(value) { + return true; +} +function RowItemCommissionFromJSON(json) { + return RowItemCommissionFromJSONTyped(json, false); +} +function RowItemCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'bonus': json['bonus'] == null ? undefined : json['bonus'], + 'commission': json['commission'] == null ? undefined : json['commission'], + 'compensation': json['compensation'] == null ? undefined : json['compensation'], + 'price_per_instance': json['price_per_instance'] == null ? undefined : json['price_per_instance'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'standard_fee': json['standard_fee'] == null ? undefined : json['standard_fee'], + 'bank_coinvestment': json['bank_coinvestment'] == null ? undefined : json['bank_coinvestment'], + 'stars': json['stars'] == null ? undefined : json['stars'], + 'pick_up_point_coinvestment': json['pick_up_point_coinvestment'] == null ? undefined : json['pick_up_point_coinvestment'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function RowItemCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'bonus': value['bonus'], + 'commission': value['commission'], + 'compensation': value['compensation'], + 'price_per_instance': value['price_per_instance'], + 'quantity': value['quantity'], + 'standard_fee': value['standard_fee'], + 'bank_coinvestment': value['bank_coinvestment'], + 'stars': value['stars'], + 'pick_up_point_coinvestment': value['pick_up_point_coinvestment'], + 'total': value['total'], + }; +} diff --git a/dist/models/RowItemCommissionReturn.d.ts b/dist/models/RowItemCommissionReturn.d.ts new file mode 100644 index 0000000..0bea424 --- /dev/null +++ b/dist/models/RowItemCommissionReturn.d.ts @@ -0,0 +1,97 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Комиссия за возврат товара. + * @export + * @interface RowItemCommissionReturn + */ +export interface RowItemCommissionReturn { + /** + * Сумма. + * @type {number} + * @memberof RowItemCommissionReturn + */ + amount?: number; + /** + * Баллы за скидки. + * @type {number} + * @memberof RowItemCommissionReturn + */ + bonus?: number; + /** + * Итоговая комиссия с учётом скидок и наценки. + * + * @type {number} + * @memberof RowItemCommissionReturn + */ + commission?: number; + /** + * Доплата за счёт Ozon. + * + * + * + * @type {number} + * @memberof RowItemCommissionReturn + */ + compensation?: number; + /** + * Цена за экземпляр. + * @type {number} + * @memberof RowItemCommissionReturn + */ + price_per_instance?: number; + /** + * Количество товара. + * @type {number} + * @memberof RowItemCommissionReturn + */ + quantity?: number; + /** + * Базовое вознаграждение Ozon. + * @type {number} + * @memberof RowItemCommissionReturn + */ + standard_fee?: number; + /** + * Выплаты по механикам лояльности партнёров: зелёные цены. + * @type {number} + * @memberof RowItemCommissionReturn + */ + bank_coinvestment?: number; + /** + * Выплаты по механикам лояльности партнёров: звёзды. + * @type {number} + * @memberof RowItemCommissionReturn + */ + stars?: number; + /** + * Выплаты по механикам лояльности партнёров: АПВЗ. + * @type {number} + * @memberof RowItemCommissionReturn + */ + pick_up_point_coinvestment?: number; + /** + * Итого к начислению. + * @type {number} + * @memberof RowItemCommissionReturn + */ + total?: number; +} +/** + * Check if a given object implements the RowItemCommissionReturn interface. + */ +export declare function instanceOfRowItemCommissionReturn(value: object): value is RowItemCommissionReturn; +export declare function RowItemCommissionReturnFromJSON(json: any): RowItemCommissionReturn; +export declare function RowItemCommissionReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItemCommissionReturn; +export declare function RowItemCommissionReturnToJSON(value?: RowItemCommissionReturn | null): any; diff --git a/dist/models/RowItemCommissionReturn.js b/dist/models/RowItemCommissionReturn.js new file mode 100644 index 0000000..38e6f57 --- /dev/null +++ b/dist/models/RowItemCommissionReturn.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRowItemCommissionReturn = instanceOfRowItemCommissionReturn; +exports.RowItemCommissionReturnFromJSON = RowItemCommissionReturnFromJSON; +exports.RowItemCommissionReturnFromJSONTyped = RowItemCommissionReturnFromJSONTyped; +exports.RowItemCommissionReturnToJSON = RowItemCommissionReturnToJSON; +/** + * Check if a given object implements the RowItemCommissionReturn interface. + */ +function instanceOfRowItemCommissionReturn(value) { + return true; +} +function RowItemCommissionReturnFromJSON(json) { + return RowItemCommissionReturnFromJSONTyped(json, false); +} +function RowItemCommissionReturnFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'bonus': json['bonus'] == null ? undefined : json['bonus'], + 'commission': json['commission'] == null ? undefined : json['commission'], + 'compensation': json['compensation'] == null ? undefined : json['compensation'], + 'price_per_instance': json['price_per_instance'] == null ? undefined : json['price_per_instance'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'standard_fee': json['standard_fee'] == null ? undefined : json['standard_fee'], + 'bank_coinvestment': json['bank_coinvestment'] == null ? undefined : json['bank_coinvestment'], + 'stars': json['stars'] == null ? undefined : json['stars'], + 'pick_up_point_coinvestment': json['pick_up_point_coinvestment'] == null ? undefined : json['pick_up_point_coinvestment'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function RowItemCommissionReturnToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'bonus': value['bonus'], + 'commission': value['commission'], + 'compensation': value['compensation'], + 'price_per_instance': value['price_per_instance'], + 'quantity': value['quantity'], + 'standard_fee': value['standard_fee'], + 'bank_coinvestment': value['bank_coinvestment'], + 'stars': value['stars'], + 'pick_up_point_coinvestment': value['pick_up_point_coinvestment'], + 'total': value['total'], + }; +} diff --git a/dist/models/RowItemLegalEntityDocument.d.ts b/dist/models/RowItemLegalEntityDocument.d.ts new file mode 100644 index 0000000..491e7a1 --- /dev/null +++ b/dist/models/RowItemLegalEntityDocument.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о продаже юридическому лицу. + * @export + * @interface RowItemLegalEntityDocument + */ +export interface RowItemLegalEntityDocument { + /** + * Номер счёта-фактуры. + * @type {string} + * @memberof RowItemLegalEntityDocument + */ + number?: string; + /** + * Дата в формате «ГГГГ-ММ-ДД». + * @type {string} + * @memberof RowItemLegalEntityDocument + */ + sale_date?: string; +} +/** + * Check if a given object implements the RowItemLegalEntityDocument interface. + */ +export declare function instanceOfRowItemLegalEntityDocument(value: object): value is RowItemLegalEntityDocument; +export declare function RowItemLegalEntityDocumentFromJSON(json: any): RowItemLegalEntityDocument; +export declare function RowItemLegalEntityDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItemLegalEntityDocument; +export declare function RowItemLegalEntityDocumentToJSON(value?: RowItemLegalEntityDocument | null): any; diff --git a/dist/models/RowItemLegalEntityDocument.js b/dist/models/RowItemLegalEntityDocument.js new file mode 100644 index 0000000..285b270 --- /dev/null +++ b/dist/models/RowItemLegalEntityDocument.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRowItemLegalEntityDocument = instanceOfRowItemLegalEntityDocument; +exports.RowItemLegalEntityDocumentFromJSON = RowItemLegalEntityDocumentFromJSON; +exports.RowItemLegalEntityDocumentFromJSONTyped = RowItemLegalEntityDocumentFromJSONTyped; +exports.RowItemLegalEntityDocumentToJSON = RowItemLegalEntityDocumentToJSON; +/** + * Check if a given object implements the RowItemLegalEntityDocument interface. + */ +function instanceOfRowItemLegalEntityDocument(value) { + return true; +} +function RowItemLegalEntityDocumentFromJSON(json) { + return RowItemLegalEntityDocumentFromJSONTyped(json, false); +} +function RowItemLegalEntityDocumentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'number': json['number'] == null ? undefined : json['number'], + 'sale_date': json['sale_date'] == null ? undefined : json['sale_date'], + }; +} +function RowItemLegalEntityDocumentToJSON(value) { + if (value == null) { + return value; + } + return { + 'number': value['number'], + 'sale_date': value['sale_date'], + }; +} diff --git a/dist/models/RowItemOrder.d.ts b/dist/models/RowItemOrder.d.ts new file mode 100644 index 0000000..dfbcb51 --- /dev/null +++ b/dist/models/RowItemOrder.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о заказе. + * @export + * @interface RowItemOrder + */ +export interface RowItemOrder { + /** + * Номер отправления. + * @type {string} + * @memberof RowItemOrder + */ + posting_number?: string; + /** + * Дата заказа в формате «ГГГГ-ММ-ДД». + * @type {string} + * @memberof RowItemOrder + */ + created_date?: string; +} +/** + * Check if a given object implements the RowItemOrder interface. + */ +export declare function instanceOfRowItemOrder(value: object): value is RowItemOrder; +export declare function RowItemOrderFromJSON(json: any): RowItemOrder; +export declare function RowItemOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): RowItemOrder; +export declare function RowItemOrderToJSON(value?: RowItemOrder | null): any; diff --git a/dist/models/RowItemOrder.js b/dist/models/RowItemOrder.js new file mode 100644 index 0000000..96a1082 --- /dev/null +++ b/dist/models/RowItemOrder.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRowItemOrder = instanceOfRowItemOrder; +exports.RowItemOrderFromJSON = RowItemOrderFromJSON; +exports.RowItemOrderFromJSONTyped = RowItemOrderFromJSONTyped; +exports.RowItemOrderToJSON = RowItemOrderToJSON; +/** + * Check if a given object implements the RowItemOrder interface. + */ +function instanceOfRowItemOrder(value) { + return true; +} +function RowItemOrderFromJSON(json) { + return RowItemOrderFromJSONTyped(json, false); +} +function RowItemOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + }; +} +function RowItemOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'created_date': value['created_date'], + }; +} diff --git a/dist/models/RpcStatus.d.ts b/dist/models/RpcStatus.d.ts new file mode 100644 index 0000000..3b51475 --- /dev/null +++ b/dist/models/RpcStatus.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface RpcStatus + */ +export interface RpcStatus { + /** + * Код ошибки. + * @type {number} + * @memberof RpcStatus + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {Array} + * @memberof RpcStatus + */ + details?: Array; + /** + * Описание ошибки. + * @type {string} + * @memberof RpcStatus + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatus interface. + */ +export declare function instanceOfRpcStatus(value: object): value is RpcStatus; +export declare function RpcStatusFromJSON(json: any): RpcStatus; +export declare function RpcStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatus; +export declare function RpcStatusToJSON(value?: RpcStatus | null): any; diff --git a/dist/models/RpcStatus.js b/dist/models/RpcStatus.js new file mode 100644 index 0000000..af2ee8c --- /dev/null +++ b/dist/models/RpcStatus.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRpcStatus = instanceOfRpcStatus; +exports.RpcStatusFromJSON = RpcStatusFromJSON; +exports.RpcStatusFromJSONTyped = RpcStatusFromJSONTyped; +exports.RpcStatusToJSON = RpcStatusToJSON; +const ProtobufAny_1 = require("./ProtobufAny"); +/** + * Check if a given object implements the RpcStatus interface. + */ +function instanceOfRpcStatus(value) { + return true; +} +function RpcStatusFromJSON(json) { + return RpcStatusFromJSONTyped(json, false); +} +function RpcStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAny_1.ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function RpcStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAny_1.ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/models/RpcStatusV1FinanceRealizationPosting.d.ts b/dist/models/RpcStatusV1FinanceRealizationPosting.d.ts new file mode 100644 index 0000000..7a1f547 --- /dev/null +++ b/dist/models/RpcStatusV1FinanceRealizationPosting.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface RpcStatusV1FinanceRealizationPosting + */ +export interface RpcStatusV1FinanceRealizationPosting { + /** + * Код ошибки. + * @type {number} + * @memberof RpcStatusV1FinanceRealizationPosting + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {Array} + * @memberof RpcStatusV1FinanceRealizationPosting + */ + details?: Array; + /** + * Описание ошибки: + * + * - `The requested report is too large. Use /v1/report/realization/posting/create.` — отчёт нельзя получить методом [/v1/finance/realization/posting](#operation/FinanceAPI_GetRealizationReportV1). Используйте метод [/v1/report/realization/posting/create](#operation/CreateCompanyFinanceRealizationPostingReport). + * - `Request validation error: invalid GetRealizationReportPostingRequest.Month: value must be inside range [1, 12]` — некорректное значение месяца. + * - `Year, Month, and Day parameters describe an un-representable DateTime.` — некорректная дата. + * - `Request validation error: invalid GetRealizationReportPostingRequest.Year: value must be greater than or equal to 2023` — некорректный год. Отчёт доступен с настоящего времени по август 2023 года включительно. + * + * @type {string} + * @memberof RpcStatusV1FinanceRealizationPosting + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatusV1FinanceRealizationPosting interface. + */ +export declare function instanceOfRpcStatusV1FinanceRealizationPosting(value: object): value is RpcStatusV1FinanceRealizationPosting; +export declare function RpcStatusV1FinanceRealizationPostingFromJSON(json: any): RpcStatusV1FinanceRealizationPosting; +export declare function RpcStatusV1FinanceRealizationPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatusV1FinanceRealizationPosting; +export declare function RpcStatusV1FinanceRealizationPostingToJSON(value?: RpcStatusV1FinanceRealizationPosting | null): any; diff --git a/dist/models/RpcStatusV1FinanceRealizationPosting.js b/dist/models/RpcStatusV1FinanceRealizationPosting.js new file mode 100644 index 0000000..cc06e6c --- /dev/null +++ b/dist/models/RpcStatusV1FinanceRealizationPosting.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRpcStatusV1FinanceRealizationPosting = instanceOfRpcStatusV1FinanceRealizationPosting; +exports.RpcStatusV1FinanceRealizationPostingFromJSON = RpcStatusV1FinanceRealizationPostingFromJSON; +exports.RpcStatusV1FinanceRealizationPostingFromJSONTyped = RpcStatusV1FinanceRealizationPostingFromJSONTyped; +exports.RpcStatusV1FinanceRealizationPostingToJSON = RpcStatusV1FinanceRealizationPostingToJSON; +const ProtobufAny_1 = require("./ProtobufAny"); +/** + * Check if a given object implements the RpcStatusV1FinanceRealizationPosting interface. + */ +function instanceOfRpcStatusV1FinanceRealizationPosting(value) { + return true; +} +function RpcStatusV1FinanceRealizationPostingFromJSON(json) { + return RpcStatusV1FinanceRealizationPostingFromJSONTyped(json, false); +} +function RpcStatusV1FinanceRealizationPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAny_1.ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function RpcStatusV1FinanceRealizationPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAny_1.ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/models/RpcStatusV1PolygonBind.d.ts b/dist/models/RpcStatusV1PolygonBind.d.ts new file mode 100644 index 0000000..c2a7fca --- /dev/null +++ b/dist/models/RpcStatusV1PolygonBind.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface RpcStatusV1PolygonBind + */ +export interface RpcStatusV1PolygonBind { + /** + * + * @type {number} + * @memberof RpcStatusV1PolygonBind + */ + code?: number; + /** + * + * @type {Array} + * @memberof RpcStatusV1PolygonBind + */ + details?: Array; + /** + * Сообщение об ошибке: + * + * - **delivery target polygons not provided** — полигоны не переданы; + * - **no delivery method id provided** — delivery_method_id не передан; + * - **no warehouse points provided** — не передана координата склада; + * - **polygon id .... not found** — переданы ID полигонов, которые не найдены в базе данных; + * - **not found polygon for warehouse point** — точка склада не принадлежит ни одному переданному полигону. + * + * @type {string} + * @memberof RpcStatusV1PolygonBind + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatusV1PolygonBind interface. + */ +export declare function instanceOfRpcStatusV1PolygonBind(value: object): value is RpcStatusV1PolygonBind; +export declare function RpcStatusV1PolygonBindFromJSON(json: any): RpcStatusV1PolygonBind; +export declare function RpcStatusV1PolygonBindFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatusV1PolygonBind; +export declare function RpcStatusV1PolygonBindToJSON(value?: RpcStatusV1PolygonBind | null): any; diff --git a/dist/models/RpcStatusV1PolygonBind.js b/dist/models/RpcStatusV1PolygonBind.js new file mode 100644 index 0000000..3a3daad --- /dev/null +++ b/dist/models/RpcStatusV1PolygonBind.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRpcStatusV1PolygonBind = instanceOfRpcStatusV1PolygonBind; +exports.RpcStatusV1PolygonBindFromJSON = RpcStatusV1PolygonBindFromJSON; +exports.RpcStatusV1PolygonBindFromJSONTyped = RpcStatusV1PolygonBindFromJSONTyped; +exports.RpcStatusV1PolygonBindToJSON = RpcStatusV1PolygonBindToJSON; +const ProtobufAny_1 = require("./ProtobufAny"); +/** + * Check if a given object implements the RpcStatusV1PolygonBind interface. + */ +function instanceOfRpcStatusV1PolygonBind(value) { + return true; +} +function RpcStatusV1PolygonBindFromJSON(json) { + return RpcStatusV1PolygonBindFromJSONTyped(json, false); +} +function RpcStatusV1PolygonBindFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAny_1.ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function RpcStatusV1PolygonBindToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAny_1.ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/models/RpcStatusV1PolygonCreate.d.ts b/dist/models/RpcStatusV1PolygonCreate.d.ts new file mode 100644 index 0000000..ae070a5 --- /dev/null +++ b/dist/models/RpcStatusV1PolygonCreate.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAny } from './ProtobufAny'; +/** + * + * @export + * @interface RpcStatusV1PolygonCreate + */ +export interface RpcStatusV1PolygonCreate { + /** + * Код ошибки. + * @type {number} + * @memberof RpcStatusV1PolygonCreate + */ + code?: number; + /** + * Информация об ошибке. + * @type {Array} + * @memberof RpcStatusV1PolygonCreate + */ + details?: Array; + /** + * Сообщение об ошибке: + * + * - `coordinates not provided` — координаты не переданы; + * - `invalid coordinates, must have two points in coordinate` — в какой-то точке передана только широта или долгота, нужно передать две точки; + * - `the first and last points in loop must be same` — первая и последняя точка не совпадают (по стандартным правилам geojson точки должны совпадать); + * - `non-full loops must have at least 4 unique vertices for polygons` — для полигона передано менее четырех точек. + * + * @type {string} + * @memberof RpcStatusV1PolygonCreate + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatusV1PolygonCreate interface. + */ +export declare function instanceOfRpcStatusV1PolygonCreate(value: object): value is RpcStatusV1PolygonCreate; +export declare function RpcStatusV1PolygonCreateFromJSON(json: any): RpcStatusV1PolygonCreate; +export declare function RpcStatusV1PolygonCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatusV1PolygonCreate; +export declare function RpcStatusV1PolygonCreateToJSON(value?: RpcStatusV1PolygonCreate | null): any; diff --git a/dist/models/RpcStatusV1PolygonCreate.js b/dist/models/RpcStatusV1PolygonCreate.js new file mode 100644 index 0000000..520f5d3 --- /dev/null +++ b/dist/models/RpcStatusV1PolygonCreate.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRpcStatusV1PolygonCreate = instanceOfRpcStatusV1PolygonCreate; +exports.RpcStatusV1PolygonCreateFromJSON = RpcStatusV1PolygonCreateFromJSON; +exports.RpcStatusV1PolygonCreateFromJSONTyped = RpcStatusV1PolygonCreateFromJSONTyped; +exports.RpcStatusV1PolygonCreateToJSON = RpcStatusV1PolygonCreateToJSON; +const ProtobufAny_1 = require("./ProtobufAny"); +/** + * Check if a given object implements the RpcStatusV1PolygonCreate interface. + */ +function instanceOfRpcStatusV1PolygonCreate(value) { + return true; +} +function RpcStatusV1PolygonCreateFromJSON(json) { + return RpcStatusV1PolygonCreateFromJSONTyped(json, false); +} +function RpcStatusV1PolygonCreateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAny_1.ProtobufAnyFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function RpcStatusV1PolygonCreateToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAny_1.ProtobufAnyToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/models/RpcStatusV2DeliveryCheckout.d.ts b/dist/models/RpcStatusV2DeliveryCheckout.d.ts new file mode 100644 index 0000000..b2f60e8 --- /dev/null +++ b/dist/models/RpcStatusV2DeliveryCheckout.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProtobufAnyV2DeliveryCheckout } from './ProtobufAnyV2DeliveryCheckout'; +/** + * + * @export + * @interface RpcStatusV2DeliveryCheckout + */ +export interface RpcStatusV2DeliveryCheckout { + /** + * Код ошибки. + * @type {number} + * @memberof RpcStatusV2DeliveryCheckout + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {Array} + * @memberof RpcStatusV2DeliveryCheckout + */ + details?: Array; + /** + * Описание ошибки. + * @type {string} + * @memberof RpcStatusV2DeliveryCheckout + */ + message?: string; +} +/** + * Check if a given object implements the RpcStatusV2DeliveryCheckout interface. + */ +export declare function instanceOfRpcStatusV2DeliveryCheckout(value: object): value is RpcStatusV2DeliveryCheckout; +export declare function RpcStatusV2DeliveryCheckoutFromJSON(json: any): RpcStatusV2DeliveryCheckout; +export declare function RpcStatusV2DeliveryCheckoutFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcStatusV2DeliveryCheckout; +export declare function RpcStatusV2DeliveryCheckoutToJSON(value?: RpcStatusV2DeliveryCheckout | null): any; diff --git a/dist/models/RpcStatusV2DeliveryCheckout.js b/dist/models/RpcStatusV2DeliveryCheckout.js new file mode 100644 index 0000000..56df602 --- /dev/null +++ b/dist/models/RpcStatusV2DeliveryCheckout.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRpcStatusV2DeliveryCheckout = instanceOfRpcStatusV2DeliveryCheckout; +exports.RpcStatusV2DeliveryCheckoutFromJSON = RpcStatusV2DeliveryCheckoutFromJSON; +exports.RpcStatusV2DeliveryCheckoutFromJSONTyped = RpcStatusV2DeliveryCheckoutFromJSONTyped; +exports.RpcStatusV2DeliveryCheckoutToJSON = RpcStatusV2DeliveryCheckoutToJSON; +const ProtobufAnyV2DeliveryCheckout_1 = require("./ProtobufAnyV2DeliveryCheckout"); +/** + * Check if a given object implements the RpcStatusV2DeliveryCheckout interface. + */ +function instanceOfRpcStatusV2DeliveryCheckout(value) { + return true; +} +function RpcStatusV2DeliveryCheckoutFromJSON(json) { + return RpcStatusV2DeliveryCheckoutFromJSONTyped(json, false); +} +function RpcStatusV2DeliveryCheckoutFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : (json['details'].map(ProtobufAnyV2DeliveryCheckout_1.ProtobufAnyV2DeliveryCheckoutFromJSON)), + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function RpcStatusV2DeliveryCheckoutToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'] == null ? undefined : (value['details'].map(ProtobufAnyV2DeliveryCheckout_1.ProtobufAnyV2DeliveryCheckoutToJSON)), + 'message': value['message'], + }; +} diff --git a/dist/models/SearchAttributeValuesResponseValue.d.ts b/dist/models/SearchAttributeValuesResponseValue.d.ts new file mode 100644 index 0000000..a76cb9b --- /dev/null +++ b/dist/models/SearchAttributeValuesResponseValue.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SearchAttributeValuesResponseValue + */ +export interface SearchAttributeValuesResponseValue { + /** + * Идентификатор значения характеристики. + * @type {number} + * @memberof SearchAttributeValuesResponseValue + */ + id?: number; + /** + * Дополнительная информация. + * @type {string} + * @memberof SearchAttributeValuesResponseValue + */ + info?: string; + /** + * Ссылка на изображение. + * @type {string} + * @memberof SearchAttributeValuesResponseValue + */ + picture?: string; + /** + * Значение характеристики товара. + * @type {string} + * @memberof SearchAttributeValuesResponseValue + */ + value?: string; +} +/** + * Check if a given object implements the SearchAttributeValuesResponseValue interface. + */ +export declare function instanceOfSearchAttributeValuesResponseValue(value: object): value is SearchAttributeValuesResponseValue; +export declare function SearchAttributeValuesResponseValueFromJSON(json: any): SearchAttributeValuesResponseValue; +export declare function SearchAttributeValuesResponseValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAttributeValuesResponseValue; +export declare function SearchAttributeValuesResponseValueToJSON(value?: SearchAttributeValuesResponseValue | null): any; diff --git a/dist/models/SearchAttributeValuesResponseValue.js b/dist/models/SearchAttributeValuesResponseValue.js new file mode 100644 index 0000000..8cc7131 --- /dev/null +++ b/dist/models/SearchAttributeValuesResponseValue.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSearchAttributeValuesResponseValue = instanceOfSearchAttributeValuesResponseValue; +exports.SearchAttributeValuesResponseValueFromJSON = SearchAttributeValuesResponseValueFromJSON; +exports.SearchAttributeValuesResponseValueFromJSONTyped = SearchAttributeValuesResponseValueFromJSONTyped; +exports.SearchAttributeValuesResponseValueToJSON = SearchAttributeValuesResponseValueToJSON; +/** + * Check if a given object implements the SearchAttributeValuesResponseValue interface. + */ +function instanceOfSearchAttributeValuesResponseValue(value) { + return true; +} +function SearchAttributeValuesResponseValueFromJSON(json) { + return SearchAttributeValuesResponseValueFromJSONTyped(json, false); +} +function SearchAttributeValuesResponseValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'info': json['info'] == null ? undefined : json['info'], + 'picture': json['picture'] == null ? undefined : json['picture'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function SearchAttributeValuesResponseValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'info': value['info'], + 'picture': value['picture'], + 'value': value['value'], + }; +} diff --git a/dist/models/SearchQueriesTextRequestSortBy.d.ts b/dist/models/SearchQueriesTextRequestSortBy.d.ts new file mode 100644 index 0000000..c753517 --- /dev/null +++ b/dist/models/SearchQueriesTextRequestSortBy.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому сортируются поисковые запросы: + * - `CLIENT_COUNT` — популярность запроса; + * - `ADD_TO_CART` — добавления в корзину; + * - `CONVERSION_TO_CART` — конверсия в корзине; + * - `AVG_PRICE` — средняя цена. + * + * @export + */ +export declare const SearchQueriesTextRequestSortBy: { + readonly CLIENT_COUNT: "CLIENT_COUNT"; + readonly ADD_TO_CART: "ADD_TO_CART"; + readonly CONVERSION_TO_CART: "CONVERSION_TO_CART"; + readonly AVG_PRICE: "AVG_PRICE"; +}; +export type SearchQueriesTextRequestSortBy = typeof SearchQueriesTextRequestSortBy[keyof typeof SearchQueriesTextRequestSortBy]; +export declare function instanceOfSearchQueriesTextRequestSortBy(value: any): boolean; +export declare function SearchQueriesTextRequestSortByFromJSON(json: any): SearchQueriesTextRequestSortBy; +export declare function SearchQueriesTextRequestSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchQueriesTextRequestSortBy; +export declare function SearchQueriesTextRequestSortByToJSON(value?: SearchQueriesTextRequestSortBy | null): any; diff --git a/dist/models/SearchQueriesTextRequestSortBy.js b/dist/models/SearchQueriesTextRequestSortBy.js new file mode 100644 index 0000000..b2b28bc --- /dev/null +++ b/dist/models/SearchQueriesTextRequestSortBy.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SearchQueriesTextRequestSortBy = void 0; +exports.instanceOfSearchQueriesTextRequestSortBy = instanceOfSearchQueriesTextRequestSortBy; +exports.SearchQueriesTextRequestSortByFromJSON = SearchQueriesTextRequestSortByFromJSON; +exports.SearchQueriesTextRequestSortByFromJSONTyped = SearchQueriesTextRequestSortByFromJSONTyped; +exports.SearchQueriesTextRequestSortByToJSON = SearchQueriesTextRequestSortByToJSON; +/** + * Параметр, по которому сортируются поисковые запросы: + * - `CLIENT_COUNT` — популярность запроса; + * - `ADD_TO_CART` — добавления в корзину; + * - `CONVERSION_TO_CART` — конверсия в корзине; + * - `AVG_PRICE` — средняя цена. + * + * @export + */ +exports.SearchQueriesTextRequestSortBy = { + CLIENT_COUNT: 'CLIENT_COUNT', + ADD_TO_CART: 'ADD_TO_CART', + CONVERSION_TO_CART: 'CONVERSION_TO_CART', + AVG_PRICE: 'AVG_PRICE' +}; +function instanceOfSearchQueriesTextRequestSortBy(value) { + for (const key in exports.SearchQueriesTextRequestSortBy) { + if (Object.prototype.hasOwnProperty.call(exports.SearchQueriesTextRequestSortBy, key)) { + if (exports.SearchQueriesTextRequestSortBy[key] === value) { + return true; + } + } + } + return false; +} +function SearchQueriesTextRequestSortByFromJSON(json) { + return SearchQueriesTextRequestSortByFromJSONTyped(json, false); +} +function SearchQueriesTextRequestSortByFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SearchQueriesTextRequestSortByToJSON(value) { + return value; +} diff --git a/dist/models/SearchQueriesTextRequestSortDir.d.ts b/dist/models/SearchQueriesTextRequestSortDir.d.ts new file mode 100644 index 0000000..9ec34a8 --- /dev/null +++ b/dist/models/SearchQueriesTextRequestSortDir.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const SearchQueriesTextRequestSortDir: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type SearchQueriesTextRequestSortDir = typeof SearchQueriesTextRequestSortDir[keyof typeof SearchQueriesTextRequestSortDir]; +export declare function instanceOfSearchQueriesTextRequestSortDir(value: any): boolean; +export declare function SearchQueriesTextRequestSortDirFromJSON(json: any): SearchQueriesTextRequestSortDir; +export declare function SearchQueriesTextRequestSortDirFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchQueriesTextRequestSortDir; +export declare function SearchQueriesTextRequestSortDirToJSON(value?: SearchQueriesTextRequestSortDir | null): any; diff --git a/dist/models/SearchQueriesTextRequestSortDir.js b/dist/models/SearchQueriesTextRequestSortDir.js new file mode 100644 index 0000000..e023ddc --- /dev/null +++ b/dist/models/SearchQueriesTextRequestSortDir.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SearchQueriesTextRequestSortDir = void 0; +exports.instanceOfSearchQueriesTextRequestSortDir = instanceOfSearchQueriesTextRequestSortDir; +exports.SearchQueriesTextRequestSortDirFromJSON = SearchQueriesTextRequestSortDirFromJSON; +exports.SearchQueriesTextRequestSortDirFromJSONTyped = SearchQueriesTextRequestSortDirFromJSONTyped; +exports.SearchQueriesTextRequestSortDirToJSON = SearchQueriesTextRequestSortDirToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.SearchQueriesTextRequestSortDir = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfSearchQueriesTextRequestSortDir(value) { + for (const key in exports.SearchQueriesTextRequestSortDir) { + if (Object.prototype.hasOwnProperty.call(exports.SearchQueriesTextRequestSortDir, key)) { + if (exports.SearchQueriesTextRequestSortDir[key] === value) { + return true; + } + } + } + return false; +} +function SearchQueriesTextRequestSortDirFromJSON(json) { + return SearchQueriesTextRequestSortDirFromJSONTyped(json, false); +} +function SearchQueriesTextRequestSortDirFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SearchQueriesTextRequestSortDirToJSON(value) { + return value; +} diff --git a/dist/models/SellerActionsListRequestActionTypeEnum.d.ts b/dist/models/SellerActionsListRequestActionTypeEnum.d.ts new file mode 100644 index 0000000..09d3cd6 --- /dev/null +++ b/dist/models/SellerActionsListRequestActionTypeEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Механика акции: + * - `DISCOUNT` — скидка; + * - `VOUCHER_DISCOUNT` — скидка по промокоду; + * - `DISCOUNT_WITH_CONDITION` — скидка от суммы заказа; + * - `INSTALLMENT` — беспроцентная рассрочка; + * - `INDIVIDUAL_DISCOUNT_BY_PRODUCTS` — бонусы продавца; + * - `OZON_ACCOUNT_DISCOUNT` — повышенная скидка с картой Ozon Банка; + * - `MULTI_LEVEL_DISCOUNT_ON_AMOUNT` — многоуровневая скидка от суммы. + * + * @export + */ +export declare const SellerActionsListRequestActionTypeEnum: { + readonly DISCOUNT: "DISCOUNT"; + readonly VOUCHER_DISCOUNT: "VOUCHER_DISCOUNT"; + readonly DISCOUNT_WITH_CONDITION: "DISCOUNT_WITH_CONDITION"; + readonly INSTALLMENT: "INSTALLMENT"; + readonly INDIVIDUAL_DISCOUNT_BY_PRODUCTS: "INDIVIDUAL_DISCOUNT_BY_PRODUCTS"; + readonly OZON_ACCOUNT_DISCOUNT: "OZON_ACCOUNT_DISCOUNT"; + readonly MULTI_LEVEL_DISCOUNT_ON_AMOUNT: "MULTI_LEVEL_DISCOUNT_ON_AMOUNT"; +}; +export type SellerActionsListRequestActionTypeEnum = typeof SellerActionsListRequestActionTypeEnum[keyof typeof SellerActionsListRequestActionTypeEnum]; +export declare function instanceOfSellerActionsListRequestActionTypeEnum(value: any): boolean; +export declare function SellerActionsListRequestActionTypeEnumFromJSON(json: any): SellerActionsListRequestActionTypeEnum; +export declare function SellerActionsListRequestActionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerActionsListRequestActionTypeEnum; +export declare function SellerActionsListRequestActionTypeEnumToJSON(value?: SellerActionsListRequestActionTypeEnum | null): any; diff --git a/dist/models/SellerActionsListRequestActionTypeEnum.js b/dist/models/SellerActionsListRequestActionTypeEnum.js new file mode 100644 index 0000000..0668001 --- /dev/null +++ b/dist/models/SellerActionsListRequestActionTypeEnum.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerActionsListRequestActionTypeEnum = void 0; +exports.instanceOfSellerActionsListRequestActionTypeEnum = instanceOfSellerActionsListRequestActionTypeEnum; +exports.SellerActionsListRequestActionTypeEnumFromJSON = SellerActionsListRequestActionTypeEnumFromJSON; +exports.SellerActionsListRequestActionTypeEnumFromJSONTyped = SellerActionsListRequestActionTypeEnumFromJSONTyped; +exports.SellerActionsListRequestActionTypeEnumToJSON = SellerActionsListRequestActionTypeEnumToJSON; +/** + * Механика акции: + * - `DISCOUNT` — скидка; + * - `VOUCHER_DISCOUNT` — скидка по промокоду; + * - `DISCOUNT_WITH_CONDITION` — скидка от суммы заказа; + * - `INSTALLMENT` — беспроцентная рассрочка; + * - `INDIVIDUAL_DISCOUNT_BY_PRODUCTS` — бонусы продавца; + * - `OZON_ACCOUNT_DISCOUNT` — повышенная скидка с картой Ozon Банка; + * - `MULTI_LEVEL_DISCOUNT_ON_AMOUNT` — многоуровневая скидка от суммы. + * + * @export + */ +exports.SellerActionsListRequestActionTypeEnum = { + DISCOUNT: 'DISCOUNT', + VOUCHER_DISCOUNT: 'VOUCHER_DISCOUNT', + DISCOUNT_WITH_CONDITION: 'DISCOUNT_WITH_CONDITION', + INSTALLMENT: 'INSTALLMENT', + INDIVIDUAL_DISCOUNT_BY_PRODUCTS: 'INDIVIDUAL_DISCOUNT_BY_PRODUCTS', + OZON_ACCOUNT_DISCOUNT: 'OZON_ACCOUNT_DISCOUNT', + MULTI_LEVEL_DISCOUNT_ON_AMOUNT: 'MULTI_LEVEL_DISCOUNT_ON_AMOUNT' +}; +function instanceOfSellerActionsListRequestActionTypeEnum(value) { + for (const key in exports.SellerActionsListRequestActionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SellerActionsListRequestActionTypeEnum, key)) { + if (exports.SellerActionsListRequestActionTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function SellerActionsListRequestActionTypeEnumFromJSON(json) { + return SellerActionsListRequestActionTypeEnumFromJSONTyped(json, false); +} +function SellerActionsListRequestActionTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SellerActionsListRequestActionTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/SellerActionsListRequestStatusEnum.d.ts b/dist/models/SellerActionsListRequestStatusEnum.d.ts new file mode 100644 index 0000000..58a3854 --- /dev/null +++ b/dist/models/SellerActionsListRequestStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус акции: + * - `ACTIVE` — активна; + * - `ENDED` — завершена; + * - `PLANNED` — запланирована; + * - `PAUSED` — приостановлена. + * + * @export + */ +export declare const SellerActionsListRequestStatusEnum: { + readonly ACTIVE: "ACTIVE"; + readonly ENDED: "ENDED"; + readonly PLANNED: "PLANNED"; + readonly PAUSED: "PAUSED"; +}; +export type SellerActionsListRequestStatusEnum = typeof SellerActionsListRequestStatusEnum[keyof typeof SellerActionsListRequestStatusEnum]; +export declare function instanceOfSellerActionsListRequestStatusEnum(value: any): boolean; +export declare function SellerActionsListRequestStatusEnumFromJSON(json: any): SellerActionsListRequestStatusEnum; +export declare function SellerActionsListRequestStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerActionsListRequestStatusEnum; +export declare function SellerActionsListRequestStatusEnumToJSON(value?: SellerActionsListRequestStatusEnum | null): any; diff --git a/dist/models/SellerActionsListRequestStatusEnum.js b/dist/models/SellerActionsListRequestStatusEnum.js new file mode 100644 index 0000000..10cd412 --- /dev/null +++ b/dist/models/SellerActionsListRequestStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerActionsListRequestStatusEnum = void 0; +exports.instanceOfSellerActionsListRequestStatusEnum = instanceOfSellerActionsListRequestStatusEnum; +exports.SellerActionsListRequestStatusEnumFromJSON = SellerActionsListRequestStatusEnumFromJSON; +exports.SellerActionsListRequestStatusEnumFromJSONTyped = SellerActionsListRequestStatusEnumFromJSONTyped; +exports.SellerActionsListRequestStatusEnumToJSON = SellerActionsListRequestStatusEnumToJSON; +/** + * Статус акции: + * - `ACTIVE` — активна; + * - `ENDED` — завершена; + * - `PLANNED` — запланирована; + * - `PAUSED` — приостановлена. + * + * @export + */ +exports.SellerActionsListRequestStatusEnum = { + ACTIVE: 'ACTIVE', + ENDED: 'ENDED', + PLANNED: 'PLANNED', + PAUSED: 'PAUSED' +}; +function instanceOfSellerActionsListRequestStatusEnum(value) { + for (const key in exports.SellerActionsListRequestStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SellerActionsListRequestStatusEnum, key)) { + if (exports.SellerActionsListRequestStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function SellerActionsListRequestStatusEnumFromJSON(json) { + return SellerActionsListRequestStatusEnumFromJSONTyped(json, false); +} +function SellerActionsListRequestStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SellerActionsListRequestStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/SellerActionsListResponseAction.d.ts b/dist/models/SellerActionsListResponseAction.d.ts new file mode 100644 index 0000000..dcf5d57 --- /dev/null +++ b/dist/models/SellerActionsListResponseAction.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ActionParameter } from './ActionParameter'; +/** + * + * @export + * @interface SellerActionsListResponseAction + */ +export interface SellerActionsListResponseAction { + /** + * Идентификатор акции. + * @type {number} + * @memberof SellerActionsListResponseAction + */ + action_id?: number; + /** + * + * @type {ActionParameter} + * @memberof SellerActionsListResponseAction + */ + action_parameters?: ActionParameter; + /** + * `true`, если акцию можно удалить. + * + * @type {boolean} + * @memberof SellerActionsListResponseAction + */ + allow_delete?: boolean; + /** + * Ссылка на хайлайт. + * @type {string} + * @memberof SellerActionsListResponseAction + */ + highlight_url?: string; + /** + * `true`, если акцию можно редактировать. + * + * @type {boolean} + * @memberof SellerActionsListResponseAction + */ + is_editable?: boolean; + /** + * `true`, если в акцию был добавлен хотя бы 1 товар. + * + * @type {boolean} + * @memberof SellerActionsListResponseAction + */ + is_participated?: boolean; + /** + * `true`, если акция включена. + * + * @type {boolean} + * @memberof SellerActionsListResponseAction + */ + is_turn_on?: boolean; + /** + * Общее количество товаров в акции. + * @type {number} + * @memberof SellerActionsListResponseAction + */ + sku_count?: number; +} +/** + * Check if a given object implements the SellerActionsListResponseAction interface. + */ +export declare function instanceOfSellerActionsListResponseAction(value: object): value is SellerActionsListResponseAction; +export declare function SellerActionsListResponseActionFromJSON(json: any): SellerActionsListResponseAction; +export declare function SellerActionsListResponseActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerActionsListResponseAction; +export declare function SellerActionsListResponseActionToJSON(value?: SellerActionsListResponseAction | null): any; diff --git a/dist/models/SellerActionsListResponseAction.js b/dist/models/SellerActionsListResponseAction.js new file mode 100644 index 0000000..6197493 --- /dev/null +++ b/dist/models/SellerActionsListResponseAction.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerActionsListResponseAction = instanceOfSellerActionsListResponseAction; +exports.SellerActionsListResponseActionFromJSON = SellerActionsListResponseActionFromJSON; +exports.SellerActionsListResponseActionFromJSONTyped = SellerActionsListResponseActionFromJSONTyped; +exports.SellerActionsListResponseActionToJSON = SellerActionsListResponseActionToJSON; +const ActionParameter_1 = require("./ActionParameter"); +/** + * Check if a given object implements the SellerActionsListResponseAction interface. + */ +function instanceOfSellerActionsListResponseAction(value) { + return true; +} +function SellerActionsListResponseActionFromJSON(json) { + return SellerActionsListResponseActionFromJSONTyped(json, false); +} +function SellerActionsListResponseActionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : (0, ActionParameter_1.ActionParameterFromJSON)(json['action_parameters']), + 'allow_delete': json['allow_delete'] == null ? undefined : json['allow_delete'], + 'highlight_url': json['highlight_url'] == null ? undefined : json['highlight_url'], + 'is_editable': json['is_editable'] == null ? undefined : json['is_editable'], + 'is_participated': json['is_participated'] == null ? undefined : json['is_participated'], + 'is_turn_on': json['is_turn_on'] == null ? undefined : json['is_turn_on'], + 'sku_count': json['sku_count'] == null ? undefined : json['sku_count'], + }; +} +function SellerActionsListResponseActionToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': (0, ActionParameter_1.ActionParameterToJSON)(value['action_parameters']), + 'allow_delete': value['allow_delete'], + 'highlight_url': value['highlight_url'], + 'is_editable': value['is_editable'], + 'is_participated': value['is_participated'], + 'is_turn_on': value['is_turn_on'], + 'sku_count': value['sku_count'], + }; +} diff --git a/dist/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.d.ts b/dist/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.d.ts new file mode 100644 index 0000000..58037df --- /dev/null +++ b/dist/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel + */ +export interface SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel { + /** + * Размер скидки. + * @type {number} + * @memberof SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel + */ + discount_value: number; + /** + * Минимальная сумма заказа для скидки. + * @type {number} + * @memberof SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel + */ + order_amount: number; +} +/** + * Check if a given object implements the SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel interface. + */ +export declare function instanceOfSellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel(value: object): value is SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel; +export declare function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON(json: any): SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel; +export declare function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel; +export declare function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON(value?: SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel | null): any; diff --git a/dist/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.js b/dist/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.js new file mode 100644 index 0000000..af6ed59 --- /dev/null +++ b/dist/models/SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel = instanceOfSellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel; +exports.SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON = SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON; +exports.SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSONTyped = SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSONTyped; +exports.SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON = SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON; +/** + * Check if a given object implements the SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel interface. + */ +function instanceOfSellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel(value) { + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('order_amount' in value) || value['order_amount'] === undefined) + return false; + return true; +} +function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON(json) { + return SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSONTyped(json, false); +} +function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount_value': json['discount_value'], + 'order_amount': json['order_amount'], + }; +} +function SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount_value': value['discount_value'], + 'order_amount': value['order_amount'], + }; +} diff --git a/dist/models/SellerApiActivateProductV1Request.d.ts b/dist/models/SellerApiActivateProductV1Request.d.ts new file mode 100644 index 0000000..eb9ae05 --- /dev/null +++ b/dist/models/SellerApiActivateProductV1Request.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductPrice } from './SellerApiProductPrice'; +/** + * + * @export + * @interface SellerApiActivateProductV1Request + */ +export interface SellerApiActivateProductV1Request { + /** + * Идентификатор акции. Можно получить с помощью метода [/v1/actions](#operation/Promos). + * @type {number} + * @memberof SellerApiActivateProductV1Request + */ + action_id: number; + /** + * Список товаров. + * @type {Array} + * @memberof SellerApiActivateProductV1Request + */ + products: Array; +} +/** + * Check if a given object implements the SellerApiActivateProductV1Request interface. + */ +export declare function instanceOfSellerApiActivateProductV1Request(value: object): value is SellerApiActivateProductV1Request; +export declare function SellerApiActivateProductV1RequestFromJSON(json: any): SellerApiActivateProductV1Request; +export declare function SellerApiActivateProductV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiActivateProductV1Request; +export declare function SellerApiActivateProductV1RequestToJSON(value?: SellerApiActivateProductV1Request | null): any; diff --git a/dist/models/SellerApiActivateProductV1Request.js b/dist/models/SellerApiActivateProductV1Request.js new file mode 100644 index 0000000..c9d3a95 --- /dev/null +++ b/dist/models/SellerApiActivateProductV1Request.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiActivateProductV1Request = instanceOfSellerApiActivateProductV1Request; +exports.SellerApiActivateProductV1RequestFromJSON = SellerApiActivateProductV1RequestFromJSON; +exports.SellerApiActivateProductV1RequestFromJSONTyped = SellerApiActivateProductV1RequestFromJSONTyped; +exports.SellerApiActivateProductV1RequestToJSON = SellerApiActivateProductV1RequestToJSON; +const SellerApiProductPrice_1 = require("./SellerApiProductPrice"); +/** + * Check if a given object implements the SellerApiActivateProductV1Request interface. + */ +function instanceOfSellerApiActivateProductV1Request(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +function SellerApiActivateProductV1RequestFromJSON(json) { + return SellerApiActivateProductV1RequestFromJSONTyped(json, false); +} +function SellerApiActivateProductV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'products': (json['products'].map(SellerApiProductPrice_1.SellerApiProductPriceFromJSON)), + }; +} +function SellerApiActivateProductV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'products': (value['products'].map(SellerApiProductPrice_1.SellerApiProductPriceToJSON)), + }; +} diff --git a/dist/models/SellerApiGetSellerActionsV1Response.d.ts b/dist/models/SellerApiGetSellerActionsV1Response.d.ts new file mode 100644 index 0000000..ea12228 --- /dev/null +++ b/dist/models/SellerApiGetSellerActionsV1Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetSellerActionsV1ResponseAction } from './GetSellerActionsV1ResponseAction'; +/** + * + * @export + * @interface SellerApiGetSellerActionsV1Response + */ +export interface SellerApiGetSellerActionsV1Response { + /** + * Результаты запроса. + * @type {Array} + * @memberof SellerApiGetSellerActionsV1Response + */ + result?: Array; +} +/** + * Check if a given object implements the SellerApiGetSellerActionsV1Response interface. + */ +export declare function instanceOfSellerApiGetSellerActionsV1Response(value: object): value is SellerApiGetSellerActionsV1Response; +export declare function SellerApiGetSellerActionsV1ResponseFromJSON(json: any): SellerApiGetSellerActionsV1Response; +export declare function SellerApiGetSellerActionsV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiGetSellerActionsV1Response; +export declare function SellerApiGetSellerActionsV1ResponseToJSON(value?: SellerApiGetSellerActionsV1Response | null): any; diff --git a/dist/models/SellerApiGetSellerActionsV1Response.js b/dist/models/SellerApiGetSellerActionsV1Response.js new file mode 100644 index 0000000..9f6fe71 --- /dev/null +++ b/dist/models/SellerApiGetSellerActionsV1Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiGetSellerActionsV1Response = instanceOfSellerApiGetSellerActionsV1Response; +exports.SellerApiGetSellerActionsV1ResponseFromJSON = SellerApiGetSellerActionsV1ResponseFromJSON; +exports.SellerApiGetSellerActionsV1ResponseFromJSONTyped = SellerApiGetSellerActionsV1ResponseFromJSONTyped; +exports.SellerApiGetSellerActionsV1ResponseToJSON = SellerApiGetSellerActionsV1ResponseToJSON; +const GetSellerActionsV1ResponseAction_1 = require("./GetSellerActionsV1ResponseAction"); +/** + * Check if a given object implements the SellerApiGetSellerActionsV1Response interface. + */ +function instanceOfSellerApiGetSellerActionsV1Response(value) { + return true; +} +function SellerApiGetSellerActionsV1ResponseFromJSON(json) { + return SellerApiGetSellerActionsV1ResponseFromJSONTyped(json, false); +} +function SellerApiGetSellerActionsV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(GetSellerActionsV1ResponseAction_1.GetSellerActionsV1ResponseActionFromJSON)), + }; +} +function SellerApiGetSellerActionsV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(GetSellerActionsV1ResponseAction_1.GetSellerActionsV1ResponseActionToJSON)), + }; +} diff --git a/dist/models/SellerApiGetSellerProductV1Request.d.ts b/dist/models/SellerApiGetSellerProductV1Request.d.ts new file mode 100644 index 0000000..6c9c85c --- /dev/null +++ b/dist/models/SellerApiGetSellerProductV1Request.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров. + * @export + * @interface SellerApiGetSellerProductV1Request + */ +export interface SellerApiGetSellerProductV1Request { + /** + * Идентификатор акции. Можно получить с помощью метода [/v1/actions](#operation/Promos). + * @type {number} + * @memberof SellerApiGetSellerProductV1Request + */ + action_id: number; + /** + * Количество ответов на странице. По умолчанию — 100. + * @type {number} + * @memberof SellerApiGetSellerProductV1Request + */ + limit?: number; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * @type {number} + * @memberof SellerApiGetSellerProductV1Request + */ + last_id?: number; +} +/** + * Check if a given object implements the SellerApiGetSellerProductV1Request interface. + */ +export declare function instanceOfSellerApiGetSellerProductV1Request(value: object): value is SellerApiGetSellerProductV1Request; +export declare function SellerApiGetSellerProductV1RequestFromJSON(json: any): SellerApiGetSellerProductV1Request; +export declare function SellerApiGetSellerProductV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiGetSellerProductV1Request; +export declare function SellerApiGetSellerProductV1RequestToJSON(value?: SellerApiGetSellerProductV1Request | null): any; diff --git a/dist/models/SellerApiGetSellerProductV1Request.js b/dist/models/SellerApiGetSellerProductV1Request.js new file mode 100644 index 0000000..fd084e5 --- /dev/null +++ b/dist/models/SellerApiGetSellerProductV1Request.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiGetSellerProductV1Request = instanceOfSellerApiGetSellerProductV1Request; +exports.SellerApiGetSellerProductV1RequestFromJSON = SellerApiGetSellerProductV1RequestFromJSON; +exports.SellerApiGetSellerProductV1RequestFromJSONTyped = SellerApiGetSellerProductV1RequestFromJSONTyped; +exports.SellerApiGetSellerProductV1RequestToJSON = SellerApiGetSellerProductV1RequestToJSON; +/** + * Check if a given object implements the SellerApiGetSellerProductV1Request interface. + */ +function instanceOfSellerApiGetSellerProductV1Request(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + return true; +} +function SellerApiGetSellerProductV1RequestFromJSON(json) { + return SellerApiGetSellerProductV1RequestFromJSONTyped(json, false); +} +function SellerApiGetSellerProductV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function SellerApiGetSellerProductV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'limit': value['limit'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/SellerApiGetSellerProductV1Response.d.ts b/dist/models/SellerApiGetSellerProductV1Response.d.ts new file mode 100644 index 0000000..2986994 --- /dev/null +++ b/dist/models/SellerApiGetSellerProductV1Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiGetSellerProductV1ResponseResult } from './SellerApiGetSellerProductV1ResponseResult'; +/** + * + * @export + * @interface SellerApiGetSellerProductV1Response + */ +export interface SellerApiGetSellerProductV1Response { + /** + * + * @type {SellerApiGetSellerProductV1ResponseResult} + * @memberof SellerApiGetSellerProductV1Response + */ + result?: SellerApiGetSellerProductV1ResponseResult; +} +/** + * Check if a given object implements the SellerApiGetSellerProductV1Response interface. + */ +export declare function instanceOfSellerApiGetSellerProductV1Response(value: object): value is SellerApiGetSellerProductV1Response; +export declare function SellerApiGetSellerProductV1ResponseFromJSON(json: any): SellerApiGetSellerProductV1Response; +export declare function SellerApiGetSellerProductV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiGetSellerProductV1Response; +export declare function SellerApiGetSellerProductV1ResponseToJSON(value?: SellerApiGetSellerProductV1Response | null): any; diff --git a/dist/models/SellerApiGetSellerProductV1Response.js b/dist/models/SellerApiGetSellerProductV1Response.js new file mode 100644 index 0000000..03b37bc --- /dev/null +++ b/dist/models/SellerApiGetSellerProductV1Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiGetSellerProductV1Response = instanceOfSellerApiGetSellerProductV1Response; +exports.SellerApiGetSellerProductV1ResponseFromJSON = SellerApiGetSellerProductV1ResponseFromJSON; +exports.SellerApiGetSellerProductV1ResponseFromJSONTyped = SellerApiGetSellerProductV1ResponseFromJSONTyped; +exports.SellerApiGetSellerProductV1ResponseToJSON = SellerApiGetSellerProductV1ResponseToJSON; +const SellerApiGetSellerProductV1ResponseResult_1 = require("./SellerApiGetSellerProductV1ResponseResult"); +/** + * Check if a given object implements the SellerApiGetSellerProductV1Response interface. + */ +function instanceOfSellerApiGetSellerProductV1Response(value) { + return true; +} +function SellerApiGetSellerProductV1ResponseFromJSON(json) { + return SellerApiGetSellerProductV1ResponseFromJSONTyped(json, false); +} +function SellerApiGetSellerProductV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, SellerApiGetSellerProductV1ResponseResult_1.SellerApiGetSellerProductV1ResponseResultFromJSON)(json['result']), + }; +} +function SellerApiGetSellerProductV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, SellerApiGetSellerProductV1ResponseResult_1.SellerApiGetSellerProductV1ResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/SellerApiGetSellerProductV1ResponseResult.d.ts b/dist/models/SellerApiGetSellerProductV1ResponseResult.d.ts new file mode 100644 index 0000000..60cf70f --- /dev/null +++ b/dist/models/SellerApiGetSellerProductV1ResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProduct } from './SellerApiProduct'; +/** + * Результаты запроса. + * @export + * @interface SellerApiGetSellerProductV1ResponseResult + */ +export interface SellerApiGetSellerProductV1ResponseResult { + /** + * Список товаров. + * @type {Array} + * @memberof SellerApiGetSellerProductV1ResponseResult + */ + products?: Array; + /** + * Общее количество товаров, которое доступно для акции. + * @type {number} + * @memberof SellerApiGetSellerProductV1ResponseResult + */ + total?: number; + /** + * Идентификатор последнего значения на странице. Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * @type {number} + * @memberof SellerApiGetSellerProductV1ResponseResult + */ + last_id?: number; +} +/** + * Check if a given object implements the SellerApiGetSellerProductV1ResponseResult interface. + */ +export declare function instanceOfSellerApiGetSellerProductV1ResponseResult(value: object): value is SellerApiGetSellerProductV1ResponseResult; +export declare function SellerApiGetSellerProductV1ResponseResultFromJSON(json: any): SellerApiGetSellerProductV1ResponseResult; +export declare function SellerApiGetSellerProductV1ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiGetSellerProductV1ResponseResult; +export declare function SellerApiGetSellerProductV1ResponseResultToJSON(value?: SellerApiGetSellerProductV1ResponseResult | null): any; diff --git a/dist/models/SellerApiGetSellerProductV1ResponseResult.js b/dist/models/SellerApiGetSellerProductV1ResponseResult.js new file mode 100644 index 0000000..54532ab --- /dev/null +++ b/dist/models/SellerApiGetSellerProductV1ResponseResult.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiGetSellerProductV1ResponseResult = instanceOfSellerApiGetSellerProductV1ResponseResult; +exports.SellerApiGetSellerProductV1ResponseResultFromJSON = SellerApiGetSellerProductV1ResponseResultFromJSON; +exports.SellerApiGetSellerProductV1ResponseResultFromJSONTyped = SellerApiGetSellerProductV1ResponseResultFromJSONTyped; +exports.SellerApiGetSellerProductV1ResponseResultToJSON = SellerApiGetSellerProductV1ResponseResultToJSON; +const SellerApiProduct_1 = require("./SellerApiProduct"); +/** + * Check if a given object implements the SellerApiGetSellerProductV1ResponseResult interface. + */ +function instanceOfSellerApiGetSellerProductV1ResponseResult(value) { + return true; +} +function SellerApiGetSellerProductV1ResponseResultFromJSON(json) { + return SellerApiGetSellerProductV1ResponseResultFromJSONTyped(json, false); +} +function SellerApiGetSellerProductV1ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(SellerApiProduct_1.SellerApiProductFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function SellerApiGetSellerProductV1ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(SellerApiProduct_1.SellerApiProductToJSON)), + 'total': value['total'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/SellerApiProduct.d.ts b/dist/models/SellerApiProduct.d.ts new file mode 100644 index 0000000..0f469a1 --- /dev/null +++ b/dist/models/SellerApiProduct.d.ts @@ -0,0 +1,111 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProduct + */ +export interface SellerApiProduct { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof SellerApiProduct + */ + id?: number; + /** + * Текущая цена товара без скидки. + * @type {number} + * @memberof SellerApiProduct + */ + price?: number; + /** + * Цена товара по акции. + * @type {number} + * @memberof SellerApiProduct + */ + action_price?: number; + /** + * `true`, если цена товара выше рекомендуемой. Товар отмечен красным и может быть исключён из акции. + * + * @type {boolean} + * @memberof SellerApiProduct + */ + alert_max_action_price_failed?: boolean; + /** + * Рекомендуемая цена товара по акции. + * @type {number} + * @memberof SellerApiProduct + */ + alert_max_action_price?: number; + /** + * Максимально возможная цена товара по акции. + * @type {number} + * @memberof SellerApiProduct + */ + max_action_price?: number; + /** + * Тип добавления товара в акцию: автоматически или вручную продавцом. + * + * @type {string} + * @memberof SellerApiProduct + */ + add_mode?: string; + /** + * Минимальное число единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof SellerApiProduct + */ + min_stock?: number; + /** + * Число единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof SellerApiProduct + */ + stock?: number; + /** + * Размер бустинга товара. + * @type {number} + * @memberof SellerApiProduct + */ + current_boost?: number; + /** + * Цена товара для минимального размера бустинга. + * @type {number} + * @memberof SellerApiProduct + */ + price_min_elastic?: number; + /** + * Цена товара для максимального размера бустинга. + * @type {number} + * @memberof SellerApiProduct + */ + price_max_elastic?: number; + /** + * Минимальный размер бустинга в процентах. + * @type {number} + * @memberof SellerApiProduct + */ + min_boost?: number; + /** + * Максимальный размер бустинга в процентах. + * @type {number} + * @memberof SellerApiProduct + */ + max_boost?: number; +} +/** + * Check if a given object implements the SellerApiProduct interface. + */ +export declare function instanceOfSellerApiProduct(value: object): value is SellerApiProduct; +export declare function SellerApiProductFromJSON(json: any): SellerApiProduct; +export declare function SellerApiProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProduct; +export declare function SellerApiProductToJSON(value?: SellerApiProduct | null): any; diff --git a/dist/models/SellerApiProduct.js b/dist/models/SellerApiProduct.js new file mode 100644 index 0000000..fffb329 --- /dev/null +++ b/dist/models/SellerApiProduct.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProduct = instanceOfSellerApiProduct; +exports.SellerApiProductFromJSON = SellerApiProductFromJSON; +exports.SellerApiProductFromJSONTyped = SellerApiProductFromJSONTyped; +exports.SellerApiProductToJSON = SellerApiProductToJSON; +/** + * Check if a given object implements the SellerApiProduct interface. + */ +function instanceOfSellerApiProduct(value) { + return true; +} +function SellerApiProductFromJSON(json) { + return SellerApiProductFromJSONTyped(json, false); +} +function SellerApiProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'price': json['price'] == null ? undefined : json['price'], + 'action_price': json['action_price'] == null ? undefined : json['action_price'], + 'alert_max_action_price_failed': json['alert_max_action_price_failed'] == null ? undefined : json['alert_max_action_price_failed'], + 'alert_max_action_price': json['alert_max_action_price'] == null ? undefined : json['alert_max_action_price'], + 'max_action_price': json['max_action_price'] == null ? undefined : json['max_action_price'], + 'add_mode': json['add_mode'] == null ? undefined : json['add_mode'], + 'min_stock': json['min_stock'] == null ? undefined : json['min_stock'], + 'stock': json['stock'] == null ? undefined : json['stock'], + 'current_boost': json['current_boost'] == null ? undefined : json['current_boost'], + 'price_min_elastic': json['price_min_elastic'] == null ? undefined : json['price_min_elastic'], + 'price_max_elastic': json['price_max_elastic'] == null ? undefined : json['price_max_elastic'], + 'min_boost': json['min_boost'] == null ? undefined : json['min_boost'], + 'max_boost': json['max_boost'] == null ? undefined : json['max_boost'], + }; +} +function SellerApiProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'price': value['price'], + 'action_price': value['action_price'], + 'alert_max_action_price_failed': value['alert_max_action_price_failed'], + 'alert_max_action_price': value['alert_max_action_price'], + 'max_action_price': value['max_action_price'], + 'add_mode': value['add_mode'], + 'min_stock': value['min_stock'], + 'stock': value['stock'], + 'current_boost': value['current_boost'], + 'price_min_elastic': value['price_min_elastic'], + 'price_max_elastic': value['price_max_elastic'], + 'min_boost': value['min_boost'], + 'max_boost': value['max_boost'], + }; +} diff --git a/dist/models/SellerApiProductIDsV1Request.d.ts b/dist/models/SellerApiProductIDsV1Request.d.ts new file mode 100644 index 0000000..44d3e21 --- /dev/null +++ b/dist/models/SellerApiProductIDsV1Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProductIDsV1Request + */ +export interface SellerApiProductIDsV1Request { + /** + * Идентификатор акции. Можно получить с помощью метода [/v1/actions](#operation/Promos). + * @type {number} + * @memberof SellerApiProductIDsV1Request + */ + action_id: number; + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof SellerApiProductIDsV1Request + */ + product_ids: Array; +} +/** + * Check if a given object implements the SellerApiProductIDsV1Request interface. + */ +export declare function instanceOfSellerApiProductIDsV1Request(value: object): value is SellerApiProductIDsV1Request; +export declare function SellerApiProductIDsV1RequestFromJSON(json: any): SellerApiProductIDsV1Request; +export declare function SellerApiProductIDsV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductIDsV1Request; +export declare function SellerApiProductIDsV1RequestToJSON(value?: SellerApiProductIDsV1Request | null): any; diff --git a/dist/models/SellerApiProductIDsV1Request.js b/dist/models/SellerApiProductIDsV1Request.js new file mode 100644 index 0000000..0dcf9aa --- /dev/null +++ b/dist/models/SellerApiProductIDsV1Request.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProductIDsV1Request = instanceOfSellerApiProductIDsV1Request; +exports.SellerApiProductIDsV1RequestFromJSON = SellerApiProductIDsV1RequestFromJSON; +exports.SellerApiProductIDsV1RequestFromJSONTyped = SellerApiProductIDsV1RequestFromJSONTyped; +exports.SellerApiProductIDsV1RequestToJSON = SellerApiProductIDsV1RequestToJSON; +/** + * Check if a given object implements the SellerApiProductIDsV1Request interface. + */ +function instanceOfSellerApiProductIDsV1Request(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('product_ids' in value) || value['product_ids'] === undefined) + return false; + return true; +} +function SellerApiProductIDsV1RequestFromJSON(json) { + return SellerApiProductIDsV1RequestFromJSONTyped(json, false); +} +function SellerApiProductIDsV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'product_ids': json['product_ids'], + }; +} +function SellerApiProductIDsV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/models/SellerApiProductPrice.d.ts b/dist/models/SellerApiProductPrice.d.ts new file mode 100644 index 0000000..a65767b --- /dev/null +++ b/dist/models/SellerApiProductPrice.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProductPrice + */ +export interface SellerApiProductPrice { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof SellerApiProductPrice + */ + product_id: number; + /** + * Цена товара по акции. + * @type {number} + * @memberof SellerApiProductPrice + */ + action_price: number; + /** + * Количество единиц товара в акции типа «Скидка на сток». + * @type {number} + * @memberof SellerApiProductPrice + */ + stock?: number; +} +/** + * Check if a given object implements the SellerApiProductPrice interface. + */ +export declare function instanceOfSellerApiProductPrice(value: object): value is SellerApiProductPrice; +export declare function SellerApiProductPriceFromJSON(json: any): SellerApiProductPrice; +export declare function SellerApiProductPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductPrice; +export declare function SellerApiProductPriceToJSON(value?: SellerApiProductPrice | null): any; diff --git a/dist/models/SellerApiProductPrice.js b/dist/models/SellerApiProductPrice.js new file mode 100644 index 0000000..2acc20f --- /dev/null +++ b/dist/models/SellerApiProductPrice.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProductPrice = instanceOfSellerApiProductPrice; +exports.SellerApiProductPriceFromJSON = SellerApiProductPriceFromJSON; +exports.SellerApiProductPriceFromJSONTyped = SellerApiProductPriceFromJSONTyped; +exports.SellerApiProductPriceToJSON = SellerApiProductPriceToJSON; +/** + * Check if a given object implements the SellerApiProductPrice interface. + */ +function instanceOfSellerApiProductPrice(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('action_price' in value) || value['action_price'] === undefined) + return false; + return true; +} +function SellerApiProductPriceFromJSON(json) { + return SellerApiProductPriceFromJSONTyped(json, false); +} +function SellerApiProductPriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + 'action_price': json['action_price'], + 'stock': json['stock'] == null ? undefined : json['stock'], + }; +} +function SellerApiProductPriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'action_price': value['action_price'], + 'stock': value['stock'], + }; +} diff --git a/dist/models/SellerApiProductV1Response.d.ts b/dist/models/SellerApiProductV1Response.d.ts new file mode 100644 index 0000000..d88a7a0 --- /dev/null +++ b/dist/models/SellerApiProductV1Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductV1ResponseResult } from './SellerApiProductV1ResponseResult'; +/** + * + * @export + * @interface SellerApiProductV1Response + */ +export interface SellerApiProductV1Response { + /** + * + * @type {SellerApiProductV1ResponseResult} + * @memberof SellerApiProductV1Response + */ + result?: SellerApiProductV1ResponseResult; +} +/** + * Check if a given object implements the SellerApiProductV1Response interface. + */ +export declare function instanceOfSellerApiProductV1Response(value: object): value is SellerApiProductV1Response; +export declare function SellerApiProductV1ResponseFromJSON(json: any): SellerApiProductV1Response; +export declare function SellerApiProductV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1Response; +export declare function SellerApiProductV1ResponseToJSON(value?: SellerApiProductV1Response | null): any; diff --git a/dist/models/SellerApiProductV1Response.js b/dist/models/SellerApiProductV1Response.js new file mode 100644 index 0000000..f6ee468 --- /dev/null +++ b/dist/models/SellerApiProductV1Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProductV1Response = instanceOfSellerApiProductV1Response; +exports.SellerApiProductV1ResponseFromJSON = SellerApiProductV1ResponseFromJSON; +exports.SellerApiProductV1ResponseFromJSONTyped = SellerApiProductV1ResponseFromJSONTyped; +exports.SellerApiProductV1ResponseToJSON = SellerApiProductV1ResponseToJSON; +const SellerApiProductV1ResponseResult_1 = require("./SellerApiProductV1ResponseResult"); +/** + * Check if a given object implements the SellerApiProductV1Response interface. + */ +function instanceOfSellerApiProductV1Response(value) { + return true; +} +function SellerApiProductV1ResponseFromJSON(json) { + return SellerApiProductV1ResponseFromJSONTyped(json, false); +} +function SellerApiProductV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, SellerApiProductV1ResponseResult_1.SellerApiProductV1ResponseResultFromJSON)(json['result']), + }; +} +function SellerApiProductV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, SellerApiProductV1ResponseResult_1.SellerApiProductV1ResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/SellerApiProductV1ResponseDeactivate.d.ts b/dist/models/SellerApiProductV1ResponseDeactivate.d.ts new file mode 100644 index 0000000..67fca49 --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseDeactivate.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductV1ResponseResultDeactivate } from './SellerApiProductV1ResponseResultDeactivate'; +/** + * + * @export + * @interface SellerApiProductV1ResponseDeactivate + */ +export interface SellerApiProductV1ResponseDeactivate { + /** + * + * @type {SellerApiProductV1ResponseResultDeactivate} + * @memberof SellerApiProductV1ResponseDeactivate + */ + result?: SellerApiProductV1ResponseResultDeactivate; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseDeactivate interface. + */ +export declare function instanceOfSellerApiProductV1ResponseDeactivate(value: object): value is SellerApiProductV1ResponseDeactivate; +export declare function SellerApiProductV1ResponseDeactivateFromJSON(json: any): SellerApiProductV1ResponseDeactivate; +export declare function SellerApiProductV1ResponseDeactivateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseDeactivate; +export declare function SellerApiProductV1ResponseDeactivateToJSON(value?: SellerApiProductV1ResponseDeactivate | null): any; diff --git a/dist/models/SellerApiProductV1ResponseDeactivate.js b/dist/models/SellerApiProductV1ResponseDeactivate.js new file mode 100644 index 0000000..0cb2311 --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseDeactivate.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProductV1ResponseDeactivate = instanceOfSellerApiProductV1ResponseDeactivate; +exports.SellerApiProductV1ResponseDeactivateFromJSON = SellerApiProductV1ResponseDeactivateFromJSON; +exports.SellerApiProductV1ResponseDeactivateFromJSONTyped = SellerApiProductV1ResponseDeactivateFromJSONTyped; +exports.SellerApiProductV1ResponseDeactivateToJSON = SellerApiProductV1ResponseDeactivateToJSON; +const SellerApiProductV1ResponseResultDeactivate_1 = require("./SellerApiProductV1ResponseResultDeactivate"); +/** + * Check if a given object implements the SellerApiProductV1ResponseDeactivate interface. + */ +function instanceOfSellerApiProductV1ResponseDeactivate(value) { + return true; +} +function SellerApiProductV1ResponseDeactivateFromJSON(json) { + return SellerApiProductV1ResponseDeactivateFromJSONTyped(json, false); +} +function SellerApiProductV1ResponseDeactivateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, SellerApiProductV1ResponseResultDeactivate_1.SellerApiProductV1ResponseResultDeactivateFromJSON)(json['result']), + }; +} +function SellerApiProductV1ResponseDeactivateToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, SellerApiProductV1ResponseResultDeactivate_1.SellerApiProductV1ResponseResultDeactivateToJSON)(value['result']), + }; +} diff --git a/dist/models/SellerApiProductV1ResponseProduct.d.ts b/dist/models/SellerApiProductV1ResponseProduct.d.ts new file mode 100644 index 0000000..4a3dd33 --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProductV1ResponseProduct + */ +export interface SellerApiProductV1ResponseProduct { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof SellerApiProductV1ResponseProduct + */ + product_id?: number; + /** + * Причина, почему товар не добавлен в акцию. + * @type {string} + * @memberof SellerApiProductV1ResponseProduct + */ + reason?: string; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseProduct interface. + */ +export declare function instanceOfSellerApiProductV1ResponseProduct(value: object): value is SellerApiProductV1ResponseProduct; +export declare function SellerApiProductV1ResponseProductFromJSON(json: any): SellerApiProductV1ResponseProduct; +export declare function SellerApiProductV1ResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseProduct; +export declare function SellerApiProductV1ResponseProductToJSON(value?: SellerApiProductV1ResponseProduct | null): any; diff --git a/dist/models/SellerApiProductV1ResponseProduct.js b/dist/models/SellerApiProductV1ResponseProduct.js new file mode 100644 index 0000000..b1c420a --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseProduct.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProductV1ResponseProduct = instanceOfSellerApiProductV1ResponseProduct; +exports.SellerApiProductV1ResponseProductFromJSON = SellerApiProductV1ResponseProductFromJSON; +exports.SellerApiProductV1ResponseProductFromJSONTyped = SellerApiProductV1ResponseProductFromJSONTyped; +exports.SellerApiProductV1ResponseProductToJSON = SellerApiProductV1ResponseProductToJSON; +/** + * Check if a given object implements the SellerApiProductV1ResponseProduct interface. + */ +function instanceOfSellerApiProductV1ResponseProduct(value) { + return true; +} +function SellerApiProductV1ResponseProductFromJSON(json) { + return SellerApiProductV1ResponseProductFromJSONTyped(json, false); +} +function SellerApiProductV1ResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} +function SellerApiProductV1ResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'reason': value['reason'], + }; +} diff --git a/dist/models/SellerApiProductV1ResponseProductDeactivate.d.ts b/dist/models/SellerApiProductV1ResponseProductDeactivate.d.ts new file mode 100644 index 0000000..6fe68b7 --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseProductDeactivate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerApiProductV1ResponseProductDeactivate + */ +export interface SellerApiProductV1ResponseProductDeactivate { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof SellerApiProductV1ResponseProductDeactivate + */ + product_id?: number; + /** + * Причина, почему товар не удалён из акции. + * @type {string} + * @memberof SellerApiProductV1ResponseProductDeactivate + */ + reason?: string; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseProductDeactivate interface. + */ +export declare function instanceOfSellerApiProductV1ResponseProductDeactivate(value: object): value is SellerApiProductV1ResponseProductDeactivate; +export declare function SellerApiProductV1ResponseProductDeactivateFromJSON(json: any): SellerApiProductV1ResponseProductDeactivate; +export declare function SellerApiProductV1ResponseProductDeactivateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseProductDeactivate; +export declare function SellerApiProductV1ResponseProductDeactivateToJSON(value?: SellerApiProductV1ResponseProductDeactivate | null): any; diff --git a/dist/models/SellerApiProductV1ResponseProductDeactivate.js b/dist/models/SellerApiProductV1ResponseProductDeactivate.js new file mode 100644 index 0000000..e78d11e --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseProductDeactivate.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProductV1ResponseProductDeactivate = instanceOfSellerApiProductV1ResponseProductDeactivate; +exports.SellerApiProductV1ResponseProductDeactivateFromJSON = SellerApiProductV1ResponseProductDeactivateFromJSON; +exports.SellerApiProductV1ResponseProductDeactivateFromJSONTyped = SellerApiProductV1ResponseProductDeactivateFromJSONTyped; +exports.SellerApiProductV1ResponseProductDeactivateToJSON = SellerApiProductV1ResponseProductDeactivateToJSON; +/** + * Check if a given object implements the SellerApiProductV1ResponseProductDeactivate interface. + */ +function instanceOfSellerApiProductV1ResponseProductDeactivate(value) { + return true; +} +function SellerApiProductV1ResponseProductDeactivateFromJSON(json) { + return SellerApiProductV1ResponseProductDeactivateFromJSONTyped(json, false); +} +function SellerApiProductV1ResponseProductDeactivateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} +function SellerApiProductV1ResponseProductDeactivateToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'reason': value['reason'], + }; +} diff --git a/dist/models/SellerApiProductV1ResponseResult.d.ts b/dist/models/SellerApiProductV1ResponseResult.d.ts new file mode 100644 index 0000000..a5f2395 --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductV1ResponseProduct } from './SellerApiProductV1ResponseProduct'; +/** + * Результаты запроса. + * @export + * @interface SellerApiProductV1ResponseResult + */ +export interface SellerApiProductV1ResponseResult { + /** + * Список идентификаторов товаров, которые добавлены в акцию. + * @type {Array} + * @memberof SellerApiProductV1ResponseResult + */ + product_ids?: Array; + /** + * Список товаров, которые не удалось добавить в акцию. + * @type {Array} + * @memberof SellerApiProductV1ResponseResult + */ + rejected?: Array; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseResult interface. + */ +export declare function instanceOfSellerApiProductV1ResponseResult(value: object): value is SellerApiProductV1ResponseResult; +export declare function SellerApiProductV1ResponseResultFromJSON(json: any): SellerApiProductV1ResponseResult; +export declare function SellerApiProductV1ResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseResult; +export declare function SellerApiProductV1ResponseResultToJSON(value?: SellerApiProductV1ResponseResult | null): any; diff --git a/dist/models/SellerApiProductV1ResponseResult.js b/dist/models/SellerApiProductV1ResponseResult.js new file mode 100644 index 0000000..0c7824a --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProductV1ResponseResult = instanceOfSellerApiProductV1ResponseResult; +exports.SellerApiProductV1ResponseResultFromJSON = SellerApiProductV1ResponseResultFromJSON; +exports.SellerApiProductV1ResponseResultFromJSONTyped = SellerApiProductV1ResponseResultFromJSONTyped; +exports.SellerApiProductV1ResponseResultToJSON = SellerApiProductV1ResponseResultToJSON; +const SellerApiProductV1ResponseProduct_1 = require("./SellerApiProductV1ResponseProduct"); +/** + * Check if a given object implements the SellerApiProductV1ResponseResult interface. + */ +function instanceOfSellerApiProductV1ResponseResult(value) { + return true; +} +function SellerApiProductV1ResponseResultFromJSON(json) { + return SellerApiProductV1ResponseResultFromJSONTyped(json, false); +} +function SellerApiProductV1ResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + 'rejected': json['rejected'] == null ? undefined : (json['rejected'].map(SellerApiProductV1ResponseProduct_1.SellerApiProductV1ResponseProductFromJSON)), + }; +} +function SellerApiProductV1ResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + 'rejected': value['rejected'] == null ? undefined : (value['rejected'].map(SellerApiProductV1ResponseProduct_1.SellerApiProductV1ResponseProductToJSON)), + }; +} diff --git a/dist/models/SellerApiProductV1ResponseResultDeactivate.d.ts b/dist/models/SellerApiProductV1ResponseResultDeactivate.d.ts new file mode 100644 index 0000000..309abde --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseResultDeactivate.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerApiProductV1ResponseProductDeactivate } from './SellerApiProductV1ResponseProductDeactivate'; +/** + * Результаты запроса. + * @export + * @interface SellerApiProductV1ResponseResultDeactivate + */ +export interface SellerApiProductV1ResponseResultDeactivate { + /** + * Список идентификаторов товаров, которые удалены из акции. + * @type {Array} + * @memberof SellerApiProductV1ResponseResultDeactivate + */ + product_ids?: Array; + /** + * Список товаров, которые не удалось удалить из акции. + * @type {Array} + * @memberof SellerApiProductV1ResponseResultDeactivate + */ + rejected?: Array; +} +/** + * Check if a given object implements the SellerApiProductV1ResponseResultDeactivate interface. + */ +export declare function instanceOfSellerApiProductV1ResponseResultDeactivate(value: object): value is SellerApiProductV1ResponseResultDeactivate; +export declare function SellerApiProductV1ResponseResultDeactivateFromJSON(json: any): SellerApiProductV1ResponseResultDeactivate; +export declare function SellerApiProductV1ResponseResultDeactivateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerApiProductV1ResponseResultDeactivate; +export declare function SellerApiProductV1ResponseResultDeactivateToJSON(value?: SellerApiProductV1ResponseResultDeactivate | null): any; diff --git a/dist/models/SellerApiProductV1ResponseResultDeactivate.js b/dist/models/SellerApiProductV1ResponseResultDeactivate.js new file mode 100644 index 0000000..5f05bf6 --- /dev/null +++ b/dist/models/SellerApiProductV1ResponseResultDeactivate.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerApiProductV1ResponseResultDeactivate = instanceOfSellerApiProductV1ResponseResultDeactivate; +exports.SellerApiProductV1ResponseResultDeactivateFromJSON = SellerApiProductV1ResponseResultDeactivateFromJSON; +exports.SellerApiProductV1ResponseResultDeactivateFromJSONTyped = SellerApiProductV1ResponseResultDeactivateFromJSONTyped; +exports.SellerApiProductV1ResponseResultDeactivateToJSON = SellerApiProductV1ResponseResultDeactivateToJSON; +const SellerApiProductV1ResponseProductDeactivate_1 = require("./SellerApiProductV1ResponseProductDeactivate"); +/** + * Check if a given object implements the SellerApiProductV1ResponseResultDeactivate interface. + */ +function instanceOfSellerApiProductV1ResponseResultDeactivate(value) { + return true; +} +function SellerApiProductV1ResponseResultDeactivateFromJSON(json) { + return SellerApiProductV1ResponseResultDeactivateFromJSONTyped(json, false); +} +function SellerApiProductV1ResponseResultDeactivateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + 'rejected': json['rejected'] == null ? undefined : (json['rejected'].map(SellerApiProductV1ResponseProductDeactivate_1.SellerApiProductV1ResponseProductDeactivateFromJSON)), + }; +} +function SellerApiProductV1ResponseResultDeactivateToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + 'rejected': value['rejected'] == null ? undefined : (value['rejected'].map(SellerApiProductV1ResponseProductDeactivate_1.SellerApiProductV1ResponseProductDeactivateToJSON)), + }; +} diff --git a/dist/models/SellerInfoResponseCompany.d.ts b/dist/models/SellerInfoResponseCompany.d.ts new file mode 100644 index 0000000..f6cd969 --- /dev/null +++ b/dist/models/SellerInfoResponseCompany.d.ts @@ -0,0 +1,82 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CompanyTaxSystemEnum } from './CompanyTaxSystemEnum'; +/** + * Компания. + * @export + * @interface SellerInfoResponseCompany + */ +export interface SellerInfoResponseCompany { + /** + * Страна. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + country?: string; + /** + * Валюта: + * - `RUB` — российский рубль; + * - `EUR` — евро; + * - `USD` — доллар США; + * - `CNY` — юань; + * - `BYN` — белорусский рубль; + * - `KZT` — тенге; + * - `KGS` — киргизский сом. + * + * @type {string} + * @memberof SellerInfoResponseCompany + */ + currency?: string; + /** + * ИНН. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + inn?: string; + /** + * Название юридического лица. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + legal_name?: string; + /** + * Название компании на Ozon. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + name?: string; + /** + * ОГРН. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + ogrn?: string; + /** + * Форма собственности. + * @type {string} + * @memberof SellerInfoResponseCompany + */ + ownership_form?: string; + /** + * + * @type {CompanyTaxSystemEnum} + * @memberof SellerInfoResponseCompany + */ + tax_system?: CompanyTaxSystemEnum; +} +/** + * Check if a given object implements the SellerInfoResponseCompany interface. + */ +export declare function instanceOfSellerInfoResponseCompany(value: object): value is SellerInfoResponseCompany; +export declare function SellerInfoResponseCompanyFromJSON(json: any): SellerInfoResponseCompany; +export declare function SellerInfoResponseCompanyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseCompany; +export declare function SellerInfoResponseCompanyToJSON(value?: SellerInfoResponseCompany | null): any; diff --git a/dist/models/SellerInfoResponseCompany.js b/dist/models/SellerInfoResponseCompany.js new file mode 100644 index 0000000..c7b1573 --- /dev/null +++ b/dist/models/SellerInfoResponseCompany.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerInfoResponseCompany = instanceOfSellerInfoResponseCompany; +exports.SellerInfoResponseCompanyFromJSON = SellerInfoResponseCompanyFromJSON; +exports.SellerInfoResponseCompanyFromJSONTyped = SellerInfoResponseCompanyFromJSONTyped; +exports.SellerInfoResponseCompanyToJSON = SellerInfoResponseCompanyToJSON; +const CompanyTaxSystemEnum_1 = require("./CompanyTaxSystemEnum"); +/** + * Check if a given object implements the SellerInfoResponseCompany interface. + */ +function instanceOfSellerInfoResponseCompany(value) { + return true; +} +function SellerInfoResponseCompanyFromJSON(json) { + return SellerInfoResponseCompanyFromJSONTyped(json, false); +} +function SellerInfoResponseCompanyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'country': json['country'] == null ? undefined : json['country'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'legal_name': json['legal_name'] == null ? undefined : json['legal_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'ogrn': json['ogrn'] == null ? undefined : json['ogrn'], + 'ownership_form': json['ownership_form'] == null ? undefined : json['ownership_form'], + 'tax_system': json['tax_system'] == null ? undefined : (0, CompanyTaxSystemEnum_1.CompanyTaxSystemEnumFromJSON)(json['tax_system']), + }; +} +function SellerInfoResponseCompanyToJSON(value) { + if (value == null) { + return value; + } + return { + 'country': value['country'], + 'currency': value['currency'], + 'inn': value['inn'], + 'legal_name': value['legal_name'], + 'name': value['name'], + 'ogrn': value['ogrn'], + 'ownership_form': value['ownership_form'], + 'tax_system': (0, CompanyTaxSystemEnum_1.CompanyTaxSystemEnumToJSON)(value['tax_system']), + }; +} diff --git a/dist/models/SellerInfoResponseRating.d.ts b/dist/models/SellerInfoResponseRating.d.ts new file mode 100644 index 0000000..65ff360 --- /dev/null +++ b/dist/models/SellerInfoResponseRating.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RatingValueCurrent } from './RatingValueCurrent'; +import type { RatingStatusEnum } from './RatingStatusEnum'; +import type { SellerInfoResponseRatingTypeEnum } from './SellerInfoResponseRatingTypeEnum'; +import type { RatingValuePast } from './RatingValuePast'; +/** + * + * @export + * @interface SellerInfoResponseRating + */ +export interface SellerInfoResponseRating { + /** + * + * @type {RatingValueCurrent} + * @memberof SellerInfoResponseRating + */ + current_value?: RatingValueCurrent; + /** + * Название рейтинга. + * @type {string} + * @memberof SellerInfoResponseRating + */ + name?: string; + /** + * + * @type {RatingValuePast} + * @memberof SellerInfoResponseRating + */ + past_value?: RatingValuePast; + /** + * Название рейтинга в системе. + * @type {string} + * @memberof SellerInfoResponseRating + */ + rating?: string; + /** + * + * @type {RatingStatusEnum} + * @memberof SellerInfoResponseRating + */ + status?: RatingStatusEnum; + /** + * + * @type {SellerInfoResponseRatingTypeEnum} + * @memberof SellerInfoResponseRating + */ + value_type?: SellerInfoResponseRatingTypeEnum; +} +/** + * Check if a given object implements the SellerInfoResponseRating interface. + */ +export declare function instanceOfSellerInfoResponseRating(value: object): value is SellerInfoResponseRating; +export declare function SellerInfoResponseRatingFromJSON(json: any): SellerInfoResponseRating; +export declare function SellerInfoResponseRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseRating; +export declare function SellerInfoResponseRatingToJSON(value?: SellerInfoResponseRating | null): any; diff --git a/dist/models/SellerInfoResponseRating.js b/dist/models/SellerInfoResponseRating.js new file mode 100644 index 0000000..b1d1132 --- /dev/null +++ b/dist/models/SellerInfoResponseRating.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerInfoResponseRating = instanceOfSellerInfoResponseRating; +exports.SellerInfoResponseRatingFromJSON = SellerInfoResponseRatingFromJSON; +exports.SellerInfoResponseRatingFromJSONTyped = SellerInfoResponseRatingFromJSONTyped; +exports.SellerInfoResponseRatingToJSON = SellerInfoResponseRatingToJSON; +const RatingValueCurrent_1 = require("./RatingValueCurrent"); +const RatingStatusEnum_1 = require("./RatingStatusEnum"); +const SellerInfoResponseRatingTypeEnum_1 = require("./SellerInfoResponseRatingTypeEnum"); +const RatingValuePast_1 = require("./RatingValuePast"); +/** + * Check if a given object implements the SellerInfoResponseRating interface. + */ +function instanceOfSellerInfoResponseRating(value) { + return true; +} +function SellerInfoResponseRatingFromJSON(json) { + return SellerInfoResponseRatingFromJSONTyped(json, false); +} +function SellerInfoResponseRatingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_value': json['current_value'] == null ? undefined : (0, RatingValueCurrent_1.RatingValueCurrentFromJSON)(json['current_value']), + 'name': json['name'] == null ? undefined : json['name'], + 'past_value': json['past_value'] == null ? undefined : (0, RatingValuePast_1.RatingValuePastFromJSON)(json['past_value']), + 'rating': json['rating'] == null ? undefined : json['rating'], + 'status': json['status'] == null ? undefined : (0, RatingStatusEnum_1.RatingStatusEnumFromJSON)(json['status']), + 'value_type': json['value_type'] == null ? undefined : (0, SellerInfoResponseRatingTypeEnum_1.SellerInfoResponseRatingTypeEnumFromJSON)(json['value_type']), + }; +} +function SellerInfoResponseRatingToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_value': (0, RatingValueCurrent_1.RatingValueCurrentToJSON)(value['current_value']), + 'name': value['name'], + 'past_value': (0, RatingValuePast_1.RatingValuePastToJSON)(value['past_value']), + 'rating': value['rating'], + 'status': (0, RatingStatusEnum_1.RatingStatusEnumToJSON)(value['status']), + 'value_type': (0, SellerInfoResponseRatingTypeEnum_1.SellerInfoResponseRatingTypeEnumToJSON)(value['value_type']), + }; +} diff --git a/dist/models/SellerInfoResponseRatingTypeEnum.d.ts b/dist/models/SellerInfoResponseRatingTypeEnum.d.ts new file mode 100644 index 0000000..9b5e1c2 --- /dev/null +++ b/dist/models/SellerInfoResponseRatingTypeEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип значения: + * - `UNKNOWN` — не определён, + * - `INDEX` — индекс, + * - `PERCENT` — процент, + * - `TIME` — время, + * - `RATIO` — коэффициент, + * - `REVIEW_SCORE` — оценка, + * - `COUNT` — счёт. + * + * @export + */ +export declare const SellerInfoResponseRatingTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly INDEX: "INDEX"; + readonly PERCENT: "PERCENT"; + readonly TIME: "TIME"; + readonly RATIO: "RATIO"; + readonly REVIEW_SCORE: "REVIEW_SCORE"; + readonly COUNT: "COUNT"; +}; +export type SellerInfoResponseRatingTypeEnum = typeof SellerInfoResponseRatingTypeEnum[keyof typeof SellerInfoResponseRatingTypeEnum]; +export declare function instanceOfSellerInfoResponseRatingTypeEnum(value: any): boolean; +export declare function SellerInfoResponseRatingTypeEnumFromJSON(json: any): SellerInfoResponseRatingTypeEnum; +export declare function SellerInfoResponseRatingTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseRatingTypeEnum; +export declare function SellerInfoResponseRatingTypeEnumToJSON(value?: SellerInfoResponseRatingTypeEnum | null): any; diff --git a/dist/models/SellerInfoResponseRatingTypeEnum.js b/dist/models/SellerInfoResponseRatingTypeEnum.js new file mode 100644 index 0000000..b8eb611 --- /dev/null +++ b/dist/models/SellerInfoResponseRatingTypeEnum.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerInfoResponseRatingTypeEnum = void 0; +exports.instanceOfSellerInfoResponseRatingTypeEnum = instanceOfSellerInfoResponseRatingTypeEnum; +exports.SellerInfoResponseRatingTypeEnumFromJSON = SellerInfoResponseRatingTypeEnumFromJSON; +exports.SellerInfoResponseRatingTypeEnumFromJSONTyped = SellerInfoResponseRatingTypeEnumFromJSONTyped; +exports.SellerInfoResponseRatingTypeEnumToJSON = SellerInfoResponseRatingTypeEnumToJSON; +/** + * Тип значения: + * - `UNKNOWN` — не определён, + * - `INDEX` — индекс, + * - `PERCENT` — процент, + * - `TIME` — время, + * - `RATIO` — коэффициент, + * - `REVIEW_SCORE` — оценка, + * - `COUNT` — счёт. + * + * @export + */ +exports.SellerInfoResponseRatingTypeEnum = { + UNKNOWN: 'UNKNOWN', + INDEX: 'INDEX', + PERCENT: 'PERCENT', + TIME: 'TIME', + RATIO: 'RATIO', + REVIEW_SCORE: 'REVIEW_SCORE', + COUNT: 'COUNT' +}; +function instanceOfSellerInfoResponseRatingTypeEnum(value) { + for (const key in exports.SellerInfoResponseRatingTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SellerInfoResponseRatingTypeEnum, key)) { + if (exports.SellerInfoResponseRatingTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function SellerInfoResponseRatingTypeEnumFromJSON(json) { + return SellerInfoResponseRatingTypeEnumFromJSONTyped(json, false); +} +function SellerInfoResponseRatingTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SellerInfoResponseRatingTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/SellerInfoResponseSubscription.d.ts b/dist/models/SellerInfoResponseSubscription.d.ts new file mode 100644 index 0000000..bf09d53 --- /dev/null +++ b/dist/models/SellerInfoResponseSubscription.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerInfoResponseSubscriptionTypeEnum } from './SellerInfoResponseSubscriptionTypeEnum'; +/** + * Подписка. + * @export + * @interface SellerInfoResponseSubscription + */ +export interface SellerInfoResponseSubscription { + /** + * `true`, если есть подписка. + * + * @type {boolean} + * @memberof SellerInfoResponseSubscription + */ + is_premium?: boolean; + /** + * + * @type {SellerInfoResponseSubscriptionTypeEnum} + * @memberof SellerInfoResponseSubscription + */ + type?: SellerInfoResponseSubscriptionTypeEnum; +} +/** + * Check if a given object implements the SellerInfoResponseSubscription interface. + */ +export declare function instanceOfSellerInfoResponseSubscription(value: object): value is SellerInfoResponseSubscription; +export declare function SellerInfoResponseSubscriptionFromJSON(json: any): SellerInfoResponseSubscription; +export declare function SellerInfoResponseSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseSubscription; +export declare function SellerInfoResponseSubscriptionToJSON(value?: SellerInfoResponseSubscription | null): any; diff --git a/dist/models/SellerInfoResponseSubscription.js b/dist/models/SellerInfoResponseSubscription.js new file mode 100644 index 0000000..f3e58d6 --- /dev/null +++ b/dist/models/SellerInfoResponseSubscription.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerInfoResponseSubscription = instanceOfSellerInfoResponseSubscription; +exports.SellerInfoResponseSubscriptionFromJSON = SellerInfoResponseSubscriptionFromJSON; +exports.SellerInfoResponseSubscriptionFromJSONTyped = SellerInfoResponseSubscriptionFromJSONTyped; +exports.SellerInfoResponseSubscriptionToJSON = SellerInfoResponseSubscriptionToJSON; +const SellerInfoResponseSubscriptionTypeEnum_1 = require("./SellerInfoResponseSubscriptionTypeEnum"); +/** + * Check if a given object implements the SellerInfoResponseSubscription interface. + */ +function instanceOfSellerInfoResponseSubscription(value) { + return true; +} +function SellerInfoResponseSubscriptionFromJSON(json) { + return SellerInfoResponseSubscriptionFromJSONTyped(json, false); +} +function SellerInfoResponseSubscriptionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'type': json['type'] == null ? undefined : (0, SellerInfoResponseSubscriptionTypeEnum_1.SellerInfoResponseSubscriptionTypeEnumFromJSON)(json['type']), + }; +} +function SellerInfoResponseSubscriptionToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_premium': value['is_premium'], + 'type': (0, SellerInfoResponseSubscriptionTypeEnum_1.SellerInfoResponseSubscriptionTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/SellerInfoResponseSubscriptionTypeEnum.d.ts b/dist/models/SellerInfoResponseSubscriptionTypeEnum.d.ts new file mode 100644 index 0000000..e4a1b59 --- /dev/null +++ b/dist/models/SellerInfoResponseSubscriptionTypeEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип подписки: + * - `UNKNOWN` — неизвестный, + * - `UNSPECIFIED` — нет подписки, + * - `PREMIUM` — Premium, + * - `PREMIUM_LITE` — Premium Lite, + * - `PREMIUM_PLUS` — Premium Plus, + * - `PREMIUM_PRO` — Premium Pro. + * + * @export + */ +export declare const SellerInfoResponseSubscriptionTypeEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PREMIUM: "PREMIUM"; + readonly PREMIUM_LITE: "PREMIUM_LITE"; + readonly PREMIUM_PLUS: "PREMIUM_PLUS"; + readonly PREMIUM_PRO: "PREMIUM_PRO"; +}; +export type SellerInfoResponseSubscriptionTypeEnum = typeof SellerInfoResponseSubscriptionTypeEnum[keyof typeof SellerInfoResponseSubscriptionTypeEnum]; +export declare function instanceOfSellerInfoResponseSubscriptionTypeEnum(value: any): boolean; +export declare function SellerInfoResponseSubscriptionTypeEnumFromJSON(json: any): SellerInfoResponseSubscriptionTypeEnum; +export declare function SellerInfoResponseSubscriptionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInfoResponseSubscriptionTypeEnum; +export declare function SellerInfoResponseSubscriptionTypeEnumToJSON(value?: SellerInfoResponseSubscriptionTypeEnum | null): any; diff --git a/dist/models/SellerInfoResponseSubscriptionTypeEnum.js b/dist/models/SellerInfoResponseSubscriptionTypeEnum.js new file mode 100644 index 0000000..89d8f30 --- /dev/null +++ b/dist/models/SellerInfoResponseSubscriptionTypeEnum.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerInfoResponseSubscriptionTypeEnum = void 0; +exports.instanceOfSellerInfoResponseSubscriptionTypeEnum = instanceOfSellerInfoResponseSubscriptionTypeEnum; +exports.SellerInfoResponseSubscriptionTypeEnumFromJSON = SellerInfoResponseSubscriptionTypeEnumFromJSON; +exports.SellerInfoResponseSubscriptionTypeEnumFromJSONTyped = SellerInfoResponseSubscriptionTypeEnumFromJSONTyped; +exports.SellerInfoResponseSubscriptionTypeEnumToJSON = SellerInfoResponseSubscriptionTypeEnumToJSON; +/** + * Тип подписки: + * - `UNKNOWN` — неизвестный, + * - `UNSPECIFIED` — нет подписки, + * - `PREMIUM` — Premium, + * - `PREMIUM_LITE` — Premium Lite, + * - `PREMIUM_PLUS` — Premium Plus, + * - `PREMIUM_PRO` — Premium Pro. + * + * @export + */ +exports.SellerInfoResponseSubscriptionTypeEnum = { + UNKNOWN: 'UNKNOWN', + UNSPECIFIED: 'UNSPECIFIED', + PREMIUM: 'PREMIUM', + PREMIUM_LITE: 'PREMIUM_LITE', + PREMIUM_PLUS: 'PREMIUM_PLUS', + PREMIUM_PRO: 'PREMIUM_PRO' +}; +function instanceOfSellerInfoResponseSubscriptionTypeEnum(value) { + for (const key in exports.SellerInfoResponseSubscriptionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SellerInfoResponseSubscriptionTypeEnum, key)) { + if (exports.SellerInfoResponseSubscriptionTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function SellerInfoResponseSubscriptionTypeEnumFromJSON(json) { + return SellerInfoResponseSubscriptionTypeEnumFromJSONTyped(json, false); +} +function SellerInfoResponseSubscriptionTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SellerInfoResponseSubscriptionTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.d.ts b/dist/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.d.ts new file mode 100644 index 0000000..222501c --- /dev/null +++ b/dist/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SellerOzonLogisticsInfoResponseAvailableSchemasEnum: { + readonly UNKNOWN: "UNKNOWN"; + readonly FBO: "FBO"; + readonly FBS: "FBS"; +}; +export type SellerOzonLogisticsInfoResponseAvailableSchemasEnum = typeof SellerOzonLogisticsInfoResponseAvailableSchemasEnum[keyof typeof SellerOzonLogisticsInfoResponseAvailableSchemasEnum]; +export declare function instanceOfSellerOzonLogisticsInfoResponseAvailableSchemasEnum(value: any): boolean; +export declare function SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON(json: any): SellerOzonLogisticsInfoResponseAvailableSchemasEnum; +export declare function SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerOzonLogisticsInfoResponseAvailableSchemasEnum; +export declare function SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON(value?: SellerOzonLogisticsInfoResponseAvailableSchemasEnum | null): any; diff --git a/dist/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.js b/dist/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.js new file mode 100644 index 0000000..96aa8cb --- /dev/null +++ b/dist/models/SellerOzonLogisticsInfoResponseAvailableSchemasEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerOzonLogisticsInfoResponseAvailableSchemasEnum = void 0; +exports.instanceOfSellerOzonLogisticsInfoResponseAvailableSchemasEnum = instanceOfSellerOzonLogisticsInfoResponseAvailableSchemasEnum; +exports.SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON = SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON; +exports.SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSONTyped = SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSONTyped; +exports.SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON = SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON; +/** + * + * @export + */ +exports.SellerOzonLogisticsInfoResponseAvailableSchemasEnum = { + UNKNOWN: 'UNKNOWN', + FBO: 'FBO', + FBS: 'FBS' +}; +function instanceOfSellerOzonLogisticsInfoResponseAvailableSchemasEnum(value) { + for (const key in exports.SellerOzonLogisticsInfoResponseAvailableSchemasEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SellerOzonLogisticsInfoResponseAvailableSchemasEnum, key)) { + if (exports.SellerOzonLogisticsInfoResponseAvailableSchemasEnum[key] === value) { + return true; + } + } + } + return false; +} +function SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON(json) { + return SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSONTyped(json, false); +} +function SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON(value) { + return value; +} diff --git a/dist/models/SellerReturnsv1MoneyCommission.d.ts b/dist/models/SellerReturnsv1MoneyCommission.d.ts new file mode 100644 index 0000000..90758e9 --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о комиссии. + * @export + * @interface SellerReturnsv1MoneyCommission + */ +export interface SellerReturnsv1MoneyCommission { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyCommission + */ + currency_code?: string; + /** + * Размер комиссии. + * @type {number} + * @memberof SellerReturnsv1MoneyCommission + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyCommission interface. + */ +export declare function instanceOfSellerReturnsv1MoneyCommission(value: object): value is SellerReturnsv1MoneyCommission; +export declare function SellerReturnsv1MoneyCommissionFromJSON(json: any): SellerReturnsv1MoneyCommission; +export declare function SellerReturnsv1MoneyCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyCommission; +export declare function SellerReturnsv1MoneyCommissionToJSON(value?: SellerReturnsv1MoneyCommission | null): any; diff --git a/dist/models/SellerReturnsv1MoneyCommission.js b/dist/models/SellerReturnsv1MoneyCommission.js new file mode 100644 index 0000000..70240db --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyCommission.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerReturnsv1MoneyCommission = instanceOfSellerReturnsv1MoneyCommission; +exports.SellerReturnsv1MoneyCommissionFromJSON = SellerReturnsv1MoneyCommissionFromJSON; +exports.SellerReturnsv1MoneyCommissionFromJSONTyped = SellerReturnsv1MoneyCommissionFromJSONTyped; +exports.SellerReturnsv1MoneyCommissionToJSON = SellerReturnsv1MoneyCommissionToJSON; +/** + * Check if a given object implements the SellerReturnsv1MoneyCommission interface. + */ +function instanceOfSellerReturnsv1MoneyCommission(value) { + return true; +} +function SellerReturnsv1MoneyCommissionFromJSON(json) { + return SellerReturnsv1MoneyCommissionFromJSONTyped(json, false); +} +function SellerReturnsv1MoneyCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function SellerReturnsv1MoneyCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/models/SellerReturnsv1MoneyProduct.d.ts b/dist/models/SellerReturnsv1MoneyProduct.d.ts new file mode 100644 index 0000000..cf4c035 --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость товара. + * @export + * @interface SellerReturnsv1MoneyProduct + */ +export interface SellerReturnsv1MoneyProduct { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyProduct + */ + currency_code?: string; + /** + * Стоимость товара. + * @type {number} + * @memberof SellerReturnsv1MoneyProduct + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyProduct interface. + */ +export declare function instanceOfSellerReturnsv1MoneyProduct(value: object): value is SellerReturnsv1MoneyProduct; +export declare function SellerReturnsv1MoneyProductFromJSON(json: any): SellerReturnsv1MoneyProduct; +export declare function SellerReturnsv1MoneyProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyProduct; +export declare function SellerReturnsv1MoneyProductToJSON(value?: SellerReturnsv1MoneyProduct | null): any; diff --git a/dist/models/SellerReturnsv1MoneyProduct.js b/dist/models/SellerReturnsv1MoneyProduct.js new file mode 100644 index 0000000..50d989b --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyProduct.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerReturnsv1MoneyProduct = instanceOfSellerReturnsv1MoneyProduct; +exports.SellerReturnsv1MoneyProductFromJSON = SellerReturnsv1MoneyProductFromJSON; +exports.SellerReturnsv1MoneyProductFromJSONTyped = SellerReturnsv1MoneyProductFromJSONTyped; +exports.SellerReturnsv1MoneyProductToJSON = SellerReturnsv1MoneyProductToJSON; +/** + * Check if a given object implements the SellerReturnsv1MoneyProduct interface. + */ +function instanceOfSellerReturnsv1MoneyProduct(value) { + return true; +} +function SellerReturnsv1MoneyProductFromJSON(json) { + return SellerReturnsv1MoneyProductFromJSONTyped(json, false); +} +function SellerReturnsv1MoneyProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function SellerReturnsv1MoneyProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/models/SellerReturnsv1MoneyStorage.d.ts b/dist/models/SellerReturnsv1MoneyStorage.d.ts new file mode 100644 index 0000000..2a52acf --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyStorage.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость хранения. + * @export + * @interface SellerReturnsv1MoneyStorage + */ +export interface SellerReturnsv1MoneyStorage { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyStorage + */ + currency_code?: string; + /** + * Стоимость хранения. + * @type {number} + * @memberof SellerReturnsv1MoneyStorage + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyStorage interface. + */ +export declare function instanceOfSellerReturnsv1MoneyStorage(value: object): value is SellerReturnsv1MoneyStorage; +export declare function SellerReturnsv1MoneyStorageFromJSON(json: any): SellerReturnsv1MoneyStorage; +export declare function SellerReturnsv1MoneyStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyStorage; +export declare function SellerReturnsv1MoneyStorageToJSON(value?: SellerReturnsv1MoneyStorage | null): any; diff --git a/dist/models/SellerReturnsv1MoneyStorage.js b/dist/models/SellerReturnsv1MoneyStorage.js new file mode 100644 index 0000000..f7b5da8 --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyStorage.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerReturnsv1MoneyStorage = instanceOfSellerReturnsv1MoneyStorage; +exports.SellerReturnsv1MoneyStorageFromJSON = SellerReturnsv1MoneyStorageFromJSON; +exports.SellerReturnsv1MoneyStorageFromJSONTyped = SellerReturnsv1MoneyStorageFromJSONTyped; +exports.SellerReturnsv1MoneyStorageToJSON = SellerReturnsv1MoneyStorageToJSON; +/** + * Check if a given object implements the SellerReturnsv1MoneyStorage interface. + */ +function instanceOfSellerReturnsv1MoneyStorage(value) { + return true; +} +function SellerReturnsv1MoneyStorageFromJSON(json) { + return SellerReturnsv1MoneyStorageFromJSONTyped(json, false); +} +function SellerReturnsv1MoneyStorageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function SellerReturnsv1MoneyStorageToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/models/SellerReturnsv1MoneyUtilization.d.ts b/dist/models/SellerReturnsv1MoneyUtilization.d.ts new file mode 100644 index 0000000..3de59a7 --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyUtilization.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость утилизации. + * @export + * @interface SellerReturnsv1MoneyUtilization + */ +export interface SellerReturnsv1MoneyUtilization { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyUtilization + */ + currency_code?: string; + /** + * Стоимость утилизации. + * @type {number} + * @memberof SellerReturnsv1MoneyUtilization + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyUtilization interface. + */ +export declare function instanceOfSellerReturnsv1MoneyUtilization(value: object): value is SellerReturnsv1MoneyUtilization; +export declare function SellerReturnsv1MoneyUtilizationFromJSON(json: any): SellerReturnsv1MoneyUtilization; +export declare function SellerReturnsv1MoneyUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyUtilization; +export declare function SellerReturnsv1MoneyUtilizationToJSON(value?: SellerReturnsv1MoneyUtilization | null): any; diff --git a/dist/models/SellerReturnsv1MoneyUtilization.js b/dist/models/SellerReturnsv1MoneyUtilization.js new file mode 100644 index 0000000..dba925f --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyUtilization.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerReturnsv1MoneyUtilization = instanceOfSellerReturnsv1MoneyUtilization; +exports.SellerReturnsv1MoneyUtilizationFromJSON = SellerReturnsv1MoneyUtilizationFromJSON; +exports.SellerReturnsv1MoneyUtilizationFromJSONTyped = SellerReturnsv1MoneyUtilizationFromJSONTyped; +exports.SellerReturnsv1MoneyUtilizationToJSON = SellerReturnsv1MoneyUtilizationToJSON; +/** + * Check if a given object implements the SellerReturnsv1MoneyUtilization interface. + */ +function instanceOfSellerReturnsv1MoneyUtilization(value) { + return true; +} +function SellerReturnsv1MoneyUtilizationFromJSON(json) { + return SellerReturnsv1MoneyUtilizationFromJSONTyped(json, false); +} +function SellerReturnsv1MoneyUtilizationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function SellerReturnsv1MoneyUtilizationToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/models/SellerReturnsv1MoneyWithoutCommission.d.ts b/dist/models/SellerReturnsv1MoneyWithoutCommission.d.ts new file mode 100644 index 0000000..85c3fcb --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyWithoutCommission.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Стоимость товара без комиссии. + * @export + * @interface SellerReturnsv1MoneyWithoutCommission + */ +export interface SellerReturnsv1MoneyWithoutCommission { + /** + * Валюта. + * @type {string} + * @memberof SellerReturnsv1MoneyWithoutCommission + */ + currency_code?: string; + /** + * Стоимость товара без комиссии. + * @type {number} + * @memberof SellerReturnsv1MoneyWithoutCommission + */ + price?: number; +} +/** + * Check if a given object implements the SellerReturnsv1MoneyWithoutCommission interface. + */ +export declare function instanceOfSellerReturnsv1MoneyWithoutCommission(value: object): value is SellerReturnsv1MoneyWithoutCommission; +export declare function SellerReturnsv1MoneyWithoutCommissionFromJSON(json: any): SellerReturnsv1MoneyWithoutCommission; +export declare function SellerReturnsv1MoneyWithoutCommissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerReturnsv1MoneyWithoutCommission; +export declare function SellerReturnsv1MoneyWithoutCommissionToJSON(value?: SellerReturnsv1MoneyWithoutCommission | null): any; diff --git a/dist/models/SellerReturnsv1MoneyWithoutCommission.js b/dist/models/SellerReturnsv1MoneyWithoutCommission.js new file mode 100644 index 0000000..3a3ee90 --- /dev/null +++ b/dist/models/SellerReturnsv1MoneyWithoutCommission.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerReturnsv1MoneyWithoutCommission = instanceOfSellerReturnsv1MoneyWithoutCommission; +exports.SellerReturnsv1MoneyWithoutCommissionFromJSON = SellerReturnsv1MoneyWithoutCommissionFromJSON; +exports.SellerReturnsv1MoneyWithoutCommissionFromJSONTyped = SellerReturnsv1MoneyWithoutCommissionFromJSONTyped; +exports.SellerReturnsv1MoneyWithoutCommissionToJSON = SellerReturnsv1MoneyWithoutCommissionToJSON; +/** + * Check if a given object implements the SellerReturnsv1MoneyWithoutCommission interface. + */ +function instanceOfSellerReturnsv1MoneyWithoutCommission(value) { + return true; +} +function SellerReturnsv1MoneyWithoutCommissionFromJSON(json) { + return SellerReturnsv1MoneyWithoutCommissionFromJSONTyped(json, false); +} +function SellerReturnsv1MoneyWithoutCommissionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + }; +} +function SellerReturnsv1MoneyWithoutCommissionToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'price': value['price'], + }; +} diff --git a/dist/models/SellerSellerAPIArrivalPassCreateRequest.d.ts b/dist/models/SellerSellerAPIArrivalPassCreateRequest.d.ts new file mode 100644 index 0000000..9e2b4b5 --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassCreateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerSellerAPIArrivalPassCreateRequestArrivalPass } from './SellerSellerAPIArrivalPassCreateRequestArrivalPass'; +/** + * + * @export + * @interface SellerSellerAPIArrivalPassCreateRequest + */ +export interface SellerSellerAPIArrivalPassCreateRequest { + /** + * Список пропусков. + * @type {Array} + * @memberof SellerSellerAPIArrivalPassCreateRequest + */ + arrival_passes: Array; + /** + * Идентификатор перевозки. + * @type {number} + * @memberof SellerSellerAPIArrivalPassCreateRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateRequest interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassCreateRequest(value: object): value is SellerSellerAPIArrivalPassCreateRequest; +export declare function SellerSellerAPIArrivalPassCreateRequestFromJSON(json: any): SellerSellerAPIArrivalPassCreateRequest; +export declare function SellerSellerAPIArrivalPassCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassCreateRequest; +export declare function SellerSellerAPIArrivalPassCreateRequestToJSON(value?: SellerSellerAPIArrivalPassCreateRequest | null): any; diff --git a/dist/models/SellerSellerAPIArrivalPassCreateRequest.js b/dist/models/SellerSellerAPIArrivalPassCreateRequest.js new file mode 100644 index 0000000..0c91578 --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassCreateRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerSellerAPIArrivalPassCreateRequest = instanceOfSellerSellerAPIArrivalPassCreateRequest; +exports.SellerSellerAPIArrivalPassCreateRequestFromJSON = SellerSellerAPIArrivalPassCreateRequestFromJSON; +exports.SellerSellerAPIArrivalPassCreateRequestFromJSONTyped = SellerSellerAPIArrivalPassCreateRequestFromJSONTyped; +exports.SellerSellerAPIArrivalPassCreateRequestToJSON = SellerSellerAPIArrivalPassCreateRequestToJSON; +const SellerSellerAPIArrivalPassCreateRequestArrivalPass_1 = require("./SellerSellerAPIArrivalPassCreateRequestArrivalPass"); +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateRequest interface. + */ +function instanceOfSellerSellerAPIArrivalPassCreateRequest(value) { + if (!('arrival_passes' in value) || value['arrival_passes'] === undefined) + return false; + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function SellerSellerAPIArrivalPassCreateRequestFromJSON(json) { + return SellerSellerAPIArrivalPassCreateRequestFromJSONTyped(json, false); +} +function SellerSellerAPIArrivalPassCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': (json['arrival_passes'].map(SellerSellerAPIArrivalPassCreateRequestArrivalPass_1.SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON)), + 'carriage_id': json['carriage_id'], + }; +} +function SellerSellerAPIArrivalPassCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': (value['arrival_passes'].map(SellerSellerAPIArrivalPassCreateRequestArrivalPass_1.SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON)), + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.d.ts b/dist/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.d.ts new file mode 100644 index 0000000..16e798c --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ +export interface SellerSellerAPIArrivalPassCreateRequestArrivalPass { + /** + * ФИО водителя. + * @type {string} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + driver_name: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + driver_phone: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + vehicle_license_plate: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + vehicle_model: string; + /** + * `true`, если будете вывозить возвраты. По умолчанию — `false`. + * + * @type {boolean} + * @memberof SellerSellerAPIArrivalPassCreateRequestArrivalPass + */ + with_returns?: boolean; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateRequestArrivalPass interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassCreateRequestArrivalPass(value: object): value is SellerSellerAPIArrivalPassCreateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON(json: any): SellerSellerAPIArrivalPassCreateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassCreateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON(value?: SellerSellerAPIArrivalPassCreateRequestArrivalPass | null): any; diff --git a/dist/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.js b/dist/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.js new file mode 100644 index 0000000..0ef48a7 --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassCreateRequestArrivalPass.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerSellerAPIArrivalPassCreateRequestArrivalPass = instanceOfSellerSellerAPIArrivalPassCreateRequestArrivalPass; +exports.SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON = SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON; +exports.SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSONTyped = SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSONTyped; +exports.SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON = SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON; +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateRequestArrivalPass interface. + */ +function instanceOfSellerSellerAPIArrivalPassCreateRequestArrivalPass(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('vehicle_license_plate' in value) || value['vehicle_license_plate'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + return true; +} +function SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSON(json) { + return SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSONTyped(json, false); +} +function SellerSellerAPIArrivalPassCreateRequestArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'vehicle_license_plate': json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'], + 'with_returns': json['with_returns'] == null ? undefined : json['with_returns'], + }; +} +function SellerSellerAPIArrivalPassCreateRequestArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + 'with_returns': value['with_returns'], + }; +} diff --git a/dist/models/SellerSellerAPIArrivalPassCreateResponse.d.ts b/dist/models/SellerSellerAPIArrivalPassCreateResponse.d.ts new file mode 100644 index 0000000..7687e2f --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат запроса. + * @export + * @interface SellerSellerAPIArrivalPassCreateResponse + */ +export interface SellerSellerAPIArrivalPassCreateResponse { + /** + * Идентификаторы пропусков. + * @type {Array} + * @memberof SellerSellerAPIArrivalPassCreateResponse + */ + arrival_pass_ids?: Array; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateResponse interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassCreateResponse(value: object): value is SellerSellerAPIArrivalPassCreateResponse; +export declare function SellerSellerAPIArrivalPassCreateResponseFromJSON(json: any): SellerSellerAPIArrivalPassCreateResponse; +export declare function SellerSellerAPIArrivalPassCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassCreateResponse; +export declare function SellerSellerAPIArrivalPassCreateResponseToJSON(value?: SellerSellerAPIArrivalPassCreateResponse | null): any; diff --git a/dist/models/SellerSellerAPIArrivalPassCreateResponse.js b/dist/models/SellerSellerAPIArrivalPassCreateResponse.js new file mode 100644 index 0000000..6075c18 --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerSellerAPIArrivalPassCreateResponse = instanceOfSellerSellerAPIArrivalPassCreateResponse; +exports.SellerSellerAPIArrivalPassCreateResponseFromJSON = SellerSellerAPIArrivalPassCreateResponseFromJSON; +exports.SellerSellerAPIArrivalPassCreateResponseFromJSONTyped = SellerSellerAPIArrivalPassCreateResponseFromJSONTyped; +exports.SellerSellerAPIArrivalPassCreateResponseToJSON = SellerSellerAPIArrivalPassCreateResponseToJSON; +/** + * Check if a given object implements the SellerSellerAPIArrivalPassCreateResponse interface. + */ +function instanceOfSellerSellerAPIArrivalPassCreateResponse(value) { + return true; +} +function SellerSellerAPIArrivalPassCreateResponseFromJSON(json) { + return SellerSellerAPIArrivalPassCreateResponseFromJSONTyped(json, false); +} +function SellerSellerAPIArrivalPassCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'] == null ? undefined : json['arrival_pass_ids'], + }; +} +function SellerSellerAPIArrivalPassCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + }; +} diff --git a/dist/models/SellerSellerAPIArrivalPassDeleteRequest.d.ts b/dist/models/SellerSellerAPIArrivalPassDeleteRequest.d.ts new file mode 100644 index 0000000..972b0c5 --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassDeleteRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerSellerAPIArrivalPassDeleteRequest + */ +export interface SellerSellerAPIArrivalPassDeleteRequest { + /** + * Идентификаторы пропусков. + * @type {Array} + * @memberof SellerSellerAPIArrivalPassDeleteRequest + */ + arrival_pass_ids: Array; + /** + * Идентификатор перевозки. + * @type {number} + * @memberof SellerSellerAPIArrivalPassDeleteRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassDeleteRequest interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassDeleteRequest(value: object): value is SellerSellerAPIArrivalPassDeleteRequest; +export declare function SellerSellerAPIArrivalPassDeleteRequestFromJSON(json: any): SellerSellerAPIArrivalPassDeleteRequest; +export declare function SellerSellerAPIArrivalPassDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassDeleteRequest; +export declare function SellerSellerAPIArrivalPassDeleteRequestToJSON(value?: SellerSellerAPIArrivalPassDeleteRequest | null): any; diff --git a/dist/models/SellerSellerAPIArrivalPassDeleteRequest.js b/dist/models/SellerSellerAPIArrivalPassDeleteRequest.js new file mode 100644 index 0000000..6fdb71e --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassDeleteRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerSellerAPIArrivalPassDeleteRequest = instanceOfSellerSellerAPIArrivalPassDeleteRequest; +exports.SellerSellerAPIArrivalPassDeleteRequestFromJSON = SellerSellerAPIArrivalPassDeleteRequestFromJSON; +exports.SellerSellerAPIArrivalPassDeleteRequestFromJSONTyped = SellerSellerAPIArrivalPassDeleteRequestFromJSONTyped; +exports.SellerSellerAPIArrivalPassDeleteRequestToJSON = SellerSellerAPIArrivalPassDeleteRequestToJSON; +/** + * Check if a given object implements the SellerSellerAPIArrivalPassDeleteRequest interface. + */ +function instanceOfSellerSellerAPIArrivalPassDeleteRequest(value) { + if (!('arrival_pass_ids' in value) || value['arrival_pass_ids'] === undefined) + return false; + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function SellerSellerAPIArrivalPassDeleteRequestFromJSON(json) { + return SellerSellerAPIArrivalPassDeleteRequestFromJSONTyped(json, false); +} +function SellerSellerAPIArrivalPassDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_pass_ids': json['arrival_pass_ids'], + 'carriage_id': json['carriage_id'], + }; +} +function SellerSellerAPIArrivalPassDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_pass_ids': value['arrival_pass_ids'], + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/SellerSellerAPIArrivalPassUpdateRequest.d.ts b/dist/models/SellerSellerAPIArrivalPassUpdateRequest.d.ts new file mode 100644 index 0000000..5d375cb --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassUpdateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerSellerAPIArrivalPassUpdateRequestArrivalPass } from './SellerSellerAPIArrivalPassUpdateRequestArrivalPass'; +/** + * + * @export + * @interface SellerSellerAPIArrivalPassUpdateRequest + */ +export interface SellerSellerAPIArrivalPassUpdateRequest { + /** + * Список пропусков. + * @type {Array} + * @memberof SellerSellerAPIArrivalPassUpdateRequest + */ + arrival_passes: Array; + /** + * Идентификатор перевозки. + * @type {number} + * @memberof SellerSellerAPIArrivalPassUpdateRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassUpdateRequest interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassUpdateRequest(value: object): value is SellerSellerAPIArrivalPassUpdateRequest; +export declare function SellerSellerAPIArrivalPassUpdateRequestFromJSON(json: any): SellerSellerAPIArrivalPassUpdateRequest; +export declare function SellerSellerAPIArrivalPassUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassUpdateRequest; +export declare function SellerSellerAPIArrivalPassUpdateRequestToJSON(value?: SellerSellerAPIArrivalPassUpdateRequest | null): any; diff --git a/dist/models/SellerSellerAPIArrivalPassUpdateRequest.js b/dist/models/SellerSellerAPIArrivalPassUpdateRequest.js new file mode 100644 index 0000000..f0bdcf8 --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassUpdateRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerSellerAPIArrivalPassUpdateRequest = instanceOfSellerSellerAPIArrivalPassUpdateRequest; +exports.SellerSellerAPIArrivalPassUpdateRequestFromJSON = SellerSellerAPIArrivalPassUpdateRequestFromJSON; +exports.SellerSellerAPIArrivalPassUpdateRequestFromJSONTyped = SellerSellerAPIArrivalPassUpdateRequestFromJSONTyped; +exports.SellerSellerAPIArrivalPassUpdateRequestToJSON = SellerSellerAPIArrivalPassUpdateRequestToJSON; +const SellerSellerAPIArrivalPassUpdateRequestArrivalPass_1 = require("./SellerSellerAPIArrivalPassUpdateRequestArrivalPass"); +/** + * Check if a given object implements the SellerSellerAPIArrivalPassUpdateRequest interface. + */ +function instanceOfSellerSellerAPIArrivalPassUpdateRequest(value) { + if (!('arrival_passes' in value) || value['arrival_passes'] === undefined) + return false; + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function SellerSellerAPIArrivalPassUpdateRequestFromJSON(json) { + return SellerSellerAPIArrivalPassUpdateRequestFromJSONTyped(json, false); +} +function SellerSellerAPIArrivalPassUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'arrival_passes': (json['arrival_passes'].map(SellerSellerAPIArrivalPassUpdateRequestArrivalPass_1.SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON)), + 'carriage_id': json['carriage_id'], + }; +} +function SellerSellerAPIArrivalPassUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'arrival_passes': (value['arrival_passes'].map(SellerSellerAPIArrivalPassUpdateRequestArrivalPass_1.SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON)), + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.d.ts b/dist/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.d.ts new file mode 100644 index 0000000..6a46d2d --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ +export interface SellerSellerAPIArrivalPassUpdateRequestArrivalPass { + /** + * ФИО водителя. + * @type {string} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + driver_name: string; + /** + * Номер телефона водителя. + * @type {string} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + driver_phone: string; + /** + * Идентификатор пропуска. + * @type {number} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + id: number; + /** + * Номер автомобиля. + * @type {string} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + vehicle_license_plate: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + vehicle_model: string; + /** + * `true`, если будете вывозить возвраты. По умолчанию — `false`. + * + * @type {boolean} + * @memberof SellerSellerAPIArrivalPassUpdateRequestArrivalPass + */ + with_returns?: boolean; +} +/** + * Check if a given object implements the SellerSellerAPIArrivalPassUpdateRequestArrivalPass interface. + */ +export declare function instanceOfSellerSellerAPIArrivalPassUpdateRequestArrivalPass(value: object): value is SellerSellerAPIArrivalPassUpdateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON(json: any): SellerSellerAPIArrivalPassUpdateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSellerAPIArrivalPassUpdateRequestArrivalPass; +export declare function SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON(value?: SellerSellerAPIArrivalPassUpdateRequestArrivalPass | null): any; diff --git a/dist/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.js b/dist/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.js new file mode 100644 index 0000000..ec85177 --- /dev/null +++ b/dist/models/SellerSellerAPIArrivalPassUpdateRequestArrivalPass.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSellerSellerAPIArrivalPassUpdateRequestArrivalPass = instanceOfSellerSellerAPIArrivalPassUpdateRequestArrivalPass; +exports.SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON = SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON; +exports.SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSONTyped = SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSONTyped; +exports.SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON = SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON; +/** + * Check if a given object implements the SellerSellerAPIArrivalPassUpdateRequestArrivalPass interface. + */ +function instanceOfSellerSellerAPIArrivalPassUpdateRequestArrivalPass(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('vehicle_license_plate' in value) || value['vehicle_license_plate'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + return true; +} +function SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSON(json) { + return SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSONTyped(json, false); +} +function SellerSellerAPIArrivalPassUpdateRequestArrivalPassFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'id': json['id'], + 'vehicle_license_plate': json['vehicle_license_plate'], + 'vehicle_model': json['vehicle_model'], + 'with_returns': json['with_returns'] == null ? undefined : json['with_returns'], + }; +} +function SellerSellerAPIArrivalPassUpdateRequestArrivalPassToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'id': value['id'], + 'vehicle_license_plate': value['vehicle_license_plate'], + 'vehicle_model': value['vehicle_model'], + 'with_returns': value['with_returns'], + }; +} diff --git a/dist/models/SellerServiceanalyticsDimension.d.ts b/dist/models/SellerServiceanalyticsDimension.d.ts new file mode 100644 index 0000000..923a23f --- /dev/null +++ b/dist/models/SellerServiceanalyticsDimension.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SellerServiceanalyticsDimension: { + readonly unknownDimension: "unknownDimension"; + readonly sku: "sku"; + readonly spu: "spu"; + readonly day: "day"; + readonly week: "week"; + readonly month: "month"; + readonly year: "year"; + readonly category1: "category1"; + readonly category2: "category2"; + readonly brand: "brand"; + readonly modelID: "modelID"; + readonly descriptionType: "descriptionType"; +}; +export type SellerServiceanalyticsDimension = typeof SellerServiceanalyticsDimension[keyof typeof SellerServiceanalyticsDimension]; +export declare function instanceOfSellerServiceanalyticsDimension(value: any): boolean; +export declare function SellerServiceanalyticsDimensionFromJSON(json: any): SellerServiceanalyticsDimension; +export declare function SellerServiceanalyticsDimensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerServiceanalyticsDimension; +export declare function SellerServiceanalyticsDimensionToJSON(value?: SellerServiceanalyticsDimension | null): any; diff --git a/dist/models/SellerServiceanalyticsDimension.js b/dist/models/SellerServiceanalyticsDimension.js new file mode 100644 index 0000000..f29f611 --- /dev/null +++ b/dist/models/SellerServiceanalyticsDimension.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SellerServiceanalyticsDimension = void 0; +exports.instanceOfSellerServiceanalyticsDimension = instanceOfSellerServiceanalyticsDimension; +exports.SellerServiceanalyticsDimensionFromJSON = SellerServiceanalyticsDimensionFromJSON; +exports.SellerServiceanalyticsDimensionFromJSONTyped = SellerServiceanalyticsDimensionFromJSONTyped; +exports.SellerServiceanalyticsDimensionToJSON = SellerServiceanalyticsDimensionToJSON; +/** + * + * @export + */ +exports.SellerServiceanalyticsDimension = { + unknownDimension: 'unknownDimension', + sku: 'sku', + spu: 'spu', + day: 'day', + week: 'week', + month: 'month', + year: 'year', + category1: 'category1', + category2: 'category2', + brand: 'brand', + modelID: 'modelID', + descriptionType: 'descriptionType' +}; +function instanceOfSellerServiceanalyticsDimension(value) { + for (const key in exports.SellerServiceanalyticsDimension) { + if (Object.prototype.hasOwnProperty.call(exports.SellerServiceanalyticsDimension, key)) { + if (exports.SellerServiceanalyticsDimension[key] === value) { + return true; + } + } + } + return false; +} +function SellerServiceanalyticsDimensionFromJSON(json) { + return SellerServiceanalyticsDimensionFromJSONTyped(json, false); +} +function SellerServiceanalyticsDimensionFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SellerServiceanalyticsDimensionToJSON(value) { + return value; +} diff --git a/dist/models/SetPostingsResponseResult.d.ts b/dist/models/SetPostingsResponseResult.d.ts new file mode 100644 index 0000000..5c7cdd4 --- /dev/null +++ b/dist/models/SetPostingsResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SetPostingsResponseResult + */ +export interface SetPostingsResponseResult { + /** + * Описание ошибки. + * @type {string} + * @memberof SetPostingsResponseResult + */ + error?: string; + /** + * Номер отправления. + * @type {string} + * @memberof SetPostingsResponseResult + */ + posting_number?: string; + /** + * Результат обработки запроса. `true`, если запрос был обработан успешно. + * + * @type {boolean} + * @memberof SetPostingsResponseResult + */ + result?: boolean; +} +/** + * Check if a given object implements the SetPostingsResponseResult interface. + */ +export declare function instanceOfSetPostingsResponseResult(value: object): value is SetPostingsResponseResult; +export declare function SetPostingsResponseResultFromJSON(json: any): SetPostingsResponseResult; +export declare function SetPostingsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetPostingsResponseResult; +export declare function SetPostingsResponseResultToJSON(value?: SetPostingsResponseResult | null): any; diff --git a/dist/models/SetPostingsResponseResult.js b/dist/models/SetPostingsResponseResult.js new file mode 100644 index 0000000..f85246d --- /dev/null +++ b/dist/models/SetPostingsResponseResult.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSetPostingsResponseResult = instanceOfSetPostingsResponseResult; +exports.SetPostingsResponseResultFromJSON = SetPostingsResponseResultFromJSON; +exports.SetPostingsResponseResultFromJSONTyped = SetPostingsResponseResultFromJSONTyped; +exports.SetPostingsResponseResultToJSON = SetPostingsResponseResultToJSON; +/** + * Check if a given object implements the SetPostingsResponseResult interface. + */ +function instanceOfSetPostingsResponseResult(value) { + return true; +} +function SetPostingsResponseResultFromJSON(json) { + return SetPostingsResponseResultFromJSONTyped(json, false); +} +function SetPostingsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function SetPostingsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'posting_number': value['posting_number'], + 'result': value['result'], + }; +} diff --git a/dist/models/SourceShipmentType.d.ts b/dist/models/SourceShipmentType.d.ts new file mode 100644 index 0000000..0468464 --- /dev/null +++ b/dist/models/SourceShipmentType.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `SHIPMENT_TYPE_UNSPECIFIED` — не указано; + * - `SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `SHIPMENT_TYPE_BOX` — коробка; + * - `SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export declare const SourceShipmentType: { + readonly UNSPECIFIED: "SHIPMENT_TYPE_UNSPECIFIED"; + readonly GENERAL: "SHIPMENT_TYPE_GENERAL"; + readonly BOX: "SHIPMENT_TYPE_BOX"; + readonly PALLET: "SHIPMENT_TYPE_PALLET"; +}; +export type SourceShipmentType = typeof SourceShipmentType[keyof typeof SourceShipmentType]; +export declare function instanceOfSourceShipmentType(value: any): boolean; +export declare function SourceShipmentTypeFromJSON(json: any): SourceShipmentType; +export declare function SourceShipmentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceShipmentType; +export declare function SourceShipmentTypeToJSON(value?: SourceShipmentType | null): any; diff --git a/dist/models/SourceShipmentType.js b/dist/models/SourceShipmentType.js new file mode 100644 index 0000000..68f850f --- /dev/null +++ b/dist/models/SourceShipmentType.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SourceShipmentType = void 0; +exports.instanceOfSourceShipmentType = instanceOfSourceShipmentType; +exports.SourceShipmentTypeFromJSON = SourceShipmentTypeFromJSON; +exports.SourceShipmentTypeFromJSONTyped = SourceShipmentTypeFromJSONTyped; +exports.SourceShipmentTypeToJSON = SourceShipmentTypeToJSON; +/** + * Тип упаковки: + * - `SHIPMENT_TYPE_UNSPECIFIED` — не указано; + * - `SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `SHIPMENT_TYPE_BOX` — коробка; + * - `SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +exports.SourceShipmentType = { + UNSPECIFIED: 'SHIPMENT_TYPE_UNSPECIFIED', + GENERAL: 'SHIPMENT_TYPE_GENERAL', + BOX: 'SHIPMENT_TYPE_BOX', + PALLET: 'SHIPMENT_TYPE_PALLET' +}; +function instanceOfSourceShipmentType(value) { + for (const key in exports.SourceShipmentType) { + if (Object.prototype.hasOwnProperty.call(exports.SourceShipmentType, key)) { + if (exports.SourceShipmentType[key] === value) { + return true; + } + } + } + return false; +} +function SourceShipmentTypeFromJSON(json) { + return SourceShipmentTypeFromJSONTyped(json, false); +} +function SourceShipmentTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SourceShipmentTypeToJSON(value) { + return value; +} diff --git a/dist/models/SplitDeliveryMethod.d.ts b/dist/models/SplitDeliveryMethod.d.ts new file mode 100644 index 0000000..08c7e4a --- /dev/null +++ b/dist/models/SplitDeliveryMethod.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryTypeEnum } from './DeliveryTypeEnum'; +import type { DeliveryMethodDateRange } from './DeliveryMethodDateRange'; +import type { OrderCreateRequestDeliveryPrice } from './OrderCreateRequestDeliveryPrice'; +/** + * Метод доставки. + * @export + * @interface SplitDeliveryMethod + */ +export interface SplitDeliveryMethod { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof SplitDeliveryMethod + */ + delivery_method_id: number; + /** + * + * @type {DeliveryTypeEnum} + * @memberof SplitDeliveryMethod + */ + delivery_type: DeliveryTypeEnum; + /** + * + * @type {DeliveryMethodDateRange} + * @memberof SplitDeliveryMethod + */ + logistic_date_range: DeliveryMethodDateRange; + /** + * + * @type {OrderCreateRequestDeliveryPrice} + * @memberof SplitDeliveryMethod + */ + price?: OrderCreateRequestDeliveryPrice; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof SplitDeliveryMethod + */ + timeslot_id: number; +} +/** + * Check if a given object implements the SplitDeliveryMethod interface. + */ +export declare function instanceOfSplitDeliveryMethod(value: object): value is SplitDeliveryMethod; +export declare function SplitDeliveryMethodFromJSON(json: any): SplitDeliveryMethod; +export declare function SplitDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SplitDeliveryMethod; +export declare function SplitDeliveryMethodToJSON(value?: SplitDeliveryMethod | null): any; diff --git a/dist/models/SplitDeliveryMethod.js b/dist/models/SplitDeliveryMethod.js new file mode 100644 index 0000000..16fc263 --- /dev/null +++ b/dist/models/SplitDeliveryMethod.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSplitDeliveryMethod = instanceOfSplitDeliveryMethod; +exports.SplitDeliveryMethodFromJSON = SplitDeliveryMethodFromJSON; +exports.SplitDeliveryMethodFromJSONTyped = SplitDeliveryMethodFromJSONTyped; +exports.SplitDeliveryMethodToJSON = SplitDeliveryMethodToJSON; +const DeliveryTypeEnum_1 = require("./DeliveryTypeEnum"); +const DeliveryMethodDateRange_1 = require("./DeliveryMethodDateRange"); +const OrderCreateRequestDeliveryPrice_1 = require("./OrderCreateRequestDeliveryPrice"); +/** + * Check if a given object implements the SplitDeliveryMethod interface. + */ +function instanceOfSplitDeliveryMethod(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('delivery_type' in value) || value['delivery_type'] === undefined) + return false; + if (!('logistic_date_range' in value) || value['logistic_date_range'] === undefined) + return false; + if (!('timeslot_id' in value) || value['timeslot_id'] === undefined) + return false; + return true; +} +function SplitDeliveryMethodFromJSON(json) { + return SplitDeliveryMethodFromJSONTyped(json, false); +} +function SplitDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'delivery_type': (0, DeliveryTypeEnum_1.DeliveryTypeEnumFromJSON)(json['delivery_type']), + 'logistic_date_range': (0, DeliveryMethodDateRange_1.DeliveryMethodDateRangeFromJSON)(json['logistic_date_range']), + 'price': json['price'] == null ? undefined : (0, OrderCreateRequestDeliveryPrice_1.OrderCreateRequestDeliveryPriceFromJSON)(json['price']), + 'timeslot_id': json['timeslot_id'], + }; +} +function SplitDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'delivery_type': (0, DeliveryTypeEnum_1.DeliveryTypeEnumToJSON)(value['delivery_type']), + 'logistic_date_range': (0, DeliveryMethodDateRange_1.DeliveryMethodDateRangeToJSON)(value['logistic_date_range']), + 'price': (0, OrderCreateRequestDeliveryPrice_1.OrderCreateRequestDeliveryPriceToJSON)(value['price']), + 'timeslot_id': value['timeslot_id'], + }; +} diff --git a/dist/models/SplitItem.d.ts b/dist/models/SplitItem.d.ts new file mode 100644 index 0000000..1959da2 --- /dev/null +++ b/dist/models/SplitItem.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderCreateRequestPrice } from './OrderCreateRequestPrice'; +/** + * + * @export + * @interface SplitItem + */ +export interface SplitItem { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof SplitItem + */ + offer_id?: string; + /** + * + * @type {OrderCreateRequestPrice} + * @memberof SplitItem + */ + price: OrderCreateRequestPrice; + /** + * Количество товара. + * @type {number} + * @memberof SplitItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof SplitItem + */ + sku: number; +} +/** + * Check if a given object implements the SplitItem interface. + */ +export declare function instanceOfSplitItem(value: object): value is SplitItem; +export declare function SplitItemFromJSON(json: any): SplitItem; +export declare function SplitItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SplitItem; +export declare function SplitItemToJSON(value?: SplitItem | null): any; diff --git a/dist/models/SplitItem.js b/dist/models/SplitItem.js new file mode 100644 index 0000000..14d9977 --- /dev/null +++ b/dist/models/SplitItem.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSplitItem = instanceOfSplitItem; +exports.SplitItemFromJSON = SplitItemFromJSON; +exports.SplitItemFromJSONTyped = SplitItemFromJSONTyped; +exports.SplitItemToJSON = SplitItemToJSON; +const OrderCreateRequestPrice_1 = require("./OrderCreateRequestPrice"); +/** + * Check if a given object implements the SplitItem interface. + */ +function instanceOfSplitItem(value) { + if (!('price' in value) || value['price'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function SplitItemFromJSON(json) { + return SplitItemFromJSONTyped(json, false); +} +function SplitItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': (0, OrderCreateRequestPrice_1.OrderCreateRequestPriceFromJSON)(json['price']), + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +function SplitItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'price': (0, OrderCreateRequestPrice_1.OrderCreateRequestPriceToJSON)(value['price']), + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/StatusEnum.d.ts b/dist/models/StatusEnum.d.ts new file mode 100644 index 0000000..ea54562 --- /dev/null +++ b/dist/models/StatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус изменения скидки от количества. Возможные значения: + * - `ERROR` — ошибка при изменении скидки. Вызовите метод [/v1/product/stairway-discount/by-quantity/set](#operation/ProductAPI_SetProductStairwayDiscountByQuantity) ещё раз. + * - `IN_PROCESS` — изменение в процессе. + * - `SUCCESS` — изменение скидки применено к товару. + * + * @export + */ +export declare const StatusEnum: { + readonly IN_PROCESS: "IN_PROCESS"; + readonly ERROR: "ERROR"; + readonly SUCCESS: "SUCCESS"; +}; +export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum]; +export declare function instanceOfStatusEnum(value: any): boolean; +export declare function StatusEnumFromJSON(json: any): StatusEnum; +export declare function StatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusEnum; +export declare function StatusEnumToJSON(value?: StatusEnum | null): any; diff --git a/dist/models/StatusEnum.js b/dist/models/StatusEnum.js new file mode 100644 index 0000000..5d78824 --- /dev/null +++ b/dist/models/StatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StatusEnum = void 0; +exports.instanceOfStatusEnum = instanceOfStatusEnum; +exports.StatusEnumFromJSON = StatusEnumFromJSON; +exports.StatusEnumFromJSONTyped = StatusEnumFromJSONTyped; +exports.StatusEnumToJSON = StatusEnumToJSON; +/** + * Статус изменения скидки от количества. Возможные значения: + * - `ERROR` — ошибка при изменении скидки. Вызовите метод [/v1/product/stairway-discount/by-quantity/set](#operation/ProductAPI_SetProductStairwayDiscountByQuantity) ещё раз. + * - `IN_PROCESS` — изменение в процессе. + * - `SUCCESS` — изменение скидки применено к товару. + * + * @export + */ +exports.StatusEnum = { + IN_PROCESS: 'IN_PROCESS', + ERROR: 'ERROR', + SUCCESS: 'SUCCESS' +}; +function instanceOfStatusEnum(value) { + for (const key in exports.StatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.StatusEnum, key)) { + if (exports.StatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function StatusEnumFromJSON(json) { + return StatusEnumFromJSONTyped(json, false); +} +function StatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function StatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/StockShipmentType.d.ts b/dist/models/StockShipmentType.d.ts new file mode 100644 index 0000000..1284468 --- /dev/null +++ b/dist/models/StockShipmentType.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `SHIPMENT_TYPE_BOX` — коробка; + * - `SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export declare const StockShipmentType: { + readonly GENERAL: "SHIPMENT_TYPE_GENERAL"; + readonly BOX: "SHIPMENT_TYPE_BOX"; + readonly PALLET: "SHIPMENT_TYPE_PALLET"; +}; +export type StockShipmentType = typeof StockShipmentType[keyof typeof StockShipmentType]; +export declare function instanceOfStockShipmentType(value: any): boolean; +export declare function StockShipmentTypeFromJSON(json: any): StockShipmentType; +export declare function StockShipmentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StockShipmentType; +export declare function StockShipmentTypeToJSON(value?: StockShipmentType | null): any; diff --git a/dist/models/StockShipmentType.js b/dist/models/StockShipmentType.js new file mode 100644 index 0000000..b3de495 --- /dev/null +++ b/dist/models/StockShipmentType.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StockShipmentType = void 0; +exports.instanceOfStockShipmentType = instanceOfStockShipmentType; +exports.StockShipmentTypeFromJSON = StockShipmentTypeFromJSON; +exports.StockShipmentTypeFromJSONTyped = StockShipmentTypeFromJSONTyped; +exports.StockShipmentTypeToJSON = StockShipmentTypeToJSON; +/** + * Тип упаковки: + * - `SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `SHIPMENT_TYPE_BOX` — коробка; + * - `SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +exports.StockShipmentType = { + GENERAL: 'SHIPMENT_TYPE_GENERAL', + BOX: 'SHIPMENT_TYPE_BOX', + PALLET: 'SHIPMENT_TYPE_PALLET' +}; +function instanceOfStockShipmentType(value) { + for (const key in exports.StockShipmentType) { + if (Object.prototype.hasOwnProperty.call(exports.StockShipmentType, key)) { + if (exports.StockShipmentType[key] === value) { + return true; + } + } + } + return false; +} +function StockShipmentTypeFromJSON(json) { + return StockShipmentTypeFromJSONTyped(json, false); +} +function StockShipmentTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function StockShipmentTypeToJSON(value) { + return value; +} diff --git a/dist/models/StocksImportRequestItemStock.d.ts b/dist/models/StocksImportRequestItemStock.d.ts new file mode 100644 index 0000000..2f558ab --- /dev/null +++ b/dist/models/StocksImportRequestItemStock.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StocksImportRequestItemStock + */ +export interface StocksImportRequestItemStock { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof StocksImportRequestItemStock + */ + offer_id: string; + /** + * Количество товара в наличии. + * @type {number} + * @memberof StocksImportRequestItemStock + */ + stock: number; +} +/** + * Check if a given object implements the StocksImportRequestItemStock interface. + */ +export declare function instanceOfStocksImportRequestItemStock(value: object): value is StocksImportRequestItemStock; +export declare function StocksImportRequestItemStockFromJSON(json: any): StocksImportRequestItemStock; +export declare function StocksImportRequestItemStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): StocksImportRequestItemStock; +export declare function StocksImportRequestItemStockToJSON(value?: StocksImportRequestItemStock | null): any; diff --git a/dist/models/StocksImportRequestItemStock.js b/dist/models/StocksImportRequestItemStock.js new file mode 100644 index 0000000..0e57e99 --- /dev/null +++ b/dist/models/StocksImportRequestItemStock.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStocksImportRequestItemStock = instanceOfStocksImportRequestItemStock; +exports.StocksImportRequestItemStockFromJSON = StocksImportRequestItemStockFromJSON; +exports.StocksImportRequestItemStockFromJSONTyped = StocksImportRequestItemStockFromJSONTyped; +exports.StocksImportRequestItemStockToJSON = StocksImportRequestItemStockToJSON; +/** + * Check if a given object implements the StocksImportRequestItemStock interface. + */ +function instanceOfStocksImportRequestItemStock(value) { + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + if (!('stock' in value) || value['stock'] === undefined) + return false; + return true; +} +function StocksImportRequestItemStockFromJSON(json) { + return StocksImportRequestItemStockFromJSONTyped(json, false); +} +function StocksImportRequestItemStockFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'], + 'stock': json['stock'], + }; +} +function StocksImportRequestItemStockToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'stock': value['stock'], + }; +} diff --git a/dist/models/StocksImportResponseItemStatus.d.ts b/dist/models/StocksImportResponseItemStatus.d.ts new file mode 100644 index 0000000..4543dfc --- /dev/null +++ b/dist/models/StocksImportResponseItemStatus.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemStatusError } from './ItemStatusError'; +/** + * + * @export + * @interface StocksImportResponseItemStatus + */ +export interface StocksImportResponseItemStatus { + /** + * Ошибки, которые возникли при обработке запроса. + * @type {Array} + * @memberof StocksImportResponseItemStatus + */ + errors?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof StocksImportResponseItemStatus + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof StocksImportResponseItemStatus + */ + product_id?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof StocksImportResponseItemStatus + */ + sku?: number; + /** + * `true`, если запрос выполнен успешно и остатки обновлены. + * + * @type {boolean} + * @memberof StocksImportResponseItemStatus + */ + updated?: boolean; +} +/** + * Check if a given object implements the StocksImportResponseItemStatus interface. + */ +export declare function instanceOfStocksImportResponseItemStatus(value: object): value is StocksImportResponseItemStatus; +export declare function StocksImportResponseItemStatusFromJSON(json: any): StocksImportResponseItemStatus; +export declare function StocksImportResponseItemStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): StocksImportResponseItemStatus; +export declare function StocksImportResponseItemStatusToJSON(value?: StocksImportResponseItemStatus | null): any; diff --git a/dist/models/StocksImportResponseItemStatus.js b/dist/models/StocksImportResponseItemStatus.js new file mode 100644 index 0000000..7d068a7 --- /dev/null +++ b/dist/models/StocksImportResponseItemStatus.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStocksImportResponseItemStatus = instanceOfStocksImportResponseItemStatus; +exports.StocksImportResponseItemStatusFromJSON = StocksImportResponseItemStatusFromJSON; +exports.StocksImportResponseItemStatusFromJSONTyped = StocksImportResponseItemStatusFromJSONTyped; +exports.StocksImportResponseItemStatusToJSON = StocksImportResponseItemStatusToJSON; +const ItemStatusError_1 = require("./ItemStatusError"); +/** + * Check if a given object implements the StocksImportResponseItemStatus interface. + */ +function instanceOfStocksImportResponseItemStatus(value) { + return true; +} +function StocksImportResponseItemStatusFromJSON(json) { + return StocksImportResponseItemStatusFromJSONTyped(json, false); +} +function StocksImportResponseItemStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(ItemStatusError_1.ItemStatusErrorFromJSON)), + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'updated': json['updated'] == null ? undefined : json['updated'], + }; +} +function StocksImportResponseItemStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(ItemStatusError_1.ItemStatusErrorToJSON)), + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + 'updated': value['updated'], + }; +} diff --git a/dist/models/SupplierAvailableWarehousesResponseCapacity.d.ts b/dist/models/SupplierAvailableWarehousesResponseCapacity.d.ts new file mode 100644 index 0000000..bb7453f --- /dev/null +++ b/dist/models/SupplierAvailableWarehousesResponseCapacity.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplierAvailableWarehousesResponseCapacity + */ +export interface SupplierAvailableWarehousesResponseCapacity { + /** + * Начало периода по местному времени. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseCapacity + */ + start?: string; + /** + * Конец периода по местному времени. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseCapacity + */ + end?: string; + /** + * Среднее количество товаров, которые склад может принять в день за период. + * @type {number} + * @memberof SupplierAvailableWarehousesResponseCapacity + */ + value?: number; +} +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseCapacity interface. + */ +export declare function instanceOfSupplierAvailableWarehousesResponseCapacity(value: object): value is SupplierAvailableWarehousesResponseCapacity; +export declare function SupplierAvailableWarehousesResponseCapacityFromJSON(json: any): SupplierAvailableWarehousesResponseCapacity; +export declare function SupplierAvailableWarehousesResponseCapacityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierAvailableWarehousesResponseCapacity; +export declare function SupplierAvailableWarehousesResponseCapacityToJSON(value?: SupplierAvailableWarehousesResponseCapacity | null): any; diff --git a/dist/models/SupplierAvailableWarehousesResponseCapacity.js b/dist/models/SupplierAvailableWarehousesResponseCapacity.js new file mode 100644 index 0000000..5b060ff --- /dev/null +++ b/dist/models/SupplierAvailableWarehousesResponseCapacity.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplierAvailableWarehousesResponseCapacity = instanceOfSupplierAvailableWarehousesResponseCapacity; +exports.SupplierAvailableWarehousesResponseCapacityFromJSON = SupplierAvailableWarehousesResponseCapacityFromJSON; +exports.SupplierAvailableWarehousesResponseCapacityFromJSONTyped = SupplierAvailableWarehousesResponseCapacityFromJSONTyped; +exports.SupplierAvailableWarehousesResponseCapacityToJSON = SupplierAvailableWarehousesResponseCapacityToJSON; +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseCapacity interface. + */ +function instanceOfSupplierAvailableWarehousesResponseCapacity(value) { + return true; +} +function SupplierAvailableWarehousesResponseCapacityFromJSON(json) { + return SupplierAvailableWarehousesResponseCapacityFromJSONTyped(json, false); +} +function SupplierAvailableWarehousesResponseCapacityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'start': json['start'] == null ? undefined : json['start'], + 'end': json['end'] == null ? undefined : json['end'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function SupplierAvailableWarehousesResponseCapacityToJSON(value) { + if (value == null) { + return value; + } + return { + 'start': value['start'], + 'end': value['end'], + 'value': value['value'], + }; +} diff --git a/dist/models/SupplierAvailableWarehousesResponseResult.d.ts b/dist/models/SupplierAvailableWarehousesResponseResult.d.ts new file mode 100644 index 0000000..18f4a47 --- /dev/null +++ b/dist/models/SupplierAvailableWarehousesResponseResult.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplierAvailableWarehousesResponseWarehouse } from './SupplierAvailableWarehousesResponseWarehouse'; +import type { SupplierAvailableWarehousesResponseSchedule } from './SupplierAvailableWarehousesResponseSchedule'; +/** + * + * @export + * @interface SupplierAvailableWarehousesResponseResult + */ +export interface SupplierAvailableWarehousesResponseResult { + /** + * + * @type {SupplierAvailableWarehousesResponseSchedule} + * @memberof SupplierAvailableWarehousesResponseResult + */ + schedule?: SupplierAvailableWarehousesResponseSchedule; + /** + * + * @type {SupplierAvailableWarehousesResponseWarehouse} + * @memberof SupplierAvailableWarehousesResponseResult + */ + warehouse?: SupplierAvailableWarehousesResponseWarehouse; +} +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseResult interface. + */ +export declare function instanceOfSupplierAvailableWarehousesResponseResult(value: object): value is SupplierAvailableWarehousesResponseResult; +export declare function SupplierAvailableWarehousesResponseResultFromJSON(json: any): SupplierAvailableWarehousesResponseResult; +export declare function SupplierAvailableWarehousesResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierAvailableWarehousesResponseResult; +export declare function SupplierAvailableWarehousesResponseResultToJSON(value?: SupplierAvailableWarehousesResponseResult | null): any; diff --git a/dist/models/SupplierAvailableWarehousesResponseResult.js b/dist/models/SupplierAvailableWarehousesResponseResult.js new file mode 100644 index 0000000..f72f392 --- /dev/null +++ b/dist/models/SupplierAvailableWarehousesResponseResult.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplierAvailableWarehousesResponseResult = instanceOfSupplierAvailableWarehousesResponseResult; +exports.SupplierAvailableWarehousesResponseResultFromJSON = SupplierAvailableWarehousesResponseResultFromJSON; +exports.SupplierAvailableWarehousesResponseResultFromJSONTyped = SupplierAvailableWarehousesResponseResultFromJSONTyped; +exports.SupplierAvailableWarehousesResponseResultToJSON = SupplierAvailableWarehousesResponseResultToJSON; +const SupplierAvailableWarehousesResponseWarehouse_1 = require("./SupplierAvailableWarehousesResponseWarehouse"); +const SupplierAvailableWarehousesResponseSchedule_1 = require("./SupplierAvailableWarehousesResponseSchedule"); +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseResult interface. + */ +function instanceOfSupplierAvailableWarehousesResponseResult(value) { + return true; +} +function SupplierAvailableWarehousesResponseResultFromJSON(json) { + return SupplierAvailableWarehousesResponseResultFromJSONTyped(json, false); +} +function SupplierAvailableWarehousesResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'schedule': json['schedule'] == null ? undefined : (0, SupplierAvailableWarehousesResponseSchedule_1.SupplierAvailableWarehousesResponseScheduleFromJSON)(json['schedule']), + 'warehouse': json['warehouse'] == null ? undefined : (0, SupplierAvailableWarehousesResponseWarehouse_1.SupplierAvailableWarehousesResponseWarehouseFromJSON)(json['warehouse']), + }; +} +function SupplierAvailableWarehousesResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'schedule': (0, SupplierAvailableWarehousesResponseSchedule_1.SupplierAvailableWarehousesResponseScheduleToJSON)(value['schedule']), + 'warehouse': (0, SupplierAvailableWarehousesResponseWarehouse_1.SupplierAvailableWarehousesResponseWarehouseToJSON)(value['warehouse']), + }; +} diff --git a/dist/models/SupplierAvailableWarehousesResponseSchedule.d.ts b/dist/models/SupplierAvailableWarehousesResponseSchedule.d.ts new file mode 100644 index 0000000..c63a193 --- /dev/null +++ b/dist/models/SupplierAvailableWarehousesResponseSchedule.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplierAvailableWarehousesResponseCapacity } from './SupplierAvailableWarehousesResponseCapacity'; +/** + * Загруженность. + * @export + * @interface SupplierAvailableWarehousesResponseSchedule + */ +export interface SupplierAvailableWarehousesResponseSchedule { + /** + * Данные о количестве поставляемых на склад товаров. + * @type {Array} + * @memberof SupplierAvailableWarehousesResponseSchedule + */ + capacity?: Array; + /** + * Ближайшая доступная дата для записи на поставку по местному времени. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseSchedule + */ + date?: string; +} +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseSchedule interface. + */ +export declare function instanceOfSupplierAvailableWarehousesResponseSchedule(value: object): value is SupplierAvailableWarehousesResponseSchedule; +export declare function SupplierAvailableWarehousesResponseScheduleFromJSON(json: any): SupplierAvailableWarehousesResponseSchedule; +export declare function SupplierAvailableWarehousesResponseScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierAvailableWarehousesResponseSchedule; +export declare function SupplierAvailableWarehousesResponseScheduleToJSON(value?: SupplierAvailableWarehousesResponseSchedule | null): any; diff --git a/dist/models/SupplierAvailableWarehousesResponseSchedule.js b/dist/models/SupplierAvailableWarehousesResponseSchedule.js new file mode 100644 index 0000000..71e5e38 --- /dev/null +++ b/dist/models/SupplierAvailableWarehousesResponseSchedule.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplierAvailableWarehousesResponseSchedule = instanceOfSupplierAvailableWarehousesResponseSchedule; +exports.SupplierAvailableWarehousesResponseScheduleFromJSON = SupplierAvailableWarehousesResponseScheduleFromJSON; +exports.SupplierAvailableWarehousesResponseScheduleFromJSONTyped = SupplierAvailableWarehousesResponseScheduleFromJSONTyped; +exports.SupplierAvailableWarehousesResponseScheduleToJSON = SupplierAvailableWarehousesResponseScheduleToJSON; +const SupplierAvailableWarehousesResponseCapacity_1 = require("./SupplierAvailableWarehousesResponseCapacity"); +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseSchedule interface. + */ +function instanceOfSupplierAvailableWarehousesResponseSchedule(value) { + return true; +} +function SupplierAvailableWarehousesResponseScheduleFromJSON(json) { + return SupplierAvailableWarehousesResponseScheduleFromJSONTyped(json, false); +} +function SupplierAvailableWarehousesResponseScheduleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'capacity': json['capacity'] == null ? undefined : (json['capacity'].map(SupplierAvailableWarehousesResponseCapacity_1.SupplierAvailableWarehousesResponseCapacityFromJSON)), + 'date': json['date'] == null ? undefined : json['date'], + }; +} +function SupplierAvailableWarehousesResponseScheduleToJSON(value) { + if (value == null) { + return value; + } + return { + 'capacity': value['capacity'] == null ? undefined : (value['capacity'].map(SupplierAvailableWarehousesResponseCapacity_1.SupplierAvailableWarehousesResponseCapacityToJSON)), + 'date': value['date'], + }; +} diff --git a/dist/models/SupplierAvailableWarehousesResponseWarehouse.d.ts b/dist/models/SupplierAvailableWarehousesResponseWarehouse.d.ts new file mode 100644 index 0000000..566de64 --- /dev/null +++ b/dist/models/SupplierAvailableWarehousesResponseWarehouse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад. + * @export + * @interface SupplierAvailableWarehousesResponseWarehouse + */ +export interface SupplierAvailableWarehousesResponseWarehouse { + /** + * Идентификатор склада. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseWarehouse + */ + id?: string; + /** + * Название склада. + * @type {string} + * @memberof SupplierAvailableWarehousesResponseWarehouse + */ + name?: string; +} +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseWarehouse interface. + */ +export declare function instanceOfSupplierAvailableWarehousesResponseWarehouse(value: object): value is SupplierAvailableWarehousesResponseWarehouse; +export declare function SupplierAvailableWarehousesResponseWarehouseFromJSON(json: any): SupplierAvailableWarehousesResponseWarehouse; +export declare function SupplierAvailableWarehousesResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierAvailableWarehousesResponseWarehouse; +export declare function SupplierAvailableWarehousesResponseWarehouseToJSON(value?: SupplierAvailableWarehousesResponseWarehouse | null): any; diff --git a/dist/models/SupplierAvailableWarehousesResponseWarehouse.js b/dist/models/SupplierAvailableWarehousesResponseWarehouse.js new file mode 100644 index 0000000..50bd7c5 --- /dev/null +++ b/dist/models/SupplierAvailableWarehousesResponseWarehouse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplierAvailableWarehousesResponseWarehouse = instanceOfSupplierAvailableWarehousesResponseWarehouse; +exports.SupplierAvailableWarehousesResponseWarehouseFromJSON = SupplierAvailableWarehousesResponseWarehouseFromJSON; +exports.SupplierAvailableWarehousesResponseWarehouseFromJSONTyped = SupplierAvailableWarehousesResponseWarehouseFromJSONTyped; +exports.SupplierAvailableWarehousesResponseWarehouseToJSON = SupplierAvailableWarehousesResponseWarehouseToJSON; +/** + * Check if a given object implements the SupplierAvailableWarehousesResponseWarehouse interface. + */ +function instanceOfSupplierAvailableWarehousesResponseWarehouse(value) { + return true; +} +function SupplierAvailableWarehousesResponseWarehouseFromJSON(json) { + return SupplierAvailableWarehousesResponseWarehouseFromJSONTyped(json, false); +} +function SupplierAvailableWarehousesResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function SupplierAvailableWarehousesResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/SupplyCancellationAllowability.d.ts b/dist/models/SupplyCancellationAllowability.d.ts new file mode 100644 index 0000000..b5ead31 --- /dev/null +++ b/dist/models/SupplyCancellationAllowability.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CancellationAllowabilityCanNotCancelSupplyReasonEnum } from './CancellationAllowabilityCanNotCancelSupplyReasonEnum'; +/** + * Возможность отмены. + * @export + * @interface SupplyCancellationAllowability + */ +export interface SupplyCancellationAllowability { + /** + * Причина, почему нельзя отменить поставку: + * - `UNSPECIFIED` — не определена; + * - `INVALID_SUPPLY_STATE` — некорректный статус поставки; + * - `SUPPLY_IS_VIRTUAL` — поставка виртуальная; + * - `SUPPLY_HAS_ACTIVE_UTD` — у поставки есть активный УПД; + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — поставка не принадлежит продавцу; + * - `PICKUP_SUPPLY_IS_LOCKED_DOWN` — заблокировано редактирование поставки; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof SupplyCancellationAllowability + */ + can_not_set_reasons?: Array; + /** + * `true`, если поставку можно отменить. + * + * @type {boolean} + * @memberof SupplyCancellationAllowability + */ + can_set?: boolean; +} +/** + * Check if a given object implements the SupplyCancellationAllowability interface. + */ +export declare function instanceOfSupplyCancellationAllowability(value: object): value is SupplyCancellationAllowability; +export declare function SupplyCancellationAllowabilityFromJSON(json: any): SupplyCancellationAllowability; +export declare function SupplyCancellationAllowabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCancellationAllowability; +export declare function SupplyCancellationAllowabilityToJSON(value?: SupplyCancellationAllowability | null): any; diff --git a/dist/models/SupplyCancellationAllowability.js b/dist/models/SupplyCancellationAllowability.js new file mode 100644 index 0000000..bec1f7d --- /dev/null +++ b/dist/models/SupplyCancellationAllowability.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyCancellationAllowability = instanceOfSupplyCancellationAllowability; +exports.SupplyCancellationAllowabilityFromJSON = SupplyCancellationAllowabilityFromJSON; +exports.SupplyCancellationAllowabilityFromJSONTyped = SupplyCancellationAllowabilityFromJSONTyped; +exports.SupplyCancellationAllowabilityToJSON = SupplyCancellationAllowabilityToJSON; +const CancellationAllowabilityCanNotCancelSupplyReasonEnum_1 = require("./CancellationAllowabilityCanNotCancelSupplyReasonEnum"); +/** + * Check if a given object implements the SupplyCancellationAllowability interface. + */ +function instanceOfSupplyCancellationAllowability(value) { + return true; +} +function SupplyCancellationAllowabilityFromJSON(json) { + return SupplyCancellationAllowabilityFromJSONTyped(json, false); +} +function SupplyCancellationAllowabilityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_not_set_reasons': json['can_not_set_reasons'] == null ? undefined : (json['can_not_set_reasons'].map(CancellationAllowabilityCanNotCancelSupplyReasonEnum_1.CancellationAllowabilityCanNotCancelSupplyReasonEnumFromJSON)), + 'can_set': json['can_set'] == null ? undefined : json['can_set'], + }; +} +function SupplyCancellationAllowabilityToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_not_set_reasons': value['can_not_set_reasons'] == null ? undefined : (value['can_not_set_reasons'].map(CancellationAllowabilityCanNotCancelSupplyReasonEnum_1.CancellationAllowabilityCanNotCancelSupplyReasonEnumToJSON)), + 'can_set': value['can_set'], + }; +} diff --git a/dist/models/SupplyCargoInfo.d.ts b/dist/models/SupplyCargoInfo.d.ts new file mode 100644 index 0000000..c0ccbf6 --- /dev/null +++ b/dist/models/SupplyCargoInfo.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoInfoTrackingInfo } from './CargoInfoTrackingInfo'; +import type { CargoInfoContentTypeEnum } from './CargoInfoContentTypeEnum'; +import type { SupplyCargoInfoTypeEnum } from './SupplyCargoInfoTypeEnum'; +import type { CargoInfoPlacementZoneTypeEnum } from './CargoInfoPlacementZoneTypeEnum'; +/** + * + * @export + * @interface SupplyCargoInfo + */ +export interface SupplyCargoInfo { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof SupplyCargoInfo + */ + bundle_id?: string; + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof SupplyCargoInfo + */ + cargo_id?: number; + /** + * + * @type {CargoInfoContentTypeEnum} + * @memberof SupplyCargoInfo + */ + content_type?: CargoInfoContentTypeEnum; + /** + * + * @type {CargoInfoPlacementZoneTypeEnum} + * @memberof SupplyCargoInfo + */ + placement_zone_type?: CargoInfoPlacementZoneTypeEnum; + /** + * + * @type {CargoInfoTrackingInfo} + * @memberof SupplyCargoInfo + */ + tracking_info?: CargoInfoTrackingInfo; + /** + * + * @type {SupplyCargoInfoTypeEnum} + * @memberof SupplyCargoInfo + */ + type?: SupplyCargoInfoTypeEnum; +} +/** + * Check if a given object implements the SupplyCargoInfo interface. + */ +export declare function instanceOfSupplyCargoInfo(value: object): value is SupplyCargoInfo; +export declare function SupplyCargoInfoFromJSON(json: any): SupplyCargoInfo; +export declare function SupplyCargoInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCargoInfo; +export declare function SupplyCargoInfoToJSON(value?: SupplyCargoInfo | null): any; diff --git a/dist/models/SupplyCargoInfo.js b/dist/models/SupplyCargoInfo.js new file mode 100644 index 0000000..c12e414 --- /dev/null +++ b/dist/models/SupplyCargoInfo.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyCargoInfo = instanceOfSupplyCargoInfo; +exports.SupplyCargoInfoFromJSON = SupplyCargoInfoFromJSON; +exports.SupplyCargoInfoFromJSONTyped = SupplyCargoInfoFromJSONTyped; +exports.SupplyCargoInfoToJSON = SupplyCargoInfoToJSON; +const CargoInfoTrackingInfo_1 = require("./CargoInfoTrackingInfo"); +const CargoInfoContentTypeEnum_1 = require("./CargoInfoContentTypeEnum"); +const SupplyCargoInfoTypeEnum_1 = require("./SupplyCargoInfoTypeEnum"); +const CargoInfoPlacementZoneTypeEnum_1 = require("./CargoInfoPlacementZoneTypeEnum"); +/** + * Check if a given object implements the SupplyCargoInfo interface. + */ +function instanceOfSupplyCargoInfo(value) { + return true; +} +function SupplyCargoInfoFromJSON(json) { + return SupplyCargoInfoFromJSONTyped(json, false); +} +function SupplyCargoInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'content_type': json['content_type'] == null ? undefined : (0, CargoInfoContentTypeEnum_1.CargoInfoContentTypeEnumFromJSON)(json['content_type']), + 'placement_zone_type': json['placement_zone_type'] == null ? undefined : (0, CargoInfoPlacementZoneTypeEnum_1.CargoInfoPlacementZoneTypeEnumFromJSON)(json['placement_zone_type']), + 'tracking_info': json['tracking_info'] == null ? undefined : (0, CargoInfoTrackingInfo_1.CargoInfoTrackingInfoFromJSON)(json['tracking_info']), + 'type': json['type'] == null ? undefined : (0, SupplyCargoInfoTypeEnum_1.SupplyCargoInfoTypeEnumFromJSON)(json['type']), + }; +} +function SupplyCargoInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cargo_id': value['cargo_id'], + 'content_type': (0, CargoInfoContentTypeEnum_1.CargoInfoContentTypeEnumToJSON)(value['content_type']), + 'placement_zone_type': (0, CargoInfoPlacementZoneTypeEnum_1.CargoInfoPlacementZoneTypeEnumToJSON)(value['placement_zone_type']), + 'tracking_info': (0, CargoInfoTrackingInfo_1.CargoInfoTrackingInfoToJSON)(value['tracking_info']), + 'type': (0, SupplyCargoInfoTypeEnum_1.SupplyCargoInfoTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/SupplyCargoInfoTypeEnum.d.ts b/dist/models/SupplyCargoInfoTypeEnum.d.ts new file mode 100644 index 0000000..74c23f8 --- /dev/null +++ b/dist/models/SupplyCargoInfoTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён, + * - `BOX` — коробка, + * - `PALLET` — палета. + * + * @export + */ +export declare const SupplyCargoInfoTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type SupplyCargoInfoTypeEnum = typeof SupplyCargoInfoTypeEnum[keyof typeof SupplyCargoInfoTypeEnum]; +export declare function instanceOfSupplyCargoInfoTypeEnum(value: any): boolean; +export declare function SupplyCargoInfoTypeEnumFromJSON(json: any): SupplyCargoInfoTypeEnum; +export declare function SupplyCargoInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCargoInfoTypeEnum; +export declare function SupplyCargoInfoTypeEnumToJSON(value?: SupplyCargoInfoTypeEnum | null): any; diff --git a/dist/models/SupplyCargoInfoTypeEnum.js b/dist/models/SupplyCargoInfoTypeEnum.js new file mode 100644 index 0000000..09e376b --- /dev/null +++ b/dist/models/SupplyCargoInfoTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyCargoInfoTypeEnum = void 0; +exports.instanceOfSupplyCargoInfoTypeEnum = instanceOfSupplyCargoInfoTypeEnum; +exports.SupplyCargoInfoTypeEnumFromJSON = SupplyCargoInfoTypeEnumFromJSON; +exports.SupplyCargoInfoTypeEnumFromJSONTyped = SupplyCargoInfoTypeEnumFromJSONTyped; +exports.SupplyCargoInfoTypeEnumToJSON = SupplyCargoInfoTypeEnumToJSON; +/** + * Тип грузоместа: + * - `UNSPECIFIED` — не определён, + * - `BOX` — коробка, + * - `PALLET` — палета. + * + * @export + */ +exports.SupplyCargoInfoTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BOX: 'BOX', + PALLET: 'PALLET' +}; +function instanceOfSupplyCargoInfoTypeEnum(value) { + for (const key in exports.SupplyCargoInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyCargoInfoTypeEnum, key)) { + if (exports.SupplyCargoInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyCargoInfoTypeEnumFromJSON(json) { + return SupplyCargoInfoTypeEnumFromJSONTyped(json, false); +} +function SupplyCargoInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyCargoInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyCheckCargoesPresentRule.d.ts b/dist/models/SupplyCheckCargoesPresentRule.d.ts new file mode 100644 index 0000000..5aad96b --- /dev/null +++ b/dist/models/SupplyCheckCargoesPresentRule.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesPresentRuleCargoCountPerType } from './CargoesPresentRuleCargoCountPerType'; +/** + * Правило указания грузомест. + * @export + * @interface SupplyCheckCargoesPresentRule + */ +export interface SupplyCheckCargoesPresentRule { + /** + * Количество грузомест каждого типа. + * @type {Array} + * @memberof SupplyCheckCargoesPresentRule + */ + cargo_count_per_type?: Array; + /** + * Общее количество грузомест. + * @type {number} + * @memberof SupplyCheckCargoesPresentRule + */ + count?: number; + /** + * `true`, если грузоместа указаны. + * + * @type {boolean} + * @memberof SupplyCheckCargoesPresentRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckCargoesPresentRule interface. + */ +export declare function instanceOfSupplyCheckCargoesPresentRule(value: object): value is SupplyCheckCargoesPresentRule; +export declare function SupplyCheckCargoesPresentRuleFromJSON(json: any): SupplyCheckCargoesPresentRule; +export declare function SupplyCheckCargoesPresentRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckCargoesPresentRule; +export declare function SupplyCheckCargoesPresentRuleToJSON(value?: SupplyCheckCargoesPresentRule | null): any; diff --git a/dist/models/SupplyCheckCargoesPresentRule.js b/dist/models/SupplyCheckCargoesPresentRule.js new file mode 100644 index 0000000..0d855c8 --- /dev/null +++ b/dist/models/SupplyCheckCargoesPresentRule.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyCheckCargoesPresentRule = instanceOfSupplyCheckCargoesPresentRule; +exports.SupplyCheckCargoesPresentRuleFromJSON = SupplyCheckCargoesPresentRuleFromJSON; +exports.SupplyCheckCargoesPresentRuleFromJSONTyped = SupplyCheckCargoesPresentRuleFromJSONTyped; +exports.SupplyCheckCargoesPresentRuleToJSON = SupplyCheckCargoesPresentRuleToJSON; +const CargoesPresentRuleCargoCountPerType_1 = require("./CargoesPresentRuleCargoCountPerType"); +/** + * Check if a given object implements the SupplyCheckCargoesPresentRule interface. + */ +function instanceOfSupplyCheckCargoesPresentRule(value) { + return true; +} +function SupplyCheckCargoesPresentRuleFromJSON(json) { + return SupplyCheckCargoesPresentRuleFromJSONTyped(json, false); +} +function SupplyCheckCargoesPresentRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_count_per_type': json['cargo_count_per_type'] == null ? undefined : (json['cargo_count_per_type'].map(CargoesPresentRuleCargoCountPerType_1.CargoesPresentRuleCargoCountPerTypeFromJSON)), + 'count': json['count'] == null ? undefined : json['count'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +function SupplyCheckCargoesPresentRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_count_per_type': value['cargo_count_per_type'] == null ? undefined : (value['cargo_count_per_type'].map(CargoesPresentRuleCargoCountPerType_1.CargoesPresentRuleCargoCountPerTypeToJSON)), + 'count': value['count'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/models/SupplyCheckEditDeadlineExpireRule.d.ts b/dist/models/SupplyCheckEditDeadlineExpireRule.d.ts new file mode 100644 index 0000000..6e1b53e --- /dev/null +++ b/dist/models/SupplyCheckEditDeadlineExpireRule.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило крайнего срока редактирования грузомест. + * @export + * @interface SupplyCheckEditDeadlineExpireRule + */ +export interface SupplyCheckEditDeadlineExpireRule { + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckEditDeadlineExpireRule + */ + is_applicable?: boolean; + /** + * `true`, если правило обязательно для текущей поставки. + * + * @type {boolean} + * @memberof SupplyCheckEditDeadlineExpireRule + */ + is_required?: boolean; + /** + * `true`, если крайний срок для редактирования не наступил. + * + * @type {boolean} + * @memberof SupplyCheckEditDeadlineExpireRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckEditDeadlineExpireRule interface. + */ +export declare function instanceOfSupplyCheckEditDeadlineExpireRule(value: object): value is SupplyCheckEditDeadlineExpireRule; +export declare function SupplyCheckEditDeadlineExpireRuleFromJSON(json: any): SupplyCheckEditDeadlineExpireRule; +export declare function SupplyCheckEditDeadlineExpireRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckEditDeadlineExpireRule; +export declare function SupplyCheckEditDeadlineExpireRuleToJSON(value?: SupplyCheckEditDeadlineExpireRule | null): any; diff --git a/dist/models/SupplyCheckEditDeadlineExpireRule.js b/dist/models/SupplyCheckEditDeadlineExpireRule.js new file mode 100644 index 0000000..0823add --- /dev/null +++ b/dist/models/SupplyCheckEditDeadlineExpireRule.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyCheckEditDeadlineExpireRule = instanceOfSupplyCheckEditDeadlineExpireRule; +exports.SupplyCheckEditDeadlineExpireRuleFromJSON = SupplyCheckEditDeadlineExpireRuleFromJSON; +exports.SupplyCheckEditDeadlineExpireRuleFromJSONTyped = SupplyCheckEditDeadlineExpireRuleFromJSONTyped; +exports.SupplyCheckEditDeadlineExpireRuleToJSON = SupplyCheckEditDeadlineExpireRuleToJSON; +/** + * Check if a given object implements the SupplyCheckEditDeadlineExpireRule interface. + */ +function instanceOfSupplyCheckEditDeadlineExpireRule(value) { + return true; +} +function SupplyCheckEditDeadlineExpireRuleFromJSON(json) { + return SupplyCheckEditDeadlineExpireRuleFromJSONTyped(json, false); +} +function SupplyCheckEditDeadlineExpireRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +function SupplyCheckEditDeadlineExpireRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_applicable': value['is_applicable'], + 'is_required': value['is_required'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/models/SupplyCheckExpireDatePresentedRule.d.ts b/dist/models/SupplyCheckExpireDatePresentedRule.d.ts new file mode 100644 index 0000000..54cfccd --- /dev/null +++ b/dist/models/SupplyCheckExpireDatePresentedRule.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило указания сроков годности для товаров. + * @export + * @interface SupplyCheckExpireDatePresentedRule + */ +export interface SupplyCheckExpireDatePresentedRule { + /** + * Количество SKU с корректным сроком годности. + * @type {number} + * @memberof SupplyCheckExpireDatePresentedRule + */ + count_sku_with_expiration?: number; + /** + * Количество SKU, для которых обязателен срок годности. + * @type {number} + * @memberof SupplyCheckExpireDatePresentedRule + */ + count_sku_with_expiration_filled?: number; + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckExpireDatePresentedRule + */ + is_applicable?: boolean; + /** + * `true`, если правило обязательно для текущей поставки. + * + * @type {boolean} + * @memberof SupplyCheckExpireDatePresentedRule + */ + is_required?: boolean; + /** + * `true`, если сроки годности указаны корректно. + * + * @type {boolean} + * @memberof SupplyCheckExpireDatePresentedRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckExpireDatePresentedRule interface. + */ +export declare function instanceOfSupplyCheckExpireDatePresentedRule(value: object): value is SupplyCheckExpireDatePresentedRule; +export declare function SupplyCheckExpireDatePresentedRuleFromJSON(json: any): SupplyCheckExpireDatePresentedRule; +export declare function SupplyCheckExpireDatePresentedRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckExpireDatePresentedRule; +export declare function SupplyCheckExpireDatePresentedRuleToJSON(value?: SupplyCheckExpireDatePresentedRule | null): any; diff --git a/dist/models/SupplyCheckExpireDatePresentedRule.js b/dist/models/SupplyCheckExpireDatePresentedRule.js new file mode 100644 index 0000000..220fdc9 --- /dev/null +++ b/dist/models/SupplyCheckExpireDatePresentedRule.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyCheckExpireDatePresentedRule = instanceOfSupplyCheckExpireDatePresentedRule; +exports.SupplyCheckExpireDatePresentedRuleFromJSON = SupplyCheckExpireDatePresentedRuleFromJSON; +exports.SupplyCheckExpireDatePresentedRuleFromJSONTyped = SupplyCheckExpireDatePresentedRuleFromJSONTyped; +exports.SupplyCheckExpireDatePresentedRuleToJSON = SupplyCheckExpireDatePresentedRuleToJSON; +/** + * Check if a given object implements the SupplyCheckExpireDatePresentedRule interface. + */ +function instanceOfSupplyCheckExpireDatePresentedRule(value) { + return true; +} +function SupplyCheckExpireDatePresentedRuleFromJSON(json) { + return SupplyCheckExpireDatePresentedRuleFromJSONTyped(json, false); +} +function SupplyCheckExpireDatePresentedRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_sku_with_expiration': json['count_sku_with_expiration'] == null ? undefined : json['count_sku_with_expiration'], + 'count_sku_with_expiration_filled': json['count_sku_with_expiration_filled'] == null ? undefined : json['count_sku_with_expiration_filled'], + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +function SupplyCheckExpireDatePresentedRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_sku_with_expiration': value['count_sku_with_expiration'], + 'count_sku_with_expiration_filled': value['count_sku_with_expiration_filled'], + 'is_applicable': value['is_applicable'], + 'is_required': value['is_required'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/models/SupplyCheckIsValidDistributionRule.d.ts b/dist/models/SupplyCheckIsValidDistributionRule.d.ts new file mode 100644 index 0000000..1111de1 --- /dev/null +++ b/dist/models/SupplyCheckIsValidDistributionRule.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило совпадения составов грузомест с составом поставки. + * @export + * @interface SupplyCheckIsValidDistributionRule + */ +export interface SupplyCheckIsValidDistributionRule { + /** + * Количество SKU, которые совпадают с поставкой. + * @type {number} + * @memberof SupplyCheckIsValidDistributionRule + */ + count_distributed_sku?: number; + /** + * Общее количество SKU. + * @type {number} + * @memberof SupplyCheckIsValidDistributionRule + */ + count_sku_total?: number; + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckIsValidDistributionRule + */ + is_applicable?: boolean; + /** + * Процент совпадения состава грузомест с составом поставки. + * @type {number} + * @memberof SupplyCheckIsValidDistributionRule + */ + percents_int?: number; + /** + * `true`, если состав грузомест совпадает с составом поставки. + * + * @type {boolean} + * @memberof SupplyCheckIsValidDistributionRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckIsValidDistributionRule interface. + */ +export declare function instanceOfSupplyCheckIsValidDistributionRule(value: object): value is SupplyCheckIsValidDistributionRule; +export declare function SupplyCheckIsValidDistributionRuleFromJSON(json: any): SupplyCheckIsValidDistributionRule; +export declare function SupplyCheckIsValidDistributionRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckIsValidDistributionRule; +export declare function SupplyCheckIsValidDistributionRuleToJSON(value?: SupplyCheckIsValidDistributionRule | null): any; diff --git a/dist/models/SupplyCheckIsValidDistributionRule.js b/dist/models/SupplyCheckIsValidDistributionRule.js new file mode 100644 index 0000000..f8a1762 --- /dev/null +++ b/dist/models/SupplyCheckIsValidDistributionRule.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyCheckIsValidDistributionRule = instanceOfSupplyCheckIsValidDistributionRule; +exports.SupplyCheckIsValidDistributionRuleFromJSON = SupplyCheckIsValidDistributionRuleFromJSON; +exports.SupplyCheckIsValidDistributionRuleFromJSONTyped = SupplyCheckIsValidDistributionRuleFromJSONTyped; +exports.SupplyCheckIsValidDistributionRuleToJSON = SupplyCheckIsValidDistributionRuleToJSON; +/** + * Check if a given object implements the SupplyCheckIsValidDistributionRule interface. + */ +function instanceOfSupplyCheckIsValidDistributionRule(value) { + return true; +} +function SupplyCheckIsValidDistributionRuleFromJSON(json) { + return SupplyCheckIsValidDistributionRuleFromJSONTyped(json, false); +} +function SupplyCheckIsValidDistributionRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_distributed_sku': json['count_distributed_sku'] == null ? undefined : json['count_distributed_sku'], + 'count_sku_total': json['count_sku_total'] == null ? undefined : json['count_sku_total'], + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'percents_int': json['percents_int'] == null ? undefined : json['percents_int'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +function SupplyCheckIsValidDistributionRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_distributed_sku': value['count_distributed_sku'], + 'count_sku_total': value['count_sku_total'], + 'is_applicable': value['is_applicable'], + 'percents_int': value['percents_int'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/models/SupplyCheckPackageUnitWithDistributionRule.d.ts b/dist/models/SupplyCheckPackageUnitWithDistributionRule.d.ts new file mode 100644 index 0000000..1499b96 --- /dev/null +++ b/dist/models/SupplyCheckPackageUnitWithDistributionRule.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило заполнения состава грузомест. + * @export + * @interface SupplyCheckPackageUnitWithDistributionRule + */ +export interface SupplyCheckPackageUnitWithDistributionRule { + /** + * Общее количество грузомест. + * @type {number} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + count_all?: number; + /** + * Количество заполненных грузомест. + * @type {number} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + count_with_distribution?: number; + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + is_applicable?: boolean; + /** + * `true`, если правило обязательно для текущей поставки. + * + * @type {boolean} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + is_required?: boolean; + /** + * `true`, если указаны составы для всех грузомест. + * + * @type {boolean} + * @memberof SupplyCheckPackageUnitWithDistributionRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckPackageUnitWithDistributionRule interface. + */ +export declare function instanceOfSupplyCheckPackageUnitWithDistributionRule(value: object): value is SupplyCheckPackageUnitWithDistributionRule; +export declare function SupplyCheckPackageUnitWithDistributionRuleFromJSON(json: any): SupplyCheckPackageUnitWithDistributionRule; +export declare function SupplyCheckPackageUnitWithDistributionRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckPackageUnitWithDistributionRule; +export declare function SupplyCheckPackageUnitWithDistributionRuleToJSON(value?: SupplyCheckPackageUnitWithDistributionRule | null): any; diff --git a/dist/models/SupplyCheckPackageUnitWithDistributionRule.js b/dist/models/SupplyCheckPackageUnitWithDistributionRule.js new file mode 100644 index 0000000..56d6668 --- /dev/null +++ b/dist/models/SupplyCheckPackageUnitWithDistributionRule.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyCheckPackageUnitWithDistributionRule = instanceOfSupplyCheckPackageUnitWithDistributionRule; +exports.SupplyCheckPackageUnitWithDistributionRuleFromJSON = SupplyCheckPackageUnitWithDistributionRuleFromJSON; +exports.SupplyCheckPackageUnitWithDistributionRuleFromJSONTyped = SupplyCheckPackageUnitWithDistributionRuleFromJSONTyped; +exports.SupplyCheckPackageUnitWithDistributionRuleToJSON = SupplyCheckPackageUnitWithDistributionRuleToJSON; +/** + * Check if a given object implements the SupplyCheckPackageUnitWithDistributionRule interface. + */ +function instanceOfSupplyCheckPackageUnitWithDistributionRule(value) { + return true; +} +function SupplyCheckPackageUnitWithDistributionRuleFromJSON(json) { + return SupplyCheckPackageUnitWithDistributionRuleFromJSONTyped(json, false); +} +function SupplyCheckPackageUnitWithDistributionRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_all': json['count_all'] == null ? undefined : json['count_all'], + 'count_with_distribution': json['count_with_distribution'] == null ? undefined : json['count_with_distribution'], + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +function SupplyCheckPackageUnitWithDistributionRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_all': value['count_all'], + 'count_with_distribution': value['count_with_distribution'], + 'is_applicable': value['is_applicable'], + 'is_required': value['is_required'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/models/SupplyCheckPlacementZoneRule.d.ts b/dist/models/SupplyCheckPlacementZoneRule.d.ts new file mode 100644 index 0000000..e961473 --- /dev/null +++ b/dist/models/SupplyCheckPlacementZoneRule.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Правило распределения товаров в грузоместах по зонам размещения. + * @export + * @interface SupplyCheckPlacementZoneRule + */ +export interface SupplyCheckPlacementZoneRule { + /** + * Количество грузомест. + * @type {number} + * @memberof SupplyCheckPlacementZoneRule + */ + count_cargoes_all?: number; + /** + * Количество грузомест с распределением по зонам размещения. + * @type {number} + * @memberof SupplyCheckPlacementZoneRule + */ + count_cargoes_with_mono_placement_zone?: number; + /** + * `true`, если правило применимо к текущей поставке. + * + * @type {boolean} + * @memberof SupplyCheckPlacementZoneRule + */ + is_applicable?: boolean; + /** + * `true`, если товары во всех грузоместах распределены по зонам размещения. + * + * @type {boolean} + * @memberof SupplyCheckPlacementZoneRule + */ + satisfied?: boolean; +} +/** + * Check if a given object implements the SupplyCheckPlacementZoneRule interface. + */ +export declare function instanceOfSupplyCheckPlacementZoneRule(value: object): value is SupplyCheckPlacementZoneRule; +export declare function SupplyCheckPlacementZoneRuleFromJSON(json: any): SupplyCheckPlacementZoneRule; +export declare function SupplyCheckPlacementZoneRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyCheckPlacementZoneRule; +export declare function SupplyCheckPlacementZoneRuleToJSON(value?: SupplyCheckPlacementZoneRule | null): any; diff --git a/dist/models/SupplyCheckPlacementZoneRule.js b/dist/models/SupplyCheckPlacementZoneRule.js new file mode 100644 index 0000000..8bcb510 --- /dev/null +++ b/dist/models/SupplyCheckPlacementZoneRule.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyCheckPlacementZoneRule = instanceOfSupplyCheckPlacementZoneRule; +exports.SupplyCheckPlacementZoneRuleFromJSON = SupplyCheckPlacementZoneRuleFromJSON; +exports.SupplyCheckPlacementZoneRuleFromJSONTyped = SupplyCheckPlacementZoneRuleFromJSONTyped; +exports.SupplyCheckPlacementZoneRuleToJSON = SupplyCheckPlacementZoneRuleToJSON; +/** + * Check if a given object implements the SupplyCheckPlacementZoneRule interface. + */ +function instanceOfSupplyCheckPlacementZoneRule(value) { + return true; +} +function SupplyCheckPlacementZoneRuleFromJSON(json) { + return SupplyCheckPlacementZoneRuleFromJSONTyped(json, false); +} +function SupplyCheckPlacementZoneRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_cargoes_all': json['count_cargoes_all'] == null ? undefined : json['count_cargoes_all'], + 'count_cargoes_with_mono_placement_zone': json['count_cargoes_with_mono_placement_zone'] == null ? undefined : json['count_cargoes_with_mono_placement_zone'], + 'is_applicable': json['is_applicable'] == null ? undefined : json['is_applicable'], + 'satisfied': json['satisfied'] == null ? undefined : json['satisfied'], + }; +} +function SupplyCheckPlacementZoneRuleToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_cargoes_all': value['count_cargoes_all'], + 'count_cargoes_with_mono_placement_zone': value['count_cargoes_with_mono_placement_zone'], + 'is_applicable': value['is_applicable'], + 'satisfied': value['satisfied'], + }; +} diff --git a/dist/models/SupplyContent.d.ts b/dist/models/SupplyContent.d.ts new file mode 100644 index 0000000..56222ac --- /dev/null +++ b/dist/models/SupplyContent.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ContentCanNotEditSupplyContentReasonEnum } from './ContentCanNotEditSupplyContentReasonEnum'; +/** + * Товарный состав поставки. + * @export + * @interface SupplyContent + */ +export interface SupplyContent { + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof SupplyContent + */ + bundle_id?: string; + /** + * Причина, почему нельзя изменить товарный состав поставки: + * - `UNSPECIFIED` — не определена; + * - `INCORRECT_SUPPLY_STATE` — некорректный статус поставки; + * - `DEADLINE` — поставка просрочена; + * - `UTD_IS_UPLOADED` — УПД загружен; + * - `STORAGE_WAREHOUSE_IS_NOT_WMS` — некорректный склад хранения; + * - `CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS` — недействительный договор для обработки заявок на поставку; + * - `SUPPLY_IS_VIRTUAL` — поставка виртуальная; + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — поставка не принадлежит продавцу; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof SupplyContent + */ + can_not_set_reasons?: Array; + /** + * `true`, если можно изменить товарный состав поставки. + * + * @type {boolean} + * @memberof SupplyContent + */ + can_set?: boolean; +} +/** + * Check if a given object implements the SupplyContent interface. + */ +export declare function instanceOfSupplyContent(value: object): value is SupplyContent; +export declare function SupplyContentFromJSON(json: any): SupplyContent; +export declare function SupplyContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyContent; +export declare function SupplyContentToJSON(value?: SupplyContent | null): any; diff --git a/dist/models/SupplyContent.js b/dist/models/SupplyContent.js new file mode 100644 index 0000000..ee95865 --- /dev/null +++ b/dist/models/SupplyContent.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyContent = instanceOfSupplyContent; +exports.SupplyContentFromJSON = SupplyContentFromJSON; +exports.SupplyContentFromJSONTyped = SupplyContentFromJSONTyped; +exports.SupplyContentToJSON = SupplyContentToJSON; +const ContentCanNotEditSupplyContentReasonEnum_1 = require("./ContentCanNotEditSupplyContentReasonEnum"); +/** + * Check if a given object implements the SupplyContent interface. + */ +function instanceOfSupplyContent(value) { + return true; +} +function SupplyContentFromJSON(json) { + return SupplyContentFromJSONTyped(json, false); +} +function SupplyContentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'can_not_set_reasons': json['can_not_set_reasons'] == null ? undefined : (json['can_not_set_reasons'].map(ContentCanNotEditSupplyContentReasonEnum_1.ContentCanNotEditSupplyContentReasonEnumFromJSON)), + 'can_set': json['can_set'] == null ? undefined : json['can_set'], + }; +} +function SupplyContentToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'can_not_set_reasons': value['can_not_set_reasons'] == null ? undefined : (value['can_not_set_reasons'].map(ContentCanNotEditSupplyContentReasonEnum_1.ContentCanNotEditSupplyContentReasonEnumToJSON)), + 'can_set': value['can_set'], + }; +} diff --git a/dist/models/SupplyETTN.d.ts b/dist/models/SupplyETTN.d.ts new file mode 100644 index 0000000..597bf0c --- /dev/null +++ b/dist/models/SupplyETTN.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация по электронной ТТН. + * @export + * @interface SupplyETTN + */ +export interface SupplyETTN { + /** + * `true`, если электронная ТТН действительная. + * + * @type {boolean} + * @memberof SupplyETTN + */ + contains_valid?: boolean; + /** + * `true`, если для поставки нужна электронная ТТН. + * + * @type {boolean} + * @memberof SupplyETTN + */ + is_required?: boolean; + /** + * `true`, если электронная ТТН загружена. + * + * @type {boolean} + * @memberof SupplyETTN + */ + is_uploaded?: boolean; +} +/** + * Check if a given object implements the SupplyETTN interface. + */ +export declare function instanceOfSupplyETTN(value: object): value is SupplyETTN; +export declare function SupplyETTNFromJSON(json: any): SupplyETTN; +export declare function SupplyETTNFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyETTN; +export declare function SupplyETTNToJSON(value?: SupplyETTN | null): any; diff --git a/dist/models/SupplyETTN.js b/dist/models/SupplyETTN.js new file mode 100644 index 0000000..b30d57d --- /dev/null +++ b/dist/models/SupplyETTN.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyETTN = instanceOfSupplyETTN; +exports.SupplyETTNFromJSON = SupplyETTNFromJSON; +exports.SupplyETTNFromJSONTyped = SupplyETTNFromJSONTyped; +exports.SupplyETTNToJSON = SupplyETTNToJSON; +/** + * Check if a given object implements the SupplyETTN interface. + */ +function instanceOfSupplyETTN(value) { + return true; +} +function SupplyETTNFromJSON(json) { + return SupplyETTNFromJSONTyped(json, false); +} +function SupplyETTNFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contains_valid': json['contains_valid'] == null ? undefined : json['contains_valid'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'is_uploaded': json['is_uploaded'] == null ? undefined : json['is_uploaded'], + }; +} +function SupplyETTNToJSON(value) { + if (value == null) { + return value; + } + return { + 'contains_valid': value['contains_valid'], + 'is_required': value['is_required'], + 'is_uploaded': value['is_uploaded'], + }; +} diff --git a/dist/models/SupplyOrderCancelStatusResponseCancelOrderError.d.ts b/dist/models/SupplyOrderCancelStatusResponseCancelOrderError.d.ts new file mode 100644 index 0000000..7feca30 --- /dev/null +++ b/dist/models/SupplyOrderCancelStatusResponseCancelOrderError.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderCancelStatusResponseCancelOrderError: { + readonly INVALID_ORDER_STATE: "INVALID_ORDER_STATE"; + readonly ORDER_IS_VIRTUAL: "ORDER_IS_VIRTUAL"; + readonly ORDER_DOES_NOT_BELONG_TO_CONTRACTOR: "ORDER_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly ORDER_DOES_NOT_BELONG_TO_COMPANY: "ORDER_DOES_NOT_BELONG_TO_COMPANY"; + readonly OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS: "OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS"; +}; +export type SupplyOrderCancelStatusResponseCancelOrderError = typeof SupplyOrderCancelStatusResponseCancelOrderError[keyof typeof SupplyOrderCancelStatusResponseCancelOrderError]; +export declare function instanceOfSupplyOrderCancelStatusResponseCancelOrderError(value: any): boolean; +export declare function SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON(json: any): SupplyOrderCancelStatusResponseCancelOrderError; +export declare function SupplyOrderCancelStatusResponseCancelOrderErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderCancelStatusResponseCancelOrderError; +export declare function SupplyOrderCancelStatusResponseCancelOrderErrorToJSON(value?: SupplyOrderCancelStatusResponseCancelOrderError | null): any; diff --git a/dist/models/SupplyOrderCancelStatusResponseCancelOrderError.js b/dist/models/SupplyOrderCancelStatusResponseCancelOrderError.js new file mode 100644 index 0000000..5d4d00c --- /dev/null +++ b/dist/models/SupplyOrderCancelStatusResponseCancelOrderError.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderCancelStatusResponseCancelOrderError = void 0; +exports.instanceOfSupplyOrderCancelStatusResponseCancelOrderError = instanceOfSupplyOrderCancelStatusResponseCancelOrderError; +exports.SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON = SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON; +exports.SupplyOrderCancelStatusResponseCancelOrderErrorFromJSONTyped = SupplyOrderCancelStatusResponseCancelOrderErrorFromJSONTyped; +exports.SupplyOrderCancelStatusResponseCancelOrderErrorToJSON = SupplyOrderCancelStatusResponseCancelOrderErrorToJSON; +/** + * + * @export + */ +exports.SupplyOrderCancelStatusResponseCancelOrderError = { + INVALID_ORDER_STATE: 'INVALID_ORDER_STATE', + ORDER_IS_VIRTUAL: 'ORDER_IS_VIRTUAL', + ORDER_DOES_NOT_BELONG_TO_CONTRACTOR: 'ORDER_DOES_NOT_BELONG_TO_CONTRACTOR', + ORDER_DOES_NOT_BELONG_TO_COMPANY: 'ORDER_DOES_NOT_BELONG_TO_COMPANY', + OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS: 'OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS' +}; +function instanceOfSupplyOrderCancelStatusResponseCancelOrderError(value) { + for (const key in exports.SupplyOrderCancelStatusResponseCancelOrderError) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderCancelStatusResponseCancelOrderError, key)) { + if (exports.SupplyOrderCancelStatusResponseCancelOrderError[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON(json) { + return SupplyOrderCancelStatusResponseCancelOrderErrorFromJSONTyped(json, false); +} +function SupplyOrderCancelStatusResponseCancelOrderErrorFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderCancelStatusResponseCancelOrderErrorToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderCancelStatusResponseCancelSupplyResults.d.ts b/dist/models/SupplyOrderCancelStatusResponseCancelSupplyResults.d.ts new file mode 100644 index 0000000..57ba503 --- /dev/null +++ b/dist/models/SupplyOrderCancelStatusResponseCancelSupplyResults.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CancelSupplyResultsCancelSupplyError } from './CancelSupplyResultsCancelSupplyError'; +/** + * + * @export + * @interface SupplyOrderCancelStatusResponseCancelSupplyResults + */ +export interface SupplyOrderCancelStatusResponseCancelSupplyResults { + /** + * Причина, по которой не удалось отменить поставки: + * - `INVALID_SUPPLY_STATE` — неверный статус поставки. + * - `SUPPLY_DOES_NOT_BELONG_TO_CONTRACTOR` — поставка не принадлежит юридическому лицу. + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — поставка не принадлежит продавцу. + * - `SUPPLY_DOES_NOT_BELONG_TO_ORDER` — поставка не принадлежит заявке на поставку. + * - `SUPPLY_BELONGS_TO_VIRTUAL_ORDER` — поставка принадлежит виртуальной заявке на поставку. + * - `OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS` — поставка в процессе отмены. + * + * @type {Array} + * @memberof SupplyOrderCancelStatusResponseCancelSupplyResults + */ + error_reasons?: Array; + /** + * `true`, если поставка отменена. + * + * @type {boolean} + * @memberof SupplyOrderCancelStatusResponseCancelSupplyResults + */ + is_supply_cancelled?: boolean; + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderCancelStatusResponseCancelSupplyResults + */ + supply_id?: number; +} +/** + * Check if a given object implements the SupplyOrderCancelStatusResponseCancelSupplyResults interface. + */ +export declare function instanceOfSupplyOrderCancelStatusResponseCancelSupplyResults(value: object): value is SupplyOrderCancelStatusResponseCancelSupplyResults; +export declare function SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON(json: any): SupplyOrderCancelStatusResponseCancelSupplyResults; +export declare function SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderCancelStatusResponseCancelSupplyResults; +export declare function SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON(value?: SupplyOrderCancelStatusResponseCancelSupplyResults | null): any; diff --git a/dist/models/SupplyOrderCancelStatusResponseCancelSupplyResults.js b/dist/models/SupplyOrderCancelStatusResponseCancelSupplyResults.js new file mode 100644 index 0000000..991d5a3 --- /dev/null +++ b/dist/models/SupplyOrderCancelStatusResponseCancelSupplyResults.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderCancelStatusResponseCancelSupplyResults = instanceOfSupplyOrderCancelStatusResponseCancelSupplyResults; +exports.SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON = SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON; +exports.SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSONTyped = SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSONTyped; +exports.SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON = SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON; +const CancelSupplyResultsCancelSupplyError_1 = require("./CancelSupplyResultsCancelSupplyError"); +/** + * Check if a given object implements the SupplyOrderCancelStatusResponseCancelSupplyResults interface. + */ +function instanceOfSupplyOrderCancelStatusResponseCancelSupplyResults(value) { + return true; +} +function SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON(json) { + return SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSONTyped(json, false); +} +function SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CancelSupplyResultsCancelSupplyError_1.CancelSupplyResultsCancelSupplyErrorFromJSON)), + 'is_supply_cancelled': json['is_supply_cancelled'] == null ? undefined : json['is_supply_cancelled'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CancelSupplyResultsCancelSupplyError_1.CancelSupplyResultsCancelSupplyErrorToJSON)), + 'is_supply_cancelled': value['is_supply_cancelled'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/SupplyOrderCancelStatusResponseResult.d.ts b/dist/models/SupplyOrderCancelStatusResponseResult.d.ts new file mode 100644 index 0000000..89d7467 --- /dev/null +++ b/dist/models/SupplyOrderCancelStatusResponseResult.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderCancelStatusResponseCancelSupplyResults } from './SupplyOrderCancelStatusResponseCancelSupplyResults'; +/** + * Информация об отмене заявки на поставку. + * @export + * @interface SupplyOrderCancelStatusResponseResult + */ +export interface SupplyOrderCancelStatusResponseResult { + /** + * `true`, если заявка на поставку отменена. + * + * @type {boolean} + * @memberof SupplyOrderCancelStatusResponseResult + */ + is_order_cancelled?: boolean; + /** + * Список отменённых поставок. + * @type {Array} + * @memberof SupplyOrderCancelStatusResponseResult + */ + supplies?: Array; +} +/** + * Check if a given object implements the SupplyOrderCancelStatusResponseResult interface. + */ +export declare function instanceOfSupplyOrderCancelStatusResponseResult(value: object): value is SupplyOrderCancelStatusResponseResult; +export declare function SupplyOrderCancelStatusResponseResultFromJSON(json: any): SupplyOrderCancelStatusResponseResult; +export declare function SupplyOrderCancelStatusResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderCancelStatusResponseResult; +export declare function SupplyOrderCancelStatusResponseResultToJSON(value?: SupplyOrderCancelStatusResponseResult | null): any; diff --git a/dist/models/SupplyOrderCancelStatusResponseResult.js b/dist/models/SupplyOrderCancelStatusResponseResult.js new file mode 100644 index 0000000..d5d8bc9 --- /dev/null +++ b/dist/models/SupplyOrderCancelStatusResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderCancelStatusResponseResult = instanceOfSupplyOrderCancelStatusResponseResult; +exports.SupplyOrderCancelStatusResponseResultFromJSON = SupplyOrderCancelStatusResponseResultFromJSON; +exports.SupplyOrderCancelStatusResponseResultFromJSONTyped = SupplyOrderCancelStatusResponseResultFromJSONTyped; +exports.SupplyOrderCancelStatusResponseResultToJSON = SupplyOrderCancelStatusResponseResultToJSON; +const SupplyOrderCancelStatusResponseCancelSupplyResults_1 = require("./SupplyOrderCancelStatusResponseCancelSupplyResults"); +/** + * Check if a given object implements the SupplyOrderCancelStatusResponseResult interface. + */ +function instanceOfSupplyOrderCancelStatusResponseResult(value) { + return true; +} +function SupplyOrderCancelStatusResponseResultFromJSON(json) { + return SupplyOrderCancelStatusResponseResultFromJSONTyped(json, false); +} +function SupplyOrderCancelStatusResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_order_cancelled': json['is_order_cancelled'] == null ? undefined : json['is_order_cancelled'], + 'supplies': json['supplies'] == null ? undefined : (json['supplies'].map(SupplyOrderCancelStatusResponseCancelSupplyResults_1.SupplyOrderCancelStatusResponseCancelSupplyResultsFromJSON)), + }; +} +function SupplyOrderCancelStatusResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_order_cancelled': value['is_order_cancelled'], + 'supplies': value['supplies'] == null ? undefined : (value['supplies'].map(SupplyOrderCancelStatusResponseCancelSupplyResults_1.SupplyOrderCancelStatusResponseCancelSupplyResultsToJSON)), + }; +} diff --git a/dist/models/SupplyOrderContentUpdateStatusResponseStatusEnum.d.ts b/dist/models/SupplyOrderContentUpdateStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..c9aa4f3 --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус редактирования товарного состава поставки. + * + * Возможные статусы: + * - `SUCCESS` — товарный состав изменён, + * - `IN_PROGRESS` — товарный состав в процессе изменения, + * - `ERROR` — возникла ошибка при изменении товарного состава. + * + * @export + */ +export declare const SupplyOrderContentUpdateStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly ERROR: "ERROR"; +}; +export type SupplyOrderContentUpdateStatusResponseStatusEnum = typeof SupplyOrderContentUpdateStatusResponseStatusEnum[keyof typeof SupplyOrderContentUpdateStatusResponseStatusEnum]; +export declare function instanceOfSupplyOrderContentUpdateStatusResponseStatusEnum(value: any): boolean; +export declare function SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON(json: any): SupplyOrderContentUpdateStatusResponseStatusEnum; +export declare function SupplyOrderContentUpdateStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateStatusResponseStatusEnum; +export declare function SupplyOrderContentUpdateStatusResponseStatusEnumToJSON(value?: SupplyOrderContentUpdateStatusResponseStatusEnum | null): any; diff --git a/dist/models/SupplyOrderContentUpdateStatusResponseStatusEnum.js b/dist/models/SupplyOrderContentUpdateStatusResponseStatusEnum.js new file mode 100644 index 0000000..72ebdf8 --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateStatusResponseStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderContentUpdateStatusResponseStatusEnum = void 0; +exports.instanceOfSupplyOrderContentUpdateStatusResponseStatusEnum = instanceOfSupplyOrderContentUpdateStatusResponseStatusEnum; +exports.SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON = SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON; +exports.SupplyOrderContentUpdateStatusResponseStatusEnumFromJSONTyped = SupplyOrderContentUpdateStatusResponseStatusEnumFromJSONTyped; +exports.SupplyOrderContentUpdateStatusResponseStatusEnumToJSON = SupplyOrderContentUpdateStatusResponseStatusEnumToJSON; +/** + * Статус редактирования товарного состава поставки. + * + * Возможные статусы: + * - `SUCCESS` — товарный состав изменён, + * - `IN_PROGRESS` — товарный состав в процессе изменения, + * - `ERROR` — возникла ошибка при изменении товарного состава. + * + * @export + */ +exports.SupplyOrderContentUpdateStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + ERROR: 'ERROR' +}; +function instanceOfSupplyOrderContentUpdateStatusResponseStatusEnum(value) { + for (const key in exports.SupplyOrderContentUpdateStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderContentUpdateStatusResponseStatusEnum, key)) { + if (exports.SupplyOrderContentUpdateStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON(json) { + return SupplyOrderContentUpdateStatusResponseStatusEnumFromJSONTyped(json, false); +} +function SupplyOrderContentUpdateStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderContentUpdateStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderContentUpdateValidationResponseApprovedItems.d.ts b/dist/models/SupplyOrderContentUpdateValidationResponseApprovedItems.d.ts new file mode 100644 index 0000000..37550d0 --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateValidationResponseApprovedItems.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderContentUpdateValidationResponseApprovedItems + */ +export interface SupplyOrderContentUpdateValidationResponseApprovedItems { + /** + * Штрихкод товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + barcode?: string; + /** + * Ссылка на товар. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + item_link?: string; + /** + * Название товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + offer_id?: string; + /** + * Исходное количество товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + origin_quantity?: number; + /** + * Исходное количество товара в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + origin_total_volume_in_litres?: number; + /** + * Количество товаров в одной упаковке. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + quant?: number; + /** + * Количество товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + sku?: number; + /** + * Ограничение на количество товаров в одной упаковке. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + sku_quantity_limit?: number; + /** + * Объём всех товаров в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseApprovedItems + */ + total_volume_in_litres?: number; +} +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseApprovedItems interface. + */ +export declare function instanceOfSupplyOrderContentUpdateValidationResponseApprovedItems(value: object): value is SupplyOrderContentUpdateValidationResponseApprovedItems; +export declare function SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON(json: any): SupplyOrderContentUpdateValidationResponseApprovedItems; +export declare function SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateValidationResponseApprovedItems; +export declare function SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON(value?: SupplyOrderContentUpdateValidationResponseApprovedItems | null): any; diff --git a/dist/models/SupplyOrderContentUpdateValidationResponseApprovedItems.js b/dist/models/SupplyOrderContentUpdateValidationResponseApprovedItems.js new file mode 100644 index 0000000..24f4cf6 --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateValidationResponseApprovedItems.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderContentUpdateValidationResponseApprovedItems = instanceOfSupplyOrderContentUpdateValidationResponseApprovedItems; +exports.SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON = SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON; +exports.SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSONTyped = SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSONTyped; +exports.SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON = SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON; +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseApprovedItems interface. + */ +function instanceOfSupplyOrderContentUpdateValidationResponseApprovedItems(value) { + return true; +} +function SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON(json) { + return SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSONTyped(json, false); +} +function SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'item_link': json['item_link'] == null ? undefined : json['item_link'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'origin_quantity': json['origin_quantity'] == null ? undefined : json['origin_quantity'], + 'origin_total_volume_in_litres': json['origin_total_volume_in_litres'] == null ? undefined : json['origin_total_volume_in_litres'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'sku_quantity_limit': json['sku_quantity_limit'] == null ? undefined : json['sku_quantity_limit'], + 'total_volume_in_litres': json['total_volume_in_litres'] == null ? undefined : json['total_volume_in_litres'], + }; +} +function SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'item_link': value['item_link'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'origin_quantity': value['origin_quantity'], + 'origin_total_volume_in_litres': value['origin_total_volume_in_litres'], + 'quant': value['quant'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'sku_quantity_limit': value['sku_quantity_limit'], + 'total_volume_in_litres': value['total_volume_in_litres'], + }; +} diff --git a/dist/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.d.ts b/dist/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.d.ts new file mode 100644 index 0000000..63555af --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.d.ts @@ -0,0 +1,36 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderContentUpdateValidationResponseEditingErrorEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly UNKNOWN: "UNKNOWN"; + readonly INCORRECT_SUPPLY_STATE: "INCORRECT_SUPPLY_STATE"; + readonly DEADLINE: "DEADLINE"; + readonly UTD_IS_UPLOADED: "UTD_IS_UPLOADED"; + readonly STORAGE_WAREHOUSE_IS_NOT_WMS: "STORAGE_WAREHOUSE_IS_NOT_WMS"; + readonly CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: "CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly SUPPLY_DOES_NOT_BELONG_TO_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_COMPANY"; + readonly ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT: "ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT"; + readonly ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN: "ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN"; + readonly ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN: "ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN"; + readonly ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE: "ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE"; + readonly ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY: "ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY"; +}; +export type SupplyOrderContentUpdateValidationResponseEditingErrorEnum = typeof SupplyOrderContentUpdateValidationResponseEditingErrorEnum[keyof typeof SupplyOrderContentUpdateValidationResponseEditingErrorEnum]; +export declare function instanceOfSupplyOrderContentUpdateValidationResponseEditingErrorEnum(value: any): boolean; +export declare function SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON(json: any): SupplyOrderContentUpdateValidationResponseEditingErrorEnum; +export declare function SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateValidationResponseEditingErrorEnum; +export declare function SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON(value?: SupplyOrderContentUpdateValidationResponseEditingErrorEnum | null): any; diff --git a/dist/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.js b/dist/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.js new file mode 100644 index 0000000..e23366c --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateValidationResponseEditingErrorEnum.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderContentUpdateValidationResponseEditingErrorEnum = void 0; +exports.instanceOfSupplyOrderContentUpdateValidationResponseEditingErrorEnum = instanceOfSupplyOrderContentUpdateValidationResponseEditingErrorEnum; +exports.SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON = SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON; +exports.SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSONTyped = SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSONTyped; +exports.SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON = SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON; +/** + * + * @export + */ +exports.SupplyOrderContentUpdateValidationResponseEditingErrorEnum = { + UNSPECIFIED: 'UNSPECIFIED', + UNKNOWN: 'UNKNOWN', + INCORRECT_SUPPLY_STATE: 'INCORRECT_SUPPLY_STATE', + DEADLINE: 'DEADLINE', + UTD_IS_UPLOADED: 'UTD_IS_UPLOADED', + STORAGE_WAREHOUSE_IS_NOT_WMS: 'STORAGE_WAREHOUSE_IS_NOT_WMS', + CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: 'CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + SUPPLY_DOES_NOT_BELONG_TO_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_COMPANY', + ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT: 'ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT', + ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN: 'ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN', + ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN: 'ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN', + ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE: 'ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE', + ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY: 'ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY' +}; +function instanceOfSupplyOrderContentUpdateValidationResponseEditingErrorEnum(value) { + for (const key in exports.SupplyOrderContentUpdateValidationResponseEditingErrorEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderContentUpdateValidationResponseEditingErrorEnum, key)) { + if (exports.SupplyOrderContentUpdateValidationResponseEditingErrorEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON(json) { + return SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSONTyped(json, false); +} +function SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderContentUpdateValidationResponseRejectedItems.d.ts b/dist/models/SupplyOrderContentUpdateValidationResponseRejectedItems.d.ts new file mode 100644 index 0000000..d81318c --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateValidationResponseRejectedItems.d.ts @@ -0,0 +1,113 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RejectedItemsRestrictions } from './RejectedItemsRestrictions'; +import type { RejectedItemsRejectionReasonEnum } from './RejectedItemsRejectionReasonEnum'; +/** + * + * @export + * @interface SupplyOrderContentUpdateValidationResponseRejectedItems + */ +export interface SupplyOrderContentUpdateValidationResponseRejectedItems { + /** + * Штрихкод товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + barcode?: string; + /** + * Название товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + offer_id?: string; + /** + * Исходное количество товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + origin_quantity?: number; + /** + * Исходное количество товара в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + origin_total_volume_in_litres?: number; + /** + * Количество товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + quantity?: number; + /** + * Причина отклонения товара: + * - `UNSPECIFIED` — не определена; + * - `UNKNOWN` — неизвестный тип; + * - `OUT_OF_ASSORTMENT` — товара нет в ассортименте поставки; + * - `INVALID` — некорректные данные по товару; + * - `INCOMPATIBLE_WAREHOUSE` — товар нельзя поставить на выбранный склад; + * - `EMPTY_BARCODE` — штрихкод не указан; + * - `EMPTY_PS_ATTRIBUTE` — не заполнен обязательный атрибут; + * - `MULTIPLICITY` — количество товара не кратно упаковке; + * - `NO_PRICE` — цена не указана; + * - `INVALID_ITEM_COUNT_MAX` — превышено максимальное количество; + * - `INVALID_ITEM_COUNT_ZERO` — количество должно быть больше 0; + * - `INCOMPATIBLE_SHIPMENT_TYPE` — товар недоступен для выбранного типа отгрузки; + * - `ECONOM_QUANT_IS_NOT_FROZEN` — квант для тарифа «Эконом» не заморожен; + * - `QUANTITY_NOT_MULTIPLE_BY_QUANT` — количество товара не кратно кванту; + * - `INVALID_QUANT_VALUE` — некорректное значение кванта; + * - `JEWELRY_FORBIDDEN_FOR_ECONOM` — ювелирные изделия недоступны для тарифа «Эконом»; + * - `NON_UNIQUE_ECONOM_ITEM_IN_REQUEST` — в запросе есть дубликаты SKU для тарифа «Эконом»; + * - `NON_UNIQUE_ECONOM_ITEM_IN_DESTINATION_BUNDLE` — в грузоместе есть дубликаты SKU для тарифа «Эконом»; + * - `SKU_REJECTED_BY_ACCEPTANCE_RESTRICTIONS` — товар не принимается по ограничениям приёмки; + * - `SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED` — товар с тегом электронной ТТН недоступен; + * - `SKU_WITHOUT_ETTN_REQUIRED_TAG_NOT_ALLOWED` — товар без тега электронной ТТН; + * - `SKU_WITH_TRACEABLE_TAG_NOT_ALLOWED` — товары с тегом прослеживаемости недоступны; + * - `EMPTY_CLUSTER` — не указан кластер; + * - `SKU_IS_RESTRICTED` — товар запрещён к поставке; + * - `SKU_WITH_UTD_REQUIRED_TAG_NOT_ALLOWED` — товары с тегом УПД недоступны. + * + * @type {Array} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + rejection_reason?: Array; + /** + * + * @type {RejectedItemsRestrictions} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + restrictions?: RejectedItemsRestrictions; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + sku?: number; + /** + * Объём всех товаров в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseRejectedItems + */ + total_volume_in_litres?: number; +} +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseRejectedItems interface. + */ +export declare function instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems(value: object): value is SupplyOrderContentUpdateValidationResponseRejectedItems; +export declare function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON(json: any): SupplyOrderContentUpdateValidationResponseRejectedItems; +export declare function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateValidationResponseRejectedItems; +export declare function SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON(value?: SupplyOrderContentUpdateValidationResponseRejectedItems | null): any; diff --git a/dist/models/SupplyOrderContentUpdateValidationResponseRejectedItems.js b/dist/models/SupplyOrderContentUpdateValidationResponseRejectedItems.js new file mode 100644 index 0000000..6d8742f --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateValidationResponseRejectedItems.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems = instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems; +exports.SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON = SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON; +exports.SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped = SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped; +exports.SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON = SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON; +const RejectedItemsRestrictions_1 = require("./RejectedItemsRestrictions"); +const RejectedItemsRejectionReasonEnum_1 = require("./RejectedItemsRejectionReasonEnum"); +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseRejectedItems interface. + */ +function instanceOfSupplyOrderContentUpdateValidationResponseRejectedItems(value) { + return true; +} +function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON(json) { + return SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped(json, false); +} +function SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'origin_quantity': json['origin_quantity'] == null ? undefined : json['origin_quantity'], + 'origin_total_volume_in_litres': json['origin_total_volume_in_litres'] == null ? undefined : json['origin_total_volume_in_litres'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rejection_reason': json['rejection_reason'] == null ? undefined : (json['rejection_reason'].map(RejectedItemsRejectionReasonEnum_1.RejectedItemsRejectionReasonEnumFromJSON)), + 'restrictions': json['restrictions'] == null ? undefined : (0, RejectedItemsRestrictions_1.RejectedItemsRestrictionsFromJSON)(json['restrictions']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'total_volume_in_litres': json['total_volume_in_litres'] == null ? undefined : json['total_volume_in_litres'], + }; +} +function SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'origin_quantity': value['origin_quantity'], + 'origin_total_volume_in_litres': value['origin_total_volume_in_litres'], + 'quantity': value['quantity'], + 'rejection_reason': value['rejection_reason'] == null ? undefined : (value['rejection_reason'].map(RejectedItemsRejectionReasonEnum_1.RejectedItemsRejectionReasonEnumToJSON)), + 'restrictions': (0, RejectedItemsRestrictions_1.RejectedItemsRestrictionsToJSON)(value['restrictions']), + 'sku': value['sku'], + 'total_volume_in_litres': value['total_volume_in_litres'], + }; +} diff --git a/dist/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.d.ts b/dist/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.d.ts new file mode 100644 index 0000000..6de25a0 --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderContentUpdateValidationResponseApprovedItems } from './SupplyOrderContentUpdateValidationResponseApprovedItems'; +import type { SupplyOrderContentUpdateValidationResponseRejectedItems } from './SupplyOrderContentUpdateValidationResponseRejectedItems'; +/** + * Информация о товарном составе. + * @export + * @interface SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ +export interface SupplyOrderContentUpdateValidationResponseValidatedAssortment { + /** + * Принятые товары. + * @type {Array} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + approved_items?: Array; + /** + * Не принятые товары. + * @type {Array} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + rejected_items?: Array; + /** + * Количество принятого товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_approved_item_count?: number; + /** + * Количество единиц принятого товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_approved_quantity?: number; + /** + * Количество принятого товара в литрах. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_approved_volume_in_litres?: number; + /** + * Количество не принятого товара. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_rejected_item_count?: number; + /** + * Количество товара с ограничениями. + * @type {number} + * @memberof SupplyOrderContentUpdateValidationResponseValidatedAssortment + */ + total_restricted_item_count?: number; +} +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseValidatedAssortment interface. + */ +export declare function instanceOfSupplyOrderContentUpdateValidationResponseValidatedAssortment(value: object): value is SupplyOrderContentUpdateValidationResponseValidatedAssortment; +export declare function SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON(json: any): SupplyOrderContentUpdateValidationResponseValidatedAssortment; +export declare function SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderContentUpdateValidationResponseValidatedAssortment; +export declare function SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON(value?: SupplyOrderContentUpdateValidationResponseValidatedAssortment | null): any; diff --git a/dist/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.js b/dist/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.js new file mode 100644 index 0000000..57467e1 --- /dev/null +++ b/dist/models/SupplyOrderContentUpdateValidationResponseValidatedAssortment.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderContentUpdateValidationResponseValidatedAssortment = instanceOfSupplyOrderContentUpdateValidationResponseValidatedAssortment; +exports.SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON = SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON; +exports.SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSONTyped = SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSONTyped; +exports.SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON = SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON; +const SupplyOrderContentUpdateValidationResponseApprovedItems_1 = require("./SupplyOrderContentUpdateValidationResponseApprovedItems"); +const SupplyOrderContentUpdateValidationResponseRejectedItems_1 = require("./SupplyOrderContentUpdateValidationResponseRejectedItems"); +/** + * Check if a given object implements the SupplyOrderContentUpdateValidationResponseValidatedAssortment interface. + */ +function instanceOfSupplyOrderContentUpdateValidationResponseValidatedAssortment(value) { + return true; +} +function SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON(json) { + return SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSONTyped(json, false); +} +function SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_items': json['approved_items'] == null ? undefined : (json['approved_items'].map(SupplyOrderContentUpdateValidationResponseApprovedItems_1.SupplyOrderContentUpdateValidationResponseApprovedItemsFromJSON)), + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(SupplyOrderContentUpdateValidationResponseRejectedItems_1.SupplyOrderContentUpdateValidationResponseRejectedItemsFromJSON)), + 'total_approved_item_count': json['total_approved_item_count'] == null ? undefined : json['total_approved_item_count'], + 'total_approved_quantity': json['total_approved_quantity'] == null ? undefined : json['total_approved_quantity'], + 'total_approved_volume_in_litres': json['total_approved_volume_in_litres'] == null ? undefined : json['total_approved_volume_in_litres'], + 'total_rejected_item_count': json['total_rejected_item_count'] == null ? undefined : json['total_rejected_item_count'], + 'total_restricted_item_count': json['total_restricted_item_count'] == null ? undefined : json['total_restricted_item_count'], + }; +} +function SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_items': value['approved_items'] == null ? undefined : (value['approved_items'].map(SupplyOrderContentUpdateValidationResponseApprovedItems_1.SupplyOrderContentUpdateValidationResponseApprovedItemsToJSON)), + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(SupplyOrderContentUpdateValidationResponseRejectedItems_1.SupplyOrderContentUpdateValidationResponseRejectedItemsToJSON)), + 'total_approved_item_count': value['total_approved_item_count'], + 'total_approved_quantity': value['total_approved_quantity'], + 'total_approved_volume_in_litres': value['total_approved_volume_in_litres'], + 'total_rejected_item_count': value['total_rejected_item_count'], + 'total_restricted_item_count': value['total_restricted_item_count'], + }; +} diff --git a/dist/models/SupplyOrderDetailsResponseOrderStateEnum.d.ts b/dist/models/SupplyOrderDetailsResponseOrderStateEnum.d.ts new file mode 100644 index 0000000..bb56e7f --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseOrderStateEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на поставку: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приемке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export declare const SupplyOrderDetailsResponseOrderStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type SupplyOrderDetailsResponseOrderStateEnum = typeof SupplyOrderDetailsResponseOrderStateEnum[keyof typeof SupplyOrderDetailsResponseOrderStateEnum]; +export declare function instanceOfSupplyOrderDetailsResponseOrderStateEnum(value: any): boolean; +export declare function SupplyOrderDetailsResponseOrderStateEnumFromJSON(json: any): SupplyOrderDetailsResponseOrderStateEnum; +export declare function SupplyOrderDetailsResponseOrderStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseOrderStateEnum; +export declare function SupplyOrderDetailsResponseOrderStateEnumToJSON(value?: SupplyOrderDetailsResponseOrderStateEnum | null): any; diff --git a/dist/models/SupplyOrderDetailsResponseOrderStateEnum.js b/dist/models/SupplyOrderDetailsResponseOrderStateEnum.js new file mode 100644 index 0000000..f844933 --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseOrderStateEnum.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderDetailsResponseOrderStateEnum = void 0; +exports.instanceOfSupplyOrderDetailsResponseOrderStateEnum = instanceOfSupplyOrderDetailsResponseOrderStateEnum; +exports.SupplyOrderDetailsResponseOrderStateEnumFromJSON = SupplyOrderDetailsResponseOrderStateEnumFromJSON; +exports.SupplyOrderDetailsResponseOrderStateEnumFromJSONTyped = SupplyOrderDetailsResponseOrderStateEnumFromJSONTyped; +exports.SupplyOrderDetailsResponseOrderStateEnumToJSON = SupplyOrderDetailsResponseOrderStateEnumToJSON; +/** + * Статус заявки на поставку: + * - `UNSPECIFIED` — не определён; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приемке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +exports.SupplyOrderDetailsResponseOrderStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +function instanceOfSupplyOrderDetailsResponseOrderStateEnum(value) { + for (const key in exports.SupplyOrderDetailsResponseOrderStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderDetailsResponseOrderStateEnum, key)) { + if (exports.SupplyOrderDetailsResponseOrderStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderDetailsResponseOrderStateEnumFromJSON(json) { + return SupplyOrderDetailsResponseOrderStateEnumFromJSONTyped(json, false); +} +function SupplyOrderDetailsResponseOrderStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderDetailsResponseOrderStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderDetailsResponseOrderTags.d.ts b/dist/models/SupplyOrderDetailsResponseOrderTags.d.ts new file mode 100644 index 0000000..c5f58bb --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseOrderTags.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метки заявки на поставку. + * @export + * @interface SupplyOrderDetailsResponseOrderTags + */ +export interface SupplyOrderDetailsResponseOrderTags { + /** + * `true`, если в заявке на поставку есть товары «Суперэконом». + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + is_econom?: boolean; + /** + * `true`, если продавец подключён к Super-поставкам. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + is_super_fbo?: boolean; + /** + * `true`, если заявка на поставку виртуальная. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + is_virtual?: boolean; + /** + * Идентификатор исходной поставки. + * @type {number} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + original_supply_id?: number; + /** + * `true`, если в заявке на поставку есть Super-товары. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseOrderTags + */ + product_super_fbo?: boolean; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseOrderTags interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseOrderTags(value: object): value is SupplyOrderDetailsResponseOrderTags; +export declare function SupplyOrderDetailsResponseOrderTagsFromJSON(json: any): SupplyOrderDetailsResponseOrderTags; +export declare function SupplyOrderDetailsResponseOrderTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseOrderTags; +export declare function SupplyOrderDetailsResponseOrderTagsToJSON(value?: SupplyOrderDetailsResponseOrderTags | null): any; diff --git a/dist/models/SupplyOrderDetailsResponseOrderTags.js b/dist/models/SupplyOrderDetailsResponseOrderTags.js new file mode 100644 index 0000000..7d5710a --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseOrderTags.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderDetailsResponseOrderTags = instanceOfSupplyOrderDetailsResponseOrderTags; +exports.SupplyOrderDetailsResponseOrderTagsFromJSON = SupplyOrderDetailsResponseOrderTagsFromJSON; +exports.SupplyOrderDetailsResponseOrderTagsFromJSONTyped = SupplyOrderDetailsResponseOrderTagsFromJSONTyped; +exports.SupplyOrderDetailsResponseOrderTagsToJSON = SupplyOrderDetailsResponseOrderTagsToJSON; +/** + * Check if a given object implements the SupplyOrderDetailsResponseOrderTags interface. + */ +function instanceOfSupplyOrderDetailsResponseOrderTags(value) { + return true; +} +function SupplyOrderDetailsResponseOrderTagsFromJSON(json) { + return SupplyOrderDetailsResponseOrderTagsFromJSONTyped(json, false); +} +function SupplyOrderDetailsResponseOrderTagsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_econom': json['is_econom'] == null ? undefined : json['is_econom'], + 'is_super_fbo': json['is_super_fbo'] == null ? undefined : json['is_super_fbo'], + 'is_virtual': json['is_virtual'] == null ? undefined : json['is_virtual'], + 'original_supply_id': json['original_supply_id'] == null ? undefined : json['original_supply_id'], + 'product_super_fbo': json['product_super_fbo'] == null ? undefined : json['product_super_fbo'], + }; +} +function SupplyOrderDetailsResponseOrderTagsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_econom': value['is_econom'], + 'is_super_fbo': value['is_super_fbo'], + 'is_virtual': value['is_virtual'], + 'original_supply_id': value['original_supply_id'], + 'product_super_fbo': value['product_super_fbo'], + }; +} diff --git a/dist/models/SupplyOrderDetailsResponseSupply.d.ts b/dist/models/SupplyOrderDetailsResponseSupply.d.ts new file mode 100644 index 0000000..b97f3b5 --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseSupply.d.ts @@ -0,0 +1,93 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyETTN } from './SupplyETTN'; +import type { SupplyContent } from './SupplyContent'; +import type { SupplyOverdueReasonEnum } from './SupplyOverdueReasonEnum'; +import type { SupplyStateEnum } from './SupplyStateEnum'; +import type { SupplyCancellationAllowability } from './SupplyCancellationAllowability'; +import type { SupplyTags } from './SupplyTags'; +import type { SupplyStorageWarehouse } from './SupplyStorageWarehouse'; +/** + * + * @export + * @interface SupplyOrderDetailsResponseSupply + */ +export interface SupplyOrderDetailsResponseSupply { + /** + * + * @type {SupplyCancellationAllowability} + * @memberof SupplyOrderDetailsResponseSupply + */ + cancellation_allowability?: SupplyCancellationAllowability; + /** + * + * @type {SupplyContent} + * @memberof SupplyOrderDetailsResponseSupply + */ + content?: SupplyContent; + /** + * + * @type {SupplyETTN} + * @memberof SupplyOrderDetailsResponseSupply + */ + ettn_info?: SupplyETTN; + /** + * `true`, если поставка кросс-докинг. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseSupply + */ + is_crossdock?: boolean; + /** + * + * @type {SupplyOverdueReasonEnum} + * @memberof SupplyOrderDetailsResponseSupply + */ + overdue_reason?: SupplyOverdueReasonEnum; + /** + * + * @type {SupplyStorageWarehouse} + * @memberof SupplyOrderDetailsResponseSupply + */ + storage_warehouse?: SupplyStorageWarehouse; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof SupplyOrderDetailsResponseSupply + */ + macrolocal_cluster_id?: number; + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderDetailsResponseSupply + */ + supply_id?: number; + /** + * + * @type {SupplyStateEnum} + * @memberof SupplyOrderDetailsResponseSupply + */ + supply_state?: SupplyStateEnum; + /** + * + * @type {SupplyTags} + * @memberof SupplyOrderDetailsResponseSupply + */ + supply_tags?: SupplyTags; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseSupply interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseSupply(value: object): value is SupplyOrderDetailsResponseSupply; +export declare function SupplyOrderDetailsResponseSupplyFromJSON(json: any): SupplyOrderDetailsResponseSupply; +export declare function SupplyOrderDetailsResponseSupplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseSupply; +export declare function SupplyOrderDetailsResponseSupplyToJSON(value?: SupplyOrderDetailsResponseSupply | null): any; diff --git a/dist/models/SupplyOrderDetailsResponseSupply.js b/dist/models/SupplyOrderDetailsResponseSupply.js new file mode 100644 index 0000000..3222063 --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseSupply.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderDetailsResponseSupply = instanceOfSupplyOrderDetailsResponseSupply; +exports.SupplyOrderDetailsResponseSupplyFromJSON = SupplyOrderDetailsResponseSupplyFromJSON; +exports.SupplyOrderDetailsResponseSupplyFromJSONTyped = SupplyOrderDetailsResponseSupplyFromJSONTyped; +exports.SupplyOrderDetailsResponseSupplyToJSON = SupplyOrderDetailsResponseSupplyToJSON; +const SupplyETTN_1 = require("./SupplyETTN"); +const SupplyContent_1 = require("./SupplyContent"); +const SupplyOverdueReasonEnum_1 = require("./SupplyOverdueReasonEnum"); +const SupplyStateEnum_1 = require("./SupplyStateEnum"); +const SupplyCancellationAllowability_1 = require("./SupplyCancellationAllowability"); +const SupplyTags_1 = require("./SupplyTags"); +const SupplyStorageWarehouse_1 = require("./SupplyStorageWarehouse"); +/** + * Check if a given object implements the SupplyOrderDetailsResponseSupply interface. + */ +function instanceOfSupplyOrderDetailsResponseSupply(value) { + return true; +} +function SupplyOrderDetailsResponseSupplyFromJSON(json) { + return SupplyOrderDetailsResponseSupplyFromJSONTyped(json, false); +} +function SupplyOrderDetailsResponseSupplyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_allowability': json['cancellation_allowability'] == null ? undefined : (0, SupplyCancellationAllowability_1.SupplyCancellationAllowabilityFromJSON)(json['cancellation_allowability']), + 'content': json['content'] == null ? undefined : (0, SupplyContent_1.SupplyContentFromJSON)(json['content']), + 'ettn_info': json['ettn_info'] == null ? undefined : (0, SupplyETTN_1.SupplyETTNFromJSON)(json['ettn_info']), + 'is_crossdock': json['is_crossdock'] == null ? undefined : json['is_crossdock'], + 'overdue_reason': json['overdue_reason'] == null ? undefined : (0, SupplyOverdueReasonEnum_1.SupplyOverdueReasonEnumFromJSON)(json['overdue_reason']), + 'storage_warehouse': json['storage_warehouse'] == null ? undefined : (0, SupplyStorageWarehouse_1.SupplyStorageWarehouseFromJSON)(json['storage_warehouse']), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'supply_state': json['supply_state'] == null ? undefined : (0, SupplyStateEnum_1.SupplyStateEnumFromJSON)(json['supply_state']), + 'supply_tags': json['supply_tags'] == null ? undefined : (0, SupplyTags_1.SupplyTagsFromJSON)(json['supply_tags']), + }; +} +function SupplyOrderDetailsResponseSupplyToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_allowability': (0, SupplyCancellationAllowability_1.SupplyCancellationAllowabilityToJSON)(value['cancellation_allowability']), + 'content': (0, SupplyContent_1.SupplyContentToJSON)(value['content']), + 'ettn_info': (0, SupplyETTN_1.SupplyETTNToJSON)(value['ettn_info']), + 'is_crossdock': value['is_crossdock'], + 'overdue_reason': (0, SupplyOverdueReasonEnum_1.SupplyOverdueReasonEnumToJSON)(value['overdue_reason']), + 'storage_warehouse': (0, SupplyStorageWarehouse_1.SupplyStorageWarehouseToJSON)(value['storage_warehouse']), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'supply_id': value['supply_id'], + 'supply_state': (0, SupplyStateEnum_1.SupplyStateEnumToJSON)(value['supply_state']), + 'supply_tags': (0, SupplyTags_1.SupplyTagsToJSON)(value['supply_tags']), + }; +} diff --git a/dist/models/SupplyOrderDetailsResponseTimeslotValue.d.ts b/dist/models/SupplyOrderDetailsResponseTimeslotValue.d.ts new file mode 100644 index 0000000..a87f8ae --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseTimeslotValue.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValueTimezoneInfo } from './ValueTimezoneInfo'; +import type { TimeslotValueTimeslot } from './TimeslotValueTimeslot'; +/** + * Информация об интервале доставки. + * @export + * @interface SupplyOrderDetailsResponseTimeslotValue + */ +export interface SupplyOrderDetailsResponseTimeslotValue { + /** + * + * @type {TimeslotValueTimeslot} + * @memberof SupplyOrderDetailsResponseTimeslotValue + */ + timeslot?: TimeslotValueTimeslot; + /** + * + * @type {ValueTimezoneInfo} + * @memberof SupplyOrderDetailsResponseTimeslotValue + */ + timezone_info?: ValueTimezoneInfo; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseTimeslotValue interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseTimeslotValue(value: object): value is SupplyOrderDetailsResponseTimeslotValue; +export declare function SupplyOrderDetailsResponseTimeslotValueFromJSON(json: any): SupplyOrderDetailsResponseTimeslotValue; +export declare function SupplyOrderDetailsResponseTimeslotValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseTimeslotValue; +export declare function SupplyOrderDetailsResponseTimeslotValueToJSON(value?: SupplyOrderDetailsResponseTimeslotValue | null): any; diff --git a/dist/models/SupplyOrderDetailsResponseTimeslotValue.js b/dist/models/SupplyOrderDetailsResponseTimeslotValue.js new file mode 100644 index 0000000..e62ba1a --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseTimeslotValue.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderDetailsResponseTimeslotValue = instanceOfSupplyOrderDetailsResponseTimeslotValue; +exports.SupplyOrderDetailsResponseTimeslotValueFromJSON = SupplyOrderDetailsResponseTimeslotValueFromJSON; +exports.SupplyOrderDetailsResponseTimeslotValueFromJSONTyped = SupplyOrderDetailsResponseTimeslotValueFromJSONTyped; +exports.SupplyOrderDetailsResponseTimeslotValueToJSON = SupplyOrderDetailsResponseTimeslotValueToJSON; +const ValueTimezoneInfo_1 = require("./ValueTimezoneInfo"); +const TimeslotValueTimeslot_1 = require("./TimeslotValueTimeslot"); +/** + * Check if a given object implements the SupplyOrderDetailsResponseTimeslotValue interface. + */ +function instanceOfSupplyOrderDetailsResponseTimeslotValue(value) { + return true; +} +function SupplyOrderDetailsResponseTimeslotValueFromJSON(json) { + return SupplyOrderDetailsResponseTimeslotValueFromJSONTyped(json, false); +} +function SupplyOrderDetailsResponseTimeslotValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot': json['timeslot'] == null ? undefined : (0, TimeslotValueTimeslot_1.TimeslotValueTimeslotFromJSON)(json['timeslot']), + 'timezone_info': json['timezone_info'] == null ? undefined : (0, ValueTimezoneInfo_1.ValueTimezoneInfoFromJSON)(json['timezone_info']), + }; +} +function SupplyOrderDetailsResponseTimeslotValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot': (0, TimeslotValueTimeslot_1.TimeslotValueTimeslotToJSON)(value['timeslot']), + 'timezone_info': (0, ValueTimezoneInfo_1.ValueTimezoneInfoToJSON)(value['timezone_info']), + }; +} diff --git a/dist/models/SupplyOrderDetailsResponseVehicle.d.ts b/dist/models/SupplyOrderDetailsResponseVehicle.d.ts new file mode 100644 index 0000000..8da2692 --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseVehicle.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { VehicleCanNotSetVehicleReasonEnum } from './VehicleCanNotSetVehicleReasonEnum'; +import type { SupplyOrderDetailsResponseVehicleValue } from './SupplyOrderDetailsResponseVehicleValue'; +/** + * Информация о водителе и машине. + * @export + * @interface SupplyOrderDetailsResponseVehicle + */ +export interface SupplyOrderDetailsResponseVehicle { + /** + * Причина, почему нельзя указать или изменить информацию о водителе или машине: + * - `UNSPECIFIED` — не определена; + * - `INVALID_ORDER_STATE` — нельзя установить информацию о машине в текущем статусе заявки; + * - `VEHICLE_NOT_REQUIRED` — не обязательно указывать машину; + * - `ORDER_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof SupplyOrderDetailsResponseVehicle + */ + can_not_set_reasons?: Array; + /** + * `true`, если можно изменить информацию о водителе или машине. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseVehicle + */ + can_set?: boolean; + /** + * + * @type {SupplyOrderDetailsResponseVehicleValue} + * @memberof SupplyOrderDetailsResponseVehicle + */ + value?: SupplyOrderDetailsResponseVehicleValue; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseVehicle interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseVehicle(value: object): value is SupplyOrderDetailsResponseVehicle; +export declare function SupplyOrderDetailsResponseVehicleFromJSON(json: any): SupplyOrderDetailsResponseVehicle; +export declare function SupplyOrderDetailsResponseVehicleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseVehicle; +export declare function SupplyOrderDetailsResponseVehicleToJSON(value?: SupplyOrderDetailsResponseVehicle | null): any; diff --git a/dist/models/SupplyOrderDetailsResponseVehicle.js b/dist/models/SupplyOrderDetailsResponseVehicle.js new file mode 100644 index 0000000..21101df --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseVehicle.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderDetailsResponseVehicle = instanceOfSupplyOrderDetailsResponseVehicle; +exports.SupplyOrderDetailsResponseVehicleFromJSON = SupplyOrderDetailsResponseVehicleFromJSON; +exports.SupplyOrderDetailsResponseVehicleFromJSONTyped = SupplyOrderDetailsResponseVehicleFromJSONTyped; +exports.SupplyOrderDetailsResponseVehicleToJSON = SupplyOrderDetailsResponseVehicleToJSON; +const VehicleCanNotSetVehicleReasonEnum_1 = require("./VehicleCanNotSetVehicleReasonEnum"); +const SupplyOrderDetailsResponseVehicleValue_1 = require("./SupplyOrderDetailsResponseVehicleValue"); +/** + * Check if a given object implements the SupplyOrderDetailsResponseVehicle interface. + */ +function instanceOfSupplyOrderDetailsResponseVehicle(value) { + return true; +} +function SupplyOrderDetailsResponseVehicleFromJSON(json) { + return SupplyOrderDetailsResponseVehicleFromJSONTyped(json, false); +} +function SupplyOrderDetailsResponseVehicleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_not_set_reasons': json['can_not_set_reasons'] == null ? undefined : (json['can_not_set_reasons'].map(VehicleCanNotSetVehicleReasonEnum_1.VehicleCanNotSetVehicleReasonEnumFromJSON)), + 'can_set': json['can_set'] == null ? undefined : json['can_set'], + 'value': json['value'] == null ? undefined : (0, SupplyOrderDetailsResponseVehicleValue_1.SupplyOrderDetailsResponseVehicleValueFromJSON)(json['value']), + }; +} +function SupplyOrderDetailsResponseVehicleToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_not_set_reasons': value['can_not_set_reasons'] == null ? undefined : (value['can_not_set_reasons'].map(VehicleCanNotSetVehicleReasonEnum_1.VehicleCanNotSetVehicleReasonEnumToJSON)), + 'can_set': value['can_set'], + 'value': (0, SupplyOrderDetailsResponseVehicleValue_1.SupplyOrderDetailsResponseVehicleValueToJSON)(value['value']), + }; +} diff --git a/dist/models/SupplyOrderDetailsResponseVehicleValue.d.ts b/dist/models/SupplyOrderDetailsResponseVehicleValue.d.ts new file mode 100644 index 0000000..bb1b954 --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseVehicleValue.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о водителе и машине. Только для pick-up отгрузок. + * @export + * @interface SupplyOrderDetailsResponseVehicleValue + */ +export interface SupplyOrderDetailsResponseVehicleValue { + /** + * `true`, если информация о водителе удалена. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + driver_is_deleted?: boolean; + /** + * Имя водителя. + * @type {string} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + driver_name?: string; + /** + * Телефон водителя. + * @type {string} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + driver_phone?: string; + /** + * `true`, если информация о машине удалена. + * + * @type {boolean} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + vehicle_is_deleted?: boolean; + /** + * Модель машины. + * @type {string} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + vehicle_model?: string; + /** + * Номер машины. + * @type {string} + * @memberof SupplyOrderDetailsResponseVehicleValue + */ + vehicle_number?: string; +} +/** + * Check if a given object implements the SupplyOrderDetailsResponseVehicleValue interface. + */ +export declare function instanceOfSupplyOrderDetailsResponseVehicleValue(value: object): value is SupplyOrderDetailsResponseVehicleValue; +export declare function SupplyOrderDetailsResponseVehicleValueFromJSON(json: any): SupplyOrderDetailsResponseVehicleValue; +export declare function SupplyOrderDetailsResponseVehicleValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderDetailsResponseVehicleValue; +export declare function SupplyOrderDetailsResponseVehicleValueToJSON(value?: SupplyOrderDetailsResponseVehicleValue | null): any; diff --git a/dist/models/SupplyOrderDetailsResponseVehicleValue.js b/dist/models/SupplyOrderDetailsResponseVehicleValue.js new file mode 100644 index 0000000..122f728 --- /dev/null +++ b/dist/models/SupplyOrderDetailsResponseVehicleValue.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderDetailsResponseVehicleValue = instanceOfSupplyOrderDetailsResponseVehicleValue; +exports.SupplyOrderDetailsResponseVehicleValueFromJSON = SupplyOrderDetailsResponseVehicleValueFromJSON; +exports.SupplyOrderDetailsResponseVehicleValueFromJSONTyped = SupplyOrderDetailsResponseVehicleValueFromJSONTyped; +exports.SupplyOrderDetailsResponseVehicleValueToJSON = SupplyOrderDetailsResponseVehicleValueToJSON; +/** + * Check if a given object implements the SupplyOrderDetailsResponseVehicleValue interface. + */ +function instanceOfSupplyOrderDetailsResponseVehicleValue(value) { + return true; +} +function SupplyOrderDetailsResponseVehicleValueFromJSON(json) { + return SupplyOrderDetailsResponseVehicleValueFromJSONTyped(json, false); +} +function SupplyOrderDetailsResponseVehicleValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_is_deleted': json['driver_is_deleted'] == null ? undefined : json['driver_is_deleted'], + 'driver_name': json['driver_name'] == null ? undefined : json['driver_name'], + 'driver_phone': json['driver_phone'] == null ? undefined : json['driver_phone'], + 'vehicle_is_deleted': json['vehicle_is_deleted'] == null ? undefined : json['vehicle_is_deleted'], + 'vehicle_model': json['vehicle_model'] == null ? undefined : json['vehicle_model'], + 'vehicle_number': json['vehicle_number'] == null ? undefined : json['vehicle_number'], + }; +} +function SupplyOrderDetailsResponseVehicleValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_is_deleted': value['driver_is_deleted'], + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'vehicle_is_deleted': value['vehicle_is_deleted'], + 'vehicle_model': value['vehicle_model'], + 'vehicle_number': value['vehicle_number'], + }; +} diff --git a/dist/models/SupplyOrderGetResponseOrder.d.ts b/dist/models/SupplyOrderGetResponseOrder.d.ts new file mode 100644 index 0000000..dd4a6de --- /dev/null +++ b/dist/models/SupplyOrderGetResponseOrder.d.ts @@ -0,0 +1,90 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderOrderTags } from './OrderOrderTags'; +import type { OrderSupply } from './OrderSupply'; +import type { OrderDropOffWarehouse } from './OrderDropOffWarehouse'; +import type { SupplyOrderGetResponseTimeslotTZ } from './SupplyOrderGetResponseTimeslotTZ'; +import type { OrderOrderStateEnum } from './OrderOrderStateEnum'; +/** + * + * @export + * @interface SupplyOrderGetResponseOrder + */ +export interface SupplyOrderGetResponseOrder { + /** + * Дата создания заявки на поставку. + * @type {string} + * @memberof SupplyOrderGetResponseOrder + */ + created_date?: string; + /** + * Время в секундах, оставшееся на заполнение данных по поставке. Только для заявок с вРЦ. + * @type {string} + * @memberof SupplyOrderGetResponseOrder + */ + data_filling_deadline_utc?: string; + /** + * + * @type {OrderDropOffWarehouse} + * @memberof SupplyOrderGetResponseOrder + */ + dropoff_warehouse?: OrderDropOffWarehouse; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof SupplyOrderGetResponseOrder + */ + order_id?: number; + /** + * Номер заявки на поставку. + * @type {string} + * @memberof SupplyOrderGetResponseOrder + */ + order_number?: string; + /** + * + * @type {OrderOrderTags} + * @memberof SupplyOrderGetResponseOrder + */ + order_tags?: OrderOrderTags; + /** + * + * @type {OrderOrderStateEnum} + * @memberof SupplyOrderGetResponseOrder + */ + state?: OrderOrderStateEnum; + /** + * Дата обновления статуса заявки на поставку. + * @type {string} + * @memberof SupplyOrderGetResponseOrder + */ + state_updated_date?: string; + /** + * Информация о поставках. + * @type {Array} + * @memberof SupplyOrderGetResponseOrder + */ + supplies?: Array; + /** + * + * @type {SupplyOrderGetResponseTimeslotTZ} + * @memberof SupplyOrderGetResponseOrder + */ + timeslot?: SupplyOrderGetResponseTimeslotTZ; +} +/** + * Check if a given object implements the SupplyOrderGetResponseOrder interface. + */ +export declare function instanceOfSupplyOrderGetResponseOrder(value: object): value is SupplyOrderGetResponseOrder; +export declare function SupplyOrderGetResponseOrderFromJSON(json: any): SupplyOrderGetResponseOrder; +export declare function SupplyOrderGetResponseOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderGetResponseOrder; +export declare function SupplyOrderGetResponseOrderToJSON(value?: SupplyOrderGetResponseOrder | null): any; diff --git a/dist/models/SupplyOrderGetResponseOrder.js b/dist/models/SupplyOrderGetResponseOrder.js new file mode 100644 index 0000000..45d04ae --- /dev/null +++ b/dist/models/SupplyOrderGetResponseOrder.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderGetResponseOrder = instanceOfSupplyOrderGetResponseOrder; +exports.SupplyOrderGetResponseOrderFromJSON = SupplyOrderGetResponseOrderFromJSON; +exports.SupplyOrderGetResponseOrderFromJSONTyped = SupplyOrderGetResponseOrderFromJSONTyped; +exports.SupplyOrderGetResponseOrderToJSON = SupplyOrderGetResponseOrderToJSON; +const OrderOrderTags_1 = require("./OrderOrderTags"); +const OrderSupply_1 = require("./OrderSupply"); +const OrderDropOffWarehouse_1 = require("./OrderDropOffWarehouse"); +const SupplyOrderGetResponseTimeslotTZ_1 = require("./SupplyOrderGetResponseTimeslotTZ"); +const OrderOrderStateEnum_1 = require("./OrderOrderStateEnum"); +/** + * Check if a given object implements the SupplyOrderGetResponseOrder interface. + */ +function instanceOfSupplyOrderGetResponseOrder(value) { + return true; +} +function SupplyOrderGetResponseOrderFromJSON(json) { + return SupplyOrderGetResponseOrderFromJSONTyped(json, false); +} +function SupplyOrderGetResponseOrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'data_filling_deadline_utc': json['data_filling_deadline_utc'] == null ? undefined : json['data_filling_deadline_utc'], + 'dropoff_warehouse': json['dropoff_warehouse'] == null ? undefined : (0, OrderDropOffWarehouse_1.OrderDropOffWarehouseFromJSON)(json['dropoff_warehouse']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'order_tags': json['order_tags'] == null ? undefined : (0, OrderOrderTags_1.OrderOrderTagsFromJSON)(json['order_tags']), + 'state': json['state'] == null ? undefined : (0, OrderOrderStateEnum_1.OrderOrderStateEnumFromJSON)(json['state']), + 'state_updated_date': json['state_updated_date'] == null ? undefined : json['state_updated_date'], + 'supplies': json['supplies'] == null ? undefined : (json['supplies'].map(OrderSupply_1.OrderSupplyFromJSON)), + 'timeslot': json['timeslot'] == null ? undefined : (0, SupplyOrderGetResponseTimeslotTZ_1.SupplyOrderGetResponseTimeslotTZFromJSON)(json['timeslot']), + }; +} +function SupplyOrderGetResponseOrderToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_date': value['created_date'], + 'data_filling_deadline_utc': value['data_filling_deadline_utc'], + 'dropoff_warehouse': (0, OrderDropOffWarehouse_1.OrderDropOffWarehouseToJSON)(value['dropoff_warehouse']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'order_tags': (0, OrderOrderTags_1.OrderOrderTagsToJSON)(value['order_tags']), + 'state': (0, OrderOrderStateEnum_1.OrderOrderStateEnumToJSON)(value['state']), + 'state_updated_date': value['state_updated_date'], + 'supplies': value['supplies'] == null ? undefined : (value['supplies'].map(OrderSupply_1.OrderSupplyToJSON)), + 'timeslot': (0, SupplyOrderGetResponseTimeslotTZ_1.SupplyOrderGetResponseTimeslotTZToJSON)(value['timeslot']), + }; +} diff --git a/dist/models/SupplyOrderGetResponseTimeslotTZ.d.ts b/dist/models/SupplyOrderGetResponseTimeslotTZ.d.ts new file mode 100644 index 0000000..2f06d4b --- /dev/null +++ b/dist/models/SupplyOrderGetResponseTimeslotTZ.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TimeslotTZTimezoneInfo } from './TimeslotTZTimezoneInfo'; +import type { TimeslotTZTimeslot } from './TimeslotTZTimeslot'; +/** + * Информация о таймслоте. + * @export + * @interface SupplyOrderGetResponseTimeslotTZ + */ +export interface SupplyOrderGetResponseTimeslotTZ { + /** + * + * @type {TimeslotTZTimeslot} + * @memberof SupplyOrderGetResponseTimeslotTZ + */ + timeslot?: TimeslotTZTimeslot; + /** + * + * @type {TimeslotTZTimezoneInfo} + * @memberof SupplyOrderGetResponseTimeslotTZ + */ + timezone_info?: TimeslotTZTimezoneInfo; +} +/** + * Check if a given object implements the SupplyOrderGetResponseTimeslotTZ interface. + */ +export declare function instanceOfSupplyOrderGetResponseTimeslotTZ(value: object): value is SupplyOrderGetResponseTimeslotTZ; +export declare function SupplyOrderGetResponseTimeslotTZFromJSON(json: any): SupplyOrderGetResponseTimeslotTZ; +export declare function SupplyOrderGetResponseTimeslotTZFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderGetResponseTimeslotTZ; +export declare function SupplyOrderGetResponseTimeslotTZToJSON(value?: SupplyOrderGetResponseTimeslotTZ | null): any; diff --git a/dist/models/SupplyOrderGetResponseTimeslotTZ.js b/dist/models/SupplyOrderGetResponseTimeslotTZ.js new file mode 100644 index 0000000..842c05f --- /dev/null +++ b/dist/models/SupplyOrderGetResponseTimeslotTZ.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderGetResponseTimeslotTZ = instanceOfSupplyOrderGetResponseTimeslotTZ; +exports.SupplyOrderGetResponseTimeslotTZFromJSON = SupplyOrderGetResponseTimeslotTZFromJSON; +exports.SupplyOrderGetResponseTimeslotTZFromJSONTyped = SupplyOrderGetResponseTimeslotTZFromJSONTyped; +exports.SupplyOrderGetResponseTimeslotTZToJSON = SupplyOrderGetResponseTimeslotTZToJSON; +const TimeslotTZTimezoneInfo_1 = require("./TimeslotTZTimezoneInfo"); +const TimeslotTZTimeslot_1 = require("./TimeslotTZTimeslot"); +/** + * Check if a given object implements the SupplyOrderGetResponseTimeslotTZ interface. + */ +function instanceOfSupplyOrderGetResponseTimeslotTZ(value) { + return true; +} +function SupplyOrderGetResponseTimeslotTZFromJSON(json) { + return SupplyOrderGetResponseTimeslotTZFromJSONTyped(json, false); +} +function SupplyOrderGetResponseTimeslotTZFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot': json['timeslot'] == null ? undefined : (0, TimeslotTZTimeslot_1.TimeslotTZTimeslotFromJSON)(json['timeslot']), + 'timezone_info': json['timezone_info'] == null ? undefined : (0, TimeslotTZTimezoneInfo_1.TimeslotTZTimezoneInfoFromJSON)(json['timezone_info']), + }; +} +function SupplyOrderGetResponseTimeslotTZToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot': (0, TimeslotTZTimeslot_1.TimeslotTZTimeslotToJSON)(value['timeslot']), + 'timezone_info': (0, TimeslotTZTimezoneInfo_1.TimeslotTZTimezoneInfoToJSON)(value['timezone_info']), + }; +} diff --git a/dist/models/SupplyOrderListRequestFilter.d.ts b/dist/models/SupplyOrderListRequestFilter.d.ts new file mode 100644 index 0000000..5a48de7 --- /dev/null +++ b/dist/models/SupplyOrderListRequestFilter.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FilterTimeslotFromRange } from './FilterTimeslotFromRange'; +import type { SupplyOrderListRequestFilterStateEnum } from './SupplyOrderListRequestFilterStateEnum'; +/** + * Фильтр. + * @export + * @interface SupplyOrderListRequestFilter + */ +export interface SupplyOrderListRequestFilter { + /** + * Идентификаторы пунктов отгрузки. + * @type {Array} + * @memberof SupplyOrderListRequestFilter + */ + dropoff_warehouse_ids?: Array; + /** + * Номер заявки на поставку. + * @type {string} + * @memberof SupplyOrderListRequestFilter + */ + order_number_search?: string; + /** + * Статус поставки: + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @type {Array} + * @memberof SupplyOrderListRequestFilter + */ + states: Array; + /** + * + * @type {FilterTimeslotFromRange} + * @memberof SupplyOrderListRequestFilter + */ + timeslot_from_range?: FilterTimeslotFromRange; +} +/** + * Check if a given object implements the SupplyOrderListRequestFilter interface. + */ +export declare function instanceOfSupplyOrderListRequestFilter(value: object): value is SupplyOrderListRequestFilter; +export declare function SupplyOrderListRequestFilterFromJSON(json: any): SupplyOrderListRequestFilter; +export declare function SupplyOrderListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderListRequestFilter; +export declare function SupplyOrderListRequestFilterToJSON(value?: SupplyOrderListRequestFilter | null): any; diff --git a/dist/models/SupplyOrderListRequestFilter.js b/dist/models/SupplyOrderListRequestFilter.js new file mode 100644 index 0000000..c860097 --- /dev/null +++ b/dist/models/SupplyOrderListRequestFilter.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderListRequestFilter = instanceOfSupplyOrderListRequestFilter; +exports.SupplyOrderListRequestFilterFromJSON = SupplyOrderListRequestFilterFromJSON; +exports.SupplyOrderListRequestFilterFromJSONTyped = SupplyOrderListRequestFilterFromJSONTyped; +exports.SupplyOrderListRequestFilterToJSON = SupplyOrderListRequestFilterToJSON; +const FilterTimeslotFromRange_1 = require("./FilterTimeslotFromRange"); +const SupplyOrderListRequestFilterStateEnum_1 = require("./SupplyOrderListRequestFilterStateEnum"); +/** + * Check if a given object implements the SupplyOrderListRequestFilter interface. + */ +function instanceOfSupplyOrderListRequestFilter(value) { + if (!('states' in value) || value['states'] === undefined) + return false; + return true; +} +function SupplyOrderListRequestFilterFromJSON(json) { + return SupplyOrderListRequestFilterFromJSONTyped(json, false); +} +function SupplyOrderListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dropoff_warehouse_ids': json['dropoff_warehouse_ids'] == null ? undefined : json['dropoff_warehouse_ids'], + 'order_number_search': json['order_number_search'] == null ? undefined : json['order_number_search'], + 'states': (json['states'].map(SupplyOrderListRequestFilterStateEnum_1.SupplyOrderListRequestFilterStateEnumFromJSON)), + 'timeslot_from_range': json['timeslot_from_range'] == null ? undefined : (0, FilterTimeslotFromRange_1.FilterTimeslotFromRangeFromJSON)(json['timeslot_from_range']), + }; +} +function SupplyOrderListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'dropoff_warehouse_ids': value['dropoff_warehouse_ids'], + 'order_number_search': value['order_number_search'], + 'states': (value['states'].map(SupplyOrderListRequestFilterStateEnum_1.SupplyOrderListRequestFilterStateEnumToJSON)), + 'timeslot_from_range': (0, FilterTimeslotFromRange_1.FilterTimeslotFromRangeToJSON)(value['timeslot_from_range']), + }; +} diff --git a/dist/models/SupplyOrderListRequestFilterStateEnum.d.ts b/dist/models/SupplyOrderListRequestFilterStateEnum.d.ts new file mode 100644 index 0000000..ff3861f --- /dev/null +++ b/dist/models/SupplyOrderListRequestFilterStateEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderListRequestFilterStateEnum: { + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type SupplyOrderListRequestFilterStateEnum = typeof SupplyOrderListRequestFilterStateEnum[keyof typeof SupplyOrderListRequestFilterStateEnum]; +export declare function instanceOfSupplyOrderListRequestFilterStateEnum(value: any): boolean; +export declare function SupplyOrderListRequestFilterStateEnumFromJSON(json: any): SupplyOrderListRequestFilterStateEnum; +export declare function SupplyOrderListRequestFilterStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderListRequestFilterStateEnum; +export declare function SupplyOrderListRequestFilterStateEnumToJSON(value?: SupplyOrderListRequestFilterStateEnum | null): any; diff --git a/dist/models/SupplyOrderListRequestFilterStateEnum.js b/dist/models/SupplyOrderListRequestFilterStateEnum.js new file mode 100644 index 0000000..16760cb --- /dev/null +++ b/dist/models/SupplyOrderListRequestFilterStateEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderListRequestFilterStateEnum = void 0; +exports.instanceOfSupplyOrderListRequestFilterStateEnum = instanceOfSupplyOrderListRequestFilterStateEnum; +exports.SupplyOrderListRequestFilterStateEnumFromJSON = SupplyOrderListRequestFilterStateEnumFromJSON; +exports.SupplyOrderListRequestFilterStateEnumFromJSONTyped = SupplyOrderListRequestFilterStateEnumFromJSONTyped; +exports.SupplyOrderListRequestFilterStateEnumToJSON = SupplyOrderListRequestFilterStateEnumToJSON; +/** + * + * @export + */ +exports.SupplyOrderListRequestFilterStateEnum = { + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +function instanceOfSupplyOrderListRequestFilterStateEnum(value) { + for (const key in exports.SupplyOrderListRequestFilterStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderListRequestFilterStateEnum, key)) { + if (exports.SupplyOrderListRequestFilterStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderListRequestFilterStateEnumFromJSON(json) { + return SupplyOrderListRequestFilterStateEnumFromJSONTyped(json, false); +} +function SupplyOrderListRequestFilterStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderListRequestFilterStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderListRequestSortByEnum.d.ts b/dist/models/SupplyOrderListRequestSortByEnum.d.ts new file mode 100644 index 0000000..7674c21 --- /dev/null +++ b/dist/models/SupplyOrderListRequestSortByEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому заявки на поставку будут отсортированы: + * - `ORDER_CREATION` — по дате создания заявки; + * - `ORDER_STATE_UPDATED_AT` — по обновлению статуса заявки; + * - `TIMESLOT_FROM_UTC` — по таймслоту в UTC; + * - `TIMESLOT_FROM_LOCAL` — по таймслоту в локальном времени. + * + * @export + */ +export declare const SupplyOrderListRequestSortByEnum: { + readonly ORDER_CREATION: "ORDER_CREATION"; + readonly ORDER_STATE_UPDATED_AT: "ORDER_STATE_UPDATED_AT"; + readonly TIMESLOT_FROM_UTC: "TIMESLOT_FROM_UTC"; + readonly TIMESLOT_FROM_LOCAL: "TIMESLOT_FROM_LOCAL"; +}; +export type SupplyOrderListRequestSortByEnum = typeof SupplyOrderListRequestSortByEnum[keyof typeof SupplyOrderListRequestSortByEnum]; +export declare function instanceOfSupplyOrderListRequestSortByEnum(value: any): boolean; +export declare function SupplyOrderListRequestSortByEnumFromJSON(json: any): SupplyOrderListRequestSortByEnum; +export declare function SupplyOrderListRequestSortByEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderListRequestSortByEnum; +export declare function SupplyOrderListRequestSortByEnumToJSON(value?: SupplyOrderListRequestSortByEnum | null): any; diff --git a/dist/models/SupplyOrderListRequestSortByEnum.js b/dist/models/SupplyOrderListRequestSortByEnum.js new file mode 100644 index 0000000..fcece58 --- /dev/null +++ b/dist/models/SupplyOrderListRequestSortByEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderListRequestSortByEnum = void 0; +exports.instanceOfSupplyOrderListRequestSortByEnum = instanceOfSupplyOrderListRequestSortByEnum; +exports.SupplyOrderListRequestSortByEnumFromJSON = SupplyOrderListRequestSortByEnumFromJSON; +exports.SupplyOrderListRequestSortByEnumFromJSONTyped = SupplyOrderListRequestSortByEnumFromJSONTyped; +exports.SupplyOrderListRequestSortByEnumToJSON = SupplyOrderListRequestSortByEnumToJSON; +/** + * Параметр, по которому заявки на поставку будут отсортированы: + * - `ORDER_CREATION` — по дате создания заявки; + * - `ORDER_STATE_UPDATED_AT` — по обновлению статуса заявки; + * - `TIMESLOT_FROM_UTC` — по таймслоту в UTC; + * - `TIMESLOT_FROM_LOCAL` — по таймслоту в локальном времени. + * + * @export + */ +exports.SupplyOrderListRequestSortByEnum = { + ORDER_CREATION: 'ORDER_CREATION', + ORDER_STATE_UPDATED_AT: 'ORDER_STATE_UPDATED_AT', + TIMESLOT_FROM_UTC: 'TIMESLOT_FROM_UTC', + TIMESLOT_FROM_LOCAL: 'TIMESLOT_FROM_LOCAL' +}; +function instanceOfSupplyOrderListRequestSortByEnum(value) { + for (const key in exports.SupplyOrderListRequestSortByEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderListRequestSortByEnum, key)) { + if (exports.SupplyOrderListRequestSortByEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderListRequestSortByEnumFromJSON(json) { + return SupplyOrderListRequestSortByEnumFromJSONTyped(json, false); +} +function SupplyOrderListRequestSortByEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderListRequestSortByEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderListRequestSortDirEnum.d.ts b/dist/models/SupplyOrderListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..0cb502a --- /dev/null +++ b/dist/models/SupplyOrderListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +export declare const SupplyOrderListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type SupplyOrderListRequestSortDirEnum = typeof SupplyOrderListRequestSortDirEnum[keyof typeof SupplyOrderListRequestSortDirEnum]; +export declare function instanceOfSupplyOrderListRequestSortDirEnum(value: any): boolean; +export declare function SupplyOrderListRequestSortDirEnumFromJSON(json: any): SupplyOrderListRequestSortDirEnum; +export declare function SupplyOrderListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderListRequestSortDirEnum; +export declare function SupplyOrderListRequestSortDirEnumToJSON(value?: SupplyOrderListRequestSortDirEnum | null): any; diff --git a/dist/models/SupplyOrderListRequestSortDirEnum.js b/dist/models/SupplyOrderListRequestSortDirEnum.js new file mode 100644 index 0000000..b19c514 --- /dev/null +++ b/dist/models/SupplyOrderListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderListRequestSortDirEnum = void 0; +exports.instanceOfSupplyOrderListRequestSortDirEnum = instanceOfSupplyOrderListRequestSortDirEnum; +exports.SupplyOrderListRequestSortDirEnumFromJSON = SupplyOrderListRequestSortDirEnumFromJSON; +exports.SupplyOrderListRequestSortDirEnumFromJSONTyped = SupplyOrderListRequestSortDirEnumFromJSONTyped; +exports.SupplyOrderListRequestSortDirEnumToJSON = SupplyOrderListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию; + * - `DESC` — по убыванию. + * + * @export + */ +exports.SupplyOrderListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfSupplyOrderListRequestSortDirEnum(value) { + for (const key in exports.SupplyOrderListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderListRequestSortDirEnum, key)) { + if (exports.SupplyOrderListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderListRequestSortDirEnumFromJSON(json) { + return SupplyOrderListRequestSortDirEnumFromJSONTyped(json, false); +} +function SupplyOrderListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptRequest.d.ts b/dist/models/SupplyOrderV1SupplyOrderActAcceptRequest.d.ts new file mode 100644 index 0000000..bc6f31e --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActAcceptRequest + */ +export interface SupplyOrderV1SupplyOrderActAcceptRequest { + /** + * Идентификатор акта из методов [/v1/supply-order/act/summary/get](#operation/SupplyOrderActSummaryGet) или [/v1/supply-order/act/product/get](#operation/SupplyOrderActProductGet). + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActAcceptRequest + */ + act_id: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptRequest interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptRequest(value: object): value is SupplyOrderV1SupplyOrderActAcceptRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptRequestFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptRequestToJSON(value?: SupplyOrderV1SupplyOrderActAcceptRequest | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptRequest.js b/dist/models/SupplyOrderV1SupplyOrderActAcceptRequest.js new file mode 100644 index 0000000..1ded354 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActAcceptRequest = instanceOfSupplyOrderV1SupplyOrderActAcceptRequest; +exports.SupplyOrderV1SupplyOrderActAcceptRequestFromJSON = SupplyOrderV1SupplyOrderActAcceptRequestFromJSON; +exports.SupplyOrderV1SupplyOrderActAcceptRequestFromJSONTyped = SupplyOrderV1SupplyOrderActAcceptRequestFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActAcceptRequestToJSON = SupplyOrderV1SupplyOrderActAcceptRequestToJSON; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptRequest interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActAcceptRequest(value) { + if (!('act_id' in value) || value['act_id'] === undefined) + return false; + return true; +} +function SupplyOrderV1SupplyOrderActAcceptRequestFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptRequestFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActAcceptRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_id': json['act_id'], + }; +} +function SupplyOrderV1SupplyOrderActAcceptRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_id': value['act_id'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptResponse.d.ts b/dist/models/SupplyOrderV1SupplyOrderActAcceptResponse.d.ts new file mode 100644 index 0000000..b38fb95 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptResponse.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum } from './SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActAcceptResponse + */ +export interface SupplyOrderV1SupplyOrderActAcceptResponse { + /** + * Ошибки при принятии акта: + * - `UNSPECIFIED` — не определена; + * - `INVALID_STATE` — некорректный статус; + * - `SUPPLY_WITH_UTD` — поставка с УПД. + * + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActAcceptResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActAcceptResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptResponse interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptResponse(value: object): value is SupplyOrderV1SupplyOrderActAcceptResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseToJSON(value?: SupplyOrderV1SupplyOrderActAcceptResponse | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptResponse.js b/dist/models/SupplyOrderV1SupplyOrderActAcceptResponse.js new file mode 100644 index 0000000..4ff3f32 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActAcceptResponse = instanceOfSupplyOrderV1SupplyOrderActAcceptResponse; +exports.SupplyOrderV1SupplyOrderActAcceptResponseFromJSON = SupplyOrderV1SupplyOrderActAcceptResponseFromJSON; +exports.SupplyOrderV1SupplyOrderActAcceptResponseFromJSONTyped = SupplyOrderV1SupplyOrderActAcceptResponseFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActAcceptResponseToJSON = SupplyOrderV1SupplyOrderActAcceptResponseToJSON; +const SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum_1 = require("./SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptResponse interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActAcceptResponse(value) { + return true; +} +function SupplyOrderV1SupplyOrderActAcceptResponseFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptResponseFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActAcceptResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum_1.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function SupplyOrderV1SupplyOrderActAcceptResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum_1.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.d.ts b/dist/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.d.ts new file mode 100644 index 0000000..38d2db4 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_STATE: "INVALID_STATE"; + readonly SUPPLY_WITH_UTD: "SUPPLY_WITH_UTD"; +}; +export type SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum = typeof SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum[keyof typeof SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum; +export declare function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON(value?: SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.js b/dist/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.js new file mode 100644 index 0000000..5b1979a --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum = void 0; +exports.instanceOfSupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum = instanceOfSupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum; +exports.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON = SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON; +exports.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSONTyped = SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON = SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_STATE: 'INVALID_STATE', + SUPPLY_WITH_UTD: 'SUPPLY_WITH_UTD' +}; +function instanceOfSupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum(value) { + for (const key in exports.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum, key)) { + if (exports.SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.d.ts b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.d.ts new file mode 100644 index 0000000..11750c9 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActAcceptStatusRequest + */ +export interface SupplyOrderV1SupplyOrderActAcceptStatusRequest { + /** + * Идентификатор операции из метода [/v1/supply-order/act/accept](#operation/SupplyOrderActAccept). + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActAcceptStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptStatusRequest interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusRequest(value: object): value is SupplyOrderV1SupplyOrderActAcceptStatusRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptStatusRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptStatusRequest; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON(value?: SupplyOrderV1SupplyOrderActAcceptStatusRequest | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.js b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.js new file mode 100644 index 0000000..1f39dd6 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActAcceptStatusRequest = instanceOfSupplyOrderV1SupplyOrderActAcceptStatusRequest; +exports.SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSON = SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSON; +exports.SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSONTyped = SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON = SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptStatusRequest interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActAcceptStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function SupplyOrderV1SupplyOrderActAcceptStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.d.ts b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.d.ts new file mode 100644 index 0000000..5f9152c --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum } from './SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActAcceptStatusResponse + */ +export interface SupplyOrderV1SupplyOrderActAcceptStatusResponse { + /** + * + * @type {SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum} + * @memberof SupplyOrderV1SupplyOrderActAcceptStatusResponse + */ + status?: SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum; + /** + * Причина ошибки. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActAcceptStatusResponse + */ + error_message?: string; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptStatusResponse interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponse(value: object): value is SupplyOrderV1SupplyOrderActAcceptStatusResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptStatusResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptStatusResponse; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseToJSON(value?: SupplyOrderV1SupplyOrderActAcceptStatusResponse | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.js b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.js new file mode 100644 index 0000000..6ce760d --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponse = instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponse; +exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON = SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON; +exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSONTyped = SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseToJSON = SupplyOrderV1SupplyOrderActAcceptStatusResponseToJSON; +const SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum_1 = require("./SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActAcceptStatusResponse interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponse(value) { + return true; +} +function SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActAcceptStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum_1.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON)(json['status']), + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +function SupplyOrderV1SupplyOrderActAcceptStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': (0, SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum_1.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON)(value['status']), + 'error_message': value['error_message'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.d.ts b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..65bdb1f --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус операции: + * - `SUCCESS` — акт согласован; + * - `IN_PROGRESS` — согласование в процессе; + * - `FAILED` — ошибка при согласовании акта. + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum = typeof SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum[keyof typeof SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum; +export declare function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON(value?: SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.js b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.js new file mode 100644 index 0000000..a60c050 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum = void 0; +exports.instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum = instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum; +exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON = SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON; +exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSONTyped = SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON = SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON; +/** + * Статус операции: + * - `SUCCESS` — акт согласован; + * - `IN_PROGRESS` — согласование в процессе; + * - `FAILED` — ошибка при согласовании акта. + * + * @export + */ +exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfSupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum(value) { + for (const key in exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum, key)) { + if (exports.SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetRequest.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetRequest.d.ts new file mode 100644 index 0000000..b08ae05 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetRequest + */ +export interface SupplyOrderV1SupplyOrderActProductGetRequest { + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetRequest interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetRequest(value: object): value is SupplyOrderV1SupplyOrderActProductGetRequest; +export declare function SupplyOrderV1SupplyOrderActProductGetRequestFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetRequest; +export declare function SupplyOrderV1SupplyOrderActProductGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetRequest; +export declare function SupplyOrderV1SupplyOrderActProductGetRequestToJSON(value?: SupplyOrderV1SupplyOrderActProductGetRequest | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetRequest.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetRequest.js new file mode 100644 index 0000000..eaab870 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetRequest = instanceOfSupplyOrderV1SupplyOrderActProductGetRequest; +exports.SupplyOrderV1SupplyOrderActProductGetRequestFromJSON = SupplyOrderV1SupplyOrderActProductGetRequestFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetRequestFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetRequestFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetRequestToJSON = SupplyOrderV1SupplyOrderActProductGetRequestToJSON; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetRequest interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActProductGetRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function SupplyOrderV1SupplyOrderActProductGetRequestFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetRequestFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function SupplyOrderV1SupplyOrderActProductGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponse.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponse.d.ts new file mode 100644 index 0000000..fd03a1a --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects } from './SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects'; +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponse + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponse { + /** + * Список товаров с браком. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponse + */ + skus_defects?: Array; + /** + * Список актов в поставке. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponse + */ + supply_acts?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponse + */ + supply_id?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponse interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponse(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponse; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponse; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponse; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponse | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponse.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponse.js new file mode 100644 index 0000000..e3e4aea --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetResponse = instanceOfSupplyOrderV1SupplyOrderActProductGetResponse; +exports.SupplyOrderV1SupplyOrderActProductGetResponseFromJSON = SupplyOrderV1SupplyOrderActProductGetResponseFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetResponseFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetResponseFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetResponseToJSON = SupplyOrderV1SupplyOrderActProductGetResponseToJSON; +const SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects_1 = require("./SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects"); +const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs_1 = require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponse interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActProductGetResponse(value) { + return true; +} +function SupplyOrderV1SupplyOrderActProductGetResponseFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus_defects': json['skus_defects'] == null ? undefined : (json['skus_defects'].map(SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects_1.SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON)), + 'supply_acts': json['supply_acts'] == null ? undefined : (json['supply_acts'].map(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON)), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function SupplyOrderV1SupplyOrderActProductGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus_defects': value['skus_defects'] == null ? undefined : (value['skus_defects'].map(SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects_1.SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON)), + 'supply_acts': value['supply_acts'] == null ? undefined : (value['supply_acts'].map(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON)), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.d.ts new file mode 100644 index 0000000..619826a --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects { + /** + * Причины брака. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects + */ + defect_reasons?: Array; + /** + * Идентификатор товара. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects + */ + sku?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSkusDefects(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.js new file mode 100644 index 0000000..fbdbd88 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSkusDefects = instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSkusDefects; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON = SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON = SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSkusDefects(value) { + return true; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'defect_reasons': json['defect_reasons'] == null ? undefined : json['defect_reasons'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSkusDefectsToJSON(value) { + if (value == null) { + return value; + } + return { + 'defect_reasons': value['defect_reasons'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.d.ts new file mode 100644 index 0000000..d2d7dd6 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems'; +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs { + /** + * Идентификатор акта. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ + act_id?: number; + /** + * Список товаров в акте. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ + items?: Array; + /** + * + * @type {SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ + type?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum; + /** + * Количество неопознанных излишков. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs + */ + unidentified_quantity?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActs(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.js new file mode 100644 index 0000000..ff73c96 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActs = instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActs; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON; +const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems_1 = require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems"); +const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum_1 = require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActs(value) { + return true; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_id': json['act_id'] == null ? undefined : json['act_id'], + 'items': json['items'] == null ? undefined : (json['items'].map(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON)), + 'type': json['type'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON)(json['type']), + 'unidentified_quantity': json['unidentified_quantity'] == null ? undefined : json['unidentified_quantity'], + }; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_id': value['act_id'], + 'items': value['items'] == null ? undefined : (value['items'].map(SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON)), + 'type': (0, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON)(value['type']), + 'unidentified_quantity': value['unidentified_quantity'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.d.ts new file mode 100644 index 0000000..1bef28a --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount'; +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo'; +import type { SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount } from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems { + /** + * + * @type {SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + approved_amount?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; + /** + * Количество согласованного товара в акте. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + approved_quantity?: number; + /** + * Количество заявленного товара в акте. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + declared_quantity?: number; + /** + * + * @type {SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + fact_amount?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; + /** + * Количество принятого товара. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + fact_quantity?: number; + /** + * + * @type {SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems + */ + sku_info?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.js new file mode 100644 index 0000000..8b778a4 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems = instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON; +const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount_1 = require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount"); +const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo_1 = require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo"); +const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount_1 = require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems(value) { + return true; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_amount': json['approved_amount'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON)(json['approved_amount']), + 'approved_quantity': json['approved_quantity'] == null ? undefined : json['approved_quantity'], + 'declared_quantity': json['declared_quantity'] == null ? undefined : json['declared_quantity'], + 'fact_amount': json['fact_amount'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON)(json['fact_amount']), + 'fact_quantity': json['fact_quantity'] == null ? undefined : json['fact_quantity'], + 'sku_info': json['sku_info'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON)(json['sku_info']), + }; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_amount': (0, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON)(value['approved_amount']), + 'approved_quantity': value['approved_quantity'], + 'declared_quantity': value['declared_quantity'], + 'fact_amount': (0, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON)(value['fact_amount']), + 'fact_quantity': value['fact_quantity'], + 'sku_info': (0, SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo_1.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON)(value['sku_info']), + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.d.ts new file mode 100644 index 0000000..bd10523 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySupplyActAmount } from './MoneyMoneySupplyActAmount'; +import type { MoneyMoneySupplyActAmountVat } from './MoneyMoneySupplyActAmountVat'; +import type { MoneyMoneySupplyActAmountWithoutVat } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Согласованная стоимость товаров. + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount { + /** + * + * @type {MoneyMoneySupplyActAmount} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount + */ + amount?: MoneyMoneySupplyActAmount; + /** + * + * @type {MoneyMoneySupplyActAmountVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount + */ + amount_vat?: MoneyMoneySupplyActAmountVat; + /** + * + * @type {MoneyMoneySupplyActAmountWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount + */ + amount_without_vat?: MoneyMoneySupplyActAmountWithoutVat; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.js new file mode 100644 index 0000000..cc0e7b6 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount = instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON; +const MoneyMoneySupplyActAmount_1 = require("./MoneyMoneySupplyActAmount"); +const MoneyMoneySupplyActAmountVat_1 = require("./MoneyMoneySupplyActAmountVat"); +const MoneyMoneySupplyActAmountWithoutVat_1 = require("./MoneyMoneySupplyActAmountWithoutVat"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount(value) { + return true; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : (0, MoneyMoneySupplyActAmount_1.MoneyMoneySupplyActAmountFromJSON)(json['amount']), + 'amount_vat': json['amount_vat'] == null ? undefined : (0, MoneyMoneySupplyActAmountVat_1.MoneyMoneySupplyActAmountVatFromJSON)(json['amount_vat']), + 'amount_without_vat': json['amount_without_vat'] == null ? undefined : (0, MoneyMoneySupplyActAmountWithoutVat_1.MoneyMoneySupplyActAmountWithoutVatFromJSON)(json['amount_without_vat']), + }; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': (0, MoneyMoneySupplyActAmount_1.MoneyMoneySupplyActAmountToJSON)(value['amount']), + 'amount_vat': (0, MoneyMoneySupplyActAmountVat_1.MoneyMoneySupplyActAmountVatToJSON)(value['amount_vat']), + 'amount_without_vat': (0, MoneyMoneySupplyActAmountWithoutVat_1.MoneyMoneySupplyActAmountWithoutVatToJSON)(value['amount_without_vat']), + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.d.ts new file mode 100644 index 0000000..125b741 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySupplyActAmount } from './MoneyMoneySupplyActAmount'; +import type { MoneyMoneySupplyActAmountVat } from './MoneyMoneySupplyActAmountVat'; +import type { MoneyMoneySupplyActAmountWithoutVat } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Фактическая стоимость товаров. + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount { + /** + * + * @type {MoneyMoneySupplyActAmount} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount + */ + amount?: MoneyMoneySupplyActAmount; + /** + * + * @type {MoneyMoneySupplyActAmountVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount + */ + amount_vat?: MoneyMoneySupplyActAmountVat; + /** + * + * @type {MoneyMoneySupplyActAmountWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount + */ + amount_without_vat?: MoneyMoneySupplyActAmountWithoutVat; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.js new file mode 100644 index 0000000..d1db13d --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount = instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON; +const MoneyMoneySupplyActAmount_1 = require("./MoneyMoneySupplyActAmount"); +const MoneyMoneySupplyActAmountVat_1 = require("./MoneyMoneySupplyActAmountVat"); +const MoneyMoneySupplyActAmountWithoutVat_1 = require("./MoneyMoneySupplyActAmountWithoutVat"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount(value) { + return true; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : (0, MoneyMoneySupplyActAmount_1.MoneyMoneySupplyActAmountFromJSON)(json['amount']), + 'amount_vat': json['amount_vat'] == null ? undefined : (0, MoneyMoneySupplyActAmountVat_1.MoneyMoneySupplyActAmountVatFromJSON)(json['amount_vat']), + 'amount_without_vat': json['amount_without_vat'] == null ? undefined : (0, MoneyMoneySupplyActAmountWithoutVat_1.MoneyMoneySupplyActAmountWithoutVatFromJSON)(json['amount_without_vat']), + }; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': (0, MoneyMoneySupplyActAmount_1.MoneyMoneySupplyActAmountToJSON)(value['amount']), + 'amount_vat': (0, MoneyMoneySupplyActAmountVat_1.MoneyMoneySupplyActAmountVatToJSON)(value['amount_vat']), + 'amount_without_vat': (0, MoneyMoneySupplyActAmountWithoutVat_1.MoneyMoneySupplyActAmountWithoutVatToJSON)(value['amount_without_vat']), + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.d.ts new file mode 100644 index 0000000..8f347ff --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneyPriceWithoutVat } from './MoneyMoneyPriceWithoutVat'; +/** + * Информация о товаре. + * @export + * @interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ +export interface SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo { + /** + * Штрихкод товара. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + image_link?: string; + /** + * Название товара. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + offer_id?: string; + /** + * + * @type {MoneyMoneyPriceWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + price_without_vat?: MoneyMoneyPriceWithoutVat; + /** + * Идентификатор товара. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + sku?: number; + /** + * Ставка НДС. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo + */ + vat?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo(value: object): value is SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.js new file mode 100644 index 0000000..43edf72 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo = instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON; +const MoneyMoneyPriceWithoutVat_1 = require("./MoneyMoneyPriceWithoutVat"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo(value) { + return true; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'image_link': json['image_link'] == null ? undefined : json['image_link'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price_without_vat': json['price_without_vat'] == null ? undefined : (0, MoneyMoneyPriceWithoutVat_1.MoneyMoneyPriceWithoutVatFromJSON)(json['price_without_vat']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'vat': json['vat'] == null ? undefined : json['vat'], + }; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'image_link': value['image_link'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price_without_vat': (0, MoneyMoneyPriceWithoutVat_1.MoneyMoneyPriceWithoutVatToJSON)(value['price_without_vat']), + 'sku': value['sku'], + 'vat': value['vat'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.d.ts b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.d.ts new file mode 100644 index 0000000..f45317d --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акта: + * - `UNSPECIFIED` — не определён; + * - `ACCEPTANCE` — акт приёмки; + * - `DEFECT` — акт о браке; + * - `SURPLUS` — акт об излишках; + * - `SHORTCOMING` — акт о недостаче. + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ACCEPTANCE: "ACCEPTANCE"; + readonly DEFECT: "DEFECT"; + readonly SURPLUS: "SURPLUS"; + readonly SHORTCOMING: "SHORTCOMING"; +}; +export type SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum = typeof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum[keyof typeof SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum; +export declare function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON(value?: SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.js b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.js new file mode 100644 index 0000000..368cc1d --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum = void 0; +exports.instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum = instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSONTyped = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON = SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON; +/** + * Тип акта: + * - `UNSPECIFIED` — не определён; + * - `ACCEPTANCE` — акт приёмки; + * - `DEFECT` — акт о браке; + * - `SURPLUS` — акт об излишках; + * - `SHORTCOMING` — акт о недостаче. + * + * @export + */ +exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ACCEPTANCE: 'ACCEPTANCE', + DEFECT: 'DEFECT', + SURPLUS: 'SURPLUS', + SHORTCOMING: 'SHORTCOMING' +}; +function instanceOfSupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum(value) { + for (const key in exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum, key)) { + if (exports.SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.d.ts new file mode 100644 index 0000000..594b6f8 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetRequest + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetRequest { + /** + * Идентификатор заявки на поставку из метода [/v3/supply-order/list](#operation/SupplyOrderList). + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetRequest + */ + order_id: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetRequest interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetRequest(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetRequest; +export declare function SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetRequest; +export declare function SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetRequest; +export declare function SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetRequest | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.js new file mode 100644 index 0000000..4320f13 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetRequest = instanceOfSupplyOrderV1SupplyOrderActSummaryGetRequest; +exports.SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSON = SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON = SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON; +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetRequest interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +function SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +function SupplyOrderV1SupplyOrderActSummaryGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.d.ts new file mode 100644 index 0000000..8b1f8d3 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponse + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponse { + /** + * Список актов. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponse + */ + supplies_acts?: Array; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponse interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponse(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponse; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponse; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponse; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponse | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.js new file mode 100644 index 0000000..be9451e --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponse = instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponse; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseToJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseToJSON; +const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs_1 = require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponse interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponse(value) { + return true; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supplies_acts': json['supplies_acts'] == null ? undefined : (json['supplies_acts'].map(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON)), + }; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'supplies_acts': value['supplies_acts'] == null ? undefined : (value['supplies_acts'].map(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON)), + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.d.ts new file mode 100644 index 0000000..f937c2b --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs { + /** + * `true`, если все акты согласованы. + * + * @type {boolean} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs + */ + is_agreement_completed?: boolean; + /** + * Информация об актах. + * @type {Array} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs + */ + supply_acts?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs + */ + supply_id?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.js new file mode 100644 index 0000000..dd1cf6f --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs = instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON; +const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs_1 = require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs(value) { + return true; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_agreement_completed': json['is_agreement_completed'] == null ? undefined : json['is_agreement_completed'], + 'supply_acts': json['supply_acts'] == null ? undefined : (json['supply_acts'].map(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON)), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_agreement_completed': value['is_agreement_completed'], + 'supply_acts': value['supply_acts'] == null ? undefined : (value['supply_acts'].map(SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON)), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.d.ts new file mode 100644 index 0000000..66ea27d --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum'; +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum'; +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary'; +/** + * + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs { + /** + * Идентификатор акта. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + act_id?: number; + /** + * Номер акта. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + act_number?: string; + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + act_state?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum; + /** + * Дата создания акта. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + created_date?: string; + /** + * Дата и время, до которой можно работать с актом. + * @type {string} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + deadline_utc?: string; + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + summary?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs + */ + type?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.js new file mode 100644 index 0000000..5f27939 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs = instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON; +const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum_1 = require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum"); +const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum_1 = require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum"); +const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary_1 = require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs(value) { + return true; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_id': json['act_id'] == null ? undefined : json['act_id'], + 'act_number': json['act_number'] == null ? undefined : json['act_number'], + 'act_state': json['act_state'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON)(json['act_state']), + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'deadline_utc': json['deadline_utc'] == null ? undefined : json['deadline_utc'], + 'summary': json['summary'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON)(json['summary']), + 'type': json['type'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON)(json['type']), + }; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_id': value['act_id'], + 'act_number': value['act_number'], + 'act_state': (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON)(value['act_state']), + 'created_date': value['created_date'], + 'deadline_utc': value['deadline_utc'], + 'summary': (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON)(value['summary']), + 'type': (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.d.ts new file mode 100644 index 0000000..51409a7 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус акта: + * - `UNSPECIFIED` — не определён; + * - `AWAITING_APPROVAL_BY_SELLER` — ожидает согласования продавца; + * - `REJECT_BY_SELLER` — отклонён продавцом; + * - `AGREEMENT_WITH_SELLER` — согласован продавцом; + * - `ACCEPTED` — согласование завершено. + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly AWAITING_APPROVAL_BY_SELLER: "AWAITING_APPROVAL_BY_SELLER"; + readonly REJECT_BY_SELLER: "REJECT_BY_SELLER"; + readonly AGREEMENT_WITH_SELLER: "AGREEMENT_WITH_SELLER"; + readonly ACCEPTED: "ACCEPTED"; +}; +export type SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum = typeof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum[keyof typeof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.js new file mode 100644 index 0000000..d1b4ced --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum = void 0; +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum = instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON; +/** + * Статус акта: + * - `UNSPECIFIED` — не определён; + * - `AWAITING_APPROVAL_BY_SELLER` — ожидает согласования продавца; + * - `REJECT_BY_SELLER` — отклонён продавцом; + * - `AGREEMENT_WITH_SELLER` — согласован продавцом; + * - `ACCEPTED` — согласование завершено. + * + * @export + */ +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + AWAITING_APPROVAL_BY_SELLER: 'AWAITING_APPROVAL_BY_SELLER', + REJECT_BY_SELLER: 'REJECT_BY_SELLER', + AGREEMENT_WITH_SELLER: 'AGREEMENT_WITH_SELLER', + ACCEPTED: 'ACCEPTED' +}; +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum(value) { + for (const key in exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum, key)) { + if (exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.d.ts new file mode 100644 index 0000000..43f0890 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount'; +import type { SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount } from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount'; +/** + * Информация о товарах в акте. + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary { + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + approved_amount?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; + /** + * Количество согласованных товаров. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + approved_quantity?: number; + /** + * Количество заявленных товаров. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + declared_quantity?: number; + /** + * + * @type {SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + fact_amount?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; + /** + * Количество принятых товаров. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + fact_quantity?: number; + /** + * Общее количество товаров. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + sku_quantity?: number; + /** + * Количество неопознанных излишков. + * @type {number} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary + */ + unidentified_quantity?: number; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.js new file mode 100644 index 0000000..bbfcb19 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary = instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON; +const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount_1 = require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount"); +const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount_1 = require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary(value) { + return true; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_amount': json['approved_amount'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON)(json['approved_amount']), + 'approved_quantity': json['approved_quantity'] == null ? undefined : json['approved_quantity'], + 'declared_quantity': json['declared_quantity'] == null ? undefined : json['declared_quantity'], + 'fact_amount': json['fact_amount'] == null ? undefined : (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON)(json['fact_amount']), + 'fact_quantity': json['fact_quantity'] == null ? undefined : json['fact_quantity'], + 'sku_quantity': json['sku_quantity'] == null ? undefined : json['sku_quantity'], + 'unidentified_quantity': json['unidentified_quantity'] == null ? undefined : json['unidentified_quantity'], + }; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_amount': (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON)(value['approved_amount']), + 'approved_quantity': value['approved_quantity'], + 'declared_quantity': value['declared_quantity'], + 'fact_amount': (0, SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount_1.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON)(value['fact_amount']), + 'fact_quantity': value['fact_quantity'], + 'sku_quantity': value['sku_quantity'], + 'unidentified_quantity': value['unidentified_quantity'], + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.d.ts new file mode 100644 index 0000000..18484f7 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySupplyActAmount } from './MoneyMoneySupplyActAmount'; +import type { MoneyMoneySupplyActAmountVat } from './MoneyMoneySupplyActAmountVat'; +import type { MoneyMoneySupplyActAmountWithoutVat } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Согласованная стоимость товаров. + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount { + /** + * + * @type {MoneyMoneySupplyActAmount} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount + */ + amount?: MoneyMoneySupplyActAmount; + /** + * + * @type {MoneyMoneySupplyActAmountVat} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount + */ + amount_vat?: MoneyMoneySupplyActAmountVat; + /** + * + * @type {MoneyMoneySupplyActAmountWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount + */ + amount_without_vat?: MoneyMoneySupplyActAmountWithoutVat; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.js new file mode 100644 index 0000000..a6f12c1 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount = instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON; +const MoneyMoneySupplyActAmount_1 = require("./MoneyMoneySupplyActAmount"); +const MoneyMoneySupplyActAmountVat_1 = require("./MoneyMoneySupplyActAmountVat"); +const MoneyMoneySupplyActAmountWithoutVat_1 = require("./MoneyMoneySupplyActAmountWithoutVat"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount(value) { + return true; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : (0, MoneyMoneySupplyActAmount_1.MoneyMoneySupplyActAmountFromJSON)(json['amount']), + 'amount_vat': json['amount_vat'] == null ? undefined : (0, MoneyMoneySupplyActAmountVat_1.MoneyMoneySupplyActAmountVatFromJSON)(json['amount_vat']), + 'amount_without_vat': json['amount_without_vat'] == null ? undefined : (0, MoneyMoneySupplyActAmountWithoutVat_1.MoneyMoneySupplyActAmountWithoutVatFromJSON)(json['amount_without_vat']), + }; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': (0, MoneyMoneySupplyActAmount_1.MoneyMoneySupplyActAmountToJSON)(value['amount']), + 'amount_vat': (0, MoneyMoneySupplyActAmountVat_1.MoneyMoneySupplyActAmountVatToJSON)(value['amount_vat']), + 'amount_without_vat': (0, MoneyMoneySupplyActAmountWithoutVat_1.MoneyMoneySupplyActAmountWithoutVatToJSON)(value['amount_without_vat']), + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.d.ts new file mode 100644 index 0000000..0086a00 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoneySupplyActAmount } from './MoneyMoneySupplyActAmount'; +import type { MoneyMoneySupplyActAmountVat } from './MoneyMoneySupplyActAmountVat'; +import type { MoneyMoneySupplyActAmountWithoutVat } from './MoneyMoneySupplyActAmountWithoutVat'; +/** + * Фактическая стоимость товаров. + * @export + * @interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount + */ +export interface SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount { + /** + * + * @type {MoneyMoneySupplyActAmount} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount + */ + amount?: MoneyMoneySupplyActAmount; + /** + * + * @type {MoneyMoneySupplyActAmountVat} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount + */ + amount_vat?: MoneyMoneySupplyActAmountVat; + /** + * + * @type {MoneyMoneySupplyActAmountWithoutVat} + * @memberof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount + */ + amount_without_vat?: MoneyMoneySupplyActAmountWithoutVat; +} +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount interface. + */ +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount(value: object): value is SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.js new file mode 100644 index 0000000..18678fc --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount = instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON; +const MoneyMoneySupplyActAmount_1 = require("./MoneyMoneySupplyActAmount"); +const MoneyMoneySupplyActAmountVat_1 = require("./MoneyMoneySupplyActAmountVat"); +const MoneyMoneySupplyActAmountWithoutVat_1 = require("./MoneyMoneySupplyActAmountWithoutVat"); +/** + * Check if a given object implements the SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount interface. + */ +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount(value) { + return true; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : (0, MoneyMoneySupplyActAmount_1.MoneyMoneySupplyActAmountFromJSON)(json['amount']), + 'amount_vat': json['amount_vat'] == null ? undefined : (0, MoneyMoneySupplyActAmountVat_1.MoneyMoneySupplyActAmountVatFromJSON)(json['amount_vat']), + 'amount_without_vat': json['amount_without_vat'] == null ? undefined : (0, MoneyMoneySupplyActAmountWithoutVat_1.MoneyMoneySupplyActAmountWithoutVatFromJSON)(json['amount_without_vat']), + }; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmountToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': (0, MoneyMoneySupplyActAmount_1.MoneyMoneySupplyActAmountToJSON)(value['amount']), + 'amount_vat': (0, MoneyMoneySupplyActAmountVat_1.MoneyMoneySupplyActAmountVatToJSON)(value['amount_vat']), + 'amount_without_vat': (0, MoneyMoneySupplyActAmountWithoutVat_1.MoneyMoneySupplyActAmountWithoutVatToJSON)(value['amount_without_vat']), + }; +} diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.d.ts b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.d.ts new file mode 100644 index 0000000..ae9e660 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акта: + * - `UNSPECIFIED` — не определён; + * - `ACCEPTANCE` — акт приёмки; + * - `DEFECT` — акт о браке; + * - `SURPLUS` — акт об излишках; + * - `SHORTCOMING` — акт о недостаче. + * + * @export + */ +export declare const SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ACCEPTANCE: "ACCEPTANCE"; + readonly DEFECT: "DEFECT"; + readonly SURPLUS: "SURPLUS"; + readonly SHORTCOMING: "SHORTCOMING"; +}; +export type SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum = typeof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum[keyof typeof SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum]; +export declare function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum(value: any): boolean; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON(json: any): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum; +export declare function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON(value?: SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum | null): any; diff --git a/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.js b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.js new file mode 100644 index 0000000..d37dc80 --- /dev/null +++ b/dist/models/SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum = void 0; +exports.instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum = instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSONTyped = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSONTyped; +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON = SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON; +/** + * Тип акта: + * - `UNSPECIFIED` — не определён; + * - `ACCEPTANCE` — акт приёмки; + * - `DEFECT` — акт о браке; + * - `SURPLUS` — акт об излишках; + * - `SHORTCOMING` — акт о недостаче. + * + * @export + */ +exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ACCEPTANCE: 'ACCEPTANCE', + DEFECT: 'DEFECT', + SURPLUS: 'SURPLUS', + SHORTCOMING: 'SHORTCOMING' +}; +function instanceOfSupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum(value) { + for (const key in exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum, key)) { + if (exports.SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSON(json) { + return SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSONTyped(json, false); +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListRequest.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListRequest.d.ts new file mode 100644 index 0000000..39a9e29 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListRequest + */ +export interface SupplyOrderV2SupplyOrderTimeslotListRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListRequest + */ + order_id: number; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListRequest interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListRequest(value: object): value is SupplyOrderV2SupplyOrderTimeslotListRequest; +export declare function SupplyOrderV2SupplyOrderTimeslotListRequestFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListRequest; +export declare function SupplyOrderV2SupplyOrderTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListRequest; +export declare function SupplyOrderV2SupplyOrderTimeslotListRequestToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListRequest | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListRequest.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListRequest.js new file mode 100644 index 0000000..21169df --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListRequest = instanceOfSupplyOrderV2SupplyOrderTimeslotListRequest; +exports.SupplyOrderV2SupplyOrderTimeslotListRequestFromJSON = SupplyOrderV2SupplyOrderTimeslotListRequestFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListRequestFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListRequestFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListRequestToJSON = SupplyOrderV2SupplyOrderTimeslotListRequestToJSON; +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListRequest interface. + */ +function instanceOfSupplyOrderV2SupplyOrderTimeslotListRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +function SupplyOrderV2SupplyOrderTimeslotListRequestFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListRequestFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +function SupplyOrderV2SupplyOrderTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponse.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponse.d.ts new file mode 100644 index 0000000..8359f1c --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded } from './SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded'; +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo'; +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden'; +/** + * + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponse + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponse { + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponse + */ + limit_exceeded?: SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponse + */ + timeslot_change_forbidden?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponse + */ + timeslots_info?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponse interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponse(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponse; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponse; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponse; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponse | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponse.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponse.js new file mode 100644 index 0000000..50001e0 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListResponse = instanceOfSupplyOrderV2SupplyOrderTimeslotListResponse; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON = SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListResponseFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseToJSON = SupplyOrderV2SupplyOrderTimeslotListResponseToJSON; +const SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded_1 = require("./SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded"); +const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo_1 = require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo"); +const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden_1 = require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden"); +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponse interface. + */ +function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponse(value) { + return true; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit_exceeded': json['limit_exceeded'] == null ? undefined : (0, SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded_1.SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON)(json['limit_exceeded']), + 'timeslot_change_forbidden': json['timeslot_change_forbidden'] == null ? undefined : (0, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON)(json['timeslot_change_forbidden']), + 'timeslots_info': json['timeslots_info'] == null ? undefined : (0, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON)(json['timeslots_info']), + }; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit_exceeded': (0, SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded_1.SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON)(value['limit_exceeded']), + 'timeslot_change_forbidden': (0, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON)(value['timeslot_change_forbidden']), + 'timeslots_info': (0, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON)(value['timeslots_info']), + }; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.d.ts new file mode 100644 index 0000000..d71358c --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о превышении лимита изменений интервала поставки. + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded { + /** + * Остаток доступных изменений интервала поставки. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded + */ + changes_limit?: number; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.js new file mode 100644 index 0000000..11c54c4 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded = instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON = SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON = SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON; +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded interface. + */ +function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded(value) { + return true; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'changes_limit': json['changes_limit'] == null ? undefined : json['changes_limit'], + }; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceededToJSON(value) { + if (value == null) { + return value; + } + return { + 'changes_limit': value['changes_limit'], + }; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.d.ts new file mode 100644 index 0000000..b1960b4 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum'; +/** + * Информация о причинах, по которым нельзя изменить интервал поставки. + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden { + /** + * Причина, по которой нельзя изменить интервал поставки: + * - `INVALID_ORDER_STATE` — неверный статус заявки на поставку; + * - `IS_VIRTUAL` — заявка на поставку виртуальная; + * - `SET_TIMESLOT_DEADLINE_EXCEED` — заявка на поставку просрочена; + * - `ORDER_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу. + * + * @type {Array} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.js new file mode 100644 index 0000000..84bd903 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden = instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON; +const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum_1 = require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum"); +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden interface. + */ +function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden(value) { + return true; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON)), + }; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON)), + }; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.d.ts new file mode 100644 index 0000000..5348bd7 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.d.ts @@ -0,0 +1,26 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum: { + readonly INVALID_ORDER_STATE: "INVALID_ORDER_STATE"; + readonly IS_VIRTUAL: "IS_VIRTUAL"; + readonly SET_TIMESLOT_DEADLINE_EXCEED: "SET_TIMESLOT_DEADLINE_EXCEED"; + readonly ORDER_DOES_NOT_BELONG_TO_COMPANY: "ORDER_DOES_NOT_BELONG_TO_COMPANY"; +}; +export type SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum = typeof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum[keyof typeof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum]; +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum(value: any): boolean; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.js new file mode 100644 index 0000000..540aac6 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum = void 0; +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum = instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON; +/** + * + * @export + */ +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum = { + INVALID_ORDER_STATE: 'INVALID_ORDER_STATE', + IS_VIRTUAL: 'IS_VIRTUAL', + SET_TIMESLOT_DEADLINE_EXCEED: 'SET_TIMESLOT_DEADLINE_EXCEED', + ORDER_DOES_NOT_BELONG_TO_COMPANY: 'ORDER_DOES_NOT_BELONG_TO_COMPANY' +}; +function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum(value) { + for (const key in exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum, key)) { + if (exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.d.ts new file mode 100644 index 0000000..21023ba --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone'; +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots'; +import type { SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations } from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations'; +/** + * Информация об интервалах поставки. + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo { + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo + */ + limitations?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; + /** + * Список интервалов поставки. + * @type {Array} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo + */ + timeslots?: Array; + /** + * + * @type {SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo + */ + timezone?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.js new file mode 100644 index 0000000..aa878cd --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo = instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON; +const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone_1 = require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone"); +const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots_1 = require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots"); +const SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations_1 = require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations"); +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo interface. + */ +function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo(value) { + return true; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limitations': json['limitations'] == null ? undefined : (0, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON)(json['limitations']), + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON)), + 'timezone': json['timezone'] == null ? undefined : (0, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON)(json['timezone']), + }; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'limitations': (0, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON)(value['limitations']), + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON)), + 'timezone': (0, SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone_1.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON)(value['timezone']), + }; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.d.ts new file mode 100644 index 0000000..27dff5d --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ограничения на обновления интервала поставки. + * + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations { + /** + * Количество изменений интервала поставки. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations + */ + changes_count?: number; + /** + * Остаток доступных изменений интервала поставки. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations + */ + changes_limit?: number; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.js new file mode 100644 index 0000000..617c355 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations = instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON; +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations interface. + */ +function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations(value) { + return true; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'changes_count': json['changes_count'] == null ? undefined : json['changes_count'], + 'changes_limit': json['changes_limit'] == null ? undefined : json['changes_limit'], + }; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitationsToJSON(value) { + if (value == null) { + return value; + } + return { + 'changes_count': value['changes_count'], + 'changes_limit': value['changes_limit'], + }; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.d.ts new file mode 100644 index 0000000..986ba65 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots { + /** + * Начало интервала по местному времени. + * @type {string} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots + */ + from?: string; + /** + * Конец интервала по местному времени. + * @type {string} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots + */ + to?: string; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.js new file mode 100644 index 0000000..548cc5f --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots = instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON; +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots interface. + */ +function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots(value) { + return true; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslotsToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.d.ts b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.d.ts new file mode 100644 index 0000000..eba30d5 --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone + */ +export interface SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone { + /** + * Название часового пояса. + * @type {string} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {number} + * @memberof SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone + */ + offset?: number; +} +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone interface. + */ +export declare function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone(value: object): value is SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON(json: any): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +export declare function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON(value?: SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone | null): any; diff --git a/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.js b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.js new file mode 100644 index 0000000..9e20bdb --- /dev/null +++ b/dist/models/SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone = instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSONTyped = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSONTyped; +exports.SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON = SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON; +/** + * Check if a given object implements the SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone interface. + */ +function instanceOfSupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone(value) { + return true; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSON(json) { + return SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSONTyped(json, false); +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezoneToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/SupplyOverdueReasonEnum.d.ts b/dist/models/SupplyOverdueReasonEnum.d.ts new file mode 100644 index 0000000..3a6c95c --- /dev/null +++ b/dist/models/SupplyOverdueReasonEnum.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина просрочки поставки: + * - `UNSPECIFIED` — не определена; + * - `ORDER_TIMESLOT_EXPIRED` — поставка не доставлена в указанный таймслот; + * - `ORDER_TIMESLOT_NOT_SELECTED` — таймслот не указан вовремя; + * - `NOT_READY_FOR_PICKUP` — пикап-поставка не приведена в статус `ReadyToSupply` вовремя; + * - `PICKUP_FAILED` — курьер не смог забрать поставку; + * - `UNDEFINED` — неизвестная. + * + * @export + */ +export declare const SupplyOverdueReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ORDER_TIMESLOT_EXPIRED: "ORDER_TIMESLOT_EXPIRED"; + readonly ORDER_TIMESLOT_NOT_SELECTED: "ORDER_TIMESLOT_NOT_SELECTED"; + readonly NOT_READY_FOR_PICKUP: "NOT_READY_FOR_PICKUP"; + readonly PICKUP_FAILED: "PICKUP_FAILED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type SupplyOverdueReasonEnum = typeof SupplyOverdueReasonEnum[keyof typeof SupplyOverdueReasonEnum]; +export declare function instanceOfSupplyOverdueReasonEnum(value: any): boolean; +export declare function SupplyOverdueReasonEnumFromJSON(json: any): SupplyOverdueReasonEnum; +export declare function SupplyOverdueReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyOverdueReasonEnum; +export declare function SupplyOverdueReasonEnumToJSON(value?: SupplyOverdueReasonEnum | null): any; diff --git a/dist/models/SupplyOverdueReasonEnum.js b/dist/models/SupplyOverdueReasonEnum.js new file mode 100644 index 0000000..a0df2f9 --- /dev/null +++ b/dist/models/SupplyOverdueReasonEnum.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyOverdueReasonEnum = void 0; +exports.instanceOfSupplyOverdueReasonEnum = instanceOfSupplyOverdueReasonEnum; +exports.SupplyOverdueReasonEnumFromJSON = SupplyOverdueReasonEnumFromJSON; +exports.SupplyOverdueReasonEnumFromJSONTyped = SupplyOverdueReasonEnumFromJSONTyped; +exports.SupplyOverdueReasonEnumToJSON = SupplyOverdueReasonEnumToJSON; +/** + * Причина просрочки поставки: + * - `UNSPECIFIED` — не определена; + * - `ORDER_TIMESLOT_EXPIRED` — поставка не доставлена в указанный таймслот; + * - `ORDER_TIMESLOT_NOT_SELECTED` — таймслот не указан вовремя; + * - `NOT_READY_FOR_PICKUP` — пикап-поставка не приведена в статус `ReadyToSupply` вовремя; + * - `PICKUP_FAILED` — курьер не смог забрать поставку; + * - `UNDEFINED` — неизвестная. + * + * @export + */ +exports.SupplyOverdueReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ORDER_TIMESLOT_EXPIRED: 'ORDER_TIMESLOT_EXPIRED', + ORDER_TIMESLOT_NOT_SELECTED: 'ORDER_TIMESLOT_NOT_SELECTED', + NOT_READY_FOR_PICKUP: 'NOT_READY_FOR_PICKUP', + PICKUP_FAILED: 'PICKUP_FAILED', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfSupplyOverdueReasonEnum(value) { + for (const key in exports.SupplyOverdueReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyOverdueReasonEnum, key)) { + if (exports.SupplyOverdueReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyOverdueReasonEnumFromJSON(json) { + return SupplyOverdueReasonEnumFromJSONTyped(json, false); +} +function SupplyOverdueReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyOverdueReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyStateEnum.d.ts b/dist/models/SupplyStateEnum.d.ts new file mode 100644 index 0000000..63705d6 --- /dev/null +++ b/dist/models/SupplyStateEnum.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — не указан; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTED_AT_STORAGE_WAREHOUSE` — принята на складе хранения; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +export declare const SupplyStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly DATA_FILLING: "DATA_FILLING"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "IN_TRANSIT"; + readonly ACCEPTED_AT_STORAGE_WAREHOUSE: "ACCEPTED_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "REPORT_REJECTED"; + readonly COMPLETED: "COMPLETED"; + readonly CANCELLED: "CANCELLED"; + readonly OVERDUE: "OVERDUE"; +}; +export type SupplyStateEnum = typeof SupplyStateEnum[keyof typeof SupplyStateEnum]; +export declare function instanceOfSupplyStateEnum(value: any): boolean; +export declare function SupplyStateEnumFromJSON(json: any): SupplyStateEnum; +export declare function SupplyStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyStateEnum; +export declare function SupplyStateEnumToJSON(value?: SupplyStateEnum | null): any; diff --git a/dist/models/SupplyStateEnum.js b/dist/models/SupplyStateEnum.js new file mode 100644 index 0000000..a0c096e --- /dev/null +++ b/dist/models/SupplyStateEnum.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupplyStateEnum = void 0; +exports.instanceOfSupplyStateEnum = instanceOfSupplyStateEnum; +exports.SupplyStateEnumFromJSON = SupplyStateEnumFromJSON; +exports.SupplyStateEnumFromJSONTyped = SupplyStateEnumFromJSONTyped; +exports.SupplyStateEnumToJSON = SupplyStateEnumToJSON; +/** + * Статус поставки: + * - `UNSPECIFIED` — не указан; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTED_AT_STORAGE_WAREHOUSE` — принята на складе хранения; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `CANCELLED` — отменена; + * - `OVERDUE` — просрочена. + * + * @export + */ +exports.SupplyStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + DATA_FILLING: 'DATA_FILLING', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ACCEPTED_AT_SUPPLY_WAREHOUSE', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'IN_TRANSIT', + ACCEPTED_AT_STORAGE_WAREHOUSE: 'ACCEPTED_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'REPORT_REJECTED', + COMPLETED: 'COMPLETED', + CANCELLED: 'CANCELLED', + OVERDUE: 'OVERDUE' +}; +function instanceOfSupplyStateEnum(value) { + for (const key in exports.SupplyStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.SupplyStateEnum, key)) { + if (exports.SupplyStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function SupplyStateEnumFromJSON(json) { + return SupplyStateEnumFromJSONTyped(json, false); +} +function SupplyStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SupplyStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/SupplyStorageWarehouse.d.ts b/dist/models/SupplyStorageWarehouse.d.ts new file mode 100644 index 0000000..9dab7ea --- /dev/null +++ b/dist/models/SupplyStorageWarehouse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад хранения для поставок с типом `DIRECT`. + * @export + * @interface SupplyStorageWarehouse + */ +export interface SupplyStorageWarehouse { + /** + * Адрес склада хранения. + * @type {string} + * @memberof SupplyStorageWarehouse + */ + address?: string; + /** + * Дата прибытия на склад хранения. + * @type {string} + * @memberof SupplyStorageWarehouse + * @deprecated + */ + arrival_date?: string; + /** + * Название склада хранения. + * @type {string} + * @memberof SupplyStorageWarehouse + */ + name?: string; + /** + * Идентификатор склада хранения. + * @type {number} + * @memberof SupplyStorageWarehouse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the SupplyStorageWarehouse interface. + */ +export declare function instanceOfSupplyStorageWarehouse(value: object): value is SupplyStorageWarehouse; +export declare function SupplyStorageWarehouseFromJSON(json: any): SupplyStorageWarehouse; +export declare function SupplyStorageWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyStorageWarehouse; +export declare function SupplyStorageWarehouseToJSON(value?: SupplyStorageWarehouse | null): any; diff --git a/dist/models/SupplyStorageWarehouse.js b/dist/models/SupplyStorageWarehouse.js new file mode 100644 index 0000000..72e4b13 --- /dev/null +++ b/dist/models/SupplyStorageWarehouse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyStorageWarehouse = instanceOfSupplyStorageWarehouse; +exports.SupplyStorageWarehouseFromJSON = SupplyStorageWarehouseFromJSON; +exports.SupplyStorageWarehouseFromJSONTyped = SupplyStorageWarehouseFromJSONTyped; +exports.SupplyStorageWarehouseToJSON = SupplyStorageWarehouseToJSON; +/** + * Check if a given object implements the SupplyStorageWarehouse interface. + */ +function instanceOfSupplyStorageWarehouse(value) { + return true; +} +function SupplyStorageWarehouseFromJSON(json) { + return SupplyStorageWarehouseFromJSONTyped(json, false); +} +function SupplyStorageWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'arrival_date': json['arrival_date'] == null ? undefined : json['arrival_date'], + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function SupplyStorageWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'arrival_date': value['arrival_date'], + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/SupplySupplyTags.d.ts b/dist/models/SupplySupplyTags.d.ts new file mode 100644 index 0000000..6b3d52b --- /dev/null +++ b/dist/models/SupplySupplyTags.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метки поставки. + * @export + * @interface SupplySupplyTags + */ +export interface SupplySupplyTags { + /** + * `true`, если включена схема поставки товаров с заморозкой стока. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + freeze_stock_for_marking?: boolean; + /** + * `true`, если для поставки нужна электронная ТТН. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_ettn_required?: boolean; + /** + * `true`, если в поставке есть товары с сертификацией в системе «Меркурий». + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_evsd_required?: boolean; + /** + * `true`, если в поставке есть ювелирные товары. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_jewelry?: boolean; + /** + * `true`, если в поставке есть товары, для которых возможна маркировка. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_marking_possible?: boolean; + /** + * `true`, если в поставке есть товары, для которых маркировка обязательна. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_marking_required?: boolean; + /** + * `true`, если для поставки нужно передать УПД. + * + * @type {boolean} + * @memberof SupplySupplyTags + */ + is_utd?: boolean; +} +/** + * Check if a given object implements the SupplySupplyTags interface. + */ +export declare function instanceOfSupplySupplyTags(value: object): value is SupplySupplyTags; +export declare function SupplySupplyTagsFromJSON(json: any): SupplySupplyTags; +export declare function SupplySupplyTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplySupplyTags; +export declare function SupplySupplyTagsToJSON(value?: SupplySupplyTags | null): any; diff --git a/dist/models/SupplySupplyTags.js b/dist/models/SupplySupplyTags.js new file mode 100644 index 0000000..9238aef --- /dev/null +++ b/dist/models/SupplySupplyTags.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplySupplyTags = instanceOfSupplySupplyTags; +exports.SupplySupplyTagsFromJSON = SupplySupplyTagsFromJSON; +exports.SupplySupplyTagsFromJSONTyped = SupplySupplyTagsFromJSONTyped; +exports.SupplySupplyTagsToJSON = SupplySupplyTagsToJSON; +/** + * Check if a given object implements the SupplySupplyTags interface. + */ +function instanceOfSupplySupplyTags(value) { + return true; +} +function SupplySupplyTagsFromJSON(json) { + return SupplySupplyTagsFromJSONTyped(json, false); +} +function SupplySupplyTagsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'freeze_stock_for_marking': json['freeze_stock_for_marking'] == null ? undefined : json['freeze_stock_for_marking'], + 'is_ettn_required': json['is_ettn_required'] == null ? undefined : json['is_ettn_required'], + 'is_evsd_required': json['is_evsd_required'] == null ? undefined : json['is_evsd_required'], + 'is_jewelry': json['is_jewelry'] == null ? undefined : json['is_jewelry'], + 'is_marking_possible': json['is_marking_possible'] == null ? undefined : json['is_marking_possible'], + 'is_marking_required': json['is_marking_required'] == null ? undefined : json['is_marking_required'], + 'is_utd': json['is_utd'] == null ? undefined : json['is_utd'], + }; +} +function SupplySupplyTagsToJSON(value) { + if (value == null) { + return value; + } + return { + 'freeze_stock_for_marking': value['freeze_stock_for_marking'], + 'is_ettn_required': value['is_ettn_required'], + 'is_evsd_required': value['is_evsd_required'], + 'is_jewelry': value['is_jewelry'], + 'is_marking_possible': value['is_marking_possible'], + 'is_marking_required': value['is_marking_required'], + 'is_utd': value['is_utd'], + }; +} diff --git a/dist/models/SupplyTags.d.ts b/dist/models/SupplyTags.d.ts new file mode 100644 index 0000000..ea52360 --- /dev/null +++ b/dist/models/SupplyTags.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метки поставки. + * @export + * @interface SupplyTags + */ +export interface SupplyTags { + /** + * `true`, если для поставки нужна электронная ТТН. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_ettn_required?: boolean; + /** + * `true`, если в поставке есть товары с сертификацией в системе «Меркурий». + * + * @type {boolean} + * @memberof SupplyTags + */ + is_evsd_required?: boolean; + /** + * `true`, если в поставке есть ювелирные товары. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_jewelry?: boolean; + /** + * `true`, если в поставке есть товары, для которых возможна маркировка. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_marking_possible?: boolean; + /** + * `true`, если в поставке есть товары, для которых маркировка обязательна. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_marking_required?: boolean; + /** + * `true`, если для поставки нужно передать УПД. + * + * @type {boolean} + * @memberof SupplyTags + */ + is_utd?: boolean; +} +/** + * Check if a given object implements the SupplyTags interface. + */ +export declare function instanceOfSupplyTags(value: object): value is SupplyTags; +export declare function SupplyTagsFromJSON(json: any): SupplyTags; +export declare function SupplyTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplyTags; +export declare function SupplyTagsToJSON(value?: SupplyTags | null): any; diff --git a/dist/models/SupplyTags.js b/dist/models/SupplyTags.js new file mode 100644 index 0000000..9806878 --- /dev/null +++ b/dist/models/SupplyTags.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSupplyTags = instanceOfSupplyTags; +exports.SupplyTagsFromJSON = SupplyTagsFromJSON; +exports.SupplyTagsFromJSONTyped = SupplyTagsFromJSONTyped; +exports.SupplyTagsToJSON = SupplyTagsToJSON; +/** + * Check if a given object implements the SupplyTags interface. + */ +function instanceOfSupplyTags(value) { + return true; +} +function SupplyTagsFromJSON(json) { + return SupplyTagsFromJSONTyped(json, false); +} +function SupplyTagsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_ettn_required': json['is_ettn_required'] == null ? undefined : json['is_ettn_required'], + 'is_evsd_required': json['is_evsd_required'] == null ? undefined : json['is_evsd_required'], + 'is_jewelry': json['is_jewelry'] == null ? undefined : json['is_jewelry'], + 'is_marking_possible': json['is_marking_possible'] == null ? undefined : json['is_marking_possible'], + 'is_marking_required': json['is_marking_required'] == null ? undefined : json['is_marking_required'], + 'is_utd': json['is_utd'] == null ? undefined : json['is_utd'], + }; +} +function SupplyTagsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_ettn_required': value['is_ettn_required'], + 'is_evsd_required': value['is_evsd_required'], + 'is_jewelry': value['is_jewelry'], + 'is_marking_possible': value['is_marking_possible'], + 'is_marking_required': value['is_marking_required'], + 'is_utd': value['is_utd'], + }; +} diff --git a/dist/models/TaskAutoModeratedInfo.d.ts b/dist/models/TaskAutoModeratedInfo.d.ts new file mode 100644 index 0000000..1e62795 --- /dev/null +++ b/dist/models/TaskAutoModeratedInfo.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об автоматической модерации заявки. + * @export + * @interface TaskAutoModeratedInfo + */ +export interface TaskAutoModeratedInfo { + /** + * Максимальная скидка для одобрения. + * @type {number} + * @memberof TaskAutoModeratedInfo + */ + max_percent?: number; + /** + * Цена в заявке. + * @type {number} + * @memberof TaskAutoModeratedInfo + */ + max_price?: number; + /** + * Минимальная скидка для одобрения. + * @type {number} + * @memberof TaskAutoModeratedInfo + */ + min_percent?: number; + /** + * Минимальная цена для одобрения. + * @type {number} + * @memberof TaskAutoModeratedInfo + */ + min_price?: number; +} +/** + * Check if a given object implements the TaskAutoModeratedInfo interface. + */ +export declare function instanceOfTaskAutoModeratedInfo(value: object): value is TaskAutoModeratedInfo; +export declare function TaskAutoModeratedInfoFromJSON(json: any): TaskAutoModeratedInfo; +export declare function TaskAutoModeratedInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskAutoModeratedInfo; +export declare function TaskAutoModeratedInfoToJSON(value?: TaskAutoModeratedInfo | null): any; diff --git a/dist/models/TaskAutoModeratedInfo.js b/dist/models/TaskAutoModeratedInfo.js new file mode 100644 index 0000000..77e3985 --- /dev/null +++ b/dist/models/TaskAutoModeratedInfo.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTaskAutoModeratedInfo = instanceOfTaskAutoModeratedInfo; +exports.TaskAutoModeratedInfoFromJSON = TaskAutoModeratedInfoFromJSON; +exports.TaskAutoModeratedInfoFromJSONTyped = TaskAutoModeratedInfoFromJSONTyped; +exports.TaskAutoModeratedInfoToJSON = TaskAutoModeratedInfoToJSON; +/** + * Check if a given object implements the TaskAutoModeratedInfo interface. + */ +function instanceOfTaskAutoModeratedInfo(value) { + return true; +} +function TaskAutoModeratedInfoFromJSON(json) { + return TaskAutoModeratedInfoFromJSONTyped(json, false); +} +function TaskAutoModeratedInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'max_percent': json['max_percent'] == null ? undefined : json['max_percent'], + 'max_price': json['max_price'] == null ? undefined : json['max_price'], + 'min_percent': json['min_percent'] == null ? undefined : json['min_percent'], + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + }; +} +function TaskAutoModeratedInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'max_percent': value['max_percent'], + 'max_price': value['max_price'], + 'min_percent': value['min_percent'], + 'min_price': value['min_price'], + }; +} diff --git a/dist/models/TimeslotCanNotSetTimeslotReasonEnum.d.ts b/dist/models/TimeslotCanNotSetTimeslotReasonEnum.d.ts new file mode 100644 index 0000000..2f6de00 --- /dev/null +++ b/dist/models/TimeslotCanNotSetTimeslotReasonEnum.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const TimeslotCanNotSetTimeslotReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_ORDER_STATE: "INVALID_ORDER_STATE"; + readonly ORDER_IS_VIRTUAL: "ORDER_IS_VIRTUAL"; + readonly SET_TIMESLOT_DEADLINE_EXCEED: "SET_TIMESLOT_DEADLINE_EXCEED"; + readonly ORDER_DOES_NOT_BELONG_TO_COMPANY: "ORDER_DOES_NOT_BELONG_TO_COMPANY"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type TimeslotCanNotSetTimeslotReasonEnum = typeof TimeslotCanNotSetTimeslotReasonEnum[keyof typeof TimeslotCanNotSetTimeslotReasonEnum]; +export declare function instanceOfTimeslotCanNotSetTimeslotReasonEnum(value: any): boolean; +export declare function TimeslotCanNotSetTimeslotReasonEnumFromJSON(json: any): TimeslotCanNotSetTimeslotReasonEnum; +export declare function TimeslotCanNotSetTimeslotReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotCanNotSetTimeslotReasonEnum; +export declare function TimeslotCanNotSetTimeslotReasonEnumToJSON(value?: TimeslotCanNotSetTimeslotReasonEnum | null): any; diff --git a/dist/models/TimeslotCanNotSetTimeslotReasonEnum.js b/dist/models/TimeslotCanNotSetTimeslotReasonEnum.js new file mode 100644 index 0000000..740e8ae --- /dev/null +++ b/dist/models/TimeslotCanNotSetTimeslotReasonEnum.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TimeslotCanNotSetTimeslotReasonEnum = void 0; +exports.instanceOfTimeslotCanNotSetTimeslotReasonEnum = instanceOfTimeslotCanNotSetTimeslotReasonEnum; +exports.TimeslotCanNotSetTimeslotReasonEnumFromJSON = TimeslotCanNotSetTimeslotReasonEnumFromJSON; +exports.TimeslotCanNotSetTimeslotReasonEnumFromJSONTyped = TimeslotCanNotSetTimeslotReasonEnumFromJSONTyped; +exports.TimeslotCanNotSetTimeslotReasonEnumToJSON = TimeslotCanNotSetTimeslotReasonEnumToJSON; +/** + * + * @export + */ +exports.TimeslotCanNotSetTimeslotReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_ORDER_STATE: 'INVALID_ORDER_STATE', + ORDER_IS_VIRTUAL: 'ORDER_IS_VIRTUAL', + SET_TIMESLOT_DEADLINE_EXCEED: 'SET_TIMESLOT_DEADLINE_EXCEED', + ORDER_DOES_NOT_BELONG_TO_COMPANY: 'ORDER_DOES_NOT_BELONG_TO_COMPANY', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfTimeslotCanNotSetTimeslotReasonEnum(value) { + for (const key in exports.TimeslotCanNotSetTimeslotReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.TimeslotCanNotSetTimeslotReasonEnum, key)) { + if (exports.TimeslotCanNotSetTimeslotReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function TimeslotCanNotSetTimeslotReasonEnumFromJSON(json) { + return TimeslotCanNotSetTimeslotReasonEnumFromJSONTyped(json, false); +} +function TimeslotCanNotSetTimeslotReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function TimeslotCanNotSetTimeslotReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/TimeslotFromRangeTimeslotFilterTypeEnum.d.ts b/dist/models/TimeslotFromRangeTimeslotFilterTypeEnum.d.ts new file mode 100644 index 0000000..a68f148 --- /dev/null +++ b/dist/models/TimeslotFromRangeTimeslotFilterTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип даты таймслота: + * - `BY_LOCAL_TIME` — по локальному времени пункта отгрузки; + * - `BY_UTC_TIME` — по времени в UTC. + * + * @export + */ +export declare const TimeslotFromRangeTimeslotFilterTypeEnum: { + readonly LOCAL_TIME: "BY_LOCAL_TIME"; + readonly UTC_TIME: "BY_UTC_TIME"; +}; +export type TimeslotFromRangeTimeslotFilterTypeEnum = typeof TimeslotFromRangeTimeslotFilterTypeEnum[keyof typeof TimeslotFromRangeTimeslotFilterTypeEnum]; +export declare function instanceOfTimeslotFromRangeTimeslotFilterTypeEnum(value: any): boolean; +export declare function TimeslotFromRangeTimeslotFilterTypeEnumFromJSON(json: any): TimeslotFromRangeTimeslotFilterTypeEnum; +export declare function TimeslotFromRangeTimeslotFilterTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotFromRangeTimeslotFilterTypeEnum; +export declare function TimeslotFromRangeTimeslotFilterTypeEnumToJSON(value?: TimeslotFromRangeTimeslotFilterTypeEnum | null): any; diff --git a/dist/models/TimeslotFromRangeTimeslotFilterTypeEnum.js b/dist/models/TimeslotFromRangeTimeslotFilterTypeEnum.js new file mode 100644 index 0000000..5b8929c --- /dev/null +++ b/dist/models/TimeslotFromRangeTimeslotFilterTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TimeslotFromRangeTimeslotFilterTypeEnum = void 0; +exports.instanceOfTimeslotFromRangeTimeslotFilterTypeEnum = instanceOfTimeslotFromRangeTimeslotFilterTypeEnum; +exports.TimeslotFromRangeTimeslotFilterTypeEnumFromJSON = TimeslotFromRangeTimeslotFilterTypeEnumFromJSON; +exports.TimeslotFromRangeTimeslotFilterTypeEnumFromJSONTyped = TimeslotFromRangeTimeslotFilterTypeEnumFromJSONTyped; +exports.TimeslotFromRangeTimeslotFilterTypeEnumToJSON = TimeslotFromRangeTimeslotFilterTypeEnumToJSON; +/** + * Тип даты таймслота: + * - `BY_LOCAL_TIME` — по локальному времени пункта отгрузки; + * - `BY_UTC_TIME` — по времени в UTC. + * + * @export + */ +exports.TimeslotFromRangeTimeslotFilterTypeEnum = { + LOCAL_TIME: 'BY_LOCAL_TIME', + UTC_TIME: 'BY_UTC_TIME' +}; +function instanceOfTimeslotFromRangeTimeslotFilterTypeEnum(value) { + for (const key in exports.TimeslotFromRangeTimeslotFilterTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.TimeslotFromRangeTimeslotFilterTypeEnum, key)) { + if (exports.TimeslotFromRangeTimeslotFilterTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function TimeslotFromRangeTimeslotFilterTypeEnumFromJSON(json) { + return TimeslotFromRangeTimeslotFilterTypeEnumFromJSONTyped(json, false); +} +function TimeslotFromRangeTimeslotFilterTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function TimeslotFromRangeTimeslotFilterTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/TimeslotTZTimeslot.d.ts b/dist/models/TimeslotTZTimeslot.d.ts new file mode 100644 index 0000000..d9f2968 --- /dev/null +++ b/dist/models/TimeslotTZTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал поставки по местному времени. + * @export + * @interface TimeslotTZTimeslot + */ +export interface TimeslotTZTimeslot { + /** + * Дата начала. + * @type {string} + * @memberof TimeslotTZTimeslot + */ + from?: string; + /** + * Дата окончания. + * @type {string} + * @memberof TimeslotTZTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the TimeslotTZTimeslot interface. + */ +export declare function instanceOfTimeslotTZTimeslot(value: object): value is TimeslotTZTimeslot; +export declare function TimeslotTZTimeslotFromJSON(json: any): TimeslotTZTimeslot; +export declare function TimeslotTZTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotTZTimeslot; +export declare function TimeslotTZTimeslotToJSON(value?: TimeslotTZTimeslot | null): any; diff --git a/dist/models/TimeslotTZTimeslot.js b/dist/models/TimeslotTZTimeslot.js new file mode 100644 index 0000000..7b57cad --- /dev/null +++ b/dist/models/TimeslotTZTimeslot.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTimeslotTZTimeslot = instanceOfTimeslotTZTimeslot; +exports.TimeslotTZTimeslotFromJSON = TimeslotTZTimeslotFromJSON; +exports.TimeslotTZTimeslotFromJSONTyped = TimeslotTZTimeslotFromJSONTyped; +exports.TimeslotTZTimeslotToJSON = TimeslotTZTimeslotToJSON; +/** + * Check if a given object implements the TimeslotTZTimeslot interface. + */ +function instanceOfTimeslotTZTimeslot(value) { + return true; +} +function TimeslotTZTimeslotFromJSON(json) { + return TimeslotTZTimeslotFromJSONTyped(json, false); +} +function TimeslotTZTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function TimeslotTZTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/TimeslotTZTimezoneInfo.d.ts b/dist/models/TimeslotTZTimezoneInfo.d.ts new file mode 100644 index 0000000..5d73564 --- /dev/null +++ b/dist/models/TimeslotTZTimezoneInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface TimeslotTZTimezoneInfo + */ +export interface TimeslotTZTimezoneInfo { + /** + * Название часового пояса. + * @type {string} + * @memberof TimeslotTZTimezoneInfo + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {string} + * @memberof TimeslotTZTimezoneInfo + */ + offset?: string; +} +/** + * Check if a given object implements the TimeslotTZTimezoneInfo interface. + */ +export declare function instanceOfTimeslotTZTimezoneInfo(value: object): value is TimeslotTZTimezoneInfo; +export declare function TimeslotTZTimezoneInfoFromJSON(json: any): TimeslotTZTimezoneInfo; +export declare function TimeslotTZTimezoneInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotTZTimezoneInfo; +export declare function TimeslotTZTimezoneInfoToJSON(value?: TimeslotTZTimezoneInfo | null): any; diff --git a/dist/models/TimeslotTZTimezoneInfo.js b/dist/models/TimeslotTZTimezoneInfo.js new file mode 100644 index 0000000..a4d1469 --- /dev/null +++ b/dist/models/TimeslotTZTimezoneInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTimeslotTZTimezoneInfo = instanceOfTimeslotTZTimezoneInfo; +exports.TimeslotTZTimezoneInfoFromJSON = TimeslotTZTimezoneInfoFromJSON; +exports.TimeslotTZTimezoneInfoFromJSONTyped = TimeslotTZTimezoneInfoFromJSONTyped; +exports.TimeslotTZTimezoneInfoToJSON = TimeslotTZTimezoneInfoToJSON; +/** + * Check if a given object implements the TimeslotTZTimezoneInfo interface. + */ +function instanceOfTimeslotTZTimezoneInfo(value) { + return true; +} +function TimeslotTZTimezoneInfoFromJSON(json) { + return TimeslotTZTimezoneInfoFromJSONTyped(json, false); +} +function TimeslotTZTimezoneInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function TimeslotTZTimezoneInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/TimeslotValueTimeslot.d.ts b/dist/models/TimeslotValueTimeslot.d.ts new file mode 100644 index 0000000..22c14b4 --- /dev/null +++ b/dist/models/TimeslotValueTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Интервал поставки по местному времени. + * @export + * @interface TimeslotValueTimeslot + */ +export interface TimeslotValueTimeslot { + /** + * Дата и время начала интервала. + * @type {string} + * @memberof TimeslotValueTimeslot + */ + from?: string; + /** + * Дата и время окончания интервала. + * @type {string} + * @memberof TimeslotValueTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the TimeslotValueTimeslot interface. + */ +export declare function instanceOfTimeslotValueTimeslot(value: object): value is TimeslotValueTimeslot; +export declare function TimeslotValueTimeslotFromJSON(json: any): TimeslotValueTimeslot; +export declare function TimeslotValueTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeslotValueTimeslot; +export declare function TimeslotValueTimeslotToJSON(value?: TimeslotValueTimeslot | null): any; diff --git a/dist/models/TimeslotValueTimeslot.js b/dist/models/TimeslotValueTimeslot.js new file mode 100644 index 0000000..033a5a8 --- /dev/null +++ b/dist/models/TimeslotValueTimeslot.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTimeslotValueTimeslot = instanceOfTimeslotValueTimeslot; +exports.TimeslotValueTimeslotFromJSON = TimeslotValueTimeslotFromJSON; +exports.TimeslotValueTimeslotFromJSONTyped = TimeslotValueTimeslotFromJSONTyped; +exports.TimeslotValueTimeslotToJSON = TimeslotValueTimeslotToJSON; +/** + * Check if a given object implements the TimeslotValueTimeslot interface. + */ +function instanceOfTimeslotValueTimeslot(value) { + return true; +} +function TimeslotValueTimeslotFromJSON(json) { + return TimeslotValueTimeslotFromJSONTyped(json, false); +} +function TimeslotValueTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function TimeslotValueTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/TimetableWorkingHours.d.ts b/dist/models/TimetableWorkingHours.d.ts new file mode 100644 index 0000000..c581174 --- /dev/null +++ b/dist/models/TimetableWorkingHours.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часы работы склада. + * @export + * @interface TimetableWorkingHours + */ +export interface TimetableWorkingHours { + /** + * Время начала работы. + * @type {string} + * @memberof TimetableWorkingHours + */ + time_from?: string; + /** + * Время окончания работы. + * @type {string} + * @memberof TimetableWorkingHours + */ + time_to?: string; +} +/** + * Check if a given object implements the TimetableWorkingHours interface. + */ +export declare function instanceOfTimetableWorkingHours(value: object): value is TimetableWorkingHours; +export declare function TimetableWorkingHoursFromJSON(json: any): TimetableWorkingHours; +export declare function TimetableWorkingHoursFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimetableWorkingHours; +export declare function TimetableWorkingHoursToJSON(value?: TimetableWorkingHours | null): any; diff --git a/dist/models/TimetableWorkingHours.js b/dist/models/TimetableWorkingHours.js new file mode 100644 index 0000000..5bdbe01 --- /dev/null +++ b/dist/models/TimetableWorkingHours.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTimetableWorkingHours = instanceOfTimetableWorkingHours; +exports.TimetableWorkingHoursFromJSON = TimetableWorkingHoursFromJSON; +exports.TimetableWorkingHoursFromJSONTyped = TimetableWorkingHoursFromJSONTyped; +exports.TimetableWorkingHoursToJSON = TimetableWorkingHoursToJSON; +/** + * Check if a given object implements the TimetableWorkingHours interface. + */ +function instanceOfTimetableWorkingHours(value) { + return true; +} +function TimetableWorkingHoursFromJSON(json) { + return TimetableWorkingHoursFromJSONTyped(json, false); +} +function TimetableWorkingHoursFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'time_from': json['time_from'] == null ? undefined : json['time_from'], + 'time_to': json['time_to'] == null ? undefined : json['time_to'], + }; +} +function TimetableWorkingHoursToJSON(value) { + if (value == null) { + return value; + } + return { + 'time_from': value['time_from'], + 'time_to': value['time_to'], + }; +} diff --git a/dist/models/TypeTimeOfDay.d.ts b/dist/models/TypeTimeOfDay.d.ts new file mode 100644 index 0000000..565110c --- /dev/null +++ b/dist/models/TypeTimeOfDay.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Время, до которого нужно передать отправления, чтобы получить скидку за отгрузку. + * @export + * @interface TypeTimeOfDay + */ +export interface TypeTimeOfDay { + /** + * Час. + * @type {number} + * @memberof TypeTimeOfDay + */ + hours?: number; + /** + * Минута. + * @type {number} + * @memberof TypeTimeOfDay + */ + minutes?: number; + /** + * Наносекунда. + * @type {number} + * @memberof TypeTimeOfDay + */ + nanos?: number; + /** + * Секунда. + * @type {number} + * @memberof TypeTimeOfDay + */ + seconds?: number; +} +/** + * Check if a given object implements the TypeTimeOfDay interface. + */ +export declare function instanceOfTypeTimeOfDay(value: object): value is TypeTimeOfDay; +export declare function TypeTimeOfDayFromJSON(json: any): TypeTimeOfDay; +export declare function TypeTimeOfDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypeTimeOfDay; +export declare function TypeTimeOfDayToJSON(value?: TypeTimeOfDay | null): any; diff --git a/dist/models/TypeTimeOfDay.js b/dist/models/TypeTimeOfDay.js new file mode 100644 index 0000000..3371908 --- /dev/null +++ b/dist/models/TypeTimeOfDay.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTypeTimeOfDay = instanceOfTypeTimeOfDay; +exports.TypeTimeOfDayFromJSON = TypeTimeOfDayFromJSON; +exports.TypeTimeOfDayFromJSONTyped = TypeTimeOfDayFromJSONTyped; +exports.TypeTimeOfDayToJSON = TypeTimeOfDayToJSON; +/** + * Check if a given object implements the TypeTimeOfDay interface. + */ +function instanceOfTypeTimeOfDay(value) { + return true; +} +function TypeTimeOfDayFromJSON(json) { + return TypeTimeOfDayFromJSONTyped(json, false); +} +function TypeTimeOfDayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'hours': json['hours'] == null ? undefined : json['hours'], + 'minutes': json['minutes'] == null ? undefined : json['minutes'], + 'nanos': json['nanos'] == null ? undefined : json['nanos'], + 'seconds': json['seconds'] == null ? undefined : json['seconds'], + }; +} +function TypeTimeOfDayToJSON(value) { + if (value == null) { + return value; + } + return { + 'hours': value['hours'], + 'minutes': value['minutes'], + 'nanos': value['nanos'], + 'seconds': value['seconds'], + }; +} diff --git a/dist/models/UploadPostingCodesRequestPostingLineExemplarInfo.d.ts b/dist/models/UploadPostingCodesRequestPostingLineExemplarInfo.d.ts new file mode 100644 index 0000000..655e2db --- /dev/null +++ b/dist/models/UploadPostingCodesRequestPostingLineExemplarInfo.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UploadPostingCodesRequestPostingLineExemplarInfo + */ +export interface UploadPostingCodesRequestPostingLineExemplarInfo { + /** + * Список кодов цифрового товара. Количество кодов должно совпадать со значением параметра `exemplar_qty`. + * @type {Array} + * @memberof UploadPostingCodesRequestPostingLineExemplarInfo + */ + exemplar_keys?: Array; + /** + * Количество кодов цифрового товара, которые вы передаёте покупателю.

Сумма значений в параметрах `exemplar_qty ` и `not_available_exemplar_qty` должна равняться количеству кодов в заказе. Получите это значение в параметре `required_qty_for_digital_code` в ответе метода [/v1/posting/digital/list](#operation/ListPostingCodes). + * @type {number} + * @memberof UploadPostingCodesRequestPostingLineExemplarInfo + */ + exemplar_qty: number; + /** + * Количество кодов цифрового товара, которые вы не можете передать покупателю.

Сумма значений в параметрах `exemplar_qty ` и `not_available_exemplar_qty` должна равняться количеству кодов в заказе. Получите это значение в параметре `required_qty_for_digital_code` в ответе метода [/v1/posting/digital/list](#operation/ListPostingCodes). + * @type {number} + * @memberof UploadPostingCodesRequestPostingLineExemplarInfo + */ + not_available_exemplar_qty: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof UploadPostingCodesRequestPostingLineExemplarInfo + */ + sku: number; +} +/** + * Check if a given object implements the UploadPostingCodesRequestPostingLineExemplarInfo interface. + */ +export declare function instanceOfUploadPostingCodesRequestPostingLineExemplarInfo(value: object): value is UploadPostingCodesRequestPostingLineExemplarInfo; +export declare function UploadPostingCodesRequestPostingLineExemplarInfoFromJSON(json: any): UploadPostingCodesRequestPostingLineExemplarInfo; +export declare function UploadPostingCodesRequestPostingLineExemplarInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadPostingCodesRequestPostingLineExemplarInfo; +export declare function UploadPostingCodesRequestPostingLineExemplarInfoToJSON(value?: UploadPostingCodesRequestPostingLineExemplarInfo | null): any; diff --git a/dist/models/UploadPostingCodesRequestPostingLineExemplarInfo.js b/dist/models/UploadPostingCodesRequestPostingLineExemplarInfo.js new file mode 100644 index 0000000..59200a1 --- /dev/null +++ b/dist/models/UploadPostingCodesRequestPostingLineExemplarInfo.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUploadPostingCodesRequestPostingLineExemplarInfo = instanceOfUploadPostingCodesRequestPostingLineExemplarInfo; +exports.UploadPostingCodesRequestPostingLineExemplarInfoFromJSON = UploadPostingCodesRequestPostingLineExemplarInfoFromJSON; +exports.UploadPostingCodesRequestPostingLineExemplarInfoFromJSONTyped = UploadPostingCodesRequestPostingLineExemplarInfoFromJSONTyped; +exports.UploadPostingCodesRequestPostingLineExemplarInfoToJSON = UploadPostingCodesRequestPostingLineExemplarInfoToJSON; +/** + * Check if a given object implements the UploadPostingCodesRequestPostingLineExemplarInfo interface. + */ +function instanceOfUploadPostingCodesRequestPostingLineExemplarInfo(value) { + if (!('exemplar_qty' in value) || value['exemplar_qty'] === undefined) + return false; + if (!('not_available_exemplar_qty' in value) || value['not_available_exemplar_qty'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function UploadPostingCodesRequestPostingLineExemplarInfoFromJSON(json) { + return UploadPostingCodesRequestPostingLineExemplarInfoFromJSONTyped(json, false); +} +function UploadPostingCodesRequestPostingLineExemplarInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_keys': json['exemplar_keys'] == null ? undefined : json['exemplar_keys'], + 'exemplar_qty': json['exemplar_qty'], + 'not_available_exemplar_qty': json['not_available_exemplar_qty'], + 'sku': json['sku'], + }; +} +function UploadPostingCodesRequestPostingLineExemplarInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_keys': value['exemplar_keys'], + 'exemplar_qty': value['exemplar_qty'], + 'not_available_exemplar_qty': value['not_available_exemplar_qty'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/UploadPostingCodesResponsePostingExemplarInfo.d.ts b/dist/models/UploadPostingCodesResponsePostingExemplarInfo.d.ts new file mode 100644 index 0000000..e81cd8c --- /dev/null +++ b/dist/models/UploadPostingCodesResponsePostingExemplarInfo.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingExemplarInfoExemplarError } from './PostingExemplarInfoExemplarError'; +/** + * + * @export + * @interface UploadPostingCodesResponsePostingExemplarInfo + */ +export interface UploadPostingCodesResponsePostingExemplarInfo { + /** + * Список кодов цифровых товаров с ошибками. + * @type {Array} + * @memberof UploadPostingCodesResponsePostingExemplarInfo + */ + failed_exemplars?: Array; + /** + * Количество кодов цифрового товара, которые были приняты. + * @type {number} + * @memberof UploadPostingCodesResponsePostingExemplarInfo + */ + received_qty?: number; + /** + * Количество кодов цифровых товаров, которые не были приняты или переданы. + * @type {number} + * @memberof UploadPostingCodesResponsePostingExemplarInfo + */ + rejected_qty?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof UploadPostingCodesResponsePostingExemplarInfo + */ + sku?: number; +} +/** + * Check if a given object implements the UploadPostingCodesResponsePostingExemplarInfo interface. + */ +export declare function instanceOfUploadPostingCodesResponsePostingExemplarInfo(value: object): value is UploadPostingCodesResponsePostingExemplarInfo; +export declare function UploadPostingCodesResponsePostingExemplarInfoFromJSON(json: any): UploadPostingCodesResponsePostingExemplarInfo; +export declare function UploadPostingCodesResponsePostingExemplarInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadPostingCodesResponsePostingExemplarInfo; +export declare function UploadPostingCodesResponsePostingExemplarInfoToJSON(value?: UploadPostingCodesResponsePostingExemplarInfo | null): any; diff --git a/dist/models/UploadPostingCodesResponsePostingExemplarInfo.js b/dist/models/UploadPostingCodesResponsePostingExemplarInfo.js new file mode 100644 index 0000000..a882c49 --- /dev/null +++ b/dist/models/UploadPostingCodesResponsePostingExemplarInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUploadPostingCodesResponsePostingExemplarInfo = instanceOfUploadPostingCodesResponsePostingExemplarInfo; +exports.UploadPostingCodesResponsePostingExemplarInfoFromJSON = UploadPostingCodesResponsePostingExemplarInfoFromJSON; +exports.UploadPostingCodesResponsePostingExemplarInfoFromJSONTyped = UploadPostingCodesResponsePostingExemplarInfoFromJSONTyped; +exports.UploadPostingCodesResponsePostingExemplarInfoToJSON = UploadPostingCodesResponsePostingExemplarInfoToJSON; +const PostingExemplarInfoExemplarError_1 = require("./PostingExemplarInfoExemplarError"); +/** + * Check if a given object implements the UploadPostingCodesResponsePostingExemplarInfo interface. + */ +function instanceOfUploadPostingCodesResponsePostingExemplarInfo(value) { + return true; +} +function UploadPostingCodesResponsePostingExemplarInfoFromJSON(json) { + return UploadPostingCodesResponsePostingExemplarInfoFromJSONTyped(json, false); +} +function UploadPostingCodesResponsePostingExemplarInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'failed_exemplars': json['failed_exemplars'] == null ? undefined : (json['failed_exemplars'].map(PostingExemplarInfoExemplarError_1.PostingExemplarInfoExemplarErrorFromJSON)), + 'received_qty': json['received_qty'] == null ? undefined : json['received_qty'], + 'rejected_qty': json['rejected_qty'] == null ? undefined : json['rejected_qty'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function UploadPostingCodesResponsePostingExemplarInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'failed_exemplars': value['failed_exemplars'] == null ? undefined : (value['failed_exemplars'].map(PostingExemplarInfoExemplarError_1.PostingExemplarInfoExemplarErrorToJSON)), + 'received_qty': value['received_qty'], + 'rejected_qty': value['rejected_qty'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/UtilizationDefectsMoney.d.ts b/dist/models/UtilizationDefectsMoney.d.ts new file mode 100644 index 0000000..2d1db7c --- /dev/null +++ b/dist/models/UtilizationDefectsMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Максимальная цена автоутилизации для товаров с дефектами. + * @export + * @interface UtilizationDefectsMoney + */ +export interface UtilizationDefectsMoney { + /** + * Сумма. + * @type {string} + * @memberof UtilizationDefectsMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof UtilizationDefectsMoney + */ + currency?: string; +} +/** + * Check if a given object implements the UtilizationDefectsMoney interface. + */ +export declare function instanceOfUtilizationDefectsMoney(value: object): value is UtilizationDefectsMoney; +export declare function UtilizationDefectsMoneyFromJSON(json: any): UtilizationDefectsMoney; +export declare function UtilizationDefectsMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UtilizationDefectsMoney; +export declare function UtilizationDefectsMoneyToJSON(value?: UtilizationDefectsMoney | null): any; diff --git a/dist/models/UtilizationDefectsMoney.js b/dist/models/UtilizationDefectsMoney.js new file mode 100644 index 0000000..7fcac41 --- /dev/null +++ b/dist/models/UtilizationDefectsMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUtilizationDefectsMoney = instanceOfUtilizationDefectsMoney; +exports.UtilizationDefectsMoneyFromJSON = UtilizationDefectsMoneyFromJSON; +exports.UtilizationDefectsMoneyFromJSONTyped = UtilizationDefectsMoneyFromJSONTyped; +exports.UtilizationDefectsMoneyToJSON = UtilizationDefectsMoneyToJSON; +/** + * Check if a given object implements the UtilizationDefectsMoney interface. + */ +function instanceOfUtilizationDefectsMoney(value) { + return true; +} +function UtilizationDefectsMoneyFromJSON(json) { + return UtilizationDefectsMoneyFromJSONTyped(json, false); +} +function UtilizationDefectsMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function UtilizationDefectsMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/UtilizationMoney.d.ts b/dist/models/UtilizationMoney.d.ts new file mode 100644 index 0000000..053ad03 --- /dev/null +++ b/dist/models/UtilizationMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Максимальная цена автоутилизации для товаров без дефектов. + * @export + * @interface UtilizationMoney + */ +export interface UtilizationMoney { + /** + * Сумма. + * @type {string} + * @memberof UtilizationMoney + */ + amount?: string; + /** + * Валюта. + * @type {string} + * @memberof UtilizationMoney + */ + currency?: string; +} +/** + * Check if a given object implements the UtilizationMoney interface. + */ +export declare function instanceOfUtilizationMoney(value: object): value is UtilizationMoney; +export declare function UtilizationMoneyFromJSON(json: any): UtilizationMoney; +export declare function UtilizationMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UtilizationMoney; +export declare function UtilizationMoneyToJSON(value?: UtilizationMoney | null): any; diff --git a/dist/models/UtilizationMoney.js b/dist/models/UtilizationMoney.js new file mode 100644 index 0000000..cb001d6 --- /dev/null +++ b/dist/models/UtilizationMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUtilizationMoney = instanceOfUtilizationMoney; +exports.UtilizationMoneyFromJSON = UtilizationMoneyFromJSON; +exports.UtilizationMoneyFromJSONTyped = UtilizationMoneyFromJSONTyped; +exports.UtilizationMoneyToJSON = UtilizationMoneyToJSON; +/** + * Check if a given object implements the UtilizationMoney interface. + */ +function instanceOfUtilizationMoney(value) { + return true; +} +function UtilizationMoneyFromJSON(json) { + return UtilizationMoneyFromJSONTyped(json, false); +} +function UtilizationMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'] == null ? undefined : json['amount'], + 'currency': json['currency'] == null ? undefined : json['currency'], + }; +} +function UtilizationMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'currency': value['currency'], + }; +} diff --git a/dist/models/V1AddBarcodeRequest.d.ts b/dist/models/V1AddBarcodeRequest.d.ts new file mode 100644 index 0000000..17e3ac6 --- /dev/null +++ b/dist/models/V1AddBarcodeRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Barcode } from './V1Barcode'; +/** + * + * @export + * @interface V1AddBarcodeRequest + */ +export interface V1AddBarcodeRequest { + /** + * Список штрихкодов и товаров. + * @type {Array} + * @memberof V1AddBarcodeRequest + */ + barcodes: Array; +} +/** + * Check if a given object implements the V1AddBarcodeRequest interface. + */ +export declare function instanceOfV1AddBarcodeRequest(value: object): value is V1AddBarcodeRequest; +export declare function V1AddBarcodeRequestFromJSON(json: any): V1AddBarcodeRequest; +export declare function V1AddBarcodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddBarcodeRequest; +export declare function V1AddBarcodeRequestToJSON(value?: V1AddBarcodeRequest | null): any; diff --git a/dist/models/V1AddBarcodeRequest.js b/dist/models/V1AddBarcodeRequest.js new file mode 100644 index 0000000..fcc9d4d --- /dev/null +++ b/dist/models/V1AddBarcodeRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AddBarcodeRequest = instanceOfV1AddBarcodeRequest; +exports.V1AddBarcodeRequestFromJSON = V1AddBarcodeRequestFromJSON; +exports.V1AddBarcodeRequestFromJSONTyped = V1AddBarcodeRequestFromJSONTyped; +exports.V1AddBarcodeRequestToJSON = V1AddBarcodeRequestToJSON; +const V1Barcode_1 = require("./V1Barcode"); +/** + * Check if a given object implements the V1AddBarcodeRequest interface. + */ +function instanceOfV1AddBarcodeRequest(value) { + if (!('barcodes' in value) || value['barcodes'] === undefined) + return false; + return true; +} +function V1AddBarcodeRequestFromJSON(json) { + return V1AddBarcodeRequestFromJSONTyped(json, false); +} +function V1AddBarcodeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcodes': (json['barcodes'].map(V1Barcode_1.V1BarcodeFromJSON)), + }; +} +function V1AddBarcodeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcodes': (value['barcodes'].map(V1Barcode_1.V1BarcodeToJSON)), + }; +} diff --git a/dist/models/V1AddBarcodeResponse.d.ts b/dist/models/V1AddBarcodeResponse.d.ts new file mode 100644 index 0000000..8301624 --- /dev/null +++ b/dist/models/V1AddBarcodeResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AddBarcodeResult } from './V1AddBarcodeResult'; +/** + * + * @export + * @interface V1AddBarcodeResponse + */ +export interface V1AddBarcodeResponse { + /** + * Список ошибок. + * @type {Array} + * @memberof V1AddBarcodeResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1AddBarcodeResponse interface. + */ +export declare function instanceOfV1AddBarcodeResponse(value: object): value is V1AddBarcodeResponse; +export declare function V1AddBarcodeResponseFromJSON(json: any): V1AddBarcodeResponse; +export declare function V1AddBarcodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddBarcodeResponse; +export declare function V1AddBarcodeResponseToJSON(value?: V1AddBarcodeResponse | null): any; diff --git a/dist/models/V1AddBarcodeResponse.js b/dist/models/V1AddBarcodeResponse.js new file mode 100644 index 0000000..179b6c7 --- /dev/null +++ b/dist/models/V1AddBarcodeResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AddBarcodeResponse = instanceOfV1AddBarcodeResponse; +exports.V1AddBarcodeResponseFromJSON = V1AddBarcodeResponseFromJSON; +exports.V1AddBarcodeResponseFromJSONTyped = V1AddBarcodeResponseFromJSONTyped; +exports.V1AddBarcodeResponseToJSON = V1AddBarcodeResponseToJSON; +const V1AddBarcodeResult_1 = require("./V1AddBarcodeResult"); +/** + * Check if a given object implements the V1AddBarcodeResponse interface. + */ +function instanceOfV1AddBarcodeResponse(value) { + return true; +} +function V1AddBarcodeResponseFromJSON(json) { + return V1AddBarcodeResponseFromJSONTyped(json, false); +} +function V1AddBarcodeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1AddBarcodeResult_1.V1AddBarcodeResultFromJSON)), + }; +} +function V1AddBarcodeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1AddBarcodeResult_1.V1AddBarcodeResultToJSON)), + }; +} diff --git a/dist/models/V1AddBarcodeResult.d.ts b/dist/models/V1AddBarcodeResult.d.ts new file mode 100644 index 0000000..9b04888 --- /dev/null +++ b/dist/models/V1AddBarcodeResult.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AddBarcodeResult + */ +export interface V1AddBarcodeResult { + /** + * Код ошибки. + * @type {string} + * @memberof V1AddBarcodeResult + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1AddBarcodeResult + */ + error?: string; + /** + * Штрихкод, который не удалось привязать. + * @type {string} + * @memberof V1AddBarcodeResult + */ + barcode?: string; + /** + * Идентификатор товара, к которому не удалось привязать штрихкод. + * @type {number} + * @memberof V1AddBarcodeResult + */ + sku?: number; +} +/** + * Check if a given object implements the V1AddBarcodeResult interface. + */ +export declare function instanceOfV1AddBarcodeResult(value: object): value is V1AddBarcodeResult; +export declare function V1AddBarcodeResultFromJSON(json: any): V1AddBarcodeResult; +export declare function V1AddBarcodeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddBarcodeResult; +export declare function V1AddBarcodeResultToJSON(value?: V1AddBarcodeResult | null): any; diff --git a/dist/models/V1AddBarcodeResult.js b/dist/models/V1AddBarcodeResult.js new file mode 100644 index 0000000..871ce76 --- /dev/null +++ b/dist/models/V1AddBarcodeResult.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AddBarcodeResult = instanceOfV1AddBarcodeResult; +exports.V1AddBarcodeResultFromJSON = V1AddBarcodeResultFromJSON; +exports.V1AddBarcodeResultFromJSONTyped = V1AddBarcodeResultFromJSONTyped; +exports.V1AddBarcodeResultToJSON = V1AddBarcodeResultToJSON; +/** + * Check if a given object implements the V1AddBarcodeResult interface. + */ +function instanceOfV1AddBarcodeResult(value) { + return true; +} +function V1AddBarcodeResultFromJSON(json) { + return V1AddBarcodeResultFromJSONTyped(json, false); +} +function V1AddBarcodeResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'error': json['error'] == null ? undefined : json['error'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1AddBarcodeResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'error': value['error'], + 'barcode': value['barcode'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1AddStrategyItemsRequest.d.ts b/dist/models/V1AddStrategyItemsRequest.d.ts new file mode 100644 index 0000000..614c52d --- /dev/null +++ b/dist/models/V1AddStrategyItemsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AddStrategyItemsRequest + */ +export interface V1AddStrategyItemsRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. Максимальное количество — 50. + * @type {Array} + * @memberof V1AddStrategyItemsRequest + */ + product_id: Array; + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1AddStrategyItemsRequest + */ + strategy_id: string; +} +/** + * Check if a given object implements the V1AddStrategyItemsRequest interface. + */ +export declare function instanceOfV1AddStrategyItemsRequest(value: object): value is V1AddStrategyItemsRequest; +export declare function V1AddStrategyItemsRequestFromJSON(json: any): V1AddStrategyItemsRequest; +export declare function V1AddStrategyItemsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddStrategyItemsRequest; +export declare function V1AddStrategyItemsRequestToJSON(value?: V1AddStrategyItemsRequest | null): any; diff --git a/dist/models/V1AddStrategyItemsRequest.js b/dist/models/V1AddStrategyItemsRequest.js new file mode 100644 index 0000000..630a411 --- /dev/null +++ b/dist/models/V1AddStrategyItemsRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AddStrategyItemsRequest = instanceOfV1AddStrategyItemsRequest; +exports.V1AddStrategyItemsRequestFromJSON = V1AddStrategyItemsRequestFromJSON; +exports.V1AddStrategyItemsRequestFromJSONTyped = V1AddStrategyItemsRequestFromJSONTyped; +exports.V1AddStrategyItemsRequestToJSON = V1AddStrategyItemsRequestToJSON; +/** + * Check if a given object implements the V1AddStrategyItemsRequest interface. + */ +function instanceOfV1AddStrategyItemsRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('strategy_id' in value) || value['strategy_id'] === undefined) + return false; + return true; +} +function V1AddStrategyItemsRequestFromJSON(json) { + return V1AddStrategyItemsRequestFromJSONTyped(json, false); +} +function V1AddStrategyItemsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + 'strategy_id': json['strategy_id'], + }; +} +function V1AddStrategyItemsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/models/V1AddStrategyItemsResponse.d.ts b/dist/models/V1AddStrategyItemsResponse.d.ts new file mode 100644 index 0000000..c2cfda7 --- /dev/null +++ b/dist/models/V1AddStrategyItemsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AddStrategyItemsResponseResult } from './V1AddStrategyItemsResponseResult'; +/** + * + * @export + * @interface V1AddStrategyItemsResponse + */ +export interface V1AddStrategyItemsResponse { + /** + * + * @type {V1AddStrategyItemsResponseResult} + * @memberof V1AddStrategyItemsResponse + */ + result?: V1AddStrategyItemsResponseResult; +} +/** + * Check if a given object implements the V1AddStrategyItemsResponse interface. + */ +export declare function instanceOfV1AddStrategyItemsResponse(value: object): value is V1AddStrategyItemsResponse; +export declare function V1AddStrategyItemsResponseFromJSON(json: any): V1AddStrategyItemsResponse; +export declare function V1AddStrategyItemsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddStrategyItemsResponse; +export declare function V1AddStrategyItemsResponseToJSON(value?: V1AddStrategyItemsResponse | null): any; diff --git a/dist/models/V1AddStrategyItemsResponse.js b/dist/models/V1AddStrategyItemsResponse.js new file mode 100644 index 0000000..dbf7266 --- /dev/null +++ b/dist/models/V1AddStrategyItemsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AddStrategyItemsResponse = instanceOfV1AddStrategyItemsResponse; +exports.V1AddStrategyItemsResponseFromJSON = V1AddStrategyItemsResponseFromJSON; +exports.V1AddStrategyItemsResponseFromJSONTyped = V1AddStrategyItemsResponseFromJSONTyped; +exports.V1AddStrategyItemsResponseToJSON = V1AddStrategyItemsResponseToJSON; +const V1AddStrategyItemsResponseResult_1 = require("./V1AddStrategyItemsResponseResult"); +/** + * Check if a given object implements the V1AddStrategyItemsResponse interface. + */ +function instanceOfV1AddStrategyItemsResponse(value) { + return true; +} +function V1AddStrategyItemsResponseFromJSON(json) { + return V1AddStrategyItemsResponseFromJSONTyped(json, false); +} +function V1AddStrategyItemsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1AddStrategyItemsResponseResult_1.V1AddStrategyItemsResponseResultFromJSON)(json['result']), + }; +} +function V1AddStrategyItemsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1AddStrategyItemsResponseResult_1.V1AddStrategyItemsResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1AddStrategyItemsResponseResult.d.ts b/dist/models/V1AddStrategyItemsResponseResult.d.ts new file mode 100644 index 0000000..bebbce1 --- /dev/null +++ b/dist/models/V1AddStrategyItemsResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AddStrategyItemsResponseError } from './AddStrategyItemsResponseError'; +/** + * Результат работы метода. + * @export + * @interface V1AddStrategyItemsResponseResult + */ +export interface V1AddStrategyItemsResponseResult { + /** + * Товары с ошибками. + * @type {Array} + * @memberof V1AddStrategyItemsResponseResult + */ + errors?: Array; + /** + * Количество товаров с ошибками. + * @type {number} + * @memberof V1AddStrategyItemsResponseResult + */ + failed_product_count?: number; +} +/** + * Check if a given object implements the V1AddStrategyItemsResponseResult interface. + */ +export declare function instanceOfV1AddStrategyItemsResponseResult(value: object): value is V1AddStrategyItemsResponseResult; +export declare function V1AddStrategyItemsResponseResultFromJSON(json: any): V1AddStrategyItemsResponseResult; +export declare function V1AddStrategyItemsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AddStrategyItemsResponseResult; +export declare function V1AddStrategyItemsResponseResultToJSON(value?: V1AddStrategyItemsResponseResult | null): any; diff --git a/dist/models/V1AddStrategyItemsResponseResult.js b/dist/models/V1AddStrategyItemsResponseResult.js new file mode 100644 index 0000000..8d8d70b --- /dev/null +++ b/dist/models/V1AddStrategyItemsResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AddStrategyItemsResponseResult = instanceOfV1AddStrategyItemsResponseResult; +exports.V1AddStrategyItemsResponseResultFromJSON = V1AddStrategyItemsResponseResultFromJSON; +exports.V1AddStrategyItemsResponseResultFromJSONTyped = V1AddStrategyItemsResponseResultFromJSONTyped; +exports.V1AddStrategyItemsResponseResultToJSON = V1AddStrategyItemsResponseResultToJSON; +const AddStrategyItemsResponseError_1 = require("./AddStrategyItemsResponseError"); +/** + * Check if a given object implements the V1AddStrategyItemsResponseResult interface. + */ +function instanceOfV1AddStrategyItemsResponseResult(value) { + return true; +} +function V1AddStrategyItemsResponseResultFromJSON(json) { + return V1AddStrategyItemsResponseResultFromJSONTyped(json, false); +} +function V1AddStrategyItemsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(AddStrategyItemsResponseError_1.AddStrategyItemsResponseErrorFromJSON)), + 'failed_product_count': json['failed_product_count'] == null ? undefined : json['failed_product_count'], + }; +} +function V1AddStrategyItemsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(AddStrategyItemsResponseError_1.AddStrategyItemsResponseErrorToJSON)), + 'failed_product_count': value['failed_product_count'], + }; +} diff --git a/dist/models/V1AnalyticsManageStocksRequest.d.ts b/dist/models/V1AnalyticsManageStocksRequest.d.ts new file mode 100644 index 0000000..ce27884 --- /dev/null +++ b/dist/models/V1AnalyticsManageStocksRequest.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsManageStocksRequestFilter } from './V1AnalyticsManageStocksRequestFilter'; +/** + * + * @export + * @interface V1AnalyticsManageStocksRequest + */ +export interface V1AnalyticsManageStocksRequest { + /** + * + * @type {V1AnalyticsManageStocksRequestFilter} + * @memberof V1AnalyticsManageStocksRequest + */ + filter?: V1AnalyticsManageStocksRequestFilter; + /** + * Количество значений в ответе. + * + * @type {number} + * @memberof V1AnalyticsManageStocksRequest + */ + limit?: number; + /** + * Количество элементов, которое будет пропущено в ответе. + * + * Например, если `offset = 10`, ответ начнётся с 11-го найденного элемента. + * + * @type {number} + * @memberof V1AnalyticsManageStocksRequest + */ + offset?: number; +} +/** + * Check if a given object implements the V1AnalyticsManageStocksRequest interface. + */ +export declare function instanceOfV1AnalyticsManageStocksRequest(value: object): value is V1AnalyticsManageStocksRequest; +export declare function V1AnalyticsManageStocksRequestFromJSON(json: any): V1AnalyticsManageStocksRequest; +export declare function V1AnalyticsManageStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsManageStocksRequest; +export declare function V1AnalyticsManageStocksRequestToJSON(value?: V1AnalyticsManageStocksRequest | null): any; diff --git a/dist/models/V1AnalyticsManageStocksRequest.js b/dist/models/V1AnalyticsManageStocksRequest.js new file mode 100644 index 0000000..1c89917 --- /dev/null +++ b/dist/models/V1AnalyticsManageStocksRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsManageStocksRequest = instanceOfV1AnalyticsManageStocksRequest; +exports.V1AnalyticsManageStocksRequestFromJSON = V1AnalyticsManageStocksRequestFromJSON; +exports.V1AnalyticsManageStocksRequestFromJSONTyped = V1AnalyticsManageStocksRequestFromJSONTyped; +exports.V1AnalyticsManageStocksRequestToJSON = V1AnalyticsManageStocksRequestToJSON; +/** + * Check if a given object implements the V1AnalyticsManageStocksRequest interface. + */ +function instanceOfV1AnalyticsManageStocksRequest(value) { + return true; +} +function V1AnalyticsManageStocksRequestFromJSON(json) { + return V1AnalyticsManageStocksRequestFromJSONTyped(json, false); +} +function V1AnalyticsManageStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : json['filter'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function V1AnalyticsManageStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': value['filter'], + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/V1AnalyticsManageStocksRequestFilter.d.ts b/dist/models/V1AnalyticsManageStocksRequestFilter.d.ts new file mode 100644 index 0000000..0477260 --- /dev/null +++ b/dist/models/V1AnalyticsManageStocksRequestFilter.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AnalyticsManageStocksRequestFilter + */ +export interface V1AnalyticsManageStocksRequestFilter { + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1AnalyticsManageStocksRequestFilter + */ + skus?: Array; + /** + * Тип оставшегося на складе товара: + * - `STOCK_TYPE_VALID` — валидный сток. Остаток товара, доступного для продажи. + * - `STOCK_TYPE_WAITING_DOCS` — превалидный сток. Остаток товара, который Ozon не может продавать, пока продавец не прислал в Ozon документы по обязательной маркировке. Товар перейдёт в валидный сток, когда документы будут подписаны. + * - `STOCK_TYPE_EXPIRING` — предпросрок. Остаток товара, который снят с полки, но срок годности формально не истёк. + * - `STOCK_TYPE_DEFECT` — брак. Остаток товара, который находится на складах Ozon, но повреждён. + * + * @type {Array} + * @memberof V1AnalyticsManageStocksRequestFilter + */ + stock_types?: Array; + /** + * Идентификаторы складов. + * @type {Array} + * @memberof V1AnalyticsManageStocksRequestFilter + */ + warehouse_ids?: Array; +} +/** + * @export + */ +export declare const V1AnalyticsManageStocksRequestFilterStockTypesEnum: { + readonly VALID: "STOCK_TYPE_VALID"; + readonly WAITING_DOCS: "STOCK_TYPE_WAITING_DOCS"; + readonly EXPIRING: "STOCK_TYPE_EXPIRING"; + readonly DEFECT: "STOCK_TYPE_DEFECT"; +}; +export type V1AnalyticsManageStocksRequestFilterStockTypesEnum = typeof V1AnalyticsManageStocksRequestFilterStockTypesEnum[keyof typeof V1AnalyticsManageStocksRequestFilterStockTypesEnum]; +/** + * Check if a given object implements the V1AnalyticsManageStocksRequestFilter interface. + */ +export declare function instanceOfV1AnalyticsManageStocksRequestFilter(value: object): value is V1AnalyticsManageStocksRequestFilter; +export declare function V1AnalyticsManageStocksRequestFilterFromJSON(json: any): V1AnalyticsManageStocksRequestFilter; +export declare function V1AnalyticsManageStocksRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsManageStocksRequestFilter; +export declare function V1AnalyticsManageStocksRequestFilterToJSON(value?: V1AnalyticsManageStocksRequestFilter | null): any; diff --git a/dist/models/V1AnalyticsManageStocksRequestFilter.js b/dist/models/V1AnalyticsManageStocksRequestFilter.js new file mode 100644 index 0000000..a1cbc30 --- /dev/null +++ b/dist/models/V1AnalyticsManageStocksRequestFilter.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1AnalyticsManageStocksRequestFilterStockTypesEnum = void 0; +exports.instanceOfV1AnalyticsManageStocksRequestFilter = instanceOfV1AnalyticsManageStocksRequestFilter; +exports.V1AnalyticsManageStocksRequestFilterFromJSON = V1AnalyticsManageStocksRequestFilterFromJSON; +exports.V1AnalyticsManageStocksRequestFilterFromJSONTyped = V1AnalyticsManageStocksRequestFilterFromJSONTyped; +exports.V1AnalyticsManageStocksRequestFilterToJSON = V1AnalyticsManageStocksRequestFilterToJSON; +/** + * @export + */ +exports.V1AnalyticsManageStocksRequestFilterStockTypesEnum = { + VALID: 'STOCK_TYPE_VALID', + WAITING_DOCS: 'STOCK_TYPE_WAITING_DOCS', + EXPIRING: 'STOCK_TYPE_EXPIRING', + DEFECT: 'STOCK_TYPE_DEFECT' +}; +/** + * Check if a given object implements the V1AnalyticsManageStocksRequestFilter interface. + */ +function instanceOfV1AnalyticsManageStocksRequestFilter(value) { + return true; +} +function V1AnalyticsManageStocksRequestFilterFromJSON(json) { + return V1AnalyticsManageStocksRequestFilterFromJSONTyped(json, false); +} +function V1AnalyticsManageStocksRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'] == null ? undefined : json['skus'], + 'stock_types': json['stock_types'] == null ? undefined : json['stock_types'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function V1AnalyticsManageStocksRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + 'stock_types': value['stock_types'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/V1AnalyticsManageStocksResponse.d.ts b/dist/models/V1AnalyticsManageStocksResponse.d.ts new file mode 100644 index 0000000..de677ad --- /dev/null +++ b/dist/models/V1AnalyticsManageStocksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsManageStocksResponseItem } from './V1AnalyticsManageStocksResponseItem'; +/** + * + * @export + * @interface V1AnalyticsManageStocksResponse + */ +export interface V1AnalyticsManageStocksResponse { + /** + * Товары. + * @type {Array} + * @memberof V1AnalyticsManageStocksResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1AnalyticsManageStocksResponse interface. + */ +export declare function instanceOfV1AnalyticsManageStocksResponse(value: object): value is V1AnalyticsManageStocksResponse; +export declare function V1AnalyticsManageStocksResponseFromJSON(json: any): V1AnalyticsManageStocksResponse; +export declare function V1AnalyticsManageStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsManageStocksResponse; +export declare function V1AnalyticsManageStocksResponseToJSON(value?: V1AnalyticsManageStocksResponse | null): any; diff --git a/dist/models/V1AnalyticsManageStocksResponse.js b/dist/models/V1AnalyticsManageStocksResponse.js new file mode 100644 index 0000000..186b487 --- /dev/null +++ b/dist/models/V1AnalyticsManageStocksResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsManageStocksResponse = instanceOfV1AnalyticsManageStocksResponse; +exports.V1AnalyticsManageStocksResponseFromJSON = V1AnalyticsManageStocksResponseFromJSON; +exports.V1AnalyticsManageStocksResponseFromJSONTyped = V1AnalyticsManageStocksResponseFromJSONTyped; +exports.V1AnalyticsManageStocksResponseToJSON = V1AnalyticsManageStocksResponseToJSON; +const V1AnalyticsManageStocksResponseItem_1 = require("./V1AnalyticsManageStocksResponseItem"); +/** + * Check if a given object implements the V1AnalyticsManageStocksResponse interface. + */ +function instanceOfV1AnalyticsManageStocksResponse(value) { + return true; +} +function V1AnalyticsManageStocksResponseFromJSON(json) { + return V1AnalyticsManageStocksResponseFromJSONTyped(json, false); +} +function V1AnalyticsManageStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1AnalyticsManageStocksResponseItem_1.V1AnalyticsManageStocksResponseItemFromJSON)), + }; +} +function V1AnalyticsManageStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1AnalyticsManageStocksResponseItem_1.V1AnalyticsManageStocksResponseItemToJSON)), + }; +} diff --git a/dist/models/V1AnalyticsManageStocksResponseItem.d.ts b/dist/models/V1AnalyticsManageStocksResponseItem.d.ts new file mode 100644 index 0000000..32d6724 --- /dev/null +++ b/dist/models/V1AnalyticsManageStocksResponseItem.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsManageStocksResponseItem + */ +export interface V1AnalyticsManageStocksResponseItem { + /** + * Остаток дефектного товара, шт. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + defect_stock_count?: number; + /** + * Остаток товара с истекающим сроком годности, шт. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + expiring_stock_count?: number; + /** + * Название товара. + * @type {string} + * @memberof V1AnalyticsManageStocksResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AnalyticsManageStocksResponseItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + sku?: number; + /** + * Остаток товара, доступного для продажи. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + valid_stock_count?: number; + /** + * Остаток товара, ожидающего документы. + * @type {number} + * @memberof V1AnalyticsManageStocksResponseItem + */ + waitingdocs_stock_count?: number; + /** + * Название склада. + * @type {string} + * @memberof V1AnalyticsManageStocksResponseItem + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the V1AnalyticsManageStocksResponseItem interface. + */ +export declare function instanceOfV1AnalyticsManageStocksResponseItem(value: object): value is V1AnalyticsManageStocksResponseItem; +export declare function V1AnalyticsManageStocksResponseItemFromJSON(json: any): V1AnalyticsManageStocksResponseItem; +export declare function V1AnalyticsManageStocksResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsManageStocksResponseItem; +export declare function V1AnalyticsManageStocksResponseItemToJSON(value?: V1AnalyticsManageStocksResponseItem | null): any; diff --git a/dist/models/V1AnalyticsManageStocksResponseItem.js b/dist/models/V1AnalyticsManageStocksResponseItem.js new file mode 100644 index 0000000..cea2644 --- /dev/null +++ b/dist/models/V1AnalyticsManageStocksResponseItem.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsManageStocksResponseItem = instanceOfV1AnalyticsManageStocksResponseItem; +exports.V1AnalyticsManageStocksResponseItemFromJSON = V1AnalyticsManageStocksResponseItemFromJSON; +exports.V1AnalyticsManageStocksResponseItemFromJSONTyped = V1AnalyticsManageStocksResponseItemFromJSONTyped; +exports.V1AnalyticsManageStocksResponseItemToJSON = V1AnalyticsManageStocksResponseItemToJSON; +/** + * Check if a given object implements the V1AnalyticsManageStocksResponseItem interface. + */ +function instanceOfV1AnalyticsManageStocksResponseItem(value) { + return true; +} +function V1AnalyticsManageStocksResponseItemFromJSON(json) { + return V1AnalyticsManageStocksResponseItemFromJSONTyped(json, false); +} +function V1AnalyticsManageStocksResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'defect_stock_count': json['defect_stock_count'] == null ? undefined : json['defect_stock_count'], + 'expiring_stock_count': json['expiring_stock_count'] == null ? undefined : json['expiring_stock_count'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'valid_stock_count': json['valid_stock_count'] == null ? undefined : json['valid_stock_count'], + 'waitingdocs_stock_count': json['waitingdocs_stock_count'] == null ? undefined : json['waitingdocs_stock_count'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function V1AnalyticsManageStocksResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'defect_stock_count': value['defect_stock_count'], + 'expiring_stock_count': value['expiring_stock_count'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'sku': value['sku'], + 'valid_stock_count': value['valid_stock_count'], + 'waitingdocs_stock_count': value['waitingdocs_stock_count'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/V1AnalyticsProductQueriesDetailsRequest.d.ts b/dist/models/V1AnalyticsProductQueriesDetailsRequest.d.ts new file mode 100644 index 0000000..97ea0d0 --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsRequest.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsProductQueriesDetailsRequestSortBy } from './V1AnalyticsProductQueriesDetailsRequestSortBy'; +import type { V1AnalyticsProductQueriesDetailsRequestSortDir } from './V1AnalyticsProductQueriesDetailsRequestSortDir'; +/** + * + * @export + * @interface V1AnalyticsProductQueriesDetailsRequest + */ +export interface V1AnalyticsProductQueriesDetailsRequest { + /** + * Дата начала формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + date_from: string; + /** + * Дата окончания формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + date_to?: string; + /** + * Лимит числа запросов по одному SKU. Максимум — 15 запросов. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + limit_by_sku: number; + /** + * Номер страницы, возвращаемой в запросе. Минимум — 0. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + page?: number; + /** + * Количество элементов на странице. Максимум — 100. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + page_size: number; + /** + * Список SKU, идентификаторов товара в системе Ozon. По ним вернётся аналитика по запросам. Максимум — 1000 SKU. + * @type {Array} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + skus: Array; + /** + * + * @type {V1AnalyticsProductQueriesDetailsRequestSortBy} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + sort_by?: V1AnalyticsProductQueriesDetailsRequestSortBy; + /** + * + * @type {V1AnalyticsProductQueriesDetailsRequestSortDir} + * @memberof V1AnalyticsProductQueriesDetailsRequest + */ + sort_dir?: V1AnalyticsProductQueriesDetailsRequestSortDir; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsRequest interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesDetailsRequest(value: object): value is V1AnalyticsProductQueriesDetailsRequest; +export declare function V1AnalyticsProductQueriesDetailsRequestFromJSON(json: any): V1AnalyticsProductQueriesDetailsRequest; +export declare function V1AnalyticsProductQueriesDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsRequest; +export declare function V1AnalyticsProductQueriesDetailsRequestToJSON(value?: V1AnalyticsProductQueriesDetailsRequest | null): any; diff --git a/dist/models/V1AnalyticsProductQueriesDetailsRequest.js b/dist/models/V1AnalyticsProductQueriesDetailsRequest.js new file mode 100644 index 0000000..00bf924 --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsRequest.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsProductQueriesDetailsRequest = instanceOfV1AnalyticsProductQueriesDetailsRequest; +exports.V1AnalyticsProductQueriesDetailsRequestFromJSON = V1AnalyticsProductQueriesDetailsRequestFromJSON; +exports.V1AnalyticsProductQueriesDetailsRequestFromJSONTyped = V1AnalyticsProductQueriesDetailsRequestFromJSONTyped; +exports.V1AnalyticsProductQueriesDetailsRequestToJSON = V1AnalyticsProductQueriesDetailsRequestToJSON; +const V1AnalyticsProductQueriesDetailsRequestSortBy_1 = require("./V1AnalyticsProductQueriesDetailsRequestSortBy"); +const V1AnalyticsProductQueriesDetailsRequestSortDir_1 = require("./V1AnalyticsProductQueriesDetailsRequestSortDir"); +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsRequest interface. + */ +function instanceOfV1AnalyticsProductQueriesDetailsRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('limit_by_sku' in value) || value['limit_by_sku'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1AnalyticsProductQueriesDetailsRequestFromJSON(json) { + return V1AnalyticsProductQueriesDetailsRequestFromJSONTyped(json, false); +} +function V1AnalyticsProductQueriesDetailsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'limit_by_sku': json['limit_by_sku'], + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'], + 'skus': json['skus'], + 'sort_by': json['sort_by'] == null ? undefined : (0, V1AnalyticsProductQueriesDetailsRequestSortBy_1.V1AnalyticsProductQueriesDetailsRequestSortByFromJSON)(json['sort_by']), + 'sort_dir': json['sort_dir'] == null ? undefined : (0, V1AnalyticsProductQueriesDetailsRequestSortDir_1.V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON)(json['sort_dir']), + }; +} +function V1AnalyticsProductQueriesDetailsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'limit_by_sku': value['limit_by_sku'], + 'page': value['page'], + 'page_size': value['page_size'], + 'skus': value['skus'], + 'sort_by': (0, V1AnalyticsProductQueriesDetailsRequestSortBy_1.V1AnalyticsProductQueriesDetailsRequestSortByToJSON)(value['sort_by']), + 'sort_dir': (0, V1AnalyticsProductQueriesDetailsRequestSortDir_1.V1AnalyticsProductQueriesDetailsRequestSortDirToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/V1AnalyticsProductQueriesDetailsRequestSortBy.d.ts b/dist/models/V1AnalyticsProductQueriesDetailsRequestSortBy.d.ts new file mode 100644 index 0000000..a99c92c --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsRequestSortBy.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметр, по которому товары будут отсортированы. Возможные значения: + * - `BY_SEARCHES` — по количеству запросов; + * - `BY_VIEWS` — по количеству просмотров; + * - `BY_POSITION` — по средней позиции товара; + * - `BY_CONVERSION` — по значению конверсии; + * - `BY_GMV` — по объёму продаж по запросам. + * + * Сортировка по параметрам `BY_VIEWS`, `BY_POSITION` и `BY_CONVERSION` доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * + * @export + */ +export declare const V1AnalyticsProductQueriesDetailsRequestSortBy: { + readonly SEARCHES: "BY_SEARCHES"; + readonly VIEWS: "BY_VIEWS"; + readonly POSITION: "BY_POSITION"; + readonly CONVERSION: "BY_CONVERSION"; + readonly GMV: "BY_GMV"; +}; +export type V1AnalyticsProductQueriesDetailsRequestSortBy = typeof V1AnalyticsProductQueriesDetailsRequestSortBy[keyof typeof V1AnalyticsProductQueriesDetailsRequestSortBy]; +export declare function instanceOfV1AnalyticsProductQueriesDetailsRequestSortBy(value: any): boolean; +export declare function V1AnalyticsProductQueriesDetailsRequestSortByFromJSON(json: any): V1AnalyticsProductQueriesDetailsRequestSortBy; +export declare function V1AnalyticsProductQueriesDetailsRequestSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsRequestSortBy; +export declare function V1AnalyticsProductQueriesDetailsRequestSortByToJSON(value?: V1AnalyticsProductQueriesDetailsRequestSortBy | null): any; diff --git a/dist/models/V1AnalyticsProductQueriesDetailsRequestSortBy.js b/dist/models/V1AnalyticsProductQueriesDetailsRequestSortBy.js new file mode 100644 index 0000000..0259eff --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsRequestSortBy.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1AnalyticsProductQueriesDetailsRequestSortBy = void 0; +exports.instanceOfV1AnalyticsProductQueriesDetailsRequestSortBy = instanceOfV1AnalyticsProductQueriesDetailsRequestSortBy; +exports.V1AnalyticsProductQueriesDetailsRequestSortByFromJSON = V1AnalyticsProductQueriesDetailsRequestSortByFromJSON; +exports.V1AnalyticsProductQueriesDetailsRequestSortByFromJSONTyped = V1AnalyticsProductQueriesDetailsRequestSortByFromJSONTyped; +exports.V1AnalyticsProductQueriesDetailsRequestSortByToJSON = V1AnalyticsProductQueriesDetailsRequestSortByToJSON; +/** + * Параметр, по которому товары будут отсортированы. Возможные значения: + * - `BY_SEARCHES` — по количеству запросов; + * - `BY_VIEWS` — по количеству просмотров; + * - `BY_POSITION` — по средней позиции товара; + * - `BY_CONVERSION` — по значению конверсии; + * - `BY_GMV` — по объёму продаж по запросам. + * + * Сортировка по параметрам `BY_VIEWS`, `BY_POSITION` и `BY_CONVERSION` доступна только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * + * @export + */ +exports.V1AnalyticsProductQueriesDetailsRequestSortBy = { + SEARCHES: 'BY_SEARCHES', + VIEWS: 'BY_VIEWS', + POSITION: 'BY_POSITION', + CONVERSION: 'BY_CONVERSION', + GMV: 'BY_GMV' +}; +function instanceOfV1AnalyticsProductQueriesDetailsRequestSortBy(value) { + for (const key in exports.V1AnalyticsProductQueriesDetailsRequestSortBy) { + if (Object.prototype.hasOwnProperty.call(exports.V1AnalyticsProductQueriesDetailsRequestSortBy, key)) { + if (exports.V1AnalyticsProductQueriesDetailsRequestSortBy[key] === value) { + return true; + } + } + } + return false; +} +function V1AnalyticsProductQueriesDetailsRequestSortByFromJSON(json) { + return V1AnalyticsProductQueriesDetailsRequestSortByFromJSONTyped(json, false); +} +function V1AnalyticsProductQueriesDetailsRequestSortByFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1AnalyticsProductQueriesDetailsRequestSortByToJSON(value) { + return value; +} diff --git a/dist/models/V1AnalyticsProductQueriesDetailsRequestSortDir.d.ts b/dist/models/V1AnalyticsProductQueriesDetailsRequestSortDir.d.ts new file mode 100644 index 0000000..fa7c49c --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsRequestSortDir.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `DESCENDING` — по убыванию; + * - `ASCENDING` — по возрастанию. + * + * @export + */ +export declare const V1AnalyticsProductQueriesDetailsRequestSortDir: { + readonly DESCENDING: "DESCENDING"; + readonly ASCENDING: "ASCENDING"; +}; +export type V1AnalyticsProductQueriesDetailsRequestSortDir = typeof V1AnalyticsProductQueriesDetailsRequestSortDir[keyof typeof V1AnalyticsProductQueriesDetailsRequestSortDir]; +export declare function instanceOfV1AnalyticsProductQueriesDetailsRequestSortDir(value: any): boolean; +export declare function V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON(json: any): V1AnalyticsProductQueriesDetailsRequestSortDir; +export declare function V1AnalyticsProductQueriesDetailsRequestSortDirFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsRequestSortDir; +export declare function V1AnalyticsProductQueriesDetailsRequestSortDirToJSON(value?: V1AnalyticsProductQueriesDetailsRequestSortDir | null): any; diff --git a/dist/models/V1AnalyticsProductQueriesDetailsRequestSortDir.js b/dist/models/V1AnalyticsProductQueriesDetailsRequestSortDir.js new file mode 100644 index 0000000..541025b --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsRequestSortDir.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1AnalyticsProductQueriesDetailsRequestSortDir = void 0; +exports.instanceOfV1AnalyticsProductQueriesDetailsRequestSortDir = instanceOfV1AnalyticsProductQueriesDetailsRequestSortDir; +exports.V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON = V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON; +exports.V1AnalyticsProductQueriesDetailsRequestSortDirFromJSONTyped = V1AnalyticsProductQueriesDetailsRequestSortDirFromJSONTyped; +exports.V1AnalyticsProductQueriesDetailsRequestSortDirToJSON = V1AnalyticsProductQueriesDetailsRequestSortDirToJSON; +/** + * Направление сортировки: + * - `DESCENDING` — по убыванию; + * - `ASCENDING` — по возрастанию. + * + * @export + */ +exports.V1AnalyticsProductQueriesDetailsRequestSortDir = { + DESCENDING: 'DESCENDING', + ASCENDING: 'ASCENDING' +}; +function instanceOfV1AnalyticsProductQueriesDetailsRequestSortDir(value) { + for (const key in exports.V1AnalyticsProductQueriesDetailsRequestSortDir) { + if (Object.prototype.hasOwnProperty.call(exports.V1AnalyticsProductQueriesDetailsRequestSortDir, key)) { + if (exports.V1AnalyticsProductQueriesDetailsRequestSortDir[key] === value) { + return true; + } + } + } + return false; +} +function V1AnalyticsProductQueriesDetailsRequestSortDirFromJSON(json) { + return V1AnalyticsProductQueriesDetailsRequestSortDirFromJSONTyped(json, false); +} +function V1AnalyticsProductQueriesDetailsRequestSortDirFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1AnalyticsProductQueriesDetailsRequestSortDirToJSON(value) { + return value; +} diff --git a/dist/models/V1AnalyticsProductQueriesDetailsResponse.d.ts b/dist/models/V1AnalyticsProductQueriesDetailsResponse.d.ts new file mode 100644 index 0000000..681bbcb --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod } from './V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod'; +import type { AnalyticsProductQueriesDetailsResponseQuery } from './AnalyticsProductQueriesDetailsResponseQuery'; +/** + * + * @export + * @interface V1AnalyticsProductQueriesDetailsResponse + */ +export interface V1AnalyticsProductQueriesDetailsResponse { + /** + * + * @type {V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod} + * @memberof V1AnalyticsProductQueriesDetailsResponse + */ + analytics_period?: V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; + /** + * Количество страниц. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsResponse + */ + page_count?: number; + /** + * Список запросов. + * @type {Array} + * @memberof V1AnalyticsProductQueriesDetailsResponse + */ + queries?: Array; + /** + * Общее количество запросов. + * @type {number} + * @memberof V1AnalyticsProductQueriesDetailsResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsResponse interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesDetailsResponse(value: object): value is V1AnalyticsProductQueriesDetailsResponse; +export declare function V1AnalyticsProductQueriesDetailsResponseFromJSON(json: any): V1AnalyticsProductQueriesDetailsResponse; +export declare function V1AnalyticsProductQueriesDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsResponse; +export declare function V1AnalyticsProductQueriesDetailsResponseToJSON(value?: V1AnalyticsProductQueriesDetailsResponse | null): any; diff --git a/dist/models/V1AnalyticsProductQueriesDetailsResponse.js b/dist/models/V1AnalyticsProductQueriesDetailsResponse.js new file mode 100644 index 0000000..bffad7a --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsProductQueriesDetailsResponse = instanceOfV1AnalyticsProductQueriesDetailsResponse; +exports.V1AnalyticsProductQueriesDetailsResponseFromJSON = V1AnalyticsProductQueriesDetailsResponseFromJSON; +exports.V1AnalyticsProductQueriesDetailsResponseFromJSONTyped = V1AnalyticsProductQueriesDetailsResponseFromJSONTyped; +exports.V1AnalyticsProductQueriesDetailsResponseToJSON = V1AnalyticsProductQueriesDetailsResponseToJSON; +const V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod_1 = require("./V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod"); +const AnalyticsProductQueriesDetailsResponseQuery_1 = require("./AnalyticsProductQueriesDetailsResponseQuery"); +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsResponse interface. + */ +function instanceOfV1AnalyticsProductQueriesDetailsResponse(value) { + return true; +} +function V1AnalyticsProductQueriesDetailsResponseFromJSON(json) { + return V1AnalyticsProductQueriesDetailsResponseFromJSONTyped(json, false); +} +function V1AnalyticsProductQueriesDetailsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_period': json['analytics_period'] == null ? undefined : (0, V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod_1.V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON)(json['analytics_period']), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + 'queries': json['queries'] == null ? undefined : (json['queries'].map(AnalyticsProductQueriesDetailsResponseQuery_1.AnalyticsProductQueriesDetailsResponseQueryFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V1AnalyticsProductQueriesDetailsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_period': (0, V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod_1.V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON)(value['analytics_period']), + 'page_count': value['page_count'], + 'queries': value['queries'] == null ? undefined : (value['queries'].map(AnalyticsProductQueriesDetailsResponseQuery_1.AnalyticsProductQueriesDetailsResponseQueryToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.d.ts b/dist/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.d.ts new file mode 100644 index 0000000..422935e --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, за который формируется аналитика. + * @export + * @interface V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod + */ +export interface V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod { + /** + * Дата начала формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod + */ + date_from?: string; + /** + * Дата окончания формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod + */ + date_to?: string; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod(value: object): value is V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; +export declare function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON(json: any): V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; +export declare function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; +export declare function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON(value?: V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod | null): any; diff --git a/dist/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.js b/dist/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.js new file mode 100644 index 0000000..c542a96 --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod = instanceOfV1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod; +exports.V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON = V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON; +exports.V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSONTyped = V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSONTyped; +exports.V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON = V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON; +/** + * Check if a given object implements the V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod interface. + */ +function instanceOfV1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod(value) { + return true; +} +function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSON(json) { + return V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSONTyped(json, false); +} +function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + }; +} +function V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/models/V1AnalyticsProductQueriesRequest.d.ts b/dist/models/V1AnalyticsProductQueriesRequest.d.ts new file mode 100644 index 0000000..2a82c56 --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesRequest.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsProductQueriesRequestSortDir } from './AnalyticsProductQueriesRequestSortDir'; +import type { AnalyticsProductQueriesRequestSortBy } from './AnalyticsProductQueriesRequestSortBy'; +/** + * + * @export + * @interface V1AnalyticsProductQueriesRequest + */ +export interface V1AnalyticsProductQueriesRequest { + /** + * Дата начала формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesRequest + */ + date_from: string; + /** + * Дата окончания формирования аналитики. + * @type {string} + * @memberof V1AnalyticsProductQueriesRequest + */ + date_to?: string; + /** + * Индекс страницы, которую возвращает запрос. + * @type {number} + * @memberof V1AnalyticsProductQueriesRequest + */ + page?: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V1AnalyticsProductQueriesRequest + */ + page_size: number; + /** + * Список SKU, идентификаторов товара в системе Ozon. По ним вернётся аналитика по запросам. Максимум — 1000 SKU. + * @type {Array} + * @memberof V1AnalyticsProductQueriesRequest + */ + skus: Array; + /** + * + * @type {AnalyticsProductQueriesRequestSortBy} + * @memberof V1AnalyticsProductQueriesRequest + */ + sort_by?: AnalyticsProductQueriesRequestSortBy; + /** + * + * @type {AnalyticsProductQueriesRequestSortDir} + * @memberof V1AnalyticsProductQueriesRequest + */ + sort_dir?: AnalyticsProductQueriesRequestSortDir; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesRequest interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesRequest(value: object): value is V1AnalyticsProductQueriesRequest; +export declare function V1AnalyticsProductQueriesRequestFromJSON(json: any): V1AnalyticsProductQueriesRequest; +export declare function V1AnalyticsProductQueriesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesRequest; +export declare function V1AnalyticsProductQueriesRequestToJSON(value?: V1AnalyticsProductQueriesRequest | null): any; diff --git a/dist/models/V1AnalyticsProductQueriesRequest.js b/dist/models/V1AnalyticsProductQueriesRequest.js new file mode 100644 index 0000000..8682f7b --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesRequest.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsProductQueriesRequest = instanceOfV1AnalyticsProductQueriesRequest; +exports.V1AnalyticsProductQueriesRequestFromJSON = V1AnalyticsProductQueriesRequestFromJSON; +exports.V1AnalyticsProductQueriesRequestFromJSONTyped = V1AnalyticsProductQueriesRequestFromJSONTyped; +exports.V1AnalyticsProductQueriesRequestToJSON = V1AnalyticsProductQueriesRequestToJSON; +const AnalyticsProductQueriesRequestSortDir_1 = require("./AnalyticsProductQueriesRequestSortDir"); +const AnalyticsProductQueriesRequestSortBy_1 = require("./AnalyticsProductQueriesRequestSortBy"); +/** + * Check if a given object implements the V1AnalyticsProductQueriesRequest interface. + */ +function instanceOfV1AnalyticsProductQueriesRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1AnalyticsProductQueriesRequestFromJSON(json) { + return V1AnalyticsProductQueriesRequestFromJSONTyped(json, false); +} +function V1AnalyticsProductQueriesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'], + 'skus': json['skus'], + 'sort_by': json['sort_by'] == null ? undefined : (0, AnalyticsProductQueriesRequestSortBy_1.AnalyticsProductQueriesRequestSortByFromJSON)(json['sort_by']), + 'sort_dir': json['sort_dir'] == null ? undefined : (0, AnalyticsProductQueriesRequestSortDir_1.AnalyticsProductQueriesRequestSortDirFromJSON)(json['sort_dir']), + }; +} +function V1AnalyticsProductQueriesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'page': value['page'], + 'page_size': value['page_size'], + 'skus': value['skus'], + 'sort_by': (0, AnalyticsProductQueriesRequestSortBy_1.AnalyticsProductQueriesRequestSortByToJSON)(value['sort_by']), + 'sort_dir': (0, AnalyticsProductQueriesRequestSortDir_1.AnalyticsProductQueriesRequestSortDirToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/V1AnalyticsProductQueriesResponse.d.ts b/dist/models/V1AnalyticsProductQueriesResponse.d.ts new file mode 100644 index 0000000..1219ddf --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AnalyticsProductQueriesResponseAnalyticsPeriod } from './AnalyticsProductQueriesResponseAnalyticsPeriod'; +import type { V1AnalyticsProductQueriesResponseItem } from './V1AnalyticsProductQueriesResponseItem'; +/** + * + * @export + * @interface V1AnalyticsProductQueriesResponse + */ +export interface V1AnalyticsProductQueriesResponse { + /** + * + * @type {AnalyticsProductQueriesResponseAnalyticsPeriod} + * @memberof V1AnalyticsProductQueriesResponse + */ + analytics_period?: AnalyticsProductQueriesResponseAnalyticsPeriod; + /** + * Список товаров. + * @type {Array} + * @memberof V1AnalyticsProductQueriesResponse + */ + items?: Array; + /** + * Количество страниц. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponse + */ + page_count?: number; + /** + * Общее количество запросов. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesResponse interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesResponse(value: object): value is V1AnalyticsProductQueriesResponse; +export declare function V1AnalyticsProductQueriesResponseFromJSON(json: any): V1AnalyticsProductQueriesResponse; +export declare function V1AnalyticsProductQueriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesResponse; +export declare function V1AnalyticsProductQueriesResponseToJSON(value?: V1AnalyticsProductQueriesResponse | null): any; diff --git a/dist/models/V1AnalyticsProductQueriesResponse.js b/dist/models/V1AnalyticsProductQueriesResponse.js new file mode 100644 index 0000000..9f1f906 --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsProductQueriesResponse = instanceOfV1AnalyticsProductQueriesResponse; +exports.V1AnalyticsProductQueriesResponseFromJSON = V1AnalyticsProductQueriesResponseFromJSON; +exports.V1AnalyticsProductQueriesResponseFromJSONTyped = V1AnalyticsProductQueriesResponseFromJSONTyped; +exports.V1AnalyticsProductQueriesResponseToJSON = V1AnalyticsProductQueriesResponseToJSON; +const AnalyticsProductQueriesResponseAnalyticsPeriod_1 = require("./AnalyticsProductQueriesResponseAnalyticsPeriod"); +const V1AnalyticsProductQueriesResponseItem_1 = require("./V1AnalyticsProductQueriesResponseItem"); +/** + * Check if a given object implements the V1AnalyticsProductQueriesResponse interface. + */ +function instanceOfV1AnalyticsProductQueriesResponse(value) { + return true; +} +function V1AnalyticsProductQueriesResponseFromJSON(json) { + return V1AnalyticsProductQueriesResponseFromJSONTyped(json, false); +} +function V1AnalyticsProductQueriesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'analytics_period': json['analytics_period'] == null ? undefined : (0, AnalyticsProductQueriesResponseAnalyticsPeriod_1.AnalyticsProductQueriesResponseAnalyticsPeriodFromJSON)(json['analytics_period']), + 'items': json['items'] == null ? undefined : (json['items'].map(V1AnalyticsProductQueriesResponseItem_1.V1AnalyticsProductQueriesResponseItemFromJSON)), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V1AnalyticsProductQueriesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'analytics_period': (0, AnalyticsProductQueriesResponseAnalyticsPeriod_1.AnalyticsProductQueriesResponseAnalyticsPeriodToJSON)(value['analytics_period']), + 'items': value['items'] == null ? undefined : (value['items'].map(V1AnalyticsProductQueriesResponseItem_1.V1AnalyticsProductQueriesResponseItemToJSON)), + 'page_count': value['page_count'], + 'total': value['total'], + }; +} diff --git a/dist/models/V1AnalyticsProductQueriesResponseItem.d.ts b/dist/models/V1AnalyticsProductQueriesResponseItem.d.ts new file mode 100644 index 0000000..72b9538 --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesResponseItem.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsProductQueriesResponseItem + */ +export interface V1AnalyticsProductQueriesResponseItem { + /** + * Название категории. + * @type {string} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + category?: string; + /** + * Валюта. + * @type {string} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + currency?: string; + /** + * Продажи по запросам. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + gmv?: number; + /** + * Название товара. + * @type {string} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + offer_id?: string; + /** + * Средняя позиция товара. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + position?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + sku?: number; + /** + * Количество покупателей, которые искали ваш товар на Ozon. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + unique_search_users?: number; + /** + * Количество покупателей, которые увидели ваш товар на Ozon. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + unique_view_users?: number; + /** + * Конверсия из просмотра товара. Доступно только с подпиской [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program) или [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus), иначе поле вернётся пустым. + * @type {number} + * @memberof V1AnalyticsProductQueriesResponseItem + */ + view_conversion?: number; +} +/** + * Check if a given object implements the V1AnalyticsProductQueriesResponseItem interface. + */ +export declare function instanceOfV1AnalyticsProductQueriesResponseItem(value: object): value is V1AnalyticsProductQueriesResponseItem; +export declare function V1AnalyticsProductQueriesResponseItemFromJSON(json: any): V1AnalyticsProductQueriesResponseItem; +export declare function V1AnalyticsProductQueriesResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsProductQueriesResponseItem; +export declare function V1AnalyticsProductQueriesResponseItemToJSON(value?: V1AnalyticsProductQueriesResponseItem | null): any; diff --git a/dist/models/V1AnalyticsProductQueriesResponseItem.js b/dist/models/V1AnalyticsProductQueriesResponseItem.js new file mode 100644 index 0000000..3de22ff --- /dev/null +++ b/dist/models/V1AnalyticsProductQueriesResponseItem.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsProductQueriesResponseItem = instanceOfV1AnalyticsProductQueriesResponseItem; +exports.V1AnalyticsProductQueriesResponseItemFromJSON = V1AnalyticsProductQueriesResponseItemFromJSON; +exports.V1AnalyticsProductQueriesResponseItemFromJSONTyped = V1AnalyticsProductQueriesResponseItemFromJSONTyped; +exports.V1AnalyticsProductQueriesResponseItemToJSON = V1AnalyticsProductQueriesResponseItemToJSON; +/** + * Check if a given object implements the V1AnalyticsProductQueriesResponseItem interface. + */ +function instanceOfV1AnalyticsProductQueriesResponseItem(value) { + return true; +} +function V1AnalyticsProductQueriesResponseItemFromJSON(json) { + return V1AnalyticsProductQueriesResponseItemFromJSONTyped(json, false); +} +function V1AnalyticsProductQueriesResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'category': json['category'] == null ? undefined : json['category'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'gmv': json['gmv'] == null ? undefined : json['gmv'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'position': json['position'] == null ? undefined : json['position'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'unique_search_users': json['unique_search_users'] == null ? undefined : json['unique_search_users'], + 'unique_view_users': json['unique_view_users'] == null ? undefined : json['unique_view_users'], + 'view_conversion': json['view_conversion'] == null ? undefined : json['view_conversion'], + }; +} +function V1AnalyticsProductQueriesResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'category': value['category'], + 'currency': value['currency'], + 'gmv': value['gmv'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'position': value['position'], + 'sku': value['sku'], + 'unique_search_users': value['unique_search_users'], + 'unique_view_users': value['unique_view_users'], + 'view_conversion': value['view_conversion'], + }; +} diff --git a/dist/models/V1AnalyticsStocksRequest.d.ts b/dist/models/V1AnalyticsStocksRequest.d.ts new file mode 100644 index 0000000..f67d325 --- /dev/null +++ b/dist/models/V1AnalyticsStocksRequest.d.ts @@ -0,0 +1,155 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsStocksRequest + */ +export interface V1AnalyticsStocksRequest { + /** + * Фильтр по идентификаторам кластеров. Получить идентификаторы можно через метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + cluster_ids?: Array; + /** + * Фильтр по тегам товара: + * - `ITEM_ATTRIBUTE_NONE` — без тега; + * - `ECONOM` — эконом-товар; + * - `NOVEL` — новинка; + * - `DISCOUNT` — уценённый товар; + * - `FBS_RETURN` — товар из возврата FBS; + * - `SUPER` — Super-товар; + * - `MARKABLE` — товар, подлежащий маркировке. + * + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + item_tags?: Array; + /** + * Фильтр по идентификаторам макролокальных кластеров. Получить идентификаторы можно в параметре `macrolocal_cluster_ids` метода [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList) или через метод [/v2/cluster/list](#operation/DraftClusterList). + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + macrolocal_cluster_ids?: Array; + /** + * Зона размещения товара: + * - `PLACEMENT_ZONE_NONE` — не указана; + * - `CLOSED_ZONE` — закрытая; + * - `DANGEROUS_GOOD` — опасные товары; + * - `PRODUCTS_PLUS_17` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT_MEZ` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — ещё не определена. + * + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + placement_zone?: Array; + /** + * Фильтр по идентификаторам товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + skus: Array; + /** + * Фильтр по статусу ликвидности товаров: + * - `TURNOVER_GRADE_NONE` — нет статуса ликвидности. + * - `DEFICIT` — дефицитный. Остатков товара хватит до 28 дней. + * - `POPULAR` — очень популярный. Остатков товара хватит на 28–56 дней. + * - `ACTUAL` — популярный. Остатков товара хватит на 56–120 дней. + * - `SURPLUS` — избыточный. Товар продаётся медленно, остатков хватит более чем на 120 дней. + * - `NO_SALES` — без продаж. У товара нет продаж последние 28 дней. + * - `WAS_NO_SALES` — был без продаж. У товара не было продаж и остатков последние 28 дней. + * - `RESTRICTED_NO_SALES` — без продаж, ограничен. У товара не было продаж более 120 дней. Такой товар [нельзя добавить в поставку](https://seller-edu.ozon.ru/fbo/rabota-so-stokom/nehodovye-tovary). + * - `COLLECTING_DATA` — сбор данных. Для расчёта ликвидности нового товара собираем данные в течение 60 дней после поставки. + * - `WAITING_FOR_SUPPLY` — ожидаем поставки. На складе нет остатков, доступных к продаже. Сделайте поставку для начала сбора данных. + * - `WAS_DEFICIT` — был дефицитным. Товар был дефицитным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_POPULAR` — был очень популярным. Товар был очень популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_ACTUAL` — был популярным. Товар был популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_SURPLUS` — был избыточным. Товар был избыточным последние 56 дней. Сейчас у него нет остатков. + * + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + turnover_grades?: Array; + /** + * `true`, чтобы получить только товары, которые нужно промаркировать. + * + * @type {boolean} + * @memberof V1AnalyticsStocksRequest + */ + unmarked_stocks_only?: boolean; + /** + * Фильтр по идентификаторам складов. Получить идентификаторы можно через метод [/v1/warehouse/list](#operation/WarehouseAPI_WarehouseList). + * @type {Array} + * @memberof V1AnalyticsStocksRequest + */ + warehouse_ids?: Array; +} +/** + * @export + */ +export declare const V1AnalyticsStocksRequestItemTagsEnum: { + readonly ITEM_ATTRIBUTE_NONE: "ITEM_ATTRIBUTE_NONE"; + readonly ECONOM: "ECONOM"; + readonly NOVEL: "NOVEL"; + readonly DISCOUNT: "DISCOUNT"; + readonly FBS_RETURN: "FBS_RETURN"; + readonly SUPER: "SUPER"; + readonly MARKABLE: "MARKABLE"; +}; +export type V1AnalyticsStocksRequestItemTagsEnum = typeof V1AnalyticsStocksRequestItemTagsEnum[keyof typeof V1AnalyticsStocksRequestItemTagsEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksRequestPlacementZoneEnum: { + readonly PLACEMENT_ZONE_NONE: "PLACEMENT_ZONE_NONE"; + readonly CLOSED_ZONE: "CLOSED_ZONE"; + readonly DANGEROUS_GOOD: "DANGEROUS_GOOD"; + readonly PRODUCTS_PLUS_17: "PRODUCTS_PLUS_17"; + readonly SORT: "SORT"; + readonly NON_SORT_MEZ: "NON_SORT_MEZ"; + readonly OVERSIZE: "OVERSIZE"; + readonly JEWELRY: "JEWELRY"; + readonly UNRESOLVED: "UNRESOLVED"; +}; +export type V1AnalyticsStocksRequestPlacementZoneEnum = typeof V1AnalyticsStocksRequestPlacementZoneEnum[keyof typeof V1AnalyticsStocksRequestPlacementZoneEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksRequestTurnoverGradesEnum: { + readonly TURNOVER_GRADE_NONE: "TURNOVER_GRADE_NONE"; + readonly DEFICIT: "DEFICIT"; + readonly POPULAR: "POPULAR"; + readonly ACTUAL: "ACTUAL"; + readonly SURPLUS: "SURPLUS"; + readonly NO_SALES: "NO_SALES"; + readonly WAS_NO_SALES: "WAS_NO_SALES"; + readonly RESTRICTED_NO_SALES: "RESTRICTED_NO_SALES"; + readonly COLLECTING_DATA: "COLLECTING_DATA"; + readonly WAITING_FOR_SUPPLY: "WAITING_FOR_SUPPLY"; + readonly WAS_DEFICIT: "WAS_DEFICIT"; + readonly WAS_POPULAR: "WAS_POPULAR"; + readonly WAS_ACTUAL: "WAS_ACTUAL"; + readonly WAS_SURPLUS: "WAS_SURPLUS"; +}; +export type V1AnalyticsStocksRequestTurnoverGradesEnum = typeof V1AnalyticsStocksRequestTurnoverGradesEnum[keyof typeof V1AnalyticsStocksRequestTurnoverGradesEnum]; +/** + * Check if a given object implements the V1AnalyticsStocksRequest interface. + */ +export declare function instanceOfV1AnalyticsStocksRequest(value: object): value is V1AnalyticsStocksRequest; +export declare function V1AnalyticsStocksRequestFromJSON(json: any): V1AnalyticsStocksRequest; +export declare function V1AnalyticsStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsStocksRequest; +export declare function V1AnalyticsStocksRequestToJSON(value?: V1AnalyticsStocksRequest | null): any; diff --git a/dist/models/V1AnalyticsStocksRequest.js b/dist/models/V1AnalyticsStocksRequest.js new file mode 100644 index 0000000..342e4fd --- /dev/null +++ b/dist/models/V1AnalyticsStocksRequest.js @@ -0,0 +1,106 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1AnalyticsStocksRequestTurnoverGradesEnum = exports.V1AnalyticsStocksRequestPlacementZoneEnum = exports.V1AnalyticsStocksRequestItemTagsEnum = void 0; +exports.instanceOfV1AnalyticsStocksRequest = instanceOfV1AnalyticsStocksRequest; +exports.V1AnalyticsStocksRequestFromJSON = V1AnalyticsStocksRequestFromJSON; +exports.V1AnalyticsStocksRequestFromJSONTyped = V1AnalyticsStocksRequestFromJSONTyped; +exports.V1AnalyticsStocksRequestToJSON = V1AnalyticsStocksRequestToJSON; +/** + * @export + */ +exports.V1AnalyticsStocksRequestItemTagsEnum = { + ITEM_ATTRIBUTE_NONE: 'ITEM_ATTRIBUTE_NONE', + ECONOM: 'ECONOM', + NOVEL: 'NOVEL', + DISCOUNT: 'DISCOUNT', + FBS_RETURN: 'FBS_RETURN', + SUPER: 'SUPER', + MARKABLE: 'MARKABLE' +}; +/** + * @export + */ +exports.V1AnalyticsStocksRequestPlacementZoneEnum = { + PLACEMENT_ZONE_NONE: 'PLACEMENT_ZONE_NONE', + CLOSED_ZONE: 'CLOSED_ZONE', + DANGEROUS_GOOD: 'DANGEROUS_GOOD', + PRODUCTS_PLUS_17: 'PRODUCTS_PLUS_17', + SORT: 'SORT', + NON_SORT_MEZ: 'NON_SORT_MEZ', + OVERSIZE: 'OVERSIZE', + JEWELRY: 'JEWELRY', + UNRESOLVED: 'UNRESOLVED' +}; +/** + * @export + */ +exports.V1AnalyticsStocksRequestTurnoverGradesEnum = { + TURNOVER_GRADE_NONE: 'TURNOVER_GRADE_NONE', + DEFICIT: 'DEFICIT', + POPULAR: 'POPULAR', + ACTUAL: 'ACTUAL', + SURPLUS: 'SURPLUS', + NO_SALES: 'NO_SALES', + WAS_NO_SALES: 'WAS_NO_SALES', + RESTRICTED_NO_SALES: 'RESTRICTED_NO_SALES', + COLLECTING_DATA: 'COLLECTING_DATA', + WAITING_FOR_SUPPLY: 'WAITING_FOR_SUPPLY', + WAS_DEFICIT: 'WAS_DEFICIT', + WAS_POPULAR: 'WAS_POPULAR', + WAS_ACTUAL: 'WAS_ACTUAL', + WAS_SURPLUS: 'WAS_SURPLUS' +}; +/** + * Check if a given object implements the V1AnalyticsStocksRequest interface. + */ +function instanceOfV1AnalyticsStocksRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1AnalyticsStocksRequestFromJSON(json) { + return V1AnalyticsStocksRequestFromJSONTyped(json, false); +} +function V1AnalyticsStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_ids': json['cluster_ids'] == null ? undefined : json['cluster_ids'], + 'item_tags': json['item_tags'] == null ? undefined : json['item_tags'], + 'macrolocal_cluster_ids': json['macrolocal_cluster_ids'] == null ? undefined : json['macrolocal_cluster_ids'], + 'placement_zone': json['placement_zone'] == null ? undefined : json['placement_zone'], + 'skus': json['skus'], + 'turnover_grades': json['turnover_grades'] == null ? undefined : json['turnover_grades'], + 'unmarked_stocks_only': json['unmarked_stocks_only'] == null ? undefined : json['unmarked_stocks_only'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function V1AnalyticsStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_ids': value['cluster_ids'], + 'item_tags': value['item_tags'], + 'macrolocal_cluster_ids': value['macrolocal_cluster_ids'], + 'placement_zone': value['placement_zone'], + 'skus': value['skus'], + 'turnover_grades': value['turnover_grades'], + 'unmarked_stocks_only': value['unmarked_stocks_only'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/V1AnalyticsStocksResponse.d.ts b/dist/models/V1AnalyticsStocksResponse.d.ts new file mode 100644 index 0000000..b3fcbc9 --- /dev/null +++ b/dist/models/V1AnalyticsStocksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsStocksResponseItem } from './V1AnalyticsStocksResponseItem'; +/** + * + * @export + * @interface V1AnalyticsStocksResponse + */ +export interface V1AnalyticsStocksResponse { + /** + * Информация о товарах. + * @type {Array} + * @memberof V1AnalyticsStocksResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1AnalyticsStocksResponse interface. + */ +export declare function instanceOfV1AnalyticsStocksResponse(value: object): value is V1AnalyticsStocksResponse; +export declare function V1AnalyticsStocksResponseFromJSON(json: any): V1AnalyticsStocksResponse; +export declare function V1AnalyticsStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsStocksResponse; +export declare function V1AnalyticsStocksResponseToJSON(value?: V1AnalyticsStocksResponse | null): any; diff --git a/dist/models/V1AnalyticsStocksResponse.js b/dist/models/V1AnalyticsStocksResponse.js new file mode 100644 index 0000000..b3a6d79 --- /dev/null +++ b/dist/models/V1AnalyticsStocksResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsStocksResponse = instanceOfV1AnalyticsStocksResponse; +exports.V1AnalyticsStocksResponseFromJSON = V1AnalyticsStocksResponseFromJSON; +exports.V1AnalyticsStocksResponseFromJSONTyped = V1AnalyticsStocksResponseFromJSONTyped; +exports.V1AnalyticsStocksResponseToJSON = V1AnalyticsStocksResponseToJSON; +const V1AnalyticsStocksResponseItem_1 = require("./V1AnalyticsStocksResponseItem"); +/** + * Check if a given object implements the V1AnalyticsStocksResponse interface. + */ +function instanceOfV1AnalyticsStocksResponse(value) { + return true; +} +function V1AnalyticsStocksResponseFromJSON(json) { + return V1AnalyticsStocksResponseFromJSONTyped(json, false); +} +function V1AnalyticsStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1AnalyticsStocksResponseItem_1.V1AnalyticsStocksResponseItemFromJSON)), + }; +} +function V1AnalyticsStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1AnalyticsStocksResponseItem_1.V1AnalyticsStocksResponseItemToJSON)), + }; +} diff --git a/dist/models/V1AnalyticsStocksResponseItem.d.ts b/dist/models/V1AnalyticsStocksResponseItem.d.ts new file mode 100644 index 0000000..7859cd9 --- /dev/null +++ b/dist/models/V1AnalyticsStocksResponseItem.d.ts @@ -0,0 +1,333 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsStocksResponseItem + */ +export interface V1AnalyticsStocksResponseItem { + /** + * Среднесуточное количество проданных единиц товара за последние 28 дней по всем кластерам. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + ads?: number; + /** + * Среднесуточное количество проданных единиц товара за последние 28 дней в кластере. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + ads_cluster?: number; + /** + * Количество товаров, которые доступны к продаже. Соответствует столбцу «Доступно к продаже». + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + available_stock_count?: number; + /** + * Идентификатор кластера. Получить подробную информацию о кластере можно через метод [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + cluster_id?: number; + /** + * Название кластера. + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + cluster_name?: string; + /** + * Количество дней без продаж по всем кластерам. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + days_without_sales?: number; + /** + * Количество дней без продаж в кластере. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + days_without_sales_cluster?: number; + /** + * Количество излишков с поставки, которые доступны к вывозу. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + excess_stock_count?: number; + /** + * Количество единиц товара с истекающим сроком годности. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + expiring_stock_count?: number; + /** + * Количество дней, на которое хватит остатка товара с учётом среднесуточных продаж за 28 дней по всем кластерам. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + idc?: number; + /** + * Количество дней, на которое хватит остатка товара с учётом среднесуточных продаж за 28 дней в кластере. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + idc_cluster?: number; + /** + * Теги товара: + * - `UNSPECIFIED` — не определено; + * - `ITEM_ATTRIBUTE_NONE` — без тега; + * - `ECONOM` — эконом-товар; + * - `NOVEL` — новинка; + * - `DISCOUNT` — уценённый товар; + * - `FBS_RETURN` — товар из возврата FBS; + * - `SUPER` — Super-товар; + * - `MARKABLE` — товар, подлежащий маркировке. + * + * @type {Array} + * @memberof V1AnalyticsStocksResponseItem + */ + item_tags?: Array; + /** + * Идентификатор макролокального кластера. Получите информацию о кластере методом [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList) или [/v2/cluster/list](#operation/DraftClusterList). + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + macrolocal_cluster_id?: number; + /** + * Название товара. + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + offer_id?: string; + /** + * Количество единиц товара, проходящих проверку. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + other_stock_count?: number; + /** + * Зона размещения товара: + * - `UNSPECIFIED` — не указана; + * - `CLOSED_ZONE` — закрытая; + * - `DANGEROUS_GOOD` — опасные товары; + * - `PRODUCTS` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — ещё не определена. + * + * @type {Array} + * @memberof V1AnalyticsStocksResponseItem + */ + placement_zone?: Array; + /** + * Количество единиц товара в заявках на поставку. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + requested_stock_count?: number; + /** + * Количество единиц товара в процессе возврата от покупателей. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + return_from_customer_stock_count?: number; + /** + * Количество единиц товара, готовящихся к вывозу по вашей заявке. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + return_to_seller_stock_count?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + sku?: number; + /** + * Количество брака, доступное к вывозу со стока. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + stock_defect_stock_count?: number; + /** + * Количество брака, доступное к вывозу с поставки. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + transit_defect_stock_count?: number; + /** + * Количество единиц товара в поставках в пути. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + transit_stock_count?: number; + /** + * Статус ликвидности товара по всем кластерам: + * - `UNSPECIFIED` — значение не определено. + * - `TURNOVER_GRADE_NONE` — нет статуса ликвидности. + * - `DEFICIT` — дефицитный. Остатков товара хватит до 28 дней. + * - `POPULAR` — очень популярный. Остатков товара хватит на 28–56 дней. + * - `ACTUAL` — популярный. Остатков товара хватит на 56–120 дней. + * - `SURPLUS` — избыточный. Товар продаётся медленно, остатков хватит более чем на 120 дней. + * - `NO_SALES` — без продаж. У товара нет продаж последние 28 дней. + * - `WAS_NO_SALES` — был без продаж. У товара не было продаж и остатков последние 28 дней. + * - `RESTRICTED_NO_SALES` — без продаж, ограничен. У товара не было продаж более 120 дней. Такой товар [нельзя добавить в поставку](https://seller-edu.ozon.ru/fbo/rabota-so-stokom/nehodovye-tovary). + * - `COLLECTING_DATA` — сбор данных. Для расчёта ликвидности нового товара собираем данные в течение 60 дней после поставки. + * - `WAITING_FOR_SUPPLY` — ожидаем поставки. На складе нет остатков, доступных к продаже. Сделайте поставку для начала сбора данных. + * - `WAS_DEFICIT` — был дефицитным. Товар был дефицитным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_POPULAR` — был очень популярным. Товар был очень популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_ACTUAL` — был популярным. Товар был популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_SURPLUS` — был избыточным. Товар был избыточным последние 56 дней. Сейчас у него нет остатков. + * + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + turnover_grade?: V1AnalyticsStocksResponseItemTurnoverGradeEnum; + /** + * Статус ликвидности товара в кластере: + * - `UNSPECIFIED` — значение не определено. + * - `TURNOVER_GRADE_NONE` — нет статуса ликвидности. + * - `DEFICIT` — дефицитный. Остатков товара хватит до 28 дней. + * - `POPULAR` — очень популярный. Остатков товара хватит на 28–56 дней. + * - `ACTUAL` — популярный. Остатков товара хватит на 56–120 дней. + * - `SURPLUS` — избыточный. Товар продаётся медленно, остатков хватит более чем на 120 дней. + * - `NO_SALES` — без продаж. У товара нет продаж последние 28 дней. + * - `WAS_NO_SALES` — был без продаж. У товара не было продаж и остатков последние 28 дней. + * - `RESTRICTED_NO_SALES` — без продаж, ограничен. У товара не было продаж более 120 дней. Такой товар [нельзя добавить в поставку](https://seller-edu.ozon.ru/fbo/rabota-so-stokom/nehodovye-tovary). + * - `COLLECTING_DATA` — сбор данных. Для расчёта ликвидности нового товара собираем данные в течение 60 дней после поставки. + * - `WAITING_FOR_SUPPLY` — ожидаем поставки. На складе нет остатков, доступных к продаже. Сделайте поставку для начала сбора данных. + * - `WAS_DEFICIT` — был дефицитным. Товар был дефицитным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_POPULAR` — был очень популярным. Товар был очень популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_ACTUAL` — был популярным. Товар был популярным последние 56 дней. Сейчас у него нет остатков. + * - `WAS_SURPLUS` — был избыточным. Товар был избыточным последние 56 дней. Сейчас у него нет остатков. + * + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + turnover_grade_cluster?: V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum; + /** + * Количество товаров, которые готовятся к продаже. Соответствует столбцу «Готовим к продаже». + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + valid_stock_count?: number; + /** + * Количество маркируемых товаров, которые ожидают ваших действий. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + waiting_docs_stock_count?: number; + /** + * Количество маркируемых товаров, которые ожидают вывоз. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + waiting_docs_to_export_stock_count?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1AnalyticsStocksResponseItem + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V1AnalyticsStocksResponseItem + */ + warehouse_name?: string; +} +/** + * @export + */ +export declare const V1AnalyticsStocksResponseItemItemTagsEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly ITEM_ATTRIBUTE_NONE: "ITEM_ATTRIBUTE_NONE"; + readonly ECONOM: "ECONOM"; + readonly NOVEL: "NOVEL"; + readonly DISCOUNT: "DISCOUNT"; + readonly FBS_RETURN: "FBS_RETURN"; + readonly SUPER: "SUPER"; + readonly MARKABLE: "MARKABLE"; +}; +export type V1AnalyticsStocksResponseItemItemTagsEnum = typeof V1AnalyticsStocksResponseItemItemTagsEnum[keyof typeof V1AnalyticsStocksResponseItemItemTagsEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksResponseItemPlacementZoneEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CLOSED_ZONE: "CLOSED_ZONE"; + readonly DANGEROUS_GOOD: "DANGEROUS_GOOD"; + readonly PRODUCTS: "PRODUCTS"; + readonly SORT: "SORT"; + readonly NON_SORT: "NON_SORT"; + readonly OVERSIZE: "OVERSIZE"; + readonly JEWELRY: "JEWELRY"; + readonly UNRESOLVED: "UNRESOLVED"; +}; +export type V1AnalyticsStocksResponseItemPlacementZoneEnum = typeof V1AnalyticsStocksResponseItemPlacementZoneEnum[keyof typeof V1AnalyticsStocksResponseItemPlacementZoneEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksResponseItemTurnoverGradeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly TURNOVER_GRADE_NONE: "TURNOVER_GRADE_NONE"; + readonly DEFICIT: "DEFICIT"; + readonly POPULAR: "POPULAR"; + readonly ACTUAL: "ACTUAL"; + readonly SURPLUS: "SURPLUS"; + readonly NO_SALES: "NO_SALES"; + readonly WAS_NO_SALES: "WAS_NO_SALES"; + readonly RESTRICTED_NO_SALES: "RESTRICTED_NO_SALES"; + readonly COLLECTING_DATA: "COLLECTING_DATA"; + readonly WAITING_FOR_SUPPLY: "WAITING_FOR_SUPPLY"; + readonly WAS_DEFICIT: "WAS_DEFICIT"; + readonly WAS_POPULAR: "WAS_POPULAR"; + readonly WAS_ACTUAL: "WAS_ACTUAL"; + readonly WAS_SURPLUS: "WAS_SURPLUS"; +}; +export type V1AnalyticsStocksResponseItemTurnoverGradeEnum = typeof V1AnalyticsStocksResponseItemTurnoverGradeEnum[keyof typeof V1AnalyticsStocksResponseItemTurnoverGradeEnum]; +/** + * @export + */ +export declare const V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly TURNOVER_GRADE_NONE: "TURNOVER_GRADE_NONE"; + readonly DEFICIT: "DEFICIT"; + readonly POPULAR: "POPULAR"; + readonly ACTUAL: "ACTUAL"; + readonly SURPLUS: "SURPLUS"; + readonly NO_SALES: "NO_SALES"; + readonly WAS_NO_SALES: "WAS_NO_SALES"; + readonly RESTRICTED_NO_SALES: "RESTRICTED_NO_SALES"; + readonly COLLECTING_DATA: "COLLECTING_DATA"; + readonly WAITING_FOR_SUPPLY: "WAITING_FOR_SUPPLY"; + readonly WAS_DEFICIT: "WAS_DEFICIT"; + readonly WAS_POPULAR: "WAS_POPULAR"; + readonly WAS_ACTUAL: "WAS_ACTUAL"; + readonly WAS_SURPLUS: "WAS_SURPLUS"; +}; +export type V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum = typeof V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum[keyof typeof V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum]; +/** + * Check if a given object implements the V1AnalyticsStocksResponseItem interface. + */ +export declare function instanceOfV1AnalyticsStocksResponseItem(value: object): value is V1AnalyticsStocksResponseItem; +export declare function V1AnalyticsStocksResponseItemFromJSON(json: any): V1AnalyticsStocksResponseItem; +export declare function V1AnalyticsStocksResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsStocksResponseItem; +export declare function V1AnalyticsStocksResponseItemToJSON(value?: V1AnalyticsStocksResponseItem | null): any; diff --git a/dist/models/V1AnalyticsStocksResponseItem.js b/dist/models/V1AnalyticsStocksResponseItem.js new file mode 100644 index 0000000..66faaf9 --- /dev/null +++ b/dist/models/V1AnalyticsStocksResponseItem.js @@ -0,0 +1,172 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum = exports.V1AnalyticsStocksResponseItemTurnoverGradeEnum = exports.V1AnalyticsStocksResponseItemPlacementZoneEnum = exports.V1AnalyticsStocksResponseItemItemTagsEnum = void 0; +exports.instanceOfV1AnalyticsStocksResponseItem = instanceOfV1AnalyticsStocksResponseItem; +exports.V1AnalyticsStocksResponseItemFromJSON = V1AnalyticsStocksResponseItemFromJSON; +exports.V1AnalyticsStocksResponseItemFromJSONTyped = V1AnalyticsStocksResponseItemFromJSONTyped; +exports.V1AnalyticsStocksResponseItemToJSON = V1AnalyticsStocksResponseItemToJSON; +/** + * @export + */ +exports.V1AnalyticsStocksResponseItemItemTagsEnum = { + UNSPECIFIED: 'UNSPECIFIED', + ITEM_ATTRIBUTE_NONE: 'ITEM_ATTRIBUTE_NONE', + ECONOM: 'ECONOM', + NOVEL: 'NOVEL', + DISCOUNT: 'DISCOUNT', + FBS_RETURN: 'FBS_RETURN', + SUPER: 'SUPER', + MARKABLE: 'MARKABLE' +}; +/** + * @export + */ +exports.V1AnalyticsStocksResponseItemPlacementZoneEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CLOSED_ZONE: 'CLOSED_ZONE', + DANGEROUS_GOOD: 'DANGEROUS_GOOD', + PRODUCTS: 'PRODUCTS', + SORT: 'SORT', + NON_SORT: 'NON_SORT', + OVERSIZE: 'OVERSIZE', + JEWELRY: 'JEWELRY', + UNRESOLVED: 'UNRESOLVED' +}; +/** + * @export + */ +exports.V1AnalyticsStocksResponseItemTurnoverGradeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + TURNOVER_GRADE_NONE: 'TURNOVER_GRADE_NONE', + DEFICIT: 'DEFICIT', + POPULAR: 'POPULAR', + ACTUAL: 'ACTUAL', + SURPLUS: 'SURPLUS', + NO_SALES: 'NO_SALES', + WAS_NO_SALES: 'WAS_NO_SALES', + RESTRICTED_NO_SALES: 'RESTRICTED_NO_SALES', + COLLECTING_DATA: 'COLLECTING_DATA', + WAITING_FOR_SUPPLY: 'WAITING_FOR_SUPPLY', + WAS_DEFICIT: 'WAS_DEFICIT', + WAS_POPULAR: 'WAS_POPULAR', + WAS_ACTUAL: 'WAS_ACTUAL', + WAS_SURPLUS: 'WAS_SURPLUS' +}; +/** + * @export + */ +exports.V1AnalyticsStocksResponseItemTurnoverGradeClusterEnum = { + UNSPECIFIED: 'UNSPECIFIED', + TURNOVER_GRADE_NONE: 'TURNOVER_GRADE_NONE', + DEFICIT: 'DEFICIT', + POPULAR: 'POPULAR', + ACTUAL: 'ACTUAL', + SURPLUS: 'SURPLUS', + NO_SALES: 'NO_SALES', + WAS_NO_SALES: 'WAS_NO_SALES', + RESTRICTED_NO_SALES: 'RESTRICTED_NO_SALES', + COLLECTING_DATA: 'COLLECTING_DATA', + WAITING_FOR_SUPPLY: 'WAITING_FOR_SUPPLY', + WAS_DEFICIT: 'WAS_DEFICIT', + WAS_POPULAR: 'WAS_POPULAR', + WAS_ACTUAL: 'WAS_ACTUAL', + WAS_SURPLUS: 'WAS_SURPLUS' +}; +/** + * Check if a given object implements the V1AnalyticsStocksResponseItem interface. + */ +function instanceOfV1AnalyticsStocksResponseItem(value) { + return true; +} +function V1AnalyticsStocksResponseItemFromJSON(json) { + return V1AnalyticsStocksResponseItemFromJSONTyped(json, false); +} +function V1AnalyticsStocksResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ads': json['ads'] == null ? undefined : json['ads'], + 'ads_cluster': json['ads_cluster'] == null ? undefined : json['ads_cluster'], + 'available_stock_count': json['available_stock_count'] == null ? undefined : json['available_stock_count'], + 'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'], + 'cluster_name': json['cluster_name'] == null ? undefined : json['cluster_name'], + 'days_without_sales': json['days_without_sales'] == null ? undefined : json['days_without_sales'], + 'days_without_sales_cluster': json['days_without_sales_cluster'] == null ? undefined : json['days_without_sales_cluster'], + 'excess_stock_count': json['excess_stock_count'] == null ? undefined : json['excess_stock_count'], + 'expiring_stock_count': json['expiring_stock_count'] == null ? undefined : json['expiring_stock_count'], + 'idc': json['idc'] == null ? undefined : json['idc'], + 'idc_cluster': json['idc_cluster'] == null ? undefined : json['idc_cluster'], + 'item_tags': json['item_tags'] == null ? undefined : json['item_tags'], + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'other_stock_count': json['other_stock_count'] == null ? undefined : json['other_stock_count'], + 'placement_zone': json['placement_zone'] == null ? undefined : json['placement_zone'], + 'requested_stock_count': json['requested_stock_count'] == null ? undefined : json['requested_stock_count'], + 'return_from_customer_stock_count': json['return_from_customer_stock_count'] == null ? undefined : json['return_from_customer_stock_count'], + 'return_to_seller_stock_count': json['return_to_seller_stock_count'] == null ? undefined : json['return_to_seller_stock_count'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'stock_defect_stock_count': json['stock_defect_stock_count'] == null ? undefined : json['stock_defect_stock_count'], + 'transit_defect_stock_count': json['transit_defect_stock_count'] == null ? undefined : json['transit_defect_stock_count'], + 'transit_stock_count': json['transit_stock_count'] == null ? undefined : json['transit_stock_count'], + 'turnover_grade': json['turnover_grade'] == null ? undefined : json['turnover_grade'], + 'turnover_grade_cluster': json['turnover_grade_cluster'] == null ? undefined : json['turnover_grade_cluster'], + 'valid_stock_count': json['valid_stock_count'] == null ? undefined : json['valid_stock_count'], + 'waiting_docs_stock_count': json['waiting_docs_stock_count'] == null ? undefined : json['waiting_docs_stock_count'], + 'waiting_docs_to_export_stock_count': json['waiting_docs_to_export_stock_count'] == null ? undefined : json['waiting_docs_to_export_stock_count'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function V1AnalyticsStocksResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'ads': value['ads'], + 'ads_cluster': value['ads_cluster'], + 'available_stock_count': value['available_stock_count'], + 'cluster_id': value['cluster_id'], + 'cluster_name': value['cluster_name'], + 'days_without_sales': value['days_without_sales'], + 'days_without_sales_cluster': value['days_without_sales_cluster'], + 'excess_stock_count': value['excess_stock_count'], + 'expiring_stock_count': value['expiring_stock_count'], + 'idc': value['idc'], + 'idc_cluster': value['idc_cluster'], + 'item_tags': value['item_tags'], + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'other_stock_count': value['other_stock_count'], + 'placement_zone': value['placement_zone'], + 'requested_stock_count': value['requested_stock_count'], + 'return_from_customer_stock_count': value['return_from_customer_stock_count'], + 'return_to_seller_stock_count': value['return_to_seller_stock_count'], + 'sku': value['sku'], + 'stock_defect_stock_count': value['stock_defect_stock_count'], + 'transit_defect_stock_count': value['transit_defect_stock_count'], + 'transit_stock_count': value['transit_stock_count'], + 'turnover_grade': value['turnover_grade'], + 'turnover_grade_cluster': value['turnover_grade_cluster'], + 'valid_stock_count': value['valid_stock_count'], + 'waiting_docs_stock_count': value['waiting_docs_stock_count'], + 'waiting_docs_to_export_stock_count': value['waiting_docs_to_export_stock_count'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/V1AnalyticsTurnoverStocksRequest.d.ts b/dist/models/V1AnalyticsTurnoverStocksRequest.d.ts new file mode 100644 index 0000000..61f857b --- /dev/null +++ b/dist/models/V1AnalyticsTurnoverStocksRequest.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsTurnoverStocksRequest + */ +export interface V1AnalyticsTurnoverStocksRequest { + /** + * Количество значений в ответе. + * + * @type {number} + * @memberof V1AnalyticsTurnoverStocksRequest + */ + limit?: number; + /** + * Количество элементов, которое будет пропущено в ответе. + * + * Например, если `offset = 10`, ответ начнётся с 11-го найденного элемента. + * + * @type {number} + * @memberof V1AnalyticsTurnoverStocksRequest + */ + offset?: number; + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1AnalyticsTurnoverStocksRequest + */ + sku?: Array; +} +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksRequest interface. + */ +export declare function instanceOfV1AnalyticsTurnoverStocksRequest(value: object): value is V1AnalyticsTurnoverStocksRequest; +export declare function V1AnalyticsTurnoverStocksRequestFromJSON(json: any): V1AnalyticsTurnoverStocksRequest; +export declare function V1AnalyticsTurnoverStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsTurnoverStocksRequest; +export declare function V1AnalyticsTurnoverStocksRequestToJSON(value?: V1AnalyticsTurnoverStocksRequest | null): any; diff --git a/dist/models/V1AnalyticsTurnoverStocksRequest.js b/dist/models/V1AnalyticsTurnoverStocksRequest.js new file mode 100644 index 0000000..66f9579 --- /dev/null +++ b/dist/models/V1AnalyticsTurnoverStocksRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsTurnoverStocksRequest = instanceOfV1AnalyticsTurnoverStocksRequest; +exports.V1AnalyticsTurnoverStocksRequestFromJSON = V1AnalyticsTurnoverStocksRequestFromJSON; +exports.V1AnalyticsTurnoverStocksRequestFromJSONTyped = V1AnalyticsTurnoverStocksRequestFromJSONTyped; +exports.V1AnalyticsTurnoverStocksRequestToJSON = V1AnalyticsTurnoverStocksRequestToJSON; +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksRequest interface. + */ +function instanceOfV1AnalyticsTurnoverStocksRequest(value) { + return true; +} +function V1AnalyticsTurnoverStocksRequestFromJSON(json) { + return V1AnalyticsTurnoverStocksRequestFromJSONTyped(json, false); +} +function V1AnalyticsTurnoverStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'] == null ? undefined : json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1AnalyticsTurnoverStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1AnalyticsTurnoverStocksResponse.d.ts b/dist/models/V1AnalyticsTurnoverStocksResponse.d.ts new file mode 100644 index 0000000..26be710 --- /dev/null +++ b/dist/models/V1AnalyticsTurnoverStocksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AnalyticsTurnoverStocksResponseItem } from './V1AnalyticsTurnoverStocksResponseItem'; +/** + * + * @export + * @interface V1AnalyticsTurnoverStocksResponse + */ +export interface V1AnalyticsTurnoverStocksResponse { + /** + * Товары. + * @type {Array} + * @memberof V1AnalyticsTurnoverStocksResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksResponse interface. + */ +export declare function instanceOfV1AnalyticsTurnoverStocksResponse(value: object): value is V1AnalyticsTurnoverStocksResponse; +export declare function V1AnalyticsTurnoverStocksResponseFromJSON(json: any): V1AnalyticsTurnoverStocksResponse; +export declare function V1AnalyticsTurnoverStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsTurnoverStocksResponse; +export declare function V1AnalyticsTurnoverStocksResponseToJSON(value?: V1AnalyticsTurnoverStocksResponse | null): any; diff --git a/dist/models/V1AnalyticsTurnoverStocksResponse.js b/dist/models/V1AnalyticsTurnoverStocksResponse.js new file mode 100644 index 0000000..1abcabd --- /dev/null +++ b/dist/models/V1AnalyticsTurnoverStocksResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AnalyticsTurnoverStocksResponse = instanceOfV1AnalyticsTurnoverStocksResponse; +exports.V1AnalyticsTurnoverStocksResponseFromJSON = V1AnalyticsTurnoverStocksResponseFromJSON; +exports.V1AnalyticsTurnoverStocksResponseFromJSONTyped = V1AnalyticsTurnoverStocksResponseFromJSONTyped; +exports.V1AnalyticsTurnoverStocksResponseToJSON = V1AnalyticsTurnoverStocksResponseToJSON; +const V1AnalyticsTurnoverStocksResponseItem_1 = require("./V1AnalyticsTurnoverStocksResponseItem"); +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksResponse interface. + */ +function instanceOfV1AnalyticsTurnoverStocksResponse(value) { + return true; +} +function V1AnalyticsTurnoverStocksResponseFromJSON(json) { + return V1AnalyticsTurnoverStocksResponseFromJSONTyped(json, false); +} +function V1AnalyticsTurnoverStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1AnalyticsTurnoverStocksResponseItem_1.V1AnalyticsTurnoverStocksResponseItemFromJSON)), + }; +} +function V1AnalyticsTurnoverStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1AnalyticsTurnoverStocksResponseItem_1.V1AnalyticsTurnoverStocksResponseItemToJSON)), + }; +} diff --git a/dist/models/V1AnalyticsTurnoverStocksResponseItem.d.ts b/dist/models/V1AnalyticsTurnoverStocksResponseItem.d.ts new file mode 100644 index 0000000..203aec5 --- /dev/null +++ b/dist/models/V1AnalyticsTurnoverStocksResponseItem.d.ts @@ -0,0 +1,117 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AnalyticsTurnoverStocksResponseItem + */ +export interface V1AnalyticsTurnoverStocksResponseItem { + /** + * Среднесуточное количество проданных единиц товара за последние 60 дней. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + ads?: number; + /** + * Остаток товара, шт. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + current_stock?: number; + /** + * На сколько дней хватит остатка товара с учётом среднесуточных продаж. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + idc?: number; + /** + * Уровень остатка товара: + * - `GRADES_NONE` — ожидаются поставки; + * - `GRADES_NOSALES` — нет продаж; + * - `GRADES_GREEN` — зелёный, «хороший»; + * - `GRADES_YELLOW` — жёлтый, «средний»; + * - `GRADES_RED` — красный, «плохой»; + * - `GRADES_CRITICAL` — критический. + * + * @type {string} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + idc_grade?: V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum; + /** + * Название товара. + * @type {string} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + sku?: number; + /** + * Фактическая оборачиваемость в днях. + * @type {number} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + turnover?: number; + /** + * Уровень оборачиваемости: + * - `GRADES_NONE` — ожидаются поставки; + * - `GRADES_NOSALES` — нет продаж; + * - `GRADES_GREEN` — зелёный, «хороший»; + * - `GRADES_YELLOW` — жёлтый, «средний»; + * - `GRADES_RED` — красный, «плохой»; + * - `GRADES_CRITICAL` — критический. + * + * @type {string} + * @memberof V1AnalyticsTurnoverStocksResponseItem + */ + turnover_grade?: V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum; +} +/** + * @export + */ +export declare const V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum: { + readonly NONE: "GRADES_NONE"; + readonly NOSALES: "GRADES_NOSALES"; + readonly GREEN: "GRADES_GREEN"; + readonly YELLOW: "GRADES_YELLOW"; + readonly RED: "GRADES_RED"; + readonly CRITICAL: "GRADES_CRITICAL"; +}; +export type V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum = typeof V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum[keyof typeof V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum]; +/** + * @export + */ +export declare const V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum: { + readonly NONE: "GRADES_NONE"; + readonly NOSALES: "GRADES_NOSALES"; + readonly GREEN: "GRADES_GREEN"; + readonly YELLOW: "GRADES_YELLOW"; + readonly RED: "GRADES_RED"; + readonly CRITICAL: "GRADES_CRITICAL"; +}; +export type V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum = typeof V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum[keyof typeof V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum]; +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksResponseItem interface. + */ +export declare function instanceOfV1AnalyticsTurnoverStocksResponseItem(value: object): value is V1AnalyticsTurnoverStocksResponseItem; +export declare function V1AnalyticsTurnoverStocksResponseItemFromJSON(json: any): V1AnalyticsTurnoverStocksResponseItem; +export declare function V1AnalyticsTurnoverStocksResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AnalyticsTurnoverStocksResponseItem; +export declare function V1AnalyticsTurnoverStocksResponseItemToJSON(value?: V1AnalyticsTurnoverStocksResponseItem | null): any; diff --git a/dist/models/V1AnalyticsTurnoverStocksResponseItem.js b/dist/models/V1AnalyticsTurnoverStocksResponseItem.js new file mode 100644 index 0000000..3435d58 --- /dev/null +++ b/dist/models/V1AnalyticsTurnoverStocksResponseItem.js @@ -0,0 +1,83 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum = exports.V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum = void 0; +exports.instanceOfV1AnalyticsTurnoverStocksResponseItem = instanceOfV1AnalyticsTurnoverStocksResponseItem; +exports.V1AnalyticsTurnoverStocksResponseItemFromJSON = V1AnalyticsTurnoverStocksResponseItemFromJSON; +exports.V1AnalyticsTurnoverStocksResponseItemFromJSONTyped = V1AnalyticsTurnoverStocksResponseItemFromJSONTyped; +exports.V1AnalyticsTurnoverStocksResponseItemToJSON = V1AnalyticsTurnoverStocksResponseItemToJSON; +/** + * @export + */ +exports.V1AnalyticsTurnoverStocksResponseItemIdcGradeEnum = { + NONE: 'GRADES_NONE', + NOSALES: 'GRADES_NOSALES', + GREEN: 'GRADES_GREEN', + YELLOW: 'GRADES_YELLOW', + RED: 'GRADES_RED', + CRITICAL: 'GRADES_CRITICAL' +}; +/** + * @export + */ +exports.V1AnalyticsTurnoverStocksResponseItemTurnoverGradeEnum = { + NONE: 'GRADES_NONE', + NOSALES: 'GRADES_NOSALES', + GREEN: 'GRADES_GREEN', + YELLOW: 'GRADES_YELLOW', + RED: 'GRADES_RED', + CRITICAL: 'GRADES_CRITICAL' +}; +/** + * Check if a given object implements the V1AnalyticsTurnoverStocksResponseItem interface. + */ +function instanceOfV1AnalyticsTurnoverStocksResponseItem(value) { + return true; +} +function V1AnalyticsTurnoverStocksResponseItemFromJSON(json) { + return V1AnalyticsTurnoverStocksResponseItemFromJSONTyped(json, false); +} +function V1AnalyticsTurnoverStocksResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ads': json['ads'] == null ? undefined : json['ads'], + 'current_stock': json['current_stock'] == null ? undefined : json['current_stock'], + 'idc': json['idc'] == null ? undefined : json['idc'], + 'idc_grade': json['idc_grade'] == null ? undefined : json['idc_grade'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'turnover': json['turnover'] == null ? undefined : json['turnover'], + 'turnover_grade': json['turnover_grade'] == null ? undefined : json['turnover_grade'], + }; +} +function V1AnalyticsTurnoverStocksResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'ads': value['ads'], + 'current_stock': value['current_stock'], + 'idc': value['idc'], + 'idc_grade': value['idc_grade'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'sku': value['sku'], + 'turnover': value['turnover'], + 'turnover_grade': value['turnover_grade'], + }; +} diff --git a/dist/models/V1ApproveDeclineDiscountTasksResponse.d.ts b/dist/models/V1ApproveDeclineDiscountTasksResponse.d.ts new file mode 100644 index 0000000..f397b84 --- /dev/null +++ b/dist/models/V1ApproveDeclineDiscountTasksResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ApproveDeclineDiscountTasksResponseResult } from './V1ApproveDeclineDiscountTasksResponseResult'; +/** + * + * @export + * @interface V1ApproveDeclineDiscountTasksResponse + */ +export interface V1ApproveDeclineDiscountTasksResponse { + /** + * + * @type {V1ApproveDeclineDiscountTasksResponseResult} + * @memberof V1ApproveDeclineDiscountTasksResponse + */ + result?: V1ApproveDeclineDiscountTasksResponseResult; +} +/** + * Check if a given object implements the V1ApproveDeclineDiscountTasksResponse interface. + */ +export declare function instanceOfV1ApproveDeclineDiscountTasksResponse(value: object): value is V1ApproveDeclineDiscountTasksResponse; +export declare function V1ApproveDeclineDiscountTasksResponseFromJSON(json: any): V1ApproveDeclineDiscountTasksResponse; +export declare function V1ApproveDeclineDiscountTasksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ApproveDeclineDiscountTasksResponse; +export declare function V1ApproveDeclineDiscountTasksResponseToJSON(value?: V1ApproveDeclineDiscountTasksResponse | null): any; diff --git a/dist/models/V1ApproveDeclineDiscountTasksResponse.js b/dist/models/V1ApproveDeclineDiscountTasksResponse.js new file mode 100644 index 0000000..2802ae5 --- /dev/null +++ b/dist/models/V1ApproveDeclineDiscountTasksResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ApproveDeclineDiscountTasksResponse = instanceOfV1ApproveDeclineDiscountTasksResponse; +exports.V1ApproveDeclineDiscountTasksResponseFromJSON = V1ApproveDeclineDiscountTasksResponseFromJSON; +exports.V1ApproveDeclineDiscountTasksResponseFromJSONTyped = V1ApproveDeclineDiscountTasksResponseFromJSONTyped; +exports.V1ApproveDeclineDiscountTasksResponseToJSON = V1ApproveDeclineDiscountTasksResponseToJSON; +const V1ApproveDeclineDiscountTasksResponseResult_1 = require("./V1ApproveDeclineDiscountTasksResponseResult"); +/** + * Check if a given object implements the V1ApproveDeclineDiscountTasksResponse interface. + */ +function instanceOfV1ApproveDeclineDiscountTasksResponse(value) { + return true; +} +function V1ApproveDeclineDiscountTasksResponseFromJSON(json) { + return V1ApproveDeclineDiscountTasksResponseFromJSONTyped(json, false); +} +function V1ApproveDeclineDiscountTasksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1ApproveDeclineDiscountTasksResponseResult_1.V1ApproveDeclineDiscountTasksResponseResultFromJSON)(json['result']), + }; +} +function V1ApproveDeclineDiscountTasksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1ApproveDeclineDiscountTasksResponseResult_1.V1ApproveDeclineDiscountTasksResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1ApproveDeclineDiscountTasksResponseResult.d.ts b/dist/models/V1ApproveDeclineDiscountTasksResponseResult.d.ts new file mode 100644 index 0000000..e03d7b1 --- /dev/null +++ b/dist/models/V1ApproveDeclineDiscountTasksResponseResult.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ApproveDeclineDiscountTasksResponseFailDetail } from './ApproveDeclineDiscountTasksResponseFailDetail'; +/** + * Результат работы метода. + * @export + * @interface V1ApproveDeclineDiscountTasksResponseResult + */ +export interface V1ApproveDeclineDiscountTasksResponseResult { + /** + * Ошибки при создании заявки. + * @type {Array} + * @memberof V1ApproveDeclineDiscountTasksResponseResult + */ + fail_details?: Array; + /** + * Количество заявок с успешной сменой статуса. + * @type {number} + * @memberof V1ApproveDeclineDiscountTasksResponseResult + */ + success_count?: number; + /** + * Количество заявок, у которых не удалось сменить статус. + * @type {number} + * @memberof V1ApproveDeclineDiscountTasksResponseResult + */ + fail_count?: number; +} +/** + * Check if a given object implements the V1ApproveDeclineDiscountTasksResponseResult interface. + */ +export declare function instanceOfV1ApproveDeclineDiscountTasksResponseResult(value: object): value is V1ApproveDeclineDiscountTasksResponseResult; +export declare function V1ApproveDeclineDiscountTasksResponseResultFromJSON(json: any): V1ApproveDeclineDiscountTasksResponseResult; +export declare function V1ApproveDeclineDiscountTasksResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ApproveDeclineDiscountTasksResponseResult; +export declare function V1ApproveDeclineDiscountTasksResponseResultToJSON(value?: V1ApproveDeclineDiscountTasksResponseResult | null): any; diff --git a/dist/models/V1ApproveDeclineDiscountTasksResponseResult.js b/dist/models/V1ApproveDeclineDiscountTasksResponseResult.js new file mode 100644 index 0000000..d9e5242 --- /dev/null +++ b/dist/models/V1ApproveDeclineDiscountTasksResponseResult.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ApproveDeclineDiscountTasksResponseResult = instanceOfV1ApproveDeclineDiscountTasksResponseResult; +exports.V1ApproveDeclineDiscountTasksResponseResultFromJSON = V1ApproveDeclineDiscountTasksResponseResultFromJSON; +exports.V1ApproveDeclineDiscountTasksResponseResultFromJSONTyped = V1ApproveDeclineDiscountTasksResponseResultFromJSONTyped; +exports.V1ApproveDeclineDiscountTasksResponseResultToJSON = V1ApproveDeclineDiscountTasksResponseResultToJSON; +const ApproveDeclineDiscountTasksResponseFailDetail_1 = require("./ApproveDeclineDiscountTasksResponseFailDetail"); +/** + * Check if a given object implements the V1ApproveDeclineDiscountTasksResponseResult interface. + */ +function instanceOfV1ApproveDeclineDiscountTasksResponseResult(value) { + return true; +} +function V1ApproveDeclineDiscountTasksResponseResultFromJSON(json) { + return V1ApproveDeclineDiscountTasksResponseResultFromJSONTyped(json, false); +} +function V1ApproveDeclineDiscountTasksResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'fail_details': json['fail_details'] == null ? undefined : (json['fail_details'].map(ApproveDeclineDiscountTasksResponseFailDetail_1.ApproveDeclineDiscountTasksResponseFailDetailFromJSON)), + 'success_count': json['success_count'] == null ? undefined : json['success_count'], + 'fail_count': json['fail_count'] == null ? undefined : json['fail_count'], + }; +} +function V1ApproveDeclineDiscountTasksResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'fail_details': value['fail_details'] == null ? undefined : (value['fail_details'].map(ApproveDeclineDiscountTasksResponseFailDetail_1.ApproveDeclineDiscountTasksResponseFailDetailToJSON)), + 'success_count': value['success_count'], + 'fail_count': value['fail_count'], + }; +} diff --git a/dist/models/V1ApproveDiscountTasksRequest.d.ts b/dist/models/V1ApproveDiscountTasksRequest.d.ts new file mode 100644 index 0000000..e5f98b7 --- /dev/null +++ b/dist/models/V1ApproveDiscountTasksRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ApproveDiscountTasksRequestTask } from './V1ApproveDiscountTasksRequestTask'; +/** + * + * @export + * @interface V1ApproveDiscountTasksRequest + */ +export interface V1ApproveDiscountTasksRequest { + /** + * Список заявок. + * @type {Array} + * @memberof V1ApproveDiscountTasksRequest + */ + tasks: Array; +} +/** + * Check if a given object implements the V1ApproveDiscountTasksRequest interface. + */ +export declare function instanceOfV1ApproveDiscountTasksRequest(value: object): value is V1ApproveDiscountTasksRequest; +export declare function V1ApproveDiscountTasksRequestFromJSON(json: any): V1ApproveDiscountTasksRequest; +export declare function V1ApproveDiscountTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ApproveDiscountTasksRequest; +export declare function V1ApproveDiscountTasksRequestToJSON(value?: V1ApproveDiscountTasksRequest | null): any; diff --git a/dist/models/V1ApproveDiscountTasksRequest.js b/dist/models/V1ApproveDiscountTasksRequest.js new file mode 100644 index 0000000..6e37172 --- /dev/null +++ b/dist/models/V1ApproveDiscountTasksRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ApproveDiscountTasksRequest = instanceOfV1ApproveDiscountTasksRequest; +exports.V1ApproveDiscountTasksRequestFromJSON = V1ApproveDiscountTasksRequestFromJSON; +exports.V1ApproveDiscountTasksRequestFromJSONTyped = V1ApproveDiscountTasksRequestFromJSONTyped; +exports.V1ApproveDiscountTasksRequestToJSON = V1ApproveDiscountTasksRequestToJSON; +const V1ApproveDiscountTasksRequestTask_1 = require("./V1ApproveDiscountTasksRequestTask"); +/** + * Check if a given object implements the V1ApproveDiscountTasksRequest interface. + */ +function instanceOfV1ApproveDiscountTasksRequest(value) { + if (!('tasks' in value) || value['tasks'] === undefined) + return false; + return true; +} +function V1ApproveDiscountTasksRequestFromJSON(json) { + return V1ApproveDiscountTasksRequestFromJSONTyped(json, false); +} +function V1ApproveDiscountTasksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tasks': (json['tasks'].map(V1ApproveDiscountTasksRequestTask_1.V1ApproveDiscountTasksRequestTaskFromJSON)), + }; +} +function V1ApproveDiscountTasksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'tasks': (value['tasks'].map(V1ApproveDiscountTasksRequestTask_1.V1ApproveDiscountTasksRequestTaskToJSON)), + }; +} diff --git a/dist/models/V1ApproveDiscountTasksRequestTask.d.ts b/dist/models/V1ApproveDiscountTasksRequestTask.d.ts new file mode 100644 index 0000000..ab15275 --- /dev/null +++ b/dist/models/V1ApproveDiscountTasksRequestTask.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ApproveDiscountTasksRequestTask + */ +export interface V1ApproveDiscountTasksRequestTask { + /** + * Идентификатор заявки. Можно получить с помощью метода [/v1/actions/discounts-task/list](#operation/promos_task_list). + * @type {number} + * @memberof V1ApproveDiscountTasksRequestTask + */ + id: number; + /** + * Согласованная цена. + * @type {number} + * @memberof V1ApproveDiscountTasksRequestTask + */ + approved_price: number; + /** + * Комментарий продавца к заявке. + * @type {string} + * @memberof V1ApproveDiscountTasksRequestTask + */ + seller_comment?: string; + /** + * Одобренное минимальное количество товаров. + * @type {number} + * @memberof V1ApproveDiscountTasksRequestTask + */ + approved_quantity_min: number; + /** + * Одобренное максимальное количество товаров. + * @type {number} + * @memberof V1ApproveDiscountTasksRequestTask + */ + approved_quantity_max: number; +} +/** + * Check if a given object implements the V1ApproveDiscountTasksRequestTask interface. + */ +export declare function instanceOfV1ApproveDiscountTasksRequestTask(value: object): value is V1ApproveDiscountTasksRequestTask; +export declare function V1ApproveDiscountTasksRequestTaskFromJSON(json: any): V1ApproveDiscountTasksRequestTask; +export declare function V1ApproveDiscountTasksRequestTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ApproveDiscountTasksRequestTask; +export declare function V1ApproveDiscountTasksRequestTaskToJSON(value?: V1ApproveDiscountTasksRequestTask | null): any; diff --git a/dist/models/V1ApproveDiscountTasksRequestTask.js b/dist/models/V1ApproveDiscountTasksRequestTask.js new file mode 100644 index 0000000..51a5dc9 --- /dev/null +++ b/dist/models/V1ApproveDiscountTasksRequestTask.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ApproveDiscountTasksRequestTask = instanceOfV1ApproveDiscountTasksRequestTask; +exports.V1ApproveDiscountTasksRequestTaskFromJSON = V1ApproveDiscountTasksRequestTaskFromJSON; +exports.V1ApproveDiscountTasksRequestTaskFromJSONTyped = V1ApproveDiscountTasksRequestTaskFromJSONTyped; +exports.V1ApproveDiscountTasksRequestTaskToJSON = V1ApproveDiscountTasksRequestTaskToJSON; +/** + * Check if a given object implements the V1ApproveDiscountTasksRequestTask interface. + */ +function instanceOfV1ApproveDiscountTasksRequestTask(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('approved_price' in value) || value['approved_price'] === undefined) + return false; + if (!('approved_quantity_min' in value) || value['approved_quantity_min'] === undefined) + return false; + if (!('approved_quantity_max' in value) || value['approved_quantity_max'] === undefined) + return false; + return true; +} +function V1ApproveDiscountTasksRequestTaskFromJSON(json) { + return V1ApproveDiscountTasksRequestTaskFromJSONTyped(json, false); +} +function V1ApproveDiscountTasksRequestTaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'approved_price': json['approved_price'], + 'seller_comment': json['seller_comment'] == null ? undefined : json['seller_comment'], + 'approved_quantity_min': json['approved_quantity_min'], + 'approved_quantity_max': json['approved_quantity_max'], + }; +} +function V1ApproveDiscountTasksRequestTaskToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'approved_price': value['approved_price'], + 'seller_comment': value['seller_comment'], + 'approved_quantity_min': value['approved_quantity_min'], + 'approved_quantity_max': value['approved_quantity_max'], + }; +} diff --git a/dist/models/V1ArchiveDeclineReason.d.ts b/dist/models/V1ArchiveDeclineReason.d.ts new file mode 100644 index 0000000..5b4bcf6 --- /dev/null +++ b/dist/models/V1ArchiveDeclineReason.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина отклонения поставки. + * @export + * @interface V1ArchiveDeclineReason + */ +export interface V1ArchiveDeclineReason { + /** + * Код причины отклонения поставки: + * - `DECLINE_REASON_CODE_UNSPECIFIED` — не определён; + * - `CANNOT_CREATE_SUPPLY_ON_TPF` — не удалось создать поставку на стороне 3PF; + * - `DROP_OFF_POINT_CLOSED` — дроп-офф точка закрыта; + * - `CODE_SUPPLY_LOST` — поставка потеряна; + * - `COURIER_PICK_UP_REJECTED_BY_SELLER` — продавец отказался от забора поставки курьером; + * - `BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE` — проблемы с бондовыми документами. + * + * @type {string} + * @memberof V1ArchiveDeclineReason + */ + code?: V1ArchiveDeclineReasonCodeEnum; + /** + * Описание причины отклонения. + * @type {string} + * @memberof V1ArchiveDeclineReason + */ + message?: string; +} +/** + * @export + */ +export declare const V1ArchiveDeclineReasonCodeEnum: { + readonly DECLINE_REASON_CODE_UNSPECIFIED: "DECLINE_REASON_CODE_UNSPECIFIED"; + readonly CANNOT_CREATE_SUPPLY_ON_TPF: "CANNOT_CREATE_SUPPLY_ON_TPF"; + readonly DROP_OFF_POINT_CLOSED: "DROP_OFF_POINT_CLOSED"; + readonly CODE_SUPPLY_LOST: "CODE_SUPPLY_LOST"; + readonly COURIER_PICK_UP_REJECTED_BY_SELLER: "COURIER_PICK_UP_REJECTED_BY_SELLER"; + readonly BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE: "BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE"; +}; +export type V1ArchiveDeclineReasonCodeEnum = typeof V1ArchiveDeclineReasonCodeEnum[keyof typeof V1ArchiveDeclineReasonCodeEnum]; +/** + * Check if a given object implements the V1ArchiveDeclineReason interface. + */ +export declare function instanceOfV1ArchiveDeclineReason(value: object): value is V1ArchiveDeclineReason; +export declare function V1ArchiveDeclineReasonFromJSON(json: any): V1ArchiveDeclineReason; +export declare function V1ArchiveDeclineReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveDeclineReason; +export declare function V1ArchiveDeclineReasonToJSON(value?: V1ArchiveDeclineReason | null): any; diff --git a/dist/models/V1ArchiveDeclineReason.js b/dist/models/V1ArchiveDeclineReason.js new file mode 100644 index 0000000..72ea9bd --- /dev/null +++ b/dist/models/V1ArchiveDeclineReason.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1ArchiveDeclineReasonCodeEnum = void 0; +exports.instanceOfV1ArchiveDeclineReason = instanceOfV1ArchiveDeclineReason; +exports.V1ArchiveDeclineReasonFromJSON = V1ArchiveDeclineReasonFromJSON; +exports.V1ArchiveDeclineReasonFromJSONTyped = V1ArchiveDeclineReasonFromJSONTyped; +exports.V1ArchiveDeclineReasonToJSON = V1ArchiveDeclineReasonToJSON; +/** + * @export + */ +exports.V1ArchiveDeclineReasonCodeEnum = { + DECLINE_REASON_CODE_UNSPECIFIED: 'DECLINE_REASON_CODE_UNSPECIFIED', + CANNOT_CREATE_SUPPLY_ON_TPF: 'CANNOT_CREATE_SUPPLY_ON_TPF', + DROP_OFF_POINT_CLOSED: 'DROP_OFF_POINT_CLOSED', + CODE_SUPPLY_LOST: 'CODE_SUPPLY_LOST', + COURIER_PICK_UP_REJECTED_BY_SELLER: 'COURIER_PICK_UP_REJECTED_BY_SELLER', + BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE: 'BONDED_DOCUMENTS_REJECTED_BY_WAREHOUSE' +}; +/** + * Check if a given object implements the V1ArchiveDeclineReason interface. + */ +function instanceOfV1ArchiveDeclineReason(value) { + return true; +} +function V1ArchiveDeclineReasonFromJSON(json) { + return V1ArchiveDeclineReasonFromJSONTyped(json, false); +} +function V1ArchiveDeclineReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function V1ArchiveDeclineReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + }; +} diff --git a/dist/models/V1ArchiveSkuSummary.d.ts b/dist/models/V1ArchiveSkuSummary.d.ts new file mode 100644 index 0000000..fcd3278 --- /dev/null +++ b/dist/models/V1ArchiveSkuSummary.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сводная информация по товарам в поставке. + * @export + * @interface V1ArchiveSkuSummary + */ +export interface V1ArchiveSkuSummary { + /** + * Общий объём товаров в литрах. + * @type {number} + * @memberof V1ArchiveSkuSummary + */ + rounded_total_volume_in_litres?: number; + /** + * Количество SKU в поставке. + * @type {number} + * @memberof V1ArchiveSkuSummary + */ + total_items_count?: number; + /** + * Количество единиц товаров в поставке. + * @type {number} + * @memberof V1ArchiveSkuSummary + */ + total_quantity?: number; +} +/** + * Check if a given object implements the V1ArchiveSkuSummary interface. + */ +export declare function instanceOfV1ArchiveSkuSummary(value: object): value is V1ArchiveSkuSummary; +export declare function V1ArchiveSkuSummaryFromJSON(json: any): V1ArchiveSkuSummary; +export declare function V1ArchiveSkuSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveSkuSummary; +export declare function V1ArchiveSkuSummaryToJSON(value?: V1ArchiveSkuSummary | null): any; diff --git a/dist/models/V1ArchiveSkuSummary.js b/dist/models/V1ArchiveSkuSummary.js new file mode 100644 index 0000000..db92463 --- /dev/null +++ b/dist/models/V1ArchiveSkuSummary.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ArchiveSkuSummary = instanceOfV1ArchiveSkuSummary; +exports.V1ArchiveSkuSummaryFromJSON = V1ArchiveSkuSummaryFromJSON; +exports.V1ArchiveSkuSummaryFromJSONTyped = V1ArchiveSkuSummaryFromJSONTyped; +exports.V1ArchiveSkuSummaryToJSON = V1ArchiveSkuSummaryToJSON; +/** + * Check if a given object implements the V1ArchiveSkuSummary interface. + */ +function instanceOfV1ArchiveSkuSummary(value) { + return true; +} +function V1ArchiveSkuSummaryFromJSON(json) { + return V1ArchiveSkuSummaryFromJSONTyped(json, false); +} +function V1ArchiveSkuSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rounded_total_volume_in_litres': json['rounded_total_volume_in_litres'] == null ? undefined : json['rounded_total_volume_in_litres'], + 'total_items_count': json['total_items_count'] == null ? undefined : json['total_items_count'], + 'total_quantity': json['total_quantity'] == null ? undefined : json['total_quantity'], + }; +} +function V1ArchiveSkuSummaryToJSON(value) { + if (value == null) { + return value; + } + return { + 'rounded_total_volume_in_litres': value['rounded_total_volume_in_litres'], + 'total_items_count': value['total_items_count'], + 'total_quantity': value['total_quantity'], + }; +} diff --git a/dist/models/V1ArchiveStatusEnum.d.ts b/dist/models/V1ArchiveStatusEnum.d.ts new file mode 100644 index 0000000..3c09b71 --- /dev/null +++ b/dist/models/V1ArchiveStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус завершённой поставки: + * - `ARCHIVE_STATUS_UNSPECIFIED` — не определён; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отклонена складом; + * - `CANCELLED_BY_SELLER` — отменена продавцом. + * + * @export + */ +export declare const V1ArchiveStatusEnum: { + readonly ARCHIVE_STATUS_UNSPECIFIED: "ARCHIVE_STATUS_UNSPECIFIED"; + readonly COMPLETED: "COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED_BY_SELLER: "CANCELLED_BY_SELLER"; +}; +export type V1ArchiveStatusEnum = typeof V1ArchiveStatusEnum[keyof typeof V1ArchiveStatusEnum]; +export declare function instanceOfV1ArchiveStatusEnum(value: any): boolean; +export declare function V1ArchiveStatusEnumFromJSON(json: any): V1ArchiveStatusEnum; +export declare function V1ArchiveStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveStatusEnum; +export declare function V1ArchiveStatusEnumToJSON(value?: V1ArchiveStatusEnum | null): any; diff --git a/dist/models/V1ArchiveStatusEnum.js b/dist/models/V1ArchiveStatusEnum.js new file mode 100644 index 0000000..7a61f6f --- /dev/null +++ b/dist/models/V1ArchiveStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1ArchiveStatusEnum = void 0; +exports.instanceOfV1ArchiveStatusEnum = instanceOfV1ArchiveStatusEnum; +exports.V1ArchiveStatusEnumFromJSON = V1ArchiveStatusEnumFromJSON; +exports.V1ArchiveStatusEnumFromJSONTyped = V1ArchiveStatusEnumFromJSONTyped; +exports.V1ArchiveStatusEnumToJSON = V1ArchiveStatusEnumToJSON; +/** + * Статус завершённой поставки: + * - `ARCHIVE_STATUS_UNSPECIFIED` — не определён; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отклонена складом; + * - `CANCELLED_BY_SELLER` — отменена продавцом. + * + * @export + */ +exports.V1ArchiveStatusEnum = { + ARCHIVE_STATUS_UNSPECIFIED: 'ARCHIVE_STATUS_UNSPECIFIED', + COMPLETED: 'COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED_BY_SELLER: 'CANCELLED_BY_SELLER' +}; +function instanceOfV1ArchiveStatusEnum(value) { + for (const key in exports.V1ArchiveStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1ArchiveStatusEnum, key)) { + if (exports.V1ArchiveStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1ArchiveStatusEnumFromJSON(json) { + return V1ArchiveStatusEnumFromJSONTyped(json, false); +} +function V1ArchiveStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1ArchiveStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1ArchiveWarehouseFBSRequest.d.ts b/dist/models/V1ArchiveWarehouseFBSRequest.d.ts new file mode 100644 index 0000000..447462a --- /dev/null +++ b/dist/models/V1ArchiveWarehouseFBSRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ArchiveWarehouseFBSRequest + */ +export interface V1ArchiveWarehouseFBSRequest { + /** + * Причина переноса склада в архив. + * @type {string} + * @memberof V1ArchiveWarehouseFBSRequest + */ + reason: string; + /** + * Идентификатор пункта возврата. Получите значение параметра методом [/v1/warehouse/fbs/update/return-point/list](#operation/WarehouseFBSUpdateReturnPointList). + * @type {number} + * @memberof V1ArchiveWarehouseFBSRequest + */ + return_point_id?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1ArchiveWarehouseFBSRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1ArchiveWarehouseFBSRequest interface. + */ +export declare function instanceOfV1ArchiveWarehouseFBSRequest(value: object): value is V1ArchiveWarehouseFBSRequest; +export declare function V1ArchiveWarehouseFBSRequestFromJSON(json: any): V1ArchiveWarehouseFBSRequest; +export declare function V1ArchiveWarehouseFBSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveWarehouseFBSRequest; +export declare function V1ArchiveWarehouseFBSRequestToJSON(value?: V1ArchiveWarehouseFBSRequest | null): any; diff --git a/dist/models/V1ArchiveWarehouseFBSRequest.js b/dist/models/V1ArchiveWarehouseFBSRequest.js new file mode 100644 index 0000000..bd1c505 --- /dev/null +++ b/dist/models/V1ArchiveWarehouseFBSRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ArchiveWarehouseFBSRequest = instanceOfV1ArchiveWarehouseFBSRequest; +exports.V1ArchiveWarehouseFBSRequestFromJSON = V1ArchiveWarehouseFBSRequestFromJSON; +exports.V1ArchiveWarehouseFBSRequestFromJSONTyped = V1ArchiveWarehouseFBSRequestFromJSONTyped; +exports.V1ArchiveWarehouseFBSRequestToJSON = V1ArchiveWarehouseFBSRequestToJSON; +/** + * Check if a given object implements the V1ArchiveWarehouseFBSRequest interface. + */ +function instanceOfV1ArchiveWarehouseFBSRequest(value) { + if (!('reason' in value) || value['reason'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1ArchiveWarehouseFBSRequestFromJSON(json) { + return V1ArchiveWarehouseFBSRequestFromJSONTyped(json, false); +} +function V1ArchiveWarehouseFBSRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reason': json['reason'], + 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1ArchiveWarehouseFBSRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'reason': value['reason'], + 'return_point_id': value['return_point_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1ArchiveWarehouseFBSResponse.d.ts b/dist/models/V1ArchiveWarehouseFBSResponse.d.ts new file mode 100644 index 0000000..a4301cf --- /dev/null +++ b/dist/models/V1ArchiveWarehouseFBSResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ArchiveWarehouseFBSResponse + */ +export interface V1ArchiveWarehouseFBSResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1ArchiveWarehouseFBSResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1ArchiveWarehouseFBSResponse interface. + */ +export declare function instanceOfV1ArchiveWarehouseFBSResponse(value: object): value is V1ArchiveWarehouseFBSResponse; +export declare function V1ArchiveWarehouseFBSResponseFromJSON(json: any): V1ArchiveWarehouseFBSResponse; +export declare function V1ArchiveWarehouseFBSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ArchiveWarehouseFBSResponse; +export declare function V1ArchiveWarehouseFBSResponseToJSON(value?: V1ArchiveWarehouseFBSResponse | null): any; diff --git a/dist/models/V1ArchiveWarehouseFBSResponse.js b/dist/models/V1ArchiveWarehouseFBSResponse.js new file mode 100644 index 0000000..7a5e57a --- /dev/null +++ b/dist/models/V1ArchiveWarehouseFBSResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ArchiveWarehouseFBSResponse = instanceOfV1ArchiveWarehouseFBSResponse; +exports.V1ArchiveWarehouseFBSResponseFromJSON = V1ArchiveWarehouseFBSResponseFromJSON; +exports.V1ArchiveWarehouseFBSResponseFromJSONTyped = V1ArchiveWarehouseFBSResponseFromJSONTyped; +exports.V1ArchiveWarehouseFBSResponseToJSON = V1ArchiveWarehouseFBSResponseToJSON; +/** + * Check if a given object implements the V1ArchiveWarehouseFBSResponse interface. + */ +function instanceOfV1ArchiveWarehouseFBSResponse(value) { + return true; +} +function V1ArchiveWarehouseFBSResponseFromJSON(json) { + return V1ArchiveWarehouseFBSResponseFromJSONTyped(json, false); +} +function V1ArchiveWarehouseFBSResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1ArchiveWarehouseFBSResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1AssemblyCarriagePostingListRequest.d.ts b/dist/models/V1AssemblyCarriagePostingListRequest.d.ts new file mode 100644 index 0000000..a01cbcd --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriagePostingListRequestFilter } from './V1AssemblyCarriagePostingListRequestFilter'; +/** + * + * @export + * @interface V1AssemblyCarriagePostingListRequest + */ +export interface V1AssemblyCarriagePostingListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1AssemblyCarriagePostingListRequest + */ + cursor?: string; + /** + * + * @type {V1AssemblyCarriagePostingListRequestFilter} + * @memberof V1AssemblyCarriagePostingListRequest + */ + filter: V1AssemblyCarriagePostingListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1AssemblyCarriagePostingListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListRequest interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListRequest(value: object): value is V1AssemblyCarriagePostingListRequest; +export declare function V1AssemblyCarriagePostingListRequestFromJSON(json: any): V1AssemblyCarriagePostingListRequest; +export declare function V1AssemblyCarriagePostingListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListRequest; +export declare function V1AssemblyCarriagePostingListRequestToJSON(value?: V1AssemblyCarriagePostingListRequest | null): any; diff --git a/dist/models/V1AssemblyCarriagePostingListRequest.js b/dist/models/V1AssemblyCarriagePostingListRequest.js new file mode 100644 index 0000000..9f80aa2 --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListRequest.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriagePostingListRequest = instanceOfV1AssemblyCarriagePostingListRequest; +exports.V1AssemblyCarriagePostingListRequestFromJSON = V1AssemblyCarriagePostingListRequestFromJSON; +exports.V1AssemblyCarriagePostingListRequestFromJSONTyped = V1AssemblyCarriagePostingListRequestFromJSONTyped; +exports.V1AssemblyCarriagePostingListRequestToJSON = V1AssemblyCarriagePostingListRequestToJSON; +const V1AssemblyCarriagePostingListRequestFilter_1 = require("./V1AssemblyCarriagePostingListRequestFilter"); +/** + * Check if a given object implements the V1AssemblyCarriagePostingListRequest interface. + */ +function instanceOfV1AssemblyCarriagePostingListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1AssemblyCarriagePostingListRequestFromJSON(json) { + return V1AssemblyCarriagePostingListRequestFromJSONTyped(json, false); +} +function V1AssemblyCarriagePostingListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': (0, V1AssemblyCarriagePostingListRequestFilter_1.V1AssemblyCarriagePostingListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function V1AssemblyCarriagePostingListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, V1AssemblyCarriagePostingListRequestFilter_1.V1AssemblyCarriagePostingListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1AssemblyCarriagePostingListRequestFilter.d.ts b/dist/models/V1AssemblyCarriagePostingListRequestFilter.d.ts new file mode 100644 index 0000000..9a7e176 --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListRequestFilter.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AssemblyCarriagePostingListRequestFilter + */ +export interface V1AssemblyCarriagePostingListRequestFilter { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1AssemblyCarriagePostingListRequestFilter + */ + carriage_id: number; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyCarriagePostingListRequestFilter + */ + cutoff_from?: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyCarriagePostingListRequestFilter + */ + cutoff_to?: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {number} + * @memberof V1AssemblyCarriagePostingListRequestFilter + */ + delivery_method_id?: number; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListRequestFilter interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListRequestFilter(value: object): value is V1AssemblyCarriagePostingListRequestFilter; +export declare function V1AssemblyCarriagePostingListRequestFilterFromJSON(json: any): V1AssemblyCarriagePostingListRequestFilter; +export declare function V1AssemblyCarriagePostingListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListRequestFilter; +export declare function V1AssemblyCarriagePostingListRequestFilterToJSON(value?: V1AssemblyCarriagePostingListRequestFilter | null): any; diff --git a/dist/models/V1AssemblyCarriagePostingListRequestFilter.js b/dist/models/V1AssemblyCarriagePostingListRequestFilter.js new file mode 100644 index 0000000..a8df31f --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListRequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriagePostingListRequestFilter = instanceOfV1AssemblyCarriagePostingListRequestFilter; +exports.V1AssemblyCarriagePostingListRequestFilterFromJSON = V1AssemblyCarriagePostingListRequestFilterFromJSON; +exports.V1AssemblyCarriagePostingListRequestFilterFromJSONTyped = V1AssemblyCarriagePostingListRequestFilterFromJSONTyped; +exports.V1AssemblyCarriagePostingListRequestFilterToJSON = V1AssemblyCarriagePostingListRequestFilterToJSON; +/** + * Check if a given object implements the V1AssemblyCarriagePostingListRequestFilter interface. + */ +function instanceOfV1AssemblyCarriagePostingListRequestFilter(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function V1AssemblyCarriagePostingListRequestFilterFromJSON(json) { + return V1AssemblyCarriagePostingListRequestFilterFromJSONTyped(json, false); +} +function V1AssemblyCarriagePostingListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'cutoff_from': json['cutoff_from'] == null ? undefined : json['cutoff_from'], + 'cutoff_to': json['cutoff_to'] == null ? undefined : json['cutoff_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + }; +} +function V1AssemblyCarriagePostingListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/models/V1AssemblyCarriagePostingListResponse.d.ts b/dist/models/V1AssemblyCarriagePostingListResponse.d.ts new file mode 100644 index 0000000..c27bbc2 --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriagePostingListResponsePosting } from './V1AssemblyCarriagePostingListResponsePosting'; +/** + * + * @export + * @interface V1AssemblyCarriagePostingListResponse + */ +export interface V1AssemblyCarriagePostingListResponse { + /** + * `true`, если можно распечатать этикетки массово. + * + * @type {boolean} + * @memberof V1AssemblyCarriagePostingListResponse + */ + can_print_mass_label?: boolean; + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponse + */ + cursor?: string; + /** + * Список отправлений. + * @type {Array} + * @memberof V1AssemblyCarriagePostingListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponse interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListResponse(value: object): value is V1AssemblyCarriagePostingListResponse; +export declare function V1AssemblyCarriagePostingListResponseFromJSON(json: any): V1AssemblyCarriagePostingListResponse; +export declare function V1AssemblyCarriagePostingListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListResponse; +export declare function V1AssemblyCarriagePostingListResponseToJSON(value?: V1AssemblyCarriagePostingListResponse | null): any; diff --git a/dist/models/V1AssemblyCarriagePostingListResponse.js b/dist/models/V1AssemblyCarriagePostingListResponse.js new file mode 100644 index 0000000..9885b00 --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriagePostingListResponse = instanceOfV1AssemblyCarriagePostingListResponse; +exports.V1AssemblyCarriagePostingListResponseFromJSON = V1AssemblyCarriagePostingListResponseFromJSON; +exports.V1AssemblyCarriagePostingListResponseFromJSONTyped = V1AssemblyCarriagePostingListResponseFromJSONTyped; +exports.V1AssemblyCarriagePostingListResponseToJSON = V1AssemblyCarriagePostingListResponseToJSON; +const V1AssemblyCarriagePostingListResponsePosting_1 = require("./V1AssemblyCarriagePostingListResponsePosting"); +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponse interface. + */ +function instanceOfV1AssemblyCarriagePostingListResponse(value) { + return true; +} +function V1AssemblyCarriagePostingListResponseFromJSON(json) { + return V1AssemblyCarriagePostingListResponseFromJSONTyped(json, false); +} +function V1AssemblyCarriagePostingListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_print_mass_label': json['can_print_mass_label'] == null ? undefined : json['can_print_mass_label'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V1AssemblyCarriagePostingListResponsePosting_1.V1AssemblyCarriagePostingListResponsePostingFromJSON)), + }; +} +function V1AssemblyCarriagePostingListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_print_mass_label': value['can_print_mass_label'], + 'cursor': value['cursor'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V1AssemblyCarriagePostingListResponsePosting_1.V1AssemblyCarriagePostingListResponsePostingToJSON)), + }; +} diff --git a/dist/models/V1AssemblyCarriagePostingListResponsePosting.d.ts b/dist/models/V1AssemblyCarriagePostingListResponsePosting.d.ts new file mode 100644 index 0000000..886b736 --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListResponsePosting.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriagePostingListResponsePostingProduct } from './V1AssemblyCarriagePostingListResponsePostingProduct'; +/** + * + * @export + * @interface V1AssemblyCarriagePostingListResponsePosting + */ +export interface V1AssemblyCarriagePostingListResponsePosting { + /** + * Код листа подбора. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePosting + */ + assembly_code?: string; + /** + * `true`, если можно распечатать этикетку. + * + * @type {boolean} + * @memberof V1AssemblyCarriagePostingListResponsePosting + */ + can_print_label?: boolean; + /** + * Номер отправления. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePosting + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V1AssemblyCarriagePostingListResponsePosting + */ + products?: Array; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponsePosting interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListResponsePosting(value: object): value is V1AssemblyCarriagePostingListResponsePosting; +export declare function V1AssemblyCarriagePostingListResponsePostingFromJSON(json: any): V1AssemblyCarriagePostingListResponsePosting; +export declare function V1AssemblyCarriagePostingListResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListResponsePosting; +export declare function V1AssemblyCarriagePostingListResponsePostingToJSON(value?: V1AssemblyCarriagePostingListResponsePosting | null): any; diff --git a/dist/models/V1AssemblyCarriagePostingListResponsePosting.js b/dist/models/V1AssemblyCarriagePostingListResponsePosting.js new file mode 100644 index 0000000..95a5594 --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListResponsePosting.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriagePostingListResponsePosting = instanceOfV1AssemblyCarriagePostingListResponsePosting; +exports.V1AssemblyCarriagePostingListResponsePostingFromJSON = V1AssemblyCarriagePostingListResponsePostingFromJSON; +exports.V1AssemblyCarriagePostingListResponsePostingFromJSONTyped = V1AssemblyCarriagePostingListResponsePostingFromJSONTyped; +exports.V1AssemblyCarriagePostingListResponsePostingToJSON = V1AssemblyCarriagePostingListResponsePostingToJSON; +const V1AssemblyCarriagePostingListResponsePostingProduct_1 = require("./V1AssemblyCarriagePostingListResponsePostingProduct"); +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponsePosting interface. + */ +function instanceOfV1AssemblyCarriagePostingListResponsePosting(value) { + return true; +} +function V1AssemblyCarriagePostingListResponsePostingFromJSON(json) { + return V1AssemblyCarriagePostingListResponsePostingFromJSONTyped(json, false); +} +function V1AssemblyCarriagePostingListResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'assembly_code': json['assembly_code'] == null ? undefined : json['assembly_code'], + 'can_print_label': json['can_print_label'] == null ? undefined : json['can_print_label'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1AssemblyCarriagePostingListResponsePostingProduct_1.V1AssemblyCarriagePostingListResponsePostingProductFromJSON)), + }; +} +function V1AssemblyCarriagePostingListResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'assembly_code': value['assembly_code'], + 'can_print_label': value['can_print_label'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1AssemblyCarriagePostingListResponsePostingProduct_1.V1AssemblyCarriagePostingListResponsePostingProductToJSON)), + }; +} diff --git a/dist/models/V1AssemblyCarriagePostingListResponsePostingProduct.d.ts b/dist/models/V1AssemblyCarriagePostingListResponsePostingProduct.d.ts new file mode 100644 index 0000000..4d065a9 --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListResponsePostingProduct.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AssemblyCarriagePostingListResponsePostingProduct + */ +export interface V1AssemblyCarriagePostingListResponsePostingProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + offer_id?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + picture_url?: string; + /** + * Название товара. + * @type {string} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + product_name?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AssemblyCarriagePostingListResponsePostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponsePostingProduct interface. + */ +export declare function instanceOfV1AssemblyCarriagePostingListResponsePostingProduct(value: object): value is V1AssemblyCarriagePostingListResponsePostingProduct; +export declare function V1AssemblyCarriagePostingListResponsePostingProductFromJSON(json: any): V1AssemblyCarriagePostingListResponsePostingProduct; +export declare function V1AssemblyCarriagePostingListResponsePostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriagePostingListResponsePostingProduct; +export declare function V1AssemblyCarriagePostingListResponsePostingProductToJSON(value?: V1AssemblyCarriagePostingListResponsePostingProduct | null): any; diff --git a/dist/models/V1AssemblyCarriagePostingListResponsePostingProduct.js b/dist/models/V1AssemblyCarriagePostingListResponsePostingProduct.js new file mode 100644 index 0000000..616de6d --- /dev/null +++ b/dist/models/V1AssemblyCarriagePostingListResponsePostingProduct.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriagePostingListResponsePostingProduct = instanceOfV1AssemblyCarriagePostingListResponsePostingProduct; +exports.V1AssemblyCarriagePostingListResponsePostingProductFromJSON = V1AssemblyCarriagePostingListResponsePostingProductFromJSON; +exports.V1AssemblyCarriagePostingListResponsePostingProductFromJSONTyped = V1AssemblyCarriagePostingListResponsePostingProductFromJSONTyped; +exports.V1AssemblyCarriagePostingListResponsePostingProductToJSON = V1AssemblyCarriagePostingListResponsePostingProductToJSON; +/** + * Check if a given object implements the V1AssemblyCarriagePostingListResponsePostingProduct interface. + */ +function instanceOfV1AssemblyCarriagePostingListResponsePostingProduct(value) { + return true; +} +function V1AssemblyCarriagePostingListResponsePostingProductFromJSON(json) { + return V1AssemblyCarriagePostingListResponsePostingProductFromJSONTyped(json, false); +} +function V1AssemblyCarriagePostingListResponsePostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1AssemblyCarriagePostingListResponsePostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'picture_url': value['picture_url'], + 'product_name': value['product_name'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1AssemblyCarriageProductListRequest.d.ts b/dist/models/V1AssemblyCarriageProductListRequest.d.ts new file mode 100644 index 0000000..0a8bbf7 --- /dev/null +++ b/dist/models/V1AssemblyCarriageProductListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriageProductListRequestFilter } from './V1AssemblyCarriageProductListRequestFilter'; +/** + * + * @export + * @interface V1AssemblyCarriageProductListRequest + */ +export interface V1AssemblyCarriageProductListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1AssemblyCarriageProductListRequest + */ + cursor?: string; + /** + * + * @type {V1AssemblyCarriageProductListRequestFilter} + * @memberof V1AssemblyCarriageProductListRequest + */ + filter: V1AssemblyCarriageProductListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1AssemblyCarriageProductListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1AssemblyCarriageProductListRequest interface. + */ +export declare function instanceOfV1AssemblyCarriageProductListRequest(value: object): value is V1AssemblyCarriageProductListRequest; +export declare function V1AssemblyCarriageProductListRequestFromJSON(json: any): V1AssemblyCarriageProductListRequest; +export declare function V1AssemblyCarriageProductListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriageProductListRequest; +export declare function V1AssemblyCarriageProductListRequestToJSON(value?: V1AssemblyCarriageProductListRequest | null): any; diff --git a/dist/models/V1AssemblyCarriageProductListRequest.js b/dist/models/V1AssemblyCarriageProductListRequest.js new file mode 100644 index 0000000..5173194 --- /dev/null +++ b/dist/models/V1AssemblyCarriageProductListRequest.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriageProductListRequest = instanceOfV1AssemblyCarriageProductListRequest; +exports.V1AssemblyCarriageProductListRequestFromJSON = V1AssemblyCarriageProductListRequestFromJSON; +exports.V1AssemblyCarriageProductListRequestFromJSONTyped = V1AssemblyCarriageProductListRequestFromJSONTyped; +exports.V1AssemblyCarriageProductListRequestToJSON = V1AssemblyCarriageProductListRequestToJSON; +const V1AssemblyCarriageProductListRequestFilter_1 = require("./V1AssemblyCarriageProductListRequestFilter"); +/** + * Check if a given object implements the V1AssemblyCarriageProductListRequest interface. + */ +function instanceOfV1AssemblyCarriageProductListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1AssemblyCarriageProductListRequestFromJSON(json) { + return V1AssemblyCarriageProductListRequestFromJSONTyped(json, false); +} +function V1AssemblyCarriageProductListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': (0, V1AssemblyCarriageProductListRequestFilter_1.V1AssemblyCarriageProductListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function V1AssemblyCarriageProductListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, V1AssemblyCarriageProductListRequestFilter_1.V1AssemblyCarriageProductListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1AssemblyCarriageProductListRequestFilter.d.ts b/dist/models/V1AssemblyCarriageProductListRequestFilter.d.ts new file mode 100644 index 0000000..a74d116 --- /dev/null +++ b/dist/models/V1AssemblyCarriageProductListRequestFilter.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AssemblyCarriageProductListRequestFilter + */ +export interface V1AssemblyCarriageProductListRequestFilter { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1AssemblyCarriageProductListRequestFilter + */ + carriage_id: number; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyCarriageProductListRequestFilter + */ + cutoff_from?: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyCarriageProductListRequestFilter + */ + cutoff_to?: string; + /** + * Идентификатор метода доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {number} + * @memberof V1AssemblyCarriageProductListRequestFilter + */ + delivery_method_id?: number; +} +/** + * Check if a given object implements the V1AssemblyCarriageProductListRequestFilter interface. + */ +export declare function instanceOfV1AssemblyCarriageProductListRequestFilter(value: object): value is V1AssemblyCarriageProductListRequestFilter; +export declare function V1AssemblyCarriageProductListRequestFilterFromJSON(json: any): V1AssemblyCarriageProductListRequestFilter; +export declare function V1AssemblyCarriageProductListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriageProductListRequestFilter; +export declare function V1AssemblyCarriageProductListRequestFilterToJSON(value?: V1AssemblyCarriageProductListRequestFilter | null): any; diff --git a/dist/models/V1AssemblyCarriageProductListRequestFilter.js b/dist/models/V1AssemblyCarriageProductListRequestFilter.js new file mode 100644 index 0000000..ae77d04 --- /dev/null +++ b/dist/models/V1AssemblyCarriageProductListRequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriageProductListRequestFilter = instanceOfV1AssemblyCarriageProductListRequestFilter; +exports.V1AssemblyCarriageProductListRequestFilterFromJSON = V1AssemblyCarriageProductListRequestFilterFromJSON; +exports.V1AssemblyCarriageProductListRequestFilterFromJSONTyped = V1AssemblyCarriageProductListRequestFilterFromJSONTyped; +exports.V1AssemblyCarriageProductListRequestFilterToJSON = V1AssemblyCarriageProductListRequestFilterToJSON; +/** + * Check if a given object implements the V1AssemblyCarriageProductListRequestFilter interface. + */ +function instanceOfV1AssemblyCarriageProductListRequestFilter(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function V1AssemblyCarriageProductListRequestFilterFromJSON(json) { + return V1AssemblyCarriageProductListRequestFilterFromJSONTyped(json, false); +} +function V1AssemblyCarriageProductListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'cutoff_from': json['cutoff_from'] == null ? undefined : json['cutoff_from'], + 'cutoff_to': json['cutoff_to'] == null ? undefined : json['cutoff_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + }; +} +function V1AssemblyCarriageProductListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/models/V1AssemblyCarriageProductListResponse.d.ts b/dist/models/V1AssemblyCarriageProductListResponse.d.ts new file mode 100644 index 0000000..6e73051 --- /dev/null +++ b/dist/models/V1AssemblyCarriageProductListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyCarriageProductListResponseProduct } from './V1AssemblyCarriageProductListResponseProduct'; +/** + * + * @export + * @interface V1AssemblyCarriageProductListResponse + */ +export interface V1AssemblyCarriageProductListResponse { + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof V1AssemblyCarriageProductListResponse + */ + cursor?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V1AssemblyCarriageProductListResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1AssemblyCarriageProductListResponse interface. + */ +export declare function instanceOfV1AssemblyCarriageProductListResponse(value: object): value is V1AssemblyCarriageProductListResponse; +export declare function V1AssemblyCarriageProductListResponseFromJSON(json: any): V1AssemblyCarriageProductListResponse; +export declare function V1AssemblyCarriageProductListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriageProductListResponse; +export declare function V1AssemblyCarriageProductListResponseToJSON(value?: V1AssemblyCarriageProductListResponse | null): any; diff --git a/dist/models/V1AssemblyCarriageProductListResponse.js b/dist/models/V1AssemblyCarriageProductListResponse.js new file mode 100644 index 0000000..365a633 --- /dev/null +++ b/dist/models/V1AssemblyCarriageProductListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriageProductListResponse = instanceOfV1AssemblyCarriageProductListResponse; +exports.V1AssemblyCarriageProductListResponseFromJSON = V1AssemblyCarriageProductListResponseFromJSON; +exports.V1AssemblyCarriageProductListResponseFromJSONTyped = V1AssemblyCarriageProductListResponseFromJSONTyped; +exports.V1AssemblyCarriageProductListResponseToJSON = V1AssemblyCarriageProductListResponseToJSON; +const V1AssemblyCarriageProductListResponseProduct_1 = require("./V1AssemblyCarriageProductListResponseProduct"); +/** + * Check if a given object implements the V1AssemblyCarriageProductListResponse interface. + */ +function instanceOfV1AssemblyCarriageProductListResponse(value) { + return true; +} +function V1AssemblyCarriageProductListResponseFromJSON(json) { + return V1AssemblyCarriageProductListResponseFromJSONTyped(json, false); +} +function V1AssemblyCarriageProductListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1AssemblyCarriageProductListResponseProduct_1.V1AssemblyCarriageProductListResponseProductFromJSON)), + }; +} +function V1AssemblyCarriageProductListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1AssemblyCarriageProductListResponseProduct_1.V1AssemblyCarriageProductListResponseProductToJSON)), + }; +} diff --git a/dist/models/V1AssemblyCarriageProductListResponseProduct.d.ts b/dist/models/V1AssemblyCarriageProductListResponseProduct.d.ts new file mode 100644 index 0000000..3ec6d86 --- /dev/null +++ b/dist/models/V1AssemblyCarriageProductListResponseProduct.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AssemblyCarriageProductListResponseProduct + */ +export interface V1AssemblyCarriageProductListResponseProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + offer_id?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + picture_url?: string; + /** + * Номера отправлений. + * @type {Array} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + posting_numbers?: Array; + /** + * Название товара. + * @type {string} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + product_name?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AssemblyCarriageProductListResponseProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V1AssemblyCarriageProductListResponseProduct interface. + */ +export declare function instanceOfV1AssemblyCarriageProductListResponseProduct(value: object): value is V1AssemblyCarriageProductListResponseProduct; +export declare function V1AssemblyCarriageProductListResponseProductFromJSON(json: any): V1AssemblyCarriageProductListResponseProduct; +export declare function V1AssemblyCarriageProductListResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyCarriageProductListResponseProduct; +export declare function V1AssemblyCarriageProductListResponseProductToJSON(value?: V1AssemblyCarriageProductListResponseProduct | null): any; diff --git a/dist/models/V1AssemblyCarriageProductListResponseProduct.js b/dist/models/V1AssemblyCarriageProductListResponseProduct.js new file mode 100644 index 0000000..1d8394e --- /dev/null +++ b/dist/models/V1AssemblyCarriageProductListResponseProduct.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyCarriageProductListResponseProduct = instanceOfV1AssemblyCarriageProductListResponseProduct; +exports.V1AssemblyCarriageProductListResponseProductFromJSON = V1AssemblyCarriageProductListResponseProductFromJSON; +exports.V1AssemblyCarriageProductListResponseProductFromJSONTyped = V1AssemblyCarriageProductListResponseProductFromJSONTyped; +exports.V1AssemblyCarriageProductListResponseProductToJSON = V1AssemblyCarriageProductListResponseProductToJSON; +/** + * Check if a given object implements the V1AssemblyCarriageProductListResponseProduct interface. + */ +function instanceOfV1AssemblyCarriageProductListResponseProduct(value) { + return true; +} +function V1AssemblyCarriageProductListResponseProductFromJSON(json) { + return V1AssemblyCarriageProductListResponseProductFromJSONTyped(json, false); +} +function V1AssemblyCarriageProductListResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1AssemblyCarriageProductListResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'picture_url': value['picture_url'], + 'posting_numbers': value['posting_numbers'], + 'product_name': value['product_name'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1AssemblyFbsPostingListRequest.d.ts b/dist/models/V1AssemblyFbsPostingListRequest.d.ts new file mode 100644 index 0000000..0ef1a09 --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyFbsPostingListRequestSortDirEnum } from './V1AssemblyFbsPostingListRequestSortDirEnum'; +import type { V1AssemblyFbsPostingListRequestFilter } from './V1AssemblyFbsPostingListRequestFilter'; +/** + * + * @export + * @interface V1AssemblyFbsPostingListRequest + */ +export interface V1AssemblyFbsPostingListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1AssemblyFbsPostingListRequest + */ + cursor?: string; + /** + * + * @type {V1AssemblyFbsPostingListRequestFilter} + * @memberof V1AssemblyFbsPostingListRequest + */ + filter: V1AssemblyFbsPostingListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1AssemblyFbsPostingListRequest + */ + limit: number; + /** + * + * @type {V1AssemblyFbsPostingListRequestSortDirEnum} + * @memberof V1AssemblyFbsPostingListRequest + */ + sort_dir: V1AssemblyFbsPostingListRequestSortDirEnum; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListRequest interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListRequest(value: object): value is V1AssemblyFbsPostingListRequest; +export declare function V1AssemblyFbsPostingListRequestFromJSON(json: any): V1AssemblyFbsPostingListRequest; +export declare function V1AssemblyFbsPostingListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListRequest; +export declare function V1AssemblyFbsPostingListRequestToJSON(value?: V1AssemblyFbsPostingListRequest | null): any; diff --git a/dist/models/V1AssemblyFbsPostingListRequest.js b/dist/models/V1AssemblyFbsPostingListRequest.js new file mode 100644 index 0000000..3d81bad --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListRequest.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyFbsPostingListRequest = instanceOfV1AssemblyFbsPostingListRequest; +exports.V1AssemblyFbsPostingListRequestFromJSON = V1AssemblyFbsPostingListRequestFromJSON; +exports.V1AssemblyFbsPostingListRequestFromJSONTyped = V1AssemblyFbsPostingListRequestFromJSONTyped; +exports.V1AssemblyFbsPostingListRequestToJSON = V1AssemblyFbsPostingListRequestToJSON; +const V1AssemblyFbsPostingListRequestSortDirEnum_1 = require("./V1AssemblyFbsPostingListRequestSortDirEnum"); +const V1AssemblyFbsPostingListRequestFilter_1 = require("./V1AssemblyFbsPostingListRequestFilter"); +/** + * Check if a given object implements the V1AssemblyFbsPostingListRequest interface. + */ +function instanceOfV1AssemblyFbsPostingListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('sort_dir' in value) || value['sort_dir'] === undefined) + return false; + return true; +} +function V1AssemblyFbsPostingListRequestFromJSON(json) { + return V1AssemblyFbsPostingListRequestFromJSONTyped(json, false); +} +function V1AssemblyFbsPostingListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': (0, V1AssemblyFbsPostingListRequestFilter_1.V1AssemblyFbsPostingListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'sort_dir': (0, V1AssemblyFbsPostingListRequestSortDirEnum_1.V1AssemblyFbsPostingListRequestSortDirEnumFromJSON)(json['sort_dir']), + }; +} +function V1AssemblyFbsPostingListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, V1AssemblyFbsPostingListRequestFilter_1.V1AssemblyFbsPostingListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'sort_dir': (0, V1AssemblyFbsPostingListRequestSortDirEnum_1.V1AssemblyFbsPostingListRequestSortDirEnumToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/V1AssemblyFbsPostingListRequestFilter.d.ts b/dist/models/V1AssemblyFbsPostingListRequestFilter.d.ts new file mode 100644 index 0000000..8a628ad --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AssemblyFbsPostingListRequestFilter + */ +export interface V1AssemblyFbsPostingListRequestFilter { + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyFbsPostingListRequestFilter + */ + cutoff_from: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyFbsPostingListRequestFilter + */ + cutoff_to: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {number} + * @memberof V1AssemblyFbsPostingListRequestFilter + */ + delivery_method_id?: number; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListRequestFilter interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListRequestFilter(value: object): value is V1AssemblyFbsPostingListRequestFilter; +export declare function V1AssemblyFbsPostingListRequestFilterFromJSON(json: any): V1AssemblyFbsPostingListRequestFilter; +export declare function V1AssemblyFbsPostingListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListRequestFilter; +export declare function V1AssemblyFbsPostingListRequestFilterToJSON(value?: V1AssemblyFbsPostingListRequestFilter | null): any; diff --git a/dist/models/V1AssemblyFbsPostingListRequestFilter.js b/dist/models/V1AssemblyFbsPostingListRequestFilter.js new file mode 100644 index 0000000..a53ea84 --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListRequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyFbsPostingListRequestFilter = instanceOfV1AssemblyFbsPostingListRequestFilter; +exports.V1AssemblyFbsPostingListRequestFilterFromJSON = V1AssemblyFbsPostingListRequestFilterFromJSON; +exports.V1AssemblyFbsPostingListRequestFilterFromJSONTyped = V1AssemblyFbsPostingListRequestFilterFromJSONTyped; +exports.V1AssemblyFbsPostingListRequestFilterToJSON = V1AssemblyFbsPostingListRequestFilterToJSON; +/** + * Check if a given object implements the V1AssemblyFbsPostingListRequestFilter interface. + */ +function instanceOfV1AssemblyFbsPostingListRequestFilter(value) { + if (!('cutoff_from' in value) || value['cutoff_from'] === undefined) + return false; + if (!('cutoff_to' in value) || value['cutoff_to'] === undefined) + return false; + return true; +} +function V1AssemblyFbsPostingListRequestFilterFromJSON(json) { + return V1AssemblyFbsPostingListRequestFilterFromJSONTyped(json, false); +} +function V1AssemblyFbsPostingListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cutoff_from': json['cutoff_from'], + 'cutoff_to': json['cutoff_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + }; +} +function V1AssemblyFbsPostingListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/models/V1AssemblyFbsPostingListRequestSortDirEnum.d.ts b/dist/models/V1AssemblyFbsPostingListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..f30e92a --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export declare const V1AssemblyFbsPostingListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type V1AssemblyFbsPostingListRequestSortDirEnum = typeof V1AssemblyFbsPostingListRequestSortDirEnum[keyof typeof V1AssemblyFbsPostingListRequestSortDirEnum]; +export declare function instanceOfV1AssemblyFbsPostingListRequestSortDirEnum(value: any): boolean; +export declare function V1AssemblyFbsPostingListRequestSortDirEnumFromJSON(json: any): V1AssemblyFbsPostingListRequestSortDirEnum; +export declare function V1AssemblyFbsPostingListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListRequestSortDirEnum; +export declare function V1AssemblyFbsPostingListRequestSortDirEnumToJSON(value?: V1AssemblyFbsPostingListRequestSortDirEnum | null): any; diff --git a/dist/models/V1AssemblyFbsPostingListRequestSortDirEnum.js b/dist/models/V1AssemblyFbsPostingListRequestSortDirEnum.js new file mode 100644 index 0000000..476ee0e --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1AssemblyFbsPostingListRequestSortDirEnum = void 0; +exports.instanceOfV1AssemblyFbsPostingListRequestSortDirEnum = instanceOfV1AssemblyFbsPostingListRequestSortDirEnum; +exports.V1AssemblyFbsPostingListRequestSortDirEnumFromJSON = V1AssemblyFbsPostingListRequestSortDirEnumFromJSON; +exports.V1AssemblyFbsPostingListRequestSortDirEnumFromJSONTyped = V1AssemblyFbsPostingListRequestSortDirEnumFromJSONTyped; +exports.V1AssemblyFbsPostingListRequestSortDirEnumToJSON = V1AssemblyFbsPostingListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +exports.V1AssemblyFbsPostingListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfV1AssemblyFbsPostingListRequestSortDirEnum(value) { + for (const key in exports.V1AssemblyFbsPostingListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1AssemblyFbsPostingListRequestSortDirEnum, key)) { + if (exports.V1AssemblyFbsPostingListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1AssemblyFbsPostingListRequestSortDirEnumFromJSON(json) { + return V1AssemblyFbsPostingListRequestSortDirEnumFromJSONTyped(json, false); +} +function V1AssemblyFbsPostingListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1AssemblyFbsPostingListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1AssemblyFbsPostingListResponse.d.ts b/dist/models/V1AssemblyFbsPostingListResponse.d.ts new file mode 100644 index 0000000..427e79d --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyFbsPostingListResponsePosting } from './V1AssemblyFbsPostingListResponsePosting'; +/** + * + * @export + * @interface V1AssemblyFbsPostingListResponse + */ +export interface V1AssemblyFbsPostingListResponse { + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponse + */ + cursor?: string; + /** + * Время, до которого продавцу нужно собрать заказ. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponse + */ + cutoff?: string; + /** + * Список отправлений. + * @type {Array} + * @memberof V1AssemblyFbsPostingListResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponse interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListResponse(value: object): value is V1AssemblyFbsPostingListResponse; +export declare function V1AssemblyFbsPostingListResponseFromJSON(json: any): V1AssemblyFbsPostingListResponse; +export declare function V1AssemblyFbsPostingListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListResponse; +export declare function V1AssemblyFbsPostingListResponseToJSON(value?: V1AssemblyFbsPostingListResponse | null): any; diff --git a/dist/models/V1AssemblyFbsPostingListResponse.js b/dist/models/V1AssemblyFbsPostingListResponse.js new file mode 100644 index 0000000..be9167f --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyFbsPostingListResponse = instanceOfV1AssemblyFbsPostingListResponse; +exports.V1AssemblyFbsPostingListResponseFromJSON = V1AssemblyFbsPostingListResponseFromJSON; +exports.V1AssemblyFbsPostingListResponseFromJSONTyped = V1AssemblyFbsPostingListResponseFromJSONTyped; +exports.V1AssemblyFbsPostingListResponseToJSON = V1AssemblyFbsPostingListResponseToJSON; +const V1AssemblyFbsPostingListResponsePosting_1 = require("./V1AssemblyFbsPostingListResponsePosting"); +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponse interface. + */ +function instanceOfV1AssemblyFbsPostingListResponse(value) { + return true; +} +function V1AssemblyFbsPostingListResponseFromJSON(json) { + return V1AssemblyFbsPostingListResponseFromJSONTyped(json, false); +} +function V1AssemblyFbsPostingListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'cutoff': json['cutoff'] == null ? undefined : json['cutoff'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V1AssemblyFbsPostingListResponsePosting_1.V1AssemblyFbsPostingListResponsePostingFromJSON)), + }; +} +function V1AssemblyFbsPostingListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'cutoff': value['cutoff'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V1AssemblyFbsPostingListResponsePosting_1.V1AssemblyFbsPostingListResponsePostingToJSON)), + }; +} diff --git a/dist/models/V1AssemblyFbsPostingListResponsePosting.d.ts b/dist/models/V1AssemblyFbsPostingListResponsePosting.d.ts new file mode 100644 index 0000000..ddbb2cf --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListResponsePosting.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyFbsPostingListResponsePostingProduct } from './V1AssemblyFbsPostingListResponsePostingProduct'; +/** + * + * @export + * @interface V1AssemblyFbsPostingListResponsePosting + */ +export interface V1AssemblyFbsPostingListResponsePosting { + /** + * Код листа подбора. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePosting + */ + assembly_code?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePosting + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V1AssemblyFbsPostingListResponsePosting + */ + products?: Array; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponsePosting interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListResponsePosting(value: object): value is V1AssemblyFbsPostingListResponsePosting; +export declare function V1AssemblyFbsPostingListResponsePostingFromJSON(json: any): V1AssemblyFbsPostingListResponsePosting; +export declare function V1AssemblyFbsPostingListResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListResponsePosting; +export declare function V1AssemblyFbsPostingListResponsePostingToJSON(value?: V1AssemblyFbsPostingListResponsePosting | null): any; diff --git a/dist/models/V1AssemblyFbsPostingListResponsePosting.js b/dist/models/V1AssemblyFbsPostingListResponsePosting.js new file mode 100644 index 0000000..54db7a8 --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListResponsePosting.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyFbsPostingListResponsePosting = instanceOfV1AssemblyFbsPostingListResponsePosting; +exports.V1AssemblyFbsPostingListResponsePostingFromJSON = V1AssemblyFbsPostingListResponsePostingFromJSON; +exports.V1AssemblyFbsPostingListResponsePostingFromJSONTyped = V1AssemblyFbsPostingListResponsePostingFromJSONTyped; +exports.V1AssemblyFbsPostingListResponsePostingToJSON = V1AssemblyFbsPostingListResponsePostingToJSON; +const V1AssemblyFbsPostingListResponsePostingProduct_1 = require("./V1AssemblyFbsPostingListResponsePostingProduct"); +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponsePosting interface. + */ +function instanceOfV1AssemblyFbsPostingListResponsePosting(value) { + return true; +} +function V1AssemblyFbsPostingListResponsePostingFromJSON(json) { + return V1AssemblyFbsPostingListResponsePostingFromJSONTyped(json, false); +} +function V1AssemblyFbsPostingListResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'assembly_code': json['assembly_code'] == null ? undefined : json['assembly_code'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1AssemblyFbsPostingListResponsePostingProduct_1.V1AssemblyFbsPostingListResponsePostingProductFromJSON)), + }; +} +function V1AssemblyFbsPostingListResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'assembly_code': value['assembly_code'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1AssemblyFbsPostingListResponsePostingProduct_1.V1AssemblyFbsPostingListResponsePostingProductToJSON)), + }; +} diff --git a/dist/models/V1AssemblyFbsPostingListResponsePostingProduct.d.ts b/dist/models/V1AssemblyFbsPostingListResponsePostingProduct.d.ts new file mode 100644 index 0000000..9cd1d61 --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListResponsePostingProduct.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1AssemblyFbsPostingListResponsePostingProduct + */ +export interface V1AssemblyFbsPostingListResponsePostingProduct { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + offer_id?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + picture_url?: string; + /** + * Название товара. + * @type {string} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + product_name?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1AssemblyFbsPostingListResponsePostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponsePostingProduct interface. + */ +export declare function instanceOfV1AssemblyFbsPostingListResponsePostingProduct(value: object): value is V1AssemblyFbsPostingListResponsePostingProduct; +export declare function V1AssemblyFbsPostingListResponsePostingProductFromJSON(json: any): V1AssemblyFbsPostingListResponsePostingProduct; +export declare function V1AssemblyFbsPostingListResponsePostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsPostingListResponsePostingProduct; +export declare function V1AssemblyFbsPostingListResponsePostingProductToJSON(value?: V1AssemblyFbsPostingListResponsePostingProduct | null): any; diff --git a/dist/models/V1AssemblyFbsPostingListResponsePostingProduct.js b/dist/models/V1AssemblyFbsPostingListResponsePostingProduct.js new file mode 100644 index 0000000..fb93e13 --- /dev/null +++ b/dist/models/V1AssemblyFbsPostingListResponsePostingProduct.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyFbsPostingListResponsePostingProduct = instanceOfV1AssemblyFbsPostingListResponsePostingProduct; +exports.V1AssemblyFbsPostingListResponsePostingProductFromJSON = V1AssemblyFbsPostingListResponsePostingProductFromJSON; +exports.V1AssemblyFbsPostingListResponsePostingProductFromJSONTyped = V1AssemblyFbsPostingListResponsePostingProductFromJSONTyped; +exports.V1AssemblyFbsPostingListResponsePostingProductToJSON = V1AssemblyFbsPostingListResponsePostingProductToJSON; +/** + * Check if a given object implements the V1AssemblyFbsPostingListResponsePostingProduct interface. + */ +function instanceOfV1AssemblyFbsPostingListResponsePostingProduct(value) { + return true; +} +function V1AssemblyFbsPostingListResponsePostingProductFromJSON(json) { + return V1AssemblyFbsPostingListResponsePostingProductFromJSONTyped(json, false); +} +function V1AssemblyFbsPostingListResponsePostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'picture_url': json['picture_url'] == null ? undefined : json['picture_url'], + 'product_name': json['product_name'] == null ? undefined : json['product_name'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1AssemblyFbsPostingListResponsePostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'picture_url': value['picture_url'], + 'product_name': value['product_name'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1AssemblyFbsProductListRequest.d.ts b/dist/models/V1AssemblyFbsProductListRequest.d.ts new file mode 100644 index 0000000..457e59f --- /dev/null +++ b/dist/models/V1AssemblyFbsProductListRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1AssemblyFbsProductListRequestFilter } from './V1AssemblyFbsProductListRequestFilter'; +import type { V1AssemblyFbsProductListRequestSortDirEnum } from './V1AssemblyFbsProductListRequestSortDirEnum'; +/** + * + * @export + * @interface V1AssemblyFbsProductListRequest + */ +export interface V1AssemblyFbsProductListRequest { + /** + * + * @type {V1AssemblyFbsProductListRequestFilter} + * @memberof V1AssemblyFbsProductListRequest + */ + filter: V1AssemblyFbsProductListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1AssemblyFbsProductListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, ответ начнётся с 11 найденного элемента. + * @type {number} + * @memberof V1AssemblyFbsProductListRequest + */ + offset?: number; + /** + * + * @type {V1AssemblyFbsProductListRequestSortDirEnum} + * @memberof V1AssemblyFbsProductListRequest + */ + sort_dir?: V1AssemblyFbsProductListRequestSortDirEnum; +} +/** + * Check if a given object implements the V1AssemblyFbsProductListRequest interface. + */ +export declare function instanceOfV1AssemblyFbsProductListRequest(value: object): value is V1AssemblyFbsProductListRequest; +export declare function V1AssemblyFbsProductListRequestFromJSON(json: any): V1AssemblyFbsProductListRequest; +export declare function V1AssemblyFbsProductListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsProductListRequest; +export declare function V1AssemblyFbsProductListRequestToJSON(value?: V1AssemblyFbsProductListRequest | null): any; diff --git a/dist/models/V1AssemblyFbsProductListRequest.js b/dist/models/V1AssemblyFbsProductListRequest.js new file mode 100644 index 0000000..5a15022 --- /dev/null +++ b/dist/models/V1AssemblyFbsProductListRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyFbsProductListRequest = instanceOfV1AssemblyFbsProductListRequest; +exports.V1AssemblyFbsProductListRequestFromJSON = V1AssemblyFbsProductListRequestFromJSON; +exports.V1AssemblyFbsProductListRequestFromJSONTyped = V1AssemblyFbsProductListRequestFromJSONTyped; +exports.V1AssemblyFbsProductListRequestToJSON = V1AssemblyFbsProductListRequestToJSON; +const V1AssemblyFbsProductListRequestFilter_1 = require("./V1AssemblyFbsProductListRequestFilter"); +const V1AssemblyFbsProductListRequestSortDirEnum_1 = require("./V1AssemblyFbsProductListRequestSortDirEnum"); +/** + * Check if a given object implements the V1AssemblyFbsProductListRequest interface. + */ +function instanceOfV1AssemblyFbsProductListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1AssemblyFbsProductListRequestFromJSON(json) { + return V1AssemblyFbsProductListRequestFromJSONTyped(json, false); +} +function V1AssemblyFbsProductListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': (0, V1AssemblyFbsProductListRequestFilter_1.V1AssemblyFbsProductListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, V1AssemblyFbsProductListRequestSortDirEnum_1.V1AssemblyFbsProductListRequestSortDirEnumFromJSON)(json['sort_dir']), + }; +} +function V1AssemblyFbsProductListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, V1AssemblyFbsProductListRequestFilter_1.V1AssemblyFbsProductListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'sort_dir': (0, V1AssemblyFbsProductListRequestSortDirEnum_1.V1AssemblyFbsProductListRequestSortDirEnumToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/V1AssemblyFbsProductListRequestFilter.d.ts b/dist/models/V1AssemblyFbsProductListRequestFilter.d.ts new file mode 100644 index 0000000..fe89ace --- /dev/null +++ b/dist/models/V1AssemblyFbsProductListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1AssemblyFbsProductListRequestFilter + */ +export interface V1AssemblyFbsProductListRequestFilter { + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Начало периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyFbsProductListRequestFilter + */ + cutoff_from: string; + /** + * Фильтр по времени, до которого продавцу нужно собрать заказ. Конец периода. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. Пример: `2020-03-18T07:34:50.359Z`. + * + * @type {string} + * @memberof V1AssemblyFbsProductListRequestFilter + */ + cutoff_to: string; + /** + * Идентификатор способа доставки. Можно получить с помощью метода [/v1/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodList). + * @type {number} + * @memberof V1AssemblyFbsProductListRequestFilter + */ + delivery_method_id?: number; +} +/** + * Check if a given object implements the V1AssemblyFbsProductListRequestFilter interface. + */ +export declare function instanceOfV1AssemblyFbsProductListRequestFilter(value: object): value is V1AssemblyFbsProductListRequestFilter; +export declare function V1AssemblyFbsProductListRequestFilterFromJSON(json: any): V1AssemblyFbsProductListRequestFilter; +export declare function V1AssemblyFbsProductListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsProductListRequestFilter; +export declare function V1AssemblyFbsProductListRequestFilterToJSON(value?: V1AssemblyFbsProductListRequestFilter | null): any; diff --git a/dist/models/V1AssemblyFbsProductListRequestFilter.js b/dist/models/V1AssemblyFbsProductListRequestFilter.js new file mode 100644 index 0000000..ad57a30 --- /dev/null +++ b/dist/models/V1AssemblyFbsProductListRequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyFbsProductListRequestFilter = instanceOfV1AssemblyFbsProductListRequestFilter; +exports.V1AssemblyFbsProductListRequestFilterFromJSON = V1AssemblyFbsProductListRequestFilterFromJSON; +exports.V1AssemblyFbsProductListRequestFilterFromJSONTyped = V1AssemblyFbsProductListRequestFilterFromJSONTyped; +exports.V1AssemblyFbsProductListRequestFilterToJSON = V1AssemblyFbsProductListRequestFilterToJSON; +/** + * Check if a given object implements the V1AssemblyFbsProductListRequestFilter interface. + */ +function instanceOfV1AssemblyFbsProductListRequestFilter(value) { + if (!('cutoff_from' in value) || value['cutoff_from'] === undefined) + return false; + if (!('cutoff_to' in value) || value['cutoff_to'] === undefined) + return false; + return true; +} +function V1AssemblyFbsProductListRequestFilterFromJSON(json) { + return V1AssemblyFbsProductListRequestFilterFromJSONTyped(json, false); +} +function V1AssemblyFbsProductListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cutoff_from': json['cutoff_from'], + 'cutoff_to': json['cutoff_to'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + }; +} +function V1AssemblyFbsProductListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'cutoff_from': value['cutoff_from'], + 'cutoff_to': value['cutoff_to'], + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/models/V1AssemblyFbsProductListRequestSortDirEnum.d.ts b/dist/models/V1AssemblyFbsProductListRequestSortDirEnum.d.ts new file mode 100644 index 0000000..11dfe50 --- /dev/null +++ b/dist/models/V1AssemblyFbsProductListRequestSortDirEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export declare const V1AssemblyFbsProductListRequestSortDirEnum: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type V1AssemblyFbsProductListRequestSortDirEnum = typeof V1AssemblyFbsProductListRequestSortDirEnum[keyof typeof V1AssemblyFbsProductListRequestSortDirEnum]; +export declare function instanceOfV1AssemblyFbsProductListRequestSortDirEnum(value: any): boolean; +export declare function V1AssemblyFbsProductListRequestSortDirEnumFromJSON(json: any): V1AssemblyFbsProductListRequestSortDirEnum; +export declare function V1AssemblyFbsProductListRequestSortDirEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsProductListRequestSortDirEnum; +export declare function V1AssemblyFbsProductListRequestSortDirEnumToJSON(value?: V1AssemblyFbsProductListRequestSortDirEnum | null): any; diff --git a/dist/models/V1AssemblyFbsProductListRequestSortDirEnum.js b/dist/models/V1AssemblyFbsProductListRequestSortDirEnum.js new file mode 100644 index 0000000..7f84426 --- /dev/null +++ b/dist/models/V1AssemblyFbsProductListRequestSortDirEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1AssemblyFbsProductListRequestSortDirEnum = void 0; +exports.instanceOfV1AssemblyFbsProductListRequestSortDirEnum = instanceOfV1AssemblyFbsProductListRequestSortDirEnum; +exports.V1AssemblyFbsProductListRequestSortDirEnumFromJSON = V1AssemblyFbsProductListRequestSortDirEnumFromJSON; +exports.V1AssemblyFbsProductListRequestSortDirEnumFromJSONTyped = V1AssemblyFbsProductListRequestSortDirEnumFromJSONTyped; +exports.V1AssemblyFbsProductListRequestSortDirEnumToJSON = V1AssemblyFbsProductListRequestSortDirEnumToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +exports.V1AssemblyFbsProductListRequestSortDirEnum = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfV1AssemblyFbsProductListRequestSortDirEnum(value) { + for (const key in exports.V1AssemblyFbsProductListRequestSortDirEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1AssemblyFbsProductListRequestSortDirEnum, key)) { + if (exports.V1AssemblyFbsProductListRequestSortDirEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1AssemblyFbsProductListRequestSortDirEnumFromJSON(json) { + return V1AssemblyFbsProductListRequestSortDirEnumFromJSONTyped(json, false); +} +function V1AssemblyFbsProductListRequestSortDirEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1AssemblyFbsProductListRequestSortDirEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1AssemblyFbsProductListResponse.d.ts b/dist/models/V1AssemblyFbsProductListResponse.d.ts new file mode 100644 index 0000000..88158e2 --- /dev/null +++ b/dist/models/V1AssemblyFbsProductListResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AssemblyFbsProductListResponseProducts } from './AssemblyFbsProductListResponseProducts'; +/** + * + * @export + * @interface V1AssemblyFbsProductListResponse + */ +export interface V1AssemblyFbsProductListResponse { + /** + * Признак, что в ответе вернули не все товары: + * + * - `true` — сделайте повторный запрос с другим значением `offset`, чтобы получить остальные значения; + * - `false` — ответ содержит все значения. + * + * @type {boolean} + * @memberof V1AssemblyFbsProductListResponse + */ + has_next?: boolean; + /** + * Список товаров. + * @type {Array} + * @memberof V1AssemblyFbsProductListResponse + */ + products?: Array; + /** + * Количество товаров. + * @type {number} + * @memberof V1AssemblyFbsProductListResponse + */ + products_count?: number; +} +/** + * Check if a given object implements the V1AssemblyFbsProductListResponse interface. + */ +export declare function instanceOfV1AssemblyFbsProductListResponse(value: object): value is V1AssemblyFbsProductListResponse; +export declare function V1AssemblyFbsProductListResponseFromJSON(json: any): V1AssemblyFbsProductListResponse; +export declare function V1AssemblyFbsProductListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1AssemblyFbsProductListResponse; +export declare function V1AssemblyFbsProductListResponseToJSON(value?: V1AssemblyFbsProductListResponse | null): any; diff --git a/dist/models/V1AssemblyFbsProductListResponse.js b/dist/models/V1AssemblyFbsProductListResponse.js new file mode 100644 index 0000000..c91258b --- /dev/null +++ b/dist/models/V1AssemblyFbsProductListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1AssemblyFbsProductListResponse = instanceOfV1AssemblyFbsProductListResponse; +exports.V1AssemblyFbsProductListResponseFromJSON = V1AssemblyFbsProductListResponseFromJSON; +exports.V1AssemblyFbsProductListResponseFromJSONTyped = V1AssemblyFbsProductListResponseFromJSONTyped; +exports.V1AssemblyFbsProductListResponseToJSON = V1AssemblyFbsProductListResponseToJSON; +const AssemblyFbsProductListResponseProducts_1 = require("./AssemblyFbsProductListResponseProducts"); +/** + * Check if a given object implements the V1AssemblyFbsProductListResponse interface. + */ +function instanceOfV1AssemblyFbsProductListResponse(value) { + return true; +} +function V1AssemblyFbsProductListResponseFromJSON(json) { + return V1AssemblyFbsProductListResponseFromJSONTyped(json, false); +} +function V1AssemblyFbsProductListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(AssemblyFbsProductListResponseProducts_1.AssemblyFbsProductListResponseProductsFromJSON)), + 'products_count': json['products_count'] == null ? undefined : json['products_count'], + }; +} +function V1AssemblyFbsProductListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(AssemblyFbsProductListResponseProducts_1.AssemblyFbsProductListResponseProductsToJSON)), + 'products_count': value['products_count'], + }; +} diff --git a/dist/models/V1Barcode.d.ts b/dist/models/V1Barcode.d.ts new file mode 100644 index 0000000..3df23cc --- /dev/null +++ b/dist/models/V1Barcode.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1Barcode + */ +export interface V1Barcode { + /** + * Значение штрихкода. Не больше 100 символов. + * @type {string} + * @memberof V1Barcode + */ + barcode: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1Barcode + */ + sku: number; +} +/** + * Check if a given object implements the V1Barcode interface. + */ +export declare function instanceOfV1Barcode(value: object): value is V1Barcode; +export declare function V1BarcodeFromJSON(json: any): V1Barcode; +export declare function V1BarcodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Barcode; +export declare function V1BarcodeToJSON(value?: V1Barcode | null): any; diff --git a/dist/models/V1Barcode.js b/dist/models/V1Barcode.js new file mode 100644 index 0000000..56602ee --- /dev/null +++ b/dist/models/V1Barcode.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1Barcode = instanceOfV1Barcode; +exports.V1BarcodeFromJSON = V1BarcodeFromJSON; +exports.V1BarcodeFromJSONTyped = V1BarcodeFromJSONTyped; +exports.V1BarcodeToJSON = V1BarcodeToJSON; +/** + * Check if a given object implements the V1Barcode interface. + */ +function instanceOfV1Barcode(value) { + if (!('barcode' in value) || value['barcode'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1BarcodeFromJSON(json) { + return V1BarcodeFromJSONTyped(json, false); +} +function V1BarcodeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'], + 'sku': json['sku'], + }; +} +function V1BarcodeToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1BundleItemErrorEnum.d.ts b/dist/models/V1BundleItemErrorEnum.d.ts new file mode 100644 index 0000000..a3d3800 --- /dev/null +++ b/dist/models/V1BundleItemErrorEnum.d.ts @@ -0,0 +1,36 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1BundleItemErrorEnum: { + readonly BUNDLE_ITEM_ERROR_UNSPECIFIED: "BUNDLE_ITEM_ERROR_UNSPECIFIED"; + readonly OUT_OF_ASSORTMENT: "OUT_OF_ASSORTMENT"; + readonly INVALID: "INVALID"; + readonly INCOMPATIBLE_WAREHOUSE: "INCOMPATIBLE_WAREHOUSE"; + readonly INVALID_BARCODE: "INVALID_BARCODE"; + readonly MULTIPLICITY: "MULTIPLICITY"; + readonly NO_PRICE: "NO_PRICE"; + readonly BANNED: "BANNED"; + readonly DUPLICATE_ITEMS: "DUPLICATE_ITEMS"; + readonly ZERO_QUANTITY: "ZERO_QUANTITY"; + readonly QUANTITY_GREATER_THEN_MAX: "QUANTITY_GREATER_THEN_MAX"; + readonly NO_SALES: "NO_SALES"; + readonly SURPLUS: "SURPLUS"; + readonly AVAILABILITY_IS_EMPTY: "AVAILABILITY_IS_EMPTY"; +}; +export type V1BundleItemErrorEnum = typeof V1BundleItemErrorEnum[keyof typeof V1BundleItemErrorEnum]; +export declare function instanceOfV1BundleItemErrorEnum(value: any): boolean; +export declare function V1BundleItemErrorEnumFromJSON(json: any): V1BundleItemErrorEnum; +export declare function V1BundleItemErrorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1BundleItemErrorEnum; +export declare function V1BundleItemErrorEnumToJSON(value?: V1BundleItemErrorEnum | null): any; diff --git a/dist/models/V1BundleItemErrorEnum.js b/dist/models/V1BundleItemErrorEnum.js new file mode 100644 index 0000000..b0a92a3 --- /dev/null +++ b/dist/models/V1BundleItemErrorEnum.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1BundleItemErrorEnum = void 0; +exports.instanceOfV1BundleItemErrorEnum = instanceOfV1BundleItemErrorEnum; +exports.V1BundleItemErrorEnumFromJSON = V1BundleItemErrorEnumFromJSON; +exports.V1BundleItemErrorEnumFromJSONTyped = V1BundleItemErrorEnumFromJSONTyped; +exports.V1BundleItemErrorEnumToJSON = V1BundleItemErrorEnumToJSON; +/** + * + * @export + */ +exports.V1BundleItemErrorEnum = { + BUNDLE_ITEM_ERROR_UNSPECIFIED: 'BUNDLE_ITEM_ERROR_UNSPECIFIED', + OUT_OF_ASSORTMENT: 'OUT_OF_ASSORTMENT', + INVALID: 'INVALID', + INCOMPATIBLE_WAREHOUSE: 'INCOMPATIBLE_WAREHOUSE', + INVALID_BARCODE: 'INVALID_BARCODE', + MULTIPLICITY: 'MULTIPLICITY', + NO_PRICE: 'NO_PRICE', + BANNED: 'BANNED', + DUPLICATE_ITEMS: 'DUPLICATE_ITEMS', + ZERO_QUANTITY: 'ZERO_QUANTITY', + QUANTITY_GREATER_THEN_MAX: 'QUANTITY_GREATER_THEN_MAX', + NO_SALES: 'NO_SALES', + SURPLUS: 'SURPLUS', + AVAILABILITY_IS_EMPTY: 'AVAILABILITY_IS_EMPTY' +}; +function instanceOfV1BundleItemErrorEnum(value) { + for (const key in exports.V1BundleItemErrorEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1BundleItemErrorEnum, key)) { + if (exports.V1BundleItemErrorEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1BundleItemErrorEnumFromJSON(json) { + return V1BundleItemErrorEnumFromJSONTyped(json, false); +} +function V1BundleItemErrorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1BundleItemErrorEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1BundleItemShipmentType.d.ts b/dist/models/V1BundleItemShipmentType.d.ts new file mode 100644 index 0000000..ed22d43 --- /dev/null +++ b/dist/models/V1BundleItemShipmentType.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип упаковки: + * - `BUNDLE_ITEM_SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `BUNDLE_ITEM_SHIPMENT_TYPE_BOX` — коробка; + * - `BUNDLE_ITEM_SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +export declare const V1BundleItemShipmentType: { + readonly GENERAL: "BUNDLE_ITEM_SHIPMENT_TYPE_GENERAL"; + readonly BOX: "BUNDLE_ITEM_SHIPMENT_TYPE_BOX"; + readonly PALLET: "BUNDLE_ITEM_SHIPMENT_TYPE_PALLET"; +}; +export type V1BundleItemShipmentType = typeof V1BundleItemShipmentType[keyof typeof V1BundleItemShipmentType]; +export declare function instanceOfV1BundleItemShipmentType(value: any): boolean; +export declare function V1BundleItemShipmentTypeFromJSON(json: any): V1BundleItemShipmentType; +export declare function V1BundleItemShipmentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1BundleItemShipmentType; +export declare function V1BundleItemShipmentTypeToJSON(value?: V1BundleItemShipmentType | null): any; diff --git a/dist/models/V1BundleItemShipmentType.js b/dist/models/V1BundleItemShipmentType.js new file mode 100644 index 0000000..dd4aa32 --- /dev/null +++ b/dist/models/V1BundleItemShipmentType.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1BundleItemShipmentType = void 0; +exports.instanceOfV1BundleItemShipmentType = instanceOfV1BundleItemShipmentType; +exports.V1BundleItemShipmentTypeFromJSON = V1BundleItemShipmentTypeFromJSON; +exports.V1BundleItemShipmentTypeFromJSONTyped = V1BundleItemShipmentTypeFromJSONTyped; +exports.V1BundleItemShipmentTypeToJSON = V1BundleItemShipmentTypeToJSON; +/** + * Тип упаковки: + * - `BUNDLE_ITEM_SHIPMENT_TYPE_GENERAL` — обычный товар; + * - `BUNDLE_ITEM_SHIPMENT_TYPE_BOX` — коробка; + * - `BUNDLE_ITEM_SHIPMENT_TYPE_PALLET` — палета. + * + * @export + */ +exports.V1BundleItemShipmentType = { + GENERAL: 'BUNDLE_ITEM_SHIPMENT_TYPE_GENERAL', + BOX: 'BUNDLE_ITEM_SHIPMENT_TYPE_BOX', + PALLET: 'BUNDLE_ITEM_SHIPMENT_TYPE_PALLET' +}; +function instanceOfV1BundleItemShipmentType(value) { + for (const key in exports.V1BundleItemShipmentType) { + if (Object.prototype.hasOwnProperty.call(exports.V1BundleItemShipmentType, key)) { + if (exports.V1BundleItemShipmentType[key] === value) { + return true; + } + } + } + return false; +} +function V1BundleItemShipmentTypeFromJSON(json) { + return V1BundleItemShipmentTypeFromJSONTyped(json, false); +} +function V1BundleItemShipmentTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1BundleItemShipmentTypeToJSON(value) { + return value; +} diff --git a/dist/models/V1CancelReasonListByOrderRequest.d.ts b/dist/models/V1CancelReasonListByOrderRequest.d.ts new file mode 100644 index 0000000..cb78292 --- /dev/null +++ b/dist/models/V1CancelReasonListByOrderRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByOrderRequest + */ +export interface V1CancelReasonListByOrderRequest { + /** + * Номер заказа. + * @type {string} + * @memberof V1CancelReasonListByOrderRequest + */ + order_number: string; +} +/** + * Check if a given object implements the V1CancelReasonListByOrderRequest interface. + */ +export declare function instanceOfV1CancelReasonListByOrderRequest(value: object): value is V1CancelReasonListByOrderRequest; +export declare function V1CancelReasonListByOrderRequestFromJSON(json: any): V1CancelReasonListByOrderRequest; +export declare function V1CancelReasonListByOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByOrderRequest; +export declare function V1CancelReasonListByOrderRequestToJSON(value?: V1CancelReasonListByOrderRequest | null): any; diff --git a/dist/models/V1CancelReasonListByOrderRequest.js b/dist/models/V1CancelReasonListByOrderRequest.js new file mode 100644 index 0000000..0eeef5b --- /dev/null +++ b/dist/models/V1CancelReasonListByOrderRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListByOrderRequest = instanceOfV1CancelReasonListByOrderRequest; +exports.V1CancelReasonListByOrderRequestFromJSON = V1CancelReasonListByOrderRequestFromJSON; +exports.V1CancelReasonListByOrderRequestFromJSONTyped = V1CancelReasonListByOrderRequestFromJSONTyped; +exports.V1CancelReasonListByOrderRequestToJSON = V1CancelReasonListByOrderRequestToJSON; +/** + * Check if a given object implements the V1CancelReasonListByOrderRequest interface. + */ +function instanceOfV1CancelReasonListByOrderRequest(value) { + if (!('order_number' in value) || value['order_number'] === undefined) + return false; + return true; +} +function V1CancelReasonListByOrderRequestFromJSON(json) { + return V1CancelReasonListByOrderRequestFromJSONTyped(json, false); +} +function V1CancelReasonListByOrderRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'], + }; +} +function V1CancelReasonListByOrderRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + }; +} diff --git a/dist/models/V1CancelReasonListByOrderResponse.d.ts b/dist/models/V1CancelReasonListByOrderResponse.d.ts new file mode 100644 index 0000000..9f9d669 --- /dev/null +++ b/dist/models/V1CancelReasonListByOrderResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancelReasonListByOrderResponseReason } from './V1CancelReasonListByOrderResponseReason'; +/** + * + * @export + * @interface V1CancelReasonListByOrderResponse + */ +export interface V1CancelReasonListByOrderResponse { + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof V1CancelReasonListByOrderResponse + */ + reasons?: Array; +} +/** + * Check if a given object implements the V1CancelReasonListByOrderResponse interface. + */ +export declare function instanceOfV1CancelReasonListByOrderResponse(value: object): value is V1CancelReasonListByOrderResponse; +export declare function V1CancelReasonListByOrderResponseFromJSON(json: any): V1CancelReasonListByOrderResponse; +export declare function V1CancelReasonListByOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByOrderResponse; +export declare function V1CancelReasonListByOrderResponseToJSON(value?: V1CancelReasonListByOrderResponse | null): any; diff --git a/dist/models/V1CancelReasonListByOrderResponse.js b/dist/models/V1CancelReasonListByOrderResponse.js new file mode 100644 index 0000000..932b0b0 --- /dev/null +++ b/dist/models/V1CancelReasonListByOrderResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListByOrderResponse = instanceOfV1CancelReasonListByOrderResponse; +exports.V1CancelReasonListByOrderResponseFromJSON = V1CancelReasonListByOrderResponseFromJSON; +exports.V1CancelReasonListByOrderResponseFromJSONTyped = V1CancelReasonListByOrderResponseFromJSONTyped; +exports.V1CancelReasonListByOrderResponseToJSON = V1CancelReasonListByOrderResponseToJSON; +const V1CancelReasonListByOrderResponseReason_1 = require("./V1CancelReasonListByOrderResponseReason"); +/** + * Check if a given object implements the V1CancelReasonListByOrderResponse interface. + */ +function instanceOfV1CancelReasonListByOrderResponse(value) { + return true; +} +function V1CancelReasonListByOrderResponseFromJSON(json) { + return V1CancelReasonListByOrderResponseFromJSONTyped(json, false); +} +function V1CancelReasonListByOrderResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1CancelReasonListByOrderResponseReason_1.V1CancelReasonListByOrderResponseReasonFromJSON)), + }; +} +function V1CancelReasonListByOrderResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1CancelReasonListByOrderResponseReason_1.V1CancelReasonListByOrderResponseReasonToJSON)), + }; +} diff --git a/dist/models/V1CancelReasonListByOrderResponseReason.d.ts b/dist/models/V1CancelReasonListByOrderResponseReason.d.ts new file mode 100644 index 0000000..0b4f19e --- /dev/null +++ b/dist/models/V1CancelReasonListByOrderResponseReason.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByOrderResponseReason + */ +export interface V1CancelReasonListByOrderResponseReason { + /** + * Идентификатор причины отмены: + * - `501` — «Ozon перенёс срок доставки»; + * - `502` — «Отменили часть товаров из заказа»; + * - `503` — «Не применилась скидка или промокод»; + * - `504` — «Хочу изменить заказ и оформить заново»; + * - `505` — «Слишком долго ждать»; + * - `506` — «Нашёл дешевле»; + * - `508` — «Не нашёл нужную причину»; + * - `710` — «Указал неверный адрес». + * + * @type {number} + * @memberof V1CancelReasonListByOrderResponseReason + */ + id?: number; + /** + * Причина отмены. + * @type {string} + * @memberof V1CancelReasonListByOrderResponseReason + */ + name?: string; +} +/** + * Check if a given object implements the V1CancelReasonListByOrderResponseReason interface. + */ +export declare function instanceOfV1CancelReasonListByOrderResponseReason(value: object): value is V1CancelReasonListByOrderResponseReason; +export declare function V1CancelReasonListByOrderResponseReasonFromJSON(json: any): V1CancelReasonListByOrderResponseReason; +export declare function V1CancelReasonListByOrderResponseReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByOrderResponseReason; +export declare function V1CancelReasonListByOrderResponseReasonToJSON(value?: V1CancelReasonListByOrderResponseReason | null): any; diff --git a/dist/models/V1CancelReasonListByOrderResponseReason.js b/dist/models/V1CancelReasonListByOrderResponseReason.js new file mode 100644 index 0000000..adfe2de --- /dev/null +++ b/dist/models/V1CancelReasonListByOrderResponseReason.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListByOrderResponseReason = instanceOfV1CancelReasonListByOrderResponseReason; +exports.V1CancelReasonListByOrderResponseReasonFromJSON = V1CancelReasonListByOrderResponseReasonFromJSON; +exports.V1CancelReasonListByOrderResponseReasonFromJSONTyped = V1CancelReasonListByOrderResponseReasonFromJSONTyped; +exports.V1CancelReasonListByOrderResponseReasonToJSON = V1CancelReasonListByOrderResponseReasonToJSON; +/** + * Check if a given object implements the V1CancelReasonListByOrderResponseReason interface. + */ +function instanceOfV1CancelReasonListByOrderResponseReason(value) { + return true; +} +function V1CancelReasonListByOrderResponseReasonFromJSON(json) { + return V1CancelReasonListByOrderResponseReasonFromJSONTyped(json, false); +} +function V1CancelReasonListByOrderResponseReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function V1CancelReasonListByOrderResponseReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/V1CancelReasonListByOrderResponseReasonFbo.d.ts b/dist/models/V1CancelReasonListByOrderResponseReasonFbo.d.ts new file mode 100644 index 0000000..1848e17 --- /dev/null +++ b/dist/models/V1CancelReasonListByOrderResponseReasonFbo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByOrderResponseReasonFbo + */ +export interface V1CancelReasonListByOrderResponseReasonFbo { + /** + * Идентификатор причины отмены. + * @type {number} + * @memberof V1CancelReasonListByOrderResponseReasonFbo + */ + id?: number; + /** + * Причина отмены. + * @type {string} + * @memberof V1CancelReasonListByOrderResponseReasonFbo + */ + name?: string; +} +/** + * Check if a given object implements the V1CancelReasonListByOrderResponseReasonFbo interface. + */ +export declare function instanceOfV1CancelReasonListByOrderResponseReasonFbo(value: object): value is V1CancelReasonListByOrderResponseReasonFbo; +export declare function V1CancelReasonListByOrderResponseReasonFboFromJSON(json: any): V1CancelReasonListByOrderResponseReasonFbo; +export declare function V1CancelReasonListByOrderResponseReasonFboFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByOrderResponseReasonFbo; +export declare function V1CancelReasonListByOrderResponseReasonFboToJSON(value?: V1CancelReasonListByOrderResponseReasonFbo | null): any; diff --git a/dist/models/V1CancelReasonListByOrderResponseReasonFbo.js b/dist/models/V1CancelReasonListByOrderResponseReasonFbo.js new file mode 100644 index 0000000..0a4f536 --- /dev/null +++ b/dist/models/V1CancelReasonListByOrderResponseReasonFbo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListByOrderResponseReasonFbo = instanceOfV1CancelReasonListByOrderResponseReasonFbo; +exports.V1CancelReasonListByOrderResponseReasonFboFromJSON = V1CancelReasonListByOrderResponseReasonFboFromJSON; +exports.V1CancelReasonListByOrderResponseReasonFboFromJSONTyped = V1CancelReasonListByOrderResponseReasonFboFromJSONTyped; +exports.V1CancelReasonListByOrderResponseReasonFboToJSON = V1CancelReasonListByOrderResponseReasonFboToJSON; +/** + * Check if a given object implements the V1CancelReasonListByOrderResponseReasonFbo interface. + */ +function instanceOfV1CancelReasonListByOrderResponseReasonFbo(value) { + return true; +} +function V1CancelReasonListByOrderResponseReasonFboFromJSON(json) { + return V1CancelReasonListByOrderResponseReasonFboFromJSONTyped(json, false); +} +function V1CancelReasonListByOrderResponseReasonFboFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function V1CancelReasonListByOrderResponseReasonFboToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/V1CancelReasonListByPostingRequest.d.ts b/dist/models/V1CancelReasonListByPostingRequest.d.ts new file mode 100644 index 0000000..0782930 --- /dev/null +++ b/dist/models/V1CancelReasonListByPostingRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByPostingRequest + */ +export interface V1CancelReasonListByPostingRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1CancelReasonListByPostingRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1CancelReasonListByPostingRequest interface. + */ +export declare function instanceOfV1CancelReasonListByPostingRequest(value: object): value is V1CancelReasonListByPostingRequest; +export declare function V1CancelReasonListByPostingRequestFromJSON(json: any): V1CancelReasonListByPostingRequest; +export declare function V1CancelReasonListByPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByPostingRequest; +export declare function V1CancelReasonListByPostingRequestToJSON(value?: V1CancelReasonListByPostingRequest | null): any; diff --git a/dist/models/V1CancelReasonListByPostingRequest.js b/dist/models/V1CancelReasonListByPostingRequest.js new file mode 100644 index 0000000..1e4078a --- /dev/null +++ b/dist/models/V1CancelReasonListByPostingRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListByPostingRequest = instanceOfV1CancelReasonListByPostingRequest; +exports.V1CancelReasonListByPostingRequestFromJSON = V1CancelReasonListByPostingRequestFromJSON; +exports.V1CancelReasonListByPostingRequestFromJSONTyped = V1CancelReasonListByPostingRequestFromJSONTyped; +exports.V1CancelReasonListByPostingRequestToJSON = V1CancelReasonListByPostingRequestToJSON; +/** + * Check if a given object implements the V1CancelReasonListByPostingRequest interface. + */ +function instanceOfV1CancelReasonListByPostingRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1CancelReasonListByPostingRequestFromJSON(json) { + return V1CancelReasonListByPostingRequestFromJSONTyped(json, false); +} +function V1CancelReasonListByPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1CancelReasonListByPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1CancelReasonListByPostingResponse.d.ts b/dist/models/V1CancelReasonListByPostingResponse.d.ts new file mode 100644 index 0000000..3ea8a32 --- /dev/null +++ b/dist/models/V1CancelReasonListByPostingResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancelReasonListByPostingResponseReason } from './V1CancelReasonListByPostingResponseReason'; +/** + * + * @export + * @interface V1CancelReasonListByPostingResponse + */ +export interface V1CancelReasonListByPostingResponse { + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof V1CancelReasonListByPostingResponse + */ + reasons?: Array; +} +/** + * Check if a given object implements the V1CancelReasonListByPostingResponse interface. + */ +export declare function instanceOfV1CancelReasonListByPostingResponse(value: object): value is V1CancelReasonListByPostingResponse; +export declare function V1CancelReasonListByPostingResponseFromJSON(json: any): V1CancelReasonListByPostingResponse; +export declare function V1CancelReasonListByPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByPostingResponse; +export declare function V1CancelReasonListByPostingResponseToJSON(value?: V1CancelReasonListByPostingResponse | null): any; diff --git a/dist/models/V1CancelReasonListByPostingResponse.js b/dist/models/V1CancelReasonListByPostingResponse.js new file mode 100644 index 0000000..604f44b --- /dev/null +++ b/dist/models/V1CancelReasonListByPostingResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListByPostingResponse = instanceOfV1CancelReasonListByPostingResponse; +exports.V1CancelReasonListByPostingResponseFromJSON = V1CancelReasonListByPostingResponseFromJSON; +exports.V1CancelReasonListByPostingResponseFromJSONTyped = V1CancelReasonListByPostingResponseFromJSONTyped; +exports.V1CancelReasonListByPostingResponseToJSON = V1CancelReasonListByPostingResponseToJSON; +const V1CancelReasonListByPostingResponseReason_1 = require("./V1CancelReasonListByPostingResponseReason"); +/** + * Check if a given object implements the V1CancelReasonListByPostingResponse interface. + */ +function instanceOfV1CancelReasonListByPostingResponse(value) { + return true; +} +function V1CancelReasonListByPostingResponseFromJSON(json) { + return V1CancelReasonListByPostingResponseFromJSONTyped(json, false); +} +function V1CancelReasonListByPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1CancelReasonListByPostingResponseReason_1.V1CancelReasonListByPostingResponseReasonFromJSON)), + }; +} +function V1CancelReasonListByPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1CancelReasonListByPostingResponseReason_1.V1CancelReasonListByPostingResponseReasonToJSON)), + }; +} diff --git a/dist/models/V1CancelReasonListByPostingResponseReason.d.ts b/dist/models/V1CancelReasonListByPostingResponseReason.d.ts new file mode 100644 index 0000000..c648f35 --- /dev/null +++ b/dist/models/V1CancelReasonListByPostingResponseReason.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CancelReasonListByPostingResponseReason + */ +export interface V1CancelReasonListByPostingResponseReason { + /** + * Идентификатор причины отмены: + * - `501` — «Ozon перенёс срок доставки»; + * - `502` — «Отменили часть товаров из заказа»; + * - `503` — «Не применилась скидка или промокод»; + * - `504` — «Хочу изменить заказ и оформить заново»; + * - `505` — «Слишком долго ждать»; + * - `506` — «Нашёл дешевле»; + * - `508` — «Не нашёл нужную причину»; + * - `710` — «Указал неверный адрес». + * + * @type {number} + * @memberof V1CancelReasonListByPostingResponseReason + */ + id?: number; + /** + * Причина отмены. + * @type {string} + * @memberof V1CancelReasonListByPostingResponseReason + */ + name?: string; +} +/** + * Check if a given object implements the V1CancelReasonListByPostingResponseReason interface. + */ +export declare function instanceOfV1CancelReasonListByPostingResponseReason(value: object): value is V1CancelReasonListByPostingResponseReason; +export declare function V1CancelReasonListByPostingResponseReasonFromJSON(json: any): V1CancelReasonListByPostingResponseReason; +export declare function V1CancelReasonListByPostingResponseReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListByPostingResponseReason; +export declare function V1CancelReasonListByPostingResponseReasonToJSON(value?: V1CancelReasonListByPostingResponseReason | null): any; diff --git a/dist/models/V1CancelReasonListByPostingResponseReason.js b/dist/models/V1CancelReasonListByPostingResponseReason.js new file mode 100644 index 0000000..5fd88ce --- /dev/null +++ b/dist/models/V1CancelReasonListByPostingResponseReason.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListByPostingResponseReason = instanceOfV1CancelReasonListByPostingResponseReason; +exports.V1CancelReasonListByPostingResponseReasonFromJSON = V1CancelReasonListByPostingResponseReasonFromJSON; +exports.V1CancelReasonListByPostingResponseReasonFromJSONTyped = V1CancelReasonListByPostingResponseReasonFromJSONTyped; +exports.V1CancelReasonListByPostingResponseReasonToJSON = V1CancelReasonListByPostingResponseReasonToJSON; +/** + * Check if a given object implements the V1CancelReasonListByPostingResponseReason interface. + */ +function instanceOfV1CancelReasonListByPostingResponseReason(value) { + return true; +} +function V1CancelReasonListByPostingResponseReasonFromJSON(json) { + return V1CancelReasonListByPostingResponseReasonFromJSONTyped(json, false); +} +function V1CancelReasonListByPostingResponseReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function V1CancelReasonListByPostingResponseReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + }; +} diff --git a/dist/models/V1CancelReasonListResponse.d.ts b/dist/models/V1CancelReasonListResponse.d.ts new file mode 100644 index 0000000..ca918ea --- /dev/null +++ b/dist/models/V1CancelReasonListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancelReasonListByOrderResponseReason } from './V1CancelReasonListByOrderResponseReason'; +/** + * + * @export + * @interface V1CancelReasonListResponse + */ +export interface V1CancelReasonListResponse { + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof V1CancelReasonListResponse + */ + reasons?: Array; +} +/** + * Check if a given object implements the V1CancelReasonListResponse interface. + */ +export declare function instanceOfV1CancelReasonListResponse(value: object): value is V1CancelReasonListResponse; +export declare function V1CancelReasonListResponseFromJSON(json: any): V1CancelReasonListResponse; +export declare function V1CancelReasonListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListResponse; +export declare function V1CancelReasonListResponseToJSON(value?: V1CancelReasonListResponse | null): any; diff --git a/dist/models/V1CancelReasonListResponse.js b/dist/models/V1CancelReasonListResponse.js new file mode 100644 index 0000000..a799d9d --- /dev/null +++ b/dist/models/V1CancelReasonListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListResponse = instanceOfV1CancelReasonListResponse; +exports.V1CancelReasonListResponseFromJSON = V1CancelReasonListResponseFromJSON; +exports.V1CancelReasonListResponseFromJSONTyped = V1CancelReasonListResponseFromJSONTyped; +exports.V1CancelReasonListResponseToJSON = V1CancelReasonListResponseToJSON; +const V1CancelReasonListByOrderResponseReason_1 = require("./V1CancelReasonListByOrderResponseReason"); +/** + * Check if a given object implements the V1CancelReasonListResponse interface. + */ +function instanceOfV1CancelReasonListResponse(value) { + return true; +} +function V1CancelReasonListResponseFromJSON(json) { + return V1CancelReasonListResponseFromJSONTyped(json, false); +} +function V1CancelReasonListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1CancelReasonListByOrderResponseReason_1.V1CancelReasonListByOrderResponseReasonFromJSON)), + }; +} +function V1CancelReasonListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1CancelReasonListByOrderResponseReason_1.V1CancelReasonListByOrderResponseReasonToJSON)), + }; +} diff --git a/dist/models/V1CancelReasonListResponseFbo.d.ts b/dist/models/V1CancelReasonListResponseFbo.d.ts new file mode 100644 index 0000000..7638b33 --- /dev/null +++ b/dist/models/V1CancelReasonListResponseFbo.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancelReasonListByOrderResponseReasonFbo } from './V1CancelReasonListByOrderResponseReasonFbo'; +/** + * + * @export + * @interface V1CancelReasonListResponseFbo + */ +export interface V1CancelReasonListResponseFbo { + /** + * Информация о причинах отмены. + * @type {Array} + * @memberof V1CancelReasonListResponseFbo + */ + reasons?: Array; +} +/** + * Check if a given object implements the V1CancelReasonListResponseFbo interface. + */ +export declare function instanceOfV1CancelReasonListResponseFbo(value: object): value is V1CancelReasonListResponseFbo; +export declare function V1CancelReasonListResponseFboFromJSON(json: any): V1CancelReasonListResponseFbo; +export declare function V1CancelReasonListResponseFboFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancelReasonListResponseFbo; +export declare function V1CancelReasonListResponseFboToJSON(value?: V1CancelReasonListResponseFbo | null): any; diff --git a/dist/models/V1CancelReasonListResponseFbo.js b/dist/models/V1CancelReasonListResponseFbo.js new file mode 100644 index 0000000..6b83d47 --- /dev/null +++ b/dist/models/V1CancelReasonListResponseFbo.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancelReasonListResponseFbo = instanceOfV1CancelReasonListResponseFbo; +exports.V1CancelReasonListResponseFboFromJSON = V1CancelReasonListResponseFboFromJSON; +exports.V1CancelReasonListResponseFboFromJSONTyped = V1CancelReasonListResponseFboFromJSONTyped; +exports.V1CancelReasonListResponseFboToJSON = V1CancelReasonListResponseFboToJSON; +const V1CancelReasonListByOrderResponseReasonFbo_1 = require("./V1CancelReasonListByOrderResponseReasonFbo"); +/** + * Check if a given object implements the V1CancelReasonListResponseFbo interface. + */ +function instanceOfV1CancelReasonListResponseFbo(value) { + return true; +} +function V1CancelReasonListResponseFboFromJSON(json) { + return V1CancelReasonListResponseFboFromJSONTyped(json, false); +} +function V1CancelReasonListResponseFboFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1CancelReasonListByOrderResponseReasonFbo_1.V1CancelReasonListByOrderResponseReasonFboFromJSON)), + }; +} +function V1CancelReasonListResponseFboToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1CancelReasonListByOrderResponseReasonFbo_1.V1CancelReasonListByOrderResponseReasonFboToJSON)), + }; +} diff --git a/dist/models/V1CancellationState.d.ts b/dist/models/V1CancellationState.d.ts new file mode 100644 index 0000000..d1ad808 --- /dev/null +++ b/dist/models/V1CancellationState.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CancellationStateCancellationError } from './CancellationStateCancellationError'; +import type { V1CancellationStateStatus } from './V1CancellationStateStatus'; +/** + * Статус отмены. + * @export + * @interface V1CancellationState + */ +export interface V1CancellationState { + /** + * + * @type {CancellationStateCancellationError} + * @memberof V1CancellationState + */ + cancellation_error?: CancellationStateCancellationError; + /** + * + * @type {V1CancellationStateStatus} + * @memberof V1CancellationState + */ + cancellation_status?: V1CancellationStateStatus; +} +/** + * Check if a given object implements the V1CancellationState interface. + */ +export declare function instanceOfV1CancellationState(value: object): value is V1CancellationState; +export declare function V1CancellationStateFromJSON(json: any): V1CancellationState; +export declare function V1CancellationStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancellationState; +export declare function V1CancellationStateToJSON(value?: V1CancellationState | null): any; diff --git a/dist/models/V1CancellationState.js b/dist/models/V1CancellationState.js new file mode 100644 index 0000000..a84e506 --- /dev/null +++ b/dist/models/V1CancellationState.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CancellationState = instanceOfV1CancellationState; +exports.V1CancellationStateFromJSON = V1CancellationStateFromJSON; +exports.V1CancellationStateFromJSONTyped = V1CancellationStateFromJSONTyped; +exports.V1CancellationStateToJSON = V1CancellationStateToJSON; +const CancellationStateCancellationError_1 = require("./CancellationStateCancellationError"); +const V1CancellationStateStatus_1 = require("./V1CancellationStateStatus"); +/** + * Check if a given object implements the V1CancellationState interface. + */ +function instanceOfV1CancellationState(value) { + return true; +} +function V1CancellationStateFromJSON(json) { + return V1CancellationStateFromJSONTyped(json, false); +} +function V1CancellationStateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_error': json['cancellation_error'] == null ? undefined : (0, CancellationStateCancellationError_1.CancellationStateCancellationErrorFromJSON)(json['cancellation_error']), + 'cancellation_status': json['cancellation_status'] == null ? undefined : (0, V1CancellationStateStatus_1.V1CancellationStateStatusFromJSON)(json['cancellation_status']), + }; +} +function V1CancellationStateToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_error': (0, CancellationStateCancellationError_1.CancellationStateCancellationErrorToJSON)(value['cancellation_error']), + 'cancellation_status': (0, V1CancellationStateStatus_1.V1CancellationStateStatusToJSON)(value['cancellation_status']), + }; +} diff --git a/dist/models/V1CancellationStateStatus.d.ts b/dist/models/V1CancellationStateStatus.d.ts new file mode 100644 index 0000000..6e949fa --- /dev/null +++ b/dist/models/V1CancellationStateStatus.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус ошибки: + * - `STATUS_UNSPECIFIED` — не определён; + * - `CONFIRMATION` — ожидается подтверждение отмены заявки; + * - `CANCELED` — подтверждение получено; + * - `NOT_CANCELED` — подтверждение не получено. + * + * @export + */ +export declare const V1CancellationStateStatus: { + readonly STATUS_UNSPECIFIED: "STATUS_UNSPECIFIED"; + readonly CONFIRMATION: "CONFIRMATION"; + readonly CANCELED: "CANCELED"; + readonly NOT_CANCELED: "NOT_CANCELED"; +}; +export type V1CancellationStateStatus = typeof V1CancellationStateStatus[keyof typeof V1CancellationStateStatus]; +export declare function instanceOfV1CancellationStateStatus(value: any): boolean; +export declare function V1CancellationStateStatusFromJSON(json: any): V1CancellationStateStatus; +export declare function V1CancellationStateStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CancellationStateStatus; +export declare function V1CancellationStateStatusToJSON(value?: V1CancellationStateStatus | null): any; diff --git a/dist/models/V1CancellationStateStatus.js b/dist/models/V1CancellationStateStatus.js new file mode 100644 index 0000000..4c35dcc --- /dev/null +++ b/dist/models/V1CancellationStateStatus.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CancellationStateStatus = void 0; +exports.instanceOfV1CancellationStateStatus = instanceOfV1CancellationStateStatus; +exports.V1CancellationStateStatusFromJSON = V1CancellationStateStatusFromJSON; +exports.V1CancellationStateStatusFromJSONTyped = V1CancellationStateStatusFromJSONTyped; +exports.V1CancellationStateStatusToJSON = V1CancellationStateStatusToJSON; +/** + * Статус ошибки: + * - `STATUS_UNSPECIFIED` — не определён; + * - `CONFIRMATION` — ожидается подтверждение отмены заявки; + * - `CANCELED` — подтверждение получено; + * - `NOT_CANCELED` — подтверждение не получено. + * + * @export + */ +exports.V1CancellationStateStatus = { + STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED', + CONFIRMATION: 'CONFIRMATION', + CANCELED: 'CANCELED', + NOT_CANCELED: 'NOT_CANCELED' +}; +function instanceOfV1CancellationStateStatus(value) { + for (const key in exports.V1CancellationStateStatus) { + if (Object.prototype.hasOwnProperty.call(exports.V1CancellationStateStatus, key)) { + if (exports.V1CancellationStateStatus[key] === value) { + return true; + } + } + } + return false; +} +function V1CancellationStateStatusFromJSON(json) { + return V1CancellationStateStatusFromJSONTyped(json, false); +} +function V1CancellationStateStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CancellationStateStatusToJSON(value) { + return value; +} diff --git a/dist/models/V1CargoesCreateErrors.d.ts b/dist/models/V1CargoesCreateErrors.d.ts new file mode 100644 index 0000000..d0aa4da --- /dev/null +++ b/dist/models/V1CargoesCreateErrors.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesCreateErrorsErrorReason } from './CargoesCreateErrorsErrorReason'; +import type { CargoesCreateErrorsItemValidation } from './CargoesCreateErrorsItemValidation'; +/** + * Ошибки. + * @export + * @interface V1CargoesCreateErrors + */ +export interface V1CargoesCreateErrors { + /** + * Причина ошибки: + * - `INVALID_STATE` — недопустимое состояние поставки. + * - `VALIDATION_FAILED` — ошибки валидации. + * - `WAREHOUSE_LIMITS_EXCEED` — превышены лимиты склада. + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — поставка не относится к указанному контрагенту. + * - `SUPPLY_NOT_BELONG_COMPANY` — поставка не относится к указанной компании. + * - `IS_FINALIZED` — редактирование поставки недоступно. + * - `SKU_DISTRIBUTION_DISABLED` — распределение состава недоступно. + * - `SUPPLY_IS_NOT_EMPTY` — поставка содержит распределение состава. + * - `OPERATION_NOT_FOUND` — операция не найдена. + * - `OPERATION_FAILED` — ошибка при обработке операции. + * + * @type {Array} + * @memberof V1CargoesCreateErrors + */ + error_reasons?: Array; + /** + * Ошибки валидации. + * @type {Array} + * @memberof V1CargoesCreateErrors + */ + items_validation?: Array; +} +/** + * Check if a given object implements the V1CargoesCreateErrors interface. + */ +export declare function instanceOfV1CargoesCreateErrors(value: object): value is V1CargoesCreateErrors; +export declare function V1CargoesCreateErrorsFromJSON(json: any): V1CargoesCreateErrors; +export declare function V1CargoesCreateErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateErrors; +export declare function V1CargoesCreateErrorsToJSON(value?: V1CargoesCreateErrors | null): any; diff --git a/dist/models/V1CargoesCreateErrors.js b/dist/models/V1CargoesCreateErrors.js new file mode 100644 index 0000000..23807ff --- /dev/null +++ b/dist/models/V1CargoesCreateErrors.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesCreateErrors = instanceOfV1CargoesCreateErrors; +exports.V1CargoesCreateErrorsFromJSON = V1CargoesCreateErrorsFromJSON; +exports.V1CargoesCreateErrorsFromJSONTyped = V1CargoesCreateErrorsFromJSONTyped; +exports.V1CargoesCreateErrorsToJSON = V1CargoesCreateErrorsToJSON; +const CargoesCreateErrorsErrorReason_1 = require("./CargoesCreateErrorsErrorReason"); +const CargoesCreateErrorsItemValidation_1 = require("./CargoesCreateErrorsItemValidation"); +/** + * Check if a given object implements the V1CargoesCreateErrors interface. + */ +function instanceOfV1CargoesCreateErrors(value) { + return true; +} +function V1CargoesCreateErrorsFromJSON(json) { + return V1CargoesCreateErrorsFromJSONTyped(json, false); +} +function V1CargoesCreateErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesCreateErrorsErrorReason_1.CargoesCreateErrorsErrorReasonFromJSON)), + 'items_validation': json['items_validation'] == null ? undefined : (json['items_validation'].map(CargoesCreateErrorsItemValidation_1.CargoesCreateErrorsItemValidationFromJSON)), + }; +} +function V1CargoesCreateErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesCreateErrorsErrorReason_1.CargoesCreateErrorsErrorReasonToJSON)), + 'items_validation': value['items_validation'] == null ? undefined : (value['items_validation'].map(CargoesCreateErrorsItemValidation_1.CargoesCreateErrorsItemValidationToJSON)), + }; +} diff --git a/dist/models/V1CargoesCreateRequest.d.ts b/dist/models/V1CargoesCreateRequest.d.ts new file mode 100644 index 0000000..724af4c --- /dev/null +++ b/dist/models/V1CargoesCreateRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesCreateRequestCargo } from './V1CargoesCreateRequestCargo'; +/** + * + * @export + * @interface V1CargoesCreateRequest + */ +export interface V1CargoesCreateRequest { + /** + * Информация о грузоместах. Вы можете передать не больше 40 палет или 30 коробок. + * @type {Array} + * @memberof V1CargoesCreateRequest + */ + cargoes: Array; + /** + * `true`, если нужно удалить предыдущие грузоместа. + * + * @type {boolean} + * @memberof V1CargoesCreateRequest + */ + delete_current_version?: boolean; + /** + * Идентификатор поставки. Можно получить с помощью метода [/v3/supply-order/get](#operation/SupplyOrderGet). Нужное значение — в параметре ответа `orders.supplies.supply_id`. + * @type {number} + * @memberof V1CargoesCreateRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1CargoesCreateRequest interface. + */ +export declare function instanceOfV1CargoesCreateRequest(value: object): value is V1CargoesCreateRequest; +export declare function V1CargoesCreateRequestFromJSON(json: any): V1CargoesCreateRequest; +export declare function V1CargoesCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateRequest; +export declare function V1CargoesCreateRequestToJSON(value?: V1CargoesCreateRequest | null): any; diff --git a/dist/models/V1CargoesCreateRequest.js b/dist/models/V1CargoesCreateRequest.js new file mode 100644 index 0000000..32073db --- /dev/null +++ b/dist/models/V1CargoesCreateRequest.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesCreateRequest = instanceOfV1CargoesCreateRequest; +exports.V1CargoesCreateRequestFromJSON = V1CargoesCreateRequestFromJSON; +exports.V1CargoesCreateRequestFromJSONTyped = V1CargoesCreateRequestFromJSONTyped; +exports.V1CargoesCreateRequestToJSON = V1CargoesCreateRequestToJSON; +const V1CargoesCreateRequestCargo_1 = require("./V1CargoesCreateRequestCargo"); +/** + * Check if a given object implements the V1CargoesCreateRequest interface. + */ +function instanceOfV1CargoesCreateRequest(value) { + if (!('cargoes' in value) || value['cargoes'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1CargoesCreateRequestFromJSON(json) { + return V1CargoesCreateRequestFromJSONTyped(json, false); +} +function V1CargoesCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes': (json['cargoes'].map(V1CargoesCreateRequestCargo_1.V1CargoesCreateRequestCargoFromJSON)), + 'delete_current_version': json['delete_current_version'] == null ? undefined : json['delete_current_version'], + 'supply_id': json['supply_id'], + }; +} +function V1CargoesCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes': (value['cargoes'].map(V1CargoesCreateRequestCargo_1.V1CargoesCreateRequestCargoToJSON)), + 'delete_current_version': value['delete_current_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1CargoesCreateRequestCargo.d.ts b/dist/models/V1CargoesCreateRequestCargo.d.ts new file mode 100644 index 0000000..12bab68 --- /dev/null +++ b/dist/models/V1CargoesCreateRequestCargo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesCreateRequestCargoValue } from './V1CargoesCreateRequestCargoValue'; +/** + * + * @export + * @interface V1CargoesCreateRequestCargo + */ +export interface V1CargoesCreateRequestCargo { + /** + * Уникальный ключ для идентификации грузоместа. + * @type {string} + * @memberof V1CargoesCreateRequestCargo + */ + key: string; + /** + * + * @type {V1CargoesCreateRequestCargoValue} + * @memberof V1CargoesCreateRequestCargo + */ + value: V1CargoesCreateRequestCargoValue; +} +/** + * Check if a given object implements the V1CargoesCreateRequestCargo interface. + */ +export declare function instanceOfV1CargoesCreateRequestCargo(value: object): value is V1CargoesCreateRequestCargo; +export declare function V1CargoesCreateRequestCargoFromJSON(json: any): V1CargoesCreateRequestCargo; +export declare function V1CargoesCreateRequestCargoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateRequestCargo; +export declare function V1CargoesCreateRequestCargoToJSON(value?: V1CargoesCreateRequestCargo | null): any; diff --git a/dist/models/V1CargoesCreateRequestCargo.js b/dist/models/V1CargoesCreateRequestCargo.js new file mode 100644 index 0000000..6d2c0f8 --- /dev/null +++ b/dist/models/V1CargoesCreateRequestCargo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesCreateRequestCargo = instanceOfV1CargoesCreateRequestCargo; +exports.V1CargoesCreateRequestCargoFromJSON = V1CargoesCreateRequestCargoFromJSON; +exports.V1CargoesCreateRequestCargoFromJSONTyped = V1CargoesCreateRequestCargoFromJSONTyped; +exports.V1CargoesCreateRequestCargoToJSON = V1CargoesCreateRequestCargoToJSON; +const V1CargoesCreateRequestCargoValue_1 = require("./V1CargoesCreateRequestCargoValue"); +/** + * Check if a given object implements the V1CargoesCreateRequestCargo interface. + */ +function instanceOfV1CargoesCreateRequestCargo(value) { + if (!('key' in value) || value['key'] === undefined) + return false; + if (!('value' in value) || value['value'] === undefined) + return false; + return true; +} +function V1CargoesCreateRequestCargoFromJSON(json) { + return V1CargoesCreateRequestCargoFromJSONTyped(json, false); +} +function V1CargoesCreateRequestCargoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'], + 'value': (0, V1CargoesCreateRequestCargoValue_1.V1CargoesCreateRequestCargoValueFromJSON)(json['value']), + }; +} +function V1CargoesCreateRequestCargoToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': (0, V1CargoesCreateRequestCargoValue_1.V1CargoesCreateRequestCargoValueToJSON)(value['value']), + }; +} diff --git a/dist/models/V1CargoesCreateRequestCargoValue.d.ts b/dist/models/V1CargoesCreateRequestCargoValue.d.ts new file mode 100644 index 0000000..6314999 --- /dev/null +++ b/dist/models/V1CargoesCreateRequestCargoValue.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValueCargoType } from './ValueCargoType'; +import type { ValueItem } from './ValueItem'; +/** + * Информация о грузоместе. + * @export + * @interface V1CargoesCreateRequestCargoValue + */ +export interface V1CargoesCreateRequestCargoValue { + /** + * Информация о товарах в грузоместе. + * @type {Array} + * @memberof V1CargoesCreateRequestCargoValue + */ + items?: Array; + /** + * + * @type {ValueCargoType} + * @memberof V1CargoesCreateRequestCargoValue + */ + type: ValueCargoType; +} +/** + * Check if a given object implements the V1CargoesCreateRequestCargoValue interface. + */ +export declare function instanceOfV1CargoesCreateRequestCargoValue(value: object): value is V1CargoesCreateRequestCargoValue; +export declare function V1CargoesCreateRequestCargoValueFromJSON(json: any): V1CargoesCreateRequestCargoValue; +export declare function V1CargoesCreateRequestCargoValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateRequestCargoValue; +export declare function V1CargoesCreateRequestCargoValueToJSON(value?: V1CargoesCreateRequestCargoValue | null): any; diff --git a/dist/models/V1CargoesCreateRequestCargoValue.js b/dist/models/V1CargoesCreateRequestCargoValue.js new file mode 100644 index 0000000..4ed8bff --- /dev/null +++ b/dist/models/V1CargoesCreateRequestCargoValue.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesCreateRequestCargoValue = instanceOfV1CargoesCreateRequestCargoValue; +exports.V1CargoesCreateRequestCargoValueFromJSON = V1CargoesCreateRequestCargoValueFromJSON; +exports.V1CargoesCreateRequestCargoValueFromJSONTyped = V1CargoesCreateRequestCargoValueFromJSONTyped; +exports.V1CargoesCreateRequestCargoValueToJSON = V1CargoesCreateRequestCargoValueToJSON; +const ValueCargoType_1 = require("./ValueCargoType"); +const ValueItem_1 = require("./ValueItem"); +/** + * Check if a given object implements the V1CargoesCreateRequestCargoValue interface. + */ +function instanceOfV1CargoesCreateRequestCargoValue(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function V1CargoesCreateRequestCargoValueFromJSON(json) { + return V1CargoesCreateRequestCargoValueFromJSONTyped(json, false); +} +function V1CargoesCreateRequestCargoValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ValueItem_1.ValueItemFromJSON)), + 'type': (0, ValueCargoType_1.ValueCargoTypeFromJSON)(json['type']), + }; +} +function V1CargoesCreateRequestCargoValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ValueItem_1.ValueItemToJSON)), + 'type': (0, ValueCargoType_1.ValueCargoTypeToJSON)(value['type']), + }; +} diff --git a/dist/models/V1CargoesCreateResponse.d.ts b/dist/models/V1CargoesCreateResponse.d.ts new file mode 100644 index 0000000..02235d7 --- /dev/null +++ b/dist/models/V1CargoesCreateResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesCreateErrors } from './V1CargoesCreateErrors'; +/** + * + * @export + * @interface V1CargoesCreateResponse + */ +export interface V1CargoesCreateResponse { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesCreateResponse + */ + operation_id?: string; + /** + * + * @type {V1CargoesCreateErrors} + * @memberof V1CargoesCreateResponse + */ + errors?: V1CargoesCreateErrors; +} +/** + * Check if a given object implements the V1CargoesCreateResponse interface. + */ +export declare function instanceOfV1CargoesCreateResponse(value: object): value is V1CargoesCreateResponse; +export declare function V1CargoesCreateResponseFromJSON(json: any): V1CargoesCreateResponse; +export declare function V1CargoesCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesCreateResponse; +export declare function V1CargoesCreateResponseToJSON(value?: V1CargoesCreateResponse | null): any; diff --git a/dist/models/V1CargoesCreateResponse.js b/dist/models/V1CargoesCreateResponse.js new file mode 100644 index 0000000..8d6609c --- /dev/null +++ b/dist/models/V1CargoesCreateResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesCreateResponse = instanceOfV1CargoesCreateResponse; +exports.V1CargoesCreateResponseFromJSON = V1CargoesCreateResponseFromJSON; +exports.V1CargoesCreateResponseFromJSONTyped = V1CargoesCreateResponseFromJSONTyped; +exports.V1CargoesCreateResponseToJSON = V1CargoesCreateResponseToJSON; +const V1CargoesCreateErrors_1 = require("./V1CargoesCreateErrors"); +/** + * Check if a given object implements the V1CargoesCreateResponse interface. + */ +function instanceOfV1CargoesCreateResponse(value) { + return true; +} +function V1CargoesCreateResponseFromJSON(json) { + return V1CargoesCreateResponseFromJSONTyped(json, false); +} +function V1CargoesCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + 'errors': json['errors'] == null ? undefined : (0, V1CargoesCreateErrors_1.V1CargoesCreateErrorsFromJSON)(json['errors']), + }; +} +function V1CargoesCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + 'errors': (0, V1CargoesCreateErrors_1.V1CargoesCreateErrorsToJSON)(value['errors']), + }; +} diff --git a/dist/models/V1CargoesDeleteRequest.d.ts b/dist/models/V1CargoesDeleteRequest.d.ts new file mode 100644 index 0000000..8025e6f --- /dev/null +++ b/dist/models/V1CargoesDeleteRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesDeleteRequest + */ +export interface V1CargoesDeleteRequest { + /** + * Список идентификаторов грузомест, которые нужно удалить. + * + * Максимум 70 значений. + * + * @type {Array} + * @memberof V1CargoesDeleteRequest + */ + cargo_ids: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof V1CargoesDeleteRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1CargoesDeleteRequest interface. + */ +export declare function instanceOfV1CargoesDeleteRequest(value: object): value is V1CargoesDeleteRequest; +export declare function V1CargoesDeleteRequestFromJSON(json: any): V1CargoesDeleteRequest; +export declare function V1CargoesDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteRequest; +export declare function V1CargoesDeleteRequestToJSON(value?: V1CargoesDeleteRequest | null): any; diff --git a/dist/models/V1CargoesDeleteRequest.js b/dist/models/V1CargoesDeleteRequest.js new file mode 100644 index 0000000..a4f6092 --- /dev/null +++ b/dist/models/V1CargoesDeleteRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesDeleteRequest = instanceOfV1CargoesDeleteRequest; +exports.V1CargoesDeleteRequestFromJSON = V1CargoesDeleteRequestFromJSON; +exports.V1CargoesDeleteRequestFromJSONTyped = V1CargoesDeleteRequestFromJSONTyped; +exports.V1CargoesDeleteRequestToJSON = V1CargoesDeleteRequestToJSON; +/** + * Check if a given object implements the V1CargoesDeleteRequest interface. + */ +function instanceOfV1CargoesDeleteRequest(value) { + if (!('cargo_ids' in value) || value['cargo_ids'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1CargoesDeleteRequestFromJSON(json) { + return V1CargoesDeleteRequestFromJSONTyped(json, false); +} +function V1CargoesDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_ids': json['cargo_ids'], + 'supply_id': json['supply_id'], + }; +} +function V1CargoesDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_ids': value['cargo_ids'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1CargoesDeleteResponse.d.ts b/dist/models/V1CargoesDeleteResponse.d.ts new file mode 100644 index 0000000..a9cccc7 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteResponseError } from './V1CargoesDeleteResponseError'; +/** + * + * @export + * @interface V1CargoesDeleteResponse + */ +export interface V1CargoesDeleteResponse { + /** + * + * @type {V1CargoesDeleteResponseError} + * @memberof V1CargoesDeleteResponse + */ + errors?: V1CargoesDeleteResponseError; + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesDeleteResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1CargoesDeleteResponse interface. + */ +export declare function instanceOfV1CargoesDeleteResponse(value: object): value is V1CargoesDeleteResponse; +export declare function V1CargoesDeleteResponseFromJSON(json: any): V1CargoesDeleteResponse; +export declare function V1CargoesDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponse; +export declare function V1CargoesDeleteResponseToJSON(value?: V1CargoesDeleteResponse | null): any; diff --git a/dist/models/V1CargoesDeleteResponse.js b/dist/models/V1CargoesDeleteResponse.js new file mode 100644 index 0000000..a894d66 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesDeleteResponse = instanceOfV1CargoesDeleteResponse; +exports.V1CargoesDeleteResponseFromJSON = V1CargoesDeleteResponseFromJSON; +exports.V1CargoesDeleteResponseFromJSONTyped = V1CargoesDeleteResponseFromJSONTyped; +exports.V1CargoesDeleteResponseToJSON = V1CargoesDeleteResponseToJSON; +const V1CargoesDeleteResponseError_1 = require("./V1CargoesDeleteResponseError"); +/** + * Check if a given object implements the V1CargoesDeleteResponse interface. + */ +function instanceOfV1CargoesDeleteResponse(value) { + return true; +} +function V1CargoesDeleteResponseFromJSON(json) { + return V1CargoesDeleteResponseFromJSONTyped(json, false); +} +function V1CargoesDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (0, V1CargoesDeleteResponseError_1.V1CargoesDeleteResponseErrorFromJSON)(json['errors']), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1CargoesDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': (0, V1CargoesDeleteResponseError_1.V1CargoesDeleteResponseErrorToJSON)(value['errors']), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1CargoesDeleteResponseError.d.ts b/dist/models/V1CargoesDeleteResponseError.d.ts new file mode 100644 index 0000000..34f3106 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponseError.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteResponseErrorSupplyErrorReasonEnum } from './V1CargoesDeleteResponseErrorSupplyErrorReasonEnum'; +import type { V1CargoesDeleteResponseErrorCargoErrorReason } from './V1CargoesDeleteResponseErrorCargoErrorReason'; +/** + * Список ошибок, которые возникли при удалении грузомест. + * @export + * @interface V1CargoesDeleteResponseError + */ +export interface V1CargoesDeleteResponseError { + /** + * Ошибки при удалении грузомест. + * @type {Array} + * @memberof V1CargoesDeleteResponseError + */ + cargo_error_reasons?: Array; + /** + * Список ошибок поставки: + * - `SUPPLY_NOT_FOUND` — поставка не найдена, + * - `CANT_DELETE_ALL_CARGOES` — нельзя удалять все грузоместа, + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — не принадлежит вашему юридическому лицу, + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — не принадлежит вашему кабинету, + * - `SUPPLY_CARGOES_IS_FINALIZED` — грузоместа поставки нельзя редактировать, + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки, + * - `OPERATION_NOT_FOUND` — операция не найдена. + * + * @type {Array} + * @memberof V1CargoesDeleteResponseError + */ + supply_error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesDeleteResponseError interface. + */ +export declare function instanceOfV1CargoesDeleteResponseError(value: object): value is V1CargoesDeleteResponseError; +export declare function V1CargoesDeleteResponseErrorFromJSON(json: any): V1CargoesDeleteResponseError; +export declare function V1CargoesDeleteResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponseError; +export declare function V1CargoesDeleteResponseErrorToJSON(value?: V1CargoesDeleteResponseError | null): any; diff --git a/dist/models/V1CargoesDeleteResponseError.js b/dist/models/V1CargoesDeleteResponseError.js new file mode 100644 index 0000000..d40b1d4 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponseError.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesDeleteResponseError = instanceOfV1CargoesDeleteResponseError; +exports.V1CargoesDeleteResponseErrorFromJSON = V1CargoesDeleteResponseErrorFromJSON; +exports.V1CargoesDeleteResponseErrorFromJSONTyped = V1CargoesDeleteResponseErrorFromJSONTyped; +exports.V1CargoesDeleteResponseErrorToJSON = V1CargoesDeleteResponseErrorToJSON; +const V1CargoesDeleteResponseErrorSupplyErrorReasonEnum_1 = require("./V1CargoesDeleteResponseErrorSupplyErrorReasonEnum"); +const V1CargoesDeleteResponseErrorCargoErrorReason_1 = require("./V1CargoesDeleteResponseErrorCargoErrorReason"); +/** + * Check if a given object implements the V1CargoesDeleteResponseError interface. + */ +function instanceOfV1CargoesDeleteResponseError(value) { + return true; +} +function V1CargoesDeleteResponseErrorFromJSON(json) { + return V1CargoesDeleteResponseErrorFromJSONTyped(json, false); +} +function V1CargoesDeleteResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_error_reasons': json['cargo_error_reasons'] == null ? undefined : (json['cargo_error_reasons'].map(V1CargoesDeleteResponseErrorCargoErrorReason_1.V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON)), + 'supply_error_reasons': json['supply_error_reasons'] == null ? undefined : (json['supply_error_reasons'].map(V1CargoesDeleteResponseErrorSupplyErrorReasonEnum_1.V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON)), + }; +} +function V1CargoesDeleteResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_error_reasons': value['cargo_error_reasons'] == null ? undefined : (value['cargo_error_reasons'].map(V1CargoesDeleteResponseErrorCargoErrorReason_1.V1CargoesDeleteResponseErrorCargoErrorReasonToJSON)), + 'supply_error_reasons': value['supply_error_reasons'] == null ? undefined : (value['supply_error_reasons'].map(V1CargoesDeleteResponseErrorSupplyErrorReasonEnum_1.V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON)), + }; +} diff --git a/dist/models/V1CargoesDeleteResponseErrorCargoErrorReason.d.ts b/dist/models/V1CargoesDeleteResponseErrorCargoErrorReason.d.ts new file mode 100644 index 0000000..e2d0048 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponseErrorCargoErrorReason.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum } from './V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum'; +/** + * + * @export + * @interface V1CargoesDeleteResponseErrorCargoErrorReason + */ +export interface V1CargoesDeleteResponseErrorCargoErrorReason { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof V1CargoesDeleteResponseErrorCargoErrorReason + */ + cargo_id?: number; + /** + * Список ошибок грузоместа. + * + * Если значение `CARGO_NOT_FOUND`, грузоместо не найдено. + * + * @type {Array} + * @memberof V1CargoesDeleteResponseErrorCargoErrorReason + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesDeleteResponseErrorCargoErrorReason interface. + */ +export declare function instanceOfV1CargoesDeleteResponseErrorCargoErrorReason(value: object): value is V1CargoesDeleteResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON(json: any): V1CargoesDeleteResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonToJSON(value?: V1CargoesDeleteResponseErrorCargoErrorReason | null): any; diff --git a/dist/models/V1CargoesDeleteResponseErrorCargoErrorReason.js b/dist/models/V1CargoesDeleteResponseErrorCargoErrorReason.js new file mode 100644 index 0000000..d874930 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponseErrorCargoErrorReason.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesDeleteResponseErrorCargoErrorReason = instanceOfV1CargoesDeleteResponseErrorCargoErrorReason; +exports.V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON = V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON; +exports.V1CargoesDeleteResponseErrorCargoErrorReasonFromJSONTyped = V1CargoesDeleteResponseErrorCargoErrorReasonFromJSONTyped; +exports.V1CargoesDeleteResponseErrorCargoErrorReasonToJSON = V1CargoesDeleteResponseErrorCargoErrorReasonToJSON; +const V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum_1 = require("./V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum"); +/** + * Check if a given object implements the V1CargoesDeleteResponseErrorCargoErrorReason interface. + */ +function instanceOfV1CargoesDeleteResponseErrorCargoErrorReason(value) { + return true; +} +function V1CargoesDeleteResponseErrorCargoErrorReasonFromJSON(json) { + return V1CargoesDeleteResponseErrorCargoErrorReasonFromJSONTyped(json, false); +} +function V1CargoesDeleteResponseErrorCargoErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum_1.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON)), + }; +} +function V1CargoesDeleteResponseErrorCargoErrorReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum_1.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON)), + }; +} diff --git a/dist/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.d.ts b/dist/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.d.ts new file mode 100644 index 0000000..efb22bf --- /dev/null +++ b/dist/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.d.ts @@ -0,0 +1,23 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum: { + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum = typeof V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum[keyof typeof V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum]; +export declare function instanceOfV1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum(value: any): boolean; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON(json: any): V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum; +export declare function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON(value?: V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum | null): any; diff --git a/dist/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.js b/dist/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.js new file mode 100644 index 0000000..3c2ae09 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum = void 0; +exports.instanceOfV1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum = instanceOfV1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum; +exports.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON = V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON; +exports.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped = V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped; +exports.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON = V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON; +/** + * + * @export + */ +exports.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum = { + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +function instanceOfV1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum(value) { + for (const key in exports.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum, key)) { + if (exports.V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSON(json) { + return V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json, false); +} +function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.d.ts b/dist/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.d.ts new file mode 100644 index 0000000..5542971 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesDeleteResponseErrorSupplyErrorReasonEnum: { + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly CANT_DELETE_ALL_CARGOES: "CANT_DELETE_ALL_CARGOES"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; +}; +export type V1CargoesDeleteResponseErrorSupplyErrorReasonEnum = typeof V1CargoesDeleteResponseErrorSupplyErrorReasonEnum[keyof typeof V1CargoesDeleteResponseErrorSupplyErrorReasonEnum]; +export declare function instanceOfV1CargoesDeleteResponseErrorSupplyErrorReasonEnum(value: any): boolean; +export declare function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON(json: any): V1CargoesDeleteResponseErrorSupplyErrorReasonEnum; +export declare function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteResponseErrorSupplyErrorReasonEnum; +export declare function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON(value?: V1CargoesDeleteResponseErrorSupplyErrorReasonEnum | null): any; diff --git a/dist/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.js b/dist/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.js new file mode 100644 index 0000000..4a3cd50 --- /dev/null +++ b/dist/models/V1CargoesDeleteResponseErrorSupplyErrorReasonEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CargoesDeleteResponseErrorSupplyErrorReasonEnum = void 0; +exports.instanceOfV1CargoesDeleteResponseErrorSupplyErrorReasonEnum = instanceOfV1CargoesDeleteResponseErrorSupplyErrorReasonEnum; +exports.V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON = V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON; +exports.V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSONTyped = V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSONTyped; +exports.V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON = V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON; +/** + * + * @export + */ +exports.V1CargoesDeleteResponseErrorSupplyErrorReasonEnum = { + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + CANT_DELETE_ALL_CARGOES: 'CANT_DELETE_ALL_CARGOES', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND' +}; +function instanceOfV1CargoesDeleteResponseErrorSupplyErrorReasonEnum(value) { + for (const key in exports.V1CargoesDeleteResponseErrorSupplyErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1CargoesDeleteResponseErrorSupplyErrorReasonEnum, key)) { + if (exports.V1CargoesDeleteResponseErrorSupplyErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSON(json) { + return V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSONTyped(json, false); +} +function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CargoesDeleteResponseErrorSupplyErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1CargoesDeleteStatusRequest.d.ts b/dist/models/V1CargoesDeleteStatusRequest.d.ts new file mode 100644 index 0000000..88915ae --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesDeleteStatusRequest + */ +export interface V1CargoesDeleteStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesDeleteStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1CargoesDeleteStatusRequest interface. + */ +export declare function instanceOfV1CargoesDeleteStatusRequest(value: object): value is V1CargoesDeleteStatusRequest; +export declare function V1CargoesDeleteStatusRequestFromJSON(json: any): V1CargoesDeleteStatusRequest; +export declare function V1CargoesDeleteStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusRequest; +export declare function V1CargoesDeleteStatusRequestToJSON(value?: V1CargoesDeleteStatusRequest | null): any; diff --git a/dist/models/V1CargoesDeleteStatusRequest.js b/dist/models/V1CargoesDeleteStatusRequest.js new file mode 100644 index 0000000..750cc4c --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesDeleteStatusRequest = instanceOfV1CargoesDeleteStatusRequest; +exports.V1CargoesDeleteStatusRequestFromJSON = V1CargoesDeleteStatusRequestFromJSON; +exports.V1CargoesDeleteStatusRequestFromJSONTyped = V1CargoesDeleteStatusRequestFromJSONTyped; +exports.V1CargoesDeleteStatusRequestToJSON = V1CargoesDeleteStatusRequestToJSON; +/** + * Check if a given object implements the V1CargoesDeleteStatusRequest interface. + */ +function instanceOfV1CargoesDeleteStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function V1CargoesDeleteStatusRequestFromJSON(json) { + return V1CargoesDeleteStatusRequestFromJSONTyped(json, false); +} +function V1CargoesDeleteStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function V1CargoesDeleteStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1CargoesDeleteStatusResponse.d.ts b/dist/models/V1CargoesDeleteStatusResponse.d.ts new file mode 100644 index 0000000..ec2adca --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesDeleteStatusResponseStatusEnum } from './CargoesDeleteStatusResponseStatusEnum'; +import type { V1CargoesDeleteStatusResponseError } from './V1CargoesDeleteStatusResponseError'; +/** + * + * @export + * @interface V1CargoesDeleteStatusResponse + */ +export interface V1CargoesDeleteStatusResponse { + /** + * + * @type {V1CargoesDeleteStatusResponseError} + * @memberof V1CargoesDeleteStatusResponse + */ + errors?: V1CargoesDeleteStatusResponseError; + /** + * + * @type {CargoesDeleteStatusResponseStatusEnum} + * @memberof V1CargoesDeleteStatusResponse + */ + status?: CargoesDeleteStatusResponseStatusEnum; +} +/** + * Check if a given object implements the V1CargoesDeleteStatusResponse interface. + */ +export declare function instanceOfV1CargoesDeleteStatusResponse(value: object): value is V1CargoesDeleteStatusResponse; +export declare function V1CargoesDeleteStatusResponseFromJSON(json: any): V1CargoesDeleteStatusResponse; +export declare function V1CargoesDeleteStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponse; +export declare function V1CargoesDeleteStatusResponseToJSON(value?: V1CargoesDeleteStatusResponse | null): any; diff --git a/dist/models/V1CargoesDeleteStatusResponse.js b/dist/models/V1CargoesDeleteStatusResponse.js new file mode 100644 index 0000000..ffcad40 --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesDeleteStatusResponse = instanceOfV1CargoesDeleteStatusResponse; +exports.V1CargoesDeleteStatusResponseFromJSON = V1CargoesDeleteStatusResponseFromJSON; +exports.V1CargoesDeleteStatusResponseFromJSONTyped = V1CargoesDeleteStatusResponseFromJSONTyped; +exports.V1CargoesDeleteStatusResponseToJSON = V1CargoesDeleteStatusResponseToJSON; +const CargoesDeleteStatusResponseStatusEnum_1 = require("./CargoesDeleteStatusResponseStatusEnum"); +const V1CargoesDeleteStatusResponseError_1 = require("./V1CargoesDeleteStatusResponseError"); +/** + * Check if a given object implements the V1CargoesDeleteStatusResponse interface. + */ +function instanceOfV1CargoesDeleteStatusResponse(value) { + return true; +} +function V1CargoesDeleteStatusResponseFromJSON(json) { + return V1CargoesDeleteStatusResponseFromJSONTyped(json, false); +} +function V1CargoesDeleteStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (0, V1CargoesDeleteStatusResponseError_1.V1CargoesDeleteStatusResponseErrorFromJSON)(json['errors']), + 'status': json['status'] == null ? undefined : (0, CargoesDeleteStatusResponseStatusEnum_1.CargoesDeleteStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function V1CargoesDeleteStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': (0, V1CargoesDeleteStatusResponseError_1.V1CargoesDeleteStatusResponseErrorToJSON)(value['errors']), + 'status': (0, CargoesDeleteStatusResponseStatusEnum_1.CargoesDeleteStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/V1CargoesDeleteStatusResponseError.d.ts b/dist/models/V1CargoesDeleteStatusResponseError.d.ts new file mode 100644 index 0000000..a386ba7 --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponseError.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteStatusResponseErrorCargoErrorReason } from './V1CargoesDeleteStatusResponseErrorCargoErrorReason'; +import type { V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum } from './V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum'; +/** + * Список ошибок, которые возникли при удалении грузомест. + * @export + * @interface V1CargoesDeleteStatusResponseError + */ +export interface V1CargoesDeleteStatusResponseError { + /** + * Ошибки при удалении грузомест. + * @type {Array} + * @memberof V1CargoesDeleteStatusResponseError + */ + cargo_error_reasons?: Array; + /** + * Список ошибок поставки: + * - `SUPPLY_NOT_FOUND` — поставка не найдена, + * - `CANT_DELETE_ALL_CARGOES` — нельзя удалять все грузоместа, + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR` — не принадлежит вашему юридическому лицу, + * - `SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY` — не принадлежит вашему кабинету, + * - `SUPPLY_CARGOES_IS_FINALIZED` — грузоместа поставки нельзя редактировать, + * - `SUPPLY_CARGOES_LOCKED` — другой процесс блокирует редактирование грузомест поставки, + * - `OPERATION_NOT_FOUND` — операция не найдена. + * + * @type {Array} + * @memberof V1CargoesDeleteStatusResponseError + */ + supply_error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesDeleteStatusResponseError interface. + */ +export declare function instanceOfV1CargoesDeleteStatusResponseError(value: object): value is V1CargoesDeleteStatusResponseError; +export declare function V1CargoesDeleteStatusResponseErrorFromJSON(json: any): V1CargoesDeleteStatusResponseError; +export declare function V1CargoesDeleteStatusResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponseError; +export declare function V1CargoesDeleteStatusResponseErrorToJSON(value?: V1CargoesDeleteStatusResponseError | null): any; diff --git a/dist/models/V1CargoesDeleteStatusResponseError.js b/dist/models/V1CargoesDeleteStatusResponseError.js new file mode 100644 index 0000000..5cdf2ce --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponseError.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesDeleteStatusResponseError = instanceOfV1CargoesDeleteStatusResponseError; +exports.V1CargoesDeleteStatusResponseErrorFromJSON = V1CargoesDeleteStatusResponseErrorFromJSON; +exports.V1CargoesDeleteStatusResponseErrorFromJSONTyped = V1CargoesDeleteStatusResponseErrorFromJSONTyped; +exports.V1CargoesDeleteStatusResponseErrorToJSON = V1CargoesDeleteStatusResponseErrorToJSON; +const V1CargoesDeleteStatusResponseErrorCargoErrorReason_1 = require("./V1CargoesDeleteStatusResponseErrorCargoErrorReason"); +const V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum_1 = require("./V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum"); +/** + * Check if a given object implements the V1CargoesDeleteStatusResponseError interface. + */ +function instanceOfV1CargoesDeleteStatusResponseError(value) { + return true; +} +function V1CargoesDeleteStatusResponseErrorFromJSON(json) { + return V1CargoesDeleteStatusResponseErrorFromJSONTyped(json, false); +} +function V1CargoesDeleteStatusResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_error_reasons': json['cargo_error_reasons'] == null ? undefined : (json['cargo_error_reasons'].map(V1CargoesDeleteStatusResponseErrorCargoErrorReason_1.V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON)), + 'supply_error_reasons': json['supply_error_reasons'] == null ? undefined : (json['supply_error_reasons'].map(V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum_1.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON)), + }; +} +function V1CargoesDeleteStatusResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_error_reasons': value['cargo_error_reasons'] == null ? undefined : (value['cargo_error_reasons'].map(V1CargoesDeleteStatusResponseErrorCargoErrorReason_1.V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON)), + 'supply_error_reasons': value['supply_error_reasons'] == null ? undefined : (value['supply_error_reasons'].map(V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum_1.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON)), + }; +} diff --git a/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.d.ts b/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.d.ts new file mode 100644 index 0000000..6b199e8 --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum } from './V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum'; +/** + * + * @export + * @interface V1CargoesDeleteStatusResponseErrorCargoErrorReason + */ +export interface V1CargoesDeleteStatusResponseErrorCargoErrorReason { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof V1CargoesDeleteStatusResponseErrorCargoErrorReason + */ + cargo_id?: number; + /** + * Список ошибок грузоместа. + * + * Если значение `CARGO_NOT_FOUND`, грузоместо не найдено. + * + * @type {Array} + * @memberof V1CargoesDeleteStatusResponseErrorCargoErrorReason + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesDeleteStatusResponseErrorCargoErrorReason interface. + */ +export declare function instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReason(value: object): value is V1CargoesDeleteStatusResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON(json: any): V1CargoesDeleteStatusResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponseErrorCargoErrorReason; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON(value?: V1CargoesDeleteStatusResponseErrorCargoErrorReason | null): any; diff --git a/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.js b/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.js new file mode 100644 index 0000000..9eabffb --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReason.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReason = instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReason; +exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON = V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON; +exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSONTyped = V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSONTyped; +exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON = V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON; +const V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum_1 = require("./V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum"); +/** + * Check if a given object implements the V1CargoesDeleteStatusResponseErrorCargoErrorReason interface. + */ +function instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReason(value) { + return true; +} +function V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSON(json) { + return V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSONTyped(json, false); +} +function V1CargoesDeleteStatusResponseErrorCargoErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum_1.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON)), + }; +} +function V1CargoesDeleteStatusResponseErrorCargoErrorReasonToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum_1.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON)), + }; +} diff --git a/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.d.ts b/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.d.ts new file mode 100644 index 0000000..08762e4 --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.d.ts @@ -0,0 +1,23 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum: { + readonly CARGO_NOT_FOUND: "CARGO_NOT_FOUND"; +}; +export type V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum = typeof V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum[keyof typeof V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum]; +export declare function instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum(value: any): boolean; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON(json: any): V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum; +export declare function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON(value?: V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum | null): any; diff --git a/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.js b/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.js new file mode 100644 index 0000000..8942bc8 --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum = void 0; +exports.instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum = instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum; +exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON = V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON; +exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped = V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped; +exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON = V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON; +/** + * + * @export + */ +exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum = { + CARGO_NOT_FOUND: 'CARGO_NOT_FOUND' +}; +function instanceOfV1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum(value) { + for (const key in exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum, key)) { + if (exports.V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSON(json) { + return V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json, false); +} +function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.d.ts b/dist/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.d.ts new file mode 100644 index 0000000..fcf77e5 --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum: { + readonly SUPPLY_NOT_FOUND: "SUPPLY_NOT_FOUND"; + readonly CANT_DELETE_ALL_CARGOES: "CANT_DELETE_ALL_CARGOES"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: "SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR"; + readonly SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: "SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY"; + readonly SUPPLY_CARGOES_IS_FINALIZED: "SUPPLY_CARGOES_IS_FINALIZED"; + readonly SUPPLY_CARGOES_LOCKED: "SUPPLY_CARGOES_LOCKED"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; +}; +export type V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum = typeof V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum[keyof typeof V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum]; +export declare function instanceOfV1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum(value: any): boolean; +export declare function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON(json: any): V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum; +export declare function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum; +export declare function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON(value?: V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum | null): any; diff --git a/dist/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.js b/dist/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.js new file mode 100644 index 0000000..626d1eb --- /dev/null +++ b/dist/models/V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum = void 0; +exports.instanceOfV1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum = instanceOfV1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum; +exports.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON = V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON; +exports.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSONTyped = V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSONTyped; +exports.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON = V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON; +/** + * + * @export + */ +exports.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum = { + SUPPLY_NOT_FOUND: 'SUPPLY_NOT_FOUND', + CANT_DELETE_ALL_CARGOES: 'CANT_DELETE_ALL_CARGOES', + SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR: 'SUPPLY_DOES_NOT_BELONG_TO_THE_CONTRACTOR', + SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY: 'SUPPLY_DOES_NOT_BELONG_TO_THE_COMPANY', + SUPPLY_CARGOES_IS_FINALIZED: 'SUPPLY_CARGOES_IS_FINALIZED', + SUPPLY_CARGOES_LOCKED: 'SUPPLY_CARGOES_LOCKED', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND' +}; +function instanceOfV1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum(value) { + for (const key in exports.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum, key)) { + if (exports.V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSON(json) { + return V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSONTyped(json, false); +} +function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1CargoesGetRequest.d.ts b/dist/models/V1CargoesGetRequest.d.ts new file mode 100644 index 0000000..633c742 --- /dev/null +++ b/dist/models/V1CargoesGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesGetRequest + */ +export interface V1CargoesGetRequest { + /** + * Список идентификаторов поставок в заявке. + * @type {Array} + * @memberof V1CargoesGetRequest + */ + supply_ids: Array; +} +/** + * Check if a given object implements the V1CargoesGetRequest interface. + */ +export declare function instanceOfV1CargoesGetRequest(value: object): value is V1CargoesGetRequest; +export declare function V1CargoesGetRequestFromJSON(json: any): V1CargoesGetRequest; +export declare function V1CargoesGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesGetRequest; +export declare function V1CargoesGetRequestToJSON(value?: V1CargoesGetRequest | null): any; diff --git a/dist/models/V1CargoesGetRequest.js b/dist/models/V1CargoesGetRequest.js new file mode 100644 index 0000000..0e3ea68 --- /dev/null +++ b/dist/models/V1CargoesGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesGetRequest = instanceOfV1CargoesGetRequest; +exports.V1CargoesGetRequestFromJSON = V1CargoesGetRequestFromJSON; +exports.V1CargoesGetRequestFromJSONTyped = V1CargoesGetRequestFromJSONTyped; +exports.V1CargoesGetRequestToJSON = V1CargoesGetRequestToJSON; +/** + * Check if a given object implements the V1CargoesGetRequest interface. + */ +function instanceOfV1CargoesGetRequest(value) { + if (!('supply_ids' in value) || value['supply_ids'] === undefined) + return false; + return true; +} +function V1CargoesGetRequestFromJSON(json) { + return V1CargoesGetRequestFromJSONTyped(json, false); +} +function V1CargoesGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_ids': json['supply_ids'], + }; +} +function V1CargoesGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_ids': value['supply_ids'], + }; +} diff --git a/dist/models/V1CargoesGetResponse.d.ts b/dist/models/V1CargoesGetResponse.d.ts new file mode 100644 index 0000000..3b9efbe --- /dev/null +++ b/dist/models/V1CargoesGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesGetResponseSupply } from './CargoesGetResponseSupply'; +/** + * + * @export + * @interface V1CargoesGetResponse + */ +export interface V1CargoesGetResponse { + /** + * Информация о грузоместах. + * @type {Array} + * @memberof V1CargoesGetResponse + */ + supply?: Array; +} +/** + * Check if a given object implements the V1CargoesGetResponse interface. + */ +export declare function instanceOfV1CargoesGetResponse(value: object): value is V1CargoesGetResponse; +export declare function V1CargoesGetResponseFromJSON(json: any): V1CargoesGetResponse; +export declare function V1CargoesGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesGetResponse; +export declare function V1CargoesGetResponseToJSON(value?: V1CargoesGetResponse | null): any; diff --git a/dist/models/V1CargoesGetResponse.js b/dist/models/V1CargoesGetResponse.js new file mode 100644 index 0000000..d2d3047 --- /dev/null +++ b/dist/models/V1CargoesGetResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesGetResponse = instanceOfV1CargoesGetResponse; +exports.V1CargoesGetResponseFromJSON = V1CargoesGetResponseFromJSON; +exports.V1CargoesGetResponseFromJSONTyped = V1CargoesGetResponseFromJSONTyped; +exports.V1CargoesGetResponseToJSON = V1CargoesGetResponseToJSON; +const CargoesGetResponseSupply_1 = require("./CargoesGetResponseSupply"); +/** + * Check if a given object implements the V1CargoesGetResponse interface. + */ +function instanceOfV1CargoesGetResponse(value) { + return true; +} +function V1CargoesGetResponseFromJSON(json) { + return V1CargoesGetResponseFromJSONTyped(json, false); +} +function V1CargoesGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply': json['supply'] == null ? undefined : (json['supply'].map(CargoesGetResponseSupply_1.CargoesGetResponseSupplyFromJSON)), + }; +} +function V1CargoesGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply': value['supply'] == null ? undefined : (value['supply'].map(CargoesGetResponseSupply_1.CargoesGetResponseSupplyToJSON)), + }; +} diff --git a/dist/models/V1CargoesLabelCreateErrors.d.ts b/dist/models/V1CargoesLabelCreateErrors.d.ts new file mode 100644 index 0000000..01823bb --- /dev/null +++ b/dist/models/V1CargoesLabelCreateErrors.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesLabelCreateErrorsErrorReason } from './V1CargoesLabelCreateErrorsErrorReason'; +/** + * Ошибки. + * @export + * @interface V1CargoesLabelCreateErrors + */ +export interface V1CargoesLabelCreateErrors { + /** + * Причина ошибки: + * - `INVALID_STATE` — недопустимое состояние поставки. + * - `OPERATION_NOT_FOUND` — операция не найдена. + * - `OPERATION_FAILED` — операция завершилась с ошибкой. + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — контрагент не соответствует поставке. + * - `SUPPLY_NOT_BELONG_COMPANY` — компания не соответствует поставке. + * - `SUPPLY_IS_EMPTY` — поставка без грузомест. + * - `CARGOES_NOT_FOUND` — грузоместа не найдены. + * + * @type {Array} + * @memberof V1CargoesLabelCreateErrors + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the V1CargoesLabelCreateErrors interface. + */ +export declare function instanceOfV1CargoesLabelCreateErrors(value: object): value is V1CargoesLabelCreateErrors; +export declare function V1CargoesLabelCreateErrorsFromJSON(json: any): V1CargoesLabelCreateErrors; +export declare function V1CargoesLabelCreateErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateErrors; +export declare function V1CargoesLabelCreateErrorsToJSON(value?: V1CargoesLabelCreateErrors | null): any; diff --git a/dist/models/V1CargoesLabelCreateErrors.js b/dist/models/V1CargoesLabelCreateErrors.js new file mode 100644 index 0000000..9fa3cd0 --- /dev/null +++ b/dist/models/V1CargoesLabelCreateErrors.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesLabelCreateErrors = instanceOfV1CargoesLabelCreateErrors; +exports.V1CargoesLabelCreateErrorsFromJSON = V1CargoesLabelCreateErrorsFromJSON; +exports.V1CargoesLabelCreateErrorsFromJSONTyped = V1CargoesLabelCreateErrorsFromJSONTyped; +exports.V1CargoesLabelCreateErrorsToJSON = V1CargoesLabelCreateErrorsToJSON; +const V1CargoesLabelCreateErrorsErrorReason_1 = require("./V1CargoesLabelCreateErrorsErrorReason"); +/** + * Check if a given object implements the V1CargoesLabelCreateErrors interface. + */ +function instanceOfV1CargoesLabelCreateErrors(value) { + return true; +} +function V1CargoesLabelCreateErrorsFromJSON(json) { + return V1CargoesLabelCreateErrorsFromJSONTyped(json, false); +} +function V1CargoesLabelCreateErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1CargoesLabelCreateErrorsErrorReason_1.V1CargoesLabelCreateErrorsErrorReasonFromJSON)), + }; +} +function V1CargoesLabelCreateErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1CargoesLabelCreateErrorsErrorReason_1.V1CargoesLabelCreateErrorsErrorReasonToJSON)), + }; +} diff --git a/dist/models/V1CargoesLabelCreateErrorsErrorReason.d.ts b/dist/models/V1CargoesLabelCreateErrorsErrorReason.d.ts new file mode 100644 index 0000000..45a1151 --- /dev/null +++ b/dist/models/V1CargoesLabelCreateErrorsErrorReason.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1CargoesLabelCreateErrorsErrorReason: { + readonly INVALID_STATE: "INVALID_STATE"; + readonly OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND"; + readonly OPERATION_FAILED: "OPERATION_FAILED"; + readonly SUPPLY_NOT_BELONG_CONTRACTOR: "SUPPLY_NOT_BELONG_CONTRACTOR"; + readonly SUPPLY_NOT_BELONG_COMPANY: "SUPPLY_NOT_BELONG_COMPANY"; + readonly SUPPLY_IS_EMPTY: "SUPPLY_IS_EMPTY"; + readonly CARGOES_NOT_FOUND: "CARGOES_NOT_FOUND"; +}; +export type V1CargoesLabelCreateErrorsErrorReason = typeof V1CargoesLabelCreateErrorsErrorReason[keyof typeof V1CargoesLabelCreateErrorsErrorReason]; +export declare function instanceOfV1CargoesLabelCreateErrorsErrorReason(value: any): boolean; +export declare function V1CargoesLabelCreateErrorsErrorReasonFromJSON(json: any): V1CargoesLabelCreateErrorsErrorReason; +export declare function V1CargoesLabelCreateErrorsErrorReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateErrorsErrorReason; +export declare function V1CargoesLabelCreateErrorsErrorReasonToJSON(value?: V1CargoesLabelCreateErrorsErrorReason | null): any; diff --git a/dist/models/V1CargoesLabelCreateErrorsErrorReason.js b/dist/models/V1CargoesLabelCreateErrorsErrorReason.js new file mode 100644 index 0000000..dd00425 --- /dev/null +++ b/dist/models/V1CargoesLabelCreateErrorsErrorReason.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CargoesLabelCreateErrorsErrorReason = void 0; +exports.instanceOfV1CargoesLabelCreateErrorsErrorReason = instanceOfV1CargoesLabelCreateErrorsErrorReason; +exports.V1CargoesLabelCreateErrorsErrorReasonFromJSON = V1CargoesLabelCreateErrorsErrorReasonFromJSON; +exports.V1CargoesLabelCreateErrorsErrorReasonFromJSONTyped = V1CargoesLabelCreateErrorsErrorReasonFromJSONTyped; +exports.V1CargoesLabelCreateErrorsErrorReasonToJSON = V1CargoesLabelCreateErrorsErrorReasonToJSON; +/** + * + * @export + */ +exports.V1CargoesLabelCreateErrorsErrorReason = { + INVALID_STATE: 'INVALID_STATE', + OPERATION_NOT_FOUND: 'OPERATION_NOT_FOUND', + OPERATION_FAILED: 'OPERATION_FAILED', + SUPPLY_NOT_BELONG_CONTRACTOR: 'SUPPLY_NOT_BELONG_CONTRACTOR', + SUPPLY_NOT_BELONG_COMPANY: 'SUPPLY_NOT_BELONG_COMPANY', + SUPPLY_IS_EMPTY: 'SUPPLY_IS_EMPTY', + CARGOES_NOT_FOUND: 'CARGOES_NOT_FOUND' +}; +function instanceOfV1CargoesLabelCreateErrorsErrorReason(value) { + for (const key in exports.V1CargoesLabelCreateErrorsErrorReason) { + if (Object.prototype.hasOwnProperty.call(exports.V1CargoesLabelCreateErrorsErrorReason, key)) { + if (exports.V1CargoesLabelCreateErrorsErrorReason[key] === value) { + return true; + } + } + } + return false; +} +function V1CargoesLabelCreateErrorsErrorReasonFromJSON(json) { + return V1CargoesLabelCreateErrorsErrorReasonFromJSONTyped(json, false); +} +function V1CargoesLabelCreateErrorsErrorReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CargoesLabelCreateErrorsErrorReasonToJSON(value) { + return value; +} diff --git a/dist/models/V1CargoesLabelCreateRequest.d.ts b/dist/models/V1CargoesLabelCreateRequest.d.ts new file mode 100644 index 0000000..99c92d1 --- /dev/null +++ b/dist/models/V1CargoesLabelCreateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesLabelCreateRequestCargo } from './V1CargoesLabelCreateRequestCargo'; +/** + * + * @export + * @interface V1CargoesLabelCreateRequest + */ +export interface V1CargoesLabelCreateRequest { + /** + * Информация о грузоместах. + * @type {Array} + * @memberof V1CargoesLabelCreateRequest + */ + cargoes?: Array; + /** + * Идентификатор поставки. + * @type {number} + * @memberof V1CargoesLabelCreateRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1CargoesLabelCreateRequest interface. + */ +export declare function instanceOfV1CargoesLabelCreateRequest(value: object): value is V1CargoesLabelCreateRequest; +export declare function V1CargoesLabelCreateRequestFromJSON(json: any): V1CargoesLabelCreateRequest; +export declare function V1CargoesLabelCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateRequest; +export declare function V1CargoesLabelCreateRequestToJSON(value?: V1CargoesLabelCreateRequest | null): any; diff --git a/dist/models/V1CargoesLabelCreateRequest.js b/dist/models/V1CargoesLabelCreateRequest.js new file mode 100644 index 0000000..dde7c23 --- /dev/null +++ b/dist/models/V1CargoesLabelCreateRequest.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesLabelCreateRequest = instanceOfV1CargoesLabelCreateRequest; +exports.V1CargoesLabelCreateRequestFromJSON = V1CargoesLabelCreateRequestFromJSON; +exports.V1CargoesLabelCreateRequestFromJSONTyped = V1CargoesLabelCreateRequestFromJSONTyped; +exports.V1CargoesLabelCreateRequestToJSON = V1CargoesLabelCreateRequestToJSON; +const V1CargoesLabelCreateRequestCargo_1 = require("./V1CargoesLabelCreateRequestCargo"); +/** + * Check if a given object implements the V1CargoesLabelCreateRequest interface. + */ +function instanceOfV1CargoesLabelCreateRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1CargoesLabelCreateRequestFromJSON(json) { + return V1CargoesLabelCreateRequestFromJSONTyped(json, false); +} +function V1CargoesLabelCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargoes': json['cargoes'] == null ? undefined : (json['cargoes'].map(V1CargoesLabelCreateRequestCargo_1.V1CargoesLabelCreateRequestCargoFromJSON)), + 'supply_id': json['supply_id'], + }; +} +function V1CargoesLabelCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargoes': value['cargoes'] == null ? undefined : (value['cargoes'].map(V1CargoesLabelCreateRequestCargo_1.V1CargoesLabelCreateRequestCargoToJSON)), + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1CargoesLabelCreateRequestCargo.d.ts b/dist/models/V1CargoesLabelCreateRequestCargo.d.ts new file mode 100644 index 0000000..63f7832 --- /dev/null +++ b/dist/models/V1CargoesLabelCreateRequestCargo.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesLabelCreateRequestCargo + */ +export interface V1CargoesLabelCreateRequestCargo { + /** + * Идентификатор грузоместа. + * @type {number} + * @memberof V1CargoesLabelCreateRequestCargo + */ + cargo_id?: number; +} +/** + * Check if a given object implements the V1CargoesLabelCreateRequestCargo interface. + */ +export declare function instanceOfV1CargoesLabelCreateRequestCargo(value: object): value is V1CargoesLabelCreateRequestCargo; +export declare function V1CargoesLabelCreateRequestCargoFromJSON(json: any): V1CargoesLabelCreateRequestCargo; +export declare function V1CargoesLabelCreateRequestCargoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateRequestCargo; +export declare function V1CargoesLabelCreateRequestCargoToJSON(value?: V1CargoesLabelCreateRequestCargo | null): any; diff --git a/dist/models/V1CargoesLabelCreateRequestCargo.js b/dist/models/V1CargoesLabelCreateRequestCargo.js new file mode 100644 index 0000000..4221d58 --- /dev/null +++ b/dist/models/V1CargoesLabelCreateRequestCargo.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesLabelCreateRequestCargo = instanceOfV1CargoesLabelCreateRequestCargo; +exports.V1CargoesLabelCreateRequestCargoFromJSON = V1CargoesLabelCreateRequestCargoFromJSON; +exports.V1CargoesLabelCreateRequestCargoFromJSONTyped = V1CargoesLabelCreateRequestCargoFromJSONTyped; +exports.V1CargoesLabelCreateRequestCargoToJSON = V1CargoesLabelCreateRequestCargoToJSON; +/** + * Check if a given object implements the V1CargoesLabelCreateRequestCargo interface. + */ +function instanceOfV1CargoesLabelCreateRequestCargo(value) { + return true; +} +function V1CargoesLabelCreateRequestCargoFromJSON(json) { + return V1CargoesLabelCreateRequestCargoFromJSONTyped(json, false); +} +function V1CargoesLabelCreateRequestCargoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cargo_id': json['cargo_id'] == null ? undefined : json['cargo_id'], + }; +} +function V1CargoesLabelCreateRequestCargoToJSON(value) { + if (value == null) { + return value; + } + return { + 'cargo_id': value['cargo_id'], + }; +} diff --git a/dist/models/V1CargoesLabelCreateResponse.d.ts b/dist/models/V1CargoesLabelCreateResponse.d.ts new file mode 100644 index 0000000..9545a71 --- /dev/null +++ b/dist/models/V1CargoesLabelCreateResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesLabelCreateErrors } from './V1CargoesLabelCreateErrors'; +/** + * + * @export + * @interface V1CargoesLabelCreateResponse + */ +export interface V1CargoesLabelCreateResponse { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesLabelCreateResponse + */ + operation_id?: string; + /** + * + * @type {V1CargoesLabelCreateErrors} + * @memberof V1CargoesLabelCreateResponse + */ + errors?: V1CargoesLabelCreateErrors; +} +/** + * Check if a given object implements the V1CargoesLabelCreateResponse interface. + */ +export declare function instanceOfV1CargoesLabelCreateResponse(value: object): value is V1CargoesLabelCreateResponse; +export declare function V1CargoesLabelCreateResponseFromJSON(json: any): V1CargoesLabelCreateResponse; +export declare function V1CargoesLabelCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelCreateResponse; +export declare function V1CargoesLabelCreateResponseToJSON(value?: V1CargoesLabelCreateResponse | null): any; diff --git a/dist/models/V1CargoesLabelCreateResponse.js b/dist/models/V1CargoesLabelCreateResponse.js new file mode 100644 index 0000000..821c38d --- /dev/null +++ b/dist/models/V1CargoesLabelCreateResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesLabelCreateResponse = instanceOfV1CargoesLabelCreateResponse; +exports.V1CargoesLabelCreateResponseFromJSON = V1CargoesLabelCreateResponseFromJSON; +exports.V1CargoesLabelCreateResponseFromJSONTyped = V1CargoesLabelCreateResponseFromJSONTyped; +exports.V1CargoesLabelCreateResponseToJSON = V1CargoesLabelCreateResponseToJSON; +const V1CargoesLabelCreateErrors_1 = require("./V1CargoesLabelCreateErrors"); +/** + * Check if a given object implements the V1CargoesLabelCreateResponse interface. + */ +function instanceOfV1CargoesLabelCreateResponse(value) { + return true; +} +function V1CargoesLabelCreateResponseFromJSON(json) { + return V1CargoesLabelCreateResponseFromJSONTyped(json, false); +} +function V1CargoesLabelCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + 'errors': json['errors'] == null ? undefined : (0, V1CargoesLabelCreateErrors_1.V1CargoesLabelCreateErrorsFromJSON)(json['errors']), + }; +} +function V1CargoesLabelCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + 'errors': (0, V1CargoesLabelCreateErrors_1.V1CargoesLabelCreateErrorsToJSON)(value['errors']), + }; +} diff --git a/dist/models/V1CargoesLabelGetRequest.d.ts b/dist/models/V1CargoesLabelGetRequest.d.ts new file mode 100644 index 0000000..f204377 --- /dev/null +++ b/dist/models/V1CargoesLabelGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesLabelGetRequest + */ +export interface V1CargoesLabelGetRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1CargoesLabelGetRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1CargoesLabelGetRequest interface. + */ +export declare function instanceOfV1CargoesLabelGetRequest(value: object): value is V1CargoesLabelGetRequest; +export declare function V1CargoesLabelGetRequestFromJSON(json: any): V1CargoesLabelGetRequest; +export declare function V1CargoesLabelGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelGetRequest; +export declare function V1CargoesLabelGetRequestToJSON(value?: V1CargoesLabelGetRequest | null): any; diff --git a/dist/models/V1CargoesLabelGetRequest.js b/dist/models/V1CargoesLabelGetRequest.js new file mode 100644 index 0000000..3cf151d --- /dev/null +++ b/dist/models/V1CargoesLabelGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesLabelGetRequest = instanceOfV1CargoesLabelGetRequest; +exports.V1CargoesLabelGetRequestFromJSON = V1CargoesLabelGetRequestFromJSON; +exports.V1CargoesLabelGetRequestFromJSONTyped = V1CargoesLabelGetRequestFromJSONTyped; +exports.V1CargoesLabelGetRequestToJSON = V1CargoesLabelGetRequestToJSON; +/** + * Check if a given object implements the V1CargoesLabelGetRequest interface. + */ +function instanceOfV1CargoesLabelGetRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function V1CargoesLabelGetRequestFromJSON(json) { + return V1CargoesLabelGetRequestFromJSONTyped(json, false); +} +function V1CargoesLabelGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function V1CargoesLabelGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1CargoesLabelGetResponse.d.ts b/dist/models/V1CargoesLabelGetResponse.d.ts new file mode 100644 index 0000000..8dc17f1 --- /dev/null +++ b/dist/models/V1CargoesLabelGetResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CargoesLabelGetResponseResult } from './V1CargoesLabelGetResponseResult'; +import type { V1CargoesLabelCreateErrors } from './V1CargoesLabelCreateErrors'; +import type { V1CargoesLabelGetResponseStatus } from './V1CargoesLabelGetResponseStatus'; +/** + * + * @export + * @interface V1CargoesLabelGetResponse + */ +export interface V1CargoesLabelGetResponse { + /** + * + * @type {V1CargoesLabelGetResponseResult} + * @memberof V1CargoesLabelGetResponse + */ + result?: V1CargoesLabelGetResponseResult; + /** + * + * @type {V1CargoesLabelGetResponseStatus} + * @memberof V1CargoesLabelGetResponse + */ + status?: V1CargoesLabelGetResponseStatus; + /** + * + * @type {V1CargoesLabelCreateErrors} + * @memberof V1CargoesLabelGetResponse + */ + errors?: V1CargoesLabelCreateErrors; +} +/** + * Check if a given object implements the V1CargoesLabelGetResponse interface. + */ +export declare function instanceOfV1CargoesLabelGetResponse(value: object): value is V1CargoesLabelGetResponse; +export declare function V1CargoesLabelGetResponseFromJSON(json: any): V1CargoesLabelGetResponse; +export declare function V1CargoesLabelGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelGetResponse; +export declare function V1CargoesLabelGetResponseToJSON(value?: V1CargoesLabelGetResponse | null): any; diff --git a/dist/models/V1CargoesLabelGetResponse.js b/dist/models/V1CargoesLabelGetResponse.js new file mode 100644 index 0000000..fc9d7e5 --- /dev/null +++ b/dist/models/V1CargoesLabelGetResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesLabelGetResponse = instanceOfV1CargoesLabelGetResponse; +exports.V1CargoesLabelGetResponseFromJSON = V1CargoesLabelGetResponseFromJSON; +exports.V1CargoesLabelGetResponseFromJSONTyped = V1CargoesLabelGetResponseFromJSONTyped; +exports.V1CargoesLabelGetResponseToJSON = V1CargoesLabelGetResponseToJSON; +const V1CargoesLabelGetResponseResult_1 = require("./V1CargoesLabelGetResponseResult"); +const V1CargoesLabelCreateErrors_1 = require("./V1CargoesLabelCreateErrors"); +const V1CargoesLabelGetResponseStatus_1 = require("./V1CargoesLabelGetResponseStatus"); +/** + * Check if a given object implements the V1CargoesLabelGetResponse interface. + */ +function instanceOfV1CargoesLabelGetResponse(value) { + return true; +} +function V1CargoesLabelGetResponseFromJSON(json) { + return V1CargoesLabelGetResponseFromJSONTyped(json, false); +} +function V1CargoesLabelGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1CargoesLabelGetResponseResult_1.V1CargoesLabelGetResponseResultFromJSON)(json['result']), + 'status': json['status'] == null ? undefined : (0, V1CargoesLabelGetResponseStatus_1.V1CargoesLabelGetResponseStatusFromJSON)(json['status']), + 'errors': json['errors'] == null ? undefined : (0, V1CargoesLabelCreateErrors_1.V1CargoesLabelCreateErrorsFromJSON)(json['errors']), + }; +} +function V1CargoesLabelGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1CargoesLabelGetResponseResult_1.V1CargoesLabelGetResponseResultToJSON)(value['result']), + 'status': (0, V1CargoesLabelGetResponseStatus_1.V1CargoesLabelGetResponseStatusToJSON)(value['status']), + 'errors': (0, V1CargoesLabelCreateErrors_1.V1CargoesLabelCreateErrorsToJSON)(value['errors']), + }; +} diff --git a/dist/models/V1CargoesLabelGetResponseResult.d.ts b/dist/models/V1CargoesLabelGetResponseResult.d.ts new file mode 100644 index 0000000..be26bde --- /dev/null +++ b/dist/models/V1CargoesLabelGetResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об этикетках. + * @export + * @interface V1CargoesLabelGetResponseResult + */ +export interface V1CargoesLabelGetResponseResult { + /** + * Идентификатор для получения файла с этикетками. + * @type {string} + * @memberof V1CargoesLabelGetResponseResult + * @deprecated + */ + file_guid?: string; + /** + * Ссылка на PDF-файл с этикетками. + * @type {string} + * @memberof V1CargoesLabelGetResponseResult + */ + file_url?: string; +} +/** + * Check if a given object implements the V1CargoesLabelGetResponseResult interface. + */ +export declare function instanceOfV1CargoesLabelGetResponseResult(value: object): value is V1CargoesLabelGetResponseResult; +export declare function V1CargoesLabelGetResponseResultFromJSON(json: any): V1CargoesLabelGetResponseResult; +export declare function V1CargoesLabelGetResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelGetResponseResult; +export declare function V1CargoesLabelGetResponseResultToJSON(value?: V1CargoesLabelGetResponseResult | null): any; diff --git a/dist/models/V1CargoesLabelGetResponseResult.js b/dist/models/V1CargoesLabelGetResponseResult.js new file mode 100644 index 0000000..8a6804b --- /dev/null +++ b/dist/models/V1CargoesLabelGetResponseResult.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesLabelGetResponseResult = instanceOfV1CargoesLabelGetResponseResult; +exports.V1CargoesLabelGetResponseResultFromJSON = V1CargoesLabelGetResponseResultFromJSON; +exports.V1CargoesLabelGetResponseResultFromJSONTyped = V1CargoesLabelGetResponseResultFromJSONTyped; +exports.V1CargoesLabelGetResponseResultToJSON = V1CargoesLabelGetResponseResultToJSON; +/** + * Check if a given object implements the V1CargoesLabelGetResponseResult interface. + */ +function instanceOfV1CargoesLabelGetResponseResult(value) { + return true; +} +function V1CargoesLabelGetResponseResultFromJSON(json) { + return V1CargoesLabelGetResponseResultFromJSONTyped(json, false); +} +function V1CargoesLabelGetResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_guid': json['file_guid'] == null ? undefined : json['file_guid'], + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + }; +} +function V1CargoesLabelGetResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_guid': value['file_guid'], + 'file_url': value['file_url'], + }; +} diff --git a/dist/models/V1CargoesLabelGetResponseStatus.d.ts b/dist/models/V1CargoesLabelGetResponseStatus.d.ts new file mode 100644 index 0000000..d1ebc3e --- /dev/null +++ b/dist/models/V1CargoesLabelGetResponseStatus.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус формирования этикеток: + * - `SUCCESS` — готовы. + * - `IN_PROGRESS` — формируются. + * - `FAILED` — ошибка при формировании. + * + * @export + */ +export declare const V1CargoesLabelGetResponseStatus: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type V1CargoesLabelGetResponseStatus = typeof V1CargoesLabelGetResponseStatus[keyof typeof V1CargoesLabelGetResponseStatus]; +export declare function instanceOfV1CargoesLabelGetResponseStatus(value: any): boolean; +export declare function V1CargoesLabelGetResponseStatusFromJSON(json: any): V1CargoesLabelGetResponseStatus; +export declare function V1CargoesLabelGetResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesLabelGetResponseStatus; +export declare function V1CargoesLabelGetResponseStatusToJSON(value?: V1CargoesLabelGetResponseStatus | null): any; diff --git a/dist/models/V1CargoesLabelGetResponseStatus.js b/dist/models/V1CargoesLabelGetResponseStatus.js new file mode 100644 index 0000000..238b3b8 --- /dev/null +++ b/dist/models/V1CargoesLabelGetResponseStatus.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CargoesLabelGetResponseStatus = void 0; +exports.instanceOfV1CargoesLabelGetResponseStatus = instanceOfV1CargoesLabelGetResponseStatus; +exports.V1CargoesLabelGetResponseStatusFromJSON = V1CargoesLabelGetResponseStatusFromJSON; +exports.V1CargoesLabelGetResponseStatusFromJSONTyped = V1CargoesLabelGetResponseStatusFromJSONTyped; +exports.V1CargoesLabelGetResponseStatusToJSON = V1CargoesLabelGetResponseStatusToJSON; +/** + * Статус формирования этикеток: + * - `SUCCESS` — готовы. + * - `IN_PROGRESS` — формируются. + * - `FAILED` — ошибка при формировании. + * + * @export + */ +exports.V1CargoesLabelGetResponseStatus = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfV1CargoesLabelGetResponseStatus(value) { + for (const key in exports.V1CargoesLabelGetResponseStatus) { + if (Object.prototype.hasOwnProperty.call(exports.V1CargoesLabelGetResponseStatus, key)) { + if (exports.V1CargoesLabelGetResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +function V1CargoesLabelGetResponseStatusFromJSON(json) { + return V1CargoesLabelGetResponseStatusFromJSONTyped(json, false); +} +function V1CargoesLabelGetResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CargoesLabelGetResponseStatusToJSON(value) { + return value; +} diff --git a/dist/models/V1CargoesRulesGetRequest.d.ts b/dist/models/V1CargoesRulesGetRequest.d.ts new file mode 100644 index 0000000..9711dcd --- /dev/null +++ b/dist/models/V1CargoesRulesGetRequest.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CargoesRulesGetRequest + */ +export interface V1CargoesRulesGetRequest { + /** + * Список идентификаторов поставок в заявке. + * + * Максимум 100 идентификаторов. + * + * @type {Array} + * @memberof V1CargoesRulesGetRequest + */ + supply_ids: Array; +} +/** + * Check if a given object implements the V1CargoesRulesGetRequest interface. + */ +export declare function instanceOfV1CargoesRulesGetRequest(value: object): value is V1CargoesRulesGetRequest; +export declare function V1CargoesRulesGetRequestFromJSON(json: any): V1CargoesRulesGetRequest; +export declare function V1CargoesRulesGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesRulesGetRequest; +export declare function V1CargoesRulesGetRequestToJSON(value?: V1CargoesRulesGetRequest | null): any; diff --git a/dist/models/V1CargoesRulesGetRequest.js b/dist/models/V1CargoesRulesGetRequest.js new file mode 100644 index 0000000..f6189e4 --- /dev/null +++ b/dist/models/V1CargoesRulesGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesRulesGetRequest = instanceOfV1CargoesRulesGetRequest; +exports.V1CargoesRulesGetRequestFromJSON = V1CargoesRulesGetRequestFromJSON; +exports.V1CargoesRulesGetRequestFromJSONTyped = V1CargoesRulesGetRequestFromJSONTyped; +exports.V1CargoesRulesGetRequestToJSON = V1CargoesRulesGetRequestToJSON; +/** + * Check if a given object implements the V1CargoesRulesGetRequest interface. + */ +function instanceOfV1CargoesRulesGetRequest(value) { + if (!('supply_ids' in value) || value['supply_ids'] === undefined) + return false; + return true; +} +function V1CargoesRulesGetRequestFromJSON(json) { + return V1CargoesRulesGetRequestFromJSONTyped(json, false); +} +function V1CargoesRulesGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_ids': json['supply_ids'], + }; +} +function V1CargoesRulesGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_ids': value['supply_ids'], + }; +} diff --git a/dist/models/V1CargoesRulesGetResponse.d.ts b/dist/models/V1CargoesRulesGetResponse.d.ts new file mode 100644 index 0000000..28b2980 --- /dev/null +++ b/dist/models/V1CargoesRulesGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesRulesGetResponseSupplyCheck } from './CargoesRulesGetResponseSupplyCheck'; +/** + * + * @export + * @interface V1CargoesRulesGetResponse + */ +export interface V1CargoesRulesGetResponse { + /** + * Список чек-листов с правилами заполнения грузомест по поставкам. + * @type {Array} + * @memberof V1CargoesRulesGetResponse + */ + supply_check_lists?: Array; +} +/** + * Check if a given object implements the V1CargoesRulesGetResponse interface. + */ +export declare function instanceOfV1CargoesRulesGetResponse(value: object): value is V1CargoesRulesGetResponse; +export declare function V1CargoesRulesGetResponseFromJSON(json: any): V1CargoesRulesGetResponse; +export declare function V1CargoesRulesGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CargoesRulesGetResponse; +export declare function V1CargoesRulesGetResponseToJSON(value?: V1CargoesRulesGetResponse | null): any; diff --git a/dist/models/V1CargoesRulesGetResponse.js b/dist/models/V1CargoesRulesGetResponse.js new file mode 100644 index 0000000..9a20d74 --- /dev/null +++ b/dist/models/V1CargoesRulesGetResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CargoesRulesGetResponse = instanceOfV1CargoesRulesGetResponse; +exports.V1CargoesRulesGetResponseFromJSON = V1CargoesRulesGetResponseFromJSON; +exports.V1CargoesRulesGetResponseFromJSONTyped = V1CargoesRulesGetResponseFromJSONTyped; +exports.V1CargoesRulesGetResponseToJSON = V1CargoesRulesGetResponseToJSON; +const CargoesRulesGetResponseSupplyCheck_1 = require("./CargoesRulesGetResponseSupplyCheck"); +/** + * Check if a given object implements the V1CargoesRulesGetResponse interface. + */ +function instanceOfV1CargoesRulesGetResponse(value) { + return true; +} +function V1CargoesRulesGetResponseFromJSON(json) { + return V1CargoesRulesGetResponseFromJSONTyped(json, false); +} +function V1CargoesRulesGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_check_lists': json['supply_check_lists'] == null ? undefined : (json['supply_check_lists'].map(CargoesRulesGetResponseSupplyCheck_1.CargoesRulesGetResponseSupplyCheckFromJSON)), + }; +} +function V1CargoesRulesGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_check_lists': value['supply_check_lists'] == null ? undefined : (value['supply_check_lists'].map(CargoesRulesGetResponseSupplyCheck_1.CargoesRulesGetResponseSupplyCheckToJSON)), + }; +} diff --git a/dist/models/V1CarriageActDiscrepancyPDFRequest.d.ts b/dist/models/V1CarriageActDiscrepancyPDFRequest.d.ts new file mode 100644 index 0000000..b3e0f04 --- /dev/null +++ b/dist/models/V1CarriageActDiscrepancyPDFRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageActDiscrepancyPDFRequest + */ +export interface V1CarriageActDiscrepancyPDFRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1CarriageActDiscrepancyPDFRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the V1CarriageActDiscrepancyPDFRequest interface. + */ +export declare function instanceOfV1CarriageActDiscrepancyPDFRequest(value: object): value is V1CarriageActDiscrepancyPDFRequest; +export declare function V1CarriageActDiscrepancyPDFRequestFromJSON(json: any): V1CarriageActDiscrepancyPDFRequest; +export declare function V1CarriageActDiscrepancyPDFRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageActDiscrepancyPDFRequest; +export declare function V1CarriageActDiscrepancyPDFRequestToJSON(value?: V1CarriageActDiscrepancyPDFRequest | null): any; diff --git a/dist/models/V1CarriageActDiscrepancyPDFRequest.js b/dist/models/V1CarriageActDiscrepancyPDFRequest.js new file mode 100644 index 0000000..bbc2cba --- /dev/null +++ b/dist/models/V1CarriageActDiscrepancyPDFRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageActDiscrepancyPDFRequest = instanceOfV1CarriageActDiscrepancyPDFRequest; +exports.V1CarriageActDiscrepancyPDFRequestFromJSON = V1CarriageActDiscrepancyPDFRequestFromJSON; +exports.V1CarriageActDiscrepancyPDFRequestFromJSONTyped = V1CarriageActDiscrepancyPDFRequestFromJSONTyped; +exports.V1CarriageActDiscrepancyPDFRequestToJSON = V1CarriageActDiscrepancyPDFRequestToJSON; +/** + * Check if a given object implements the V1CarriageActDiscrepancyPDFRequest interface. + */ +function instanceOfV1CarriageActDiscrepancyPDFRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function V1CarriageActDiscrepancyPDFRequestFromJSON(json) { + return V1CarriageActDiscrepancyPDFRequestFromJSONTyped(json, false); +} +function V1CarriageActDiscrepancyPDFRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +function V1CarriageActDiscrepancyPDFRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/V1CarriageActDiscrepancyPDFResponse.d.ts b/dist/models/V1CarriageActDiscrepancyPDFResponse.d.ts new file mode 100644 index 0000000..b8a4507 --- /dev/null +++ b/dist/models/V1CarriageActDiscrepancyPDFResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageActDiscrepancyPDFResponse + */ +export interface V1CarriageActDiscrepancyPDFResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof V1CarriageActDiscrepancyPDFResponse + */ + content?: string; + /** + * Название файла. + * @type {string} + * @memberof V1CarriageActDiscrepancyPDFResponse + */ + name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V1CarriageActDiscrepancyPDFResponse + */ + type?: string; +} +/** + * Check if a given object implements the V1CarriageActDiscrepancyPDFResponse interface. + */ +export declare function instanceOfV1CarriageActDiscrepancyPDFResponse(value: object): value is V1CarriageActDiscrepancyPDFResponse; +export declare function V1CarriageActDiscrepancyPDFResponseFromJSON(json: any): V1CarriageActDiscrepancyPDFResponse; +export declare function V1CarriageActDiscrepancyPDFResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageActDiscrepancyPDFResponse; +export declare function V1CarriageActDiscrepancyPDFResponseToJSON(value?: V1CarriageActDiscrepancyPDFResponse | null): any; diff --git a/dist/models/V1CarriageActDiscrepancyPDFResponse.js b/dist/models/V1CarriageActDiscrepancyPDFResponse.js new file mode 100644 index 0000000..7baf241 --- /dev/null +++ b/dist/models/V1CarriageActDiscrepancyPDFResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageActDiscrepancyPDFResponse = instanceOfV1CarriageActDiscrepancyPDFResponse; +exports.V1CarriageActDiscrepancyPDFResponseFromJSON = V1CarriageActDiscrepancyPDFResponseFromJSON; +exports.V1CarriageActDiscrepancyPDFResponseFromJSONTyped = V1CarriageActDiscrepancyPDFResponseFromJSONTyped; +exports.V1CarriageActDiscrepancyPDFResponseToJSON = V1CarriageActDiscrepancyPDFResponseToJSON; +/** + * Check if a given object implements the V1CarriageActDiscrepancyPDFResponse interface. + */ +function instanceOfV1CarriageActDiscrepancyPDFResponse(value) { + return true; +} +function V1CarriageActDiscrepancyPDFResponseFromJSON(json) { + return V1CarriageActDiscrepancyPDFResponseFromJSONTyped(json, false); +} +function V1CarriageActDiscrepancyPDFResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content': json['content'] == null ? undefined : json['content'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} +function V1CarriageActDiscrepancyPDFResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'content': value['content'], + 'name': value['name'], + 'type': value['type'], + }; +} diff --git a/dist/models/V1CarriageApproveRequest.d.ts b/dist/models/V1CarriageApproveRequest.d.ts new file mode 100644 index 0000000..cc48e89 --- /dev/null +++ b/dist/models/V1CarriageApproveRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageApproveRequest + */ +export interface V1CarriageApproveRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1CarriageApproveRequest + */ + carriage_id: number; + /** + * Количество грузовых мест. + * + * Используйте параметр, если вы подключены к доверительной приёмке и отгружаете заказы грузовыми местами. Если вы не подключены к доверительной приёмке, пропустите его. + * + * @type {number} + * @memberof V1CarriageApproveRequest + */ + containers_count?: number; +} +/** + * Check if a given object implements the V1CarriageApproveRequest interface. + */ +export declare function instanceOfV1CarriageApproveRequest(value: object): value is V1CarriageApproveRequest; +export declare function V1CarriageApproveRequestFromJSON(json: any): V1CarriageApproveRequest; +export declare function V1CarriageApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageApproveRequest; +export declare function V1CarriageApproveRequestToJSON(value?: V1CarriageApproveRequest | null): any; diff --git a/dist/models/V1CarriageApproveRequest.js b/dist/models/V1CarriageApproveRequest.js new file mode 100644 index 0000000..c4e4cca --- /dev/null +++ b/dist/models/V1CarriageApproveRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageApproveRequest = instanceOfV1CarriageApproveRequest; +exports.V1CarriageApproveRequestFromJSON = V1CarriageApproveRequestFromJSON; +exports.V1CarriageApproveRequestFromJSONTyped = V1CarriageApproveRequestFromJSONTyped; +exports.V1CarriageApproveRequestToJSON = V1CarriageApproveRequestToJSON; +/** + * Check if a given object implements the V1CarriageApproveRequest interface. + */ +function instanceOfV1CarriageApproveRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function V1CarriageApproveRequestFromJSON(json) { + return V1CarriageApproveRequestFromJSONTyped(json, false); +} +function V1CarriageApproveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'containers_count': json['containers_count'] == null ? undefined : json['containers_count'], + }; +} +function V1CarriageApproveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'containers_count': value['containers_count'], + }; +} diff --git a/dist/models/V1CarriageCancelRequest.d.ts b/dist/models/V1CarriageCancelRequest.d.ts new file mode 100644 index 0000000..b67a32b --- /dev/null +++ b/dist/models/V1CarriageCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCancelRequest + */ +export interface V1CarriageCancelRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1CarriageCancelRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the V1CarriageCancelRequest interface. + */ +export declare function instanceOfV1CarriageCancelRequest(value: object): value is V1CarriageCancelRequest; +export declare function V1CarriageCancelRequestFromJSON(json: any): V1CarriageCancelRequest; +export declare function V1CarriageCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCancelRequest; +export declare function V1CarriageCancelRequestToJSON(value?: V1CarriageCancelRequest | null): any; diff --git a/dist/models/V1CarriageCancelRequest.js b/dist/models/V1CarriageCancelRequest.js new file mode 100644 index 0000000..bd32f10 --- /dev/null +++ b/dist/models/V1CarriageCancelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageCancelRequest = instanceOfV1CarriageCancelRequest; +exports.V1CarriageCancelRequestFromJSON = V1CarriageCancelRequestFromJSON; +exports.V1CarriageCancelRequestFromJSONTyped = V1CarriageCancelRequestFromJSONTyped; +exports.V1CarriageCancelRequestToJSON = V1CarriageCancelRequestToJSON; +/** + * Check if a given object implements the V1CarriageCancelRequest interface. + */ +function instanceOfV1CarriageCancelRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function V1CarriageCancelRequestFromJSON(json) { + return V1CarriageCancelRequestFromJSONTyped(json, false); +} +function V1CarriageCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +function V1CarriageCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/V1CarriageCancelResponse.d.ts b/dist/models/V1CarriageCancelResponse.d.ts new file mode 100644 index 0000000..93ad1cd --- /dev/null +++ b/dist/models/V1CarriageCancelResponse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCancelResponse + */ +export interface V1CarriageCancelResponse { + /** + * Описание ошибки. + * @type {string} + * @memberof V1CarriageCancelResponse + */ + error?: string; + /** + * Статус отгрузки. + * @type {string} + * @memberof V1CarriageCancelResponse + */ + carriage_status?: string; +} +/** + * Check if a given object implements the V1CarriageCancelResponse interface. + */ +export declare function instanceOfV1CarriageCancelResponse(value: object): value is V1CarriageCancelResponse; +export declare function V1CarriageCancelResponseFromJSON(json: any): V1CarriageCancelResponse; +export declare function V1CarriageCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCancelResponse; +export declare function V1CarriageCancelResponseToJSON(value?: V1CarriageCancelResponse | null): any; diff --git a/dist/models/V1CarriageCancelResponse.js b/dist/models/V1CarriageCancelResponse.js new file mode 100644 index 0000000..7cae68c --- /dev/null +++ b/dist/models/V1CarriageCancelResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageCancelResponse = instanceOfV1CarriageCancelResponse; +exports.V1CarriageCancelResponseFromJSON = V1CarriageCancelResponseFromJSON; +exports.V1CarriageCancelResponseFromJSONTyped = V1CarriageCancelResponseFromJSONTyped; +exports.V1CarriageCancelResponseToJSON = V1CarriageCancelResponseToJSON; +/** + * Check if a given object implements the V1CarriageCancelResponse interface. + */ +function instanceOfV1CarriageCancelResponse(value) { + return true; +} +function V1CarriageCancelResponseFromJSON(json) { + return V1CarriageCancelResponseFromJSONTyped(json, false); +} +function V1CarriageCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'carriage_status': json['carriage_status'] == null ? undefined : json['carriage_status'], + }; +} +function V1CarriageCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'carriage_status': value['carriage_status'], + }; +} diff --git a/dist/models/V1CarriageCourierContactGetRequest.d.ts b/dist/models/V1CarriageCourierContactGetRequest.d.ts new file mode 100644 index 0000000..4264b58 --- /dev/null +++ b/dist/models/V1CarriageCourierContactGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCourierContactGetRequest + */ +export interface V1CarriageCourierContactGetRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageCourierContactGetRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the V1CarriageCourierContactGetRequest interface. + */ +export declare function instanceOfV1CarriageCourierContactGetRequest(value: object): value is V1CarriageCourierContactGetRequest; +export declare function V1CarriageCourierContactGetRequestFromJSON(json: any): V1CarriageCourierContactGetRequest; +export declare function V1CarriageCourierContactGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCourierContactGetRequest; +export declare function V1CarriageCourierContactGetRequestToJSON(value?: V1CarriageCourierContactGetRequest | null): any; diff --git a/dist/models/V1CarriageCourierContactGetRequest.js b/dist/models/V1CarriageCourierContactGetRequest.js new file mode 100644 index 0000000..564ce64 --- /dev/null +++ b/dist/models/V1CarriageCourierContactGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageCourierContactGetRequest = instanceOfV1CarriageCourierContactGetRequest; +exports.V1CarriageCourierContactGetRequestFromJSON = V1CarriageCourierContactGetRequestFromJSON; +exports.V1CarriageCourierContactGetRequestFromJSONTyped = V1CarriageCourierContactGetRequestFromJSONTyped; +exports.V1CarriageCourierContactGetRequestToJSON = V1CarriageCourierContactGetRequestToJSON; +/** + * Check if a given object implements the V1CarriageCourierContactGetRequest interface. + */ +function instanceOfV1CarriageCourierContactGetRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function V1CarriageCourierContactGetRequestFromJSON(json) { + return V1CarriageCourierContactGetRequestFromJSONTyped(json, false); +} +function V1CarriageCourierContactGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +function V1CarriageCourierContactGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/V1CarriageCourierContactGetResponse.d.ts b/dist/models/V1CarriageCourierContactGetResponse.d.ts new file mode 100644 index 0000000..4ca6ead --- /dev/null +++ b/dist/models/V1CarriageCourierContactGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CarriageCourierContactGetResponseContact } from './V1CarriageCourierContactGetResponseContact'; +/** + * + * @export + * @interface V1CarriageCourierContactGetResponse + */ +export interface V1CarriageCourierContactGetResponse { + /** + * Информация о контактах продавца. + * @type {Array} + * @memberof V1CarriageCourierContactGetResponse + */ + contact?: Array; +} +/** + * Check if a given object implements the V1CarriageCourierContactGetResponse interface. + */ +export declare function instanceOfV1CarriageCourierContactGetResponse(value: object): value is V1CarriageCourierContactGetResponse; +export declare function V1CarriageCourierContactGetResponseFromJSON(json: any): V1CarriageCourierContactGetResponse; +export declare function V1CarriageCourierContactGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCourierContactGetResponse; +export declare function V1CarriageCourierContactGetResponseToJSON(value?: V1CarriageCourierContactGetResponse | null): any; diff --git a/dist/models/V1CarriageCourierContactGetResponse.js b/dist/models/V1CarriageCourierContactGetResponse.js new file mode 100644 index 0000000..4478616 --- /dev/null +++ b/dist/models/V1CarriageCourierContactGetResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageCourierContactGetResponse = instanceOfV1CarriageCourierContactGetResponse; +exports.V1CarriageCourierContactGetResponseFromJSON = V1CarriageCourierContactGetResponseFromJSON; +exports.V1CarriageCourierContactGetResponseFromJSONTyped = V1CarriageCourierContactGetResponseFromJSONTyped; +exports.V1CarriageCourierContactGetResponseToJSON = V1CarriageCourierContactGetResponseToJSON; +const V1CarriageCourierContactGetResponseContact_1 = require("./V1CarriageCourierContactGetResponseContact"); +/** + * Check if a given object implements the V1CarriageCourierContactGetResponse interface. + */ +function instanceOfV1CarriageCourierContactGetResponse(value) { + return true; +} +function V1CarriageCourierContactGetResponseFromJSON(json) { + return V1CarriageCourierContactGetResponseFromJSONTyped(json, false); +} +function V1CarriageCourierContactGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact': json['contact'] == null ? undefined : (json['contact'].map(V1CarriageCourierContactGetResponseContact_1.V1CarriageCourierContactGetResponseContactFromJSON)), + }; +} +function V1CarriageCourierContactGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact': value['contact'] == null ? undefined : (value['contact'].map(V1CarriageCourierContactGetResponseContact_1.V1CarriageCourierContactGetResponseContactToJSON)), + }; +} diff --git a/dist/models/V1CarriageCourierContactGetResponseContact.d.ts b/dist/models/V1CarriageCourierContactGetResponseContact.d.ts new file mode 100644 index 0000000..c3298d0 --- /dev/null +++ b/dist/models/V1CarriageCourierContactGetResponseContact.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCourierContactGetResponseContact + */ +export interface V1CarriageCourierContactGetResponseContact { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageCourierContactGetResponseContact + */ + carriage_id?: number; + /** + * Телефон продавца. + * @type {string} + * @memberof V1CarriageCourierContactGetResponseContact + */ + phone?: string; + /** + * WeChat продавца. + * @type {string} + * @memberof V1CarriageCourierContactGetResponseContact + */ + wechat_nickname?: string; + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1CarriageCourierContactGetResponseContact + */ + comment?: string; + /** + * Дата и время последнего обновления записи в UTC. + * @type {string} + * @memberof V1CarriageCourierContactGetResponseContact + */ + updated_at?: string; +} +/** + * Check if a given object implements the V1CarriageCourierContactGetResponseContact interface. + */ +export declare function instanceOfV1CarriageCourierContactGetResponseContact(value: object): value is V1CarriageCourierContactGetResponseContact; +export declare function V1CarriageCourierContactGetResponseContactFromJSON(json: any): V1CarriageCourierContactGetResponseContact; +export declare function V1CarriageCourierContactGetResponseContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCourierContactGetResponseContact; +export declare function V1CarriageCourierContactGetResponseContactToJSON(value?: V1CarriageCourierContactGetResponseContact | null): any; diff --git a/dist/models/V1CarriageCourierContactGetResponseContact.js b/dist/models/V1CarriageCourierContactGetResponseContact.js new file mode 100644 index 0000000..7a49451 --- /dev/null +++ b/dist/models/V1CarriageCourierContactGetResponseContact.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageCourierContactGetResponseContact = instanceOfV1CarriageCourierContactGetResponseContact; +exports.V1CarriageCourierContactGetResponseContactFromJSON = V1CarriageCourierContactGetResponseContactFromJSON; +exports.V1CarriageCourierContactGetResponseContactFromJSONTyped = V1CarriageCourierContactGetResponseContactFromJSONTyped; +exports.V1CarriageCourierContactGetResponseContactToJSON = V1CarriageCourierContactGetResponseContactToJSON; +/** + * Check if a given object implements the V1CarriageCourierContactGetResponseContact interface. + */ +function instanceOfV1CarriageCourierContactGetResponseContact(value) { + return true; +} +function V1CarriageCourierContactGetResponseContactFromJSON(json) { + return V1CarriageCourierContactGetResponseContactFromJSONTyped(json, false); +} +function V1CarriageCourierContactGetResponseContactFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'] == null ? undefined : json['carriage_id'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'wechat_nickname': json['wechat_nickname'] == null ? undefined : json['wechat_nickname'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + }; +} +function V1CarriageCourierContactGetResponseContactToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'phone': value['phone'], + 'wechat_nickname': value['wechat_nickname'], + 'comment': value['comment'], + 'updated_at': value['updated_at'], + }; +} diff --git a/dist/models/V1CarriageCourierContactSetRequest.d.ts b/dist/models/V1CarriageCourierContactSetRequest.d.ts new file mode 100644 index 0000000..abb5c61 --- /dev/null +++ b/dist/models/V1CarriageCourierContactSetRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCourierContactSetRequest + */ +export interface V1CarriageCourierContactSetRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageCourierContactSetRequest + */ + carriage_id: number; + /** + * Телефон продавца. + * @type {string} + * @memberof V1CarriageCourierContactSetRequest + */ + phone: string; + /** + * WeChat продавца. + * @type {string} + * @memberof V1CarriageCourierContactSetRequest + */ + wechat_nickname?: string; + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1CarriageCourierContactSetRequest + */ + comment?: string; +} +/** + * Check if a given object implements the V1CarriageCourierContactSetRequest interface. + */ +export declare function instanceOfV1CarriageCourierContactSetRequest(value: object): value is V1CarriageCourierContactSetRequest; +export declare function V1CarriageCourierContactSetRequestFromJSON(json: any): V1CarriageCourierContactSetRequest; +export declare function V1CarriageCourierContactSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCourierContactSetRequest; +export declare function V1CarriageCourierContactSetRequestToJSON(value?: V1CarriageCourierContactSetRequest | null): any; diff --git a/dist/models/V1CarriageCourierContactSetRequest.js b/dist/models/V1CarriageCourierContactSetRequest.js new file mode 100644 index 0000000..861542f --- /dev/null +++ b/dist/models/V1CarriageCourierContactSetRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageCourierContactSetRequest = instanceOfV1CarriageCourierContactSetRequest; +exports.V1CarriageCourierContactSetRequestFromJSON = V1CarriageCourierContactSetRequestFromJSON; +exports.V1CarriageCourierContactSetRequestFromJSONTyped = V1CarriageCourierContactSetRequestFromJSONTyped; +exports.V1CarriageCourierContactSetRequestToJSON = V1CarriageCourierContactSetRequestToJSON; +/** + * Check if a given object implements the V1CarriageCourierContactSetRequest interface. + */ +function instanceOfV1CarriageCourierContactSetRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + return true; +} +function V1CarriageCourierContactSetRequestFromJSON(json) { + return V1CarriageCourierContactSetRequestFromJSONTyped(json, false); +} +function V1CarriageCourierContactSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'phone': json['phone'], + 'wechat_nickname': json['wechat_nickname'] == null ? undefined : json['wechat_nickname'], + 'comment': json['comment'] == null ? undefined : json['comment'], + }; +} +function V1CarriageCourierContactSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'phone': value['phone'], + 'wechat_nickname': value['wechat_nickname'], + 'comment': value['comment'], + }; +} diff --git a/dist/models/V1CarriageCreateRequest.d.ts b/dist/models/V1CarriageCreateRequest.d.ts new file mode 100644 index 0000000..ccbe397 --- /dev/null +++ b/dist/models/V1CarriageCreateRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCreateRequest + */ +export interface V1CarriageCreateRequest { + /** + * `true`, если нужно создать отгрузку с прослеживаемыми товарами. + * + * @type {boolean} + * @memberof V1CarriageCreateRequest + */ + all_blr_traceable?: boolean; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1CarriageCreateRequest + */ + delivery_method_id?: number; + /** + * Дата отгрузки. По умолчанию — текущая дата. + * @type {string} + * @memberof V1CarriageCreateRequest + */ + departure_date?: string; +} +/** + * Check if a given object implements the V1CarriageCreateRequest interface. + */ +export declare function instanceOfV1CarriageCreateRequest(value: object): value is V1CarriageCreateRequest; +export declare function V1CarriageCreateRequestFromJSON(json: any): V1CarriageCreateRequest; +export declare function V1CarriageCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCreateRequest; +export declare function V1CarriageCreateRequestToJSON(value?: V1CarriageCreateRequest | null): any; diff --git a/dist/models/V1CarriageCreateRequest.js b/dist/models/V1CarriageCreateRequest.js new file mode 100644 index 0000000..0df681d --- /dev/null +++ b/dist/models/V1CarriageCreateRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageCreateRequest = instanceOfV1CarriageCreateRequest; +exports.V1CarriageCreateRequestFromJSON = V1CarriageCreateRequestFromJSON; +exports.V1CarriageCreateRequestFromJSONTyped = V1CarriageCreateRequestFromJSONTyped; +exports.V1CarriageCreateRequestToJSON = V1CarriageCreateRequestToJSON; +/** + * Check if a given object implements the V1CarriageCreateRequest interface. + */ +function instanceOfV1CarriageCreateRequest(value) { + return true; +} +function V1CarriageCreateRequestFromJSON(json) { + return V1CarriageCreateRequestFromJSONTyped(json, false); +} +function V1CarriageCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'all_blr_traceable': json['all_blr_traceable'] == null ? undefined : json['all_blr_traceable'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +function V1CarriageCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'all_blr_traceable': value['all_blr_traceable'], + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/models/V1CarriageCreateResponse.d.ts b/dist/models/V1CarriageCreateResponse.d.ts new file mode 100644 index 0000000..ccdddff --- /dev/null +++ b/dist/models/V1CarriageCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageCreateResponse + */ +export interface V1CarriageCreateResponse { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageCreateResponse + */ + carriage_id?: number; +} +/** + * Check if a given object implements the V1CarriageCreateResponse interface. + */ +export declare function instanceOfV1CarriageCreateResponse(value: object): value is V1CarriageCreateResponse; +export declare function V1CarriageCreateResponseFromJSON(json: any): V1CarriageCreateResponse; +export declare function V1CarriageCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageCreateResponse; +export declare function V1CarriageCreateResponseToJSON(value?: V1CarriageCreateResponse | null): any; diff --git a/dist/models/V1CarriageCreateResponse.js b/dist/models/V1CarriageCreateResponse.js new file mode 100644 index 0000000..a945ccb --- /dev/null +++ b/dist/models/V1CarriageCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageCreateResponse = instanceOfV1CarriageCreateResponse; +exports.V1CarriageCreateResponseFromJSON = V1CarriageCreateResponseFromJSON; +exports.V1CarriageCreateResponseFromJSONTyped = V1CarriageCreateResponseFromJSONTyped; +exports.V1CarriageCreateResponseToJSON = V1CarriageCreateResponseToJSON; +/** + * Check if a given object implements the V1CarriageCreateResponse interface. + */ +function instanceOfV1CarriageCreateResponse(value) { + return true; +} +function V1CarriageCreateResponseFromJSON(json) { + return V1CarriageCreateResponseFromJSONTyped(json, false); +} +function V1CarriageCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'] == null ? undefined : json['carriage_id'], + }; +} +function V1CarriageCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/V1CarriageDeliveryListRequest.d.ts b/dist/models/V1CarriageDeliveryListRequest.d.ts new file mode 100644 index 0000000..6156fd7 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageDeliveryListRequest + */ +export interface V1CarriageDeliveryListRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1CarriageDeliveryListRequest + */ + delivery_method_id?: number; + /** + * Дата отгрузки. По умолчанию — текущая дата. + * @type {string} + * @memberof V1CarriageDeliveryListRequest + */ + departure_date?: string; +} +/** + * Check if a given object implements the V1CarriageDeliveryListRequest interface. + */ +export declare function instanceOfV1CarriageDeliveryListRequest(value: object): value is V1CarriageDeliveryListRequest; +export declare function V1CarriageDeliveryListRequestFromJSON(json: any): V1CarriageDeliveryListRequest; +export declare function V1CarriageDeliveryListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListRequest; +export declare function V1CarriageDeliveryListRequestToJSON(value?: V1CarriageDeliveryListRequest | null): any; diff --git a/dist/models/V1CarriageDeliveryListRequest.js b/dist/models/V1CarriageDeliveryListRequest.js new file mode 100644 index 0000000..98df5a1 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageDeliveryListRequest = instanceOfV1CarriageDeliveryListRequest; +exports.V1CarriageDeliveryListRequestFromJSON = V1CarriageDeliveryListRequestFromJSON; +exports.V1CarriageDeliveryListRequestFromJSONTyped = V1CarriageDeliveryListRequestFromJSONTyped; +exports.V1CarriageDeliveryListRequestToJSON = V1CarriageDeliveryListRequestToJSON; +/** + * Check if a given object implements the V1CarriageDeliveryListRequest interface. + */ +function instanceOfV1CarriageDeliveryListRequest(value) { + return true; +} +function V1CarriageDeliveryListRequestFromJSON(json) { + return V1CarriageDeliveryListRequestFromJSONTyped(json, false); +} +function V1CarriageDeliveryListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + }; +} +function V1CarriageDeliveryListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'departure_date': value['departure_date'], + }; +} diff --git a/dist/models/V1CarriageDeliveryListResponse.d.ts b/dist/models/V1CarriageDeliveryListResponse.d.ts new file mode 100644 index 0000000..cb44079 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CarriageDeliveryListResponseResult } from './V1CarriageDeliveryListResponseResult'; +/** + * + * @export + * @interface V1CarriageDeliveryListResponse + */ +export interface V1CarriageDeliveryListResponse { + /** + * + * @type {Array} + * @memberof V1CarriageDeliveryListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1CarriageDeliveryListResponse interface. + */ +export declare function instanceOfV1CarriageDeliveryListResponse(value: object): value is V1CarriageDeliveryListResponse; +export declare function V1CarriageDeliveryListResponseFromJSON(json: any): V1CarriageDeliveryListResponse; +export declare function V1CarriageDeliveryListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListResponse; +export declare function V1CarriageDeliveryListResponseToJSON(value?: V1CarriageDeliveryListResponse | null): any; diff --git a/dist/models/V1CarriageDeliveryListResponse.js b/dist/models/V1CarriageDeliveryListResponse.js new file mode 100644 index 0000000..324b917 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageDeliveryListResponse = instanceOfV1CarriageDeliveryListResponse; +exports.V1CarriageDeliveryListResponseFromJSON = V1CarriageDeliveryListResponseFromJSON; +exports.V1CarriageDeliveryListResponseFromJSONTyped = V1CarriageDeliveryListResponseFromJSONTyped; +exports.V1CarriageDeliveryListResponseToJSON = V1CarriageDeliveryListResponseToJSON; +const V1CarriageDeliveryListResponseResult_1 = require("./V1CarriageDeliveryListResponseResult"); +/** + * Check if a given object implements the V1CarriageDeliveryListResponse interface. + */ +function instanceOfV1CarriageDeliveryListResponse(value) { + return true; +} +function V1CarriageDeliveryListResponseFromJSON(json) { + return V1CarriageDeliveryListResponseFromJSONTyped(json, false); +} +function V1CarriageDeliveryListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1CarriageDeliveryListResponseResult_1.V1CarriageDeliveryListResponseResultFromJSON)), + }; +} +function V1CarriageDeliveryListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1CarriageDeliveryListResponseResult_1.V1CarriageDeliveryListResponseResultToJSON)), + }; +} diff --git a/dist/models/V1CarriageDeliveryListResponseResult.d.ts b/dist/models/V1CarriageDeliveryListResponseResult.d.ts new file mode 100644 index 0000000..6cad9b2 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListResponseResult.d.ts @@ -0,0 +1,260 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CarriageDeliveryListResponseResultCarriages } from './V1CarriageDeliveryListResponseResultCarriages'; +import type { V1CarriageDeliveryListResponseResultErrors } from './V1CarriageDeliveryListResponseResultErrors'; +/** + * + * @export + * @interface V1CarriageDeliveryListResponseResult + */ +export interface V1CarriageDeliveryListResponseResult { + /** + * `true`, если доступен лист подбора. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + assembly_list_availability?: boolean; + /** + * `true`, если можно создать ещё одну перевозку. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + can_create_another_carriage?: boolean; + /** + * Количество отправлений в перевозке. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + carriage_postings_count?: number; + /** + * Количество квантов в перевозке. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + carriage_quantum_count?: number; + /** + * Список перевозок. + * @type {Array} + * @memberof V1CarriageDeliveryListResponseResult + */ + carriages?: Array; + /** + * Время начала сборки и часовой пояс времени склада. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + cut_in?: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + delivery_method_id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + delivery_method_name?: string; + /** + * Статус метода доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + delivery_method_status?: string; + /** + * Дата отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + departure_date?: string; + /** + * Адрес точки отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + dropoff_address?: string; + /** + * Статус возможности смены точки отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + dropoff_change_availability?: string; + /** + * Идентификатор точки отгрузки. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + dropoff_point_id?: number; + /** + * Способ отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + dropoff_point_type?: string; + /** + * Массив ошибок, которые возникли при обработке запроса. + * @type {Array} + * @memberof V1CarriageDeliveryListResponseResult + */ + errors?: Array; + /** + * `true`, если точка отгрузки изменилась. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + first_mile_changing?: boolean; + /** + * Тип первой мили. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + first_mile_type?: string; + /** + * Признак доверительной приёмки. `true`, если доверительная приёмка включена на складе. + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + has_entrusted_acceptance?: boolean; + /** + * Тип интеграции со службой доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + integration_type?: string; + /** + * `true`, если отгрузка с предсортировкой. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + is_presort?: boolean; + /** + * `true`, если склад работает по схеме rFBS. + * + * @type {boolean} + * @memberof V1CarriageDeliveryListResponseResult + */ + is_rfbs?: boolean; + /** + * Рекомендуемое местное время отгрузки в пункт приёма заказов. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + recommended_time_local?: string; + /** + * Смещение часового пояса рекомендуемого времени отгрузки от UTC-0 в минутах. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + recommended_time_utc_offset_in_minutes?: number; + /** + * Дата и время, до которых нужно собрать отправление. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + cutoff_at?: string; + /** + * Количество «обязательных» собранных отправлений. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + mandatory_packaged_count?: number; + /** + * Количество «обязательных» собранных квантов. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + mandatory_packaged_quantum_count?: number; + /** + * Количество отправлений, которые нужно собрать. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + mandatory_postings_count?: number; + /** + * Количество квантов, которые нужно собрать. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + mandatory_quantum_count?: number; + /** + * Количество собранных «необязательных» отправлений. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + optional_packaged_count?: number; + /** + * Количество отправлений, которые могут попасть в следующую перевозку. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + postings_for_another_carriage_count?: number; + /** + * Количество квантов, которые могут попасть в следующую перевозку. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + quantum_for_another_carriage_count?: number; + /** + * Начало таймслота в точке отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + timeslot_from?: string; + /** + * Окончание таймслота в точке отгрузки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + timeslot_to?: string; + /** + * Ссылка на иконку службы доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + tpl_provider_icon_url?: string; + /** + * Название службы доставки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + tpl_provider_name?: string; + /** + * Город склада. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + warehouse_city?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResult + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResult + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResult interface. + */ +export declare function instanceOfV1CarriageDeliveryListResponseResult(value: object): value is V1CarriageDeliveryListResponseResult; +export declare function V1CarriageDeliveryListResponseResultFromJSON(json: any): V1CarriageDeliveryListResponseResult; +export declare function V1CarriageDeliveryListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListResponseResult; +export declare function V1CarriageDeliveryListResponseResultToJSON(value?: V1CarriageDeliveryListResponseResult | null): any; diff --git a/dist/models/V1CarriageDeliveryListResponseResult.js b/dist/models/V1CarriageDeliveryListResponseResult.js new file mode 100644 index 0000000..f61b698 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListResponseResult.js @@ -0,0 +1,120 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageDeliveryListResponseResult = instanceOfV1CarriageDeliveryListResponseResult; +exports.V1CarriageDeliveryListResponseResultFromJSON = V1CarriageDeliveryListResponseResultFromJSON; +exports.V1CarriageDeliveryListResponseResultFromJSONTyped = V1CarriageDeliveryListResponseResultFromJSONTyped; +exports.V1CarriageDeliveryListResponseResultToJSON = V1CarriageDeliveryListResponseResultToJSON; +const V1CarriageDeliveryListResponseResultCarriages_1 = require("./V1CarriageDeliveryListResponseResultCarriages"); +const V1CarriageDeliveryListResponseResultErrors_1 = require("./V1CarriageDeliveryListResponseResultErrors"); +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResult interface. + */ +function instanceOfV1CarriageDeliveryListResponseResult(value) { + return true; +} +function V1CarriageDeliveryListResponseResultFromJSON(json) { + return V1CarriageDeliveryListResponseResultFromJSONTyped(json, false); +} +function V1CarriageDeliveryListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'assembly_list_availability': json['assembly_list_availability'] == null ? undefined : json['assembly_list_availability'], + 'can_create_another_carriage': json['can_create_another_carriage'] == null ? undefined : json['can_create_another_carriage'], + 'carriage_postings_count': json['carriage_postings_count'] == null ? undefined : json['carriage_postings_count'], + 'carriage_quantum_count': json['carriage_quantum_count'] == null ? undefined : json['carriage_quantum_count'], + 'carriages': json['carriages'] == null ? undefined : (json['carriages'].map(V1CarriageDeliveryListResponseResultCarriages_1.V1CarriageDeliveryListResponseResultCarriagesFromJSON)), + 'cut_in': json['cut_in'] == null ? undefined : json['cut_in'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'delivery_method_name': json['delivery_method_name'] == null ? undefined : json['delivery_method_name'], + 'delivery_method_status': json['delivery_method_status'] == null ? undefined : json['delivery_method_status'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + 'dropoff_address': json['dropoff_address'] == null ? undefined : json['dropoff_address'], + 'dropoff_change_availability': json['dropoff_change_availability'] == null ? undefined : json['dropoff_change_availability'], + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'dropoff_point_type': json['dropoff_point_type'] == null ? undefined : json['dropoff_point_type'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1CarriageDeliveryListResponseResultErrors_1.V1CarriageDeliveryListResponseResultErrorsFromJSON)), + 'first_mile_changing': json['first_mile_changing'] == null ? undefined : json['first_mile_changing'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'is_presort': json['is_presort'] == null ? undefined : json['is_presort'], + 'is_rfbs': json['is_rfbs'] == null ? undefined : json['is_rfbs'], + 'recommended_time_local': json['recommended_time_local'] == null ? undefined : json['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': json['recommended_time_utc_offset_in_minutes'] == null ? undefined : json['recommended_time_utc_offset_in_minutes'], + 'cutoff_at': json['cutoff_at'] == null ? undefined : json['cutoff_at'], + 'mandatory_packaged_count': json['mandatory_packaged_count'] == null ? undefined : json['mandatory_packaged_count'], + 'mandatory_packaged_quantum_count': json['mandatory_packaged_quantum_count'] == null ? undefined : json['mandatory_packaged_quantum_count'], + 'mandatory_postings_count': json['mandatory_postings_count'] == null ? undefined : json['mandatory_postings_count'], + 'mandatory_quantum_count': json['mandatory_quantum_count'] == null ? undefined : json['mandatory_quantum_count'], + 'optional_packaged_count': json['optional_packaged_count'] == null ? undefined : json['optional_packaged_count'], + 'postings_for_another_carriage_count': json['postings_for_another_carriage_count'] == null ? undefined : json['postings_for_another_carriage_count'], + 'quantum_for_another_carriage_count': json['quantum_for_another_carriage_count'] == null ? undefined : json['quantum_for_another_carriage_count'], + 'timeslot_from': json['timeslot_from'] == null ? undefined : json['timeslot_from'], + 'timeslot_to': json['timeslot_to'] == null ? undefined : json['timeslot_to'], + 'tpl_provider_icon_url': json['tpl_provider_icon_url'] == null ? undefined : json['tpl_provider_icon_url'], + 'tpl_provider_name': json['tpl_provider_name'] == null ? undefined : json['tpl_provider_name'], + 'warehouse_city': json['warehouse_city'] == null ? undefined : json['warehouse_city'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function V1CarriageDeliveryListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'assembly_list_availability': value['assembly_list_availability'], + 'can_create_another_carriage': value['can_create_another_carriage'], + 'carriage_postings_count': value['carriage_postings_count'], + 'carriage_quantum_count': value['carriage_quantum_count'], + 'carriages': value['carriages'] == null ? undefined : (value['carriages'].map(V1CarriageDeliveryListResponseResultCarriages_1.V1CarriageDeliveryListResponseResultCarriagesToJSON)), + 'cut_in': value['cut_in'], + 'delivery_method_id': value['delivery_method_id'], + 'delivery_method_name': value['delivery_method_name'], + 'delivery_method_status': value['delivery_method_status'], + 'departure_date': value['departure_date'], + 'dropoff_address': value['dropoff_address'], + 'dropoff_change_availability': value['dropoff_change_availability'], + 'dropoff_point_id': value['dropoff_point_id'], + 'dropoff_point_type': value['dropoff_point_type'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1CarriageDeliveryListResponseResultErrors_1.V1CarriageDeliveryListResponseResultErrorsToJSON)), + 'first_mile_changing': value['first_mile_changing'], + 'first_mile_type': value['first_mile_type'], + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'integration_type': value['integration_type'], + 'is_presort': value['is_presort'], + 'is_rfbs': value['is_rfbs'], + 'recommended_time_local': value['recommended_time_local'], + 'recommended_time_utc_offset_in_minutes': value['recommended_time_utc_offset_in_minutes'], + 'cutoff_at': value['cutoff_at'], + 'mandatory_packaged_count': value['mandatory_packaged_count'], + 'mandatory_packaged_quantum_count': value['mandatory_packaged_quantum_count'], + 'mandatory_postings_count': value['mandatory_postings_count'], + 'mandatory_quantum_count': value['mandatory_quantum_count'], + 'optional_packaged_count': value['optional_packaged_count'], + 'postings_for_another_carriage_count': value['postings_for_another_carriage_count'], + 'quantum_for_another_carriage_count': value['quantum_for_another_carriage_count'], + 'timeslot_from': value['timeslot_from'], + 'timeslot_to': value['timeslot_to'], + 'tpl_provider_icon_url': value['tpl_provider_icon_url'], + 'tpl_provider_name': value['tpl_provider_name'], + 'warehouse_city': value['warehouse_city'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/V1CarriageDeliveryListResponseResultCarriages.d.ts b/dist/models/V1CarriageDeliveryListResponseResultCarriages.d.ts new file mode 100644 index 0000000..6572b93 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListResponseResultCarriages.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageDeliveryListResponseResultCarriages + */ +export interface V1CarriageDeliveryListResponseResultCarriages { + /** + * Идентификатор перевозки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultCarriages + */ + id?: string; + /** + * Количество отправлений в перевозке. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResultCarriages + */ + postings_count?: number; + /** + * Количество квантов в перевозке. + * @type {number} + * @memberof V1CarriageDeliveryListResponseResultCarriages + */ + quantum_count?: number; + /** + * Статус перевозки для запрашиваемых метода и даты. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultCarriages + */ + status?: string; +} +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResultCarriages interface. + */ +export declare function instanceOfV1CarriageDeliveryListResponseResultCarriages(value: object): value is V1CarriageDeliveryListResponseResultCarriages; +export declare function V1CarriageDeliveryListResponseResultCarriagesFromJSON(json: any): V1CarriageDeliveryListResponseResultCarriages; +export declare function V1CarriageDeliveryListResponseResultCarriagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListResponseResultCarriages; +export declare function V1CarriageDeliveryListResponseResultCarriagesToJSON(value?: V1CarriageDeliveryListResponseResultCarriages | null): any; diff --git a/dist/models/V1CarriageDeliveryListResponseResultCarriages.js b/dist/models/V1CarriageDeliveryListResponseResultCarriages.js new file mode 100644 index 0000000..ef36d08 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListResponseResultCarriages.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageDeliveryListResponseResultCarriages = instanceOfV1CarriageDeliveryListResponseResultCarriages; +exports.V1CarriageDeliveryListResponseResultCarriagesFromJSON = V1CarriageDeliveryListResponseResultCarriagesFromJSON; +exports.V1CarriageDeliveryListResponseResultCarriagesFromJSONTyped = V1CarriageDeliveryListResponseResultCarriagesFromJSONTyped; +exports.V1CarriageDeliveryListResponseResultCarriagesToJSON = V1CarriageDeliveryListResponseResultCarriagesToJSON; +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResultCarriages interface. + */ +function instanceOfV1CarriageDeliveryListResponseResultCarriages(value) { + return true; +} +function V1CarriageDeliveryListResponseResultCarriagesFromJSON(json) { + return V1CarriageDeliveryListResponseResultCarriagesFromJSONTyped(json, false); +} +function V1CarriageDeliveryListResponseResultCarriagesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'postings_count': json['postings_count'] == null ? undefined : json['postings_count'], + 'quantum_count': json['quantum_count'] == null ? undefined : json['quantum_count'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V1CarriageDeliveryListResponseResultCarriagesToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'postings_count': value['postings_count'], + 'quantum_count': value['quantum_count'], + 'status': value['status'], + }; +} diff --git a/dist/models/V1CarriageDeliveryListResponseResultErrors.d.ts b/dist/models/V1CarriageDeliveryListResponseResultErrors.d.ts new file mode 100644 index 0000000..7f01957 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListResponseResultErrors.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageDeliveryListResponseResultErrors + */ +export interface V1CarriageDeliveryListResponseResultErrors { + /** + * Код ошибки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultErrors + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultErrors + */ + description?: string; + /** + * Статус ошибки. + * @type {string} + * @memberof V1CarriageDeliveryListResponseResultErrors + */ + status?: string; +} +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResultErrors interface. + */ +export declare function instanceOfV1CarriageDeliveryListResponseResultErrors(value: object): value is V1CarriageDeliveryListResponseResultErrors; +export declare function V1CarriageDeliveryListResponseResultErrorsFromJSON(json: any): V1CarriageDeliveryListResponseResultErrors; +export declare function V1CarriageDeliveryListResponseResultErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageDeliveryListResponseResultErrors; +export declare function V1CarriageDeliveryListResponseResultErrorsToJSON(value?: V1CarriageDeliveryListResponseResultErrors | null): any; diff --git a/dist/models/V1CarriageDeliveryListResponseResultErrors.js b/dist/models/V1CarriageDeliveryListResponseResultErrors.js new file mode 100644 index 0000000..85a5db5 --- /dev/null +++ b/dist/models/V1CarriageDeliveryListResponseResultErrors.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageDeliveryListResponseResultErrors = instanceOfV1CarriageDeliveryListResponseResultErrors; +exports.V1CarriageDeliveryListResponseResultErrorsFromJSON = V1CarriageDeliveryListResponseResultErrorsFromJSON; +exports.V1CarriageDeliveryListResponseResultErrorsFromJSONTyped = V1CarriageDeliveryListResponseResultErrorsFromJSONTyped; +exports.V1CarriageDeliveryListResponseResultErrorsToJSON = V1CarriageDeliveryListResponseResultErrorsToJSON; +/** + * Check if a given object implements the V1CarriageDeliveryListResponseResultErrors interface. + */ +function instanceOfV1CarriageDeliveryListResponseResultErrors(value) { + return true; +} +function V1CarriageDeliveryListResponseResultErrorsFromJSON(json) { + return V1CarriageDeliveryListResponseResultErrorsFromJSONTyped(json, false); +} +function V1CarriageDeliveryListResponseResultErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'description': json['description'] == null ? undefined : json['description'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V1CarriageDeliveryListResponseResultErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'description': value['description'], + 'status': value['status'], + }; +} diff --git a/dist/models/V1CarriageEttnStatusRequest.d.ts b/dist/models/V1CarriageEttnStatusRequest.d.ts new file mode 100644 index 0000000..a6948d4 --- /dev/null +++ b/dist/models/V1CarriageEttnStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageEttnStatusRequest + */ +export interface V1CarriageEttnStatusRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V1CarriageEttnStatusRequest + */ + carriage_id: number; +} +/** + * Check if a given object implements the V1CarriageEttnStatusRequest interface. + */ +export declare function instanceOfV1CarriageEttnStatusRequest(value: object): value is V1CarriageEttnStatusRequest; +export declare function V1CarriageEttnStatusRequestFromJSON(json: any): V1CarriageEttnStatusRequest; +export declare function V1CarriageEttnStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageEttnStatusRequest; +export declare function V1CarriageEttnStatusRequestToJSON(value?: V1CarriageEttnStatusRequest | null): any; diff --git a/dist/models/V1CarriageEttnStatusRequest.js b/dist/models/V1CarriageEttnStatusRequest.js new file mode 100644 index 0000000..2159dd2 --- /dev/null +++ b/dist/models/V1CarriageEttnStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CarriageEttnStatusRequest = instanceOfV1CarriageEttnStatusRequest; +exports.V1CarriageEttnStatusRequestFromJSON = V1CarriageEttnStatusRequestFromJSON; +exports.V1CarriageEttnStatusRequestFromJSONTyped = V1CarriageEttnStatusRequestFromJSONTyped; +exports.V1CarriageEttnStatusRequestToJSON = V1CarriageEttnStatusRequestToJSON; +/** + * Check if a given object implements the V1CarriageEttnStatusRequest interface. + */ +function instanceOfV1CarriageEttnStatusRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + return true; +} +function V1CarriageEttnStatusRequestFromJSON(json) { + return V1CarriageEttnStatusRequestFromJSONTyped(json, false); +} +function V1CarriageEttnStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + }; +} +function V1CarriageEttnStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + }; +} diff --git a/dist/models/V1CarriageEttnStatusResponse.d.ts b/dist/models/V1CarriageEttnStatusResponse.d.ts new file mode 100644 index 0000000..24ab9ef --- /dev/null +++ b/dist/models/V1CarriageEttnStatusResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CarriageEttnStatusResponse + */ +export interface V1CarriageEttnStatusResponse { + /** + * Ошибки проверки электронной ТТН на прослеживаемой отгрузке. + * @type {Array} + * @memberof V1CarriageEttnStatusResponse + */ + errors?: Array; + /** + * Статус проверки электронной ТТН на прослеживаемой отгрузке: + * - `NOT_UPLOADED` — не загружена; + * - `PROCESSING` — в процессе проверки; + * - `SUCCESS` — проверена; + * - `FAILED` — ошибка. + * + * @type {string} + * @memberof V1CarriageEttnStatusResponse + */ + status?: V1CarriageEttnStatusResponseStatusEnum; +} +/** + * @export + */ +export declare const V1CarriageEttnStatusResponseStatusEnum: { + readonly NOT_UPLOADED: "NOT_UPLOADED"; + readonly PROCESSING: "PROCESSING"; + readonly SUCCESS: "SUCCESS"; + readonly FAILED: "FAILED"; +}; +export type V1CarriageEttnStatusResponseStatusEnum = typeof V1CarriageEttnStatusResponseStatusEnum[keyof typeof V1CarriageEttnStatusResponseStatusEnum]; +/** + * Check if a given object implements the V1CarriageEttnStatusResponse interface. + */ +export declare function instanceOfV1CarriageEttnStatusResponse(value: object): value is V1CarriageEttnStatusResponse; +export declare function V1CarriageEttnStatusResponseFromJSON(json: any): V1CarriageEttnStatusResponse; +export declare function V1CarriageEttnStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CarriageEttnStatusResponse; +export declare function V1CarriageEttnStatusResponseToJSON(value?: V1CarriageEttnStatusResponse | null): any; diff --git a/dist/models/V1CarriageEttnStatusResponse.js b/dist/models/V1CarriageEttnStatusResponse.js new file mode 100644 index 0000000..5761b9a --- /dev/null +++ b/dist/models/V1CarriageEttnStatusResponse.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CarriageEttnStatusResponseStatusEnum = void 0; +exports.instanceOfV1CarriageEttnStatusResponse = instanceOfV1CarriageEttnStatusResponse; +exports.V1CarriageEttnStatusResponseFromJSON = V1CarriageEttnStatusResponseFromJSON; +exports.V1CarriageEttnStatusResponseFromJSONTyped = V1CarriageEttnStatusResponseFromJSONTyped; +exports.V1CarriageEttnStatusResponseToJSON = V1CarriageEttnStatusResponseToJSON; +/** + * @export + */ +exports.V1CarriageEttnStatusResponseStatusEnum = { + NOT_UPLOADED: 'NOT_UPLOADED', + PROCESSING: 'PROCESSING', + SUCCESS: 'SUCCESS', + FAILED: 'FAILED' +}; +/** + * Check if a given object implements the V1CarriageEttnStatusResponse interface. + */ +function instanceOfV1CarriageEttnStatusResponse(value) { + return true; +} +function V1CarriageEttnStatusResponseFromJSON(json) { + return V1CarriageEttnStatusResponseFromJSONTyped(json, false); +} +function V1CarriageEttnStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : json['errors'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V1CarriageEttnStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'], + 'status': value['status'], + }; +} diff --git a/dist/models/V1Certificate.d.ts b/dist/models/V1Certificate.d.ts new file mode 100644 index 0000000..32c9d02 --- /dev/null +++ b/dist/models/V1Certificate.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о сертификате. + * @export + * @interface V1Certificate + */ +export interface V1Certificate { + /** + * Идентификатор. + * @type {number} + * @memberof V1Certificate + */ + certificate_id?: number; + /** + * Номер. + * @type {string} + * @memberof V1Certificate + */ + certificate_number?: string; + /** + * Название. + * @type {string} + * @memberof V1Certificate + */ + certificate_name?: string; + /** + * Тип. + * @type {string} + * @memberof V1Certificate + */ + type_code?: string; + /** + * Статус. + * @type {string} + * @memberof V1Certificate + */ + status_code?: string; + /** + * Тип соответствия требованиям. + * @type {string} + * @memberof V1Certificate + */ + accordance_type_code?: string; + /** + * Причина отклонения сертификата. + * @type {string} + * @memberof V1Certificate + */ + rejection_reason_code?: string; + /** + * Комментарий модератора. + * @type {string} + * @memberof V1Certificate + */ + verification_comment?: string; + /** + * Дата создания. + * @type {string} + * @memberof V1Certificate + */ + issue_date?: string; + /** + * Дата окончания действия. + * @type {string} + * @memberof V1Certificate + */ + expire_date?: string; + /** + * Количество товаров, привязанных к сертификату. + * @type {number} + * @memberof V1Certificate + */ + products_count?: number; +} +/** + * Check if a given object implements the V1Certificate interface. + */ +export declare function instanceOfV1Certificate(value: object): value is V1Certificate; +export declare function V1CertificateFromJSON(json: any): V1Certificate; +export declare function V1CertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Certificate; +export declare function V1CertificateToJSON(value?: V1Certificate | null): any; diff --git a/dist/models/V1Certificate.js b/dist/models/V1Certificate.js new file mode 100644 index 0000000..a1a506c --- /dev/null +++ b/dist/models/V1Certificate.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1Certificate = instanceOfV1Certificate; +exports.V1CertificateFromJSON = V1CertificateFromJSON; +exports.V1CertificateFromJSONTyped = V1CertificateFromJSONTyped; +exports.V1CertificateToJSON = V1CertificateToJSON; +/** + * Check if a given object implements the V1Certificate interface. + */ +function instanceOfV1Certificate(value) { + return true; +} +function V1CertificateFromJSON(json) { + return V1CertificateFromJSONTyped(json, false); +} +function V1CertificateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'] == null ? undefined : json['certificate_id'], + 'certificate_number': json['certificate_number'] == null ? undefined : json['certificate_number'], + 'certificate_name': json['certificate_name'] == null ? undefined : json['certificate_name'], + 'type_code': json['type_code'] == null ? undefined : json['type_code'], + 'status_code': json['status_code'] == null ? undefined : json['status_code'], + 'accordance_type_code': json['accordance_type_code'] == null ? undefined : json['accordance_type_code'], + 'rejection_reason_code': json['rejection_reason_code'] == null ? undefined : json['rejection_reason_code'], + 'verification_comment': json['verification_comment'] == null ? undefined : json['verification_comment'], + 'issue_date': json['issue_date'] == null ? undefined : json['issue_date'], + 'expire_date': json['expire_date'] == null ? undefined : json['expire_date'], + 'products_count': json['products_count'] == null ? undefined : json['products_count'], + }; +} +function V1CertificateToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'certificate_number': value['certificate_number'], + 'certificate_name': value['certificate_name'], + 'type_code': value['type_code'], + 'status_code': value['status_code'], + 'accordance_type_code': value['accordance_type_code'], + 'rejection_reason_code': value['rejection_reason_code'], + 'verification_comment': value['verification_comment'], + 'issue_date': value['issue_date'], + 'expire_date': value['expire_date'], + 'products_count': value['products_count'], + }; +} diff --git a/dist/models/V1ClusterType.d.ts b/dist/models/V1ClusterType.d.ts new file mode 100644 index 0000000..5072141 --- /dev/null +++ b/dist/models/V1ClusterType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип кластера: + * - `CLUSTER_TYPE_OZON` — кластер в России, + * - `CLUSTER_TYPE_CIS` — кластер в СНГ. + * + * @export + */ +export declare const V1ClusterType: { + readonly OZON: "CLUSTER_TYPE_OZON"; + readonly CIS: "CLUSTER_TYPE_CIS"; +}; +export type V1ClusterType = typeof V1ClusterType[keyof typeof V1ClusterType]; +export declare function instanceOfV1ClusterType(value: any): boolean; +export declare function V1ClusterTypeFromJSON(json: any): V1ClusterType; +export declare function V1ClusterTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ClusterType; +export declare function V1ClusterTypeToJSON(value?: V1ClusterType | null): any; diff --git a/dist/models/V1ClusterType.js b/dist/models/V1ClusterType.js new file mode 100644 index 0000000..175b627 --- /dev/null +++ b/dist/models/V1ClusterType.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1ClusterType = void 0; +exports.instanceOfV1ClusterType = instanceOfV1ClusterType; +exports.V1ClusterTypeFromJSON = V1ClusterTypeFromJSON; +exports.V1ClusterTypeFromJSONTyped = V1ClusterTypeFromJSONTyped; +exports.V1ClusterTypeToJSON = V1ClusterTypeToJSON; +/** + * Тип кластера: + * - `CLUSTER_TYPE_OZON` — кластер в России, + * - `CLUSTER_TYPE_CIS` — кластер в СНГ. + * + * @export + */ +exports.V1ClusterType = { + OZON: 'CLUSTER_TYPE_OZON', + CIS: 'CLUSTER_TYPE_CIS' +}; +function instanceOfV1ClusterType(value) { + for (const key in exports.V1ClusterType) { + if (Object.prototype.hasOwnProperty.call(exports.V1ClusterType, key)) { + if (exports.V1ClusterType[key] === value) { + return true; + } + } + } + return false; +} +function V1ClusterTypeFromJSON(json) { + return V1ClusterTypeFromJSONTyped(json, false); +} +function V1ClusterTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1ClusterTypeToJSON(value) { + return value; +} diff --git a/dist/models/V1CommentCreateRequest.d.ts b/dist/models/V1CommentCreateRequest.d.ts new file mode 100644 index 0000000..196ccc7 --- /dev/null +++ b/dist/models/V1CommentCreateRequest.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CommentCreateRequest + */ +export interface V1CommentCreateRequest { + /** + * Обновление статуса у отзыва: + * - `true` — статус изменится на `Processed`. + * - `false` — статус не изменится. + * + * @type {boolean} + * @memberof V1CommentCreateRequest + */ + mark_review_as_processed?: boolean; + /** + * Идентификатор родительского комментария, на который вы отвечаете. + * @type {string} + * @memberof V1CommentCreateRequest + */ + parent_comment_id?: string; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof V1CommentCreateRequest + */ + review_id: string; + /** + * Текст комментария. + * @type {string} + * @memberof V1CommentCreateRequest + */ + text: string; +} +/** + * Check if a given object implements the V1CommentCreateRequest interface. + */ +export declare function instanceOfV1CommentCreateRequest(value: object): value is V1CommentCreateRequest; +export declare function V1CommentCreateRequestFromJSON(json: any): V1CommentCreateRequest; +export declare function V1CommentCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentCreateRequest; +export declare function V1CommentCreateRequestToJSON(value?: V1CommentCreateRequest | null): any; diff --git a/dist/models/V1CommentCreateRequest.js b/dist/models/V1CommentCreateRequest.js new file mode 100644 index 0000000..b04e7f2 --- /dev/null +++ b/dist/models/V1CommentCreateRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CommentCreateRequest = instanceOfV1CommentCreateRequest; +exports.V1CommentCreateRequestFromJSON = V1CommentCreateRequestFromJSON; +exports.V1CommentCreateRequestFromJSONTyped = V1CommentCreateRequestFromJSONTyped; +exports.V1CommentCreateRequestToJSON = V1CommentCreateRequestToJSON; +/** + * Check if a given object implements the V1CommentCreateRequest interface. + */ +function instanceOfV1CommentCreateRequest(value) { + if (!('review_id' in value) || value['review_id'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + return true; +} +function V1CommentCreateRequestFromJSON(json) { + return V1CommentCreateRequestFromJSONTyped(json, false); +} +function V1CommentCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mark_review_as_processed': json['mark_review_as_processed'] == null ? undefined : json['mark_review_as_processed'], + 'parent_comment_id': json['parent_comment_id'] == null ? undefined : json['parent_comment_id'], + 'review_id': json['review_id'], + 'text': json['text'], + }; +} +function V1CommentCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'mark_review_as_processed': value['mark_review_as_processed'], + 'parent_comment_id': value['parent_comment_id'], + 'review_id': value['review_id'], + 'text': value['text'], + }; +} diff --git a/dist/models/V1CommentCreateResponse.d.ts b/dist/models/V1CommentCreateResponse.d.ts new file mode 100644 index 0000000..7595c6a --- /dev/null +++ b/dist/models/V1CommentCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CommentCreateResponse + */ +export interface V1CommentCreateResponse { + /** + * Идентификатор комментария. + * @type {string} + * @memberof V1CommentCreateResponse + */ + comment_id?: string; +} +/** + * Check if a given object implements the V1CommentCreateResponse interface. + */ +export declare function instanceOfV1CommentCreateResponse(value: object): value is V1CommentCreateResponse; +export declare function V1CommentCreateResponseFromJSON(json: any): V1CommentCreateResponse; +export declare function V1CommentCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentCreateResponse; +export declare function V1CommentCreateResponseToJSON(value?: V1CommentCreateResponse | null): any; diff --git a/dist/models/V1CommentCreateResponse.js b/dist/models/V1CommentCreateResponse.js new file mode 100644 index 0000000..816f3a0 --- /dev/null +++ b/dist/models/V1CommentCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CommentCreateResponse = instanceOfV1CommentCreateResponse; +exports.V1CommentCreateResponseFromJSON = V1CommentCreateResponseFromJSON; +exports.V1CommentCreateResponseFromJSONTyped = V1CommentCreateResponseFromJSONTyped; +exports.V1CommentCreateResponseToJSON = V1CommentCreateResponseToJSON; +/** + * Check if a given object implements the V1CommentCreateResponse interface. + */ +function instanceOfV1CommentCreateResponse(value) { + return true; +} +function V1CommentCreateResponseFromJSON(json) { + return V1CommentCreateResponseFromJSONTyped(json, false); +} +function V1CommentCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment_id': json['comment_id'] == null ? undefined : json['comment_id'], + }; +} +function V1CommentCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment_id': value['comment_id'], + }; +} diff --git a/dist/models/V1CommentDeleteRequest.d.ts b/dist/models/V1CommentDeleteRequest.d.ts new file mode 100644 index 0000000..e83bbce --- /dev/null +++ b/dist/models/V1CommentDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CommentDeleteRequest + */ +export interface V1CommentDeleteRequest { + /** + * Идентификатор комментария. + * @type {string} + * @memberof V1CommentDeleteRequest + */ + comment_id: string; +} +/** + * Check if a given object implements the V1CommentDeleteRequest interface. + */ +export declare function instanceOfV1CommentDeleteRequest(value: object): value is V1CommentDeleteRequest; +export declare function V1CommentDeleteRequestFromJSON(json: any): V1CommentDeleteRequest; +export declare function V1CommentDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentDeleteRequest; +export declare function V1CommentDeleteRequestToJSON(value?: V1CommentDeleteRequest | null): any; diff --git a/dist/models/V1CommentDeleteRequest.js b/dist/models/V1CommentDeleteRequest.js new file mode 100644 index 0000000..8028314 --- /dev/null +++ b/dist/models/V1CommentDeleteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CommentDeleteRequest = instanceOfV1CommentDeleteRequest; +exports.V1CommentDeleteRequestFromJSON = V1CommentDeleteRequestFromJSON; +exports.V1CommentDeleteRequestFromJSONTyped = V1CommentDeleteRequestFromJSONTyped; +exports.V1CommentDeleteRequestToJSON = V1CommentDeleteRequestToJSON; +/** + * Check if a given object implements the V1CommentDeleteRequest interface. + */ +function instanceOfV1CommentDeleteRequest(value) { + if (!('comment_id' in value) || value['comment_id'] === undefined) + return false; + return true; +} +function V1CommentDeleteRequestFromJSON(json) { + return V1CommentDeleteRequestFromJSONTyped(json, false); +} +function V1CommentDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment_id': json['comment_id'], + }; +} +function V1CommentDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment_id': value['comment_id'], + }; +} diff --git a/dist/models/V1CommentListRequest.d.ts b/dist/models/V1CommentListRequest.d.ts new file mode 100644 index 0000000..beb2c4f --- /dev/null +++ b/dist/models/V1CommentListRequest.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewV1CommentListRequestFilter } from './ReviewV1CommentListRequestFilter'; +import type { V1CommentSort } from './V1CommentSort'; +/** + * + * @export + * @interface V1CommentListRequest + */ +export interface V1CommentListRequest { + /** + * + * @type {ReviewV1CommentListRequestFilter} + * @memberof V1CommentListRequest + */ + filter?: ReviewV1CommentListRequestFilter; + /** + * Ограничение значений в ответе. + * Минимум — 20. Максимум — 100. + * + * @type {number} + * @memberof V1CommentListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено с начала списка в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof V1CommentListRequest + */ + offset?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof V1CommentListRequest + */ + review_id?: string; + /** + * + * @type {V1CommentSort} + * @memberof V1CommentListRequest + */ + sort_dir?: V1CommentSort; +} +/** + * Check if a given object implements the V1CommentListRequest interface. + */ +export declare function instanceOfV1CommentListRequest(value: object): value is V1CommentListRequest; +export declare function V1CommentListRequestFromJSON(json: any): V1CommentListRequest; +export declare function V1CommentListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentListRequest; +export declare function V1CommentListRequestToJSON(value?: V1CommentListRequest | null): any; diff --git a/dist/models/V1CommentListRequest.js b/dist/models/V1CommentListRequest.js new file mode 100644 index 0000000..80a5e0a --- /dev/null +++ b/dist/models/V1CommentListRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CommentListRequest = instanceOfV1CommentListRequest; +exports.V1CommentListRequestFromJSON = V1CommentListRequestFromJSON; +exports.V1CommentListRequestFromJSONTyped = V1CommentListRequestFromJSONTyped; +exports.V1CommentListRequestToJSON = V1CommentListRequestToJSON; +const ReviewV1CommentListRequestFilter_1 = require("./ReviewV1CommentListRequestFilter"); +const V1CommentSort_1 = require("./V1CommentSort"); +/** + * Check if a given object implements the V1CommentListRequest interface. + */ +function instanceOfV1CommentListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1CommentListRequestFromJSON(json) { + return V1CommentListRequestFromJSONTyped(json, false); +} +function V1CommentListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, ReviewV1CommentListRequestFilter_1.ReviewV1CommentListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'review_id': json['review_id'] == null ? undefined : json['review_id'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, V1CommentSort_1.V1CommentSortFromJSON)(json['sort_dir']), + }; +} +function V1CommentListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, ReviewV1CommentListRequestFilter_1.ReviewV1CommentListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'review_id': value['review_id'], + 'sort_dir': (0, V1CommentSort_1.V1CommentSortToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/V1CommentListResponse.d.ts b/dist/models/V1CommentListResponse.d.ts new file mode 100644 index 0000000..5d906f3 --- /dev/null +++ b/dist/models/V1CommentListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CommentListResponseComment } from './CommentListResponseComment'; +/** + * + * @export + * @interface V1CommentListResponse + */ +export interface V1CommentListResponse { + /** + * Информация о комментарии. + * @type {Array} + * @memberof V1CommentListResponse + */ + comments?: Array; + /** + * Количество элементов в выдаче. + * @type {number} + * @memberof V1CommentListResponse + */ + offset?: number; +} +/** + * Check if a given object implements the V1CommentListResponse interface. + */ +export declare function instanceOfV1CommentListResponse(value: object): value is V1CommentListResponse; +export declare function V1CommentListResponseFromJSON(json: any): V1CommentListResponse; +export declare function V1CommentListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentListResponse; +export declare function V1CommentListResponseToJSON(value?: V1CommentListResponse | null): any; diff --git a/dist/models/V1CommentListResponse.js b/dist/models/V1CommentListResponse.js new file mode 100644 index 0000000..328acf1 --- /dev/null +++ b/dist/models/V1CommentListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CommentListResponse = instanceOfV1CommentListResponse; +exports.V1CommentListResponseFromJSON = V1CommentListResponseFromJSON; +exports.V1CommentListResponseFromJSONTyped = V1CommentListResponseFromJSONTyped; +exports.V1CommentListResponseToJSON = V1CommentListResponseToJSON; +const CommentListResponseComment_1 = require("./CommentListResponseComment"); +/** + * Check if a given object implements the V1CommentListResponse interface. + */ +function instanceOfV1CommentListResponse(value) { + return true; +} +function V1CommentListResponseFromJSON(json) { + return V1CommentListResponseFromJSONTyped(json, false); +} +function V1CommentListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments': json['comments'] == null ? undefined : (json['comments'].map(CommentListResponseComment_1.CommentListResponseCommentFromJSON)), + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function V1CommentListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments': value['comments'] == null ? undefined : (value['comments'].map(CommentListResponseComment_1.CommentListResponseCommentToJSON)), + 'offset': value['offset'], + }; +} diff --git a/dist/models/V1CommentSort.d.ts b/dist/models/V1CommentSort.d.ts new file mode 100644 index 0000000..ebca5ca --- /dev/null +++ b/dist/models/V1CommentSort.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +export declare const V1CommentSort: { + readonly ASC: "ASC"; + readonly DESC: "DESC"; +}; +export type V1CommentSort = typeof V1CommentSort[keyof typeof V1CommentSort]; +export declare function instanceOfV1CommentSort(value: any): boolean; +export declare function V1CommentSortFromJSON(json: any): V1CommentSort; +export declare function V1CommentSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CommentSort; +export declare function V1CommentSortToJSON(value?: V1CommentSort | null): any; diff --git a/dist/models/V1CommentSort.js b/dist/models/V1CommentSort.js new file mode 100644 index 0000000..327f5aa --- /dev/null +++ b/dist/models/V1CommentSort.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CommentSort = void 0; +exports.instanceOfV1CommentSort = instanceOfV1CommentSort; +exports.V1CommentSortFromJSON = V1CommentSortFromJSON; +exports.V1CommentSortFromJSONTyped = V1CommentSortFromJSONTyped; +exports.V1CommentSortToJSON = V1CommentSortToJSON; +/** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @export + */ +exports.V1CommentSort = { + ASC: 'ASC', + DESC: 'DESC' +}; +function instanceOfV1CommentSort(value) { + for (const key in exports.V1CommentSort) { + if (Object.prototype.hasOwnProperty.call(exports.V1CommentSort, key)) { + if (exports.V1CommentSort[key] === value) { + return true; + } + } + } + return false; +} +function V1CommentSortFromJSON(json) { + return V1CommentSortFromJSONTyped(json, false); +} +function V1CommentSortFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CommentSortToJSON(value) { + return value; +} diff --git a/dist/models/V1Competitor.d.ts b/dist/models/V1Competitor.d.ts new file mode 100644 index 0000000..0c95af2 --- /dev/null +++ b/dist/models/V1Competitor.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1Competitor + */ +export interface V1Competitor { + /** + * Коэффициент, на который будет умножаться минимальная цена среди конкурентов. Допустимый диапазон — от `0.5` до `1.2`. + * @type {number} + * @memberof V1Competitor + */ + coefficient: number; + /** + * Идентификатор конкурента. + * @type {number} + * @memberof V1Competitor + */ + competitor_id: number; +} +/** + * Check if a given object implements the V1Competitor interface. + */ +export declare function instanceOfV1Competitor(value: object): value is V1Competitor; +export declare function V1CompetitorFromJSON(json: any): V1Competitor; +export declare function V1CompetitorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Competitor; +export declare function V1CompetitorToJSON(value?: V1Competitor | null): any; diff --git a/dist/models/V1Competitor.js b/dist/models/V1Competitor.js new file mode 100644 index 0000000..bd66a0c --- /dev/null +++ b/dist/models/V1Competitor.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1Competitor = instanceOfV1Competitor; +exports.V1CompetitorFromJSON = V1CompetitorFromJSON; +exports.V1CompetitorFromJSONTyped = V1CompetitorFromJSONTyped; +exports.V1CompetitorToJSON = V1CompetitorToJSON; +/** + * Check if a given object implements the V1Competitor interface. + */ +function instanceOfV1Competitor(value) { + if (!('coefficient' in value) || value['coefficient'] === undefined) + return false; + if (!('competitor_id' in value) || value['competitor_id'] === undefined) + return false; + return true; +} +function V1CompetitorFromJSON(json) { + return V1CompetitorFromJSONTyped(json, false); +} +function V1CompetitorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coefficient': json['coefficient'], + 'competitor_id': json['competitor_id'], + }; +} +function V1CompetitorToJSON(value) { + if (value == null) { + return value; + } + return { + 'coefficient': value['coefficient'], + 'competitor_id': value['competitor_id'], + }; +} diff --git a/dist/models/V1CreateDocumentB2BSalesJSONReportRequest.d.ts b/dist/models/V1CreateDocumentB2BSalesJSONReportRequest.d.ts new file mode 100644 index 0000000..31e2232 --- /dev/null +++ b/dist/models/V1CreateDocumentB2BSalesJSONReportRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateDocumentB2BSalesJSONReportRequest + */ +export interface V1CreateDocumentB2BSalesJSONReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. Отчёт доступен до января 2019 включительно. + * @type {string} + * @memberof V1CreateDocumentB2BSalesJSONReportRequest + */ + date: string; +} +/** + * Check if a given object implements the V1CreateDocumentB2BSalesJSONReportRequest interface. + */ +export declare function instanceOfV1CreateDocumentB2BSalesJSONReportRequest(value: object): value is V1CreateDocumentB2BSalesJSONReportRequest; +export declare function V1CreateDocumentB2BSalesJSONReportRequestFromJSON(json: any): V1CreateDocumentB2BSalesJSONReportRequest; +export declare function V1CreateDocumentB2BSalesJSONReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateDocumentB2BSalesJSONReportRequest; +export declare function V1CreateDocumentB2BSalesJSONReportRequestToJSON(value?: V1CreateDocumentB2BSalesJSONReportRequest | null): any; diff --git a/dist/models/V1CreateDocumentB2BSalesJSONReportRequest.js b/dist/models/V1CreateDocumentB2BSalesJSONReportRequest.js new file mode 100644 index 0000000..43cb0b5 --- /dev/null +++ b/dist/models/V1CreateDocumentB2BSalesJSONReportRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateDocumentB2BSalesJSONReportRequest = instanceOfV1CreateDocumentB2BSalesJSONReportRequest; +exports.V1CreateDocumentB2BSalesJSONReportRequestFromJSON = V1CreateDocumentB2BSalesJSONReportRequestFromJSON; +exports.V1CreateDocumentB2BSalesJSONReportRequestFromJSONTyped = V1CreateDocumentB2BSalesJSONReportRequestFromJSONTyped; +exports.V1CreateDocumentB2BSalesJSONReportRequestToJSON = V1CreateDocumentB2BSalesJSONReportRequestToJSON; +/** + * Check if a given object implements the V1CreateDocumentB2BSalesJSONReportRequest interface. + */ +function instanceOfV1CreateDocumentB2BSalesJSONReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +function V1CreateDocumentB2BSalesJSONReportRequestFromJSON(json) { + return V1CreateDocumentB2BSalesJSONReportRequestFromJSONTyped(json, false); +} +function V1CreateDocumentB2BSalesJSONReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + }; +} +function V1CreateDocumentB2BSalesJSONReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + }; +} diff --git a/dist/models/V1CreateDocumentB2BSalesJSONReportResponse.d.ts b/dist/models/V1CreateDocumentB2BSalesJSONReportResponse.d.ts new file mode 100644 index 0000000..61bb4be --- /dev/null +++ b/dist/models/V1CreateDocumentB2BSalesJSONReportResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice } from './CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice'; +import type { CreateDocumentB2BSalesJSONReportResponseSellerInfo } from './CreateDocumentB2BSalesJSONReportResponseSellerInfo'; +/** + * + * @export + * @interface V1CreateDocumentB2BSalesJSONReportResponse + */ +export interface V1CreateDocumentB2BSalesJSONReportResponse { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1CreateDocumentB2BSalesJSONReportResponse + */ + date_from?: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1CreateDocumentB2BSalesJSONReportResponse + */ + date_to?: string; + /** + * Список счетов-фактур. + * @type {Array} + * @memberof V1CreateDocumentB2BSalesJSONReportResponse + */ + invoices?: Array; + /** + * + * @type {CreateDocumentB2BSalesJSONReportResponseSellerInfo} + * @memberof V1CreateDocumentB2BSalesJSONReportResponse + */ + seller_info?: CreateDocumentB2BSalesJSONReportResponseSellerInfo; +} +/** + * Check if a given object implements the V1CreateDocumentB2BSalesJSONReportResponse interface. + */ +export declare function instanceOfV1CreateDocumentB2BSalesJSONReportResponse(value: object): value is V1CreateDocumentB2BSalesJSONReportResponse; +export declare function V1CreateDocumentB2BSalesJSONReportResponseFromJSON(json: any): V1CreateDocumentB2BSalesJSONReportResponse; +export declare function V1CreateDocumentB2BSalesJSONReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateDocumentB2BSalesJSONReportResponse; +export declare function V1CreateDocumentB2BSalesJSONReportResponseToJSON(value?: V1CreateDocumentB2BSalesJSONReportResponse | null): any; diff --git a/dist/models/V1CreateDocumentB2BSalesJSONReportResponse.js b/dist/models/V1CreateDocumentB2BSalesJSONReportResponse.js new file mode 100644 index 0000000..0741e24 --- /dev/null +++ b/dist/models/V1CreateDocumentB2BSalesJSONReportResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateDocumentB2BSalesJSONReportResponse = instanceOfV1CreateDocumentB2BSalesJSONReportResponse; +exports.V1CreateDocumentB2BSalesJSONReportResponseFromJSON = V1CreateDocumentB2BSalesJSONReportResponseFromJSON; +exports.V1CreateDocumentB2BSalesJSONReportResponseFromJSONTyped = V1CreateDocumentB2BSalesJSONReportResponseFromJSONTyped; +exports.V1CreateDocumentB2BSalesJSONReportResponseToJSON = V1CreateDocumentB2BSalesJSONReportResponseToJSON; +const CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice_1 = require("./CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice"); +const CreateDocumentB2BSalesJSONReportResponseSellerInfo_1 = require("./CreateDocumentB2BSalesJSONReportResponseSellerInfo"); +/** + * Check if a given object implements the V1CreateDocumentB2BSalesJSONReportResponse interface. + */ +function instanceOfV1CreateDocumentB2BSalesJSONReportResponse(value) { + return true; +} +function V1CreateDocumentB2BSalesJSONReportResponseFromJSON(json) { + return V1CreateDocumentB2BSalesJSONReportResponseFromJSONTyped(json, false); +} +function V1CreateDocumentB2BSalesJSONReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'invoices': json['invoices'] == null ? undefined : (json['invoices'].map(CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice_1.CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceFromJSON)), + 'seller_info': json['seller_info'] == null ? undefined : (0, CreateDocumentB2BSalesJSONReportResponseSellerInfo_1.CreateDocumentB2BSalesJSONReportResponseSellerInfoFromJSON)(json['seller_info']), + }; +} +function V1CreateDocumentB2BSalesJSONReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'invoices': value['invoices'] == null ? undefined : (value['invoices'].map(CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice_1.CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoiceToJSON)), + 'seller_info': (0, CreateDocumentB2BSalesJSONReportResponseSellerInfo_1.CreateDocumentB2BSalesJSONReportResponseSellerInfoToJSON)(value['seller_info']), + }; +} diff --git a/dist/models/V1CreateDocumentB2BSalesReportRequest.d.ts b/dist/models/V1CreateDocumentB2BSalesReportRequest.d.ts new file mode 100644 index 0000000..66c06da --- /dev/null +++ b/dist/models/V1CreateDocumentB2BSalesReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateDocumentB2BSalesReportRequest + */ +export interface V1CreateDocumentB2BSalesReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. + * @type {string} + * @memberof V1CreateDocumentB2BSalesReportRequest + */ + date: string; + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1CreateDocumentB2BSalesReportRequest + */ + language?: string; +} +/** + * Check if a given object implements the V1CreateDocumentB2BSalesReportRequest interface. + */ +export declare function instanceOfV1CreateDocumentB2BSalesReportRequest(value: object): value is V1CreateDocumentB2BSalesReportRequest; +export declare function V1CreateDocumentB2BSalesReportRequestFromJSON(json: any): V1CreateDocumentB2BSalesReportRequest; +export declare function V1CreateDocumentB2BSalesReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateDocumentB2BSalesReportRequest; +export declare function V1CreateDocumentB2BSalesReportRequestToJSON(value?: V1CreateDocumentB2BSalesReportRequest | null): any; diff --git a/dist/models/V1CreateDocumentB2BSalesReportRequest.js b/dist/models/V1CreateDocumentB2BSalesReportRequest.js new file mode 100644 index 0000000..d39175e --- /dev/null +++ b/dist/models/V1CreateDocumentB2BSalesReportRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateDocumentB2BSalesReportRequest = instanceOfV1CreateDocumentB2BSalesReportRequest; +exports.V1CreateDocumentB2BSalesReportRequestFromJSON = V1CreateDocumentB2BSalesReportRequestFromJSON; +exports.V1CreateDocumentB2BSalesReportRequestFromJSONTyped = V1CreateDocumentB2BSalesReportRequestFromJSONTyped; +exports.V1CreateDocumentB2BSalesReportRequestToJSON = V1CreateDocumentB2BSalesReportRequestToJSON; +/** + * Check if a given object implements the V1CreateDocumentB2BSalesReportRequest interface. + */ +function instanceOfV1CreateDocumentB2BSalesReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +function V1CreateDocumentB2BSalesReportRequestFromJSON(json) { + return V1CreateDocumentB2BSalesReportRequestFromJSONTyped(json, false); +} +function V1CreateDocumentB2BSalesReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +function V1CreateDocumentB2BSalesReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'language': value['language'], + }; +} diff --git a/dist/models/V1CreateLabelBatchRequest.d.ts b/dist/models/V1CreateLabelBatchRequest.d.ts new file mode 100644 index 0000000..f9c8ac8 --- /dev/null +++ b/dist/models/V1CreateLabelBatchRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateLabelBatchRequest + */ +export interface V1CreateLabelBatchRequest { + /** + * Номера отправлений, для которых нужны этикетки. + * @type {Array} + * @memberof V1CreateLabelBatchRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the V1CreateLabelBatchRequest interface. + */ +export declare function instanceOfV1CreateLabelBatchRequest(value: object): value is V1CreateLabelBatchRequest; +export declare function V1CreateLabelBatchRequestFromJSON(json: any): V1CreateLabelBatchRequest; +export declare function V1CreateLabelBatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateLabelBatchRequest; +export declare function V1CreateLabelBatchRequestToJSON(value?: V1CreateLabelBatchRequest | null): any; diff --git a/dist/models/V1CreateLabelBatchRequest.js b/dist/models/V1CreateLabelBatchRequest.js new file mode 100644 index 0000000..f19b1bd --- /dev/null +++ b/dist/models/V1CreateLabelBatchRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateLabelBatchRequest = instanceOfV1CreateLabelBatchRequest; +exports.V1CreateLabelBatchRequestFromJSON = V1CreateLabelBatchRequestFromJSON; +exports.V1CreateLabelBatchRequestFromJSONTyped = V1CreateLabelBatchRequestFromJSONTyped; +exports.V1CreateLabelBatchRequestToJSON = V1CreateLabelBatchRequestToJSON; +/** + * Check if a given object implements the V1CreateLabelBatchRequest interface. + */ +function instanceOfV1CreateLabelBatchRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1CreateLabelBatchRequestFromJSON(json) { + return V1CreateLabelBatchRequestFromJSONTyped(json, false); +} +function V1CreateLabelBatchRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1CreateLabelBatchRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1CreateLabelBatchResponse.d.ts b/dist/models/V1CreateLabelBatchResponse.d.ts new file mode 100644 index 0000000..3d4b78f --- /dev/null +++ b/dist/models/V1CreateLabelBatchResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CreateLabelBatchResponseResult } from './V1CreateLabelBatchResponseResult'; +/** + * + * @export + * @interface V1CreateLabelBatchResponse + */ +export interface V1CreateLabelBatchResponse { + /** + * + * @type {V1CreateLabelBatchResponseResult} + * @memberof V1CreateLabelBatchResponse + */ + result?: V1CreateLabelBatchResponseResult; +} +/** + * Check if a given object implements the V1CreateLabelBatchResponse interface. + */ +export declare function instanceOfV1CreateLabelBatchResponse(value: object): value is V1CreateLabelBatchResponse; +export declare function V1CreateLabelBatchResponseFromJSON(json: any): V1CreateLabelBatchResponse; +export declare function V1CreateLabelBatchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateLabelBatchResponse; +export declare function V1CreateLabelBatchResponseToJSON(value?: V1CreateLabelBatchResponse | null): any; diff --git a/dist/models/V1CreateLabelBatchResponse.js b/dist/models/V1CreateLabelBatchResponse.js new file mode 100644 index 0000000..f621e83 --- /dev/null +++ b/dist/models/V1CreateLabelBatchResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateLabelBatchResponse = instanceOfV1CreateLabelBatchResponse; +exports.V1CreateLabelBatchResponseFromJSON = V1CreateLabelBatchResponseFromJSON; +exports.V1CreateLabelBatchResponseFromJSONTyped = V1CreateLabelBatchResponseFromJSONTyped; +exports.V1CreateLabelBatchResponseToJSON = V1CreateLabelBatchResponseToJSON; +const V1CreateLabelBatchResponseResult_1 = require("./V1CreateLabelBatchResponseResult"); +/** + * Check if a given object implements the V1CreateLabelBatchResponse interface. + */ +function instanceOfV1CreateLabelBatchResponse(value) { + return true; +} +function V1CreateLabelBatchResponseFromJSON(json) { + return V1CreateLabelBatchResponseFromJSONTyped(json, false); +} +function V1CreateLabelBatchResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1CreateLabelBatchResponseResult_1.V1CreateLabelBatchResponseResultFromJSON)(json['result']), + }; +} +function V1CreateLabelBatchResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1CreateLabelBatchResponseResult_1.V1CreateLabelBatchResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1CreateLabelBatchResponseResult.d.ts b/dist/models/V1CreateLabelBatchResponseResult.d.ts new file mode 100644 index 0000000..d906cd8 --- /dev/null +++ b/dist/models/V1CreateLabelBatchResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface V1CreateLabelBatchResponseResult + */ +export interface V1CreateLabelBatchResponseResult { + /** + * Идентификатор задания на формирование этикеток. + * @type {number} + * @memberof V1CreateLabelBatchResponseResult + */ + task_id?: number; +} +/** + * Check if a given object implements the V1CreateLabelBatchResponseResult interface. + */ +export declare function instanceOfV1CreateLabelBatchResponseResult(value: object): value is V1CreateLabelBatchResponseResult; +export declare function V1CreateLabelBatchResponseResultFromJSON(json: any): V1CreateLabelBatchResponseResult; +export declare function V1CreateLabelBatchResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateLabelBatchResponseResult; +export declare function V1CreateLabelBatchResponseResultToJSON(value?: V1CreateLabelBatchResponseResult | null): any; diff --git a/dist/models/V1CreateLabelBatchResponseResult.js b/dist/models/V1CreateLabelBatchResponseResult.js new file mode 100644 index 0000000..2307997 --- /dev/null +++ b/dist/models/V1CreateLabelBatchResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateLabelBatchResponseResult = instanceOfV1CreateLabelBatchResponseResult; +exports.V1CreateLabelBatchResponseResultFromJSON = V1CreateLabelBatchResponseResultFromJSON; +exports.V1CreateLabelBatchResponseResultFromJSONTyped = V1CreateLabelBatchResponseResultFromJSONTyped; +exports.V1CreateLabelBatchResponseResultToJSON = V1CreateLabelBatchResponseResultToJSON; +/** + * Check if a given object implements the V1CreateLabelBatchResponseResult interface. + */ +function instanceOfV1CreateLabelBatchResponseResult(value) { + return true; +} +function V1CreateLabelBatchResponseResultFromJSON(json) { + return V1CreateLabelBatchResponseResultFromJSONTyped(json, false); +} +function V1CreateLabelBatchResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function V1CreateLabelBatchResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/V1CreateMutualSettlementReportRequest.d.ts b/dist/models/V1CreateMutualSettlementReportRequest.d.ts new file mode 100644 index 0000000..8f2be78 --- /dev/null +++ b/dist/models/V1CreateMutualSettlementReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateMutualSettlementReportRequest + */ +export interface V1CreateMutualSettlementReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. + * @type {string} + * @memberof V1CreateMutualSettlementReportRequest + */ + date: string; + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1CreateMutualSettlementReportRequest + */ + language?: string; +} +/** + * Check if a given object implements the V1CreateMutualSettlementReportRequest interface. + */ +export declare function instanceOfV1CreateMutualSettlementReportRequest(value: object): value is V1CreateMutualSettlementReportRequest; +export declare function V1CreateMutualSettlementReportRequestFromJSON(json: any): V1CreateMutualSettlementReportRequest; +export declare function V1CreateMutualSettlementReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateMutualSettlementReportRequest; +export declare function V1CreateMutualSettlementReportRequestToJSON(value?: V1CreateMutualSettlementReportRequest | null): any; diff --git a/dist/models/V1CreateMutualSettlementReportRequest.js b/dist/models/V1CreateMutualSettlementReportRequest.js new file mode 100644 index 0000000..d369c9b --- /dev/null +++ b/dist/models/V1CreateMutualSettlementReportRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateMutualSettlementReportRequest = instanceOfV1CreateMutualSettlementReportRequest; +exports.V1CreateMutualSettlementReportRequestFromJSON = V1CreateMutualSettlementReportRequestFromJSON; +exports.V1CreateMutualSettlementReportRequestFromJSONTyped = V1CreateMutualSettlementReportRequestFromJSONTyped; +exports.V1CreateMutualSettlementReportRequestToJSON = V1CreateMutualSettlementReportRequestToJSON; +/** + * Check if a given object implements the V1CreateMutualSettlementReportRequest interface. + */ +function instanceOfV1CreateMutualSettlementReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +function V1CreateMutualSettlementReportRequestFromJSON(json) { + return V1CreateMutualSettlementReportRequestFromJSONTyped(json, false); +} +function V1CreateMutualSettlementReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +function V1CreateMutualSettlementReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'language': value['language'], + }; +} diff --git a/dist/models/V1CreatePlacementByProductsReportRequest.d.ts b/dist/models/V1CreatePlacementByProductsReportRequest.d.ts new file mode 100644 index 0000000..b083064 --- /dev/null +++ b/dist/models/V1CreatePlacementByProductsReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreatePlacementByProductsReportRequest + */ +export interface V1CreatePlacementByProductsReportRequest { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1CreatePlacementByProductsReportRequest + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * + * Максимальный период — 31 день. + * + * @type {string} + * @memberof V1CreatePlacementByProductsReportRequest + */ + date_to: string; +} +/** + * Check if a given object implements the V1CreatePlacementByProductsReportRequest interface. + */ +export declare function instanceOfV1CreatePlacementByProductsReportRequest(value: object): value is V1CreatePlacementByProductsReportRequest; +export declare function V1CreatePlacementByProductsReportRequestFromJSON(json: any): V1CreatePlacementByProductsReportRequest; +export declare function V1CreatePlacementByProductsReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePlacementByProductsReportRequest; +export declare function V1CreatePlacementByProductsReportRequestToJSON(value?: V1CreatePlacementByProductsReportRequest | null): any; diff --git a/dist/models/V1CreatePlacementByProductsReportRequest.js b/dist/models/V1CreatePlacementByProductsReportRequest.js new file mode 100644 index 0000000..1780f34 --- /dev/null +++ b/dist/models/V1CreatePlacementByProductsReportRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreatePlacementByProductsReportRequest = instanceOfV1CreatePlacementByProductsReportRequest; +exports.V1CreatePlacementByProductsReportRequestFromJSON = V1CreatePlacementByProductsReportRequestFromJSON; +exports.V1CreatePlacementByProductsReportRequestFromJSONTyped = V1CreatePlacementByProductsReportRequestFromJSONTyped; +exports.V1CreatePlacementByProductsReportRequestToJSON = V1CreatePlacementByProductsReportRequestToJSON; +/** + * Check if a given object implements the V1CreatePlacementByProductsReportRequest interface. + */ +function instanceOfV1CreatePlacementByProductsReportRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +function V1CreatePlacementByProductsReportRequestFromJSON(json) { + return V1CreatePlacementByProductsReportRequestFromJSONTyped(json, false); +} +function V1CreatePlacementByProductsReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + }; +} +function V1CreatePlacementByProductsReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/models/V1CreatePlacementByProductsReportResponse.d.ts b/dist/models/V1CreatePlacementByProductsReportResponse.d.ts new file mode 100644 index 0000000..418f482 --- /dev/null +++ b/dist/models/V1CreatePlacementByProductsReportResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreatePlacementByProductsReportResponse + */ +export interface V1CreatePlacementByProductsReportResponse { + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof V1CreatePlacementByProductsReportResponse + */ + code?: string; +} +/** + * Check if a given object implements the V1CreatePlacementByProductsReportResponse interface. + */ +export declare function instanceOfV1CreatePlacementByProductsReportResponse(value: object): value is V1CreatePlacementByProductsReportResponse; +export declare function V1CreatePlacementByProductsReportResponseFromJSON(json: any): V1CreatePlacementByProductsReportResponse; +export declare function V1CreatePlacementByProductsReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePlacementByProductsReportResponse; +export declare function V1CreatePlacementByProductsReportResponseToJSON(value?: V1CreatePlacementByProductsReportResponse | null): any; diff --git a/dist/models/V1CreatePlacementByProductsReportResponse.js b/dist/models/V1CreatePlacementByProductsReportResponse.js new file mode 100644 index 0000000..e887dfa --- /dev/null +++ b/dist/models/V1CreatePlacementByProductsReportResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreatePlacementByProductsReportResponse = instanceOfV1CreatePlacementByProductsReportResponse; +exports.V1CreatePlacementByProductsReportResponseFromJSON = V1CreatePlacementByProductsReportResponseFromJSON; +exports.V1CreatePlacementByProductsReportResponseFromJSONTyped = V1CreatePlacementByProductsReportResponseFromJSONTyped; +exports.V1CreatePlacementByProductsReportResponseToJSON = V1CreatePlacementByProductsReportResponseToJSON; +/** + * Check if a given object implements the V1CreatePlacementByProductsReportResponse interface. + */ +function instanceOfV1CreatePlacementByProductsReportResponse(value) { + return true; +} +function V1CreatePlacementByProductsReportResponseFromJSON(json) { + return V1CreatePlacementByProductsReportResponseFromJSONTyped(json, false); +} +function V1CreatePlacementByProductsReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +function V1CreatePlacementByProductsReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/V1CreatePlacementBySuppliesReportRequest.d.ts b/dist/models/V1CreatePlacementBySuppliesReportRequest.d.ts new file mode 100644 index 0000000..4d1f760 --- /dev/null +++ b/dist/models/V1CreatePlacementBySuppliesReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreatePlacementBySuppliesReportRequest + */ +export interface V1CreatePlacementBySuppliesReportRequest { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1CreatePlacementBySuppliesReportRequest + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * + * Максимальный период — 31 день. + * + * @type {string} + * @memberof V1CreatePlacementBySuppliesReportRequest + */ + date_to: string; +} +/** + * Check if a given object implements the V1CreatePlacementBySuppliesReportRequest interface. + */ +export declare function instanceOfV1CreatePlacementBySuppliesReportRequest(value: object): value is V1CreatePlacementBySuppliesReportRequest; +export declare function V1CreatePlacementBySuppliesReportRequestFromJSON(json: any): V1CreatePlacementBySuppliesReportRequest; +export declare function V1CreatePlacementBySuppliesReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePlacementBySuppliesReportRequest; +export declare function V1CreatePlacementBySuppliesReportRequestToJSON(value?: V1CreatePlacementBySuppliesReportRequest | null): any; diff --git a/dist/models/V1CreatePlacementBySuppliesReportRequest.js b/dist/models/V1CreatePlacementBySuppliesReportRequest.js new file mode 100644 index 0000000..4a6aa65 --- /dev/null +++ b/dist/models/V1CreatePlacementBySuppliesReportRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreatePlacementBySuppliesReportRequest = instanceOfV1CreatePlacementBySuppliesReportRequest; +exports.V1CreatePlacementBySuppliesReportRequestFromJSON = V1CreatePlacementBySuppliesReportRequestFromJSON; +exports.V1CreatePlacementBySuppliesReportRequestFromJSONTyped = V1CreatePlacementBySuppliesReportRequestFromJSONTyped; +exports.V1CreatePlacementBySuppliesReportRequestToJSON = V1CreatePlacementBySuppliesReportRequestToJSON; +/** + * Check if a given object implements the V1CreatePlacementBySuppliesReportRequest interface. + */ +function instanceOfV1CreatePlacementBySuppliesReportRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +function V1CreatePlacementBySuppliesReportRequestFromJSON(json) { + return V1CreatePlacementBySuppliesReportRequestFromJSONTyped(json, false); +} +function V1CreatePlacementBySuppliesReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + }; +} +function V1CreatePlacementBySuppliesReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/models/V1CreatePlacementBySuppliesReportResponse.d.ts b/dist/models/V1CreatePlacementBySuppliesReportResponse.d.ts new file mode 100644 index 0000000..7a7cc29 --- /dev/null +++ b/dist/models/V1CreatePlacementBySuppliesReportResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreatePlacementBySuppliesReportResponse + */ +export interface V1CreatePlacementBySuppliesReportResponse { + /** + * Уникальный идентификатор отчёта. Чтобы получить отчёт, передайте это значение в метод [/v1/report/info](#operation/ReportAPI_ReportInfo). + * @type {string} + * @memberof V1CreatePlacementBySuppliesReportResponse + */ + code?: string; +} +/** + * Check if a given object implements the V1CreatePlacementBySuppliesReportResponse interface. + */ +export declare function instanceOfV1CreatePlacementBySuppliesReportResponse(value: object): value is V1CreatePlacementBySuppliesReportResponse; +export declare function V1CreatePlacementBySuppliesReportResponseFromJSON(json: any): V1CreatePlacementBySuppliesReportResponse; +export declare function V1CreatePlacementBySuppliesReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePlacementBySuppliesReportResponse; +export declare function V1CreatePlacementBySuppliesReportResponseToJSON(value?: V1CreatePlacementBySuppliesReportResponse | null): any; diff --git a/dist/models/V1CreatePlacementBySuppliesReportResponse.js b/dist/models/V1CreatePlacementBySuppliesReportResponse.js new file mode 100644 index 0000000..17539c6 --- /dev/null +++ b/dist/models/V1CreatePlacementBySuppliesReportResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreatePlacementBySuppliesReportResponse = instanceOfV1CreatePlacementBySuppliesReportResponse; +exports.V1CreatePlacementBySuppliesReportResponseFromJSON = V1CreatePlacementBySuppliesReportResponseFromJSON; +exports.V1CreatePlacementBySuppliesReportResponseFromJSONTyped = V1CreatePlacementBySuppliesReportResponseFromJSONTyped; +exports.V1CreatePlacementBySuppliesReportResponseToJSON = V1CreatePlacementBySuppliesReportResponseToJSON; +/** + * Check if a given object implements the V1CreatePlacementBySuppliesReportResponse interface. + */ +function instanceOfV1CreatePlacementBySuppliesReportResponse(value) { + return true; +} +function V1CreatePlacementBySuppliesReportResponseFromJSON(json) { + return V1CreatePlacementBySuppliesReportResponseFromJSONTyped(json, false); +} +function V1CreatePlacementBySuppliesReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +function V1CreatePlacementBySuppliesReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/V1CreatePricingStrategyRequest.d.ts b/dist/models/V1CreatePricingStrategyRequest.d.ts new file mode 100644 index 0000000..291a7bd --- /dev/null +++ b/dist/models/V1CreatePricingStrategyRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Competitor } from './V1Competitor'; +/** + * + * @export + * @interface V1CreatePricingStrategyRequest + */ +export interface V1CreatePricingStrategyRequest { + /** + * Список конкурентов. + * @type {Array} + * @memberof V1CreatePricingStrategyRequest + */ + competitors: Array; + /** + * Название стратегии. + * @type {string} + * @memberof V1CreatePricingStrategyRequest + */ + strategy_name: string; +} +/** + * Check if a given object implements the V1CreatePricingStrategyRequest interface. + */ +export declare function instanceOfV1CreatePricingStrategyRequest(value: object): value is V1CreatePricingStrategyRequest; +export declare function V1CreatePricingStrategyRequestFromJSON(json: any): V1CreatePricingStrategyRequest; +export declare function V1CreatePricingStrategyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePricingStrategyRequest; +export declare function V1CreatePricingStrategyRequestToJSON(value?: V1CreatePricingStrategyRequest | null): any; diff --git a/dist/models/V1CreatePricingStrategyRequest.js b/dist/models/V1CreatePricingStrategyRequest.js new file mode 100644 index 0000000..cb45cd9 --- /dev/null +++ b/dist/models/V1CreatePricingStrategyRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreatePricingStrategyRequest = instanceOfV1CreatePricingStrategyRequest; +exports.V1CreatePricingStrategyRequestFromJSON = V1CreatePricingStrategyRequestFromJSON; +exports.V1CreatePricingStrategyRequestFromJSONTyped = V1CreatePricingStrategyRequestFromJSONTyped; +exports.V1CreatePricingStrategyRequestToJSON = V1CreatePricingStrategyRequestToJSON; +const V1Competitor_1 = require("./V1Competitor"); +/** + * Check if a given object implements the V1CreatePricingStrategyRequest interface. + */ +function instanceOfV1CreatePricingStrategyRequest(value) { + if (!('competitors' in value) || value['competitors'] === undefined) + return false; + if (!('strategy_name' in value) || value['strategy_name'] === undefined) + return false; + return true; +} +function V1CreatePricingStrategyRequestFromJSON(json) { + return V1CreatePricingStrategyRequestFromJSONTyped(json, false); +} +function V1CreatePricingStrategyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'competitors': (json['competitors'].map(V1Competitor_1.V1CompetitorFromJSON)), + 'strategy_name': json['strategy_name'], + }; +} +function V1CreatePricingStrategyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'competitors': (value['competitors'].map(V1Competitor_1.V1CompetitorToJSON)), + 'strategy_name': value['strategy_name'], + }; +} diff --git a/dist/models/V1CreatePricingStrategyResponse.d.ts b/dist/models/V1CreatePricingStrategyResponse.d.ts new file mode 100644 index 0000000..18f3a15 --- /dev/null +++ b/dist/models/V1CreatePricingStrategyResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CreatePricingStrategyResponseResult } from './V1CreatePricingStrategyResponseResult'; +/** + * + * @export + * @interface V1CreatePricingStrategyResponse + */ +export interface V1CreatePricingStrategyResponse { + /** + * + * @type {V1CreatePricingStrategyResponseResult} + * @memberof V1CreatePricingStrategyResponse + */ + result?: V1CreatePricingStrategyResponseResult; +} +/** + * Check if a given object implements the V1CreatePricingStrategyResponse interface. + */ +export declare function instanceOfV1CreatePricingStrategyResponse(value: object): value is V1CreatePricingStrategyResponse; +export declare function V1CreatePricingStrategyResponseFromJSON(json: any): V1CreatePricingStrategyResponse; +export declare function V1CreatePricingStrategyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePricingStrategyResponse; +export declare function V1CreatePricingStrategyResponseToJSON(value?: V1CreatePricingStrategyResponse | null): any; diff --git a/dist/models/V1CreatePricingStrategyResponse.js b/dist/models/V1CreatePricingStrategyResponse.js new file mode 100644 index 0000000..c8a7797 --- /dev/null +++ b/dist/models/V1CreatePricingStrategyResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreatePricingStrategyResponse = instanceOfV1CreatePricingStrategyResponse; +exports.V1CreatePricingStrategyResponseFromJSON = V1CreatePricingStrategyResponseFromJSON; +exports.V1CreatePricingStrategyResponseFromJSONTyped = V1CreatePricingStrategyResponseFromJSONTyped; +exports.V1CreatePricingStrategyResponseToJSON = V1CreatePricingStrategyResponseToJSON; +const V1CreatePricingStrategyResponseResult_1 = require("./V1CreatePricingStrategyResponseResult"); +/** + * Check if a given object implements the V1CreatePricingStrategyResponse interface. + */ +function instanceOfV1CreatePricingStrategyResponse(value) { + return true; +} +function V1CreatePricingStrategyResponseFromJSON(json) { + return V1CreatePricingStrategyResponseFromJSONTyped(json, false); +} +function V1CreatePricingStrategyResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1CreatePricingStrategyResponseResult_1.V1CreatePricingStrategyResponseResultFromJSON)(json['result']), + }; +} +function V1CreatePricingStrategyResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1CreatePricingStrategyResponseResult_1.V1CreatePricingStrategyResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1CreatePricingStrategyResponseResult.d.ts b/dist/models/V1CreatePricingStrategyResponseResult.d.ts new file mode 100644 index 0000000..6198021 --- /dev/null +++ b/dist/models/V1CreatePricingStrategyResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface V1CreatePricingStrategyResponseResult + */ +export interface V1CreatePricingStrategyResponseResult { + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1CreatePricingStrategyResponseResult + */ + strategy_id?: string; +} +/** + * Check if a given object implements the V1CreatePricingStrategyResponseResult interface. + */ +export declare function instanceOfV1CreatePricingStrategyResponseResult(value: object): value is V1CreatePricingStrategyResponseResult; +export declare function V1CreatePricingStrategyResponseResultFromJSON(json: any): V1CreatePricingStrategyResponseResult; +export declare function V1CreatePricingStrategyResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreatePricingStrategyResponseResult; +export declare function V1CreatePricingStrategyResponseResultToJSON(value?: V1CreatePricingStrategyResponseResult | null): any; diff --git a/dist/models/V1CreatePricingStrategyResponseResult.js b/dist/models/V1CreatePricingStrategyResponseResult.js new file mode 100644 index 0000000..357183d --- /dev/null +++ b/dist/models/V1CreatePricingStrategyResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreatePricingStrategyResponseResult = instanceOfV1CreatePricingStrategyResponseResult; +exports.V1CreatePricingStrategyResponseResultFromJSON = V1CreatePricingStrategyResponseResultFromJSON; +exports.V1CreatePricingStrategyResponseResultFromJSONTyped = V1CreatePricingStrategyResponseResultFromJSONTyped; +exports.V1CreatePricingStrategyResponseResultToJSON = V1CreatePricingStrategyResponseResultToJSON; +/** + * Check if a given object implements the V1CreatePricingStrategyResponseResult interface. + */ +function instanceOfV1CreatePricingStrategyResponseResult(value) { + return true; +} +function V1CreatePricingStrategyResponseResultFromJSON(json) { + return V1CreatePricingStrategyResponseResultFromJSONTyped(json, false); +} +function V1CreatePricingStrategyResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'strategy_id': json['strategy_id'] == null ? undefined : json['strategy_id'], + }; +} +function V1CreatePricingStrategyResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/models/V1CreateStockByWarehouseReportRequest.d.ts b/dist/models/V1CreateStockByWarehouseReportRequest.d.ts new file mode 100644 index 0000000..4fedb9f --- /dev/null +++ b/dist/models/V1CreateStockByWarehouseReportRequest.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateStockByWarehouseReportRequest + */ +export interface V1CreateStockByWarehouseReportRequest { + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1CreateStockByWarehouseReportRequest + */ + language?: string; + /** + * Идентификаторы складов. + * Ограничение значений в запросе. Максимум — 50. + * + * @type {Array} + * @memberof V1CreateStockByWarehouseReportRequest + */ + warehouseId: Array; +} +/** + * Check if a given object implements the V1CreateStockByWarehouseReportRequest interface. + */ +export declare function instanceOfV1CreateStockByWarehouseReportRequest(value: object): value is V1CreateStockByWarehouseReportRequest; +export declare function V1CreateStockByWarehouseReportRequestFromJSON(json: any): V1CreateStockByWarehouseReportRequest; +export declare function V1CreateStockByWarehouseReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateStockByWarehouseReportRequest; +export declare function V1CreateStockByWarehouseReportRequestToJSON(value?: V1CreateStockByWarehouseReportRequest | null): any; diff --git a/dist/models/V1CreateStockByWarehouseReportRequest.js b/dist/models/V1CreateStockByWarehouseReportRequest.js new file mode 100644 index 0000000..d0d47af --- /dev/null +++ b/dist/models/V1CreateStockByWarehouseReportRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateStockByWarehouseReportRequest = instanceOfV1CreateStockByWarehouseReportRequest; +exports.V1CreateStockByWarehouseReportRequestFromJSON = V1CreateStockByWarehouseReportRequestFromJSON; +exports.V1CreateStockByWarehouseReportRequestFromJSONTyped = V1CreateStockByWarehouseReportRequestFromJSONTyped; +exports.V1CreateStockByWarehouseReportRequestToJSON = V1CreateStockByWarehouseReportRequestToJSON; +/** + * Check if a given object implements the V1CreateStockByWarehouseReportRequest interface. + */ +function instanceOfV1CreateStockByWarehouseReportRequest(value) { + if (!('warehouseId' in value) || value['warehouseId'] === undefined) + return false; + return true; +} +function V1CreateStockByWarehouseReportRequestFromJSON(json) { + return V1CreateStockByWarehouseReportRequestFromJSONTyped(json, false); +} +function V1CreateStockByWarehouseReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'language': json['language'] == null ? undefined : json['language'], + 'warehouseId': json['warehouseId'], + }; +} +function V1CreateStockByWarehouseReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'language': value['language'], + 'warehouseId': value['warehouseId'], + }; +} diff --git a/dist/models/V1CreateType.d.ts b/dist/models/V1CreateType.d.ts new file mode 100644 index 0000000..f6b9cfd --- /dev/null +++ b/dist/models/V1CreateType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `CREATE_TYPE_CROSSDOCK` — кросс-докинг, + * - `CREATE_TYPE_DIRECT` — прямая. + * + * @export + */ +export declare const V1CreateType: { + readonly CROSSDOCK: "CREATE_TYPE_CROSSDOCK"; + readonly DIRECT: "CREATE_TYPE_DIRECT"; +}; +export type V1CreateType = typeof V1CreateType[keyof typeof V1CreateType]; +export declare function instanceOfV1CreateType(value: any): boolean; +export declare function V1CreateTypeFromJSON(json: any): V1CreateType; +export declare function V1CreateTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateType; +export declare function V1CreateTypeToJSON(value?: V1CreateType | null): any; diff --git a/dist/models/V1CreateType.js b/dist/models/V1CreateType.js new file mode 100644 index 0000000..df47efd --- /dev/null +++ b/dist/models/V1CreateType.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1CreateType = void 0; +exports.instanceOfV1CreateType = instanceOfV1CreateType; +exports.V1CreateTypeFromJSON = V1CreateTypeFromJSON; +exports.V1CreateTypeFromJSONTyped = V1CreateTypeFromJSONTyped; +exports.V1CreateTypeToJSON = V1CreateTypeToJSON; +/** + * Тип поставки: + * - `CREATE_TYPE_CROSSDOCK` — кросс-докинг, + * - `CREATE_TYPE_DIRECT` — прямая. + * + * @export + */ +exports.V1CreateType = { + CROSSDOCK: 'CREATE_TYPE_CROSSDOCK', + DIRECT: 'CREATE_TYPE_DIRECT' +}; +function instanceOfV1CreateType(value) { + for (const key in exports.V1CreateType) { + if (Object.prototype.hasOwnProperty.call(exports.V1CreateType, key)) { + if (exports.V1CreateType[key] === value) { + return true; + } + } + } + return false; +} +function V1CreateTypeFromJSON(json) { + return V1CreateTypeFromJSONTyped(json, false); +} +function V1CreateTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1CreateTypeToJSON(value) { + return value; +} diff --git a/dist/models/V1CreateWarehouseFBSRequest.d.ts b/dist/models/V1CreateWarehouseFBSRequest.d.ts new file mode 100644 index 0000000..8cd5b6c --- /dev/null +++ b/dist/models/V1CreateWarehouseFBSRequest.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateWarehouseFBSRequestOptions } from './CreateWarehouseFBSRequestOptions'; +import type { CreateWarehouseFBSRequestFirstMileTypeEnum } from './CreateWarehouseFBSRequestFirstMileTypeEnum'; +import type { CreateWarehouseFBSRequestWorkingDaysEnum } from './CreateWarehouseFBSRequestWorkingDaysEnum'; +import type { CreateWarehouseFBSRequestAddressCoordinates } from './CreateWarehouseFBSRequestAddressCoordinates'; +/** + * + * @export + * @interface V1CreateWarehouseFBSRequest + */ +export interface V1CreateWarehouseFBSRequest { + /** + * + * @type {CreateWarehouseFBSRequestAddressCoordinates} + * @memberof V1CreateWarehouseFBSRequest + */ + address_coordinates: CreateWarehouseFBSRequestAddressCoordinates; + /** + * Время на приём заказов в минутах. Например, если вы передадите `3000`, приём заказов будет завершён через 50 часов с момента передачи. + * + * @type {number} + * @memberof V1CreateWarehouseFBSRequest + */ + cut_in_time: number; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1CreateWarehouseFBSRequest + */ + drop_off_point_id?: number; + /** + * + * @type {CreateWarehouseFBSRequestFirstMileTypeEnum} + * @memberof V1CreateWarehouseFBSRequest + */ + first_mile_type: CreateWarehouseFBSRequestFirstMileTypeEnum; + /** + * `true`, если товар крупногабаритный. + * + * @type {boolean} + * @memberof V1CreateWarehouseFBSRequest + */ + is_kgt: boolean; + /** + * Название склада. + * @type {string} + * @memberof V1CreateWarehouseFBSRequest + */ + name: string; + /** + * + * @type {CreateWarehouseFBSRequestOptions} + * @memberof V1CreateWarehouseFBSRequest + */ + options?: CreateWarehouseFBSRequestOptions; + /** + * Номер телефона склада. Укажите в формате +7(XXX)XXX-XX-XX. + * @type {string} + * @memberof V1CreateWarehouseFBSRequest + */ + phone: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1CreateWarehouseFBSRequest + */ + timeslot_id: number; + /** + * Идентификатор пункта возврата. Получите значение параметра методом [/v1/warehouse/fbs/create/return-point/list](#operation/WarehouseFBSCreateReturnPointList). + * @type {number} + * @memberof V1CreateWarehouseFBSRequest + */ + return_point_id?: number; + /** + * Рабочие дни склада: + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @type {Array} + * @memberof V1CreateWarehouseFBSRequest + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1CreateWarehouseFBSRequest interface. + */ +export declare function instanceOfV1CreateWarehouseFBSRequest(value: object): value is V1CreateWarehouseFBSRequest; +export declare function V1CreateWarehouseFBSRequestFromJSON(json: any): V1CreateWarehouseFBSRequest; +export declare function V1CreateWarehouseFBSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateWarehouseFBSRequest; +export declare function V1CreateWarehouseFBSRequestToJSON(value?: V1CreateWarehouseFBSRequest | null): any; diff --git a/dist/models/V1CreateWarehouseFBSRequest.js b/dist/models/V1CreateWarehouseFBSRequest.js new file mode 100644 index 0000000..7183c2d --- /dev/null +++ b/dist/models/V1CreateWarehouseFBSRequest.js @@ -0,0 +1,82 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateWarehouseFBSRequest = instanceOfV1CreateWarehouseFBSRequest; +exports.V1CreateWarehouseFBSRequestFromJSON = V1CreateWarehouseFBSRequestFromJSON; +exports.V1CreateWarehouseFBSRequestFromJSONTyped = V1CreateWarehouseFBSRequestFromJSONTyped; +exports.V1CreateWarehouseFBSRequestToJSON = V1CreateWarehouseFBSRequestToJSON; +const CreateWarehouseFBSRequestOptions_1 = require("./CreateWarehouseFBSRequestOptions"); +const CreateWarehouseFBSRequestFirstMileTypeEnum_1 = require("./CreateWarehouseFBSRequestFirstMileTypeEnum"); +const CreateWarehouseFBSRequestWorkingDaysEnum_1 = require("./CreateWarehouseFBSRequestWorkingDaysEnum"); +const CreateWarehouseFBSRequestAddressCoordinates_1 = require("./CreateWarehouseFBSRequestAddressCoordinates"); +/** + * Check if a given object implements the V1CreateWarehouseFBSRequest interface. + */ +function instanceOfV1CreateWarehouseFBSRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('cut_in_time' in value) || value['cut_in_time'] === undefined) + return false; + if (!('first_mile_type' in value) || value['first_mile_type'] === undefined) + return false; + if (!('is_kgt' in value) || value['is_kgt'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + if (!('timeslot_id' in value) || value['timeslot_id'] === undefined) + return false; + return true; +} +function V1CreateWarehouseFBSRequestFromJSON(json) { + return V1CreateWarehouseFBSRequestFromJSONTyped(json, false); +} +function V1CreateWarehouseFBSRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': (0, CreateWarehouseFBSRequestAddressCoordinates_1.CreateWarehouseFBSRequestAddressCoordinatesFromJSON)(json['address_coordinates']), + 'cut_in_time': json['cut_in_time'], + 'drop_off_point_id': json['drop_off_point_id'] == null ? undefined : json['drop_off_point_id'], + 'first_mile_type': (0, CreateWarehouseFBSRequestFirstMileTypeEnum_1.CreateWarehouseFBSRequestFirstMileTypeEnumFromJSON)(json['first_mile_type']), + 'is_kgt': json['is_kgt'], + 'name': json['name'], + 'options': json['options'] == null ? undefined : (0, CreateWarehouseFBSRequestOptions_1.CreateWarehouseFBSRequestOptionsFromJSON)(json['options']), + 'phone': json['phone'], + 'timeslot_id': json['timeslot_id'], + 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(CreateWarehouseFBSRequestWorkingDaysEnum_1.CreateWarehouseFBSRequestWorkingDaysEnumFromJSON)), + }; +} +function V1CreateWarehouseFBSRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': (0, CreateWarehouseFBSRequestAddressCoordinates_1.CreateWarehouseFBSRequestAddressCoordinatesToJSON)(value['address_coordinates']), + 'cut_in_time': value['cut_in_time'], + 'drop_off_point_id': value['drop_off_point_id'], + 'first_mile_type': (0, CreateWarehouseFBSRequestFirstMileTypeEnum_1.CreateWarehouseFBSRequestFirstMileTypeEnumToJSON)(value['first_mile_type']), + 'is_kgt': value['is_kgt'], + 'name': value['name'], + 'options': (0, CreateWarehouseFBSRequestOptions_1.CreateWarehouseFBSRequestOptionsToJSON)(value['options']), + 'phone': value['phone'], + 'timeslot_id': value['timeslot_id'], + 'return_point_id': value['return_point_id'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(CreateWarehouseFBSRequestWorkingDaysEnum_1.CreateWarehouseFBSRequestWorkingDaysEnumToJSON)), + }; +} diff --git a/dist/models/V1CreateWarehouseFBSResponse.d.ts b/dist/models/V1CreateWarehouseFBSResponse.d.ts new file mode 100644 index 0000000..83597e4 --- /dev/null +++ b/dist/models/V1CreateWarehouseFBSResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1CreateWarehouseFBSResponse + */ +export interface V1CreateWarehouseFBSResponse { + /** + * Идентификатор операции на создание FBS-склада. Чтобы получить статус операции, используйте метод [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1CreateWarehouseFBSResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1CreateWarehouseFBSResponse interface. + */ +export declare function instanceOfV1CreateWarehouseFBSResponse(value: object): value is V1CreateWarehouseFBSResponse; +export declare function V1CreateWarehouseFBSResponseFromJSON(json: any): V1CreateWarehouseFBSResponse; +export declare function V1CreateWarehouseFBSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1CreateWarehouseFBSResponse; +export declare function V1CreateWarehouseFBSResponseToJSON(value?: V1CreateWarehouseFBSResponse | null): any; diff --git a/dist/models/V1CreateWarehouseFBSResponse.js b/dist/models/V1CreateWarehouseFBSResponse.js new file mode 100644 index 0000000..f898d93 --- /dev/null +++ b/dist/models/V1CreateWarehouseFBSResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1CreateWarehouseFBSResponse = instanceOfV1CreateWarehouseFBSResponse; +exports.V1CreateWarehouseFBSResponseFromJSON = V1CreateWarehouseFBSResponseFromJSON; +exports.V1CreateWarehouseFBSResponseFromJSONTyped = V1CreateWarehouseFBSResponseFromJSONTyped; +exports.V1CreateWarehouseFBSResponseToJSON = V1CreateWarehouseFBSResponseToJSON; +/** + * Check if a given object implements the V1CreateWarehouseFBSResponse interface. + */ +function instanceOfV1CreateWarehouseFBSResponse(value) { + return true; +} +function V1CreateWarehouseFBSResponseFromJSON(json) { + return V1CreateWarehouseFBSResponseFromJSONTyped(json, false); +} +function V1CreateWarehouseFBSResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1CreateWarehouseFBSResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1DayOfWeek.d.ts b/dist/models/V1DayOfWeek.d.ts new file mode 100644 index 0000000..0d53d71 --- /dev/null +++ b/dist/models/V1DayOfWeek.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `DAY_OF_WEEK_UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1DayOfWeek: { + readonly DAY_OF_WEEK_UNSPECIFIED: "DAY_OF_WEEK_UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1DayOfWeek = typeof V1DayOfWeek[keyof typeof V1DayOfWeek]; +export declare function instanceOfV1DayOfWeek(value: any): boolean; +export declare function V1DayOfWeekFromJSON(json: any): V1DayOfWeek; +export declare function V1DayOfWeekFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DayOfWeek; +export declare function V1DayOfWeekToJSON(value?: V1DayOfWeek | null): any; diff --git a/dist/models/V1DayOfWeek.js b/dist/models/V1DayOfWeek.js new file mode 100644 index 0000000..664d614 --- /dev/null +++ b/dist/models/V1DayOfWeek.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DayOfWeek = void 0; +exports.instanceOfV1DayOfWeek = instanceOfV1DayOfWeek; +exports.V1DayOfWeekFromJSON = V1DayOfWeekFromJSON; +exports.V1DayOfWeekFromJSONTyped = V1DayOfWeekFromJSONTyped; +exports.V1DayOfWeekToJSON = V1DayOfWeekToJSON; +/** + * Дни недели: + * - `DAY_OF_WEEK_UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +exports.V1DayOfWeek = { + DAY_OF_WEEK_UNSPECIFIED: 'DAY_OF_WEEK_UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfV1DayOfWeek(value) { + for (const key in exports.V1DayOfWeek) { + if (Object.prototype.hasOwnProperty.call(exports.V1DayOfWeek, key)) { + if (exports.V1DayOfWeek[key] === value) { + return true; + } + } + } + return false; +} +function V1DayOfWeekFromJSON(json) { + return V1DayOfWeekFromJSONTyped(json, false); +} +function V1DayOfWeekFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DayOfWeekToJSON(value) { + return value; +} diff --git a/dist/models/V1DeclineDiscountTasksRequest.d.ts b/dist/models/V1DeclineDiscountTasksRequest.d.ts new file mode 100644 index 0000000..77477c1 --- /dev/null +++ b/dist/models/V1DeclineDiscountTasksRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeclineDiscountTasksRequestTask } from './V1DeclineDiscountTasksRequestTask'; +/** + * + * @export + * @interface V1DeclineDiscountTasksRequest + */ +export interface V1DeclineDiscountTasksRequest { + /** + * Список заявок. + * @type {Array} + * @memberof V1DeclineDiscountTasksRequest + */ + tasks: Array; +} +/** + * Check if a given object implements the V1DeclineDiscountTasksRequest interface. + */ +export declare function instanceOfV1DeclineDiscountTasksRequest(value: object): value is V1DeclineDiscountTasksRequest; +export declare function V1DeclineDiscountTasksRequestFromJSON(json: any): V1DeclineDiscountTasksRequest; +export declare function V1DeclineDiscountTasksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeclineDiscountTasksRequest; +export declare function V1DeclineDiscountTasksRequestToJSON(value?: V1DeclineDiscountTasksRequest | null): any; diff --git a/dist/models/V1DeclineDiscountTasksRequest.js b/dist/models/V1DeclineDiscountTasksRequest.js new file mode 100644 index 0000000..75ddcf8 --- /dev/null +++ b/dist/models/V1DeclineDiscountTasksRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeclineDiscountTasksRequest = instanceOfV1DeclineDiscountTasksRequest; +exports.V1DeclineDiscountTasksRequestFromJSON = V1DeclineDiscountTasksRequestFromJSON; +exports.V1DeclineDiscountTasksRequestFromJSONTyped = V1DeclineDiscountTasksRequestFromJSONTyped; +exports.V1DeclineDiscountTasksRequestToJSON = V1DeclineDiscountTasksRequestToJSON; +const V1DeclineDiscountTasksRequestTask_1 = require("./V1DeclineDiscountTasksRequestTask"); +/** + * Check if a given object implements the V1DeclineDiscountTasksRequest interface. + */ +function instanceOfV1DeclineDiscountTasksRequest(value) { + if (!('tasks' in value) || value['tasks'] === undefined) + return false; + return true; +} +function V1DeclineDiscountTasksRequestFromJSON(json) { + return V1DeclineDiscountTasksRequestFromJSONTyped(json, false); +} +function V1DeclineDiscountTasksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tasks': (json['tasks'].map(V1DeclineDiscountTasksRequestTask_1.V1DeclineDiscountTasksRequestTaskFromJSON)), + }; +} +function V1DeclineDiscountTasksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'tasks': (value['tasks'].map(V1DeclineDiscountTasksRequestTask_1.V1DeclineDiscountTasksRequestTaskToJSON)), + }; +} diff --git a/dist/models/V1DeclineDiscountTasksRequestTask.d.ts b/dist/models/V1DeclineDiscountTasksRequestTask.d.ts new file mode 100644 index 0000000..1554f25 --- /dev/null +++ b/dist/models/V1DeclineDiscountTasksRequestTask.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeclineDiscountTasksRequestTask + */ +export interface V1DeclineDiscountTasksRequestTask { + /** + * Идентификатор заявки. + * @type {number} + * @memberof V1DeclineDiscountTasksRequestTask + */ + id: number; + /** + * Комментарий продавца к заявке. + * @type {string} + * @memberof V1DeclineDiscountTasksRequestTask + */ + seller_comment?: string; +} +/** + * Check if a given object implements the V1DeclineDiscountTasksRequestTask interface. + */ +export declare function instanceOfV1DeclineDiscountTasksRequestTask(value: object): value is V1DeclineDiscountTasksRequestTask; +export declare function V1DeclineDiscountTasksRequestTaskFromJSON(json: any): V1DeclineDiscountTasksRequestTask; +export declare function V1DeclineDiscountTasksRequestTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeclineDiscountTasksRequestTask; +export declare function V1DeclineDiscountTasksRequestTaskToJSON(value?: V1DeclineDiscountTasksRequestTask | null): any; diff --git a/dist/models/V1DeclineDiscountTasksRequestTask.js b/dist/models/V1DeclineDiscountTasksRequestTask.js new file mode 100644 index 0000000..ac6677e --- /dev/null +++ b/dist/models/V1DeclineDiscountTasksRequestTask.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeclineDiscountTasksRequestTask = instanceOfV1DeclineDiscountTasksRequestTask; +exports.V1DeclineDiscountTasksRequestTaskFromJSON = V1DeclineDiscountTasksRequestTaskFromJSON; +exports.V1DeclineDiscountTasksRequestTaskFromJSONTyped = V1DeclineDiscountTasksRequestTaskFromJSONTyped; +exports.V1DeclineDiscountTasksRequestTaskToJSON = V1DeclineDiscountTasksRequestTaskToJSON; +/** + * Check if a given object implements the V1DeclineDiscountTasksRequestTask interface. + */ +function instanceOfV1DeclineDiscountTasksRequestTask(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function V1DeclineDiscountTasksRequestTaskFromJSON(json) { + return V1DeclineDiscountTasksRequestTaskFromJSONTyped(json, false); +} +function V1DeclineDiscountTasksRequestTaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'seller_comment': json['seller_comment'] == null ? undefined : json['seller_comment'], + }; +} +function V1DeclineDiscountTasksRequestTaskToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'seller_comment': value['seller_comment'], + }; +} diff --git a/dist/models/V1DeleteStrategyItemsResponse.d.ts b/dist/models/V1DeleteStrategyItemsResponse.d.ts new file mode 100644 index 0000000..75dfb01 --- /dev/null +++ b/dist/models/V1DeleteStrategyItemsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeleteStrategyItemsResponseResult } from './V1DeleteStrategyItemsResponseResult'; +/** + * + * @export + * @interface V1DeleteStrategyItemsResponse + */ +export interface V1DeleteStrategyItemsResponse { + /** + * + * @type {V1DeleteStrategyItemsResponseResult} + * @memberof V1DeleteStrategyItemsResponse + */ + result?: V1DeleteStrategyItemsResponseResult; +} +/** + * Check if a given object implements the V1DeleteStrategyItemsResponse interface. + */ +export declare function instanceOfV1DeleteStrategyItemsResponse(value: object): value is V1DeleteStrategyItemsResponse; +export declare function V1DeleteStrategyItemsResponseFromJSON(json: any): V1DeleteStrategyItemsResponse; +export declare function V1DeleteStrategyItemsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeleteStrategyItemsResponse; +export declare function V1DeleteStrategyItemsResponseToJSON(value?: V1DeleteStrategyItemsResponse | null): any; diff --git a/dist/models/V1DeleteStrategyItemsResponse.js b/dist/models/V1DeleteStrategyItemsResponse.js new file mode 100644 index 0000000..0a77f01 --- /dev/null +++ b/dist/models/V1DeleteStrategyItemsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeleteStrategyItemsResponse = instanceOfV1DeleteStrategyItemsResponse; +exports.V1DeleteStrategyItemsResponseFromJSON = V1DeleteStrategyItemsResponseFromJSON; +exports.V1DeleteStrategyItemsResponseFromJSONTyped = V1DeleteStrategyItemsResponseFromJSONTyped; +exports.V1DeleteStrategyItemsResponseToJSON = V1DeleteStrategyItemsResponseToJSON; +const V1DeleteStrategyItemsResponseResult_1 = require("./V1DeleteStrategyItemsResponseResult"); +/** + * Check if a given object implements the V1DeleteStrategyItemsResponse interface. + */ +function instanceOfV1DeleteStrategyItemsResponse(value) { + return true; +} +function V1DeleteStrategyItemsResponseFromJSON(json) { + return V1DeleteStrategyItemsResponseFromJSONTyped(json, false); +} +function V1DeleteStrategyItemsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1DeleteStrategyItemsResponseResult_1.V1DeleteStrategyItemsResponseResultFromJSON)(json['result']), + }; +} +function V1DeleteStrategyItemsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1DeleteStrategyItemsResponseResult_1.V1DeleteStrategyItemsResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1DeleteStrategyItemsResponseResult.d.ts b/dist/models/V1DeleteStrategyItemsResponseResult.d.ts new file mode 100644 index 0000000..99080f6 --- /dev/null +++ b/dist/models/V1DeleteStrategyItemsResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface V1DeleteStrategyItemsResponseResult + */ +export interface V1DeleteStrategyItemsResponseResult { + /** + * Количество товаров с ошибками. + * @type {number} + * @memberof V1DeleteStrategyItemsResponseResult + */ + failed_product_count?: number; +} +/** + * Check if a given object implements the V1DeleteStrategyItemsResponseResult interface. + */ +export declare function instanceOfV1DeleteStrategyItemsResponseResult(value: object): value is V1DeleteStrategyItemsResponseResult; +export declare function V1DeleteStrategyItemsResponseResultFromJSON(json: any): V1DeleteStrategyItemsResponseResult; +export declare function V1DeleteStrategyItemsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeleteStrategyItemsResponseResult; +export declare function V1DeleteStrategyItemsResponseResultToJSON(value?: V1DeleteStrategyItemsResponseResult | null): any; diff --git a/dist/models/V1DeleteStrategyItemsResponseResult.js b/dist/models/V1DeleteStrategyItemsResponseResult.js new file mode 100644 index 0000000..be30986 --- /dev/null +++ b/dist/models/V1DeleteStrategyItemsResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeleteStrategyItemsResponseResult = instanceOfV1DeleteStrategyItemsResponseResult; +exports.V1DeleteStrategyItemsResponseResultFromJSON = V1DeleteStrategyItemsResponseResultFromJSON; +exports.V1DeleteStrategyItemsResponseResultFromJSONTyped = V1DeleteStrategyItemsResponseResultFromJSONTyped; +exports.V1DeleteStrategyItemsResponseResultToJSON = V1DeleteStrategyItemsResponseResultToJSON; +/** + * Check if a given object implements the V1DeleteStrategyItemsResponseResult interface. + */ +function instanceOfV1DeleteStrategyItemsResponseResult(value) { + return true; +} +function V1DeleteStrategyItemsResponseResultFromJSON(json) { + return V1DeleteStrategyItemsResponseResultFromJSONTyped(json, false); +} +function V1DeleteStrategyItemsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'failed_product_count': json['failed_product_count'] == null ? undefined : json['failed_product_count'], + }; +} +function V1DeleteStrategyItemsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'failed_product_count': value['failed_product_count'], + }; +} diff --git a/dist/models/V1DeliveryCheckRequest.d.ts b/dist/models/V1DeliveryCheckRequest.d.ts new file mode 100644 index 0000000..5936de4 --- /dev/null +++ b/dist/models/V1DeliveryCheckRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeliveryCheckRequest + */ +export interface V1DeliveryCheckRequest { + /** + * Номер телефона покупателя. + * @type {string} + * @memberof V1DeliveryCheckRequest + */ + client_phone: string; +} +/** + * Check if a given object implements the V1DeliveryCheckRequest interface. + */ +export declare function instanceOfV1DeliveryCheckRequest(value: object): value is V1DeliveryCheckRequest; +export declare function V1DeliveryCheckRequestFromJSON(json: any): V1DeliveryCheckRequest; +export declare function V1DeliveryCheckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckRequest; +export declare function V1DeliveryCheckRequestToJSON(value?: V1DeliveryCheckRequest | null): any; diff --git a/dist/models/V1DeliveryCheckRequest.js b/dist/models/V1DeliveryCheckRequest.js new file mode 100644 index 0000000..ba1c644 --- /dev/null +++ b/dist/models/V1DeliveryCheckRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryCheckRequest = instanceOfV1DeliveryCheckRequest; +exports.V1DeliveryCheckRequestFromJSON = V1DeliveryCheckRequestFromJSON; +exports.V1DeliveryCheckRequestFromJSONTyped = V1DeliveryCheckRequestFromJSONTyped; +exports.V1DeliveryCheckRequestToJSON = V1DeliveryCheckRequestToJSON; +/** + * Check if a given object implements the V1DeliveryCheckRequest interface. + */ +function instanceOfV1DeliveryCheckRequest(value) { + if (!('client_phone' in value) || value['client_phone'] === undefined) + return false; + return true; +} +function V1DeliveryCheckRequestFromJSON(json) { + return V1DeliveryCheckRequestFromJSONTyped(json, false); +} +function V1DeliveryCheckRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'client_phone': json['client_phone'], + }; +} +function V1DeliveryCheckRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'client_phone': value['client_phone'], + }; +} diff --git a/dist/models/V1DeliveryCheckResponse.d.ts b/dist/models/V1DeliveryCheckResponse.d.ts new file mode 100644 index 0000000..ef3dfc5 --- /dev/null +++ b/dist/models/V1DeliveryCheckResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeliveryCheckResponse + */ +export interface V1DeliveryCheckResponse { + /** + * `true`, если доставка доступна. + * + * @type {boolean} + * @memberof V1DeliveryCheckResponse + */ + is_possible?: boolean; +} +/** + * Check if a given object implements the V1DeliveryCheckResponse interface. + */ +export declare function instanceOfV1DeliveryCheckResponse(value: object): value is V1DeliveryCheckResponse; +export declare function V1DeliveryCheckResponseFromJSON(json: any): V1DeliveryCheckResponse; +export declare function V1DeliveryCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckResponse; +export declare function V1DeliveryCheckResponseToJSON(value?: V1DeliveryCheckResponse | null): any; diff --git a/dist/models/V1DeliveryCheckResponse.js b/dist/models/V1DeliveryCheckResponse.js new file mode 100644 index 0000000..fd8f842 --- /dev/null +++ b/dist/models/V1DeliveryCheckResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryCheckResponse = instanceOfV1DeliveryCheckResponse; +exports.V1DeliveryCheckResponseFromJSON = V1DeliveryCheckResponseFromJSON; +exports.V1DeliveryCheckResponseFromJSONTyped = V1DeliveryCheckResponseFromJSONTyped; +exports.V1DeliveryCheckResponseToJSON = V1DeliveryCheckResponseToJSON; +/** + * Check if a given object implements the V1DeliveryCheckResponse interface. + */ +function instanceOfV1DeliveryCheckResponse(value) { + return true; +} +function V1DeliveryCheckResponseFromJSON(json) { + return V1DeliveryCheckResponseFromJSONTyped(json, false); +} +function V1DeliveryCheckResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_possible': json['is_possible'] == null ? undefined : json['is_possible'], + }; +} +function V1DeliveryCheckResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_possible': value['is_possible'], + }; +} diff --git a/dist/models/V1DeliveryCheckoutRequest.d.ts b/dist/models/V1DeliveryCheckoutRequest.d.ts new file mode 100644 index 0000000..8047f4f --- /dev/null +++ b/dist/models/V1DeliveryCheckoutRequest.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryCheckoutRequestItem } from './V1DeliveryCheckoutRequestItem'; +import type { V2DeliveryCheckoutRequestV2DeliverySchemaEnum } from './V2DeliveryCheckoutRequestV2DeliverySchemaEnum'; +import type { V1DeliveryCheckoutRequestDeliveryType } from './V1DeliveryCheckoutRequestDeliveryType'; +/** + * + * @export + * @interface V1DeliveryCheckoutRequest + */ +export interface V1DeliveryCheckoutRequest { + /** + * Номер телефона покупателя. + * @type {string} + * @memberof V1DeliveryCheckoutRequest + */ + buyer_phone?: string; + /** + * + * @type {V2DeliveryCheckoutRequestV2DeliverySchemaEnum} + * @memberof V1DeliveryCheckoutRequest + */ + delivery_schema?: V2DeliveryCheckoutRequestV2DeliverySchemaEnum; + /** + * + * @type {V1DeliveryCheckoutRequestDeliveryType} + * @memberof V1DeliveryCheckoutRequest + */ + delivery_type?: V1DeliveryCheckoutRequestDeliveryType; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1DeliveryCheckoutRequest + */ + items?: Array; +} +/** + * Check if a given object implements the V1DeliveryCheckoutRequest interface. + */ +export declare function instanceOfV1DeliveryCheckoutRequest(value: object): value is V1DeliveryCheckoutRequest; +export declare function V1DeliveryCheckoutRequestFromJSON(json: any): V1DeliveryCheckoutRequest; +export declare function V1DeliveryCheckoutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckoutRequest; +export declare function V1DeliveryCheckoutRequestToJSON(value?: V1DeliveryCheckoutRequest | null): any; diff --git a/dist/models/V1DeliveryCheckoutRequest.js b/dist/models/V1DeliveryCheckoutRequest.js new file mode 100644 index 0000000..eb10d29 --- /dev/null +++ b/dist/models/V1DeliveryCheckoutRequest.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryCheckoutRequest = instanceOfV1DeliveryCheckoutRequest; +exports.V1DeliveryCheckoutRequestFromJSON = V1DeliveryCheckoutRequestFromJSON; +exports.V1DeliveryCheckoutRequestFromJSONTyped = V1DeliveryCheckoutRequestFromJSONTyped; +exports.V1DeliveryCheckoutRequestToJSON = V1DeliveryCheckoutRequestToJSON; +const V1DeliveryCheckoutRequestItem_1 = require("./V1DeliveryCheckoutRequestItem"); +const V2DeliveryCheckoutRequestV2DeliverySchemaEnum_1 = require("./V2DeliveryCheckoutRequestV2DeliverySchemaEnum"); +const V1DeliveryCheckoutRequestDeliveryType_1 = require("./V1DeliveryCheckoutRequestDeliveryType"); +/** + * Check if a given object implements the V1DeliveryCheckoutRequest interface. + */ +function instanceOfV1DeliveryCheckoutRequest(value) { + return true; +} +function V1DeliveryCheckoutRequestFromJSON(json) { + return V1DeliveryCheckoutRequestFromJSONTyped(json, false); +} +function V1DeliveryCheckoutRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'buyer_phone': json['buyer_phone'] == null ? undefined : json['buyer_phone'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : (0, V2DeliveryCheckoutRequestV2DeliverySchemaEnum_1.V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON)(json['delivery_schema']), + 'delivery_type': json['delivery_type'] == null ? undefined : (0, V1DeliveryCheckoutRequestDeliveryType_1.V1DeliveryCheckoutRequestDeliveryTypeFromJSON)(json['delivery_type']), + 'items': json['items'] == null ? undefined : (json['items'].map(V1DeliveryCheckoutRequestItem_1.V1DeliveryCheckoutRequestItemFromJSON)), + }; +} +function V1DeliveryCheckoutRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'buyer_phone': value['buyer_phone'], + 'delivery_schema': (0, V2DeliveryCheckoutRequestV2DeliverySchemaEnum_1.V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON)(value['delivery_schema']), + 'delivery_type': (0, V1DeliveryCheckoutRequestDeliveryType_1.V1DeliveryCheckoutRequestDeliveryTypeToJSON)(value['delivery_type']), + 'items': value['items'] == null ? undefined : (value['items'].map(V1DeliveryCheckoutRequestItem_1.V1DeliveryCheckoutRequestItemToJSON)), + }; +} diff --git a/dist/models/V1DeliveryCheckoutRequestDeliveryType.d.ts b/dist/models/V1DeliveryCheckoutRequestDeliveryType.d.ts new file mode 100644 index 0000000..f62f4da --- /dev/null +++ b/dist/models/V1DeliveryCheckoutRequestDeliveryType.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryTypeCourier } from './DeliveryTypeCourier'; +import type { DeliveryTypePickUp } from './DeliveryTypePickUp'; +/** + * Способ доставки. + * @export + * @interface V1DeliveryCheckoutRequestDeliveryType + */ +export interface V1DeliveryCheckoutRequestDeliveryType { + /** + * + * @type {DeliveryTypeCourier} + * @memberof V1DeliveryCheckoutRequestDeliveryType + */ + courier?: DeliveryTypeCourier; + /** + * + * @type {DeliveryTypePickUp} + * @memberof V1DeliveryCheckoutRequestDeliveryType + */ + pick_up?: DeliveryTypePickUp; +} +/** + * Check if a given object implements the V1DeliveryCheckoutRequestDeliveryType interface. + */ +export declare function instanceOfV1DeliveryCheckoutRequestDeliveryType(value: object): value is V1DeliveryCheckoutRequestDeliveryType; +export declare function V1DeliveryCheckoutRequestDeliveryTypeFromJSON(json: any): V1DeliveryCheckoutRequestDeliveryType; +export declare function V1DeliveryCheckoutRequestDeliveryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckoutRequestDeliveryType; +export declare function V1DeliveryCheckoutRequestDeliveryTypeToJSON(value?: V1DeliveryCheckoutRequestDeliveryType | null): any; diff --git a/dist/models/V1DeliveryCheckoutRequestDeliveryType.js b/dist/models/V1DeliveryCheckoutRequestDeliveryType.js new file mode 100644 index 0000000..9497d7c --- /dev/null +++ b/dist/models/V1DeliveryCheckoutRequestDeliveryType.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryCheckoutRequestDeliveryType = instanceOfV1DeliveryCheckoutRequestDeliveryType; +exports.V1DeliveryCheckoutRequestDeliveryTypeFromJSON = V1DeliveryCheckoutRequestDeliveryTypeFromJSON; +exports.V1DeliveryCheckoutRequestDeliveryTypeFromJSONTyped = V1DeliveryCheckoutRequestDeliveryTypeFromJSONTyped; +exports.V1DeliveryCheckoutRequestDeliveryTypeToJSON = V1DeliveryCheckoutRequestDeliveryTypeToJSON; +const DeliveryTypeCourier_1 = require("./DeliveryTypeCourier"); +const DeliveryTypePickUp_1 = require("./DeliveryTypePickUp"); +/** + * Check if a given object implements the V1DeliveryCheckoutRequestDeliveryType interface. + */ +function instanceOfV1DeliveryCheckoutRequestDeliveryType(value) { + return true; +} +function V1DeliveryCheckoutRequestDeliveryTypeFromJSON(json) { + return V1DeliveryCheckoutRequestDeliveryTypeFromJSONTyped(json, false); +} +function V1DeliveryCheckoutRequestDeliveryTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier': json['courier'] == null ? undefined : (0, DeliveryTypeCourier_1.DeliveryTypeCourierFromJSON)(json['courier']), + 'pick_up': json['pick_up'] == null ? undefined : (0, DeliveryTypePickUp_1.DeliveryTypePickUpFromJSON)(json['pick_up']), + }; +} +function V1DeliveryCheckoutRequestDeliveryTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier': (0, DeliveryTypeCourier_1.DeliveryTypeCourierToJSON)(value['courier']), + 'pick_up': (0, DeliveryTypePickUp_1.DeliveryTypePickUpToJSON)(value['pick_up']), + }; +} diff --git a/dist/models/V1DeliveryCheckoutRequestItem.d.ts b/dist/models/V1DeliveryCheckoutRequestItem.d.ts new file mode 100644 index 0000000..921e733 --- /dev/null +++ b/dist/models/V1DeliveryCheckoutRequestItem.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeliveryCheckoutRequestItem + */ +export interface V1DeliveryCheckoutRequestItem { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1DeliveryCheckoutRequestItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1DeliveryCheckoutRequestItem + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1DeliveryCheckoutRequestItem + */ + sku?: number; +} +/** + * Check if a given object implements the V1DeliveryCheckoutRequestItem interface. + */ +export declare function instanceOfV1DeliveryCheckoutRequestItem(value: object): value is V1DeliveryCheckoutRequestItem; +export declare function V1DeliveryCheckoutRequestItemFromJSON(json: any): V1DeliveryCheckoutRequestItem; +export declare function V1DeliveryCheckoutRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckoutRequestItem; +export declare function V1DeliveryCheckoutRequestItemToJSON(value?: V1DeliveryCheckoutRequestItem | null): any; diff --git a/dist/models/V1DeliveryCheckoutRequestItem.js b/dist/models/V1DeliveryCheckoutRequestItem.js new file mode 100644 index 0000000..d187964 --- /dev/null +++ b/dist/models/V1DeliveryCheckoutRequestItem.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryCheckoutRequestItem = instanceOfV1DeliveryCheckoutRequestItem; +exports.V1DeliveryCheckoutRequestItemFromJSON = V1DeliveryCheckoutRequestItemFromJSON; +exports.V1DeliveryCheckoutRequestItemFromJSONTyped = V1DeliveryCheckoutRequestItemFromJSONTyped; +exports.V1DeliveryCheckoutRequestItemToJSON = V1DeliveryCheckoutRequestItemToJSON; +/** + * Check if a given object implements the V1DeliveryCheckoutRequestItem interface. + */ +function instanceOfV1DeliveryCheckoutRequestItem(value) { + return true; +} +function V1DeliveryCheckoutRequestItemFromJSON(json) { + return V1DeliveryCheckoutRequestItemFromJSONTyped(json, false); +} +function V1DeliveryCheckoutRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1DeliveryCheckoutRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1DeliveryCheckoutResponse.d.ts b/dist/models/V1DeliveryCheckoutResponse.d.ts new file mode 100644 index 0000000..a2b6f03 --- /dev/null +++ b/dist/models/V1DeliveryCheckoutResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryCheckoutResponseSplit } from './DeliveryCheckoutResponseSplit'; +/** + * + * @export + * @interface V1DeliveryCheckoutResponse + */ +export interface V1DeliveryCheckoutResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof V1DeliveryCheckoutResponse + */ + splits?: Array; +} +/** + * Check if a given object implements the V1DeliveryCheckoutResponse interface. + */ +export declare function instanceOfV1DeliveryCheckoutResponse(value: object): value is V1DeliveryCheckoutResponse; +export declare function V1DeliveryCheckoutResponseFromJSON(json: any): V1DeliveryCheckoutResponse; +export declare function V1DeliveryCheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryCheckoutResponse; +export declare function V1DeliveryCheckoutResponseToJSON(value?: V1DeliveryCheckoutResponse | null): any; diff --git a/dist/models/V1DeliveryCheckoutResponse.js b/dist/models/V1DeliveryCheckoutResponse.js new file mode 100644 index 0000000..e397ce4 --- /dev/null +++ b/dist/models/V1DeliveryCheckoutResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryCheckoutResponse = instanceOfV1DeliveryCheckoutResponse; +exports.V1DeliveryCheckoutResponseFromJSON = V1DeliveryCheckoutResponseFromJSON; +exports.V1DeliveryCheckoutResponseFromJSONTyped = V1DeliveryCheckoutResponseFromJSONTyped; +exports.V1DeliveryCheckoutResponseToJSON = V1DeliveryCheckoutResponseToJSON; +const DeliveryCheckoutResponseSplit_1 = require("./DeliveryCheckoutResponseSplit"); +/** + * Check if a given object implements the V1DeliveryCheckoutResponse interface. + */ +function instanceOfV1DeliveryCheckoutResponse(value) { + return true; +} +function V1DeliveryCheckoutResponseFromJSON(json) { + return V1DeliveryCheckoutResponseFromJSONTyped(json, false); +} +function V1DeliveryCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'splits': json['splits'] == null ? undefined : (json['splits'].map(DeliveryCheckoutResponseSplit_1.DeliveryCheckoutResponseSplitFromJSON)), + }; +} +function V1DeliveryCheckoutResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'splits': value['splits'] == null ? undefined : (value['splits'].map(DeliveryCheckoutResponseSplit_1.DeliveryCheckoutResponseSplitToJSON)), + }; +} diff --git a/dist/models/V1DeliveryDetailsDirectDetails.d.ts b/dist/models/V1DeliveryDetailsDirectDetails.d.ts new file mode 100644 index 0000000..7580323 --- /dev/null +++ b/dist/models/V1DeliveryDetailsDirectDetails.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DirectDetailsTimeslotDetails } from './DirectDetailsTimeslotDetails'; +import type { DirectDetailsByTplDetails } from './DirectDetailsByTplDetails'; +import type { DirectDetailsBySellerDetails } from './DirectDetailsBySellerDetails'; +/** + * Детали доставки продавцом. + * @export + * @interface V1DeliveryDetailsDirectDetails + */ +export interface V1DeliveryDetailsDirectDetails { + /** + * + * @type {DirectDetailsBySellerDetails} + * @memberof V1DeliveryDetailsDirectDetails + */ + by_seller_details?: DirectDetailsBySellerDetails; + /** + * + * @type {DirectDetailsByTplDetails} + * @memberof V1DeliveryDetailsDirectDetails + */ + by_tpl_details?: DirectDetailsByTplDetails; + /** + * + * @type {DirectDetailsTimeslotDetails} + * @memberof V1DeliveryDetailsDirectDetails + */ + timeslot_details?: DirectDetailsTimeslotDetails; +} +/** + * Check if a given object implements the V1DeliveryDetailsDirectDetails interface. + */ +export declare function instanceOfV1DeliveryDetailsDirectDetails(value: object): value is V1DeliveryDetailsDirectDetails; +export declare function V1DeliveryDetailsDirectDetailsFromJSON(json: any): V1DeliveryDetailsDirectDetails; +export declare function V1DeliveryDetailsDirectDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryDetailsDirectDetails; +export declare function V1DeliveryDetailsDirectDetailsToJSON(value?: V1DeliveryDetailsDirectDetails | null): any; diff --git a/dist/models/V1DeliveryDetailsDirectDetails.js b/dist/models/V1DeliveryDetailsDirectDetails.js new file mode 100644 index 0000000..690aaab --- /dev/null +++ b/dist/models/V1DeliveryDetailsDirectDetails.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryDetailsDirectDetails = instanceOfV1DeliveryDetailsDirectDetails; +exports.V1DeliveryDetailsDirectDetailsFromJSON = V1DeliveryDetailsDirectDetailsFromJSON; +exports.V1DeliveryDetailsDirectDetailsFromJSONTyped = V1DeliveryDetailsDirectDetailsFromJSONTyped; +exports.V1DeliveryDetailsDirectDetailsToJSON = V1DeliveryDetailsDirectDetailsToJSON; +const DirectDetailsTimeslotDetails_1 = require("./DirectDetailsTimeslotDetails"); +const DirectDetailsByTplDetails_1 = require("./DirectDetailsByTplDetails"); +const DirectDetailsBySellerDetails_1 = require("./DirectDetailsBySellerDetails"); +/** + * Check if a given object implements the V1DeliveryDetailsDirectDetails interface. + */ +function instanceOfV1DeliveryDetailsDirectDetails(value) { + return true; +} +function V1DeliveryDetailsDirectDetailsFromJSON(json) { + return V1DeliveryDetailsDirectDetailsFromJSONTyped(json, false); +} +function V1DeliveryDetailsDirectDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'by_seller_details': json['by_seller_details'] == null ? undefined : (0, DirectDetailsBySellerDetails_1.DirectDetailsBySellerDetailsFromJSON)(json['by_seller_details']), + 'by_tpl_details': json['by_tpl_details'] == null ? undefined : (0, DirectDetailsByTplDetails_1.DirectDetailsByTplDetailsFromJSON)(json['by_tpl_details']), + 'timeslot_details': json['timeslot_details'] == null ? undefined : (0, DirectDetailsTimeslotDetails_1.DirectDetailsTimeslotDetailsFromJSON)(json['timeslot_details']), + }; +} +function V1DeliveryDetailsDirectDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'by_seller_details': (0, DirectDetailsBySellerDetails_1.DirectDetailsBySellerDetailsToJSON)(value['by_seller_details']), + 'by_tpl_details': (0, DirectDetailsByTplDetails_1.DirectDetailsByTplDetailsToJSON)(value['by_tpl_details']), + 'timeslot_details': (0, DirectDetailsTimeslotDetails_1.DirectDetailsTimeslotDetailsToJSON)(value['timeslot_details']), + }; +} diff --git a/dist/models/V1DeliveryDetailsPickUpDetails.d.ts b/dist/models/V1DeliveryDetailsPickUpDetails.d.ts new file mode 100644 index 0000000..fc49acd --- /dev/null +++ b/dist/models/V1DeliveryDetailsPickUpDetails.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали пункта выдачи. + * @export + * @interface V1DeliveryDetailsPickUpDetails + */ +export interface V1DeliveryDetailsPickUpDetails { + /** + * Адрес. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + address?: string; + /** + * Комментарий. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + comment?: string; + /** + * Дата доставки. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + date?: string; + /** + * ФИО отправителя. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + sender_name?: string; + /** + * Номер телефона отправителя. + * @type {string} + * @memberof V1DeliveryDetailsPickUpDetails + */ + sender_phone?: string; +} +/** + * Check if a given object implements the V1DeliveryDetailsPickUpDetails interface. + */ +export declare function instanceOfV1DeliveryDetailsPickUpDetails(value: object): value is V1DeliveryDetailsPickUpDetails; +export declare function V1DeliveryDetailsPickUpDetailsFromJSON(json: any): V1DeliveryDetailsPickUpDetails; +export declare function V1DeliveryDetailsPickUpDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryDetailsPickUpDetails; +export declare function V1DeliveryDetailsPickUpDetailsToJSON(value?: V1DeliveryDetailsPickUpDetails | null): any; diff --git a/dist/models/V1DeliveryDetailsPickUpDetails.js b/dist/models/V1DeliveryDetailsPickUpDetails.js new file mode 100644 index 0000000..246e5b0 --- /dev/null +++ b/dist/models/V1DeliveryDetailsPickUpDetails.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryDetailsPickUpDetails = instanceOfV1DeliveryDetailsPickUpDetails; +exports.V1DeliveryDetailsPickUpDetailsFromJSON = V1DeliveryDetailsPickUpDetailsFromJSON; +exports.V1DeliveryDetailsPickUpDetailsFromJSONTyped = V1DeliveryDetailsPickUpDetailsFromJSONTyped; +exports.V1DeliveryDetailsPickUpDetailsToJSON = V1DeliveryDetailsPickUpDetailsToJSON; +/** + * Check if a given object implements the V1DeliveryDetailsPickUpDetails interface. + */ +function instanceOfV1DeliveryDetailsPickUpDetails(value) { + return true; +} +function V1DeliveryDetailsPickUpDetailsFromJSON(json) { + return V1DeliveryDetailsPickUpDetailsFromJSONTyped(json, false); +} +function V1DeliveryDetailsPickUpDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'date': json['date'] == null ? undefined : json['date'], + 'sender_name': json['sender_name'] == null ? undefined : json['sender_name'], + 'sender_phone': json['sender_phone'] == null ? undefined : json['sender_phone'], + }; +} +function V1DeliveryDetailsPickUpDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'comment': value['comment'], + 'date': value['date'], + 'sender_name': value['sender_name'], + 'sender_phone': value['sender_phone'], + }; +} diff --git a/dist/models/V1DeliveryMapRequest.d.ts b/dist/models/V1DeliveryMapRequest.d.ts new file mode 100644 index 0000000..1623827 --- /dev/null +++ b/dist/models/V1DeliveryMapRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryMapRequestViewport } from './V1DeliveryMapRequestViewport'; +/** + * + * @export + * @interface V1DeliveryMapRequest + */ +export interface V1DeliveryMapRequest { + /** + * + * @type {V1DeliveryMapRequestViewport} + * @memberof V1DeliveryMapRequest + */ + viewport?: V1DeliveryMapRequestViewport; + /** + * Масштаб карты. + * @type {number} + * @memberof V1DeliveryMapRequest + */ + zoom?: number; +} +/** + * Check if a given object implements the V1DeliveryMapRequest interface. + */ +export declare function instanceOfV1DeliveryMapRequest(value: object): value is V1DeliveryMapRequest; +export declare function V1DeliveryMapRequestFromJSON(json: any): V1DeliveryMapRequest; +export declare function V1DeliveryMapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryMapRequest; +export declare function V1DeliveryMapRequestToJSON(value?: V1DeliveryMapRequest | null): any; diff --git a/dist/models/V1DeliveryMapRequest.js b/dist/models/V1DeliveryMapRequest.js new file mode 100644 index 0000000..74128ba --- /dev/null +++ b/dist/models/V1DeliveryMapRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryMapRequest = instanceOfV1DeliveryMapRequest; +exports.V1DeliveryMapRequestFromJSON = V1DeliveryMapRequestFromJSON; +exports.V1DeliveryMapRequestFromJSONTyped = V1DeliveryMapRequestFromJSONTyped; +exports.V1DeliveryMapRequestToJSON = V1DeliveryMapRequestToJSON; +const V1DeliveryMapRequestViewport_1 = require("./V1DeliveryMapRequestViewport"); +/** + * Check if a given object implements the V1DeliveryMapRequest interface. + */ +function instanceOfV1DeliveryMapRequest(value) { + return true; +} +function V1DeliveryMapRequestFromJSON(json) { + return V1DeliveryMapRequestFromJSONTyped(json, false); +} +function V1DeliveryMapRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'viewport': json['viewport'] == null ? undefined : (0, V1DeliveryMapRequestViewport_1.V1DeliveryMapRequestViewportFromJSON)(json['viewport']), + 'zoom': json['zoom'] == null ? undefined : json['zoom'], + }; +} +function V1DeliveryMapRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'viewport': (0, V1DeliveryMapRequestViewport_1.V1DeliveryMapRequestViewportToJSON)(value['viewport']), + 'zoom': value['zoom'], + }; +} diff --git a/dist/models/V1DeliveryMapRequestViewport.d.ts b/dist/models/V1DeliveryMapRequestViewport.d.ts new file mode 100644 index 0000000..a7b2bca --- /dev/null +++ b/dist/models/V1DeliveryMapRequestViewport.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMapRequestViewportCoordinatesRight } from './DeliveryMapRequestViewportCoordinatesRight'; +import type { DeliveryMapRequestViewportCoordinatesLeft } from './DeliveryMapRequestViewportCoordinatesLeft'; +/** + * Область карты для получения кластеров и точек самовывоза. + * @export + * @interface V1DeliveryMapRequestViewport + */ +export interface V1DeliveryMapRequestViewport { + /** + * + * @type {DeliveryMapRequestViewportCoordinatesLeft} + * @memberof V1DeliveryMapRequestViewport + */ + left_bottom?: DeliveryMapRequestViewportCoordinatesLeft; + /** + * + * @type {DeliveryMapRequestViewportCoordinatesRight} + * @memberof V1DeliveryMapRequestViewport + */ + right_top?: DeliveryMapRequestViewportCoordinatesRight; +} +/** + * Check if a given object implements the V1DeliveryMapRequestViewport interface. + */ +export declare function instanceOfV1DeliveryMapRequestViewport(value: object): value is V1DeliveryMapRequestViewport; +export declare function V1DeliveryMapRequestViewportFromJSON(json: any): V1DeliveryMapRequestViewport; +export declare function V1DeliveryMapRequestViewportFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryMapRequestViewport; +export declare function V1DeliveryMapRequestViewportToJSON(value?: V1DeliveryMapRequestViewport | null): any; diff --git a/dist/models/V1DeliveryMapRequestViewport.js b/dist/models/V1DeliveryMapRequestViewport.js new file mode 100644 index 0000000..8388683 --- /dev/null +++ b/dist/models/V1DeliveryMapRequestViewport.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryMapRequestViewport = instanceOfV1DeliveryMapRequestViewport; +exports.V1DeliveryMapRequestViewportFromJSON = V1DeliveryMapRequestViewportFromJSON; +exports.V1DeliveryMapRequestViewportFromJSONTyped = V1DeliveryMapRequestViewportFromJSONTyped; +exports.V1DeliveryMapRequestViewportToJSON = V1DeliveryMapRequestViewportToJSON; +const DeliveryMapRequestViewportCoordinatesRight_1 = require("./DeliveryMapRequestViewportCoordinatesRight"); +const DeliveryMapRequestViewportCoordinatesLeft_1 = require("./DeliveryMapRequestViewportCoordinatesLeft"); +/** + * Check if a given object implements the V1DeliveryMapRequestViewport interface. + */ +function instanceOfV1DeliveryMapRequestViewport(value) { + return true; +} +function V1DeliveryMapRequestViewportFromJSON(json) { + return V1DeliveryMapRequestViewportFromJSONTyped(json, false); +} +function V1DeliveryMapRequestViewportFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'left_bottom': json['left_bottom'] == null ? undefined : (0, DeliveryMapRequestViewportCoordinatesLeft_1.DeliveryMapRequestViewportCoordinatesLeftFromJSON)(json['left_bottom']), + 'right_top': json['right_top'] == null ? undefined : (0, DeliveryMapRequestViewportCoordinatesRight_1.DeliveryMapRequestViewportCoordinatesRightFromJSON)(json['right_top']), + }; +} +function V1DeliveryMapRequestViewportToJSON(value) { + if (value == null) { + return value; + } + return { + 'left_bottom': (0, DeliveryMapRequestViewportCoordinatesLeft_1.DeliveryMapRequestViewportCoordinatesLeftToJSON)(value['left_bottom']), + 'right_top': (0, DeliveryMapRequestViewportCoordinatesRight_1.DeliveryMapRequestViewportCoordinatesRightToJSON)(value['right_top']), + }; +} diff --git a/dist/models/V1DeliveryMapResponse.d.ts b/dist/models/V1DeliveryMapResponse.d.ts new file mode 100644 index 0000000..cd2c987 --- /dev/null +++ b/dist/models/V1DeliveryMapResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMapResponseCluster } from './DeliveryMapResponseCluster'; +/** + * + * @export + * @interface V1DeliveryMapResponse + */ +export interface V1DeliveryMapResponse { + /** + * Кластеры. + * @type {Array} + * @memberof V1DeliveryMapResponse + */ + clusters?: Array; +} +/** + * Check if a given object implements the V1DeliveryMapResponse interface. + */ +export declare function instanceOfV1DeliveryMapResponse(value: object): value is V1DeliveryMapResponse; +export declare function V1DeliveryMapResponseFromJSON(json: any): V1DeliveryMapResponse; +export declare function V1DeliveryMapResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryMapResponse; +export declare function V1DeliveryMapResponseToJSON(value?: V1DeliveryMapResponse | null): any; diff --git a/dist/models/V1DeliveryMapResponse.js b/dist/models/V1DeliveryMapResponse.js new file mode 100644 index 0000000..c999435 --- /dev/null +++ b/dist/models/V1DeliveryMapResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryMapResponse = instanceOfV1DeliveryMapResponse; +exports.V1DeliveryMapResponseFromJSON = V1DeliveryMapResponseFromJSON; +exports.V1DeliveryMapResponseFromJSONTyped = V1DeliveryMapResponseFromJSONTyped; +exports.V1DeliveryMapResponseToJSON = V1DeliveryMapResponseToJSON; +const DeliveryMapResponseCluster_1 = require("./DeliveryMapResponseCluster"); +/** + * Check if a given object implements the V1DeliveryMapResponse interface. + */ +function instanceOfV1DeliveryMapResponse(value) { + return true; +} +function V1DeliveryMapResponseFromJSON(json) { + return V1DeliveryMapResponseFromJSONTyped(json, false); +} +function V1DeliveryMapResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'clusters': json['clusters'] == null ? undefined : (json['clusters'].map(DeliveryMapResponseCluster_1.DeliveryMapResponseClusterFromJSON)), + }; +} +function V1DeliveryMapResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'clusters': value['clusters'] == null ? undefined : (value['clusters'].map(DeliveryMapResponseCluster_1.DeliveryMapResponseClusterToJSON)), + }; +} diff --git a/dist/models/V1DeliveryPointInfoRequest.d.ts b/dist/models/V1DeliveryPointInfoRequest.d.ts new file mode 100644 index 0000000..7951974 --- /dev/null +++ b/dist/models/V1DeliveryPointInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DeliveryPointInfoRequest + */ +export interface V1DeliveryPointInfoRequest { + /** + * Идентификаторы точек на карте. + * @type {Array} + * @memberof V1DeliveryPointInfoRequest + */ + map_point_ids?: Array; +} +/** + * Check if a given object implements the V1DeliveryPointInfoRequest interface. + */ +export declare function instanceOfV1DeliveryPointInfoRequest(value: object): value is V1DeliveryPointInfoRequest; +export declare function V1DeliveryPointInfoRequestFromJSON(json: any): V1DeliveryPointInfoRequest; +export declare function V1DeliveryPointInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointInfoRequest; +export declare function V1DeliveryPointInfoRequestToJSON(value?: V1DeliveryPointInfoRequest | null): any; diff --git a/dist/models/V1DeliveryPointInfoRequest.js b/dist/models/V1DeliveryPointInfoRequest.js new file mode 100644 index 0000000..366121d --- /dev/null +++ b/dist/models/V1DeliveryPointInfoRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryPointInfoRequest = instanceOfV1DeliveryPointInfoRequest; +exports.V1DeliveryPointInfoRequestFromJSON = V1DeliveryPointInfoRequestFromJSON; +exports.V1DeliveryPointInfoRequestFromJSONTyped = V1DeliveryPointInfoRequestFromJSONTyped; +exports.V1DeliveryPointInfoRequestToJSON = V1DeliveryPointInfoRequestToJSON; +/** + * Check if a given object implements the V1DeliveryPointInfoRequest interface. + */ +function instanceOfV1DeliveryPointInfoRequest(value) { + return true; +} +function V1DeliveryPointInfoRequestFromJSON(json) { + return V1DeliveryPointInfoRequestFromJSONTyped(json, false); +} +function V1DeliveryPointInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'map_point_ids': json['map_point_ids'] == null ? undefined : json['map_point_ids'], + }; +} +function V1DeliveryPointInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'map_point_ids': value['map_point_ids'], + }; +} diff --git a/dist/models/V1DeliveryPointInfoResponse.d.ts b/dist/models/V1DeliveryPointInfoResponse.d.ts new file mode 100644 index 0000000..2e9e0e4 --- /dev/null +++ b/dist/models/V1DeliveryPointInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryPointInfoResponsePoint } from './V1DeliveryPointInfoResponsePoint'; +/** + * + * @export + * @interface V1DeliveryPointInfoResponse + */ +export interface V1DeliveryPointInfoResponse { + /** + * Информация о пунктах самовывоза. + * @type {Array} + * @memberof V1DeliveryPointInfoResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1DeliveryPointInfoResponse interface. + */ +export declare function instanceOfV1DeliveryPointInfoResponse(value: object): value is V1DeliveryPointInfoResponse; +export declare function V1DeliveryPointInfoResponseFromJSON(json: any): V1DeliveryPointInfoResponse; +export declare function V1DeliveryPointInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointInfoResponse; +export declare function V1DeliveryPointInfoResponseToJSON(value?: V1DeliveryPointInfoResponse | null): any; diff --git a/dist/models/V1DeliveryPointInfoResponse.js b/dist/models/V1DeliveryPointInfoResponse.js new file mode 100644 index 0000000..f6b320c --- /dev/null +++ b/dist/models/V1DeliveryPointInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryPointInfoResponse = instanceOfV1DeliveryPointInfoResponse; +exports.V1DeliveryPointInfoResponseFromJSON = V1DeliveryPointInfoResponseFromJSON; +exports.V1DeliveryPointInfoResponseFromJSONTyped = V1DeliveryPointInfoResponseFromJSONTyped; +exports.V1DeliveryPointInfoResponseToJSON = V1DeliveryPointInfoResponseToJSON; +const V1DeliveryPointInfoResponsePoint_1 = require("./V1DeliveryPointInfoResponsePoint"); +/** + * Check if a given object implements the V1DeliveryPointInfoResponse interface. + */ +function instanceOfV1DeliveryPointInfoResponse(value) { + return true; +} +function V1DeliveryPointInfoResponseFromJSON(json) { + return V1DeliveryPointInfoResponseFromJSONTyped(json, false); +} +function V1DeliveryPointInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'] == null ? undefined : (json['points'].map(V1DeliveryPointInfoResponsePoint_1.V1DeliveryPointInfoResponsePointFromJSON)), + }; +} +function V1DeliveryPointInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'points': value['points'] == null ? undefined : (value['points'].map(V1DeliveryPointInfoResponsePoint_1.V1DeliveryPointInfoResponsePointToJSON)), + }; +} diff --git a/dist/models/V1DeliveryPointInfoResponsePoint.d.ts b/dist/models/V1DeliveryPointInfoResponsePoint.d.ts new file mode 100644 index 0000000..0fe9eb2 --- /dev/null +++ b/dist/models/V1DeliveryPointInfoResponsePoint.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryPointInfoResponsePointDeliveryMethod } from './DeliveryPointInfoResponsePointDeliveryMethod'; +/** + * + * @export + * @interface V1DeliveryPointInfoResponsePoint + */ +export interface V1DeliveryPointInfoResponsePoint { + /** + * + * @type {DeliveryPointInfoResponsePointDeliveryMethod} + * @memberof V1DeliveryPointInfoResponsePoint + */ + delivery_method?: DeliveryPointInfoResponsePointDeliveryMethod; + /** + * `true`, если пункт самовывоза доступен. + * + * @type {boolean} + * @memberof V1DeliveryPointInfoResponsePoint + */ + enabled?: boolean; +} +/** + * Check if a given object implements the V1DeliveryPointInfoResponsePoint interface. + */ +export declare function instanceOfV1DeliveryPointInfoResponsePoint(value: object): value is V1DeliveryPointInfoResponsePoint; +export declare function V1DeliveryPointInfoResponsePointFromJSON(json: any): V1DeliveryPointInfoResponsePoint; +export declare function V1DeliveryPointInfoResponsePointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointInfoResponsePoint; +export declare function V1DeliveryPointInfoResponsePointToJSON(value?: V1DeliveryPointInfoResponsePoint | null): any; diff --git a/dist/models/V1DeliveryPointInfoResponsePoint.js b/dist/models/V1DeliveryPointInfoResponsePoint.js new file mode 100644 index 0000000..974aa0e --- /dev/null +++ b/dist/models/V1DeliveryPointInfoResponsePoint.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryPointInfoResponsePoint = instanceOfV1DeliveryPointInfoResponsePoint; +exports.V1DeliveryPointInfoResponsePointFromJSON = V1DeliveryPointInfoResponsePointFromJSON; +exports.V1DeliveryPointInfoResponsePointFromJSONTyped = V1DeliveryPointInfoResponsePointFromJSONTyped; +exports.V1DeliveryPointInfoResponsePointToJSON = V1DeliveryPointInfoResponsePointToJSON; +const DeliveryPointInfoResponsePointDeliveryMethod_1 = require("./DeliveryPointInfoResponsePointDeliveryMethod"); +/** + * Check if a given object implements the V1DeliveryPointInfoResponsePoint interface. + */ +function instanceOfV1DeliveryPointInfoResponsePoint(value) { + return true; +} +function V1DeliveryPointInfoResponsePointFromJSON(json) { + return V1DeliveryPointInfoResponsePointFromJSONTyped(json, false); +} +function V1DeliveryPointInfoResponsePointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method': json['delivery_method'] == null ? undefined : (0, DeliveryPointInfoResponsePointDeliveryMethod_1.DeliveryPointInfoResponsePointDeliveryMethodFromJSON)(json['delivery_method']), + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + }; +} +function V1DeliveryPointInfoResponsePointToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method': (0, DeliveryPointInfoResponsePointDeliveryMethod_1.DeliveryPointInfoResponsePointDeliveryMethodToJSON)(value['delivery_method']), + 'enabled': value['enabled'], + }; +} diff --git a/dist/models/V1DeliveryPointListResponse.d.ts b/dist/models/V1DeliveryPointListResponse.d.ts new file mode 100644 index 0000000..642f253 --- /dev/null +++ b/dist/models/V1DeliveryPointListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryPointListResponsePoint } from './V1DeliveryPointListResponsePoint'; +/** + * + * @export + * @interface V1DeliveryPointListResponse + */ +export interface V1DeliveryPointListResponse { + /** + * Точки самовывоза. + * @type {Array} + * @memberof V1DeliveryPointListResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1DeliveryPointListResponse interface. + */ +export declare function instanceOfV1DeliveryPointListResponse(value: object): value is V1DeliveryPointListResponse; +export declare function V1DeliveryPointListResponseFromJSON(json: any): V1DeliveryPointListResponse; +export declare function V1DeliveryPointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointListResponse; +export declare function V1DeliveryPointListResponseToJSON(value?: V1DeliveryPointListResponse | null): any; diff --git a/dist/models/V1DeliveryPointListResponse.js b/dist/models/V1DeliveryPointListResponse.js new file mode 100644 index 0000000..c7a6563 --- /dev/null +++ b/dist/models/V1DeliveryPointListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryPointListResponse = instanceOfV1DeliveryPointListResponse; +exports.V1DeliveryPointListResponseFromJSON = V1DeliveryPointListResponseFromJSON; +exports.V1DeliveryPointListResponseFromJSONTyped = V1DeliveryPointListResponseFromJSONTyped; +exports.V1DeliveryPointListResponseToJSON = V1DeliveryPointListResponseToJSON; +const V1DeliveryPointListResponsePoint_1 = require("./V1DeliveryPointListResponsePoint"); +/** + * Check if a given object implements the V1DeliveryPointListResponse interface. + */ +function instanceOfV1DeliveryPointListResponse(value) { + return true; +} +function V1DeliveryPointListResponseFromJSON(json) { + return V1DeliveryPointListResponseFromJSONTyped(json, false); +} +function V1DeliveryPointListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'] == null ? undefined : (json['points'].map(V1DeliveryPointListResponsePoint_1.V1DeliveryPointListResponsePointFromJSON)), + }; +} +function V1DeliveryPointListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'points': value['points'] == null ? undefined : (value['points'].map(V1DeliveryPointListResponsePoint_1.V1DeliveryPointListResponsePointToJSON)), + }; +} diff --git a/dist/models/V1DeliveryPointListResponsePoint.d.ts b/dist/models/V1DeliveryPointListResponsePoint.d.ts new file mode 100644 index 0000000..8365199 --- /dev/null +++ b/dist/models/V1DeliveryPointListResponsePoint.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryPointListResponsePointCoordinates } from './DeliveryPointListResponsePointCoordinates'; +/** + * Информация о точке самовывоза. + * @export + * @interface V1DeliveryPointListResponsePoint + */ +export interface V1DeliveryPointListResponsePoint { + /** + * + * @type {DeliveryPointListResponsePointCoordinates} + * @memberof V1DeliveryPointListResponsePoint + */ + coordinate?: DeliveryPointListResponsePointCoordinates; + /** + * Идентификатор точки на карте. + * @type {number} + * @memberof V1DeliveryPointListResponsePoint + */ + map_point_id?: number; +} +/** + * Check if a given object implements the V1DeliveryPointListResponsePoint interface. + */ +export declare function instanceOfV1DeliveryPointListResponsePoint(value: object): value is V1DeliveryPointListResponsePoint; +export declare function V1DeliveryPointListResponsePointFromJSON(json: any): V1DeliveryPointListResponsePoint; +export declare function V1DeliveryPointListResponsePointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DeliveryPointListResponsePoint; +export declare function V1DeliveryPointListResponsePointToJSON(value?: V1DeliveryPointListResponsePoint | null): any; diff --git a/dist/models/V1DeliveryPointListResponsePoint.js b/dist/models/V1DeliveryPointListResponsePoint.js new file mode 100644 index 0000000..0825120 --- /dev/null +++ b/dist/models/V1DeliveryPointListResponsePoint.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DeliveryPointListResponsePoint = instanceOfV1DeliveryPointListResponsePoint; +exports.V1DeliveryPointListResponsePointFromJSON = V1DeliveryPointListResponsePointFromJSON; +exports.V1DeliveryPointListResponsePointFromJSONTyped = V1DeliveryPointListResponsePointFromJSONTyped; +exports.V1DeliveryPointListResponsePointToJSON = V1DeliveryPointListResponsePointToJSON; +const DeliveryPointListResponsePointCoordinates_1 = require("./DeliveryPointListResponsePointCoordinates"); +/** + * Check if a given object implements the V1DeliveryPointListResponsePoint interface. + */ +function instanceOfV1DeliveryPointListResponsePoint(value) { + return true; +} +function V1DeliveryPointListResponsePointFromJSON(json) { + return V1DeliveryPointListResponsePointFromJSONTyped(json, false); +} +function V1DeliveryPointListResponsePointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinate': json['coordinate'] == null ? undefined : (0, DeliveryPointListResponsePointCoordinates_1.DeliveryPointListResponsePointCoordinatesFromJSON)(json['coordinate']), + 'map_point_id': json['map_point_id'] == null ? undefined : json['map_point_id'], + }; +} +function V1DeliveryPointListResponsePointToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinate': (0, DeliveryPointListResponsePointCoordinates_1.DeliveryPointListResponsePointCoordinatesToJSON)(value['coordinate']), + 'map_point_id': value['map_point_id'], + }; +} diff --git a/dist/models/V1DiscountTaskStatus.d.ts b/dist/models/V1DiscountTaskStatus.d.ts new file mode 100644 index 0000000..3335927 --- /dev/null +++ b/dist/models/V1DiscountTaskStatus.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `NEW` — новая, + * - `SEEN` — просмотренная, + * - `APPROVED` — одобренная, + * - `PARTLY_APPROVED` — одобренная частично, + * - `DECLINED` — отклонённая, + * - `AUTO_DECLINED` — отклонена автоматически, + * - `DECLINED_BY_USER` — отклонена покупателем, + * - `COUPON` — скидка по купону, + * - `PURCHASED` — купленная. + * + * @export + */ +export declare const V1DiscountTaskStatus: { + readonly NEW: "NEW"; + readonly SEEN: "SEEN"; + readonly APPROVED: "APPROVED"; + readonly PARTLY_APPROVED: "PARTLY_APPROVED"; + readonly DECLINED: "DECLINED"; + readonly AUTO_DECLINED: "AUTO_DECLINED"; + readonly DECLINED_BY_USER: "DECLINED_BY_USER"; + readonly COUPON: "COUPON"; + readonly PURCHASED: "PURCHASED"; +}; +export type V1DiscountTaskStatus = typeof V1DiscountTaskStatus[keyof typeof V1DiscountTaskStatus]; +export declare function instanceOfV1DiscountTaskStatus(value: any): boolean; +export declare function V1DiscountTaskStatusFromJSON(json: any): V1DiscountTaskStatus; +export declare function V1DiscountTaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DiscountTaskStatus; +export declare function V1DiscountTaskStatusToJSON(value?: V1DiscountTaskStatus | null): any; diff --git a/dist/models/V1DiscountTaskStatus.js b/dist/models/V1DiscountTaskStatus.js new file mode 100644 index 0000000..7155a4e --- /dev/null +++ b/dist/models/V1DiscountTaskStatus.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DiscountTaskStatus = void 0; +exports.instanceOfV1DiscountTaskStatus = instanceOfV1DiscountTaskStatus; +exports.V1DiscountTaskStatusFromJSON = V1DiscountTaskStatusFromJSON; +exports.V1DiscountTaskStatusFromJSONTyped = V1DiscountTaskStatusFromJSONTyped; +exports.V1DiscountTaskStatusToJSON = V1DiscountTaskStatusToJSON; +/** + * Статус заявки на скидку: + * - `NEW` — новая, + * - `SEEN` — просмотренная, + * - `APPROVED` — одобренная, + * - `PARTLY_APPROVED` — одобренная частично, + * - `DECLINED` — отклонённая, + * - `AUTO_DECLINED` — отклонена автоматически, + * - `DECLINED_BY_USER` — отклонена покупателем, + * - `COUPON` — скидка по купону, + * - `PURCHASED` — купленная. + * + * @export + */ +exports.V1DiscountTaskStatus = { + NEW: 'NEW', + SEEN: 'SEEN', + APPROVED: 'APPROVED', + PARTLY_APPROVED: 'PARTLY_APPROVED', + DECLINED: 'DECLINED', + AUTO_DECLINED: 'AUTO_DECLINED', + DECLINED_BY_USER: 'DECLINED_BY_USER', + COUPON: 'COUPON', + PURCHASED: 'PURCHASED' +}; +function instanceOfV1DiscountTaskStatus(value) { + for (const key in exports.V1DiscountTaskStatus) { + if (Object.prototype.hasOwnProperty.call(exports.V1DiscountTaskStatus, key)) { + if (exports.V1DiscountTaskStatus[key] === value) { + return true; + } + } + } + return false; +} +function V1DiscountTaskStatusFromJSON(json) { + return V1DiscountTaskStatusFromJSONTyped(json, false); +} +function V1DiscountTaskStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DiscountTaskStatusToJSON(value) { + return value; +} diff --git a/dist/models/V1DraftClusterListRequest.d.ts b/dist/models/V1DraftClusterListRequest.d.ts new file mode 100644 index 0000000..c88bbba --- /dev/null +++ b/dist/models/V1DraftClusterListRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ClusterType } from './V1ClusterType'; +/** + * + * @export + * @interface V1DraftClusterListRequest + */ +export interface V1DraftClusterListRequest { + /** + * Идентификаторы кластеров. + * @type {Array} + * @memberof V1DraftClusterListRequest + */ + cluster_ids?: Array; + /** + * + * @type {V1ClusterType} + * @memberof V1DraftClusterListRequest + */ + cluster_type: V1ClusterType; +} +/** + * Check if a given object implements the V1DraftClusterListRequest interface. + */ +export declare function instanceOfV1DraftClusterListRequest(value: object): value is V1DraftClusterListRequest; +export declare function V1DraftClusterListRequestFromJSON(json: any): V1DraftClusterListRequest; +export declare function V1DraftClusterListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftClusterListRequest; +export declare function V1DraftClusterListRequestToJSON(value?: V1DraftClusterListRequest | null): any; diff --git a/dist/models/V1DraftClusterListRequest.js b/dist/models/V1DraftClusterListRequest.js new file mode 100644 index 0000000..f6bae56 --- /dev/null +++ b/dist/models/V1DraftClusterListRequest.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftClusterListRequest = instanceOfV1DraftClusterListRequest; +exports.V1DraftClusterListRequestFromJSON = V1DraftClusterListRequestFromJSON; +exports.V1DraftClusterListRequestFromJSONTyped = V1DraftClusterListRequestFromJSONTyped; +exports.V1DraftClusterListRequestToJSON = V1DraftClusterListRequestToJSON; +const V1ClusterType_1 = require("./V1ClusterType"); +/** + * Check if a given object implements the V1DraftClusterListRequest interface. + */ +function instanceOfV1DraftClusterListRequest(value) { + if (!('cluster_type' in value) || value['cluster_type'] === undefined) + return false; + return true; +} +function V1DraftClusterListRequestFromJSON(json) { + return V1DraftClusterListRequestFromJSONTyped(json, false); +} +function V1DraftClusterListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_ids': json['cluster_ids'] == null ? undefined : json['cluster_ids'], + 'cluster_type': (0, V1ClusterType_1.V1ClusterTypeFromJSON)(json['cluster_type']), + }; +} +function V1DraftClusterListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_ids': value['cluster_ids'], + 'cluster_type': (0, V1ClusterType_1.V1ClusterTypeToJSON)(value['cluster_type']), + }; +} diff --git a/dist/models/V1DraftClusterListResponse.d.ts b/dist/models/V1DraftClusterListResponse.d.ts new file mode 100644 index 0000000..b90bbf8 --- /dev/null +++ b/dist/models/V1DraftClusterListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftClusterListResponseCluster } from './V1DraftClusterListResponseCluster'; +/** + * + * @export + * @interface V1DraftClusterListResponse + */ +export interface V1DraftClusterListResponse { + /** + * Кластеры. + * @type {Array} + * @memberof V1DraftClusterListResponse + */ + clusters?: Array; +} +/** + * Check if a given object implements the V1DraftClusterListResponse interface. + */ +export declare function instanceOfV1DraftClusterListResponse(value: object): value is V1DraftClusterListResponse; +export declare function V1DraftClusterListResponseFromJSON(json: any): V1DraftClusterListResponse; +export declare function V1DraftClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftClusterListResponse; +export declare function V1DraftClusterListResponseToJSON(value?: V1DraftClusterListResponse | null): any; diff --git a/dist/models/V1DraftClusterListResponse.js b/dist/models/V1DraftClusterListResponse.js new file mode 100644 index 0000000..a189227 --- /dev/null +++ b/dist/models/V1DraftClusterListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftClusterListResponse = instanceOfV1DraftClusterListResponse; +exports.V1DraftClusterListResponseFromJSON = V1DraftClusterListResponseFromJSON; +exports.V1DraftClusterListResponseFromJSONTyped = V1DraftClusterListResponseFromJSONTyped; +exports.V1DraftClusterListResponseToJSON = V1DraftClusterListResponseToJSON; +const V1DraftClusterListResponseCluster_1 = require("./V1DraftClusterListResponseCluster"); +/** + * Check if a given object implements the V1DraftClusterListResponse interface. + */ +function instanceOfV1DraftClusterListResponse(value) { + return true; +} +function V1DraftClusterListResponseFromJSON(json) { + return V1DraftClusterListResponseFromJSONTyped(json, false); +} +function V1DraftClusterListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'clusters': json['clusters'] == null ? undefined : (json['clusters'].map(V1DraftClusterListResponseCluster_1.V1DraftClusterListResponseClusterFromJSON)), + }; +} +function V1DraftClusterListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'clusters': value['clusters'] == null ? undefined : (value['clusters'].map(V1DraftClusterListResponseCluster_1.V1DraftClusterListResponseClusterToJSON)), + }; +} diff --git a/dist/models/V1DraftClusterListResponseCluster.d.ts b/dist/models/V1DraftClusterListResponseCluster.d.ts new file mode 100644 index 0000000..38a33cf --- /dev/null +++ b/dist/models/V1DraftClusterListResponseCluster.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftClusterListResponseLogisticCluster } from './DraftClusterListResponseLogisticCluster'; +/** + * + * @export + * @interface V1DraftClusterListResponseCluster + */ +export interface V1DraftClusterListResponseCluster { + /** + * Идентификатор кластера. + * @type {number} + * @memberof V1DraftClusterListResponseCluster + */ + id?: number; + /** + * Информация о складах кластера. + * @type {Array} + * @memberof V1DraftClusterListResponseCluster + */ + logistic_clusters?: Array; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof V1DraftClusterListResponseCluster + */ + macrolocal_cluster_id?: number; + /** + * Название кластера. + * @type {string} + * @memberof V1DraftClusterListResponseCluster + */ + name?: string; + /** + * Тип кластера: + * - `CLUSTER_TYPE_OZON` — кластер в России, + * - `CLUSTER_TYPE_CIS` — кластер в СНГ. + * + * @type {string} + * @memberof V1DraftClusterListResponseCluster + */ + type?: V1DraftClusterListResponseClusterTypeEnum; +} +/** + * @export + */ +export declare const V1DraftClusterListResponseClusterTypeEnum: { + readonly OZON: "CLUSTER_TYPE_OZON"; + readonly CIS: "CLUSTER_TYPE_CIS"; +}; +export type V1DraftClusterListResponseClusterTypeEnum = typeof V1DraftClusterListResponseClusterTypeEnum[keyof typeof V1DraftClusterListResponseClusterTypeEnum]; +/** + * Check if a given object implements the V1DraftClusterListResponseCluster interface. + */ +export declare function instanceOfV1DraftClusterListResponseCluster(value: object): value is V1DraftClusterListResponseCluster; +export declare function V1DraftClusterListResponseClusterFromJSON(json: any): V1DraftClusterListResponseCluster; +export declare function V1DraftClusterListResponseClusterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftClusterListResponseCluster; +export declare function V1DraftClusterListResponseClusterToJSON(value?: V1DraftClusterListResponseCluster | null): any; diff --git a/dist/models/V1DraftClusterListResponseCluster.js b/dist/models/V1DraftClusterListResponseCluster.js new file mode 100644 index 0000000..6240af7 --- /dev/null +++ b/dist/models/V1DraftClusterListResponseCluster.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftClusterListResponseClusterTypeEnum = void 0; +exports.instanceOfV1DraftClusterListResponseCluster = instanceOfV1DraftClusterListResponseCluster; +exports.V1DraftClusterListResponseClusterFromJSON = V1DraftClusterListResponseClusterFromJSON; +exports.V1DraftClusterListResponseClusterFromJSONTyped = V1DraftClusterListResponseClusterFromJSONTyped; +exports.V1DraftClusterListResponseClusterToJSON = V1DraftClusterListResponseClusterToJSON; +const DraftClusterListResponseLogisticCluster_1 = require("./DraftClusterListResponseLogisticCluster"); +/** + * @export + */ +exports.V1DraftClusterListResponseClusterTypeEnum = { + OZON: 'CLUSTER_TYPE_OZON', + CIS: 'CLUSTER_TYPE_CIS' +}; +/** + * Check if a given object implements the V1DraftClusterListResponseCluster interface. + */ +function instanceOfV1DraftClusterListResponseCluster(value) { + return true; +} +function V1DraftClusterListResponseClusterFromJSON(json) { + return V1DraftClusterListResponseClusterFromJSONTyped(json, false); +} +function V1DraftClusterListResponseClusterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'logistic_clusters': json['logistic_clusters'] == null ? undefined : (json['logistic_clusters'].map(DraftClusterListResponseLogisticCluster_1.DraftClusterListResponseLogisticClusterFromJSON)), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} +function V1DraftClusterListResponseClusterToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'logistic_clusters': value['logistic_clusters'] == null ? undefined : (value['logistic_clusters'].map(DraftClusterListResponseLogisticCluster_1.DraftClusterListResponseLogisticClusterToJSON)), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'name': value['name'], + 'type': value['type'], + }; +} diff --git a/dist/models/V1DraftClusterListResponseWarehouse.d.ts b/dist/models/V1DraftClusterListResponseWarehouse.d.ts new file mode 100644 index 0000000..eb692c9 --- /dev/null +++ b/dist/models/V1DraftClusterListResponseWarehouse.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DraftClusterListResponseWarehouse + */ +export interface V1DraftClusterListResponseWarehouse { + /** + * Название склада. + * @type {string} + * @memberof V1DraftClusterListResponseWarehouse + */ + name?: string; + /** + * Тип склада: + * - `FULL_FILLMENT` — фулфилмент, + * - `EXPRESS_DARK_STORE` — даркстор, + * - `SORTING_CENTER` — сортировочный центр, + * - `ORDERS_RECEIVING_POINT` — пункт приёма заказов, + * - `CROSS_DOCK` — кросс-докинг, + * - `DISTRIBUTION_CENTER` — распределительный центр. + * + * @type {string} + * @memberof V1DraftClusterListResponseWarehouse + */ + type?: V1DraftClusterListResponseWarehouseTypeEnum; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1DraftClusterListResponseWarehouse + */ + warehouse_id?: number; +} +/** + * @export + */ +export declare const V1DraftClusterListResponseWarehouseTypeEnum: { + readonly FULL_FILLMENT: "FULL_FILLMENT"; + readonly EXPRESS_DARK_STORE: "EXPRESS_DARK_STORE"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly DISTRIBUTION_CENTER: "DISTRIBUTION_CENTER"; +}; +export type V1DraftClusterListResponseWarehouseTypeEnum = typeof V1DraftClusterListResponseWarehouseTypeEnum[keyof typeof V1DraftClusterListResponseWarehouseTypeEnum]; +/** + * Check if a given object implements the V1DraftClusterListResponseWarehouse interface. + */ +export declare function instanceOfV1DraftClusterListResponseWarehouse(value: object): value is V1DraftClusterListResponseWarehouse; +export declare function V1DraftClusterListResponseWarehouseFromJSON(json: any): V1DraftClusterListResponseWarehouse; +export declare function V1DraftClusterListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftClusterListResponseWarehouse; +export declare function V1DraftClusterListResponseWarehouseToJSON(value?: V1DraftClusterListResponseWarehouse | null): any; diff --git a/dist/models/V1DraftClusterListResponseWarehouse.js b/dist/models/V1DraftClusterListResponseWarehouse.js new file mode 100644 index 0000000..1df220b --- /dev/null +++ b/dist/models/V1DraftClusterListResponseWarehouse.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftClusterListResponseWarehouseTypeEnum = void 0; +exports.instanceOfV1DraftClusterListResponseWarehouse = instanceOfV1DraftClusterListResponseWarehouse; +exports.V1DraftClusterListResponseWarehouseFromJSON = V1DraftClusterListResponseWarehouseFromJSON; +exports.V1DraftClusterListResponseWarehouseFromJSONTyped = V1DraftClusterListResponseWarehouseFromJSONTyped; +exports.V1DraftClusterListResponseWarehouseToJSON = V1DraftClusterListResponseWarehouseToJSON; +/** + * @export + */ +exports.V1DraftClusterListResponseWarehouseTypeEnum = { + FULL_FILLMENT: 'FULL_FILLMENT', + EXPRESS_DARK_STORE: 'EXPRESS_DARK_STORE', + SORTING_CENTER: 'SORTING_CENTER', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + CROSS_DOCK: 'CROSS_DOCK', + DISTRIBUTION_CENTER: 'DISTRIBUTION_CENTER' +}; +/** + * Check if a given object implements the V1DraftClusterListResponseWarehouse interface. + */ +function instanceOfV1DraftClusterListResponseWarehouse(value) { + return true; +} +function V1DraftClusterListResponseWarehouseFromJSON(json) { + return V1DraftClusterListResponseWarehouseFromJSONTyped(json, false); +} +function V1DraftClusterListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V1DraftClusterListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'type': value['type'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1DraftCreateCommonResponse.d.ts b/dist/models/V1DraftCreateCommonResponse.d.ts new file mode 100644 index 0000000..de23779 --- /dev/null +++ b/dist/models/V1DraftCreateCommonResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftCreateCommonResponseError } from './DraftCreateCommonResponseError'; +/** + * + * @export + * @interface V1DraftCreateCommonResponse + */ +export interface V1DraftCreateCommonResponse { + /** + * Идентификатор черновика. Используйте в методе [/v2/draft/create/info](#operation/DraftCreateInfo). + * @type {number} + * @memberof V1DraftCreateCommonResponse + */ + draft_id?: number; + /** + * Ошибки. + * @type {Array} + * @memberof V1DraftCreateCommonResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1DraftCreateCommonResponse interface. + */ +export declare function instanceOfV1DraftCreateCommonResponse(value: object): value is V1DraftCreateCommonResponse; +export declare function V1DraftCreateCommonResponseFromJSON(json: any): V1DraftCreateCommonResponse; +export declare function V1DraftCreateCommonResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCreateCommonResponse; +export declare function V1DraftCreateCommonResponseToJSON(value?: V1DraftCreateCommonResponse | null): any; diff --git a/dist/models/V1DraftCreateCommonResponse.js b/dist/models/V1DraftCreateCommonResponse.js new file mode 100644 index 0000000..f988f93 --- /dev/null +++ b/dist/models/V1DraftCreateCommonResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftCreateCommonResponse = instanceOfV1DraftCreateCommonResponse; +exports.V1DraftCreateCommonResponseFromJSON = V1DraftCreateCommonResponseFromJSON; +exports.V1DraftCreateCommonResponseFromJSONTyped = V1DraftCreateCommonResponseFromJSONTyped; +exports.V1DraftCreateCommonResponseToJSON = V1DraftCreateCommonResponseToJSON; +const DraftCreateCommonResponseError_1 = require("./DraftCreateCommonResponseError"); +/** + * Check if a given object implements the V1DraftCreateCommonResponse interface. + */ +function instanceOfV1DraftCreateCommonResponse(value) { + return true; +} +function V1DraftCreateCommonResponseFromJSON(json) { + return V1DraftCreateCommonResponseFromJSONTyped(json, false); +} +function V1DraftCreateCommonResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(DraftCreateCommonResponseError_1.DraftCreateCommonResponseErrorFromJSON)), + }; +} +function V1DraftCreateCommonResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(DraftCreateCommonResponseError_1.DraftCreateCommonResponseErrorToJSON)), + }; +} diff --git a/dist/models/V1DraftCrossdockCreateRequest.d.ts b/dist/models/V1DraftCrossdockCreateRequest.d.ts new file mode 100644 index 0000000..91d6095 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftCrossdockCreateRequestClusterInfo } from './V1DraftCrossdockCreateRequestClusterInfo'; +import type { V1DraftCrossdockCreateRequestDeleteSkuModeEnum } from './V1DraftCrossdockCreateRequestDeleteSkuModeEnum'; +import type { V1DraftCrossdockCreateRequestDeliveryInfo } from './V1DraftCrossdockCreateRequestDeliveryInfo'; +/** + * + * @export + * @interface V1DraftCrossdockCreateRequest + */ +export interface V1DraftCrossdockCreateRequest { + /** + * + * @type {V1DraftCrossdockCreateRequestClusterInfo} + * @memberof V1DraftCrossdockCreateRequest + */ + cluster_info: V1DraftCrossdockCreateRequestClusterInfo; + /** + * + * @type {V1DraftCrossdockCreateRequestDeleteSkuModeEnum} + * @memberof V1DraftCrossdockCreateRequest + */ + deletion_sku_mode: V1DraftCrossdockCreateRequestDeleteSkuModeEnum; + /** + * + * @type {V1DraftCrossdockCreateRequestDeliveryInfo} + * @memberof V1DraftCrossdockCreateRequest + */ + delivery_info: V1DraftCrossdockCreateRequestDeliveryInfo; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequest interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequest(value: object): value is V1DraftCrossdockCreateRequest; +export declare function V1DraftCrossdockCreateRequestFromJSON(json: any): V1DraftCrossdockCreateRequest; +export declare function V1DraftCrossdockCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequest; +export declare function V1DraftCrossdockCreateRequestToJSON(value?: V1DraftCrossdockCreateRequest | null): any; diff --git a/dist/models/V1DraftCrossdockCreateRequest.js b/dist/models/V1DraftCrossdockCreateRequest.js new file mode 100644 index 0000000..503f7ad --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftCrossdockCreateRequest = instanceOfV1DraftCrossdockCreateRequest; +exports.V1DraftCrossdockCreateRequestFromJSON = V1DraftCrossdockCreateRequestFromJSON; +exports.V1DraftCrossdockCreateRequestFromJSONTyped = V1DraftCrossdockCreateRequestFromJSONTyped; +exports.V1DraftCrossdockCreateRequestToJSON = V1DraftCrossdockCreateRequestToJSON; +const V1DraftCrossdockCreateRequestClusterInfo_1 = require("./V1DraftCrossdockCreateRequestClusterInfo"); +const V1DraftCrossdockCreateRequestDeleteSkuModeEnum_1 = require("./V1DraftCrossdockCreateRequestDeleteSkuModeEnum"); +const V1DraftCrossdockCreateRequestDeliveryInfo_1 = require("./V1DraftCrossdockCreateRequestDeliveryInfo"); +/** + * Check if a given object implements the V1DraftCrossdockCreateRequest interface. + */ +function instanceOfV1DraftCrossdockCreateRequest(value) { + if (!('cluster_info' in value) || value['cluster_info'] === undefined) + return false; + if (!('deletion_sku_mode' in value) || value['deletion_sku_mode'] === undefined) + return false; + if (!('delivery_info' in value) || value['delivery_info'] === undefined) + return false; + return true; +} +function V1DraftCrossdockCreateRequestFromJSON(json) { + return V1DraftCrossdockCreateRequestFromJSONTyped(json, false); +} +function V1DraftCrossdockCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_info': (0, V1DraftCrossdockCreateRequestClusterInfo_1.V1DraftCrossdockCreateRequestClusterInfoFromJSON)(json['cluster_info']), + 'deletion_sku_mode': (0, V1DraftCrossdockCreateRequestDeleteSkuModeEnum_1.V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON)(json['deletion_sku_mode']), + 'delivery_info': (0, V1DraftCrossdockCreateRequestDeliveryInfo_1.V1DraftCrossdockCreateRequestDeliveryInfoFromJSON)(json['delivery_info']), + }; +} +function V1DraftCrossdockCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_info': (0, V1DraftCrossdockCreateRequestClusterInfo_1.V1DraftCrossdockCreateRequestClusterInfoToJSON)(value['cluster_info']), + 'deletion_sku_mode': (0, V1DraftCrossdockCreateRequestDeleteSkuModeEnum_1.V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON)(value['deletion_sku_mode']), + 'delivery_info': (0, V1DraftCrossdockCreateRequestDeliveryInfo_1.V1DraftCrossdockCreateRequestDeliveryInfoToJSON)(value['delivery_info']), + }; +} diff --git a/dist/models/V1DraftCrossdockCreateRequestClusterInfo.d.ts b/dist/models/V1DraftCrossdockCreateRequestClusterInfo.d.ts new file mode 100644 index 0000000..7f77197 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestClusterInfo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftCrossdockCreateRequestClusterInfoItem } from './V1DraftCrossdockCreateRequestClusterInfoItem'; +/** + * Информация о кластере. + * @export + * @interface V1DraftCrossdockCreateRequestClusterInfo + */ +export interface V1DraftCrossdockCreateRequestClusterInfo { + /** + * Товарный состав заявки на поставку. + * @type {Array} + * @memberof V1DraftCrossdockCreateRequestClusterInfo + */ + items: Array; + /** + * Идентификатор кластера размещения. Получите значение параметра методом [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {number} + * @memberof V1DraftCrossdockCreateRequestClusterInfo + */ + macrolocal_cluster_id: number; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestClusterInfo interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequestClusterInfo(value: object): value is V1DraftCrossdockCreateRequestClusterInfo; +export declare function V1DraftCrossdockCreateRequestClusterInfoFromJSON(json: any): V1DraftCrossdockCreateRequestClusterInfo; +export declare function V1DraftCrossdockCreateRequestClusterInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestClusterInfo; +export declare function V1DraftCrossdockCreateRequestClusterInfoToJSON(value?: V1DraftCrossdockCreateRequestClusterInfo | null): any; diff --git a/dist/models/V1DraftCrossdockCreateRequestClusterInfo.js b/dist/models/V1DraftCrossdockCreateRequestClusterInfo.js new file mode 100644 index 0000000..c4cfb22 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestClusterInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftCrossdockCreateRequestClusterInfo = instanceOfV1DraftCrossdockCreateRequestClusterInfo; +exports.V1DraftCrossdockCreateRequestClusterInfoFromJSON = V1DraftCrossdockCreateRequestClusterInfoFromJSON; +exports.V1DraftCrossdockCreateRequestClusterInfoFromJSONTyped = V1DraftCrossdockCreateRequestClusterInfoFromJSONTyped; +exports.V1DraftCrossdockCreateRequestClusterInfoToJSON = V1DraftCrossdockCreateRequestClusterInfoToJSON; +const V1DraftCrossdockCreateRequestClusterInfoItem_1 = require("./V1DraftCrossdockCreateRequestClusterInfoItem"); +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestClusterInfo interface. + */ +function instanceOfV1DraftCrossdockCreateRequestClusterInfo(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('macrolocal_cluster_id' in value) || value['macrolocal_cluster_id'] === undefined) + return false; + return true; +} +function V1DraftCrossdockCreateRequestClusterInfoFromJSON(json) { + return V1DraftCrossdockCreateRequestClusterInfoFromJSONTyped(json, false); +} +function V1DraftCrossdockCreateRequestClusterInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(V1DraftCrossdockCreateRequestClusterInfoItem_1.V1DraftCrossdockCreateRequestClusterInfoItemFromJSON)), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'], + }; +} +function V1DraftCrossdockCreateRequestClusterInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(V1DraftCrossdockCreateRequestClusterInfoItem_1.V1DraftCrossdockCreateRequestClusterInfoItemToJSON)), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + }; +} diff --git a/dist/models/V1DraftCrossdockCreateRequestClusterInfoItem.d.ts b/dist/models/V1DraftCrossdockCreateRequestClusterInfoItem.d.ts new file mode 100644 index 0000000..b30b50a --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestClusterInfoItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DraftCrossdockCreateRequestClusterInfoItem + */ +export interface V1DraftCrossdockCreateRequestClusterInfoItem { + /** + * Количество. + * @type {number} + * @memberof V1DraftCrossdockCreateRequestClusterInfoItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1DraftCrossdockCreateRequestClusterInfoItem + */ + sku: number; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestClusterInfoItem interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequestClusterInfoItem(value: object): value is V1DraftCrossdockCreateRequestClusterInfoItem; +export declare function V1DraftCrossdockCreateRequestClusterInfoItemFromJSON(json: any): V1DraftCrossdockCreateRequestClusterInfoItem; +export declare function V1DraftCrossdockCreateRequestClusterInfoItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestClusterInfoItem; +export declare function V1DraftCrossdockCreateRequestClusterInfoItemToJSON(value?: V1DraftCrossdockCreateRequestClusterInfoItem | null): any; diff --git a/dist/models/V1DraftCrossdockCreateRequestClusterInfoItem.js b/dist/models/V1DraftCrossdockCreateRequestClusterInfoItem.js new file mode 100644 index 0000000..76ba2f3 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestClusterInfoItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftCrossdockCreateRequestClusterInfoItem = instanceOfV1DraftCrossdockCreateRequestClusterInfoItem; +exports.V1DraftCrossdockCreateRequestClusterInfoItemFromJSON = V1DraftCrossdockCreateRequestClusterInfoItemFromJSON; +exports.V1DraftCrossdockCreateRequestClusterInfoItemFromJSONTyped = V1DraftCrossdockCreateRequestClusterInfoItemFromJSONTyped; +exports.V1DraftCrossdockCreateRequestClusterInfoItemToJSON = V1DraftCrossdockCreateRequestClusterInfoItemToJSON; +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestClusterInfoItem interface. + */ +function instanceOfV1DraftCrossdockCreateRequestClusterInfoItem(value) { + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1DraftCrossdockCreateRequestClusterInfoItemFromJSON(json) { + return V1DraftCrossdockCreateRequestClusterInfoItemFromJSONTyped(json, false); +} +function V1DraftCrossdockCreateRequestClusterInfoItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +function V1DraftCrossdockCreateRequestClusterInfoItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.d.ts b/dist/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.d.ts new file mode 100644 index 0000000..49ef9c5 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export declare const V1DraftCrossdockCreateRequestDeleteSkuModeEnum: { + readonly FULL: "FULL"; + readonly PARTIAL: "PARTIAL"; +}; +export type V1DraftCrossdockCreateRequestDeleteSkuModeEnum = typeof V1DraftCrossdockCreateRequestDeleteSkuModeEnum[keyof typeof V1DraftCrossdockCreateRequestDeleteSkuModeEnum]; +export declare function instanceOfV1DraftCrossdockCreateRequestDeleteSkuModeEnum(value: any): boolean; +export declare function V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON(json: any): V1DraftCrossdockCreateRequestDeleteSkuModeEnum; +export declare function V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeleteSkuModeEnum; +export declare function V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON(value?: V1DraftCrossdockCreateRequestDeleteSkuModeEnum | null): any; diff --git a/dist/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.js b/dist/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.js new file mode 100644 index 0000000..e662718 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeleteSkuModeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftCrossdockCreateRequestDeleteSkuModeEnum = void 0; +exports.instanceOfV1DraftCrossdockCreateRequestDeleteSkuModeEnum = instanceOfV1DraftCrossdockCreateRequestDeleteSkuModeEnum; +exports.V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON = V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON; +exports.V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSONTyped = V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSONTyped; +exports.V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON = V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON; +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +exports.V1DraftCrossdockCreateRequestDeleteSkuModeEnum = { + FULL: 'FULL', + PARTIAL: 'PARTIAL' +}; +function instanceOfV1DraftCrossdockCreateRequestDeleteSkuModeEnum(value) { + for (const key in exports.V1DraftCrossdockCreateRequestDeleteSkuModeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1DraftCrossdockCreateRequestDeleteSkuModeEnum, key)) { + if (exports.V1DraftCrossdockCreateRequestDeleteSkuModeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSON(json) { + return V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSONTyped(json, false); +} +function V1DraftCrossdockCreateRequestDeleteSkuModeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DraftCrossdockCreateRequestDeleteSkuModeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1DraftCrossdockCreateRequestDeliveryInfo.d.ts b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfo.d.ts new file mode 100644 index 0000000..35f4ccd --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfo.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum } from './V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum'; +import type { V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse } from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse'; +/** + * Информация о доставке. + * @export + * @interface V1DraftCrossdockCreateRequestDeliveryInfo + */ +export interface V1DraftCrossdockCreateRequestDeliveryInfo { + /** + * + * @type {V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfo + */ + drop_off_warehouse?: V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; + /** + * Идентификатор склада продавца. Если `type = PICKUP`, параметр обязательный.

Получите значение параметра методом [/v1/warehouse/fbo/seller/list](#operation/WarehouseFboSellerList). + * @type {number} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfo + */ + seller_warehouse_id?: number; + /** + * + * @type {V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfo + */ + type: V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestDeliveryInfo interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequestDeliveryInfo(value: object): value is V1DraftCrossdockCreateRequestDeliveryInfo; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoFromJSON(json: any): V1DraftCrossdockCreateRequestDeliveryInfo; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeliveryInfo; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoToJSON(value?: V1DraftCrossdockCreateRequestDeliveryInfo | null): any; diff --git a/dist/models/V1DraftCrossdockCreateRequestDeliveryInfo.js b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfo.js new file mode 100644 index 0000000..1f67d4a --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfo.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftCrossdockCreateRequestDeliveryInfo = instanceOfV1DraftCrossdockCreateRequestDeliveryInfo; +exports.V1DraftCrossdockCreateRequestDeliveryInfoFromJSON = V1DraftCrossdockCreateRequestDeliveryInfoFromJSON; +exports.V1DraftCrossdockCreateRequestDeliveryInfoFromJSONTyped = V1DraftCrossdockCreateRequestDeliveryInfoFromJSONTyped; +exports.V1DraftCrossdockCreateRequestDeliveryInfoToJSON = V1DraftCrossdockCreateRequestDeliveryInfoToJSON; +const V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum_1 = require("./V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum"); +const V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse_1 = require("./V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse"); +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestDeliveryInfo interface. + */ +function instanceOfV1DraftCrossdockCreateRequestDeliveryInfo(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function V1DraftCrossdockCreateRequestDeliveryInfoFromJSON(json) { + return V1DraftCrossdockCreateRequestDeliveryInfoFromJSONTyped(json, false); +} +function V1DraftCrossdockCreateRequestDeliveryInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_warehouse': json['drop_off_warehouse'] == null ? undefined : (0, V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse_1.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON)(json['drop_off_warehouse']), + 'seller_warehouse_id': json['seller_warehouse_id'] == null ? undefined : json['seller_warehouse_id'], + 'type': (0, V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum_1.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON)(json['type']), + }; +} +function V1DraftCrossdockCreateRequestDeliveryInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_warehouse': (0, V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse_1.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON)(value['drop_off_warehouse']), + 'seller_warehouse_id': value['seller_warehouse_id'], + 'type': (0, V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum_1.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.d.ts b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.d.ts new file mode 100644 index 0000000..34e578a --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum } from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +/** + * Информация о пункте отгрузки. Если `type = DROPOFF`, параметр обязательный. + * @export + * @interface V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse + */ +export interface V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse + */ + warehouse_id: number; + /** + * + * @type {V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum} + * @memberof V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse + */ + warehouse_type: V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +} +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse interface. + */ +export declare function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse(value: object): value is V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json: any): V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON(value?: V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse | null): any; diff --git a/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.js b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.js new file mode 100644 index 0000000..e7d07a2 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse = instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse; +exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON = V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON; +exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped = V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped; +exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON = V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON; +const V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum_1 = require("./V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum"); +/** + * Check if a given object implements the V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse interface. + */ +function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + if (!('warehouse_type' in value) || value['warehouse_type'] === undefined) + return false; + return true; +} +function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json) { + return V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json, false); +} +function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + 'warehouse_type': (0, V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum_1.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON)(json['warehouse_type']), + }; +} +function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + 'warehouse_type': (0, V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum_1.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON)(value['warehouse_type']), + }; +} diff --git a/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts new file mode 100644 index 0000000..d71d254 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада, пункта выдачи заказов или сортировочного центра: + * - `DELIVERY_POINT` — пункт выдачи заказов; + * - `SORTING_CENTER` — сортировочный центр; + * - `CROSS_DOCK` — кросс-докинг; + * - `ORDERS_RECEIVING_POINT` — специализированный пункт приёма заказов; + * - `FULL_FILLMENT` — фулфилмент. + * + * @export + */ +export declare const V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum: { + readonly DELIVERY_POINT: "DELIVERY_POINT"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly FULL_FILLMENT: "FULL_FILLMENT"; +}; +export type V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = typeof V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum[keyof typeof V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum]; +export declare function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum(value: any): boolean; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json: any): V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value?: V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum | null): any; diff --git a/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js new file mode 100644 index 0000000..aa3a001 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = void 0; +exports.instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON = V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON; +exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped = V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped; +exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON = V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON; +/** + * Тип склада, пункта выдачи заказов или сортировочного центра: + * - `DELIVERY_POINT` — пункт выдачи заказов; + * - `SORTING_CENTER` — сортировочный центр; + * - `CROSS_DOCK` — кросс-докинг; + * - `ORDERS_RECEIVING_POINT` — специализированный пункт приёма заказов; + * - `FULL_FILLMENT` — фулфилмент. + * + * @export + */ +exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = { + DELIVERY_POINT: 'DELIVERY_POINT', + SORTING_CENTER: 'SORTING_CENTER', + CROSS_DOCK: 'CROSS_DOCK', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + FULL_FILLMENT: 'FULL_FILLMENT' +}; +function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum(value) { + for (const key in exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum, key)) { + if (exports.V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json) { + return V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json, false); +} +function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.d.ts b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.d.ts new file mode 100644 index 0000000..aa8cf59 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `DROPOFF` — отгрузка заказов в пункт приёма; + * - `PICKUP`— отгрузка заказов курьеру. + * + * @export + */ +export declare const V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum: { + readonly DROPOFF: "DROPOFF"; + readonly PICKUP: "PICKUP"; +}; +export type V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum = typeof V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum[keyof typeof V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum]; +export declare function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoTypeEnum(value: any): boolean; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON(json: any): V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum; +export declare function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON(value?: V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum | null): any; diff --git a/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.js b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.js new file mode 100644 index 0000000..73adc26 --- /dev/null +++ b/dist/models/V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum = void 0; +exports.instanceOfV1DraftCrossdockCreateRequestDeliveryInfoTypeEnum = instanceOfV1DraftCrossdockCreateRequestDeliveryInfoTypeEnum; +exports.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON = V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON; +exports.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSONTyped = V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSONTyped; +exports.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON = V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON; +/** + * Тип поставки: + * - `DROPOFF` — отгрузка заказов в пункт приёма; + * - `PICKUP`— отгрузка заказов курьеру. + * + * @export + */ +exports.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum = { + DROPOFF: 'DROPOFF', + PICKUP: 'PICKUP' +}; +function instanceOfV1DraftCrossdockCreateRequestDeliveryInfoTypeEnum(value) { + for (const key in exports.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum, key)) { + if (exports.V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSON(json) { + return V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json, false); +} +function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DraftCrossdockCreateRequestDeliveryInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1DraftDirectCreateRequest.d.ts b/dist/models/V1DraftDirectCreateRequest.d.ts new file mode 100644 index 0000000..9031acd --- /dev/null +++ b/dist/models/V1DraftDirectCreateRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftDirectCreateRequestDeleteSkuModeEnum } from './V1DraftDirectCreateRequestDeleteSkuModeEnum'; +import type { V1DraftDirectCreateRequestClusterInfo } from './V1DraftDirectCreateRequestClusterInfo'; +/** + * + * @export + * @interface V1DraftDirectCreateRequest + */ +export interface V1DraftDirectCreateRequest { + /** + * + * @type {V1DraftDirectCreateRequestClusterInfo} + * @memberof V1DraftDirectCreateRequest + */ + cluster_info: V1DraftDirectCreateRequestClusterInfo; + /** + * + * @type {V1DraftDirectCreateRequestDeleteSkuModeEnum} + * @memberof V1DraftDirectCreateRequest + */ + deletion_sku_mode: V1DraftDirectCreateRequestDeleteSkuModeEnum; +} +/** + * Check if a given object implements the V1DraftDirectCreateRequest interface. + */ +export declare function instanceOfV1DraftDirectCreateRequest(value: object): value is V1DraftDirectCreateRequest; +export declare function V1DraftDirectCreateRequestFromJSON(json: any): V1DraftDirectCreateRequest; +export declare function V1DraftDirectCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftDirectCreateRequest; +export declare function V1DraftDirectCreateRequestToJSON(value?: V1DraftDirectCreateRequest | null): any; diff --git a/dist/models/V1DraftDirectCreateRequest.js b/dist/models/V1DraftDirectCreateRequest.js new file mode 100644 index 0000000..4a8d538 --- /dev/null +++ b/dist/models/V1DraftDirectCreateRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftDirectCreateRequest = instanceOfV1DraftDirectCreateRequest; +exports.V1DraftDirectCreateRequestFromJSON = V1DraftDirectCreateRequestFromJSON; +exports.V1DraftDirectCreateRequestFromJSONTyped = V1DraftDirectCreateRequestFromJSONTyped; +exports.V1DraftDirectCreateRequestToJSON = V1DraftDirectCreateRequestToJSON; +const V1DraftDirectCreateRequestDeleteSkuModeEnum_1 = require("./V1DraftDirectCreateRequestDeleteSkuModeEnum"); +const V1DraftDirectCreateRequestClusterInfo_1 = require("./V1DraftDirectCreateRequestClusterInfo"); +/** + * Check if a given object implements the V1DraftDirectCreateRequest interface. + */ +function instanceOfV1DraftDirectCreateRequest(value) { + if (!('cluster_info' in value) || value['cluster_info'] === undefined) + return false; + if (!('deletion_sku_mode' in value) || value['deletion_sku_mode'] === undefined) + return false; + return true; +} +function V1DraftDirectCreateRequestFromJSON(json) { + return V1DraftDirectCreateRequestFromJSONTyped(json, false); +} +function V1DraftDirectCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_info': (0, V1DraftDirectCreateRequestClusterInfo_1.V1DraftDirectCreateRequestClusterInfoFromJSON)(json['cluster_info']), + 'deletion_sku_mode': (0, V1DraftDirectCreateRequestDeleteSkuModeEnum_1.V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON)(json['deletion_sku_mode']), + }; +} +function V1DraftDirectCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_info': (0, V1DraftDirectCreateRequestClusterInfo_1.V1DraftDirectCreateRequestClusterInfoToJSON)(value['cluster_info']), + 'deletion_sku_mode': (0, V1DraftDirectCreateRequestDeleteSkuModeEnum_1.V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON)(value['deletion_sku_mode']), + }; +} diff --git a/dist/models/V1DraftDirectCreateRequestClusterInfo.d.ts b/dist/models/V1DraftDirectCreateRequestClusterInfo.d.ts new file mode 100644 index 0000000..f7ab3dc --- /dev/null +++ b/dist/models/V1DraftDirectCreateRequestClusterInfo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftDirectCreateRequestClusterInfoItem } from './V1DraftDirectCreateRequestClusterInfoItem'; +/** + * Информация о кластере. + * @export + * @interface V1DraftDirectCreateRequestClusterInfo + */ +export interface V1DraftDirectCreateRequestClusterInfo { + /** + * Товарный состав заявки на поставку. + * @type {Array} + * @memberof V1DraftDirectCreateRequestClusterInfo + */ + items: Array; + /** + * Идентификатор кластера размещения. Получите значение параметра методом [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {number} + * @memberof V1DraftDirectCreateRequestClusterInfo + */ + macrolocal_cluster_id: number; +} +/** + * Check if a given object implements the V1DraftDirectCreateRequestClusterInfo interface. + */ +export declare function instanceOfV1DraftDirectCreateRequestClusterInfo(value: object): value is V1DraftDirectCreateRequestClusterInfo; +export declare function V1DraftDirectCreateRequestClusterInfoFromJSON(json: any): V1DraftDirectCreateRequestClusterInfo; +export declare function V1DraftDirectCreateRequestClusterInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftDirectCreateRequestClusterInfo; +export declare function V1DraftDirectCreateRequestClusterInfoToJSON(value?: V1DraftDirectCreateRequestClusterInfo | null): any; diff --git a/dist/models/V1DraftDirectCreateRequestClusterInfo.js b/dist/models/V1DraftDirectCreateRequestClusterInfo.js new file mode 100644 index 0000000..64a6842 --- /dev/null +++ b/dist/models/V1DraftDirectCreateRequestClusterInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftDirectCreateRequestClusterInfo = instanceOfV1DraftDirectCreateRequestClusterInfo; +exports.V1DraftDirectCreateRequestClusterInfoFromJSON = V1DraftDirectCreateRequestClusterInfoFromJSON; +exports.V1DraftDirectCreateRequestClusterInfoFromJSONTyped = V1DraftDirectCreateRequestClusterInfoFromJSONTyped; +exports.V1DraftDirectCreateRequestClusterInfoToJSON = V1DraftDirectCreateRequestClusterInfoToJSON; +const V1DraftDirectCreateRequestClusterInfoItem_1 = require("./V1DraftDirectCreateRequestClusterInfoItem"); +/** + * Check if a given object implements the V1DraftDirectCreateRequestClusterInfo interface. + */ +function instanceOfV1DraftDirectCreateRequestClusterInfo(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('macrolocal_cluster_id' in value) || value['macrolocal_cluster_id'] === undefined) + return false; + return true; +} +function V1DraftDirectCreateRequestClusterInfoFromJSON(json) { + return V1DraftDirectCreateRequestClusterInfoFromJSONTyped(json, false); +} +function V1DraftDirectCreateRequestClusterInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(V1DraftDirectCreateRequestClusterInfoItem_1.V1DraftDirectCreateRequestClusterInfoItemFromJSON)), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'], + }; +} +function V1DraftDirectCreateRequestClusterInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(V1DraftDirectCreateRequestClusterInfoItem_1.V1DraftDirectCreateRequestClusterInfoItemToJSON)), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + }; +} diff --git a/dist/models/V1DraftDirectCreateRequestClusterInfoItem.d.ts b/dist/models/V1DraftDirectCreateRequestClusterInfoItem.d.ts new file mode 100644 index 0000000..9c258ee --- /dev/null +++ b/dist/models/V1DraftDirectCreateRequestClusterInfoItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DraftDirectCreateRequestClusterInfoItem + */ +export interface V1DraftDirectCreateRequestClusterInfoItem { + /** + * Количество. + * @type {number} + * @memberof V1DraftDirectCreateRequestClusterInfoItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1DraftDirectCreateRequestClusterInfoItem + */ + sku: number; +} +/** + * Check if a given object implements the V1DraftDirectCreateRequestClusterInfoItem interface. + */ +export declare function instanceOfV1DraftDirectCreateRequestClusterInfoItem(value: object): value is V1DraftDirectCreateRequestClusterInfoItem; +export declare function V1DraftDirectCreateRequestClusterInfoItemFromJSON(json: any): V1DraftDirectCreateRequestClusterInfoItem; +export declare function V1DraftDirectCreateRequestClusterInfoItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftDirectCreateRequestClusterInfoItem; +export declare function V1DraftDirectCreateRequestClusterInfoItemToJSON(value?: V1DraftDirectCreateRequestClusterInfoItem | null): any; diff --git a/dist/models/V1DraftDirectCreateRequestClusterInfoItem.js b/dist/models/V1DraftDirectCreateRequestClusterInfoItem.js new file mode 100644 index 0000000..6e07764 --- /dev/null +++ b/dist/models/V1DraftDirectCreateRequestClusterInfoItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftDirectCreateRequestClusterInfoItem = instanceOfV1DraftDirectCreateRequestClusterInfoItem; +exports.V1DraftDirectCreateRequestClusterInfoItemFromJSON = V1DraftDirectCreateRequestClusterInfoItemFromJSON; +exports.V1DraftDirectCreateRequestClusterInfoItemFromJSONTyped = V1DraftDirectCreateRequestClusterInfoItemFromJSONTyped; +exports.V1DraftDirectCreateRequestClusterInfoItemToJSON = V1DraftDirectCreateRequestClusterInfoItemToJSON; +/** + * Check if a given object implements the V1DraftDirectCreateRequestClusterInfoItem interface. + */ +function instanceOfV1DraftDirectCreateRequestClusterInfoItem(value) { + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1DraftDirectCreateRequestClusterInfoItemFromJSON(json) { + return V1DraftDirectCreateRequestClusterInfoItemFromJSONTyped(json, false); +} +function V1DraftDirectCreateRequestClusterInfoItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +function V1DraftDirectCreateRequestClusterInfoItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.d.ts b/dist/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.d.ts new file mode 100644 index 0000000..29678dd --- /dev/null +++ b/dist/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export declare const V1DraftDirectCreateRequestDeleteSkuModeEnum: { + readonly FULL: "FULL"; + readonly PARTIAL: "PARTIAL"; +}; +export type V1DraftDirectCreateRequestDeleteSkuModeEnum = typeof V1DraftDirectCreateRequestDeleteSkuModeEnum[keyof typeof V1DraftDirectCreateRequestDeleteSkuModeEnum]; +export declare function instanceOfV1DraftDirectCreateRequestDeleteSkuModeEnum(value: any): boolean; +export declare function V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON(json: any): V1DraftDirectCreateRequestDeleteSkuModeEnum; +export declare function V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftDirectCreateRequestDeleteSkuModeEnum; +export declare function V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON(value?: V1DraftDirectCreateRequestDeleteSkuModeEnum | null): any; diff --git a/dist/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.js b/dist/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.js new file mode 100644 index 0000000..5775545 --- /dev/null +++ b/dist/models/V1DraftDirectCreateRequestDeleteSkuModeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftDirectCreateRequestDeleteSkuModeEnum = void 0; +exports.instanceOfV1DraftDirectCreateRequestDeleteSkuModeEnum = instanceOfV1DraftDirectCreateRequestDeleteSkuModeEnum; +exports.V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON = V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON; +exports.V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSONTyped = V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSONTyped; +exports.V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON = V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON; +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +exports.V1DraftDirectCreateRequestDeleteSkuModeEnum = { + FULL: 'FULL', + PARTIAL: 'PARTIAL' +}; +function instanceOfV1DraftDirectCreateRequestDeleteSkuModeEnum(value) { + for (const key in exports.V1DraftDirectCreateRequestDeleteSkuModeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1DraftDirectCreateRequestDeleteSkuModeEnum, key)) { + if (exports.V1DraftDirectCreateRequestDeleteSkuModeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSON(json) { + return V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSONTyped(json, false); +} +function V1DraftDirectCreateRequestDeleteSkuModeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DraftDirectCreateRequestDeleteSkuModeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1DraftGetWarehouseFboListRequest.d.ts b/dist/models/V1DraftGetWarehouseFboListRequest.d.ts new file mode 100644 index 0000000..de87eac --- /dev/null +++ b/dist/models/V1DraftGetWarehouseFboListRequest.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CreateType } from './V1CreateType'; +/** + * + * @export + * @interface V1DraftGetWarehouseFboListRequest + */ +export interface V1DraftGetWarehouseFboListRequest { + /** + * Тип поставки: + * - `CREATE_TYPE_CROSSDOCK` — кросс-докинг, + * - `CREATE_TYPE_DIRECT` — прямая. + * + * @type {Array} + * @memberof V1DraftGetWarehouseFboListRequest + */ + filter_by_supply_type: Array; + /** + * Поиск по названию склада. Для поиска пунктов выдачи заказов укажите полное название. + * @type {string} + * @memberof V1DraftGetWarehouseFboListRequest + */ + search: string; +} +/** + * Check if a given object implements the V1DraftGetWarehouseFboListRequest interface. + */ +export declare function instanceOfV1DraftGetWarehouseFboListRequest(value: object): value is V1DraftGetWarehouseFboListRequest; +export declare function V1DraftGetWarehouseFboListRequestFromJSON(json: any): V1DraftGetWarehouseFboListRequest; +export declare function V1DraftGetWarehouseFboListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftGetWarehouseFboListRequest; +export declare function V1DraftGetWarehouseFboListRequestToJSON(value?: V1DraftGetWarehouseFboListRequest | null): any; diff --git a/dist/models/V1DraftGetWarehouseFboListRequest.js b/dist/models/V1DraftGetWarehouseFboListRequest.js new file mode 100644 index 0000000..7fa884c --- /dev/null +++ b/dist/models/V1DraftGetWarehouseFboListRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftGetWarehouseFboListRequest = instanceOfV1DraftGetWarehouseFboListRequest; +exports.V1DraftGetWarehouseFboListRequestFromJSON = V1DraftGetWarehouseFboListRequestFromJSON; +exports.V1DraftGetWarehouseFboListRequestFromJSONTyped = V1DraftGetWarehouseFboListRequestFromJSONTyped; +exports.V1DraftGetWarehouseFboListRequestToJSON = V1DraftGetWarehouseFboListRequestToJSON; +const V1CreateType_1 = require("./V1CreateType"); +/** + * Check if a given object implements the V1DraftGetWarehouseFboListRequest interface. + */ +function instanceOfV1DraftGetWarehouseFboListRequest(value) { + if (!('filter_by_supply_type' in value) || value['filter_by_supply_type'] === undefined) + return false; + if (!('search' in value) || value['search'] === undefined) + return false; + return true; +} +function V1DraftGetWarehouseFboListRequestFromJSON(json) { + return V1DraftGetWarehouseFboListRequestFromJSONTyped(json, false); +} +function V1DraftGetWarehouseFboListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter_by_supply_type': (json['filter_by_supply_type'].map(V1CreateType_1.V1CreateTypeFromJSON)), + 'search': json['search'], + }; +} +function V1DraftGetWarehouseFboListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter_by_supply_type': (value['filter_by_supply_type'].map(V1CreateType_1.V1CreateTypeToJSON)), + 'search': value['search'], + }; +} diff --git a/dist/models/V1DraftGetWarehouseFboListResponse.d.ts b/dist/models/V1DraftGetWarehouseFboListResponse.d.ts new file mode 100644 index 0000000..6c4d009 --- /dev/null +++ b/dist/models/V1DraftGetWarehouseFboListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DraftGetWarehouseFboListResponseSearch } from './DraftGetWarehouseFboListResponseSearch'; +/** + * + * @export + * @interface V1DraftGetWarehouseFboListResponse + */ +export interface V1DraftGetWarehouseFboListResponse { + /** + * Результат поиска складов. + * @type {Array} + * @memberof V1DraftGetWarehouseFboListResponse + */ + search?: Array; +} +/** + * Check if a given object implements the V1DraftGetWarehouseFboListResponse interface. + */ +export declare function instanceOfV1DraftGetWarehouseFboListResponse(value: object): value is V1DraftGetWarehouseFboListResponse; +export declare function V1DraftGetWarehouseFboListResponseFromJSON(json: any): V1DraftGetWarehouseFboListResponse; +export declare function V1DraftGetWarehouseFboListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftGetWarehouseFboListResponse; +export declare function V1DraftGetWarehouseFboListResponseToJSON(value?: V1DraftGetWarehouseFboListResponse | null): any; diff --git a/dist/models/V1DraftGetWarehouseFboListResponse.js b/dist/models/V1DraftGetWarehouseFboListResponse.js new file mode 100644 index 0000000..1423a90 --- /dev/null +++ b/dist/models/V1DraftGetWarehouseFboListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftGetWarehouseFboListResponse = instanceOfV1DraftGetWarehouseFboListResponse; +exports.V1DraftGetWarehouseFboListResponseFromJSON = V1DraftGetWarehouseFboListResponseFromJSON; +exports.V1DraftGetWarehouseFboListResponseFromJSONTyped = V1DraftGetWarehouseFboListResponseFromJSONTyped; +exports.V1DraftGetWarehouseFboListResponseToJSON = V1DraftGetWarehouseFboListResponseToJSON; +const DraftGetWarehouseFboListResponseSearch_1 = require("./DraftGetWarehouseFboListResponseSearch"); +/** + * Check if a given object implements the V1DraftGetWarehouseFboListResponse interface. + */ +function instanceOfV1DraftGetWarehouseFboListResponse(value) { + return true; +} +function V1DraftGetWarehouseFboListResponseFromJSON(json) { + return V1DraftGetWarehouseFboListResponseFromJSONTyped(json, false); +} +function V1DraftGetWarehouseFboListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'search': json['search'] == null ? undefined : (json['search'].map(DraftGetWarehouseFboListResponseSearch_1.DraftGetWarehouseFboListResponseSearchFromJSON)), + }; +} +function V1DraftGetWarehouseFboListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'search': value['search'] == null ? undefined : (value['search'].map(DraftGetWarehouseFboListResponseSearch_1.DraftGetWarehouseFboListResponseSearchToJSON)), + }; +} diff --git a/dist/models/V1DraftMultiClusterCreateRequest.d.ts b/dist/models/V1DraftMultiClusterCreateRequest.d.ts new file mode 100644 index 0000000..07ebe3d --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftMultiClusterCreateRequestDeleteSkuModeEnum } from './V1DraftMultiClusterCreateRequestDeleteSkuModeEnum'; +import type { V1DraftMultiClusterCreateRequestDeliveryInfo } from './V1DraftMultiClusterCreateRequestDeliveryInfo'; +import type { V1DraftMultiClusterCreateRequestClusterInfo } from './V1DraftMultiClusterCreateRequestClusterInfo'; +/** + * + * @export + * @interface V1DraftMultiClusterCreateRequest + */ +export interface V1DraftMultiClusterCreateRequest { + /** + * Информация о кластерах. + * @type {Array} + * @memberof V1DraftMultiClusterCreateRequest + */ + clusters_info: Array; + /** + * + * @type {V1DraftMultiClusterCreateRequestDeleteSkuModeEnum} + * @memberof V1DraftMultiClusterCreateRequest + */ + deletion_sku_mode: V1DraftMultiClusterCreateRequestDeleteSkuModeEnum; + /** + * + * @type {V1DraftMultiClusterCreateRequestDeliveryInfo} + * @memberof V1DraftMultiClusterCreateRequest + */ + delivery_info: V1DraftMultiClusterCreateRequestDeliveryInfo; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequest interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequest(value: object): value is V1DraftMultiClusterCreateRequest; +export declare function V1DraftMultiClusterCreateRequestFromJSON(json: any): V1DraftMultiClusterCreateRequest; +export declare function V1DraftMultiClusterCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequest; +export declare function V1DraftMultiClusterCreateRequestToJSON(value?: V1DraftMultiClusterCreateRequest | null): any; diff --git a/dist/models/V1DraftMultiClusterCreateRequest.js b/dist/models/V1DraftMultiClusterCreateRequest.js new file mode 100644 index 0000000..4c5bb6a --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftMultiClusterCreateRequest = instanceOfV1DraftMultiClusterCreateRequest; +exports.V1DraftMultiClusterCreateRequestFromJSON = V1DraftMultiClusterCreateRequestFromJSON; +exports.V1DraftMultiClusterCreateRequestFromJSONTyped = V1DraftMultiClusterCreateRequestFromJSONTyped; +exports.V1DraftMultiClusterCreateRequestToJSON = V1DraftMultiClusterCreateRequestToJSON; +const V1DraftMultiClusterCreateRequestDeleteSkuModeEnum_1 = require("./V1DraftMultiClusterCreateRequestDeleteSkuModeEnum"); +const V1DraftMultiClusterCreateRequestDeliveryInfo_1 = require("./V1DraftMultiClusterCreateRequestDeliveryInfo"); +const V1DraftMultiClusterCreateRequestClusterInfo_1 = require("./V1DraftMultiClusterCreateRequestClusterInfo"); +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequest interface. + */ +function instanceOfV1DraftMultiClusterCreateRequest(value) { + if (!('clusters_info' in value) || value['clusters_info'] === undefined) + return false; + if (!('deletion_sku_mode' in value) || value['deletion_sku_mode'] === undefined) + return false; + if (!('delivery_info' in value) || value['delivery_info'] === undefined) + return false; + return true; +} +function V1DraftMultiClusterCreateRequestFromJSON(json) { + return V1DraftMultiClusterCreateRequestFromJSONTyped(json, false); +} +function V1DraftMultiClusterCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'clusters_info': (json['clusters_info'].map(V1DraftMultiClusterCreateRequestClusterInfo_1.V1DraftMultiClusterCreateRequestClusterInfoFromJSON)), + 'deletion_sku_mode': (0, V1DraftMultiClusterCreateRequestDeleteSkuModeEnum_1.V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON)(json['deletion_sku_mode']), + 'delivery_info': (0, V1DraftMultiClusterCreateRequestDeliveryInfo_1.V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON)(json['delivery_info']), + }; +} +function V1DraftMultiClusterCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'clusters_info': (value['clusters_info'].map(V1DraftMultiClusterCreateRequestClusterInfo_1.V1DraftMultiClusterCreateRequestClusterInfoToJSON)), + 'deletion_sku_mode': (0, V1DraftMultiClusterCreateRequestDeleteSkuModeEnum_1.V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON)(value['deletion_sku_mode']), + 'delivery_info': (0, V1DraftMultiClusterCreateRequestDeliveryInfo_1.V1DraftMultiClusterCreateRequestDeliveryInfoToJSON)(value['delivery_info']), + }; +} diff --git a/dist/models/V1DraftMultiClusterCreateRequestClusterInfo.d.ts b/dist/models/V1DraftMultiClusterCreateRequestClusterInfo.d.ts new file mode 100644 index 0000000..6de8900 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestClusterInfo.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftMultiClusterCreateRequestClusterInfoItem } from './V1DraftMultiClusterCreateRequestClusterInfoItem'; +/** + * + * @export + * @interface V1DraftMultiClusterCreateRequestClusterInfo + */ +export interface V1DraftMultiClusterCreateRequestClusterInfo { + /** + * Товарный состав заявки на поставку. + * @type {Array} + * @memberof V1DraftMultiClusterCreateRequestClusterInfo + */ + items: Array; + /** + * Идентификатор кластера размещения. Получите значение параметра методом [/v1/cluster/list](#operation/SupplyDraftAPI_DraftClusterList). + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestClusterInfo + */ + macrolocal_cluster_id: number; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestClusterInfo interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequestClusterInfo(value: object): value is V1DraftMultiClusterCreateRequestClusterInfo; +export declare function V1DraftMultiClusterCreateRequestClusterInfoFromJSON(json: any): V1DraftMultiClusterCreateRequestClusterInfo; +export declare function V1DraftMultiClusterCreateRequestClusterInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestClusterInfo; +export declare function V1DraftMultiClusterCreateRequestClusterInfoToJSON(value?: V1DraftMultiClusterCreateRequestClusterInfo | null): any; diff --git a/dist/models/V1DraftMultiClusterCreateRequestClusterInfo.js b/dist/models/V1DraftMultiClusterCreateRequestClusterInfo.js new file mode 100644 index 0000000..7f8342f --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestClusterInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftMultiClusterCreateRequestClusterInfo = instanceOfV1DraftMultiClusterCreateRequestClusterInfo; +exports.V1DraftMultiClusterCreateRequestClusterInfoFromJSON = V1DraftMultiClusterCreateRequestClusterInfoFromJSON; +exports.V1DraftMultiClusterCreateRequestClusterInfoFromJSONTyped = V1DraftMultiClusterCreateRequestClusterInfoFromJSONTyped; +exports.V1DraftMultiClusterCreateRequestClusterInfoToJSON = V1DraftMultiClusterCreateRequestClusterInfoToJSON; +const V1DraftMultiClusterCreateRequestClusterInfoItem_1 = require("./V1DraftMultiClusterCreateRequestClusterInfoItem"); +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestClusterInfo interface. + */ +function instanceOfV1DraftMultiClusterCreateRequestClusterInfo(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('macrolocal_cluster_id' in value) || value['macrolocal_cluster_id'] === undefined) + return false; + return true; +} +function V1DraftMultiClusterCreateRequestClusterInfoFromJSON(json) { + return V1DraftMultiClusterCreateRequestClusterInfoFromJSONTyped(json, false); +} +function V1DraftMultiClusterCreateRequestClusterInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(V1DraftMultiClusterCreateRequestClusterInfoItem_1.V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON)), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'], + }; +} +function V1DraftMultiClusterCreateRequestClusterInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(V1DraftMultiClusterCreateRequestClusterInfoItem_1.V1DraftMultiClusterCreateRequestClusterInfoItemToJSON)), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + }; +} diff --git a/dist/models/V1DraftMultiClusterCreateRequestClusterInfoItem.d.ts b/dist/models/V1DraftMultiClusterCreateRequestClusterInfoItem.d.ts new file mode 100644 index 0000000..4a85159 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestClusterInfoItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1DraftMultiClusterCreateRequestClusterInfoItem + */ +export interface V1DraftMultiClusterCreateRequestClusterInfoItem { + /** + * Количество. + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestClusterInfoItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestClusterInfoItem + */ + sku: number; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestClusterInfoItem interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequestClusterInfoItem(value: object): value is V1DraftMultiClusterCreateRequestClusterInfoItem; +export declare function V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON(json: any): V1DraftMultiClusterCreateRequestClusterInfoItem; +export declare function V1DraftMultiClusterCreateRequestClusterInfoItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestClusterInfoItem; +export declare function V1DraftMultiClusterCreateRequestClusterInfoItemToJSON(value?: V1DraftMultiClusterCreateRequestClusterInfoItem | null): any; diff --git a/dist/models/V1DraftMultiClusterCreateRequestClusterInfoItem.js b/dist/models/V1DraftMultiClusterCreateRequestClusterInfoItem.js new file mode 100644 index 0000000..ef0e0a8 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestClusterInfoItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftMultiClusterCreateRequestClusterInfoItem = instanceOfV1DraftMultiClusterCreateRequestClusterInfoItem; +exports.V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON = V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON; +exports.V1DraftMultiClusterCreateRequestClusterInfoItemFromJSONTyped = V1DraftMultiClusterCreateRequestClusterInfoItemFromJSONTyped; +exports.V1DraftMultiClusterCreateRequestClusterInfoItemToJSON = V1DraftMultiClusterCreateRequestClusterInfoItemToJSON; +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestClusterInfoItem interface. + */ +function instanceOfV1DraftMultiClusterCreateRequestClusterInfoItem(value) { + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1DraftMultiClusterCreateRequestClusterInfoItemFromJSON(json) { + return V1DraftMultiClusterCreateRequestClusterInfoItemFromJSONTyped(json, false); +} +function V1DraftMultiClusterCreateRequestClusterInfoItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +function V1DraftMultiClusterCreateRequestClusterInfoItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.d.ts b/dist/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.d.ts new file mode 100644 index 0000000..5e05c1a --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +export declare const V1DraftMultiClusterCreateRequestDeleteSkuModeEnum: { + readonly FULL: "FULL"; + readonly PARTIAL: "PARTIAL"; +}; +export type V1DraftMultiClusterCreateRequestDeleteSkuModeEnum = typeof V1DraftMultiClusterCreateRequestDeleteSkuModeEnum[keyof typeof V1DraftMultiClusterCreateRequestDeleteSkuModeEnum]; +export declare function instanceOfV1DraftMultiClusterCreateRequestDeleteSkuModeEnum(value: any): boolean; +export declare function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON(json: any): V1DraftMultiClusterCreateRequestDeleteSkuModeEnum; +export declare function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeleteSkuModeEnum; +export declare function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON(value?: V1DraftMultiClusterCreateRequestDeleteSkuModeEnum | null): any; diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.js b/dist/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.js new file mode 100644 index 0000000..fa47c32 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeleteSkuModeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftMultiClusterCreateRequestDeleteSkuModeEnum = void 0; +exports.instanceOfV1DraftMultiClusterCreateRequestDeleteSkuModeEnum = instanceOfV1DraftMultiClusterCreateRequestDeleteSkuModeEnum; +exports.V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON = V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON; +exports.V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSONTyped = V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSONTyped; +exports.V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON = V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON; +/** + * Режим удаления SKU, которые не попали в поставку. + * + * Возможные значения: + * - `PARTIAL` — система удалит только те единицы SKU, которые не прошли проверку; + * - `FULL` — система удалит все единицы SKU, если хотя бы одна единица этого SKU не прошла проверку. + * + * @export + */ +exports.V1DraftMultiClusterCreateRequestDeleteSkuModeEnum = { + FULL: 'FULL', + PARTIAL: 'PARTIAL' +}; +function instanceOfV1DraftMultiClusterCreateRequestDeleteSkuModeEnum(value) { + for (const key in exports.V1DraftMultiClusterCreateRequestDeleteSkuModeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1DraftMultiClusterCreateRequestDeleteSkuModeEnum, key)) { + if (exports.V1DraftMultiClusterCreateRequestDeleteSkuModeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSONTyped(json, false); +} +function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DraftMultiClusterCreateRequestDeleteSkuModeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfo.d.ts b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfo.d.ts new file mode 100644 index 0000000..a1e6219 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfo.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse } from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse'; +import type { V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum } from './V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum'; +/** + * Информация о доставке. + * @export + * @interface V1DraftMultiClusterCreateRequestDeliveryInfo + */ +export interface V1DraftMultiClusterCreateRequestDeliveryInfo { + /** + * + * @type {V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfo + */ + drop_off_warehouse?: V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfo + */ + seller_warehouse_id?: number; + /** + * + * @type {V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfo + */ + type: V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestDeliveryInfo interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfo(value: object): value is V1DraftMultiClusterCreateRequestDeliveryInfo; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON(json: any): V1DraftMultiClusterCreateRequestDeliveryInfo; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeliveryInfo; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoToJSON(value?: V1DraftMultiClusterCreateRequestDeliveryInfo | null): any; diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfo.js b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfo.js new file mode 100644 index 0000000..e936020 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfo.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftMultiClusterCreateRequestDeliveryInfo = instanceOfV1DraftMultiClusterCreateRequestDeliveryInfo; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON = V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoFromJSONTyped = V1DraftMultiClusterCreateRequestDeliveryInfoFromJSONTyped; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoToJSON = V1DraftMultiClusterCreateRequestDeliveryInfoToJSON; +const V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse_1 = require("./V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse"); +const V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum_1 = require("./V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum"); +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestDeliveryInfo interface. + */ +function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfo(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function V1DraftMultiClusterCreateRequestDeliveryInfoFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeliveryInfoFromJSONTyped(json, false); +} +function V1DraftMultiClusterCreateRequestDeliveryInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_warehouse': json['drop_off_warehouse'] == null ? undefined : (0, V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse_1.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON)(json['drop_off_warehouse']), + 'seller_warehouse_id': json['seller_warehouse_id'] == null ? undefined : json['seller_warehouse_id'], + 'type': (0, V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum_1.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON)(json['type']), + }; +} +function V1DraftMultiClusterCreateRequestDeliveryInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_warehouse': (0, V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse_1.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON)(value['drop_off_warehouse']), + 'seller_warehouse_id': value['seller_warehouse_id'], + 'type': (0, V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum_1.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.d.ts b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.d.ts new file mode 100644 index 0000000..5f20ced --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum } from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +/** + * Информация о пункте отгрузки. + * @export + * @interface V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse + */ +export interface V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse + */ + warehouse_id: number; + /** + * + * @type {V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum} + * @memberof V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse + */ + warehouse_type: V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +} +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse interface. + */ +export declare function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse(value: object): value is V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json: any): V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON(value?: V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse | null): any; diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.js b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.js new file mode 100644 index 0000000..5e71474 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse = instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON = V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped = V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON = V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON; +const V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum_1 = require("./V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum"); +/** + * Check if a given object implements the V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse interface. + */ +function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + if (!('warehouse_type' in value) || value['warehouse_type'] === undefined) + return false; + return true; +} +function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json, false); +} +function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + 'warehouse_type': (0, V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum_1.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON)(json['warehouse_type']), + }; +} +function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + 'warehouse_type': (0, V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum_1.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON)(value['warehouse_type']), + }; +} diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts new file mode 100644 index 0000000..8b60f70 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта отгрузки: + * - `DELIVERY_POINT` — пункт выдачи заказов; + * - `SORTING_CENTER` — сортировочный центр; + * - `CROSS_DOCK` — кросс-докинг; + * - `ORDERS_RECEIVING_POINT` — пункт приёма заказов; + * - `FULL_FILLMENT` — фулфилмент. + * + * @export + */ +export declare const V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum: { + readonly DELIVERY_POINT: "DELIVERY_POINT"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly FULL_FILLMENT: "FULL_FILLMENT"; +}; +export type V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = typeof V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum[keyof typeof V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum]; +export declare function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum(value: any): boolean; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json: any): V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value?: V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum | null): any; diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js new file mode 100644 index 0000000..2ca830f --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = void 0; +exports.instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON = V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped = V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON = V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON; +/** + * Тип пункта отгрузки: + * - `DELIVERY_POINT` — пункт выдачи заказов; + * - `SORTING_CENTER` — сортировочный центр; + * - `CROSS_DOCK` — кросс-докинг; + * - `ORDERS_RECEIVING_POINT` — пункт приёма заказов; + * - `FULL_FILLMENT` — фулфилмент. + * + * @export + */ +exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum = { + DELIVERY_POINT: 'DELIVERY_POINT', + SORTING_CENTER: 'SORTING_CENTER', + CROSS_DOCK: 'CROSS_DOCK', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + FULL_FILLMENT: 'FULL_FILLMENT' +}; +function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum(value) { + for (const key in exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum, key)) { + if (exports.V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json, false); +} +function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.d.ts b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.d.ts new file mode 100644 index 0000000..8fe09df --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип поставки: + * - `DROPOFF` — доставка до drop-off пункта; + * - `PICKUP` — доставка курьером от склада продавца. + * + * @export + */ +export declare const V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum: { + readonly DROPOFF: "DROPOFF"; + readonly PICKUP: "PICKUP"; +}; +export type V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum = typeof V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum[keyof typeof V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum]; +export declare function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum(value: any): boolean; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON(json: any): V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum; +export declare function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON(value?: V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum | null): any; diff --git a/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.js b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.js new file mode 100644 index 0000000..bb09ad0 --- /dev/null +++ b/dist/models/V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum = void 0; +exports.instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum = instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON = V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSONTyped = V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSONTyped; +exports.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON = V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON; +/** + * Тип поставки: + * - `DROPOFF` — доставка до drop-off пункта; + * - `PICKUP` — доставка курьером от склада продавца. + * + * @export + */ +exports.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum = { + DROPOFF: 'DROPOFF', + PICKUP: 'PICKUP' +}; +function instanceOfV1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum(value) { + for (const key in exports.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum, key)) { + if (exports.V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSON(json) { + return V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json, false); +} +function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1DraftStatusEnum.d.ts b/dist/models/V1DraftStatusEnum.d.ts new file mode 100644 index 0000000..55d03aa --- /dev/null +++ b/dist/models/V1DraftStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус черновика: + * - `DRAFT_STATUS_UNSPECIFIED` — не определён; + * - `NEW` — новый; + * - `SUPPLY_VARIANT_CONFIRMATION` — ожидает подтверждения; + * - `SUPPLY_NOT_CONFIRMED` — отклонён складом. + * + * @export + */ +export declare const V1DraftStatusEnum: { + readonly DRAFT_STATUS_UNSPECIFIED: "DRAFT_STATUS_UNSPECIFIED"; + readonly NEW: "NEW"; + readonly SUPPLY_VARIANT_CONFIRMATION: "SUPPLY_VARIANT_CONFIRMATION"; + readonly SUPPLY_NOT_CONFIRMED: "SUPPLY_NOT_CONFIRMED"; +}; +export type V1DraftStatusEnum = typeof V1DraftStatusEnum[keyof typeof V1DraftStatusEnum]; +export declare function instanceOfV1DraftStatusEnum(value: any): boolean; +export declare function V1DraftStatusEnumFromJSON(json: any): V1DraftStatusEnum; +export declare function V1DraftStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DraftStatusEnum; +export declare function V1DraftStatusEnumToJSON(value?: V1DraftStatusEnum | null): any; diff --git a/dist/models/V1DraftStatusEnum.js b/dist/models/V1DraftStatusEnum.js new file mode 100644 index 0000000..522b3f6 --- /dev/null +++ b/dist/models/V1DraftStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1DraftStatusEnum = void 0; +exports.instanceOfV1DraftStatusEnum = instanceOfV1DraftStatusEnum; +exports.V1DraftStatusEnumFromJSON = V1DraftStatusEnumFromJSON; +exports.V1DraftStatusEnumFromJSONTyped = V1DraftStatusEnumFromJSONTyped; +exports.V1DraftStatusEnumToJSON = V1DraftStatusEnumToJSON; +/** + * Статус черновика: + * - `DRAFT_STATUS_UNSPECIFIED` — не определён; + * - `NEW` — новый; + * - `SUPPLY_VARIANT_CONFIRMATION` — ожидает подтверждения; + * - `SUPPLY_NOT_CONFIRMED` — отклонён складом. + * + * @export + */ +exports.V1DraftStatusEnum = { + DRAFT_STATUS_UNSPECIFIED: 'DRAFT_STATUS_UNSPECIFIED', + NEW: 'NEW', + SUPPLY_VARIANT_CONFIRMATION: 'SUPPLY_VARIANT_CONFIRMATION', + SUPPLY_NOT_CONFIRMED: 'SUPPLY_NOT_CONFIRMED' +}; +function instanceOfV1DraftStatusEnum(value) { + for (const key in exports.V1DraftStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1DraftStatusEnum, key)) { + if (exports.V1DraftStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1DraftStatusEnumFromJSON(json) { + return V1DraftStatusEnumFromJSONTyped(json, false); +} +function V1DraftStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1DraftStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1FbpArchiveGetRequest.d.ts b/dist/models/V1FbpArchiveGetRequest.d.ts new file mode 100644 index 0000000..eb72e7e --- /dev/null +++ b/dist/models/V1FbpArchiveGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpArchiveGetRequest + */ +export interface V1FbpArchiveGetRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpArchiveGetRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpArchiveGetRequest interface. + */ +export declare function instanceOfV1FbpArchiveGetRequest(value: object): value is V1FbpArchiveGetRequest; +export declare function V1FbpArchiveGetRequestFromJSON(json: any): V1FbpArchiveGetRequest; +export declare function V1FbpArchiveGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveGetRequest; +export declare function V1FbpArchiveGetRequestToJSON(value?: V1FbpArchiveGetRequest | null): any; diff --git a/dist/models/V1FbpArchiveGetRequest.js b/dist/models/V1FbpArchiveGetRequest.js new file mode 100644 index 0000000..e4b4bd9 --- /dev/null +++ b/dist/models/V1FbpArchiveGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpArchiveGetRequest = instanceOfV1FbpArchiveGetRequest; +exports.V1FbpArchiveGetRequestFromJSON = V1FbpArchiveGetRequestFromJSON; +exports.V1FbpArchiveGetRequestFromJSONTyped = V1FbpArchiveGetRequestFromJSONTyped; +exports.V1FbpArchiveGetRequestToJSON = V1FbpArchiveGetRequestToJSON; +/** + * Check if a given object implements the V1FbpArchiveGetRequest interface. + */ +function instanceOfV1FbpArchiveGetRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpArchiveGetRequestFromJSON(json) { + return V1FbpArchiveGetRequestFromJSONTyped(json, false); +} +function V1FbpArchiveGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpArchiveGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpArchiveGetResponse.d.ts b/dist/models/V1FbpArchiveGetResponse.d.ts new file mode 100644 index 0000000..53876a3 --- /dev/null +++ b/dist/models/V1FbpArchiveGetResponse.d.ts @@ -0,0 +1,139 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ArchiveSkuSummary } from './V1ArchiveSkuSummary'; +import type { Fbpv1DeliveryDetails } from './Fbpv1DeliveryDetails'; +import type { V1ArchiveDeclineReason } from './V1ArchiveDeclineReason'; +import type { V1ArchiveStatusEnum } from './V1ArchiveStatusEnum'; +/** + * + * @export + * @interface V1FbpArchiveGetResponse + */ +export interface V1FbpArchiveGetResponse { + /** + * Идентификатор акта приёмки. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + act_file_uuid?: string; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + bundle_id?: string; + /** + * + * @type {V1ArchiveSkuSummary} + * @memberof V1FbpArchiveGetResponse + */ + bundle_sku_summary?: V1ArchiveSkuSummary; + /** + * Идентификатор типа поставки. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + business_flow_type_id?: number; + /** + * Дата и время создания заявки на поставку. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + created_date?: string; + /** + * + * @type {V1ArchiveDeclineReason} + * @memberof V1FbpArchiveGetResponse + */ + decline_reason?: V1ArchiveDeclineReason; + /** + * + * @type {Fbpv1DeliveryDetails} + * @memberof V1FbpArchiveGetResponse + */ + delivery_details?: Fbpv1DeliveryDetails; + /** + * `true`, если был сформирован акт приёмки. + * + * @type {boolean} + * @memberof V1FbpArchiveGetResponse + */ + has_act?: boolean; + /** + * `true`, если были сформированы этикетки. + * + * @type {boolean} + * @memberof V1FbpArchiveGetResponse + */ + has_label?: boolean; + /** + * Номер записи в архиве. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + id?: number; + /** + * Идентификатор черновика поставки. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + order_draft_id?: number; + /** + * Идентификатор завершённой поставки. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + order_number?: string; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + package_units_count?: number; + /** + * Дата и время принятия поставки. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + receive_date?: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + row_version?: number; + /** + * + * @type {V1ArchiveStatusEnum} + * @memberof V1FbpArchiveGetResponse + */ + status?: V1ArchiveStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpArchiveGetResponse + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpArchiveGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpArchiveGetResponse interface. + */ +export declare function instanceOfV1FbpArchiveGetResponse(value: object): value is V1FbpArchiveGetResponse; +export declare function V1FbpArchiveGetResponseFromJSON(json: any): V1FbpArchiveGetResponse; +export declare function V1FbpArchiveGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveGetResponse; +export declare function V1FbpArchiveGetResponseToJSON(value?: V1FbpArchiveGetResponse | null): any; diff --git a/dist/models/V1FbpArchiveGetResponse.js b/dist/models/V1FbpArchiveGetResponse.js new file mode 100644 index 0000000..853d53a --- /dev/null +++ b/dist/models/V1FbpArchiveGetResponse.js @@ -0,0 +1,82 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpArchiveGetResponse = instanceOfV1FbpArchiveGetResponse; +exports.V1FbpArchiveGetResponseFromJSON = V1FbpArchiveGetResponseFromJSON; +exports.V1FbpArchiveGetResponseFromJSONTyped = V1FbpArchiveGetResponseFromJSONTyped; +exports.V1FbpArchiveGetResponseToJSON = V1FbpArchiveGetResponseToJSON; +const V1ArchiveSkuSummary_1 = require("./V1ArchiveSkuSummary"); +const Fbpv1DeliveryDetails_1 = require("./Fbpv1DeliveryDetails"); +const V1ArchiveDeclineReason_1 = require("./V1ArchiveDeclineReason"); +const V1ArchiveStatusEnum_1 = require("./V1ArchiveStatusEnum"); +/** + * Check if a given object implements the V1FbpArchiveGetResponse interface. + */ +function instanceOfV1FbpArchiveGetResponse(value) { + return true; +} +function V1FbpArchiveGetResponseFromJSON(json) { + return V1FbpArchiveGetResponseFromJSONTyped(json, false); +} +function V1FbpArchiveGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_file_uuid': json['act_file_uuid'] == null ? undefined : json['act_file_uuid'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'bundle_sku_summary': json['bundle_sku_summary'] == null ? undefined : (0, V1ArchiveSkuSummary_1.V1ArchiveSkuSummaryFromJSON)(json['bundle_sku_summary']), + 'business_flow_type_id': json['business_flow_type_id'] == null ? undefined : json['business_flow_type_id'], + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'decline_reason': json['decline_reason'] == null ? undefined : (0, V1ArchiveDeclineReason_1.V1ArchiveDeclineReasonFromJSON)(json['decline_reason']), + 'delivery_details': json['delivery_details'] == null ? undefined : (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsFromJSON)(json['delivery_details']), + 'has_act': json['has_act'] == null ? undefined : json['has_act'], + 'has_label': json['has_label'] == null ? undefined : json['has_label'], + 'id': json['id'] == null ? undefined : json['id'], + 'order_draft_id': json['order_draft_id'] == null ? undefined : json['order_draft_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'status': json['status'] == null ? undefined : (0, V1ArchiveStatusEnum_1.V1ArchiveStatusEnumFromJSON)(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V1FbpArchiveGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_file_uuid': value['act_file_uuid'], + 'bundle_id': value['bundle_id'], + 'bundle_sku_summary': (0, V1ArchiveSkuSummary_1.V1ArchiveSkuSummaryToJSON)(value['bundle_sku_summary']), + 'business_flow_type_id': value['business_flow_type_id'], + 'created_date': value['created_date'], + 'decline_reason': (0, V1ArchiveDeclineReason_1.V1ArchiveDeclineReasonToJSON)(value['decline_reason']), + 'delivery_details': (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsToJSON)(value['delivery_details']), + 'has_act': value['has_act'], + 'has_label': value['has_label'], + 'id': value['id'], + 'order_draft_id': value['order_draft_id'], + 'order_number': value['order_number'], + 'package_units_count': value['package_units_count'], + 'receive_date': value['receive_date'], + 'row_version': value['row_version'], + 'status': (0, V1ArchiveStatusEnum_1.V1ArchiveStatusEnumToJSON)(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpArchiveListRequest.d.ts b/dist/models/V1FbpArchiveListRequest.d.ts new file mode 100644 index 0000000..79d46f2 --- /dev/null +++ b/dist/models/V1FbpArchiveListRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpArchiveListRequest + */ +export interface V1FbpArchiveListRequest { + /** + * Количество элементов в ответе. + * @type {string} + * @memberof V1FbpArchiveListRequest + */ + count: string; + /** + * Идентификатор последнего значения на странице. Оставьте это поле пустым при выполнении первого запроса. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof V1FbpArchiveListRequest + */ + last_id?: string; +} +/** + * Check if a given object implements the V1FbpArchiveListRequest interface. + */ +export declare function instanceOfV1FbpArchiveListRequest(value: object): value is V1FbpArchiveListRequest; +export declare function V1FbpArchiveListRequestFromJSON(json: any): V1FbpArchiveListRequest; +export declare function V1FbpArchiveListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveListRequest; +export declare function V1FbpArchiveListRequestToJSON(value?: V1FbpArchiveListRequest | null): any; diff --git a/dist/models/V1FbpArchiveListRequest.js b/dist/models/V1FbpArchiveListRequest.js new file mode 100644 index 0000000..a2949ba --- /dev/null +++ b/dist/models/V1FbpArchiveListRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpArchiveListRequest = instanceOfV1FbpArchiveListRequest; +exports.V1FbpArchiveListRequestFromJSON = V1FbpArchiveListRequestFromJSON; +exports.V1FbpArchiveListRequestFromJSONTyped = V1FbpArchiveListRequestFromJSONTyped; +exports.V1FbpArchiveListRequestToJSON = V1FbpArchiveListRequestToJSON; +/** + * Check if a given object implements the V1FbpArchiveListRequest interface. + */ +function instanceOfV1FbpArchiveListRequest(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + return true; +} +function V1FbpArchiveListRequestFromJSON(json) { + return V1FbpArchiveListRequestFromJSONTyped(json, false); +} +function V1FbpArchiveListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1FbpArchiveListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1FbpArchiveListResponse.d.ts b/dist/models/V1FbpArchiveListResponse.d.ts new file mode 100644 index 0000000..b52dc7b --- /dev/null +++ b/dist/models/V1FbpArchiveListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpArchiveListResponseItem } from './V1FbpArchiveListResponseItem'; +/** + * + * @export + * @interface V1FbpArchiveListResponse + */ +export interface V1FbpArchiveListResponse { + /** + * `true`, если в ответе вернулись не все значения. + * + * @type {boolean} + * @memberof V1FbpArchiveListResponse + */ + has_next?: boolean; + /** + * Завершённые поставки. + * @type {Array} + * @memberof V1FbpArchiveListResponse + */ + items?: Array; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1FbpArchiveListResponse + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpArchiveListResponse interface. + */ +export declare function instanceOfV1FbpArchiveListResponse(value: object): value is V1FbpArchiveListResponse; +export declare function V1FbpArchiveListResponseFromJSON(json: any): V1FbpArchiveListResponse; +export declare function V1FbpArchiveListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveListResponse; +export declare function V1FbpArchiveListResponseToJSON(value?: V1FbpArchiveListResponse | null): any; diff --git a/dist/models/V1FbpArchiveListResponse.js b/dist/models/V1FbpArchiveListResponse.js new file mode 100644 index 0000000..80d00d4 --- /dev/null +++ b/dist/models/V1FbpArchiveListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpArchiveListResponse = instanceOfV1FbpArchiveListResponse; +exports.V1FbpArchiveListResponseFromJSON = V1FbpArchiveListResponseFromJSON; +exports.V1FbpArchiveListResponseFromJSONTyped = V1FbpArchiveListResponseFromJSONTyped; +exports.V1FbpArchiveListResponseToJSON = V1FbpArchiveListResponseToJSON; +const V1FbpArchiveListResponseItem_1 = require("./V1FbpArchiveListResponseItem"); +/** + * Check if a given object implements the V1FbpArchiveListResponse interface. + */ +function instanceOfV1FbpArchiveListResponse(value) { + return true; +} +function V1FbpArchiveListResponseFromJSON(json) { + return V1FbpArchiveListResponseFromJSONTyped(json, false); +} +function V1FbpArchiveListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'items': json['items'] == null ? undefined : (json['items'].map(V1FbpArchiveListResponseItem_1.V1FbpArchiveListResponseItemFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1FbpArchiveListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'items': value['items'] == null ? undefined : (value['items'].map(V1FbpArchiveListResponseItem_1.V1FbpArchiveListResponseItemToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1FbpArchiveListResponseItem.d.ts b/dist/models/V1FbpArchiveListResponseItem.d.ts new file mode 100644 index 0000000..91264b0 --- /dev/null +++ b/dist/models/V1FbpArchiveListResponseItem.d.ts @@ -0,0 +1,133 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ArchiveSkuSummary } from './V1ArchiveSkuSummary'; +import type { Fbpv1DeliveryDetails } from './Fbpv1DeliveryDetails'; +import type { V1ArchiveDeclineReason } from './V1ArchiveDeclineReason'; +import type { V1ArchiveStatusEnum } from './V1ArchiveStatusEnum'; +/** + * + * @export + * @interface V1FbpArchiveListResponseItem + */ +export interface V1FbpArchiveListResponseItem { + /** + * Идентификатор акта приёмки. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + act_file_uuid?: string; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + bundle_id?: string; + /** + * + * @type {V1ArchiveSkuSummary} + * @memberof V1FbpArchiveListResponseItem + */ + bundle_sku_summary?: V1ArchiveSkuSummary; + /** + * Дата создания заявки на поставку. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + created_date?: string; + /** + * + * @type {V1ArchiveDeclineReason} + * @memberof V1FbpArchiveListResponseItem + */ + decline_reason?: V1ArchiveDeclineReason; + /** + * + * @type {Fbpv1DeliveryDetails} + * @memberof V1FbpArchiveListResponseItem + */ + delivery_details?: Fbpv1DeliveryDetails; + /** + * Идентификатор завершённой поставки у партнёрского склада со своей системой учёта. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + external_order_id?: string; + /** + * `true`, если был сформирован акт приёмки. + * + * @type {boolean} + * @memberof V1FbpArchiveListResponseItem + */ + has_act?: boolean; + /** + * `true`, если были сформированы этикетки. + * + * @type {boolean} + * @memberof V1FbpArchiveListResponseItem + */ + has_label?: boolean; + /** + * Идентификатор черновика поставки. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + order_draft_id?: number; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + package_units_count?: number; + /** + * Дата и время принятия поставки. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + receive_date?: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + row_version?: number; + /** + * + * @type {V1ArchiveStatusEnum} + * @memberof V1FbpArchiveListResponseItem + */ + status?: V1ArchiveStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpArchiveListResponseItem + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + warehouse_id?: number; + /** + * Идентификатор завершённой поставки у партнёрского склада. + * @type {number} + * @memberof V1FbpArchiveListResponseItem + */ + whc_order_id?: number; +} +/** + * Check if a given object implements the V1FbpArchiveListResponseItem interface. + */ +export declare function instanceOfV1FbpArchiveListResponseItem(value: object): value is V1FbpArchiveListResponseItem; +export declare function V1FbpArchiveListResponseItemFromJSON(json: any): V1FbpArchiveListResponseItem; +export declare function V1FbpArchiveListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpArchiveListResponseItem; +export declare function V1FbpArchiveListResponseItemToJSON(value?: V1FbpArchiveListResponseItem | null): any; diff --git a/dist/models/V1FbpArchiveListResponseItem.js b/dist/models/V1FbpArchiveListResponseItem.js new file mode 100644 index 0000000..4a8d91e --- /dev/null +++ b/dist/models/V1FbpArchiveListResponseItem.js @@ -0,0 +1,80 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpArchiveListResponseItem = instanceOfV1FbpArchiveListResponseItem; +exports.V1FbpArchiveListResponseItemFromJSON = V1FbpArchiveListResponseItemFromJSON; +exports.V1FbpArchiveListResponseItemFromJSONTyped = V1FbpArchiveListResponseItemFromJSONTyped; +exports.V1FbpArchiveListResponseItemToJSON = V1FbpArchiveListResponseItemToJSON; +const V1ArchiveSkuSummary_1 = require("./V1ArchiveSkuSummary"); +const Fbpv1DeliveryDetails_1 = require("./Fbpv1DeliveryDetails"); +const V1ArchiveDeclineReason_1 = require("./V1ArchiveDeclineReason"); +const V1ArchiveStatusEnum_1 = require("./V1ArchiveStatusEnum"); +/** + * Check if a given object implements the V1FbpArchiveListResponseItem interface. + */ +function instanceOfV1FbpArchiveListResponseItem(value) { + return true; +} +function V1FbpArchiveListResponseItemFromJSON(json) { + return V1FbpArchiveListResponseItemFromJSONTyped(json, false); +} +function V1FbpArchiveListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_file_uuid': json['act_file_uuid'] == null ? undefined : json['act_file_uuid'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'bundle_sku_summary': json['bundle_sku_summary'] == null ? undefined : (0, V1ArchiveSkuSummary_1.V1ArchiveSkuSummaryFromJSON)(json['bundle_sku_summary']), + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'decline_reason': json['decline_reason'] == null ? undefined : (0, V1ArchiveDeclineReason_1.V1ArchiveDeclineReasonFromJSON)(json['decline_reason']), + 'delivery_details': json['delivery_details'] == null ? undefined : (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsFromJSON)(json['delivery_details']), + 'external_order_id': json['external_order_id'] == null ? undefined : json['external_order_id'], + 'has_act': json['has_act'] == null ? undefined : json['has_act'], + 'has_label': json['has_label'] == null ? undefined : json['has_label'], + 'order_draft_id': json['order_draft_id'] == null ? undefined : json['order_draft_id'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'status': json['status'] == null ? undefined : (0, V1ArchiveStatusEnum_1.V1ArchiveStatusEnumFromJSON)(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'whc_order_id': json['whc_order_id'] == null ? undefined : json['whc_order_id'], + }; +} +function V1FbpArchiveListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_file_uuid': value['act_file_uuid'], + 'bundle_id': value['bundle_id'], + 'bundle_sku_summary': (0, V1ArchiveSkuSummary_1.V1ArchiveSkuSummaryToJSON)(value['bundle_sku_summary']), + 'created_date': value['created_date'], + 'decline_reason': (0, V1ArchiveDeclineReason_1.V1ArchiveDeclineReasonToJSON)(value['decline_reason']), + 'delivery_details': (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsToJSON)(value['delivery_details']), + 'external_order_id': value['external_order_id'], + 'has_act': value['has_act'], + 'has_label': value['has_label'], + 'order_draft_id': value['order_draft_id'], + 'package_units_count': value['package_units_count'], + 'receive_date': value['receive_date'], + 'row_version': value['row_version'], + 'status': (0, V1ArchiveStatusEnum_1.V1ArchiveStatusEnumToJSON)(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + 'whc_order_id': value['whc_order_id'], + }; +} diff --git a/dist/models/V1FbpAvailableTimeslotListRequest.d.ts b/dist/models/V1FbpAvailableTimeslotListRequest.d.ts new file mode 100644 index 0000000..8f1804c --- /dev/null +++ b/dist/models/V1FbpAvailableTimeslotListRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpAvailableTimeslotListRequest + */ +export interface V1FbpAvailableTimeslotListRequest { + /** + * Дата окончания нужного периода доступных таймслотов. + * @type {string} + * @memberof V1FbpAvailableTimeslotListRequest + */ + interval_end: string; + /** + * Дата начала нужного периода доступных таймслотов. + * @type {string} + * @memberof V1FbpAvailableTimeslotListRequest + */ + interval_start: string; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpAvailableTimeslotListRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpAvailableTimeslotListRequest interface. + */ +export declare function instanceOfV1FbpAvailableTimeslotListRequest(value: object): value is V1FbpAvailableTimeslotListRequest; +export declare function V1FbpAvailableTimeslotListRequestFromJSON(json: any): V1FbpAvailableTimeslotListRequest; +export declare function V1FbpAvailableTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpAvailableTimeslotListRequest; +export declare function V1FbpAvailableTimeslotListRequestToJSON(value?: V1FbpAvailableTimeslotListRequest | null): any; diff --git a/dist/models/V1FbpAvailableTimeslotListRequest.js b/dist/models/V1FbpAvailableTimeslotListRequest.js new file mode 100644 index 0000000..c565c17 --- /dev/null +++ b/dist/models/V1FbpAvailableTimeslotListRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpAvailableTimeslotListRequest = instanceOfV1FbpAvailableTimeslotListRequest; +exports.V1FbpAvailableTimeslotListRequestFromJSON = V1FbpAvailableTimeslotListRequestFromJSON; +exports.V1FbpAvailableTimeslotListRequestFromJSONTyped = V1FbpAvailableTimeslotListRequestFromJSONTyped; +exports.V1FbpAvailableTimeslotListRequestToJSON = V1FbpAvailableTimeslotListRequestToJSON; +/** + * Check if a given object implements the V1FbpAvailableTimeslotListRequest interface. + */ +function instanceOfV1FbpAvailableTimeslotListRequest(value) { + if (!('interval_end' in value) || value['interval_end'] === undefined) + return false; + if (!('interval_start' in value) || value['interval_start'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpAvailableTimeslotListRequestFromJSON(json) { + return V1FbpAvailableTimeslotListRequestFromJSONTyped(json, false); +} +function V1FbpAvailableTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'interval_end': json['interval_end'], + 'interval_start': json['interval_start'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpAvailableTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'interval_end': value['interval_end'], + 'interval_start': value['interval_start'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpAvailableTimeslotListResponse.d.ts b/dist/models/V1FbpAvailableTimeslotListResponse.d.ts new file mode 100644 index 0000000..51446ad --- /dev/null +++ b/dist/models/V1FbpAvailableTimeslotListResponse.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fbpv1Timeslot } from './Fbpv1Timeslot'; +import type { V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason } from './V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason'; +/** + * + * @export + * @interface V1FbpAvailableTimeslotListResponse + */ +export interface V1FbpAvailableTimeslotListResponse { + /** + * Причины отсутствия таймслотов: + * - `EMPTY_TIMESLOTS_REASON_UNSPECIFIED` — не определено; + * - `LOGISTICS_UNKNOWN` — неизвестная ошибка на стороне логистики; + * - `NO_ROUTE` — нет маршрута; + * - `NO_ROUTE_SCHEDULES` — нет расписания на маршруте; + * - `NO_LOGISTICS_CAPACITY` — недостаточно доступных слотов на маршруте; + * - `SCHEDULE_UNKNOWN` — неизвестная ошибка на стороне расписаний; + * - `NOT_ENOUGH_CAPACITY` — недостаточно доступных слотов на складе; + * - `NOT_ENOUGH_TRUCKS` — недостаточно машиномест; + * - `LIMITS_NOT_AVAILABLE` — не настроены лимиты на складе; + * - `CROSS_DOCK_RESERVE_MISSING` — не забронирован кросс-докинговый резерв на складе; + * - `SCHEDULE_RESERVE_MISSING` — отсутствует необходимый резерв по расписанию. + * + * @type {Array} + * @memberof V1FbpAvailableTimeslotListResponse + */ + reasons?: Array; + /** + * Список доступных таймслотов. + * @type {Array} + * @memberof V1FbpAvailableTimeslotListResponse + */ + timeslots?: Array; + /** + * Часовой пояс склада продавца. + * @type {string} + * @memberof V1FbpAvailableTimeslotListResponse + */ + warehouse_timezone_name?: string; +} +/** + * Check if a given object implements the V1FbpAvailableTimeslotListResponse interface. + */ +export declare function instanceOfV1FbpAvailableTimeslotListResponse(value: object): value is V1FbpAvailableTimeslotListResponse; +export declare function V1FbpAvailableTimeslotListResponseFromJSON(json: any): V1FbpAvailableTimeslotListResponse; +export declare function V1FbpAvailableTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpAvailableTimeslotListResponse; +export declare function V1FbpAvailableTimeslotListResponseToJSON(value?: V1FbpAvailableTimeslotListResponse | null): any; diff --git a/dist/models/V1FbpAvailableTimeslotListResponse.js b/dist/models/V1FbpAvailableTimeslotListResponse.js new file mode 100644 index 0000000..944a538 --- /dev/null +++ b/dist/models/V1FbpAvailableTimeslotListResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpAvailableTimeslotListResponse = instanceOfV1FbpAvailableTimeslotListResponse; +exports.V1FbpAvailableTimeslotListResponseFromJSON = V1FbpAvailableTimeslotListResponseFromJSON; +exports.V1FbpAvailableTimeslotListResponseFromJSONTyped = V1FbpAvailableTimeslotListResponseFromJSONTyped; +exports.V1FbpAvailableTimeslotListResponseToJSON = V1FbpAvailableTimeslotListResponseToJSON; +const Fbpv1Timeslot_1 = require("./Fbpv1Timeslot"); +const V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason_1 = require("./V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason"); +/** + * Check if a given object implements the V1FbpAvailableTimeslotListResponse interface. + */ +function instanceOfV1FbpAvailableTimeslotListResponse(value) { + return true; +} +function V1FbpAvailableTimeslotListResponseFromJSON(json) { + return V1FbpAvailableTimeslotListResponseFromJSONTyped(json, false); +} +function V1FbpAvailableTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason_1.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON)), + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(Fbpv1Timeslot_1.Fbpv1TimeslotFromJSON)), + 'warehouse_timezone_name': json['warehouse_timezone_name'] == null ? undefined : json['warehouse_timezone_name'], + }; +} +function V1FbpAvailableTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason_1.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON)), + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(Fbpv1Timeslot_1.Fbpv1TimeslotToJSON)), + 'warehouse_timezone_name': value['warehouse_timezone_name'], + }; +} diff --git a/dist/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.d.ts b/dist/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.d.ts new file mode 100644 index 0000000..13b9bc9 --- /dev/null +++ b/dist/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason: { + readonly EMPTY_TIMESLOTS_REASON_UNSPECIFIED: "EMPTY_TIMESLOTS_REASON_UNSPECIFIED"; + readonly LOGISTICS_UNKNOWN: "LOGISTICS_UNKNOWN"; + readonly NO_ROUTE: "NO_ROUTE"; + readonly NO_ROUTE_SCHEDULES: "NO_ROUTE_SCHEDULES"; + readonly NO_LOGISTICS_CAPACITY: "NO_LOGISTICS_CAPACITY"; + readonly SCHEDULE_UNKNOWN: "SCHEDULE_UNKNOWN"; + readonly NOT_ENOUGH_CAPACITY: "NOT_ENOUGH_CAPACITY"; + readonly NOT_ENOUGH_TRUCKS: "NOT_ENOUGH_TRUCKS"; + readonly LIMITS_NOT_AVAILABLE: "LIMITS_NOT_AVAILABLE"; + readonly CROSS_DOCK_RESERVE_MISSING: "CROSS_DOCK_RESERVE_MISSING"; + readonly SCHEDULE_RESERVE_MISSING: "SCHEDULE_RESERVE_MISSING"; +}; +export type V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason = typeof V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason[keyof typeof V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason]; +export declare function instanceOfV1FbpAvailableTimeslotListResponseEmptyTimeslotsReason(value: any): boolean; +export declare function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON(json: any): V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason; +export declare function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason; +export declare function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON(value?: V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason | null): any; diff --git a/dist/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.js b/dist/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.js new file mode 100644 index 0000000..ad8b250 --- /dev/null +++ b/dist/models/V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason = void 0; +exports.instanceOfV1FbpAvailableTimeslotListResponseEmptyTimeslotsReason = instanceOfV1FbpAvailableTimeslotListResponseEmptyTimeslotsReason; +exports.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON = V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON; +exports.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSONTyped = V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSONTyped; +exports.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON = V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON; +/** + * + * @export + */ +exports.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason = { + EMPTY_TIMESLOTS_REASON_UNSPECIFIED: 'EMPTY_TIMESLOTS_REASON_UNSPECIFIED', + LOGISTICS_UNKNOWN: 'LOGISTICS_UNKNOWN', + NO_ROUTE: 'NO_ROUTE', + NO_ROUTE_SCHEDULES: 'NO_ROUTE_SCHEDULES', + NO_LOGISTICS_CAPACITY: 'NO_LOGISTICS_CAPACITY', + SCHEDULE_UNKNOWN: 'SCHEDULE_UNKNOWN', + NOT_ENOUGH_CAPACITY: 'NOT_ENOUGH_CAPACITY', + NOT_ENOUGH_TRUCKS: 'NOT_ENOUGH_TRUCKS', + LIMITS_NOT_AVAILABLE: 'LIMITS_NOT_AVAILABLE', + CROSS_DOCK_RESERVE_MISSING: 'CROSS_DOCK_RESERVE_MISSING', + SCHEDULE_RESERVE_MISSING: 'SCHEDULE_RESERVE_MISSING' +}; +function instanceOfV1FbpAvailableTimeslotListResponseEmptyTimeslotsReason(value) { + for (const key in exports.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason) { + if (Object.prototype.hasOwnProperty.call(exports.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason, key)) { + if (exports.V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason[key] === value) { + return true; + } + } + } + return false; +} +function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSON(json) { + return V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSONTyped(json, false); +} +function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1FbpAvailableTimeslotListResponseEmptyTimeslotsReasonToJSON(value) { + return value; +} diff --git a/dist/models/V1FbpCheckActStateRequest.d.ts b/dist/models/V1FbpCheckActStateRequest.d.ts new file mode 100644 index 0000000..4ac8530 --- /dev/null +++ b/dist/models/V1FbpCheckActStateRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCheckActStateRequest + */ +export interface V1FbpCheckActStateRequest { + /** + * Идентификатор акта приёмки. + * @type {string} + * @memberof V1FbpCheckActStateRequest + */ + file_uuid: string; +} +/** + * Check if a given object implements the V1FbpCheckActStateRequest interface. + */ +export declare function instanceOfV1FbpCheckActStateRequest(value: object): value is V1FbpCheckActStateRequest; +export declare function V1FbpCheckActStateRequestFromJSON(json: any): V1FbpCheckActStateRequest; +export declare function V1FbpCheckActStateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckActStateRequest; +export declare function V1FbpCheckActStateRequestToJSON(value?: V1FbpCheckActStateRequest | null): any; diff --git a/dist/models/V1FbpCheckActStateRequest.js b/dist/models/V1FbpCheckActStateRequest.js new file mode 100644 index 0000000..63bb337 --- /dev/null +++ b/dist/models/V1FbpCheckActStateRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCheckActStateRequest = instanceOfV1FbpCheckActStateRequest; +exports.V1FbpCheckActStateRequestFromJSON = V1FbpCheckActStateRequestFromJSON; +exports.V1FbpCheckActStateRequestFromJSONTyped = V1FbpCheckActStateRequestFromJSONTyped; +exports.V1FbpCheckActStateRequestToJSON = V1FbpCheckActStateRequestToJSON; +/** + * Check if a given object implements the V1FbpCheckActStateRequest interface. + */ +function instanceOfV1FbpCheckActStateRequest(value) { + if (!('file_uuid' in value) || value['file_uuid'] === undefined) + return false; + return true; +} +function V1FbpCheckActStateRequestFromJSON(json) { + return V1FbpCheckActStateRequestFromJSONTyped(json, false); +} +function V1FbpCheckActStateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_uuid': json['file_uuid'], + }; +} +function V1FbpCheckActStateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_uuid': value['file_uuid'], + }; +} diff --git a/dist/models/V1FbpCheckActStateResponse.d.ts b/dist/models/V1FbpCheckActStateResponse.d.ts new file mode 100644 index 0000000..078765b --- /dev/null +++ b/dist/models/V1FbpCheckActStateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpCheckActStateResponseErrorReason } from './FbpCheckActStateResponseErrorReason'; +import type { V1FbpCheckActStateResponseStatus } from './V1FbpCheckActStateResponseStatus'; +/** + * + * @export + * @interface V1FbpCheckActStateResponse + */ +export interface V1FbpCheckActStateResponse { + /** + * Ссылка на акт приёмки. + * @type {string} + * @memberof V1FbpCheckActStateResponse + */ + cdn_url?: string; + /** + * + * @type {FbpCheckActStateResponseErrorReason} + * @memberof V1FbpCheckActStateResponse + */ + error?: FbpCheckActStateResponseErrorReason; + /** + * + * @type {V1FbpCheckActStateResponseStatus} + * @memberof V1FbpCheckActStateResponse + */ + status?: V1FbpCheckActStateResponseStatus; +} +/** + * Check if a given object implements the V1FbpCheckActStateResponse interface. + */ +export declare function instanceOfV1FbpCheckActStateResponse(value: object): value is V1FbpCheckActStateResponse; +export declare function V1FbpCheckActStateResponseFromJSON(json: any): V1FbpCheckActStateResponse; +export declare function V1FbpCheckActStateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckActStateResponse; +export declare function V1FbpCheckActStateResponseToJSON(value?: V1FbpCheckActStateResponse | null): any; diff --git a/dist/models/V1FbpCheckActStateResponse.js b/dist/models/V1FbpCheckActStateResponse.js new file mode 100644 index 0000000..7a85df5 --- /dev/null +++ b/dist/models/V1FbpCheckActStateResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCheckActStateResponse = instanceOfV1FbpCheckActStateResponse; +exports.V1FbpCheckActStateResponseFromJSON = V1FbpCheckActStateResponseFromJSON; +exports.V1FbpCheckActStateResponseFromJSONTyped = V1FbpCheckActStateResponseFromJSONTyped; +exports.V1FbpCheckActStateResponseToJSON = V1FbpCheckActStateResponseToJSON; +const FbpCheckActStateResponseErrorReason_1 = require("./FbpCheckActStateResponseErrorReason"); +const V1FbpCheckActStateResponseStatus_1 = require("./V1FbpCheckActStateResponseStatus"); +/** + * Check if a given object implements the V1FbpCheckActStateResponse interface. + */ +function instanceOfV1FbpCheckActStateResponse(value) { + return true; +} +function V1FbpCheckActStateResponseFromJSON(json) { + return V1FbpCheckActStateResponseFromJSONTyped(json, false); +} +function V1FbpCheckActStateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cdn_url': json['cdn_url'] == null ? undefined : json['cdn_url'], + 'error': json['error'] == null ? undefined : (0, FbpCheckActStateResponseErrorReason_1.FbpCheckActStateResponseErrorReasonFromJSON)(json['error']), + 'status': json['status'] == null ? undefined : (0, V1FbpCheckActStateResponseStatus_1.V1FbpCheckActStateResponseStatusFromJSON)(json['status']), + }; +} +function V1FbpCheckActStateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cdn_url': value['cdn_url'], + 'error': (0, FbpCheckActStateResponseErrorReason_1.FbpCheckActStateResponseErrorReasonToJSON)(value['error']), + 'status': (0, V1FbpCheckActStateResponseStatus_1.V1FbpCheckActStateResponseStatusToJSON)(value['status']), + }; +} diff --git a/dist/models/V1FbpCheckActStateResponseStatus.d.ts b/dist/models/V1FbpCheckActStateResponseStatus.d.ts new file mode 100644 index 0000000..434e0c8 --- /dev/null +++ b/dist/models/V1FbpCheckActStateResponseStatus.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус генерации: + * - `STATUS_UNSPECIFIED` — не определён; + * - `NOT_EXIST` — не существует; + * - `PROCESSING` — в процессе; + * - `EXIST` — завершена; + * - `ERROR` — ошибка. + * + * @export + */ +export declare const V1FbpCheckActStateResponseStatus: { + readonly STATUS_UNSPECIFIED: "STATUS_UNSPECIFIED"; + readonly NOT_EXIST: "NOT_EXIST"; + readonly PROCESSING: "PROCESSING"; + readonly EXIST: "EXIST"; + readonly ERROR: "ERROR"; +}; +export type V1FbpCheckActStateResponseStatus = typeof V1FbpCheckActStateResponseStatus[keyof typeof V1FbpCheckActStateResponseStatus]; +export declare function instanceOfV1FbpCheckActStateResponseStatus(value: any): boolean; +export declare function V1FbpCheckActStateResponseStatusFromJSON(json: any): V1FbpCheckActStateResponseStatus; +export declare function V1FbpCheckActStateResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckActStateResponseStatus; +export declare function V1FbpCheckActStateResponseStatusToJSON(value?: V1FbpCheckActStateResponseStatus | null): any; diff --git a/dist/models/V1FbpCheckActStateResponseStatus.js b/dist/models/V1FbpCheckActStateResponseStatus.js new file mode 100644 index 0000000..44cd92b --- /dev/null +++ b/dist/models/V1FbpCheckActStateResponseStatus.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1FbpCheckActStateResponseStatus = void 0; +exports.instanceOfV1FbpCheckActStateResponseStatus = instanceOfV1FbpCheckActStateResponseStatus; +exports.V1FbpCheckActStateResponseStatusFromJSON = V1FbpCheckActStateResponseStatusFromJSON; +exports.V1FbpCheckActStateResponseStatusFromJSONTyped = V1FbpCheckActStateResponseStatusFromJSONTyped; +exports.V1FbpCheckActStateResponseStatusToJSON = V1FbpCheckActStateResponseStatusToJSON; +/** + * Статус генерации: + * - `STATUS_UNSPECIFIED` — не определён; + * - `NOT_EXIST` — не существует; + * - `PROCESSING` — в процессе; + * - `EXIST` — завершена; + * - `ERROR` — ошибка. + * + * @export + */ +exports.V1FbpCheckActStateResponseStatus = { + STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED', + NOT_EXIST: 'NOT_EXIST', + PROCESSING: 'PROCESSING', + EXIST: 'EXIST', + ERROR: 'ERROR' +}; +function instanceOfV1FbpCheckActStateResponseStatus(value) { + for (const key in exports.V1FbpCheckActStateResponseStatus) { + if (Object.prototype.hasOwnProperty.call(exports.V1FbpCheckActStateResponseStatus, key)) { + if (exports.V1FbpCheckActStateResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +function V1FbpCheckActStateResponseStatusFromJSON(json) { + return V1FbpCheckActStateResponseStatusFromJSONTyped(json, false); +} +function V1FbpCheckActStateResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1FbpCheckActStateResponseStatusToJSON(value) { + return value; +} diff --git a/dist/models/V1FbpCheckConsignmentNoteStateRequest.d.ts b/dist/models/V1FbpCheckConsignmentNoteStateRequest.d.ts new file mode 100644 index 0000000..9b91565 --- /dev/null +++ b/dist/models/V1FbpCheckConsignmentNoteStateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCheckConsignmentNoteStateRequest + */ +export interface V1FbpCheckConsignmentNoteStateRequest { + /** + * Идентификатор транспортной накладной. + * @type {string} + * @memberof V1FbpCheckConsignmentNoteStateRequest + */ + code: string; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpCheckConsignmentNoteStateRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpCheckConsignmentNoteStateRequest interface. + */ +export declare function instanceOfV1FbpCheckConsignmentNoteStateRequest(value: object): value is V1FbpCheckConsignmentNoteStateRequest; +export declare function V1FbpCheckConsignmentNoteStateRequestFromJSON(json: any): V1FbpCheckConsignmentNoteStateRequest; +export declare function V1FbpCheckConsignmentNoteStateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckConsignmentNoteStateRequest; +export declare function V1FbpCheckConsignmentNoteStateRequestToJSON(value?: V1FbpCheckConsignmentNoteStateRequest | null): any; diff --git a/dist/models/V1FbpCheckConsignmentNoteStateRequest.js b/dist/models/V1FbpCheckConsignmentNoteStateRequest.js new file mode 100644 index 0000000..acadd60 --- /dev/null +++ b/dist/models/V1FbpCheckConsignmentNoteStateRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCheckConsignmentNoteStateRequest = instanceOfV1FbpCheckConsignmentNoteStateRequest; +exports.V1FbpCheckConsignmentNoteStateRequestFromJSON = V1FbpCheckConsignmentNoteStateRequestFromJSON; +exports.V1FbpCheckConsignmentNoteStateRequestFromJSONTyped = V1FbpCheckConsignmentNoteStateRequestFromJSONTyped; +exports.V1FbpCheckConsignmentNoteStateRequestToJSON = V1FbpCheckConsignmentNoteStateRequestToJSON; +/** + * Check if a given object implements the V1FbpCheckConsignmentNoteStateRequest interface. + */ +function instanceOfV1FbpCheckConsignmentNoteStateRequest(value) { + if (!('code' in value) || value['code'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpCheckConsignmentNoteStateRequestFromJSON(json) { + return V1FbpCheckConsignmentNoteStateRequestFromJSONTyped(json, false); +} +function V1FbpCheckConsignmentNoteStateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpCheckConsignmentNoteStateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpCheckConsignmentNoteStateResponse.d.ts b/dist/models/V1FbpCheckConsignmentNoteStateResponse.d.ts new file mode 100644 index 0000000..f2e975d --- /dev/null +++ b/dist/models/V1FbpCheckConsignmentNoteStateResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpCheckConsignmentNoteStateResponseStateType } from './FbpCheckConsignmentNoteStateResponseStateType'; +/** + * + * @export + * @interface V1FbpCheckConsignmentNoteStateResponse + */ +export interface V1FbpCheckConsignmentNoteStateResponse { + /** + * Описание ошибки. + * @type {string} + * @memberof V1FbpCheckConsignmentNoteStateResponse + */ + error_message?: string; + /** + * Ссылка на этикетки для поставки. + * @type {string} + * @memberof V1FbpCheckConsignmentNoteStateResponse + */ + label_url?: string; + /** + * + * @type {FbpCheckConsignmentNoteStateResponseStateType} + * @memberof V1FbpCheckConsignmentNoteStateResponse + */ + state?: FbpCheckConsignmentNoteStateResponseStateType; +} +/** + * Check if a given object implements the V1FbpCheckConsignmentNoteStateResponse interface. + */ +export declare function instanceOfV1FbpCheckConsignmentNoteStateResponse(value: object): value is V1FbpCheckConsignmentNoteStateResponse; +export declare function V1FbpCheckConsignmentNoteStateResponseFromJSON(json: any): V1FbpCheckConsignmentNoteStateResponse; +export declare function V1FbpCheckConsignmentNoteStateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCheckConsignmentNoteStateResponse; +export declare function V1FbpCheckConsignmentNoteStateResponseToJSON(value?: V1FbpCheckConsignmentNoteStateResponse | null): any; diff --git a/dist/models/V1FbpCheckConsignmentNoteStateResponse.js b/dist/models/V1FbpCheckConsignmentNoteStateResponse.js new file mode 100644 index 0000000..5728151 --- /dev/null +++ b/dist/models/V1FbpCheckConsignmentNoteStateResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCheckConsignmentNoteStateResponse = instanceOfV1FbpCheckConsignmentNoteStateResponse; +exports.V1FbpCheckConsignmentNoteStateResponseFromJSON = V1FbpCheckConsignmentNoteStateResponseFromJSON; +exports.V1FbpCheckConsignmentNoteStateResponseFromJSONTyped = V1FbpCheckConsignmentNoteStateResponseFromJSONTyped; +exports.V1FbpCheckConsignmentNoteStateResponseToJSON = V1FbpCheckConsignmentNoteStateResponseToJSON; +const FbpCheckConsignmentNoteStateResponseStateType_1 = require("./FbpCheckConsignmentNoteStateResponseStateType"); +/** + * Check if a given object implements the V1FbpCheckConsignmentNoteStateResponse interface. + */ +function instanceOfV1FbpCheckConsignmentNoteStateResponse(value) { + return true; +} +function V1FbpCheckConsignmentNoteStateResponseFromJSON(json) { + return V1FbpCheckConsignmentNoteStateResponseFromJSONTyped(json, false); +} +function V1FbpCheckConsignmentNoteStateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + 'label_url': json['label_url'] == null ? undefined : json['label_url'], + 'state': json['state'] == null ? undefined : (0, FbpCheckConsignmentNoteStateResponseStateType_1.FbpCheckConsignmentNoteStateResponseStateTypeFromJSON)(json['state']), + }; +} +function V1FbpCheckConsignmentNoteStateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_message': value['error_message'], + 'label_url': value['label_url'], + 'state': (0, FbpCheckConsignmentNoteStateResponseStateType_1.FbpCheckConsignmentNoteStateResponseStateTypeToJSON)(value['state']), + }; +} diff --git a/dist/models/V1FbpCreateActRequest.d.ts b/dist/models/V1FbpCreateActRequest.d.ts new file mode 100644 index 0000000..c7fa1a7 --- /dev/null +++ b/dist/models/V1FbpCreateActRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateActRequest + */ +export interface V1FbpCreateActRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpCreateActRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpCreateActRequest interface. + */ +export declare function instanceOfV1FbpCreateActRequest(value: object): value is V1FbpCreateActRequest; +export declare function V1FbpCreateActRequestFromJSON(json: any): V1FbpCreateActRequest; +export declare function V1FbpCreateActRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateActRequest; +export declare function V1FbpCreateActRequestToJSON(value?: V1FbpCreateActRequest | null): any; diff --git a/dist/models/V1FbpCreateActRequest.js b/dist/models/V1FbpCreateActRequest.js new file mode 100644 index 0000000..65be5a0 --- /dev/null +++ b/dist/models/V1FbpCreateActRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCreateActRequest = instanceOfV1FbpCreateActRequest; +exports.V1FbpCreateActRequestFromJSON = V1FbpCreateActRequestFromJSON; +exports.V1FbpCreateActRequestFromJSONTyped = V1FbpCreateActRequestFromJSONTyped; +exports.V1FbpCreateActRequestToJSON = V1FbpCreateActRequestToJSON; +/** + * Check if a given object implements the V1FbpCreateActRequest interface. + */ +function instanceOfV1FbpCreateActRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpCreateActRequestFromJSON(json) { + return V1FbpCreateActRequestFromJSONTyped(json, false); +} +function V1FbpCreateActRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpCreateActRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpCreateActResponse.d.ts b/dist/models/V1FbpCreateActResponse.d.ts new file mode 100644 index 0000000..a7cceec --- /dev/null +++ b/dist/models/V1FbpCreateActResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpCreateActResponseCreateActErrorReason } from './FbpCreateActResponseCreateActErrorReason'; +/** + * + * @export + * @interface V1FbpCreateActResponse + */ +export interface V1FbpCreateActResponse { + /** + * Причина ошибки: + * - `CREATE_ACT_ERROR_REASON_UNSPECIFIED` — не определена; + * - `INVALID_ORDER_TYPE` — нельзя создать акт для указанного идентификатора поставки. + * + * @type {Array} + * @memberof V1FbpCreateActResponse + */ + errors?: Array; + /** + * Идентификатор акта приёмки. + * @type {string} + * @memberof V1FbpCreateActResponse + */ + file_uuid?: string; + /** + * `true`, если в запросе нет ошибок. + * + * @type {boolean} + * @memberof V1FbpCreateActResponse + */ + is_success?: boolean; +} +/** + * Check if a given object implements the V1FbpCreateActResponse interface. + */ +export declare function instanceOfV1FbpCreateActResponse(value: object): value is V1FbpCreateActResponse; +export declare function V1FbpCreateActResponseFromJSON(json: any): V1FbpCreateActResponse; +export declare function V1FbpCreateActResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateActResponse; +export declare function V1FbpCreateActResponseToJSON(value?: V1FbpCreateActResponse | null): any; diff --git a/dist/models/V1FbpCreateActResponse.js b/dist/models/V1FbpCreateActResponse.js new file mode 100644 index 0000000..28ea98b --- /dev/null +++ b/dist/models/V1FbpCreateActResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCreateActResponse = instanceOfV1FbpCreateActResponse; +exports.V1FbpCreateActResponseFromJSON = V1FbpCreateActResponseFromJSON; +exports.V1FbpCreateActResponseFromJSONTyped = V1FbpCreateActResponseFromJSONTyped; +exports.V1FbpCreateActResponseToJSON = V1FbpCreateActResponseToJSON; +const FbpCreateActResponseCreateActErrorReason_1 = require("./FbpCreateActResponseCreateActErrorReason"); +/** + * Check if a given object implements the V1FbpCreateActResponse interface. + */ +function instanceOfV1FbpCreateActResponse(value) { + return true; +} +function V1FbpCreateActResponseFromJSON(json) { + return V1FbpCreateActResponseFromJSONTyped(json, false); +} +function V1FbpCreateActResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(FbpCreateActResponseCreateActErrorReason_1.FbpCreateActResponseCreateActErrorReasonFromJSON)), + 'file_uuid': json['file_uuid'] == null ? undefined : json['file_uuid'], + 'is_success': json['is_success'] == null ? undefined : json['is_success'], + }; +} +function V1FbpCreateActResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(FbpCreateActResponseCreateActErrorReason_1.FbpCreateActResponseCreateActErrorReasonToJSON)), + 'file_uuid': value['file_uuid'], + 'is_success': value['is_success'], + }; +} diff --git a/dist/models/V1FbpCreateConsignmentNoteRequest.d.ts b/dist/models/V1FbpCreateConsignmentNoteRequest.d.ts new file mode 100644 index 0000000..ab6a682 --- /dev/null +++ b/dist/models/V1FbpCreateConsignmentNoteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateConsignmentNoteRequest + */ +export interface V1FbpCreateConsignmentNoteRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpCreateConsignmentNoteRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpCreateConsignmentNoteRequest interface. + */ +export declare function instanceOfV1FbpCreateConsignmentNoteRequest(value: object): value is V1FbpCreateConsignmentNoteRequest; +export declare function V1FbpCreateConsignmentNoteRequestFromJSON(json: any): V1FbpCreateConsignmentNoteRequest; +export declare function V1FbpCreateConsignmentNoteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateConsignmentNoteRequest; +export declare function V1FbpCreateConsignmentNoteRequestToJSON(value?: V1FbpCreateConsignmentNoteRequest | null): any; diff --git a/dist/models/V1FbpCreateConsignmentNoteRequest.js b/dist/models/V1FbpCreateConsignmentNoteRequest.js new file mode 100644 index 0000000..2425716 --- /dev/null +++ b/dist/models/V1FbpCreateConsignmentNoteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCreateConsignmentNoteRequest = instanceOfV1FbpCreateConsignmentNoteRequest; +exports.V1FbpCreateConsignmentNoteRequestFromJSON = V1FbpCreateConsignmentNoteRequestFromJSON; +exports.V1FbpCreateConsignmentNoteRequestFromJSONTyped = V1FbpCreateConsignmentNoteRequestFromJSONTyped; +exports.V1FbpCreateConsignmentNoteRequestToJSON = V1FbpCreateConsignmentNoteRequestToJSON; +/** + * Check if a given object implements the V1FbpCreateConsignmentNoteRequest interface. + */ +function instanceOfV1FbpCreateConsignmentNoteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpCreateConsignmentNoteRequestFromJSON(json) { + return V1FbpCreateConsignmentNoteRequestFromJSONTyped(json, false); +} +function V1FbpCreateConsignmentNoteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpCreateConsignmentNoteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpCreateConsignmentNoteResponse.d.ts b/dist/models/V1FbpCreateConsignmentNoteResponse.d.ts new file mode 100644 index 0000000..5e9b7b9 --- /dev/null +++ b/dist/models/V1FbpCreateConsignmentNoteResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateConsignmentNoteResponse + */ +export interface V1FbpCreateConsignmentNoteResponse { + /** + * Идентификатор транспортной накладной. + * @type {string} + * @memberof V1FbpCreateConsignmentNoteResponse + */ + code?: string; +} +/** + * Check if a given object implements the V1FbpCreateConsignmentNoteResponse interface. + */ +export declare function instanceOfV1FbpCreateConsignmentNoteResponse(value: object): value is V1FbpCreateConsignmentNoteResponse; +export declare function V1FbpCreateConsignmentNoteResponseFromJSON(json: any): V1FbpCreateConsignmentNoteResponse; +export declare function V1FbpCreateConsignmentNoteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateConsignmentNoteResponse; +export declare function V1FbpCreateConsignmentNoteResponseToJSON(value?: V1FbpCreateConsignmentNoteResponse | null): any; diff --git a/dist/models/V1FbpCreateConsignmentNoteResponse.js b/dist/models/V1FbpCreateConsignmentNoteResponse.js new file mode 100644 index 0000000..1a2a1e5 --- /dev/null +++ b/dist/models/V1FbpCreateConsignmentNoteResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCreateConsignmentNoteResponse = instanceOfV1FbpCreateConsignmentNoteResponse; +exports.V1FbpCreateConsignmentNoteResponseFromJSON = V1FbpCreateConsignmentNoteResponseFromJSON; +exports.V1FbpCreateConsignmentNoteResponseFromJSONTyped = V1FbpCreateConsignmentNoteResponseFromJSONTyped; +exports.V1FbpCreateConsignmentNoteResponseToJSON = V1FbpCreateConsignmentNoteResponseToJSON; +/** + * Check if a given object implements the V1FbpCreateConsignmentNoteResponse interface. + */ +function instanceOfV1FbpCreateConsignmentNoteResponse(value) { + return true; +} +function V1FbpCreateConsignmentNoteResponseFromJSON(json) { + return V1FbpCreateConsignmentNoteResponseFromJSONTyped(json, false); +} +function V1FbpCreateConsignmentNoteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +function V1FbpCreateConsignmentNoteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/V1FbpCreateLabelRequest.d.ts b/dist/models/V1FbpCreateLabelRequest.d.ts new file mode 100644 index 0000000..1a1ff7e --- /dev/null +++ b/dist/models/V1FbpCreateLabelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateLabelRequest + */ +export interface V1FbpCreateLabelRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpCreateLabelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpCreateLabelRequest interface. + */ +export declare function instanceOfV1FbpCreateLabelRequest(value: object): value is V1FbpCreateLabelRequest; +export declare function V1FbpCreateLabelRequestFromJSON(json: any): V1FbpCreateLabelRequest; +export declare function V1FbpCreateLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateLabelRequest; +export declare function V1FbpCreateLabelRequestToJSON(value?: V1FbpCreateLabelRequest | null): any; diff --git a/dist/models/V1FbpCreateLabelRequest.js b/dist/models/V1FbpCreateLabelRequest.js new file mode 100644 index 0000000..1195630 --- /dev/null +++ b/dist/models/V1FbpCreateLabelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCreateLabelRequest = instanceOfV1FbpCreateLabelRequest; +exports.V1FbpCreateLabelRequestFromJSON = V1FbpCreateLabelRequestFromJSON; +exports.V1FbpCreateLabelRequestFromJSONTyped = V1FbpCreateLabelRequestFromJSONTyped; +exports.V1FbpCreateLabelRequestToJSON = V1FbpCreateLabelRequestToJSON; +/** + * Check if a given object implements the V1FbpCreateLabelRequest interface. + */ +function instanceOfV1FbpCreateLabelRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpCreateLabelRequestFromJSON(json) { + return V1FbpCreateLabelRequestFromJSONTyped(json, false); +} +function V1FbpCreateLabelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpCreateLabelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpCreateLabelResponse.d.ts b/dist/models/V1FbpCreateLabelResponse.d.ts new file mode 100644 index 0000000..a47f009 --- /dev/null +++ b/dist/models/V1FbpCreateLabelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpCreateLabelResponse + */ +export interface V1FbpCreateLabelResponse { + /** + * Идентификатор задания на генерацию этикеток. + * @type {string} + * @memberof V1FbpCreateLabelResponse + */ + code?: string; +} +/** + * Check if a given object implements the V1FbpCreateLabelResponse interface. + */ +export declare function instanceOfV1FbpCreateLabelResponse(value: object): value is V1FbpCreateLabelResponse; +export declare function V1FbpCreateLabelResponseFromJSON(json: any): V1FbpCreateLabelResponse; +export declare function V1FbpCreateLabelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpCreateLabelResponse; +export declare function V1FbpCreateLabelResponseToJSON(value?: V1FbpCreateLabelResponse | null): any; diff --git a/dist/models/V1FbpCreateLabelResponse.js b/dist/models/V1FbpCreateLabelResponse.js new file mode 100644 index 0000000..d25b53f --- /dev/null +++ b/dist/models/V1FbpCreateLabelResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpCreateLabelResponse = instanceOfV1FbpCreateLabelResponse; +exports.V1FbpCreateLabelResponseFromJSON = V1FbpCreateLabelResponseFromJSON; +exports.V1FbpCreateLabelResponseFromJSONTyped = V1FbpCreateLabelResponseFromJSONTyped; +exports.V1FbpCreateLabelResponseToJSON = V1FbpCreateLabelResponseToJSON; +/** + * Check if a given object implements the V1FbpCreateLabelResponse interface. + */ +function instanceOfV1FbpCreateLabelResponse(value) { + return true; +} +function V1FbpCreateLabelResponseFromJSON(json) { + return V1FbpCreateLabelResponseFromJSONTyped(json, false); +} +function V1FbpCreateLabelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + }; +} +function V1FbpCreateLabelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} diff --git a/dist/models/V1FbpDraftDirectCreateRequest.d.ts b/dist/models/V1FbpDraftDirectCreateRequest.d.ts new file mode 100644 index 0000000..4439ba3 --- /dev/null +++ b/dist/models/V1FbpDraftDirectCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectCreateRequestDirectDetails } from './V1FbpDraftDirectCreateRequestDirectDetails'; +/** + * + * @export + * @interface V1FbpDraftDirectCreateRequest + */ +export interface V1FbpDraftDirectCreateRequest { + /** + * Идентификатор провалидированного списка товаров. Чтобы получить, используйте метод [/v1/fbp/draft/direct/product/validate](#operation/FbpDraftDirectProductValidate). + * @type {string} + * @memberof V1FbpDraftDirectCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftDirectCreateRequestDirectDetails} + * @memberof V1FbpDraftDirectCreateRequest + */ + delivery_details: V1FbpDraftDirectCreateRequestDirectDetails; + /** + * Количество единиц упаковки. + * @type {number} + * @memberof V1FbpDraftDirectCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDirectCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectCreateRequest(value: object): value is V1FbpDraftDirectCreateRequest; +export declare function V1FbpDraftDirectCreateRequestFromJSON(json: any): V1FbpDraftDirectCreateRequest; +export declare function V1FbpDraftDirectCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectCreateRequest; +export declare function V1FbpDraftDirectCreateRequestToJSON(value?: V1FbpDraftDirectCreateRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectCreateRequest.js b/dist/models/V1FbpDraftDirectCreateRequest.js new file mode 100644 index 0000000..6c5d761 --- /dev/null +++ b/dist/models/V1FbpDraftDirectCreateRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectCreateRequest = instanceOfV1FbpDraftDirectCreateRequest; +exports.V1FbpDraftDirectCreateRequestFromJSON = V1FbpDraftDirectCreateRequestFromJSON; +exports.V1FbpDraftDirectCreateRequestFromJSONTyped = V1FbpDraftDirectCreateRequestFromJSONTyped; +exports.V1FbpDraftDirectCreateRequestToJSON = V1FbpDraftDirectCreateRequestToJSON; +const V1FbpDraftDirectCreateRequestDirectDetails_1 = require("./V1FbpDraftDirectCreateRequestDirectDetails"); +/** + * Check if a given object implements the V1FbpDraftDirectCreateRequest interface. + */ +function instanceOfV1FbpDraftDirectCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectCreateRequestFromJSON(json) { + return V1FbpDraftDirectCreateRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': (0, V1FbpDraftDirectCreateRequestDirectDetails_1.V1FbpDraftDirectCreateRequestDirectDetailsFromJSON)(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDirectCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': (0, V1FbpDraftDirectCreateRequestDirectDetails_1.V1FbpDraftDirectCreateRequestDirectDetailsToJSON)(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectCreateRequestDirectDetails.d.ts b/dist/models/V1FbpDraftDirectCreateRequestDirectDetails.d.ts new file mode 100644 index 0000000..30e0dc8 --- /dev/null +++ b/dist/models/V1FbpDraftDirectCreateRequestDirectDetails.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftDirectCreateRequestDirectDetails + */ +export interface V1FbpDraftDirectCreateRequestDirectDetails { + /** + * Начало таймслота доставки. + * @type {string} + * @memberof V1FbpDraftDirectCreateRequestDirectDetails + */ + timeslot_start: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectCreateRequestDirectDetails interface. + */ +export declare function instanceOfV1FbpDraftDirectCreateRequestDirectDetails(value: object): value is V1FbpDraftDirectCreateRequestDirectDetails; +export declare function V1FbpDraftDirectCreateRequestDirectDetailsFromJSON(json: any): V1FbpDraftDirectCreateRequestDirectDetails; +export declare function V1FbpDraftDirectCreateRequestDirectDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectCreateRequestDirectDetails; +export declare function V1FbpDraftDirectCreateRequestDirectDetailsToJSON(value?: V1FbpDraftDirectCreateRequestDirectDetails | null): any; diff --git a/dist/models/V1FbpDraftDirectCreateRequestDirectDetails.js b/dist/models/V1FbpDraftDirectCreateRequestDirectDetails.js new file mode 100644 index 0000000..b896309 --- /dev/null +++ b/dist/models/V1FbpDraftDirectCreateRequestDirectDetails.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectCreateRequestDirectDetails = instanceOfV1FbpDraftDirectCreateRequestDirectDetails; +exports.V1FbpDraftDirectCreateRequestDirectDetailsFromJSON = V1FbpDraftDirectCreateRequestDirectDetailsFromJSON; +exports.V1FbpDraftDirectCreateRequestDirectDetailsFromJSONTyped = V1FbpDraftDirectCreateRequestDirectDetailsFromJSONTyped; +exports.V1FbpDraftDirectCreateRequestDirectDetailsToJSON = V1FbpDraftDirectCreateRequestDirectDetailsToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectCreateRequestDirectDetails interface. + */ +function instanceOfV1FbpDraftDirectCreateRequestDirectDetails(value) { + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectCreateRequestDirectDetailsFromJSON(json) { + return V1FbpDraftDirectCreateRequestDirectDetailsFromJSONTyped(json, false); +} +function V1FbpDraftDirectCreateRequestDirectDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_start': json['timeslot_start'], + }; +} +function V1FbpDraftDirectCreateRequestDirectDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V1FbpDraftDirectCreateResponse.d.ts b/dist/models/V1FbpDraftDirectCreateResponse.d.ts new file mode 100644 index 0000000..46e5779 --- /dev/null +++ b/dist/models/V1FbpDraftDirectCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectCreateResponse + */ +export interface V1FbpDraftDirectCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftDirectCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectCreateResponse + */ + row_version?: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectCreateResponse(value: object): value is V1FbpDraftDirectCreateResponse; +export declare function V1FbpDraftDirectCreateResponseFromJSON(json: any): V1FbpDraftDirectCreateResponse; +export declare function V1FbpDraftDirectCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectCreateResponse; +export declare function V1FbpDraftDirectCreateResponseToJSON(value?: V1FbpDraftDirectCreateResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectCreateResponse.js b/dist/models/V1FbpDraftDirectCreateResponse.js new file mode 100644 index 0000000..31950f6 --- /dev/null +++ b/dist/models/V1FbpDraftDirectCreateResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectCreateResponse = instanceOfV1FbpDraftDirectCreateResponse; +exports.V1FbpDraftDirectCreateResponseFromJSON = V1FbpDraftDirectCreateResponseFromJSON; +exports.V1FbpDraftDirectCreateResponseFromJSONTyped = V1FbpDraftDirectCreateResponseFromJSONTyped; +exports.V1FbpDraftDirectCreateResponseToJSON = V1FbpDraftDirectCreateResponseToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectCreateResponse interface. + */ +function instanceOfV1FbpDraftDirectCreateResponse(value) { + return true; +} +function V1FbpDraftDirectCreateResponseFromJSON(json) { + return V1FbpDraftDirectCreateResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function V1FbpDraftDirectCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectDeleteRequest.d.ts b/dist/models/V1FbpDraftDirectDeleteRequest.d.ts new file mode 100644 index 0000000..df2f86f --- /dev/null +++ b/dist/models/V1FbpDraftDirectDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectDeleteRequest + */ +export interface V1FbpDraftDirectDeleteRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectDeleteRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectDeleteRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectDeleteRequest(value: object): value is V1FbpDraftDirectDeleteRequest; +export declare function V1FbpDraftDirectDeleteRequestFromJSON(json: any): V1FbpDraftDirectDeleteRequest; +export declare function V1FbpDraftDirectDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectDeleteRequest; +export declare function V1FbpDraftDirectDeleteRequestToJSON(value?: V1FbpDraftDirectDeleteRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectDeleteRequest.js b/dist/models/V1FbpDraftDirectDeleteRequest.js new file mode 100644 index 0000000..3291116 --- /dev/null +++ b/dist/models/V1FbpDraftDirectDeleteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectDeleteRequest = instanceOfV1FbpDraftDirectDeleteRequest; +exports.V1FbpDraftDirectDeleteRequestFromJSON = V1FbpDraftDirectDeleteRequestFromJSON; +exports.V1FbpDraftDirectDeleteRequestFromJSONTyped = V1FbpDraftDirectDeleteRequestFromJSONTyped; +exports.V1FbpDraftDirectDeleteRequestToJSON = V1FbpDraftDirectDeleteRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectDeleteRequest interface. + */ +function instanceOfV1FbpDraftDirectDeleteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectDeleteRequestFromJSON(json) { + return V1FbpDraftDirectDeleteRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftDirectDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectDeleteResponse.d.ts b/dist/models/V1FbpDraftDirectDeleteResponse.d.ts new file mode 100644 index 0000000..26dabc8 --- /dev/null +++ b/dist/models/V1FbpDraftDirectDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancellationState } from './V1CancellationState'; +/** + * + * @export + * @interface V1FbpDraftDirectDeleteResponse + */ +export interface V1FbpDraftDirectDeleteResponse { + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftDirectDeleteResponse + */ + cancellation_state?: V1CancellationState; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectDeleteResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectDeleteResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectDeleteResponse(value: object): value is V1FbpDraftDirectDeleteResponse; +export declare function V1FbpDraftDirectDeleteResponseFromJSON(json: any): V1FbpDraftDirectDeleteResponse; +export declare function V1FbpDraftDirectDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectDeleteResponse; +export declare function V1FbpDraftDirectDeleteResponseToJSON(value?: V1FbpDraftDirectDeleteResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectDeleteResponse.js b/dist/models/V1FbpDraftDirectDeleteResponse.js new file mode 100644 index 0000000..b20483a --- /dev/null +++ b/dist/models/V1FbpDraftDirectDeleteResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectDeleteResponse = instanceOfV1FbpDraftDirectDeleteResponse; +exports.V1FbpDraftDirectDeleteResponseFromJSON = V1FbpDraftDirectDeleteResponseFromJSON; +exports.V1FbpDraftDirectDeleteResponseFromJSONTyped = V1FbpDraftDirectDeleteResponseFromJSONTyped; +exports.V1FbpDraftDirectDeleteResponseToJSON = V1FbpDraftDirectDeleteResponseToJSON; +const V1CancellationState_1 = require("./V1CancellationState"); +/** + * Check if a given object implements the V1FbpDraftDirectDeleteResponse interface. + */ +function instanceOfV1FbpDraftDirectDeleteResponse(value) { + return true; +} +function V1FbpDraftDirectDeleteResponseFromJSON(json) { + return V1FbpDraftDirectDeleteResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_state': json['cancellation_state'] == null ? undefined : (0, V1CancellationState_1.V1CancellationStateFromJSON)(json['cancellation_state']), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftDirectDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_state': (0, V1CancellationState_1.V1CancellationStateToJSON)(value['cancellation_state']), + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftDirectGetTimeslotRequest.d.ts b/dist/models/V1FbpDraftDirectGetTimeslotRequest.d.ts new file mode 100644 index 0000000..6289b79 --- /dev/null +++ b/dist/models/V1FbpDraftDirectGetTimeslotRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectGetTimeslotRequest + */ +export interface V1FbpDraftDirectGetTimeslotRequest { + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotRequest + */ + bundle_id: string; + /** + * Дата окончания нужного периода доступных таймслотов. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotRequest + */ + interval_end: string; + /** + * Дата начала нужного периода доступных таймслотов. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotRequest + */ + interval_start: string; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1FbpDraftDirectGetTimeslotRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectGetTimeslotRequest(value: object): value is V1FbpDraftDirectGetTimeslotRequest; +export declare function V1FbpDraftDirectGetTimeslotRequestFromJSON(json: any): V1FbpDraftDirectGetTimeslotRequest; +export declare function V1FbpDraftDirectGetTimeslotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectGetTimeslotRequest; +export declare function V1FbpDraftDirectGetTimeslotRequestToJSON(value?: V1FbpDraftDirectGetTimeslotRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectGetTimeslotRequest.js b/dist/models/V1FbpDraftDirectGetTimeslotRequest.js new file mode 100644 index 0000000..eef8e17 --- /dev/null +++ b/dist/models/V1FbpDraftDirectGetTimeslotRequest.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectGetTimeslotRequest = instanceOfV1FbpDraftDirectGetTimeslotRequest; +exports.V1FbpDraftDirectGetTimeslotRequestFromJSON = V1FbpDraftDirectGetTimeslotRequestFromJSON; +exports.V1FbpDraftDirectGetTimeslotRequestFromJSONTyped = V1FbpDraftDirectGetTimeslotRequestFromJSONTyped; +exports.V1FbpDraftDirectGetTimeslotRequestToJSON = V1FbpDraftDirectGetTimeslotRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotRequest interface. + */ +function instanceOfV1FbpDraftDirectGetTimeslotRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('interval_end' in value) || value['interval_end'] === undefined) + return false; + if (!('interval_start' in value) || value['interval_start'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectGetTimeslotRequestFromJSON(json) { + return V1FbpDraftDirectGetTimeslotRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectGetTimeslotRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'interval_end': json['interval_end'], + 'interval_start': json['interval_start'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDirectGetTimeslotRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'interval_end': value['interval_end'], + 'interval_start': value['interval_start'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectGetTimeslotResponse.d.ts b/dist/models/V1FbpDraftDirectGetTimeslotResponse.d.ts new file mode 100644 index 0000000..cf94321 --- /dev/null +++ b/dist/models/V1FbpDraftDirectGetTimeslotResponse.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason } from './V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason'; +import type { V1FbpDraftDirectGetTimeslotResponseTimeslot } from './V1FbpDraftDirectGetTimeslotResponseTimeslot'; +/** + * + * @export + * @interface V1FbpDraftDirectGetTimeslotResponse + */ +export interface V1FbpDraftDirectGetTimeslotResponse { + /** + * Причины отсутствия таймслотов: + * - `EMPTY_TIMESLOTS_REASON_UNSPECIFIED` — не определено; + * - `LOGISTICS_UNKNOWN` — неизвестная ошибка на стороне логистики; + * - `NO_ROUTE` — нет маршрута; + * - `NO_ROUTE_SCHEDULES` — нет расписания на маршруте; + * - `NO_LOGISTICS_CAPACITY` — недостаточно доступных слотов на маршруте; + * - `SCHEDULE_UNKNOWN` — неизвестная ошибка на стороне расписаний; + * - `NOT_ENOUGH_CAPACITY` — недостаточно доступных слотов на складе; + * - `NOT_ENOUGH_TRUCKS` — недостаточно машиномест; + * - `LIMITS_NOT_AVAILABLE` — не настроены лимиты на складе; + * - `CROSS_DOCK_RESERVE_MISSING` — не забронирован кросс-докинговый резерв на складе; + * - `SCHEDULE_RESERVE_MISSING` — отсутствует необходимый резерв по расписанию. + * + * @type {Array} + * @memberof V1FbpDraftDirectGetTimeslotResponse + */ + reasons?: Array; + /** + * Список доступных таймслотов. + * @type {Array} + * @memberof V1FbpDraftDirectGetTimeslotResponse + */ + timeslots?: Array; + /** + * Часовой пояс склада продавца. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotResponse + */ + warehouse_timezone_name?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectGetTimeslotResponse(value: object): value is V1FbpDraftDirectGetTimeslotResponse; +export declare function V1FbpDraftDirectGetTimeslotResponseFromJSON(json: any): V1FbpDraftDirectGetTimeslotResponse; +export declare function V1FbpDraftDirectGetTimeslotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectGetTimeslotResponse; +export declare function V1FbpDraftDirectGetTimeslotResponseToJSON(value?: V1FbpDraftDirectGetTimeslotResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectGetTimeslotResponse.js b/dist/models/V1FbpDraftDirectGetTimeslotResponse.js new file mode 100644 index 0000000..7d80836 --- /dev/null +++ b/dist/models/V1FbpDraftDirectGetTimeslotResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectGetTimeslotResponse = instanceOfV1FbpDraftDirectGetTimeslotResponse; +exports.V1FbpDraftDirectGetTimeslotResponseFromJSON = V1FbpDraftDirectGetTimeslotResponseFromJSON; +exports.V1FbpDraftDirectGetTimeslotResponseFromJSONTyped = V1FbpDraftDirectGetTimeslotResponseFromJSONTyped; +exports.V1FbpDraftDirectGetTimeslotResponseToJSON = V1FbpDraftDirectGetTimeslotResponseToJSON; +const V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason_1 = require("./V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason"); +const V1FbpDraftDirectGetTimeslotResponseTimeslot_1 = require("./V1FbpDraftDirectGetTimeslotResponseTimeslot"); +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotResponse interface. + */ +function instanceOfV1FbpDraftDirectGetTimeslotResponse(value) { + return true; +} +function V1FbpDraftDirectGetTimeslotResponseFromJSON(json) { + return V1FbpDraftDirectGetTimeslotResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectGetTimeslotResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'reasons': json['reasons'] == null ? undefined : (json['reasons'].map(V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason_1.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON)), + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1FbpDraftDirectGetTimeslotResponseTimeslot_1.V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON)), + 'warehouse_timezone_name': json['warehouse_timezone_name'] == null ? undefined : json['warehouse_timezone_name'], + }; +} +function V1FbpDraftDirectGetTimeslotResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'reasons': value['reasons'] == null ? undefined : (value['reasons'].map(V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason_1.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON)), + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1FbpDraftDirectGetTimeslotResponseTimeslot_1.V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON)), + 'warehouse_timezone_name': value['warehouse_timezone_name'], + }; +} diff --git a/dist/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.d.ts b/dist/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.d.ts new file mode 100644 index 0000000..dfbcfc0 --- /dev/null +++ b/dist/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason: { + readonly EMPTY_TIMESLOTS_REASON_UNSPECIFIED: "EMPTY_TIMESLOTS_REASON_UNSPECIFIED"; + readonly LOGISTICS_UNKNOWN: "LOGISTICS_UNKNOWN"; + readonly NO_ROUTE: "NO_ROUTE"; + readonly NO_ROUTE_SCHEDULES: "NO_ROUTE_SCHEDULES"; + readonly NO_LOGISTICS_CAPACITY: "NO_LOGISTICS_CAPACITY"; + readonly SCHEDULE_UNKNOWN: "SCHEDULE_UNKNOWN"; + readonly NOT_ENOUGH_CAPACITY: "NOT_ENOUGH_CAPACITY"; + readonly NOT_ENOUGH_TRUCKS: "NOT_ENOUGH_TRUCKS"; + readonly LIMITS_NOT_AVAILABLE: "LIMITS_NOT_AVAILABLE"; + readonly CROSS_DOCK_RESERVE_MISSING: "CROSS_DOCK_RESERVE_MISSING"; + readonly SCHEDULE_RESERVE_MISSING: "SCHEDULE_RESERVE_MISSING"; +}; +export type V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason = typeof V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason[keyof typeof V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason]; +export declare function instanceOfV1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason(value: any): boolean; +export declare function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON(json: any): V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason; +export declare function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason; +export declare function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON(value?: V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason | null): any; diff --git a/dist/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.js b/dist/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.js new file mode 100644 index 0000000..efbdf9b --- /dev/null +++ b/dist/models/V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason = void 0; +exports.instanceOfV1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason = instanceOfV1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason; +exports.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON = V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON; +exports.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSONTyped = V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSONTyped; +exports.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON = V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON; +/** + * + * @export + */ +exports.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason = { + EMPTY_TIMESLOTS_REASON_UNSPECIFIED: 'EMPTY_TIMESLOTS_REASON_UNSPECIFIED', + LOGISTICS_UNKNOWN: 'LOGISTICS_UNKNOWN', + NO_ROUTE: 'NO_ROUTE', + NO_ROUTE_SCHEDULES: 'NO_ROUTE_SCHEDULES', + NO_LOGISTICS_CAPACITY: 'NO_LOGISTICS_CAPACITY', + SCHEDULE_UNKNOWN: 'SCHEDULE_UNKNOWN', + NOT_ENOUGH_CAPACITY: 'NOT_ENOUGH_CAPACITY', + NOT_ENOUGH_TRUCKS: 'NOT_ENOUGH_TRUCKS', + LIMITS_NOT_AVAILABLE: 'LIMITS_NOT_AVAILABLE', + CROSS_DOCK_RESERVE_MISSING: 'CROSS_DOCK_RESERVE_MISSING', + SCHEDULE_RESERVE_MISSING: 'SCHEDULE_RESERVE_MISSING' +}; +function instanceOfV1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason(value) { + for (const key in exports.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason) { + if (Object.prototype.hasOwnProperty.call(exports.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason, key)) { + if (exports.V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason[key] === value) { + return true; + } + } + } + return false; +} +function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSON(json) { + return V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSONTyped(json, false); +} +function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReasonToJSON(value) { + return value; +} diff --git a/dist/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.d.ts b/dist/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.d.ts new file mode 100644 index 0000000..2f0898d --- /dev/null +++ b/dist/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectGetTimeslotResponseTimeslot + */ +export interface V1FbpDraftDirectGetTimeslotResponseTimeslot { + /** + * Zaman aralığı bitiş tarihi. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotResponseTimeslot + */ + timeslot_end?: string; + /** + * Zaman aralığı başlangıç tarihi. + * @type {string} + * @memberof V1FbpDraftDirectGetTimeslotResponseTimeslot + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotResponseTimeslot interface. + */ +export declare function instanceOfV1FbpDraftDirectGetTimeslotResponseTimeslot(value: object): value is V1FbpDraftDirectGetTimeslotResponseTimeslot; +export declare function V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON(json: any): V1FbpDraftDirectGetTimeslotResponseTimeslot; +export declare function V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectGetTimeslotResponseTimeslot; +export declare function V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON(value?: V1FbpDraftDirectGetTimeslotResponseTimeslot | null): any; diff --git a/dist/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.js b/dist/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.js new file mode 100644 index 0000000..21b2e69 --- /dev/null +++ b/dist/models/V1FbpDraftDirectGetTimeslotResponseTimeslot.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectGetTimeslotResponseTimeslot = instanceOfV1FbpDraftDirectGetTimeslotResponseTimeslot; +exports.V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON = V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON; +exports.V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSONTyped = V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSONTyped; +exports.V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON = V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectGetTimeslotResponseTimeslot interface. + */ +function instanceOfV1FbpDraftDirectGetTimeslotResponseTimeslot(value) { + return true; +} +function V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSON(json) { + return V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSONTyped(json, false); +} +function V1FbpDraftDirectGetTimeslotResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +function V1FbpDraftDirectGetTimeslotResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V1FbpDraftDirectProductValidateRequest.d.ts b/dist/models/V1FbpDraftDirectProductValidateRequest.d.ts new file mode 100644 index 0000000..1c80b82 --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectProductValidateRequestSkuItem } from './V1FbpDraftDirectProductValidateRequestSkuItem'; +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateRequest + */ +export interface V1FbpDraftDirectProductValidateRequest { + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1FbpDraftDirectProductValidateRequest + */ + skus: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateRequest(value: object): value is V1FbpDraftDirectProductValidateRequest; +export declare function V1FbpDraftDirectProductValidateRequestFromJSON(json: any): V1FbpDraftDirectProductValidateRequest; +export declare function V1FbpDraftDirectProductValidateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateRequest; +export declare function V1FbpDraftDirectProductValidateRequestToJSON(value?: V1FbpDraftDirectProductValidateRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectProductValidateRequest.js b/dist/models/V1FbpDraftDirectProductValidateRequest.js new file mode 100644 index 0000000..c37c9ce --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectProductValidateRequest = instanceOfV1FbpDraftDirectProductValidateRequest; +exports.V1FbpDraftDirectProductValidateRequestFromJSON = V1FbpDraftDirectProductValidateRequestFromJSON; +exports.V1FbpDraftDirectProductValidateRequestFromJSONTyped = V1FbpDraftDirectProductValidateRequestFromJSONTyped; +exports.V1FbpDraftDirectProductValidateRequestToJSON = V1FbpDraftDirectProductValidateRequestToJSON; +const V1FbpDraftDirectProductValidateRequestSkuItem_1 = require("./V1FbpDraftDirectProductValidateRequestSkuItem"); +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateRequest interface. + */ +function instanceOfV1FbpDraftDirectProductValidateRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectProductValidateRequestFromJSON(json) { + return V1FbpDraftDirectProductValidateRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectProductValidateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': (json['skus'].map(V1FbpDraftDirectProductValidateRequestSkuItem_1.V1FbpDraftDirectProductValidateRequestSkuItemFromJSON)), + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDirectProductValidateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': (value['skus'].map(V1FbpDraftDirectProductValidateRequestSkuItem_1.V1FbpDraftDirectProductValidateRequestSkuItemToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectProductValidateRequestSkuItem.d.ts b/dist/models/V1FbpDraftDirectProductValidateRequestSkuItem.d.ts new file mode 100644 index 0000000..668e324 --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateRequestSkuItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateRequestSkuItem + */ +export interface V1FbpDraftDirectProductValidateRequestSkuItem { + /** + * Количество единиц товара в поставке. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateRequestSkuItem + */ + count: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateRequestSkuItem + */ + sku: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateRequestSkuItem interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateRequestSkuItem(value: object): value is V1FbpDraftDirectProductValidateRequestSkuItem; +export declare function V1FbpDraftDirectProductValidateRequestSkuItemFromJSON(json: any): V1FbpDraftDirectProductValidateRequestSkuItem; +export declare function V1FbpDraftDirectProductValidateRequestSkuItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateRequestSkuItem; +export declare function V1FbpDraftDirectProductValidateRequestSkuItemToJSON(value?: V1FbpDraftDirectProductValidateRequestSkuItem | null): any; diff --git a/dist/models/V1FbpDraftDirectProductValidateRequestSkuItem.js b/dist/models/V1FbpDraftDirectProductValidateRequestSkuItem.js new file mode 100644 index 0000000..bed3a6d --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateRequestSkuItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectProductValidateRequestSkuItem = instanceOfV1FbpDraftDirectProductValidateRequestSkuItem; +exports.V1FbpDraftDirectProductValidateRequestSkuItemFromJSON = V1FbpDraftDirectProductValidateRequestSkuItemFromJSON; +exports.V1FbpDraftDirectProductValidateRequestSkuItemFromJSONTyped = V1FbpDraftDirectProductValidateRequestSkuItemFromJSONTyped; +exports.V1FbpDraftDirectProductValidateRequestSkuItemToJSON = V1FbpDraftDirectProductValidateRequestSkuItemToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateRequestSkuItem interface. + */ +function instanceOfV1FbpDraftDirectProductValidateRequestSkuItem(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectProductValidateRequestSkuItemFromJSON(json) { + return V1FbpDraftDirectProductValidateRequestSkuItemFromJSONTyped(json, false); +} +function V1FbpDraftDirectProductValidateRequestSkuItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'sku': json['sku'], + }; +} +function V1FbpDraftDirectProductValidateRequestSkuItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1FbpDraftDirectProductValidateResponse.d.ts b/dist/models/V1FbpDraftDirectProductValidateResponse.d.ts new file mode 100644 index 0000000..9468bad --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectProductValidateResponseRejectedItem } from './V1FbpDraftDirectProductValidateResponseRejectedItem'; +import type { V1FbpDraftDirectProductValidateResponseApprovedItem } from './V1FbpDraftDirectProductValidateResponseApprovedItem'; +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateResponse + */ +export interface V1FbpDraftDirectProductValidateResponse { + /** + * Подтверждённые товары. + * @type {Array} + * @memberof V1FbpDraftDirectProductValidateResponse + */ + approved_items?: Array; + /** + * `true`, если провалидированный список товаров создан. + * @type {boolean} + * @memberof V1FbpDraftDirectProductValidateResponse + */ + bundle_generated?: boolean; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponse + */ + bundle_id?: string; + /** + * Отклонённые товары. + * @type {Array} + * @memberof V1FbpDraftDirectProductValidateResponse + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateResponse(value: object): value is V1FbpDraftDirectProductValidateResponse; +export declare function V1FbpDraftDirectProductValidateResponseFromJSON(json: any): V1FbpDraftDirectProductValidateResponse; +export declare function V1FbpDraftDirectProductValidateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateResponse; +export declare function V1FbpDraftDirectProductValidateResponseToJSON(value?: V1FbpDraftDirectProductValidateResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectProductValidateResponse.js b/dist/models/V1FbpDraftDirectProductValidateResponse.js new file mode 100644 index 0000000..6edf3cc --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectProductValidateResponse = instanceOfV1FbpDraftDirectProductValidateResponse; +exports.V1FbpDraftDirectProductValidateResponseFromJSON = V1FbpDraftDirectProductValidateResponseFromJSON; +exports.V1FbpDraftDirectProductValidateResponseFromJSONTyped = V1FbpDraftDirectProductValidateResponseFromJSONTyped; +exports.V1FbpDraftDirectProductValidateResponseToJSON = V1FbpDraftDirectProductValidateResponseToJSON; +const V1FbpDraftDirectProductValidateResponseRejectedItem_1 = require("./V1FbpDraftDirectProductValidateResponseRejectedItem"); +const V1FbpDraftDirectProductValidateResponseApprovedItem_1 = require("./V1FbpDraftDirectProductValidateResponseApprovedItem"); +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponse interface. + */ +function instanceOfV1FbpDraftDirectProductValidateResponse(value) { + return true; +} +function V1FbpDraftDirectProductValidateResponseFromJSON(json) { + return V1FbpDraftDirectProductValidateResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectProductValidateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_items': json['approved_items'] == null ? undefined : (json['approved_items'].map(V1FbpDraftDirectProductValidateResponseApprovedItem_1.V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON)), + 'bundle_generated': json['bundle_generated'] == null ? undefined : json['bundle_generated'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(V1FbpDraftDirectProductValidateResponseRejectedItem_1.V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON)), + }; +} +function V1FbpDraftDirectProductValidateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_items': value['approved_items'] == null ? undefined : (value['approved_items'].map(V1FbpDraftDirectProductValidateResponseApprovedItem_1.V1FbpDraftDirectProductValidateResponseApprovedItemToJSON)), + 'bundle_generated': value['bundle_generated'], + 'bundle_id': value['bundle_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(V1FbpDraftDirectProductValidateResponseRejectedItem_1.V1FbpDraftDirectProductValidateResponseRejectedItemToJSON)), + }; +} diff --git a/dist/models/V1FbpDraftDirectProductValidateResponseApprovedItem.d.ts b/dist/models/V1FbpDraftDirectProductValidateResponseApprovedItem.d.ts new file mode 100644 index 0000000..10aaee1 --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateResponseApprovedItem.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateResponseApprovedItem + */ +export interface V1FbpDraftDirectProductValidateResponseApprovedItem { + /** + * Штрихкод. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + icon_name?: string; + /** + * Наименование товара. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseApprovedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponseApprovedItem interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateResponseApprovedItem(value: object): value is V1FbpDraftDirectProductValidateResponseApprovedItem; +export declare function V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON(json: any): V1FbpDraftDirectProductValidateResponseApprovedItem; +export declare function V1FbpDraftDirectProductValidateResponseApprovedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateResponseApprovedItem; +export declare function V1FbpDraftDirectProductValidateResponseApprovedItemToJSON(value?: V1FbpDraftDirectProductValidateResponseApprovedItem | null): any; diff --git a/dist/models/V1FbpDraftDirectProductValidateResponseApprovedItem.js b/dist/models/V1FbpDraftDirectProductValidateResponseApprovedItem.js new file mode 100644 index 0000000..be039d2 --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateResponseApprovedItem.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectProductValidateResponseApprovedItem = instanceOfV1FbpDraftDirectProductValidateResponseApprovedItem; +exports.V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON = V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON; +exports.V1FbpDraftDirectProductValidateResponseApprovedItemFromJSONTyped = V1FbpDraftDirectProductValidateResponseApprovedItemFromJSONTyped; +exports.V1FbpDraftDirectProductValidateResponseApprovedItemToJSON = V1FbpDraftDirectProductValidateResponseApprovedItemToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponseApprovedItem interface. + */ +function instanceOfV1FbpDraftDirectProductValidateResponseApprovedItem(value) { + return true; +} +function V1FbpDraftDirectProductValidateResponseApprovedItemFromJSON(json) { + return V1FbpDraftDirectProductValidateResponseApprovedItemFromJSONTyped(json, false); +} +function V1FbpDraftDirectProductValidateResponseApprovedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +function V1FbpDraftDirectProductValidateResponseApprovedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/models/V1FbpDraftDirectProductValidateResponseRejectedItem.d.ts b/dist/models/V1FbpDraftDirectProductValidateResponseRejectedItem.d.ts new file mode 100644 index 0000000..29fa198 --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateResponseRejectedItem.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftDirectProductValidateResponseRejectedItem + */ +export interface V1FbpDraftDirectProductValidateResponseRejectedItem { + /** + * Штрихкод. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + icon_name?: string; + /** + * Наименование товара. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + quantity?: number; + /** + * Причины отклонения: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товар не найден; + * - `INVALID` — товар не создан; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — не указан штрихкод; + * - `MULTIPLICITY` — количество товара не кратно требуемой партии; + * - `NO_PRICE` — не указана цена; + * - `BANNED` — товар не доступен к продаже или поставке на выбранный склад; + * - `ZERO_QUANTITY` — количество товаров в поставке равно 0; + * - `QUANTITY_GREATER_THEN_MAX` — количество товаров одной SKU больше максимального значения; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + rejection_reasons?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftDirectProductValidateResponseRejectedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponseRejectedItem interface. + */ +export declare function instanceOfV1FbpDraftDirectProductValidateResponseRejectedItem(value: object): value is V1FbpDraftDirectProductValidateResponseRejectedItem; +export declare function V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON(json: any): V1FbpDraftDirectProductValidateResponseRejectedItem; +export declare function V1FbpDraftDirectProductValidateResponseRejectedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectProductValidateResponseRejectedItem; +export declare function V1FbpDraftDirectProductValidateResponseRejectedItemToJSON(value?: V1FbpDraftDirectProductValidateResponseRejectedItem | null): any; diff --git a/dist/models/V1FbpDraftDirectProductValidateResponseRejectedItem.js b/dist/models/V1FbpDraftDirectProductValidateResponseRejectedItem.js new file mode 100644 index 0000000..f020598 --- /dev/null +++ b/dist/models/V1FbpDraftDirectProductValidateResponseRejectedItem.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectProductValidateResponseRejectedItem = instanceOfV1FbpDraftDirectProductValidateResponseRejectedItem; +exports.V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON = V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON; +exports.V1FbpDraftDirectProductValidateResponseRejectedItemFromJSONTyped = V1FbpDraftDirectProductValidateResponseRejectedItemFromJSONTyped; +exports.V1FbpDraftDirectProductValidateResponseRejectedItemToJSON = V1FbpDraftDirectProductValidateResponseRejectedItemToJSON; +const V1BundleItemErrorEnum_1 = require("./V1BundleItemErrorEnum"); +/** + * Check if a given object implements the V1FbpDraftDirectProductValidateResponseRejectedItem interface. + */ +function instanceOfV1FbpDraftDirectProductValidateResponseRejectedItem(value) { + return true; +} +function V1FbpDraftDirectProductValidateResponseRejectedItemFromJSON(json) { + return V1FbpDraftDirectProductValidateResponseRejectedItemFromJSONTyped(json, false); +} +function V1FbpDraftDirectProductValidateResponseRejectedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rejection_reasons': json['rejection_reasons'] == null ? undefined : (json['rejection_reasons'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +function V1FbpDraftDirectProductValidateResponseRejectedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'rejection_reasons': value['rejection_reasons'] == null ? undefined : (value['rejection_reasons'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/models/V1FbpDraftDirectRegistrateRequest.d.ts b/dist/models/V1FbpDraftDirectRegistrateRequest.d.ts new file mode 100644 index 0000000..b169572 --- /dev/null +++ b/dist/models/V1FbpDraftDirectRegistrateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectRegistrateRequest + */ +export interface V1FbpDraftDirectRegistrateRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectRegistrateRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectRegistrateRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectRegistrateRequest(value: object): value is V1FbpDraftDirectRegistrateRequest; +export declare function V1FbpDraftDirectRegistrateRequestFromJSON(json: any): V1FbpDraftDirectRegistrateRequest; +export declare function V1FbpDraftDirectRegistrateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectRegistrateRequest; +export declare function V1FbpDraftDirectRegistrateRequestToJSON(value?: V1FbpDraftDirectRegistrateRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectRegistrateRequest.js b/dist/models/V1FbpDraftDirectRegistrateRequest.js new file mode 100644 index 0000000..50f4380 --- /dev/null +++ b/dist/models/V1FbpDraftDirectRegistrateRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectRegistrateRequest = instanceOfV1FbpDraftDirectRegistrateRequest; +exports.V1FbpDraftDirectRegistrateRequestFromJSON = V1FbpDraftDirectRegistrateRequestFromJSON; +exports.V1FbpDraftDirectRegistrateRequestFromJSONTyped = V1FbpDraftDirectRegistrateRequestFromJSONTyped; +exports.V1FbpDraftDirectRegistrateRequestToJSON = V1FbpDraftDirectRegistrateRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateRequest interface. + */ +function instanceOfV1FbpDraftDirectRegistrateRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectRegistrateRequestFromJSON(json) { + return V1FbpDraftDirectRegistrateRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectRegistrateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftDirectRegistrateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectRegistrateResponse.d.ts b/dist/models/V1FbpDraftDirectRegistrateResponse.d.ts new file mode 100644 index 0000000..3d1f696 --- /dev/null +++ b/dist/models/V1FbpDraftDirectRegistrateResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectRegistrateResponseRegistrationError } from './V1FbpDraftDirectRegistrateResponseRegistrationError'; +/** + * + * @export + * @interface V1FbpDraftDirectRegistrateResponse + */ +export interface V1FbpDraftDirectRegistrateResponse { + /** + * + * @type {V1FbpDraftDirectRegistrateResponseRegistrationError} + * @memberof V1FbpDraftDirectRegistrateResponse + */ + error?: V1FbpDraftDirectRegistrateResponseRegistrationError; + /** + * `true`, если есть ошибка. + * @type {boolean} + * @memberof V1FbpDraftDirectRegistrateResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectRegistrateResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectRegistrateResponse(value: object): value is V1FbpDraftDirectRegistrateResponse; +export declare function V1FbpDraftDirectRegistrateResponseFromJSON(json: any): V1FbpDraftDirectRegistrateResponse; +export declare function V1FbpDraftDirectRegistrateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectRegistrateResponse; +export declare function V1FbpDraftDirectRegistrateResponseToJSON(value?: V1FbpDraftDirectRegistrateResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectRegistrateResponse.js b/dist/models/V1FbpDraftDirectRegistrateResponse.js new file mode 100644 index 0000000..962228f --- /dev/null +++ b/dist/models/V1FbpDraftDirectRegistrateResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectRegistrateResponse = instanceOfV1FbpDraftDirectRegistrateResponse; +exports.V1FbpDraftDirectRegistrateResponseFromJSON = V1FbpDraftDirectRegistrateResponseFromJSON; +exports.V1FbpDraftDirectRegistrateResponseFromJSONTyped = V1FbpDraftDirectRegistrateResponseFromJSONTyped; +exports.V1FbpDraftDirectRegistrateResponseToJSON = V1FbpDraftDirectRegistrateResponseToJSON; +const V1FbpDraftDirectRegistrateResponseRegistrationError_1 = require("./V1FbpDraftDirectRegistrateResponseRegistrationError"); +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponse interface. + */ +function instanceOfV1FbpDraftDirectRegistrateResponse(value) { + return true; +} +function V1FbpDraftDirectRegistrateResponseFromJSON(json) { + return V1FbpDraftDirectRegistrateResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectRegistrateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1FbpDraftDirectRegistrateResponseRegistrationError_1.V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftDirectRegistrateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1FbpDraftDirectRegistrateResponseRegistrationError_1.V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationError.d.ts b/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationError.d.ts new file mode 100644 index 0000000..447a616 --- /dev/null +++ b/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationError.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError } from './V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError'; +import type { V1OrderErrorTypeEnum } from './V1OrderErrorTypeEnum'; +/** + * Ошибка. + * @export + * @interface V1FbpDraftDirectRegistrateResponseRegistrationError + */ +export interface V1FbpDraftDirectRegistrateResponseRegistrationError { + /** + * Ошибки провалидированного списка товара. + * @type {Array} + * @memberof V1FbpDraftDirectRegistrateResponseRegistrationError + */ + bundle_errors?: Array; + /** + * + * @type {V1OrderErrorTypeEnum} + * @memberof V1FbpDraftDirectRegistrateResponseRegistrationError + */ + order_error?: V1OrderErrorTypeEnum; +} +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponseRegistrationError interface. + */ +export declare function instanceOfV1FbpDraftDirectRegistrateResponseRegistrationError(value: object): value is V1FbpDraftDirectRegistrateResponseRegistrationError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON(json: any): V1FbpDraftDirectRegistrateResponseRegistrationError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectRegistrateResponseRegistrationError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON(value?: V1FbpDraftDirectRegistrateResponseRegistrationError | null): any; diff --git a/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationError.js b/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationError.js new file mode 100644 index 0000000..ca18af0 --- /dev/null +++ b/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationError.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectRegistrateResponseRegistrationError = instanceOfV1FbpDraftDirectRegistrateResponseRegistrationError; +exports.V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON = V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON; +exports.V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSONTyped = V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSONTyped; +exports.V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON = V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON; +const V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError_1 = require("./V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError"); +const V1OrderErrorTypeEnum_1 = require("./V1OrderErrorTypeEnum"); +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponseRegistrationError interface. + */ +function instanceOfV1FbpDraftDirectRegistrateResponseRegistrationError(value) { + return true; +} +function V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSON(json) { + return V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSONTyped(json, false); +} +function V1FbpDraftDirectRegistrateResponseRegistrationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_errors': json['bundle_errors'] == null ? undefined : (json['bundle_errors'].map(V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError_1.V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON)), + 'order_error': json['order_error'] == null ? undefined : (0, V1OrderErrorTypeEnum_1.V1OrderErrorTypeEnumFromJSON)(json['order_error']), + }; +} +function V1FbpDraftDirectRegistrateResponseRegistrationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_errors': value['bundle_errors'] == null ? undefined : (value['bundle_errors'].map(V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError_1.V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON)), + 'order_error': (0, V1OrderErrorTypeEnum_1.V1OrderErrorTypeEnumToJSON)(value['order_error']), + }; +} diff --git a/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.d.ts b/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.d.ts new file mode 100644 index 0000000..1633e0f --- /dev/null +++ b/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError + */ +export interface V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError { + /** + * Ошибка: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товар не найден; + * - `INVALID` — товар не создан; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — не указан штрихкод; + * - `MULTIPLICITY` — количество товара не кратно требуемой партии; + * - `NO_PRICE` — не указана цена; + * - `BANNED` — товар не доступен к продаже или поставке на выбранный склад; + * - `ZERO_QUANTITY` — количество товаров в поставке равно 0; + * - `QUANTITY_GREATER_THEN_MAX` — количество товаров одной SKU больше максимального значения; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError + */ + errors?: Array; + /** + * Идентификатор товара — SKU. + * @type {number} + * @memberof V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError + */ + sku?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError interface. + */ +export declare function instanceOfV1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError(value: object): value is V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON(json: any): V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON(value?: V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError | null): any; diff --git a/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.js b/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.js new file mode 100644 index 0000000..937dea0 --- /dev/null +++ b/dist/models/V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError = instanceOfV1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError; +exports.V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON = V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON; +exports.V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped = V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped; +exports.V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON = V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON; +const V1BundleItemErrorEnum_1 = require("./V1BundleItemErrorEnum"); +/** + * Check if a given object implements the V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError interface. + */ +function instanceOfV1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError(value) { + return true; +} +function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSON(json) { + return V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, false); +} +function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1FbpDraftDirectSellerDlvCreateRequest.d.ts b/dist/models/V1FbpDraftDirectSellerDlvCreateRequest.d.ts new file mode 100644 index 0000000..2f3a2e0 --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectSellerDlvCreateRequestDirectDetails } from './V1FbpDraftDirectSellerDlvCreateRequestDirectDetails'; +/** + * + * @export + * @interface V1FbpDraftDirectSellerDlvCreateRequest + */ +export interface V1FbpDraftDirectSellerDlvCreateRequest { + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftDirectSellerDlvCreateRequestDirectDetails} + * @memberof V1FbpDraftDirectSellerDlvCreateRequest + */ + delivery_details: V1FbpDraftDirectSellerDlvCreateRequestDirectDetails; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvCreateRequest(value: object): value is V1FbpDraftDirectSellerDlvCreateRequest; +export declare function V1FbpDraftDirectSellerDlvCreateRequestFromJSON(json: any): V1FbpDraftDirectSellerDlvCreateRequest; +export declare function V1FbpDraftDirectSellerDlvCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvCreateRequest; +export declare function V1FbpDraftDirectSellerDlvCreateRequestToJSON(value?: V1FbpDraftDirectSellerDlvCreateRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectSellerDlvCreateRequest.js b/dist/models/V1FbpDraftDirectSellerDlvCreateRequest.js new file mode 100644 index 0000000..7b76e96 --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvCreateRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectSellerDlvCreateRequest = instanceOfV1FbpDraftDirectSellerDlvCreateRequest; +exports.V1FbpDraftDirectSellerDlvCreateRequestFromJSON = V1FbpDraftDirectSellerDlvCreateRequestFromJSON; +exports.V1FbpDraftDirectSellerDlvCreateRequestFromJSONTyped = V1FbpDraftDirectSellerDlvCreateRequestFromJSONTyped; +exports.V1FbpDraftDirectSellerDlvCreateRequestToJSON = V1FbpDraftDirectSellerDlvCreateRequestToJSON; +const V1FbpDraftDirectSellerDlvCreateRequestDirectDetails_1 = require("./V1FbpDraftDirectSellerDlvCreateRequestDirectDetails"); +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateRequest interface. + */ +function instanceOfV1FbpDraftDirectSellerDlvCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectSellerDlvCreateRequestFromJSON(json) { + return V1FbpDraftDirectSellerDlvCreateRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectSellerDlvCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': (0, V1FbpDraftDirectSellerDlvCreateRequestDirectDetails_1.V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON)(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDirectSellerDlvCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': (0, V1FbpDraftDirectSellerDlvCreateRequestDirectDetails_1.V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON)(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.d.ts b/dist/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.d.ts new file mode 100644 index 0000000..37696e0 --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ +export interface V1FbpDraftDirectSellerDlvCreateRequestDirectDetails { + /** + * ФИО водителя. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ + driver_name: string; + /** + * Начало таймслота. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ + timeslot_start: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ + vehicle_number: string; + /** + * Тип автомобиля. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateRequestDirectDetails + */ + vehicle_type: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateRequestDirectDetails interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvCreateRequestDirectDetails(value: object): value is V1FbpDraftDirectSellerDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON(json: any): V1FbpDraftDirectSellerDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON(value?: V1FbpDraftDirectSellerDlvCreateRequestDirectDetails | null): any; diff --git a/dist/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.js b/dist/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.js new file mode 100644 index 0000000..90f27eb --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvCreateRequestDirectDetails.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectSellerDlvCreateRequestDirectDetails = instanceOfV1FbpDraftDirectSellerDlvCreateRequestDirectDetails; +exports.V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON = V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON; +exports.V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSONTyped = V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSONTyped; +exports.V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON = V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateRequestDirectDetails interface. + */ +function instanceOfV1FbpDraftDirectSellerDlvCreateRequestDirectDetails(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + if (!('vehicle_number' in value) || value['vehicle_number'] === undefined) + return false; + if (!('vehicle_type' in value) || value['vehicle_type'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSON(json) { + return V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSONTyped(json, false); +} +function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'timeslot_start': json['timeslot_start'], + 'vehicle_number': json['vehicle_number'], + 'vehicle_type': json['vehicle_type'], + }; +} +function V1FbpDraftDirectSellerDlvCreateRequestDirectDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'timeslot_start': value['timeslot_start'], + 'vehicle_number': value['vehicle_number'], + 'vehicle_type': value['vehicle_type'], + }; +} diff --git a/dist/models/V1FbpDraftDirectSellerDlvCreateResponse.d.ts b/dist/models/V1FbpDraftDirectSellerDlvCreateResponse.d.ts new file mode 100644 index 0000000..10f00c7 --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectSellerDlvCreateResponse + */ +export interface V1FbpDraftDirectSellerDlvCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvCreateResponse + */ + row_version?: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvCreateResponse(value: object): value is V1FbpDraftDirectSellerDlvCreateResponse; +export declare function V1FbpDraftDirectSellerDlvCreateResponseFromJSON(json: any): V1FbpDraftDirectSellerDlvCreateResponse; +export declare function V1FbpDraftDirectSellerDlvCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvCreateResponse; +export declare function V1FbpDraftDirectSellerDlvCreateResponseToJSON(value?: V1FbpDraftDirectSellerDlvCreateResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectSellerDlvCreateResponse.js b/dist/models/V1FbpDraftDirectSellerDlvCreateResponse.js new file mode 100644 index 0000000..38f3925 --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvCreateResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectSellerDlvCreateResponse = instanceOfV1FbpDraftDirectSellerDlvCreateResponse; +exports.V1FbpDraftDirectSellerDlvCreateResponseFromJSON = V1FbpDraftDirectSellerDlvCreateResponseFromJSON; +exports.V1FbpDraftDirectSellerDlvCreateResponseFromJSONTyped = V1FbpDraftDirectSellerDlvCreateResponseFromJSONTyped; +exports.V1FbpDraftDirectSellerDlvCreateResponseToJSON = V1FbpDraftDirectSellerDlvCreateResponseToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvCreateResponse interface. + */ +function instanceOfV1FbpDraftDirectSellerDlvCreateResponse(value) { + return true; +} +function V1FbpDraftDirectSellerDlvCreateResponseFromJSON(json) { + return V1FbpDraftDirectSellerDlvCreateResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectSellerDlvCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function V1FbpDraftDirectSellerDlvCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectSellerDlvEditRequest.d.ts b/dist/models/V1FbpDraftDirectSellerDlvEditRequest.d.ts new file mode 100644 index 0000000..0770829 --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvEditRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectSellerDlvEditRequest + */ +export interface V1FbpDraftDirectSellerDlvEditRequest { + /** + * ФИО водителя. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + driver_name: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + supply_id: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + vehicle_number: string; + /** + * Тип автомобиля. + * @type {string} + * @memberof V1FbpDraftDirectSellerDlvEditRequest + */ + vehicle_type: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvEditRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvEditRequest(value: object): value is V1FbpDraftDirectSellerDlvEditRequest; +export declare function V1FbpDraftDirectSellerDlvEditRequestFromJSON(json: any): V1FbpDraftDirectSellerDlvEditRequest; +export declare function V1FbpDraftDirectSellerDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvEditRequest; +export declare function V1FbpDraftDirectSellerDlvEditRequestToJSON(value?: V1FbpDraftDirectSellerDlvEditRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectSellerDlvEditRequest.js b/dist/models/V1FbpDraftDirectSellerDlvEditRequest.js new file mode 100644 index 0000000..f7c8e79 --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvEditRequest.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectSellerDlvEditRequest = instanceOfV1FbpDraftDirectSellerDlvEditRequest; +exports.V1FbpDraftDirectSellerDlvEditRequestFromJSON = V1FbpDraftDirectSellerDlvEditRequestFromJSON; +exports.V1FbpDraftDirectSellerDlvEditRequestFromJSONTyped = V1FbpDraftDirectSellerDlvEditRequestFromJSONTyped; +exports.V1FbpDraftDirectSellerDlvEditRequestToJSON = V1FbpDraftDirectSellerDlvEditRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvEditRequest interface. + */ +function instanceOfV1FbpDraftDirectSellerDlvEditRequest(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('vehicle_number' in value) || value['vehicle_number'] === undefined) + return false; + if (!('vehicle_type' in value) || value['vehicle_type'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectSellerDlvEditRequestFromJSON(json) { + return V1FbpDraftDirectSellerDlvEditRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectSellerDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'vehicle_number': json['vehicle_number'], + 'vehicle_type': json['vehicle_type'], + }; +} +function V1FbpDraftDirectSellerDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'vehicle_number': value['vehicle_number'], + 'vehicle_type': value['vehicle_type'], + }; +} diff --git a/dist/models/V1FbpDraftDirectSellerDlvEditResponse.d.ts b/dist/models/V1FbpDraftDirectSellerDlvEditResponse.d.ts new file mode 100644 index 0000000..ebc514c --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderDraftValidationError } from './V1OrderDraftValidationError'; +/** + * + * @export + * @interface V1FbpDraftDirectSellerDlvEditResponse + */ +export interface V1FbpDraftDirectSellerDlvEditResponse { + /** + * + * @type {V1OrderDraftValidationError} + * @memberof V1FbpDraftDirectSellerDlvEditResponse + */ + error?: V1OrderDraftValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpDraftDirectSellerDlvEditResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectSellerDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvEditResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectSellerDlvEditResponse(value: object): value is V1FbpDraftDirectSellerDlvEditResponse; +export declare function V1FbpDraftDirectSellerDlvEditResponseFromJSON(json: any): V1FbpDraftDirectSellerDlvEditResponse; +export declare function V1FbpDraftDirectSellerDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectSellerDlvEditResponse; +export declare function V1FbpDraftDirectSellerDlvEditResponseToJSON(value?: V1FbpDraftDirectSellerDlvEditResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectSellerDlvEditResponse.js b/dist/models/V1FbpDraftDirectSellerDlvEditResponse.js new file mode 100644 index 0000000..c38bb52 --- /dev/null +++ b/dist/models/V1FbpDraftDirectSellerDlvEditResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectSellerDlvEditResponse = instanceOfV1FbpDraftDirectSellerDlvEditResponse; +exports.V1FbpDraftDirectSellerDlvEditResponseFromJSON = V1FbpDraftDirectSellerDlvEditResponseFromJSON; +exports.V1FbpDraftDirectSellerDlvEditResponseFromJSONTyped = V1FbpDraftDirectSellerDlvEditResponseFromJSONTyped; +exports.V1FbpDraftDirectSellerDlvEditResponseToJSON = V1FbpDraftDirectSellerDlvEditResponseToJSON; +const V1OrderDraftValidationError_1 = require("./V1OrderDraftValidationError"); +/** + * Check if a given object implements the V1FbpDraftDirectSellerDlvEditResponse interface. + */ +function instanceOfV1FbpDraftDirectSellerDlvEditResponse(value) { + return true; +} +function V1FbpDraftDirectSellerDlvEditResponseFromJSON(json) { + return V1FbpDraftDirectSellerDlvEditResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectSellerDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1OrderDraftValidationError_1.V1OrderDraftValidationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftDirectSellerDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1OrderDraftValidationError_1.V1OrderDraftValidationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftDirectTimeslotEditRequest.d.ts b/dist/models/V1FbpDraftDirectTimeslotEditRequest.d.ts new file mode 100644 index 0000000..c0390e6 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTimeslotEditRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectTimeslotEditRequest + */ +export interface V1FbpDraftDirectTimeslotEditRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTimeslotEditRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDirectTimeslotEditRequest + */ + supply_id: string; + /** + * Начало таймслота. + * @type {string} + * @memberof V1FbpDraftDirectTimeslotEditRequest + */ + timeslot_start: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectTimeslotEditRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectTimeslotEditRequest(value: object): value is V1FbpDraftDirectTimeslotEditRequest; +export declare function V1FbpDraftDirectTimeslotEditRequestFromJSON(json: any): V1FbpDraftDirectTimeslotEditRequest; +export declare function V1FbpDraftDirectTimeslotEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTimeslotEditRequest; +export declare function V1FbpDraftDirectTimeslotEditRequestToJSON(value?: V1FbpDraftDirectTimeslotEditRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectTimeslotEditRequest.js b/dist/models/V1FbpDraftDirectTimeslotEditRequest.js new file mode 100644 index 0000000..d0e74ca --- /dev/null +++ b/dist/models/V1FbpDraftDirectTimeslotEditRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectTimeslotEditRequest = instanceOfV1FbpDraftDirectTimeslotEditRequest; +exports.V1FbpDraftDirectTimeslotEditRequestFromJSON = V1FbpDraftDirectTimeslotEditRequestFromJSON; +exports.V1FbpDraftDirectTimeslotEditRequestFromJSONTyped = V1FbpDraftDirectTimeslotEditRequestFromJSONTyped; +exports.V1FbpDraftDirectTimeslotEditRequestToJSON = V1FbpDraftDirectTimeslotEditRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectTimeslotEditRequest interface. + */ +function instanceOfV1FbpDraftDirectTimeslotEditRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectTimeslotEditRequestFromJSON(json) { + return V1FbpDraftDirectTimeslotEditRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectTimeslotEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'timeslot_start': json['timeslot_start'], + }; +} +function V1FbpDraftDirectTimeslotEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V1FbpDraftDirectTimeslotEditResponse.d.ts b/dist/models/V1FbpDraftDirectTimeslotEditResponse.d.ts new file mode 100644 index 0000000..1abed4d --- /dev/null +++ b/dist/models/V1FbpDraftDirectTimeslotEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectTimeslotEditResponseReserveFailureType } from './V1FbpDraftDirectTimeslotEditResponseReserveFailureType'; +/** + * + * @export + * @interface V1FbpDraftDirectTimeslotEditResponse + */ +export interface V1FbpDraftDirectTimeslotEditResponse { + /** + * Причина ошибки: + * - `RESERVE_FAILURE_TYPE_UNSPECIFIED` — не определена; + * - `REQUEST_VALIDATION` — в запросе указана дата резервирования в прошлом; + * - `INVALID_RESERVE` — исходный резерв не найден, неактивен или уже содержит заявки, а его пытаются перезаписать; + * - `LOGISTICS_REASON` — ошибка на стороне логистики; + * - `SCHEDULE_REASON` — ошибка на стороне расписаний; + * - `NO_CAPACITY` — нет доступных слотов для резервирования. + * + * @type {Array} + * @memberof V1FbpDraftDirectTimeslotEditResponse + */ + error_reasons?: Array; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTimeslotEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectTimeslotEditResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectTimeslotEditResponse(value: object): value is V1FbpDraftDirectTimeslotEditResponse; +export declare function V1FbpDraftDirectTimeslotEditResponseFromJSON(json: any): V1FbpDraftDirectTimeslotEditResponse; +export declare function V1FbpDraftDirectTimeslotEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTimeslotEditResponse; +export declare function V1FbpDraftDirectTimeslotEditResponseToJSON(value?: V1FbpDraftDirectTimeslotEditResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectTimeslotEditResponse.js b/dist/models/V1FbpDraftDirectTimeslotEditResponse.js new file mode 100644 index 0000000..d55606c --- /dev/null +++ b/dist/models/V1FbpDraftDirectTimeslotEditResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectTimeslotEditResponse = instanceOfV1FbpDraftDirectTimeslotEditResponse; +exports.V1FbpDraftDirectTimeslotEditResponseFromJSON = V1FbpDraftDirectTimeslotEditResponseFromJSON; +exports.V1FbpDraftDirectTimeslotEditResponseFromJSONTyped = V1FbpDraftDirectTimeslotEditResponseFromJSONTyped; +exports.V1FbpDraftDirectTimeslotEditResponseToJSON = V1FbpDraftDirectTimeslotEditResponseToJSON; +const V1FbpDraftDirectTimeslotEditResponseReserveFailureType_1 = require("./V1FbpDraftDirectTimeslotEditResponseReserveFailureType"); +/** + * Check if a given object implements the V1FbpDraftDirectTimeslotEditResponse interface. + */ +function instanceOfV1FbpDraftDirectTimeslotEditResponse(value) { + return true; +} +function V1FbpDraftDirectTimeslotEditResponseFromJSON(json) { + return V1FbpDraftDirectTimeslotEditResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectTimeslotEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1FbpDraftDirectTimeslotEditResponseReserveFailureType_1.V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON)), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftDirectTimeslotEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1FbpDraftDirectTimeslotEditResponseReserveFailureType_1.V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON)), + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.d.ts b/dist/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.d.ts new file mode 100644 index 0000000..3b85b3a --- /dev/null +++ b/dist/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.d.ts @@ -0,0 +1,28 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1FbpDraftDirectTimeslotEditResponseReserveFailureType: { + readonly RESERVE_FAILURE_TYPE_UNSPECIFIED: "RESERVE_FAILURE_TYPE_UNSPECIFIED"; + readonly REQUEST_VALIDATION: "REQUEST_VALIDATION"; + readonly INVALID_RESERVE: "INVALID_RESERVE"; + readonly LOGISTICS_REASON: "LOGISTICS_REASON"; + readonly SCHEDULE_REASON: "SCHEDULE_REASON"; + readonly NO_CAPACITY: "NO_CAPACITY"; +}; +export type V1FbpDraftDirectTimeslotEditResponseReserveFailureType = typeof V1FbpDraftDirectTimeslotEditResponseReserveFailureType[keyof typeof V1FbpDraftDirectTimeslotEditResponseReserveFailureType]; +export declare function instanceOfV1FbpDraftDirectTimeslotEditResponseReserveFailureType(value: any): boolean; +export declare function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON(json: any): V1FbpDraftDirectTimeslotEditResponseReserveFailureType; +export declare function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTimeslotEditResponseReserveFailureType; +export declare function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON(value?: V1FbpDraftDirectTimeslotEditResponseReserveFailureType | null): any; diff --git a/dist/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.js b/dist/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.js new file mode 100644 index 0000000..06d65a3 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTimeslotEditResponseReserveFailureType.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1FbpDraftDirectTimeslotEditResponseReserveFailureType = void 0; +exports.instanceOfV1FbpDraftDirectTimeslotEditResponseReserveFailureType = instanceOfV1FbpDraftDirectTimeslotEditResponseReserveFailureType; +exports.V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON = V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON; +exports.V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSONTyped = V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSONTyped; +exports.V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON = V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON; +/** + * + * @export + */ +exports.V1FbpDraftDirectTimeslotEditResponseReserveFailureType = { + RESERVE_FAILURE_TYPE_UNSPECIFIED: 'RESERVE_FAILURE_TYPE_UNSPECIFIED', + REQUEST_VALIDATION: 'REQUEST_VALIDATION', + INVALID_RESERVE: 'INVALID_RESERVE', + LOGISTICS_REASON: 'LOGISTICS_REASON', + SCHEDULE_REASON: 'SCHEDULE_REASON', + NO_CAPACITY: 'NO_CAPACITY' +}; +function instanceOfV1FbpDraftDirectTimeslotEditResponseReserveFailureType(value) { + for (const key in exports.V1FbpDraftDirectTimeslotEditResponseReserveFailureType) { + if (Object.prototype.hasOwnProperty.call(exports.V1FbpDraftDirectTimeslotEditResponseReserveFailureType, key)) { + if (exports.V1FbpDraftDirectTimeslotEditResponseReserveFailureType[key] === value) { + return true; + } + } + } + return false; +} +function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSON(json) { + return V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSONTyped(json, false); +} +function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1FbpDraftDirectTimeslotEditResponseReserveFailureTypeToJSON(value) { + return value; +} diff --git a/dist/models/V1FbpDraftDirectTplDlvCreateRequest.d.ts b/dist/models/V1FbpDraftDirectTplDlvCreateRequest.d.ts new file mode 100644 index 0000000..2b12c06 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDirectTplDlvCreateRequestDirectDetails } from './V1FbpDraftDirectTplDlvCreateRequestDirectDetails'; +/** + * + * @export + * @interface V1FbpDraftDirectTplDlvCreateRequest + */ +export interface V1FbpDraftDirectTplDlvCreateRequest { + /** + * Идентификатор комплекта. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftDirectTplDlvCreateRequestDirectDetails} + * @memberof V1FbpDraftDirectTplDlvCreateRequest + */ + delivery_details: V1FbpDraftDirectTplDlvCreateRequestDirectDetails; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvCreateRequest(value: object): value is V1FbpDraftDirectTplDlvCreateRequest; +export declare function V1FbpDraftDirectTplDlvCreateRequestFromJSON(json: any): V1FbpDraftDirectTplDlvCreateRequest; +export declare function V1FbpDraftDirectTplDlvCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvCreateRequest; +export declare function V1FbpDraftDirectTplDlvCreateRequestToJSON(value?: V1FbpDraftDirectTplDlvCreateRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectTplDlvCreateRequest.js b/dist/models/V1FbpDraftDirectTplDlvCreateRequest.js new file mode 100644 index 0000000..5fecbc9 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvCreateRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectTplDlvCreateRequest = instanceOfV1FbpDraftDirectTplDlvCreateRequest; +exports.V1FbpDraftDirectTplDlvCreateRequestFromJSON = V1FbpDraftDirectTplDlvCreateRequestFromJSON; +exports.V1FbpDraftDirectTplDlvCreateRequestFromJSONTyped = V1FbpDraftDirectTplDlvCreateRequestFromJSONTyped; +exports.V1FbpDraftDirectTplDlvCreateRequestToJSON = V1FbpDraftDirectTplDlvCreateRequestToJSON; +const V1FbpDraftDirectTplDlvCreateRequestDirectDetails_1 = require("./V1FbpDraftDirectTplDlvCreateRequestDirectDetails"); +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateRequest interface. + */ +function instanceOfV1FbpDraftDirectTplDlvCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectTplDlvCreateRequestFromJSON(json) { + return V1FbpDraftDirectTplDlvCreateRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectTplDlvCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': (0, V1FbpDraftDirectTplDlvCreateRequestDirectDetails_1.V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON)(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDirectTplDlvCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': (0, V1FbpDraftDirectTplDlvCreateRequestDirectDetails_1.V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON)(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.d.ts b/dist/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.d.ts new file mode 100644 index 0000000..b7e7866 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftDirectTplDlvCreateRequestDirectDetails + */ +export interface V1FbpDraftDirectTplDlvCreateRequestDirectDetails { + /** + * Время начала таймслота по местному времени. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateRequestDirectDetails + */ + timeslot_start: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateRequestDirectDetails + */ + tracking_number: string; + /** + * Название транспортной компании. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateRequestDirectDetails + */ + transport_company_name: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateRequestDirectDetails interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvCreateRequestDirectDetails(value: object): value is V1FbpDraftDirectTplDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON(json: any): V1FbpDraftDirectTplDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvCreateRequestDirectDetails; +export declare function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON(value?: V1FbpDraftDirectTplDlvCreateRequestDirectDetails | null): any; diff --git a/dist/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.js b/dist/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.js new file mode 100644 index 0000000..3d76ca6 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvCreateRequestDirectDetails.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectTplDlvCreateRequestDirectDetails = instanceOfV1FbpDraftDirectTplDlvCreateRequestDirectDetails; +exports.V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON = V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON; +exports.V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSONTyped = V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSONTyped; +exports.V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON = V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateRequestDirectDetails interface. + */ +function instanceOfV1FbpDraftDirectTplDlvCreateRequestDirectDetails(value) { + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + if (!('tracking_number' in value) || value['tracking_number'] === undefined) + return false; + if (!('transport_company_name' in value) || value['transport_company_name'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSON(json) { + return V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSONTyped(json, false); +} +function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_start': json['timeslot_start'], + 'tracking_number': json['tracking_number'], + 'transport_company_name': json['transport_company_name'], + }; +} +function V1FbpDraftDirectTplDlvCreateRequestDirectDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_start': value['timeslot_start'], + 'tracking_number': value['tracking_number'], + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/models/V1FbpDraftDirectTplDlvCreateResponse.d.ts b/dist/models/V1FbpDraftDirectTplDlvCreateResponse.d.ts new file mode 100644 index 0000000..902259f --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectTplDlvCreateResponse + */ +export interface V1FbpDraftDirectTplDlvCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvCreateResponse + */ + row_version?: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvCreateResponse(value: object): value is V1FbpDraftDirectTplDlvCreateResponse; +export declare function V1FbpDraftDirectTplDlvCreateResponseFromJSON(json: any): V1FbpDraftDirectTplDlvCreateResponse; +export declare function V1FbpDraftDirectTplDlvCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvCreateResponse; +export declare function V1FbpDraftDirectTplDlvCreateResponseToJSON(value?: V1FbpDraftDirectTplDlvCreateResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectTplDlvCreateResponse.js b/dist/models/V1FbpDraftDirectTplDlvCreateResponse.js new file mode 100644 index 0000000..1050f4f --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvCreateResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectTplDlvCreateResponse = instanceOfV1FbpDraftDirectTplDlvCreateResponse; +exports.V1FbpDraftDirectTplDlvCreateResponseFromJSON = V1FbpDraftDirectTplDlvCreateResponseFromJSON; +exports.V1FbpDraftDirectTplDlvCreateResponseFromJSONTyped = V1FbpDraftDirectTplDlvCreateResponseFromJSONTyped; +exports.V1FbpDraftDirectTplDlvCreateResponseToJSON = V1FbpDraftDirectTplDlvCreateResponseToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvCreateResponse interface. + */ +function instanceOfV1FbpDraftDirectTplDlvCreateResponse(value) { + return true; +} +function V1FbpDraftDirectTplDlvCreateResponseFromJSON(json) { + return V1FbpDraftDirectTplDlvCreateResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectTplDlvCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function V1FbpDraftDirectTplDlvCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDirectTplDlvEditRequest.d.ts b/dist/models/V1FbpDraftDirectTplDlvEditRequest.d.ts new file mode 100644 index 0000000..037c532 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvEditRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDirectTplDlvEditRequest + */ +export interface V1FbpDraftDirectTplDlvEditRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvEditRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvEditRequest + */ + supply_id: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvEditRequest + */ + tracking_number: string; + /** + * Название транспортной компании. + * @type {string} + * @memberof V1FbpDraftDirectTplDlvEditRequest + */ + transport_company_name: string; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvEditRequest interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvEditRequest(value: object): value is V1FbpDraftDirectTplDlvEditRequest; +export declare function V1FbpDraftDirectTplDlvEditRequestFromJSON(json: any): V1FbpDraftDirectTplDlvEditRequest; +export declare function V1FbpDraftDirectTplDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvEditRequest; +export declare function V1FbpDraftDirectTplDlvEditRequestToJSON(value?: V1FbpDraftDirectTplDlvEditRequest | null): any; diff --git a/dist/models/V1FbpDraftDirectTplDlvEditRequest.js b/dist/models/V1FbpDraftDirectTplDlvEditRequest.js new file mode 100644 index 0000000..2b83704 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvEditRequest.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectTplDlvEditRequest = instanceOfV1FbpDraftDirectTplDlvEditRequest; +exports.V1FbpDraftDirectTplDlvEditRequestFromJSON = V1FbpDraftDirectTplDlvEditRequestFromJSON; +exports.V1FbpDraftDirectTplDlvEditRequestFromJSONTyped = V1FbpDraftDirectTplDlvEditRequestFromJSONTyped; +exports.V1FbpDraftDirectTplDlvEditRequestToJSON = V1FbpDraftDirectTplDlvEditRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvEditRequest interface. + */ +function instanceOfV1FbpDraftDirectTplDlvEditRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('tracking_number' in value) || value['tracking_number'] === undefined) + return false; + if (!('transport_company_name' in value) || value['transport_company_name'] === undefined) + return false; + return true; +} +function V1FbpDraftDirectTplDlvEditRequestFromJSON(json) { + return V1FbpDraftDirectTplDlvEditRequestFromJSONTyped(json, false); +} +function V1FbpDraftDirectTplDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'tracking_number': json['tracking_number'], + 'transport_company_name': json['transport_company_name'], + }; +} +function V1FbpDraftDirectTplDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'tracking_number': value['tracking_number'], + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/models/V1FbpDraftDirectTplDlvEditResponse.d.ts b/dist/models/V1FbpDraftDirectTplDlvEditResponse.d.ts new file mode 100644 index 0000000..2dc5295 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderDraftValidationError } from './V1OrderDraftValidationError'; +/** + * + * @export + * @interface V1FbpDraftDirectTplDlvEditResponse + */ +export interface V1FbpDraftDirectTplDlvEditResponse { + /** + * + * @type {V1OrderDraftValidationError} + * @memberof V1FbpDraftDirectTplDlvEditResponse + */ + error?: V1OrderDraftValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpDraftDirectTplDlvEditResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDirectTplDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvEditResponse interface. + */ +export declare function instanceOfV1FbpDraftDirectTplDlvEditResponse(value: object): value is V1FbpDraftDirectTplDlvEditResponse; +export declare function V1FbpDraftDirectTplDlvEditResponseFromJSON(json: any): V1FbpDraftDirectTplDlvEditResponse; +export declare function V1FbpDraftDirectTplDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDirectTplDlvEditResponse; +export declare function V1FbpDraftDirectTplDlvEditResponseToJSON(value?: V1FbpDraftDirectTplDlvEditResponse | null): any; diff --git a/dist/models/V1FbpDraftDirectTplDlvEditResponse.js b/dist/models/V1FbpDraftDirectTplDlvEditResponse.js new file mode 100644 index 0000000..8bc2323 --- /dev/null +++ b/dist/models/V1FbpDraftDirectTplDlvEditResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDirectTplDlvEditResponse = instanceOfV1FbpDraftDirectTplDlvEditResponse; +exports.V1FbpDraftDirectTplDlvEditResponseFromJSON = V1FbpDraftDirectTplDlvEditResponseFromJSON; +exports.V1FbpDraftDirectTplDlvEditResponseFromJSONTyped = V1FbpDraftDirectTplDlvEditResponseFromJSONTyped; +exports.V1FbpDraftDirectTplDlvEditResponseToJSON = V1FbpDraftDirectTplDlvEditResponseToJSON; +const V1OrderDraftValidationError_1 = require("./V1OrderDraftValidationError"); +/** + * Check if a given object implements the V1FbpDraftDirectTplDlvEditResponse interface. + */ +function instanceOfV1FbpDraftDirectTplDlvEditResponse(value) { + return true; +} +function V1FbpDraftDirectTplDlvEditResponseFromJSON(json) { + return V1FbpDraftDirectTplDlvEditResponseFromJSONTyped(json, false); +} +function V1FbpDraftDirectTplDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1OrderDraftValidationError_1.V1OrderDraftValidationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftDirectTplDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1OrderDraftValidationError_1.V1OrderDraftValidationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffCreateRequest.d.ts b/dist/models/V1FbpDraftDropOffCreateRequest.d.ts new file mode 100644 index 0000000..6fc6e5f --- /dev/null +++ b/dist/models/V1FbpDraftDropOffCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffCreateRequestDeliveryDetails } from './V1FbpDraftDropOffCreateRequestDeliveryDetails'; +/** + * + * @export + * @interface V1FbpDraftDropOffCreateRequest + */ +export interface V1FbpDraftDropOffCreateRequest { + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDropOffCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftDropOffCreateRequestDeliveryDetails} + * @memberof V1FbpDraftDropOffCreateRequest + */ + delivery_details: V1FbpDraftDropOffCreateRequestDeliveryDetails; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftDropOffCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1FbpDraftDropOffCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffCreateRequest(value: object): value is V1FbpDraftDropOffCreateRequest; +export declare function V1FbpDraftDropOffCreateRequestFromJSON(json: any): V1FbpDraftDropOffCreateRequest; +export declare function V1FbpDraftDropOffCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffCreateRequest; +export declare function V1FbpDraftDropOffCreateRequestToJSON(value?: V1FbpDraftDropOffCreateRequest | null): any; diff --git a/dist/models/V1FbpDraftDropOffCreateRequest.js b/dist/models/V1FbpDraftDropOffCreateRequest.js new file mode 100644 index 0000000..c5b972e --- /dev/null +++ b/dist/models/V1FbpDraftDropOffCreateRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffCreateRequest = instanceOfV1FbpDraftDropOffCreateRequest; +exports.V1FbpDraftDropOffCreateRequestFromJSON = V1FbpDraftDropOffCreateRequestFromJSON; +exports.V1FbpDraftDropOffCreateRequestFromJSONTyped = V1FbpDraftDropOffCreateRequestFromJSONTyped; +exports.V1FbpDraftDropOffCreateRequestToJSON = V1FbpDraftDropOffCreateRequestToJSON; +const V1FbpDraftDropOffCreateRequestDeliveryDetails_1 = require("./V1FbpDraftDropOffCreateRequestDeliveryDetails"); +/** + * Check if a given object implements the V1FbpDraftDropOffCreateRequest interface. + */ +function instanceOfV1FbpDraftDropOffCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffCreateRequestFromJSON(json) { + return V1FbpDraftDropOffCreateRequestFromJSONTyped(json, false); +} +function V1FbpDraftDropOffCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': (0, V1FbpDraftDropOffCreateRequestDeliveryDetails_1.V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON)(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDropOffCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': (0, V1FbpDraftDropOffCreateRequestDeliveryDetails_1.V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON)(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.d.ts b/dist/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.d.ts new file mode 100644 index 0000000..3d4d3c4 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftDropOffCreateRequestDeliveryDetails + */ +export interface V1FbpDraftDropOffCreateRequestDeliveryDetails { + /** + * Дата доставки. + * @type {string} + * @memberof V1FbpDraftDropOffCreateRequestDeliveryDetails + */ + drop_off_date: string; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1FbpDraftDropOffCreateRequestDeliveryDetails + */ + drop_off_point_id: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpDraftDropOffCreateRequestDeliveryDetails + */ + drop_off_province_uuid: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffCreateRequestDeliveryDetails interface. + */ +export declare function instanceOfV1FbpDraftDropOffCreateRequestDeliveryDetails(value: object): value is V1FbpDraftDropOffCreateRequestDeliveryDetails; +export declare function V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON(json: any): V1FbpDraftDropOffCreateRequestDeliveryDetails; +export declare function V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffCreateRequestDeliveryDetails; +export declare function V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON(value?: V1FbpDraftDropOffCreateRequestDeliveryDetails | null): any; diff --git a/dist/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.js b/dist/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.js new file mode 100644 index 0000000..589ffe6 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffCreateRequestDeliveryDetails.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffCreateRequestDeliveryDetails = instanceOfV1FbpDraftDropOffCreateRequestDeliveryDetails; +exports.V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON = V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON; +exports.V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSONTyped = V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSONTyped; +exports.V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON = V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffCreateRequestDeliveryDetails interface. + */ +function instanceOfV1FbpDraftDropOffCreateRequestDeliveryDetails(value) { + if (!('drop_off_date' in value) || value['drop_off_date'] === undefined) + return false; + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('drop_off_province_uuid' in value) || value['drop_off_province_uuid'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSON(json) { + return V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSONTyped(json, false); +} +function V1FbpDraftDropOffCreateRequestDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_date': json['drop_off_date'], + 'drop_off_point_id': json['drop_off_point_id'], + 'drop_off_province_uuid': json['drop_off_province_uuid'], + }; +} +function V1FbpDraftDropOffCreateRequestDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_date': value['drop_off_date'], + 'drop_off_point_id': value['drop_off_point_id'], + 'drop_off_province_uuid': value['drop_off_province_uuid'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffCreateResponse.d.ts b/dist/models/V1FbpDraftDropOffCreateResponse.d.ts new file mode 100644 index 0000000..3f2dc69 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffCreateResponse + */ +export interface V1FbpDraftDropOffCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftDropOffCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffCreateResponse + */ + row_version?: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDropOffCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffCreateResponse(value: object): value is V1FbpDraftDropOffCreateResponse; +export declare function V1FbpDraftDropOffCreateResponseFromJSON(json: any): V1FbpDraftDropOffCreateResponse; +export declare function V1FbpDraftDropOffCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffCreateResponse; +export declare function V1FbpDraftDropOffCreateResponseToJSON(value?: V1FbpDraftDropOffCreateResponse | null): any; diff --git a/dist/models/V1FbpDraftDropOffCreateResponse.js b/dist/models/V1FbpDraftDropOffCreateResponse.js new file mode 100644 index 0000000..375a4b2 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffCreateResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffCreateResponse = instanceOfV1FbpDraftDropOffCreateResponse; +exports.V1FbpDraftDropOffCreateResponseFromJSON = V1FbpDraftDropOffCreateResponseFromJSON; +exports.V1FbpDraftDropOffCreateResponseFromJSONTyped = V1FbpDraftDropOffCreateResponseFromJSONTyped; +exports.V1FbpDraftDropOffCreateResponseToJSON = V1FbpDraftDropOffCreateResponseToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffCreateResponse interface. + */ +function instanceOfV1FbpDraftDropOffCreateResponse(value) { + return true; +} +function V1FbpDraftDropOffCreateResponseFromJSON(json) { + return V1FbpDraftDropOffCreateResponseFromJSONTyped(json, false); +} +function V1FbpDraftDropOffCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function V1FbpDraftDropOffCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffDeleteRequest.d.ts b/dist/models/V1FbpDraftDropOffDeleteRequest.d.ts new file mode 100644 index 0000000..a556dea --- /dev/null +++ b/dist/models/V1FbpDraftDropOffDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffDeleteRequest + */ +export interface V1FbpDraftDropOffDeleteRequest { + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDropOffDeleteRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffDeleteRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffDeleteRequest(value: object): value is V1FbpDraftDropOffDeleteRequest; +export declare function V1FbpDraftDropOffDeleteRequestFromJSON(json: any): V1FbpDraftDropOffDeleteRequest; +export declare function V1FbpDraftDropOffDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffDeleteRequest; +export declare function V1FbpDraftDropOffDeleteRequestToJSON(value?: V1FbpDraftDropOffDeleteRequest | null): any; diff --git a/dist/models/V1FbpDraftDropOffDeleteRequest.js b/dist/models/V1FbpDraftDropOffDeleteRequest.js new file mode 100644 index 0000000..2aaf2b7 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffDeleteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffDeleteRequest = instanceOfV1FbpDraftDropOffDeleteRequest; +exports.V1FbpDraftDropOffDeleteRequestFromJSON = V1FbpDraftDropOffDeleteRequestFromJSON; +exports.V1FbpDraftDropOffDeleteRequestFromJSONTyped = V1FbpDraftDropOffDeleteRequestFromJSONTyped; +exports.V1FbpDraftDropOffDeleteRequestToJSON = V1FbpDraftDropOffDeleteRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffDeleteRequest interface. + */ +function instanceOfV1FbpDraftDropOffDeleteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffDeleteRequestFromJSON(json) { + return V1FbpDraftDropOffDeleteRequestFromJSONTyped(json, false); +} +function V1FbpDraftDropOffDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftDropOffDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffDeleteResponse.d.ts b/dist/models/V1FbpDraftDropOffDeleteResponse.d.ts new file mode 100644 index 0000000..fa54e8e --- /dev/null +++ b/dist/models/V1FbpDraftDropOffDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancellationState } from './V1CancellationState'; +/** + * + * @export + * @interface V1FbpDraftDropOffDeleteResponse + */ +export interface V1FbpDraftDropOffDeleteResponse { + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftDropOffDeleteResponse + */ + cancellation_state?: V1CancellationState; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffDeleteResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffDeleteResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffDeleteResponse(value: object): value is V1FbpDraftDropOffDeleteResponse; +export declare function V1FbpDraftDropOffDeleteResponseFromJSON(json: any): V1FbpDraftDropOffDeleteResponse; +export declare function V1FbpDraftDropOffDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffDeleteResponse; +export declare function V1FbpDraftDropOffDeleteResponseToJSON(value?: V1FbpDraftDropOffDeleteResponse | null): any; diff --git a/dist/models/V1FbpDraftDropOffDeleteResponse.js b/dist/models/V1FbpDraftDropOffDeleteResponse.js new file mode 100644 index 0000000..0940574 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffDeleteResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffDeleteResponse = instanceOfV1FbpDraftDropOffDeleteResponse; +exports.V1FbpDraftDropOffDeleteResponseFromJSON = V1FbpDraftDropOffDeleteResponseFromJSON; +exports.V1FbpDraftDropOffDeleteResponseFromJSONTyped = V1FbpDraftDropOffDeleteResponseFromJSONTyped; +exports.V1FbpDraftDropOffDeleteResponseToJSON = V1FbpDraftDropOffDeleteResponseToJSON; +const V1CancellationState_1 = require("./V1CancellationState"); +/** + * Check if a given object implements the V1FbpDraftDropOffDeleteResponse interface. + */ +function instanceOfV1FbpDraftDropOffDeleteResponse(value) { + return true; +} +function V1FbpDraftDropOffDeleteResponseFromJSON(json) { + return V1FbpDraftDropOffDeleteResponseFromJSONTyped(json, false); +} +function V1FbpDraftDropOffDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_state': json['cancellation_state'] == null ? undefined : (0, V1CancellationState_1.V1CancellationStateFromJSON)(json['cancellation_state']), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftDropOffDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_state': (0, V1CancellationState_1.V1CancellationStateToJSON)(value['cancellation_state']), + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffDlvEditRequest.d.ts b/dist/models/V1FbpDraftDropOffDlvEditRequest.d.ts new file mode 100644 index 0000000..233f268 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffDlvEditRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffDlvEditRequest + */ +export interface V1FbpDraftDropOffDlvEditRequest { + /** + * Дата доставки. + * @type {string} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + drop_off_date: string; + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + drop_off_point_id: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + drop_off_province_uuid: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDropOffDlvEditRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffDlvEditRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffDlvEditRequest(value: object): value is V1FbpDraftDropOffDlvEditRequest; +export declare function V1FbpDraftDropOffDlvEditRequestFromJSON(json: any): V1FbpDraftDropOffDlvEditRequest; +export declare function V1FbpDraftDropOffDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffDlvEditRequest; +export declare function V1FbpDraftDropOffDlvEditRequestToJSON(value?: V1FbpDraftDropOffDlvEditRequest | null): any; diff --git a/dist/models/V1FbpDraftDropOffDlvEditRequest.js b/dist/models/V1FbpDraftDropOffDlvEditRequest.js new file mode 100644 index 0000000..97096d1 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffDlvEditRequest.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffDlvEditRequest = instanceOfV1FbpDraftDropOffDlvEditRequest; +exports.V1FbpDraftDropOffDlvEditRequestFromJSON = V1FbpDraftDropOffDlvEditRequestFromJSON; +exports.V1FbpDraftDropOffDlvEditRequestFromJSONTyped = V1FbpDraftDropOffDlvEditRequestFromJSONTyped; +exports.V1FbpDraftDropOffDlvEditRequestToJSON = V1FbpDraftDropOffDlvEditRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffDlvEditRequest interface. + */ +function instanceOfV1FbpDraftDropOffDlvEditRequest(value) { + if (!('drop_off_date' in value) || value['drop_off_date'] === undefined) + return false; + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('drop_off_province_uuid' in value) || value['drop_off_province_uuid'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffDlvEditRequestFromJSON(json) { + return V1FbpDraftDropOffDlvEditRequestFromJSONTyped(json, false); +} +function V1FbpDraftDropOffDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_date': json['drop_off_date'], + 'drop_off_point_id': json['drop_off_point_id'], + 'drop_off_province_uuid': json['drop_off_province_uuid'], + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftDropOffDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_date': value['drop_off_date'], + 'drop_off_point_id': value['drop_off_point_id'], + 'drop_off_province_uuid': value['drop_off_province_uuid'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffDlvEditResponse.d.ts b/dist/models/V1FbpDraftDropOffDlvEditResponse.d.ts new file mode 100644 index 0000000..6e9b970 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffDlvEditResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffDlvEditResponse + */ +export interface V1FbpDraftDropOffDlvEditResponse { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffDlvEditResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffDlvEditResponse(value: object): value is V1FbpDraftDropOffDlvEditResponse; +export declare function V1FbpDraftDropOffDlvEditResponseFromJSON(json: any): V1FbpDraftDropOffDlvEditResponse; +export declare function V1FbpDraftDropOffDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffDlvEditResponse; +export declare function V1FbpDraftDropOffDlvEditResponseToJSON(value?: V1FbpDraftDropOffDlvEditResponse | null): any; diff --git a/dist/models/V1FbpDraftDropOffDlvEditResponse.js b/dist/models/V1FbpDraftDropOffDlvEditResponse.js new file mode 100644 index 0000000..483101b --- /dev/null +++ b/dist/models/V1FbpDraftDropOffDlvEditResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffDlvEditResponse = instanceOfV1FbpDraftDropOffDlvEditResponse; +exports.V1FbpDraftDropOffDlvEditResponseFromJSON = V1FbpDraftDropOffDlvEditResponseFromJSON; +exports.V1FbpDraftDropOffDlvEditResponseFromJSONTyped = V1FbpDraftDropOffDlvEditResponseFromJSONTyped; +exports.V1FbpDraftDropOffDlvEditResponseToJSON = V1FbpDraftDropOffDlvEditResponseToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffDlvEditResponse interface. + */ +function instanceOfV1FbpDraftDropOffDlvEditResponse(value) { + return true; +} +function V1FbpDraftDropOffDlvEditResponseFromJSON(json) { + return V1FbpDraftDropOffDlvEditResponseFromJSONTyped(json, false); +} +function V1FbpDraftDropOffDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftDropOffDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffPointListRequest.d.ts b/dist/models/V1FbpDraftDropOffPointListRequest.d.ts new file mode 100644 index 0000000..c747b61 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointListRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffPointListRequest + */ +export interface V1FbpDraftDropOffPointListRequest { + /** + * Следующий номер страницы. + * @type {number} + * @memberof V1FbpDraftDropOffPointListRequest + */ + next_page_number?: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V1FbpDraftDropOffPointListRequest + */ + page_size: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpDraftDropOffPointListRequest + */ + province_uuid: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDropOffPointListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointListRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointListRequest(value: object): value is V1FbpDraftDropOffPointListRequest; +export declare function V1FbpDraftDropOffPointListRequestFromJSON(json: any): V1FbpDraftDropOffPointListRequest; +export declare function V1FbpDraftDropOffPointListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointListRequest; +export declare function V1FbpDraftDropOffPointListRequestToJSON(value?: V1FbpDraftDropOffPointListRequest | null): any; diff --git a/dist/models/V1FbpDraftDropOffPointListRequest.js b/dist/models/V1FbpDraftDropOffPointListRequest.js new file mode 100644 index 0000000..8f9e57e --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointListRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffPointListRequest = instanceOfV1FbpDraftDropOffPointListRequest; +exports.V1FbpDraftDropOffPointListRequestFromJSON = V1FbpDraftDropOffPointListRequestFromJSON; +exports.V1FbpDraftDropOffPointListRequestFromJSONTyped = V1FbpDraftDropOffPointListRequestFromJSONTyped; +exports.V1FbpDraftDropOffPointListRequestToJSON = V1FbpDraftDropOffPointListRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffPointListRequest interface. + */ +function instanceOfV1FbpDraftDropOffPointListRequest(value) { + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + if (!('province_uuid' in value) || value['province_uuid'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffPointListRequestFromJSON(json) { + return V1FbpDraftDropOffPointListRequestFromJSONTyped(json, false); +} +function V1FbpDraftDropOffPointListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'next_page_number': json['next_page_number'] == null ? undefined : json['next_page_number'], + 'page_size': json['page_size'], + 'province_uuid': json['province_uuid'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDropOffPointListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'next_page_number': value['next_page_number'], + 'page_size': value['page_size'], + 'province_uuid': value['province_uuid'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffPointListResponse.d.ts b/dist/models/V1FbpDraftDropOffPointListResponse.d.ts new file mode 100644 index 0000000..70f61cc --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpDraftDropOffPointListResponseDropOffPoint } from './FbpDraftDropOffPointListResponseDropOffPoint'; +/** + * + * @export + * @interface V1FbpDraftDropOffPointListResponse + */ +export interface V1FbpDraftDropOffPointListResponse { + /** + * Список drop-off пунктов. + * @type {Array} + * @memberof V1FbpDraftDropOffPointListResponse + */ + drop_off_points?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointListResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointListResponse(value: object): value is V1FbpDraftDropOffPointListResponse; +export declare function V1FbpDraftDropOffPointListResponseFromJSON(json: any): V1FbpDraftDropOffPointListResponse; +export declare function V1FbpDraftDropOffPointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointListResponse; +export declare function V1FbpDraftDropOffPointListResponseToJSON(value?: V1FbpDraftDropOffPointListResponse | null): any; diff --git a/dist/models/V1FbpDraftDropOffPointListResponse.js b/dist/models/V1FbpDraftDropOffPointListResponse.js new file mode 100644 index 0000000..f326af7 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffPointListResponse = instanceOfV1FbpDraftDropOffPointListResponse; +exports.V1FbpDraftDropOffPointListResponseFromJSON = V1FbpDraftDropOffPointListResponseFromJSON; +exports.V1FbpDraftDropOffPointListResponseFromJSONTyped = V1FbpDraftDropOffPointListResponseFromJSONTyped; +exports.V1FbpDraftDropOffPointListResponseToJSON = V1FbpDraftDropOffPointListResponseToJSON; +const FbpDraftDropOffPointListResponseDropOffPoint_1 = require("./FbpDraftDropOffPointListResponseDropOffPoint"); +/** + * Check if a given object implements the V1FbpDraftDropOffPointListResponse interface. + */ +function instanceOfV1FbpDraftDropOffPointListResponse(value) { + return true; +} +function V1FbpDraftDropOffPointListResponseFromJSON(json) { + return V1FbpDraftDropOffPointListResponseFromJSONTyped(json, false); +} +function V1FbpDraftDropOffPointListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_points': json['drop_off_points'] == null ? undefined : (json['drop_off_points'].map(FbpDraftDropOffPointListResponseDropOffPoint_1.FbpDraftDropOffPointListResponseDropOffPointFromJSON)), + }; +} +function V1FbpDraftDropOffPointListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_points': value['drop_off_points'] == null ? undefined : (value['drop_off_points'].map(FbpDraftDropOffPointListResponseDropOffPoint_1.FbpDraftDropOffPointListResponseDropOffPointToJSON)), + }; +} diff --git a/dist/models/V1FbpDraftDropOffPointTimetableRequest.d.ts b/dist/models/V1FbpDraftDropOffPointTimetableRequest.d.ts new file mode 100644 index 0000000..f18d703 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffPointTimetableRequest + */ +export interface V1FbpDraftDropOffPointTimetableRequest { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1FbpDraftDropOffPointTimetableRequest + */ + drop_off_point_id: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableRequest + */ + province_uuid: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDropOffPointTimetableRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableRequest(value: object): value is V1FbpDraftDropOffPointTimetableRequest; +export declare function V1FbpDraftDropOffPointTimetableRequestFromJSON(json: any): V1FbpDraftDropOffPointTimetableRequest; +export declare function V1FbpDraftDropOffPointTimetableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableRequest; +export declare function V1FbpDraftDropOffPointTimetableRequestToJSON(value?: V1FbpDraftDropOffPointTimetableRequest | null): any; diff --git a/dist/models/V1FbpDraftDropOffPointTimetableRequest.js b/dist/models/V1FbpDraftDropOffPointTimetableRequest.js new file mode 100644 index 0000000..358ac37 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffPointTimetableRequest = instanceOfV1FbpDraftDropOffPointTimetableRequest; +exports.V1FbpDraftDropOffPointTimetableRequestFromJSON = V1FbpDraftDropOffPointTimetableRequestFromJSON; +exports.V1FbpDraftDropOffPointTimetableRequestFromJSONTyped = V1FbpDraftDropOffPointTimetableRequestFromJSONTyped; +exports.V1FbpDraftDropOffPointTimetableRequestToJSON = V1FbpDraftDropOffPointTimetableRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableRequest interface. + */ +function instanceOfV1FbpDraftDropOffPointTimetableRequest(value) { + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('province_uuid' in value) || value['province_uuid'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffPointTimetableRequestFromJSON(json) { + return V1FbpDraftDropOffPointTimetableRequestFromJSONTyped(json, false); +} +function V1FbpDraftDropOffPointTimetableRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_point_id': json['drop_off_point_id'], + 'province_uuid': json['province_uuid'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDropOffPointTimetableRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_point_id': value['drop_off_point_id'], + 'province_uuid': value['province_uuid'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponse.d.ts b/dist/models/V1FbpDraftDropOffPointTimetableResponse.d.ts new file mode 100644 index 0000000..d35a23e --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffPointTimetableResponseCalendar } from './V1FbpDraftDropOffPointTimetableResponseCalendar'; +/** + * + * @export + * @interface V1FbpDraftDropOffPointTimetableResponse + */ +export interface V1FbpDraftDropOffPointTimetableResponse { + /** + * Расписание работы drop-off пункта. + * @type {Array} + * @memberof V1FbpDraftDropOffPointTimetableResponse + */ + calendar?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponse(value: object): value is V1FbpDraftDropOffPointTimetableResponse; +export declare function V1FbpDraftDropOffPointTimetableResponseFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponse; +export declare function V1FbpDraftDropOffPointTimetableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponse; +export declare function V1FbpDraftDropOffPointTimetableResponseToJSON(value?: V1FbpDraftDropOffPointTimetableResponse | null): any; diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponse.js b/dist/models/V1FbpDraftDropOffPointTimetableResponse.js new file mode 100644 index 0000000..b67d9e7 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffPointTimetableResponse = instanceOfV1FbpDraftDropOffPointTimetableResponse; +exports.V1FbpDraftDropOffPointTimetableResponseFromJSON = V1FbpDraftDropOffPointTimetableResponseFromJSON; +exports.V1FbpDraftDropOffPointTimetableResponseFromJSONTyped = V1FbpDraftDropOffPointTimetableResponseFromJSONTyped; +exports.V1FbpDraftDropOffPointTimetableResponseToJSON = V1FbpDraftDropOffPointTimetableResponseToJSON; +const V1FbpDraftDropOffPointTimetableResponseCalendar_1 = require("./V1FbpDraftDropOffPointTimetableResponseCalendar"); +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponse interface. + */ +function instanceOfV1FbpDraftDropOffPointTimetableResponse(value) { + return true; +} +function V1FbpDraftDropOffPointTimetableResponseFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseFromJSONTyped(json, false); +} +function V1FbpDraftDropOffPointTimetableResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calendar': json['calendar'] == null ? undefined : (json['calendar'].map(V1FbpDraftDropOffPointTimetableResponseCalendar_1.V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON)), + }; +} +function V1FbpDraftDropOffPointTimetableResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'calendar': value['calendar'] == null ? undefined : (value['calendar'].map(V1FbpDraftDropOffPointTimetableResponseCalendar_1.V1FbpDraftDropOffPointTimetableResponseCalendarToJSON)), + }; +} diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendar.d.ts b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendar.d.ts new file mode 100644 index 0000000..903abed --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendar.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DayOfWeek } from './V1DayOfWeek'; +import type { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem'; +/** + * + * @export + * @interface V1FbpDraftDropOffPointTimetableResponseCalendar + */ +export interface V1FbpDraftDropOffPointTimetableResponseCalendar { + /** + * + * @type {V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendar + */ + calendar_item?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; + /** + * + * @type {V1DayOfWeek} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendar + */ + day_of_week?: V1DayOfWeek; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendar interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendar(value: object): value is V1FbpDraftDropOffPointTimetableResponseCalendar; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponseCalendar; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponseCalendar; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarToJSON(value?: V1FbpDraftDropOffPointTimetableResponseCalendar | null): any; diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendar.js b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendar.js new file mode 100644 index 0000000..ade9aac --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendar.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffPointTimetableResponseCalendar = instanceOfV1FbpDraftDropOffPointTimetableResponseCalendar; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON = V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarFromJSONTyped = V1FbpDraftDropOffPointTimetableResponseCalendarFromJSONTyped; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarToJSON = V1FbpDraftDropOffPointTimetableResponseCalendarToJSON; +const V1DayOfWeek_1 = require("./V1DayOfWeek"); +const V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem_1 = require("./V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem"); +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendar interface. + */ +function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendar(value) { + return true; +} +function V1FbpDraftDropOffPointTimetableResponseCalendarFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseCalendarFromJSONTyped(json, false); +} +function V1FbpDraftDropOffPointTimetableResponseCalendarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calendar_item': json['calendar_item'] == null ? undefined : (0, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem_1.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON)(json['calendar_item']), + 'day_of_week': json['day_of_week'] == null ? undefined : (0, V1DayOfWeek_1.V1DayOfWeekFromJSON)(json['day_of_week']), + }; +} +function V1FbpDraftDropOffPointTimetableResponseCalendarToJSON(value) { + if (value == null) { + return value; + } + return { + 'calendar_item': (0, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem_1.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON)(value['calendar_item']), + 'day_of_week': (0, V1DayOfWeek_1.V1DayOfWeekToJSON)(value['day_of_week']), + }; +} diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.d.ts b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.d.ts new file mode 100644 index 0000000..06341d5 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening'; +import type { V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime } from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime'; +/** + * Расписание работы. + * @export + * @interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem + */ +export interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem { + /** + * + * @type {V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem + */ + break_hours?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; + /** + * `true`, если праздничный день. + * + * @type {boolean} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem + */ + is_holiday?: boolean; + /** + * + * @type {V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem + */ + opening_hours?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem(value: object): value is V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON(value?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem | null): any; diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.js b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.js new file mode 100644 index 0000000..cb973b1 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem = instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSONTyped = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSONTyped; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON; +const V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening_1 = require("./V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening"); +const V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime_1 = require("./V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime"); +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem interface. + */ +function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem(value) { + return true; +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSONTyped(json, false); +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'break_hours': json['break_hours'] == null ? undefined : (0, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime_1.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON)(json['break_hours']), + 'is_holiday': json['is_holiday'] == null ? undefined : json['is_holiday'], + 'opening_hours': json['opening_hours'] == null ? undefined : (0, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening_1.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON)(json['opening_hours']), + }; +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'break_hours': (0, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime_1.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON)(value['break_hours']), + 'is_holiday': value['is_holiday'], + 'opening_hours': (0, V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening_1.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON)(value['opening_hours']), + }; +} diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts new file mode 100644 index 0000000..8386ddf --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часы перерыва. + * @export + * @interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime + */ +export interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime { + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime + */ + timeslot_end?: string; + /** + * Время начала таймслота. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime(value: object): value is V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime | null): any; diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.js b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.js new file mode 100644 index 0000000..e79ccc0 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime = instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime interface. + */ +function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime(value) { + return true; +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json, false); +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.d.ts b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.d.ts new file mode 100644 index 0000000..d26d299 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часы работы. + * @export + * @interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening + */ +export interface V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening { + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening + */ + timeslot_end?: string; + /** + * Время начала таймслота. + * @type {string} + * @memberof V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening interface. + */ +export declare function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening(value: object): value is V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON(json: any): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +export declare function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON(value?: V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening | null): any; diff --git a/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.js b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.js new file mode 100644 index 0000000..737b977 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening = instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSONTyped = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSONTyped; +exports.V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON = V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening interface. + */ +function instanceOfV1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening(value) { + return true; +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSON(json) { + return V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSONTyped(json, false); +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +function V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpeningToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffProductValidateRequest.d.ts b/dist/models/V1FbpDraftDropOffProductValidateRequest.d.ts new file mode 100644 index 0000000..db26c65 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffProductValidateRequestSkuItem } from './V1FbpDraftDropOffProductValidateRequestSkuItem'; +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateRequest + */ +export interface V1FbpDraftDropOffProductValidateRequest { + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1FbpDraftDropOffProductValidateRequest + */ + skus: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateRequest(value: object): value is V1FbpDraftDropOffProductValidateRequest; +export declare function V1FbpDraftDropOffProductValidateRequestFromJSON(json: any): V1FbpDraftDropOffProductValidateRequest; +export declare function V1FbpDraftDropOffProductValidateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateRequest; +export declare function V1FbpDraftDropOffProductValidateRequestToJSON(value?: V1FbpDraftDropOffProductValidateRequest | null): any; diff --git a/dist/models/V1FbpDraftDropOffProductValidateRequest.js b/dist/models/V1FbpDraftDropOffProductValidateRequest.js new file mode 100644 index 0000000..25a0fa0 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffProductValidateRequest = instanceOfV1FbpDraftDropOffProductValidateRequest; +exports.V1FbpDraftDropOffProductValidateRequestFromJSON = V1FbpDraftDropOffProductValidateRequestFromJSON; +exports.V1FbpDraftDropOffProductValidateRequestFromJSONTyped = V1FbpDraftDropOffProductValidateRequestFromJSONTyped; +exports.V1FbpDraftDropOffProductValidateRequestToJSON = V1FbpDraftDropOffProductValidateRequestToJSON; +const V1FbpDraftDropOffProductValidateRequestSkuItem_1 = require("./V1FbpDraftDropOffProductValidateRequestSkuItem"); +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateRequest interface. + */ +function instanceOfV1FbpDraftDropOffProductValidateRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffProductValidateRequestFromJSON(json) { + return V1FbpDraftDropOffProductValidateRequestFromJSONTyped(json, false); +} +function V1FbpDraftDropOffProductValidateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': (json['skus'].map(V1FbpDraftDropOffProductValidateRequestSkuItem_1.V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON)), + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDropOffProductValidateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': (value['skus'].map(V1FbpDraftDropOffProductValidateRequestSkuItem_1.V1FbpDraftDropOffProductValidateRequestSkuItemToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffProductValidateRequestSkuItem.d.ts b/dist/models/V1FbpDraftDropOffProductValidateRequestSkuItem.d.ts new file mode 100644 index 0000000..e7b0f3f --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateRequestSkuItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateRequestSkuItem + */ +export interface V1FbpDraftDropOffProductValidateRequestSkuItem { + /** + * Количество. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateRequestSkuItem + */ + count: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateRequestSkuItem + */ + sku: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateRequestSkuItem interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateRequestSkuItem(value: object): value is V1FbpDraftDropOffProductValidateRequestSkuItem; +export declare function V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON(json: any): V1FbpDraftDropOffProductValidateRequestSkuItem; +export declare function V1FbpDraftDropOffProductValidateRequestSkuItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateRequestSkuItem; +export declare function V1FbpDraftDropOffProductValidateRequestSkuItemToJSON(value?: V1FbpDraftDropOffProductValidateRequestSkuItem | null): any; diff --git a/dist/models/V1FbpDraftDropOffProductValidateRequestSkuItem.js b/dist/models/V1FbpDraftDropOffProductValidateRequestSkuItem.js new file mode 100644 index 0000000..e44de42 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateRequestSkuItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffProductValidateRequestSkuItem = instanceOfV1FbpDraftDropOffProductValidateRequestSkuItem; +exports.V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON = V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON; +exports.V1FbpDraftDropOffProductValidateRequestSkuItemFromJSONTyped = V1FbpDraftDropOffProductValidateRequestSkuItemFromJSONTyped; +exports.V1FbpDraftDropOffProductValidateRequestSkuItemToJSON = V1FbpDraftDropOffProductValidateRequestSkuItemToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateRequestSkuItem interface. + */ +function instanceOfV1FbpDraftDropOffProductValidateRequestSkuItem(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffProductValidateRequestSkuItemFromJSON(json) { + return V1FbpDraftDropOffProductValidateRequestSkuItemFromJSONTyped(json, false); +} +function V1FbpDraftDropOffProductValidateRequestSkuItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'sku': json['sku'], + }; +} +function V1FbpDraftDropOffProductValidateRequestSkuItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffProductValidateResponse.d.ts b/dist/models/V1FbpDraftDropOffProductValidateResponse.d.ts new file mode 100644 index 0000000..03e349f --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffProductValidateResponseApprovedItem } from './V1FbpDraftDropOffProductValidateResponseApprovedItem'; +import type { V1FbpDraftDropOffProductValidateResponseRejectedItem } from './V1FbpDraftDropOffProductValidateResponseRejectedItem'; +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateResponse + */ +export interface V1FbpDraftDropOffProductValidateResponse { + /** + * Принятые товары. + * @type {Array} + * @memberof V1FbpDraftDropOffProductValidateResponse + */ + approved_items?: Array; + /** + * `true`, если создан товарный состав. + * + * @type {boolean} + * @memberof V1FbpDraftDropOffProductValidateResponse + */ + bundle_generated?: boolean; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponse + */ + bundle_id?: string; + /** + * Отклонённые товары. + * @type {Array} + * @memberof V1FbpDraftDropOffProductValidateResponse + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateResponse(value: object): value is V1FbpDraftDropOffProductValidateResponse; +export declare function V1FbpDraftDropOffProductValidateResponseFromJSON(json: any): V1FbpDraftDropOffProductValidateResponse; +export declare function V1FbpDraftDropOffProductValidateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateResponse; +export declare function V1FbpDraftDropOffProductValidateResponseToJSON(value?: V1FbpDraftDropOffProductValidateResponse | null): any; diff --git a/dist/models/V1FbpDraftDropOffProductValidateResponse.js b/dist/models/V1FbpDraftDropOffProductValidateResponse.js new file mode 100644 index 0000000..b93eee4 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffProductValidateResponse = instanceOfV1FbpDraftDropOffProductValidateResponse; +exports.V1FbpDraftDropOffProductValidateResponseFromJSON = V1FbpDraftDropOffProductValidateResponseFromJSON; +exports.V1FbpDraftDropOffProductValidateResponseFromJSONTyped = V1FbpDraftDropOffProductValidateResponseFromJSONTyped; +exports.V1FbpDraftDropOffProductValidateResponseToJSON = V1FbpDraftDropOffProductValidateResponseToJSON; +const V1FbpDraftDropOffProductValidateResponseApprovedItem_1 = require("./V1FbpDraftDropOffProductValidateResponseApprovedItem"); +const V1FbpDraftDropOffProductValidateResponseRejectedItem_1 = require("./V1FbpDraftDropOffProductValidateResponseRejectedItem"); +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponse interface. + */ +function instanceOfV1FbpDraftDropOffProductValidateResponse(value) { + return true; +} +function V1FbpDraftDropOffProductValidateResponseFromJSON(json) { + return V1FbpDraftDropOffProductValidateResponseFromJSONTyped(json, false); +} +function V1FbpDraftDropOffProductValidateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_items': json['approved_items'] == null ? undefined : (json['approved_items'].map(V1FbpDraftDropOffProductValidateResponseApprovedItem_1.V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON)), + 'bundle_generated': json['bundle_generated'] == null ? undefined : json['bundle_generated'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(V1FbpDraftDropOffProductValidateResponseRejectedItem_1.V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON)), + }; +} +function V1FbpDraftDropOffProductValidateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_items': value['approved_items'] == null ? undefined : (value['approved_items'].map(V1FbpDraftDropOffProductValidateResponseApprovedItem_1.V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON)), + 'bundle_generated': value['bundle_generated'], + 'bundle_id': value['bundle_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(V1FbpDraftDropOffProductValidateResponseRejectedItem_1.V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON)), + }; +} diff --git a/dist/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.d.ts b/dist/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.d.ts new file mode 100644 index 0000000..0c6e576 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateResponseApprovedItem + */ +export interface V1FbpDraftDropOffProductValidateResponseApprovedItem { + /** + * Штрихкод товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + icon_name?: string; + /** + * Название товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseApprovedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponseApprovedItem interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateResponseApprovedItem(value: object): value is V1FbpDraftDropOffProductValidateResponseApprovedItem; +export declare function V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON(json: any): V1FbpDraftDropOffProductValidateResponseApprovedItem; +export declare function V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateResponseApprovedItem; +export declare function V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON(value?: V1FbpDraftDropOffProductValidateResponseApprovedItem | null): any; diff --git a/dist/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.js b/dist/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.js new file mode 100644 index 0000000..a8b7772 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateResponseApprovedItem.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffProductValidateResponseApprovedItem = instanceOfV1FbpDraftDropOffProductValidateResponseApprovedItem; +exports.V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON = V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON; +exports.V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSONTyped = V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSONTyped; +exports.V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON = V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponseApprovedItem interface. + */ +function instanceOfV1FbpDraftDropOffProductValidateResponseApprovedItem(value) { + return true; +} +function V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSON(json) { + return V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSONTyped(json, false); +} +function V1FbpDraftDropOffProductValidateResponseApprovedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +function V1FbpDraftDropOffProductValidateResponseApprovedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.d.ts b/dist/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.d.ts new file mode 100644 index 0000000..caa955f --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftDropOffProductValidateResponseRejectedItem + */ +export interface V1FbpDraftDropOffProductValidateResponseRejectedItem { + /** + * Штрихкод товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + icon_name?: string; + /** + * Название товара. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + quantity?: number; + /** + * Причины отказа в приёмке: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товара нет в ассортименте поставки; + * - `INVALID` — неверный статус; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — штрихкод не указан; + * - `MULTIPLICITY` — количество товара не кратно упаковке; + * - `NO_PRICE` — цена не указана; + * - `BANNED` — товар заблокирован; + * - `ZERO_QUANTITY` — количество товара не может быть 0; + * - `QUANTITY_GREATER_THEN_MAX` — превышено максимальное количество товара для одного SKU; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + rejection_reasons?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftDropOffProductValidateResponseRejectedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponseRejectedItem interface. + */ +export declare function instanceOfV1FbpDraftDropOffProductValidateResponseRejectedItem(value: object): value is V1FbpDraftDropOffProductValidateResponseRejectedItem; +export declare function V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON(json: any): V1FbpDraftDropOffProductValidateResponseRejectedItem; +export declare function V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProductValidateResponseRejectedItem; +export declare function V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON(value?: V1FbpDraftDropOffProductValidateResponseRejectedItem | null): any; diff --git a/dist/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.js b/dist/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.js new file mode 100644 index 0000000..f29b616 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProductValidateResponseRejectedItem.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffProductValidateResponseRejectedItem = instanceOfV1FbpDraftDropOffProductValidateResponseRejectedItem; +exports.V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON = V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON; +exports.V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSONTyped = V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSONTyped; +exports.V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON = V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON; +const V1BundleItemErrorEnum_1 = require("./V1BundleItemErrorEnum"); +/** + * Check if a given object implements the V1FbpDraftDropOffProductValidateResponseRejectedItem interface. + */ +function instanceOfV1FbpDraftDropOffProductValidateResponseRejectedItem(value) { + return true; +} +function V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSON(json) { + return V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSONTyped(json, false); +} +function V1FbpDraftDropOffProductValidateResponseRejectedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rejection_reasons': json['rejection_reasons'] == null ? undefined : (json['rejection_reasons'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +function V1FbpDraftDropOffProductValidateResponseRejectedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'rejection_reasons': value['rejection_reasons'] == null ? undefined : (value['rejection_reasons'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffProvinceListRequest.d.ts b/dist/models/V1FbpDraftDropOffProvinceListRequest.d.ts new file mode 100644 index 0000000..ff2376c --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProvinceListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffProvinceListRequest + */ +export interface V1FbpDraftDropOffProvinceListRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftDropOffProvinceListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProvinceListRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffProvinceListRequest(value: object): value is V1FbpDraftDropOffProvinceListRequest; +export declare function V1FbpDraftDropOffProvinceListRequestFromJSON(json: any): V1FbpDraftDropOffProvinceListRequest; +export declare function V1FbpDraftDropOffProvinceListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProvinceListRequest; +export declare function V1FbpDraftDropOffProvinceListRequestToJSON(value?: V1FbpDraftDropOffProvinceListRequest | null): any; diff --git a/dist/models/V1FbpDraftDropOffProvinceListRequest.js b/dist/models/V1FbpDraftDropOffProvinceListRequest.js new file mode 100644 index 0000000..373d088 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProvinceListRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffProvinceListRequest = instanceOfV1FbpDraftDropOffProvinceListRequest; +exports.V1FbpDraftDropOffProvinceListRequestFromJSON = V1FbpDraftDropOffProvinceListRequestFromJSON; +exports.V1FbpDraftDropOffProvinceListRequestFromJSONTyped = V1FbpDraftDropOffProvinceListRequestFromJSONTyped; +exports.V1FbpDraftDropOffProvinceListRequestToJSON = V1FbpDraftDropOffProvinceListRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffProvinceListRequest interface. + */ +function instanceOfV1FbpDraftDropOffProvinceListRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffProvinceListRequestFromJSON(json) { + return V1FbpDraftDropOffProvinceListRequestFromJSONTyped(json, false); +} +function V1FbpDraftDropOffProvinceListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftDropOffProvinceListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffProvinceListResponse.d.ts b/dist/models/V1FbpDraftDropOffProvinceListResponse.d.ts new file mode 100644 index 0000000..cdb37c1 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProvinceListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpDraftDropOffProvinceListResponseProvince } from './FbpDraftDropOffProvinceListResponseProvince'; +/** + * + * @export + * @interface V1FbpDraftDropOffProvinceListResponse + */ +export interface V1FbpDraftDropOffProvinceListResponse { + /** + * Список провинций. + * @type {Array} + * @memberof V1FbpDraftDropOffProvinceListResponse + */ + provinces?: Array; +} +/** + * Check if a given object implements the V1FbpDraftDropOffProvinceListResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffProvinceListResponse(value: object): value is V1FbpDraftDropOffProvinceListResponse; +export declare function V1FbpDraftDropOffProvinceListResponseFromJSON(json: any): V1FbpDraftDropOffProvinceListResponse; +export declare function V1FbpDraftDropOffProvinceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffProvinceListResponse; +export declare function V1FbpDraftDropOffProvinceListResponseToJSON(value?: V1FbpDraftDropOffProvinceListResponse | null): any; diff --git a/dist/models/V1FbpDraftDropOffProvinceListResponse.js b/dist/models/V1FbpDraftDropOffProvinceListResponse.js new file mode 100644 index 0000000..8a08d56 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffProvinceListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffProvinceListResponse = instanceOfV1FbpDraftDropOffProvinceListResponse; +exports.V1FbpDraftDropOffProvinceListResponseFromJSON = V1FbpDraftDropOffProvinceListResponseFromJSON; +exports.V1FbpDraftDropOffProvinceListResponseFromJSONTyped = V1FbpDraftDropOffProvinceListResponseFromJSONTyped; +exports.V1FbpDraftDropOffProvinceListResponseToJSON = V1FbpDraftDropOffProvinceListResponseToJSON; +const FbpDraftDropOffProvinceListResponseProvince_1 = require("./FbpDraftDropOffProvinceListResponseProvince"); +/** + * Check if a given object implements the V1FbpDraftDropOffProvinceListResponse interface. + */ +function instanceOfV1FbpDraftDropOffProvinceListResponse(value) { + return true; +} +function V1FbpDraftDropOffProvinceListResponseFromJSON(json) { + return V1FbpDraftDropOffProvinceListResponseFromJSONTyped(json, false); +} +function V1FbpDraftDropOffProvinceListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'provinces': json['provinces'] == null ? undefined : (json['provinces'].map(FbpDraftDropOffProvinceListResponseProvince_1.FbpDraftDropOffProvinceListResponseProvinceFromJSON)), + }; +} +function V1FbpDraftDropOffProvinceListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'provinces': value['provinces'] == null ? undefined : (value['provinces'].map(FbpDraftDropOffProvinceListResponseProvince_1.FbpDraftDropOffProvinceListResponseProvinceToJSON)), + }; +} diff --git a/dist/models/V1FbpDraftDropOffRegistrateRequest.d.ts b/dist/models/V1FbpDraftDropOffRegistrateRequest.d.ts new file mode 100644 index 0000000..ea6541e --- /dev/null +++ b/dist/models/V1FbpDraftDropOffRegistrateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftDropOffRegistrateRequest + */ +export interface V1FbpDraftDropOffRegistrateRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffRegistrateRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftDropOffRegistrateRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateRequest interface. + */ +export declare function instanceOfV1FbpDraftDropOffRegistrateRequest(value: object): value is V1FbpDraftDropOffRegistrateRequest; +export declare function V1FbpDraftDropOffRegistrateRequestFromJSON(json: any): V1FbpDraftDropOffRegistrateRequest; +export declare function V1FbpDraftDropOffRegistrateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffRegistrateRequest; +export declare function V1FbpDraftDropOffRegistrateRequestToJSON(value?: V1FbpDraftDropOffRegistrateRequest | null): any; diff --git a/dist/models/V1FbpDraftDropOffRegistrateRequest.js b/dist/models/V1FbpDraftDropOffRegistrateRequest.js new file mode 100644 index 0000000..dbb40bd --- /dev/null +++ b/dist/models/V1FbpDraftDropOffRegistrateRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffRegistrateRequest = instanceOfV1FbpDraftDropOffRegistrateRequest; +exports.V1FbpDraftDropOffRegistrateRequestFromJSON = V1FbpDraftDropOffRegistrateRequestFromJSON; +exports.V1FbpDraftDropOffRegistrateRequestFromJSONTyped = V1FbpDraftDropOffRegistrateRequestFromJSONTyped; +exports.V1FbpDraftDropOffRegistrateRequestToJSON = V1FbpDraftDropOffRegistrateRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateRequest interface. + */ +function instanceOfV1FbpDraftDropOffRegistrateRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftDropOffRegistrateRequestFromJSON(json) { + return V1FbpDraftDropOffRegistrateRequestFromJSONTyped(json, false); +} +function V1FbpDraftDropOffRegistrateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftDropOffRegistrateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffRegistrateResponse.d.ts b/dist/models/V1FbpDraftDropOffRegistrateResponse.d.ts new file mode 100644 index 0000000..940ecd3 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffRegistrateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffRegistrateResponseRegistrationError } from './V1FbpDraftDropOffRegistrateResponseRegistrationError'; +/** + * + * @export + * @interface V1FbpDraftDropOffRegistrateResponse + */ +export interface V1FbpDraftDropOffRegistrateResponse { + /** + * + * @type {V1FbpDraftDropOffRegistrateResponseRegistrationError} + * @memberof V1FbpDraftDropOffRegistrateResponse + */ + error?: V1FbpDraftDropOffRegistrateResponseRegistrationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpDraftDropOffRegistrateResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftDropOffRegistrateResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponse interface. + */ +export declare function instanceOfV1FbpDraftDropOffRegistrateResponse(value: object): value is V1FbpDraftDropOffRegistrateResponse; +export declare function V1FbpDraftDropOffRegistrateResponseFromJSON(json: any): V1FbpDraftDropOffRegistrateResponse; +export declare function V1FbpDraftDropOffRegistrateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffRegistrateResponse; +export declare function V1FbpDraftDropOffRegistrateResponseToJSON(value?: V1FbpDraftDropOffRegistrateResponse | null): any; diff --git a/dist/models/V1FbpDraftDropOffRegistrateResponse.js b/dist/models/V1FbpDraftDropOffRegistrateResponse.js new file mode 100644 index 0000000..4c9d3a5 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffRegistrateResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffRegistrateResponse = instanceOfV1FbpDraftDropOffRegistrateResponse; +exports.V1FbpDraftDropOffRegistrateResponseFromJSON = V1FbpDraftDropOffRegistrateResponseFromJSON; +exports.V1FbpDraftDropOffRegistrateResponseFromJSONTyped = V1FbpDraftDropOffRegistrateResponseFromJSONTyped; +exports.V1FbpDraftDropOffRegistrateResponseToJSON = V1FbpDraftDropOffRegistrateResponseToJSON; +const V1FbpDraftDropOffRegistrateResponseRegistrationError_1 = require("./V1FbpDraftDropOffRegistrateResponseRegistrationError"); +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponse interface. + */ +function instanceOfV1FbpDraftDropOffRegistrateResponse(value) { + return true; +} +function V1FbpDraftDropOffRegistrateResponseFromJSON(json) { + return V1FbpDraftDropOffRegistrateResponseFromJSONTyped(json, false); +} +function V1FbpDraftDropOffRegistrateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1FbpDraftDropOffRegistrateResponseRegistrationError_1.V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftDropOffRegistrateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1FbpDraftDropOffRegistrateResponseRegistrationError_1.V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.d.ts b/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.d.ts new file mode 100644 index 0000000..0449b28 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError } from './V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError'; +import type { V1OrderErrorTypeEnum } from './V1OrderErrorTypeEnum'; +/** + * Ошибка. + * @export + * @interface V1FbpDraftDropOffRegistrateResponseRegistrationError + */ +export interface V1FbpDraftDropOffRegistrateResponseRegistrationError { + /** + * Ошибки провалидированного списка товаров. + * @type {Array} + * @memberof V1FbpDraftDropOffRegistrateResponseRegistrationError + */ + bundle_errors?: Array; + /** + * + * @type {V1OrderErrorTypeEnum} + * @memberof V1FbpDraftDropOffRegistrateResponseRegistrationError + */ + order_error?: V1OrderErrorTypeEnum; +} +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponseRegistrationError interface. + */ +export declare function instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationError(value: object): value is V1FbpDraftDropOffRegistrateResponseRegistrationError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON(json: any): V1FbpDraftDropOffRegistrateResponseRegistrationError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffRegistrateResponseRegistrationError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON(value?: V1FbpDraftDropOffRegistrateResponseRegistrationError | null): any; diff --git a/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.js b/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.js new file mode 100644 index 0000000..a1cd316 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationError.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationError = instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationError; +exports.V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON = V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON; +exports.V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSONTyped = V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSONTyped; +exports.V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON = V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON; +const V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError_1 = require("./V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError"); +const V1OrderErrorTypeEnum_1 = require("./V1OrderErrorTypeEnum"); +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponseRegistrationError interface. + */ +function instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationError(value) { + return true; +} +function V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSON(json) { + return V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSONTyped(json, false); +} +function V1FbpDraftDropOffRegistrateResponseRegistrationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_errors': json['bundle_errors'] == null ? undefined : (json['bundle_errors'].map(V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError_1.V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON)), + 'order_error': json['order_error'] == null ? undefined : (0, V1OrderErrorTypeEnum_1.V1OrderErrorTypeEnumFromJSON)(json['order_error']), + }; +} +function V1FbpDraftDropOffRegistrateResponseRegistrationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_errors': value['bundle_errors'] == null ? undefined : (value['bundle_errors'].map(V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError_1.V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON)), + 'order_error': (0, V1OrderErrorTypeEnum_1.V1OrderErrorTypeEnumToJSON)(value['order_error']), + }; +} diff --git a/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.d.ts b/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.d.ts new file mode 100644 index 0000000..2a46c1c --- /dev/null +++ b/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError + */ +export interface V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError { + /** + * Ошибки: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товара нет в ассортименте поставки; + * - `INVALID` — неверный статус; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — штрихкод не указан; + * - `MULTIPLICITY`— количество товара не кратно упаковке; + * - `NO_PRICE` — цена не указана; + * - `BANNED` — товар заблокирован; + * - `ZERO_QUANTITY` — количество товара не может быть 0; + * - `QUANTITY_GREATER_THEN_MAX` — превышено максимальное количество товара для одного SKU; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError + */ + errors?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError + */ + sku?: number; +} +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError interface. + */ +export declare function instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError(value: object): value is V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON(json: any): V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON(value?: V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError | null): any; diff --git a/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.js b/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.js new file mode 100644 index 0000000..1ee4133 --- /dev/null +++ b/dist/models/V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError = instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError; +exports.V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON = V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON; +exports.V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped = V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped; +exports.V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON = V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON; +const V1BundleItemErrorEnum_1 = require("./V1BundleItemErrorEnum"); +/** + * Check if a given object implements the V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError interface. + */ +function instanceOfV1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError(value) { + return true; +} +function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSON(json) { + return V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, false); +} +function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1FbpDraftGetRequest.d.ts b/dist/models/V1FbpDraftGetRequest.d.ts new file mode 100644 index 0000000..e820f1b --- /dev/null +++ b/dist/models/V1FbpDraftGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftGetRequest + */ +export interface V1FbpDraftGetRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftGetRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftGetRequest interface. + */ +export declare function instanceOfV1FbpDraftGetRequest(value: object): value is V1FbpDraftGetRequest; +export declare function V1FbpDraftGetRequestFromJSON(json: any): V1FbpDraftGetRequest; +export declare function V1FbpDraftGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftGetRequest; +export declare function V1FbpDraftGetRequestToJSON(value?: V1FbpDraftGetRequest | null): any; diff --git a/dist/models/V1FbpDraftGetRequest.js b/dist/models/V1FbpDraftGetRequest.js new file mode 100644 index 0000000..745c894 --- /dev/null +++ b/dist/models/V1FbpDraftGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftGetRequest = instanceOfV1FbpDraftGetRequest; +exports.V1FbpDraftGetRequestFromJSON = V1FbpDraftGetRequestFromJSON; +exports.V1FbpDraftGetRequestFromJSONTyped = V1FbpDraftGetRequestFromJSONTyped; +exports.V1FbpDraftGetRequestToJSON = V1FbpDraftGetRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftGetRequest interface. + */ +function instanceOfV1FbpDraftGetRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftGetRequestFromJSON(json) { + return V1FbpDraftGetRequestFromJSONTyped(json, false); +} +function V1FbpDraftGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftGetResponse.d.ts b/dist/models/V1FbpDraftGetResponse.d.ts new file mode 100644 index 0000000..fcdcdf9 --- /dev/null +++ b/dist/models/V1FbpDraftGetResponse.d.ts @@ -0,0 +1,136 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftStatusEnum } from './V1DraftStatusEnum'; +import type { V1CancellationState } from './V1CancellationState'; +import type { V1fbpDeliveryDetails } from './V1fbpDeliveryDetails'; +import type { FbpDraftGetResponseDeclineReason } from './FbpDraftGetResponseDeclineReason'; +/** + * + * @export + * @interface V1FbpDraftGetResponse + */ +export interface V1FbpDraftGetResponse { + /** + * Идентификатор списка провалидированных товаров. + * @type {string} + * @memberof V1FbpDraftGetResponse + */ + bundle_id?: string; + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftGetResponse + */ + cancellation_state?: V1CancellationState; + /** + * Дата создания черновика. + * @type {string} + * @memberof V1FbpDraftGetResponse + */ + created_at?: string; + /** + * + * @type {FbpDraftGetResponseDeclineReason} + * @memberof V1FbpDraftGetResponse + */ + decline_reason?: FbpDraftGetResponseDeclineReason; + /** + * Дата удаления черновика. + * @type {string} + * @memberof V1FbpDraftGetResponse + */ + deleted_at?: string; + /** + * + * @type {V1fbpDeliveryDetails} + * @memberof V1FbpDraftGetResponse + */ + delivery_details?: V1fbpDeliveryDetails; + /** + * `true`, если черновик можно изменить. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + editable?: boolean; + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftGetResponse + */ + id?: number; + /** + * `true`, если черновик можно отменить. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + is_cancelable?: boolean; + /** + * `true`, если черновик можно удалить. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + is_deletable?: boolean; + /** + * `true`, если доступна регистрация. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + is_registration_available?: boolean; + /** + * `true`, если черновик заблокирован. + * + * @type {boolean} + * @memberof V1FbpDraftGetResponse + */ + locked?: boolean; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftGetResponse + */ + package_units_count?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftGetResponse + */ + row_version?: number; + /** + * + * @type {V1DraftStatusEnum} + * @memberof V1FbpDraftGetResponse + */ + status?: V1DraftStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftGetResponse + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpDraftGetResponse interface. + */ +export declare function instanceOfV1FbpDraftGetResponse(value: object): value is V1FbpDraftGetResponse; +export declare function V1FbpDraftGetResponseFromJSON(json: any): V1FbpDraftGetResponse; +export declare function V1FbpDraftGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftGetResponse; +export declare function V1FbpDraftGetResponseToJSON(value?: V1FbpDraftGetResponse | null): any; diff --git a/dist/models/V1FbpDraftGetResponse.js b/dist/models/V1FbpDraftGetResponse.js new file mode 100644 index 0000000..1ace241 --- /dev/null +++ b/dist/models/V1FbpDraftGetResponse.js @@ -0,0 +1,80 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftGetResponse = instanceOfV1FbpDraftGetResponse; +exports.V1FbpDraftGetResponseFromJSON = V1FbpDraftGetResponseFromJSON; +exports.V1FbpDraftGetResponseFromJSONTyped = V1FbpDraftGetResponseFromJSONTyped; +exports.V1FbpDraftGetResponseToJSON = V1FbpDraftGetResponseToJSON; +const V1DraftStatusEnum_1 = require("./V1DraftStatusEnum"); +const V1CancellationState_1 = require("./V1CancellationState"); +const V1fbpDeliveryDetails_1 = require("./V1fbpDeliveryDetails"); +const FbpDraftGetResponseDeclineReason_1 = require("./FbpDraftGetResponseDeclineReason"); +/** + * Check if a given object implements the V1FbpDraftGetResponse interface. + */ +function instanceOfV1FbpDraftGetResponse(value) { + return true; +} +function V1FbpDraftGetResponseFromJSON(json) { + return V1FbpDraftGetResponseFromJSONTyped(json, false); +} +function V1FbpDraftGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cancellation_state': json['cancellation_state'] == null ? undefined : (0, V1CancellationState_1.V1CancellationStateFromJSON)(json['cancellation_state']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'decline_reason': json['decline_reason'] == null ? undefined : (0, FbpDraftGetResponseDeclineReason_1.FbpDraftGetResponseDeclineReasonFromJSON)(json['decline_reason']), + 'deleted_at': json['deleted_at'] == null ? undefined : json['deleted_at'], + 'delivery_details': json['delivery_details'] == null ? undefined : (0, V1fbpDeliveryDetails_1.V1fbpDeliveryDetailsFromJSON)(json['delivery_details']), + 'editable': json['editable'] == null ? undefined : json['editable'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_cancelable': json['is_cancelable'] == null ? undefined : json['is_cancelable'], + 'is_deletable': json['is_deletable'] == null ? undefined : json['is_deletable'], + 'is_registration_available': json['is_registration_available'] == null ? undefined : json['is_registration_available'], + 'locked': json['locked'] == null ? undefined : json['locked'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'status': json['status'] == null ? undefined : (0, V1DraftStatusEnum_1.V1DraftStatusEnumFromJSON)(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V1FbpDraftGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cancellation_state': (0, V1CancellationState_1.V1CancellationStateToJSON)(value['cancellation_state']), + 'created_at': value['created_at'], + 'decline_reason': (0, FbpDraftGetResponseDeclineReason_1.FbpDraftGetResponseDeclineReasonToJSON)(value['decline_reason']), + 'deleted_at': value['deleted_at'], + 'delivery_details': (0, V1fbpDeliveryDetails_1.V1fbpDeliveryDetailsToJSON)(value['delivery_details']), + 'editable': value['editable'], + 'id': value['id'], + 'is_cancelable': value['is_cancelable'], + 'is_deletable': value['is_deletable'], + 'is_registration_available': value['is_registration_available'], + 'locked': value['locked'], + 'package_units_count': value['package_units_count'], + 'row_version': value['row_version'], + 'status': (0, V1DraftStatusEnum_1.V1DraftStatusEnumToJSON)(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftListRequest.d.ts b/dist/models/V1FbpDraftListRequest.d.ts new file mode 100644 index 0000000..afeb7c1 --- /dev/null +++ b/dist/models/V1FbpDraftListRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftListRequest + */ +export interface V1FbpDraftListRequest { + /** + * Количество элементов в ответе. + * @type {number} + * @memberof V1FbpDraftListRequest + */ + count: number; + /** + * Идентификатор последнего значения на странице. Оставьте это поле пустым при выполнении первого запроса. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {number} + * @memberof V1FbpDraftListRequest + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpDraftListRequest interface. + */ +export declare function instanceOfV1FbpDraftListRequest(value: object): value is V1FbpDraftListRequest; +export declare function V1FbpDraftListRequestFromJSON(json: any): V1FbpDraftListRequest; +export declare function V1FbpDraftListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftListRequest; +export declare function V1FbpDraftListRequestToJSON(value?: V1FbpDraftListRequest | null): any; diff --git a/dist/models/V1FbpDraftListRequest.js b/dist/models/V1FbpDraftListRequest.js new file mode 100644 index 0000000..f9ad9cc --- /dev/null +++ b/dist/models/V1FbpDraftListRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftListRequest = instanceOfV1FbpDraftListRequest; +exports.V1FbpDraftListRequestFromJSON = V1FbpDraftListRequestFromJSON; +exports.V1FbpDraftListRequestFromJSONTyped = V1FbpDraftListRequestFromJSONTyped; +exports.V1FbpDraftListRequestToJSON = V1FbpDraftListRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftListRequest interface. + */ +function instanceOfV1FbpDraftListRequest(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + return true; +} +function V1FbpDraftListRequestFromJSON(json) { + return V1FbpDraftListRequestFromJSONTyped(json, false); +} +function V1FbpDraftListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1FbpDraftListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1FbpDraftListResponse.d.ts b/dist/models/V1FbpDraftListResponse.d.ts new file mode 100644 index 0000000..cdfe531 --- /dev/null +++ b/dist/models/V1FbpDraftListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftListResponseItem } from './V1FbpDraftListResponseItem'; +/** + * + * @export + * @interface V1FbpDraftListResponse + */ +export interface V1FbpDraftListResponse { + /** + * `true`, если в ответе вернулись не все значения. + * + * @type {boolean} + * @memberof V1FbpDraftListResponse + */ + has_next?: boolean; + /** + * Черновики. + * @type {Array} + * @memberof V1FbpDraftListResponse + */ + items?: Array; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1FbpDraftListResponse + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpDraftListResponse interface. + */ +export declare function instanceOfV1FbpDraftListResponse(value: object): value is V1FbpDraftListResponse; +export declare function V1FbpDraftListResponseFromJSON(json: any): V1FbpDraftListResponse; +export declare function V1FbpDraftListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftListResponse; +export declare function V1FbpDraftListResponseToJSON(value?: V1FbpDraftListResponse | null): any; diff --git a/dist/models/V1FbpDraftListResponse.js b/dist/models/V1FbpDraftListResponse.js new file mode 100644 index 0000000..d2dbcb2 --- /dev/null +++ b/dist/models/V1FbpDraftListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftListResponse = instanceOfV1FbpDraftListResponse; +exports.V1FbpDraftListResponseFromJSON = V1FbpDraftListResponseFromJSON; +exports.V1FbpDraftListResponseFromJSONTyped = V1FbpDraftListResponseFromJSONTyped; +exports.V1FbpDraftListResponseToJSON = V1FbpDraftListResponseToJSON; +const V1FbpDraftListResponseItem_1 = require("./V1FbpDraftListResponseItem"); +/** + * Check if a given object implements the V1FbpDraftListResponse interface. + */ +function instanceOfV1FbpDraftListResponse(value) { + return true; +} +function V1FbpDraftListResponseFromJSON(json) { + return V1FbpDraftListResponseFromJSONTyped(json, false); +} +function V1FbpDraftListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'items': json['items'] == null ? undefined : (json['items'].map(V1FbpDraftListResponseItem_1.V1FbpDraftListResponseItemFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1FbpDraftListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'items': value['items'] == null ? undefined : (value['items'].map(V1FbpDraftListResponseItem_1.V1FbpDraftListResponseItemToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1FbpDraftListResponseItem.d.ts b/dist/models/V1FbpDraftListResponseItem.d.ts new file mode 100644 index 0000000..05bf892 --- /dev/null +++ b/dist/models/V1FbpDraftListResponseItem.d.ts @@ -0,0 +1,116 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DraftStatusEnum } from './V1DraftStatusEnum'; +import type { V1CancellationState } from './V1CancellationState'; +import type { V1fbpDeliveryDetails } from './V1fbpDeliveryDetails'; +/** + * + * @export + * @interface V1FbpDraftListResponseItem + */ +export interface V1FbpDraftListResponseItem { + /** + * Идентификатор списка провалидированных товаров. + * @type {string} + * @memberof V1FbpDraftListResponseItem + */ + bundle_id?: string; + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftListResponseItem + */ + cancellation_state?: V1CancellationState; + /** + * Дата создания черновика. + * @type {string} + * @memberof V1FbpDraftListResponseItem + */ + created_at?: string; + /** + * Дата удаления черновика. + * @type {string} + * @memberof V1FbpDraftListResponseItem + */ + deleted_at?: string; + /** + * + * @type {V1fbpDeliveryDetails} + * @memberof V1FbpDraftListResponseItem + */ + delivery_details?: V1fbpDeliveryDetails; + /** + * `true`, если черновик можно изменить. + * + * @type {boolean} + * @memberof V1FbpDraftListResponseItem + */ + editable?: boolean; + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpDraftListResponseItem + */ + id?: number; + /** + * `true`, если черновик можно отменить. + * + * @type {boolean} + * @memberof V1FbpDraftListResponseItem + */ + is_cancelable?: boolean; + /** + * `true`, если черновик можно удалить. + * + * @type {boolean} + * @memberof V1FbpDraftListResponseItem + */ + is_deletable?: boolean; + /** + * `true`, если черновик заблокирован. + * + * @type {boolean} + * @memberof V1FbpDraftListResponseItem + */ + locked?: boolean; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftListResponseItem + */ + package_units_count?: number; + /** + * + * @type {V1DraftStatusEnum} + * @memberof V1FbpDraftListResponseItem + */ + status?: V1DraftStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftListResponseItem + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftListResponseItem + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpDraftListResponseItem interface. + */ +export declare function instanceOfV1FbpDraftListResponseItem(value: object): value is V1FbpDraftListResponseItem; +export declare function V1FbpDraftListResponseItemFromJSON(json: any): V1FbpDraftListResponseItem; +export declare function V1FbpDraftListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftListResponseItem; +export declare function V1FbpDraftListResponseItemToJSON(value?: V1FbpDraftListResponseItem | null): any; diff --git a/dist/models/V1FbpDraftListResponseItem.js b/dist/models/V1FbpDraftListResponseItem.js new file mode 100644 index 0000000..11a27c2 --- /dev/null +++ b/dist/models/V1FbpDraftListResponseItem.js @@ -0,0 +1,73 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftListResponseItem = instanceOfV1FbpDraftListResponseItem; +exports.V1FbpDraftListResponseItemFromJSON = V1FbpDraftListResponseItemFromJSON; +exports.V1FbpDraftListResponseItemFromJSONTyped = V1FbpDraftListResponseItemFromJSONTyped; +exports.V1FbpDraftListResponseItemToJSON = V1FbpDraftListResponseItemToJSON; +const V1DraftStatusEnum_1 = require("./V1DraftStatusEnum"); +const V1CancellationState_1 = require("./V1CancellationState"); +const V1fbpDeliveryDetails_1 = require("./V1fbpDeliveryDetails"); +/** + * Check if a given object implements the V1FbpDraftListResponseItem interface. + */ +function instanceOfV1FbpDraftListResponseItem(value) { + return true; +} +function V1FbpDraftListResponseItemFromJSON(json) { + return V1FbpDraftListResponseItemFromJSONTyped(json, false); +} +function V1FbpDraftListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'cancellation_state': json['cancellation_state'] == null ? undefined : (0, V1CancellationState_1.V1CancellationStateFromJSON)(json['cancellation_state']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'deleted_at': json['deleted_at'] == null ? undefined : json['deleted_at'], + 'delivery_details': json['delivery_details'] == null ? undefined : (0, V1fbpDeliveryDetails_1.V1fbpDeliveryDetailsFromJSON)(json['delivery_details']), + 'editable': json['editable'] == null ? undefined : json['editable'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_cancelable': json['is_cancelable'] == null ? undefined : json['is_cancelable'], + 'is_deletable': json['is_deletable'] == null ? undefined : json['is_deletable'], + 'locked': json['locked'] == null ? undefined : json['locked'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'status': json['status'] == null ? undefined : (0, V1DraftStatusEnum_1.V1DraftStatusEnumFromJSON)(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V1FbpDraftListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'cancellation_state': (0, V1CancellationState_1.V1CancellationStateToJSON)(value['cancellation_state']), + 'created_at': value['created_at'], + 'deleted_at': value['deleted_at'], + 'delivery_details': (0, V1fbpDeliveryDetails_1.V1fbpDeliveryDetailsToJSON)(value['delivery_details']), + 'editable': value['editable'], + 'id': value['id'], + 'is_cancelable': value['is_cancelable'], + 'is_deletable': value['is_deletable'], + 'locked': value['locked'], + 'package_units_count': value['package_units_count'], + 'status': (0, V1DraftStatusEnum_1.V1DraftStatusEnumToJSON)(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpDeleteRequest.d.ts b/dist/models/V1FbpDraftPickUpDeleteRequest.d.ts new file mode 100644 index 0000000..bd715b5 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickUpDeleteRequest + */ +export interface V1FbpDraftPickUpDeleteRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftPickUpDeleteRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftPickUpDeleteRequest interface. + */ +export declare function instanceOfV1FbpDraftPickUpDeleteRequest(value: object): value is V1FbpDraftPickUpDeleteRequest; +export declare function V1FbpDraftPickUpDeleteRequestFromJSON(json: any): V1FbpDraftPickUpDeleteRequest; +export declare function V1FbpDraftPickUpDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpDeleteRequest; +export declare function V1FbpDraftPickUpDeleteRequestToJSON(value?: V1FbpDraftPickUpDeleteRequest | null): any; diff --git a/dist/models/V1FbpDraftPickUpDeleteRequest.js b/dist/models/V1FbpDraftPickUpDeleteRequest.js new file mode 100644 index 0000000..ec828c8 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpDeleteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpDeleteRequest = instanceOfV1FbpDraftPickUpDeleteRequest; +exports.V1FbpDraftPickUpDeleteRequestFromJSON = V1FbpDraftPickUpDeleteRequestFromJSON; +exports.V1FbpDraftPickUpDeleteRequestFromJSONTyped = V1FbpDraftPickUpDeleteRequestFromJSONTyped; +exports.V1FbpDraftPickUpDeleteRequestToJSON = V1FbpDraftPickUpDeleteRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftPickUpDeleteRequest interface. + */ +function instanceOfV1FbpDraftPickUpDeleteRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftPickUpDeleteRequestFromJSON(json) { + return V1FbpDraftPickUpDeleteRequestFromJSONTyped(json, false); +} +function V1FbpDraftPickUpDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftPickUpDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpDeleteResponse.d.ts b/dist/models/V1FbpDraftPickUpDeleteResponse.d.ts new file mode 100644 index 0000000..be69dd7 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpDeleteResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1CancellationState } from './V1CancellationState'; +/** + * + * @export + * @interface V1FbpDraftPickUpDeleteResponse + */ +export interface V1FbpDraftPickUpDeleteResponse { + /** + * + * @type {V1CancellationState} + * @memberof V1FbpDraftPickUpDeleteResponse + */ + cancellation_state?: V1CancellationState; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickUpDeleteResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpDeleteResponse interface. + */ +export declare function instanceOfV1FbpDraftPickUpDeleteResponse(value: object): value is V1FbpDraftPickUpDeleteResponse; +export declare function V1FbpDraftPickUpDeleteResponseFromJSON(json: any): V1FbpDraftPickUpDeleteResponse; +export declare function V1FbpDraftPickUpDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpDeleteResponse; +export declare function V1FbpDraftPickUpDeleteResponseToJSON(value?: V1FbpDraftPickUpDeleteResponse | null): any; diff --git a/dist/models/V1FbpDraftPickUpDeleteResponse.js b/dist/models/V1FbpDraftPickUpDeleteResponse.js new file mode 100644 index 0000000..d092bf5 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpDeleteResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpDeleteResponse = instanceOfV1FbpDraftPickUpDeleteResponse; +exports.V1FbpDraftPickUpDeleteResponseFromJSON = V1FbpDraftPickUpDeleteResponseFromJSON; +exports.V1FbpDraftPickUpDeleteResponseFromJSONTyped = V1FbpDraftPickUpDeleteResponseFromJSONTyped; +exports.V1FbpDraftPickUpDeleteResponseToJSON = V1FbpDraftPickUpDeleteResponseToJSON; +const V1CancellationState_1 = require("./V1CancellationState"); +/** + * Check if a given object implements the V1FbpDraftPickUpDeleteResponse interface. + */ +function instanceOfV1FbpDraftPickUpDeleteResponse(value) { + return true; +} +function V1FbpDraftPickUpDeleteResponseFromJSON(json) { + return V1FbpDraftPickUpDeleteResponseFromJSONTyped(json, false); +} +function V1FbpDraftPickUpDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_state': json['cancellation_state'] == null ? undefined : (0, V1CancellationState_1.V1CancellationStateFromJSON)(json['cancellation_state']), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftPickUpDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_state': (0, V1CancellationState_1.V1CancellationStateToJSON)(value['cancellation_state']), + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpProductValidateRequest.d.ts b/dist/models/V1FbpDraftPickUpProductValidateRequest.d.ts new file mode 100644 index 0000000..08820b2 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickUpProductValidateRequestSkuItem } from './V1FbpDraftPickUpProductValidateRequestSkuItem'; +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateRequest + */ +export interface V1FbpDraftPickUpProductValidateRequest { + /** + * Список идентификаторов товаров — SKU. + * @type {Array} + * @memberof V1FbpDraftPickUpProductValidateRequest + */ + skus: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateRequest interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateRequest(value: object): value is V1FbpDraftPickUpProductValidateRequest; +export declare function V1FbpDraftPickUpProductValidateRequestFromJSON(json: any): V1FbpDraftPickUpProductValidateRequest; +export declare function V1FbpDraftPickUpProductValidateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateRequest; +export declare function V1FbpDraftPickUpProductValidateRequestToJSON(value?: V1FbpDraftPickUpProductValidateRequest | null): any; diff --git a/dist/models/V1FbpDraftPickUpProductValidateRequest.js b/dist/models/V1FbpDraftPickUpProductValidateRequest.js new file mode 100644 index 0000000..31f5679 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpProductValidateRequest = instanceOfV1FbpDraftPickUpProductValidateRequest; +exports.V1FbpDraftPickUpProductValidateRequestFromJSON = V1FbpDraftPickUpProductValidateRequestFromJSON; +exports.V1FbpDraftPickUpProductValidateRequestFromJSONTyped = V1FbpDraftPickUpProductValidateRequestFromJSONTyped; +exports.V1FbpDraftPickUpProductValidateRequestToJSON = V1FbpDraftPickUpProductValidateRequestToJSON; +const V1FbpDraftPickUpProductValidateRequestSkuItem_1 = require("./V1FbpDraftPickUpProductValidateRequestSkuItem"); +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateRequest interface. + */ +function instanceOfV1FbpDraftPickUpProductValidateRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftPickUpProductValidateRequestFromJSON(json) { + return V1FbpDraftPickUpProductValidateRequestFromJSONTyped(json, false); +} +function V1FbpDraftPickUpProductValidateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': (json['skus'].map(V1FbpDraftPickUpProductValidateRequestSkuItem_1.V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON)), + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftPickUpProductValidateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': (value['skus'].map(V1FbpDraftPickUpProductValidateRequestSkuItem_1.V1FbpDraftPickUpProductValidateRequestSkuItemToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpProductValidateRequestSkuItem.d.ts b/dist/models/V1FbpDraftPickUpProductValidateRequestSkuItem.d.ts new file mode 100644 index 0000000..1ca7ef0 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateRequestSkuItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateRequestSkuItem + */ +export interface V1FbpDraftPickUpProductValidateRequestSkuItem { + /** + * Количество единиц товара в поставке. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateRequestSkuItem + */ + count: number; + /** + * Идентификатор товара — SKU. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateRequestSkuItem + */ + sku: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateRequestSkuItem interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateRequestSkuItem(value: object): value is V1FbpDraftPickUpProductValidateRequestSkuItem; +export declare function V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON(json: any): V1FbpDraftPickUpProductValidateRequestSkuItem; +export declare function V1FbpDraftPickUpProductValidateRequestSkuItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateRequestSkuItem; +export declare function V1FbpDraftPickUpProductValidateRequestSkuItemToJSON(value?: V1FbpDraftPickUpProductValidateRequestSkuItem | null): any; diff --git a/dist/models/V1FbpDraftPickUpProductValidateRequestSkuItem.js b/dist/models/V1FbpDraftPickUpProductValidateRequestSkuItem.js new file mode 100644 index 0000000..3afc938 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateRequestSkuItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpProductValidateRequestSkuItem = instanceOfV1FbpDraftPickUpProductValidateRequestSkuItem; +exports.V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON = V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON; +exports.V1FbpDraftPickUpProductValidateRequestSkuItemFromJSONTyped = V1FbpDraftPickUpProductValidateRequestSkuItemFromJSONTyped; +exports.V1FbpDraftPickUpProductValidateRequestSkuItemToJSON = V1FbpDraftPickUpProductValidateRequestSkuItemToJSON; +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateRequestSkuItem interface. + */ +function instanceOfV1FbpDraftPickUpProductValidateRequestSkuItem(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1FbpDraftPickUpProductValidateRequestSkuItemFromJSON(json) { + return V1FbpDraftPickUpProductValidateRequestSkuItemFromJSONTyped(json, false); +} +function V1FbpDraftPickUpProductValidateRequestSkuItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'sku': json['sku'], + }; +} +function V1FbpDraftPickUpProductValidateRequestSkuItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpProductValidateResponse.d.ts b/dist/models/V1FbpDraftPickUpProductValidateResponse.d.ts new file mode 100644 index 0000000..a746212 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickUpProductValidateResponseApprovedItem } from './V1FbpDraftPickUpProductValidateResponseApprovedItem'; +import type { V1FbpDraftPickUpProductValidateResponseRejectedItem } from './V1FbpDraftPickUpProductValidateResponseRejectedItem'; +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateResponse + */ +export interface V1FbpDraftPickUpProductValidateResponse { + /** + * Подтверждённые товары. + * @type {Array} + * @memberof V1FbpDraftPickUpProductValidateResponse + */ + approved_items?: Array; + /** + * `true`, если проверенный список товаров создан. + * + * @type {boolean} + * @memberof V1FbpDraftPickUpProductValidateResponse + */ + bundle_generated?: boolean; + /** + * Идентификатор провалидированного списка товаров. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponse + */ + bundle_id?: string; + /** + * Отклонённые товары. + * @type {Array} + * @memberof V1FbpDraftPickUpProductValidateResponse + */ + rejected_items?: Array; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponse interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateResponse(value: object): value is V1FbpDraftPickUpProductValidateResponse; +export declare function V1FbpDraftPickUpProductValidateResponseFromJSON(json: any): V1FbpDraftPickUpProductValidateResponse; +export declare function V1FbpDraftPickUpProductValidateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateResponse; +export declare function V1FbpDraftPickUpProductValidateResponseToJSON(value?: V1FbpDraftPickUpProductValidateResponse | null): any; diff --git a/dist/models/V1FbpDraftPickUpProductValidateResponse.js b/dist/models/V1FbpDraftPickUpProductValidateResponse.js new file mode 100644 index 0000000..7163bc3 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpProductValidateResponse = instanceOfV1FbpDraftPickUpProductValidateResponse; +exports.V1FbpDraftPickUpProductValidateResponseFromJSON = V1FbpDraftPickUpProductValidateResponseFromJSON; +exports.V1FbpDraftPickUpProductValidateResponseFromJSONTyped = V1FbpDraftPickUpProductValidateResponseFromJSONTyped; +exports.V1FbpDraftPickUpProductValidateResponseToJSON = V1FbpDraftPickUpProductValidateResponseToJSON; +const V1FbpDraftPickUpProductValidateResponseApprovedItem_1 = require("./V1FbpDraftPickUpProductValidateResponseApprovedItem"); +const V1FbpDraftPickUpProductValidateResponseRejectedItem_1 = require("./V1FbpDraftPickUpProductValidateResponseRejectedItem"); +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponse interface. + */ +function instanceOfV1FbpDraftPickUpProductValidateResponse(value) { + return true; +} +function V1FbpDraftPickUpProductValidateResponseFromJSON(json) { + return V1FbpDraftPickUpProductValidateResponseFromJSONTyped(json, false); +} +function V1FbpDraftPickUpProductValidateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'approved_items': json['approved_items'] == null ? undefined : (json['approved_items'].map(V1FbpDraftPickUpProductValidateResponseApprovedItem_1.V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON)), + 'bundle_generated': json['bundle_generated'] == null ? undefined : json['bundle_generated'], + 'bundle_id': json['bundle_id'] == null ? undefined : json['bundle_id'], + 'rejected_items': json['rejected_items'] == null ? undefined : (json['rejected_items'].map(V1FbpDraftPickUpProductValidateResponseRejectedItem_1.V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON)), + }; +} +function V1FbpDraftPickUpProductValidateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'approved_items': value['approved_items'] == null ? undefined : (value['approved_items'].map(V1FbpDraftPickUpProductValidateResponseApprovedItem_1.V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON)), + 'bundle_generated': value['bundle_generated'], + 'bundle_id': value['bundle_id'], + 'rejected_items': value['rejected_items'] == null ? undefined : (value['rejected_items'].map(V1FbpDraftPickUpProductValidateResponseRejectedItem_1.V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON)), + }; +} diff --git a/dist/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.d.ts b/dist/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.d.ts new file mode 100644 index 0000000..8f0cd36 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateResponseApprovedItem + */ +export interface V1FbpDraftPickUpProductValidateResponseApprovedItem { + /** + * Штрихкод. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + icon_name?: string; + /** + * Наименование товара. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + name?: string; + /** + * Артикул товара в системе продавца. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + quantity?: number; + /** + * Идентификатор товара — SKU. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseApprovedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponseApprovedItem interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateResponseApprovedItem(value: object): value is V1FbpDraftPickUpProductValidateResponseApprovedItem; +export declare function V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON(json: any): V1FbpDraftPickUpProductValidateResponseApprovedItem; +export declare function V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateResponseApprovedItem; +export declare function V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON(value?: V1FbpDraftPickUpProductValidateResponseApprovedItem | null): any; diff --git a/dist/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.js b/dist/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.js new file mode 100644 index 0000000..6fd928f --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateResponseApprovedItem.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpProductValidateResponseApprovedItem = instanceOfV1FbpDraftPickUpProductValidateResponseApprovedItem; +exports.V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON = V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON; +exports.V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSONTyped = V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSONTyped; +exports.V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON = V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON; +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponseApprovedItem interface. + */ +function instanceOfV1FbpDraftPickUpProductValidateResponseApprovedItem(value) { + return true; +} +function V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSON(json) { + return V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSONTyped(json, false); +} +function V1FbpDraftPickUpProductValidateResponseApprovedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +function V1FbpDraftPickUpProductValidateResponseApprovedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.d.ts b/dist/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.d.ts new file mode 100644 index 0000000..47a7d8a --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.d.ts @@ -0,0 +1,88 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftPickUpProductValidateResponseRejectedItem + */ +export interface V1FbpDraftPickUpProductValidateResponseRejectedItem { + /** + * Штрихкод. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + barcode?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + icon_name?: string; + /** + * Наименование товара. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + name?: string; + /** + * Артикул товара в системе продавца. + * @type {string} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + quantity?: number; + /** + * Причины отклонения: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товар не найден; + * - `INVALID` — товар не создан; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — не указан штрихкод; + * - `MULTIPLICITY` — количество товара не кратно требуемой партии; + * - `NO_PRICE` — не указана цена; + * - `BANNED` — товар не доступен к продаже или поставке на выбранный склад; + * - `ZERO_QUANTITY` — количество товаров в поставке равно 0; + * - `QUANTITY_GREATER_THEN_MAX` — количество товаров одной SKU больше максимального значения; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + rejection_reasons?: Array; + /** + * Идентификатор товара — SKU. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + sku?: number; + /** + * Объём товара. + * @type {number} + * @memberof V1FbpDraftPickUpProductValidateResponseRejectedItem + */ + volume?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponseRejectedItem interface. + */ +export declare function instanceOfV1FbpDraftPickUpProductValidateResponseRejectedItem(value: object): value is V1FbpDraftPickUpProductValidateResponseRejectedItem; +export declare function V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON(json: any): V1FbpDraftPickUpProductValidateResponseRejectedItem; +export declare function V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpProductValidateResponseRejectedItem; +export declare function V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON(value?: V1FbpDraftPickUpProductValidateResponseRejectedItem | null): any; diff --git a/dist/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.js b/dist/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.js new file mode 100644 index 0000000..19ed0ea --- /dev/null +++ b/dist/models/V1FbpDraftPickUpProductValidateResponseRejectedItem.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpProductValidateResponseRejectedItem = instanceOfV1FbpDraftPickUpProductValidateResponseRejectedItem; +exports.V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON = V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON; +exports.V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSONTyped = V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSONTyped; +exports.V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON = V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON; +const V1BundleItemErrorEnum_1 = require("./V1BundleItemErrorEnum"); +/** + * Check if a given object implements the V1FbpDraftPickUpProductValidateResponseRejectedItem interface. + */ +function instanceOfV1FbpDraftPickUpProductValidateResponseRejectedItem(value) { + return true; +} +function V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSON(json) { + return V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSONTyped(json, false); +} +function V1FbpDraftPickUpProductValidateResponseRejectedItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'icon_name': json['icon_name'] == null ? undefined : json['icon_name'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'rejection_reasons': json['rejection_reasons'] == null ? undefined : (json['rejection_reasons'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'volume': json['volume'] == null ? undefined : json['volume'], + }; +} +function V1FbpDraftPickUpProductValidateResponseRejectedItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'icon_name': value['icon_name'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'rejection_reasons': value['rejection_reasons'] == null ? undefined : (value['rejection_reasons'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + 'volume': value['volume'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpRegistrateRequest.d.ts b/dist/models/V1FbpDraftPickUpRegistrateRequest.d.ts new file mode 100644 index 0000000..c5f378c --- /dev/null +++ b/dist/models/V1FbpDraftPickUpRegistrateRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickUpRegistrateRequest + */ +export interface V1FbpDraftPickUpRegistrateRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickUpRegistrateRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpDraftPickUpRegistrateRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateRequest interface. + */ +export declare function instanceOfV1FbpDraftPickUpRegistrateRequest(value: object): value is V1FbpDraftPickUpRegistrateRequest; +export declare function V1FbpDraftPickUpRegistrateRequestFromJSON(json: any): V1FbpDraftPickUpRegistrateRequest; +export declare function V1FbpDraftPickUpRegistrateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpRegistrateRequest; +export declare function V1FbpDraftPickUpRegistrateRequestToJSON(value?: V1FbpDraftPickUpRegistrateRequest | null): any; diff --git a/dist/models/V1FbpDraftPickUpRegistrateRequest.js b/dist/models/V1FbpDraftPickUpRegistrateRequest.js new file mode 100644 index 0000000..62f840b --- /dev/null +++ b/dist/models/V1FbpDraftPickUpRegistrateRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpRegistrateRequest = instanceOfV1FbpDraftPickUpRegistrateRequest; +exports.V1FbpDraftPickUpRegistrateRequestFromJSON = V1FbpDraftPickUpRegistrateRequestFromJSON; +exports.V1FbpDraftPickUpRegistrateRequestFromJSONTyped = V1FbpDraftPickUpRegistrateRequestFromJSONTyped; +exports.V1FbpDraftPickUpRegistrateRequestToJSON = V1FbpDraftPickUpRegistrateRequestToJSON; +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateRequest interface. + */ +function instanceOfV1FbpDraftPickUpRegistrateRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftPickUpRegistrateRequestFromJSON(json) { + return V1FbpDraftPickUpRegistrateRequestFromJSONTyped(json, false); +} +function V1FbpDraftPickUpRegistrateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftPickUpRegistrateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpRegistrateResponse.d.ts b/dist/models/V1FbpDraftPickUpRegistrateResponse.d.ts new file mode 100644 index 0000000..ca596ae --- /dev/null +++ b/dist/models/V1FbpDraftPickUpRegistrateResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickUpRegistrateResponseRegistrationError } from './V1FbpDraftPickUpRegistrateResponseRegistrationError'; +/** + * + * @export + * @interface V1FbpDraftPickUpRegistrateResponse + */ +export interface V1FbpDraftPickUpRegistrateResponse { + /** + * + * @type {V1FbpDraftPickUpRegistrateResponseRegistrationError} + * @memberof V1FbpDraftPickUpRegistrateResponse + */ + error?: V1FbpDraftPickUpRegistrateResponseRegistrationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpDraftPickUpRegistrateResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickUpRegistrateResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponse interface. + */ +export declare function instanceOfV1FbpDraftPickUpRegistrateResponse(value: object): value is V1FbpDraftPickUpRegistrateResponse; +export declare function V1FbpDraftPickUpRegistrateResponseFromJSON(json: any): V1FbpDraftPickUpRegistrateResponse; +export declare function V1FbpDraftPickUpRegistrateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpRegistrateResponse; +export declare function V1FbpDraftPickUpRegistrateResponseToJSON(value?: V1FbpDraftPickUpRegistrateResponse | null): any; diff --git a/dist/models/V1FbpDraftPickUpRegistrateResponse.js b/dist/models/V1FbpDraftPickUpRegistrateResponse.js new file mode 100644 index 0000000..8bda768 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpRegistrateResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpRegistrateResponse = instanceOfV1FbpDraftPickUpRegistrateResponse; +exports.V1FbpDraftPickUpRegistrateResponseFromJSON = V1FbpDraftPickUpRegistrateResponseFromJSON; +exports.V1FbpDraftPickUpRegistrateResponseFromJSONTyped = V1FbpDraftPickUpRegistrateResponseFromJSONTyped; +exports.V1FbpDraftPickUpRegistrateResponseToJSON = V1FbpDraftPickUpRegistrateResponseToJSON; +const V1FbpDraftPickUpRegistrateResponseRegistrationError_1 = require("./V1FbpDraftPickUpRegistrateResponseRegistrationError"); +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponse interface. + */ +function instanceOfV1FbpDraftPickUpRegistrateResponse(value) { + return true; +} +function V1FbpDraftPickUpRegistrateResponseFromJSON(json) { + return V1FbpDraftPickUpRegistrateResponseFromJSONTyped(json, false); +} +function V1FbpDraftPickUpRegistrateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1FbpDraftPickUpRegistrateResponseRegistrationError_1.V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftPickUpRegistrateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1FbpDraftPickUpRegistrateResponseRegistrationError_1.V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.d.ts b/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.d.ts new file mode 100644 index 0000000..6581b5c --- /dev/null +++ b/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError } from './V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError'; +import type { V1OrderErrorTypeEnum } from './V1OrderErrorTypeEnum'; +/** + * Ошибка. + * @export + * @interface V1FbpDraftPickUpRegistrateResponseRegistrationError + */ +export interface V1FbpDraftPickUpRegistrateResponseRegistrationError { + /** + * Ошибки провалидированного списка товаров. + * @type {Array} + * @memberof V1FbpDraftPickUpRegistrateResponseRegistrationError + */ + bundle_errors?: Array; + /** + * + * @type {V1OrderErrorTypeEnum} + * @memberof V1FbpDraftPickUpRegistrateResponseRegistrationError + */ + order_error?: V1OrderErrorTypeEnum; +} +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponseRegistrationError interface. + */ +export declare function instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationError(value: object): value is V1FbpDraftPickUpRegistrateResponseRegistrationError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON(json: any): V1FbpDraftPickUpRegistrateResponseRegistrationError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpRegistrateResponseRegistrationError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON(value?: V1FbpDraftPickUpRegistrateResponseRegistrationError | null): any; diff --git a/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.js b/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.js new file mode 100644 index 0000000..2c0e129 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationError.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationError = instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationError; +exports.V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON = V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON; +exports.V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSONTyped = V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSONTyped; +exports.V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON = V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON; +const V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError_1 = require("./V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError"); +const V1OrderErrorTypeEnum_1 = require("./V1OrderErrorTypeEnum"); +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponseRegistrationError interface. + */ +function instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationError(value) { + return true; +} +function V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSON(json) { + return V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSONTyped(json, false); +} +function V1FbpDraftPickUpRegistrateResponseRegistrationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_errors': json['bundle_errors'] == null ? undefined : (json['bundle_errors'].map(V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError_1.V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON)), + 'order_error': json['order_error'] == null ? undefined : (0, V1OrderErrorTypeEnum_1.V1OrderErrorTypeEnumFromJSON)(json['order_error']), + }; +} +function V1FbpDraftPickUpRegistrateResponseRegistrationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_errors': value['bundle_errors'] == null ? undefined : (value['bundle_errors'].map(V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError_1.V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON)), + 'order_error': (0, V1OrderErrorTypeEnum_1.V1OrderErrorTypeEnumToJSON)(value['order_error']), + }; +} diff --git a/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.d.ts b/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.d.ts new file mode 100644 index 0000000..52cdfcf --- /dev/null +++ b/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemErrorEnum } from './V1BundleItemErrorEnum'; +/** + * + * @export + * @interface V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError + */ +export interface V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError { + /** + * Ошибки: + * - `BUNDLE_ITEM_ERROR_UNSPECIFIED` — не определена; + * - `OUT_OF_ASSORTMENT` — товара нет в ассортименте поставки; + * - `INVALID` — неверный статус; + * - `INCOMPATIBLE_WAREHOUSE` — неверный идентификатор склада; + * - `INVALID_BARCODE` — штрихкод не указан; + * - `MULTIPLICITY` — количество товара не кратно упаковке; + * - `NO_PRICE` — цена не указана; + * - `BANNED` — товар заблокирован; + * - `ZERO_QUANTITY` — количество товара не может быть 0; + * - `QUANTITY_GREATER_THEN_MAX` — превышено максимальное количество товара для одного SKU; + * - `NO_SALES` — у товара нет продаж больше 60 дней; + * - `SURPLUS` — товаров на складе хватит на 90 дней; + * - `AVAILABILITY_IS_EMPTY` — нет информации о доступности товара. + * + * @type {Array} + * @memberof V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError + */ + errors?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError + */ + sku?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError interface. + */ +export declare function instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError(value: object): value is V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON(json: any): V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError; +export declare function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON(value?: V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError | null): any; diff --git a/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.js b/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.js new file mode 100644 index 0000000..e0b9287 --- /dev/null +++ b/dist/models/V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError = instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError; +exports.V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON = V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON; +exports.V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped = V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped; +exports.V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON = V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON; +const V1BundleItemErrorEnum_1 = require("./V1BundleItemErrorEnum"); +/** + * Check if a given object implements the V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError interface. + */ +function instanceOfV1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError(value) { + return true; +} +function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSON(json) { + return V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, false); +} +function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1BundleItemErrorEnum_1.V1BundleItemErrorEnumToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1FbpDraftPickupCreateRequest.d.ts b/dist/models/V1FbpDraftPickupCreateRequest.d.ts new file mode 100644 index 0000000..eacbafb --- /dev/null +++ b/dist/models/V1FbpDraftPickupCreateRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickupCreateRequestDeliveryDetails } from './V1FbpDraftPickupCreateRequestDeliveryDetails'; +/** + * + * @export + * @interface V1FbpDraftPickupCreateRequest + */ +export interface V1FbpDraftPickupCreateRequest { + /** + * Идентификатор состава поставки. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequest + */ + bundle_id: string; + /** + * + * @type {V1FbpDraftPickupCreateRequestDeliveryDetails} + * @memberof V1FbpDraftPickupCreateRequest + */ + delivery_details: V1FbpDraftPickupCreateRequestDeliveryDetails; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpDraftPickupCreateRequest + */ + package_units_count: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpDraftPickupCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpDraftPickupCreateRequest interface. + */ +export declare function instanceOfV1FbpDraftPickupCreateRequest(value: object): value is V1FbpDraftPickupCreateRequest; +export declare function V1FbpDraftPickupCreateRequestFromJSON(json: any): V1FbpDraftPickupCreateRequest; +export declare function V1FbpDraftPickupCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupCreateRequest; +export declare function V1FbpDraftPickupCreateRequestToJSON(value?: V1FbpDraftPickupCreateRequest | null): any; diff --git a/dist/models/V1FbpDraftPickupCreateRequest.js b/dist/models/V1FbpDraftPickupCreateRequest.js new file mode 100644 index 0000000..974dc74 --- /dev/null +++ b/dist/models/V1FbpDraftPickupCreateRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickupCreateRequest = instanceOfV1FbpDraftPickupCreateRequest; +exports.V1FbpDraftPickupCreateRequestFromJSON = V1FbpDraftPickupCreateRequestFromJSON; +exports.V1FbpDraftPickupCreateRequestFromJSONTyped = V1FbpDraftPickupCreateRequestFromJSONTyped; +exports.V1FbpDraftPickupCreateRequestToJSON = V1FbpDraftPickupCreateRequestToJSON; +const V1FbpDraftPickupCreateRequestDeliveryDetails_1 = require("./V1FbpDraftPickupCreateRequestDeliveryDetails"); +/** + * Check if a given object implements the V1FbpDraftPickupCreateRequest interface. + */ +function instanceOfV1FbpDraftPickupCreateRequest(value) { + if (!('bundle_id' in value) || value['bundle_id'] === undefined) + return false; + if (!('delivery_details' in value) || value['delivery_details'] === undefined) + return false; + if (!('package_units_count' in value) || value['package_units_count'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpDraftPickupCreateRequestFromJSON(json) { + return V1FbpDraftPickupCreateRequestFromJSONTyped(json, false); +} +function V1FbpDraftPickupCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_id': json['bundle_id'], + 'delivery_details': (0, V1FbpDraftPickupCreateRequestDeliveryDetails_1.V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON)(json['delivery_details']), + 'package_units_count': json['package_units_count'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpDraftPickupCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_id': value['bundle_id'], + 'delivery_details': (0, V1FbpDraftPickupCreateRequestDeliveryDetails_1.V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON)(value['delivery_details']), + 'package_units_count': value['package_units_count'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpDraftPickupCreateRequestDeliveryDetails.d.ts b/dist/models/V1FbpDraftPickupCreateRequestDeliveryDetails.d.ts new file mode 100644 index 0000000..84f92f0 --- /dev/null +++ b/dist/models/V1FbpDraftPickupCreateRequestDeliveryDetails.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftPickupCreateRequestDeliveryDetails + */ +export interface V1FbpDraftPickupCreateRequestDeliveryDetails { + /** + * Адрес. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + address: string; + /** + * Комментарий. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + comment: string; + /** + * Дата доставки. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + date: string; + /** + * ФИО отправителя. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + sender_name: string; + /** + * Номер телефона отправителя. + * @type {string} + * @memberof V1FbpDraftPickupCreateRequestDeliveryDetails + */ + sender_phone: string; +} +/** + * Check if a given object implements the V1FbpDraftPickupCreateRequestDeliveryDetails interface. + */ +export declare function instanceOfV1FbpDraftPickupCreateRequestDeliveryDetails(value: object): value is V1FbpDraftPickupCreateRequestDeliveryDetails; +export declare function V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON(json: any): V1FbpDraftPickupCreateRequestDeliveryDetails; +export declare function V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupCreateRequestDeliveryDetails; +export declare function V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON(value?: V1FbpDraftPickupCreateRequestDeliveryDetails | null): any; diff --git a/dist/models/V1FbpDraftPickupCreateRequestDeliveryDetails.js b/dist/models/V1FbpDraftPickupCreateRequestDeliveryDetails.js new file mode 100644 index 0000000..277f330 --- /dev/null +++ b/dist/models/V1FbpDraftPickupCreateRequestDeliveryDetails.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickupCreateRequestDeliveryDetails = instanceOfV1FbpDraftPickupCreateRequestDeliveryDetails; +exports.V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON = V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON; +exports.V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSONTyped = V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSONTyped; +exports.V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON = V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON; +/** + * Check if a given object implements the V1FbpDraftPickupCreateRequestDeliveryDetails interface. + */ +function instanceOfV1FbpDraftPickupCreateRequestDeliveryDetails(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('comment' in value) || value['comment'] === undefined) + return false; + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('sender_name' in value) || value['sender_name'] === undefined) + return false; + if (!('sender_phone' in value) || value['sender_phone'] === undefined) + return false; + return true; +} +function V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSON(json) { + return V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSONTyped(json, false); +} +function V1FbpDraftPickupCreateRequestDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'comment': json['comment'], + 'date': json['date'], + 'sender_name': json['sender_name'], + 'sender_phone': json['sender_phone'], + }; +} +function V1FbpDraftPickupCreateRequestDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'comment': value['comment'], + 'date': value['date'], + 'sender_name': value['sender_name'], + 'sender_phone': value['sender_phone'], + }; +} diff --git a/dist/models/V1FbpDraftPickupCreateResponse.d.ts b/dist/models/V1FbpDraftPickupCreateResponse.d.ts new file mode 100644 index 0000000..9dda92c --- /dev/null +++ b/dist/models/V1FbpDraftPickupCreateResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickupCreateResponse + */ +export interface V1FbpDraftPickupCreateResponse { + /** + * Идентификатор черновика заявки на поставку. + * @type {number} + * @memberof V1FbpDraftPickupCreateResponse + */ + draft_id?: number; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickupCreateResponse + */ + row_version?: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftPickupCreateResponse + */ + supply_id?: string; +} +/** + * Check if a given object implements the V1FbpDraftPickupCreateResponse interface. + */ +export declare function instanceOfV1FbpDraftPickupCreateResponse(value: object): value is V1FbpDraftPickupCreateResponse; +export declare function V1FbpDraftPickupCreateResponseFromJSON(json: any): V1FbpDraftPickupCreateResponse; +export declare function V1FbpDraftPickupCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupCreateResponse; +export declare function V1FbpDraftPickupCreateResponseToJSON(value?: V1FbpDraftPickupCreateResponse | null): any; diff --git a/dist/models/V1FbpDraftPickupCreateResponse.js b/dist/models/V1FbpDraftPickupCreateResponse.js new file mode 100644 index 0000000..4e189a3 --- /dev/null +++ b/dist/models/V1FbpDraftPickupCreateResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickupCreateResponse = instanceOfV1FbpDraftPickupCreateResponse; +exports.V1FbpDraftPickupCreateResponseFromJSON = V1FbpDraftPickupCreateResponseFromJSON; +exports.V1FbpDraftPickupCreateResponseFromJSONTyped = V1FbpDraftPickupCreateResponseFromJSONTyped; +exports.V1FbpDraftPickupCreateResponseToJSON = V1FbpDraftPickupCreateResponseToJSON; +/** + * Check if a given object implements the V1FbpDraftPickupCreateResponse interface. + */ +function instanceOfV1FbpDraftPickupCreateResponse(value) { + return true; +} +function V1FbpDraftPickupCreateResponseFromJSON(json) { + return V1FbpDraftPickupCreateResponseFromJSONTyped(json, false); +} +function V1FbpDraftPickupCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + }; +} +function V1FbpDraftPickupCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftPickupDlvEditRequest.d.ts b/dist/models/V1FbpDraftPickupDlvEditRequest.d.ts new file mode 100644 index 0000000..3f8e3d6 --- /dev/null +++ b/dist/models/V1FbpDraftPickupDlvEditRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpDraftPickupDlvEditRequestDeliveryDetails } from './V1FbpDraftPickupDlvEditRequestDeliveryDetails'; +/** + * + * @export + * @interface V1FbpDraftPickupDlvEditRequest + */ +export interface V1FbpDraftPickupDlvEditRequest { + /** + * + * @type {V1FbpDraftPickupDlvEditRequestDeliveryDetails} + * @memberof V1FbpDraftPickupDlvEditRequest + */ + pickup_details: V1FbpDraftPickupDlvEditRequestDeliveryDetails; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickupDlvEditRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditRequest interface. + */ +export declare function instanceOfV1FbpDraftPickupDlvEditRequest(value: object): value is V1FbpDraftPickupDlvEditRequest; +export declare function V1FbpDraftPickupDlvEditRequestFromJSON(json: any): V1FbpDraftPickupDlvEditRequest; +export declare function V1FbpDraftPickupDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupDlvEditRequest; +export declare function V1FbpDraftPickupDlvEditRequestToJSON(value?: V1FbpDraftPickupDlvEditRequest | null): any; diff --git a/dist/models/V1FbpDraftPickupDlvEditRequest.js b/dist/models/V1FbpDraftPickupDlvEditRequest.js new file mode 100644 index 0000000..dc623c4 --- /dev/null +++ b/dist/models/V1FbpDraftPickupDlvEditRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickupDlvEditRequest = instanceOfV1FbpDraftPickupDlvEditRequest; +exports.V1FbpDraftPickupDlvEditRequestFromJSON = V1FbpDraftPickupDlvEditRequestFromJSON; +exports.V1FbpDraftPickupDlvEditRequestFromJSONTyped = V1FbpDraftPickupDlvEditRequestFromJSONTyped; +exports.V1FbpDraftPickupDlvEditRequestToJSON = V1FbpDraftPickupDlvEditRequestToJSON; +const V1FbpDraftPickupDlvEditRequestDeliveryDetails_1 = require("./V1FbpDraftPickupDlvEditRequestDeliveryDetails"); +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditRequest interface. + */ +function instanceOfV1FbpDraftPickupDlvEditRequest(value) { + if (!('pickup_details' in value) || value['pickup_details'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpDraftPickupDlvEditRequestFromJSON(json) { + return V1FbpDraftPickupDlvEditRequestFromJSONTyped(json, false); +} +function V1FbpDraftPickupDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'pickup_details': (0, V1FbpDraftPickupDlvEditRequestDeliveryDetails_1.V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON)(json['pickup_details']), + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpDraftPickupDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'pickup_details': (0, V1FbpDraftPickupDlvEditRequestDeliveryDetails_1.V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON)(value['pickup_details']), + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.d.ts b/dist/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.d.ts new file mode 100644 index 0000000..cfa1cd8 --- /dev/null +++ b/dist/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали доставки. + * @export + * @interface V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ +export interface V1FbpDraftPickupDlvEditRequestDeliveryDetails { + /** + * Адрес. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + address: string; + /** + * Комментарий. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + comment: string; + /** + * Дата доставки. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + date: string; + /** + * ФИО отправителя. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + sender_name: string; + /** + * Номер телефона отправителя. + * @type {string} + * @memberof V1FbpDraftPickupDlvEditRequestDeliveryDetails + */ + sender_phone: string; +} +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditRequestDeliveryDetails interface. + */ +export declare function instanceOfV1FbpDraftPickupDlvEditRequestDeliveryDetails(value: object): value is V1FbpDraftPickupDlvEditRequestDeliveryDetails; +export declare function V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON(json: any): V1FbpDraftPickupDlvEditRequestDeliveryDetails; +export declare function V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupDlvEditRequestDeliveryDetails; +export declare function V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON(value?: V1FbpDraftPickupDlvEditRequestDeliveryDetails | null): any; diff --git a/dist/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.js b/dist/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.js new file mode 100644 index 0000000..dbe7f01 --- /dev/null +++ b/dist/models/V1FbpDraftPickupDlvEditRequestDeliveryDetails.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickupDlvEditRequestDeliveryDetails = instanceOfV1FbpDraftPickupDlvEditRequestDeliveryDetails; +exports.V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON = V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON; +exports.V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSONTyped = V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSONTyped; +exports.V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON = V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON; +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditRequestDeliveryDetails interface. + */ +function instanceOfV1FbpDraftPickupDlvEditRequestDeliveryDetails(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('comment' in value) || value['comment'] === undefined) + return false; + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('sender_name' in value) || value['sender_name'] === undefined) + return false; + if (!('sender_phone' in value) || value['sender_phone'] === undefined) + return false; + return true; +} +function V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSON(json) { + return V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSONTyped(json, false); +} +function V1FbpDraftPickupDlvEditRequestDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'comment': json['comment'], + 'date': json['date'], + 'sender_name': json['sender_name'], + 'sender_phone': json['sender_phone'], + }; +} +function V1FbpDraftPickupDlvEditRequestDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'comment': value['comment'], + 'date': value['date'], + 'sender_name': value['sender_name'], + 'sender_phone': value['sender_phone'], + }; +} diff --git a/dist/models/V1FbpDraftPickupDlvEditResponse.d.ts b/dist/models/V1FbpDraftPickupDlvEditResponse.d.ts new file mode 100644 index 0000000..055bbc4 --- /dev/null +++ b/dist/models/V1FbpDraftPickupDlvEditResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpDraftPickupDlvEditResponse + */ +export interface V1FbpDraftPickupDlvEditResponse { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpDraftPickupDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditResponse interface. + */ +export declare function instanceOfV1FbpDraftPickupDlvEditResponse(value: object): value is V1FbpDraftPickupDlvEditResponse; +export declare function V1FbpDraftPickupDlvEditResponseFromJSON(json: any): V1FbpDraftPickupDlvEditResponse; +export declare function V1FbpDraftPickupDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpDraftPickupDlvEditResponse; +export declare function V1FbpDraftPickupDlvEditResponseToJSON(value?: V1FbpDraftPickupDlvEditResponse | null): any; diff --git a/dist/models/V1FbpDraftPickupDlvEditResponse.js b/dist/models/V1FbpDraftPickupDlvEditResponse.js new file mode 100644 index 0000000..35b39cf --- /dev/null +++ b/dist/models/V1FbpDraftPickupDlvEditResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpDraftPickupDlvEditResponse = instanceOfV1FbpDraftPickupDlvEditResponse; +exports.V1FbpDraftPickupDlvEditResponseFromJSON = V1FbpDraftPickupDlvEditResponseFromJSON; +exports.V1FbpDraftPickupDlvEditResponseFromJSONTyped = V1FbpDraftPickupDlvEditResponseFromJSONTyped; +exports.V1FbpDraftPickupDlvEditResponseToJSON = V1FbpDraftPickupDlvEditResponseToJSON; +/** + * Check if a given object implements the V1FbpDraftPickupDlvEditResponse interface. + */ +function instanceOfV1FbpDraftPickupDlvEditResponse(value) { + return true; +} +function V1FbpDraftPickupDlvEditResponseFromJSON(json) { + return V1FbpDraftPickupDlvEditResponseFromJSONTyped(json, false); +} +function V1FbpDraftPickupDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpDraftPickupDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpEditTimeslotRequest.d.ts b/dist/models/V1FbpEditTimeslotRequest.d.ts new file mode 100644 index 0000000..a97210e --- /dev/null +++ b/dist/models/V1FbpEditTimeslotRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpEditTimeslotRequest + */ +export interface V1FbpEditTimeslotRequest { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpEditTimeslotRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpEditTimeslotRequest + */ + supply_id: string; + /** + * Начало таймслота. + * @type {string} + * @memberof V1FbpEditTimeslotRequest + */ + timeslot_start: string; +} +/** + * Check if a given object implements the V1FbpEditTimeslotRequest interface. + */ +export declare function instanceOfV1FbpEditTimeslotRequest(value: object): value is V1FbpEditTimeslotRequest; +export declare function V1FbpEditTimeslotRequestFromJSON(json: any): V1FbpEditTimeslotRequest; +export declare function V1FbpEditTimeslotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpEditTimeslotRequest; +export declare function V1FbpEditTimeslotRequestToJSON(value?: V1FbpEditTimeslotRequest | null): any; diff --git a/dist/models/V1FbpEditTimeslotRequest.js b/dist/models/V1FbpEditTimeslotRequest.js new file mode 100644 index 0000000..fbcea74 --- /dev/null +++ b/dist/models/V1FbpEditTimeslotRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpEditTimeslotRequest = instanceOfV1FbpEditTimeslotRequest; +exports.V1FbpEditTimeslotRequestFromJSON = V1FbpEditTimeslotRequestFromJSON; +exports.V1FbpEditTimeslotRequestFromJSONTyped = V1FbpEditTimeslotRequestFromJSONTyped; +exports.V1FbpEditTimeslotRequestToJSON = V1FbpEditTimeslotRequestToJSON; +/** + * Check if a given object implements the V1FbpEditTimeslotRequest interface. + */ +function instanceOfV1FbpEditTimeslotRequest(value) { + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('timeslot_start' in value) || value['timeslot_start'] === undefined) + return false; + return true; +} +function V1FbpEditTimeslotRequestFromJSON(json) { + return V1FbpEditTimeslotRequestFromJSONTyped(json, false); +} +function V1FbpEditTimeslotRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'timeslot_start': json['timeslot_start'], + }; +} +function V1FbpEditTimeslotRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V1FbpEditTimeslotResponse.d.ts b/dist/models/V1FbpEditTimeslotResponse.d.ts new file mode 100644 index 0000000..edf23a5 --- /dev/null +++ b/dist/models/V1FbpEditTimeslotResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpEditTimeslotResponseReserveFailureType } from './V1FbpEditTimeslotResponseReserveFailureType'; +/** + * + * @export + * @interface V1FbpEditTimeslotResponse + */ +export interface V1FbpEditTimeslotResponse { + /** + * Причина ошибки: + * - `RESERVE_FAILURE_TYPE_UNSPECIFIED` — не определена; + * - `REQUEST_VALIDATION` — в запросе указана дата резервирования в прошлом; + * - `INVALID_RESERVE` — исходный резерв не найден, неактивен или уже содержит заявки, а его пытаются перезаписать; + * - `LOGISTICS_REASON` — ошибка на стороне логистики; + * - `SCHEDULE_REASON` — ошибка на стороне расписаний. + * + * @type {Array} + * @memberof V1FbpEditTimeslotResponse + */ + error_reasons?: Array; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpEditTimeslotResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpEditTimeslotResponse interface. + */ +export declare function instanceOfV1FbpEditTimeslotResponse(value: object): value is V1FbpEditTimeslotResponse; +export declare function V1FbpEditTimeslotResponseFromJSON(json: any): V1FbpEditTimeslotResponse; +export declare function V1FbpEditTimeslotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpEditTimeslotResponse; +export declare function V1FbpEditTimeslotResponseToJSON(value?: V1FbpEditTimeslotResponse | null): any; diff --git a/dist/models/V1FbpEditTimeslotResponse.js b/dist/models/V1FbpEditTimeslotResponse.js new file mode 100644 index 0000000..adcfa6c --- /dev/null +++ b/dist/models/V1FbpEditTimeslotResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpEditTimeslotResponse = instanceOfV1FbpEditTimeslotResponse; +exports.V1FbpEditTimeslotResponseFromJSON = V1FbpEditTimeslotResponseFromJSON; +exports.V1FbpEditTimeslotResponseFromJSONTyped = V1FbpEditTimeslotResponseFromJSONTyped; +exports.V1FbpEditTimeslotResponseToJSON = V1FbpEditTimeslotResponseToJSON; +const V1FbpEditTimeslotResponseReserveFailureType_1 = require("./V1FbpEditTimeslotResponseReserveFailureType"); +/** + * Check if a given object implements the V1FbpEditTimeslotResponse interface. + */ +function instanceOfV1FbpEditTimeslotResponse(value) { + return true; +} +function V1FbpEditTimeslotResponseFromJSON(json) { + return V1FbpEditTimeslotResponseFromJSONTyped(json, false); +} +function V1FbpEditTimeslotResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1FbpEditTimeslotResponseReserveFailureType_1.V1FbpEditTimeslotResponseReserveFailureTypeFromJSON)), + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpEditTimeslotResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1FbpEditTimeslotResponseReserveFailureType_1.V1FbpEditTimeslotResponseReserveFailureTypeToJSON)), + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpEditTimeslotResponseReserveFailureType.d.ts b/dist/models/V1FbpEditTimeslotResponseReserveFailureType.d.ts new file mode 100644 index 0000000..edf98ea --- /dev/null +++ b/dist/models/V1FbpEditTimeslotResponseReserveFailureType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1FbpEditTimeslotResponseReserveFailureType: { + readonly RESERVE_FAILURE_TYPE_UNSPECIFIED: "RESERVE_FAILURE_TYPE_UNSPECIFIED"; + readonly REQUEST_VALIDATION: "REQUEST_VALIDATION"; + readonly INVALID_RESERVE: "INVALID_RESERVE"; + readonly LOGISTICS_REASON: "LOGISTICS_REASON"; + readonly SCHEDULE_REASON: "SCHEDULE_REASON"; +}; +export type V1FbpEditTimeslotResponseReserveFailureType = typeof V1FbpEditTimeslotResponseReserveFailureType[keyof typeof V1FbpEditTimeslotResponseReserveFailureType]; +export declare function instanceOfV1FbpEditTimeslotResponseReserveFailureType(value: any): boolean; +export declare function V1FbpEditTimeslotResponseReserveFailureTypeFromJSON(json: any): V1FbpEditTimeslotResponseReserveFailureType; +export declare function V1FbpEditTimeslotResponseReserveFailureTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpEditTimeslotResponseReserveFailureType; +export declare function V1FbpEditTimeslotResponseReserveFailureTypeToJSON(value?: V1FbpEditTimeslotResponseReserveFailureType | null): any; diff --git a/dist/models/V1FbpEditTimeslotResponseReserveFailureType.js b/dist/models/V1FbpEditTimeslotResponseReserveFailureType.js new file mode 100644 index 0000000..01f94d9 --- /dev/null +++ b/dist/models/V1FbpEditTimeslotResponseReserveFailureType.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1FbpEditTimeslotResponseReserveFailureType = void 0; +exports.instanceOfV1FbpEditTimeslotResponseReserveFailureType = instanceOfV1FbpEditTimeslotResponseReserveFailureType; +exports.V1FbpEditTimeslotResponseReserveFailureTypeFromJSON = V1FbpEditTimeslotResponseReserveFailureTypeFromJSON; +exports.V1FbpEditTimeslotResponseReserveFailureTypeFromJSONTyped = V1FbpEditTimeslotResponseReserveFailureTypeFromJSONTyped; +exports.V1FbpEditTimeslotResponseReserveFailureTypeToJSON = V1FbpEditTimeslotResponseReserveFailureTypeToJSON; +/** + * + * @export + */ +exports.V1FbpEditTimeslotResponseReserveFailureType = { + RESERVE_FAILURE_TYPE_UNSPECIFIED: 'RESERVE_FAILURE_TYPE_UNSPECIFIED', + REQUEST_VALIDATION: 'REQUEST_VALIDATION', + INVALID_RESERVE: 'INVALID_RESERVE', + LOGISTICS_REASON: 'LOGISTICS_REASON', + SCHEDULE_REASON: 'SCHEDULE_REASON' +}; +function instanceOfV1FbpEditTimeslotResponseReserveFailureType(value) { + for (const key in exports.V1FbpEditTimeslotResponseReserveFailureType) { + if (Object.prototype.hasOwnProperty.call(exports.V1FbpEditTimeslotResponseReserveFailureType, key)) { + if (exports.V1FbpEditTimeslotResponseReserveFailureType[key] === value) { + return true; + } + } + } + return false; +} +function V1FbpEditTimeslotResponseReserveFailureTypeFromJSON(json) { + return V1FbpEditTimeslotResponseReserveFailureTypeFromJSONTyped(json, false); +} +function V1FbpEditTimeslotResponseReserveFailureTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1FbpEditTimeslotResponseReserveFailureTypeToJSON(value) { + return value; +} diff --git a/dist/models/V1FbpGetLabelRequest.d.ts b/dist/models/V1FbpGetLabelRequest.d.ts new file mode 100644 index 0000000..d56ca16 --- /dev/null +++ b/dist/models/V1FbpGetLabelRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpGetLabelRequest + */ +export interface V1FbpGetLabelRequest { + /** + * Идентификатор задания на генерацию этикеток. + * @type {string} + * @memberof V1FbpGetLabelRequest + */ + code: string; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpGetLabelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpGetLabelRequest interface. + */ +export declare function instanceOfV1FbpGetLabelRequest(value: object): value is V1FbpGetLabelRequest; +export declare function V1FbpGetLabelRequestFromJSON(json: any): V1FbpGetLabelRequest; +export declare function V1FbpGetLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpGetLabelRequest; +export declare function V1FbpGetLabelRequestToJSON(value?: V1FbpGetLabelRequest | null): any; diff --git a/dist/models/V1FbpGetLabelRequest.js b/dist/models/V1FbpGetLabelRequest.js new file mode 100644 index 0000000..f4a0d06 --- /dev/null +++ b/dist/models/V1FbpGetLabelRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpGetLabelRequest = instanceOfV1FbpGetLabelRequest; +exports.V1FbpGetLabelRequestFromJSON = V1FbpGetLabelRequestFromJSON; +exports.V1FbpGetLabelRequestFromJSONTyped = V1FbpGetLabelRequestFromJSONTyped; +exports.V1FbpGetLabelRequestToJSON = V1FbpGetLabelRequestToJSON; +/** + * Check if a given object implements the V1FbpGetLabelRequest interface. + */ +function instanceOfV1FbpGetLabelRequest(value) { + if (!('code' in value) || value['code'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpGetLabelRequestFromJSON(json) { + return V1FbpGetLabelRequestFromJSONTyped(json, false); +} +function V1FbpGetLabelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpGetLabelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpGetLabelResponse.d.ts b/dist/models/V1FbpGetLabelResponse.d.ts new file mode 100644 index 0000000..a460f7f --- /dev/null +++ b/dist/models/V1FbpGetLabelResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpGetLabelResponseLabelCreationStateTypeEnum } from './FbpGetLabelResponseLabelCreationStateTypeEnum'; +/** + * + * @export + * @interface V1FbpGetLabelResponse + */ +export interface V1FbpGetLabelResponse { + /** + * Ссылка на этикетки для поставки. + * @type {string} + * @memberof V1FbpGetLabelResponse + */ + label_url?: string; + /** + * + * @type {FbpGetLabelResponseLabelCreationStateTypeEnum} + * @memberof V1FbpGetLabelResponse + */ + state?: FbpGetLabelResponseLabelCreationStateTypeEnum; +} +/** + * Check if a given object implements the V1FbpGetLabelResponse interface. + */ +export declare function instanceOfV1FbpGetLabelResponse(value: object): value is V1FbpGetLabelResponse; +export declare function V1FbpGetLabelResponseFromJSON(json: any): V1FbpGetLabelResponse; +export declare function V1FbpGetLabelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpGetLabelResponse; +export declare function V1FbpGetLabelResponseToJSON(value?: V1FbpGetLabelResponse | null): any; diff --git a/dist/models/V1FbpGetLabelResponse.js b/dist/models/V1FbpGetLabelResponse.js new file mode 100644 index 0000000..cf1d0fa --- /dev/null +++ b/dist/models/V1FbpGetLabelResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpGetLabelResponse = instanceOfV1FbpGetLabelResponse; +exports.V1FbpGetLabelResponseFromJSON = V1FbpGetLabelResponseFromJSON; +exports.V1FbpGetLabelResponseFromJSONTyped = V1FbpGetLabelResponseFromJSONTyped; +exports.V1FbpGetLabelResponseToJSON = V1FbpGetLabelResponseToJSON; +const FbpGetLabelResponseLabelCreationStateTypeEnum_1 = require("./FbpGetLabelResponseLabelCreationStateTypeEnum"); +/** + * Check if a given object implements the V1FbpGetLabelResponse interface. + */ +function instanceOfV1FbpGetLabelResponse(value) { + return true; +} +function V1FbpGetLabelResponseFromJSON(json) { + return V1FbpGetLabelResponseFromJSONTyped(json, false); +} +function V1FbpGetLabelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'label_url': json['label_url'] == null ? undefined : json['label_url'], + 'state': json['state'] == null ? undefined : (0, FbpGetLabelResponseLabelCreationStateTypeEnum_1.FbpGetLabelResponseLabelCreationStateTypeEnumFromJSON)(json['state']), + }; +} +function V1FbpGetLabelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'label_url': value['label_url'], + 'state': (0, FbpGetLabelResponseLabelCreationStateTypeEnum_1.FbpGetLabelResponseLabelCreationStateTypeEnumToJSON)(value['state']), + }; +} diff --git a/dist/models/V1FbpOrderDirectCancelRequest.d.ts b/dist/models/V1FbpOrderDirectCancelRequest.d.ts new file mode 100644 index 0000000..cc24d9c --- /dev/null +++ b/dist/models/V1FbpOrderDirectCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDirectCancelRequest + */ +export interface V1FbpOrderDirectCancelRequest { + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpOrderDirectCancelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderDirectCancelRequest interface. + */ +export declare function instanceOfV1FbpOrderDirectCancelRequest(value: object): value is V1FbpOrderDirectCancelRequest; +export declare function V1FbpOrderDirectCancelRequestFromJSON(json: any): V1FbpOrderDirectCancelRequest; +export declare function V1FbpOrderDirectCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDirectCancelRequest; +export declare function V1FbpOrderDirectCancelRequestToJSON(value?: V1FbpOrderDirectCancelRequest | null): any; diff --git a/dist/models/V1FbpOrderDirectCancelRequest.js b/dist/models/V1FbpOrderDirectCancelRequest.js new file mode 100644 index 0000000..9c1c14a --- /dev/null +++ b/dist/models/V1FbpOrderDirectCancelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDirectCancelRequest = instanceOfV1FbpOrderDirectCancelRequest; +exports.V1FbpOrderDirectCancelRequestFromJSON = V1FbpOrderDirectCancelRequestFromJSON; +exports.V1FbpOrderDirectCancelRequestFromJSONTyped = V1FbpOrderDirectCancelRequestFromJSONTyped; +exports.V1FbpOrderDirectCancelRequestToJSON = V1FbpOrderDirectCancelRequestToJSON; +/** + * Check if a given object implements the V1FbpOrderDirectCancelRequest interface. + */ +function instanceOfV1FbpOrderDirectCancelRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpOrderDirectCancelRequestFromJSON(json) { + return V1FbpOrderDirectCancelRequestFromJSONTyped(json, false); +} +function V1FbpOrderDirectCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpOrderDirectCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpOrderDirectCancelResponse.d.ts b/dist/models/V1FbpOrderDirectCancelResponse.d.ts new file mode 100644 index 0000000..0ed642d --- /dev/null +++ b/dist/models/V1FbpOrderDirectCancelResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderDirectCancelResponse + */ +export interface V1FbpOrderDirectCancelResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderDirectCancelResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderDirectCancelResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDirectCancelResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderDirectCancelResponse interface. + */ +export declare function instanceOfV1FbpOrderDirectCancelResponse(value: object): value is V1FbpOrderDirectCancelResponse; +export declare function V1FbpOrderDirectCancelResponseFromJSON(json: any): V1FbpOrderDirectCancelResponse; +export declare function V1FbpOrderDirectCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDirectCancelResponse; +export declare function V1FbpOrderDirectCancelResponseToJSON(value?: V1FbpOrderDirectCancelResponse | null): any; diff --git a/dist/models/V1FbpOrderDirectCancelResponse.js b/dist/models/V1FbpOrderDirectCancelResponse.js new file mode 100644 index 0000000..78822b6 --- /dev/null +++ b/dist/models/V1FbpOrderDirectCancelResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDirectCancelResponse = instanceOfV1FbpOrderDirectCancelResponse; +exports.V1FbpOrderDirectCancelResponseFromJSON = V1FbpOrderDirectCancelResponseFromJSON; +exports.V1FbpOrderDirectCancelResponseFromJSONTyped = V1FbpOrderDirectCancelResponseFromJSONTyped; +exports.V1FbpOrderDirectCancelResponseToJSON = V1FbpOrderDirectCancelResponseToJSON; +const V1OrderValidationError_1 = require("./V1OrderValidationError"); +/** + * Check if a given object implements the V1FbpOrderDirectCancelResponse interface. + */ +function instanceOfV1FbpOrderDirectCancelResponse(value) { + return true; +} +function V1FbpOrderDirectCancelResponseFromJSON(json) { + return V1FbpOrderDirectCancelResponseFromJSONTyped(json, false); +} +function V1FbpOrderDirectCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1OrderValidationError_1.V1OrderValidationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpOrderDirectCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1OrderValidationError_1.V1OrderValidationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpOrderDirectSellerDlvEditRequest.d.ts b/dist/models/V1FbpOrderDirectSellerDlvEditRequest.d.ts new file mode 100644 index 0000000..a158bef --- /dev/null +++ b/dist/models/V1FbpOrderDirectSellerDlvEditRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDirectSellerDlvEditRequest + */ +export interface V1FbpOrderDirectSellerDlvEditRequest { + /** + * ФИО водителя. + * @type {string} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + driver_name: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + row_version: number; + /** + * Идентификатор заявки на поставку. + * @type {string} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + supply_id: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + vehicle_number: string; + /** + * Тип автомобиля. + * @type {string} + * @memberof V1FbpOrderDirectSellerDlvEditRequest + */ + vehicle_type: string; +} +/** + * Check if a given object implements the V1FbpOrderDirectSellerDlvEditRequest interface. + */ +export declare function instanceOfV1FbpOrderDirectSellerDlvEditRequest(value: object): value is V1FbpOrderDirectSellerDlvEditRequest; +export declare function V1FbpOrderDirectSellerDlvEditRequestFromJSON(json: any): V1FbpOrderDirectSellerDlvEditRequest; +export declare function V1FbpOrderDirectSellerDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDirectSellerDlvEditRequest; +export declare function V1FbpOrderDirectSellerDlvEditRequestToJSON(value?: V1FbpOrderDirectSellerDlvEditRequest | null): any; diff --git a/dist/models/V1FbpOrderDirectSellerDlvEditRequest.js b/dist/models/V1FbpOrderDirectSellerDlvEditRequest.js new file mode 100644 index 0000000..40ea586 --- /dev/null +++ b/dist/models/V1FbpOrderDirectSellerDlvEditRequest.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDirectSellerDlvEditRequest = instanceOfV1FbpOrderDirectSellerDlvEditRequest; +exports.V1FbpOrderDirectSellerDlvEditRequestFromJSON = V1FbpOrderDirectSellerDlvEditRequestFromJSON; +exports.V1FbpOrderDirectSellerDlvEditRequestFromJSONTyped = V1FbpOrderDirectSellerDlvEditRequestFromJSONTyped; +exports.V1FbpOrderDirectSellerDlvEditRequestToJSON = V1FbpOrderDirectSellerDlvEditRequestToJSON; +/** + * Check if a given object implements the V1FbpOrderDirectSellerDlvEditRequest interface. + */ +function instanceOfV1FbpOrderDirectSellerDlvEditRequest(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + if (!('vehicle_number' in value) || value['vehicle_number'] === undefined) + return false; + if (!('vehicle_type' in value) || value['vehicle_type'] === undefined) + return false; + return true; +} +function V1FbpOrderDirectSellerDlvEditRequestFromJSON(json) { + return V1FbpOrderDirectSellerDlvEditRequestFromJSONTyped(json, false); +} +function V1FbpOrderDirectSellerDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + 'vehicle_number': json['vehicle_number'], + 'vehicle_type': json['vehicle_type'], + }; +} +function V1FbpOrderDirectSellerDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + 'vehicle_number': value['vehicle_number'], + 'vehicle_type': value['vehicle_type'], + }; +} diff --git a/dist/models/V1FbpOrderDirectSellerDlvEditResponse.d.ts b/dist/models/V1FbpOrderDirectSellerDlvEditResponse.d.ts new file mode 100644 index 0000000..6ad5831 --- /dev/null +++ b/dist/models/V1FbpOrderDirectSellerDlvEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderDirectSellerDlvEditResponse + */ +export interface V1FbpOrderDirectSellerDlvEditResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderDirectSellerDlvEditResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderDirectSellerDlvEditResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDirectSellerDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderDirectSellerDlvEditResponse interface. + */ +export declare function instanceOfV1FbpOrderDirectSellerDlvEditResponse(value: object): value is V1FbpOrderDirectSellerDlvEditResponse; +export declare function V1FbpOrderDirectSellerDlvEditResponseFromJSON(json: any): V1FbpOrderDirectSellerDlvEditResponse; +export declare function V1FbpOrderDirectSellerDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDirectSellerDlvEditResponse; +export declare function V1FbpOrderDirectSellerDlvEditResponseToJSON(value?: V1FbpOrderDirectSellerDlvEditResponse | null): any; diff --git a/dist/models/V1FbpOrderDirectSellerDlvEditResponse.js b/dist/models/V1FbpOrderDirectSellerDlvEditResponse.js new file mode 100644 index 0000000..5f02a35 --- /dev/null +++ b/dist/models/V1FbpOrderDirectSellerDlvEditResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDirectSellerDlvEditResponse = instanceOfV1FbpOrderDirectSellerDlvEditResponse; +exports.V1FbpOrderDirectSellerDlvEditResponseFromJSON = V1FbpOrderDirectSellerDlvEditResponseFromJSON; +exports.V1FbpOrderDirectSellerDlvEditResponseFromJSONTyped = V1FbpOrderDirectSellerDlvEditResponseFromJSONTyped; +exports.V1FbpOrderDirectSellerDlvEditResponseToJSON = V1FbpOrderDirectSellerDlvEditResponseToJSON; +const V1OrderValidationError_1 = require("./V1OrderValidationError"); +/** + * Check if a given object implements the V1FbpOrderDirectSellerDlvEditResponse interface. + */ +function instanceOfV1FbpOrderDirectSellerDlvEditResponse(value) { + return true; +} +function V1FbpOrderDirectSellerDlvEditResponseFromJSON(json) { + return V1FbpOrderDirectSellerDlvEditResponseFromJSONTyped(json, false); +} +function V1FbpOrderDirectSellerDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1OrderValidationError_1.V1OrderValidationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpOrderDirectSellerDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1OrderValidationError_1.V1OrderValidationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpOrderDropOffCancelRequest.d.ts b/dist/models/V1FbpOrderDropOffCancelRequest.d.ts new file mode 100644 index 0000000..38b8a6f --- /dev/null +++ b/dist/models/V1FbpOrderDropOffCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDropOffCancelRequest + */ +export interface V1FbpOrderDropOffCancelRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderDropOffCancelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderDropOffCancelRequest interface. + */ +export declare function instanceOfV1FbpOrderDropOffCancelRequest(value: object): value is V1FbpOrderDropOffCancelRequest; +export declare function V1FbpOrderDropOffCancelRequestFromJSON(json: any): V1FbpOrderDropOffCancelRequest; +export declare function V1FbpOrderDropOffCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffCancelRequest; +export declare function V1FbpOrderDropOffCancelRequestToJSON(value?: V1FbpOrderDropOffCancelRequest | null): any; diff --git a/dist/models/V1FbpOrderDropOffCancelRequest.js b/dist/models/V1FbpOrderDropOffCancelRequest.js new file mode 100644 index 0000000..f14e73e --- /dev/null +++ b/dist/models/V1FbpOrderDropOffCancelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffCancelRequest = instanceOfV1FbpOrderDropOffCancelRequest; +exports.V1FbpOrderDropOffCancelRequestFromJSON = V1FbpOrderDropOffCancelRequestFromJSON; +exports.V1FbpOrderDropOffCancelRequestFromJSONTyped = V1FbpOrderDropOffCancelRequestFromJSONTyped; +exports.V1FbpOrderDropOffCancelRequestToJSON = V1FbpOrderDropOffCancelRequestToJSON; +/** + * Check if a given object implements the V1FbpOrderDropOffCancelRequest interface. + */ +function instanceOfV1FbpOrderDropOffCancelRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpOrderDropOffCancelRequestFromJSON(json) { + return V1FbpOrderDropOffCancelRequestFromJSONTyped(json, false); +} +function V1FbpOrderDropOffCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpOrderDropOffCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpOrderDropOffCancelResponse.d.ts b/dist/models/V1FbpOrderDropOffCancelResponse.d.ts new file mode 100644 index 0000000..80613da --- /dev/null +++ b/dist/models/V1FbpOrderDropOffCancelResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderDropOffCancelResponse + */ +export interface V1FbpOrderDropOffCancelResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderDropOffCancelResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderDropOffCancelResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDropOffCancelResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderDropOffCancelResponse interface. + */ +export declare function instanceOfV1FbpOrderDropOffCancelResponse(value: object): value is V1FbpOrderDropOffCancelResponse; +export declare function V1FbpOrderDropOffCancelResponseFromJSON(json: any): V1FbpOrderDropOffCancelResponse; +export declare function V1FbpOrderDropOffCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffCancelResponse; +export declare function V1FbpOrderDropOffCancelResponseToJSON(value?: V1FbpOrderDropOffCancelResponse | null): any; diff --git a/dist/models/V1FbpOrderDropOffCancelResponse.js b/dist/models/V1FbpOrderDropOffCancelResponse.js new file mode 100644 index 0000000..523c93c --- /dev/null +++ b/dist/models/V1FbpOrderDropOffCancelResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffCancelResponse = instanceOfV1FbpOrderDropOffCancelResponse; +exports.V1FbpOrderDropOffCancelResponseFromJSON = V1FbpOrderDropOffCancelResponseFromJSON; +exports.V1FbpOrderDropOffCancelResponseFromJSONTyped = V1FbpOrderDropOffCancelResponseFromJSONTyped; +exports.V1FbpOrderDropOffCancelResponseToJSON = V1FbpOrderDropOffCancelResponseToJSON; +const V1OrderValidationError_1 = require("./V1OrderValidationError"); +/** + * Check if a given object implements the V1FbpOrderDropOffCancelResponse interface. + */ +function instanceOfV1FbpOrderDropOffCancelResponse(value) { + return true; +} +function V1FbpOrderDropOffCancelResponseFromJSON(json) { + return V1FbpOrderDropOffCancelResponseFromJSONTyped(json, false); +} +function V1FbpOrderDropOffCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1OrderValidationError_1.V1OrderValidationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpOrderDropOffCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1OrderValidationError_1.V1OrderValidationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpOrderDropOffDlvEditRequest.d.ts b/dist/models/V1FbpOrderDropOffDlvEditRequest.d.ts new file mode 100644 index 0000000..a8909d2 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffDlvEditRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDropOffDlvEditRequest + */ +export interface V1FbpOrderDropOffDlvEditRequest { + /** + * Дата прибытия поставки на drop-off пункт. + * @type {string} + * @memberof V1FbpOrderDropOffDlvEditRequest + */ + drop_off_date: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDropOffDlvEditRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderDropOffDlvEditRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderDropOffDlvEditRequest interface. + */ +export declare function instanceOfV1FbpOrderDropOffDlvEditRequest(value: object): value is V1FbpOrderDropOffDlvEditRequest; +export declare function V1FbpOrderDropOffDlvEditRequestFromJSON(json: any): V1FbpOrderDropOffDlvEditRequest; +export declare function V1FbpOrderDropOffDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffDlvEditRequest; +export declare function V1FbpOrderDropOffDlvEditRequestToJSON(value?: V1FbpOrderDropOffDlvEditRequest | null): any; diff --git a/dist/models/V1FbpOrderDropOffDlvEditRequest.js b/dist/models/V1FbpOrderDropOffDlvEditRequest.js new file mode 100644 index 0000000..1230101 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffDlvEditRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffDlvEditRequest = instanceOfV1FbpOrderDropOffDlvEditRequest; +exports.V1FbpOrderDropOffDlvEditRequestFromJSON = V1FbpOrderDropOffDlvEditRequestFromJSON; +exports.V1FbpOrderDropOffDlvEditRequestFromJSONTyped = V1FbpOrderDropOffDlvEditRequestFromJSONTyped; +exports.V1FbpOrderDropOffDlvEditRequestToJSON = V1FbpOrderDropOffDlvEditRequestToJSON; +/** + * Check if a given object implements the V1FbpOrderDropOffDlvEditRequest interface. + */ +function instanceOfV1FbpOrderDropOffDlvEditRequest(value) { + if (!('drop_off_date' in value) || value['drop_off_date'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpOrderDropOffDlvEditRequestFromJSON(json) { + return V1FbpOrderDropOffDlvEditRequestFromJSONTyped(json, false); +} +function V1FbpOrderDropOffDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_date': json['drop_off_date'], + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpOrderDropOffDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_date': value['drop_off_date'], + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpOrderDropOffDlvEditResponse.d.ts b/dist/models/V1FbpOrderDropOffDlvEditResponse.d.ts new file mode 100644 index 0000000..ccb86bb --- /dev/null +++ b/dist/models/V1FbpOrderDropOffDlvEditResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDropOffDlvEditResponse + */ +export interface V1FbpOrderDropOffDlvEditResponse { + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderDropOffDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderDropOffDlvEditResponse interface. + */ +export declare function instanceOfV1FbpOrderDropOffDlvEditResponse(value: object): value is V1FbpOrderDropOffDlvEditResponse; +export declare function V1FbpOrderDropOffDlvEditResponseFromJSON(json: any): V1FbpOrderDropOffDlvEditResponse; +export declare function V1FbpOrderDropOffDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffDlvEditResponse; +export declare function V1FbpOrderDropOffDlvEditResponseToJSON(value?: V1FbpOrderDropOffDlvEditResponse | null): any; diff --git a/dist/models/V1FbpOrderDropOffDlvEditResponse.js b/dist/models/V1FbpOrderDropOffDlvEditResponse.js new file mode 100644 index 0000000..c499c03 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffDlvEditResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffDlvEditResponse = instanceOfV1FbpOrderDropOffDlvEditResponse; +exports.V1FbpOrderDropOffDlvEditResponseFromJSON = V1FbpOrderDropOffDlvEditResponseFromJSON; +exports.V1FbpOrderDropOffDlvEditResponseFromJSONTyped = V1FbpOrderDropOffDlvEditResponseFromJSONTyped; +exports.V1FbpOrderDropOffDlvEditResponseToJSON = V1FbpOrderDropOffDlvEditResponseToJSON; +/** + * Check if a given object implements the V1FbpOrderDropOffDlvEditResponse interface. + */ +function instanceOfV1FbpOrderDropOffDlvEditResponse(value) { + return true; +} +function V1FbpOrderDropOffDlvEditResponseFromJSON(json) { + return V1FbpOrderDropOffDlvEditResponseFromJSONTyped(json, false); +} +function V1FbpOrderDropOffDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpOrderDropOffDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpOrderDropOffTimetableRequest.d.ts b/dist/models/V1FbpOrderDropOffTimetableRequest.d.ts new file mode 100644 index 0000000..fc8f722 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderDropOffTimetableRequest + */ +export interface V1FbpOrderDropOffTimetableRequest { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1FbpOrderDropOffTimetableRequest + */ + drop_off_point_id: number; + /** + * Уникальный идентификатор провинции. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableRequest + */ + province_uuid: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpOrderDropOffTimetableRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableRequest interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableRequest(value: object): value is V1FbpOrderDropOffTimetableRequest; +export declare function V1FbpOrderDropOffTimetableRequestFromJSON(json: any): V1FbpOrderDropOffTimetableRequest; +export declare function V1FbpOrderDropOffTimetableRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableRequest; +export declare function V1FbpOrderDropOffTimetableRequestToJSON(value?: V1FbpOrderDropOffTimetableRequest | null): any; diff --git a/dist/models/V1FbpOrderDropOffTimetableRequest.js b/dist/models/V1FbpOrderDropOffTimetableRequest.js new file mode 100644 index 0000000..e5bbbb9 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffTimetableRequest = instanceOfV1FbpOrderDropOffTimetableRequest; +exports.V1FbpOrderDropOffTimetableRequestFromJSON = V1FbpOrderDropOffTimetableRequestFromJSON; +exports.V1FbpOrderDropOffTimetableRequestFromJSONTyped = V1FbpOrderDropOffTimetableRequestFromJSONTyped; +exports.V1FbpOrderDropOffTimetableRequestToJSON = V1FbpOrderDropOffTimetableRequestToJSON; +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableRequest interface. + */ +function instanceOfV1FbpOrderDropOffTimetableRequest(value) { + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('province_uuid' in value) || value['province_uuid'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1FbpOrderDropOffTimetableRequestFromJSON(json) { + return V1FbpOrderDropOffTimetableRequestFromJSONTyped(json, false); +} +function V1FbpOrderDropOffTimetableRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_point_id': json['drop_off_point_id'], + 'province_uuid': json['province_uuid'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1FbpOrderDropOffTimetableRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_point_id': value['drop_off_point_id'], + 'province_uuid': value['province_uuid'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpOrderDropOffTimetableResponse.d.ts b/dist/models/V1FbpOrderDropOffTimetableResponse.d.ts new file mode 100644 index 0000000..f8099e1 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderDropOffTimetableResponseCalendar } from './V1FbpOrderDropOffTimetableResponseCalendar'; +/** + * + * @export + * @interface V1FbpOrderDropOffTimetableResponse + */ +export interface V1FbpOrderDropOffTimetableResponse { + /** + * Информация о графике работы drop-off пункта. + * @type {Array} + * @memberof V1FbpOrderDropOffTimetableResponse + */ + calendar?: Array; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponse interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponse(value: object): value is V1FbpOrderDropOffTimetableResponse; +export declare function V1FbpOrderDropOffTimetableResponseFromJSON(json: any): V1FbpOrderDropOffTimetableResponse; +export declare function V1FbpOrderDropOffTimetableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponse; +export declare function V1FbpOrderDropOffTimetableResponseToJSON(value?: V1FbpOrderDropOffTimetableResponse | null): any; diff --git a/dist/models/V1FbpOrderDropOffTimetableResponse.js b/dist/models/V1FbpOrderDropOffTimetableResponse.js new file mode 100644 index 0000000..4661cfb --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffTimetableResponse = instanceOfV1FbpOrderDropOffTimetableResponse; +exports.V1FbpOrderDropOffTimetableResponseFromJSON = V1FbpOrderDropOffTimetableResponseFromJSON; +exports.V1FbpOrderDropOffTimetableResponseFromJSONTyped = V1FbpOrderDropOffTimetableResponseFromJSONTyped; +exports.V1FbpOrderDropOffTimetableResponseToJSON = V1FbpOrderDropOffTimetableResponseToJSON; +const V1FbpOrderDropOffTimetableResponseCalendar_1 = require("./V1FbpOrderDropOffTimetableResponseCalendar"); +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponse interface. + */ +function instanceOfV1FbpOrderDropOffTimetableResponse(value) { + return true; +} +function V1FbpOrderDropOffTimetableResponseFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseFromJSONTyped(json, false); +} +function V1FbpOrderDropOffTimetableResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calendar': json['calendar'] == null ? undefined : (json['calendar'].map(V1FbpOrderDropOffTimetableResponseCalendar_1.V1FbpOrderDropOffTimetableResponseCalendarFromJSON)), + }; +} +function V1FbpOrderDropOffTimetableResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'calendar': value['calendar'] == null ? undefined : (value['calendar'].map(V1FbpOrderDropOffTimetableResponseCalendar_1.V1FbpOrderDropOffTimetableResponseCalendarToJSON)), + }; +} diff --git a/dist/models/V1FbpOrderDropOffTimetableResponseCalendar.d.ts b/dist/models/V1FbpOrderDropOffTimetableResponseCalendar.d.ts new file mode 100644 index 0000000..b6492d8 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponseCalendar.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderDropOffTimetableResponseCalendarCalendarItem } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItem'; +import type { V1DayOfWeek } from './V1DayOfWeek'; +/** + * + * @export + * @interface V1FbpOrderDropOffTimetableResponseCalendar + */ +export interface V1FbpOrderDropOffTimetableResponseCalendar { + /** + * + * @type {V1FbpOrderDropOffTimetableResponseCalendarCalendarItem} + * @memberof V1FbpOrderDropOffTimetableResponseCalendar + */ + calendar_item?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItem; + /** + * + * @type {V1DayOfWeek} + * @memberof V1FbpOrderDropOffTimetableResponseCalendar + */ + day_of_week?: V1DayOfWeek; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendar interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponseCalendar(value: object): value is V1FbpOrderDropOffTimetableResponseCalendar; +export declare function V1FbpOrderDropOffTimetableResponseCalendarFromJSON(json: any): V1FbpOrderDropOffTimetableResponseCalendar; +export declare function V1FbpOrderDropOffTimetableResponseCalendarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponseCalendar; +export declare function V1FbpOrderDropOffTimetableResponseCalendarToJSON(value?: V1FbpOrderDropOffTimetableResponseCalendar | null): any; diff --git a/dist/models/V1FbpOrderDropOffTimetableResponseCalendar.js b/dist/models/V1FbpOrderDropOffTimetableResponseCalendar.js new file mode 100644 index 0000000..907379b --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponseCalendar.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffTimetableResponseCalendar = instanceOfV1FbpOrderDropOffTimetableResponseCalendar; +exports.V1FbpOrderDropOffTimetableResponseCalendarFromJSON = V1FbpOrderDropOffTimetableResponseCalendarFromJSON; +exports.V1FbpOrderDropOffTimetableResponseCalendarFromJSONTyped = V1FbpOrderDropOffTimetableResponseCalendarFromJSONTyped; +exports.V1FbpOrderDropOffTimetableResponseCalendarToJSON = V1FbpOrderDropOffTimetableResponseCalendarToJSON; +const V1FbpOrderDropOffTimetableResponseCalendarCalendarItem_1 = require("./V1FbpOrderDropOffTimetableResponseCalendarCalendarItem"); +const V1DayOfWeek_1 = require("./V1DayOfWeek"); +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendar interface. + */ +function instanceOfV1FbpOrderDropOffTimetableResponseCalendar(value) { + return true; +} +function V1FbpOrderDropOffTimetableResponseCalendarFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseCalendarFromJSONTyped(json, false); +} +function V1FbpOrderDropOffTimetableResponseCalendarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'calendar_item': json['calendar_item'] == null ? undefined : (0, V1FbpOrderDropOffTimetableResponseCalendarCalendarItem_1.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON)(json['calendar_item']), + 'day_of_week': json['day_of_week'] == null ? undefined : (0, V1DayOfWeek_1.V1DayOfWeekFromJSON)(json['day_of_week']), + }; +} +function V1FbpOrderDropOffTimetableResponseCalendarToJSON(value) { + if (value == null) { + return value; + } + return { + 'calendar_item': (0, V1FbpOrderDropOffTimetableResponseCalendarCalendarItem_1.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON)(value['calendar_item']), + 'day_of_week': (0, V1DayOfWeek_1.V1DayOfWeekToJSON)(value['day_of_week']), + }; +} diff --git a/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.d.ts b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.d.ts new file mode 100644 index 0000000..f232091 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak'; +import type { V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime } from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime'; +/** + * Информация о дне. + * @export + * @interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItem + */ +export interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItem { + /** + * + * @type {V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItem + */ + break_hours?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; + /** + * `true`, если выходной день. + * + * @type {boolean} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItem + */ + is_holiday?: boolean; + /** + * + * @type {V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItem + */ + opening_hours?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItem interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItem(value: object): value is V1FbpOrderDropOffTimetableResponseCalendarCalendarItem; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON(json: any): V1FbpOrderDropOffTimetableResponseCalendarCalendarItem; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponseCalendarCalendarItem; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON(value?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItem | null): any; diff --git a/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.js b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.js new file mode 100644 index 0000000..6210148 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItem.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItem = instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItem; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSONTyped = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSONTyped; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON; +const V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak_1 = require("./V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak"); +const V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime_1 = require("./V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime"); +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItem interface. + */ +function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItem(value) { + return true; +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSONTyped(json, false); +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'break_hours': json['break_hours'] == null ? undefined : (0, V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak_1.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON)(json['break_hours']), + 'is_holiday': json['is_holiday'] == null ? undefined : json['is_holiday'], + 'opening_hours': json['opening_hours'] == null ? undefined : (0, V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime_1.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON)(json['opening_hours']), + }; +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'break_hours': (0, V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak_1.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON)(value['break_hours']), + 'is_holiday': value['is_holiday'], + 'opening_hours': (0, V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime_1.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON)(value['opening_hours']), + }; +} diff --git a/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts new file mode 100644 index 0000000..fca5bef --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о рабочих часах. + * @export + * @interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime + */ +export interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime { + /** + * Время начала. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime + */ + timeslot_end?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime(value: object): value is V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json: any): V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime | null): any; diff --git a/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.js b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.js new file mode 100644 index 0000000..be58345 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime = instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON; +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime interface. + */ +function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime(value) { + return true; +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json, false); +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.d.ts b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.d.ts new file mode 100644 index 0000000..81fcba3 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о перерыве. + * @export + * @interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak + */ +export interface V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak { + /** + * Время начала. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak + */ + timeslot_end?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak interface. + */ +export declare function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak(value: object): value is V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON(json: any): V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; +export declare function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON(value?: V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak | null): any; diff --git a/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.js b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.js new file mode 100644 index 0000000..6daee30 --- /dev/null +++ b/dist/models/V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak = instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSONTyped = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSONTyped; +exports.V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON = V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON; +/** + * Check if a given object implements the V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak interface. + */ +function instanceOfV1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak(value) { + return true; +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSON(json) { + return V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSONTyped(json, false); +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +function V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreakToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V1FbpOrderGetRequest.d.ts b/dist/models/V1FbpOrderGetRequest.d.ts new file mode 100644 index 0000000..c56d68e --- /dev/null +++ b/dist/models/V1FbpOrderGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderGetRequest + */ +export interface V1FbpOrderGetRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderGetRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderGetRequest interface. + */ +export declare function instanceOfV1FbpOrderGetRequest(value: object): value is V1FbpOrderGetRequest; +export declare function V1FbpOrderGetRequestFromJSON(json: any): V1FbpOrderGetRequest; +export declare function V1FbpOrderGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderGetRequest; +export declare function V1FbpOrderGetRequestToJSON(value?: V1FbpOrderGetRequest | null): any; diff --git a/dist/models/V1FbpOrderGetRequest.js b/dist/models/V1FbpOrderGetRequest.js new file mode 100644 index 0000000..f291587 --- /dev/null +++ b/dist/models/V1FbpOrderGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderGetRequest = instanceOfV1FbpOrderGetRequest; +exports.V1FbpOrderGetRequestFromJSON = V1FbpOrderGetRequestFromJSON; +exports.V1FbpOrderGetRequestFromJSONTyped = V1FbpOrderGetRequestFromJSONTyped; +exports.V1FbpOrderGetRequestToJSON = V1FbpOrderGetRequestToJSON; +/** + * Check if a given object implements the V1FbpOrderGetRequest interface. + */ +function instanceOfV1FbpOrderGetRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpOrderGetRequestFromJSON(json) { + return V1FbpOrderGetRequestFromJSONTyped(json, false); +} +function V1FbpOrderGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpOrderGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpOrderGetResponse.d.ts b/dist/models/V1FbpOrderGetResponse.d.ts new file mode 100644 index 0000000..722b4e5 --- /dev/null +++ b/dist/models/V1FbpOrderGetResponse.d.ts @@ -0,0 +1,145 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fbpv1DeliveryDetails } from './Fbpv1DeliveryDetails'; +import type { V1CancellationState } from './V1CancellationState'; +import type { V1OrderStatusEnum } from './V1OrderStatusEnum'; +import type { V1OrderAttentionTypeEnum } from './V1OrderAttentionTypeEnum'; +/** + * + * @export + * @interface V1FbpOrderGetResponse + */ +export interface V1FbpOrderGetResponse { + /** + * Причины предупреждения: + * - `ORDER_ATTENTION_TYPE_UNSPECIFIED` — не определена; + * - `OLD` — устаревшая заявка; + * - `TIME_SLOT_EXPIRED` — таймслот просрочен. + * + * @type {Array} + * @memberof V1FbpOrderGetResponse + */ + attention_reasons?: Array; + /** + * Идентификатор товарного состава. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + bundle_uuid?: string; + /** + * `true`, если заявку можно отменить. + * + * @type {boolean} + * @memberof V1FbpOrderGetResponse + */ + can_be_cancelled?: boolean; + /** + * + * @type {V1CancellationState} + * @memberof V1FbpOrderGetResponse + */ + cancellation_state?: V1CancellationState; + /** + * Дата создания поставки. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + created_date?: string; + /** + * + * @type {Fbpv1DeliveryDetails} + * @memberof V1FbpOrderGetResponse + */ + delivery_details?: Fbpv1DeliveryDetails; + /** + * Идентификатор черновика. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + draft_id?: number; + /** + * `true`, если есть подписанные документы. + * + * @type {boolean} + * @memberof V1FbpOrderGetResponse + */ + has_consignment_note?: boolean; + /** + * `true`, если есть этикетки. + * + * @type {boolean} + * @memberof V1FbpOrderGetResponse + */ + has_label?: boolean; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + id?: number; + /** + * `true`, если нельзя редактировать поставку. + * + * @type {boolean} + * @memberof V1FbpOrderGetResponse + */ + locked?: boolean; + /** + * Номер поставки. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + order_number?: string; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + package_units_count?: number; + /** + * Дата и время принятия поставки. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + receive_date?: string; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + row_version?: number; + /** + * + * @type {V1OrderStatusEnum} + * @memberof V1FbpOrderGetResponse + */ + status?: V1OrderStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderGetResponse + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpOrderGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpOrderGetResponse interface. + */ +export declare function instanceOfV1FbpOrderGetResponse(value: object): value is V1FbpOrderGetResponse; +export declare function V1FbpOrderGetResponseFromJSON(json: any): V1FbpOrderGetResponse; +export declare function V1FbpOrderGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderGetResponse; +export declare function V1FbpOrderGetResponseToJSON(value?: V1FbpOrderGetResponse | null): any; diff --git a/dist/models/V1FbpOrderGetResponse.js b/dist/models/V1FbpOrderGetResponse.js new file mode 100644 index 0000000..05462fd --- /dev/null +++ b/dist/models/V1FbpOrderGetResponse.js @@ -0,0 +1,82 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderGetResponse = instanceOfV1FbpOrderGetResponse; +exports.V1FbpOrderGetResponseFromJSON = V1FbpOrderGetResponseFromJSON; +exports.V1FbpOrderGetResponseFromJSONTyped = V1FbpOrderGetResponseFromJSONTyped; +exports.V1FbpOrderGetResponseToJSON = V1FbpOrderGetResponseToJSON; +const Fbpv1DeliveryDetails_1 = require("./Fbpv1DeliveryDetails"); +const V1CancellationState_1 = require("./V1CancellationState"); +const V1OrderStatusEnum_1 = require("./V1OrderStatusEnum"); +const V1OrderAttentionTypeEnum_1 = require("./V1OrderAttentionTypeEnum"); +/** + * Check if a given object implements the V1FbpOrderGetResponse interface. + */ +function instanceOfV1FbpOrderGetResponse(value) { + return true; +} +function V1FbpOrderGetResponseFromJSON(json) { + return V1FbpOrderGetResponseFromJSONTyped(json, false); +} +function V1FbpOrderGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attention_reasons': json['attention_reasons'] == null ? undefined : (json['attention_reasons'].map(V1OrderAttentionTypeEnum_1.V1OrderAttentionTypeEnumFromJSON)), + 'bundle_uuid': json['bundle_uuid'] == null ? undefined : json['bundle_uuid'], + 'can_be_cancelled': json['can_be_cancelled'] == null ? undefined : json['can_be_cancelled'], + 'cancellation_state': json['cancellation_state'] == null ? undefined : (0, V1CancellationState_1.V1CancellationStateFromJSON)(json['cancellation_state']), + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'delivery_details': json['delivery_details'] == null ? undefined : (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsFromJSON)(json['delivery_details']), + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'has_consignment_note': json['has_consignment_note'] == null ? undefined : json['has_consignment_note'], + 'has_label': json['has_label'] == null ? undefined : json['has_label'], + 'id': json['id'] == null ? undefined : json['id'], + 'locked': json['locked'] == null ? undefined : json['locked'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + 'status': json['status'] == null ? undefined : (0, V1OrderStatusEnum_1.V1OrderStatusEnumFromJSON)(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V1FbpOrderGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'attention_reasons': value['attention_reasons'] == null ? undefined : (value['attention_reasons'].map(V1OrderAttentionTypeEnum_1.V1OrderAttentionTypeEnumToJSON)), + 'bundle_uuid': value['bundle_uuid'], + 'can_be_cancelled': value['can_be_cancelled'], + 'cancellation_state': (0, V1CancellationState_1.V1CancellationStateToJSON)(value['cancellation_state']), + 'created_date': value['created_date'], + 'delivery_details': (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsToJSON)(value['delivery_details']), + 'draft_id': value['draft_id'], + 'has_consignment_note': value['has_consignment_note'], + 'has_label': value['has_label'], + 'id': value['id'], + 'locked': value['locked'], + 'order_number': value['order_number'], + 'package_units_count': value['package_units_count'], + 'receive_date': value['receive_date'], + 'row_version': value['row_version'], + 'status': (0, V1OrderStatusEnum_1.V1OrderStatusEnumToJSON)(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpOrderListRequest.d.ts b/dist/models/V1FbpOrderListRequest.d.ts new file mode 100644 index 0000000..c2ca116 --- /dev/null +++ b/dist/models/V1FbpOrderListRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderListRequest + */ +export interface V1FbpOrderListRequest { + /** + * Количество поставок в ответе. + * @type {number} + * @memberof V1FbpOrderListRequest + */ + count: number; + /** + * Идентификатор последней поставки на странице. Для первого запроса оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `id` последней поставки из ответа предыдущего запроса. + * + * @type {number} + * @memberof V1FbpOrderListRequest + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpOrderListRequest interface. + */ +export declare function instanceOfV1FbpOrderListRequest(value: object): value is V1FbpOrderListRequest; +export declare function V1FbpOrderListRequestFromJSON(json: any): V1FbpOrderListRequest; +export declare function V1FbpOrderListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderListRequest; +export declare function V1FbpOrderListRequestToJSON(value?: V1FbpOrderListRequest | null): any; diff --git a/dist/models/V1FbpOrderListRequest.js b/dist/models/V1FbpOrderListRequest.js new file mode 100644 index 0000000..e78f860 --- /dev/null +++ b/dist/models/V1FbpOrderListRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderListRequest = instanceOfV1FbpOrderListRequest; +exports.V1FbpOrderListRequestFromJSON = V1FbpOrderListRequestFromJSON; +exports.V1FbpOrderListRequestFromJSONTyped = V1FbpOrderListRequestFromJSONTyped; +exports.V1FbpOrderListRequestToJSON = V1FbpOrderListRequestToJSON; +/** + * Check if a given object implements the V1FbpOrderListRequest interface. + */ +function instanceOfV1FbpOrderListRequest(value) { + if (!('count' in value) || value['count'] === undefined) + return false; + return true; +} +function V1FbpOrderListRequestFromJSON(json) { + return V1FbpOrderListRequestFromJSONTyped(json, false); +} +function V1FbpOrderListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1FbpOrderListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1FbpOrderListResponse.d.ts b/dist/models/V1FbpOrderListResponse.d.ts new file mode 100644 index 0000000..f5e4401 --- /dev/null +++ b/dist/models/V1FbpOrderListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderListResponseItem } from './V1FbpOrderListResponseItem'; +/** + * + * @export + * @interface V1FbpOrderListResponse + */ +export interface V1FbpOrderListResponse { + /** + * `true`, если в ответе вернули не все поставки. + * + * @type {boolean} + * @memberof V1FbpOrderListResponse + */ + has_next?: boolean; + /** + * Поставки. + * @type {Array} + * @memberof V1FbpOrderListResponse + */ + items?: Array; + /** + * Идентификатор последней поставки на странице. + * @type {number} + * @memberof V1FbpOrderListResponse + */ + last_id?: number; +} +/** + * Check if a given object implements the V1FbpOrderListResponse interface. + */ +export declare function instanceOfV1FbpOrderListResponse(value: object): value is V1FbpOrderListResponse; +export declare function V1FbpOrderListResponseFromJSON(json: any): V1FbpOrderListResponse; +export declare function V1FbpOrderListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderListResponse; +export declare function V1FbpOrderListResponseToJSON(value?: V1FbpOrderListResponse | null): any; diff --git a/dist/models/V1FbpOrderListResponse.js b/dist/models/V1FbpOrderListResponse.js new file mode 100644 index 0000000..bf707ac --- /dev/null +++ b/dist/models/V1FbpOrderListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderListResponse = instanceOfV1FbpOrderListResponse; +exports.V1FbpOrderListResponseFromJSON = V1FbpOrderListResponseFromJSON; +exports.V1FbpOrderListResponseFromJSONTyped = V1FbpOrderListResponseFromJSONTyped; +exports.V1FbpOrderListResponseToJSON = V1FbpOrderListResponseToJSON; +const V1FbpOrderListResponseItem_1 = require("./V1FbpOrderListResponseItem"); +/** + * Check if a given object implements the V1FbpOrderListResponse interface. + */ +function instanceOfV1FbpOrderListResponse(value) { + return true; +} +function V1FbpOrderListResponseFromJSON(json) { + return V1FbpOrderListResponseFromJSONTyped(json, false); +} +function V1FbpOrderListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'items': json['items'] == null ? undefined : (json['items'].map(V1FbpOrderListResponseItem_1.V1FbpOrderListResponseItemFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1FbpOrderListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'items': value['items'] == null ? undefined : (value['items'].map(V1FbpOrderListResponseItem_1.V1FbpOrderListResponseItemToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1FbpOrderListResponseItem.d.ts b/dist/models/V1FbpOrderListResponseItem.d.ts new file mode 100644 index 0000000..087a7a8 --- /dev/null +++ b/dist/models/V1FbpOrderListResponseItem.d.ts @@ -0,0 +1,134 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fbpv1DeliveryDetails } from './Fbpv1DeliveryDetails'; +import type { V1CancellationState } from './V1CancellationState'; +import type { V1OrderStatusEnum } from './V1OrderStatusEnum'; +import type { V1OrderAttentionTypeEnum } from './V1OrderAttentionTypeEnum'; +import type { ItemBundleSummary } from './ItemBundleSummary'; +/** + * Детали заказа. + * @export + * @interface V1FbpOrderListResponseItem + */ +export interface V1FbpOrderListResponseItem { + /** + * Причины предупреждения: + * - `ORDER_ATTENTION_TYPE_UNSPECIFIED` — не определена; + * - `OLD` — устаревшая заявка; + * - `TIME_SLOT_EXPIRED` — таймслот просрочен. + * + * @type {Array} + * @memberof V1FbpOrderListResponseItem + */ + attention_reasons?: Array; + /** + * + * @type {ItemBundleSummary} + * @memberof V1FbpOrderListResponseItem + */ + bundle_summary?: ItemBundleSummary; + /** + * `true`, если заявку можно отменить. + * + * @type {boolean} + * @memberof V1FbpOrderListResponseItem + */ + can_be_cancelled?: boolean; + /** + * + * @type {V1CancellationState} + * @memberof V1FbpOrderListResponseItem + */ + cancellation_state?: V1CancellationState; + /** + * Дата создания поставки. + * @type {string} + * @memberof V1FbpOrderListResponseItem + */ + created_date?: string; + /** + * + * @type {Fbpv1DeliveryDetails} + * @memberof V1FbpOrderListResponseItem + */ + delivery_details?: Fbpv1DeliveryDetails; + /** + * `true`, если есть подписанные документы. + * + * @type {boolean} + * @memberof V1FbpOrderListResponseItem + */ + has_consignment_note?: boolean; + /** + * `true`, если есть этикетки. + * + * @type {boolean} + * @memberof V1FbpOrderListResponseItem + */ + has_label?: boolean; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1FbpOrderListResponseItem + */ + id?: number; + /** + * `true`, если нельзя редактировать поставку. + * + * @type {boolean} + * @memberof V1FbpOrderListResponseItem + */ + locked?: boolean; + /** + * Номер поставки. + * @type {string} + * @memberof V1FbpOrderListResponseItem + */ + order_number?: string; + /** + * Количество грузомест. + * @type {number} + * @memberof V1FbpOrderListResponseItem + */ + package_units_count?: number; + /** + * Дата и время принятия поставки. + * @type {string} + * @memberof V1FbpOrderListResponseItem + */ + receive_date?: string; + /** + * + * @type {V1OrderStatusEnum} + * @memberof V1FbpOrderListResponseItem + */ + status?: V1OrderStatusEnum; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderListResponseItem + */ + supply_id?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1FbpOrderListResponseItem + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1FbpOrderListResponseItem interface. + */ +export declare function instanceOfV1FbpOrderListResponseItem(value: object): value is V1FbpOrderListResponseItem; +export declare function V1FbpOrderListResponseItemFromJSON(json: any): V1FbpOrderListResponseItem; +export declare function V1FbpOrderListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderListResponseItem; +export declare function V1FbpOrderListResponseItemToJSON(value?: V1FbpOrderListResponseItem | null): any; diff --git a/dist/models/V1FbpOrderListResponseItem.js b/dist/models/V1FbpOrderListResponseItem.js new file mode 100644 index 0000000..e246976 --- /dev/null +++ b/dist/models/V1FbpOrderListResponseItem.js @@ -0,0 +1,79 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderListResponseItem = instanceOfV1FbpOrderListResponseItem; +exports.V1FbpOrderListResponseItemFromJSON = V1FbpOrderListResponseItemFromJSON; +exports.V1FbpOrderListResponseItemFromJSONTyped = V1FbpOrderListResponseItemFromJSONTyped; +exports.V1FbpOrderListResponseItemToJSON = V1FbpOrderListResponseItemToJSON; +const Fbpv1DeliveryDetails_1 = require("./Fbpv1DeliveryDetails"); +const V1CancellationState_1 = require("./V1CancellationState"); +const V1OrderStatusEnum_1 = require("./V1OrderStatusEnum"); +const V1OrderAttentionTypeEnum_1 = require("./V1OrderAttentionTypeEnum"); +const ItemBundleSummary_1 = require("./ItemBundleSummary"); +/** + * Check if a given object implements the V1FbpOrderListResponseItem interface. + */ +function instanceOfV1FbpOrderListResponseItem(value) { + return true; +} +function V1FbpOrderListResponseItemFromJSON(json) { + return V1FbpOrderListResponseItemFromJSONTyped(json, false); +} +function V1FbpOrderListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attention_reasons': json['attention_reasons'] == null ? undefined : (json['attention_reasons'].map(V1OrderAttentionTypeEnum_1.V1OrderAttentionTypeEnumFromJSON)), + 'bundle_summary': json['bundle_summary'] == null ? undefined : (0, ItemBundleSummary_1.ItemBundleSummaryFromJSON)(json['bundle_summary']), + 'can_be_cancelled': json['can_be_cancelled'] == null ? undefined : json['can_be_cancelled'], + 'cancellation_state': json['cancellation_state'] == null ? undefined : (0, V1CancellationState_1.V1CancellationStateFromJSON)(json['cancellation_state']), + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'delivery_details': json['delivery_details'] == null ? undefined : (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsFromJSON)(json['delivery_details']), + 'has_consignment_note': json['has_consignment_note'] == null ? undefined : json['has_consignment_note'], + 'has_label': json['has_label'] == null ? undefined : json['has_label'], + 'id': json['id'] == null ? undefined : json['id'], + 'locked': json['locked'] == null ? undefined : json['locked'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'package_units_count': json['package_units_count'] == null ? undefined : json['package_units_count'], + 'receive_date': json['receive_date'] == null ? undefined : json['receive_date'], + 'status': json['status'] == null ? undefined : (0, V1OrderStatusEnum_1.V1OrderStatusEnumFromJSON)(json['status']), + 'supply_id': json['supply_id'] == null ? undefined : json['supply_id'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V1FbpOrderListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'attention_reasons': value['attention_reasons'] == null ? undefined : (value['attention_reasons'].map(V1OrderAttentionTypeEnum_1.V1OrderAttentionTypeEnumToJSON)), + 'bundle_summary': (0, ItemBundleSummary_1.ItemBundleSummaryToJSON)(value['bundle_summary']), + 'can_be_cancelled': value['can_be_cancelled'], + 'cancellation_state': (0, V1CancellationState_1.V1CancellationStateToJSON)(value['cancellation_state']), + 'created_date': value['created_date'], + 'delivery_details': (0, Fbpv1DeliveryDetails_1.Fbpv1DeliveryDetailsToJSON)(value['delivery_details']), + 'has_consignment_note': value['has_consignment_note'], + 'has_label': value['has_label'], + 'id': value['id'], + 'locked': value['locked'], + 'order_number': value['order_number'], + 'package_units_count': value['package_units_count'], + 'receive_date': value['receive_date'], + 'status': (0, V1OrderStatusEnum_1.V1OrderStatusEnumToJSON)(value['status']), + 'supply_id': value['supply_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1FbpOrderPickUpCancelRequest.d.ts b/dist/models/V1FbpOrderPickUpCancelRequest.d.ts new file mode 100644 index 0000000..218b4e9 --- /dev/null +++ b/dist/models/V1FbpOrderPickUpCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbpOrderPickUpCancelRequest + */ +export interface V1FbpOrderPickUpCancelRequest { + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderPickUpCancelRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderPickUpCancelRequest interface. + */ +export declare function instanceOfV1FbpOrderPickUpCancelRequest(value: object): value is V1FbpOrderPickUpCancelRequest; +export declare function V1FbpOrderPickUpCancelRequestFromJSON(json: any): V1FbpOrderPickUpCancelRequest; +export declare function V1FbpOrderPickUpCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpCancelRequest; +export declare function V1FbpOrderPickUpCancelRequestToJSON(value?: V1FbpOrderPickUpCancelRequest | null): any; diff --git a/dist/models/V1FbpOrderPickUpCancelRequest.js b/dist/models/V1FbpOrderPickUpCancelRequest.js new file mode 100644 index 0000000..aa5379d --- /dev/null +++ b/dist/models/V1FbpOrderPickUpCancelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderPickUpCancelRequest = instanceOfV1FbpOrderPickUpCancelRequest; +exports.V1FbpOrderPickUpCancelRequestFromJSON = V1FbpOrderPickUpCancelRequestFromJSON; +exports.V1FbpOrderPickUpCancelRequestFromJSONTyped = V1FbpOrderPickUpCancelRequestFromJSONTyped; +exports.V1FbpOrderPickUpCancelRequestToJSON = V1FbpOrderPickUpCancelRequestToJSON; +/** + * Check if a given object implements the V1FbpOrderPickUpCancelRequest interface. + */ +function instanceOfV1FbpOrderPickUpCancelRequest(value) { + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpOrderPickUpCancelRequestFromJSON(json) { + return V1FbpOrderPickUpCancelRequestFromJSONTyped(json, false); +} +function V1FbpOrderPickUpCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_id': json['supply_id'], + }; +} +function V1FbpOrderPickUpCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpOrderPickUpCancelResponse.d.ts b/dist/models/V1FbpOrderPickUpCancelResponse.d.ts new file mode 100644 index 0000000..f32d2b1 --- /dev/null +++ b/dist/models/V1FbpOrderPickUpCancelResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderPickUpCancelResponse + */ +export interface V1FbpOrderPickUpCancelResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderPickUpCancelResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderPickUpCancelResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderPickUpCancelResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderPickUpCancelResponse interface. + */ +export declare function instanceOfV1FbpOrderPickUpCancelResponse(value: object): value is V1FbpOrderPickUpCancelResponse; +export declare function V1FbpOrderPickUpCancelResponseFromJSON(json: any): V1FbpOrderPickUpCancelResponse; +export declare function V1FbpOrderPickUpCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpCancelResponse; +export declare function V1FbpOrderPickUpCancelResponseToJSON(value?: V1FbpOrderPickUpCancelResponse | null): any; diff --git a/dist/models/V1FbpOrderPickUpCancelResponse.js b/dist/models/V1FbpOrderPickUpCancelResponse.js new file mode 100644 index 0000000..01fcecc --- /dev/null +++ b/dist/models/V1FbpOrderPickUpCancelResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderPickUpCancelResponse = instanceOfV1FbpOrderPickUpCancelResponse; +exports.V1FbpOrderPickUpCancelResponseFromJSON = V1FbpOrderPickUpCancelResponseFromJSON; +exports.V1FbpOrderPickUpCancelResponseFromJSONTyped = V1FbpOrderPickUpCancelResponseFromJSONTyped; +exports.V1FbpOrderPickUpCancelResponseToJSON = V1FbpOrderPickUpCancelResponseToJSON; +const V1OrderValidationError_1 = require("./V1OrderValidationError"); +/** + * Check if a given object implements the V1FbpOrderPickUpCancelResponse interface. + */ +function instanceOfV1FbpOrderPickUpCancelResponse(value) { + return true; +} +function V1FbpOrderPickUpCancelResponseFromJSON(json) { + return V1FbpOrderPickUpCancelResponseFromJSONTyped(json, false); +} +function V1FbpOrderPickUpCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1OrderValidationError_1.V1OrderValidationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpOrderPickUpCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1OrderValidationError_1.V1OrderValidationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpOrderPickUpDlvEditRequest.d.ts b/dist/models/V1FbpOrderPickUpDlvEditRequest.d.ts new file mode 100644 index 0000000..16215ae --- /dev/null +++ b/dist/models/V1FbpOrderPickUpDlvEditRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1FbpOrderPickUpDlvEditRequestPickUpDetails } from './V1FbpOrderPickUpDlvEditRequestPickUpDetails'; +/** + * + * @export + * @interface V1FbpOrderPickUpDlvEditRequest + */ +export interface V1FbpOrderPickUpDlvEditRequest { + /** + * + * @type {V1FbpOrderPickUpDlvEditRequestPickUpDetails} + * @memberof V1FbpOrderPickUpDlvEditRequest + */ + pickup_details: V1FbpOrderPickUpDlvEditRequestPickUpDetails; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderPickUpDlvEditRequest + */ + row_version: number; + /** + * Идентификатор поставки. + * @type {string} + * @memberof V1FbpOrderPickUpDlvEditRequest + */ + supply_id: string; +} +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditRequest interface. + */ +export declare function instanceOfV1FbpOrderPickUpDlvEditRequest(value: object): value is V1FbpOrderPickUpDlvEditRequest; +export declare function V1FbpOrderPickUpDlvEditRequestFromJSON(json: any): V1FbpOrderPickUpDlvEditRequest; +export declare function V1FbpOrderPickUpDlvEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpDlvEditRequest; +export declare function V1FbpOrderPickUpDlvEditRequestToJSON(value?: V1FbpOrderPickUpDlvEditRequest | null): any; diff --git a/dist/models/V1FbpOrderPickUpDlvEditRequest.js b/dist/models/V1FbpOrderPickUpDlvEditRequest.js new file mode 100644 index 0000000..bef8b69 --- /dev/null +++ b/dist/models/V1FbpOrderPickUpDlvEditRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderPickUpDlvEditRequest = instanceOfV1FbpOrderPickUpDlvEditRequest; +exports.V1FbpOrderPickUpDlvEditRequestFromJSON = V1FbpOrderPickUpDlvEditRequestFromJSON; +exports.V1FbpOrderPickUpDlvEditRequestFromJSONTyped = V1FbpOrderPickUpDlvEditRequestFromJSONTyped; +exports.V1FbpOrderPickUpDlvEditRequestToJSON = V1FbpOrderPickUpDlvEditRequestToJSON; +const V1FbpOrderPickUpDlvEditRequestPickUpDetails_1 = require("./V1FbpOrderPickUpDlvEditRequestPickUpDetails"); +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditRequest interface. + */ +function instanceOfV1FbpOrderPickUpDlvEditRequest(value) { + if (!('pickup_details' in value) || value['pickup_details'] === undefined) + return false; + if (!('row_version' in value) || value['row_version'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1FbpOrderPickUpDlvEditRequestFromJSON(json) { + return V1FbpOrderPickUpDlvEditRequestFromJSONTyped(json, false); +} +function V1FbpOrderPickUpDlvEditRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'pickup_details': (0, V1FbpOrderPickUpDlvEditRequestPickUpDetails_1.V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON)(json['pickup_details']), + 'row_version': json['row_version'], + 'supply_id': json['supply_id'], + }; +} +function V1FbpOrderPickUpDlvEditRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'pickup_details': (0, V1FbpOrderPickUpDlvEditRequestPickUpDetails_1.V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON)(value['pickup_details']), + 'row_version': value['row_version'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.d.ts b/dist/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.d.ts new file mode 100644 index 0000000..8ea5490 --- /dev/null +++ b/dist/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Детали отправителя. + * @export + * @interface V1FbpOrderPickUpDlvEditRequestPickUpDetails + */ +export interface V1FbpOrderPickUpDlvEditRequestPickUpDetails { + /** + * ФИО отправителя. + * @type {string} + * @memberof V1FbpOrderPickUpDlvEditRequestPickUpDetails + */ + sender_name: string; + /** + * Номер телефона отправителя. + * @type {string} + * @memberof V1FbpOrderPickUpDlvEditRequestPickUpDetails + */ + sender_phone: string; +} +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditRequestPickUpDetails interface. + */ +export declare function instanceOfV1FbpOrderPickUpDlvEditRequestPickUpDetails(value: object): value is V1FbpOrderPickUpDlvEditRequestPickUpDetails; +export declare function V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON(json: any): V1FbpOrderPickUpDlvEditRequestPickUpDetails; +export declare function V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpDlvEditRequestPickUpDetails; +export declare function V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON(value?: V1FbpOrderPickUpDlvEditRequestPickUpDetails | null): any; diff --git a/dist/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.js b/dist/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.js new file mode 100644 index 0000000..49295f6 --- /dev/null +++ b/dist/models/V1FbpOrderPickUpDlvEditRequestPickUpDetails.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderPickUpDlvEditRequestPickUpDetails = instanceOfV1FbpOrderPickUpDlvEditRequestPickUpDetails; +exports.V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON = V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON; +exports.V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSONTyped = V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSONTyped; +exports.V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON = V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON; +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditRequestPickUpDetails interface. + */ +function instanceOfV1FbpOrderPickUpDlvEditRequestPickUpDetails(value) { + if (!('sender_name' in value) || value['sender_name'] === undefined) + return false; + if (!('sender_phone' in value) || value['sender_phone'] === undefined) + return false; + return true; +} +function V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSON(json) { + return V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSONTyped(json, false); +} +function V1FbpOrderPickUpDlvEditRequestPickUpDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sender_name': json['sender_name'], + 'sender_phone': json['sender_phone'], + }; +} +function V1FbpOrderPickUpDlvEditRequestPickUpDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'sender_name': value['sender_name'], + 'sender_phone': value['sender_phone'], + }; +} diff --git a/dist/models/V1FbpOrderPickUpDlvEditResponse.d.ts b/dist/models/V1FbpOrderPickUpDlvEditResponse.d.ts new file mode 100644 index 0000000..34c6e94 --- /dev/null +++ b/dist/models/V1FbpOrderPickUpDlvEditResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationError } from './V1OrderValidationError'; +/** + * + * @export + * @interface V1FbpOrderPickUpDlvEditResponse + */ +export interface V1FbpOrderPickUpDlvEditResponse { + /** + * + * @type {V1OrderValidationError} + * @memberof V1FbpOrderPickUpDlvEditResponse + */ + error?: V1OrderValidationError; + /** + * `true`, если есть ошибка. + * + * @type {boolean} + * @memberof V1FbpOrderPickUpDlvEditResponse + */ + is_error?: boolean; + /** + * Идентификатор актуальной версии черновика. + * @type {number} + * @memberof V1FbpOrderPickUpDlvEditResponse + */ + row_version?: number; +} +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditResponse interface. + */ +export declare function instanceOfV1FbpOrderPickUpDlvEditResponse(value: object): value is V1FbpOrderPickUpDlvEditResponse; +export declare function V1FbpOrderPickUpDlvEditResponseFromJSON(json: any): V1FbpOrderPickUpDlvEditResponse; +export declare function V1FbpOrderPickUpDlvEditResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpOrderPickUpDlvEditResponse; +export declare function V1FbpOrderPickUpDlvEditResponseToJSON(value?: V1FbpOrderPickUpDlvEditResponse | null): any; diff --git a/dist/models/V1FbpOrderPickUpDlvEditResponse.js b/dist/models/V1FbpOrderPickUpDlvEditResponse.js new file mode 100644 index 0000000..1d4c124 --- /dev/null +++ b/dist/models/V1FbpOrderPickUpDlvEditResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpOrderPickUpDlvEditResponse = instanceOfV1FbpOrderPickUpDlvEditResponse; +exports.V1FbpOrderPickUpDlvEditResponseFromJSON = V1FbpOrderPickUpDlvEditResponseFromJSON; +exports.V1FbpOrderPickUpDlvEditResponseFromJSONTyped = V1FbpOrderPickUpDlvEditResponseFromJSONTyped; +exports.V1FbpOrderPickUpDlvEditResponseToJSON = V1FbpOrderPickUpDlvEditResponseToJSON; +const V1OrderValidationError_1 = require("./V1OrderValidationError"); +/** + * Check if a given object implements the V1FbpOrderPickUpDlvEditResponse interface. + */ +function instanceOfV1FbpOrderPickUpDlvEditResponse(value) { + return true; +} +function V1FbpOrderPickUpDlvEditResponseFromJSON(json) { + return V1FbpOrderPickUpDlvEditResponseFromJSONTyped(json, false); +} +function V1FbpOrderPickUpDlvEditResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, V1OrderValidationError_1.V1OrderValidationErrorFromJSON)(json['error']), + 'is_error': json['is_error'] == null ? undefined : json['is_error'], + 'row_version': json['row_version'] == null ? undefined : json['row_version'], + }; +} +function V1FbpOrderPickUpDlvEditResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, V1OrderValidationError_1.V1OrderValidationErrorToJSON)(value['error']), + 'is_error': value['is_error'], + 'row_version': value['row_version'], + }; +} diff --git a/dist/models/V1FbpWarehouseListResponse.d.ts b/dist/models/V1FbpWarehouseListResponse.d.ts new file mode 100644 index 0000000..078880a --- /dev/null +++ b/dist/models/V1FbpWarehouseListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbpWarehouseListResponseWarehouse } from './FbpWarehouseListResponseWarehouse'; +/** + * + * @export + * @interface V1FbpWarehouseListResponse + */ +export interface V1FbpWarehouseListResponse { + /** + * Список складов. + * @type {Array} + * @memberof V1FbpWarehouseListResponse + */ + warehouses?: Array; +} +/** + * Check if a given object implements the V1FbpWarehouseListResponse interface. + */ +export declare function instanceOfV1FbpWarehouseListResponse(value: object): value is V1FbpWarehouseListResponse; +export declare function V1FbpWarehouseListResponseFromJSON(json: any): V1FbpWarehouseListResponse; +export declare function V1FbpWarehouseListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbpWarehouseListResponse; +export declare function V1FbpWarehouseListResponseToJSON(value?: V1FbpWarehouseListResponse | null): any; diff --git a/dist/models/V1FbpWarehouseListResponse.js b/dist/models/V1FbpWarehouseListResponse.js new file mode 100644 index 0000000..08ec745 --- /dev/null +++ b/dist/models/V1FbpWarehouseListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbpWarehouseListResponse = instanceOfV1FbpWarehouseListResponse; +exports.V1FbpWarehouseListResponseFromJSON = V1FbpWarehouseListResponseFromJSON; +exports.V1FbpWarehouseListResponseFromJSONTyped = V1FbpWarehouseListResponseFromJSONTyped; +exports.V1FbpWarehouseListResponseToJSON = V1FbpWarehouseListResponseToJSON; +const FbpWarehouseListResponseWarehouse_1 = require("./FbpWarehouseListResponseWarehouse"); +/** + * Check if a given object implements the V1FbpWarehouseListResponse interface. + */ +function instanceOfV1FbpWarehouseListResponse(value) { + return true; +} +function V1FbpWarehouseListResponseFromJSON(json) { + return V1FbpWarehouseListResponseFromJSONTyped(json, false); +} +function V1FbpWarehouseListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(FbpWarehouseListResponseWarehouse_1.FbpWarehouseListResponseWarehouseFromJSON)), + }; +} +function V1FbpWarehouseListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(FbpWarehouseListResponseWarehouse_1.FbpWarehouseListResponseWarehouseToJSON)), + }; +} diff --git a/dist/models/V1FbsPostingProductExemplarUpdateRequest.d.ts b/dist/models/V1FbsPostingProductExemplarUpdateRequest.d.ts new file mode 100644 index 0000000..49f5ae3 --- /dev/null +++ b/dist/models/V1FbsPostingProductExemplarUpdateRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1FbsPostingProductExemplarUpdateRequest + */ +export interface V1FbsPostingProductExemplarUpdateRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1FbsPostingProductExemplarUpdateRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1FbsPostingProductExemplarUpdateRequest interface. + */ +export declare function instanceOfV1FbsPostingProductExemplarUpdateRequest(value: object): value is V1FbsPostingProductExemplarUpdateRequest; +export declare function V1FbsPostingProductExemplarUpdateRequestFromJSON(json: any): V1FbsPostingProductExemplarUpdateRequest; +export declare function V1FbsPostingProductExemplarUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1FbsPostingProductExemplarUpdateRequest; +export declare function V1FbsPostingProductExemplarUpdateRequestToJSON(value?: V1FbsPostingProductExemplarUpdateRequest | null): any; diff --git a/dist/models/V1FbsPostingProductExemplarUpdateRequest.js b/dist/models/V1FbsPostingProductExemplarUpdateRequest.js new file mode 100644 index 0000000..b1aad51 --- /dev/null +++ b/dist/models/V1FbsPostingProductExemplarUpdateRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1FbsPostingProductExemplarUpdateRequest = instanceOfV1FbsPostingProductExemplarUpdateRequest; +exports.V1FbsPostingProductExemplarUpdateRequestFromJSON = V1FbsPostingProductExemplarUpdateRequestFromJSON; +exports.V1FbsPostingProductExemplarUpdateRequestFromJSONTyped = V1FbsPostingProductExemplarUpdateRequestFromJSONTyped; +exports.V1FbsPostingProductExemplarUpdateRequestToJSON = V1FbsPostingProductExemplarUpdateRequestToJSON; +/** + * Check if a given object implements the V1FbsPostingProductExemplarUpdateRequest interface. + */ +function instanceOfV1FbsPostingProductExemplarUpdateRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1FbsPostingProductExemplarUpdateRequestFromJSON(json) { + return V1FbsPostingProductExemplarUpdateRequestFromJSONTyped(json, false); +} +function V1FbsPostingProductExemplarUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1FbsPostingProductExemplarUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1GenerateBarcodeRequest.d.ts b/dist/models/V1GenerateBarcodeRequest.d.ts new file mode 100644 index 0000000..8cc9396 --- /dev/null +++ b/dist/models/V1GenerateBarcodeRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GenerateBarcodeRequest + */ +export interface V1GenerateBarcodeRequest { + /** + * Идентификаторы товаров, для которых нужно создать штрихкод. + * @type {Array} + * @memberof V1GenerateBarcodeRequest + */ + product_ids: Array; +} +/** + * Check if a given object implements the V1GenerateBarcodeRequest interface. + */ +export declare function instanceOfV1GenerateBarcodeRequest(value: object): value is V1GenerateBarcodeRequest; +export declare function V1GenerateBarcodeRequestFromJSON(json: any): V1GenerateBarcodeRequest; +export declare function V1GenerateBarcodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GenerateBarcodeRequest; +export declare function V1GenerateBarcodeRequestToJSON(value?: V1GenerateBarcodeRequest | null): any; diff --git a/dist/models/V1GenerateBarcodeRequest.js b/dist/models/V1GenerateBarcodeRequest.js new file mode 100644 index 0000000..5b7fcdc --- /dev/null +++ b/dist/models/V1GenerateBarcodeRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GenerateBarcodeRequest = instanceOfV1GenerateBarcodeRequest; +exports.V1GenerateBarcodeRequestFromJSON = V1GenerateBarcodeRequestFromJSON; +exports.V1GenerateBarcodeRequestFromJSONTyped = V1GenerateBarcodeRequestFromJSONTyped; +exports.V1GenerateBarcodeRequestToJSON = V1GenerateBarcodeRequestToJSON; +/** + * Check if a given object implements the V1GenerateBarcodeRequest interface. + */ +function instanceOfV1GenerateBarcodeRequest(value) { + if (!('product_ids' in value) || value['product_ids'] === undefined) + return false; + return true; +} +function V1GenerateBarcodeRequestFromJSON(json) { + return V1GenerateBarcodeRequestFromJSONTyped(json, false); +} +function V1GenerateBarcodeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'], + }; +} +function V1GenerateBarcodeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/models/V1GenerateBarcodeResponse.d.ts b/dist/models/V1GenerateBarcodeResponse.d.ts new file mode 100644 index 0000000..244352b --- /dev/null +++ b/dist/models/V1GenerateBarcodeResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GenerateBarcodeResult } from './V1GenerateBarcodeResult'; +/** + * + * @export + * @interface V1GenerateBarcodeResponse + */ +export interface V1GenerateBarcodeResponse { + /** + * Ошибки при создании штрихкода. + * @type {Array} + * @memberof V1GenerateBarcodeResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1GenerateBarcodeResponse interface. + */ +export declare function instanceOfV1GenerateBarcodeResponse(value: object): value is V1GenerateBarcodeResponse; +export declare function V1GenerateBarcodeResponseFromJSON(json: any): V1GenerateBarcodeResponse; +export declare function V1GenerateBarcodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GenerateBarcodeResponse; +export declare function V1GenerateBarcodeResponseToJSON(value?: V1GenerateBarcodeResponse | null): any; diff --git a/dist/models/V1GenerateBarcodeResponse.js b/dist/models/V1GenerateBarcodeResponse.js new file mode 100644 index 0000000..0133b27 --- /dev/null +++ b/dist/models/V1GenerateBarcodeResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GenerateBarcodeResponse = instanceOfV1GenerateBarcodeResponse; +exports.V1GenerateBarcodeResponseFromJSON = V1GenerateBarcodeResponseFromJSON; +exports.V1GenerateBarcodeResponseFromJSONTyped = V1GenerateBarcodeResponseFromJSONTyped; +exports.V1GenerateBarcodeResponseToJSON = V1GenerateBarcodeResponseToJSON; +const V1GenerateBarcodeResult_1 = require("./V1GenerateBarcodeResult"); +/** + * Check if a given object implements the V1GenerateBarcodeResponse interface. + */ +function instanceOfV1GenerateBarcodeResponse(value) { + return true; +} +function V1GenerateBarcodeResponseFromJSON(json) { + return V1GenerateBarcodeResponseFromJSONTyped(json, false); +} +function V1GenerateBarcodeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1GenerateBarcodeResult_1.V1GenerateBarcodeResultFromJSON)), + }; +} +function V1GenerateBarcodeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1GenerateBarcodeResult_1.V1GenerateBarcodeResultToJSON)), + }; +} diff --git a/dist/models/V1GenerateBarcodeResult.d.ts b/dist/models/V1GenerateBarcodeResult.d.ts new file mode 100644 index 0000000..e8bb4ed --- /dev/null +++ b/dist/models/V1GenerateBarcodeResult.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GenerateBarcodeResult + */ +export interface V1GenerateBarcodeResult { + /** + * Код ошибки. + * @type {string} + * @memberof V1GenerateBarcodeResult + */ + code?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1GenerateBarcodeResult + */ + error?: string; + /** + * Штрихкод, при создании которого произошла ошибка. + * @type {string} + * @memberof V1GenerateBarcodeResult + */ + barcode?: string; + /** + * Идентификатор товара, для которого не удалось создать штрихкод. + * @type {number} + * @memberof V1GenerateBarcodeResult + */ + product_id?: number; +} +/** + * Check if a given object implements the V1GenerateBarcodeResult interface. + */ +export declare function instanceOfV1GenerateBarcodeResult(value: object): value is V1GenerateBarcodeResult; +export declare function V1GenerateBarcodeResultFromJSON(json: any): V1GenerateBarcodeResult; +export declare function V1GenerateBarcodeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GenerateBarcodeResult; +export declare function V1GenerateBarcodeResultToJSON(value?: V1GenerateBarcodeResult | null): any; diff --git a/dist/models/V1GenerateBarcodeResult.js b/dist/models/V1GenerateBarcodeResult.js new file mode 100644 index 0000000..a50d580 --- /dev/null +++ b/dist/models/V1GenerateBarcodeResult.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GenerateBarcodeResult = instanceOfV1GenerateBarcodeResult; +exports.V1GenerateBarcodeResultFromJSON = V1GenerateBarcodeResultFromJSON; +exports.V1GenerateBarcodeResultFromJSONTyped = V1GenerateBarcodeResultFromJSONTyped; +exports.V1GenerateBarcodeResultToJSON = V1GenerateBarcodeResultToJSON; +/** + * Check if a given object implements the V1GenerateBarcodeResult interface. + */ +function instanceOfV1GenerateBarcodeResult(value) { + return true; +} +function V1GenerateBarcodeResultFromJSON(json) { + return V1GenerateBarcodeResultFromJSONTyped(json, false); +} +function V1GenerateBarcodeResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'error': json['error'] == null ? undefined : json['error'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +function V1GenerateBarcodeResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'error': value['error'], + 'barcode': value['barcode'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V1GetAttributeValuesRequest.d.ts b/dist/models/V1GetAttributeValuesRequest.d.ts new file mode 100644 index 0000000..9ccaa20 --- /dev/null +++ b/dist/models/V1GetAttributeValuesRequest.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LanguageLanguage } from './LanguageLanguage'; +/** + * + * @export + * @interface V1GetAttributeValuesRequest + */ +export interface V1GetAttributeValuesRequest { + /** + * Идентификатор характеристики. Можно получить с помощью метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + attribute_id: number; + /** + * Идентификатор категории. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + description_category_id: number; + /** + * + * @type {LanguageLanguage} + * @memberof V1GetAttributeValuesRequest + */ + language?: LanguageLanguage; + /** + * Идентификатор справочника, с которого нужно начать ответ. Если `last_value_id` — 10, то в ответе будут справочники, начиная с одиннадцатого. + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + last_value_id?: number; + /** + * Количество значений в ответе: + * - максимум — 2000, + * - минимум — 1. + * + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + limit: number; + /** + * Идентификатор типа товара. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1GetAttributeValuesRequest + */ + type_id: number; +} +/** + * Check if a given object implements the V1GetAttributeValuesRequest interface. + */ +export declare function instanceOfV1GetAttributeValuesRequest(value: object): value is V1GetAttributeValuesRequest; +export declare function V1GetAttributeValuesRequestFromJSON(json: any): V1GetAttributeValuesRequest; +export declare function V1GetAttributeValuesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributeValuesRequest; +export declare function V1GetAttributeValuesRequestToJSON(value?: V1GetAttributeValuesRequest | null): any; diff --git a/dist/models/V1GetAttributeValuesRequest.js b/dist/models/V1GetAttributeValuesRequest.js new file mode 100644 index 0000000..8c231fa --- /dev/null +++ b/dist/models/V1GetAttributeValuesRequest.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetAttributeValuesRequest = instanceOfV1GetAttributeValuesRequest; +exports.V1GetAttributeValuesRequestFromJSON = V1GetAttributeValuesRequestFromJSON; +exports.V1GetAttributeValuesRequestFromJSONTyped = V1GetAttributeValuesRequestFromJSONTyped; +exports.V1GetAttributeValuesRequestToJSON = V1GetAttributeValuesRequestToJSON; +const LanguageLanguage_1 = require("./LanguageLanguage"); +/** + * Check if a given object implements the V1GetAttributeValuesRequest interface. + */ +function instanceOfV1GetAttributeValuesRequest(value) { + if (!('attribute_id' in value) || value['attribute_id'] === undefined) + return false; + if (!('description_category_id' in value) || value['description_category_id'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('type_id' in value) || value['type_id'] === undefined) + return false; + return true; +} +function V1GetAttributeValuesRequestFromJSON(json) { + return V1GetAttributeValuesRequestFromJSONTyped(json, false); +} +function V1GetAttributeValuesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attribute_id': json['attribute_id'], + 'description_category_id': json['description_category_id'], + 'language': json['language'] == null ? undefined : (0, LanguageLanguage_1.LanguageLanguageFromJSON)(json['language']), + 'last_value_id': json['last_value_id'] == null ? undefined : json['last_value_id'], + 'limit': json['limit'], + 'type_id': json['type_id'], + }; +} +function V1GetAttributeValuesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'attribute_id': value['attribute_id'], + 'description_category_id': value['description_category_id'], + 'language': (0, LanguageLanguage_1.LanguageLanguageToJSON)(value['language']), + 'last_value_id': value['last_value_id'], + 'limit': value['limit'], + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/V1GetAttributeValuesResponse.d.ts b/dist/models/V1GetAttributeValuesResponse.d.ts new file mode 100644 index 0000000..f627f94 --- /dev/null +++ b/dist/models/V1GetAttributeValuesResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetAttributeValuesResponseDictionaryValue } from './V1GetAttributeValuesResponseDictionaryValue'; +/** + * + * @export + * @interface V1GetAttributeValuesResponse + */ +export interface V1GetAttributeValuesResponse { + /** + * Признак, что в ответе вернулась только часть значений характеристики: + * - `true` — сделайте повторный запрос с новым параметром `last_value_id` для получения остальных значений; + * - `false` — ответ содержит все значения характеристики. + * + * @type {boolean} + * @memberof V1GetAttributeValuesResponse + */ + has_next?: boolean; + /** + * Значения характеристики. + * @type {Array} + * @memberof V1GetAttributeValuesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetAttributeValuesResponse interface. + */ +export declare function instanceOfV1GetAttributeValuesResponse(value: object): value is V1GetAttributeValuesResponse; +export declare function V1GetAttributeValuesResponseFromJSON(json: any): V1GetAttributeValuesResponse; +export declare function V1GetAttributeValuesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributeValuesResponse; +export declare function V1GetAttributeValuesResponseToJSON(value?: V1GetAttributeValuesResponse | null): any; diff --git a/dist/models/V1GetAttributeValuesResponse.js b/dist/models/V1GetAttributeValuesResponse.js new file mode 100644 index 0000000..1acb4aa --- /dev/null +++ b/dist/models/V1GetAttributeValuesResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetAttributeValuesResponse = instanceOfV1GetAttributeValuesResponse; +exports.V1GetAttributeValuesResponseFromJSON = V1GetAttributeValuesResponseFromJSON; +exports.V1GetAttributeValuesResponseFromJSONTyped = V1GetAttributeValuesResponseFromJSONTyped; +exports.V1GetAttributeValuesResponseToJSON = V1GetAttributeValuesResponseToJSON; +const V1GetAttributeValuesResponseDictionaryValue_1 = require("./V1GetAttributeValuesResponseDictionaryValue"); +/** + * Check if a given object implements the V1GetAttributeValuesResponse interface. + */ +function instanceOfV1GetAttributeValuesResponse(value) { + return true; +} +function V1GetAttributeValuesResponseFromJSON(json) { + return V1GetAttributeValuesResponseFromJSONTyped(json, false); +} +function V1GetAttributeValuesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetAttributeValuesResponseDictionaryValue_1.V1GetAttributeValuesResponseDictionaryValueFromJSON)), + }; +} +function V1GetAttributeValuesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetAttributeValuesResponseDictionaryValue_1.V1GetAttributeValuesResponseDictionaryValueToJSON)), + }; +} diff --git a/dist/models/V1GetAttributeValuesResponseDictionaryValue.d.ts b/dist/models/V1GetAttributeValuesResponseDictionaryValue.d.ts new file mode 100644 index 0000000..fa252b7 --- /dev/null +++ b/dist/models/V1GetAttributeValuesResponseDictionaryValue.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetAttributeValuesResponseDictionaryValue + */ +export interface V1GetAttributeValuesResponseDictionaryValue { + /** + * Идентификатор значения характеристики. + * @type {number} + * @memberof V1GetAttributeValuesResponseDictionaryValue + */ + id?: number; + /** + * Дополнительное описание. + * @type {string} + * @memberof V1GetAttributeValuesResponseDictionaryValue + */ + info?: string; + /** + * Ссылка на изображение. + * @type {string} + * @memberof V1GetAttributeValuesResponseDictionaryValue + */ + picture?: string; + /** + * Значение характеристики товара. + * @type {string} + * @memberof V1GetAttributeValuesResponseDictionaryValue + */ + value?: string; +} +/** + * Check if a given object implements the V1GetAttributeValuesResponseDictionaryValue interface. + */ +export declare function instanceOfV1GetAttributeValuesResponseDictionaryValue(value: object): value is V1GetAttributeValuesResponseDictionaryValue; +export declare function V1GetAttributeValuesResponseDictionaryValueFromJSON(json: any): V1GetAttributeValuesResponseDictionaryValue; +export declare function V1GetAttributeValuesResponseDictionaryValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributeValuesResponseDictionaryValue; +export declare function V1GetAttributeValuesResponseDictionaryValueToJSON(value?: V1GetAttributeValuesResponseDictionaryValue | null): any; diff --git a/dist/models/V1GetAttributeValuesResponseDictionaryValue.js b/dist/models/V1GetAttributeValuesResponseDictionaryValue.js new file mode 100644 index 0000000..f6cbd15 --- /dev/null +++ b/dist/models/V1GetAttributeValuesResponseDictionaryValue.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetAttributeValuesResponseDictionaryValue = instanceOfV1GetAttributeValuesResponseDictionaryValue; +exports.V1GetAttributeValuesResponseDictionaryValueFromJSON = V1GetAttributeValuesResponseDictionaryValueFromJSON; +exports.V1GetAttributeValuesResponseDictionaryValueFromJSONTyped = V1GetAttributeValuesResponseDictionaryValueFromJSONTyped; +exports.V1GetAttributeValuesResponseDictionaryValueToJSON = V1GetAttributeValuesResponseDictionaryValueToJSON; +/** + * Check if a given object implements the V1GetAttributeValuesResponseDictionaryValue interface. + */ +function instanceOfV1GetAttributeValuesResponseDictionaryValue(value) { + return true; +} +function V1GetAttributeValuesResponseDictionaryValueFromJSON(json) { + return V1GetAttributeValuesResponseDictionaryValueFromJSONTyped(json, false); +} +function V1GetAttributeValuesResponseDictionaryValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'info': json['info'] == null ? undefined : json['info'], + 'picture': json['picture'] == null ? undefined : json['picture'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetAttributeValuesResponseDictionaryValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'info': value['info'], + 'picture': value['picture'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetAttributesRequest.d.ts b/dist/models/V1GetAttributesRequest.d.ts new file mode 100644 index 0000000..ea9814e --- /dev/null +++ b/dist/models/V1GetAttributesRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LanguageLanguage } from './LanguageLanguage'; +/** + * + * @export + * @interface V1GetAttributesRequest + */ +export interface V1GetAttributesRequest { + /** + * Идентификатор категории. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1GetAttributesRequest + */ + description_category_id: number; + /** + * + * @type {LanguageLanguage} + * @memberof V1GetAttributesRequest + */ + language?: LanguageLanguage; + /** + * Идентификатор типа товара. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1GetAttributesRequest + */ + type_id: number; +} +/** + * Check if a given object implements the V1GetAttributesRequest interface. + */ +export declare function instanceOfV1GetAttributesRequest(value: object): value is V1GetAttributesRequest; +export declare function V1GetAttributesRequestFromJSON(json: any): V1GetAttributesRequest; +export declare function V1GetAttributesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributesRequest; +export declare function V1GetAttributesRequestToJSON(value?: V1GetAttributesRequest | null): any; diff --git a/dist/models/V1GetAttributesRequest.js b/dist/models/V1GetAttributesRequest.js new file mode 100644 index 0000000..435c718 --- /dev/null +++ b/dist/models/V1GetAttributesRequest.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetAttributesRequest = instanceOfV1GetAttributesRequest; +exports.V1GetAttributesRequestFromJSON = V1GetAttributesRequestFromJSON; +exports.V1GetAttributesRequestFromJSONTyped = V1GetAttributesRequestFromJSONTyped; +exports.V1GetAttributesRequestToJSON = V1GetAttributesRequestToJSON; +const LanguageLanguage_1 = require("./LanguageLanguage"); +/** + * Check if a given object implements the V1GetAttributesRequest interface. + */ +function instanceOfV1GetAttributesRequest(value) { + if (!('description_category_id' in value) || value['description_category_id'] === undefined) + return false; + if (!('type_id' in value) || value['type_id'] === undefined) + return false; + return true; +} +function V1GetAttributesRequestFromJSON(json) { + return V1GetAttributesRequestFromJSONTyped(json, false); +} +function V1GetAttributesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description_category_id': json['description_category_id'], + 'language': json['language'] == null ? undefined : (0, LanguageLanguage_1.LanguageLanguageFromJSON)(json['language']), + 'type_id': json['type_id'], + }; +} +function V1GetAttributesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'description_category_id': value['description_category_id'], + 'language': (0, LanguageLanguage_1.LanguageLanguageToJSON)(value['language']), + 'type_id': value['type_id'], + }; +} diff --git a/dist/models/V1GetAttributesResponse.d.ts b/dist/models/V1GetAttributesResponse.d.ts new file mode 100644 index 0000000..5ac575d --- /dev/null +++ b/dist/models/V1GetAttributesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetAttributesResponseAttribute } from './V1GetAttributesResponseAttribute'; +/** + * + * @export + * @interface V1GetAttributesResponse + */ +export interface V1GetAttributesResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof V1GetAttributesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetAttributesResponse interface. + */ +export declare function instanceOfV1GetAttributesResponse(value: object): value is V1GetAttributesResponse; +export declare function V1GetAttributesResponseFromJSON(json: any): V1GetAttributesResponse; +export declare function V1GetAttributesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributesResponse; +export declare function V1GetAttributesResponseToJSON(value?: V1GetAttributesResponse | null): any; diff --git a/dist/models/V1GetAttributesResponse.js b/dist/models/V1GetAttributesResponse.js new file mode 100644 index 0000000..eb1d459 --- /dev/null +++ b/dist/models/V1GetAttributesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetAttributesResponse = instanceOfV1GetAttributesResponse; +exports.V1GetAttributesResponseFromJSON = V1GetAttributesResponseFromJSON; +exports.V1GetAttributesResponseFromJSONTyped = V1GetAttributesResponseFromJSONTyped; +exports.V1GetAttributesResponseToJSON = V1GetAttributesResponseToJSON; +const V1GetAttributesResponseAttribute_1 = require("./V1GetAttributesResponseAttribute"); +/** + * Check if a given object implements the V1GetAttributesResponse interface. + */ +function instanceOfV1GetAttributesResponse(value) { + return true; +} +function V1GetAttributesResponseFromJSON(json) { + return V1GetAttributesResponseFromJSONTyped(json, false); +} +function V1GetAttributesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetAttributesResponseAttribute_1.V1GetAttributesResponseAttributeFromJSON)), + }; +} +function V1GetAttributesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetAttributesResponseAttribute_1.V1GetAttributesResponseAttributeToJSON)), + }; +} diff --git a/dist/models/V1GetAttributesResponseAttribute.d.ts b/dist/models/V1GetAttributesResponseAttribute.d.ts new file mode 100644 index 0000000..b89663d --- /dev/null +++ b/dist/models/V1GetAttributesResponseAttribute.d.ts @@ -0,0 +1,127 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetAttributesResponseAttribute + */ +export interface V1GetAttributesResponseAttribute { + /** + * Признак, что значения словарного атрибута зависят от категории: + * - `true` — у атрибута разные значения для каждой категории. + * - `false` — у атрибута одинаковые значения для всех категорий. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + category_dependent?: boolean; + /** + * Описание характеристики. + * @type {string} + * @memberof V1GetAttributesResponseAttribute + */ + description?: string; + /** + * Идентификатор справочника. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + dictionary_id?: number; + /** + * Идентификатор группы характеристик. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + group_id?: number; + /** + * Название группы характеристик. + * @type {string} + * @memberof V1GetAttributesResponseAttribute + */ + group_name?: string; + /** + * Идентификатор характеристики. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + id?: number; + /** + * Признак аспектного атрибута. Аспектный атрибут — характеристика, по которой отличаются товары одной модели. + * + * Например, у одежды и обуви одной модели могут быть разные расцветки и размеры. То есть цвет и размер — это аспектные атрибуты. + * + * Значения поля: + * - `true` — атрибут аспектный и его нельзя изменить после поставки товара на склад или продажи со своего склада. + * - `false` — атрибут не аспектный, можно изменить в любое время. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + is_aspect?: boolean; + /** + * - `true`, если характеристика — набор значений. + * - `false`, если характеристика — одно значение. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + is_collection?: boolean; + /** + * Признак обязательной характеристики: + * - `true` — обязательная характеристика, + * - `false` — характеристику можно не указывать. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + is_required?: boolean; + /** + * Название. + * @type {string} + * @memberof V1GetAttributesResponseAttribute + */ + name?: string; + /** + * Тип характеристики. + * @type {string} + * @memberof V1GetAttributesResponseAttribute + */ + type?: string; + /** + * Идентификатор комплексного атрибута. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + attribute_complex_id?: number; + /** + * Максимальное количество значений для атрибута. + * @type {number} + * @memberof V1GetAttributesResponseAttribute + */ + max_value_count?: number; + /** + * Признак, что комплексная характеристика — набор значений: + * - `true`, если комплексная характеристика — набор значений, + * - `false`, если комплексная характеристика — одно значение. + * + * @type {boolean} + * @memberof V1GetAttributesResponseAttribute + */ + complex_is_collection?: boolean; +} +/** + * Check if a given object implements the V1GetAttributesResponseAttribute interface. + */ +export declare function instanceOfV1GetAttributesResponseAttribute(value: object): value is V1GetAttributesResponseAttribute; +export declare function V1GetAttributesResponseAttributeFromJSON(json: any): V1GetAttributesResponseAttribute; +export declare function V1GetAttributesResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetAttributesResponseAttribute; +export declare function V1GetAttributesResponseAttributeToJSON(value?: V1GetAttributesResponseAttribute | null): any; diff --git a/dist/models/V1GetAttributesResponseAttribute.js b/dist/models/V1GetAttributesResponseAttribute.js new file mode 100644 index 0000000..d1a1cb7 --- /dev/null +++ b/dist/models/V1GetAttributesResponseAttribute.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetAttributesResponseAttribute = instanceOfV1GetAttributesResponseAttribute; +exports.V1GetAttributesResponseAttributeFromJSON = V1GetAttributesResponseAttributeFromJSON; +exports.V1GetAttributesResponseAttributeFromJSONTyped = V1GetAttributesResponseAttributeFromJSONTyped; +exports.V1GetAttributesResponseAttributeToJSON = V1GetAttributesResponseAttributeToJSON; +/** + * Check if a given object implements the V1GetAttributesResponseAttribute interface. + */ +function instanceOfV1GetAttributesResponseAttribute(value) { + return true; +} +function V1GetAttributesResponseAttributeFromJSON(json) { + return V1GetAttributesResponseAttributeFromJSONTyped(json, false); +} +function V1GetAttributesResponseAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'category_dependent': json['category_dependent'] == null ? undefined : json['category_dependent'], + 'description': json['description'] == null ? undefined : json['description'], + 'dictionary_id': json['dictionary_id'] == null ? undefined : json['dictionary_id'], + 'group_id': json['group_id'] == null ? undefined : json['group_id'], + 'group_name': json['group_name'] == null ? undefined : json['group_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_aspect': json['is_aspect'] == null ? undefined : json['is_aspect'], + 'is_collection': json['is_collection'] == null ? undefined : json['is_collection'], + 'is_required': json['is_required'] == null ? undefined : json['is_required'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + 'attribute_complex_id': json['attribute_complex_id'] == null ? undefined : json['attribute_complex_id'], + 'max_value_count': json['max_value_count'] == null ? undefined : json['max_value_count'], + 'complex_is_collection': json['complex_is_collection'] == null ? undefined : json['complex_is_collection'], + }; +} +function V1GetAttributesResponseAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'category_dependent': value['category_dependent'], + 'description': value['description'], + 'dictionary_id': value['dictionary_id'], + 'group_id': value['group_id'], + 'group_name': value['group_name'], + 'id': value['id'], + 'is_aspect': value['is_aspect'], + 'is_collection': value['is_collection'], + 'is_required': value['is_required'], + 'name': value['name'], + 'type': value['type'], + 'attribute_complex_id': value['attribute_complex_id'], + 'max_value_count': value['max_value_count'], + 'complex_is_collection': value['complex_is_collection'], + }; +} diff --git a/dist/models/V1GetCompensationReportRequest.d.ts b/dist/models/V1GetCompensationReportRequest.d.ts new file mode 100644 index 0000000..73d3c64 --- /dev/null +++ b/dist/models/V1GetCompensationReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetCompensationReportRequest + */ +export interface V1GetCompensationReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. + * @type {string} + * @memberof V1GetCompensationReportRequest + */ + date: string; + /** + * Язык отчёта: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1GetCompensationReportRequest + */ + language?: string; +} +/** + * Check if a given object implements the V1GetCompensationReportRequest interface. + */ +export declare function instanceOfV1GetCompensationReportRequest(value: object): value is V1GetCompensationReportRequest; +export declare function V1GetCompensationReportRequestFromJSON(json: any): V1GetCompensationReportRequest; +export declare function V1GetCompensationReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetCompensationReportRequest; +export declare function V1GetCompensationReportRequestToJSON(value?: V1GetCompensationReportRequest | null): any; diff --git a/dist/models/V1GetCompensationReportRequest.js b/dist/models/V1GetCompensationReportRequest.js new file mode 100644 index 0000000..c7bc5df --- /dev/null +++ b/dist/models/V1GetCompensationReportRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetCompensationReportRequest = instanceOfV1GetCompensationReportRequest; +exports.V1GetCompensationReportRequestFromJSON = V1GetCompensationReportRequestFromJSON; +exports.V1GetCompensationReportRequestFromJSONTyped = V1GetCompensationReportRequestFromJSONTyped; +exports.V1GetCompensationReportRequestToJSON = V1GetCompensationReportRequestToJSON; +/** + * Check if a given object implements the V1GetCompensationReportRequest interface. + */ +function instanceOfV1GetCompensationReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +function V1GetCompensationReportRequestFromJSON(json) { + return V1GetCompensationReportRequestFromJSONTyped(json, false); +} +function V1GetCompensationReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +function V1GetCompensationReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'language': value['language'], + }; +} diff --git a/dist/models/V1GetCompetitorsRequest.d.ts b/dist/models/V1GetCompetitorsRequest.d.ts new file mode 100644 index 0000000..e8b584b --- /dev/null +++ b/dist/models/V1GetCompetitorsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetCompetitorsRequest + */ +export interface V1GetCompetitorsRequest { + /** + * Страница списка, с которой нужно выгрузить конкурентов. Минимальное значение — `1`. + * @type {number} + * @memberof V1GetCompetitorsRequest + */ + page: number; + /** + * Максимальное количество конкурентов на странице. Допустимы значения от `1` до `50`. + * @type {number} + * @memberof V1GetCompetitorsRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetCompetitorsRequest interface. + */ +export declare function instanceOfV1GetCompetitorsRequest(value: object): value is V1GetCompetitorsRequest; +export declare function V1GetCompetitorsRequestFromJSON(json: any): V1GetCompetitorsRequest; +export declare function V1GetCompetitorsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetCompetitorsRequest; +export declare function V1GetCompetitorsRequestToJSON(value?: V1GetCompetitorsRequest | null): any; diff --git a/dist/models/V1GetCompetitorsRequest.js b/dist/models/V1GetCompetitorsRequest.js new file mode 100644 index 0000000..20eeeea --- /dev/null +++ b/dist/models/V1GetCompetitorsRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetCompetitorsRequest = instanceOfV1GetCompetitorsRequest; +exports.V1GetCompetitorsRequestFromJSON = V1GetCompetitorsRequestFromJSON; +exports.V1GetCompetitorsRequestFromJSONTyped = V1GetCompetitorsRequestFromJSONTyped; +exports.V1GetCompetitorsRequestToJSON = V1GetCompetitorsRequestToJSON; +/** + * Check if a given object implements the V1GetCompetitorsRequest interface. + */ +function instanceOfV1GetCompetitorsRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1GetCompetitorsRequestFromJSON(json) { + return V1GetCompetitorsRequestFromJSONTyped(json, false); +} +function V1GetCompetitorsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'limit': json['limit'], + }; +} +function V1GetCompetitorsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1GetCompetitorsResponse.d.ts b/dist/models/V1GetCompetitorsResponse.d.ts new file mode 100644 index 0000000..3a91921 --- /dev/null +++ b/dist/models/V1GetCompetitorsResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetCompetitorsResponseCompetitorInfo } from './GetCompetitorsResponseCompetitorInfo'; +/** + * + * @export + * @interface V1GetCompetitorsResponse + */ +export interface V1GetCompetitorsResponse { + /** + * Список конкурентов. + * @type {Array} + * @memberof V1GetCompetitorsResponse + */ + competitor?: Array; + /** + * Общее количество конкурентов. + * @type {number} + * @memberof V1GetCompetitorsResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1GetCompetitorsResponse interface. + */ +export declare function instanceOfV1GetCompetitorsResponse(value: object): value is V1GetCompetitorsResponse; +export declare function V1GetCompetitorsResponseFromJSON(json: any): V1GetCompetitorsResponse; +export declare function V1GetCompetitorsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetCompetitorsResponse; +export declare function V1GetCompetitorsResponseToJSON(value?: V1GetCompetitorsResponse | null): any; diff --git a/dist/models/V1GetCompetitorsResponse.js b/dist/models/V1GetCompetitorsResponse.js new file mode 100644 index 0000000..7172d57 --- /dev/null +++ b/dist/models/V1GetCompetitorsResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetCompetitorsResponse = instanceOfV1GetCompetitorsResponse; +exports.V1GetCompetitorsResponseFromJSON = V1GetCompetitorsResponseFromJSON; +exports.V1GetCompetitorsResponseFromJSONTyped = V1GetCompetitorsResponseFromJSONTyped; +exports.V1GetCompetitorsResponseToJSON = V1GetCompetitorsResponseToJSON; +const GetCompetitorsResponseCompetitorInfo_1 = require("./GetCompetitorsResponseCompetitorInfo"); +/** + * Check if a given object implements the V1GetCompetitorsResponse interface. + */ +function instanceOfV1GetCompetitorsResponse(value) { + return true; +} +function V1GetCompetitorsResponseFromJSON(json) { + return V1GetCompetitorsResponseFromJSONTyped(json, false); +} +function V1GetCompetitorsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'competitor': json['competitor'] == null ? undefined : (json['competitor'].map(GetCompetitorsResponseCompetitorInfo_1.GetCompetitorsResponseCompetitorInfoFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V1GetCompetitorsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'competitor': value['competitor'] == null ? undefined : (value['competitor'].map(GetCompetitorsResponseCompetitorInfo_1.GetCompetitorsResponseCompetitorInfoToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/V1GetDecompensationReportRequest.d.ts b/dist/models/V1GetDecompensationReportRequest.d.ts new file mode 100644 index 0000000..5d124e2 --- /dev/null +++ b/dist/models/V1GetDecompensationReportRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetDecompensationReportRequest + */ +export interface V1GetDecompensationReportRequest { + /** + * Отчётный период в формате `YYYY-MM`. + * @type {string} + * @memberof V1GetDecompensationReportRequest + */ + date: string; + /** + * Язык отчёта: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V1GetDecompensationReportRequest + */ + language?: string; +} +/** + * Check if a given object implements the V1GetDecompensationReportRequest interface. + */ +export declare function instanceOfV1GetDecompensationReportRequest(value: object): value is V1GetDecompensationReportRequest; +export declare function V1GetDecompensationReportRequestFromJSON(json: any): V1GetDecompensationReportRequest; +export declare function V1GetDecompensationReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDecompensationReportRequest; +export declare function V1GetDecompensationReportRequestToJSON(value?: V1GetDecompensationReportRequest | null): any; diff --git a/dist/models/V1GetDecompensationReportRequest.js b/dist/models/V1GetDecompensationReportRequest.js new file mode 100644 index 0000000..ca94bf2 --- /dev/null +++ b/dist/models/V1GetDecompensationReportRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetDecompensationReportRequest = instanceOfV1GetDecompensationReportRequest; +exports.V1GetDecompensationReportRequestFromJSON = V1GetDecompensationReportRequestFromJSON; +exports.V1GetDecompensationReportRequestFromJSONTyped = V1GetDecompensationReportRequestFromJSONTyped; +exports.V1GetDecompensationReportRequestToJSON = V1GetDecompensationReportRequestToJSON; +/** + * Check if a given object implements the V1GetDecompensationReportRequest interface. + */ +function instanceOfV1GetDecompensationReportRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +function V1GetDecompensationReportRequestFromJSON(json) { + return V1GetDecompensationReportRequestFromJSONTyped(json, false); +} +function V1GetDecompensationReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +function V1GetDecompensationReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'language': value['language'], + }; +} diff --git a/dist/models/V1GetDeliveryMethodReturnSettingsV1Request.d.ts b/dist/models/V1GetDeliveryMethodReturnSettingsV1Request.d.ts new file mode 100644 index 0000000..3d87eac --- /dev/null +++ b/dist/models/V1GetDeliveryMethodReturnSettingsV1Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetDeliveryMethodReturnSettingsV1Request + */ +export interface V1GetDeliveryMethodReturnSettingsV1Request { + /** + * Идентификатор способа доставки. Получите значение параметра методом [/v2/delivery-method/list](#operation/WarehouseAPI_DeliveryMethodListV2). + * @type {number} + * @memberof V1GetDeliveryMethodReturnSettingsV1Request + */ + delivery_method_id: number; +} +/** + * Check if a given object implements the V1GetDeliveryMethodReturnSettingsV1Request interface. + */ +export declare function instanceOfV1GetDeliveryMethodReturnSettingsV1Request(value: object): value is V1GetDeliveryMethodReturnSettingsV1Request; +export declare function V1GetDeliveryMethodReturnSettingsV1RequestFromJSON(json: any): V1GetDeliveryMethodReturnSettingsV1Request; +export declare function V1GetDeliveryMethodReturnSettingsV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDeliveryMethodReturnSettingsV1Request; +export declare function V1GetDeliveryMethodReturnSettingsV1RequestToJSON(value?: V1GetDeliveryMethodReturnSettingsV1Request | null): any; diff --git a/dist/models/V1GetDeliveryMethodReturnSettingsV1Request.js b/dist/models/V1GetDeliveryMethodReturnSettingsV1Request.js new file mode 100644 index 0000000..514f6a0 --- /dev/null +++ b/dist/models/V1GetDeliveryMethodReturnSettingsV1Request.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetDeliveryMethodReturnSettingsV1Request = instanceOfV1GetDeliveryMethodReturnSettingsV1Request; +exports.V1GetDeliveryMethodReturnSettingsV1RequestFromJSON = V1GetDeliveryMethodReturnSettingsV1RequestFromJSON; +exports.V1GetDeliveryMethodReturnSettingsV1RequestFromJSONTyped = V1GetDeliveryMethodReturnSettingsV1RequestFromJSONTyped; +exports.V1GetDeliveryMethodReturnSettingsV1RequestToJSON = V1GetDeliveryMethodReturnSettingsV1RequestToJSON; +/** + * Check if a given object implements the V1GetDeliveryMethodReturnSettingsV1Request interface. + */ +function instanceOfV1GetDeliveryMethodReturnSettingsV1Request(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + return true; +} +function V1GetDeliveryMethodReturnSettingsV1RequestFromJSON(json) { + return V1GetDeliveryMethodReturnSettingsV1RequestFromJSONTyped(json, false); +} +function V1GetDeliveryMethodReturnSettingsV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + }; +} +function V1GetDeliveryMethodReturnSettingsV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + }; +} diff --git a/dist/models/V1GetDeliveryMethodReturnSettingsV1Response.d.ts b/dist/models/V1GetDeliveryMethodReturnSettingsV1Response.d.ts new file mode 100644 index 0000000..5a0d736 --- /dev/null +++ b/dist/models/V1GetDeliveryMethodReturnSettingsV1Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetDeliveryMethodReturnSettingsV1ResponseReturnSetting } from './GetDeliveryMethodReturnSettingsV1ResponseReturnSetting'; +/** + * + * @export + * @interface V1GetDeliveryMethodReturnSettingsV1Response + */ +export interface V1GetDeliveryMethodReturnSettingsV1Response { + /** + * + * @type {GetDeliveryMethodReturnSettingsV1ResponseReturnSetting} + * @memberof V1GetDeliveryMethodReturnSettingsV1Response + */ + settings?: GetDeliveryMethodReturnSettingsV1ResponseReturnSetting; +} +/** + * Check if a given object implements the V1GetDeliveryMethodReturnSettingsV1Response interface. + */ +export declare function instanceOfV1GetDeliveryMethodReturnSettingsV1Response(value: object): value is V1GetDeliveryMethodReturnSettingsV1Response; +export declare function V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON(json: any): V1GetDeliveryMethodReturnSettingsV1Response; +export declare function V1GetDeliveryMethodReturnSettingsV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDeliveryMethodReturnSettingsV1Response; +export declare function V1GetDeliveryMethodReturnSettingsV1ResponseToJSON(value?: V1GetDeliveryMethodReturnSettingsV1Response | null): any; diff --git a/dist/models/V1GetDeliveryMethodReturnSettingsV1Response.js b/dist/models/V1GetDeliveryMethodReturnSettingsV1Response.js new file mode 100644 index 0000000..40759e2 --- /dev/null +++ b/dist/models/V1GetDeliveryMethodReturnSettingsV1Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetDeliveryMethodReturnSettingsV1Response = instanceOfV1GetDeliveryMethodReturnSettingsV1Response; +exports.V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON = V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON; +exports.V1GetDeliveryMethodReturnSettingsV1ResponseFromJSONTyped = V1GetDeliveryMethodReturnSettingsV1ResponseFromJSONTyped; +exports.V1GetDeliveryMethodReturnSettingsV1ResponseToJSON = V1GetDeliveryMethodReturnSettingsV1ResponseToJSON; +const GetDeliveryMethodReturnSettingsV1ResponseReturnSetting_1 = require("./GetDeliveryMethodReturnSettingsV1ResponseReturnSetting"); +/** + * Check if a given object implements the V1GetDeliveryMethodReturnSettingsV1Response interface. + */ +function instanceOfV1GetDeliveryMethodReturnSettingsV1Response(value) { + return true; +} +function V1GetDeliveryMethodReturnSettingsV1ResponseFromJSON(json) { + return V1GetDeliveryMethodReturnSettingsV1ResponseFromJSONTyped(json, false); +} +function V1GetDeliveryMethodReturnSettingsV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'settings': json['settings'] == null ? undefined : (0, GetDeliveryMethodReturnSettingsV1ResponseReturnSetting_1.GetDeliveryMethodReturnSettingsV1ResponseReturnSettingFromJSON)(json['settings']), + }; +} +function V1GetDeliveryMethodReturnSettingsV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'settings': (0, GetDeliveryMethodReturnSettingsV1ResponseReturnSetting_1.GetDeliveryMethodReturnSettingsV1ResponseReturnSettingToJSON)(value['settings']), + }; +} diff --git a/dist/models/V1GetDiscountTaskListRequest.d.ts b/dist/models/V1GetDiscountTaskListRequest.d.ts new file mode 100644 index 0000000..fbb32ad --- /dev/null +++ b/dist/models/V1GetDiscountTaskListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DiscountTaskStatus } from './V1DiscountTaskStatus'; +/** + * + * @export + * @interface V1GetDiscountTaskListRequest + */ +export interface V1GetDiscountTaskListRequest { + /** + * + * @type {V1DiscountTaskStatus} + * @memberof V1GetDiscountTaskListRequest + */ + status: V1DiscountTaskStatus; + /** + * Страница, с которой нужно выгрузить список заявок на скидку. + * @type {number} + * @memberof V1GetDiscountTaskListRequest + */ + page: number; + /** + * Максимальное количество заявок на странице. + * @type {number} + * @memberof V1GetDiscountTaskListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetDiscountTaskListRequest interface. + */ +export declare function instanceOfV1GetDiscountTaskListRequest(value: object): value is V1GetDiscountTaskListRequest; +export declare function V1GetDiscountTaskListRequestFromJSON(json: any): V1GetDiscountTaskListRequest; +export declare function V1GetDiscountTaskListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDiscountTaskListRequest; +export declare function V1GetDiscountTaskListRequestToJSON(value?: V1GetDiscountTaskListRequest | null): any; diff --git a/dist/models/V1GetDiscountTaskListRequest.js b/dist/models/V1GetDiscountTaskListRequest.js new file mode 100644 index 0000000..d13dcf6 --- /dev/null +++ b/dist/models/V1GetDiscountTaskListRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetDiscountTaskListRequest = instanceOfV1GetDiscountTaskListRequest; +exports.V1GetDiscountTaskListRequestFromJSON = V1GetDiscountTaskListRequestFromJSON; +exports.V1GetDiscountTaskListRequestFromJSONTyped = V1GetDiscountTaskListRequestFromJSONTyped; +exports.V1GetDiscountTaskListRequestToJSON = V1GetDiscountTaskListRequestToJSON; +const V1DiscountTaskStatus_1 = require("./V1DiscountTaskStatus"); +/** + * Check if a given object implements the V1GetDiscountTaskListRequest interface. + */ +function instanceOfV1GetDiscountTaskListRequest(value) { + if (!('status' in value) || value['status'] === undefined) + return false; + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1GetDiscountTaskListRequestFromJSON(json) { + return V1GetDiscountTaskListRequestFromJSONTyped(json, false); +} +function V1GetDiscountTaskListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': (0, V1DiscountTaskStatus_1.V1DiscountTaskStatusFromJSON)(json['status']), + 'page': json['page'], + 'limit': json['limit'], + }; +} +function V1GetDiscountTaskListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': (0, V1DiscountTaskStatus_1.V1DiscountTaskStatusToJSON)(value['status']), + 'page': value['page'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1GetDiscountTaskListResponse.d.ts b/dist/models/V1GetDiscountTaskListResponse.d.ts new file mode 100644 index 0000000..9b4379e --- /dev/null +++ b/dist/models/V1GetDiscountTaskListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetDiscountTaskListResponseTask } from './V1GetDiscountTaskListResponseTask'; +/** + * + * @export + * @interface V1GetDiscountTaskListResponse + */ +export interface V1GetDiscountTaskListResponse { + /** + * Список заявок. + * @type {Array} + * @memberof V1GetDiscountTaskListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetDiscountTaskListResponse interface. + */ +export declare function instanceOfV1GetDiscountTaskListResponse(value: object): value is V1GetDiscountTaskListResponse; +export declare function V1GetDiscountTaskListResponseFromJSON(json: any): V1GetDiscountTaskListResponse; +export declare function V1GetDiscountTaskListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDiscountTaskListResponse; +export declare function V1GetDiscountTaskListResponseToJSON(value?: V1GetDiscountTaskListResponse | null): any; diff --git a/dist/models/V1GetDiscountTaskListResponse.js b/dist/models/V1GetDiscountTaskListResponse.js new file mode 100644 index 0000000..3b71624 --- /dev/null +++ b/dist/models/V1GetDiscountTaskListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetDiscountTaskListResponse = instanceOfV1GetDiscountTaskListResponse; +exports.V1GetDiscountTaskListResponseFromJSON = V1GetDiscountTaskListResponseFromJSON; +exports.V1GetDiscountTaskListResponseFromJSONTyped = V1GetDiscountTaskListResponseFromJSONTyped; +exports.V1GetDiscountTaskListResponseToJSON = V1GetDiscountTaskListResponseToJSON; +const V1GetDiscountTaskListResponseTask_1 = require("./V1GetDiscountTaskListResponseTask"); +/** + * Check if a given object implements the V1GetDiscountTaskListResponse interface. + */ +function instanceOfV1GetDiscountTaskListResponse(value) { + return true; +} +function V1GetDiscountTaskListResponseFromJSON(json) { + return V1GetDiscountTaskListResponseFromJSONTyped(json, false); +} +function V1GetDiscountTaskListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetDiscountTaskListResponseTask_1.V1GetDiscountTaskListResponseTaskFromJSON)), + }; +} +function V1GetDiscountTaskListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetDiscountTaskListResponseTask_1.V1GetDiscountTaskListResponseTaskToJSON)), + }; +} diff --git a/dist/models/V1GetDiscountTaskListResponseTask.d.ts b/dist/models/V1GetDiscountTaskListResponseTask.d.ts new file mode 100644 index 0000000..465f4b3 --- /dev/null +++ b/dist/models/V1GetDiscountTaskListResponseTask.d.ts @@ -0,0 +1,236 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetDiscountTaskListResponseTask + */ +export interface V1GetDiscountTaskListResponseTask { + /** + * Идентификатор заявки. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + id?: number; + /** + * Дата создания заявки. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + created_at?: string; + /** + * Время окончания действия заявки. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + end_at?: string; + /** + * Время для изменения решения. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + edited_till?: string; + /** + * Статус заявки. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + status?: string; + /** + * Имя покупателя. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + customer_name?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + sku?: number; + /** + * Комментарий покупателя к заявке. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + user_comment?: string; + /** + * Комментарий продавца к заявке. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + seller_comment?: string; + /** + * Цена по заявке. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + requested_price?: number; + /** + * Одобренная цена. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_price?: number; + /** + * Цена товара до всех скидок. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + original_price?: number; + /** + * Скидка в рублях. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + discount?: number; + /** + * Скидка в процентах. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + discount_percent?: number; + /** + * Базовая цена, по которой товар продаётся на Ozon, если не участвует в акции. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + base_price?: number; + /** + * Минимальное значение цены после автоприменения скидок и акций. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + min_auto_price?: number; + /** + * Идентификатор предыдущей заявки от покупателя по этому товару. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + prev_task_id?: number; + /** + * Является ли товар уценённым. `true`, если уценённый. + * @type {boolean} + * @memberof V1GetDiscountTaskListResponseTask + */ + is_damaged?: boolean; + /** + * Дата модерации: просмотра, одобрения или отклонения заявки. + * + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + moderated_at?: string; + /** + * Скидка в рублях, которую одобрил продавец. Передайте значение `0`, если продавец не одобрял заявку. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_discount?: number; + /** + * Скидка в процентах, которую одобрил продавец. Передайте значение `0`, если продавец не одобрял заявку. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_discount_percent?: number; + /** + * Покупал ли пользователь товар. `true`, если покупал. + * @type {boolean} + * @memberof V1GetDiscountTaskListResponseTask + */ + is_purchased?: boolean; + /** + * Была ли заявка промодерирована автоматически. `true`, если модерация была автоматической. + * @type {boolean} + * @memberof V1GetDiscountTaskListResponseTask + */ + is_auto_moderated?: boolean; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + offer_id?: string; + /** + * Электронный адрес сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + email?: string; + /** + * Фамилия сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + last_name?: string; + /** + * Имя сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + first_name?: string; + /** + * Отчество сотрудника продавца, который обработал заявку. + * @type {string} + * @memberof V1GetDiscountTaskListResponseTask + */ + patronymic?: string; + /** + * Минимальное одобренное количество товаров. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_quantity_min?: number; + /** + * Максимальное одобренное количество товаров. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_quantity_max?: number; + /** + * Запрошенное минимальное количество товаров. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + requested_quantity_min?: number; + /** + * Запрошенное максимальное количество товаров. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + requested_quantity_max?: number; + /** + * Цена по заявке c региональной наценкой. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + requested_price_with_fee?: number; + /** + * Одобренная цена с региональной наценкой. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_price_with_fee?: number; + /** + * Региональная наценка в процентах. + * @type {number} + * @memberof V1GetDiscountTaskListResponseTask + */ + approved_price_fee_percent?: number; +} +/** + * Check if a given object implements the V1GetDiscountTaskListResponseTask interface. + */ +export declare function instanceOfV1GetDiscountTaskListResponseTask(value: object): value is V1GetDiscountTaskListResponseTask; +export declare function V1GetDiscountTaskListResponseTaskFromJSON(json: any): V1GetDiscountTaskListResponseTask; +export declare function V1GetDiscountTaskListResponseTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetDiscountTaskListResponseTask; +export declare function V1GetDiscountTaskListResponseTaskToJSON(value?: V1GetDiscountTaskListResponseTask | null): any; diff --git a/dist/models/V1GetDiscountTaskListResponseTask.js b/dist/models/V1GetDiscountTaskListResponseTask.js new file mode 100644 index 0000000..e3558df --- /dev/null +++ b/dist/models/V1GetDiscountTaskListResponseTask.js @@ -0,0 +1,112 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetDiscountTaskListResponseTask = instanceOfV1GetDiscountTaskListResponseTask; +exports.V1GetDiscountTaskListResponseTaskFromJSON = V1GetDiscountTaskListResponseTaskFromJSON; +exports.V1GetDiscountTaskListResponseTaskFromJSONTyped = V1GetDiscountTaskListResponseTaskFromJSONTyped; +exports.V1GetDiscountTaskListResponseTaskToJSON = V1GetDiscountTaskListResponseTaskToJSON; +/** + * Check if a given object implements the V1GetDiscountTaskListResponseTask interface. + */ +function instanceOfV1GetDiscountTaskListResponseTask(value) { + return true; +} +function V1GetDiscountTaskListResponseTaskFromJSON(json) { + return V1GetDiscountTaskListResponseTaskFromJSONTyped(json, false); +} +function V1GetDiscountTaskListResponseTaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'end_at': json['end_at'] == null ? undefined : json['end_at'], + 'edited_till': json['edited_till'] == null ? undefined : json['edited_till'], + 'status': json['status'] == null ? undefined : json['status'], + 'customer_name': json['customer_name'] == null ? undefined : json['customer_name'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'user_comment': json['user_comment'] == null ? undefined : json['user_comment'], + 'seller_comment': json['seller_comment'] == null ? undefined : json['seller_comment'], + 'requested_price': json['requested_price'] == null ? undefined : json['requested_price'], + 'approved_price': json['approved_price'] == null ? undefined : json['approved_price'], + 'original_price': json['original_price'] == null ? undefined : json['original_price'], + 'discount': json['discount'] == null ? undefined : json['discount'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'base_price': json['base_price'] == null ? undefined : json['base_price'], + 'min_auto_price': json['min_auto_price'] == null ? undefined : json['min_auto_price'], + 'prev_task_id': json['prev_task_id'] == null ? undefined : json['prev_task_id'], + 'is_damaged': json['is_damaged'] == null ? undefined : json['is_damaged'], + 'moderated_at': json['moderated_at'] == null ? undefined : json['moderated_at'], + 'approved_discount': json['approved_discount'] == null ? undefined : json['approved_discount'], + 'approved_discount_percent': json['approved_discount_percent'] == null ? undefined : json['approved_discount_percent'], + 'is_purchased': json['is_purchased'] == null ? undefined : json['is_purchased'], + 'is_auto_moderated': json['is_auto_moderated'] == null ? undefined : json['is_auto_moderated'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'email': json['email'] == null ? undefined : json['email'], + 'last_name': json['last_name'] == null ? undefined : json['last_name'], + 'first_name': json['first_name'] == null ? undefined : json['first_name'], + 'patronymic': json['patronymic'] == null ? undefined : json['patronymic'], + 'approved_quantity_min': json['approved_quantity_min'] == null ? undefined : json['approved_quantity_min'], + 'approved_quantity_max': json['approved_quantity_max'] == null ? undefined : json['approved_quantity_max'], + 'requested_quantity_min': json['requested_quantity_min'] == null ? undefined : json['requested_quantity_min'], + 'requested_quantity_max': json['requested_quantity_max'] == null ? undefined : json['requested_quantity_max'], + 'requested_price_with_fee': json['requested_price_with_fee'] == null ? undefined : json['requested_price_with_fee'], + 'approved_price_with_fee': json['approved_price_with_fee'] == null ? undefined : json['approved_price_with_fee'], + 'approved_price_fee_percent': json['approved_price_fee_percent'] == null ? undefined : json['approved_price_fee_percent'], + }; +} +function V1GetDiscountTaskListResponseTaskToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'created_at': value['created_at'], + 'end_at': value['end_at'], + 'edited_till': value['edited_till'], + 'status': value['status'], + 'customer_name': value['customer_name'], + 'sku': value['sku'], + 'user_comment': value['user_comment'], + 'seller_comment': value['seller_comment'], + 'requested_price': value['requested_price'], + 'approved_price': value['approved_price'], + 'original_price': value['original_price'], + 'discount': value['discount'], + 'discount_percent': value['discount_percent'], + 'base_price': value['base_price'], + 'min_auto_price': value['min_auto_price'], + 'prev_task_id': value['prev_task_id'], + 'is_damaged': value['is_damaged'], + 'moderated_at': value['moderated_at'], + 'approved_discount': value['approved_discount'], + 'approved_discount_percent': value['approved_discount_percent'], + 'is_purchased': value['is_purchased'], + 'is_auto_moderated': value['is_auto_moderated'], + 'offer_id': value['offer_id'], + 'email': value['email'], + 'last_name': value['last_name'], + 'first_name': value['first_name'], + 'patronymic': value['patronymic'], + 'approved_quantity_min': value['approved_quantity_min'], + 'approved_quantity_max': value['approved_quantity_max'], + 'requested_quantity_min': value['requested_quantity_min'], + 'requested_quantity_max': value['requested_quantity_max'], + 'requested_price_with_fee': value['requested_price_with_fee'], + 'approved_price_with_fee': value['approved_price_with_fee'], + 'approved_price_fee_percent': value['approved_price_fee_percent'], + }; +} diff --git a/dist/models/V1GetEtgbRequest.d.ts b/dist/models/V1GetEtgbRequest.d.ts new file mode 100644 index 0000000..d871f30 --- /dev/null +++ b/dist/models/V1GetEtgbRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetEtgbRequestDate } from './GetEtgbRequestDate'; +/** + * + * @export + * @interface V1GetEtgbRequest + */ +export interface V1GetEtgbRequest { + /** + * + * @type {GetEtgbRequestDate} + * @memberof V1GetEtgbRequest + */ + date: GetEtgbRequestDate; +} +/** + * Check if a given object implements the V1GetEtgbRequest interface. + */ +export declare function instanceOfV1GetEtgbRequest(value: object): value is V1GetEtgbRequest; +export declare function V1GetEtgbRequestFromJSON(json: any): V1GetEtgbRequest; +export declare function V1GetEtgbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetEtgbRequest; +export declare function V1GetEtgbRequestToJSON(value?: V1GetEtgbRequest | null): any; diff --git a/dist/models/V1GetEtgbRequest.js b/dist/models/V1GetEtgbRequest.js new file mode 100644 index 0000000..e3072bf --- /dev/null +++ b/dist/models/V1GetEtgbRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetEtgbRequest = instanceOfV1GetEtgbRequest; +exports.V1GetEtgbRequestFromJSON = V1GetEtgbRequestFromJSON; +exports.V1GetEtgbRequestFromJSONTyped = V1GetEtgbRequestFromJSONTyped; +exports.V1GetEtgbRequestToJSON = V1GetEtgbRequestToJSON; +const GetEtgbRequestDate_1 = require("./GetEtgbRequestDate"); +/** + * Check if a given object implements the V1GetEtgbRequest interface. + */ +function instanceOfV1GetEtgbRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + return true; +} +function V1GetEtgbRequestFromJSON(json) { + return V1GetEtgbRequestFromJSONTyped(json, false); +} +function V1GetEtgbRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': (0, GetEtgbRequestDate_1.GetEtgbRequestDateFromJSON)(json['date']), + }; +} +function V1GetEtgbRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': (0, GetEtgbRequestDate_1.GetEtgbRequestDateToJSON)(value['date']), + }; +} diff --git a/dist/models/V1GetEtgbResponse.d.ts b/dist/models/V1GetEtgbResponse.d.ts new file mode 100644 index 0000000..efd8dbd --- /dev/null +++ b/dist/models/V1GetEtgbResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetEtgbResponseResult } from './GetEtgbResponseResult'; +/** + * + * @export + * @interface V1GetEtgbResponse + */ +export interface V1GetEtgbResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof V1GetEtgbResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetEtgbResponse interface. + */ +export declare function instanceOfV1GetEtgbResponse(value: object): value is V1GetEtgbResponse; +export declare function V1GetEtgbResponseFromJSON(json: any): V1GetEtgbResponse; +export declare function V1GetEtgbResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetEtgbResponse; +export declare function V1GetEtgbResponseToJSON(value?: V1GetEtgbResponse | null): any; diff --git a/dist/models/V1GetEtgbResponse.js b/dist/models/V1GetEtgbResponse.js new file mode 100644 index 0000000..f7fd4f9 --- /dev/null +++ b/dist/models/V1GetEtgbResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetEtgbResponse = instanceOfV1GetEtgbResponse; +exports.V1GetEtgbResponseFromJSON = V1GetEtgbResponseFromJSON; +exports.V1GetEtgbResponseFromJSONTyped = V1GetEtgbResponseFromJSONTyped; +exports.V1GetEtgbResponseToJSON = V1GetEtgbResponseToJSON; +const GetEtgbResponseResult_1 = require("./GetEtgbResponseResult"); +/** + * Check if a given object implements the V1GetEtgbResponse interface. + */ +function instanceOfV1GetEtgbResponse(value) { + return true; +} +function V1GetEtgbResponseFromJSON(json) { + return V1GetEtgbResponseFromJSONTyped(json, false); +} +function V1GetEtgbResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(GetEtgbResponseResult_1.GetEtgbResponseResultFromJSON)), + }; +} +function V1GetEtgbResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(GetEtgbResponseResult_1.GetEtgbResponseResultToJSON)), + }; +} diff --git a/dist/models/V1GetFBSRatingIndexInfoV1Response.d.ts b/dist/models/V1GetFBSRatingIndexInfoV1Response.d.ts new file mode 100644 index 0000000..18fafd4 --- /dev/null +++ b/dist/models/V1GetFBSRatingIndexInfoV1Response.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetFBSRatingIndexInfoV1ResponseIndexDynamics } from './GetFBSRatingIndexInfoV1ResponseIndexDynamics'; +/** + * + * @export + * @interface V1GetFBSRatingIndexInfoV1Response + */ +export interface V1GetFBSRatingIndexInfoV1Response { + /** + * Код валюты стоимости обработки ошибок. + * @type {string} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + currency_code?: string; + /** + * Индекс ошибок по дням. + * @type {Array} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + defects?: Array; + /** + * Значение индекса ошибок за период. + * @type {number} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + index?: number; + /** + * Дата начала расчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + period_from?: string; + /** + * Дата окончания расчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + period_to?: string; + /** + * Расходы на обработку ошибок за период. + * @type {number} + * @memberof V1GetFBSRatingIndexInfoV1Response + */ + processing_costs_sum?: number; +} +/** + * Check if a given object implements the V1GetFBSRatingIndexInfoV1Response interface. + */ +export declare function instanceOfV1GetFBSRatingIndexInfoV1Response(value: object): value is V1GetFBSRatingIndexInfoV1Response; +export declare function V1GetFBSRatingIndexInfoV1ResponseFromJSON(json: any): V1GetFBSRatingIndexInfoV1Response; +export declare function V1GetFBSRatingIndexInfoV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFBSRatingIndexInfoV1Response; +export declare function V1GetFBSRatingIndexInfoV1ResponseToJSON(value?: V1GetFBSRatingIndexInfoV1Response | null): any; diff --git a/dist/models/V1GetFBSRatingIndexInfoV1Response.js b/dist/models/V1GetFBSRatingIndexInfoV1Response.js new file mode 100644 index 0000000..c3122ee --- /dev/null +++ b/dist/models/V1GetFBSRatingIndexInfoV1Response.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFBSRatingIndexInfoV1Response = instanceOfV1GetFBSRatingIndexInfoV1Response; +exports.V1GetFBSRatingIndexInfoV1ResponseFromJSON = V1GetFBSRatingIndexInfoV1ResponseFromJSON; +exports.V1GetFBSRatingIndexInfoV1ResponseFromJSONTyped = V1GetFBSRatingIndexInfoV1ResponseFromJSONTyped; +exports.V1GetFBSRatingIndexInfoV1ResponseToJSON = V1GetFBSRatingIndexInfoV1ResponseToJSON; +const GetFBSRatingIndexInfoV1ResponseIndexDynamics_1 = require("./GetFBSRatingIndexInfoV1ResponseIndexDynamics"); +/** + * Check if a given object implements the V1GetFBSRatingIndexInfoV1Response interface. + */ +function instanceOfV1GetFBSRatingIndexInfoV1Response(value) { + return true; +} +function V1GetFBSRatingIndexInfoV1ResponseFromJSON(json) { + return V1GetFBSRatingIndexInfoV1ResponseFromJSONTyped(json, false); +} +function V1GetFBSRatingIndexInfoV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'defects': json['defects'] == null ? undefined : (json['defects'].map(GetFBSRatingIndexInfoV1ResponseIndexDynamics_1.GetFBSRatingIndexInfoV1ResponseIndexDynamicsFromJSON)), + 'index': json['index'] == null ? undefined : json['index'], + 'period_from': json['period_from'] == null ? undefined : json['period_from'], + 'period_to': json['period_to'] == null ? undefined : json['period_to'], + 'processing_costs_sum': json['processing_costs_sum'] == null ? undefined : json['processing_costs_sum'], + }; +} +function V1GetFBSRatingIndexInfoV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'defects': value['defects'] == null ? undefined : (value['defects'].map(GetFBSRatingIndexInfoV1ResponseIndexDynamics_1.GetFBSRatingIndexInfoV1ResponseIndexDynamicsToJSON)), + 'index': value['index'], + 'period_from': value['period_from'], + 'period_to': value['period_to'], + 'processing_costs_sum': value['processing_costs_sum'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1Request.d.ts b/dist/models/V1GetFinanceBalanceV1Request.d.ts new file mode 100644 index 0000000..48f74ff --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetFinanceBalanceV1Request + */ +export interface V1GetFinanceBalanceV1Request { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetFinanceBalanceV1Request + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. Максимальный период между `date_from` и `date_to` — 30 дней. + * @type {string} + * @memberof V1GetFinanceBalanceV1Request + */ + date_to: string; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1Request interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1Request(value: object): value is V1GetFinanceBalanceV1Request; +export declare function V1GetFinanceBalanceV1RequestFromJSON(json: any): V1GetFinanceBalanceV1Request; +export declare function V1GetFinanceBalanceV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1Request; +export declare function V1GetFinanceBalanceV1RequestToJSON(value?: V1GetFinanceBalanceV1Request | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1Request.js b/dist/models/V1GetFinanceBalanceV1Request.js new file mode 100644 index 0000000..7c63c44 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1Request.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1Request = instanceOfV1GetFinanceBalanceV1Request; +exports.V1GetFinanceBalanceV1RequestFromJSON = V1GetFinanceBalanceV1RequestFromJSON; +exports.V1GetFinanceBalanceV1RequestFromJSONTyped = V1GetFinanceBalanceV1RequestFromJSONTyped; +exports.V1GetFinanceBalanceV1RequestToJSON = V1GetFinanceBalanceV1RequestToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1Request interface. + */ +function instanceOfV1GetFinanceBalanceV1Request(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +function V1GetFinanceBalanceV1RequestFromJSON(json) { + return V1GetFinanceBalanceV1RequestFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + }; +} +function V1GetFinanceBalanceV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1Response.d.ts b/dist/models/V1GetFinanceBalanceV1Response.d.ts new file mode 100644 index 0000000..7d271d5 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1Response.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetFinanceBalanceV1ResponseTotal } from './GetFinanceBalanceV1ResponseTotal'; +import type { GetFinanceBalanceV1ResponseCashflows } from './GetFinanceBalanceV1ResponseCashflows'; +/** + * Отчёт о балансе. + * @export + * @interface V1GetFinanceBalanceV1Response + */ +export interface V1GetFinanceBalanceV1Response { + /** + * + * @type {GetFinanceBalanceV1ResponseCashflows} + * @memberof V1GetFinanceBalanceV1Response + */ + cashflows?: GetFinanceBalanceV1ResponseCashflows; + /** + * + * @type {GetFinanceBalanceV1ResponseTotal} + * @memberof V1GetFinanceBalanceV1Response + */ + total?: GetFinanceBalanceV1ResponseTotal; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1Response interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1Response(value: object): value is V1GetFinanceBalanceV1Response; +export declare function V1GetFinanceBalanceV1ResponseFromJSON(json: any): V1GetFinanceBalanceV1Response; +export declare function V1GetFinanceBalanceV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1Response; +export declare function V1GetFinanceBalanceV1ResponseToJSON(value?: V1GetFinanceBalanceV1Response | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1Response.js b/dist/models/V1GetFinanceBalanceV1Response.js new file mode 100644 index 0000000..0e3ee25 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1Response.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1Response = instanceOfV1GetFinanceBalanceV1Response; +exports.V1GetFinanceBalanceV1ResponseFromJSON = V1GetFinanceBalanceV1ResponseFromJSON; +exports.V1GetFinanceBalanceV1ResponseFromJSONTyped = V1GetFinanceBalanceV1ResponseFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseToJSON = V1GetFinanceBalanceV1ResponseToJSON; +const GetFinanceBalanceV1ResponseTotal_1 = require("./GetFinanceBalanceV1ResponseTotal"); +const GetFinanceBalanceV1ResponseCashflows_1 = require("./GetFinanceBalanceV1ResponseCashflows"); +/** + * Check if a given object implements the V1GetFinanceBalanceV1Response interface. + */ +function instanceOfV1GetFinanceBalanceV1Response(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseFromJSON(json) { + return V1GetFinanceBalanceV1ResponseFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cashflows': json['cashflows'] == null ? undefined : (0, GetFinanceBalanceV1ResponseCashflows_1.GetFinanceBalanceV1ResponseCashflowsFromJSON)(json['cashflows']), + 'total': json['total'] == null ? undefined : (0, GetFinanceBalanceV1ResponseTotal_1.GetFinanceBalanceV1ResponseTotalFromJSON)(json['total']), + }; +} +function V1GetFinanceBalanceV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cashflows': (0, GetFinanceBalanceV1ResponseCashflows_1.GetFinanceBalanceV1ResponseCashflowsToJSON)(value['cashflows']), + 'total': (0, GetFinanceBalanceV1ResponseTotal_1.GetFinanceBalanceV1ResponseTotalToJSON)(value['total']), + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponseAccruedMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponseAccruedMoney.d.ts new file mode 100644 index 0000000..232f67a --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseAccruedMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Начислено за период. + * @export + * @interface V1GetFinanceBalanceV1ResponseAccruedMoney + */ +export interface V1GetFinanceBalanceV1ResponseAccruedMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseAccruedMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseAccruedMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseAccruedMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseAccruedMoney(value: object): value is V1GetFinanceBalanceV1ResponseAccruedMoney; +export declare function V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseAccruedMoney; +export declare function V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseAccruedMoney; +export declare function V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseAccruedMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponseAccruedMoney.js b/dist/models/V1GetFinanceBalanceV1ResponseAccruedMoney.js new file mode 100644 index 0000000..4a87b07 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseAccruedMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponseAccruedMoney = instanceOfV1GetFinanceBalanceV1ResponseAccruedMoney; +exports.V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON = V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON = V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseAccruedMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponseAccruedMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseAccruedMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponseAccruedMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.d.ts new file mode 100644 index 0000000..872bc17 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Баланс на конец периода. + * @export + * @interface V1GetFinanceBalanceV1ResponseClosingBalanceMoney + */ +export interface V1GetFinanceBalanceV1ResponseClosingBalanceMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseClosingBalanceMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseClosingBalanceMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseClosingBalanceMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseClosingBalanceMoney(value: object): value is V1GetFinanceBalanceV1ResponseClosingBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseClosingBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseClosingBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseClosingBalanceMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.js b/dist/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.js new file mode 100644 index 0000000..84c4841 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseClosingBalanceMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponseClosingBalanceMoney = instanceOfV1GetFinanceBalanceV1ResponseClosingBalanceMoney; +exports.V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON = V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON = V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseClosingBalanceMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponseClosingBalanceMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponseClosingBalanceMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponseFeeMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponseFeeMoney.d.ts new file mode 100644 index 0000000..cc07eb4 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseFeeMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма вознаграждения Ozon. + * @export + * @interface V1GetFinanceBalanceV1ResponseFeeMoney + */ +export interface V1GetFinanceBalanceV1ResponseFeeMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseFeeMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseFeeMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseFeeMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseFeeMoney(value: object): value is V1GetFinanceBalanceV1ResponseFeeMoney; +export declare function V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseFeeMoney; +export declare function V1GetFinanceBalanceV1ResponseFeeMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseFeeMoney; +export declare function V1GetFinanceBalanceV1ResponseFeeMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseFeeMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponseFeeMoney.js b/dist/models/V1GetFinanceBalanceV1ResponseFeeMoney.js new file mode 100644 index 0000000..f55a585 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseFeeMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponseFeeMoney = instanceOfV1GetFinanceBalanceV1ResponseFeeMoney; +exports.V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON = V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponseFeeMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponseFeeMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseFeeMoneyToJSON = V1GetFinanceBalanceV1ResponseFeeMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseFeeMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponseFeeMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseFeeMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseFeeMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseFeeMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponseFeeMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.d.ts new file mode 100644 index 0000000..07cd968 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Баланс на начало периода. + * @export + * @interface V1GetFinanceBalanceV1ResponseOpeningBalanceMoney + */ +export interface V1GetFinanceBalanceV1ResponseOpeningBalanceMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseOpeningBalanceMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseOpeningBalanceMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseOpeningBalanceMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseOpeningBalanceMoney(value: object): value is V1GetFinanceBalanceV1ResponseOpeningBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseOpeningBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseOpeningBalanceMoney; +export declare function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseOpeningBalanceMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.js b/dist/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.js new file mode 100644 index 0000000..5620a01 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseOpeningBalanceMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponseOpeningBalanceMoney = instanceOfV1GetFinanceBalanceV1ResponseOpeningBalanceMoney; +exports.V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON = V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON = V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseOpeningBalanceMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponseOpeningBalanceMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponseOpeningBalanceMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponsePartnerMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponsePartnerMoney.d.ts new file mode 100644 index 0000000..09e4a3e --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponsePartnerMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Выплаты по механикам лояльности партнёров. + * @export + * @interface V1GetFinanceBalanceV1ResponsePartnerMoney + */ +export interface V1GetFinanceBalanceV1ResponsePartnerMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponsePartnerMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponsePartnerMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponsePartnerMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponsePartnerMoney(value: object): value is V1GetFinanceBalanceV1ResponsePartnerMoney; +export declare function V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponsePartnerMoney; +export declare function V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponsePartnerMoney; +export declare function V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON(value?: V1GetFinanceBalanceV1ResponsePartnerMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponsePartnerMoney.js b/dist/models/V1GetFinanceBalanceV1ResponsePartnerMoney.js new file mode 100644 index 0000000..593422e --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponsePartnerMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponsePartnerMoney = instanceOfV1GetFinanceBalanceV1ResponsePartnerMoney; +exports.V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON = V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON = V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponsePartnerMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponsePartnerMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponsePartnerMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponsePartnerMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.d.ts new file mode 100644 index 0000000..d9b3a0e --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Выплачено за период. + * @export + * @interface V1GetFinanceBalanceV1ResponsePaymentsMoney + */ +export interface V1GetFinanceBalanceV1ResponsePaymentsMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponsePaymentsMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponsePaymentsMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponsePaymentsMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponsePaymentsMoney(value: object): value is V1GetFinanceBalanceV1ResponsePaymentsMoney; +export declare function V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponsePaymentsMoney; +export declare function V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponsePaymentsMoney; +export declare function V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON(value?: V1GetFinanceBalanceV1ResponsePaymentsMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.js b/dist/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.js new file mode 100644 index 0000000..a6815de --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponsePaymentsMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponsePaymentsMoney = instanceOfV1GetFinanceBalanceV1ResponsePaymentsMoney; +exports.V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON = V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON = V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponsePaymentsMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponsePaymentsMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponsePaymentsMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponsePaymentsMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponseReturnsMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponseReturnsMoney.d.ts new file mode 100644 index 0000000..e893e97 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseReturnsMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма возвратов. + * @export + * @interface V1GetFinanceBalanceV1ResponseReturnsMoney + */ +export interface V1GetFinanceBalanceV1ResponseReturnsMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseReturnsMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseReturnsMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseReturnsMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseReturnsMoney(value: object): value is V1GetFinanceBalanceV1ResponseReturnsMoney; +export declare function V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseReturnsMoney; +export declare function V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseReturnsMoney; +export declare function V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseReturnsMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponseReturnsMoney.js b/dist/models/V1GetFinanceBalanceV1ResponseReturnsMoney.js new file mode 100644 index 0000000..a908841 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseReturnsMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponseReturnsMoney = instanceOfV1GetFinanceBalanceV1ResponseReturnsMoney; +exports.V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON = V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON = V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseReturnsMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponseReturnsMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseReturnsMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponseReturnsMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponseRevenueMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponseRevenueMoney.d.ts new file mode 100644 index 0000000..40731dc --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseRevenueMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма, которую оплатили покупатели. + * @export + * @interface V1GetFinanceBalanceV1ResponseRevenueMoney + */ +export interface V1GetFinanceBalanceV1ResponseRevenueMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseRevenueMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseRevenueMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseRevenueMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseRevenueMoney(value: object): value is V1GetFinanceBalanceV1ResponseRevenueMoney; +export declare function V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseRevenueMoney; +export declare function V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseRevenueMoney; +export declare function V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseRevenueMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponseRevenueMoney.js b/dist/models/V1GetFinanceBalanceV1ResponseRevenueMoney.js new file mode 100644 index 0000000..bacc16d --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseRevenueMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponseRevenueMoney = instanceOfV1GetFinanceBalanceV1ResponseRevenueMoney; +exports.V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON = V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON = V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseRevenueMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponseRevenueMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseRevenueMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponseRevenueMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponseSalesMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponseSalesMoney.d.ts new file mode 100644 index 0000000..44fb5bc --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseSalesMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма продаж. + * @export + * @interface V1GetFinanceBalanceV1ResponseSalesMoney + */ +export interface V1GetFinanceBalanceV1ResponseSalesMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseSalesMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseSalesMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseSalesMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseSalesMoney(value: object): value is V1GetFinanceBalanceV1ResponseSalesMoney; +export declare function V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseSalesMoney; +export declare function V1GetFinanceBalanceV1ResponseSalesMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseSalesMoney; +export declare function V1GetFinanceBalanceV1ResponseSalesMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseSalesMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponseSalesMoney.js b/dist/models/V1GetFinanceBalanceV1ResponseSalesMoney.js new file mode 100644 index 0000000..b84387b --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseSalesMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponseSalesMoney = instanceOfV1GetFinanceBalanceV1ResponseSalesMoney; +exports.V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON = V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponseSalesMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponseSalesMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseSalesMoneyToJSON = V1GetFinanceBalanceV1ResponseSalesMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseSalesMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponseSalesMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseSalesMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseSalesMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseSalesMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponseSalesMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceBalanceV1ResponseServicesMoney.d.ts b/dist/models/V1GetFinanceBalanceV1ResponseServicesMoney.d.ts new file mode 100644 index 0000000..c730763 --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseServicesMoney.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сумма начислений за другие услуги. + * @export + * @interface V1GetFinanceBalanceV1ResponseServicesMoney + */ +export interface V1GetFinanceBalanceV1ResponseServicesMoney { + /** + * Валюта. + * @type {string} + * @memberof V1GetFinanceBalanceV1ResponseServicesMoney + */ + currency_code?: string; + /** + * Сумма. + * @type {number} + * @memberof V1GetFinanceBalanceV1ResponseServicesMoney + */ + value?: number; +} +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseServicesMoney interface. + */ +export declare function instanceOfV1GetFinanceBalanceV1ResponseServicesMoney(value: object): value is V1GetFinanceBalanceV1ResponseServicesMoney; +export declare function V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON(json: any): V1GetFinanceBalanceV1ResponseServicesMoney; +export declare function V1GetFinanceBalanceV1ResponseServicesMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceBalanceV1ResponseServicesMoney; +export declare function V1GetFinanceBalanceV1ResponseServicesMoneyToJSON(value?: V1GetFinanceBalanceV1ResponseServicesMoney | null): any; diff --git a/dist/models/V1GetFinanceBalanceV1ResponseServicesMoney.js b/dist/models/V1GetFinanceBalanceV1ResponseServicesMoney.js new file mode 100644 index 0000000..c7b63ac --- /dev/null +++ b/dist/models/V1GetFinanceBalanceV1ResponseServicesMoney.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceBalanceV1ResponseServicesMoney = instanceOfV1GetFinanceBalanceV1ResponseServicesMoney; +exports.V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON = V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON; +exports.V1GetFinanceBalanceV1ResponseServicesMoneyFromJSONTyped = V1GetFinanceBalanceV1ResponseServicesMoneyFromJSONTyped; +exports.V1GetFinanceBalanceV1ResponseServicesMoneyToJSON = V1GetFinanceBalanceV1ResponseServicesMoneyToJSON; +/** + * Check if a given object implements the V1GetFinanceBalanceV1ResponseServicesMoney interface. + */ +function instanceOfV1GetFinanceBalanceV1ResponseServicesMoney(value) { + return true; +} +function V1GetFinanceBalanceV1ResponseServicesMoneyFromJSON(json) { + return V1GetFinanceBalanceV1ResponseServicesMoneyFromJSONTyped(json, false); +} +function V1GetFinanceBalanceV1ResponseServicesMoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1GetFinanceBalanceV1ResponseServicesMoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency_code': value['currency_code'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1GetFinanceProductsBuyoutRequest.d.ts b/dist/models/V1GetFinanceProductsBuyoutRequest.d.ts new file mode 100644 index 0000000..8a4ea9f --- /dev/null +++ b/dist/models/V1GetFinanceProductsBuyoutRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetFinanceProductsBuyoutRequest + */ +export interface V1GetFinanceProductsBuyoutRequest { + /** + * Дата, с которой будут данные в отчёте. + * @type {string} + * @memberof V1GetFinanceProductsBuyoutRequest + */ + date_from: string; + /** + * Дата, по которую будут данные в отчёте. + * + * Максимальный период — 31 день. + * + * @type {string} + * @memberof V1GetFinanceProductsBuyoutRequest + */ + date_to: string; +} +/** + * Check if a given object implements the V1GetFinanceProductsBuyoutRequest interface. + */ +export declare function instanceOfV1GetFinanceProductsBuyoutRequest(value: object): value is V1GetFinanceProductsBuyoutRequest; +export declare function V1GetFinanceProductsBuyoutRequestFromJSON(json: any): V1GetFinanceProductsBuyoutRequest; +export declare function V1GetFinanceProductsBuyoutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceProductsBuyoutRequest; +export declare function V1GetFinanceProductsBuyoutRequestToJSON(value?: V1GetFinanceProductsBuyoutRequest | null): any; diff --git a/dist/models/V1GetFinanceProductsBuyoutRequest.js b/dist/models/V1GetFinanceProductsBuyoutRequest.js new file mode 100644 index 0000000..095e460 --- /dev/null +++ b/dist/models/V1GetFinanceProductsBuyoutRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceProductsBuyoutRequest = instanceOfV1GetFinanceProductsBuyoutRequest; +exports.V1GetFinanceProductsBuyoutRequestFromJSON = V1GetFinanceProductsBuyoutRequestFromJSON; +exports.V1GetFinanceProductsBuyoutRequestFromJSONTyped = V1GetFinanceProductsBuyoutRequestFromJSONTyped; +exports.V1GetFinanceProductsBuyoutRequestToJSON = V1GetFinanceProductsBuyoutRequestToJSON; +/** + * Check if a given object implements the V1GetFinanceProductsBuyoutRequest interface. + */ +function instanceOfV1GetFinanceProductsBuyoutRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +function V1GetFinanceProductsBuyoutRequestFromJSON(json) { + return V1GetFinanceProductsBuyoutRequestFromJSONTyped(json, false); +} +function V1GetFinanceProductsBuyoutRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + }; +} +function V1GetFinanceProductsBuyoutRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + }; +} diff --git a/dist/models/V1GetFinanceProductsBuyoutResponse.d.ts b/dist/models/V1GetFinanceProductsBuyoutResponse.d.ts new file mode 100644 index 0000000..86ebb5f --- /dev/null +++ b/dist/models/V1GetFinanceProductsBuyoutResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetFinanceProductsBuyoutResponseProduct } from './GetFinanceProductsBuyoutResponseProduct'; +/** + * + * @export + * @interface V1GetFinanceProductsBuyoutResponse + */ +export interface V1GetFinanceProductsBuyoutResponse { + /** + * Список выкупленных товаров + * @type {Array} + * @memberof V1GetFinanceProductsBuyoutResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1GetFinanceProductsBuyoutResponse interface. + */ +export declare function instanceOfV1GetFinanceProductsBuyoutResponse(value: object): value is V1GetFinanceProductsBuyoutResponse; +export declare function V1GetFinanceProductsBuyoutResponseFromJSON(json: any): V1GetFinanceProductsBuyoutResponse; +export declare function V1GetFinanceProductsBuyoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetFinanceProductsBuyoutResponse; +export declare function V1GetFinanceProductsBuyoutResponseToJSON(value?: V1GetFinanceProductsBuyoutResponse | null): any; diff --git a/dist/models/V1GetFinanceProductsBuyoutResponse.js b/dist/models/V1GetFinanceProductsBuyoutResponse.js new file mode 100644 index 0000000..20fbb72 --- /dev/null +++ b/dist/models/V1GetFinanceProductsBuyoutResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetFinanceProductsBuyoutResponse = instanceOfV1GetFinanceProductsBuyoutResponse; +exports.V1GetFinanceProductsBuyoutResponseFromJSON = V1GetFinanceProductsBuyoutResponseFromJSON; +exports.V1GetFinanceProductsBuyoutResponseFromJSONTyped = V1GetFinanceProductsBuyoutResponseFromJSONTyped; +exports.V1GetFinanceProductsBuyoutResponseToJSON = V1GetFinanceProductsBuyoutResponseToJSON; +const GetFinanceProductsBuyoutResponseProduct_1 = require("./GetFinanceProductsBuyoutResponseProduct"); +/** + * Check if a given object implements the V1GetFinanceProductsBuyoutResponse interface. + */ +function instanceOfV1GetFinanceProductsBuyoutResponse(value) { + return true; +} +function V1GetFinanceProductsBuyoutResponseFromJSON(json) { + return V1GetFinanceProductsBuyoutResponseFromJSONTyped(json, false); +} +function V1GetFinanceProductsBuyoutResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(GetFinanceProductsBuyoutResponseProduct_1.GetFinanceProductsBuyoutResponseProductFromJSON)), + }; +} +function V1GetFinanceProductsBuyoutResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(GetFinanceProductsBuyoutResponseProduct_1.GetFinanceProductsBuyoutResponseProductToJSON)), + }; +} diff --git a/dist/models/V1GetLabelBatchRequest.d.ts b/dist/models/V1GetLabelBatchRequest.d.ts new file mode 100644 index 0000000..82f50f5 --- /dev/null +++ b/dist/models/V1GetLabelBatchRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetLabelBatchRequest + */ +export interface V1GetLabelBatchRequest { + /** + * Номер задания на формирование этикеток из ответа метода [/v1/posting/fbs/package-label/create](#operation/PostingAPI_CreateLabelBatch). + * @type {number} + * @memberof V1GetLabelBatchRequest + */ + task_id: number; +} +/** + * Check if a given object implements the V1GetLabelBatchRequest interface. + */ +export declare function instanceOfV1GetLabelBatchRequest(value: object): value is V1GetLabelBatchRequest; +export declare function V1GetLabelBatchRequestFromJSON(json: any): V1GetLabelBatchRequest; +export declare function V1GetLabelBatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetLabelBatchRequest; +export declare function V1GetLabelBatchRequestToJSON(value?: V1GetLabelBatchRequest | null): any; diff --git a/dist/models/V1GetLabelBatchRequest.js b/dist/models/V1GetLabelBatchRequest.js new file mode 100644 index 0000000..e2ca83a --- /dev/null +++ b/dist/models/V1GetLabelBatchRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetLabelBatchRequest = instanceOfV1GetLabelBatchRequest; +exports.V1GetLabelBatchRequestFromJSON = V1GetLabelBatchRequestFromJSON; +exports.V1GetLabelBatchRequestFromJSONTyped = V1GetLabelBatchRequestFromJSONTyped; +exports.V1GetLabelBatchRequestToJSON = V1GetLabelBatchRequestToJSON; +/** + * Check if a given object implements the V1GetLabelBatchRequest interface. + */ +function instanceOfV1GetLabelBatchRequest(value) { + if (!('task_id' in value) || value['task_id'] === undefined) + return false; + return true; +} +function V1GetLabelBatchRequestFromJSON(json) { + return V1GetLabelBatchRequestFromJSONTyped(json, false); +} +function V1GetLabelBatchRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'], + }; +} +function V1GetLabelBatchRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/V1GetLabelBatchResponse.d.ts b/dist/models/V1GetLabelBatchResponse.d.ts new file mode 100644 index 0000000..8556a49 --- /dev/null +++ b/dist/models/V1GetLabelBatchResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetLabelBatchResponseResult } from './V1GetLabelBatchResponseResult'; +/** + * + * @export + * @interface V1GetLabelBatchResponse + */ +export interface V1GetLabelBatchResponse { + /** + * + * @type {V1GetLabelBatchResponseResult} + * @memberof V1GetLabelBatchResponse + */ + result?: V1GetLabelBatchResponseResult; +} +/** + * Check if a given object implements the V1GetLabelBatchResponse interface. + */ +export declare function instanceOfV1GetLabelBatchResponse(value: object): value is V1GetLabelBatchResponse; +export declare function V1GetLabelBatchResponseFromJSON(json: any): V1GetLabelBatchResponse; +export declare function V1GetLabelBatchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetLabelBatchResponse; +export declare function V1GetLabelBatchResponseToJSON(value?: V1GetLabelBatchResponse | null): any; diff --git a/dist/models/V1GetLabelBatchResponse.js b/dist/models/V1GetLabelBatchResponse.js new file mode 100644 index 0000000..449cfc0 --- /dev/null +++ b/dist/models/V1GetLabelBatchResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetLabelBatchResponse = instanceOfV1GetLabelBatchResponse; +exports.V1GetLabelBatchResponseFromJSON = V1GetLabelBatchResponseFromJSON; +exports.V1GetLabelBatchResponseFromJSONTyped = V1GetLabelBatchResponseFromJSONTyped; +exports.V1GetLabelBatchResponseToJSON = V1GetLabelBatchResponseToJSON; +const V1GetLabelBatchResponseResult_1 = require("./V1GetLabelBatchResponseResult"); +/** + * Check if a given object implements the V1GetLabelBatchResponse interface. + */ +function instanceOfV1GetLabelBatchResponse(value) { + return true; +} +function V1GetLabelBatchResponseFromJSON(json) { + return V1GetLabelBatchResponseFromJSONTyped(json, false); +} +function V1GetLabelBatchResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1GetLabelBatchResponseResult_1.V1GetLabelBatchResponseResultFromJSON)(json['result']), + }; +} +function V1GetLabelBatchResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1GetLabelBatchResponseResult_1.V1GetLabelBatchResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1GetLabelBatchResponseResult.d.ts b/dist/models/V1GetLabelBatchResponseResult.d.ts new file mode 100644 index 0000000..76782ea --- /dev/null +++ b/dist/models/V1GetLabelBatchResponseResult.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultUnprintedPosting } from './ResultUnprintedPosting'; +/** + * Результат работы метода. + * @export + * @interface V1GetLabelBatchResponseResult + */ +export interface V1GetLabelBatchResponseResult { + /** + * Код ошибки. + * @type {string} + * @memberof V1GetLabelBatchResponseResult + */ + error?: string; + /** + * Ссылка на файл с этикетками. + * @type {string} + * @memberof V1GetLabelBatchResponseResult + */ + file_url?: string; + /** + * Количество напечатанных этикеток. + * @type {number} + * @memberof V1GetLabelBatchResponseResult + */ + printed_postings_count?: number; + /** + * Статус формирования этикеток: + * - `pending` — задание в очереди. + * - `in_progress` — формируются. + * - `completed` — файл с этикетками готов. + * - `error` — ошибка при создании файла. + * + * @type {string} + * @memberof V1GetLabelBatchResponseResult + */ + status?: string; + /** + * Информация об ошибках, из-за которых не получилось напечатать этикетки. + * @type {Array} + * @memberof V1GetLabelBatchResponseResult + */ + unprinted_postings?: Array; + /** + * Количество этикеток, которые не получилось напечатать. + * @type {number} + * @memberof V1GetLabelBatchResponseResult + */ + unprinted_postings_count?: number; +} +/** + * Check if a given object implements the V1GetLabelBatchResponseResult interface. + */ +export declare function instanceOfV1GetLabelBatchResponseResult(value: object): value is V1GetLabelBatchResponseResult; +export declare function V1GetLabelBatchResponseResultFromJSON(json: any): V1GetLabelBatchResponseResult; +export declare function V1GetLabelBatchResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetLabelBatchResponseResult; +export declare function V1GetLabelBatchResponseResultToJSON(value?: V1GetLabelBatchResponseResult | null): any; diff --git a/dist/models/V1GetLabelBatchResponseResult.js b/dist/models/V1GetLabelBatchResponseResult.js new file mode 100644 index 0000000..d33ca42 --- /dev/null +++ b/dist/models/V1GetLabelBatchResponseResult.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetLabelBatchResponseResult = instanceOfV1GetLabelBatchResponseResult; +exports.V1GetLabelBatchResponseResultFromJSON = V1GetLabelBatchResponseResultFromJSON; +exports.V1GetLabelBatchResponseResultFromJSONTyped = V1GetLabelBatchResponseResultFromJSONTyped; +exports.V1GetLabelBatchResponseResultToJSON = V1GetLabelBatchResponseResultToJSON; +const ResultUnprintedPosting_1 = require("./ResultUnprintedPosting"); +/** + * Check if a given object implements the V1GetLabelBatchResponseResult interface. + */ +function instanceOfV1GetLabelBatchResponseResult(value) { + return true; +} +function V1GetLabelBatchResponseResultFromJSON(json) { + return V1GetLabelBatchResponseResultFromJSONTyped(json, false); +} +function V1GetLabelBatchResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'file_url': json['file_url'] == null ? undefined : json['file_url'], + 'printed_postings_count': json['printed_postings_count'] == null ? undefined : json['printed_postings_count'], + 'status': json['status'] == null ? undefined : json['status'], + 'unprinted_postings': json['unprinted_postings'] == null ? undefined : (json['unprinted_postings'].map(ResultUnprintedPosting_1.ResultUnprintedPostingFromJSON)), + 'unprinted_postings_count': json['unprinted_postings_count'] == null ? undefined : json['unprinted_postings_count'], + }; +} +function V1GetLabelBatchResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'file_url': value['file_url'], + 'printed_postings_count': value['printed_postings_count'], + 'status': value['status'], + 'unprinted_postings': value['unprinted_postings'] == null ? undefined : (value['unprinted_postings'].map(ResultUnprintedPosting_1.ResultUnprintedPostingToJSON)), + 'unprinted_postings_count': value['unprinted_postings_count'], + }; +} diff --git a/dist/models/V1GetProductInfoDiscountedRequest.d.ts b/dist/models/V1GetProductInfoDiscountedRequest.d.ts new file mode 100644 index 0000000..6837c10 --- /dev/null +++ b/dist/models/V1GetProductInfoDiscountedRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductInfoDiscountedRequest + */ +export interface V1GetProductInfoDiscountedRequest { + /** + * Список SKU уценённых товаров. + * @type {Array} + * @memberof V1GetProductInfoDiscountedRequest + */ + discounted_skus: Array; +} +/** + * Check if a given object implements the V1GetProductInfoDiscountedRequest interface. + */ +export declare function instanceOfV1GetProductInfoDiscountedRequest(value: object): value is V1GetProductInfoDiscountedRequest; +export declare function V1GetProductInfoDiscountedRequestFromJSON(json: any): V1GetProductInfoDiscountedRequest; +export declare function V1GetProductInfoDiscountedRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoDiscountedRequest; +export declare function V1GetProductInfoDiscountedRequestToJSON(value?: V1GetProductInfoDiscountedRequest | null): any; diff --git a/dist/models/V1GetProductInfoDiscountedRequest.js b/dist/models/V1GetProductInfoDiscountedRequest.js new file mode 100644 index 0000000..f6ad528 --- /dev/null +++ b/dist/models/V1GetProductInfoDiscountedRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductInfoDiscountedRequest = instanceOfV1GetProductInfoDiscountedRequest; +exports.V1GetProductInfoDiscountedRequestFromJSON = V1GetProductInfoDiscountedRequestFromJSON; +exports.V1GetProductInfoDiscountedRequestFromJSONTyped = V1GetProductInfoDiscountedRequestFromJSONTyped; +exports.V1GetProductInfoDiscountedRequestToJSON = V1GetProductInfoDiscountedRequestToJSON; +/** + * Check if a given object implements the V1GetProductInfoDiscountedRequest interface. + */ +function instanceOfV1GetProductInfoDiscountedRequest(value) { + if (!('discounted_skus' in value) || value['discounted_skus'] === undefined) + return false; + return true; +} +function V1GetProductInfoDiscountedRequestFromJSON(json) { + return V1GetProductInfoDiscountedRequestFromJSONTyped(json, false); +} +function V1GetProductInfoDiscountedRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discounted_skus': json['discounted_skus'], + }; +} +function V1GetProductInfoDiscountedRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'discounted_skus': value['discounted_skus'], + }; +} diff --git a/dist/models/V1GetProductInfoDiscountedResponse.d.ts b/dist/models/V1GetProductInfoDiscountedResponse.d.ts new file mode 100644 index 0000000..00d2a42 --- /dev/null +++ b/dist/models/V1GetProductInfoDiscountedResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetProductInfoDiscountedResponseItem } from './V1GetProductInfoDiscountedResponseItem'; +/** + * + * @export + * @interface V1GetProductInfoDiscountedResponse + */ +export interface V1GetProductInfoDiscountedResponse { + /** + * Информация об уценке и основном товаре. + * @type {Array} + * @memberof V1GetProductInfoDiscountedResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1GetProductInfoDiscountedResponse interface. + */ +export declare function instanceOfV1GetProductInfoDiscountedResponse(value: object): value is V1GetProductInfoDiscountedResponse; +export declare function V1GetProductInfoDiscountedResponseFromJSON(json: any): V1GetProductInfoDiscountedResponse; +export declare function V1GetProductInfoDiscountedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoDiscountedResponse; +export declare function V1GetProductInfoDiscountedResponseToJSON(value?: V1GetProductInfoDiscountedResponse | null): any; diff --git a/dist/models/V1GetProductInfoDiscountedResponse.js b/dist/models/V1GetProductInfoDiscountedResponse.js new file mode 100644 index 0000000..6b134a0 --- /dev/null +++ b/dist/models/V1GetProductInfoDiscountedResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductInfoDiscountedResponse = instanceOfV1GetProductInfoDiscountedResponse; +exports.V1GetProductInfoDiscountedResponseFromJSON = V1GetProductInfoDiscountedResponseFromJSON; +exports.V1GetProductInfoDiscountedResponseFromJSONTyped = V1GetProductInfoDiscountedResponseFromJSONTyped; +exports.V1GetProductInfoDiscountedResponseToJSON = V1GetProductInfoDiscountedResponseToJSON; +const V1GetProductInfoDiscountedResponseItem_1 = require("./V1GetProductInfoDiscountedResponseItem"); +/** + * Check if a given object implements the V1GetProductInfoDiscountedResponse interface. + */ +function instanceOfV1GetProductInfoDiscountedResponse(value) { + return true; +} +function V1GetProductInfoDiscountedResponseFromJSON(json) { + return V1GetProductInfoDiscountedResponseFromJSONTyped(json, false); +} +function V1GetProductInfoDiscountedResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1GetProductInfoDiscountedResponseItem_1.V1GetProductInfoDiscountedResponseItemFromJSON)), + }; +} +function V1GetProductInfoDiscountedResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1GetProductInfoDiscountedResponseItem_1.V1GetProductInfoDiscountedResponseItemToJSON)), + }; +} diff --git a/dist/models/V1GetProductInfoDiscountedResponseItem.d.ts b/dist/models/V1GetProductInfoDiscountedResponseItem.d.ts new file mode 100644 index 0000000..2a13c62 --- /dev/null +++ b/dist/models/V1GetProductInfoDiscountedResponseItem.d.ts @@ -0,0 +1,109 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductInfoDiscountedResponseItem + */ +export interface V1GetProductInfoDiscountedResponseItem { + /** + * Комментарий к причине повреждения. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + comment_reason_damaged?: string; + /** + * Состояние товара — новый или Б/У. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + condition?: string; + /** + * Состояние товара по шкале от 1 до 7: + * - 1 — удовлетворительное, + * - 2 — хорошее, + * - 3 — очень хорошее, + * - 4 — отличное, + * - 5–7 — как новый. + * + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + condition_estimation?: string; + /** + * Дефекты товара. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + defects?: string; + /** + * SKU уценённого товара. + * @type {number} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + discounted_sku?: number; + /** + * Описание механического повреждения. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + mechanical_damage?: string; + /** + * Описание повреждения упаковки. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + package_damage?: string; + /** + * Признак нарушения целостности упаковки. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + packaging_violation?: string; + /** + * Причина повреждения. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + reason_damaged?: string; + /** + * Признак, что товар отремонтирован. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + repair?: string; + /** + * Признак, что товар некомплектный. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + shortage?: string; + /** + * SKU основного товара. + * @type {number} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + sku?: number; + /** + * Наличие у товара действующей гарантии. + * @type {string} + * @memberof V1GetProductInfoDiscountedResponseItem + */ + warranty_type?: string; +} +/** + * Check if a given object implements the V1GetProductInfoDiscountedResponseItem interface. + */ +export declare function instanceOfV1GetProductInfoDiscountedResponseItem(value: object): value is V1GetProductInfoDiscountedResponseItem; +export declare function V1GetProductInfoDiscountedResponseItemFromJSON(json: any): V1GetProductInfoDiscountedResponseItem; +export declare function V1GetProductInfoDiscountedResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoDiscountedResponseItem; +export declare function V1GetProductInfoDiscountedResponseItemToJSON(value?: V1GetProductInfoDiscountedResponseItem | null): any; diff --git a/dist/models/V1GetProductInfoDiscountedResponseItem.js b/dist/models/V1GetProductInfoDiscountedResponseItem.js new file mode 100644 index 0000000..81bb366 --- /dev/null +++ b/dist/models/V1GetProductInfoDiscountedResponseItem.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductInfoDiscountedResponseItem = instanceOfV1GetProductInfoDiscountedResponseItem; +exports.V1GetProductInfoDiscountedResponseItemFromJSON = V1GetProductInfoDiscountedResponseItemFromJSON; +exports.V1GetProductInfoDiscountedResponseItemFromJSONTyped = V1GetProductInfoDiscountedResponseItemFromJSONTyped; +exports.V1GetProductInfoDiscountedResponseItemToJSON = V1GetProductInfoDiscountedResponseItemToJSON; +/** + * Check if a given object implements the V1GetProductInfoDiscountedResponseItem interface. + */ +function instanceOfV1GetProductInfoDiscountedResponseItem(value) { + return true; +} +function V1GetProductInfoDiscountedResponseItemFromJSON(json) { + return V1GetProductInfoDiscountedResponseItemFromJSONTyped(json, false); +} +function V1GetProductInfoDiscountedResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment_reason_damaged': json['comment_reason_damaged'] == null ? undefined : json['comment_reason_damaged'], + 'condition': json['condition'] == null ? undefined : json['condition'], + 'condition_estimation': json['condition_estimation'] == null ? undefined : json['condition_estimation'], + 'defects': json['defects'] == null ? undefined : json['defects'], + 'discounted_sku': json['discounted_sku'] == null ? undefined : json['discounted_sku'], + 'mechanical_damage': json['mechanical_damage'] == null ? undefined : json['mechanical_damage'], + 'package_damage': json['package_damage'] == null ? undefined : json['package_damage'], + 'packaging_violation': json['packaging_violation'] == null ? undefined : json['packaging_violation'], + 'reason_damaged': json['reason_damaged'] == null ? undefined : json['reason_damaged'], + 'repair': json['repair'] == null ? undefined : json['repair'], + 'shortage': json['shortage'] == null ? undefined : json['shortage'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'warranty_type': json['warranty_type'] == null ? undefined : json['warranty_type'], + }; +} +function V1GetProductInfoDiscountedResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment_reason_damaged': value['comment_reason_damaged'], + 'condition': value['condition'], + 'condition_estimation': value['condition_estimation'], + 'defects': value['defects'], + 'discounted_sku': value['discounted_sku'], + 'mechanical_damage': value['mechanical_damage'], + 'package_damage': value['package_damage'], + 'packaging_violation': value['packaging_violation'], + 'reason_damaged': value['reason_damaged'], + 'repair': value['repair'], + 'shortage': value['shortage'], + 'sku': value['sku'], + 'warranty_type': value['warranty_type'], + }; +} diff --git a/dist/models/V1GetProductInfoSubscriptionRequest.d.ts b/dist/models/V1GetProductInfoSubscriptionRequest.d.ts new file mode 100644 index 0000000..8f6400d --- /dev/null +++ b/dist/models/V1GetProductInfoSubscriptionRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductInfoSubscriptionRequest + */ +export interface V1GetProductInfoSubscriptionRequest { + /** + * Список SKU, идентификаторов товара в системе Ozon. + * @type {Array} + * @memberof V1GetProductInfoSubscriptionRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1GetProductInfoSubscriptionRequest interface. + */ +export declare function instanceOfV1GetProductInfoSubscriptionRequest(value: object): value is V1GetProductInfoSubscriptionRequest; +export declare function V1GetProductInfoSubscriptionRequestFromJSON(json: any): V1GetProductInfoSubscriptionRequest; +export declare function V1GetProductInfoSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoSubscriptionRequest; +export declare function V1GetProductInfoSubscriptionRequestToJSON(value?: V1GetProductInfoSubscriptionRequest | null): any; diff --git a/dist/models/V1GetProductInfoSubscriptionRequest.js b/dist/models/V1GetProductInfoSubscriptionRequest.js new file mode 100644 index 0000000..c563c0a --- /dev/null +++ b/dist/models/V1GetProductInfoSubscriptionRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductInfoSubscriptionRequest = instanceOfV1GetProductInfoSubscriptionRequest; +exports.V1GetProductInfoSubscriptionRequestFromJSON = V1GetProductInfoSubscriptionRequestFromJSON; +exports.V1GetProductInfoSubscriptionRequestFromJSONTyped = V1GetProductInfoSubscriptionRequestFromJSONTyped; +exports.V1GetProductInfoSubscriptionRequestToJSON = V1GetProductInfoSubscriptionRequestToJSON; +/** + * Check if a given object implements the V1GetProductInfoSubscriptionRequest interface. + */ +function instanceOfV1GetProductInfoSubscriptionRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1GetProductInfoSubscriptionRequestFromJSON(json) { + return V1GetProductInfoSubscriptionRequestFromJSONTyped(json, false); +} +function V1GetProductInfoSubscriptionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +function V1GetProductInfoSubscriptionRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/models/V1GetProductInfoSubscriptionResponse.d.ts b/dist/models/V1GetProductInfoSubscriptionResponse.d.ts new file mode 100644 index 0000000..09378a5 --- /dev/null +++ b/dist/models/V1GetProductInfoSubscriptionResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetProductInfoSubscriptionResponseResult } from './V1GetProductInfoSubscriptionResponseResult'; +/** + * + * @export + * @interface V1GetProductInfoSubscriptionResponse + */ +export interface V1GetProductInfoSubscriptionResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof V1GetProductInfoSubscriptionResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetProductInfoSubscriptionResponse interface. + */ +export declare function instanceOfV1GetProductInfoSubscriptionResponse(value: object): value is V1GetProductInfoSubscriptionResponse; +export declare function V1GetProductInfoSubscriptionResponseFromJSON(json: any): V1GetProductInfoSubscriptionResponse; +export declare function V1GetProductInfoSubscriptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoSubscriptionResponse; +export declare function V1GetProductInfoSubscriptionResponseToJSON(value?: V1GetProductInfoSubscriptionResponse | null): any; diff --git a/dist/models/V1GetProductInfoSubscriptionResponse.js b/dist/models/V1GetProductInfoSubscriptionResponse.js new file mode 100644 index 0000000..ef42c26 --- /dev/null +++ b/dist/models/V1GetProductInfoSubscriptionResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductInfoSubscriptionResponse = instanceOfV1GetProductInfoSubscriptionResponse; +exports.V1GetProductInfoSubscriptionResponseFromJSON = V1GetProductInfoSubscriptionResponseFromJSON; +exports.V1GetProductInfoSubscriptionResponseFromJSONTyped = V1GetProductInfoSubscriptionResponseFromJSONTyped; +exports.V1GetProductInfoSubscriptionResponseToJSON = V1GetProductInfoSubscriptionResponseToJSON; +const V1GetProductInfoSubscriptionResponseResult_1 = require("./V1GetProductInfoSubscriptionResponseResult"); +/** + * Check if a given object implements the V1GetProductInfoSubscriptionResponse interface. + */ +function instanceOfV1GetProductInfoSubscriptionResponse(value) { + return true; +} +function V1GetProductInfoSubscriptionResponseFromJSON(json) { + return V1GetProductInfoSubscriptionResponseFromJSONTyped(json, false); +} +function V1GetProductInfoSubscriptionResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetProductInfoSubscriptionResponseResult_1.V1GetProductInfoSubscriptionResponseResultFromJSON)), + }; +} +function V1GetProductInfoSubscriptionResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetProductInfoSubscriptionResponseResult_1.V1GetProductInfoSubscriptionResponseResultToJSON)), + }; +} diff --git a/dist/models/V1GetProductInfoSubscriptionResponseResult.d.ts b/dist/models/V1GetProductInfoSubscriptionResponseResult.d.ts new file mode 100644 index 0000000..0b78bd6 --- /dev/null +++ b/dist/models/V1GetProductInfoSubscriptionResponseResult.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductInfoSubscriptionResponseResult + */ +export interface V1GetProductInfoSubscriptionResponseResult { + /** + * Количество подписавшихся пользователей. + * @type {number} + * @memberof V1GetProductInfoSubscriptionResponseResult + */ + count?: number; + /** + * Идентификатор товара в системе Ozon, SKU. + * @type {number} + * @memberof V1GetProductInfoSubscriptionResponseResult + */ + sku?: number; +} +/** + * Check if a given object implements the V1GetProductInfoSubscriptionResponseResult interface. + */ +export declare function instanceOfV1GetProductInfoSubscriptionResponseResult(value: object): value is V1GetProductInfoSubscriptionResponseResult; +export declare function V1GetProductInfoSubscriptionResponseResultFromJSON(json: any): V1GetProductInfoSubscriptionResponseResult; +export declare function V1GetProductInfoSubscriptionResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductInfoSubscriptionResponseResult; +export declare function V1GetProductInfoSubscriptionResponseResultToJSON(value?: V1GetProductInfoSubscriptionResponseResult | null): any; diff --git a/dist/models/V1GetProductInfoSubscriptionResponseResult.js b/dist/models/V1GetProductInfoSubscriptionResponseResult.js new file mode 100644 index 0000000..b902d59 --- /dev/null +++ b/dist/models/V1GetProductInfoSubscriptionResponseResult.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductInfoSubscriptionResponseResult = instanceOfV1GetProductInfoSubscriptionResponseResult; +exports.V1GetProductInfoSubscriptionResponseResultFromJSON = V1GetProductInfoSubscriptionResponseResultFromJSON; +exports.V1GetProductInfoSubscriptionResponseResultFromJSONTyped = V1GetProductInfoSubscriptionResponseResultFromJSONTyped; +exports.V1GetProductInfoSubscriptionResponseResultToJSON = V1GetProductInfoSubscriptionResponseResultToJSON; +/** + * Check if a given object implements the V1GetProductInfoSubscriptionResponseResult interface. + */ +function instanceOfV1GetProductInfoSubscriptionResponseResult(value) { + return true; +} +function V1GetProductInfoSubscriptionResponseResultFromJSON(json) { + return V1GetProductInfoSubscriptionResponseResultFromJSONTyped(json, false); +} +function V1GetProductInfoSubscriptionResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1GetProductInfoSubscriptionResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1GetProductPlacementZoneInfoRequest.d.ts b/dist/models/V1GetProductPlacementZoneInfoRequest.d.ts new file mode 100644 index 0000000..579cba5 --- /dev/null +++ b/dist/models/V1GetProductPlacementZoneInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductPlacementZoneInfoRequest + */ +export interface V1GetProductPlacementZoneInfoRequest { + /** + * Список идентификаторов товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1GetProductPlacementZoneInfoRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1GetProductPlacementZoneInfoRequest interface. + */ +export declare function instanceOfV1GetProductPlacementZoneInfoRequest(value: object): value is V1GetProductPlacementZoneInfoRequest; +export declare function V1GetProductPlacementZoneInfoRequestFromJSON(json: any): V1GetProductPlacementZoneInfoRequest; +export declare function V1GetProductPlacementZoneInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductPlacementZoneInfoRequest; +export declare function V1GetProductPlacementZoneInfoRequestToJSON(value?: V1GetProductPlacementZoneInfoRequest | null): any; diff --git a/dist/models/V1GetProductPlacementZoneInfoRequest.js b/dist/models/V1GetProductPlacementZoneInfoRequest.js new file mode 100644 index 0000000..1974d49 --- /dev/null +++ b/dist/models/V1GetProductPlacementZoneInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductPlacementZoneInfoRequest = instanceOfV1GetProductPlacementZoneInfoRequest; +exports.V1GetProductPlacementZoneInfoRequestFromJSON = V1GetProductPlacementZoneInfoRequestFromJSON; +exports.V1GetProductPlacementZoneInfoRequestFromJSONTyped = V1GetProductPlacementZoneInfoRequestFromJSONTyped; +exports.V1GetProductPlacementZoneInfoRequestToJSON = V1GetProductPlacementZoneInfoRequestToJSON; +/** + * Check if a given object implements the V1GetProductPlacementZoneInfoRequest interface. + */ +function instanceOfV1GetProductPlacementZoneInfoRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1GetProductPlacementZoneInfoRequestFromJSON(json) { + return V1GetProductPlacementZoneInfoRequestFromJSONTyped(json, false); +} +function V1GetProductPlacementZoneInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +function V1GetProductPlacementZoneInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/models/V1GetProductPlacementZoneInfoResponse.d.ts b/dist/models/V1GetProductPlacementZoneInfoResponse.d.ts new file mode 100644 index 0000000..30ebfcf --- /dev/null +++ b/dist/models/V1GetProductPlacementZoneInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductPlacementZoneInfoResponseProductPlacement } from './GetProductPlacementZoneInfoResponseProductPlacement'; +/** + * + * @export + * @interface V1GetProductPlacementZoneInfoResponse + */ +export interface V1GetProductPlacementZoneInfoResponse { + /** + * Список товаров с их зонами размещения. + * @type {Array} + * @memberof V1GetProductPlacementZoneInfoResponse + */ + products_placement?: Array; +} +/** + * Check if a given object implements the V1GetProductPlacementZoneInfoResponse interface. + */ +export declare function instanceOfV1GetProductPlacementZoneInfoResponse(value: object): value is V1GetProductPlacementZoneInfoResponse; +export declare function V1GetProductPlacementZoneInfoResponseFromJSON(json: any): V1GetProductPlacementZoneInfoResponse; +export declare function V1GetProductPlacementZoneInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductPlacementZoneInfoResponse; +export declare function V1GetProductPlacementZoneInfoResponseToJSON(value?: V1GetProductPlacementZoneInfoResponse | null): any; diff --git a/dist/models/V1GetProductPlacementZoneInfoResponse.js b/dist/models/V1GetProductPlacementZoneInfoResponse.js new file mode 100644 index 0000000..e411509 --- /dev/null +++ b/dist/models/V1GetProductPlacementZoneInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductPlacementZoneInfoResponse = instanceOfV1GetProductPlacementZoneInfoResponse; +exports.V1GetProductPlacementZoneInfoResponseFromJSON = V1GetProductPlacementZoneInfoResponseFromJSON; +exports.V1GetProductPlacementZoneInfoResponseFromJSONTyped = V1GetProductPlacementZoneInfoResponseFromJSONTyped; +exports.V1GetProductPlacementZoneInfoResponseToJSON = V1GetProductPlacementZoneInfoResponseToJSON; +const GetProductPlacementZoneInfoResponseProductPlacement_1 = require("./GetProductPlacementZoneInfoResponseProductPlacement"); +/** + * Check if a given object implements the V1GetProductPlacementZoneInfoResponse interface. + */ +function instanceOfV1GetProductPlacementZoneInfoResponse(value) { + return true; +} +function V1GetProductPlacementZoneInfoResponseFromJSON(json) { + return V1GetProductPlacementZoneInfoResponseFromJSONTyped(json, false); +} +function V1GetProductPlacementZoneInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_placement': json['products_placement'] == null ? undefined : (json['products_placement'].map(GetProductPlacementZoneInfoResponseProductPlacement_1.GetProductPlacementZoneInfoResponseProductPlacementFromJSON)), + }; +} +function V1GetProductPlacementZoneInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_placement': value['products_placement'] == null ? undefined : (value['products_placement'].map(GetProductPlacementZoneInfoResponseProductPlacement_1.GetProductPlacementZoneInfoResponseProductPlacementToJSON)), + }; +} diff --git a/dist/models/V1GetProductRatingBySkuRequest.d.ts b/dist/models/V1GetProductRatingBySkuRequest.d.ts new file mode 100644 index 0000000..246fc28 --- /dev/null +++ b/dist/models/V1GetProductRatingBySkuRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductRatingBySkuRequest + */ +export interface V1GetProductRatingBySkuRequest { + /** + * Идентификаторы товаров в системе Ozon — SKU, для которых нужно вернуть контент-рейтинг. + * @type {Array} + * @memberof V1GetProductRatingBySkuRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1GetProductRatingBySkuRequest interface. + */ +export declare function instanceOfV1GetProductRatingBySkuRequest(value: object): value is V1GetProductRatingBySkuRequest; +export declare function V1GetProductRatingBySkuRequestFromJSON(json: any): V1GetProductRatingBySkuRequest; +export declare function V1GetProductRatingBySkuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductRatingBySkuRequest; +export declare function V1GetProductRatingBySkuRequestToJSON(value?: V1GetProductRatingBySkuRequest | null): any; diff --git a/dist/models/V1GetProductRatingBySkuRequest.js b/dist/models/V1GetProductRatingBySkuRequest.js new file mode 100644 index 0000000..2d219a2 --- /dev/null +++ b/dist/models/V1GetProductRatingBySkuRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductRatingBySkuRequest = instanceOfV1GetProductRatingBySkuRequest; +exports.V1GetProductRatingBySkuRequestFromJSON = V1GetProductRatingBySkuRequestFromJSON; +exports.V1GetProductRatingBySkuRequestFromJSONTyped = V1GetProductRatingBySkuRequestFromJSONTyped; +exports.V1GetProductRatingBySkuRequestToJSON = V1GetProductRatingBySkuRequestToJSON; +/** + * Check if a given object implements the V1GetProductRatingBySkuRequest interface. + */ +function instanceOfV1GetProductRatingBySkuRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1GetProductRatingBySkuRequestFromJSON(json) { + return V1GetProductRatingBySkuRequestFromJSONTyped(json, false); +} +function V1GetProductRatingBySkuRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +function V1GetProductRatingBySkuRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/models/V1GetProductRatingBySkuResponse.d.ts b/dist/models/V1GetProductRatingBySkuResponse.d.ts new file mode 100644 index 0000000..3b4a299 --- /dev/null +++ b/dist/models/V1GetProductRatingBySkuResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductRatingBySkuResponseProductRating } from './GetProductRatingBySkuResponseProductRating'; +/** + * + * @export + * @interface V1GetProductRatingBySkuResponse + */ +export interface V1GetProductRatingBySkuResponse { + /** + * Контент-рейтинг товаров. + * @type {Array} + * @memberof V1GetProductRatingBySkuResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1GetProductRatingBySkuResponse interface. + */ +export declare function instanceOfV1GetProductRatingBySkuResponse(value: object): value is V1GetProductRatingBySkuResponse; +export declare function V1GetProductRatingBySkuResponseFromJSON(json: any): V1GetProductRatingBySkuResponse; +export declare function V1GetProductRatingBySkuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductRatingBySkuResponse; +export declare function V1GetProductRatingBySkuResponseToJSON(value?: V1GetProductRatingBySkuResponse | null): any; diff --git a/dist/models/V1GetProductRatingBySkuResponse.js b/dist/models/V1GetProductRatingBySkuResponse.js new file mode 100644 index 0000000..a1732af --- /dev/null +++ b/dist/models/V1GetProductRatingBySkuResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductRatingBySkuResponse = instanceOfV1GetProductRatingBySkuResponse; +exports.V1GetProductRatingBySkuResponseFromJSON = V1GetProductRatingBySkuResponseFromJSON; +exports.V1GetProductRatingBySkuResponseFromJSONTyped = V1GetProductRatingBySkuResponseFromJSONTyped; +exports.V1GetProductRatingBySkuResponseToJSON = V1GetProductRatingBySkuResponseToJSON; +const GetProductRatingBySkuResponseProductRating_1 = require("./GetProductRatingBySkuResponseProductRating"); +/** + * Check if a given object implements the V1GetProductRatingBySkuResponse interface. + */ +function instanceOfV1GetProductRatingBySkuResponse(value) { + return true; +} +function V1GetProductRatingBySkuResponseFromJSON(json) { + return V1GetProductRatingBySkuResponseFromJSONTyped(json, false); +} +function V1GetProductRatingBySkuResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(GetProductRatingBySkuResponseProductRating_1.GetProductRatingBySkuResponseProductRatingFromJSON)), + }; +} +function V1GetProductRatingBySkuResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(GetProductRatingBySkuResponseProductRating_1.GetProductRatingBySkuResponseProductRatingToJSON)), + }; +} diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityRequest.d.ts b/dist/models/V1GetProductStairwayDiscountByQuantityRequest.d.ts new file mode 100644 index 0000000..5b296ec --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductStairwayDiscountByQuantityRequest + */ +export interface V1GetProductStairwayDiscountByQuantityRequest { + /** + * Список идентификаторов товара в системе Ozon — SKU. + * @type {Array} + * @memberof V1GetProductStairwayDiscountByQuantityRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityRequest interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityRequest(value: object): value is V1GetProductStairwayDiscountByQuantityRequest; +export declare function V1GetProductStairwayDiscountByQuantityRequestFromJSON(json: any): V1GetProductStairwayDiscountByQuantityRequest; +export declare function V1GetProductStairwayDiscountByQuantityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityRequest; +export declare function V1GetProductStairwayDiscountByQuantityRequestToJSON(value?: V1GetProductStairwayDiscountByQuantityRequest | null): any; diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityRequest.js b/dist/models/V1GetProductStairwayDiscountByQuantityRequest.js new file mode 100644 index 0000000..fd56a8d --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductStairwayDiscountByQuantityRequest = instanceOfV1GetProductStairwayDiscountByQuantityRequest; +exports.V1GetProductStairwayDiscountByQuantityRequestFromJSON = V1GetProductStairwayDiscountByQuantityRequestFromJSON; +exports.V1GetProductStairwayDiscountByQuantityRequestFromJSONTyped = V1GetProductStairwayDiscountByQuantityRequestFromJSONTyped; +exports.V1GetProductStairwayDiscountByQuantityRequestToJSON = V1GetProductStairwayDiscountByQuantityRequestToJSON; +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityRequest interface. + */ +function instanceOfV1GetProductStairwayDiscountByQuantityRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1GetProductStairwayDiscountByQuantityRequestFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityRequestFromJSONTyped(json, false); +} +function V1GetProductStairwayDiscountByQuantityRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +function V1GetProductStairwayDiscountByQuantityRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityResponse.d.ts b/dist/models/V1GetProductStairwayDiscountByQuantityResponse.d.ts new file mode 100644 index 0000000..e9c4ed9 --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetProductStairwayDiscountByQuantityResponseStairways } from './V1GetProductStairwayDiscountByQuantityResponseStairways'; +/** + * + * @export + * @interface V1GetProductStairwayDiscountByQuantityResponse + */ +export interface V1GetProductStairwayDiscountByQuantityResponse { + /** + * Информация о скидке от количества по конкретному товару. + * @type {Array} + * @memberof V1GetProductStairwayDiscountByQuantityResponse + */ + stairways?: Array; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponse interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityResponse(value: object): value is V1GetProductStairwayDiscountByQuantityResponse; +export declare function V1GetProductStairwayDiscountByQuantityResponseFromJSON(json: any): V1GetProductStairwayDiscountByQuantityResponse; +export declare function V1GetProductStairwayDiscountByQuantityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityResponse; +export declare function V1GetProductStairwayDiscountByQuantityResponseToJSON(value?: V1GetProductStairwayDiscountByQuantityResponse | null): any; diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityResponse.js b/dist/models/V1GetProductStairwayDiscountByQuantityResponse.js new file mode 100644 index 0000000..47e3b0d --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductStairwayDiscountByQuantityResponse = instanceOfV1GetProductStairwayDiscountByQuantityResponse; +exports.V1GetProductStairwayDiscountByQuantityResponseFromJSON = V1GetProductStairwayDiscountByQuantityResponseFromJSON; +exports.V1GetProductStairwayDiscountByQuantityResponseFromJSONTyped = V1GetProductStairwayDiscountByQuantityResponseFromJSONTyped; +exports.V1GetProductStairwayDiscountByQuantityResponseToJSON = V1GetProductStairwayDiscountByQuantityResponseToJSON; +const V1GetProductStairwayDiscountByQuantityResponseStairways_1 = require("./V1GetProductStairwayDiscountByQuantityResponseStairways"); +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponse interface. + */ +function instanceOfV1GetProductStairwayDiscountByQuantityResponse(value) { + return true; +} +function V1GetProductStairwayDiscountByQuantityResponseFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityResponseFromJSONTyped(json, false); +} +function V1GetProductStairwayDiscountByQuantityResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stairways': json['stairways'] == null ? undefined : (json['stairways'].map(V1GetProductStairwayDiscountByQuantityResponseStairways_1.V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON)), + }; +} +function V1GetProductStairwayDiscountByQuantityResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'stairways': value['stairways'] == null ? undefined : (value['stairways'].map(V1GetProductStairwayDiscountByQuantityResponseStairways_1.V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON)), + }; +} diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairways.d.ts b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairways.d.ts new file mode 100644 index 0000000..24c7ff0 --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairways.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StatusEnum } from './StatusEnum'; +import type { V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway } from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway'; +/** + * + * @export + * @interface V1GetProductStairwayDiscountByQuantityResponseStairways + */ +export interface V1GetProductStairwayDiscountByQuantityResponseStairways { + /** + * `true`, если скидка от количества включена. + * + * @type {boolean} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairways + */ + enabled?: boolean; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairways + */ + sku?: number; + /** + * + * @type {V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairways + */ + stairway?: V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; + /** + * + * @type {StatusEnum} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairways + */ + status?: StatusEnum; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairways interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairways(value: object): value is V1GetProductStairwayDiscountByQuantityResponseStairways; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON(json: any): V1GetProductStairwayDiscountByQuantityResponseStairways; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityResponseStairways; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON(value?: V1GetProductStairwayDiscountByQuantityResponseStairways | null): any; diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairways.js b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairways.js new file mode 100644 index 0000000..ab75672 --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairways.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductStairwayDiscountByQuantityResponseStairways = instanceOfV1GetProductStairwayDiscountByQuantityResponseStairways; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON = V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSONTyped = V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSONTyped; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON = V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON; +const StatusEnum_1 = require("./StatusEnum"); +const V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway_1 = require("./V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway"); +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairways interface. + */ +function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairways(value) { + return true; +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSONTyped(json, false); +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'stairway': json['stairway'] == null ? undefined : (0, V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway_1.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON)(json['stairway']), + 'status': json['status'] == null ? undefined : (0, StatusEnum_1.StatusEnumFromJSON)(json['status']), + }; +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'sku': value['sku'], + 'stairway': (0, V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway_1.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON)(value['stairway']), + 'status': (0, StatusEnum_1.StatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.d.ts b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.d.ts new file mode 100644 index 0000000..1e6363e --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep } from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep'; +/** + * Информация об уровне скидки от количества. + * @export + * @interface V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway + */ +export interface V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway { + /** + * Информация об уровнях скидки. + * @type {Array} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway + */ + steps?: Array; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairway(value: object): value is V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON(json: any): V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON(value?: V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway | null): any; diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.js b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.js new file mode 100644 index 0000000..8ce1d86 --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairway = instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairway; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON = V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSONTyped = V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSONTyped; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON = V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON; +const V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep_1 = require("./V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep"); +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway interface. + */ +function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairway(value) { + return true; +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSONTyped(json, false); +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'steps': json['steps'] == null ? undefined : (json['steps'].map(V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep_1.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON)), + }; +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayToJSON(value) { + if (value == null) { + return value; + } + return { + 'steps': value['steps'] == null ? undefined : (value['steps'].map(V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep_1.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON)), + }; +} diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.d.ts b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.d.ts new file mode 100644 index 0000000..0d3f39f --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep + */ +export interface V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep { + /** + * Размер скидки в процентах. + * @type {number} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep + */ + discount?: number; + /** + * Количество товара в заказе для применения скидки. + * @type {number} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep + */ + quantity?: number; + /** + * Уровень скидки. + * @type {number} + * @memberof V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep + */ + step?: number; +} +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep interface. + */ +export declare function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep(value: object): value is V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON(json: any): V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep; +export declare function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON(value?: V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep | null): any; diff --git a/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.js b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.js new file mode 100644 index 0000000..9cf5eaa --- /dev/null +++ b/dist/models/V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep = instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON = V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSONTyped = V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSONTyped; +exports.V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON = V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON; +/** + * Check if a given object implements the V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep interface. + */ +function instanceOfV1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep(value) { + return true; +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSON(json) { + return V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSONTyped(json, false); +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount': json['discount'] == null ? undefined : json['discount'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'step': json['step'] == null ? undefined : json['step'], + }; +} +function V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStepToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount': value['discount'], + 'quantity': value['quantity'], + 'step': value['step'], + }; +} diff --git a/dist/models/V1GetRealizationReportByDayRequest.d.ts b/dist/models/V1GetRealizationReportByDayRequest.d.ts new file mode 100644 index 0000000..1656121 --- /dev/null +++ b/dist/models/V1GetRealizationReportByDayRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetRealizationReportByDayRequest + */ +export interface V1GetRealizationReportByDayRequest { + /** + * День. + * @type {number} + * @memberof V1GetRealizationReportByDayRequest + */ + day: number; + /** + * Месяц. + * @type {number} + * @memberof V1GetRealizationReportByDayRequest + */ + month: number; + /** + * Год. + * @type {number} + * @memberof V1GetRealizationReportByDayRequest + */ + year: number; +} +/** + * Check if a given object implements the V1GetRealizationReportByDayRequest interface. + */ +export declare function instanceOfV1GetRealizationReportByDayRequest(value: object): value is V1GetRealizationReportByDayRequest; +export declare function V1GetRealizationReportByDayRequestFromJSON(json: any): V1GetRealizationReportByDayRequest; +export declare function V1GetRealizationReportByDayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRealizationReportByDayRequest; +export declare function V1GetRealizationReportByDayRequestToJSON(value?: V1GetRealizationReportByDayRequest | null): any; diff --git a/dist/models/V1GetRealizationReportByDayRequest.js b/dist/models/V1GetRealizationReportByDayRequest.js new file mode 100644 index 0000000..3499089 --- /dev/null +++ b/dist/models/V1GetRealizationReportByDayRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetRealizationReportByDayRequest = instanceOfV1GetRealizationReportByDayRequest; +exports.V1GetRealizationReportByDayRequestFromJSON = V1GetRealizationReportByDayRequestFromJSON; +exports.V1GetRealizationReportByDayRequestFromJSONTyped = V1GetRealizationReportByDayRequestFromJSONTyped; +exports.V1GetRealizationReportByDayRequestToJSON = V1GetRealizationReportByDayRequestToJSON; +/** + * Check if a given object implements the V1GetRealizationReportByDayRequest interface. + */ +function instanceOfV1GetRealizationReportByDayRequest(value) { + if (!('day' in value) || value['day'] === undefined) + return false; + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('year' in value) || value['year'] === undefined) + return false; + return true; +} +function V1GetRealizationReportByDayRequestFromJSON(json) { + return V1GetRealizationReportByDayRequestFromJSONTyped(json, false); +} +function V1GetRealizationReportByDayRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'], + 'month': json['month'], + 'year': json['year'], + }; +} +function V1GetRealizationReportByDayRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/models/V1GetRealizationReportPostingRequest.d.ts b/dist/models/V1GetRealizationReportPostingRequest.d.ts new file mode 100644 index 0000000..ba82f95 --- /dev/null +++ b/dist/models/V1GetRealizationReportPostingRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetRealizationReportPostingRequest + */ +export interface V1GetRealizationReportPostingRequest { + /** + * Месяц. + * @type {number} + * @memberof V1GetRealizationReportPostingRequest + */ + month: number; + /** + * Год. + * @type {number} + * @memberof V1GetRealizationReportPostingRequest + */ + year: number; +} +/** + * Check if a given object implements the V1GetRealizationReportPostingRequest interface. + */ +export declare function instanceOfV1GetRealizationReportPostingRequest(value: object): value is V1GetRealizationReportPostingRequest; +export declare function V1GetRealizationReportPostingRequestFromJSON(json: any): V1GetRealizationReportPostingRequest; +export declare function V1GetRealizationReportPostingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRealizationReportPostingRequest; +export declare function V1GetRealizationReportPostingRequestToJSON(value?: V1GetRealizationReportPostingRequest | null): any; diff --git a/dist/models/V1GetRealizationReportPostingRequest.js b/dist/models/V1GetRealizationReportPostingRequest.js new file mode 100644 index 0000000..0c1bc46 --- /dev/null +++ b/dist/models/V1GetRealizationReportPostingRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetRealizationReportPostingRequest = instanceOfV1GetRealizationReportPostingRequest; +exports.V1GetRealizationReportPostingRequestFromJSON = V1GetRealizationReportPostingRequestFromJSON; +exports.V1GetRealizationReportPostingRequestFromJSONTyped = V1GetRealizationReportPostingRequestFromJSONTyped; +exports.V1GetRealizationReportPostingRequestToJSON = V1GetRealizationReportPostingRequestToJSON; +/** + * Check if a given object implements the V1GetRealizationReportPostingRequest interface. + */ +function instanceOfV1GetRealizationReportPostingRequest(value) { + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('year' in value) || value['year'] === undefined) + return false; + return true; +} +function V1GetRealizationReportPostingRequestFromJSON(json) { + return V1GetRealizationReportPostingRequestFromJSONTyped(json, false); +} +function V1GetRealizationReportPostingRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'month': json['month'], + 'year': json['year'], + }; +} +function V1GetRealizationReportPostingRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/models/V1GetRealizationReportPostingResponse.d.ts b/dist/models/V1GetRealizationReportPostingResponse.d.ts new file mode 100644 index 0000000..1e5c477 --- /dev/null +++ b/dist/models/V1GetRealizationReportPostingResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetRealizationReportResponseV2Header } from './GetRealizationReportResponseV2Header'; +import type { V1GetRealizationReportPostingResponseRow } from './V1GetRealizationReportPostingResponseRow'; +/** + * Результат запроса. + * @export + * @interface V1GetRealizationReportPostingResponse + */ +export interface V1GetRealizationReportPostingResponse { + /** + * + * @type {GetRealizationReportResponseV2Header} + * @memberof V1GetRealizationReportPostingResponse + */ + header?: GetRealizationReportResponseV2Header; + /** + * Таблица отчёта. + * @type {Array} + * @memberof V1GetRealizationReportPostingResponse + */ + rows?: Array; +} +/** + * Check if a given object implements the V1GetRealizationReportPostingResponse interface. + */ +export declare function instanceOfV1GetRealizationReportPostingResponse(value: object): value is V1GetRealizationReportPostingResponse; +export declare function V1GetRealizationReportPostingResponseFromJSON(json: any): V1GetRealizationReportPostingResponse; +export declare function V1GetRealizationReportPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRealizationReportPostingResponse; +export declare function V1GetRealizationReportPostingResponseToJSON(value?: V1GetRealizationReportPostingResponse | null): any; diff --git a/dist/models/V1GetRealizationReportPostingResponse.js b/dist/models/V1GetRealizationReportPostingResponse.js new file mode 100644 index 0000000..e4c945e --- /dev/null +++ b/dist/models/V1GetRealizationReportPostingResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetRealizationReportPostingResponse = instanceOfV1GetRealizationReportPostingResponse; +exports.V1GetRealizationReportPostingResponseFromJSON = V1GetRealizationReportPostingResponseFromJSON; +exports.V1GetRealizationReportPostingResponseFromJSONTyped = V1GetRealizationReportPostingResponseFromJSONTyped; +exports.V1GetRealizationReportPostingResponseToJSON = V1GetRealizationReportPostingResponseToJSON; +const GetRealizationReportResponseV2Header_1 = require("./GetRealizationReportResponseV2Header"); +const V1GetRealizationReportPostingResponseRow_1 = require("./V1GetRealizationReportPostingResponseRow"); +/** + * Check if a given object implements the V1GetRealizationReportPostingResponse interface. + */ +function instanceOfV1GetRealizationReportPostingResponse(value) { + return true; +} +function V1GetRealizationReportPostingResponseFromJSON(json) { + return V1GetRealizationReportPostingResponseFromJSONTyped(json, false); +} +function V1GetRealizationReportPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'header': json['header'] == null ? undefined : (0, GetRealizationReportResponseV2Header_1.GetRealizationReportResponseV2HeaderFromJSON)(json['header']), + 'rows': json['rows'] == null ? undefined : (json['rows'].map(V1GetRealizationReportPostingResponseRow_1.V1GetRealizationReportPostingResponseRowFromJSON)), + }; +} +function V1GetRealizationReportPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'header': (0, GetRealizationReportResponseV2Header_1.GetRealizationReportResponseV2HeaderToJSON)(value['header']), + 'rows': value['rows'] == null ? undefined : (value['rows'].map(V1GetRealizationReportPostingResponseRow_1.V1GetRealizationReportPostingResponseRowToJSON)), + }; +} diff --git a/dist/models/V1GetRealizationReportPostingResponseRow.d.ts b/dist/models/V1GetRealizationReportPostingResponseRow.d.ts new file mode 100644 index 0000000..8ca2489 --- /dev/null +++ b/dist/models/V1GetRealizationReportPostingResponseRow.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RowItemCommissionReturn } from './RowItemCommissionReturn'; +import type { RowItemLegalEntityDocument } from './RowItemLegalEntityDocument'; +import type { RowItem } from './RowItem'; +import type { RowItemCommission } from './RowItemCommission'; +import type { RowItemOrder } from './RowItemOrder'; +/** + * + * @export + * @interface V1GetRealizationReportPostingResponseRow + */ +export interface V1GetRealizationReportPostingResponseRow { + /** + * Доля комиссии за продажу по категории. + * @type {number} + * @memberof V1GetRealizationReportPostingResponseRow + */ + commission_ratio?: number; + /** + * + * @type {RowItemCommission} + * @memberof V1GetRealizationReportPostingResponseRow + */ + delivery_commission?: RowItemCommission; + /** + * + * @type {RowItem} + * @memberof V1GetRealizationReportPostingResponseRow + */ + item?: RowItem; + /** + * + * @type {RowItemCommissionReturn} + * @memberof V1GetRealizationReportPostingResponseRow + */ + return_commission?: RowItemCommissionReturn; + /** + * Номер строки в отчёте. + * @type {number} + * @memberof V1GetRealizationReportPostingResponseRow + */ + row_number?: number; + /** + * Цена продавца с учётом скидки. + * @type {number} + * @memberof V1GetRealizationReportPostingResponseRow + */ + seller_price_per_instance?: number; + /** + * + * @type {RowItemOrder} + * @memberof V1GetRealizationReportPostingResponseRow + */ + order?: RowItemOrder; + /** + * + * @type {RowItemLegalEntityDocument} + * @memberof V1GetRealizationReportPostingResponseRow + */ + legal_entity_document?: RowItemLegalEntityDocument; +} +/** + * Check if a given object implements the V1GetRealizationReportPostingResponseRow interface. + */ +export declare function instanceOfV1GetRealizationReportPostingResponseRow(value: object): value is V1GetRealizationReportPostingResponseRow; +export declare function V1GetRealizationReportPostingResponseRowFromJSON(json: any): V1GetRealizationReportPostingResponseRow; +export declare function V1GetRealizationReportPostingResponseRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRealizationReportPostingResponseRow; +export declare function V1GetRealizationReportPostingResponseRowToJSON(value?: V1GetRealizationReportPostingResponseRow | null): any; diff --git a/dist/models/V1GetRealizationReportPostingResponseRow.js b/dist/models/V1GetRealizationReportPostingResponseRow.js new file mode 100644 index 0000000..4b2cf01 --- /dev/null +++ b/dist/models/V1GetRealizationReportPostingResponseRow.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetRealizationReportPostingResponseRow = instanceOfV1GetRealizationReportPostingResponseRow; +exports.V1GetRealizationReportPostingResponseRowFromJSON = V1GetRealizationReportPostingResponseRowFromJSON; +exports.V1GetRealizationReportPostingResponseRowFromJSONTyped = V1GetRealizationReportPostingResponseRowFromJSONTyped; +exports.V1GetRealizationReportPostingResponseRowToJSON = V1GetRealizationReportPostingResponseRowToJSON; +const RowItemCommissionReturn_1 = require("./RowItemCommissionReturn"); +const RowItemLegalEntityDocument_1 = require("./RowItemLegalEntityDocument"); +const RowItem_1 = require("./RowItem"); +const RowItemCommission_1 = require("./RowItemCommission"); +const RowItemOrder_1 = require("./RowItemOrder"); +/** + * Check if a given object implements the V1GetRealizationReportPostingResponseRow interface. + */ +function instanceOfV1GetRealizationReportPostingResponseRow(value) { + return true; +} +function V1GetRealizationReportPostingResponseRowFromJSON(json) { + return V1GetRealizationReportPostingResponseRowFromJSONTyped(json, false); +} +function V1GetRealizationReportPostingResponseRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'commission_ratio': json['commission_ratio'] == null ? undefined : json['commission_ratio'], + 'delivery_commission': json['delivery_commission'] == null ? undefined : (0, RowItemCommission_1.RowItemCommissionFromJSON)(json['delivery_commission']), + 'item': json['item'] == null ? undefined : (0, RowItem_1.RowItemFromJSON)(json['item']), + 'return_commission': json['return_commission'] == null ? undefined : (0, RowItemCommissionReturn_1.RowItemCommissionReturnFromJSON)(json['return_commission']), + 'row_number': json['row_number'] == null ? undefined : json['row_number'], + 'seller_price_per_instance': json['seller_price_per_instance'] == null ? undefined : json['seller_price_per_instance'], + 'order': json['order'] == null ? undefined : (0, RowItemOrder_1.RowItemOrderFromJSON)(json['order']), + 'legal_entity_document': json['legal_entity_document'] == null ? undefined : (0, RowItemLegalEntityDocument_1.RowItemLegalEntityDocumentFromJSON)(json['legal_entity_document']), + }; +} +function V1GetRealizationReportPostingResponseRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'commission_ratio': value['commission_ratio'], + 'delivery_commission': (0, RowItemCommission_1.RowItemCommissionToJSON)(value['delivery_commission']), + 'item': (0, RowItem_1.RowItemToJSON)(value['item']), + 'return_commission': (0, RowItemCommissionReturn_1.RowItemCommissionReturnToJSON)(value['return_commission']), + 'row_number': value['row_number'], + 'seller_price_per_instance': value['seller_price_per_instance'], + 'order': (0, RowItemOrder_1.RowItemOrderToJSON)(value['order']), + 'legal_entity_document': (0, RowItemLegalEntityDocument_1.RowItemLegalEntityDocumentToJSON)(value['legal_entity_document']), + }; +} diff --git a/dist/models/V1GetReceiptRequest.d.ts b/dist/models/V1GetReceiptRequest.d.ts new file mode 100644 index 0000000..83a903a --- /dev/null +++ b/dist/models/V1GetReceiptRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetReceiptRequest + */ +export interface V1GetReceiptRequest { + /** + * Идентификатор чека. Получите значение параметра методом [/v1/receipts/seller/list](#operation/ReceiptsSellerList). + * @type {string} + * @memberof V1GetReceiptRequest + */ + receipt_id: string; +} +/** + * Check if a given object implements the V1GetReceiptRequest interface. + */ +export declare function instanceOfV1GetReceiptRequest(value: object): value is V1GetReceiptRequest; +export declare function V1GetReceiptRequestFromJSON(json: any): V1GetReceiptRequest; +export declare function V1GetReceiptRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetReceiptRequest; +export declare function V1GetReceiptRequestToJSON(value?: V1GetReceiptRequest | null): any; diff --git a/dist/models/V1GetReceiptRequest.js b/dist/models/V1GetReceiptRequest.js new file mode 100644 index 0000000..b85ecda --- /dev/null +++ b/dist/models/V1GetReceiptRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetReceiptRequest = instanceOfV1GetReceiptRequest; +exports.V1GetReceiptRequestFromJSON = V1GetReceiptRequestFromJSON; +exports.V1GetReceiptRequestFromJSONTyped = V1GetReceiptRequestFromJSONTyped; +exports.V1GetReceiptRequestToJSON = V1GetReceiptRequestToJSON; +/** + * Check if a given object implements the V1GetReceiptRequest interface. + */ +function instanceOfV1GetReceiptRequest(value) { + if (!('receipt_id' in value) || value['receipt_id'] === undefined) + return false; + return true; +} +function V1GetReceiptRequestFromJSON(json) { + return V1GetReceiptRequestFromJSONTyped(json, false); +} +function V1GetReceiptRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'receipt_id': json['receipt_id'], + }; +} +function V1GetReceiptRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'receipt_id': value['receipt_id'], + }; +} diff --git a/dist/models/V1GetReceiptResponse.d.ts b/dist/models/V1GetReceiptResponse.d.ts new file mode 100644 index 0000000..03586d1 --- /dev/null +++ b/dist/models/V1GetReceiptResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetReceiptResponse + */ +export interface V1GetReceiptResponse { + /** + * PDF-файл с чеком в бинарном виде. + * @type {string} + * @memberof V1GetReceiptResponse + */ + content?: string; +} +/** + * Check if a given object implements the V1GetReceiptResponse interface. + */ +export declare function instanceOfV1GetReceiptResponse(value: object): value is V1GetReceiptResponse; +export declare function V1GetReceiptResponseFromJSON(json: any): V1GetReceiptResponse; +export declare function V1GetReceiptResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetReceiptResponse; +export declare function V1GetReceiptResponseToJSON(value?: V1GetReceiptResponse | null): any; diff --git a/dist/models/V1GetReceiptResponse.js b/dist/models/V1GetReceiptResponse.js new file mode 100644 index 0000000..28e32cd --- /dev/null +++ b/dist/models/V1GetReceiptResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetReceiptResponse = instanceOfV1GetReceiptResponse; +exports.V1GetReceiptResponseFromJSON = V1GetReceiptResponseFromJSON; +exports.V1GetReceiptResponseFromJSONTyped = V1GetReceiptResponseFromJSONTyped; +exports.V1GetReceiptResponseToJSON = V1GetReceiptResponseToJSON; +/** + * Check if a given object implements the V1GetReceiptResponse interface. + */ +function instanceOfV1GetReceiptResponse(value) { + return true; +} +function V1GetReceiptResponseFromJSON(json) { + return V1GetReceiptResponseFromJSONTyped(json, false); +} +function V1GetReceiptResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'content': json['content'] == null ? undefined : json['content'], + }; +} +function V1GetReceiptResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'content': value['content'], + }; +} diff --git a/dist/models/V1GetRestrictionsRequest.d.ts b/dist/models/V1GetRestrictionsRequest.d.ts new file mode 100644 index 0000000..58c7b1f --- /dev/null +++ b/dist/models/V1GetRestrictionsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetRestrictionsRequest + */ +export interface V1GetRestrictionsRequest { + /** + * Номер отправления, для которого нужно определить ограничения. + * @type {string} + * @memberof V1GetRestrictionsRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1GetRestrictionsRequest interface. + */ +export declare function instanceOfV1GetRestrictionsRequest(value: object): value is V1GetRestrictionsRequest; +export declare function V1GetRestrictionsRequestFromJSON(json: any): V1GetRestrictionsRequest; +export declare function V1GetRestrictionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRestrictionsRequest; +export declare function V1GetRestrictionsRequestToJSON(value?: V1GetRestrictionsRequest | null): any; diff --git a/dist/models/V1GetRestrictionsRequest.js b/dist/models/V1GetRestrictionsRequest.js new file mode 100644 index 0000000..ec31b28 --- /dev/null +++ b/dist/models/V1GetRestrictionsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetRestrictionsRequest = instanceOfV1GetRestrictionsRequest; +exports.V1GetRestrictionsRequestFromJSON = V1GetRestrictionsRequestFromJSON; +exports.V1GetRestrictionsRequestFromJSONTyped = V1GetRestrictionsRequestFromJSONTyped; +exports.V1GetRestrictionsRequestToJSON = V1GetRestrictionsRequestToJSON; +/** + * Check if a given object implements the V1GetRestrictionsRequest interface. + */ +function instanceOfV1GetRestrictionsRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1GetRestrictionsRequestFromJSON(json) { + return V1GetRestrictionsRequestFromJSONTyped(json, false); +} +function V1GetRestrictionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1GetRestrictionsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1GetRestrictionsResponse.d.ts b/dist/models/V1GetRestrictionsResponse.d.ts new file mode 100644 index 0000000..efbb20a --- /dev/null +++ b/dist/models/V1GetRestrictionsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Restriction } from './V1Restriction'; +/** + * + * @export + * @interface V1GetRestrictionsResponse + */ +export interface V1GetRestrictionsResponse { + /** + * + * @type {V1Restriction} + * @memberof V1GetRestrictionsResponse + */ + result?: V1Restriction; +} +/** + * Check if a given object implements the V1GetRestrictionsResponse interface. + */ +export declare function instanceOfV1GetRestrictionsResponse(value: object): value is V1GetRestrictionsResponse; +export declare function V1GetRestrictionsResponseFromJSON(json: any): V1GetRestrictionsResponse; +export declare function V1GetRestrictionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetRestrictionsResponse; +export declare function V1GetRestrictionsResponseToJSON(value?: V1GetRestrictionsResponse | null): any; diff --git a/dist/models/V1GetRestrictionsResponse.js b/dist/models/V1GetRestrictionsResponse.js new file mode 100644 index 0000000..cfff6af --- /dev/null +++ b/dist/models/V1GetRestrictionsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetRestrictionsResponse = instanceOfV1GetRestrictionsResponse; +exports.V1GetRestrictionsResponseFromJSON = V1GetRestrictionsResponseFromJSON; +exports.V1GetRestrictionsResponseFromJSONTyped = V1GetRestrictionsResponseFromJSONTyped; +exports.V1GetRestrictionsResponseToJSON = V1GetRestrictionsResponseToJSON; +const V1Restriction_1 = require("./V1Restriction"); +/** + * Check if a given object implements the V1GetRestrictionsResponse interface. + */ +function instanceOfV1GetRestrictionsResponse(value) { + return true; +} +function V1GetRestrictionsResponseFromJSON(json) { + return V1GetRestrictionsResponseFromJSONTyped(json, false); +} +function V1GetRestrictionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1Restriction_1.V1RestrictionFromJSON)(json['result']), + }; +} +function V1GetRestrictionsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1Restriction_1.V1RestrictionToJSON)(value['result']), + }; +} diff --git a/dist/models/V1GetReturnsListRequest.d.ts b/dist/models/V1GetReturnsListRequest.d.ts new file mode 100644 index 0000000..58de2b7 --- /dev/null +++ b/dist/models/V1GetReturnsListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListRequestFilter } from './GetReturnsListRequestFilter'; +/** + * + * @export + * @interface V1GetReturnsListRequest + */ +export interface V1GetReturnsListRequest { + /** + * + * @type {GetReturnsListRequestFilter} + * @memberof V1GetReturnsListRequest + */ + filter?: GetReturnsListRequestFilter; + /** + * Количество подгружаемых возвратов. Максимальное значение — 500. + * @type {number} + * @memberof V1GetReturnsListRequest + */ + limit: number; + /** + * Идентификатор последнего подгруженного возврата. + * @type {number} + * @memberof V1GetReturnsListRequest + */ + last_id?: number; +} +/** + * Check if a given object implements the V1GetReturnsListRequest interface. + */ +export declare function instanceOfV1GetReturnsListRequest(value: object): value is V1GetReturnsListRequest; +export declare function V1GetReturnsListRequestFromJSON(json: any): V1GetReturnsListRequest; +export declare function V1GetReturnsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetReturnsListRequest; +export declare function V1GetReturnsListRequestToJSON(value?: V1GetReturnsListRequest | null): any; diff --git a/dist/models/V1GetReturnsListRequest.js b/dist/models/V1GetReturnsListRequest.js new file mode 100644 index 0000000..186a746 --- /dev/null +++ b/dist/models/V1GetReturnsListRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetReturnsListRequest = instanceOfV1GetReturnsListRequest; +exports.V1GetReturnsListRequestFromJSON = V1GetReturnsListRequestFromJSON; +exports.V1GetReturnsListRequestFromJSONTyped = V1GetReturnsListRequestFromJSONTyped; +exports.V1GetReturnsListRequestToJSON = V1GetReturnsListRequestToJSON; +const GetReturnsListRequestFilter_1 = require("./GetReturnsListRequestFilter"); +/** + * Check if a given object implements the V1GetReturnsListRequest interface. + */ +function instanceOfV1GetReturnsListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1GetReturnsListRequestFromJSON(json) { + return V1GetReturnsListRequestFromJSONTyped(json, false); +} +function V1GetReturnsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, GetReturnsListRequestFilter_1.GetReturnsListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1GetReturnsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, GetReturnsListRequestFilter_1.GetReturnsListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1GetReturnsListResponse.d.ts b/dist/models/V1GetReturnsListResponse.d.ts new file mode 100644 index 0000000..4b015cd --- /dev/null +++ b/dist/models/V1GetReturnsListResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetReturnsListResponseReturnsItem } from './GetReturnsListResponseReturnsItem'; +/** + * + * @export + * @interface V1GetReturnsListResponse + */ +export interface V1GetReturnsListResponse { + /** + * Информация о возвратах. + * @type {Array} + * @memberof V1GetReturnsListResponse + */ + returns?: Array; + /** + * `true`, если у продавца есть другие возвраты. + * + * @type {boolean} + * @memberof V1GetReturnsListResponse + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V1GetReturnsListResponse interface. + */ +export declare function instanceOfV1GetReturnsListResponse(value: object): value is V1GetReturnsListResponse; +export declare function V1GetReturnsListResponseFromJSON(json: any): V1GetReturnsListResponse; +export declare function V1GetReturnsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetReturnsListResponse; +export declare function V1GetReturnsListResponseToJSON(value?: V1GetReturnsListResponse | null): any; diff --git a/dist/models/V1GetReturnsListResponse.js b/dist/models/V1GetReturnsListResponse.js new file mode 100644 index 0000000..50520ca --- /dev/null +++ b/dist/models/V1GetReturnsListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetReturnsListResponse = instanceOfV1GetReturnsListResponse; +exports.V1GetReturnsListResponseFromJSON = V1GetReturnsListResponseFromJSON; +exports.V1GetReturnsListResponseFromJSONTyped = V1GetReturnsListResponseFromJSONTyped; +exports.V1GetReturnsListResponseToJSON = V1GetReturnsListResponseToJSON; +const GetReturnsListResponseReturnsItem_1 = require("./GetReturnsListResponseReturnsItem"); +/** + * Check if a given object implements the V1GetReturnsListResponse interface. + */ +function instanceOfV1GetReturnsListResponse(value) { + return true; +} +function V1GetReturnsListResponseFromJSON(json) { + return V1GetReturnsListResponseFromJSONTyped(json, false); +} +function V1GetReturnsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'returns': json['returns'] == null ? undefined : (json['returns'].map(GetReturnsListResponseReturnsItem_1.GetReturnsListResponseReturnsItemFromJSON)), + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +function V1GetReturnsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'returns': value['returns'] == null ? undefined : (value['returns'].map(GetReturnsListResponseReturnsItem_1.GetReturnsListResponseReturnsItemToJSON)), + 'has_next': value['has_next'], + }; +} diff --git a/dist/models/V1GetStrategyIDsByItemIDsResponse.d.ts b/dist/models/V1GetStrategyIDsByItemIDsResponse.d.ts new file mode 100644 index 0000000..0717348 --- /dev/null +++ b/dist/models/V1GetStrategyIDsByItemIDsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetStrategyIDsByItemIDsResponseResult } from './V1GetStrategyIDsByItemIDsResponseResult'; +/** + * + * @export + * @interface V1GetStrategyIDsByItemIDsResponse + */ +export interface V1GetStrategyIDsByItemIDsResponse { + /** + * + * @type {V1GetStrategyIDsByItemIDsResponseResult} + * @memberof V1GetStrategyIDsByItemIDsResponse + */ + result?: V1GetStrategyIDsByItemIDsResponseResult; +} +/** + * Check if a given object implements the V1GetStrategyIDsByItemIDsResponse interface. + */ +export declare function instanceOfV1GetStrategyIDsByItemIDsResponse(value: object): value is V1GetStrategyIDsByItemIDsResponse; +export declare function V1GetStrategyIDsByItemIDsResponseFromJSON(json: any): V1GetStrategyIDsByItemIDsResponse; +export declare function V1GetStrategyIDsByItemIDsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyIDsByItemIDsResponse; +export declare function V1GetStrategyIDsByItemIDsResponseToJSON(value?: V1GetStrategyIDsByItemIDsResponse | null): any; diff --git a/dist/models/V1GetStrategyIDsByItemIDsResponse.js b/dist/models/V1GetStrategyIDsByItemIDsResponse.js new file mode 100644 index 0000000..3728ad7 --- /dev/null +++ b/dist/models/V1GetStrategyIDsByItemIDsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyIDsByItemIDsResponse = instanceOfV1GetStrategyIDsByItemIDsResponse; +exports.V1GetStrategyIDsByItemIDsResponseFromJSON = V1GetStrategyIDsByItemIDsResponseFromJSON; +exports.V1GetStrategyIDsByItemIDsResponseFromJSONTyped = V1GetStrategyIDsByItemIDsResponseFromJSONTyped; +exports.V1GetStrategyIDsByItemIDsResponseToJSON = V1GetStrategyIDsByItemIDsResponseToJSON; +const V1GetStrategyIDsByItemIDsResponseResult_1 = require("./V1GetStrategyIDsByItemIDsResponseResult"); +/** + * Check if a given object implements the V1GetStrategyIDsByItemIDsResponse interface. + */ +function instanceOfV1GetStrategyIDsByItemIDsResponse(value) { + return true; +} +function V1GetStrategyIDsByItemIDsResponseFromJSON(json) { + return V1GetStrategyIDsByItemIDsResponseFromJSONTyped(json, false); +} +function V1GetStrategyIDsByItemIDsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1GetStrategyIDsByItemIDsResponseResult_1.V1GetStrategyIDsByItemIDsResponseResultFromJSON)(json['result']), + }; +} +function V1GetStrategyIDsByItemIDsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1GetStrategyIDsByItemIDsResponseResult_1.V1GetStrategyIDsByItemIDsResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1GetStrategyIDsByItemIDsResponseResult.d.ts b/dist/models/V1GetStrategyIDsByItemIDsResponseResult.d.ts new file mode 100644 index 0000000..70cc068 --- /dev/null +++ b/dist/models/V1GetStrategyIDsByItemIDsResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetStrategyIDsByItemIDsResponseProductInfo } from './GetStrategyIDsByItemIDsResponseProductInfo'; +/** + * Результат работы метода. + * @export + * @interface V1GetStrategyIDsByItemIDsResponseResult + */ +export interface V1GetStrategyIDsByItemIDsResponseResult { + /** + * Информация о товаре. + * @type {Array} + * @memberof V1GetStrategyIDsByItemIDsResponseResult + */ + products_info?: Array; +} +/** + * Check if a given object implements the V1GetStrategyIDsByItemIDsResponseResult interface. + */ +export declare function instanceOfV1GetStrategyIDsByItemIDsResponseResult(value: object): value is V1GetStrategyIDsByItemIDsResponseResult; +export declare function V1GetStrategyIDsByItemIDsResponseResultFromJSON(json: any): V1GetStrategyIDsByItemIDsResponseResult; +export declare function V1GetStrategyIDsByItemIDsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyIDsByItemIDsResponseResult; +export declare function V1GetStrategyIDsByItemIDsResponseResultToJSON(value?: V1GetStrategyIDsByItemIDsResponseResult | null): any; diff --git a/dist/models/V1GetStrategyIDsByItemIDsResponseResult.js b/dist/models/V1GetStrategyIDsByItemIDsResponseResult.js new file mode 100644 index 0000000..69b4730 --- /dev/null +++ b/dist/models/V1GetStrategyIDsByItemIDsResponseResult.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyIDsByItemIDsResponseResult = instanceOfV1GetStrategyIDsByItemIDsResponseResult; +exports.V1GetStrategyIDsByItemIDsResponseResultFromJSON = V1GetStrategyIDsByItemIDsResponseResultFromJSON; +exports.V1GetStrategyIDsByItemIDsResponseResultFromJSONTyped = V1GetStrategyIDsByItemIDsResponseResultFromJSONTyped; +exports.V1GetStrategyIDsByItemIDsResponseResultToJSON = V1GetStrategyIDsByItemIDsResponseResultToJSON; +const GetStrategyIDsByItemIDsResponseProductInfo_1 = require("./GetStrategyIDsByItemIDsResponseProductInfo"); +/** + * Check if a given object implements the V1GetStrategyIDsByItemIDsResponseResult interface. + */ +function instanceOfV1GetStrategyIDsByItemIDsResponseResult(value) { + return true; +} +function V1GetStrategyIDsByItemIDsResponseResultFromJSON(json) { + return V1GetStrategyIDsByItemIDsResponseResultFromJSONTyped(json, false); +} +function V1GetStrategyIDsByItemIDsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_info': json['products_info'] == null ? undefined : (json['products_info'].map(GetStrategyIDsByItemIDsResponseProductInfo_1.GetStrategyIDsByItemIDsResponseProductInfoFromJSON)), + }; +} +function V1GetStrategyIDsByItemIDsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_info': value['products_info'] == null ? undefined : (value['products_info'].map(GetStrategyIDsByItemIDsResponseProductInfo_1.GetStrategyIDsByItemIDsResponseProductInfoToJSON)), + }; +} diff --git a/dist/models/V1GetStrategyItemInfoRequest.d.ts b/dist/models/V1GetStrategyItemInfoRequest.d.ts new file mode 100644 index 0000000..1b55001 --- /dev/null +++ b/dist/models/V1GetStrategyItemInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetStrategyItemInfoRequest + */ +export interface V1GetStrategyItemInfoRequest { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1GetStrategyItemInfoRequest + */ + product_id: number; +} +/** + * Check if a given object implements the V1GetStrategyItemInfoRequest interface. + */ +export declare function instanceOfV1GetStrategyItemInfoRequest(value: object): value is V1GetStrategyItemInfoRequest; +export declare function V1GetStrategyItemInfoRequestFromJSON(json: any): V1GetStrategyItemInfoRequest; +export declare function V1GetStrategyItemInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemInfoRequest; +export declare function V1GetStrategyItemInfoRequestToJSON(value?: V1GetStrategyItemInfoRequest | null): any; diff --git a/dist/models/V1GetStrategyItemInfoRequest.js b/dist/models/V1GetStrategyItemInfoRequest.js new file mode 100644 index 0000000..d06f61c --- /dev/null +++ b/dist/models/V1GetStrategyItemInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyItemInfoRequest = instanceOfV1GetStrategyItemInfoRequest; +exports.V1GetStrategyItemInfoRequestFromJSON = V1GetStrategyItemInfoRequestFromJSON; +exports.V1GetStrategyItemInfoRequestFromJSONTyped = V1GetStrategyItemInfoRequestFromJSONTyped; +exports.V1GetStrategyItemInfoRequestToJSON = V1GetStrategyItemInfoRequestToJSON; +/** + * Check if a given object implements the V1GetStrategyItemInfoRequest interface. + */ +function instanceOfV1GetStrategyItemInfoRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function V1GetStrategyItemInfoRequestFromJSON(json) { + return V1GetStrategyItemInfoRequestFromJSONTyped(json, false); +} +function V1GetStrategyItemInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +function V1GetStrategyItemInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V1GetStrategyItemInfoResponse.d.ts b/dist/models/V1GetStrategyItemInfoResponse.d.ts new file mode 100644 index 0000000..a1ff5db --- /dev/null +++ b/dist/models/V1GetStrategyItemInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetStrategyItemInfoResponseResult } from './V1GetStrategyItemInfoResponseResult'; +/** + * + * @export + * @interface V1GetStrategyItemInfoResponse + */ +export interface V1GetStrategyItemInfoResponse { + /** + * + * @type {V1GetStrategyItemInfoResponseResult} + * @memberof V1GetStrategyItemInfoResponse + */ + result?: V1GetStrategyItemInfoResponseResult; +} +/** + * Check if a given object implements the V1GetStrategyItemInfoResponse interface. + */ +export declare function instanceOfV1GetStrategyItemInfoResponse(value: object): value is V1GetStrategyItemInfoResponse; +export declare function V1GetStrategyItemInfoResponseFromJSON(json: any): V1GetStrategyItemInfoResponse; +export declare function V1GetStrategyItemInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemInfoResponse; +export declare function V1GetStrategyItemInfoResponseToJSON(value?: V1GetStrategyItemInfoResponse | null): any; diff --git a/dist/models/V1GetStrategyItemInfoResponse.js b/dist/models/V1GetStrategyItemInfoResponse.js new file mode 100644 index 0000000..8ece819 --- /dev/null +++ b/dist/models/V1GetStrategyItemInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyItemInfoResponse = instanceOfV1GetStrategyItemInfoResponse; +exports.V1GetStrategyItemInfoResponseFromJSON = V1GetStrategyItemInfoResponseFromJSON; +exports.V1GetStrategyItemInfoResponseFromJSONTyped = V1GetStrategyItemInfoResponseFromJSONTyped; +exports.V1GetStrategyItemInfoResponseToJSON = V1GetStrategyItemInfoResponseToJSON; +const V1GetStrategyItemInfoResponseResult_1 = require("./V1GetStrategyItemInfoResponseResult"); +/** + * Check if a given object implements the V1GetStrategyItemInfoResponse interface. + */ +function instanceOfV1GetStrategyItemInfoResponse(value) { + return true; +} +function V1GetStrategyItemInfoResponseFromJSON(json) { + return V1GetStrategyItemInfoResponseFromJSONTyped(json, false); +} +function V1GetStrategyItemInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1GetStrategyItemInfoResponseResult_1.V1GetStrategyItemInfoResponseResultFromJSON)(json['result']), + }; +} +function V1GetStrategyItemInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1GetStrategyItemInfoResponseResult_1.V1GetStrategyItemInfoResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1GetStrategyItemInfoResponseResult.d.ts b/dist/models/V1GetStrategyItemInfoResponseResult.d.ts new file mode 100644 index 0000000..d2592ef --- /dev/null +++ b/dist/models/V1GetStrategyItemInfoResponseResult.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат работы метода. + * @export + * @interface V1GetStrategyItemInfoResponseResult + */ +export interface V1GetStrategyItemInfoResponseResult { + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1GetStrategyItemInfoResponseResult + */ + strategy_id?: string; + /** + * `true`, если товар участвует в стратегии ценообразования. + * + * @type {boolean} + * @memberof V1GetStrategyItemInfoResponseResult + */ + is_enabled?: boolean; + /** + * Цена по стратегии. + * @type {number} + * @memberof V1GetStrategyItemInfoResponseResult + */ + strategy_product_price?: number; + /** + * Дата установки цены по стратегии. + * @type {string} + * @memberof V1GetStrategyItemInfoResponseResult + */ + price_downloaded_at?: string; + /** + * Идентификатор конкурента. + * @type {number} + * @memberof V1GetStrategyItemInfoResponseResult + * @deprecated + */ + strategy_competitor_id?: number; + /** + * Ссылка на товар конкурента. + * @type {string} + * @memberof V1GetStrategyItemInfoResponseResult + */ + strategy_competitor_product_url?: string; +} +/** + * Check if a given object implements the V1GetStrategyItemInfoResponseResult interface. + */ +export declare function instanceOfV1GetStrategyItemInfoResponseResult(value: object): value is V1GetStrategyItemInfoResponseResult; +export declare function V1GetStrategyItemInfoResponseResultFromJSON(json: any): V1GetStrategyItemInfoResponseResult; +export declare function V1GetStrategyItemInfoResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemInfoResponseResult; +export declare function V1GetStrategyItemInfoResponseResultToJSON(value?: V1GetStrategyItemInfoResponseResult | null): any; diff --git a/dist/models/V1GetStrategyItemInfoResponseResult.js b/dist/models/V1GetStrategyItemInfoResponseResult.js new file mode 100644 index 0000000..b629182 --- /dev/null +++ b/dist/models/V1GetStrategyItemInfoResponseResult.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyItemInfoResponseResult = instanceOfV1GetStrategyItemInfoResponseResult; +exports.V1GetStrategyItemInfoResponseResultFromJSON = V1GetStrategyItemInfoResponseResultFromJSON; +exports.V1GetStrategyItemInfoResponseResultFromJSONTyped = V1GetStrategyItemInfoResponseResultFromJSONTyped; +exports.V1GetStrategyItemInfoResponseResultToJSON = V1GetStrategyItemInfoResponseResultToJSON; +/** + * Check if a given object implements the V1GetStrategyItemInfoResponseResult interface. + */ +function instanceOfV1GetStrategyItemInfoResponseResult(value) { + return true; +} +function V1GetStrategyItemInfoResponseResultFromJSON(json) { + return V1GetStrategyItemInfoResponseResultFromJSONTyped(json, false); +} +function V1GetStrategyItemInfoResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'strategy_id': json['strategy_id'] == null ? undefined : json['strategy_id'], + 'is_enabled': json['is_enabled'] == null ? undefined : json['is_enabled'], + 'strategy_product_price': json['strategy_product_price'] == null ? undefined : json['strategy_product_price'], + 'price_downloaded_at': json['price_downloaded_at'] == null ? undefined : json['price_downloaded_at'], + 'strategy_competitor_id': json['strategy_competitor_id'] == null ? undefined : json['strategy_competitor_id'], + 'strategy_competitor_product_url': json['strategy_competitor_product_url'] == null ? undefined : json['strategy_competitor_product_url'], + }; +} +function V1GetStrategyItemInfoResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'strategy_id': value['strategy_id'], + 'is_enabled': value['is_enabled'], + 'strategy_product_price': value['strategy_product_price'], + 'price_downloaded_at': value['price_downloaded_at'], + 'strategy_competitor_id': value['strategy_competitor_id'], + 'strategy_competitor_product_url': value['strategy_competitor_product_url'], + }; +} diff --git a/dist/models/V1GetStrategyItemsResponse.d.ts b/dist/models/V1GetStrategyItemsResponse.d.ts new file mode 100644 index 0000000..4c10978 --- /dev/null +++ b/dist/models/V1GetStrategyItemsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetStrategyItemsResponseResult } from './V1GetStrategyItemsResponseResult'; +/** + * + * @export + * @interface V1GetStrategyItemsResponse + */ +export interface V1GetStrategyItemsResponse { + /** + * + * @type {V1GetStrategyItemsResponseResult} + * @memberof V1GetStrategyItemsResponse + */ + result?: V1GetStrategyItemsResponseResult; +} +/** + * Check if a given object implements the V1GetStrategyItemsResponse interface. + */ +export declare function instanceOfV1GetStrategyItemsResponse(value: object): value is V1GetStrategyItemsResponse; +export declare function V1GetStrategyItemsResponseFromJSON(json: any): V1GetStrategyItemsResponse; +export declare function V1GetStrategyItemsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemsResponse; +export declare function V1GetStrategyItemsResponseToJSON(value?: V1GetStrategyItemsResponse | null): any; diff --git a/dist/models/V1GetStrategyItemsResponse.js b/dist/models/V1GetStrategyItemsResponse.js new file mode 100644 index 0000000..711e71f --- /dev/null +++ b/dist/models/V1GetStrategyItemsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyItemsResponse = instanceOfV1GetStrategyItemsResponse; +exports.V1GetStrategyItemsResponseFromJSON = V1GetStrategyItemsResponseFromJSON; +exports.V1GetStrategyItemsResponseFromJSONTyped = V1GetStrategyItemsResponseFromJSONTyped; +exports.V1GetStrategyItemsResponseToJSON = V1GetStrategyItemsResponseToJSON; +const V1GetStrategyItemsResponseResult_1 = require("./V1GetStrategyItemsResponseResult"); +/** + * Check if a given object implements the V1GetStrategyItemsResponse interface. + */ +function instanceOfV1GetStrategyItemsResponse(value) { + return true; +} +function V1GetStrategyItemsResponseFromJSON(json) { + return V1GetStrategyItemsResponseFromJSONTyped(json, false); +} +function V1GetStrategyItemsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1GetStrategyItemsResponseResult_1.V1GetStrategyItemsResponseResultFromJSON)(json['result']), + }; +} +function V1GetStrategyItemsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1GetStrategyItemsResponseResult_1.V1GetStrategyItemsResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1GetStrategyItemsResponseResult.d.ts b/dist/models/V1GetStrategyItemsResponseResult.d.ts new file mode 100644 index 0000000..bee56f7 --- /dev/null +++ b/dist/models/V1GetStrategyItemsResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров. + * @export + * @interface V1GetStrategyItemsResponseResult + */ +export interface V1GetStrategyItemsResponseResult { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {Array} + * @memberof V1GetStrategyItemsResponseResult + */ + product_id?: Array; +} +/** + * Check if a given object implements the V1GetStrategyItemsResponseResult interface. + */ +export declare function instanceOfV1GetStrategyItemsResponseResult(value: object): value is V1GetStrategyItemsResponseResult; +export declare function V1GetStrategyItemsResponseResultFromJSON(json: any): V1GetStrategyItemsResponseResult; +export declare function V1GetStrategyItemsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyItemsResponseResult; +export declare function V1GetStrategyItemsResponseResultToJSON(value?: V1GetStrategyItemsResponseResult | null): any; diff --git a/dist/models/V1GetStrategyItemsResponseResult.js b/dist/models/V1GetStrategyItemsResponseResult.js new file mode 100644 index 0000000..a8322a4 --- /dev/null +++ b/dist/models/V1GetStrategyItemsResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyItemsResponseResult = instanceOfV1GetStrategyItemsResponseResult; +exports.V1GetStrategyItemsResponseResultFromJSON = V1GetStrategyItemsResponseResultFromJSON; +exports.V1GetStrategyItemsResponseResultFromJSONTyped = V1GetStrategyItemsResponseResultFromJSONTyped; +exports.V1GetStrategyItemsResponseResultToJSON = V1GetStrategyItemsResponseResultToJSON; +/** + * Check if a given object implements the V1GetStrategyItemsResponseResult interface. + */ +function instanceOfV1GetStrategyItemsResponseResult(value) { + return true; +} +function V1GetStrategyItemsResponseResultFromJSON(json) { + return V1GetStrategyItemsResponseResultFromJSONTyped(json, false); +} +function V1GetStrategyItemsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +function V1GetStrategyItemsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V1GetStrategyListRequest.d.ts b/dist/models/V1GetStrategyListRequest.d.ts new file mode 100644 index 0000000..bdf3477 --- /dev/null +++ b/dist/models/V1GetStrategyListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetStrategyListRequest + */ +export interface V1GetStrategyListRequest { + /** + * Страница списка, с которой нужно выгрузить стратегии. Минимальное значение — `1`. + * @type {number} + * @memberof V1GetStrategyListRequest + */ + page: number; + /** + * Максимальное количество стратегий на странице. Допустимые значения — от `1` до `50`. + * @type {number} + * @memberof V1GetStrategyListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetStrategyListRequest interface. + */ +export declare function instanceOfV1GetStrategyListRequest(value: object): value is V1GetStrategyListRequest; +export declare function V1GetStrategyListRequestFromJSON(json: any): V1GetStrategyListRequest; +export declare function V1GetStrategyListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyListRequest; +export declare function V1GetStrategyListRequestToJSON(value?: V1GetStrategyListRequest | null): any; diff --git a/dist/models/V1GetStrategyListRequest.js b/dist/models/V1GetStrategyListRequest.js new file mode 100644 index 0000000..b090f8f --- /dev/null +++ b/dist/models/V1GetStrategyListRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyListRequest = instanceOfV1GetStrategyListRequest; +exports.V1GetStrategyListRequestFromJSON = V1GetStrategyListRequestFromJSON; +exports.V1GetStrategyListRequestFromJSONTyped = V1GetStrategyListRequestFromJSONTyped; +exports.V1GetStrategyListRequestToJSON = V1GetStrategyListRequestToJSON; +/** + * Check if a given object implements the V1GetStrategyListRequest interface. + */ +function instanceOfV1GetStrategyListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1GetStrategyListRequestFromJSON(json) { + return V1GetStrategyListRequestFromJSONTyped(json, false); +} +function V1GetStrategyListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'limit': json['limit'], + }; +} +function V1GetStrategyListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1GetStrategyListResponse.d.ts b/dist/models/V1GetStrategyListResponse.d.ts new file mode 100644 index 0000000..5554d8d --- /dev/null +++ b/dist/models/V1GetStrategyListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetStrategyListResponseStrategy } from './GetStrategyListResponseStrategy'; +/** + * + * @export + * @interface V1GetStrategyListResponse + */ +export interface V1GetStrategyListResponse { + /** + * Список стратегий. + * @type {Array} + * @memberof V1GetStrategyListResponse + */ + strategies?: Array; + /** + * Общее количество стратегий. + * @type {number} + * @memberof V1GetStrategyListResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1GetStrategyListResponse interface. + */ +export declare function instanceOfV1GetStrategyListResponse(value: object): value is V1GetStrategyListResponse; +export declare function V1GetStrategyListResponseFromJSON(json: any): V1GetStrategyListResponse; +export declare function V1GetStrategyListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyListResponse; +export declare function V1GetStrategyListResponseToJSON(value?: V1GetStrategyListResponse | null): any; diff --git a/dist/models/V1GetStrategyListResponse.js b/dist/models/V1GetStrategyListResponse.js new file mode 100644 index 0000000..1321744 --- /dev/null +++ b/dist/models/V1GetStrategyListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyListResponse = instanceOfV1GetStrategyListResponse; +exports.V1GetStrategyListResponseFromJSON = V1GetStrategyListResponseFromJSON; +exports.V1GetStrategyListResponseFromJSONTyped = V1GetStrategyListResponseFromJSONTyped; +exports.V1GetStrategyListResponseToJSON = V1GetStrategyListResponseToJSON; +const GetStrategyListResponseStrategy_1 = require("./GetStrategyListResponseStrategy"); +/** + * Check if a given object implements the V1GetStrategyListResponse interface. + */ +function instanceOfV1GetStrategyListResponse(value) { + return true; +} +function V1GetStrategyListResponseFromJSON(json) { + return V1GetStrategyListResponseFromJSONTyped(json, false); +} +function V1GetStrategyListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'strategies': json['strategies'] == null ? undefined : (json['strategies'].map(GetStrategyListResponseStrategy_1.GetStrategyListResponseStrategyFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V1GetStrategyListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'strategies': value['strategies'] == null ? undefined : (value['strategies'].map(GetStrategyListResponseStrategy_1.GetStrategyListResponseStrategyToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/V1GetStrategyResponse.d.ts b/dist/models/V1GetStrategyResponse.d.ts new file mode 100644 index 0000000..b6229a0 --- /dev/null +++ b/dist/models/V1GetStrategyResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetStrategyResponseResult } from './V1GetStrategyResponseResult'; +/** + * + * @export + * @interface V1GetStrategyResponse + */ +export interface V1GetStrategyResponse { + /** + * + * @type {V1GetStrategyResponseResult} + * @memberof V1GetStrategyResponse + */ + result?: V1GetStrategyResponseResult; +} +/** + * Check if a given object implements the V1GetStrategyResponse interface. + */ +export declare function instanceOfV1GetStrategyResponse(value: object): value is V1GetStrategyResponse; +export declare function V1GetStrategyResponseFromJSON(json: any): V1GetStrategyResponse; +export declare function V1GetStrategyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyResponse; +export declare function V1GetStrategyResponseToJSON(value?: V1GetStrategyResponse | null): any; diff --git a/dist/models/V1GetStrategyResponse.js b/dist/models/V1GetStrategyResponse.js new file mode 100644 index 0000000..882ab53 --- /dev/null +++ b/dist/models/V1GetStrategyResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyResponse = instanceOfV1GetStrategyResponse; +exports.V1GetStrategyResponseFromJSON = V1GetStrategyResponseFromJSON; +exports.V1GetStrategyResponseFromJSONTyped = V1GetStrategyResponseFromJSONTyped; +exports.V1GetStrategyResponseToJSON = V1GetStrategyResponseToJSON; +const V1GetStrategyResponseResult_1 = require("./V1GetStrategyResponseResult"); +/** + * Check if a given object implements the V1GetStrategyResponse interface. + */ +function instanceOfV1GetStrategyResponse(value) { + return true; +} +function V1GetStrategyResponseFromJSON(json) { + return V1GetStrategyResponseFromJSONTyped(json, false); +} +function V1GetStrategyResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1GetStrategyResponseResult_1.V1GetStrategyResponseResultFromJSON)(json['result']), + }; +} +function V1GetStrategyResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1GetStrategyResponseResult_1.V1GetStrategyResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1GetStrategyResponseResult.d.ts b/dist/models/V1GetStrategyResponseResult.d.ts new file mode 100644 index 0000000..1ea0404 --- /dev/null +++ b/dist/models/V1GetStrategyResponseResult.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Competitor } from './V1Competitor'; +/** + * Результат работы метода. + * @export + * @interface V1GetStrategyResponseResult + */ +export interface V1GetStrategyResponseResult { + /** + * Список конкурентов. + * @type {Array} + * @memberof V1GetStrategyResponseResult + */ + competitors?: Array; + /** + * Статус стратегии: + * - `true` — включена, + * - `false` — отключена. + * + * @type {boolean} + * @memberof V1GetStrategyResponseResult + */ + enabled?: boolean; + /** + * Название стратегии. + * @type {string} + * @memberof V1GetStrategyResponseResult + */ + name?: string; + /** + * Тип стратегии: + * - `MIN_EXT_PRICE` — системная стратегия, + * - `COMP_PRICE` — пользовательская стратегия. + * + * @type {string} + * @memberof V1GetStrategyResponseResult + */ + type?: string; + /** + * Тип последнего изменения стратегии: + * - `strategyEnabled` — возобновлена, + * - `strategyDisabled` — остановлена, + * - `strategyChanged` — обновлена, + * - `strategyCreated` — создана, + * - `strategyItemsListChanged` — изменён набор товаров в стратегии. + * + * @type {string} + * @memberof V1GetStrategyResponseResult + */ + update_type?: string; +} +/** + * Check if a given object implements the V1GetStrategyResponseResult interface. + */ +export declare function instanceOfV1GetStrategyResponseResult(value: object): value is V1GetStrategyResponseResult; +export declare function V1GetStrategyResponseResultFromJSON(json: any): V1GetStrategyResponseResult; +export declare function V1GetStrategyResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetStrategyResponseResult; +export declare function V1GetStrategyResponseResultToJSON(value?: V1GetStrategyResponseResult | null): any; diff --git a/dist/models/V1GetStrategyResponseResult.js b/dist/models/V1GetStrategyResponseResult.js new file mode 100644 index 0000000..da55b25 --- /dev/null +++ b/dist/models/V1GetStrategyResponseResult.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetStrategyResponseResult = instanceOfV1GetStrategyResponseResult; +exports.V1GetStrategyResponseResultFromJSON = V1GetStrategyResponseResultFromJSON; +exports.V1GetStrategyResponseResultFromJSONTyped = V1GetStrategyResponseResultFromJSONTyped; +exports.V1GetStrategyResponseResultToJSON = V1GetStrategyResponseResultToJSON; +const V1Competitor_1 = require("./V1Competitor"); +/** + * Check if a given object implements the V1GetStrategyResponseResult interface. + */ +function instanceOfV1GetStrategyResponseResult(value) { + return true; +} +function V1GetStrategyResponseResultFromJSON(json) { + return V1GetStrategyResponseResultFromJSONTyped(json, false); +} +function V1GetStrategyResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'competitors': json['competitors'] == null ? undefined : (json['competitors'].map(V1Competitor_1.V1CompetitorFromJSON)), + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : json['type'], + 'update_type': json['update_type'] == null ? undefined : json['update_type'], + }; +} +function V1GetStrategyResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'competitors': value['competitors'] == null ? undefined : (value['competitors'].map(V1Competitor_1.V1CompetitorToJSON)), + 'enabled': value['enabled'], + 'name': value['name'], + 'type': value['type'], + 'update_type': value['update_type'], + }; +} diff --git a/dist/models/V1GetSupplierReturnsSummaryReportRequest.d.ts b/dist/models/V1GetSupplierReturnsSummaryReportRequest.d.ts new file mode 100644 index 0000000..23cb10d --- /dev/null +++ b/dist/models/V1GetSupplierReturnsSummaryReportRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplierReturnsSummaryReportRequest + */ +export interface V1GetSupplierReturnsSummaryReportRequest { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportRequest + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportRequest + */ + date_to: string; + /** + * Идентификатор последнего значения на странице. Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportRequest + */ + last_id?: string; + /** + * Количество элементов в ответе. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportRequest interface. + */ +export declare function instanceOfV1GetSupplierReturnsSummaryReportRequest(value: object): value is V1GetSupplierReturnsSummaryReportRequest; +export declare function V1GetSupplierReturnsSummaryReportRequestFromJSON(json: any): V1GetSupplierReturnsSummaryReportRequest; +export declare function V1GetSupplierReturnsSummaryReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplierReturnsSummaryReportRequest; +export declare function V1GetSupplierReturnsSummaryReportRequestToJSON(value?: V1GetSupplierReturnsSummaryReportRequest | null): any; diff --git a/dist/models/V1GetSupplierReturnsSummaryReportRequest.js b/dist/models/V1GetSupplierReturnsSummaryReportRequest.js new file mode 100644 index 0000000..d0175b4 --- /dev/null +++ b/dist/models/V1GetSupplierReturnsSummaryReportRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplierReturnsSummaryReportRequest = instanceOfV1GetSupplierReturnsSummaryReportRequest; +exports.V1GetSupplierReturnsSummaryReportRequestFromJSON = V1GetSupplierReturnsSummaryReportRequestFromJSON; +exports.V1GetSupplierReturnsSummaryReportRequestFromJSONTyped = V1GetSupplierReturnsSummaryReportRequestFromJSONTyped; +exports.V1GetSupplierReturnsSummaryReportRequestToJSON = V1GetSupplierReturnsSummaryReportRequestToJSON; +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportRequest interface. + */ +function instanceOfV1GetSupplierReturnsSummaryReportRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1GetSupplierReturnsSummaryReportRequestFromJSON(json) { + return V1GetSupplierReturnsSummaryReportRequestFromJSONTyped(json, false); +} +function V1GetSupplierReturnsSummaryReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +function V1GetSupplierReturnsSummaryReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1GetSupplierReturnsSummaryReportResponse.d.ts b/dist/models/V1GetSupplierReturnsSummaryReportResponse.d.ts new file mode 100644 index 0000000..e11c512 --- /dev/null +++ b/dist/models/V1GetSupplierReturnsSummaryReportResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetSupplierReturnsSummaryReportResponseRow } from './V1GetSupplierReturnsSummaryReportResponseRow'; +/** + * + * @export + * @interface V1GetSupplierReturnsSummaryReportResponse + */ +export interface V1GetSupplierReturnsSummaryReportResponse { + /** + * Идентификатор последнего значения на странице. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponse + */ + last_id?: string; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1GetSupplierReturnsSummaryReportResponse + */ + returns_summary_report_rows?: Array; +} +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportResponse interface. + */ +export declare function instanceOfV1GetSupplierReturnsSummaryReportResponse(value: object): value is V1GetSupplierReturnsSummaryReportResponse; +export declare function V1GetSupplierReturnsSummaryReportResponseFromJSON(json: any): V1GetSupplierReturnsSummaryReportResponse; +export declare function V1GetSupplierReturnsSummaryReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplierReturnsSummaryReportResponse; +export declare function V1GetSupplierReturnsSummaryReportResponseToJSON(value?: V1GetSupplierReturnsSummaryReportResponse | null): any; diff --git a/dist/models/V1GetSupplierReturnsSummaryReportResponse.js b/dist/models/V1GetSupplierReturnsSummaryReportResponse.js new file mode 100644 index 0000000..e57e371 --- /dev/null +++ b/dist/models/V1GetSupplierReturnsSummaryReportResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplierReturnsSummaryReportResponse = instanceOfV1GetSupplierReturnsSummaryReportResponse; +exports.V1GetSupplierReturnsSummaryReportResponseFromJSON = V1GetSupplierReturnsSummaryReportResponseFromJSON; +exports.V1GetSupplierReturnsSummaryReportResponseFromJSONTyped = V1GetSupplierReturnsSummaryReportResponseFromJSONTyped; +exports.V1GetSupplierReturnsSummaryReportResponseToJSON = V1GetSupplierReturnsSummaryReportResponseToJSON; +const V1GetSupplierReturnsSummaryReportResponseRow_1 = require("./V1GetSupplierReturnsSummaryReportResponseRow"); +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportResponse interface. + */ +function instanceOfV1GetSupplierReturnsSummaryReportResponse(value) { + return true; +} +function V1GetSupplierReturnsSummaryReportResponseFromJSON(json) { + return V1GetSupplierReturnsSummaryReportResponseFromJSONTyped(json, false); +} +function V1GetSupplierReturnsSummaryReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'returns_summary_report_rows': json['returns_summary_report_rows'] == null ? undefined : (json['returns_summary_report_rows'].map(V1GetSupplierReturnsSummaryReportResponseRow_1.V1GetSupplierReturnsSummaryReportResponseRowFromJSON)), + }; +} +function V1GetSupplierReturnsSummaryReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'returns_summary_report_rows': value['returns_summary_report_rows'] == null ? undefined : (value['returns_summary_report_rows'].map(V1GetSupplierReturnsSummaryReportResponseRow_1.V1GetSupplierReturnsSummaryReportResponseRowToJSON)), + }; +} diff --git a/dist/models/V1GetSupplierReturnsSummaryReportResponseRow.d.ts b/dist/models/V1GetSupplierReturnsSummaryReportResponseRow.d.ts new file mode 100644 index 0000000..06b9470 --- /dev/null +++ b/dist/models/V1GetSupplierReturnsSummaryReportResponseRow.d.ts @@ -0,0 +1,257 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplierReturnsSummaryReportResponseRow + */ +export interface V1GetSupplierReturnsSummaryReportResponseRow { + /** + * Штрихкод товара. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + barcode?: string; + /** + * Штрихкод коробки. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_barcode?: string; + /** + * Высота коробки в метрах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_height?: number; + /** + * Идентификатор коробки. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_id?: number; + /** + * Длина коробки в метрах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_length?: number; + /** + * Статус коробки: + * - `доступно к вывозу`; + * - `уже в заявке на вывоз`; + * - `подготовка к вывозу`; + * - `потеряна`; + * - `в пути`; + * - `компенсировано продавцу`; + * - `утилизирована`; + * - `собрано`; + * - `на СЦ`; + * - `у курьера`; + * - `неудачная попытка доставки`; + * - `получена`; + * - `отменено`; + * - `в процессе утилизации`; + * - `в пункте выдачи`; + * - `расформирована`. + * + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_state?: string; + /** + * Объём коробки в литрах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_volume?: number; + /** + * Вес коробки в килограммах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_weight?: number; + /** + * Ширина коробки в метрах. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + box_width?: number; + /** + * Склад, на котором подготовили товары для вывоза. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + clearing_warehouse_name?: string; + /** + * Дата доставки товара в ПВЗ, СЦ или курьером. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + delivery_date?: string; + /** + * Способ вывоза: + * - `самовывоз`; + * - `ПВЗ`; + * - `СЦ`; + * - `курьерская доставка`. + * + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + delivery_type?: string; + /** + * Адрес склада назначения. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + destination_warehouse_address?: string; + /** + * Название склада назначения. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + destination_warehouse_name?: string; + /** + * Дата, когда продавец забрал товары самовывозом со склада Ozon. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + given_out_date?: string; + /** + * Признак, что заявка на вывоз была создана автоматически. + * + * [Подробнее об автовывозе в Базе знаний продавца](https://seller-edu.ozon.ru/fbo/vozvraty-utilizaciya-izlishki/vyvoz-tovarov-so-sklada-ozon/avtovyvoz-tovarov-so-sklada-ozon) + * + * @type {boolean} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + is_auto_return?: boolean; + /** + * Название товара. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + offer_id?: string; + /** + * Предварительная стоимость вывоза товара со склада силами Ozon. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + preliminary_delivery_price?: number; + /** + * Количество квантов в заявке на вывоз. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + quant_count?: number; + /** + * Количество единиц товара в коробке или заявке на вывоз. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + quantity_for_return?: number; + /** + * Дата создания заявки на вывоз. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + return_created_at?: string; + /** + * Идентификатор заявки на вывоз. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + return_id?: number; + /** + * Статус заявки на вывоз. + * + * Возможные значения для самовывоза со стока: + * - `создана`; + * - `собирается на складе`; + * - `собрана складом`; + * - `завершена`; + * - `заполнение данных`; + * - `утилизирована`. + * + * Возможные значения для СЦ, ПВЗ и курьерской доставки со стока: + * - `создаётся`; + * - `собирается на складке`; + * - `передаём в логистику`; + * - `в пути`; + * - `завершено`; + * - `можно забирать часть`; + * - `можно забирать все`; + * - `утилизирована`. + * + * Возможные значения для вывоза с поставок: + * + * - `заполнение данных`; + * - `подготовка к выдаче`; + * - `выдача`; + * - `завершено`; + * - `отклонено складом`; + * - `готово к вывозу`; + * - `утилизировано`; + * - `обрабатывается`; + * - `собирается на складе`; + * - `передаётся в логистику`; + * - `в пути`; + * - `можно забрать часть`; + * - `можно забрать все`. + * + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + return_state?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + sku?: number; + /** + * Тип остатков для товаров стока: + * - `доступно к продаже`; + * - `маркируемые товары, ожидающие действий`; + * - `истекает срок годности`; + * - `брак, доступный к вывозу со стока`. + * + * Тип остатков для товаров в коробках: + * - `брак`; + * - `опознанные излишки`; + * - `неопознанные излишки без SKU`. + * + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + stock_type?: string; + /** + * Дата утилизации. + * @type {string} + * @memberof V1GetSupplierReturnsSummaryReportResponseRow + */ + utilization_date?: string; +} +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportResponseRow interface. + */ +export declare function instanceOfV1GetSupplierReturnsSummaryReportResponseRow(value: object): value is V1GetSupplierReturnsSummaryReportResponseRow; +export declare function V1GetSupplierReturnsSummaryReportResponseRowFromJSON(json: any): V1GetSupplierReturnsSummaryReportResponseRow; +export declare function V1GetSupplierReturnsSummaryReportResponseRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplierReturnsSummaryReportResponseRow; +export declare function V1GetSupplierReturnsSummaryReportResponseRowToJSON(value?: V1GetSupplierReturnsSummaryReportResponseRow | null): any; diff --git a/dist/models/V1GetSupplierReturnsSummaryReportResponseRow.js b/dist/models/V1GetSupplierReturnsSummaryReportResponseRow.js new file mode 100644 index 0000000..58a5702 --- /dev/null +++ b/dist/models/V1GetSupplierReturnsSummaryReportResponseRow.js @@ -0,0 +1,96 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplierReturnsSummaryReportResponseRow = instanceOfV1GetSupplierReturnsSummaryReportResponseRow; +exports.V1GetSupplierReturnsSummaryReportResponseRowFromJSON = V1GetSupplierReturnsSummaryReportResponseRowFromJSON; +exports.V1GetSupplierReturnsSummaryReportResponseRowFromJSONTyped = V1GetSupplierReturnsSummaryReportResponseRowFromJSONTyped; +exports.V1GetSupplierReturnsSummaryReportResponseRowToJSON = V1GetSupplierReturnsSummaryReportResponseRowToJSON; +/** + * Check if a given object implements the V1GetSupplierReturnsSummaryReportResponseRow interface. + */ +function instanceOfV1GetSupplierReturnsSummaryReportResponseRow(value) { + return true; +} +function V1GetSupplierReturnsSummaryReportResponseRowFromJSON(json) { + return V1GetSupplierReturnsSummaryReportResponseRowFromJSONTyped(json, false); +} +function V1GetSupplierReturnsSummaryReportResponseRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'box_barcode': json['box_barcode'] == null ? undefined : json['box_barcode'], + 'box_height': json['box_height'] == null ? undefined : json['box_height'], + 'box_id': json['box_id'] == null ? undefined : json['box_id'], + 'box_length': json['box_length'] == null ? undefined : json['box_length'], + 'box_state': json['box_state'] == null ? undefined : json['box_state'], + 'box_volume': json['box_volume'] == null ? undefined : json['box_volume'], + 'box_weight': json['box_weight'] == null ? undefined : json['box_weight'], + 'box_width': json['box_width'] == null ? undefined : json['box_width'], + 'clearing_warehouse_name': json['clearing_warehouse_name'] == null ? undefined : json['clearing_warehouse_name'], + 'delivery_date': json['delivery_date'] == null ? undefined : json['delivery_date'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'destination_warehouse_address': json['destination_warehouse_address'] == null ? undefined : json['destination_warehouse_address'], + 'destination_warehouse_name': json['destination_warehouse_name'] == null ? undefined : json['destination_warehouse_name'], + 'given_out_date': json['given_out_date'] == null ? undefined : json['given_out_date'], + 'is_auto_return': json['is_auto_return'] == null ? undefined : json['is_auto_return'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'preliminary_delivery_price': json['preliminary_delivery_price'] == null ? undefined : json['preliminary_delivery_price'], + 'quant_count': json['quant_count'] == null ? undefined : json['quant_count'], + 'quantity_for_return': json['quantity_for_return'] == null ? undefined : json['quantity_for_return'], + 'return_created_at': json['return_created_at'] == null ? undefined : json['return_created_at'], + 'return_id': json['return_id'] == null ? undefined : json['return_id'], + 'return_state': json['return_state'] == null ? undefined : json['return_state'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'stock_type': json['stock_type'] == null ? undefined : json['stock_type'], + 'utilization_date': json['utilization_date'] == null ? undefined : json['utilization_date'], + }; +} +function V1GetSupplierReturnsSummaryReportResponseRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'box_barcode': value['box_barcode'], + 'box_height': value['box_height'], + 'box_id': value['box_id'], + 'box_length': value['box_length'], + 'box_state': value['box_state'], + 'box_volume': value['box_volume'], + 'box_weight': value['box_weight'], + 'box_width': value['box_width'], + 'clearing_warehouse_name': value['clearing_warehouse_name'], + 'delivery_date': value['delivery_date'], + 'delivery_type': value['delivery_type'], + 'destination_warehouse_address': value['destination_warehouse_address'], + 'destination_warehouse_name': value['destination_warehouse_name'], + 'given_out_date': value['given_out_date'], + 'is_auto_return': value['is_auto_return'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'preliminary_delivery_price': value['preliminary_delivery_price'], + 'quant_count': value['quant_count'], + 'quantity_for_return': value['quantity_for_return'], + 'return_created_at': value['return_created_at'], + 'return_id': value['return_id'], + 'return_state': value['return_state'], + 'sku': value['sku'], + 'stock_type': value['stock_type'], + 'utilization_date': value['utilization_date'], + }; +} diff --git a/dist/models/V1GetSupplyOrderBundleRequest.d.ts b/dist/models/V1GetSupplyOrderBundleRequest.d.ts new file mode 100644 index 0000000..6c33179 --- /dev/null +++ b/dist/models/V1GetSupplyOrderBundleRequest.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ItemSortField } from './V1ItemSortField'; +import type { GetSupplyOrderBundleRequestItemTagsCalculation } from './GetSupplyOrderBundleRequestItemTagsCalculation'; +/** + * + * @export + * @interface V1GetSupplyOrderBundleRequest + */ +export interface V1GetSupplyOrderBundleRequest { + /** + * Идентификаторы товарного состава поставки. Можно получить в методе [/v3/supply-order/get](#operation/SupplyOrderGet). + * @type {Array} + * @memberof V1GetSupplyOrderBundleRequest + */ + bundle_ids: Array; + /** + * `true`, чтобы сортировать по возрастанию. + * + * @type {boolean} + * @memberof V1GetSupplyOrderBundleRequest + */ + is_asc?: boolean; + /** + * + * @type {GetSupplyOrderBundleRequestItemTagsCalculation} + * @memberof V1GetSupplyOrderBundleRequest + */ + item_tags_calculation?: GetSupplyOrderBundleRequestItemTagsCalculation; + /** + * Идентификатор последнего значения SKU на странице. + * @type {string} + * @memberof V1GetSupplyOrderBundleRequest + */ + last_id?: string; + /** + * Количество товаров на странице. + * @type {number} + * @memberof V1GetSupplyOrderBundleRequest + */ + limit: number; + /** + * Поисковый запрос, например: по названию, артикулу или SKU. + * + * @type {string} + * @memberof V1GetSupplyOrderBundleRequest + */ + query?: string; + /** + * + * @type {V1ItemSortField} + * @memberof V1GetSupplyOrderBundleRequest + */ + sort_field?: V1ItemSortField; +} +/** + * Check if a given object implements the V1GetSupplyOrderBundleRequest interface. + */ +export declare function instanceOfV1GetSupplyOrderBundleRequest(value: object): value is V1GetSupplyOrderBundleRequest; +export declare function V1GetSupplyOrderBundleRequestFromJSON(json: any): V1GetSupplyOrderBundleRequest; +export declare function V1GetSupplyOrderBundleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderBundleRequest; +export declare function V1GetSupplyOrderBundleRequestToJSON(value?: V1GetSupplyOrderBundleRequest | null): any; diff --git a/dist/models/V1GetSupplyOrderBundleRequest.js b/dist/models/V1GetSupplyOrderBundleRequest.js new file mode 100644 index 0000000..cb1db21 --- /dev/null +++ b/dist/models/V1GetSupplyOrderBundleRequest.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyOrderBundleRequest = instanceOfV1GetSupplyOrderBundleRequest; +exports.V1GetSupplyOrderBundleRequestFromJSON = V1GetSupplyOrderBundleRequestFromJSON; +exports.V1GetSupplyOrderBundleRequestFromJSONTyped = V1GetSupplyOrderBundleRequestFromJSONTyped; +exports.V1GetSupplyOrderBundleRequestToJSON = V1GetSupplyOrderBundleRequestToJSON; +const V1ItemSortField_1 = require("./V1ItemSortField"); +const GetSupplyOrderBundleRequestItemTagsCalculation_1 = require("./GetSupplyOrderBundleRequestItemTagsCalculation"); +/** + * Check if a given object implements the V1GetSupplyOrderBundleRequest interface. + */ +function instanceOfV1GetSupplyOrderBundleRequest(value) { + if (!('bundle_ids' in value) || value['bundle_ids'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1GetSupplyOrderBundleRequestFromJSON(json) { + return V1GetSupplyOrderBundleRequestFromJSONTyped(json, false); +} +function V1GetSupplyOrderBundleRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bundle_ids': json['bundle_ids'], + 'is_asc': json['is_asc'] == null ? undefined : json['is_asc'], + 'item_tags_calculation': json['item_tags_calculation'] == null ? undefined : (0, GetSupplyOrderBundleRequestItemTagsCalculation_1.GetSupplyOrderBundleRequestItemTagsCalculationFromJSON)(json['item_tags_calculation']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'query': json['query'] == null ? undefined : json['query'], + 'sort_field': json['sort_field'] == null ? undefined : (0, V1ItemSortField_1.V1ItemSortFieldFromJSON)(json['sort_field']), + }; +} +function V1GetSupplyOrderBundleRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'bundle_ids': value['bundle_ids'], + 'is_asc': value['is_asc'], + 'item_tags_calculation': (0, GetSupplyOrderBundleRequestItemTagsCalculation_1.GetSupplyOrderBundleRequestItemTagsCalculationToJSON)(value['item_tags_calculation']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'query': value['query'], + 'sort_field': (0, V1ItemSortField_1.V1ItemSortFieldToJSON)(value['sort_field']), + }; +} diff --git a/dist/models/V1GetSupplyOrderBundleResponse.d.ts b/dist/models/V1GetSupplyOrderBundleResponse.d.ts new file mode 100644 index 0000000..149d644 --- /dev/null +++ b/dist/models/V1GetSupplyOrderBundleResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ItemResponse } from './V1ItemResponse'; +/** + * + * @export + * @interface V1GetSupplyOrderBundleResponse + */ +export interface V1GetSupplyOrderBundleResponse { + /** + * Список товаров в заявке на поставку. + * @type {Array} + * @memberof V1GetSupplyOrderBundleResponse + */ + items?: Array; + /** + * Количество товаров в заявке. + * @type {number} + * @memberof V1GetSupplyOrderBundleResponse + */ + total_count?: number; + /** + * Признак, что в ответе вернули не все товары: + * - `true` — сделайте повторный запрос с другим значением `last_id`, чтобы получить остальные значения; + * - `false` — ответ содержит все значения характеристики. + * + * @type {boolean} + * @memberof V1GetSupplyOrderBundleResponse + */ + has_next?: boolean; + /** + * Идентификатор последнего значения на странице. + * @type {string} + * @memberof V1GetSupplyOrderBundleResponse + */ + last_id?: string; +} +/** + * Check if a given object implements the V1GetSupplyOrderBundleResponse interface. + */ +export declare function instanceOfV1GetSupplyOrderBundleResponse(value: object): value is V1GetSupplyOrderBundleResponse; +export declare function V1GetSupplyOrderBundleResponseFromJSON(json: any): V1GetSupplyOrderBundleResponse; +export declare function V1GetSupplyOrderBundleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderBundleResponse; +export declare function V1GetSupplyOrderBundleResponseToJSON(value?: V1GetSupplyOrderBundleResponse | null): any; diff --git a/dist/models/V1GetSupplyOrderBundleResponse.js b/dist/models/V1GetSupplyOrderBundleResponse.js new file mode 100644 index 0000000..1fe6162 --- /dev/null +++ b/dist/models/V1GetSupplyOrderBundleResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyOrderBundleResponse = instanceOfV1GetSupplyOrderBundleResponse; +exports.V1GetSupplyOrderBundleResponseFromJSON = V1GetSupplyOrderBundleResponseFromJSON; +exports.V1GetSupplyOrderBundleResponseFromJSONTyped = V1GetSupplyOrderBundleResponseFromJSONTyped; +exports.V1GetSupplyOrderBundleResponseToJSON = V1GetSupplyOrderBundleResponseToJSON; +const V1ItemResponse_1 = require("./V1ItemResponse"); +/** + * Check if a given object implements the V1GetSupplyOrderBundleResponse interface. + */ +function instanceOfV1GetSupplyOrderBundleResponse(value) { + return true; +} +function V1GetSupplyOrderBundleResponseFromJSON(json) { + return V1GetSupplyOrderBundleResponseFromJSONTyped(json, false); +} +function V1GetSupplyOrderBundleResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1ItemResponse_1.V1ItemResponseFromJSON)), + 'total_count': json['total_count'] == null ? undefined : json['total_count'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1GetSupplyOrderBundleResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1ItemResponse_1.V1ItemResponseToJSON)), + 'total_count': value['total_count'], + 'has_next': value['has_next'], + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1GetSupplyOrderTimeslotStatusRequest.d.ts b/dist/models/V1GetSupplyOrderTimeslotStatusRequest.d.ts new file mode 100644 index 0000000..f27a5f7 --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplyOrderTimeslotStatusRequest + */ +export interface V1GetSupplyOrderTimeslotStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1GetSupplyOrderTimeslotStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotStatusRequest interface. + */ +export declare function instanceOfV1GetSupplyOrderTimeslotStatusRequest(value: object): value is V1GetSupplyOrderTimeslotStatusRequest; +export declare function V1GetSupplyOrderTimeslotStatusRequestFromJSON(json: any): V1GetSupplyOrderTimeslotStatusRequest; +export declare function V1GetSupplyOrderTimeslotStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotStatusRequest; +export declare function V1GetSupplyOrderTimeslotStatusRequestToJSON(value?: V1GetSupplyOrderTimeslotStatusRequest | null): any; diff --git a/dist/models/V1GetSupplyOrderTimeslotStatusRequest.js b/dist/models/V1GetSupplyOrderTimeslotStatusRequest.js new file mode 100644 index 0000000..0eff47a --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyOrderTimeslotStatusRequest = instanceOfV1GetSupplyOrderTimeslotStatusRequest; +exports.V1GetSupplyOrderTimeslotStatusRequestFromJSON = V1GetSupplyOrderTimeslotStatusRequestFromJSON; +exports.V1GetSupplyOrderTimeslotStatusRequestFromJSONTyped = V1GetSupplyOrderTimeslotStatusRequestFromJSONTyped; +exports.V1GetSupplyOrderTimeslotStatusRequestToJSON = V1GetSupplyOrderTimeslotStatusRequestToJSON; +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotStatusRequest interface. + */ +function instanceOfV1GetSupplyOrderTimeslotStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function V1GetSupplyOrderTimeslotStatusRequestFromJSON(json) { + return V1GetSupplyOrderTimeslotStatusRequestFromJSONTyped(json, false); +} +function V1GetSupplyOrderTimeslotStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function V1GetSupplyOrderTimeslotStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1GetSupplyOrderTimeslotStatusResponse.d.ts b/dist/models/V1GetSupplyOrderTimeslotStatusResponse.d.ts new file mode 100644 index 0000000..43709e5 --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotStatusResponse.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetSupplyOrderTimeslotStatusResponseStatus } from './V1GetSupplyOrderTimeslotStatusResponseStatus'; +import type { V1UpdateTimeslotError } from './V1UpdateTimeslotError'; +/** + * + * @export + * @interface V1GetSupplyOrderTimeslotStatusResponse + */ +export interface V1GetSupplyOrderTimeslotStatusResponse { + /** + * Возможные ошибки: + * - `UNSPECIFIED` — статус не указан; + * - `INVALID_ORDER_STATE` — неверный статус заказа; + * - `INCOMPATIBLE_ORDER_FLOW` — неверный статус интервала поставки; + * - `SET_TIMESLOT_DEADLINE_EXCEED` — заявка на поставку просрочена; + * - `OUT_OF_ALLOWED_RANGE` — вы ввели некорректное значение интервала поставки; + * - `ORDER_NOT_BELONG_CONTRACTOR` — заявка создана другим юридическом лицом, работать с ней не получится; + * - `ORDER_NOT_BELONG_COMPANY` — заявка не принадлежит вашему кабинету, работать с ней не получится; + * - `UPDATE_TIMESLOT_ERROR_PICKUP_ORDER_LIMIT_EXCEEDED` — превышен суточный лимит на создание заявок на поставку курьером; + * - `UPDATE_TIMESLOT_ERROR_LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED` — превышен лимит изменения интервала доставки. + * + * @type {Array} + * @memberof V1GetSupplyOrderTimeslotStatusResponse + */ + errors?: Array; + /** + * + * @type {V1GetSupplyOrderTimeslotStatusResponseStatus} + * @memberof V1GetSupplyOrderTimeslotStatusResponse + */ + status?: V1GetSupplyOrderTimeslotStatusResponseStatus; +} +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotStatusResponse interface. + */ +export declare function instanceOfV1GetSupplyOrderTimeslotStatusResponse(value: object): value is V1GetSupplyOrderTimeslotStatusResponse; +export declare function V1GetSupplyOrderTimeslotStatusResponseFromJSON(json: any): V1GetSupplyOrderTimeslotStatusResponse; +export declare function V1GetSupplyOrderTimeslotStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotStatusResponse; +export declare function V1GetSupplyOrderTimeslotStatusResponseToJSON(value?: V1GetSupplyOrderTimeslotStatusResponse | null): any; diff --git a/dist/models/V1GetSupplyOrderTimeslotStatusResponse.js b/dist/models/V1GetSupplyOrderTimeslotStatusResponse.js new file mode 100644 index 0000000..30d8b15 --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotStatusResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyOrderTimeslotStatusResponse = instanceOfV1GetSupplyOrderTimeslotStatusResponse; +exports.V1GetSupplyOrderTimeslotStatusResponseFromJSON = V1GetSupplyOrderTimeslotStatusResponseFromJSON; +exports.V1GetSupplyOrderTimeslotStatusResponseFromJSONTyped = V1GetSupplyOrderTimeslotStatusResponseFromJSONTyped; +exports.V1GetSupplyOrderTimeslotStatusResponseToJSON = V1GetSupplyOrderTimeslotStatusResponseToJSON; +const V1GetSupplyOrderTimeslotStatusResponseStatus_1 = require("./V1GetSupplyOrderTimeslotStatusResponseStatus"); +const V1UpdateTimeslotError_1 = require("./V1UpdateTimeslotError"); +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotStatusResponse interface. + */ +function instanceOfV1GetSupplyOrderTimeslotStatusResponse(value) { + return true; +} +function V1GetSupplyOrderTimeslotStatusResponseFromJSON(json) { + return V1GetSupplyOrderTimeslotStatusResponseFromJSONTyped(json, false); +} +function V1GetSupplyOrderTimeslotStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1UpdateTimeslotError_1.V1UpdateTimeslotErrorFromJSON)), + 'status': json['status'] == null ? undefined : (0, V1GetSupplyOrderTimeslotStatusResponseStatus_1.V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON)(json['status']), + }; +} +function V1GetSupplyOrderTimeslotStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1UpdateTimeslotError_1.V1UpdateTimeslotErrorToJSON)), + 'status': (0, V1GetSupplyOrderTimeslotStatusResponseStatus_1.V1GetSupplyOrderTimeslotStatusResponseStatusToJSON)(value['status']), + }; +} diff --git a/dist/models/V1GetSupplyOrderTimeslotStatusResponseStatus.d.ts b/dist/models/V1GetSupplyOrderTimeslotStatusResponseStatus.d.ts new file mode 100644 index 0000000..ea44256 --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotStatusResponseStatus.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус данных: + * - `UNSPECIFIED` — не указан; + * - `ERROR` — ошибка; + * - `IN_PROGRESS` — устанавливается; + * - `SUCCESS` — установлен. + * + * @export + */ +export declare const V1GetSupplyOrderTimeslotStatusResponseStatus: { + readonly UNSPECIFIED: "STATUS_UNSPECIFIED"; + readonly ERROR: "STATUS_ERROR"; + readonly IN_PROGRESS: "STATUS_IN_PROGRESS"; + readonly SUCCESS: "STATUS_SUCCESS"; +}; +export type V1GetSupplyOrderTimeslotStatusResponseStatus = typeof V1GetSupplyOrderTimeslotStatusResponseStatus[keyof typeof V1GetSupplyOrderTimeslotStatusResponseStatus]; +export declare function instanceOfV1GetSupplyOrderTimeslotStatusResponseStatus(value: any): boolean; +export declare function V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON(json: any): V1GetSupplyOrderTimeslotStatusResponseStatus; +export declare function V1GetSupplyOrderTimeslotStatusResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotStatusResponseStatus; +export declare function V1GetSupplyOrderTimeslotStatusResponseStatusToJSON(value?: V1GetSupplyOrderTimeslotStatusResponseStatus | null): any; diff --git a/dist/models/V1GetSupplyOrderTimeslotStatusResponseStatus.js b/dist/models/V1GetSupplyOrderTimeslotStatusResponseStatus.js new file mode 100644 index 0000000..06fe247 --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotStatusResponseStatus.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1GetSupplyOrderTimeslotStatusResponseStatus = void 0; +exports.instanceOfV1GetSupplyOrderTimeslotStatusResponseStatus = instanceOfV1GetSupplyOrderTimeslotStatusResponseStatus; +exports.V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON = V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON; +exports.V1GetSupplyOrderTimeslotStatusResponseStatusFromJSONTyped = V1GetSupplyOrderTimeslotStatusResponseStatusFromJSONTyped; +exports.V1GetSupplyOrderTimeslotStatusResponseStatusToJSON = V1GetSupplyOrderTimeslotStatusResponseStatusToJSON; +/** + * Статус данных: + * - `UNSPECIFIED` — не указан; + * - `ERROR` — ошибка; + * - `IN_PROGRESS` — устанавливается; + * - `SUCCESS` — установлен. + * + * @export + */ +exports.V1GetSupplyOrderTimeslotStatusResponseStatus = { + UNSPECIFIED: 'STATUS_UNSPECIFIED', + ERROR: 'STATUS_ERROR', + IN_PROGRESS: 'STATUS_IN_PROGRESS', + SUCCESS: 'STATUS_SUCCESS' +}; +function instanceOfV1GetSupplyOrderTimeslotStatusResponseStatus(value) { + for (const key in exports.V1GetSupplyOrderTimeslotStatusResponseStatus) { + if (Object.prototype.hasOwnProperty.call(exports.V1GetSupplyOrderTimeslotStatusResponseStatus, key)) { + if (exports.V1GetSupplyOrderTimeslotStatusResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +function V1GetSupplyOrderTimeslotStatusResponseStatusFromJSON(json) { + return V1GetSupplyOrderTimeslotStatusResponseStatusFromJSONTyped(json, false); +} +function V1GetSupplyOrderTimeslotStatusResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1GetSupplyOrderTimeslotStatusResponseStatusToJSON(value) { + return value; +} diff --git a/dist/models/V1GetSupplyOrderTimeslotsRequest.d.ts b/dist/models/V1GetSupplyOrderTimeslotsRequest.d.ts new file mode 100644 index 0000000..3f3c8e0 --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplyOrderTimeslotsRequest + */ +export interface V1GetSupplyOrderTimeslotsRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1GetSupplyOrderTimeslotsRequest + */ + supply_order_id: number; +} +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotsRequest interface. + */ +export declare function instanceOfV1GetSupplyOrderTimeslotsRequest(value: object): value is V1GetSupplyOrderTimeslotsRequest; +export declare function V1GetSupplyOrderTimeslotsRequestFromJSON(json: any): V1GetSupplyOrderTimeslotsRequest; +export declare function V1GetSupplyOrderTimeslotsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotsRequest; +export declare function V1GetSupplyOrderTimeslotsRequestToJSON(value?: V1GetSupplyOrderTimeslotsRequest | null): any; diff --git a/dist/models/V1GetSupplyOrderTimeslotsRequest.js b/dist/models/V1GetSupplyOrderTimeslotsRequest.js new file mode 100644 index 0000000..04c38cc --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyOrderTimeslotsRequest = instanceOfV1GetSupplyOrderTimeslotsRequest; +exports.V1GetSupplyOrderTimeslotsRequestFromJSON = V1GetSupplyOrderTimeslotsRequestFromJSON; +exports.V1GetSupplyOrderTimeslotsRequestFromJSONTyped = V1GetSupplyOrderTimeslotsRequestFromJSONTyped; +exports.V1GetSupplyOrderTimeslotsRequestToJSON = V1GetSupplyOrderTimeslotsRequestToJSON; +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotsRequest interface. + */ +function instanceOfV1GetSupplyOrderTimeslotsRequest(value) { + if (!('supply_order_id' in value) || value['supply_order_id'] === undefined) + return false; + return true; +} +function V1GetSupplyOrderTimeslotsRequestFromJSON(json) { + return V1GetSupplyOrderTimeslotsRequestFromJSONTyped(json, false); +} +function V1GetSupplyOrderTimeslotsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_order_id': json['supply_order_id'], + }; +} +function V1GetSupplyOrderTimeslotsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_order_id': value['supply_order_id'], + }; +} diff --git a/dist/models/V1GetSupplyOrderTimeslotsResponse.d.ts b/dist/models/V1GetSupplyOrderTimeslotsResponse.d.ts new file mode 100644 index 0000000..878d79c --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotsResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderTimeslot } from './V1SupplyOrderTimeslot'; +import type { V1Timezone } from './V1Timezone'; +/** + * + * @export + * @interface V1GetSupplyOrderTimeslotsResponse + */ +export interface V1GetSupplyOrderTimeslotsResponse { + /** + * Интервалы поставки. + * @type {Array} + * @memberof V1GetSupplyOrderTimeslotsResponse + */ + timeslots?: Array; + /** + * Часовой пояс. + * @type {Array} + * @memberof V1GetSupplyOrderTimeslotsResponse + */ + timezone?: Array; +} +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotsResponse interface. + */ +export declare function instanceOfV1GetSupplyOrderTimeslotsResponse(value: object): value is V1GetSupplyOrderTimeslotsResponse; +export declare function V1GetSupplyOrderTimeslotsResponseFromJSON(json: any): V1GetSupplyOrderTimeslotsResponse; +export declare function V1GetSupplyOrderTimeslotsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyOrderTimeslotsResponse; +export declare function V1GetSupplyOrderTimeslotsResponseToJSON(value?: V1GetSupplyOrderTimeslotsResponse | null): any; diff --git a/dist/models/V1GetSupplyOrderTimeslotsResponse.js b/dist/models/V1GetSupplyOrderTimeslotsResponse.js new file mode 100644 index 0000000..f97f3a0 --- /dev/null +++ b/dist/models/V1GetSupplyOrderTimeslotsResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyOrderTimeslotsResponse = instanceOfV1GetSupplyOrderTimeslotsResponse; +exports.V1GetSupplyOrderTimeslotsResponseFromJSON = V1GetSupplyOrderTimeslotsResponseFromJSON; +exports.V1GetSupplyOrderTimeslotsResponseFromJSONTyped = V1GetSupplyOrderTimeslotsResponseFromJSONTyped; +exports.V1GetSupplyOrderTimeslotsResponseToJSON = V1GetSupplyOrderTimeslotsResponseToJSON; +const V1SupplyOrderTimeslot_1 = require("./V1SupplyOrderTimeslot"); +const V1Timezone_1 = require("./V1Timezone"); +/** + * Check if a given object implements the V1GetSupplyOrderTimeslotsResponse interface. + */ +function instanceOfV1GetSupplyOrderTimeslotsResponse(value) { + return true; +} +function V1GetSupplyOrderTimeslotsResponseFromJSON(json) { + return V1GetSupplyOrderTimeslotsResponseFromJSONTyped(json, false); +} +function V1GetSupplyOrderTimeslotsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1SupplyOrderTimeslot_1.V1SupplyOrderTimeslotFromJSON)), + 'timezone': json['timezone'] == null ? undefined : (json['timezone'].map(V1Timezone_1.V1TimezoneFromJSON)), + }; +} +function V1GetSupplyOrderTimeslotsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1SupplyOrderTimeslot_1.V1SupplyOrderTimeslotToJSON)), + 'timezone': value['timezone'] == null ? undefined : (value['timezone'].map(V1Timezone_1.V1TimezoneToJSON)), + }; +} diff --git a/dist/models/V1GetSupplyReturnsSummaryReportRequest.d.ts b/dist/models/V1GetSupplyReturnsSummaryReportRequest.d.ts new file mode 100644 index 0000000..7a55fe9 --- /dev/null +++ b/dist/models/V1GetSupplyReturnsSummaryReportRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplyReturnsSummaryReportRequest + */ +export interface V1GetSupplyReturnsSummaryReportRequest { + /** + * Дата начала отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportRequest + */ + date_from: string; + /** + * Дата окончания отчётного периода в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportRequest + */ + date_to: string; + /** + * Идентификатор последнего значения на странице. Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportRequest + */ + last_id?: string; + /** + * Количество элементов в ответе. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportRequest interface. + */ +export declare function instanceOfV1GetSupplyReturnsSummaryReportRequest(value: object): value is V1GetSupplyReturnsSummaryReportRequest; +export declare function V1GetSupplyReturnsSummaryReportRequestFromJSON(json: any): V1GetSupplyReturnsSummaryReportRequest; +export declare function V1GetSupplyReturnsSummaryReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyReturnsSummaryReportRequest; +export declare function V1GetSupplyReturnsSummaryReportRequestToJSON(value?: V1GetSupplyReturnsSummaryReportRequest | null): any; diff --git a/dist/models/V1GetSupplyReturnsSummaryReportRequest.js b/dist/models/V1GetSupplyReturnsSummaryReportRequest.js new file mode 100644 index 0000000..8b254b9 --- /dev/null +++ b/dist/models/V1GetSupplyReturnsSummaryReportRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyReturnsSummaryReportRequest = instanceOfV1GetSupplyReturnsSummaryReportRequest; +exports.V1GetSupplyReturnsSummaryReportRequestFromJSON = V1GetSupplyReturnsSummaryReportRequestFromJSON; +exports.V1GetSupplyReturnsSummaryReportRequestFromJSONTyped = V1GetSupplyReturnsSummaryReportRequestFromJSONTyped; +exports.V1GetSupplyReturnsSummaryReportRequestToJSON = V1GetSupplyReturnsSummaryReportRequestToJSON; +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportRequest interface. + */ +function instanceOfV1GetSupplyReturnsSummaryReportRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1GetSupplyReturnsSummaryReportRequestFromJSON(json) { + return V1GetSupplyReturnsSummaryReportRequestFromJSONTyped(json, false); +} +function V1GetSupplyReturnsSummaryReportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +function V1GetSupplyReturnsSummaryReportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1GetSupplyReturnsSummaryReportResponse.d.ts b/dist/models/V1GetSupplyReturnsSummaryReportResponse.d.ts new file mode 100644 index 0000000..2ad37e3 --- /dev/null +++ b/dist/models/V1GetSupplyReturnsSummaryReportResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetSupplyReturnsSummaryReportResponseRow } from './V1GetSupplyReturnsSummaryReportResponseRow'; +/** + * + * @export + * @interface V1GetSupplyReturnsSummaryReportResponse + */ +export interface V1GetSupplyReturnsSummaryReportResponse { + /** + * Идентификатор последнего значения на странице. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponse + */ + last_id?: string; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1GetSupplyReturnsSummaryReportResponse + */ + returns_summary_report_rows?: Array; +} +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportResponse interface. + */ +export declare function instanceOfV1GetSupplyReturnsSummaryReportResponse(value: object): value is V1GetSupplyReturnsSummaryReportResponse; +export declare function V1GetSupplyReturnsSummaryReportResponseFromJSON(json: any): V1GetSupplyReturnsSummaryReportResponse; +export declare function V1GetSupplyReturnsSummaryReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyReturnsSummaryReportResponse; +export declare function V1GetSupplyReturnsSummaryReportResponseToJSON(value?: V1GetSupplyReturnsSummaryReportResponse | null): any; diff --git a/dist/models/V1GetSupplyReturnsSummaryReportResponse.js b/dist/models/V1GetSupplyReturnsSummaryReportResponse.js new file mode 100644 index 0000000..00c657f --- /dev/null +++ b/dist/models/V1GetSupplyReturnsSummaryReportResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyReturnsSummaryReportResponse = instanceOfV1GetSupplyReturnsSummaryReportResponse; +exports.V1GetSupplyReturnsSummaryReportResponseFromJSON = V1GetSupplyReturnsSummaryReportResponseFromJSON; +exports.V1GetSupplyReturnsSummaryReportResponseFromJSONTyped = V1GetSupplyReturnsSummaryReportResponseFromJSONTyped; +exports.V1GetSupplyReturnsSummaryReportResponseToJSON = V1GetSupplyReturnsSummaryReportResponseToJSON; +const V1GetSupplyReturnsSummaryReportResponseRow_1 = require("./V1GetSupplyReturnsSummaryReportResponseRow"); +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportResponse interface. + */ +function instanceOfV1GetSupplyReturnsSummaryReportResponse(value) { + return true; +} +function V1GetSupplyReturnsSummaryReportResponseFromJSON(json) { + return V1GetSupplyReturnsSummaryReportResponseFromJSONTyped(json, false); +} +function V1GetSupplyReturnsSummaryReportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'returns_summary_report_rows': json['returns_summary_report_rows'] == null ? undefined : (json['returns_summary_report_rows'].map(V1GetSupplyReturnsSummaryReportResponseRow_1.V1GetSupplyReturnsSummaryReportResponseRowFromJSON)), + }; +} +function V1GetSupplyReturnsSummaryReportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'returns_summary_report_rows': value['returns_summary_report_rows'] == null ? undefined : (value['returns_summary_report_rows'].map(V1GetSupplyReturnsSummaryReportResponseRow_1.V1GetSupplyReturnsSummaryReportResponseRowToJSON)), + }; +} diff --git a/dist/models/V1GetSupplyReturnsSummaryReportResponseRow.d.ts b/dist/models/V1GetSupplyReturnsSummaryReportResponseRow.d.ts new file mode 100644 index 0000000..29166f2 --- /dev/null +++ b/dist/models/V1GetSupplyReturnsSummaryReportResponseRow.d.ts @@ -0,0 +1,257 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetSupplyReturnsSummaryReportResponseRow + */ +export interface V1GetSupplyReturnsSummaryReportResponseRow { + /** + * Штрихкод товара. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + barcode?: string; + /** + * Штрихкод коробки. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_barcode?: string; + /** + * Высота коробки в метрах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_height?: number; + /** + * Идентификатор коробки. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_id?: number; + /** + * Длина коробки в метрах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_length?: number; + /** + * Статус коробки: + * - `доступно к вывозу`; + * - `уже в заявке на вывоз`; + * - `подготовка к вывозу`; + * - `потеряна`; + * - `в пути`; + * - `компенсировано продавцу`; + * - `утилизирована`; + * - `собрано`; + * - `на СЦ`; + * - `у курьера`; + * - `неудачная попытка доставки`; + * - `получена`; + * - `отменено`; + * - `в процессе утилизации`; + * - `в пункте выдачи`; + * - `расформирована`. + * + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_state?: string; + /** + * Объём коробки в литрах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_volume?: number; + /** + * Вес коробки в килограммах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_weight?: number; + /** + * Ширина коробки в метрах. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + box_width?: number; + /** + * Склад, на котором подготовили товары для вывоза. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + clearing_warehouse_name?: string; + /** + * Дата доставки товара в ПВЗ, СЦ или курьером. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + delivery_date?: string; + /** + * Способ вывоза: + * - `самовывоз`; + * - `ПВЗ`; + * - `СЦ`; + * - `курьерская доставка`. + * + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + delivery_type?: string; + /** + * Адрес склада назначения. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + destination_warehouse_address?: string; + /** + * Название склада назначения. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + destination_warehouse_name?: string; + /** + * Дата, когда продавец забрал товары самовывозом со склада Ozon. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + given_out_date?: string; + /** + * Признак, что заявка на вывоз была создана автоматически. + * + * [Подробнее об автовывозе в Базе знаний продавца](https://seller-edu.ozon.ru/fbo/vozvraty-utilizaciya-izlishki/vyvoz-tovarov-so-sklada-ozon/avtovyvoz-tovarov-so-sklada-ozon) + * + * @type {boolean} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + is_auto_return?: boolean; + /** + * Название товара. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + name?: string; + /** + * Артикул товара. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + offer_id?: string; + /** + * Предварительная стоимость вывоза товара со склада силами Ozon. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + preliminary_delivery_price?: number; + /** + * Количество квантов в заявке на вывоз. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + quant_count?: number; + /** + * Количество единиц товара в коробке или заявке на вывоз. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + quantity_for_return?: number; + /** + * Дата создания заявки на вывоз. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + return_created_at?: string; + /** + * Идентификатор заявки на вывоз. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + return_id?: number; + /** + * Статус заявки на вывоз. + * + * Возможные значения для самовывоза со стока: + * - `создана`; + * - `собирается на складе`; + * - `собрана складом`; + * - `завершена`; + * - `заполнение данных`; + * - `утилизирована`. + * + * Возможные значения для СЦ, ПВЗ и курьерской доставки со стока: + * - `создаётся`; + * - `собирается на складке`; + * - `передаём в логистику`; + * - `в пути`; + * - `завершено`; + * - `можно забирать часть`; + * - `можно забирать все`; + * - `утилизирована`. + * + * Возможные значения для вывоза с поставок: + * + * - `заполнение данных`; + * - `подготовка к выдаче`; + * - `выдача`; + * - `завершено`; + * - `отклонено складом`; + * - `готово к вывозу`; + * - `утилизировано`; + * - `обрабатывается`; + * - `собирается на складе`; + * - `передаётся в логистику`; + * - `в пути`; + * - `можно забрать часть`; + * - `можно забрать все`. + * + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + return_state?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + sku?: number; + /** + * Тип остатков для товаров стока: + * - `доступно к продаже`; + * - `маркируемые товары, ожидающие действий`; + * - `истекает срок годности`; + * - `брак, доступный к вывозу со стока`. + * + * Тип остатков для товаров в коробках: + * - `брак`; + * - `опознанные излишки`; + * - `неопознанные излишки без SKU`. + * + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + stock_type?: string; + /** + * Дата утилизации. + * @type {string} + * @memberof V1GetSupplyReturnsSummaryReportResponseRow + */ + utilization_date?: string; +} +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportResponseRow interface. + */ +export declare function instanceOfV1GetSupplyReturnsSummaryReportResponseRow(value: object): value is V1GetSupplyReturnsSummaryReportResponseRow; +export declare function V1GetSupplyReturnsSummaryReportResponseRowFromJSON(json: any): V1GetSupplyReturnsSummaryReportResponseRow; +export declare function V1GetSupplyReturnsSummaryReportResponseRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetSupplyReturnsSummaryReportResponseRow; +export declare function V1GetSupplyReturnsSummaryReportResponseRowToJSON(value?: V1GetSupplyReturnsSummaryReportResponseRow | null): any; diff --git a/dist/models/V1GetSupplyReturnsSummaryReportResponseRow.js b/dist/models/V1GetSupplyReturnsSummaryReportResponseRow.js new file mode 100644 index 0000000..5310911 --- /dev/null +++ b/dist/models/V1GetSupplyReturnsSummaryReportResponseRow.js @@ -0,0 +1,96 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetSupplyReturnsSummaryReportResponseRow = instanceOfV1GetSupplyReturnsSummaryReportResponseRow; +exports.V1GetSupplyReturnsSummaryReportResponseRowFromJSON = V1GetSupplyReturnsSummaryReportResponseRowFromJSON; +exports.V1GetSupplyReturnsSummaryReportResponseRowFromJSONTyped = V1GetSupplyReturnsSummaryReportResponseRowFromJSONTyped; +exports.V1GetSupplyReturnsSummaryReportResponseRowToJSON = V1GetSupplyReturnsSummaryReportResponseRowToJSON; +/** + * Check if a given object implements the V1GetSupplyReturnsSummaryReportResponseRow interface. + */ +function instanceOfV1GetSupplyReturnsSummaryReportResponseRow(value) { + return true; +} +function V1GetSupplyReturnsSummaryReportResponseRowFromJSON(json) { + return V1GetSupplyReturnsSummaryReportResponseRowFromJSONTyped(json, false); +} +function V1GetSupplyReturnsSummaryReportResponseRowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'box_barcode': json['box_barcode'] == null ? undefined : json['box_barcode'], + 'box_height': json['box_height'] == null ? undefined : json['box_height'], + 'box_id': json['box_id'] == null ? undefined : json['box_id'], + 'box_length': json['box_length'] == null ? undefined : json['box_length'], + 'box_state': json['box_state'] == null ? undefined : json['box_state'], + 'box_volume': json['box_volume'] == null ? undefined : json['box_volume'], + 'box_weight': json['box_weight'] == null ? undefined : json['box_weight'], + 'box_width': json['box_width'] == null ? undefined : json['box_width'], + 'clearing_warehouse_name': json['clearing_warehouse_name'] == null ? undefined : json['clearing_warehouse_name'], + 'delivery_date': json['delivery_date'] == null ? undefined : json['delivery_date'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'destination_warehouse_address': json['destination_warehouse_address'] == null ? undefined : json['destination_warehouse_address'], + 'destination_warehouse_name': json['destination_warehouse_name'] == null ? undefined : json['destination_warehouse_name'], + 'given_out_date': json['given_out_date'] == null ? undefined : json['given_out_date'], + 'is_auto_return': json['is_auto_return'] == null ? undefined : json['is_auto_return'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'preliminary_delivery_price': json['preliminary_delivery_price'] == null ? undefined : json['preliminary_delivery_price'], + 'quant_count': json['quant_count'] == null ? undefined : json['quant_count'], + 'quantity_for_return': json['quantity_for_return'] == null ? undefined : json['quantity_for_return'], + 'return_created_at': json['return_created_at'] == null ? undefined : json['return_created_at'], + 'return_id': json['return_id'] == null ? undefined : json['return_id'], + 'return_state': json['return_state'] == null ? undefined : json['return_state'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'stock_type': json['stock_type'] == null ? undefined : json['stock_type'], + 'utilization_date': json['utilization_date'] == null ? undefined : json['utilization_date'], + }; +} +function V1GetSupplyReturnsSummaryReportResponseRowToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'box_barcode': value['box_barcode'], + 'box_height': value['box_height'], + 'box_id': value['box_id'], + 'box_length': value['box_length'], + 'box_state': value['box_state'], + 'box_volume': value['box_volume'], + 'box_weight': value['box_weight'], + 'box_width': value['box_width'], + 'clearing_warehouse_name': value['clearing_warehouse_name'], + 'delivery_date': value['delivery_date'], + 'delivery_type': value['delivery_type'], + 'destination_warehouse_address': value['destination_warehouse_address'], + 'destination_warehouse_name': value['destination_warehouse_name'], + 'given_out_date': value['given_out_date'], + 'is_auto_return': value['is_auto_return'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'preliminary_delivery_price': value['preliminary_delivery_price'], + 'quant_count': value['quant_count'], + 'quantity_for_return': value['quantity_for_return'], + 'return_created_at': value['return_created_at'], + 'return_id': value['return_id'], + 'return_state': value['return_state'], + 'sku': value['sku'], + 'stock_type': value['stock_type'], + 'utilization_date': value['utilization_date'], + }; +} diff --git a/dist/models/V1GetTreeRequest.d.ts b/dist/models/V1GetTreeRequest.d.ts new file mode 100644 index 0000000..010ba0e --- /dev/null +++ b/dist/models/V1GetTreeRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LanguageLanguage } from './LanguageLanguage'; +/** + * + * @export + * @interface V1GetTreeRequest + */ +export interface V1GetTreeRequest { + /** + * + * @type {LanguageLanguage} + * @memberof V1GetTreeRequest + */ + language?: LanguageLanguage; +} +/** + * Check if a given object implements the V1GetTreeRequest interface. + */ +export declare function instanceOfV1GetTreeRequest(value: object): value is V1GetTreeRequest; +export declare function V1GetTreeRequestFromJSON(json: any): V1GetTreeRequest; +export declare function V1GetTreeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetTreeRequest; +export declare function V1GetTreeRequestToJSON(value?: V1GetTreeRequest | null): any; diff --git a/dist/models/V1GetTreeRequest.js b/dist/models/V1GetTreeRequest.js new file mode 100644 index 0000000..49e58b0 --- /dev/null +++ b/dist/models/V1GetTreeRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetTreeRequest = instanceOfV1GetTreeRequest; +exports.V1GetTreeRequestFromJSON = V1GetTreeRequestFromJSON; +exports.V1GetTreeRequestFromJSONTyped = V1GetTreeRequestFromJSONTyped; +exports.V1GetTreeRequestToJSON = V1GetTreeRequestToJSON; +const LanguageLanguage_1 = require("./LanguageLanguage"); +/** + * Check if a given object implements the V1GetTreeRequest interface. + */ +function instanceOfV1GetTreeRequest(value) { + return true; +} +function V1GetTreeRequestFromJSON(json) { + return V1GetTreeRequestFromJSONTyped(json, false); +} +function V1GetTreeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'language': json['language'] == null ? undefined : (0, LanguageLanguage_1.LanguageLanguageFromJSON)(json['language']), + }; +} +function V1GetTreeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'language': (0, LanguageLanguage_1.LanguageLanguageToJSON)(value['language']), + }; +} diff --git a/dist/models/V1GetTreeResponse.d.ts b/dist/models/V1GetTreeResponse.d.ts new file mode 100644 index 0000000..502a51a --- /dev/null +++ b/dist/models/V1GetTreeResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1GetTreeResponseItem } from './V1GetTreeResponseItem'; +/** + * + * @export + * @interface V1GetTreeResponse + */ +export interface V1GetTreeResponse { + /** + * Список категорий. + * @type {Array} + * @memberof V1GetTreeResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1GetTreeResponse interface. + */ +export declare function instanceOfV1GetTreeResponse(value: object): value is V1GetTreeResponse; +export declare function V1GetTreeResponseFromJSON(json: any): V1GetTreeResponse; +export declare function V1GetTreeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetTreeResponse; +export declare function V1GetTreeResponseToJSON(value?: V1GetTreeResponse | null): any; diff --git a/dist/models/V1GetTreeResponse.js b/dist/models/V1GetTreeResponse.js new file mode 100644 index 0000000..e2f84da --- /dev/null +++ b/dist/models/V1GetTreeResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetTreeResponse = instanceOfV1GetTreeResponse; +exports.V1GetTreeResponseFromJSON = V1GetTreeResponseFromJSON; +exports.V1GetTreeResponseFromJSONTyped = V1GetTreeResponseFromJSONTyped; +exports.V1GetTreeResponseToJSON = V1GetTreeResponseToJSON; +const V1GetTreeResponseItem_1 = require("./V1GetTreeResponseItem"); +/** + * Check if a given object implements the V1GetTreeResponse interface. + */ +function instanceOfV1GetTreeResponse(value) { + return true; +} +function V1GetTreeResponseFromJSON(json) { + return V1GetTreeResponseFromJSONTyped(json, false); +} +function V1GetTreeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1GetTreeResponseItem_1.V1GetTreeResponseItemFromJSON)), + }; +} +function V1GetTreeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1GetTreeResponseItem_1.V1GetTreeResponseItemToJSON)), + }; +} diff --git a/dist/models/V1GetTreeResponseItem.d.ts b/dist/models/V1GetTreeResponseItem.d.ts new file mode 100644 index 0000000..352e39d --- /dev/null +++ b/dist/models/V1GetTreeResponseItem.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetTreeResponseItem + */ +export interface V1GetTreeResponseItem { + /** + * Идентификатор категории. + * @type {number} + * @memberof V1GetTreeResponseItem + */ + description_category_id?: number; + /** + * Название категории. + * @type {string} + * @memberof V1GetTreeResponseItem + */ + category_name?: string; + /** + * Дерево подкатегорий. + * @type {Array} + * @memberof V1GetTreeResponseItem + */ + children?: Array; + /** + * `true`, если в категории нельзя создавать товары. `false`, если можно. + * + * @type {boolean} + * @memberof V1GetTreeResponseItem + */ + disabled?: boolean; + /** + * Идентификатор типа товара. + * @type {number} + * @memberof V1GetTreeResponseItem + */ + type_id?: number; + /** + * Название типа товара. + * @type {string} + * @memberof V1GetTreeResponseItem + */ + type_name?: string; +} +/** + * Check if a given object implements the V1GetTreeResponseItem interface. + */ +export declare function instanceOfV1GetTreeResponseItem(value: object): value is V1GetTreeResponseItem; +export declare function V1GetTreeResponseItemFromJSON(json: any): V1GetTreeResponseItem; +export declare function V1GetTreeResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetTreeResponseItem; +export declare function V1GetTreeResponseItemToJSON(value?: V1GetTreeResponseItem | null): any; diff --git a/dist/models/V1GetTreeResponseItem.js b/dist/models/V1GetTreeResponseItem.js new file mode 100644 index 0000000..b93cb9e --- /dev/null +++ b/dist/models/V1GetTreeResponseItem.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetTreeResponseItem = instanceOfV1GetTreeResponseItem; +exports.V1GetTreeResponseItemFromJSON = V1GetTreeResponseItemFromJSON; +exports.V1GetTreeResponseItemFromJSONTyped = V1GetTreeResponseItemFromJSONTyped; +exports.V1GetTreeResponseItemToJSON = V1GetTreeResponseItemToJSON; +/** + * Check if a given object implements the V1GetTreeResponseItem interface. + */ +function instanceOfV1GetTreeResponseItem(value) { + return true; +} +function V1GetTreeResponseItemFromJSON(json) { + return V1GetTreeResponseItemFromJSONTyped(json, false); +} +function V1GetTreeResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'description_category_id': json['description_category_id'] == null ? undefined : json['description_category_id'], + 'category_name': json['category_name'] == null ? undefined : json['category_name'], + 'children': json['children'] == null ? undefined : (json['children'].map(V1GetTreeResponseItemFromJSON)), + 'disabled': json['disabled'] == null ? undefined : json['disabled'], + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + 'type_name': json['type_name'] == null ? undefined : json['type_name'], + }; +} +function V1GetTreeResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'description_category_id': value['description_category_id'], + 'category_name': value['category_name'], + 'children': value['children'] == null ? undefined : (value['children'].map(V1GetTreeResponseItemToJSON)), + 'disabled': value['disabled'], + 'type_id': value['type_id'], + 'type_name': value['type_name'], + }; +} diff --git a/dist/models/V1GetWarehouseFBSOperationStatusRequest.d.ts b/dist/models/V1GetWarehouseFBSOperationStatusRequest.d.ts new file mode 100644 index 0000000..77850ca --- /dev/null +++ b/dist/models/V1GetWarehouseFBSOperationStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GetWarehouseFBSOperationStatusRequest + */ +export interface V1GetWarehouseFBSOperationStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1GetWarehouseFBSOperationStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1GetWarehouseFBSOperationStatusRequest interface. + */ +export declare function instanceOfV1GetWarehouseFBSOperationStatusRequest(value: object): value is V1GetWarehouseFBSOperationStatusRequest; +export declare function V1GetWarehouseFBSOperationStatusRequestFromJSON(json: any): V1GetWarehouseFBSOperationStatusRequest; +export declare function V1GetWarehouseFBSOperationStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetWarehouseFBSOperationStatusRequest; +export declare function V1GetWarehouseFBSOperationStatusRequestToJSON(value?: V1GetWarehouseFBSOperationStatusRequest | null): any; diff --git a/dist/models/V1GetWarehouseFBSOperationStatusRequest.js b/dist/models/V1GetWarehouseFBSOperationStatusRequest.js new file mode 100644 index 0000000..7cd1f06 --- /dev/null +++ b/dist/models/V1GetWarehouseFBSOperationStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetWarehouseFBSOperationStatusRequest = instanceOfV1GetWarehouseFBSOperationStatusRequest; +exports.V1GetWarehouseFBSOperationStatusRequestFromJSON = V1GetWarehouseFBSOperationStatusRequestFromJSON; +exports.V1GetWarehouseFBSOperationStatusRequestFromJSONTyped = V1GetWarehouseFBSOperationStatusRequestFromJSONTyped; +exports.V1GetWarehouseFBSOperationStatusRequestToJSON = V1GetWarehouseFBSOperationStatusRequestToJSON; +/** + * Check if a given object implements the V1GetWarehouseFBSOperationStatusRequest interface. + */ +function instanceOfV1GetWarehouseFBSOperationStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function V1GetWarehouseFBSOperationStatusRequestFromJSON(json) { + return V1GetWarehouseFBSOperationStatusRequestFromJSONTyped(json, false); +} +function V1GetWarehouseFBSOperationStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function V1GetWarehouseFBSOperationStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1GetWarehouseFBSOperationStatusResponse.d.ts b/dist/models/V1GetWarehouseFBSOperationStatusResponse.d.ts new file mode 100644 index 0000000..2abb32e --- /dev/null +++ b/dist/models/V1GetWarehouseFBSOperationStatusResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetWarehouseFBSOperationStatusResponseResult } from './GetWarehouseFBSOperationStatusResponseResult'; +import type { GetWarehouseFBSOperationStatusResponseStatusEnum } from './GetWarehouseFBSOperationStatusResponseStatusEnum'; +import type { GetWarehouseFBSOperationStatusResponseError } from './GetWarehouseFBSOperationStatusResponseError'; +import type { GetWarehouseFBSOperationStatusResponseTypeEnum } from './GetWarehouseFBSOperationStatusResponseTypeEnum'; +/** + * + * @export + * @interface V1GetWarehouseFBSOperationStatusResponse + */ +export interface V1GetWarehouseFBSOperationStatusResponse { + /** + * + * @type {GetWarehouseFBSOperationStatusResponseError} + * @memberof V1GetWarehouseFBSOperationStatusResponse + */ + error?: GetWarehouseFBSOperationStatusResponseError; + /** + * + * @type {GetWarehouseFBSOperationStatusResponseResult} + * @memberof V1GetWarehouseFBSOperationStatusResponse + */ + result?: GetWarehouseFBSOperationStatusResponseResult; + /** + * + * @type {GetWarehouseFBSOperationStatusResponseStatusEnum} + * @memberof V1GetWarehouseFBSOperationStatusResponse + */ + status?: GetWarehouseFBSOperationStatusResponseStatusEnum; + /** + * + * @type {GetWarehouseFBSOperationStatusResponseTypeEnum} + * @memberof V1GetWarehouseFBSOperationStatusResponse + */ + type?: GetWarehouseFBSOperationStatusResponseTypeEnum; +} +/** + * Check if a given object implements the V1GetWarehouseFBSOperationStatusResponse interface. + */ +export declare function instanceOfV1GetWarehouseFBSOperationStatusResponse(value: object): value is V1GetWarehouseFBSOperationStatusResponse; +export declare function V1GetWarehouseFBSOperationStatusResponseFromJSON(json: any): V1GetWarehouseFBSOperationStatusResponse; +export declare function V1GetWarehouseFBSOperationStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GetWarehouseFBSOperationStatusResponse; +export declare function V1GetWarehouseFBSOperationStatusResponseToJSON(value?: V1GetWarehouseFBSOperationStatusResponse | null): any; diff --git a/dist/models/V1GetWarehouseFBSOperationStatusResponse.js b/dist/models/V1GetWarehouseFBSOperationStatusResponse.js new file mode 100644 index 0000000..933b5fb --- /dev/null +++ b/dist/models/V1GetWarehouseFBSOperationStatusResponse.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GetWarehouseFBSOperationStatusResponse = instanceOfV1GetWarehouseFBSOperationStatusResponse; +exports.V1GetWarehouseFBSOperationStatusResponseFromJSON = V1GetWarehouseFBSOperationStatusResponseFromJSON; +exports.V1GetWarehouseFBSOperationStatusResponseFromJSONTyped = V1GetWarehouseFBSOperationStatusResponseFromJSONTyped; +exports.V1GetWarehouseFBSOperationStatusResponseToJSON = V1GetWarehouseFBSOperationStatusResponseToJSON; +const GetWarehouseFBSOperationStatusResponseResult_1 = require("./GetWarehouseFBSOperationStatusResponseResult"); +const GetWarehouseFBSOperationStatusResponseStatusEnum_1 = require("./GetWarehouseFBSOperationStatusResponseStatusEnum"); +const GetWarehouseFBSOperationStatusResponseError_1 = require("./GetWarehouseFBSOperationStatusResponseError"); +const GetWarehouseFBSOperationStatusResponseTypeEnum_1 = require("./GetWarehouseFBSOperationStatusResponseTypeEnum"); +/** + * Check if a given object implements the V1GetWarehouseFBSOperationStatusResponse interface. + */ +function instanceOfV1GetWarehouseFBSOperationStatusResponse(value) { + return true; +} +function V1GetWarehouseFBSOperationStatusResponseFromJSON(json) { + return V1GetWarehouseFBSOperationStatusResponseFromJSONTyped(json, false); +} +function V1GetWarehouseFBSOperationStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : (0, GetWarehouseFBSOperationStatusResponseError_1.GetWarehouseFBSOperationStatusResponseErrorFromJSON)(json['error']), + 'result': json['result'] == null ? undefined : (0, GetWarehouseFBSOperationStatusResponseResult_1.GetWarehouseFBSOperationStatusResponseResultFromJSON)(json['result']), + 'status': json['status'] == null ? undefined : (0, GetWarehouseFBSOperationStatusResponseStatusEnum_1.GetWarehouseFBSOperationStatusResponseStatusEnumFromJSON)(json['status']), + 'type': json['type'] == null ? undefined : (0, GetWarehouseFBSOperationStatusResponseTypeEnum_1.GetWarehouseFBSOperationStatusResponseTypeEnumFromJSON)(json['type']), + }; +} +function V1GetWarehouseFBSOperationStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': (0, GetWarehouseFBSOperationStatusResponseError_1.GetWarehouseFBSOperationStatusResponseErrorToJSON)(value['error']), + 'result': (0, GetWarehouseFBSOperationStatusResponseResult_1.GetWarehouseFBSOperationStatusResponseResultToJSON)(value['result']), + 'status': (0, GetWarehouseFBSOperationStatusResponseStatusEnum_1.GetWarehouseFBSOperationStatusResponseStatusEnumToJSON)(value['status']), + 'type': (0, GetWarehouseFBSOperationStatusResponseTypeEnum_1.GetWarehouseFBSOperationStatusResponseTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/V1GiveoutBarcodeResetResponse.d.ts b/dist/models/V1GiveoutBarcodeResetResponse.d.ts new file mode 100644 index 0000000..f0e77a6 --- /dev/null +++ b/dist/models/V1GiveoutBarcodeResetResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutBarcodeResetResponse + */ +export interface V1GiveoutBarcodeResetResponse { + /** + * Изображение со штрихкодом в бинарном виде. + * @type {string} + * @memberof V1GiveoutBarcodeResetResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V1GiveoutBarcodeResetResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V1GiveoutBarcodeResetResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V1GiveoutBarcodeResetResponse interface. + */ +export declare function instanceOfV1GiveoutBarcodeResetResponse(value: object): value is V1GiveoutBarcodeResetResponse; +export declare function V1GiveoutBarcodeResetResponseFromJSON(json: any): V1GiveoutBarcodeResetResponse; +export declare function V1GiveoutBarcodeResetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutBarcodeResetResponse; +export declare function V1GiveoutBarcodeResetResponseToJSON(value?: V1GiveoutBarcodeResetResponse | null): any; diff --git a/dist/models/V1GiveoutBarcodeResetResponse.js b/dist/models/V1GiveoutBarcodeResetResponse.js new file mode 100644 index 0000000..9b219ef --- /dev/null +++ b/dist/models/V1GiveoutBarcodeResetResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutBarcodeResetResponse = instanceOfV1GiveoutBarcodeResetResponse; +exports.V1GiveoutBarcodeResetResponseFromJSON = V1GiveoutBarcodeResetResponseFromJSON; +exports.V1GiveoutBarcodeResetResponseFromJSONTyped = V1GiveoutBarcodeResetResponseFromJSONTyped; +exports.V1GiveoutBarcodeResetResponseToJSON = V1GiveoutBarcodeResetResponseToJSON; +/** + * Check if a given object implements the V1GiveoutBarcodeResetResponse interface. + */ +function instanceOfV1GiveoutBarcodeResetResponse(value) { + return true; +} +function V1GiveoutBarcodeResetResponseFromJSON(json) { + return V1GiveoutBarcodeResetResponseFromJSONTyped(json, false); +} +function V1GiveoutBarcodeResetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +function V1GiveoutBarcodeResetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/models/V1GiveoutGetBarcodeResponse.d.ts b/dist/models/V1GiveoutGetBarcodeResponse.d.ts new file mode 100644 index 0000000..99bf7f4 --- /dev/null +++ b/dist/models/V1GiveoutGetBarcodeResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutGetBarcodeResponse + */ +export interface V1GiveoutGetBarcodeResponse { + /** + * Значение штрихкода в текстовом виде. + * @type {string} + * @memberof V1GiveoutGetBarcodeResponse + */ + barcode?: string; +} +/** + * Check if a given object implements the V1GiveoutGetBarcodeResponse interface. + */ +export declare function instanceOfV1GiveoutGetBarcodeResponse(value: object): value is V1GiveoutGetBarcodeResponse; +export declare function V1GiveoutGetBarcodeResponseFromJSON(json: any): V1GiveoutGetBarcodeResponse; +export declare function V1GiveoutGetBarcodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutGetBarcodeResponse; +export declare function V1GiveoutGetBarcodeResponseToJSON(value?: V1GiveoutGetBarcodeResponse | null): any; diff --git a/dist/models/V1GiveoutGetBarcodeResponse.js b/dist/models/V1GiveoutGetBarcodeResponse.js new file mode 100644 index 0000000..076782f --- /dev/null +++ b/dist/models/V1GiveoutGetBarcodeResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutGetBarcodeResponse = instanceOfV1GiveoutGetBarcodeResponse; +exports.V1GiveoutGetBarcodeResponseFromJSON = V1GiveoutGetBarcodeResponseFromJSON; +exports.V1GiveoutGetBarcodeResponseFromJSONTyped = V1GiveoutGetBarcodeResponseFromJSONTyped; +exports.V1GiveoutGetBarcodeResponseToJSON = V1GiveoutGetBarcodeResponseToJSON; +/** + * Check if a given object implements the V1GiveoutGetBarcodeResponse interface. + */ +function instanceOfV1GiveoutGetBarcodeResponse(value) { + return true; +} +function V1GiveoutGetBarcodeResponseFromJSON(json) { + return V1GiveoutGetBarcodeResponseFromJSONTyped(json, false); +} +function V1GiveoutGetBarcodeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + }; +} +function V1GiveoutGetBarcodeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + }; +} diff --git a/dist/models/V1GiveoutGetPDFResponse.d.ts b/dist/models/V1GiveoutGetPDFResponse.d.ts new file mode 100644 index 0000000..028216b --- /dev/null +++ b/dist/models/V1GiveoutGetPDFResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutGetPDFResponse + */ +export interface V1GiveoutGetPDFResponse { + /** + * PDF-файл со штрихкодом в кодировке Base64. + * @type {string} + * @memberof V1GiveoutGetPDFResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V1GiveoutGetPDFResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V1GiveoutGetPDFResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V1GiveoutGetPDFResponse interface. + */ +export declare function instanceOfV1GiveoutGetPDFResponse(value: object): value is V1GiveoutGetPDFResponse; +export declare function V1GiveoutGetPDFResponseFromJSON(json: any): V1GiveoutGetPDFResponse; +export declare function V1GiveoutGetPDFResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutGetPDFResponse; +export declare function V1GiveoutGetPDFResponseToJSON(value?: V1GiveoutGetPDFResponse | null): any; diff --git a/dist/models/V1GiveoutGetPDFResponse.js b/dist/models/V1GiveoutGetPDFResponse.js new file mode 100644 index 0000000..6d6388d --- /dev/null +++ b/dist/models/V1GiveoutGetPDFResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutGetPDFResponse = instanceOfV1GiveoutGetPDFResponse; +exports.V1GiveoutGetPDFResponseFromJSON = V1GiveoutGetPDFResponseFromJSON; +exports.V1GiveoutGetPDFResponseFromJSONTyped = V1GiveoutGetPDFResponseFromJSONTyped; +exports.V1GiveoutGetPDFResponseToJSON = V1GiveoutGetPDFResponseToJSON; +/** + * Check if a given object implements the V1GiveoutGetPDFResponse interface. + */ +function instanceOfV1GiveoutGetPDFResponse(value) { + return true; +} +function V1GiveoutGetPDFResponseFromJSON(json) { + return V1GiveoutGetPDFResponseFromJSONTyped(json, false); +} +function V1GiveoutGetPDFResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +function V1GiveoutGetPDFResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/models/V1GiveoutGetPNGResponse.d.ts b/dist/models/V1GiveoutGetPNGResponse.d.ts new file mode 100644 index 0000000..02385ad --- /dev/null +++ b/dist/models/V1GiveoutGetPNGResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutGetPNGResponse + */ +export interface V1GiveoutGetPNGResponse { + /** + * PNG-файл со штрихкодом в кодировке Base64. + * @type {string} + * @memberof V1GiveoutGetPNGResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V1GiveoutGetPNGResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V1GiveoutGetPNGResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V1GiveoutGetPNGResponse interface. + */ +export declare function instanceOfV1GiveoutGetPNGResponse(value: object): value is V1GiveoutGetPNGResponse; +export declare function V1GiveoutGetPNGResponseFromJSON(json: any): V1GiveoutGetPNGResponse; +export declare function V1GiveoutGetPNGResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutGetPNGResponse; +export declare function V1GiveoutGetPNGResponseToJSON(value?: V1GiveoutGetPNGResponse | null): any; diff --git a/dist/models/V1GiveoutGetPNGResponse.js b/dist/models/V1GiveoutGetPNGResponse.js new file mode 100644 index 0000000..45d3087 --- /dev/null +++ b/dist/models/V1GiveoutGetPNGResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutGetPNGResponse = instanceOfV1GiveoutGetPNGResponse; +exports.V1GiveoutGetPNGResponseFromJSON = V1GiveoutGetPNGResponseFromJSON; +exports.V1GiveoutGetPNGResponseFromJSONTyped = V1GiveoutGetPNGResponseFromJSONTyped; +exports.V1GiveoutGetPNGResponseToJSON = V1GiveoutGetPNGResponseToJSON; +/** + * Check if a given object implements the V1GiveoutGetPNGResponse interface. + */ +function instanceOfV1GiveoutGetPNGResponse(value) { + return true; +} +function V1GiveoutGetPNGResponseFromJSON(json) { + return V1GiveoutGetPNGResponseFromJSONTyped(json, false); +} +function V1GiveoutGetPNGResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +function V1GiveoutGetPNGResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/models/V1GiveoutInfoRequest.d.ts b/dist/models/V1GiveoutInfoRequest.d.ts new file mode 100644 index 0000000..6554ff9 --- /dev/null +++ b/dist/models/V1GiveoutInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutInfoRequest + */ +export interface V1GiveoutInfoRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1GiveoutInfoRequest + */ + giveout_id: number; +} +/** + * Check if a given object implements the V1GiveoutInfoRequest interface. + */ +export declare function instanceOfV1GiveoutInfoRequest(value: object): value is V1GiveoutInfoRequest; +export declare function V1GiveoutInfoRequestFromJSON(json: any): V1GiveoutInfoRequest; +export declare function V1GiveoutInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutInfoRequest; +export declare function V1GiveoutInfoRequestToJSON(value?: V1GiveoutInfoRequest | null): any; diff --git a/dist/models/V1GiveoutInfoRequest.js b/dist/models/V1GiveoutInfoRequest.js new file mode 100644 index 0000000..c18136b --- /dev/null +++ b/dist/models/V1GiveoutInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutInfoRequest = instanceOfV1GiveoutInfoRequest; +exports.V1GiveoutInfoRequestFromJSON = V1GiveoutInfoRequestFromJSON; +exports.V1GiveoutInfoRequestFromJSONTyped = V1GiveoutInfoRequestFromJSONTyped; +exports.V1GiveoutInfoRequestToJSON = V1GiveoutInfoRequestToJSON; +/** + * Check if a given object implements the V1GiveoutInfoRequest interface. + */ +function instanceOfV1GiveoutInfoRequest(value) { + if (!('giveout_id' in value) || value['giveout_id'] === undefined) + return false; + return true; +} +function V1GiveoutInfoRequestFromJSON(json) { + return V1GiveoutInfoRequestFromJSONTyped(json, false); +} +function V1GiveoutInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'giveout_id': json['giveout_id'], + }; +} +function V1GiveoutInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'giveout_id': value['giveout_id'], + }; +} diff --git a/dist/models/V1GiveoutInfoResponse.d.ts b/dist/models/V1GiveoutInfoResponse.d.ts new file mode 100644 index 0000000..79a5258 --- /dev/null +++ b/dist/models/V1GiveoutInfoResponse.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GiveoutInfoResponseArticleDetails } from './GiveoutInfoResponseArticleDetails'; +/** + * + * @export + * @interface V1GiveoutInfoResponse + */ +export interface V1GiveoutInfoResponse { + /** + * Артикулы товаров. + * @type {Array} + * @memberof V1GiveoutInfoResponse + */ + articles?: Array; + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1GiveoutInfoResponse + */ + giveout_id?: number; + /** + * Статусы возвратной отгрузки: + * - `GIVEOUT_STATUS_UNSPECIFIED` — не определён, напишите в поддержку. + * - `GIVEOUT_STATUS_CREATED` — создана. + * - `GIVEOUT_STATUS_APPROVED` — одобрена. + * - `GIVEOUT_STATUS_COMPLETED` — завершена. + * - `GIVEOUT_STATUS_CANCELLED` — отменена. + * + * @type {string} + * @memberof V1GiveoutInfoResponse + */ + giveout_status?: string; + /** + * Адрес склада. + * @type {string} + * @memberof V1GiveoutInfoResponse + */ + warehouse_address?: string; + /** + * Название склада. + * @type {string} + * @memberof V1GiveoutInfoResponse + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the V1GiveoutInfoResponse interface. + */ +export declare function instanceOfV1GiveoutInfoResponse(value: object): value is V1GiveoutInfoResponse; +export declare function V1GiveoutInfoResponseFromJSON(json: any): V1GiveoutInfoResponse; +export declare function V1GiveoutInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutInfoResponse; +export declare function V1GiveoutInfoResponseToJSON(value?: V1GiveoutInfoResponse | null): any; diff --git a/dist/models/V1GiveoutInfoResponse.js b/dist/models/V1GiveoutInfoResponse.js new file mode 100644 index 0000000..8e8f009 --- /dev/null +++ b/dist/models/V1GiveoutInfoResponse.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutInfoResponse = instanceOfV1GiveoutInfoResponse; +exports.V1GiveoutInfoResponseFromJSON = V1GiveoutInfoResponseFromJSON; +exports.V1GiveoutInfoResponseFromJSONTyped = V1GiveoutInfoResponseFromJSONTyped; +exports.V1GiveoutInfoResponseToJSON = V1GiveoutInfoResponseToJSON; +const GiveoutInfoResponseArticleDetails_1 = require("./GiveoutInfoResponseArticleDetails"); +/** + * Check if a given object implements the V1GiveoutInfoResponse interface. + */ +function instanceOfV1GiveoutInfoResponse(value) { + return true; +} +function V1GiveoutInfoResponseFromJSON(json) { + return V1GiveoutInfoResponseFromJSONTyped(json, false); +} +function V1GiveoutInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'articles': json['articles'] == null ? undefined : (json['articles'].map(GiveoutInfoResponseArticleDetails_1.GiveoutInfoResponseArticleDetailsFromJSON)), + 'giveout_id': json['giveout_id'] == null ? undefined : json['giveout_id'], + 'giveout_status': json['giveout_status'] == null ? undefined : json['giveout_status'], + 'warehouse_address': json['warehouse_address'] == null ? undefined : json['warehouse_address'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function V1GiveoutInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'articles': value['articles'] == null ? undefined : (value['articles'].map(GiveoutInfoResponseArticleDetails_1.GiveoutInfoResponseArticleDetailsToJSON)), + 'giveout_id': value['giveout_id'], + 'giveout_status': value['giveout_status'], + 'warehouse_address': value['warehouse_address'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/V1GiveoutIsEnabledResponse.d.ts b/dist/models/V1GiveoutIsEnabledResponse.d.ts new file mode 100644 index 0000000..ab6f64d --- /dev/null +++ b/dist/models/V1GiveoutIsEnabledResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutIsEnabledResponse + */ +export interface V1GiveoutIsEnabledResponse { + /** + * `true`, если вы можете получить возвратную отгрузку по штрихкоду. + * + * @type {boolean} + * @memberof V1GiveoutIsEnabledResponse + */ + enabled?: boolean; +} +/** + * Check if a given object implements the V1GiveoutIsEnabledResponse interface. + */ +export declare function instanceOfV1GiveoutIsEnabledResponse(value: object): value is V1GiveoutIsEnabledResponse; +export declare function V1GiveoutIsEnabledResponseFromJSON(json: any): V1GiveoutIsEnabledResponse; +export declare function V1GiveoutIsEnabledResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutIsEnabledResponse; +export declare function V1GiveoutIsEnabledResponseToJSON(value?: V1GiveoutIsEnabledResponse | null): any; diff --git a/dist/models/V1GiveoutIsEnabledResponse.js b/dist/models/V1GiveoutIsEnabledResponse.js new file mode 100644 index 0000000..4b8a20b --- /dev/null +++ b/dist/models/V1GiveoutIsEnabledResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutIsEnabledResponse = instanceOfV1GiveoutIsEnabledResponse; +exports.V1GiveoutIsEnabledResponseFromJSON = V1GiveoutIsEnabledResponseFromJSON; +exports.V1GiveoutIsEnabledResponseFromJSONTyped = V1GiveoutIsEnabledResponseFromJSONTyped; +exports.V1GiveoutIsEnabledResponseToJSON = V1GiveoutIsEnabledResponseToJSON; +/** + * Check if a given object implements the V1GiveoutIsEnabledResponse interface. + */ +function instanceOfV1GiveoutIsEnabledResponse(value) { + return true; +} +function V1GiveoutIsEnabledResponseFromJSON(json) { + return V1GiveoutIsEnabledResponseFromJSONTyped(json, false); +} +function V1GiveoutIsEnabledResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + }; +} +function V1GiveoutIsEnabledResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + }; +} diff --git a/dist/models/V1GiveoutListRequest.d.ts b/dist/models/V1GiveoutListRequest.d.ts new file mode 100644 index 0000000..4e097f5 --- /dev/null +++ b/dist/models/V1GiveoutListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1GiveoutListRequest + */ +export interface V1GiveoutListRequest { + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1GiveoutListRequest + */ + last_id?: number; + /** + * Количество элементов в ответе. + * @type {number} + * @memberof V1GiveoutListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1GiveoutListRequest interface. + */ +export declare function instanceOfV1GiveoutListRequest(value: object): value is V1GiveoutListRequest; +export declare function V1GiveoutListRequestFromJSON(json: any): V1GiveoutListRequest; +export declare function V1GiveoutListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutListRequest; +export declare function V1GiveoutListRequestToJSON(value?: V1GiveoutListRequest | null): any; diff --git a/dist/models/V1GiveoutListRequest.js b/dist/models/V1GiveoutListRequest.js new file mode 100644 index 0000000..068b5ae --- /dev/null +++ b/dist/models/V1GiveoutListRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutListRequest = instanceOfV1GiveoutListRequest; +exports.V1GiveoutListRequestFromJSON = V1GiveoutListRequestFromJSON; +exports.V1GiveoutListRequestFromJSONTyped = V1GiveoutListRequestFromJSONTyped; +exports.V1GiveoutListRequestToJSON = V1GiveoutListRequestToJSON; +/** + * Check if a given object implements the V1GiveoutListRequest interface. + */ +function instanceOfV1GiveoutListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1GiveoutListRequestFromJSON(json) { + return V1GiveoutListRequestFromJSONTyped(json, false); +} +function V1GiveoutListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +function V1GiveoutListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1GiveoutListResponse.d.ts b/dist/models/V1GiveoutListResponse.d.ts new file mode 100644 index 0000000..7dd6aa2 --- /dev/null +++ b/dist/models/V1GiveoutListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GiveoutListResponseGiveoutDetails } from './GiveoutListResponseGiveoutDetails'; +/** + * + * @export + * @interface V1GiveoutListResponse + */ +export interface V1GiveoutListResponse { + /** + * Идентификатор отгрузки. + * @type {Array} + * @memberof V1GiveoutListResponse + */ + giveouts?: Array; +} +/** + * Check if a given object implements the V1GiveoutListResponse interface. + */ +export declare function instanceOfV1GiveoutListResponse(value: object): value is V1GiveoutListResponse; +export declare function V1GiveoutListResponseFromJSON(json: any): V1GiveoutListResponse; +export declare function V1GiveoutListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1GiveoutListResponse; +export declare function V1GiveoutListResponseToJSON(value?: V1GiveoutListResponse | null): any; diff --git a/dist/models/V1GiveoutListResponse.js b/dist/models/V1GiveoutListResponse.js new file mode 100644 index 0000000..f86fc32 --- /dev/null +++ b/dist/models/V1GiveoutListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1GiveoutListResponse = instanceOfV1GiveoutListResponse; +exports.V1GiveoutListResponseFromJSON = V1GiveoutListResponseFromJSON; +exports.V1GiveoutListResponseFromJSONTyped = V1GiveoutListResponseFromJSONTyped; +exports.V1GiveoutListResponseToJSON = V1GiveoutListResponseToJSON; +const GiveoutListResponseGiveoutDetails_1 = require("./GiveoutListResponseGiveoutDetails"); +/** + * Check if a given object implements the V1GiveoutListResponse interface. + */ +function instanceOfV1GiveoutListResponse(value) { + return true; +} +function V1GiveoutListResponseFromJSON(json) { + return V1GiveoutListResponseFromJSONTyped(json, false); +} +function V1GiveoutListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'giveouts': json['giveouts'] == null ? undefined : (json['giveouts'].map(GiveoutListResponseGiveoutDetails_1.GiveoutListResponseGiveoutDetailsFromJSON)), + }; +} +function V1GiveoutListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'giveouts': value['giveouts'] == null ? undefined : (value['giveouts'].map(GiveoutListResponseGiveoutDetails_1.GiveoutListResponseGiveoutDetailsToJSON)), + }; +} diff --git a/dist/models/V1InvoiceDeleteRequest.d.ts b/dist/models/V1InvoiceDeleteRequest.d.ts new file mode 100644 index 0000000..e03506d --- /dev/null +++ b/dist/models/V1InvoiceDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceDeleteRequest + */ +export interface V1InvoiceDeleteRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1InvoiceDeleteRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1InvoiceDeleteRequest interface. + */ +export declare function instanceOfV1InvoiceDeleteRequest(value: object): value is V1InvoiceDeleteRequest; +export declare function V1InvoiceDeleteRequestFromJSON(json: any): V1InvoiceDeleteRequest; +export declare function V1InvoiceDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceDeleteRequest; +export declare function V1InvoiceDeleteRequestToJSON(value?: V1InvoiceDeleteRequest | null): any; diff --git a/dist/models/V1InvoiceDeleteRequest.js b/dist/models/V1InvoiceDeleteRequest.js new file mode 100644 index 0000000..3346bcd --- /dev/null +++ b/dist/models/V1InvoiceDeleteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1InvoiceDeleteRequest = instanceOfV1InvoiceDeleteRequest; +exports.V1InvoiceDeleteRequestFromJSON = V1InvoiceDeleteRequestFromJSON; +exports.V1InvoiceDeleteRequestFromJSONTyped = V1InvoiceDeleteRequestFromJSONTyped; +exports.V1InvoiceDeleteRequestToJSON = V1InvoiceDeleteRequestToJSON; +/** + * Check if a given object implements the V1InvoiceDeleteRequest interface. + */ +function instanceOfV1InvoiceDeleteRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1InvoiceDeleteRequestFromJSON(json) { + return V1InvoiceDeleteRequestFromJSONTyped(json, false); +} +function V1InvoiceDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1InvoiceDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1InvoiceDeleteResponse.d.ts b/dist/models/V1InvoiceDeleteResponse.d.ts new file mode 100644 index 0000000..975cecb --- /dev/null +++ b/dist/models/V1InvoiceDeleteResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceDeleteResponse + */ +export interface V1InvoiceDeleteResponse { + /** + * Результат работы метода. + * @type {boolean} + * @memberof V1InvoiceDeleteResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the V1InvoiceDeleteResponse interface. + */ +export declare function instanceOfV1InvoiceDeleteResponse(value: object): value is V1InvoiceDeleteResponse; +export declare function V1InvoiceDeleteResponseFromJSON(json: any): V1InvoiceDeleteResponse; +export declare function V1InvoiceDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceDeleteResponse; +export declare function V1InvoiceDeleteResponseToJSON(value?: V1InvoiceDeleteResponse | null): any; diff --git a/dist/models/V1InvoiceDeleteResponse.js b/dist/models/V1InvoiceDeleteResponse.js new file mode 100644 index 0000000..a171520 --- /dev/null +++ b/dist/models/V1InvoiceDeleteResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1InvoiceDeleteResponse = instanceOfV1InvoiceDeleteResponse; +exports.V1InvoiceDeleteResponseFromJSON = V1InvoiceDeleteResponseFromJSON; +exports.V1InvoiceDeleteResponseFromJSONTyped = V1InvoiceDeleteResponseFromJSONTyped; +exports.V1InvoiceDeleteResponseToJSON = V1InvoiceDeleteResponseToJSON; +/** + * Check if a given object implements the V1InvoiceDeleteResponse interface. + */ +function instanceOfV1InvoiceDeleteResponse(value) { + return true; +} +function V1InvoiceDeleteResponseFromJSON(json) { + return V1InvoiceDeleteResponseFromJSONTyped(json, false); +} +function V1InvoiceDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function V1InvoiceDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/V1InvoiceFileUploadRequest.d.ts b/dist/models/V1InvoiceFileUploadRequest.d.ts new file mode 100644 index 0000000..d7c4c42 --- /dev/null +++ b/dist/models/V1InvoiceFileUploadRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceFileUploadRequest + */ +export interface V1InvoiceFileUploadRequest { + /** + * Счёт-фактура в кодировке Base64. + * @type {string} + * @memberof V1InvoiceFileUploadRequest + */ + base64_content: string; + /** + * Номер отправления. + * @type {string} + * @memberof V1InvoiceFileUploadRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1InvoiceFileUploadRequest interface. + */ +export declare function instanceOfV1InvoiceFileUploadRequest(value: object): value is V1InvoiceFileUploadRequest; +export declare function V1InvoiceFileUploadRequestFromJSON(json: any): V1InvoiceFileUploadRequest; +export declare function V1InvoiceFileUploadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceFileUploadRequest; +export declare function V1InvoiceFileUploadRequestToJSON(value?: V1InvoiceFileUploadRequest | null): any; diff --git a/dist/models/V1InvoiceFileUploadRequest.js b/dist/models/V1InvoiceFileUploadRequest.js new file mode 100644 index 0000000..16a683b --- /dev/null +++ b/dist/models/V1InvoiceFileUploadRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1InvoiceFileUploadRequest = instanceOfV1InvoiceFileUploadRequest; +exports.V1InvoiceFileUploadRequestFromJSON = V1InvoiceFileUploadRequestFromJSON; +exports.V1InvoiceFileUploadRequestFromJSONTyped = V1InvoiceFileUploadRequestFromJSONTyped; +exports.V1InvoiceFileUploadRequestToJSON = V1InvoiceFileUploadRequestToJSON; +/** + * Check if a given object implements the V1InvoiceFileUploadRequest interface. + */ +function instanceOfV1InvoiceFileUploadRequest(value) { + if (!('base64_content' in value) || value['base64_content'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1InvoiceFileUploadRequestFromJSON(json) { + return V1InvoiceFileUploadRequestFromJSONTyped(json, false); +} +function V1InvoiceFileUploadRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'base64_content': json['base64_content'], + 'posting_number': json['posting_number'], + }; +} +function V1InvoiceFileUploadRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'base64_content': value['base64_content'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1InvoiceFileUploadResponse.d.ts b/dist/models/V1InvoiceFileUploadResponse.d.ts new file mode 100644 index 0000000..fa2b9fa --- /dev/null +++ b/dist/models/V1InvoiceFileUploadResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceFileUploadResponse + */ +export interface V1InvoiceFileUploadResponse { + /** + * Ссылка на счёт-фактуру. + * @type {string} + * @memberof V1InvoiceFileUploadResponse + */ + url?: string; +} +/** + * Check if a given object implements the V1InvoiceFileUploadResponse interface. + */ +export declare function instanceOfV1InvoiceFileUploadResponse(value: object): value is V1InvoiceFileUploadResponse; +export declare function V1InvoiceFileUploadResponseFromJSON(json: any): V1InvoiceFileUploadResponse; +export declare function V1InvoiceFileUploadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceFileUploadResponse; +export declare function V1InvoiceFileUploadResponseToJSON(value?: V1InvoiceFileUploadResponse | null): any; diff --git a/dist/models/V1InvoiceFileUploadResponse.js b/dist/models/V1InvoiceFileUploadResponse.js new file mode 100644 index 0000000..b4eaa83 --- /dev/null +++ b/dist/models/V1InvoiceFileUploadResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1InvoiceFileUploadResponse = instanceOfV1InvoiceFileUploadResponse; +exports.V1InvoiceFileUploadResponseFromJSON = V1InvoiceFileUploadResponseFromJSON; +exports.V1InvoiceFileUploadResponseFromJSONTyped = V1InvoiceFileUploadResponseFromJSONTyped; +exports.V1InvoiceFileUploadResponseToJSON = V1InvoiceFileUploadResponseToJSON; +/** + * Check if a given object implements the V1InvoiceFileUploadResponse interface. + */ +function instanceOfV1InvoiceFileUploadResponse(value) { + return true; +} +function V1InvoiceFileUploadResponseFromJSON(json) { + return V1InvoiceFileUploadResponseFromJSONTyped(json, false); +} +function V1InvoiceFileUploadResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'url': json['url'] == null ? undefined : json['url'], + }; +} +function V1InvoiceFileUploadResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'url': value['url'], + }; +} diff --git a/dist/models/V1InvoiceGetRequest.d.ts b/dist/models/V1InvoiceGetRequest.d.ts new file mode 100644 index 0000000..39e68be --- /dev/null +++ b/dist/models/V1InvoiceGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1InvoiceGetRequest + */ +export interface V1InvoiceGetRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1InvoiceGetRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1InvoiceGetRequest interface. + */ +export declare function instanceOfV1InvoiceGetRequest(value: object): value is V1InvoiceGetRequest; +export declare function V1InvoiceGetRequestFromJSON(json: any): V1InvoiceGetRequest; +export declare function V1InvoiceGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1InvoiceGetRequest; +export declare function V1InvoiceGetRequestToJSON(value?: V1InvoiceGetRequest | null): any; diff --git a/dist/models/V1InvoiceGetRequest.js b/dist/models/V1InvoiceGetRequest.js new file mode 100644 index 0000000..8dca1b7 --- /dev/null +++ b/dist/models/V1InvoiceGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1InvoiceGetRequest = instanceOfV1InvoiceGetRequest; +exports.V1InvoiceGetRequestFromJSON = V1InvoiceGetRequestFromJSON; +exports.V1InvoiceGetRequestFromJSONTyped = V1InvoiceGetRequestFromJSONTyped; +exports.V1InvoiceGetRequestToJSON = V1InvoiceGetRequestToJSON; +/** + * Check if a given object implements the V1InvoiceGetRequest interface. + */ +function instanceOfV1InvoiceGetRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1InvoiceGetRequestFromJSON(json) { + return V1InvoiceGetRequestFromJSONTyped(json, false); +} +function V1InvoiceGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1InvoiceGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1ItemError.d.ts b/dist/models/V1ItemError.d.ts new file mode 100644 index 0000000..1619d42 --- /dev/null +++ b/dist/models/V1ItemError.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ItemError + */ +export interface V1ItemError { + /** + * Код ошибки. + * @type {string} + * @memberof V1ItemError + */ + code?: string; + /** + * Техническое описание ошибки. + * @type {string} + * @memberof V1ItemError + */ + message?: string; + /** + * Состояние товара, в котором произошла ошибка. + * @type {string} + * @memberof V1ItemError + */ + state?: string; + /** + * Уровень ошибки. + * @type {string} + * @memberof V1ItemError + */ + level?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1ItemError + */ + description?: string; + /** + * Поле, в котором произошла ошибка. + * @type {string} + * @memberof V1ItemError + */ + field?: string; + /** + * Атрибут, в котором произошла ошибка. + * @type {number} + * @memberof V1ItemError + */ + attribute_id?: number; + /** + * Название атрибута, в котором произошла ошибка. + * @type {string} + * @memberof V1ItemError + */ + attribute_name?: string; +} +/** + * Check if a given object implements the V1ItemError interface. + */ +export declare function instanceOfV1ItemError(value: object): value is V1ItemError; +export declare function V1ItemErrorFromJSON(json: any): V1ItemError; +export declare function V1ItemErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemError; +export declare function V1ItemErrorToJSON(value?: V1ItemError | null): any; diff --git a/dist/models/V1ItemError.js b/dist/models/V1ItemError.js new file mode 100644 index 0000000..b637108 --- /dev/null +++ b/dist/models/V1ItemError.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ItemError = instanceOfV1ItemError; +exports.V1ItemErrorFromJSON = V1ItemErrorFromJSON; +exports.V1ItemErrorFromJSONTyped = V1ItemErrorFromJSONTyped; +exports.V1ItemErrorToJSON = V1ItemErrorToJSON; +/** + * Check if a given object implements the V1ItemError interface. + */ +function instanceOfV1ItemError(value) { + return true; +} +function V1ItemErrorFromJSON(json) { + return V1ItemErrorFromJSONTyped(json, false); +} +function V1ItemErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'message': json['message'] == null ? undefined : json['message'], + 'state': json['state'] == null ? undefined : json['state'], + 'level': json['level'] == null ? undefined : json['level'], + 'description': json['description'] == null ? undefined : json['description'], + 'field': json['field'] == null ? undefined : json['field'], + 'attribute_id': json['attribute_id'] == null ? undefined : json['attribute_id'], + 'attribute_name': json['attribute_name'] == null ? undefined : json['attribute_name'], + }; +} +function V1ItemErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'message': value['message'], + 'state': value['state'], + 'level': value['level'], + 'description': value['description'], + 'field': value['field'], + 'attribute_id': value['attribute_id'], + 'attribute_name': value['attribute_name'], + }; +} diff --git a/dist/models/V1ItemIDsRequest.d.ts b/dist/models/V1ItemIDsRequest.d.ts new file mode 100644 index 0000000..018d47e --- /dev/null +++ b/dist/models/V1ItemIDsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ItemIDsRequest + */ +export interface V1ItemIDsRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. Максимальное количество — 50. + * @type {Array} + * @memberof V1ItemIDsRequest + */ + product_id: Array; +} +/** + * Check if a given object implements the V1ItemIDsRequest interface. + */ +export declare function instanceOfV1ItemIDsRequest(value: object): value is V1ItemIDsRequest; +export declare function V1ItemIDsRequestFromJSON(json: any): V1ItemIDsRequest; +export declare function V1ItemIDsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemIDsRequest; +export declare function V1ItemIDsRequestToJSON(value?: V1ItemIDsRequest | null): any; diff --git a/dist/models/V1ItemIDsRequest.js b/dist/models/V1ItemIDsRequest.js new file mode 100644 index 0000000..bbcbad9 --- /dev/null +++ b/dist/models/V1ItemIDsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ItemIDsRequest = instanceOfV1ItemIDsRequest; +exports.V1ItemIDsRequestFromJSON = V1ItemIDsRequestFromJSON; +exports.V1ItemIDsRequestFromJSONTyped = V1ItemIDsRequestFromJSONTyped; +exports.V1ItemIDsRequestToJSON = V1ItemIDsRequestToJSON; +/** + * Check if a given object implements the V1ItemIDsRequest interface. + */ +function instanceOfV1ItemIDsRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function V1ItemIDsRequestFromJSON(json) { + return V1ItemIDsRequestFromJSONTyped(json, false); +} +function V1ItemIDsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +function V1ItemIDsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V1ItemResponse.d.ts b/dist/models/V1ItemResponse.d.ts new file mode 100644 index 0000000..a175d8b --- /dev/null +++ b/dist/models/V1ItemResponse.d.ts @@ -0,0 +1,172 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1BundleItemShipmentType } from './V1BundleItemShipmentType'; +import type { V1ItemSfboAttribute } from './V1ItemSfboAttribute'; +/** + * + * @export + * @interface V1ItemResponse + */ +export interface V1ItemResponse { + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1ItemResponse + */ + icon_path?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ItemResponse + */ + sku?: number; + /** + * Название товара. + * @type {string} + * @memberof V1ItemResponse + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1ItemResponse + */ + offer_id?: string; + /** + * Количество товара. + * @type {number} + * @memberof V1ItemResponse + */ + quantity?: number; + /** + * Штрихкод товара. + * @type {string} + * @memberof V1ItemResponse + */ + barcode?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1ItemResponse + */ + product_id?: number; + /** + * Количество товаров в одной упаковке. + * @type {number} + * @memberof V1ItemResponse + */ + quant?: number; + /** + * `true`, если количество товаров в одной упаковке можно изменить. + * + * @type {boolean} + * @memberof V1ItemResponse + */ + is_quant_editable?: boolean; + /** + * Объём товара в литрах. + * @type {number} + * @memberof V1ItemResponse + */ + volume_in_litres?: number; + /** + * Объём всех товаров в литрах. + * @type {number} + * @memberof V1ItemResponse + */ + total_volume_in_litres?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1ItemResponse + */ + contractor_item_code?: string; + /** + * + * @type {V1ItemSfboAttribute} + * @memberof V1ItemResponse + */ + sfbo_attribute?: V1ItemSfboAttribute; + /** + * + * @type {V1BundleItemShipmentType} + * @memberof V1ItemResponse + */ + shipment_type?: V1BundleItemShipmentType; + /** + * Теги товаров из поставки или заявки на поставку. + * + * Возможные значения: + * - `EVSD_REQUIRED` — товар с сертификацией «Меркурий»; + * - `MARKING_REQUIRED` — товар с обязательной маркировкой «Честный ЗНАК»; + * - `MARKING_POSSIBLE` — товар с возможной маркировкой «Честный ЗНАК»; + * - `JEWELRY` — товар с признаком ювелирного изделия; + * - `TRACEABLE` — товар с признаком прослеживаемости; + * - `ETTN_REQUIRED` — товар с признаком прослеживаемости, для которого необходима электронная ТТН; + * - `UNDEFINED` — неизвестный тег. + * + * @type {Array} + * @memberof V1ItemResponse + */ + tags?: Array; + /** + * Зона размещения товара: + * - `UNSPECIFIED` — не указана; + * - `CLOSED_ZONE` — закрытая зона; + * - `DANGEROUS_GOODS` — товар 2–4 класса опасности; + * - `PRODUCTS` — продукты; + * - `SORT` — сортируемый товар; + * - `NON_SORT` — несортируемый товар; + * - `OVERSIZE` — крупногабаритный товар; + * - `JEWELRY` — ювелирные изделия; + * - `UNRESOLVED` — неизвестная зона. + * + * @type {string} + * @memberof V1ItemResponse + */ + placement_zone?: V1ItemResponsePlacementZoneEnum; +} +/** + * @export + */ +export declare const V1ItemResponseTagsEnum: { + readonly EVSD_REQUIRED: "EVSD_REQUIRED"; + readonly MARKING_REQUIRED: "MARKING_REQUIRED"; + readonly MARKING_POSSIBLE: "MARKING_POSSIBLE"; + readonly JEWELRY: "JEWELRY"; + readonly TRACEABLE: "TRACEABLE"; + readonly ETTN_REQUIRED: "ETTN_REQUIRED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type V1ItemResponseTagsEnum = typeof V1ItemResponseTagsEnum[keyof typeof V1ItemResponseTagsEnum]; +/** + * @export + */ +export declare const V1ItemResponsePlacementZoneEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly CLOSED_ZONE: "CLOSED_ZONE"; + readonly DANGEROUS_GOODS: "DANGEROUS_GOODS"; + readonly PRODUCTS: "PRODUCTS"; + readonly SORT: "SORT"; + readonly NON_SORT: "NON_SORT"; + readonly OVERSIZE: "OVERSIZE"; + readonly JEWELRY: "JEWELRY"; + readonly UNRESOLVED: "UNRESOLVED"; +}; +export type V1ItemResponsePlacementZoneEnum = typeof V1ItemResponsePlacementZoneEnum[keyof typeof V1ItemResponsePlacementZoneEnum]; +/** + * Check if a given object implements the V1ItemResponse interface. + */ +export declare function instanceOfV1ItemResponse(value: object): value is V1ItemResponse; +export declare function V1ItemResponseFromJSON(json: any): V1ItemResponse; +export declare function V1ItemResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemResponse; +export declare function V1ItemResponseToJSON(value?: V1ItemResponse | null): any; diff --git a/dist/models/V1ItemResponse.js b/dist/models/V1ItemResponse.js new file mode 100644 index 0000000..6a2a963 --- /dev/null +++ b/dist/models/V1ItemResponse.js @@ -0,0 +1,103 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1ItemResponsePlacementZoneEnum = exports.V1ItemResponseTagsEnum = void 0; +exports.instanceOfV1ItemResponse = instanceOfV1ItemResponse; +exports.V1ItemResponseFromJSON = V1ItemResponseFromJSON; +exports.V1ItemResponseFromJSONTyped = V1ItemResponseFromJSONTyped; +exports.V1ItemResponseToJSON = V1ItemResponseToJSON; +const V1BundleItemShipmentType_1 = require("./V1BundleItemShipmentType"); +const V1ItemSfboAttribute_1 = require("./V1ItemSfboAttribute"); +/** + * @export + */ +exports.V1ItemResponseTagsEnum = { + EVSD_REQUIRED: 'EVSD_REQUIRED', + MARKING_REQUIRED: 'MARKING_REQUIRED', + MARKING_POSSIBLE: 'MARKING_POSSIBLE', + JEWELRY: 'JEWELRY', + TRACEABLE: 'TRACEABLE', + ETTN_REQUIRED: 'ETTN_REQUIRED', + UNDEFINED: 'UNDEFINED' +}; +/** + * @export + */ +exports.V1ItemResponsePlacementZoneEnum = { + UNSPECIFIED: 'UNSPECIFIED', + CLOSED_ZONE: 'CLOSED_ZONE', + DANGEROUS_GOODS: 'DANGEROUS_GOODS', + PRODUCTS: 'PRODUCTS', + SORT: 'SORT', + NON_SORT: 'NON_SORT', + OVERSIZE: 'OVERSIZE', + JEWELRY: 'JEWELRY', + UNRESOLVED: 'UNRESOLVED' +}; +/** + * Check if a given object implements the V1ItemResponse interface. + */ +function instanceOfV1ItemResponse(value) { + return true; +} +function V1ItemResponseFromJSON(json) { + return V1ItemResponseFromJSONTyped(json, false); +} +function V1ItemResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'icon_path': json['icon_path'] == null ? undefined : json['icon_path'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'is_quant_editable': json['is_quant_editable'] == null ? undefined : json['is_quant_editable'], + 'volume_in_litres': json['volume_in_litres'] == null ? undefined : json['volume_in_litres'], + 'total_volume_in_litres': json['total_volume_in_litres'] == null ? undefined : json['total_volume_in_litres'], + 'contractor_item_code': json['contractor_item_code'] == null ? undefined : json['contractor_item_code'], + 'sfbo_attribute': json['sfbo_attribute'] == null ? undefined : (0, V1ItemSfboAttribute_1.V1ItemSfboAttributeFromJSON)(json['sfbo_attribute']), + 'shipment_type': json['shipment_type'] == null ? undefined : (0, V1BundleItemShipmentType_1.V1BundleItemShipmentTypeFromJSON)(json['shipment_type']), + 'tags': json['tags'] == null ? undefined : json['tags'], + 'placement_zone': json['placement_zone'] == null ? undefined : json['placement_zone'], + }; +} +function V1ItemResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'icon_path': value['icon_path'], + 'sku': value['sku'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'barcode': value['barcode'], + 'product_id': value['product_id'], + 'quant': value['quant'], + 'is_quant_editable': value['is_quant_editable'], + 'volume_in_litres': value['volume_in_litres'], + 'total_volume_in_litres': value['total_volume_in_litres'], + 'contractor_item_code': value['contractor_item_code'], + 'sfbo_attribute': (0, V1ItemSfboAttribute_1.V1ItemSfboAttributeToJSON)(value['sfbo_attribute']), + 'shipment_type': (0, V1BundleItemShipmentType_1.V1BundleItemShipmentTypeToJSON)(value['shipment_type']), + 'tags': value['tags'], + 'placement_zone': value['placement_zone'], + }; +} diff --git a/dist/models/V1ItemSfboAttribute.d.ts b/dist/models/V1ItemSfboAttribute.d.ts new file mode 100644 index 0000000..94e0ef4 --- /dev/null +++ b/dist/models/V1ItemSfboAttribute.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метка Super-товара: + * - `ITEM_SFBO_ATTRIBUTE_NONE` — без метки; + * - `ITEM_SFBO_ATTRIBUTE_SUPER_FBO` — Super-товар; + * - `ITEM_SFBO_ATTRIBUTE_ANTI_FBO` — неходовой товар. + * + * @export + */ +export declare const V1ItemSfboAttribute: { + readonly NONE: "ITEM_SFBO_ATTRIBUTE_NONE"; + readonly SUPER_FBO: "ITEM_SFBO_ATTRIBUTE_SUPER_FBO"; + readonly ANTI_FBO: "ITEM_SFBO_ATTRIBUTE_ANTI_FBO"; +}; +export type V1ItemSfboAttribute = typeof V1ItemSfboAttribute[keyof typeof V1ItemSfboAttribute]; +export declare function instanceOfV1ItemSfboAttribute(value: any): boolean; +export declare function V1ItemSfboAttributeFromJSON(json: any): V1ItemSfboAttribute; +export declare function V1ItemSfboAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemSfboAttribute; +export declare function V1ItemSfboAttributeToJSON(value?: V1ItemSfboAttribute | null): any; diff --git a/dist/models/V1ItemSfboAttribute.js b/dist/models/V1ItemSfboAttribute.js new file mode 100644 index 0000000..74e22ff --- /dev/null +++ b/dist/models/V1ItemSfboAttribute.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1ItemSfboAttribute = void 0; +exports.instanceOfV1ItemSfboAttribute = instanceOfV1ItemSfboAttribute; +exports.V1ItemSfboAttributeFromJSON = V1ItemSfboAttributeFromJSON; +exports.V1ItemSfboAttributeFromJSONTyped = V1ItemSfboAttributeFromJSONTyped; +exports.V1ItemSfboAttributeToJSON = V1ItemSfboAttributeToJSON; +/** + * Метка Super-товара: + * - `ITEM_SFBO_ATTRIBUTE_NONE` — без метки; + * - `ITEM_SFBO_ATTRIBUTE_SUPER_FBO` — Super-товар; + * - `ITEM_SFBO_ATTRIBUTE_ANTI_FBO` — неходовой товар. + * + * @export + */ +exports.V1ItemSfboAttribute = { + NONE: 'ITEM_SFBO_ATTRIBUTE_NONE', + SUPER_FBO: 'ITEM_SFBO_ATTRIBUTE_SUPER_FBO', + ANTI_FBO: 'ITEM_SFBO_ATTRIBUTE_ANTI_FBO' +}; +function instanceOfV1ItemSfboAttribute(value) { + for (const key in exports.V1ItemSfboAttribute) { + if (Object.prototype.hasOwnProperty.call(exports.V1ItemSfboAttribute, key)) { + if (exports.V1ItemSfboAttribute[key] === value) { + return true; + } + } + } + return false; +} +function V1ItemSfboAttributeFromJSON(json) { + return V1ItemSfboAttributeFromJSONTyped(json, false); +} +function V1ItemSfboAttributeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1ItemSfboAttributeToJSON(value) { + return value; +} diff --git a/dist/models/V1ItemSortField.d.ts b/dist/models/V1ItemSortField.d.ts new file mode 100644 index 0000000..9be8dc1 --- /dev/null +++ b/dist/models/V1ItemSortField.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Сортировка по параметрам: + * - `SKU` — SKU; + * - `NAME` — названию товара; + * - `QUANTITY` — количеству; + * - `TOTAL_VOLUME_IN_LITRES` — объёму в литрах. + * + * @export + */ +export declare const V1ItemSortField: { + readonly SKU: "SKU"; + readonly NAME: "NAME"; + readonly QUANTITY: "QUANTITY"; + readonly TOTAL_VOLUME_IN_LITRES: "TOTAL_VOLUME_IN_LITRES"; +}; +export type V1ItemSortField = typeof V1ItemSortField[keyof typeof V1ItemSortField]; +export declare function instanceOfV1ItemSortField(value: any): boolean; +export declare function V1ItemSortFieldFromJSON(json: any): V1ItemSortField; +export declare function V1ItemSortFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ItemSortField; +export declare function V1ItemSortFieldToJSON(value?: V1ItemSortField | null): any; diff --git a/dist/models/V1ItemSortField.js b/dist/models/V1ItemSortField.js new file mode 100644 index 0000000..4ad3432 --- /dev/null +++ b/dist/models/V1ItemSortField.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1ItemSortField = void 0; +exports.instanceOfV1ItemSortField = instanceOfV1ItemSortField; +exports.V1ItemSortFieldFromJSON = V1ItemSortFieldFromJSON; +exports.V1ItemSortFieldFromJSONTyped = V1ItemSortFieldFromJSONTyped; +exports.V1ItemSortFieldToJSON = V1ItemSortFieldToJSON; +/** + * Сортировка по параметрам: + * - `SKU` — SKU; + * - `NAME` — названию товара; + * - `QUANTITY` — количеству; + * - `TOTAL_VOLUME_IN_LITRES` — объёму в литрах. + * + * @export + */ +exports.V1ItemSortField = { + SKU: 'SKU', + NAME: 'NAME', + QUANTITY: 'QUANTITY', + TOTAL_VOLUME_IN_LITRES: 'TOTAL_VOLUME_IN_LITRES' +}; +function instanceOfV1ItemSortField(value) { + for (const key in exports.V1ItemSortField) { + if (Object.prototype.hasOwnProperty.call(exports.V1ItemSortField, key)) { + if (exports.V1ItemSortField[key] === value) { + return true; + } + } + } + return false; +} +function V1ItemSortFieldFromJSON(json) { + return V1ItemSortFieldFromJSONTyped(json, false); +} +function V1ItemSortFieldFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1ItemSortFieldToJSON(value) { + return value; +} diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.d.ts b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.d.ts new file mode 100644 index 0000000..487f577 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates } from './V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates'; +import type { ListDropOffPointsForCreateFBSWarehouseRequestSearch } from './ListDropOffPointsForCreateFBSWarehouseRequestSearch'; +/** + * + * @export + * @interface V1ListDropOffPointsForCreateFBSWarehouseRequest + */ +export interface V1ListDropOffPointsForCreateFBSWarehouseRequest { + /** + * + * @type {V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequest + */ + coordinates?: V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; + /** + * Код страны в формате ISO 2. + * + * @type {string} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequest + */ + country_code: string; + /** + * `true`, если товар крупногабаритный. + * + * @type {boolean} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequest + */ + is_kgt: boolean; + /** + * + * @type {ListDropOffPointsForCreateFBSWarehouseRequestSearch} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequest + */ + search?: ListDropOffPointsForCreateFBSWarehouseRequestSearch; +} +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseRequest interface. + */ +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequest(value: object): value is V1ListDropOffPointsForCreateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseRequest | null): any; diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.js b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.js new file mode 100644 index 0000000..c4d5e2c --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequest = instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequest; +exports.V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSON = V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSON; +exports.V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSONTyped = V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSONTyped; +exports.V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON = V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON; +const V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates_1 = require("./V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates"); +const ListDropOffPointsForCreateFBSWarehouseRequestSearch_1 = require("./ListDropOffPointsForCreateFBSWarehouseRequestSearch"); +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseRequest interface. + */ +function instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequest(value) { + if (!('country_code' in value) || value['country_code'] === undefined) + return false; + if (!('is_kgt' in value) || value['is_kgt'] === undefined) + return false; + return true; +} +function V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSONTyped(json, false); +} +function V1ListDropOffPointsForCreateFBSWarehouseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'] == null ? undefined : (0, V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates_1.V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON)(json['coordinates']), + 'country_code': json['country_code'], + 'is_kgt': json['is_kgt'], + 'search': json['search'] == null ? undefined : (0, ListDropOffPointsForCreateFBSWarehouseRequestSearch_1.ListDropOffPointsForCreateFBSWarehouseRequestSearchFromJSON)(json['search']), + }; +} +function V1ListDropOffPointsForCreateFBSWarehouseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': (0, V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates_1.V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON)(value['coordinates']), + 'country_code': value['country_code'], + 'is_kgt': value['is_kgt'], + 'search': (0, ListDropOffPointsForCreateFBSWarehouseRequestSearch_1.ListDropOffPointsForCreateFBSWarehouseRequestSearchToJSON)(value['search']), + }; +} diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.d.ts b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.d.ts new file mode 100644 index 0000000..0897a2e --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates + */ +export interface V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates interface. + */ +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates(value: object): value is V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates | null): any; diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.js b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.js new file mode 100644 index 0000000..35dc74b --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates = instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates; +exports.V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON = V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON; +exports.V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSONTyped = V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSONTyped; +exports.V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON = V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON; +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates interface. + */ +function instanceOfV1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSONTyped(json, false); +} +function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +function V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.d.ts b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.d.ts new file mode 100644 index 0000000..0fad4ec --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint } from './ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint'; +/** + * + * @export + * @interface V1ListDropOffPointsForCreateFBSWarehouseResponse + */ +export interface V1ListDropOffPointsForCreateFBSWarehouseResponse { + /** + * Список пунктов. + * @type {Array} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseResponse interface. + */ +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponse(value: object): value is V1ListDropOffPointsForCreateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseResponse | null): any; diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.js b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.js new file mode 100644 index 0000000..9159ff5 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponse = instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponse; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON = V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSONTyped = V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSONTyped; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseToJSON = V1ListDropOffPointsForCreateFBSWarehouseResponseToJSON; +const ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint_1 = require("./ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint"); +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseResponse interface. + */ +function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponse(value) { + return true; +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSONTyped(json, false); +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'] == null ? undefined : (json['points'].map(ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint_1.ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointFromJSON)), + }; +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'points': value['points'] == null ? undefined : (value['points'].map(ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint_1.ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointToJSON)), + }; +} diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.d.ts b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.d.ts new file mode 100644 index 0000000..9cb8b61 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты drop-off пункта. + * @export + * @interface V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates + */ +export interface V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates interface. + */ +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates(value: object): value is V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates | null): any; diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.js b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.js new file mode 100644 index 0000000..91475a5 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates = instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON = V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSONTyped = V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSONTyped; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON = V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON; +/** + * Check if a given object implements the V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates interface. + */ +function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates(value) { + return true; +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSONTyped(json, false); +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.d.ts b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.d.ts new file mode 100644 index 0000000..eab4ee5 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum = typeof V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum[keyof typeof V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum]; +export declare function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum(value: any): boolean; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON(json: any): V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum; +export declare function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON(value?: V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum | null): any; diff --git a/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.js b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.js new file mode 100644 index 0000000..03f25d1 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum = void 0; +exports.instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum = instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON = V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSONTyped = V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSONTyped; +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON = V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON; +/** + * Тип drop-off пункта: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +exports.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfV1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum(value) { + for (const key in exports.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum, key)) { + if (exports.V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSON(json) { + return V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSONTyped(json, false); +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.d.ts b/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.d.ts new file mode 100644 index 0000000..da03634 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForUpdateFBSWarehouseRequestSearch } from './ListDropOffPointsForUpdateFBSWarehouseRequestSearch'; +/** + * + * @export + * @interface V1ListDropOffPointsForUpdateFBSWarehouseRequest + */ +export interface V1ListDropOffPointsForUpdateFBSWarehouseRequest { + /** + * + * @type {ListDropOffPointsForUpdateFBSWarehouseRequestSearch} + * @memberof V1ListDropOffPointsForUpdateFBSWarehouseRequest + */ + search?: ListDropOffPointsForUpdateFBSWarehouseRequestSearch; + /** + * Фильтр по существующему FBS-складу. + * @type {number} + * @memberof V1ListDropOffPointsForUpdateFBSWarehouseRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1ListDropOffPointsForUpdateFBSWarehouseRequest interface. + */ +export declare function instanceOfV1ListDropOffPointsForUpdateFBSWarehouseRequest(value: object): value is V1ListDropOffPointsForUpdateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSON(json: any): V1ListDropOffPointsForUpdateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForUpdateFBSWarehouseRequest; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON(value?: V1ListDropOffPointsForUpdateFBSWarehouseRequest | null): any; diff --git a/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.js b/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.js new file mode 100644 index 0000000..e00a261 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseRequest.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListDropOffPointsForUpdateFBSWarehouseRequest = instanceOfV1ListDropOffPointsForUpdateFBSWarehouseRequest; +exports.V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSON = V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSON; +exports.V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSONTyped = V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSONTyped; +exports.V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON = V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON; +const ListDropOffPointsForUpdateFBSWarehouseRequestSearch_1 = require("./ListDropOffPointsForUpdateFBSWarehouseRequestSearch"); +/** + * Check if a given object implements the V1ListDropOffPointsForUpdateFBSWarehouseRequest interface. + */ +function instanceOfV1ListDropOffPointsForUpdateFBSWarehouseRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSON(json) { + return V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSONTyped(json, false); +} +function V1ListDropOffPointsForUpdateFBSWarehouseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'search': json['search'] == null ? undefined : (0, ListDropOffPointsForUpdateFBSWarehouseRequestSearch_1.ListDropOffPointsForUpdateFBSWarehouseRequestSearchFromJSON)(json['search']), + 'warehouse_id': json['warehouse_id'], + }; +} +function V1ListDropOffPointsForUpdateFBSWarehouseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'search': (0, ListDropOffPointsForUpdateFBSWarehouseRequestSearch_1.ListDropOffPointsForUpdateFBSWarehouseRequestSearchToJSON)(value['search']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.d.ts b/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.d.ts new file mode 100644 index 0000000..4808850 --- /dev/null +++ b/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint } from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint'; +/** + * + * @export + * @interface V1ListDropOffPointsForUpdateFBSWarehouseResponse + */ +export interface V1ListDropOffPointsForUpdateFBSWarehouseResponse { + /** + * Список пунктов. + * @type {Array} + * @memberof V1ListDropOffPointsForUpdateFBSWarehouseResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1ListDropOffPointsForUpdateFBSWarehouseResponse interface. + */ +export declare function instanceOfV1ListDropOffPointsForUpdateFBSWarehouseResponse(value: object): value is V1ListDropOffPointsForUpdateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON(json: any): V1ListDropOffPointsForUpdateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListDropOffPointsForUpdateFBSWarehouseResponse; +export declare function V1ListDropOffPointsForUpdateFBSWarehouseResponseToJSON(value?: V1ListDropOffPointsForUpdateFBSWarehouseResponse | null): any; diff --git a/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.js b/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.js new file mode 100644 index 0000000..7b0a78a --- /dev/null +++ b/dist/models/V1ListDropOffPointsForUpdateFBSWarehouseResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListDropOffPointsForUpdateFBSWarehouseResponse = instanceOfV1ListDropOffPointsForUpdateFBSWarehouseResponse; +exports.V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON = V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON; +exports.V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSONTyped = V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSONTyped; +exports.V1ListDropOffPointsForUpdateFBSWarehouseResponseToJSON = V1ListDropOffPointsForUpdateFBSWarehouseResponseToJSON; +const ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint_1 = require("./ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint"); +/** + * Check if a given object implements the V1ListDropOffPointsForUpdateFBSWarehouseResponse interface. + */ +function instanceOfV1ListDropOffPointsForUpdateFBSWarehouseResponse(value) { + return true; +} +function V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSON(json) { + return V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSONTyped(json, false); +} +function V1ListDropOffPointsForUpdateFBSWarehouseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'] == null ? undefined : (json['points'].map(ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint_1.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointFromJSON)), + }; +} +function V1ListDropOffPointsForUpdateFBSWarehouseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'points': value['points'] == null ? undefined : (value['points'].map(ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint_1.ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointToJSON)), + }; +} diff --git a/dist/models/V1ListFBSRatingIndexPostingsV1Request.d.ts b/dist/models/V1ListFBSRatingIndexPostingsV1Request.d.ts new file mode 100644 index 0000000..4735ead --- /dev/null +++ b/dist/models/V1ListFBSRatingIndexPostingsV1Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListFBSRatingIndexPostingsV1RequestFilter } from './ListFBSRatingIndexPostingsV1RequestFilter'; +/** + * + * @export + * @interface V1ListFBSRatingIndexPostingsV1Request + */ +export interface V1ListFBSRatingIndexPostingsV1Request { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ListFBSRatingIndexPostingsV1Request + */ + cursor?: string; + /** + * + * @type {ListFBSRatingIndexPostingsV1RequestFilter} + * @memberof V1ListFBSRatingIndexPostingsV1Request + */ + filter: ListFBSRatingIndexPostingsV1RequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1ListFBSRatingIndexPostingsV1Request + */ + limit: number; +} +/** + * Check if a given object implements the V1ListFBSRatingIndexPostingsV1Request interface. + */ +export declare function instanceOfV1ListFBSRatingIndexPostingsV1Request(value: object): value is V1ListFBSRatingIndexPostingsV1Request; +export declare function V1ListFBSRatingIndexPostingsV1RequestFromJSON(json: any): V1ListFBSRatingIndexPostingsV1Request; +export declare function V1ListFBSRatingIndexPostingsV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListFBSRatingIndexPostingsV1Request; +export declare function V1ListFBSRatingIndexPostingsV1RequestToJSON(value?: V1ListFBSRatingIndexPostingsV1Request | null): any; diff --git a/dist/models/V1ListFBSRatingIndexPostingsV1Request.js b/dist/models/V1ListFBSRatingIndexPostingsV1Request.js new file mode 100644 index 0000000..49f81ec --- /dev/null +++ b/dist/models/V1ListFBSRatingIndexPostingsV1Request.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListFBSRatingIndexPostingsV1Request = instanceOfV1ListFBSRatingIndexPostingsV1Request; +exports.V1ListFBSRatingIndexPostingsV1RequestFromJSON = V1ListFBSRatingIndexPostingsV1RequestFromJSON; +exports.V1ListFBSRatingIndexPostingsV1RequestFromJSONTyped = V1ListFBSRatingIndexPostingsV1RequestFromJSONTyped; +exports.V1ListFBSRatingIndexPostingsV1RequestToJSON = V1ListFBSRatingIndexPostingsV1RequestToJSON; +const ListFBSRatingIndexPostingsV1RequestFilter_1 = require("./ListFBSRatingIndexPostingsV1RequestFilter"); +/** + * Check if a given object implements the V1ListFBSRatingIndexPostingsV1Request interface. + */ +function instanceOfV1ListFBSRatingIndexPostingsV1Request(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1ListFBSRatingIndexPostingsV1RequestFromJSON(json) { + return V1ListFBSRatingIndexPostingsV1RequestFromJSONTyped(json, false); +} +function V1ListFBSRatingIndexPostingsV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': (0, ListFBSRatingIndexPostingsV1RequestFilter_1.ListFBSRatingIndexPostingsV1RequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function V1ListFBSRatingIndexPostingsV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, ListFBSRatingIndexPostingsV1RequestFilter_1.ListFBSRatingIndexPostingsV1RequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1ListFBSRatingIndexPostingsV1Response.d.ts b/dist/models/V1ListFBSRatingIndexPostingsV1Response.d.ts new file mode 100644 index 0000000..37ba1da --- /dev/null +++ b/dist/models/V1ListFBSRatingIndexPostingsV1Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListFBSRatingIndexPostingsV1ResponseError } from './ListFBSRatingIndexPostingsV1ResponseError'; +/** + * + * @export + * @interface V1ListFBSRatingIndexPostingsV1Response + */ +export interface V1ListFBSRatingIndexPostingsV1Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ListFBSRatingIndexPostingsV1Response + */ + cursor?: string; + /** + * Отправления, которые повлияли на индекс. + * @type {Array} + * @memberof V1ListFBSRatingIndexPostingsV1Response + */ + errors?: Array; + /** + * `true`, если в ответе вернулись не все отправления. + * + * @type {boolean} + * @memberof V1ListFBSRatingIndexPostingsV1Response + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V1ListFBSRatingIndexPostingsV1Response interface. + */ +export declare function instanceOfV1ListFBSRatingIndexPostingsV1Response(value: object): value is V1ListFBSRatingIndexPostingsV1Response; +export declare function V1ListFBSRatingIndexPostingsV1ResponseFromJSON(json: any): V1ListFBSRatingIndexPostingsV1Response; +export declare function V1ListFBSRatingIndexPostingsV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListFBSRatingIndexPostingsV1Response; +export declare function V1ListFBSRatingIndexPostingsV1ResponseToJSON(value?: V1ListFBSRatingIndexPostingsV1Response | null): any; diff --git a/dist/models/V1ListFBSRatingIndexPostingsV1Response.js b/dist/models/V1ListFBSRatingIndexPostingsV1Response.js new file mode 100644 index 0000000..b691a47 --- /dev/null +++ b/dist/models/V1ListFBSRatingIndexPostingsV1Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListFBSRatingIndexPostingsV1Response = instanceOfV1ListFBSRatingIndexPostingsV1Response; +exports.V1ListFBSRatingIndexPostingsV1ResponseFromJSON = V1ListFBSRatingIndexPostingsV1ResponseFromJSON; +exports.V1ListFBSRatingIndexPostingsV1ResponseFromJSONTyped = V1ListFBSRatingIndexPostingsV1ResponseFromJSONTyped; +exports.V1ListFBSRatingIndexPostingsV1ResponseToJSON = V1ListFBSRatingIndexPostingsV1ResponseToJSON; +const ListFBSRatingIndexPostingsV1ResponseError_1 = require("./ListFBSRatingIndexPostingsV1ResponseError"); +/** + * Check if a given object implements the V1ListFBSRatingIndexPostingsV1Response interface. + */ +function instanceOfV1ListFBSRatingIndexPostingsV1Response(value) { + return true; +} +function V1ListFBSRatingIndexPostingsV1ResponseFromJSON(json) { + return V1ListFBSRatingIndexPostingsV1ResponseFromJSONTyped(json, false); +} +function V1ListFBSRatingIndexPostingsV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(ListFBSRatingIndexPostingsV1ResponseError_1.ListFBSRatingIndexPostingsV1ResponseErrorFromJSON)), + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +function V1ListFBSRatingIndexPostingsV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(ListFBSRatingIndexPostingsV1ResponseError_1.ListFBSRatingIndexPostingsV1ResponseErrorToJSON)), + 'has_next': value['has_next'], + }; +} diff --git a/dist/models/V1ListPostingCodesRequest.d.ts b/dist/models/V1ListPostingCodesRequest.d.ts new file mode 100644 index 0000000..2c04004 --- /dev/null +++ b/dist/models/V1ListPostingCodesRequest.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DirEnum } from './DirEnum'; +import type { ListPostingCodesRequestFilter } from './ListPostingCodesRequestFilter'; +import type { ListPostingCodesRequestWithParams } from './ListPostingCodesRequestWithParams'; +/** + * + * @export + * @interface V1ListPostingCodesRequest + */ +export interface V1ListPostingCodesRequest { + /** + * + * @type {DirEnum} + * @memberof V1ListPostingCodesRequest + */ + dir?: DirEnum; + /** + * + * @type {ListPostingCodesRequestFilter} + * @memberof V1ListPostingCodesRequest + */ + filter?: ListPostingCodesRequestFilter; + /** + * Количество значений в ответе: + * - максимум — 1000, + * - минимум — 1. + * + * @type {number} + * @memberof V1ListPostingCodesRequest + */ + limit?: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. Максимальное значение — 20000. + * @type {number} + * @memberof V1ListPostingCodesRequest + */ + offset?: number; + /** + * + * @type {ListPostingCodesRequestWithParams} + * @memberof V1ListPostingCodesRequest + */ + _with?: ListPostingCodesRequestWithParams; +} +/** + * Check if a given object implements the V1ListPostingCodesRequest interface. + */ +export declare function instanceOfV1ListPostingCodesRequest(value: object): value is V1ListPostingCodesRequest; +export declare function V1ListPostingCodesRequestFromJSON(json: any): V1ListPostingCodesRequest; +export declare function V1ListPostingCodesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListPostingCodesRequest; +export declare function V1ListPostingCodesRequestToJSON(value?: V1ListPostingCodesRequest | null): any; diff --git a/dist/models/V1ListPostingCodesRequest.js b/dist/models/V1ListPostingCodesRequest.js new file mode 100644 index 0000000..f648593 --- /dev/null +++ b/dist/models/V1ListPostingCodesRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListPostingCodesRequest = instanceOfV1ListPostingCodesRequest; +exports.V1ListPostingCodesRequestFromJSON = V1ListPostingCodesRequestFromJSON; +exports.V1ListPostingCodesRequestFromJSONTyped = V1ListPostingCodesRequestFromJSONTyped; +exports.V1ListPostingCodesRequestToJSON = V1ListPostingCodesRequestToJSON; +const DirEnum_1 = require("./DirEnum"); +const ListPostingCodesRequestFilter_1 = require("./ListPostingCodesRequestFilter"); +const ListPostingCodesRequestWithParams_1 = require("./ListPostingCodesRequestWithParams"); +/** + * Check if a given object implements the V1ListPostingCodesRequest interface. + */ +function instanceOfV1ListPostingCodesRequest(value) { + return true; +} +function V1ListPostingCodesRequestFromJSON(json) { + return V1ListPostingCodesRequestFromJSONTyped(json, false); +} +function V1ListPostingCodesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dir': json['dir'] == null ? undefined : (0, DirEnum_1.DirEnumFromJSON)(json['dir']), + 'filter': json['filter'] == null ? undefined : (0, ListPostingCodesRequestFilter_1.ListPostingCodesRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'] == null ? undefined : json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + '_with': json['with'] == null ? undefined : (0, ListPostingCodesRequestWithParams_1.ListPostingCodesRequestWithParamsFromJSON)(json['with']), + }; +} +function V1ListPostingCodesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'dir': (0, DirEnum_1.DirEnumToJSON)(value['dir']), + 'filter': (0, ListPostingCodesRequestFilter_1.ListPostingCodesRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + 'with': (0, ListPostingCodesRequestWithParams_1.ListPostingCodesRequestWithParamsToJSON)(value['_with']), + }; +} diff --git a/dist/models/V1ListPostingCodesResponse.d.ts b/dist/models/V1ListPostingCodesResponse.d.ts new file mode 100644 index 0000000..117bbc1 --- /dev/null +++ b/dist/models/V1ListPostingCodesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ListPostingCodesResponsePosting } from './ListPostingCodesResponsePosting'; +/** + * + * @export + * @interface V1ListPostingCodesResponse + */ +export interface V1ListPostingCodesResponse { + /** + * Список отправлений. + * @type {Array} + * @memberof V1ListPostingCodesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ListPostingCodesResponse interface. + */ +export declare function instanceOfV1ListPostingCodesResponse(value: object): value is V1ListPostingCodesResponse; +export declare function V1ListPostingCodesResponseFromJSON(json: any): V1ListPostingCodesResponse; +export declare function V1ListPostingCodesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ListPostingCodesResponse; +export declare function V1ListPostingCodesResponseToJSON(value?: V1ListPostingCodesResponse | null): any; diff --git a/dist/models/V1ListPostingCodesResponse.js b/dist/models/V1ListPostingCodesResponse.js new file mode 100644 index 0000000..fcb78cb --- /dev/null +++ b/dist/models/V1ListPostingCodesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ListPostingCodesResponse = instanceOfV1ListPostingCodesResponse; +exports.V1ListPostingCodesResponseFromJSON = V1ListPostingCodesResponseFromJSON; +exports.V1ListPostingCodesResponseFromJSONTyped = V1ListPostingCodesResponseFromJSONTyped; +exports.V1ListPostingCodesResponseToJSON = V1ListPostingCodesResponseToJSON; +const ListPostingCodesResponsePosting_1 = require("./ListPostingCodesResponsePosting"); +/** + * Check if a given object implements the V1ListPostingCodesResponse interface. + */ +function instanceOfV1ListPostingCodesResponse(value) { + return true; +} +function V1ListPostingCodesResponseFromJSON(json) { + return V1ListPostingCodesResponseFromJSONTyped(json, false); +} +function V1ListPostingCodesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ListPostingCodesResponsePosting_1.ListPostingCodesResponsePostingFromJSON)), + }; +} +function V1ListPostingCodesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ListPostingCodesResponsePosting_1.ListPostingCodesResponsePostingToJSON)), + }; +} diff --git a/dist/models/V1Money.d.ts b/dist/models/V1Money.d.ts new file mode 100644 index 0000000..60cd315 --- /dev/null +++ b/dist/models/V1Money.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ограничение по цене. + * @export + * @interface V1Money + */ +export interface V1Money { + /** + * Валюта. + * @type {string} + * @memberof V1Money + */ + currency?: string; + /** + * Значение цены. + * @type {number} + * @memberof V1Money + */ + value?: number; +} +/** + * Check if a given object implements the V1Money interface. + */ +export declare function instanceOfV1Money(value: object): value is V1Money; +export declare function V1MoneyFromJSON(json: any): V1Money; +export declare function V1MoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Money; +export declare function V1MoneyToJSON(value?: V1Money | null): any; diff --git a/dist/models/V1Money.js b/dist/models/V1Money.js new file mode 100644 index 0000000..45b79a4 --- /dev/null +++ b/dist/models/V1Money.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1Money = instanceOfV1Money; +exports.V1MoneyFromJSON = V1MoneyFromJSON; +exports.V1MoneyFromJSONTyped = V1MoneyFromJSONTyped; +exports.V1MoneyToJSON = V1MoneyToJSON; +/** + * Check if a given object implements the V1Money interface. + */ +function instanceOfV1Money(value) { + return true; +} +function V1MoneyFromJSON(json) { + return V1MoneyFromJSONTyped(json, false); +} +function V1MoneyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency': json['currency'] == null ? undefined : json['currency'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1MoneyToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency': value['currency'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1OrderAttentionTypeEnum.d.ts b/dist/models/V1OrderAttentionTypeEnum.d.ts new file mode 100644 index 0000000..5ab342a --- /dev/null +++ b/dist/models/V1OrderAttentionTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1OrderAttentionTypeEnum: { + readonly ORDER_ATTENTION_TYPE_UNSPECIFIED: "ORDER_ATTENTION_TYPE_UNSPECIFIED"; + readonly OLD: "OLD"; + readonly TIME_SLOT_EXPIRED: "TIME_SLOT_EXPIRED"; +}; +export type V1OrderAttentionTypeEnum = typeof V1OrderAttentionTypeEnum[keyof typeof V1OrderAttentionTypeEnum]; +export declare function instanceOfV1OrderAttentionTypeEnum(value: any): boolean; +export declare function V1OrderAttentionTypeEnumFromJSON(json: any): V1OrderAttentionTypeEnum; +export declare function V1OrderAttentionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderAttentionTypeEnum; +export declare function V1OrderAttentionTypeEnumToJSON(value?: V1OrderAttentionTypeEnum | null): any; diff --git a/dist/models/V1OrderAttentionTypeEnum.js b/dist/models/V1OrderAttentionTypeEnum.js new file mode 100644 index 0000000..a166748 --- /dev/null +++ b/dist/models/V1OrderAttentionTypeEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1OrderAttentionTypeEnum = void 0; +exports.instanceOfV1OrderAttentionTypeEnum = instanceOfV1OrderAttentionTypeEnum; +exports.V1OrderAttentionTypeEnumFromJSON = V1OrderAttentionTypeEnumFromJSON; +exports.V1OrderAttentionTypeEnumFromJSONTyped = V1OrderAttentionTypeEnumFromJSONTyped; +exports.V1OrderAttentionTypeEnumToJSON = V1OrderAttentionTypeEnumToJSON; +/** + * + * @export + */ +exports.V1OrderAttentionTypeEnum = { + ORDER_ATTENTION_TYPE_UNSPECIFIED: 'ORDER_ATTENTION_TYPE_UNSPECIFIED', + OLD: 'OLD', + TIME_SLOT_EXPIRED: 'TIME_SLOT_EXPIRED' +}; +function instanceOfV1OrderAttentionTypeEnum(value) { + for (const key in exports.V1OrderAttentionTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1OrderAttentionTypeEnum, key)) { + if (exports.V1OrderAttentionTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1OrderAttentionTypeEnumFromJSON(json) { + return V1OrderAttentionTypeEnumFromJSONTyped(json, false); +} +function V1OrderAttentionTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1OrderAttentionTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1OrderCancelCheckRequest.d.ts b/dist/models/V1OrderCancelCheckRequest.d.ts new file mode 100644 index 0000000..af00bb9 --- /dev/null +++ b/dist/models/V1OrderCancelCheckRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelCheckRequest + */ +export interface V1OrderCancelCheckRequest { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelCheckRequest + */ + order_number: string; +} +/** + * Check if a given object implements the V1OrderCancelCheckRequest interface. + */ +export declare function instanceOfV1OrderCancelCheckRequest(value: object): value is V1OrderCancelCheckRequest; +export declare function V1OrderCancelCheckRequestFromJSON(json: any): V1OrderCancelCheckRequest; +export declare function V1OrderCancelCheckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelCheckRequest; +export declare function V1OrderCancelCheckRequestToJSON(value?: V1OrderCancelCheckRequest | null): any; diff --git a/dist/models/V1OrderCancelCheckRequest.js b/dist/models/V1OrderCancelCheckRequest.js new file mode 100644 index 0000000..69cec22 --- /dev/null +++ b/dist/models/V1OrderCancelCheckRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderCancelCheckRequest = instanceOfV1OrderCancelCheckRequest; +exports.V1OrderCancelCheckRequestFromJSON = V1OrderCancelCheckRequestFromJSON; +exports.V1OrderCancelCheckRequestFromJSONTyped = V1OrderCancelCheckRequestFromJSONTyped; +exports.V1OrderCancelCheckRequestToJSON = V1OrderCancelCheckRequestToJSON; +/** + * Check if a given object implements the V1OrderCancelCheckRequest interface. + */ +function instanceOfV1OrderCancelCheckRequest(value) { + if (!('order_number' in value) || value['order_number'] === undefined) + return false; + return true; +} +function V1OrderCancelCheckRequestFromJSON(json) { + return V1OrderCancelCheckRequestFromJSONTyped(json, false); +} +function V1OrderCancelCheckRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'], + }; +} +function V1OrderCancelCheckRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + }; +} diff --git a/dist/models/V1OrderCancelCheckResponse.d.ts b/dist/models/V1OrderCancelCheckResponse.d.ts new file mode 100644 index 0000000..5a6557c --- /dev/null +++ b/dist/models/V1OrderCancelCheckResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderCancelCheckResponsePostingGroup } from './OrderCancelCheckResponsePostingGroup'; +import type { OrderCancelCheckResponsePosting } from './OrderCancelCheckResponsePosting'; +/** + * + * @export + * @interface V1OrderCancelCheckResponse + */ +export interface V1OrderCancelCheckResponse { + /** + * `true`, если заказ можно отменить. + * + * @type {boolean} + * @memberof V1OrderCancelCheckResponse + */ + cancellable?: boolean; + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelCheckResponse + */ + order_number?: string; + /** + * Группы отправлений. + * @type {Array} + * @memberof V1OrderCancelCheckResponse + */ + posting_groups?: Array; + /** + * Информация о возможности отмены отправлений. + * @type {Array} + * @memberof V1OrderCancelCheckResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1OrderCancelCheckResponse interface. + */ +export declare function instanceOfV1OrderCancelCheckResponse(value: object): value is V1OrderCancelCheckResponse; +export declare function V1OrderCancelCheckResponseFromJSON(json: any): V1OrderCancelCheckResponse; +export declare function V1OrderCancelCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelCheckResponse; +export declare function V1OrderCancelCheckResponseToJSON(value?: V1OrderCancelCheckResponse | null): any; diff --git a/dist/models/V1OrderCancelCheckResponse.js b/dist/models/V1OrderCancelCheckResponse.js new file mode 100644 index 0000000..fc04cdb --- /dev/null +++ b/dist/models/V1OrderCancelCheckResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderCancelCheckResponse = instanceOfV1OrderCancelCheckResponse; +exports.V1OrderCancelCheckResponseFromJSON = V1OrderCancelCheckResponseFromJSON; +exports.V1OrderCancelCheckResponseFromJSONTyped = V1OrderCancelCheckResponseFromJSONTyped; +exports.V1OrderCancelCheckResponseToJSON = V1OrderCancelCheckResponseToJSON; +const OrderCancelCheckResponsePostingGroup_1 = require("./OrderCancelCheckResponsePostingGroup"); +const OrderCancelCheckResponsePosting_1 = require("./OrderCancelCheckResponsePosting"); +/** + * Check if a given object implements the V1OrderCancelCheckResponse interface. + */ +function instanceOfV1OrderCancelCheckResponse(value) { + return true; +} +function V1OrderCancelCheckResponseFromJSON(json) { + return V1OrderCancelCheckResponseFromJSONTyped(json, false); +} +function V1OrderCancelCheckResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellable': json['cancellable'] == null ? undefined : json['cancellable'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_groups': json['posting_groups'] == null ? undefined : (json['posting_groups'].map(OrderCancelCheckResponsePostingGroup_1.OrderCancelCheckResponsePostingGroupFromJSON)), + 'postings': json['postings'] == null ? undefined : (json['postings'].map(OrderCancelCheckResponsePosting_1.OrderCancelCheckResponsePostingFromJSON)), + }; +} +function V1OrderCancelCheckResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellable': value['cancellable'], + 'order_number': value['order_number'], + 'posting_groups': value['posting_groups'] == null ? undefined : (value['posting_groups'].map(OrderCancelCheckResponsePostingGroup_1.OrderCancelCheckResponsePostingGroupToJSON)), + 'postings': value['postings'] == null ? undefined : (value['postings'].map(OrderCancelCheckResponsePosting_1.OrderCancelCheckResponsePostingToJSON)), + }; +} diff --git a/dist/models/V1OrderCancelRequest.d.ts b/dist/models/V1OrderCancelRequest.d.ts new file mode 100644 index 0000000..9d5ca45 --- /dev/null +++ b/dist/models/V1OrderCancelRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelRequest + */ +export interface V1OrderCancelRequest { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelRequest + */ + order_number: string; + /** + * Идентификатор причины отмены заказа. + * @type {number} + * @memberof V1OrderCancelRequest + */ + reason_id: number; + /** + * Причина отмены заказа. + * @type {string} + * @memberof V1OrderCancelRequest + */ + reason_message?: string; +} +/** + * Check if a given object implements the V1OrderCancelRequest interface. + */ +export declare function instanceOfV1OrderCancelRequest(value: object): value is V1OrderCancelRequest; +export declare function V1OrderCancelRequestFromJSON(json: any): V1OrderCancelRequest; +export declare function V1OrderCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelRequest; +export declare function V1OrderCancelRequestToJSON(value?: V1OrderCancelRequest | null): any; diff --git a/dist/models/V1OrderCancelRequest.js b/dist/models/V1OrderCancelRequest.js new file mode 100644 index 0000000..52a4953 --- /dev/null +++ b/dist/models/V1OrderCancelRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderCancelRequest = instanceOfV1OrderCancelRequest; +exports.V1OrderCancelRequestFromJSON = V1OrderCancelRequestFromJSON; +exports.V1OrderCancelRequestFromJSONTyped = V1OrderCancelRequestFromJSONTyped; +exports.V1OrderCancelRequestToJSON = V1OrderCancelRequestToJSON; +/** + * Check if a given object implements the V1OrderCancelRequest interface. + */ +function instanceOfV1OrderCancelRequest(value) { + if (!('order_number' in value) || value['order_number'] === undefined) + return false; + if (!('reason_id' in value) || value['reason_id'] === undefined) + return false; + return true; +} +function V1OrderCancelRequestFromJSON(json) { + return V1OrderCancelRequestFromJSONTyped(json, false); +} +function V1OrderCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'], + 'reason_id': json['reason_id'], + 'reason_message': json['reason_message'] == null ? undefined : json['reason_message'], + }; +} +function V1OrderCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'reason_id': value['reason_id'], + 'reason_message': value['reason_message'], + }; +} diff --git a/dist/models/V1OrderCancelResponse.d.ts b/dist/models/V1OrderCancelResponse.d.ts new file mode 100644 index 0000000..95cdb16 --- /dev/null +++ b/dist/models/V1OrderCancelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelResponse + */ +export interface V1OrderCancelResponse { + /** + * Статус обработки отмены. + * @type {string} + * @memberof V1OrderCancelResponse + */ + message?: string; +} +/** + * Check if a given object implements the V1OrderCancelResponse interface. + */ +export declare function instanceOfV1OrderCancelResponse(value: object): value is V1OrderCancelResponse; +export declare function V1OrderCancelResponseFromJSON(json: any): V1OrderCancelResponse; +export declare function V1OrderCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelResponse; +export declare function V1OrderCancelResponseToJSON(value?: V1OrderCancelResponse | null): any; diff --git a/dist/models/V1OrderCancelResponse.js b/dist/models/V1OrderCancelResponse.js new file mode 100644 index 0000000..fd76d75 --- /dev/null +++ b/dist/models/V1OrderCancelResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderCancelResponse = instanceOfV1OrderCancelResponse; +exports.V1OrderCancelResponseFromJSON = V1OrderCancelResponseFromJSON; +exports.V1OrderCancelResponseFromJSONTyped = V1OrderCancelResponseFromJSONTyped; +exports.V1OrderCancelResponseToJSON = V1OrderCancelResponseToJSON; +/** + * Check if a given object implements the V1OrderCancelResponse interface. + */ +function instanceOfV1OrderCancelResponse(value) { + return true; +} +function V1OrderCancelResponseFromJSON(json) { + return V1OrderCancelResponseFromJSONTyped(json, false); +} +function V1OrderCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function V1OrderCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + }; +} diff --git a/dist/models/V1OrderCancelStatusRequest.d.ts b/dist/models/V1OrderCancelStatusRequest.d.ts new file mode 100644 index 0000000..c1d04f5 --- /dev/null +++ b/dist/models/V1OrderCancelStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelStatusRequest + */ +export interface V1OrderCancelStatusRequest { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelStatusRequest + */ + order_number: string; +} +/** + * Check if a given object implements the V1OrderCancelStatusRequest interface. + */ +export declare function instanceOfV1OrderCancelStatusRequest(value: object): value is V1OrderCancelStatusRequest; +export declare function V1OrderCancelStatusRequestFromJSON(json: any): V1OrderCancelStatusRequest; +export declare function V1OrderCancelStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelStatusRequest; +export declare function V1OrderCancelStatusRequestToJSON(value?: V1OrderCancelStatusRequest | null): any; diff --git a/dist/models/V1OrderCancelStatusRequest.js b/dist/models/V1OrderCancelStatusRequest.js new file mode 100644 index 0000000..f201403 --- /dev/null +++ b/dist/models/V1OrderCancelStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderCancelStatusRequest = instanceOfV1OrderCancelStatusRequest; +exports.V1OrderCancelStatusRequestFromJSON = V1OrderCancelStatusRequestFromJSON; +exports.V1OrderCancelStatusRequestFromJSONTyped = V1OrderCancelStatusRequestFromJSONTyped; +exports.V1OrderCancelStatusRequestToJSON = V1OrderCancelStatusRequestToJSON; +/** + * Check if a given object implements the V1OrderCancelStatusRequest interface. + */ +function instanceOfV1OrderCancelStatusRequest(value) { + if (!('order_number' in value) || value['order_number'] === undefined) + return false; + return true; +} +function V1OrderCancelStatusRequestFromJSON(json) { + return V1OrderCancelStatusRequestFromJSONTyped(json, false); +} +function V1OrderCancelStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'], + }; +} +function V1OrderCancelStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + }; +} diff --git a/dist/models/V1OrderCancelStatusResponse.d.ts b/dist/models/V1OrderCancelStatusResponse.d.ts new file mode 100644 index 0000000..6093412 --- /dev/null +++ b/dist/models/V1OrderCancelStatusResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCancelStatusResponse + */ +export interface V1OrderCancelStatusResponse { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCancelStatusResponse + */ + order_number?: string; + /** + * Список отправлений в заказе. + * @type {Array} + * @memberof V1OrderCancelStatusResponse + */ + posting_number?: Array; + /** + * Статус отмены заказа: + * - `Подтверждена`, + * - `На подтверждении`, + * - `Отклонена`, + * - `Ожидает обработки`. + * + * @type {string} + * @memberof V1OrderCancelStatusResponse + */ + state?: string; +} +/** + * Check if a given object implements the V1OrderCancelStatusResponse interface. + */ +export declare function instanceOfV1OrderCancelStatusResponse(value: object): value is V1OrderCancelStatusResponse; +export declare function V1OrderCancelStatusResponseFromJSON(json: any): V1OrderCancelStatusResponse; +export declare function V1OrderCancelStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCancelStatusResponse; +export declare function V1OrderCancelStatusResponseToJSON(value?: V1OrderCancelStatusResponse | null): any; diff --git a/dist/models/V1OrderCancelStatusResponse.js b/dist/models/V1OrderCancelStatusResponse.js new file mode 100644 index 0000000..ad85da7 --- /dev/null +++ b/dist/models/V1OrderCancelStatusResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderCancelStatusResponse = instanceOfV1OrderCancelStatusResponse; +exports.V1OrderCancelStatusResponseFromJSON = V1OrderCancelStatusResponseFromJSON; +exports.V1OrderCancelStatusResponseFromJSONTyped = V1OrderCancelStatusResponseFromJSONTyped; +exports.V1OrderCancelStatusResponseToJSON = V1OrderCancelStatusResponseToJSON; +/** + * Check if a given object implements the V1OrderCancelStatusResponse interface. + */ +function instanceOfV1OrderCancelStatusResponse(value) { + return true; +} +function V1OrderCancelStatusResponseFromJSON(json) { + return V1OrderCancelStatusResponseFromJSONTyped(json, false); +} +function V1OrderCancelStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'state': json['state'] == null ? undefined : json['state'], + }; +} +function V1OrderCancelStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'state': value['state'], + }; +} diff --git a/dist/models/V1OrderCreateRequest.d.ts b/dist/models/V1OrderCreateRequest.d.ts new file mode 100644 index 0000000..d0c62bc --- /dev/null +++ b/dist/models/V1OrderCreateRequest.d.ts @@ -0,0 +1,60 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderCreateRequestSplit } from './OrderCreateRequestSplit'; +import type { OrderCreateRequestRecipient } from './OrderCreateRequestRecipient'; +import type { OrderCreateRequestBuyer } from './OrderCreateRequestBuyer'; +import type { OrderCreateRequestDelivery } from './OrderCreateRequestDelivery'; +import type { OrderCreateRequestV2DeliverySchemaEnum } from './OrderCreateRequestV2DeliverySchemaEnum'; +/** + * + * @export + * @interface V1OrderCreateRequest + */ +export interface V1OrderCreateRequest { + /** + * + * @type {OrderCreateRequestBuyer} + * @memberof V1OrderCreateRequest + */ + buyer: OrderCreateRequestBuyer; + /** + * + * @type {OrderCreateRequestDelivery} + * @memberof V1OrderCreateRequest + */ + delivery: OrderCreateRequestDelivery | null; + /** + * + * @type {OrderCreateRequestV2DeliverySchemaEnum} + * @memberof V1OrderCreateRequest + */ + delivery_schema: OrderCreateRequestV2DeliverySchemaEnum; + /** + * + * @type {OrderCreateRequestRecipient} + * @memberof V1OrderCreateRequest + */ + recipient: OrderCreateRequestRecipient; + /** + * Информация об отправлениях в заказе. + * @type {Array} + * @memberof V1OrderCreateRequest + */ + splits: Array; +} +/** + * Check if a given object implements the V1OrderCreateRequest interface. + */ +export declare function instanceOfV1OrderCreateRequest(value: object): value is V1OrderCreateRequest; +export declare function V1OrderCreateRequestFromJSON(json: any): V1OrderCreateRequest; +export declare function V1OrderCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCreateRequest; +export declare function V1OrderCreateRequestToJSON(value?: V1OrderCreateRequest | null): any; diff --git a/dist/models/V1OrderCreateRequest.js b/dist/models/V1OrderCreateRequest.js new file mode 100644 index 0000000..57e1883 --- /dev/null +++ b/dist/models/V1OrderCreateRequest.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderCreateRequest = instanceOfV1OrderCreateRequest; +exports.V1OrderCreateRequestFromJSON = V1OrderCreateRequestFromJSON; +exports.V1OrderCreateRequestFromJSONTyped = V1OrderCreateRequestFromJSONTyped; +exports.V1OrderCreateRequestToJSON = V1OrderCreateRequestToJSON; +const OrderCreateRequestSplit_1 = require("./OrderCreateRequestSplit"); +const OrderCreateRequestRecipient_1 = require("./OrderCreateRequestRecipient"); +const OrderCreateRequestBuyer_1 = require("./OrderCreateRequestBuyer"); +const OrderCreateRequestDelivery_1 = require("./OrderCreateRequestDelivery"); +const OrderCreateRequestV2DeliverySchemaEnum_1 = require("./OrderCreateRequestV2DeliverySchemaEnum"); +/** + * Check if a given object implements the V1OrderCreateRequest interface. + */ +function instanceOfV1OrderCreateRequest(value) { + if (!('buyer' in value) || value['buyer'] === undefined) + return false; + if (!('delivery' in value) || value['delivery'] === undefined) + return false; + if (!('delivery_schema' in value) || value['delivery_schema'] === undefined) + return false; + if (!('recipient' in value) || value['recipient'] === undefined) + return false; + if (!('splits' in value) || value['splits'] === undefined) + return false; + return true; +} +function V1OrderCreateRequestFromJSON(json) { + return V1OrderCreateRequestFromJSONTyped(json, false); +} +function V1OrderCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'buyer': (0, OrderCreateRequestBuyer_1.OrderCreateRequestBuyerFromJSON)(json['buyer']), + 'delivery': (0, OrderCreateRequestDelivery_1.OrderCreateRequestDeliveryFromJSON)(json['delivery']), + 'delivery_schema': (0, OrderCreateRequestV2DeliverySchemaEnum_1.OrderCreateRequestV2DeliverySchemaEnumFromJSON)(json['delivery_schema']), + 'recipient': (0, OrderCreateRequestRecipient_1.OrderCreateRequestRecipientFromJSON)(json['recipient']), + 'splits': (json['splits'].map(OrderCreateRequestSplit_1.OrderCreateRequestSplitFromJSON)), + }; +} +function V1OrderCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'buyer': (0, OrderCreateRequestBuyer_1.OrderCreateRequestBuyerToJSON)(value['buyer']), + 'delivery': (0, OrderCreateRequestDelivery_1.OrderCreateRequestDeliveryToJSON)(value['delivery']), + 'delivery_schema': (0, OrderCreateRequestV2DeliverySchemaEnum_1.OrderCreateRequestV2DeliverySchemaEnumToJSON)(value['delivery_schema']), + 'recipient': (0, OrderCreateRequestRecipient_1.OrderCreateRequestRecipientToJSON)(value['recipient']), + 'splits': (value['splits'].map(OrderCreateRequestSplit_1.OrderCreateRequestSplitToJSON)), + }; +} diff --git a/dist/models/V1OrderCreateResponse.d.ts b/dist/models/V1OrderCreateResponse.d.ts new file mode 100644 index 0000000..32d2342 --- /dev/null +++ b/dist/models/V1OrderCreateResponse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1OrderCreateResponse + */ +export interface V1OrderCreateResponse { + /** + * Номер заказа. + * @type {string} + * @memberof V1OrderCreateResponse + */ + order_number?: string; + /** + * Отправления. + * @type {Array} + * @memberof V1OrderCreateResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1OrderCreateResponse interface. + */ +export declare function instanceOfV1OrderCreateResponse(value: object): value is V1OrderCreateResponse; +export declare function V1OrderCreateResponseFromJSON(json: any): V1OrderCreateResponse; +export declare function V1OrderCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderCreateResponse; +export declare function V1OrderCreateResponseToJSON(value?: V1OrderCreateResponse | null): any; diff --git a/dist/models/V1OrderCreateResponse.js b/dist/models/V1OrderCreateResponse.js new file mode 100644 index 0000000..2bac279 --- /dev/null +++ b/dist/models/V1OrderCreateResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderCreateResponse = instanceOfV1OrderCreateResponse; +exports.V1OrderCreateResponseFromJSON = V1OrderCreateResponseFromJSON; +exports.V1OrderCreateResponseFromJSONTyped = V1OrderCreateResponseFromJSONTyped; +exports.V1OrderCreateResponseToJSON = V1OrderCreateResponseToJSON; +/** + * Check if a given object implements the V1OrderCreateResponse interface. + */ +function instanceOfV1OrderCreateResponse(value) { + return true; +} +function V1OrderCreateResponseFromJSON(json) { + return V1OrderCreateResponseFromJSONTyped(json, false); +} +function V1OrderCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'postings': json['postings'] == null ? undefined : json['postings'], + }; +} +function V1OrderCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'postings': value['postings'], + }; +} diff --git a/dist/models/V1OrderDraftValidationError.d.ts b/dist/models/V1OrderDraftValidationError.d.ts new file mode 100644 index 0000000..ede6c19 --- /dev/null +++ b/dist/models/V1OrderDraftValidationError.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderDraftValidationErrorErrorType } from './V1OrderDraftValidationErrorErrorType'; +/** + * Информация об ошибке. + * @export + * @interface V1OrderDraftValidationError + */ +export interface V1OrderDraftValidationError { + /** + * Тип ошибки: + * - `ERROR_TYPE_UNSPECIFIED` — не определён; + * - `ORDER_DRAFT_LOCKED` — черновик заблокирован; + * - `DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED` — превышена длина имени водителя; + * - `DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED` — превышена длина типа автомобиля; + * - `DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED` — превышена длина номера автомобиля; + * - `DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED` — превышена длина имени стороннего перевозчика; + * - `DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED` — превышена длина номера отслеживания; + * - `DELIVERY_DRIVER_NAME_EMPTY` — ФИО водителя не указано; + * - `DELIVERY_VEHICLE_GENRE_EMPTY` — тип автомобиля не указан; + * - `DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY` — номер автомобиля не указан; + * - `DELIVERY_TPL_NAME_EMPTY` — название стороннего перевозчика не указано; + * - `DELIVERY_TRACKING_NUMBER_EMPTY` — трек-номер не указан; + * - `INVALID_BUSINESS_FLOW` — неверный бизнес-поток; + * - `SUPPLY_TYPE_NOT_SUPPORTED` — тип поставки не поддерживается; + * - `INVALID_STATE` — неверное состояние. + * + * @type {Array} + * @memberof V1OrderDraftValidationError + */ + errors?: Array; +} +/** + * Check if a given object implements the V1OrderDraftValidationError interface. + */ +export declare function instanceOfV1OrderDraftValidationError(value: object): value is V1OrderDraftValidationError; +export declare function V1OrderDraftValidationErrorFromJSON(json: any): V1OrderDraftValidationError; +export declare function V1OrderDraftValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderDraftValidationError; +export declare function V1OrderDraftValidationErrorToJSON(value?: V1OrderDraftValidationError | null): any; diff --git a/dist/models/V1OrderDraftValidationError.js b/dist/models/V1OrderDraftValidationError.js new file mode 100644 index 0000000..3c7063e --- /dev/null +++ b/dist/models/V1OrderDraftValidationError.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderDraftValidationError = instanceOfV1OrderDraftValidationError; +exports.V1OrderDraftValidationErrorFromJSON = V1OrderDraftValidationErrorFromJSON; +exports.V1OrderDraftValidationErrorFromJSONTyped = V1OrderDraftValidationErrorFromJSONTyped; +exports.V1OrderDraftValidationErrorToJSON = V1OrderDraftValidationErrorToJSON; +const V1OrderDraftValidationErrorErrorType_1 = require("./V1OrderDraftValidationErrorErrorType"); +/** + * Check if a given object implements the V1OrderDraftValidationError interface. + */ +function instanceOfV1OrderDraftValidationError(value) { + return true; +} +function V1OrderDraftValidationErrorFromJSON(json) { + return V1OrderDraftValidationErrorFromJSONTyped(json, false); +} +function V1OrderDraftValidationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1OrderDraftValidationErrorErrorType_1.V1OrderDraftValidationErrorErrorTypeFromJSON)), + }; +} +function V1OrderDraftValidationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1OrderDraftValidationErrorErrorType_1.V1OrderDraftValidationErrorErrorTypeToJSON)), + }; +} diff --git a/dist/models/V1OrderDraftValidationErrorErrorType.d.ts b/dist/models/V1OrderDraftValidationErrorErrorType.d.ts new file mode 100644 index 0000000..f97a593 --- /dev/null +++ b/dist/models/V1OrderDraftValidationErrorErrorType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1OrderDraftValidationErrorErrorType: { + readonly ERROR_TYPE_UNSPECIFIED: "ERROR_TYPE_UNSPECIFIED"; + readonly ORDER_DRAFT_LOCKED: "ORDER_DRAFT_LOCKED"; + readonly DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED: "DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED: "DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED: "DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED: "DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED: "DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_DRIVER_NAME_EMPTY: "DELIVERY_DRIVER_NAME_EMPTY"; + readonly DELIVERY_VEHICLE_GENRE_EMPTY: "DELIVERY_VEHICLE_GENRE_EMPTY"; + readonly DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY: "DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY"; + readonly DELIVERY_TPL_NAME_EMPTY: "DELIVERY_TPL_NAME_EMPTY"; + readonly DELIVERY_TRACKING_NUMBER_EMPTY: "DELIVERY_TRACKING_NUMBER_EMPTY"; + readonly INVALID_BUSINESS_FLOW: "INVALID_BUSINESS_FLOW"; + readonly SUPPLY_TYPE_NOT_SUPPORTED: "SUPPLY_TYPE_NOT_SUPPORTED"; + readonly INVALID_STATE: "INVALID_STATE"; +}; +export type V1OrderDraftValidationErrorErrorType = typeof V1OrderDraftValidationErrorErrorType[keyof typeof V1OrderDraftValidationErrorErrorType]; +export declare function instanceOfV1OrderDraftValidationErrorErrorType(value: any): boolean; +export declare function V1OrderDraftValidationErrorErrorTypeFromJSON(json: any): V1OrderDraftValidationErrorErrorType; +export declare function V1OrderDraftValidationErrorErrorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderDraftValidationErrorErrorType; +export declare function V1OrderDraftValidationErrorErrorTypeToJSON(value?: V1OrderDraftValidationErrorErrorType | null): any; diff --git a/dist/models/V1OrderDraftValidationErrorErrorType.js b/dist/models/V1OrderDraftValidationErrorErrorType.js new file mode 100644 index 0000000..98fe69e --- /dev/null +++ b/dist/models/V1OrderDraftValidationErrorErrorType.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1OrderDraftValidationErrorErrorType = void 0; +exports.instanceOfV1OrderDraftValidationErrorErrorType = instanceOfV1OrderDraftValidationErrorErrorType; +exports.V1OrderDraftValidationErrorErrorTypeFromJSON = V1OrderDraftValidationErrorErrorTypeFromJSON; +exports.V1OrderDraftValidationErrorErrorTypeFromJSONTyped = V1OrderDraftValidationErrorErrorTypeFromJSONTyped; +exports.V1OrderDraftValidationErrorErrorTypeToJSON = V1OrderDraftValidationErrorErrorTypeToJSON; +/** + * + * @export + */ +exports.V1OrderDraftValidationErrorErrorType = { + ERROR_TYPE_UNSPECIFIED: 'ERROR_TYPE_UNSPECIFIED', + ORDER_DRAFT_LOCKED: 'ORDER_DRAFT_LOCKED', + DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED: 'DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED', + DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED: 'DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED', + DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED: 'DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED', + DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED: 'DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED', + DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED: 'DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED', + DELIVERY_DRIVER_NAME_EMPTY: 'DELIVERY_DRIVER_NAME_EMPTY', + DELIVERY_VEHICLE_GENRE_EMPTY: 'DELIVERY_VEHICLE_GENRE_EMPTY', + DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY: 'DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY', + DELIVERY_TPL_NAME_EMPTY: 'DELIVERY_TPL_NAME_EMPTY', + DELIVERY_TRACKING_NUMBER_EMPTY: 'DELIVERY_TRACKING_NUMBER_EMPTY', + INVALID_BUSINESS_FLOW: 'INVALID_BUSINESS_FLOW', + SUPPLY_TYPE_NOT_SUPPORTED: 'SUPPLY_TYPE_NOT_SUPPORTED', + INVALID_STATE: 'INVALID_STATE' +}; +function instanceOfV1OrderDraftValidationErrorErrorType(value) { + for (const key in exports.V1OrderDraftValidationErrorErrorType) { + if (Object.prototype.hasOwnProperty.call(exports.V1OrderDraftValidationErrorErrorType, key)) { + if (exports.V1OrderDraftValidationErrorErrorType[key] === value) { + return true; + } + } + } + return false; +} +function V1OrderDraftValidationErrorErrorTypeFromJSON(json) { + return V1OrderDraftValidationErrorErrorTypeFromJSONTyped(json, false); +} +function V1OrderDraftValidationErrorErrorTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1OrderDraftValidationErrorErrorTypeToJSON(value) { + return value; +} diff --git a/dist/models/V1OrderErrorTypeEnum.d.ts b/dist/models/V1OrderErrorTypeEnum.d.ts new file mode 100644 index 0000000..9b94411 --- /dev/null +++ b/dist/models/V1OrderErrorTypeEnum.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Ошибка регистрации поставки: + * - `ORDER_ERROR_TYPE_UNSPECIFIED` — не определена; + * - `INVALID_NUMBER_OF_PACKAGE_UNITS` — указано неверное количество грузомест в заявке; + * - `MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED` — превышено максимальное количество уникальных SKU в заявке; + * - `MAXIMUM_BUNDLE_VOLUME_REACHED` — достигнут максимальный объём поставки; + * - `BUNDLE_ID_EMPTY` — состав поставки пуст; + * - `INVALID_SUPPLY_TYPE` — тип поставки не указан или указан неверный; + * - `INVALID_TIMESLOT` — таймслот не указан или указан неверный; + * - `INVALID_WHC_NUMBER` — неверный идентификатор поставки WHC; + * - `DRAFT_LOCKED` — заявка ожидает переноса в ордер; + * - `DROP_OFF_POINTS_IS_EMPTY` — для поставки drop-off не указано место отгрузки; + * - `WAREHOUSE_IS_EMPTY` — не указаны данные склада; + * - `BUSINESS_FLOW_TYPE_IS_EMPTY` — не определён тип бизнес-процесса; + * - `WAS_CANCELLED` — поставка уже отменена; + * - `PICK_UP_DETAILS_IS_EMPTY` — для поставки pick-up не указаны данные по отгрузке курьеру со склада продавца; + * - `INVALID_PICK_UP_DETAILS` — для поставки pick-up указаны неверные данные по отгрузке курьеру со склада продавца; + * - `INVALID_PICK_UP_DATE` — для поставки pick-up указана неверная дата отгрузки курьеру со склада продавца; + * - `INTERNAL_ERROR` — ошибка при проверке параметров. + * + * @export + */ +export declare const V1OrderErrorTypeEnum: { + readonly ORDER_ERROR_TYPE_UNSPECIFIED: "ORDER_ERROR_TYPE_UNSPECIFIED"; + readonly INVALID_NUMBER_OF_PACKAGE_UNITS: "INVALID_NUMBER_OF_PACKAGE_UNITS"; + readonly MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED: "MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED"; + readonly MAXIMUM_BUNDLE_VOLUME_REACHED: "MAXIMUM_BUNDLE_VOLUME_REACHED"; + readonly BUNDLE_ID_EMPTY: "BUNDLE_ID_EMPTY"; + readonly INVALID_SUPPLY_TYPE: "INVALID_SUPPLY_TYPE"; + readonly INVALID_TIMESLOT: "INVALID_TIMESLOT"; + readonly INVALID_WHC_NUMBER: "INVALID_WHC_NUMBER"; + readonly DRAFT_LOCKED: "DRAFT_LOCKED"; + readonly DROP_OFF_POINTS_IS_EMPTY: "DROP_OFF_POINTS_IS_EMPTY"; + readonly WAREHOUSE_IS_EMPTY: "WAREHOUSE_IS_EMPTY"; + readonly BUSINESS_FLOW_TYPE_IS_EMPTY: "BUSINESS_FLOW_TYPE_IS_EMPTY"; + readonly WAS_CANCELLED: "WAS_CANCELLED"; + readonly PICK_UP_DETAILS_IS_EMPTY: "PICK_UP_DETAILS_IS_EMPTY"; + readonly INVALID_PICK_UP_DETAILS: "INVALID_PICK_UP_DETAILS"; + readonly INVALID_PICK_UP_DATE: "INVALID_PICK_UP_DATE"; + readonly INTERNAL_ERROR: "INTERNAL_ERROR"; +}; +export type V1OrderErrorTypeEnum = typeof V1OrderErrorTypeEnum[keyof typeof V1OrderErrorTypeEnum]; +export declare function instanceOfV1OrderErrorTypeEnum(value: any): boolean; +export declare function V1OrderErrorTypeEnumFromJSON(json: any): V1OrderErrorTypeEnum; +export declare function V1OrderErrorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderErrorTypeEnum; +export declare function V1OrderErrorTypeEnumToJSON(value?: V1OrderErrorTypeEnum | null): any; diff --git a/dist/models/V1OrderErrorTypeEnum.js b/dist/models/V1OrderErrorTypeEnum.js new file mode 100644 index 0000000..9dcaf9f --- /dev/null +++ b/dist/models/V1OrderErrorTypeEnum.js @@ -0,0 +1,80 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1OrderErrorTypeEnum = void 0; +exports.instanceOfV1OrderErrorTypeEnum = instanceOfV1OrderErrorTypeEnum; +exports.V1OrderErrorTypeEnumFromJSON = V1OrderErrorTypeEnumFromJSON; +exports.V1OrderErrorTypeEnumFromJSONTyped = V1OrderErrorTypeEnumFromJSONTyped; +exports.V1OrderErrorTypeEnumToJSON = V1OrderErrorTypeEnumToJSON; +/** + * Ошибка регистрации поставки: + * - `ORDER_ERROR_TYPE_UNSPECIFIED` — не определена; + * - `INVALID_NUMBER_OF_PACKAGE_UNITS` — указано неверное количество грузомест в заявке; + * - `MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED` — превышено максимальное количество уникальных SKU в заявке; + * - `MAXIMUM_BUNDLE_VOLUME_REACHED` — достигнут максимальный объём поставки; + * - `BUNDLE_ID_EMPTY` — состав поставки пуст; + * - `INVALID_SUPPLY_TYPE` — тип поставки не указан или указан неверный; + * - `INVALID_TIMESLOT` — таймслот не указан или указан неверный; + * - `INVALID_WHC_NUMBER` — неверный идентификатор поставки WHC; + * - `DRAFT_LOCKED` — заявка ожидает переноса в ордер; + * - `DROP_OFF_POINTS_IS_EMPTY` — для поставки drop-off не указано место отгрузки; + * - `WAREHOUSE_IS_EMPTY` — не указаны данные склада; + * - `BUSINESS_FLOW_TYPE_IS_EMPTY` — не определён тип бизнес-процесса; + * - `WAS_CANCELLED` — поставка уже отменена; + * - `PICK_UP_DETAILS_IS_EMPTY` — для поставки pick-up не указаны данные по отгрузке курьеру со склада продавца; + * - `INVALID_PICK_UP_DETAILS` — для поставки pick-up указаны неверные данные по отгрузке курьеру со склада продавца; + * - `INVALID_PICK_UP_DATE` — для поставки pick-up указана неверная дата отгрузки курьеру со склада продавца; + * - `INTERNAL_ERROR` — ошибка при проверке параметров. + * + * @export + */ +exports.V1OrderErrorTypeEnum = { + ORDER_ERROR_TYPE_UNSPECIFIED: 'ORDER_ERROR_TYPE_UNSPECIFIED', + INVALID_NUMBER_OF_PACKAGE_UNITS: 'INVALID_NUMBER_OF_PACKAGE_UNITS', + MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED: 'MAXIMUM_NUMBER_OF_UNIQUE_SKU_REACHED', + MAXIMUM_BUNDLE_VOLUME_REACHED: 'MAXIMUM_BUNDLE_VOLUME_REACHED', + BUNDLE_ID_EMPTY: 'BUNDLE_ID_EMPTY', + INVALID_SUPPLY_TYPE: 'INVALID_SUPPLY_TYPE', + INVALID_TIMESLOT: 'INVALID_TIMESLOT', + INVALID_WHC_NUMBER: 'INVALID_WHC_NUMBER', + DRAFT_LOCKED: 'DRAFT_LOCKED', + DROP_OFF_POINTS_IS_EMPTY: 'DROP_OFF_POINTS_IS_EMPTY', + WAREHOUSE_IS_EMPTY: 'WAREHOUSE_IS_EMPTY', + BUSINESS_FLOW_TYPE_IS_EMPTY: 'BUSINESS_FLOW_TYPE_IS_EMPTY', + WAS_CANCELLED: 'WAS_CANCELLED', + PICK_UP_DETAILS_IS_EMPTY: 'PICK_UP_DETAILS_IS_EMPTY', + INVALID_PICK_UP_DETAILS: 'INVALID_PICK_UP_DETAILS', + INVALID_PICK_UP_DATE: 'INVALID_PICK_UP_DATE', + INTERNAL_ERROR: 'INTERNAL_ERROR' +}; +function instanceOfV1OrderErrorTypeEnum(value) { + for (const key in exports.V1OrderErrorTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1OrderErrorTypeEnum, key)) { + if (exports.V1OrderErrorTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1OrderErrorTypeEnumFromJSON(json) { + return V1OrderErrorTypeEnumFromJSONTyped(json, false); +} +function V1OrderErrorTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1OrderErrorTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1OrderState.d.ts b/dist/models/V1OrderState.d.ts new file mode 100644 index 0000000..3c1bfda --- /dev/null +++ b/dist/models/V1OrderState.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус поставки: + * - `UNSPECIFIED` — статус не указан; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена. + * + * @export + */ +export declare const V1OrderState: { + readonly UNSPECIFIED: "ORDER_STATE_UNSPECIFIED"; + readonly DATA_FILLING: "ORDER_STATE_DATA_FILLING"; + readonly READY_TO_SUPPLY: "ORDER_STATE_READY_TO_SUPPLY"; + readonly ACCEPTED_AT_SUPPLY_WAREHOUSE: "ORDER_STATE_ACCEPTED_AT_SUPPLY_WAREHOUSE"; + readonly IN_TRANSIT: "ORDER_STATE_IN_TRANSIT"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ORDER_STATE_ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly REPORTS_CONFIRMATION_AWAITING: "ORDER_STATE_REPORTS_CONFIRMATION_AWAITING"; + readonly REPORT_REJECTED: "ORDER_STATE_REPORT_REJECTED"; + readonly COMPLETED: "ORDER_STATE_COMPLETED"; + readonly REJECTED_AT_SUPPLY_WAREHOUSE: "ORDER_STATE_REJECTED_AT_SUPPLY_WAREHOUSE"; + readonly CANCELLED: "ORDER_STATE_CANCELLED"; +}; +export type V1OrderState = typeof V1OrderState[keyof typeof V1OrderState]; +export declare function instanceOfV1OrderState(value: any): boolean; +export declare function V1OrderStateFromJSON(json: any): V1OrderState; +export declare function V1OrderStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderState; +export declare function V1OrderStateToJSON(value?: V1OrderState | null): any; diff --git a/dist/models/V1OrderState.js b/dist/models/V1OrderState.js new file mode 100644 index 0000000..107a946 --- /dev/null +++ b/dist/models/V1OrderState.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1OrderState = void 0; +exports.instanceOfV1OrderState = instanceOfV1OrderState; +exports.V1OrderStateFromJSON = V1OrderStateFromJSON; +exports.V1OrderStateFromJSONTyped = V1OrderStateFromJSONTyped; +exports.V1OrderStateToJSON = V1OrderStateToJSON; +/** + * Статус поставки: + * - `UNSPECIFIED` — статус не указан; + * - `DATA_FILLING` — заполнение данных; + * - `READY_TO_SUPPLY` — готова к отгрузке; + * - `ACCEPTED_AT_SUPPLY_WAREHOUSE` — принята на точке отгрузки; + * - `IN_TRANSIT` — в пути; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `REPORTS_CONFIRMATION_AWAITING` — согласование актов; + * - `REPORT_REJECTED` — спор; + * - `COMPLETED` — завершена; + * - `REJECTED_AT_SUPPLY_WAREHOUSE` — отказано в приёмке; + * - `CANCELLED` — отменена. + * + * @export + */ +exports.V1OrderState = { + UNSPECIFIED: 'ORDER_STATE_UNSPECIFIED', + DATA_FILLING: 'ORDER_STATE_DATA_FILLING', + READY_TO_SUPPLY: 'ORDER_STATE_READY_TO_SUPPLY', + ACCEPTED_AT_SUPPLY_WAREHOUSE: 'ORDER_STATE_ACCEPTED_AT_SUPPLY_WAREHOUSE', + IN_TRANSIT: 'ORDER_STATE_IN_TRANSIT', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ORDER_STATE_ACCEPTANCE_AT_STORAGE_WAREHOUSE', + REPORTS_CONFIRMATION_AWAITING: 'ORDER_STATE_REPORTS_CONFIRMATION_AWAITING', + REPORT_REJECTED: 'ORDER_STATE_REPORT_REJECTED', + COMPLETED: 'ORDER_STATE_COMPLETED', + REJECTED_AT_SUPPLY_WAREHOUSE: 'ORDER_STATE_REJECTED_AT_SUPPLY_WAREHOUSE', + CANCELLED: 'ORDER_STATE_CANCELLED' +}; +function instanceOfV1OrderState(value) { + for (const key in exports.V1OrderState) { + if (Object.prototype.hasOwnProperty.call(exports.V1OrderState, key)) { + if (exports.V1OrderState[key] === value) { + return true; + } + } + } + return false; +} +function V1OrderStateFromJSON(json) { + return V1OrderStateFromJSONTyped(json, false); +} +function V1OrderStateFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1OrderStateToJSON(value) { + return value; +} diff --git a/dist/models/V1OrderStatusEnum.d.ts b/dist/models/V1OrderStatusEnum.d.ts new file mode 100644 index 0000000..ba89c37 --- /dev/null +++ b/dist/models/V1OrderStatusEnum.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заказа: + * - `ORDER_STATUS_UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готов к отгрузке; + * - `FILLING_DELIVERY_DETAILS` — заполнение данных поставки; + * - `COURIER_ASSIGNED` — курьер назначен; + * - `COURIER_PICKED_UP` — курьер забрал поставку; + * - `ACCEPTANCE_AT_DROP_OFF_POINT` — принято на drop-off пункте; + * - `IN_TRANSIT_TO_STORAGE_WAREHOUSE` — в пути на склад размещения; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `CANCELLED` — заявка отменена. + * + * @export + */ +export declare const V1OrderStatusEnum: { + readonly ORDER_STATUS_UNSPECIFIED: "ORDER_STATUS_UNSPECIFIED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly FILLING_DELIVERY_DETAILS: "FILLING_DELIVERY_DETAILS"; + readonly COURIER_ASSIGNED: "COURIER_ASSIGNED"; + readonly COURIER_PICKED_UP: "COURIER_PICKED_UP"; + readonly ACCEPTANCE_AT_DROP_OFF_POINT: "ACCEPTANCE_AT_DROP_OFF_POINT"; + readonly IN_TRANSIT_TO_STORAGE_WAREHOUSE: "IN_TRANSIT_TO_STORAGE_WAREHOUSE"; + readonly ACCEPTANCE_AT_STORAGE_WAREHOUSE: "ACCEPTANCE_AT_STORAGE_WAREHOUSE"; + readonly CANCELLED: "CANCELLED"; +}; +export type V1OrderStatusEnum = typeof V1OrderStatusEnum[keyof typeof V1OrderStatusEnum]; +export declare function instanceOfV1OrderStatusEnum(value: any): boolean; +export declare function V1OrderStatusEnumFromJSON(json: any): V1OrderStatusEnum; +export declare function V1OrderStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderStatusEnum; +export declare function V1OrderStatusEnumToJSON(value?: V1OrderStatusEnum | null): any; diff --git a/dist/models/V1OrderStatusEnum.js b/dist/models/V1OrderStatusEnum.js new file mode 100644 index 0000000..3e7bd4e --- /dev/null +++ b/dist/models/V1OrderStatusEnum.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1OrderStatusEnum = void 0; +exports.instanceOfV1OrderStatusEnum = instanceOfV1OrderStatusEnum; +exports.V1OrderStatusEnumFromJSON = V1OrderStatusEnumFromJSON; +exports.V1OrderStatusEnumFromJSONTyped = V1OrderStatusEnumFromJSONTyped; +exports.V1OrderStatusEnumToJSON = V1OrderStatusEnumToJSON; +/** + * Статус заказа: + * - `ORDER_STATUS_UNSPECIFIED` — не определён; + * - `READY_TO_SUPPLY` — готов к отгрузке; + * - `FILLING_DELIVERY_DETAILS` — заполнение данных поставки; + * - `COURIER_ASSIGNED` — курьер назначен; + * - `COURIER_PICKED_UP` — курьер забрал поставку; + * - `ACCEPTANCE_AT_DROP_OFF_POINT` — принято на drop-off пункте; + * - `IN_TRANSIT_TO_STORAGE_WAREHOUSE` — в пути на склад размещения; + * - `ACCEPTANCE_AT_STORAGE_WAREHOUSE` — приёмка на складе; + * - `CANCELLED` — заявка отменена. + * + * @export + */ +exports.V1OrderStatusEnum = { + ORDER_STATUS_UNSPECIFIED: 'ORDER_STATUS_UNSPECIFIED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + FILLING_DELIVERY_DETAILS: 'FILLING_DELIVERY_DETAILS', + COURIER_ASSIGNED: 'COURIER_ASSIGNED', + COURIER_PICKED_UP: 'COURIER_PICKED_UP', + ACCEPTANCE_AT_DROP_OFF_POINT: 'ACCEPTANCE_AT_DROP_OFF_POINT', + IN_TRANSIT_TO_STORAGE_WAREHOUSE: 'IN_TRANSIT_TO_STORAGE_WAREHOUSE', + ACCEPTANCE_AT_STORAGE_WAREHOUSE: 'ACCEPTANCE_AT_STORAGE_WAREHOUSE', + CANCELLED: 'CANCELLED' +}; +function instanceOfV1OrderStatusEnum(value) { + for (const key in exports.V1OrderStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1OrderStatusEnum, key)) { + if (exports.V1OrderStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1OrderStatusEnumFromJSON(json) { + return V1OrderStatusEnumFromJSONTyped(json, false); +} +function V1OrderStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1OrderStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1OrderValidationError.d.ts b/dist/models/V1OrderValidationError.d.ts new file mode 100644 index 0000000..c255693 --- /dev/null +++ b/dist/models/V1OrderValidationError.d.ts @@ -0,0 +1,59 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderValidationErrorErrorType } from './V1OrderValidationErrorErrorType'; +/** + * Информация об ошибке. + * @export + * @interface V1OrderValidationError + */ +export interface V1OrderValidationError { + /** + * Тип ошибки: + * - `ERROR_TYPE_UNSPECIFIED` — не определён; + * - `DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED` — превышена длина ФИО водителя; + * - `DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED` — превышена длина типа автомобиля; + * - `DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED` — превышена длина номера автомобиля; + * - `DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED` — превышена длина названия стороннего перевозчика; + * - `DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED` — превышена длина трек-номера отслеживания; + * - `DELIVERY_DRIVER_NAME_EMPTY` — ФИО водителя не указано; + * - `DELIVERY_VEHICLE_GENRE_EMPTY` — тип автомобиля не указан; + * - `DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY` — номер автомобиля не указан; + * - `DELIVERY_TPL_NAME_EMPTY` — название стороннего перевозчика не указано; + * - `DELIVERY_TRACKING_NUMBER_EMPTY` — трек-номер не указан; + * - `SUPPLY_TYPE_NOT_SUPPORTED` — тип поставки не поддерживается; + * - `INVALID_BUSINESS_FLOW` — неверный бизнес-поток; + * - `ORDER_LOCKED` — нельзя редактировать товарный состав; + * - `INVALID_TIMESLOT` — таймслот не указан или указан неверно; + * - `DROP_OFF_DETAILS_EMPTY` — детали drop-off пункта не указаны; + * - `PICK_UP_ADDRESS_IS_EMPTY` — детали адреса точки забора не указаны; + * - `PICK_UP_SENDER_NAME_IS_EMPTY` — ФИО отправителя не указано; + * - `PICK_UP_SENDER_PHONE_IS_EMPTY` — номер телефона отправителя не указан; + * - `PICK_UP_ADDRESS_IS_TOO_LARGE` — превышена длина адреса точки забора; + * - `PICK_UP_SENDER_NAME_IS_TOO_LARGE` — превышена длина ФИО отправителя; + * - `PICK_UP_SENDER_PHONE_IS_TOO_LARGE` — превышена длина номера телефона отправителя; + * - `PICK_UP_COMMENT_IS_TOO_LARGE` — превышена длина комментария к поставке; + * - `PICK_UP_DETAILS_EMPTY` — детали точки забора не указаны; + * - `DROP_OFF_ADDRESS_NOT_SET` — не указан адрес drop-off пункта; + * - `INVALID_STATE` — неверное состояние. + * + * @type {Array} + * @memberof V1OrderValidationError + */ + order_errors?: Array; +} +/** + * Check if a given object implements the V1OrderValidationError interface. + */ +export declare function instanceOfV1OrderValidationError(value: object): value is V1OrderValidationError; +export declare function V1OrderValidationErrorFromJSON(json: any): V1OrderValidationError; +export declare function V1OrderValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderValidationError; +export declare function V1OrderValidationErrorToJSON(value?: V1OrderValidationError | null): any; diff --git a/dist/models/V1OrderValidationError.js b/dist/models/V1OrderValidationError.js new file mode 100644 index 0000000..496023f --- /dev/null +++ b/dist/models/V1OrderValidationError.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1OrderValidationError = instanceOfV1OrderValidationError; +exports.V1OrderValidationErrorFromJSON = V1OrderValidationErrorFromJSON; +exports.V1OrderValidationErrorFromJSONTyped = V1OrderValidationErrorFromJSONTyped; +exports.V1OrderValidationErrorToJSON = V1OrderValidationErrorToJSON; +const V1OrderValidationErrorErrorType_1 = require("./V1OrderValidationErrorErrorType"); +/** + * Check if a given object implements the V1OrderValidationError interface. + */ +function instanceOfV1OrderValidationError(value) { + return true; +} +function V1OrderValidationErrorFromJSON(json) { + return V1OrderValidationErrorFromJSONTyped(json, false); +} +function V1OrderValidationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_errors': json['order_errors'] == null ? undefined : (json['order_errors'].map(V1OrderValidationErrorErrorType_1.V1OrderValidationErrorErrorTypeFromJSON)), + }; +} +function V1OrderValidationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_errors': value['order_errors'] == null ? undefined : (value['order_errors'].map(V1OrderValidationErrorErrorType_1.V1OrderValidationErrorErrorTypeToJSON)), + }; +} diff --git a/dist/models/V1OrderValidationErrorErrorType.d.ts b/dist/models/V1OrderValidationErrorErrorType.d.ts new file mode 100644 index 0000000..621b3f2 --- /dev/null +++ b/dist/models/V1OrderValidationErrorErrorType.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1OrderValidationErrorErrorType: { + readonly ERROR_TYPE_UNSPECIFIED: "ERROR_TYPE_UNSPECIFIED"; + readonly DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED: "DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED: "DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED: "DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED: "DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED: "DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED"; + readonly DELIVERY_DRIVER_NAME_EMPTY: "DELIVERY_DRIVER_NAME_EMPTY"; + readonly DELIVERY_VEHICLE_GENRE_EMPTY: "DELIVERY_VEHICLE_GENRE_EMPTY"; + readonly DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY: "DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY"; + readonly DELIVERY_TPL_NAME_EMPTY: "DELIVERY_TPL_NAME_EMPTY"; + readonly DELIVERY_TRACKING_NUMBER_EMPTY: "DELIVERY_TRACKING_NUMBER_EMPTY"; + readonly DELIVERY_BY_SELLER_EMPTY: "DELIVERY_BY_SELLER_EMPTY"; + readonly DELIVERY_BY_TPL_EMPTY: "DELIVERY_BY_TPL_EMPTY"; + readonly RECEIVE_DATE_NOT_SET: "RECEIVE_DATE_NOT_SET"; + readonly SUPPLY_TYPE_NOT_SUPPORTED: "SUPPLY_TYPE_NOT_SUPPORTED"; + readonly INVALID_BUSINESS_FLOW: "INVALID_BUSINESS_FLOW"; + readonly ORDER_LOCKED: "ORDER_LOCKED"; + readonly INVALID_TIMESLOT: "INVALID_TIMESLOT"; + readonly DROP_OFF_DETAILS_EMPTY: "DROP_OFF_DETAILS_EMPTY"; + readonly PICK_UP_ADDRESS_IS_EMPTY: "PICK_UP_ADDRESS_IS_EMPTY"; + readonly PICK_UP_SENDER_NAME_IS_EMPTY: "PICK_UP_SENDER_NAME_IS_EMPTY"; + readonly PICK_UP_SENDER_PHONE_IS_EMPTY: "PICK_UP_SENDER_PHONE_IS_EMPTY"; + readonly PICK_UP_ADDRESS_IS_TOO_LARGE: "PICK_UP_ADDRESS_IS_TOO_LARGE"; + readonly PICK_UP_SENDER_NAME_IS_TOO_LARGE: "PICK_UP_SENDER_NAME_IS_TOO_LARGE"; + readonly PICK_UP_SENDER_PHONE_IS_TOO_LARGE: "PICK_UP_SENDER_PHONE_IS_TOO_LARGE"; + readonly PICK_UP_COMMENT_IS_TOO_LARGE: "PICK_UP_COMMENT_IS_TOO_LARGE"; + readonly PICK_UP_DETAILS_EMPTY: "PICK_UP_DETAILS_EMPTY"; + readonly DROP_OFF_ADDRESS_NOT_SET: "DROP_OFF_ADDRESS_NOT_SET"; + readonly INVALID_STATE: "INVALID_STATE"; +}; +export type V1OrderValidationErrorErrorType = typeof V1OrderValidationErrorErrorType[keyof typeof V1OrderValidationErrorErrorType]; +export declare function instanceOfV1OrderValidationErrorErrorType(value: any): boolean; +export declare function V1OrderValidationErrorErrorTypeFromJSON(json: any): V1OrderValidationErrorErrorType; +export declare function V1OrderValidationErrorErrorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrderValidationErrorErrorType; +export declare function V1OrderValidationErrorErrorTypeToJSON(value?: V1OrderValidationErrorErrorType | null): any; diff --git a/dist/models/V1OrderValidationErrorErrorType.js b/dist/models/V1OrderValidationErrorErrorType.js new file mode 100644 index 0000000..5f2be7f --- /dev/null +++ b/dist/models/V1OrderValidationErrorErrorType.js @@ -0,0 +1,74 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1OrderValidationErrorErrorType = void 0; +exports.instanceOfV1OrderValidationErrorErrorType = instanceOfV1OrderValidationErrorErrorType; +exports.V1OrderValidationErrorErrorTypeFromJSON = V1OrderValidationErrorErrorTypeFromJSON; +exports.V1OrderValidationErrorErrorTypeFromJSONTyped = V1OrderValidationErrorErrorTypeFromJSONTyped; +exports.V1OrderValidationErrorErrorTypeToJSON = V1OrderValidationErrorErrorTypeToJSON; +/** + * + * @export + */ +exports.V1OrderValidationErrorErrorType = { + ERROR_TYPE_UNSPECIFIED: 'ERROR_TYPE_UNSPECIFIED', + DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED: 'DELIVERY_DRIVER_NAME_LENGTH_MAXIMUM_REACHED', + DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED: 'DELIVERY_VEHICLE_GENRE_LENGTH_MAXIMUM_REACHED', + DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED: 'DELIVERY_VEHICLE_REGISTRATION_PLATE_LENGTH_MAXIMUM_REACHED', + DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED: 'DELIVERY_TPL_NAME_LENGTH_MAXIMUM_REACHED', + DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED: 'DELIVERY_TRACKING_NUMBER_LENGTH_MAXIMUM_REACHED', + DELIVERY_DRIVER_NAME_EMPTY: 'DELIVERY_DRIVER_NAME_EMPTY', + DELIVERY_VEHICLE_GENRE_EMPTY: 'DELIVERY_VEHICLE_GENRE_EMPTY', + DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY: 'DELIVERY_VEHICLE_REGISTRATION_PLATE_EMPTY', + DELIVERY_TPL_NAME_EMPTY: 'DELIVERY_TPL_NAME_EMPTY', + DELIVERY_TRACKING_NUMBER_EMPTY: 'DELIVERY_TRACKING_NUMBER_EMPTY', + DELIVERY_BY_SELLER_EMPTY: 'DELIVERY_BY_SELLER_EMPTY', + DELIVERY_BY_TPL_EMPTY: 'DELIVERY_BY_TPL_EMPTY', + RECEIVE_DATE_NOT_SET: 'RECEIVE_DATE_NOT_SET', + SUPPLY_TYPE_NOT_SUPPORTED: 'SUPPLY_TYPE_NOT_SUPPORTED', + INVALID_BUSINESS_FLOW: 'INVALID_BUSINESS_FLOW', + ORDER_LOCKED: 'ORDER_LOCKED', + INVALID_TIMESLOT: 'INVALID_TIMESLOT', + DROP_OFF_DETAILS_EMPTY: 'DROP_OFF_DETAILS_EMPTY', + PICK_UP_ADDRESS_IS_EMPTY: 'PICK_UP_ADDRESS_IS_EMPTY', + PICK_UP_SENDER_NAME_IS_EMPTY: 'PICK_UP_SENDER_NAME_IS_EMPTY', + PICK_UP_SENDER_PHONE_IS_EMPTY: 'PICK_UP_SENDER_PHONE_IS_EMPTY', + PICK_UP_ADDRESS_IS_TOO_LARGE: 'PICK_UP_ADDRESS_IS_TOO_LARGE', + PICK_UP_SENDER_NAME_IS_TOO_LARGE: 'PICK_UP_SENDER_NAME_IS_TOO_LARGE', + PICK_UP_SENDER_PHONE_IS_TOO_LARGE: 'PICK_UP_SENDER_PHONE_IS_TOO_LARGE', + PICK_UP_COMMENT_IS_TOO_LARGE: 'PICK_UP_COMMENT_IS_TOO_LARGE', + PICK_UP_DETAILS_EMPTY: 'PICK_UP_DETAILS_EMPTY', + DROP_OFF_ADDRESS_NOT_SET: 'DROP_OFF_ADDRESS_NOT_SET', + INVALID_STATE: 'INVALID_STATE' +}; +function instanceOfV1OrderValidationErrorErrorType(value) { + for (const key in exports.V1OrderValidationErrorErrorType) { + if (Object.prototype.hasOwnProperty.call(exports.V1OrderValidationErrorErrorType, key)) { + if (exports.V1OrderValidationErrorErrorType[key] === value) { + return true; + } + } + } + return false; +} +function V1OrderValidationErrorErrorTypeFromJSON(json) { + return V1OrderValidationErrorErrorTypeFromJSONTyped(json, false); +} +function V1OrderValidationErrorErrorTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1OrderValidationErrorErrorTypeToJSON(value) { + return value; +} diff --git a/dist/models/V1PolygonDeleteRequest.d.ts b/dist/models/V1PolygonDeleteRequest.d.ts new file mode 100644 index 0000000..72d0678 --- /dev/null +++ b/dist/models/V1PolygonDeleteRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PolygonDeleteRequest + */ +export interface V1PolygonDeleteRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1PolygonDeleteRequest + */ + delivery_method_id: number; + /** + * Идентификатор полигона. + * @type {number} + * @memberof V1PolygonDeleteRequest + */ + polygon_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1PolygonDeleteRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1PolygonDeleteRequest interface. + */ +export declare function instanceOfV1PolygonDeleteRequest(value: object): value is V1PolygonDeleteRequest; +export declare function V1PolygonDeleteRequestFromJSON(json: any): V1PolygonDeleteRequest; +export declare function V1PolygonDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonDeleteRequest; +export declare function V1PolygonDeleteRequestToJSON(value?: V1PolygonDeleteRequest | null): any; diff --git a/dist/models/V1PolygonDeleteRequest.js b/dist/models/V1PolygonDeleteRequest.js new file mode 100644 index 0000000..389c425 --- /dev/null +++ b/dist/models/V1PolygonDeleteRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PolygonDeleteRequest = instanceOfV1PolygonDeleteRequest; +exports.V1PolygonDeleteRequestFromJSON = V1PolygonDeleteRequestFromJSON; +exports.V1PolygonDeleteRequestFromJSONTyped = V1PolygonDeleteRequestFromJSONTyped; +exports.V1PolygonDeleteRequestToJSON = V1PolygonDeleteRequestToJSON; +/** + * Check if a given object implements the V1PolygonDeleteRequest interface. + */ +function instanceOfV1PolygonDeleteRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1PolygonDeleteRequestFromJSON(json) { + return V1PolygonDeleteRequestFromJSONTyped(json, false); +} +function V1PolygonDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'polygon_id': json['polygon_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1PolygonDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'polygon_id': value['polygon_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1PolygonListRequest.d.ts b/dist/models/V1PolygonListRequest.d.ts new file mode 100644 index 0000000..06da3e4 --- /dev/null +++ b/dist/models/V1PolygonListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PolygonListRequest + */ +export interface V1PolygonListRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1PolygonListRequest + */ + delivery_method_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1PolygonListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1PolygonListRequest interface. + */ +export declare function instanceOfV1PolygonListRequest(value: object): value is V1PolygonListRequest; +export declare function V1PolygonListRequestFromJSON(json: any): V1PolygonListRequest; +export declare function V1PolygonListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonListRequest; +export declare function V1PolygonListRequestToJSON(value?: V1PolygonListRequest | null): any; diff --git a/dist/models/V1PolygonListRequest.js b/dist/models/V1PolygonListRequest.js new file mode 100644 index 0000000..1f41792 --- /dev/null +++ b/dist/models/V1PolygonListRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PolygonListRequest = instanceOfV1PolygonListRequest; +exports.V1PolygonListRequestFromJSON = V1PolygonListRequestFromJSON; +exports.V1PolygonListRequestFromJSONTyped = V1PolygonListRequestFromJSONTyped; +exports.V1PolygonListRequestToJSON = V1PolygonListRequestToJSON; +/** + * Check if a given object implements the V1PolygonListRequest interface. + */ +function instanceOfV1PolygonListRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1PolygonListRequestFromJSON(json) { + return V1PolygonListRequestFromJSONTyped(json, false); +} +function V1PolygonListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1PolygonListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1PolygonListResponse.d.ts b/dist/models/V1PolygonListResponse.d.ts new file mode 100644 index 0000000..c3d943f --- /dev/null +++ b/dist/models/V1PolygonListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PolygonListResponsePolygon } from './PolygonListResponsePolygon'; +/** + * + * @export + * @interface V1PolygonListResponse + */ +export interface V1PolygonListResponse { + /** + * Список полигонов. + * @type {Array} + * @memberof V1PolygonListResponse + */ + polygons?: Array; +} +/** + * Check if a given object implements the V1PolygonListResponse interface. + */ +export declare function instanceOfV1PolygonListResponse(value: object): value is V1PolygonListResponse; +export declare function V1PolygonListResponseFromJSON(json: any): V1PolygonListResponse; +export declare function V1PolygonListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonListResponse; +export declare function V1PolygonListResponseToJSON(value?: V1PolygonListResponse | null): any; diff --git a/dist/models/V1PolygonListResponse.js b/dist/models/V1PolygonListResponse.js new file mode 100644 index 0000000..c42e0e1 --- /dev/null +++ b/dist/models/V1PolygonListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PolygonListResponse = instanceOfV1PolygonListResponse; +exports.V1PolygonListResponseFromJSON = V1PolygonListResponseFromJSON; +exports.V1PolygonListResponseFromJSONTyped = V1PolygonListResponseFromJSONTyped; +exports.V1PolygonListResponseToJSON = V1PolygonListResponseToJSON; +const PolygonListResponsePolygon_1 = require("./PolygonListResponsePolygon"); +/** + * Check if a given object implements the V1PolygonListResponse interface. + */ +function instanceOfV1PolygonListResponse(value) { + return true; +} +function V1PolygonListResponseFromJSON(json) { + return V1PolygonListResponseFromJSONTyped(json, false); +} +function V1PolygonListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonListResponsePolygon_1.PolygonListResponsePolygonFromJSON)), + }; +} +function V1PolygonListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonListResponsePolygon_1.PolygonListResponsePolygonToJSON)), + }; +} diff --git a/dist/models/V1PolygonTimeCoordinatesUpdateRequest.d.ts b/dist/models/V1PolygonTimeCoordinatesUpdateRequest.d.ts new file mode 100644 index 0000000..6ed1cff --- /dev/null +++ b/dist/models/V1PolygonTimeCoordinatesUpdateRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PolygonTimeCoordinatesUpdateRequest + */ +export interface V1PolygonTimeCoordinatesUpdateRequest { + /** + * Новые координаты полигона доставки в формате `[[[lat,long],[lat,long]]]`. + * @type {string} + * @memberof V1PolygonTimeCoordinatesUpdateRequest + */ + coordinates: string; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1PolygonTimeCoordinatesUpdateRequest + */ + delivery_method_id: number; + /** + * Идентификатор полигона. + * @type {number} + * @memberof V1PolygonTimeCoordinatesUpdateRequest + */ + polygon_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1PolygonTimeCoordinatesUpdateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1PolygonTimeCoordinatesUpdateRequest interface. + */ +export declare function instanceOfV1PolygonTimeCoordinatesUpdateRequest(value: object): value is V1PolygonTimeCoordinatesUpdateRequest; +export declare function V1PolygonTimeCoordinatesUpdateRequestFromJSON(json: any): V1PolygonTimeCoordinatesUpdateRequest; +export declare function V1PolygonTimeCoordinatesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonTimeCoordinatesUpdateRequest; +export declare function V1PolygonTimeCoordinatesUpdateRequestToJSON(value?: V1PolygonTimeCoordinatesUpdateRequest | null): any; diff --git a/dist/models/V1PolygonTimeCoordinatesUpdateRequest.js b/dist/models/V1PolygonTimeCoordinatesUpdateRequest.js new file mode 100644 index 0000000..b132a65 --- /dev/null +++ b/dist/models/V1PolygonTimeCoordinatesUpdateRequest.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PolygonTimeCoordinatesUpdateRequest = instanceOfV1PolygonTimeCoordinatesUpdateRequest; +exports.V1PolygonTimeCoordinatesUpdateRequestFromJSON = V1PolygonTimeCoordinatesUpdateRequestFromJSON; +exports.V1PolygonTimeCoordinatesUpdateRequestFromJSONTyped = V1PolygonTimeCoordinatesUpdateRequestFromJSONTyped; +exports.V1PolygonTimeCoordinatesUpdateRequestToJSON = V1PolygonTimeCoordinatesUpdateRequestToJSON; +/** + * Check if a given object implements the V1PolygonTimeCoordinatesUpdateRequest interface. + */ +function instanceOfV1PolygonTimeCoordinatesUpdateRequest(value) { + if (!('coordinates' in value) || value['coordinates'] === undefined) + return false; + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1PolygonTimeCoordinatesUpdateRequestFromJSON(json) { + return V1PolygonTimeCoordinatesUpdateRequestFromJSONTyped(json, false); +} +function V1PolygonTimeCoordinatesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': json['coordinates'], + 'delivery_method_id': json['delivery_method_id'], + 'polygon_id': json['polygon_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1PolygonTimeCoordinatesUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': value['coordinates'], + 'delivery_method_id': value['delivery_method_id'], + 'polygon_id': value['polygon_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1PolygonTimeSetRequest.d.ts b/dist/models/V1PolygonTimeSetRequest.d.ts new file mode 100644 index 0000000..5dd5f3a --- /dev/null +++ b/dist/models/V1PolygonTimeSetRequest.d.ts @@ -0,0 +1,81 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PolygonTimeSetRequest + */ +export interface V1PolygonTimeSetRequest { + /** + * Текущее время доставки в минутах. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + current_time: V1PolygonTimeSetRequestCurrentTimeEnum; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + delivery_method_id: number; + /** + * Новое время доставки в минутах. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + new_time: V1PolygonTimeSetRequestNewTimeEnum; + /** + * Идентификатор полигона. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + polygon_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1PolygonTimeSetRequest + */ + warehouse_id: number; +} +/** + * @export + */ +export declare const V1PolygonTimeSetRequestCurrentTimeEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_45: 45; + readonly NUMBER_60: 60; + readonly NUMBER_90: 90; + readonly NUMBER_120: 120; + readonly NUMBER_150: 150; +}; +export type V1PolygonTimeSetRequestCurrentTimeEnum = typeof V1PolygonTimeSetRequestCurrentTimeEnum[keyof typeof V1PolygonTimeSetRequestCurrentTimeEnum]; +/** + * @export + */ +export declare const V1PolygonTimeSetRequestNewTimeEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_45: 45; + readonly NUMBER_60: 60; + readonly NUMBER_90: 90; + readonly NUMBER_120: 120; + readonly NUMBER_150: 150; +}; +export type V1PolygonTimeSetRequestNewTimeEnum = typeof V1PolygonTimeSetRequestNewTimeEnum[keyof typeof V1PolygonTimeSetRequestNewTimeEnum]; +/** + * Check if a given object implements the V1PolygonTimeSetRequest interface. + */ +export declare function instanceOfV1PolygonTimeSetRequest(value: object): value is V1PolygonTimeSetRequest; +export declare function V1PolygonTimeSetRequestFromJSON(json: any): V1PolygonTimeSetRequest; +export declare function V1PolygonTimeSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PolygonTimeSetRequest; +export declare function V1PolygonTimeSetRequestToJSON(value?: V1PolygonTimeSetRequest | null): any; diff --git a/dist/models/V1PolygonTimeSetRequest.js b/dist/models/V1PolygonTimeSetRequest.js new file mode 100644 index 0000000..62d0457 --- /dev/null +++ b/dist/models/V1PolygonTimeSetRequest.js @@ -0,0 +1,87 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1PolygonTimeSetRequestNewTimeEnum = exports.V1PolygonTimeSetRequestCurrentTimeEnum = void 0; +exports.instanceOfV1PolygonTimeSetRequest = instanceOfV1PolygonTimeSetRequest; +exports.V1PolygonTimeSetRequestFromJSON = V1PolygonTimeSetRequestFromJSON; +exports.V1PolygonTimeSetRequestFromJSONTyped = V1PolygonTimeSetRequestFromJSONTyped; +exports.V1PolygonTimeSetRequestToJSON = V1PolygonTimeSetRequestToJSON; +/** + * @export + */ +exports.V1PolygonTimeSetRequestCurrentTimeEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_45: 45, + NUMBER_60: 60, + NUMBER_90: 90, + NUMBER_120: 120, + NUMBER_150: 150 +}; +/** + * @export + */ +exports.V1PolygonTimeSetRequestNewTimeEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_45: 45, + NUMBER_60: 60, + NUMBER_90: 90, + NUMBER_120: 120, + NUMBER_150: 150 +}; +/** + * Check if a given object implements the V1PolygonTimeSetRequest interface. + */ +function instanceOfV1PolygonTimeSetRequest(value) { + if (!('current_time' in value) || value['current_time'] === undefined) + return false; + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('new_time' in value) || value['new_time'] === undefined) + return false; + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1PolygonTimeSetRequestFromJSON(json) { + return V1PolygonTimeSetRequestFromJSONTyped(json, false); +} +function V1PolygonTimeSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_time': json['current_time'], + 'delivery_method_id': json['delivery_method_id'], + 'new_time': json['new_time'], + 'polygon_id': json['polygon_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1PolygonTimeSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_time': value['current_time'], + 'delivery_method_id': value['delivery_method_id'], + 'new_time': value['new_time'], + 'polygon_id': value['polygon_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1PostingCancelRequest.d.ts b/dist/models/V1PostingCancelRequest.d.ts new file mode 100644 index 0000000..f02573d --- /dev/null +++ b/dist/models/V1PostingCancelRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingCancelRequest + */ +export interface V1PostingCancelRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingCancelRequest + */ + posting_number: string; + /** + * Идентификатор причины отмены. + * @type {number} + * @memberof V1PostingCancelRequest + */ + reason_id: number; + /** + * Дополнительная информация по отмене. + * @type {string} + * @memberof V1PostingCancelRequest + */ + reason_message?: string; +} +/** + * Check if a given object implements the V1PostingCancelRequest interface. + */ +export declare function instanceOfV1PostingCancelRequest(value: object): value is V1PostingCancelRequest; +export declare function V1PostingCancelRequestFromJSON(json: any): V1PostingCancelRequest; +export declare function V1PostingCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingCancelRequest; +export declare function V1PostingCancelRequestToJSON(value?: V1PostingCancelRequest | null): any; diff --git a/dist/models/V1PostingCancelRequest.js b/dist/models/V1PostingCancelRequest.js new file mode 100644 index 0000000..ad9f580 --- /dev/null +++ b/dist/models/V1PostingCancelRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingCancelRequest = instanceOfV1PostingCancelRequest; +exports.V1PostingCancelRequestFromJSON = V1PostingCancelRequestFromJSON; +exports.V1PostingCancelRequestFromJSONTyped = V1PostingCancelRequestFromJSONTyped; +exports.V1PostingCancelRequestToJSON = V1PostingCancelRequestToJSON; +/** + * Check if a given object implements the V1PostingCancelRequest interface. + */ +function instanceOfV1PostingCancelRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('reason_id' in value) || value['reason_id'] === undefined) + return false; + return true; +} +function V1PostingCancelRequestFromJSON(json) { + return V1PostingCancelRequestFromJSONTyped(json, false); +} +function V1PostingCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'reason_id': json['reason_id'], + 'reason_message': json['reason_message'] == null ? undefined : json['reason_message'], + }; +} +function V1PostingCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'reason_id': value['reason_id'], + 'reason_message': value['reason_message'], + }; +} diff --git a/dist/models/V1PostingCancelResponse.d.ts b/dist/models/V1PostingCancelResponse.d.ts new file mode 100644 index 0000000..7cd43f7 --- /dev/null +++ b/dist/models/V1PostingCancelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingCancelResponse + */ +export interface V1PostingCancelResponse { + /** + * Текст сообщения. + * @type {string} + * @memberof V1PostingCancelResponse + */ + message?: string; +} +/** + * Check if a given object implements the V1PostingCancelResponse interface. + */ +export declare function instanceOfV1PostingCancelResponse(value: object): value is V1PostingCancelResponse; +export declare function V1PostingCancelResponseFromJSON(json: any): V1PostingCancelResponse; +export declare function V1PostingCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingCancelResponse; +export declare function V1PostingCancelResponseToJSON(value?: V1PostingCancelResponse | null): any; diff --git a/dist/models/V1PostingCancelResponse.js b/dist/models/V1PostingCancelResponse.js new file mode 100644 index 0000000..d7352c5 --- /dev/null +++ b/dist/models/V1PostingCancelResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingCancelResponse = instanceOfV1PostingCancelResponse; +exports.V1PostingCancelResponseFromJSON = V1PostingCancelResponseFromJSON; +exports.V1PostingCancelResponseFromJSONTyped = V1PostingCancelResponseFromJSONTyped; +exports.V1PostingCancelResponseToJSON = V1PostingCancelResponseToJSON; +/** + * Check if a given object implements the V1PostingCancelResponse interface. + */ +function instanceOfV1PostingCancelResponse(value) { + return true; +} +function V1PostingCancelResponseFromJSON(json) { + return V1PostingCancelResponseFromJSONTyped(json, false); +} +function V1PostingCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function V1PostingCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + }; +} diff --git a/dist/models/V1PostingCancelStatusRequest.d.ts b/dist/models/V1PostingCancelStatusRequest.d.ts new file mode 100644 index 0000000..0d49741 --- /dev/null +++ b/dist/models/V1PostingCancelStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingCancelStatusRequest + */ +export interface V1PostingCancelStatusRequest { + /** + * Идентификатор отправления. + * @type {string} + * @memberof V1PostingCancelStatusRequest + */ + posting_number?: string; +} +/** + * Check if a given object implements the V1PostingCancelStatusRequest interface. + */ +export declare function instanceOfV1PostingCancelStatusRequest(value: object): value is V1PostingCancelStatusRequest; +export declare function V1PostingCancelStatusRequestFromJSON(json: any): V1PostingCancelStatusRequest; +export declare function V1PostingCancelStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingCancelStatusRequest; +export declare function V1PostingCancelStatusRequestToJSON(value?: V1PostingCancelStatusRequest | null): any; diff --git a/dist/models/V1PostingCancelStatusRequest.js b/dist/models/V1PostingCancelStatusRequest.js new file mode 100644 index 0000000..1720882 --- /dev/null +++ b/dist/models/V1PostingCancelStatusRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingCancelStatusRequest = instanceOfV1PostingCancelStatusRequest; +exports.V1PostingCancelStatusRequestFromJSON = V1PostingCancelStatusRequestFromJSON; +exports.V1PostingCancelStatusRequestFromJSONTyped = V1PostingCancelStatusRequestFromJSONTyped; +exports.V1PostingCancelStatusRequestToJSON = V1PostingCancelStatusRequestToJSON; +/** + * Check if a given object implements the V1PostingCancelStatusRequest interface. + */ +function instanceOfV1PostingCancelStatusRequest(value) { + return true; +} +function V1PostingCancelStatusRequestFromJSON(json) { + return V1PostingCancelStatusRequestFromJSONTyped(json, false); +} +function V1PostingCancelStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +function V1PostingCancelStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1PostingCancelStatusResponse.d.ts b/dist/models/V1PostingCancelStatusResponse.d.ts new file mode 100644 index 0000000..879656f --- /dev/null +++ b/dist/models/V1PostingCancelStatusResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingCancelStatusResponse + */ +export interface V1PostingCancelStatusResponse { + /** + * Номер заказа. + * @type {string} + * @memberof V1PostingCancelStatusResponse + */ + order_number?: string; + /** + * Идентификатор отправления. + * @type {Array} + * @memberof V1PostingCancelStatusResponse + */ + posting_number?: Array; + /** + * Статус отмены отправления: + * - `Подтверждена`, + * - `На подтверждении`, + * - `Отклонена`, + * - `Ожидает обработки`. + * + * @type {string} + * @memberof V1PostingCancelStatusResponse + */ + state?: string; +} +/** + * Check if a given object implements the V1PostingCancelStatusResponse interface. + */ +export declare function instanceOfV1PostingCancelStatusResponse(value: object): value is V1PostingCancelStatusResponse; +export declare function V1PostingCancelStatusResponseFromJSON(json: any): V1PostingCancelStatusResponse; +export declare function V1PostingCancelStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingCancelStatusResponse; +export declare function V1PostingCancelStatusResponseToJSON(value?: V1PostingCancelStatusResponse | null): any; diff --git a/dist/models/V1PostingCancelStatusResponse.js b/dist/models/V1PostingCancelStatusResponse.js new file mode 100644 index 0000000..2c37e32 --- /dev/null +++ b/dist/models/V1PostingCancelStatusResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingCancelStatusResponse = instanceOfV1PostingCancelStatusResponse; +exports.V1PostingCancelStatusResponseFromJSON = V1PostingCancelStatusResponseFromJSON; +exports.V1PostingCancelStatusResponseFromJSONTyped = V1PostingCancelStatusResponseFromJSONTyped; +exports.V1PostingCancelStatusResponseToJSON = V1PostingCancelStatusResponseToJSON; +/** + * Check if a given object implements the V1PostingCancelStatusResponse interface. + */ +function instanceOfV1PostingCancelStatusResponse(value) { + return true; +} +function V1PostingCancelStatusResponseFromJSON(json) { + return V1PostingCancelStatusResponseFromJSONTyped(json, false); +} +function V1PostingCancelStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'state': json['state'] == null ? undefined : json['state'], + }; +} +function V1PostingCancelStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'state': value['state'], + }; +} diff --git a/dist/models/V1PostingFBSPickupCodeVerifyRequest.d.ts b/dist/models/V1PostingFBSPickupCodeVerifyRequest.d.ts new file mode 100644 index 0000000..e8d2cbe --- /dev/null +++ b/dist/models/V1PostingFBSPickupCodeVerifyRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFBSPickupCodeVerifyRequest + */ +export interface V1PostingFBSPickupCodeVerifyRequest { + /** + * Код курьера. + * @type {string} + * @memberof V1PostingFBSPickupCodeVerifyRequest + */ + pickup_code: string; + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFBSPickupCodeVerifyRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFBSPickupCodeVerifyRequest interface. + */ +export declare function instanceOfV1PostingFBSPickupCodeVerifyRequest(value: object): value is V1PostingFBSPickupCodeVerifyRequest; +export declare function V1PostingFBSPickupCodeVerifyRequestFromJSON(json: any): V1PostingFBSPickupCodeVerifyRequest; +export declare function V1PostingFBSPickupCodeVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFBSPickupCodeVerifyRequest; +export declare function V1PostingFBSPickupCodeVerifyRequestToJSON(value?: V1PostingFBSPickupCodeVerifyRequest | null): any; diff --git a/dist/models/V1PostingFBSPickupCodeVerifyRequest.js b/dist/models/V1PostingFBSPickupCodeVerifyRequest.js new file mode 100644 index 0000000..7c495b6 --- /dev/null +++ b/dist/models/V1PostingFBSPickupCodeVerifyRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFBSPickupCodeVerifyRequest = instanceOfV1PostingFBSPickupCodeVerifyRequest; +exports.V1PostingFBSPickupCodeVerifyRequestFromJSON = V1PostingFBSPickupCodeVerifyRequestFromJSON; +exports.V1PostingFBSPickupCodeVerifyRequestFromJSONTyped = V1PostingFBSPickupCodeVerifyRequestFromJSONTyped; +exports.V1PostingFBSPickupCodeVerifyRequestToJSON = V1PostingFBSPickupCodeVerifyRequestToJSON; +/** + * Check if a given object implements the V1PostingFBSPickupCodeVerifyRequest interface. + */ +function instanceOfV1PostingFBSPickupCodeVerifyRequest(value) { + if (!('pickup_code' in value) || value['pickup_code'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1PostingFBSPickupCodeVerifyRequestFromJSON(json) { + return V1PostingFBSPickupCodeVerifyRequestFromJSONTyped(json, false); +} +function V1PostingFBSPickupCodeVerifyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'pickup_code': json['pickup_code'], + 'posting_number': json['posting_number'], + }; +} +function V1PostingFBSPickupCodeVerifyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'pickup_code': value['pickup_code'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1PostingFBSPickupCodeVerifyResponse.d.ts b/dist/models/V1PostingFBSPickupCodeVerifyResponse.d.ts new file mode 100644 index 0000000..3fdd811 --- /dev/null +++ b/dist/models/V1PostingFBSPickupCodeVerifyResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFBSPickupCodeVerifyResponse + */ +export interface V1PostingFBSPickupCodeVerifyResponse { + /** + * `true`, если код корректный. + * + * @type {boolean} + * @memberof V1PostingFBSPickupCodeVerifyResponse + */ + valid?: boolean; +} +/** + * Check if a given object implements the V1PostingFBSPickupCodeVerifyResponse interface. + */ +export declare function instanceOfV1PostingFBSPickupCodeVerifyResponse(value: object): value is V1PostingFBSPickupCodeVerifyResponse; +export declare function V1PostingFBSPickupCodeVerifyResponseFromJSON(json: any): V1PostingFBSPickupCodeVerifyResponse; +export declare function V1PostingFBSPickupCodeVerifyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFBSPickupCodeVerifyResponse; +export declare function V1PostingFBSPickupCodeVerifyResponseToJSON(value?: V1PostingFBSPickupCodeVerifyResponse | null): any; diff --git a/dist/models/V1PostingFBSPickupCodeVerifyResponse.js b/dist/models/V1PostingFBSPickupCodeVerifyResponse.js new file mode 100644 index 0000000..63f78e2 --- /dev/null +++ b/dist/models/V1PostingFBSPickupCodeVerifyResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFBSPickupCodeVerifyResponse = instanceOfV1PostingFBSPickupCodeVerifyResponse; +exports.V1PostingFBSPickupCodeVerifyResponseFromJSON = V1PostingFBSPickupCodeVerifyResponseFromJSON; +exports.V1PostingFBSPickupCodeVerifyResponseFromJSONTyped = V1PostingFBSPickupCodeVerifyResponseFromJSONTyped; +exports.V1PostingFBSPickupCodeVerifyResponseToJSON = V1PostingFBSPickupCodeVerifyResponseToJSON; +/** + * Check if a given object implements the V1PostingFBSPickupCodeVerifyResponse interface. + */ +function instanceOfV1PostingFBSPickupCodeVerifyResponse(value) { + return true; +} +function V1PostingFBSPickupCodeVerifyResponseFromJSON(json) { + return V1PostingFBSPickupCodeVerifyResponseFromJSONTyped(json, false); +} +function V1PostingFBSPickupCodeVerifyResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'valid': json['valid'] == null ? undefined : json['valid'], + }; +} +function V1PostingFBSPickupCodeVerifyResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'valid': value['valid'], + }; +} diff --git a/dist/models/V1PostingFbsProductTraceableAttributeRequest.d.ts b/dist/models/V1PostingFbsProductTraceableAttributeRequest.d.ts new file mode 100644 index 0000000..cbe3870 --- /dev/null +++ b/dist/models/V1PostingFbsProductTraceableAttributeRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsProductTraceableAttributeRequest + */ +export interface V1PostingFbsProductTraceableAttributeRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsProductTraceableAttributeRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeRequest interface. + */ +export declare function instanceOfV1PostingFbsProductTraceableAttributeRequest(value: object): value is V1PostingFbsProductTraceableAttributeRequest; +export declare function V1PostingFbsProductTraceableAttributeRequestFromJSON(json: any): V1PostingFbsProductTraceableAttributeRequest; +export declare function V1PostingFbsProductTraceableAttributeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsProductTraceableAttributeRequest; +export declare function V1PostingFbsProductTraceableAttributeRequestToJSON(value?: V1PostingFbsProductTraceableAttributeRequest | null): any; diff --git a/dist/models/V1PostingFbsProductTraceableAttributeRequest.js b/dist/models/V1PostingFbsProductTraceableAttributeRequest.js new file mode 100644 index 0000000..e8408d4 --- /dev/null +++ b/dist/models/V1PostingFbsProductTraceableAttributeRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsProductTraceableAttributeRequest = instanceOfV1PostingFbsProductTraceableAttributeRequest; +exports.V1PostingFbsProductTraceableAttributeRequestFromJSON = V1PostingFbsProductTraceableAttributeRequestFromJSON; +exports.V1PostingFbsProductTraceableAttributeRequestFromJSONTyped = V1PostingFbsProductTraceableAttributeRequestFromJSONTyped; +exports.V1PostingFbsProductTraceableAttributeRequestToJSON = V1PostingFbsProductTraceableAttributeRequestToJSON; +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeRequest interface. + */ +function instanceOfV1PostingFbsProductTraceableAttributeRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1PostingFbsProductTraceableAttributeRequestFromJSON(json) { + return V1PostingFbsProductTraceableAttributeRequestFromJSONTyped(json, false); +} +function V1PostingFbsProductTraceableAttributeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1PostingFbsProductTraceableAttributeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1PostingFbsProductTraceableAttributeResponse.d.ts b/dist/models/V1PostingFbsProductTraceableAttributeResponse.d.ts new file mode 100644 index 0000000..410ccfb --- /dev/null +++ b/dist/models/V1PostingFbsProductTraceableAttributeResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsProductTraceableAttributeResponseProduct } from './V1PostingFbsProductTraceableAttributeResponseProduct'; +/** + * + * @export + * @interface V1PostingFbsProductTraceableAttributeResponse + */ +export interface V1PostingFbsProductTraceableAttributeResponse { + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V1PostingFbsProductTraceableAttributeResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeResponse interface. + */ +export declare function instanceOfV1PostingFbsProductTraceableAttributeResponse(value: object): value is V1PostingFbsProductTraceableAttributeResponse; +export declare function V1PostingFbsProductTraceableAttributeResponseFromJSON(json: any): V1PostingFbsProductTraceableAttributeResponse; +export declare function V1PostingFbsProductTraceableAttributeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsProductTraceableAttributeResponse; +export declare function V1PostingFbsProductTraceableAttributeResponseToJSON(value?: V1PostingFbsProductTraceableAttributeResponse | null): any; diff --git a/dist/models/V1PostingFbsProductTraceableAttributeResponse.js b/dist/models/V1PostingFbsProductTraceableAttributeResponse.js new file mode 100644 index 0000000..b87bd6b --- /dev/null +++ b/dist/models/V1PostingFbsProductTraceableAttributeResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsProductTraceableAttributeResponse = instanceOfV1PostingFbsProductTraceableAttributeResponse; +exports.V1PostingFbsProductTraceableAttributeResponseFromJSON = V1PostingFbsProductTraceableAttributeResponseFromJSON; +exports.V1PostingFbsProductTraceableAttributeResponseFromJSONTyped = V1PostingFbsProductTraceableAttributeResponseFromJSONTyped; +exports.V1PostingFbsProductTraceableAttributeResponseToJSON = V1PostingFbsProductTraceableAttributeResponseToJSON; +const V1PostingFbsProductTraceableAttributeResponseProduct_1 = require("./V1PostingFbsProductTraceableAttributeResponseProduct"); +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeResponse interface. + */ +function instanceOfV1PostingFbsProductTraceableAttributeResponse(value) { + return true; +} +function V1PostingFbsProductTraceableAttributeResponseFromJSON(json) { + return V1PostingFbsProductTraceableAttributeResponseFromJSONTyped(json, false); +} +function V1PostingFbsProductTraceableAttributeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(V1PostingFbsProductTraceableAttributeResponseProduct_1.V1PostingFbsProductTraceableAttributeResponseProductFromJSON)), + }; +} +function V1PostingFbsProductTraceableAttributeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(V1PostingFbsProductTraceableAttributeResponseProduct_1.V1PostingFbsProductTraceableAttributeResponseProductToJSON)), + }; +} diff --git a/dist/models/V1PostingFbsProductTraceableAttributeResponseProduct.d.ts b/dist/models/V1PostingFbsProductTraceableAttributeResponseProduct.d.ts new file mode 100644 index 0000000..e005dbe --- /dev/null +++ b/dist/models/V1PostingFbsProductTraceableAttributeResponseProduct.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsProductTraceableAttributeResponseProduct + */ +export interface V1PostingFbsProductTraceableAttributeResponseProduct { + /** + * Обязательные атрибуты. + * @type {Array} + * @memberof V1PostingFbsProductTraceableAttributeResponseProduct + */ + required_attributes?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1PostingFbsProductTraceableAttributeResponseProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeResponseProduct interface. + */ +export declare function instanceOfV1PostingFbsProductTraceableAttributeResponseProduct(value: object): value is V1PostingFbsProductTraceableAttributeResponseProduct; +export declare function V1PostingFbsProductTraceableAttributeResponseProductFromJSON(json: any): V1PostingFbsProductTraceableAttributeResponseProduct; +export declare function V1PostingFbsProductTraceableAttributeResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsProductTraceableAttributeResponseProduct; +export declare function V1PostingFbsProductTraceableAttributeResponseProductToJSON(value?: V1PostingFbsProductTraceableAttributeResponseProduct | null): any; diff --git a/dist/models/V1PostingFbsProductTraceableAttributeResponseProduct.js b/dist/models/V1PostingFbsProductTraceableAttributeResponseProduct.js new file mode 100644 index 0000000..0b5b27c --- /dev/null +++ b/dist/models/V1PostingFbsProductTraceableAttributeResponseProduct.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsProductTraceableAttributeResponseProduct = instanceOfV1PostingFbsProductTraceableAttributeResponseProduct; +exports.V1PostingFbsProductTraceableAttributeResponseProductFromJSON = V1PostingFbsProductTraceableAttributeResponseProductFromJSON; +exports.V1PostingFbsProductTraceableAttributeResponseProductFromJSONTyped = V1PostingFbsProductTraceableAttributeResponseProductFromJSONTyped; +exports.V1PostingFbsProductTraceableAttributeResponseProductToJSON = V1PostingFbsProductTraceableAttributeResponseProductToJSON; +/** + * Check if a given object implements the V1PostingFbsProductTraceableAttributeResponseProduct interface. + */ +function instanceOfV1PostingFbsProductTraceableAttributeResponseProduct(value) { + return true; +} +function V1PostingFbsProductTraceableAttributeResponseProductFromJSON(json) { + return V1PostingFbsProductTraceableAttributeResponseProductFromJSONTyped(json, false); +} +function V1PostingFbsProductTraceableAttributeResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'required_attributes': json['required_attributes'] == null ? undefined : json['required_attributes'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1PostingFbsProductTraceableAttributeResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'required_attributes': value['required_attributes'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1PostingFbsSplitRequest.d.ts b/dist/models/V1PostingFbsSplitRequest.d.ts new file mode 100644 index 0000000..89cd219 --- /dev/null +++ b/dist/models/V1PostingFbsSplitRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsSplitRequestPosting } from './V1PostingFbsSplitRequestPosting'; +/** + * + * @export + * @interface V1PostingFbsSplitRequest + */ +export interface V1PostingFbsSplitRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsSplitRequest + */ + posting_number: string; + /** + * Список отправлений, на которые поделится заказ. За один запрос можно разделить один заказ. + * @type {Array} + * @memberof V1PostingFbsSplitRequest + */ + postings: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitRequest interface. + */ +export declare function instanceOfV1PostingFbsSplitRequest(value: object): value is V1PostingFbsSplitRequest; +export declare function V1PostingFbsSplitRequestFromJSON(json: any): V1PostingFbsSplitRequest; +export declare function V1PostingFbsSplitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitRequest; +export declare function V1PostingFbsSplitRequestToJSON(value?: V1PostingFbsSplitRequest | null): any; diff --git a/dist/models/V1PostingFbsSplitRequest.js b/dist/models/V1PostingFbsSplitRequest.js new file mode 100644 index 0000000..e91ad4f --- /dev/null +++ b/dist/models/V1PostingFbsSplitRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsSplitRequest = instanceOfV1PostingFbsSplitRequest; +exports.V1PostingFbsSplitRequestFromJSON = V1PostingFbsSplitRequestFromJSON; +exports.V1PostingFbsSplitRequestFromJSONTyped = V1PostingFbsSplitRequestFromJSONTyped; +exports.V1PostingFbsSplitRequestToJSON = V1PostingFbsSplitRequestToJSON; +const V1PostingFbsSplitRequestPosting_1 = require("./V1PostingFbsSplitRequestPosting"); +/** + * Check if a given object implements the V1PostingFbsSplitRequest interface. + */ +function instanceOfV1PostingFbsSplitRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('postings' in value) || value['postings'] === undefined) + return false; + return true; +} +function V1PostingFbsSplitRequestFromJSON(json) { + return V1PostingFbsSplitRequestFromJSONTyped(json, false); +} +function V1PostingFbsSplitRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'postings': (json['postings'].map(V1PostingFbsSplitRequestPosting_1.V1PostingFbsSplitRequestPostingFromJSON)), + }; +} +function V1PostingFbsSplitRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'postings': (value['postings'].map(V1PostingFbsSplitRequestPosting_1.V1PostingFbsSplitRequestPostingToJSON)), + }; +} diff --git a/dist/models/V1PostingFbsSplitRequestPosting.d.ts b/dist/models/V1PostingFbsSplitRequestPosting.d.ts new file mode 100644 index 0000000..7f8aff9 --- /dev/null +++ b/dist/models/V1PostingFbsSplitRequestPosting.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductFbsSplit } from './V1ProductFbsSplit'; +/** + * + * @export + * @interface V1PostingFbsSplitRequestPosting + */ +export interface V1PostingFbsSplitRequestPosting { + /** + * Список товаров в заказе. + * @type {Array} + * @memberof V1PostingFbsSplitRequestPosting + */ + products: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitRequestPosting interface. + */ +export declare function instanceOfV1PostingFbsSplitRequestPosting(value: object): value is V1PostingFbsSplitRequestPosting; +export declare function V1PostingFbsSplitRequestPostingFromJSON(json: any): V1PostingFbsSplitRequestPosting; +export declare function V1PostingFbsSplitRequestPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitRequestPosting; +export declare function V1PostingFbsSplitRequestPostingToJSON(value?: V1PostingFbsSplitRequestPosting | null): any; diff --git a/dist/models/V1PostingFbsSplitRequestPosting.js b/dist/models/V1PostingFbsSplitRequestPosting.js new file mode 100644 index 0000000..1707967 --- /dev/null +++ b/dist/models/V1PostingFbsSplitRequestPosting.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsSplitRequestPosting = instanceOfV1PostingFbsSplitRequestPosting; +exports.V1PostingFbsSplitRequestPostingFromJSON = V1PostingFbsSplitRequestPostingFromJSON; +exports.V1PostingFbsSplitRequestPostingFromJSONTyped = V1PostingFbsSplitRequestPostingFromJSONTyped; +exports.V1PostingFbsSplitRequestPostingToJSON = V1PostingFbsSplitRequestPostingToJSON; +const V1ProductFbsSplit_1 = require("./V1ProductFbsSplit"); +/** + * Check if a given object implements the V1PostingFbsSplitRequestPosting interface. + */ +function instanceOfV1PostingFbsSplitRequestPosting(value) { + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +function V1PostingFbsSplitRequestPostingFromJSON(json) { + return V1PostingFbsSplitRequestPostingFromJSONTyped(json, false); +} +function V1PostingFbsSplitRequestPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': (json['products'].map(V1ProductFbsSplit_1.V1ProductFbsSplitFromJSON)), + }; +} +function V1PostingFbsSplitRequestPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': (value['products'].map(V1ProductFbsSplit_1.V1ProductFbsSplitToJSON)), + }; +} diff --git a/dist/models/V1PostingFbsSplitResponse.d.ts b/dist/models/V1PostingFbsSplitResponse.d.ts new file mode 100644 index 0000000..5bf6884 --- /dev/null +++ b/dist/models/V1PostingFbsSplitResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsSplitResponsePostingParent } from './V1PostingFbsSplitResponsePostingParent'; +import type { V1PostingFbsSplitResponsePosting } from './V1PostingFbsSplitResponsePosting'; +/** + * + * @export + * @interface V1PostingFbsSplitResponse + */ +export interface V1PostingFbsSplitResponse { + /** + * + * @type {V1PostingFbsSplitResponsePostingParent} + * @memberof V1PostingFbsSplitResponse + */ + parent_posting?: V1PostingFbsSplitResponsePostingParent; + /** + * Список отправлений, на которые разделился заказ. + * @type {Array} + * @memberof V1PostingFbsSplitResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitResponse interface. + */ +export declare function instanceOfV1PostingFbsSplitResponse(value: object): value is V1PostingFbsSplitResponse; +export declare function V1PostingFbsSplitResponseFromJSON(json: any): V1PostingFbsSplitResponse; +export declare function V1PostingFbsSplitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitResponse; +export declare function V1PostingFbsSplitResponseToJSON(value?: V1PostingFbsSplitResponse | null): any; diff --git a/dist/models/V1PostingFbsSplitResponse.js b/dist/models/V1PostingFbsSplitResponse.js new file mode 100644 index 0000000..a99182c --- /dev/null +++ b/dist/models/V1PostingFbsSplitResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsSplitResponse = instanceOfV1PostingFbsSplitResponse; +exports.V1PostingFbsSplitResponseFromJSON = V1PostingFbsSplitResponseFromJSON; +exports.V1PostingFbsSplitResponseFromJSONTyped = V1PostingFbsSplitResponseFromJSONTyped; +exports.V1PostingFbsSplitResponseToJSON = V1PostingFbsSplitResponseToJSON; +const V1PostingFbsSplitResponsePostingParent_1 = require("./V1PostingFbsSplitResponsePostingParent"); +const V1PostingFbsSplitResponsePosting_1 = require("./V1PostingFbsSplitResponsePosting"); +/** + * Check if a given object implements the V1PostingFbsSplitResponse interface. + */ +function instanceOfV1PostingFbsSplitResponse(value) { + return true; +} +function V1PostingFbsSplitResponseFromJSON(json) { + return V1PostingFbsSplitResponseFromJSONTyped(json, false); +} +function V1PostingFbsSplitResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'parent_posting': json['parent_posting'] == null ? undefined : (0, V1PostingFbsSplitResponsePostingParent_1.V1PostingFbsSplitResponsePostingParentFromJSON)(json['parent_posting']), + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V1PostingFbsSplitResponsePosting_1.V1PostingFbsSplitResponsePostingFromJSON)), + }; +} +function V1PostingFbsSplitResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'parent_posting': (0, V1PostingFbsSplitResponsePostingParent_1.V1PostingFbsSplitResponsePostingParentToJSON)(value['parent_posting']), + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V1PostingFbsSplitResponsePosting_1.V1PostingFbsSplitResponsePostingToJSON)), + }; +} diff --git a/dist/models/V1PostingFbsSplitResponsePosting.d.ts b/dist/models/V1PostingFbsSplitResponsePosting.d.ts new file mode 100644 index 0000000..a29cd1c --- /dev/null +++ b/dist/models/V1PostingFbsSplitResponsePosting.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductFbsSplit } from './V1ProductFbsSplit'; +/** + * + * @export + * @interface V1PostingFbsSplitResponsePosting + */ +export interface V1PostingFbsSplitResponsePosting { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsSplitResponsePosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V1PostingFbsSplitResponsePosting + */ + products?: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitResponsePosting interface. + */ +export declare function instanceOfV1PostingFbsSplitResponsePosting(value: object): value is V1PostingFbsSplitResponsePosting; +export declare function V1PostingFbsSplitResponsePostingFromJSON(json: any): V1PostingFbsSplitResponsePosting; +export declare function V1PostingFbsSplitResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitResponsePosting; +export declare function V1PostingFbsSplitResponsePostingToJSON(value?: V1PostingFbsSplitResponsePosting | null): any; diff --git a/dist/models/V1PostingFbsSplitResponsePosting.js b/dist/models/V1PostingFbsSplitResponsePosting.js new file mode 100644 index 0000000..df3a035 --- /dev/null +++ b/dist/models/V1PostingFbsSplitResponsePosting.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsSplitResponsePosting = instanceOfV1PostingFbsSplitResponsePosting; +exports.V1PostingFbsSplitResponsePostingFromJSON = V1PostingFbsSplitResponsePostingFromJSON; +exports.V1PostingFbsSplitResponsePostingFromJSONTyped = V1PostingFbsSplitResponsePostingFromJSONTyped; +exports.V1PostingFbsSplitResponsePostingToJSON = V1PostingFbsSplitResponsePostingToJSON; +const V1ProductFbsSplit_1 = require("./V1ProductFbsSplit"); +/** + * Check if a given object implements the V1PostingFbsSplitResponsePosting interface. + */ +function instanceOfV1PostingFbsSplitResponsePosting(value) { + return true; +} +function V1PostingFbsSplitResponsePostingFromJSON(json) { + return V1PostingFbsSplitResponsePostingFromJSONTyped(json, false); +} +function V1PostingFbsSplitResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1ProductFbsSplit_1.V1ProductFbsSplitFromJSON)), + }; +} +function V1PostingFbsSplitResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1ProductFbsSplit_1.V1ProductFbsSplitToJSON)), + }; +} diff --git a/dist/models/V1PostingFbsSplitResponsePostingParent.d.ts b/dist/models/V1PostingFbsSplitResponsePostingParent.d.ts new file mode 100644 index 0000000..9ce421d --- /dev/null +++ b/dist/models/V1PostingFbsSplitResponsePostingParent.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductFbsSplit } from './V1ProductFbsSplit'; +/** + * Информация об изначальном отправлении. + * @export + * @interface V1PostingFbsSplitResponsePostingParent + */ +export interface V1PostingFbsSplitResponsePostingParent { + /** + * Номер изначального отправления. + * @type {string} + * @memberof V1PostingFbsSplitResponsePostingParent + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V1PostingFbsSplitResponsePostingParent + */ + products?: Array; +} +/** + * Check if a given object implements the V1PostingFbsSplitResponsePostingParent interface. + */ +export declare function instanceOfV1PostingFbsSplitResponsePostingParent(value: object): value is V1PostingFbsSplitResponsePostingParent; +export declare function V1PostingFbsSplitResponsePostingParentFromJSON(json: any): V1PostingFbsSplitResponsePostingParent; +export declare function V1PostingFbsSplitResponsePostingParentFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsSplitResponsePostingParent; +export declare function V1PostingFbsSplitResponsePostingParentToJSON(value?: V1PostingFbsSplitResponsePostingParent | null): any; diff --git a/dist/models/V1PostingFbsSplitResponsePostingParent.js b/dist/models/V1PostingFbsSplitResponsePostingParent.js new file mode 100644 index 0000000..ea5dd85 --- /dev/null +++ b/dist/models/V1PostingFbsSplitResponsePostingParent.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsSplitResponsePostingParent = instanceOfV1PostingFbsSplitResponsePostingParent; +exports.V1PostingFbsSplitResponsePostingParentFromJSON = V1PostingFbsSplitResponsePostingParentFromJSON; +exports.V1PostingFbsSplitResponsePostingParentFromJSONTyped = V1PostingFbsSplitResponsePostingParentFromJSONTyped; +exports.V1PostingFbsSplitResponsePostingParentToJSON = V1PostingFbsSplitResponsePostingParentToJSON; +const V1ProductFbsSplit_1 = require("./V1ProductFbsSplit"); +/** + * Check if a given object implements the V1PostingFbsSplitResponsePostingParent interface. + */ +function instanceOfV1PostingFbsSplitResponsePostingParent(value) { + return true; +} +function V1PostingFbsSplitResponsePostingParentFromJSON(json) { + return V1PostingFbsSplitResponsePostingParentFromJSONTyped(json, false); +} +function V1PostingFbsSplitResponsePostingParentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1ProductFbsSplit_1.V1ProductFbsSplitFromJSON)), + }; +} +function V1PostingFbsSplitResponsePostingParentToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1ProductFbsSplit_1.V1ProductFbsSplitToJSON)), + }; +} diff --git a/dist/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.d.ts b/dist/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.d.ts new file mode 100644 index 0000000..7e662e8 --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период дат, доступных для переноса. + * @export + * @interface V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval + */ +export interface V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval { + /** + * Дата начала периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`. + * + * @type {string} + * @memberof V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval + */ + begin?: string; + /** + * Дата конца периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`. + * + * @type {string} + * @memberof V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval + */ + end?: string; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval interface. + */ +export declare function instanceOfV1PostingFbsTimeslotChangeRestrictionsDeliveryInterval(value: object): value is V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; +export declare function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON(json: any): V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; +export declare function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; +export declare function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON(value?: V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval | null): any; diff --git a/dist/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.js b/dist/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.js new file mode 100644 index 0000000..4660e63 --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTimeslotChangeRestrictionsDeliveryInterval = instanceOfV1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; +exports.V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON = V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON; +exports.V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSONTyped = V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSONTyped; +exports.V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON = V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON; +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval interface. + */ +function instanceOfV1PostingFbsTimeslotChangeRestrictionsDeliveryInterval(value) { + return true; +} +function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON(json) { + return V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSONTyped(json, false); +} +function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'begin': json['begin'] == null ? undefined : json['begin'], + 'end': json['end'] == null ? undefined : json['end'], + }; +} +function V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON(value) { + if (value == null) { + return value; + } + return { + 'begin': value['begin'], + 'end': value['end'], + }; +} diff --git a/dist/models/V1PostingFbsTimeslotChangeRestrictionsRequest.d.ts b/dist/models/V1PostingFbsTimeslotChangeRestrictionsRequest.d.ts new file mode 100644 index 0000000..0e77f79 --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotChangeRestrictionsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsTimeslotChangeRestrictionsRequest + */ +export interface V1PostingFbsTimeslotChangeRestrictionsRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsTimeslotChangeRestrictionsRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsRequest interface. + */ +export declare function instanceOfV1PostingFbsTimeslotChangeRestrictionsRequest(value: object): value is V1PostingFbsTimeslotChangeRestrictionsRequest; +export declare function V1PostingFbsTimeslotChangeRestrictionsRequestFromJSON(json: any): V1PostingFbsTimeslotChangeRestrictionsRequest; +export declare function V1PostingFbsTimeslotChangeRestrictionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotChangeRestrictionsRequest; +export declare function V1PostingFbsTimeslotChangeRestrictionsRequestToJSON(value?: V1PostingFbsTimeslotChangeRestrictionsRequest | null): any; diff --git a/dist/models/V1PostingFbsTimeslotChangeRestrictionsRequest.js b/dist/models/V1PostingFbsTimeslotChangeRestrictionsRequest.js new file mode 100644 index 0000000..abe8758 --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotChangeRestrictionsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTimeslotChangeRestrictionsRequest = instanceOfV1PostingFbsTimeslotChangeRestrictionsRequest; +exports.V1PostingFbsTimeslotChangeRestrictionsRequestFromJSON = V1PostingFbsTimeslotChangeRestrictionsRequestFromJSON; +exports.V1PostingFbsTimeslotChangeRestrictionsRequestFromJSONTyped = V1PostingFbsTimeslotChangeRestrictionsRequestFromJSONTyped; +exports.V1PostingFbsTimeslotChangeRestrictionsRequestToJSON = V1PostingFbsTimeslotChangeRestrictionsRequestToJSON; +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsRequest interface. + */ +function instanceOfV1PostingFbsTimeslotChangeRestrictionsRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1PostingFbsTimeslotChangeRestrictionsRequestFromJSON(json) { + return V1PostingFbsTimeslotChangeRestrictionsRequestFromJSONTyped(json, false); +} +function V1PostingFbsTimeslotChangeRestrictionsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1PostingFbsTimeslotChangeRestrictionsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1PostingFbsTimeslotChangeRestrictionsResponse.d.ts b/dist/models/V1PostingFbsTimeslotChangeRestrictionsResponse.d.ts new file mode 100644 index 0000000..7cf174f --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotChangeRestrictionsResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval } from './V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval'; +/** + * + * @export + * @interface V1PostingFbsTimeslotChangeRestrictionsResponse + */ +export interface V1PostingFbsTimeslotChangeRestrictionsResponse { + /** + * + * @type {V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval} + * @memberof V1PostingFbsTimeslotChangeRestrictionsResponse + */ + delivery_interval?: V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval; + /** + * Количество оставшихся переносов. + * @type {number} + * @memberof V1PostingFbsTimeslotChangeRestrictionsResponse + */ + remaining_changes_count?: number; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsResponse interface. + */ +export declare function instanceOfV1PostingFbsTimeslotChangeRestrictionsResponse(value: object): value is V1PostingFbsTimeslotChangeRestrictionsResponse; +export declare function V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON(json: any): V1PostingFbsTimeslotChangeRestrictionsResponse; +export declare function V1PostingFbsTimeslotChangeRestrictionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotChangeRestrictionsResponse; +export declare function V1PostingFbsTimeslotChangeRestrictionsResponseToJSON(value?: V1PostingFbsTimeslotChangeRestrictionsResponse | null): any; diff --git a/dist/models/V1PostingFbsTimeslotChangeRestrictionsResponse.js b/dist/models/V1PostingFbsTimeslotChangeRestrictionsResponse.js new file mode 100644 index 0000000..15ff8ea --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotChangeRestrictionsResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTimeslotChangeRestrictionsResponse = instanceOfV1PostingFbsTimeslotChangeRestrictionsResponse; +exports.V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON = V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON; +exports.V1PostingFbsTimeslotChangeRestrictionsResponseFromJSONTyped = V1PostingFbsTimeslotChangeRestrictionsResponseFromJSONTyped; +exports.V1PostingFbsTimeslotChangeRestrictionsResponseToJSON = V1PostingFbsTimeslotChangeRestrictionsResponseToJSON; +const V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval_1 = require("./V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval"); +/** + * Check if a given object implements the V1PostingFbsTimeslotChangeRestrictionsResponse interface. + */ +function instanceOfV1PostingFbsTimeslotChangeRestrictionsResponse(value) { + return true; +} +function V1PostingFbsTimeslotChangeRestrictionsResponseFromJSON(json) { + return V1PostingFbsTimeslotChangeRestrictionsResponseFromJSONTyped(json, false); +} +function V1PostingFbsTimeslotChangeRestrictionsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_interval': json['delivery_interval'] == null ? undefined : (0, V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval_1.V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalFromJSON)(json['delivery_interval']), + 'remaining_changes_count': json['remaining_changes_count'] == null ? undefined : json['remaining_changes_count'], + }; +} +function V1PostingFbsTimeslotChangeRestrictionsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_interval': (0, V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval_1.V1PostingFbsTimeslotChangeRestrictionsDeliveryIntervalToJSON)(value['delivery_interval']), + 'remaining_changes_count': value['remaining_changes_count'], + }; +} diff --git a/dist/models/V1PostingFbsTimeslotSetNewTimeslot.d.ts b/dist/models/V1PostingFbsTimeslotSetNewTimeslot.d.ts new file mode 100644 index 0000000..b673e85 --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotSetNewTimeslot.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Новый период для даты доставки. + * @export + * @interface V1PostingFbsTimeslotSetNewTimeslot + */ +export interface V1PostingFbsTimeslotSetNewTimeslot { + /** + * Дата начала периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`. + * + * @type {string} + * @memberof V1PostingFbsTimeslotSetNewTimeslot + */ + from: string; + /** + * Дата конца периода. + * + * Формат: `YYYY-MM-DDTHH:mm:ss.sssZ`. + * + * @type {string} + * @memberof V1PostingFbsTimeslotSetNewTimeslot + */ + to: string; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotSetNewTimeslot interface. + */ +export declare function instanceOfV1PostingFbsTimeslotSetNewTimeslot(value: object): value is V1PostingFbsTimeslotSetNewTimeslot; +export declare function V1PostingFbsTimeslotSetNewTimeslotFromJSON(json: any): V1PostingFbsTimeslotSetNewTimeslot; +export declare function V1PostingFbsTimeslotSetNewTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotSetNewTimeslot; +export declare function V1PostingFbsTimeslotSetNewTimeslotToJSON(value?: V1PostingFbsTimeslotSetNewTimeslot | null): any; diff --git a/dist/models/V1PostingFbsTimeslotSetNewTimeslot.js b/dist/models/V1PostingFbsTimeslotSetNewTimeslot.js new file mode 100644 index 0000000..77c6aea --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotSetNewTimeslot.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTimeslotSetNewTimeslot = instanceOfV1PostingFbsTimeslotSetNewTimeslot; +exports.V1PostingFbsTimeslotSetNewTimeslotFromJSON = V1PostingFbsTimeslotSetNewTimeslotFromJSON; +exports.V1PostingFbsTimeslotSetNewTimeslotFromJSONTyped = V1PostingFbsTimeslotSetNewTimeslotFromJSONTyped; +exports.V1PostingFbsTimeslotSetNewTimeslotToJSON = V1PostingFbsTimeslotSetNewTimeslotToJSON; +/** + * Check if a given object implements the V1PostingFbsTimeslotSetNewTimeslot interface. + */ +function instanceOfV1PostingFbsTimeslotSetNewTimeslot(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function V1PostingFbsTimeslotSetNewTimeslotFromJSON(json) { + return V1PostingFbsTimeslotSetNewTimeslotFromJSONTyped(json, false); +} +function V1PostingFbsTimeslotSetNewTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +function V1PostingFbsTimeslotSetNewTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1PostingFbsTimeslotSetRequest.d.ts b/dist/models/V1PostingFbsTimeslotSetRequest.d.ts new file mode 100644 index 0000000..999991f --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotSetRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsTimeslotSetNewTimeslot } from './V1PostingFbsTimeslotSetNewTimeslot'; +/** + * + * @export + * @interface V1PostingFbsTimeslotSetRequest + */ +export interface V1PostingFbsTimeslotSetRequest { + /** + * + * @type {V1PostingFbsTimeslotSetNewTimeslot} + * @memberof V1PostingFbsTimeslotSetRequest + */ + new_timeslot: V1PostingFbsTimeslotSetNewTimeslot; + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsTimeslotSetRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotSetRequest interface. + */ +export declare function instanceOfV1PostingFbsTimeslotSetRequest(value: object): value is V1PostingFbsTimeslotSetRequest; +export declare function V1PostingFbsTimeslotSetRequestFromJSON(json: any): V1PostingFbsTimeslotSetRequest; +export declare function V1PostingFbsTimeslotSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotSetRequest; +export declare function V1PostingFbsTimeslotSetRequestToJSON(value?: V1PostingFbsTimeslotSetRequest | null): any; diff --git a/dist/models/V1PostingFbsTimeslotSetRequest.js b/dist/models/V1PostingFbsTimeslotSetRequest.js new file mode 100644 index 0000000..a2c077f --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotSetRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTimeslotSetRequest = instanceOfV1PostingFbsTimeslotSetRequest; +exports.V1PostingFbsTimeslotSetRequestFromJSON = V1PostingFbsTimeslotSetRequestFromJSON; +exports.V1PostingFbsTimeslotSetRequestFromJSONTyped = V1PostingFbsTimeslotSetRequestFromJSONTyped; +exports.V1PostingFbsTimeslotSetRequestToJSON = V1PostingFbsTimeslotSetRequestToJSON; +const V1PostingFbsTimeslotSetNewTimeslot_1 = require("./V1PostingFbsTimeslotSetNewTimeslot"); +/** + * Check if a given object implements the V1PostingFbsTimeslotSetRequest interface. + */ +function instanceOfV1PostingFbsTimeslotSetRequest(value) { + if (!('new_timeslot' in value) || value['new_timeslot'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1PostingFbsTimeslotSetRequestFromJSON(json) { + return V1PostingFbsTimeslotSetRequestFromJSONTyped(json, false); +} +function V1PostingFbsTimeslotSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'new_timeslot': (0, V1PostingFbsTimeslotSetNewTimeslot_1.V1PostingFbsTimeslotSetNewTimeslotFromJSON)(json['new_timeslot']), + 'posting_number': json['posting_number'], + }; +} +function V1PostingFbsTimeslotSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'new_timeslot': (0, V1PostingFbsTimeslotSetNewTimeslot_1.V1PostingFbsTimeslotSetNewTimeslotToJSON)(value['new_timeslot']), + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1PostingFbsTimeslotSetResponse.d.ts b/dist/models/V1PostingFbsTimeslotSetResponse.d.ts new file mode 100644 index 0000000..65a6ff4 --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotSetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsTimeslotSetResponse + */ +export interface V1PostingFbsTimeslotSetResponse { + /** + * `true`, если дата изменена. + * + * @type {boolean} + * @memberof V1PostingFbsTimeslotSetResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the V1PostingFbsTimeslotSetResponse interface. + */ +export declare function instanceOfV1PostingFbsTimeslotSetResponse(value: object): value is V1PostingFbsTimeslotSetResponse; +export declare function V1PostingFbsTimeslotSetResponseFromJSON(json: any): V1PostingFbsTimeslotSetResponse; +export declare function V1PostingFbsTimeslotSetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTimeslotSetResponse; +export declare function V1PostingFbsTimeslotSetResponseToJSON(value?: V1PostingFbsTimeslotSetResponse | null): any; diff --git a/dist/models/V1PostingFbsTimeslotSetResponse.js b/dist/models/V1PostingFbsTimeslotSetResponse.js new file mode 100644 index 0000000..697d353 --- /dev/null +++ b/dist/models/V1PostingFbsTimeslotSetResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTimeslotSetResponse = instanceOfV1PostingFbsTimeslotSetResponse; +exports.V1PostingFbsTimeslotSetResponseFromJSON = V1PostingFbsTimeslotSetResponseFromJSON; +exports.V1PostingFbsTimeslotSetResponseFromJSONTyped = V1PostingFbsTimeslotSetResponseFromJSONTyped; +exports.V1PostingFbsTimeslotSetResponseToJSON = V1PostingFbsTimeslotSetResponseToJSON; +/** + * Check if a given object implements the V1PostingFbsTimeslotSetResponse interface. + */ +function instanceOfV1PostingFbsTimeslotSetResponse(value) { + return true; +} +function V1PostingFbsTimeslotSetResponseFromJSON(json) { + return V1PostingFbsTimeslotSetResponseFromJSONTyped(json, false); +} +function V1PostingFbsTimeslotSetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function V1PostingFbsTimeslotSetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/V1PostingFbsTraceableSplitRequest.d.ts b/dist/models/V1PostingFbsTraceableSplitRequest.d.ts new file mode 100644 index 0000000..f30f3ac --- /dev/null +++ b/dist/models/V1PostingFbsTraceableSplitRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingFbsTraceableSplitRequest + */ +export interface V1PostingFbsTraceableSplitRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsTraceableSplitRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1PostingFbsTraceableSplitRequest interface. + */ +export declare function instanceOfV1PostingFbsTraceableSplitRequest(value: object): value is V1PostingFbsTraceableSplitRequest; +export declare function V1PostingFbsTraceableSplitRequestFromJSON(json: any): V1PostingFbsTraceableSplitRequest; +export declare function V1PostingFbsTraceableSplitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTraceableSplitRequest; +export declare function V1PostingFbsTraceableSplitRequestToJSON(value?: V1PostingFbsTraceableSplitRequest | null): any; diff --git a/dist/models/V1PostingFbsTraceableSplitRequest.js b/dist/models/V1PostingFbsTraceableSplitRequest.js new file mode 100644 index 0000000..283e08b --- /dev/null +++ b/dist/models/V1PostingFbsTraceableSplitRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTraceableSplitRequest = instanceOfV1PostingFbsTraceableSplitRequest; +exports.V1PostingFbsTraceableSplitRequestFromJSON = V1PostingFbsTraceableSplitRequestFromJSON; +exports.V1PostingFbsTraceableSplitRequestFromJSONTyped = V1PostingFbsTraceableSplitRequestFromJSONTyped; +exports.V1PostingFbsTraceableSplitRequestToJSON = V1PostingFbsTraceableSplitRequestToJSON; +/** + * Check if a given object implements the V1PostingFbsTraceableSplitRequest interface. + */ +function instanceOfV1PostingFbsTraceableSplitRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1PostingFbsTraceableSplitRequestFromJSON(json) { + return V1PostingFbsTraceableSplitRequestFromJSONTyped(json, false); +} +function V1PostingFbsTraceableSplitRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V1PostingFbsTraceableSplitRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1PostingFbsTraceableSplitResponse.d.ts b/dist/models/V1PostingFbsTraceableSplitResponse.d.ts new file mode 100644 index 0000000..dfb37a8 --- /dev/null +++ b/dist/models/V1PostingFbsTraceableSplitResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingFbsTraceableSplitResponsePosting } from './V1PostingFbsTraceableSplitResponsePosting'; +/** + * + * @export + * @interface V1PostingFbsTraceableSplitResponse + */ +export interface V1PostingFbsTraceableSplitResponse { + /** + * Информация об отправлениях. + * @type {Array} + * @memberof V1PostingFbsTraceableSplitResponse + */ + postings?: Array; +} +/** + * Check if a given object implements the V1PostingFbsTraceableSplitResponse interface. + */ +export declare function instanceOfV1PostingFbsTraceableSplitResponse(value: object): value is V1PostingFbsTraceableSplitResponse; +export declare function V1PostingFbsTraceableSplitResponseFromJSON(json: any): V1PostingFbsTraceableSplitResponse; +export declare function V1PostingFbsTraceableSplitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTraceableSplitResponse; +export declare function V1PostingFbsTraceableSplitResponseToJSON(value?: V1PostingFbsTraceableSplitResponse | null): any; diff --git a/dist/models/V1PostingFbsTraceableSplitResponse.js b/dist/models/V1PostingFbsTraceableSplitResponse.js new file mode 100644 index 0000000..db43cb2 --- /dev/null +++ b/dist/models/V1PostingFbsTraceableSplitResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTraceableSplitResponse = instanceOfV1PostingFbsTraceableSplitResponse; +exports.V1PostingFbsTraceableSplitResponseFromJSON = V1PostingFbsTraceableSplitResponseFromJSON; +exports.V1PostingFbsTraceableSplitResponseFromJSONTyped = V1PostingFbsTraceableSplitResponseFromJSONTyped; +exports.V1PostingFbsTraceableSplitResponseToJSON = V1PostingFbsTraceableSplitResponseToJSON; +const V1PostingFbsTraceableSplitResponsePosting_1 = require("./V1PostingFbsTraceableSplitResponsePosting"); +/** + * Check if a given object implements the V1PostingFbsTraceableSplitResponse interface. + */ +function instanceOfV1PostingFbsTraceableSplitResponse(value) { + return true; +} +function V1PostingFbsTraceableSplitResponseFromJSON(json) { + return V1PostingFbsTraceableSplitResponseFromJSONTyped(json, false); +} +function V1PostingFbsTraceableSplitResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V1PostingFbsTraceableSplitResponsePosting_1.V1PostingFbsTraceableSplitResponsePostingFromJSON)), + }; +} +function V1PostingFbsTraceableSplitResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V1PostingFbsTraceableSplitResponsePosting_1.V1PostingFbsTraceableSplitResponsePostingToJSON)), + }; +} diff --git a/dist/models/V1PostingFbsTraceableSplitResponsePosting.d.ts b/dist/models/V1PostingFbsTraceableSplitResponsePosting.d.ts new file mode 100644 index 0000000..ea542fe --- /dev/null +++ b/dist/models/V1PostingFbsTraceableSplitResponsePosting.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFbsTraceableSplitResponsePostingProduct } from './PostingFbsTraceableSplitResponsePostingProduct'; +/** + * + * @export + * @interface V1PostingFbsTraceableSplitResponsePosting + */ +export interface V1PostingFbsTraceableSplitResponsePosting { + /** + * Номер отправления. + * @type {string} + * @memberof V1PostingFbsTraceableSplitResponsePosting + */ + posting_number?: string; + /** + * Признак, что товар потенциально прослеживаемый: + * - `true` — отправление считается прослеживаемым на данный момент. При сборке статус может измениться. + * - `false` — отправление не прослеживаемое на данный момент или его статус неизвестный. + * + * @type {boolean} + * @memberof V1PostingFbsTraceableSplitResponsePosting + */ + potential_blr_traceable?: boolean; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V1PostingFbsTraceableSplitResponsePosting + */ + products?: Array; +} +/** + * Check if a given object implements the V1PostingFbsTraceableSplitResponsePosting interface. + */ +export declare function instanceOfV1PostingFbsTraceableSplitResponsePosting(value: object): value is V1PostingFbsTraceableSplitResponsePosting; +export declare function V1PostingFbsTraceableSplitResponsePostingFromJSON(json: any): V1PostingFbsTraceableSplitResponsePosting; +export declare function V1PostingFbsTraceableSplitResponsePostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingFbsTraceableSplitResponsePosting; +export declare function V1PostingFbsTraceableSplitResponsePostingToJSON(value?: V1PostingFbsTraceableSplitResponsePosting | null): any; diff --git a/dist/models/V1PostingFbsTraceableSplitResponsePosting.js b/dist/models/V1PostingFbsTraceableSplitResponsePosting.js new file mode 100644 index 0000000..f8200f2 --- /dev/null +++ b/dist/models/V1PostingFbsTraceableSplitResponsePosting.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingFbsTraceableSplitResponsePosting = instanceOfV1PostingFbsTraceableSplitResponsePosting; +exports.V1PostingFbsTraceableSplitResponsePostingFromJSON = V1PostingFbsTraceableSplitResponsePostingFromJSON; +exports.V1PostingFbsTraceableSplitResponsePostingFromJSONTyped = V1PostingFbsTraceableSplitResponsePostingFromJSONTyped; +exports.V1PostingFbsTraceableSplitResponsePostingToJSON = V1PostingFbsTraceableSplitResponsePostingToJSON; +const PostingFbsTraceableSplitResponsePostingProduct_1 = require("./PostingFbsTraceableSplitResponsePostingProduct"); +/** + * Check if a given object implements the V1PostingFbsTraceableSplitResponsePosting interface. + */ +function instanceOfV1PostingFbsTraceableSplitResponsePosting(value) { + return true; +} +function V1PostingFbsTraceableSplitResponsePostingFromJSON(json) { + return V1PostingFbsTraceableSplitResponsePostingFromJSONTyped(json, false); +} +function V1PostingFbsTraceableSplitResponsePostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'potential_blr_traceable': json['potential_blr_traceable'] == null ? undefined : json['potential_blr_traceable'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFbsTraceableSplitResponsePostingProduct_1.PostingFbsTraceableSplitResponsePostingProductFromJSON)), + }; +} +function V1PostingFbsTraceableSplitResponsePostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'potential_blr_traceable': value['potential_blr_traceable'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFbsTraceableSplitResponsePostingProduct_1.PostingFbsTraceableSplitResponsePostingProductToJSON)), + }; +} diff --git a/dist/models/V1PostingMarksRequest.d.ts b/dist/models/V1PostingMarksRequest.d.ts new file mode 100644 index 0000000..c771809 --- /dev/null +++ b/dist/models/V1PostingMarksRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingMarksRequest + */ +export interface V1PostingMarksRequest { + /** + * Идентификаторы отправлений. + * @type {Array} + * @memberof V1PostingMarksRequest + */ + posting_numbers?: Array; +} +/** + * Check if a given object implements the V1PostingMarksRequest interface. + */ +export declare function instanceOfV1PostingMarksRequest(value: object): value is V1PostingMarksRequest; +export declare function V1PostingMarksRequestFromJSON(json: any): V1PostingMarksRequest; +export declare function V1PostingMarksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingMarksRequest; +export declare function V1PostingMarksRequestToJSON(value?: V1PostingMarksRequest | null): any; diff --git a/dist/models/V1PostingMarksRequest.js b/dist/models/V1PostingMarksRequest.js new file mode 100644 index 0000000..83a0f09 --- /dev/null +++ b/dist/models/V1PostingMarksRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingMarksRequest = instanceOfV1PostingMarksRequest; +exports.V1PostingMarksRequestFromJSON = V1PostingMarksRequestFromJSON; +exports.V1PostingMarksRequestFromJSONTyped = V1PostingMarksRequestFromJSONTyped; +exports.V1PostingMarksRequestToJSON = V1PostingMarksRequestToJSON; +/** + * Check if a given object implements the V1PostingMarksRequest interface. + */ +function instanceOfV1PostingMarksRequest(value) { + return true; +} +function V1PostingMarksRequestFromJSON(json) { + return V1PostingMarksRequestFromJSONTyped(json, false); +} +function V1PostingMarksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + }; +} +function V1PostingMarksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/models/V1PostingMarksResponse.d.ts b/dist/models/V1PostingMarksResponse.d.ts new file mode 100644 index 0000000..52ab68e --- /dev/null +++ b/dist/models/V1PostingMarksResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingMarksResponseIssuedExemplar } from './PostingMarksResponseIssuedExemplar'; +import type { PostingMarksResponseNonIssuedExemplar } from './PostingMarksResponseNonIssuedExemplar'; +/** + * + * @export + * @interface V1PostingMarksResponse + */ +export interface V1PostingMarksResponse { + /** + * Список неверных идентификаторов отправлений. + * @type {Array} + * @memberof V1PostingMarksResponse + */ + invalid_postings?: Array; + /** + * Список выданных покупателям экземпляров товаров. + * @type {Array} + * @memberof V1PostingMarksResponse + */ + issued_exemplars?: Array; + /** + * Список не выданных покупателям экземпляров товаров. + * @type {Array} + * @memberof V1PostingMarksResponse + */ + non_issued_exemplars?: Array; +} +/** + * Check if a given object implements the V1PostingMarksResponse interface. + */ +export declare function instanceOfV1PostingMarksResponse(value: object): value is V1PostingMarksResponse; +export declare function V1PostingMarksResponseFromJSON(json: any): V1PostingMarksResponse; +export declare function V1PostingMarksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingMarksResponse; +export declare function V1PostingMarksResponseToJSON(value?: V1PostingMarksResponse | null): any; diff --git a/dist/models/V1PostingMarksResponse.js b/dist/models/V1PostingMarksResponse.js new file mode 100644 index 0000000..2ae13fc --- /dev/null +++ b/dist/models/V1PostingMarksResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingMarksResponse = instanceOfV1PostingMarksResponse; +exports.V1PostingMarksResponseFromJSON = V1PostingMarksResponseFromJSON; +exports.V1PostingMarksResponseFromJSONTyped = V1PostingMarksResponseFromJSONTyped; +exports.V1PostingMarksResponseToJSON = V1PostingMarksResponseToJSON; +const PostingMarksResponseIssuedExemplar_1 = require("./PostingMarksResponseIssuedExemplar"); +const PostingMarksResponseNonIssuedExemplar_1 = require("./PostingMarksResponseNonIssuedExemplar"); +/** + * Check if a given object implements the V1PostingMarksResponse interface. + */ +function instanceOfV1PostingMarksResponse(value) { + return true; +} +function V1PostingMarksResponseFromJSON(json) { + return V1PostingMarksResponseFromJSONTyped(json, false); +} +function V1PostingMarksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'invalid_postings': json['invalid_postings'] == null ? undefined : json['invalid_postings'], + 'issued_exemplars': json['issued_exemplars'] == null ? undefined : (json['issued_exemplars'].map(PostingMarksResponseIssuedExemplar_1.PostingMarksResponseIssuedExemplarFromJSON)), + 'non_issued_exemplars': json['non_issued_exemplars'] == null ? undefined : (json['non_issued_exemplars'].map(PostingMarksResponseNonIssuedExemplar_1.PostingMarksResponseNonIssuedExemplarFromJSON)), + }; +} +function V1PostingMarksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'invalid_postings': value['invalid_postings'], + 'issued_exemplars': value['issued_exemplars'] == null ? undefined : (value['issued_exemplars'].map(PostingMarksResponseIssuedExemplar_1.PostingMarksResponseIssuedExemplarToJSON)), + 'non_issued_exemplars': value['non_issued_exemplars'] == null ? undefined : (value['non_issued_exemplars'].map(PostingMarksResponseNonIssuedExemplar_1.PostingMarksResponseNonIssuedExemplarToJSON)), + }; +} diff --git a/dist/models/V1PostingUnpaidLegalProductListRequest.d.ts b/dist/models/V1PostingUnpaidLegalProductListRequest.d.ts new file mode 100644 index 0000000..feccaf5 --- /dev/null +++ b/dist/models/V1PostingUnpaidLegalProductListRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingUnpaidLegalProductListRequest + */ +export interface V1PostingUnpaidLegalProductListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListRequest + */ + cursor?: string; + /** + * Количество значений в ответе. + * + * @type {number} + * @memberof V1PostingUnpaidLegalProductListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListRequest interface. + */ +export declare function instanceOfV1PostingUnpaidLegalProductListRequest(value: object): value is V1PostingUnpaidLegalProductListRequest; +export declare function V1PostingUnpaidLegalProductListRequestFromJSON(json: any): V1PostingUnpaidLegalProductListRequest; +export declare function V1PostingUnpaidLegalProductListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingUnpaidLegalProductListRequest; +export declare function V1PostingUnpaidLegalProductListRequestToJSON(value?: V1PostingUnpaidLegalProductListRequest | null): any; diff --git a/dist/models/V1PostingUnpaidLegalProductListRequest.js b/dist/models/V1PostingUnpaidLegalProductListRequest.js new file mode 100644 index 0000000..b74e54d --- /dev/null +++ b/dist/models/V1PostingUnpaidLegalProductListRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingUnpaidLegalProductListRequest = instanceOfV1PostingUnpaidLegalProductListRequest; +exports.V1PostingUnpaidLegalProductListRequestFromJSON = V1PostingUnpaidLegalProductListRequestFromJSON; +exports.V1PostingUnpaidLegalProductListRequestFromJSONTyped = V1PostingUnpaidLegalProductListRequestFromJSONTyped; +exports.V1PostingUnpaidLegalProductListRequestToJSON = V1PostingUnpaidLegalProductListRequestToJSON; +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListRequest interface. + */ +function instanceOfV1PostingUnpaidLegalProductListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1PostingUnpaidLegalProductListRequestFromJSON(json) { + return V1PostingUnpaidLegalProductListRequestFromJSONTyped(json, false); +} +function V1PostingUnpaidLegalProductListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + }; +} +function V1PostingUnpaidLegalProductListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1PostingUnpaidLegalProductListResponse.d.ts b/dist/models/V1PostingUnpaidLegalProductListResponse.d.ts new file mode 100644 index 0000000..f00c21e --- /dev/null +++ b/dist/models/V1PostingUnpaidLegalProductListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1PostingUnpaidLegalProductListResponseProducts } from './V1PostingUnpaidLegalProductListResponseProducts'; +/** + * + * @export + * @interface V1PostingUnpaidLegalProductListResponse + */ +export interface V1PostingUnpaidLegalProductListResponse { + /** + * Список неоплаченных товаров. + * @type {Array} + * @memberof V1PostingUnpaidLegalProductListResponse + */ + products?: Array; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListResponse + */ + cursor?: string; +} +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListResponse interface. + */ +export declare function instanceOfV1PostingUnpaidLegalProductListResponse(value: object): value is V1PostingUnpaidLegalProductListResponse; +export declare function V1PostingUnpaidLegalProductListResponseFromJSON(json: any): V1PostingUnpaidLegalProductListResponse; +export declare function V1PostingUnpaidLegalProductListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingUnpaidLegalProductListResponse; +export declare function V1PostingUnpaidLegalProductListResponseToJSON(value?: V1PostingUnpaidLegalProductListResponse | null): any; diff --git a/dist/models/V1PostingUnpaidLegalProductListResponse.js b/dist/models/V1PostingUnpaidLegalProductListResponse.js new file mode 100644 index 0000000..0cc87b8 --- /dev/null +++ b/dist/models/V1PostingUnpaidLegalProductListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingUnpaidLegalProductListResponse = instanceOfV1PostingUnpaidLegalProductListResponse; +exports.V1PostingUnpaidLegalProductListResponseFromJSON = V1PostingUnpaidLegalProductListResponseFromJSON; +exports.V1PostingUnpaidLegalProductListResponseFromJSONTyped = V1PostingUnpaidLegalProductListResponseFromJSONTyped; +exports.V1PostingUnpaidLegalProductListResponseToJSON = V1PostingUnpaidLegalProductListResponseToJSON; +const V1PostingUnpaidLegalProductListResponseProducts_1 = require("./V1PostingUnpaidLegalProductListResponseProducts"); +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListResponse interface. + */ +function instanceOfV1PostingUnpaidLegalProductListResponse(value) { + return true; +} +function V1PostingUnpaidLegalProductListResponseFromJSON(json) { + return V1PostingUnpaidLegalProductListResponseFromJSONTyped(json, false); +} +function V1PostingUnpaidLegalProductListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(V1PostingUnpaidLegalProductListResponseProducts_1.V1PostingUnpaidLegalProductListResponseProductsFromJSON)), + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + }; +} +function V1PostingUnpaidLegalProductListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(V1PostingUnpaidLegalProductListResponseProducts_1.V1PostingUnpaidLegalProductListResponseProductsToJSON)), + 'cursor': value['cursor'], + }; +} diff --git a/dist/models/V1PostingUnpaidLegalProductListResponseProducts.d.ts b/dist/models/V1PostingUnpaidLegalProductListResponseProducts.d.ts new file mode 100644 index 0000000..61227f7 --- /dev/null +++ b/dist/models/V1PostingUnpaidLegalProductListResponseProducts.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1PostingUnpaidLegalProductListResponseProducts + */ +export interface V1PostingUnpaidLegalProductListResponseProducts { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + product_id?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + offer_id?: string; + /** + * Количество экземпляров. + * @type {number} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + quantity?: number; + /** + * Название товара. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + name?: string; + /** + * Ссылка на изображение товара. + * @type {string} + * @memberof V1PostingUnpaidLegalProductListResponseProducts + */ + image_url?: string; +} +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListResponseProducts interface. + */ +export declare function instanceOfV1PostingUnpaidLegalProductListResponseProducts(value: object): value is V1PostingUnpaidLegalProductListResponseProducts; +export declare function V1PostingUnpaidLegalProductListResponseProductsFromJSON(json: any): V1PostingUnpaidLegalProductListResponseProducts; +export declare function V1PostingUnpaidLegalProductListResponseProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PostingUnpaidLegalProductListResponseProducts; +export declare function V1PostingUnpaidLegalProductListResponseProductsToJSON(value?: V1PostingUnpaidLegalProductListResponseProducts | null): any; diff --git a/dist/models/V1PostingUnpaidLegalProductListResponseProducts.js b/dist/models/V1PostingUnpaidLegalProductListResponseProducts.js new file mode 100644 index 0000000..e3982dd --- /dev/null +++ b/dist/models/V1PostingUnpaidLegalProductListResponseProducts.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PostingUnpaidLegalProductListResponseProducts = instanceOfV1PostingUnpaidLegalProductListResponseProducts; +exports.V1PostingUnpaidLegalProductListResponseProductsFromJSON = V1PostingUnpaidLegalProductListResponseProductsFromJSON; +exports.V1PostingUnpaidLegalProductListResponseProductsFromJSONTyped = V1PostingUnpaidLegalProductListResponseProductsFromJSONTyped; +exports.V1PostingUnpaidLegalProductListResponseProductsToJSON = V1PostingUnpaidLegalProductListResponseProductsToJSON; +/** + * Check if a given object implements the V1PostingUnpaidLegalProductListResponseProducts interface. + */ +function instanceOfV1PostingUnpaidLegalProductListResponseProducts(value) { + return true; +} +function V1PostingUnpaidLegalProductListResponseProductsFromJSON(json) { + return V1PostingUnpaidLegalProductListResponseProductsFromJSONTyped(json, false); +} +function V1PostingUnpaidLegalProductListResponseProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'name': json['name'] == null ? undefined : json['name'], + 'image_url': json['image_url'] == null ? undefined : json['image_url'], + }; +} +function V1PostingUnpaidLegalProductListResponseProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'offer_id': value['offer_id'], + 'quantity': value['quantity'], + 'name': value['name'], + 'image_url': value['image_url'], + }; +} diff --git a/dist/models/V1PremiumScores.d.ts b/dist/models/V1PremiumScores.d.ts new file mode 100644 index 0000000..d39083c --- /dev/null +++ b/dist/models/V1PremiumScores.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PremiumScoresScore } from './PremiumScoresScore'; +/** + * + * @export + * @interface V1PremiumScores + */ +export interface V1PremiumScores { + /** + * Название рейтинга. + * @type {string} + * @memberof V1PremiumScores + */ + rating?: string; + /** + * Информация о штрафных баллах. + * @type {Array} + * @memberof V1PremiumScores + */ + scores?: Array; +} +/** + * Check if a given object implements the V1PremiumScores interface. + */ +export declare function instanceOfV1PremiumScores(value: object): value is V1PremiumScores; +export declare function V1PremiumScoresFromJSON(json: any): V1PremiumScores; +export declare function V1PremiumScoresFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1PremiumScores; +export declare function V1PremiumScoresToJSON(value?: V1PremiumScores | null): any; diff --git a/dist/models/V1PremiumScores.js b/dist/models/V1PremiumScores.js new file mode 100644 index 0000000..b8d51ff --- /dev/null +++ b/dist/models/V1PremiumScores.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1PremiumScores = instanceOfV1PremiumScores; +exports.V1PremiumScoresFromJSON = V1PremiumScoresFromJSON; +exports.V1PremiumScoresFromJSONTyped = V1PremiumScoresFromJSONTyped; +exports.V1PremiumScoresToJSON = V1PremiumScoresToJSON; +const PremiumScoresScore_1 = require("./PremiumScoresScore"); +/** + * Check if a given object implements the V1PremiumScores interface. + */ +function instanceOfV1PremiumScores(value) { + return true; +} +function V1PremiumScoresFromJSON(json) { + return V1PremiumScoresFromJSONTyped(json, false); +} +function V1PremiumScoresFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rating': json['rating'] == null ? undefined : json['rating'], + 'scores': json['scores'] == null ? undefined : (json['scores'].map(PremiumScoresScore_1.PremiumScoresScoreFromJSON)), + }; +} +function V1PremiumScoresToJSON(value) { + if (value == null) { + return value; + } + return { + 'rating': value['rating'], + 'scores': value['scores'] == null ? undefined : (value['scores'].map(PremiumScoresScore_1.PremiumScoresScoreToJSON)), + }; +} diff --git a/dist/models/V1ProductActionTimerStatusRequest.d.ts b/dist/models/V1ProductActionTimerStatusRequest.d.ts new file mode 100644 index 0000000..7531077 --- /dev/null +++ b/dist/models/V1ProductActionTimerStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductActionTimerStatusRequest + */ +export interface V1ProductActionTimerStatusRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof V1ProductActionTimerStatusRequest + */ + product_ids?: Array; +} +/** + * Check if a given object implements the V1ProductActionTimerStatusRequest interface. + */ +export declare function instanceOfV1ProductActionTimerStatusRequest(value: object): value is V1ProductActionTimerStatusRequest; +export declare function V1ProductActionTimerStatusRequestFromJSON(json: any): V1ProductActionTimerStatusRequest; +export declare function V1ProductActionTimerStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductActionTimerStatusRequest; +export declare function V1ProductActionTimerStatusRequestToJSON(value?: V1ProductActionTimerStatusRequest | null): any; diff --git a/dist/models/V1ProductActionTimerStatusRequest.js b/dist/models/V1ProductActionTimerStatusRequest.js new file mode 100644 index 0000000..f835534 --- /dev/null +++ b/dist/models/V1ProductActionTimerStatusRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductActionTimerStatusRequest = instanceOfV1ProductActionTimerStatusRequest; +exports.V1ProductActionTimerStatusRequestFromJSON = V1ProductActionTimerStatusRequestFromJSON; +exports.V1ProductActionTimerStatusRequestFromJSONTyped = V1ProductActionTimerStatusRequestFromJSONTyped; +exports.V1ProductActionTimerStatusRequestToJSON = V1ProductActionTimerStatusRequestToJSON; +/** + * Check if a given object implements the V1ProductActionTimerStatusRequest interface. + */ +function instanceOfV1ProductActionTimerStatusRequest(value) { + return true; +} +function V1ProductActionTimerStatusRequestFromJSON(json) { + return V1ProductActionTimerStatusRequestFromJSONTyped(json, false); +} +function V1ProductActionTimerStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + }; +} +function V1ProductActionTimerStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/models/V1ProductActionTimerStatusResponse.d.ts b/dist/models/V1ProductActionTimerStatusResponse.d.ts new file mode 100644 index 0000000..e28c892 --- /dev/null +++ b/dist/models/V1ProductActionTimerStatusResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductActionTimerStatusResponseStatuses } from './V1ProductActionTimerStatusResponseStatuses'; +/** + * + * @export + * @interface V1ProductActionTimerStatusResponse + */ +export interface V1ProductActionTimerStatusResponse { + /** + * + * @type {Array} + * @memberof V1ProductActionTimerStatusResponse + */ + statuses?: Array; +} +/** + * Check if a given object implements the V1ProductActionTimerStatusResponse interface. + */ +export declare function instanceOfV1ProductActionTimerStatusResponse(value: object): value is V1ProductActionTimerStatusResponse; +export declare function V1ProductActionTimerStatusResponseFromJSON(json: any): V1ProductActionTimerStatusResponse; +export declare function V1ProductActionTimerStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductActionTimerStatusResponse; +export declare function V1ProductActionTimerStatusResponseToJSON(value?: V1ProductActionTimerStatusResponse | null): any; diff --git a/dist/models/V1ProductActionTimerStatusResponse.js b/dist/models/V1ProductActionTimerStatusResponse.js new file mode 100644 index 0000000..5f02ad4 --- /dev/null +++ b/dist/models/V1ProductActionTimerStatusResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductActionTimerStatusResponse = instanceOfV1ProductActionTimerStatusResponse; +exports.V1ProductActionTimerStatusResponseFromJSON = V1ProductActionTimerStatusResponseFromJSON; +exports.V1ProductActionTimerStatusResponseFromJSONTyped = V1ProductActionTimerStatusResponseFromJSONTyped; +exports.V1ProductActionTimerStatusResponseToJSON = V1ProductActionTimerStatusResponseToJSON; +const V1ProductActionTimerStatusResponseStatuses_1 = require("./V1ProductActionTimerStatusResponseStatuses"); +/** + * Check if a given object implements the V1ProductActionTimerStatusResponse interface. + */ +function instanceOfV1ProductActionTimerStatusResponse(value) { + return true; +} +function V1ProductActionTimerStatusResponseFromJSON(json) { + return V1ProductActionTimerStatusResponseFromJSONTyped(json, false); +} +function V1ProductActionTimerStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'statuses': json['statuses'] == null ? undefined : (json['statuses'].map(V1ProductActionTimerStatusResponseStatuses_1.V1ProductActionTimerStatusResponseStatusesFromJSON)), + }; +} +function V1ProductActionTimerStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'statuses': value['statuses'] == null ? undefined : (value['statuses'].map(V1ProductActionTimerStatusResponseStatuses_1.V1ProductActionTimerStatusResponseStatusesToJSON)), + }; +} diff --git a/dist/models/V1ProductActionTimerStatusResponseStatuses.d.ts b/dist/models/V1ProductActionTimerStatusResponseStatuses.d.ts new file mode 100644 index 0000000..cf5cd01 --- /dev/null +++ b/dist/models/V1ProductActionTimerStatusResponseStatuses.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductActionTimerStatusResponseStatuses + */ +export interface V1ProductActionTimerStatusResponseStatuses { + /** + * Время окончания таймера. Если параметр пустой, активного таймера нет. + * @type {string} + * @memberof V1ProductActionTimerStatusResponseStatuses + */ + expired_at?: string; + /** + * `true`, если Ozon учитывает минимальную цену при добавлении в акции. + * + * @type {boolean} + * @memberof V1ProductActionTimerStatusResponseStatuses + */ + min_price_for_auto_actions_enabled?: boolean; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1ProductActionTimerStatusResponseStatuses + */ + product_id?: number; +} +/** + * Check if a given object implements the V1ProductActionTimerStatusResponseStatuses interface. + */ +export declare function instanceOfV1ProductActionTimerStatusResponseStatuses(value: object): value is V1ProductActionTimerStatusResponseStatuses; +export declare function V1ProductActionTimerStatusResponseStatusesFromJSON(json: any): V1ProductActionTimerStatusResponseStatuses; +export declare function V1ProductActionTimerStatusResponseStatusesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductActionTimerStatusResponseStatuses; +export declare function V1ProductActionTimerStatusResponseStatusesToJSON(value?: V1ProductActionTimerStatusResponseStatuses | null): any; diff --git a/dist/models/V1ProductActionTimerStatusResponseStatuses.js b/dist/models/V1ProductActionTimerStatusResponseStatuses.js new file mode 100644 index 0000000..7ec0a58 --- /dev/null +++ b/dist/models/V1ProductActionTimerStatusResponseStatuses.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductActionTimerStatusResponseStatuses = instanceOfV1ProductActionTimerStatusResponseStatuses; +exports.V1ProductActionTimerStatusResponseStatusesFromJSON = V1ProductActionTimerStatusResponseStatusesFromJSON; +exports.V1ProductActionTimerStatusResponseStatusesFromJSONTyped = V1ProductActionTimerStatusResponseStatusesFromJSONTyped; +exports.V1ProductActionTimerStatusResponseStatusesToJSON = V1ProductActionTimerStatusResponseStatusesToJSON; +/** + * Check if a given object implements the V1ProductActionTimerStatusResponseStatuses interface. + */ +function instanceOfV1ProductActionTimerStatusResponseStatuses(value) { + return true; +} +function V1ProductActionTimerStatusResponseStatusesFromJSON(json) { + return V1ProductActionTimerStatusResponseStatusesFromJSONTyped(json, false); +} +function V1ProductActionTimerStatusResponseStatusesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'expired_at': json['expired_at'] == null ? undefined : json['expired_at'], + 'min_price_for_auto_actions_enabled': json['min_price_for_auto_actions_enabled'] == null ? undefined : json['min_price_for_auto_actions_enabled'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +function V1ProductActionTimerStatusResponseStatusesToJSON(value) { + if (value == null) { + return value; + } + return { + 'expired_at': value['expired_at'], + 'min_price_for_auto_actions_enabled': value['min_price_for_auto_actions_enabled'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V1ProductActionTimerUpdateRequest.d.ts b/dist/models/V1ProductActionTimerUpdateRequest.d.ts new file mode 100644 index 0000000..62ad7c9 --- /dev/null +++ b/dist/models/V1ProductActionTimerUpdateRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductActionTimerUpdateRequest + */ +export interface V1ProductActionTimerUpdateRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof V1ProductActionTimerUpdateRequest + */ + product_ids?: Array; +} +/** + * Check if a given object implements the V1ProductActionTimerUpdateRequest interface. + */ +export declare function instanceOfV1ProductActionTimerUpdateRequest(value: object): value is V1ProductActionTimerUpdateRequest; +export declare function V1ProductActionTimerUpdateRequestFromJSON(json: any): V1ProductActionTimerUpdateRequest; +export declare function V1ProductActionTimerUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductActionTimerUpdateRequest; +export declare function V1ProductActionTimerUpdateRequestToJSON(value?: V1ProductActionTimerUpdateRequest | null): any; diff --git a/dist/models/V1ProductActionTimerUpdateRequest.js b/dist/models/V1ProductActionTimerUpdateRequest.js new file mode 100644 index 0000000..38b48c9 --- /dev/null +++ b/dist/models/V1ProductActionTimerUpdateRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductActionTimerUpdateRequest = instanceOfV1ProductActionTimerUpdateRequest; +exports.V1ProductActionTimerUpdateRequestFromJSON = V1ProductActionTimerUpdateRequestFromJSON; +exports.V1ProductActionTimerUpdateRequestFromJSONTyped = V1ProductActionTimerUpdateRequestFromJSONTyped; +exports.V1ProductActionTimerUpdateRequestToJSON = V1ProductActionTimerUpdateRequestToJSON; +/** + * Check if a given object implements the V1ProductActionTimerUpdateRequest interface. + */ +function instanceOfV1ProductActionTimerUpdateRequest(value) { + return true; +} +function V1ProductActionTimerUpdateRequestFromJSON(json) { + return V1ProductActionTimerUpdateRequestFromJSONTyped(json, false); +} +function V1ProductActionTimerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_ids': json['product_ids'] == null ? undefined : json['product_ids'], + }; +} +function V1ProductActionTimerUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_ids': value['product_ids'], + }; +} diff --git a/dist/models/V1ProductCertificateDeleteRequest.d.ts b/dist/models/V1ProductCertificateDeleteRequest.d.ts new file mode 100644 index 0000000..eb4a1da --- /dev/null +++ b/dist/models/V1ProductCertificateDeleteRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateDeleteRequest + */ +export interface V1ProductCertificateDeleteRequest { + /** + * Идентификатор сертификата. + * @type {number} + * @memberof V1ProductCertificateDeleteRequest + */ + certificate_id: number; +} +/** + * Check if a given object implements the V1ProductCertificateDeleteRequest interface. + */ +export declare function instanceOfV1ProductCertificateDeleteRequest(value: object): value is V1ProductCertificateDeleteRequest; +export declare function V1ProductCertificateDeleteRequestFromJSON(json: any): V1ProductCertificateDeleteRequest; +export declare function V1ProductCertificateDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateDeleteRequest; +export declare function V1ProductCertificateDeleteRequestToJSON(value?: V1ProductCertificateDeleteRequest | null): any; diff --git a/dist/models/V1ProductCertificateDeleteRequest.js b/dist/models/V1ProductCertificateDeleteRequest.js new file mode 100644 index 0000000..48d0cdc --- /dev/null +++ b/dist/models/V1ProductCertificateDeleteRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateDeleteRequest = instanceOfV1ProductCertificateDeleteRequest; +exports.V1ProductCertificateDeleteRequestFromJSON = V1ProductCertificateDeleteRequestFromJSON; +exports.V1ProductCertificateDeleteRequestFromJSONTyped = V1ProductCertificateDeleteRequestFromJSONTyped; +exports.V1ProductCertificateDeleteRequestToJSON = V1ProductCertificateDeleteRequestToJSON; +/** + * Check if a given object implements the V1ProductCertificateDeleteRequest interface. + */ +function instanceOfV1ProductCertificateDeleteRequest(value) { + if (!('certificate_id' in value) || value['certificate_id'] === undefined) + return false; + return true; +} +function V1ProductCertificateDeleteRequestFromJSON(json) { + return V1ProductCertificateDeleteRequestFromJSONTyped(json, false); +} +function V1ProductCertificateDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'], + }; +} +function V1ProductCertificateDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + }; +} diff --git a/dist/models/V1ProductCertificateDeleteResponse.d.ts b/dist/models/V1ProductCertificateDeleteResponse.d.ts new file mode 100644 index 0000000..aa8524b --- /dev/null +++ b/dist/models/V1ProductCertificateDeleteResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductCertificateDeleteResponseResult } from './V1ProductCertificateDeleteResponseResult'; +/** + * + * @export + * @interface V1ProductCertificateDeleteResponse + */ +export interface V1ProductCertificateDeleteResponse { + /** + * + * @type {V1ProductCertificateDeleteResponseResult} + * @memberof V1ProductCertificateDeleteResponse + */ + result?: V1ProductCertificateDeleteResponseResult; +} +/** + * Check if a given object implements the V1ProductCertificateDeleteResponse interface. + */ +export declare function instanceOfV1ProductCertificateDeleteResponse(value: object): value is V1ProductCertificateDeleteResponse; +export declare function V1ProductCertificateDeleteResponseFromJSON(json: any): V1ProductCertificateDeleteResponse; +export declare function V1ProductCertificateDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateDeleteResponse; +export declare function V1ProductCertificateDeleteResponseToJSON(value?: V1ProductCertificateDeleteResponse | null): any; diff --git a/dist/models/V1ProductCertificateDeleteResponse.js b/dist/models/V1ProductCertificateDeleteResponse.js new file mode 100644 index 0000000..6af04ce --- /dev/null +++ b/dist/models/V1ProductCertificateDeleteResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateDeleteResponse = instanceOfV1ProductCertificateDeleteResponse; +exports.V1ProductCertificateDeleteResponseFromJSON = V1ProductCertificateDeleteResponseFromJSON; +exports.V1ProductCertificateDeleteResponseFromJSONTyped = V1ProductCertificateDeleteResponseFromJSONTyped; +exports.V1ProductCertificateDeleteResponseToJSON = V1ProductCertificateDeleteResponseToJSON; +const V1ProductCertificateDeleteResponseResult_1 = require("./V1ProductCertificateDeleteResponseResult"); +/** + * Check if a given object implements the V1ProductCertificateDeleteResponse interface. + */ +function instanceOfV1ProductCertificateDeleteResponse(value) { + return true; +} +function V1ProductCertificateDeleteResponseFromJSON(json) { + return V1ProductCertificateDeleteResponseFromJSONTyped(json, false); +} +function V1ProductCertificateDeleteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1ProductCertificateDeleteResponseResult_1.V1ProductCertificateDeleteResponseResultFromJSON)(json['result']), + }; +} +function V1ProductCertificateDeleteResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1ProductCertificateDeleteResponseResult_1.V1ProductCertificateDeleteResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1ProductCertificateDeleteResponseResult.d.ts b/dist/models/V1ProductCertificateDeleteResponseResult.d.ts new file mode 100644 index 0000000..9947f79 --- /dev/null +++ b/dist/models/V1ProductCertificateDeleteResponseResult.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результат удаления сертификата. + * @export + * @interface V1ProductCertificateDeleteResponseResult + */ +export interface V1ProductCertificateDeleteResponseResult { + /** + * Удалён ли сертификат: + * - `true` — удалён, + * - `false` — не удалён. + * + * @type {boolean} + * @memberof V1ProductCertificateDeleteResponseResult + */ + is_delete?: boolean; + /** + * Описание ошибок при удалении сертификата. + * @type {string} + * @memberof V1ProductCertificateDeleteResponseResult + */ + error_message?: string; +} +/** + * Check if a given object implements the V1ProductCertificateDeleteResponseResult interface. + */ +export declare function instanceOfV1ProductCertificateDeleteResponseResult(value: object): value is V1ProductCertificateDeleteResponseResult; +export declare function V1ProductCertificateDeleteResponseResultFromJSON(json: any): V1ProductCertificateDeleteResponseResult; +export declare function V1ProductCertificateDeleteResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateDeleteResponseResult; +export declare function V1ProductCertificateDeleteResponseResultToJSON(value?: V1ProductCertificateDeleteResponseResult | null): any; diff --git a/dist/models/V1ProductCertificateDeleteResponseResult.js b/dist/models/V1ProductCertificateDeleteResponseResult.js new file mode 100644 index 0000000..c81944a --- /dev/null +++ b/dist/models/V1ProductCertificateDeleteResponseResult.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateDeleteResponseResult = instanceOfV1ProductCertificateDeleteResponseResult; +exports.V1ProductCertificateDeleteResponseResultFromJSON = V1ProductCertificateDeleteResponseResultFromJSON; +exports.V1ProductCertificateDeleteResponseResultFromJSONTyped = V1ProductCertificateDeleteResponseResultFromJSONTyped; +exports.V1ProductCertificateDeleteResponseResultToJSON = V1ProductCertificateDeleteResponseResultToJSON; +/** + * Check if a given object implements the V1ProductCertificateDeleteResponseResult interface. + */ +function instanceOfV1ProductCertificateDeleteResponseResult(value) { + return true; +} +function V1ProductCertificateDeleteResponseResultFromJSON(json) { + return V1ProductCertificateDeleteResponseResultFromJSONTyped(json, false); +} +function V1ProductCertificateDeleteResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_delete': json['is_delete'] == null ? undefined : json['is_delete'], + 'error_message': json['error_message'] == null ? undefined : json['error_message'], + }; +} +function V1ProductCertificateDeleteResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_delete': value['is_delete'], + 'error_message': value['error_message'], + }; +} diff --git a/dist/models/V1ProductCertificateInfoRequest.d.ts b/dist/models/V1ProductCertificateInfoRequest.d.ts new file mode 100644 index 0000000..9af89f2 --- /dev/null +++ b/dist/models/V1ProductCertificateInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateInfoRequest + */ +export interface V1ProductCertificateInfoRequest { + /** + * Идентификатор сертификата. + * @type {string} + * @memberof V1ProductCertificateInfoRequest + */ + certificate_number: string; +} +/** + * Check if a given object implements the V1ProductCertificateInfoRequest interface. + */ +export declare function instanceOfV1ProductCertificateInfoRequest(value: object): value is V1ProductCertificateInfoRequest; +export declare function V1ProductCertificateInfoRequestFromJSON(json: any): V1ProductCertificateInfoRequest; +export declare function V1ProductCertificateInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateInfoRequest; +export declare function V1ProductCertificateInfoRequestToJSON(value?: V1ProductCertificateInfoRequest | null): any; diff --git a/dist/models/V1ProductCertificateInfoRequest.js b/dist/models/V1ProductCertificateInfoRequest.js new file mode 100644 index 0000000..d691c83 --- /dev/null +++ b/dist/models/V1ProductCertificateInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateInfoRequest = instanceOfV1ProductCertificateInfoRequest; +exports.V1ProductCertificateInfoRequestFromJSON = V1ProductCertificateInfoRequestFromJSON; +exports.V1ProductCertificateInfoRequestFromJSONTyped = V1ProductCertificateInfoRequestFromJSONTyped; +exports.V1ProductCertificateInfoRequestToJSON = V1ProductCertificateInfoRequestToJSON; +/** + * Check if a given object implements the V1ProductCertificateInfoRequest interface. + */ +function instanceOfV1ProductCertificateInfoRequest(value) { + if (!('certificate_number' in value) || value['certificate_number'] === undefined) + return false; + return true; +} +function V1ProductCertificateInfoRequestFromJSON(json) { + return V1ProductCertificateInfoRequestFromJSONTyped(json, false); +} +function V1ProductCertificateInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_number': json['certificate_number'], + }; +} +function V1ProductCertificateInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_number': value['certificate_number'], + }; +} diff --git a/dist/models/V1ProductCertificateInfoResponse.d.ts b/dist/models/V1ProductCertificateInfoResponse.d.ts new file mode 100644 index 0000000..521a236 --- /dev/null +++ b/dist/models/V1ProductCertificateInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Certificate } from './V1Certificate'; +/** + * + * @export + * @interface V1ProductCertificateInfoResponse + */ +export interface V1ProductCertificateInfoResponse { + /** + * + * @type {V1Certificate} + * @memberof V1ProductCertificateInfoResponse + */ + result?: V1Certificate; +} +/** + * Check if a given object implements the V1ProductCertificateInfoResponse interface. + */ +export declare function instanceOfV1ProductCertificateInfoResponse(value: object): value is V1ProductCertificateInfoResponse; +export declare function V1ProductCertificateInfoResponseFromJSON(json: any): V1ProductCertificateInfoResponse; +export declare function V1ProductCertificateInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateInfoResponse; +export declare function V1ProductCertificateInfoResponseToJSON(value?: V1ProductCertificateInfoResponse | null): any; diff --git a/dist/models/V1ProductCertificateInfoResponse.js b/dist/models/V1ProductCertificateInfoResponse.js new file mode 100644 index 0000000..938a45b --- /dev/null +++ b/dist/models/V1ProductCertificateInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateInfoResponse = instanceOfV1ProductCertificateInfoResponse; +exports.V1ProductCertificateInfoResponseFromJSON = V1ProductCertificateInfoResponseFromJSON; +exports.V1ProductCertificateInfoResponseFromJSONTyped = V1ProductCertificateInfoResponseFromJSONTyped; +exports.V1ProductCertificateInfoResponseToJSON = V1ProductCertificateInfoResponseToJSON; +const V1Certificate_1 = require("./V1Certificate"); +/** + * Check if a given object implements the V1ProductCertificateInfoResponse interface. + */ +function instanceOfV1ProductCertificateInfoResponse(value) { + return true; +} +function V1ProductCertificateInfoResponseFromJSON(json) { + return V1ProductCertificateInfoResponseFromJSONTyped(json, false); +} +function V1ProductCertificateInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1Certificate_1.V1CertificateFromJSON)(json['result']), + }; +} +function V1ProductCertificateInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1Certificate_1.V1CertificateToJSON)(value['result']), + }; +} diff --git a/dist/models/V1ProductCertificateListRequest.d.ts b/dist/models/V1ProductCertificateListRequest.d.ts new file mode 100644 index 0000000..a30d590 --- /dev/null +++ b/dist/models/V1ProductCertificateListRequest.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateListRequest + */ +export interface V1ProductCertificateListRequest { + /** + * Идентификатор товара в системе продавца — артикул, привязанный к сертификату. Передайте параметр, если нужны сертификаты, к которым привязаны определённые товары. + * @type {string} + * @memberof V1ProductCertificateListRequest + */ + offer_id?: string; + /** + * Статус сертификата. Передайте параметр, если нужны сертификаты с определённым статусом. + * @type {string} + * @memberof V1ProductCertificateListRequest + */ + status?: string; + /** + * Тип сертификата. Передайте параметр, если нужны сертификаты с определённым типом. + * @type {string} + * @memberof V1ProductCertificateListRequest + */ + type?: string; + /** + * Страница, с которой следует выводить список. Минимальное значение — 1. + * @type {number} + * @memberof V1ProductCertificateListRequest + */ + page: number; + /** + * Количество объектов на странице. Значение — от 1 до 1000. + * @type {number} + * @memberof V1ProductCertificateListRequest + */ + page_size: number; +} +/** + * Check if a given object implements the V1ProductCertificateListRequest interface. + */ +export declare function instanceOfV1ProductCertificateListRequest(value: object): value is V1ProductCertificateListRequest; +export declare function V1ProductCertificateListRequestFromJSON(json: any): V1ProductCertificateListRequest; +export declare function V1ProductCertificateListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateListRequest; +export declare function V1ProductCertificateListRequestToJSON(value?: V1ProductCertificateListRequest | null): any; diff --git a/dist/models/V1ProductCertificateListRequest.js b/dist/models/V1ProductCertificateListRequest.js new file mode 100644 index 0000000..c86195f --- /dev/null +++ b/dist/models/V1ProductCertificateListRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateListRequest = instanceOfV1ProductCertificateListRequest; +exports.V1ProductCertificateListRequestFromJSON = V1ProductCertificateListRequestFromJSON; +exports.V1ProductCertificateListRequestFromJSONTyped = V1ProductCertificateListRequestFromJSONTyped; +exports.V1ProductCertificateListRequestToJSON = V1ProductCertificateListRequestToJSON; +/** + * Check if a given object implements the V1ProductCertificateListRequest interface. + */ +function instanceOfV1ProductCertificateListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +function V1ProductCertificateListRequestFromJSON(json) { + return V1ProductCertificateListRequestFromJSONTyped(json, false); +} +function V1ProductCertificateListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'status': json['status'] == null ? undefined : json['status'], + 'type': json['type'] == null ? undefined : json['type'], + 'page': json['page'], + 'page_size': json['page_size'], + }; +} +function V1ProductCertificateListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'status': value['status'], + 'type': value['type'], + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/models/V1ProductCertificateListResponse.d.ts b/dist/models/V1ProductCertificateListResponse.d.ts new file mode 100644 index 0000000..8354a07 --- /dev/null +++ b/dist/models/V1ProductCertificateListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductCertificateListResponseResult } from './V1ProductCertificateListResponseResult'; +/** + * + * @export + * @interface V1ProductCertificateListResponse + */ +export interface V1ProductCertificateListResponse { + /** + * + * @type {V1ProductCertificateListResponseResult} + * @memberof V1ProductCertificateListResponse + */ + result?: V1ProductCertificateListResponseResult; +} +/** + * Check if a given object implements the V1ProductCertificateListResponse interface. + */ +export declare function instanceOfV1ProductCertificateListResponse(value: object): value is V1ProductCertificateListResponse; +export declare function V1ProductCertificateListResponseFromJSON(json: any): V1ProductCertificateListResponse; +export declare function V1ProductCertificateListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateListResponse; +export declare function V1ProductCertificateListResponseToJSON(value?: V1ProductCertificateListResponse | null): any; diff --git a/dist/models/V1ProductCertificateListResponse.js b/dist/models/V1ProductCertificateListResponse.js new file mode 100644 index 0000000..731f72c --- /dev/null +++ b/dist/models/V1ProductCertificateListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateListResponse = instanceOfV1ProductCertificateListResponse; +exports.V1ProductCertificateListResponseFromJSON = V1ProductCertificateListResponseFromJSON; +exports.V1ProductCertificateListResponseFromJSONTyped = V1ProductCertificateListResponseFromJSONTyped; +exports.V1ProductCertificateListResponseToJSON = V1ProductCertificateListResponseToJSON; +const V1ProductCertificateListResponseResult_1 = require("./V1ProductCertificateListResponseResult"); +/** + * Check if a given object implements the V1ProductCertificateListResponse interface. + */ +function instanceOfV1ProductCertificateListResponse(value) { + return true; +} +function V1ProductCertificateListResponseFromJSON(json) { + return V1ProductCertificateListResponseFromJSONTyped(json, false); +} +function V1ProductCertificateListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1ProductCertificateListResponseResult_1.V1ProductCertificateListResponseResultFromJSON)(json['result']), + }; +} +function V1ProductCertificateListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1ProductCertificateListResponseResult_1.V1ProductCertificateListResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1ProductCertificateListResponseResult.d.ts b/dist/models/V1ProductCertificateListResponseResult.d.ts new file mode 100644 index 0000000..bf2db5b --- /dev/null +++ b/dist/models/V1ProductCertificateListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Certificate } from './V1Certificate'; +/** + * Список сертификатов. + * @export + * @interface V1ProductCertificateListResponseResult + */ +export interface V1ProductCertificateListResponseResult { + /** + * Информация о сертификате. + * @type {Array} + * @memberof V1ProductCertificateListResponseResult + */ + certificates?: Array; + /** + * Количество страниц. + * @type {number} + * @memberof V1ProductCertificateListResponseResult + */ + page_count?: number; +} +/** + * Check if a given object implements the V1ProductCertificateListResponseResult interface. + */ +export declare function instanceOfV1ProductCertificateListResponseResult(value: object): value is V1ProductCertificateListResponseResult; +export declare function V1ProductCertificateListResponseResultFromJSON(json: any): V1ProductCertificateListResponseResult; +export declare function V1ProductCertificateListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateListResponseResult; +export declare function V1ProductCertificateListResponseResultToJSON(value?: V1ProductCertificateListResponseResult | null): any; diff --git a/dist/models/V1ProductCertificateListResponseResult.js b/dist/models/V1ProductCertificateListResponseResult.js new file mode 100644 index 0000000..00c7c98 --- /dev/null +++ b/dist/models/V1ProductCertificateListResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateListResponseResult = instanceOfV1ProductCertificateListResponseResult; +exports.V1ProductCertificateListResponseResultFromJSON = V1ProductCertificateListResponseResultFromJSON; +exports.V1ProductCertificateListResponseResultFromJSONTyped = V1ProductCertificateListResponseResultFromJSONTyped; +exports.V1ProductCertificateListResponseResultToJSON = V1ProductCertificateListResponseResultToJSON; +const V1Certificate_1 = require("./V1Certificate"); +/** + * Check if a given object implements the V1ProductCertificateListResponseResult interface. + */ +function instanceOfV1ProductCertificateListResponseResult(value) { + return true; +} +function V1ProductCertificateListResponseResultFromJSON(json) { + return V1ProductCertificateListResponseResultFromJSONTyped(json, false); +} +function V1ProductCertificateListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificates': json['certificates'] == null ? undefined : (json['certificates'].map(V1Certificate_1.V1CertificateFromJSON)), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + }; +} +function V1ProductCertificateListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificates': value['certificates'] == null ? undefined : (value['certificates'].map(V1Certificate_1.V1CertificateToJSON)), + 'page_count': value['page_count'], + }; +} diff --git a/dist/models/V1ProductCertificateProductStatusListResponse.d.ts b/dist/models/V1ProductCertificateProductStatusListResponse.d.ts new file mode 100644 index 0000000..75d1802 --- /dev/null +++ b/dist/models/V1ProductCertificateProductStatusListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1StatusCodeNamePair } from './V1StatusCodeNamePair'; +/** + * + * @export + * @interface V1ProductCertificateProductStatusListResponse + */ +export interface V1ProductCertificateProductStatusListResponse { + /** + * Список статусов товаров. + * @type {Array} + * @memberof V1ProductCertificateProductStatusListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateProductStatusListResponse interface. + */ +export declare function instanceOfV1ProductCertificateProductStatusListResponse(value: object): value is V1ProductCertificateProductStatusListResponse; +export declare function V1ProductCertificateProductStatusListResponseFromJSON(json: any): V1ProductCertificateProductStatusListResponse; +export declare function V1ProductCertificateProductStatusListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateProductStatusListResponse; +export declare function V1ProductCertificateProductStatusListResponseToJSON(value?: V1ProductCertificateProductStatusListResponse | null): any; diff --git a/dist/models/V1ProductCertificateProductStatusListResponse.js b/dist/models/V1ProductCertificateProductStatusListResponse.js new file mode 100644 index 0000000..02195ca --- /dev/null +++ b/dist/models/V1ProductCertificateProductStatusListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateProductStatusListResponse = instanceOfV1ProductCertificateProductStatusListResponse; +exports.V1ProductCertificateProductStatusListResponseFromJSON = V1ProductCertificateProductStatusListResponseFromJSON; +exports.V1ProductCertificateProductStatusListResponseFromJSONTyped = V1ProductCertificateProductStatusListResponseFromJSONTyped; +exports.V1ProductCertificateProductStatusListResponseToJSON = V1ProductCertificateProductStatusListResponseToJSON; +const V1StatusCodeNamePair_1 = require("./V1StatusCodeNamePair"); +/** + * Check if a given object implements the V1ProductCertificateProductStatusListResponse interface. + */ +function instanceOfV1ProductCertificateProductStatusListResponse(value) { + return true; +} +function V1ProductCertificateProductStatusListResponseFromJSON(json) { + return V1ProductCertificateProductStatusListResponseFromJSONTyped(json, false); +} +function V1ProductCertificateProductStatusListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1StatusCodeNamePair_1.V1StatusCodeNamePairFromJSON)), + }; +} +function V1ProductCertificateProductStatusListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1StatusCodeNamePair_1.V1StatusCodeNamePairToJSON)), + }; +} diff --git a/dist/models/V1ProductCertificateProductsListRequest.d.ts b/dist/models/V1ProductCertificateProductsListRequest.d.ts new file mode 100644 index 0000000..20819e5 --- /dev/null +++ b/dist/models/V1ProductCertificateProductsListRequest.d.ts @@ -0,0 +1,66 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateProductsListRequest + */ +export interface V1ProductCertificateProductsListRequest { + /** + * Идентификатор сертификата. + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + */ + certificate_id: number; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + */ + last_id?: number; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + */ + limit?: number; + /** + * Статус проверки товара при привязке к сертификату. + * @type {string} + * @memberof V1ProductCertificateProductsListRequest + */ + product_status_code?: string; + /** + * Номер страницы, с которой выводить список. Минимальное значение — 1. + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + * @deprecated + */ + page?: number; + /** + * Количество объектов на странице. + * @type {number} + * @memberof V1ProductCertificateProductsListRequest + * @deprecated + */ + page_size?: number; +} +/** + * Check if a given object implements the V1ProductCertificateProductsListRequest interface. + */ +export declare function instanceOfV1ProductCertificateProductsListRequest(value: object): value is V1ProductCertificateProductsListRequest; +export declare function V1ProductCertificateProductsListRequestFromJSON(json: any): V1ProductCertificateProductsListRequest; +export declare function V1ProductCertificateProductsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateProductsListRequest; +export declare function V1ProductCertificateProductsListRequestToJSON(value?: V1ProductCertificateProductsListRequest | null): any; diff --git a/dist/models/V1ProductCertificateProductsListRequest.js b/dist/models/V1ProductCertificateProductsListRequest.js new file mode 100644 index 0000000..cac8f11 --- /dev/null +++ b/dist/models/V1ProductCertificateProductsListRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateProductsListRequest = instanceOfV1ProductCertificateProductsListRequest; +exports.V1ProductCertificateProductsListRequestFromJSON = V1ProductCertificateProductsListRequestFromJSON; +exports.V1ProductCertificateProductsListRequestFromJSONTyped = V1ProductCertificateProductsListRequestFromJSONTyped; +exports.V1ProductCertificateProductsListRequestToJSON = V1ProductCertificateProductsListRequestToJSON; +/** + * Check if a given object implements the V1ProductCertificateProductsListRequest interface. + */ +function instanceOfV1ProductCertificateProductsListRequest(value) { + if (!('certificate_id' in value) || value['certificate_id'] === undefined) + return false; + return true; +} +function V1ProductCertificateProductsListRequestFromJSON(json) { + return V1ProductCertificateProductsListRequestFromJSONTyped(json, false); +} +function V1ProductCertificateProductsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'product_status_code': json['product_status_code'] == null ? undefined : json['product_status_code'], + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'] == null ? undefined : json['page_size'], + }; +} +function V1ProductCertificateProductsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'last_id': value['last_id'], + 'limit': value['limit'], + 'product_status_code': value['product_status_code'], + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/models/V1ProductCertificateProductsListResponse.d.ts b/dist/models/V1ProductCertificateProductsListResponse.d.ts new file mode 100644 index 0000000..1f12853 --- /dev/null +++ b/dist/models/V1ProductCertificateProductsListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductCertificateProductsListResponseResult } from './V1ProductCertificateProductsListResponseResult'; +/** + * + * @export + * @interface V1ProductCertificateProductsListResponse + */ +export interface V1ProductCertificateProductsListResponse { + /** + * + * @type {V1ProductCertificateProductsListResponseResult} + * @memberof V1ProductCertificateProductsListResponse + */ + result?: V1ProductCertificateProductsListResponseResult; +} +/** + * Check if a given object implements the V1ProductCertificateProductsListResponse interface. + */ +export declare function instanceOfV1ProductCertificateProductsListResponse(value: object): value is V1ProductCertificateProductsListResponse; +export declare function V1ProductCertificateProductsListResponseFromJSON(json: any): V1ProductCertificateProductsListResponse; +export declare function V1ProductCertificateProductsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateProductsListResponse; +export declare function V1ProductCertificateProductsListResponseToJSON(value?: V1ProductCertificateProductsListResponse | null): any; diff --git a/dist/models/V1ProductCertificateProductsListResponse.js b/dist/models/V1ProductCertificateProductsListResponse.js new file mode 100644 index 0000000..5de660b --- /dev/null +++ b/dist/models/V1ProductCertificateProductsListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateProductsListResponse = instanceOfV1ProductCertificateProductsListResponse; +exports.V1ProductCertificateProductsListResponseFromJSON = V1ProductCertificateProductsListResponseFromJSON; +exports.V1ProductCertificateProductsListResponseFromJSONTyped = V1ProductCertificateProductsListResponseFromJSONTyped; +exports.V1ProductCertificateProductsListResponseToJSON = V1ProductCertificateProductsListResponseToJSON; +const V1ProductCertificateProductsListResponseResult_1 = require("./V1ProductCertificateProductsListResponseResult"); +/** + * Check if a given object implements the V1ProductCertificateProductsListResponse interface. + */ +function instanceOfV1ProductCertificateProductsListResponse(value) { + return true; +} +function V1ProductCertificateProductsListResponseFromJSON(json) { + return V1ProductCertificateProductsListResponseFromJSONTyped(json, false); +} +function V1ProductCertificateProductsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1ProductCertificateProductsListResponseResult_1.V1ProductCertificateProductsListResponseResultFromJSON)(json['result']), + }; +} +function V1ProductCertificateProductsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1ProductCertificateProductsListResponseResult_1.V1ProductCertificateProductsListResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1ProductCertificateProductsListResponseResult.d.ts b/dist/models/V1ProductCertificateProductsListResponseResult.d.ts new file mode 100644 index 0000000..375be6d --- /dev/null +++ b/dist/models/V1ProductCertificateProductsListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificateProductsListResponseProduct } from './ProductCertificateProductsListResponseProduct'; +/** + * Товары, привязанные к сертификату. + * @export + * @interface V1ProductCertificateProductsListResponseResult + */ +export interface V1ProductCertificateProductsListResponseResult { + /** + * Список товаров. + * @type {Array} + * @memberof V1ProductCertificateProductsListResponseResult + */ + items?: Array; + /** + * Количество найденных товаров. + * @type {number} + * @memberof V1ProductCertificateProductsListResponseResult + */ + count?: number; +} +/** + * Check if a given object implements the V1ProductCertificateProductsListResponseResult interface. + */ +export declare function instanceOfV1ProductCertificateProductsListResponseResult(value: object): value is V1ProductCertificateProductsListResponseResult; +export declare function V1ProductCertificateProductsListResponseResultFromJSON(json: any): V1ProductCertificateProductsListResponseResult; +export declare function V1ProductCertificateProductsListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateProductsListResponseResult; +export declare function V1ProductCertificateProductsListResponseResultToJSON(value?: V1ProductCertificateProductsListResponseResult | null): any; diff --git a/dist/models/V1ProductCertificateProductsListResponseResult.js b/dist/models/V1ProductCertificateProductsListResponseResult.js new file mode 100644 index 0000000..45dabdd --- /dev/null +++ b/dist/models/V1ProductCertificateProductsListResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateProductsListResponseResult = instanceOfV1ProductCertificateProductsListResponseResult; +exports.V1ProductCertificateProductsListResponseResultFromJSON = V1ProductCertificateProductsListResponseResultFromJSON; +exports.V1ProductCertificateProductsListResponseResultFromJSONTyped = V1ProductCertificateProductsListResponseResultFromJSONTyped; +exports.V1ProductCertificateProductsListResponseResultToJSON = V1ProductCertificateProductsListResponseResultToJSON; +const ProductCertificateProductsListResponseProduct_1 = require("./ProductCertificateProductsListResponseProduct"); +/** + * Check if a given object implements the V1ProductCertificateProductsListResponseResult interface. + */ +function instanceOfV1ProductCertificateProductsListResponseResult(value) { + return true; +} +function V1ProductCertificateProductsListResponseResultFromJSON(json) { + return V1ProductCertificateProductsListResponseResultFromJSONTyped(json, false); +} +function V1ProductCertificateProductsListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(ProductCertificateProductsListResponseProduct_1.ProductCertificateProductsListResponseProductFromJSON)), + 'count': json['count'] == null ? undefined : json['count'], + }; +} +function V1ProductCertificateProductsListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(ProductCertificateProductsListResponseProduct_1.ProductCertificateProductsListResponseProductToJSON)), + 'count': value['count'], + }; +} diff --git a/dist/models/V1ProductCertificateRejectionReasonsListResponse.d.ts b/dist/models/V1ProductCertificateRejectionReasonsListResponse.d.ts new file mode 100644 index 0000000..55eff17 --- /dev/null +++ b/dist/models/V1ProductCertificateRejectionReasonsListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1StatusCodeNamePairRejection } from './V1StatusCodeNamePairRejection'; +/** + * + * @export + * @interface V1ProductCertificateRejectionReasonsListResponse + */ +export interface V1ProductCertificateRejectionReasonsListResponse { + /** + * Причины отклонения сертификата. + * @type {Array} + * @memberof V1ProductCertificateRejectionReasonsListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateRejectionReasonsListResponse interface. + */ +export declare function instanceOfV1ProductCertificateRejectionReasonsListResponse(value: object): value is V1ProductCertificateRejectionReasonsListResponse; +export declare function V1ProductCertificateRejectionReasonsListResponseFromJSON(json: any): V1ProductCertificateRejectionReasonsListResponse; +export declare function V1ProductCertificateRejectionReasonsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateRejectionReasonsListResponse; +export declare function V1ProductCertificateRejectionReasonsListResponseToJSON(value?: V1ProductCertificateRejectionReasonsListResponse | null): any; diff --git a/dist/models/V1ProductCertificateRejectionReasonsListResponse.js b/dist/models/V1ProductCertificateRejectionReasonsListResponse.js new file mode 100644 index 0000000..cf62736 --- /dev/null +++ b/dist/models/V1ProductCertificateRejectionReasonsListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateRejectionReasonsListResponse = instanceOfV1ProductCertificateRejectionReasonsListResponse; +exports.V1ProductCertificateRejectionReasonsListResponseFromJSON = V1ProductCertificateRejectionReasonsListResponseFromJSON; +exports.V1ProductCertificateRejectionReasonsListResponseFromJSONTyped = V1ProductCertificateRejectionReasonsListResponseFromJSONTyped; +exports.V1ProductCertificateRejectionReasonsListResponseToJSON = V1ProductCertificateRejectionReasonsListResponseToJSON; +const V1StatusCodeNamePairRejection_1 = require("./V1StatusCodeNamePairRejection"); +/** + * Check if a given object implements the V1ProductCertificateRejectionReasonsListResponse interface. + */ +function instanceOfV1ProductCertificateRejectionReasonsListResponse(value) { + return true; +} +function V1ProductCertificateRejectionReasonsListResponseFromJSON(json) { + return V1ProductCertificateRejectionReasonsListResponseFromJSONTyped(json, false); +} +function V1ProductCertificateRejectionReasonsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1StatusCodeNamePairRejection_1.V1StatusCodeNamePairRejectionFromJSON)), + }; +} +function V1ProductCertificateRejectionReasonsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1StatusCodeNamePairRejection_1.V1StatusCodeNamePairRejectionToJSON)), + }; +} diff --git a/dist/models/V1ProductCertificateStatusListResponse.d.ts b/dist/models/V1ProductCertificateStatusListResponse.d.ts new file mode 100644 index 0000000..1fd317e --- /dev/null +++ b/dist/models/V1ProductCertificateStatusListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1StatusCodeNamePairStatuses } from './V1StatusCodeNamePairStatuses'; +/** + * + * @export + * @interface V1ProductCertificateStatusListResponse + */ +export interface V1ProductCertificateStatusListResponse { + /** + * Список возможных статусов сертификатов. + * @type {Array} + * @memberof V1ProductCertificateStatusListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateStatusListResponse interface. + */ +export declare function instanceOfV1ProductCertificateStatusListResponse(value: object): value is V1ProductCertificateStatusListResponse; +export declare function V1ProductCertificateStatusListResponseFromJSON(json: any): V1ProductCertificateStatusListResponse; +export declare function V1ProductCertificateStatusListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateStatusListResponse; +export declare function V1ProductCertificateStatusListResponseToJSON(value?: V1ProductCertificateStatusListResponse | null): any; diff --git a/dist/models/V1ProductCertificateStatusListResponse.js b/dist/models/V1ProductCertificateStatusListResponse.js new file mode 100644 index 0000000..bcac485 --- /dev/null +++ b/dist/models/V1ProductCertificateStatusListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateStatusListResponse = instanceOfV1ProductCertificateStatusListResponse; +exports.V1ProductCertificateStatusListResponseFromJSON = V1ProductCertificateStatusListResponseFromJSON; +exports.V1ProductCertificateStatusListResponseFromJSONTyped = V1ProductCertificateStatusListResponseFromJSONTyped; +exports.V1ProductCertificateStatusListResponseToJSON = V1ProductCertificateStatusListResponseToJSON; +const V1StatusCodeNamePairStatuses_1 = require("./V1StatusCodeNamePairStatuses"); +/** + * Check if a given object implements the V1ProductCertificateStatusListResponse interface. + */ +function instanceOfV1ProductCertificateStatusListResponse(value) { + return true; +} +function V1ProductCertificateStatusListResponseFromJSON(json) { + return V1ProductCertificateStatusListResponseFromJSONTyped(json, false); +} +function V1ProductCertificateStatusListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V1StatusCodeNamePairStatuses_1.V1StatusCodeNamePairStatusesFromJSON)), + }; +} +function V1ProductCertificateStatusListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V1StatusCodeNamePairStatuses_1.V1StatusCodeNamePairStatusesToJSON)), + }; +} diff --git a/dist/models/V1ProductCertificateUnbindRequest.d.ts b/dist/models/V1ProductCertificateUnbindRequest.d.ts new file mode 100644 index 0000000..208fdf2 --- /dev/null +++ b/dist/models/V1ProductCertificateUnbindRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductCertificateUnbindRequest + */ +export interface V1ProductCertificateUnbindRequest { + /** + * Идентификатор сертификата. + * @type {number} + * @memberof V1ProductCertificateUnbindRequest + */ + certificate_id: number; + /** + * Список идентификаторов товара в системе Ozon — `product_id`, которые нужно отвязать от сертификата. + * @type {Array} + * @memberof V1ProductCertificateUnbindRequest + * @deprecated + */ + product_id?: Array; + /** + * Список идентификаторов товаров в системе Ozon — SKU, которые нужно отвязать от сертификата. + * @type {Array} + * @memberof V1ProductCertificateUnbindRequest + */ + skus?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateUnbindRequest interface. + */ +export declare function instanceOfV1ProductCertificateUnbindRequest(value: object): value is V1ProductCertificateUnbindRequest; +export declare function V1ProductCertificateUnbindRequestFromJSON(json: any): V1ProductCertificateUnbindRequest; +export declare function V1ProductCertificateUnbindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateUnbindRequest; +export declare function V1ProductCertificateUnbindRequestToJSON(value?: V1ProductCertificateUnbindRequest | null): any; diff --git a/dist/models/V1ProductCertificateUnbindRequest.js b/dist/models/V1ProductCertificateUnbindRequest.js new file mode 100644 index 0000000..af0440a --- /dev/null +++ b/dist/models/V1ProductCertificateUnbindRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateUnbindRequest = instanceOfV1ProductCertificateUnbindRequest; +exports.V1ProductCertificateUnbindRequestFromJSON = V1ProductCertificateUnbindRequestFromJSON; +exports.V1ProductCertificateUnbindRequestFromJSONTyped = V1ProductCertificateUnbindRequestFromJSONTyped; +exports.V1ProductCertificateUnbindRequestToJSON = V1ProductCertificateUnbindRequestToJSON; +/** + * Check if a given object implements the V1ProductCertificateUnbindRequest interface. + */ +function instanceOfV1ProductCertificateUnbindRequest(value) { + if (!('certificate_id' in value) || value['certificate_id'] === undefined) + return false; + return true; +} +function V1ProductCertificateUnbindRequestFromJSON(json) { + return V1ProductCertificateUnbindRequestFromJSONTyped(json, false); +} +function V1ProductCertificateUnbindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certificate_id': json['certificate_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'skus': json['skus'] == null ? undefined : json['skus'], + }; +} +function V1ProductCertificateUnbindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'certificate_id': value['certificate_id'], + 'product_id': value['product_id'], + 'skus': value['skus'], + }; +} diff --git a/dist/models/V1ProductCertificateUnbindResponse.d.ts b/dist/models/V1ProductCertificateUnbindResponse.d.ts new file mode 100644 index 0000000..9b04c56 --- /dev/null +++ b/dist/models/V1ProductCertificateUnbindResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificateUnbindResponseItem } from './ProductCertificateUnbindResponseItem'; +/** + * + * @export + * @interface V1ProductCertificateUnbindResponse + */ +export interface V1ProductCertificateUnbindResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof V1ProductCertificateUnbindResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1ProductCertificateUnbindResponse interface. + */ +export declare function instanceOfV1ProductCertificateUnbindResponse(value: object): value is V1ProductCertificateUnbindResponse; +export declare function V1ProductCertificateUnbindResponseFromJSON(json: any): V1ProductCertificateUnbindResponse; +export declare function V1ProductCertificateUnbindResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductCertificateUnbindResponse; +export declare function V1ProductCertificateUnbindResponseToJSON(value?: V1ProductCertificateUnbindResponse | null): any; diff --git a/dist/models/V1ProductCertificateUnbindResponse.js b/dist/models/V1ProductCertificateUnbindResponse.js new file mode 100644 index 0000000..fe3ae22 --- /dev/null +++ b/dist/models/V1ProductCertificateUnbindResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductCertificateUnbindResponse = instanceOfV1ProductCertificateUnbindResponse; +exports.V1ProductCertificateUnbindResponseFromJSON = V1ProductCertificateUnbindResponseFromJSON; +exports.V1ProductCertificateUnbindResponseFromJSONTyped = V1ProductCertificateUnbindResponseFromJSONTyped; +exports.V1ProductCertificateUnbindResponseToJSON = V1ProductCertificateUnbindResponseToJSON; +const ProductCertificateUnbindResponseItem_1 = require("./ProductCertificateUnbindResponseItem"); +/** + * Check if a given object implements the V1ProductCertificateUnbindResponse interface. + */ +function instanceOfV1ProductCertificateUnbindResponse(value) { + return true; +} +function V1ProductCertificateUnbindResponseFromJSON(json) { + return V1ProductCertificateUnbindResponseFromJSONTyped(json, false); +} +function V1ProductCertificateUnbindResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(ProductCertificateUnbindResponseItem_1.ProductCertificateUnbindResponseItemFromJSON)), + }; +} +function V1ProductCertificateUnbindResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(ProductCertificateUnbindResponseItem_1.ProductCertificateUnbindResponseItemToJSON)), + }; +} diff --git a/dist/models/V1ProductFbsSplit.d.ts b/dist/models/V1ProductFbsSplit.d.ts new file mode 100644 index 0000000..08c6f0b --- /dev/null +++ b/dist/models/V1ProductFbsSplit.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductFbsSplit + */ +export interface V1ProductFbsSplit { + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ProductFbsSplit + */ + product_id: number; + /** + * Количество экземпляров. + * @type {number} + * @memberof V1ProductFbsSplit + */ + quantity: number; +} +/** + * Check if a given object implements the V1ProductFbsSplit interface. + */ +export declare function instanceOfV1ProductFbsSplit(value: object): value is V1ProductFbsSplit; +export declare function V1ProductFbsSplitFromJSON(json: any): V1ProductFbsSplit; +export declare function V1ProductFbsSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductFbsSplit; +export declare function V1ProductFbsSplitToJSON(value?: V1ProductFbsSplit | null): any; diff --git a/dist/models/V1ProductFbsSplit.js b/dist/models/V1ProductFbsSplit.js new file mode 100644 index 0000000..994d5aa --- /dev/null +++ b/dist/models/V1ProductFbsSplit.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductFbsSplit = instanceOfV1ProductFbsSplit; +exports.V1ProductFbsSplitFromJSON = V1ProductFbsSplitFromJSON; +exports.V1ProductFbsSplitFromJSONTyped = V1ProductFbsSplitFromJSONTyped; +exports.V1ProductFbsSplitToJSON = V1ProductFbsSplitToJSON; +/** + * Check if a given object implements the V1ProductFbsSplit interface. + */ +function instanceOfV1ProductFbsSplit(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + return true; +} +function V1ProductFbsSplitFromJSON(json) { + return V1ProductFbsSplitFromJSONTyped(json, false); +} +function V1ProductFbsSplitFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + 'quantity': json['quantity'], + }; +} +function V1ProductFbsSplitToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/models/V1ProductGetRelatedSKURequest.d.ts b/dist/models/V1ProductGetRelatedSKURequest.d.ts new file mode 100644 index 0000000..bfe10f4 --- /dev/null +++ b/dist/models/V1ProductGetRelatedSKURequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductGetRelatedSKURequest + */ +export interface V1ProductGetRelatedSKURequest { + /** + * Список SKU. + * @type {Array} + * @memberof V1ProductGetRelatedSKURequest + */ + sku: Array; +} +/** + * Check if a given object implements the V1ProductGetRelatedSKURequest interface. + */ +export declare function instanceOfV1ProductGetRelatedSKURequest(value: object): value is V1ProductGetRelatedSKURequest; +export declare function V1ProductGetRelatedSKURequestFromJSON(json: any): V1ProductGetRelatedSKURequest; +export declare function V1ProductGetRelatedSKURequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductGetRelatedSKURequest; +export declare function V1ProductGetRelatedSKURequestToJSON(value?: V1ProductGetRelatedSKURequest | null): any; diff --git a/dist/models/V1ProductGetRelatedSKURequest.js b/dist/models/V1ProductGetRelatedSKURequest.js new file mode 100644 index 0000000..5e5d32b --- /dev/null +++ b/dist/models/V1ProductGetRelatedSKURequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductGetRelatedSKURequest = instanceOfV1ProductGetRelatedSKURequest; +exports.V1ProductGetRelatedSKURequestFromJSON = V1ProductGetRelatedSKURequestFromJSON; +exports.V1ProductGetRelatedSKURequestFromJSONTyped = V1ProductGetRelatedSKURequestFromJSONTyped; +exports.V1ProductGetRelatedSKURequestToJSON = V1ProductGetRelatedSKURequestToJSON; +/** + * Check if a given object implements the V1ProductGetRelatedSKURequest interface. + */ +function instanceOfV1ProductGetRelatedSKURequest(value) { + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1ProductGetRelatedSKURequestFromJSON(json) { + return V1ProductGetRelatedSKURequestFromJSONTyped(json, false); +} +function V1ProductGetRelatedSKURequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'], + }; +} +function V1ProductGetRelatedSKURequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1ProductGetRelatedSKUResponse.d.ts b/dist/models/V1ProductGetRelatedSKUResponse.d.ts new file mode 100644 index 0000000..ad6a60d --- /dev/null +++ b/dist/models/V1ProductGetRelatedSKUResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductGetRelatedSKUResponseError } from './V1ProductGetRelatedSKUResponseError'; +import type { V1ProductGetRelatedSKUResponseItem } from './V1ProductGetRelatedSKUResponseItem'; +/** + * + * @export + * @interface V1ProductGetRelatedSKUResponse + */ +export interface V1ProductGetRelatedSKUResponse { + /** + * Информация о связанных SKU. + * @type {Array} + * @memberof V1ProductGetRelatedSKUResponse + */ + items?: Array; + /** + * Ошибки. + * @type {Array} + * @memberof V1ProductGetRelatedSKUResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponse interface. + */ +export declare function instanceOfV1ProductGetRelatedSKUResponse(value: object): value is V1ProductGetRelatedSKUResponse; +export declare function V1ProductGetRelatedSKUResponseFromJSON(json: any): V1ProductGetRelatedSKUResponse; +export declare function V1ProductGetRelatedSKUResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductGetRelatedSKUResponse; +export declare function V1ProductGetRelatedSKUResponseToJSON(value?: V1ProductGetRelatedSKUResponse | null): any; diff --git a/dist/models/V1ProductGetRelatedSKUResponse.js b/dist/models/V1ProductGetRelatedSKUResponse.js new file mode 100644 index 0000000..19dba6d --- /dev/null +++ b/dist/models/V1ProductGetRelatedSKUResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductGetRelatedSKUResponse = instanceOfV1ProductGetRelatedSKUResponse; +exports.V1ProductGetRelatedSKUResponseFromJSON = V1ProductGetRelatedSKUResponseFromJSON; +exports.V1ProductGetRelatedSKUResponseFromJSONTyped = V1ProductGetRelatedSKUResponseFromJSONTyped; +exports.V1ProductGetRelatedSKUResponseToJSON = V1ProductGetRelatedSKUResponseToJSON; +const V1ProductGetRelatedSKUResponseError_1 = require("./V1ProductGetRelatedSKUResponseError"); +const V1ProductGetRelatedSKUResponseItem_1 = require("./V1ProductGetRelatedSKUResponseItem"); +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponse interface. + */ +function instanceOfV1ProductGetRelatedSKUResponse(value) { + return true; +} +function V1ProductGetRelatedSKUResponseFromJSON(json) { + return V1ProductGetRelatedSKUResponseFromJSONTyped(json, false); +} +function V1ProductGetRelatedSKUResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1ProductGetRelatedSKUResponseItem_1.V1ProductGetRelatedSKUResponseItemFromJSON)), + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1ProductGetRelatedSKUResponseError_1.V1ProductGetRelatedSKUResponseErrorFromJSON)), + }; +} +function V1ProductGetRelatedSKUResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1ProductGetRelatedSKUResponseItem_1.V1ProductGetRelatedSKUResponseItemToJSON)), + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1ProductGetRelatedSKUResponseError_1.V1ProductGetRelatedSKUResponseErrorToJSON)), + }; +} diff --git a/dist/models/V1ProductGetRelatedSKUResponseError.d.ts b/dist/models/V1ProductGetRelatedSKUResponseError.d.ts new file mode 100644 index 0000000..6d83a81 --- /dev/null +++ b/dist/models/V1ProductGetRelatedSKUResponseError.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductGetRelatedSKUResponseError + */ +export interface V1ProductGetRelatedSKUResponseError { + /** + * Код ошибки. + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseError + */ + code?: string; + /** + * SKU, в котором произошла ошибка. + * @type {number} + * @memberof V1ProductGetRelatedSKUResponseError + */ + sku?: number; + /** + * Текст ошибки. + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseError + */ + message?: string; +} +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponseError interface. + */ +export declare function instanceOfV1ProductGetRelatedSKUResponseError(value: object): value is V1ProductGetRelatedSKUResponseError; +export declare function V1ProductGetRelatedSKUResponseErrorFromJSON(json: any): V1ProductGetRelatedSKUResponseError; +export declare function V1ProductGetRelatedSKUResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductGetRelatedSKUResponseError; +export declare function V1ProductGetRelatedSKUResponseErrorToJSON(value?: V1ProductGetRelatedSKUResponseError | null): any; diff --git a/dist/models/V1ProductGetRelatedSKUResponseError.js b/dist/models/V1ProductGetRelatedSKUResponseError.js new file mode 100644 index 0000000..07eafd9 --- /dev/null +++ b/dist/models/V1ProductGetRelatedSKUResponseError.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductGetRelatedSKUResponseError = instanceOfV1ProductGetRelatedSKUResponseError; +exports.V1ProductGetRelatedSKUResponseErrorFromJSON = V1ProductGetRelatedSKUResponseErrorFromJSON; +exports.V1ProductGetRelatedSKUResponseErrorFromJSONTyped = V1ProductGetRelatedSKUResponseErrorFromJSONTyped; +exports.V1ProductGetRelatedSKUResponseErrorToJSON = V1ProductGetRelatedSKUResponseErrorToJSON; +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponseError interface. + */ +function instanceOfV1ProductGetRelatedSKUResponseError(value) { + return true; +} +function V1ProductGetRelatedSKUResponseErrorFromJSON(json) { + return V1ProductGetRelatedSKUResponseErrorFromJSONTyped(json, false); +} +function V1ProductGetRelatedSKUResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function V1ProductGetRelatedSKUResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'sku': value['sku'], + 'message': value['message'], + }; +} diff --git a/dist/models/V1ProductGetRelatedSKUResponseItem.d.ts b/dist/models/V1ProductGetRelatedSKUResponseItem.d.ts new file mode 100644 index 0000000..7ec9ddb --- /dev/null +++ b/dist/models/V1ProductGetRelatedSKUResponseItem.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductGetRelatedSKUResponseItem + */ +export interface V1ProductGetRelatedSKUResponseItem { + /** + * Признак доступности товара по SKU: + * - `HIDDEN` — скрыт; + * - `AVAILABLE` — доступен; + * - `UNAVAILABLE` — недоступен, SKU удалён. + * + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + availability?: string; + /** + * Дата и время удаления. + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + deleted_at?: string; + /** + * Схема доставки: + * - `SDS` - идентификатор единого Ozon SKU; + * - `FBO` - идентификатор товара, который продаётся со склада Ozon; + * - `FBS` - идентификатор товара, который продаётся со склада FBS; + * - `Crossborder` - идентификатор товара, который продаётся из-за границы. + * + * @type {string} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + delivery_schema?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + product_id?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ProductGetRelatedSKUResponseItem + */ + sku?: number; +} +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponseItem interface. + */ +export declare function instanceOfV1ProductGetRelatedSKUResponseItem(value: object): value is V1ProductGetRelatedSKUResponseItem; +export declare function V1ProductGetRelatedSKUResponseItemFromJSON(json: any): V1ProductGetRelatedSKUResponseItem; +export declare function V1ProductGetRelatedSKUResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductGetRelatedSKUResponseItem; +export declare function V1ProductGetRelatedSKUResponseItemToJSON(value?: V1ProductGetRelatedSKUResponseItem | null): any; diff --git a/dist/models/V1ProductGetRelatedSKUResponseItem.js b/dist/models/V1ProductGetRelatedSKUResponseItem.js new file mode 100644 index 0000000..986fbcf --- /dev/null +++ b/dist/models/V1ProductGetRelatedSKUResponseItem.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductGetRelatedSKUResponseItem = instanceOfV1ProductGetRelatedSKUResponseItem; +exports.V1ProductGetRelatedSKUResponseItemFromJSON = V1ProductGetRelatedSKUResponseItemFromJSON; +exports.V1ProductGetRelatedSKUResponseItemFromJSONTyped = V1ProductGetRelatedSKUResponseItemFromJSONTyped; +exports.V1ProductGetRelatedSKUResponseItemToJSON = V1ProductGetRelatedSKUResponseItemToJSON; +/** + * Check if a given object implements the V1ProductGetRelatedSKUResponseItem interface. + */ +function instanceOfV1ProductGetRelatedSKUResponseItem(value) { + return true; +} +function V1ProductGetRelatedSKUResponseItemFromJSON(json) { + return V1ProductGetRelatedSKUResponseItemFromJSONTyped(json, false); +} +function V1ProductGetRelatedSKUResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'availability': json['availability'] == null ? undefined : json['availability'], + 'deleted_at': json['deleted_at'] == null ? undefined : json['deleted_at'], + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1ProductGetRelatedSKUResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'availability': value['availability'], + 'deleted_at': value['deleted_at'], + 'delivery_schema': value['delivery_schema'], + 'product_id': value['product_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1ProductInfoWarehouseStocksRequest.d.ts b/dist/models/V1ProductInfoWarehouseStocksRequest.d.ts new file mode 100644 index 0000000..5815a94 --- /dev/null +++ b/dist/models/V1ProductInfoWarehouseStocksRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductInfoWarehouseStocksRequest + */ +export interface V1ProductInfoWarehouseStocksRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ProductInfoWarehouseStocksRequest + */ + cursor?: string; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1ProductInfoWarehouseStocksRequest + */ + limit: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1ProductInfoWarehouseStocksRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1ProductInfoWarehouseStocksRequest interface. + */ +export declare function instanceOfV1ProductInfoWarehouseStocksRequest(value: object): value is V1ProductInfoWarehouseStocksRequest; +export declare function V1ProductInfoWarehouseStocksRequestFromJSON(json: any): V1ProductInfoWarehouseStocksRequest; +export declare function V1ProductInfoWarehouseStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductInfoWarehouseStocksRequest; +export declare function V1ProductInfoWarehouseStocksRequestToJSON(value?: V1ProductInfoWarehouseStocksRequest | null): any; diff --git a/dist/models/V1ProductInfoWarehouseStocksRequest.js b/dist/models/V1ProductInfoWarehouseStocksRequest.js new file mode 100644 index 0000000..3388893 --- /dev/null +++ b/dist/models/V1ProductInfoWarehouseStocksRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductInfoWarehouseStocksRequest = instanceOfV1ProductInfoWarehouseStocksRequest; +exports.V1ProductInfoWarehouseStocksRequestFromJSON = V1ProductInfoWarehouseStocksRequestFromJSON; +exports.V1ProductInfoWarehouseStocksRequestFromJSONTyped = V1ProductInfoWarehouseStocksRequestFromJSONTyped; +exports.V1ProductInfoWarehouseStocksRequestToJSON = V1ProductInfoWarehouseStocksRequestToJSON; +/** + * Check if a given object implements the V1ProductInfoWarehouseStocksRequest interface. + */ +function instanceOfV1ProductInfoWarehouseStocksRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1ProductInfoWarehouseStocksRequestFromJSON(json) { + return V1ProductInfoWarehouseStocksRequestFromJSONTyped(json, false); +} +function V1ProductInfoWarehouseStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1ProductInfoWarehouseStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1ProductInfoWarehouseStocksResponse.d.ts b/dist/models/V1ProductInfoWarehouseStocksResponse.d.ts new file mode 100644 index 0000000..b085143 --- /dev/null +++ b/dist/models/V1ProductInfoWarehouseStocksResponse.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductInfoWarehouseStocksResponseStocks } from './ProductInfoWarehouseStocksResponseStocks'; +/** + * + * @export + * @interface V1ProductInfoWarehouseStocksResponse + */ +export interface V1ProductInfoWarehouseStocksResponse { + /** + * Указатель для выборки следующих данных. Если параметр пустой, данных больше нет. + * @type {string} + * @memberof V1ProductInfoWarehouseStocksResponse + */ + cursor?: string; + /** + * Признак, что в ответе вернули не все товары: + * - `true` — сделайте повторный запрос с другим значением `cursor`, чтобы получить остальные значения; + * - `false` — ответ содержит все значения. + * + * @type {boolean} + * @memberof V1ProductInfoWarehouseStocksResponse + */ + has_next?: boolean; + /** + * Информация об остатках товара. + * @type {Array} + * @memberof V1ProductInfoWarehouseStocksResponse + */ + stocks?: Array; +} +/** + * Check if a given object implements the V1ProductInfoWarehouseStocksResponse interface. + */ +export declare function instanceOfV1ProductInfoWarehouseStocksResponse(value: object): value is V1ProductInfoWarehouseStocksResponse; +export declare function V1ProductInfoWarehouseStocksResponseFromJSON(json: any): V1ProductInfoWarehouseStocksResponse; +export declare function V1ProductInfoWarehouseStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductInfoWarehouseStocksResponse; +export declare function V1ProductInfoWarehouseStocksResponseToJSON(value?: V1ProductInfoWarehouseStocksResponse | null): any; diff --git a/dist/models/V1ProductInfoWarehouseStocksResponse.js b/dist/models/V1ProductInfoWarehouseStocksResponse.js new file mode 100644 index 0000000..b47a82b --- /dev/null +++ b/dist/models/V1ProductInfoWarehouseStocksResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductInfoWarehouseStocksResponse = instanceOfV1ProductInfoWarehouseStocksResponse; +exports.V1ProductInfoWarehouseStocksResponseFromJSON = V1ProductInfoWarehouseStocksResponseFromJSON; +exports.V1ProductInfoWarehouseStocksResponseFromJSONTyped = V1ProductInfoWarehouseStocksResponseFromJSONTyped; +exports.V1ProductInfoWarehouseStocksResponseToJSON = V1ProductInfoWarehouseStocksResponseToJSON; +const ProductInfoWarehouseStocksResponseStocks_1 = require("./ProductInfoWarehouseStocksResponseStocks"); +/** + * Check if a given object implements the V1ProductInfoWarehouseStocksResponse interface. + */ +function instanceOfV1ProductInfoWarehouseStocksResponse(value) { + return true; +} +function V1ProductInfoWarehouseStocksResponseFromJSON(json) { + return V1ProductInfoWarehouseStocksResponseFromJSONTyped(json, false); +} +function V1ProductInfoWarehouseStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'stocks': json['stocks'] == null ? undefined : (json['stocks'].map(ProductInfoWarehouseStocksResponseStocks_1.ProductInfoWarehouseStocksResponseStocksFromJSON)), + }; +} +function V1ProductInfoWarehouseStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'stocks': value['stocks'] == null ? undefined : (value['stocks'].map(ProductInfoWarehouseStocksResponseStocks_1.ProductInfoWarehouseStocksResponseStocksToJSON)), + }; +} diff --git a/dist/models/V1ProductInfoWrongVolumeRequest.d.ts b/dist/models/V1ProductInfoWrongVolumeRequest.d.ts new file mode 100644 index 0000000..fdc2a29 --- /dev/null +++ b/dist/models/V1ProductInfoWrongVolumeRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductInfoWrongVolumeRequest + */ +export interface V1ProductInfoWrongVolumeRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ProductInfoWrongVolumeRequest + */ + cursor?: string; + /** + * Максимальное количество элементов в ответе. + * @type {number} + * @memberof V1ProductInfoWrongVolumeRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1ProductInfoWrongVolumeRequest interface. + */ +export declare function instanceOfV1ProductInfoWrongVolumeRequest(value: object): value is V1ProductInfoWrongVolumeRequest; +export declare function V1ProductInfoWrongVolumeRequestFromJSON(json: any): V1ProductInfoWrongVolumeRequest; +export declare function V1ProductInfoWrongVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductInfoWrongVolumeRequest; +export declare function V1ProductInfoWrongVolumeRequestToJSON(value?: V1ProductInfoWrongVolumeRequest | null): any; diff --git a/dist/models/V1ProductInfoWrongVolumeRequest.js b/dist/models/V1ProductInfoWrongVolumeRequest.js new file mode 100644 index 0000000..7d4a8eb --- /dev/null +++ b/dist/models/V1ProductInfoWrongVolumeRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductInfoWrongVolumeRequest = instanceOfV1ProductInfoWrongVolumeRequest; +exports.V1ProductInfoWrongVolumeRequestFromJSON = V1ProductInfoWrongVolumeRequestFromJSON; +exports.V1ProductInfoWrongVolumeRequestFromJSONTyped = V1ProductInfoWrongVolumeRequestFromJSONTyped; +exports.V1ProductInfoWrongVolumeRequestToJSON = V1ProductInfoWrongVolumeRequestToJSON; +/** + * Check if a given object implements the V1ProductInfoWrongVolumeRequest interface. + */ +function instanceOfV1ProductInfoWrongVolumeRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1ProductInfoWrongVolumeRequestFromJSON(json) { + return V1ProductInfoWrongVolumeRequestFromJSONTyped(json, false); +} +function V1ProductInfoWrongVolumeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + }; +} +function V1ProductInfoWrongVolumeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1ProductInfoWrongVolumeResponse.d.ts b/dist/models/V1ProductInfoWrongVolumeResponse.d.ts new file mode 100644 index 0000000..fb5b96a --- /dev/null +++ b/dist/models/V1ProductInfoWrongVolumeResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductInfoWrongVolumeResponseWrongVolumeProduct } from './ProductInfoWrongVolumeResponseWrongVolumeProduct'; +/** + * + * @export + * @interface V1ProductInfoWrongVolumeResponse + */ +export interface V1ProductInfoWrongVolumeResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1ProductInfoWrongVolumeResponse + */ + cursor?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V1ProductInfoWrongVolumeResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1ProductInfoWrongVolumeResponse interface. + */ +export declare function instanceOfV1ProductInfoWrongVolumeResponse(value: object): value is V1ProductInfoWrongVolumeResponse; +export declare function V1ProductInfoWrongVolumeResponseFromJSON(json: any): V1ProductInfoWrongVolumeResponse; +export declare function V1ProductInfoWrongVolumeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductInfoWrongVolumeResponse; +export declare function V1ProductInfoWrongVolumeResponseToJSON(value?: V1ProductInfoWrongVolumeResponse | null): any; diff --git a/dist/models/V1ProductInfoWrongVolumeResponse.js b/dist/models/V1ProductInfoWrongVolumeResponse.js new file mode 100644 index 0000000..35c330d --- /dev/null +++ b/dist/models/V1ProductInfoWrongVolumeResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductInfoWrongVolumeResponse = instanceOfV1ProductInfoWrongVolumeResponse; +exports.V1ProductInfoWrongVolumeResponseFromJSON = V1ProductInfoWrongVolumeResponseFromJSON; +exports.V1ProductInfoWrongVolumeResponseFromJSONTyped = V1ProductInfoWrongVolumeResponseFromJSONTyped; +exports.V1ProductInfoWrongVolumeResponseToJSON = V1ProductInfoWrongVolumeResponseToJSON; +const ProductInfoWrongVolumeResponseWrongVolumeProduct_1 = require("./ProductInfoWrongVolumeResponseWrongVolumeProduct"); +/** + * Check if a given object implements the V1ProductInfoWrongVolumeResponse interface. + */ +function instanceOfV1ProductInfoWrongVolumeResponse(value) { + return true; +} +function V1ProductInfoWrongVolumeResponseFromJSON(json) { + return V1ProductInfoWrongVolumeResponseFromJSONTyped(json, false); +} +function V1ProductInfoWrongVolumeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'products': json['products'] == null ? undefined : (json['products'].map(ProductInfoWrongVolumeResponseWrongVolumeProduct_1.ProductInfoWrongVolumeResponseWrongVolumeProductFromJSON)), + }; +} +function V1ProductInfoWrongVolumeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'products': value['products'] == null ? undefined : (value['products'].map(ProductInfoWrongVolumeResponseWrongVolumeProduct_1.ProductInfoWrongVolumeResponseWrongVolumeProductToJSON)), + }; +} diff --git a/dist/models/V1ProductPricesDetailsRequest.d.ts b/dist/models/V1ProductPricesDetailsRequest.d.ts new file mode 100644 index 0000000..47b57a5 --- /dev/null +++ b/dist/models/V1ProductPricesDetailsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductPricesDetailsRequest + */ +export interface V1ProductPricesDetailsRequest { + /** + * Список SKU. + * @type {Array} + * @memberof V1ProductPricesDetailsRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1ProductPricesDetailsRequest interface. + */ +export declare function instanceOfV1ProductPricesDetailsRequest(value: object): value is V1ProductPricesDetailsRequest; +export declare function V1ProductPricesDetailsRequestFromJSON(json: any): V1ProductPricesDetailsRequest; +export declare function V1ProductPricesDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductPricesDetailsRequest; +export declare function V1ProductPricesDetailsRequestToJSON(value?: V1ProductPricesDetailsRequest | null): any; diff --git a/dist/models/V1ProductPricesDetailsRequest.js b/dist/models/V1ProductPricesDetailsRequest.js new file mode 100644 index 0000000..4e5ff51 --- /dev/null +++ b/dist/models/V1ProductPricesDetailsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductPricesDetailsRequest = instanceOfV1ProductPricesDetailsRequest; +exports.V1ProductPricesDetailsRequestFromJSON = V1ProductPricesDetailsRequestFromJSON; +exports.V1ProductPricesDetailsRequestFromJSONTyped = V1ProductPricesDetailsRequestFromJSONTyped; +exports.V1ProductPricesDetailsRequestToJSON = V1ProductPricesDetailsRequestToJSON; +/** + * Check if a given object implements the V1ProductPricesDetailsRequest interface. + */ +function instanceOfV1ProductPricesDetailsRequest(value) { + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1ProductPricesDetailsRequestFromJSON(json) { + return V1ProductPricesDetailsRequestFromJSONTyped(json, false); +} +function V1ProductPricesDetailsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'skus': json['skus'], + }; +} +function V1ProductPricesDetailsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'skus': value['skus'], + }; +} diff --git a/dist/models/V1ProductPricesDetailsResponse.d.ts b/dist/models/V1ProductPricesDetailsResponse.d.ts new file mode 100644 index 0000000..9f4f78e --- /dev/null +++ b/dist/models/V1ProductPricesDetailsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductPricesDetailsResponsePrice } from './V1ProductPricesDetailsResponsePrice'; +/** + * + * @export + * @interface V1ProductPricesDetailsResponse + */ +export interface V1ProductPricesDetailsResponse { + /** + * Цены товаров. + * @type {Array} + * @memberof V1ProductPricesDetailsResponse + */ + prices?: Array; +} +/** + * Check if a given object implements the V1ProductPricesDetailsResponse interface. + */ +export declare function instanceOfV1ProductPricesDetailsResponse(value: object): value is V1ProductPricesDetailsResponse; +export declare function V1ProductPricesDetailsResponseFromJSON(json: any): V1ProductPricesDetailsResponse; +export declare function V1ProductPricesDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductPricesDetailsResponse; +export declare function V1ProductPricesDetailsResponseToJSON(value?: V1ProductPricesDetailsResponse | null): any; diff --git a/dist/models/V1ProductPricesDetailsResponse.js b/dist/models/V1ProductPricesDetailsResponse.js new file mode 100644 index 0000000..da151b6 --- /dev/null +++ b/dist/models/V1ProductPricesDetailsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductPricesDetailsResponse = instanceOfV1ProductPricesDetailsResponse; +exports.V1ProductPricesDetailsResponseFromJSON = V1ProductPricesDetailsResponseFromJSON; +exports.V1ProductPricesDetailsResponseFromJSONTyped = V1ProductPricesDetailsResponseFromJSONTyped; +exports.V1ProductPricesDetailsResponseToJSON = V1ProductPricesDetailsResponseToJSON; +const V1ProductPricesDetailsResponsePrice_1 = require("./V1ProductPricesDetailsResponsePrice"); +/** + * Check if a given object implements the V1ProductPricesDetailsResponse interface. + */ +function instanceOfV1ProductPricesDetailsResponse(value) { + return true; +} +function V1ProductPricesDetailsResponseFromJSON(json) { + return V1ProductPricesDetailsResponseFromJSONTyped(json, false); +} +function V1ProductPricesDetailsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'prices': json['prices'] == null ? undefined : (json['prices'].map(V1ProductPricesDetailsResponsePrice_1.V1ProductPricesDetailsResponsePriceFromJSON)), + }; +} +function V1ProductPricesDetailsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'prices': value['prices'] == null ? undefined : (value['prices'].map(V1ProductPricesDetailsResponsePrice_1.V1ProductPricesDetailsResponsePriceToJSON)), + }; +} diff --git a/dist/models/V1ProductPricesDetailsResponsePrice.d.ts b/dist/models/V1ProductPricesDetailsResponsePrice.d.ts new file mode 100644 index 0000000..97c7de7 --- /dev/null +++ b/dist/models/V1ProductPricesDetailsResponsePrice.d.ts @@ -0,0 +1,65 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MoneyMoney } from './MoneyMoney'; +import type { ProductV1ProductPricesDetailsResponsePricePriceIndex } from './ProductV1ProductPricesDetailsResponsePricePriceIndex'; +import type { MoneyMoneyCustomerPrice } from './MoneyMoneyCustomerPrice'; +/** + * + * @export + * @interface V1ProductPricesDetailsResponsePrice + */ +export interface V1ProductPricesDetailsResponsePrice { + /** + * + * @type {MoneyMoneyCustomerPrice} + * @memberof V1ProductPricesDetailsResponsePrice + */ + customer_price?: MoneyMoneyCustomerPrice; + /** + * Процент скидки за счёт Ozon. + * @type {number} + * @memberof V1ProductPricesDetailsResponsePrice + * @deprecated + */ + discount_percent?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1ProductPricesDetailsResponsePrice + */ + offer_id?: string; + /** + * + * @type {MoneyMoney} + * @memberof V1ProductPricesDetailsResponsePrice + */ + price?: MoneyMoney; + /** + * Индекс цен. + * @type {Array} + * @memberof V1ProductPricesDetailsResponsePrice + */ + price_indexes?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ProductPricesDetailsResponsePrice + */ + sku?: number; +} +/** + * Check if a given object implements the V1ProductPricesDetailsResponsePrice interface. + */ +export declare function instanceOfV1ProductPricesDetailsResponsePrice(value: object): value is V1ProductPricesDetailsResponsePrice; +export declare function V1ProductPricesDetailsResponsePriceFromJSON(json: any): V1ProductPricesDetailsResponsePrice; +export declare function V1ProductPricesDetailsResponsePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductPricesDetailsResponsePrice; +export declare function V1ProductPricesDetailsResponsePriceToJSON(value?: V1ProductPricesDetailsResponsePrice | null): any; diff --git a/dist/models/V1ProductPricesDetailsResponsePrice.js b/dist/models/V1ProductPricesDetailsResponsePrice.js new file mode 100644 index 0000000..d97b31c --- /dev/null +++ b/dist/models/V1ProductPricesDetailsResponsePrice.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductPricesDetailsResponsePrice = instanceOfV1ProductPricesDetailsResponsePrice; +exports.V1ProductPricesDetailsResponsePriceFromJSON = V1ProductPricesDetailsResponsePriceFromJSON; +exports.V1ProductPricesDetailsResponsePriceFromJSONTyped = V1ProductPricesDetailsResponsePriceFromJSONTyped; +exports.V1ProductPricesDetailsResponsePriceToJSON = V1ProductPricesDetailsResponsePriceToJSON; +const MoneyMoney_1 = require("./MoneyMoney"); +const ProductV1ProductPricesDetailsResponsePricePriceIndex_1 = require("./ProductV1ProductPricesDetailsResponsePricePriceIndex"); +const MoneyMoneyCustomerPrice_1 = require("./MoneyMoneyCustomerPrice"); +/** + * Check if a given object implements the V1ProductPricesDetailsResponsePrice interface. + */ +function instanceOfV1ProductPricesDetailsResponsePrice(value) { + return true; +} +function V1ProductPricesDetailsResponsePriceFromJSON(json) { + return V1ProductPricesDetailsResponsePriceFromJSONTyped(json, false); +} +function V1ProductPricesDetailsResponsePriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'customer_price': json['customer_price'] == null ? undefined : (0, MoneyMoneyCustomerPrice_1.MoneyMoneyCustomerPriceFromJSON)(json['customer_price']), + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : (0, MoneyMoney_1.MoneyMoneyFromJSON)(json['price']), + 'price_indexes': json['price_indexes'] == null ? undefined : (json['price_indexes'].map(ProductV1ProductPricesDetailsResponsePricePriceIndex_1.ProductV1ProductPricesDetailsResponsePricePriceIndexFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1ProductPricesDetailsResponsePriceToJSON(value) { + if (value == null) { + return value; + } + return { + 'customer_price': (0, MoneyMoneyCustomerPrice_1.MoneyMoneyCustomerPriceToJSON)(value['customer_price']), + 'discount_percent': value['discount_percent'], + 'offer_id': value['offer_id'], + 'price': (0, MoneyMoney_1.MoneyMoneyToJSON)(value['price']), + 'price_indexes': value['price_indexes'] == null ? undefined : (value['price_indexes'].map(ProductV1ProductPricesDetailsResponsePricePriceIndex_1.ProductV1ProductPricesDetailsResponsePricePriceIndexToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1ProductUpdateAttributesRequest.d.ts b/dist/models/V1ProductUpdateAttributesRequest.d.ts new file mode 100644 index 0000000..7084069 --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductUpdateAttributesRequestItem } from './V1ProductUpdateAttributesRequestItem'; +/** + * + * @export + * @interface V1ProductUpdateAttributesRequest + */ +export interface V1ProductUpdateAttributesRequest { + /** + * Товары и характеристики, которые нужно обновить. + * @type {Array} + * @memberof V1ProductUpdateAttributesRequest + */ + items?: Array; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesRequest interface. + */ +export declare function instanceOfV1ProductUpdateAttributesRequest(value: object): value is V1ProductUpdateAttributesRequest; +export declare function V1ProductUpdateAttributesRequestFromJSON(json: any): V1ProductUpdateAttributesRequest; +export declare function V1ProductUpdateAttributesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesRequest; +export declare function V1ProductUpdateAttributesRequestToJSON(value?: V1ProductUpdateAttributesRequest | null): any; diff --git a/dist/models/V1ProductUpdateAttributesRequest.js b/dist/models/V1ProductUpdateAttributesRequest.js new file mode 100644 index 0000000..7e87789 --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateAttributesRequest = instanceOfV1ProductUpdateAttributesRequest; +exports.V1ProductUpdateAttributesRequestFromJSON = V1ProductUpdateAttributesRequestFromJSON; +exports.V1ProductUpdateAttributesRequestFromJSONTyped = V1ProductUpdateAttributesRequestFromJSONTyped; +exports.V1ProductUpdateAttributesRequestToJSON = V1ProductUpdateAttributesRequestToJSON; +const V1ProductUpdateAttributesRequestItem_1 = require("./V1ProductUpdateAttributesRequestItem"); +/** + * Check if a given object implements the V1ProductUpdateAttributesRequest interface. + */ +function instanceOfV1ProductUpdateAttributesRequest(value) { + return true; +} +function V1ProductUpdateAttributesRequestFromJSON(json) { + return V1ProductUpdateAttributesRequestFromJSONTyped(json, false); +} +function V1ProductUpdateAttributesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1ProductUpdateAttributesRequestItem_1.V1ProductUpdateAttributesRequestItemFromJSON)), + }; +} +function V1ProductUpdateAttributesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1ProductUpdateAttributesRequestItem_1.V1ProductUpdateAttributesRequestItemToJSON)), + }; +} diff --git a/dist/models/V1ProductUpdateAttributesRequestAttribute.d.ts b/dist/models/V1ProductUpdateAttributesRequestAttribute.d.ts new file mode 100644 index 0000000..371d840 --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesRequestAttribute.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductUpdateAttributesRequestValue } from './V1ProductUpdateAttributesRequestValue'; +/** + * + * @export + * @interface V1ProductUpdateAttributesRequestAttribute + */ +export interface V1ProductUpdateAttributesRequestAttribute { + /** + * Идентификатор характеристики, которая поддерживает вложенные свойства. У каждой из вложенных характеристик может быть несколько вариантов значений. + * @type {number} + * @memberof V1ProductUpdateAttributesRequestAttribute + */ + complex_id?: number; + /** + * Идентификатор характеристики. + * @type {number} + * @memberof V1ProductUpdateAttributesRequestAttribute + */ + id?: number; + /** + * Массив вложенных значений характеристики. + * @type {Array} + * @memberof V1ProductUpdateAttributesRequestAttribute + */ + values?: Array; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestAttribute interface. + */ +export declare function instanceOfV1ProductUpdateAttributesRequestAttribute(value: object): value is V1ProductUpdateAttributesRequestAttribute; +export declare function V1ProductUpdateAttributesRequestAttributeFromJSON(json: any): V1ProductUpdateAttributesRequestAttribute; +export declare function V1ProductUpdateAttributesRequestAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesRequestAttribute; +export declare function V1ProductUpdateAttributesRequestAttributeToJSON(value?: V1ProductUpdateAttributesRequestAttribute | null): any; diff --git a/dist/models/V1ProductUpdateAttributesRequestAttribute.js b/dist/models/V1ProductUpdateAttributesRequestAttribute.js new file mode 100644 index 0000000..751fefe --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesRequestAttribute.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateAttributesRequestAttribute = instanceOfV1ProductUpdateAttributesRequestAttribute; +exports.V1ProductUpdateAttributesRequestAttributeFromJSON = V1ProductUpdateAttributesRequestAttributeFromJSON; +exports.V1ProductUpdateAttributesRequestAttributeFromJSONTyped = V1ProductUpdateAttributesRequestAttributeFromJSONTyped; +exports.V1ProductUpdateAttributesRequestAttributeToJSON = V1ProductUpdateAttributesRequestAttributeToJSON; +const V1ProductUpdateAttributesRequestValue_1 = require("./V1ProductUpdateAttributesRequestValue"); +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestAttribute interface. + */ +function instanceOfV1ProductUpdateAttributesRequestAttribute(value) { + return true; +} +function V1ProductUpdateAttributesRequestAttributeFromJSON(json) { + return V1ProductUpdateAttributesRequestAttributeFromJSONTyped(json, false); +} +function V1ProductUpdateAttributesRequestAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'complex_id': json['complex_id'] == null ? undefined : json['complex_id'], + 'id': json['id'] == null ? undefined : json['id'], + 'values': json['values'] == null ? undefined : (json['values'].map(V1ProductUpdateAttributesRequestValue_1.V1ProductUpdateAttributesRequestValueFromJSON)), + }; +} +function V1ProductUpdateAttributesRequestAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'complex_id': value['complex_id'], + 'id': value['id'], + 'values': value['values'] == null ? undefined : (value['values'].map(V1ProductUpdateAttributesRequestValue_1.V1ProductUpdateAttributesRequestValueToJSON)), + }; +} diff --git a/dist/models/V1ProductUpdateAttributesRequestItem.d.ts b/dist/models/V1ProductUpdateAttributesRequestItem.d.ts new file mode 100644 index 0000000..08c74e1 --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesRequestItem.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductUpdateAttributesRequestAttribute } from './V1ProductUpdateAttributesRequestAttribute'; +/** + * + * @export + * @interface V1ProductUpdateAttributesRequestItem + */ +export interface V1ProductUpdateAttributesRequestItem { + /** + * Характеристики товара. + * @type {Array} + * @memberof V1ProductUpdateAttributesRequestItem + */ + attributes?: Array; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1ProductUpdateAttributesRequestItem + */ + offer_id: string; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestItem interface. + */ +export declare function instanceOfV1ProductUpdateAttributesRequestItem(value: object): value is V1ProductUpdateAttributesRequestItem; +export declare function V1ProductUpdateAttributesRequestItemFromJSON(json: any): V1ProductUpdateAttributesRequestItem; +export declare function V1ProductUpdateAttributesRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesRequestItem; +export declare function V1ProductUpdateAttributesRequestItemToJSON(value?: V1ProductUpdateAttributesRequestItem | null): any; diff --git a/dist/models/V1ProductUpdateAttributesRequestItem.js b/dist/models/V1ProductUpdateAttributesRequestItem.js new file mode 100644 index 0000000..1e30c3b --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesRequestItem.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateAttributesRequestItem = instanceOfV1ProductUpdateAttributesRequestItem; +exports.V1ProductUpdateAttributesRequestItemFromJSON = V1ProductUpdateAttributesRequestItemFromJSON; +exports.V1ProductUpdateAttributesRequestItemFromJSONTyped = V1ProductUpdateAttributesRequestItemFromJSONTyped; +exports.V1ProductUpdateAttributesRequestItemToJSON = V1ProductUpdateAttributesRequestItemToJSON; +const V1ProductUpdateAttributesRequestAttribute_1 = require("./V1ProductUpdateAttributesRequestAttribute"); +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestItem interface. + */ +function instanceOfV1ProductUpdateAttributesRequestItem(value) { + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + return true; +} +function V1ProductUpdateAttributesRequestItemFromJSON(json) { + return V1ProductUpdateAttributesRequestItemFromJSONTyped(json, false); +} +function V1ProductUpdateAttributesRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(V1ProductUpdateAttributesRequestAttribute_1.V1ProductUpdateAttributesRequestAttributeFromJSON)), + 'offer_id': json['offer_id'], + }; +} +function V1ProductUpdateAttributesRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(V1ProductUpdateAttributesRequestAttribute_1.V1ProductUpdateAttributesRequestAttributeToJSON)), + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/models/V1ProductUpdateAttributesRequestValue.d.ts b/dist/models/V1ProductUpdateAttributesRequestValue.d.ts new file mode 100644 index 0000000..e981adf --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesRequestValue.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateAttributesRequestValue + */ +export interface V1ProductUpdateAttributesRequestValue { + /** + * Идентификатор характеристики в словаре. + * @type {number} + * @memberof V1ProductUpdateAttributesRequestValue + */ + dictionary_value_id?: number; + /** + * Значение характеристики товара. + * @type {string} + * @memberof V1ProductUpdateAttributesRequestValue + */ + value?: string; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestValue interface. + */ +export declare function instanceOfV1ProductUpdateAttributesRequestValue(value: object): value is V1ProductUpdateAttributesRequestValue; +export declare function V1ProductUpdateAttributesRequestValueFromJSON(json: any): V1ProductUpdateAttributesRequestValue; +export declare function V1ProductUpdateAttributesRequestValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesRequestValue; +export declare function V1ProductUpdateAttributesRequestValueToJSON(value?: V1ProductUpdateAttributesRequestValue | null): any; diff --git a/dist/models/V1ProductUpdateAttributesRequestValue.js b/dist/models/V1ProductUpdateAttributesRequestValue.js new file mode 100644 index 0000000..0e75b58 --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesRequestValue.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateAttributesRequestValue = instanceOfV1ProductUpdateAttributesRequestValue; +exports.V1ProductUpdateAttributesRequestValueFromJSON = V1ProductUpdateAttributesRequestValueFromJSON; +exports.V1ProductUpdateAttributesRequestValueFromJSONTyped = V1ProductUpdateAttributesRequestValueFromJSONTyped; +exports.V1ProductUpdateAttributesRequestValueToJSON = V1ProductUpdateAttributesRequestValueToJSON; +/** + * Check if a given object implements the V1ProductUpdateAttributesRequestValue interface. + */ +function instanceOfV1ProductUpdateAttributesRequestValue(value) { + return true; +} +function V1ProductUpdateAttributesRequestValueFromJSON(json) { + return V1ProductUpdateAttributesRequestValueFromJSONTyped(json, false); +} +function V1ProductUpdateAttributesRequestValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dictionary_value_id': json['dictionary_value_id'] == null ? undefined : json['dictionary_value_id'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V1ProductUpdateAttributesRequestValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'dictionary_value_id': value['dictionary_value_id'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1ProductUpdateAttributesResponse.d.ts b/dist/models/V1ProductUpdateAttributesResponse.d.ts new file mode 100644 index 0000000..797e94b --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateAttributesResponse + */ +export interface V1ProductUpdateAttributesResponse { + /** + * Номер задания на обновление товаров. + * + * Чтобы проверить статус обновления, передайте полученное значение в метод [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo). + * + * @type {number} + * @memberof V1ProductUpdateAttributesResponse + */ + task_id?: number; +} +/** + * Check if a given object implements the V1ProductUpdateAttributesResponse interface. + */ +export declare function instanceOfV1ProductUpdateAttributesResponse(value: object): value is V1ProductUpdateAttributesResponse; +export declare function V1ProductUpdateAttributesResponseFromJSON(json: any): V1ProductUpdateAttributesResponse; +export declare function V1ProductUpdateAttributesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateAttributesResponse; +export declare function V1ProductUpdateAttributesResponseToJSON(value?: V1ProductUpdateAttributesResponse | null): any; diff --git a/dist/models/V1ProductUpdateAttributesResponse.js b/dist/models/V1ProductUpdateAttributesResponse.js new file mode 100644 index 0000000..b58e1a6 --- /dev/null +++ b/dist/models/V1ProductUpdateAttributesResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateAttributesResponse = instanceOfV1ProductUpdateAttributesResponse; +exports.V1ProductUpdateAttributesResponseFromJSON = V1ProductUpdateAttributesResponseFromJSON; +exports.V1ProductUpdateAttributesResponseFromJSONTyped = V1ProductUpdateAttributesResponseFromJSONTyped; +exports.V1ProductUpdateAttributesResponseToJSON = V1ProductUpdateAttributesResponseToJSON; +/** + * Check if a given object implements the V1ProductUpdateAttributesResponse interface. + */ +function instanceOfV1ProductUpdateAttributesResponse(value) { + return true; +} +function V1ProductUpdateAttributesResponseFromJSON(json) { + return V1ProductUpdateAttributesResponseFromJSONTyped(json, false); +} +function V1ProductUpdateAttributesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function V1ProductUpdateAttributesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/V1ProductUpdateDiscountRequest.d.ts b/dist/models/V1ProductUpdateDiscountRequest.d.ts new file mode 100644 index 0000000..36d43be --- /dev/null +++ b/dist/models/V1ProductUpdateDiscountRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateDiscountRequest + */ +export interface V1ProductUpdateDiscountRequest { + /** + * Размер скидки: от 3 до 99 процентов. + * + * @type {number} + * @memberof V1ProductUpdateDiscountRequest + */ + discount: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1ProductUpdateDiscountRequest + */ + product_id: number; +} +/** + * Check if a given object implements the V1ProductUpdateDiscountRequest interface. + */ +export declare function instanceOfV1ProductUpdateDiscountRequest(value: object): value is V1ProductUpdateDiscountRequest; +export declare function V1ProductUpdateDiscountRequestFromJSON(json: any): V1ProductUpdateDiscountRequest; +export declare function V1ProductUpdateDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateDiscountRequest; +export declare function V1ProductUpdateDiscountRequestToJSON(value?: V1ProductUpdateDiscountRequest | null): any; diff --git a/dist/models/V1ProductUpdateDiscountRequest.js b/dist/models/V1ProductUpdateDiscountRequest.js new file mode 100644 index 0000000..0642e60 --- /dev/null +++ b/dist/models/V1ProductUpdateDiscountRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateDiscountRequest = instanceOfV1ProductUpdateDiscountRequest; +exports.V1ProductUpdateDiscountRequestFromJSON = V1ProductUpdateDiscountRequestFromJSON; +exports.V1ProductUpdateDiscountRequestFromJSONTyped = V1ProductUpdateDiscountRequestFromJSONTyped; +exports.V1ProductUpdateDiscountRequestToJSON = V1ProductUpdateDiscountRequestToJSON; +/** + * Check if a given object implements the V1ProductUpdateDiscountRequest interface. + */ +function instanceOfV1ProductUpdateDiscountRequest(value) { + if (!('discount' in value) || value['discount'] === undefined) + return false; + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function V1ProductUpdateDiscountRequestFromJSON(json) { + return V1ProductUpdateDiscountRequestFromJSONTyped(json, false); +} +function V1ProductUpdateDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount': json['discount'], + 'product_id': json['product_id'], + }; +} +function V1ProductUpdateDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount': value['discount'], + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V1ProductUpdateDiscountResponse.d.ts b/dist/models/V1ProductUpdateDiscountResponse.d.ts new file mode 100644 index 0000000..6bda4fb --- /dev/null +++ b/dist/models/V1ProductUpdateDiscountResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateDiscountResponse + */ +export interface V1ProductUpdateDiscountResponse { + /** + * Результат работы метода. `true`, если запрос выполнен без ошибок. + * @type {boolean} + * @memberof V1ProductUpdateDiscountResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the V1ProductUpdateDiscountResponse interface. + */ +export declare function instanceOfV1ProductUpdateDiscountResponse(value: object): value is V1ProductUpdateDiscountResponse; +export declare function V1ProductUpdateDiscountResponseFromJSON(json: any): V1ProductUpdateDiscountResponse; +export declare function V1ProductUpdateDiscountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateDiscountResponse; +export declare function V1ProductUpdateDiscountResponseToJSON(value?: V1ProductUpdateDiscountResponse | null): any; diff --git a/dist/models/V1ProductUpdateDiscountResponse.js b/dist/models/V1ProductUpdateDiscountResponse.js new file mode 100644 index 0000000..311e89c --- /dev/null +++ b/dist/models/V1ProductUpdateDiscountResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateDiscountResponse = instanceOfV1ProductUpdateDiscountResponse; +exports.V1ProductUpdateDiscountResponseFromJSON = V1ProductUpdateDiscountResponseFromJSON; +exports.V1ProductUpdateDiscountResponseFromJSONTyped = V1ProductUpdateDiscountResponseFromJSONTyped; +exports.V1ProductUpdateDiscountResponseToJSON = V1ProductUpdateDiscountResponseToJSON; +/** + * Check if a given object implements the V1ProductUpdateDiscountResponse interface. + */ +function instanceOfV1ProductUpdateDiscountResponse(value) { + return true; +} +function V1ProductUpdateDiscountResponseFromJSON(json) { + return V1ProductUpdateDiscountResponseFromJSONTyped(json, false); +} +function V1ProductUpdateDiscountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function V1ProductUpdateDiscountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/V1ProductUpdateOfferIdRequest.d.ts b/dist/models/V1ProductUpdateOfferIdRequest.d.ts new file mode 100644 index 0000000..f4e4381 --- /dev/null +++ b/dist/models/V1ProductUpdateOfferIdRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductUpdateOfferIdRequestUpdateOfferId } from './ProductUpdateOfferIdRequestUpdateOfferId'; +/** + * + * @export + * @interface V1ProductUpdateOfferIdRequest + */ +export interface V1ProductUpdateOfferIdRequest { + /** + * Список пар с новыми и старыми значениями артикулов. + * @type {Array} + * @memberof V1ProductUpdateOfferIdRequest + */ + update_offer_id: Array; +} +/** + * Check if a given object implements the V1ProductUpdateOfferIdRequest interface. + */ +export declare function instanceOfV1ProductUpdateOfferIdRequest(value: object): value is V1ProductUpdateOfferIdRequest; +export declare function V1ProductUpdateOfferIdRequestFromJSON(json: any): V1ProductUpdateOfferIdRequest; +export declare function V1ProductUpdateOfferIdRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateOfferIdRequest; +export declare function V1ProductUpdateOfferIdRequestToJSON(value?: V1ProductUpdateOfferIdRequest | null): any; diff --git a/dist/models/V1ProductUpdateOfferIdRequest.js b/dist/models/V1ProductUpdateOfferIdRequest.js new file mode 100644 index 0000000..f3402ed --- /dev/null +++ b/dist/models/V1ProductUpdateOfferIdRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateOfferIdRequest = instanceOfV1ProductUpdateOfferIdRequest; +exports.V1ProductUpdateOfferIdRequestFromJSON = V1ProductUpdateOfferIdRequestFromJSON; +exports.V1ProductUpdateOfferIdRequestFromJSONTyped = V1ProductUpdateOfferIdRequestFromJSONTyped; +exports.V1ProductUpdateOfferIdRequestToJSON = V1ProductUpdateOfferIdRequestToJSON; +const ProductUpdateOfferIdRequestUpdateOfferId_1 = require("./ProductUpdateOfferIdRequestUpdateOfferId"); +/** + * Check if a given object implements the V1ProductUpdateOfferIdRequest interface. + */ +function instanceOfV1ProductUpdateOfferIdRequest(value) { + if (!('update_offer_id' in value) || value['update_offer_id'] === undefined) + return false; + return true; +} +function V1ProductUpdateOfferIdRequestFromJSON(json) { + return V1ProductUpdateOfferIdRequestFromJSONTyped(json, false); +} +function V1ProductUpdateOfferIdRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'update_offer_id': (json['update_offer_id'].map(ProductUpdateOfferIdRequestUpdateOfferId_1.ProductUpdateOfferIdRequestUpdateOfferIdFromJSON)), + }; +} +function V1ProductUpdateOfferIdRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'update_offer_id': (value['update_offer_id'].map(ProductUpdateOfferIdRequestUpdateOfferId_1.ProductUpdateOfferIdRequestUpdateOfferIdToJSON)), + }; +} diff --git a/dist/models/V1ProductUpdateOfferIdResponse.d.ts b/dist/models/V1ProductUpdateOfferIdResponse.d.ts new file mode 100644 index 0000000..ce9600a --- /dev/null +++ b/dist/models/V1ProductUpdateOfferIdResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ProductUpdateOfferIdResponseError } from './V1ProductUpdateOfferIdResponseError'; +/** + * + * @export + * @interface V1ProductUpdateOfferIdResponse + */ +export interface V1ProductUpdateOfferIdResponse { + /** + * Список ошибок. + * @type {Array} + * @memberof V1ProductUpdateOfferIdResponse + */ + errors?: Array; +} +/** + * Check if a given object implements the V1ProductUpdateOfferIdResponse interface. + */ +export declare function instanceOfV1ProductUpdateOfferIdResponse(value: object): value is V1ProductUpdateOfferIdResponse; +export declare function V1ProductUpdateOfferIdResponseFromJSON(json: any): V1ProductUpdateOfferIdResponse; +export declare function V1ProductUpdateOfferIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateOfferIdResponse; +export declare function V1ProductUpdateOfferIdResponseToJSON(value?: V1ProductUpdateOfferIdResponse | null): any; diff --git a/dist/models/V1ProductUpdateOfferIdResponse.js b/dist/models/V1ProductUpdateOfferIdResponse.js new file mode 100644 index 0000000..6a47239 --- /dev/null +++ b/dist/models/V1ProductUpdateOfferIdResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateOfferIdResponse = instanceOfV1ProductUpdateOfferIdResponse; +exports.V1ProductUpdateOfferIdResponseFromJSON = V1ProductUpdateOfferIdResponseFromJSON; +exports.V1ProductUpdateOfferIdResponseFromJSONTyped = V1ProductUpdateOfferIdResponseFromJSONTyped; +exports.V1ProductUpdateOfferIdResponseToJSON = V1ProductUpdateOfferIdResponseToJSON; +const V1ProductUpdateOfferIdResponseError_1 = require("./V1ProductUpdateOfferIdResponseError"); +/** + * Check if a given object implements the V1ProductUpdateOfferIdResponse interface. + */ +function instanceOfV1ProductUpdateOfferIdResponse(value) { + return true; +} +function V1ProductUpdateOfferIdResponseFromJSON(json) { + return V1ProductUpdateOfferIdResponseFromJSONTyped(json, false); +} +function V1ProductUpdateOfferIdResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1ProductUpdateOfferIdResponseError_1.V1ProductUpdateOfferIdResponseErrorFromJSON)), + }; +} +function V1ProductUpdateOfferIdResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1ProductUpdateOfferIdResponseError_1.V1ProductUpdateOfferIdResponseErrorToJSON)), + }; +} diff --git a/dist/models/V1ProductUpdateOfferIdResponseError.d.ts b/dist/models/V1ProductUpdateOfferIdResponseError.d.ts new file mode 100644 index 0000000..86bd568 --- /dev/null +++ b/dist/models/V1ProductUpdateOfferIdResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ProductUpdateOfferIdResponseError + */ +export interface V1ProductUpdateOfferIdResponseError { + /** + * Сообщение об ошибке. + * @type {string} + * @memberof V1ProductUpdateOfferIdResponseError + */ + message?: string; + /** + * Артикул товара, который не получилось изменить. + * @type {string} + * @memberof V1ProductUpdateOfferIdResponseError + */ + offer_id?: string; +} +/** + * Check if a given object implements the V1ProductUpdateOfferIdResponseError interface. + */ +export declare function instanceOfV1ProductUpdateOfferIdResponseError(value: object): value is V1ProductUpdateOfferIdResponseError; +export declare function V1ProductUpdateOfferIdResponseErrorFromJSON(json: any): V1ProductUpdateOfferIdResponseError; +export declare function V1ProductUpdateOfferIdResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ProductUpdateOfferIdResponseError; +export declare function V1ProductUpdateOfferIdResponseErrorToJSON(value?: V1ProductUpdateOfferIdResponseError | null): any; diff --git a/dist/models/V1ProductUpdateOfferIdResponseError.js b/dist/models/V1ProductUpdateOfferIdResponseError.js new file mode 100644 index 0000000..a9c1f71 --- /dev/null +++ b/dist/models/V1ProductUpdateOfferIdResponseError.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ProductUpdateOfferIdResponseError = instanceOfV1ProductUpdateOfferIdResponseError; +exports.V1ProductUpdateOfferIdResponseErrorFromJSON = V1ProductUpdateOfferIdResponseErrorFromJSON; +exports.V1ProductUpdateOfferIdResponseErrorFromJSONTyped = V1ProductUpdateOfferIdResponseErrorFromJSONTyped; +exports.V1ProductUpdateOfferIdResponseErrorToJSON = V1ProductUpdateOfferIdResponseErrorToJSON; +/** + * Check if a given object implements the V1ProductUpdateOfferIdResponseError interface. + */ +function instanceOfV1ProductUpdateOfferIdResponseError(value) { + return true; +} +function V1ProductUpdateOfferIdResponseErrorFromJSON(json) { + return V1ProductUpdateOfferIdResponseErrorFromJSONTyped(json, false); +} +function V1ProductUpdateOfferIdResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + }; +} +function V1ProductUpdateOfferIdResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + 'offer_id': value['offer_id'], + }; +} diff --git a/dist/models/V1QuestionAnswerCreateDefault.d.ts b/dist/models/V1QuestionAnswerCreateDefault.d.ts new file mode 100644 index 0000000..0160739 --- /dev/null +++ b/dist/models/V1QuestionAnswerCreateDefault.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerCreateDefault + */ +export interface V1QuestionAnswerCreateDefault { + /** + * Код ошибки. + * @type {number} + * @memberof V1QuestionAnswerCreateDefault + */ + code?: number; + /** + * Дополнительная информация об ошибке. + * @type {string} + * @memberof V1QuestionAnswerCreateDefault + */ + details?: string; + /** + * Описание ошибки. + * @type {string} + * @memberof V1QuestionAnswerCreateDefault + */ + message?: string; +} +/** + * Check if a given object implements the V1QuestionAnswerCreateDefault interface. + */ +export declare function instanceOfV1QuestionAnswerCreateDefault(value: object): value is V1QuestionAnswerCreateDefault; +export declare function V1QuestionAnswerCreateDefaultFromJSON(json: any): V1QuestionAnswerCreateDefault; +export declare function V1QuestionAnswerCreateDefaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerCreateDefault; +export declare function V1QuestionAnswerCreateDefaultToJSON(value?: V1QuestionAnswerCreateDefault | null): any; diff --git a/dist/models/V1QuestionAnswerCreateDefault.js b/dist/models/V1QuestionAnswerCreateDefault.js new file mode 100644 index 0000000..55ec295 --- /dev/null +++ b/dist/models/V1QuestionAnswerCreateDefault.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionAnswerCreateDefault = instanceOfV1QuestionAnswerCreateDefault; +exports.V1QuestionAnswerCreateDefaultFromJSON = V1QuestionAnswerCreateDefaultFromJSON; +exports.V1QuestionAnswerCreateDefaultFromJSONTyped = V1QuestionAnswerCreateDefaultFromJSONTyped; +exports.V1QuestionAnswerCreateDefaultToJSON = V1QuestionAnswerCreateDefaultToJSON; +/** + * Check if a given object implements the V1QuestionAnswerCreateDefault interface. + */ +function instanceOfV1QuestionAnswerCreateDefault(value) { + return true; +} +function V1QuestionAnswerCreateDefaultFromJSON(json) { + return V1QuestionAnswerCreateDefaultFromJSONTyped(json, false); +} +function V1QuestionAnswerCreateDefaultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : json['details'], + 'message': json['message'] == null ? undefined : json['message'], + }; +} +function V1QuestionAnswerCreateDefaultToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'details': value['details'], + 'message': value['message'], + }; +} diff --git a/dist/models/V1QuestionAnswerCreateRequest.d.ts b/dist/models/V1QuestionAnswerCreateRequest.d.ts new file mode 100644 index 0000000..acf229c --- /dev/null +++ b/dist/models/V1QuestionAnswerCreateRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerCreateRequest + */ +export interface V1QuestionAnswerCreateRequest { + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionAnswerCreateRequest + */ + question_id: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionAnswerCreateRequest + */ + sku: number; + /** + * Текст ответа объёмом от 2 до 3000 символов. + * @type {string} + * @memberof V1QuestionAnswerCreateRequest + */ + text: string; +} +/** + * Check if a given object implements the V1QuestionAnswerCreateRequest interface. + */ +export declare function instanceOfV1QuestionAnswerCreateRequest(value: object): value is V1QuestionAnswerCreateRequest; +export declare function V1QuestionAnswerCreateRequestFromJSON(json: any): V1QuestionAnswerCreateRequest; +export declare function V1QuestionAnswerCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerCreateRequest; +export declare function V1QuestionAnswerCreateRequestToJSON(value?: V1QuestionAnswerCreateRequest | null): any; diff --git a/dist/models/V1QuestionAnswerCreateRequest.js b/dist/models/V1QuestionAnswerCreateRequest.js new file mode 100644 index 0000000..b855f85 --- /dev/null +++ b/dist/models/V1QuestionAnswerCreateRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionAnswerCreateRequest = instanceOfV1QuestionAnswerCreateRequest; +exports.V1QuestionAnswerCreateRequestFromJSON = V1QuestionAnswerCreateRequestFromJSON; +exports.V1QuestionAnswerCreateRequestFromJSONTyped = V1QuestionAnswerCreateRequestFromJSONTyped; +exports.V1QuestionAnswerCreateRequestToJSON = V1QuestionAnswerCreateRequestToJSON; +/** + * Check if a given object implements the V1QuestionAnswerCreateRequest interface. + */ +function instanceOfV1QuestionAnswerCreateRequest(value) { + if (!('question_id' in value) || value['question_id'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + return true; +} +function V1QuestionAnswerCreateRequestFromJSON(json) { + return V1QuestionAnswerCreateRequestFromJSONTyped(json, false); +} +function V1QuestionAnswerCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'question_id': json['question_id'], + 'sku': json['sku'], + 'text': json['text'], + }; +} +function V1QuestionAnswerCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'question_id': value['question_id'], + 'sku': value['sku'], + 'text': value['text'], + }; +} diff --git a/dist/models/V1QuestionAnswerCreateResponse.d.ts b/dist/models/V1QuestionAnswerCreateResponse.d.ts new file mode 100644 index 0000000..bd57992 --- /dev/null +++ b/dist/models/V1QuestionAnswerCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerCreateResponse + */ +export interface V1QuestionAnswerCreateResponse { + /** + * Идентификатор ответа на вопрос. + * @type {string} + * @memberof V1QuestionAnswerCreateResponse + */ + answer_id?: string; +} +/** + * Check if a given object implements the V1QuestionAnswerCreateResponse interface. + */ +export declare function instanceOfV1QuestionAnswerCreateResponse(value: object): value is V1QuestionAnswerCreateResponse; +export declare function V1QuestionAnswerCreateResponseFromJSON(json: any): V1QuestionAnswerCreateResponse; +export declare function V1QuestionAnswerCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerCreateResponse; +export declare function V1QuestionAnswerCreateResponseToJSON(value?: V1QuestionAnswerCreateResponse | null): any; diff --git a/dist/models/V1QuestionAnswerCreateResponse.js b/dist/models/V1QuestionAnswerCreateResponse.js new file mode 100644 index 0000000..7d67607 --- /dev/null +++ b/dist/models/V1QuestionAnswerCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionAnswerCreateResponse = instanceOfV1QuestionAnswerCreateResponse; +exports.V1QuestionAnswerCreateResponseFromJSON = V1QuestionAnswerCreateResponseFromJSON; +exports.V1QuestionAnswerCreateResponseFromJSONTyped = V1QuestionAnswerCreateResponseFromJSONTyped; +exports.V1QuestionAnswerCreateResponseToJSON = V1QuestionAnswerCreateResponseToJSON; +/** + * Check if a given object implements the V1QuestionAnswerCreateResponse interface. + */ +function instanceOfV1QuestionAnswerCreateResponse(value) { + return true; +} +function V1QuestionAnswerCreateResponseFromJSON(json) { + return V1QuestionAnswerCreateResponseFromJSONTyped(json, false); +} +function V1QuestionAnswerCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answer_id': json['answer_id'] == null ? undefined : json['answer_id'], + }; +} +function V1QuestionAnswerCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'answer_id': value['answer_id'], + }; +} diff --git a/dist/models/V1QuestionAnswerDeleteRequest.d.ts b/dist/models/V1QuestionAnswerDeleteRequest.d.ts new file mode 100644 index 0000000..dd2730e --- /dev/null +++ b/dist/models/V1QuestionAnswerDeleteRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerDeleteRequest + */ +export interface V1QuestionAnswerDeleteRequest { + /** + * Идентификатор ответа. + * @type {string} + * @memberof V1QuestionAnswerDeleteRequest + */ + answer_id: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionAnswerDeleteRequest + */ + sku: number; +} +/** + * Check if a given object implements the V1QuestionAnswerDeleteRequest interface. + */ +export declare function instanceOfV1QuestionAnswerDeleteRequest(value: object): value is V1QuestionAnswerDeleteRequest; +export declare function V1QuestionAnswerDeleteRequestFromJSON(json: any): V1QuestionAnswerDeleteRequest; +export declare function V1QuestionAnswerDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerDeleteRequest; +export declare function V1QuestionAnswerDeleteRequestToJSON(value?: V1QuestionAnswerDeleteRequest | null): any; diff --git a/dist/models/V1QuestionAnswerDeleteRequest.js b/dist/models/V1QuestionAnswerDeleteRequest.js new file mode 100644 index 0000000..a4c76d8 --- /dev/null +++ b/dist/models/V1QuestionAnswerDeleteRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionAnswerDeleteRequest = instanceOfV1QuestionAnswerDeleteRequest; +exports.V1QuestionAnswerDeleteRequestFromJSON = V1QuestionAnswerDeleteRequestFromJSON; +exports.V1QuestionAnswerDeleteRequestFromJSONTyped = V1QuestionAnswerDeleteRequestFromJSONTyped; +exports.V1QuestionAnswerDeleteRequestToJSON = V1QuestionAnswerDeleteRequestToJSON; +/** + * Check if a given object implements the V1QuestionAnswerDeleteRequest interface. + */ +function instanceOfV1QuestionAnswerDeleteRequest(value) { + if (!('answer_id' in value) || value['answer_id'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1QuestionAnswerDeleteRequestFromJSON(json) { + return V1QuestionAnswerDeleteRequestFromJSONTyped(json, false); +} +function V1QuestionAnswerDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answer_id': json['answer_id'], + 'sku': json['sku'], + }; +} +function V1QuestionAnswerDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'answer_id': value['answer_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1QuestionAnswerListRequest.d.ts b/dist/models/V1QuestionAnswerListRequest.d.ts new file mode 100644 index 0000000..e75ec33 --- /dev/null +++ b/dist/models/V1QuestionAnswerListRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionAnswerListRequest + */ +export interface V1QuestionAnswerListRequest { + /** + * Идентификатор последнего значения на странице. + * + * Если запрос первый, оставьте поле пустым. Для следующих значений указывайте `last_id` из ответа предыдущего запроса. + * + * @type {any} + * @memberof V1QuestionAnswerListRequest + */ + last_id?: any | null; + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionAnswerListRequest + */ + question_id: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionAnswerListRequest + */ + sku: number; +} +/** + * Check if a given object implements the V1QuestionAnswerListRequest interface. + */ +export declare function instanceOfV1QuestionAnswerListRequest(value: object): value is V1QuestionAnswerListRequest; +export declare function V1QuestionAnswerListRequestFromJSON(json: any): V1QuestionAnswerListRequest; +export declare function V1QuestionAnswerListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerListRequest; +export declare function V1QuestionAnswerListRequestToJSON(value?: V1QuestionAnswerListRequest | null): any; diff --git a/dist/models/V1QuestionAnswerListRequest.js b/dist/models/V1QuestionAnswerListRequest.js new file mode 100644 index 0000000..a421acc --- /dev/null +++ b/dist/models/V1QuestionAnswerListRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionAnswerListRequest = instanceOfV1QuestionAnswerListRequest; +exports.V1QuestionAnswerListRequestFromJSON = V1QuestionAnswerListRequestFromJSON; +exports.V1QuestionAnswerListRequestFromJSONTyped = V1QuestionAnswerListRequestFromJSONTyped; +exports.V1QuestionAnswerListRequestToJSON = V1QuestionAnswerListRequestToJSON; +/** + * Check if a given object implements the V1QuestionAnswerListRequest interface. + */ +function instanceOfV1QuestionAnswerListRequest(value) { + if (!('question_id' in value) || value['question_id'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1QuestionAnswerListRequestFromJSON(json) { + return V1QuestionAnswerListRequestFromJSONTyped(json, false); +} +function V1QuestionAnswerListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'question_id': json['question_id'], + 'sku': json['sku'], + }; +} +function V1QuestionAnswerListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'question_id': value['question_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1QuestionAnswerListResponse.d.ts b/dist/models/V1QuestionAnswerListResponse.d.ts new file mode 100644 index 0000000..871e839 --- /dev/null +++ b/dist/models/V1QuestionAnswerListResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1QuestionAnswerListResponseAnswers } from './V1QuestionAnswerListResponseAnswers'; +/** + * + * @export + * @interface V1QuestionAnswerListResponse + */ +export interface V1QuestionAnswerListResponse { + /** + * Ответы. + * @type {Array} + * @memberof V1QuestionAnswerListResponse + */ + answers?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof V1QuestionAnswerListResponse + */ + last_id?: string; +} +/** + * Check if a given object implements the V1QuestionAnswerListResponse interface. + */ +export declare function instanceOfV1QuestionAnswerListResponse(value: object): value is V1QuestionAnswerListResponse; +export declare function V1QuestionAnswerListResponseFromJSON(json: any): V1QuestionAnswerListResponse; +export declare function V1QuestionAnswerListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerListResponse; +export declare function V1QuestionAnswerListResponseToJSON(value?: V1QuestionAnswerListResponse | null): any; diff --git a/dist/models/V1QuestionAnswerListResponse.js b/dist/models/V1QuestionAnswerListResponse.js new file mode 100644 index 0000000..1f83a7c --- /dev/null +++ b/dist/models/V1QuestionAnswerListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionAnswerListResponse = instanceOfV1QuestionAnswerListResponse; +exports.V1QuestionAnswerListResponseFromJSON = V1QuestionAnswerListResponseFromJSON; +exports.V1QuestionAnswerListResponseFromJSONTyped = V1QuestionAnswerListResponseFromJSONTyped; +exports.V1QuestionAnswerListResponseToJSON = V1QuestionAnswerListResponseToJSON; +const V1QuestionAnswerListResponseAnswers_1 = require("./V1QuestionAnswerListResponseAnswers"); +/** + * Check if a given object implements the V1QuestionAnswerListResponse interface. + */ +function instanceOfV1QuestionAnswerListResponse(value) { + return true; +} +function V1QuestionAnswerListResponseFromJSON(json) { + return V1QuestionAnswerListResponseFromJSONTyped(json, false); +} +function V1QuestionAnswerListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answers': json['answers'] == null ? undefined : (json['answers'].map(V1QuestionAnswerListResponseAnswers_1.V1QuestionAnswerListResponseAnswersFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + }; +} +function V1QuestionAnswerListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'answers': value['answers'] == null ? undefined : (value['answers'].map(V1QuestionAnswerListResponseAnswers_1.V1QuestionAnswerListResponseAnswersToJSON)), + 'last_id': value['last_id'], + }; +} diff --git a/dist/models/V1QuestionAnswerListResponseAnswers.d.ts b/dist/models/V1QuestionAnswerListResponseAnswers.d.ts new file mode 100644 index 0000000..d485dc8 --- /dev/null +++ b/dist/models/V1QuestionAnswerListResponseAnswers.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum } from './QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum'; +/** + * + * @export + * @interface V1QuestionAnswerListResponseAnswers + */ +export interface V1QuestionAnswerListResponseAnswers { + /** + * Автор ответа. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + author_name?: string; + /** + * Идентификатор ответа. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + id?: string; + /** + * Дата публикации ответа. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + published_at?: string; + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + question_id?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionAnswerListResponseAnswers + */ + sku?: number; + /** + * + * @type {QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum} + * @memberof V1QuestionAnswerListResponseAnswers + */ + status_publication?: QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum; + /** + * Текст ответа. + * @type {string} + * @memberof V1QuestionAnswerListResponseAnswers + */ + text?: string; +} +/** + * Check if a given object implements the V1QuestionAnswerListResponseAnswers interface. + */ +export declare function instanceOfV1QuestionAnswerListResponseAnswers(value: object): value is V1QuestionAnswerListResponseAnswers; +export declare function V1QuestionAnswerListResponseAnswersFromJSON(json: any): V1QuestionAnswerListResponseAnswers; +export declare function V1QuestionAnswerListResponseAnswersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionAnswerListResponseAnswers; +export declare function V1QuestionAnswerListResponseAnswersToJSON(value?: V1QuestionAnswerListResponseAnswers | null): any; diff --git a/dist/models/V1QuestionAnswerListResponseAnswers.js b/dist/models/V1QuestionAnswerListResponseAnswers.js new file mode 100644 index 0000000..45c56db --- /dev/null +++ b/dist/models/V1QuestionAnswerListResponseAnswers.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionAnswerListResponseAnswers = instanceOfV1QuestionAnswerListResponseAnswers; +exports.V1QuestionAnswerListResponseAnswersFromJSON = V1QuestionAnswerListResponseAnswersFromJSON; +exports.V1QuestionAnswerListResponseAnswersFromJSONTyped = V1QuestionAnswerListResponseAnswersFromJSONTyped; +exports.V1QuestionAnswerListResponseAnswersToJSON = V1QuestionAnswerListResponseAnswersToJSON; +const QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum_1 = require("./QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum"); +/** + * Check if a given object implements the V1QuestionAnswerListResponseAnswers interface. + */ +function instanceOfV1QuestionAnswerListResponseAnswers(value) { + return true; +} +function V1QuestionAnswerListResponseAnswersFromJSON(json) { + return V1QuestionAnswerListResponseAnswersFromJSONTyped(json, false); +} +function V1QuestionAnswerListResponseAnswersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'author_name': json['author_name'] == null ? undefined : json['author_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'question_id': json['question_id'] == null ? undefined : json['question_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status_publication': json['status_publication'] == null ? undefined : (0, QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum_1.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumFromJSON)(json['status_publication']), + 'text': json['text'] == null ? undefined : json['text'], + }; +} +function V1QuestionAnswerListResponseAnswersToJSON(value) { + if (value == null) { + return value; + } + return { + 'author_name': value['author_name'], + 'id': value['id'], + 'published_at': value['published_at'], + 'question_id': value['question_id'], + 'sku': value['sku'], + 'status_publication': (0, QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum_1.QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnumToJSON)(value['status_publication']), + 'text': value['text'], + }; +} diff --git a/dist/models/V1QuestionChangeStatusRequest.d.ts b/dist/models/V1QuestionChangeStatusRequest.d.ts new file mode 100644 index 0000000..2e8b3ae --- /dev/null +++ b/dist/models/V1QuestionChangeStatusRequest.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionChangeStatusRequest + */ +export interface V1QuestionChangeStatusRequest { + /** + * Идентификаторы вопросов. + * @type {Array} + * @memberof V1QuestionChangeStatusRequest + */ + question_ids: Array; + /** + * Статусы вопросов: + * - `NEW` — новые, + * - `VIEWED` — просмотренные, + * - `PROCESSED` — обработанные. + * + * @type {string} + * @memberof V1QuestionChangeStatusRequest + */ + status: string; +} +/** + * Check if a given object implements the V1QuestionChangeStatusRequest interface. + */ +export declare function instanceOfV1QuestionChangeStatusRequest(value: object): value is V1QuestionChangeStatusRequest; +export declare function V1QuestionChangeStatusRequestFromJSON(json: any): V1QuestionChangeStatusRequest; +export declare function V1QuestionChangeStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionChangeStatusRequest; +export declare function V1QuestionChangeStatusRequestToJSON(value?: V1QuestionChangeStatusRequest | null): any; diff --git a/dist/models/V1QuestionChangeStatusRequest.js b/dist/models/V1QuestionChangeStatusRequest.js new file mode 100644 index 0000000..967d7f0 --- /dev/null +++ b/dist/models/V1QuestionChangeStatusRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionChangeStatusRequest = instanceOfV1QuestionChangeStatusRequest; +exports.V1QuestionChangeStatusRequestFromJSON = V1QuestionChangeStatusRequestFromJSON; +exports.V1QuestionChangeStatusRequestFromJSONTyped = V1QuestionChangeStatusRequestFromJSONTyped; +exports.V1QuestionChangeStatusRequestToJSON = V1QuestionChangeStatusRequestToJSON; +/** + * Check if a given object implements the V1QuestionChangeStatusRequest interface. + */ +function instanceOfV1QuestionChangeStatusRequest(value) { + if (!('question_ids' in value) || value['question_ids'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +function V1QuestionChangeStatusRequestFromJSON(json) { + return V1QuestionChangeStatusRequestFromJSONTyped(json, false); +} +function V1QuestionChangeStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'question_ids': json['question_ids'], + 'status': json['status'], + }; +} +function V1QuestionChangeStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'question_ids': value['question_ids'], + 'status': value['status'], + }; +} diff --git a/dist/models/V1QuestionCountResponse.d.ts b/dist/models/V1QuestionCountResponse.d.ts new file mode 100644 index 0000000..50ad435 --- /dev/null +++ b/dist/models/V1QuestionCountResponse.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionCountResponse + */ +export interface V1QuestionCountResponse { + /** + * Всего вопросов. + * @type {number} + * @memberof V1QuestionCountResponse + */ + all?: number; + /** + * Новые вопросы. + * @type {number} + * @memberof V1QuestionCountResponse + */ + _new?: number; + /** + * Обработанные вопросы. + * @type {number} + * @memberof V1QuestionCountResponse + */ + processed?: number; + /** + * Необработанные вопросы. + * @type {number} + * @memberof V1QuestionCountResponse + */ + unprocessed?: number; + /** + * Просмотренные вопросы. + * @type {number} + * @memberof V1QuestionCountResponse + */ + viewed?: number; +} +/** + * Check if a given object implements the V1QuestionCountResponse interface. + */ +export declare function instanceOfV1QuestionCountResponse(value: object): value is V1QuestionCountResponse; +export declare function V1QuestionCountResponseFromJSON(json: any): V1QuestionCountResponse; +export declare function V1QuestionCountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionCountResponse; +export declare function V1QuestionCountResponseToJSON(value?: V1QuestionCountResponse | null): any; diff --git a/dist/models/V1QuestionCountResponse.js b/dist/models/V1QuestionCountResponse.js new file mode 100644 index 0000000..4cde3b6 --- /dev/null +++ b/dist/models/V1QuestionCountResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionCountResponse = instanceOfV1QuestionCountResponse; +exports.V1QuestionCountResponseFromJSON = V1QuestionCountResponseFromJSON; +exports.V1QuestionCountResponseFromJSONTyped = V1QuestionCountResponseFromJSONTyped; +exports.V1QuestionCountResponseToJSON = V1QuestionCountResponseToJSON; +/** + * Check if a given object implements the V1QuestionCountResponse interface. + */ +function instanceOfV1QuestionCountResponse(value) { + return true; +} +function V1QuestionCountResponseFromJSON(json) { + return V1QuestionCountResponseFromJSONTyped(json, false); +} +function V1QuestionCountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'all': json['all'] == null ? undefined : json['all'], + '_new': json['new'] == null ? undefined : json['new'], + 'processed': json['processed'] == null ? undefined : json['processed'], + 'unprocessed': json['unprocessed'] == null ? undefined : json['unprocessed'], + 'viewed': json['viewed'] == null ? undefined : json['viewed'], + }; +} +function V1QuestionCountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'all': value['all'], + 'new': value['_new'], + 'processed': value['processed'], + 'unprocessed': value['unprocessed'], + 'viewed': value['viewed'], + }; +} diff --git a/dist/models/V1QuestionInfoRequest.d.ts b/dist/models/V1QuestionInfoRequest.d.ts new file mode 100644 index 0000000..500df3c --- /dev/null +++ b/dist/models/V1QuestionInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionInfoRequest + */ +export interface V1QuestionInfoRequest { + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionInfoRequest + */ + question_id: string; +} +/** + * Check if a given object implements the V1QuestionInfoRequest interface. + */ +export declare function instanceOfV1QuestionInfoRequest(value: object): value is V1QuestionInfoRequest; +export declare function V1QuestionInfoRequestFromJSON(json: any): V1QuestionInfoRequest; +export declare function V1QuestionInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionInfoRequest; +export declare function V1QuestionInfoRequestToJSON(value?: V1QuestionInfoRequest | null): any; diff --git a/dist/models/V1QuestionInfoRequest.js b/dist/models/V1QuestionInfoRequest.js new file mode 100644 index 0000000..a61730b --- /dev/null +++ b/dist/models/V1QuestionInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionInfoRequest = instanceOfV1QuestionInfoRequest; +exports.V1QuestionInfoRequestFromJSON = V1QuestionInfoRequestFromJSON; +exports.V1QuestionInfoRequestFromJSONTyped = V1QuestionInfoRequestFromJSONTyped; +exports.V1QuestionInfoRequestToJSON = V1QuestionInfoRequestToJSON; +/** + * Check if a given object implements the V1QuestionInfoRequest interface. + */ +function instanceOfV1QuestionInfoRequest(value) { + if (!('question_id' in value) || value['question_id'] === undefined) + return false; + return true; +} +function V1QuestionInfoRequestFromJSON(json) { + return V1QuestionInfoRequestFromJSONTyped(json, false); +} +function V1QuestionInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'question_id': json['question_id'], + }; +} +function V1QuestionInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'question_id': value['question_id'], + }; +} diff --git a/dist/models/V1QuestionInfoResponse.d.ts b/dist/models/V1QuestionInfoResponse.d.ts new file mode 100644 index 0000000..2f8662c --- /dev/null +++ b/dist/models/V1QuestionInfoResponse.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionInfoResponse + */ +export interface V1QuestionInfoResponse { + /** + * Количество ответов на вопрос. + * @type {number} + * @memberof V1QuestionInfoResponse + */ + answers_count?: number; + /** + * Автор вопроса. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + author_name?: string; + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + id?: string; + /** + * Ссылка на товар. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + product_url?: string; + /** + * Дата публикации вопроса. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + published_at?: string; + /** + * Ссылка на вопрос. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + question_link?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionInfoResponse + */ + sku?: number; + /** + * Статус вопроса: + * - `NEW` — новый, + * - `ALL` — все вопросы, + * - `VIEWED` — просмотренный, + * - `PROCESSED` — обработанный, + * - `UNPROCESSED` — необработанный. + * + * @type {string} + * @memberof V1QuestionInfoResponse + */ + status?: string; + /** + * Текст вопроса. + * @type {string} + * @memberof V1QuestionInfoResponse + */ + text?: string; +} +/** + * Check if a given object implements the V1QuestionInfoResponse interface. + */ +export declare function instanceOfV1QuestionInfoResponse(value: object): value is V1QuestionInfoResponse; +export declare function V1QuestionInfoResponseFromJSON(json: any): V1QuestionInfoResponse; +export declare function V1QuestionInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionInfoResponse; +export declare function V1QuestionInfoResponseToJSON(value?: V1QuestionInfoResponse | null): any; diff --git a/dist/models/V1QuestionInfoResponse.js b/dist/models/V1QuestionInfoResponse.js new file mode 100644 index 0000000..febf15c --- /dev/null +++ b/dist/models/V1QuestionInfoResponse.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionInfoResponse = instanceOfV1QuestionInfoResponse; +exports.V1QuestionInfoResponseFromJSON = V1QuestionInfoResponseFromJSON; +exports.V1QuestionInfoResponseFromJSONTyped = V1QuestionInfoResponseFromJSONTyped; +exports.V1QuestionInfoResponseToJSON = V1QuestionInfoResponseToJSON; +/** + * Check if a given object implements the V1QuestionInfoResponse interface. + */ +function instanceOfV1QuestionInfoResponse(value) { + return true; +} +function V1QuestionInfoResponseFromJSON(json) { + return V1QuestionInfoResponseFromJSONTyped(json, false); +} +function V1QuestionInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answers_count': json['answers_count'] == null ? undefined : json['answers_count'], + 'author_name': json['author_name'] == null ? undefined : json['author_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'product_url': json['product_url'] == null ? undefined : json['product_url'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'question_link': json['question_link'] == null ? undefined : json['question_link'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : json['status'], + 'text': json['text'] == null ? undefined : json['text'], + }; +} +function V1QuestionInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'answers_count': value['answers_count'], + 'author_name': value['author_name'], + 'id': value['id'], + 'product_url': value['product_url'], + 'published_at': value['published_at'], + 'question_link': value['question_link'], + 'sku': value['sku'], + 'status': value['status'], + 'text': value['text'], + }; +} diff --git a/dist/models/V1QuestionListRequest.d.ts b/dist/models/V1QuestionListRequest.d.ts new file mode 100644 index 0000000..81dec33 --- /dev/null +++ b/dist/models/V1QuestionListRequest.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { QuestionV1GetQuestionListRequestSortDirEnum } from './QuestionV1GetQuestionListRequestSortDirEnum'; +import type { V1QuestionListRequestFilter } from './V1QuestionListRequestFilter'; +/** + * + * @export + * @interface V1QuestionListRequest + */ +export interface V1QuestionListRequest { + /** + * + * @type {V1QuestionListRequestFilter} + * @memberof V1QuestionListRequest + */ + filter?: V1QuestionListRequestFilter; + /** + * Идентификатор последнего значения на странице. + * + * Оставьте это поле пустым при выполнении первого запроса. Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof V1QuestionListRequest + */ + last_id?: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1QuestionListRequest + */ + limit?: number; + /** + * + * @type {QuestionV1GetQuestionListRequestSortDirEnum} + * @memberof V1QuestionListRequest + */ + sort_dir?: QuestionV1GetQuestionListRequestSortDirEnum; +} +/** + * Check if a given object implements the V1QuestionListRequest interface. + */ +export declare function instanceOfV1QuestionListRequest(value: object): value is V1QuestionListRequest; +export declare function V1QuestionListRequestFromJSON(json: any): V1QuestionListRequest; +export declare function V1QuestionListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionListRequest; +export declare function V1QuestionListRequestToJSON(value?: V1QuestionListRequest | null): any; diff --git a/dist/models/V1QuestionListRequest.js b/dist/models/V1QuestionListRequest.js new file mode 100644 index 0000000..e618a1a --- /dev/null +++ b/dist/models/V1QuestionListRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionListRequest = instanceOfV1QuestionListRequest; +exports.V1QuestionListRequestFromJSON = V1QuestionListRequestFromJSON; +exports.V1QuestionListRequestFromJSONTyped = V1QuestionListRequestFromJSONTyped; +exports.V1QuestionListRequestToJSON = V1QuestionListRequestToJSON; +const QuestionV1GetQuestionListRequestSortDirEnum_1 = require("./QuestionV1GetQuestionListRequestSortDirEnum"); +const V1QuestionListRequestFilter_1 = require("./V1QuestionListRequestFilter"); +/** + * Check if a given object implements the V1QuestionListRequest interface. + */ +function instanceOfV1QuestionListRequest(value) { + return true; +} +function V1QuestionListRequestFromJSON(json) { + return V1QuestionListRequestFromJSONTyped(json, false); +} +function V1QuestionListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, V1QuestionListRequestFilter_1.V1QuestionListRequestFilterFromJSON)(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, QuestionV1GetQuestionListRequestSortDirEnum_1.QuestionV1GetQuestionListRequestSortDirEnumFromJSON)(json['sort_dir']), + }; +} +function V1QuestionListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, V1QuestionListRequestFilter_1.V1QuestionListRequestFilterToJSON)(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_dir': (0, QuestionV1GetQuestionListRequestSortDirEnum_1.QuestionV1GetQuestionListRequestSortDirEnumToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/V1QuestionListRequestFilter.d.ts b/dist/models/V1QuestionListRequestFilter.d.ts new file mode 100644 index 0000000..02da531 --- /dev/null +++ b/dist/models/V1QuestionListRequestFilter.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1QuestionListRequestFilter + */ +export interface V1QuestionListRequestFilter { + /** + * Начало периода. + * @type {string} + * @memberof V1QuestionListRequestFilter + */ + date_from?: string; + /** + * Конец периода. + * @type {string} + * @memberof V1QuestionListRequestFilter + */ + date_to?: string; + /** + * Статусы вопроса: + * - `NEW` — новый, + * - `ALL` — все вопросы, + * - `VIEWED` — просмотренный, + * - `PROCESSED` — обработанный, + * - `UNPROCESSED` — необработанный. + * + * @type {string} + * @memberof V1QuestionListRequestFilter + */ + status?: string; +} +/** + * Check if a given object implements the V1QuestionListRequestFilter interface. + */ +export declare function instanceOfV1QuestionListRequestFilter(value: object): value is V1QuestionListRequestFilter; +export declare function V1QuestionListRequestFilterFromJSON(json: any): V1QuestionListRequestFilter; +export declare function V1QuestionListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionListRequestFilter; +export declare function V1QuestionListRequestFilterToJSON(value?: V1QuestionListRequestFilter | null): any; diff --git a/dist/models/V1QuestionListRequestFilter.js b/dist/models/V1QuestionListRequestFilter.js new file mode 100644 index 0000000..a6389f7 --- /dev/null +++ b/dist/models/V1QuestionListRequestFilter.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionListRequestFilter = instanceOfV1QuestionListRequestFilter; +exports.V1QuestionListRequestFilterFromJSON = V1QuestionListRequestFilterFromJSON; +exports.V1QuestionListRequestFilterFromJSONTyped = V1QuestionListRequestFilterFromJSONTyped; +exports.V1QuestionListRequestFilterToJSON = V1QuestionListRequestFilterToJSON; +/** + * Check if a given object implements the V1QuestionListRequestFilter interface. + */ +function instanceOfV1QuestionListRequestFilter(value) { + return true; +} +function V1QuestionListRequestFilterFromJSON(json) { + return V1QuestionListRequestFilterFromJSONTyped(json, false); +} +function V1QuestionListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'] == null ? undefined : json['date_from'], + 'date_to': json['date_to'] == null ? undefined : json['date_to'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V1QuestionListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'status': value['status'], + }; +} diff --git a/dist/models/V1QuestionListResponse.d.ts b/dist/models/V1QuestionListResponse.d.ts new file mode 100644 index 0000000..09a1055 --- /dev/null +++ b/dist/models/V1QuestionListResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1QuestionListResponseQuestions } from './V1QuestionListResponseQuestions'; +/** + * + * @export + * @interface V1QuestionListResponse + */ +export interface V1QuestionListResponse { + /** + * Вопросы. + * @type {Array} + * @memberof V1QuestionListResponse + */ + questions?: Array; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof V1QuestionListResponse + */ + last_id?: string; + /** + * `true`, если в ответе вернулись не все вопросы. + * + * @type {boolean} + * @memberof V1QuestionListResponse + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V1QuestionListResponse interface. + */ +export declare function instanceOfV1QuestionListResponse(value: object): value is V1QuestionListResponse; +export declare function V1QuestionListResponseFromJSON(json: any): V1QuestionListResponse; +export declare function V1QuestionListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionListResponse; +export declare function V1QuestionListResponseToJSON(value?: V1QuestionListResponse | null): any; diff --git a/dist/models/V1QuestionListResponse.js b/dist/models/V1QuestionListResponse.js new file mode 100644 index 0000000..2e3e4d8 --- /dev/null +++ b/dist/models/V1QuestionListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionListResponse = instanceOfV1QuestionListResponse; +exports.V1QuestionListResponseFromJSON = V1QuestionListResponseFromJSON; +exports.V1QuestionListResponseFromJSONTyped = V1QuestionListResponseFromJSONTyped; +exports.V1QuestionListResponseToJSON = V1QuestionListResponseToJSON; +const V1QuestionListResponseQuestions_1 = require("./V1QuestionListResponseQuestions"); +/** + * Check if a given object implements the V1QuestionListResponse interface. + */ +function instanceOfV1QuestionListResponse(value) { + return true; +} +function V1QuestionListResponseFromJSON(json) { + return V1QuestionListResponseFromJSONTyped(json, false); +} +function V1QuestionListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'questions': json['questions'] == null ? undefined : (json['questions'].map(V1QuestionListResponseQuestions_1.V1QuestionListResponseQuestionsFromJSON)), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +function V1QuestionListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'questions': value['questions'] == null ? undefined : (value['questions'].map(V1QuestionListResponseQuestions_1.V1QuestionListResponseQuestionsToJSON)), + 'last_id': value['last_id'], + 'has_next': value['has_next'], + }; +} diff --git a/dist/models/V1QuestionListResponseQuestions.d.ts b/dist/models/V1QuestionListResponseQuestions.d.ts new file mode 100644 index 0000000..4887066 --- /dev/null +++ b/dist/models/V1QuestionListResponseQuestions.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionListResponseQuestions + */ +export interface V1QuestionListResponseQuestions { + /** + * Количество ответов на вопрос. + * @type {number} + * @memberof V1QuestionListResponseQuestions + */ + answers_count?: number; + /** + * Имя автора вопроса. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + author_name?: string; + /** + * Идентификатор вопроса. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + id?: string; + /** + * Ссылка на товар. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + product_url?: string; + /** + * Дата публикации вопроса. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + published_at?: string; + /** + * Ссылка на вопрос. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + question_link?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1QuestionListResponseQuestions + */ + sku?: number; + /** + * Статусы вопроса: + * - `NEW` — новый, + * - `ALL` — все вопросы, + * - `VIEWED` — просмотренный, + * - `PROCESSED` — обработанный, + * - `UNPROCESSED` — необработанный. + * + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + status?: string; + /** + * Текст вопроса. + * @type {string} + * @memberof V1QuestionListResponseQuestions + */ + text?: string; +} +/** + * Check if a given object implements the V1QuestionListResponseQuestions interface. + */ +export declare function instanceOfV1QuestionListResponseQuestions(value: object): value is V1QuestionListResponseQuestions; +export declare function V1QuestionListResponseQuestionsFromJSON(json: any): V1QuestionListResponseQuestions; +export declare function V1QuestionListResponseQuestionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionListResponseQuestions; +export declare function V1QuestionListResponseQuestionsToJSON(value?: V1QuestionListResponseQuestions | null): any; diff --git a/dist/models/V1QuestionListResponseQuestions.js b/dist/models/V1QuestionListResponseQuestions.js new file mode 100644 index 0000000..9621a9e --- /dev/null +++ b/dist/models/V1QuestionListResponseQuestions.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionListResponseQuestions = instanceOfV1QuestionListResponseQuestions; +exports.V1QuestionListResponseQuestionsFromJSON = V1QuestionListResponseQuestionsFromJSON; +exports.V1QuestionListResponseQuestionsFromJSONTyped = V1QuestionListResponseQuestionsFromJSONTyped; +exports.V1QuestionListResponseQuestionsToJSON = V1QuestionListResponseQuestionsToJSON; +/** + * Check if a given object implements the V1QuestionListResponseQuestions interface. + */ +function instanceOfV1QuestionListResponseQuestions(value) { + return true; +} +function V1QuestionListResponseQuestionsFromJSON(json) { + return V1QuestionListResponseQuestionsFromJSONTyped(json, false); +} +function V1QuestionListResponseQuestionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'answers_count': json['answers_count'] == null ? undefined : json['answers_count'], + 'author_name': json['author_name'] == null ? undefined : json['author_name'], + 'id': json['id'] == null ? undefined : json['id'], + 'product_url': json['product_url'] == null ? undefined : json['product_url'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'question_link': json['question_link'] == null ? undefined : json['question_link'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : json['status'], + 'text': json['text'] == null ? undefined : json['text'], + }; +} +function V1QuestionListResponseQuestionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'answers_count': value['answers_count'], + 'author_name': value['author_name'], + 'id': value['id'], + 'product_url': value['product_url'], + 'published_at': value['published_at'], + 'question_link': value['question_link'], + 'sku': value['sku'], + 'status': value['status'], + 'text': value['text'], + }; +} diff --git a/dist/models/V1QuestionTopSkuRequest.d.ts b/dist/models/V1QuestionTopSkuRequest.d.ts new file mode 100644 index 0000000..26479b1 --- /dev/null +++ b/dist/models/V1QuestionTopSkuRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionTopSkuRequest + */ +export interface V1QuestionTopSkuRequest { + /** + * Количество значений в ответе. + * + * @type {number} + * @memberof V1QuestionTopSkuRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1QuestionTopSkuRequest interface. + */ +export declare function instanceOfV1QuestionTopSkuRequest(value: object): value is V1QuestionTopSkuRequest; +export declare function V1QuestionTopSkuRequestFromJSON(json: any): V1QuestionTopSkuRequest; +export declare function V1QuestionTopSkuRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionTopSkuRequest; +export declare function V1QuestionTopSkuRequestToJSON(value?: V1QuestionTopSkuRequest | null): any; diff --git a/dist/models/V1QuestionTopSkuRequest.js b/dist/models/V1QuestionTopSkuRequest.js new file mode 100644 index 0000000..6f6c8bf --- /dev/null +++ b/dist/models/V1QuestionTopSkuRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionTopSkuRequest = instanceOfV1QuestionTopSkuRequest; +exports.V1QuestionTopSkuRequestFromJSON = V1QuestionTopSkuRequestFromJSON; +exports.V1QuestionTopSkuRequestFromJSONTyped = V1QuestionTopSkuRequestFromJSONTyped; +exports.V1QuestionTopSkuRequestToJSON = V1QuestionTopSkuRequestToJSON; +/** + * Check if a given object implements the V1QuestionTopSkuRequest interface. + */ +function instanceOfV1QuestionTopSkuRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1QuestionTopSkuRequestFromJSON(json) { + return V1QuestionTopSkuRequestFromJSONTyped(json, false); +} +function V1QuestionTopSkuRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + }; +} +function V1QuestionTopSkuRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1QuestionTopSkuResponse.d.ts b/dist/models/V1QuestionTopSkuResponse.d.ts new file mode 100644 index 0000000..afd7fc0 --- /dev/null +++ b/dist/models/V1QuestionTopSkuResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1QuestionTopSkuResponse + */ +export interface V1QuestionTopSkuResponse { + /** + * Список идентификаторов товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1QuestionTopSkuResponse + */ + sku?: Array; +} +/** + * Check if a given object implements the V1QuestionTopSkuResponse interface. + */ +export declare function instanceOfV1QuestionTopSkuResponse(value: object): value is V1QuestionTopSkuResponse; +export declare function V1QuestionTopSkuResponseFromJSON(json: any): V1QuestionTopSkuResponse; +export declare function V1QuestionTopSkuResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1QuestionTopSkuResponse; +export declare function V1QuestionTopSkuResponseToJSON(value?: V1QuestionTopSkuResponse | null): any; diff --git a/dist/models/V1QuestionTopSkuResponse.js b/dist/models/V1QuestionTopSkuResponse.js new file mode 100644 index 0000000..048b283 --- /dev/null +++ b/dist/models/V1QuestionTopSkuResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1QuestionTopSkuResponse = instanceOfV1QuestionTopSkuResponse; +exports.V1QuestionTopSkuResponseFromJSON = V1QuestionTopSkuResponseFromJSON; +exports.V1QuestionTopSkuResponseFromJSONTyped = V1QuestionTopSkuResponseFromJSONTyped; +exports.V1QuestionTopSkuResponseToJSON = V1QuestionTopSkuResponseToJSON; +/** + * Check if a given object implements the V1QuestionTopSkuResponse interface. + */ +function instanceOfV1QuestionTopSkuResponse(value) { + return true; +} +function V1QuestionTopSkuResponseFromJSON(json) { + return V1QuestionTopSkuResponseFromJSONTyped(json, false); +} +function V1QuestionTopSkuResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1QuestionTopSkuResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1Rating.d.ts b/dist/models/V1Rating.d.ts new file mode 100644 index 0000000..f342418 --- /dev/null +++ b/dist/models/V1Rating.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RatingValue } from './RatingValue'; +/** + * + * @export + * @interface V1Rating + */ +export interface V1Rating { + /** + * Пороговое значение рейтинга, после которого продажи будут заблокированы. + * @type {number} + * @memberof V1Rating + */ + danger_threshold?: number; + /** + * Пороговое значение рейтинга для участия в Premium-программе. + * @type {number} + * @memberof V1Rating + */ + premium_threshold?: number; + /** + * Системное название рейтинга. + * @type {string} + * @memberof V1Rating + */ + rating?: string; + /** + * Список значений рейтинга. + * @type {Array} + * @memberof V1Rating + */ + values?: Array; + /** + * Пороговое значение рейтинга, после которого появится предупреждение о возможной блокировке. + * @type {number} + * @memberof V1Rating + */ + warning_threshold?: number; +} +/** + * Check if a given object implements the V1Rating interface. + */ +export declare function instanceOfV1Rating(value: object): value is V1Rating; +export declare function V1RatingFromJSON(json: any): V1Rating; +export declare function V1RatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Rating; +export declare function V1RatingToJSON(value?: V1Rating | null): any; diff --git a/dist/models/V1Rating.js b/dist/models/V1Rating.js new file mode 100644 index 0000000..31ac979 --- /dev/null +++ b/dist/models/V1Rating.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1Rating = instanceOfV1Rating; +exports.V1RatingFromJSON = V1RatingFromJSON; +exports.V1RatingFromJSONTyped = V1RatingFromJSONTyped; +exports.V1RatingToJSON = V1RatingToJSON; +const RatingValue_1 = require("./RatingValue"); +/** + * Check if a given object implements the V1Rating interface. + */ +function instanceOfV1Rating(value) { + return true; +} +function V1RatingFromJSON(json) { + return V1RatingFromJSONTyped(json, false); +} +function V1RatingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'danger_threshold': json['danger_threshold'] == null ? undefined : json['danger_threshold'], + 'premium_threshold': json['premium_threshold'] == null ? undefined : json['premium_threshold'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'values': json['values'] == null ? undefined : (json['values'].map(RatingValue_1.RatingValueFromJSON)), + 'warning_threshold': json['warning_threshold'] == null ? undefined : json['warning_threshold'], + }; +} +function V1RatingToJSON(value) { + if (value == null) { + return value; + } + return { + 'danger_threshold': value['danger_threshold'], + 'premium_threshold': value['premium_threshold'], + 'rating': value['rating'], + 'values': value['values'] == null ? undefined : (value['values'].map(RatingValue_1.RatingValueToJSON)), + 'warning_threshold': value['warning_threshold'], + }; +} diff --git a/dist/models/V1RatingHistoryV1Request.d.ts b/dist/models/V1RatingHistoryV1Request.d.ts new file mode 100644 index 0000000..d5d6732 --- /dev/null +++ b/dist/models/V1RatingHistoryV1Request.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1RatingHistoryV1Request + */ +export interface V1RatingHistoryV1Request { + /** + * Начало периода. + * @type {string} + * @memberof V1RatingHistoryV1Request + */ + date_from: string; + /** + * Конец периода. + * @type {string} + * @memberof V1RatingHistoryV1Request + */ + date_to: string; + /** + * Фильтр по рейтингу. + * + * Рейтинги, по которым нужно получить значение за период: + * + * - `rating_on_time` — процент заказов, выполненных вовремя за последние 30 дней. + * - `rating_review_avg_score_total` — средняя оценка всех товаров. + * - `rating_ssl` — оценка работы по FBO. Учитывает `rating_on_time_supply_delivery`, `rating_on_time_supply_cancellation` и `rating_order_accuracy`. + * - `rating_on_time_supply_delivery` — процент поставок, которые вы привезли на склад в выбранный временной интервал за последние 60 дней. + * - `rating_order_accuracy` — процент поставок без излишков, недостач, пересорта и брака за последние 60 дней. + * - `rating_on_time_supply_cancellation` — процент заявок на поставку, которые завершились или были отменены без опоздания за последние 60 дней. + * - `rating_reaction_time` — время в секундах, в течение которого покупатели в среднем ждали ответа на своё первое сообщение в чате за последние 30 дней. + * - `rating_average_response_time` — время в секундах, в течение которого покупатели в среднем ждали вашего ответа за последние 30 дней. + * - `rating_replied_dialogs_ratio` — доля диалогов хотя бы с одним вашим ответом в течение 24 часов за последние 30 дней. + * - `rating_general_indicator_fbs_rfbs` — индекс ошибок FBS и rFBS. + * - `rating_price_green` — выгодный индекс цен. + * - `rating_price_yellow` — умеренный индекс цен. + * - `rating_price_red` — невыгодный индекс цен. + * - `rating_price_super` — супер-выгодный индекс цен. + * + * Если вы хотите получить информацию по начисленным штрафным баллам для рейтингов `rating_on_time` и `rating_review_avg_score_total`, + * передайте значения нужных рейтингов в этом параметре и `with_premium_scores=true`. + * + * @type {Array} + * @memberof V1RatingHistoryV1Request + */ + ratings: Array; + /** + * Признак, что в ответе нужно вернуть информацию о штрафных баллах в Premium-программе. + * @type {boolean} + * @memberof V1RatingHistoryV1Request + */ + with_premium_scores?: boolean; +} +/** + * Check if a given object implements the V1RatingHistoryV1Request interface. + */ +export declare function instanceOfV1RatingHistoryV1Request(value: object): value is V1RatingHistoryV1Request; +export declare function V1RatingHistoryV1RequestFromJSON(json: any): V1RatingHistoryV1Request; +export declare function V1RatingHistoryV1RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingHistoryV1Request; +export declare function V1RatingHistoryV1RequestToJSON(value?: V1RatingHistoryV1Request | null): any; diff --git a/dist/models/V1RatingHistoryV1Request.js b/dist/models/V1RatingHistoryV1Request.js new file mode 100644 index 0000000..d105298 --- /dev/null +++ b/dist/models/V1RatingHistoryV1Request.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1RatingHistoryV1Request = instanceOfV1RatingHistoryV1Request; +exports.V1RatingHistoryV1RequestFromJSON = V1RatingHistoryV1RequestFromJSON; +exports.V1RatingHistoryV1RequestFromJSONTyped = V1RatingHistoryV1RequestFromJSONTyped; +exports.V1RatingHistoryV1RequestToJSON = V1RatingHistoryV1RequestToJSON; +/** + * Check if a given object implements the V1RatingHistoryV1Request interface. + */ +function instanceOfV1RatingHistoryV1Request(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('ratings' in value) || value['ratings'] === undefined) + return false; + return true; +} +function V1RatingHistoryV1RequestFromJSON(json) { + return V1RatingHistoryV1RequestFromJSONTyped(json, false); +} +function V1RatingHistoryV1RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'ratings': json['ratings'], + 'with_premium_scores': json['with_premium_scores'] == null ? undefined : json['with_premium_scores'], + }; +} +function V1RatingHistoryV1RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'ratings': value['ratings'], + 'with_premium_scores': value['with_premium_scores'], + }; +} diff --git a/dist/models/V1RatingHistoryV1Response.d.ts b/dist/models/V1RatingHistoryV1Response.d.ts new file mode 100644 index 0000000..e963462 --- /dev/null +++ b/dist/models/V1RatingHistoryV1Response.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Rating } from './V1Rating'; +import type { V1PremiumScores } from './V1PremiumScores'; +/** + * + * @export + * @interface V1RatingHistoryV1Response + */ +export interface V1RatingHistoryV1Response { + /** + * Информация о штрафных баллах в Premium-программе. + * @type {Array} + * @memberof V1RatingHistoryV1Response + */ + premium_scores?: Array; + /** + * Информация о рейтингах продавца. + * @type {Array} + * @memberof V1RatingHistoryV1Response + */ + ratings?: Array; +} +/** + * Check if a given object implements the V1RatingHistoryV1Response interface. + */ +export declare function instanceOfV1RatingHistoryV1Response(value: object): value is V1RatingHistoryV1Response; +export declare function V1RatingHistoryV1ResponseFromJSON(json: any): V1RatingHistoryV1Response; +export declare function V1RatingHistoryV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingHistoryV1Response; +export declare function V1RatingHistoryV1ResponseToJSON(value?: V1RatingHistoryV1Response | null): any; diff --git a/dist/models/V1RatingHistoryV1Response.js b/dist/models/V1RatingHistoryV1Response.js new file mode 100644 index 0000000..b67c3c4 --- /dev/null +++ b/dist/models/V1RatingHistoryV1Response.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1RatingHistoryV1Response = instanceOfV1RatingHistoryV1Response; +exports.V1RatingHistoryV1ResponseFromJSON = V1RatingHistoryV1ResponseFromJSON; +exports.V1RatingHistoryV1ResponseFromJSONTyped = V1RatingHistoryV1ResponseFromJSONTyped; +exports.V1RatingHistoryV1ResponseToJSON = V1RatingHistoryV1ResponseToJSON; +const V1Rating_1 = require("./V1Rating"); +const V1PremiumScores_1 = require("./V1PremiumScores"); +/** + * Check if a given object implements the V1RatingHistoryV1Response interface. + */ +function instanceOfV1RatingHistoryV1Response(value) { + return true; +} +function V1RatingHistoryV1ResponseFromJSON(json) { + return V1RatingHistoryV1ResponseFromJSONTyped(json, false); +} +function V1RatingHistoryV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'premium_scores': json['premium_scores'] == null ? undefined : (json['premium_scores'].map(V1PremiumScores_1.V1PremiumScoresFromJSON)), + 'ratings': json['ratings'] == null ? undefined : (json['ratings'].map(V1Rating_1.V1RatingFromJSON)), + }; +} +function V1RatingHistoryV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'premium_scores': value['premium_scores'] == null ? undefined : (value['premium_scores'].map(V1PremiumScores_1.V1PremiumScoresToJSON)), + 'ratings': value['ratings'] == null ? undefined : (value['ratings'].map(V1Rating_1.V1RatingToJSON)), + }; +} diff --git a/dist/models/V1RatingItem.d.ts b/dist/models/V1RatingItem.d.ts new file mode 100644 index 0000000..cd69ca0 --- /dev/null +++ b/dist/models/V1RatingItem.d.ts @@ -0,0 +1,92 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RatingItemChange } from './RatingItemChange'; +/** + * + * @export + * @interface V1RatingItem + */ +export interface V1RatingItem { + /** + * + * @type {RatingItemChange} + * @memberof V1RatingItem + */ + change?: RatingItemChange; + /** + * Текущее значение рейтинга. + * @type {number} + * @memberof V1RatingItem + */ + current_value?: number; + /** + * Название рейтинга. + * @type {string} + * @memberof V1RatingItem + */ + name?: string; + /** + * Предыдущее значение рейтинга. + * @type {number} + * @memberof V1RatingItem + */ + past_value?: number; + /** + * Название рейтинга в системе. + * @type {string} + * @memberof V1RatingItem + */ + rating?: string; + /** + * Каким должно быть значение рейтинга, чтобы оно считалось хорошим: + * - `UNKNOWN_DIRECTION` — не определено. + * - `NEUTRAL` — неважно. + * - `HIGHER_IS_BETTER` — чем выше, тем лучше. + * - `LOWER_IS_BETTER` — чем ниже, тем лучше. + * + * @type {string} + * @memberof V1RatingItem + */ + rating_direction?: string; + /** + * Статус рейтинга: + * - `UNKNOWN_STATUS` — не определён. + * - `OK` — все хорошо. + * - `WARNING` — показатели требуют внимания. + * - `CRITICAL` — критичный рейтинг. + * + * @type {string} + * @memberof V1RatingItem + */ + status?: string; + /** + * Тип значения: + * - `UNKNOWN_VALUE` — не определён. + * - `INDEX` — индекс. + * - `PERCENT` — процент. + * - `TIME` — время. + * - `RATIO` — коэффициент. + * - `REVIEW_SCORE` — оценка. + * - `COUNT` — счёт. + * + * @type {string} + * @memberof V1RatingItem + */ + value_type?: string; +} +/** + * Check if a given object implements the V1RatingItem interface. + */ +export declare function instanceOfV1RatingItem(value: object): value is V1RatingItem; +export declare function V1RatingItemFromJSON(json: any): V1RatingItem; +export declare function V1RatingItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingItem; +export declare function V1RatingItemToJSON(value?: V1RatingItem | null): any; diff --git a/dist/models/V1RatingItem.js b/dist/models/V1RatingItem.js new file mode 100644 index 0000000..de4c088 --- /dev/null +++ b/dist/models/V1RatingItem.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1RatingItem = instanceOfV1RatingItem; +exports.V1RatingItemFromJSON = V1RatingItemFromJSON; +exports.V1RatingItemFromJSONTyped = V1RatingItemFromJSONTyped; +exports.V1RatingItemToJSON = V1RatingItemToJSON; +const RatingItemChange_1 = require("./RatingItemChange"); +/** + * Check if a given object implements the V1RatingItem interface. + */ +function instanceOfV1RatingItem(value) { + return true; +} +function V1RatingItemFromJSON(json) { + return V1RatingItemFromJSONTyped(json, false); +} +function V1RatingItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'change': json['change'] == null ? undefined : (0, RatingItemChange_1.RatingItemChangeFromJSON)(json['change']), + 'current_value': json['current_value'] == null ? undefined : json['current_value'], + 'name': json['name'] == null ? undefined : json['name'], + 'past_value': json['past_value'] == null ? undefined : json['past_value'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'rating_direction': json['rating_direction'] == null ? undefined : json['rating_direction'], + 'status': json['status'] == null ? undefined : json['status'], + 'value_type': json['value_type'] == null ? undefined : json['value_type'], + }; +} +function V1RatingItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'change': (0, RatingItemChange_1.RatingItemChangeToJSON)(value['change']), + 'current_value': value['current_value'], + 'name': value['name'], + 'past_value': value['past_value'], + 'rating': value['rating'], + 'rating_direction': value['rating_direction'], + 'status': value['status'], + 'value_type': value['value_type'], + }; +} diff --git a/dist/models/V1RatingStatus.d.ts b/dist/models/V1RatingStatus.d.ts new file mode 100644 index 0000000..e03468e --- /dev/null +++ b/dist/models/V1RatingStatus.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус рейтинга. + * @export + * @interface V1RatingStatus + */ +export interface V1RatingStatus { + /** + * Признак, превышено ли пороговое значение рейтинга для блокировки. + * @type {boolean} + * @memberof V1RatingStatus + */ + danger?: boolean; + /** + * Признак, достигнуто ли пороговое значение для участия в Premium-программе. + * @type {boolean} + * @memberof V1RatingStatus + */ + premium?: boolean; + /** + * Признак наличия предупреждения о возможном превышении порогового значения для блокировки. + * @type {boolean} + * @memberof V1RatingStatus + */ + warning?: boolean; +} +/** + * Check if a given object implements the V1RatingStatus interface. + */ +export declare function instanceOfV1RatingStatus(value: object): value is V1RatingStatus; +export declare function V1RatingStatusFromJSON(json: any): V1RatingStatus; +export declare function V1RatingStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingStatus; +export declare function V1RatingStatusToJSON(value?: V1RatingStatus | null): any; diff --git a/dist/models/V1RatingStatus.js b/dist/models/V1RatingStatus.js new file mode 100644 index 0000000..1048d7c --- /dev/null +++ b/dist/models/V1RatingStatus.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1RatingStatus = instanceOfV1RatingStatus; +exports.V1RatingStatusFromJSON = V1RatingStatusFromJSON; +exports.V1RatingStatusFromJSONTyped = V1RatingStatusFromJSONTyped; +exports.V1RatingStatusToJSON = V1RatingStatusToJSON; +/** + * Check if a given object implements the V1RatingStatus interface. + */ +function instanceOfV1RatingStatus(value) { + return true; +} +function V1RatingStatusFromJSON(json) { + return V1RatingStatusFromJSONTyped(json, false); +} +function V1RatingStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'danger': json['danger'] == null ? undefined : json['danger'], + 'premium': json['premium'] == null ? undefined : json['premium'], + 'warning': json['warning'] == null ? undefined : json['warning'], + }; +} +function V1RatingStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'danger': value['danger'], + 'premium': value['premium'], + 'warning': value['warning'], + }; +} diff --git a/dist/models/V1RatingSummaryV1Response.d.ts b/dist/models/V1RatingSummaryV1Response.d.ts new file mode 100644 index 0000000..694f4b5 --- /dev/null +++ b/dist/models/V1RatingSummaryV1Response.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RatingSummaryV1ResponseLocalIndex } from './RatingSummaryV1ResponseLocalIndex'; +import type { RatingSummaryV1ResponseGroup } from './RatingSummaryV1ResponseGroup'; +/** + * + * @export + * @interface V1RatingSummaryV1Response + */ +export interface V1RatingSummaryV1Response { + /** + * Список с группами рейтингов. + * @type {Array} + * @memberof V1RatingSummaryV1Response + */ + groups?: Array; + /** + * Данные по индексу локализации. Если за последние 14 дней у вас не было продаж, поля параметра будут пустыми. + * @type {Array} + * @memberof V1RatingSummaryV1Response + */ + localization_index?: Array; + /** + * Признак, что баланс штрафных баллов превышен. + * @type {boolean} + * @memberof V1RatingSummaryV1Response + */ + penalty_score_exceeded?: boolean; + /** + * Признак наличия подписки [Premium](https://seller-edu.ozon.ru/seller-rating/about-rating/premium-program). + * @type {boolean} + * @memberof V1RatingSummaryV1Response + */ + premium?: boolean; + /** + * Признак наличия подписки [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus). + * @type {boolean} + * @memberof V1RatingSummaryV1Response + */ + premium_plus?: boolean; +} +/** + * Check if a given object implements the V1RatingSummaryV1Response interface. + */ +export declare function instanceOfV1RatingSummaryV1Response(value: object): value is V1RatingSummaryV1Response; +export declare function V1RatingSummaryV1ResponseFromJSON(json: any): V1RatingSummaryV1Response; +export declare function V1RatingSummaryV1ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RatingSummaryV1Response; +export declare function V1RatingSummaryV1ResponseToJSON(value?: V1RatingSummaryV1Response | null): any; diff --git a/dist/models/V1RatingSummaryV1Response.js b/dist/models/V1RatingSummaryV1Response.js new file mode 100644 index 0000000..3e80330 --- /dev/null +++ b/dist/models/V1RatingSummaryV1Response.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1RatingSummaryV1Response = instanceOfV1RatingSummaryV1Response; +exports.V1RatingSummaryV1ResponseFromJSON = V1RatingSummaryV1ResponseFromJSON; +exports.V1RatingSummaryV1ResponseFromJSONTyped = V1RatingSummaryV1ResponseFromJSONTyped; +exports.V1RatingSummaryV1ResponseToJSON = V1RatingSummaryV1ResponseToJSON; +const RatingSummaryV1ResponseLocalIndex_1 = require("./RatingSummaryV1ResponseLocalIndex"); +const RatingSummaryV1ResponseGroup_1 = require("./RatingSummaryV1ResponseGroup"); +/** + * Check if a given object implements the V1RatingSummaryV1Response interface. + */ +function instanceOfV1RatingSummaryV1Response(value) { + return true; +} +function V1RatingSummaryV1ResponseFromJSON(json) { + return V1RatingSummaryV1ResponseFromJSONTyped(json, false); +} +function V1RatingSummaryV1ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'groups': json['groups'] == null ? undefined : (json['groups'].map(RatingSummaryV1ResponseGroup_1.RatingSummaryV1ResponseGroupFromJSON)), + 'localization_index': json['localization_index'] == null ? undefined : (json['localization_index'].map(RatingSummaryV1ResponseLocalIndex_1.RatingSummaryV1ResponseLocalIndexFromJSON)), + 'penalty_score_exceeded': json['penalty_score_exceeded'] == null ? undefined : json['penalty_score_exceeded'], + 'premium': json['premium'] == null ? undefined : json['premium'], + 'premium_plus': json['premium_plus'] == null ? undefined : json['premium_plus'], + }; +} +function V1RatingSummaryV1ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'groups': value['groups'] == null ? undefined : (value['groups'].map(RatingSummaryV1ResponseGroup_1.RatingSummaryV1ResponseGroupToJSON)), + 'localization_index': value['localization_index'] == null ? undefined : (value['localization_index'].map(RatingSummaryV1ResponseLocalIndex_1.RatingSummaryV1ResponseLocalIndexToJSON)), + 'penalty_score_exceeded': value['penalty_score_exceeded'], + 'premium': value['premium'], + 'premium_plus': value['premium_plus'], + }; +} diff --git a/dist/models/V1ReceiptsSellerListRequest.d.ts b/dist/models/V1ReceiptsSellerListRequest.d.ts new file mode 100644 index 0000000..8462e96 --- /dev/null +++ b/dist/models/V1ReceiptsSellerListRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReceiptsSellerListRequest + */ +export interface V1ReceiptsSellerListRequest { + /** + * Количество страниц, которое нужно пропустить. + * @type {number} + * @memberof V1ReceiptsSellerListRequest + */ + page?: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V1ReceiptsSellerListRequest + */ + page_size?: number; + /** + * Фильтр по номерам отправлений. + * @type {Array} + * @memberof V1ReceiptsSellerListRequest + */ + posting_numbers?: Array; +} +/** + * Check if a given object implements the V1ReceiptsSellerListRequest interface. + */ +export declare function instanceOfV1ReceiptsSellerListRequest(value: object): value is V1ReceiptsSellerListRequest; +export declare function V1ReceiptsSellerListRequestFromJSON(json: any): V1ReceiptsSellerListRequest; +export declare function V1ReceiptsSellerListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReceiptsSellerListRequest; +export declare function V1ReceiptsSellerListRequestToJSON(value?: V1ReceiptsSellerListRequest | null): any; diff --git a/dist/models/V1ReceiptsSellerListRequest.js b/dist/models/V1ReceiptsSellerListRequest.js new file mode 100644 index 0000000..d39afd9 --- /dev/null +++ b/dist/models/V1ReceiptsSellerListRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReceiptsSellerListRequest = instanceOfV1ReceiptsSellerListRequest; +exports.V1ReceiptsSellerListRequestFromJSON = V1ReceiptsSellerListRequestFromJSON; +exports.V1ReceiptsSellerListRequestFromJSONTyped = V1ReceiptsSellerListRequestFromJSONTyped; +exports.V1ReceiptsSellerListRequestToJSON = V1ReceiptsSellerListRequestToJSON; +/** + * Check if a given object implements the V1ReceiptsSellerListRequest interface. + */ +function instanceOfV1ReceiptsSellerListRequest(value) { + return true; +} +function V1ReceiptsSellerListRequestFromJSON(json) { + return V1ReceiptsSellerListRequestFromJSONTyped(json, false); +} +function V1ReceiptsSellerListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'] == null ? undefined : json['page'], + 'page_size': json['page_size'] == null ? undefined : json['page_size'], + 'posting_numbers': json['posting_numbers'] == null ? undefined : json['posting_numbers'], + }; +} +function V1ReceiptsSellerListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/models/V1ReceiptsSellerListResponse.d.ts b/dist/models/V1ReceiptsSellerListResponse.d.ts new file mode 100644 index 0000000..a4cca14 --- /dev/null +++ b/dist/models/V1ReceiptsSellerListResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReceiptsSellerListResponseReceipt } from './ReceiptsSellerListResponseReceipt'; +/** + * + * @export + * @interface V1ReceiptsSellerListResponse + */ +export interface V1ReceiptsSellerListResponse { + /** + * Признак, что в ответе вернулись не все записи: + * - `true` — сделайте повторный запрос с новым параметром `page`, чтобы получить остальные значения; + * - `false` — ответ содержит все записи с чеками. + * + * @type {boolean} + * @memberof V1ReceiptsSellerListResponse + */ + has_next?: boolean; + /** + * Информация о чеках. + * @type {Array} + * @memberof V1ReceiptsSellerListResponse + */ + receipts?: Array; +} +/** + * Check if a given object implements the V1ReceiptsSellerListResponse interface. + */ +export declare function instanceOfV1ReceiptsSellerListResponse(value: object): value is V1ReceiptsSellerListResponse; +export declare function V1ReceiptsSellerListResponseFromJSON(json: any): V1ReceiptsSellerListResponse; +export declare function V1ReceiptsSellerListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReceiptsSellerListResponse; +export declare function V1ReceiptsSellerListResponseToJSON(value?: V1ReceiptsSellerListResponse | null): any; diff --git a/dist/models/V1ReceiptsSellerListResponse.js b/dist/models/V1ReceiptsSellerListResponse.js new file mode 100644 index 0000000..0e5f6c7 --- /dev/null +++ b/dist/models/V1ReceiptsSellerListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReceiptsSellerListResponse = instanceOfV1ReceiptsSellerListResponse; +exports.V1ReceiptsSellerListResponseFromJSON = V1ReceiptsSellerListResponseFromJSON; +exports.V1ReceiptsSellerListResponseFromJSONTyped = V1ReceiptsSellerListResponseFromJSONTyped; +exports.V1ReceiptsSellerListResponseToJSON = V1ReceiptsSellerListResponseToJSON; +const ReceiptsSellerListResponseReceipt_1 = require("./ReceiptsSellerListResponseReceipt"); +/** + * Check if a given object implements the V1ReceiptsSellerListResponse interface. + */ +function instanceOfV1ReceiptsSellerListResponse(value) { + return true; +} +function V1ReceiptsSellerListResponseFromJSON(json) { + return V1ReceiptsSellerListResponseFromJSONTyped(json, false); +} +function V1ReceiptsSellerListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'receipts': json['receipts'] == null ? undefined : (json['receipts'].map(ReceiptsSellerListResponseReceipt_1.ReceiptsSellerListResponseReceiptFromJSON)), + }; +} +function V1ReceiptsSellerListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'receipts': value['receipts'] == null ? undefined : (value['receipts'].map(ReceiptsSellerListResponseReceipt_1.ReceiptsSellerListResponseReceiptToJSON)), + }; +} diff --git a/dist/models/V1ReportMarkedProductsSalesCreateRequest.d.ts b/dist/models/V1ReportMarkedProductsSalesCreateRequest.d.ts new file mode 100644 index 0000000..4f15eda --- /dev/null +++ b/dist/models/V1ReportMarkedProductsSalesCreateRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReportMarkedProductsSalesCreateRequestDate } from './ReportMarkedProductsSalesCreateRequestDate'; +/** + * + * @export + * @interface V1ReportMarkedProductsSalesCreateRequest + */ +export interface V1ReportMarkedProductsSalesCreateRequest { + /** + * + * @type {ReportMarkedProductsSalesCreateRequestDate} + * @memberof V1ReportMarkedProductsSalesCreateRequest + */ + date?: ReportMarkedProductsSalesCreateRequestDate; +} +/** + * Check if a given object implements the V1ReportMarkedProductsSalesCreateRequest interface. + */ +export declare function instanceOfV1ReportMarkedProductsSalesCreateRequest(value: object): value is V1ReportMarkedProductsSalesCreateRequest; +export declare function V1ReportMarkedProductsSalesCreateRequestFromJSON(json: any): V1ReportMarkedProductsSalesCreateRequest; +export declare function V1ReportMarkedProductsSalesCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReportMarkedProductsSalesCreateRequest; +export declare function V1ReportMarkedProductsSalesCreateRequestToJSON(value?: V1ReportMarkedProductsSalesCreateRequest | null): any; diff --git a/dist/models/V1ReportMarkedProductsSalesCreateRequest.js b/dist/models/V1ReportMarkedProductsSalesCreateRequest.js new file mode 100644 index 0000000..2679a48 --- /dev/null +++ b/dist/models/V1ReportMarkedProductsSalesCreateRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReportMarkedProductsSalesCreateRequest = instanceOfV1ReportMarkedProductsSalesCreateRequest; +exports.V1ReportMarkedProductsSalesCreateRequestFromJSON = V1ReportMarkedProductsSalesCreateRequestFromJSON; +exports.V1ReportMarkedProductsSalesCreateRequestFromJSONTyped = V1ReportMarkedProductsSalesCreateRequestFromJSONTyped; +exports.V1ReportMarkedProductsSalesCreateRequestToJSON = V1ReportMarkedProductsSalesCreateRequestToJSON; +const ReportMarkedProductsSalesCreateRequestDate_1 = require("./ReportMarkedProductsSalesCreateRequestDate"); +/** + * Check if a given object implements the V1ReportMarkedProductsSalesCreateRequest interface. + */ +function instanceOfV1ReportMarkedProductsSalesCreateRequest(value) { + return true; +} +function V1ReportMarkedProductsSalesCreateRequestFromJSON(json) { + return V1ReportMarkedProductsSalesCreateRequestFromJSONTyped(json, false); +} +function V1ReportMarkedProductsSalesCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'] == null ? undefined : (0, ReportMarkedProductsSalesCreateRequestDate_1.ReportMarkedProductsSalesCreateRequestDateFromJSON)(json['date']), + }; +} +function V1ReportMarkedProductsSalesCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': (0, ReportMarkedProductsSalesCreateRequestDate_1.ReportMarkedProductsSalesCreateRequestDateToJSON)(value['date']), + }; +} diff --git a/dist/models/V1Restriction.d.ts b/dist/models/V1Restriction.d.ts new file mode 100644 index 0000000..27d0b67 --- /dev/null +++ b/dist/models/V1Restriction.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1Restriction + */ +export interface V1Restriction { + /** + * Номер отправления. + * @type {string} + * @memberof V1Restriction + */ + posting_number?: string; + /** + * Ограничение по максимальному весу в граммах. + * @type {number} + * @memberof V1Restriction + */ + max_posting_weight?: number; + /** + * Ограничение по минимальному весу в граммах. + * @type {number} + * @memberof V1Restriction + */ + min_posting_weight?: number; + /** + * Ограничение по ширине в сантиметрах. + * @type {number} + * @memberof V1Restriction + */ + width?: number; + /** + * Ограничение по длине в сантиметрах. + * @type {number} + * @memberof V1Restriction + */ + length?: number; + /** + * Ограничение по высоте в сантиметрах. + * @type {number} + * @memberof V1Restriction + */ + height?: number; + /** + * Ограничение по максимальной стоимости отправления в рублях. + * @type {number} + * @memberof V1Restriction + */ + max_posting_price?: number; + /** + * Ограничение по минимальной стоимости отправления в рублях. + * @type {number} + * @memberof V1Restriction + */ + min_posting_price?: number; +} +/** + * Check if a given object implements the V1Restriction interface. + */ +export declare function instanceOfV1Restriction(value: object): value is V1Restriction; +export declare function V1RestrictionFromJSON(json: any): V1Restriction; +export declare function V1RestrictionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Restriction; +export declare function V1RestrictionToJSON(value?: V1Restriction | null): any; diff --git a/dist/models/V1Restriction.js b/dist/models/V1Restriction.js new file mode 100644 index 0000000..44e1f60 --- /dev/null +++ b/dist/models/V1Restriction.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1Restriction = instanceOfV1Restriction; +exports.V1RestrictionFromJSON = V1RestrictionFromJSON; +exports.V1RestrictionFromJSONTyped = V1RestrictionFromJSONTyped; +exports.V1RestrictionToJSON = V1RestrictionToJSON; +/** + * Check if a given object implements the V1Restriction interface. + */ +function instanceOfV1Restriction(value) { + return true; +} +function V1RestrictionFromJSON(json) { + return V1RestrictionFromJSONTyped(json, false); +} +function V1RestrictionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'max_posting_weight': json['max_posting_weight'] == null ? undefined : json['max_posting_weight'], + 'min_posting_weight': json['min_posting_weight'] == null ? undefined : json['min_posting_weight'], + 'width': json['width'] == null ? undefined : json['width'], + 'length': json['length'] == null ? undefined : json['length'], + 'height': json['height'] == null ? undefined : json['height'], + 'max_posting_price': json['max_posting_price'] == null ? undefined : json['max_posting_price'], + 'min_posting_price': json['min_posting_price'] == null ? undefined : json['min_posting_price'], + }; +} +function V1RestrictionToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'max_posting_weight': value['max_posting_weight'], + 'min_posting_weight': value['min_posting_weight'], + 'width': value['width'], + 'length': value['length'], + 'height': value['height'], + 'max_posting_price': value['max_posting_price'], + 'min_posting_price': value['min_posting_price'], + }; +} diff --git a/dist/models/V1ReturnsCompanyFbsInfoRequest.d.ts b/dist/models/V1ReturnsCompanyFbsInfoRequest.d.ts new file mode 100644 index 0000000..57dde46 --- /dev/null +++ b/dist/models/V1ReturnsCompanyFbsInfoRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1ReturnsCompanyFbsInfoRequestFilter } from './V1ReturnsCompanyFbsInfoRequestFilter'; +import type { ReturnsCompanyFbsInfoRequestPagination } from './ReturnsCompanyFbsInfoRequestPagination'; +/** + * + * @export + * @interface V1ReturnsCompanyFbsInfoRequest + */ +export interface V1ReturnsCompanyFbsInfoRequest { + /** + * + * @type {V1ReturnsCompanyFbsInfoRequestFilter} + * @memberof V1ReturnsCompanyFbsInfoRequest + */ + filter?: V1ReturnsCompanyFbsInfoRequestFilter; + /** + * + * @type {ReturnsCompanyFbsInfoRequestPagination} + * @memberof V1ReturnsCompanyFbsInfoRequest + */ + pagination: ReturnsCompanyFbsInfoRequestPagination; +} +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoRequest interface. + */ +export declare function instanceOfV1ReturnsCompanyFbsInfoRequest(value: object): value is V1ReturnsCompanyFbsInfoRequest; +export declare function V1ReturnsCompanyFbsInfoRequestFromJSON(json: any): V1ReturnsCompanyFbsInfoRequest; +export declare function V1ReturnsCompanyFbsInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsCompanyFbsInfoRequest; +export declare function V1ReturnsCompanyFbsInfoRequestToJSON(value?: V1ReturnsCompanyFbsInfoRequest | null): any; diff --git a/dist/models/V1ReturnsCompanyFbsInfoRequest.js b/dist/models/V1ReturnsCompanyFbsInfoRequest.js new file mode 100644 index 0000000..7f395c3 --- /dev/null +++ b/dist/models/V1ReturnsCompanyFbsInfoRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReturnsCompanyFbsInfoRequest = instanceOfV1ReturnsCompanyFbsInfoRequest; +exports.V1ReturnsCompanyFbsInfoRequestFromJSON = V1ReturnsCompanyFbsInfoRequestFromJSON; +exports.V1ReturnsCompanyFbsInfoRequestFromJSONTyped = V1ReturnsCompanyFbsInfoRequestFromJSONTyped; +exports.V1ReturnsCompanyFbsInfoRequestToJSON = V1ReturnsCompanyFbsInfoRequestToJSON; +const V1ReturnsCompanyFbsInfoRequestFilter_1 = require("./V1ReturnsCompanyFbsInfoRequestFilter"); +const ReturnsCompanyFbsInfoRequestPagination_1 = require("./ReturnsCompanyFbsInfoRequestPagination"); +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoRequest interface. + */ +function instanceOfV1ReturnsCompanyFbsInfoRequest(value) { + if (!('pagination' in value) || value['pagination'] === undefined) + return false; + return true; +} +function V1ReturnsCompanyFbsInfoRequestFromJSON(json) { + return V1ReturnsCompanyFbsInfoRequestFromJSONTyped(json, false); +} +function V1ReturnsCompanyFbsInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, V1ReturnsCompanyFbsInfoRequestFilter_1.V1ReturnsCompanyFbsInfoRequestFilterFromJSON)(json['filter']), + 'pagination': (0, ReturnsCompanyFbsInfoRequestPagination_1.ReturnsCompanyFbsInfoRequestPaginationFromJSON)(json['pagination']), + }; +} +function V1ReturnsCompanyFbsInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, V1ReturnsCompanyFbsInfoRequestFilter_1.V1ReturnsCompanyFbsInfoRequestFilterToJSON)(value['filter']), + 'pagination': (0, ReturnsCompanyFbsInfoRequestPagination_1.ReturnsCompanyFbsInfoRequestPaginationToJSON)(value['pagination']), + }; +} diff --git a/dist/models/V1ReturnsCompanyFbsInfoRequestFilter.d.ts b/dist/models/V1ReturnsCompanyFbsInfoRequestFilter.d.ts new file mode 100644 index 0000000..f006f52 --- /dev/null +++ b/dist/models/V1ReturnsCompanyFbsInfoRequestFilter.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтры. + * @export + * @interface V1ReturnsCompanyFbsInfoRequestFilter + */ +export interface V1ReturnsCompanyFbsInfoRequestFilter { + /** + * Фильтр по идентификатору drop-off пункта. + * @type {number} + * @memberof V1ReturnsCompanyFbsInfoRequestFilter + */ + place_id?: number; +} +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoRequestFilter interface. + */ +export declare function instanceOfV1ReturnsCompanyFbsInfoRequestFilter(value: object): value is V1ReturnsCompanyFbsInfoRequestFilter; +export declare function V1ReturnsCompanyFbsInfoRequestFilterFromJSON(json: any): V1ReturnsCompanyFbsInfoRequestFilter; +export declare function V1ReturnsCompanyFbsInfoRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsCompanyFbsInfoRequestFilter; +export declare function V1ReturnsCompanyFbsInfoRequestFilterToJSON(value?: V1ReturnsCompanyFbsInfoRequestFilter | null): any; diff --git a/dist/models/V1ReturnsCompanyFbsInfoRequestFilter.js b/dist/models/V1ReturnsCompanyFbsInfoRequestFilter.js new file mode 100644 index 0000000..35b2fd4 --- /dev/null +++ b/dist/models/V1ReturnsCompanyFbsInfoRequestFilter.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReturnsCompanyFbsInfoRequestFilter = instanceOfV1ReturnsCompanyFbsInfoRequestFilter; +exports.V1ReturnsCompanyFbsInfoRequestFilterFromJSON = V1ReturnsCompanyFbsInfoRequestFilterFromJSON; +exports.V1ReturnsCompanyFbsInfoRequestFilterFromJSONTyped = V1ReturnsCompanyFbsInfoRequestFilterFromJSONTyped; +exports.V1ReturnsCompanyFbsInfoRequestFilterToJSON = V1ReturnsCompanyFbsInfoRequestFilterToJSON; +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoRequestFilter interface. + */ +function instanceOfV1ReturnsCompanyFbsInfoRequestFilter(value) { + return true; +} +function V1ReturnsCompanyFbsInfoRequestFilterFromJSON(json) { + return V1ReturnsCompanyFbsInfoRequestFilterFromJSONTyped(json, false); +} +function V1ReturnsCompanyFbsInfoRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'place_id': json['place_id'] == null ? undefined : json['place_id'], + }; +} +function V1ReturnsCompanyFbsInfoRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'place_id': value['place_id'], + }; +} diff --git a/dist/models/V1ReturnsCompanyFbsInfoResponse.d.ts b/dist/models/V1ReturnsCompanyFbsInfoResponse.d.ts new file mode 100644 index 0000000..502cca1 --- /dev/null +++ b/dist/models/V1ReturnsCompanyFbsInfoResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsCompanyFbsInfoResponseDropOffPoints } from './ReturnsCompanyFbsInfoResponseDropOffPoints'; +/** + * + * @export + * @interface V1ReturnsCompanyFbsInfoResponse + */ +export interface V1ReturnsCompanyFbsInfoResponse { + /** + * Информация о drop-off пунктах. + * @type {Array} + * @memberof V1ReturnsCompanyFbsInfoResponse + */ + drop_off_points?: Array; + /** + * Признак, есть ли ещё пункты, где продавца ожидают возвраты. + * @type {boolean} + * @memberof V1ReturnsCompanyFbsInfoResponse + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoResponse interface. + */ +export declare function instanceOfV1ReturnsCompanyFbsInfoResponse(value: object): value is V1ReturnsCompanyFbsInfoResponse; +export declare function V1ReturnsCompanyFbsInfoResponseFromJSON(json: any): V1ReturnsCompanyFbsInfoResponse; +export declare function V1ReturnsCompanyFbsInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsCompanyFbsInfoResponse; +export declare function V1ReturnsCompanyFbsInfoResponseToJSON(value?: V1ReturnsCompanyFbsInfoResponse | null): any; diff --git a/dist/models/V1ReturnsCompanyFbsInfoResponse.js b/dist/models/V1ReturnsCompanyFbsInfoResponse.js new file mode 100644 index 0000000..509f570 --- /dev/null +++ b/dist/models/V1ReturnsCompanyFbsInfoResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReturnsCompanyFbsInfoResponse = instanceOfV1ReturnsCompanyFbsInfoResponse; +exports.V1ReturnsCompanyFbsInfoResponseFromJSON = V1ReturnsCompanyFbsInfoResponseFromJSON; +exports.V1ReturnsCompanyFbsInfoResponseFromJSONTyped = V1ReturnsCompanyFbsInfoResponseFromJSONTyped; +exports.V1ReturnsCompanyFbsInfoResponseToJSON = V1ReturnsCompanyFbsInfoResponseToJSON; +const ReturnsCompanyFbsInfoResponseDropOffPoints_1 = require("./ReturnsCompanyFbsInfoResponseDropOffPoints"); +/** + * Check if a given object implements the V1ReturnsCompanyFbsInfoResponse interface. + */ +function instanceOfV1ReturnsCompanyFbsInfoResponse(value) { + return true; +} +function V1ReturnsCompanyFbsInfoResponseFromJSON(json) { + return V1ReturnsCompanyFbsInfoResponseFromJSONTyped(json, false); +} +function V1ReturnsCompanyFbsInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_points': json['drop_off_points'] == null ? undefined : (json['drop_off_points'].map(ReturnsCompanyFbsInfoResponseDropOffPoints_1.ReturnsCompanyFbsInfoResponseDropOffPointsFromJSON)), + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +function V1ReturnsCompanyFbsInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_points': value['drop_off_points'] == null ? undefined : (value['drop_off_points'].map(ReturnsCompanyFbsInfoResponseDropOffPoints_1.ReturnsCompanyFbsInfoResponseDropOffPointsToJSON)), + 'has_next': value['has_next'], + }; +} diff --git a/dist/models/V1ReturnsRfbsActionSetRequest.d.ts b/dist/models/V1ReturnsRfbsActionSetRequest.d.ts new file mode 100644 index 0000000..17c9132 --- /dev/null +++ b/dist/models/V1ReturnsRfbsActionSetRequest.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReturnsRfbsActionSetRequest + */ +export interface V1ReturnsRfbsActionSetRequest { + /** + * Комментарий продавца. + * + * Обязателен для `id: -1` и `id: -10`. + * + * @type {string} + * @memberof V1ReturnsRfbsActionSetRequest + */ + comment?: string; + /** + * Сумма компенсации. + * + * Обязательна для `id: 1020`. + * + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + compensation_amount?: number; + /** + * Идентификатор действия. + * + * Получите доступные действия `returns.available_actions` методом [/v2/returns/rfbs/get](#operation/RFBSReturnsAPI_ReturnsRfbsGetV2). + * + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + id?: number; + /** + * Идентификатор причины отмены. + * + * Обязателен для `id: -1` и `id: -10`. + * + * Получите возможные причины отмены `returns.rejection_reason` методом [/v2/returns/rfbs/get](#operation/RFBSReturnsAPI_ReturnsRfbsGetV2). + * + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + rejection_reason_id?: number; + /** + * Сумма, возмещаемая покупателю за пересылку товара. + * + * Отрицательные значения приравниваются к `0`. + * + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + return_for_back_way?: number; + /** + * Идентификатор заявки на возврат. + * @type {number} + * @memberof V1ReturnsRfbsActionSetRequest + */ + return_id: number; +} +/** + * Check if a given object implements the V1ReturnsRfbsActionSetRequest interface. + */ +export declare function instanceOfV1ReturnsRfbsActionSetRequest(value: object): value is V1ReturnsRfbsActionSetRequest; +export declare function V1ReturnsRfbsActionSetRequestFromJSON(json: any): V1ReturnsRfbsActionSetRequest; +export declare function V1ReturnsRfbsActionSetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsRfbsActionSetRequest; +export declare function V1ReturnsRfbsActionSetRequestToJSON(value?: V1ReturnsRfbsActionSetRequest | null): any; diff --git a/dist/models/V1ReturnsRfbsActionSetRequest.js b/dist/models/V1ReturnsRfbsActionSetRequest.js new file mode 100644 index 0000000..7dce814 --- /dev/null +++ b/dist/models/V1ReturnsRfbsActionSetRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReturnsRfbsActionSetRequest = instanceOfV1ReturnsRfbsActionSetRequest; +exports.V1ReturnsRfbsActionSetRequestFromJSON = V1ReturnsRfbsActionSetRequestFromJSON; +exports.V1ReturnsRfbsActionSetRequestFromJSONTyped = V1ReturnsRfbsActionSetRequestFromJSONTyped; +exports.V1ReturnsRfbsActionSetRequestToJSON = V1ReturnsRfbsActionSetRequestToJSON; +/** + * Check if a given object implements the V1ReturnsRfbsActionSetRequest interface. + */ +function instanceOfV1ReturnsRfbsActionSetRequest(value) { + if (!('return_id' in value) || value['return_id'] === undefined) + return false; + return true; +} +function V1ReturnsRfbsActionSetRequestFromJSON(json) { + return V1ReturnsRfbsActionSetRequestFromJSONTyped(json, false); +} +function V1ReturnsRfbsActionSetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment': json['comment'] == null ? undefined : json['comment'], + 'compensation_amount': json['compensation_amount'] == null ? undefined : json['compensation_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'rejection_reason_id': json['rejection_reason_id'] == null ? undefined : json['rejection_reason_id'], + 'return_for_back_way': json['return_for_back_way'] == null ? undefined : json['return_for_back_way'], + 'return_id': json['return_id'], + }; +} +function V1ReturnsRfbsActionSetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment': value['comment'], + 'compensation_amount': value['compensation_amount'], + 'id': value['id'], + 'rejection_reason_id': value['rejection_reason_id'], + 'return_for_back_way': value['return_for_back_way'], + 'return_id': value['return_id'], + }; +} diff --git a/dist/models/V1ReturnsSettingsUtilizationHistoryResponse.d.ts b/dist/models/V1ReturnsSettingsUtilizationHistoryResponse.d.ts new file mode 100644 index 0000000..d1d1bc5 --- /dev/null +++ b/dist/models/V1ReturnsSettingsUtilizationHistoryResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsSettingsUtilizationHistoryResponseHistory } from './ReturnsSettingsUtilizationHistoryResponseHistory'; +/** + * + * @export + * @interface V1ReturnsSettingsUtilizationHistoryResponse + */ +export interface V1ReturnsSettingsUtilizationHistoryResponse { + /** + * История изменений. + * @type {Array} + * @memberof V1ReturnsSettingsUtilizationHistoryResponse + */ + history?: Array; +} +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationHistoryResponse interface. + */ +export declare function instanceOfV1ReturnsSettingsUtilizationHistoryResponse(value: object): value is V1ReturnsSettingsUtilizationHistoryResponse; +export declare function V1ReturnsSettingsUtilizationHistoryResponseFromJSON(json: any): V1ReturnsSettingsUtilizationHistoryResponse; +export declare function V1ReturnsSettingsUtilizationHistoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsSettingsUtilizationHistoryResponse; +export declare function V1ReturnsSettingsUtilizationHistoryResponseToJSON(value?: V1ReturnsSettingsUtilizationHistoryResponse | null): any; diff --git a/dist/models/V1ReturnsSettingsUtilizationHistoryResponse.js b/dist/models/V1ReturnsSettingsUtilizationHistoryResponse.js new file mode 100644 index 0000000..cb74ed9 --- /dev/null +++ b/dist/models/V1ReturnsSettingsUtilizationHistoryResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReturnsSettingsUtilizationHistoryResponse = instanceOfV1ReturnsSettingsUtilizationHistoryResponse; +exports.V1ReturnsSettingsUtilizationHistoryResponseFromJSON = V1ReturnsSettingsUtilizationHistoryResponseFromJSON; +exports.V1ReturnsSettingsUtilizationHistoryResponseFromJSONTyped = V1ReturnsSettingsUtilizationHistoryResponseFromJSONTyped; +exports.V1ReturnsSettingsUtilizationHistoryResponseToJSON = V1ReturnsSettingsUtilizationHistoryResponseToJSON; +const ReturnsSettingsUtilizationHistoryResponseHistory_1 = require("./ReturnsSettingsUtilizationHistoryResponseHistory"); +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationHistoryResponse interface. + */ +function instanceOfV1ReturnsSettingsUtilizationHistoryResponse(value) { + return true; +} +function V1ReturnsSettingsUtilizationHistoryResponseFromJSON(json) { + return V1ReturnsSettingsUtilizationHistoryResponseFromJSONTyped(json, false); +} +function V1ReturnsSettingsUtilizationHistoryResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'history': json['history'] == null ? undefined : (json['history'].map(ReturnsSettingsUtilizationHistoryResponseHistory_1.ReturnsSettingsUtilizationHistoryResponseHistoryFromJSON)), + }; +} +function V1ReturnsSettingsUtilizationHistoryResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'history': value['history'] == null ? undefined : (value['history'].map(ReturnsSettingsUtilizationHistoryResponseHistory_1.ReturnsSettingsUtilizationHistoryResponseHistoryToJSON)), + }; +} diff --git a/dist/models/V1ReturnsSettingsUtilizationInfoResponse.d.ts b/dist/models/V1ReturnsSettingsUtilizationInfoResponse.d.ts new file mode 100644 index 0000000..4494e9c --- /dev/null +++ b/dist/models/V1ReturnsSettingsUtilizationInfoResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MinUtilizationMoney } from './MinUtilizationMoney'; +import type { ReturnsSettingsUtilizationInfoResponseUtilizationSettings } from './ReturnsSettingsUtilizationInfoResponseUtilizationSettings'; +/** + * + * @export + * @interface V1ReturnsSettingsUtilizationInfoResponse + */ +export interface V1ReturnsSettingsUtilizationInfoResponse { + /** + * + * @type {MinUtilizationMoney} + * @memberof V1ReturnsSettingsUtilizationInfoResponse + */ + min_price?: MinUtilizationMoney; + /** + * + * @type {ReturnsSettingsUtilizationInfoResponseUtilizationSettings} + * @memberof V1ReturnsSettingsUtilizationInfoResponse + */ + utilization_settings?: ReturnsSettingsUtilizationInfoResponseUtilizationSettings; +} +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationInfoResponse interface. + */ +export declare function instanceOfV1ReturnsSettingsUtilizationInfoResponse(value: object): value is V1ReturnsSettingsUtilizationInfoResponse; +export declare function V1ReturnsSettingsUtilizationInfoResponseFromJSON(json: any): V1ReturnsSettingsUtilizationInfoResponse; +export declare function V1ReturnsSettingsUtilizationInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsSettingsUtilizationInfoResponse; +export declare function V1ReturnsSettingsUtilizationInfoResponseToJSON(value?: V1ReturnsSettingsUtilizationInfoResponse | null): any; diff --git a/dist/models/V1ReturnsSettingsUtilizationInfoResponse.js b/dist/models/V1ReturnsSettingsUtilizationInfoResponse.js new file mode 100644 index 0000000..8eb28ee --- /dev/null +++ b/dist/models/V1ReturnsSettingsUtilizationInfoResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReturnsSettingsUtilizationInfoResponse = instanceOfV1ReturnsSettingsUtilizationInfoResponse; +exports.V1ReturnsSettingsUtilizationInfoResponseFromJSON = V1ReturnsSettingsUtilizationInfoResponseFromJSON; +exports.V1ReturnsSettingsUtilizationInfoResponseFromJSONTyped = V1ReturnsSettingsUtilizationInfoResponseFromJSONTyped; +exports.V1ReturnsSettingsUtilizationInfoResponseToJSON = V1ReturnsSettingsUtilizationInfoResponseToJSON; +const MinUtilizationMoney_1 = require("./MinUtilizationMoney"); +const ReturnsSettingsUtilizationInfoResponseUtilizationSettings_1 = require("./ReturnsSettingsUtilizationInfoResponseUtilizationSettings"); +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationInfoResponse interface. + */ +function instanceOfV1ReturnsSettingsUtilizationInfoResponse(value) { + return true; +} +function V1ReturnsSettingsUtilizationInfoResponseFromJSON(json) { + return V1ReturnsSettingsUtilizationInfoResponseFromJSONTyped(json, false); +} +function V1ReturnsSettingsUtilizationInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_price': json['min_price'] == null ? undefined : (0, MinUtilizationMoney_1.MinUtilizationMoneyFromJSON)(json['min_price']), + 'utilization_settings': json['utilization_settings'] == null ? undefined : (0, ReturnsSettingsUtilizationInfoResponseUtilizationSettings_1.ReturnsSettingsUtilizationInfoResponseUtilizationSettingsFromJSON)(json['utilization_settings']), + }; +} +function V1ReturnsSettingsUtilizationInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_price': (0, MinUtilizationMoney_1.MinUtilizationMoneyToJSON)(value['min_price']), + 'utilization_settings': (0, ReturnsSettingsUtilizationInfoResponseUtilizationSettings_1.ReturnsSettingsUtilizationInfoResponseUtilizationSettingsToJSON)(value['utilization_settings']), + }; +} diff --git a/dist/models/V1ReturnsSettingsUtilizationUpdateRequest.d.ts b/dist/models/V1ReturnsSettingsUtilizationUpdateRequest.d.ts new file mode 100644 index 0000000..907af89 --- /dev/null +++ b/dist/models/V1ReturnsSettingsUtilizationUpdateRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects } from './ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects'; +import type { ReturnsSettingsUtilizationUpdateRequestUtilizationPrice } from './ReturnsSettingsUtilizationUpdateRequestUtilizationPrice'; +/** + * + * @export + * @interface V1ReturnsSettingsUtilizationUpdateRequest + */ +export interface V1ReturnsSettingsUtilizationUpdateRequest { + /** + * + * @type {ReturnsSettingsUtilizationUpdateRequestUtilizationPrice} + * @memberof V1ReturnsSettingsUtilizationUpdateRequest + */ + utilization_price: ReturnsSettingsUtilizationUpdateRequestUtilizationPrice; + /** + * + * @type {ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects} + * @memberof V1ReturnsSettingsUtilizationUpdateRequest + */ + utilization_price_defects: ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects; +} +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationUpdateRequest interface. + */ +export declare function instanceOfV1ReturnsSettingsUtilizationUpdateRequest(value: object): value is V1ReturnsSettingsUtilizationUpdateRequest; +export declare function V1ReturnsSettingsUtilizationUpdateRequestFromJSON(json: any): V1ReturnsSettingsUtilizationUpdateRequest; +export declare function V1ReturnsSettingsUtilizationUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReturnsSettingsUtilizationUpdateRequest; +export declare function V1ReturnsSettingsUtilizationUpdateRequestToJSON(value?: V1ReturnsSettingsUtilizationUpdateRequest | null): any; diff --git a/dist/models/V1ReturnsSettingsUtilizationUpdateRequest.js b/dist/models/V1ReturnsSettingsUtilizationUpdateRequest.js new file mode 100644 index 0000000..c9b75ff --- /dev/null +++ b/dist/models/V1ReturnsSettingsUtilizationUpdateRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReturnsSettingsUtilizationUpdateRequest = instanceOfV1ReturnsSettingsUtilizationUpdateRequest; +exports.V1ReturnsSettingsUtilizationUpdateRequestFromJSON = V1ReturnsSettingsUtilizationUpdateRequestFromJSON; +exports.V1ReturnsSettingsUtilizationUpdateRequestFromJSONTyped = V1ReturnsSettingsUtilizationUpdateRequestFromJSONTyped; +exports.V1ReturnsSettingsUtilizationUpdateRequestToJSON = V1ReturnsSettingsUtilizationUpdateRequestToJSON; +const ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects_1 = require("./ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects"); +const ReturnsSettingsUtilizationUpdateRequestUtilizationPrice_1 = require("./ReturnsSettingsUtilizationUpdateRequestUtilizationPrice"); +/** + * Check if a given object implements the V1ReturnsSettingsUtilizationUpdateRequest interface. + */ +function instanceOfV1ReturnsSettingsUtilizationUpdateRequest(value) { + if (!('utilization_price' in value) || value['utilization_price'] === undefined) + return false; + if (!('utilization_price_defects' in value) || value['utilization_price_defects'] === undefined) + return false; + return true; +} +function V1ReturnsSettingsUtilizationUpdateRequestFromJSON(json) { + return V1ReturnsSettingsUtilizationUpdateRequestFromJSONTyped(json, false); +} +function V1ReturnsSettingsUtilizationUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'utilization_price': (0, ReturnsSettingsUtilizationUpdateRequestUtilizationPrice_1.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceFromJSON)(json['utilization_price']), + 'utilization_price_defects': (0, ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects_1.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsFromJSON)(json['utilization_price_defects']), + }; +} +function V1ReturnsSettingsUtilizationUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'utilization_price': (0, ReturnsSettingsUtilizationUpdateRequestUtilizationPrice_1.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceToJSON)(value['utilization_price']), + 'utilization_price_defects': (0, ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects_1.ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefectsToJSON)(value['utilization_price_defects']), + }; +} diff --git a/dist/models/V1ReviewChangeStatusRequest.d.ts b/dist/models/V1ReviewChangeStatusRequest.d.ts new file mode 100644 index 0000000..f2a3c5e --- /dev/null +++ b/dist/models/V1ReviewChangeStatusRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReviewChangeStatusRequest + */ +export interface V1ReviewChangeStatusRequest { + /** + * Массив с идентификаторами отзывов от 1 до 100. + * @type {Array} + * @memberof V1ReviewChangeStatusRequest + */ + review_ids: Array; + /** + * Статус отзыва: + * - `PROCESSED` — обработанный, + * - `UNPROCESSED` — необработанный. + * + * @type {string} + * @memberof V1ReviewChangeStatusRequest + */ + status: string; +} +/** + * Check if a given object implements the V1ReviewChangeStatusRequest interface. + */ +export declare function instanceOfV1ReviewChangeStatusRequest(value: object): value is V1ReviewChangeStatusRequest; +export declare function V1ReviewChangeStatusRequestFromJSON(json: any): V1ReviewChangeStatusRequest; +export declare function V1ReviewChangeStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewChangeStatusRequest; +export declare function V1ReviewChangeStatusRequestToJSON(value?: V1ReviewChangeStatusRequest | null): any; diff --git a/dist/models/V1ReviewChangeStatusRequest.js b/dist/models/V1ReviewChangeStatusRequest.js new file mode 100644 index 0000000..f355163 --- /dev/null +++ b/dist/models/V1ReviewChangeStatusRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReviewChangeStatusRequest = instanceOfV1ReviewChangeStatusRequest; +exports.V1ReviewChangeStatusRequestFromJSON = V1ReviewChangeStatusRequestFromJSON; +exports.V1ReviewChangeStatusRequestFromJSONTyped = V1ReviewChangeStatusRequestFromJSONTyped; +exports.V1ReviewChangeStatusRequestToJSON = V1ReviewChangeStatusRequestToJSON; +/** + * Check if a given object implements the V1ReviewChangeStatusRequest interface. + */ +function instanceOfV1ReviewChangeStatusRequest(value) { + if (!('review_ids' in value) || value['review_ids'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +function V1ReviewChangeStatusRequestFromJSON(json) { + return V1ReviewChangeStatusRequestFromJSONTyped(json, false); +} +function V1ReviewChangeStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'review_ids': json['review_ids'], + 'status': json['status'], + }; +} +function V1ReviewChangeStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'review_ids': value['review_ids'], + 'status': value['status'], + }; +} diff --git a/dist/models/V1ReviewCountResponse.d.ts b/dist/models/V1ReviewCountResponse.d.ts new file mode 100644 index 0000000..aabff45 --- /dev/null +++ b/dist/models/V1ReviewCountResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReviewCountResponse + */ +export interface V1ReviewCountResponse { + /** + * Количество обработанных отзывов. + * @type {number} + * @memberof V1ReviewCountResponse + */ + processed?: number; + /** + * Количество всех отзывов. + * @type {number} + * @memberof V1ReviewCountResponse + */ + total?: number; + /** + * Количество необработанных отзывов. + * @type {number} + * @memberof V1ReviewCountResponse + */ + unprocessed?: number; +} +/** + * Check if a given object implements the V1ReviewCountResponse interface. + */ +export declare function instanceOfV1ReviewCountResponse(value: object): value is V1ReviewCountResponse; +export declare function V1ReviewCountResponseFromJSON(json: any): V1ReviewCountResponse; +export declare function V1ReviewCountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewCountResponse; +export declare function V1ReviewCountResponseToJSON(value?: V1ReviewCountResponse | null): any; diff --git a/dist/models/V1ReviewCountResponse.js b/dist/models/V1ReviewCountResponse.js new file mode 100644 index 0000000..4abbda9 --- /dev/null +++ b/dist/models/V1ReviewCountResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReviewCountResponse = instanceOfV1ReviewCountResponse; +exports.V1ReviewCountResponseFromJSON = V1ReviewCountResponseFromJSON; +exports.V1ReviewCountResponseFromJSONTyped = V1ReviewCountResponseFromJSONTyped; +exports.V1ReviewCountResponseToJSON = V1ReviewCountResponseToJSON; +/** + * Check if a given object implements the V1ReviewCountResponse interface. + */ +function instanceOfV1ReviewCountResponse(value) { + return true; +} +function V1ReviewCountResponseFromJSON(json) { + return V1ReviewCountResponseFromJSONTyped(json, false); +} +function V1ReviewCountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'processed': json['processed'] == null ? undefined : json['processed'], + 'total': json['total'] == null ? undefined : json['total'], + 'unprocessed': json['unprocessed'] == null ? undefined : json['unprocessed'], + }; +} +function V1ReviewCountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'processed': value['processed'], + 'total': value['total'], + 'unprocessed': value['unprocessed'], + }; +} diff --git a/dist/models/V1ReviewInfoRequest.d.ts b/dist/models/V1ReviewInfoRequest.d.ts new file mode 100644 index 0000000..210d072 --- /dev/null +++ b/dist/models/V1ReviewInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReviewInfoRequest + */ +export interface V1ReviewInfoRequest { + /** + * Идентификатор отзыва. + * @type {string} + * @memberof V1ReviewInfoRequest + */ + review_id: string; +} +/** + * Check if a given object implements the V1ReviewInfoRequest interface. + */ +export declare function instanceOfV1ReviewInfoRequest(value: object): value is V1ReviewInfoRequest; +export declare function V1ReviewInfoRequestFromJSON(json: any): V1ReviewInfoRequest; +export declare function V1ReviewInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewInfoRequest; +export declare function V1ReviewInfoRequestToJSON(value?: V1ReviewInfoRequest | null): any; diff --git a/dist/models/V1ReviewInfoRequest.js b/dist/models/V1ReviewInfoRequest.js new file mode 100644 index 0000000..490819e --- /dev/null +++ b/dist/models/V1ReviewInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReviewInfoRequest = instanceOfV1ReviewInfoRequest; +exports.V1ReviewInfoRequestFromJSON = V1ReviewInfoRequestFromJSON; +exports.V1ReviewInfoRequestFromJSONTyped = V1ReviewInfoRequestFromJSONTyped; +exports.V1ReviewInfoRequestToJSON = V1ReviewInfoRequestToJSON; +/** + * Check if a given object implements the V1ReviewInfoRequest interface. + */ +function instanceOfV1ReviewInfoRequest(value) { + if (!('review_id' in value) || value['review_id'] === undefined) + return false; + return true; +} +function V1ReviewInfoRequestFromJSON(json) { + return V1ReviewInfoRequestFromJSONTyped(json, false); +} +function V1ReviewInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'review_id': json['review_id'], + }; +} +function V1ReviewInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'review_id': value['review_id'], + }; +} diff --git a/dist/models/V1ReviewInfoResponse.d.ts b/dist/models/V1ReviewInfoResponse.d.ts new file mode 100644 index 0000000..a2d20de --- /dev/null +++ b/dist/models/V1ReviewInfoResponse.d.ts @@ -0,0 +1,124 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewInfoResponseVideo } from './ReviewInfoResponseVideo'; +import type { ReviewInfoResponsePhoto } from './ReviewInfoResponsePhoto'; +/** + * + * @export + * @interface V1ReviewInfoResponse + */ +export interface V1ReviewInfoResponse { + /** + * Количество комментариев к отзыву. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + comments_amount?: number; + /** + * Количество дизлайков на отзыве. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + dislikes_amount?: number; + /** + * Идентификатор отзыва. + * @type {string} + * @memberof V1ReviewInfoResponse + */ + id?: string; + /** + * `true`, если отзыв участвует в подсчёте рейтинга. + * + * @type {boolean} + * @memberof V1ReviewInfoResponse + */ + is_rating_participant?: boolean; + /** + * Количество лайков на отзыве. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + likes_amount?: number; + /** + * Статус заказа, на который покупатель оставил отзыв: + * - `DELIVERED` — доставлен, + * - `CANCELLED` — отменён. + * + * @type {string} + * @memberof V1ReviewInfoResponse + */ + order_status?: string; + /** + * Информация об изображении. + * @type {Array} + * @memberof V1ReviewInfoResponse + */ + photos?: Array; + /** + * Количество изображений у отзыва. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + photos_amount?: number; + /** + * Дата публикации отзыва. + * @type {string} + * @memberof V1ReviewInfoResponse + */ + published_at?: string; + /** + * Оценка отзыва. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + rating?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + sku?: number; + /** + * Статус отзыва: + * - `UNPROCESSED` — не обработан, + * - `PROCESSED` — обработан. + * + * @type {string} + * @memberof V1ReviewInfoResponse + */ + status?: string; + /** + * Текст отзыва. + * @type {string} + * @memberof V1ReviewInfoResponse + */ + text?: string; + /** + * Информация о видео. + * @type {Array} + * @memberof V1ReviewInfoResponse + */ + videos?: Array; + /** + * Количество видео у отзыва. + * @type {number} + * @memberof V1ReviewInfoResponse + */ + videos_amount?: number; +} +/** + * Check if a given object implements the V1ReviewInfoResponse interface. + */ +export declare function instanceOfV1ReviewInfoResponse(value: object): value is V1ReviewInfoResponse; +export declare function V1ReviewInfoResponseFromJSON(json: any): V1ReviewInfoResponse; +export declare function V1ReviewInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewInfoResponse; +export declare function V1ReviewInfoResponseToJSON(value?: V1ReviewInfoResponse | null): any; diff --git a/dist/models/V1ReviewInfoResponse.js b/dist/models/V1ReviewInfoResponse.js new file mode 100644 index 0000000..8a770c3 --- /dev/null +++ b/dist/models/V1ReviewInfoResponse.js @@ -0,0 +1,74 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReviewInfoResponse = instanceOfV1ReviewInfoResponse; +exports.V1ReviewInfoResponseFromJSON = V1ReviewInfoResponseFromJSON; +exports.V1ReviewInfoResponseFromJSONTyped = V1ReviewInfoResponseFromJSONTyped; +exports.V1ReviewInfoResponseToJSON = V1ReviewInfoResponseToJSON; +const ReviewInfoResponseVideo_1 = require("./ReviewInfoResponseVideo"); +const ReviewInfoResponsePhoto_1 = require("./ReviewInfoResponsePhoto"); +/** + * Check if a given object implements the V1ReviewInfoResponse interface. + */ +function instanceOfV1ReviewInfoResponse(value) { + return true; +} +function V1ReviewInfoResponseFromJSON(json) { + return V1ReviewInfoResponseFromJSONTyped(json, false); +} +function V1ReviewInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comments_amount': json['comments_amount'] == null ? undefined : json['comments_amount'], + 'dislikes_amount': json['dislikes_amount'] == null ? undefined : json['dislikes_amount'], + 'id': json['id'] == null ? undefined : json['id'], + 'is_rating_participant': json['is_rating_participant'] == null ? undefined : json['is_rating_participant'], + 'likes_amount': json['likes_amount'] == null ? undefined : json['likes_amount'], + 'order_status': json['order_status'] == null ? undefined : json['order_status'], + 'photos': json['photos'] == null ? undefined : (json['photos'].map(ReviewInfoResponsePhoto_1.ReviewInfoResponsePhotoFromJSON)), + 'photos_amount': json['photos_amount'] == null ? undefined : json['photos_amount'], + 'published_at': json['published_at'] == null ? undefined : json['published_at'], + 'rating': json['rating'] == null ? undefined : json['rating'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'status': json['status'] == null ? undefined : json['status'], + 'text': json['text'] == null ? undefined : json['text'], + 'videos': json['videos'] == null ? undefined : (json['videos'].map(ReviewInfoResponseVideo_1.ReviewInfoResponseVideoFromJSON)), + 'videos_amount': json['videos_amount'] == null ? undefined : json['videos_amount'], + }; +} +function V1ReviewInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'comments_amount': value['comments_amount'], + 'dislikes_amount': value['dislikes_amount'], + 'id': value['id'], + 'is_rating_participant': value['is_rating_participant'], + 'likes_amount': value['likes_amount'], + 'order_status': value['order_status'], + 'photos': value['photos'] == null ? undefined : (value['photos'].map(ReviewInfoResponsePhoto_1.ReviewInfoResponsePhotoToJSON)), + 'photos_amount': value['photos_amount'], + 'published_at': value['published_at'], + 'rating': value['rating'], + 'sku': value['sku'], + 'status': value['status'], + 'text': value['text'], + 'videos': value['videos'] == null ? undefined : (value['videos'].map(ReviewInfoResponseVideo_1.ReviewInfoResponseVideoToJSON)), + 'videos_amount': value['videos_amount'], + }; +} diff --git a/dist/models/V1ReviewListRequest.d.ts b/dist/models/V1ReviewListRequest.d.ts new file mode 100644 index 0000000..0671f82 --- /dev/null +++ b/dist/models/V1ReviewListRequest.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1ReviewListRequest + */ +export interface V1ReviewListRequest { + /** + * Идентификатор последнего отзыва на странице. + * @type {string} + * @memberof V1ReviewListRequest + */ + last_id?: string; + /** + * Количество отзывов в ответе. Минимум — 20, максимум — 100. + * @type {number} + * @memberof V1ReviewListRequest + */ + limit: number; + /** + * Направление сортировки: + * - `ASC` — по возрастанию, + * - `DESC` — по убыванию. + * + * @type {string} + * @memberof V1ReviewListRequest + */ + sort_dir?: string; + /** + * Статусы отзывов: + * - `ALL` — все, + * - `UNPROCESSED` — необработанные, + * - `PROCESSED` — обработанные. + * + * @type {string} + * @memberof V1ReviewListRequest + */ + status?: string; +} +/** + * Check if a given object implements the V1ReviewListRequest interface. + */ +export declare function instanceOfV1ReviewListRequest(value: object): value is V1ReviewListRequest; +export declare function V1ReviewListRequestFromJSON(json: any): V1ReviewListRequest; +export declare function V1ReviewListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewListRequest; +export declare function V1ReviewListRequestToJSON(value?: V1ReviewListRequest | null): any; diff --git a/dist/models/V1ReviewListRequest.js b/dist/models/V1ReviewListRequest.js new file mode 100644 index 0000000..cadfa94 --- /dev/null +++ b/dist/models/V1ReviewListRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReviewListRequest = instanceOfV1ReviewListRequest; +exports.V1ReviewListRequestFromJSON = V1ReviewListRequestFromJSON; +exports.V1ReviewListRequestFromJSONTyped = V1ReviewListRequestFromJSONTyped; +exports.V1ReviewListRequestToJSON = V1ReviewListRequestToJSON; +/** + * Check if a given object implements the V1ReviewListRequest interface. + */ +function instanceOfV1ReviewListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1ReviewListRequestFromJSON(json) { + return V1ReviewListRequestFromJSONTyped(json, false); +} +function V1ReviewListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : json['sort_dir'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V1ReviewListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_dir': value['sort_dir'], + 'status': value['status'], + }; +} diff --git a/dist/models/V1ReviewListResponse.d.ts b/dist/models/V1ReviewListResponse.d.ts new file mode 100644 index 0000000..02b68d7 --- /dev/null +++ b/dist/models/V1ReviewListResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReviewListResponseReview } from './ReviewListResponseReview'; +/** + * + * @export + * @interface V1ReviewListResponse + */ +export interface V1ReviewListResponse { + /** + * `true`, если в ответе вернули не все отзывы. + * + * @type {boolean} + * @memberof V1ReviewListResponse + */ + has_next?: boolean; + /** + * Идентификатор последнего отзыва на странице. + * @type {string} + * @memberof V1ReviewListResponse + */ + last_id?: string; + /** + * Информация об отзыве. + * @type {Array} + * @memberof V1ReviewListResponse + */ + reviews?: Array; +} +/** + * Check if a given object implements the V1ReviewListResponse interface. + */ +export declare function instanceOfV1ReviewListResponse(value: object): value is V1ReviewListResponse; +export declare function V1ReviewListResponseFromJSON(json: any): V1ReviewListResponse; +export declare function V1ReviewListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ReviewListResponse; +export declare function V1ReviewListResponseToJSON(value?: V1ReviewListResponse | null): any; diff --git a/dist/models/V1ReviewListResponse.js b/dist/models/V1ReviewListResponse.js new file mode 100644 index 0000000..b93ce7a --- /dev/null +++ b/dist/models/V1ReviewListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1ReviewListResponse = instanceOfV1ReviewListResponse; +exports.V1ReviewListResponseFromJSON = V1ReviewListResponseFromJSON; +exports.V1ReviewListResponseFromJSONTyped = V1ReviewListResponseFromJSONTyped; +exports.V1ReviewListResponseToJSON = V1ReviewListResponseToJSON; +const ReviewListResponseReview_1 = require("./ReviewListResponseReview"); +/** + * Check if a given object implements the V1ReviewListResponse interface. + */ +function instanceOfV1ReviewListResponse(value) { + return true; +} +function V1ReviewListResponseFromJSON(json) { + return V1ReviewListResponseFromJSONTyped(json, false); +} +function V1ReviewListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'reviews': json['reviews'] == null ? undefined : (json['reviews'].map(ReviewListResponseReview_1.ReviewListResponseReviewFromJSON)), + }; +} +function V1ReviewListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'last_id': value['last_id'], + 'reviews': value['reviews'] == null ? undefined : (value['reviews'].map(ReviewListResponseReview_1.ReviewListResponseReviewToJSON)), + }; +} diff --git a/dist/models/V1RolesByTokenResponse.d.ts b/dist/models/V1RolesByTokenResponse.d.ts new file mode 100644 index 0000000..2d85d90 --- /dev/null +++ b/dist/models/V1RolesByTokenResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RolesByTokenResponseRoles } from './RolesByTokenResponseRoles'; +/** + * + * @export + * @interface V1RolesByTokenResponse + */ +export interface V1RolesByTokenResponse { + /** + * Дата истечения срока действия ключа. + * @type {string} + * @memberof V1RolesByTokenResponse + */ + expires_at?: string; + /** + * Информация о доступных ролях и методах. + * @type {Array} + * @memberof V1RolesByTokenResponse + */ + roles?: Array; +} +/** + * Check if a given object implements the V1RolesByTokenResponse interface. + */ +export declare function instanceOfV1RolesByTokenResponse(value: object): value is V1RolesByTokenResponse; +export declare function V1RolesByTokenResponseFromJSON(json: any): V1RolesByTokenResponse; +export declare function V1RolesByTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1RolesByTokenResponse; +export declare function V1RolesByTokenResponseToJSON(value?: V1RolesByTokenResponse | null): any; diff --git a/dist/models/V1RolesByTokenResponse.js b/dist/models/V1RolesByTokenResponse.js new file mode 100644 index 0000000..d928059 --- /dev/null +++ b/dist/models/V1RolesByTokenResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1RolesByTokenResponse = instanceOfV1RolesByTokenResponse; +exports.V1RolesByTokenResponseFromJSON = V1RolesByTokenResponseFromJSON; +exports.V1RolesByTokenResponseFromJSONTyped = V1RolesByTokenResponseFromJSONTyped; +exports.V1RolesByTokenResponseToJSON = V1RolesByTokenResponseToJSON; +const RolesByTokenResponseRoles_1 = require("./RolesByTokenResponseRoles"); +/** + * Check if a given object implements the V1RolesByTokenResponse interface. + */ +function instanceOfV1RolesByTokenResponse(value) { + return true; +} +function V1RolesByTokenResponseFromJSON(json) { + return V1RolesByTokenResponseFromJSONTyped(json, false); +} +function V1RolesByTokenResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], + 'roles': json['roles'] == null ? undefined : (json['roles'].map(RolesByTokenResponseRoles_1.RolesByTokenResponseRolesFromJSON)), + }; +} +function V1RolesByTokenResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'expires_at': value['expires_at'], + 'roles': value['roles'] == null ? undefined : (value['roles'].map(RolesByTokenResponseRoles_1.RolesByTokenResponseRolesToJSON)), + }; +} diff --git a/dist/models/V1SearchAttributeValuesRequest.d.ts b/dist/models/V1SearchAttributeValuesRequest.d.ts new file mode 100644 index 0000000..08501a4 --- /dev/null +++ b/dist/models/V1SearchAttributeValuesRequest.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SearchAttributeValuesRequest + */ +export interface V1SearchAttributeValuesRequest { + /** + * Идентификатор характеристики. Можно получить с помощью метода [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes). + * @type {number} + * @memberof V1SearchAttributeValuesRequest + */ + attribute_id: number; + /** + * Идентификатор категории. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1SearchAttributeValuesRequest + */ + description_category_id: number; + /** + * Количество значений в ответе: + * - максимум — 100, + * - минимум — 1. + * + * @type {number} + * @memberof V1SearchAttributeValuesRequest + */ + limit: number; + /** + * Идентификатор типа товара. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * @type {number} + * @memberof V1SearchAttributeValuesRequest + */ + type_id: number; + /** + * Значение, по которому система будет искать справочные значения. Минимум — 2 символа. + * @type {string} + * @memberof V1SearchAttributeValuesRequest + */ + value: string; +} +/** + * Check if a given object implements the V1SearchAttributeValuesRequest interface. + */ +export declare function instanceOfV1SearchAttributeValuesRequest(value: object): value is V1SearchAttributeValuesRequest; +export declare function V1SearchAttributeValuesRequestFromJSON(json: any): V1SearchAttributeValuesRequest; +export declare function V1SearchAttributeValuesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchAttributeValuesRequest; +export declare function V1SearchAttributeValuesRequestToJSON(value?: V1SearchAttributeValuesRequest | null): any; diff --git a/dist/models/V1SearchAttributeValuesRequest.js b/dist/models/V1SearchAttributeValuesRequest.js new file mode 100644 index 0000000..40e0249 --- /dev/null +++ b/dist/models/V1SearchAttributeValuesRequest.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SearchAttributeValuesRequest = instanceOfV1SearchAttributeValuesRequest; +exports.V1SearchAttributeValuesRequestFromJSON = V1SearchAttributeValuesRequestFromJSON; +exports.V1SearchAttributeValuesRequestFromJSONTyped = V1SearchAttributeValuesRequestFromJSONTyped; +exports.V1SearchAttributeValuesRequestToJSON = V1SearchAttributeValuesRequestToJSON; +/** + * Check if a given object implements the V1SearchAttributeValuesRequest interface. + */ +function instanceOfV1SearchAttributeValuesRequest(value) { + if (!('attribute_id' in value) || value['attribute_id'] === undefined) + return false; + if (!('description_category_id' in value) || value['description_category_id'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('type_id' in value) || value['type_id'] === undefined) + return false; + if (!('value' in value) || value['value'] === undefined) + return false; + return true; +} +function V1SearchAttributeValuesRequestFromJSON(json) { + return V1SearchAttributeValuesRequestFromJSONTyped(json, false); +} +function V1SearchAttributeValuesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attribute_id': json['attribute_id'], + 'description_category_id': json['description_category_id'], + 'limit': json['limit'], + 'type_id': json['type_id'], + 'value': json['value'], + }; +} +function V1SearchAttributeValuesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'attribute_id': value['attribute_id'], + 'description_category_id': value['description_category_id'], + 'limit': value['limit'], + 'type_id': value['type_id'], + 'value': value['value'], + }; +} diff --git a/dist/models/V1SearchAttributeValuesResponse.d.ts b/dist/models/V1SearchAttributeValuesResponse.d.ts new file mode 100644 index 0000000..f7324ba --- /dev/null +++ b/dist/models/V1SearchAttributeValuesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SearchAttributeValuesResponseValue } from './SearchAttributeValuesResponseValue'; +/** + * + * @export + * @interface V1SearchAttributeValuesResponse + */ +export interface V1SearchAttributeValuesResponse { + /** + * Значения характеристики. + * @type {Array} + * @memberof V1SearchAttributeValuesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1SearchAttributeValuesResponse interface. + */ +export declare function instanceOfV1SearchAttributeValuesResponse(value: object): value is V1SearchAttributeValuesResponse; +export declare function V1SearchAttributeValuesResponseFromJSON(json: any): V1SearchAttributeValuesResponse; +export declare function V1SearchAttributeValuesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchAttributeValuesResponse; +export declare function V1SearchAttributeValuesResponseToJSON(value?: V1SearchAttributeValuesResponse | null): any; diff --git a/dist/models/V1SearchAttributeValuesResponse.js b/dist/models/V1SearchAttributeValuesResponse.js new file mode 100644 index 0000000..8fb21d3 --- /dev/null +++ b/dist/models/V1SearchAttributeValuesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SearchAttributeValuesResponse = instanceOfV1SearchAttributeValuesResponse; +exports.V1SearchAttributeValuesResponseFromJSON = V1SearchAttributeValuesResponseFromJSON; +exports.V1SearchAttributeValuesResponseFromJSONTyped = V1SearchAttributeValuesResponseFromJSONTyped; +exports.V1SearchAttributeValuesResponseToJSON = V1SearchAttributeValuesResponseToJSON; +const SearchAttributeValuesResponseValue_1 = require("./SearchAttributeValuesResponseValue"); +/** + * Check if a given object implements the V1SearchAttributeValuesResponse interface. + */ +function instanceOfV1SearchAttributeValuesResponse(value) { + return true; +} +function V1SearchAttributeValuesResponseFromJSON(json) { + return V1SearchAttributeValuesResponseFromJSONTyped(json, false); +} +function V1SearchAttributeValuesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(SearchAttributeValuesResponseValue_1.SearchAttributeValuesResponseValueFromJSON)), + }; +} +function V1SearchAttributeValuesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(SearchAttributeValuesResponseValue_1.SearchAttributeValuesResponseValueToJSON)), + }; +} diff --git a/dist/models/V1SearchQueriesTextRequest.d.ts b/dist/models/V1SearchQueriesTextRequest.d.ts new file mode 100644 index 0000000..e749bc3 --- /dev/null +++ b/dist/models/V1SearchQueriesTextRequest.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SearchQueriesTextRequestSortDir } from './SearchQueriesTextRequestSortDir'; +import type { SearchQueriesTextRequestSortBy } from './SearchQueriesTextRequestSortBy'; +/** + * + * @export + * @interface V1SearchQueriesTextRequest + */ +export interface V1SearchQueriesTextRequest { + /** + * Количество значений на странице. + * @type {string} + * @memberof V1SearchQueriesTextRequest + */ + limit: string; + /** + * Количество элементов, которое будет пропущено в ответе. + * @type {string} + * @memberof V1SearchQueriesTextRequest + */ + offset: string; + /** + * + * @type {SearchQueriesTextRequestSortBy} + * @memberof V1SearchQueriesTextRequest + */ + sort_by?: SearchQueriesTextRequestSortBy; + /** + * + * @type {SearchQueriesTextRequestSortDir} + * @memberof V1SearchQueriesTextRequest + */ + sort_dir?: SearchQueriesTextRequestSortDir; + /** + * Поиск по тексту. + * @type {string} + * @memberof V1SearchQueriesTextRequest + */ + text: string; +} +/** + * Check if a given object implements the V1SearchQueriesTextRequest interface. + */ +export declare function instanceOfV1SearchQueriesTextRequest(value: object): value is V1SearchQueriesTextRequest; +export declare function V1SearchQueriesTextRequestFromJSON(json: any): V1SearchQueriesTextRequest; +export declare function V1SearchQueriesTextRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTextRequest; +export declare function V1SearchQueriesTextRequestToJSON(value?: V1SearchQueriesTextRequest | null): any; diff --git a/dist/models/V1SearchQueriesTextRequest.js b/dist/models/V1SearchQueriesTextRequest.js new file mode 100644 index 0000000..16ef53d --- /dev/null +++ b/dist/models/V1SearchQueriesTextRequest.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SearchQueriesTextRequest = instanceOfV1SearchQueriesTextRequest; +exports.V1SearchQueriesTextRequestFromJSON = V1SearchQueriesTextRequestFromJSON; +exports.V1SearchQueriesTextRequestFromJSONTyped = V1SearchQueriesTextRequestFromJSONTyped; +exports.V1SearchQueriesTextRequestToJSON = V1SearchQueriesTextRequestToJSON; +const SearchQueriesTextRequestSortDir_1 = require("./SearchQueriesTextRequestSortDir"); +const SearchQueriesTextRequestSortBy_1 = require("./SearchQueriesTextRequestSortBy"); +/** + * Check if a given object implements the V1SearchQueriesTextRequest interface. + */ +function instanceOfV1SearchQueriesTextRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('offset' in value) || value['offset'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + return true; +} +function V1SearchQueriesTextRequestFromJSON(json) { + return V1SearchQueriesTextRequestFromJSONTyped(json, false); +} +function V1SearchQueriesTextRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'offset': json['offset'], + 'sort_by': json['sort_by'] == null ? undefined : (0, SearchQueriesTextRequestSortBy_1.SearchQueriesTextRequestSortByFromJSON)(json['sort_by']), + 'sort_dir': json['sort_dir'] == null ? undefined : (0, SearchQueriesTextRequestSortDir_1.SearchQueriesTextRequestSortDirFromJSON)(json['sort_dir']), + 'text': json['text'], + }; +} +function V1SearchQueriesTextRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + 'sort_by': (0, SearchQueriesTextRequestSortBy_1.SearchQueriesTextRequestSortByToJSON)(value['sort_by']), + 'sort_dir': (0, SearchQueriesTextRequestSortDir_1.SearchQueriesTextRequestSortDirToJSON)(value['sort_dir']), + 'text': value['text'], + }; +} diff --git a/dist/models/V1SearchQueriesTextResponse.d.ts b/dist/models/V1SearchQueriesTextResponse.d.ts new file mode 100644 index 0000000..f21b6e1 --- /dev/null +++ b/dist/models/V1SearchQueriesTextResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SearchQueriesTextResponseSearchQuery } from './V1SearchQueriesTextResponseSearchQuery'; +/** + * + * @export + * @interface V1SearchQueriesTextResponse + */ +export interface V1SearchQueriesTextResponse { + /** + * Количество поисковых запросов на странице. + * @type {string} + * @memberof V1SearchQueriesTextResponse + */ + offset?: string; + /** + * Информация о поисковых запросах. + * @type {Array} + * @memberof V1SearchQueriesTextResponse + */ + search_queries?: Array; + /** + * Общее количество поисковых запросов. + * @type {string} + * @memberof V1SearchQueriesTextResponse + */ + total?: string; +} +/** + * Check if a given object implements the V1SearchQueriesTextResponse interface. + */ +export declare function instanceOfV1SearchQueriesTextResponse(value: object): value is V1SearchQueriesTextResponse; +export declare function V1SearchQueriesTextResponseFromJSON(json: any): V1SearchQueriesTextResponse; +export declare function V1SearchQueriesTextResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTextResponse; +export declare function V1SearchQueriesTextResponseToJSON(value?: V1SearchQueriesTextResponse | null): any; diff --git a/dist/models/V1SearchQueriesTextResponse.js b/dist/models/V1SearchQueriesTextResponse.js new file mode 100644 index 0000000..fe84949 --- /dev/null +++ b/dist/models/V1SearchQueriesTextResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SearchQueriesTextResponse = instanceOfV1SearchQueriesTextResponse; +exports.V1SearchQueriesTextResponseFromJSON = V1SearchQueriesTextResponseFromJSON; +exports.V1SearchQueriesTextResponseFromJSONTyped = V1SearchQueriesTextResponseFromJSONTyped; +exports.V1SearchQueriesTextResponseToJSON = V1SearchQueriesTextResponseToJSON; +const V1SearchQueriesTextResponseSearchQuery_1 = require("./V1SearchQueriesTextResponseSearchQuery"); +/** + * Check if a given object implements the V1SearchQueriesTextResponse interface. + */ +function instanceOfV1SearchQueriesTextResponse(value) { + return true; +} +function V1SearchQueriesTextResponseFromJSON(json) { + return V1SearchQueriesTextResponseFromJSONTyped(json, false); +} +function V1SearchQueriesTextResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offset': json['offset'] == null ? undefined : json['offset'], + 'search_queries': json['search_queries'] == null ? undefined : (json['search_queries'].map(V1SearchQueriesTextResponseSearchQuery_1.V1SearchQueriesTextResponseSearchQueryFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V1SearchQueriesTextResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'offset': value['offset'], + 'search_queries': value['search_queries'] == null ? undefined : (value['search_queries'].map(V1SearchQueriesTextResponseSearchQuery_1.V1SearchQueriesTextResponseSearchQueryToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/V1SearchQueriesTextResponseSearchQuery.d.ts b/dist/models/V1SearchQueriesTextResponseSearchQuery.d.ts new file mode 100644 index 0000000..aa293fb --- /dev/null +++ b/dist/models/V1SearchQueriesTextResponseSearchQuery.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SearchQueriesTextResponseSearchQuery + */ +export interface V1SearchQueriesTextResponseSearchQuery { + /** + * Количество покупателей, которые добавили хотя бы 1 товар в корзину. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + add_to_cart?: number; + /** + * Средняя цена товаров в рублях. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + avg_price?: number; + /** + * Количество покупателей, которые искали товар по этому запросу. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + client_count?: number; + /** + * Процент покупателей, которые добавили хотя бы 1 товар в корзину. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + conversion_to_cart?: number; + /** + * Количество просмотров по товарам. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + items_views?: number; + /** + * Поисковый запрос. + * @type {string} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + query?: string; + /** + * Среднее количество продавцов, чьи товары посмотрели покупатели по этому запросу. + * @type {number} + * @memberof V1SearchQueriesTextResponseSearchQuery + */ + sellers_count?: number; +} +/** + * Check if a given object implements the V1SearchQueriesTextResponseSearchQuery interface. + */ +export declare function instanceOfV1SearchQueriesTextResponseSearchQuery(value: object): value is V1SearchQueriesTextResponseSearchQuery; +export declare function V1SearchQueriesTextResponseSearchQueryFromJSON(json: any): V1SearchQueriesTextResponseSearchQuery; +export declare function V1SearchQueriesTextResponseSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTextResponseSearchQuery; +export declare function V1SearchQueriesTextResponseSearchQueryToJSON(value?: V1SearchQueriesTextResponseSearchQuery | null): any; diff --git a/dist/models/V1SearchQueriesTextResponseSearchQuery.js b/dist/models/V1SearchQueriesTextResponseSearchQuery.js new file mode 100644 index 0000000..0a02b92 --- /dev/null +++ b/dist/models/V1SearchQueriesTextResponseSearchQuery.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SearchQueriesTextResponseSearchQuery = instanceOfV1SearchQueriesTextResponseSearchQuery; +exports.V1SearchQueriesTextResponseSearchQueryFromJSON = V1SearchQueriesTextResponseSearchQueryFromJSON; +exports.V1SearchQueriesTextResponseSearchQueryFromJSONTyped = V1SearchQueriesTextResponseSearchQueryFromJSONTyped; +exports.V1SearchQueriesTextResponseSearchQueryToJSON = V1SearchQueriesTextResponseSearchQueryToJSON; +/** + * Check if a given object implements the V1SearchQueriesTextResponseSearchQuery interface. + */ +function instanceOfV1SearchQueriesTextResponseSearchQuery(value) { + return true; +} +function V1SearchQueriesTextResponseSearchQueryFromJSON(json) { + return V1SearchQueriesTextResponseSearchQueryFromJSONTyped(json, false); +} +function V1SearchQueriesTextResponseSearchQueryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'add_to_cart': json['add_to_cart'] == null ? undefined : json['add_to_cart'], + 'avg_price': json['avg_price'] == null ? undefined : json['avg_price'], + 'client_count': json['client_count'] == null ? undefined : json['client_count'], + 'conversion_to_cart': json['conversion_to_cart'] == null ? undefined : json['conversion_to_cart'], + 'items_views': json['items_views'] == null ? undefined : json['items_views'], + 'query': json['query'] == null ? undefined : json['query'], + 'sellers_count': json['sellers_count'] == null ? undefined : json['sellers_count'], + }; +} +function V1SearchQueriesTextResponseSearchQueryToJSON(value) { + if (value == null) { + return value; + } + return { + 'add_to_cart': value['add_to_cart'], + 'avg_price': value['avg_price'], + 'client_count': value['client_count'], + 'conversion_to_cart': value['conversion_to_cart'], + 'items_views': value['items_views'], + 'query': value['query'], + 'sellers_count': value['sellers_count'], + }; +} diff --git a/dist/models/V1SearchQueriesTopRequest.d.ts b/dist/models/V1SearchQueriesTopRequest.d.ts new file mode 100644 index 0000000..80260d9 --- /dev/null +++ b/dist/models/V1SearchQueriesTopRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SearchQueriesTopRequest + */ +export interface V1SearchQueriesTopRequest { + /** + * Количество значений на странице. + * @type {string} + * @memberof V1SearchQueriesTopRequest + */ + limit: string; + /** + * Количество элементов, которое будет пропущено в ответе. + * @type {string} + * @memberof V1SearchQueriesTopRequest + */ + offset: string; +} +/** + * Check if a given object implements the V1SearchQueriesTopRequest interface. + */ +export declare function instanceOfV1SearchQueriesTopRequest(value: object): value is V1SearchQueriesTopRequest; +export declare function V1SearchQueriesTopRequestFromJSON(json: any): V1SearchQueriesTopRequest; +export declare function V1SearchQueriesTopRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTopRequest; +export declare function V1SearchQueriesTopRequestToJSON(value?: V1SearchQueriesTopRequest | null): any; diff --git a/dist/models/V1SearchQueriesTopRequest.js b/dist/models/V1SearchQueriesTopRequest.js new file mode 100644 index 0000000..fff1ed7 --- /dev/null +++ b/dist/models/V1SearchQueriesTopRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SearchQueriesTopRequest = instanceOfV1SearchQueriesTopRequest; +exports.V1SearchQueriesTopRequestFromJSON = V1SearchQueriesTopRequestFromJSON; +exports.V1SearchQueriesTopRequestFromJSONTyped = V1SearchQueriesTopRequestFromJSONTyped; +exports.V1SearchQueriesTopRequestToJSON = V1SearchQueriesTopRequestToJSON; +/** + * Check if a given object implements the V1SearchQueriesTopRequest interface. + */ +function instanceOfV1SearchQueriesTopRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('offset' in value) || value['offset'] === undefined) + return false; + return true; +} +function V1SearchQueriesTopRequestFromJSON(json) { + return V1SearchQueriesTopRequestFromJSONTyped(json, false); +} +function V1SearchQueriesTopRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'offset': json['offset'], + }; +} +function V1SearchQueriesTopRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/V1SearchQueriesTopResponse.d.ts b/dist/models/V1SearchQueriesTopResponse.d.ts new file mode 100644 index 0000000..5b3baa9 --- /dev/null +++ b/dist/models/V1SearchQueriesTopResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SearchQueriesTopResponseSearchQuery } from './V1SearchQueriesTopResponseSearchQuery'; +/** + * + * @export + * @interface V1SearchQueriesTopResponse + */ +export interface V1SearchQueriesTopResponse { + /** + * Количество поисковых запросов на странице. + * @type {string} + * @memberof V1SearchQueriesTopResponse + */ + offset?: string; + /** + * Информация о поисковых запросах. + * @type {Array} + * @memberof V1SearchQueriesTopResponse + */ + search_queries?: Array; + /** + * Общее количество поисковых запросов. + * @type {string} + * @memberof V1SearchQueriesTopResponse + */ + total?: string; +} +/** + * Check if a given object implements the V1SearchQueriesTopResponse interface. + */ +export declare function instanceOfV1SearchQueriesTopResponse(value: object): value is V1SearchQueriesTopResponse; +export declare function V1SearchQueriesTopResponseFromJSON(json: any): V1SearchQueriesTopResponse; +export declare function V1SearchQueriesTopResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTopResponse; +export declare function V1SearchQueriesTopResponseToJSON(value?: V1SearchQueriesTopResponse | null): any; diff --git a/dist/models/V1SearchQueriesTopResponse.js b/dist/models/V1SearchQueriesTopResponse.js new file mode 100644 index 0000000..21190d8 --- /dev/null +++ b/dist/models/V1SearchQueriesTopResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SearchQueriesTopResponse = instanceOfV1SearchQueriesTopResponse; +exports.V1SearchQueriesTopResponseFromJSON = V1SearchQueriesTopResponseFromJSON; +exports.V1SearchQueriesTopResponseFromJSONTyped = V1SearchQueriesTopResponseFromJSONTyped; +exports.V1SearchQueriesTopResponseToJSON = V1SearchQueriesTopResponseToJSON; +const V1SearchQueriesTopResponseSearchQuery_1 = require("./V1SearchQueriesTopResponseSearchQuery"); +/** + * Check if a given object implements the V1SearchQueriesTopResponse interface. + */ +function instanceOfV1SearchQueriesTopResponse(value) { + return true; +} +function V1SearchQueriesTopResponseFromJSON(json) { + return V1SearchQueriesTopResponseFromJSONTyped(json, false); +} +function V1SearchQueriesTopResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offset': json['offset'] == null ? undefined : json['offset'], + 'search_queries': json['search_queries'] == null ? undefined : (json['search_queries'].map(V1SearchQueriesTopResponseSearchQuery_1.V1SearchQueriesTopResponseSearchQueryFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V1SearchQueriesTopResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'offset': value['offset'], + 'search_queries': value['search_queries'] == null ? undefined : (value['search_queries'].map(V1SearchQueriesTopResponseSearchQuery_1.V1SearchQueriesTopResponseSearchQueryToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/V1SearchQueriesTopResponseSearchQuery.d.ts b/dist/models/V1SearchQueriesTopResponseSearchQuery.d.ts new file mode 100644 index 0000000..b860845 --- /dev/null +++ b/dist/models/V1SearchQueriesTopResponseSearchQuery.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SearchQueriesTopResponseSearchQuery + */ +export interface V1SearchQueriesTopResponseSearchQuery { + /** + * Количество покупателей, которые добавили хотя бы 1 товар в корзину. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + add_to_cart?: number; + /** + * Средняя цена товаров в рублях. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + avg_price?: number; + /** + * Количество покупателей, которые искали товар по этому запросу. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + client_count?: number; + /** + * Процент покупателей, которые добавили хотя бы 1 товар в корзину. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + conversion_to_cart?: number; + /** + * Количество просмотров по товарам. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + items_views?: number; + /** + * Поисковый запрос. + * @type {string} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + query?: string; + /** + * Среднее количество продавцов, чьи товары посмотрели покупатели по этому запросу. + * @type {number} + * @memberof V1SearchQueriesTopResponseSearchQuery + */ + sellers_count?: number; +} +/** + * Check if a given object implements the V1SearchQueriesTopResponseSearchQuery interface. + */ +export declare function instanceOfV1SearchQueriesTopResponseSearchQuery(value: object): value is V1SearchQueriesTopResponseSearchQuery; +export declare function V1SearchQueriesTopResponseSearchQueryFromJSON(json: any): V1SearchQueriesTopResponseSearchQuery; +export declare function V1SearchQueriesTopResponseSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SearchQueriesTopResponseSearchQuery; +export declare function V1SearchQueriesTopResponseSearchQueryToJSON(value?: V1SearchQueriesTopResponseSearchQuery | null): any; diff --git a/dist/models/V1SearchQueriesTopResponseSearchQuery.js b/dist/models/V1SearchQueriesTopResponseSearchQuery.js new file mode 100644 index 0000000..787a62e --- /dev/null +++ b/dist/models/V1SearchQueriesTopResponseSearchQuery.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SearchQueriesTopResponseSearchQuery = instanceOfV1SearchQueriesTopResponseSearchQuery; +exports.V1SearchQueriesTopResponseSearchQueryFromJSON = V1SearchQueriesTopResponseSearchQueryFromJSON; +exports.V1SearchQueriesTopResponseSearchQueryFromJSONTyped = V1SearchQueriesTopResponseSearchQueryFromJSONTyped; +exports.V1SearchQueriesTopResponseSearchQueryToJSON = V1SearchQueriesTopResponseSearchQueryToJSON; +/** + * Check if a given object implements the V1SearchQueriesTopResponseSearchQuery interface. + */ +function instanceOfV1SearchQueriesTopResponseSearchQuery(value) { + return true; +} +function V1SearchQueriesTopResponseSearchQueryFromJSON(json) { + return V1SearchQueriesTopResponseSearchQueryFromJSONTyped(json, false); +} +function V1SearchQueriesTopResponseSearchQueryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'add_to_cart': json['add_to_cart'] == null ? undefined : json['add_to_cart'], + 'avg_price': json['avg_price'] == null ? undefined : json['avg_price'], + 'client_count': json['client_count'] == null ? undefined : json['client_count'], + 'conversion_to_cart': json['conversion_to_cart'] == null ? undefined : json['conversion_to_cart'], + 'items_views': json['items_views'] == null ? undefined : json['items_views'], + 'query': json['query'] == null ? undefined : json['query'], + 'sellers_count': json['sellers_count'] == null ? undefined : json['sellers_count'], + }; +} +function V1SearchQueriesTopResponseSearchQueryToJSON(value) { + if (value == null) { + return value; + } + return { + 'add_to_cart': value['add_to_cart'], + 'avg_price': value['avg_price'], + 'client_count': value['client_count'], + 'conversion_to_cart': value['conversion_to_cart'], + 'items_views': value['items_views'], + 'query': value['query'], + 'sellers_count': value['sellers_count'], + }; +} diff --git a/dist/models/V1SellerActionsArchiveRequest.d.ts b/dist/models/V1SellerActionsArchiveRequest.d.ts new file mode 100644 index 0000000..0701974 --- /dev/null +++ b/dist/models/V1SellerActionsArchiveRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsArchiveRequest + */ +export interface V1SellerActionsArchiveRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsArchiveRequest + */ + action_id: number; +} +/** + * Check if a given object implements the V1SellerActionsArchiveRequest interface. + */ +export declare function instanceOfV1SellerActionsArchiveRequest(value: object): value is V1SellerActionsArchiveRequest; +export declare function V1SellerActionsArchiveRequestFromJSON(json: any): V1SellerActionsArchiveRequest; +export declare function V1SellerActionsArchiveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsArchiveRequest; +export declare function V1SellerActionsArchiveRequestToJSON(value?: V1SellerActionsArchiveRequest | null): any; diff --git a/dist/models/V1SellerActionsArchiveRequest.js b/dist/models/V1SellerActionsArchiveRequest.js new file mode 100644 index 0000000..eb1783a --- /dev/null +++ b/dist/models/V1SellerActionsArchiveRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsArchiveRequest = instanceOfV1SellerActionsArchiveRequest; +exports.V1SellerActionsArchiveRequestFromJSON = V1SellerActionsArchiveRequestFromJSON; +exports.V1SellerActionsArchiveRequestFromJSONTyped = V1SellerActionsArchiveRequestFromJSONTyped; +exports.V1SellerActionsArchiveRequestToJSON = V1SellerActionsArchiveRequestToJSON; +/** + * Check if a given object implements the V1SellerActionsArchiveRequest interface. + */ +function instanceOfV1SellerActionsArchiveRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + return true; +} +function V1SellerActionsArchiveRequestFromJSON(json) { + return V1SellerActionsArchiveRequestFromJSONTyped(json, false); +} +function V1SellerActionsArchiveRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + }; +} +function V1SellerActionsArchiveRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/models/V1SellerActionsChangeActivityRequest.d.ts b/dist/models/V1SellerActionsChangeActivityRequest.d.ts new file mode 100644 index 0000000..0ba6f9a --- /dev/null +++ b/dist/models/V1SellerActionsChangeActivityRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsChangeActivityRequest + */ +export interface V1SellerActionsChangeActivityRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsChangeActivityRequest + */ + action_id: number; + /** + * `true`, чтобы включить акцию. + * + * @type {boolean} + * @memberof V1SellerActionsChangeActivityRequest + */ + is_turn_on: boolean; +} +/** + * Check if a given object implements the V1SellerActionsChangeActivityRequest interface. + */ +export declare function instanceOfV1SellerActionsChangeActivityRequest(value: object): value is V1SellerActionsChangeActivityRequest; +export declare function V1SellerActionsChangeActivityRequestFromJSON(json: any): V1SellerActionsChangeActivityRequest; +export declare function V1SellerActionsChangeActivityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsChangeActivityRequest; +export declare function V1SellerActionsChangeActivityRequestToJSON(value?: V1SellerActionsChangeActivityRequest | null): any; diff --git a/dist/models/V1SellerActionsChangeActivityRequest.js b/dist/models/V1SellerActionsChangeActivityRequest.js new file mode 100644 index 0000000..b5fd544 --- /dev/null +++ b/dist/models/V1SellerActionsChangeActivityRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsChangeActivityRequest = instanceOfV1SellerActionsChangeActivityRequest; +exports.V1SellerActionsChangeActivityRequestFromJSON = V1SellerActionsChangeActivityRequestFromJSON; +exports.V1SellerActionsChangeActivityRequestFromJSONTyped = V1SellerActionsChangeActivityRequestFromJSONTyped; +exports.V1SellerActionsChangeActivityRequestToJSON = V1SellerActionsChangeActivityRequestToJSON; +/** + * Check if a given object implements the V1SellerActionsChangeActivityRequest interface. + */ +function instanceOfV1SellerActionsChangeActivityRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('is_turn_on' in value) || value['is_turn_on'] === undefined) + return false; + return true; +} +function V1SellerActionsChangeActivityRequestFromJSON(json) { + return V1SellerActionsChangeActivityRequestFromJSONTyped(json, false); +} +function V1SellerActionsChangeActivityRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'is_turn_on': json['is_turn_on'], + }; +} +function V1SellerActionsChangeActivityRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'is_turn_on': value['is_turn_on'], + }; +} diff --git a/dist/models/V1SellerActionsCreateDiscountRequest.d.ts b/dist/models/V1SellerActionsCreateDiscountRequest.d.ts new file mode 100644 index 0000000..6b32877 --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountRequest.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateDiscountRequest + */ +export interface V1SellerActionsCreateDiscountRequest { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountRequest + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountRequest + */ + date_start: string; + /** + * Минимальный процент скидки. + * @type {number} + * @memberof V1SellerActionsCreateDiscountRequest + */ + min_action_percent: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountRequest + */ + title?: string; +} +/** + * Check if a given object implements the V1SellerActionsCreateDiscountRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateDiscountRequest(value: object): value is V1SellerActionsCreateDiscountRequest; +export declare function V1SellerActionsCreateDiscountRequestFromJSON(json: any): V1SellerActionsCreateDiscountRequest; +export declare function V1SellerActionsCreateDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountRequest; +export declare function V1SellerActionsCreateDiscountRequestToJSON(value?: V1SellerActionsCreateDiscountRequest | null): any; diff --git a/dist/models/V1SellerActionsCreateDiscountRequest.js b/dist/models/V1SellerActionsCreateDiscountRequest.js new file mode 100644 index 0000000..5c7645b --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountRequest.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateDiscountRequest = instanceOfV1SellerActionsCreateDiscountRequest; +exports.V1SellerActionsCreateDiscountRequestFromJSON = V1SellerActionsCreateDiscountRequestFromJSON; +exports.V1SellerActionsCreateDiscountRequestFromJSONTyped = V1SellerActionsCreateDiscountRequestFromJSONTyped; +exports.V1SellerActionsCreateDiscountRequestToJSON = V1SellerActionsCreateDiscountRequestToJSON; +/** + * Check if a given object implements the V1SellerActionsCreateDiscountRequest interface. + */ +function instanceOfV1SellerActionsCreateDiscountRequest(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('min_action_percent' in value) || value['min_action_percent'] === undefined) + return false; + return true; +} +function V1SellerActionsCreateDiscountRequestFromJSON(json) { + return V1SellerActionsCreateDiscountRequestFromJSONTyped(json, false); +} +function V1SellerActionsCreateDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'min_action_percent': json['min_action_percent'], + 'title': json['title'] == null ? undefined : json['title'], + }; +} +function V1SellerActionsCreateDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'min_action_percent': value['min_action_percent'], + 'title': value['title'], + }; +} diff --git a/dist/models/V1SellerActionsCreateDiscountResponse.d.ts b/dist/models/V1SellerActionsCreateDiscountResponse.d.ts new file mode 100644 index 0000000..f7d3744 --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateDiscountResponse + */ +export interface V1SellerActionsCreateDiscountResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateDiscountResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateDiscountResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateDiscountResponse(value: object): value is V1SellerActionsCreateDiscountResponse; +export declare function V1SellerActionsCreateDiscountResponseFromJSON(json: any): V1SellerActionsCreateDiscountResponse; +export declare function V1SellerActionsCreateDiscountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountResponse; +export declare function V1SellerActionsCreateDiscountResponseToJSON(value?: V1SellerActionsCreateDiscountResponse | null): any; diff --git a/dist/models/V1SellerActionsCreateDiscountResponse.js b/dist/models/V1SellerActionsCreateDiscountResponse.js new file mode 100644 index 0000000..93b452e --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateDiscountResponse = instanceOfV1SellerActionsCreateDiscountResponse; +exports.V1SellerActionsCreateDiscountResponseFromJSON = V1SellerActionsCreateDiscountResponseFromJSON; +exports.V1SellerActionsCreateDiscountResponseFromJSONTyped = V1SellerActionsCreateDiscountResponseFromJSONTyped; +exports.V1SellerActionsCreateDiscountResponseToJSON = V1SellerActionsCreateDiscountResponseToJSON; +/** + * Check if a given object implements the V1SellerActionsCreateDiscountResponse interface. + */ +function instanceOfV1SellerActionsCreateDiscountResponse(value) { + return true; +} +function V1SellerActionsCreateDiscountResponseFromJSON(json) { + return V1SellerActionsCreateDiscountResponseFromJSONTyped(json, false); +} +function V1SellerActionsCreateDiscountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +function V1SellerActionsCreateDiscountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/models/V1SellerActionsCreateDiscountWithConditionRequest.d.ts b/dist/models/V1SellerActionsCreateDiscountWithConditionRequest.d.ts new file mode 100644 index 0000000..e9bd754 --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountWithConditionRequest.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum } from './V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsCreateDiscountWithConditionRequest + */ +export interface V1SellerActionsCreateDiscountWithConditionRequest { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + date_start: string; + /** + * + * @type {V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + discount_type: V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum; + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + discount_value: number; + /** + * Сумма заказа, с которой действует скидка. + * @type {number} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + min_order_amount: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateDiscountWithConditionRequest + */ + title?: string; +} +/** + * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateDiscountWithConditionRequest(value: object): value is V1SellerActionsCreateDiscountWithConditionRequest; +export declare function V1SellerActionsCreateDiscountWithConditionRequestFromJSON(json: any): V1SellerActionsCreateDiscountWithConditionRequest; +export declare function V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountWithConditionRequest; +export declare function V1SellerActionsCreateDiscountWithConditionRequestToJSON(value?: V1SellerActionsCreateDiscountWithConditionRequest | null): any; diff --git a/dist/models/V1SellerActionsCreateDiscountWithConditionRequest.js b/dist/models/V1SellerActionsCreateDiscountWithConditionRequest.js new file mode 100644 index 0000000..f7816ff --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountWithConditionRequest.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateDiscountWithConditionRequest = instanceOfV1SellerActionsCreateDiscountWithConditionRequest; +exports.V1SellerActionsCreateDiscountWithConditionRequestFromJSON = V1SellerActionsCreateDiscountWithConditionRequestFromJSON; +exports.V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped = V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped; +exports.V1SellerActionsCreateDiscountWithConditionRequestToJSON = V1SellerActionsCreateDiscountWithConditionRequestToJSON; +const V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum_1 = require("./V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum"); +/** + * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionRequest interface. + */ +function instanceOfV1SellerActionsCreateDiscountWithConditionRequest(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_type' in value) || value['discount_type'] === undefined) + return false; + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('min_order_amount' in value) || value['min_order_amount'] === undefined) + return false; + return true; +} +function V1SellerActionsCreateDiscountWithConditionRequestFromJSON(json) { + return V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped(json, false); +} +function V1SellerActionsCreateDiscountWithConditionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_type': (0, V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum_1.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON)(json['discount_type']), + 'discount_value': json['discount_value'], + 'min_order_amount': json['min_order_amount'], + 'title': json['title'] == null ? undefined : json['title'], + }; +} +function V1SellerActionsCreateDiscountWithConditionRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_type': (0, V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum_1.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON)(value['discount_type']), + 'discount_value': value['discount_value'], + 'min_order_amount': value['min_order_amount'], + 'title': value['title'], + }; +} diff --git a/dist/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.d.ts b/dist/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.d.ts new file mode 100644 index 0000000..01cd55b --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export declare const V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum: { + readonly PERCENT: "PERCENT"; + readonly CURRENCY: "CURRENCY"; +}; +export type V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum = typeof V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum[keyof typeof V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum]; +export declare function instanceOfV1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum(value: any): boolean; +export declare function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON(json: any): V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON(value?: V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum | null): any; diff --git a/dist/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.js b/dist/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.js new file mode 100644 index 0000000..daeae73 --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum = void 0; +exports.instanceOfV1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum = instanceOfV1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum; +exports.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON = V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON; +exports.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSONTyped = V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSONTyped; +exports.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON = V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON; +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +exports.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum = { + PERCENT: 'PERCENT', + CURRENCY: 'CURRENCY' +}; +function instanceOfV1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum(value) { + for (const key in exports.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum, key)) { + if (exports.V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSON(json) { + return V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSONTyped(json, false); +} +function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1SellerActionsCreateDiscountWithConditionResponse.d.ts b/dist/models/V1SellerActionsCreateDiscountWithConditionResponse.d.ts new file mode 100644 index 0000000..a24fc04 --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountWithConditionResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateDiscountWithConditionResponse + */ +export interface V1SellerActionsCreateDiscountWithConditionResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateDiscountWithConditionResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateDiscountWithConditionResponse(value: object): value is V1SellerActionsCreateDiscountWithConditionResponse; +export declare function V1SellerActionsCreateDiscountWithConditionResponseFromJSON(json: any): V1SellerActionsCreateDiscountWithConditionResponse; +export declare function V1SellerActionsCreateDiscountWithConditionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateDiscountWithConditionResponse; +export declare function V1SellerActionsCreateDiscountWithConditionResponseToJSON(value?: V1SellerActionsCreateDiscountWithConditionResponse | null): any; diff --git a/dist/models/V1SellerActionsCreateDiscountWithConditionResponse.js b/dist/models/V1SellerActionsCreateDiscountWithConditionResponse.js new file mode 100644 index 0000000..ac63f86 --- /dev/null +++ b/dist/models/V1SellerActionsCreateDiscountWithConditionResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateDiscountWithConditionResponse = instanceOfV1SellerActionsCreateDiscountWithConditionResponse; +exports.V1SellerActionsCreateDiscountWithConditionResponseFromJSON = V1SellerActionsCreateDiscountWithConditionResponseFromJSON; +exports.V1SellerActionsCreateDiscountWithConditionResponseFromJSONTyped = V1SellerActionsCreateDiscountWithConditionResponseFromJSONTyped; +exports.V1SellerActionsCreateDiscountWithConditionResponseToJSON = V1SellerActionsCreateDiscountWithConditionResponseToJSON; +/** + * Check if a given object implements the V1SellerActionsCreateDiscountWithConditionResponse interface. + */ +function instanceOfV1SellerActionsCreateDiscountWithConditionResponse(value) { + return true; +} +function V1SellerActionsCreateDiscountWithConditionResponseFromJSON(json) { + return V1SellerActionsCreateDiscountWithConditionResponseFromJSONTyped(json, false); +} +function V1SellerActionsCreateDiscountWithConditionResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +function V1SellerActionsCreateDiscountWithConditionResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/models/V1SellerActionsCreateInstallmentRequest.d.ts b/dist/models/V1SellerActionsCreateInstallmentRequest.d.ts new file mode 100644 index 0000000..36610b7 --- /dev/null +++ b/dist/models/V1SellerActionsCreateInstallmentRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateInstallmentRequest + */ +export interface V1SellerActionsCreateInstallmentRequest { + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateInstallmentRequest + */ + date_start: string; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateInstallmentRequest + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsCreateInstallmentRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateInstallmentRequest(value: object): value is V1SellerActionsCreateInstallmentRequest; +export declare function V1SellerActionsCreateInstallmentRequestFromJSON(json: any): V1SellerActionsCreateInstallmentRequest; +export declare function V1SellerActionsCreateInstallmentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateInstallmentRequest; +export declare function V1SellerActionsCreateInstallmentRequestToJSON(value?: V1SellerActionsCreateInstallmentRequest | null): any; diff --git a/dist/models/V1SellerActionsCreateInstallmentRequest.js b/dist/models/V1SellerActionsCreateInstallmentRequest.js new file mode 100644 index 0000000..6f0a951 --- /dev/null +++ b/dist/models/V1SellerActionsCreateInstallmentRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateInstallmentRequest = instanceOfV1SellerActionsCreateInstallmentRequest; +exports.V1SellerActionsCreateInstallmentRequestFromJSON = V1SellerActionsCreateInstallmentRequestFromJSON; +exports.V1SellerActionsCreateInstallmentRequestFromJSONTyped = V1SellerActionsCreateInstallmentRequestFromJSONTyped; +exports.V1SellerActionsCreateInstallmentRequestToJSON = V1SellerActionsCreateInstallmentRequestToJSON; +/** + * Check if a given object implements the V1SellerActionsCreateInstallmentRequest interface. + */ +function instanceOfV1SellerActionsCreateInstallmentRequest(value) { + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +function V1SellerActionsCreateInstallmentRequestFromJSON(json) { + return V1SellerActionsCreateInstallmentRequestFromJSONTyped(json, false); +} +function V1SellerActionsCreateInstallmentRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_start': json['date_start'], + 'title': json['title'], + }; +} +function V1SellerActionsCreateInstallmentRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_start': value['date_start'], + 'title': value['title'], + }; +} diff --git a/dist/models/V1SellerActionsCreateInstallmentResponse.d.ts b/dist/models/V1SellerActionsCreateInstallmentResponse.d.ts new file mode 100644 index 0000000..e2e5d8a --- /dev/null +++ b/dist/models/V1SellerActionsCreateInstallmentResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateInstallmentResponse + */ +export interface V1SellerActionsCreateInstallmentResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateInstallmentResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateInstallmentResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateInstallmentResponse(value: object): value is V1SellerActionsCreateInstallmentResponse; +export declare function V1SellerActionsCreateInstallmentResponseFromJSON(json: any): V1SellerActionsCreateInstallmentResponse; +export declare function V1SellerActionsCreateInstallmentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateInstallmentResponse; +export declare function V1SellerActionsCreateInstallmentResponseToJSON(value?: V1SellerActionsCreateInstallmentResponse | null): any; diff --git a/dist/models/V1SellerActionsCreateInstallmentResponse.js b/dist/models/V1SellerActionsCreateInstallmentResponse.js new file mode 100644 index 0000000..b49c63f --- /dev/null +++ b/dist/models/V1SellerActionsCreateInstallmentResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateInstallmentResponse = instanceOfV1SellerActionsCreateInstallmentResponse; +exports.V1SellerActionsCreateInstallmentResponseFromJSON = V1SellerActionsCreateInstallmentResponseFromJSON; +exports.V1SellerActionsCreateInstallmentResponseFromJSONTyped = V1SellerActionsCreateInstallmentResponseFromJSONTyped; +exports.V1SellerActionsCreateInstallmentResponseToJSON = V1SellerActionsCreateInstallmentResponseToJSON; +/** + * Check if a given object implements the V1SellerActionsCreateInstallmentResponse interface. + */ +function instanceOfV1SellerActionsCreateInstallmentResponse(value) { + return true; +} +function V1SellerActionsCreateInstallmentResponseFromJSON(json) { + return V1SellerActionsCreateInstallmentResponseFromJSONTyped(json, false); +} +function V1SellerActionsCreateInstallmentResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +function V1SellerActionsCreateInstallmentResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/models/V1SellerActionsCreateMultiLevelDiscountRequest.d.ts b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequest.d.ts new file mode 100644 index 0000000..e03938a --- /dev/null +++ b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequest.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel } from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel'; +import type { V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum } from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsCreateMultiLevelDiscountRequest + */ +export interface V1SellerActionsCreateMultiLevelDiscountRequest { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + date_start: string; + /** + * Уровни скидки. + * @type {Array} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + discount_levels: Array; + /** + * + * @type {V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + discount_type: V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum; + /** + * `true`, если акция только для юридических лиц. + * + * @type {boolean} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + is_legal_entities_segment?: boolean; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequest + */ + title?: string; +} +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateMultiLevelDiscountRequest(value: object): value is V1SellerActionsCreateMultiLevelDiscountRequest; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestFromJSON(json: any): V1SellerActionsCreateMultiLevelDiscountRequest; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateMultiLevelDiscountRequest; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestToJSON(value?: V1SellerActionsCreateMultiLevelDiscountRequest | null): any; diff --git a/dist/models/V1SellerActionsCreateMultiLevelDiscountRequest.js b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequest.js new file mode 100644 index 0000000..d37a21b --- /dev/null +++ b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequest.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateMultiLevelDiscountRequest = instanceOfV1SellerActionsCreateMultiLevelDiscountRequest; +exports.V1SellerActionsCreateMultiLevelDiscountRequestFromJSON = V1SellerActionsCreateMultiLevelDiscountRequestFromJSON; +exports.V1SellerActionsCreateMultiLevelDiscountRequestFromJSONTyped = V1SellerActionsCreateMultiLevelDiscountRequestFromJSONTyped; +exports.V1SellerActionsCreateMultiLevelDiscountRequestToJSON = V1SellerActionsCreateMultiLevelDiscountRequestToJSON; +const V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel_1 = require("./V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel"); +const V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum_1 = require("./V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum"); +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountRequest interface. + */ +function instanceOfV1SellerActionsCreateMultiLevelDiscountRequest(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_levels' in value) || value['discount_levels'] === undefined) + return false; + if (!('discount_type' in value) || value['discount_type'] === undefined) + return false; + return true; +} +function V1SellerActionsCreateMultiLevelDiscountRequestFromJSON(json) { + return V1SellerActionsCreateMultiLevelDiscountRequestFromJSONTyped(json, false); +} +function V1SellerActionsCreateMultiLevelDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_levels': (json['discount_levels'].map(V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel_1.V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON)), + 'discount_type': (0, V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum_1.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON)(json['discount_type']), + 'is_legal_entities_segment': json['is_legal_entities_segment'] == null ? undefined : json['is_legal_entities_segment'], + 'title': json['title'] == null ? undefined : json['title'], + }; +} +function V1SellerActionsCreateMultiLevelDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_levels': (value['discount_levels'].map(V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel_1.V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON)), + 'discount_type': (0, V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum_1.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON)(value['discount_type']), + 'is_legal_entities_segment': value['is_legal_entities_segment'], + 'title': value['title'], + }; +} diff --git a/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.d.ts b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.d.ts new file mode 100644 index 0000000..bd27854 --- /dev/null +++ b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel + */ +export interface V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel { + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel + */ + discount_value: number; + /** + * Минимальная сумма заказа. + * @type {number} + * @memberof V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel + */ + order_amount: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel interface. + */ +export declare function instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel(value: object): value is V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON(json: any): V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON(value?: V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel | null): any; diff --git a/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.js b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.js new file mode 100644 index 0000000..045e6c4 --- /dev/null +++ b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel = instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel; +exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON = V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON; +exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSONTyped = V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSONTyped; +exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON = V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON; +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel interface. + */ +function instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel(value) { + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('order_amount' in value) || value['order_amount'] === undefined) + return false; + return true; +} +function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSON(json) { + return V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSONTyped(json, false); +} +function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount_value': json['discount_value'], + 'order_amount': json['order_amount'], + }; +} +function V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevelToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount_value': value['discount_value'], + 'order_amount': value['order_amount'], + }; +} diff --git a/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.d.ts b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.d.ts new file mode 100644 index 0000000..d4a3b65 --- /dev/null +++ b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export declare const V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum: { + readonly PERCENT: "PERCENT"; + readonly CURRENCY: "CURRENCY"; +}; +export type V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum = typeof V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum[keyof typeof V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum]; +export declare function instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum(value: any): boolean; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON(json: any): V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON(value?: V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum | null): any; diff --git a/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.js b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.js new file mode 100644 index 0000000..385f536 --- /dev/null +++ b/dist/models/V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum = void 0; +exports.instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum = instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum; +exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON = V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON; +exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSONTyped = V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSONTyped; +exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON = V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON; +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum = { + PERCENT: 'PERCENT', + CURRENCY: 'CURRENCY' +}; +function instanceOfV1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum(value) { + for (const key in exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum, key)) { + if (exports.V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSON(json) { + return V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSONTyped(json, false); +} +function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1SellerActionsCreateMultiLevelDiscountResponse.d.ts b/dist/models/V1SellerActionsCreateMultiLevelDiscountResponse.d.ts new file mode 100644 index 0000000..18aeafd --- /dev/null +++ b/dist/models/V1SellerActionsCreateMultiLevelDiscountResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateMultiLevelDiscountResponse + */ +export interface V1SellerActionsCreateMultiLevelDiscountResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateMultiLevelDiscountResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateMultiLevelDiscountResponse(value: object): value is V1SellerActionsCreateMultiLevelDiscountResponse; +export declare function V1SellerActionsCreateMultiLevelDiscountResponseFromJSON(json: any): V1SellerActionsCreateMultiLevelDiscountResponse; +export declare function V1SellerActionsCreateMultiLevelDiscountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateMultiLevelDiscountResponse; +export declare function V1SellerActionsCreateMultiLevelDiscountResponseToJSON(value?: V1SellerActionsCreateMultiLevelDiscountResponse | null): any; diff --git a/dist/models/V1SellerActionsCreateMultiLevelDiscountResponse.js b/dist/models/V1SellerActionsCreateMultiLevelDiscountResponse.js new file mode 100644 index 0000000..e3efa1f --- /dev/null +++ b/dist/models/V1SellerActionsCreateMultiLevelDiscountResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateMultiLevelDiscountResponse = instanceOfV1SellerActionsCreateMultiLevelDiscountResponse; +exports.V1SellerActionsCreateMultiLevelDiscountResponseFromJSON = V1SellerActionsCreateMultiLevelDiscountResponseFromJSON; +exports.V1SellerActionsCreateMultiLevelDiscountResponseFromJSONTyped = V1SellerActionsCreateMultiLevelDiscountResponseFromJSONTyped; +exports.V1SellerActionsCreateMultiLevelDiscountResponseToJSON = V1SellerActionsCreateMultiLevelDiscountResponseToJSON; +/** + * Check if a given object implements the V1SellerActionsCreateMultiLevelDiscountResponse interface. + */ +function instanceOfV1SellerActionsCreateMultiLevelDiscountResponse(value) { + return true; +} +function V1SellerActionsCreateMultiLevelDiscountResponseFromJSON(json) { + return V1SellerActionsCreateMultiLevelDiscountResponseFromJSONTyped(json, false); +} +function V1SellerActionsCreateMultiLevelDiscountResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +function V1SellerActionsCreateMultiLevelDiscountResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/models/V1SellerActionsCreateVoucherRequest.d.ts b/dist/models/V1SellerActionsCreateVoucherRequest.d.ts new file mode 100644 index 0000000..b846ef5 --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherRequest.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsCreateVoucherRequestDiscountTypeEnum } from './V1SellerActionsCreateVoucherRequestDiscountTypeEnum'; +import type { V1SellerActionsCreateVoucherRequestVoucherParameter } from './V1SellerActionsCreateVoucherRequestVoucherParameter'; +/** + * + * @export + * @interface V1SellerActionsCreateVoucherRequest + */ +export interface V1SellerActionsCreateVoucherRequest { + /** + * Бюджет акции. Если бюджет закончится, акция остановится. + * @type {number} + * @memberof V1SellerActionsCreateVoucherRequest + */ + budget: number; + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsCreateVoucherRequest + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsCreateVoucherRequest + */ + date_start: string; + /** + * + * @type {V1SellerActionsCreateVoucherRequestDiscountTypeEnum} + * @memberof V1SellerActionsCreateVoucherRequest + */ + discount_type: V1SellerActionsCreateVoucherRequestDiscountTypeEnum; + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsCreateVoucherRequest + */ + discount_value: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsCreateVoucherRequest + */ + title: string; + /** + * Идентификаторы пользователей, которым доступен промокод. + * @type {Array} + * @memberof V1SellerActionsCreateVoucherRequest + */ + user_ids?: Array; + /** + * + * @type {V1SellerActionsCreateVoucherRequestVoucherParameter} + * @memberof V1SellerActionsCreateVoucherRequest + */ + voucher_parameters: V1SellerActionsCreateVoucherRequestVoucherParameter; +} +/** + * Check if a given object implements the V1SellerActionsCreateVoucherRequest interface. + */ +export declare function instanceOfV1SellerActionsCreateVoucherRequest(value: object): value is V1SellerActionsCreateVoucherRequest; +export declare function V1SellerActionsCreateVoucherRequestFromJSON(json: any): V1SellerActionsCreateVoucherRequest; +export declare function V1SellerActionsCreateVoucherRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherRequest; +export declare function V1SellerActionsCreateVoucherRequestToJSON(value?: V1SellerActionsCreateVoucherRequest | null): any; diff --git a/dist/models/V1SellerActionsCreateVoucherRequest.js b/dist/models/V1SellerActionsCreateVoucherRequest.js new file mode 100644 index 0000000..e062c39 --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherRequest.js @@ -0,0 +1,74 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateVoucherRequest = instanceOfV1SellerActionsCreateVoucherRequest; +exports.V1SellerActionsCreateVoucherRequestFromJSON = V1SellerActionsCreateVoucherRequestFromJSON; +exports.V1SellerActionsCreateVoucherRequestFromJSONTyped = V1SellerActionsCreateVoucherRequestFromJSONTyped; +exports.V1SellerActionsCreateVoucherRequestToJSON = V1SellerActionsCreateVoucherRequestToJSON; +const V1SellerActionsCreateVoucherRequestDiscountTypeEnum_1 = require("./V1SellerActionsCreateVoucherRequestDiscountTypeEnum"); +const V1SellerActionsCreateVoucherRequestVoucherParameter_1 = require("./V1SellerActionsCreateVoucherRequestVoucherParameter"); +/** + * Check if a given object implements the V1SellerActionsCreateVoucherRequest interface. + */ +function instanceOfV1SellerActionsCreateVoucherRequest(value) { + if (!('budget' in value) || value['budget'] === undefined) + return false; + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_type' in value) || value['discount_type'] === undefined) + return false; + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + if (!('voucher_parameters' in value) || value['voucher_parameters'] === undefined) + return false; + return true; +} +function V1SellerActionsCreateVoucherRequestFromJSON(json) { + return V1SellerActionsCreateVoucherRequestFromJSONTyped(json, false); +} +function V1SellerActionsCreateVoucherRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'budget': json['budget'], + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_type': (0, V1SellerActionsCreateVoucherRequestDiscountTypeEnum_1.V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON)(json['discount_type']), + 'discount_value': json['discount_value'], + 'title': json['title'], + 'user_ids': json['user_ids'] == null ? undefined : json['user_ids'], + 'voucher_parameters': (0, V1SellerActionsCreateVoucherRequestVoucherParameter_1.V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON)(json['voucher_parameters']), + }; +} +function V1SellerActionsCreateVoucherRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'budget': value['budget'], + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_type': (0, V1SellerActionsCreateVoucherRequestDiscountTypeEnum_1.V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON)(value['discount_type']), + 'discount_value': value['discount_value'], + 'title': value['title'], + 'user_ids': value['user_ids'], + 'voucher_parameters': (0, V1SellerActionsCreateVoucherRequestVoucherParameter_1.V1SellerActionsCreateVoucherRequestVoucherParameterToJSON)(value['voucher_parameters']), + }; +} diff --git a/dist/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.d.ts b/dist/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.d.ts new file mode 100644 index 0000000..23b1370 --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +export declare const V1SellerActionsCreateVoucherRequestDiscountTypeEnum: { + readonly PERCENT: "PERCENT"; + readonly CURRENCY: "CURRENCY"; +}; +export type V1SellerActionsCreateVoucherRequestDiscountTypeEnum = typeof V1SellerActionsCreateVoucherRequestDiscountTypeEnum[keyof typeof V1SellerActionsCreateVoucherRequestDiscountTypeEnum]; +export declare function instanceOfV1SellerActionsCreateVoucherRequestDiscountTypeEnum(value: any): boolean; +export declare function V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON(json: any): V1SellerActionsCreateVoucherRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherRequestDiscountTypeEnum; +export declare function V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON(value?: V1SellerActionsCreateVoucherRequestDiscountTypeEnum | null): any; diff --git a/dist/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.js b/dist/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.js new file mode 100644 index 0000000..8bb5b91 --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherRequestDiscountTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SellerActionsCreateVoucherRequestDiscountTypeEnum = void 0; +exports.instanceOfV1SellerActionsCreateVoucherRequestDiscountTypeEnum = instanceOfV1SellerActionsCreateVoucherRequestDiscountTypeEnum; +exports.V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON = V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON; +exports.V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSONTyped = V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSONTyped; +exports.V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON = V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON; +/** + * Тип скидки: + * - `PERCENT` — скидка в процентах; + * - `CURRENCY` — скидка в валюте. + * + * @export + */ +exports.V1SellerActionsCreateVoucherRequestDiscountTypeEnum = { + PERCENT: 'PERCENT', + CURRENCY: 'CURRENCY' +}; +function instanceOfV1SellerActionsCreateVoucherRequestDiscountTypeEnum(value) { + for (const key in exports.V1SellerActionsCreateVoucherRequestDiscountTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1SellerActionsCreateVoucherRequestDiscountTypeEnum, key)) { + if (exports.V1SellerActionsCreateVoucherRequestDiscountTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSON(json) { + return V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSONTyped(json, false); +} +function V1SellerActionsCreateVoucherRequestDiscountTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SellerActionsCreateVoucherRequestDiscountTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameter.d.ts b/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameter.d.ts new file mode 100644 index 0000000..6010640 --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameter.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum } from './V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum'; +/** + * Параметры промокодов. + * @export + * @interface V1SellerActionsCreateVoucherRequestVoucherParameter + */ +export interface V1SellerActionsCreateVoucherRequestVoucherParameter { + /** + * Количество промокодов. + * @type {number} + * @memberof V1SellerActionsCreateVoucherRequestVoucherParameter + */ + count_codes: number; + /** + * `true`, если промокод в открытом доступе. + * + * @type {boolean} + * @memberof V1SellerActionsCreateVoucherRequestVoucherParameter + */ + is_private: boolean; + /** + * + * @type {V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum} + * @memberof V1SellerActionsCreateVoucherRequestVoucherParameter + */ + type: V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum; +} +/** + * Check if a given object implements the V1SellerActionsCreateVoucherRequestVoucherParameter interface. + */ +export declare function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter(value: object): value is V1SellerActionsCreateVoucherRequestVoucherParameter; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON(json: any): V1SellerActionsCreateVoucherRequestVoucherParameter; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherRequestVoucherParameter; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterToJSON(value?: V1SellerActionsCreateVoucherRequestVoucherParameter | null): any; diff --git a/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameter.js b/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameter.js new file mode 100644 index 0000000..963e62a --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameter.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter = instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter; +exports.V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON = V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON; +exports.V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped = V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped; +exports.V1SellerActionsCreateVoucherRequestVoucherParameterToJSON = V1SellerActionsCreateVoucherRequestVoucherParameterToJSON; +const V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum_1 = require("./V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum"); +/** + * Check if a given object implements the V1SellerActionsCreateVoucherRequestVoucherParameter interface. + */ +function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameter(value) { + if (!('count_codes' in value) || value['count_codes'] === undefined) + return false; + if (!('is_private' in value) || value['is_private'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSON(json) { + return V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped(json, false); +} +function V1SellerActionsCreateVoucherRequestVoucherParameterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count_codes': json['count_codes'], + 'is_private': json['is_private'], + 'type': (0, V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum_1.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON)(json['type']), + }; +} +function V1SellerActionsCreateVoucherRequestVoucherParameterToJSON(value) { + if (value == null) { + return value; + } + return { + 'count_codes': value['count_codes'], + 'is_private': value['is_private'], + 'type': (0, V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum_1.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.d.ts b/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.d.ts new file mode 100644 index 0000000..0ee113a --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип промокода: + * - `ONE` — промокод для всех покупателей на 1 заказ; + * - `MULTIPLE` — промокод для всех покупателей на любое количество заказов; + * - `UNIQUE` — промокод для 1 покупателя на 1 заказ. + * + * @export + */ +export declare const V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum: { + readonly ONE: "ONE"; + readonly MULTIPLE: "MULTIPLE"; + readonly UNIQUE: "UNIQUE"; +}; +export type V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum = typeof V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum[keyof typeof V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum]; +export declare function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum(value: any): boolean; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON(json: any): V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum; +export declare function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON(value?: V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum | null): any; diff --git a/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.js b/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.js new file mode 100644 index 0000000..02f34fe --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum = void 0; +exports.instanceOfV1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum = instanceOfV1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum; +exports.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON = V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON; +exports.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSONTyped = V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSONTyped; +exports.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON = V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON; +/** + * Тип промокода: + * - `ONE` — промокод для всех покупателей на 1 заказ; + * - `MULTIPLE` — промокод для всех покупателей на любое количество заказов; + * - `UNIQUE` — промокод для 1 покупателя на 1 заказ. + * + * @export + */ +exports.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum = { + ONE: 'ONE', + MULTIPLE: 'MULTIPLE', + UNIQUE: 'UNIQUE' +}; +function instanceOfV1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum(value) { + for (const key in exports.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum, key)) { + if (exports.V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSON(json) { + return V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSONTyped(json, false); +} +function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1SellerActionsCreateVoucherResponse.d.ts b/dist/models/V1SellerActionsCreateVoucherResponse.d.ts new file mode 100644 index 0000000..3d8c5f6 --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsCreateVoucherResponse + */ +export interface V1SellerActionsCreateVoucherResponse { + /** + * Идентификатор акции. + * @type {number} + * @memberof V1SellerActionsCreateVoucherResponse + */ + action_id?: number; +} +/** + * Check if a given object implements the V1SellerActionsCreateVoucherResponse interface. + */ +export declare function instanceOfV1SellerActionsCreateVoucherResponse(value: object): value is V1SellerActionsCreateVoucherResponse; +export declare function V1SellerActionsCreateVoucherResponseFromJSON(json: any): V1SellerActionsCreateVoucherResponse; +export declare function V1SellerActionsCreateVoucherResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsCreateVoucherResponse; +export declare function V1SellerActionsCreateVoucherResponseToJSON(value?: V1SellerActionsCreateVoucherResponse | null): any; diff --git a/dist/models/V1SellerActionsCreateVoucherResponse.js b/dist/models/V1SellerActionsCreateVoucherResponse.js new file mode 100644 index 0000000..046d618 --- /dev/null +++ b/dist/models/V1SellerActionsCreateVoucherResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsCreateVoucherResponse = instanceOfV1SellerActionsCreateVoucherResponse; +exports.V1SellerActionsCreateVoucherResponseFromJSON = V1SellerActionsCreateVoucherResponseFromJSON; +exports.V1SellerActionsCreateVoucherResponseFromJSONTyped = V1SellerActionsCreateVoucherResponseFromJSONTyped; +exports.V1SellerActionsCreateVoucherResponseToJSON = V1SellerActionsCreateVoucherResponseToJSON; +/** + * Check if a given object implements the V1SellerActionsCreateVoucherResponse interface. + */ +function instanceOfV1SellerActionsCreateVoucherResponse(value) { + return true; +} +function V1SellerActionsCreateVoucherResponseFromJSON(json) { + return V1SellerActionsCreateVoucherResponseFromJSONTyped(json, false); +} +function V1SellerActionsCreateVoucherResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + }; +} +function V1SellerActionsCreateVoucherResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/models/V1SellerActionsListRequest.d.ts b/dist/models/V1SellerActionsListRequest.d.ts new file mode 100644 index 0000000..7f8577a --- /dev/null +++ b/dist/models/V1SellerActionsListRequest.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerActionsListRequestStatusEnum } from './SellerActionsListRequestStatusEnum'; +import type { SellerActionsListRequestActionTypeEnum } from './SellerActionsListRequestActionTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsListRequest + */ +export interface V1SellerActionsListRequest { + /** + * Идентификаторы акций. + * @type {Array} + * @memberof V1SellerActionsListRequest + */ + action_ids?: Array; + /** + * Механика акции: + * - `DISCOUNT` — скидка; + * - `VOUCHER_DISCOUNT` — скидка по промокоду; + * - `DISCOUNT_WITH_CONDITION` — скидка от суммы заказа; + * - `INSTALLMENT` — беспроцентная рассрочка; + * - `INDIVIDUAL_DISCOUNT_BY_PRODUCTS` — бонусы продавца; + * - `OZON_ACCOUNT_DISCOUNT` — повышенная скидка с картой Ozon Банка; + * - `MULTI_LEVEL_DISCOUNT_ON_AMOUNT` — многоуровневая скидка от суммы. + * + * @type {Array} + * @memberof V1SellerActionsListRequest + */ + action_type?: Array; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1SellerActionsListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof V1SellerActionsListRequest + */ + offset?: number; + /** + * Поиск по названию акции. + * @type {string} + * @memberof V1SellerActionsListRequest + */ + search?: string; + /** + * Статус акции: + * - `ACTIVE` — активна; + * - `ENDED` — завершена; + * - `PLANNED` — запланирована; + * - `PAUSED` — приостановлена. + * + * @type {Array} + * @memberof V1SellerActionsListRequest + */ + status?: Array; +} +/** + * Check if a given object implements the V1SellerActionsListRequest interface. + */ +export declare function instanceOfV1SellerActionsListRequest(value: object): value is V1SellerActionsListRequest; +export declare function V1SellerActionsListRequestFromJSON(json: any): V1SellerActionsListRequest; +export declare function V1SellerActionsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsListRequest; +export declare function V1SellerActionsListRequestToJSON(value?: V1SellerActionsListRequest | null): any; diff --git a/dist/models/V1SellerActionsListRequest.js b/dist/models/V1SellerActionsListRequest.js new file mode 100644 index 0000000..40d4448 --- /dev/null +++ b/dist/models/V1SellerActionsListRequest.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsListRequest = instanceOfV1SellerActionsListRequest; +exports.V1SellerActionsListRequestFromJSON = V1SellerActionsListRequestFromJSON; +exports.V1SellerActionsListRequestFromJSONTyped = V1SellerActionsListRequestFromJSONTyped; +exports.V1SellerActionsListRequestToJSON = V1SellerActionsListRequestToJSON; +const SellerActionsListRequestStatusEnum_1 = require("./SellerActionsListRequestStatusEnum"); +const SellerActionsListRequestActionTypeEnum_1 = require("./SellerActionsListRequestActionTypeEnum"); +/** + * Check if a given object implements the V1SellerActionsListRequest interface. + */ +function instanceOfV1SellerActionsListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1SellerActionsListRequestFromJSON(json) { + return V1SellerActionsListRequestFromJSONTyped(json, false); +} +function V1SellerActionsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_ids': json['action_ids'] == null ? undefined : json['action_ids'], + 'action_type': json['action_type'] == null ? undefined : (json['action_type'].map(SellerActionsListRequestActionTypeEnum_1.SellerActionsListRequestActionTypeEnumFromJSON)), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + 'search': json['search'] == null ? undefined : json['search'], + 'status': json['status'] == null ? undefined : (json['status'].map(SellerActionsListRequestStatusEnum_1.SellerActionsListRequestStatusEnumFromJSON)), + }; +} +function V1SellerActionsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_ids': value['action_ids'], + 'action_type': value['action_type'] == null ? undefined : (value['action_type'].map(SellerActionsListRequestActionTypeEnum_1.SellerActionsListRequestActionTypeEnumToJSON)), + 'limit': value['limit'], + 'offset': value['offset'], + 'search': value['search'], + 'status': value['status'] == null ? undefined : (value['status'].map(SellerActionsListRequestStatusEnum_1.SellerActionsListRequestStatusEnumToJSON)), + }; +} diff --git a/dist/models/V1SellerActionsListResponse.d.ts b/dist/models/V1SellerActionsListResponse.d.ts new file mode 100644 index 0000000..14914b1 --- /dev/null +++ b/dist/models/V1SellerActionsListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerActionsListResponseAction } from './SellerActionsListResponseAction'; +/** + * + * @export + * @interface V1SellerActionsListResponse + */ +export interface V1SellerActionsListResponse { + /** + * Список акций. + * @type {Array} + * @memberof V1SellerActionsListResponse + */ + actions?: Array; + /** + * Общее количество акций. + * @type {number} + * @memberof V1SellerActionsListResponse + */ + total?: number; +} +/** + * Check if a given object implements the V1SellerActionsListResponse interface. + */ +export declare function instanceOfV1SellerActionsListResponse(value: object): value is V1SellerActionsListResponse; +export declare function V1SellerActionsListResponseFromJSON(json: any): V1SellerActionsListResponse; +export declare function V1SellerActionsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsListResponse; +export declare function V1SellerActionsListResponseToJSON(value?: V1SellerActionsListResponse | null): any; diff --git a/dist/models/V1SellerActionsListResponse.js b/dist/models/V1SellerActionsListResponse.js new file mode 100644 index 0000000..5876fdd --- /dev/null +++ b/dist/models/V1SellerActionsListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsListResponse = instanceOfV1SellerActionsListResponse; +exports.V1SellerActionsListResponseFromJSON = V1SellerActionsListResponseFromJSON; +exports.V1SellerActionsListResponseFromJSONTyped = V1SellerActionsListResponseFromJSONTyped; +exports.V1SellerActionsListResponseToJSON = V1SellerActionsListResponseToJSON; +const SellerActionsListResponseAction_1 = require("./SellerActionsListResponseAction"); +/** + * Check if a given object implements the V1SellerActionsListResponse interface. + */ +function instanceOfV1SellerActionsListResponse(value) { + return true; +} +function V1SellerActionsListResponseFromJSON(json) { + return V1SellerActionsListResponseFromJSONTyped(json, false); +} +function V1SellerActionsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'actions': json['actions'] == null ? undefined : (json['actions'].map(SellerActionsListResponseAction_1.SellerActionsListResponseActionFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V1SellerActionsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'actions': value['actions'] == null ? undefined : (value['actions'].map(SellerActionsListResponseAction_1.SellerActionsListResponseActionToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/V1SellerActionsProductsAddRequest.d.ts b/dist/models/V1SellerActionsProductsAddRequest.d.ts new file mode 100644 index 0000000..6648932 --- /dev/null +++ b/dist/models/V1SellerActionsProductsAddRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsAddRequestProduct } from './V1SellerActionsProductsAddRequestProduct'; +/** + * + * @export + * @interface V1SellerActionsProductsAddRequest + */ +export interface V1SellerActionsProductsAddRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsProductsAddRequest + */ + action_id: number; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1SellerActionsProductsAddRequest + */ + products: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsAddRequest interface. + */ +export declare function instanceOfV1SellerActionsProductsAddRequest(value: object): value is V1SellerActionsProductsAddRequest; +export declare function V1SellerActionsProductsAddRequestFromJSON(json: any): V1SellerActionsProductsAddRequest; +export declare function V1SellerActionsProductsAddRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsAddRequest; +export declare function V1SellerActionsProductsAddRequestToJSON(value?: V1SellerActionsProductsAddRequest | null): any; diff --git a/dist/models/V1SellerActionsProductsAddRequest.js b/dist/models/V1SellerActionsProductsAddRequest.js new file mode 100644 index 0000000..bba0006 --- /dev/null +++ b/dist/models/V1SellerActionsProductsAddRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsAddRequest = instanceOfV1SellerActionsProductsAddRequest; +exports.V1SellerActionsProductsAddRequestFromJSON = V1SellerActionsProductsAddRequestFromJSON; +exports.V1SellerActionsProductsAddRequestFromJSONTyped = V1SellerActionsProductsAddRequestFromJSONTyped; +exports.V1SellerActionsProductsAddRequestToJSON = V1SellerActionsProductsAddRequestToJSON; +const V1SellerActionsProductsAddRequestProduct_1 = require("./V1SellerActionsProductsAddRequestProduct"); +/** + * Check if a given object implements the V1SellerActionsProductsAddRequest interface. + */ +function instanceOfV1SellerActionsProductsAddRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +function V1SellerActionsProductsAddRequestFromJSON(json) { + return V1SellerActionsProductsAddRequestFromJSONTyped(json, false); +} +function V1SellerActionsProductsAddRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'products': (json['products'].map(V1SellerActionsProductsAddRequestProduct_1.V1SellerActionsProductsAddRequestProductFromJSON)), + }; +} +function V1SellerActionsProductsAddRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'products': (value['products'].map(V1SellerActionsProductsAddRequestProduct_1.V1SellerActionsProductsAddRequestProductToJSON)), + }; +} diff --git a/dist/models/V1SellerActionsProductsAddRequestProduct.d.ts b/dist/models/V1SellerActionsProductsAddRequestProduct.d.ts new file mode 100644 index 0000000..7b20bfd --- /dev/null +++ b/dist/models/V1SellerActionsProductsAddRequestProduct.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCurrencyEnum } from './ProductCurrencyEnum'; +/** + * + * @export + * @interface V1SellerActionsProductsAddRequestProduct + */ +export interface V1SellerActionsProductsAddRequestProduct { + /** + * + * @type {ProductCurrencyEnum} + * @memberof V1SellerActionsProductsAddRequestProduct + */ + currency?: ProductCurrencyEnum; + /** + * Размер скидки в процентах. Передайте параметр, если механика акции «Скидка». + * @type {number} + * @memberof V1SellerActionsProductsAddRequestProduct + */ + discount_percent?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1SellerActionsProductsAddRequestProduct + */ + sku: number; +} +/** + * Check if a given object implements the V1SellerActionsProductsAddRequestProduct interface. + */ +export declare function instanceOfV1SellerActionsProductsAddRequestProduct(value: object): value is V1SellerActionsProductsAddRequestProduct; +export declare function V1SellerActionsProductsAddRequestProductFromJSON(json: any): V1SellerActionsProductsAddRequestProduct; +export declare function V1SellerActionsProductsAddRequestProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsAddRequestProduct; +export declare function V1SellerActionsProductsAddRequestProductToJSON(value?: V1SellerActionsProductsAddRequestProduct | null): any; diff --git a/dist/models/V1SellerActionsProductsAddRequestProduct.js b/dist/models/V1SellerActionsProductsAddRequestProduct.js new file mode 100644 index 0000000..e051786 --- /dev/null +++ b/dist/models/V1SellerActionsProductsAddRequestProduct.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsAddRequestProduct = instanceOfV1SellerActionsProductsAddRequestProduct; +exports.V1SellerActionsProductsAddRequestProductFromJSON = V1SellerActionsProductsAddRequestProductFromJSON; +exports.V1SellerActionsProductsAddRequestProductFromJSONTyped = V1SellerActionsProductsAddRequestProductFromJSONTyped; +exports.V1SellerActionsProductsAddRequestProductToJSON = V1SellerActionsProductsAddRequestProductToJSON; +const ProductCurrencyEnum_1 = require("./ProductCurrencyEnum"); +/** + * Check if a given object implements the V1SellerActionsProductsAddRequestProduct interface. + */ +function instanceOfV1SellerActionsProductsAddRequestProduct(value) { + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1SellerActionsProductsAddRequestProductFromJSON(json) { + return V1SellerActionsProductsAddRequestProductFromJSONTyped(json, false); +} +function V1SellerActionsProductsAddRequestProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'currency': json['currency'] == null ? undefined : (0, ProductCurrencyEnum_1.ProductCurrencyEnumFromJSON)(json['currency']), + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'sku': json['sku'], + }; +} +function V1SellerActionsProductsAddRequestProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'currency': (0, ProductCurrencyEnum_1.ProductCurrencyEnumToJSON)(value['currency']), + 'discount_percent': value['discount_percent'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1SellerActionsProductsCandidatesRequest.d.ts b/dist/models/V1SellerActionsProductsCandidatesRequest.d.ts new file mode 100644 index 0000000..7efd375 --- /dev/null +++ b/dist/models/V1SellerActionsProductsCandidatesRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsProductsCandidatesRequest + */ +export interface V1SellerActionsProductsCandidatesRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsProductsCandidatesRequest + */ + action_id: number; + /** + * Указатель для выборки следующих данных. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesRequest + */ + cursor?: number; + /** + * Максимальное количество элементов в ответе. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesRequest interface. + */ +export declare function instanceOfV1SellerActionsProductsCandidatesRequest(value: object): value is V1SellerActionsProductsCandidatesRequest; +export declare function V1SellerActionsProductsCandidatesRequestFromJSON(json: any): V1SellerActionsProductsCandidatesRequest; +export declare function V1SellerActionsProductsCandidatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsCandidatesRequest; +export declare function V1SellerActionsProductsCandidatesRequestToJSON(value?: V1SellerActionsProductsCandidatesRequest | null): any; diff --git a/dist/models/V1SellerActionsProductsCandidatesRequest.js b/dist/models/V1SellerActionsProductsCandidatesRequest.js new file mode 100644 index 0000000..ce55a6f --- /dev/null +++ b/dist/models/V1SellerActionsProductsCandidatesRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsCandidatesRequest = instanceOfV1SellerActionsProductsCandidatesRequest; +exports.V1SellerActionsProductsCandidatesRequestFromJSON = V1SellerActionsProductsCandidatesRequestFromJSON; +exports.V1SellerActionsProductsCandidatesRequestFromJSONTyped = V1SellerActionsProductsCandidatesRequestFromJSONTyped; +exports.V1SellerActionsProductsCandidatesRequestToJSON = V1SellerActionsProductsCandidatesRequestToJSON; +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesRequest interface. + */ +function instanceOfV1SellerActionsProductsCandidatesRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1SellerActionsProductsCandidatesRequestFromJSON(json) { + return V1SellerActionsProductsCandidatesRequestFromJSONTyped(json, false); +} +function V1SellerActionsProductsCandidatesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + }; +} +function V1SellerActionsProductsCandidatesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'cursor': value['cursor'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1SellerActionsProductsCandidatesResponse.d.ts b/dist/models/V1SellerActionsProductsCandidatesResponse.d.ts new file mode 100644 index 0000000..e4f5eef --- /dev/null +++ b/dist/models/V1SellerActionsProductsCandidatesResponse.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsCandidatesResponseProduct } from './V1SellerActionsProductsCandidatesResponseProduct'; +/** + * + * @export + * @interface V1SellerActionsProductsCandidatesResponse + */ +export interface V1SellerActionsProductsCandidatesResponse { + /** + * Указатель для выборки следующих данных. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponse + */ + cursor?: number; + /** + * Признак, что в ответе вернулась только часть значений: + * - `true` — сделайте повторный запрос с новым параметром `cursor` для получения остальных значений; + * - `false` — ответ содержит все значения. + * + * @type {boolean} + * @memberof V1SellerActionsProductsCandidatesResponse + */ + has_next?: boolean; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1SellerActionsProductsCandidatesResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesResponse interface. + */ +export declare function instanceOfV1SellerActionsProductsCandidatesResponse(value: object): value is V1SellerActionsProductsCandidatesResponse; +export declare function V1SellerActionsProductsCandidatesResponseFromJSON(json: any): V1SellerActionsProductsCandidatesResponse; +export declare function V1SellerActionsProductsCandidatesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsCandidatesResponse; +export declare function V1SellerActionsProductsCandidatesResponseToJSON(value?: V1SellerActionsProductsCandidatesResponse | null): any; diff --git a/dist/models/V1SellerActionsProductsCandidatesResponse.js b/dist/models/V1SellerActionsProductsCandidatesResponse.js new file mode 100644 index 0000000..d3351c5 --- /dev/null +++ b/dist/models/V1SellerActionsProductsCandidatesResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsCandidatesResponse = instanceOfV1SellerActionsProductsCandidatesResponse; +exports.V1SellerActionsProductsCandidatesResponseFromJSON = V1SellerActionsProductsCandidatesResponseFromJSON; +exports.V1SellerActionsProductsCandidatesResponseFromJSONTyped = V1SellerActionsProductsCandidatesResponseFromJSONTyped; +exports.V1SellerActionsProductsCandidatesResponseToJSON = V1SellerActionsProductsCandidatesResponseToJSON; +const V1SellerActionsProductsCandidatesResponseProduct_1 = require("./V1SellerActionsProductsCandidatesResponseProduct"); +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesResponse interface. + */ +function instanceOfV1SellerActionsProductsCandidatesResponse(value) { + return true; +} +function V1SellerActionsProductsCandidatesResponseFromJSON(json) { + return V1SellerActionsProductsCandidatesResponseFromJSONTyped(json, false); +} +function V1SellerActionsProductsCandidatesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1SellerActionsProductsCandidatesResponseProduct_1.V1SellerActionsProductsCandidatesResponseProductFromJSON)), + }; +} +function V1SellerActionsProductsCandidatesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1SellerActionsProductsCandidatesResponseProduct_1.V1SellerActionsProductsCandidatesResponseProductToJSON)), + }; +} diff --git a/dist/models/V1SellerActionsProductsCandidatesResponseProduct.d.ts b/dist/models/V1SellerActionsProductsCandidatesResponseProduct.d.ts new file mode 100644 index 0000000..2ecf040 --- /dev/null +++ b/dist/models/V1SellerActionsProductsCandidatesResponseProduct.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum } from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsProductsCandidatesResponseProduct + */ +export interface V1SellerActionsProductsCandidatesResponseProduct { + /** + * Цена товара с учётом акции. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + action_price?: number; + /** + * Базовая цена, по которой товар продаётся на Ozon, если не участвует в акции. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + base_price?: number; + /** + * Валюта. + * @type {string} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + currency?: string; + /** + * Процент скидки. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + discount_percent?: number; + /** + * `true`, если товар участвует в акции. + * + * @type {boolean} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + is_active?: boolean; + /** + * Минимальная цена для автоматического добавления товара в акцию. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + min_seller_price?: number; + /** + * Название товара. + * @type {string} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + offer_id?: string; + /** + * Цена товара для покупателя. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + product_id?: number; + /** + * Размер кванта. + * @type {number} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + quant_size?: number; + /** + * + * @type {V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + quant_type?: V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof V1SellerActionsProductsCandidatesResponseProduct + */ + sku?: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesResponseProduct interface. + */ +export declare function instanceOfV1SellerActionsProductsCandidatesResponseProduct(value: object): value is V1SellerActionsProductsCandidatesResponseProduct; +export declare function V1SellerActionsProductsCandidatesResponseProductFromJSON(json: any): V1SellerActionsProductsCandidatesResponseProduct; +export declare function V1SellerActionsProductsCandidatesResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsCandidatesResponseProduct; +export declare function V1SellerActionsProductsCandidatesResponseProductToJSON(value?: V1SellerActionsProductsCandidatesResponseProduct | null): any; diff --git a/dist/models/V1SellerActionsProductsCandidatesResponseProduct.js b/dist/models/V1SellerActionsProductsCandidatesResponseProduct.js new file mode 100644 index 0000000..25306a6 --- /dev/null +++ b/dist/models/V1SellerActionsProductsCandidatesResponseProduct.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsCandidatesResponseProduct = instanceOfV1SellerActionsProductsCandidatesResponseProduct; +exports.V1SellerActionsProductsCandidatesResponseProductFromJSON = V1SellerActionsProductsCandidatesResponseProductFromJSON; +exports.V1SellerActionsProductsCandidatesResponseProductFromJSONTyped = V1SellerActionsProductsCandidatesResponseProductFromJSONTyped; +exports.V1SellerActionsProductsCandidatesResponseProductToJSON = V1SellerActionsProductsCandidatesResponseProductToJSON; +const V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum_1 = require("./V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum"); +/** + * Check if a given object implements the V1SellerActionsProductsCandidatesResponseProduct interface. + */ +function instanceOfV1SellerActionsProductsCandidatesResponseProduct(value) { + return true; +} +function V1SellerActionsProductsCandidatesResponseProductFromJSON(json) { + return V1SellerActionsProductsCandidatesResponseProductFromJSONTyped(json, false); +} +function V1SellerActionsProductsCandidatesResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price': json['action_price'] == null ? undefined : json['action_price'], + 'base_price': json['base_price'] == null ? undefined : json['base_price'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'min_seller_price': json['min_seller_price'] == null ? undefined : json['min_seller_price'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + 'quant_type': json['quant_type'] == null ? undefined : (0, V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum_1.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON)(json['quant_type']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1SellerActionsProductsCandidatesResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price': value['action_price'], + 'base_price': value['base_price'], + 'currency': value['currency'], + 'discount_percent': value['discount_percent'], + 'is_active': value['is_active'], + 'min_seller_price': value['min_seller_price'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quant_size': value['quant_size'], + 'quant_type': (0, V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum_1.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON)(value['quant_type']), + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.d.ts b/dist/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.d.ts new file mode 100644 index 0000000..1ec62d1 --- /dev/null +++ b/dist/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип кванта: + * - `UNSPECIFIED` — не определён, + * - `BOX` — коробка, + * - `PALLET` — палета, + * - `GENERAL` — товар. + * + * @export + */ +export declare const V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; + readonly GENERAL: "GENERAL"; +}; +export type V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum = typeof V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum[keyof typeof V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum]; +export declare function instanceOfV1SellerActionsProductsCandidatesResponseProductQuantTypeEnum(value: any): boolean; +export declare function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON(json: any): V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; +export declare function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; +export declare function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON(value?: V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum | null): any; diff --git a/dist/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.js b/dist/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.js new file mode 100644 index 0000000..d2ae230 --- /dev/null +++ b/dist/models/V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum = void 0; +exports.instanceOfV1SellerActionsProductsCandidatesResponseProductQuantTypeEnum = instanceOfV1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; +exports.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON = V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON; +exports.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSONTyped = V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSONTyped; +exports.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON = V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON; +/** + * Тип кванта: + * - `UNSPECIFIED` — не определён, + * - `BOX` — коробка, + * - `PALLET` — палета, + * - `GENERAL` — товар. + * + * @export + */ +exports.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BOX: 'BOX', + PALLET: 'PALLET', + GENERAL: 'GENERAL' +}; +function instanceOfV1SellerActionsProductsCandidatesResponseProductQuantTypeEnum(value) { + for (const key in exports.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum, key)) { + if (exports.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON(json) { + return V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSONTyped(json, false); +} +function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1SellerActionsProductsDeleteRequest.d.ts b/dist/models/V1SellerActionsProductsDeleteRequest.d.ts new file mode 100644 index 0000000..4af1d47 --- /dev/null +++ b/dist/models/V1SellerActionsProductsDeleteRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsProductsDeleteRequest + */ +export interface V1SellerActionsProductsDeleteRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsProductsDeleteRequest + */ + action_id: number; + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V1SellerActionsProductsDeleteRequest + */ + skus: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsDeleteRequest interface. + */ +export declare function instanceOfV1SellerActionsProductsDeleteRequest(value: object): value is V1SellerActionsProductsDeleteRequest; +export declare function V1SellerActionsProductsDeleteRequestFromJSON(json: any): V1SellerActionsProductsDeleteRequest; +export declare function V1SellerActionsProductsDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsDeleteRequest; +export declare function V1SellerActionsProductsDeleteRequestToJSON(value?: V1SellerActionsProductsDeleteRequest | null): any; diff --git a/dist/models/V1SellerActionsProductsDeleteRequest.js b/dist/models/V1SellerActionsProductsDeleteRequest.js new file mode 100644 index 0000000..0772c7d --- /dev/null +++ b/dist/models/V1SellerActionsProductsDeleteRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsDeleteRequest = instanceOfV1SellerActionsProductsDeleteRequest; +exports.V1SellerActionsProductsDeleteRequestFromJSON = V1SellerActionsProductsDeleteRequestFromJSON; +exports.V1SellerActionsProductsDeleteRequestFromJSONTyped = V1SellerActionsProductsDeleteRequestFromJSONTyped; +exports.V1SellerActionsProductsDeleteRequestToJSON = V1SellerActionsProductsDeleteRequestToJSON; +/** + * Check if a given object implements the V1SellerActionsProductsDeleteRequest interface. + */ +function instanceOfV1SellerActionsProductsDeleteRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('skus' in value) || value['skus'] === undefined) + return false; + return true; +} +function V1SellerActionsProductsDeleteRequestFromJSON(json) { + return V1SellerActionsProductsDeleteRequestFromJSONTyped(json, false); +} +function V1SellerActionsProductsDeleteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'skus': json['skus'], + }; +} +function V1SellerActionsProductsDeleteRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'skus': value['skus'], + }; +} diff --git a/dist/models/V1SellerActionsProductsListRequest.d.ts b/dist/models/V1SellerActionsProductsListRequest.d.ts new file mode 100644 index 0000000..3abb978 --- /dev/null +++ b/dist/models/V1SellerActionsProductsListRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsProductsListRequest + */ +export interface V1SellerActionsProductsListRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsProductsListRequest + */ + action_id: number; + /** + * Указатель для выборки следующих данных. + * @type {number} + * @memberof V1SellerActionsProductsListRequest + */ + cursor?: number; + /** + * Максимальное количество элементов в ответе. + * @type {number} + * @memberof V1SellerActionsProductsListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1SellerActionsProductsListRequest interface. + */ +export declare function instanceOfV1SellerActionsProductsListRequest(value: object): value is V1SellerActionsProductsListRequest; +export declare function V1SellerActionsProductsListRequestFromJSON(json: any): V1SellerActionsProductsListRequest; +export declare function V1SellerActionsProductsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsListRequest; +export declare function V1SellerActionsProductsListRequestToJSON(value?: V1SellerActionsProductsListRequest | null): any; diff --git a/dist/models/V1SellerActionsProductsListRequest.js b/dist/models/V1SellerActionsProductsListRequest.js new file mode 100644 index 0000000..57b8e5c --- /dev/null +++ b/dist/models/V1SellerActionsProductsListRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsListRequest = instanceOfV1SellerActionsProductsListRequest; +exports.V1SellerActionsProductsListRequestFromJSON = V1SellerActionsProductsListRequestFromJSON; +exports.V1SellerActionsProductsListRequestFromJSONTyped = V1SellerActionsProductsListRequestFromJSONTyped; +exports.V1SellerActionsProductsListRequestToJSON = V1SellerActionsProductsListRequestToJSON; +/** + * Check if a given object implements the V1SellerActionsProductsListRequest interface. + */ +function instanceOfV1SellerActionsProductsListRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1SellerActionsProductsListRequestFromJSON(json) { + return V1SellerActionsProductsListRequestFromJSONTyped(json, false); +} +function V1SellerActionsProductsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + }; +} +function V1SellerActionsProductsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'cursor': value['cursor'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1SellerActionsProductsListResponse.d.ts b/dist/models/V1SellerActionsProductsListResponse.d.ts new file mode 100644 index 0000000..fcae41c --- /dev/null +++ b/dist/models/V1SellerActionsProductsListResponse.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsListResponseProduct } from './V1SellerActionsProductsListResponseProduct'; +/** + * + * @export + * @interface V1SellerActionsProductsListResponse + */ +export interface V1SellerActionsProductsListResponse { + /** + * Указатель для выборки следующих данных. + * @type {number} + * @memberof V1SellerActionsProductsListResponse + */ + cursor?: number; + /** + * Признак, что в ответе вернулась только часть значений: + * - `true` — сделайте повторный запрос с новым параметром `cursor` для получения остальных значений; + * - `false` — ответ содержит все значения. + * + * @type {boolean} + * @memberof V1SellerActionsProductsListResponse + */ + has_next?: boolean; + /** + * Информация о товарах. + * @type {Array} + * @memberof V1SellerActionsProductsListResponse + */ + products?: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsListResponse interface. + */ +export declare function instanceOfV1SellerActionsProductsListResponse(value: object): value is V1SellerActionsProductsListResponse; +export declare function V1SellerActionsProductsListResponseFromJSON(json: any): V1SellerActionsProductsListResponse; +export declare function V1SellerActionsProductsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsListResponse; +export declare function V1SellerActionsProductsListResponseToJSON(value?: V1SellerActionsProductsListResponse | null): any; diff --git a/dist/models/V1SellerActionsProductsListResponse.js b/dist/models/V1SellerActionsProductsListResponse.js new file mode 100644 index 0000000..582b3a0 --- /dev/null +++ b/dist/models/V1SellerActionsProductsListResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsListResponse = instanceOfV1SellerActionsProductsListResponse; +exports.V1SellerActionsProductsListResponseFromJSON = V1SellerActionsProductsListResponseFromJSON; +exports.V1SellerActionsProductsListResponseFromJSONTyped = V1SellerActionsProductsListResponseFromJSONTyped; +exports.V1SellerActionsProductsListResponseToJSON = V1SellerActionsProductsListResponseToJSON; +const V1SellerActionsProductsListResponseProduct_1 = require("./V1SellerActionsProductsListResponseProduct"); +/** + * Check if a given object implements the V1SellerActionsProductsListResponse interface. + */ +function instanceOfV1SellerActionsProductsListResponse(value) { + return true; +} +function V1SellerActionsProductsListResponseFromJSON(json) { + return V1SellerActionsProductsListResponseFromJSONTyped(json, false); +} +function V1SellerActionsProductsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(V1SellerActionsProductsListResponseProduct_1.V1SellerActionsProductsListResponseProductFromJSON)), + }; +} +function V1SellerActionsProductsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(V1SellerActionsProductsListResponseProduct_1.V1SellerActionsProductsListResponseProductToJSON)), + }; +} diff --git a/dist/models/V1SellerActionsProductsListResponseProduct.d.ts b/dist/models/V1SellerActionsProductsListResponseProduct.d.ts new file mode 100644 index 0000000..671c7d5 --- /dev/null +++ b/dist/models/V1SellerActionsProductsListResponseProduct.d.ts @@ -0,0 +1,105 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum } from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +/** + * + * @export + * @interface V1SellerActionsProductsListResponseProduct + */ +export interface V1SellerActionsProductsListResponseProduct { + /** + * Цена товара с учётом акции. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + action_price?: number; + /** + * Базовая цена, по которой товар продаётся на Ozon, если не участвует в акции. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + base_price?: number; + /** + * Валюта. + * @type {string} + * @memberof V1SellerActionsProductsListResponseProduct + */ + currency?: string; + /** + * Процент скидки. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + discount_percent?: number; + /** + * `true`, если товар участвует в акции. + * + * @type {boolean} + * @memberof V1SellerActionsProductsListResponseProduct + */ + is_active?: boolean; + /** + * Минимальная цена для автоматического добавления товара в акцию. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + min_seller_price?: number; + /** + * Название товара. + * @type {string} + * @memberof V1SellerActionsProductsListResponseProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V1SellerActionsProductsListResponseProduct + */ + offer_id?: string; + /** + * Цена товара для покупателя. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + product_id?: number; + /** + * Размер кванта. + * @type {number} + * @memberof V1SellerActionsProductsListResponseProduct + */ + quant_size?: number; + /** + * + * @type {V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum} + * @memberof V1SellerActionsProductsListResponseProduct + */ + quant_type?: V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof V1SellerActionsProductsListResponseProduct + */ + sku?: Array; +} +/** + * Check if a given object implements the V1SellerActionsProductsListResponseProduct interface. + */ +export declare function instanceOfV1SellerActionsProductsListResponseProduct(value: object): value is V1SellerActionsProductsListResponseProduct; +export declare function V1SellerActionsProductsListResponseProductFromJSON(json: any): V1SellerActionsProductsListResponseProduct; +export declare function V1SellerActionsProductsListResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsProductsListResponseProduct; +export declare function V1SellerActionsProductsListResponseProductToJSON(value?: V1SellerActionsProductsListResponseProduct | null): any; diff --git a/dist/models/V1SellerActionsProductsListResponseProduct.js b/dist/models/V1SellerActionsProductsListResponseProduct.js new file mode 100644 index 0000000..ae5fbda --- /dev/null +++ b/dist/models/V1SellerActionsProductsListResponseProduct.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsProductsListResponseProduct = instanceOfV1SellerActionsProductsListResponseProduct; +exports.V1SellerActionsProductsListResponseProductFromJSON = V1SellerActionsProductsListResponseProductFromJSON; +exports.V1SellerActionsProductsListResponseProductFromJSONTyped = V1SellerActionsProductsListResponseProductFromJSONTyped; +exports.V1SellerActionsProductsListResponseProductToJSON = V1SellerActionsProductsListResponseProductToJSON; +const V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum_1 = require("./V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum"); +/** + * Check if a given object implements the V1SellerActionsProductsListResponseProduct interface. + */ +function instanceOfV1SellerActionsProductsListResponseProduct(value) { + return true; +} +function V1SellerActionsProductsListResponseProductFromJSON(json) { + return V1SellerActionsProductsListResponseProductFromJSONTyped(json, false); +} +function V1SellerActionsProductsListResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_price': json['action_price'] == null ? undefined : json['action_price'], + 'base_price': json['base_price'] == null ? undefined : json['base_price'], + 'currency': json['currency'] == null ? undefined : json['currency'], + 'discount_percent': json['discount_percent'] == null ? undefined : json['discount_percent'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'min_seller_price': json['min_seller_price'] == null ? undefined : json['min_seller_price'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'quant_size': json['quant_size'] == null ? undefined : json['quant_size'], + 'quant_type': json['quant_type'] == null ? undefined : (0, V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum_1.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumFromJSON)(json['quant_type']), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1SellerActionsProductsListResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_price': value['action_price'], + 'base_price': value['base_price'], + 'currency': value['currency'], + 'discount_percent': value['discount_percent'], + 'is_active': value['is_active'], + 'min_seller_price': value['min_seller_price'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'product_id': value['product_id'], + 'quant_size': value['quant_size'], + 'quant_type': (0, V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum_1.V1SellerActionsProductsCandidatesResponseProductQuantTypeEnumToJSON)(value['quant_type']), + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1SellerActionsUpdateDiscountRequest.d.ts b/dist/models/V1SellerActionsUpdateDiscountRequest.d.ts new file mode 100644 index 0000000..307c71d --- /dev/null +++ b/dist/models/V1SellerActionsUpdateDiscountRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateDiscountRequestActionParameters } from './V1SellerActionsUpdateDiscountRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateDiscountRequest + */ +export interface V1SellerActionsUpdateDiscountRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateDiscountRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateDiscountRequestActionParameters} + * @memberof V1SellerActionsUpdateDiscountRequest + */ + action_parameters?: V1SellerActionsUpdateDiscountRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateDiscountRequest(value: object): value is V1SellerActionsUpdateDiscountRequest; +export declare function V1SellerActionsUpdateDiscountRequestFromJSON(json: any): V1SellerActionsUpdateDiscountRequest; +export declare function V1SellerActionsUpdateDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateDiscountRequest; +export declare function V1SellerActionsUpdateDiscountRequestToJSON(value?: V1SellerActionsUpdateDiscountRequest | null): any; diff --git a/dist/models/V1SellerActionsUpdateDiscountRequest.js b/dist/models/V1SellerActionsUpdateDiscountRequest.js new file mode 100644 index 0000000..f9eba96 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateDiscountRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateDiscountRequest = instanceOfV1SellerActionsUpdateDiscountRequest; +exports.V1SellerActionsUpdateDiscountRequestFromJSON = V1SellerActionsUpdateDiscountRequestFromJSON; +exports.V1SellerActionsUpdateDiscountRequestFromJSONTyped = V1SellerActionsUpdateDiscountRequestFromJSONTyped; +exports.V1SellerActionsUpdateDiscountRequestToJSON = V1SellerActionsUpdateDiscountRequestToJSON; +const V1SellerActionsUpdateDiscountRequestActionParameters_1 = require("./V1SellerActionsUpdateDiscountRequestActionParameters"); +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountRequest interface. + */ +function instanceOfV1SellerActionsUpdateDiscountRequest(value) { + return true; +} +function V1SellerActionsUpdateDiscountRequestFromJSON(json) { + return V1SellerActionsUpdateDiscountRequestFromJSONTyped(json, false); +} +function V1SellerActionsUpdateDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : (0, V1SellerActionsUpdateDiscountRequestActionParameters_1.V1SellerActionsUpdateDiscountRequestActionParametersFromJSON)(json['action_parameters']), + }; +} +function V1SellerActionsUpdateDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': (0, V1SellerActionsUpdateDiscountRequestActionParameters_1.V1SellerActionsUpdateDiscountRequestActionParametersToJSON)(value['action_parameters']), + }; +} diff --git a/dist/models/V1SellerActionsUpdateDiscountRequestActionParameters.d.ts b/dist/models/V1SellerActionsUpdateDiscountRequestActionParameters.d.ts new file mode 100644 index 0000000..1f53e15 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateDiscountRequestActionParameters.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateDiscountRequestActionParameters + */ +export interface V1SellerActionsUpdateDiscountRequestActionParameters { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountRequestActionParameters + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountRequestActionParameters + */ + date_start: string; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountRequestActionParameters + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateDiscountRequestActionParameters(value: object): value is V1SellerActionsUpdateDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountRequestActionParametersToJSON(value?: V1SellerActionsUpdateDiscountRequestActionParameters | null): any; diff --git a/dist/models/V1SellerActionsUpdateDiscountRequestActionParameters.js b/dist/models/V1SellerActionsUpdateDiscountRequestActionParameters.js new file mode 100644 index 0000000..df1c38f --- /dev/null +++ b/dist/models/V1SellerActionsUpdateDiscountRequestActionParameters.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateDiscountRequestActionParameters = instanceOfV1SellerActionsUpdateDiscountRequestActionParameters; +exports.V1SellerActionsUpdateDiscountRequestActionParametersFromJSON = V1SellerActionsUpdateDiscountRequestActionParametersFromJSON; +exports.V1SellerActionsUpdateDiscountRequestActionParametersFromJSONTyped = V1SellerActionsUpdateDiscountRequestActionParametersFromJSONTyped; +exports.V1SellerActionsUpdateDiscountRequestActionParametersToJSON = V1SellerActionsUpdateDiscountRequestActionParametersToJSON; +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountRequestActionParameters interface. + */ +function instanceOfV1SellerActionsUpdateDiscountRequestActionParameters(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +function V1SellerActionsUpdateDiscountRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateDiscountRequestActionParametersFromJSONTyped(json, false); +} +function V1SellerActionsUpdateDiscountRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'title': json['title'], + }; +} +function V1SellerActionsUpdateDiscountRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'title': value['title'], + }; +} diff --git a/dist/models/V1SellerActionsUpdateDiscountWithConditionRequest.d.ts b/dist/models/V1SellerActionsUpdateDiscountWithConditionRequest.d.ts new file mode 100644 index 0000000..622327a --- /dev/null +++ b/dist/models/V1SellerActionsUpdateDiscountWithConditionRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateDiscountWithConditionRequestActionParameters } from './V1SellerActionsUpdateDiscountWithConditionRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateDiscountWithConditionRequest + */ +export interface V1SellerActionsUpdateDiscountWithConditionRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateDiscountWithConditionRequestActionParameters} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequest + */ + action_parameters?: V1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateDiscountWithConditionRequest(value: object): value is V1SellerActionsUpdateDiscountWithConditionRequest; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestFromJSON(json: any): V1SellerActionsUpdateDiscountWithConditionRequest; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateDiscountWithConditionRequest; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestToJSON(value?: V1SellerActionsUpdateDiscountWithConditionRequest | null): any; diff --git a/dist/models/V1SellerActionsUpdateDiscountWithConditionRequest.js b/dist/models/V1SellerActionsUpdateDiscountWithConditionRequest.js new file mode 100644 index 0000000..6effa42 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateDiscountWithConditionRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateDiscountWithConditionRequest = instanceOfV1SellerActionsUpdateDiscountWithConditionRequest; +exports.V1SellerActionsUpdateDiscountWithConditionRequestFromJSON = V1SellerActionsUpdateDiscountWithConditionRequestFromJSON; +exports.V1SellerActionsUpdateDiscountWithConditionRequestFromJSONTyped = V1SellerActionsUpdateDiscountWithConditionRequestFromJSONTyped; +exports.V1SellerActionsUpdateDiscountWithConditionRequestToJSON = V1SellerActionsUpdateDiscountWithConditionRequestToJSON; +const V1SellerActionsUpdateDiscountWithConditionRequestActionParameters_1 = require("./V1SellerActionsUpdateDiscountWithConditionRequestActionParameters"); +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequest interface. + */ +function instanceOfV1SellerActionsUpdateDiscountWithConditionRequest(value) { + return true; +} +function V1SellerActionsUpdateDiscountWithConditionRequestFromJSON(json) { + return V1SellerActionsUpdateDiscountWithConditionRequestFromJSONTyped(json, false); +} +function V1SellerActionsUpdateDiscountWithConditionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : (0, V1SellerActionsUpdateDiscountWithConditionRequestActionParameters_1.V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON)(json['action_parameters']), + }; +} +function V1SellerActionsUpdateDiscountWithConditionRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': (0, V1SellerActionsUpdateDiscountWithConditionRequestActionParameters_1.V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON)(value['action_parameters']), + }; +} diff --git a/dist/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.d.ts b/dist/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.d.ts new file mode 100644 index 0000000..c6b0851 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ +export interface V1SellerActionsUpdateDiscountWithConditionRequestActionParameters { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + date_start: string; + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + discount_value: number; + /** + * Минимальная сумма заказа для получения скидки. + * @type {number} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + min_order_amount: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateDiscountWithConditionRequestActionParameters + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters(value: object): value is V1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +export declare function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON(value?: V1SellerActionsUpdateDiscountWithConditionRequestActionParameters | null): any; diff --git a/dist/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.js b/dist/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.js new file mode 100644 index 0000000..94666bd --- /dev/null +++ b/dist/models/V1SellerActionsUpdateDiscountWithConditionRequestActionParameters.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters = instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters; +exports.V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON = V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON; +exports.V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped = V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped; +exports.V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON = V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON; +/** + * Check if a given object implements the V1SellerActionsUpdateDiscountWithConditionRequestActionParameters interface. + */ +function instanceOfV1SellerActionsUpdateDiscountWithConditionRequestActionParameters(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('min_order_amount' in value) || value['min_order_amount'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped(json, false); +} +function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_value': json['discount_value'], + 'min_order_amount': json['min_order_amount'], + 'title': json['title'], + }; +} +function V1SellerActionsUpdateDiscountWithConditionRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_value': value['discount_value'], + 'min_order_amount': value['min_order_amount'], + 'title': value['title'], + }; +} diff --git a/dist/models/V1SellerActionsUpdateInstallmentRequest.d.ts b/dist/models/V1SellerActionsUpdateInstallmentRequest.d.ts new file mode 100644 index 0000000..f2064ce --- /dev/null +++ b/dist/models/V1SellerActionsUpdateInstallmentRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateInstallmentRequestActionParameters } from './V1SellerActionsUpdateInstallmentRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateInstallmentRequest + */ +export interface V1SellerActionsUpdateInstallmentRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateInstallmentRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateInstallmentRequestActionParameters} + * @memberof V1SellerActionsUpdateInstallmentRequest + */ + action_parameters?: V1SellerActionsUpdateInstallmentRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateInstallmentRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateInstallmentRequest(value: object): value is V1SellerActionsUpdateInstallmentRequest; +export declare function V1SellerActionsUpdateInstallmentRequestFromJSON(json: any): V1SellerActionsUpdateInstallmentRequest; +export declare function V1SellerActionsUpdateInstallmentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateInstallmentRequest; +export declare function V1SellerActionsUpdateInstallmentRequestToJSON(value?: V1SellerActionsUpdateInstallmentRequest | null): any; diff --git a/dist/models/V1SellerActionsUpdateInstallmentRequest.js b/dist/models/V1SellerActionsUpdateInstallmentRequest.js new file mode 100644 index 0000000..0c42c19 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateInstallmentRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateInstallmentRequest = instanceOfV1SellerActionsUpdateInstallmentRequest; +exports.V1SellerActionsUpdateInstallmentRequestFromJSON = V1SellerActionsUpdateInstallmentRequestFromJSON; +exports.V1SellerActionsUpdateInstallmentRequestFromJSONTyped = V1SellerActionsUpdateInstallmentRequestFromJSONTyped; +exports.V1SellerActionsUpdateInstallmentRequestToJSON = V1SellerActionsUpdateInstallmentRequestToJSON; +const V1SellerActionsUpdateInstallmentRequestActionParameters_1 = require("./V1SellerActionsUpdateInstallmentRequestActionParameters"); +/** + * Check if a given object implements the V1SellerActionsUpdateInstallmentRequest interface. + */ +function instanceOfV1SellerActionsUpdateInstallmentRequest(value) { + return true; +} +function V1SellerActionsUpdateInstallmentRequestFromJSON(json) { + return V1SellerActionsUpdateInstallmentRequestFromJSONTyped(json, false); +} +function V1SellerActionsUpdateInstallmentRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : (0, V1SellerActionsUpdateInstallmentRequestActionParameters_1.V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON)(json['action_parameters']), + }; +} +function V1SellerActionsUpdateInstallmentRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': (0, V1SellerActionsUpdateInstallmentRequestActionParameters_1.V1SellerActionsUpdateInstallmentRequestActionParametersToJSON)(value['action_parameters']), + }; +} diff --git a/dist/models/V1SellerActionsUpdateInstallmentRequestActionParameters.d.ts b/dist/models/V1SellerActionsUpdateInstallmentRequestActionParameters.d.ts new file mode 100644 index 0000000..9b0d72a --- /dev/null +++ b/dist/models/V1SellerActionsUpdateInstallmentRequestActionParameters.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateInstallmentRequestActionParameters + */ +export interface V1SellerActionsUpdateInstallmentRequestActionParameters { + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateInstallmentRequestActionParameters + */ + date_start: string; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateInstallmentRequestActionParameters + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsUpdateInstallmentRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateInstallmentRequestActionParameters(value: object): value is V1SellerActionsUpdateInstallmentRequestActionParameters; +export declare function V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateInstallmentRequestActionParameters; +export declare function V1SellerActionsUpdateInstallmentRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateInstallmentRequestActionParameters; +export declare function V1SellerActionsUpdateInstallmentRequestActionParametersToJSON(value?: V1SellerActionsUpdateInstallmentRequestActionParameters | null): any; diff --git a/dist/models/V1SellerActionsUpdateInstallmentRequestActionParameters.js b/dist/models/V1SellerActionsUpdateInstallmentRequestActionParameters.js new file mode 100644 index 0000000..b514a84 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateInstallmentRequestActionParameters.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateInstallmentRequestActionParameters = instanceOfV1SellerActionsUpdateInstallmentRequestActionParameters; +exports.V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON = V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON; +exports.V1SellerActionsUpdateInstallmentRequestActionParametersFromJSONTyped = V1SellerActionsUpdateInstallmentRequestActionParametersFromJSONTyped; +exports.V1SellerActionsUpdateInstallmentRequestActionParametersToJSON = V1SellerActionsUpdateInstallmentRequestActionParametersToJSON; +/** + * Check if a given object implements the V1SellerActionsUpdateInstallmentRequestActionParameters interface. + */ +function instanceOfV1SellerActionsUpdateInstallmentRequestActionParameters(value) { + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +function V1SellerActionsUpdateInstallmentRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateInstallmentRequestActionParametersFromJSONTyped(json, false); +} +function V1SellerActionsUpdateInstallmentRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_start': json['date_start'], + 'title': json['title'], + }; +} +function V1SellerActionsUpdateInstallmentRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_start': value['date_start'], + 'title': value['title'], + }; +} diff --git a/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequest.d.ts b/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequest.d.ts new file mode 100644 index 0000000..1983c2b --- /dev/null +++ b/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters } from './V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateMultiLevelDiscountRequest + */ +export interface V1SellerActionsUpdateMultiLevelDiscountRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequest + */ + action_parameters?: V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateMultiLevelDiscountRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateMultiLevelDiscountRequest(value: object): value is V1SellerActionsUpdateMultiLevelDiscountRequest; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestFromJSON(json: any): V1SellerActionsUpdateMultiLevelDiscountRequest; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateMultiLevelDiscountRequest; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestToJSON(value?: V1SellerActionsUpdateMultiLevelDiscountRequest | null): any; diff --git a/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequest.js b/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequest.js new file mode 100644 index 0000000..71001dc --- /dev/null +++ b/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateMultiLevelDiscountRequest = instanceOfV1SellerActionsUpdateMultiLevelDiscountRequest; +exports.V1SellerActionsUpdateMultiLevelDiscountRequestFromJSON = V1SellerActionsUpdateMultiLevelDiscountRequestFromJSON; +exports.V1SellerActionsUpdateMultiLevelDiscountRequestFromJSONTyped = V1SellerActionsUpdateMultiLevelDiscountRequestFromJSONTyped; +exports.V1SellerActionsUpdateMultiLevelDiscountRequestToJSON = V1SellerActionsUpdateMultiLevelDiscountRequestToJSON; +const V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters_1 = require("./V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters"); +/** + * Check if a given object implements the V1SellerActionsUpdateMultiLevelDiscountRequest interface. + */ +function instanceOfV1SellerActionsUpdateMultiLevelDiscountRequest(value) { + return true; +} +function V1SellerActionsUpdateMultiLevelDiscountRequestFromJSON(json) { + return V1SellerActionsUpdateMultiLevelDiscountRequestFromJSONTyped(json, false); +} +function V1SellerActionsUpdateMultiLevelDiscountRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : (0, V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters_1.V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON)(json['action_parameters']), + }; +} +function V1SellerActionsUpdateMultiLevelDiscountRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': (0, V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters_1.V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON)(value['action_parameters']), + }; +} diff --git a/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.d.ts b/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.d.ts new file mode 100644 index 0000000..8270c68 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel } from './SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel'; +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ +export interface V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters { + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + date_start: string; + /** + * Уровни скидки. + * @type {Array} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + discount_levels: Array; + /** + * `true`, если акция только для юридических лиц. + * + * @type {boolean} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + is_legal_entities_segment?: boolean; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters + */ + title: string; +} +/** + * Check if a given object implements the V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateMultiLevelDiscountRequestActionParameters(value: object): value is V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +export declare function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON(value?: V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters | null): any; diff --git a/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.js b/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.js new file mode 100644 index 0000000..dfde91f --- /dev/null +++ b/dist/models/V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateMultiLevelDiscountRequestActionParameters = instanceOfV1SellerActionsUpdateMultiLevelDiscountRequestActionParameters; +exports.V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON = V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON; +exports.V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSONTyped = V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSONTyped; +exports.V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON = V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON; +const SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel_1 = require("./SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel"); +/** + * Check if a given object implements the V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters interface. + */ +function instanceOfV1SellerActionsUpdateMultiLevelDiscountRequestActionParameters(value) { + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_levels' in value) || value['discount_levels'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSONTyped(json, false); +} +function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_levels': (json['discount_levels'].map(SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel_1.SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelFromJSON)), + 'is_legal_entities_segment': json['is_legal_entities_segment'] == null ? undefined : json['is_legal_entities_segment'], + 'title': json['title'], + }; +} +function V1SellerActionsUpdateMultiLevelDiscountRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_levels': (value['discount_levels'].map(SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel_1.SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevelToJSON)), + 'is_legal_entities_segment': value['is_legal_entities_segment'], + 'title': value['title'], + }; +} diff --git a/dist/models/V1SellerActionsUpdateVoucherRequest.d.ts b/dist/models/V1SellerActionsUpdateVoucherRequest.d.ts new file mode 100644 index 0000000..ad70ba4 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateVoucherRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SellerActionsUpdateVoucherRequestActionParameters } from './V1SellerActionsUpdateVoucherRequestActionParameters'; +/** + * + * @export + * @interface V1SellerActionsUpdateVoucherRequest + */ +export interface V1SellerActionsUpdateVoucherRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsUpdateVoucherRequest + */ + action_id?: number; + /** + * + * @type {V1SellerActionsUpdateVoucherRequestActionParameters} + * @memberof V1SellerActionsUpdateVoucherRequest + */ + action_parameters?: V1SellerActionsUpdateVoucherRequestActionParameters; +} +/** + * Check if a given object implements the V1SellerActionsUpdateVoucherRequest interface. + */ +export declare function instanceOfV1SellerActionsUpdateVoucherRequest(value: object): value is V1SellerActionsUpdateVoucherRequest; +export declare function V1SellerActionsUpdateVoucherRequestFromJSON(json: any): V1SellerActionsUpdateVoucherRequest; +export declare function V1SellerActionsUpdateVoucherRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateVoucherRequest; +export declare function V1SellerActionsUpdateVoucherRequestToJSON(value?: V1SellerActionsUpdateVoucherRequest | null): any; diff --git a/dist/models/V1SellerActionsUpdateVoucherRequest.js b/dist/models/V1SellerActionsUpdateVoucherRequest.js new file mode 100644 index 0000000..79b274d --- /dev/null +++ b/dist/models/V1SellerActionsUpdateVoucherRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateVoucherRequest = instanceOfV1SellerActionsUpdateVoucherRequest; +exports.V1SellerActionsUpdateVoucherRequestFromJSON = V1SellerActionsUpdateVoucherRequestFromJSON; +exports.V1SellerActionsUpdateVoucherRequestFromJSONTyped = V1SellerActionsUpdateVoucherRequestFromJSONTyped; +exports.V1SellerActionsUpdateVoucherRequestToJSON = V1SellerActionsUpdateVoucherRequestToJSON; +const V1SellerActionsUpdateVoucherRequestActionParameters_1 = require("./V1SellerActionsUpdateVoucherRequestActionParameters"); +/** + * Check if a given object implements the V1SellerActionsUpdateVoucherRequest interface. + */ +function instanceOfV1SellerActionsUpdateVoucherRequest(value) { + return true; +} +function V1SellerActionsUpdateVoucherRequestFromJSON(json) { + return V1SellerActionsUpdateVoucherRequestFromJSONTyped(json, false); +} +function V1SellerActionsUpdateVoucherRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'] == null ? undefined : json['action_id'], + 'action_parameters': json['action_parameters'] == null ? undefined : (0, V1SellerActionsUpdateVoucherRequestActionParameters_1.V1SellerActionsUpdateVoucherRequestActionParametersFromJSON)(json['action_parameters']), + }; +} +function V1SellerActionsUpdateVoucherRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + 'action_parameters': (0, V1SellerActionsUpdateVoucherRequestActionParameters_1.V1SellerActionsUpdateVoucherRequestActionParametersToJSON)(value['action_parameters']), + }; +} diff --git a/dist/models/V1SellerActionsUpdateVoucherRequestActionParameters.d.ts b/dist/models/V1SellerActionsUpdateVoucherRequestActionParameters.d.ts new file mode 100644 index 0000000..a0a2aa0 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateVoucherRequestActionParameters.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры акции. + * @export + * @interface V1SellerActionsUpdateVoucherRequestActionParameters + */ +export interface V1SellerActionsUpdateVoucherRequestActionParameters { + /** + * Бюджет акции. Перед тем как его изменить, выключите акцию методом [/v1/seller-actions/change-activity](#operation/SellerActionsChangeActivity). + * @type {number} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + budget: number; + /** + * Дата и время окончания акции. + * @type {string} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + date_end: string; + /** + * Дата и время начала акции. + * @type {string} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + date_start: string; + /** + * Размер скидки. + * @type {number} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + discount_value: number; + /** + * Название акции. + * @type {string} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + title: string; + /** + * Идентификаторы пользователей, которым доступен промокод. + * @type {Array} + * @memberof V1SellerActionsUpdateVoucherRequestActionParameters + */ + user_ids?: Array; +} +/** + * Check if a given object implements the V1SellerActionsUpdateVoucherRequestActionParameters interface. + */ +export declare function instanceOfV1SellerActionsUpdateVoucherRequestActionParameters(value: object): value is V1SellerActionsUpdateVoucherRequestActionParameters; +export declare function V1SellerActionsUpdateVoucherRequestActionParametersFromJSON(json: any): V1SellerActionsUpdateVoucherRequestActionParameters; +export declare function V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsUpdateVoucherRequestActionParameters; +export declare function V1SellerActionsUpdateVoucherRequestActionParametersToJSON(value?: V1SellerActionsUpdateVoucherRequestActionParameters | null): any; diff --git a/dist/models/V1SellerActionsUpdateVoucherRequestActionParameters.js b/dist/models/V1SellerActionsUpdateVoucherRequestActionParameters.js new file mode 100644 index 0000000..d0db8a2 --- /dev/null +++ b/dist/models/V1SellerActionsUpdateVoucherRequestActionParameters.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsUpdateVoucherRequestActionParameters = instanceOfV1SellerActionsUpdateVoucherRequestActionParameters; +exports.V1SellerActionsUpdateVoucherRequestActionParametersFromJSON = V1SellerActionsUpdateVoucherRequestActionParametersFromJSON; +exports.V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped = V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped; +exports.V1SellerActionsUpdateVoucherRequestActionParametersToJSON = V1SellerActionsUpdateVoucherRequestActionParametersToJSON; +/** + * Check if a given object implements the V1SellerActionsUpdateVoucherRequestActionParameters interface. + */ +function instanceOfV1SellerActionsUpdateVoucherRequestActionParameters(value) { + if (!('budget' in value) || value['budget'] === undefined) + return false; + if (!('date_end' in value) || value['date_end'] === undefined) + return false; + if (!('date_start' in value) || value['date_start'] === undefined) + return false; + if (!('discount_value' in value) || value['discount_value'] === undefined) + return false; + if (!('title' in value) || value['title'] === undefined) + return false; + return true; +} +function V1SellerActionsUpdateVoucherRequestActionParametersFromJSON(json) { + return V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped(json, false); +} +function V1SellerActionsUpdateVoucherRequestActionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'budget': json['budget'], + 'date_end': json['date_end'], + 'date_start': json['date_start'], + 'discount_value': json['discount_value'], + 'title': json['title'], + 'user_ids': json['user_ids'] == null ? undefined : json['user_ids'], + }; +} +function V1SellerActionsUpdateVoucherRequestActionParametersToJSON(value) { + if (value == null) { + return value; + } + return { + 'budget': value['budget'], + 'date_end': value['date_end'], + 'date_start': value['date_start'], + 'discount_value': value['discount_value'], + 'title': value['title'], + 'user_ids': value['user_ids'], + }; +} diff --git a/dist/models/V1SellerActionsVoucherGetRequest.d.ts b/dist/models/V1SellerActionsVoucherGetRequest.d.ts new file mode 100644 index 0000000..5df180d --- /dev/null +++ b/dist/models/V1SellerActionsVoucherGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsVoucherGetRequest + */ +export interface V1SellerActionsVoucherGetRequest { + /** + * Идентификатор акции. Получите значение параметра методом [/v1/seller-actions/list](#operation/SellerActionsList). + * @type {number} + * @memberof V1SellerActionsVoucherGetRequest + */ + action_id: number; +} +/** + * Check if a given object implements the V1SellerActionsVoucherGetRequest interface. + */ +export declare function instanceOfV1SellerActionsVoucherGetRequest(value: object): value is V1SellerActionsVoucherGetRequest; +export declare function V1SellerActionsVoucherGetRequestFromJSON(json: any): V1SellerActionsVoucherGetRequest; +export declare function V1SellerActionsVoucherGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsVoucherGetRequest; +export declare function V1SellerActionsVoucherGetRequestToJSON(value?: V1SellerActionsVoucherGetRequest | null): any; diff --git a/dist/models/V1SellerActionsVoucherGetRequest.js b/dist/models/V1SellerActionsVoucherGetRequest.js new file mode 100644 index 0000000..1ab81af --- /dev/null +++ b/dist/models/V1SellerActionsVoucherGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsVoucherGetRequest = instanceOfV1SellerActionsVoucherGetRequest; +exports.V1SellerActionsVoucherGetRequestFromJSON = V1SellerActionsVoucherGetRequestFromJSON; +exports.V1SellerActionsVoucherGetRequestFromJSONTyped = V1SellerActionsVoucherGetRequestFromJSONTyped; +exports.V1SellerActionsVoucherGetRequestToJSON = V1SellerActionsVoucherGetRequestToJSON; +/** + * Check if a given object implements the V1SellerActionsVoucherGetRequest interface. + */ +function instanceOfV1SellerActionsVoucherGetRequest(value) { + if (!('action_id' in value) || value['action_id'] === undefined) + return false; + return true; +} +function V1SellerActionsVoucherGetRequestFromJSON(json) { + return V1SellerActionsVoucherGetRequestFromJSONTyped(json, false); +} +function V1SellerActionsVoucherGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'action_id': json['action_id'], + }; +} +function V1SellerActionsVoucherGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'action_id': value['action_id'], + }; +} diff --git a/dist/models/V1SellerActionsVoucherGetResponse.d.ts b/dist/models/V1SellerActionsVoucherGetResponse.d.ts new file mode 100644 index 0000000..6abecaa --- /dev/null +++ b/dist/models/V1SellerActionsVoucherGetResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SellerActionsVoucherGetResponse + */ +export interface V1SellerActionsVoucherGetResponse { + /** + * Ссылка на CSV-файл с промокодами. + * @type {string} + * @memberof V1SellerActionsVoucherGetResponse + */ + file?: string; +} +/** + * Check if a given object implements the V1SellerActionsVoucherGetResponse interface. + */ +export declare function instanceOfV1SellerActionsVoucherGetResponse(value: object): value is V1SellerActionsVoucherGetResponse; +export declare function V1SellerActionsVoucherGetResponseFromJSON(json: any): V1SellerActionsVoucherGetResponse; +export declare function V1SellerActionsVoucherGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerActionsVoucherGetResponse; +export declare function V1SellerActionsVoucherGetResponseToJSON(value?: V1SellerActionsVoucherGetResponse | null): any; diff --git a/dist/models/V1SellerActionsVoucherGetResponse.js b/dist/models/V1SellerActionsVoucherGetResponse.js new file mode 100644 index 0000000..7cb0da3 --- /dev/null +++ b/dist/models/V1SellerActionsVoucherGetResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerActionsVoucherGetResponse = instanceOfV1SellerActionsVoucherGetResponse; +exports.V1SellerActionsVoucherGetResponseFromJSON = V1SellerActionsVoucherGetResponseFromJSON; +exports.V1SellerActionsVoucherGetResponseFromJSONTyped = V1SellerActionsVoucherGetResponseFromJSONTyped; +exports.V1SellerActionsVoucherGetResponseToJSON = V1SellerActionsVoucherGetResponseToJSON; +/** + * Check if a given object implements the V1SellerActionsVoucherGetResponse interface. + */ +function instanceOfV1SellerActionsVoucherGetResponse(value) { + return true; +} +function V1SellerActionsVoucherGetResponseFromJSON(json) { + return V1SellerActionsVoucherGetResponseFromJSONTyped(json, false); +} +function V1SellerActionsVoucherGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file': json['file'] == null ? undefined : json['file'], + }; +} +function V1SellerActionsVoucherGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file': value['file'], + }; +} diff --git a/dist/models/V1SellerInfoResponse.d.ts b/dist/models/V1SellerInfoResponse.d.ts new file mode 100644 index 0000000..cb9e9a1 --- /dev/null +++ b/dist/models/V1SellerInfoResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerInfoResponseCompany } from './SellerInfoResponseCompany'; +import type { SellerInfoResponseRating } from './SellerInfoResponseRating'; +import type { SellerInfoResponseSubscription } from './SellerInfoResponseSubscription'; +/** + * + * @export + * @interface V1SellerInfoResponse + */ +export interface V1SellerInfoResponse { + /** + * + * @type {SellerInfoResponseCompany} + * @memberof V1SellerInfoResponse + */ + company?: SellerInfoResponseCompany; + /** + * Список рейтингов. + * @type {Array} + * @memberof V1SellerInfoResponse + */ + ratings?: Array; + /** + * + * @type {SellerInfoResponseSubscription} + * @memberof V1SellerInfoResponse + */ + subscription?: SellerInfoResponseSubscription; +} +/** + * Check if a given object implements the V1SellerInfoResponse interface. + */ +export declare function instanceOfV1SellerInfoResponse(value: object): value is V1SellerInfoResponse; +export declare function V1SellerInfoResponseFromJSON(json: any): V1SellerInfoResponse; +export declare function V1SellerInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerInfoResponse; +export declare function V1SellerInfoResponseToJSON(value?: V1SellerInfoResponse | null): any; diff --git a/dist/models/V1SellerInfoResponse.js b/dist/models/V1SellerInfoResponse.js new file mode 100644 index 0000000..9a3d11b --- /dev/null +++ b/dist/models/V1SellerInfoResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerInfoResponse = instanceOfV1SellerInfoResponse; +exports.V1SellerInfoResponseFromJSON = V1SellerInfoResponseFromJSON; +exports.V1SellerInfoResponseFromJSONTyped = V1SellerInfoResponseFromJSONTyped; +exports.V1SellerInfoResponseToJSON = V1SellerInfoResponseToJSON; +const SellerInfoResponseCompany_1 = require("./SellerInfoResponseCompany"); +const SellerInfoResponseRating_1 = require("./SellerInfoResponseRating"); +const SellerInfoResponseSubscription_1 = require("./SellerInfoResponseSubscription"); +/** + * Check if a given object implements the V1SellerInfoResponse interface. + */ +function instanceOfV1SellerInfoResponse(value) { + return true; +} +function V1SellerInfoResponseFromJSON(json) { + return V1SellerInfoResponseFromJSONTyped(json, false); +} +function V1SellerInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company': json['company'] == null ? undefined : (0, SellerInfoResponseCompany_1.SellerInfoResponseCompanyFromJSON)(json['company']), + 'ratings': json['ratings'] == null ? undefined : (json['ratings'].map(SellerInfoResponseRating_1.SellerInfoResponseRatingFromJSON)), + 'subscription': json['subscription'] == null ? undefined : (0, SellerInfoResponseSubscription_1.SellerInfoResponseSubscriptionFromJSON)(json['subscription']), + }; +} +function V1SellerInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'company': (0, SellerInfoResponseCompany_1.SellerInfoResponseCompanyToJSON)(value['company']), + 'ratings': value['ratings'] == null ? undefined : (value['ratings'].map(SellerInfoResponseRating_1.SellerInfoResponseRatingToJSON)), + 'subscription': (0, SellerInfoResponseSubscription_1.SellerInfoResponseSubscriptionToJSON)(value['subscription']), + }; +} diff --git a/dist/models/V1SellerOzonLogisticsInfoResponse.d.ts b/dist/models/V1SellerOzonLogisticsInfoResponse.d.ts new file mode 100644 index 0000000..aaafa71 --- /dev/null +++ b/dist/models/V1SellerOzonLogisticsInfoResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SellerOzonLogisticsInfoResponseAvailableSchemasEnum } from './SellerOzonLogisticsInfoResponseAvailableSchemasEnum'; +/** + * + * @export + * @interface V1SellerOzonLogisticsInfoResponse + */ +export interface V1SellerOzonLogisticsInfoResponse { + /** + * Тип доступной схемы: + * - `UNKNOWN` — не определён, + * - `FBO`, + * - `FBS`. + * + * @type {Array} + * @memberof V1SellerOzonLogisticsInfoResponse + */ + available_schemas?: Array; + /** + * `true`, если Ozon Доставка подключена. + * + * @type {boolean} + * @memberof V1SellerOzonLogisticsInfoResponse + */ + ozon_logistics_enabled?: boolean; +} +/** + * Check if a given object implements the V1SellerOzonLogisticsInfoResponse interface. + */ +export declare function instanceOfV1SellerOzonLogisticsInfoResponse(value: object): value is V1SellerOzonLogisticsInfoResponse; +export declare function V1SellerOzonLogisticsInfoResponseFromJSON(json: any): V1SellerOzonLogisticsInfoResponse; +export declare function V1SellerOzonLogisticsInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SellerOzonLogisticsInfoResponse; +export declare function V1SellerOzonLogisticsInfoResponseToJSON(value?: V1SellerOzonLogisticsInfoResponse | null): any; diff --git a/dist/models/V1SellerOzonLogisticsInfoResponse.js b/dist/models/V1SellerOzonLogisticsInfoResponse.js new file mode 100644 index 0000000..1717194 --- /dev/null +++ b/dist/models/V1SellerOzonLogisticsInfoResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SellerOzonLogisticsInfoResponse = instanceOfV1SellerOzonLogisticsInfoResponse; +exports.V1SellerOzonLogisticsInfoResponseFromJSON = V1SellerOzonLogisticsInfoResponseFromJSON; +exports.V1SellerOzonLogisticsInfoResponseFromJSONTyped = V1SellerOzonLogisticsInfoResponseFromJSONTyped; +exports.V1SellerOzonLogisticsInfoResponseToJSON = V1SellerOzonLogisticsInfoResponseToJSON; +const SellerOzonLogisticsInfoResponseAvailableSchemasEnum_1 = require("./SellerOzonLogisticsInfoResponseAvailableSchemasEnum"); +/** + * Check if a given object implements the V1SellerOzonLogisticsInfoResponse interface. + */ +function instanceOfV1SellerOzonLogisticsInfoResponse(value) { + return true; +} +function V1SellerOzonLogisticsInfoResponseFromJSON(json) { + return V1SellerOzonLogisticsInfoResponseFromJSONTyped(json, false); +} +function V1SellerOzonLogisticsInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'available_schemas': json['available_schemas'] == null ? undefined : (json['available_schemas'].map(SellerOzonLogisticsInfoResponseAvailableSchemasEnum_1.SellerOzonLogisticsInfoResponseAvailableSchemasEnumFromJSON)), + 'ozon_logistics_enabled': json['ozon_logistics_enabled'] == null ? undefined : json['ozon_logistics_enabled'], + }; +} +function V1SellerOzonLogisticsInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'available_schemas': value['available_schemas'] == null ? undefined : (value['available_schemas'].map(SellerOzonLogisticsInfoResponseAvailableSchemasEnum_1.SellerOzonLogisticsInfoResponseAvailableSchemasEnumToJSON)), + 'ozon_logistics_enabled': value['ozon_logistics_enabled'], + }; +} diff --git a/dist/models/V1SetPostingCutoffRequest.d.ts b/dist/models/V1SetPostingCutoffRequest.d.ts new file mode 100644 index 0000000..3b33418 --- /dev/null +++ b/dist/models/V1SetPostingCutoffRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SetPostingCutoffRequest + */ +export interface V1SetPostingCutoffRequest { + /** + * Новая дата отгрузки. + * @type {string} + * @memberof V1SetPostingCutoffRequest + */ + new_cutoff_date: string; + /** + * Номер отправления. + * @type {string} + * @memberof V1SetPostingCutoffRequest + */ + posting_number: string; +} +/** + * Check if a given object implements the V1SetPostingCutoffRequest interface. + */ +export declare function instanceOfV1SetPostingCutoffRequest(value: object): value is V1SetPostingCutoffRequest; +export declare function V1SetPostingCutoffRequestFromJSON(json: any): V1SetPostingCutoffRequest; +export declare function V1SetPostingCutoffRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetPostingCutoffRequest; +export declare function V1SetPostingCutoffRequestToJSON(value?: V1SetPostingCutoffRequest | null): any; diff --git a/dist/models/V1SetPostingCutoffRequest.js b/dist/models/V1SetPostingCutoffRequest.js new file mode 100644 index 0000000..fbd379b --- /dev/null +++ b/dist/models/V1SetPostingCutoffRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetPostingCutoffRequest = instanceOfV1SetPostingCutoffRequest; +exports.V1SetPostingCutoffRequestFromJSON = V1SetPostingCutoffRequestFromJSON; +exports.V1SetPostingCutoffRequestFromJSONTyped = V1SetPostingCutoffRequestFromJSONTyped; +exports.V1SetPostingCutoffRequestToJSON = V1SetPostingCutoffRequestToJSON; +/** + * Check if a given object implements the V1SetPostingCutoffRequest interface. + */ +function instanceOfV1SetPostingCutoffRequest(value) { + if (!('new_cutoff_date' in value) || value['new_cutoff_date'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V1SetPostingCutoffRequestFromJSON(json) { + return V1SetPostingCutoffRequestFromJSONTyped(json, false); +} +function V1SetPostingCutoffRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'new_cutoff_date': json['new_cutoff_date'], + 'posting_number': json['posting_number'], + }; +} +function V1SetPostingCutoffRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'new_cutoff_date': value['new_cutoff_date'], + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1SetPostingCutoffResponse.d.ts b/dist/models/V1SetPostingCutoffResponse.d.ts new file mode 100644 index 0000000..580648c --- /dev/null +++ b/dist/models/V1SetPostingCutoffResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SetPostingCutoffResponse + */ +export interface V1SetPostingCutoffResponse { + /** + * `true`, если установлена новая дата. + * + * @type {boolean} + * @memberof V1SetPostingCutoffResponse + */ + result?: boolean; +} +/** + * Check if a given object implements the V1SetPostingCutoffResponse interface. + */ +export declare function instanceOfV1SetPostingCutoffResponse(value: object): value is V1SetPostingCutoffResponse; +export declare function V1SetPostingCutoffResponseFromJSON(json: any): V1SetPostingCutoffResponse; +export declare function V1SetPostingCutoffResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetPostingCutoffResponse; +export declare function V1SetPostingCutoffResponseToJSON(value?: V1SetPostingCutoffResponse | null): any; diff --git a/dist/models/V1SetPostingCutoffResponse.js b/dist/models/V1SetPostingCutoffResponse.js new file mode 100644 index 0000000..35bb123 --- /dev/null +++ b/dist/models/V1SetPostingCutoffResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetPostingCutoffResponse = instanceOfV1SetPostingCutoffResponse; +exports.V1SetPostingCutoffResponseFromJSON = V1SetPostingCutoffResponseFromJSON; +exports.V1SetPostingCutoffResponseFromJSONTyped = V1SetPostingCutoffResponseFromJSONTyped; +exports.V1SetPostingCutoffResponseToJSON = V1SetPostingCutoffResponseToJSON; +/** + * Check if a given object implements the V1SetPostingCutoffResponse interface. + */ +function instanceOfV1SetPostingCutoffResponse(value) { + return true; +} +function V1SetPostingCutoffResponseFromJSON(json) { + return V1SetPostingCutoffResponseFromJSONTyped(json, false); +} +function V1SetPostingCutoffResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function V1SetPostingCutoffResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/V1SetPostingsRequest.d.ts b/dist/models/V1SetPostingsRequest.d.ts new file mode 100644 index 0000000..6458455 --- /dev/null +++ b/dist/models/V1SetPostingsRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SetPostingsRequest + */ +export interface V1SetPostingsRequest { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V1SetPostingsRequest + */ + carriage_id: number; + /** + * Актуальный список отправлений. + * @type {Array} + * @memberof V1SetPostingsRequest + */ + posting_numbers: Array; +} +/** + * Check if a given object implements the V1SetPostingsRequest interface. + */ +export declare function instanceOfV1SetPostingsRequest(value: object): value is V1SetPostingsRequest; +export declare function V1SetPostingsRequestFromJSON(json: any): V1SetPostingsRequest; +export declare function V1SetPostingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetPostingsRequest; +export declare function V1SetPostingsRequestToJSON(value?: V1SetPostingsRequest | null): any; diff --git a/dist/models/V1SetPostingsRequest.js b/dist/models/V1SetPostingsRequest.js new file mode 100644 index 0000000..ad2243e --- /dev/null +++ b/dist/models/V1SetPostingsRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetPostingsRequest = instanceOfV1SetPostingsRequest; +exports.V1SetPostingsRequestFromJSON = V1SetPostingsRequestFromJSON; +exports.V1SetPostingsRequestFromJSONTyped = V1SetPostingsRequestFromJSONTyped; +exports.V1SetPostingsRequestToJSON = V1SetPostingsRequestToJSON; +/** + * Check if a given object implements the V1SetPostingsRequest interface. + */ +function instanceOfV1SetPostingsRequest(value) { + if (!('carriage_id' in value) || value['carriage_id'] === undefined) + return false; + if (!('posting_numbers' in value) || value['posting_numbers'] === undefined) + return false; + return true; +} +function V1SetPostingsRequestFromJSON(json) { + return V1SetPostingsRequestFromJSONTyped(json, false); +} +function V1SetPostingsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'carriage_id': json['carriage_id'], + 'posting_numbers': json['posting_numbers'], + }; +} +function V1SetPostingsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'carriage_id': value['carriage_id'], + 'posting_numbers': value['posting_numbers'], + }; +} diff --git a/dist/models/V1SetPostingsResponse.d.ts b/dist/models/V1SetPostingsResponse.d.ts new file mode 100644 index 0000000..cd9903e --- /dev/null +++ b/dist/models/V1SetPostingsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SetPostingsResponseResult } from './SetPostingsResponseResult'; +/** + * + * @export + * @interface V1SetPostingsResponse + */ +export interface V1SetPostingsResponse { + /** + * + * @type {Array} + * @memberof V1SetPostingsResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1SetPostingsResponse interface. + */ +export declare function instanceOfV1SetPostingsResponse(value: object): value is V1SetPostingsResponse; +export declare function V1SetPostingsResponseFromJSON(json: any): V1SetPostingsResponse; +export declare function V1SetPostingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetPostingsResponse; +export declare function V1SetPostingsResponseToJSON(value?: V1SetPostingsResponse | null): any; diff --git a/dist/models/V1SetPostingsResponse.js b/dist/models/V1SetPostingsResponse.js new file mode 100644 index 0000000..f7a3db1 --- /dev/null +++ b/dist/models/V1SetPostingsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetPostingsResponse = instanceOfV1SetPostingsResponse; +exports.V1SetPostingsResponseFromJSON = V1SetPostingsResponseFromJSON; +exports.V1SetPostingsResponseFromJSONTyped = V1SetPostingsResponseFromJSONTyped; +exports.V1SetPostingsResponseToJSON = V1SetPostingsResponseToJSON; +const SetPostingsResponseResult_1 = require("./SetPostingsResponseResult"); +/** + * Check if a given object implements the V1SetPostingsResponse interface. + */ +function instanceOfV1SetPostingsResponse(value) { + return true; +} +function V1SetPostingsResponseFromJSON(json) { + return V1SetPostingsResponseFromJSONTyped(json, false); +} +function V1SetPostingsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(SetPostingsResponseResult_1.SetPostingsResponseResultFromJSON)), + }; +} +function V1SetPostingsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(SetPostingsResponseResult_1.SetPostingsResponseResultToJSON)), + }; +} diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityRequest.d.ts b/dist/models/V1SetProductStairwayDiscountByQuantityRequest.d.ts new file mode 100644 index 0000000..0502af2 --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetProductStairwayDiscountByQuantityRequestStairways } from './V1SetProductStairwayDiscountByQuantityRequestStairways'; +/** + * + * @export + * @interface V1SetProductStairwayDiscountByQuantityRequest + */ +export interface V1SetProductStairwayDiscountByQuantityRequest { + /** + * Информация о скидке от количества по товарам. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityRequest + */ + stairways: Array; + /** + * Передайте `true`, чтобы игнорировать предупреждения и установить скидку. + * + * @type {boolean} + * @memberof V1SetProductStairwayDiscountByQuantityRequest + */ + suppress_warnings?: boolean; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequest interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityRequest(value: object): value is V1SetProductStairwayDiscountByQuantityRequest; +export declare function V1SetProductStairwayDiscountByQuantityRequestFromJSON(json: any): V1SetProductStairwayDiscountByQuantityRequest; +export declare function V1SetProductStairwayDiscountByQuantityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityRequest; +export declare function V1SetProductStairwayDiscountByQuantityRequestToJSON(value?: V1SetProductStairwayDiscountByQuantityRequest | null): any; diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityRequest.js b/dist/models/V1SetProductStairwayDiscountByQuantityRequest.js new file mode 100644 index 0000000..787216d --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityRequest.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetProductStairwayDiscountByQuantityRequest = instanceOfV1SetProductStairwayDiscountByQuantityRequest; +exports.V1SetProductStairwayDiscountByQuantityRequestFromJSON = V1SetProductStairwayDiscountByQuantityRequestFromJSON; +exports.V1SetProductStairwayDiscountByQuantityRequestFromJSONTyped = V1SetProductStairwayDiscountByQuantityRequestFromJSONTyped; +exports.V1SetProductStairwayDiscountByQuantityRequestToJSON = V1SetProductStairwayDiscountByQuantityRequestToJSON; +const V1SetProductStairwayDiscountByQuantityRequestStairways_1 = require("./V1SetProductStairwayDiscountByQuantityRequestStairways"); +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequest interface. + */ +function instanceOfV1SetProductStairwayDiscountByQuantityRequest(value) { + if (!('stairways' in value) || value['stairways'] === undefined) + return false; + return true; +} +function V1SetProductStairwayDiscountByQuantityRequestFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityRequestFromJSONTyped(json, false); +} +function V1SetProductStairwayDiscountByQuantityRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stairways': (json['stairways'].map(V1SetProductStairwayDiscountByQuantityRequestStairways_1.V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON)), + 'suppress_warnings': json['suppress_warnings'] == null ? undefined : json['suppress_warnings'], + }; +} +function V1SetProductStairwayDiscountByQuantityRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'stairways': (value['stairways'].map(V1SetProductStairwayDiscountByQuantityRequestStairways_1.V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON)), + 'suppress_warnings': value['suppress_warnings'], + }; +} diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairways.d.ts b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairways.d.ts new file mode 100644 index 0000000..cef8472 --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairways.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway } from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway'; +/** + * Информация о скидке от количества по конкретному товару. + * @export + * @interface V1SetProductStairwayDiscountByQuantityRequestStairways + */ +export interface V1SetProductStairwayDiscountByQuantityRequestStairways { + /** + * `true`, чтобы включить скидку. + * + * @type {boolean} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairways + */ + enabled: boolean; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairways + */ + sku: number; + /** + * + * @type {V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairways + */ + stairway: V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairways interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairways(value: object): value is V1SetProductStairwayDiscountByQuantityRequestStairways; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON(json: any): V1SetProductStairwayDiscountByQuantityRequestStairways; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityRequestStairways; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON(value?: V1SetProductStairwayDiscountByQuantityRequestStairways | null): any; diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairways.js b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairways.js new file mode 100644 index 0000000..032587f --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairways.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetProductStairwayDiscountByQuantityRequestStairways = instanceOfV1SetProductStairwayDiscountByQuantityRequestStairways; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON = V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSONTyped = V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSONTyped; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON = V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON; +const V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway_1 = require("./V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway"); +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairways interface. + */ +function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairways(value) { + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + if (!('stairway' in value) || value['stairway'] === undefined) + return false; + return true; +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSONTyped(json, false); +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'], + 'sku': json['sku'], + 'stairway': (0, V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway_1.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON)(json['stairway']), + }; +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'sku': value['sku'], + 'stairway': (0, V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway_1.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON)(value['stairway']), + }; +} diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.d.ts b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.d.ts new file mode 100644 index 0000000..0b266e8 --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep } from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep'; +/** + * Информация об уровне скидки от количества. + * @export + * @interface V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway + */ +export interface V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway { + /** + * Информация об уровнях скидки. Количество уровней — от 1 до 4. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway + */ + steps: Array; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairway(value: object): value is V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON(json: any): V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON(value?: V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway | null): any; diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.js b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.js new file mode 100644 index 0000000..5241aa2 --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairway = instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairway; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON = V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSONTyped = V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSONTyped; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON = V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON; +const V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep_1 = require("./V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep"); +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway interface. + */ +function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairway(value) { + if (!('steps' in value) || value['steps'] === undefined) + return false; + return true; +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSONTyped(json, false); +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'steps': (json['steps'].map(V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep_1.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON)), + }; +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayToJSON(value) { + if (value == null) { + return value; + } + return { + 'steps': (value['steps'].map(V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep_1.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON)), + }; +} diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.d.ts b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.d.ts new file mode 100644 index 0000000..19f2b7a --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep + */ +export interface V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep { + /** + * Размер скидки в процентах. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep + */ + discount: number; + /** + * Количество товаров в заказе для применения скидки. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep + */ + quantity: number; + /** + * Уровень скидки. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep + */ + step: number; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep(value: object): value is V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON(json: any): V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep; +export declare function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON(value?: V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep | null): any; diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.js b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.js new file mode 100644 index 0000000..38685a4 --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep = instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON = V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSONTyped = V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSONTyped; +exports.V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON = V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON; +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep interface. + */ +function instanceOfV1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep(value) { + if (!('discount' in value) || value['discount'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('step' in value) || value['step'] === undefined) + return false; + return true; +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSONTyped(json, false); +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'discount': json['discount'], + 'quantity': json['quantity'], + 'step': json['step'], + }; +} +function V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStepToJSON(value) { + if (value == null) { + return value; + } + return { + 'discount': value['discount'], + 'quantity': value['quantity'], + 'step': value['step'], + }; +} diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityResponse.d.ts b/dist/models/V1SetProductStairwayDiscountByQuantityResponse.d.ts new file mode 100644 index 0000000..0d69dd6 --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetProductStairwayDiscountByQuantityResponseError } from './V1SetProductStairwayDiscountByQuantityResponseError'; +/** + * + * @export + * @interface V1SetProductStairwayDiscountByQuantityResponse + */ +export interface V1SetProductStairwayDiscountByQuantityResponse { + /** + * `true`, если запрос принят. Используйте метод [/v1/product/stairway-discount/by-quantity/get](#operation/ProductAPI_GetProductStairwayDiscountByQuantity), чтобы узнать результат изменения скидки. + * + * @type {boolean} + * @memberof V1SetProductStairwayDiscountByQuantityResponse + */ + accepted?: boolean; + /** + * Описание ошибок. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityResponse + */ + errors?: Array; + /** + * Описание предупреждения. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityResponse + */ + warnings?: Array; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityResponse interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityResponse(value: object): value is V1SetProductStairwayDiscountByQuantityResponse; +export declare function V1SetProductStairwayDiscountByQuantityResponseFromJSON(json: any): V1SetProductStairwayDiscountByQuantityResponse; +export declare function V1SetProductStairwayDiscountByQuantityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityResponse; +export declare function V1SetProductStairwayDiscountByQuantityResponseToJSON(value?: V1SetProductStairwayDiscountByQuantityResponse | null): any; diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityResponse.js b/dist/models/V1SetProductStairwayDiscountByQuantityResponse.js new file mode 100644 index 0000000..f829492 --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetProductStairwayDiscountByQuantityResponse = instanceOfV1SetProductStairwayDiscountByQuantityResponse; +exports.V1SetProductStairwayDiscountByQuantityResponseFromJSON = V1SetProductStairwayDiscountByQuantityResponseFromJSON; +exports.V1SetProductStairwayDiscountByQuantityResponseFromJSONTyped = V1SetProductStairwayDiscountByQuantityResponseFromJSONTyped; +exports.V1SetProductStairwayDiscountByQuantityResponseToJSON = V1SetProductStairwayDiscountByQuantityResponseToJSON; +const V1SetProductStairwayDiscountByQuantityResponseError_1 = require("./V1SetProductStairwayDiscountByQuantityResponseError"); +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityResponse interface. + */ +function instanceOfV1SetProductStairwayDiscountByQuantityResponse(value) { + return true; +} +function V1SetProductStairwayDiscountByQuantityResponseFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityResponseFromJSONTyped(json, false); +} +function V1SetProductStairwayDiscountByQuantityResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'accepted': json['accepted'] == null ? undefined : json['accepted'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1SetProductStairwayDiscountByQuantityResponseError_1.V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON)), + 'warnings': json['warnings'] == null ? undefined : (json['warnings'].map(V1SetProductStairwayDiscountByQuantityResponseError_1.V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON)), + }; +} +function V1SetProductStairwayDiscountByQuantityResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'accepted': value['accepted'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1SetProductStairwayDiscountByQuantityResponseError_1.V1SetProductStairwayDiscountByQuantityResponseErrorToJSON)), + 'warnings': value['warnings'] == null ? undefined : (value['warnings'].map(V1SetProductStairwayDiscountByQuantityResponseError_1.V1SetProductStairwayDiscountByQuantityResponseErrorToJSON)), + }; +} diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityResponseError.d.ts b/dist/models/V1SetProductStairwayDiscountByQuantityResponseError.d.ts new file mode 100644 index 0000000..d690c2d --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityResponseError.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorData } from './ErrorData'; +/** + * + * @export + * @interface V1SetProductStairwayDiscountByQuantityResponseError + */ +export interface V1SetProductStairwayDiscountByQuantityResponseError { + /** + * Описание ошибки или предупреждения. + * @type {Array} + * @memberof V1SetProductStairwayDiscountByQuantityResponseError + */ + data?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1SetProductStairwayDiscountByQuantityResponseError + */ + sku?: number; +} +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityResponseError interface. + */ +export declare function instanceOfV1SetProductStairwayDiscountByQuantityResponseError(value: object): value is V1SetProductStairwayDiscountByQuantityResponseError; +export declare function V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON(json: any): V1SetProductStairwayDiscountByQuantityResponseError; +export declare function V1SetProductStairwayDiscountByQuantityResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetProductStairwayDiscountByQuantityResponseError; +export declare function V1SetProductStairwayDiscountByQuantityResponseErrorToJSON(value?: V1SetProductStairwayDiscountByQuantityResponseError | null): any; diff --git a/dist/models/V1SetProductStairwayDiscountByQuantityResponseError.js b/dist/models/V1SetProductStairwayDiscountByQuantityResponseError.js new file mode 100644 index 0000000..a4a4c82 --- /dev/null +++ b/dist/models/V1SetProductStairwayDiscountByQuantityResponseError.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SetProductStairwayDiscountByQuantityResponseError = instanceOfV1SetProductStairwayDiscountByQuantityResponseError; +exports.V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON = V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON; +exports.V1SetProductStairwayDiscountByQuantityResponseErrorFromJSONTyped = V1SetProductStairwayDiscountByQuantityResponseErrorFromJSONTyped; +exports.V1SetProductStairwayDiscountByQuantityResponseErrorToJSON = V1SetProductStairwayDiscountByQuantityResponseErrorToJSON; +const ErrorData_1 = require("./ErrorData"); +/** + * Check if a given object implements the V1SetProductStairwayDiscountByQuantityResponseError interface. + */ +function instanceOfV1SetProductStairwayDiscountByQuantityResponseError(value) { + return true; +} +function V1SetProductStairwayDiscountByQuantityResponseErrorFromJSON(json) { + return V1SetProductStairwayDiscountByQuantityResponseErrorFromJSONTyped(json, false); +} +function V1SetProductStairwayDiscountByQuantityResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': json['data'] == null ? undefined : (json['data'].map(ErrorData_1.ErrorDataFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V1SetProductStairwayDiscountByQuantityResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'data': value['data'] == null ? undefined : (value['data'].map(ErrorData_1.ErrorDataToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1SetVehicleError.d.ts b/dist/models/V1SetVehicleError.d.ts new file mode 100644 index 0000000..ad90ad6 --- /dev/null +++ b/dist/models/V1SetVehicleError.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1SetVehicleError: { + readonly UNSPECIFIED: "SET_VEHICLE_ERROR_UNSPECIFIED"; + readonly INVALID_ORDER_STATE: "SET_VEHICLE_ERROR_INVALID_ORDER_STATE"; + readonly VEHICLE_NOT_REQUIRED: "SET_VEHICLE_ERROR_VEHICLE_NOT_REQUIRED"; + readonly ORDER_NOT_BELONG_CONTRACTOR: "SET_VEHICLE_ERROR_ORDER_NOT_BELONG_CONTRACTOR"; + readonly ORDER_NOT_BELONG_COMPANY: "SET_VEHICLE_ERROR_ORDER_NOT_BELONG_COMPANY"; +}; +export type V1SetVehicleError = typeof V1SetVehicleError[keyof typeof V1SetVehicleError]; +export declare function instanceOfV1SetVehicleError(value: any): boolean; +export declare function V1SetVehicleErrorFromJSON(json: any): V1SetVehicleError; +export declare function V1SetVehicleErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetVehicleError; +export declare function V1SetVehicleErrorToJSON(value?: V1SetVehicleError | null): any; diff --git a/dist/models/V1SetVehicleError.js b/dist/models/V1SetVehicleError.js new file mode 100644 index 0000000..778e6d7 --- /dev/null +++ b/dist/models/V1SetVehicleError.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SetVehicleError = void 0; +exports.instanceOfV1SetVehicleError = instanceOfV1SetVehicleError; +exports.V1SetVehicleErrorFromJSON = V1SetVehicleErrorFromJSON; +exports.V1SetVehicleErrorFromJSONTyped = V1SetVehicleErrorFromJSONTyped; +exports.V1SetVehicleErrorToJSON = V1SetVehicleErrorToJSON; +/** + * + * @export + */ +exports.V1SetVehicleError = { + UNSPECIFIED: 'SET_VEHICLE_ERROR_UNSPECIFIED', + INVALID_ORDER_STATE: 'SET_VEHICLE_ERROR_INVALID_ORDER_STATE', + VEHICLE_NOT_REQUIRED: 'SET_VEHICLE_ERROR_VEHICLE_NOT_REQUIRED', + ORDER_NOT_BELONG_CONTRACTOR: 'SET_VEHICLE_ERROR_ORDER_NOT_BELONG_CONTRACTOR', + ORDER_NOT_BELONG_COMPANY: 'SET_VEHICLE_ERROR_ORDER_NOT_BELONG_COMPANY' +}; +function instanceOfV1SetVehicleError(value) { + for (const key in exports.V1SetVehicleError) { + if (Object.prototype.hasOwnProperty.call(exports.V1SetVehicleError, key)) { + if (exports.V1SetVehicleError[key] === value) { + return true; + } + } + } + return false; +} +function V1SetVehicleErrorFromJSON(json) { + return V1SetVehicleErrorFromJSONTyped(json, false); +} +function V1SetVehicleErrorFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SetVehicleErrorToJSON(value) { + return value; +} diff --git a/dist/models/V1StatusCodeNamePair.d.ts b/dist/models/V1StatusCodeNamePair.d.ts new file mode 100644 index 0000000..8ef622d --- /dev/null +++ b/dist/models/V1StatusCodeNamePair.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1StatusCodeNamePair + */ +export interface V1StatusCodeNamePair { + /** + * Код статуса товара при привязке к сертификату. + * @type {string} + * @memberof V1StatusCodeNamePair + */ + code?: string; + /** + * Описание статуса. + * @type {string} + * @memberof V1StatusCodeNamePair + */ + name?: string; +} +/** + * Check if a given object implements the V1StatusCodeNamePair interface. + */ +export declare function instanceOfV1StatusCodeNamePair(value: object): value is V1StatusCodeNamePair; +export declare function V1StatusCodeNamePairFromJSON(json: any): V1StatusCodeNamePair; +export declare function V1StatusCodeNamePairFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StatusCodeNamePair; +export declare function V1StatusCodeNamePairToJSON(value?: V1StatusCodeNamePair | null): any; diff --git a/dist/models/V1StatusCodeNamePair.js b/dist/models/V1StatusCodeNamePair.js new file mode 100644 index 0000000..54d570d --- /dev/null +++ b/dist/models/V1StatusCodeNamePair.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1StatusCodeNamePair = instanceOfV1StatusCodeNamePair; +exports.V1StatusCodeNamePairFromJSON = V1StatusCodeNamePairFromJSON; +exports.V1StatusCodeNamePairFromJSONTyped = V1StatusCodeNamePairFromJSONTyped; +exports.V1StatusCodeNamePairToJSON = V1StatusCodeNamePairToJSON; +/** + * Check if a given object implements the V1StatusCodeNamePair interface. + */ +function instanceOfV1StatusCodeNamePair(value) { + return true; +} +function V1StatusCodeNamePairFromJSON(json) { + return V1StatusCodeNamePairFromJSONTyped(json, false); +} +function V1StatusCodeNamePairFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function V1StatusCodeNamePairToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/models/V1StatusCodeNamePairRejection.d.ts b/dist/models/V1StatusCodeNamePairRejection.d.ts new file mode 100644 index 0000000..20e775b --- /dev/null +++ b/dist/models/V1StatusCodeNamePairRejection.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1StatusCodeNamePairRejection + */ +export interface V1StatusCodeNamePairRejection { + /** + * Код причины отклонения сертификата. + * @type {string} + * @memberof V1StatusCodeNamePairRejection + */ + code?: string; + /** + * Описание причины отклонения сертификата. + * @type {string} + * @memberof V1StatusCodeNamePairRejection + */ + name?: string; +} +/** + * Check if a given object implements the V1StatusCodeNamePairRejection interface. + */ +export declare function instanceOfV1StatusCodeNamePairRejection(value: object): value is V1StatusCodeNamePairRejection; +export declare function V1StatusCodeNamePairRejectionFromJSON(json: any): V1StatusCodeNamePairRejection; +export declare function V1StatusCodeNamePairRejectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StatusCodeNamePairRejection; +export declare function V1StatusCodeNamePairRejectionToJSON(value?: V1StatusCodeNamePairRejection | null): any; diff --git a/dist/models/V1StatusCodeNamePairRejection.js b/dist/models/V1StatusCodeNamePairRejection.js new file mode 100644 index 0000000..babc0b5 --- /dev/null +++ b/dist/models/V1StatusCodeNamePairRejection.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1StatusCodeNamePairRejection = instanceOfV1StatusCodeNamePairRejection; +exports.V1StatusCodeNamePairRejectionFromJSON = V1StatusCodeNamePairRejectionFromJSON; +exports.V1StatusCodeNamePairRejectionFromJSONTyped = V1StatusCodeNamePairRejectionFromJSONTyped; +exports.V1StatusCodeNamePairRejectionToJSON = V1StatusCodeNamePairRejectionToJSON; +/** + * Check if a given object implements the V1StatusCodeNamePairRejection interface. + */ +function instanceOfV1StatusCodeNamePairRejection(value) { + return true; +} +function V1StatusCodeNamePairRejectionFromJSON(json) { + return V1StatusCodeNamePairRejectionFromJSONTyped(json, false); +} +function V1StatusCodeNamePairRejectionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function V1StatusCodeNamePairRejectionToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/models/V1StatusCodeNamePairStatuses.d.ts b/dist/models/V1StatusCodeNamePairStatuses.d.ts new file mode 100644 index 0000000..226514c --- /dev/null +++ b/dist/models/V1StatusCodeNamePairStatuses.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1StatusCodeNamePairStatuses + */ +export interface V1StatusCodeNamePairStatuses { + /** + * Код статуса сертификата. + * @type {string} + * @memberof V1StatusCodeNamePairStatuses + */ + code?: string; + /** + * Описание статуса. + * @type {string} + * @memberof V1StatusCodeNamePairStatuses + */ + name?: string; +} +/** + * Check if a given object implements the V1StatusCodeNamePairStatuses interface. + */ +export declare function instanceOfV1StatusCodeNamePairStatuses(value: object): value is V1StatusCodeNamePairStatuses; +export declare function V1StatusCodeNamePairStatusesFromJSON(json: any): V1StatusCodeNamePairStatuses; +export declare function V1StatusCodeNamePairStatusesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StatusCodeNamePairStatuses; +export declare function V1StatusCodeNamePairStatusesToJSON(value?: V1StatusCodeNamePairStatuses | null): any; diff --git a/dist/models/V1StatusCodeNamePairStatuses.js b/dist/models/V1StatusCodeNamePairStatuses.js new file mode 100644 index 0000000..0bf6644 --- /dev/null +++ b/dist/models/V1StatusCodeNamePairStatuses.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1StatusCodeNamePairStatuses = instanceOfV1StatusCodeNamePairStatuses; +exports.V1StatusCodeNamePairStatusesFromJSON = V1StatusCodeNamePairStatusesFromJSON; +exports.V1StatusCodeNamePairStatusesFromJSONTyped = V1StatusCodeNamePairStatusesFromJSONTyped; +exports.V1StatusCodeNamePairStatusesToJSON = V1StatusCodeNamePairStatusesToJSON; +/** + * Check if a given object implements the V1StatusCodeNamePairStatuses interface. + */ +function instanceOfV1StatusCodeNamePairStatuses(value) { + return true; +} +function V1StatusCodeNamePairStatusesFromJSON(json) { + return V1StatusCodeNamePairStatusesFromJSONTyped(json, false); +} +function V1StatusCodeNamePairStatusesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function V1StatusCodeNamePairStatusesToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/models/V1StocksImportRequest.d.ts b/dist/models/V1StocksImportRequest.d.ts new file mode 100644 index 0000000..dfb10f2 --- /dev/null +++ b/dist/models/V1StocksImportRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StocksImportRequestItemStock } from './StocksImportRequestItemStock'; +/** + * + * @export + * @interface V1StocksImportRequest + */ +export interface V1StocksImportRequest { + /** + * Данные об остатках. + * @type {Array} + * @memberof V1StocksImportRequest + */ + stocks?: Array; +} +/** + * Check if a given object implements the V1StocksImportRequest interface. + */ +export declare function instanceOfV1StocksImportRequest(value: object): value is V1StocksImportRequest; +export declare function V1StocksImportRequestFromJSON(json: any): V1StocksImportRequest; +export declare function V1StocksImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StocksImportRequest; +export declare function V1StocksImportRequestToJSON(value?: V1StocksImportRequest | null): any; diff --git a/dist/models/V1StocksImportRequest.js b/dist/models/V1StocksImportRequest.js new file mode 100644 index 0000000..a0e067c --- /dev/null +++ b/dist/models/V1StocksImportRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1StocksImportRequest = instanceOfV1StocksImportRequest; +exports.V1StocksImportRequestFromJSON = V1StocksImportRequestFromJSON; +exports.V1StocksImportRequestFromJSONTyped = V1StocksImportRequestFromJSONTyped; +exports.V1StocksImportRequestToJSON = V1StocksImportRequestToJSON; +const StocksImportRequestItemStock_1 = require("./StocksImportRequestItemStock"); +/** + * Check if a given object implements the V1StocksImportRequest interface. + */ +function instanceOfV1StocksImportRequest(value) { + return true; +} +function V1StocksImportRequestFromJSON(json) { + return V1StocksImportRequestFromJSONTyped(json, false); +} +function V1StocksImportRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stocks': json['stocks'] == null ? undefined : (json['stocks'].map(StocksImportRequestItemStock_1.StocksImportRequestItemStockFromJSON)), + }; +} +function V1StocksImportRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'stocks': value['stocks'] == null ? undefined : (value['stocks'].map(StocksImportRequestItemStock_1.StocksImportRequestItemStockToJSON)), + }; +} diff --git a/dist/models/V1StocksImportResponse.d.ts b/dist/models/V1StocksImportResponse.d.ts new file mode 100644 index 0000000..24fbffc --- /dev/null +++ b/dist/models/V1StocksImportResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StocksImportResponseItemStatus } from './StocksImportResponseItemStatus'; +/** + * + * @export + * @interface V1StocksImportResponse + */ +export interface V1StocksImportResponse { + /** + * Информация о товарах. + * @type {Array} + * @memberof V1StocksImportResponse + */ + status?: Array; +} +/** + * Check if a given object implements the V1StocksImportResponse interface. + */ +export declare function instanceOfV1StocksImportResponse(value: object): value is V1StocksImportResponse; +export declare function V1StocksImportResponseFromJSON(json: any): V1StocksImportResponse; +export declare function V1StocksImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StocksImportResponse; +export declare function V1StocksImportResponseToJSON(value?: V1StocksImportResponse | null): any; diff --git a/dist/models/V1StocksImportResponse.js b/dist/models/V1StocksImportResponse.js new file mode 100644 index 0000000..a5e4285 --- /dev/null +++ b/dist/models/V1StocksImportResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1StocksImportResponse = instanceOfV1StocksImportResponse; +exports.V1StocksImportResponseFromJSON = V1StocksImportResponseFromJSON; +exports.V1StocksImportResponseFromJSONTyped = V1StocksImportResponseFromJSONTyped; +exports.V1StocksImportResponseToJSON = V1StocksImportResponseToJSON; +const StocksImportResponseItemStatus_1 = require("./StocksImportResponseItemStatus"); +/** + * Check if a given object implements the V1StocksImportResponse interface. + */ +function instanceOfV1StocksImportResponse(value) { + return true; +} +function V1StocksImportResponseFromJSON(json) { + return V1StocksImportResponseFromJSONTyped(json, false); +} +function V1StocksImportResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : (json['status'].map(StocksImportResponseItemStatus_1.StocksImportResponseItemStatusFromJSON)), + }; +} +function V1StocksImportResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'status': value['status'] == null ? undefined : (value['status'].map(StocksImportResponseItemStatus_1.StocksImportResponseItemStatusToJSON)), + }; +} diff --git a/dist/models/V1StrategyRequest.d.ts b/dist/models/V1StrategyRequest.d.ts new file mode 100644 index 0000000..63b0b00 --- /dev/null +++ b/dist/models/V1StrategyRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1StrategyRequest + */ +export interface V1StrategyRequest { + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1StrategyRequest + */ + strategy_id: string; +} +/** + * Check if a given object implements the V1StrategyRequest interface. + */ +export declare function instanceOfV1StrategyRequest(value: object): value is V1StrategyRequest; +export declare function V1StrategyRequestFromJSON(json: any): V1StrategyRequest; +export declare function V1StrategyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1StrategyRequest; +export declare function V1StrategyRequestToJSON(value?: V1StrategyRequest | null): any; diff --git a/dist/models/V1StrategyRequest.js b/dist/models/V1StrategyRequest.js new file mode 100644 index 0000000..884e043 --- /dev/null +++ b/dist/models/V1StrategyRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1StrategyRequest = instanceOfV1StrategyRequest; +exports.V1StrategyRequestFromJSON = V1StrategyRequestFromJSON; +exports.V1StrategyRequestFromJSONTyped = V1StrategyRequestFromJSONTyped; +exports.V1StrategyRequestToJSON = V1StrategyRequestToJSON; +/** + * Check if a given object implements the V1StrategyRequest interface. + */ +function instanceOfV1StrategyRequest(value) { + if (!('strategy_id' in value) || value['strategy_id'] === undefined) + return false; + return true; +} +function V1StrategyRequestFromJSON(json) { + return V1StrategyRequestFromJSONTyped(json, false); +} +function V1StrategyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'strategy_id': json['strategy_id'], + }; +} +function V1StrategyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/models/V1SupplierAvailableWarehousesResponse.d.ts b/dist/models/V1SupplierAvailableWarehousesResponse.d.ts new file mode 100644 index 0000000..8edf3de --- /dev/null +++ b/dist/models/V1SupplierAvailableWarehousesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplierAvailableWarehousesResponseResult } from './SupplierAvailableWarehousesResponseResult'; +/** + * + * @export + * @interface V1SupplierAvailableWarehousesResponse + */ +export interface V1SupplierAvailableWarehousesResponse { + /** + * Результат работы метода. + * @type {Array} + * @memberof V1SupplierAvailableWarehousesResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V1SupplierAvailableWarehousesResponse interface. + */ +export declare function instanceOfV1SupplierAvailableWarehousesResponse(value: object): value is V1SupplierAvailableWarehousesResponse; +export declare function V1SupplierAvailableWarehousesResponseFromJSON(json: any): V1SupplierAvailableWarehousesResponse; +export declare function V1SupplierAvailableWarehousesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplierAvailableWarehousesResponse; +export declare function V1SupplierAvailableWarehousesResponseToJSON(value?: V1SupplierAvailableWarehousesResponse | null): any; diff --git a/dist/models/V1SupplierAvailableWarehousesResponse.js b/dist/models/V1SupplierAvailableWarehousesResponse.js new file mode 100644 index 0000000..d9fec5a --- /dev/null +++ b/dist/models/V1SupplierAvailableWarehousesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplierAvailableWarehousesResponse = instanceOfV1SupplierAvailableWarehousesResponse; +exports.V1SupplierAvailableWarehousesResponseFromJSON = V1SupplierAvailableWarehousesResponseFromJSON; +exports.V1SupplierAvailableWarehousesResponseFromJSONTyped = V1SupplierAvailableWarehousesResponseFromJSONTyped; +exports.V1SupplierAvailableWarehousesResponseToJSON = V1SupplierAvailableWarehousesResponseToJSON; +const SupplierAvailableWarehousesResponseResult_1 = require("./SupplierAvailableWarehousesResponseResult"); +/** + * Check if a given object implements the V1SupplierAvailableWarehousesResponse interface. + */ +function instanceOfV1SupplierAvailableWarehousesResponse(value) { + return true; +} +function V1SupplierAvailableWarehousesResponseFromJSON(json) { + return V1SupplierAvailableWarehousesResponseFromJSONTyped(json, false); +} +function V1SupplierAvailableWarehousesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(SupplierAvailableWarehousesResponseResult_1.SupplierAvailableWarehousesResponseResultFromJSON)), + }; +} +function V1SupplierAvailableWarehousesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(SupplierAvailableWarehousesResponseResult_1.SupplierAvailableWarehousesResponseResultToJSON)), + }; +} diff --git a/dist/models/V1SupplyOrderCancelRequest.d.ts b/dist/models/V1SupplyOrderCancelRequest.d.ts new file mode 100644 index 0000000..47672b1 --- /dev/null +++ b/dist/models/V1SupplyOrderCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderCancelRequest + */ +export interface V1SupplyOrderCancelRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderCancelRequest + */ + order_id: number; +} +/** + * Check if a given object implements the V1SupplyOrderCancelRequest interface. + */ +export declare function instanceOfV1SupplyOrderCancelRequest(value: object): value is V1SupplyOrderCancelRequest; +export declare function V1SupplyOrderCancelRequestFromJSON(json: any): V1SupplyOrderCancelRequest; +export declare function V1SupplyOrderCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelRequest; +export declare function V1SupplyOrderCancelRequestToJSON(value?: V1SupplyOrderCancelRequest | null): any; diff --git a/dist/models/V1SupplyOrderCancelRequest.js b/dist/models/V1SupplyOrderCancelRequest.js new file mode 100644 index 0000000..e491587 --- /dev/null +++ b/dist/models/V1SupplyOrderCancelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderCancelRequest = instanceOfV1SupplyOrderCancelRequest; +exports.V1SupplyOrderCancelRequestFromJSON = V1SupplyOrderCancelRequestFromJSON; +exports.V1SupplyOrderCancelRequestFromJSONTyped = V1SupplyOrderCancelRequestFromJSONTyped; +exports.V1SupplyOrderCancelRequestToJSON = V1SupplyOrderCancelRequestToJSON; +/** + * Check if a given object implements the V1SupplyOrderCancelRequest interface. + */ +function instanceOfV1SupplyOrderCancelRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +function V1SupplyOrderCancelRequestFromJSON(json) { + return V1SupplyOrderCancelRequestFromJSONTyped(json, false); +} +function V1SupplyOrderCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +function V1SupplyOrderCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/models/V1SupplyOrderCancelResponse.d.ts b/dist/models/V1SupplyOrderCancelResponse.d.ts new file mode 100644 index 0000000..2e97562 --- /dev/null +++ b/dist/models/V1SupplyOrderCancelResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderCancelResponse + */ +export interface V1SupplyOrderCancelResponse { + /** + * Идентификатор операции на отмену заявки. + * @type {string} + * @memberof V1SupplyOrderCancelResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1SupplyOrderCancelResponse interface. + */ +export declare function instanceOfV1SupplyOrderCancelResponse(value: object): value is V1SupplyOrderCancelResponse; +export declare function V1SupplyOrderCancelResponseFromJSON(json: any): V1SupplyOrderCancelResponse; +export declare function V1SupplyOrderCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelResponse; +export declare function V1SupplyOrderCancelResponseToJSON(value?: V1SupplyOrderCancelResponse | null): any; diff --git a/dist/models/V1SupplyOrderCancelResponse.js b/dist/models/V1SupplyOrderCancelResponse.js new file mode 100644 index 0000000..2600ae5 --- /dev/null +++ b/dist/models/V1SupplyOrderCancelResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderCancelResponse = instanceOfV1SupplyOrderCancelResponse; +exports.V1SupplyOrderCancelResponseFromJSON = V1SupplyOrderCancelResponseFromJSON; +exports.V1SupplyOrderCancelResponseFromJSONTyped = V1SupplyOrderCancelResponseFromJSONTyped; +exports.V1SupplyOrderCancelResponseToJSON = V1SupplyOrderCancelResponseToJSON; +/** + * Check if a given object implements the V1SupplyOrderCancelResponse interface. + */ +function instanceOfV1SupplyOrderCancelResponse(value) { + return true; +} +function V1SupplyOrderCancelResponseFromJSON(json) { + return V1SupplyOrderCancelResponseFromJSONTyped(json, false); +} +function V1SupplyOrderCancelResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1SupplyOrderCancelResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1SupplyOrderCancelStatusRequest.d.ts b/dist/models/V1SupplyOrderCancelStatusRequest.d.ts new file mode 100644 index 0000000..4ec709f --- /dev/null +++ b/dist/models/V1SupplyOrderCancelStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderCancelStatusRequest + */ +export interface V1SupplyOrderCancelStatusRequest { + /** + * Идентификатор операции на отмену заявки на поставку. + * @type {string} + * @memberof V1SupplyOrderCancelStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1SupplyOrderCancelStatusRequest interface. + */ +export declare function instanceOfV1SupplyOrderCancelStatusRequest(value: object): value is V1SupplyOrderCancelStatusRequest; +export declare function V1SupplyOrderCancelStatusRequestFromJSON(json: any): V1SupplyOrderCancelStatusRequest; +export declare function V1SupplyOrderCancelStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelStatusRequest; +export declare function V1SupplyOrderCancelStatusRequestToJSON(value?: V1SupplyOrderCancelStatusRequest | null): any; diff --git a/dist/models/V1SupplyOrderCancelStatusRequest.js b/dist/models/V1SupplyOrderCancelStatusRequest.js new file mode 100644 index 0000000..90f5b58 --- /dev/null +++ b/dist/models/V1SupplyOrderCancelStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderCancelStatusRequest = instanceOfV1SupplyOrderCancelStatusRequest; +exports.V1SupplyOrderCancelStatusRequestFromJSON = V1SupplyOrderCancelStatusRequestFromJSON; +exports.V1SupplyOrderCancelStatusRequestFromJSONTyped = V1SupplyOrderCancelStatusRequestFromJSONTyped; +exports.V1SupplyOrderCancelStatusRequestToJSON = V1SupplyOrderCancelStatusRequestToJSON; +/** + * Check if a given object implements the V1SupplyOrderCancelStatusRequest interface. + */ +function instanceOfV1SupplyOrderCancelStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function V1SupplyOrderCancelStatusRequestFromJSON(json) { + return V1SupplyOrderCancelStatusRequestFromJSONTyped(json, false); +} +function V1SupplyOrderCancelStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function V1SupplyOrderCancelStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1SupplyOrderCancelStatusResponse.d.ts b/dist/models/V1SupplyOrderCancelStatusResponse.d.ts new file mode 100644 index 0000000..4006436 --- /dev/null +++ b/dist/models/V1SupplyOrderCancelStatusResponse.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderCancelStatusResponseResult } from './SupplyOrderCancelStatusResponseResult'; +import type { SupplyOrderCancelStatusResponseCancelOrderError } from './SupplyOrderCancelStatusResponseCancelOrderError'; +import type { V1SupplyOrderCancelStatusResponseStatus } from './V1SupplyOrderCancelStatusResponseStatus'; +/** + * + * @export + * @interface V1SupplyOrderCancelStatusResponse + */ +export interface V1SupplyOrderCancelStatusResponse { + /** + * Причина, по которой не удалось отменить заявку на поставку: + * - `INVALID_ORDER_STATE` — неверный статус заявки на поставку. + * - `ORDER_IS_VIRTUAL` — заявка виртуальная. + * - `ORDER_DOES_NOT_BELONG_TO_CONTRACTOR` — заявка на поставку не принадлежит вашему юридическому лицу. + * - `ORDER_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу. + * - `OTHER_ASYNCHRONOUS_OPERATION_IN_PROGRESS` — заявка на поставку в процессе отмены. + * + * @type {Array} + * @memberof V1SupplyOrderCancelStatusResponse + */ + error_reasons?: Array; + /** + * + * @type {SupplyOrderCancelStatusResponseResult} + * @memberof V1SupplyOrderCancelStatusResponse + */ + result?: SupplyOrderCancelStatusResponseResult; + /** + * + * @type {V1SupplyOrderCancelStatusResponseStatus} + * @memberof V1SupplyOrderCancelStatusResponse + */ + status?: V1SupplyOrderCancelStatusResponseStatus; +} +/** + * Check if a given object implements the V1SupplyOrderCancelStatusResponse interface. + */ +export declare function instanceOfV1SupplyOrderCancelStatusResponse(value: object): value is V1SupplyOrderCancelStatusResponse; +export declare function V1SupplyOrderCancelStatusResponseFromJSON(json: any): V1SupplyOrderCancelStatusResponse; +export declare function V1SupplyOrderCancelStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelStatusResponse; +export declare function V1SupplyOrderCancelStatusResponseToJSON(value?: V1SupplyOrderCancelStatusResponse | null): any; diff --git a/dist/models/V1SupplyOrderCancelStatusResponse.js b/dist/models/V1SupplyOrderCancelStatusResponse.js new file mode 100644 index 0000000..d2afb5c --- /dev/null +++ b/dist/models/V1SupplyOrderCancelStatusResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderCancelStatusResponse = instanceOfV1SupplyOrderCancelStatusResponse; +exports.V1SupplyOrderCancelStatusResponseFromJSON = V1SupplyOrderCancelStatusResponseFromJSON; +exports.V1SupplyOrderCancelStatusResponseFromJSONTyped = V1SupplyOrderCancelStatusResponseFromJSONTyped; +exports.V1SupplyOrderCancelStatusResponseToJSON = V1SupplyOrderCancelStatusResponseToJSON; +const SupplyOrderCancelStatusResponseResult_1 = require("./SupplyOrderCancelStatusResponseResult"); +const SupplyOrderCancelStatusResponseCancelOrderError_1 = require("./SupplyOrderCancelStatusResponseCancelOrderError"); +const V1SupplyOrderCancelStatusResponseStatus_1 = require("./V1SupplyOrderCancelStatusResponseStatus"); +/** + * Check if a given object implements the V1SupplyOrderCancelStatusResponse interface. + */ +function instanceOfV1SupplyOrderCancelStatusResponse(value) { + return true; +} +function V1SupplyOrderCancelStatusResponseFromJSON(json) { + return V1SupplyOrderCancelStatusResponseFromJSONTyped(json, false); +} +function V1SupplyOrderCancelStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(SupplyOrderCancelStatusResponseCancelOrderError_1.SupplyOrderCancelStatusResponseCancelOrderErrorFromJSON)), + 'result': json['result'] == null ? undefined : (0, SupplyOrderCancelStatusResponseResult_1.SupplyOrderCancelStatusResponseResultFromJSON)(json['result']), + 'status': json['status'] == null ? undefined : (0, V1SupplyOrderCancelStatusResponseStatus_1.V1SupplyOrderCancelStatusResponseStatusFromJSON)(json['status']), + }; +} +function V1SupplyOrderCancelStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(SupplyOrderCancelStatusResponseCancelOrderError_1.SupplyOrderCancelStatusResponseCancelOrderErrorToJSON)), + 'result': (0, SupplyOrderCancelStatusResponseResult_1.SupplyOrderCancelStatusResponseResultToJSON)(value['result']), + 'status': (0, V1SupplyOrderCancelStatusResponseStatus_1.V1SupplyOrderCancelStatusResponseStatusToJSON)(value['status']), + }; +} diff --git a/dist/models/V1SupplyOrderCancelStatusResponseStatus.d.ts b/dist/models/V1SupplyOrderCancelStatusResponseStatus.d.ts new file mode 100644 index 0000000..c3d733a --- /dev/null +++ b/dist/models/V1SupplyOrderCancelStatusResponseStatus.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус отмены заявки на поставку. Возможные значения: + * - `SUCCESS` — заявка отменена. + * - `IN_PROGRESS` — заявки в процессе отмены. + * - `ERROR` — ошибка. + * + * @export + */ +export declare const V1SupplyOrderCancelStatusResponseStatus: { + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly ERROR: "ERROR"; +}; +export type V1SupplyOrderCancelStatusResponseStatus = typeof V1SupplyOrderCancelStatusResponseStatus[keyof typeof V1SupplyOrderCancelStatusResponseStatus]; +export declare function instanceOfV1SupplyOrderCancelStatusResponseStatus(value: any): boolean; +export declare function V1SupplyOrderCancelStatusResponseStatusFromJSON(json: any): V1SupplyOrderCancelStatusResponseStatus; +export declare function V1SupplyOrderCancelStatusResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderCancelStatusResponseStatus; +export declare function V1SupplyOrderCancelStatusResponseStatusToJSON(value?: V1SupplyOrderCancelStatusResponseStatus | null): any; diff --git a/dist/models/V1SupplyOrderCancelStatusResponseStatus.js b/dist/models/V1SupplyOrderCancelStatusResponseStatus.js new file mode 100644 index 0000000..7974f67 --- /dev/null +++ b/dist/models/V1SupplyOrderCancelStatusResponseStatus.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SupplyOrderCancelStatusResponseStatus = void 0; +exports.instanceOfV1SupplyOrderCancelStatusResponseStatus = instanceOfV1SupplyOrderCancelStatusResponseStatus; +exports.V1SupplyOrderCancelStatusResponseStatusFromJSON = V1SupplyOrderCancelStatusResponseStatusFromJSON; +exports.V1SupplyOrderCancelStatusResponseStatusFromJSONTyped = V1SupplyOrderCancelStatusResponseStatusFromJSONTyped; +exports.V1SupplyOrderCancelStatusResponseStatusToJSON = V1SupplyOrderCancelStatusResponseStatusToJSON; +/** + * Статус отмены заявки на поставку. Возможные значения: + * - `SUCCESS` — заявка отменена. + * - `IN_PROGRESS` — заявки в процессе отмены. + * - `ERROR` — ошибка. + * + * @export + */ +exports.V1SupplyOrderCancelStatusResponseStatus = { + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + ERROR: 'ERROR' +}; +function instanceOfV1SupplyOrderCancelStatusResponseStatus(value) { + for (const key in exports.V1SupplyOrderCancelStatusResponseStatus) { + if (Object.prototype.hasOwnProperty.call(exports.V1SupplyOrderCancelStatusResponseStatus, key)) { + if (exports.V1SupplyOrderCancelStatusResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +function V1SupplyOrderCancelStatusResponseStatusFromJSON(json) { + return V1SupplyOrderCancelStatusResponseStatusFromJSONTyped(json, false); +} +function V1SupplyOrderCancelStatusResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SupplyOrderCancelStatusResponseStatusToJSON(value) { + return value; +} diff --git a/dist/models/V1SupplyOrderContentUpdateRequest.d.ts b/dist/models/V1SupplyOrderContentUpdateRequest.d.ts new file mode 100644 index 0000000..9ed99d2 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateRequest.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderContentUpdateRequestItem } from './V1SupplyOrderContentUpdateRequestItem'; +/** + * + * @export + * @interface V1SupplyOrderContentUpdateRequest + */ +export interface V1SupplyOrderContentUpdateRequest { + /** + * Новый товарный состав заявки на поставку. + * + * Максимум 5000 товаров. + * + * @type {Array} + * @memberof V1SupplyOrderContentUpdateRequest + */ + items: Array; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequest + */ + order_id: number; + /** + * Идентификатор поставки. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateRequest interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateRequest(value: object): value is V1SupplyOrderContentUpdateRequest; +export declare function V1SupplyOrderContentUpdateRequestFromJSON(json: any): V1SupplyOrderContentUpdateRequest; +export declare function V1SupplyOrderContentUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateRequest; +export declare function V1SupplyOrderContentUpdateRequestToJSON(value?: V1SupplyOrderContentUpdateRequest | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateRequest.js b/dist/models/V1SupplyOrderContentUpdateRequest.js new file mode 100644 index 0000000..d7dbf37 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderContentUpdateRequest = instanceOfV1SupplyOrderContentUpdateRequest; +exports.V1SupplyOrderContentUpdateRequestFromJSON = V1SupplyOrderContentUpdateRequestFromJSON; +exports.V1SupplyOrderContentUpdateRequestFromJSONTyped = V1SupplyOrderContentUpdateRequestFromJSONTyped; +exports.V1SupplyOrderContentUpdateRequestToJSON = V1SupplyOrderContentUpdateRequestToJSON; +const V1SupplyOrderContentUpdateRequestItem_1 = require("./V1SupplyOrderContentUpdateRequestItem"); +/** + * Check if a given object implements the V1SupplyOrderContentUpdateRequest interface. + */ +function instanceOfV1SupplyOrderContentUpdateRequest(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1SupplyOrderContentUpdateRequestFromJSON(json) { + return V1SupplyOrderContentUpdateRequestFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(V1SupplyOrderContentUpdateRequestItem_1.V1SupplyOrderContentUpdateRequestItemFromJSON)), + 'order_id': json['order_id'], + 'supply_id': json['supply_id'], + }; +} +function V1SupplyOrderContentUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(V1SupplyOrderContentUpdateRequestItem_1.V1SupplyOrderContentUpdateRequestItemToJSON)), + 'order_id': value['order_id'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1SupplyOrderContentUpdateRequestItem.d.ts b/dist/models/V1SupplyOrderContentUpdateRequestItem.d.ts new file mode 100644 index 0000000..380bff1 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateRequestItem.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderContentUpdateRequestItem + */ +export interface V1SupplyOrderContentUpdateRequestItem { + /** + * Размер кванта. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequestItem + */ + quant: number; + /** + * Количество товара. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequestItem + */ + quantity: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V1SupplyOrderContentUpdateRequestItem + */ + sku: number; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateRequestItem interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateRequestItem(value: object): value is V1SupplyOrderContentUpdateRequestItem; +export declare function V1SupplyOrderContentUpdateRequestItemFromJSON(json: any): V1SupplyOrderContentUpdateRequestItem; +export declare function V1SupplyOrderContentUpdateRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateRequestItem; +export declare function V1SupplyOrderContentUpdateRequestItemToJSON(value?: V1SupplyOrderContentUpdateRequestItem | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateRequestItem.js b/dist/models/V1SupplyOrderContentUpdateRequestItem.js new file mode 100644 index 0000000..2176361 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateRequestItem.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderContentUpdateRequestItem = instanceOfV1SupplyOrderContentUpdateRequestItem; +exports.V1SupplyOrderContentUpdateRequestItemFromJSON = V1SupplyOrderContentUpdateRequestItemFromJSON; +exports.V1SupplyOrderContentUpdateRequestItemFromJSONTyped = V1SupplyOrderContentUpdateRequestItemFromJSONTyped; +exports.V1SupplyOrderContentUpdateRequestItemToJSON = V1SupplyOrderContentUpdateRequestItemToJSON; +/** + * Check if a given object implements the V1SupplyOrderContentUpdateRequestItem interface. + */ +function instanceOfV1SupplyOrderContentUpdateRequestItem(value) { + if (!('quant' in value) || value['quant'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + if (!('sku' in value) || value['sku'] === undefined) + return false; + return true; +} +function V1SupplyOrderContentUpdateRequestItemFromJSON(json) { + return V1SupplyOrderContentUpdateRequestItemFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quant': json['quant'], + 'quantity': json['quantity'], + 'sku': json['sku'], + }; +} +function V1SupplyOrderContentUpdateRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'quant': value['quant'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V1SupplyOrderContentUpdateResponse.d.ts b/dist/models/V1SupplyOrderContentUpdateResponse.d.ts new file mode 100644 index 0000000..bd9cef7 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateResponse.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderContentUpdateResponseErrorEnum } from './V1SupplyOrderContentUpdateResponseErrorEnum'; +/** + * + * @export + * @interface V1SupplyOrderContentUpdateResponse + */ +export interface V1SupplyOrderContentUpdateResponse { + /** + * Ошибки при редактировании товарного состава: + * - `INVALID_DRAFT_BUNDLE_ID`, `SOME_SERVICE_ERROR`, `ORDER_IS_NOT_FOUND`, `SUPPLY_IS_NOT_FOUND`, `SUPPLY_DOES_NOT_BELONGS_TO_ORDER` — ошибка при редактировании поставки. + * - `HAS_UTD`, `UTD_IS_UPLOADED` — документы в системе ЭДО не удалены. Аннулируйте документы в системе ЭДО. Когда отредактируете состав, сформируйте и подпишите новые документы. + * - `ORDER_SKU_LIMIT` — количество товаров в поставке должно быть меньше или равно 5000. + * - `SAME_SKU` — товарный состав поставки остался прежним. + * - `SUPPLY_LOCKED` — обновление товарного состава в процессе, попробуйте позже. + * - `INBOUND_NO_CAPACITY` — на складе недостаточно места для поставки. + * - `INBOUND_LOCK`, `ORDER_LOCKED`, `STORAGE_WAREHOUSE_IS_NOT_WMS` — нельзя редактировать товарный состав. + * - `SUPPLY_CONTENT_NOT_VALID` — в составе поставки есть товары, которые склад не может принять. + * - `SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR`, `COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR`, `ORDER_DOES_NOT_BELONG_TO_CONTRACTOR` — заявка на поставку не принадлежит вашему юридическому лицу. + * - `SUPPLY_BELONG_TO_ANOTHER_COMPANY`, `ORDER_DOES_NOT_BELONGS_TO_COMPANY` — заявка на поставку не принадлежит вашему кабинету. + * - `INCORRECT_SUPPLY_STATE` — нельзя изменить поставку в этом статусе. + * - `INCORRECT_SUPPLY_SOURCE` — нельзя изменить поставку с этим источником данных. + * - `INCORRECT_STORAGE_WAREHOUSE` — нельзя изменить поставку с этим складом хранения. + * - `NO_SUPPLY_PRODUCT_BUNDLE_ID` — отсутствует идентификатор товарного состава поставки. + * - `INVALID_VOLUME` — некорректный объём поставки. + * - `SUPPLY_IS_VIRTUAL` — нельзя редактировать виртуальную поставку. + * - `DEADLINE` — нельзя изменить поставку за час до таймслота. + * - `INACTIVE_CONTRACT` — нельзя редактировать состав поставки с истекшим договором. + * - `QUANTITY_OUT_OF_RANGE_BOTTOM` — количество экземпляров каждого товара должно быть больше 0. + * - `QUANTITY_OUT_OF_RANGE_UPPER` — количество экземпляров каждого товара должно быть меньше или равно 1 000 000. + * - `EMPTY_CONTENT` — не сможем принять пустую поставку, добавьте товары. + * - `CONTRACT_IS_NOT_FOUND`, `CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS` — в этом личном кабинете нельзя изменить поставку. + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — объём товаров в поставке ниже минимального. + * + * @type {Array} + * @memberof V1SupplyOrderContentUpdateResponse + */ + errors?: Array; + /** + * Идентификатор операции. + * @type {string} + * @memberof V1SupplyOrderContentUpdateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateResponse interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateResponse(value: object): value is V1SupplyOrderContentUpdateResponse; +export declare function V1SupplyOrderContentUpdateResponseFromJSON(json: any): V1SupplyOrderContentUpdateResponse; +export declare function V1SupplyOrderContentUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateResponse; +export declare function V1SupplyOrderContentUpdateResponseToJSON(value?: V1SupplyOrderContentUpdateResponse | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateResponse.js b/dist/models/V1SupplyOrderContentUpdateResponse.js new file mode 100644 index 0000000..f2f9fe3 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderContentUpdateResponse = instanceOfV1SupplyOrderContentUpdateResponse; +exports.V1SupplyOrderContentUpdateResponseFromJSON = V1SupplyOrderContentUpdateResponseFromJSON; +exports.V1SupplyOrderContentUpdateResponseFromJSONTyped = V1SupplyOrderContentUpdateResponseFromJSONTyped; +exports.V1SupplyOrderContentUpdateResponseToJSON = V1SupplyOrderContentUpdateResponseToJSON; +const V1SupplyOrderContentUpdateResponseErrorEnum_1 = require("./V1SupplyOrderContentUpdateResponseErrorEnum"); +/** + * Check if a given object implements the V1SupplyOrderContentUpdateResponse interface. + */ +function instanceOfV1SupplyOrderContentUpdateResponse(value) { + return true; +} +function V1SupplyOrderContentUpdateResponseFromJSON(json) { + return V1SupplyOrderContentUpdateResponseFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1SupplyOrderContentUpdateResponseErrorEnum_1.V1SupplyOrderContentUpdateResponseErrorEnumFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1SupplyOrderContentUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1SupplyOrderContentUpdateResponseErrorEnum_1.V1SupplyOrderContentUpdateResponseErrorEnumToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1SupplyOrderContentUpdateResponseErrorEnum.d.ts b/dist/models/V1SupplyOrderContentUpdateResponseErrorEnum.d.ts new file mode 100644 index 0000000..f7a9a47 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateResponseErrorEnum.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1SupplyOrderContentUpdateResponseErrorEnum: { + readonly INVALID_DRAFT_BUNDLE_ID: "INVALID_DRAFT_BUNDLE_ID"; + readonly SOME_SERVICE_ERROR: "SOME_SERVICE_ERROR"; + readonly HAS_UTD: "HAS_UTD"; + readonly ORDER_SKU_LIMIT: "ORDER_SKU_LIMIT"; + readonly SAME_SKU: "SAME_SKU"; + readonly SUPPLY_LOCKED: "SUPPLY_LOCKED"; + readonly INBOUND_NO_CAPACITY: "INBOUND_NO_CAPACITY"; + readonly INBOUND_LOCK: "INBOUND_LOCK"; + readonly SUPPLY_CONTENT_NOT_VALID: "SUPPLY_CONTENT_NOT_VALID"; + readonly SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR: "SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR"; + readonly SUPPLY_BELONG_TO_ANOTHER_COMPANY: "SUPPLY_BELONG_TO_ANOTHER_COMPANY"; + readonly INCORRECT_SUPPLY_STATE: "INCORRECT_SUPPLY_STATE"; + readonly INCORRECT_SUPPLY_SOURCE: "INCORRECT_SUPPLY_SOURCE"; + readonly INCORRECT_STORAGE_WAREHOUSE: "INCORRECT_STORAGE_WAREHOUSE"; + readonly DEADLINE: "DEADLINE"; + readonly INACTIVE_CONTRACT: "INACTIVE_CONTRACT"; + readonly QUANTITY_OUT_OF_RANGE_BOTTOM: "QUANTITY_OUT_OF_RANGE_BOTTOM"; + readonly QUANTITY_OUT_OF_RANGE_UPPER: "QUANTITY_OUT_OF_RANGE_UPPER"; + readonly EMPTY_CONTENT: "EMPTY_CONTENT"; + readonly NO_SUPPLY_PRODUCT_BUNDLE_ID: "NO_SUPPLY_PRODUCT_BUNDLE_ID"; + readonly INVALID_VOLUME: "INVALID_VOLUME"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly ORDER_LOCKED: "ORDER_LOCKED"; + readonly CONTRACT_IS_NOT_FOUND: "CONTRACT_IS_NOT_FOUND"; + readonly COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR: "COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR"; + readonly ORDER_IS_NOT_FOUND: "ORDER_IS_NOT_FOUND"; + readonly ORDER_DOES_NOT_BELONGS_TO_COMPANY: "ORDER_DOES_NOT_BELONGS_TO_COMPANY"; + readonly SUPPLY_IS_NOT_FOUND: "SUPPLY_IS_NOT_FOUND"; + readonly SUPPLY_DOES_NOT_BELONGS_TO_ORDER: "SUPPLY_DOES_NOT_BELONGS_TO_ORDER"; + readonly UTD_IS_UPLOADED: "UTD_IS_UPLOADED"; + readonly STORAGE_WAREHOUSE_IS_NOT_WMS: "STORAGE_WAREHOUSE_IS_NOT_WMS"; + readonly CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: "CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS"; + readonly ORDER_DOES_NOT_BELONG_TO_CONTRACTOR: "ORDER_DOES_NOT_BELONG_TO_CONTRACTOR"; + readonly MINIMUM_VOLUME_IN_LITRES_INVALID: "MINIMUM_VOLUME_IN_LITRES_INVALID"; +}; +export type V1SupplyOrderContentUpdateResponseErrorEnum = typeof V1SupplyOrderContentUpdateResponseErrorEnum[keyof typeof V1SupplyOrderContentUpdateResponseErrorEnum]; +export declare function instanceOfV1SupplyOrderContentUpdateResponseErrorEnum(value: any): boolean; +export declare function V1SupplyOrderContentUpdateResponseErrorEnumFromJSON(json: any): V1SupplyOrderContentUpdateResponseErrorEnum; +export declare function V1SupplyOrderContentUpdateResponseErrorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateResponseErrorEnum; +export declare function V1SupplyOrderContentUpdateResponseErrorEnumToJSON(value?: V1SupplyOrderContentUpdateResponseErrorEnum | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateResponseErrorEnum.js b/dist/models/V1SupplyOrderContentUpdateResponseErrorEnum.js new file mode 100644 index 0000000..e26ee98 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateResponseErrorEnum.js @@ -0,0 +1,79 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SupplyOrderContentUpdateResponseErrorEnum = void 0; +exports.instanceOfV1SupplyOrderContentUpdateResponseErrorEnum = instanceOfV1SupplyOrderContentUpdateResponseErrorEnum; +exports.V1SupplyOrderContentUpdateResponseErrorEnumFromJSON = V1SupplyOrderContentUpdateResponseErrorEnumFromJSON; +exports.V1SupplyOrderContentUpdateResponseErrorEnumFromJSONTyped = V1SupplyOrderContentUpdateResponseErrorEnumFromJSONTyped; +exports.V1SupplyOrderContentUpdateResponseErrorEnumToJSON = V1SupplyOrderContentUpdateResponseErrorEnumToJSON; +/** + * + * @export + */ +exports.V1SupplyOrderContentUpdateResponseErrorEnum = { + INVALID_DRAFT_BUNDLE_ID: 'INVALID_DRAFT_BUNDLE_ID', + SOME_SERVICE_ERROR: 'SOME_SERVICE_ERROR', + HAS_UTD: 'HAS_UTD', + ORDER_SKU_LIMIT: 'ORDER_SKU_LIMIT', + SAME_SKU: 'SAME_SKU', + SUPPLY_LOCKED: 'SUPPLY_LOCKED', + INBOUND_NO_CAPACITY: 'INBOUND_NO_CAPACITY', + INBOUND_LOCK: 'INBOUND_LOCK', + SUPPLY_CONTENT_NOT_VALID: 'SUPPLY_CONTENT_NOT_VALID', + SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR: 'SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR', + SUPPLY_BELONG_TO_ANOTHER_COMPANY: 'SUPPLY_BELONG_TO_ANOTHER_COMPANY', + INCORRECT_SUPPLY_STATE: 'INCORRECT_SUPPLY_STATE', + INCORRECT_SUPPLY_SOURCE: 'INCORRECT_SUPPLY_SOURCE', + INCORRECT_STORAGE_WAREHOUSE: 'INCORRECT_STORAGE_WAREHOUSE', + DEADLINE: 'DEADLINE', + INACTIVE_CONTRACT: 'INACTIVE_CONTRACT', + QUANTITY_OUT_OF_RANGE_BOTTOM: 'QUANTITY_OUT_OF_RANGE_BOTTOM', + QUANTITY_OUT_OF_RANGE_UPPER: 'QUANTITY_OUT_OF_RANGE_UPPER', + EMPTY_CONTENT: 'EMPTY_CONTENT', + NO_SUPPLY_PRODUCT_BUNDLE_ID: 'NO_SUPPLY_PRODUCT_BUNDLE_ID', + INVALID_VOLUME: 'INVALID_VOLUME', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + ORDER_LOCKED: 'ORDER_LOCKED', + CONTRACT_IS_NOT_FOUND: 'CONTRACT_IS_NOT_FOUND', + COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR: 'COMPANY_DOES_NOT_BELONGS_TO_CONTRACTOR', + ORDER_IS_NOT_FOUND: 'ORDER_IS_NOT_FOUND', + ORDER_DOES_NOT_BELONGS_TO_COMPANY: 'ORDER_DOES_NOT_BELONGS_TO_COMPANY', + SUPPLY_IS_NOT_FOUND: 'SUPPLY_IS_NOT_FOUND', + SUPPLY_DOES_NOT_BELONGS_TO_ORDER: 'SUPPLY_DOES_NOT_BELONGS_TO_ORDER', + UTD_IS_UPLOADED: 'UTD_IS_UPLOADED', + STORAGE_WAREHOUSE_IS_NOT_WMS: 'STORAGE_WAREHOUSE_IS_NOT_WMS', + CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS: 'CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS', + ORDER_DOES_NOT_BELONG_TO_CONTRACTOR: 'ORDER_DOES_NOT_BELONG_TO_CONTRACTOR', + MINIMUM_VOLUME_IN_LITRES_INVALID: 'MINIMUM_VOLUME_IN_LITRES_INVALID' +}; +function instanceOfV1SupplyOrderContentUpdateResponseErrorEnum(value) { + for (const key in exports.V1SupplyOrderContentUpdateResponseErrorEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1SupplyOrderContentUpdateResponseErrorEnum, key)) { + if (exports.V1SupplyOrderContentUpdateResponseErrorEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1SupplyOrderContentUpdateResponseErrorEnumFromJSON(json) { + return V1SupplyOrderContentUpdateResponseErrorEnumFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateResponseErrorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SupplyOrderContentUpdateResponseErrorEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1SupplyOrderContentUpdateStatusRequest.d.ts b/dist/models/V1SupplyOrderContentUpdateStatusRequest.d.ts new file mode 100644 index 0000000..c32dfb2 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderContentUpdateStatusRequest + */ +export interface V1SupplyOrderContentUpdateStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1SupplyOrderContentUpdateStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateStatusRequest interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateStatusRequest(value: object): value is V1SupplyOrderContentUpdateStatusRequest; +export declare function V1SupplyOrderContentUpdateStatusRequestFromJSON(json: any): V1SupplyOrderContentUpdateStatusRequest; +export declare function V1SupplyOrderContentUpdateStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateStatusRequest; +export declare function V1SupplyOrderContentUpdateStatusRequestToJSON(value?: V1SupplyOrderContentUpdateStatusRequest | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateStatusRequest.js b/dist/models/V1SupplyOrderContentUpdateStatusRequest.js new file mode 100644 index 0000000..0becd28 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderContentUpdateStatusRequest = instanceOfV1SupplyOrderContentUpdateStatusRequest; +exports.V1SupplyOrderContentUpdateStatusRequestFromJSON = V1SupplyOrderContentUpdateStatusRequestFromJSON; +exports.V1SupplyOrderContentUpdateStatusRequestFromJSONTyped = V1SupplyOrderContentUpdateStatusRequestFromJSONTyped; +exports.V1SupplyOrderContentUpdateStatusRequestToJSON = V1SupplyOrderContentUpdateStatusRequestToJSON; +/** + * Check if a given object implements the V1SupplyOrderContentUpdateStatusRequest interface. + */ +function instanceOfV1SupplyOrderContentUpdateStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function V1SupplyOrderContentUpdateStatusRequestFromJSON(json) { + return V1SupplyOrderContentUpdateStatusRequestFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function V1SupplyOrderContentUpdateStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1SupplyOrderContentUpdateStatusResponse.d.ts b/dist/models/V1SupplyOrderContentUpdateStatusResponse.d.ts new file mode 100644 index 0000000..c9903fb --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateStatusResponse.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderContentUpdateStatusResponseStatusEnum } from './SupplyOrderContentUpdateStatusResponseStatusEnum'; +import type { V1SupplyOrderContentUpdateStatusResponseErrorEnum } from './V1SupplyOrderContentUpdateStatusResponseErrorEnum'; +/** + * + * @export + * @interface V1SupplyOrderContentUpdateStatusResponse + */ +export interface V1SupplyOrderContentUpdateStatusResponse { + /** + * Список ошибок при редактировании товарного состава: + * - `INVALID_DRAFT_BUNDLE_ID`, `SOME_SERVICE_ERROR` — ошибка при редактировании поставки. + * - `HAS_UTD` — документы в системе ЭДО не удалены. Аннулируйте документы в системе ЭДО. Когда отредактируете состав, сформируйте и подпишите новые документы. + * - `ORDER_SKU_LIMIT` — количество товаров в поставке должно быть меньше или равно 5000. + * - `SAME_SKU` — товарный состав поставки остался прежним. + * - `SUPPLY_LOCKED` — обновление товарного состава в процессе, попробуйте позже. + * - `INBOUND_NO_CAPACITY` — на складе недостаточно места для поставки. + * - `INBOUND_LOCK`, `ORDER_LOCKED` — нельзя редактировать товарный состав. + * - `SUPPLY_CONTENT_NOT_VALID` — в составе поставки есть товары, которые склад не может принять. Провалидируйте товарный состав методом [/v1/supply-order/content/update/validation](#operation/SupplyOrderContentUpdateValidation). + * - `SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR` — заявка на поставку не принадлежит вашему юридическому лицу. + * - `SUPPLY_BELONG_TO_ANOTHER_COMPANY` — заявка на поставку не принадлежит вашему кабинету. + * - `INCORRECT_SUPPLY_STATE` — нельзя изменить поставку в этом статусе. + * - `INCORRECT_SUPPLY_SOURCE` — нельзя изменить поставку с этим источником данных. + * - `INCORRECT_STORAGE_WAREHOUSE` — нельзя изменить поставку с этим складом хранения. + * - `NO_SUPPLY_PRODUCT_BUNDLE_ID` — отсутствует идентификатор товарного состава поставки. + * - `INVALID_VOLUME` — некорректный объём поставки. + * - `SUPPLY_IS_VIRTUAL` — нельзя редактировать виртуальную поставку. + * - `DEADLINE` — нельзя изменить поставку за час до таймслота. + * - `INACTIVE_CONTRACT` — нельзя редактировать состав поставки с истекшим договором. + * - `QUANTITY_OUT_OF_RANGE_BOTTOM` — количество экземпляров каждого товара должно быть больше 0. + * - `QUANTITY_OUT_OF_RANGE_UPPER` — количество экземпляров каждого товара должно быть меньше или равно 1 000 000. + * - `EMPTY_CONTENT` — не сможем принять пустую поставку, добавьте товары. + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — объём товаров в поставке ниже минимального. + * + * @type {Array} + * @memberof V1SupplyOrderContentUpdateStatusResponse + */ + errors?: Array; + /** + * Идентификатор нового товарного состава поставки. + * @type {string} + * @memberof V1SupplyOrderContentUpdateStatusResponse + */ + new_bundle_id?: string; + /** + * + * @type {SupplyOrderContentUpdateStatusResponseStatusEnum} + * @memberof V1SupplyOrderContentUpdateStatusResponse + */ + status?: SupplyOrderContentUpdateStatusResponseStatusEnum; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateStatusResponse interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateStatusResponse(value: object): value is V1SupplyOrderContentUpdateStatusResponse; +export declare function V1SupplyOrderContentUpdateStatusResponseFromJSON(json: any): V1SupplyOrderContentUpdateStatusResponse; +export declare function V1SupplyOrderContentUpdateStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateStatusResponse; +export declare function V1SupplyOrderContentUpdateStatusResponseToJSON(value?: V1SupplyOrderContentUpdateStatusResponse | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateStatusResponse.js b/dist/models/V1SupplyOrderContentUpdateStatusResponse.js new file mode 100644 index 0000000..0dabbeb --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateStatusResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderContentUpdateStatusResponse = instanceOfV1SupplyOrderContentUpdateStatusResponse; +exports.V1SupplyOrderContentUpdateStatusResponseFromJSON = V1SupplyOrderContentUpdateStatusResponseFromJSON; +exports.V1SupplyOrderContentUpdateStatusResponseFromJSONTyped = V1SupplyOrderContentUpdateStatusResponseFromJSONTyped; +exports.V1SupplyOrderContentUpdateStatusResponseToJSON = V1SupplyOrderContentUpdateStatusResponseToJSON; +const SupplyOrderContentUpdateStatusResponseStatusEnum_1 = require("./SupplyOrderContentUpdateStatusResponseStatusEnum"); +const V1SupplyOrderContentUpdateStatusResponseErrorEnum_1 = require("./V1SupplyOrderContentUpdateStatusResponseErrorEnum"); +/** + * Check if a given object implements the V1SupplyOrderContentUpdateStatusResponse interface. + */ +function instanceOfV1SupplyOrderContentUpdateStatusResponse(value) { + return true; +} +function V1SupplyOrderContentUpdateStatusResponseFromJSON(json) { + return V1SupplyOrderContentUpdateStatusResponseFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1SupplyOrderContentUpdateStatusResponseErrorEnum_1.V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON)), + 'new_bundle_id': json['new_bundle_id'] == null ? undefined : json['new_bundle_id'], + 'status': json['status'] == null ? undefined : (0, SupplyOrderContentUpdateStatusResponseStatusEnum_1.SupplyOrderContentUpdateStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function V1SupplyOrderContentUpdateStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1SupplyOrderContentUpdateStatusResponseErrorEnum_1.V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON)), + 'new_bundle_id': value['new_bundle_id'], + 'status': (0, SupplyOrderContentUpdateStatusResponseStatusEnum_1.SupplyOrderContentUpdateStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.d.ts b/dist/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.d.ts new file mode 100644 index 0000000..41685f6 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1SupplyOrderContentUpdateStatusResponseErrorEnum: { + readonly INVALID_DRAFT_BUNDLE_ID: "INVALID_DRAFT_BUNDLE_ID"; + readonly SOME_SERVICE_ERROR: "SOME_SERVICE_ERROR"; + readonly HAS_UTD: "HAS_UTD"; + readonly ORDER_SKU_LIMIT: "ORDER_SKU_LIMIT"; + readonly SAME_SKU: "SAME_SKU"; + readonly SUPPLY_LOCKED: "SUPPLY_LOCKED"; + readonly INBOUND_NO_CAPACITY: "INBOUND_NO_CAPACITY"; + readonly INBOUND_LOCK: "INBOUND_LOCK"; + readonly SUPPLY_CONTENT_NOT_VALID: "SUPPLY_CONTENT_NOT_VALID"; + readonly SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR: "SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR"; + readonly SUPPLY_BELONG_TO_ANOTHER_COMPANY: "SUPPLY_BELONG_TO_ANOTHER_COMPANY"; + readonly INCORRECT_SUPPLY_STATE: "INCORRECT_SUPPLY_STATE"; + readonly INCORRECT_SUPPLY_SOURCE: "INCORRECT_SUPPLY_SOURCE"; + readonly INCORRECT_STORAGE_WAREHOUSE: "INCORRECT_STORAGE_WAREHOUSE"; + readonly DEADLINE: "DEADLINE"; + readonly INACTIVE_CONTRACT: "INACTIVE_CONTRACT"; + readonly QUANTITY_OUT_OF_RANGE_BOTTOM: "QUANTITY_OUT_OF_RANGE_BOTTOM"; + readonly QUANTITY_OUT_OF_RANGE_UPPER: "QUANTITY_OUT_OF_RANGE_UPPER"; + readonly EMPTY_CONTENT: "EMPTY_CONTENT"; + readonly NO_SUPPLY_PRODUCT_BUNDLE_ID: "NO_SUPPLY_PRODUCT_BUNDLE_ID"; + readonly INVALID_VOLUME: "INVALID_VOLUME"; + readonly SUPPLY_IS_VIRTUAL: "SUPPLY_IS_VIRTUAL"; + readonly ORDER_LOCKED: "ORDER_LOCKED"; + readonly MINIMUM_VOLUME_IN_LITRES_INVALID: "MINIMUM_VOLUME_IN_LITRES_INVALID"; +}; +export type V1SupplyOrderContentUpdateStatusResponseErrorEnum = typeof V1SupplyOrderContentUpdateStatusResponseErrorEnum[keyof typeof V1SupplyOrderContentUpdateStatusResponseErrorEnum]; +export declare function instanceOfV1SupplyOrderContentUpdateStatusResponseErrorEnum(value: any): boolean; +export declare function V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON(json: any): V1SupplyOrderContentUpdateStatusResponseErrorEnum; +export declare function V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateStatusResponseErrorEnum; +export declare function V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON(value?: V1SupplyOrderContentUpdateStatusResponseErrorEnum | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.js b/dist/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.js new file mode 100644 index 0000000..e91e11a --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateStatusResponseErrorEnum.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SupplyOrderContentUpdateStatusResponseErrorEnum = void 0; +exports.instanceOfV1SupplyOrderContentUpdateStatusResponseErrorEnum = instanceOfV1SupplyOrderContentUpdateStatusResponseErrorEnum; +exports.V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON = V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON; +exports.V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSONTyped = V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSONTyped; +exports.V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON = V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON; +/** + * + * @export + */ +exports.V1SupplyOrderContentUpdateStatusResponseErrorEnum = { + INVALID_DRAFT_BUNDLE_ID: 'INVALID_DRAFT_BUNDLE_ID', + SOME_SERVICE_ERROR: 'SOME_SERVICE_ERROR', + HAS_UTD: 'HAS_UTD', + ORDER_SKU_LIMIT: 'ORDER_SKU_LIMIT', + SAME_SKU: 'SAME_SKU', + SUPPLY_LOCKED: 'SUPPLY_LOCKED', + INBOUND_NO_CAPACITY: 'INBOUND_NO_CAPACITY', + INBOUND_LOCK: 'INBOUND_LOCK', + SUPPLY_CONTENT_NOT_VALID: 'SUPPLY_CONTENT_NOT_VALID', + SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR: 'SUPPLY_BELONG_TO_ANOTHER_CONTRACTOR', + SUPPLY_BELONG_TO_ANOTHER_COMPANY: 'SUPPLY_BELONG_TO_ANOTHER_COMPANY', + INCORRECT_SUPPLY_STATE: 'INCORRECT_SUPPLY_STATE', + INCORRECT_SUPPLY_SOURCE: 'INCORRECT_SUPPLY_SOURCE', + INCORRECT_STORAGE_WAREHOUSE: 'INCORRECT_STORAGE_WAREHOUSE', + DEADLINE: 'DEADLINE', + INACTIVE_CONTRACT: 'INACTIVE_CONTRACT', + QUANTITY_OUT_OF_RANGE_BOTTOM: 'QUANTITY_OUT_OF_RANGE_BOTTOM', + QUANTITY_OUT_OF_RANGE_UPPER: 'QUANTITY_OUT_OF_RANGE_UPPER', + EMPTY_CONTENT: 'EMPTY_CONTENT', + NO_SUPPLY_PRODUCT_BUNDLE_ID: 'NO_SUPPLY_PRODUCT_BUNDLE_ID', + INVALID_VOLUME: 'INVALID_VOLUME', + SUPPLY_IS_VIRTUAL: 'SUPPLY_IS_VIRTUAL', + ORDER_LOCKED: 'ORDER_LOCKED', + MINIMUM_VOLUME_IN_LITRES_INVALID: 'MINIMUM_VOLUME_IN_LITRES_INVALID' +}; +function instanceOfV1SupplyOrderContentUpdateStatusResponseErrorEnum(value) { + for (const key in exports.V1SupplyOrderContentUpdateStatusResponseErrorEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1SupplyOrderContentUpdateStatusResponseErrorEnum, key)) { + if (exports.V1SupplyOrderContentUpdateStatusResponseErrorEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSON(json) { + return V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateStatusResponseErrorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SupplyOrderContentUpdateStatusResponseErrorEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1SupplyOrderContentUpdateValidationRequest.d.ts b/dist/models/V1SupplyOrderContentUpdateValidationRequest.d.ts new file mode 100644 index 0000000..53723a9 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateValidationRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderContentUpdateValidationRequest + */ +export interface V1SupplyOrderContentUpdateValidationRequest { + /** + * Идентификатор нового товарного состава поставки. + * @type {string} + * @memberof V1SupplyOrderContentUpdateValidationRequest + */ + new_bundle_id: string; + /** + * Идентификатор поставки. + * @type {number} + * @memberof V1SupplyOrderContentUpdateValidationRequest + */ + supply_id: number; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateValidationRequest interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateValidationRequest(value: object): value is V1SupplyOrderContentUpdateValidationRequest; +export declare function V1SupplyOrderContentUpdateValidationRequestFromJSON(json: any): V1SupplyOrderContentUpdateValidationRequest; +export declare function V1SupplyOrderContentUpdateValidationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateValidationRequest; +export declare function V1SupplyOrderContentUpdateValidationRequestToJSON(value?: V1SupplyOrderContentUpdateValidationRequest | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateValidationRequest.js b/dist/models/V1SupplyOrderContentUpdateValidationRequest.js new file mode 100644 index 0000000..e8ef819 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateValidationRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderContentUpdateValidationRequest = instanceOfV1SupplyOrderContentUpdateValidationRequest; +exports.V1SupplyOrderContentUpdateValidationRequestFromJSON = V1SupplyOrderContentUpdateValidationRequestFromJSON; +exports.V1SupplyOrderContentUpdateValidationRequestFromJSONTyped = V1SupplyOrderContentUpdateValidationRequestFromJSONTyped; +exports.V1SupplyOrderContentUpdateValidationRequestToJSON = V1SupplyOrderContentUpdateValidationRequestToJSON; +/** + * Check if a given object implements the V1SupplyOrderContentUpdateValidationRequest interface. + */ +function instanceOfV1SupplyOrderContentUpdateValidationRequest(value) { + if (!('new_bundle_id' in value) || value['new_bundle_id'] === undefined) + return false; + if (!('supply_id' in value) || value['supply_id'] === undefined) + return false; + return true; +} +function V1SupplyOrderContentUpdateValidationRequestFromJSON(json) { + return V1SupplyOrderContentUpdateValidationRequestFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateValidationRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'new_bundle_id': json['new_bundle_id'], + 'supply_id': json['supply_id'], + }; +} +function V1SupplyOrderContentUpdateValidationRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'new_bundle_id': value['new_bundle_id'], + 'supply_id': value['supply_id'], + }; +} diff --git a/dist/models/V1SupplyOrderContentUpdateValidationResponse.d.ts b/dist/models/V1SupplyOrderContentUpdateValidationResponse.d.ts new file mode 100644 index 0000000..42f6ee4 --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateValidationResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderContentUpdateValidationResponseValidatedAssortment } from './SupplyOrderContentUpdateValidationResponseValidatedAssortment'; +import type { SupplyOrderContentUpdateValidationResponseEditingErrorEnum } from './SupplyOrderContentUpdateValidationResponseEditingErrorEnum'; +/** + * + * @export + * @interface V1SupplyOrderContentUpdateValidationResponse + */ +export interface V1SupplyOrderContentUpdateValidationResponse { + /** + * Ошибки: + * - `UNSPECIFIED` — не определено. + * - `UNKNOWN` — неизвестный тип. + * - `INCORRECT_SUPPLY_STATE` — нельзя изменить поставку в этом статусе. + * - `DEADLINE` — нельзя изменить поставку за час до таймслота. + * - `UTD_IS_UPLOADED` — документы в системе ЭДО не удалены. Аннулируйте документы в системе ЭДО. Когда отредактируете состав, сформируйте и подпишите новые документы. + * - `STORAGE_WAREHOUSE_IS_NOT_WMS` — нельзя редактировать товарный состав. + * - `CONTRACT_IS_NOT_VALID_FOR_HANDLING_ORDERS` — в этом личном кабинете нельзя изменить поставку. + * - `SUPPLY_IS_VIRTUAL` — нельзя редактировать виртуальную поставку. + * - `SUPPLY_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит вашему кабинету. + * - `ASSORTMENT_REJECTION_REASON_CORRUPTED_ASSORTMENT` — не получилось добавить товар в заявку. Попробуйте ещё раз. + * - `ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_ANY_FEACN`, `ASSORTMENT_REJECTION_REASON_STORAGE_BELARUS_SKU_HAS_NO_SELLER_FEACN` — у товара нет кода ТН ВЭД ЕАЭС. + * - `ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_GTIN_BARCODE` — у товара нет штрихкода GTIN. + * - `ASSORTMENT_REJECTION_REASON_TRACEABLE_SKU_HAS_NO_MEASUREMENT_UNIT_QUANTITY` — не указано количество товара в унифицированных единицах измерения. + * + * @type {Array} + * @memberof V1SupplyOrderContentUpdateValidationResponse + */ + editing_errors?: Array; + /** + * + * @type {SupplyOrderContentUpdateValidationResponseValidatedAssortment} + * @memberof V1SupplyOrderContentUpdateValidationResponse + */ + validated_assortment?: SupplyOrderContentUpdateValidationResponseValidatedAssortment; +} +/** + * Check if a given object implements the V1SupplyOrderContentUpdateValidationResponse interface. + */ +export declare function instanceOfV1SupplyOrderContentUpdateValidationResponse(value: object): value is V1SupplyOrderContentUpdateValidationResponse; +export declare function V1SupplyOrderContentUpdateValidationResponseFromJSON(json: any): V1SupplyOrderContentUpdateValidationResponse; +export declare function V1SupplyOrderContentUpdateValidationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderContentUpdateValidationResponse; +export declare function V1SupplyOrderContentUpdateValidationResponseToJSON(value?: V1SupplyOrderContentUpdateValidationResponse | null): any; diff --git a/dist/models/V1SupplyOrderContentUpdateValidationResponse.js b/dist/models/V1SupplyOrderContentUpdateValidationResponse.js new file mode 100644 index 0000000..2a5234c --- /dev/null +++ b/dist/models/V1SupplyOrderContentUpdateValidationResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderContentUpdateValidationResponse = instanceOfV1SupplyOrderContentUpdateValidationResponse; +exports.V1SupplyOrderContentUpdateValidationResponseFromJSON = V1SupplyOrderContentUpdateValidationResponseFromJSON; +exports.V1SupplyOrderContentUpdateValidationResponseFromJSONTyped = V1SupplyOrderContentUpdateValidationResponseFromJSONTyped; +exports.V1SupplyOrderContentUpdateValidationResponseToJSON = V1SupplyOrderContentUpdateValidationResponseToJSON; +const SupplyOrderContentUpdateValidationResponseValidatedAssortment_1 = require("./SupplyOrderContentUpdateValidationResponseValidatedAssortment"); +const SupplyOrderContentUpdateValidationResponseEditingErrorEnum_1 = require("./SupplyOrderContentUpdateValidationResponseEditingErrorEnum"); +/** + * Check if a given object implements the V1SupplyOrderContentUpdateValidationResponse interface. + */ +function instanceOfV1SupplyOrderContentUpdateValidationResponse(value) { + return true; +} +function V1SupplyOrderContentUpdateValidationResponseFromJSON(json) { + return V1SupplyOrderContentUpdateValidationResponseFromJSONTyped(json, false); +} +function V1SupplyOrderContentUpdateValidationResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'editing_errors': json['editing_errors'] == null ? undefined : (json['editing_errors'].map(SupplyOrderContentUpdateValidationResponseEditingErrorEnum_1.SupplyOrderContentUpdateValidationResponseEditingErrorEnumFromJSON)), + 'validated_assortment': json['validated_assortment'] == null ? undefined : (0, SupplyOrderContentUpdateValidationResponseValidatedAssortment_1.SupplyOrderContentUpdateValidationResponseValidatedAssortmentFromJSON)(json['validated_assortment']), + }; +} +function V1SupplyOrderContentUpdateValidationResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'editing_errors': value['editing_errors'] == null ? undefined : (value['editing_errors'].map(SupplyOrderContentUpdateValidationResponseEditingErrorEnum_1.SupplyOrderContentUpdateValidationResponseEditingErrorEnumToJSON)), + 'validated_assortment': (0, SupplyOrderContentUpdateValidationResponseValidatedAssortment_1.SupplyOrderContentUpdateValidationResponseValidatedAssortmentToJSON)(value['validated_assortment']), + }; +} diff --git a/dist/models/V1SupplyOrderDetailsRequest.d.ts b/dist/models/V1SupplyOrderDetailsRequest.d.ts new file mode 100644 index 0000000..fbc859d --- /dev/null +++ b/dist/models/V1SupplyOrderDetailsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderDetailsRequest + */ +export interface V1SupplyOrderDetailsRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderDetailsRequest + */ + order_id: number; +} +/** + * Check if a given object implements the V1SupplyOrderDetailsRequest interface. + */ +export declare function instanceOfV1SupplyOrderDetailsRequest(value: object): value is V1SupplyOrderDetailsRequest; +export declare function V1SupplyOrderDetailsRequestFromJSON(json: any): V1SupplyOrderDetailsRequest; +export declare function V1SupplyOrderDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderDetailsRequest; +export declare function V1SupplyOrderDetailsRequestToJSON(value?: V1SupplyOrderDetailsRequest | null): any; diff --git a/dist/models/V1SupplyOrderDetailsRequest.js b/dist/models/V1SupplyOrderDetailsRequest.js new file mode 100644 index 0000000..78a8f71 --- /dev/null +++ b/dist/models/V1SupplyOrderDetailsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderDetailsRequest = instanceOfV1SupplyOrderDetailsRequest; +exports.V1SupplyOrderDetailsRequestFromJSON = V1SupplyOrderDetailsRequestFromJSON; +exports.V1SupplyOrderDetailsRequestFromJSONTyped = V1SupplyOrderDetailsRequestFromJSONTyped; +exports.V1SupplyOrderDetailsRequestToJSON = V1SupplyOrderDetailsRequestToJSON; +/** + * Check if a given object implements the V1SupplyOrderDetailsRequest interface. + */ +function instanceOfV1SupplyOrderDetailsRequest(value) { + if (!('order_id' in value) || value['order_id'] === undefined) + return false; + return true; +} +function V1SupplyOrderDetailsRequestFromJSON(json) { + return V1SupplyOrderDetailsRequestFromJSONTyped(json, false); +} +function V1SupplyOrderDetailsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_id': json['order_id'], + }; +} +function V1SupplyOrderDetailsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_id': value['order_id'], + }; +} diff --git a/dist/models/V1SupplyOrderDetailsResponse.d.ts b/dist/models/V1SupplyOrderDetailsResponse.d.ts new file mode 100644 index 0000000..0b9e155 --- /dev/null +++ b/dist/models/V1SupplyOrderDetailsResponse.d.ts @@ -0,0 +1,96 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderDetailsResponseTimeslot } from './V1SupplyOrderDetailsResponseTimeslot'; +import type { SupplyOrderDetailsResponseVehicle } from './SupplyOrderDetailsResponseVehicle'; +import type { SupplyOrderDetailsResponseOrderTags } from './SupplyOrderDetailsResponseOrderTags'; +import type { SupplyOrderDetailsResponseOrderStateEnum } from './SupplyOrderDetailsResponseOrderStateEnum'; +import type { SupplyOrderDetailsResponseSupply } from './SupplyOrderDetailsResponseSupply'; +/** + * + * @export + * @interface V1SupplyOrderDetailsResponse + */ +export interface V1SupplyOrderDetailsResponse { + /** + * Дата создания заявки на поставку. + * @type {string} + * @memberof V1SupplyOrderDetailsResponse + */ + created_date?: string; + /** + * Время в секундах, оставшееся на заполнение данных по поставке. Только для заявок с вРЦ. + * @type {string} + * @memberof V1SupplyOrderDetailsResponse + */ + data_filling_deadline_utc?: string; + /** + * Идентификатор пункта отгрузки. + * @type {number} + * @memberof V1SupplyOrderDetailsResponse + */ + dropoff_warehouse_id?: number; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderDetailsResponse + */ + order_id?: number; + /** + * Номер заявки на поставку. + * @type {string} + * @memberof V1SupplyOrderDetailsResponse + */ + order_number?: string; + /** + * + * @type {SupplyOrderDetailsResponseOrderTags} + * @memberof V1SupplyOrderDetailsResponse + */ + order_tags?: SupplyOrderDetailsResponseOrderTags; + /** + * + * @type {SupplyOrderDetailsResponseOrderStateEnum} + * @memberof V1SupplyOrderDetailsResponse + */ + state?: SupplyOrderDetailsResponseOrderStateEnum; + /** + * Дата обновления статуса заявки на поставку. + * @type {string} + * @memberof V1SupplyOrderDetailsResponse + */ + state_updated_date?: string; + /** + * Информация о поставках. + * @type {Array} + * @memberof V1SupplyOrderDetailsResponse + */ + supplies?: Array; + /** + * + * @type {V1SupplyOrderDetailsResponseTimeslot} + * @memberof V1SupplyOrderDetailsResponse + */ + timeslot?: V1SupplyOrderDetailsResponseTimeslot; + /** + * + * @type {SupplyOrderDetailsResponseVehicle} + * @memberof V1SupplyOrderDetailsResponse + */ + vehicle?: SupplyOrderDetailsResponseVehicle; +} +/** + * Check if a given object implements the V1SupplyOrderDetailsResponse interface. + */ +export declare function instanceOfV1SupplyOrderDetailsResponse(value: object): value is V1SupplyOrderDetailsResponse; +export declare function V1SupplyOrderDetailsResponseFromJSON(json: any): V1SupplyOrderDetailsResponse; +export declare function V1SupplyOrderDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderDetailsResponse; +export declare function V1SupplyOrderDetailsResponseToJSON(value?: V1SupplyOrderDetailsResponse | null): any; diff --git a/dist/models/V1SupplyOrderDetailsResponse.js b/dist/models/V1SupplyOrderDetailsResponse.js new file mode 100644 index 0000000..ca0e9ef --- /dev/null +++ b/dist/models/V1SupplyOrderDetailsResponse.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderDetailsResponse = instanceOfV1SupplyOrderDetailsResponse; +exports.V1SupplyOrderDetailsResponseFromJSON = V1SupplyOrderDetailsResponseFromJSON; +exports.V1SupplyOrderDetailsResponseFromJSONTyped = V1SupplyOrderDetailsResponseFromJSONTyped; +exports.V1SupplyOrderDetailsResponseToJSON = V1SupplyOrderDetailsResponseToJSON; +const V1SupplyOrderDetailsResponseTimeslot_1 = require("./V1SupplyOrderDetailsResponseTimeslot"); +const SupplyOrderDetailsResponseVehicle_1 = require("./SupplyOrderDetailsResponseVehicle"); +const SupplyOrderDetailsResponseOrderTags_1 = require("./SupplyOrderDetailsResponseOrderTags"); +const SupplyOrderDetailsResponseOrderStateEnum_1 = require("./SupplyOrderDetailsResponseOrderStateEnum"); +const SupplyOrderDetailsResponseSupply_1 = require("./SupplyOrderDetailsResponseSupply"); +/** + * Check if a given object implements the V1SupplyOrderDetailsResponse interface. + */ +function instanceOfV1SupplyOrderDetailsResponse(value) { + return true; +} +function V1SupplyOrderDetailsResponseFromJSON(json) { + return V1SupplyOrderDetailsResponseFromJSONTyped(json, false); +} +function V1SupplyOrderDetailsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_date': json['created_date'] == null ? undefined : json['created_date'], + 'data_filling_deadline_utc': json['data_filling_deadline_utc'] == null ? undefined : json['data_filling_deadline_utc'], + 'dropoff_warehouse_id': json['dropoff_warehouse_id'] == null ? undefined : json['dropoff_warehouse_id'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'order_tags': json['order_tags'] == null ? undefined : (0, SupplyOrderDetailsResponseOrderTags_1.SupplyOrderDetailsResponseOrderTagsFromJSON)(json['order_tags']), + 'state': json['state'] == null ? undefined : (0, SupplyOrderDetailsResponseOrderStateEnum_1.SupplyOrderDetailsResponseOrderStateEnumFromJSON)(json['state']), + 'state_updated_date': json['state_updated_date'] == null ? undefined : json['state_updated_date'], + 'supplies': json['supplies'] == null ? undefined : (json['supplies'].map(SupplyOrderDetailsResponseSupply_1.SupplyOrderDetailsResponseSupplyFromJSON)), + 'timeslot': json['timeslot'] == null ? undefined : (0, V1SupplyOrderDetailsResponseTimeslot_1.V1SupplyOrderDetailsResponseTimeslotFromJSON)(json['timeslot']), + 'vehicle': json['vehicle'] == null ? undefined : (0, SupplyOrderDetailsResponseVehicle_1.SupplyOrderDetailsResponseVehicleFromJSON)(json['vehicle']), + }; +} +function V1SupplyOrderDetailsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_date': value['created_date'], + 'data_filling_deadline_utc': value['data_filling_deadline_utc'], + 'dropoff_warehouse_id': value['dropoff_warehouse_id'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'order_tags': (0, SupplyOrderDetailsResponseOrderTags_1.SupplyOrderDetailsResponseOrderTagsToJSON)(value['order_tags']), + 'state': (0, SupplyOrderDetailsResponseOrderStateEnum_1.SupplyOrderDetailsResponseOrderStateEnumToJSON)(value['state']), + 'state_updated_date': value['state_updated_date'], + 'supplies': value['supplies'] == null ? undefined : (value['supplies'].map(SupplyOrderDetailsResponseSupply_1.SupplyOrderDetailsResponseSupplyToJSON)), + 'timeslot': (0, V1SupplyOrderDetailsResponseTimeslot_1.V1SupplyOrderDetailsResponseTimeslotToJSON)(value['timeslot']), + 'vehicle': (0, SupplyOrderDetailsResponseVehicle_1.SupplyOrderDetailsResponseVehicleToJSON)(value['vehicle']), + }; +} diff --git a/dist/models/V1SupplyOrderDetailsResponseTimeslot.d.ts b/dist/models/V1SupplyOrderDetailsResponseTimeslot.d.ts new file mode 100644 index 0000000..f79e48b --- /dev/null +++ b/dist/models/V1SupplyOrderDetailsResponseTimeslot.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderDetailsResponseTimeslotValue } from './SupplyOrderDetailsResponseTimeslotValue'; +import type { TimeslotCanNotSetTimeslotReasonEnum } from './TimeslotCanNotSetTimeslotReasonEnum'; +/** + * Информация о таймслоте. + * @export + * @interface V1SupplyOrderDetailsResponseTimeslot + */ +export interface V1SupplyOrderDetailsResponseTimeslot { + /** + * Причина, почему нельзя выбрать интервал поставки: + * - `UNSPECIFIED` — не определена; + * - `INVALID_ORDER_STATE` — нельзя установить таймслот в заявке с текущим статусом; + * - `ORDER_IS_VIRTUAL` — заявка на поставку виртуальная; + * - `SET_TIMESLOT_DEADLINE_EXCEED` — время установки таймслота истекло; + * - `ORDER_DOES_NOT_BELONG_TO_COMPANY` — заявка на поставку не принадлежит продавцу; + * - `UNDEFINED` — неизвестная. + * + * @type {Array} + * @memberof V1SupplyOrderDetailsResponseTimeslot + */ + can_not_set_reasons?: Array; + /** + * `true`, если можно изменить интервал поставки. + * + * @type {boolean} + * @memberof V1SupplyOrderDetailsResponseTimeslot + */ + can_set?: boolean; + /** + * + * @type {SupplyOrderDetailsResponseTimeslotValue} + * @memberof V1SupplyOrderDetailsResponseTimeslot + */ + value?: SupplyOrderDetailsResponseTimeslotValue; +} +/** + * Check if a given object implements the V1SupplyOrderDetailsResponseTimeslot interface. + */ +export declare function instanceOfV1SupplyOrderDetailsResponseTimeslot(value: object): value is V1SupplyOrderDetailsResponseTimeslot; +export declare function V1SupplyOrderDetailsResponseTimeslotFromJSON(json: any): V1SupplyOrderDetailsResponseTimeslot; +export declare function V1SupplyOrderDetailsResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderDetailsResponseTimeslot; +export declare function V1SupplyOrderDetailsResponseTimeslotToJSON(value?: V1SupplyOrderDetailsResponseTimeslot | null): any; diff --git a/dist/models/V1SupplyOrderDetailsResponseTimeslot.js b/dist/models/V1SupplyOrderDetailsResponseTimeslot.js new file mode 100644 index 0000000..9ae52e0 --- /dev/null +++ b/dist/models/V1SupplyOrderDetailsResponseTimeslot.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderDetailsResponseTimeslot = instanceOfV1SupplyOrderDetailsResponseTimeslot; +exports.V1SupplyOrderDetailsResponseTimeslotFromJSON = V1SupplyOrderDetailsResponseTimeslotFromJSON; +exports.V1SupplyOrderDetailsResponseTimeslotFromJSONTyped = V1SupplyOrderDetailsResponseTimeslotFromJSONTyped; +exports.V1SupplyOrderDetailsResponseTimeslotToJSON = V1SupplyOrderDetailsResponseTimeslotToJSON; +const SupplyOrderDetailsResponseTimeslotValue_1 = require("./SupplyOrderDetailsResponseTimeslotValue"); +const TimeslotCanNotSetTimeslotReasonEnum_1 = require("./TimeslotCanNotSetTimeslotReasonEnum"); +/** + * Check if a given object implements the V1SupplyOrderDetailsResponseTimeslot interface. + */ +function instanceOfV1SupplyOrderDetailsResponseTimeslot(value) { + return true; +} +function V1SupplyOrderDetailsResponseTimeslotFromJSON(json) { + return V1SupplyOrderDetailsResponseTimeslotFromJSONTyped(json, false); +} +function V1SupplyOrderDetailsResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_not_set_reasons': json['can_not_set_reasons'] == null ? undefined : (json['can_not_set_reasons'].map(TimeslotCanNotSetTimeslotReasonEnum_1.TimeslotCanNotSetTimeslotReasonEnumFromJSON)), + 'can_set': json['can_set'] == null ? undefined : json['can_set'], + 'value': json['value'] == null ? undefined : (0, SupplyOrderDetailsResponseTimeslotValue_1.SupplyOrderDetailsResponseTimeslotValueFromJSON)(json['value']), + }; +} +function V1SupplyOrderDetailsResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_not_set_reasons': value['can_not_set_reasons'] == null ? undefined : (value['can_not_set_reasons'].map(TimeslotCanNotSetTimeslotReasonEnum_1.TimeslotCanNotSetTimeslotReasonEnumToJSON)), + 'can_set': value['can_set'], + 'value': (0, SupplyOrderDetailsResponseTimeslotValue_1.SupplyOrderDetailsResponseTimeslotValueToJSON)(value['value']), + }; +} diff --git a/dist/models/V1SupplyOrderPassCreateRequest.d.ts b/dist/models/V1SupplyOrderPassCreateRequest.d.ts new file mode 100644 index 0000000..a0b7101 --- /dev/null +++ b/dist/models/V1SupplyOrderPassCreateRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1VehicleInfo } from './V1VehicleInfo'; +/** + * + * @export + * @interface V1SupplyOrderPassCreateRequest + */ +export interface V1SupplyOrderPassCreateRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1SupplyOrderPassCreateRequest + */ + supply_order_id: number; + /** + * + * @type {V1VehicleInfo} + * @memberof V1SupplyOrderPassCreateRequest + */ + vehicle: V1VehicleInfo; +} +/** + * Check if a given object implements the V1SupplyOrderPassCreateRequest interface. + */ +export declare function instanceOfV1SupplyOrderPassCreateRequest(value: object): value is V1SupplyOrderPassCreateRequest; +export declare function V1SupplyOrderPassCreateRequestFromJSON(json: any): V1SupplyOrderPassCreateRequest; +export declare function V1SupplyOrderPassCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassCreateRequest; +export declare function V1SupplyOrderPassCreateRequestToJSON(value?: V1SupplyOrderPassCreateRequest | null): any; diff --git a/dist/models/V1SupplyOrderPassCreateRequest.js b/dist/models/V1SupplyOrderPassCreateRequest.js new file mode 100644 index 0000000..7619a01 --- /dev/null +++ b/dist/models/V1SupplyOrderPassCreateRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderPassCreateRequest = instanceOfV1SupplyOrderPassCreateRequest; +exports.V1SupplyOrderPassCreateRequestFromJSON = V1SupplyOrderPassCreateRequestFromJSON; +exports.V1SupplyOrderPassCreateRequestFromJSONTyped = V1SupplyOrderPassCreateRequestFromJSONTyped; +exports.V1SupplyOrderPassCreateRequestToJSON = V1SupplyOrderPassCreateRequestToJSON; +const V1VehicleInfo_1 = require("./V1VehicleInfo"); +/** + * Check if a given object implements the V1SupplyOrderPassCreateRequest interface. + */ +function instanceOfV1SupplyOrderPassCreateRequest(value) { + if (!('supply_order_id' in value) || value['supply_order_id'] === undefined) + return false; + if (!('vehicle' in value) || value['vehicle'] === undefined) + return false; + return true; +} +function V1SupplyOrderPassCreateRequestFromJSON(json) { + return V1SupplyOrderPassCreateRequestFromJSONTyped(json, false); +} +function V1SupplyOrderPassCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_order_id': json['supply_order_id'], + 'vehicle': (0, V1VehicleInfo_1.V1VehicleInfoFromJSON)(json['vehicle']), + }; +} +function V1SupplyOrderPassCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_order_id': value['supply_order_id'], + 'vehicle': (0, V1VehicleInfo_1.V1VehicleInfoToJSON)(value['vehicle']), + }; +} diff --git a/dist/models/V1SupplyOrderPassCreateResponse.d.ts b/dist/models/V1SupplyOrderPassCreateResponse.d.ts new file mode 100644 index 0000000..4d18f46 --- /dev/null +++ b/dist/models/V1SupplyOrderPassCreateResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SetVehicleError } from './V1SetVehicleError'; +/** + * + * @export + * @interface V1SupplyOrderPassCreateResponse + */ +export interface V1SupplyOrderPassCreateResponse { + /** + * Причина ошибки: + * - `UNSPECIFIED` — статус заявки не указан; + * - `INVALID_ORDER_STATE` — неверный статус заявки; + * - `VEHICLE_NOT_REQUIRED` — указывать данные автомобиля необязательно; + * - `ORDER_NOT_BELONG_CONTRACTOR` — заявка создана другим юридическом лицом, работать с ней не получится; + * - `ORDER_NOT_BELONG_COMPANY` — заявка не принадлежит вашему кабинету, работать с ней не получится. + * + * @type {Array} + * @memberof V1SupplyOrderPassCreateResponse + */ + error_reasons?: Array; + /** + * Идентификатор операции. + * @type {string} + * @memberof V1SupplyOrderPassCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1SupplyOrderPassCreateResponse interface. + */ +export declare function instanceOfV1SupplyOrderPassCreateResponse(value: object): value is V1SupplyOrderPassCreateResponse; +export declare function V1SupplyOrderPassCreateResponseFromJSON(json: any): V1SupplyOrderPassCreateResponse; +export declare function V1SupplyOrderPassCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassCreateResponse; +export declare function V1SupplyOrderPassCreateResponseToJSON(value?: V1SupplyOrderPassCreateResponse | null): any; diff --git a/dist/models/V1SupplyOrderPassCreateResponse.js b/dist/models/V1SupplyOrderPassCreateResponse.js new file mode 100644 index 0000000..2aa4d14 --- /dev/null +++ b/dist/models/V1SupplyOrderPassCreateResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderPassCreateResponse = instanceOfV1SupplyOrderPassCreateResponse; +exports.V1SupplyOrderPassCreateResponseFromJSON = V1SupplyOrderPassCreateResponseFromJSON; +exports.V1SupplyOrderPassCreateResponseFromJSONTyped = V1SupplyOrderPassCreateResponseFromJSONTyped; +exports.V1SupplyOrderPassCreateResponseToJSON = V1SupplyOrderPassCreateResponseToJSON; +const V1SetVehicleError_1 = require("./V1SetVehicleError"); +/** + * Check if a given object implements the V1SupplyOrderPassCreateResponse interface. + */ +function instanceOfV1SupplyOrderPassCreateResponse(value) { + return true; +} +function V1SupplyOrderPassCreateResponseFromJSON(json) { + return V1SupplyOrderPassCreateResponseFromJSONTyped(json, false); +} +function V1SupplyOrderPassCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V1SetVehicleError_1.V1SetVehicleErrorFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1SupplyOrderPassCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V1SetVehicleError_1.V1SetVehicleErrorToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1SupplyOrderPassStatusRequest.d.ts b/dist/models/V1SupplyOrderPassStatusRequest.d.ts new file mode 100644 index 0000000..1eec6ad --- /dev/null +++ b/dist/models/V1SupplyOrderPassStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1SupplyOrderPassStatusRequest + */ +export interface V1SupplyOrderPassStatusRequest { + /** + * Идентификатор операции. + * @type {string} + * @memberof V1SupplyOrderPassStatusRequest + */ + operation_id: string; +} +/** + * Check if a given object implements the V1SupplyOrderPassStatusRequest interface. + */ +export declare function instanceOfV1SupplyOrderPassStatusRequest(value: object): value is V1SupplyOrderPassStatusRequest; +export declare function V1SupplyOrderPassStatusRequestFromJSON(json: any): V1SupplyOrderPassStatusRequest; +export declare function V1SupplyOrderPassStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassStatusRequest; +export declare function V1SupplyOrderPassStatusRequestToJSON(value?: V1SupplyOrderPassStatusRequest | null): any; diff --git a/dist/models/V1SupplyOrderPassStatusRequest.js b/dist/models/V1SupplyOrderPassStatusRequest.js new file mode 100644 index 0000000..1b0cb8c --- /dev/null +++ b/dist/models/V1SupplyOrderPassStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderPassStatusRequest = instanceOfV1SupplyOrderPassStatusRequest; +exports.V1SupplyOrderPassStatusRequestFromJSON = V1SupplyOrderPassStatusRequestFromJSON; +exports.V1SupplyOrderPassStatusRequestFromJSONTyped = V1SupplyOrderPassStatusRequestFromJSONTyped; +exports.V1SupplyOrderPassStatusRequestToJSON = V1SupplyOrderPassStatusRequestToJSON; +/** + * Check if a given object implements the V1SupplyOrderPassStatusRequest interface. + */ +function instanceOfV1SupplyOrderPassStatusRequest(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function V1SupplyOrderPassStatusRequestFromJSON(json) { + return V1SupplyOrderPassStatusRequestFromJSONTyped(json, false); +} +function V1SupplyOrderPassStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function V1SupplyOrderPassStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1SupplyOrderPassStatusResponse.d.ts b/dist/models/V1SupplyOrderPassStatusResponse.d.ts new file mode 100644 index 0000000..955fd0f --- /dev/null +++ b/dist/models/V1SupplyOrderPassStatusResponse.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderPassStatusResponseStatus } from './V1SupplyOrderPassStatusResponseStatus'; +import type { V1SetVehicleError } from './V1SetVehicleError'; +/** + * + * @export + * @interface V1SupplyOrderPassStatusResponse + */ +export interface V1SupplyOrderPassStatusResponse { + /** + * Причина ошибки: + * - `UNSPECIFIED` — статус не указан; + * - `INVALID_ORDER_STATE` — неверный статус заявки; + * - `VEHICLE_NOT_REQUIRED` — указывать данные автомобиля необязательно; + * - `ORDER_NOT_BELONG_CONTRACTOR` — заявка создана другим юридическом лицом, работать с ней не получится; + * - `ORDER_NOT_BELONG_COMPANY` — заявка не принадлежит вашему кабинету, работать с ней не получится. + * + * @type {Array} + * @memberof V1SupplyOrderPassStatusResponse + */ + errors?: Array; + /** + * + * @type {V1SupplyOrderPassStatusResponseStatus} + * @memberof V1SupplyOrderPassStatusResponse + */ + result?: V1SupplyOrderPassStatusResponseStatus; +} +/** + * Check if a given object implements the V1SupplyOrderPassStatusResponse interface. + */ +export declare function instanceOfV1SupplyOrderPassStatusResponse(value: object): value is V1SupplyOrderPassStatusResponse; +export declare function V1SupplyOrderPassStatusResponseFromJSON(json: any): V1SupplyOrderPassStatusResponse; +export declare function V1SupplyOrderPassStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassStatusResponse; +export declare function V1SupplyOrderPassStatusResponseToJSON(value?: V1SupplyOrderPassStatusResponse | null): any; diff --git a/dist/models/V1SupplyOrderPassStatusResponse.js b/dist/models/V1SupplyOrderPassStatusResponse.js new file mode 100644 index 0000000..bddefb8 --- /dev/null +++ b/dist/models/V1SupplyOrderPassStatusResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderPassStatusResponse = instanceOfV1SupplyOrderPassStatusResponse; +exports.V1SupplyOrderPassStatusResponseFromJSON = V1SupplyOrderPassStatusResponseFromJSON; +exports.V1SupplyOrderPassStatusResponseFromJSONTyped = V1SupplyOrderPassStatusResponseFromJSONTyped; +exports.V1SupplyOrderPassStatusResponseToJSON = V1SupplyOrderPassStatusResponseToJSON; +const V1SupplyOrderPassStatusResponseStatus_1 = require("./V1SupplyOrderPassStatusResponseStatus"); +const V1SetVehicleError_1 = require("./V1SetVehicleError"); +/** + * Check if a given object implements the V1SupplyOrderPassStatusResponse interface. + */ +function instanceOfV1SupplyOrderPassStatusResponse(value) { + return true; +} +function V1SupplyOrderPassStatusResponseFromJSON(json) { + return V1SupplyOrderPassStatusResponseFromJSONTyped(json, false); +} +function V1SupplyOrderPassStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1SetVehicleError_1.V1SetVehicleErrorFromJSON)), + 'result': json['result'] == null ? undefined : (0, V1SupplyOrderPassStatusResponseStatus_1.V1SupplyOrderPassStatusResponseStatusFromJSON)(json['result']), + }; +} +function V1SupplyOrderPassStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1SetVehicleError_1.V1SetVehicleErrorToJSON)), + 'result': (0, V1SupplyOrderPassStatusResponseStatus_1.V1SupplyOrderPassStatusResponseStatusToJSON)(value['result']), + }; +} diff --git a/dist/models/V1SupplyOrderPassStatusResponseStatus.d.ts b/dist/models/V1SupplyOrderPassStatusResponseStatus.d.ts new file mode 100644 index 0000000..7dce5ae --- /dev/null +++ b/dist/models/V1SupplyOrderPassStatusResponseStatus.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус ввода данных о водителе и автомобиле: + * - `Unknown` — статус неизвестен; + * - `Success` — данные указаны; + * - `InProgress` — данные обрабатываются; + * - `Failed` — не удалось обработать данные. + * + * @export + */ +export declare const V1SupplyOrderPassStatusResponseStatus: { + readonly Unknown: "Unknown"; + readonly Success: "Success"; + readonly InProgress: "InProgress"; + readonly Failed: "Failed"; +}; +export type V1SupplyOrderPassStatusResponseStatus = typeof V1SupplyOrderPassStatusResponseStatus[keyof typeof V1SupplyOrderPassStatusResponseStatus]; +export declare function instanceOfV1SupplyOrderPassStatusResponseStatus(value: any): boolean; +export declare function V1SupplyOrderPassStatusResponseStatusFromJSON(json: any): V1SupplyOrderPassStatusResponseStatus; +export declare function V1SupplyOrderPassStatusResponseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderPassStatusResponseStatus; +export declare function V1SupplyOrderPassStatusResponseStatusToJSON(value?: V1SupplyOrderPassStatusResponseStatus | null): any; diff --git a/dist/models/V1SupplyOrderPassStatusResponseStatus.js b/dist/models/V1SupplyOrderPassStatusResponseStatus.js new file mode 100644 index 0000000..fc32ce3 --- /dev/null +++ b/dist/models/V1SupplyOrderPassStatusResponseStatus.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1SupplyOrderPassStatusResponseStatus = void 0; +exports.instanceOfV1SupplyOrderPassStatusResponseStatus = instanceOfV1SupplyOrderPassStatusResponseStatus; +exports.V1SupplyOrderPassStatusResponseStatusFromJSON = V1SupplyOrderPassStatusResponseStatusFromJSON; +exports.V1SupplyOrderPassStatusResponseStatusFromJSONTyped = V1SupplyOrderPassStatusResponseStatusFromJSONTyped; +exports.V1SupplyOrderPassStatusResponseStatusToJSON = V1SupplyOrderPassStatusResponseStatusToJSON; +/** + * Статус ввода данных о водителе и автомобиле: + * - `Unknown` — статус неизвестен; + * - `Success` — данные указаны; + * - `InProgress` — данные обрабатываются; + * - `Failed` — не удалось обработать данные. + * + * @export + */ +exports.V1SupplyOrderPassStatusResponseStatus = { + Unknown: 'Unknown', + Success: 'Success', + InProgress: 'InProgress', + Failed: 'Failed' +}; +function instanceOfV1SupplyOrderPassStatusResponseStatus(value) { + for (const key in exports.V1SupplyOrderPassStatusResponseStatus) { + if (Object.prototype.hasOwnProperty.call(exports.V1SupplyOrderPassStatusResponseStatus, key)) { + if (exports.V1SupplyOrderPassStatusResponseStatus[key] === value) { + return true; + } + } + } + return false; +} +function V1SupplyOrderPassStatusResponseStatusFromJSON(json) { + return V1SupplyOrderPassStatusResponseStatusFromJSONTyped(json, false); +} +function V1SupplyOrderPassStatusResponseStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1SupplyOrderPassStatusResponseStatusToJSON(value) { + return value; +} diff --git a/dist/models/V1SupplyOrderStatusCounterResponse.d.ts b/dist/models/V1SupplyOrderStatusCounterResponse.d.ts new file mode 100644 index 0000000..b01503c --- /dev/null +++ b/dist/models/V1SupplyOrderStatusCounterResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderStatusCounterResponseItem } from './V1SupplyOrderStatusCounterResponseItem'; +/** + * + * @export + * @interface V1SupplyOrderStatusCounterResponse + */ +export interface V1SupplyOrderStatusCounterResponse { + /** + * + * @type {Array} + * @memberof V1SupplyOrderStatusCounterResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V1SupplyOrderStatusCounterResponse interface. + */ +export declare function instanceOfV1SupplyOrderStatusCounterResponse(value: object): value is V1SupplyOrderStatusCounterResponse; +export declare function V1SupplyOrderStatusCounterResponseFromJSON(json: any): V1SupplyOrderStatusCounterResponse; +export declare function V1SupplyOrderStatusCounterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderStatusCounterResponse; +export declare function V1SupplyOrderStatusCounterResponseToJSON(value?: V1SupplyOrderStatusCounterResponse | null): any; diff --git a/dist/models/V1SupplyOrderStatusCounterResponse.js b/dist/models/V1SupplyOrderStatusCounterResponse.js new file mode 100644 index 0000000..7bc46ce --- /dev/null +++ b/dist/models/V1SupplyOrderStatusCounterResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderStatusCounterResponse = instanceOfV1SupplyOrderStatusCounterResponse; +exports.V1SupplyOrderStatusCounterResponseFromJSON = V1SupplyOrderStatusCounterResponseFromJSON; +exports.V1SupplyOrderStatusCounterResponseFromJSONTyped = V1SupplyOrderStatusCounterResponseFromJSONTyped; +exports.V1SupplyOrderStatusCounterResponseToJSON = V1SupplyOrderStatusCounterResponseToJSON; +const V1SupplyOrderStatusCounterResponseItem_1 = require("./V1SupplyOrderStatusCounterResponseItem"); +/** + * Check if a given object implements the V1SupplyOrderStatusCounterResponse interface. + */ +function instanceOfV1SupplyOrderStatusCounterResponse(value) { + return true; +} +function V1SupplyOrderStatusCounterResponseFromJSON(json) { + return V1SupplyOrderStatusCounterResponseFromJSONTyped(json, false); +} +function V1SupplyOrderStatusCounterResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V1SupplyOrderStatusCounterResponseItem_1.V1SupplyOrderStatusCounterResponseItemFromJSON)), + }; +} +function V1SupplyOrderStatusCounterResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V1SupplyOrderStatusCounterResponseItem_1.V1SupplyOrderStatusCounterResponseItemToJSON)), + }; +} diff --git a/dist/models/V1SupplyOrderStatusCounterResponseItem.d.ts b/dist/models/V1SupplyOrderStatusCounterResponseItem.d.ts new file mode 100644 index 0000000..a256ae7 --- /dev/null +++ b/dist/models/V1SupplyOrderStatusCounterResponseItem.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1OrderState } from './V1OrderState'; +/** + * + * @export + * @interface V1SupplyOrderStatusCounterResponseItem + */ +export interface V1SupplyOrderStatusCounterResponseItem { + /** + * Количество заявок в статусе. + * @type {number} + * @memberof V1SupplyOrderStatusCounterResponseItem + */ + count?: number; + /** + * + * @type {V1OrderState} + * @memberof V1SupplyOrderStatusCounterResponseItem + */ + order_state?: V1OrderState; +} +/** + * Check if a given object implements the V1SupplyOrderStatusCounterResponseItem interface. + */ +export declare function instanceOfV1SupplyOrderStatusCounterResponseItem(value: object): value is V1SupplyOrderStatusCounterResponseItem; +export declare function V1SupplyOrderStatusCounterResponseItemFromJSON(json: any): V1SupplyOrderStatusCounterResponseItem; +export declare function V1SupplyOrderStatusCounterResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderStatusCounterResponseItem; +export declare function V1SupplyOrderStatusCounterResponseItemToJSON(value?: V1SupplyOrderStatusCounterResponseItem | null): any; diff --git a/dist/models/V1SupplyOrderStatusCounterResponseItem.js b/dist/models/V1SupplyOrderStatusCounterResponseItem.js new file mode 100644 index 0000000..880d672 --- /dev/null +++ b/dist/models/V1SupplyOrderStatusCounterResponseItem.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderStatusCounterResponseItem = instanceOfV1SupplyOrderStatusCounterResponseItem; +exports.V1SupplyOrderStatusCounterResponseItemFromJSON = V1SupplyOrderStatusCounterResponseItemFromJSON; +exports.V1SupplyOrderStatusCounterResponseItemFromJSONTyped = V1SupplyOrderStatusCounterResponseItemFromJSONTyped; +exports.V1SupplyOrderStatusCounterResponseItemToJSON = V1SupplyOrderStatusCounterResponseItemToJSON; +const V1OrderState_1 = require("./V1OrderState"); +/** + * Check if a given object implements the V1SupplyOrderStatusCounterResponseItem interface. + */ +function instanceOfV1SupplyOrderStatusCounterResponseItem(value) { + return true; +} +function V1SupplyOrderStatusCounterResponseItemFromJSON(json) { + return V1SupplyOrderStatusCounterResponseItemFromJSONTyped(json, false); +} +function V1SupplyOrderStatusCounterResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'count': json['count'] == null ? undefined : json['count'], + 'order_state': json['order_state'] == null ? undefined : (0, V1OrderState_1.V1OrderStateFromJSON)(json['order_state']), + }; +} +function V1SupplyOrderStatusCounterResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'count': value['count'], + 'order_state': (0, V1OrderState_1.V1OrderStateToJSON)(value['order_state']), + }; +} diff --git a/dist/models/V1SupplyOrderTimeslot.d.ts b/dist/models/V1SupplyOrderTimeslot.d.ts new file mode 100644 index 0000000..79aecb1 --- /dev/null +++ b/dist/models/V1SupplyOrderTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Время интервала поставки. + * @export + * @interface V1SupplyOrderTimeslot + */ +export interface V1SupplyOrderTimeslot { + /** + * Начало интервала по местному времени. + * @type {string} + * @memberof V1SupplyOrderTimeslot + */ + from: string; + /** + * Конец интервала по местному времени. + * @type {string} + * @memberof V1SupplyOrderTimeslot + */ + to: string; +} +/** + * Check if a given object implements the V1SupplyOrderTimeslot interface. + */ +export declare function instanceOfV1SupplyOrderTimeslot(value: object): value is V1SupplyOrderTimeslot; +export declare function V1SupplyOrderTimeslotFromJSON(json: any): V1SupplyOrderTimeslot; +export declare function V1SupplyOrderTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SupplyOrderTimeslot; +export declare function V1SupplyOrderTimeslotToJSON(value?: V1SupplyOrderTimeslot | null): any; diff --git a/dist/models/V1SupplyOrderTimeslot.js b/dist/models/V1SupplyOrderTimeslot.js new file mode 100644 index 0000000..63aa68c --- /dev/null +++ b/dist/models/V1SupplyOrderTimeslot.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1SupplyOrderTimeslot = instanceOfV1SupplyOrderTimeslot; +exports.V1SupplyOrderTimeslotFromJSON = V1SupplyOrderTimeslotFromJSON; +exports.V1SupplyOrderTimeslotFromJSONTyped = V1SupplyOrderTimeslotFromJSONTyped; +exports.V1SupplyOrderTimeslotToJSON = V1SupplyOrderTimeslotToJSON; +/** + * Check if a given object implements the V1SupplyOrderTimeslot interface. + */ +function instanceOfV1SupplyOrderTimeslot(value) { + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function V1SupplyOrderTimeslotFromJSON(json) { + return V1SupplyOrderTimeslotFromJSONTyped(json, false); +} +function V1SupplyOrderTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'], + 'to': json['to'], + }; +} +function V1SupplyOrderTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1TimeRangeReturnDate.d.ts b/dist/models/V1TimeRangeReturnDate.d.ts new file mode 100644 index 0000000..f1615f0 --- /dev/null +++ b/dist/models/V1TimeRangeReturnDate.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате создания возврата. + * @export + * @interface V1TimeRangeReturnDate + */ +export interface V1TimeRangeReturnDate { + /** + * Начало периода. + * @type {string} + * @memberof V1TimeRangeReturnDate + */ + time_from?: string; + /** + * Окончание периода. + * @type {string} + * @memberof V1TimeRangeReturnDate + */ + time_to?: string; +} +/** + * Check if a given object implements the V1TimeRangeReturnDate interface. + */ +export declare function instanceOfV1TimeRangeReturnDate(value: object): value is V1TimeRangeReturnDate; +export declare function V1TimeRangeReturnDateFromJSON(json: any): V1TimeRangeReturnDate; +export declare function V1TimeRangeReturnDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TimeRangeReturnDate; +export declare function V1TimeRangeReturnDateToJSON(value?: V1TimeRangeReturnDate | null): any; diff --git a/dist/models/V1TimeRangeReturnDate.js b/dist/models/V1TimeRangeReturnDate.js new file mode 100644 index 0000000..e1ebf0c --- /dev/null +++ b/dist/models/V1TimeRangeReturnDate.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1TimeRangeReturnDate = instanceOfV1TimeRangeReturnDate; +exports.V1TimeRangeReturnDateFromJSON = V1TimeRangeReturnDateFromJSON; +exports.V1TimeRangeReturnDateFromJSONTyped = V1TimeRangeReturnDateFromJSONTyped; +exports.V1TimeRangeReturnDateToJSON = V1TimeRangeReturnDateToJSON; +/** + * Check if a given object implements the V1TimeRangeReturnDate interface. + */ +function instanceOfV1TimeRangeReturnDate(value) { + return true; +} +function V1TimeRangeReturnDateFromJSON(json) { + return V1TimeRangeReturnDateFromJSONTyped(json, false); +} +function V1TimeRangeReturnDateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'time_from': json['time_from'] == null ? undefined : json['time_from'], + 'time_to': json['time_to'] == null ? undefined : json['time_to'], + }; +} +function V1TimeRangeReturnDateToJSON(value) { + if (value == null) { + return value; + } + return { + 'time_from': value['time_from'], + 'time_to': value['time_to'], + }; +} diff --git a/dist/models/V1TimeRangeStorageTariffication.d.ts b/dist/models/V1TimeRangeStorageTariffication.d.ts new file mode 100644 index 0000000..ff76d86 --- /dev/null +++ b/dist/models/V1TimeRangeStorageTariffication.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате начала тарификации. + * @export + * @interface V1TimeRangeStorageTariffication + */ +export interface V1TimeRangeStorageTariffication { + /** + * Начало периода. + * @type {string} + * @memberof V1TimeRangeStorageTariffication + */ + time_from?: string; + /** + * Окончание периода. + * @type {string} + * @memberof V1TimeRangeStorageTariffication + */ + time_to?: string; +} +/** + * Check if a given object implements the V1TimeRangeStorageTariffication interface. + */ +export declare function instanceOfV1TimeRangeStorageTariffication(value: object): value is V1TimeRangeStorageTariffication; +export declare function V1TimeRangeStorageTarifficationFromJSON(json: any): V1TimeRangeStorageTariffication; +export declare function V1TimeRangeStorageTarifficationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TimeRangeStorageTariffication; +export declare function V1TimeRangeStorageTarifficationToJSON(value?: V1TimeRangeStorageTariffication | null): any; diff --git a/dist/models/V1TimeRangeStorageTariffication.js b/dist/models/V1TimeRangeStorageTariffication.js new file mode 100644 index 0000000..7c0f80b --- /dev/null +++ b/dist/models/V1TimeRangeStorageTariffication.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1TimeRangeStorageTariffication = instanceOfV1TimeRangeStorageTariffication; +exports.V1TimeRangeStorageTarifficationFromJSON = V1TimeRangeStorageTarifficationFromJSON; +exports.V1TimeRangeStorageTarifficationFromJSONTyped = V1TimeRangeStorageTarifficationFromJSONTyped; +exports.V1TimeRangeStorageTarifficationToJSON = V1TimeRangeStorageTarifficationToJSON; +/** + * Check if a given object implements the V1TimeRangeStorageTariffication interface. + */ +function instanceOfV1TimeRangeStorageTariffication(value) { + return true; +} +function V1TimeRangeStorageTarifficationFromJSON(json) { + return V1TimeRangeStorageTarifficationFromJSONTyped(json, false); +} +function V1TimeRangeStorageTarifficationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'time_from': json['time_from'] == null ? undefined : json['time_from'], + 'time_to': json['time_to'] == null ? undefined : json['time_to'], + }; +} +function V1TimeRangeStorageTarifficationToJSON(value) { + if (value == null) { + return value; + } + return { + 'time_from': value['time_from'], + 'time_to': value['time_to'], + }; +} diff --git a/dist/models/V1TimeRangeVisualStatus.d.ts b/dist/models/V1TimeRangeVisualStatus.d.ts new file mode 100644 index 0000000..6e3e15f --- /dev/null +++ b/dist/models/V1TimeRangeVisualStatus.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по дате изменения статуса возврата. + * @export + * @interface V1TimeRangeVisualStatus + */ +export interface V1TimeRangeVisualStatus { + /** + * Начало периода. + * @type {string} + * @memberof V1TimeRangeVisualStatus + */ + time_from?: string; + /** + * Окончание периода. + * @type {string} + * @memberof V1TimeRangeVisualStatus + */ + time_to?: string; +} +/** + * Check if a given object implements the V1TimeRangeVisualStatus interface. + */ +export declare function instanceOfV1TimeRangeVisualStatus(value: object): value is V1TimeRangeVisualStatus; +export declare function V1TimeRangeVisualStatusFromJSON(json: any): V1TimeRangeVisualStatus; +export declare function V1TimeRangeVisualStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1TimeRangeVisualStatus; +export declare function V1TimeRangeVisualStatusToJSON(value?: V1TimeRangeVisualStatus | null): any; diff --git a/dist/models/V1TimeRangeVisualStatus.js b/dist/models/V1TimeRangeVisualStatus.js new file mode 100644 index 0000000..1d18cf3 --- /dev/null +++ b/dist/models/V1TimeRangeVisualStatus.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1TimeRangeVisualStatus = instanceOfV1TimeRangeVisualStatus; +exports.V1TimeRangeVisualStatusFromJSON = V1TimeRangeVisualStatusFromJSON; +exports.V1TimeRangeVisualStatusFromJSONTyped = V1TimeRangeVisualStatusFromJSONTyped; +exports.V1TimeRangeVisualStatusToJSON = V1TimeRangeVisualStatusToJSON; +/** + * Check if a given object implements the V1TimeRangeVisualStatus interface. + */ +function instanceOfV1TimeRangeVisualStatus(value) { + return true; +} +function V1TimeRangeVisualStatusFromJSON(json) { + return V1TimeRangeVisualStatusFromJSONTyped(json, false); +} +function V1TimeRangeVisualStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'time_from': json['time_from'] == null ? undefined : json['time_from'], + 'time_to': json['time_to'] == null ? undefined : json['time_to'], + }; +} +function V1TimeRangeVisualStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'time_from': value['time_from'], + 'time_to': value['time_to'], + }; +} diff --git a/dist/models/V1Timezone.d.ts b/dist/models/V1Timezone.d.ts new file mode 100644 index 0000000..c8e5476 --- /dev/null +++ b/dist/models/V1Timezone.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1Timezone + */ +export interface V1Timezone { + /** + * Название часового пояса. + * @type {string} + * @memberof V1Timezone + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {string} + * @memberof V1Timezone + */ + offset?: string; +} +/** + * Check if a given object implements the V1Timezone interface. + */ +export declare function instanceOfV1Timezone(value: object): value is V1Timezone; +export declare function V1TimezoneFromJSON(json: any): V1Timezone; +export declare function V1TimezoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Timezone; +export declare function V1TimezoneToJSON(value?: V1Timezone | null): any; diff --git a/dist/models/V1Timezone.js b/dist/models/V1Timezone.js new file mode 100644 index 0000000..bbd267f --- /dev/null +++ b/dist/models/V1Timezone.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1Timezone = instanceOfV1Timezone; +exports.V1TimezoneFromJSON = V1TimezoneFromJSON; +exports.V1TimezoneFromJSONTyped = V1TimezoneFromJSONTyped; +exports.V1TimezoneToJSON = V1TimezoneToJSON; +/** + * Check if a given object implements the V1Timezone interface. + */ +function instanceOfV1Timezone(value) { + return true; +} +function V1TimezoneFromJSON(json) { + return V1TimezoneFromJSONTyped(json, false); +} +function V1TimezoneFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function V1TimezoneToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/V1UnarchiveWarehouseFBSRequest.d.ts b/dist/models/V1UnarchiveWarehouseFBSRequest.d.ts new file mode 100644 index 0000000..4a9a60b --- /dev/null +++ b/dist/models/V1UnarchiveWarehouseFBSRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UnarchiveWarehouseFBSRequest + */ +export interface V1UnarchiveWarehouseFBSRequest { + /** + * Идентификатор пункта возврата. Получите значение параметра методом [/v1/warehouse/fbs/update/return-point/list](#operation/WarehouseFBSUpdateReturnPointList). + * @type {number} + * @memberof V1UnarchiveWarehouseFBSRequest + */ + return_point_id?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1UnarchiveWarehouseFBSRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1UnarchiveWarehouseFBSRequest interface. + */ +export declare function instanceOfV1UnarchiveWarehouseFBSRequest(value: object): value is V1UnarchiveWarehouseFBSRequest; +export declare function V1UnarchiveWarehouseFBSRequestFromJSON(json: any): V1UnarchiveWarehouseFBSRequest; +export declare function V1UnarchiveWarehouseFBSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UnarchiveWarehouseFBSRequest; +export declare function V1UnarchiveWarehouseFBSRequestToJSON(value?: V1UnarchiveWarehouseFBSRequest | null): any; diff --git a/dist/models/V1UnarchiveWarehouseFBSRequest.js b/dist/models/V1UnarchiveWarehouseFBSRequest.js new file mode 100644 index 0000000..1ee21fc --- /dev/null +++ b/dist/models/V1UnarchiveWarehouseFBSRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UnarchiveWarehouseFBSRequest = instanceOfV1UnarchiveWarehouseFBSRequest; +exports.V1UnarchiveWarehouseFBSRequestFromJSON = V1UnarchiveWarehouseFBSRequestFromJSON; +exports.V1UnarchiveWarehouseFBSRequestFromJSONTyped = V1UnarchiveWarehouseFBSRequestFromJSONTyped; +exports.V1UnarchiveWarehouseFBSRequestToJSON = V1UnarchiveWarehouseFBSRequestToJSON; +/** + * Check if a given object implements the V1UnarchiveWarehouseFBSRequest interface. + */ +function instanceOfV1UnarchiveWarehouseFBSRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1UnarchiveWarehouseFBSRequestFromJSON(json) { + return V1UnarchiveWarehouseFBSRequestFromJSONTyped(json, false); +} +function V1UnarchiveWarehouseFBSRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1UnarchiveWarehouseFBSRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'return_point_id': value['return_point_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1UnarchiveWarehouseFBSResponse.d.ts b/dist/models/V1UnarchiveWarehouseFBSResponse.d.ts new file mode 100644 index 0000000..778f293 --- /dev/null +++ b/dist/models/V1UnarchiveWarehouseFBSResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UnarchiveWarehouseFBSResponse + */ +export interface V1UnarchiveWarehouseFBSResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1UnarchiveWarehouseFBSResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1UnarchiveWarehouseFBSResponse interface. + */ +export declare function instanceOfV1UnarchiveWarehouseFBSResponse(value: object): value is V1UnarchiveWarehouseFBSResponse; +export declare function V1UnarchiveWarehouseFBSResponseFromJSON(json: any): V1UnarchiveWarehouseFBSResponse; +export declare function V1UnarchiveWarehouseFBSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UnarchiveWarehouseFBSResponse; +export declare function V1UnarchiveWarehouseFBSResponseToJSON(value?: V1UnarchiveWarehouseFBSResponse | null): any; diff --git a/dist/models/V1UnarchiveWarehouseFBSResponse.js b/dist/models/V1UnarchiveWarehouseFBSResponse.js new file mode 100644 index 0000000..edbfb40 --- /dev/null +++ b/dist/models/V1UnarchiveWarehouseFBSResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UnarchiveWarehouseFBSResponse = instanceOfV1UnarchiveWarehouseFBSResponse; +exports.V1UnarchiveWarehouseFBSResponseFromJSON = V1UnarchiveWarehouseFBSResponseFromJSON; +exports.V1UnarchiveWarehouseFBSResponseFromJSONTyped = V1UnarchiveWarehouseFBSResponseFromJSONTyped; +exports.V1UnarchiveWarehouseFBSResponseToJSON = V1UnarchiveWarehouseFBSResponseToJSON; +/** + * Check if a given object implements the V1UnarchiveWarehouseFBSResponse interface. + */ +function instanceOfV1UnarchiveWarehouseFBSResponse(value) { + return true; +} +function V1UnarchiveWarehouseFBSResponseFromJSON(json) { + return V1UnarchiveWarehouseFBSResponseFromJSONTyped(json, false); +} +function V1UnarchiveWarehouseFBSResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1UnarchiveWarehouseFBSResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1UpdatePricingStrategyRequest.d.ts b/dist/models/V1UpdatePricingStrategyRequest.d.ts new file mode 100644 index 0000000..7388e55 --- /dev/null +++ b/dist/models/V1UpdatePricingStrategyRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1Competitor } from './V1Competitor'; +/** + * + * @export + * @interface V1UpdatePricingStrategyRequest + */ +export interface V1UpdatePricingStrategyRequest { + /** + * Список конкурентов. + * @type {Array} + * @memberof V1UpdatePricingStrategyRequest + */ + competitors: Array; + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1UpdatePricingStrategyRequest + */ + strategy_id: string; + /** + * Название стратегии. + * @type {string} + * @memberof V1UpdatePricingStrategyRequest + */ + strategy_name: string; +} +/** + * Check if a given object implements the V1UpdatePricingStrategyRequest interface. + */ +export declare function instanceOfV1UpdatePricingStrategyRequest(value: object): value is V1UpdatePricingStrategyRequest; +export declare function V1UpdatePricingStrategyRequestFromJSON(json: any): V1UpdatePricingStrategyRequest; +export declare function V1UpdatePricingStrategyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdatePricingStrategyRequest; +export declare function V1UpdatePricingStrategyRequestToJSON(value?: V1UpdatePricingStrategyRequest | null): any; diff --git a/dist/models/V1UpdatePricingStrategyRequest.js b/dist/models/V1UpdatePricingStrategyRequest.js new file mode 100644 index 0000000..a0b494f --- /dev/null +++ b/dist/models/V1UpdatePricingStrategyRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdatePricingStrategyRequest = instanceOfV1UpdatePricingStrategyRequest; +exports.V1UpdatePricingStrategyRequestFromJSON = V1UpdatePricingStrategyRequestFromJSON; +exports.V1UpdatePricingStrategyRequestFromJSONTyped = V1UpdatePricingStrategyRequestFromJSONTyped; +exports.V1UpdatePricingStrategyRequestToJSON = V1UpdatePricingStrategyRequestToJSON; +const V1Competitor_1 = require("./V1Competitor"); +/** + * Check if a given object implements the V1UpdatePricingStrategyRequest interface. + */ +function instanceOfV1UpdatePricingStrategyRequest(value) { + if (!('competitors' in value) || value['competitors'] === undefined) + return false; + if (!('strategy_id' in value) || value['strategy_id'] === undefined) + return false; + if (!('strategy_name' in value) || value['strategy_name'] === undefined) + return false; + return true; +} +function V1UpdatePricingStrategyRequestFromJSON(json) { + return V1UpdatePricingStrategyRequestFromJSONTyped(json, false); +} +function V1UpdatePricingStrategyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'competitors': (json['competitors'].map(V1Competitor_1.V1CompetitorFromJSON)), + 'strategy_id': json['strategy_id'], + 'strategy_name': json['strategy_name'], + }; +} +function V1UpdatePricingStrategyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'competitors': (value['competitors'].map(V1Competitor_1.V1CompetitorToJSON)), + 'strategy_id': value['strategy_id'], + 'strategy_name': value['strategy_name'], + }; +} diff --git a/dist/models/V1UpdateStatusStrategyRequest.d.ts b/dist/models/V1UpdateStatusStrategyRequest.d.ts new file mode 100644 index 0000000..c9bf959 --- /dev/null +++ b/dist/models/V1UpdateStatusStrategyRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UpdateStatusStrategyRequest + */ +export interface V1UpdateStatusStrategyRequest { + /** + * Статус стратегии: + * - `true` — включена, + * - `false` — отключена. + * + * @type {boolean} + * @memberof V1UpdateStatusStrategyRequest + */ + enabled?: boolean; + /** + * Идентификатор стратегии. + * @type {string} + * @memberof V1UpdateStatusStrategyRequest + */ + strategy_id: string; +} +/** + * Check if a given object implements the V1UpdateStatusStrategyRequest interface. + */ +export declare function instanceOfV1UpdateStatusStrategyRequest(value: object): value is V1UpdateStatusStrategyRequest; +export declare function V1UpdateStatusStrategyRequestFromJSON(json: any): V1UpdateStatusStrategyRequest; +export declare function V1UpdateStatusStrategyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateStatusStrategyRequest; +export declare function V1UpdateStatusStrategyRequestToJSON(value?: V1UpdateStatusStrategyRequest | null): any; diff --git a/dist/models/V1UpdateStatusStrategyRequest.js b/dist/models/V1UpdateStatusStrategyRequest.js new file mode 100644 index 0000000..86f7283 --- /dev/null +++ b/dist/models/V1UpdateStatusStrategyRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateStatusStrategyRequest = instanceOfV1UpdateStatusStrategyRequest; +exports.V1UpdateStatusStrategyRequestFromJSON = V1UpdateStatusStrategyRequestFromJSON; +exports.V1UpdateStatusStrategyRequestFromJSONTyped = V1UpdateStatusStrategyRequestFromJSONTyped; +exports.V1UpdateStatusStrategyRequestToJSON = V1UpdateStatusStrategyRequestToJSON; +/** + * Check if a given object implements the V1UpdateStatusStrategyRequest interface. + */ +function instanceOfV1UpdateStatusStrategyRequest(value) { + if (!('strategy_id' in value) || value['strategy_id'] === undefined) + return false; + return true; +} +function V1UpdateStatusStrategyRequestFromJSON(json) { + return V1UpdateStatusStrategyRequestFromJSONTyped(json, false); +} +function V1UpdateStatusStrategyRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'enabled': json['enabled'] == null ? undefined : json['enabled'], + 'strategy_id': json['strategy_id'], + }; +} +function V1UpdateStatusStrategyRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'enabled': value['enabled'], + 'strategy_id': value['strategy_id'], + }; +} diff --git a/dist/models/V1UpdateSupplyOrderTimeslotRequest.d.ts b/dist/models/V1UpdateSupplyOrderTimeslotRequest.d.ts new file mode 100644 index 0000000..46c581c --- /dev/null +++ b/dist/models/V1UpdateSupplyOrderTimeslotRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1SupplyOrderTimeslot } from './V1SupplyOrderTimeslot'; +/** + * + * @export + * @interface V1UpdateSupplyOrderTimeslotRequest + */ +export interface V1UpdateSupplyOrderTimeslotRequest { + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V1UpdateSupplyOrderTimeslotRequest + */ + supply_order_id: number; + /** + * + * @type {V1SupplyOrderTimeslot} + * @memberof V1UpdateSupplyOrderTimeslotRequest + */ + timeslot: V1SupplyOrderTimeslot; +} +/** + * Check if a given object implements the V1UpdateSupplyOrderTimeslotRequest interface. + */ +export declare function instanceOfV1UpdateSupplyOrderTimeslotRequest(value: object): value is V1UpdateSupplyOrderTimeslotRequest; +export declare function V1UpdateSupplyOrderTimeslotRequestFromJSON(json: any): V1UpdateSupplyOrderTimeslotRequest; +export declare function V1UpdateSupplyOrderTimeslotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateSupplyOrderTimeslotRequest; +export declare function V1UpdateSupplyOrderTimeslotRequestToJSON(value?: V1UpdateSupplyOrderTimeslotRequest | null): any; diff --git a/dist/models/V1UpdateSupplyOrderTimeslotRequest.js b/dist/models/V1UpdateSupplyOrderTimeslotRequest.js new file mode 100644 index 0000000..be5981d --- /dev/null +++ b/dist/models/V1UpdateSupplyOrderTimeslotRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateSupplyOrderTimeslotRequest = instanceOfV1UpdateSupplyOrderTimeslotRequest; +exports.V1UpdateSupplyOrderTimeslotRequestFromJSON = V1UpdateSupplyOrderTimeslotRequestFromJSON; +exports.V1UpdateSupplyOrderTimeslotRequestFromJSONTyped = V1UpdateSupplyOrderTimeslotRequestFromJSONTyped; +exports.V1UpdateSupplyOrderTimeslotRequestToJSON = V1UpdateSupplyOrderTimeslotRequestToJSON; +const V1SupplyOrderTimeslot_1 = require("./V1SupplyOrderTimeslot"); +/** + * Check if a given object implements the V1UpdateSupplyOrderTimeslotRequest interface. + */ +function instanceOfV1UpdateSupplyOrderTimeslotRequest(value) { + if (!('supply_order_id' in value) || value['supply_order_id'] === undefined) + return false; + if (!('timeslot' in value) || value['timeslot'] === undefined) + return false; + return true; +} +function V1UpdateSupplyOrderTimeslotRequestFromJSON(json) { + return V1UpdateSupplyOrderTimeslotRequestFromJSONTyped(json, false); +} +function V1UpdateSupplyOrderTimeslotRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'supply_order_id': json['supply_order_id'], + 'timeslot': (0, V1SupplyOrderTimeslot_1.V1SupplyOrderTimeslotFromJSON)(json['timeslot']), + }; +} +function V1UpdateSupplyOrderTimeslotRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'supply_order_id': value['supply_order_id'], + 'timeslot': (0, V1SupplyOrderTimeslot_1.V1SupplyOrderTimeslotToJSON)(value['timeslot']), + }; +} diff --git a/dist/models/V1UpdateSupplyOrderTimeslotResponse.d.ts b/dist/models/V1UpdateSupplyOrderTimeslotResponse.d.ts new file mode 100644 index 0000000..73d3203 --- /dev/null +++ b/dist/models/V1UpdateSupplyOrderTimeslotResponse.d.ts @@ -0,0 +1,48 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1UpdateTimeslotError } from './V1UpdateTimeslotError'; +/** + * + * @export + * @interface V1UpdateSupplyOrderTimeslotResponse + */ +export interface V1UpdateSupplyOrderTimeslotResponse { + /** + * Возможные ошибки: + * - `UNSPECIFIED` — статус не указан; + * - `INVALID_ORDER_STATE` — неверный статус заказа; + * - `INCOMPATIBLE_ORDER_FLOW` — неверный статус интервала поставки; + * - `SET_TIMESLOT_DEADLINE_EXCEED` — заявка на поставку просрочена; + * - `OUT_OF_ALLOWED_RANGE` — вы ввели некорректное значение интервала поставки; + * - `ORDER_NOT_BELONG_CONTRACTOR` — заявка создана другим юридическим лицом, работать с ней не получится; + * - `ORDER_NOT_BELONG_COMPANY` — заявка не принадлежит вашему кабинету, работать с ней не получится; + * - `UPDATE_TIMESLOT_ERROR_PICKUP_ORDER_LIMIT_EXCEEDED` — превышен суточный лимит на создание заявок на поставку курьером; + * - `UPDATE_TIMESLOT_ERROR_LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED` — превышен лимит изменения интервала доставки. + * + * @type {Array} + * @memberof V1UpdateSupplyOrderTimeslotResponse + */ + errors?: Array; + /** + * Идентификатор операции. + * @type {string} + * @memberof V1UpdateSupplyOrderTimeslotResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1UpdateSupplyOrderTimeslotResponse interface. + */ +export declare function instanceOfV1UpdateSupplyOrderTimeslotResponse(value: object): value is V1UpdateSupplyOrderTimeslotResponse; +export declare function V1UpdateSupplyOrderTimeslotResponseFromJSON(json: any): V1UpdateSupplyOrderTimeslotResponse; +export declare function V1UpdateSupplyOrderTimeslotResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateSupplyOrderTimeslotResponse; +export declare function V1UpdateSupplyOrderTimeslotResponseToJSON(value?: V1UpdateSupplyOrderTimeslotResponse | null): any; diff --git a/dist/models/V1UpdateSupplyOrderTimeslotResponse.js b/dist/models/V1UpdateSupplyOrderTimeslotResponse.js new file mode 100644 index 0000000..9e2faba --- /dev/null +++ b/dist/models/V1UpdateSupplyOrderTimeslotResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateSupplyOrderTimeslotResponse = instanceOfV1UpdateSupplyOrderTimeslotResponse; +exports.V1UpdateSupplyOrderTimeslotResponseFromJSON = V1UpdateSupplyOrderTimeslotResponseFromJSON; +exports.V1UpdateSupplyOrderTimeslotResponseFromJSONTyped = V1UpdateSupplyOrderTimeslotResponseFromJSONTyped; +exports.V1UpdateSupplyOrderTimeslotResponseToJSON = V1UpdateSupplyOrderTimeslotResponseToJSON; +const V1UpdateTimeslotError_1 = require("./V1UpdateTimeslotError"); +/** + * Check if a given object implements the V1UpdateSupplyOrderTimeslotResponse interface. + */ +function instanceOfV1UpdateSupplyOrderTimeslotResponse(value) { + return true; +} +function V1UpdateSupplyOrderTimeslotResponseFromJSON(json) { + return V1UpdateSupplyOrderTimeslotResponseFromJSONTyped(json, false); +} +function V1UpdateSupplyOrderTimeslotResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V1UpdateTimeslotError_1.V1UpdateTimeslotErrorFromJSON)), + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1UpdateSupplyOrderTimeslotResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V1UpdateTimeslotError_1.V1UpdateTimeslotErrorToJSON)), + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1UpdateTimeslotError.d.ts b/dist/models/V1UpdateTimeslotError.d.ts new file mode 100644 index 0000000..b11fcfa --- /dev/null +++ b/dist/models/V1UpdateTimeslotError.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1UpdateTimeslotError: { + readonly UNSPECIFIED: "UPDATE_TIMESLOT_ERROR_UNSPECIFIED"; + readonly INVALID_ORDER_STATE: "UPDATE_TIMESLOT_ERROR_INVALID_ORDER_STATE"; + readonly INCOMPATIBLE_ORDER_FLOW: "UPDATE_TIMESLOT_ERROR_INCOMPATIBLE_ORDER_FLOW"; + readonly SET_TIMESLOT_DEADLINE_EXCEED: "UPDATE_TIMESLOT_ERROR_SET_TIMESLOT_DEADLINE_EXCEED"; + readonly OUT_OF_ALLOWED_RANGE: "UPDATE_TIMESLOT_ERROR_OUT_OF_ALLOWED_RANGE"; + readonly ORDER_NOT_BELONG_CONTRACTOR: "UPDATE_TIMESLOT_ERROR_ORDER_NOT_BELONG_CONTRACTOR"; + readonly ORDER_NOT_BELONG_COMPANY: "UPDATE_TIMESLOT_ERROR_ORDER_NOT_BELONG_COMPANY"; + readonly PICKUP_ORDER_LIMIT_EXCEEDED: "UPDATE_TIMESLOT_ERROR_PICKUP_ORDER_LIMIT_EXCEEDED"; + readonly LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED: "UPDATE_TIMESLOT_ERROR_LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED"; +}; +export type V1UpdateTimeslotError = typeof V1UpdateTimeslotError[keyof typeof V1UpdateTimeslotError]; +export declare function instanceOfV1UpdateTimeslotError(value: any): boolean; +export declare function V1UpdateTimeslotErrorFromJSON(json: any): V1UpdateTimeslotError; +export declare function V1UpdateTimeslotErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateTimeslotError; +export declare function V1UpdateTimeslotErrorToJSON(value?: V1UpdateTimeslotError | null): any; diff --git a/dist/models/V1UpdateTimeslotError.js b/dist/models/V1UpdateTimeslotError.js new file mode 100644 index 0000000..8d6e362 --- /dev/null +++ b/dist/models/V1UpdateTimeslotError.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1UpdateTimeslotError = void 0; +exports.instanceOfV1UpdateTimeslotError = instanceOfV1UpdateTimeslotError; +exports.V1UpdateTimeslotErrorFromJSON = V1UpdateTimeslotErrorFromJSON; +exports.V1UpdateTimeslotErrorFromJSONTyped = V1UpdateTimeslotErrorFromJSONTyped; +exports.V1UpdateTimeslotErrorToJSON = V1UpdateTimeslotErrorToJSON; +/** + * + * @export + */ +exports.V1UpdateTimeslotError = { + UNSPECIFIED: 'UPDATE_TIMESLOT_ERROR_UNSPECIFIED', + INVALID_ORDER_STATE: 'UPDATE_TIMESLOT_ERROR_INVALID_ORDER_STATE', + INCOMPATIBLE_ORDER_FLOW: 'UPDATE_TIMESLOT_ERROR_INCOMPATIBLE_ORDER_FLOW', + SET_TIMESLOT_DEADLINE_EXCEED: 'UPDATE_TIMESLOT_ERROR_SET_TIMESLOT_DEADLINE_EXCEED', + OUT_OF_ALLOWED_RANGE: 'UPDATE_TIMESLOT_ERROR_OUT_OF_ALLOWED_RANGE', + ORDER_NOT_BELONG_CONTRACTOR: 'UPDATE_TIMESLOT_ERROR_ORDER_NOT_BELONG_CONTRACTOR', + ORDER_NOT_BELONG_COMPANY: 'UPDATE_TIMESLOT_ERROR_ORDER_NOT_BELONG_COMPANY', + PICKUP_ORDER_LIMIT_EXCEEDED: 'UPDATE_TIMESLOT_ERROR_PICKUP_ORDER_LIMIT_EXCEEDED', + LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED: 'UPDATE_TIMESLOT_ERROR_LIMIT_OF_CHANGING_TIMESLOT_EXCEEDED' +}; +function instanceOfV1UpdateTimeslotError(value) { + for (const key in exports.V1UpdateTimeslotError) { + if (Object.prototype.hasOwnProperty.call(exports.V1UpdateTimeslotError, key)) { + if (exports.V1UpdateTimeslotError[key] === value) { + return true; + } + } + } + return false; +} +function V1UpdateTimeslotErrorFromJSON(json) { + return V1UpdateTimeslotErrorFromJSONTyped(json, false); +} +function V1UpdateTimeslotErrorFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1UpdateTimeslotErrorToJSON(value) { + return value; +} diff --git a/dist/models/V1UpdateWarehouseFBSFirstMileRequest.d.ts b/dist/models/V1UpdateWarehouseFBSFirstMileRequest.d.ts new file mode 100644 index 0000000..1b2f4fb --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSFirstMileRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum } from './V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum'; +/** + * + * @export + * @interface V1UpdateWarehouseFBSFirstMileRequest + */ +export interface V1UpdateWarehouseFBSFirstMileRequest { + /** + * Время на приём заказов в минутах. Например, если вы передадите `3000`, приём заказов будет завершён через 50 часов с момента передачи. + * + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + cut_in_time: number; + /** + * Идентификатор drop-off пункта. Если `first_mile_type = DROP_OFF`, параметр обязательный. + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + drop_off_point_id?: number; + /** + * + * @type {V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + first_mile_type: V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + timeslot_id: number; + /** + * Идентификатор пункта возврата. Получите значение параметра методом [/v1/warehouse/fbs/update/return-point/list](#operation/WarehouseFBSUpdateReturnPointList). + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + return_point_id?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1UpdateWarehouseFBSFirstMileRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSFirstMileRequest interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSFirstMileRequest(value: object): value is V1UpdateWarehouseFBSFirstMileRequest; +export declare function V1UpdateWarehouseFBSFirstMileRequestFromJSON(json: any): V1UpdateWarehouseFBSFirstMileRequest; +export declare function V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSFirstMileRequest; +export declare function V1UpdateWarehouseFBSFirstMileRequestToJSON(value?: V1UpdateWarehouseFBSFirstMileRequest | null): any; diff --git a/dist/models/V1UpdateWarehouseFBSFirstMileRequest.js b/dist/models/V1UpdateWarehouseFBSFirstMileRequest.js new file mode 100644 index 0000000..56162dc --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSFirstMileRequest.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateWarehouseFBSFirstMileRequest = instanceOfV1UpdateWarehouseFBSFirstMileRequest; +exports.V1UpdateWarehouseFBSFirstMileRequestFromJSON = V1UpdateWarehouseFBSFirstMileRequestFromJSON; +exports.V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped = V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped; +exports.V1UpdateWarehouseFBSFirstMileRequestToJSON = V1UpdateWarehouseFBSFirstMileRequestToJSON; +const V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum_1 = require("./V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum"); +/** + * Check if a given object implements the V1UpdateWarehouseFBSFirstMileRequest interface. + */ +function instanceOfV1UpdateWarehouseFBSFirstMileRequest(value) { + if (!('cut_in_time' in value) || value['cut_in_time'] === undefined) + return false; + if (!('first_mile_type' in value) || value['first_mile_type'] === undefined) + return false; + if (!('timeslot_id' in value) || value['timeslot_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1UpdateWarehouseFBSFirstMileRequestFromJSON(json) { + return V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped(json, false); +} +function V1UpdateWarehouseFBSFirstMileRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cut_in_time': json['cut_in_time'], + 'drop_off_point_id': json['drop_off_point_id'] == null ? undefined : json['drop_off_point_id'], + 'first_mile_type': (0, V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum_1.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON)(json['first_mile_type']), + 'timeslot_id': json['timeslot_id'], + 'return_point_id': json['return_point_id'] == null ? undefined : json['return_point_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1UpdateWarehouseFBSFirstMileRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cut_in_time': value['cut_in_time'], + 'drop_off_point_id': value['drop_off_point_id'], + 'first_mile_type': (0, V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum_1.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON)(value['first_mile_type']), + 'timeslot_id': value['timeslot_id'], + 'return_point_id': value['return_point_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.d.ts b/dist/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.d.ts new file mode 100644 index 0000000..28c3930 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export declare const V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum: { + readonly PICK_UP: "PICK_UP"; + readonly DROP_OFF: "DROP_OFF"; +}; +export type V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum = typeof V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum[keyof typeof V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum]; +export declare function instanceOfV1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum(value: any): boolean; +export declare function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON(json: any): V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum; +export declare function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum; +export declare function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON(value?: V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum | null): any; diff --git a/dist/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.js b/dist/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.js new file mode 100644 index 0000000..638eee7 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum = void 0; +exports.instanceOfV1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum = instanceOfV1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum; +exports.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON = V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON; +exports.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSONTyped = V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSONTyped; +exports.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON = V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON; +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +exports.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum = { + PICK_UP: 'PICK_UP', + DROP_OFF: 'DROP_OFF' +}; +function instanceOfV1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum(value) { + for (const key in exports.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum, key)) { + if (exports.V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSON(json) { + return V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSONTyped(json, false); +} +function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1UpdateWarehouseFBSFirstMileResponse.d.ts b/dist/models/V1UpdateWarehouseFBSFirstMileResponse.d.ts new file mode 100644 index 0000000..b4746ce --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSFirstMileResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UpdateWarehouseFBSFirstMileResponse + */ +export interface V1UpdateWarehouseFBSFirstMileResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1UpdateWarehouseFBSFirstMileResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSFirstMileResponse interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSFirstMileResponse(value: object): value is V1UpdateWarehouseFBSFirstMileResponse; +export declare function V1UpdateWarehouseFBSFirstMileResponseFromJSON(json: any): V1UpdateWarehouseFBSFirstMileResponse; +export declare function V1UpdateWarehouseFBSFirstMileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSFirstMileResponse; +export declare function V1UpdateWarehouseFBSFirstMileResponseToJSON(value?: V1UpdateWarehouseFBSFirstMileResponse | null): any; diff --git a/dist/models/V1UpdateWarehouseFBSFirstMileResponse.js b/dist/models/V1UpdateWarehouseFBSFirstMileResponse.js new file mode 100644 index 0000000..ed49636 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSFirstMileResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateWarehouseFBSFirstMileResponse = instanceOfV1UpdateWarehouseFBSFirstMileResponse; +exports.V1UpdateWarehouseFBSFirstMileResponseFromJSON = V1UpdateWarehouseFBSFirstMileResponseFromJSON; +exports.V1UpdateWarehouseFBSFirstMileResponseFromJSONTyped = V1UpdateWarehouseFBSFirstMileResponseFromJSONTyped; +exports.V1UpdateWarehouseFBSFirstMileResponseToJSON = V1UpdateWarehouseFBSFirstMileResponseToJSON; +/** + * Check if a given object implements the V1UpdateWarehouseFBSFirstMileResponse interface. + */ +function instanceOfV1UpdateWarehouseFBSFirstMileResponse(value) { + return true; +} +function V1UpdateWarehouseFBSFirstMileResponseFromJSON(json) { + return V1UpdateWarehouseFBSFirstMileResponseFromJSONTyped(json, false); +} +function V1UpdateWarehouseFBSFirstMileResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1UpdateWarehouseFBSFirstMileResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1UpdateWarehouseFBSRequest.d.ts b/dist/models/V1UpdateWarehouseFBSRequest.d.ts new file mode 100644 index 0000000..5cd48b5 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSRequest.d.ts @@ -0,0 +1,72 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1UpdateWarehouseFBSRequestWorkingDaysEnum } from './V1UpdateWarehouseFBSRequestWorkingDaysEnum'; +import type { V1UpdateWarehouseFBSRequestOptions } from './V1UpdateWarehouseFBSRequestOptions'; +import type { V1UpdateWarehouseFBSRequestAddressCoordinates } from './V1UpdateWarehouseFBSRequestAddressCoordinates'; +/** + * + * @export + * @interface V1UpdateWarehouseFBSRequest + */ +export interface V1UpdateWarehouseFBSRequest { + /** + * + * @type {V1UpdateWarehouseFBSRequestAddressCoordinates} + * @memberof V1UpdateWarehouseFBSRequest + */ + address_coordinates: V1UpdateWarehouseFBSRequestAddressCoordinates; + /** + * Название склада. + * @type {string} + * @memberof V1UpdateWarehouseFBSRequest + */ + name?: string; + /** + * + * @type {V1UpdateWarehouseFBSRequestOptions} + * @memberof V1UpdateWarehouseFBSRequest + */ + options?: V1UpdateWarehouseFBSRequestOptions; + /** + * Номер телефона склада. + * @type {string} + * @memberof V1UpdateWarehouseFBSRequest + */ + phone?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1UpdateWarehouseFBSRequest + */ + warehouse_id: number; + /** + * Рабочие дни склада: + * - `MONDAY` — понедельник; + * - `TUESDAY` — вторник; + * - `WEDNESDAY` — среда; + * - `THURSDAY` — четверг; + * - `FRIDAY` — пятница; + * - `SATURDAY` — суббота; + * - `SUNDAY` — воскресенье. + * + * @type {Array} + * @memberof V1UpdateWarehouseFBSRequest + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequest interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSRequest(value: object): value is V1UpdateWarehouseFBSRequest; +export declare function V1UpdateWarehouseFBSRequestFromJSON(json: any): V1UpdateWarehouseFBSRequest; +export declare function V1UpdateWarehouseFBSRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSRequest; +export declare function V1UpdateWarehouseFBSRequestToJSON(value?: V1UpdateWarehouseFBSRequest | null): any; diff --git a/dist/models/V1UpdateWarehouseFBSRequest.js b/dist/models/V1UpdateWarehouseFBSRequest.js new file mode 100644 index 0000000..643b745 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSRequest.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateWarehouseFBSRequest = instanceOfV1UpdateWarehouseFBSRequest; +exports.V1UpdateWarehouseFBSRequestFromJSON = V1UpdateWarehouseFBSRequestFromJSON; +exports.V1UpdateWarehouseFBSRequestFromJSONTyped = V1UpdateWarehouseFBSRequestFromJSONTyped; +exports.V1UpdateWarehouseFBSRequestToJSON = V1UpdateWarehouseFBSRequestToJSON; +const V1UpdateWarehouseFBSRequestWorkingDaysEnum_1 = require("./V1UpdateWarehouseFBSRequestWorkingDaysEnum"); +const V1UpdateWarehouseFBSRequestOptions_1 = require("./V1UpdateWarehouseFBSRequestOptions"); +const V1UpdateWarehouseFBSRequestAddressCoordinates_1 = require("./V1UpdateWarehouseFBSRequestAddressCoordinates"); +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequest interface. + */ +function instanceOfV1UpdateWarehouseFBSRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1UpdateWarehouseFBSRequestFromJSON(json) { + return V1UpdateWarehouseFBSRequestFromJSONTyped(json, false); +} +function V1UpdateWarehouseFBSRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': (0, V1UpdateWarehouseFBSRequestAddressCoordinates_1.V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON)(json['address_coordinates']), + 'name': json['name'] == null ? undefined : json['name'], + 'options': json['options'] == null ? undefined : (0, V1UpdateWarehouseFBSRequestOptions_1.V1UpdateWarehouseFBSRequestOptionsFromJSON)(json['options']), + 'phone': json['phone'] == null ? undefined : json['phone'], + 'warehouse_id': json['warehouse_id'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1UpdateWarehouseFBSRequestWorkingDaysEnum_1.V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON)), + }; +} +function V1UpdateWarehouseFBSRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': (0, V1UpdateWarehouseFBSRequestAddressCoordinates_1.V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON)(value['address_coordinates']), + 'name': value['name'], + 'options': (0, V1UpdateWarehouseFBSRequestOptions_1.V1UpdateWarehouseFBSRequestOptionsToJSON)(value['options']), + 'phone': value['phone'], + 'warehouse_id': value['warehouse_id'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1UpdateWarehouseFBSRequestWorkingDaysEnum_1.V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON)), + }; +} diff --git a/dist/models/V1UpdateWarehouseFBSRequestAddressCoordinates.d.ts b/dist/models/V1UpdateWarehouseFBSRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..3aca292 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты склада. + * @export + * @interface V1UpdateWarehouseFBSRequestAddressCoordinates + */ +export interface V1UpdateWarehouseFBSRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1UpdateWarehouseFBSRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1UpdateWarehouseFBSRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequestAddressCoordinates interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSRequestAddressCoordinates(value: object): value is V1UpdateWarehouseFBSRequestAddressCoordinates; +export declare function V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON(json: any): V1UpdateWarehouseFBSRequestAddressCoordinates; +export declare function V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSRequestAddressCoordinates; +export declare function V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON(value?: V1UpdateWarehouseFBSRequestAddressCoordinates | null): any; diff --git a/dist/models/V1UpdateWarehouseFBSRequestAddressCoordinates.js b/dist/models/V1UpdateWarehouseFBSRequestAddressCoordinates.js new file mode 100644 index 0000000..c8dbfb0 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSRequestAddressCoordinates.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateWarehouseFBSRequestAddressCoordinates = instanceOfV1UpdateWarehouseFBSRequestAddressCoordinates; +exports.V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON = V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON; +exports.V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSONTyped = V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSONTyped; +exports.V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON = V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON; +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequestAddressCoordinates interface. + */ +function instanceOfV1UpdateWarehouseFBSRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +function V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSON(json) { + return V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json, false); +} +function V1UpdateWarehouseFBSRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +function V1UpdateWarehouseFBSRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1UpdateWarehouseFBSRequestOptions.d.ts b/dist/models/V1UpdateWarehouseFBSRequestOptions.d.ts new file mode 100644 index 0000000..55891aa --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSRequestOptions.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры склада. + * @export + * @interface V1UpdateWarehouseFBSRequestOptions + */ +export interface V1UpdateWarehouseFBSRequestOptions { + /** + * Комментарий для курьера при отгрузке с типом `PICK_UP`. + * @type {string} + * @memberof V1UpdateWarehouseFBSRequestOptions + */ + comment?: string; + /** + * Номера телефонов для курьера при отгрузке с типом `PICK_UP`. + * @type {Array} + * @memberof V1UpdateWarehouseFBSRequestOptions + */ + courier_phones?: Array; + /** + * Признак включённой автосборки. + * @type {boolean} + * @memberof V1UpdateWarehouseFBSRequestOptions + */ + is_auto_assembly?: boolean; + /** + * Признак включённой печати транспортной накладной. + * @type {boolean} + * @memberof V1UpdateWarehouseFBSRequestOptions + */ + is_waybill_enabled?: boolean; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequestOptions interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSRequestOptions(value: object): value is V1UpdateWarehouseFBSRequestOptions; +export declare function V1UpdateWarehouseFBSRequestOptionsFromJSON(json: any): V1UpdateWarehouseFBSRequestOptions; +export declare function V1UpdateWarehouseFBSRequestOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSRequestOptions; +export declare function V1UpdateWarehouseFBSRequestOptionsToJSON(value?: V1UpdateWarehouseFBSRequestOptions | null): any; diff --git a/dist/models/V1UpdateWarehouseFBSRequestOptions.js b/dist/models/V1UpdateWarehouseFBSRequestOptions.js new file mode 100644 index 0000000..129b775 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSRequestOptions.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateWarehouseFBSRequestOptions = instanceOfV1UpdateWarehouseFBSRequestOptions; +exports.V1UpdateWarehouseFBSRequestOptionsFromJSON = V1UpdateWarehouseFBSRequestOptionsFromJSON; +exports.V1UpdateWarehouseFBSRequestOptionsFromJSONTyped = V1UpdateWarehouseFBSRequestOptionsFromJSONTyped; +exports.V1UpdateWarehouseFBSRequestOptionsToJSON = V1UpdateWarehouseFBSRequestOptionsToJSON; +/** + * Check if a given object implements the V1UpdateWarehouseFBSRequestOptions interface. + */ +function instanceOfV1UpdateWarehouseFBSRequestOptions(value) { + return true; +} +function V1UpdateWarehouseFBSRequestOptionsFromJSON(json) { + return V1UpdateWarehouseFBSRequestOptionsFromJSONTyped(json, false); +} +function V1UpdateWarehouseFBSRequestOptionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'comment': json['comment'] == null ? undefined : json['comment'], + 'courier_phones': json['courier_phones'] == null ? undefined : json['courier_phones'], + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'is_waybill_enabled': json['is_waybill_enabled'] == null ? undefined : json['is_waybill_enabled'], + }; +} +function V1UpdateWarehouseFBSRequestOptionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'comment': value['comment'], + 'courier_phones': value['courier_phones'], + 'is_auto_assembly': value['is_auto_assembly'], + 'is_waybill_enabled': value['is_waybill_enabled'], + }; +} diff --git a/dist/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.d.ts b/dist/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.d.ts new file mode 100644 index 0000000..20b0088 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1UpdateWarehouseFBSRequestWorkingDaysEnum: { + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1UpdateWarehouseFBSRequestWorkingDaysEnum = typeof V1UpdateWarehouseFBSRequestWorkingDaysEnum[keyof typeof V1UpdateWarehouseFBSRequestWorkingDaysEnum]; +export declare function instanceOfV1UpdateWarehouseFBSRequestWorkingDaysEnum(value: any): boolean; +export declare function V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON(json: any): V1UpdateWarehouseFBSRequestWorkingDaysEnum; +export declare function V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSRequestWorkingDaysEnum; +export declare function V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON(value?: V1UpdateWarehouseFBSRequestWorkingDaysEnum | null): any; diff --git a/dist/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.js b/dist/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.js new file mode 100644 index 0000000..3da0d51 --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSRequestWorkingDaysEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1UpdateWarehouseFBSRequestWorkingDaysEnum = void 0; +exports.instanceOfV1UpdateWarehouseFBSRequestWorkingDaysEnum = instanceOfV1UpdateWarehouseFBSRequestWorkingDaysEnum; +exports.V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON = V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON; +exports.V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped = V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped; +exports.V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON = V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON; +/** + * + * @export + */ +exports.V1UpdateWarehouseFBSRequestWorkingDaysEnum = { + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfV1UpdateWarehouseFBSRequestWorkingDaysEnum(value) { + for (const key in exports.V1UpdateWarehouseFBSRequestWorkingDaysEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1UpdateWarehouseFBSRequestWorkingDaysEnum, key)) { + if (exports.V1UpdateWarehouseFBSRequestWorkingDaysEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSON(json) { + return V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json, false); +} +function V1UpdateWarehouseFBSRequestWorkingDaysEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1UpdateWarehouseFBSRequestWorkingDaysEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1UpdateWarehouseFBSResponse.d.ts b/dist/models/V1UpdateWarehouseFBSResponse.d.ts new file mode 100644 index 0000000..5151a0c --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UpdateWarehouseFBSResponse + */ +export interface V1UpdateWarehouseFBSResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1UpdateWarehouseFBSResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1UpdateWarehouseFBSResponse interface. + */ +export declare function instanceOfV1UpdateWarehouseFBSResponse(value: object): value is V1UpdateWarehouseFBSResponse; +export declare function V1UpdateWarehouseFBSResponseFromJSON(json: any): V1UpdateWarehouseFBSResponse; +export declare function V1UpdateWarehouseFBSResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UpdateWarehouseFBSResponse; +export declare function V1UpdateWarehouseFBSResponseToJSON(value?: V1UpdateWarehouseFBSResponse | null): any; diff --git a/dist/models/V1UpdateWarehouseFBSResponse.js b/dist/models/V1UpdateWarehouseFBSResponse.js new file mode 100644 index 0000000..9efdfef --- /dev/null +++ b/dist/models/V1UpdateWarehouseFBSResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UpdateWarehouseFBSResponse = instanceOfV1UpdateWarehouseFBSResponse; +exports.V1UpdateWarehouseFBSResponseFromJSON = V1UpdateWarehouseFBSResponseFromJSON; +exports.V1UpdateWarehouseFBSResponseFromJSONTyped = V1UpdateWarehouseFBSResponseFromJSONTyped; +exports.V1UpdateWarehouseFBSResponseToJSON = V1UpdateWarehouseFBSResponseToJSON; +/** + * Check if a given object implements the V1UpdateWarehouseFBSResponse interface. + */ +function instanceOfV1UpdateWarehouseFBSResponse(value) { + return true; +} +function V1UpdateWarehouseFBSResponseFromJSON(json) { + return V1UpdateWarehouseFBSResponseFromJSONTyped(json, false); +} +function V1UpdateWarehouseFBSResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1UpdateWarehouseFBSResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1UploadPostingCodesRequest.d.ts b/dist/models/V1UploadPostingCodesRequest.d.ts new file mode 100644 index 0000000..0a1997c --- /dev/null +++ b/dist/models/V1UploadPostingCodesRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UploadPostingCodesRequestPostingLineExemplarInfo } from './UploadPostingCodesRequestPostingLineExemplarInfo'; +/** + * + * @export + * @interface V1UploadPostingCodesRequest + */ +export interface V1UploadPostingCodesRequest { + /** + * Данные о кодах цифрового товара по SKU. + * @type {Array} + * @memberof V1UploadPostingCodesRequest + */ + exemplars_by_sku?: Array; + /** + * Номер отправления. + * @type {string} + * @memberof V1UploadPostingCodesRequest + */ + posting_number?: string; +} +/** + * Check if a given object implements the V1UploadPostingCodesRequest interface. + */ +export declare function instanceOfV1UploadPostingCodesRequest(value: object): value is V1UploadPostingCodesRequest; +export declare function V1UploadPostingCodesRequestFromJSON(json: any): V1UploadPostingCodesRequest; +export declare function V1UploadPostingCodesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UploadPostingCodesRequest; +export declare function V1UploadPostingCodesRequestToJSON(value?: V1UploadPostingCodesRequest | null): any; diff --git a/dist/models/V1UploadPostingCodesRequest.js b/dist/models/V1UploadPostingCodesRequest.js new file mode 100644 index 0000000..b6681f5 --- /dev/null +++ b/dist/models/V1UploadPostingCodesRequest.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UploadPostingCodesRequest = instanceOfV1UploadPostingCodesRequest; +exports.V1UploadPostingCodesRequestFromJSON = V1UploadPostingCodesRequestFromJSON; +exports.V1UploadPostingCodesRequestFromJSONTyped = V1UploadPostingCodesRequestFromJSONTyped; +exports.V1UploadPostingCodesRequestToJSON = V1UploadPostingCodesRequestToJSON; +const UploadPostingCodesRequestPostingLineExemplarInfo_1 = require("./UploadPostingCodesRequestPostingLineExemplarInfo"); +/** + * Check if a given object implements the V1UploadPostingCodesRequest interface. + */ +function instanceOfV1UploadPostingCodesRequest(value) { + return true; +} +function V1UploadPostingCodesRequestFromJSON(json) { + return V1UploadPostingCodesRequestFromJSONTyped(json, false); +} +function V1UploadPostingCodesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars_by_sku': json['exemplars_by_sku'] == null ? undefined : (json['exemplars_by_sku'].map(UploadPostingCodesRequestPostingLineExemplarInfo_1.UploadPostingCodesRequestPostingLineExemplarInfoFromJSON)), + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + }; +} +function V1UploadPostingCodesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars_by_sku': value['exemplars_by_sku'] == null ? undefined : (value['exemplars_by_sku'].map(UploadPostingCodesRequestPostingLineExemplarInfo_1.UploadPostingCodesRequestPostingLineExemplarInfoToJSON)), + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V1UploadPostingCodesResponse.d.ts b/dist/models/V1UploadPostingCodesResponse.d.ts new file mode 100644 index 0000000..690b34b --- /dev/null +++ b/dist/models/V1UploadPostingCodesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UploadPostingCodesResponsePostingExemplarInfo } from './UploadPostingCodesResponsePostingExemplarInfo'; +/** + * + * @export + * @interface V1UploadPostingCodesResponse + */ +export interface V1UploadPostingCodesResponse { + /** + * Данные о кодах цифрового товара по SKU. + * @type {Array} + * @memberof V1UploadPostingCodesResponse + */ + exemplars_by_sku?: Array; +} +/** + * Check if a given object implements the V1UploadPostingCodesResponse interface. + */ +export declare function instanceOfV1UploadPostingCodesResponse(value: object): value is V1UploadPostingCodesResponse; +export declare function V1UploadPostingCodesResponseFromJSON(json: any): V1UploadPostingCodesResponse; +export declare function V1UploadPostingCodesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UploadPostingCodesResponse; +export declare function V1UploadPostingCodesResponseToJSON(value?: V1UploadPostingCodesResponse | null): any; diff --git a/dist/models/V1UploadPostingCodesResponse.js b/dist/models/V1UploadPostingCodesResponse.js new file mode 100644 index 0000000..0d88452 --- /dev/null +++ b/dist/models/V1UploadPostingCodesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UploadPostingCodesResponse = instanceOfV1UploadPostingCodesResponse; +exports.V1UploadPostingCodesResponseFromJSON = V1UploadPostingCodesResponseFromJSON; +exports.V1UploadPostingCodesResponseFromJSONTyped = V1UploadPostingCodesResponseFromJSONTyped; +exports.V1UploadPostingCodesResponseToJSON = V1UploadPostingCodesResponseToJSON; +const UploadPostingCodesResponsePostingExemplarInfo_1 = require("./UploadPostingCodesResponsePostingExemplarInfo"); +/** + * Check if a given object implements the V1UploadPostingCodesResponse interface. + */ +function instanceOfV1UploadPostingCodesResponse(value) { + return true; +} +function V1UploadPostingCodesResponseFromJSON(json) { + return V1UploadPostingCodesResponseFromJSONTyped(json, false); +} +function V1UploadPostingCodesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars_by_sku': json['exemplars_by_sku'] == null ? undefined : (json['exemplars_by_sku'].map(UploadPostingCodesResponsePostingExemplarInfo_1.UploadPostingCodesResponsePostingExemplarInfoFromJSON)), + }; +} +function V1UploadPostingCodesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars_by_sku': value['exemplars_by_sku'] == null ? undefined : (value['exemplars_by_sku'].map(UploadPostingCodesResponsePostingExemplarInfo_1.UploadPostingCodesResponsePostingExemplarInfoToJSON)), + }; +} diff --git a/dist/models/V1UploadReceiptRequestTypeEnum.d.ts b/dist/models/V1UploadReceiptRequestTypeEnum.d.ts new file mode 100644 index 0000000..7abcd80 --- /dev/null +++ b/dist/models/V1UploadReceiptRequestTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип чека: + * - `INCOMING` — чек реализации; + * - `REFUND` — чек возврата. + * + * @export + */ +export declare const V1UploadReceiptRequestTypeEnum: { + readonly INCOMING: "INCOMING"; + readonly REFUND: "REFUND"; +}; +export type V1UploadReceiptRequestTypeEnum = typeof V1UploadReceiptRequestTypeEnum[keyof typeof V1UploadReceiptRequestTypeEnum]; +export declare function instanceOfV1UploadReceiptRequestTypeEnum(value: any): boolean; +export declare function V1UploadReceiptRequestTypeEnumFromJSON(json: any): V1UploadReceiptRequestTypeEnum; +export declare function V1UploadReceiptRequestTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UploadReceiptRequestTypeEnum; +export declare function V1UploadReceiptRequestTypeEnumToJSON(value?: V1UploadReceiptRequestTypeEnum | null): any; diff --git a/dist/models/V1UploadReceiptRequestTypeEnum.js b/dist/models/V1UploadReceiptRequestTypeEnum.js new file mode 100644 index 0000000..f822021 --- /dev/null +++ b/dist/models/V1UploadReceiptRequestTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1UploadReceiptRequestTypeEnum = void 0; +exports.instanceOfV1UploadReceiptRequestTypeEnum = instanceOfV1UploadReceiptRequestTypeEnum; +exports.V1UploadReceiptRequestTypeEnumFromJSON = V1UploadReceiptRequestTypeEnumFromJSON; +exports.V1UploadReceiptRequestTypeEnumFromJSONTyped = V1UploadReceiptRequestTypeEnumFromJSONTyped; +exports.V1UploadReceiptRequestTypeEnumToJSON = V1UploadReceiptRequestTypeEnumToJSON; +/** + * Тип чека: + * - `INCOMING` — чек реализации; + * - `REFUND` — чек возврата. + * + * @export + */ +exports.V1UploadReceiptRequestTypeEnum = { + INCOMING: 'INCOMING', + REFUND: 'REFUND' +}; +function instanceOfV1UploadReceiptRequestTypeEnum(value) { + for (const key in exports.V1UploadReceiptRequestTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1UploadReceiptRequestTypeEnum, key)) { + if (exports.V1UploadReceiptRequestTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1UploadReceiptRequestTypeEnumFromJSON(json) { + return V1UploadReceiptRequestTypeEnumFromJSONTyped(json, false); +} +function V1UploadReceiptRequestTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1UploadReceiptRequestTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1UploadReceiptResponse.d.ts b/dist/models/V1UploadReceiptResponse.d.ts new file mode 100644 index 0000000..d726cb0 --- /dev/null +++ b/dist/models/V1UploadReceiptResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1UploadReceiptResponse + */ +export interface V1UploadReceiptResponse { + /** + * Идентификатор чека. + * @type {string} + * @memberof V1UploadReceiptResponse + */ + receipt_id?: string; +} +/** + * Check if a given object implements the V1UploadReceiptResponse interface. + */ +export declare function instanceOfV1UploadReceiptResponse(value: object): value is V1UploadReceiptResponse; +export declare function V1UploadReceiptResponseFromJSON(json: any): V1UploadReceiptResponse; +export declare function V1UploadReceiptResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UploadReceiptResponse; +export declare function V1UploadReceiptResponseToJSON(value?: V1UploadReceiptResponse | null): any; diff --git a/dist/models/V1UploadReceiptResponse.js b/dist/models/V1UploadReceiptResponse.js new file mode 100644 index 0000000..4355c93 --- /dev/null +++ b/dist/models/V1UploadReceiptResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1UploadReceiptResponse = instanceOfV1UploadReceiptResponse; +exports.V1UploadReceiptResponseFromJSON = V1UploadReceiptResponseFromJSON; +exports.V1UploadReceiptResponseFromJSONTyped = V1UploadReceiptResponseFromJSONTyped; +exports.V1UploadReceiptResponseToJSON = V1UploadReceiptResponseToJSON; +/** + * Check if a given object implements the V1UploadReceiptResponse interface. + */ +function instanceOfV1UploadReceiptResponse(value) { + return true; +} +function V1UploadReceiptResponseFromJSON(json) { + return V1UploadReceiptResponseFromJSONTyped(json, false); +} +function V1UploadReceiptResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'receipt_id': json['receipt_id'] == null ? undefined : json['receipt_id'], + }; +} +function V1UploadReceiptResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'receipt_id': value['receipt_id'], + }; +} diff --git a/dist/models/V1VehicleInfo.d.ts b/dist/models/V1VehicleInfo.d.ts new file mode 100644 index 0000000..6b2eb3b --- /dev/null +++ b/dist/models/V1VehicleInfo.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о водителе и автомобиле. + * @export + * @interface V1VehicleInfo + */ +export interface V1VehicleInfo { + /** + * Имя водителя. + * @type {string} + * @memberof V1VehicleInfo + */ + driver_name: string; + /** + * Телефон водителя. + * @type {string} + * @memberof V1VehicleInfo + */ + driver_phone: string; + /** + * Модель автомобиля. + * @type {string} + * @memberof V1VehicleInfo + */ + vehicle_model: string; + /** + * Номер автомобиля. + * @type {string} + * @memberof V1VehicleInfo + */ + vehicle_number: string; +} +/** + * Check if a given object implements the V1VehicleInfo interface. + */ +export declare function instanceOfV1VehicleInfo(value: object): value is V1VehicleInfo; +export declare function V1VehicleInfoFromJSON(json: any): V1VehicleInfo; +export declare function V1VehicleInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1VehicleInfo; +export declare function V1VehicleInfoToJSON(value?: V1VehicleInfo | null): any; diff --git a/dist/models/V1VehicleInfo.js b/dist/models/V1VehicleInfo.js new file mode 100644 index 0000000..c64aff6 --- /dev/null +++ b/dist/models/V1VehicleInfo.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1VehicleInfo = instanceOfV1VehicleInfo; +exports.V1VehicleInfoFromJSON = V1VehicleInfoFromJSON; +exports.V1VehicleInfoFromJSONTyped = V1VehicleInfoFromJSONTyped; +exports.V1VehicleInfoToJSON = V1VehicleInfoToJSON; +/** + * Check if a given object implements the V1VehicleInfo interface. + */ +function instanceOfV1VehicleInfo(value) { + if (!('driver_name' in value) || value['driver_name'] === undefined) + return false; + if (!('driver_phone' in value) || value['driver_phone'] === undefined) + return false; + if (!('vehicle_model' in value) || value['vehicle_model'] === undefined) + return false; + if (!('vehicle_number' in value) || value['vehicle_number'] === undefined) + return false; + return true; +} +function V1VehicleInfoFromJSON(json) { + return V1VehicleInfoFromJSONTyped(json, false); +} +function V1VehicleInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'driver_name': json['driver_name'], + 'driver_phone': json['driver_phone'], + 'vehicle_model': json['vehicle_model'], + 'vehicle_number': json['vehicle_number'], + }; +} +function V1VehicleInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'driver_name': value['driver_name'], + 'driver_phone': value['driver_phone'], + 'vehicle_model': value['vehicle_model'], + 'vehicle_number': value['vehicle_number'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequest.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequest.d.ts new file mode 100644 index 0000000..2377ce2 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequest.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse } from './V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse'; +import type { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod'; +import type { V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates } from './V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates'; +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequest + */ +export interface V1WarehouseERFBSAggregatorCreateRequest { + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + address_coordinates: V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; + /** + * `true`, если на складе доступна автосборка. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + is_auto_assembly?: boolean; + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + delivery_method: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; + /** + * Минимальная стоимость заказа. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + min_order_value?: number; + /** + * Название склада. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + name: string; + /** + * Номер телефона склада. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + phone: string; + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse} + * @memberof V1WarehouseERFBSAggregatorCreateRequest + */ + timetable_warehouse: V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequest(value: object): value is V1WarehouseERFBSAggregatorCreateRequest; +export declare function V1WarehouseERFBSAggregatorCreateRequestFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequest; +export declare function V1WarehouseERFBSAggregatorCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequest; +export declare function V1WarehouseERFBSAggregatorCreateRequestToJSON(value?: V1WarehouseERFBSAggregatorCreateRequest | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequest.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequest.js new file mode 100644 index 0000000..c3cae60 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequest.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequest = instanceOfV1WarehouseERFBSAggregatorCreateRequest; +exports.V1WarehouseERFBSAggregatorCreateRequestFromJSON = V1WarehouseERFBSAggregatorCreateRequestFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestToJSON = V1WarehouseERFBSAggregatorCreateRequestToJSON; +const V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse_1 = require("./V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse"); +const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod_1 = require("./V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod"); +const V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates_1 = require("./V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates"); +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequest interface. + */ +function instanceOfV1WarehouseERFBSAggregatorCreateRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('delivery_method' in value) || value['delivery_method'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + if (!('timetable_warehouse' in value) || value['timetable_warehouse'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSAggregatorCreateRequestFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': (0, V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates_1.V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON)(json['address_coordinates']), + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'delivery_method': (0, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod_1.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON)(json['delivery_method']), + 'min_order_value': json['min_order_value'] == null ? undefined : json['min_order_value'], + 'name': json['name'], + 'phone': json['phone'], + 'timetable_warehouse': (0, V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse_1.V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON)(json['timetable_warehouse']), + }; +} +function V1WarehouseERFBSAggregatorCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': (0, V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates_1.V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON)(value['address_coordinates']), + 'is_auto_assembly': value['is_auto_assembly'], + 'delivery_method': (0, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod_1.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON)(value['delivery_method']), + 'min_order_value': value['min_order_value'], + 'name': value['name'], + 'phone': value['phone'], + 'timetable_warehouse': (0, V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse_1.V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON)(value['timetable_warehouse']), + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..ecb4a47 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты адреса склада. + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates + */ +export interface V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestAddressCoordinates(value: object): value is V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.js new file mode 100644 index 0000000..98e35d3 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequestAddressCoordinates = instanceOfV1WarehouseERFBSAggregatorCreateRequestAddressCoordinates; +exports.V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON = V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON = V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates interface. + */ +function instanceOfV1WarehouseERFBSAggregatorCreateRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +function V1WarehouseERFBSAggregatorCreateRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.d.ts new file mode 100644 index 0000000..70ddb5f --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.d.ts @@ -0,0 +1,95 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts } from './WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts'; +import type { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings'; +/** + * Информация о методе доставки «Партнёры Ozon». + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ +export interface V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod { + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + courier_comment?: string; + /** + * `true`, если номер телефона курьера совпадает с номером телефона склада. + * + * Если `is_courier_phone_same_as_warehouse = true`, текущий номер телефона будет указан в `courier_phones`. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + is_courier_phone_same_as_warehouse?: boolean; + /** + * Номера телефонов для связи с курьером. + * @type {Array} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + courier_phones: Array; + /** + * Время сборки. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + cut_in: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum; + /** + * `true`, если доставка Ozon Express в пункт выдачи Ozon. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + deliver_to_pvz: boolean; + /** + * + * @type {WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + delivery_costs: WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; + /** + * Название метода доставки. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + name: string; + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod + */ + return_settings: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +} +/** + * @export + */ +export declare const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_60: 60; + readonly NUMBER_120: 120; + readonly NUMBER_180: 180; + readonly NUMBER_240: 240; + readonly NUMBER_300: 300; + readonly NUMBER_360: 360; + readonly NUMBER_420: 420; + readonly NUMBER_480: 480; +}; +export type V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum = typeof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum[keyof typeof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum]; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethod(value: object): value is V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.js new file mode 100644 index 0000000..c42b1d8 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod.js @@ -0,0 +1,88 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum = void 0; +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethod = instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethod; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON; +const WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts_1 = require("./WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts"); +const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings_1 = require("./V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings"); +/** + * @export + */ +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodCutInEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_60: 60, + NUMBER_120: 120, + NUMBER_180: 180, + NUMBER_240: 240, + NUMBER_300: 300, + NUMBER_360: 360, + NUMBER_420: 420, + NUMBER_480: 480 +}; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod interface. + */ +function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethod(value) { + if (!('courier_phones' in value) || value['courier_phones'] === undefined) + return false; + if (!('cut_in' in value) || value['cut_in'] === undefined) + return false; + if (!('deliver_to_pvz' in value) || value['deliver_to_pvz'] === undefined) + return false; + if (!('delivery_costs' in value) || value['delivery_costs'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('return_settings' in value) || value['return_settings'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_comment': json['courier_comment'] == null ? undefined : json['courier_comment'], + 'is_courier_phone_same_as_warehouse': json['is_courier_phone_same_as_warehouse'] == null ? undefined : json['is_courier_phone_same_as_warehouse'], + 'courier_phones': json['courier_phones'], + 'cut_in': json['cut_in'], + 'deliver_to_pvz': json['deliver_to_pvz'], + 'delivery_costs': (0, WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts_1.WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON)(json['delivery_costs']), + 'name': json['name'], + 'return_settings': (0, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings_1.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON)(json['return_settings']), + }; +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_comment': value['courier_comment'], + 'is_courier_phone_same_as_warehouse': value['is_courier_phone_same_as_warehouse'], + 'courier_phones': value['courier_phones'], + 'cut_in': value['cut_in'], + 'deliver_to_pvz': value['deliver_to_pvz'], + 'delivery_costs': (0, WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts_1.WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON)(value['delivery_costs']), + 'name': value['name'], + 'return_settings': (0, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings_1.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON)(value['return_settings']), + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.d.ts new file mode 100644 index 0000000..05e5a6a --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum } from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +/** + * Информация о получении возвратов от покупателей. + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ +export interface V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings { + /** + * Количество дней, за которое вы свяжетесь с покупателем. Параметр обязательный, если `return_method = COURIER`. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ + contact_days?: number; + /** + * Индекс отделения Почты России для [«лёгкого возврата»](https://seller-edu.ozon.ru/rfbs/vozvraty/vozvraty#%C2%AB%D0%BB%D1%91%D0%B3%D0%BA%D0%B8%D0%B8-%D0%B2%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%82%C2%BB-%D0%BF%D0%BE%D1%87%D1%82%D0%BE%D0%B8-%D1%80%D0%BE%D1%81%D1%81%D0%B8%D0%B8). + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ + post_office_zipcode?: string; + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ + return_method: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; + /** + * Название транспортной компании. Параметр обязательный, если `return_method = TRANSPORT_COMPANY`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings + */ + transport_company_name?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings(value: object): value is V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.js new file mode 100644 index 0000000..12101db --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings = instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON; +const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum_1 = require("./V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum"); +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings interface. + */ +function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings(value) { + if (!('return_method' in value) || value['return_method'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'return_method': (0, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum_1.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON)(json['return_method']), + 'transport_company_name': json['transport_company_name'] == null ? undefined : json['transport_company_name'], + }; +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + 'post_office_zipcode': value['post_office_zipcode'], + 'return_method': (0, V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum_1.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON)(value['return_method']), + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts new file mode 100644 index 0000000..5c3899f --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способы возврата: + * - `UNSPECIFIED` — не определён, + * - `COURIER` — курьером, + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export declare const V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly COURIER: "COURIER"; + readonly TRANSPORT_COMPANY: "TRANSPORT_COMPANY"; +}; +export type V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = typeof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum[keyof typeof V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum]; +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum(value: any): boolean; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js new file mode 100644 index 0000000..8f22567 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = void 0; +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON = V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON; +/** + * Способы возврата: + * - `UNSPECIFIED` — не определён, + * - `COURIER` — курьером, + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = { + UNSPECIFIED: 'UNSPECIFIED', + COURIER: 'COURIER', + TRANSPORT_COMPANY: 'TRANSPORT_COMPANY' +}; +function instanceOfV1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum(value) { + for (const key in exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum, key)) { + if (exports.V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.d.ts new file mode 100644 index 0000000..e56ce55 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestHolidays + */ +export interface V1WarehouseERFBSAggregatorCreateRequestHolidays { + /** + * День в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestHolidays + */ + day?: string; + /** + * Время начала выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestHolidays + */ + from?: string; + /** + * Время окончания выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestHolidays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestHolidays interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestHolidays(value: object): value is V1WarehouseERFBSAggregatorCreateRequestHolidays; +export declare function V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestHolidays; +export declare function V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestHolidays; +export declare function V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestHolidays | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.js new file mode 100644 index 0000000..c094c8e --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestHolidays.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequestHolidays = instanceOfV1WarehouseERFBSAggregatorCreateRequestHolidays; +exports.V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON = V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON = V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestHolidays interface. + */ +function instanceOfV1WarehouseERFBSAggregatorCreateRequestHolidays(value) { + return true; +} +function V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : json['day'], + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.d.ts new file mode 100644 index 0000000..2c8a487 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorCreateRequestWorkingDays } from './V1WarehouseERFBSAggregatorCreateRequestWorkingDays'; +import type { V1WarehouseERFBSAggregatorCreateRequestHolidays } from './V1WarehouseERFBSAggregatorCreateRequestHolidays'; +/** + * Расписание работы склада. + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse + */ +export interface V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse { + /** + * Выходные дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse + */ + holidays?: Array; + /** + * Рабочие дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse + */ + working_days: Array; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse(value: object): value is V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.js new file mode 100644 index 0000000..22c2020 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse = instanceOfV1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse; +exports.V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON = V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON = V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON; +const V1WarehouseERFBSAggregatorCreateRequestWorkingDays_1 = require("./V1WarehouseERFBSAggregatorCreateRequestWorkingDays"); +const V1WarehouseERFBSAggregatorCreateRequestHolidays_1 = require("./V1WarehouseERFBSAggregatorCreateRequestHolidays"); +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse interface. + */ +function instanceOfV1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse(value) { + if (!('working_days' in value) || value['working_days'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'holidays': json['holidays'] == null ? undefined : (json['holidays'].map(V1WarehouseERFBSAggregatorCreateRequestHolidays_1.V1WarehouseERFBSAggregatorCreateRequestHolidaysFromJSON)), + 'working_days': (json['working_days'].map(V1WarehouseERFBSAggregatorCreateRequestWorkingDays_1.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON)), + }; +} +function V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'holidays': value['holidays'] == null ? undefined : (value['holidays'].map(V1WarehouseERFBSAggregatorCreateRequestHolidays_1.V1WarehouseERFBSAggregatorCreateRequestHolidaysToJSON)), + 'working_days': (value['working_days'].map(V1WarehouseERFBSAggregatorCreateRequestWorkingDays_1.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON)), + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.d.ts new file mode 100644 index 0000000..11153e1 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum } from './V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorCreateRequestWorkingDays + */ +export interface V1WarehouseERFBSAggregatorCreateRequestWorkingDays { + /** + * + * @type {V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum} + * @memberof V1WarehouseERFBSAggregatorCreateRequestWorkingDays + */ + day: V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum; + /** + * Время начала рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestWorkingDays + */ + from: string; + /** + * Время окончания рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateRequestWorkingDays + */ + to: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestWorkingDays interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDays(value: object): value is V1WarehouseERFBSAggregatorCreateRequestWorkingDays; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestWorkingDays; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestWorkingDays; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestWorkingDays | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.js new file mode 100644 index 0000000..be2125a --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDays.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDays = instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDays; +exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON = V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON = V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON; +const V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum_1 = require("./V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum"); +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateRequestWorkingDays interface. + */ +function instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDays(value) { + if (!('day' in value) || value['day'] === undefined) + return false; + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': (0, V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum_1.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON)(json['day']), + 'from': json['from'], + 'to': json['to'], + }; +} +function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': (0, V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum_1.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON)(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..565ec46 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum = typeof V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum[keyof typeof V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON(json: any): V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON(value?: V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.js b/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.js new file mode 100644 index 0000000..f0c85ab --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum = void 0; +exports.instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum = instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum; +exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON = V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON; +exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSONTyped = V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON = V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON; +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfV1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum(value) { + for (const key in exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum, key)) { + if (exports.V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateResponse.d.ts b/dist/models/V1WarehouseERFBSAggregatorCreateResponse.d.ts new file mode 100644 index 0000000..11e10e3 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorCreateResponse + */ +export interface V1WarehouseERFBSAggregatorCreateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSAggregatorCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorCreateResponse(value: object): value is V1WarehouseERFBSAggregatorCreateResponse; +export declare function V1WarehouseERFBSAggregatorCreateResponseFromJSON(json: any): V1WarehouseERFBSAggregatorCreateResponse; +export declare function V1WarehouseERFBSAggregatorCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorCreateResponse; +export declare function V1WarehouseERFBSAggregatorCreateResponseToJSON(value?: V1WarehouseERFBSAggregatorCreateResponse | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorCreateResponse.js b/dist/models/V1WarehouseERFBSAggregatorCreateResponse.js new file mode 100644 index 0000000..e3bc2a7 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorCreateResponse = instanceOfV1WarehouseERFBSAggregatorCreateResponse; +exports.V1WarehouseERFBSAggregatorCreateResponseFromJSON = V1WarehouseERFBSAggregatorCreateResponseFromJSON; +exports.V1WarehouseERFBSAggregatorCreateResponseFromJSONTyped = V1WarehouseERFBSAggregatorCreateResponseFromJSONTyped; +exports.V1WarehouseERFBSAggregatorCreateResponseToJSON = V1WarehouseERFBSAggregatorCreateResponseToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorCreateResponse interface. + */ +function instanceOfV1WarehouseERFBSAggregatorCreateResponse(value) { + return true; +} +function V1WarehouseERFBSAggregatorCreateResponseFromJSON(json) { + return V1WarehouseERFBSAggregatorCreateResponseFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1WarehouseERFBSAggregatorCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.d.ts b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.d.ts new file mode 100644 index 0000000..fd73e54 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.d.ts @@ -0,0 +1,107 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings'; +import type { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts'; +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ +export interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest { + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + courier_comment?: string; + /** + * `true`, если номер телефона курьера совпадает с номером телефона склада. + * + * Если `is_courier_phone_same_as_warehouse = true`, текущий номер телефона будет указан в `courier_phones`. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + is_courier_phone_same_as_warehouse?: boolean; + /** + * Номера телефонов для связи с курьером. + * @type {Array} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + courier_phones?: Array; + /** + * Время сборки. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + cut_in?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum; + /** + * `true`, если доставка Ozon Express в пункт выдачи Ozon. + * + * @type {boolean} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + deliver_to_pvz?: boolean; + /** + * + * @type {V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + delivery_costs?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + delivery_method_id: number; + /** + * Название метода доставки. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + name?: string; + /** + * + * @type {V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + return_settings?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest + */ + warehouse_id: number; +} +/** + * @export + */ +export declare const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_60: 60; + readonly NUMBER_120: 120; + readonly NUMBER_180: 180; + readonly NUMBER_240: 240; + readonly NUMBER_300: 300; + readonly NUMBER_360: 360; + readonly NUMBER_420: 420; + readonly NUMBER_480: 480; +}; +export type V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum = typeof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum[keyof typeof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum]; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest(value: object): value is V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.js b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.js new file mode 100644 index 0000000..9df8c9c --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest.js @@ -0,0 +1,84 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum = void 0; +exports.instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest = instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSON; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSONTyped = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSONTyped; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON; +const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings_1 = require("./V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings"); +const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts_1 = require("./V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts"); +/** + * @export + */ +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestCutInEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_60: 60, + NUMBER_120: 120, + NUMBER_180: 180, + NUMBER_240: 240, + NUMBER_300: 300, + NUMBER_360: 360, + NUMBER_420: 420, + NUMBER_480: 480 +}; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest interface. + */ +function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_comment': json['courier_comment'] == null ? undefined : json['courier_comment'], + 'is_courier_phone_same_as_warehouse': json['is_courier_phone_same_as_warehouse'] == null ? undefined : json['is_courier_phone_same_as_warehouse'], + 'courier_phones': json['courier_phones'] == null ? undefined : json['courier_phones'], + 'cut_in': json['cut_in'] == null ? undefined : json['cut_in'], + 'deliver_to_pvz': json['deliver_to_pvz'] == null ? undefined : json['deliver_to_pvz'], + 'delivery_costs': json['delivery_costs'] == null ? undefined : (0, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts_1.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON)(json['delivery_costs']), + 'delivery_method_id': json['delivery_method_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'return_settings': json['return_settings'] == null ? undefined : (0, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings_1.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON)(json['return_settings']), + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_comment': value['courier_comment'], + 'is_courier_phone_same_as_warehouse': value['is_courier_phone_same_as_warehouse'], + 'courier_phones': value['courier_phones'], + 'cut_in': value['cut_in'], + 'deliver_to_pvz': value['deliver_to_pvz'], + 'delivery_costs': (0, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts_1.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON)(value['delivery_costs']), + 'delivery_method_id': value['delivery_method_id'], + 'name': value['name'], + 'return_settings': (0, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings_1.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON)(value['return_settings']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.d.ts b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.d.ts new file mode 100644 index 0000000..e5e56c0 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Расходы на доставку, которые вы готовы оплатить. + * @export + * @interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ +export interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts { + /** + * Минимальный вес в килограммах. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + min_weight?: number; + /** + * Максимальный вес в килограммах. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + max_weight?: number; + /** + * Минимальная стоимость заказа в копейках. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + min_order_price?: number; + /** + * Максимальная стоимость заказа в копейках. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + max_order_price?: number; + /** + * Цена в копейках. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts + */ + seller_payment?: number; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts(value: object): value is V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.js b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.js new file mode 100644 index 0000000..f274da0 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts = instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSONTyped = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSONTyped; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts interface. + */ +function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts(value) { + return true; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_weight': json['min_weight'] == null ? undefined : json['min_weight'], + 'max_weight': json['max_weight'] == null ? undefined : json['max_weight'], + 'min_order_price': json['min_order_price'] == null ? undefined : json['min_order_price'], + 'max_order_price': json['max_order_price'] == null ? undefined : json['max_order_price'], + 'seller_payment': json['seller_payment'] == null ? undefined : json['seller_payment'], + }; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCostsToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_weight': value['min_weight'], + 'max_weight': value['max_weight'], + 'min_order_price': value['min_order_price'], + 'max_order_price': value['max_order_price'], + 'seller_payment': value['seller_payment'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.d.ts b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.d.ts new file mode 100644 index 0000000..8ff862b --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum } from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +/** + * Настройки возвратов от покупателей. + * @export + * @interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ +export interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings { + /** + * Количество дней, за которое вы свяжетесь с покупателем. Параметр обязательный, если `return_method = COURIER`. + * @type {number} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ + contact_days?: number; + /** + * Индекс отделения Почты России. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ + post_office_zipcode?: string; + /** + * + * @type {V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ + return_method?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; + /** + * Название транспортной компании. Параметр обязательный, если `return_method = TRANSPORT_COMPANY`. + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings + */ + transport_company_name: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings(value: object): value is V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.js b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.js new file mode 100644 index 0000000..c8a1c7f --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings = instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON; +const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum_1 = require("./V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum"); +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings interface. + */ +function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings(value) { + if (!('transport_company_name' in value) || value['transport_company_name'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'return_method': json['return_method'] == null ? undefined : (0, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum_1.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON)(json['return_method']), + 'transport_company_name': json['transport_company_name'], + }; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + 'post_office_zipcode': value['post_office_zipcode'], + 'return_method': (0, V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum_1.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON)(value['return_method']), + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts new file mode 100644 index 0000000..ba18f41 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ возврата: + * - `COURIER` — курьером; + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export declare const V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum: { + readonly COURIER: "COURIER"; + readonly TRANSPORT_COMPANY: "TRANSPORT_COMPANY"; +}; +export type V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = typeof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum[keyof typeof V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum]; +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum(value: any): boolean; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js new file mode 100644 index 0000000..e5271a0 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = void 0; +exports.instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON; +/** + * Способ возврата: + * - `COURIER` — курьером; + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = { + COURIER: 'COURIER', + TRANSPORT_COMPANY: 'TRANSPORT_COMPANY' +}; +function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum(value) { + for (const key in exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum, key)) { + if (exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.d.ts b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.d.ts new file mode 100644 index 0000000..b72c9c1 --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse + */ +export interface V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse(value: object): value is V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON(json: any): V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseToJSON(value?: V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse | null): any; diff --git a/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.js b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.js new file mode 100644 index 0000000..ff4034d --- /dev/null +++ b/dist/models/V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse = instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSONTyped = V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSONTyped; +exports.V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseToJSON = V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse interface. + */ +function instanceOfV1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse(value) { + return true; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSON(json) { + return V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSONTyped(json, false); +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequest.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequest.d.ts new file mode 100644 index 0000000..a11dc5c --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequest.d.ts @@ -0,0 +1,71 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates } from './V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates'; +import type { V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse } from './V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse'; +import type { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod'; +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequest + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequest { + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + address_coordinates: V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; + /** + * `true`, если на складе доступна автосборка. + * + * @type {boolean} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + is_auto_assembly?: boolean; + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + delivery_method: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; + /** + * Минимальная стоимость заказа в рублях. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + min_order_value?: number; + /** + * Название склада. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + name: string; + /** + * Номер телефона склада. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + phone: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequest + */ + timetable_warehouse: V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequest(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequest; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequest; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequest; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequest | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequest.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequest.js new file mode 100644 index 0000000..3e8fbda --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequest.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequest = instanceOfV1WarehouseERFBSNonIntegratedCreateRequest; +exports.V1WarehouseERFBSNonIntegratedCreateRequestFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestToJSON = V1WarehouseERFBSNonIntegratedCreateRequestToJSON; +const V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates_1 = require("./V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates"); +const V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse_1 = require("./V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse"); +const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod_1 = require("./V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod"); +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequest interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('delivery_method' in value) || value['delivery_method'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('phone' in value) || value['phone'] === undefined) + return false; + if (!('timetable_warehouse' in value) || value['timetable_warehouse'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSNonIntegratedCreateRequestFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': (0, V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates_1.V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON)(json['address_coordinates']), + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'delivery_method': (0, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod_1.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON)(json['delivery_method']), + 'min_order_value': json['min_order_value'] == null ? undefined : json['min_order_value'], + 'name': json['name'], + 'phone': json['phone'], + 'timetable_warehouse': (0, V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse_1.V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON)(json['timetable_warehouse']), + }; +} +function V1WarehouseERFBSNonIntegratedCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': (0, V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates_1.V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON)(value['address_coordinates']), + 'is_auto_assembly': value['is_auto_assembly'], + 'delivery_method': (0, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod_1.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON)(value['delivery_method']), + 'min_order_value': value['min_order_value'], + 'name': value['name'], + 'phone': value['phone'], + 'timetable_warehouse': (0, V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse_1.V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON)(value['timetable_warehouse']), + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..daf8ce7 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты адреса склада. + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.js new file mode 100644 index 0000000..f4ee48e --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates = instanceOfV1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates; +exports.V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON = V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +function V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.d.ts new file mode 100644 index 0000000..c809d6f --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodDeliveryPolygon } from './DeliveryMethodDeliveryPolygon'; +import type { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings'; +/** + * Информация о методе доставки «Вы или сторонняя служба». + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod { + /** + * Скорость отгрузки в доставку. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + courier_cutoff: number; + /** + * Время сборки. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + cut_in: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum; + /** + * Полигоны доставки, созданные через [/v1/polygon/create](#operation/PolygonAPI_CreatePolygon), с указанием времени доставки в каждый. + * @type {Array} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + delivery_polygons: Array; + /** + * Название метода доставки. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + name: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod + */ + return_settings: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +} +/** + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_60: 60; + readonly NUMBER_120: 120; + readonly NUMBER_180: 180; + readonly NUMBER_240: 240; + readonly NUMBER_300: 300; + readonly NUMBER_360: 360; + readonly NUMBER_420: 420; + readonly NUMBER_480: 480; +}; +export type V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum = typeof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum[keyof typeof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum]; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.js new file mode 100644 index 0000000..e31ff17 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod.js @@ -0,0 +1,80 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum = void 0; +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod = instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON; +const DeliveryMethodDeliveryPolygon_1 = require("./DeliveryMethodDeliveryPolygon"); +const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings_1 = require("./V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings"); +/** + * @export + */ +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodCutInEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_60: 60, + NUMBER_120: 120, + NUMBER_180: 180, + NUMBER_240: 240, + NUMBER_300: 300, + NUMBER_360: 360, + NUMBER_420: 420, + NUMBER_480: 480 +}; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod(value) { + if (!('courier_cutoff' in value) || value['courier_cutoff'] === undefined) + return false; + if (!('cut_in' in value) || value['cut_in'] === undefined) + return false; + if (!('delivery_polygons' in value) || value['delivery_polygons'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('return_settings' in value) || value['return_settings'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_cutoff': json['courier_cutoff'], + 'cut_in': json['cut_in'], + 'delivery_polygons': (json['delivery_polygons'].map(DeliveryMethodDeliveryPolygon_1.DeliveryMethodDeliveryPolygonFromJSON)), + 'name': json['name'], + 'return_settings': (0, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings_1.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON)(json['return_settings']), + }; +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_cutoff': value['courier_cutoff'], + 'cut_in': value['cut_in'], + 'delivery_polygons': (value['delivery_polygons'].map(DeliveryMethodDeliveryPolygon_1.DeliveryMethodDeliveryPolygonToJSON)), + 'name': value['name'], + 'return_settings': (0, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings_1.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON)(value['return_settings']), + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.d.ts new file mode 100644 index 0000000..e6afd76 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum } from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +/** + * Информация о получении возвратов от покупателей. + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings { + /** + * Количество дней, за которое вы свяжетесь с покупателем. Параметр обязательный, если `return_method = COURIER`. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ + contact_days?: number; + /** + * Индекс отделения Почты России для [«лёгкого возврата»](https://seller-edu.ozon.ru/rfbs/vozvraty/vozvraty#%C2%AB%D0%BB%D1%91%D0%B3%D0%BA%D0%B8%D0%B8-%D0%B2%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%82%C2%BB-%D0%BF%D0%BE%D1%87%D1%82%D0%BE%D0%B8-%D1%80%D0%BE%D1%81%D1%81%D0%B8%D0%B8). + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ + post_office_zipcode?: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ + return_method: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; + /** + * Название транспортной компании, если способ возврата `TRANSPORT_COMPANY`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings + */ + transport_company_name?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.js new file mode 100644 index 0000000..a334fc3 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings = instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON; +const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum_1 = require("./V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum"); +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings(value) { + if (!('return_method' in value) || value['return_method'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'return_method': (0, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum_1.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON)(json['return_method']), + 'transport_company_name': json['transport_company_name'] == null ? undefined : json['transport_company_name'], + }; +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + 'post_office_zipcode': value['post_office_zipcode'], + 'return_method': (0, V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum_1.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON)(value['return_method']), + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts new file mode 100644 index 0000000..a0bdb75 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способы возврата: + * - `COURIER` — курьером, + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum: { + readonly COURIER: "COURIER"; + readonly TRANSPORT_COMPANY: "TRANSPORT_COMPANY"; +}; +export type V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = typeof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum[keyof typeof V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum]; +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum(value: any): boolean; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js new file mode 100644 index 0000000..32c86d7 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = void 0; +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON = V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON; +/** + * Способы возврата: + * - `COURIER` — курьером, + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum = { + COURIER: 'COURIER', + TRANSPORT_COMPANY: 'TRANSPORT_COMPANY' +}; +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum(value) { + for (const key in exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum, key)) { + if (exports.V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.d.ts new file mode 100644 index 0000000..d02a81c --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestHolidays + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestHolidays { + /** + * День в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestHolidays + */ + day?: string; + /** + * Время начала выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestHolidays + */ + from?: string; + /** + * Время окончания выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestHolidays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestHolidays interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestHolidays(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestHolidays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestHolidays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestHolidays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestHolidays | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.js new file mode 100644 index 0000000..a3d5b32 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestHolidays.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequestHolidays = instanceOfV1WarehouseERFBSNonIntegratedCreateRequestHolidays; +exports.V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON = V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestHolidays interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestHolidays(value) { + return true; +} +function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : json['day'], + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.d.ts new file mode 100644 index 0000000..2791483 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays } from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays'; +import type { V1WarehouseERFBSNonIntegratedCreateRequestHolidays } from './V1WarehouseERFBSNonIntegratedCreateRequestHolidays'; +/** + * Расписание работы склада. + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse { + /** + * Выходные дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse + */ + holidays?: Array; + /** + * Рабочие дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse + */ + working_days: Array; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.js new file mode 100644 index 0000000..7927aa6 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse = instanceOfV1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse; +exports.V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON = V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON; +const V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays_1 = require("./V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays"); +const V1WarehouseERFBSNonIntegratedCreateRequestHolidays_1 = require("./V1WarehouseERFBSNonIntegratedCreateRequestHolidays"); +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse(value) { + if (!('working_days' in value) || value['working_days'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'holidays': json['holidays'] == null ? undefined : (json['holidays'].map(V1WarehouseERFBSNonIntegratedCreateRequestHolidays_1.V1WarehouseERFBSNonIntegratedCreateRequestHolidaysFromJSON)), + 'working_days': (json['working_days'].map(V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays_1.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON)), + }; +} +function V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'holidays': value['holidays'] == null ? undefined : (value['holidays'].map(V1WarehouseERFBSNonIntegratedCreateRequestHolidays_1.V1WarehouseERFBSNonIntegratedCreateRequestHolidaysToJSON)), + 'working_days': (value['working_days'].map(V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays_1.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON)), + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.d.ts new file mode 100644 index 0000000..67e8493 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum } from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays + */ +export interface V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays { + /** + * + * @type {V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays + */ + day: V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum; + /** + * Время начала рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays + */ + from: string; + /** + * Время окончания рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays + */ + to: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDays(value: object): value is V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.js new file mode 100644 index 0000000..7794f8d --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDays = instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDays; +exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON = V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON; +const V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum_1 = require("./V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum"); +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDays(value) { + if (!('day' in value) || value['day'] === undefined) + return false; + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': (0, V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum_1.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON)(json['day']), + 'from': json['from'], + 'to': json['to'], + }; +} +function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': (0, V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum_1.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON)(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..19af81f --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum: { + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum = typeof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum[keyof typeof V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON(value?: V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.js new file mode 100644 index 0000000..4028320 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum = void 0; +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum = instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum; +exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON = V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON = V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON; +/** + * Рабочий день: + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum = { + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfV1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum(value) { + for (const key in exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum, key)) { + if (exports.V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateResponse.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedCreateResponse.d.ts new file mode 100644 index 0000000..73e5f4b --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedCreateResponse + */ +export interface V1WarehouseERFBSNonIntegratedCreateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedCreateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedCreateResponse(value: object): value is V1WarehouseERFBSNonIntegratedCreateResponse; +export declare function V1WarehouseERFBSNonIntegratedCreateResponseFromJSON(json: any): V1WarehouseERFBSNonIntegratedCreateResponse; +export declare function V1WarehouseERFBSNonIntegratedCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedCreateResponse; +export declare function V1WarehouseERFBSNonIntegratedCreateResponseToJSON(value?: V1WarehouseERFBSNonIntegratedCreateResponse | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedCreateResponse.js b/dist/models/V1WarehouseERFBSNonIntegratedCreateResponse.js new file mode 100644 index 0000000..70ba0fe --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedCreateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedCreateResponse = instanceOfV1WarehouseERFBSNonIntegratedCreateResponse; +exports.V1WarehouseERFBSNonIntegratedCreateResponseFromJSON = V1WarehouseERFBSNonIntegratedCreateResponseFromJSON; +exports.V1WarehouseERFBSNonIntegratedCreateResponseFromJSONTyped = V1WarehouseERFBSNonIntegratedCreateResponseFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedCreateResponseToJSON = V1WarehouseERFBSNonIntegratedCreateResponseToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedCreateResponse interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedCreateResponse(value) { + return true; +} +function V1WarehouseERFBSNonIntegratedCreateResponseFromJSON(json) { + return V1WarehouseERFBSNonIntegratedCreateResponseFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1WarehouseERFBSNonIntegratedCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.d.ts new file mode 100644 index 0000000..e891cba --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.d.ts @@ -0,0 +1,93 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings } from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings'; +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ +export interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest { + /** + * Скорость отгрузки. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + courier_cutoff: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum; + /** + * Время сборки. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + cut_in: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + delivery_method_id: number; + /** + * Название метода доставки. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + name: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + return_settings: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest + */ + warehouse_id: number; +} +/** + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum: { + readonly NUMBER_5: 5; + readonly NUMBER_10: 10; + readonly NUMBER_15: 15; + readonly NUMBER_20: 20; + readonly NUMBER_25: 25; + readonly NUMBER_30: 30; + readonly NUMBER_35: 35; + readonly NUMBER_40: 40; + readonly NUMBER_45: 45; +}; +export type V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum = typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum[keyof typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum]; +/** + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_60: 60; + readonly NUMBER_120: 120; + readonly NUMBER_180: 180; + readonly NUMBER_240: 240; + readonly NUMBER_300: 300; + readonly NUMBER_360: 360; + readonly NUMBER_420: 420; + readonly NUMBER_480: 480; +}; +export type V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum = typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum[keyof typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum]; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest(value: object): value is V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSON(json: any): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON(value?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.js b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.js new file mode 100644 index 0000000..846ad37 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest.js @@ -0,0 +1,97 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum = exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum = void 0; +exports.instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest = instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSON = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSON; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSONTyped = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON; +const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings_1 = require("./V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings"); +/** + * @export + */ +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCourierCutoffEnum = { + NUMBER_5: 5, + NUMBER_10: 10, + NUMBER_15: 15, + NUMBER_20: 20, + NUMBER_25: 25, + NUMBER_30: 30, + NUMBER_35: 35, + NUMBER_40: 40, + NUMBER_45: 45 +}; +/** + * @export + */ +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestCutInEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_60: 60, + NUMBER_120: 120, + NUMBER_180: 180, + NUMBER_240: 240, + NUMBER_300: 300, + NUMBER_360: 360, + NUMBER_420: 420, + NUMBER_480: 480 +}; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest(value) { + if (!('courier_cutoff' in value) || value['courier_cutoff'] === undefined) + return false; + if (!('cut_in' in value) || value['cut_in'] === undefined) + return false; + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('return_settings' in value) || value['return_settings'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSON(json) { + return V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'courier_cutoff': json['courier_cutoff'], + 'cut_in': json['cut_in'], + 'delivery_method_id': json['delivery_method_id'], + 'name': json['name'], + 'return_settings': (0, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings_1.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON)(json['return_settings']), + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'courier_cutoff': value['courier_cutoff'], + 'cut_in': value['cut_in'], + 'delivery_method_id': value['delivery_method_id'], + 'name': value['name'], + 'return_settings': (0, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings_1.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON)(value['return_settings']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.d.ts new file mode 100644 index 0000000..50a8017 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum } from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +/** + * Настройки возвратов от покупателей. + * @export + * @interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ +export interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings { + /** + * Количество дней, за которое вы свяжетесь с покупателем. Параметр обязательный, если `return_method = COURIER`. + * @type {number} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ + contact_days?: number; + /** + * Индекс отделения Почты России. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ + post_office_zipcode?: string; + /** + * + * @type {V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ + return_method: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; + /** + * Название транспортной компании. Параметр обязательный, если `return_method = TRANSPORT_COMPANY`. + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings + */ + transport_company_name?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings(value: object): value is V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON(json: any): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON(value?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.js b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.js new file mode 100644 index 0000000..be1557c --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings = instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON; +const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum_1 = require("./V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum"); +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings(value) { + if (!('return_method' in value) || value['return_method'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSON(json) { + return V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'contact_days': json['contact_days'] == null ? undefined : json['contact_days'], + 'post_office_zipcode': json['post_office_zipcode'] == null ? undefined : json['post_office_zipcode'], + 'return_method': (0, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum_1.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON)(json['return_method']), + 'transport_company_name': json['transport_company_name'] == null ? undefined : json['transport_company_name'], + }; +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'contact_days': value['contact_days'], + 'post_office_zipcode': value['post_office_zipcode'], + 'return_method': (0, V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum_1.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON)(value['return_method']), + 'transport_company_name': value['transport_company_name'], + }; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts new file mode 100644 index 0000000..393270e --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Способ возврата: + * - `COURIER` — курьером; + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +export declare const V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum: { + readonly COURIER: "COURIER"; + readonly TRANSPORT_COMPANY: "TRANSPORT_COMPANY"; +}; +export type V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum[keyof typeof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum]; +export declare function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum(value: any): boolean; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json: any): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js new file mode 100644 index 0000000..4c906b3 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = void 0; +exports.instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON; +/** + * Способ возврата: + * - `COURIER` — курьером; + * - `TRANSPORT_COMPANY` — транспортной компанией. + * + * @export + */ +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum = { + COURIER: 'COURIER', + TRANSPORT_COMPANY: 'TRANSPORT_COMPANY' +}; +function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum(value) { + for (const key in exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum, key)) { + if (exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSON(json) { + return V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.d.ts b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.d.ts new file mode 100644 index 0000000..e965083 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse + */ +export interface V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse(value: object): value is V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON(json: any): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse; +export declare function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseToJSON(value?: V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse | null): any; diff --git a/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.js b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.js new file mode 100644 index 0000000..badf997 --- /dev/null +++ b/dist/models/V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse = instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSONTyped = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSONTyped; +exports.V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseToJSON = V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse interface. + */ +function instanceOfV1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse(value) { + return true; +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSON(json) { + return V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSONTyped(json, false); +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1WarehouseERFBSUpdateRequest.d.ts b/dist/models/V1WarehouseERFBSUpdateRequest.d.ts new file mode 100644 index 0000000..f8de67b --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSUpdateRequestTimetableWarehouse } from './V1WarehouseERFBSUpdateRequestTimetableWarehouse'; +/** + * + * @export + * @interface V1WarehouseERFBSUpdateRequest + */ +export interface V1WarehouseERFBSUpdateRequest { + /** + * `true`, если на складе доступна автосборка. + * + * @type {boolean} + * @memberof V1WarehouseERFBSUpdateRequest + */ + is_auto_assembly?: boolean; + /** + * Минимальная стоимость заказа. + * @type {number} + * @memberof V1WarehouseERFBSUpdateRequest + */ + min_order_value?: number; + /** + * Название склада. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequest + */ + name?: string; + /** + * Номер телефона склада. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequest + */ + phone?: string; + /** + * + * @type {V1WarehouseERFBSUpdateRequestTimetableWarehouse} + * @memberof V1WarehouseERFBSUpdateRequest + */ + timetable_warehouse?: V1WarehouseERFBSUpdateRequestTimetableWarehouse; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseERFBSUpdateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequest interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateRequest(value: object): value is V1WarehouseERFBSUpdateRequest; +export declare function V1WarehouseERFBSUpdateRequestFromJSON(json: any): V1WarehouseERFBSUpdateRequest; +export declare function V1WarehouseERFBSUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequest; +export declare function V1WarehouseERFBSUpdateRequestToJSON(value?: V1WarehouseERFBSUpdateRequest | null): any; diff --git a/dist/models/V1WarehouseERFBSUpdateRequest.js b/dist/models/V1WarehouseERFBSUpdateRequest.js new file mode 100644 index 0000000..00fc840 --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSUpdateRequest = instanceOfV1WarehouseERFBSUpdateRequest; +exports.V1WarehouseERFBSUpdateRequestFromJSON = V1WarehouseERFBSUpdateRequestFromJSON; +exports.V1WarehouseERFBSUpdateRequestFromJSONTyped = V1WarehouseERFBSUpdateRequestFromJSONTyped; +exports.V1WarehouseERFBSUpdateRequestToJSON = V1WarehouseERFBSUpdateRequestToJSON; +const V1WarehouseERFBSUpdateRequestTimetableWarehouse_1 = require("./V1WarehouseERFBSUpdateRequestTimetableWarehouse"); +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequest interface. + */ +function instanceOfV1WarehouseERFBSUpdateRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseERFBSUpdateRequestFromJSON(json) { + return V1WarehouseERFBSUpdateRequestFromJSONTyped(json, false); +} +function V1WarehouseERFBSUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'min_order_value': json['min_order_value'] == null ? undefined : json['min_order_value'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'timetable_warehouse': json['timetable_warehouse'] == null ? undefined : (0, V1WarehouseERFBSUpdateRequestTimetableWarehouse_1.V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON)(json['timetable_warehouse']), + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseERFBSUpdateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_auto_assembly': value['is_auto_assembly'], + 'min_order_value': value['min_order_value'], + 'name': value['name'], + 'phone': value['phone'], + 'timetable_warehouse': (0, V1WarehouseERFBSUpdateRequestTimetableWarehouse_1.V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON)(value['timetable_warehouse']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseERFBSUpdateRequestHolidays.d.ts b/dist/models/V1WarehouseERFBSUpdateRequestHolidays.d.ts new file mode 100644 index 0000000..3fa898b --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequestHolidays.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSUpdateRequestHolidays + */ +export interface V1WarehouseERFBSUpdateRequestHolidays { + /** + * День в формате `YYYY-MM-DD`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestHolidays + */ + day?: string; + /** + * Время начала выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestHolidays + */ + from?: string; + /** + * Время окончания выходного дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestHolidays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestHolidays interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateRequestHolidays(value: object): value is V1WarehouseERFBSUpdateRequestHolidays; +export declare function V1WarehouseERFBSUpdateRequestHolidaysFromJSON(json: any): V1WarehouseERFBSUpdateRequestHolidays; +export declare function V1WarehouseERFBSUpdateRequestHolidaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequestHolidays; +export declare function V1WarehouseERFBSUpdateRequestHolidaysToJSON(value?: V1WarehouseERFBSUpdateRequestHolidays | null): any; diff --git a/dist/models/V1WarehouseERFBSUpdateRequestHolidays.js b/dist/models/V1WarehouseERFBSUpdateRequestHolidays.js new file mode 100644 index 0000000..1e196be --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequestHolidays.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSUpdateRequestHolidays = instanceOfV1WarehouseERFBSUpdateRequestHolidays; +exports.V1WarehouseERFBSUpdateRequestHolidaysFromJSON = V1WarehouseERFBSUpdateRequestHolidaysFromJSON; +exports.V1WarehouseERFBSUpdateRequestHolidaysFromJSONTyped = V1WarehouseERFBSUpdateRequestHolidaysFromJSONTyped; +exports.V1WarehouseERFBSUpdateRequestHolidaysToJSON = V1WarehouseERFBSUpdateRequestHolidaysToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestHolidays interface. + */ +function instanceOfV1WarehouseERFBSUpdateRequestHolidays(value) { + return true; +} +function V1WarehouseERFBSUpdateRequestHolidaysFromJSON(json) { + return V1WarehouseERFBSUpdateRequestHolidaysFromJSONTyped(json, false); +} +function V1WarehouseERFBSUpdateRequestHolidaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : json['day'], + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseERFBSUpdateRequestHolidaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': value['day'], + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.d.ts b/dist/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.d.ts new file mode 100644 index 0000000..a293e87 --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSUpdateRequestWorkingDays } from './V1WarehouseERFBSUpdateRequestWorkingDays'; +import type { V1WarehouseERFBSUpdateRequestHolidays } from './V1WarehouseERFBSUpdateRequestHolidays'; +/** + * Расписание работы склада. + * @export + * @interface V1WarehouseERFBSUpdateRequestTimetableWarehouse + */ +export interface V1WarehouseERFBSUpdateRequestTimetableWarehouse { + /** + * Выходные дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSUpdateRequestTimetableWarehouse + */ + holidays?: Array; + /** + * Рабочие дни склада. + * @type {Array} + * @memberof V1WarehouseERFBSUpdateRequestTimetableWarehouse + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestTimetableWarehouse interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateRequestTimetableWarehouse(value: object): value is V1WarehouseERFBSUpdateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON(json: any): V1WarehouseERFBSUpdateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequestTimetableWarehouse; +export declare function V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON(value?: V1WarehouseERFBSUpdateRequestTimetableWarehouse | null): any; diff --git a/dist/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.js b/dist/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.js new file mode 100644 index 0000000..36d4793 --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequestTimetableWarehouse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSUpdateRequestTimetableWarehouse = instanceOfV1WarehouseERFBSUpdateRequestTimetableWarehouse; +exports.V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON = V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON; +exports.V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSONTyped = V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSONTyped; +exports.V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON = V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON; +const V1WarehouseERFBSUpdateRequestWorkingDays_1 = require("./V1WarehouseERFBSUpdateRequestWorkingDays"); +const V1WarehouseERFBSUpdateRequestHolidays_1 = require("./V1WarehouseERFBSUpdateRequestHolidays"); +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestTimetableWarehouse interface. + */ +function instanceOfV1WarehouseERFBSUpdateRequestTimetableWarehouse(value) { + return true; +} +function V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSON(json) { + return V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSONTyped(json, false); +} +function V1WarehouseERFBSUpdateRequestTimetableWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'holidays': json['holidays'] == null ? undefined : (json['holidays'].map(V1WarehouseERFBSUpdateRequestHolidays_1.V1WarehouseERFBSUpdateRequestHolidaysFromJSON)), + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1WarehouseERFBSUpdateRequestWorkingDays_1.V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON)), + }; +} +function V1WarehouseERFBSUpdateRequestTimetableWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'holidays': value['holidays'] == null ? undefined : (value['holidays'].map(V1WarehouseERFBSUpdateRequestHolidays_1.V1WarehouseERFBSUpdateRequestHolidaysToJSON)), + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1WarehouseERFBSUpdateRequestWorkingDays_1.V1WarehouseERFBSUpdateRequestWorkingDaysToJSON)), + }; +} diff --git a/dist/models/V1WarehouseERFBSUpdateRequestWorkingDays.d.ts b/dist/models/V1WarehouseERFBSUpdateRequestWorkingDays.d.ts new file mode 100644 index 0000000..2bd04c6 --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequestWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum } from './V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseERFBSUpdateRequestWorkingDays + */ +export interface V1WarehouseERFBSUpdateRequestWorkingDays { + /** + * + * @type {V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum} + * @memberof V1WarehouseERFBSUpdateRequestWorkingDays + */ + day?: V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum; + /** + * Время начала рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestWorkingDays + */ + from?: string; + /** + * Время окончания рабочего дня в формате `HH:MM`. + * @type {string} + * @memberof V1WarehouseERFBSUpdateRequestWorkingDays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestWorkingDays interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateRequestWorkingDays(value: object): value is V1WarehouseERFBSUpdateRequestWorkingDays; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON(json: any): V1WarehouseERFBSUpdateRequestWorkingDays; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequestWorkingDays; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysToJSON(value?: V1WarehouseERFBSUpdateRequestWorkingDays | null): any; diff --git a/dist/models/V1WarehouseERFBSUpdateRequestWorkingDays.js b/dist/models/V1WarehouseERFBSUpdateRequestWorkingDays.js new file mode 100644 index 0000000..10e8e61 --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequestWorkingDays.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSUpdateRequestWorkingDays = instanceOfV1WarehouseERFBSUpdateRequestWorkingDays; +exports.V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON = V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON; +exports.V1WarehouseERFBSUpdateRequestWorkingDaysFromJSONTyped = V1WarehouseERFBSUpdateRequestWorkingDaysFromJSONTyped; +exports.V1WarehouseERFBSUpdateRequestWorkingDaysToJSON = V1WarehouseERFBSUpdateRequestWorkingDaysToJSON; +const V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum_1 = require("./V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum"); +/** + * Check if a given object implements the V1WarehouseERFBSUpdateRequestWorkingDays interface. + */ +function instanceOfV1WarehouseERFBSUpdateRequestWorkingDays(value) { + return true; +} +function V1WarehouseERFBSUpdateRequestWorkingDaysFromJSON(json) { + return V1WarehouseERFBSUpdateRequestWorkingDaysFromJSONTyped(json, false); +} +function V1WarehouseERFBSUpdateRequestWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : (0, V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum_1.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON)(json['day']), + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseERFBSUpdateRequestWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': (0, V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum_1.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON)(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.d.ts b/dist/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..371851c --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum = typeof V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum[keyof typeof V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseERFBSUpdateRequestWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON(json: any): V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum; +export declare function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON(value?: V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum | null): any; diff --git a/dist/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.js b/dist/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.js new file mode 100644 index 0000000..dd8f026 --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum = void 0; +exports.instanceOfV1WarehouseERFBSUpdateRequestWorkingDaysDayEnum = instanceOfV1WarehouseERFBSUpdateRequestWorkingDaysDayEnum; +exports.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON = V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON; +exports.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSONTyped = V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSONTyped; +exports.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON = V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON; +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +exports.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfV1WarehouseERFBSUpdateRequestWorkingDaysDayEnum(value) { + for (const key in exports.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum, key)) { + if (exports.V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSONTyped(json, false); +} +function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseERFBSUpdateRequestWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseERFBSUpdateResponse.d.ts b/dist/models/V1WarehouseERFBSUpdateResponse.d.ts new file mode 100644 index 0000000..bc4df83 --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseERFBSUpdateResponse + */ +export interface V1WarehouseERFBSUpdateResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof V1WarehouseERFBSUpdateResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the V1WarehouseERFBSUpdateResponse interface. + */ +export declare function instanceOfV1WarehouseERFBSUpdateResponse(value: object): value is V1WarehouseERFBSUpdateResponse; +export declare function V1WarehouseERFBSUpdateResponseFromJSON(json: any): V1WarehouseERFBSUpdateResponse; +export declare function V1WarehouseERFBSUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseERFBSUpdateResponse; +export declare function V1WarehouseERFBSUpdateResponseToJSON(value?: V1WarehouseERFBSUpdateResponse | null): any; diff --git a/dist/models/V1WarehouseERFBSUpdateResponse.js b/dist/models/V1WarehouseERFBSUpdateResponse.js new file mode 100644 index 0000000..aecbc0d --- /dev/null +++ b/dist/models/V1WarehouseERFBSUpdateResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseERFBSUpdateResponse = instanceOfV1WarehouseERFBSUpdateResponse; +exports.V1WarehouseERFBSUpdateResponseFromJSON = V1WarehouseERFBSUpdateResponseFromJSON; +exports.V1WarehouseERFBSUpdateResponseFromJSONTyped = V1WarehouseERFBSUpdateResponseFromJSONTyped; +exports.V1WarehouseERFBSUpdateResponseToJSON = V1WarehouseERFBSUpdateResponseToJSON; +/** + * Check if a given object implements the V1WarehouseERFBSUpdateResponse interface. + */ +function instanceOfV1WarehouseERFBSUpdateResponse(value) { + return true; +} +function V1WarehouseERFBSUpdateResponseFromJSON(json) { + return V1WarehouseERFBSUpdateResponseFromJSONTyped(json, false); +} +function V1WarehouseERFBSUpdateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function V1WarehouseERFBSUpdateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListRequest.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListRequest.d.ts new file mode 100644 index 0000000..61fc970 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListRequest.d.ts @@ -0,0 +1,63 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListRequestSearch } from './V1WarehouseFBSCreateReturnPointListRequestSearch'; +import type { V1WarehouseFBSCreateReturnPointListRequestCoordinates } from './V1WarehouseFBSCreateReturnPointListRequestCoordinates'; +/** + * + * @export + * @interface V1WarehouseFBSCreateReturnPointListRequest + */ +export interface V1WarehouseFBSCreateReturnPointListRequest { + /** + * + * @type {V1WarehouseFBSCreateReturnPointListRequestCoordinates} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + coordinates: V1WarehouseFBSCreateReturnPointListRequestCoordinates; + /** + * Код страны в формате ISO 2. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + country_code: string; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + last_id?: number; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + limit: number; + /** + * + * @type {V1WarehouseFBSCreateReturnPointListRequestSearch} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + search?: V1WarehouseFBSCreateReturnPointListRequestSearch; + /** + * Идентификатор выбранной точки отгрузки на складе. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequest + */ + selected_dropoff_point_id?: number; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequest interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListRequest(value: object): value is V1WarehouseFBSCreateReturnPointListRequest; +export declare function V1WarehouseFBSCreateReturnPointListRequestFromJSON(json: any): V1WarehouseFBSCreateReturnPointListRequest; +export declare function V1WarehouseFBSCreateReturnPointListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListRequest; +export declare function V1WarehouseFBSCreateReturnPointListRequestToJSON(value?: V1WarehouseFBSCreateReturnPointListRequest | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListRequest.js b/dist/models/V1WarehouseFBSCreateReturnPointListRequest.js new file mode 100644 index 0000000..0c57ee2 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListRequest.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSCreateReturnPointListRequest = instanceOfV1WarehouseFBSCreateReturnPointListRequest; +exports.V1WarehouseFBSCreateReturnPointListRequestFromJSON = V1WarehouseFBSCreateReturnPointListRequestFromJSON; +exports.V1WarehouseFBSCreateReturnPointListRequestFromJSONTyped = V1WarehouseFBSCreateReturnPointListRequestFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListRequestToJSON = V1WarehouseFBSCreateReturnPointListRequestToJSON; +const V1WarehouseFBSCreateReturnPointListRequestSearch_1 = require("./V1WarehouseFBSCreateReturnPointListRequestSearch"); +const V1WarehouseFBSCreateReturnPointListRequestCoordinates_1 = require("./V1WarehouseFBSCreateReturnPointListRequestCoordinates"); +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequest interface. + */ +function instanceOfV1WarehouseFBSCreateReturnPointListRequest(value) { + if (!('coordinates' in value) || value['coordinates'] === undefined) + return false; + if (!('country_code' in value) || value['country_code'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1WarehouseFBSCreateReturnPointListRequestFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListRequestFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'coordinates': (0, V1WarehouseFBSCreateReturnPointListRequestCoordinates_1.V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON)(json['coordinates']), + 'country_code': json['country_code'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'search': json['search'] == null ? undefined : (0, V1WarehouseFBSCreateReturnPointListRequestSearch_1.V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON)(json['search']), + 'selected_dropoff_point_id': json['selected_dropoff_point_id'] == null ? undefined : json['selected_dropoff_point_id'], + }; +} +function V1WarehouseFBSCreateReturnPointListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'coordinates': (0, V1WarehouseFBSCreateReturnPointListRequestCoordinates_1.V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON)(value['coordinates']), + 'country_code': value['country_code'], + 'last_id': value['last_id'], + 'limit': value['limit'], + 'search': (0, V1WarehouseFBSCreateReturnPointListRequestSearch_1.V1WarehouseFBSCreateReturnPointListRequestSearchToJSON)(value['search']), + 'selected_dropoff_point_id': value['selected_dropoff_point_id'], + }; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.d.ts new file mode 100644 index 0000000..7368b3d --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты пункта возврата. + * @export + * @interface V1WarehouseFBSCreateReturnPointListRequestCoordinates + */ +export interface V1WarehouseFBSCreateReturnPointListRequestCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequestCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListRequestCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequestCoordinates interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListRequestCoordinates(value: object): value is V1WarehouseFBSCreateReturnPointListRequestCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON(json: any): V1WarehouseFBSCreateReturnPointListRequestCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListRequestCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON(value?: V1WarehouseFBSCreateReturnPointListRequestCoordinates | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.js b/dist/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.js new file mode 100644 index 0000000..491e462 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListRequestCoordinates.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSCreateReturnPointListRequestCoordinates = instanceOfV1WarehouseFBSCreateReturnPointListRequestCoordinates; +exports.V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON = V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON; +exports.V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSONTyped = V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON = V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON; +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequestCoordinates interface. + */ +function instanceOfV1WarehouseFBSCreateReturnPointListRequestCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +function V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListRequestCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +function V1WarehouseFBSCreateReturnPointListRequestCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearch.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearch.d.ts new file mode 100644 index 0000000..0f598b5 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearch.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum } from './V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum'; +/** + * Параметры поиска. + * @export + * @interface V1WarehouseFBSCreateReturnPointListRequestSearch + */ +export interface V1WarehouseFBSCreateReturnPointListRequestSearch { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListRequestSearch + */ + address?: string; + /** + * Тип пункта возврата: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @type {Array} + * @memberof V1WarehouseFBSCreateReturnPointListRequestSearch + */ + types?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequestSearch interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListRequestSearch(value: object): value is V1WarehouseFBSCreateReturnPointListRequestSearch; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON(json: any): V1WarehouseFBSCreateReturnPointListRequestSearch; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListRequestSearch; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchToJSON(value?: V1WarehouseFBSCreateReturnPointListRequestSearch | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearch.js b/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearch.js new file mode 100644 index 0000000..7e007c6 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearch.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSCreateReturnPointListRequestSearch = instanceOfV1WarehouseFBSCreateReturnPointListRequestSearch; +exports.V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON = V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON; +exports.V1WarehouseFBSCreateReturnPointListRequestSearchFromJSONTyped = V1WarehouseFBSCreateReturnPointListRequestSearchFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListRequestSearchToJSON = V1WarehouseFBSCreateReturnPointListRequestSearchToJSON; +const V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum_1 = require("./V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum"); +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListRequestSearch interface. + */ +function instanceOfV1WarehouseFBSCreateReturnPointListRequestSearch(value) { + return true; +} +function V1WarehouseFBSCreateReturnPointListRequestSearchFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListRequestSearchFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListRequestSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'types': json['types'] == null ? undefined : (json['types'].map(V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum_1.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON)), + }; +} +function V1WarehouseFBSCreateReturnPointListRequestSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'types': value['types'] == null ? undefined : (value['types'].map(V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum_1.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..a99b1ad --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum = typeof V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum[keyof typeof V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum; +export declare function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON(value?: V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.js b/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.js new file mode 100644 index 0000000..981298c --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum = void 0; +exports.instanceOfV1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum = instanceOfV1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum; +exports.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON = V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON; +exports.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped = V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON = V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON; +/** + * + * @export + */ +exports.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfV1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum(value) { + for (const key in exports.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum, key)) { + if (exports.V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponse.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListResponse.d.ts new file mode 100644 index 0000000..89b47aa --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListResponseReturnPoint } from './V1WarehouseFBSCreateReturnPointListResponseReturnPoint'; +/** + * + * @export + * @interface V1WarehouseFBSCreateReturnPointListResponse + */ +export interface V1WarehouseFBSCreateReturnPointListResponse { + /** + * Признак, что в ответе вернули не все пункты возврата. + * @type {boolean} + * @memberof V1WarehouseFBSCreateReturnPointListResponse + */ + has_next?: boolean; + /** + * Признак доступности пункта возврата. + * @type {boolean} + * @memberof V1WarehouseFBSCreateReturnPointListResponse + */ + is_selected_point_available?: boolean; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponse + */ + last_id?: number; + /** + * Список пунктов возврата. + * @type {Array} + * @memberof V1WarehouseFBSCreateReturnPointListResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponse interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponse(value: object): value is V1WarehouseFBSCreateReturnPointListResponse; +export declare function V1WarehouseFBSCreateReturnPointListResponseFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponse; +export declare function V1WarehouseFBSCreateReturnPointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponse; +export declare function V1WarehouseFBSCreateReturnPointListResponseToJSON(value?: V1WarehouseFBSCreateReturnPointListResponse | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponse.js b/dist/models/V1WarehouseFBSCreateReturnPointListResponse.js new file mode 100644 index 0000000..77216be --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSCreateReturnPointListResponse = instanceOfV1WarehouseFBSCreateReturnPointListResponse; +exports.V1WarehouseFBSCreateReturnPointListResponseFromJSON = V1WarehouseFBSCreateReturnPointListResponseFromJSON; +exports.V1WarehouseFBSCreateReturnPointListResponseFromJSONTyped = V1WarehouseFBSCreateReturnPointListResponseFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListResponseToJSON = V1WarehouseFBSCreateReturnPointListResponseToJSON; +const V1WarehouseFBSCreateReturnPointListResponseReturnPoint_1 = require("./V1WarehouseFBSCreateReturnPointListResponseReturnPoint"); +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponse interface. + */ +function instanceOfV1WarehouseFBSCreateReturnPointListResponse(value) { + return true; +} +function V1WarehouseFBSCreateReturnPointListResponseFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'is_selected_point_available': json['is_selected_point_available'] == null ? undefined : json['is_selected_point_available'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'points': json['points'] == null ? undefined : (json['points'].map(V1WarehouseFBSCreateReturnPointListResponseReturnPoint_1.V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON)), + }; +} +function V1WarehouseFBSCreateReturnPointListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'is_selected_point_available': value['is_selected_point_available'], + 'last_id': value['last_id'], + 'points': value['points'] == null ? undefined : (value['points'].map(V1WarehouseFBSCreateReturnPointListResponseReturnPoint_1.V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.d.ts new file mode 100644 index 0000000..0ef8846 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты пункта возврата. + * @export + * @interface V1WarehouseFBSCreateReturnPointListResponseCoordinates + */ +export interface V1WarehouseFBSCreateReturnPointListResponseCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponseCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponseCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseCoordinates interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseCoordinates(value: object): value is V1WarehouseFBSCreateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseCoordinates | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.js b/dist/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.js new file mode 100644 index 0000000..0e4478d --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSCreateReturnPointListResponseCoordinates = instanceOfV1WarehouseFBSCreateReturnPointListResponseCoordinates; +exports.V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON = V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON; +exports.V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSONTyped = V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON = V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON; +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseCoordinates interface. + */ +function instanceOfV1WarehouseFBSCreateReturnPointListResponseCoordinates(value) { + return true; +} +function V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.d.ts new file mode 100644 index 0000000..f02a7a3 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListResponseCoordinates } from './V1WarehouseFBSCreateReturnPointListResponseCoordinates'; +import type { V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum } from './V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum'; +import type { V1WarehouseFBSCreateReturnPointListResponseWorkingDays } from './V1WarehouseFBSCreateReturnPointListResponseWorkingDays'; +/** + * + * @export + * @interface V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ +export interface V1WarehouseFBSCreateReturnPointListResponseReturnPoint { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + address?: string; + /** + * + * @type {V1WarehouseFBSCreateReturnPointListResponseCoordinates} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + coordinates?: V1WarehouseFBSCreateReturnPointListResponseCoordinates; + /** + * Идентификатор пункта возврата. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + id?: number; + /** + * Название пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + name?: string; + /** + * + * @type {V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + type?: V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum; + /** + * Смещение часового пояса от UTC-0 в минутах. + * @type {number} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + utc_offset?: number; + /** + * Рабочие дни пункта возврата. + * @type {Array} + * @memberof V1WarehouseFBSCreateReturnPointListResponseReturnPoint + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseReturnPoint interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPoint(value: object): value is V1WarehouseFBSCreateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseReturnPoint | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.js b/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.js new file mode 100644 index 0000000..6509f58 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPoint.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPoint = instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPoint; +exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON = V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON; +exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSONTyped = V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON = V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON; +const V1WarehouseFBSCreateReturnPointListResponseCoordinates_1 = require("./V1WarehouseFBSCreateReturnPointListResponseCoordinates"); +const V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum_1 = require("./V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum"); +const V1WarehouseFBSCreateReturnPointListResponseWorkingDays_1 = require("./V1WarehouseFBSCreateReturnPointListResponseWorkingDays"); +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseReturnPoint interface. + */ +function instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPoint(value) { + return true; +} +function V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListResponseReturnPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : (0, V1WarehouseFBSCreateReturnPointListResponseCoordinates_1.V1WarehouseFBSCreateReturnPointListResponseCoordinatesFromJSON)(json['coordinates']), + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : (0, V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum_1.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON)(json['type']), + 'utc_offset': json['utc_offset'] == null ? undefined : json['utc_offset'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1WarehouseFBSCreateReturnPointListResponseWorkingDays_1.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON)), + }; +} +function V1WarehouseFBSCreateReturnPointListResponseReturnPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': (0, V1WarehouseFBSCreateReturnPointListResponseCoordinates_1.V1WarehouseFBSCreateReturnPointListResponseCoordinatesToJSON)(value['coordinates']), + 'id': value['id'], + 'name': value['name'], + 'type': (0, V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum_1.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON)(value['type']), + 'utc_offset': value['utc_offset'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1WarehouseFBSCreateReturnPointListResponseWorkingDays_1.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..6110200 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum = typeof V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum[keyof typeof V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.js b/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.js new file mode 100644 index 0000000..d43a6b6 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum = void 0; +exports.instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum = instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum; +exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON = V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON; +exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSONTyped = V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON = V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON; +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfV1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum(value) { + for (const key in exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum, key)) { + if (exports.V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.d.ts new file mode 100644 index 0000000..c8c0c91 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum } from './V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseFBSCreateReturnPointListResponseWorkingDays + */ +export interface V1WarehouseFBSCreateReturnPointListResponseWorkingDays { + /** + * + * @type {V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum} + * @memberof V1WarehouseFBSCreateReturnPointListResponseWorkingDays + */ + day?: V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum; + /** + * Время начала. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListResponseWorkingDays + */ + from?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1WarehouseFBSCreateReturnPointListResponseWorkingDays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseWorkingDays interface. + */ +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDays(value: object): value is V1WarehouseFBSCreateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseWorkingDays | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.js b/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.js new file mode 100644 index 0000000..bba7219 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDays.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDays = instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDays; +exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON = V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON; +exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSONTyped = V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON = V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON; +const V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum_1 = require("./V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum"); +/** + * Check if a given object implements the V1WarehouseFBSCreateReturnPointListResponseWorkingDays interface. + */ +function instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDays(value) { + return true; +} +function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : (0, V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum_1.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON)(json['day']), + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': (0, V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum_1.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON)(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.d.ts b/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..cc14582 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum = typeof V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum[keyof typeof V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON(json: any): V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON(value?: V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum | null): any; diff --git a/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.js b/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.js new file mode 100644 index 0000000..fc37959 --- /dev/null +++ b/dist/models/V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum = void 0; +exports.instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum = instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum; +exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON = V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON; +exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped = V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped; +exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON = V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON; +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfV1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum(value) { + for (const key in exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum, key)) { + if (exports.V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json, false); +} +function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFBSReturnMileInfoRequest.d.ts b/dist/models/V1WarehouseFBSReturnMileInfoRequest.d.ts new file mode 100644 index 0000000..9fbd9a9 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFBSReturnMileInfoRequest + */ +export interface V1WarehouseFBSReturnMileInfoRequest { + /** + * Идентификаторы складов. + * @type {Array} + * @memberof V1WarehouseFBSReturnMileInfoRequest + */ + warehouse_ids: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoRequest interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoRequest(value: object): value is V1WarehouseFBSReturnMileInfoRequest; +export declare function V1WarehouseFBSReturnMileInfoRequestFromJSON(json: any): V1WarehouseFBSReturnMileInfoRequest; +export declare function V1WarehouseFBSReturnMileInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoRequest; +export declare function V1WarehouseFBSReturnMileInfoRequestToJSON(value?: V1WarehouseFBSReturnMileInfoRequest | null): any; diff --git a/dist/models/V1WarehouseFBSReturnMileInfoRequest.js b/dist/models/V1WarehouseFBSReturnMileInfoRequest.js new file mode 100644 index 0000000..5c49925 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSReturnMileInfoRequest = instanceOfV1WarehouseFBSReturnMileInfoRequest; +exports.V1WarehouseFBSReturnMileInfoRequestFromJSON = V1WarehouseFBSReturnMileInfoRequestFromJSON; +exports.V1WarehouseFBSReturnMileInfoRequestFromJSONTyped = V1WarehouseFBSReturnMileInfoRequestFromJSONTyped; +exports.V1WarehouseFBSReturnMileInfoRequestToJSON = V1WarehouseFBSReturnMileInfoRequestToJSON; +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoRequest interface. + */ +function instanceOfV1WarehouseFBSReturnMileInfoRequest(value) { + if (!('warehouse_ids' in value) || value['warehouse_ids'] === undefined) + return false; + return true; +} +function V1WarehouseFBSReturnMileInfoRequestFromJSON(json) { + return V1WarehouseFBSReturnMileInfoRequestFromJSONTyped(json, false); +} +function V1WarehouseFBSReturnMileInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_ids': json['warehouse_ids'], + }; +} +function V1WarehouseFBSReturnMileInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponse.d.ts b/dist/models/V1WarehouseFBSReturnMileInfoResponse.d.ts new file mode 100644 index 0000000..03ffd39 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings } from './WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings'; +/** + * + * @export + * @interface V1WarehouseFBSReturnMileInfoResponse + */ +export interface V1WarehouseFBSReturnMileInfoResponse { + /** + * Информация о возвратной миле на складе. + * @type {Array} + * @memberof V1WarehouseFBSReturnMileInfoResponse + */ + return_mile_settings?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponse interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponse(value: object): value is V1WarehouseFBSReturnMileInfoResponse; +export declare function V1WarehouseFBSReturnMileInfoResponseFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponse; +export declare function V1WarehouseFBSReturnMileInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponse; +export declare function V1WarehouseFBSReturnMileInfoResponseToJSON(value?: V1WarehouseFBSReturnMileInfoResponse | null): any; diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponse.js b/dist/models/V1WarehouseFBSReturnMileInfoResponse.js new file mode 100644 index 0000000..d58985f --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSReturnMileInfoResponse = instanceOfV1WarehouseFBSReturnMileInfoResponse; +exports.V1WarehouseFBSReturnMileInfoResponseFromJSON = V1WarehouseFBSReturnMileInfoResponseFromJSON; +exports.V1WarehouseFBSReturnMileInfoResponseFromJSONTyped = V1WarehouseFBSReturnMileInfoResponseFromJSONTyped; +exports.V1WarehouseFBSReturnMileInfoResponseToJSON = V1WarehouseFBSReturnMileInfoResponseToJSON; +const WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings_1 = require("./WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings"); +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponse interface. + */ +function instanceOfV1WarehouseFBSReturnMileInfoResponse(value) { + return true; +} +function V1WarehouseFBSReturnMileInfoResponseFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseFromJSONTyped(json, false); +} +function V1WarehouseFBSReturnMileInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'return_mile_settings': json['return_mile_settings'] == null ? undefined : (json['return_mile_settings'].map(WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings_1.WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON)), + }; +} +function V1WarehouseFBSReturnMileInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'return_mile_settings': value['return_mile_settings'] == null ? undefined : (value['return_mile_settings'].map(WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings_1.WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.d.ts b/dist/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.d.ts new file mode 100644 index 0000000..b1a6ae6 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты пункта возврата. + * @export + * @interface V1WarehouseFBSReturnMileInfoResponseCoordinates + */ +export interface V1WarehouseFBSReturnMileInfoResponseCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFBSReturnMileInfoResponseCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFBSReturnMileInfoResponseCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseCoordinates interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseCoordinates(value: object): value is V1WarehouseFBSReturnMileInfoResponseCoordinates; +export declare function V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseCoordinates; +export declare function V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseCoordinates; +export declare function V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON(value?: V1WarehouseFBSReturnMileInfoResponseCoordinates | null): any; diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.js b/dist/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.js new file mode 100644 index 0000000..4aaef64 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSReturnMileInfoResponseCoordinates = instanceOfV1WarehouseFBSReturnMileInfoResponseCoordinates; +exports.V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON = V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON; +exports.V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSONTyped = V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSONTyped; +exports.V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON = V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON; +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseCoordinates interface. + */ +function instanceOfV1WarehouseFBSReturnMileInfoResponseCoordinates(value) { + return true; +} +function V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSONTyped(json, false); +} +function V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.d.ts b/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.d.ts new file mode 100644 index 0000000..e3aea34 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum } from './V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum'; +import type { V1WarehouseFBSReturnMileInfoResponseWorkingDays } from './V1WarehouseFBSReturnMileInfoResponseWorkingDays'; +import type { V1WarehouseFBSReturnMileInfoResponseCoordinates } from './V1WarehouseFBSReturnMileInfoResponseCoordinates'; +/** + * Информация о пункте возврата. + * @export + * @interface V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ +export interface V1WarehouseFBSReturnMileInfoResponseReturnPoint { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + address?: string; + /** + * + * @type {V1WarehouseFBSReturnMileInfoResponseCoordinates} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + coordinates?: V1WarehouseFBSReturnMileInfoResponseCoordinates; + /** + * Идентификатор пункта возврата. + * @type {number} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + id?: number; + /** + * Название пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + name?: string; + /** + * + * @type {V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + type?: V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum; + /** + * Смещение часового пояса от UTC-0 в минутах. + * @type {number} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + utc_offset?: number; + /** + * Рабочие дни пункта возврата. + * @type {Array} + * @memberof V1WarehouseFBSReturnMileInfoResponseReturnPoint + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseReturnPoint interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPoint(value: object): value is V1WarehouseFBSReturnMileInfoResponseReturnPoint; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseReturnPoint; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseReturnPoint; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON(value?: V1WarehouseFBSReturnMileInfoResponseReturnPoint | null): any; diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.js b/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.js new file mode 100644 index 0000000..d6c7c87 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPoint.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPoint = instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPoint; +exports.V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON = V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON; +exports.V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSONTyped = V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSONTyped; +exports.V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON = V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON; +const V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum_1 = require("./V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum"); +const V1WarehouseFBSReturnMileInfoResponseWorkingDays_1 = require("./V1WarehouseFBSReturnMileInfoResponseWorkingDays"); +const V1WarehouseFBSReturnMileInfoResponseCoordinates_1 = require("./V1WarehouseFBSReturnMileInfoResponseCoordinates"); +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseReturnPoint interface. + */ +function instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPoint(value) { + return true; +} +function V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSONTyped(json, false); +} +function V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : (0, V1WarehouseFBSReturnMileInfoResponseCoordinates_1.V1WarehouseFBSReturnMileInfoResponseCoordinatesFromJSON)(json['coordinates']), + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : (0, V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum_1.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON)(json['type']), + 'utc_offset': json['utc_offset'] == null ? undefined : json['utc_offset'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1WarehouseFBSReturnMileInfoResponseWorkingDays_1.V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON)), + }; +} +function V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': (0, V1WarehouseFBSReturnMileInfoResponseCoordinates_1.V1WarehouseFBSReturnMileInfoResponseCoordinatesToJSON)(value['coordinates']), + 'id': value['id'], + 'name': value['name'], + 'type': (0, V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum_1.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON)(value['type']), + 'utc_offset': value['utc_offset'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1WarehouseFBSReturnMileInfoResponseWorkingDays_1.V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.d.ts b/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..56029ef --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum = typeof V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum[keyof typeof V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON(value?: V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum | null): any; diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.js b/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.js new file mode 100644 index 0000000..96119b8 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum = void 0; +exports.instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum = instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum; +exports.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON = V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON; +exports.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSONTyped = V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSONTyped; +exports.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON = V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON; +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +exports.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfV1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum(value) { + for (const key in exports.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum, key)) { + if (exports.V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSONTyped(json, false); +} +function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.d.ts b/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.d.ts new file mode 100644 index 0000000..3e478fa --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum } from './V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseFBSReturnMileInfoResponseWorkingDays + */ +export interface V1WarehouseFBSReturnMileInfoResponseWorkingDays { + /** + * + * @type {V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum} + * @memberof V1WarehouseFBSReturnMileInfoResponseWorkingDays + */ + day?: V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum; + /** + * Время начала. + * @type {string} + * @memberof V1WarehouseFBSReturnMileInfoResponseWorkingDays + */ + from?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1WarehouseFBSReturnMileInfoResponseWorkingDays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseWorkingDays interface. + */ +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDays(value: object): value is V1WarehouseFBSReturnMileInfoResponseWorkingDays; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseWorkingDays; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseWorkingDays; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON(value?: V1WarehouseFBSReturnMileInfoResponseWorkingDays | null): any; diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.js b/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.js new file mode 100644 index 0000000..3338c8a --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDays.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDays = instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDays; +exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON = V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON; +exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSONTyped = V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSONTyped; +exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON = V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON; +const V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum_1 = require("./V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum"); +/** + * Check if a given object implements the V1WarehouseFBSReturnMileInfoResponseWorkingDays interface. + */ +function instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDays(value) { + return true; +} +function V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSONTyped(json, false); +} +function V1WarehouseFBSReturnMileInfoResponseWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : (0, V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum_1.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON)(json['day']), + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseFBSReturnMileInfoResponseWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': (0, V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum_1.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON)(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.d.ts b/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..be0669b --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum = typeof V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum[keyof typeof V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON(json: any): V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON(value?: V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum | null): any; diff --git a/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.js b/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.js new file mode 100644 index 0000000..0a34cb7 --- /dev/null +++ b/dist/models/V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum = void 0; +exports.instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum = instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum; +exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON = V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON; +exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSONTyped = V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSONTyped; +exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON = V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON; +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfV1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum(value) { + for (const key in exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum, key)) { + if (exports.V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSONTyped(json, false); +} +function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListRequest.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListRequest.d.ts new file mode 100644 index 0000000..1dfd5e2 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListRequest.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListRequestSearch } from './V1WarehouseFBSUpdateReturnPointListRequestSearch'; +/** + * + * @export + * @interface V1WarehouseFBSUpdateReturnPointListRequest + */ +export interface V1WarehouseFBSUpdateReturnPointListRequest { + /** + * Идентификатор выбранной точки отгрузки на складе. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + current_dropoff_point_id?: number; + /** + * Установленный пункт возврата. Получите значение параметра методом [/v1/warehouse/fbs/return-mile/info](#operation/WarehouseFBSReturnMileInfo). + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + current_return_point_id?: number; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + last_id?: number; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + limit: number; + /** + * + * @type {V1WarehouseFBSUpdateReturnPointListRequestSearch} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + search?: V1WarehouseFBSUpdateReturnPointListRequestSearch; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListRequest interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListRequest(value: object): value is V1WarehouseFBSUpdateReturnPointListRequest; +export declare function V1WarehouseFBSUpdateReturnPointListRequestFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListRequest; +export declare function V1WarehouseFBSUpdateReturnPointListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListRequest; +export declare function V1WarehouseFBSUpdateReturnPointListRequestToJSON(value?: V1WarehouseFBSUpdateReturnPointListRequest | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListRequest.js b/dist/models/V1WarehouseFBSUpdateReturnPointListRequest.js new file mode 100644 index 0000000..9e16ecc --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSUpdateReturnPointListRequest = instanceOfV1WarehouseFBSUpdateReturnPointListRequest; +exports.V1WarehouseFBSUpdateReturnPointListRequestFromJSON = V1WarehouseFBSUpdateReturnPointListRequestFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListRequestFromJSONTyped = V1WarehouseFBSUpdateReturnPointListRequestFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListRequestToJSON = V1WarehouseFBSUpdateReturnPointListRequestToJSON; +const V1WarehouseFBSUpdateReturnPointListRequestSearch_1 = require("./V1WarehouseFBSUpdateReturnPointListRequestSearch"); +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListRequest interface. + */ +function instanceOfV1WarehouseFBSUpdateReturnPointListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseFBSUpdateReturnPointListRequestFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListRequestFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_dropoff_point_id': json['current_dropoff_point_id'] == null ? undefined : json['current_dropoff_point_id'], + 'current_return_point_id': json['current_return_point_id'] == null ? undefined : json['current_return_point_id'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'search': json['search'] == null ? undefined : (0, V1WarehouseFBSUpdateReturnPointListRequestSearch_1.V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON)(json['search']), + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseFBSUpdateReturnPointListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_dropoff_point_id': value['current_dropoff_point_id'], + 'current_return_point_id': value['current_return_point_id'], + 'last_id': value['last_id'], + 'limit': value['limit'], + 'search': (0, V1WarehouseFBSUpdateReturnPointListRequestSearch_1.V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON)(value['search']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.d.ts new file mode 100644 index 0000000..9ae2cb6 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum } from './V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum'; +/** + * Параметры поиска. + * @export + * @interface V1WarehouseFBSUpdateReturnPointListRequestSearch + */ +export interface V1WarehouseFBSUpdateReturnPointListRequestSearch { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListRequestSearch + */ + address?: string; + /** + * Тип пункта возврата: + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @type {Array} + * @memberof V1WarehouseFBSUpdateReturnPointListRequestSearch + */ + types?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListRequestSearch interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearch(value: object): value is V1WarehouseFBSUpdateReturnPointListRequestSearch; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListRequestSearch; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListRequestSearch; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON(value?: V1WarehouseFBSUpdateReturnPointListRequestSearch | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.js b/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.js new file mode 100644 index 0000000..85f92db --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearch.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearch = instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearch; +exports.V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON = V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSONTyped = V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON = V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON; +const V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum_1 = require("./V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum"); +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListRequestSearch interface. + */ +function instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearch(value) { + return true; +} +function V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListRequestSearchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'types': json['types'] == null ? undefined : (json['types'].map(V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum_1.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON)), + }; +} +function V1WarehouseFBSUpdateReturnPointListRequestSearchToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'types': value['types'] == null ? undefined : (value['types'].map(V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum_1.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..93e3df7 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.d.ts @@ -0,0 +1,25 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum: { + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum = typeof V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum[keyof typeof V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum; +export declare function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON(value?: V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.js b/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.js new file mode 100644 index 0000000..b5802c2 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum = void 0; +exports.instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum = instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum; +exports.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON = V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped = V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON = V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON; +/** + * + * @export + */ +exports.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum = { + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfV1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum(value) { + for (const key in exports.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum, key)) { + if (exports.V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponse.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListResponse.d.ts new file mode 100644 index 0000000..baec02b --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponse.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListResponseReturnPoint } from './V1WarehouseFBSUpdateReturnPointListResponseReturnPoint'; +/** + * + * @export + * @interface V1WarehouseFBSUpdateReturnPointListResponse + */ +export interface V1WarehouseFBSUpdateReturnPointListResponse { + /** + * Признак, что в ответе вернули не все пункты возврата. + * @type {boolean} + * @memberof V1WarehouseFBSUpdateReturnPointListResponse + */ + has_next?: boolean; + /** + * Признак доступности пункта возврата для выбора. + * @type {boolean} + * @memberof V1WarehouseFBSUpdateReturnPointListResponse + */ + is_selected_point_available?: boolean; + /** + * Идентификатор последнего значения на странице. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponse + */ + last_id?: number; + /** + * Список пунктов возврата. + * @type {Array} + * @memberof V1WarehouseFBSUpdateReturnPointListResponse + */ + points?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponse interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponse(value: object): value is V1WarehouseFBSUpdateReturnPointListResponse; +export declare function V1WarehouseFBSUpdateReturnPointListResponseFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponse; +export declare function V1WarehouseFBSUpdateReturnPointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponse; +export declare function V1WarehouseFBSUpdateReturnPointListResponseToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponse | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponse.js b/dist/models/V1WarehouseFBSUpdateReturnPointListResponse.js new file mode 100644 index 0000000..808da38 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSUpdateReturnPointListResponse = instanceOfV1WarehouseFBSUpdateReturnPointListResponse; +exports.V1WarehouseFBSUpdateReturnPointListResponseFromJSON = V1WarehouseFBSUpdateReturnPointListResponseFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListResponseFromJSONTyped = V1WarehouseFBSUpdateReturnPointListResponseFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListResponseToJSON = V1WarehouseFBSUpdateReturnPointListResponseToJSON; +const V1WarehouseFBSUpdateReturnPointListResponseReturnPoint_1 = require("./V1WarehouseFBSUpdateReturnPointListResponseReturnPoint"); +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponse interface. + */ +function instanceOfV1WarehouseFBSUpdateReturnPointListResponse(value) { + return true; +} +function V1WarehouseFBSUpdateReturnPointListResponseFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'is_selected_point_available': json['is_selected_point_available'] == null ? undefined : json['is_selected_point_available'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'points': json['points'] == null ? undefined : (json['points'].map(V1WarehouseFBSUpdateReturnPointListResponseReturnPoint_1.V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON)), + }; +} +function V1WarehouseFBSUpdateReturnPointListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'is_selected_point_available': value['is_selected_point_available'], + 'last_id': value['last_id'], + 'points': value['points'] == null ? undefined : (value['points'].map(V1WarehouseFBSUpdateReturnPointListResponseReturnPoint_1.V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.d.ts new file mode 100644 index 0000000..9d018db --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты пункта возврата. + * @export + * @interface V1WarehouseFBSUpdateReturnPointListResponseCoordinates + */ +export interface V1WarehouseFBSUpdateReturnPointListResponseCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseCoordinates interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseCoordinates(value: object): value is V1WarehouseFBSUpdateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseCoordinates; +export declare function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseCoordinates | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.js b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.js new file mode 100644 index 0000000..cd5a305 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSUpdateReturnPointListResponseCoordinates = instanceOfV1WarehouseFBSUpdateReturnPointListResponseCoordinates; +exports.V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON = V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSONTyped = V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON = V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON; +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseCoordinates interface. + */ +function instanceOfV1WarehouseFBSUpdateReturnPointListResponseCoordinates(value) { + return true; +} +function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.d.ts new file mode 100644 index 0000000..41a4a3c --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.d.ts @@ -0,0 +1,70 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum } from './V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum'; +import type { V1WarehouseFBSUpdateReturnPointListResponseWorkingDays } from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDays'; +import type { V1WarehouseFBSUpdateReturnPointListResponseCoordinates } from './V1WarehouseFBSUpdateReturnPointListResponseCoordinates'; +/** + * + * @export + * @interface V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ +export interface V1WarehouseFBSUpdateReturnPointListResponseReturnPoint { + /** + * Адрес пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + address?: string; + /** + * + * @type {V1WarehouseFBSUpdateReturnPointListResponseCoordinates} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + coordinates?: V1WarehouseFBSUpdateReturnPointListResponseCoordinates; + /** + * Идентификатор пункта возврата. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + id?: number; + /** + * Название пункта возврата. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + name?: string; + /** + * + * @type {V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + type?: V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum; + /** + * Смещение часового пояса от UTC-0 в минутах. + * @type {number} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + utc_offset?: number; + /** + * Рабочие дни пункта. + * @type {Array} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseReturnPoint + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseReturnPoint interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPoint(value: object): value is V1WarehouseFBSUpdateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseReturnPoint; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseReturnPoint | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.js b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.js new file mode 100644 index 0000000..c8f16dc --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPoint.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPoint = instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPoint; +exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON = V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSONTyped = V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON = V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON; +const V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum_1 = require("./V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum"); +const V1WarehouseFBSUpdateReturnPointListResponseWorkingDays_1 = require("./V1WarehouseFBSUpdateReturnPointListResponseWorkingDays"); +const V1WarehouseFBSUpdateReturnPointListResponseCoordinates_1 = require("./V1WarehouseFBSUpdateReturnPointListResponseCoordinates"); +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseReturnPoint interface. + */ +function instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPoint(value) { + return true; +} +function V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListResponseReturnPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'coordinates': json['coordinates'] == null ? undefined : (0, V1WarehouseFBSUpdateReturnPointListResponseCoordinates_1.V1WarehouseFBSUpdateReturnPointListResponseCoordinatesFromJSON)(json['coordinates']), + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'type': json['type'] == null ? undefined : (0, V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum_1.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON)(json['type']), + 'utc_offset': json['utc_offset'] == null ? undefined : json['utc_offset'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(V1WarehouseFBSUpdateReturnPointListResponseWorkingDays_1.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON)), + }; +} +function V1WarehouseFBSUpdateReturnPointListResponseReturnPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'coordinates': (0, V1WarehouseFBSUpdateReturnPointListResponseCoordinates_1.V1WarehouseFBSUpdateReturnPointListResponseCoordinatesToJSON)(value['coordinates']), + 'id': value['id'], + 'name': value['name'], + 'type': (0, V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum_1.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON)(value['type']), + 'utc_offset': value['utc_offset'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(V1WarehouseFBSUpdateReturnPointListResponseWorkingDays_1.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.d.ts new file mode 100644 index 0000000..c38889c --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +export declare const V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly PVZ: "PVZ"; + readonly PPZ: "PPZ"; + readonly SC: "SC"; +}; +export type V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum = typeof V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum[keyof typeof V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum]; +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum(value: any): boolean; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum; +export declare function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.js b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.js new file mode 100644 index 0000000..7b51e94 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum = void 0; +exports.instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum = instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum; +exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON = V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSONTyped = V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON = V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON; +/** + * Тип пункта возврата: + * - `UNSPECIFIED` — не определён; + * - `PVZ` — пункт выдачи заказов; + * - `PPZ` — пункт приёма заказов; + * - `SC` — сортировочный центр. + * + * @export + */ +exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + PVZ: 'PVZ', + PPZ: 'PPZ', + SC: 'SC' +}; +function instanceOfV1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum(value) { + for (const key in exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum, key)) { + if (exports.V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.d.ts new file mode 100644 index 0000000..22cf505 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum } from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum'; +/** + * + * @export + * @interface V1WarehouseFBSUpdateReturnPointListResponseWorkingDays + */ +export interface V1WarehouseFBSUpdateReturnPointListResponseWorkingDays { + /** + * + * @type {V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseWorkingDays + */ + day?: V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum; + /** + * Время начала. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseWorkingDays + */ + from?: string; + /** + * Время окончания. + * @type {string} + * @memberof V1WarehouseFBSUpdateReturnPointListResponseWorkingDays + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseWorkingDays interface. + */ +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDays(value: object): value is V1WarehouseFBSUpdateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseWorkingDays; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseWorkingDays | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.js b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.js new file mode 100644 index 0000000..bbfa050 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDays.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDays = instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDays; +exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON = V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSONTyped = V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON = V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON; +const V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum_1 = require("./V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum"); +/** + * Check if a given object implements the V1WarehouseFBSUpdateReturnPointListResponseWorkingDays interface. + */ +function instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDays(value) { + return true; +} +function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : (0, V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum_1.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON)(json['day']), + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': (0, V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum_1.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON)(value['day']), + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.d.ts b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.d.ts new file mode 100644 index 0000000..90bc62f --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum = typeof V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum[keyof typeof V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum]; +export declare function instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum(value: any): boolean; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON(json: any): V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum; +export declare function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON(value?: V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum | null): any; diff --git a/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.js b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.js new file mode 100644 index 0000000..c87d550 --- /dev/null +++ b/dist/models/V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum = void 0; +exports.instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum = instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum; +exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON = V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON; +exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped = V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped; +exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON = V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON; +/** + * Дни недели: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfV1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum(value) { + for (const key in exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum, key)) { + if (exports.V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSON(json) { + return V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json, false); +} +function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFboSellerListResponse.d.ts b/dist/models/V1WarehouseFboSellerListResponse.d.ts new file mode 100644 index 0000000..da55013 --- /dev/null +++ b/dist/models/V1WarehouseFboSellerListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFboSellerListResponseWarehouse } from './V1WarehouseFboSellerListResponseWarehouse'; +/** + * + * @export + * @interface V1WarehouseFboSellerListResponse + */ +export interface V1WarehouseFboSellerListResponse { + /** + * Список складов продавца. + * @type {Array} + * @memberof V1WarehouseFboSellerListResponse + */ + warehouses?: Array; +} +/** + * Check if a given object implements the V1WarehouseFboSellerListResponse interface. + */ +export declare function instanceOfV1WarehouseFboSellerListResponse(value: object): value is V1WarehouseFboSellerListResponse; +export declare function V1WarehouseFboSellerListResponseFromJSON(json: any): V1WarehouseFboSellerListResponse; +export declare function V1WarehouseFboSellerListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFboSellerListResponse; +export declare function V1WarehouseFboSellerListResponseToJSON(value?: V1WarehouseFboSellerListResponse | null): any; diff --git a/dist/models/V1WarehouseFboSellerListResponse.js b/dist/models/V1WarehouseFboSellerListResponse.js new file mode 100644 index 0000000..d3e38ee --- /dev/null +++ b/dist/models/V1WarehouseFboSellerListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFboSellerListResponse = instanceOfV1WarehouseFboSellerListResponse; +exports.V1WarehouseFboSellerListResponseFromJSON = V1WarehouseFboSellerListResponseFromJSON; +exports.V1WarehouseFboSellerListResponseFromJSONTyped = V1WarehouseFboSellerListResponseFromJSONTyped; +exports.V1WarehouseFboSellerListResponseToJSON = V1WarehouseFboSellerListResponseToJSON; +const V1WarehouseFboSellerListResponseWarehouse_1 = require("./V1WarehouseFboSellerListResponseWarehouse"); +/** + * Check if a given object implements the V1WarehouseFboSellerListResponse interface. + */ +function instanceOfV1WarehouseFboSellerListResponse(value) { + return true; +} +function V1WarehouseFboSellerListResponseFromJSON(json) { + return V1WarehouseFboSellerListResponseFromJSONTyped(json, false); +} +function V1WarehouseFboSellerListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(V1WarehouseFboSellerListResponseWarehouse_1.V1WarehouseFboSellerListResponseWarehouseFromJSON)), + }; +} +function V1WarehouseFboSellerListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(V1WarehouseFboSellerListResponseWarehouse_1.V1WarehouseFboSellerListResponseWarehouseToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFboSellerListResponseWarehouse.d.ts b/dist/models/V1WarehouseFboSellerListResponseWarehouse.d.ts new file mode 100644 index 0000000..9452384 --- /dev/null +++ b/dist/models/V1WarehouseFboSellerListResponseWarehouse.d.ts @@ -0,0 +1,78 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseAddress } from './WarehouseAddress'; +import type { WarehouseContacts } from './WarehouseContacts'; +import type { WarehouseWorkingDay } from './WarehouseWorkingDay'; +/** + * + * @export + * @interface V1WarehouseFboSellerListResponseWarehouse + */ +export interface V1WarehouseFboSellerListResponseWarehouse { + /** + * + * @type {WarehouseAddress} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + address?: WarehouseAddress; + /** + * + * @type {WarehouseContacts} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + contacts?: WarehouseContacts; + /** + * Комментарий для курьера. + * @type {string} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + courier_comment?: string; + /** + * `true`, если склад активный. + * + * @type {boolean} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + is_active?: boolean; + /** + * `true`, если доступна отгрузка курьером. + * + * @type {boolean} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + is_pickup?: boolean; + /** + * Идентификатор склада продавца. + * @type {number} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + seller_warehouse_id?: number; + /** + * Название склада продавца. + * @type {string} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + seller_warehouse_name?: string; + /** + * Рабочие дни склада продавца. + * @type {Array} + * @memberof V1WarehouseFboSellerListResponseWarehouse + */ + working_days?: Array; +} +/** + * Check if a given object implements the V1WarehouseFboSellerListResponseWarehouse interface. + */ +export declare function instanceOfV1WarehouseFboSellerListResponseWarehouse(value: object): value is V1WarehouseFboSellerListResponseWarehouse; +export declare function V1WarehouseFboSellerListResponseWarehouseFromJSON(json: any): V1WarehouseFboSellerListResponseWarehouse; +export declare function V1WarehouseFboSellerListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFboSellerListResponseWarehouse; +export declare function V1WarehouseFboSellerListResponseWarehouseToJSON(value?: V1WarehouseFboSellerListResponseWarehouse | null): any; diff --git a/dist/models/V1WarehouseFboSellerListResponseWarehouse.js b/dist/models/V1WarehouseFboSellerListResponseWarehouse.js new file mode 100644 index 0000000..e48575b --- /dev/null +++ b/dist/models/V1WarehouseFboSellerListResponseWarehouse.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFboSellerListResponseWarehouse = instanceOfV1WarehouseFboSellerListResponseWarehouse; +exports.V1WarehouseFboSellerListResponseWarehouseFromJSON = V1WarehouseFboSellerListResponseWarehouseFromJSON; +exports.V1WarehouseFboSellerListResponseWarehouseFromJSONTyped = V1WarehouseFboSellerListResponseWarehouseFromJSONTyped; +exports.V1WarehouseFboSellerListResponseWarehouseToJSON = V1WarehouseFboSellerListResponseWarehouseToJSON; +const WarehouseAddress_1 = require("./WarehouseAddress"); +const WarehouseContacts_1 = require("./WarehouseContacts"); +const WarehouseWorkingDay_1 = require("./WarehouseWorkingDay"); +/** + * Check if a given object implements the V1WarehouseFboSellerListResponseWarehouse interface. + */ +function instanceOfV1WarehouseFboSellerListResponseWarehouse(value) { + return true; +} +function V1WarehouseFboSellerListResponseWarehouseFromJSON(json) { + return V1WarehouseFboSellerListResponseWarehouseFromJSONTyped(json, false); +} +function V1WarehouseFboSellerListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : (0, WarehouseAddress_1.WarehouseAddressFromJSON)(json['address']), + 'contacts': json['contacts'] == null ? undefined : (0, WarehouseContacts_1.WarehouseContactsFromJSON)(json['contacts']), + 'courier_comment': json['courier_comment'] == null ? undefined : json['courier_comment'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'is_pickup': json['is_pickup'] == null ? undefined : json['is_pickup'], + 'seller_warehouse_id': json['seller_warehouse_id'] == null ? undefined : json['seller_warehouse_id'], + 'seller_warehouse_name': json['seller_warehouse_name'] == null ? undefined : json['seller_warehouse_name'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(WarehouseWorkingDay_1.WarehouseWorkingDayFromJSON)), + }; +} +function V1WarehouseFboSellerListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': (0, WarehouseAddress_1.WarehouseAddressToJSON)(value['address']), + 'contacts': (0, WarehouseContacts_1.WarehouseContactsToJSON)(value['contacts']), + 'courier_comment': value['courier_comment'], + 'is_active': value['is_active'], + 'is_pickup': value['is_pickup'], + 'seller_warehouse_id': value['seller_warehouse_id'], + 'seller_warehouse_name': value['seller_warehouse_name'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(WarehouseWorkingDay_1.WarehouseWorkingDayToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.d.ts b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.d.ts new file mode 100644 index 0000000..4089701 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsCreateDropOffTimeslotListRequest + */ +export interface V1WarehouseFbsCreateDropOffTimeslotListRequest { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListRequest + */ + drop_off_point_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsCreateDropOffTimeslotListRequest(value: object): value is V1WarehouseFbsCreateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSON(json: any): V1WarehouseFbsCreateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON(value?: V1WarehouseFbsCreateDropOffTimeslotListRequest | null): any; diff --git a/dist/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.js b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.js new file mode 100644 index 0000000..6c627ea --- /dev/null +++ b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsCreateDropOffTimeslotListRequest = instanceOfV1WarehouseFbsCreateDropOffTimeslotListRequest; +exports.V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSON = V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSON; +exports.V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSONTyped = V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSONTyped; +exports.V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON = V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON; +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListRequest interface. + */ +function instanceOfV1WarehouseFbsCreateDropOffTimeslotListRequest(value) { + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + return true; +} +function V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSON(json) { + return V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSONTyped(json, false); +} +function V1WarehouseFbsCreateDropOffTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_point_id': json['drop_off_point_id'], + }; +} +function V1WarehouseFbsCreateDropOffTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_point_id': value['drop_off_point_id'], + }; +} diff --git a/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.d.ts b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.d.ts new file mode 100644 index 0000000..0e43125 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot } from './V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot'; +/** + * + * @export + * @interface V1WarehouseFbsCreateDropOffTimeslotListResponse + */ +export interface V1WarehouseFbsCreateDropOffTimeslotListResponse { + /** + * Список таймслотов. + * @type {Array} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponse + */ + timeslots?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponse(value: object): value is V1WarehouseFbsCreateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON(json: any): V1WarehouseFbsCreateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseToJSON(value?: V1WarehouseFbsCreateDropOffTimeslotListResponse | null): any; diff --git a/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.js b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.js new file mode 100644 index 0000000..59b0a30 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponse = instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponse; +exports.V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON = V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON; +exports.V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSONTyped = V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSONTyped; +exports.V1WarehouseFbsCreateDropOffTimeslotListResponseToJSON = V1WarehouseFbsCreateDropOffTimeslotListResponseToJSON; +const V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot_1 = require("./V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot"); +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListResponse interface. + */ +function instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponse(value) { + return true; +} +function V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSON(json) { + return V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSONTyped(json, false); +} +function V1WarehouseFbsCreateDropOffTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot_1.V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON)), + }; +} +function V1WarehouseFbsCreateDropOffTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot_1.V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.d.ts b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.d.ts new file mode 100644 index 0000000..e43c496 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ +export interface V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot { + /** + * Местное время окончания приёма заказа. + * @type {string} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + acceptance_end_time_local?: string; + /** + * Местное время начала приёма заказа. + * @type {string} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + acceptance_start_time_local?: string; + /** + * Время начала таймслота. + * @type {string} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot interface. + */ +export declare function instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot(value: object): value is V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON(json: any): V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON(value?: V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot | null): any; diff --git a/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.js b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.js new file mode 100644 index 0000000..8123b98 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot = instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot; +exports.V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON = V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON; +exports.V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSONTyped = V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSONTyped; +exports.V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON = V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON; +/** + * Check if a given object implements the V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot interface. + */ +function instanceOfV1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot(value) { + return true; +} +function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSON(json) { + return V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSONTyped(json, false); +} +function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'acceptance_end_time_local': json['acceptance_end_time_local'] == null ? undefined : json['acceptance_end_time_local'], + 'acceptance_start_time_local': json['acceptance_start_time_local'] == null ? undefined : json['acceptance_start_time_local'], + 'from': json['from'] == null ? undefined : json['from'], + 'id': json['id'] == null ? undefined : json['id'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'acceptance_end_time_local': value['acceptance_end_time_local'], + 'acceptance_start_time_local': value['acceptance_start_time_local'], + 'from': value['from'], + 'id': value['id'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.d.ts b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.d.ts new file mode 100644 index 0000000..cd6a372 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates } from './V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates'; +/** + * + * @export + * @interface V1WarehouseFbsCreatePickUpTimeslotListRequest + */ +export interface V1WarehouseFbsCreatePickUpTimeslotListRequest { + /** + * + * @type {V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListRequest + */ + address_coordinates: V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; + /** + * Признак крупногабаритного товара. + * @type {boolean} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListRequest + */ + is_kgt: boolean; +} +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequest(value: object): value is V1WarehouseFbsCreatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSON(json: any): V1WarehouseFbsCreatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON(value?: V1WarehouseFbsCreatePickUpTimeslotListRequest | null): any; diff --git a/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.js b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.js new file mode 100644 index 0000000..f024ede --- /dev/null +++ b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequest = instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequest; +exports.V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSON = V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSON; +exports.V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSONTyped = V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSONTyped; +exports.V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON = V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON; +const V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates_1 = require("./V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates"); +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListRequest interface. + */ +function instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequest(value) { + if (!('address_coordinates' in value) || value['address_coordinates'] === undefined) + return false; + if (!('is_kgt' in value) || value['is_kgt'] === undefined) + return false; + return true; +} +function V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSON(json) { + return V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSONTyped(json, false); +} +function V1WarehouseFbsCreatePickUpTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_coordinates': (0, V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates_1.V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON)(json['address_coordinates']), + 'is_kgt': json['is_kgt'], + }; +} +function V1WarehouseFbsCreatePickUpTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_coordinates': (0, V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates_1.V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON)(value['address_coordinates']), + 'is_kgt': value['is_kgt'], + }; +} diff --git a/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.d.ts b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.d.ts new file mode 100644 index 0000000..7d65aa8 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты склада. + * @export + * @interface V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates + */ +export interface V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates + */ + latitude: number; + /** + * Долгота. + * @type {number} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates + */ + longitude: number; +} +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates interface. + */ +export declare function instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates(value: object): value is V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON(json: any): V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; +export declare function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON(value?: V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates | null): any; diff --git a/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.js b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.js new file mode 100644 index 0000000..39454b8 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates = instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates; +exports.V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON = V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON; +exports.V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSONTyped = V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSONTyped; +exports.V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON = V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON; +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates interface. + */ +function instanceOfV1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates(value) { + if (!('latitude' in value) || value['latitude'] === undefined) + return false; + if (!('longitude' in value) || value['longitude'] === undefined) + return false; + return true; +} +function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSON(json) { + return V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSONTyped(json, false); +} +function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'], + 'longitude': json['longitude'], + }; +} +function V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.d.ts b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.d.ts new file mode 100644 index 0000000..49c8520 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot } from './V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot'; +/** + * + * @export + * @interface V1WarehouseFbsCreatePickUpTimeslotListResponse + */ +export interface V1WarehouseFbsCreatePickUpTimeslotListResponse { + /** + * Признак поддержки отгрузки pick-up. + * @type {boolean} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponse + */ + is_pickup_supported?: boolean; + /** + * Список таймслотов. + * @type {Array} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponse + */ + timeslots?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponse(value: object): value is V1WarehouseFbsCreatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON(json: any): V1WarehouseFbsCreatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseToJSON(value?: V1WarehouseFbsCreatePickUpTimeslotListResponse | null): any; diff --git a/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.js b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.js new file mode 100644 index 0000000..c31a415 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponse = instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponse; +exports.V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON = V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON; +exports.V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSONTyped = V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSONTyped; +exports.V1WarehouseFbsCreatePickUpTimeslotListResponseToJSON = V1WarehouseFbsCreatePickUpTimeslotListResponseToJSON; +const V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot_1 = require("./V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot"); +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListResponse interface. + */ +function instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponse(value) { + return true; +} +function V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSON(json) { + return V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSONTyped(json, false); +} +function V1WarehouseFbsCreatePickUpTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_pickup_supported': json['is_pickup_supported'] == null ? undefined : json['is_pickup_supported'], + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot_1.V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON)), + }; +} +function V1WarehouseFbsCreatePickUpTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_pickup_supported': value['is_pickup_supported'], + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot_1.V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.d.ts b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.d.ts new file mode 100644 index 0000000..0f55c6d --- /dev/null +++ b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot + */ +export interface V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot { + /** + * Время начала таймслота. + * @type {string} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot + */ + from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot + */ + id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot interface. + */ +export declare function instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot(value: object): value is V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON(json: any): V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON(value?: V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot | null): any; diff --git a/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.js b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.js new file mode 100644 index 0000000..0a68d52 --- /dev/null +++ b/dist/models/V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot = instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot; +exports.V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON = V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON; +exports.V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSONTyped = V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSONTyped; +exports.V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON = V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON; +/** + * Check if a given object implements the V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot interface. + */ +function instanceOfV1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot(value) { + return true; +} +function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSON(json) { + return V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSONTyped(json, false); +} +function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'id': json['id'] == null ? undefined : json['id'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'id': value['id'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseFbsPickUpCourierCancelRequest.d.ts b/dist/models/V1WarehouseFbsPickUpCourierCancelRequest.d.ts new file mode 100644 index 0000000..99b85d2 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpCourierCancelRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsPickUpCourierCancelRequest + */ +export interface V1WarehouseFbsPickUpCourierCancelRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFbsPickUpCourierCancelRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpCourierCancelRequest interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpCourierCancelRequest(value: object): value is V1WarehouseFbsPickUpCourierCancelRequest; +export declare function V1WarehouseFbsPickUpCourierCancelRequestFromJSON(json: any): V1WarehouseFbsPickUpCourierCancelRequest; +export declare function V1WarehouseFbsPickUpCourierCancelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpCourierCancelRequest; +export declare function V1WarehouseFbsPickUpCourierCancelRequestToJSON(value?: V1WarehouseFbsPickUpCourierCancelRequest | null): any; diff --git a/dist/models/V1WarehouseFbsPickUpCourierCancelRequest.js b/dist/models/V1WarehouseFbsPickUpCourierCancelRequest.js new file mode 100644 index 0000000..f363aeb --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpCourierCancelRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsPickUpCourierCancelRequest = instanceOfV1WarehouseFbsPickUpCourierCancelRequest; +exports.V1WarehouseFbsPickUpCourierCancelRequestFromJSON = V1WarehouseFbsPickUpCourierCancelRequestFromJSON; +exports.V1WarehouseFbsPickUpCourierCancelRequestFromJSONTyped = V1WarehouseFbsPickUpCourierCancelRequestFromJSONTyped; +exports.V1WarehouseFbsPickUpCourierCancelRequestToJSON = V1WarehouseFbsPickUpCourierCancelRequestToJSON; +/** + * Check if a given object implements the V1WarehouseFbsPickUpCourierCancelRequest interface. + */ +function instanceOfV1WarehouseFbsPickUpCourierCancelRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseFbsPickUpCourierCancelRequestFromJSON(json) { + return V1WarehouseFbsPickUpCourierCancelRequestFromJSONTyped(json, false); +} +function V1WarehouseFbsPickUpCourierCancelRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseFbsPickUpCourierCancelRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseFbsPickUpCourierCreateRequest.d.ts b/dist/models/V1WarehouseFbsPickUpCourierCreateRequest.d.ts new file mode 100644 index 0000000..d65ac09 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpCourierCreateRequest.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsPickUpCourierCreateRequest + */ +export interface V1WarehouseFbsPickUpCourierCreateRequest { + /** + * Идентификатор склада. + * + * Чтобы получить список складов для планирования выездов, используйте [/v1/warehouse/fbs/pickup/planning/list](#operation/WarehouseFbsPickUpPlanningList). + * + * @type {number} + * @memberof V1WarehouseFbsPickUpCourierCreateRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpCourierCreateRequest interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpCourierCreateRequest(value: object): value is V1WarehouseFbsPickUpCourierCreateRequest; +export declare function V1WarehouseFbsPickUpCourierCreateRequestFromJSON(json: any): V1WarehouseFbsPickUpCourierCreateRequest; +export declare function V1WarehouseFbsPickUpCourierCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpCourierCreateRequest; +export declare function V1WarehouseFbsPickUpCourierCreateRequestToJSON(value?: V1WarehouseFbsPickUpCourierCreateRequest | null): any; diff --git a/dist/models/V1WarehouseFbsPickUpCourierCreateRequest.js b/dist/models/V1WarehouseFbsPickUpCourierCreateRequest.js new file mode 100644 index 0000000..3080796 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpCourierCreateRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsPickUpCourierCreateRequest = instanceOfV1WarehouseFbsPickUpCourierCreateRequest; +exports.V1WarehouseFbsPickUpCourierCreateRequestFromJSON = V1WarehouseFbsPickUpCourierCreateRequestFromJSON; +exports.V1WarehouseFbsPickUpCourierCreateRequestFromJSONTyped = V1WarehouseFbsPickUpCourierCreateRequestFromJSONTyped; +exports.V1WarehouseFbsPickUpCourierCreateRequestToJSON = V1WarehouseFbsPickUpCourierCreateRequestToJSON; +/** + * Check if a given object implements the V1WarehouseFbsPickUpCourierCreateRequest interface. + */ +function instanceOfV1WarehouseFbsPickUpCourierCreateRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseFbsPickUpCourierCreateRequestFromJSON(json) { + return V1WarehouseFbsPickUpCourierCreateRequestFromJSONTyped(json, false); +} +function V1WarehouseFbsPickUpCourierCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseFbsPickUpCourierCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseFbsPickUpHistoryListRequest.d.ts b/dist/models/V1WarehouseFbsPickUpHistoryListRequest.d.ts new file mode 100644 index 0000000..7f14703 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpHistoryListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsPickUpHistoryListRequestFilter } from './V1WarehouseFbsPickUpHistoryListRequestFilter'; +/** + * + * @export + * @interface V1WarehouseFbsPickUpHistoryListRequest + */ +export interface V1WarehouseFbsPickUpHistoryListRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1WarehouseFbsPickUpHistoryListRequest + */ + cursor?: string; + /** + * + * @type {V1WarehouseFbsPickUpHistoryListRequestFilter} + * @memberof V1WarehouseFbsPickUpHistoryListRequest + */ + filter?: V1WarehouseFbsPickUpHistoryListRequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V1WarehouseFbsPickUpHistoryListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpHistoryListRequest(value: object): value is V1WarehouseFbsPickUpHistoryListRequest; +export declare function V1WarehouseFbsPickUpHistoryListRequestFromJSON(json: any): V1WarehouseFbsPickUpHistoryListRequest; +export declare function V1WarehouseFbsPickUpHistoryListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpHistoryListRequest; +export declare function V1WarehouseFbsPickUpHistoryListRequestToJSON(value?: V1WarehouseFbsPickUpHistoryListRequest | null): any; diff --git a/dist/models/V1WarehouseFbsPickUpHistoryListRequest.js b/dist/models/V1WarehouseFbsPickUpHistoryListRequest.js new file mode 100644 index 0000000..083bb3b --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpHistoryListRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsPickUpHistoryListRequest = instanceOfV1WarehouseFbsPickUpHistoryListRequest; +exports.V1WarehouseFbsPickUpHistoryListRequestFromJSON = V1WarehouseFbsPickUpHistoryListRequestFromJSON; +exports.V1WarehouseFbsPickUpHistoryListRequestFromJSONTyped = V1WarehouseFbsPickUpHistoryListRequestFromJSONTyped; +exports.V1WarehouseFbsPickUpHistoryListRequestToJSON = V1WarehouseFbsPickUpHistoryListRequestToJSON; +const V1WarehouseFbsPickUpHistoryListRequestFilter_1 = require("./V1WarehouseFbsPickUpHistoryListRequestFilter"); +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListRequest interface. + */ +function instanceOfV1WarehouseFbsPickUpHistoryListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1WarehouseFbsPickUpHistoryListRequestFromJSON(json) { + return V1WarehouseFbsPickUpHistoryListRequestFromJSONTyped(json, false); +} +function V1WarehouseFbsPickUpHistoryListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, V1WarehouseFbsPickUpHistoryListRequestFilter_1.V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function V1WarehouseFbsPickUpHistoryListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, V1WarehouseFbsPickUpHistoryListRequestFilter_1.V1WarehouseFbsPickUpHistoryListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/V1WarehouseFbsPickUpHistoryListRequestFilter.d.ts b/dist/models/V1WarehouseFbsPickUpHistoryListRequestFilter.d.ts new file mode 100644 index 0000000..28e9704 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpHistoryListRequestFilter.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V1WarehouseFbsPickUpHistoryListRequestFilter + */ +export interface V1WarehouseFbsPickUpHistoryListRequestFilter { + /** + * Дата отгрузки. + * @type {string} + * @memberof V1WarehouseFbsPickUpHistoryListRequestFilter + */ + planned_date?: string; + /** + * Идентификаторы складов. + * @type {Array} + * @memberof V1WarehouseFbsPickUpHistoryListRequestFilter + */ + warehouse_id?: Array; + /** + * `true`, если отгрузка запланирована. + * + * @type {boolean} + * @memberof V1WarehouseFbsPickUpHistoryListRequestFilter + */ + was_planned?: boolean; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListRequestFilter interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpHistoryListRequestFilter(value: object): value is V1WarehouseFbsPickUpHistoryListRequestFilter; +export declare function V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON(json: any): V1WarehouseFbsPickUpHistoryListRequestFilter; +export declare function V1WarehouseFbsPickUpHistoryListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpHistoryListRequestFilter; +export declare function V1WarehouseFbsPickUpHistoryListRequestFilterToJSON(value?: V1WarehouseFbsPickUpHistoryListRequestFilter | null): any; diff --git a/dist/models/V1WarehouseFbsPickUpHistoryListRequestFilter.js b/dist/models/V1WarehouseFbsPickUpHistoryListRequestFilter.js new file mode 100644 index 0000000..315615f --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpHistoryListRequestFilter.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsPickUpHistoryListRequestFilter = instanceOfV1WarehouseFbsPickUpHistoryListRequestFilter; +exports.V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON = V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON; +exports.V1WarehouseFbsPickUpHistoryListRequestFilterFromJSONTyped = V1WarehouseFbsPickUpHistoryListRequestFilterFromJSONTyped; +exports.V1WarehouseFbsPickUpHistoryListRequestFilterToJSON = V1WarehouseFbsPickUpHistoryListRequestFilterToJSON; +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListRequestFilter interface. + */ +function instanceOfV1WarehouseFbsPickUpHistoryListRequestFilter(value) { + return true; +} +function V1WarehouseFbsPickUpHistoryListRequestFilterFromJSON(json) { + return V1WarehouseFbsPickUpHistoryListRequestFilterFromJSONTyped(json, false); +} +function V1WarehouseFbsPickUpHistoryListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'planned_date': json['planned_date'] == null ? undefined : json['planned_date'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'was_planned': json['was_planned'] == null ? undefined : json['was_planned'], + }; +} +function V1WarehouseFbsPickUpHistoryListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'planned_date': value['planned_date'], + 'warehouse_id': value['warehouse_id'], + 'was_planned': value['was_planned'], + }; +} diff --git a/dist/models/V1WarehouseFbsPickUpHistoryListResponse.d.ts b/dist/models/V1WarehouseFbsPickUpHistoryListResponse.d.ts new file mode 100644 index 0000000..f7e1f69 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpHistoryListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsPickUpHistoryListResponseResult } from './V1WarehouseFbsPickUpHistoryListResponseResult'; +/** + * + * @export + * @interface V1WarehouseFbsPickUpHistoryListResponse + */ +export interface V1WarehouseFbsPickUpHistoryListResponse { + /** + * + * @type {V1WarehouseFbsPickUpHistoryListResponseResult} + * @memberof V1WarehouseFbsPickUpHistoryListResponse + */ + result?: V1WarehouseFbsPickUpHistoryListResponseResult; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpHistoryListResponse(value: object): value is V1WarehouseFbsPickUpHistoryListResponse; +export declare function V1WarehouseFbsPickUpHistoryListResponseFromJSON(json: any): V1WarehouseFbsPickUpHistoryListResponse; +export declare function V1WarehouseFbsPickUpHistoryListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpHistoryListResponse; +export declare function V1WarehouseFbsPickUpHistoryListResponseToJSON(value?: V1WarehouseFbsPickUpHistoryListResponse | null): any; diff --git a/dist/models/V1WarehouseFbsPickUpHistoryListResponse.js b/dist/models/V1WarehouseFbsPickUpHistoryListResponse.js new file mode 100644 index 0000000..081f2a2 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpHistoryListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsPickUpHistoryListResponse = instanceOfV1WarehouseFbsPickUpHistoryListResponse; +exports.V1WarehouseFbsPickUpHistoryListResponseFromJSON = V1WarehouseFbsPickUpHistoryListResponseFromJSON; +exports.V1WarehouseFbsPickUpHistoryListResponseFromJSONTyped = V1WarehouseFbsPickUpHistoryListResponseFromJSONTyped; +exports.V1WarehouseFbsPickUpHistoryListResponseToJSON = V1WarehouseFbsPickUpHistoryListResponseToJSON; +const V1WarehouseFbsPickUpHistoryListResponseResult_1 = require("./V1WarehouseFbsPickUpHistoryListResponseResult"); +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListResponse interface. + */ +function instanceOfV1WarehouseFbsPickUpHistoryListResponse(value) { + return true; +} +function V1WarehouseFbsPickUpHistoryListResponseFromJSON(json) { + return V1WarehouseFbsPickUpHistoryListResponseFromJSONTyped(json, false); +} +function V1WarehouseFbsPickUpHistoryListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1WarehouseFbsPickUpHistoryListResponseResult_1.V1WarehouseFbsPickUpHistoryListResponseResultFromJSON)(json['result']), + }; +} +function V1WarehouseFbsPickUpHistoryListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1WarehouseFbsPickUpHistoryListResponseResult_1.V1WarehouseFbsPickUpHistoryListResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1WarehouseFbsPickUpHistoryListResponseResult.d.ts b/dist/models/V1WarehouseFbsPickUpHistoryListResponseResult.d.ts new file mode 100644 index 0000000..8a92231 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpHistoryListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseFbsPickUpHistoryListResponseHistoryEntity } from './WarehouseFbsPickUpHistoryListResponseHistoryEntity'; +/** + * Результат метода. + * @export + * @interface V1WarehouseFbsPickUpHistoryListResponseResult + */ +export interface V1WarehouseFbsPickUpHistoryListResponseResult { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V1WarehouseFbsPickUpHistoryListResponseResult + */ + cursor?: string; + /** + * История отгрузок. + * @type {Array} + * @memberof V1WarehouseFbsPickUpHistoryListResponseResult + */ + history?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListResponseResult interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpHistoryListResponseResult(value: object): value is V1WarehouseFbsPickUpHistoryListResponseResult; +export declare function V1WarehouseFbsPickUpHistoryListResponseResultFromJSON(json: any): V1WarehouseFbsPickUpHistoryListResponseResult; +export declare function V1WarehouseFbsPickUpHistoryListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpHistoryListResponseResult; +export declare function V1WarehouseFbsPickUpHistoryListResponseResultToJSON(value?: V1WarehouseFbsPickUpHistoryListResponseResult | null): any; diff --git a/dist/models/V1WarehouseFbsPickUpHistoryListResponseResult.js b/dist/models/V1WarehouseFbsPickUpHistoryListResponseResult.js new file mode 100644 index 0000000..87e84ed --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpHistoryListResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsPickUpHistoryListResponseResult = instanceOfV1WarehouseFbsPickUpHistoryListResponseResult; +exports.V1WarehouseFbsPickUpHistoryListResponseResultFromJSON = V1WarehouseFbsPickUpHistoryListResponseResultFromJSON; +exports.V1WarehouseFbsPickUpHistoryListResponseResultFromJSONTyped = V1WarehouseFbsPickUpHistoryListResponseResultFromJSONTyped; +exports.V1WarehouseFbsPickUpHistoryListResponseResultToJSON = V1WarehouseFbsPickUpHistoryListResponseResultToJSON; +const WarehouseFbsPickUpHistoryListResponseHistoryEntity_1 = require("./WarehouseFbsPickUpHistoryListResponseHistoryEntity"); +/** + * Check if a given object implements the V1WarehouseFbsPickUpHistoryListResponseResult interface. + */ +function instanceOfV1WarehouseFbsPickUpHistoryListResponseResult(value) { + return true; +} +function V1WarehouseFbsPickUpHistoryListResponseResultFromJSON(json) { + return V1WarehouseFbsPickUpHistoryListResponseResultFromJSONTyped(json, false); +} +function V1WarehouseFbsPickUpHistoryListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'history': json['history'] == null ? undefined : (json['history'].map(WarehouseFbsPickUpHistoryListResponseHistoryEntity_1.WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON)), + }; +} +function V1WarehouseFbsPickUpHistoryListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'history': value['history'] == null ? undefined : (value['history'].map(WarehouseFbsPickUpHistoryListResponseHistoryEntity_1.WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFbsPickUpPlanningListResponse.d.ts b/dist/models/V1WarehouseFbsPickUpPlanningListResponse.d.ts new file mode 100644 index 0000000..82eabde --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpPlanningListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsPickUpPlanningListResponseResult } from './V1WarehouseFbsPickUpPlanningListResponseResult'; +/** + * + * @export + * @interface V1WarehouseFbsPickUpPlanningListResponse + */ +export interface V1WarehouseFbsPickUpPlanningListResponse { + /** + * + * @type {V1WarehouseFbsPickUpPlanningListResponseResult} + * @memberof V1WarehouseFbsPickUpPlanningListResponse + */ + result?: V1WarehouseFbsPickUpPlanningListResponseResult; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpPlanningListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpPlanningListResponse(value: object): value is V1WarehouseFbsPickUpPlanningListResponse; +export declare function V1WarehouseFbsPickUpPlanningListResponseFromJSON(json: any): V1WarehouseFbsPickUpPlanningListResponse; +export declare function V1WarehouseFbsPickUpPlanningListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpPlanningListResponse; +export declare function V1WarehouseFbsPickUpPlanningListResponseToJSON(value?: V1WarehouseFbsPickUpPlanningListResponse | null): any; diff --git a/dist/models/V1WarehouseFbsPickUpPlanningListResponse.js b/dist/models/V1WarehouseFbsPickUpPlanningListResponse.js new file mode 100644 index 0000000..4108901 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpPlanningListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsPickUpPlanningListResponse = instanceOfV1WarehouseFbsPickUpPlanningListResponse; +exports.V1WarehouseFbsPickUpPlanningListResponseFromJSON = V1WarehouseFbsPickUpPlanningListResponseFromJSON; +exports.V1WarehouseFbsPickUpPlanningListResponseFromJSONTyped = V1WarehouseFbsPickUpPlanningListResponseFromJSONTyped; +exports.V1WarehouseFbsPickUpPlanningListResponseToJSON = V1WarehouseFbsPickUpPlanningListResponseToJSON; +const V1WarehouseFbsPickUpPlanningListResponseResult_1 = require("./V1WarehouseFbsPickUpPlanningListResponseResult"); +/** + * Check if a given object implements the V1WarehouseFbsPickUpPlanningListResponse interface. + */ +function instanceOfV1WarehouseFbsPickUpPlanningListResponse(value) { + return true; +} +function V1WarehouseFbsPickUpPlanningListResponseFromJSON(json) { + return V1WarehouseFbsPickUpPlanningListResponseFromJSONTyped(json, false); +} +function V1WarehouseFbsPickUpPlanningListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V1WarehouseFbsPickUpPlanningListResponseResult_1.V1WarehouseFbsPickUpPlanningListResponseResultFromJSON)(json['result']), + }; +} +function V1WarehouseFbsPickUpPlanningListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V1WarehouseFbsPickUpPlanningListResponseResult_1.V1WarehouseFbsPickUpPlanningListResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V1WarehouseFbsPickUpPlanningListResponseResult.d.ts b/dist/models/V1WarehouseFbsPickUpPlanningListResponseResult.d.ts new file mode 100644 index 0000000..d036e6a --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpPlanningListResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseFbsPickUpPlanningListResponseResultWarehouse } from './WarehouseFbsPickUpPlanningListResponseResultWarehouse'; +/** + * Список складов. + * @export + * @interface V1WarehouseFbsPickUpPlanningListResponseResult + */ +export interface V1WarehouseFbsPickUpPlanningListResponseResult { + /** + * Информация о складах. + * @type {Array} + * @memberof V1WarehouseFbsPickUpPlanningListResponseResult + */ + warehouses?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsPickUpPlanningListResponseResult interface. + */ +export declare function instanceOfV1WarehouseFbsPickUpPlanningListResponseResult(value: object): value is V1WarehouseFbsPickUpPlanningListResponseResult; +export declare function V1WarehouseFbsPickUpPlanningListResponseResultFromJSON(json: any): V1WarehouseFbsPickUpPlanningListResponseResult; +export declare function V1WarehouseFbsPickUpPlanningListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsPickUpPlanningListResponseResult; +export declare function V1WarehouseFbsPickUpPlanningListResponseResultToJSON(value?: V1WarehouseFbsPickUpPlanningListResponseResult | null): any; diff --git a/dist/models/V1WarehouseFbsPickUpPlanningListResponseResult.js b/dist/models/V1WarehouseFbsPickUpPlanningListResponseResult.js new file mode 100644 index 0000000..d983999 --- /dev/null +++ b/dist/models/V1WarehouseFbsPickUpPlanningListResponseResult.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsPickUpPlanningListResponseResult = instanceOfV1WarehouseFbsPickUpPlanningListResponseResult; +exports.V1WarehouseFbsPickUpPlanningListResponseResultFromJSON = V1WarehouseFbsPickUpPlanningListResponseResultFromJSON; +exports.V1WarehouseFbsPickUpPlanningListResponseResultFromJSONTyped = V1WarehouseFbsPickUpPlanningListResponseResultFromJSONTyped; +exports.V1WarehouseFbsPickUpPlanningListResponseResultToJSON = V1WarehouseFbsPickUpPlanningListResponseResultToJSON; +const WarehouseFbsPickUpPlanningListResponseResultWarehouse_1 = require("./WarehouseFbsPickUpPlanningListResponseResultWarehouse"); +/** + * Check if a given object implements the V1WarehouseFbsPickUpPlanningListResponseResult interface. + */ +function instanceOfV1WarehouseFbsPickUpPlanningListResponseResult(value) { + return true; +} +function V1WarehouseFbsPickUpPlanningListResponseResultFromJSON(json) { + return V1WarehouseFbsPickUpPlanningListResponseResultFromJSONTyped(json, false); +} +function V1WarehouseFbsPickUpPlanningListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(WarehouseFbsPickUpPlanningListResponseResultWarehouse_1.WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON)), + }; +} +function V1WarehouseFbsPickUpPlanningListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(WarehouseFbsPickUpPlanningListResponseResultWarehouse_1.WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFbsReturnMileCheckRequest.d.ts b/dist/models/V1WarehouseFbsReturnMileCheckRequest.d.ts new file mode 100644 index 0000000..3785c6e --- /dev/null +++ b/dist/models/V1WarehouseFbsReturnMileCheckRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum } from './V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum'; +/** + * + * @export + * @interface V1WarehouseFbsReturnMileCheckRequest + */ +export interface V1WarehouseFbsReturnMileCheckRequest { + /** + * Код страны в формате ISO 2. + * @type {string} + * @memberof V1WarehouseFbsReturnMileCheckRequest + */ + country_code: string; + /** + * + * @type {V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum} + * @memberof V1WarehouseFbsReturnMileCheckRequest + */ + first_mile_type: V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum; + /** + * Признак крупногабаритного товара. + * @type {boolean} + * @memberof V1WarehouseFbsReturnMileCheckRequest + */ + is_kgt: boolean; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFbsReturnMileCheckRequest + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1WarehouseFbsReturnMileCheckRequest interface. + */ +export declare function instanceOfV1WarehouseFbsReturnMileCheckRequest(value: object): value is V1WarehouseFbsReturnMileCheckRequest; +export declare function V1WarehouseFbsReturnMileCheckRequestFromJSON(json: any): V1WarehouseFbsReturnMileCheckRequest; +export declare function V1WarehouseFbsReturnMileCheckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsReturnMileCheckRequest; +export declare function V1WarehouseFbsReturnMileCheckRequestToJSON(value?: V1WarehouseFbsReturnMileCheckRequest | null): any; diff --git a/dist/models/V1WarehouseFbsReturnMileCheckRequest.js b/dist/models/V1WarehouseFbsReturnMileCheckRequest.js new file mode 100644 index 0000000..4d6470e --- /dev/null +++ b/dist/models/V1WarehouseFbsReturnMileCheckRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsReturnMileCheckRequest = instanceOfV1WarehouseFbsReturnMileCheckRequest; +exports.V1WarehouseFbsReturnMileCheckRequestFromJSON = V1WarehouseFbsReturnMileCheckRequestFromJSON; +exports.V1WarehouseFbsReturnMileCheckRequestFromJSONTyped = V1WarehouseFbsReturnMileCheckRequestFromJSONTyped; +exports.V1WarehouseFbsReturnMileCheckRequestToJSON = V1WarehouseFbsReturnMileCheckRequestToJSON; +const V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum_1 = require("./V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum"); +/** + * Check if a given object implements the V1WarehouseFbsReturnMileCheckRequest interface. + */ +function instanceOfV1WarehouseFbsReturnMileCheckRequest(value) { + if (!('country_code' in value) || value['country_code'] === undefined) + return false; + if (!('first_mile_type' in value) || value['first_mile_type'] === undefined) + return false; + if (!('is_kgt' in value) || value['is_kgt'] === undefined) + return false; + return true; +} +function V1WarehouseFbsReturnMileCheckRequestFromJSON(json) { + return V1WarehouseFbsReturnMileCheckRequestFromJSONTyped(json, false); +} +function V1WarehouseFbsReturnMileCheckRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'country_code': json['country_code'], + 'first_mile_type': (0, V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum_1.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON)(json['first_mile_type']), + 'is_kgt': json['is_kgt'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V1WarehouseFbsReturnMileCheckRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'country_code': value['country_code'], + 'first_mile_type': (0, V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum_1.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON)(value['first_mile_type']), + 'is_kgt': value['is_kgt'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.d.ts b/dist/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.d.ts new file mode 100644 index 0000000..5878a54 --- /dev/null +++ b/dist/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +export declare const V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum: { + readonly PICK_UP: "PICK_UP"; + readonly DROP_OFF: "DROP_OFF"; +}; +export type V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum = typeof V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum[keyof typeof V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum]; +export declare function instanceOfV1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum(value: any): boolean; +export declare function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON(json: any): V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum; +export declare function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum; +export declare function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON(value?: V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum | null): any; diff --git a/dist/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.js b/dist/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.js new file mode 100644 index 0000000..d522c89 --- /dev/null +++ b/dist/models/V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum = void 0; +exports.instanceOfV1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum = instanceOfV1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum; +exports.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON = V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON; +exports.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSONTyped = V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSONTyped; +exports.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON = V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON; +/** + * Тип первой мили: + * - `PICK_UP` — отгрузка заказов курьеру; + * - `DROP_OFF` — отгрузка заказов в пункт приёма. + * + * @export + */ +exports.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum = { + PICK_UP: 'PICK_UP', + DROP_OFF: 'DROP_OFF' +}; +function instanceOfV1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum(value) { + for (const key in exports.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum, key)) { + if (exports.V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSON(json) { + return V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSONTyped(json, false); +} +function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseFbsReturnMileCheckResponse.d.ts b/dist/models/V1WarehouseFbsReturnMileCheckResponse.d.ts new file mode 100644 index 0000000..d7dd715 --- /dev/null +++ b/dist/models/V1WarehouseFbsReturnMileCheckResponse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsReturnMileCheckResponse + */ +export interface V1WarehouseFbsReturnMileCheckResponse { + /** + * Признак, что необходимо установить возвратную милю. + * @type {boolean} + * @memberof V1WarehouseFbsReturnMileCheckResponse + */ + should_set_return_mile?: boolean; + /** + * Причины, по которым нельзя установить возвратную милю. + * @type {Array} + * @memberof V1WarehouseFbsReturnMileCheckResponse + */ + unavailability_reasons?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsReturnMileCheckResponse interface. + */ +export declare function instanceOfV1WarehouseFbsReturnMileCheckResponse(value: object): value is V1WarehouseFbsReturnMileCheckResponse; +export declare function V1WarehouseFbsReturnMileCheckResponseFromJSON(json: any): V1WarehouseFbsReturnMileCheckResponse; +export declare function V1WarehouseFbsReturnMileCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsReturnMileCheckResponse; +export declare function V1WarehouseFbsReturnMileCheckResponseToJSON(value?: V1WarehouseFbsReturnMileCheckResponse | null): any; diff --git a/dist/models/V1WarehouseFbsReturnMileCheckResponse.js b/dist/models/V1WarehouseFbsReturnMileCheckResponse.js new file mode 100644 index 0000000..4971f3c --- /dev/null +++ b/dist/models/V1WarehouseFbsReturnMileCheckResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsReturnMileCheckResponse = instanceOfV1WarehouseFbsReturnMileCheckResponse; +exports.V1WarehouseFbsReturnMileCheckResponseFromJSON = V1WarehouseFbsReturnMileCheckResponseFromJSON; +exports.V1WarehouseFbsReturnMileCheckResponseFromJSONTyped = V1WarehouseFbsReturnMileCheckResponseFromJSONTyped; +exports.V1WarehouseFbsReturnMileCheckResponseToJSON = V1WarehouseFbsReturnMileCheckResponseToJSON; +/** + * Check if a given object implements the V1WarehouseFbsReturnMileCheckResponse interface. + */ +function instanceOfV1WarehouseFbsReturnMileCheckResponse(value) { + return true; +} +function V1WarehouseFbsReturnMileCheckResponseFromJSON(json) { + return V1WarehouseFbsReturnMileCheckResponseFromJSONTyped(json, false); +} +function V1WarehouseFbsReturnMileCheckResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'should_set_return_mile': json['should_set_return_mile'] == null ? undefined : json['should_set_return_mile'], + 'unavailability_reasons': json['unavailability_reasons'] == null ? undefined : json['unavailability_reasons'], + }; +} +function V1WarehouseFbsReturnMileCheckResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'should_set_return_mile': value['should_set_return_mile'], + 'unavailability_reasons': value['unavailability_reasons'], + }; +} diff --git a/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.d.ts b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.d.ts new file mode 100644 index 0000000..c4c5901 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsUpdateDropOffTimeslotListRequest + */ +export interface V1WarehouseFbsUpdateDropOffTimeslotListRequest { + /** + * Идентификатор drop-off пункта. + * @type {number} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListRequest + */ + drop_off_point_id: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListRequest(value: object): value is V1WarehouseFbsUpdateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSON(json: any): V1WarehouseFbsUpdateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdateDropOffTimeslotListRequest; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON(value?: V1WarehouseFbsUpdateDropOffTimeslotListRequest | null): any; diff --git a/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.js b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.js new file mode 100644 index 0000000..e5b1993 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsUpdateDropOffTimeslotListRequest = instanceOfV1WarehouseFbsUpdateDropOffTimeslotListRequest; +exports.V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSON = V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSON; +exports.V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSONTyped = V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSONTyped; +exports.V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON = V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON; +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListRequest interface. + */ +function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListRequest(value) { + if (!('drop_off_point_id' in value) || value['drop_off_point_id'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSON(json) { + return V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSONTyped(json, false); +} +function V1WarehouseFbsUpdateDropOffTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'drop_off_point_id': json['drop_off_point_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseFbsUpdateDropOffTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'drop_off_point_id': value['drop_off_point_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.d.ts b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.d.ts new file mode 100644 index 0000000..9dc6342 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot } from './V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot'; +/** + * + * @export + * @interface V1WarehouseFbsUpdateDropOffTimeslotListResponse + */ +export interface V1WarehouseFbsUpdateDropOffTimeslotListResponse { + /** + * Список таймслотов. + * @type {Array} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponse + */ + timeslots?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponse(value: object): value is V1WarehouseFbsUpdateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON(json: any): V1WarehouseFbsUpdateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdateDropOffTimeslotListResponse; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseToJSON(value?: V1WarehouseFbsUpdateDropOffTimeslotListResponse | null): any; diff --git a/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.js b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.js new file mode 100644 index 0000000..9fd5716 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponse = instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponse; +exports.V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON = V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON; +exports.V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSONTyped = V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSONTyped; +exports.V1WarehouseFbsUpdateDropOffTimeslotListResponseToJSON = V1WarehouseFbsUpdateDropOffTimeslotListResponseToJSON; +const V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot_1 = require("./V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot"); +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListResponse interface. + */ +function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponse(value) { + return true; +} +function V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSON(json) { + return V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSONTyped(json, false); +} +function V1WarehouseFbsUpdateDropOffTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot_1.V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON)), + }; +} +function V1WarehouseFbsUpdateDropOffTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot_1.V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.d.ts b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.d.ts new file mode 100644 index 0000000..7c114d4 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ +export interface V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot { + /** + * Местное время окончания приёма заказа. + * @type {string} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + acceptance_end_time_local?: string; + /** + * Местное время начала приёма заказа. + * @type {string} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + acceptance_start_time_local?: string; + /** + * Время начала таймслота. + * @type {string} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot interface. + */ +export declare function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot(value: object): value is V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON(json: any): V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON(value?: V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot | null): any; diff --git a/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.js b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.js new file mode 100644 index 0000000..7449444 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot = instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot; +exports.V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON = V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON; +exports.V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSONTyped = V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSONTyped; +exports.V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON = V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON; +/** + * Check if a given object implements the V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot interface. + */ +function instanceOfV1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot(value) { + return true; +} +function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSON(json) { + return V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSONTyped(json, false); +} +function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'acceptance_end_time_local': json['acceptance_end_time_local'] == null ? undefined : json['acceptance_end_time_local'], + 'acceptance_start_time_local': json['acceptance_start_time_local'] == null ? undefined : json['acceptance_start_time_local'], + 'from': json['from'] == null ? undefined : json['from'], + 'id': json['id'] == null ? undefined : json['id'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'acceptance_end_time_local': value['acceptance_end_time_local'], + 'acceptance_start_time_local': value['acceptance_start_time_local'], + 'from': value['from'], + 'id': value['id'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.d.ts b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.d.ts new file mode 100644 index 0000000..3be9c7a --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsUpdatePickUpTimeslotListRequest + */ +export interface V1WarehouseFbsUpdatePickUpTimeslotListRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListRequest interface. + */ +export declare function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListRequest(value: object): value is V1WarehouseFbsUpdatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSON(json: any): V1WarehouseFbsUpdatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdatePickUpTimeslotListRequest; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON(value?: V1WarehouseFbsUpdatePickUpTimeslotListRequest | null): any; diff --git a/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.js b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.js new file mode 100644 index 0000000..a284ddd --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsUpdatePickUpTimeslotListRequest = instanceOfV1WarehouseFbsUpdatePickUpTimeslotListRequest; +exports.V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSON = V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSON; +exports.V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSONTyped = V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSONTyped; +exports.V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON = V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON; +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListRequest interface. + */ +function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSON(json) { + return V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSONTyped(json, false); +} +function V1WarehouseFbsUpdatePickUpTimeslotListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseFbsUpdatePickUpTimeslotListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.d.ts b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.d.ts new file mode 100644 index 0000000..09b08b3 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot } from './V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot'; +/** + * + * @export + * @interface V1WarehouseFbsUpdatePickUpTimeslotListResponse + */ +export interface V1WarehouseFbsUpdatePickUpTimeslotListResponse { + /** + * Список таймслотов. + * @type {Array} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListResponse + */ + timeslots?: Array; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListResponse interface. + */ +export declare function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponse(value: object): value is V1WarehouseFbsUpdatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON(json: any): V1WarehouseFbsUpdatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdatePickUpTimeslotListResponse; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseToJSON(value?: V1WarehouseFbsUpdatePickUpTimeslotListResponse | null): any; diff --git a/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.js b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.js new file mode 100644 index 0000000..f815469 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponse = instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponse; +exports.V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON = V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON; +exports.V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSONTyped = V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSONTyped; +exports.V1WarehouseFbsUpdatePickUpTimeslotListResponseToJSON = V1WarehouseFbsUpdatePickUpTimeslotListResponseToJSON; +const V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot_1 = require("./V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot"); +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListResponse interface. + */ +function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponse(value) { + return true; +} +function V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSON(json) { + return V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSONTyped(json, false); +} +function V1WarehouseFbsUpdatePickUpTimeslotListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslots': json['timeslots'] == null ? undefined : (json['timeslots'].map(V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot_1.V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON)), + }; +} +function V1WarehouseFbsUpdatePickUpTimeslotListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslots': value['timeslots'] == null ? undefined : (value['timeslots'].map(V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot_1.V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON)), + }; +} diff --git a/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.d.ts b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.d.ts new file mode 100644 index 0000000..a79eea3 --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot + */ +export interface V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot { + /** + * Время начала таймслота. + * @type {string} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot + */ + from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot + */ + id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot + */ + to?: string; +} +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot interface. + */ +export declare function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot(value: object): value is V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON(json: any): V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot; +export declare function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON(value?: V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot | null): any; diff --git a/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.js b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.js new file mode 100644 index 0000000..c76cf3b --- /dev/null +++ b/dist/models/V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot = instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot; +exports.V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON = V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON; +exports.V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSONTyped = V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSONTyped; +exports.V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON = V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON; +/** + * Check if a given object implements the V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot interface. + */ +function instanceOfV1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot(value) { + return true; +} +function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSON(json) { + return V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSONTyped(json, false); +} +function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'id': json['id'] == null ? undefined : json['id'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'id': value['id'], + 'to': value['to'], + }; +} diff --git a/dist/models/V1WarehouseInvalidProductsGetRequest.d.ts b/dist/models/V1WarehouseInvalidProductsGetRequest.d.ts new file mode 100644 index 0000000..32fb89c --- /dev/null +++ b/dist/models/V1WarehouseInvalidProductsGetRequest.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseInvalidProductsGetRequest + */ +export interface V1WarehouseInvalidProductsGetRequest { + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {number} + * @memberof V1WarehouseInvalidProductsGetRequest + */ + last_id?: number; + /** + * Идентификатор склада. Получите значение параметра методом [/v1/warehouse/warehouses-with-invalid-products](#operation/WarehouseWithInvalidProducts). + * @type {number} + * @memberof V1WarehouseInvalidProductsGetRequest + */ + warehouse_id: number; +} +/** + * Check if a given object implements the V1WarehouseInvalidProductsGetRequest interface. + */ +export declare function instanceOfV1WarehouseInvalidProductsGetRequest(value: object): value is V1WarehouseInvalidProductsGetRequest; +export declare function V1WarehouseInvalidProductsGetRequestFromJSON(json: any): V1WarehouseInvalidProductsGetRequest; +export declare function V1WarehouseInvalidProductsGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseInvalidProductsGetRequest; +export declare function V1WarehouseInvalidProductsGetRequestToJSON(value?: V1WarehouseInvalidProductsGetRequest | null): any; diff --git a/dist/models/V1WarehouseInvalidProductsGetRequest.js b/dist/models/V1WarehouseInvalidProductsGetRequest.js new file mode 100644 index 0000000..7c2c754 --- /dev/null +++ b/dist/models/V1WarehouseInvalidProductsGetRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseInvalidProductsGetRequest = instanceOfV1WarehouseInvalidProductsGetRequest; +exports.V1WarehouseInvalidProductsGetRequestFromJSON = V1WarehouseInvalidProductsGetRequestFromJSON; +exports.V1WarehouseInvalidProductsGetRequestFromJSONTyped = V1WarehouseInvalidProductsGetRequestFromJSONTyped; +exports.V1WarehouseInvalidProductsGetRequestToJSON = V1WarehouseInvalidProductsGetRequestToJSON; +/** + * Check if a given object implements the V1WarehouseInvalidProductsGetRequest interface. + */ +function instanceOfV1WarehouseInvalidProductsGetRequest(value) { + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V1WarehouseInvalidProductsGetRequestFromJSON(json) { + return V1WarehouseInvalidProductsGetRequestFromJSONTyped(json, false); +} +function V1WarehouseInvalidProductsGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V1WarehouseInvalidProductsGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseInvalidProductsGetResponse.d.ts b/dist/models/V1WarehouseInvalidProductsGetResponse.d.ts new file mode 100644 index 0000000..c34188d --- /dev/null +++ b/dist/models/V1WarehouseInvalidProductsGetResponse.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseInvalidProductsGetResponseValidationResult } from './WarehouseInvalidProductsGetResponseValidationResult'; +/** + * + * @export + * @interface V1WarehouseInvalidProductsGetResponse + */ +export interface V1WarehouseInvalidProductsGetResponse { + /** + * `true`, если в ответе вернулись не все товары. + * + * @type {boolean} + * @memberof V1WarehouseInvalidProductsGetResponse + */ + has_next?: boolean; + /** + * Идентификатор последнего значения на странице. Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * @type {number} + * @memberof V1WarehouseInvalidProductsGetResponse + */ + last_id?: number; + /** + * Результат проверки. + * @type {Array} + * @memberof V1WarehouseInvalidProductsGetResponse + */ + validation_results?: Array; + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseInvalidProductsGetResponse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V1WarehouseInvalidProductsGetResponse interface. + */ +export declare function instanceOfV1WarehouseInvalidProductsGetResponse(value: object): value is V1WarehouseInvalidProductsGetResponse; +export declare function V1WarehouseInvalidProductsGetResponseFromJSON(json: any): V1WarehouseInvalidProductsGetResponse; +export declare function V1WarehouseInvalidProductsGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseInvalidProductsGetResponse; +export declare function V1WarehouseInvalidProductsGetResponseToJSON(value?: V1WarehouseInvalidProductsGetResponse | null): any; diff --git a/dist/models/V1WarehouseInvalidProductsGetResponse.js b/dist/models/V1WarehouseInvalidProductsGetResponse.js new file mode 100644 index 0000000..65fdd96 --- /dev/null +++ b/dist/models/V1WarehouseInvalidProductsGetResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseInvalidProductsGetResponse = instanceOfV1WarehouseInvalidProductsGetResponse; +exports.V1WarehouseInvalidProductsGetResponseFromJSON = V1WarehouseInvalidProductsGetResponseFromJSON; +exports.V1WarehouseInvalidProductsGetResponseFromJSONTyped = V1WarehouseInvalidProductsGetResponseFromJSONTyped; +exports.V1WarehouseInvalidProductsGetResponseToJSON = V1WarehouseInvalidProductsGetResponseToJSON; +const WarehouseInvalidProductsGetResponseValidationResult_1 = require("./WarehouseInvalidProductsGetResponseValidationResult"); +/** + * Check if a given object implements the V1WarehouseInvalidProductsGetResponse interface. + */ +function instanceOfV1WarehouseInvalidProductsGetResponse(value) { + return true; +} +function V1WarehouseInvalidProductsGetResponseFromJSON(json) { + return V1WarehouseInvalidProductsGetResponseFromJSONTyped(json, false); +} +function V1WarehouseInvalidProductsGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'validation_results': json['validation_results'] == null ? undefined : (json['validation_results'].map(WarehouseInvalidProductsGetResponseValidationResult_1.WarehouseInvalidProductsGetResponseValidationResultFromJSON)), + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V1WarehouseInvalidProductsGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'last_id': value['last_id'], + 'validation_results': value['validation_results'] == null ? undefined : (value['validation_results'].map(WarehouseInvalidProductsGetResponseValidationResult_1.WarehouseInvalidProductsGetResponseValidationResultToJSON)), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V1WarehouseListRequest.d.ts b/dist/models/V1WarehouseListRequest.d.ts new file mode 100644 index 0000000..4623b73 --- /dev/null +++ b/dist/models/V1WarehouseListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseListRequestWith } from './V1WarehouseListRequestWith'; +/** + * + * @export + * @interface V1WarehouseListRequest + */ +export interface V1WarehouseListRequest { + /** + * Количество значений в ответе. + * @type {number} + * @memberof V1WarehouseListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof V1WarehouseListRequest + */ + offset?: number; + /** + * + * @type {V1WarehouseListRequestWith} + * @memberof V1WarehouseListRequest + */ + _with?: V1WarehouseListRequestWith; +} +/** + * Check if a given object implements the V1WarehouseListRequest interface. + */ +export declare function instanceOfV1WarehouseListRequest(value: object): value is V1WarehouseListRequest; +export declare function V1WarehouseListRequestFromJSON(json: any): V1WarehouseListRequest; +export declare function V1WarehouseListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseListRequest; +export declare function V1WarehouseListRequestToJSON(value?: V1WarehouseListRequest | null): any; diff --git a/dist/models/V1WarehouseListRequest.js b/dist/models/V1WarehouseListRequest.js new file mode 100644 index 0000000..d816501 --- /dev/null +++ b/dist/models/V1WarehouseListRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseListRequest = instanceOfV1WarehouseListRequest; +exports.V1WarehouseListRequestFromJSON = V1WarehouseListRequestFromJSON; +exports.V1WarehouseListRequestFromJSONTyped = V1WarehouseListRequestFromJSONTyped; +exports.V1WarehouseListRequestToJSON = V1WarehouseListRequestToJSON; +const V1WarehouseListRequestWith_1 = require("./V1WarehouseListRequestWith"); +/** + * Check if a given object implements the V1WarehouseListRequest interface. + */ +function instanceOfV1WarehouseListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V1WarehouseListRequestFromJSON(json) { + return V1WarehouseListRequestFromJSONTyped(json, false); +} +function V1WarehouseListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + '_with': json['with'] == null ? undefined : (0, V1WarehouseListRequestWith_1.V1WarehouseListRequestWithFromJSON)(json['with']), + }; +} +function V1WarehouseListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'offset': value['offset'], + 'with': (0, V1WarehouseListRequestWith_1.V1WarehouseListRequestWithToJSON)(value['_with']), + }; +} diff --git a/dist/models/V1WarehouseListRequestWith.d.ts b/dist/models/V1WarehouseListRequestWith.d.ts new file mode 100644 index 0000000..9d52881 --- /dev/null +++ b/dist/models/V1WarehouseListRequestWith.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительные поля, которые нужно добавить в ответ. + * @export + * @interface V1WarehouseListRequestWith + */ +export interface V1WarehouseListRequestWith { + /** + * `true`, чтобы добавить в ответ информацию о возможности установить цену. + * + * @type {boolean} + * @memberof V1WarehouseListRequestWith + */ + able_to_set_price?: boolean; +} +/** + * Check if a given object implements the V1WarehouseListRequestWith interface. + */ +export declare function instanceOfV1WarehouseListRequestWith(value: object): value is V1WarehouseListRequestWith; +export declare function V1WarehouseListRequestWithFromJSON(json: any): V1WarehouseListRequestWith; +export declare function V1WarehouseListRequestWithFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseListRequestWith; +export declare function V1WarehouseListRequestWithToJSON(value?: V1WarehouseListRequestWith | null): any; diff --git a/dist/models/V1WarehouseListRequestWith.js b/dist/models/V1WarehouseListRequestWith.js new file mode 100644 index 0000000..5e59e3b --- /dev/null +++ b/dist/models/V1WarehouseListRequestWith.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseListRequestWith = instanceOfV1WarehouseListRequestWith; +exports.V1WarehouseListRequestWithFromJSON = V1WarehouseListRequestWithFromJSON; +exports.V1WarehouseListRequestWithFromJSONTyped = V1WarehouseListRequestWithFromJSONTyped; +exports.V1WarehouseListRequestWithToJSON = V1WarehouseListRequestWithToJSON; +/** + * Check if a given object implements the V1WarehouseListRequestWith interface. + */ +function instanceOfV1WarehouseListRequestWith(value) { + return true; +} +function V1WarehouseListRequestWithFromJSON(json) { + return V1WarehouseListRequestWithFromJSONTyped(json, false); +} +function V1WarehouseListRequestWithFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'able_to_set_price': json['able_to_set_price'] == null ? undefined : json['able_to_set_price'], + }; +} +function V1WarehouseListRequestWithToJSON(value) { + if (value == null) { + return value; + } + return { + 'able_to_set_price': value['able_to_set_price'], + }; +} diff --git a/dist/models/V1WarehouseOZONListRequest.d.ts b/dist/models/V1WarehouseOZONListRequest.d.ts new file mode 100644 index 0000000..e5d28a1 --- /dev/null +++ b/dist/models/V1WarehouseOZONListRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseOZONListRequestWarehouseTypeEnum } from './V1WarehouseOZONListRequestWarehouseTypeEnum'; +/** + * + * @export + * @interface V1WarehouseOZONListRequest + */ +export interface V1WarehouseOZONListRequest { + /** + * Тип склада Ozon: + * - `FULL_FILLMENT` — фулфилмент; + * - `FULL_FILLMENT_RETURNS` — склад возвратов; + * - `FULL_FILLMENT_DEFECT` — склад брака; + * - `EXPRESS_DARK_STORE` — фреш; + * - `CROSS_DOCK` — кросс-док; + * - `SORTING_CENTER` — сортировочный центр; + * - `PHARMACY` — склад аптеки; + * - `DISTRIBUTION_CENTER` — распределительный центр; + * - `ORDERS_RECEIVING_POINT` — пункты приёма заказов; + * - `OUTSOURCE_FF` — аутсорс-склады; + * - `B2B` — B2B-склад; + * - `EXTERNAL_FF` — склады партнёров. + * + * @type {Array} + * @memberof V1WarehouseOZONListRequest + */ + warehouse_types?: Array; +} +/** + * Check if a given object implements the V1WarehouseOZONListRequest interface. + */ +export declare function instanceOfV1WarehouseOZONListRequest(value: object): value is V1WarehouseOZONListRequest; +export declare function V1WarehouseOZONListRequestFromJSON(json: any): V1WarehouseOZONListRequest; +export declare function V1WarehouseOZONListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseOZONListRequest; +export declare function V1WarehouseOZONListRequestToJSON(value?: V1WarehouseOZONListRequest | null): any; diff --git a/dist/models/V1WarehouseOZONListRequest.js b/dist/models/V1WarehouseOZONListRequest.js new file mode 100644 index 0000000..a2b3744 --- /dev/null +++ b/dist/models/V1WarehouseOZONListRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseOZONListRequest = instanceOfV1WarehouseOZONListRequest; +exports.V1WarehouseOZONListRequestFromJSON = V1WarehouseOZONListRequestFromJSON; +exports.V1WarehouseOZONListRequestFromJSONTyped = V1WarehouseOZONListRequestFromJSONTyped; +exports.V1WarehouseOZONListRequestToJSON = V1WarehouseOZONListRequestToJSON; +const V1WarehouseOZONListRequestWarehouseTypeEnum_1 = require("./V1WarehouseOZONListRequestWarehouseTypeEnum"); +/** + * Check if a given object implements the V1WarehouseOZONListRequest interface. + */ +function instanceOfV1WarehouseOZONListRequest(value) { + return true; +} +function V1WarehouseOZONListRequestFromJSON(json) { + return V1WarehouseOZONListRequestFromJSONTyped(json, false); +} +function V1WarehouseOZONListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_types': json['warehouse_types'] == null ? undefined : (json['warehouse_types'].map(V1WarehouseOZONListRequestWarehouseTypeEnum_1.V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON)), + }; +} +function V1WarehouseOZONListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_types': value['warehouse_types'] == null ? undefined : (value['warehouse_types'].map(V1WarehouseOZONListRequestWarehouseTypeEnum_1.V1WarehouseOZONListRequestWarehouseTypeEnumToJSON)), + }; +} diff --git a/dist/models/V1WarehouseOZONListRequestWarehouseTypeEnum.d.ts b/dist/models/V1WarehouseOZONListRequestWarehouseTypeEnum.d.ts new file mode 100644 index 0000000..709f986 --- /dev/null +++ b/dist/models/V1WarehouseOZONListRequestWarehouseTypeEnum.d.ts @@ -0,0 +1,34 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V1WarehouseOZONListRequestWarehouseTypeEnum: { + readonly FULL_FILLMENT: "FULL_FILLMENT"; + readonly FULL_FILLMENT_RETURNS: "FULL_FILLMENT_RETURNS"; + readonly FULL_FILLMENT_DEFECT: "FULL_FILLMENT_DEFECT"; + readonly EXPRESS_DARK_STORE: "EXPRESS_DARK_STORE"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly PHARMACY: "PHARMACY"; + readonly DISTRIBUTION_CENTER: "DISTRIBUTION_CENTER"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly OUTSOURCE_FF: "OUTSOURCE_FF"; + readonly B2B: "B2B"; + readonly EXTERNAL_FF: "EXTERNAL_FF"; +}; +export type V1WarehouseOZONListRequestWarehouseTypeEnum = typeof V1WarehouseOZONListRequestWarehouseTypeEnum[keyof typeof V1WarehouseOZONListRequestWarehouseTypeEnum]; +export declare function instanceOfV1WarehouseOZONListRequestWarehouseTypeEnum(value: any): boolean; +export declare function V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON(json: any): V1WarehouseOZONListRequestWarehouseTypeEnum; +export declare function V1WarehouseOZONListRequestWarehouseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseOZONListRequestWarehouseTypeEnum; +export declare function V1WarehouseOZONListRequestWarehouseTypeEnumToJSON(value?: V1WarehouseOZONListRequestWarehouseTypeEnum | null): any; diff --git a/dist/models/V1WarehouseOZONListRequestWarehouseTypeEnum.js b/dist/models/V1WarehouseOZONListRequestWarehouseTypeEnum.js new file mode 100644 index 0000000..e45f099 --- /dev/null +++ b/dist/models/V1WarehouseOZONListRequestWarehouseTypeEnum.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V1WarehouseOZONListRequestWarehouseTypeEnum = void 0; +exports.instanceOfV1WarehouseOZONListRequestWarehouseTypeEnum = instanceOfV1WarehouseOZONListRequestWarehouseTypeEnum; +exports.V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON = V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON; +exports.V1WarehouseOZONListRequestWarehouseTypeEnumFromJSONTyped = V1WarehouseOZONListRequestWarehouseTypeEnumFromJSONTyped; +exports.V1WarehouseOZONListRequestWarehouseTypeEnumToJSON = V1WarehouseOZONListRequestWarehouseTypeEnumToJSON; +/** + * + * @export + */ +exports.V1WarehouseOZONListRequestWarehouseTypeEnum = { + FULL_FILLMENT: 'FULL_FILLMENT', + FULL_FILLMENT_RETURNS: 'FULL_FILLMENT_RETURNS', + FULL_FILLMENT_DEFECT: 'FULL_FILLMENT_DEFECT', + EXPRESS_DARK_STORE: 'EXPRESS_DARK_STORE', + CROSS_DOCK: 'CROSS_DOCK', + SORTING_CENTER: 'SORTING_CENTER', + PHARMACY: 'PHARMACY', + DISTRIBUTION_CENTER: 'DISTRIBUTION_CENTER', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + OUTSOURCE_FF: 'OUTSOURCE_FF', + B2B: 'B2B', + EXTERNAL_FF: 'EXTERNAL_FF' +}; +function instanceOfV1WarehouseOZONListRequestWarehouseTypeEnum(value) { + for (const key in exports.V1WarehouseOZONListRequestWarehouseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V1WarehouseOZONListRequestWarehouseTypeEnum, key)) { + if (exports.V1WarehouseOZONListRequestWarehouseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function V1WarehouseOZONListRequestWarehouseTypeEnumFromJSON(json) { + return V1WarehouseOZONListRequestWarehouseTypeEnumFromJSONTyped(json, false); +} +function V1WarehouseOZONListRequestWarehouseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V1WarehouseOZONListRequestWarehouseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/V1WarehouseOZONListResponse.d.ts b/dist/models/V1WarehouseOZONListResponse.d.ts new file mode 100644 index 0000000..302b03d --- /dev/null +++ b/dist/models/V1WarehouseOZONListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseOZONListResponseWarehouse } from './V1WarehouseOZONListResponseWarehouse'; +/** + * + * @export + * @interface V1WarehouseOZONListResponse + */ +export interface V1WarehouseOZONListResponse { + /** + * Список складов. + * @type {Array} + * @memberof V1WarehouseOZONListResponse + */ + warehouses?: Array; +} +/** + * Check if a given object implements the V1WarehouseOZONListResponse interface. + */ +export declare function instanceOfV1WarehouseOZONListResponse(value: object): value is V1WarehouseOZONListResponse; +export declare function V1WarehouseOZONListResponseFromJSON(json: any): V1WarehouseOZONListResponse; +export declare function V1WarehouseOZONListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseOZONListResponse; +export declare function V1WarehouseOZONListResponseToJSON(value?: V1WarehouseOZONListResponse | null): any; diff --git a/dist/models/V1WarehouseOZONListResponse.js b/dist/models/V1WarehouseOZONListResponse.js new file mode 100644 index 0000000..64cee73 --- /dev/null +++ b/dist/models/V1WarehouseOZONListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseOZONListResponse = instanceOfV1WarehouseOZONListResponse; +exports.V1WarehouseOZONListResponseFromJSON = V1WarehouseOZONListResponseFromJSON; +exports.V1WarehouseOZONListResponseFromJSONTyped = V1WarehouseOZONListResponseFromJSONTyped; +exports.V1WarehouseOZONListResponseToJSON = V1WarehouseOZONListResponseToJSON; +const V1WarehouseOZONListResponseWarehouse_1 = require("./V1WarehouseOZONListResponseWarehouse"); +/** + * Check if a given object implements the V1WarehouseOZONListResponse interface. + */ +function instanceOfV1WarehouseOZONListResponse(value) { + return true; +} +function V1WarehouseOZONListResponseFromJSON(json) { + return V1WarehouseOZONListResponseFromJSONTyped(json, false); +} +function V1WarehouseOZONListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(V1WarehouseOZONListResponseWarehouse_1.V1WarehouseOZONListResponseWarehouseFromJSON)), + }; +} +function V1WarehouseOZONListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(V1WarehouseOZONListResponseWarehouse_1.V1WarehouseOZONListResponseWarehouseToJSON)), + }; +} diff --git a/dist/models/V1WarehouseOZONListResponseWarehouse.d.ts b/dist/models/V1WarehouseOZONListResponseWarehouse.d.ts new file mode 100644 index 0000000..d837392 --- /dev/null +++ b/dist/models/V1WarehouseOZONListResponseWarehouse.d.ts @@ -0,0 +1,110 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseOZONListResponseWarehouseWarehouseTypeEnum } from './WarehouseOZONListResponseWarehouseWarehouseTypeEnum'; +/** + * + * @export + * @interface V1WarehouseOZONListResponseWarehouse + */ +export interface V1WarehouseOZONListResponseWarehouse { + /** + * Идентификатор склада. + * @type {number} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + name?: string; + /** + * Короткое название склада. + * @type {string} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + short_name?: string; + /** + * Адрес склада. + * @type {string} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + address?: string; + /** + * Часовой пояс склада. + * @type {string} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + timezone?: string; + /** + * `true`, если склад активный. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_active?: boolean; + /** + * + * @type {WarehouseOZONListResponseWarehouseWarehouseTypeEnum} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + warehouse_type?: WarehouseOZONListResponseWarehouseWarehouseTypeEnum; + /** + * Код страны в формате ISO 3166-1 numeric. + * @type {number} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + country_iso_numeric?: number; + /** + * `true`, если тип склада — кросс-док. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_cross_dock?: boolean; + /** + * `true`, если тип склада — распределительный центр. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_distribution_center?: boolean; + /** + * `true`, если склад работает с электронным документооборотом. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_edo?: boolean; + /** + * `true`, если тип склада — фреш. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_express?: boolean; + /** + * `true`, если склад доступен для создания поставки. + * + * @type {boolean} + * @memberof V1WarehouseOZONListResponseWarehouse + */ + is_for_supply?: boolean; +} +/** + * Check if a given object implements the V1WarehouseOZONListResponseWarehouse interface. + */ +export declare function instanceOfV1WarehouseOZONListResponseWarehouse(value: object): value is V1WarehouseOZONListResponseWarehouse; +export declare function V1WarehouseOZONListResponseWarehouseFromJSON(json: any): V1WarehouseOZONListResponseWarehouse; +export declare function V1WarehouseOZONListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseOZONListResponseWarehouse; +export declare function V1WarehouseOZONListResponseWarehouseToJSON(value?: V1WarehouseOZONListResponseWarehouse | null): any; diff --git a/dist/models/V1WarehouseOZONListResponseWarehouse.js b/dist/models/V1WarehouseOZONListResponseWarehouse.js new file mode 100644 index 0000000..15e86b9 --- /dev/null +++ b/dist/models/V1WarehouseOZONListResponseWarehouse.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseOZONListResponseWarehouse = instanceOfV1WarehouseOZONListResponseWarehouse; +exports.V1WarehouseOZONListResponseWarehouseFromJSON = V1WarehouseOZONListResponseWarehouseFromJSON; +exports.V1WarehouseOZONListResponseWarehouseFromJSONTyped = V1WarehouseOZONListResponseWarehouseFromJSONTyped; +exports.V1WarehouseOZONListResponseWarehouseToJSON = V1WarehouseOZONListResponseWarehouseToJSON; +const WarehouseOZONListResponseWarehouseWarehouseTypeEnum_1 = require("./WarehouseOZONListResponseWarehouseWarehouseTypeEnum"); +/** + * Check if a given object implements the V1WarehouseOZONListResponseWarehouse interface. + */ +function instanceOfV1WarehouseOZONListResponseWarehouse(value) { + return true; +} +function V1WarehouseOZONListResponseWarehouseFromJSON(json) { + return V1WarehouseOZONListResponseWarehouseFromJSONTyped(json, false); +} +function V1WarehouseOZONListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'short_name': json['short_name'] == null ? undefined : json['short_name'], + 'address': json['address'] == null ? undefined : json['address'], + 'timezone': json['timezone'] == null ? undefined : json['timezone'], + 'is_active': json['is_active'] == null ? undefined : json['is_active'], + 'warehouse_type': json['warehouse_type'] == null ? undefined : (0, WarehouseOZONListResponseWarehouseWarehouseTypeEnum_1.WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON)(json['warehouse_type']), + 'country_iso_numeric': json['country_iso_numeric'] == null ? undefined : json['country_iso_numeric'], + 'is_cross_dock': json['is_cross_dock'] == null ? undefined : json['is_cross_dock'], + 'is_distribution_center': json['is_distribution_center'] == null ? undefined : json['is_distribution_center'], + 'is_edo': json['is_edo'] == null ? undefined : json['is_edo'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_for_supply': json['is_for_supply'] == null ? undefined : json['is_for_supply'], + }; +} +function V1WarehouseOZONListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + 'name': value['name'], + 'short_name': value['short_name'], + 'address': value['address'], + 'timezone': value['timezone'], + 'is_active': value['is_active'], + 'warehouse_type': (0, WarehouseOZONListResponseWarehouseWarehouseTypeEnum_1.WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON)(value['warehouse_type']), + 'country_iso_numeric': value['country_iso_numeric'], + 'is_cross_dock': value['is_cross_dock'], + 'is_distribution_center': value['is_distribution_center'], + 'is_edo': value['is_edo'], + 'is_express': value['is_express'], + 'is_for_supply': value['is_for_supply'], + }; +} diff --git a/dist/models/V1WarehouseWithInvalidProductsResponse.d.ts b/dist/models/V1WarehouseWithInvalidProductsResponse.d.ts new file mode 100644 index 0000000..23ca34a --- /dev/null +++ b/dist/models/V1WarehouseWithInvalidProductsResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V1WarehouseWithInvalidProductsResponse + */ +export interface V1WarehouseWithInvalidProductsResponse { + /** + * Список идентификаторов складов, у которых есть хотя бы 1 товар, который недоступен для доставки со склада. Чтобы получить список товаров с ограничениями, используйте метод [/v1/warehouse/invalid-products/get](#operation/WarehouseInvalidProductsGet). + * @type {Array} + * @memberof V1WarehouseWithInvalidProductsResponse + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the V1WarehouseWithInvalidProductsResponse interface. + */ +export declare function instanceOfV1WarehouseWithInvalidProductsResponse(value: object): value is V1WarehouseWithInvalidProductsResponse; +export declare function V1WarehouseWithInvalidProductsResponseFromJSON(json: any): V1WarehouseWithInvalidProductsResponse; +export declare function V1WarehouseWithInvalidProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1WarehouseWithInvalidProductsResponse; +export declare function V1WarehouseWithInvalidProductsResponseToJSON(value?: V1WarehouseWithInvalidProductsResponse | null): any; diff --git a/dist/models/V1WarehouseWithInvalidProductsResponse.js b/dist/models/V1WarehouseWithInvalidProductsResponse.js new file mode 100644 index 0000000..67f969f --- /dev/null +++ b/dist/models/V1WarehouseWithInvalidProductsResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1WarehouseWithInvalidProductsResponse = instanceOfV1WarehouseWithInvalidProductsResponse; +exports.V1WarehouseWithInvalidProductsResponseFromJSON = V1WarehouseWithInvalidProductsResponseFromJSON; +exports.V1WarehouseWithInvalidProductsResponseFromJSONTyped = V1WarehouseWithInvalidProductsResponseFromJSONTyped; +exports.V1WarehouseWithInvalidProductsResponseToJSON = V1WarehouseWithInvalidProductsResponseToJSON; +/** + * Check if a given object implements the V1WarehouseWithInvalidProductsResponse interface. + */ +function instanceOfV1WarehouseWithInvalidProductsResponse(value) { + return true; +} +function V1WarehouseWithInvalidProductsResponseFromJSON(json) { + return V1WarehouseWithInvalidProductsResponseFromJSONTyped(json, false); +} +function V1WarehouseWithInvalidProductsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function V1WarehouseWithInvalidProductsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/V1fbpDeliveryDetails.d.ts b/dist/models/V1fbpDeliveryDetails.d.ts new file mode 100644 index 0000000..01f1d29 --- /dev/null +++ b/dist/models/V1fbpDeliveryDetails.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1DeliveryDetailsPickUpDetails } from './V1DeliveryDetailsPickUpDetails'; +import type { DeliveryDetailsSupplyType } from './DeliveryDetailsSupplyType'; +import type { V1DeliveryDetailsDirectDetails } from './V1DeliveryDetailsDirectDetails'; +import type { DeliveryDetailsDropOffPointDetails } from './DeliveryDetailsDropOffPointDetails'; +/** + * Детали доставки. + * @export + * @interface V1fbpDeliveryDetails + */ +export interface V1fbpDeliveryDetails { + /** + * + * @type {V1DeliveryDetailsDirectDetails} + * @memberof V1fbpDeliveryDetails + */ + direct_details?: V1DeliveryDetailsDirectDetails; + /** + * + * @type {DeliveryDetailsDropOffPointDetails} + * @memberof V1fbpDeliveryDetails + */ + drop_off_point?: DeliveryDetailsDropOffPointDetails; + /** + * + * @type {V1DeliveryDetailsPickUpDetails} + * @memberof V1fbpDeliveryDetails + */ + pickup_details?: V1DeliveryDetailsPickUpDetails; + /** + * + * @type {DeliveryDetailsSupplyType} + * @memberof V1fbpDeliveryDetails + */ + supply_type?: DeliveryDetailsSupplyType; +} +/** + * Check if a given object implements the V1fbpDeliveryDetails interface. + */ +export declare function instanceOfV1fbpDeliveryDetails(value: object): value is V1fbpDeliveryDetails; +export declare function V1fbpDeliveryDetailsFromJSON(json: any): V1fbpDeliveryDetails; +export declare function V1fbpDeliveryDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1fbpDeliveryDetails; +export declare function V1fbpDeliveryDetailsToJSON(value?: V1fbpDeliveryDetails | null): any; diff --git a/dist/models/V1fbpDeliveryDetails.js b/dist/models/V1fbpDeliveryDetails.js new file mode 100644 index 0000000..b2cdd48 --- /dev/null +++ b/dist/models/V1fbpDeliveryDetails.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1fbpDeliveryDetails = instanceOfV1fbpDeliveryDetails; +exports.V1fbpDeliveryDetailsFromJSON = V1fbpDeliveryDetailsFromJSON; +exports.V1fbpDeliveryDetailsFromJSONTyped = V1fbpDeliveryDetailsFromJSONTyped; +exports.V1fbpDeliveryDetailsToJSON = V1fbpDeliveryDetailsToJSON; +const V1DeliveryDetailsPickUpDetails_1 = require("./V1DeliveryDetailsPickUpDetails"); +const DeliveryDetailsSupplyType_1 = require("./DeliveryDetailsSupplyType"); +const V1DeliveryDetailsDirectDetails_1 = require("./V1DeliveryDetailsDirectDetails"); +const DeliveryDetailsDropOffPointDetails_1 = require("./DeliveryDetailsDropOffPointDetails"); +/** + * Check if a given object implements the V1fbpDeliveryDetails interface. + */ +function instanceOfV1fbpDeliveryDetails(value) { + return true; +} +function V1fbpDeliveryDetailsFromJSON(json) { + return V1fbpDeliveryDetailsFromJSONTyped(json, false); +} +function V1fbpDeliveryDetailsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'direct_details': json['direct_details'] == null ? undefined : (0, V1DeliveryDetailsDirectDetails_1.V1DeliveryDetailsDirectDetailsFromJSON)(json['direct_details']), + 'drop_off_point': json['drop_off_point'] == null ? undefined : (0, DeliveryDetailsDropOffPointDetails_1.DeliveryDetailsDropOffPointDetailsFromJSON)(json['drop_off_point']), + 'pickup_details': json['pickup_details'] == null ? undefined : (0, V1DeliveryDetailsPickUpDetails_1.V1DeliveryDetailsPickUpDetailsFromJSON)(json['pickup_details']), + 'supply_type': json['supply_type'] == null ? undefined : (0, DeliveryDetailsSupplyType_1.DeliveryDetailsSupplyTypeFromJSON)(json['supply_type']), + }; +} +function V1fbpDeliveryDetailsToJSON(value) { + if (value == null) { + return value; + } + return { + 'direct_details': (0, V1DeliveryDetailsDirectDetails_1.V1DeliveryDetailsDirectDetailsToJSON)(value['direct_details']), + 'drop_off_point': (0, DeliveryDetailsDropOffPointDetails_1.DeliveryDetailsDropOffPointDetailsToJSON)(value['drop_off_point']), + 'pickup_details': (0, V1DeliveryDetailsPickUpDetails_1.V1DeliveryDetailsPickUpDetailsToJSON)(value['pickup_details']), + 'supply_type': (0, DeliveryDetailsSupplyType_1.DeliveryDetailsSupplyTypeToJSON)(value['supply_type']), + }; +} diff --git a/dist/models/V1fbpTimeslot.d.ts b/dist/models/V1fbpTimeslot.d.ts new file mode 100644 index 0000000..aa34367 --- /dev/null +++ b/dist/models/V1fbpTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Таймслот. + * @export + * @interface V1fbpTimeslot + */ +export interface V1fbpTimeslot { + /** + * Время окончания таймслота по UTC. + * @type {string} + * @memberof V1fbpTimeslot + */ + timeslot_end?: string; + /** + * Время начала таймслота по UTC. + * @type {string} + * @memberof V1fbpTimeslot + */ + timeslot_start?: string; +} +/** + * Check if a given object implements the V1fbpTimeslot interface. + */ +export declare function instanceOfV1fbpTimeslot(value: object): value is V1fbpTimeslot; +export declare function V1fbpTimeslotFromJSON(json: any): V1fbpTimeslot; +export declare function V1fbpTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1fbpTimeslot; +export declare function V1fbpTimeslotToJSON(value?: V1fbpTimeslot | null): any; diff --git a/dist/models/V1fbpTimeslot.js b/dist/models/V1fbpTimeslot.js new file mode 100644 index 0000000..6205cba --- /dev/null +++ b/dist/models/V1fbpTimeslot.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV1fbpTimeslot = instanceOfV1fbpTimeslot; +exports.V1fbpTimeslotFromJSON = V1fbpTimeslotFromJSON; +exports.V1fbpTimeslotFromJSONTyped = V1fbpTimeslotFromJSONTyped; +exports.V1fbpTimeslotToJSON = V1fbpTimeslotToJSON; +/** + * Check if a given object implements the V1fbpTimeslot interface. + */ +function instanceOfV1fbpTimeslot(value) { + return true; +} +function V1fbpTimeslotFromJSON(json) { + return V1fbpTimeslotFromJSONTyped(json, false); +} +function V1fbpTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timeslot_end': json['timeslot_end'] == null ? undefined : json['timeslot_end'], + 'timeslot_start': json['timeslot_start'] == null ? undefined : json['timeslot_start'], + }; +} +function V1fbpTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'timeslot_end': value['timeslot_end'], + 'timeslot_start': value['timeslot_start'], + }; +} diff --git a/dist/models/V2AdditionalDataItem.d.ts b/dist/models/V2AdditionalDataItem.d.ts new file mode 100644 index 0000000..f85e2fc --- /dev/null +++ b/dist/models/V2AdditionalDataItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Дополнительная информация. + * @export + * @interface V2AdditionalDataItem + */ +export interface V2AdditionalDataItem { + /** + * + * @type {string} + * @memberof V2AdditionalDataItem + */ + key?: string; + /** + * + * @type {string} + * @memberof V2AdditionalDataItem + */ + value?: string; +} +/** + * Check if a given object implements the V2AdditionalDataItem interface. + */ +export declare function instanceOfV2AdditionalDataItem(value: object): value is V2AdditionalDataItem; +export declare function V2AdditionalDataItemFromJSON(json: any): V2AdditionalDataItem; +export declare function V2AdditionalDataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2AdditionalDataItem; +export declare function V2AdditionalDataItemToJSON(value?: V2AdditionalDataItem | null): any; diff --git a/dist/models/V2AdditionalDataItem.js b/dist/models/V2AdditionalDataItem.js new file mode 100644 index 0000000..e4e6c74 --- /dev/null +++ b/dist/models/V2AdditionalDataItem.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2AdditionalDataItem = instanceOfV2AdditionalDataItem; +exports.V2AdditionalDataItemFromJSON = V2AdditionalDataItemFromJSON; +exports.V2AdditionalDataItemFromJSONTyped = V2AdditionalDataItemFromJSONTyped; +exports.V2AdditionalDataItemToJSON = V2AdditionalDataItemToJSON; +/** + * Check if a given object implements the V2AdditionalDataItem interface. + */ +function instanceOfV2AdditionalDataItem(value) { + return true; +} +function V2AdditionalDataItemFromJSON(json) { + return V2AdditionalDataItemFromJSONTyped(json, false); +} +function V2AdditionalDataItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V2AdditionalDataItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/V2CancellationInitiatorEnum.d.ts b/dist/models/V2CancellationInitiatorEnum.d.ts new file mode 100644 index 0000000..d015ab8 --- /dev/null +++ b/dist/models/V2CancellationInitiatorEnum.d.ts @@ -0,0 +1,33 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Инициатор отмены: + * - `SELLER` — продавец, + * - `CLIENT` — покупатель, + * - `OZON` — Ozon, + * - `SYSTEM` — система, + * - `DELIVERY` — служба доставки. + * + * @export + */ +export declare const V2CancellationInitiatorEnum: { + readonly OZON: "OZON"; + readonly SELLER: "SELLER"; + readonly CLIENT: "CLIENT"; + readonly SYSTEM: "SYSTEM"; + readonly DELIVERY: "DELIVERY"; +}; +export type V2CancellationInitiatorEnum = typeof V2CancellationInitiatorEnum[keyof typeof V2CancellationInitiatorEnum]; +export declare function instanceOfV2CancellationInitiatorEnum(value: any): boolean; +export declare function V2CancellationInitiatorEnumFromJSON(json: any): V2CancellationInitiatorEnum; +export declare function V2CancellationInitiatorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CancellationInitiatorEnum; +export declare function V2CancellationInitiatorEnumToJSON(value?: V2CancellationInitiatorEnum | null): any; diff --git a/dist/models/V2CancellationInitiatorEnum.js b/dist/models/V2CancellationInitiatorEnum.js new file mode 100644 index 0000000..3c79601 --- /dev/null +++ b/dist/models/V2CancellationInitiatorEnum.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2CancellationInitiatorEnum = void 0; +exports.instanceOfV2CancellationInitiatorEnum = instanceOfV2CancellationInitiatorEnum; +exports.V2CancellationInitiatorEnumFromJSON = V2CancellationInitiatorEnumFromJSON; +exports.V2CancellationInitiatorEnumFromJSONTyped = V2CancellationInitiatorEnumFromJSONTyped; +exports.V2CancellationInitiatorEnumToJSON = V2CancellationInitiatorEnumToJSON; +/** + * Инициатор отмены: + * - `SELLER` — продавец, + * - `CLIENT` — покупатель, + * - `OZON` — Ozon, + * - `SYSTEM` — система, + * - `DELIVERY` — служба доставки. + * + * @export + */ +exports.V2CancellationInitiatorEnum = { + OZON: 'OZON', + SELLER: 'SELLER', + CLIENT: 'CLIENT', + SYSTEM: 'SYSTEM', + DELIVERY: 'DELIVERY' +}; +function instanceOfV2CancellationInitiatorEnum(value) { + for (const key in exports.V2CancellationInitiatorEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2CancellationInitiatorEnum, key)) { + if (exports.V2CancellationInitiatorEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2CancellationInitiatorEnumFromJSON(json) { + return V2CancellationInitiatorEnumFromJSONTyped(json, false); +} +function V2CancellationInitiatorEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2CancellationInitiatorEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2CancellationStateEnum.d.ts b/dist/models/V2CancellationStateEnum.d.ts new file mode 100644 index 0000000..1021a41 --- /dev/null +++ b/dist/models/V2CancellationStateEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки: + * - `ON_APPROVAL` — заявка на рассмотрении, + * - `APPROVED` — подтверждённая заявка, + * - `REJECTED` — отклонённая заявка. + * + * @export + */ +export declare const V2CancellationStateEnum: { + readonly ON_APPROVAL: "ON_APPROVAL"; + readonly APPROVED: "APPROVED"; + readonly REJECTED: "REJECTED"; +}; +export type V2CancellationStateEnum = typeof V2CancellationStateEnum[keyof typeof V2CancellationStateEnum]; +export declare function instanceOfV2CancellationStateEnum(value: any): boolean; +export declare function V2CancellationStateEnumFromJSON(json: any): V2CancellationStateEnum; +export declare function V2CancellationStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CancellationStateEnum; +export declare function V2CancellationStateEnumToJSON(value?: V2CancellationStateEnum | null): any; diff --git a/dist/models/V2CancellationStateEnum.js b/dist/models/V2CancellationStateEnum.js new file mode 100644 index 0000000..cf09f62 --- /dev/null +++ b/dist/models/V2CancellationStateEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2CancellationStateEnum = void 0; +exports.instanceOfV2CancellationStateEnum = instanceOfV2CancellationStateEnum; +exports.V2CancellationStateEnumFromJSON = V2CancellationStateEnumFromJSON; +exports.V2CancellationStateEnumFromJSONTyped = V2CancellationStateEnumFromJSONTyped; +exports.V2CancellationStateEnumToJSON = V2CancellationStateEnumToJSON; +/** + * Статус заявки: + * - `ON_APPROVAL` — заявка на рассмотрении, + * - `APPROVED` — подтверждённая заявка, + * - `REJECTED` — отклонённая заявка. + * + * @export + */ +exports.V2CancellationStateEnum = { + ON_APPROVAL: 'ON_APPROVAL', + APPROVED: 'APPROVED', + REJECTED: 'REJECTED' +}; +function instanceOfV2CancellationStateEnum(value) { + for (const key in exports.V2CancellationStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2CancellationStateEnum, key)) { + if (exports.V2CancellationStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2CancellationStateEnumFromJSON(json) { + return V2CancellationStateEnumFromJSONTyped(json, false); +} +function V2CancellationStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2CancellationStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2CancellationStateEnumFilters.d.ts b/dist/models/V2CancellationStateEnumFilters.d.ts new file mode 100644 index 0000000..51ded73 --- /dev/null +++ b/dist/models/V2CancellationStateEnumFilters.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по статусу заявки на отмену: + * - `ALL` — заявки в любом статусе, + * - `ON_APPROVAL` — заявки на рассмотрении, + * - `APPROVED` — подтверждённые заявки, + * - `REJECTED` — отклонённые заявки. + * + * @export + */ +export declare const V2CancellationStateEnumFilters: { + readonly ALL: "ALL"; + readonly ON_APPROVAL: "ON_APPROVAL"; + readonly APPROVED: "APPROVED"; + readonly REJECTED: "REJECTED"; +}; +export type V2CancellationStateEnumFilters = typeof V2CancellationStateEnumFilters[keyof typeof V2CancellationStateEnumFilters]; +export declare function instanceOfV2CancellationStateEnumFilters(value: any): boolean; +export declare function V2CancellationStateEnumFiltersFromJSON(json: any): V2CancellationStateEnumFilters; +export declare function V2CancellationStateEnumFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CancellationStateEnumFilters; +export declare function V2CancellationStateEnumFiltersToJSON(value?: V2CancellationStateEnumFilters | null): any; diff --git a/dist/models/V2CancellationStateEnumFilters.js b/dist/models/V2CancellationStateEnumFilters.js new file mode 100644 index 0000000..ff3160e --- /dev/null +++ b/dist/models/V2CancellationStateEnumFilters.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2CancellationStateEnumFilters = void 0; +exports.instanceOfV2CancellationStateEnumFilters = instanceOfV2CancellationStateEnumFilters; +exports.V2CancellationStateEnumFiltersFromJSON = V2CancellationStateEnumFiltersFromJSON; +exports.V2CancellationStateEnumFiltersFromJSONTyped = V2CancellationStateEnumFiltersFromJSONTyped; +exports.V2CancellationStateEnumFiltersToJSON = V2CancellationStateEnumFiltersToJSON; +/** + * Фильтр по статусу заявки на отмену: + * - `ALL` — заявки в любом статусе, + * - `ON_APPROVAL` — заявки на рассмотрении, + * - `APPROVED` — подтверждённые заявки, + * - `REJECTED` — отклонённые заявки. + * + * @export + */ +exports.V2CancellationStateEnumFilters = { + ALL: 'ALL', + ON_APPROVAL: 'ON_APPROVAL', + APPROVED: 'APPROVED', + REJECTED: 'REJECTED' +}; +function instanceOfV2CancellationStateEnumFilters(value) { + for (const key in exports.V2CancellationStateEnumFilters) { + if (Object.prototype.hasOwnProperty.call(exports.V2CancellationStateEnumFilters, key)) { + if (exports.V2CancellationStateEnumFilters[key] === value) { + return true; + } + } + } + return false; +} +function V2CancellationStateEnumFiltersFromJSON(json) { + return V2CancellationStateEnumFiltersFromJSONTyped(json, false); +} +function V2CancellationStateEnumFiltersFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2CancellationStateEnumFiltersToJSON(value) { + return value; +} diff --git a/dist/models/V2CargoesCreateErrors.d.ts b/dist/models/V2CargoesCreateErrors.d.ts new file mode 100644 index 0000000..1eb8284 --- /dev/null +++ b/dist/models/V2CargoesCreateErrors.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesCreateV2ErrorsItemValidation } from './CargoesCreateV2ErrorsItemValidation'; +import type { CargoesCreateErrorsReasonEnum } from './CargoesCreateErrorsReasonEnum'; +/** + * Ошибки. + * @export + * @interface V2CargoesCreateErrors + */ +export interface V2CargoesCreateErrors { + /** + * Причина ошибки: + * - `INVALID_STATE` — недопустимое состояние поставки; + * - `VALIDATION_FAILED` — ошибки валидации; + * - `WAREHOUSE_LIMITS_EXCEED` — превышены лимиты склада; + * - `SUPPLY_NOT_BELONG_CONTRACTOR` — поставка не относится к указанному контрагенту; + * - `SUPPLY_NOT_BELONG_COMPANY` — поставка не относится к указанной компании; + * - `IS_FINALIZED` — редактирование поставки недоступно; + * - `SKU_DISTRIBUTION_DISABLED` — распределение состава недоступно; + * - `SUPPLY_IS_NOT_EMPTY` — поставка содержит распределение состава; + * - `OPERATION_NOT_FOUND` — операция не найдена; + * - `OPERATION_FAILED` — ошибка при обработке операции. + * + * @type {Array} + * @memberof V2CargoesCreateErrors + */ + error_reasons?: Array; + /** + * Ошибки валидации. + * @type {Array} + * @memberof V2CargoesCreateErrors + */ + items_validation?: Array; +} +/** + * Check if a given object implements the V2CargoesCreateErrors interface. + */ +export declare function instanceOfV2CargoesCreateErrors(value: object): value is V2CargoesCreateErrors; +export declare function V2CargoesCreateErrorsFromJSON(json: any): V2CargoesCreateErrors; +export declare function V2CargoesCreateErrorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CargoesCreateErrors; +export declare function V2CargoesCreateErrorsToJSON(value?: V2CargoesCreateErrors | null): any; diff --git a/dist/models/V2CargoesCreateErrors.js b/dist/models/V2CargoesCreateErrors.js new file mode 100644 index 0000000..1c4fb0f --- /dev/null +++ b/dist/models/V2CargoesCreateErrors.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2CargoesCreateErrors = instanceOfV2CargoesCreateErrors; +exports.V2CargoesCreateErrorsFromJSON = V2CargoesCreateErrorsFromJSON; +exports.V2CargoesCreateErrorsFromJSONTyped = V2CargoesCreateErrorsFromJSONTyped; +exports.V2CargoesCreateErrorsToJSON = V2CargoesCreateErrorsToJSON; +const CargoesCreateV2ErrorsItemValidation_1 = require("./CargoesCreateV2ErrorsItemValidation"); +const CargoesCreateErrorsReasonEnum_1 = require("./CargoesCreateErrorsReasonEnum"); +/** + * Check if a given object implements the V2CargoesCreateErrors interface. + */ +function instanceOfV2CargoesCreateErrors(value) { + return true; +} +function V2CargoesCreateErrorsFromJSON(json) { + return V2CargoesCreateErrorsFromJSONTyped(json, false); +} +function V2CargoesCreateErrorsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(CargoesCreateErrorsReasonEnum_1.CargoesCreateErrorsReasonEnumFromJSON)), + 'items_validation': json['items_validation'] == null ? undefined : (json['items_validation'].map(CargoesCreateV2ErrorsItemValidation_1.CargoesCreateV2ErrorsItemValidationFromJSON)), + }; +} +function V2CargoesCreateErrorsToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(CargoesCreateErrorsReasonEnum_1.CargoesCreateErrorsReasonEnumToJSON)), + 'items_validation': value['items_validation'] == null ? undefined : (value['items_validation'].map(CargoesCreateV2ErrorsItemValidation_1.CargoesCreateV2ErrorsItemValidationToJSON)), + }; +} diff --git a/dist/models/V2CargoesCreateInfoV2Request.d.ts b/dist/models/V2CargoesCreateInfoV2Request.d.ts new file mode 100644 index 0000000..b223399 --- /dev/null +++ b/dist/models/V2CargoesCreateInfoV2Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2CargoesCreateInfoV2Request + */ +export interface V2CargoesCreateInfoV2Request { + /** + * Идентификатор операции. + * @type {string} + * @memberof V2CargoesCreateInfoV2Request + */ + operation_id: string; +} +/** + * Check if a given object implements the V2CargoesCreateInfoV2Request interface. + */ +export declare function instanceOfV2CargoesCreateInfoV2Request(value: object): value is V2CargoesCreateInfoV2Request; +export declare function V2CargoesCreateInfoV2RequestFromJSON(json: any): V2CargoesCreateInfoV2Request; +export declare function V2CargoesCreateInfoV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CargoesCreateInfoV2Request; +export declare function V2CargoesCreateInfoV2RequestToJSON(value?: V2CargoesCreateInfoV2Request | null): any; diff --git a/dist/models/V2CargoesCreateInfoV2Request.js b/dist/models/V2CargoesCreateInfoV2Request.js new file mode 100644 index 0000000..c9c917b --- /dev/null +++ b/dist/models/V2CargoesCreateInfoV2Request.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2CargoesCreateInfoV2Request = instanceOfV2CargoesCreateInfoV2Request; +exports.V2CargoesCreateInfoV2RequestFromJSON = V2CargoesCreateInfoV2RequestFromJSON; +exports.V2CargoesCreateInfoV2RequestFromJSONTyped = V2CargoesCreateInfoV2RequestFromJSONTyped; +exports.V2CargoesCreateInfoV2RequestToJSON = V2CargoesCreateInfoV2RequestToJSON; +/** + * Check if a given object implements the V2CargoesCreateInfoV2Request interface. + */ +function instanceOfV2CargoesCreateInfoV2Request(value) { + if (!('operation_id' in value) || value['operation_id'] === undefined) + return false; + return true; +} +function V2CargoesCreateInfoV2RequestFromJSON(json) { + return V2CargoesCreateInfoV2RequestFromJSONTyped(json, false); +} +function V2CargoesCreateInfoV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'], + }; +} +function V2CargoesCreateInfoV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/V2CargoesCreateInfoV2Response.d.ts b/dist/models/V2CargoesCreateInfoV2Response.d.ts new file mode 100644 index 0000000..3bfbe0d --- /dev/null +++ b/dist/models/V2CargoesCreateInfoV2Response.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CargoesCreateInfoV2ResponseStatusEnum } from './CargoesCreateInfoV2ResponseStatusEnum'; +import type { V2CargoesCreateErrors } from './V2CargoesCreateErrors'; +import type { CargoesCreateInfoV2ResponseResult } from './CargoesCreateInfoV2ResponseResult'; +/** + * + * @export + * @interface V2CargoesCreateInfoV2Response + */ +export interface V2CargoesCreateInfoV2Response { + /** + * + * @type {V2CargoesCreateErrors} + * @memberof V2CargoesCreateInfoV2Response + */ + errors?: V2CargoesCreateErrors; + /** + * + * @type {CargoesCreateInfoV2ResponseResult} + * @memberof V2CargoesCreateInfoV2Response + */ + result?: CargoesCreateInfoV2ResponseResult; + /** + * + * @type {CargoesCreateInfoV2ResponseStatusEnum} + * @memberof V2CargoesCreateInfoV2Response + */ + status?: CargoesCreateInfoV2ResponseStatusEnum; +} +/** + * Check if a given object implements the V2CargoesCreateInfoV2Response interface. + */ +export declare function instanceOfV2CargoesCreateInfoV2Response(value: object): value is V2CargoesCreateInfoV2Response; +export declare function V2CargoesCreateInfoV2ResponseFromJSON(json: any): V2CargoesCreateInfoV2Response; +export declare function V2CargoesCreateInfoV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CargoesCreateInfoV2Response; +export declare function V2CargoesCreateInfoV2ResponseToJSON(value?: V2CargoesCreateInfoV2Response | null): any; diff --git a/dist/models/V2CargoesCreateInfoV2Response.js b/dist/models/V2CargoesCreateInfoV2Response.js new file mode 100644 index 0000000..b84d266 --- /dev/null +++ b/dist/models/V2CargoesCreateInfoV2Response.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2CargoesCreateInfoV2Response = instanceOfV2CargoesCreateInfoV2Response; +exports.V2CargoesCreateInfoV2ResponseFromJSON = V2CargoesCreateInfoV2ResponseFromJSON; +exports.V2CargoesCreateInfoV2ResponseFromJSONTyped = V2CargoesCreateInfoV2ResponseFromJSONTyped; +exports.V2CargoesCreateInfoV2ResponseToJSON = V2CargoesCreateInfoV2ResponseToJSON; +const CargoesCreateInfoV2ResponseStatusEnum_1 = require("./CargoesCreateInfoV2ResponseStatusEnum"); +const V2CargoesCreateErrors_1 = require("./V2CargoesCreateErrors"); +const CargoesCreateInfoV2ResponseResult_1 = require("./CargoesCreateInfoV2ResponseResult"); +/** + * Check if a given object implements the V2CargoesCreateInfoV2Response interface. + */ +function instanceOfV2CargoesCreateInfoV2Response(value) { + return true; +} +function V2CargoesCreateInfoV2ResponseFromJSON(json) { + return V2CargoesCreateInfoV2ResponseFromJSONTyped(json, false); +} +function V2CargoesCreateInfoV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : (0, V2CargoesCreateErrors_1.V2CargoesCreateErrorsFromJSON)(json['errors']), + 'result': json['result'] == null ? undefined : (0, CargoesCreateInfoV2ResponseResult_1.CargoesCreateInfoV2ResponseResultFromJSON)(json['result']), + 'status': json['status'] == null ? undefined : (0, CargoesCreateInfoV2ResponseStatusEnum_1.CargoesCreateInfoV2ResponseStatusEnumFromJSON)(json['status']), + }; +} +function V2CargoesCreateInfoV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': (0, V2CargoesCreateErrors_1.V2CargoesCreateErrorsToJSON)(value['errors']), + 'result': (0, CargoesCreateInfoV2ResponseResult_1.CargoesCreateInfoV2ResponseResultToJSON)(value['result']), + 'status': (0, CargoesCreateInfoV2ResponseStatusEnum_1.CargoesCreateInfoV2ResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/V2CarriageDeliveryListV2Request.d.ts b/dist/models/V2CarriageDeliveryListV2Request.d.ts new file mode 100644 index 0000000..7a50c73 --- /dev/null +++ b/dist/models/V2CarriageDeliveryListV2Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CarriageDeliveryListV2RequestFilter } from './CarriageDeliveryListV2RequestFilter'; +/** + * + * @export + * @interface V2CarriageDeliveryListV2Request + */ +export interface V2CarriageDeliveryListV2Request { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2CarriageDeliveryListV2Request + */ + cursor?: string; + /** + * + * @type {CarriageDeliveryListV2RequestFilter} + * @memberof V2CarriageDeliveryListV2Request + */ + filter?: CarriageDeliveryListV2RequestFilter; + /** + * Количество значений на странице. + * @type {number} + * @memberof V2CarriageDeliveryListV2Request + */ + limit: number; +} +/** + * Check if a given object implements the V2CarriageDeliveryListV2Request interface. + */ +export declare function instanceOfV2CarriageDeliveryListV2Request(value: object): value is V2CarriageDeliveryListV2Request; +export declare function V2CarriageDeliveryListV2RequestFromJSON(json: any): V2CarriageDeliveryListV2Request; +export declare function V2CarriageDeliveryListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CarriageDeliveryListV2Request; +export declare function V2CarriageDeliveryListV2RequestToJSON(value?: V2CarriageDeliveryListV2Request | null): any; diff --git a/dist/models/V2CarriageDeliveryListV2Request.js b/dist/models/V2CarriageDeliveryListV2Request.js new file mode 100644 index 0000000..92ed1d1 --- /dev/null +++ b/dist/models/V2CarriageDeliveryListV2Request.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2CarriageDeliveryListV2Request = instanceOfV2CarriageDeliveryListV2Request; +exports.V2CarriageDeliveryListV2RequestFromJSON = V2CarriageDeliveryListV2RequestFromJSON; +exports.V2CarriageDeliveryListV2RequestFromJSONTyped = V2CarriageDeliveryListV2RequestFromJSONTyped; +exports.V2CarriageDeliveryListV2RequestToJSON = V2CarriageDeliveryListV2RequestToJSON; +const CarriageDeliveryListV2RequestFilter_1 = require("./CarriageDeliveryListV2RequestFilter"); +/** + * Check if a given object implements the V2CarriageDeliveryListV2Request interface. + */ +function instanceOfV2CarriageDeliveryListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V2CarriageDeliveryListV2RequestFromJSON(json) { + return V2CarriageDeliveryListV2RequestFromJSONTyped(json, false); +} +function V2CarriageDeliveryListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, CarriageDeliveryListV2RequestFilter_1.CarriageDeliveryListV2RequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function V2CarriageDeliveryListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, CarriageDeliveryListV2RequestFilter_1.CarriageDeliveryListV2RequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/V2CarriageDeliveryListV2Response.d.ts b/dist/models/V2CarriageDeliveryListV2Response.d.ts new file mode 100644 index 0000000..6f31aaa --- /dev/null +++ b/dist/models/V2CarriageDeliveryListV2Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CarriageDeliveryListV2ResponseDeliveryMethod } from './CarriageDeliveryListV2ResponseDeliveryMethod'; +/** + * + * @export + * @interface V2CarriageDeliveryListV2Response + */ +export interface V2CarriageDeliveryListV2Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2CarriageDeliveryListV2Response + */ + cursor?: string; + /** + * `true`, если в ответе вернулись не все методы доставки. + * + * @type {boolean} + * @memberof V2CarriageDeliveryListV2Response + */ + has_next?: boolean; + /** + * Список методов доставки. + * @type {Array} + * @memberof V2CarriageDeliveryListV2Response + */ + methods?: Array; +} +/** + * Check if a given object implements the V2CarriageDeliveryListV2Response interface. + */ +export declare function instanceOfV2CarriageDeliveryListV2Response(value: object): value is V2CarriageDeliveryListV2Response; +export declare function V2CarriageDeliveryListV2ResponseFromJSON(json: any): V2CarriageDeliveryListV2Response; +export declare function V2CarriageDeliveryListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CarriageDeliveryListV2Response; +export declare function V2CarriageDeliveryListV2ResponseToJSON(value?: V2CarriageDeliveryListV2Response | null): any; diff --git a/dist/models/V2CarriageDeliveryListV2Response.js b/dist/models/V2CarriageDeliveryListV2Response.js new file mode 100644 index 0000000..90a9fa3 --- /dev/null +++ b/dist/models/V2CarriageDeliveryListV2Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2CarriageDeliveryListV2Response = instanceOfV2CarriageDeliveryListV2Response; +exports.V2CarriageDeliveryListV2ResponseFromJSON = V2CarriageDeliveryListV2ResponseFromJSON; +exports.V2CarriageDeliveryListV2ResponseFromJSONTyped = V2CarriageDeliveryListV2ResponseFromJSONTyped; +exports.V2CarriageDeliveryListV2ResponseToJSON = V2CarriageDeliveryListV2ResponseToJSON; +const CarriageDeliveryListV2ResponseDeliveryMethod_1 = require("./CarriageDeliveryListV2ResponseDeliveryMethod"); +/** + * Check if a given object implements the V2CarriageDeliveryListV2Response interface. + */ +function instanceOfV2CarriageDeliveryListV2Response(value) { + return true; +} +function V2CarriageDeliveryListV2ResponseFromJSON(json) { + return V2CarriageDeliveryListV2ResponseFromJSONTyped(json, false); +} +function V2CarriageDeliveryListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'methods': json['methods'] == null ? undefined : (json['methods'].map(CarriageDeliveryListV2ResponseDeliveryMethod_1.CarriageDeliveryListV2ResponseDeliveryMethodFromJSON)), + }; +} +function V2CarriageDeliveryListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'methods': value['methods'] == null ? undefined : (value['methods'].map(CarriageDeliveryListV2ResponseDeliveryMethod_1.CarriageDeliveryListV2ResponseDeliveryMethodToJSON)), + }; +} diff --git a/dist/models/V2ChatReadResponse.d.ts b/dist/models/V2ChatReadResponse.d.ts new file mode 100644 index 0000000..204506a --- /dev/null +++ b/dist/models/V2ChatReadResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ChatReadResponse + */ +export interface V2ChatReadResponse { + /** + * Количество непрочитанных сообщений в чате. + * @type {number} + * @memberof V2ChatReadResponse + */ + unread_count?: number; +} +/** + * Check if a given object implements the V2ChatReadResponse interface. + */ +export declare function instanceOfV2ChatReadResponse(value: object): value is V2ChatReadResponse; +export declare function V2ChatReadResponseFromJSON(json: any): V2ChatReadResponse; +export declare function V2ChatReadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ChatReadResponse; +export declare function V2ChatReadResponseToJSON(value?: V2ChatReadResponse | null): any; diff --git a/dist/models/V2ChatReadResponse.js b/dist/models/V2ChatReadResponse.js new file mode 100644 index 0000000..57d551c --- /dev/null +++ b/dist/models/V2ChatReadResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ChatReadResponse = instanceOfV2ChatReadResponse; +exports.V2ChatReadResponseFromJSON = V2ChatReadResponseFromJSON; +exports.V2ChatReadResponseFromJSONTyped = V2ChatReadResponseFromJSONTyped; +exports.V2ChatReadResponseToJSON = V2ChatReadResponseToJSON; +/** + * Check if a given object implements the V2ChatReadResponse interface. + */ +function instanceOfV2ChatReadResponse(value) { + return true; +} +function V2ChatReadResponseFromJSON(json) { + return V2ChatReadResponseFromJSONTyped(json, false); +} +function V2ChatReadResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'unread_count': json['unread_count'] == null ? undefined : json['unread_count'], + }; +} +function V2ChatReadResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'unread_count': value['unread_count'], + }; +} diff --git a/dist/models/V2ConditionalCancellationMoveV2Request.d.ts b/dist/models/V2ConditionalCancellationMoveV2Request.d.ts new file mode 100644 index 0000000..2105cb9 --- /dev/null +++ b/dist/models/V2ConditionalCancellationMoveV2Request.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ConditionalCancellationMoveV2Request + */ +export interface V2ConditionalCancellationMoveV2Request { + /** + * Идентификатор заявки на отмену. + * @type {number} + * @memberof V2ConditionalCancellationMoveV2Request + */ + cancellation_id: number; + /** + * Комментарий. + * @type {string} + * @memberof V2ConditionalCancellationMoveV2Request + */ + comment?: string; +} +/** + * Check if a given object implements the V2ConditionalCancellationMoveV2Request interface. + */ +export declare function instanceOfV2ConditionalCancellationMoveV2Request(value: object): value is V2ConditionalCancellationMoveV2Request; +export declare function V2ConditionalCancellationMoveV2RequestFromJSON(json: any): V2ConditionalCancellationMoveV2Request; +export declare function V2ConditionalCancellationMoveV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ConditionalCancellationMoveV2Request; +export declare function V2ConditionalCancellationMoveV2RequestToJSON(value?: V2ConditionalCancellationMoveV2Request | null): any; diff --git a/dist/models/V2ConditionalCancellationMoveV2Request.js b/dist/models/V2ConditionalCancellationMoveV2Request.js new file mode 100644 index 0000000..9ae56ae --- /dev/null +++ b/dist/models/V2ConditionalCancellationMoveV2Request.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ConditionalCancellationMoveV2Request = instanceOfV2ConditionalCancellationMoveV2Request; +exports.V2ConditionalCancellationMoveV2RequestFromJSON = V2ConditionalCancellationMoveV2RequestFromJSON; +exports.V2ConditionalCancellationMoveV2RequestFromJSONTyped = V2ConditionalCancellationMoveV2RequestFromJSONTyped; +exports.V2ConditionalCancellationMoveV2RequestToJSON = V2ConditionalCancellationMoveV2RequestToJSON; +/** + * Check if a given object implements the V2ConditionalCancellationMoveV2Request interface. + */ +function instanceOfV2ConditionalCancellationMoveV2Request(value) { + if (!('cancellation_id' in value) || value['cancellation_id'] === undefined) + return false; + return true; +} +function V2ConditionalCancellationMoveV2RequestFromJSON(json) { + return V2ConditionalCancellationMoveV2RequestFromJSONTyped(json, false); +} +function V2ConditionalCancellationMoveV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cancellation_id': json['cancellation_id'], + 'comment': json['comment'] == null ? undefined : json['comment'], + }; +} +function V2ConditionalCancellationMoveV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cancellation_id': value['cancellation_id'], + 'comment': value['comment'], + }; +} diff --git a/dist/models/V2CreateLabelBatchResponse.d.ts b/dist/models/V2CreateLabelBatchResponse.d.ts new file mode 100644 index 0000000..bda3917 --- /dev/null +++ b/dist/models/V2CreateLabelBatchResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CreateLabelBatchResponseResult } from './V2CreateLabelBatchResponseResult'; +/** + * + * @export + * @interface V2CreateLabelBatchResponse + */ +export interface V2CreateLabelBatchResponse { + /** + * + * @type {V2CreateLabelBatchResponseResult} + * @memberof V2CreateLabelBatchResponse + */ + result?: V2CreateLabelBatchResponseResult; +} +/** + * Check if a given object implements the V2CreateLabelBatchResponse interface. + */ +export declare function instanceOfV2CreateLabelBatchResponse(value: object): value is V2CreateLabelBatchResponse; +export declare function V2CreateLabelBatchResponseFromJSON(json: any): V2CreateLabelBatchResponse; +export declare function V2CreateLabelBatchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CreateLabelBatchResponse; +export declare function V2CreateLabelBatchResponseToJSON(value?: V2CreateLabelBatchResponse | null): any; diff --git a/dist/models/V2CreateLabelBatchResponse.js b/dist/models/V2CreateLabelBatchResponse.js new file mode 100644 index 0000000..a39bf70 --- /dev/null +++ b/dist/models/V2CreateLabelBatchResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2CreateLabelBatchResponse = instanceOfV2CreateLabelBatchResponse; +exports.V2CreateLabelBatchResponseFromJSON = V2CreateLabelBatchResponseFromJSON; +exports.V2CreateLabelBatchResponseFromJSONTyped = V2CreateLabelBatchResponseFromJSONTyped; +exports.V2CreateLabelBatchResponseToJSON = V2CreateLabelBatchResponseToJSON; +const V2CreateLabelBatchResponseResult_1 = require("./V2CreateLabelBatchResponseResult"); +/** + * Check if a given object implements the V2CreateLabelBatchResponse interface. + */ +function instanceOfV2CreateLabelBatchResponse(value) { + return true; +} +function V2CreateLabelBatchResponseFromJSON(json) { + return V2CreateLabelBatchResponseFromJSONTyped(json, false); +} +function V2CreateLabelBatchResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V2CreateLabelBatchResponseResult_1.V2CreateLabelBatchResponseResultFromJSON)(json['result']), + }; +} +function V2CreateLabelBatchResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V2CreateLabelBatchResponseResult_1.V2CreateLabelBatchResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V2CreateLabelBatchResponseResult.d.ts b/dist/models/V2CreateLabelBatchResponseResult.d.ts new file mode 100644 index 0000000..924f1ec --- /dev/null +++ b/dist/models/V2CreateLabelBatchResponseResult.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2CreateLabelBatchResponseResultTasks } from './V2CreateLabelBatchResponseResultTasks'; +/** + * Результат работы метода. + * @export + * @interface V2CreateLabelBatchResponseResult + */ +export interface V2CreateLabelBatchResponseResult { + /** + * Список заданий. + * @type {Array} + * @memberof V2CreateLabelBatchResponseResult + */ + tasks?: Array; +} +/** + * Check if a given object implements the V2CreateLabelBatchResponseResult interface. + */ +export declare function instanceOfV2CreateLabelBatchResponseResult(value: object): value is V2CreateLabelBatchResponseResult; +export declare function V2CreateLabelBatchResponseResultFromJSON(json: any): V2CreateLabelBatchResponseResult; +export declare function V2CreateLabelBatchResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CreateLabelBatchResponseResult; +export declare function V2CreateLabelBatchResponseResultToJSON(value?: V2CreateLabelBatchResponseResult | null): any; diff --git a/dist/models/V2CreateLabelBatchResponseResult.js b/dist/models/V2CreateLabelBatchResponseResult.js new file mode 100644 index 0000000..5c9b9a0 --- /dev/null +++ b/dist/models/V2CreateLabelBatchResponseResult.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2CreateLabelBatchResponseResult = instanceOfV2CreateLabelBatchResponseResult; +exports.V2CreateLabelBatchResponseResultFromJSON = V2CreateLabelBatchResponseResultFromJSON; +exports.V2CreateLabelBatchResponseResultFromJSONTyped = V2CreateLabelBatchResponseResultFromJSONTyped; +exports.V2CreateLabelBatchResponseResultToJSON = V2CreateLabelBatchResponseResultToJSON; +const V2CreateLabelBatchResponseResultTasks_1 = require("./V2CreateLabelBatchResponseResultTasks"); +/** + * Check if a given object implements the V2CreateLabelBatchResponseResult interface. + */ +function instanceOfV2CreateLabelBatchResponseResult(value) { + return true; +} +function V2CreateLabelBatchResponseResultFromJSON(json) { + return V2CreateLabelBatchResponseResultFromJSONTyped(json, false); +} +function V2CreateLabelBatchResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tasks': json['tasks'] == null ? undefined : (json['tasks'].map(V2CreateLabelBatchResponseResultTasks_1.V2CreateLabelBatchResponseResultTasksFromJSON)), + }; +} +function V2CreateLabelBatchResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'tasks': value['tasks'] == null ? undefined : (value['tasks'].map(V2CreateLabelBatchResponseResultTasks_1.V2CreateLabelBatchResponseResultTasksToJSON)), + }; +} diff --git a/dist/models/V2CreateLabelBatchResponseResultTasks.d.ts b/dist/models/V2CreateLabelBatchResponseResultTasks.d.ts new file mode 100644 index 0000000..6837431 --- /dev/null +++ b/dist/models/V2CreateLabelBatchResponseResultTasks.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2CreateLabelBatchResponseResultTasks + */ +export interface V2CreateLabelBatchResponseResultTasks { + /** + * Идентификатор задания на формирование этикеток. В зависимости от типа этикетки передайте значение в метод [/v1/posting/fbs/package-label/get](#operation/PostingAPI_GetLabelBatch). + * @type {number} + * @memberof V2CreateLabelBatchResponseResultTasks + */ + task_id?: number; + /** + * Тип задания на формирование этикеток: + * - `big_label` — для обычной этикетки, + * - `small_label` — для маленькой этикетки. + * + * @type {string} + * @memberof V2CreateLabelBatchResponseResultTasks + */ + task_type?: string; +} +/** + * Check if a given object implements the V2CreateLabelBatchResponseResultTasks interface. + */ +export declare function instanceOfV2CreateLabelBatchResponseResultTasks(value: object): value is V2CreateLabelBatchResponseResultTasks; +export declare function V2CreateLabelBatchResponseResultTasksFromJSON(json: any): V2CreateLabelBatchResponseResultTasks; +export declare function V2CreateLabelBatchResponseResultTasksFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2CreateLabelBatchResponseResultTasks; +export declare function V2CreateLabelBatchResponseResultTasksToJSON(value?: V2CreateLabelBatchResponseResultTasks | null): any; diff --git a/dist/models/V2CreateLabelBatchResponseResultTasks.js b/dist/models/V2CreateLabelBatchResponseResultTasks.js new file mode 100644 index 0000000..8a17bd5 --- /dev/null +++ b/dist/models/V2CreateLabelBatchResponseResultTasks.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2CreateLabelBatchResponseResultTasks = instanceOfV2CreateLabelBatchResponseResultTasks; +exports.V2CreateLabelBatchResponseResultTasksFromJSON = V2CreateLabelBatchResponseResultTasksFromJSON; +exports.V2CreateLabelBatchResponseResultTasksFromJSONTyped = V2CreateLabelBatchResponseResultTasksFromJSONTyped; +exports.V2CreateLabelBatchResponseResultTasksToJSON = V2CreateLabelBatchResponseResultTasksToJSON; +/** + * Check if a given object implements the V2CreateLabelBatchResponseResultTasks interface. + */ +function instanceOfV2CreateLabelBatchResponseResultTasks(value) { + return true; +} +function V2CreateLabelBatchResponseResultTasksFromJSON(json) { + return V2CreateLabelBatchResponseResultTasksFromJSONTyped(json, false); +} +function V2CreateLabelBatchResponseResultTasksFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + 'task_type': json['task_type'] == null ? undefined : json['task_type'], + }; +} +function V2CreateLabelBatchResponseResultTasksToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + 'task_type': value['task_type'], + }; +} diff --git a/dist/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.d.ts b/dist/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.d.ts new file mode 100644 index 0000000..ea9f451 --- /dev/null +++ b/dist/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Схема доставки: + * - `MIX` — на выбор Ozon; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +export declare const V2DeliveryCheckoutRequestV2DeliverySchemaEnum: { + readonly MIX: "MIX"; + readonly FBO: "FBO"; + readonly FBS: "FBS"; +}; +export type V2DeliveryCheckoutRequestV2DeliverySchemaEnum = typeof V2DeliveryCheckoutRequestV2DeliverySchemaEnum[keyof typeof V2DeliveryCheckoutRequestV2DeliverySchemaEnum]; +export declare function instanceOfV2DeliveryCheckoutRequestV2DeliverySchemaEnum(value: any): boolean; +export declare function V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON(json: any): V2DeliveryCheckoutRequestV2DeliverySchemaEnum; +export declare function V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DeliveryCheckoutRequestV2DeliverySchemaEnum; +export declare function V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON(value?: V2DeliveryCheckoutRequestV2DeliverySchemaEnum | null): any; diff --git a/dist/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.js b/dist/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.js new file mode 100644 index 0000000..6676002 --- /dev/null +++ b/dist/models/V2DeliveryCheckoutRequestV2DeliverySchemaEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2DeliveryCheckoutRequestV2DeliverySchemaEnum = void 0; +exports.instanceOfV2DeliveryCheckoutRequestV2DeliverySchemaEnum = instanceOfV2DeliveryCheckoutRequestV2DeliverySchemaEnum; +exports.V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON = V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON; +exports.V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSONTyped = V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSONTyped; +exports.V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON = V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON; +/** + * Схема доставки: + * - `MIX` — на выбор Ozon; + * - `FBO` — FBO; + * - `FBS` — FBS. + * + * @export + */ +exports.V2DeliveryCheckoutRequestV2DeliverySchemaEnum = { + MIX: 'MIX', + FBO: 'FBO', + FBS: 'FBS' +}; +function instanceOfV2DeliveryCheckoutRequestV2DeliverySchemaEnum(value) { + for (const key in exports.V2DeliveryCheckoutRequestV2DeliverySchemaEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2DeliveryCheckoutRequestV2DeliverySchemaEnum, key)) { + if (exports.V2DeliveryCheckoutRequestV2DeliverySchemaEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSON(json) { + return V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSONTyped(json, false); +} +function V2DeliveryCheckoutRequestV2DeliverySchemaEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2DeliveryCheckoutRequestV2DeliverySchemaEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2DeliveryMethodListV2Request.d.ts b/dist/models/V2DeliveryMethodListV2Request.d.ts new file mode 100644 index 0000000..de8b970 --- /dev/null +++ b/dist/models/V2DeliveryMethodListV2Request.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodListV2RequestFilter } from './DeliveryMethodListV2RequestFilter'; +import type { DeliveryMethodListV2RequestSortDirEnum } from './DeliveryMethodListV2RequestSortDirEnum'; +/** + * + * @export + * @interface V2DeliveryMethodListV2Request + */ +export interface V2DeliveryMethodListV2Request { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2DeliveryMethodListV2Request + */ + cursor?: string; + /** + * + * @type {DeliveryMethodListV2RequestFilter} + * @memberof V2DeliveryMethodListV2Request + */ + filter?: DeliveryMethodListV2RequestFilter; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V2DeliveryMethodListV2Request + */ + limit: number; + /** + * + * @type {DeliveryMethodListV2RequestSortDirEnum} + * @memberof V2DeliveryMethodListV2Request + */ + sort_dir?: DeliveryMethodListV2RequestSortDirEnum; +} +/** + * Check if a given object implements the V2DeliveryMethodListV2Request interface. + */ +export declare function instanceOfV2DeliveryMethodListV2Request(value: object): value is V2DeliveryMethodListV2Request; +export declare function V2DeliveryMethodListV2RequestFromJSON(json: any): V2DeliveryMethodListV2Request; +export declare function V2DeliveryMethodListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DeliveryMethodListV2Request; +export declare function V2DeliveryMethodListV2RequestToJSON(value?: V2DeliveryMethodListV2Request | null): any; diff --git a/dist/models/V2DeliveryMethodListV2Request.js b/dist/models/V2DeliveryMethodListV2Request.js new file mode 100644 index 0000000..2310260 --- /dev/null +++ b/dist/models/V2DeliveryMethodListV2Request.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DeliveryMethodListV2Request = instanceOfV2DeliveryMethodListV2Request; +exports.V2DeliveryMethodListV2RequestFromJSON = V2DeliveryMethodListV2RequestFromJSON; +exports.V2DeliveryMethodListV2RequestFromJSONTyped = V2DeliveryMethodListV2RequestFromJSONTyped; +exports.V2DeliveryMethodListV2RequestToJSON = V2DeliveryMethodListV2RequestToJSON; +const DeliveryMethodListV2RequestFilter_1 = require("./DeliveryMethodListV2RequestFilter"); +const DeliveryMethodListV2RequestSortDirEnum_1 = require("./DeliveryMethodListV2RequestSortDirEnum"); +/** + * Check if a given object implements the V2DeliveryMethodListV2Request interface. + */ +function instanceOfV2DeliveryMethodListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V2DeliveryMethodListV2RequestFromJSON(json) { + return V2DeliveryMethodListV2RequestFromJSONTyped(json, false); +} +function V2DeliveryMethodListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': json['filter'] == null ? undefined : (0, DeliveryMethodListV2RequestFilter_1.DeliveryMethodListV2RequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'sort_dir': json['sort_dir'] == null ? undefined : (0, DeliveryMethodListV2RequestSortDirEnum_1.DeliveryMethodListV2RequestSortDirEnumFromJSON)(json['sort_dir']), + }; +} +function V2DeliveryMethodListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, DeliveryMethodListV2RequestFilter_1.DeliveryMethodListV2RequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'sort_dir': (0, DeliveryMethodListV2RequestSortDirEnum_1.DeliveryMethodListV2RequestSortDirEnumToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/V2DeliveryMethodListV2Response.d.ts b/dist/models/V2DeliveryMethodListV2Response.d.ts new file mode 100644 index 0000000..2cf40db --- /dev/null +++ b/dist/models/V2DeliveryMethodListV2Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodListV2ResponseDeliveryMethod } from './DeliveryMethodListV2ResponseDeliveryMethod'; +/** + * + * @export + * @interface V2DeliveryMethodListV2Response + */ +export interface V2DeliveryMethodListV2Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2DeliveryMethodListV2Response + */ + cursor?: string; + /** + * `true`, если в ответе вернули не все методы доставки. + * + * @type {boolean} + * @memberof V2DeliveryMethodListV2Response + */ + has_next?: boolean; + /** + * Методы доставки. + * @type {Array} + * @memberof V2DeliveryMethodListV2Response + */ + delivery_methods?: Array; +} +/** + * Check if a given object implements the V2DeliveryMethodListV2Response interface. + */ +export declare function instanceOfV2DeliveryMethodListV2Response(value: object): value is V2DeliveryMethodListV2Response; +export declare function V2DeliveryMethodListV2ResponseFromJSON(json: any): V2DeliveryMethodListV2Response; +export declare function V2DeliveryMethodListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DeliveryMethodListV2Response; +export declare function V2DeliveryMethodListV2ResponseToJSON(value?: V2DeliveryMethodListV2Response | null): any; diff --git a/dist/models/V2DeliveryMethodListV2Response.js b/dist/models/V2DeliveryMethodListV2Response.js new file mode 100644 index 0000000..a5fb9af --- /dev/null +++ b/dist/models/V2DeliveryMethodListV2Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DeliveryMethodListV2Response = instanceOfV2DeliveryMethodListV2Response; +exports.V2DeliveryMethodListV2ResponseFromJSON = V2DeliveryMethodListV2ResponseFromJSON; +exports.V2DeliveryMethodListV2ResponseFromJSONTyped = V2DeliveryMethodListV2ResponseFromJSONTyped; +exports.V2DeliveryMethodListV2ResponseToJSON = V2DeliveryMethodListV2ResponseToJSON; +const DeliveryMethodListV2ResponseDeliveryMethod_1 = require("./DeliveryMethodListV2ResponseDeliveryMethod"); +/** + * Check if a given object implements the V2DeliveryMethodListV2Response interface. + */ +function instanceOfV2DeliveryMethodListV2Response(value) { + return true; +} +function V2DeliveryMethodListV2ResponseFromJSON(json) { + return V2DeliveryMethodListV2ResponseFromJSONTyped(json, false); +} +function V2DeliveryMethodListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'delivery_methods': json['delivery_methods'] == null ? undefined : (json['delivery_methods'].map(DeliveryMethodListV2ResponseDeliveryMethod_1.DeliveryMethodListV2ResponseDeliveryMethodFromJSON)), + }; +} +function V2DeliveryMethodListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'delivery_methods': value['delivery_methods'] == null ? undefined : (value['delivery_methods'].map(DeliveryMethodListV2ResponseDeliveryMethod_1.DeliveryMethodListV2ResponseDeliveryMethodToJSON)), + }; +} diff --git a/dist/models/V2DraftClusterListResponse.d.ts b/dist/models/V2DraftClusterListResponse.d.ts new file mode 100644 index 0000000..6b1a934 --- /dev/null +++ b/dist/models/V2DraftClusterListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftClusterListResponseResult } from './V2DraftClusterListResponseResult'; +/** + * + * @export + * @interface V2DraftClusterListResponse + */ +export interface V2DraftClusterListResponse { + /** + * Список кластеров. + * @type {Array} + * @memberof V2DraftClusterListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2DraftClusterListResponse interface. + */ +export declare function instanceOfV2DraftClusterListResponse(value: object): value is V2DraftClusterListResponse; +export declare function V2DraftClusterListResponseFromJSON(json: any): V2DraftClusterListResponse; +export declare function V2DraftClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftClusterListResponse; +export declare function V2DraftClusterListResponseToJSON(value?: V2DraftClusterListResponse | null): any; diff --git a/dist/models/V2DraftClusterListResponse.js b/dist/models/V2DraftClusterListResponse.js new file mode 100644 index 0000000..092f277 --- /dev/null +++ b/dist/models/V2DraftClusterListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftClusterListResponse = instanceOfV2DraftClusterListResponse; +exports.V2DraftClusterListResponseFromJSON = V2DraftClusterListResponseFromJSON; +exports.V2DraftClusterListResponseFromJSONTyped = V2DraftClusterListResponseFromJSONTyped; +exports.V2DraftClusterListResponseToJSON = V2DraftClusterListResponseToJSON; +const V2DraftClusterListResponseResult_1 = require("./V2DraftClusterListResponseResult"); +/** + * Check if a given object implements the V2DraftClusterListResponse interface. + */ +function instanceOfV2DraftClusterListResponse(value) { + return true; +} +function V2DraftClusterListResponseFromJSON(json) { + return V2DraftClusterListResponseFromJSONTyped(json, false); +} +function V2DraftClusterListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2DraftClusterListResponseResult_1.V2DraftClusterListResponseResultFromJSON)), + }; +} +function V2DraftClusterListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2DraftClusterListResponseResult_1.V2DraftClusterListResponseResultToJSON)), + }; +} diff --git a/dist/models/V2DraftClusterListResponseResult.d.ts b/dist/models/V2DraftClusterListResponseResult.d.ts new file mode 100644 index 0000000..a733dba --- /dev/null +++ b/dist/models/V2DraftClusterListResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ResultData } from './ResultData'; +/** + * + * @export + * @interface V2DraftClusterListResponseResult + */ +export interface V2DraftClusterListResponseResult { + /** + * + * @type {ResultData} + * @memberof V2DraftClusterListResponseResult + */ + data?: ResultData; + /** + * Идентификатор кластера. + * @type {number} + * @memberof V2DraftClusterListResponseResult + */ + macrolocal_cluster_id?: number; +} +/** + * Check if a given object implements the V2DraftClusterListResponseResult interface. + */ +export declare function instanceOfV2DraftClusterListResponseResult(value: object): value is V2DraftClusterListResponseResult; +export declare function V2DraftClusterListResponseResultFromJSON(json: any): V2DraftClusterListResponseResult; +export declare function V2DraftClusterListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftClusterListResponseResult; +export declare function V2DraftClusterListResponseResultToJSON(value?: V2DraftClusterListResponseResult | null): any; diff --git a/dist/models/V2DraftClusterListResponseResult.js b/dist/models/V2DraftClusterListResponseResult.js new file mode 100644 index 0000000..0c6326f --- /dev/null +++ b/dist/models/V2DraftClusterListResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftClusterListResponseResult = instanceOfV2DraftClusterListResponseResult; +exports.V2DraftClusterListResponseResultFromJSON = V2DraftClusterListResponseResultFromJSON; +exports.V2DraftClusterListResponseResultFromJSONTyped = V2DraftClusterListResponseResultFromJSONTyped; +exports.V2DraftClusterListResponseResultToJSON = V2DraftClusterListResponseResultToJSON; +const ResultData_1 = require("./ResultData"); +/** + * Check if a given object implements the V2DraftClusterListResponseResult interface. + */ +function instanceOfV2DraftClusterListResponseResult(value) { + return true; +} +function V2DraftClusterListResponseResultFromJSON(json) { + return V2DraftClusterListResponseResultFromJSONTyped(json, false); +} +function V2DraftClusterListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': json['data'] == null ? undefined : (0, ResultData_1.ResultDataFromJSON)(json['data']), + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + }; +} +function V2DraftClusterListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'data': (0, ResultData_1.ResultDataToJSON)(value['data']), + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + }; +} diff --git a/dist/models/V2DraftCreateInfoRequest.d.ts b/dist/models/V2DraftCreateInfoRequest.d.ts new file mode 100644 index 0000000..62e78c3 --- /dev/null +++ b/dist/models/V2DraftCreateInfoRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2DraftCreateInfoRequest + */ +export interface V2DraftCreateInfoRequest { + /** + * Идентификатор черновика из методов [/v1/draft/crossdock/create](#operation/DraftCrossdockCreate), [/v1/draft/direct/create](#operation/DraftDirectCreate) или [/v1/draft/multi-cluster/create](#operation/DraftMultiClusterCreate). + * @type {number} + * @memberof V2DraftCreateInfoRequest + */ + draft_id: number; +} +/** + * Check if a given object implements the V2DraftCreateInfoRequest interface. + */ +export declare function instanceOfV2DraftCreateInfoRequest(value: object): value is V2DraftCreateInfoRequest; +export declare function V2DraftCreateInfoRequestFromJSON(json: any): V2DraftCreateInfoRequest; +export declare function V2DraftCreateInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftCreateInfoRequest; +export declare function V2DraftCreateInfoRequestToJSON(value?: V2DraftCreateInfoRequest | null): any; diff --git a/dist/models/V2DraftCreateInfoRequest.js b/dist/models/V2DraftCreateInfoRequest.js new file mode 100644 index 0000000..a99c910 --- /dev/null +++ b/dist/models/V2DraftCreateInfoRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftCreateInfoRequest = instanceOfV2DraftCreateInfoRequest; +exports.V2DraftCreateInfoRequestFromJSON = V2DraftCreateInfoRequestFromJSON; +exports.V2DraftCreateInfoRequestFromJSONTyped = V2DraftCreateInfoRequestFromJSONTyped; +exports.V2DraftCreateInfoRequestToJSON = V2DraftCreateInfoRequestToJSON; +/** + * Check if a given object implements the V2DraftCreateInfoRequest interface. + */ +function instanceOfV2DraftCreateInfoRequest(value) { + if (!('draft_id' in value) || value['draft_id'] === undefined) + return false; + return true; +} +function V2DraftCreateInfoRequestFromJSON(json) { + return V2DraftCreateInfoRequestFromJSONTyped(json, false); +} +function V2DraftCreateInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'], + }; +} +function V2DraftCreateInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + }; +} diff --git a/dist/models/V2DraftCreateInfoResponse.d.ts b/dist/models/V2DraftCreateInfoResponse.d.ts new file mode 100644 index 0000000..2c4bc77 --- /dev/null +++ b/dist/models/V2DraftCreateInfoResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftCreateInfoResponseStatusEnum } from './V2DraftCreateInfoResponseStatusEnum'; +import type { DraftCreateInfoResponseCluster } from './DraftCreateInfoResponseCluster'; +import type { DraftCreateInfoResponseError } from './DraftCreateInfoResponseError'; +/** + * + * @export + * @interface V2DraftCreateInfoResponse + */ +export interface V2DraftCreateInfoResponse { + /** + * Кластеры. + * @type {Array} + * @memberof V2DraftCreateInfoResponse + */ + clusters?: Array; + /** + * Ошибки. + * @type {Array} + * @memberof V2DraftCreateInfoResponse + */ + errors?: Array; + /** + * + * @type {V2DraftCreateInfoResponseStatusEnum} + * @memberof V2DraftCreateInfoResponse + */ + status?: V2DraftCreateInfoResponseStatusEnum; +} +/** + * Check if a given object implements the V2DraftCreateInfoResponse interface. + */ +export declare function instanceOfV2DraftCreateInfoResponse(value: object): value is V2DraftCreateInfoResponse; +export declare function V2DraftCreateInfoResponseFromJSON(json: any): V2DraftCreateInfoResponse; +export declare function V2DraftCreateInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftCreateInfoResponse; +export declare function V2DraftCreateInfoResponseToJSON(value?: V2DraftCreateInfoResponse | null): any; diff --git a/dist/models/V2DraftCreateInfoResponse.js b/dist/models/V2DraftCreateInfoResponse.js new file mode 100644 index 0000000..92ab341 --- /dev/null +++ b/dist/models/V2DraftCreateInfoResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftCreateInfoResponse = instanceOfV2DraftCreateInfoResponse; +exports.V2DraftCreateInfoResponseFromJSON = V2DraftCreateInfoResponseFromJSON; +exports.V2DraftCreateInfoResponseFromJSONTyped = V2DraftCreateInfoResponseFromJSONTyped; +exports.V2DraftCreateInfoResponseToJSON = V2DraftCreateInfoResponseToJSON; +const V2DraftCreateInfoResponseStatusEnum_1 = require("./V2DraftCreateInfoResponseStatusEnum"); +const DraftCreateInfoResponseCluster_1 = require("./DraftCreateInfoResponseCluster"); +const DraftCreateInfoResponseError_1 = require("./DraftCreateInfoResponseError"); +/** + * Check if a given object implements the V2DraftCreateInfoResponse interface. + */ +function instanceOfV2DraftCreateInfoResponse(value) { + return true; +} +function V2DraftCreateInfoResponseFromJSON(json) { + return V2DraftCreateInfoResponseFromJSONTyped(json, false); +} +function V2DraftCreateInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'clusters': json['clusters'] == null ? undefined : (json['clusters'].map(DraftCreateInfoResponseCluster_1.DraftCreateInfoResponseClusterFromJSON)), + 'errors': json['errors'] == null ? undefined : (json['errors'].map(DraftCreateInfoResponseError_1.DraftCreateInfoResponseErrorFromJSON)), + 'status': json['status'] == null ? undefined : (0, V2DraftCreateInfoResponseStatusEnum_1.V2DraftCreateInfoResponseStatusEnumFromJSON)(json['status']), + }; +} +function V2DraftCreateInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'clusters': value['clusters'] == null ? undefined : (value['clusters'].map(DraftCreateInfoResponseCluster_1.DraftCreateInfoResponseClusterToJSON)), + 'errors': value['errors'] == null ? undefined : (value['errors'].map(DraftCreateInfoResponseError_1.DraftCreateInfoResponseErrorToJSON)), + 'status': (0, V2DraftCreateInfoResponseStatusEnum_1.V2DraftCreateInfoResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/V2DraftCreateInfoResponseStatusEnum.d.ts b/dist/models/V2DraftCreateInfoResponseStatusEnum.d.ts new file mode 100644 index 0000000..84723fc --- /dev/null +++ b/dist/models/V2DraftCreateInfoResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания черновика заявки на поставку: + * - `UNSPECIFIED` — не определён, + * - `SUCCESS` — создан, + * - `IN_PROGRESS` — создаётся, + * - `FAILED` — не удалось создать. + * + * @export + */ +export declare const V2DraftCreateInfoResponseStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type V2DraftCreateInfoResponseStatusEnum = typeof V2DraftCreateInfoResponseStatusEnum[keyof typeof V2DraftCreateInfoResponseStatusEnum]; +export declare function instanceOfV2DraftCreateInfoResponseStatusEnum(value: any): boolean; +export declare function V2DraftCreateInfoResponseStatusEnumFromJSON(json: any): V2DraftCreateInfoResponseStatusEnum; +export declare function V2DraftCreateInfoResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftCreateInfoResponseStatusEnum; +export declare function V2DraftCreateInfoResponseStatusEnumToJSON(value?: V2DraftCreateInfoResponseStatusEnum | null): any; diff --git a/dist/models/V2DraftCreateInfoResponseStatusEnum.js b/dist/models/V2DraftCreateInfoResponseStatusEnum.js new file mode 100644 index 0000000..0097647 --- /dev/null +++ b/dist/models/V2DraftCreateInfoResponseStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2DraftCreateInfoResponseStatusEnum = void 0; +exports.instanceOfV2DraftCreateInfoResponseStatusEnum = instanceOfV2DraftCreateInfoResponseStatusEnum; +exports.V2DraftCreateInfoResponseStatusEnumFromJSON = V2DraftCreateInfoResponseStatusEnumFromJSON; +exports.V2DraftCreateInfoResponseStatusEnumFromJSONTyped = V2DraftCreateInfoResponseStatusEnumFromJSONTyped; +exports.V2DraftCreateInfoResponseStatusEnumToJSON = V2DraftCreateInfoResponseStatusEnumToJSON; +/** + * Статус создания черновика заявки на поставку: + * - `UNSPECIFIED` — не определён, + * - `SUCCESS` — создан, + * - `IN_PROGRESS` — создаётся, + * - `FAILED` — не удалось создать. + * + * @export + */ +exports.V2DraftCreateInfoResponseStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfV2DraftCreateInfoResponseStatusEnum(value) { + for (const key in exports.V2DraftCreateInfoResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2DraftCreateInfoResponseStatusEnum, key)) { + if (exports.V2DraftCreateInfoResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2DraftCreateInfoResponseStatusEnumFromJSON(json) { + return V2DraftCreateInfoResponseStatusEnumFromJSONTyped(json, false); +} +function V2DraftCreateInfoResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2DraftCreateInfoResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2DraftSupplyCreateRequest.d.ts b/dist/models/V2DraftSupplyCreateRequest.d.ts new file mode 100644 index 0000000..e3ed5bc --- /dev/null +++ b/dist/models/V2DraftSupplyCreateRequest.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftSupplyCreateRequestTimeslot } from './V2DraftSupplyCreateRequestTimeslot'; +import type { V2DraftSupplyCreateRequestSelectedClusterWarehouse } from './V2DraftSupplyCreateRequestSelectedClusterWarehouse'; +/** + * + * @export + * @interface V2DraftSupplyCreateRequest + */ +export interface V2DraftSupplyCreateRequest { + /** + * Идентификатор черновика из метода [/v2/draft/create/info](#operation/DraftCreateInfo). + * @type {number} + * @memberof V2DraftSupplyCreateRequest + */ + draft_id: number; + /** + * Информация о кластере и складах в нём. Можно передать один кластер для кросс-докинговой и прямой поставки или список всех кластеров для поставки в несколько кластеров. + * @type {Array} + * @memberof V2DraftSupplyCreateRequest + */ + selected_cluster_warehouses: Array; + /** + * + * @type {V2DraftSupplyCreateRequestTimeslot} + * @memberof V2DraftSupplyCreateRequest + */ + timeslot?: V2DraftSupplyCreateRequestTimeslot; + /** + * Тип поставки: + * - `CROSSDOCK` — кросс-докинг; + * - `DIRECT` — прямая; + * - `MULTI_CLUSTER` — для нескольких кластеров. + * + * @type {string} + * @memberof V2DraftSupplyCreateRequest + */ + supply_type: V2DraftSupplyCreateRequestSupplyTypeEnum; +} +/** + * @export + */ +export declare const V2DraftSupplyCreateRequestSupplyTypeEnum: { + readonly CROSSDOCK: "CROSSDOCK"; + readonly DIRECT: "DIRECT"; + readonly MULTI_CLUSTER: "MULTI_CLUSTER"; +}; +export type V2DraftSupplyCreateRequestSupplyTypeEnum = typeof V2DraftSupplyCreateRequestSupplyTypeEnum[keyof typeof V2DraftSupplyCreateRequestSupplyTypeEnum]; +/** + * Check if a given object implements the V2DraftSupplyCreateRequest interface. + */ +export declare function instanceOfV2DraftSupplyCreateRequest(value: object): value is V2DraftSupplyCreateRequest; +export declare function V2DraftSupplyCreateRequestFromJSON(json: any): V2DraftSupplyCreateRequest; +export declare function V2DraftSupplyCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateRequest; +export declare function V2DraftSupplyCreateRequestToJSON(value?: V2DraftSupplyCreateRequest | null): any; diff --git a/dist/models/V2DraftSupplyCreateRequest.js b/dist/models/V2DraftSupplyCreateRequest.js new file mode 100644 index 0000000..1bcb5c3 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateRequest.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2DraftSupplyCreateRequestSupplyTypeEnum = void 0; +exports.instanceOfV2DraftSupplyCreateRequest = instanceOfV2DraftSupplyCreateRequest; +exports.V2DraftSupplyCreateRequestFromJSON = V2DraftSupplyCreateRequestFromJSON; +exports.V2DraftSupplyCreateRequestFromJSONTyped = V2DraftSupplyCreateRequestFromJSONTyped; +exports.V2DraftSupplyCreateRequestToJSON = V2DraftSupplyCreateRequestToJSON; +const V2DraftSupplyCreateRequestTimeslot_1 = require("./V2DraftSupplyCreateRequestTimeslot"); +const V2DraftSupplyCreateRequestSelectedClusterWarehouse_1 = require("./V2DraftSupplyCreateRequestSelectedClusterWarehouse"); +/** + * @export + */ +exports.V2DraftSupplyCreateRequestSupplyTypeEnum = { + CROSSDOCK: 'CROSSDOCK', + DIRECT: 'DIRECT', + MULTI_CLUSTER: 'MULTI_CLUSTER' +}; +/** + * Check if a given object implements the V2DraftSupplyCreateRequest interface. + */ +function instanceOfV2DraftSupplyCreateRequest(value) { + if (!('draft_id' in value) || value['draft_id'] === undefined) + return false; + if (!('selected_cluster_warehouses' in value) || value['selected_cluster_warehouses'] === undefined) + return false; + if (!('supply_type' in value) || value['supply_type'] === undefined) + return false; + return true; +} +function V2DraftSupplyCreateRequestFromJSON(json) { + return V2DraftSupplyCreateRequestFromJSONTyped(json, false); +} +function V2DraftSupplyCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'], + 'selected_cluster_warehouses': (json['selected_cluster_warehouses'].map(V2DraftSupplyCreateRequestSelectedClusterWarehouse_1.V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON)), + 'timeslot': json['timeslot'] == null ? undefined : (0, V2DraftSupplyCreateRequestTimeslot_1.V2DraftSupplyCreateRequestTimeslotFromJSON)(json['timeslot']), + 'supply_type': json['supply_type'], + }; +} +function V2DraftSupplyCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'selected_cluster_warehouses': (value['selected_cluster_warehouses'].map(V2DraftSupplyCreateRequestSelectedClusterWarehouse_1.V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON)), + 'timeslot': (0, V2DraftSupplyCreateRequestTimeslot_1.V2DraftSupplyCreateRequestTimeslotToJSON)(value['timeslot']), + 'supply_type': value['supply_type'], + }; +} diff --git a/dist/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.d.ts b/dist/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.d.ts new file mode 100644 index 0000000..cf7af43 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2DraftSupplyCreateRequestSelectedClusterWarehouse + */ +export interface V2DraftSupplyCreateRequestSelectedClusterWarehouse { + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof V2DraftSupplyCreateRequestSelectedClusterWarehouse + */ + macrolocal_cluster_id: number; + /** + * Идентификатор склада размещения. Получите значение параметра методом [/v2/draft/create/info](#operation/DraftCreateInfo). Только для поставок с типом `DIRECT`. + * @type {number} + * @memberof V2DraftSupplyCreateRequestSelectedClusterWarehouse + */ + storage_warehouse_id: number; +} +/** + * Check if a given object implements the V2DraftSupplyCreateRequestSelectedClusterWarehouse interface. + */ +export declare function instanceOfV2DraftSupplyCreateRequestSelectedClusterWarehouse(value: object): value is V2DraftSupplyCreateRequestSelectedClusterWarehouse; +export declare function V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON(json: any): V2DraftSupplyCreateRequestSelectedClusterWarehouse; +export declare function V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateRequestSelectedClusterWarehouse; +export declare function V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON(value?: V2DraftSupplyCreateRequestSelectedClusterWarehouse | null): any; diff --git a/dist/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.js b/dist/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.js new file mode 100644 index 0000000..21aaa25 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateRequestSelectedClusterWarehouse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftSupplyCreateRequestSelectedClusterWarehouse = instanceOfV2DraftSupplyCreateRequestSelectedClusterWarehouse; +exports.V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON = V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON; +exports.V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSONTyped = V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSONTyped; +exports.V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON = V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON; +/** + * Check if a given object implements the V2DraftSupplyCreateRequestSelectedClusterWarehouse interface. + */ +function instanceOfV2DraftSupplyCreateRequestSelectedClusterWarehouse(value) { + if (!('macrolocal_cluster_id' in value) || value['macrolocal_cluster_id'] === undefined) + return false; + if (!('storage_warehouse_id' in value) || value['storage_warehouse_id'] === undefined) + return false; + return true; +} +function V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSON(json) { + return V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSONTyped(json, false); +} +function V2DraftSupplyCreateRequestSelectedClusterWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'macrolocal_cluster_id': json['macrolocal_cluster_id'], + 'storage_warehouse_id': json['storage_warehouse_id'], + }; +} +function V2DraftSupplyCreateRequestSelectedClusterWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'storage_warehouse_id': value['storage_warehouse_id'], + }; +} diff --git a/dist/models/V2DraftSupplyCreateRequestTimeslot.d.ts b/dist/models/V2DraftSupplyCreateRequestTimeslot.d.ts new file mode 100644 index 0000000..8520143 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateRequestTimeslot.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Таймслот поставки. + * @export + * @interface V2DraftSupplyCreateRequestTimeslot + */ +export interface V2DraftSupplyCreateRequestTimeslot { + /** + * Начало таймслота. + * @type {string} + * @memberof V2DraftSupplyCreateRequestTimeslot + */ + from_in_timezone?: string; + /** + * Конец таймслота. + * @type {string} + * @memberof V2DraftSupplyCreateRequestTimeslot + */ + to_in_timezone?: string; +} +/** + * Check if a given object implements the V2DraftSupplyCreateRequestTimeslot interface. + */ +export declare function instanceOfV2DraftSupplyCreateRequestTimeslot(value: object): value is V2DraftSupplyCreateRequestTimeslot; +export declare function V2DraftSupplyCreateRequestTimeslotFromJSON(json: any): V2DraftSupplyCreateRequestTimeslot; +export declare function V2DraftSupplyCreateRequestTimeslotFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateRequestTimeslot; +export declare function V2DraftSupplyCreateRequestTimeslotToJSON(value?: V2DraftSupplyCreateRequestTimeslot | null): any; diff --git a/dist/models/V2DraftSupplyCreateRequestTimeslot.js b/dist/models/V2DraftSupplyCreateRequestTimeslot.js new file mode 100644 index 0000000..a442fc5 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateRequestTimeslot.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftSupplyCreateRequestTimeslot = instanceOfV2DraftSupplyCreateRequestTimeslot; +exports.V2DraftSupplyCreateRequestTimeslotFromJSON = V2DraftSupplyCreateRequestTimeslotFromJSON; +exports.V2DraftSupplyCreateRequestTimeslotFromJSONTyped = V2DraftSupplyCreateRequestTimeslotFromJSONTyped; +exports.V2DraftSupplyCreateRequestTimeslotToJSON = V2DraftSupplyCreateRequestTimeslotToJSON; +/** + * Check if a given object implements the V2DraftSupplyCreateRequestTimeslot interface. + */ +function instanceOfV2DraftSupplyCreateRequestTimeslot(value) { + return true; +} +function V2DraftSupplyCreateRequestTimeslotFromJSON(json) { + return V2DraftSupplyCreateRequestTimeslotFromJSONTyped(json, false); +} +function V2DraftSupplyCreateRequestTimeslotFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from_in_timezone': json['from_in_timezone'] == null ? undefined : json['from_in_timezone'], + 'to_in_timezone': json['to_in_timezone'] == null ? undefined : json['to_in_timezone'], + }; +} +function V2DraftSupplyCreateRequestTimeslotToJSON(value) { + if (value == null) { + return value; + } + return { + 'from_in_timezone': value['from_in_timezone'], + 'to_in_timezone': value['to_in_timezone'], + }; +} diff --git a/dist/models/V2DraftSupplyCreateResponse.d.ts b/dist/models/V2DraftSupplyCreateResponse.d.ts new file mode 100644 index 0000000..652ef74 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateResponse.d.ts @@ -0,0 +1,69 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftSupplyCreateResponseErrorReasonEnum } from './V2DraftSupplyCreateResponseErrorReasonEnum'; +/** + * + * @export + * @interface V2DraftSupplyCreateResponse + */ +export interface V2DraftSupplyCreateResponse { + /** + * Идентификатор черновика. + * @type {number} + * @memberof V2DraftSupplyCreateResponse + */ + draft_id?: number; + /** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `SOME_SERVICE_ERROR` — ошибка при редактировании поставки; + * - `ORDER_SKU_LIMIT` — количество товаров в поставке больше 5000; + * - `INVALID_QUANTITY_OR_QUANT` — некорректное количество товара или грузомест; + * - `ORDER_ALREADY_CREATED` — заказ уже создан; + * - `ORDER_CREATION_IN_PROGRESS` — создание заказа в процессе; + * - `DRAFT_DOES_NOT_EXIST` — черновик не существует; + * - `CONTRACTOR_CAN_NOT_CREATE_ORDER` — контрагент не может создать заказ; + * - `INACTIVE_CONTRACT` — нельзя редактировать состав поставки с неактивным договором; + * - `DRAFT_INCORRECT_STATE` — некорректный статус черновика; + * - `INVALID_VOLUME` — некорректный объём поставки; + * - `INVALID_ROUTE` — некорректный маршрут; + * - `INVALID_STORAGE_WAREHOUSE` — некорректный склад хранения; + * - `INVALID_STORAGE_REGION` — некорректный регион хранения; + * - `INVALID_SPLITTING` — некорректное разделение; + * - `INVALID_SUPPLY_CONTENT` — некорректное содержимое поставки; + * - `TIMESLOT_NOT_AVAILABLE` — нет доступных таймслотов; + * - `SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE` — требуется распределение SKU, но оно невозможно; + * - `XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER` — поставка кросс-докингом через пункт выдачи заказов недоступна для продавца; + * - `DRAFT_IS_LOCKED` — черновик заблокирован; + * - `INVALID_PACKAGE_UNITS_COUNTS` — некорректное количество грузомест; + * - `SELLER_CONVERSATION_DOES_NOT_EXIST` — точка отгрузки с таким `id` не существует; + * - `USER_CAN_NOT_CREATE_SELLER_CONVERSATION` — пользователь не может создать диалог с продавцом; + * - `SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT` — товар с меткой `is_ettn_required` не разрешён для точки отгрузки; + * - `INVALID_SELLER_WAREHOUSE` — склад продавца недоступен; + * - `PICKUP_ORDER_LIMIT_EXCEEDED` — превышен лимит заказов на самовывоз; + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — некорректный минимальный объём в литрах; + * - `INVALID_CLUSTERS_COUNT` — переданы не все кластеры из расчёта; + * - `CAN_NOT_CREATE_ORDER` — не удалось создать заказ; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof V2DraftSupplyCreateResponse + */ + error_reasons?: Array; +} +/** + * Check if a given object implements the V2DraftSupplyCreateResponse interface. + */ +export declare function instanceOfV2DraftSupplyCreateResponse(value: object): value is V2DraftSupplyCreateResponse; +export declare function V2DraftSupplyCreateResponseFromJSON(json: any): V2DraftSupplyCreateResponse; +export declare function V2DraftSupplyCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateResponse; +export declare function V2DraftSupplyCreateResponseToJSON(value?: V2DraftSupplyCreateResponse | null): any; diff --git a/dist/models/V2DraftSupplyCreateResponse.js b/dist/models/V2DraftSupplyCreateResponse.js new file mode 100644 index 0000000..104f0d6 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftSupplyCreateResponse = instanceOfV2DraftSupplyCreateResponse; +exports.V2DraftSupplyCreateResponseFromJSON = V2DraftSupplyCreateResponseFromJSON; +exports.V2DraftSupplyCreateResponseFromJSONTyped = V2DraftSupplyCreateResponseFromJSONTyped; +exports.V2DraftSupplyCreateResponseToJSON = V2DraftSupplyCreateResponseToJSON; +const V2DraftSupplyCreateResponseErrorReasonEnum_1 = require("./V2DraftSupplyCreateResponseErrorReasonEnum"); +/** + * Check if a given object implements the V2DraftSupplyCreateResponse interface. + */ +function instanceOfV2DraftSupplyCreateResponse(value) { + return true; +} +function V2DraftSupplyCreateResponseFromJSON(json) { + return V2DraftSupplyCreateResponseFromJSONTyped(json, false); +} +function V2DraftSupplyCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'] == null ? undefined : json['draft_id'], + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V2DraftSupplyCreateResponseErrorReasonEnum_1.V2DraftSupplyCreateResponseErrorReasonEnumFromJSON)), + }; +} +function V2DraftSupplyCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V2DraftSupplyCreateResponseErrorReasonEnum_1.V2DraftSupplyCreateResponseErrorReasonEnumToJSON)), + }; +} diff --git a/dist/models/V2DraftSupplyCreateResponseErrorReasonEnum.d.ts b/dist/models/V2DraftSupplyCreateResponseErrorReasonEnum.d.ts new file mode 100644 index 0000000..67a213d --- /dev/null +++ b/dist/models/V2DraftSupplyCreateResponseErrorReasonEnum.d.ts @@ -0,0 +1,52 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V2DraftSupplyCreateResponseErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SOME_SERVICE_ERROR: "SOME_SERVICE_ERROR"; + readonly ORDER_SKU_LIMIT: "ORDER_SKU_LIMIT"; + readonly INVALID_QUANTITY_OR_QUANT: "INVALID_QUANTITY_OR_QUANT"; + readonly ORDER_ALREADY_CREATED: "ORDER_ALREADY_CREATED"; + readonly ORDER_CREATION_IN_PROGRESS: "ORDER_CREATION_IN_PROGRESS"; + readonly DRAFT_DOES_NOT_EXIST: "DRAFT_DOES_NOT_EXIST"; + readonly CONTRACTOR_CAN_NOT_CREATE_ORDER: "CONTRACTOR_CAN_NOT_CREATE_ORDER"; + readonly INACTIVE_CONTRACT: "INACTIVE_CONTRACT"; + readonly DRAFT_INCORRECT_STATE: "DRAFT_INCORRECT_STATE"; + readonly INVALID_VOLUME: "INVALID_VOLUME"; + readonly INVALID_ROUTE: "INVALID_ROUTE"; + readonly INVALID_STORAGE_WAREHOUSE: "INVALID_STORAGE_WAREHOUSE"; + readonly INVALID_STORAGE_REGION: "INVALID_STORAGE_REGION"; + readonly INVALID_SPLITTING: "INVALID_SPLITTING"; + readonly INVALID_SUPPLY_CONTENT: "INVALID_SUPPLY_CONTENT"; + readonly TIMESLOT_NOT_AVAILABLE: "TIMESLOT_NOT_AVAILABLE"; + readonly SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: "SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE"; + readonly XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: "XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER"; + readonly DRAFT_IS_LOCKED: "DRAFT_IS_LOCKED"; + readonly INVALID_PACKAGE_UNITS_COUNTS: "INVALID_PACKAGE_UNITS_COUNTS"; + readonly SELLER_CONVERSATION_DOES_NOT_EXIST: "SELLER_CONVERSATION_DOES_NOT_EXIST"; + readonly USER_CAN_NOT_CREATE_SELLER_CONVERSATION: "USER_CAN_NOT_CREATE_SELLER_CONVERSATION"; + readonly SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT: "SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT"; + readonly INVALID_SELLER_WAREHOUSE: "INVALID_SELLER_WAREHOUSE"; + readonly PICKUP_ORDER_LIMIT_EXCEEDED: "PICKUP_ORDER_LIMIT_EXCEEDED"; + readonly MINIMUM_VOLUME_IN_LITRES_INVALID: "MINIMUM_VOLUME_IN_LITRES_INVALID"; + readonly INVALID_CLUSTERS_COUNT: "INVALID_CLUSTERS_COUNT"; + readonly CAN_NOT_CREATE_ORDER: "CAN_NOT_CREATE_ORDER"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type V2DraftSupplyCreateResponseErrorReasonEnum = typeof V2DraftSupplyCreateResponseErrorReasonEnum[keyof typeof V2DraftSupplyCreateResponseErrorReasonEnum]; +export declare function instanceOfV2DraftSupplyCreateResponseErrorReasonEnum(value: any): boolean; +export declare function V2DraftSupplyCreateResponseErrorReasonEnumFromJSON(json: any): V2DraftSupplyCreateResponseErrorReasonEnum; +export declare function V2DraftSupplyCreateResponseErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateResponseErrorReasonEnum; +export declare function V2DraftSupplyCreateResponseErrorReasonEnumToJSON(value?: V2DraftSupplyCreateResponseErrorReasonEnum | null): any; diff --git a/dist/models/V2DraftSupplyCreateResponseErrorReasonEnum.js b/dist/models/V2DraftSupplyCreateResponseErrorReasonEnum.js new file mode 100644 index 0000000..03959ff --- /dev/null +++ b/dist/models/V2DraftSupplyCreateResponseErrorReasonEnum.js @@ -0,0 +1,75 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2DraftSupplyCreateResponseErrorReasonEnum = void 0; +exports.instanceOfV2DraftSupplyCreateResponseErrorReasonEnum = instanceOfV2DraftSupplyCreateResponseErrorReasonEnum; +exports.V2DraftSupplyCreateResponseErrorReasonEnumFromJSON = V2DraftSupplyCreateResponseErrorReasonEnumFromJSON; +exports.V2DraftSupplyCreateResponseErrorReasonEnumFromJSONTyped = V2DraftSupplyCreateResponseErrorReasonEnumFromJSONTyped; +exports.V2DraftSupplyCreateResponseErrorReasonEnumToJSON = V2DraftSupplyCreateResponseErrorReasonEnumToJSON; +/** + * + * @export + */ +exports.V2DraftSupplyCreateResponseErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SOME_SERVICE_ERROR: 'SOME_SERVICE_ERROR', + ORDER_SKU_LIMIT: 'ORDER_SKU_LIMIT', + INVALID_QUANTITY_OR_QUANT: 'INVALID_QUANTITY_OR_QUANT', + ORDER_ALREADY_CREATED: 'ORDER_ALREADY_CREATED', + ORDER_CREATION_IN_PROGRESS: 'ORDER_CREATION_IN_PROGRESS', + DRAFT_DOES_NOT_EXIST: 'DRAFT_DOES_NOT_EXIST', + CONTRACTOR_CAN_NOT_CREATE_ORDER: 'CONTRACTOR_CAN_NOT_CREATE_ORDER', + INACTIVE_CONTRACT: 'INACTIVE_CONTRACT', + DRAFT_INCORRECT_STATE: 'DRAFT_INCORRECT_STATE', + INVALID_VOLUME: 'INVALID_VOLUME', + INVALID_ROUTE: 'INVALID_ROUTE', + INVALID_STORAGE_WAREHOUSE: 'INVALID_STORAGE_WAREHOUSE', + INVALID_STORAGE_REGION: 'INVALID_STORAGE_REGION', + INVALID_SPLITTING: 'INVALID_SPLITTING', + INVALID_SUPPLY_CONTENT: 'INVALID_SUPPLY_CONTENT', + TIMESLOT_NOT_AVAILABLE: 'TIMESLOT_NOT_AVAILABLE', + SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: 'SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE', + XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: 'XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER', + DRAFT_IS_LOCKED: 'DRAFT_IS_LOCKED', + INVALID_PACKAGE_UNITS_COUNTS: 'INVALID_PACKAGE_UNITS_COUNTS', + SELLER_CONVERSATION_DOES_NOT_EXIST: 'SELLER_CONVERSATION_DOES_NOT_EXIST', + USER_CAN_NOT_CREATE_SELLER_CONVERSATION: 'USER_CAN_NOT_CREATE_SELLER_CONVERSATION', + SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT: 'SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT', + INVALID_SELLER_WAREHOUSE: 'INVALID_SELLER_WAREHOUSE', + PICKUP_ORDER_LIMIT_EXCEEDED: 'PICKUP_ORDER_LIMIT_EXCEEDED', + MINIMUM_VOLUME_IN_LITRES_INVALID: 'MINIMUM_VOLUME_IN_LITRES_INVALID', + INVALID_CLUSTERS_COUNT: 'INVALID_CLUSTERS_COUNT', + CAN_NOT_CREATE_ORDER: 'CAN_NOT_CREATE_ORDER', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfV2DraftSupplyCreateResponseErrorReasonEnum(value) { + for (const key in exports.V2DraftSupplyCreateResponseErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2DraftSupplyCreateResponseErrorReasonEnum, key)) { + if (exports.V2DraftSupplyCreateResponseErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2DraftSupplyCreateResponseErrorReasonEnumFromJSON(json) { + return V2DraftSupplyCreateResponseErrorReasonEnumFromJSONTyped(json, false); +} +function V2DraftSupplyCreateResponseErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2DraftSupplyCreateResponseErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2DraftSupplyCreateStatusRequest.d.ts b/dist/models/V2DraftSupplyCreateStatusRequest.d.ts new file mode 100644 index 0000000..7acd284 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2DraftSupplyCreateStatusRequest + */ +export interface V2DraftSupplyCreateStatusRequest { + /** + * Идентификатор черновика. Получите значение параметра методом [/v2/draft/supply/create](#operation/DraftSupplyCreate). + * @type {number} + * @memberof V2DraftSupplyCreateStatusRequest + */ + draft_id: number; +} +/** + * Check if a given object implements the V2DraftSupplyCreateStatusRequest interface. + */ +export declare function instanceOfV2DraftSupplyCreateStatusRequest(value: object): value is V2DraftSupplyCreateStatusRequest; +export declare function V2DraftSupplyCreateStatusRequestFromJSON(json: any): V2DraftSupplyCreateStatusRequest; +export declare function V2DraftSupplyCreateStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateStatusRequest; +export declare function V2DraftSupplyCreateStatusRequestToJSON(value?: V2DraftSupplyCreateStatusRequest | null): any; diff --git a/dist/models/V2DraftSupplyCreateStatusRequest.js b/dist/models/V2DraftSupplyCreateStatusRequest.js new file mode 100644 index 0000000..879f169 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftSupplyCreateStatusRequest = instanceOfV2DraftSupplyCreateStatusRequest; +exports.V2DraftSupplyCreateStatusRequestFromJSON = V2DraftSupplyCreateStatusRequestFromJSON; +exports.V2DraftSupplyCreateStatusRequestFromJSONTyped = V2DraftSupplyCreateStatusRequestFromJSONTyped; +exports.V2DraftSupplyCreateStatusRequestToJSON = V2DraftSupplyCreateStatusRequestToJSON; +/** + * Check if a given object implements the V2DraftSupplyCreateStatusRequest interface. + */ +function instanceOfV2DraftSupplyCreateStatusRequest(value) { + if (!('draft_id' in value) || value['draft_id'] === undefined) + return false; + return true; +} +function V2DraftSupplyCreateStatusRequestFromJSON(json) { + return V2DraftSupplyCreateStatusRequestFromJSONTyped(json, false); +} +function V2DraftSupplyCreateStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'draft_id': json['draft_id'], + }; +} +function V2DraftSupplyCreateStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'draft_id': value['draft_id'], + }; +} diff --git a/dist/models/V2DraftSupplyCreateStatusResponse.d.ts b/dist/models/V2DraftSupplyCreateStatusResponse.d.ts new file mode 100644 index 0000000..50ebad8 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateStatusResponse.d.ts @@ -0,0 +1,75 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftSupplyCreateStatusResponseErrorReasonEnum } from './V2DraftSupplyCreateStatusResponseErrorReasonEnum'; +import type { V2DraftSupplyCreateStatusResponseStatusEnum } from './V2DraftSupplyCreateStatusResponseStatusEnum'; +/** + * + * @export + * @interface V2DraftSupplyCreateStatusResponse + */ +export interface V2DraftSupplyCreateStatusResponse { + /** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `SOME_SERVICE_ERROR` — ошибка при редактировании поставки; + * - `ORDER_SKU_LIMIT` — количество товаров в поставке больше 5000; + * - `INVALID_QUANTITY_OR_QUANT` — некорректное количество товара или грузомест; + * - `ORDER_ALREADY_CREATED` — заказ уже создан; + * - `ORDER_CREATION_IN_PROGRESS` — создание заказа в процессе; + * - `DRAFT_DOES_NOT_EXIST` — черновик не существует; + * - `CONTRACTOR_CAN_NOT_CREATE_ORDER` — контрагент не может создать заказ; + * - `INACTIVE_CONTRACT` — нельзя редактировать состав поставки с неактивным договором; + * - `DRAFT_INCORRECT_STATE` — некорректный статус черновика; + * - `INVALID_VOLUME` — некорректный объём поставки; + * - `INVALID_ROUTE` — некорректный маршрут; + * - `INVALID_STORAGE_WAREHOUSE` — некорректный склад хранения; + * - `INVALID_STORAGE_REGION` — некорректный регион хранения; + * - `INVALID_SPLITTING` — некорректное разделение; + * - `INVALID_SUPPLY_CONTENT` — некорректное содержимое поставки; + * - `TIMESLOT_NOT_AVAILABLE` — нет доступных таймслотов; + * - `SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE` — требуется распределение SKU, но оно невозможно; + * - `XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER` — поставка кросс-докингом через пункт выдачи заказов недоступна для продавца; + * - `DRAFT_IS_LOCKED` — черновик заблокирован; + * - `INVALID_PACKAGE_UNITS_COUNTS` — некорректное количество грузомест; + * - `SELLER_CONVERSATION_DOES_NOT_EXIST` — точка отгрузки с таким `id` не существует; + * - `USER_CAN_NOT_CREATE_SELLER_CONVERSATION` — пользователь не может написать продавцу; + * - `SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT` — товар с меткой `is_ettn_required` не разрешён для точки отгрузки; + * - `INVALID_SELLER_WAREHOUSE` — склад продавца недоступен; + * - `PICKUP_ORDER_LIMIT_EXCEEDED` — превышен лимит заказов на самовывоз; + * - `MINIMUM_VOLUME_IN_LITRES_INVALID` — некорректный минимальный объём в литрах; + * - `INVALID_CLUSTERS_COUNT` — переданы не все кластеры из расчёта; + * - `UNDEFINED` — неизвестная ошибка. + * + * @type {Array} + * @memberof V2DraftSupplyCreateStatusResponse + */ + error_reasons?: Array; + /** + * Идентификатор заявки на поставку. + * @type {number} + * @memberof V2DraftSupplyCreateStatusResponse + */ + order_id?: number; + /** + * + * @type {V2DraftSupplyCreateStatusResponseStatusEnum} + * @memberof V2DraftSupplyCreateStatusResponse + */ + status?: V2DraftSupplyCreateStatusResponseStatusEnum; +} +/** + * Check if a given object implements the V2DraftSupplyCreateStatusResponse interface. + */ +export declare function instanceOfV2DraftSupplyCreateStatusResponse(value: object): value is V2DraftSupplyCreateStatusResponse; +export declare function V2DraftSupplyCreateStatusResponseFromJSON(json: any): V2DraftSupplyCreateStatusResponse; +export declare function V2DraftSupplyCreateStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateStatusResponse; +export declare function V2DraftSupplyCreateStatusResponseToJSON(value?: V2DraftSupplyCreateStatusResponse | null): any; diff --git a/dist/models/V2DraftSupplyCreateStatusResponse.js b/dist/models/V2DraftSupplyCreateStatusResponse.js new file mode 100644 index 0000000..15a92d5 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateStatusResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftSupplyCreateStatusResponse = instanceOfV2DraftSupplyCreateStatusResponse; +exports.V2DraftSupplyCreateStatusResponseFromJSON = V2DraftSupplyCreateStatusResponseFromJSON; +exports.V2DraftSupplyCreateStatusResponseFromJSONTyped = V2DraftSupplyCreateStatusResponseFromJSONTyped; +exports.V2DraftSupplyCreateStatusResponseToJSON = V2DraftSupplyCreateStatusResponseToJSON; +const V2DraftSupplyCreateStatusResponseErrorReasonEnum_1 = require("./V2DraftSupplyCreateStatusResponseErrorReasonEnum"); +const V2DraftSupplyCreateStatusResponseStatusEnum_1 = require("./V2DraftSupplyCreateStatusResponseStatusEnum"); +/** + * Check if a given object implements the V2DraftSupplyCreateStatusResponse interface. + */ +function instanceOfV2DraftSupplyCreateStatusResponse(value) { + return true; +} +function V2DraftSupplyCreateStatusResponseFromJSON(json) { + return V2DraftSupplyCreateStatusResponseFromJSONTyped(json, false); +} +function V2DraftSupplyCreateStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reasons': json['error_reasons'] == null ? undefined : (json['error_reasons'].map(V2DraftSupplyCreateStatusResponseErrorReasonEnum_1.V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON)), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'status': json['status'] == null ? undefined : (0, V2DraftSupplyCreateStatusResponseStatusEnum_1.V2DraftSupplyCreateStatusResponseStatusEnumFromJSON)(json['status']), + }; +} +function V2DraftSupplyCreateStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reasons': value['error_reasons'] == null ? undefined : (value['error_reasons'].map(V2DraftSupplyCreateStatusResponseErrorReasonEnum_1.V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON)), + 'order_id': value['order_id'], + 'status': (0, V2DraftSupplyCreateStatusResponseStatusEnum_1.V2DraftSupplyCreateStatusResponseStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.d.ts b/dist/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.d.ts new file mode 100644 index 0000000..87b8b61 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V2DraftSupplyCreateStatusResponseErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SOME_SERVICE_ERROR: "SOME_SERVICE_ERROR"; + readonly ORDER_SKU_LIMIT: "ORDER_SKU_LIMIT"; + readonly INVALID_QUANTITY_OR_QUANT: "INVALID_QUANTITY_OR_QUANT"; + readonly ORDER_ALREADY_CREATED: "ORDER_ALREADY_CREATED"; + readonly ORDER_CREATION_IN_PROGRESS: "ORDER_CREATION_IN_PROGRESS"; + readonly DRAFT_DOES_NOT_EXIST: "DRAFT_DOES_NOT_EXIST"; + readonly CONTRACTOR_CAN_NOT_CREATE_ORDER: "CONTRACTOR_CAN_NOT_CREATE_ORDER"; + readonly INACTIVE_CONTRACT: "INACTIVE_CONTRACT"; + readonly DRAFT_INCORRECT_STATE: "DRAFT_INCORRECT_STATE"; + readonly INVALID_VOLUME: "INVALID_VOLUME"; + readonly INVALID_ROUTE: "INVALID_ROUTE"; + readonly INVALID_STORAGE_WAREHOUSE: "INVALID_STORAGE_WAREHOUSE"; + readonly INVALID_STORAGE_REGION: "INVALID_STORAGE_REGION"; + readonly INVALID_SPLITTING: "INVALID_SPLITTING"; + readonly INVALID_SUPPLY_CONTENT: "INVALID_SUPPLY_CONTENT"; + readonly TIMESLOT_NOT_AVAILABLE: "TIMESLOT_NOT_AVAILABLE"; + readonly SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: "SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE"; + readonly XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: "XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER"; + readonly DRAFT_IS_LOCKED: "DRAFT_IS_LOCKED"; + readonly INVALID_PACKAGE_UNITS_COUNTS: "INVALID_PACKAGE_UNITS_COUNTS"; + readonly SELLER_CONVERSATION_DOES_NOT_EXIST: "SELLER_CONVERSATION_DOES_NOT_EXIST"; + readonly USER_CAN_NOT_CREATE_SELLER_CONVERSATION: "USER_CAN_NOT_CREATE_SELLER_CONVERSATION"; + readonly SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT: "SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT"; + readonly INVALID_SELLER_WAREHOUSE: "INVALID_SELLER_WAREHOUSE"; + readonly PICKUP_ORDER_LIMIT_EXCEEDED: "PICKUP_ORDER_LIMIT_EXCEEDED"; + readonly INVALID_CLUSTERS_COUNT: "INVALID_CLUSTERS_COUNT"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type V2DraftSupplyCreateStatusResponseErrorReasonEnum = typeof V2DraftSupplyCreateStatusResponseErrorReasonEnum[keyof typeof V2DraftSupplyCreateStatusResponseErrorReasonEnum]; +export declare function instanceOfV2DraftSupplyCreateStatusResponseErrorReasonEnum(value: any): boolean; +export declare function V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON(json: any): V2DraftSupplyCreateStatusResponseErrorReasonEnum; +export declare function V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateStatusResponseErrorReasonEnum; +export declare function V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON(value?: V2DraftSupplyCreateStatusResponseErrorReasonEnum | null): any; diff --git a/dist/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.js b/dist/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.js new file mode 100644 index 0000000..11854d8 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateStatusResponseErrorReasonEnum.js @@ -0,0 +1,73 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2DraftSupplyCreateStatusResponseErrorReasonEnum = void 0; +exports.instanceOfV2DraftSupplyCreateStatusResponseErrorReasonEnum = instanceOfV2DraftSupplyCreateStatusResponseErrorReasonEnum; +exports.V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON = V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON; +exports.V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSONTyped = V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSONTyped; +exports.V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON = V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON; +/** + * + * @export + */ +exports.V2DraftSupplyCreateStatusResponseErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SOME_SERVICE_ERROR: 'SOME_SERVICE_ERROR', + ORDER_SKU_LIMIT: 'ORDER_SKU_LIMIT', + INVALID_QUANTITY_OR_QUANT: 'INVALID_QUANTITY_OR_QUANT', + ORDER_ALREADY_CREATED: 'ORDER_ALREADY_CREATED', + ORDER_CREATION_IN_PROGRESS: 'ORDER_CREATION_IN_PROGRESS', + DRAFT_DOES_NOT_EXIST: 'DRAFT_DOES_NOT_EXIST', + CONTRACTOR_CAN_NOT_CREATE_ORDER: 'CONTRACTOR_CAN_NOT_CREATE_ORDER', + INACTIVE_CONTRACT: 'INACTIVE_CONTRACT', + DRAFT_INCORRECT_STATE: 'DRAFT_INCORRECT_STATE', + INVALID_VOLUME: 'INVALID_VOLUME', + INVALID_ROUTE: 'INVALID_ROUTE', + INVALID_STORAGE_WAREHOUSE: 'INVALID_STORAGE_WAREHOUSE', + INVALID_STORAGE_REGION: 'INVALID_STORAGE_REGION', + INVALID_SPLITTING: 'INVALID_SPLITTING', + INVALID_SUPPLY_CONTENT: 'INVALID_SUPPLY_CONTENT', + TIMESLOT_NOT_AVAILABLE: 'TIMESLOT_NOT_AVAILABLE', + SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE: 'SKU_DISTRIBUTION_REQUIRED_BUT_NOT_POSSIBLE', + XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER: 'XDOCK_IN_DELIVERY_POINT_DISABLED_FOR_SELLER', + DRAFT_IS_LOCKED: 'DRAFT_IS_LOCKED', + INVALID_PACKAGE_UNITS_COUNTS: 'INVALID_PACKAGE_UNITS_COUNTS', + SELLER_CONVERSATION_DOES_NOT_EXIST: 'SELLER_CONVERSATION_DOES_NOT_EXIST', + USER_CAN_NOT_CREATE_SELLER_CONVERSATION: 'USER_CAN_NOT_CREATE_SELLER_CONVERSATION', + SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT: 'SKU_WITH_ETTN_REQUIRED_TAG_NOT_ALLOWED_FOR_DROP_OFF_POINT', + INVALID_SELLER_WAREHOUSE: 'INVALID_SELLER_WAREHOUSE', + PICKUP_ORDER_LIMIT_EXCEEDED: 'PICKUP_ORDER_LIMIT_EXCEEDED', + INVALID_CLUSTERS_COUNT: 'INVALID_CLUSTERS_COUNT', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfV2DraftSupplyCreateStatusResponseErrorReasonEnum(value) { + for (const key in exports.V2DraftSupplyCreateStatusResponseErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2DraftSupplyCreateStatusResponseErrorReasonEnum, key)) { + if (exports.V2DraftSupplyCreateStatusResponseErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSON(json) { + return V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSONTyped(json, false); +} +function V2DraftSupplyCreateStatusResponseErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2DraftSupplyCreateStatusResponseErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2DraftSupplyCreateStatusResponseStatusEnum.d.ts b/dist/models/V2DraftSupplyCreateStatusResponseStatusEnum.d.ts new file mode 100644 index 0000000..df27977 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateStatusResponseStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус создания заявки на поставку: + * - `UNSPECIFIED` — не определён, + * - `SUCCESS` — создана, + * - `IN_PROGRESS` — создаётся, + * - `FAILED` — не удалось создать. + * + * @export + */ +export declare const V2DraftSupplyCreateStatusResponseStatusEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly SUCCESS: "SUCCESS"; + readonly IN_PROGRESS: "IN_PROGRESS"; + readonly FAILED: "FAILED"; +}; +export type V2DraftSupplyCreateStatusResponseStatusEnum = typeof V2DraftSupplyCreateStatusResponseStatusEnum[keyof typeof V2DraftSupplyCreateStatusResponseStatusEnum]; +export declare function instanceOfV2DraftSupplyCreateStatusResponseStatusEnum(value: any): boolean; +export declare function V2DraftSupplyCreateStatusResponseStatusEnumFromJSON(json: any): V2DraftSupplyCreateStatusResponseStatusEnum; +export declare function V2DraftSupplyCreateStatusResponseStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftSupplyCreateStatusResponseStatusEnum; +export declare function V2DraftSupplyCreateStatusResponseStatusEnumToJSON(value?: V2DraftSupplyCreateStatusResponseStatusEnum | null): any; diff --git a/dist/models/V2DraftSupplyCreateStatusResponseStatusEnum.js b/dist/models/V2DraftSupplyCreateStatusResponseStatusEnum.js new file mode 100644 index 0000000..c5ab6e8 --- /dev/null +++ b/dist/models/V2DraftSupplyCreateStatusResponseStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2DraftSupplyCreateStatusResponseStatusEnum = void 0; +exports.instanceOfV2DraftSupplyCreateStatusResponseStatusEnum = instanceOfV2DraftSupplyCreateStatusResponseStatusEnum; +exports.V2DraftSupplyCreateStatusResponseStatusEnumFromJSON = V2DraftSupplyCreateStatusResponseStatusEnumFromJSON; +exports.V2DraftSupplyCreateStatusResponseStatusEnumFromJSONTyped = V2DraftSupplyCreateStatusResponseStatusEnumFromJSONTyped; +exports.V2DraftSupplyCreateStatusResponseStatusEnumToJSON = V2DraftSupplyCreateStatusResponseStatusEnumToJSON; +/** + * Статус создания заявки на поставку: + * - `UNSPECIFIED` — не определён, + * - `SUCCESS` — создана, + * - `IN_PROGRESS` — создаётся, + * - `FAILED` — не удалось создать. + * + * @export + */ +exports.V2DraftSupplyCreateStatusResponseStatusEnum = { + UNSPECIFIED: 'UNSPECIFIED', + SUCCESS: 'SUCCESS', + IN_PROGRESS: 'IN_PROGRESS', + FAILED: 'FAILED' +}; +function instanceOfV2DraftSupplyCreateStatusResponseStatusEnum(value) { + for (const key in exports.V2DraftSupplyCreateStatusResponseStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2DraftSupplyCreateStatusResponseStatusEnum, key)) { + if (exports.V2DraftSupplyCreateStatusResponseStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2DraftSupplyCreateStatusResponseStatusEnumFromJSON(json) { + return V2DraftSupplyCreateStatusResponseStatusEnumFromJSONTyped(json, false); +} +function V2DraftSupplyCreateStatusResponseStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2DraftSupplyCreateStatusResponseStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2DraftTimeslotInfoRequest.d.ts b/dist/models/V2DraftTimeslotInfoRequest.d.ts new file mode 100644 index 0000000..782e738 --- /dev/null +++ b/dist/models/V2DraftTimeslotInfoRequest.d.ts @@ -0,0 +1,72 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftTimeslotInfoRequestSelectedClusterWarehouse } from './V2DraftTimeslotInfoRequestSelectedClusterWarehouse'; +/** + * + * @export + * @interface V2DraftTimeslotInfoRequest + */ +export interface V2DraftTimeslotInfoRequest { + /** + * Дата начала периода доступных таймслотов. + * @type {string} + * @memberof V2DraftTimeslotInfoRequest + */ + date_from: string; + /** + * Дата окончания периода доступных таймслотов. + * + * Максимальный период — 28 дней с текущей даты. + * + * @type {string} + * @memberof V2DraftTimeslotInfoRequest + */ + date_to: string; + /** + * Идентификатор черновика из метода [/v2/draft/create/info](#operation/DraftCreateInfo). + * @type {number} + * @memberof V2DraftTimeslotInfoRequest + */ + draft_id: number; + /** + * Тип поставки: + * - `CROSSDOCK` — кросс-докинг; + * - `DIRECT` — прямая; + * - `MULTI_CLUSTER` — для нескольких кластеров. + * + * @type {string} + * @memberof V2DraftTimeslotInfoRequest + */ + supply_type: V2DraftTimeslotInfoRequestSupplyTypeEnum; + /** + * Информация о кластере и складах в нём. Можно передать один кластер для кросс-докинговой и прямой поставки или список всех кластеров для поставки в несколько кластеров. + * @type {Array} + * @memberof V2DraftTimeslotInfoRequest + */ + selected_cluster_warehouses: Array; +} +/** + * @export + */ +export declare const V2DraftTimeslotInfoRequestSupplyTypeEnum: { + readonly CROSSDOCK: "CROSSDOCK"; + readonly DIRECT: "DIRECT"; + readonly MULTI_CLUSTER: "MULTI_CLUSTER"; +}; +export type V2DraftTimeslotInfoRequestSupplyTypeEnum = typeof V2DraftTimeslotInfoRequestSupplyTypeEnum[keyof typeof V2DraftTimeslotInfoRequestSupplyTypeEnum]; +/** + * Check if a given object implements the V2DraftTimeslotInfoRequest interface. + */ +export declare function instanceOfV2DraftTimeslotInfoRequest(value: object): value is V2DraftTimeslotInfoRequest; +export declare function V2DraftTimeslotInfoRequestFromJSON(json: any): V2DraftTimeslotInfoRequest; +export declare function V2DraftTimeslotInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftTimeslotInfoRequest; +export declare function V2DraftTimeslotInfoRequestToJSON(value?: V2DraftTimeslotInfoRequest | null): any; diff --git a/dist/models/V2DraftTimeslotInfoRequest.js b/dist/models/V2DraftTimeslotInfoRequest.js new file mode 100644 index 0000000..a4d176c --- /dev/null +++ b/dist/models/V2DraftTimeslotInfoRequest.js @@ -0,0 +1,72 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2DraftTimeslotInfoRequestSupplyTypeEnum = void 0; +exports.instanceOfV2DraftTimeslotInfoRequest = instanceOfV2DraftTimeslotInfoRequest; +exports.V2DraftTimeslotInfoRequestFromJSON = V2DraftTimeslotInfoRequestFromJSON; +exports.V2DraftTimeslotInfoRequestFromJSONTyped = V2DraftTimeslotInfoRequestFromJSONTyped; +exports.V2DraftTimeslotInfoRequestToJSON = V2DraftTimeslotInfoRequestToJSON; +const V2DraftTimeslotInfoRequestSelectedClusterWarehouse_1 = require("./V2DraftTimeslotInfoRequestSelectedClusterWarehouse"); +/** + * @export + */ +exports.V2DraftTimeslotInfoRequestSupplyTypeEnum = { + CROSSDOCK: 'CROSSDOCK', + DIRECT: 'DIRECT', + MULTI_CLUSTER: 'MULTI_CLUSTER' +}; +/** + * Check if a given object implements the V2DraftTimeslotInfoRequest interface. + */ +function instanceOfV2DraftTimeslotInfoRequest(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('draft_id' in value) || value['draft_id'] === undefined) + return false; + if (!('supply_type' in value) || value['supply_type'] === undefined) + return false; + if (!('selected_cluster_warehouses' in value) || value['selected_cluster_warehouses'] === undefined) + return false; + return true; +} +function V2DraftTimeslotInfoRequestFromJSON(json) { + return V2DraftTimeslotInfoRequestFromJSONTyped(json, false); +} +function V2DraftTimeslotInfoRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'draft_id': json['draft_id'], + 'supply_type': json['supply_type'], + 'selected_cluster_warehouses': (json['selected_cluster_warehouses'].map(V2DraftTimeslotInfoRequestSelectedClusterWarehouse_1.V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON)), + }; +} +function V2DraftTimeslotInfoRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'draft_id': value['draft_id'], + 'supply_type': value['supply_type'], + 'selected_cluster_warehouses': (value['selected_cluster_warehouses'].map(V2DraftTimeslotInfoRequestSelectedClusterWarehouse_1.V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON)), + }; +} diff --git a/dist/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.d.ts b/dist/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.d.ts new file mode 100644 index 0000000..3967120 --- /dev/null +++ b/dist/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2DraftTimeslotInfoRequestSelectedClusterWarehouse + */ +export interface V2DraftTimeslotInfoRequestSelectedClusterWarehouse { + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof V2DraftTimeslotInfoRequestSelectedClusterWarehouse + */ + macrolocal_cluster_id?: number; + /** + * Идентификатор склада хранения. Только для поставок с типом `DIRECT`. + * @type {number} + * @memberof V2DraftTimeslotInfoRequestSelectedClusterWarehouse + */ + storage_warehouse_id?: number; +} +/** + * Check if a given object implements the V2DraftTimeslotInfoRequestSelectedClusterWarehouse interface. + */ +export declare function instanceOfV2DraftTimeslotInfoRequestSelectedClusterWarehouse(value: object): value is V2DraftTimeslotInfoRequestSelectedClusterWarehouse; +export declare function V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON(json: any): V2DraftTimeslotInfoRequestSelectedClusterWarehouse; +export declare function V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftTimeslotInfoRequestSelectedClusterWarehouse; +export declare function V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON(value?: V2DraftTimeslotInfoRequestSelectedClusterWarehouse | null): any; diff --git a/dist/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.js b/dist/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.js new file mode 100644 index 0000000..b25f1cc --- /dev/null +++ b/dist/models/V2DraftTimeslotInfoRequestSelectedClusterWarehouse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftTimeslotInfoRequestSelectedClusterWarehouse = instanceOfV2DraftTimeslotInfoRequestSelectedClusterWarehouse; +exports.V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON = V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON; +exports.V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSONTyped = V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSONTyped; +exports.V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON = V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON; +/** + * Check if a given object implements the V2DraftTimeslotInfoRequestSelectedClusterWarehouse interface. + */ +function instanceOfV2DraftTimeslotInfoRequestSelectedClusterWarehouse(value) { + return true; +} +function V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSON(json) { + return V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSONTyped(json, false); +} +function V2DraftTimeslotInfoRequestSelectedClusterWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'storage_warehouse_id': json['storage_warehouse_id'] == null ? undefined : json['storage_warehouse_id'], + }; +} +function V2DraftTimeslotInfoRequestSelectedClusterWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'storage_warehouse_id': value['storage_warehouse_id'], + }; +} diff --git a/dist/models/V2DraftTimeslotInfoResponse.d.ts b/dist/models/V2DraftTimeslotInfoResponse.d.ts new file mode 100644 index 0000000..2ef222c --- /dev/null +++ b/dist/models/V2DraftTimeslotInfoResponse.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2DraftTimeslotInfoResponseErrorReasonEnum } from './V2DraftTimeslotInfoResponseErrorReasonEnum'; +import type { DraftTimeslotInfoResponseResult } from './DraftTimeslotInfoResponseResult'; +/** + * + * @export + * @interface V2DraftTimeslotInfoResponse + */ +export interface V2DraftTimeslotInfoResponse { + /** + * + * @type {V2DraftTimeslotInfoResponseErrorReasonEnum} + * @memberof V2DraftTimeslotInfoResponse + */ + error_reason?: V2DraftTimeslotInfoResponseErrorReasonEnum; + /** + * + * @type {DraftTimeslotInfoResponseResult} + * @memberof V2DraftTimeslotInfoResponse + */ + result?: DraftTimeslotInfoResponseResult; +} +/** + * Check if a given object implements the V2DraftTimeslotInfoResponse interface. + */ +export declare function instanceOfV2DraftTimeslotInfoResponse(value: object): value is V2DraftTimeslotInfoResponse; +export declare function V2DraftTimeslotInfoResponseFromJSON(json: any): V2DraftTimeslotInfoResponse; +export declare function V2DraftTimeslotInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftTimeslotInfoResponse; +export declare function V2DraftTimeslotInfoResponseToJSON(value?: V2DraftTimeslotInfoResponse | null): any; diff --git a/dist/models/V2DraftTimeslotInfoResponse.js b/dist/models/V2DraftTimeslotInfoResponse.js new file mode 100644 index 0000000..12f86f6 --- /dev/null +++ b/dist/models/V2DraftTimeslotInfoResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2DraftTimeslotInfoResponse = instanceOfV2DraftTimeslotInfoResponse; +exports.V2DraftTimeslotInfoResponseFromJSON = V2DraftTimeslotInfoResponseFromJSON; +exports.V2DraftTimeslotInfoResponseFromJSONTyped = V2DraftTimeslotInfoResponseFromJSONTyped; +exports.V2DraftTimeslotInfoResponseToJSON = V2DraftTimeslotInfoResponseToJSON; +const V2DraftTimeslotInfoResponseErrorReasonEnum_1 = require("./V2DraftTimeslotInfoResponseErrorReasonEnum"); +const DraftTimeslotInfoResponseResult_1 = require("./DraftTimeslotInfoResponseResult"); +/** + * Check if a given object implements the V2DraftTimeslotInfoResponse interface. + */ +function instanceOfV2DraftTimeslotInfoResponse(value) { + return true; +} +function V2DraftTimeslotInfoResponseFromJSON(json) { + return V2DraftTimeslotInfoResponseFromJSONTyped(json, false); +} +function V2DraftTimeslotInfoResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error_reason': json['error_reason'] == null ? undefined : (0, V2DraftTimeslotInfoResponseErrorReasonEnum_1.V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON)(json['error_reason']), + 'result': json['result'] == null ? undefined : (0, DraftTimeslotInfoResponseResult_1.DraftTimeslotInfoResponseResultFromJSON)(json['result']), + }; +} +function V2DraftTimeslotInfoResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'error_reason': (0, V2DraftTimeslotInfoResponseErrorReasonEnum_1.V2DraftTimeslotInfoResponseErrorReasonEnumToJSON)(value['error_reason']), + 'result': (0, DraftTimeslotInfoResponseResult_1.DraftTimeslotInfoResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V2DraftTimeslotInfoResponseErrorReasonEnum.d.ts b/dist/models/V2DraftTimeslotInfoResponseErrorReasonEnum.d.ts new file mode 100644 index 0000000..762c79f --- /dev/null +++ b/dist/models/V2DraftTimeslotInfoResponseErrorReasonEnum.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `INVALID_CLUSTERS_COUNT` — переданы не все кластеры из расчёта; + * - `REQUESTED_PERIOD_MORE_THAN_MAX` — превышен период; + * - `INVALID_REQUESTED_CLUSTER_IDS` — переданы кластеры, которых нет в расчёте. + * - `UNDEFINED` — неизвестная ошибка. + * + * @export + */ +export declare const V2DraftTimeslotInfoResponseErrorReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_CLUSTERS_COUNT: "INVALID_CLUSTERS_COUNT"; + readonly REQUESTED_PERIOD_MORE_THAN_MAX: "REQUESTED_PERIOD_MORE_THAN_MAX"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type V2DraftTimeslotInfoResponseErrorReasonEnum = typeof V2DraftTimeslotInfoResponseErrorReasonEnum[keyof typeof V2DraftTimeslotInfoResponseErrorReasonEnum]; +export declare function instanceOfV2DraftTimeslotInfoResponseErrorReasonEnum(value: any): boolean; +export declare function V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON(json: any): V2DraftTimeslotInfoResponseErrorReasonEnum; +export declare function V2DraftTimeslotInfoResponseErrorReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2DraftTimeslotInfoResponseErrorReasonEnum; +export declare function V2DraftTimeslotInfoResponseErrorReasonEnumToJSON(value?: V2DraftTimeslotInfoResponseErrorReasonEnum | null): any; diff --git a/dist/models/V2DraftTimeslotInfoResponseErrorReasonEnum.js b/dist/models/V2DraftTimeslotInfoResponseErrorReasonEnum.js new file mode 100644 index 0000000..5997cc9 --- /dev/null +++ b/dist/models/V2DraftTimeslotInfoResponseErrorReasonEnum.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2DraftTimeslotInfoResponseErrorReasonEnum = void 0; +exports.instanceOfV2DraftTimeslotInfoResponseErrorReasonEnum = instanceOfV2DraftTimeslotInfoResponseErrorReasonEnum; +exports.V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON = V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON; +exports.V2DraftTimeslotInfoResponseErrorReasonEnumFromJSONTyped = V2DraftTimeslotInfoResponseErrorReasonEnumFromJSONTyped; +exports.V2DraftTimeslotInfoResponseErrorReasonEnumToJSON = V2DraftTimeslotInfoResponseErrorReasonEnumToJSON; +/** + * Причина ошибки: + * - `UNSPECIFIED` — не определена; + * - `INVALID_CLUSTERS_COUNT` — переданы не все кластеры из расчёта; + * - `REQUESTED_PERIOD_MORE_THAN_MAX` — превышен период; + * - `INVALID_REQUESTED_CLUSTER_IDS` — переданы кластеры, которых нет в расчёте. + * - `UNDEFINED` — неизвестная ошибка. + * + * @export + */ +exports.V2DraftTimeslotInfoResponseErrorReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_CLUSTERS_COUNT: 'INVALID_CLUSTERS_COUNT', + REQUESTED_PERIOD_MORE_THAN_MAX: 'REQUESTED_PERIOD_MORE_THAN_MAX', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfV2DraftTimeslotInfoResponseErrorReasonEnum(value) { + for (const key in exports.V2DraftTimeslotInfoResponseErrorReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2DraftTimeslotInfoResponseErrorReasonEnum, key)) { + if (exports.V2DraftTimeslotInfoResponseErrorReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2DraftTimeslotInfoResponseErrorReasonEnumFromJSON(json) { + return V2DraftTimeslotInfoResponseErrorReasonEnumFromJSONTyped(json, false); +} +function V2DraftTimeslotInfoResponseErrorReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2DraftTimeslotInfoResponseErrorReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2FboPosting.d.ts b/dist/models/V2FboPosting.d.ts new file mode 100644 index 0000000..1602802 --- /dev/null +++ b/dist/models/V2FboPosting.d.ts @@ -0,0 +1,140 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingV2FboSinglePostingExternalOrder } from './PostingV2FboSinglePostingExternalOrder'; +import type { FboPostingFboPostingAnalyticsData } from './FboPostingFboPostingAnalyticsData'; +import type { V2AdditionalDataItem } from './V2AdditionalDataItem'; +import type { V2PostingProduct } from './V2PostingProduct'; +import type { V2PostingFinancialDataFBO } from './V2PostingFinancialDataFBO'; +import type { V2FboSinglePostingLegalInfo } from './V2FboSinglePostingLegalInfo'; +/** + * Результат запроса. + * @export + * @interface V2FboPosting + */ +export interface V2FboPosting { + /** + * + * @type {Array} + * @memberof V2FboPosting + */ + additional_data?: Array; + /** + * + * @type {FboPostingFboPostingAnalyticsData} + * @memberof V2FboPosting + */ + analytics_data?: FboPostingFboPostingAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof V2FboPosting + */ + cancel_reason_id?: number; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof V2FboPosting + */ + created_at?: string; + /** + * + * @type {PostingV2FboSinglePostingExternalOrder} + * @memberof V2FboPosting + */ + external_order?: PostingV2FboSinglePostingExternalOrder; + /** + * Дата фактической передачи отправления в доставку. + * @type {string} + * @memberof V2FboPosting + */ + fact_delivery_date?: string; + /** + * + * @type {V2PostingFinancialDataFBO} + * @memberof V2FboPosting + */ + financial_data?: V2PostingFinancialDataFBO; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V2FboPosting + */ + in_process_at?: string; + /** + * + * @type {V2FboSinglePostingLegalInfo} + * @memberof V2FboPosting + */ + legal_info?: V2FboSinglePostingLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V2FboPosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V2FboPosting + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2FboPosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V2FboPosting + */ + products?: Array; + /** + * Статус отправления: + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_deliver` — ожидает отгрузки, + * - `delivering` — доставляется, + * - `delivered` — доставлено, + * - `cancelled` — отменено. + * + * @type {string} + * @memberof V2FboPosting + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_split_pending`, `posting_created` — создано; + * - `posting_packing` — на упаковке; + * - `posting_transferring_to_delivery` — передаётся в доставку; + * - `posting_on_way_to_city` — на пути в город доставки; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_delivered` — доставлено курьером; + * - `posting_received` — получено в пункте выдачи; + * - `posting_canceled` — отменено. + * + * @type {string} + * @memberof V2FboPosting + */ + substatus?: string; +} +/** + * Check if a given object implements the V2FboPosting interface. + */ +export declare function instanceOfV2FboPosting(value: object): value is V2FboPosting; +export declare function V2FboPostingFromJSON(json: any): V2FboPosting; +export declare function V2FboPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboPosting; +export declare function V2FboPostingToJSON(value?: V2FboPosting | null): any; diff --git a/dist/models/V2FboPosting.js b/dist/models/V2FboPosting.js new file mode 100644 index 0000000..b58a8ec --- /dev/null +++ b/dist/models/V2FboPosting.js @@ -0,0 +1,78 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FboPosting = instanceOfV2FboPosting; +exports.V2FboPostingFromJSON = V2FboPostingFromJSON; +exports.V2FboPostingFromJSONTyped = V2FboPostingFromJSONTyped; +exports.V2FboPostingToJSON = V2FboPostingToJSON; +const PostingV2FboSinglePostingExternalOrder_1 = require("./PostingV2FboSinglePostingExternalOrder"); +const FboPostingFboPostingAnalyticsData_1 = require("./FboPostingFboPostingAnalyticsData"); +const V2AdditionalDataItem_1 = require("./V2AdditionalDataItem"); +const V2PostingProduct_1 = require("./V2PostingProduct"); +const V2PostingFinancialDataFBO_1 = require("./V2PostingFinancialDataFBO"); +const V2FboSinglePostingLegalInfo_1 = require("./V2FboSinglePostingLegalInfo"); +/** + * Check if a given object implements the V2FboPosting interface. + */ +function instanceOfV2FboPosting(value) { + return true; +} +function V2FboPostingFromJSON(json) { + return V2FboPostingFromJSONTyped(json, false); +} +function V2FboPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(V2AdditionalDataItem_1.V2AdditionalDataItemFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, FboPostingFboPostingAnalyticsData_1.FboPostingFboPostingAnalyticsDataFromJSON)(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'external_order': json['external_order'] == null ? undefined : (0, PostingV2FboSinglePostingExternalOrder_1.PostingV2FboSinglePostingExternalOrderFromJSON)(json['external_order']), + 'fact_delivery_date': json['fact_delivery_date'] == null ? undefined : json['fact_delivery_date'], + 'financial_data': json['financial_data'] == null ? undefined : (0, V2PostingFinancialDataFBO_1.V2PostingFinancialDataFBOFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoFromJSON)(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2PostingProduct_1.V2PostingProductFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + }; +} +function V2FboPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(V2AdditionalDataItem_1.V2AdditionalDataItemToJSON)), + 'analytics_data': (0, FboPostingFboPostingAnalyticsData_1.FboPostingFboPostingAnalyticsDataToJSON)(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'created_at': value['created_at'], + 'external_order': (0, PostingV2FboSinglePostingExternalOrder_1.PostingV2FboSinglePostingExternalOrderToJSON)(value['external_order']), + 'fact_delivery_date': value['fact_delivery_date'], + 'financial_data': (0, V2PostingFinancialDataFBO_1.V2PostingFinancialDataFBOToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoToJSON)(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2PostingProduct_1.V2PostingProductToJSON)), + 'status': value['status'], + 'substatus': value['substatus'], + }; +} diff --git a/dist/models/V2FboPostingListResponse.d.ts b/dist/models/V2FboPostingListResponse.d.ts new file mode 100644 index 0000000..4cbedd7 --- /dev/null +++ b/dist/models/V2FboPostingListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FboPostingV2 } from './V2FboPostingV2'; +/** + * + * @export + * @interface V2FboPostingListResponse + */ +export interface V2FboPostingListResponse { + /** + * Массив отправлений. + * @type {Array} + * @memberof V2FboPostingListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2FboPostingListResponse interface. + */ +export declare function instanceOfV2FboPostingListResponse(value: object): value is V2FboPostingListResponse; +export declare function V2FboPostingListResponseFromJSON(json: any): V2FboPostingListResponse; +export declare function V2FboPostingListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboPostingListResponse; +export declare function V2FboPostingListResponseToJSON(value?: V2FboPostingListResponse | null): any; diff --git a/dist/models/V2FboPostingListResponse.js b/dist/models/V2FboPostingListResponse.js new file mode 100644 index 0000000..91fea54 --- /dev/null +++ b/dist/models/V2FboPostingListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FboPostingListResponse = instanceOfV2FboPostingListResponse; +exports.V2FboPostingListResponseFromJSON = V2FboPostingListResponseFromJSON; +exports.V2FboPostingListResponseFromJSONTyped = V2FboPostingListResponseFromJSONTyped; +exports.V2FboPostingListResponseToJSON = V2FboPostingListResponseToJSON; +const V2FboPostingV2_1 = require("./V2FboPostingV2"); +/** + * Check if a given object implements the V2FboPostingListResponse interface. + */ +function instanceOfV2FboPostingListResponse(value) { + return true; +} +function V2FboPostingListResponseFromJSON(json) { + return V2FboPostingListResponseFromJSONTyped(json, false); +} +function V2FboPostingListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2FboPostingV2_1.V2FboPostingV2FromJSON)), + }; +} +function V2FboPostingListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2FboPostingV2_1.V2FboPostingV2ToJSON)), + }; +} diff --git a/dist/models/V2FboPostingResponse.d.ts b/dist/models/V2FboPostingResponse.d.ts new file mode 100644 index 0000000..f049d64 --- /dev/null +++ b/dist/models/V2FboPostingResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FboPosting } from './V2FboPosting'; +/** + * + * @export + * @interface V2FboPostingResponse + */ +export interface V2FboPostingResponse { + /** + * + * @type {V2FboPosting} + * @memberof V2FboPostingResponse + */ + result?: V2FboPosting; +} +/** + * Check if a given object implements the V2FboPostingResponse interface. + */ +export declare function instanceOfV2FboPostingResponse(value: object): value is V2FboPostingResponse; +export declare function V2FboPostingResponseFromJSON(json: any): V2FboPostingResponse; +export declare function V2FboPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboPostingResponse; +export declare function V2FboPostingResponseToJSON(value?: V2FboPostingResponse | null): any; diff --git a/dist/models/V2FboPostingResponse.js b/dist/models/V2FboPostingResponse.js new file mode 100644 index 0000000..bb580e2 --- /dev/null +++ b/dist/models/V2FboPostingResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FboPostingResponse = instanceOfV2FboPostingResponse; +exports.V2FboPostingResponseFromJSON = V2FboPostingResponseFromJSON; +exports.V2FboPostingResponseFromJSONTyped = V2FboPostingResponseFromJSONTyped; +exports.V2FboPostingResponseToJSON = V2FboPostingResponseToJSON; +const V2FboPosting_1 = require("./V2FboPosting"); +/** + * Check if a given object implements the V2FboPostingResponse interface. + */ +function instanceOfV2FboPostingResponse(value) { + return true; +} +function V2FboPostingResponseFromJSON(json) { + return V2FboPostingResponseFromJSONTyped(json, false); +} +function V2FboPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V2FboPosting_1.V2FboPostingFromJSON)(json['result']), + }; +} +function V2FboPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V2FboPosting_1.V2FboPostingToJSON)(value['result']), + }; +} diff --git a/dist/models/V2FboPostingV2.d.ts b/dist/models/V2FboPostingV2.d.ts new file mode 100644 index 0000000..486d5c3 --- /dev/null +++ b/dist/models/V2FboPostingV2.d.ts @@ -0,0 +1,127 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFinancialDataFBOV2 } from './V2PostingFinancialDataFBOV2'; +import type { FboPostingFboPostingAnalyticsData } from './FboPostingFboPostingAnalyticsData'; +import type { V2AdditionalDataItem } from './V2AdditionalDataItem'; +import type { V2PostingProduct } from './V2PostingProduct'; +import type { V2FboSinglePostingLegalInfo } from './V2FboSinglePostingLegalInfo'; +/** + * Результат запроса. + * @export + * @interface V2FboPostingV2 + */ +export interface V2FboPostingV2 { + /** + * + * @type {Array} + * @memberof V2FboPostingV2 + */ + additional_data?: Array; + /** + * + * @type {FboPostingFboPostingAnalyticsData} + * @memberof V2FboPostingV2 + */ + analytics_data?: FboPostingFboPostingAnalyticsData; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof V2FboPostingV2 + */ + cancel_reason_id?: number; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof V2FboPostingV2 + */ + created_at?: string; + /** + * + * @type {V2PostingFinancialDataFBOV2} + * @memberof V2FboPostingV2 + */ + financial_data?: V2PostingFinancialDataFBOV2; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V2FboPostingV2 + */ + in_process_at?: string; + /** + * + * @type {V2FboSinglePostingLegalInfo} + * @memberof V2FboPostingV2 + */ + legal_info?: V2FboSinglePostingLegalInfo; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V2FboPostingV2 + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V2FboPostingV2 + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2FboPostingV2 + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V2FboPostingV2 + */ + products?: Array; + /** + * Статус отправления: + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_deliver` — ожидает отгрузки, + * - `delivering` — доставляется, + * - `delivered` — доставлено, + * - `cancelled` — отменено. + * + * @type {string} + * @memberof V2FboPostingV2 + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_split_pending`, `posting_created` — создано; + * - `posting_packing` — на упаковке; + * - `posting_transferring_to_delivery` — передаётся в доставку; + * - `posting_on_way_to_city` — на пути в город доставки; + * - `posting_returned_to_warehouse` — возвращено на склад; + * - `posting_transferred_to_courier_service` — передаётся в службу доставки; + * - `posting_in_courier_service` — курьер в пути; + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи; + * - `posting_in_pickup_point` — в пункте выдачи; + * - `posting_delivered` — доставлено курьером; + * - `posting_received` — получено в пункте выдачи; + * - `posting_canceled` — отменено. + * + * @type {string} + * @memberof V2FboPostingV2 + */ + substatus?: string; +} +/** + * Check if a given object implements the V2FboPostingV2 interface. + */ +export declare function instanceOfV2FboPostingV2(value: object): value is V2FboPostingV2; +export declare function V2FboPostingV2FromJSON(json: any): V2FboPostingV2; +export declare function V2FboPostingV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboPostingV2; +export declare function V2FboPostingV2ToJSON(value?: V2FboPostingV2 | null): any; diff --git a/dist/models/V2FboPostingV2.js b/dist/models/V2FboPostingV2.js new file mode 100644 index 0000000..e0d0c1d --- /dev/null +++ b/dist/models/V2FboPostingV2.js @@ -0,0 +1,73 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FboPostingV2 = instanceOfV2FboPostingV2; +exports.V2FboPostingV2FromJSON = V2FboPostingV2FromJSON; +exports.V2FboPostingV2FromJSONTyped = V2FboPostingV2FromJSONTyped; +exports.V2FboPostingV2ToJSON = V2FboPostingV2ToJSON; +const V2PostingFinancialDataFBOV2_1 = require("./V2PostingFinancialDataFBOV2"); +const FboPostingFboPostingAnalyticsData_1 = require("./FboPostingFboPostingAnalyticsData"); +const V2AdditionalDataItem_1 = require("./V2AdditionalDataItem"); +const V2PostingProduct_1 = require("./V2PostingProduct"); +const V2FboSinglePostingLegalInfo_1 = require("./V2FboSinglePostingLegalInfo"); +/** + * Check if a given object implements the V2FboPostingV2 interface. + */ +function instanceOfV2FboPostingV2(value) { + return true; +} +function V2FboPostingV2FromJSON(json) { + return V2FboPostingV2FromJSONTyped(json, false); +} +function V2FboPostingV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(V2AdditionalDataItem_1.V2AdditionalDataItemFromJSON)), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, FboPostingFboPostingAnalyticsData_1.FboPostingFboPostingAnalyticsDataFromJSON)(json['analytics_data']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'financial_data': json['financial_data'] == null ? undefined : (0, V2PostingFinancialDataFBOV2_1.V2PostingFinancialDataFBOV2FromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'legal_info': json['legal_info'] == null ? undefined : (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoFromJSON)(json['legal_info']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2PostingProduct_1.V2PostingProductFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + }; +} +function V2FboPostingV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(V2AdditionalDataItem_1.V2AdditionalDataItemToJSON)), + 'analytics_data': (0, FboPostingFboPostingAnalyticsData_1.FboPostingFboPostingAnalyticsDataToJSON)(value['analytics_data']), + 'cancel_reason_id': value['cancel_reason_id'], + 'created_at': value['created_at'], + 'financial_data': (0, V2PostingFinancialDataFBOV2_1.V2PostingFinancialDataFBOV2ToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'legal_info': (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoToJSON)(value['legal_info']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2PostingProduct_1.V2PostingProductToJSON)), + 'status': value['status'], + 'substatus': value['substatus'], + }; +} diff --git a/dist/models/V2FboSinglePostingLegalInfo.d.ts b/dist/models/V2FboSinglePostingLegalInfo.d.ts new file mode 100644 index 0000000..99ab9c6 --- /dev/null +++ b/dist/models/V2FboSinglePostingLegalInfo.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Юридическая информация о покупателе. + * @export + * @interface V2FboSinglePostingLegalInfo + */ +export interface V2FboSinglePostingLegalInfo { + /** + * Название компании. + * @type {string} + * @memberof V2FboSinglePostingLegalInfo + */ + company_name?: string; + /** + * ИНН. + * @type {string} + * @memberof V2FboSinglePostingLegalInfo + */ + inn?: string; + /** + * КПП. + * @type {string} + * @memberof V2FboSinglePostingLegalInfo + */ + kpp?: string; +} +/** + * Check if a given object implements the V2FboSinglePostingLegalInfo interface. + */ +export declare function instanceOfV2FboSinglePostingLegalInfo(value: object): value is V2FboSinglePostingLegalInfo; +export declare function V2FboSinglePostingLegalInfoFromJSON(json: any): V2FboSinglePostingLegalInfo; +export declare function V2FboSinglePostingLegalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FboSinglePostingLegalInfo; +export declare function V2FboSinglePostingLegalInfoToJSON(value?: V2FboSinglePostingLegalInfo | null): any; diff --git a/dist/models/V2FboSinglePostingLegalInfo.js b/dist/models/V2FboSinglePostingLegalInfo.js new file mode 100644 index 0000000..a35dfc2 --- /dev/null +++ b/dist/models/V2FboSinglePostingLegalInfo.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FboSinglePostingLegalInfo = instanceOfV2FboSinglePostingLegalInfo; +exports.V2FboSinglePostingLegalInfoFromJSON = V2FboSinglePostingLegalInfoFromJSON; +exports.V2FboSinglePostingLegalInfoFromJSONTyped = V2FboSinglePostingLegalInfoFromJSONTyped; +exports.V2FboSinglePostingLegalInfoToJSON = V2FboSinglePostingLegalInfoToJSON; +/** + * Check if a given object implements the V2FboSinglePostingLegalInfo interface. + */ +function instanceOfV2FboSinglePostingLegalInfo(value) { + return true; +} +function V2FboSinglePostingLegalInfoFromJSON(json) { + return V2FboSinglePostingLegalInfoFromJSONTyped(json, false); +} +function V2FboSinglePostingLegalInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'company_name': json['company_name'] == null ? undefined : json['company_name'], + 'inn': json['inn'] == null ? undefined : json['inn'], + 'kpp': json['kpp'] == null ? undefined : json['kpp'], + }; +} +function V2FboSinglePostingLegalInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'company_name': value['company_name'], + 'inn': value['inn'], + 'kpp': value['kpp'], + }; +} diff --git a/dist/models/V2FbsPosting.d.ts b/dist/models/V2FbsPosting.d.ts new file mode 100644 index 0000000..50ca98f --- /dev/null +++ b/dist/models/V2FbsPosting.d.ts @@ -0,0 +1,87 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FbsPostingProduct } from './V2FbsPostingProduct'; +import type { FbsPostingBarcodes } from './FbsPostingBarcodes'; +/** + * Результаты запроса. + * @export + * @interface V2FbsPosting + */ +export interface V2FbsPosting { + /** + * + * @type {FbsPostingBarcodes} + * @memberof V2FbsPosting + */ + barcodes?: FbsPostingBarcodes; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof V2FbsPosting + */ + cancel_reason_id?: number; + /** + * Дата и время создания отправления. + * @type {string} + * @memberof V2FbsPosting + */ + created_at?: string; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V2FbsPosting + */ + in_process_at?: string; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V2FbsPosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V2FbsPosting + */ + order_number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2FbsPosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V2FbsPosting + */ + products?: Array; + /** + * Дата и время, до которой необходимо собрать отправление. Если отправление не собрать к этой дате — оно автоматически отменится. + * @type {string} + * @memberof V2FbsPosting + */ + shipment_date?: string; + /** + * Статус отправления. + * @type {string} + * @memberof V2FbsPosting + */ + status?: string; +} +/** + * Check if a given object implements the V2FbsPosting interface. + */ +export declare function instanceOfV2FbsPosting(value: object): value is V2FbsPosting; +export declare function V2FbsPostingFromJSON(json: any): V2FbsPosting; +export declare function V2FbsPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPosting; +export declare function V2FbsPostingToJSON(value?: V2FbsPosting | null): any; diff --git a/dist/models/V2FbsPosting.js b/dist/models/V2FbsPosting.js new file mode 100644 index 0000000..3c34c31 --- /dev/null +++ b/dist/models/V2FbsPosting.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FbsPosting = instanceOfV2FbsPosting; +exports.V2FbsPostingFromJSON = V2FbsPostingFromJSON; +exports.V2FbsPostingFromJSONTyped = V2FbsPostingFromJSONTyped; +exports.V2FbsPostingToJSON = V2FbsPostingToJSON; +const V2FbsPostingProduct_1 = require("./V2FbsPostingProduct"); +const FbsPostingBarcodes_1 = require("./FbsPostingBarcodes"); +/** + * Check if a given object implements the V2FbsPosting interface. + */ +function instanceOfV2FbsPosting(value) { + return true; +} +function V2FbsPostingFromJSON(json) { + return V2FbsPostingFromJSONTyped(json, false); +} +function V2FbsPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcodes': json['barcodes'] == null ? undefined : (0, FbsPostingBarcodes_1.FbsPostingBarcodesFromJSON)(json['barcodes']), + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2FbsPostingProduct_1.V2FbsPostingProductFromJSON)), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V2FbsPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcodes': (0, FbsPostingBarcodes_1.FbsPostingBarcodesToJSON)(value['barcodes']), + 'cancel_reason_id': value['cancel_reason_id'], + 'created_at': value['created_at'], + 'in_process_at': value['in_process_at'], + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2FbsPostingProduct_1.V2FbsPostingProductToJSON)), + 'shipment_date': value['shipment_date'], + 'status': value['status'], + }; +} diff --git a/dist/models/V2FbsPostingProduct.d.ts b/dist/models/V2FbsPostingProduct.d.ts new file mode 100644 index 0000000..ef41b41 --- /dev/null +++ b/dist/models/V2FbsPostingProduct.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProduct + */ +export interface V2FbsPostingProduct { + /** + * Название товара. + * @type {string} + * @memberof V2FbsPostingProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2FbsPostingProduct + */ + offer_id?: string; + /** + * Цена товара. + * @type {string} + * @memberof V2FbsPostingProduct + */ + price?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof V2FbsPostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2FbsPostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V2FbsPostingProduct interface. + */ +export declare function instanceOfV2FbsPostingProduct(value: object): value is V2FbsPostingProduct; +export declare function V2FbsPostingProductFromJSON(json: any): V2FbsPostingProduct; +export declare function V2FbsPostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProduct; +export declare function V2FbsPostingProductToJSON(value?: V2FbsPostingProduct | null): any; diff --git a/dist/models/V2FbsPostingProduct.js b/dist/models/V2FbsPostingProduct.js new file mode 100644 index 0000000..f965aa1 --- /dev/null +++ b/dist/models/V2FbsPostingProduct.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FbsPostingProduct = instanceOfV2FbsPostingProduct; +exports.V2FbsPostingProductFromJSON = V2FbsPostingProductFromJSON; +exports.V2FbsPostingProductFromJSONTyped = V2FbsPostingProductFromJSONTyped; +exports.V2FbsPostingProductToJSON = V2FbsPostingProductToJSON; +/** + * Check if a given object implements the V2FbsPostingProduct interface. + */ +function instanceOfV2FbsPostingProduct(value) { + return true; +} +function V2FbsPostingProductFromJSON(json) { + return V2FbsPostingProductFromJSONTyped(json, false); +} +function V2FbsPostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V2FbsPostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V2FbsPostingProductCountryListRequest.d.ts b/dist/models/V2FbsPostingProductCountryListRequest.d.ts new file mode 100644 index 0000000..6c3c6b0 --- /dev/null +++ b/dist/models/V2FbsPostingProductCountryListRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProductCountryListRequest + */ +export interface V2FbsPostingProductCountryListRequest { + /** + * Фильтрация по строке. + * @type {string} + * @memberof V2FbsPostingProductCountryListRequest + */ + name_search?: string; +} +/** + * Check if a given object implements the V2FbsPostingProductCountryListRequest interface. + */ +export declare function instanceOfV2FbsPostingProductCountryListRequest(value: object): value is V2FbsPostingProductCountryListRequest; +export declare function V2FbsPostingProductCountryListRequestFromJSON(json: any): V2FbsPostingProductCountryListRequest; +export declare function V2FbsPostingProductCountryListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountryListRequest; +export declare function V2FbsPostingProductCountryListRequestToJSON(value?: V2FbsPostingProductCountryListRequest | null): any; diff --git a/dist/models/V2FbsPostingProductCountryListRequest.js b/dist/models/V2FbsPostingProductCountryListRequest.js new file mode 100644 index 0000000..3698343 --- /dev/null +++ b/dist/models/V2FbsPostingProductCountryListRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FbsPostingProductCountryListRequest = instanceOfV2FbsPostingProductCountryListRequest; +exports.V2FbsPostingProductCountryListRequestFromJSON = V2FbsPostingProductCountryListRequestFromJSON; +exports.V2FbsPostingProductCountryListRequestFromJSONTyped = V2FbsPostingProductCountryListRequestFromJSONTyped; +exports.V2FbsPostingProductCountryListRequestToJSON = V2FbsPostingProductCountryListRequestToJSON; +/** + * Check if a given object implements the V2FbsPostingProductCountryListRequest interface. + */ +function instanceOfV2FbsPostingProductCountryListRequest(value) { + return true; +} +function V2FbsPostingProductCountryListRequestFromJSON(json) { + return V2FbsPostingProductCountryListRequestFromJSONTyped(json, false); +} +function V2FbsPostingProductCountryListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name_search': json['name_search'] == null ? undefined : json['name_search'], + }; +} +function V2FbsPostingProductCountryListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'name_search': value['name_search'], + }; +} diff --git a/dist/models/V2FbsPostingProductCountryListResponse.d.ts b/dist/models/V2FbsPostingProductCountryListResponse.d.ts new file mode 100644 index 0000000..a30cdc0 --- /dev/null +++ b/dist/models/V2FbsPostingProductCountryListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FbsPostingProductCountryListResponseResult } from './V2FbsPostingProductCountryListResponseResult'; +/** + * + * @export + * @interface V2FbsPostingProductCountryListResponse + */ +export interface V2FbsPostingProductCountryListResponse { + /** + * Список стран-изготовителей и ISO коды. + * @type {Array} + * @memberof V2FbsPostingProductCountryListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2FbsPostingProductCountryListResponse interface. + */ +export declare function instanceOfV2FbsPostingProductCountryListResponse(value: object): value is V2FbsPostingProductCountryListResponse; +export declare function V2FbsPostingProductCountryListResponseFromJSON(json: any): V2FbsPostingProductCountryListResponse; +export declare function V2FbsPostingProductCountryListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountryListResponse; +export declare function V2FbsPostingProductCountryListResponseToJSON(value?: V2FbsPostingProductCountryListResponse | null): any; diff --git a/dist/models/V2FbsPostingProductCountryListResponse.js b/dist/models/V2FbsPostingProductCountryListResponse.js new file mode 100644 index 0000000..fa6297a --- /dev/null +++ b/dist/models/V2FbsPostingProductCountryListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FbsPostingProductCountryListResponse = instanceOfV2FbsPostingProductCountryListResponse; +exports.V2FbsPostingProductCountryListResponseFromJSON = V2FbsPostingProductCountryListResponseFromJSON; +exports.V2FbsPostingProductCountryListResponseFromJSONTyped = V2FbsPostingProductCountryListResponseFromJSONTyped; +exports.V2FbsPostingProductCountryListResponseToJSON = V2FbsPostingProductCountryListResponseToJSON; +const V2FbsPostingProductCountryListResponseResult_1 = require("./V2FbsPostingProductCountryListResponseResult"); +/** + * Check if a given object implements the V2FbsPostingProductCountryListResponse interface. + */ +function instanceOfV2FbsPostingProductCountryListResponse(value) { + return true; +} +function V2FbsPostingProductCountryListResponseFromJSON(json) { + return V2FbsPostingProductCountryListResponseFromJSONTyped(json, false); +} +function V2FbsPostingProductCountryListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2FbsPostingProductCountryListResponseResult_1.V2FbsPostingProductCountryListResponseResultFromJSON)), + }; +} +function V2FbsPostingProductCountryListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2FbsPostingProductCountryListResponseResult_1.V2FbsPostingProductCountryListResponseResultToJSON)), + }; +} diff --git a/dist/models/V2FbsPostingProductCountryListResponseResult.d.ts b/dist/models/V2FbsPostingProductCountryListResponseResult.d.ts new file mode 100644 index 0000000..8df202f --- /dev/null +++ b/dist/models/V2FbsPostingProductCountryListResponseResult.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProductCountryListResponseResult + */ +export interface V2FbsPostingProductCountryListResponseResult { + /** + * Название страны на русском языке. + * @type {string} + * @memberof V2FbsPostingProductCountryListResponseResult + */ + name?: string; + /** + * ISO код страны. + * @type {string} + * @memberof V2FbsPostingProductCountryListResponseResult + */ + country_iso_code?: string; +} +/** + * Check if a given object implements the V2FbsPostingProductCountryListResponseResult interface. + */ +export declare function instanceOfV2FbsPostingProductCountryListResponseResult(value: object): value is V2FbsPostingProductCountryListResponseResult; +export declare function V2FbsPostingProductCountryListResponseResultFromJSON(json: any): V2FbsPostingProductCountryListResponseResult; +export declare function V2FbsPostingProductCountryListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountryListResponseResult; +export declare function V2FbsPostingProductCountryListResponseResultToJSON(value?: V2FbsPostingProductCountryListResponseResult | null): any; diff --git a/dist/models/V2FbsPostingProductCountryListResponseResult.js b/dist/models/V2FbsPostingProductCountryListResponseResult.js new file mode 100644 index 0000000..8c0213c --- /dev/null +++ b/dist/models/V2FbsPostingProductCountryListResponseResult.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FbsPostingProductCountryListResponseResult = instanceOfV2FbsPostingProductCountryListResponseResult; +exports.V2FbsPostingProductCountryListResponseResultFromJSON = V2FbsPostingProductCountryListResponseResultFromJSON; +exports.V2FbsPostingProductCountryListResponseResultFromJSONTyped = V2FbsPostingProductCountryListResponseResultFromJSONTyped; +exports.V2FbsPostingProductCountryListResponseResultToJSON = V2FbsPostingProductCountryListResponseResultToJSON; +/** + * Check if a given object implements the V2FbsPostingProductCountryListResponseResult interface. + */ +function instanceOfV2FbsPostingProductCountryListResponseResult(value) { + return true; +} +function V2FbsPostingProductCountryListResponseResultFromJSON(json) { + return V2FbsPostingProductCountryListResponseResultFromJSONTyped(json, false); +} +function V2FbsPostingProductCountryListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'country_iso_code': json['country_iso_code'] == null ? undefined : json['country_iso_code'], + }; +} +function V2FbsPostingProductCountryListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'country_iso_code': value['country_iso_code'], + }; +} diff --git a/dist/models/V2FbsPostingProductCountrySetRequest.d.ts b/dist/models/V2FbsPostingProductCountrySetRequest.d.ts new file mode 100644 index 0000000..b0e9f17 --- /dev/null +++ b/dist/models/V2FbsPostingProductCountrySetRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProductCountrySetRequest + */ +export interface V2FbsPostingProductCountrySetRequest { + /** + * Номер отправления. + * @type {string} + * @memberof V2FbsPostingProductCountrySetRequest + */ + posting_number: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V2FbsPostingProductCountrySetRequest + */ + product_id: number; + /** + * Двухбуквенный код добавляемой страны по стандарту ISO_3166-1. + * + * Список доступных стран-изготовителей и их ISO коды можно получить с помощью метода [/v2/posting/fbs/product/country/list](#operation/PostingAPI_ListCountryProductFbsPostingV2). + * + * @type {string} + * @memberof V2FbsPostingProductCountrySetRequest + */ + country_iso_code: string; +} +/** + * Check if a given object implements the V2FbsPostingProductCountrySetRequest interface. + */ +export declare function instanceOfV2FbsPostingProductCountrySetRequest(value: object): value is V2FbsPostingProductCountrySetRequest; +export declare function V2FbsPostingProductCountrySetRequestFromJSON(json: any): V2FbsPostingProductCountrySetRequest; +export declare function V2FbsPostingProductCountrySetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountrySetRequest; +export declare function V2FbsPostingProductCountrySetRequestToJSON(value?: V2FbsPostingProductCountrySetRequest | null): any; diff --git a/dist/models/V2FbsPostingProductCountrySetRequest.js b/dist/models/V2FbsPostingProductCountrySetRequest.js new file mode 100644 index 0000000..0ce4040 --- /dev/null +++ b/dist/models/V2FbsPostingProductCountrySetRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FbsPostingProductCountrySetRequest = instanceOfV2FbsPostingProductCountrySetRequest; +exports.V2FbsPostingProductCountrySetRequestFromJSON = V2FbsPostingProductCountrySetRequestFromJSON; +exports.V2FbsPostingProductCountrySetRequestFromJSONTyped = V2FbsPostingProductCountrySetRequestFromJSONTyped; +exports.V2FbsPostingProductCountrySetRequestToJSON = V2FbsPostingProductCountrySetRequestToJSON; +/** + * Check if a given object implements the V2FbsPostingProductCountrySetRequest interface. + */ +function instanceOfV2FbsPostingProductCountrySetRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('country_iso_code' in value) || value['country_iso_code'] === undefined) + return false; + return true; +} +function V2FbsPostingProductCountrySetRequestFromJSON(json) { + return V2FbsPostingProductCountrySetRequestFromJSONTyped(json, false); +} +function V2FbsPostingProductCountrySetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'product_id': json['product_id'], + 'country_iso_code': json['country_iso_code'], + }; +} +function V2FbsPostingProductCountrySetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'product_id': value['product_id'], + 'country_iso_code': value['country_iso_code'], + }; +} diff --git a/dist/models/V2FbsPostingProductCountrySetResponse.d.ts b/dist/models/V2FbsPostingProductCountrySetResponse.d.ts new file mode 100644 index 0000000..c1a06b9 --- /dev/null +++ b/dist/models/V2FbsPostingProductCountrySetResponse.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2FbsPostingProductCountrySetResponse + */ +export interface V2FbsPostingProductCountrySetResponse { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V2FbsPostingProductCountrySetResponse + */ + product_id?: number; + /** + * Признак того, что необходимо передать номер грузовой таможенной декларации (ГТД) для продукта и отправления. + * @type {boolean} + * @memberof V2FbsPostingProductCountrySetResponse + */ + is_gtd_needed?: boolean; +} +/** + * Check if a given object implements the V2FbsPostingProductCountrySetResponse interface. + */ +export declare function instanceOfV2FbsPostingProductCountrySetResponse(value: object): value is V2FbsPostingProductCountrySetResponse; +export declare function V2FbsPostingProductCountrySetResponseFromJSON(json: any): V2FbsPostingProductCountrySetResponse; +export declare function V2FbsPostingProductCountrySetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingProductCountrySetResponse; +export declare function V2FbsPostingProductCountrySetResponseToJSON(value?: V2FbsPostingProductCountrySetResponse | null): any; diff --git a/dist/models/V2FbsPostingProductCountrySetResponse.js b/dist/models/V2FbsPostingProductCountrySetResponse.js new file mode 100644 index 0000000..d5fdee4 --- /dev/null +++ b/dist/models/V2FbsPostingProductCountrySetResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FbsPostingProductCountrySetResponse = instanceOfV2FbsPostingProductCountrySetResponse; +exports.V2FbsPostingProductCountrySetResponseFromJSON = V2FbsPostingProductCountrySetResponseFromJSON; +exports.V2FbsPostingProductCountrySetResponseFromJSONTyped = V2FbsPostingProductCountrySetResponseFromJSONTyped; +exports.V2FbsPostingProductCountrySetResponseToJSON = V2FbsPostingProductCountrySetResponseToJSON; +/** + * Check if a given object implements the V2FbsPostingProductCountrySetResponse interface. + */ +function instanceOfV2FbsPostingProductCountrySetResponse(value) { + return true; +} +function V2FbsPostingProductCountrySetResponseFromJSON(json) { + return V2FbsPostingProductCountrySetResponseFromJSONTyped(json, false); +} +function V2FbsPostingProductCountrySetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'is_gtd_needed': json['is_gtd_needed'] == null ? undefined : json['is_gtd_needed'], + }; +} +function V2FbsPostingProductCountrySetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'is_gtd_needed': value['is_gtd_needed'], + }; +} diff --git a/dist/models/V2FbsPostingResponse.d.ts b/dist/models/V2FbsPostingResponse.d.ts new file mode 100644 index 0000000..cb2d7b3 --- /dev/null +++ b/dist/models/V2FbsPostingResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2FbsPosting } from './V2FbsPosting'; +/** + * Информация об отправлении. + * @export + * @interface V2FbsPostingResponse + */ +export interface V2FbsPostingResponse { + /** + * + * @type {V2FbsPosting} + * @memberof V2FbsPostingResponse + */ + result?: V2FbsPosting; +} +/** + * Check if a given object implements the V2FbsPostingResponse interface. + */ +export declare function instanceOfV2FbsPostingResponse(value: object): value is V2FbsPostingResponse; +export declare function V2FbsPostingResponseFromJSON(json: any): V2FbsPostingResponse; +export declare function V2FbsPostingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2FbsPostingResponse; +export declare function V2FbsPostingResponseToJSON(value?: V2FbsPostingResponse | null): any; diff --git a/dist/models/V2FbsPostingResponse.js b/dist/models/V2FbsPostingResponse.js new file mode 100644 index 0000000..d8f02ca --- /dev/null +++ b/dist/models/V2FbsPostingResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2FbsPostingResponse = instanceOfV2FbsPostingResponse; +exports.V2FbsPostingResponseFromJSON = V2FbsPostingResponseFromJSON; +exports.V2FbsPostingResponseFromJSONTyped = V2FbsPostingResponseFromJSONTyped; +exports.V2FbsPostingResponseToJSON = V2FbsPostingResponseToJSON; +const V2FbsPosting_1 = require("./V2FbsPosting"); +/** + * Check if a given object implements the V2FbsPostingResponse interface. + */ +function instanceOfV2FbsPostingResponse(value) { + return true; +} +function V2FbsPostingResponseFromJSON(json) { + return V2FbsPostingResponseFromJSONTyped(json, false); +} +function V2FbsPostingResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V2FbsPosting_1.V2FbsPostingFromJSON)(json['result']), + }; +} +function V2FbsPostingResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V2FbsPosting_1.V2FbsPostingToJSON)(value['result']), + }; +} diff --git a/dist/models/V2GetConditionalCancellationListV2Request.d.ts b/dist/models/V2GetConditionalCancellationListV2Request.d.ts new file mode 100644 index 0000000..c4ced38 --- /dev/null +++ b/dist/models/V2GetConditionalCancellationListV2Request.d.ts @@ -0,0 +1,54 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetConditionalCancellationListV2RequestFilters } from './GetConditionalCancellationListV2RequestFilters'; +import type { GetConditionalCancellationListV2RequestWith } from './GetConditionalCancellationListV2RequestWith'; +/** + * + * @export + * @interface V2GetConditionalCancellationListV2Request + */ +export interface V2GetConditionalCancellationListV2Request { + /** + * + * @type {GetConditionalCancellationListV2RequestFilters} + * @memberof V2GetConditionalCancellationListV2Request + */ + filters?: GetConditionalCancellationListV2RequestFilters; + /** + * Идентификатор последнего значения на странице. Оставьте это поле пустым при выполнении первого запроса. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {number} + * @memberof V2GetConditionalCancellationListV2Request + */ + last_id?: number; + /** + * Количество заявок в ответе. + * @type {number} + * @memberof V2GetConditionalCancellationListV2Request + */ + limit: number; + /** + * + * @type {GetConditionalCancellationListV2RequestWith} + * @memberof V2GetConditionalCancellationListV2Request + */ + _with?: GetConditionalCancellationListV2RequestWith; +} +/** + * Check if a given object implements the V2GetConditionalCancellationListV2Request interface. + */ +export declare function instanceOfV2GetConditionalCancellationListV2Request(value: object): value is V2GetConditionalCancellationListV2Request; +export declare function V2GetConditionalCancellationListV2RequestFromJSON(json: any): V2GetConditionalCancellationListV2Request; +export declare function V2GetConditionalCancellationListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetConditionalCancellationListV2Request; +export declare function V2GetConditionalCancellationListV2RequestToJSON(value?: V2GetConditionalCancellationListV2Request | null): any; diff --git a/dist/models/V2GetConditionalCancellationListV2Request.js b/dist/models/V2GetConditionalCancellationListV2Request.js new file mode 100644 index 0000000..676d6bc --- /dev/null +++ b/dist/models/V2GetConditionalCancellationListV2Request.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2GetConditionalCancellationListV2Request = instanceOfV2GetConditionalCancellationListV2Request; +exports.V2GetConditionalCancellationListV2RequestFromJSON = V2GetConditionalCancellationListV2RequestFromJSON; +exports.V2GetConditionalCancellationListV2RequestFromJSONTyped = V2GetConditionalCancellationListV2RequestFromJSONTyped; +exports.V2GetConditionalCancellationListV2RequestToJSON = V2GetConditionalCancellationListV2RequestToJSON; +const GetConditionalCancellationListV2RequestFilters_1 = require("./GetConditionalCancellationListV2RequestFilters"); +const GetConditionalCancellationListV2RequestWith_1 = require("./GetConditionalCancellationListV2RequestWith"); +/** + * Check if a given object implements the V2GetConditionalCancellationListV2Request interface. + */ +function instanceOfV2GetConditionalCancellationListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V2GetConditionalCancellationListV2RequestFromJSON(json) { + return V2GetConditionalCancellationListV2RequestFromJSONTyped(json, false); +} +function V2GetConditionalCancellationListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filters': json['filters'] == null ? undefined : (0, GetConditionalCancellationListV2RequestFilters_1.GetConditionalCancellationListV2RequestFiltersFromJSON)(json['filters']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + '_with': json['with'] == null ? undefined : (0, GetConditionalCancellationListV2RequestWith_1.GetConditionalCancellationListV2RequestWithFromJSON)(json['with']), + }; +} +function V2GetConditionalCancellationListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filters': (0, GetConditionalCancellationListV2RequestFilters_1.GetConditionalCancellationListV2RequestFiltersToJSON)(value['filters']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'with': (0, GetConditionalCancellationListV2RequestWith_1.GetConditionalCancellationListV2RequestWithToJSON)(value['_with']), + }; +} diff --git a/dist/models/V2GetConditionalCancellationListV2Response.d.ts b/dist/models/V2GetConditionalCancellationListV2Response.d.ts new file mode 100644 index 0000000..b9269fe --- /dev/null +++ b/dist/models/V2GetConditionalCancellationListV2Response.d.ts @@ -0,0 +1,47 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetConditionalCancellationListV2ResponseResult } from './GetConditionalCancellationListV2ResponseResult'; +/** + * + * @export + * @interface V2GetConditionalCancellationListV2Response + */ +export interface V2GetConditionalCancellationListV2Response { + /** + * Cчётчик заявок в статусе `ON_APPROVAL`. + * @type {number} + * @memberof V2GetConditionalCancellationListV2Response + */ + counter?: number; + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, передайте полученное значение в следующем запросе в параметре `last_id`. + * + * @type {number} + * @memberof V2GetConditionalCancellationListV2Response + */ + last_id?: number; + /** + * Информация о заявках на отмену. + * @type {Array} + * @memberof V2GetConditionalCancellationListV2Response + */ + result?: Array; +} +/** + * Check if a given object implements the V2GetConditionalCancellationListV2Response interface. + */ +export declare function instanceOfV2GetConditionalCancellationListV2Response(value: object): value is V2GetConditionalCancellationListV2Response; +export declare function V2GetConditionalCancellationListV2ResponseFromJSON(json: any): V2GetConditionalCancellationListV2Response; +export declare function V2GetConditionalCancellationListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetConditionalCancellationListV2Response; +export declare function V2GetConditionalCancellationListV2ResponseToJSON(value?: V2GetConditionalCancellationListV2Response | null): any; diff --git a/dist/models/V2GetConditionalCancellationListV2Response.js b/dist/models/V2GetConditionalCancellationListV2Response.js new file mode 100644 index 0000000..7a387d8 --- /dev/null +++ b/dist/models/V2GetConditionalCancellationListV2Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2GetConditionalCancellationListV2Response = instanceOfV2GetConditionalCancellationListV2Response; +exports.V2GetConditionalCancellationListV2ResponseFromJSON = V2GetConditionalCancellationListV2ResponseFromJSON; +exports.V2GetConditionalCancellationListV2ResponseFromJSONTyped = V2GetConditionalCancellationListV2ResponseFromJSONTyped; +exports.V2GetConditionalCancellationListV2ResponseToJSON = V2GetConditionalCancellationListV2ResponseToJSON; +const GetConditionalCancellationListV2ResponseResult_1 = require("./GetConditionalCancellationListV2ResponseResult"); +/** + * Check if a given object implements the V2GetConditionalCancellationListV2Response interface. + */ +function instanceOfV2GetConditionalCancellationListV2Response(value) { + return true; +} +function V2GetConditionalCancellationListV2ResponseFromJSON(json) { + return V2GetConditionalCancellationListV2ResponseFromJSONTyped(json, false); +} +function V2GetConditionalCancellationListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'counter': json['counter'] == null ? undefined : json['counter'], + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'result': json['result'] == null ? undefined : (json['result'].map(GetConditionalCancellationListV2ResponseResult_1.GetConditionalCancellationListV2ResponseResultFromJSON)), + }; +} +function V2GetConditionalCancellationListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'counter': value['counter'], + 'last_id': value['last_id'], + 'result': value['result'] == null ? undefined : (value['result'].map(GetConditionalCancellationListV2ResponseResult_1.GetConditionalCancellationListV2ResponseResultToJSON)), + }; +} diff --git a/dist/models/V2GetDiscountTaskListV2Request.d.ts b/dist/models/V2GetDiscountTaskListV2Request.d.ts new file mode 100644 index 0000000..d77d338 --- /dev/null +++ b/dist/models/V2GetDiscountTaskListV2Request.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum } from './V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum'; +/** + * + * @export + * @interface V2GetDiscountTaskListV2Request + */ +export interface V2GetDiscountTaskListV2Request { + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * @type {number} + * @memberof V2GetDiscountTaskListV2Request + */ + last_id?: number; + /** + * Максимальное количество заявок на странице. + * @type {number} + * @memberof V2GetDiscountTaskListV2Request + */ + limit?: V2GetDiscountTaskListV2RequestLimitEnum; + /** + * + * @type {V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum} + * @memberof V2GetDiscountTaskListV2Request + */ + status?: V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum; +} +/** + * @export + */ +export declare const V2GetDiscountTaskListV2RequestLimitEnum: { + readonly NUMBER_5: 5; + readonly NUMBER_10: 10; + readonly NUMBER_15: 15; + readonly NUMBER_20: 20; + readonly NUMBER_30: 30; + readonly NUMBER_50: 50; +}; +export type V2GetDiscountTaskListV2RequestLimitEnum = typeof V2GetDiscountTaskListV2RequestLimitEnum[keyof typeof V2GetDiscountTaskListV2RequestLimitEnum]; +/** + * Check if a given object implements the V2GetDiscountTaskListV2Request interface. + */ +export declare function instanceOfV2GetDiscountTaskListV2Request(value: object): value is V2GetDiscountTaskListV2Request; +export declare function V2GetDiscountTaskListV2RequestFromJSON(json: any): V2GetDiscountTaskListV2Request; +export declare function V2GetDiscountTaskListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetDiscountTaskListV2Request; +export declare function V2GetDiscountTaskListV2RequestToJSON(value?: V2GetDiscountTaskListV2Request | null): any; diff --git a/dist/models/V2GetDiscountTaskListV2Request.js b/dist/models/V2GetDiscountTaskListV2Request.js new file mode 100644 index 0000000..ed57240 --- /dev/null +++ b/dist/models/V2GetDiscountTaskListV2Request.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2GetDiscountTaskListV2RequestLimitEnum = void 0; +exports.instanceOfV2GetDiscountTaskListV2Request = instanceOfV2GetDiscountTaskListV2Request; +exports.V2GetDiscountTaskListV2RequestFromJSON = V2GetDiscountTaskListV2RequestFromJSON; +exports.V2GetDiscountTaskListV2RequestFromJSONTyped = V2GetDiscountTaskListV2RequestFromJSONTyped; +exports.V2GetDiscountTaskListV2RequestToJSON = V2GetDiscountTaskListV2RequestToJSON; +const V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum_1 = require("./V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum"); +/** + * @export + */ +exports.V2GetDiscountTaskListV2RequestLimitEnum = { + NUMBER_5: 5, + NUMBER_10: 10, + NUMBER_15: 15, + NUMBER_20: 20, + NUMBER_30: 30, + NUMBER_50: 50 +}; +/** + * Check if a given object implements the V2GetDiscountTaskListV2Request interface. + */ +function instanceOfV2GetDiscountTaskListV2Request(value) { + return true; +} +function V2GetDiscountTaskListV2RequestFromJSON(json) { + return V2GetDiscountTaskListV2RequestFromJSONTyped(json, false); +} +function V2GetDiscountTaskListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'status': json['status'] == null ? undefined : (0, V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum_1.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON)(json['status']), + }; +} +function V2GetDiscountTaskListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'limit': value['limit'], + 'status': (0, V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum_1.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON)(value['status']), + }; +} diff --git a/dist/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.d.ts b/dist/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.d.ts new file mode 100644 index 0000000..6d462e8 --- /dev/null +++ b/dist/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус заявки на скидку: + * - `ALL` — все статусы, + * - `NEW` — новая, + * - `APPROVED` — одобренная, + * - `DECLINED` — отклонённая. + * + * @export + */ +export declare const V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum: { + readonly ALL: "ALL"; + readonly NEW: "NEW"; + readonly APPROVED: "APPROVED"; + readonly DECLINED: "DECLINED"; +}; +export type V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum = typeof V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum[keyof typeof V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum]; +export declare function instanceOfV2GetDiscountTaskListV2RequestDiscountTaskStatusEnum(value: any): boolean; +export declare function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON(json: any): V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum; +export declare function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum; +export declare function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON(value?: V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum | null): any; diff --git a/dist/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.js b/dist/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.js new file mode 100644 index 0000000..b78dfb6 --- /dev/null +++ b/dist/models/V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum = void 0; +exports.instanceOfV2GetDiscountTaskListV2RequestDiscountTaskStatusEnum = instanceOfV2GetDiscountTaskListV2RequestDiscountTaskStatusEnum; +exports.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON = V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON; +exports.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSONTyped = V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSONTyped; +exports.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON = V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON; +/** + * Статус заявки на скидку: + * - `ALL` — все статусы, + * - `NEW` — новая, + * - `APPROVED` — одобренная, + * - `DECLINED` — отклонённая. + * + * @export + */ +exports.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum = { + ALL: 'ALL', + NEW: 'NEW', + APPROVED: 'APPROVED', + DECLINED: 'DECLINED' +}; +function instanceOfV2GetDiscountTaskListV2RequestDiscountTaskStatusEnum(value) { + for (const key in exports.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum) { + if (Object.prototype.hasOwnProperty.call(exports.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum, key)) { + if (exports.V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum[key] === value) { + return true; + } + } + } + return false; +} +function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSON(json) { + return V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSONTyped(json, false); +} +function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V2GetDiscountTaskListV2RequestDiscountTaskStatusEnumToJSON(value) { + return value; +} diff --git a/dist/models/V2GetDiscountTaskListV2Response.d.ts b/dist/models/V2GetDiscountTaskListV2Response.d.ts new file mode 100644 index 0000000..51e8e48 --- /dev/null +++ b/dist/models/V2GetDiscountTaskListV2Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetDiscountTaskListV2ResponseTask } from './GetDiscountTaskListV2ResponseTask'; +/** + * + * @export + * @interface V2GetDiscountTaskListV2Response + */ +export interface V2GetDiscountTaskListV2Response { + /** + * Список заявок. + * @type {Array} + * @memberof V2GetDiscountTaskListV2Response + */ + tasks?: Array; +} +/** + * Check if a given object implements the V2GetDiscountTaskListV2Response interface. + */ +export declare function instanceOfV2GetDiscountTaskListV2Response(value: object): value is V2GetDiscountTaskListV2Response; +export declare function V2GetDiscountTaskListV2ResponseFromJSON(json: any): V2GetDiscountTaskListV2Response; +export declare function V2GetDiscountTaskListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetDiscountTaskListV2Response; +export declare function V2GetDiscountTaskListV2ResponseToJSON(value?: V2GetDiscountTaskListV2Response | null): any; diff --git a/dist/models/V2GetDiscountTaskListV2Response.js b/dist/models/V2GetDiscountTaskListV2Response.js new file mode 100644 index 0000000..6ed9bf7 --- /dev/null +++ b/dist/models/V2GetDiscountTaskListV2Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2GetDiscountTaskListV2Response = instanceOfV2GetDiscountTaskListV2Response; +exports.V2GetDiscountTaskListV2ResponseFromJSON = V2GetDiscountTaskListV2ResponseFromJSON; +exports.V2GetDiscountTaskListV2ResponseFromJSONTyped = V2GetDiscountTaskListV2ResponseFromJSONTyped; +exports.V2GetDiscountTaskListV2ResponseToJSON = V2GetDiscountTaskListV2ResponseToJSON; +const GetDiscountTaskListV2ResponseTask_1 = require("./GetDiscountTaskListV2ResponseTask"); +/** + * Check if a given object implements the V2GetDiscountTaskListV2Response interface. + */ +function instanceOfV2GetDiscountTaskListV2Response(value) { + return true; +} +function V2GetDiscountTaskListV2ResponseFromJSON(json) { + return V2GetDiscountTaskListV2ResponseFromJSONTyped(json, false); +} +function V2GetDiscountTaskListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'tasks': json['tasks'] == null ? undefined : (json['tasks'].map(GetDiscountTaskListV2ResponseTask_1.GetDiscountTaskListV2ResponseTaskFromJSON)), + }; +} +function V2GetDiscountTaskListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'tasks': value['tasks'] == null ? undefined : (value['tasks'].map(GetDiscountTaskListV2ResponseTask_1.GetDiscountTaskListV2ResponseTaskToJSON)), + }; +} diff --git a/dist/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.d.ts b/dist/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.d.ts new file mode 100644 index 0000000..5b0f37e --- /dev/null +++ b/dist/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ +export interface V2GetProductInfoStocksByWarehouseFbsRequestV2 { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ + cursor?: string; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ + limit: number; + /** + * Идентификаторы товаров в системе продавца — артикул. + * @type {Array} + * @memberof V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ + offer_id?: Array; + /** + * Идентификаторы товаров в системе Ozon — SKU. + * @type {Array} + * @memberof V2GetProductInfoStocksByWarehouseFbsRequestV2 + */ + sku?: Array; +} +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsRequestV2 interface. + */ +export declare function instanceOfV2GetProductInfoStocksByWarehouseFbsRequestV2(value: object): value is V2GetProductInfoStocksByWarehouseFbsRequestV2; +export declare function V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSON(json: any): V2GetProductInfoStocksByWarehouseFbsRequestV2; +export declare function V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetProductInfoStocksByWarehouseFbsRequestV2; +export declare function V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON(value?: V2GetProductInfoStocksByWarehouseFbsRequestV2 | null): any; diff --git a/dist/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.js b/dist/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.js new file mode 100644 index 0000000..57d07a8 --- /dev/null +++ b/dist/models/V2GetProductInfoStocksByWarehouseFbsRequestV2.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2GetProductInfoStocksByWarehouseFbsRequestV2 = instanceOfV2GetProductInfoStocksByWarehouseFbsRequestV2; +exports.V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSON = V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSON; +exports.V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSONTyped = V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSONTyped; +exports.V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON = V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON; +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsRequestV2 interface. + */ +function instanceOfV2GetProductInfoStocksByWarehouseFbsRequestV2(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSON(json) { + return V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSONTyped(json, false); +} +function V2GetProductInfoStocksByWarehouseFbsRequestV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'limit': json['limit'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V2GetProductInfoStocksByWarehouseFbsRequestV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'limit': value['limit'], + 'offer_id': value['offer_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.d.ts b/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.d.ts new file mode 100644 index 0000000..5115e56 --- /dev/null +++ b/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2GetProductInfoStocksByWarehouseFbsResponseV2Product } from './V2GetProductInfoStocksByWarehouseFbsResponseV2Product'; +/** + * + * @export + * @interface V2GetProductInfoStocksByWarehouseFbsResponseV2 + */ +export interface V2GetProductInfoStocksByWarehouseFbsResponseV2 { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2 + */ + cursor?: string; + /** + * `true`, если в ответе вернули не все товары. + * + * @type {boolean} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2 + */ + has_next?: boolean; + /** + * Остатки товаров. + * @type {Array} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2 + */ + products?: Array; +} +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsResponseV2 interface. + */ +export declare function instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2(value: object): value is V2GetProductInfoStocksByWarehouseFbsResponseV2; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON(json: any): V2GetProductInfoStocksByWarehouseFbsResponseV2; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetProductInfoStocksByWarehouseFbsResponseV2; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2ToJSON(value?: V2GetProductInfoStocksByWarehouseFbsResponseV2 | null): any; diff --git a/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.js b/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.js new file mode 100644 index 0000000..481a499 --- /dev/null +++ b/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2 = instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2; +exports.V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON = V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON; +exports.V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSONTyped = V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSONTyped; +exports.V2GetProductInfoStocksByWarehouseFbsResponseV2ToJSON = V2GetProductInfoStocksByWarehouseFbsResponseV2ToJSON; +const V2GetProductInfoStocksByWarehouseFbsResponseV2Product_1 = require("./V2GetProductInfoStocksByWarehouseFbsResponseV2Product"); +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsResponseV2 interface. + */ +function instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2(value) { + return true; +} +function V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSON(json) { + return V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSONTyped(json, false); +} +function V2GetProductInfoStocksByWarehouseFbsResponseV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2GetProductInfoStocksByWarehouseFbsResponseV2Product_1.V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON)), + }; +} +function V2GetProductInfoStocksByWarehouseFbsResponseV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'has_next': value['has_next'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2GetProductInfoStocksByWarehouseFbsResponseV2Product_1.V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON)), + }; +} diff --git a/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.d.ts b/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.d.ts new file mode 100644 index 0000000..dcef983 --- /dev/null +++ b/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ +export interface V2GetProductInfoStocksByWarehouseFbsResponseV2Product { + /** + * Количество доступных для продажи товаров. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + free_stock?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + offer_id?: string; + /** + * Общее количество товара на складе. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + present?: number; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + product_id?: number; + /** + * Количество зарезервированных товаров на складе. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + reserved?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + sku?: number; + /** + * Идентификатор склада. + * @type {number} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V2GetProductInfoStocksByWarehouseFbsResponseV2Product + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsResponseV2Product interface. + */ +export declare function instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2Product(value: object): value is V2GetProductInfoStocksByWarehouseFbsResponseV2Product; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON(json: any): V2GetProductInfoStocksByWarehouseFbsResponseV2Product; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetProductInfoStocksByWarehouseFbsResponseV2Product; +export declare function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON(value?: V2GetProductInfoStocksByWarehouseFbsResponseV2Product | null): any; diff --git a/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.js b/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.js new file mode 100644 index 0000000..afd5a38 --- /dev/null +++ b/dist/models/V2GetProductInfoStocksByWarehouseFbsResponseV2Product.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2Product = instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2Product; +exports.V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON = V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON; +exports.V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSONTyped = V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSONTyped; +exports.V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON = V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON; +/** + * Check if a given object implements the V2GetProductInfoStocksByWarehouseFbsResponseV2Product interface. + */ +function instanceOfV2GetProductInfoStocksByWarehouseFbsResponseV2Product(value) { + return true; +} +function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSON(json) { + return V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSONTyped(json, false); +} +function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'free_stock': json['free_stock'] == null ? undefined : json['free_stock'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'present': json['present'] == null ? undefined : json['present'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function V2GetProductInfoStocksByWarehouseFbsResponseV2ProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'free_stock': value['free_stock'], + 'offer_id': value['offer_id'], + 'present': value['present'], + 'product_id': value['product_id'], + 'reserved': value['reserved'], + 'sku': value['sku'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/V2GetRealizationReportRequestV2.d.ts b/dist/models/V2GetRealizationReportRequestV2.d.ts new file mode 100644 index 0000000..ffec06d --- /dev/null +++ b/dist/models/V2GetRealizationReportRequestV2.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2GetRealizationReportRequestV2 + */ +export interface V2GetRealizationReportRequestV2 { + /** + * Месяц. + * @type {number} + * @memberof V2GetRealizationReportRequestV2 + */ + month: number; + /** + * Год. + * @type {number} + * @memberof V2GetRealizationReportRequestV2 + */ + year: number; +} +/** + * Check if a given object implements the V2GetRealizationReportRequestV2 interface. + */ +export declare function instanceOfV2GetRealizationReportRequestV2(value: object): value is V2GetRealizationReportRequestV2; +export declare function V2GetRealizationReportRequestV2FromJSON(json: any): V2GetRealizationReportRequestV2; +export declare function V2GetRealizationReportRequestV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetRealizationReportRequestV2; +export declare function V2GetRealizationReportRequestV2ToJSON(value?: V2GetRealizationReportRequestV2 | null): any; diff --git a/dist/models/V2GetRealizationReportRequestV2.js b/dist/models/V2GetRealizationReportRequestV2.js new file mode 100644 index 0000000..b23a841 --- /dev/null +++ b/dist/models/V2GetRealizationReportRequestV2.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2GetRealizationReportRequestV2 = instanceOfV2GetRealizationReportRequestV2; +exports.V2GetRealizationReportRequestV2FromJSON = V2GetRealizationReportRequestV2FromJSON; +exports.V2GetRealizationReportRequestV2FromJSONTyped = V2GetRealizationReportRequestV2FromJSONTyped; +exports.V2GetRealizationReportRequestV2ToJSON = V2GetRealizationReportRequestV2ToJSON; +/** + * Check if a given object implements the V2GetRealizationReportRequestV2 interface. + */ +function instanceOfV2GetRealizationReportRequestV2(value) { + if (!('month' in value) || value['month'] === undefined) + return false; + if (!('year' in value) || value['year'] === undefined) + return false; + return true; +} +function V2GetRealizationReportRequestV2FromJSON(json) { + return V2GetRealizationReportRequestV2FromJSONTyped(json, false); +} +function V2GetRealizationReportRequestV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'month': json['month'], + 'year': json['year'], + }; +} +function V2GetRealizationReportRequestV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'month': value['month'], + 'year': value['year'], + }; +} diff --git a/dist/models/V2GetRealizationReportResponseV2.d.ts b/dist/models/V2GetRealizationReportResponseV2.d.ts new file mode 100644 index 0000000..f2d3c52 --- /dev/null +++ b/dist/models/V2GetRealizationReportResponseV2.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetRealizationReportResponseV2Result } from './GetRealizationReportResponseV2Result'; +/** + * + * @export + * @interface V2GetRealizationReportResponseV2 + */ +export interface V2GetRealizationReportResponseV2 { + /** + * + * @type {GetRealizationReportResponseV2Result} + * @memberof V2GetRealizationReportResponseV2 + */ + result?: GetRealizationReportResponseV2Result; +} +/** + * Check if a given object implements the V2GetRealizationReportResponseV2 interface. + */ +export declare function instanceOfV2GetRealizationReportResponseV2(value: object): value is V2GetRealizationReportResponseV2; +export declare function V2GetRealizationReportResponseV2FromJSON(json: any): V2GetRealizationReportResponseV2; +export declare function V2GetRealizationReportResponseV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2GetRealizationReportResponseV2; +export declare function V2GetRealizationReportResponseV2ToJSON(value?: V2GetRealizationReportResponseV2 | null): any; diff --git a/dist/models/V2GetRealizationReportResponseV2.js b/dist/models/V2GetRealizationReportResponseV2.js new file mode 100644 index 0000000..b612a8a --- /dev/null +++ b/dist/models/V2GetRealizationReportResponseV2.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2GetRealizationReportResponseV2 = instanceOfV2GetRealizationReportResponseV2; +exports.V2GetRealizationReportResponseV2FromJSON = V2GetRealizationReportResponseV2FromJSON; +exports.V2GetRealizationReportResponseV2FromJSONTyped = V2GetRealizationReportResponseV2FromJSONTyped; +exports.V2GetRealizationReportResponseV2ToJSON = V2GetRealizationReportResponseV2ToJSON; +const GetRealizationReportResponseV2Result_1 = require("./GetRealizationReportResponseV2Result"); +/** + * Check if a given object implements the V2GetRealizationReportResponseV2 interface. + */ +function instanceOfV2GetRealizationReportResponseV2(value) { + return true; +} +function V2GetRealizationReportResponseV2FromJSON(json) { + return V2GetRealizationReportResponseV2FromJSONTyped(json, false); +} +function V2GetRealizationReportResponseV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, GetRealizationReportResponseV2Result_1.GetRealizationReportResponseV2ResultFromJSON)(json['result']), + }; +} +function V2GetRealizationReportResponseV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, GetRealizationReportResponseV2Result_1.GetRealizationReportResponseV2ResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V2HsCode.d.ts b/dist/models/V2HsCode.d.ts new file mode 100644 index 0000000..6d13e7f --- /dev/null +++ b/dist/models/V2HsCode.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2HsCode + */ +export interface V2HsCode { + /** + * HS-код товара. + * @type {string} + * @memberof V2HsCode + */ + code?: string; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {string} + * @memberof V2HsCode + */ + sku?: string; +} +/** + * Check if a given object implements the V2HsCode interface. + */ +export declare function instanceOfV2HsCode(value: object): value is V2HsCode; +export declare function V2HsCodeFromJSON(json: any): V2HsCode; +export declare function V2HsCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2HsCode; +export declare function V2HsCodeToJSON(value?: V2HsCode | null): any; diff --git a/dist/models/V2HsCode.js b/dist/models/V2HsCode.js new file mode 100644 index 0000000..19a4628 --- /dev/null +++ b/dist/models/V2HsCode.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2HsCode = instanceOfV2HsCode; +exports.V2HsCodeFromJSON = V2HsCodeFromJSON; +exports.V2HsCodeFromJSONTyped = V2HsCodeFromJSONTyped; +exports.V2HsCodeToJSON = V2HsCodeToJSON; +/** + * Check if a given object implements the V2HsCode interface. + */ +function instanceOfV2HsCode(value) { + return true; +} +function V2HsCodeFromJSON(json) { + return V2HsCodeFromJSONTyped(json, false); +} +function V2HsCodeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V2HsCodeToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V2InvoiceCreateOrUpdateV2Request.d.ts b/dist/models/V2InvoiceCreateOrUpdateV2Request.d.ts new file mode 100644 index 0000000..5e11eb3 --- /dev/null +++ b/dist/models/V2InvoiceCreateOrUpdateV2Request.d.ts @@ -0,0 +1,77 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2HsCode } from './V2HsCode'; +/** + * + * @export + * @interface V2InvoiceCreateOrUpdateV2Request + */ +export interface V2InvoiceCreateOrUpdateV2Request { + /** + * Дата счёта-фактуры. + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + date: string; + /** + * HS-коды товаров. + * @type {Array} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + hs_codes?: Array; + /** + * Номер счёта-фактуры. Номер может содержать буквы и цифры, максимальная длина — 50 символов. + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + number?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + posting_number: string; + /** + * Стоимость, указанная в счёте-фактуре. Разделитель дробной части — точка, до двух знаков после точки. + * @type {number} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + price?: number; + /** + * Валюта счёта-фактуры: + * - `USD` — доллар, + * - `EUR` — евро, + * - `TRY` — турецкая лира, + * - `CNY` — юань, + * - `RUB` — рубль, + * - `GBP` — фунт стерлингов. + * + * Значение по умолчанию — `USD`. + * + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + price_currency?: string; + /** + * Ссылка на счёт-фактуру. Чтобы создать ссылку, используйте метод [v1/invoice/file/upload](#operation/invoice_upload). + * @type {string} + * @memberof V2InvoiceCreateOrUpdateV2Request + */ + url: string; +} +/** + * Check if a given object implements the V2InvoiceCreateOrUpdateV2Request interface. + */ +export declare function instanceOfV2InvoiceCreateOrUpdateV2Request(value: object): value is V2InvoiceCreateOrUpdateV2Request; +export declare function V2InvoiceCreateOrUpdateV2RequestFromJSON(json: any): V2InvoiceCreateOrUpdateV2Request; +export declare function V2InvoiceCreateOrUpdateV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2InvoiceCreateOrUpdateV2Request; +export declare function V2InvoiceCreateOrUpdateV2RequestToJSON(value?: V2InvoiceCreateOrUpdateV2Request | null): any; diff --git a/dist/models/V2InvoiceCreateOrUpdateV2Request.js b/dist/models/V2InvoiceCreateOrUpdateV2Request.js new file mode 100644 index 0000000..636f7a6 --- /dev/null +++ b/dist/models/V2InvoiceCreateOrUpdateV2Request.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2InvoiceCreateOrUpdateV2Request = instanceOfV2InvoiceCreateOrUpdateV2Request; +exports.V2InvoiceCreateOrUpdateV2RequestFromJSON = V2InvoiceCreateOrUpdateV2RequestFromJSON; +exports.V2InvoiceCreateOrUpdateV2RequestFromJSONTyped = V2InvoiceCreateOrUpdateV2RequestFromJSONTyped; +exports.V2InvoiceCreateOrUpdateV2RequestToJSON = V2InvoiceCreateOrUpdateV2RequestToJSON; +const V2HsCode_1 = require("./V2HsCode"); +/** + * Check if a given object implements the V2InvoiceCreateOrUpdateV2Request interface. + */ +function instanceOfV2InvoiceCreateOrUpdateV2Request(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + return true; +} +function V2InvoiceCreateOrUpdateV2RequestFromJSON(json) { + return V2InvoiceCreateOrUpdateV2RequestFromJSONTyped(json, false); +} +function V2InvoiceCreateOrUpdateV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': json['date'], + 'hs_codes': json['hs_codes'] == null ? undefined : (json['hs_codes'].map(V2HsCode_1.V2HsCodeFromJSON)), + 'number': json['number'] == null ? undefined : json['number'], + 'posting_number': json['posting_number'], + 'price': json['price'] == null ? undefined : json['price'], + 'price_currency': json['price_currency'] == null ? undefined : json['price_currency'], + 'url': json['url'], + }; +} +function V2InvoiceCreateOrUpdateV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': value['date'], + 'hs_codes': value['hs_codes'] == null ? undefined : (value['hs_codes'].map(V2HsCode_1.V2HsCodeToJSON)), + 'number': value['number'], + 'posting_number': value['posting_number'], + 'price': value['price'], + 'price_currency': value['price_currency'], + 'url': value['url'], + }; +} diff --git a/dist/models/V2InvoiceCreateOrUpdateV2Response.d.ts b/dist/models/V2InvoiceCreateOrUpdateV2Response.d.ts new file mode 100644 index 0000000..b06297e --- /dev/null +++ b/dist/models/V2InvoiceCreateOrUpdateV2Response.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2InvoiceCreateOrUpdateV2Response + */ +export interface V2InvoiceCreateOrUpdateV2Response { + /** + * Результат работы метода. + * @type {boolean} + * @memberof V2InvoiceCreateOrUpdateV2Response + */ + result?: boolean; +} +/** + * Check if a given object implements the V2InvoiceCreateOrUpdateV2Response interface. + */ +export declare function instanceOfV2InvoiceCreateOrUpdateV2Response(value: object): value is V2InvoiceCreateOrUpdateV2Response; +export declare function V2InvoiceCreateOrUpdateV2ResponseFromJSON(json: any): V2InvoiceCreateOrUpdateV2Response; +export declare function V2InvoiceCreateOrUpdateV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2InvoiceCreateOrUpdateV2Response; +export declare function V2InvoiceCreateOrUpdateV2ResponseToJSON(value?: V2InvoiceCreateOrUpdateV2Response | null): any; diff --git a/dist/models/V2InvoiceCreateOrUpdateV2Response.js b/dist/models/V2InvoiceCreateOrUpdateV2Response.js new file mode 100644 index 0000000..c9228f4 --- /dev/null +++ b/dist/models/V2InvoiceCreateOrUpdateV2Response.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2InvoiceCreateOrUpdateV2Response = instanceOfV2InvoiceCreateOrUpdateV2Response; +exports.V2InvoiceCreateOrUpdateV2ResponseFromJSON = V2InvoiceCreateOrUpdateV2ResponseFromJSON; +exports.V2InvoiceCreateOrUpdateV2ResponseFromJSONTyped = V2InvoiceCreateOrUpdateV2ResponseFromJSONTyped; +exports.V2InvoiceCreateOrUpdateV2ResponseToJSON = V2InvoiceCreateOrUpdateV2ResponseToJSON; +/** + * Check if a given object implements the V2InvoiceCreateOrUpdateV2Response interface. + */ +function instanceOfV2InvoiceCreateOrUpdateV2Response(value) { + return true; +} +function V2InvoiceCreateOrUpdateV2ResponseFromJSON(json) { + return V2InvoiceCreateOrUpdateV2ResponseFromJSONTyped(json, false); +} +function V2InvoiceCreateOrUpdateV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function V2InvoiceCreateOrUpdateV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/V2InvoiceGetV2Response.d.ts b/dist/models/V2InvoiceGetV2Response.d.ts new file mode 100644 index 0000000..6a2cd1e --- /dev/null +++ b/dist/models/V2InvoiceGetV2Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { InvoiceGetV2ResponseResult } from './InvoiceGetV2ResponseResult'; +/** + * + * @export + * @interface V2InvoiceGetV2Response + */ +export interface V2InvoiceGetV2Response { + /** + * + * @type {InvoiceGetV2ResponseResult} + * @memberof V2InvoiceGetV2Response + */ + result?: InvoiceGetV2ResponseResult; +} +/** + * Check if a given object implements the V2InvoiceGetV2Response interface. + */ +export declare function instanceOfV2InvoiceGetV2Response(value: object): value is V2InvoiceGetV2Response; +export declare function V2InvoiceGetV2ResponseFromJSON(json: any): V2InvoiceGetV2Response; +export declare function V2InvoiceGetV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2InvoiceGetV2Response; +export declare function V2InvoiceGetV2ResponseToJSON(value?: V2InvoiceGetV2Response | null): any; diff --git a/dist/models/V2InvoiceGetV2Response.js b/dist/models/V2InvoiceGetV2Response.js new file mode 100644 index 0000000..d4ae8f3 --- /dev/null +++ b/dist/models/V2InvoiceGetV2Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2InvoiceGetV2Response = instanceOfV2InvoiceGetV2Response; +exports.V2InvoiceGetV2ResponseFromJSON = V2InvoiceGetV2ResponseFromJSON; +exports.V2InvoiceGetV2ResponseFromJSONTyped = V2InvoiceGetV2ResponseFromJSONTyped; +exports.V2InvoiceGetV2ResponseToJSON = V2InvoiceGetV2ResponseToJSON; +const InvoiceGetV2ResponseResult_1 = require("./InvoiceGetV2ResponseResult"); +/** + * Check if a given object implements the V2InvoiceGetV2Response interface. + */ +function instanceOfV2InvoiceGetV2Response(value) { + return true; +} +function V2InvoiceGetV2ResponseFromJSON(json) { + return V2InvoiceGetV2ResponseFromJSONTyped(json, false); +} +function V2InvoiceGetV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, InvoiceGetV2ResponseResult_1.InvoiceGetV2ResponseResultFromJSON)(json['result']), + }; +} +function V2InvoiceGetV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, InvoiceGetV2ResponseResult_1.InvoiceGetV2ResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V2MovePostingToAwaitingDeliveryRequest.d.ts b/dist/models/V2MovePostingToAwaitingDeliveryRequest.d.ts new file mode 100644 index 0000000..92a8d83 --- /dev/null +++ b/dist/models/V2MovePostingToAwaitingDeliveryRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2MovePostingToAwaitingDeliveryRequest + */ +export interface V2MovePostingToAwaitingDeliveryRequest { + /** + * Идентификатор отправления. Максимальное количество в одном запросе — 100. + * @type {Array} + * @memberof V2MovePostingToAwaitingDeliveryRequest + */ + posting_number: Array; +} +/** + * Check if a given object implements the V2MovePostingToAwaitingDeliveryRequest interface. + */ +export declare function instanceOfV2MovePostingToAwaitingDeliveryRequest(value: object): value is V2MovePostingToAwaitingDeliveryRequest; +export declare function V2MovePostingToAwaitingDeliveryRequestFromJSON(json: any): V2MovePostingToAwaitingDeliveryRequest; +export declare function V2MovePostingToAwaitingDeliveryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2MovePostingToAwaitingDeliveryRequest; +export declare function V2MovePostingToAwaitingDeliveryRequestToJSON(value?: V2MovePostingToAwaitingDeliveryRequest | null): any; diff --git a/dist/models/V2MovePostingToAwaitingDeliveryRequest.js b/dist/models/V2MovePostingToAwaitingDeliveryRequest.js new file mode 100644 index 0000000..f8df580 --- /dev/null +++ b/dist/models/V2MovePostingToAwaitingDeliveryRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2MovePostingToAwaitingDeliveryRequest = instanceOfV2MovePostingToAwaitingDeliveryRequest; +exports.V2MovePostingToAwaitingDeliveryRequestFromJSON = V2MovePostingToAwaitingDeliveryRequestFromJSON; +exports.V2MovePostingToAwaitingDeliveryRequestFromJSONTyped = V2MovePostingToAwaitingDeliveryRequestFromJSONTyped; +exports.V2MovePostingToAwaitingDeliveryRequestToJSON = V2MovePostingToAwaitingDeliveryRequestToJSON; +/** + * Check if a given object implements the V2MovePostingToAwaitingDeliveryRequest interface. + */ +function instanceOfV2MovePostingToAwaitingDeliveryRequest(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V2MovePostingToAwaitingDeliveryRequestFromJSON(json) { + return V2MovePostingToAwaitingDeliveryRequestFromJSONTyped(json, false); +} +function V2MovePostingToAwaitingDeliveryRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V2MovePostingToAwaitingDeliveryRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V2PolygonBindRequest.d.ts b/dist/models/V2PolygonBindRequest.d.ts new file mode 100644 index 0000000..5244926 --- /dev/null +++ b/dist/models/V2PolygonBindRequest.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PolygonBindRequest + */ +export interface V2PolygonBindRequest { + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V2PolygonBindRequest + */ + delivery_method_id: number; + /** + * Идентификатор полигона. + * @type {number} + * @memberof V2PolygonBindRequest + */ + polygon_id: number; + /** + * Время доставки в минутах. + * @type {number} + * @memberof V2PolygonBindRequest + */ + time: V2PolygonBindRequestTimeEnum; + /** + * Идентификатор склада. + * @type {number} + * @memberof V2PolygonBindRequest + */ + warehouse_id: number; +} +/** + * @export + */ +export declare const V2PolygonBindRequestTimeEnum: { + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_45: 45; + readonly NUMBER_60: 60; + readonly NUMBER_90: 90; + readonly NUMBER_120: 120; + readonly NUMBER_150: 150; +}; +export type V2PolygonBindRequestTimeEnum = typeof V2PolygonBindRequestTimeEnum[keyof typeof V2PolygonBindRequestTimeEnum]; +/** + * Check if a given object implements the V2PolygonBindRequest interface. + */ +export declare function instanceOfV2PolygonBindRequest(value: object): value is V2PolygonBindRequest; +export declare function V2PolygonBindRequestFromJSON(json: any): V2PolygonBindRequest; +export declare function V2PolygonBindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PolygonBindRequest; +export declare function V2PolygonBindRequestToJSON(value?: V2PolygonBindRequest | null): any; diff --git a/dist/models/V2PolygonBindRequest.js b/dist/models/V2PolygonBindRequest.js new file mode 100644 index 0000000..4ebd48b --- /dev/null +++ b/dist/models/V2PolygonBindRequest.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2PolygonBindRequestTimeEnum = void 0; +exports.instanceOfV2PolygonBindRequest = instanceOfV2PolygonBindRequest; +exports.V2PolygonBindRequestFromJSON = V2PolygonBindRequestFromJSON; +exports.V2PolygonBindRequestFromJSONTyped = V2PolygonBindRequestFromJSONTyped; +exports.V2PolygonBindRequestToJSON = V2PolygonBindRequestToJSON; +/** + * @export + */ +exports.V2PolygonBindRequestTimeEnum = { + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_45: 45, + NUMBER_60: 60, + NUMBER_90: 90, + NUMBER_120: 120, + NUMBER_150: 150 +}; +/** + * Check if a given object implements the V2PolygonBindRequest interface. + */ +function instanceOfV2PolygonBindRequest(value) { + if (!('delivery_method_id' in value) || value['delivery_method_id'] === undefined) + return false; + if (!('polygon_id' in value) || value['polygon_id'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + if (!('warehouse_id' in value) || value['warehouse_id'] === undefined) + return false; + return true; +} +function V2PolygonBindRequestFromJSON(json) { + return V2PolygonBindRequestFromJSONTyped(json, false); +} +function V2PolygonBindRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_method_id': json['delivery_method_id'], + 'polygon_id': json['polygon_id'], + 'time': json['time'], + 'warehouse_id': json['warehouse_id'], + }; +} +function V2PolygonBindRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_method_id': value['delivery_method_id'], + 'polygon_id': value['polygon_id'], + 'time': value['time'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V2PostingFBSActGetPostingsRequest.d.ts b/dist/models/V2PostingFBSActGetPostingsRequest.d.ts new file mode 100644 index 0000000..c04d58b --- /dev/null +++ b/dist/models/V2PostingFBSActGetPostingsRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSActGetPostingsRequest + */ +export interface V2PostingFBSActGetPostingsRequest { + /** + * Идентификатор акта. Получите значение параметра методом [/v2/posting/fbs/act/list](#operation/PostingAPI_FbsActList) или [/v1/carriage/create](#operation/CarriageAPI_CarriageCreate). + * @type {number} + * @memberof V2PostingFBSActGetPostingsRequest + */ + id: number; +} +/** + * Check if a given object implements the V2PostingFBSActGetPostingsRequest interface. + */ +export declare function instanceOfV2PostingFBSActGetPostingsRequest(value: object): value is V2PostingFBSActGetPostingsRequest; +export declare function V2PostingFBSActGetPostingsRequestFromJSON(json: any): V2PostingFBSActGetPostingsRequest; +export declare function V2PostingFBSActGetPostingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActGetPostingsRequest; +export declare function V2PostingFBSActGetPostingsRequestToJSON(value?: V2PostingFBSActGetPostingsRequest | null): any; diff --git a/dist/models/V2PostingFBSActGetPostingsRequest.js b/dist/models/V2PostingFBSActGetPostingsRequest.js new file mode 100644 index 0000000..e32d23d --- /dev/null +++ b/dist/models/V2PostingFBSActGetPostingsRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActGetPostingsRequest = instanceOfV2PostingFBSActGetPostingsRequest; +exports.V2PostingFBSActGetPostingsRequestFromJSON = V2PostingFBSActGetPostingsRequestFromJSON; +exports.V2PostingFBSActGetPostingsRequestFromJSONTyped = V2PostingFBSActGetPostingsRequestFromJSONTyped; +exports.V2PostingFBSActGetPostingsRequestToJSON = V2PostingFBSActGetPostingsRequestToJSON; +/** + * Check if a given object implements the V2PostingFBSActGetPostingsRequest interface. + */ +function instanceOfV2PostingFBSActGetPostingsRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function V2PostingFBSActGetPostingsRequestFromJSON(json) { + return V2PostingFBSActGetPostingsRequestFromJSONTyped(json, false); +} +function V2PostingFBSActGetPostingsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function V2PostingFBSActGetPostingsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/V2PostingFBSActGetPostingsResponse.d.ts b/dist/models/V2PostingFBSActGetPostingsResponse.d.ts new file mode 100644 index 0000000..55acd80 --- /dev/null +++ b/dist/models/V2PostingFBSActGetPostingsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActGetPostingsResult } from './V2PostingFBSActGetPostingsResult'; +/** + * + * @export + * @interface V2PostingFBSActGetPostingsResponse + */ +export interface V2PostingFBSActGetPostingsResponse { + /** + * Информация об отправлениях. + * @type {Array} + * @memberof V2PostingFBSActGetPostingsResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2PostingFBSActGetPostingsResponse interface. + */ +export declare function instanceOfV2PostingFBSActGetPostingsResponse(value: object): value is V2PostingFBSActGetPostingsResponse; +export declare function V2PostingFBSActGetPostingsResponseFromJSON(json: any): V2PostingFBSActGetPostingsResponse; +export declare function V2PostingFBSActGetPostingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActGetPostingsResponse; +export declare function V2PostingFBSActGetPostingsResponseToJSON(value?: V2PostingFBSActGetPostingsResponse | null): any; diff --git a/dist/models/V2PostingFBSActGetPostingsResponse.js b/dist/models/V2PostingFBSActGetPostingsResponse.js new file mode 100644 index 0000000..bf393f1 --- /dev/null +++ b/dist/models/V2PostingFBSActGetPostingsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActGetPostingsResponse = instanceOfV2PostingFBSActGetPostingsResponse; +exports.V2PostingFBSActGetPostingsResponseFromJSON = V2PostingFBSActGetPostingsResponseFromJSON; +exports.V2PostingFBSActGetPostingsResponseFromJSONTyped = V2PostingFBSActGetPostingsResponseFromJSONTyped; +exports.V2PostingFBSActGetPostingsResponseToJSON = V2PostingFBSActGetPostingsResponseToJSON; +const V2PostingFBSActGetPostingsResult_1 = require("./V2PostingFBSActGetPostingsResult"); +/** + * Check if a given object implements the V2PostingFBSActGetPostingsResponse interface. + */ +function instanceOfV2PostingFBSActGetPostingsResponse(value) { + return true; +} +function V2PostingFBSActGetPostingsResponseFromJSON(json) { + return V2PostingFBSActGetPostingsResponseFromJSONTyped(json, false); +} +function V2PostingFBSActGetPostingsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2PostingFBSActGetPostingsResult_1.V2PostingFBSActGetPostingsResultFromJSON)), + }; +} +function V2PostingFBSActGetPostingsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2PostingFBSActGetPostingsResult_1.V2PostingFBSActGetPostingsResultToJSON)), + }; +} diff --git a/dist/models/V2PostingFBSActGetPostingsResult.d.ts b/dist/models/V2PostingFBSActGetPostingsResult.d.ts new file mode 100644 index 0000000..081be79 --- /dev/null +++ b/dist/models/V2PostingFBSActGetPostingsResult.d.ts @@ -0,0 +1,74 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActGetProducts } from './V2PostingFBSActGetProducts'; +/** + * + * @export + * @interface V2PostingFBSActGetPostingsResult + */ +export interface V2PostingFBSActGetPostingsResult { + /** + * Идентификатор акта. + * @type {number} + * @memberof V2PostingFBSActGetPostingsResult + */ + id?: number; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V2PostingFBSActGetPostingsResult + */ + multi_box_qty?: number; + /** + * Номер отправления. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + posting_number?: string; + /** + * Статус отправления. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + status?: string; + /** + * Расшифровка кода ошибки. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + seller_error?: string; + /** + * Дата и время обновления записи об отправлении. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + updated_at?: string; + /** + * Дата и время создания записи об отправлении. + * @type {string} + * @memberof V2PostingFBSActGetPostingsResult + */ + created_at?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V2PostingFBSActGetPostingsResult + */ + products?: Array; +} +/** + * Check if a given object implements the V2PostingFBSActGetPostingsResult interface. + */ +export declare function instanceOfV2PostingFBSActGetPostingsResult(value: object): value is V2PostingFBSActGetPostingsResult; +export declare function V2PostingFBSActGetPostingsResultFromJSON(json: any): V2PostingFBSActGetPostingsResult; +export declare function V2PostingFBSActGetPostingsResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActGetPostingsResult; +export declare function V2PostingFBSActGetPostingsResultToJSON(value?: V2PostingFBSActGetPostingsResult | null): any; diff --git a/dist/models/V2PostingFBSActGetPostingsResult.js b/dist/models/V2PostingFBSActGetPostingsResult.js new file mode 100644 index 0000000..e9b7f97 --- /dev/null +++ b/dist/models/V2PostingFBSActGetPostingsResult.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActGetPostingsResult = instanceOfV2PostingFBSActGetPostingsResult; +exports.V2PostingFBSActGetPostingsResultFromJSON = V2PostingFBSActGetPostingsResultFromJSON; +exports.V2PostingFBSActGetPostingsResultFromJSONTyped = V2PostingFBSActGetPostingsResultFromJSONTyped; +exports.V2PostingFBSActGetPostingsResultToJSON = V2PostingFBSActGetPostingsResultToJSON; +const V2PostingFBSActGetProducts_1 = require("./V2PostingFBSActGetProducts"); +/** + * Check if a given object implements the V2PostingFBSActGetPostingsResult interface. + */ +function instanceOfV2PostingFBSActGetPostingsResult(value) { + return true; +} +function V2PostingFBSActGetPostingsResultFromJSON(json) { + return V2PostingFBSActGetPostingsResultFromJSONTyped(json, false); +} +function V2PostingFBSActGetPostingsResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'status': json['status'] == null ? undefined : json['status'], + 'seller_error': json['seller_error'] == null ? undefined : json['seller_error'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'products': json['products'] == null ? undefined : (json['products'].map(V2PostingFBSActGetProducts_1.V2PostingFBSActGetProductsFromJSON)), + }; +} +function V2PostingFBSActGetPostingsResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'multi_box_qty': value['multi_box_qty'], + 'posting_number': value['posting_number'], + 'status': value['status'], + 'seller_error': value['seller_error'], + 'updated_at': value['updated_at'], + 'created_at': value['created_at'], + 'products': value['products'] == null ? undefined : (value['products'].map(V2PostingFBSActGetProducts_1.V2PostingFBSActGetProductsToJSON)), + }; +} diff --git a/dist/models/V2PostingFBSActGetProducts.d.ts b/dist/models/V2PostingFBSActGetProducts.d.ts new file mode 100644 index 0000000..c582871 --- /dev/null +++ b/dist/models/V2PostingFBSActGetProducts.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSActGetProducts + */ +export interface V2PostingFBSActGetProducts { + /** + * Название товара. + * @type {string} + * @memberof V2PostingFBSActGetProducts + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2PostingFBSActGetProducts + */ + offer_id?: string; + /** + * Цена товара. + * @type {string} + * @memberof V2PostingFBSActGetProducts + */ + price?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof V2PostingFBSActGetProducts + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2PostingFBSActGetProducts + */ + sku?: number; +} +/** + * Check if a given object implements the V2PostingFBSActGetProducts interface. + */ +export declare function instanceOfV2PostingFBSActGetProducts(value: object): value is V2PostingFBSActGetProducts; +export declare function V2PostingFBSActGetProductsFromJSON(json: any): V2PostingFBSActGetProducts; +export declare function V2PostingFBSActGetProductsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActGetProducts; +export declare function V2PostingFBSActGetProductsToJSON(value?: V2PostingFBSActGetProducts | null): any; diff --git a/dist/models/V2PostingFBSActGetProducts.js b/dist/models/V2PostingFBSActGetProducts.js new file mode 100644 index 0000000..730df52 --- /dev/null +++ b/dist/models/V2PostingFBSActGetProducts.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActGetProducts = instanceOfV2PostingFBSActGetProducts; +exports.V2PostingFBSActGetProductsFromJSON = V2PostingFBSActGetProductsFromJSON; +exports.V2PostingFBSActGetProductsFromJSONTyped = V2PostingFBSActGetProductsFromJSONTyped; +exports.V2PostingFBSActGetProductsToJSON = V2PostingFBSActGetProductsToJSON; +/** + * Check if a given object implements the V2PostingFBSActGetProducts interface. + */ +function instanceOfV2PostingFBSActGetProducts(value) { + return true; +} +function V2PostingFBSActGetProductsFromJSON(json) { + return V2PostingFBSActGetProductsFromJSONTyped(json, false); +} +function V2PostingFBSActGetProductsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V2PostingFBSActGetProductsToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V2PostingFBSActListFilter.d.ts b/dist/models/V2PostingFBSActListFilter.d.ts new file mode 100644 index 0000000..0929bbd --- /dev/null +++ b/dist/models/V2PostingFBSActListFilter.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Параметры фильтра. + * @export + * @interface V2PostingFBSActListFilter + */ +export interface V2PostingFBSActListFilter { + /** + * Начальная дата создания отгрузок. + * @type {string} + * @memberof V2PostingFBSActListFilter + */ + date_from: string; + /** + * Конечная дата создания отгрузок. + * @type {string} + * @memberof V2PostingFBSActListFilter + */ + date_to: string; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка силами Ozon. + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ. + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ. + * - `non_integrated` — доставка силами продавца. + * + * @type {string} + * @memberof V2PostingFBSActListFilter + */ + integration_type?: string; + /** + * Статусы перевозок: + * - `new` — новая, + * - `awaiting_retry` — повторная попытка создания, + * - `in_process` — собирается, + * - `success` — создана, + * - `error` — ошибка при создании, + * - `sended` — отправлена, + * - `received` — получена, + * - `formed` — собрана, + * - `cancelled` — отменена, + * - `pending` — в очереди на сборку, + * - `completion_enqueued` — в очереди на завершение, + * - `completion_processing` — в процессе завершения, + * - `completion_failed` — ошибка при завершении, + * - `cancelation_enqueued` — в очереди на отмену, + * - `cancelation_processing` — в процессе отмены, + * - `cancelation_failed` — ошибка при отмене, + * - `completed` — завершена, + * - `closed` — закрыта. + * + * @type {Array} + * @memberof V2PostingFBSActListFilter + */ + status?: Array; +} +/** + * Check if a given object implements the V2PostingFBSActListFilter interface. + */ +export declare function instanceOfV2PostingFBSActListFilter(value: object): value is V2PostingFBSActListFilter; +export declare function V2PostingFBSActListFilterFromJSON(json: any): V2PostingFBSActListFilter; +export declare function V2PostingFBSActListFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListFilter; +export declare function V2PostingFBSActListFilterToJSON(value?: V2PostingFBSActListFilter | null): any; diff --git a/dist/models/V2PostingFBSActListFilter.js b/dist/models/V2PostingFBSActListFilter.js new file mode 100644 index 0000000..33df8cb --- /dev/null +++ b/dist/models/V2PostingFBSActListFilter.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActListFilter = instanceOfV2PostingFBSActListFilter; +exports.V2PostingFBSActListFilterFromJSON = V2PostingFBSActListFilterFromJSON; +exports.V2PostingFBSActListFilterFromJSONTyped = V2PostingFBSActListFilterFromJSONTyped; +exports.V2PostingFBSActListFilterToJSON = V2PostingFBSActListFilterToJSON; +/** + * Check if a given object implements the V2PostingFBSActListFilter interface. + */ +function instanceOfV2PostingFBSActListFilter(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + return true; +} +function V2PostingFBSActListFilterFromJSON(json) { + return V2PostingFBSActListFilterFromJSONTyped(json, false); +} +function V2PostingFBSActListFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V2PostingFBSActListFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'integration_type': value['integration_type'], + 'status': value['status'], + }; +} diff --git a/dist/models/V2PostingFBSActListRelatedDocs.d.ts b/dist/models/V2PostingFBSActListRelatedDocs.d.ts new file mode 100644 index 0000000..42e277d --- /dev/null +++ b/dist/models/V2PostingFBSActListRelatedDocs.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActListRelatedDocsActOfMismatch } from './V2PostingFBSActListRelatedDocsActOfMismatch'; +import type { V2PostingFBSActListRelatedDocsActOfAcceptance } from './V2PostingFBSActListRelatedDocsActOfAcceptance'; +import type { V2PostingFBSActListRelatedDocsActOfExcess } from './V2PostingFBSActListRelatedDocsActOfExcess'; +/** + * Информация про акты перевозки. + * @export + * @interface V2PostingFBSActListRelatedDocs + */ +export interface V2PostingFBSActListRelatedDocs { + /** + * + * @type {V2PostingFBSActListRelatedDocsActOfAcceptance} + * @memberof V2PostingFBSActListRelatedDocs + */ + act_of_acceptance?: V2PostingFBSActListRelatedDocsActOfAcceptance; + /** + * + * @type {V2PostingFBSActListRelatedDocsActOfMismatch} + * @memberof V2PostingFBSActListRelatedDocs + */ + act_of_mismatch?: V2PostingFBSActListRelatedDocsActOfMismatch; + /** + * + * @type {V2PostingFBSActListRelatedDocsActOfExcess} + * @memberof V2PostingFBSActListRelatedDocs + */ + act_of_excess?: V2PostingFBSActListRelatedDocsActOfExcess; +} +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocs interface. + */ +export declare function instanceOfV2PostingFBSActListRelatedDocs(value: object): value is V2PostingFBSActListRelatedDocs; +export declare function V2PostingFBSActListRelatedDocsFromJSON(json: any): V2PostingFBSActListRelatedDocs; +export declare function V2PostingFBSActListRelatedDocsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRelatedDocs; +export declare function V2PostingFBSActListRelatedDocsToJSON(value?: V2PostingFBSActListRelatedDocs | null): any; diff --git a/dist/models/V2PostingFBSActListRelatedDocs.js b/dist/models/V2PostingFBSActListRelatedDocs.js new file mode 100644 index 0000000..2b8ed39 --- /dev/null +++ b/dist/models/V2PostingFBSActListRelatedDocs.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActListRelatedDocs = instanceOfV2PostingFBSActListRelatedDocs; +exports.V2PostingFBSActListRelatedDocsFromJSON = V2PostingFBSActListRelatedDocsFromJSON; +exports.V2PostingFBSActListRelatedDocsFromJSONTyped = V2PostingFBSActListRelatedDocsFromJSONTyped; +exports.V2PostingFBSActListRelatedDocsToJSON = V2PostingFBSActListRelatedDocsToJSON; +const V2PostingFBSActListRelatedDocsActOfMismatch_1 = require("./V2PostingFBSActListRelatedDocsActOfMismatch"); +const V2PostingFBSActListRelatedDocsActOfAcceptance_1 = require("./V2PostingFBSActListRelatedDocsActOfAcceptance"); +const V2PostingFBSActListRelatedDocsActOfExcess_1 = require("./V2PostingFBSActListRelatedDocsActOfExcess"); +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocs interface. + */ +function instanceOfV2PostingFBSActListRelatedDocs(value) { + return true; +} +function V2PostingFBSActListRelatedDocsFromJSON(json) { + return V2PostingFBSActListRelatedDocsFromJSONTyped(json, false); +} +function V2PostingFBSActListRelatedDocsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'act_of_acceptance': json['act_of_acceptance'] == null ? undefined : (0, V2PostingFBSActListRelatedDocsActOfAcceptance_1.V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON)(json['act_of_acceptance']), + 'act_of_mismatch': json['act_of_mismatch'] == null ? undefined : (0, V2PostingFBSActListRelatedDocsActOfMismatch_1.V2PostingFBSActListRelatedDocsActOfMismatchFromJSON)(json['act_of_mismatch']), + 'act_of_excess': json['act_of_excess'] == null ? undefined : (0, V2PostingFBSActListRelatedDocsActOfExcess_1.V2PostingFBSActListRelatedDocsActOfExcessFromJSON)(json['act_of_excess']), + }; +} +function V2PostingFBSActListRelatedDocsToJSON(value) { + if (value == null) { + return value; + } + return { + 'act_of_acceptance': (0, V2PostingFBSActListRelatedDocsActOfAcceptance_1.V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON)(value['act_of_acceptance']), + 'act_of_mismatch': (0, V2PostingFBSActListRelatedDocsActOfMismatch_1.V2PostingFBSActListRelatedDocsActOfMismatchToJSON)(value['act_of_mismatch']), + 'act_of_excess': (0, V2PostingFBSActListRelatedDocsActOfExcess_1.V2PostingFBSActListRelatedDocsActOfExcessToJSON)(value['act_of_excess']), + }; +} diff --git a/dist/models/V2PostingFBSActListRelatedDocsActOfAcceptance.d.ts b/dist/models/V2PostingFBSActListRelatedDocsActOfAcceptance.d.ts new file mode 100644 index 0000000..627c53d --- /dev/null +++ b/dist/models/V2PostingFBSActListRelatedDocsActOfAcceptance.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация про акт приёма-передачи. + * @export + * @interface V2PostingFBSActListRelatedDocsActOfAcceptance + */ +export interface V2PostingFBSActListRelatedDocsActOfAcceptance { + /** + * Дата создания акта. + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfAcceptance + */ + created_at?: string; + /** + * Статус акта: + * - `FORMING` — ещё не готов, + * - `FORMED` — сформирован, + * - `CONFIRMED` — подписан Ozon, + * - `CONFIRMED_WITH_MISMATCH` — подписан Ozon с расхождениями, + * - `ACCEPTED_BY_CARGO_PLACES` — принят по грузовым местам, + * - `PRINTED_CARRIAGE` — электронная подпись не нужна, + * - `ERROR`, `UNKNOWN_ERROR` — ошибка. + * + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfAcceptance + */ + document_status?: string; +} +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfAcceptance interface. + */ +export declare function instanceOfV2PostingFBSActListRelatedDocsActOfAcceptance(value: object): value is V2PostingFBSActListRelatedDocsActOfAcceptance; +export declare function V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON(json: any): V2PostingFBSActListRelatedDocsActOfAcceptance; +export declare function V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRelatedDocsActOfAcceptance; +export declare function V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON(value?: V2PostingFBSActListRelatedDocsActOfAcceptance | null): any; diff --git a/dist/models/V2PostingFBSActListRelatedDocsActOfAcceptance.js b/dist/models/V2PostingFBSActListRelatedDocsActOfAcceptance.js new file mode 100644 index 0000000..7d6e58e --- /dev/null +++ b/dist/models/V2PostingFBSActListRelatedDocsActOfAcceptance.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActListRelatedDocsActOfAcceptance = instanceOfV2PostingFBSActListRelatedDocsActOfAcceptance; +exports.V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON = V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON; +exports.V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSONTyped = V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSONTyped; +exports.V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON = V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON; +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfAcceptance interface. + */ +function instanceOfV2PostingFBSActListRelatedDocsActOfAcceptance(value) { + return true; +} +function V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSON(json) { + return V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSONTyped(json, false); +} +function V2PostingFBSActListRelatedDocsActOfAcceptanceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'document_status': json['document_status'] == null ? undefined : json['document_status'], + }; +} +function V2PostingFBSActListRelatedDocsActOfAcceptanceToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'document_status': value['document_status'], + }; +} diff --git a/dist/models/V2PostingFBSActListRelatedDocsActOfExcess.d.ts b/dist/models/V2PostingFBSActListRelatedDocsActOfExcess.d.ts new file mode 100644 index 0000000..686cc2b --- /dev/null +++ b/dist/models/V2PostingFBSActListRelatedDocsActOfExcess.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация про акт об излишках. + * @export + * @interface V2PostingFBSActListRelatedDocsActOfExcess + */ +export interface V2PostingFBSActListRelatedDocsActOfExcess { + /** + * Дата создания акта. + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfExcess + */ + created_at?: string; + /** + * Статус акта: + * - `NEED_TO_SIGN` — требуется подпись, + * - `CONFIRMED` — подписан Ozon, + * - `UNKNOWN_ERROR` — ошибка. + * + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfExcess + */ + document_status?: string; +} +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfExcess interface. + */ +export declare function instanceOfV2PostingFBSActListRelatedDocsActOfExcess(value: object): value is V2PostingFBSActListRelatedDocsActOfExcess; +export declare function V2PostingFBSActListRelatedDocsActOfExcessFromJSON(json: any): V2PostingFBSActListRelatedDocsActOfExcess; +export declare function V2PostingFBSActListRelatedDocsActOfExcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRelatedDocsActOfExcess; +export declare function V2PostingFBSActListRelatedDocsActOfExcessToJSON(value?: V2PostingFBSActListRelatedDocsActOfExcess | null): any; diff --git a/dist/models/V2PostingFBSActListRelatedDocsActOfExcess.js b/dist/models/V2PostingFBSActListRelatedDocsActOfExcess.js new file mode 100644 index 0000000..ccb3ab3 --- /dev/null +++ b/dist/models/V2PostingFBSActListRelatedDocsActOfExcess.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActListRelatedDocsActOfExcess = instanceOfV2PostingFBSActListRelatedDocsActOfExcess; +exports.V2PostingFBSActListRelatedDocsActOfExcessFromJSON = V2PostingFBSActListRelatedDocsActOfExcessFromJSON; +exports.V2PostingFBSActListRelatedDocsActOfExcessFromJSONTyped = V2PostingFBSActListRelatedDocsActOfExcessFromJSONTyped; +exports.V2PostingFBSActListRelatedDocsActOfExcessToJSON = V2PostingFBSActListRelatedDocsActOfExcessToJSON; +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfExcess interface. + */ +function instanceOfV2PostingFBSActListRelatedDocsActOfExcess(value) { + return true; +} +function V2PostingFBSActListRelatedDocsActOfExcessFromJSON(json) { + return V2PostingFBSActListRelatedDocsActOfExcessFromJSONTyped(json, false); +} +function V2PostingFBSActListRelatedDocsActOfExcessFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'document_status': json['document_status'] == null ? undefined : json['document_status'], + }; +} +function V2PostingFBSActListRelatedDocsActOfExcessToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'document_status': value['document_status'], + }; +} diff --git a/dist/models/V2PostingFBSActListRelatedDocsActOfMismatch.d.ts b/dist/models/V2PostingFBSActListRelatedDocsActOfMismatch.d.ts new file mode 100644 index 0000000..7f26a78 --- /dev/null +++ b/dist/models/V2PostingFBSActListRelatedDocsActOfMismatch.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация про акт о расхождениях. + * @export + * @interface V2PostingFBSActListRelatedDocsActOfMismatch + */ +export interface V2PostingFBSActListRelatedDocsActOfMismatch { + /** + * Дата создания перевозки. + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfMismatch + */ + created_at?: string; + /** + * Статус перевозки или акта: + * - `NEED_TO_SIGN` — требуется подпись, + * - `ON_CONFIRMATION` — на подписании Ozon, + * - `CONFIRMED` — подписан Ozon, + * - `DISPUTE_OPENED` — принят по грузовым местам, + * - `PRINTED_CARRIAGE` — электронная подпись не нужна, + * - `UNKNOWN_ERROR` — ошибка. + * + * @type {string} + * @memberof V2PostingFBSActListRelatedDocsActOfMismatch + */ + document_status?: string; +} +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfMismatch interface. + */ +export declare function instanceOfV2PostingFBSActListRelatedDocsActOfMismatch(value: object): value is V2PostingFBSActListRelatedDocsActOfMismatch; +export declare function V2PostingFBSActListRelatedDocsActOfMismatchFromJSON(json: any): V2PostingFBSActListRelatedDocsActOfMismatch; +export declare function V2PostingFBSActListRelatedDocsActOfMismatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRelatedDocsActOfMismatch; +export declare function V2PostingFBSActListRelatedDocsActOfMismatchToJSON(value?: V2PostingFBSActListRelatedDocsActOfMismatch | null): any; diff --git a/dist/models/V2PostingFBSActListRelatedDocsActOfMismatch.js b/dist/models/V2PostingFBSActListRelatedDocsActOfMismatch.js new file mode 100644 index 0000000..1f4648b --- /dev/null +++ b/dist/models/V2PostingFBSActListRelatedDocsActOfMismatch.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActListRelatedDocsActOfMismatch = instanceOfV2PostingFBSActListRelatedDocsActOfMismatch; +exports.V2PostingFBSActListRelatedDocsActOfMismatchFromJSON = V2PostingFBSActListRelatedDocsActOfMismatchFromJSON; +exports.V2PostingFBSActListRelatedDocsActOfMismatchFromJSONTyped = V2PostingFBSActListRelatedDocsActOfMismatchFromJSONTyped; +exports.V2PostingFBSActListRelatedDocsActOfMismatchToJSON = V2PostingFBSActListRelatedDocsActOfMismatchToJSON; +/** + * Check if a given object implements the V2PostingFBSActListRelatedDocsActOfMismatch interface. + */ +function instanceOfV2PostingFBSActListRelatedDocsActOfMismatch(value) { + return true; +} +function V2PostingFBSActListRelatedDocsActOfMismatchFromJSON(json) { + return V2PostingFBSActListRelatedDocsActOfMismatchFromJSONTyped(json, false); +} +function V2PostingFBSActListRelatedDocsActOfMismatchFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'document_status': json['document_status'] == null ? undefined : json['document_status'], + }; +} +function V2PostingFBSActListRelatedDocsActOfMismatchToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'document_status': value['document_status'], + }; +} diff --git a/dist/models/V2PostingFBSActListRequest.d.ts b/dist/models/V2PostingFBSActListRequest.d.ts new file mode 100644 index 0000000..00e74e5 --- /dev/null +++ b/dist/models/V2PostingFBSActListRequest.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActListFilter } from './V2PostingFBSActListFilter'; +/** + * + * @export + * @interface V2PostingFBSActListRequest + */ +export interface V2PostingFBSActListRequest { + /** + * + * @type {V2PostingFBSActListFilter} + * @memberof V2PostingFBSActListRequest + */ + filter?: V2PostingFBSActListFilter; + /** + * Максимальное количество актов в ответе. + * @type {number} + * @memberof V2PostingFBSActListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V2PostingFBSActListRequest interface. + */ +export declare function instanceOfV2PostingFBSActListRequest(value: object): value is V2PostingFBSActListRequest; +export declare function V2PostingFBSActListRequestFromJSON(json: any): V2PostingFBSActListRequest; +export declare function V2PostingFBSActListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListRequest; +export declare function V2PostingFBSActListRequestToJSON(value?: V2PostingFBSActListRequest | null): any; diff --git a/dist/models/V2PostingFBSActListRequest.js b/dist/models/V2PostingFBSActListRequest.js new file mode 100644 index 0000000..6145806 --- /dev/null +++ b/dist/models/V2PostingFBSActListRequest.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActListRequest = instanceOfV2PostingFBSActListRequest; +exports.V2PostingFBSActListRequestFromJSON = V2PostingFBSActListRequestFromJSON; +exports.V2PostingFBSActListRequestFromJSONTyped = V2PostingFBSActListRequestFromJSONTyped; +exports.V2PostingFBSActListRequestToJSON = V2PostingFBSActListRequestToJSON; +const V2PostingFBSActListFilter_1 = require("./V2PostingFBSActListFilter"); +/** + * Check if a given object implements the V2PostingFBSActListRequest interface. + */ +function instanceOfV2PostingFBSActListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V2PostingFBSActListRequestFromJSON(json) { + return V2PostingFBSActListRequestFromJSONTyped(json, false); +} +function V2PostingFBSActListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, V2PostingFBSActListFilter_1.V2PostingFBSActListFilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function V2PostingFBSActListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, V2PostingFBSActListFilter_1.V2PostingFBSActListFilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/V2PostingFBSActListResponse.d.ts b/dist/models/V2PostingFBSActListResponse.d.ts new file mode 100644 index 0000000..1405b3a --- /dev/null +++ b/dist/models/V2PostingFBSActListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActListResult } from './V2PostingFBSActListResult'; +/** + * + * @export + * @interface V2PostingFBSActListResponse + */ +export interface V2PostingFBSActListResponse { + /** + * Результат запроса. + * @type {Array} + * @memberof V2PostingFBSActListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the V2PostingFBSActListResponse interface. + */ +export declare function instanceOfV2PostingFBSActListResponse(value: object): value is V2PostingFBSActListResponse; +export declare function V2PostingFBSActListResponseFromJSON(json: any): V2PostingFBSActListResponse; +export declare function V2PostingFBSActListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListResponse; +export declare function V2PostingFBSActListResponseToJSON(value?: V2PostingFBSActListResponse | null): any; diff --git a/dist/models/V2PostingFBSActListResponse.js b/dist/models/V2PostingFBSActListResponse.js new file mode 100644 index 0000000..a41a5b2 --- /dev/null +++ b/dist/models/V2PostingFBSActListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActListResponse = instanceOfV2PostingFBSActListResponse; +exports.V2PostingFBSActListResponseFromJSON = V2PostingFBSActListResponseFromJSON; +exports.V2PostingFBSActListResponseFromJSONTyped = V2PostingFBSActListResponseFromJSONTyped; +exports.V2PostingFBSActListResponseToJSON = V2PostingFBSActListResponseToJSON; +const V2PostingFBSActListResult_1 = require("./V2PostingFBSActListResult"); +/** + * Check if a given object implements the V2PostingFBSActListResponse interface. + */ +function instanceOfV2PostingFBSActListResponse(value) { + return true; +} +function V2PostingFBSActListResponseFromJSON(json) { + return V2PostingFBSActListResponseFromJSONTyped(json, false); +} +function V2PostingFBSActListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(V2PostingFBSActListResult_1.V2PostingFBSActListResultFromJSON)), + }; +} +function V2PostingFBSActListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(V2PostingFBSActListResult_1.V2PostingFBSActListResultToJSON)), + }; +} diff --git a/dist/models/V2PostingFBSActListResult.d.ts b/dist/models/V2PostingFBSActListResult.d.ts new file mode 100644 index 0000000..2f134aa --- /dev/null +++ b/dist/models/V2PostingFBSActListResult.d.ts @@ -0,0 +1,116 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2PostingFBSActListRelatedDocs } from './V2PostingFBSActListRelatedDocs'; +/** + * + * @export + * @interface V2PostingFBSActListResult + */ +export interface V2PostingFBSActListResult { + /** + * Идентификатор отгрузки. + * @type {number} + * @memberof V2PostingFBSActListResult + */ + id?: number; + /** + * Идентификатор метода доставки. + * @type {number} + * @memberof V2PostingFBSActListResult + */ + delivery_method_id?: number; + /** + * Название метода доставки. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + delivery_method_name?: string; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка через Ozon логистику. + * - `3pl` — доставка внешней службой, продавец регистрирует заказ. + * + * @type {string} + * @memberof V2PostingFBSActListResult + */ + integration_type?: string; + /** + * Число грузовых мест. + * @type {number} + * @memberof V2PostingFBSActListResult + */ + containers_count?: number; + /** + * Статус отгрузки. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + status?: string; + /** + * Дата отгрузки. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + departure_date?: string; + /** + * Дата создания записи об отгрузке. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + created_at?: string; + /** + * Дата обновления записи об отгрузке. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + updated_at?: string; + /** + * Тип акта приёма-передачи для FBS продавцов. + * @type {string} + * @memberof V2PostingFBSActListResult + */ + act_type?: string; + /** + * Признак частичной перевозки. `true`, если перевозка частичная. + * + * Частичная перевозка значит, что отгрузка была разделена на несколько частей и по каждой из частей формируются отдельные акты. + * + * @type {boolean} + * @memberof V2PostingFBSActListResult + */ + is_partial?: boolean; + /** + * Признак наличия подлежащих отгрузке отправлений, которые не попали в текущую перевозку. `true`, если такие отправления есть. + * @type {boolean} + * @memberof V2PostingFBSActListResult + */ + has_postings_for_next_carriage?: boolean; + /** + * Порядковый номер частичной перевозки. + * @type {number} + * @memberof V2PostingFBSActListResult + */ + partial_num?: number; + /** + * + * @type {V2PostingFBSActListRelatedDocs} + * @memberof V2PostingFBSActListResult + */ + related_docs?: V2PostingFBSActListRelatedDocs; +} +/** + * Check if a given object implements the V2PostingFBSActListResult interface. + */ +export declare function instanceOfV2PostingFBSActListResult(value: object): value is V2PostingFBSActListResult; +export declare function V2PostingFBSActListResultFromJSON(json: any): V2PostingFBSActListResult; +export declare function V2PostingFBSActListResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSActListResult; +export declare function V2PostingFBSActListResultToJSON(value?: V2PostingFBSActListResult | null): any; diff --git a/dist/models/V2PostingFBSActListResult.js b/dist/models/V2PostingFBSActListResult.js new file mode 100644 index 0000000..707a0be --- /dev/null +++ b/dist/models/V2PostingFBSActListResult.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSActListResult = instanceOfV2PostingFBSActListResult; +exports.V2PostingFBSActListResultFromJSON = V2PostingFBSActListResultFromJSON; +exports.V2PostingFBSActListResultFromJSONTyped = V2PostingFBSActListResultFromJSONTyped; +exports.V2PostingFBSActListResultToJSON = V2PostingFBSActListResultToJSON; +const V2PostingFBSActListRelatedDocs_1 = require("./V2PostingFBSActListRelatedDocs"); +/** + * Check if a given object implements the V2PostingFBSActListResult interface. + */ +function instanceOfV2PostingFBSActListResult(value) { + return true; +} +function V2PostingFBSActListResultFromJSON(json) { + return V2PostingFBSActListResultFromJSONTyped(json, false); +} +function V2PostingFBSActListResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'delivery_method_id': json['delivery_method_id'] == null ? undefined : json['delivery_method_id'], + 'delivery_method_name': json['delivery_method_name'] == null ? undefined : json['delivery_method_name'], + 'integration_type': json['integration_type'] == null ? undefined : json['integration_type'], + 'containers_count': json['containers_count'] == null ? undefined : json['containers_count'], + 'status': json['status'] == null ? undefined : json['status'], + 'departure_date': json['departure_date'] == null ? undefined : json['departure_date'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'act_type': json['act_type'] == null ? undefined : json['act_type'], + 'is_partial': json['is_partial'] == null ? undefined : json['is_partial'], + 'has_postings_for_next_carriage': json['has_postings_for_next_carriage'] == null ? undefined : json['has_postings_for_next_carriage'], + 'partial_num': json['partial_num'] == null ? undefined : json['partial_num'], + 'related_docs': json['related_docs'] == null ? undefined : (0, V2PostingFBSActListRelatedDocs_1.V2PostingFBSActListRelatedDocsFromJSON)(json['related_docs']), + }; +} +function V2PostingFBSActListResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'delivery_method_id': value['delivery_method_id'], + 'delivery_method_name': value['delivery_method_name'], + 'integration_type': value['integration_type'], + 'containers_count': value['containers_count'], + 'status': value['status'], + 'departure_date': value['departure_date'], + 'created_at': value['created_at'], + 'updated_at': value['updated_at'], + 'act_type': value['act_type'], + 'is_partial': value['is_partial'], + 'has_postings_for_next_carriage': value['has_postings_for_next_carriage'], + 'partial_num': value['partial_num'], + 'related_docs': (0, V2PostingFBSActListRelatedDocs_1.V2PostingFBSActListRelatedDocsToJSON)(value['related_docs']), + }; +} diff --git a/dist/models/V2PostingFBSDigitalActCheckStatusRequest.d.ts b/dist/models/V2PostingFBSDigitalActCheckStatusRequest.d.ts new file mode 100644 index 0000000..506f239 --- /dev/null +++ b/dist/models/V2PostingFBSDigitalActCheckStatusRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSDigitalActCheckStatusRequest + */ +export interface V2PostingFBSDigitalActCheckStatusRequest { + /** + * Номер задания на формирование документов (также идентификатор перевозки) из метода [POST /v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate). + * @type {number} + * @memberof V2PostingFBSDigitalActCheckStatusRequest + */ + id: number; +} +/** + * Check if a given object implements the V2PostingFBSDigitalActCheckStatusRequest interface. + */ +export declare function instanceOfV2PostingFBSDigitalActCheckStatusRequest(value: object): value is V2PostingFBSDigitalActCheckStatusRequest; +export declare function V2PostingFBSDigitalActCheckStatusRequestFromJSON(json: any): V2PostingFBSDigitalActCheckStatusRequest; +export declare function V2PostingFBSDigitalActCheckStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSDigitalActCheckStatusRequest; +export declare function V2PostingFBSDigitalActCheckStatusRequestToJSON(value?: V2PostingFBSDigitalActCheckStatusRequest | null): any; diff --git a/dist/models/V2PostingFBSDigitalActCheckStatusRequest.js b/dist/models/V2PostingFBSDigitalActCheckStatusRequest.js new file mode 100644 index 0000000..a7beebb --- /dev/null +++ b/dist/models/V2PostingFBSDigitalActCheckStatusRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSDigitalActCheckStatusRequest = instanceOfV2PostingFBSDigitalActCheckStatusRequest; +exports.V2PostingFBSDigitalActCheckStatusRequestFromJSON = V2PostingFBSDigitalActCheckStatusRequestFromJSON; +exports.V2PostingFBSDigitalActCheckStatusRequestFromJSONTyped = V2PostingFBSDigitalActCheckStatusRequestFromJSONTyped; +exports.V2PostingFBSDigitalActCheckStatusRequestToJSON = V2PostingFBSDigitalActCheckStatusRequestToJSON; +/** + * Check if a given object implements the V2PostingFBSDigitalActCheckStatusRequest interface. + */ +function instanceOfV2PostingFBSDigitalActCheckStatusRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function V2PostingFBSDigitalActCheckStatusRequestFromJSON(json) { + return V2PostingFBSDigitalActCheckStatusRequestFromJSONTyped(json, false); +} +function V2PostingFBSDigitalActCheckStatusRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function V2PostingFBSDigitalActCheckStatusRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/V2PostingFBSDigitalActCheckStatusResponse.d.ts b/dist/models/V2PostingFBSDigitalActCheckStatusResponse.d.ts new file mode 100644 index 0000000..611dac7 --- /dev/null +++ b/dist/models/V2PostingFBSDigitalActCheckStatusResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSDigitalActCheckStatusResponse + */ +export interface V2PostingFBSDigitalActCheckStatusResponse { + /** + * Номер задания на формирование документов. + * @type {number} + * @memberof V2PostingFBSDigitalActCheckStatusResponse + */ + id?: number; + /** + * Cтатус формирования документов: + * - `FORMING` — ещё не готовы, + * - `FORMED` — сформированы успешно, + * - `CONFIRMED` — подписаны Ozon, + * - `CONFIRMED_WITH_MISMATCH` — подписаны Ozon с расхождениями, + * - `NOT_FOUND` — документы не найдены, + * - `UNKNOWN_ERROR` — произошла ошибка. + * + * @type {string} + * @memberof V2PostingFBSDigitalActCheckStatusResponse + */ + status?: string; +} +/** + * Check if a given object implements the V2PostingFBSDigitalActCheckStatusResponse interface. + */ +export declare function instanceOfV2PostingFBSDigitalActCheckStatusResponse(value: object): value is V2PostingFBSDigitalActCheckStatusResponse; +export declare function V2PostingFBSDigitalActCheckStatusResponseFromJSON(json: any): V2PostingFBSDigitalActCheckStatusResponse; +export declare function V2PostingFBSDigitalActCheckStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSDigitalActCheckStatusResponse; +export declare function V2PostingFBSDigitalActCheckStatusResponseToJSON(value?: V2PostingFBSDigitalActCheckStatusResponse | null): any; diff --git a/dist/models/V2PostingFBSDigitalActCheckStatusResponse.js b/dist/models/V2PostingFBSDigitalActCheckStatusResponse.js new file mode 100644 index 0000000..cb10a43 --- /dev/null +++ b/dist/models/V2PostingFBSDigitalActCheckStatusResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSDigitalActCheckStatusResponse = instanceOfV2PostingFBSDigitalActCheckStatusResponse; +exports.V2PostingFBSDigitalActCheckStatusResponseFromJSON = V2PostingFBSDigitalActCheckStatusResponseFromJSON; +exports.V2PostingFBSDigitalActCheckStatusResponseFromJSONTyped = V2PostingFBSDigitalActCheckStatusResponseFromJSONTyped; +exports.V2PostingFBSDigitalActCheckStatusResponseToJSON = V2PostingFBSDigitalActCheckStatusResponseToJSON; +/** + * Check if a given object implements the V2PostingFBSDigitalActCheckStatusResponse interface. + */ +function instanceOfV2PostingFBSDigitalActCheckStatusResponse(value) { + return true; +} +function V2PostingFBSDigitalActCheckStatusResponseFromJSON(json) { + return V2PostingFBSDigitalActCheckStatusResponseFromJSONTyped(json, false); +} +function V2PostingFBSDigitalActCheckStatusResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V2PostingFBSDigitalActCheckStatusResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'status': value['status'], + }; +} diff --git a/dist/models/V2PostingFBSGetBarcodeRequest.d.ts b/dist/models/V2PostingFBSGetBarcodeRequest.d.ts new file mode 100644 index 0000000..53071fb --- /dev/null +++ b/dist/models/V2PostingFBSGetBarcodeRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetBarcodeRequest + */ +export interface V2PostingFBSGetBarcodeRequest { + /** + * Идентификатор перевозки. + * @type {number} + * @memberof V2PostingFBSGetBarcodeRequest + */ + id: number; +} +/** + * Check if a given object implements the V2PostingFBSGetBarcodeRequest interface. + */ +export declare function instanceOfV2PostingFBSGetBarcodeRequest(value: object): value is V2PostingFBSGetBarcodeRequest; +export declare function V2PostingFBSGetBarcodeRequestFromJSON(json: any): V2PostingFBSGetBarcodeRequest; +export declare function V2PostingFBSGetBarcodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetBarcodeRequest; +export declare function V2PostingFBSGetBarcodeRequestToJSON(value?: V2PostingFBSGetBarcodeRequest | null): any; diff --git a/dist/models/V2PostingFBSGetBarcodeRequest.js b/dist/models/V2PostingFBSGetBarcodeRequest.js new file mode 100644 index 0000000..10291ef --- /dev/null +++ b/dist/models/V2PostingFBSGetBarcodeRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSGetBarcodeRequest = instanceOfV2PostingFBSGetBarcodeRequest; +exports.V2PostingFBSGetBarcodeRequestFromJSON = V2PostingFBSGetBarcodeRequestFromJSON; +exports.V2PostingFBSGetBarcodeRequestFromJSONTyped = V2PostingFBSGetBarcodeRequestFromJSONTyped; +exports.V2PostingFBSGetBarcodeRequestToJSON = V2PostingFBSGetBarcodeRequestToJSON; +/** + * Check if a given object implements the V2PostingFBSGetBarcodeRequest interface. + */ +function instanceOfV2PostingFBSGetBarcodeRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function V2PostingFBSGetBarcodeRequestFromJSON(json) { + return V2PostingFBSGetBarcodeRequestFromJSONTyped(json, false); +} +function V2PostingFBSGetBarcodeRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function V2PostingFBSGetBarcodeRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} diff --git a/dist/models/V2PostingFBSGetBarcodeResponse.d.ts b/dist/models/V2PostingFBSGetBarcodeResponse.d.ts new file mode 100644 index 0000000..9e93397 --- /dev/null +++ b/dist/models/V2PostingFBSGetBarcodeResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetBarcodeResponse + */ +export interface V2PostingFBSGetBarcodeResponse { + /** + * Изображение со штрихкодом в бинарном виде. + * @type {string} + * @memberof V2PostingFBSGetBarcodeResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V2PostingFBSGetBarcodeResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V2PostingFBSGetBarcodeResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V2PostingFBSGetBarcodeResponse interface. + */ +export declare function instanceOfV2PostingFBSGetBarcodeResponse(value: object): value is V2PostingFBSGetBarcodeResponse; +export declare function V2PostingFBSGetBarcodeResponseFromJSON(json: any): V2PostingFBSGetBarcodeResponse; +export declare function V2PostingFBSGetBarcodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetBarcodeResponse; +export declare function V2PostingFBSGetBarcodeResponseToJSON(value?: V2PostingFBSGetBarcodeResponse | null): any; diff --git a/dist/models/V2PostingFBSGetBarcodeResponse.js b/dist/models/V2PostingFBSGetBarcodeResponse.js new file mode 100644 index 0000000..a56b9bb --- /dev/null +++ b/dist/models/V2PostingFBSGetBarcodeResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSGetBarcodeResponse = instanceOfV2PostingFBSGetBarcodeResponse; +exports.V2PostingFBSGetBarcodeResponseFromJSON = V2PostingFBSGetBarcodeResponseFromJSON; +exports.V2PostingFBSGetBarcodeResponseFromJSONTyped = V2PostingFBSGetBarcodeResponseFromJSONTyped; +exports.V2PostingFBSGetBarcodeResponseToJSON = V2PostingFBSGetBarcodeResponseToJSON; +/** + * Check if a given object implements the V2PostingFBSGetBarcodeResponse interface. + */ +function instanceOfV2PostingFBSGetBarcodeResponse(value) { + return true; +} +function V2PostingFBSGetBarcodeResponseFromJSON(json) { + return V2PostingFBSGetBarcodeResponseFromJSONTyped(json, false); +} +function V2PostingFBSGetBarcodeResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +function V2PostingFBSGetBarcodeResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/models/V2PostingFBSGetBarcodeTextResponse.d.ts b/dist/models/V2PostingFBSGetBarcodeTextResponse.d.ts new file mode 100644 index 0000000..d73c9fe --- /dev/null +++ b/dist/models/V2PostingFBSGetBarcodeTextResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetBarcodeTextResponse + */ +export interface V2PostingFBSGetBarcodeTextResponse { + /** + * Штрихкод в текстовом виде. + * @type {string} + * @memberof V2PostingFBSGetBarcodeTextResponse + */ + result?: string; +} +/** + * Check if a given object implements the V2PostingFBSGetBarcodeTextResponse interface. + */ +export declare function instanceOfV2PostingFBSGetBarcodeTextResponse(value: object): value is V2PostingFBSGetBarcodeTextResponse; +export declare function V2PostingFBSGetBarcodeTextResponseFromJSON(json: any): V2PostingFBSGetBarcodeTextResponse; +export declare function V2PostingFBSGetBarcodeTextResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetBarcodeTextResponse; +export declare function V2PostingFBSGetBarcodeTextResponseToJSON(value?: V2PostingFBSGetBarcodeTextResponse | null): any; diff --git a/dist/models/V2PostingFBSGetBarcodeTextResponse.js b/dist/models/V2PostingFBSGetBarcodeTextResponse.js new file mode 100644 index 0000000..f1fe9ef --- /dev/null +++ b/dist/models/V2PostingFBSGetBarcodeTextResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSGetBarcodeTextResponse = instanceOfV2PostingFBSGetBarcodeTextResponse; +exports.V2PostingFBSGetBarcodeTextResponseFromJSON = V2PostingFBSGetBarcodeTextResponseFromJSON; +exports.V2PostingFBSGetBarcodeTextResponseFromJSONTyped = V2PostingFBSGetBarcodeTextResponseFromJSONTyped; +exports.V2PostingFBSGetBarcodeTextResponseToJSON = V2PostingFBSGetBarcodeTextResponseToJSON; +/** + * Check if a given object implements the V2PostingFBSGetBarcodeTextResponse interface. + */ +function instanceOfV2PostingFBSGetBarcodeTextResponse(value) { + return true; +} +function V2PostingFBSGetBarcodeTextResponseFromJSON(json) { + return V2PostingFBSGetBarcodeTextResponseFromJSONTyped(json, false); +} +function V2PostingFBSGetBarcodeTextResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function V2PostingFBSGetBarcodeTextResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/V2PostingFBSGetDigitalActRequest.d.ts b/dist/models/V2PostingFBSGetDigitalActRequest.d.ts new file mode 100644 index 0000000..cfd4868 --- /dev/null +++ b/dist/models/V2PostingFBSGetDigitalActRequest.d.ts @@ -0,0 +1,42 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetDigitalActRequest + */ +export interface V2PostingFBSGetDigitalActRequest { + /** + * Номер задания на формирование документов (также идентификатор перевозки) из метода [POST /v2/posting/fbs/act/create](#operation/PostingAPI_PostingFBSActCreate). + * @type {number} + * @memberof V2PostingFBSGetDigitalActRequest + */ + id: number; + /** + * Тип электронного документа: + * - `act_of_acceptance` — лист отгрузки, + * - `act_of_mismatch` — акт о расхождениях, + * - `act_of_excess` — акт об излишках, + * - `waybill` — транспортная накладная. + * + * @type {any} + * @memberof V2PostingFBSGetDigitalActRequest + */ + doc_type?: any | null; +} +/** + * Check if a given object implements the V2PostingFBSGetDigitalActRequest interface. + */ +export declare function instanceOfV2PostingFBSGetDigitalActRequest(value: object): value is V2PostingFBSGetDigitalActRequest; +export declare function V2PostingFBSGetDigitalActRequestFromJSON(json: any): V2PostingFBSGetDigitalActRequest; +export declare function V2PostingFBSGetDigitalActRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetDigitalActRequest; +export declare function V2PostingFBSGetDigitalActRequestToJSON(value?: V2PostingFBSGetDigitalActRequest | null): any; diff --git a/dist/models/V2PostingFBSGetDigitalActRequest.js b/dist/models/V2PostingFBSGetDigitalActRequest.js new file mode 100644 index 0000000..6efc453 --- /dev/null +++ b/dist/models/V2PostingFBSGetDigitalActRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSGetDigitalActRequest = instanceOfV2PostingFBSGetDigitalActRequest; +exports.V2PostingFBSGetDigitalActRequestFromJSON = V2PostingFBSGetDigitalActRequestFromJSON; +exports.V2PostingFBSGetDigitalActRequestFromJSONTyped = V2PostingFBSGetDigitalActRequestFromJSONTyped; +exports.V2PostingFBSGetDigitalActRequestToJSON = V2PostingFBSGetDigitalActRequestToJSON; +/** + * Check if a given object implements the V2PostingFBSGetDigitalActRequest interface. + */ +function instanceOfV2PostingFBSGetDigitalActRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function V2PostingFBSGetDigitalActRequestFromJSON(json) { + return V2PostingFBSGetDigitalActRequestFromJSONTyped(json, false); +} +function V2PostingFBSGetDigitalActRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'doc_type': json['doc_type'] == null ? undefined : json['doc_type'], + }; +} +function V2PostingFBSGetDigitalActRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'doc_type': value['doc_type'], + }; +} diff --git a/dist/models/V2PostingFBSGetDigitalActResponse.d.ts b/dist/models/V2PostingFBSGetDigitalActResponse.d.ts new file mode 100644 index 0000000..ba9b588 --- /dev/null +++ b/dist/models/V2PostingFBSGetDigitalActResponse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingFBSGetDigitalActResponse + */ +export interface V2PostingFBSGetDigitalActResponse { + /** + * Содержание файла в бинарном виде. + * @type {string} + * @memberof V2PostingFBSGetDigitalActResponse + */ + file_content?: string; + /** + * Название файла. + * @type {string} + * @memberof V2PostingFBSGetDigitalActResponse + */ + file_name?: string; + /** + * Тип файла. + * @type {string} + * @memberof V2PostingFBSGetDigitalActResponse + */ + content_type?: string; +} +/** + * Check if a given object implements the V2PostingFBSGetDigitalActResponse interface. + */ +export declare function instanceOfV2PostingFBSGetDigitalActResponse(value: object): value is V2PostingFBSGetDigitalActResponse; +export declare function V2PostingFBSGetDigitalActResponseFromJSON(json: any): V2PostingFBSGetDigitalActResponse; +export declare function V2PostingFBSGetDigitalActResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFBSGetDigitalActResponse; +export declare function V2PostingFBSGetDigitalActResponseToJSON(value?: V2PostingFBSGetDigitalActResponse | null): any; diff --git a/dist/models/V2PostingFBSGetDigitalActResponse.js b/dist/models/V2PostingFBSGetDigitalActResponse.js new file mode 100644 index 0000000..501b5bb --- /dev/null +++ b/dist/models/V2PostingFBSGetDigitalActResponse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFBSGetDigitalActResponse = instanceOfV2PostingFBSGetDigitalActResponse; +exports.V2PostingFBSGetDigitalActResponseFromJSON = V2PostingFBSGetDigitalActResponseFromJSON; +exports.V2PostingFBSGetDigitalActResponseFromJSONTyped = V2PostingFBSGetDigitalActResponseFromJSONTyped; +exports.V2PostingFBSGetDigitalActResponseToJSON = V2PostingFBSGetDigitalActResponseToJSON; +/** + * Check if a given object implements the V2PostingFBSGetDigitalActResponse interface. + */ +function instanceOfV2PostingFBSGetDigitalActResponse(value) { + return true; +} +function V2PostingFBSGetDigitalActResponseFromJSON(json) { + return V2PostingFBSGetDigitalActResponseFromJSONTyped(json, false); +} +function V2PostingFBSGetDigitalActResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_content': json['file_content'] == null ? undefined : json['file_content'], + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'content_type': json['content_type'] == null ? undefined : json['content_type'], + }; +} +function V2PostingFBSGetDigitalActResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_content': value['file_content'], + 'file_name': value['file_name'], + 'content_type': value['content_type'], + }; +} diff --git a/dist/models/V2PostingFinancialDataFBO.d.ts b/dist/models/V2PostingFinancialDataFBO.d.ts new file mode 100644 index 0000000..eb74154 --- /dev/null +++ b/dist/models/V2PostingFinancialDataFBO.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFinancialDataProduct } from './PostingFinancialDataProduct'; +/** + * Финансовые данные. + * @export + * @interface V2PostingFinancialDataFBO + */ +export interface V2PostingFinancialDataFBO { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof V2PostingFinancialDataFBO + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof V2PostingFinancialDataFBO + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof V2PostingFinancialDataFBO + */ + products?: Array; +} +/** + * Check if a given object implements the V2PostingFinancialDataFBO interface. + */ +export declare function instanceOfV2PostingFinancialDataFBO(value: object): value is V2PostingFinancialDataFBO; +export declare function V2PostingFinancialDataFBOFromJSON(json: any): V2PostingFinancialDataFBO; +export declare function V2PostingFinancialDataFBOFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFinancialDataFBO; +export declare function V2PostingFinancialDataFBOToJSON(value?: V2PostingFinancialDataFBO | null): any; diff --git a/dist/models/V2PostingFinancialDataFBO.js b/dist/models/V2PostingFinancialDataFBO.js new file mode 100644 index 0000000..b720292 --- /dev/null +++ b/dist/models/V2PostingFinancialDataFBO.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFinancialDataFBO = instanceOfV2PostingFinancialDataFBO; +exports.V2PostingFinancialDataFBOFromJSON = V2PostingFinancialDataFBOFromJSON; +exports.V2PostingFinancialDataFBOFromJSONTyped = V2PostingFinancialDataFBOFromJSONTyped; +exports.V2PostingFinancialDataFBOToJSON = V2PostingFinancialDataFBOToJSON; +const PostingFinancialDataProduct_1 = require("./PostingFinancialDataProduct"); +/** + * Check if a given object implements the V2PostingFinancialDataFBO interface. + */ +function instanceOfV2PostingFinancialDataFBO(value) { + return true; +} +function V2PostingFinancialDataFBOFromJSON(json) { + return V2PostingFinancialDataFBOFromJSONTyped(json, false); +} +function V2PostingFinancialDataFBOFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProduct_1.PostingFinancialDataProductFromJSON)), + }; +} +function V2PostingFinancialDataFBOToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProduct_1.PostingFinancialDataProductToJSON)), + }; +} diff --git a/dist/models/V2PostingFinancialDataFBOV2.d.ts b/dist/models/V2PostingFinancialDataFBOV2.d.ts new file mode 100644 index 0000000..d9ecaa8 --- /dev/null +++ b/dist/models/V2PostingFinancialDataFBOV2.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFinancialDataProductV2 } from './PostingFinancialDataProductV2'; +/** + * Финансовые данные. + * @export + * @interface V2PostingFinancialDataFBOV2 + */ +export interface V2PostingFinancialDataFBOV2 { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof V2PostingFinancialDataFBOV2 + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof V2PostingFinancialDataFBOV2 + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof V2PostingFinancialDataFBOV2 + */ + products?: Array; +} +/** + * Check if a given object implements the V2PostingFinancialDataFBOV2 interface. + */ +export declare function instanceOfV2PostingFinancialDataFBOV2(value: object): value is V2PostingFinancialDataFBOV2; +export declare function V2PostingFinancialDataFBOV2FromJSON(json: any): V2PostingFinancialDataFBOV2; +export declare function V2PostingFinancialDataFBOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingFinancialDataFBOV2; +export declare function V2PostingFinancialDataFBOV2ToJSON(value?: V2PostingFinancialDataFBOV2 | null): any; diff --git a/dist/models/V2PostingFinancialDataFBOV2.js b/dist/models/V2PostingFinancialDataFBOV2.js new file mode 100644 index 0000000..469642e --- /dev/null +++ b/dist/models/V2PostingFinancialDataFBOV2.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingFinancialDataFBOV2 = instanceOfV2PostingFinancialDataFBOV2; +exports.V2PostingFinancialDataFBOV2FromJSON = V2PostingFinancialDataFBOV2FromJSON; +exports.V2PostingFinancialDataFBOV2FromJSONTyped = V2PostingFinancialDataFBOV2FromJSONTyped; +exports.V2PostingFinancialDataFBOV2ToJSON = V2PostingFinancialDataFBOV2ToJSON; +const PostingFinancialDataProductV2_1 = require("./PostingFinancialDataProductV2"); +/** + * Check if a given object implements the V2PostingFinancialDataFBOV2 interface. + */ +function instanceOfV2PostingFinancialDataFBOV2(value) { + return true; +} +function V2PostingFinancialDataFBOV2FromJSON(json) { + return V2PostingFinancialDataFBOV2FromJSONTyped(json, false); +} +function V2PostingFinancialDataFBOV2FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProductV2_1.PostingFinancialDataProductV2FromJSON)), + }; +} +function V2PostingFinancialDataFBOV2ToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProductV2_1.PostingFinancialDataProductV2ToJSON)), + }; +} diff --git a/dist/models/V2PostingProduct.d.ts b/dist/models/V2PostingProduct.d.ts new file mode 100644 index 0000000..95b845f --- /dev/null +++ b/dist/models/V2PostingProduct.d.ts @@ -0,0 +1,85 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2PostingProduct + */ +export interface V2PostingProduct { + /** + * Коды активации для услуг и цифровых товаров. + * @type {Array} + * @memberof V2PostingProduct + */ + digital_codes?: Array; + /** + * Название товара. + * @type {string} + * @memberof V2PostingProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2PostingProduct + */ + offer_id?: string; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V2PostingProduct + */ + currency_code?: string; + /** + * Цена товара. + * @type {string} + * @memberof V2PostingProduct + */ + price?: string; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof V2PostingProduct + */ + is_marketplace_buyout?: boolean; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof V2PostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2PostingProduct + */ + sku?: number; +} +/** + * Check if a given object implements the V2PostingProduct interface. + */ +export declare function instanceOfV2PostingProduct(value: object): value is V2PostingProduct; +export declare function V2PostingProductFromJSON(json: any): V2PostingProduct; +export declare function V2PostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2PostingProduct; +export declare function V2PostingProductToJSON(value?: V2PostingProduct | null): any; diff --git a/dist/models/V2PostingProduct.js b/dist/models/V2PostingProduct.js new file mode 100644 index 0000000..79630e4 --- /dev/null +++ b/dist/models/V2PostingProduct.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2PostingProduct = instanceOfV2PostingProduct; +exports.V2PostingProductFromJSON = V2PostingProductFromJSON; +exports.V2PostingProductFromJSONTyped = V2PostingProductFromJSONTyped; +exports.V2PostingProductToJSON = V2PostingProductToJSON; +/** + * Check if a given object implements the V2PostingProduct interface. + */ +function instanceOfV2PostingProduct(value) { + return true; +} +function V2PostingProductFromJSON(json) { + return V2PostingProductFromJSONTyped(json, false); +} +function V2PostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'digital_codes': json['digital_codes'] == null ? undefined : json['digital_codes'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V2PostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'digital_codes': value['digital_codes'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'currency_code': value['currency_code'], + 'price': value['price'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'quantity': value['quantity'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V2Product.d.ts b/dist/models/V2Product.d.ts new file mode 100644 index 0000000..4b87410 --- /dev/null +++ b/dist/models/V2Product.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о товаре. + * @export + * @interface V2Product + */ +export interface V2Product { + /** + * Название товара. + * @type {string} + * @memberof V2Product + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2Product + */ + offer_id?: string; + /** + * Валюта ваших цен. Cовпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V2Product + */ + currency_code?: string; + /** + * Цена товара. + * @type {number} + * @memberof V2Product + */ + price?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V2Product + */ + sku?: number; +} +/** + * Check if a given object implements the V2Product interface. + */ +export declare function instanceOfV2Product(value: object): value is V2Product; +export declare function V2ProductFromJSON(json: any): V2Product; +export declare function V2ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2Product; +export declare function V2ProductToJSON(value?: V2Product | null): any; diff --git a/dist/models/V2Product.js b/dist/models/V2Product.js new file mode 100644 index 0000000..6a71f8a --- /dev/null +++ b/dist/models/V2Product.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2Product = instanceOfV2Product; +exports.V2ProductFromJSON = V2ProductFromJSON; +exports.V2ProductFromJSONTyped = V2ProductFromJSONTyped; +exports.V2ProductToJSON = V2ProductToJSON; +/** + * Check if a given object implements the V2Product interface. + */ +function instanceOfV2Product(value) { + return true; +} +function V2ProductFromJSON(json) { + return V2ProductFromJSONTyped(json, false); +} +function V2ProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'price': json['price'] == null ? undefined : json['price'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V2ProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'currency_code': value['currency_code'], + 'price': value['price'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V2ProductCertificateAccordanceTypesResponse.d.ts b/dist/models/V2ProductCertificateAccordanceTypesResponse.d.ts new file mode 100644 index 0000000..c2ede62 --- /dev/null +++ b/dist/models/V2ProductCertificateAccordanceTypesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ProductCertificateAccordanceTypesResponseResult } from './V2ProductCertificateAccordanceTypesResponseResult'; +/** + * + * @export + * @interface V2ProductCertificateAccordanceTypesResponse + */ +export interface V2ProductCertificateAccordanceTypesResponse { + /** + * + * @type {V2ProductCertificateAccordanceTypesResponseResult} + * @memberof V2ProductCertificateAccordanceTypesResponse + */ + result?: V2ProductCertificateAccordanceTypesResponseResult; +} +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponse interface. + */ +export declare function instanceOfV2ProductCertificateAccordanceTypesResponse(value: object): value is V2ProductCertificateAccordanceTypesResponse; +export declare function V2ProductCertificateAccordanceTypesResponseFromJSON(json: any): V2ProductCertificateAccordanceTypesResponse; +export declare function V2ProductCertificateAccordanceTypesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificateAccordanceTypesResponse; +export declare function V2ProductCertificateAccordanceTypesResponseToJSON(value?: V2ProductCertificateAccordanceTypesResponse | null): any; diff --git a/dist/models/V2ProductCertificateAccordanceTypesResponse.js b/dist/models/V2ProductCertificateAccordanceTypesResponse.js new file mode 100644 index 0000000..82edf26 --- /dev/null +++ b/dist/models/V2ProductCertificateAccordanceTypesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductCertificateAccordanceTypesResponse = instanceOfV2ProductCertificateAccordanceTypesResponse; +exports.V2ProductCertificateAccordanceTypesResponseFromJSON = V2ProductCertificateAccordanceTypesResponseFromJSON; +exports.V2ProductCertificateAccordanceTypesResponseFromJSONTyped = V2ProductCertificateAccordanceTypesResponseFromJSONTyped; +exports.V2ProductCertificateAccordanceTypesResponseToJSON = V2ProductCertificateAccordanceTypesResponseToJSON; +const V2ProductCertificateAccordanceTypesResponseResult_1 = require("./V2ProductCertificateAccordanceTypesResponseResult"); +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponse interface. + */ +function instanceOfV2ProductCertificateAccordanceTypesResponse(value) { + return true; +} +function V2ProductCertificateAccordanceTypesResponseFromJSON(json) { + return V2ProductCertificateAccordanceTypesResponseFromJSONTyped(json, false); +} +function V2ProductCertificateAccordanceTypesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V2ProductCertificateAccordanceTypesResponseResult_1.V2ProductCertificateAccordanceTypesResponseResultFromJSON)(json['result']), + }; +} +function V2ProductCertificateAccordanceTypesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V2ProductCertificateAccordanceTypesResponseResult_1.V2ProductCertificateAccordanceTypesResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V2ProductCertificateAccordanceTypesResponseResult.d.ts b/dist/models/V2ProductCertificateAccordanceTypesResponseResult.d.ts new file mode 100644 index 0000000..c9ab1cb --- /dev/null +++ b/dist/models/V2ProductCertificateAccordanceTypesResponseResult.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ProductCertificateAccordanceTypesResponseType } from './V2ProductCertificateAccordanceTypesResponseType'; +/** + * Список типов соответствия требованиям. + * @export + * @interface V2ProductCertificateAccordanceTypesResponseResult + */ +export interface V2ProductCertificateAccordanceTypesResponseResult { + /** + * Основные типы соответствия требованиям. + * @type {Array} + * @memberof V2ProductCertificateAccordanceTypesResponseResult + */ + base?: Array; + /** + * Типов соответствия требованиям, относящиеся к опасным товарам. + * @type {Array} + * @memberof V2ProductCertificateAccordanceTypesResponseResult + */ + hazard?: Array; +} +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponseResult interface. + */ +export declare function instanceOfV2ProductCertificateAccordanceTypesResponseResult(value: object): value is V2ProductCertificateAccordanceTypesResponseResult; +export declare function V2ProductCertificateAccordanceTypesResponseResultFromJSON(json: any): V2ProductCertificateAccordanceTypesResponseResult; +export declare function V2ProductCertificateAccordanceTypesResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificateAccordanceTypesResponseResult; +export declare function V2ProductCertificateAccordanceTypesResponseResultToJSON(value?: V2ProductCertificateAccordanceTypesResponseResult | null): any; diff --git a/dist/models/V2ProductCertificateAccordanceTypesResponseResult.js b/dist/models/V2ProductCertificateAccordanceTypesResponseResult.js new file mode 100644 index 0000000..c619f22 --- /dev/null +++ b/dist/models/V2ProductCertificateAccordanceTypesResponseResult.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductCertificateAccordanceTypesResponseResult = instanceOfV2ProductCertificateAccordanceTypesResponseResult; +exports.V2ProductCertificateAccordanceTypesResponseResultFromJSON = V2ProductCertificateAccordanceTypesResponseResultFromJSON; +exports.V2ProductCertificateAccordanceTypesResponseResultFromJSONTyped = V2ProductCertificateAccordanceTypesResponseResultFromJSONTyped; +exports.V2ProductCertificateAccordanceTypesResponseResultToJSON = V2ProductCertificateAccordanceTypesResponseResultToJSON; +const V2ProductCertificateAccordanceTypesResponseType_1 = require("./V2ProductCertificateAccordanceTypesResponseType"); +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponseResult interface. + */ +function instanceOfV2ProductCertificateAccordanceTypesResponseResult(value) { + return true; +} +function V2ProductCertificateAccordanceTypesResponseResultFromJSON(json) { + return V2ProductCertificateAccordanceTypesResponseResultFromJSONTyped(json, false); +} +function V2ProductCertificateAccordanceTypesResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'base': json['base'] == null ? undefined : (json['base'].map(V2ProductCertificateAccordanceTypesResponseType_1.V2ProductCertificateAccordanceTypesResponseTypeFromJSON)), + 'hazard': json['hazard'] == null ? undefined : (json['hazard'].map(V2ProductCertificateAccordanceTypesResponseType_1.V2ProductCertificateAccordanceTypesResponseTypeFromJSON)), + }; +} +function V2ProductCertificateAccordanceTypesResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'base': value['base'] == null ? undefined : (value['base'].map(V2ProductCertificateAccordanceTypesResponseType_1.V2ProductCertificateAccordanceTypesResponseTypeToJSON)), + 'hazard': value['hazard'] == null ? undefined : (value['hazard'].map(V2ProductCertificateAccordanceTypesResponseType_1.V2ProductCertificateAccordanceTypesResponseTypeToJSON)), + }; +} diff --git a/dist/models/V2ProductCertificateAccordanceTypesResponseType.d.ts b/dist/models/V2ProductCertificateAccordanceTypesResponseType.d.ts new file mode 100644 index 0000000..30ded00 --- /dev/null +++ b/dist/models/V2ProductCertificateAccordanceTypesResponseType.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ProductCertificateAccordanceTypesResponseType + */ +export interface V2ProductCertificateAccordanceTypesResponseType { + /** + * Код типа соответствия требованиям. + * @type {string} + * @memberof V2ProductCertificateAccordanceTypesResponseType + */ + code?: string; + /** + * Описание типа соответствия требованиям. + * @type {string} + * @memberof V2ProductCertificateAccordanceTypesResponseType + */ + title?: string; +} +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponseType interface. + */ +export declare function instanceOfV2ProductCertificateAccordanceTypesResponseType(value: object): value is V2ProductCertificateAccordanceTypesResponseType; +export declare function V2ProductCertificateAccordanceTypesResponseTypeFromJSON(json: any): V2ProductCertificateAccordanceTypesResponseType; +export declare function V2ProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificateAccordanceTypesResponseType; +export declare function V2ProductCertificateAccordanceTypesResponseTypeToJSON(value?: V2ProductCertificateAccordanceTypesResponseType | null): any; diff --git a/dist/models/V2ProductCertificateAccordanceTypesResponseType.js b/dist/models/V2ProductCertificateAccordanceTypesResponseType.js new file mode 100644 index 0000000..308c73a --- /dev/null +++ b/dist/models/V2ProductCertificateAccordanceTypesResponseType.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductCertificateAccordanceTypesResponseType = instanceOfV2ProductCertificateAccordanceTypesResponseType; +exports.V2ProductCertificateAccordanceTypesResponseTypeFromJSON = V2ProductCertificateAccordanceTypesResponseTypeFromJSON; +exports.V2ProductCertificateAccordanceTypesResponseTypeFromJSONTyped = V2ProductCertificateAccordanceTypesResponseTypeFromJSONTyped; +exports.V2ProductCertificateAccordanceTypesResponseTypeToJSON = V2ProductCertificateAccordanceTypesResponseTypeToJSON; +/** + * Check if a given object implements the V2ProductCertificateAccordanceTypesResponseType interface. + */ +function instanceOfV2ProductCertificateAccordanceTypesResponseType(value) { + return true; +} +function V2ProductCertificateAccordanceTypesResponseTypeFromJSON(json) { + return V2ProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json, false); +} +function V2ProductCertificateAccordanceTypesResponseTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'] == null ? undefined : json['code'], + 'title': json['title'] == null ? undefined : json['title'], + }; +} +function V2ProductCertificateAccordanceTypesResponseTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + 'title': value['title'], + }; +} diff --git a/dist/models/V2ProductCertificationListRequest.d.ts b/dist/models/V2ProductCertificationListRequest.d.ts new file mode 100644 index 0000000..8947ab0 --- /dev/null +++ b/dist/models/V2ProductCertificationListRequest.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ProductCertificationListRequest + */ +export interface V2ProductCertificationListRequest { + /** + * Номер страницы. + * @type {number} + * @memberof V2ProductCertificationListRequest + */ + page: number; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V2ProductCertificationListRequest + */ + page_size: number; +} +/** + * Check if a given object implements the V2ProductCertificationListRequest interface. + */ +export declare function instanceOfV2ProductCertificationListRequest(value: object): value is V2ProductCertificationListRequest; +export declare function V2ProductCertificationListRequestFromJSON(json: any): V2ProductCertificationListRequest; +export declare function V2ProductCertificationListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificationListRequest; +export declare function V2ProductCertificationListRequestToJSON(value?: V2ProductCertificationListRequest | null): any; diff --git a/dist/models/V2ProductCertificationListRequest.js b/dist/models/V2ProductCertificationListRequest.js new file mode 100644 index 0000000..d9aa9d8 --- /dev/null +++ b/dist/models/V2ProductCertificationListRequest.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductCertificationListRequest = instanceOfV2ProductCertificationListRequest; +exports.V2ProductCertificationListRequestFromJSON = V2ProductCertificationListRequestFromJSON; +exports.V2ProductCertificationListRequestFromJSONTyped = V2ProductCertificationListRequestFromJSONTyped; +exports.V2ProductCertificationListRequestToJSON = V2ProductCertificationListRequestToJSON; +/** + * Check if a given object implements the V2ProductCertificationListRequest interface. + */ +function instanceOfV2ProductCertificationListRequest(value) { + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +function V2ProductCertificationListRequestFromJSON(json) { + return V2ProductCertificationListRequestFromJSONTyped(json, false); +} +function V2ProductCertificationListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'page': json['page'], + 'page_size': json['page_size'], + }; +} +function V2ProductCertificationListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'page': value['page'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/models/V2ProductCertificationListResponse.d.ts b/dist/models/V2ProductCertificationListResponse.d.ts new file mode 100644 index 0000000..fe3f846 --- /dev/null +++ b/dist/models/V2ProductCertificationListResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductCertificationListResponseCertificationv2 } from './ProductCertificationListResponseCertificationv2'; +/** + * + * @export + * @interface V2ProductCertificationListResponse + */ +export interface V2ProductCertificationListResponse { + /** + * Информация о сертифицируемых категориях. + * @type {Array} + * @memberof V2ProductCertificationListResponse + */ + certification?: Array; + /** + * Всего категорий. + * @type {number} + * @memberof V2ProductCertificationListResponse + */ + total?: number; +} +/** + * Check if a given object implements the V2ProductCertificationListResponse interface. + */ +export declare function instanceOfV2ProductCertificationListResponse(value: object): value is V2ProductCertificationListResponse; +export declare function V2ProductCertificationListResponseFromJSON(json: any): V2ProductCertificationListResponse; +export declare function V2ProductCertificationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductCertificationListResponse; +export declare function V2ProductCertificationListResponseToJSON(value?: V2ProductCertificationListResponse | null): any; diff --git a/dist/models/V2ProductCertificationListResponse.js b/dist/models/V2ProductCertificationListResponse.js new file mode 100644 index 0000000..2e7fffc --- /dev/null +++ b/dist/models/V2ProductCertificationListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductCertificationListResponse = instanceOfV2ProductCertificationListResponse; +exports.V2ProductCertificationListResponseFromJSON = V2ProductCertificationListResponseFromJSON; +exports.V2ProductCertificationListResponseFromJSONTyped = V2ProductCertificationListResponseFromJSONTyped; +exports.V2ProductCertificationListResponseToJSON = V2ProductCertificationListResponseToJSON; +const ProductCertificationListResponseCertificationv2_1 = require("./ProductCertificationListResponseCertificationv2"); +/** + * Check if a given object implements the V2ProductCertificationListResponse interface. + */ +function instanceOfV2ProductCertificationListResponse(value) { + return true; +} +function V2ProductCertificationListResponseFromJSON(json) { + return V2ProductCertificationListResponseFromJSONTyped(json, false); +} +function V2ProductCertificationListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'certification': json['certification'] == null ? undefined : (json['certification'].map(ProductCertificationListResponseCertificationv2_1.ProductCertificationListResponseCertificationv2FromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V2ProductCertificationListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'certification': value['certification'] == null ? undefined : (value['certification'].map(ProductCertificationListResponseCertificationv2_1.ProductCertificationListResponseCertificationv2ToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/V2ProductInfoPicturesRequest.d.ts b/dist/models/V2ProductInfoPicturesRequest.d.ts new file mode 100644 index 0000000..4c49bbb --- /dev/null +++ b/dist/models/V2ProductInfoPicturesRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ProductInfoPicturesRequest + */ +export interface V2ProductInfoPicturesRequest { + /** + * Список идентификаторов товаров в системе Ozon — `product_id`. + * @type {Array} + * @memberof V2ProductInfoPicturesRequest + */ + product_id: Array; +} +/** + * Check if a given object implements the V2ProductInfoPicturesRequest interface. + */ +export declare function instanceOfV2ProductInfoPicturesRequest(value: object): value is V2ProductInfoPicturesRequest; +export declare function V2ProductInfoPicturesRequestFromJSON(json: any): V2ProductInfoPicturesRequest; +export declare function V2ProductInfoPicturesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductInfoPicturesRequest; +export declare function V2ProductInfoPicturesRequestToJSON(value?: V2ProductInfoPicturesRequest | null): any; diff --git a/dist/models/V2ProductInfoPicturesRequest.js b/dist/models/V2ProductInfoPicturesRequest.js new file mode 100644 index 0000000..31491ea --- /dev/null +++ b/dist/models/V2ProductInfoPicturesRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductInfoPicturesRequest = instanceOfV2ProductInfoPicturesRequest; +exports.V2ProductInfoPicturesRequestFromJSON = V2ProductInfoPicturesRequestFromJSON; +exports.V2ProductInfoPicturesRequestFromJSONTyped = V2ProductInfoPicturesRequestFromJSONTyped; +exports.V2ProductInfoPicturesRequestToJSON = V2ProductInfoPicturesRequestToJSON; +/** + * Check if a given object implements the V2ProductInfoPicturesRequest interface. + */ +function instanceOfV2ProductInfoPicturesRequest(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function V2ProductInfoPicturesRequestFromJSON(json) { + return V2ProductInfoPicturesRequestFromJSONTyped(json, false); +} +function V2ProductInfoPicturesRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'], + }; +} +function V2ProductInfoPicturesRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V2ProductInfoPicturesResponse.d.ts b/dist/models/V2ProductInfoPicturesResponse.d.ts new file mode 100644 index 0000000..0b2f684 --- /dev/null +++ b/dist/models/V2ProductInfoPicturesResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ProductInfoPicturesResponseItem } from './V2ProductInfoPicturesResponseItem'; +/** + * + * @export + * @interface V2ProductInfoPicturesResponse + */ +export interface V2ProductInfoPicturesResponse { + /** + * Изображения товаров. + * @type {Array} + * @memberof V2ProductInfoPicturesResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V2ProductInfoPicturesResponse interface. + */ +export declare function instanceOfV2ProductInfoPicturesResponse(value: object): value is V2ProductInfoPicturesResponse; +export declare function V2ProductInfoPicturesResponseFromJSON(json: any): V2ProductInfoPicturesResponse; +export declare function V2ProductInfoPicturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductInfoPicturesResponse; +export declare function V2ProductInfoPicturesResponseToJSON(value?: V2ProductInfoPicturesResponse | null): any; diff --git a/dist/models/V2ProductInfoPicturesResponse.js b/dist/models/V2ProductInfoPicturesResponse.js new file mode 100644 index 0000000..7e67748 --- /dev/null +++ b/dist/models/V2ProductInfoPicturesResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductInfoPicturesResponse = instanceOfV2ProductInfoPicturesResponse; +exports.V2ProductInfoPicturesResponseFromJSON = V2ProductInfoPicturesResponseFromJSON; +exports.V2ProductInfoPicturesResponseFromJSONTyped = V2ProductInfoPicturesResponseFromJSONTyped; +exports.V2ProductInfoPicturesResponseToJSON = V2ProductInfoPicturesResponseToJSON; +const V2ProductInfoPicturesResponseItem_1 = require("./V2ProductInfoPicturesResponseItem"); +/** + * Check if a given object implements the V2ProductInfoPicturesResponse interface. + */ +function instanceOfV2ProductInfoPicturesResponse(value) { + return true; +} +function V2ProductInfoPicturesResponseFromJSON(json) { + return V2ProductInfoPicturesResponseFromJSONTyped(json, false); +} +function V2ProductInfoPicturesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V2ProductInfoPicturesResponseItem_1.V2ProductInfoPicturesResponseItemFromJSON)), + }; +} +function V2ProductInfoPicturesResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V2ProductInfoPicturesResponseItem_1.V2ProductInfoPicturesResponseItemToJSON)), + }; +} diff --git a/dist/models/V2ProductInfoPicturesResponseError.d.ts b/dist/models/V2ProductInfoPicturesResponseError.d.ts new file mode 100644 index 0000000..d810be5 --- /dev/null +++ b/dist/models/V2ProductInfoPicturesResponseError.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ProductInfoPicturesResponseError + */ +export interface V2ProductInfoPicturesResponseError { + /** + * Описание ошибки. + * @type {string} + * @memberof V2ProductInfoPicturesResponseError + */ + message?: string; + /** + * Ссылка на изображение. + * @type {string} + * @memberof V2ProductInfoPicturesResponseError + */ + url?: string; +} +/** + * Check if a given object implements the V2ProductInfoPicturesResponseError interface. + */ +export declare function instanceOfV2ProductInfoPicturesResponseError(value: object): value is V2ProductInfoPicturesResponseError; +export declare function V2ProductInfoPicturesResponseErrorFromJSON(json: any): V2ProductInfoPicturesResponseError; +export declare function V2ProductInfoPicturesResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductInfoPicturesResponseError; +export declare function V2ProductInfoPicturesResponseErrorToJSON(value?: V2ProductInfoPicturesResponseError | null): any; diff --git a/dist/models/V2ProductInfoPicturesResponseError.js b/dist/models/V2ProductInfoPicturesResponseError.js new file mode 100644 index 0000000..f604a15 --- /dev/null +++ b/dist/models/V2ProductInfoPicturesResponseError.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductInfoPicturesResponseError = instanceOfV2ProductInfoPicturesResponseError; +exports.V2ProductInfoPicturesResponseErrorFromJSON = V2ProductInfoPicturesResponseErrorFromJSON; +exports.V2ProductInfoPicturesResponseErrorFromJSONTyped = V2ProductInfoPicturesResponseErrorFromJSONTyped; +exports.V2ProductInfoPicturesResponseErrorToJSON = V2ProductInfoPicturesResponseErrorToJSON; +/** + * Check if a given object implements the V2ProductInfoPicturesResponseError interface. + */ +function instanceOfV2ProductInfoPicturesResponseError(value) { + return true; +} +function V2ProductInfoPicturesResponseErrorFromJSON(json) { + return V2ProductInfoPicturesResponseErrorFromJSONTyped(json, false); +} +function V2ProductInfoPicturesResponseErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'] == null ? undefined : json['message'], + 'url': json['url'] == null ? undefined : json['url'], + }; +} +function V2ProductInfoPicturesResponseErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + 'url': value['url'], + }; +} diff --git a/dist/models/V2ProductInfoPicturesResponseItem.d.ts b/dist/models/V2ProductInfoPicturesResponseItem.d.ts new file mode 100644 index 0000000..88d52f1 --- /dev/null +++ b/dist/models/V2ProductInfoPicturesResponseItem.d.ts @@ -0,0 +1,56 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ProductInfoPicturesResponseError } from './V2ProductInfoPicturesResponseError'; +/** + * + * @export + * @interface V2ProductInfoPicturesResponseItem + */ +export interface V2ProductInfoPicturesResponseItem { + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V2ProductInfoPicturesResponseItem + */ + product_id?: number; + /** + * Ссылка на главное изображение. + * @type {Array} + * @memberof V2ProductInfoPicturesResponseItem + */ + primary_photo?: Array; + /** + * Ссылки на фотографии товара. + * @type {Array} + * @memberof V2ProductInfoPicturesResponseItem + */ + photo?: Array; + /** + * Ссылки на загруженные образцы цвета. + * @type {Array} + * @memberof V2ProductInfoPicturesResponseItem + */ + color_photo?: Array; + /** + * Список ошибок по изображениям товара. + * @type {Array} + * @memberof V2ProductInfoPicturesResponseItem + */ + errors?: Array; +} +/** + * Check if a given object implements the V2ProductInfoPicturesResponseItem interface. + */ +export declare function instanceOfV2ProductInfoPicturesResponseItem(value: object): value is V2ProductInfoPicturesResponseItem; +export declare function V2ProductInfoPicturesResponseItemFromJSON(json: any): V2ProductInfoPicturesResponseItem; +export declare function V2ProductInfoPicturesResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ProductInfoPicturesResponseItem; +export declare function V2ProductInfoPicturesResponseItemToJSON(value?: V2ProductInfoPicturesResponseItem | null): any; diff --git a/dist/models/V2ProductInfoPicturesResponseItem.js b/dist/models/V2ProductInfoPicturesResponseItem.js new file mode 100644 index 0000000..459a26e --- /dev/null +++ b/dist/models/V2ProductInfoPicturesResponseItem.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ProductInfoPicturesResponseItem = instanceOfV2ProductInfoPicturesResponseItem; +exports.V2ProductInfoPicturesResponseItemFromJSON = V2ProductInfoPicturesResponseItemFromJSON; +exports.V2ProductInfoPicturesResponseItemFromJSONTyped = V2ProductInfoPicturesResponseItemFromJSONTyped; +exports.V2ProductInfoPicturesResponseItemToJSON = V2ProductInfoPicturesResponseItemToJSON; +const V2ProductInfoPicturesResponseError_1 = require("./V2ProductInfoPicturesResponseError"); +/** + * Check if a given object implements the V2ProductInfoPicturesResponseItem interface. + */ +function instanceOfV2ProductInfoPicturesResponseItem(value) { + return true; +} +function V2ProductInfoPicturesResponseItemFromJSON(json) { + return V2ProductInfoPicturesResponseItemFromJSONTyped(json, false); +} +function V2ProductInfoPicturesResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'primary_photo': json['primary_photo'] == null ? undefined : json['primary_photo'], + 'photo': json['photo'] == null ? undefined : json['photo'], + 'color_photo': json['color_photo'] == null ? undefined : json['color_photo'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(V2ProductInfoPicturesResponseError_1.V2ProductInfoPicturesResponseErrorFromJSON)), + }; +} +function V2ProductInfoPicturesResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'product_id': value['product_id'], + 'primary_photo': value['primary_photo'], + 'photo': value['photo'], + 'color_photo': value['color_photo'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(V2ProductInfoPicturesResponseError_1.V2ProductInfoPicturesResponseErrorToJSON)), + }; +} diff --git a/dist/models/V2ReportReturnsCreateRequest.d.ts b/dist/models/V2ReportReturnsCreateRequest.d.ts new file mode 100644 index 0000000..2c7d850 --- /dev/null +++ b/dist/models/V2ReportReturnsCreateRequest.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ReportReturnsCreateRequestFilter } from './V2ReportReturnsCreateRequestFilter'; +/** + * + * @export + * @interface V2ReportReturnsCreateRequest + */ +export interface V2ReportReturnsCreateRequest { + /** + * + * @type {V2ReportReturnsCreateRequestFilter} + * @memberof V2ReportReturnsCreateRequest + */ + filter: V2ReportReturnsCreateRequestFilter; + /** + * Язык ответа: + * - `RU` — русский, + * - `EN` — английский. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequest + */ + language?: string; +} +/** + * Check if a given object implements the V2ReportReturnsCreateRequest interface. + */ +export declare function instanceOfV2ReportReturnsCreateRequest(value: object): value is V2ReportReturnsCreateRequest; +export declare function V2ReportReturnsCreateRequestFromJSON(json: any): V2ReportReturnsCreateRequest; +export declare function V2ReportReturnsCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReportReturnsCreateRequest; +export declare function V2ReportReturnsCreateRequestToJSON(value?: V2ReportReturnsCreateRequest | null): any; diff --git a/dist/models/V2ReportReturnsCreateRequest.js b/dist/models/V2ReportReturnsCreateRequest.js new file mode 100644 index 0000000..10d5ce2 --- /dev/null +++ b/dist/models/V2ReportReturnsCreateRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReportReturnsCreateRequest = instanceOfV2ReportReturnsCreateRequest; +exports.V2ReportReturnsCreateRequestFromJSON = V2ReportReturnsCreateRequestFromJSON; +exports.V2ReportReturnsCreateRequestFromJSONTyped = V2ReportReturnsCreateRequestFromJSONTyped; +exports.V2ReportReturnsCreateRequestToJSON = V2ReportReturnsCreateRequestToJSON; +/** + * Check if a given object implements the V2ReportReturnsCreateRequest interface. + */ +function instanceOfV2ReportReturnsCreateRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + return true; +} +function V2ReportReturnsCreateRequestFromJSON(json) { + return V2ReportReturnsCreateRequestFromJSONTyped(json, false); +} +function V2ReportReturnsCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'], + 'language': json['language'] == null ? undefined : json['language'], + }; +} +function V2ReportReturnsCreateRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': value['filter'], + 'language': value['language'], + }; +} diff --git a/dist/models/V2ReportReturnsCreateRequestFilter.d.ts b/dist/models/V2ReportReturnsCreateRequestFilter.d.ts new file mode 100644 index 0000000..8346063 --- /dev/null +++ b/dist/models/V2ReportReturnsCreateRequestFilter.d.ts @@ -0,0 +1,143 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр. + * @export + * @interface V2ReportReturnsCreateRequestFilter + */ +export interface V2ReportReturnsCreateRequestFilter { + /** + * Фильтр по схеме работы: + * - `FBS` — возвраты на свой склад. + * - `FBO` — возвраты на склад маркетплейса. + * - `ALL` — все возвраты. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequestFilter + */ + delivery_schema?: V2ReportReturnsCreateRequestFilterDeliverySchemaEnum; + /** + * Дата, с которой данные отображаются в отчёте. + * + * Доступно только за последние три месяца. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequestFilter + */ + date_from: string; + /** + * Дата, по которую данные отображаются в отчёте. + * + * Доступно только за последние три месяца. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequestFilter + */ + date_to: string; + /** + * Фильтр по статусу возврата: + * - `DisputeOpened` — открыт спор с покупателем; + * - `OnSellerApproval` — на согласовании у продавца; + * - `ArrivedAtReturnPlace` — в пункте выдачи; + * - `OnSellerClarification` — на уточнении у продавца; + * - `OnSellerClarificationAfterPartialCompensation` — на уточнении у продавца после частичной компенсации; + * - `OfferedPartialCompensation` — предложена частичная компенсация; + * - `ReturnMoneyApproved` — одобрен возврат денег; + * - `PartialCompensationReturned` — вернули часть денег; + * - `CancelledDisputeNotOpen` — возврат отклонён, спор не открыт; + * - `Rejected` — заявка отклонена; + * - `CrmRejected` — заявка отклонена Ozon; + * - `Cancelled` — заявка отменена; + * - `Approved` — заявка одобрена продавцом; + * - `ApprovedByOzon` — заявка одобрена Ozon; + * - `ReceivedBySeller` — продавец получил возврат; + * - `MovingToSeller` — возврат на пути к продавцу; + * - `ReturnCompensated` — продавец получил компенсацию; + * - `ReturningToSellerByCourier` — курьер везёт возврат продавцу; + * - `Utilizing` — на утилизации; + * - `Utilized` — утилизирован; + * - `MoneyReturned` — покупателю вернули всю сумму; + * - `PartialCompensationInProcess` — одобрен частичный возврат денег; + * - `DisputeYouOpened` — продавец открыл спор; + * - `CompensationRejected` — отказано в компенсации; + * - `DisputeOpening` — обращение в поддержку отправлено; + * - `CompensationOffered` — ожидает вашего решения по компенсации; + * - `WaitingCompensation` — ожидает компенсации; + * - `SendingError` — ошибка при отправке обращения в поддержку; + * - `CompensationRejectedBySla` — истёк срок решения; + * - `CompensationRejectedBySeller` — продавец отказался от компенсации; + * - `MovingToOzon` — едет на склад Ozon; + * - `ReturnedToOzon` — на складе Ozon; + * - `MoneyReturnedBySystem` — быстрый возврат; + * - `WaitingShipment` — ожидает отправки. + * + * @type {string} + * @memberof V2ReportReturnsCreateRequestFilter + */ + status: V2ReportReturnsCreateRequestFilterStatusEnum; +} +/** + * @export + */ +export declare const V2ReportReturnsCreateRequestFilterDeliverySchemaEnum: { + readonly FBS: "FBS"; + readonly FBO: "FBO"; + readonly ALL: "ALL"; +}; +export type V2ReportReturnsCreateRequestFilterDeliverySchemaEnum = typeof V2ReportReturnsCreateRequestFilterDeliverySchemaEnum[keyof typeof V2ReportReturnsCreateRequestFilterDeliverySchemaEnum]; +/** + * @export + */ +export declare const V2ReportReturnsCreateRequestFilterStatusEnum: { + readonly DisputeOpened: "DisputeOpened"; + readonly OnSellerApproval: "OnSellerApproval"; + readonly ArrivedAtReturnPlace: "ArrivedAtReturnPlace"; + readonly OnSellerClarification: "OnSellerClarification"; + readonly OnSellerClarificationAfterPartialCompensation: "OnSellerClarificationAfterPartialCompensation"; + readonly OfferedPartialCompensation: "OfferedPartialCompensation"; + readonly ReturnMoneyApproved: "ReturnMoneyApproved"; + readonly PartialCompensationReturned: "PartialCompensationReturned"; + readonly CancelledDisputeNotOpen: "CancelledDisputeNotOpen"; + readonly Rejected: "Rejected"; + readonly CrmRejected: "CrmRejected"; + readonly Cancelled: "Cancelled"; + readonly Approved: "Approved"; + readonly ApprovedByOzon: "ApprovedByOzon"; + readonly ReceivedBySeller: "ReceivedBySeller"; + readonly MovingToSeller: "MovingToSeller"; + readonly ReturnCompensated: "ReturnCompensated"; + readonly ReturningToSellerByCourier: "ReturningToSellerByCourier"; + readonly Utilizing: "Utilizing"; + readonly Utilized: "Utilized"; + readonly MoneyReturned: "MoneyReturned"; + readonly PartialCompensationInProcess: "PartialCompensationInProcess"; + readonly DisputeYouOpened: "DisputeYouOpened"; + readonly CompensationRejected: "CompensationRejected"; + readonly DisputeOpening: "DisputeOpening"; + readonly CompensationOffered: "CompensationOffered"; + readonly WaitingCompensation: "WaitingCompensation"; + readonly SendingError: "SendingError"; + readonly CompensationRejectedBySla: "CompensationRejectedBySla"; + readonly CompensationRejectedBySeller: "CompensationRejectedBySeller"; + readonly MovingToOzon: "MovingToOzon"; + readonly ReturnedToOzon: "ReturnedToOzon"; + readonly MoneyReturnedBySystem: "MoneyReturnedBySystem"; + readonly WaitingShipment: "WaitingShipment"; +}; +export type V2ReportReturnsCreateRequestFilterStatusEnum = typeof V2ReportReturnsCreateRequestFilterStatusEnum[keyof typeof V2ReportReturnsCreateRequestFilterStatusEnum]; +/** + * Check if a given object implements the V2ReportReturnsCreateRequestFilter interface. + */ +export declare function instanceOfV2ReportReturnsCreateRequestFilter(value: object): value is V2ReportReturnsCreateRequestFilter; +export declare function V2ReportReturnsCreateRequestFilterFromJSON(json: any): V2ReportReturnsCreateRequestFilter; +export declare function V2ReportReturnsCreateRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReportReturnsCreateRequestFilter; +export declare function V2ReportReturnsCreateRequestFilterToJSON(value?: V2ReportReturnsCreateRequestFilter | null): any; diff --git a/dist/models/V2ReportReturnsCreateRequestFilter.js b/dist/models/V2ReportReturnsCreateRequestFilter.js new file mode 100644 index 0000000..ebc7089 --- /dev/null +++ b/dist/models/V2ReportReturnsCreateRequestFilter.js @@ -0,0 +1,104 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V2ReportReturnsCreateRequestFilterStatusEnum = exports.V2ReportReturnsCreateRequestFilterDeliverySchemaEnum = void 0; +exports.instanceOfV2ReportReturnsCreateRequestFilter = instanceOfV2ReportReturnsCreateRequestFilter; +exports.V2ReportReturnsCreateRequestFilterFromJSON = V2ReportReturnsCreateRequestFilterFromJSON; +exports.V2ReportReturnsCreateRequestFilterFromJSONTyped = V2ReportReturnsCreateRequestFilterFromJSONTyped; +exports.V2ReportReturnsCreateRequestFilterToJSON = V2ReportReturnsCreateRequestFilterToJSON; +/** + * @export + */ +exports.V2ReportReturnsCreateRequestFilterDeliverySchemaEnum = { + FBS: 'FBS', + FBO: 'FBO', + ALL: 'ALL' +}; +/** + * @export + */ +exports.V2ReportReturnsCreateRequestFilterStatusEnum = { + DisputeOpened: 'DisputeOpened', + OnSellerApproval: 'OnSellerApproval', + ArrivedAtReturnPlace: 'ArrivedAtReturnPlace', + OnSellerClarification: 'OnSellerClarification', + OnSellerClarificationAfterPartialCompensation: 'OnSellerClarificationAfterPartialCompensation', + OfferedPartialCompensation: 'OfferedPartialCompensation', + ReturnMoneyApproved: 'ReturnMoneyApproved', + PartialCompensationReturned: 'PartialCompensationReturned', + CancelledDisputeNotOpen: 'CancelledDisputeNotOpen', + Rejected: 'Rejected', + CrmRejected: 'CrmRejected', + Cancelled: 'Cancelled', + Approved: 'Approved', + ApprovedByOzon: 'ApprovedByOzon', + ReceivedBySeller: 'ReceivedBySeller', + MovingToSeller: 'MovingToSeller', + ReturnCompensated: 'ReturnCompensated', + ReturningToSellerByCourier: 'ReturningToSellerByCourier', + Utilizing: 'Utilizing', + Utilized: 'Utilized', + MoneyReturned: 'MoneyReturned', + PartialCompensationInProcess: 'PartialCompensationInProcess', + DisputeYouOpened: 'DisputeYouOpened', + CompensationRejected: 'CompensationRejected', + DisputeOpening: 'DisputeOpening', + CompensationOffered: 'CompensationOffered', + WaitingCompensation: 'WaitingCompensation', + SendingError: 'SendingError', + CompensationRejectedBySla: 'CompensationRejectedBySla', + CompensationRejectedBySeller: 'CompensationRejectedBySeller', + MovingToOzon: 'MovingToOzon', + ReturnedToOzon: 'ReturnedToOzon', + MoneyReturnedBySystem: 'MoneyReturnedBySystem', + WaitingShipment: 'WaitingShipment' +}; +/** + * Check if a given object implements the V2ReportReturnsCreateRequestFilter interface. + */ +function instanceOfV2ReportReturnsCreateRequestFilter(value) { + if (!('date_from' in value) || value['date_from'] === undefined) + return false; + if (!('date_to' in value) || value['date_to'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +function V2ReportReturnsCreateRequestFilterFromJSON(json) { + return V2ReportReturnsCreateRequestFilterFromJSONTyped(json, false); +} +function V2ReportReturnsCreateRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'delivery_schema': json['delivery_schema'] == null ? undefined : json['delivery_schema'], + 'date_from': json['date_from'], + 'date_to': json['date_to'], + 'status': json['status'], + }; +} +function V2ReportReturnsCreateRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'delivery_schema': value['delivery_schema'], + 'date_from': value['date_from'], + 'date_to': value['date_to'], + 'status': value['status'], + }; +} diff --git a/dist/models/V2ReportReturnsCreateResponse.d.ts b/dist/models/V2ReportReturnsCreateResponse.d.ts new file mode 100644 index 0000000..40ff2cc --- /dev/null +++ b/dist/models/V2ReportReturnsCreateResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreateReportResponseCode } from './CreateReportResponseCode'; +/** + * + * @export + * @interface V2ReportReturnsCreateResponse + */ +export interface V2ReportReturnsCreateResponse { + /** + * + * @type {CreateReportResponseCode} + * @memberof V2ReportReturnsCreateResponse + */ + result?: CreateReportResponseCode; +} +/** + * Check if a given object implements the V2ReportReturnsCreateResponse interface. + */ +export declare function instanceOfV2ReportReturnsCreateResponse(value: object): value is V2ReportReturnsCreateResponse; +export declare function V2ReportReturnsCreateResponseFromJSON(json: any): V2ReportReturnsCreateResponse; +export declare function V2ReportReturnsCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReportReturnsCreateResponse; +export declare function V2ReportReturnsCreateResponseToJSON(value?: V2ReportReturnsCreateResponse | null): any; diff --git a/dist/models/V2ReportReturnsCreateResponse.js b/dist/models/V2ReportReturnsCreateResponse.js new file mode 100644 index 0000000..56d8f3d --- /dev/null +++ b/dist/models/V2ReportReturnsCreateResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReportReturnsCreateResponse = instanceOfV2ReportReturnsCreateResponse; +exports.V2ReportReturnsCreateResponseFromJSON = V2ReportReturnsCreateResponseFromJSON; +exports.V2ReportReturnsCreateResponseFromJSONTyped = V2ReportReturnsCreateResponseFromJSONTyped; +exports.V2ReportReturnsCreateResponseToJSON = V2ReportReturnsCreateResponseToJSON; +const CreateReportResponseCode_1 = require("./CreateReportResponseCode"); +/** + * Check if a given object implements the V2ReportReturnsCreateResponse interface. + */ +function instanceOfV2ReportReturnsCreateResponse(value) { + return true; +} +function V2ReportReturnsCreateResponseFromJSON(json) { + return V2ReportReturnsCreateResponseFromJSONTyped(json, false); +} +function V2ReportReturnsCreateResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, CreateReportResponseCode_1.CreateReportResponseCodeFromJSON)(json['result']), + }; +} +function V2ReportReturnsCreateResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, CreateReportResponseCode_1.CreateReportResponseCodeToJSON)(value['result']), + }; +} diff --git a/dist/models/V2ReturnsRfbsFilter.d.ts b/dist/models/V2ReturnsRfbsFilter.d.ts new file mode 100644 index 0000000..60a9635 --- /dev/null +++ b/dist/models/V2ReturnsRfbsFilter.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CreatedAt } from './CreatedAt'; +/** + * Фильтр. + * @export + * @interface V2ReturnsRfbsFilter + */ +export interface V2ReturnsRfbsFilter { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V2ReturnsRfbsFilter + */ + offer_id?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V2ReturnsRfbsFilter + */ + posting_number?: string; + /** + * Фильтр по статусам заявок: + * - `All` — все заявки. + * - `New` — новые. + * - `Delivering` — в пути. + * - `Checkout` — на проверке. + * - `Arbitration` — спорные. + * - `Approved` — согласованные. + * - `Rejected` — отклонённые. + * + * @type {Array} + * @memberof V2ReturnsRfbsFilter + */ + group_state?: Array; + /** + * + * @type {CreatedAt} + * @memberof V2ReturnsRfbsFilter + */ + created_at?: CreatedAt; +} +/** + * Check if a given object implements the V2ReturnsRfbsFilter interface. + */ +export declare function instanceOfV2ReturnsRfbsFilter(value: object): value is V2ReturnsRfbsFilter; +export declare function V2ReturnsRfbsFilterFromJSON(json: any): V2ReturnsRfbsFilter; +export declare function V2ReturnsRfbsFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsFilter; +export declare function V2ReturnsRfbsFilterToJSON(value?: V2ReturnsRfbsFilter | null): any; diff --git a/dist/models/V2ReturnsRfbsFilter.js b/dist/models/V2ReturnsRfbsFilter.js new file mode 100644 index 0000000..14672a7 --- /dev/null +++ b/dist/models/V2ReturnsRfbsFilter.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReturnsRfbsFilter = instanceOfV2ReturnsRfbsFilter; +exports.V2ReturnsRfbsFilterFromJSON = V2ReturnsRfbsFilterFromJSON; +exports.V2ReturnsRfbsFilterFromJSONTyped = V2ReturnsRfbsFilterFromJSONTyped; +exports.V2ReturnsRfbsFilterToJSON = V2ReturnsRfbsFilterToJSON; +const CreatedAt_1 = require("./CreatedAt"); +/** + * Check if a given object implements the V2ReturnsRfbsFilter interface. + */ +function instanceOfV2ReturnsRfbsFilter(value) { + return true; +} +function V2ReturnsRfbsFilterFromJSON(json) { + return V2ReturnsRfbsFilterFromJSONTyped(json, false); +} +function V2ReturnsRfbsFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'group_state': json['group_state'] == null ? undefined : json['group_state'], + 'created_at': json['created_at'] == null ? undefined : (0, CreatedAt_1.CreatedAtFromJSON)(json['created_at']), + }; +} +function V2ReturnsRfbsFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'posting_number': value['posting_number'], + 'group_state': value['group_state'], + 'created_at': (0, CreatedAt_1.CreatedAtToJSON)(value['created_at']), + }; +} diff --git a/dist/models/V2ReturnsRfbsGetRequest.d.ts b/dist/models/V2ReturnsRfbsGetRequest.d.ts new file mode 100644 index 0000000..f593aac --- /dev/null +++ b/dist/models/V2ReturnsRfbsGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2ReturnsRfbsGetRequest + */ +export interface V2ReturnsRfbsGetRequest { + /** + * Идентификатор заявки на возврат. Получите методом [/v2/returns/rfbs/list](#operation/RFBSReturnsAPI_ReturnsRfbsListV2). + * @type {number} + * @memberof V2ReturnsRfbsGetRequest + */ + return_id: number; +} +/** + * Check if a given object implements the V2ReturnsRfbsGetRequest interface. + */ +export declare function instanceOfV2ReturnsRfbsGetRequest(value: object): value is V2ReturnsRfbsGetRequest; +export declare function V2ReturnsRfbsGetRequestFromJSON(json: any): V2ReturnsRfbsGetRequest; +export declare function V2ReturnsRfbsGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsGetRequest; +export declare function V2ReturnsRfbsGetRequestToJSON(value?: V2ReturnsRfbsGetRequest | null): any; diff --git a/dist/models/V2ReturnsRfbsGetRequest.js b/dist/models/V2ReturnsRfbsGetRequest.js new file mode 100644 index 0000000..f6209ec --- /dev/null +++ b/dist/models/V2ReturnsRfbsGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReturnsRfbsGetRequest = instanceOfV2ReturnsRfbsGetRequest; +exports.V2ReturnsRfbsGetRequestFromJSON = V2ReturnsRfbsGetRequestFromJSON; +exports.V2ReturnsRfbsGetRequestFromJSONTyped = V2ReturnsRfbsGetRequestFromJSONTyped; +exports.V2ReturnsRfbsGetRequestToJSON = V2ReturnsRfbsGetRequestToJSON; +/** + * Check if a given object implements the V2ReturnsRfbsGetRequest interface. + */ +function instanceOfV2ReturnsRfbsGetRequest(value) { + if (!('return_id' in value) || value['return_id'] === undefined) + return false; + return true; +} +function V2ReturnsRfbsGetRequestFromJSON(json) { + return V2ReturnsRfbsGetRequestFromJSONTyped(json, false); +} +function V2ReturnsRfbsGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'return_id': json['return_id'], + }; +} +function V2ReturnsRfbsGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'return_id': value['return_id'], + }; +} diff --git a/dist/models/V2ReturnsRfbsGetResponse.d.ts b/dist/models/V2ReturnsRfbsGetResponse.d.ts new file mode 100644 index 0000000..fd2b308 --- /dev/null +++ b/dist/models/V2ReturnsRfbsGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsRfbsGetResponseReturns } from './ReturnsRfbsGetResponseReturns'; +/** + * + * @export + * @interface V2ReturnsRfbsGetResponse + */ +export interface V2ReturnsRfbsGetResponse { + /** + * + * @type {ReturnsRfbsGetResponseReturns} + * @memberof V2ReturnsRfbsGetResponse + */ + returns?: ReturnsRfbsGetResponseReturns; +} +/** + * Check if a given object implements the V2ReturnsRfbsGetResponse interface. + */ +export declare function instanceOfV2ReturnsRfbsGetResponse(value: object): value is V2ReturnsRfbsGetResponse; +export declare function V2ReturnsRfbsGetResponseFromJSON(json: any): V2ReturnsRfbsGetResponse; +export declare function V2ReturnsRfbsGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsGetResponse; +export declare function V2ReturnsRfbsGetResponseToJSON(value?: V2ReturnsRfbsGetResponse | null): any; diff --git a/dist/models/V2ReturnsRfbsGetResponse.js b/dist/models/V2ReturnsRfbsGetResponse.js new file mode 100644 index 0000000..a84b581 --- /dev/null +++ b/dist/models/V2ReturnsRfbsGetResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReturnsRfbsGetResponse = instanceOfV2ReturnsRfbsGetResponse; +exports.V2ReturnsRfbsGetResponseFromJSON = V2ReturnsRfbsGetResponseFromJSON; +exports.V2ReturnsRfbsGetResponseFromJSONTyped = V2ReturnsRfbsGetResponseFromJSONTyped; +exports.V2ReturnsRfbsGetResponseToJSON = V2ReturnsRfbsGetResponseToJSON; +const ReturnsRfbsGetResponseReturns_1 = require("./ReturnsRfbsGetResponseReturns"); +/** + * Check if a given object implements the V2ReturnsRfbsGetResponse interface. + */ +function instanceOfV2ReturnsRfbsGetResponse(value) { + return true; +} +function V2ReturnsRfbsGetResponseFromJSON(json) { + return V2ReturnsRfbsGetResponseFromJSONTyped(json, false); +} +function V2ReturnsRfbsGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'returns': json['returns'] == null ? undefined : (0, ReturnsRfbsGetResponseReturns_1.ReturnsRfbsGetResponseReturnsFromJSON)(json['returns']), + }; +} +function V2ReturnsRfbsGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'returns': (0, ReturnsRfbsGetResponseReturns_1.ReturnsRfbsGetResponseReturnsToJSON)(value['returns']), + }; +} diff --git a/dist/models/V2ReturnsRfbsGetV2ResponseState.d.ts b/dist/models/V2ReturnsRfbsGetV2ResponseState.d.ts new file mode 100644 index 0000000..344a1fe --- /dev/null +++ b/dist/models/V2ReturnsRfbsGetV2ResponseState.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные о статусе возврата. + * @export + * @interface V2ReturnsRfbsGetV2ResponseState + */ +export interface V2ReturnsRfbsGetV2ResponseState { + /** + * Статус. + * @type {string} + * @memberof V2ReturnsRfbsGetV2ResponseState + */ + state?: string; + /** + * Название статуса на русском. + * @type {string} + * @memberof V2ReturnsRfbsGetV2ResponseState + */ + state_name?: string; +} +/** + * Check if a given object implements the V2ReturnsRfbsGetV2ResponseState interface. + */ +export declare function instanceOfV2ReturnsRfbsGetV2ResponseState(value: object): value is V2ReturnsRfbsGetV2ResponseState; +export declare function V2ReturnsRfbsGetV2ResponseStateFromJSON(json: any): V2ReturnsRfbsGetV2ResponseState; +export declare function V2ReturnsRfbsGetV2ResponseStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsGetV2ResponseState; +export declare function V2ReturnsRfbsGetV2ResponseStateToJSON(value?: V2ReturnsRfbsGetV2ResponseState | null): any; diff --git a/dist/models/V2ReturnsRfbsGetV2ResponseState.js b/dist/models/V2ReturnsRfbsGetV2ResponseState.js new file mode 100644 index 0000000..955aa08 --- /dev/null +++ b/dist/models/V2ReturnsRfbsGetV2ResponseState.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReturnsRfbsGetV2ResponseState = instanceOfV2ReturnsRfbsGetV2ResponseState; +exports.V2ReturnsRfbsGetV2ResponseStateFromJSON = V2ReturnsRfbsGetV2ResponseStateFromJSON; +exports.V2ReturnsRfbsGetV2ResponseStateFromJSONTyped = V2ReturnsRfbsGetV2ResponseStateFromJSONTyped; +exports.V2ReturnsRfbsGetV2ResponseStateToJSON = V2ReturnsRfbsGetV2ResponseStateToJSON; +/** + * Check if a given object implements the V2ReturnsRfbsGetV2ResponseState interface. + */ +function instanceOfV2ReturnsRfbsGetV2ResponseState(value) { + return true; +} +function V2ReturnsRfbsGetV2ResponseStateFromJSON(json) { + return V2ReturnsRfbsGetV2ResponseStateFromJSONTyped(json, false); +} +function V2ReturnsRfbsGetV2ResponseStateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'state': json['state'] == null ? undefined : json['state'], + 'state_name': json['state_name'] == null ? undefined : json['state_name'], + }; +} +function V2ReturnsRfbsGetV2ResponseStateToJSON(value) { + if (value == null) { + return value; + } + return { + 'state': value['state'], + 'state_name': value['state_name'], + }; +} diff --git a/dist/models/V2ReturnsRfbsListRequest.d.ts b/dist/models/V2ReturnsRfbsListRequest.d.ts new file mode 100644 index 0000000..4d44fdd --- /dev/null +++ b/dist/models/V2ReturnsRfbsListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V2ReturnsRfbsFilter } from './V2ReturnsRfbsFilter'; +/** + * + * @export + * @interface V2ReturnsRfbsListRequest + */ +export interface V2ReturnsRfbsListRequest { + /** + * + * @type {V2ReturnsRfbsFilter} + * @memberof V2ReturnsRfbsListRequest + */ + filter?: V2ReturnsRfbsFilter; + /** + * Идентификатор последнего значения на странице — `return_id`. Оставьте это поле пустым при выполнении первого запроса. + * @type {number} + * @memberof V2ReturnsRfbsListRequest + */ + last_id?: number; + /** + * Количество значений в ответе. + * @type {number} + * @memberof V2ReturnsRfbsListRequest + */ + limit: number; +} +/** + * Check if a given object implements the V2ReturnsRfbsListRequest interface. + */ +export declare function instanceOfV2ReturnsRfbsListRequest(value: object): value is V2ReturnsRfbsListRequest; +export declare function V2ReturnsRfbsListRequestFromJSON(json: any): V2ReturnsRfbsListRequest; +export declare function V2ReturnsRfbsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsListRequest; +export declare function V2ReturnsRfbsListRequestToJSON(value?: V2ReturnsRfbsListRequest | null): any; diff --git a/dist/models/V2ReturnsRfbsListRequest.js b/dist/models/V2ReturnsRfbsListRequest.js new file mode 100644 index 0000000..2820592 --- /dev/null +++ b/dist/models/V2ReturnsRfbsListRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReturnsRfbsListRequest = instanceOfV2ReturnsRfbsListRequest; +exports.V2ReturnsRfbsListRequestFromJSON = V2ReturnsRfbsListRequestFromJSON; +exports.V2ReturnsRfbsListRequestFromJSONTyped = V2ReturnsRfbsListRequestFromJSONTyped; +exports.V2ReturnsRfbsListRequestToJSON = V2ReturnsRfbsListRequestToJSON; +const V2ReturnsRfbsFilter_1 = require("./V2ReturnsRfbsFilter"); +/** + * Check if a given object implements the V2ReturnsRfbsListRequest interface. + */ +function instanceOfV2ReturnsRfbsListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V2ReturnsRfbsListRequestFromJSON(json) { + return V2ReturnsRfbsListRequestFromJSONTyped(json, false); +} +function V2ReturnsRfbsListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, V2ReturnsRfbsFilter_1.V2ReturnsRfbsFilterFromJSON)(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + }; +} +function V2ReturnsRfbsListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, V2ReturnsRfbsFilter_1.V2ReturnsRfbsFilterToJSON)(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V2ReturnsRfbsListResponse.d.ts b/dist/models/V2ReturnsRfbsListResponse.d.ts new file mode 100644 index 0000000..c554c29 --- /dev/null +++ b/dist/models/V2ReturnsRfbsListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReturnsRfbsListResponseReturns } from './ReturnsRfbsListResponseReturns'; +/** + * + * @export + * @interface V2ReturnsRfbsListResponse + */ +export interface V2ReturnsRfbsListResponse { + /** + * + * @type {ReturnsRfbsListResponseReturns} + * @memberof V2ReturnsRfbsListResponse + */ + returns?: ReturnsRfbsListResponseReturns; +} +/** + * Check if a given object implements the V2ReturnsRfbsListResponse interface. + */ +export declare function instanceOfV2ReturnsRfbsListResponse(value: object): value is V2ReturnsRfbsListResponse; +export declare function V2ReturnsRfbsListResponseFromJSON(json: any): V2ReturnsRfbsListResponse; +export declare function V2ReturnsRfbsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsListResponse; +export declare function V2ReturnsRfbsListResponseToJSON(value?: V2ReturnsRfbsListResponse | null): any; diff --git a/dist/models/V2ReturnsRfbsListResponse.js b/dist/models/V2ReturnsRfbsListResponse.js new file mode 100644 index 0000000..3282b9e --- /dev/null +++ b/dist/models/V2ReturnsRfbsListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReturnsRfbsListResponse = instanceOfV2ReturnsRfbsListResponse; +exports.V2ReturnsRfbsListResponseFromJSON = V2ReturnsRfbsListResponseFromJSON; +exports.V2ReturnsRfbsListResponseFromJSONTyped = V2ReturnsRfbsListResponseFromJSONTyped; +exports.V2ReturnsRfbsListResponseToJSON = V2ReturnsRfbsListResponseToJSON; +const ReturnsRfbsListResponseReturns_1 = require("./ReturnsRfbsListResponseReturns"); +/** + * Check if a given object implements the V2ReturnsRfbsListResponse interface. + */ +function instanceOfV2ReturnsRfbsListResponse(value) { + return true; +} +function V2ReturnsRfbsListResponseFromJSON(json) { + return V2ReturnsRfbsListResponseFromJSONTyped(json, false); +} +function V2ReturnsRfbsListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'returns': json['returns'] == null ? undefined : (0, ReturnsRfbsListResponseReturns_1.ReturnsRfbsListResponseReturnsFromJSON)(json['returns']), + }; +} +function V2ReturnsRfbsListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'returns': (0, ReturnsRfbsListResponseReturns_1.ReturnsRfbsListResponseReturnsToJSON)(value['returns']), + }; +} diff --git a/dist/models/V2ReturnsRfbsListV2ResponseState.d.ts b/dist/models/V2ReturnsRfbsListV2ResponseState.d.ts new file mode 100644 index 0000000..fabd558 --- /dev/null +++ b/dist/models/V2ReturnsRfbsListV2ResponseState.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статусы заявки и возврата денег. + * @export + * @interface V2ReturnsRfbsListV2ResponseState + */ +export interface V2ReturnsRfbsListV2ResponseState { + /** + * Статус заявки по применённому фильтру. + * @type {string} + * @memberof V2ReturnsRfbsListV2ResponseState + */ + group_state?: string; + /** + * Статус возврата денег. + * @type {string} + * @memberof V2ReturnsRfbsListV2ResponseState + */ + money_return_state_name?: string; + /** + * Статус заявки. + * @type {string} + * @memberof V2ReturnsRfbsListV2ResponseState + */ + state?: string; + /** + * Название статуса заявки на русском. + * @type {string} + * @memberof V2ReturnsRfbsListV2ResponseState + */ + state_name?: string; +} +/** + * Check if a given object implements the V2ReturnsRfbsListV2ResponseState interface. + */ +export declare function instanceOfV2ReturnsRfbsListV2ResponseState(value: object): value is V2ReturnsRfbsListV2ResponseState; +export declare function V2ReturnsRfbsListV2ResponseStateFromJSON(json: any): V2ReturnsRfbsListV2ResponseState; +export declare function V2ReturnsRfbsListV2ResponseStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2ReturnsRfbsListV2ResponseState; +export declare function V2ReturnsRfbsListV2ResponseStateToJSON(value?: V2ReturnsRfbsListV2ResponseState | null): any; diff --git a/dist/models/V2ReturnsRfbsListV2ResponseState.js b/dist/models/V2ReturnsRfbsListV2ResponseState.js new file mode 100644 index 0000000..4518f8d --- /dev/null +++ b/dist/models/V2ReturnsRfbsListV2ResponseState.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2ReturnsRfbsListV2ResponseState = instanceOfV2ReturnsRfbsListV2ResponseState; +exports.V2ReturnsRfbsListV2ResponseStateFromJSON = V2ReturnsRfbsListV2ResponseStateFromJSON; +exports.V2ReturnsRfbsListV2ResponseStateFromJSONTyped = V2ReturnsRfbsListV2ResponseStateFromJSONTyped; +exports.V2ReturnsRfbsListV2ResponseStateToJSON = V2ReturnsRfbsListV2ResponseStateToJSON; +/** + * Check if a given object implements the V2ReturnsRfbsListV2ResponseState interface. + */ +function instanceOfV2ReturnsRfbsListV2ResponseState(value) { + return true; +} +function V2ReturnsRfbsListV2ResponseStateFromJSON(json) { + return V2ReturnsRfbsListV2ResponseStateFromJSONTyped(json, false); +} +function V2ReturnsRfbsListV2ResponseStateFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'group_state': json['group_state'] == null ? undefined : json['group_state'], + 'money_return_state_name': json['money_return_state_name'] == null ? undefined : json['money_return_state_name'], + 'state': json['state'] == null ? undefined : json['state'], + 'state_name': json['state_name'] == null ? undefined : json['state_name'], + }; +} +function V2ReturnsRfbsListV2ResponseStateToJSON(value) { + if (value == null) { + return value; + } + return { + 'group_state': value['group_state'], + 'money_return_state_name': value['money_return_state_name'], + 'state': value['state'], + 'state_name': value['state_name'], + }; +} diff --git a/dist/models/V2WarehouseListV2Request.d.ts b/dist/models/V2WarehouseListV2Request.d.ts new file mode 100644 index 0000000..26ee281 --- /dev/null +++ b/dist/models/V2WarehouseListV2Request.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V2WarehouseListV2Request + */ +export interface V2WarehouseListV2Request { + /** + * Количество значений в ответе. + * @type {number} + * @memberof V2WarehouseListV2Request + */ + limit: number; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2WarehouseListV2Request + */ + cursor?: string; + /** + * Идентификаторы складов. + * @type {Array} + * @memberof V2WarehouseListV2Request + */ + warehouse_ids?: Array; +} +/** + * Check if a given object implements the V2WarehouseListV2Request interface. + */ +export declare function instanceOfV2WarehouseListV2Request(value: object): value is V2WarehouseListV2Request; +export declare function V2WarehouseListV2RequestFromJSON(json: any): V2WarehouseListV2Request; +export declare function V2WarehouseListV2RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WarehouseListV2Request; +export declare function V2WarehouseListV2RequestToJSON(value?: V2WarehouseListV2Request | null): any; diff --git a/dist/models/V2WarehouseListV2Request.js b/dist/models/V2WarehouseListV2Request.js new file mode 100644 index 0000000..ea54590 --- /dev/null +++ b/dist/models/V2WarehouseListV2Request.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2WarehouseListV2Request = instanceOfV2WarehouseListV2Request; +exports.V2WarehouseListV2RequestFromJSON = V2WarehouseListV2RequestFromJSON; +exports.V2WarehouseListV2RequestFromJSONTyped = V2WarehouseListV2RequestFromJSONTyped; +exports.V2WarehouseListV2RequestToJSON = V2WarehouseListV2RequestToJSON; +/** + * Check if a given object implements the V2WarehouseListV2Request interface. + */ +function instanceOfV2WarehouseListV2Request(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V2WarehouseListV2RequestFromJSON(json) { + return V2WarehouseListV2RequestFromJSONTyped(json, false); +} +function V2WarehouseListV2RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'limit': json['limit'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'warehouse_ids': json['warehouse_ids'] == null ? undefined : json['warehouse_ids'], + }; +} +function V2WarehouseListV2RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'limit': value['limit'], + 'cursor': value['cursor'], + 'warehouse_ids': value['warehouse_ids'], + }; +} diff --git a/dist/models/V2WarehouseListV2Response.d.ts b/dist/models/V2WarehouseListV2Response.d.ts new file mode 100644 index 0000000..1150e2d --- /dev/null +++ b/dist/models/V2WarehouseListV2Response.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseListV2ResponseWarehouse } from './WarehouseListV2ResponseWarehouse'; +/** + * + * @export + * @interface V2WarehouseListV2Response + */ +export interface V2WarehouseListV2Response { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V2WarehouseListV2Response + */ + cursor?: string; + /** + * Список складов. + * @type {Array} + * @memberof V2WarehouseListV2Response + */ + warehouses?: Array; + /** + * `true`, если в ответе вернулись не все значения. + * + * @type {boolean} + * @memberof V2WarehouseListV2Response + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V2WarehouseListV2Response interface. + */ +export declare function instanceOfV2WarehouseListV2Response(value: object): value is V2WarehouseListV2Response; +export declare function V2WarehouseListV2ResponseFromJSON(json: any): V2WarehouseListV2Response; +export declare function V2WarehouseListV2ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WarehouseListV2Response; +export declare function V2WarehouseListV2ResponseToJSON(value?: V2WarehouseListV2Response | null): any; diff --git a/dist/models/V2WarehouseListV2Response.js b/dist/models/V2WarehouseListV2Response.js new file mode 100644 index 0000000..8d0b1ae --- /dev/null +++ b/dist/models/V2WarehouseListV2Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV2WarehouseListV2Response = instanceOfV2WarehouseListV2Response; +exports.V2WarehouseListV2ResponseFromJSON = V2WarehouseListV2ResponseFromJSON; +exports.V2WarehouseListV2ResponseFromJSONTyped = V2WarehouseListV2ResponseFromJSONTyped; +exports.V2WarehouseListV2ResponseToJSON = V2WarehouseListV2ResponseToJSON; +const WarehouseListV2ResponseWarehouse_1 = require("./WarehouseListV2ResponseWarehouse"); +/** + * Check if a given object implements the V2WarehouseListV2Response interface. + */ +function instanceOfV2WarehouseListV2Response(value) { + return true; +} +function V2WarehouseListV2ResponseFromJSON(json) { + return V2WarehouseListV2ResponseFromJSONTyped(json, false); +} +function V2WarehouseListV2ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'warehouses': json['warehouses'] == null ? undefined : (json['warehouses'].map(WarehouseListV2ResponseWarehouse_1.WarehouseListV2ResponseWarehouseFromJSON)), + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +function V2WarehouseListV2ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'warehouses': value['warehouses'] == null ? undefined : (value['warehouses'].map(WarehouseListV2ResponseWarehouse_1.WarehouseListV2ResponseWarehouseToJSON)), + 'has_next': value['has_next'], + }; +} diff --git a/dist/models/V3AdditionalDataItem.d.ts b/dist/models/V3AdditionalDataItem.d.ts new file mode 100644 index 0000000..80c1a48 --- /dev/null +++ b/dist/models/V3AdditionalDataItem.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3AdditionalDataItem + */ +export interface V3AdditionalDataItem { + /** + * + * @type {string} + * @memberof V3AdditionalDataItem + */ + key?: string; + /** + * + * @type {string} + * @memberof V3AdditionalDataItem + */ + value?: string; +} +/** + * Check if a given object implements the V3AdditionalDataItem interface. + */ +export declare function instanceOfV3AdditionalDataItem(value: object): value is V3AdditionalDataItem; +export declare function V3AdditionalDataItemFromJSON(json: any): V3AdditionalDataItem; +export declare function V3AdditionalDataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3AdditionalDataItem; +export declare function V3AdditionalDataItemToJSON(value?: V3AdditionalDataItem | null): any; diff --git a/dist/models/V3AdditionalDataItem.js b/dist/models/V3AdditionalDataItem.js new file mode 100644 index 0000000..1c609e3 --- /dev/null +++ b/dist/models/V3AdditionalDataItem.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3AdditionalDataItem = instanceOfV3AdditionalDataItem; +exports.V3AdditionalDataItemFromJSON = V3AdditionalDataItemFromJSON; +exports.V3AdditionalDataItemFromJSONTyped = V3AdditionalDataItemFromJSONTyped; +exports.V3AdditionalDataItemToJSON = V3AdditionalDataItemToJSON; +/** + * Check if a given object implements the V3AdditionalDataItem interface. + */ +function instanceOfV3AdditionalDataItem(value) { + return true; +} +function V3AdditionalDataItemFromJSON(json) { + return V3AdditionalDataItemFromJSONTyped(json, false); +} +function V3AdditionalDataItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'key': json['key'] == null ? undefined : json['key'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V3AdditionalDataItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'key': value['key'], + 'value': value['value'], + }; +} diff --git a/dist/models/V3Address.d.ts b/dist/models/V3Address.d.ts new file mode 100644 index 0000000..d18f09e --- /dev/null +++ b/dist/models/V3Address.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об адресе доставки. + * @export + * @interface V3Address + */ +export interface V3Address { + /** + * Адрес в текстовом формате. + * @type {string} + * @memberof V3Address + */ + address_tail?: string; + /** + * Город доставки. + * @type {string} + * @memberof V3Address + */ + city?: string; + /** + * Комментарий к заказу. + * @type {string} + * @memberof V3Address + */ + comment?: string; + /** + * Страна доставки. + * @type {string} + * @memberof V3Address + */ + country?: string; + /** + * Район доставки. + * @type {string} + * @memberof V3Address + */ + district?: string; + /** + * Широта. + * @type {number} + * @memberof V3Address + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof V3Address + */ + longitude?: number; + /** + * Код пункта выдачи заказов 3PL провайдера. + * @type {string} + * @memberof V3Address + */ + provider_pvz_code?: string; + /** + * Код пункта выдачи заказов. + * @type {number} + * @memberof V3Address + */ + pvz_code?: number; + /** + * Регион доставки. + * @type {string} + * @memberof V3Address + */ + region?: string; + /** + * Почтовый индекс получателя. + * @type {string} + * @memberof V3Address + */ + zip_code?: string; +} +/** + * Check if a given object implements the V3Address interface. + */ +export declare function instanceOfV3Address(value: object): value is V3Address; +export declare function V3AddressFromJSON(json: any): V3Address; +export declare function V3AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Address; +export declare function V3AddressToJSON(value?: V3Address | null): any; diff --git a/dist/models/V3Address.js b/dist/models/V3Address.js new file mode 100644 index 0000000..3cc1275 --- /dev/null +++ b/dist/models/V3Address.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3Address = instanceOfV3Address; +exports.V3AddressFromJSON = V3AddressFromJSON; +exports.V3AddressFromJSONTyped = V3AddressFromJSONTyped; +exports.V3AddressToJSON = V3AddressToJSON; +/** + * Check if a given object implements the V3Address interface. + */ +function instanceOfV3Address(value) { + return true; +} +function V3AddressFromJSON(json) { + return V3AddressFromJSONTyped(json, false); +} +function V3AddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_tail': json['address_tail'] == null ? undefined : json['address_tail'], + 'city': json['city'] == null ? undefined : json['city'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'country': json['country'] == null ? undefined : json['country'], + 'district': json['district'] == null ? undefined : json['district'], + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + 'provider_pvz_code': json['provider_pvz_code'] == null ? undefined : json['provider_pvz_code'], + 'pvz_code': json['pvz_code'] == null ? undefined : json['pvz_code'], + 'region': json['region'] == null ? undefined : json['region'], + 'zip_code': json['zip_code'] == null ? undefined : json['zip_code'], + }; +} +function V3AddressToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_tail': value['address_tail'], + 'city': value['city'], + 'comment': value['comment'], + 'country': value['country'], + 'district': value['district'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'provider_pvz_code': value['provider_pvz_code'], + 'pvz_code': value['pvz_code'], + 'region': value['region'], + 'zip_code': value['zip_code'], + }; +} diff --git a/dist/models/V3Addressee.d.ts b/dist/models/V3Addressee.d.ts new file mode 100644 index 0000000..d1f1acd --- /dev/null +++ b/dist/models/V3Addressee.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контактные данные получателя. + * @export + * @interface V3Addressee + */ +export interface V3Addressee { + /** + * Имя покупателя. + * @type {string} + * @memberof V3Addressee + */ + name?: string; + /** + * Подменный контактный телефон получателя. + * + * [Подробнее о подменных номерах в Базе знаний](https://seller-edu.ozon.ru/rfbs/orders-cancellations/replacement-number) + * + * @type {string} + * @memberof V3Addressee + */ + phone?: string; + /** + * Добавочный номер телефона получателя, вводится в тональном режиме. Только для отправлений realFBS со службами доставки: + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ. + * - `non_integrated` — доставка силами продавца. + * + * @type {string} + * @memberof V3Addressee + */ + pin?: string; +} +/** + * Check if a given object implements the V3Addressee interface. + */ +export declare function instanceOfV3Addressee(value: object): value is V3Addressee; +export declare function V3AddresseeFromJSON(json: any): V3Addressee; +export declare function V3AddresseeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Addressee; +export declare function V3AddresseeToJSON(value?: V3Addressee | null): any; diff --git a/dist/models/V3Addressee.js b/dist/models/V3Addressee.js new file mode 100644 index 0000000..2bb23c3 --- /dev/null +++ b/dist/models/V3Addressee.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3Addressee = instanceOfV3Addressee; +exports.V3AddresseeFromJSON = V3AddresseeFromJSON; +exports.V3AddresseeFromJSONTyped = V3AddresseeFromJSONTyped; +exports.V3AddresseeToJSON = V3AddresseeToJSON; +/** + * Check if a given object implements the V3Addressee interface. + */ +function instanceOfV3Addressee(value) { + return true; +} +function V3AddresseeFromJSON(json) { + return V3AddresseeFromJSONTyped(json, false); +} +function V3AddresseeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'pin': json['pin'] == null ? undefined : json['pin'], + }; +} +function V3AddresseeToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'phone': value['phone'], + 'pin': value['pin'], + }; +} diff --git a/dist/models/V3AddresseeFbsLists.d.ts b/dist/models/V3AddresseeFbsLists.d.ts new file mode 100644 index 0000000..b018f17 --- /dev/null +++ b/dist/models/V3AddresseeFbsLists.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контактные данные получателя. + * @export + * @interface V3AddresseeFbsLists + */ +export interface V3AddresseeFbsLists { + /** + * Имя покупателя. + * @type {string} + * @memberof V3AddresseeFbsLists + */ + name?: string; + /** + * Контактный телефон получателя. Всегда возвращает пустую строку `""`. Чтобы получить подменный номер телефона, используйте метод [/v3/posting/fbs/get](#operation/PostingAPI_GetFbsPostingV3). + * + * @type {string} + * @memberof V3AddresseeFbsLists + */ + phone?: string; +} +/** + * Check if a given object implements the V3AddresseeFbsLists interface. + */ +export declare function instanceOfV3AddresseeFbsLists(value: object): value is V3AddresseeFbsLists; +export declare function V3AddresseeFbsListsFromJSON(json: any): V3AddresseeFbsLists; +export declare function V3AddresseeFbsListsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3AddresseeFbsLists; +export declare function V3AddresseeFbsListsToJSON(value?: V3AddresseeFbsLists | null): any; diff --git a/dist/models/V3AddresseeFbsLists.js b/dist/models/V3AddresseeFbsLists.js new file mode 100644 index 0000000..becce67 --- /dev/null +++ b/dist/models/V3AddresseeFbsLists.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3AddresseeFbsLists = instanceOfV3AddresseeFbsLists; +exports.V3AddresseeFbsListsFromJSON = V3AddresseeFbsListsFromJSON; +exports.V3AddresseeFbsListsFromJSONTyped = V3AddresseeFbsListsFromJSONTyped; +exports.V3AddresseeFbsListsToJSON = V3AddresseeFbsListsToJSON; +/** + * Check if a given object implements the V3AddresseeFbsLists interface. + */ +function instanceOfV3AddresseeFbsLists(value) { + return true; +} +function V3AddresseeFbsListsFromJSON(json) { + return V3AddresseeFbsListsFromJSONTyped(json, false); +} +function V3AddresseeFbsListsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +function V3AddresseeFbsListsToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/models/V3Barcodes.d.ts b/dist/models/V3Barcodes.d.ts new file mode 100644 index 0000000..fb53283 --- /dev/null +++ b/dist/models/V3Barcodes.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Штрихкоды отправления. + * @export + * @interface V3Barcodes + */ +export interface V3Barcodes { + /** + * Нижний штрихкод на маркировке отправления. + * @type {string} + * @memberof V3Barcodes + */ + lower_barcode?: string; + /** + * Верхний штрихкод на маркировке отправления. + * @type {string} + * @memberof V3Barcodes + */ + upper_barcode?: string; +} +/** + * Check if a given object implements the V3Barcodes interface. + */ +export declare function instanceOfV3Barcodes(value: object): value is V3Barcodes; +export declare function V3BarcodesFromJSON(json: any): V3Barcodes; +export declare function V3BarcodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Barcodes; +export declare function V3BarcodesToJSON(value?: V3Barcodes | null): any; diff --git a/dist/models/V3Barcodes.js b/dist/models/V3Barcodes.js new file mode 100644 index 0000000..60bf7f1 --- /dev/null +++ b/dist/models/V3Barcodes.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3Barcodes = instanceOfV3Barcodes; +exports.V3BarcodesFromJSON = V3BarcodesFromJSON; +exports.V3BarcodesFromJSONTyped = V3BarcodesFromJSONTyped; +exports.V3BarcodesToJSON = V3BarcodesToJSON; +/** + * Check if a given object implements the V3Barcodes interface. + */ +function instanceOfV3Barcodes(value) { + return true; +} +function V3BarcodesFromJSON(json) { + return V3BarcodesFromJSONTyped(json, false); +} +function V3BarcodesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'lower_barcode': json['lower_barcode'] == null ? undefined : json['lower_barcode'], + 'upper_barcode': json['upper_barcode'] == null ? undefined : json['upper_barcode'], + }; +} +function V3BarcodesToJSON(value) { + if (value == null) { + return value; + } + return { + 'lower_barcode': value['lower_barcode'], + 'upper_barcode': value['upper_barcode'], + }; +} diff --git a/dist/models/V3Cancellation.d.ts b/dist/models/V3Cancellation.d.ts new file mode 100644 index 0000000..ab20e0c --- /dev/null +++ b/dist/models/V3Cancellation.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об отмене. + * @export + * @interface V3Cancellation + */ +export interface V3Cancellation { + /** + * Если отмена влияет на рейтинг продавца — `true`. + * @type {boolean} + * @memberof V3Cancellation + */ + affect_cancellation_rating?: boolean; + /** + * Причина отмены. + * @type {string} + * @memberof V3Cancellation + */ + cancel_reason?: string; + /** + * Идентификатор причины отмены отправления. + * @type {number} + * @memberof V3Cancellation + */ + cancel_reason_id?: number; + /** + * Инициатор отмены: + * - `Продавец`, + * - `Клиент` или `покупатель`, + * - `Ozon`, + * - `Система`, + * - `Служба доставки`. + * + * @type {string} + * @memberof V3Cancellation + */ + cancellation_initiator?: string; + /** + * Тип отмены отправления: + * - `seller` — отменено продавцом; + * - `client` или `customer` — отменено покупателем; + * - `ozon` — отменено Ozon; + * - `system`— отменено системой; + * - `delivery` — отменено службой доставки. + * + * @type {string} + * @memberof V3Cancellation + */ + cancellation_type?: string; + /** + * Если отмена произошла после сборки отправления — `true`. + * @type {boolean} + * @memberof V3Cancellation + */ + cancelled_after_ship?: boolean; +} +/** + * Check if a given object implements the V3Cancellation interface. + */ +export declare function instanceOfV3Cancellation(value: object): value is V3Cancellation; +export declare function V3CancellationFromJSON(json: any): V3Cancellation; +export declare function V3CancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Cancellation; +export declare function V3CancellationToJSON(value?: V3Cancellation | null): any; diff --git a/dist/models/V3Cancellation.js b/dist/models/V3Cancellation.js new file mode 100644 index 0000000..9df6dd5 --- /dev/null +++ b/dist/models/V3Cancellation.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3Cancellation = instanceOfV3Cancellation; +exports.V3CancellationFromJSON = V3CancellationFromJSON; +exports.V3CancellationFromJSONTyped = V3CancellationFromJSONTyped; +exports.V3CancellationToJSON = V3CancellationToJSON; +/** + * Check if a given object implements the V3Cancellation interface. + */ +function instanceOfV3Cancellation(value) { + return true; +} +function V3CancellationFromJSON(json) { + return V3CancellationFromJSONTyped(json, false); +} +function V3CancellationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'affect_cancellation_rating': json['affect_cancellation_rating'] == null ? undefined : json['affect_cancellation_rating'], + 'cancel_reason': json['cancel_reason'] == null ? undefined : json['cancel_reason'], + 'cancel_reason_id': json['cancel_reason_id'] == null ? undefined : json['cancel_reason_id'], + 'cancellation_initiator': json['cancellation_initiator'] == null ? undefined : json['cancellation_initiator'], + 'cancellation_type': json['cancellation_type'] == null ? undefined : json['cancellation_type'], + 'cancelled_after_ship': json['cancelled_after_ship'] == null ? undefined : json['cancelled_after_ship'], + }; +} +function V3CancellationToJSON(value) { + if (value == null) { + return value; + } + return { + 'affect_cancellation_rating': value['affect_cancellation_rating'], + 'cancel_reason': value['cancel_reason'], + 'cancel_reason_id': value['cancel_reason_id'], + 'cancellation_initiator': value['cancellation_initiator'], + 'cancellation_type': value['cancellation_type'], + 'cancelled_after_ship': value['cancelled_after_ship'], + }; +} diff --git a/dist/models/V3ChatDetailsInfo.d.ts b/dist/models/V3ChatDetailsInfo.d.ts new file mode 100644 index 0000000..ab5966c --- /dev/null +++ b/dist/models/V3ChatDetailsInfo.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChatInfoChatTypeEnum } from './ChatInfoChatTypeEnum'; +import type { ChatInfoChatStatusEnum } from './ChatInfoChatStatusEnum'; +/** + * Информация о чате. + * @export + * @interface V3ChatDetailsInfo + */ +export interface V3ChatDetailsInfo { + /** + * Дата создания чата. + * @type {string} + * @memberof V3ChatDetailsInfo + */ + created_at?: string; + /** + * Идентификатор чата. + * @type {string} + * @memberof V3ChatDetailsInfo + */ + chat_id?: string; + /** + * + * @type {ChatInfoChatStatusEnum} + * @memberof V3ChatDetailsInfo + */ + chat_status?: ChatInfoChatStatusEnum; + /** + * + * @type {ChatInfoChatTypeEnum} + * @memberof V3ChatDetailsInfo + */ + chat_type?: ChatInfoChatTypeEnum; +} +/** + * Check if a given object implements the V3ChatDetailsInfo interface. + */ +export declare function instanceOfV3ChatDetailsInfo(value: object): value is V3ChatDetailsInfo; +export declare function V3ChatDetailsInfoFromJSON(json: any): V3ChatDetailsInfo; +export declare function V3ChatDetailsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatDetailsInfo; +export declare function V3ChatDetailsInfoToJSON(value?: V3ChatDetailsInfo | null): any; diff --git a/dist/models/V3ChatDetailsInfo.js b/dist/models/V3ChatDetailsInfo.js new file mode 100644 index 0000000..6953215 --- /dev/null +++ b/dist/models/V3ChatDetailsInfo.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ChatDetailsInfo = instanceOfV3ChatDetailsInfo; +exports.V3ChatDetailsInfoFromJSON = V3ChatDetailsInfoFromJSON; +exports.V3ChatDetailsInfoFromJSONTyped = V3ChatDetailsInfoFromJSONTyped; +exports.V3ChatDetailsInfoToJSON = V3ChatDetailsInfoToJSON; +const ChatInfoChatTypeEnum_1 = require("./ChatInfoChatTypeEnum"); +const ChatInfoChatStatusEnum_1 = require("./ChatInfoChatStatusEnum"); +/** + * Check if a given object implements the V3ChatDetailsInfo interface. + */ +function instanceOfV3ChatDetailsInfo(value) { + return true; +} +function V3ChatDetailsInfoFromJSON(json) { + return V3ChatDetailsInfoFromJSONTyped(json, false); +} +function V3ChatDetailsInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'chat_id': json['chat_id'] == null ? undefined : json['chat_id'], + 'chat_status': json['chat_status'] == null ? undefined : (0, ChatInfoChatStatusEnum_1.ChatInfoChatStatusEnumFromJSON)(json['chat_status']), + 'chat_type': json['chat_type'] == null ? undefined : (0, ChatInfoChatTypeEnum_1.ChatInfoChatTypeEnumFromJSON)(json['chat_type']), + }; +} +function V3ChatDetailsInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'created_at': value['created_at'], + 'chat_id': value['chat_id'], + 'chat_status': (0, ChatInfoChatStatusEnum_1.ChatInfoChatStatusEnumToJSON)(value['chat_status']), + 'chat_type': (0, ChatInfoChatTypeEnum_1.ChatInfoChatTypeEnumToJSON)(value['chat_type']), + }; +} diff --git a/dist/models/V3ChatHistoryRequest.d.ts b/dist/models/V3ChatHistoryRequest.d.ts new file mode 100644 index 0000000..4edc26b --- /dev/null +++ b/dist/models/V3ChatHistoryRequest.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChatHistoryRequestFilter } from './ChatHistoryRequestFilter'; +/** + * + * @export + * @interface V3ChatHistoryRequest + */ +export interface V3ChatHistoryRequest { + /** + * Идентификатор чата. + * @type {string} + * @memberof V3ChatHistoryRequest + */ + chat_id: string; + /** + * Направление сортировки сообщений: + * - `Forward` — от старых к новым. + * - `Backward` — от новых к старым. + * + * Значение по умолчанию — `Backward`. Количество сообщений можно установить в параметре `limit`. + * + * @type {string} + * @memberof V3ChatHistoryRequest + */ + direction?: string; + /** + * + * @type {ChatHistoryRequestFilter} + * @memberof V3ChatHistoryRequest + */ + filter?: ChatHistoryRequestFilter; + /** + * Идентификатор сообщения, с которого нужно начать вывод истории чата. По умолчанию — последнее видимое сообщение. + * + * Параметр `from_message_id` обязательный, если `direction = Forward`. + * + * @type {number} + * @memberof V3ChatHistoryRequest + */ + from_message_id?: number; + /** + * Количество сообщений в ответе. По умолчанию — 50. Максимальное значение — 1000. + * @type {number} + * @memberof V3ChatHistoryRequest + */ + limit?: number; +} +/** + * Check if a given object implements the V3ChatHistoryRequest interface. + */ +export declare function instanceOfV3ChatHistoryRequest(value: object): value is V3ChatHistoryRequest; +export declare function V3ChatHistoryRequestFromJSON(json: any): V3ChatHistoryRequest; +export declare function V3ChatHistoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatHistoryRequest; +export declare function V3ChatHistoryRequestToJSON(value?: V3ChatHistoryRequest | null): any; diff --git a/dist/models/V3ChatHistoryRequest.js b/dist/models/V3ChatHistoryRequest.js new file mode 100644 index 0000000..8ccf05f --- /dev/null +++ b/dist/models/V3ChatHistoryRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ChatHistoryRequest = instanceOfV3ChatHistoryRequest; +exports.V3ChatHistoryRequestFromJSON = V3ChatHistoryRequestFromJSON; +exports.V3ChatHistoryRequestFromJSONTyped = V3ChatHistoryRequestFromJSONTyped; +exports.V3ChatHistoryRequestToJSON = V3ChatHistoryRequestToJSON; +const ChatHistoryRequestFilter_1 = require("./ChatHistoryRequestFilter"); +/** + * Check if a given object implements the V3ChatHistoryRequest interface. + */ +function instanceOfV3ChatHistoryRequest(value) { + if (!('chat_id' in value) || value['chat_id'] === undefined) + return false; + return true; +} +function V3ChatHistoryRequestFromJSON(json) { + return V3ChatHistoryRequestFromJSONTyped(json, false); +} +function V3ChatHistoryRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_id': json['chat_id'], + 'direction': json['direction'] == null ? undefined : json['direction'], + 'filter': json['filter'] == null ? undefined : (0, ChatHistoryRequestFilter_1.ChatHistoryRequestFilterFromJSON)(json['filter']), + 'from_message_id': json['from_message_id'] == null ? undefined : json['from_message_id'], + 'limit': json['limit'] == null ? undefined : json['limit'], + }; +} +function V3ChatHistoryRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_id': value['chat_id'], + 'direction': value['direction'], + 'filter': (0, ChatHistoryRequestFilter_1.ChatHistoryRequestFilterToJSON)(value['filter']), + 'from_message_id': value['from_message_id'], + 'limit': value['limit'], + }; +} diff --git a/dist/models/V3ChatHistoryResponse.d.ts b/dist/models/V3ChatHistoryResponse.d.ts new file mode 100644 index 0000000..506bddf --- /dev/null +++ b/dist/models/V3ChatHistoryResponse.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatMessage } from './V3ChatMessage'; +/** + * + * @export + * @interface V3ChatHistoryResponse + */ +export interface V3ChatHistoryResponse { + /** + * Признак, что в ответе вернули не все сообщения. + * @type {boolean} + * @memberof V3ChatHistoryResponse + */ + has_next?: boolean; + /** + * Массив сообщений, отсортированный в соответствии с параметром `direction` из тела запроса. + * @type {Array} + * @memberof V3ChatHistoryResponse + */ + messages?: Array; +} +/** + * Check if a given object implements the V3ChatHistoryResponse interface. + */ +export declare function instanceOfV3ChatHistoryResponse(value: object): value is V3ChatHistoryResponse; +export declare function V3ChatHistoryResponseFromJSON(json: any): V3ChatHistoryResponse; +export declare function V3ChatHistoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatHistoryResponse; +export declare function V3ChatHistoryResponseToJSON(value?: V3ChatHistoryResponse | null): any; diff --git a/dist/models/V3ChatHistoryResponse.js b/dist/models/V3ChatHistoryResponse.js new file mode 100644 index 0000000..90bdd10 --- /dev/null +++ b/dist/models/V3ChatHistoryResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ChatHistoryResponse = instanceOfV3ChatHistoryResponse; +exports.V3ChatHistoryResponseFromJSON = V3ChatHistoryResponseFromJSON; +exports.V3ChatHistoryResponseFromJSONTyped = V3ChatHistoryResponseFromJSONTyped; +exports.V3ChatHistoryResponseToJSON = V3ChatHistoryResponseToJSON; +const V3ChatMessage_1 = require("./V3ChatMessage"); +/** + * Check if a given object implements the V3ChatHistoryResponse interface. + */ +function instanceOfV3ChatHistoryResponse(value) { + return true; +} +function V3ChatHistoryResponseFromJSON(json) { + return V3ChatHistoryResponseFromJSONTyped(json, false); +} +function V3ChatHistoryResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'messages': json['messages'] == null ? undefined : (json['messages'].map(V3ChatMessage_1.V3ChatMessageFromJSON)), + }; +} +function V3ChatHistoryResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'messages': value['messages'] == null ? undefined : (value['messages'].map(V3ChatMessage_1.V3ChatMessageToJSON)), + }; +} diff --git a/dist/models/V3ChatInfo.d.ts b/dist/models/V3ChatInfo.d.ts new file mode 100644 index 0000000..b3258f3 --- /dev/null +++ b/dist/models/V3ChatInfo.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatDetailsInfo } from './V3ChatDetailsInfo'; +/** + * + * @export + * @interface V3ChatInfo + */ +export interface V3ChatInfo { + /** + * + * @type {V3ChatDetailsInfo} + * @memberof V3ChatInfo + */ + chat?: V3ChatDetailsInfo; + /** + * Идентификатор первого непрочитанного сообщения в чате. + * @type {number} + * @memberof V3ChatInfo + */ + first_unread_message_id?: number; + /** + * Идентификатор последнего сообщения в чате. + * @type {number} + * @memberof V3ChatInfo + */ + last_message_id?: number; + /** + * Количество непрочитанных сообщений в чате. + * @type {number} + * @memberof V3ChatInfo + */ + unread_count?: number; +} +/** + * Check if a given object implements the V3ChatInfo interface. + */ +export declare function instanceOfV3ChatInfo(value: object): value is V3ChatInfo; +export declare function V3ChatInfoFromJSON(json: any): V3ChatInfo; +export declare function V3ChatInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatInfo; +export declare function V3ChatInfoToJSON(value?: V3ChatInfo | null): any; diff --git a/dist/models/V3ChatInfo.js b/dist/models/V3ChatInfo.js new file mode 100644 index 0000000..d8f0c21 --- /dev/null +++ b/dist/models/V3ChatInfo.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ChatInfo = instanceOfV3ChatInfo; +exports.V3ChatInfoFromJSON = V3ChatInfoFromJSON; +exports.V3ChatInfoFromJSONTyped = V3ChatInfoFromJSONTyped; +exports.V3ChatInfoToJSON = V3ChatInfoToJSON; +const V3ChatDetailsInfo_1 = require("./V3ChatDetailsInfo"); +/** + * Check if a given object implements the V3ChatInfo interface. + */ +function instanceOfV3ChatInfo(value) { + return true; +} +function V3ChatInfoFromJSON(json) { + return V3ChatInfoFromJSONTyped(json, false); +} +function V3ChatInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat': json['chat'] == null ? undefined : (0, V3ChatDetailsInfo_1.V3ChatDetailsInfoFromJSON)(json['chat']), + 'first_unread_message_id': json['first_unread_message_id'] == null ? undefined : json['first_unread_message_id'], + 'last_message_id': json['last_message_id'] == null ? undefined : json['last_message_id'], + 'unread_count': json['unread_count'] == null ? undefined : json['unread_count'], + }; +} +function V3ChatInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat': (0, V3ChatDetailsInfo_1.V3ChatDetailsInfoToJSON)(value['chat']), + 'first_unread_message_id': value['first_unread_message_id'], + 'last_message_id': value['last_message_id'], + 'unread_count': value['unread_count'], + }; +} diff --git a/dist/models/V3ChatList.d.ts b/dist/models/V3ChatList.d.ts new file mode 100644 index 0000000..91e88eb --- /dev/null +++ b/dist/models/V3ChatList.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatListRequestFilter } from './V3ChatListRequestFilter'; +/** + * + * @export + * @interface V3ChatList + */ +export interface V3ChatList { + /** + * + * @type {V3ChatListRequestFilter} + * @memberof V3ChatList + */ + filter?: V3ChatListRequestFilter; + /** + * Количество значений в ответе. Значение по умолчанию — 30. Максимальное значение — 100. + * @type {number} + * @memberof V3ChatList + */ + limit: number; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V3ChatList + */ + cursor?: string; +} +/** + * Check if a given object implements the V3ChatList interface. + */ +export declare function instanceOfV3ChatList(value: object): value is V3ChatList; +export declare function V3ChatListFromJSON(json: any): V3ChatList; +export declare function V3ChatListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatList; +export declare function V3ChatListToJSON(value?: V3ChatList | null): any; diff --git a/dist/models/V3ChatList.js b/dist/models/V3ChatList.js new file mode 100644 index 0000000..2547b5c --- /dev/null +++ b/dist/models/V3ChatList.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ChatList = instanceOfV3ChatList; +exports.V3ChatListFromJSON = V3ChatListFromJSON; +exports.V3ChatListFromJSONTyped = V3ChatListFromJSONTyped; +exports.V3ChatListToJSON = V3ChatListToJSON; +const V3ChatListRequestFilter_1 = require("./V3ChatListRequestFilter"); +/** + * Check if a given object implements the V3ChatList interface. + */ +function instanceOfV3ChatList(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V3ChatListFromJSON(json) { + return V3ChatListFromJSONTyped(json, false); +} +function V3ChatListFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, V3ChatListRequestFilter_1.V3ChatListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + }; +} +function V3ChatListToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, V3ChatListRequestFilter_1.V3ChatListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'cursor': value['cursor'], + }; +} diff --git a/dist/models/V3ChatListRequestFilter.d.ts b/dist/models/V3ChatListRequestFilter.d.ts new file mode 100644 index 0000000..af28ca0 --- /dev/null +++ b/dist/models/V3ChatListRequestFilter.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatListRequestFilterChatStatus } from './V3ChatListRequestFilterChatStatus'; +/** + * Фильтр по чатам. + * @export + * @interface V3ChatListRequestFilter + */ +export interface V3ChatListRequestFilter { + /** + * + * @type {V3ChatListRequestFilterChatStatus} + * @memberof V3ChatListRequestFilter + */ + chat_status?: V3ChatListRequestFilterChatStatus; + /** + * Фильтр по чатам с непрочитанными сообщениями. + * @type {boolean} + * @memberof V3ChatListRequestFilter + */ + unread_only?: boolean; +} +/** + * Check if a given object implements the V3ChatListRequestFilter interface. + */ +export declare function instanceOfV3ChatListRequestFilter(value: object): value is V3ChatListRequestFilter; +export declare function V3ChatListRequestFilterFromJSON(json: any): V3ChatListRequestFilter; +export declare function V3ChatListRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatListRequestFilter; +export declare function V3ChatListRequestFilterToJSON(value?: V3ChatListRequestFilter | null): any; diff --git a/dist/models/V3ChatListRequestFilter.js b/dist/models/V3ChatListRequestFilter.js new file mode 100644 index 0000000..12aa92f --- /dev/null +++ b/dist/models/V3ChatListRequestFilter.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ChatListRequestFilter = instanceOfV3ChatListRequestFilter; +exports.V3ChatListRequestFilterFromJSON = V3ChatListRequestFilterFromJSON; +exports.V3ChatListRequestFilterFromJSONTyped = V3ChatListRequestFilterFromJSONTyped; +exports.V3ChatListRequestFilterToJSON = V3ChatListRequestFilterToJSON; +const V3ChatListRequestFilterChatStatus_1 = require("./V3ChatListRequestFilterChatStatus"); +/** + * Check if a given object implements the V3ChatListRequestFilter interface. + */ +function instanceOfV3ChatListRequestFilter(value) { + return true; +} +function V3ChatListRequestFilterFromJSON(json) { + return V3ChatListRequestFilterFromJSONTyped(json, false); +} +function V3ChatListRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chat_status': json['chat_status'] == null ? undefined : (0, V3ChatListRequestFilterChatStatus_1.V3ChatListRequestFilterChatStatusFromJSON)(json['chat_status']), + 'unread_only': json['unread_only'] == null ? undefined : json['unread_only'], + }; +} +function V3ChatListRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'chat_status': (0, V3ChatListRequestFilterChatStatus_1.V3ChatListRequestFilterChatStatusToJSON)(value['chat_status']), + 'unread_only': value['unread_only'], + }; +} diff --git a/dist/models/V3ChatListRequestFilterChatStatus.d.ts b/dist/models/V3ChatListRequestFilterChatStatus.d.ts new file mode 100644 index 0000000..3631b35 --- /dev/null +++ b/dist/models/V3ChatListRequestFilterChatStatus.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по статусу чата: + * - `All` — все чаты; + * - `Opened` — открытые чаты; + * - `Closed` — закрытые чаты. + * + * @export + */ +export declare const V3ChatListRequestFilterChatStatus: { + readonly ALL: "ALL"; + readonly OPENED: "OPENED"; + readonly CLOSED: "CLOSED"; +}; +export type V3ChatListRequestFilterChatStatus = typeof V3ChatListRequestFilterChatStatus[keyof typeof V3ChatListRequestFilterChatStatus]; +export declare function instanceOfV3ChatListRequestFilterChatStatus(value: any): boolean; +export declare function V3ChatListRequestFilterChatStatusFromJSON(json: any): V3ChatListRequestFilterChatStatus; +export declare function V3ChatListRequestFilterChatStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatListRequestFilterChatStatus; +export declare function V3ChatListRequestFilterChatStatusToJSON(value?: V3ChatListRequestFilterChatStatus | null): any; diff --git a/dist/models/V3ChatListRequestFilterChatStatus.js b/dist/models/V3ChatListRequestFilterChatStatus.js new file mode 100644 index 0000000..9b0adf6 --- /dev/null +++ b/dist/models/V3ChatListRequestFilterChatStatus.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V3ChatListRequestFilterChatStatus = void 0; +exports.instanceOfV3ChatListRequestFilterChatStatus = instanceOfV3ChatListRequestFilterChatStatus; +exports.V3ChatListRequestFilterChatStatusFromJSON = V3ChatListRequestFilterChatStatusFromJSON; +exports.V3ChatListRequestFilterChatStatusFromJSONTyped = V3ChatListRequestFilterChatStatusFromJSONTyped; +exports.V3ChatListRequestFilterChatStatusToJSON = V3ChatListRequestFilterChatStatusToJSON; +/** + * Фильтр по статусу чата: + * - `All` — все чаты; + * - `Opened` — открытые чаты; + * - `Closed` — закрытые чаты. + * + * @export + */ +exports.V3ChatListRequestFilterChatStatus = { + ALL: 'ALL', + OPENED: 'OPENED', + CLOSED: 'CLOSED' +}; +function instanceOfV3ChatListRequestFilterChatStatus(value) { + for (const key in exports.V3ChatListRequestFilterChatStatus) { + if (Object.prototype.hasOwnProperty.call(exports.V3ChatListRequestFilterChatStatus, key)) { + if (exports.V3ChatListRequestFilterChatStatus[key] === value) { + return true; + } + } + } + return false; +} +function V3ChatListRequestFilterChatStatusFromJSON(json) { + return V3ChatListRequestFilterChatStatusFromJSONTyped(json, false); +} +function V3ChatListRequestFilterChatStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V3ChatListRequestFilterChatStatusToJSON(value) { + return value; +} diff --git a/dist/models/V3ChatListResponse.d.ts b/dist/models/V3ChatListResponse.d.ts new file mode 100644 index 0000000..2e641cd --- /dev/null +++ b/dist/models/V3ChatListResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ChatInfo } from './V3ChatInfo'; +/** + * + * @export + * @interface V3ChatListResponse + */ +export interface V3ChatListResponse { + /** + * Данные чатов. + * @type {Array} + * @memberof V3ChatListResponse + */ + chats?: Array; + /** + * Общее количество непрочитанных сообщений. + * @type {number} + * @memberof V3ChatListResponse + */ + total_unread_count?: number; + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V3ChatListResponse + */ + cursor?: string; + /** + * Признак, что в ответе вернулись не все чаты: + * - `true` — сделайте повторный запрос с новым параметром `cursor` для получения остальных чатов; + * - `false` — ответ содержит все чаты для фильтра, который был задан в запросе. + * + * @type {boolean} + * @memberof V3ChatListResponse + */ + has_next?: boolean; +} +/** + * Check if a given object implements the V3ChatListResponse interface. + */ +export declare function instanceOfV3ChatListResponse(value: object): value is V3ChatListResponse; +export declare function V3ChatListResponseFromJSON(json: any): V3ChatListResponse; +export declare function V3ChatListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatListResponse; +export declare function V3ChatListResponseToJSON(value?: V3ChatListResponse | null): any; diff --git a/dist/models/V3ChatListResponse.js b/dist/models/V3ChatListResponse.js new file mode 100644 index 0000000..159cbd2 --- /dev/null +++ b/dist/models/V3ChatListResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ChatListResponse = instanceOfV3ChatListResponse; +exports.V3ChatListResponseFromJSON = V3ChatListResponseFromJSON; +exports.V3ChatListResponseFromJSONTyped = V3ChatListResponseFromJSONTyped; +exports.V3ChatListResponseToJSON = V3ChatListResponseToJSON; +const V3ChatInfo_1 = require("./V3ChatInfo"); +/** + * Check if a given object implements the V3ChatListResponse interface. + */ +function instanceOfV3ChatListResponse(value) { + return true; +} +function V3ChatListResponseFromJSON(json) { + return V3ChatListResponseFromJSONTyped(json, false); +} +function V3ChatListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chats': json['chats'] == null ? undefined : (json['chats'].map(V3ChatInfo_1.V3ChatInfoFromJSON)), + 'total_unread_count': json['total_unread_count'] == null ? undefined : json['total_unread_count'], + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + }; +} +function V3ChatListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'chats': value['chats'] == null ? undefined : (value['chats'].map(V3ChatInfo_1.V3ChatInfoToJSON)), + 'total_unread_count': value['total_unread_count'], + 'cursor': value['cursor'], + 'has_next': value['has_next'], + }; +} diff --git a/dist/models/V3ChatMessage.d.ts b/dist/models/V3ChatMessage.d.ts new file mode 100644 index 0000000..aa594d9 --- /dev/null +++ b/dist/models/V3ChatMessage.d.ts @@ -0,0 +1,76 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChatMessageContext } from './ChatMessageContext'; +import type { ChatMessageModerateImageStatus } from './ChatMessageModerateImageStatus'; +import type { V3User } from './V3User'; +/** + * + * @export + * @interface V3ChatMessage + */ +export interface V3ChatMessage { + /** + * + * @type {ChatMessageContext} + * @memberof V3ChatMessage + */ + context?: ChatMessageContext; + /** + * Дата создания сообщения. + * @type {string} + * @memberof V3ChatMessage + */ + created_at?: string; + /** + * Массив с содержимым сообщения в формате Markdown. + * @type {Array} + * @memberof V3ChatMessage + */ + data?: Array; + /** + * Признак, что сообщение содержит изображение. + * @type {boolean} + * @memberof V3ChatMessage + */ + is_image?: boolean; + /** + * Признак, что сообщение прочитано. + * @type {boolean} + * @memberof V3ChatMessage + */ + is_read?: boolean; + /** + * Идентификатор сообщения. + * @type {number} + * @memberof V3ChatMessage + */ + message_id?: number; + /** + * + * @type {ChatMessageModerateImageStatus} + * @memberof V3ChatMessage + */ + moderate_image_status?: ChatMessageModerateImageStatus; + /** + * + * @type {V3User} + * @memberof V3ChatMessage + */ + user?: V3User; +} +/** + * Check if a given object implements the V3ChatMessage interface. + */ +export declare function instanceOfV3ChatMessage(value: object): value is V3ChatMessage; +export declare function V3ChatMessageFromJSON(json: any): V3ChatMessage; +export declare function V3ChatMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ChatMessage; +export declare function V3ChatMessageToJSON(value?: V3ChatMessage | null): any; diff --git a/dist/models/V3ChatMessage.js b/dist/models/V3ChatMessage.js new file mode 100644 index 0000000..ef92c36 --- /dev/null +++ b/dist/models/V3ChatMessage.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ChatMessage = instanceOfV3ChatMessage; +exports.V3ChatMessageFromJSON = V3ChatMessageFromJSON; +exports.V3ChatMessageFromJSONTyped = V3ChatMessageFromJSONTyped; +exports.V3ChatMessageToJSON = V3ChatMessageToJSON; +const ChatMessageContext_1 = require("./ChatMessageContext"); +const ChatMessageModerateImageStatus_1 = require("./ChatMessageModerateImageStatus"); +const V3User_1 = require("./V3User"); +/** + * Check if a given object implements the V3ChatMessage interface. + */ +function instanceOfV3ChatMessage(value) { + return true; +} +function V3ChatMessageFromJSON(json) { + return V3ChatMessageFromJSONTyped(json, false); +} +function V3ChatMessageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'context': json['context'] == null ? undefined : (0, ChatMessageContext_1.ChatMessageContextFromJSON)(json['context']), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'data': json['data'] == null ? undefined : json['data'], + 'is_image': json['is_image'] == null ? undefined : json['is_image'], + 'is_read': json['is_read'] == null ? undefined : json['is_read'], + 'message_id': json['message_id'] == null ? undefined : json['message_id'], + 'moderate_image_status': json['moderate_image_status'] == null ? undefined : (0, ChatMessageModerateImageStatus_1.ChatMessageModerateImageStatusFromJSON)(json['moderate_image_status']), + 'user': json['user'] == null ? undefined : (0, V3User_1.V3UserFromJSON)(json['user']), + }; +} +function V3ChatMessageToJSON(value) { + if (value == null) { + return value; + } + return { + 'context': (0, ChatMessageContext_1.ChatMessageContextToJSON)(value['context']), + 'created_at': value['created_at'], + 'data': value['data'], + 'is_image': value['is_image'], + 'is_read': value['is_read'], + 'message_id': value['message_id'], + 'moderate_image_status': (0, ChatMessageModerateImageStatus_1.ChatMessageModerateImageStatusToJSON)(value['moderate_image_status']), + 'user': (0, V3User_1.V3UserToJSON)(value['user']), + }; +} diff --git a/dist/models/V3Customer.d.ts b/dist/models/V3Customer.d.ts new file mode 100644 index 0000000..e8cbaaf --- /dev/null +++ b/dist/models/V3Customer.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3Address } from './V3Address'; +/** + * Данные о покупателе. + * @export + * @interface V3Customer + */ +export interface V3Customer { + /** + * + * @type {V3Address} + * @memberof V3Customer + */ + address?: V3Address; + /** + * Идентификатор покупателя. + * @type {number} + * @memberof V3Customer + */ + customer_id?: number; + /** + * Имя покупателя. + * @type {string} + * @memberof V3Customer + */ + name?: string; + /** + * Подменный контактный телефон покупателя. + * + * [Подробнее о подменных номерах в Базе знаний](https://seller-edu.ozon.ru/rfbs/orders-cancellations/replacement-number) + * + * @type {string} + * @memberof V3Customer + */ + phone?: string; +} +/** + * Check if a given object implements the V3Customer interface. + */ +export declare function instanceOfV3Customer(value: object): value is V3Customer; +export declare function V3CustomerFromJSON(json: any): V3Customer; +export declare function V3CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Customer; +export declare function V3CustomerToJSON(value?: V3Customer | null): any; diff --git a/dist/models/V3Customer.js b/dist/models/V3Customer.js new file mode 100644 index 0000000..ac93867 --- /dev/null +++ b/dist/models/V3Customer.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3Customer = instanceOfV3Customer; +exports.V3CustomerFromJSON = V3CustomerFromJSON; +exports.V3CustomerFromJSONTyped = V3CustomerFromJSONTyped; +exports.V3CustomerToJSON = V3CustomerToJSON; +const V3Address_1 = require("./V3Address"); +/** + * Check if a given object implements the V3Customer interface. + */ +function instanceOfV3Customer(value) { + return true; +} +function V3CustomerFromJSON(json) { + return V3CustomerFromJSONTyped(json, false); +} +function V3CustomerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : (0, V3Address_1.V3AddressFromJSON)(json['address']), + 'customer_id': json['customer_id'] == null ? undefined : json['customer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +function V3CustomerToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': (0, V3Address_1.V3AddressToJSON)(value['address']), + 'customer_id': value['customer_id'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/models/V3CustomerFbsLists.d.ts b/dist/models/V3CustomerFbsLists.d.ts new file mode 100644 index 0000000..683488c --- /dev/null +++ b/dist/models/V3CustomerFbsLists.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3Address } from './V3Address'; +/** + * Данные о покупателе. + * @export + * @interface V3CustomerFbsLists + */ +export interface V3CustomerFbsLists { + /** + * + * @type {V3Address} + * @memberof V3CustomerFbsLists + */ + address?: V3Address; + /** + * Электронный адрес покупателя. + * @type {string} + * @memberof V3CustomerFbsLists + */ + customer_email?: string; + /** + * Идентификатор покупателя. + * @type {number} + * @memberof V3CustomerFbsLists + */ + customer_id?: number; + /** + * Имя покупателя. + * @type {string} + * @memberof V3CustomerFbsLists + */ + name?: string; + /** + * Контактный телефон покупателя. Всегда возвращает пустую строку `""`. Чтобы получить подменный номер телефона, используйте метод [/v3/posting/fbs/get](#operation/PostingAPI_GetFbsPostingV3). + * + * @type {string} + * @memberof V3CustomerFbsLists + */ + phone?: string; +} +/** + * Check if a given object implements the V3CustomerFbsLists interface. + */ +export declare function instanceOfV3CustomerFbsLists(value: object): value is V3CustomerFbsLists; +export declare function V3CustomerFbsListsFromJSON(json: any): V3CustomerFbsLists; +export declare function V3CustomerFbsListsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3CustomerFbsLists; +export declare function V3CustomerFbsListsToJSON(value?: V3CustomerFbsLists | null): any; diff --git a/dist/models/V3CustomerFbsLists.js b/dist/models/V3CustomerFbsLists.js new file mode 100644 index 0000000..b51a79a --- /dev/null +++ b/dist/models/V3CustomerFbsLists.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3CustomerFbsLists = instanceOfV3CustomerFbsLists; +exports.V3CustomerFbsListsFromJSON = V3CustomerFbsListsFromJSON; +exports.V3CustomerFbsListsFromJSONTyped = V3CustomerFbsListsFromJSONTyped; +exports.V3CustomerFbsListsToJSON = V3CustomerFbsListsToJSON; +const V3Address_1 = require("./V3Address"); +/** + * Check if a given object implements the V3CustomerFbsLists interface. + */ +function instanceOfV3CustomerFbsLists(value) { + return true; +} +function V3CustomerFbsListsFromJSON(json) { + return V3CustomerFbsListsFromJSONTyped(json, false); +} +function V3CustomerFbsListsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : (0, V3Address_1.V3AddressFromJSON)(json['address']), + 'customer_email': json['customer_email'] == null ? undefined : json['customer_email'], + 'customer_id': json['customer_id'] == null ? undefined : json['customer_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'phone': json['phone'] == null ? undefined : json['phone'], + }; +} +function V3CustomerFbsListsToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': (0, V3Address_1.V3AddressToJSON)(value['address']), + 'customer_email': value['customer_email'], + 'customer_id': value['customer_id'], + 'name': value['name'], + 'phone': value['phone'], + }; +} diff --git a/dist/models/V3DeliveryMethod.d.ts b/dist/models/V3DeliveryMethod.d.ts new file mode 100644 index 0000000..45d8629 --- /dev/null +++ b/dist/models/V3DeliveryMethod.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Метод доставки. + * @export + * @interface V3DeliveryMethod + */ +export interface V3DeliveryMethod { + /** + * Идентификатор способа доставки. + * @type {number} + * @memberof V3DeliveryMethod + */ + id?: number; + /** + * Название способа доставки. + * @type {string} + * @memberof V3DeliveryMethod + */ + name?: string; + /** + * Служба доставки. + * @type {string} + * @memberof V3DeliveryMethod + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof V3DeliveryMethod + */ + tpl_provider_id?: number; + /** + * Название склада. + * @type {string} + * @memberof V3DeliveryMethod + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V3DeliveryMethod + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the V3DeliveryMethod interface. + */ +export declare function instanceOfV3DeliveryMethod(value: object): value is V3DeliveryMethod; +export declare function V3DeliveryMethodFromJSON(json: any): V3DeliveryMethod; +export declare function V3DeliveryMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3DeliveryMethod; +export declare function V3DeliveryMethodToJSON(value?: V3DeliveryMethod | null): any; diff --git a/dist/models/V3DeliveryMethod.js b/dist/models/V3DeliveryMethod.js new file mode 100644 index 0000000..a94cae9 --- /dev/null +++ b/dist/models/V3DeliveryMethod.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3DeliveryMethod = instanceOfV3DeliveryMethod; +exports.V3DeliveryMethodFromJSON = V3DeliveryMethodFromJSON; +exports.V3DeliveryMethodFromJSONTyped = V3DeliveryMethodFromJSONTyped; +exports.V3DeliveryMethodToJSON = V3DeliveryMethodToJSON; +/** + * Check if a given object implements the V3DeliveryMethod interface. + */ +function instanceOfV3DeliveryMethod(value) { + return true; +} +function V3DeliveryMethodFromJSON(json) { + return V3DeliveryMethodFromJSONTyped(json, false); +} +function V3DeliveryMethodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function V3DeliveryMethodToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': value['name'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/V3Dimensions.d.ts b/dist/models/V3Dimensions.d.ts new file mode 100644 index 0000000..556796b --- /dev/null +++ b/dist/models/V3Dimensions.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Размеры товара. + * @export + * @interface V3Dimensions + */ +export interface V3Dimensions { + /** + * Высота упаковки. + * @type {string} + * @memberof V3Dimensions + */ + height?: string; + /** + * Длина товара. + * @type {string} + * @memberof V3Dimensions + */ + length?: string; + /** + * Вес товара в упаковке. + * @type {string} + * @memberof V3Dimensions + */ + weight?: string; + /** + * Ширина упаковки. + * @type {string} + * @memberof V3Dimensions + */ + width?: string; +} +/** + * Check if a given object implements the V3Dimensions interface. + */ +export declare function instanceOfV3Dimensions(value: object): value is V3Dimensions; +export declare function V3DimensionsFromJSON(json: any): V3Dimensions; +export declare function V3DimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3Dimensions; +export declare function V3DimensionsToJSON(value?: V3Dimensions | null): any; diff --git a/dist/models/V3Dimensions.js b/dist/models/V3Dimensions.js new file mode 100644 index 0000000..ba3fafc --- /dev/null +++ b/dist/models/V3Dimensions.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3Dimensions = instanceOfV3Dimensions; +exports.V3DimensionsFromJSON = V3DimensionsFromJSON; +exports.V3DimensionsFromJSONTyped = V3DimensionsFromJSONTyped; +exports.V3DimensionsToJSON = V3DimensionsToJSON; +/** + * Check if a given object implements the V3Dimensions interface. + */ +function instanceOfV3Dimensions(value) { + return true; +} +function V3DimensionsFromJSON(json) { + return V3DimensionsFromJSONTyped(json, false); +} +function V3DimensionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'height': json['height'] == null ? undefined : json['height'], + 'length': json['length'] == null ? undefined : json['length'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function V3DimensionsToJSON(value) { + if (value == null) { + return value; + } + return { + 'height': value['height'], + 'length': value['length'], + 'weight': value['weight'], + 'width': value['width'], + }; +} diff --git a/dist/models/V3FbsPosting.d.ts b/dist/models/V3FbsPosting.d.ts new file mode 100644 index 0000000..ea9d5c0 --- /dev/null +++ b/dist/models/V3FbsPosting.d.ts @@ -0,0 +1,383 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3CustomerFbsLists } from './V3CustomerFbsLists'; +import type { V3FbsPostingRequirementsV3 } from './V3FbsPostingRequirementsV3'; +import type { PostingV3FbsPostingSortingCenter } from './PostingV3FbsPostingSortingCenter'; +import type { V2FboSinglePostingLegalInfo } from './V2FboSinglePostingLegalInfo'; +import type { PostingV4PostingFbsListResponsePostingsTarifficationStep } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import type { V3PostingFinancialData } from './V3PostingFinancialData'; +import type { V3FbsTariffication } from './V3FbsTariffication'; +import type { V3FbsPostingAnalyticsData } from './V3FbsPostingAnalyticsData'; +import type { V3Barcodes } from './V3Barcodes'; +import type { V3Cancellation } from './V3Cancellation'; +import type { V3FbsPostingDetailOptional } from './V3FbsPostingDetailOptional'; +import type { PostingV4PostingFbsListResponsePostingsContainer } from './PostingV4PostingFbsListResponsePostingsContainer'; +import type { V3AddresseeFbsLists } from './V3AddresseeFbsLists'; +import type { V3FbsPostingProduct } from './V3FbsPostingProduct'; +import type { V3DeliveryMethod } from './V3DeliveryMethod'; +/** + * + * @export + * @interface V3FbsPosting + */ +export interface V3FbsPosting { + /** + * + * @type {V3AddresseeFbsLists} + * @memberof V3FbsPosting + */ + addressee?: V3AddresseeFbsLists; + /** + * + * @type {V3FbsPostingAnalyticsData} + * @memberof V3FbsPosting + */ + analytics_data?: V3FbsPostingAnalyticsData; + /** + * Доступные действия и информация об отправлении: + * - `arbitration` — открыть спор; + * - `awaiting_delivery` — перевести в статус «Ожидает отгрузки»; + * - `can_create_chat` — начать чат с покупателем; + * - `cancel` — отменить отправление; + * - `click_track_number` — просмотреть по трек-номеру историю изменения статусов в личном кабинете; + * - `customer_phone_available` — телефон покупателя; + * - `has_weight_products` — весовые товары в отправлении; + * - `hide_region_and_city` — скрыть регион и город покупателя в отчёте; + * - `invoice_get` — получить информацию из счёта-фактуры; + * - `invoice_send` — создать счёт-фактуру; + * - `invoice_update` — отредактировать счёт-фактуру; + * - `label_download_big` — скачать большую этикетку; + * - `label_download_small` — скачать маленькую этикетку; + * - `label_download` — скачать этикетку; + * - `non_int_delivered` — перевести в статус «Условно доставлен»; + * - `non_int_delivering` — перевести в статус «Доставляется»; + * - `non_int_last_mile` — перевести в статус «Курьер в пути»; + * - `product_cancel` — отменить часть товаров в отправлении; + * - `set_cutoff` — необходимо указать дату отгрузки, воспользуйтесь методом [/v1/posting/cutoff/set](#operation/PostingAPI_SetPostingCutoff); + * - `set_timeslot` — изменить время доставки покупателю; + * - `set_track_number` — указать или изменить трек-номер; + * - `ship_async_in_process` — отправление собирается; + * - `ship_async_retry` — собрать отправление повторно после ошибки сборки; + * - `ship_async` — собрать отправление; + * - `ship_with_additional_info` — необходимо заполнить дополнительную информацию; + * - `ship` — собрать отправление; + * - `update_cis` — изменить дополнительную информацию. + * + * @type {Array} + * @memberof V3FbsPosting + */ + available_actions?: Array; + /** + * + * @type {V3Barcodes} + * @memberof V3FbsPosting + */ + barcodes?: V3Barcodes; + /** + * + * @type {V3Cancellation} + * @memberof V3FbsPosting + */ + cancellation?: V3Cancellation; + /** + * + * @type {V3CustomerFbsLists} + * @memberof V3FbsPosting + */ + customer?: V3CustomerFbsLists; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsContainer} + * @memberof V3FbsPosting + */ + container?: PostingV4PostingFbsListResponsePostingsContainer; + /** + * Тип сортировки грузоместа: + * - `SORT` — сортируемый; + * - `NON-SORT` — несортируемый. + * + * @type {string} + * @memberof V3FbsPosting + */ + container_sort_type?: string; + /** + * Дата передачи отправления в доставку. + * @type {string} + * @memberof V3FbsPosting + */ + delivering_date?: string; + /** + * + * @type {V3DeliveryMethod} + * @memberof V3FbsPosting + */ + delivery_method?: V3DeliveryMethod; + /** + * Идентификатор склада назначения. + * @type {number} + * @memberof V3FbsPosting + */ + destination_place_id?: number; + /** + * Название склада назначения. + * @type {string} + * @memberof V3FbsPosting + */ + destination_place_name?: string; + /** + * + * @type {V3PostingFinancialData} + * @memberof V3FbsPosting + */ + financial_data?: V3PostingFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V3FbsPosting + */ + in_process_at?: string; + /** + * Если использовалась быстрая доставка Ozon Express — `true`. + * @type {boolean} + * @memberof V3FbsPosting + */ + is_express?: boolean; + /** + * Признак, что в отправлении есть многокоробочный товар и нужно передать количество коробок для него: + * + * - `true` — до сборки передайте количество коробок через метод [/v3/posting/multiboxqty/set](#operation/PostingAPI_PostingMultiBoxQtySetV3). + * - `false` — отправление собрано с указанием количества коробок в параметре `multi_box_qty` или в отправлении нет многокоробочного товара. + * + * @type {boolean} + * @memberof V3FbsPosting + */ + is_multibox?: boolean; + /** + * `true`, если отгрузка с предсортировкой. + * + * @type {boolean} + * @memberof V3FbsPosting + */ + is_presortable?: boolean; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {string} + * @memberof V3FbsPosting + */ + integration_type_flow?: string; + /** + * + * @type {V2FboSinglePostingLegalInfo} + * @memberof V3FbsPosting + */ + legal_info?: V2FboSinglePostingLegalInfo; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V3FbsPosting + */ + multi_box_qty?: number; + /** + * + * @type {V3FbsPostingDetailOptional} + * @memberof V3FbsPosting + */ + optional?: V3FbsPostingDetailOptional; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V3FbsPosting + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V3FbsPosting + */ + order_number?: string; + /** + * Номер родительского отправления, в результате разделения которого появилось текущее. + * @type {string} + * @memberof V3FbsPosting + */ + parent_posting_number?: string; + /** + * Дата и время успешной валидации кода курьера. Чтобы проверить код курьера, воспользуйтесь методом [/v1/posting/fbs/pick-up-code/verify](#operation/PostingAPI_PostingFBSPickupCodeVerify). + * @type {string} + * @memberof V3FbsPosting + */ + pickup_code_verified_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V3FbsPosting + */ + posting_number?: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V3FbsPosting + */ + products?: Array; + /** + * Код услуги погрузочно-разгрузочных работ: + * - `lift` — подъём на лифте. + * - `stairs` — подъём по лестнице. + * - `none` — покупатель отказался от услуги, поднимать товары не нужно. + * - `delivery_default` — доставка включена в стоимость, по условиям оферты нужно доставить товар на этаж. + * + * Параметр актуален для КГТ-отправлений с доставкой силами продавца или интегрированной службой. + * + * @type {string} + * @memberof V3FbsPosting + */ + prr_option?: string; + /** + * Идентификатор эконом-товара. + * @type {number} + * @memberof V3FbsPosting + */ + quantum_id?: number; + /** + * `true`, если нужно заполнить атрибуты прослеживаемости. + * + * @type {boolean} + * @memberof V3FbsPosting + */ + require_blr_traceable_attrs?: boolean; + /** + * + * @type {V3FbsPostingRequirementsV3} + * @memberof V3FbsPosting + */ + requirements?: V3FbsPostingRequirementsV3; + /** + * Дата и время, до которой необходимо собрать отправление. Показываем рекомендованное время отгрузки. По истечении этого времени начнёт применяться новый тариф, информацию о нём уточняйте в поле `tariffication`. + * @type {string} + * @memberof V3FbsPosting + */ + shipment_date?: string; + /** + * Дата и время отгрузки без просрочки. + * @type {string} + * @memberof V3FbsPosting + */ + shipment_date_without_delay?: string; + /** + * + * @type {PostingV3FbsPostingSortingCenter} + * @memberof V3FbsPosting + */ + sorting_center?: PostingV3FbsPostingSortingCenter; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка, + * - `arbitration` — арбитраж, + * - `awaiting_approve` — ожидает подтверждения, + * - `awaiting_deliver` — ожидает отгрузки, + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_registration` — ожидает регистрации, + * - `awaiting_verification` — создано, + * - `cancelled` — отменено, + * - `cancelled_from_split_pending` — отменён из-за разделения отправления, + * - `client_arbitration` — клиентский арбитраж доставки, + * - `delivering` — доставляется, + * - `driver_pickup` — у водителя, + * - `not_accepted` — не принят на сортировочном центре, + * + * @type {string} + * @memberof V3FbsPosting + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_acceptance_in_progress`— идёт приёмка, + * - `posting_in_arbitration` — арбитраж, + * - `posting_created` — создано, + * - `posting_in_carriage` — в перевозке, + * - `posting_not_in_carriage` — не добавлено в перевозку, + * - `posting_registered` — зарегистрировано, + * - `posting_transferring_to_delivery` (`status=awaiting_deliver`) — передаётся в доставку, + * - `posting_awaiting_passport_data` — ожидает паспортных данных, + * - `posting_created` — создано, + * - `posting_awaiting_registration` — ожидает регистрации, + * - `posting_registration_error` — ошибка регистрации, + * - `posting_transferring_to_delivery` (`status=awaiting_registration`) — передаётся курьеру, + * - `posting_split_pending` — создано, + * - `posting_canceled` — отменено, + * - `posting_in_client_arbitration` — клиентский арбитраж доставки, + * - `posting_delivered` — доставлено, + * - `posting_received` — получено, + * - `posting_conditionally_delivered` — условно доставлено, + * - `posting_in_courier_service` — курьер в пути, + * - `posting_in_pickup_point` — в пункте выдачи, + * - `posting_on_way_to_city` — в пути в ваш город, + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи, + * - `posting_returned_to_warehouse` — возвращено на склад, + * - `posting_transferred_to_courier_service` — передаётся в службу доставки, + * - `posting_driver_pick_up` — у водителя, + * - `posting_not_in_sort_center` — не принято на сортировочном центре, + * - `ship_failed` — сборка не удалась. + * + * @type {string} + * @memberof V3FbsPosting + */ + substatus?: string; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка службой Ozon. + * - `3pl_tracking` — доставка интегрированной службой. + * - `non_integrated` — доставка сторонней службой. + * - `aggregator` — доставка через партнёрскую доставку Ozon. + * - `hybryd` — схема доставки Почты России. + * + * @type {string} + * @memberof V3FbsPosting + */ + tpl_integration_type?: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof V3FbsPosting + */ + tracking_number?: string; + /** + * + * @type {V3FbsTariffication} + * @memberof V3FbsPosting + */ + tariffication?: V3FbsTariffication; + /** + * Этапы тарификации. + * @type {Array} + * @memberof V3FbsPosting + */ + tariffication_steps?: Array; +} +/** + * Check if a given object implements the V3FbsPosting interface. + */ +export declare function instanceOfV3FbsPosting(value: object): value is V3FbsPosting; +export declare function V3FbsPostingFromJSON(json: any): V3FbsPosting; +export declare function V3FbsPostingFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPosting; +export declare function V3FbsPostingToJSON(value?: V3FbsPosting | null): any; diff --git a/dist/models/V3FbsPosting.js b/dist/models/V3FbsPosting.js new file mode 100644 index 0000000..ef08f44 --- /dev/null +++ b/dist/models/V3FbsPosting.js @@ -0,0 +1,137 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPosting = instanceOfV3FbsPosting; +exports.V3FbsPostingFromJSON = V3FbsPostingFromJSON; +exports.V3FbsPostingFromJSONTyped = V3FbsPostingFromJSONTyped; +exports.V3FbsPostingToJSON = V3FbsPostingToJSON; +const V3CustomerFbsLists_1 = require("./V3CustomerFbsLists"); +const V3FbsPostingRequirementsV3_1 = require("./V3FbsPostingRequirementsV3"); +const PostingV3FbsPostingSortingCenter_1 = require("./PostingV3FbsPostingSortingCenter"); +const V2FboSinglePostingLegalInfo_1 = require("./V2FboSinglePostingLegalInfo"); +const PostingV4PostingFbsListResponsePostingsTarifficationStep_1 = require("./PostingV4PostingFbsListResponsePostingsTarifficationStep"); +const V3PostingFinancialData_1 = require("./V3PostingFinancialData"); +const V3FbsTariffication_1 = require("./V3FbsTariffication"); +const V3FbsPostingAnalyticsData_1 = require("./V3FbsPostingAnalyticsData"); +const V3Barcodes_1 = require("./V3Barcodes"); +const V3Cancellation_1 = require("./V3Cancellation"); +const V3FbsPostingDetailOptional_1 = require("./V3FbsPostingDetailOptional"); +const PostingV4PostingFbsListResponsePostingsContainer_1 = require("./PostingV4PostingFbsListResponsePostingsContainer"); +const V3AddresseeFbsLists_1 = require("./V3AddresseeFbsLists"); +const V3FbsPostingProduct_1 = require("./V3FbsPostingProduct"); +const V3DeliveryMethod_1 = require("./V3DeliveryMethod"); +/** + * Check if a given object implements the V3FbsPosting interface. + */ +function instanceOfV3FbsPosting(value) { + return true; +} +function V3FbsPostingFromJSON(json) { + return V3FbsPostingFromJSONTyped(json, false); +} +function V3FbsPostingFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'addressee': json['addressee'] == null ? undefined : (0, V3AddresseeFbsLists_1.V3AddresseeFbsListsFromJSON)(json['addressee']), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, V3FbsPostingAnalyticsData_1.V3FbsPostingAnalyticsDataFromJSON)(json['analytics_data']), + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'barcodes': json['barcodes'] == null ? undefined : (0, V3Barcodes_1.V3BarcodesFromJSON)(json['barcodes']), + 'cancellation': json['cancellation'] == null ? undefined : (0, V3Cancellation_1.V3CancellationFromJSON)(json['cancellation']), + 'customer': json['customer'] == null ? undefined : (0, V3CustomerFbsLists_1.V3CustomerFbsListsFromJSON)(json['customer']), + 'container': json['container'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsContainer_1.PostingV4PostingFbsListResponsePostingsContainerFromJSON)(json['container']), + 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], + 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], + 'delivery_method': json['delivery_method'] == null ? undefined : (0, V3DeliveryMethod_1.V3DeliveryMethodFromJSON)(json['delivery_method']), + 'destination_place_id': json['destination_place_id'] == null ? undefined : json['destination_place_id'], + 'destination_place_name': json['destination_place_name'] == null ? undefined : json['destination_place_name'], + 'financial_data': json['financial_data'] == null ? undefined : (0, V3PostingFinancialData_1.V3PostingFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], + 'is_presortable': json['is_presortable'] == null ? undefined : json['is_presortable'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'legal_info': json['legal_info'] == null ? undefined : (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoFromJSON)(json['legal_info']), + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'optional': json['optional'] == null ? undefined : (0, V3FbsPostingDetailOptional_1.V3FbsPostingDetailOptionalFromJSON)(json['optional']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], + 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V3FbsPostingProduct_1.V3FbsPostingProductFromJSON)), + 'prr_option': json['prr_option'] == null ? undefined : json['prr_option'], + 'quantum_id': json['quantum_id'] == null ? undefined : json['quantum_id'], + 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], + 'requirements': json['requirements'] == null ? undefined : (0, V3FbsPostingRequirementsV3_1.V3FbsPostingRequirementsV3FromJSON)(json['requirements']), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], + 'sorting_center': json['sorting_center'] == null ? undefined : (0, PostingV3FbsPostingSortingCenter_1.PostingV3FbsPostingSortingCenterFromJSON)(json['sorting_center']), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'tariffication': json['tariffication'] == null ? undefined : (0, V3FbsTariffication_1.V3FbsTarifficationFromJSON)(json['tariffication']), + 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStep_1.PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON)), + }; +} +function V3FbsPostingToJSON(value) { + if (value == null) { + return value; + } + return { + 'addressee': (0, V3AddresseeFbsLists_1.V3AddresseeFbsListsToJSON)(value['addressee']), + 'analytics_data': (0, V3FbsPostingAnalyticsData_1.V3FbsPostingAnalyticsDataToJSON)(value['analytics_data']), + 'available_actions': value['available_actions'], + 'barcodes': (0, V3Barcodes_1.V3BarcodesToJSON)(value['barcodes']), + 'cancellation': (0, V3Cancellation_1.V3CancellationToJSON)(value['cancellation']), + 'customer': (0, V3CustomerFbsLists_1.V3CustomerFbsListsToJSON)(value['customer']), + 'container': (0, PostingV4PostingFbsListResponsePostingsContainer_1.PostingV4PostingFbsListResponsePostingsContainerToJSON)(value['container']), + 'container_sort_type': value['container_sort_type'], + 'delivering_date': value['delivering_date'], + 'delivery_method': (0, V3DeliveryMethod_1.V3DeliveryMethodToJSON)(value['delivery_method']), + 'destination_place_id': value['destination_place_id'], + 'destination_place_name': value['destination_place_name'], + 'financial_data': (0, V3PostingFinancialData_1.V3PostingFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'is_express': value['is_express'], + 'is_multibox': value['is_multibox'], + 'is_presortable': value['is_presortable'], + 'integration_type_flow': value['integration_type_flow'], + 'legal_info': (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoToJSON)(value['legal_info']), + 'multi_box_qty': value['multi_box_qty'], + 'optional': (0, V3FbsPostingDetailOptional_1.V3FbsPostingDetailOptionalToJSON)(value['optional']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'parent_posting_number': value['parent_posting_number'], + 'pickup_code_verified_at': value['pickup_code_verified_at'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V3FbsPostingProduct_1.V3FbsPostingProductToJSON)), + 'prr_option': value['prr_option'], + 'quantum_id': value['quantum_id'], + 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], + 'requirements': (0, V3FbsPostingRequirementsV3_1.V3FbsPostingRequirementsV3ToJSON)(value['requirements']), + 'shipment_date': value['shipment_date'], + 'shipment_date_without_delay': value['shipment_date_without_delay'], + 'sorting_center': (0, PostingV3FbsPostingSortingCenter_1.PostingV3FbsPostingSortingCenterToJSON)(value['sorting_center']), + 'status': value['status'], + 'substatus': value['substatus'], + 'tpl_integration_type': value['tpl_integration_type'], + 'tracking_number': value['tracking_number'], + 'tariffication': (0, V3FbsTariffication_1.V3FbsTarifficationToJSON)(value['tariffication']), + 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStep_1.PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON)), + }; +} diff --git a/dist/models/V3FbsPostingAnalyticsData.d.ts b/dist/models/V3FbsPostingAnalyticsData.d.ts new file mode 100644 index 0000000..cf973e8 --- /dev/null +++ b/dist/models/V3FbsPostingAnalyticsData.d.ts @@ -0,0 +1,122 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Данные аналитики. + * @export + * @interface V3FbsPostingAnalyticsData + */ +export interface V3FbsPostingAnalyticsData { + /** + * Город доставки. Только для отправлений rFBS и продавцов из СНГ. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + city?: string; + /** + * Дата и время начала доставки. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + delivery_date_begin?: string; + /** + * Дата и время конца доставки. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + delivery_date_end?: string; + /** + * Способ доставки. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + delivery_type?: string; + /** + * Признак, что получатель юридическое лицо: + * - `true` — юридическое лицо, + * - `false` — физическое лицо. + * + * @type {boolean} + * @memberof V3FbsPostingAnalyticsData + */ + is_legal?: boolean; + /** + * Наличие подписки Premium. + * @type {boolean} + * @memberof V3FbsPostingAnalyticsData + */ + is_premium?: boolean; + /** + * Способ оплаты: + * - `картой онлайн`, + * - `карта Ozon Банка`, + * - `автосписание с карты Ozon Банка при выдаче`, + * - `сохранённой картой при получении`, + * - `Система Быстрых Платежей`, + * - `Ozon Рассрочка`, + * - `оплата на расчётный счёт`, + * - `SberPay`, + * - `предоплата на стороне внешнего продавца`. + * + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + payment_type_group_name?: string; + /** + * Регион доставки. Только для отправлений rFBS. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + region?: string; + /** + * Служба доставки. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + tpl_provider?: string; + /** + * Идентификатор службы доставки. + * @type {number} + * @memberof V3FbsPostingAnalyticsData + */ + tpl_provider_id?: number; + /** + * Название склада отправки заказа. + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + warehouse?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof V3FbsPostingAnalyticsData + */ + warehouse_id?: number; + /** + * Дата и время начала доставки. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + client_delivery_date_begin?: string; + /** + * Ожидаемая дата, до которой заказ будет доставлен. Только для отправлений, оформленных через [Ozon Доставку](#tag/OzonLogistics). + * @type {string} + * @memberof V3FbsPostingAnalyticsData + */ + client_delivery_date_end?: string; +} +/** + * Check if a given object implements the V3FbsPostingAnalyticsData interface. + */ +export declare function instanceOfV3FbsPostingAnalyticsData(value: object): value is V3FbsPostingAnalyticsData; +export declare function V3FbsPostingAnalyticsDataFromJSON(json: any): V3FbsPostingAnalyticsData; +export declare function V3FbsPostingAnalyticsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingAnalyticsData; +export declare function V3FbsPostingAnalyticsDataToJSON(value?: V3FbsPostingAnalyticsData | null): any; diff --git a/dist/models/V3FbsPostingAnalyticsData.js b/dist/models/V3FbsPostingAnalyticsData.js new file mode 100644 index 0000000..17022d0 --- /dev/null +++ b/dist/models/V3FbsPostingAnalyticsData.js @@ -0,0 +1,70 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingAnalyticsData = instanceOfV3FbsPostingAnalyticsData; +exports.V3FbsPostingAnalyticsDataFromJSON = V3FbsPostingAnalyticsDataFromJSON; +exports.V3FbsPostingAnalyticsDataFromJSONTyped = V3FbsPostingAnalyticsDataFromJSONTyped; +exports.V3FbsPostingAnalyticsDataToJSON = V3FbsPostingAnalyticsDataToJSON; +/** + * Check if a given object implements the V3FbsPostingAnalyticsData interface. + */ +function instanceOfV3FbsPostingAnalyticsData(value) { + return true; +} +function V3FbsPostingAnalyticsDataFromJSON(json) { + return V3FbsPostingAnalyticsDataFromJSONTyped(json, false); +} +function V3FbsPostingAnalyticsDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'city': json['city'] == null ? undefined : json['city'], + 'delivery_date_begin': json['delivery_date_begin'] == null ? undefined : json['delivery_date_begin'], + 'delivery_date_end': json['delivery_date_end'] == null ? undefined : json['delivery_date_end'], + 'delivery_type': json['delivery_type'] == null ? undefined : json['delivery_type'], + 'is_legal': json['is_legal'] == null ? undefined : json['is_legal'], + 'is_premium': json['is_premium'] == null ? undefined : json['is_premium'], + 'payment_type_group_name': json['payment_type_group_name'] == null ? undefined : json['payment_type_group_name'], + 'region': json['region'] == null ? undefined : json['region'], + 'tpl_provider': json['tpl_provider'] == null ? undefined : json['tpl_provider'], + 'tpl_provider_id': json['tpl_provider_id'] == null ? undefined : json['tpl_provider_id'], + 'warehouse': json['warehouse'] == null ? undefined : json['warehouse'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'client_delivery_date_begin': json['client_delivery_date_begin'] == null ? undefined : json['client_delivery_date_begin'], + 'client_delivery_date_end': json['client_delivery_date_end'] == null ? undefined : json['client_delivery_date_end'], + }; +} +function V3FbsPostingAnalyticsDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'city': value['city'], + 'delivery_date_begin': value['delivery_date_begin'], + 'delivery_date_end': value['delivery_date_end'], + 'delivery_type': value['delivery_type'], + 'is_legal': value['is_legal'], + 'is_premium': value['is_premium'], + 'payment_type_group_name': value['payment_type_group_name'], + 'region': value['region'], + 'tpl_provider': value['tpl_provider'], + 'tpl_provider_id': value['tpl_provider_id'], + 'warehouse': value['warehouse'], + 'warehouse_id': value['warehouse_id'], + 'client_delivery_date_begin': value['client_delivery_date_begin'], + 'client_delivery_date_end': value['client_delivery_date_end'], + }; +} diff --git a/dist/models/V3FbsPostingDetail.d.ts b/dist/models/V3FbsPostingDetail.d.ts new file mode 100644 index 0000000..f240014 --- /dev/null +++ b/dist/models/V3FbsPostingDetail.d.ts @@ -0,0 +1,444 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3AdditionalDataItem } from './V3AdditionalDataItem'; +import type { PostingV3FbsPostingDetailSortingCenter } from './PostingV3FbsPostingDetailSortingCenter'; +import type { PostingV3FbsPostingDetailExternalOrder } from './PostingV3FbsPostingDetailExternalOrder'; +import type { V3FbsPostingRequirementsV3 } from './V3FbsPostingRequirementsV3'; +import type { V2FboSinglePostingLegalInfo } from './V2FboSinglePostingLegalInfo'; +import type { V3PostingProductDetail } from './V3PostingProductDetail'; +import type { PostingV4PostingFbsListResponsePostingsTarifficationStep } from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +import type { FbsPostingDetailCourier } from './FbsPostingDetailCourier'; +import type { V3FbsPostingProductExemplarsV3 } from './V3FbsPostingProductExemplarsV3'; +import type { V3Customer } from './V3Customer'; +import type { V3PostingFinancialData } from './V3PostingFinancialData'; +import type { FbsPostingDetailPrrOption } from './FbsPostingDetailPrrOption'; +import type { V3FbsTariffication } from './V3FbsTariffication'; +import type { V3FbsPostingAnalyticsData } from './V3FbsPostingAnalyticsData'; +import type { V3Barcodes } from './V3Barcodes'; +import type { V3Cancellation } from './V3Cancellation'; +import type { V3FbsPostingDetailOptional } from './V3FbsPostingDetailOptional'; +import type { V3FbsPostingDetailRelatedPostings } from './V3FbsPostingDetailRelatedPostings'; +import type { PostingV4PostingFbsListResponsePostingsContainer } from './PostingV4PostingFbsListResponsePostingsContainer'; +import type { V3Addressee } from './V3Addressee'; +import type { V3DeliveryMethod } from './V3DeliveryMethod'; +/** + * Информация об отправлении. + * @export + * @interface V3FbsPostingDetail + */ +export interface V3FbsPostingDetail { + /** + * + * @type {Array} + * @memberof V3FbsPostingDetail + */ + additional_data?: Array; + /** + * + * @type {V3Addressee} + * @memberof V3FbsPostingDetail + */ + addressee?: V3Addressee; + /** + * + * @type {V3FbsPostingAnalyticsData} + * @memberof V3FbsPostingDetail + */ + analytics_data?: V3FbsPostingAnalyticsData; + /** + * Доступные действия и информация об отправлении: + * - `arbitration` — открыть спор; + * - `awaiting_delivery` — перевести в статус «Ожидает отгрузки»; + * - `can_create_chat` — начать чат с покупателем; + * - `cancel` — отменить отправление; + * - `click_track_number` — просмотреть по трек-номеру историю изменения статусов в личном кабинете; + * - `customer_phone_available` — телефон покупателя; + * - `has_weight_products` — весовые товары в отправлении; + * - `hide_region_and_city` — скрыть регион и город покупателя в отчёте; + * - `invoice_get` — получить информацию из счёта-фактуры; + * - `invoice_send` — создать счёт-фактуру; + * - `invoice_update` — отредактировать счёт-фактуру; + * - `label_download_big` — скачать большую этикетку; + * - `label_download_small` — скачать маленькую этикетку; + * - `label_download` — скачать этикетку; + * - `non_int_delivered` — перевести в статус «Условно доставлен»; + * - `non_int_delivering` — перевести в статус «Доставляется»; + * - `non_int_last_mile` — перевести в статус «Курьер в пути»; + * - `product_cancel` — отменить часть товаров в отправлении; + * - `set_cutoff` — необходимо указать дату отгрузки, воспользуйтесь методом [/v1/posting/cutoff/set](#operation/PostingAPI_SetPostingCutoff); + * - `set_timeslot` — изменить время доставки покупателю; + * - `set_track_number` — указать или изменить трек-номер; + * - `ship_async_in_process` — отправление собирается; + * - `ship_async_retry` — собрать отправление повторно после ошибки сборки; + * - `ship_async` — собрать отправление; + * - `ship_with_additional_info` — необходимо заполнить дополнительную информацию; + * - `ship` — собрать отправление; + * - `update_cis` — изменить дополнительную информацию. + * + * @type {Array} + * @memberof V3FbsPostingDetail + */ + available_actions?: Array; + /** + * + * @type {V3Barcodes} + * @memberof V3FbsPostingDetail + */ + barcodes?: V3Barcodes; + /** + * + * @type {V3Cancellation} + * @memberof V3FbsPostingDetail + */ + cancellation?: V3Cancellation; + /** + * + * @type {FbsPostingDetailCourier} + * @memberof V3FbsPostingDetail + */ + courier?: FbsPostingDetailCourier; + /** + * + * @type {V3Customer} + * @memberof V3FbsPostingDetail + */ + customer?: V3Customer; + /** + * + * @type {PostingV4PostingFbsListResponsePostingsContainer} + * @memberof V3FbsPostingDetail + */ + container?: PostingV4PostingFbsListResponsePostingsContainer; + /** + * Тип сортировки грузоместа: + * - `SORT` — сортируемый; + * - `NON-SORT` — несортируемый. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + container_sort_type?: string; + /** + * Дата передачи отправления в доставку. + * @type {string} + * @memberof V3FbsPostingDetail + */ + delivering_date?: string; + /** + * + * @type {V3DeliveryMethod} + * @memberof V3FbsPostingDetail + */ + delivery_method?: V3DeliveryMethod; + /** + * Стоимость доставки. + * @type {string} + * @memberof V3FbsPostingDetail + */ + delivery_price?: string; + /** + * + * @type {PostingV3FbsPostingDetailExternalOrder} + * @memberof V3FbsPostingDetail + */ + external_order?: PostingV3FbsPostingDetailExternalOrder; + /** + * Дата фактической передачи отправления в доставку. + * @type {string} + * @memberof V3FbsPostingDetail + */ + fact_delivery_date?: string; + /** + * + * @type {V3PostingFinancialData} + * @memberof V3FbsPostingDetail + */ + financial_data?: V3PostingFinancialData; + /** + * Дата и время начала обработки отправления. + * @type {string} + * @memberof V3FbsPostingDetail + */ + in_process_at?: string; + /** + * Процесс обработки отправления: + * - `ozon` — доставка силами Ozon; + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ; + * - `non_integrated` — доставка силами продавца; + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ; + * - `hybrid` — гибридная интеграция; + * - `hybrid_aggregator` — гибридная интеграция с доставкой внешней службой, Ozon регистрирует заказ; + * - `hybrid_non_integrated` — гибридная интеграция с доставкой силами продавца; + * - `hybrid_3pl_tracking` — гибридная интеграция с доставкой внешней службой, продавец регистрирует заказ; + * - `click_and_collect` — бронирование в магазине партнёра; + * - `FBP` — доставка с партнёрских складов Ozon. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + integration_type_flow?: string; + /** + * Если использовалась быстрая доставка Ozon Express — `true`. + * @type {boolean} + * @memberof V3FbsPostingDetail + */ + is_express?: boolean; + /** + * Признак, что в отправлении есть многокоробочный товар и нужно передать количество коробок для него: + * + * - `true` — до сборки передайте количество коробок через метод [/v3/posting/multiboxqty/set](#operation/PostingAPI_PostingMultiBoxQtySetV3). + * - `false` — отправление собрано с указанием количества коробок в параметре `multi_box_qty` или в отправлении нет многокоробочного товара. + * + * @type {boolean} + * @memberof V3FbsPostingDetail + */ + is_multibox?: boolean; + /** + * + * @type {V2FboSinglePostingLegalInfo} + * @memberof V3FbsPostingDetail + */ + legal_info?: V2FboSinglePostingLegalInfo; + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V3FbsPostingDetail + */ + multi_box_qty?: number; + /** + * + * @type {V3FbsPostingDetailOptional} + * @memberof V3FbsPostingDetail + */ + optional?: V3FbsPostingDetailOptional; + /** + * Идентификатор заказа, к которому относится отправление. + * @type {number} + * @memberof V3FbsPostingDetail + */ + order_id?: number; + /** + * Номер заказа, к которому относится отправление. + * @type {string} + * @memberof V3FbsPostingDetail + */ + order_number?: string; + /** + * Номер родительского отправления, в результате разделения которого появилось текущее. + * @type {string} + * @memberof V3FbsPostingDetail + */ + parent_posting_number?: string; + /** + * Дата и время успешной валидации кода курьера. Чтобы проверить код курьера, воспользуйтесь методом [/v1/posting/fbs/pick-up-code/verify](#operation/PostingAPI_PostingFBSPickupCodeVerify). + * @type {string} + * @memberof V3FbsPostingDetail + */ + pickup_code_verified_at?: string; + /** + * Номер отправления. + * @type {string} + * @memberof V3FbsPostingDetail + */ + posting_number?: string; + /** + * + * @type {V3FbsPostingProductExemplarsV3} + * @memberof V3FbsPostingDetail + */ + product_exemplars?: V3FbsPostingProductExemplarsV3; + /** + * Массив товаров в отправлении. + * @type {Array} + * @memberof V3FbsPostingDetail + */ + products?: Array; + /** + * Статус службы доставки. + * @type {string} + * @memberof V3FbsPostingDetail + */ + provider_status?: string; + /** + * + * @type {FbsPostingDetailPrrOption} + * @memberof V3FbsPostingDetail + */ + prr_option?: FbsPostingDetailPrrOption; + /** + * + * @type {V3FbsPostingDetailRelatedPostings} + * @memberof V3FbsPostingDetail + */ + related_postings?: V3FbsPostingDetailRelatedPostings; + /** + * Список номеров связанных весовых отправлений. + * @type {Array} + * @memberof V3FbsPostingDetail + */ + related_weight_postings?: Array; + /** + * `true`, если нужно заполнить атрибуты прослеживаемости. + * + * @type {boolean} + * @memberof V3FbsPostingDetail + */ + require_blr_traceable_attrs?: boolean; + /** + * + * @type {V3FbsPostingRequirementsV3} + * @memberof V3FbsPostingDetail + */ + requirements?: V3FbsPostingRequirementsV3; + /** + * Дата и время, до которой необходимо собрать отправление. Показываем рекомендованное время отгрузки. По истечении этого времени начнёт применяться новый тариф, информацию о нём уточняйте в поле `tariffication`. + * @type {string} + * @memberof V3FbsPostingDetail + */ + shipment_date?: string; + /** + * Дата и время отгрузки без просрочки. + * @type {string} + * @memberof V3FbsPostingDetail + */ + shipment_date_without_delay?: string; + /** + * + * @type {PostingV3FbsPostingDetailSortingCenter} + * @memberof V3FbsPostingDetail + */ + sorting_center?: PostingV3FbsPostingDetailSortingCenter; + /** + * Статус отправления: + * - `acceptance_in_progress` — идёт приёмка, + * - `arbitration` — арбитраж, + * - `awaiting_approve` — ожидает подтверждения, + * - `awaiting_deliver` — ожидает отгрузки, + * - `awaiting_packaging` — ожидает упаковки, + * - `awaiting_registration` — ожидает регистрации, + * - `awaiting_verification` — создано, + * - `cancelled` — отменено, + * - `cancelled_from_split_pending` — отменён из-за разделения отправления, + * - `client_arbitration` — клиентский арбитраж доставки, + * - `delivered` — доставлено, + * - `delivering` — доставляется, + * - `driver_pickup` — у водителя, + * - `not_accepted` — не принят на сортировочном центре, + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + status?: string; + /** + * Подстатус отправления: + * - `posting_acceptance_in_progress` — идёт приёмка, + * - `posting_in_arbitration` — арбитраж, + * - `posting_created` — создано, + * - `posting_in_carriage` — в перевозке, + * - `posting_not_in_carriage` — не добавлено в перевозку, + * - `posting_registered` — зарегистрировано, + * - `posting_transferring_to_delivery` (`status=awaiting_deliver`) — передаётся в доставку, + * - `posting_awaiting_passport_data` — ожидает паспортных данных, + * - `posting_created` — создано, + * - `posting_awaiting_registration` — ожидает регистрации, + * - `posting_registration_error` — ошибка регистрации, + * - `posting_transferring_to_delivery` (`status=awaiting_registration`) — передаётся курьеру, + * - `posting_split_pending` — создано, + * - `posting_canceled` — отменено, + * - `posting_in_client_arbitration` — клиентский арбитраж доставки, + * - `posting_delivered` — доставлено, + * - `posting_received` — получено, + * - `posting_conditionally_delivered` — условно доставлено, + * - `posting_in_courier_service` — курьер в пути, + * - `posting_in_pickup_point` — в пункте выдачи, + * - `posting_on_way_to_city` — в пути в ваш город, + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи, + * - `posting_returned_to_warehouse` — возвращено на склад, + * - `posting_transferred_to_courier_service` — передаётся в службу доставки, + * - `posting_driver_pick_up` — у водителя, + * - `posting_not_in_sort_center` — не принято на сортировочном центре, + * - `ship_failed` — сборка не удалась. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + substatus?: string; + /** + * Предыдущий подстатус отправления. Возможные значения: + * - `posting_acceptance_in_progress` — идёт приёмка, + * - `posting_in_arbitration` — арбитраж, + * - `posting_created` — создано, + * - `posting_in_carriage` — в перевозке, + * - `posting_not_in_carriage` — не добавлено в перевозку, + * - `posting_registered` — зарегистрировано, + * - `posting_transferring_to_delivery` (`status=awaiting_deliver`) — передаётся в доставку, + * - `posting_awaiting_passport_data` — ожидает паспортных данных, + * - `posting_created` — создано, + * - `posting_awaiting_registration` — ожидает регистрации, + * - `posting_registration_error` — ошибка регистрации, + * - `posting_transferring_to_delivery` (`status=awaiting_registration`) — передаётся курьеру, + * - `posting_split_pending` — создано, + * - `posting_canceled` — отменено, + * - `posting_in_client_arbitration` — клиентский арбитраж доставки, + * - `posting_delivered` — доставлено, + * - `posting_received` — получено, + * - `posting_conditionally_delivered` — условно доставлено, + * - `posting_in_courier_service` — курьер в пути, + * - `posting_in_pickup_point` — в пункте выдачи, + * - `posting_on_way_to_city` — в пути в ваш город, + * - `posting_on_way_to_pickup_point` — в пути в пункт выдачи, + * - `posting_returned_to_warehouse` — возвращено на склад, + * - `posting_transferred_to_courier_service` — передаётся в службу доставки, + * - `posting_driver_pick_up` — у водителя, + * - `posting_not_in_sort_center` — не принято на сортировочном центре. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + previous_substatus?: string; + /** + * Тип интеграции со службой доставки: + * - `ozon` — доставка через Ozon логистику. + * - `aggregator` — доставка внешней службой, Ozon регистрирует заказ. + * - `3pl_tracking` — доставка внешней службой, продавец регистрирует заказ. + * - `non_integrated` — доставка силами продавца. + * + * @type {string} + * @memberof V3FbsPostingDetail + */ + tpl_integration_type?: string; + /** + * Трек-номер отправления. + * @type {string} + * @memberof V3FbsPostingDetail + */ + tracking_number?: string; + /** + * + * @type {V3FbsTariffication} + * @memberof V3FbsPostingDetail + */ + tariffication?: V3FbsTariffication; + /** + * Этапы тарификации. + * @type {Array} + * @memberof V3FbsPostingDetail + */ + tariffication_steps?: Array; +} +/** + * Check if a given object implements the V3FbsPostingDetail interface. + */ +export declare function instanceOfV3FbsPostingDetail(value: object): value is V3FbsPostingDetail; +export declare function V3FbsPostingDetailFromJSON(json: any): V3FbsPostingDetail; +export declare function V3FbsPostingDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingDetail; +export declare function V3FbsPostingDetailToJSON(value?: V3FbsPostingDetail | null): any; diff --git a/dist/models/V3FbsPostingDetail.js b/dist/models/V3FbsPostingDetail.js new file mode 100644 index 0000000..e69d81b --- /dev/null +++ b/dist/models/V3FbsPostingDetail.js @@ -0,0 +1,155 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingDetail = instanceOfV3FbsPostingDetail; +exports.V3FbsPostingDetailFromJSON = V3FbsPostingDetailFromJSON; +exports.V3FbsPostingDetailFromJSONTyped = V3FbsPostingDetailFromJSONTyped; +exports.V3FbsPostingDetailToJSON = V3FbsPostingDetailToJSON; +const V3AdditionalDataItem_1 = require("./V3AdditionalDataItem"); +const PostingV3FbsPostingDetailSortingCenter_1 = require("./PostingV3FbsPostingDetailSortingCenter"); +const PostingV3FbsPostingDetailExternalOrder_1 = require("./PostingV3FbsPostingDetailExternalOrder"); +const V3FbsPostingRequirementsV3_1 = require("./V3FbsPostingRequirementsV3"); +const V2FboSinglePostingLegalInfo_1 = require("./V2FboSinglePostingLegalInfo"); +const V3PostingProductDetail_1 = require("./V3PostingProductDetail"); +const PostingV4PostingFbsListResponsePostingsTarifficationStep_1 = require("./PostingV4PostingFbsListResponsePostingsTarifficationStep"); +const FbsPostingDetailCourier_1 = require("./FbsPostingDetailCourier"); +const V3FbsPostingProductExemplarsV3_1 = require("./V3FbsPostingProductExemplarsV3"); +const V3Customer_1 = require("./V3Customer"); +const V3PostingFinancialData_1 = require("./V3PostingFinancialData"); +const FbsPostingDetailPrrOption_1 = require("./FbsPostingDetailPrrOption"); +const V3FbsTariffication_1 = require("./V3FbsTariffication"); +const V3FbsPostingAnalyticsData_1 = require("./V3FbsPostingAnalyticsData"); +const V3Barcodes_1 = require("./V3Barcodes"); +const V3Cancellation_1 = require("./V3Cancellation"); +const V3FbsPostingDetailOptional_1 = require("./V3FbsPostingDetailOptional"); +const V3FbsPostingDetailRelatedPostings_1 = require("./V3FbsPostingDetailRelatedPostings"); +const PostingV4PostingFbsListResponsePostingsContainer_1 = require("./PostingV4PostingFbsListResponsePostingsContainer"); +const V3Addressee_1 = require("./V3Addressee"); +const V3DeliveryMethod_1 = require("./V3DeliveryMethod"); +/** + * Check if a given object implements the V3FbsPostingDetail interface. + */ +function instanceOfV3FbsPostingDetail(value) { + return true; +} +function V3FbsPostingDetailFromJSON(json) { + return V3FbsPostingDetailFromJSONTyped(json, false); +} +function V3FbsPostingDetailFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'additional_data': json['additional_data'] == null ? undefined : (json['additional_data'].map(V3AdditionalDataItem_1.V3AdditionalDataItemFromJSON)), + 'addressee': json['addressee'] == null ? undefined : (0, V3Addressee_1.V3AddresseeFromJSON)(json['addressee']), + 'analytics_data': json['analytics_data'] == null ? undefined : (0, V3FbsPostingAnalyticsData_1.V3FbsPostingAnalyticsDataFromJSON)(json['analytics_data']), + 'available_actions': json['available_actions'] == null ? undefined : json['available_actions'], + 'barcodes': json['barcodes'] == null ? undefined : (0, V3Barcodes_1.V3BarcodesFromJSON)(json['barcodes']), + 'cancellation': json['cancellation'] == null ? undefined : (0, V3Cancellation_1.V3CancellationFromJSON)(json['cancellation']), + 'courier': json['courier'] == null ? undefined : (0, FbsPostingDetailCourier_1.FbsPostingDetailCourierFromJSON)(json['courier']), + 'customer': json['customer'] == null ? undefined : (0, V3Customer_1.V3CustomerFromJSON)(json['customer']), + 'container': json['container'] == null ? undefined : (0, PostingV4PostingFbsListResponsePostingsContainer_1.PostingV4PostingFbsListResponsePostingsContainerFromJSON)(json['container']), + 'container_sort_type': json['container_sort_type'] == null ? undefined : json['container_sort_type'], + 'delivering_date': json['delivering_date'] == null ? undefined : json['delivering_date'], + 'delivery_method': json['delivery_method'] == null ? undefined : (0, V3DeliveryMethod_1.V3DeliveryMethodFromJSON)(json['delivery_method']), + 'delivery_price': json['delivery_price'] == null ? undefined : json['delivery_price'], + 'external_order': json['external_order'] == null ? undefined : (0, PostingV3FbsPostingDetailExternalOrder_1.PostingV3FbsPostingDetailExternalOrderFromJSON)(json['external_order']), + 'fact_delivery_date': json['fact_delivery_date'] == null ? undefined : json['fact_delivery_date'], + 'financial_data': json['financial_data'] == null ? undefined : (0, V3PostingFinancialData_1.V3PostingFinancialDataFromJSON)(json['financial_data']), + 'in_process_at': json['in_process_at'] == null ? undefined : json['in_process_at'], + 'integration_type_flow': json['integration_type_flow'] == null ? undefined : json['integration_type_flow'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_multibox': json['is_multibox'] == null ? undefined : json['is_multibox'], + 'legal_info': json['legal_info'] == null ? undefined : (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoFromJSON)(json['legal_info']), + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'optional': json['optional'] == null ? undefined : (0, V3FbsPostingDetailOptional_1.V3FbsPostingDetailOptionalFromJSON)(json['optional']), + 'order_id': json['order_id'] == null ? undefined : json['order_id'], + 'order_number': json['order_number'] == null ? undefined : json['order_number'], + 'parent_posting_number': json['parent_posting_number'] == null ? undefined : json['parent_posting_number'], + 'pickup_code_verified_at': json['pickup_code_verified_at'] == null ? undefined : json['pickup_code_verified_at'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'product_exemplars': json['product_exemplars'] == null ? undefined : (0, V3FbsPostingProductExemplarsV3_1.V3FbsPostingProductExemplarsV3FromJSON)(json['product_exemplars']), + 'products': json['products'] == null ? undefined : (json['products'].map(V3PostingProductDetail_1.V3PostingProductDetailFromJSON)), + 'provider_status': json['provider_status'] == null ? undefined : json['provider_status'], + 'prr_option': json['prr_option'] == null ? undefined : (0, FbsPostingDetailPrrOption_1.FbsPostingDetailPrrOptionFromJSON)(json['prr_option']), + 'related_postings': json['related_postings'] == null ? undefined : (0, V3FbsPostingDetailRelatedPostings_1.V3FbsPostingDetailRelatedPostingsFromJSON)(json['related_postings']), + 'related_weight_postings': json['related_weight_postings'] == null ? undefined : json['related_weight_postings'], + 'require_blr_traceable_attrs': json['require_blr_traceable_attrs'] == null ? undefined : json['require_blr_traceable_attrs'], + 'requirements': json['requirements'] == null ? undefined : (0, V3FbsPostingRequirementsV3_1.V3FbsPostingRequirementsV3FromJSON)(json['requirements']), + 'shipment_date': json['shipment_date'] == null ? undefined : json['shipment_date'], + 'shipment_date_without_delay': json['shipment_date_without_delay'] == null ? undefined : json['shipment_date_without_delay'], + 'sorting_center': json['sorting_center'] == null ? undefined : (0, PostingV3FbsPostingDetailSortingCenter_1.PostingV3FbsPostingDetailSortingCenterFromJSON)(json['sorting_center']), + 'status': json['status'] == null ? undefined : json['status'], + 'substatus': json['substatus'] == null ? undefined : json['substatus'], + 'previous_substatus': json['previous_substatus'] == null ? undefined : json['previous_substatus'], + 'tpl_integration_type': json['tpl_integration_type'] == null ? undefined : json['tpl_integration_type'], + 'tracking_number': json['tracking_number'] == null ? undefined : json['tracking_number'], + 'tariffication': json['tariffication'] == null ? undefined : (0, V3FbsTariffication_1.V3FbsTarifficationFromJSON)(json['tariffication']), + 'tariffication_steps': json['tariffication_steps'] == null ? undefined : (json['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStep_1.PostingV4PostingFbsListResponsePostingsTarifficationStepFromJSON)), + }; +} +function V3FbsPostingDetailToJSON(value) { + if (value == null) { + return value; + } + return { + 'additional_data': value['additional_data'] == null ? undefined : (value['additional_data'].map(V3AdditionalDataItem_1.V3AdditionalDataItemToJSON)), + 'addressee': (0, V3Addressee_1.V3AddresseeToJSON)(value['addressee']), + 'analytics_data': (0, V3FbsPostingAnalyticsData_1.V3FbsPostingAnalyticsDataToJSON)(value['analytics_data']), + 'available_actions': value['available_actions'], + 'barcodes': (0, V3Barcodes_1.V3BarcodesToJSON)(value['barcodes']), + 'cancellation': (0, V3Cancellation_1.V3CancellationToJSON)(value['cancellation']), + 'courier': (0, FbsPostingDetailCourier_1.FbsPostingDetailCourierToJSON)(value['courier']), + 'customer': (0, V3Customer_1.V3CustomerToJSON)(value['customer']), + 'container': (0, PostingV4PostingFbsListResponsePostingsContainer_1.PostingV4PostingFbsListResponsePostingsContainerToJSON)(value['container']), + 'container_sort_type': value['container_sort_type'], + 'delivering_date': value['delivering_date'], + 'delivery_method': (0, V3DeliveryMethod_1.V3DeliveryMethodToJSON)(value['delivery_method']), + 'delivery_price': value['delivery_price'], + 'external_order': (0, PostingV3FbsPostingDetailExternalOrder_1.PostingV3FbsPostingDetailExternalOrderToJSON)(value['external_order']), + 'fact_delivery_date': value['fact_delivery_date'], + 'financial_data': (0, V3PostingFinancialData_1.V3PostingFinancialDataToJSON)(value['financial_data']), + 'in_process_at': value['in_process_at'], + 'integration_type_flow': value['integration_type_flow'], + 'is_express': value['is_express'], + 'is_multibox': value['is_multibox'], + 'legal_info': (0, V2FboSinglePostingLegalInfo_1.V2FboSinglePostingLegalInfoToJSON)(value['legal_info']), + 'multi_box_qty': value['multi_box_qty'], + 'optional': (0, V3FbsPostingDetailOptional_1.V3FbsPostingDetailOptionalToJSON)(value['optional']), + 'order_id': value['order_id'], + 'order_number': value['order_number'], + 'parent_posting_number': value['parent_posting_number'], + 'pickup_code_verified_at': value['pickup_code_verified_at'], + 'posting_number': value['posting_number'], + 'product_exemplars': (0, V3FbsPostingProductExemplarsV3_1.V3FbsPostingProductExemplarsV3ToJSON)(value['product_exemplars']), + 'products': value['products'] == null ? undefined : (value['products'].map(V3PostingProductDetail_1.V3PostingProductDetailToJSON)), + 'provider_status': value['provider_status'], + 'prr_option': (0, FbsPostingDetailPrrOption_1.FbsPostingDetailPrrOptionToJSON)(value['prr_option']), + 'related_postings': (0, V3FbsPostingDetailRelatedPostings_1.V3FbsPostingDetailRelatedPostingsToJSON)(value['related_postings']), + 'related_weight_postings': value['related_weight_postings'], + 'require_blr_traceable_attrs': value['require_blr_traceable_attrs'], + 'requirements': (0, V3FbsPostingRequirementsV3_1.V3FbsPostingRequirementsV3ToJSON)(value['requirements']), + 'shipment_date': value['shipment_date'], + 'shipment_date_without_delay': value['shipment_date_without_delay'], + 'sorting_center': (0, PostingV3FbsPostingDetailSortingCenter_1.PostingV3FbsPostingDetailSortingCenterToJSON)(value['sorting_center']), + 'status': value['status'], + 'substatus': value['substatus'], + 'previous_substatus': value['previous_substatus'], + 'tpl_integration_type': value['tpl_integration_type'], + 'tracking_number': value['tracking_number'], + 'tariffication': (0, V3FbsTariffication_1.V3FbsTarifficationToJSON)(value['tariffication']), + 'tariffication_steps': value['tariffication_steps'] == null ? undefined : (value['tariffication_steps'].map(PostingV4PostingFbsListResponsePostingsTarifficationStep_1.PostingV4PostingFbsListResponsePostingsTarifficationStepToJSON)), + }; +} diff --git a/dist/models/V3FbsPostingDetailOptional.d.ts b/dist/models/V3FbsPostingDetailOptional.d.ts new file mode 100644 index 0000000..01015fe --- /dev/null +++ b/dist/models/V3FbsPostingDetailOptional.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Список товаров с дополнительными характеристиками. + * @export + * @interface V3FbsPostingDetailOptional + */ +export interface V3FbsPostingDetailOptional { + /** + * Список товаров с возможной маркировкой. + * @type {Array} + * @memberof V3FbsPostingDetailOptional + */ + products_with_possible_mandatory_mark?: Array; +} +/** + * Check if a given object implements the V3FbsPostingDetailOptional interface. + */ +export declare function instanceOfV3FbsPostingDetailOptional(value: object): value is V3FbsPostingDetailOptional; +export declare function V3FbsPostingDetailOptionalFromJSON(json: any): V3FbsPostingDetailOptional; +export declare function V3FbsPostingDetailOptionalFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingDetailOptional; +export declare function V3FbsPostingDetailOptionalToJSON(value?: V3FbsPostingDetailOptional | null): any; diff --git a/dist/models/V3FbsPostingDetailOptional.js b/dist/models/V3FbsPostingDetailOptional.js new file mode 100644 index 0000000..ffce736 --- /dev/null +++ b/dist/models/V3FbsPostingDetailOptional.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingDetailOptional = instanceOfV3FbsPostingDetailOptional; +exports.V3FbsPostingDetailOptionalFromJSON = V3FbsPostingDetailOptionalFromJSON; +exports.V3FbsPostingDetailOptionalFromJSONTyped = V3FbsPostingDetailOptionalFromJSONTyped; +exports.V3FbsPostingDetailOptionalToJSON = V3FbsPostingDetailOptionalToJSON; +/** + * Check if a given object implements the V3FbsPostingDetailOptional interface. + */ +function instanceOfV3FbsPostingDetailOptional(value) { + return true; +} +function V3FbsPostingDetailOptionalFromJSON(json) { + return V3FbsPostingDetailOptionalFromJSONTyped(json, false); +} +function V3FbsPostingDetailOptionalFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_with_possible_mandatory_mark': json['products_with_possible_mandatory_mark'] == null ? undefined : json['products_with_possible_mandatory_mark'], + }; +} +function V3FbsPostingDetailOptionalToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_with_possible_mandatory_mark': value['products_with_possible_mandatory_mark'], + }; +} diff --git a/dist/models/V3FbsPostingDetailRelatedPostings.d.ts b/dist/models/V3FbsPostingDetailRelatedPostings.d.ts new file mode 100644 index 0000000..6038ba5 --- /dev/null +++ b/dist/models/V3FbsPostingDetailRelatedPostings.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Связанные отправления. + * @export + * @interface V3FbsPostingDetailRelatedPostings + */ +export interface V3FbsPostingDetailRelatedPostings { + /** + * Список номеров связанных отправлений. + * @type {Array} + * @memberof V3FbsPostingDetailRelatedPostings + */ + related_posting_numbers?: Array; +} +/** + * Check if a given object implements the V3FbsPostingDetailRelatedPostings interface. + */ +export declare function instanceOfV3FbsPostingDetailRelatedPostings(value: object): value is V3FbsPostingDetailRelatedPostings; +export declare function V3FbsPostingDetailRelatedPostingsFromJSON(json: any): V3FbsPostingDetailRelatedPostings; +export declare function V3FbsPostingDetailRelatedPostingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingDetailRelatedPostings; +export declare function V3FbsPostingDetailRelatedPostingsToJSON(value?: V3FbsPostingDetailRelatedPostings | null): any; diff --git a/dist/models/V3FbsPostingDetailRelatedPostings.js b/dist/models/V3FbsPostingDetailRelatedPostings.js new file mode 100644 index 0000000..d050cac --- /dev/null +++ b/dist/models/V3FbsPostingDetailRelatedPostings.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingDetailRelatedPostings = instanceOfV3FbsPostingDetailRelatedPostings; +exports.V3FbsPostingDetailRelatedPostingsFromJSON = V3FbsPostingDetailRelatedPostingsFromJSON; +exports.V3FbsPostingDetailRelatedPostingsFromJSONTyped = V3FbsPostingDetailRelatedPostingsFromJSONTyped; +exports.V3FbsPostingDetailRelatedPostingsToJSON = V3FbsPostingDetailRelatedPostingsToJSON; +/** + * Check if a given object implements the V3FbsPostingDetailRelatedPostings interface. + */ +function instanceOfV3FbsPostingDetailRelatedPostings(value) { + return true; +} +function V3FbsPostingDetailRelatedPostingsFromJSON(json) { + return V3FbsPostingDetailRelatedPostingsFromJSONTyped(json, false); +} +function V3FbsPostingDetailRelatedPostingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'related_posting_numbers': json['related_posting_numbers'] == null ? undefined : json['related_posting_numbers'], + }; +} +function V3FbsPostingDetailRelatedPostingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'related_posting_numbers': value['related_posting_numbers'], + }; +} diff --git a/dist/models/V3FbsPostingExemplarProductV3.d.ts b/dist/models/V3FbsPostingExemplarProductV3.d.ts new file mode 100644 index 0000000..c212fe0 --- /dev/null +++ b/dist/models/V3FbsPostingExemplarProductV3.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPostingProductExemplarInfoV3 } from './V3FbsPostingProductExemplarInfoV3'; +/** + * Список товаров и экземпляров. + * @export + * @interface V3FbsPostingExemplarProductV3 + */ +export interface V3FbsPostingExemplarProductV3 { + /** + * Информация по экземплярам. + * @type {Array} + * @memberof V3FbsPostingExemplarProductV3 + */ + exemplars?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V3FbsPostingExemplarProductV3 + */ + sku?: number; +} +/** + * Check if a given object implements the V3FbsPostingExemplarProductV3 interface. + */ +export declare function instanceOfV3FbsPostingExemplarProductV3(value: object): value is V3FbsPostingExemplarProductV3; +export declare function V3FbsPostingExemplarProductV3FromJSON(json: any): V3FbsPostingExemplarProductV3; +export declare function V3FbsPostingExemplarProductV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingExemplarProductV3; +export declare function V3FbsPostingExemplarProductV3ToJSON(value?: V3FbsPostingExemplarProductV3 | null): any; diff --git a/dist/models/V3FbsPostingExemplarProductV3.js b/dist/models/V3FbsPostingExemplarProductV3.js new file mode 100644 index 0000000..ab39722 --- /dev/null +++ b/dist/models/V3FbsPostingExemplarProductV3.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingExemplarProductV3 = instanceOfV3FbsPostingExemplarProductV3; +exports.V3FbsPostingExemplarProductV3FromJSON = V3FbsPostingExemplarProductV3FromJSON; +exports.V3FbsPostingExemplarProductV3FromJSONTyped = V3FbsPostingExemplarProductV3FromJSONTyped; +exports.V3FbsPostingExemplarProductV3ToJSON = V3FbsPostingExemplarProductV3ToJSON; +const V3FbsPostingProductExemplarInfoV3_1 = require("./V3FbsPostingProductExemplarInfoV3"); +/** + * Check if a given object implements the V3FbsPostingExemplarProductV3 interface. + */ +function instanceOfV3FbsPostingExemplarProductV3(value) { + return true; +} +function V3FbsPostingExemplarProductV3FromJSON(json) { + return V3FbsPostingExemplarProductV3FromJSONTyped(json, false); +} +function V3FbsPostingExemplarProductV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(V3FbsPostingProductExemplarInfoV3_1.V3FbsPostingProductExemplarInfoV3FromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V3FbsPostingExemplarProductV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(V3FbsPostingProductExemplarInfoV3_1.V3FbsPostingProductExemplarInfoV3ToJSON)), + 'sku': value['sku'], + }; +} diff --git a/dist/models/V3FbsPostingProduct.d.ts b/dist/models/V3FbsPostingProduct.d.ts new file mode 100644 index 0000000..0fea491 --- /dev/null +++ b/dist/models/V3FbsPostingProduct.d.ts @@ -0,0 +1,91 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3FbsPostingProduct + */ +export interface V3FbsPostingProduct { + /** + * Название товара. + * @type {string} + * @memberof V3FbsPostingProduct + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V3FbsPostingProduct + */ + offer_id?: string; + /** + * Цена товара. + * @type {string} + * @memberof V3FbsPostingProduct + */ + price?: string; + /** + * Количество товара в отправлении. + * @type {number} + * @memberof V3FbsPostingProduct + */ + quantity?: number; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V3FbsPostingProduct + */ + sku?: number; + /** + * Валюта ваших цен. Совпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V3FbsPostingProduct + */ + currency_code?: string; + /** + * Признак прослеживаемости товара. + * @type {boolean} + * @memberof V3FbsPostingProduct + */ + is_blr_traceable?: boolean; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof V3FbsPostingProduct + */ + is_marketplace_buyout?: boolean; + /** + * Список IMEI мобильных устройств. + * @type {Array} + * @memberof V3FbsPostingProduct + */ + imei?: Array; +} +/** + * Check if a given object implements the V3FbsPostingProduct interface. + */ +export declare function instanceOfV3FbsPostingProduct(value: object): value is V3FbsPostingProduct; +export declare function V3FbsPostingProductFromJSON(json: any): V3FbsPostingProduct; +export declare function V3FbsPostingProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingProduct; +export declare function V3FbsPostingProductToJSON(value?: V3FbsPostingProduct | null): any; diff --git a/dist/models/V3FbsPostingProduct.js b/dist/models/V3FbsPostingProduct.js new file mode 100644 index 0000000..c668617 --- /dev/null +++ b/dist/models/V3FbsPostingProduct.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingProduct = instanceOfV3FbsPostingProduct; +exports.V3FbsPostingProductFromJSON = V3FbsPostingProductFromJSON; +exports.V3FbsPostingProductFromJSONTyped = V3FbsPostingProductFromJSONTyped; +exports.V3FbsPostingProductToJSON = V3FbsPostingProductToJSON; +/** + * Check if a given object implements the V3FbsPostingProduct interface. + */ +function instanceOfV3FbsPostingProduct(value) { + return true; +} +function V3FbsPostingProductFromJSON(json) { + return V3FbsPostingProductFromJSONTyped(json, false); +} +function V3FbsPostingProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'imei': json['imei'] == null ? undefined : json['imei'], + }; +} +function V3FbsPostingProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'currency_code': value['currency_code'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'imei': value['imei'], + }; +} diff --git a/dist/models/V3FbsPostingProductExemplarInfoV3.d.ts b/dist/models/V3FbsPostingProductExemplarInfoV3.d.ts new file mode 100644 index 0000000..1aa16b9 --- /dev/null +++ b/dist/models/V3FbsPostingProductExemplarInfoV3.d.ts @@ -0,0 +1,73 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3FbsPostingProductExemplarInfoV3 + */ +export interface V3FbsPostingProductExemplarInfoV3 { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + exemplar_id?: number; + /** + * Обязательная маркировка «Честный ЗНАК». + * @type {string} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + mandatory_mark?: string; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + gtd?: string; + /** + * Признак того, что не указан номер таможенной декларации. + * @type {boolean} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + is_gtd_absent?: boolean; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + rnpt?: string; + /** + * Признак того, что не указан регистрационный номер партии товара (РНПТ). + * @type {boolean} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + is_rnpt_absent?: boolean; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + weight?: number; + /** + * Список IMEI мобильных устройств. + * @type {Array} + * @memberof V3FbsPostingProductExemplarInfoV3 + */ + imei?: Array; +} +/** + * Check if a given object implements the V3FbsPostingProductExemplarInfoV3 interface. + */ +export declare function instanceOfV3FbsPostingProductExemplarInfoV3(value: object): value is V3FbsPostingProductExemplarInfoV3; +export declare function V3FbsPostingProductExemplarInfoV3FromJSON(json: any): V3FbsPostingProductExemplarInfoV3; +export declare function V3FbsPostingProductExemplarInfoV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingProductExemplarInfoV3; +export declare function V3FbsPostingProductExemplarInfoV3ToJSON(value?: V3FbsPostingProductExemplarInfoV3 | null): any; diff --git a/dist/models/V3FbsPostingProductExemplarInfoV3.js b/dist/models/V3FbsPostingProductExemplarInfoV3.js new file mode 100644 index 0000000..d2e3656 --- /dev/null +++ b/dist/models/V3FbsPostingProductExemplarInfoV3.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingProductExemplarInfoV3 = instanceOfV3FbsPostingProductExemplarInfoV3; +exports.V3FbsPostingProductExemplarInfoV3FromJSON = V3FbsPostingProductExemplarInfoV3FromJSON; +exports.V3FbsPostingProductExemplarInfoV3FromJSONTyped = V3FbsPostingProductExemplarInfoV3FromJSONTyped; +exports.V3FbsPostingProductExemplarInfoV3ToJSON = V3FbsPostingProductExemplarInfoV3ToJSON; +/** + * Check if a given object implements the V3FbsPostingProductExemplarInfoV3 interface. + */ +function instanceOfV3FbsPostingProductExemplarInfoV3(value) { + return true; +} +function V3FbsPostingProductExemplarInfoV3FromJSON(json) { + return V3FbsPostingProductExemplarInfoV3FromJSONTyped(json, false); +} +function V3FbsPostingProductExemplarInfoV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'mandatory_mark': json['mandatory_mark'] == null ? undefined : json['mandatory_mark'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'is_gtd_absent': json['is_gtd_absent'] == null ? undefined : json['is_gtd_absent'], + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'is_rnpt_absent': json['is_rnpt_absent'] == null ? undefined : json['is_rnpt_absent'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'imei': json['imei'] == null ? undefined : json['imei'], + }; +} +function V3FbsPostingProductExemplarInfoV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'mandatory_mark': value['mandatory_mark'], + 'gtd': value['gtd'], + 'is_gtd_absent': value['is_gtd_absent'], + 'rnpt': value['rnpt'], + 'is_rnpt_absent': value['is_rnpt_absent'], + 'weight': value['weight'], + 'imei': value['imei'], + }; +} diff --git a/dist/models/V3FbsPostingProductExemplarsV3.d.ts b/dist/models/V3FbsPostingProductExemplarsV3.d.ts new file mode 100644 index 0000000..37a1ba0 --- /dev/null +++ b/dist/models/V3FbsPostingProductExemplarsV3.d.ts @@ -0,0 +1,35 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPostingExemplarProductV3 } from './V3FbsPostingExemplarProductV3'; +/** + * Информация по продуктам и их экземплярам. + * + * Ответ содержит поле `product_exemplars`, если в запросе передан признак `with.product_exemplars = true`. + * + * @export + * @interface V3FbsPostingProductExemplarsV3 + */ +export interface V3FbsPostingProductExemplarsV3 { + /** + * Информация по продуктам. + * @type {Array} + * @memberof V3FbsPostingProductExemplarsV3 + */ + products?: Array; +} +/** + * Check if a given object implements the V3FbsPostingProductExemplarsV3 interface. + */ +export declare function instanceOfV3FbsPostingProductExemplarsV3(value: object): value is V3FbsPostingProductExemplarsV3; +export declare function V3FbsPostingProductExemplarsV3FromJSON(json: any): V3FbsPostingProductExemplarsV3; +export declare function V3FbsPostingProductExemplarsV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingProductExemplarsV3; +export declare function V3FbsPostingProductExemplarsV3ToJSON(value?: V3FbsPostingProductExemplarsV3 | null): any; diff --git a/dist/models/V3FbsPostingProductExemplarsV3.js b/dist/models/V3FbsPostingProductExemplarsV3.js new file mode 100644 index 0000000..4b303a5 --- /dev/null +++ b/dist/models/V3FbsPostingProductExemplarsV3.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingProductExemplarsV3 = instanceOfV3FbsPostingProductExemplarsV3; +exports.V3FbsPostingProductExemplarsV3FromJSON = V3FbsPostingProductExemplarsV3FromJSON; +exports.V3FbsPostingProductExemplarsV3FromJSONTyped = V3FbsPostingProductExemplarsV3FromJSONTyped; +exports.V3FbsPostingProductExemplarsV3ToJSON = V3FbsPostingProductExemplarsV3ToJSON; +const V3FbsPostingExemplarProductV3_1 = require("./V3FbsPostingExemplarProductV3"); +/** + * Check if a given object implements the V3FbsPostingProductExemplarsV3 interface. + */ +function instanceOfV3FbsPostingProductExemplarsV3(value) { + return true; +} +function V3FbsPostingProductExemplarsV3FromJSON(json) { + return V3FbsPostingProductExemplarsV3FromJSONTyped(json, false); +} +function V3FbsPostingProductExemplarsV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(V3FbsPostingExemplarProductV3_1.V3FbsPostingExemplarProductV3FromJSON)), + }; +} +function V3FbsPostingProductExemplarsV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(V3FbsPostingExemplarProductV3_1.V3FbsPostingExemplarProductV3ToJSON)), + }; +} diff --git a/dist/models/V3FbsPostingRequirementsV3.d.ts b/dist/models/V3FbsPostingRequirementsV3.d.ts new file mode 100644 index 0000000..83da50b --- /dev/null +++ b/dist/models/V3FbsPostingRequirementsV3.d.ts @@ -0,0 +1,89 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Cписок продуктов, для которых нужно передать страну-изготовителя, номер грузовой таможенной декларации (ГТД), регистрационный номер партии товара (РНПТ), маркировку «Честный ЗНАК», другие маркировки или вес, чтобы перевести отправление в следующий статус. + * @export + * @interface V3FbsPostingRequirementsV3 + */ +export interface V3FbsPostingRequirementsV3 { + /** + * Список идентификаторов товаров (SKU), для которых нужно изменить страну-изготовитель. Чтобы изменить страну-изготовитель, используйте методы [/v2/posting/fbs/product/country/list](#operation/PostingAPI_ListCountryProductFbsPostingV2) и [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_change_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать номера таможенной декларации (ГТД). + * + * До сборки отправления передайте для всех перечисленных товаров номер таможенной декларации или информацию о том, + * что номера нет, методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_gtd?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать информацию о стране-изготовителе. + * + * Для сборки отправления передайте информацию о стране-изготовителе для всех перечисленных товаров с помощью метода [/v2/posting/fbs/product/country/set](#operation/PostingAPI_SetCountryProductFbsPostingV2). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_country?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать маркировку «Честный ЗНАК». + * + * До сборки отправления передайте для всех перечисленных товаров маркировку «Честный ЗНАК» методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_mandatory_mark?: Array; + /** + * Список товаров, для которых нужно передать уникальный идентификационный номер (УИН) ювелирного изделия. + * + * До сборки отправления передайте для всех перечисленных товаров уникальный идентификационный номер (УИН) методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_jw_uin?: Array; + /** + * Список идентификаторов товаров (SKU), для которых нужно передать регистрационный номер партии товара (РНПТ). + * + * До сборки отправления передайте для всех перечисленных товаров регистрационный номер партии товара (РНПТ) методом [/v6/fbs/posting/product/exemplar/set](#operation/PostingAPI_FbsPostingProductExemplarSetV6). + * + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_rnpt?: Array; + /** + * Список товаров, для которых нужно передать вес. + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_weight?: Array; + /** + * Список идентификаторов товаров, для которых нужно передать IMEI. + * @type {Array} + * @memberof V3FbsPostingRequirementsV3 + */ + products_requiring_imei?: Array; +} +/** + * Check if a given object implements the V3FbsPostingRequirementsV3 interface. + */ +export declare function instanceOfV3FbsPostingRequirementsV3(value: object): value is V3FbsPostingRequirementsV3; +export declare function V3FbsPostingRequirementsV3FromJSON(json: any): V3FbsPostingRequirementsV3; +export declare function V3FbsPostingRequirementsV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsPostingRequirementsV3; +export declare function V3FbsPostingRequirementsV3ToJSON(value?: V3FbsPostingRequirementsV3 | null): any; diff --git a/dist/models/V3FbsPostingRequirementsV3.js b/dist/models/V3FbsPostingRequirementsV3.js new file mode 100644 index 0000000..2b6c243 --- /dev/null +++ b/dist/models/V3FbsPostingRequirementsV3.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsPostingRequirementsV3 = instanceOfV3FbsPostingRequirementsV3; +exports.V3FbsPostingRequirementsV3FromJSON = V3FbsPostingRequirementsV3FromJSON; +exports.V3FbsPostingRequirementsV3FromJSONTyped = V3FbsPostingRequirementsV3FromJSONTyped; +exports.V3FbsPostingRequirementsV3ToJSON = V3FbsPostingRequirementsV3ToJSON; +/** + * Check if a given object implements the V3FbsPostingRequirementsV3 interface. + */ +function instanceOfV3FbsPostingRequirementsV3(value) { + return true; +} +function V3FbsPostingRequirementsV3FromJSON(json) { + return V3FbsPostingRequirementsV3FromJSONTyped(json, false); +} +function V3FbsPostingRequirementsV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products_requiring_change_country': json['products_requiring_change_country'] == null ? undefined : json['products_requiring_change_country'], + 'products_requiring_gtd': json['products_requiring_gtd'] == null ? undefined : json['products_requiring_gtd'], + 'products_requiring_country': json['products_requiring_country'] == null ? undefined : json['products_requiring_country'], + 'products_requiring_mandatory_mark': json['products_requiring_mandatory_mark'] == null ? undefined : json['products_requiring_mandatory_mark'], + 'products_requiring_jw_uin': json['products_requiring_jw_uin'] == null ? undefined : json['products_requiring_jw_uin'], + 'products_requiring_rnpt': json['products_requiring_rnpt'] == null ? undefined : json['products_requiring_rnpt'], + 'products_requiring_weight': json['products_requiring_weight'] == null ? undefined : json['products_requiring_weight'], + 'products_requiring_imei': json['products_requiring_imei'] == null ? undefined : json['products_requiring_imei'], + }; +} +function V3FbsPostingRequirementsV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'products_requiring_change_country': value['products_requiring_change_country'], + 'products_requiring_gtd': value['products_requiring_gtd'], + 'products_requiring_country': value['products_requiring_country'], + 'products_requiring_mandatory_mark': value['products_requiring_mandatory_mark'], + 'products_requiring_jw_uin': value['products_requiring_jw_uin'], + 'products_requiring_rnpt': value['products_requiring_rnpt'], + 'products_requiring_weight': value['products_requiring_weight'], + 'products_requiring_imei': value['products_requiring_imei'], + }; +} diff --git a/dist/models/V3FbsTariffication.d.ts b/dist/models/V3FbsTariffication.d.ts new file mode 100644 index 0000000..2b9af46 --- /dev/null +++ b/dist/models/V3FbsTariffication.d.ts @@ -0,0 +1,84 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация по тарификации отгрузки. + * @export + * @interface V3FbsTariffication + */ +export interface V3FbsTariffication { + /** + * Текущий процент тарификации. + * @type {number} + * @memberof V3FbsTariffication + */ + current_tariff_rate?: number; + /** + * Текущий тип тарификации — скидка или надбавка. + * @type {string} + * @memberof V3FbsTariffication + */ + current_tariff_type?: string; + /** + * Текущая сумма скидки или надбавки. + * @type {string} + * @memberof V3FbsTariffication + */ + current_tariff_charge?: string; + /** + * Валюта суммы. + * @type {string} + * @memberof V3FbsTariffication + */ + current_tariff_charge_currency_code?: string; + /** + * Процент, по которому будет тарифицироваться отправление через указанное в параметре `next_tariff_starts_at` время. + * @type {number} + * @memberof V3FbsTariffication + */ + next_tariff_rate?: number; + /** + * Тип тарифа, по которому будет тарифицироваться отправление через указанное в параметре `next_tariff_starts_at` время — скидка или надбавка. + * @type {string} + * @memberof V3FbsTariffication + */ + next_tariff_type?: string; + /** + * Сумма скидки или надбавки на следующем шаге тарификации. + * @type {string} + * @memberof V3FbsTariffication + */ + next_tariff_charge?: string; + /** + * Дата и время, когда начнёт применяться новый тариф. + * + * Формат: `YYYY-MM-DDThh:mm:ss.mcsZ`. + * + * Пример: `2023-11-13T08:05:57.657Z`. + * + * @type {string} + * @memberof V3FbsTariffication + */ + next_tariff_starts_at?: string; + /** + * Валюта нового тарифа. + * @type {string} + * @memberof V3FbsTariffication + */ + next_tariff_charge_currency_code?: string; +} +/** + * Check if a given object implements the V3FbsTariffication interface. + */ +export declare function instanceOfV3FbsTariffication(value: object): value is V3FbsTariffication; +export declare function V3FbsTarifficationFromJSON(json: any): V3FbsTariffication; +export declare function V3FbsTarifficationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FbsTariffication; +export declare function V3FbsTarifficationToJSON(value?: V3FbsTariffication | null): any; diff --git a/dist/models/V3FbsTariffication.js b/dist/models/V3FbsTariffication.js new file mode 100644 index 0000000..d3ca413 --- /dev/null +++ b/dist/models/V3FbsTariffication.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FbsTariffication = instanceOfV3FbsTariffication; +exports.V3FbsTarifficationFromJSON = V3FbsTarifficationFromJSON; +exports.V3FbsTarifficationFromJSONTyped = V3FbsTarifficationFromJSONTyped; +exports.V3FbsTarifficationToJSON = V3FbsTarifficationToJSON; +/** + * Check if a given object implements the V3FbsTariffication interface. + */ +function instanceOfV3FbsTariffication(value) { + return true; +} +function V3FbsTarifficationFromJSON(json) { + return V3FbsTarifficationFromJSONTyped(json, false); +} +function V3FbsTarifficationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'current_tariff_rate': json['current_tariff_rate'] == null ? undefined : json['current_tariff_rate'], + 'current_tariff_type': json['current_tariff_type'] == null ? undefined : json['current_tariff_type'], + 'current_tariff_charge': json['current_tariff_charge'] == null ? undefined : json['current_tariff_charge'], + 'current_tariff_charge_currency_code': json['current_tariff_charge_currency_code'] == null ? undefined : json['current_tariff_charge_currency_code'], + 'next_tariff_rate': json['next_tariff_rate'] == null ? undefined : json['next_tariff_rate'], + 'next_tariff_type': json['next_tariff_type'] == null ? undefined : json['next_tariff_type'], + 'next_tariff_charge': json['next_tariff_charge'] == null ? undefined : json['next_tariff_charge'], + 'next_tariff_starts_at': json['next_tariff_starts_at'] == null ? undefined : json['next_tariff_starts_at'], + 'next_tariff_charge_currency_code': json['next_tariff_charge_currency_code'] == null ? undefined : json['next_tariff_charge_currency_code'], + }; +} +function V3FbsTarifficationToJSON(value) { + if (value == null) { + return value; + } + return { + 'current_tariff_rate': value['current_tariff_rate'], + 'current_tariff_type': value['current_tariff_type'], + 'current_tariff_charge': value['current_tariff_charge'], + 'current_tariff_charge_currency_code': value['current_tariff_charge_currency_code'], + 'next_tariff_rate': value['next_tariff_rate'], + 'next_tariff_type': value['next_tariff_type'], + 'next_tariff_charge': value['next_tariff_charge'], + 'next_tariff_starts_at': value['next_tariff_starts_at'], + 'next_tariff_charge_currency_code': value['next_tariff_charge_currency_code'], + }; +} diff --git a/dist/models/V3FinanceCashFlowStatementListRequest.d.ts b/dist/models/V3FinanceCashFlowStatementListRequest.d.ts new file mode 100644 index 0000000..c2045f8 --- /dev/null +++ b/dist/models/V3FinanceCashFlowStatementListRequest.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Financev3Period } from './Financev3Period'; +/** + * + * @export + * @interface V3FinanceCashFlowStatementListRequest + */ +export interface V3FinanceCashFlowStatementListRequest { + /** + * + * @type {Financev3Period} + * @memberof V3FinanceCashFlowStatementListRequest + */ + date: Financev3Period; + /** + * Номер страницы, возвращаемой в запросе. + * @type {number} + * @memberof V3FinanceCashFlowStatementListRequest + */ + page: number; + /** + * `true`, если нужно добавить дополнительные параметры в ответ. + * @type {boolean} + * @memberof V3FinanceCashFlowStatementListRequest + */ + with_details?: boolean; + /** + * Количество элементов на странице. + * @type {number} + * @memberof V3FinanceCashFlowStatementListRequest + */ + page_size: number; +} +/** + * Check if a given object implements the V3FinanceCashFlowStatementListRequest interface. + */ +export declare function instanceOfV3FinanceCashFlowStatementListRequest(value: object): value is V3FinanceCashFlowStatementListRequest; +export declare function V3FinanceCashFlowStatementListRequestFromJSON(json: any): V3FinanceCashFlowStatementListRequest; +export declare function V3FinanceCashFlowStatementListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FinanceCashFlowStatementListRequest; +export declare function V3FinanceCashFlowStatementListRequestToJSON(value?: V3FinanceCashFlowStatementListRequest | null): any; diff --git a/dist/models/V3FinanceCashFlowStatementListRequest.js b/dist/models/V3FinanceCashFlowStatementListRequest.js new file mode 100644 index 0000000..e8c5888 --- /dev/null +++ b/dist/models/V3FinanceCashFlowStatementListRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FinanceCashFlowStatementListRequest = instanceOfV3FinanceCashFlowStatementListRequest; +exports.V3FinanceCashFlowStatementListRequestFromJSON = V3FinanceCashFlowStatementListRequestFromJSON; +exports.V3FinanceCashFlowStatementListRequestFromJSONTyped = V3FinanceCashFlowStatementListRequestFromJSONTyped; +exports.V3FinanceCashFlowStatementListRequestToJSON = V3FinanceCashFlowStatementListRequestToJSON; +const Financev3Period_1 = require("./Financev3Period"); +/** + * Check if a given object implements the V3FinanceCashFlowStatementListRequest interface. + */ +function instanceOfV3FinanceCashFlowStatementListRequest(value) { + if (!('date' in value) || value['date'] === undefined) + return false; + if (!('page' in value) || value['page'] === undefined) + return false; + if (!('page_size' in value) || value['page_size'] === undefined) + return false; + return true; +} +function V3FinanceCashFlowStatementListRequestFromJSON(json) { + return V3FinanceCashFlowStatementListRequestFromJSONTyped(json, false); +} +function V3FinanceCashFlowStatementListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'date': (0, Financev3Period_1.Financev3PeriodFromJSON)(json['date']), + 'page': json['page'], + 'with_details': json['with_details'] == null ? undefined : json['with_details'], + 'page_size': json['page_size'], + }; +} +function V3FinanceCashFlowStatementListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'date': (0, Financev3Period_1.Financev3PeriodToJSON)(value['date']), + 'page': value['page'], + 'with_details': value['with_details'], + 'page_size': value['page_size'], + }; +} diff --git a/dist/models/V3FinanceCashFlowStatementListResponse.d.ts b/dist/models/V3FinanceCashFlowStatementListResponse.d.ts new file mode 100644 index 0000000..275e2f2 --- /dev/null +++ b/dist/models/V3FinanceCashFlowStatementListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FinanceCashFlowStatementListResponseResult } from './V3FinanceCashFlowStatementListResponseResult'; +/** + * + * @export + * @interface V3FinanceCashFlowStatementListResponse + */ +export interface V3FinanceCashFlowStatementListResponse { + /** + * + * @type {V3FinanceCashFlowStatementListResponseResult} + * @memberof V3FinanceCashFlowStatementListResponse + */ + result?: V3FinanceCashFlowStatementListResponseResult; +} +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponse interface. + */ +export declare function instanceOfV3FinanceCashFlowStatementListResponse(value: object): value is V3FinanceCashFlowStatementListResponse; +export declare function V3FinanceCashFlowStatementListResponseFromJSON(json: any): V3FinanceCashFlowStatementListResponse; +export declare function V3FinanceCashFlowStatementListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FinanceCashFlowStatementListResponse; +export declare function V3FinanceCashFlowStatementListResponseToJSON(value?: V3FinanceCashFlowStatementListResponse | null): any; diff --git a/dist/models/V3FinanceCashFlowStatementListResponse.js b/dist/models/V3FinanceCashFlowStatementListResponse.js new file mode 100644 index 0000000..d2df0bd --- /dev/null +++ b/dist/models/V3FinanceCashFlowStatementListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FinanceCashFlowStatementListResponse = instanceOfV3FinanceCashFlowStatementListResponse; +exports.V3FinanceCashFlowStatementListResponseFromJSON = V3FinanceCashFlowStatementListResponseFromJSON; +exports.V3FinanceCashFlowStatementListResponseFromJSONTyped = V3FinanceCashFlowStatementListResponseFromJSONTyped; +exports.V3FinanceCashFlowStatementListResponseToJSON = V3FinanceCashFlowStatementListResponseToJSON; +const V3FinanceCashFlowStatementListResponseResult_1 = require("./V3FinanceCashFlowStatementListResponseResult"); +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponse interface. + */ +function instanceOfV3FinanceCashFlowStatementListResponse(value) { + return true; +} +function V3FinanceCashFlowStatementListResponseFromJSON(json) { + return V3FinanceCashFlowStatementListResponseFromJSONTyped(json, false); +} +function V3FinanceCashFlowStatementListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V3FinanceCashFlowStatementListResponseResult_1.V3FinanceCashFlowStatementListResponseResultFromJSON)(json['result']), + }; +} +function V3FinanceCashFlowStatementListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V3FinanceCashFlowStatementListResponseResult_1.V3FinanceCashFlowStatementListResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V3FinanceCashFlowStatementListResponsePeriod.d.ts b/dist/models/V3FinanceCashFlowStatementListResponsePeriod.d.ts new file mode 100644 index 0000000..e7789fc --- /dev/null +++ b/dist/models/V3FinanceCashFlowStatementListResponsePeriod.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период. + * @export + * @interface V3FinanceCashFlowStatementListResponsePeriod + */ +export interface V3FinanceCashFlowStatementListResponsePeriod { + /** + * Начало периода. + * @type {string} + * @memberof V3FinanceCashFlowStatementListResponsePeriod + */ + begin?: string; + /** + * Конец периода. + * @type {string} + * @memberof V3FinanceCashFlowStatementListResponsePeriod + */ + end?: string; + /** + * Идентификатор. + * @type {number} + * @memberof V3FinanceCashFlowStatementListResponsePeriod + */ + id?: number; +} +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponsePeriod interface. + */ +export declare function instanceOfV3FinanceCashFlowStatementListResponsePeriod(value: object): value is V3FinanceCashFlowStatementListResponsePeriod; +export declare function V3FinanceCashFlowStatementListResponsePeriodFromJSON(json: any): V3FinanceCashFlowStatementListResponsePeriod; +export declare function V3FinanceCashFlowStatementListResponsePeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FinanceCashFlowStatementListResponsePeriod; +export declare function V3FinanceCashFlowStatementListResponsePeriodToJSON(value?: V3FinanceCashFlowStatementListResponsePeriod | null): any; diff --git a/dist/models/V3FinanceCashFlowStatementListResponsePeriod.js b/dist/models/V3FinanceCashFlowStatementListResponsePeriod.js new file mode 100644 index 0000000..fa895e8 --- /dev/null +++ b/dist/models/V3FinanceCashFlowStatementListResponsePeriod.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FinanceCashFlowStatementListResponsePeriod = instanceOfV3FinanceCashFlowStatementListResponsePeriod; +exports.V3FinanceCashFlowStatementListResponsePeriodFromJSON = V3FinanceCashFlowStatementListResponsePeriodFromJSON; +exports.V3FinanceCashFlowStatementListResponsePeriodFromJSONTyped = V3FinanceCashFlowStatementListResponsePeriodFromJSONTyped; +exports.V3FinanceCashFlowStatementListResponsePeriodToJSON = V3FinanceCashFlowStatementListResponsePeriodToJSON; +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponsePeriod interface. + */ +function instanceOfV3FinanceCashFlowStatementListResponsePeriod(value) { + return true; +} +function V3FinanceCashFlowStatementListResponsePeriodFromJSON(json) { + return V3FinanceCashFlowStatementListResponsePeriodFromJSONTyped(json, false); +} +function V3FinanceCashFlowStatementListResponsePeriodFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'begin': json['begin'] == null ? undefined : json['begin'], + 'end': json['end'] == null ? undefined : json['end'], + 'id': json['id'] == null ? undefined : json['id'], + }; +} +function V3FinanceCashFlowStatementListResponsePeriodToJSON(value) { + if (value == null) { + return value; + } + return { + 'begin': value['begin'], + 'end': value['end'], + 'id': value['id'], + }; +} diff --git a/dist/models/V3FinanceCashFlowStatementListResponseResult.d.ts b/dist/models/V3FinanceCashFlowStatementListResponseResult.d.ts new file mode 100644 index 0000000..4b4f14e --- /dev/null +++ b/dist/models/V3FinanceCashFlowStatementListResponseResult.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FinanceCashFlowStatementListResponseCashFlow } from './FinanceCashFlowStatementListResponseCashFlow'; +import type { FinanceCashFlowStatementListResponseDetails } from './FinanceCashFlowStatementListResponseDetails'; +/** + * Результат работы метода. + * @export + * @interface V3FinanceCashFlowStatementListResponseResult + */ +export interface V3FinanceCashFlowStatementListResponseResult { + /** + * Список отчётов. + * @type {Array} + * @memberof V3FinanceCashFlowStatementListResponseResult + */ + cash_flows?: Array; + /** + * + * @type {FinanceCashFlowStatementListResponseDetails} + * @memberof V3FinanceCashFlowStatementListResponseResult + */ + details?: FinanceCashFlowStatementListResponseDetails; + /** + * Количество страниц с отчётами. + * @type {number} + * @memberof V3FinanceCashFlowStatementListResponseResult + */ + page_count?: number; +} +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponseResult interface. + */ +export declare function instanceOfV3FinanceCashFlowStatementListResponseResult(value: object): value is V3FinanceCashFlowStatementListResponseResult; +export declare function V3FinanceCashFlowStatementListResponseResultFromJSON(json: any): V3FinanceCashFlowStatementListResponseResult; +export declare function V3FinanceCashFlowStatementListResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3FinanceCashFlowStatementListResponseResult; +export declare function V3FinanceCashFlowStatementListResponseResultToJSON(value?: V3FinanceCashFlowStatementListResponseResult | null): any; diff --git a/dist/models/V3FinanceCashFlowStatementListResponseResult.js b/dist/models/V3FinanceCashFlowStatementListResponseResult.js new file mode 100644 index 0000000..318344b --- /dev/null +++ b/dist/models/V3FinanceCashFlowStatementListResponseResult.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3FinanceCashFlowStatementListResponseResult = instanceOfV3FinanceCashFlowStatementListResponseResult; +exports.V3FinanceCashFlowStatementListResponseResultFromJSON = V3FinanceCashFlowStatementListResponseResultFromJSON; +exports.V3FinanceCashFlowStatementListResponseResultFromJSONTyped = V3FinanceCashFlowStatementListResponseResultFromJSONTyped; +exports.V3FinanceCashFlowStatementListResponseResultToJSON = V3FinanceCashFlowStatementListResponseResultToJSON; +const FinanceCashFlowStatementListResponseCashFlow_1 = require("./FinanceCashFlowStatementListResponseCashFlow"); +const FinanceCashFlowStatementListResponseDetails_1 = require("./FinanceCashFlowStatementListResponseDetails"); +/** + * Check if a given object implements the V3FinanceCashFlowStatementListResponseResult interface. + */ +function instanceOfV3FinanceCashFlowStatementListResponseResult(value) { + return true; +} +function V3FinanceCashFlowStatementListResponseResultFromJSON(json) { + return V3FinanceCashFlowStatementListResponseResultFromJSONTyped(json, false); +} +function V3FinanceCashFlowStatementListResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cash_flows': json['cash_flows'] == null ? undefined : (json['cash_flows'].map(FinanceCashFlowStatementListResponseCashFlow_1.FinanceCashFlowStatementListResponseCashFlowFromJSON)), + 'details': json['details'] == null ? undefined : (0, FinanceCashFlowStatementListResponseDetails_1.FinanceCashFlowStatementListResponseDetailsFromJSON)(json['details']), + 'page_count': json['page_count'] == null ? undefined : json['page_count'], + }; +} +function V3FinanceCashFlowStatementListResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'cash_flows': value['cash_flows'] == null ? undefined : (value['cash_flows'].map(FinanceCashFlowStatementListResponseCashFlow_1.FinanceCashFlowStatementListResponseCashFlowToJSON)), + 'details': (0, FinanceCashFlowStatementListResponseDetails_1.FinanceCashFlowStatementListResponseDetailsToJSON)(value['details']), + 'page_count': value['page_count'], + }; +} diff --git a/dist/models/V3GetFbsPostingListResponseV3.d.ts b/dist/models/V3GetFbsPostingListResponseV3.d.ts new file mode 100644 index 0000000..7e45c78 --- /dev/null +++ b/dist/models/V3GetFbsPostingListResponseV3.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3GetFbsPostingListResponseV3Result } from './V3GetFbsPostingListResponseV3Result'; +/** + * + * @export + * @interface V3GetFbsPostingListResponseV3 + */ +export interface V3GetFbsPostingListResponseV3 { + /** + * + * @type {V3GetFbsPostingListResponseV3Result} + * @memberof V3GetFbsPostingListResponseV3 + */ + result?: V3GetFbsPostingListResponseV3Result; +} +/** + * Check if a given object implements the V3GetFbsPostingListResponseV3 interface. + */ +export declare function instanceOfV3GetFbsPostingListResponseV3(value: object): value is V3GetFbsPostingListResponseV3; +export declare function V3GetFbsPostingListResponseV3FromJSON(json: any): V3GetFbsPostingListResponseV3; +export declare function V3GetFbsPostingListResponseV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetFbsPostingListResponseV3; +export declare function V3GetFbsPostingListResponseV3ToJSON(value?: V3GetFbsPostingListResponseV3 | null): any; diff --git a/dist/models/V3GetFbsPostingListResponseV3.js b/dist/models/V3GetFbsPostingListResponseV3.js new file mode 100644 index 0000000..69ae2cf --- /dev/null +++ b/dist/models/V3GetFbsPostingListResponseV3.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3GetFbsPostingListResponseV3 = instanceOfV3GetFbsPostingListResponseV3; +exports.V3GetFbsPostingListResponseV3FromJSON = V3GetFbsPostingListResponseV3FromJSON; +exports.V3GetFbsPostingListResponseV3FromJSONTyped = V3GetFbsPostingListResponseV3FromJSONTyped; +exports.V3GetFbsPostingListResponseV3ToJSON = V3GetFbsPostingListResponseV3ToJSON; +const V3GetFbsPostingListResponseV3Result_1 = require("./V3GetFbsPostingListResponseV3Result"); +/** + * Check if a given object implements the V3GetFbsPostingListResponseV3 interface. + */ +function instanceOfV3GetFbsPostingListResponseV3(value) { + return true; +} +function V3GetFbsPostingListResponseV3FromJSON(json) { + return V3GetFbsPostingListResponseV3FromJSONTyped(json, false); +} +function V3GetFbsPostingListResponseV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V3GetFbsPostingListResponseV3Result_1.V3GetFbsPostingListResponseV3ResultFromJSON)(json['result']), + }; +} +function V3GetFbsPostingListResponseV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V3GetFbsPostingListResponseV3Result_1.V3GetFbsPostingListResponseV3ResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V3GetFbsPostingListResponseV3Result.d.ts b/dist/models/V3GetFbsPostingListResponseV3Result.d.ts new file mode 100644 index 0000000..2e43fa1 --- /dev/null +++ b/dist/models/V3GetFbsPostingListResponseV3Result.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPosting } from './V3FbsPosting'; +/** + * Массив отправлений. + * @export + * @interface V3GetFbsPostingListResponseV3Result + */ +export interface V3GetFbsPostingListResponseV3Result { + /** + * Признак, что в ответе вернули не весь массив отправлений: + * - `true` — необходимо сделать новый запрос с другим значением `offset`, чтобы получить информацию об остальных отправлениях; + * - `false` — в ответе вернули весь массив отправлений для фильтра, который был задан в запросе. + * + * @type {boolean} + * @memberof V3GetFbsPostingListResponseV3Result + */ + has_next?: boolean; + /** + * Информация об отправлении. + * @type {Array} + * @memberof V3GetFbsPostingListResponseV3Result + */ + postings?: Array; +} +/** + * Check if a given object implements the V3GetFbsPostingListResponseV3Result interface. + */ +export declare function instanceOfV3GetFbsPostingListResponseV3Result(value: object): value is V3GetFbsPostingListResponseV3Result; +export declare function V3GetFbsPostingListResponseV3ResultFromJSON(json: any): V3GetFbsPostingListResponseV3Result; +export declare function V3GetFbsPostingListResponseV3ResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetFbsPostingListResponseV3Result; +export declare function V3GetFbsPostingListResponseV3ResultToJSON(value?: V3GetFbsPostingListResponseV3Result | null): any; diff --git a/dist/models/V3GetFbsPostingListResponseV3Result.js b/dist/models/V3GetFbsPostingListResponseV3Result.js new file mode 100644 index 0000000..0f84955 --- /dev/null +++ b/dist/models/V3GetFbsPostingListResponseV3Result.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3GetFbsPostingListResponseV3Result = instanceOfV3GetFbsPostingListResponseV3Result; +exports.V3GetFbsPostingListResponseV3ResultFromJSON = V3GetFbsPostingListResponseV3ResultFromJSON; +exports.V3GetFbsPostingListResponseV3ResultFromJSONTyped = V3GetFbsPostingListResponseV3ResultFromJSONTyped; +exports.V3GetFbsPostingListResponseV3ResultToJSON = V3GetFbsPostingListResponseV3ResultToJSON; +const V3FbsPosting_1 = require("./V3FbsPosting"); +/** + * Check if a given object implements the V3GetFbsPostingListResponseV3Result interface. + */ +function instanceOfV3GetFbsPostingListResponseV3Result(value) { + return true; +} +function V3GetFbsPostingListResponseV3ResultFromJSON(json) { + return V3GetFbsPostingListResponseV3ResultFromJSONTyped(json, false); +} +function V3GetFbsPostingListResponseV3ResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'postings': json['postings'] == null ? undefined : (json['postings'].map(V3FbsPosting_1.V3FbsPostingFromJSON)), + }; +} +function V3GetFbsPostingListResponseV3ResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'postings': value['postings'] == null ? undefined : (value['postings'].map(V3FbsPosting_1.V3FbsPostingToJSON)), + }; +} diff --git a/dist/models/V3GetFbsPostingResponseV3.d.ts b/dist/models/V3GetFbsPostingResponseV3.d.ts new file mode 100644 index 0000000..717e2b5 --- /dev/null +++ b/dist/models/V3GetFbsPostingResponseV3.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3FbsPostingDetail } from './V3FbsPostingDetail'; +/** + * + * @export + * @interface V3GetFbsPostingResponseV3 + */ +export interface V3GetFbsPostingResponseV3 { + /** + * + * @type {V3FbsPostingDetail} + * @memberof V3GetFbsPostingResponseV3 + */ + result?: V3FbsPostingDetail; +} +/** + * Check if a given object implements the V3GetFbsPostingResponseV3 interface. + */ +export declare function instanceOfV3GetFbsPostingResponseV3(value: object): value is V3GetFbsPostingResponseV3; +export declare function V3GetFbsPostingResponseV3FromJSON(json: any): V3GetFbsPostingResponseV3; +export declare function V3GetFbsPostingResponseV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetFbsPostingResponseV3; +export declare function V3GetFbsPostingResponseV3ToJSON(value?: V3GetFbsPostingResponseV3 | null): any; diff --git a/dist/models/V3GetFbsPostingResponseV3.js b/dist/models/V3GetFbsPostingResponseV3.js new file mode 100644 index 0000000..ff01a9c --- /dev/null +++ b/dist/models/V3GetFbsPostingResponseV3.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3GetFbsPostingResponseV3 = instanceOfV3GetFbsPostingResponseV3; +exports.V3GetFbsPostingResponseV3FromJSON = V3GetFbsPostingResponseV3FromJSON; +exports.V3GetFbsPostingResponseV3FromJSONTyped = V3GetFbsPostingResponseV3FromJSONTyped; +exports.V3GetFbsPostingResponseV3ToJSON = V3GetFbsPostingResponseV3ToJSON; +const V3FbsPostingDetail_1 = require("./V3FbsPostingDetail"); +/** + * Check if a given object implements the V3GetFbsPostingResponseV3 interface. + */ +function instanceOfV3GetFbsPostingResponseV3(value) { + return true; +} +function V3GetFbsPostingResponseV3FromJSON(json) { + return V3GetFbsPostingResponseV3FromJSONTyped(json, false); +} +function V3GetFbsPostingResponseV3FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V3FbsPostingDetail_1.V3FbsPostingDetailFromJSON)(json['result']), + }; +} +function V3GetFbsPostingResponseV3ToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V3FbsPostingDetail_1.V3FbsPostingDetailToJSON)(value['result']), + }; +} diff --git a/dist/models/V3GetProductInfoListRequest.d.ts b/dist/models/V3GetProductInfoListRequest.d.ts new file mode 100644 index 0000000..bebeb61 --- /dev/null +++ b/dist/models/V3GetProductInfoListRequest.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3GetProductInfoListRequest + */ +export interface V3GetProductInfoListRequest { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {Array} + * @memberof V3GetProductInfoListRequest + */ + offer_id?: Array; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {Array} + * @memberof V3GetProductInfoListRequest + */ + product_id?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {Array} + * @memberof V3GetProductInfoListRequest + */ + sku?: Array; +} +/** + * Check if a given object implements the V3GetProductInfoListRequest interface. + */ +export declare function instanceOfV3GetProductInfoListRequest(value: object): value is V3GetProductInfoListRequest; +export declare function V3GetProductInfoListRequestFromJSON(json: any): V3GetProductInfoListRequest; +export declare function V3GetProductInfoListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListRequest; +export declare function V3GetProductInfoListRequestToJSON(value?: V3GetProductInfoListRequest | null): any; diff --git a/dist/models/V3GetProductInfoListRequest.js b/dist/models/V3GetProductInfoListRequest.js new file mode 100644 index 0000000..7155fc2 --- /dev/null +++ b/dist/models/V3GetProductInfoListRequest.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3GetProductInfoListRequest = instanceOfV3GetProductInfoListRequest; +exports.V3GetProductInfoListRequestFromJSON = V3GetProductInfoListRequestFromJSON; +exports.V3GetProductInfoListRequestFromJSONTyped = V3GetProductInfoListRequestFromJSONTyped; +exports.V3GetProductInfoListRequestToJSON = V3GetProductInfoListRequestToJSON; +/** + * Check if a given object implements the V3GetProductInfoListRequest interface. + */ +function instanceOfV3GetProductInfoListRequest(value) { + return true; +} +function V3GetProductInfoListRequestFromJSON(json) { + return V3GetProductInfoListRequestFromJSONTyped(json, false); +} +function V3GetProductInfoListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'sku': json['sku'] == null ? undefined : json['sku'], + }; +} +function V3GetProductInfoListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'sku': value['sku'], + }; +} diff --git a/dist/models/V3GetProductInfoListResponse.d.ts b/dist/models/V3GetProductInfoListResponse.d.ts new file mode 100644 index 0000000..f992a69 --- /dev/null +++ b/dist/models/V3GetProductInfoListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3GetProductInfoListResponseItem } from './V3GetProductInfoListResponseItem'; +/** + * + * @export + * @interface V3GetProductInfoListResponse + */ +export interface V3GetProductInfoListResponse { + /** + * Массив данных. + * @type {Array} + * @memberof V3GetProductInfoListResponse + */ + items?: Array; +} +/** + * Check if a given object implements the V3GetProductInfoListResponse interface. + */ +export declare function instanceOfV3GetProductInfoListResponse(value: object): value is V3GetProductInfoListResponse; +export declare function V3GetProductInfoListResponseFromJSON(json: any): V3GetProductInfoListResponse; +export declare function V3GetProductInfoListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListResponse; +export declare function V3GetProductInfoListResponseToJSON(value?: V3GetProductInfoListResponse | null): any; diff --git a/dist/models/V3GetProductInfoListResponse.js b/dist/models/V3GetProductInfoListResponse.js new file mode 100644 index 0000000..72bafcf --- /dev/null +++ b/dist/models/V3GetProductInfoListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3GetProductInfoListResponse = instanceOfV3GetProductInfoListResponse; +exports.V3GetProductInfoListResponseFromJSON = V3GetProductInfoListResponseFromJSON; +exports.V3GetProductInfoListResponseFromJSONTyped = V3GetProductInfoListResponseFromJSONTyped; +exports.V3GetProductInfoListResponseToJSON = V3GetProductInfoListResponseToJSON; +const V3GetProductInfoListResponseItem_1 = require("./V3GetProductInfoListResponseItem"); +/** + * Check if a given object implements the V3GetProductInfoListResponse interface. + */ +function instanceOfV3GetProductInfoListResponse(value) { + return true; +} +function V3GetProductInfoListResponseFromJSON(json) { + return V3GetProductInfoListResponseFromJSONTyped(json, false); +} +function V3GetProductInfoListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V3GetProductInfoListResponseItem_1.V3GetProductInfoListResponseItemFromJSON)), + }; +} +function V3GetProductInfoListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V3GetProductInfoListResponseItem_1.V3GetProductInfoListResponseItemToJSON)), + }; +} diff --git a/dist/models/V3GetProductInfoListResponseItem.d.ts b/dist/models/V3GetProductInfoListResponseItem.d.ts new file mode 100644 index 0000000..8238c0f --- /dev/null +++ b/dist/models/V3GetProductInfoListResponseItem.d.ts @@ -0,0 +1,266 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductInfoListResponseModelInfo } from './GetProductInfoListResponseModelInfo'; +import type { GetProductInfoListResponseSource } from './GetProductInfoListResponseSource'; +import type { V3GetProductInfoListResponsePromotion } from './V3GetProductInfoListResponsePromotion'; +import type { GetProductInfoListResponseStocks } from './GetProductInfoListResponseStocks'; +import type { GetProductInfoListResponsePriceIndexes } from './GetProductInfoListResponsePriceIndexes'; +import type { GetProductInfoListResponseCommission } from './GetProductInfoListResponseCommission'; +import type { GetProductInfoListResponseError } from './GetProductInfoListResponseError'; +import type { GetProductInfoListResponseVisibilityDetails } from './GetProductInfoListResponseVisibilityDetails'; +import type { GetProductInfoListResponseAvailability } from './GetProductInfoListResponseAvailability'; +import type { GetProductInfoListResponseStatuses } from './GetProductInfoListResponseStatuses'; +/** + * + * @export + * @interface V3GetProductInfoListResponseItem + */ +export interface V3GetProductInfoListResponseItem { + /** + * Информация о доступности товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + availabilities?: Array; + /** + * Все штрихкоды товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + barcodes?: Array; + /** + * Изображение цвета товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + color_image?: Array; + /** + * Информация о комиссиях. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + commissions?: Array; + /** + * Дата и время создания товара. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + created_at?: string; + /** + * Валюта. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + currency_code?: string; + /** + * Идентификатор категории. + * Используйте его с методами [/v1/description-category/attribute](#operation/DescriptionCategoryAPI_GetAttributes) и [/v1/description-category/attribute/values](#operation/DescriptionCategoryAPI_GetAttributeValues). + * + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + description_category_id?: number; + /** + * Остатки уценённого товара на складе Ozon. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + discounted_fbo_stocks?: number; + /** + * Информация об ошибках при создании или валидации товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + errors?: Array; + /** + * Признак, что у товара есть уценённые аналоги на складе Ozon. + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + has_discounted_fbo_item?: boolean; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + id?: number; + /** + * Массив ссылок на изображения. Изображения в массиве расположены в порядке их расположения на сайте. Если параметр + * `primary_image` не указан, первое изображение в массиве главное для товара. + * + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + images?: Array; + /** + * `true`, если товар архивирован вручную. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_archived?: boolean; + /** + * `true`, если товар архивирован автоматически. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_autoarchived?: boolean; + /** + * Признак, является ли товар уценённым: + * - Если товар создавался продавцом как уценённый — `true`. + * - Если товар не уценённый или был уценён Ozon — `false`. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_discounted?: boolean; + /** + * `true`, если товар крупногабаритный. Только для схемы FBS. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_kgt?: boolean; + /** + * `true`, если возможна предоплата. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + * @deprecated + */ + is_prepayment_allowed?: boolean; + /** + * Признак супер-товара. + * + * [Подробнее о супер-товарах в Базе знаний продавца](https://seller-edu.ozon.ru/fbo/rabota-so-stokom/super-tovary) + * + * @type {boolean} + * @memberof V3GetProductInfoListResponseItem + */ + is_super?: boolean; + /** + * Минимальная цена товара после применения акций. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + min_price?: string; + /** + * + * @type {GetProductInfoListResponseModelInfo} + * @memberof V3GetProductInfoListResponseItem + */ + model_info?: GetProductInfoListResponseModelInfo; + /** + * Название. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + offer_id?: string; + /** + * Цена до учёта скидок. На карточке товара отображается зачёркнутой. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + old_price?: string; + /** + * Цена товара с учётом скидок — это значение показывается на карточке товара. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + price?: string; + /** + * + * @type {GetProductInfoListResponsePriceIndexes} + * @memberof V3GetProductInfoListResponseItem + */ + price_indexes?: GetProductInfoListResponsePriceIndexes; + /** + * Главное изображение товара. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + primary_image?: Array; + /** + * Акции. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + promotions?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + sku?: number; + /** + * Информация об источниках создания товара. С 1 июля 2023 года продавцы создают товары по схеме SDS. + * @type {Array} + * @memberof V3GetProductInfoListResponseItem + */ + sources?: Array; + /** + * + * @type {GetProductInfoListResponseStatuses} + * @memberof V3GetProductInfoListResponseItem + */ + statuses?: GetProductInfoListResponseStatuses; + /** + * + * @type {GetProductInfoListResponseStocks} + * @memberof V3GetProductInfoListResponseItem + */ + stocks?: GetProductInfoListResponseStocks; + /** + * Идентификатор типа товара. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + type_id?: number; + /** + * Дата последнего обновления товара. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + updated_at?: string; + /** + * Ставка НДС для товара. + * @type {string} + * @memberof V3GetProductInfoListResponseItem + */ + vat?: string; + /** + * + * @type {GetProductInfoListResponseVisibilityDetails} + * @memberof V3GetProductInfoListResponseItem + */ + visibility_details?: GetProductInfoListResponseVisibilityDetails; + /** + * Объёмный вес товара. + * @type {number} + * @memberof V3GetProductInfoListResponseItem + */ + volume_weight?: number; +} +/** + * Check if a given object implements the V3GetProductInfoListResponseItem interface. + */ +export declare function instanceOfV3GetProductInfoListResponseItem(value: object): value is V3GetProductInfoListResponseItem; +export declare function V3GetProductInfoListResponseItemFromJSON(json: any): V3GetProductInfoListResponseItem; +export declare function V3GetProductInfoListResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListResponseItem; +export declare function V3GetProductInfoListResponseItemToJSON(value?: V3GetProductInfoListResponseItem | null): any; diff --git a/dist/models/V3GetProductInfoListResponseItem.js b/dist/models/V3GetProductInfoListResponseItem.js new file mode 100644 index 0000000..14d1805 --- /dev/null +++ b/dist/models/V3GetProductInfoListResponseItem.js @@ -0,0 +1,124 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3GetProductInfoListResponseItem = instanceOfV3GetProductInfoListResponseItem; +exports.V3GetProductInfoListResponseItemFromJSON = V3GetProductInfoListResponseItemFromJSON; +exports.V3GetProductInfoListResponseItemFromJSONTyped = V3GetProductInfoListResponseItemFromJSONTyped; +exports.V3GetProductInfoListResponseItemToJSON = V3GetProductInfoListResponseItemToJSON; +const GetProductInfoListResponseModelInfo_1 = require("./GetProductInfoListResponseModelInfo"); +const GetProductInfoListResponseSource_1 = require("./GetProductInfoListResponseSource"); +const V3GetProductInfoListResponsePromotion_1 = require("./V3GetProductInfoListResponsePromotion"); +const GetProductInfoListResponseStocks_1 = require("./GetProductInfoListResponseStocks"); +const GetProductInfoListResponsePriceIndexes_1 = require("./GetProductInfoListResponsePriceIndexes"); +const GetProductInfoListResponseCommission_1 = require("./GetProductInfoListResponseCommission"); +const GetProductInfoListResponseError_1 = require("./GetProductInfoListResponseError"); +const GetProductInfoListResponseVisibilityDetails_1 = require("./GetProductInfoListResponseVisibilityDetails"); +const GetProductInfoListResponseAvailability_1 = require("./GetProductInfoListResponseAvailability"); +const GetProductInfoListResponseStatuses_1 = require("./GetProductInfoListResponseStatuses"); +/** + * Check if a given object implements the V3GetProductInfoListResponseItem interface. + */ +function instanceOfV3GetProductInfoListResponseItem(value) { + return true; +} +function V3GetProductInfoListResponseItemFromJSON(json) { + return V3GetProductInfoListResponseItemFromJSONTyped(json, false); +} +function V3GetProductInfoListResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'availabilities': json['availabilities'] == null ? undefined : (json['availabilities'].map(GetProductInfoListResponseAvailability_1.GetProductInfoListResponseAvailabilityFromJSON)), + 'barcodes': json['barcodes'] == null ? undefined : json['barcodes'], + 'color_image': json['color_image'] == null ? undefined : json['color_image'], + 'commissions': json['commissions'] == null ? undefined : (json['commissions'].map(GetProductInfoListResponseCommission_1.GetProductInfoListResponseCommissionFromJSON)), + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'description_category_id': json['description_category_id'] == null ? undefined : json['description_category_id'], + 'discounted_fbo_stocks': json['discounted_fbo_stocks'] == null ? undefined : json['discounted_fbo_stocks'], + 'errors': json['errors'] == null ? undefined : (json['errors'].map(GetProductInfoListResponseError_1.GetProductInfoListResponseErrorFromJSON)), + 'has_discounted_fbo_item': json['has_discounted_fbo_item'] == null ? undefined : json['has_discounted_fbo_item'], + 'id': json['id'] == null ? undefined : json['id'], + 'images': json['images'] == null ? undefined : json['images'], + 'is_archived': json['is_archived'] == null ? undefined : json['is_archived'], + 'is_autoarchived': json['is_autoarchived'] == null ? undefined : json['is_autoarchived'], + 'is_discounted': json['is_discounted'] == null ? undefined : json['is_discounted'], + 'is_kgt': json['is_kgt'] == null ? undefined : json['is_kgt'], + 'is_prepayment_allowed': json['is_prepayment_allowed'] == null ? undefined : json['is_prepayment_allowed'], + 'is_super': json['is_super'] == null ? undefined : json['is_super'], + 'min_price': json['min_price'] == null ? undefined : json['min_price'], + 'model_info': json['model_info'] == null ? undefined : (0, GetProductInfoListResponseModelInfo_1.GetProductInfoListResponseModelInfoFromJSON)(json['model_info']), + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'price': json['price'] == null ? undefined : json['price'], + 'price_indexes': json['price_indexes'] == null ? undefined : (0, GetProductInfoListResponsePriceIndexes_1.GetProductInfoListResponsePriceIndexesFromJSON)(json['price_indexes']), + 'primary_image': json['primary_image'] == null ? undefined : json['primary_image'], + 'promotions': json['promotions'] == null ? undefined : (json['promotions'].map(V3GetProductInfoListResponsePromotion_1.V3GetProductInfoListResponsePromotionFromJSON)), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'sources': json['sources'] == null ? undefined : (json['sources'].map(GetProductInfoListResponseSource_1.GetProductInfoListResponseSourceFromJSON)), + 'statuses': json['statuses'] == null ? undefined : (0, GetProductInfoListResponseStatuses_1.GetProductInfoListResponseStatusesFromJSON)(json['statuses']), + 'stocks': json['stocks'] == null ? undefined : (0, GetProductInfoListResponseStocks_1.GetProductInfoListResponseStocksFromJSON)(json['stocks']), + 'type_id': json['type_id'] == null ? undefined : json['type_id'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'vat': json['vat'] == null ? undefined : json['vat'], + 'visibility_details': json['visibility_details'] == null ? undefined : (0, GetProductInfoListResponseVisibilityDetails_1.GetProductInfoListResponseVisibilityDetailsFromJSON)(json['visibility_details']), + 'volume_weight': json['volume_weight'] == null ? undefined : json['volume_weight'], + }; +} +function V3GetProductInfoListResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'availabilities': value['availabilities'] == null ? undefined : (value['availabilities'].map(GetProductInfoListResponseAvailability_1.GetProductInfoListResponseAvailabilityToJSON)), + 'barcodes': value['barcodes'], + 'color_image': value['color_image'], + 'commissions': value['commissions'] == null ? undefined : (value['commissions'].map(GetProductInfoListResponseCommission_1.GetProductInfoListResponseCommissionToJSON)), + 'created_at': value['created_at'], + 'currency_code': value['currency_code'], + 'description_category_id': value['description_category_id'], + 'discounted_fbo_stocks': value['discounted_fbo_stocks'], + 'errors': value['errors'] == null ? undefined : (value['errors'].map(GetProductInfoListResponseError_1.GetProductInfoListResponseErrorToJSON)), + 'has_discounted_fbo_item': value['has_discounted_fbo_item'], + 'id': value['id'], + 'images': value['images'], + 'is_archived': value['is_archived'], + 'is_autoarchived': value['is_autoarchived'], + 'is_discounted': value['is_discounted'], + 'is_kgt': value['is_kgt'], + 'is_prepayment_allowed': value['is_prepayment_allowed'], + 'is_super': value['is_super'], + 'min_price': value['min_price'], + 'model_info': (0, GetProductInfoListResponseModelInfo_1.GetProductInfoListResponseModelInfoToJSON)(value['model_info']), + 'name': value['name'], + 'offer_id': value['offer_id'], + 'old_price': value['old_price'], + 'price': value['price'], + 'price_indexes': (0, GetProductInfoListResponsePriceIndexes_1.GetProductInfoListResponsePriceIndexesToJSON)(value['price_indexes']), + 'primary_image': value['primary_image'], + 'promotions': value['promotions'] == null ? undefined : (value['promotions'].map(V3GetProductInfoListResponsePromotion_1.V3GetProductInfoListResponsePromotionToJSON)), + 'sku': value['sku'], + 'sources': value['sources'] == null ? undefined : (value['sources'].map(GetProductInfoListResponseSource_1.GetProductInfoListResponseSourceToJSON)), + 'statuses': (0, GetProductInfoListResponseStatuses_1.GetProductInfoListResponseStatusesToJSON)(value['statuses']), + 'stocks': (0, GetProductInfoListResponseStocks_1.GetProductInfoListResponseStocksToJSON)(value['stocks']), + 'type_id': value['type_id'], + 'updated_at': value['updated_at'], + 'vat': value['vat'], + 'visibility_details': (0, GetProductInfoListResponseVisibilityDetails_1.GetProductInfoListResponseVisibilityDetailsToJSON)(value['visibility_details']), + 'volume_weight': value['volume_weight'], + }; +} diff --git a/dist/models/V3GetProductInfoListResponsePromotion.d.ts b/dist/models/V3GetProductInfoListResponsePromotion.d.ts new file mode 100644 index 0000000..01e201f --- /dev/null +++ b/dist/models/V3GetProductInfoListResponsePromotion.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3GetProductInfoListResponsePromotionType } from './V3GetProductInfoListResponsePromotionType'; +/** + * + * @export + * @interface V3GetProductInfoListResponsePromotion + */ +export interface V3GetProductInfoListResponsePromotion { + /** + * `true`, если акция включена. + * + * @type {boolean} + * @memberof V3GetProductInfoListResponsePromotion + */ + is_enabled?: boolean; + /** + * + * @type {V3GetProductInfoListResponsePromotionType} + * @memberof V3GetProductInfoListResponsePromotion + */ + type?: V3GetProductInfoListResponsePromotionType; +} +/** + * Check if a given object implements the V3GetProductInfoListResponsePromotion interface. + */ +export declare function instanceOfV3GetProductInfoListResponsePromotion(value: object): value is V3GetProductInfoListResponsePromotion; +export declare function V3GetProductInfoListResponsePromotionFromJSON(json: any): V3GetProductInfoListResponsePromotion; +export declare function V3GetProductInfoListResponsePromotionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListResponsePromotion; +export declare function V3GetProductInfoListResponsePromotionToJSON(value?: V3GetProductInfoListResponsePromotion | null): any; diff --git a/dist/models/V3GetProductInfoListResponsePromotion.js b/dist/models/V3GetProductInfoListResponsePromotion.js new file mode 100644 index 0000000..d12835e --- /dev/null +++ b/dist/models/V3GetProductInfoListResponsePromotion.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3GetProductInfoListResponsePromotion = instanceOfV3GetProductInfoListResponsePromotion; +exports.V3GetProductInfoListResponsePromotionFromJSON = V3GetProductInfoListResponsePromotionFromJSON; +exports.V3GetProductInfoListResponsePromotionFromJSONTyped = V3GetProductInfoListResponsePromotionFromJSONTyped; +exports.V3GetProductInfoListResponsePromotionToJSON = V3GetProductInfoListResponsePromotionToJSON; +const V3GetProductInfoListResponsePromotionType_1 = require("./V3GetProductInfoListResponsePromotionType"); +/** + * Check if a given object implements the V3GetProductInfoListResponsePromotion interface. + */ +function instanceOfV3GetProductInfoListResponsePromotion(value) { + return true; +} +function V3GetProductInfoListResponsePromotionFromJSON(json) { + return V3GetProductInfoListResponsePromotionFromJSONTyped(json, false); +} +function V3GetProductInfoListResponsePromotionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_enabled': json['is_enabled'] == null ? undefined : json['is_enabled'], + 'type': json['type'] == null ? undefined : (0, V3GetProductInfoListResponsePromotionType_1.V3GetProductInfoListResponsePromotionTypeFromJSON)(json['type']), + }; +} +function V3GetProductInfoListResponsePromotionToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_enabled': value['is_enabled'], + 'type': (0, V3GetProductInfoListResponsePromotionType_1.V3GetProductInfoListResponsePromotionTypeToJSON)(value['type']), + }; +} diff --git a/dist/models/V3GetProductInfoListResponsePromotionType.d.ts b/dist/models/V3GetProductInfoListResponsePromotionType.d.ts new file mode 100644 index 0000000..a5b8baa --- /dev/null +++ b/dist/models/V3GetProductInfoListResponsePromotionType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип акции: + * - `UNSPECIFIED` — не определено; + * - `REVIEWS_PROMO` — акция «Ускоренный сбор отзывов». + * + * @export + */ +export declare const V3GetProductInfoListResponsePromotionType: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly REVIEWS_PROMO: "REVIEWS_PROMO"; +}; +export type V3GetProductInfoListResponsePromotionType = typeof V3GetProductInfoListResponsePromotionType[keyof typeof V3GetProductInfoListResponsePromotionType]; +export declare function instanceOfV3GetProductInfoListResponsePromotionType(value: any): boolean; +export declare function V3GetProductInfoListResponsePromotionTypeFromJSON(json: any): V3GetProductInfoListResponsePromotionType; +export declare function V3GetProductInfoListResponsePromotionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3GetProductInfoListResponsePromotionType; +export declare function V3GetProductInfoListResponsePromotionTypeToJSON(value?: V3GetProductInfoListResponsePromotionType | null): any; diff --git a/dist/models/V3GetProductInfoListResponsePromotionType.js b/dist/models/V3GetProductInfoListResponsePromotionType.js new file mode 100644 index 0000000..43a30ce --- /dev/null +++ b/dist/models/V3GetProductInfoListResponsePromotionType.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V3GetProductInfoListResponsePromotionType = void 0; +exports.instanceOfV3GetProductInfoListResponsePromotionType = instanceOfV3GetProductInfoListResponsePromotionType; +exports.V3GetProductInfoListResponsePromotionTypeFromJSON = V3GetProductInfoListResponsePromotionTypeFromJSON; +exports.V3GetProductInfoListResponsePromotionTypeFromJSONTyped = V3GetProductInfoListResponsePromotionTypeFromJSONTyped; +exports.V3GetProductInfoListResponsePromotionTypeToJSON = V3GetProductInfoListResponsePromotionTypeToJSON; +/** + * Тип акции: + * - `UNSPECIFIED` — не определено; + * - `REVIEWS_PROMO` — акция «Ускоренный сбор отзывов». + * + * @export + */ +exports.V3GetProductInfoListResponsePromotionType = { + UNSPECIFIED: 'UNSPECIFIED', + REVIEWS_PROMO: 'REVIEWS_PROMO' +}; +function instanceOfV3GetProductInfoListResponsePromotionType(value) { + for (const key in exports.V3GetProductInfoListResponsePromotionType) { + if (Object.prototype.hasOwnProperty.call(exports.V3GetProductInfoListResponsePromotionType, key)) { + if (exports.V3GetProductInfoListResponsePromotionType[key] === value) { + return true; + } + } + } + return false; +} +function V3GetProductInfoListResponsePromotionTypeFromJSON(json) { + return V3GetProductInfoListResponsePromotionTypeFromJSONTyped(json, false); +} +function V3GetProductInfoListResponsePromotionTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V3GetProductInfoListResponsePromotionTypeToJSON(value) { + return value; +} diff --git a/dist/models/V3ImportProductsRequest.d.ts b/dist/models/V3ImportProductsRequest.d.ts new file mode 100644 index 0000000..96deb44 --- /dev/null +++ b/dist/models/V3ImportProductsRequest.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsRequestItem } from './V3ImportProductsRequestItem'; +/** + * + * @export + * @interface V3ImportProductsRequest + */ +export interface V3ImportProductsRequest { + /** + * Массив данных. + * @type {Array} + * @memberof V3ImportProductsRequest + */ + items?: Array; +} +/** + * Check if a given object implements the V3ImportProductsRequest interface. + */ +export declare function instanceOfV3ImportProductsRequest(value: object): value is V3ImportProductsRequest; +export declare function V3ImportProductsRequestFromJSON(json: any): V3ImportProductsRequest; +export declare function V3ImportProductsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequest; +export declare function V3ImportProductsRequestToJSON(value?: V3ImportProductsRequest | null): any; diff --git a/dist/models/V3ImportProductsRequest.js b/dist/models/V3ImportProductsRequest.js new file mode 100644 index 0000000..ef00c7d --- /dev/null +++ b/dist/models/V3ImportProductsRequest.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ImportProductsRequest = instanceOfV3ImportProductsRequest; +exports.V3ImportProductsRequestFromJSON = V3ImportProductsRequestFromJSON; +exports.V3ImportProductsRequestFromJSONTyped = V3ImportProductsRequestFromJSONTyped; +exports.V3ImportProductsRequestToJSON = V3ImportProductsRequestToJSON; +const V3ImportProductsRequestItem_1 = require("./V3ImportProductsRequestItem"); +/** + * Check if a given object implements the V3ImportProductsRequest interface. + */ +function instanceOfV3ImportProductsRequest(value) { + return true; +} +function V3ImportProductsRequestFromJSON(json) { + return V3ImportProductsRequestFromJSONTyped(json, false); +} +function V3ImportProductsRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': json['items'] == null ? undefined : (json['items'].map(V3ImportProductsRequestItem_1.V3ImportProductsRequestItemFromJSON)), + }; +} +function V3ImportProductsRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'items': value['items'] == null ? undefined : (value['items'].map(V3ImportProductsRequestItem_1.V3ImportProductsRequestItemToJSON)), + }; +} diff --git a/dist/models/V3ImportProductsRequestAttribute.d.ts b/dist/models/V3ImportProductsRequestAttribute.d.ts new file mode 100644 index 0000000..0ddd646 --- /dev/null +++ b/dist/models/V3ImportProductsRequestAttribute.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsRequestDictionaryValue } from './V3ImportProductsRequestDictionaryValue'; +/** + * + * @export + * @interface V3ImportProductsRequestAttribute + */ +export interface V3ImportProductsRequestAttribute { + /** + * Идентификатор характеристики, которая поддерживает вложенные свойства. Например, у характеристики «Процессор» есть вложенные характеристики «Производитель», «L2 Cache» и другие. У каждой из вложенных характеристик может быть несколько вариантов значений. + * @type {number} + * @memberof V3ImportProductsRequestAttribute + */ + complex_id?: number; + /** + * Идентификатор характеристики. + * @type {number} + * @memberof V3ImportProductsRequestAttribute + */ + id?: number; + /** + * Массив вложенных значений характеристики. + * @type {Array} + * @memberof V3ImportProductsRequestAttribute + */ + values?: Array; +} +/** + * Check if a given object implements the V3ImportProductsRequestAttribute interface. + */ +export declare function instanceOfV3ImportProductsRequestAttribute(value: object): value is V3ImportProductsRequestAttribute; +export declare function V3ImportProductsRequestAttributeFromJSON(json: any): V3ImportProductsRequestAttribute; +export declare function V3ImportProductsRequestAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequestAttribute; +export declare function V3ImportProductsRequestAttributeToJSON(value?: V3ImportProductsRequestAttribute | null): any; diff --git a/dist/models/V3ImportProductsRequestAttribute.js b/dist/models/V3ImportProductsRequestAttribute.js new file mode 100644 index 0000000..67df444 --- /dev/null +++ b/dist/models/V3ImportProductsRequestAttribute.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ImportProductsRequestAttribute = instanceOfV3ImportProductsRequestAttribute; +exports.V3ImportProductsRequestAttributeFromJSON = V3ImportProductsRequestAttributeFromJSON; +exports.V3ImportProductsRequestAttributeFromJSONTyped = V3ImportProductsRequestAttributeFromJSONTyped; +exports.V3ImportProductsRequestAttributeToJSON = V3ImportProductsRequestAttributeToJSON; +const V3ImportProductsRequestDictionaryValue_1 = require("./V3ImportProductsRequestDictionaryValue"); +/** + * Check if a given object implements the V3ImportProductsRequestAttribute interface. + */ +function instanceOfV3ImportProductsRequestAttribute(value) { + return true; +} +function V3ImportProductsRequestAttributeFromJSON(json) { + return V3ImportProductsRequestAttributeFromJSONTyped(json, false); +} +function V3ImportProductsRequestAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'complex_id': json['complex_id'] == null ? undefined : json['complex_id'], + 'id': json['id'] == null ? undefined : json['id'], + 'values': json['values'] == null ? undefined : (json['values'].map(V3ImportProductsRequestDictionaryValue_1.V3ImportProductsRequestDictionaryValueFromJSON)), + }; +} +function V3ImportProductsRequestAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'complex_id': value['complex_id'], + 'id': value['id'], + 'values': value['values'] == null ? undefined : (value['values'].map(V3ImportProductsRequestDictionaryValue_1.V3ImportProductsRequestDictionaryValueToJSON)), + }; +} diff --git a/dist/models/V3ImportProductsRequestComplexAttribute.d.ts b/dist/models/V3ImportProductsRequestComplexAttribute.d.ts new file mode 100644 index 0000000..c24e935 --- /dev/null +++ b/dist/models/V3ImportProductsRequestComplexAttribute.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsRequestAttribute } from './V3ImportProductsRequestAttribute'; +/** + * + * @export + * @interface V3ImportProductsRequestComplexAttribute + */ +export interface V3ImportProductsRequestComplexAttribute { + /** + * + * @type {Array} + * @memberof V3ImportProductsRequestComplexAttribute + */ + attributes?: Array; +} +/** + * Check if a given object implements the V3ImportProductsRequestComplexAttribute interface. + */ +export declare function instanceOfV3ImportProductsRequestComplexAttribute(value: object): value is V3ImportProductsRequestComplexAttribute; +export declare function V3ImportProductsRequestComplexAttributeFromJSON(json: any): V3ImportProductsRequestComplexAttribute; +export declare function V3ImportProductsRequestComplexAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequestComplexAttribute; +export declare function V3ImportProductsRequestComplexAttributeToJSON(value?: V3ImportProductsRequestComplexAttribute | null): any; diff --git a/dist/models/V3ImportProductsRequestComplexAttribute.js b/dist/models/V3ImportProductsRequestComplexAttribute.js new file mode 100644 index 0000000..180d4da --- /dev/null +++ b/dist/models/V3ImportProductsRequestComplexAttribute.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ImportProductsRequestComplexAttribute = instanceOfV3ImportProductsRequestComplexAttribute; +exports.V3ImportProductsRequestComplexAttributeFromJSON = V3ImportProductsRequestComplexAttributeFromJSON; +exports.V3ImportProductsRequestComplexAttributeFromJSONTyped = V3ImportProductsRequestComplexAttributeFromJSONTyped; +exports.V3ImportProductsRequestComplexAttributeToJSON = V3ImportProductsRequestComplexAttributeToJSON; +const V3ImportProductsRequestAttribute_1 = require("./V3ImportProductsRequestAttribute"); +/** + * Check if a given object implements the V3ImportProductsRequestComplexAttribute interface. + */ +function instanceOfV3ImportProductsRequestComplexAttribute(value) { + return true; +} +function V3ImportProductsRequestComplexAttributeFromJSON(json) { + return V3ImportProductsRequestComplexAttributeFromJSONTyped(json, false); +} +function V3ImportProductsRequestComplexAttributeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(V3ImportProductsRequestAttribute_1.V3ImportProductsRequestAttributeFromJSON)), + }; +} +function V3ImportProductsRequestComplexAttributeToJSON(value) { + if (value == null) { + return value; + } + return { + 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(V3ImportProductsRequestAttribute_1.V3ImportProductsRequestAttributeToJSON)), + }; +} diff --git a/dist/models/V3ImportProductsRequestDictionaryValue.d.ts b/dist/models/V3ImportProductsRequestDictionaryValue.d.ts new file mode 100644 index 0000000..820ce3c --- /dev/null +++ b/dist/models/V3ImportProductsRequestDictionaryValue.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3ImportProductsRequestDictionaryValue + */ +export interface V3ImportProductsRequestDictionaryValue { + /** + * Идентификатор справочника. + * @type {number} + * @memberof V3ImportProductsRequestDictionaryValue + */ + dictionary_value_id?: number; + /** + * Значение из справочника. + * @type {string} + * @memberof V3ImportProductsRequestDictionaryValue + */ + value?: string; +} +/** + * Check if a given object implements the V3ImportProductsRequestDictionaryValue interface. + */ +export declare function instanceOfV3ImportProductsRequestDictionaryValue(value: object): value is V3ImportProductsRequestDictionaryValue; +export declare function V3ImportProductsRequestDictionaryValueFromJSON(json: any): V3ImportProductsRequestDictionaryValue; +export declare function V3ImportProductsRequestDictionaryValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequestDictionaryValue; +export declare function V3ImportProductsRequestDictionaryValueToJSON(value?: V3ImportProductsRequestDictionaryValue | null): any; diff --git a/dist/models/V3ImportProductsRequestDictionaryValue.js b/dist/models/V3ImportProductsRequestDictionaryValue.js new file mode 100644 index 0000000..54a6ae5 --- /dev/null +++ b/dist/models/V3ImportProductsRequestDictionaryValue.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ImportProductsRequestDictionaryValue = instanceOfV3ImportProductsRequestDictionaryValue; +exports.V3ImportProductsRequestDictionaryValueFromJSON = V3ImportProductsRequestDictionaryValueFromJSON; +exports.V3ImportProductsRequestDictionaryValueFromJSONTyped = V3ImportProductsRequestDictionaryValueFromJSONTyped; +exports.V3ImportProductsRequestDictionaryValueToJSON = V3ImportProductsRequestDictionaryValueToJSON; +/** + * Check if a given object implements the V3ImportProductsRequestDictionaryValue interface. + */ +function instanceOfV3ImportProductsRequestDictionaryValue(value) { + return true; +} +function V3ImportProductsRequestDictionaryValueFromJSON(json) { + return V3ImportProductsRequestDictionaryValueFromJSONTyped(json, false); +} +function V3ImportProductsRequestDictionaryValueFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dictionary_value_id': json['dictionary_value_id'] == null ? undefined : json['dictionary_value_id'], + 'value': json['value'] == null ? undefined : json['value'], + }; +} +function V3ImportProductsRequestDictionaryValueToJSON(value) { + if (value == null) { + return value; + } + return { + 'dictionary_value_id': value['dictionary_value_id'], + 'value': value['value'], + }; +} diff --git a/dist/models/V3ImportProductsRequestItem.d.ts b/dist/models/V3ImportProductsRequestItem.d.ts new file mode 100644 index 0000000..633e5ad --- /dev/null +++ b/dist/models/V3ImportProductsRequestItem.d.ts @@ -0,0 +1,239 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsRequestAttribute } from './V3ImportProductsRequestAttribute'; +import type { V3ServiceType } from './V3ServiceType'; +import type { ImportProductsRequestPdfList } from './ImportProductsRequestPdfList'; +import type { V3ImportProductsRequestComplexAttribute } from './V3ImportProductsRequestComplexAttribute'; +import type { ImportProductRequestPromotion } from './ImportProductRequestPromotion'; +/** + * + * @export + * @interface V3ImportProductsRequestItem + */ +export interface V3ImportProductsRequestItem { + /** + * Массив с характеристиками товара. Характеристики отличаются для разных категорий — их можно посмотреть в [Базе знаний продавца](https://seller-edu.ozon.ru/) или через API. + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + attributes?: Array; + /** + * Штрихкод товара. + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + barcode?: string; + /** + * Маркетинговый цвет. + * + * Формат: адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + color_image?: string; + /** + * Массив характеристик, у которых есть вложенные атрибуты. + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + complex_attributes?: Array; + /** + * Валюта ваших цен. Переданное значение должно совпадать с валютой, которая установлена в настройках личного кабинета. По умолчанию передаётся `RUB` — российский рубль. + * + * Например, если у вас установлена валюта взаиморасчётов юань, передавайте значение `CNY`, иначе вернётся ошибка. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + currency_code?: string; + /** + * Глубина упаковки. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + depth?: number; + /** + * Идентификатор категории. Можно получить с помощью метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). Чтобы изменить категорию, используйте параметр `new_description_category_id`. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + description_category_id: number; + /** + * Новый идентификатор категории. Укажите его, если нужно изменить текущую категорию товара. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + new_description_category_id?: number; + /** + * Единица измерения габаритов: + * - `mm` — миллиметры, + * - `cm` — сантиметры, + * - `in` — дюймы. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + dimension_unit?: string; + /** + * Геоограничения — при необходимости заполните параметр в личном кабинете при создании или редактировании товара. + * + * Необязательный параметр. + * + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + geo_names?: Array; + /** + * Высота упаковки. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + height?: number; + /** + * Массив изображений. До 30 штук. Изображения показываются на сайте в таком же порядке, как в массиве. + * + * Если не передать значение `primary_image`, первое изображение в массиве будет главным для товара. + * + * Если вы передали значение `primary_image`, передайте до 29 изображений. + * Если параметр `primary_image` пустой, передайте до 30 изображений. + * + * Формат: адрес ссылки на изображение в общедоступном облачном хранилище. Формат изображения по ссылке — JPG или PNG. + * + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + images?: Array; + /** + * Название товара. До 500 символов. + * + * [Правила для названия товара](https://seller-edu.ozon.ru/work-with-goods/trebovaniya-k-kartochkam-tovarov/product-information/nazvanie-tovara) + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * + * Максимальная длина строки — 50 символов. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + offer_id: string; + /** + * Цена до скидок (будет зачёркнута на карточке товара). Указывается в рублях. Разделитель дробной + * части — точка, до двух знаков после точки. + * + * Если вы раньше передавали `old_price`, то при обновлении `price` также обновите `old_price`. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + old_price?: string; + /** + * Список PDF-файлов. + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + pdf_list?: Array; + /** + * Цена товара с учётом скидок, отображается на карточке товара. Если на товар нет скидок, укажите + * значение `old_price` в этом параметре. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + price: string; + /** + * Ссылка на главное изображение товара. + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + primary_image?: string; + /** + * Акции. + * @type {Array} + * @memberof V3ImportProductsRequestItem + */ + promotions?: Array; + /** + * + * @type {V3ServiceType} + * @memberof V3ImportProductsRequestItem + */ + service_type?: V3ServiceType; + /** + * Идентификатор типа товара. + * Значения можно получить из такого же параметра `type_id` в ответе метода [/v1/description-category/tree](#operation/DescriptionCategoryAPI_GetTree). + * При заполнении этого параметра можно не указывать в `attibutes ` атрибут с параметром `id:8229`, `type_id` будет использоваться в приоритете. + * + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + type_id: number; + /** + * Ставка НДС для товара: + * - `0` — не облагается НДС, + * - `0.05` — 5%, + * - `0.07` — 7%, + * - `0.1` — 10%, + * - `0.2` — 20%, + * - `0.22` — 22%. + * + * Передавайте значение ставки, актуальное на данный момент. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + vat?: string; + /** + * Вес товара в упаковке. Предельное значение — 1000 килограммов или конвертированная величина в других + * единицах измерения. + * + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + weight?: number; + /** + * Единица измерения веса: + * - `g` — граммы, + * - `kg` — килограммы, + * - `lb` — фунты. + * + * @type {string} + * @memberof V3ImportProductsRequestItem + */ + weight_unit?: string; + /** + * Ширина упаковки. + * @type {number} + * @memberof V3ImportProductsRequestItem + */ + width?: number; +} +/** + * Check if a given object implements the V3ImportProductsRequestItem interface. + */ +export declare function instanceOfV3ImportProductsRequestItem(value: object): value is V3ImportProductsRequestItem; +export declare function V3ImportProductsRequestItemFromJSON(json: any): V3ImportProductsRequestItem; +export declare function V3ImportProductsRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsRequestItem; +export declare function V3ImportProductsRequestItemToJSON(value?: V3ImportProductsRequestItem | null): any; diff --git a/dist/models/V3ImportProductsRequestItem.js b/dist/models/V3ImportProductsRequestItem.js new file mode 100644 index 0000000..280ac04 --- /dev/null +++ b/dist/models/V3ImportProductsRequestItem.js @@ -0,0 +1,105 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ImportProductsRequestItem = instanceOfV3ImportProductsRequestItem; +exports.V3ImportProductsRequestItemFromJSON = V3ImportProductsRequestItemFromJSON; +exports.V3ImportProductsRequestItemFromJSONTyped = V3ImportProductsRequestItemFromJSONTyped; +exports.V3ImportProductsRequestItemToJSON = V3ImportProductsRequestItemToJSON; +const V3ImportProductsRequestAttribute_1 = require("./V3ImportProductsRequestAttribute"); +const V3ServiceType_1 = require("./V3ServiceType"); +const ImportProductsRequestPdfList_1 = require("./ImportProductsRequestPdfList"); +const V3ImportProductsRequestComplexAttribute_1 = require("./V3ImportProductsRequestComplexAttribute"); +const ImportProductRequestPromotion_1 = require("./ImportProductRequestPromotion"); +/** + * Check if a given object implements the V3ImportProductsRequestItem interface. + */ +function instanceOfV3ImportProductsRequestItem(value) { + if (!('description_category_id' in value) || value['description_category_id'] === undefined) + return false; + if (!('offer_id' in value) || value['offer_id'] === undefined) + return false; + if (!('price' in value) || value['price'] === undefined) + return false; + if (!('type_id' in value) || value['type_id'] === undefined) + return false; + return true; +} +function V3ImportProductsRequestItemFromJSON(json) { + return V3ImportProductsRequestItemFromJSONTyped(json, false); +} +function V3ImportProductsRequestItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(V3ImportProductsRequestAttribute_1.V3ImportProductsRequestAttributeFromJSON)), + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'color_image': json['color_image'] == null ? undefined : json['color_image'], + 'complex_attributes': json['complex_attributes'] == null ? undefined : (json['complex_attributes'].map(V3ImportProductsRequestComplexAttribute_1.V3ImportProductsRequestComplexAttributeFromJSON)), + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'depth': json['depth'] == null ? undefined : json['depth'], + 'description_category_id': json['description_category_id'], + 'new_description_category_id': json['new_description_category_id'] == null ? undefined : json['new_description_category_id'], + 'dimension_unit': json['dimension_unit'] == null ? undefined : json['dimension_unit'], + 'geo_names': json['geo_names'] == null ? undefined : json['geo_names'], + 'height': json['height'] == null ? undefined : json['height'], + 'images': json['images'] == null ? undefined : json['images'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'], + 'old_price': json['old_price'] == null ? undefined : json['old_price'], + 'pdf_list': json['pdf_list'] == null ? undefined : (json['pdf_list'].map(ImportProductsRequestPdfList_1.ImportProductsRequestPdfListFromJSON)), + 'price': json['price'], + 'primary_image': json['primary_image'] == null ? undefined : json['primary_image'], + 'promotions': json['promotions'] == null ? undefined : (json['promotions'].map(ImportProductRequestPromotion_1.ImportProductRequestPromotionFromJSON)), + 'service_type': json['service_type'] == null ? undefined : (0, V3ServiceType_1.V3ServiceTypeFromJSON)(json['service_type']), + 'type_id': json['type_id'], + 'vat': json['vat'] == null ? undefined : json['vat'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'weight_unit': json['weight_unit'] == null ? undefined : json['weight_unit'], + 'width': json['width'] == null ? undefined : json['width'], + }; +} +function V3ImportProductsRequestItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(V3ImportProductsRequestAttribute_1.V3ImportProductsRequestAttributeToJSON)), + 'barcode': value['barcode'], + 'color_image': value['color_image'], + 'complex_attributes': value['complex_attributes'] == null ? undefined : (value['complex_attributes'].map(V3ImportProductsRequestComplexAttribute_1.V3ImportProductsRequestComplexAttributeToJSON)), + 'currency_code': value['currency_code'], + 'depth': value['depth'], + 'description_category_id': value['description_category_id'], + 'new_description_category_id': value['new_description_category_id'], + 'dimension_unit': value['dimension_unit'], + 'geo_names': value['geo_names'], + 'height': value['height'], + 'images': value['images'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'old_price': value['old_price'], + 'pdf_list': value['pdf_list'] == null ? undefined : (value['pdf_list'].map(ImportProductsRequestPdfList_1.ImportProductsRequestPdfListToJSON)), + 'price': value['price'], + 'primary_image': value['primary_image'], + 'promotions': value['promotions'] == null ? undefined : (value['promotions'].map(ImportProductRequestPromotion_1.ImportProductRequestPromotionToJSON)), + 'service_type': (0, V3ServiceType_1.V3ServiceTypeToJSON)(value['service_type']), + 'type_id': value['type_id'], + 'vat': value['vat'], + 'weight': value['weight'], + 'weight_unit': value['weight_unit'], + 'width': value['width'], + }; +} diff --git a/dist/models/V3ImportProductsResponse.d.ts b/dist/models/V3ImportProductsResponse.d.ts new file mode 100644 index 0000000..814cf96 --- /dev/null +++ b/dist/models/V3ImportProductsResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3ImportProductsResponseResult } from './V3ImportProductsResponseResult'; +/** + * + * @export + * @interface V3ImportProductsResponse + */ +export interface V3ImportProductsResponse { + /** + * + * @type {V3ImportProductsResponseResult} + * @memberof V3ImportProductsResponse + */ + result?: V3ImportProductsResponseResult; +} +/** + * Check if a given object implements the V3ImportProductsResponse interface. + */ +export declare function instanceOfV3ImportProductsResponse(value: object): value is V3ImportProductsResponse; +export declare function V3ImportProductsResponseFromJSON(json: any): V3ImportProductsResponse; +export declare function V3ImportProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsResponse; +export declare function V3ImportProductsResponseToJSON(value?: V3ImportProductsResponse | null): any; diff --git a/dist/models/V3ImportProductsResponse.js b/dist/models/V3ImportProductsResponse.js new file mode 100644 index 0000000..80a2b81 --- /dev/null +++ b/dist/models/V3ImportProductsResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ImportProductsResponse = instanceOfV3ImportProductsResponse; +exports.V3ImportProductsResponseFromJSON = V3ImportProductsResponseFromJSON; +exports.V3ImportProductsResponseFromJSONTyped = V3ImportProductsResponseFromJSONTyped; +exports.V3ImportProductsResponseToJSON = V3ImportProductsResponseToJSON; +const V3ImportProductsResponseResult_1 = require("./V3ImportProductsResponseResult"); +/** + * Check if a given object implements the V3ImportProductsResponse interface. + */ +function instanceOfV3ImportProductsResponse(value) { + return true; +} +function V3ImportProductsResponseFromJSON(json) { + return V3ImportProductsResponseFromJSONTyped(json, false); +} +function V3ImportProductsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (0, V3ImportProductsResponseResult_1.V3ImportProductsResponseResultFromJSON)(json['result']), + }; +} +function V3ImportProductsResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': (0, V3ImportProductsResponseResult_1.V3ImportProductsResponseResultToJSON)(value['result']), + }; +} diff --git a/dist/models/V3ImportProductsResponseResult.d.ts b/dist/models/V3ImportProductsResponseResult.d.ts new file mode 100644 index 0000000..4dfc6ee --- /dev/null +++ b/dist/models/V3ImportProductsResponseResult.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Результаты запроса. + * @export + * @interface V3ImportProductsResponseResult + */ +export interface V3ImportProductsResponseResult { + /** + * Номер задания на загрузку товаров. Проверьте статус создания или обновления товара методом [/v1/product/import/info](#operation/ProductAPI_GetImportProductsInfo). + * @type {number} + * @memberof V3ImportProductsResponseResult + */ + task_id?: number; +} +/** + * Check if a given object implements the V3ImportProductsResponseResult interface. + */ +export declare function instanceOfV3ImportProductsResponseResult(value: object): value is V3ImportProductsResponseResult; +export declare function V3ImportProductsResponseResultFromJSON(json: any): V3ImportProductsResponseResult; +export declare function V3ImportProductsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ImportProductsResponseResult; +export declare function V3ImportProductsResponseResultToJSON(value?: V3ImportProductsResponseResult | null): any; diff --git a/dist/models/V3ImportProductsResponseResult.js b/dist/models/V3ImportProductsResponseResult.js new file mode 100644 index 0000000..ce460e2 --- /dev/null +++ b/dist/models/V3ImportProductsResponseResult.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3ImportProductsResponseResult = instanceOfV3ImportProductsResponseResult; +exports.V3ImportProductsResponseResultFromJSON = V3ImportProductsResponseResultFromJSON; +exports.V3ImportProductsResponseResultFromJSONTyped = V3ImportProductsResponseResultFromJSONTyped; +exports.V3ImportProductsResponseResultToJSON = V3ImportProductsResponseResultToJSON; +/** + * Check if a given object implements the V3ImportProductsResponseResult interface. + */ +function instanceOfV3ImportProductsResponseResult(value) { + return true; +} +function V3ImportProductsResponseResultFromJSON(json) { + return V3ImportProductsResponseResultFromJSONTyped(json, false); +} +function V3ImportProductsResponseResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'task_id': json['task_id'] == null ? undefined : json['task_id'], + }; +} +function V3ImportProductsResponseResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'task_id': value['task_id'], + }; +} diff --git a/dist/models/V3PostingFinancialData.d.ts b/dist/models/V3PostingFinancialData.d.ts new file mode 100644 index 0000000..e4388cb --- /dev/null +++ b/dist/models/V3PostingFinancialData.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { PostingFinancialDataProduct } from './PostingFinancialDataProduct'; +/** + * Данные о стоимости товара, размере скидки, выплате и комиссии. + * @export + * @interface V3PostingFinancialData + */ +export interface V3PostingFinancialData { + /** + * Код региона, откуда отправляется заказ. + * @type {string} + * @memberof V3PostingFinancialData + */ + cluster_from?: string; + /** + * Код региона, куда доставляется заказ. + * @type {string} + * @memberof V3PostingFinancialData + */ + cluster_to?: string; + /** + * Список товаров в заказе. + * @type {Array} + * @memberof V3PostingFinancialData + */ + products?: Array; +} +/** + * Check if a given object implements the V3PostingFinancialData interface. + */ +export declare function instanceOfV3PostingFinancialData(value: object): value is V3PostingFinancialData; +export declare function V3PostingFinancialDataFromJSON(json: any): V3PostingFinancialData; +export declare function V3PostingFinancialDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3PostingFinancialData; +export declare function V3PostingFinancialDataToJSON(value?: V3PostingFinancialData | null): any; diff --git a/dist/models/V3PostingFinancialData.js b/dist/models/V3PostingFinancialData.js new file mode 100644 index 0000000..a658a76 --- /dev/null +++ b/dist/models/V3PostingFinancialData.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3PostingFinancialData = instanceOfV3PostingFinancialData; +exports.V3PostingFinancialDataFromJSON = V3PostingFinancialDataFromJSON; +exports.V3PostingFinancialDataFromJSONTyped = V3PostingFinancialDataFromJSONTyped; +exports.V3PostingFinancialDataToJSON = V3PostingFinancialDataToJSON; +const PostingFinancialDataProduct_1 = require("./PostingFinancialDataProduct"); +/** + * Check if a given object implements the V3PostingFinancialData interface. + */ +function instanceOfV3PostingFinancialData(value) { + return true; +} +function V3PostingFinancialDataFromJSON(json) { + return V3PostingFinancialDataFromJSONTyped(json, false); +} +function V3PostingFinancialDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cluster_from': json['cluster_from'] == null ? undefined : json['cluster_from'], + 'cluster_to': json['cluster_to'] == null ? undefined : json['cluster_to'], + 'products': json['products'] == null ? undefined : (json['products'].map(PostingFinancialDataProduct_1.PostingFinancialDataProductFromJSON)), + }; +} +function V3PostingFinancialDataToJSON(value) { + if (value == null) { + return value; + } + return { + 'cluster_from': value['cluster_from'], + 'cluster_to': value['cluster_to'], + 'products': value['products'] == null ? undefined : (value['products'].map(PostingFinancialDataProduct_1.PostingFinancialDataProductToJSON)), + }; +} diff --git a/dist/models/V3PostingProductDetail.d.ts b/dist/models/V3PostingProductDetail.d.ts new file mode 100644 index 0000000..bd04281 --- /dev/null +++ b/dist/models/V3PostingProductDetail.d.ts @@ -0,0 +1,133 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3Dimensions } from './V3Dimensions'; +/** + * Размеры товара. + * @export + * @interface V3PostingProductDetail + */ +export interface V3PostingProductDetail { + /** + * + * @type {V3Dimensions} + * @memberof V3PostingProductDetail + */ + dimensions?: V3Dimensions; + /** + * Обязательная маркировка товара. + * @type {Array} + * @memberof V3PostingProductDetail + * @deprecated + */ + mandatory_mark?: Array; + /** + * Название. + * @type {string} + * @memberof V3PostingProductDetail + */ + name?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V3PostingProductDetail + */ + offer_id?: string; + /** + * Цена товара с учётом скидок — это значение показывается на карточке товара. + * @type {string} + * @memberof V3PostingProductDetail + */ + price?: string; + /** + * Уникальный идентификационный номер (УИН) ювелирного изделия. + * @type {Array} + * @memberof V3PostingProductDetail + */ + jw_uin?: Array; + /** + * Валюта ваших цен. Совпадает с валютой, которая установлена в настройках личного кабинета. + * + * Возможные значения: + * - `RUB` — российский рубль, + * - `BYN` — белорусский рубль, + * - `KZT` — тенге, + * - `EUR` — евро, + * - `USD` — доллар США, + * - `CNY` — юань. + * + * @type {string} + * @memberof V3PostingProductDetail + */ + currency_code?: string; + /** + * Признак прослеживаемости товара. + * @type {boolean} + * @memberof V3PostingProductDetail + */ + is_blr_traceable?: boolean; + /** + * `true`, если Ozon выкупил товар. + * + * [Подробнее о выкупе товаров в Базе знаний продавца](https://seller-edu.ozon.ru/commissions-tariffs/commissions-tariffs-ozon/prodaji-tovarov-v-eaes-i-drugie-strany#какие-товары-выкупает-ozon) + * + * @type {boolean} + * @memberof V3PostingProductDetail + */ + is_marketplace_buyout?: boolean; + /** + * Количество товара. + * @type {number} + * @memberof V3PostingProductDetail + */ + quantity?: number; + /** + * Идентификатор товара на Ozon. + * @type {number} + * @memberof V3PostingProductDetail + */ + sku?: number; + /** + * `true`, если товар весовой. + * + * @type {boolean} + * @memberof V3PostingProductDetail + */ + is_weight_needed?: boolean; + /** + * Максимальный вес экземпляра. + * @type {number} + * @memberof V3PostingProductDetail + */ + weight_max?: number; + /** + * Минимальный вес экземпляра. + * @type {number} + * @memberof V3PostingProductDetail + */ + weight_min?: number; + /** + * Признак наличия IMEI. + * + * Если IMEI есть — `true`. + * + * @type {boolean} + * @memberof V3PostingProductDetail + */ + has_imei?: boolean; +} +/** + * Check if a given object implements the V3PostingProductDetail interface. + */ +export declare function instanceOfV3PostingProductDetail(value: object): value is V3PostingProductDetail; +export declare function V3PostingProductDetailFromJSON(json: any): V3PostingProductDetail; +export declare function V3PostingProductDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3PostingProductDetail; +export declare function V3PostingProductDetailToJSON(value?: V3PostingProductDetail | null): any; diff --git a/dist/models/V3PostingProductDetail.js b/dist/models/V3PostingProductDetail.js new file mode 100644 index 0000000..088ef4a --- /dev/null +++ b/dist/models/V3PostingProductDetail.js @@ -0,0 +1,73 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3PostingProductDetail = instanceOfV3PostingProductDetail; +exports.V3PostingProductDetailFromJSON = V3PostingProductDetailFromJSON; +exports.V3PostingProductDetailFromJSONTyped = V3PostingProductDetailFromJSONTyped; +exports.V3PostingProductDetailToJSON = V3PostingProductDetailToJSON; +const V3Dimensions_1 = require("./V3Dimensions"); +/** + * Check if a given object implements the V3PostingProductDetail interface. + */ +function instanceOfV3PostingProductDetail(value) { + return true; +} +function V3PostingProductDetailFromJSON(json) { + return V3PostingProductDetailFromJSONTyped(json, false); +} +function V3PostingProductDetailFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dimensions': json['dimensions'] == null ? undefined : (0, V3Dimensions_1.V3DimensionsFromJSON)(json['dimensions']), + 'mandatory_mark': json['mandatory_mark'] == null ? undefined : json['mandatory_mark'], + 'name': json['name'] == null ? undefined : json['name'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'price': json['price'] == null ? undefined : json['price'], + 'jw_uin': json['jw_uin'] == null ? undefined : json['jw_uin'], + 'currency_code': json['currency_code'] == null ? undefined : json['currency_code'], + 'is_blr_traceable': json['is_blr_traceable'] == null ? undefined : json['is_blr_traceable'], + 'is_marketplace_buyout': json['is_marketplace_buyout'] == null ? undefined : json['is_marketplace_buyout'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + 'sku': json['sku'] == null ? undefined : json['sku'], + 'is_weight_needed': json['is_weight_needed'] == null ? undefined : json['is_weight_needed'], + 'weight_max': json['weight_max'] == null ? undefined : json['weight_max'], + 'weight_min': json['weight_min'] == null ? undefined : json['weight_min'], + 'has_imei': json['has_imei'] == null ? undefined : json['has_imei'], + }; +} +function V3PostingProductDetailToJSON(value) { + if (value == null) { + return value; + } + return { + 'dimensions': (0, V3Dimensions_1.V3DimensionsToJSON)(value['dimensions']), + 'mandatory_mark': value['mandatory_mark'], + 'name': value['name'], + 'offer_id': value['offer_id'], + 'price': value['price'], + 'jw_uin': value['jw_uin'], + 'currency_code': value['currency_code'], + 'is_blr_traceable': value['is_blr_traceable'], + 'is_marketplace_buyout': value['is_marketplace_buyout'], + 'quantity': value['quantity'], + 'sku': value['sku'], + 'is_weight_needed': value['is_weight_needed'], + 'weight_max': value['weight_max'], + 'weight_min': value['weight_min'], + 'has_imei': value['has_imei'], + }; +} diff --git a/dist/models/V3ServiceType.d.ts b/dist/models/V3ServiceType.d.ts new file mode 100644 index 0000000..174a7b1 --- /dev/null +++ b/dist/models/V3ServiceType.d.ts @@ -0,0 +1,24 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const V3ServiceType: { + readonly CODE_SERVICE: "IS_CODE_SERVICE"; + readonly NO_CODE_SERVICE: "IS_NO_CODE_SERVICE"; +}; +export type V3ServiceType = typeof V3ServiceType[keyof typeof V3ServiceType]; +export declare function instanceOfV3ServiceType(value: any): boolean; +export declare function V3ServiceTypeFromJSON(json: any): V3ServiceType; +export declare function V3ServiceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3ServiceType; +export declare function V3ServiceTypeToJSON(value?: V3ServiceType | null): any; diff --git a/dist/models/V3ServiceType.js b/dist/models/V3ServiceType.js new file mode 100644 index 0000000..de9d37e --- /dev/null +++ b/dist/models/V3ServiceType.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V3ServiceType = void 0; +exports.instanceOfV3ServiceType = instanceOfV3ServiceType; +exports.V3ServiceTypeFromJSON = V3ServiceTypeFromJSON; +exports.V3ServiceTypeFromJSONTyped = V3ServiceTypeFromJSONTyped; +exports.V3ServiceTypeToJSON = V3ServiceTypeToJSON; +/** + * + * @export + */ +exports.V3ServiceType = { + CODE_SERVICE: 'IS_CODE_SERVICE', + NO_CODE_SERVICE: 'IS_NO_CODE_SERVICE' +}; +function instanceOfV3ServiceType(value) { + for (const key in exports.V3ServiceType) { + if (Object.prototype.hasOwnProperty.call(exports.V3ServiceType, key)) { + if (exports.V3ServiceType[key] === value) { + return true; + } + } + } + return false; +} +function V3ServiceTypeFromJSON(json) { + return V3ServiceTypeFromJSONTyped(json, false); +} +function V3ServiceTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V3ServiceTypeToJSON(value) { + return value; +} diff --git a/dist/models/V3SupplyOrderGetRequest.d.ts b/dist/models/V3SupplyOrderGetRequest.d.ts new file mode 100644 index 0000000..0f4d0f5 --- /dev/null +++ b/dist/models/V3SupplyOrderGetRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3SupplyOrderGetRequest + */ +export interface V3SupplyOrderGetRequest { + /** + * Идентификаторы заявок на поставку. + * @type {Array} + * @memberof V3SupplyOrderGetRequest + */ + order_ids: Array; +} +/** + * Check if a given object implements the V3SupplyOrderGetRequest interface. + */ +export declare function instanceOfV3SupplyOrderGetRequest(value: object): value is V3SupplyOrderGetRequest; +export declare function V3SupplyOrderGetRequestFromJSON(json: any): V3SupplyOrderGetRequest; +export declare function V3SupplyOrderGetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3SupplyOrderGetRequest; +export declare function V3SupplyOrderGetRequestToJSON(value?: V3SupplyOrderGetRequest | null): any; diff --git a/dist/models/V3SupplyOrderGetRequest.js b/dist/models/V3SupplyOrderGetRequest.js new file mode 100644 index 0000000..c9f36f0 --- /dev/null +++ b/dist/models/V3SupplyOrderGetRequest.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3SupplyOrderGetRequest = instanceOfV3SupplyOrderGetRequest; +exports.V3SupplyOrderGetRequestFromJSON = V3SupplyOrderGetRequestFromJSON; +exports.V3SupplyOrderGetRequestFromJSONTyped = V3SupplyOrderGetRequestFromJSONTyped; +exports.V3SupplyOrderGetRequestToJSON = V3SupplyOrderGetRequestToJSON; +/** + * Check if a given object implements the V3SupplyOrderGetRequest interface. + */ +function instanceOfV3SupplyOrderGetRequest(value) { + if (!('order_ids' in value) || value['order_ids'] === undefined) + return false; + return true; +} +function V3SupplyOrderGetRequestFromJSON(json) { + return V3SupplyOrderGetRequestFromJSONTyped(json, false); +} +function V3SupplyOrderGetRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'order_ids': json['order_ids'], + }; +} +function V3SupplyOrderGetRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'order_ids': value['order_ids'], + }; +} diff --git a/dist/models/V3SupplyOrderGetResponse.d.ts b/dist/models/V3SupplyOrderGetResponse.d.ts new file mode 100644 index 0000000..0a32843 --- /dev/null +++ b/dist/models/V3SupplyOrderGetResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderGetResponseOrder } from './SupplyOrderGetResponseOrder'; +/** + * + * @export + * @interface V3SupplyOrderGetResponse + */ +export interface V3SupplyOrderGetResponse { + /** + * Список заявок на поставку. + * @type {Array} + * @memberof V3SupplyOrderGetResponse + */ + orders?: Array; +} +/** + * Check if a given object implements the V3SupplyOrderGetResponse interface. + */ +export declare function instanceOfV3SupplyOrderGetResponse(value: object): value is V3SupplyOrderGetResponse; +export declare function V3SupplyOrderGetResponseFromJSON(json: any): V3SupplyOrderGetResponse; +export declare function V3SupplyOrderGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3SupplyOrderGetResponse; +export declare function V3SupplyOrderGetResponseToJSON(value?: V3SupplyOrderGetResponse | null): any; diff --git a/dist/models/V3SupplyOrderGetResponse.js b/dist/models/V3SupplyOrderGetResponse.js new file mode 100644 index 0000000..8639b4b --- /dev/null +++ b/dist/models/V3SupplyOrderGetResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3SupplyOrderGetResponse = instanceOfV3SupplyOrderGetResponse; +exports.V3SupplyOrderGetResponseFromJSON = V3SupplyOrderGetResponseFromJSON; +exports.V3SupplyOrderGetResponseFromJSONTyped = V3SupplyOrderGetResponseFromJSONTyped; +exports.V3SupplyOrderGetResponseToJSON = V3SupplyOrderGetResponseToJSON; +const SupplyOrderGetResponseOrder_1 = require("./SupplyOrderGetResponseOrder"); +/** + * Check if a given object implements the V3SupplyOrderGetResponse interface. + */ +function instanceOfV3SupplyOrderGetResponse(value) { + return true; +} +function V3SupplyOrderGetResponseFromJSON(json) { + return V3SupplyOrderGetResponseFromJSONTyped(json, false); +} +function V3SupplyOrderGetResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'orders': json['orders'] == null ? undefined : (json['orders'].map(SupplyOrderGetResponseOrder_1.SupplyOrderGetResponseOrderFromJSON)), + }; +} +function V3SupplyOrderGetResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'orders': value['orders'] == null ? undefined : (value['orders'].map(SupplyOrderGetResponseOrder_1.SupplyOrderGetResponseOrderToJSON)), + }; +} diff --git a/dist/models/V3SupplyOrderListRequest.d.ts b/dist/models/V3SupplyOrderListRequest.d.ts new file mode 100644 index 0000000..a57ef4a --- /dev/null +++ b/dist/models/V3SupplyOrderListRequest.d.ts @@ -0,0 +1,61 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SupplyOrderListRequestSortByEnum } from './SupplyOrderListRequestSortByEnum'; +import type { SupplyOrderListRequestSortDirEnum } from './SupplyOrderListRequestSortDirEnum'; +import type { SupplyOrderListRequestFilter } from './SupplyOrderListRequestFilter'; +/** + * + * @export + * @interface V3SupplyOrderListRequest + */ +export interface V3SupplyOrderListRequest { + /** + * + * @type {SupplyOrderListRequestFilter} + * @memberof V3SupplyOrderListRequest + */ + filter: SupplyOrderListRequestFilter; + /** + * Идентификатор последнего значения на странице. При первом запросе оставьте это поле пустым. + * + * Чтобы получить следующие значения, укажите `last_id` из ответа предыдущего запроса. + * + * @type {string} + * @memberof V3SupplyOrderListRequest + */ + last_id?: string; + /** + * Количество значений на странице. + * @type {number} + * @memberof V3SupplyOrderListRequest + */ + limit: number; + /** + * + * @type {SupplyOrderListRequestSortByEnum} + * @memberof V3SupplyOrderListRequest + */ + sort_by: SupplyOrderListRequestSortByEnum; + /** + * + * @type {SupplyOrderListRequestSortDirEnum} + * @memberof V3SupplyOrderListRequest + */ + sort_dir?: SupplyOrderListRequestSortDirEnum; +} +/** + * Check if a given object implements the V3SupplyOrderListRequest interface. + */ +export declare function instanceOfV3SupplyOrderListRequest(value: object): value is V3SupplyOrderListRequest; +export declare function V3SupplyOrderListRequestFromJSON(json: any): V3SupplyOrderListRequest; +export declare function V3SupplyOrderListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3SupplyOrderListRequest; +export declare function V3SupplyOrderListRequestToJSON(value?: V3SupplyOrderListRequest | null): any; diff --git a/dist/models/V3SupplyOrderListRequest.js b/dist/models/V3SupplyOrderListRequest.js new file mode 100644 index 0000000..6a6b738 --- /dev/null +++ b/dist/models/V3SupplyOrderListRequest.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3SupplyOrderListRequest = instanceOfV3SupplyOrderListRequest; +exports.V3SupplyOrderListRequestFromJSON = V3SupplyOrderListRequestFromJSON; +exports.V3SupplyOrderListRequestFromJSONTyped = V3SupplyOrderListRequestFromJSONTyped; +exports.V3SupplyOrderListRequestToJSON = V3SupplyOrderListRequestToJSON; +const SupplyOrderListRequestSortByEnum_1 = require("./SupplyOrderListRequestSortByEnum"); +const SupplyOrderListRequestSortDirEnum_1 = require("./SupplyOrderListRequestSortDirEnum"); +const SupplyOrderListRequestFilter_1 = require("./SupplyOrderListRequestFilter"); +/** + * Check if a given object implements the V3SupplyOrderListRequest interface. + */ +function instanceOfV3SupplyOrderListRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + if (!('sort_by' in value) || value['sort_by'] === undefined) + return false; + return true; +} +function V3SupplyOrderListRequestFromJSON(json) { + return V3SupplyOrderListRequestFromJSONTyped(json, false); +} +function V3SupplyOrderListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': (0, SupplyOrderListRequestFilter_1.SupplyOrderListRequestFilterFromJSON)(json['filter']), + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'limit': json['limit'], + 'sort_by': (0, SupplyOrderListRequestSortByEnum_1.SupplyOrderListRequestSortByEnumFromJSON)(json['sort_by']), + 'sort_dir': json['sort_dir'] == null ? undefined : (0, SupplyOrderListRequestSortDirEnum_1.SupplyOrderListRequestSortDirEnumFromJSON)(json['sort_dir']), + }; +} +function V3SupplyOrderListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, SupplyOrderListRequestFilter_1.SupplyOrderListRequestFilterToJSON)(value['filter']), + 'last_id': value['last_id'], + 'limit': value['limit'], + 'sort_by': (0, SupplyOrderListRequestSortByEnum_1.SupplyOrderListRequestSortByEnumToJSON)(value['sort_by']), + 'sort_dir': (0, SupplyOrderListRequestSortDirEnum_1.SupplyOrderListRequestSortDirEnumToJSON)(value['sort_dir']), + }; +} diff --git a/dist/models/V3SupplyOrderListResponse.d.ts b/dist/models/V3SupplyOrderListResponse.d.ts new file mode 100644 index 0000000..4f3c2cf --- /dev/null +++ b/dist/models/V3SupplyOrderListResponse.d.ts @@ -0,0 +1,40 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V3SupplyOrderListResponse + */ +export interface V3SupplyOrderListResponse { + /** + * Идентификатор последнего значения на странице. + * + * Чтобы получить следующие значения, укажите полученное значение в следующем запросе в параметре `last_id`. + * + * @type {string} + * @memberof V3SupplyOrderListResponse + */ + last_id?: string; + /** + * Идентификаторы заявок на поставку. + * @type {Array} + * @memberof V3SupplyOrderListResponse + */ + order_ids?: Array; +} +/** + * Check if a given object implements the V3SupplyOrderListResponse interface. + */ +export declare function instanceOfV3SupplyOrderListResponse(value: object): value is V3SupplyOrderListResponse; +export declare function V3SupplyOrderListResponseFromJSON(json: any): V3SupplyOrderListResponse; +export declare function V3SupplyOrderListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3SupplyOrderListResponse; +export declare function V3SupplyOrderListResponseToJSON(value?: V3SupplyOrderListResponse | null): any; diff --git a/dist/models/V3SupplyOrderListResponse.js b/dist/models/V3SupplyOrderListResponse.js new file mode 100644 index 0000000..9e695b6 --- /dev/null +++ b/dist/models/V3SupplyOrderListResponse.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3SupplyOrderListResponse = instanceOfV3SupplyOrderListResponse; +exports.V3SupplyOrderListResponseFromJSON = V3SupplyOrderListResponseFromJSON; +exports.V3SupplyOrderListResponseFromJSONTyped = V3SupplyOrderListResponseFromJSONTyped; +exports.V3SupplyOrderListResponseToJSON = V3SupplyOrderListResponseToJSON; +/** + * Check if a given object implements the V3SupplyOrderListResponse interface. + */ +function instanceOfV3SupplyOrderListResponse(value) { + return true; +} +function V3SupplyOrderListResponseFromJSON(json) { + return V3SupplyOrderListResponseFromJSONTyped(json, false); +} +function V3SupplyOrderListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'last_id': json['last_id'] == null ? undefined : json['last_id'], + 'order_ids': json['order_ids'] == null ? undefined : json['order_ids'], + }; +} +function V3SupplyOrderListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'last_id': value['last_id'], + 'order_ids': value['order_ids'], + }; +} diff --git a/dist/models/V3TimeRange.d.ts b/dist/models/V3TimeRange.d.ts new file mode 100644 index 0000000..1fd2dd8 --- /dev/null +++ b/dist/models/V3TimeRange.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Период, в который последний раз изменялся статус у отправлений. + * @export + * @interface V3TimeRange + */ +export interface V3TimeRange { + /** + * Дата начала периода. + * @type {string} + * @memberof V3TimeRange + */ + from?: string; + /** + * Дата окончания периода. + * @type {string} + * @memberof V3TimeRange + */ + to?: string; +} +/** + * Check if a given object implements the V3TimeRange interface. + */ +export declare function instanceOfV3TimeRange(value: object): value is V3TimeRange; +export declare function V3TimeRangeFromJSON(json: any): V3TimeRange; +export declare function V3TimeRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3TimeRange; +export declare function V3TimeRangeToJSON(value?: V3TimeRange | null): any; diff --git a/dist/models/V3TimeRange.js b/dist/models/V3TimeRange.js new file mode 100644 index 0000000..681b515 --- /dev/null +++ b/dist/models/V3TimeRange.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3TimeRange = instanceOfV3TimeRange; +exports.V3TimeRangeFromJSON = V3TimeRangeFromJSON; +exports.V3TimeRangeFromJSONTyped = V3TimeRangeFromJSONTyped; +exports.V3TimeRangeToJSON = V3TimeRangeToJSON; +/** + * Check if a given object implements the V3TimeRange interface. + */ +function instanceOfV3TimeRange(value) { + return true; +} +function V3TimeRangeFromJSON(json) { + return V3TimeRangeFromJSONTyped(json, false); +} +function V3TimeRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + }; +} +function V3TimeRangeToJSON(value) { + if (value == null) { + return value; + } + return { + 'from': value['from'], + 'to': value['to'], + }; +} diff --git a/dist/models/V3User.d.ts b/dist/models/V3User.d.ts new file mode 100644 index 0000000..4344970 --- /dev/null +++ b/dist/models/V3User.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация об участнике чата. + * @export + * @interface V3User + */ +export interface V3User { + /** + * Идентификатор участника чата. + * @type {string} + * @memberof V3User + */ + id?: string; + /** + * Тип участника чата: + * - `Customer` — покупатель, + * - `Seller` — продавец, + * - `Crm` — системные сообщения, + * - `Courier` — курьер, + * - `Support` — поддержка, + * - `NotificationUser` — уведомления. + * + * @type {string} + * @memberof V3User + */ + type?: string; +} +/** + * Check if a given object implements the V3User interface. + */ +export declare function instanceOfV3User(value: object): value is V3User; +export declare function V3UserFromJSON(json: any): V3User; +export declare function V3UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3User; +export declare function V3UserToJSON(value?: V3User | null): any; diff --git a/dist/models/V3User.js b/dist/models/V3User.js new file mode 100644 index 0000000..3f16f03 --- /dev/null +++ b/dist/models/V3User.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3User = instanceOfV3User; +exports.V3UserFromJSON = V3UserFromJSON; +exports.V3UserFromJSONTyped = V3UserFromJSONTyped; +exports.V3UserToJSON = V3UserToJSON; +/** + * Check if a given object implements the V3User interface. + */ +function instanceOfV3User(value) { + return true; +} +function V3UserFromJSON(json) { + return V3UserFromJSONTyped(json, false); +} +function V3UserFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} +function V3UserToJSON(value) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'type': value['type'], + }; +} diff --git a/dist/models/V4FbsPostingShipPackageV4Request.d.ts b/dist/models/V4FbsPostingShipPackageV4Request.d.ts new file mode 100644 index 0000000..00c8865 --- /dev/null +++ b/dist/models/V4FbsPostingShipPackageV4Request.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V4FbsPostingShipPackageV4RequestProduct } from './V4FbsPostingShipPackageV4RequestProduct'; +/** + * + * @export + * @interface V4FbsPostingShipPackageV4Request + */ +export interface V4FbsPostingShipPackageV4Request { + /** + * Номер отправления. + * @type {string} + * @memberof V4FbsPostingShipPackageV4Request + */ + posting_number: string; + /** + * Список товаров в отправлении. + * @type {Array} + * @memberof V4FbsPostingShipPackageV4Request + */ + products?: Array; +} +/** + * Check if a given object implements the V4FbsPostingShipPackageV4Request interface. + */ +export declare function instanceOfV4FbsPostingShipPackageV4Request(value: object): value is V4FbsPostingShipPackageV4Request; +export declare function V4FbsPostingShipPackageV4RequestFromJSON(json: any): V4FbsPostingShipPackageV4Request; +export declare function V4FbsPostingShipPackageV4RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4FbsPostingShipPackageV4Request; +export declare function V4FbsPostingShipPackageV4RequestToJSON(value?: V4FbsPostingShipPackageV4Request | null): any; diff --git a/dist/models/V4FbsPostingShipPackageV4Request.js b/dist/models/V4FbsPostingShipPackageV4Request.js new file mode 100644 index 0000000..eac2ef6 --- /dev/null +++ b/dist/models/V4FbsPostingShipPackageV4Request.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4FbsPostingShipPackageV4Request = instanceOfV4FbsPostingShipPackageV4Request; +exports.V4FbsPostingShipPackageV4RequestFromJSON = V4FbsPostingShipPackageV4RequestFromJSON; +exports.V4FbsPostingShipPackageV4RequestFromJSONTyped = V4FbsPostingShipPackageV4RequestFromJSONTyped; +exports.V4FbsPostingShipPackageV4RequestToJSON = V4FbsPostingShipPackageV4RequestToJSON; +const V4FbsPostingShipPackageV4RequestProduct_1 = require("./V4FbsPostingShipPackageV4RequestProduct"); +/** + * Check if a given object implements the V4FbsPostingShipPackageV4Request interface. + */ +function instanceOfV4FbsPostingShipPackageV4Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V4FbsPostingShipPackageV4RequestFromJSON(json) { + return V4FbsPostingShipPackageV4RequestFromJSONTyped(json, false); +} +function V4FbsPostingShipPackageV4RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V4FbsPostingShipPackageV4RequestProduct_1.V4FbsPostingShipPackageV4RequestProductFromJSON)), + }; +} +function V4FbsPostingShipPackageV4RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V4FbsPostingShipPackageV4RequestProduct_1.V4FbsPostingShipPackageV4RequestProductToJSON)), + }; +} diff --git a/dist/models/V4FbsPostingShipPackageV4RequestProduct.d.ts b/dist/models/V4FbsPostingShipPackageV4RequestProduct.d.ts new file mode 100644 index 0000000..8016d16 --- /dev/null +++ b/dist/models/V4FbsPostingShipPackageV4RequestProduct.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V4FbsPostingShipPackageV4RequestProduct + */ +export interface V4FbsPostingShipPackageV4RequestProduct { + /** + * Идентификаторы экземпляров товара. + * @type {Array} + * @memberof V4FbsPostingShipPackageV4RequestProduct + */ + exemplarsIds?: Array; + /** + * Идентификатор товара в системе продавца — SKU. + * @type {number} + * @memberof V4FbsPostingShipPackageV4RequestProduct + */ + product_id: number; + /** + * Количество экземпляров. + * @type {number} + * @memberof V4FbsPostingShipPackageV4RequestProduct + */ + quantity: number; +} +/** + * Check if a given object implements the V4FbsPostingShipPackageV4RequestProduct interface. + */ +export declare function instanceOfV4FbsPostingShipPackageV4RequestProduct(value: object): value is V4FbsPostingShipPackageV4RequestProduct; +export declare function V4FbsPostingShipPackageV4RequestProductFromJSON(json: any): V4FbsPostingShipPackageV4RequestProduct; +export declare function V4FbsPostingShipPackageV4RequestProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4FbsPostingShipPackageV4RequestProduct; +export declare function V4FbsPostingShipPackageV4RequestProductToJSON(value?: V4FbsPostingShipPackageV4RequestProduct | null): any; diff --git a/dist/models/V4FbsPostingShipPackageV4RequestProduct.js b/dist/models/V4FbsPostingShipPackageV4RequestProduct.js new file mode 100644 index 0000000..b50cd03 --- /dev/null +++ b/dist/models/V4FbsPostingShipPackageV4RequestProduct.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4FbsPostingShipPackageV4RequestProduct = instanceOfV4FbsPostingShipPackageV4RequestProduct; +exports.V4FbsPostingShipPackageV4RequestProductFromJSON = V4FbsPostingShipPackageV4RequestProductFromJSON; +exports.V4FbsPostingShipPackageV4RequestProductFromJSONTyped = V4FbsPostingShipPackageV4RequestProductFromJSONTyped; +exports.V4FbsPostingShipPackageV4RequestProductToJSON = V4FbsPostingShipPackageV4RequestProductToJSON; +/** + * Check if a given object implements the V4FbsPostingShipPackageV4RequestProduct interface. + */ +function instanceOfV4FbsPostingShipPackageV4RequestProduct(value) { + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + if (!('quantity' in value) || value['quantity'] === undefined) + return false; + return true; +} +function V4FbsPostingShipPackageV4RequestProductFromJSON(json) { + return V4FbsPostingShipPackageV4RequestProductFromJSONTyped(json, false); +} +function V4FbsPostingShipPackageV4RequestProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplarsIds': json['exemplarsIds'] == null ? undefined : json['exemplarsIds'], + 'product_id': json['product_id'], + 'quantity': json['quantity'], + }; +} +function V4FbsPostingShipPackageV4RequestProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplarsIds': value['exemplarsIds'], + 'product_id': value['product_id'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/models/V4FbsPostingShipPackageV4Response.d.ts b/dist/models/V4FbsPostingShipPackageV4Response.d.ts new file mode 100644 index 0000000..da17a0e --- /dev/null +++ b/dist/models/V4FbsPostingShipPackageV4Response.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V4FbsPostingShipPackageV4Response + */ +export interface V4FbsPostingShipPackageV4Response { + /** + * Номера отправлений, сформированные после сборки. + * @type {string} + * @memberof V4FbsPostingShipPackageV4Response + */ + result?: string; +} +/** + * Check if a given object implements the V4FbsPostingShipPackageV4Response interface. + */ +export declare function instanceOfV4FbsPostingShipPackageV4Response(value: object): value is V4FbsPostingShipPackageV4Response; +export declare function V4FbsPostingShipPackageV4ResponseFromJSON(json: any): V4FbsPostingShipPackageV4Response; +export declare function V4FbsPostingShipPackageV4ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4FbsPostingShipPackageV4Response; +export declare function V4FbsPostingShipPackageV4ResponseToJSON(value?: V4FbsPostingShipPackageV4Response | null): any; diff --git a/dist/models/V4FbsPostingShipPackageV4Response.js b/dist/models/V4FbsPostingShipPackageV4Response.js new file mode 100644 index 0000000..dc56888 --- /dev/null +++ b/dist/models/V4FbsPostingShipPackageV4Response.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4FbsPostingShipPackageV4Response = instanceOfV4FbsPostingShipPackageV4Response; +exports.V4FbsPostingShipPackageV4ResponseFromJSON = V4FbsPostingShipPackageV4ResponseFromJSON; +exports.V4FbsPostingShipPackageV4ResponseFromJSONTyped = V4FbsPostingShipPackageV4ResponseFromJSONTyped; +exports.V4FbsPostingShipPackageV4ResponseToJSON = V4FbsPostingShipPackageV4ResponseToJSON; +/** + * Check if a given object implements the V4FbsPostingShipPackageV4Response interface. + */ +function instanceOfV4FbsPostingShipPackageV4Response(value) { + return true; +} +function V4FbsPostingShipPackageV4ResponseFromJSON(json) { + return V4FbsPostingShipPackageV4ResponseFromJSONTyped(json, false); +} +function V4FbsPostingShipPackageV4ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : json['result'], + }; +} +function V4FbsPostingShipPackageV4ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'], + }; +} diff --git a/dist/models/V4GetProductAttributesResponseModelInfo.d.ts b/dist/models/V4GetProductAttributesResponseModelInfo.d.ts new file mode 100644 index 0000000..bac15d6 --- /dev/null +++ b/dist/models/V4GetProductAttributesResponseModelInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о модели. + * @export + * @interface V4GetProductAttributesResponseModelInfo + */ +export interface V4GetProductAttributesResponseModelInfo { + /** + * Идентификатор модели. + * @type {number} + * @memberof V4GetProductAttributesResponseModelInfo + */ + model_id?: number; + /** + * Количество объединённых товаров модели. + * @type {number} + * @memberof V4GetProductAttributesResponseModelInfo + */ + count?: number; +} +/** + * Check if a given object implements the V4GetProductAttributesResponseModelInfo interface. + */ +export declare function instanceOfV4GetProductAttributesResponseModelInfo(value: object): value is V4GetProductAttributesResponseModelInfo; +export declare function V4GetProductAttributesResponseModelInfoFromJSON(json: any): V4GetProductAttributesResponseModelInfo; +export declare function V4GetProductAttributesResponseModelInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductAttributesResponseModelInfo; +export declare function V4GetProductAttributesResponseModelInfoToJSON(value?: V4GetProductAttributesResponseModelInfo | null): any; diff --git a/dist/models/V4GetProductAttributesResponseModelInfo.js b/dist/models/V4GetProductAttributesResponseModelInfo.js new file mode 100644 index 0000000..dbc9f8d --- /dev/null +++ b/dist/models/V4GetProductAttributesResponseModelInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4GetProductAttributesResponseModelInfo = instanceOfV4GetProductAttributesResponseModelInfo; +exports.V4GetProductAttributesResponseModelInfoFromJSON = V4GetProductAttributesResponseModelInfoFromJSON; +exports.V4GetProductAttributesResponseModelInfoFromJSONTyped = V4GetProductAttributesResponseModelInfoFromJSONTyped; +exports.V4GetProductAttributesResponseModelInfoToJSON = V4GetProductAttributesResponseModelInfoToJSON; +/** + * Check if a given object implements the V4GetProductAttributesResponseModelInfo interface. + */ +function instanceOfV4GetProductAttributesResponseModelInfo(value) { + return true; +} +function V4GetProductAttributesResponseModelInfoFromJSON(json) { + return V4GetProductAttributesResponseModelInfoFromJSONTyped(json, false); +} +function V4GetProductAttributesResponseModelInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'model_id': json['model_id'] == null ? undefined : json['model_id'], + 'count': json['count'] == null ? undefined : json['count'], + }; +} +function V4GetProductAttributesResponseModelInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'model_id': value['model_id'], + 'count': value['count'], + }; +} diff --git a/dist/models/V4GetProductAttributesResponsePdf.d.ts b/dist/models/V4GetProductAttributesResponsePdf.d.ts new file mode 100644 index 0000000..695e896 --- /dev/null +++ b/dist/models/V4GetProductAttributesResponsePdf.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V4GetProductAttributesResponsePdf + */ +export interface V4GetProductAttributesResponsePdf { + /** + * Путь к PDF-файлу. + * @type {string} + * @memberof V4GetProductAttributesResponsePdf + */ + file_name?: string; + /** + * Название файла. + * @type {string} + * @memberof V4GetProductAttributesResponsePdf + */ + name?: string; +} +/** + * Check if a given object implements the V4GetProductAttributesResponsePdf interface. + */ +export declare function instanceOfV4GetProductAttributesResponsePdf(value: object): value is V4GetProductAttributesResponsePdf; +export declare function V4GetProductAttributesResponsePdfFromJSON(json: any): V4GetProductAttributesResponsePdf; +export declare function V4GetProductAttributesResponsePdfFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductAttributesResponsePdf; +export declare function V4GetProductAttributesResponsePdfToJSON(value?: V4GetProductAttributesResponsePdf | null): any; diff --git a/dist/models/V4GetProductAttributesResponsePdf.js b/dist/models/V4GetProductAttributesResponsePdf.js new file mode 100644 index 0000000..30925df --- /dev/null +++ b/dist/models/V4GetProductAttributesResponsePdf.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4GetProductAttributesResponsePdf = instanceOfV4GetProductAttributesResponsePdf; +exports.V4GetProductAttributesResponsePdfFromJSON = V4GetProductAttributesResponsePdfFromJSON; +exports.V4GetProductAttributesResponsePdfFromJSONTyped = V4GetProductAttributesResponsePdfFromJSONTyped; +exports.V4GetProductAttributesResponsePdfToJSON = V4GetProductAttributesResponsePdfToJSON; +/** + * Check if a given object implements the V4GetProductAttributesResponsePdf interface. + */ +function instanceOfV4GetProductAttributesResponsePdf(value) { + return true; +} +function V4GetProductAttributesResponsePdfFromJSON(json) { + return V4GetProductAttributesResponsePdfFromJSONTyped(json, false); +} +function V4GetProductAttributesResponsePdfFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'file_name': json['file_name'] == null ? undefined : json['file_name'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function V4GetProductAttributesResponsePdfToJSON(value) { + if (value == null) { + return value; + } + return { + 'file_name': value['file_name'], + 'name': value['name'], + }; +} diff --git a/dist/models/V4GetProductInfoStocksRequest.d.ts b/dist/models/V4GetProductInfoStocksRequest.d.ts new file mode 100644 index 0000000..a7a8a46 --- /dev/null +++ b/dist/models/V4GetProductInfoStocksRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V4GetProductInfoStocksRequestFilter } from './V4GetProductInfoStocksRequestFilter'; +/** + * + * @export + * @interface V4GetProductInfoStocksRequest + */ +export interface V4GetProductInfoStocksRequest { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V4GetProductInfoStocksRequest + */ + cursor?: string; + /** + * + * @type {V4GetProductInfoStocksRequestFilter} + * @memberof V4GetProductInfoStocksRequest + */ + filter: V4GetProductInfoStocksRequestFilter; + /** + * Количество значений на странице. Минимум — 1, максимум — 1000. + * @type {number} + * @memberof V4GetProductInfoStocksRequest + */ + limit: number; +} +/** + * Check if a given object implements the V4GetProductInfoStocksRequest interface. + */ +export declare function instanceOfV4GetProductInfoStocksRequest(value: object): value is V4GetProductInfoStocksRequest; +export declare function V4GetProductInfoStocksRequestFromJSON(json: any): V4GetProductInfoStocksRequest; +export declare function V4GetProductInfoStocksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductInfoStocksRequest; +export declare function V4GetProductInfoStocksRequestToJSON(value?: V4GetProductInfoStocksRequest | null): any; diff --git a/dist/models/V4GetProductInfoStocksRequest.js b/dist/models/V4GetProductInfoStocksRequest.js new file mode 100644 index 0000000..796aa8f --- /dev/null +++ b/dist/models/V4GetProductInfoStocksRequest.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4GetProductInfoStocksRequest = instanceOfV4GetProductInfoStocksRequest; +exports.V4GetProductInfoStocksRequestFromJSON = V4GetProductInfoStocksRequestFromJSON; +exports.V4GetProductInfoStocksRequestFromJSONTyped = V4GetProductInfoStocksRequestFromJSONTyped; +exports.V4GetProductInfoStocksRequestToJSON = V4GetProductInfoStocksRequestToJSON; +const V4GetProductInfoStocksRequestFilter_1 = require("./V4GetProductInfoStocksRequestFilter"); +/** + * Check if a given object implements the V4GetProductInfoStocksRequest interface. + */ +function instanceOfV4GetProductInfoStocksRequest(value) { + if (!('filter' in value) || value['filter'] === undefined) + return false; + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function V4GetProductInfoStocksRequestFromJSON(json) { + return V4GetProductInfoStocksRequestFromJSONTyped(json, false); +} +function V4GetProductInfoStocksRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'filter': (0, V4GetProductInfoStocksRequestFilter_1.V4GetProductInfoStocksRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + }; +} +function V4GetProductInfoStocksRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'filter': (0, V4GetProductInfoStocksRequestFilter_1.V4GetProductInfoStocksRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + }; +} diff --git a/dist/models/V4GetProductInfoStocksRequestFilter.d.ts b/dist/models/V4GetProductInfoStocksRequestFilter.d.ts new file mode 100644 index 0000000..7735243 --- /dev/null +++ b/dist/models/V4GetProductInfoStocksRequestFilter.d.ts @@ -0,0 +1,51 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FilterWithQuant } from './FilterWithQuant'; +import type { V4Visibility } from './V4Visibility'; +/** + * Фильтр по товарам. + * @export + * @interface V4GetProductInfoStocksRequestFilter + */ +export interface V4GetProductInfoStocksRequestFilter { + /** + * Фильтр по параметру `offer_id`. Можно передавать список значений. + * @type {Array} + * @memberof V4GetProductInfoStocksRequestFilter + */ + offer_id?: Array; + /** + * Фильтр по параметру `product_id`. Можно передавать список значений. + * @type {Array} + * @memberof V4GetProductInfoStocksRequestFilter + */ + product_id?: Array; + /** + * + * @type {V4Visibility} + * @memberof V4GetProductInfoStocksRequestFilter + */ + visibility?: V4Visibility; + /** + * + * @type {FilterWithQuant} + * @memberof V4GetProductInfoStocksRequestFilter + */ + with_quant?: FilterWithQuant; +} +/** + * Check if a given object implements the V4GetProductInfoStocksRequestFilter interface. + */ +export declare function instanceOfV4GetProductInfoStocksRequestFilter(value: object): value is V4GetProductInfoStocksRequestFilter; +export declare function V4GetProductInfoStocksRequestFilterFromJSON(json: any): V4GetProductInfoStocksRequestFilter; +export declare function V4GetProductInfoStocksRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductInfoStocksRequestFilter; +export declare function V4GetProductInfoStocksRequestFilterToJSON(value?: V4GetProductInfoStocksRequestFilter | null): any; diff --git a/dist/models/V4GetProductInfoStocksRequestFilter.js b/dist/models/V4GetProductInfoStocksRequestFilter.js new file mode 100644 index 0000000..0a3c77f --- /dev/null +++ b/dist/models/V4GetProductInfoStocksRequestFilter.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4GetProductInfoStocksRequestFilter = instanceOfV4GetProductInfoStocksRequestFilter; +exports.V4GetProductInfoStocksRequestFilterFromJSON = V4GetProductInfoStocksRequestFilterFromJSON; +exports.V4GetProductInfoStocksRequestFilterFromJSONTyped = V4GetProductInfoStocksRequestFilterFromJSONTyped; +exports.V4GetProductInfoStocksRequestFilterToJSON = V4GetProductInfoStocksRequestFilterToJSON; +const FilterWithQuant_1 = require("./FilterWithQuant"); +const V4Visibility_1 = require("./V4Visibility"); +/** + * Check if a given object implements the V4GetProductInfoStocksRequestFilter interface. + */ +function instanceOfV4GetProductInfoStocksRequestFilter(value) { + return true; +} +function V4GetProductInfoStocksRequestFilterFromJSON(json) { + return V4GetProductInfoStocksRequestFilterFromJSONTyped(json, false); +} +function V4GetProductInfoStocksRequestFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'visibility': json['visibility'] == null ? undefined : (0, V4Visibility_1.V4VisibilityFromJSON)(json['visibility']), + 'with_quant': json['with_quant'] == null ? undefined : (0, FilterWithQuant_1.FilterWithQuantFromJSON)(json['with_quant']), + }; +} +function V4GetProductInfoStocksRequestFilterToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'visibility': (0, V4Visibility_1.V4VisibilityToJSON)(value['visibility']), + 'with_quant': (0, FilterWithQuant_1.FilterWithQuantToJSON)(value['with_quant']), + }; +} diff --git a/dist/models/V4GetProductInfoStocksResponse.d.ts b/dist/models/V4GetProductInfoStocksResponse.d.ts new file mode 100644 index 0000000..73febcb --- /dev/null +++ b/dist/models/V4GetProductInfoStocksResponse.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V4GetProductInfoStocksResponseItem } from './V4GetProductInfoStocksResponseItem'; +/** + * + * @export + * @interface V4GetProductInfoStocksResponse + */ +export interface V4GetProductInfoStocksResponse { + /** + * Указатель для выборки следующих данных. + * @type {string} + * @memberof V4GetProductInfoStocksResponse + */ + cursor?: string; + /** + * Информация о товарах. + * @type {Array} + * @memberof V4GetProductInfoStocksResponse + */ + items?: Array; + /** + * Количество уникальных товаров, для которых выводится информация об остатках. + * @type {number} + * @memberof V4GetProductInfoStocksResponse + */ + total?: number; +} +/** + * Check if a given object implements the V4GetProductInfoStocksResponse interface. + */ +export declare function instanceOfV4GetProductInfoStocksResponse(value: object): value is V4GetProductInfoStocksResponse; +export declare function V4GetProductInfoStocksResponseFromJSON(json: any): V4GetProductInfoStocksResponse; +export declare function V4GetProductInfoStocksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductInfoStocksResponse; +export declare function V4GetProductInfoStocksResponseToJSON(value?: V4GetProductInfoStocksResponse | null): any; diff --git a/dist/models/V4GetProductInfoStocksResponse.js b/dist/models/V4GetProductInfoStocksResponse.js new file mode 100644 index 0000000..a51a9bf --- /dev/null +++ b/dist/models/V4GetProductInfoStocksResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4GetProductInfoStocksResponse = instanceOfV4GetProductInfoStocksResponse; +exports.V4GetProductInfoStocksResponseFromJSON = V4GetProductInfoStocksResponseFromJSON; +exports.V4GetProductInfoStocksResponseFromJSONTyped = V4GetProductInfoStocksResponseFromJSONTyped; +exports.V4GetProductInfoStocksResponseToJSON = V4GetProductInfoStocksResponseToJSON; +const V4GetProductInfoStocksResponseItem_1 = require("./V4GetProductInfoStocksResponseItem"); +/** + * Check if a given object implements the V4GetProductInfoStocksResponse interface. + */ +function instanceOfV4GetProductInfoStocksResponse(value) { + return true; +} +function V4GetProductInfoStocksResponseFromJSON(json) { + return V4GetProductInfoStocksResponseFromJSONTyped(json, false); +} +function V4GetProductInfoStocksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'cursor': json['cursor'] == null ? undefined : json['cursor'], + 'items': json['items'] == null ? undefined : (json['items'].map(V4GetProductInfoStocksResponseItem_1.V4GetProductInfoStocksResponseItemFromJSON)), + 'total': json['total'] == null ? undefined : json['total'], + }; +} +function V4GetProductInfoStocksResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'cursor': value['cursor'], + 'items': value['items'] == null ? undefined : (value['items'].map(V4GetProductInfoStocksResponseItem_1.V4GetProductInfoStocksResponseItemToJSON)), + 'total': value['total'], + }; +} diff --git a/dist/models/V4GetProductInfoStocksResponseItem.d.ts b/dist/models/V4GetProductInfoStocksResponseItem.d.ts new file mode 100644 index 0000000..a24d71f --- /dev/null +++ b/dist/models/V4GetProductInfoStocksResponseItem.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GetProductInfoStocksResponseStock } from './GetProductInfoStocksResponseStock'; +/** + * + * @export + * @interface V4GetProductInfoStocksResponseItem + */ +export interface V4GetProductInfoStocksResponseItem { + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof V4GetProductInfoStocksResponseItem + */ + offer_id?: string; + /** + * Идентификатор товара в системе Ozon — `product_id`. + * @type {number} + * @memberof V4GetProductInfoStocksResponseItem + */ + product_id?: number; + /** + * Информация об остатках. + * @type {Array} + * @memberof V4GetProductInfoStocksResponseItem + */ + stocks?: Array; +} +/** + * Check if a given object implements the V4GetProductInfoStocksResponseItem interface. + */ +export declare function instanceOfV4GetProductInfoStocksResponseItem(value: object): value is V4GetProductInfoStocksResponseItem; +export declare function V4GetProductInfoStocksResponseItemFromJSON(json: any): V4GetProductInfoStocksResponseItem; +export declare function V4GetProductInfoStocksResponseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetProductInfoStocksResponseItem; +export declare function V4GetProductInfoStocksResponseItemToJSON(value?: V4GetProductInfoStocksResponseItem | null): any; diff --git a/dist/models/V4GetProductInfoStocksResponseItem.js b/dist/models/V4GetProductInfoStocksResponseItem.js new file mode 100644 index 0000000..46c8c5e --- /dev/null +++ b/dist/models/V4GetProductInfoStocksResponseItem.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4GetProductInfoStocksResponseItem = instanceOfV4GetProductInfoStocksResponseItem; +exports.V4GetProductInfoStocksResponseItemFromJSON = V4GetProductInfoStocksResponseItemFromJSON; +exports.V4GetProductInfoStocksResponseItemFromJSONTyped = V4GetProductInfoStocksResponseItemFromJSONTyped; +exports.V4GetProductInfoStocksResponseItemToJSON = V4GetProductInfoStocksResponseItemToJSON; +const GetProductInfoStocksResponseStock_1 = require("./GetProductInfoStocksResponseStock"); +/** + * Check if a given object implements the V4GetProductInfoStocksResponseItem interface. + */ +function instanceOfV4GetProductInfoStocksResponseItem(value) { + return true; +} +function V4GetProductInfoStocksResponseItemFromJSON(json) { + return V4GetProductInfoStocksResponseItemFromJSONTyped(json, false); +} +function V4GetProductInfoStocksResponseItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'stocks': json['stocks'] == null ? undefined : (json['stocks'].map(GetProductInfoStocksResponseStock_1.GetProductInfoStocksResponseStockFromJSON)), + }; +} +function V4GetProductInfoStocksResponseItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'offer_id': value['offer_id'], + 'product_id': value['product_id'], + 'stocks': value['stocks'] == null ? undefined : (value['stocks'].map(GetProductInfoStocksResponseStock_1.GetProductInfoStocksResponseStockToJSON)), + }; +} diff --git a/dist/models/V4GetUploadQuotaResponse.d.ts b/dist/models/V4GetUploadQuotaResponse.d.ts new file mode 100644 index 0000000..09e4fa4 --- /dev/null +++ b/dist/models/V4GetUploadQuotaResponse.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ProductV4GetUploadQuotaResponseOperationLimits } from './ProductV4GetUploadQuotaResponseOperationLimits'; +import type { GetUploadQuotaResponseDailyUpdate } from './GetUploadQuotaResponseDailyUpdate'; +import type { GetUploadQuotaResponseTotal } from './GetUploadQuotaResponseTotal'; +import type { GetUploadQuotaResponseDailyCreate } from './GetUploadQuotaResponseDailyCreate'; +/** + * + * @export + * @interface V4GetUploadQuotaResponse + */ +export interface V4GetUploadQuotaResponse { + /** + * + * @type {GetUploadQuotaResponseDailyCreate} + * @memberof V4GetUploadQuotaResponse + */ + daily_create?: GetUploadQuotaResponseDailyCreate; + /** + * + * @type {GetUploadQuotaResponseDailyUpdate} + * @memberof V4GetUploadQuotaResponse + */ + daily_update?: GetUploadQuotaResponseDailyUpdate; + /** + * + * @type {ProductV4GetUploadQuotaResponseOperationLimits} + * @memberof V4GetUploadQuotaResponse + */ + operation_limits?: ProductV4GetUploadQuotaResponseOperationLimits; + /** + * + * @type {GetUploadQuotaResponseTotal} + * @memberof V4GetUploadQuotaResponse + */ + total?: GetUploadQuotaResponseTotal; +} +/** + * Check if a given object implements the V4GetUploadQuotaResponse interface. + */ +export declare function instanceOfV4GetUploadQuotaResponse(value: object): value is V4GetUploadQuotaResponse; +export declare function V4GetUploadQuotaResponseFromJSON(json: any): V4GetUploadQuotaResponse; +export declare function V4GetUploadQuotaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4GetUploadQuotaResponse; +export declare function V4GetUploadQuotaResponseToJSON(value?: V4GetUploadQuotaResponse | null): any; diff --git a/dist/models/V4GetUploadQuotaResponse.js b/dist/models/V4GetUploadQuotaResponse.js new file mode 100644 index 0000000..aab658a --- /dev/null +++ b/dist/models/V4GetUploadQuotaResponse.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV4GetUploadQuotaResponse = instanceOfV4GetUploadQuotaResponse; +exports.V4GetUploadQuotaResponseFromJSON = V4GetUploadQuotaResponseFromJSON; +exports.V4GetUploadQuotaResponseFromJSONTyped = V4GetUploadQuotaResponseFromJSONTyped; +exports.V4GetUploadQuotaResponseToJSON = V4GetUploadQuotaResponseToJSON; +const ProductV4GetUploadQuotaResponseOperationLimits_1 = require("./ProductV4GetUploadQuotaResponseOperationLimits"); +const GetUploadQuotaResponseDailyUpdate_1 = require("./GetUploadQuotaResponseDailyUpdate"); +const GetUploadQuotaResponseTotal_1 = require("./GetUploadQuotaResponseTotal"); +const GetUploadQuotaResponseDailyCreate_1 = require("./GetUploadQuotaResponseDailyCreate"); +/** + * Check if a given object implements the V4GetUploadQuotaResponse interface. + */ +function instanceOfV4GetUploadQuotaResponse(value) { + return true; +} +function V4GetUploadQuotaResponseFromJSON(json) { + return V4GetUploadQuotaResponseFromJSONTyped(json, false); +} +function V4GetUploadQuotaResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'daily_create': json['daily_create'] == null ? undefined : (0, GetUploadQuotaResponseDailyCreate_1.GetUploadQuotaResponseDailyCreateFromJSON)(json['daily_create']), + 'daily_update': json['daily_update'] == null ? undefined : (0, GetUploadQuotaResponseDailyUpdate_1.GetUploadQuotaResponseDailyUpdateFromJSON)(json['daily_update']), + 'operation_limits': json['operation_limits'] == null ? undefined : (0, ProductV4GetUploadQuotaResponseOperationLimits_1.ProductV4GetUploadQuotaResponseOperationLimitsFromJSON)(json['operation_limits']), + 'total': json['total'] == null ? undefined : (0, GetUploadQuotaResponseTotal_1.GetUploadQuotaResponseTotalFromJSON)(json['total']), + }; +} +function V4GetUploadQuotaResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'daily_create': (0, GetUploadQuotaResponseDailyCreate_1.GetUploadQuotaResponseDailyCreateToJSON)(value['daily_create']), + 'daily_update': (0, GetUploadQuotaResponseDailyUpdate_1.GetUploadQuotaResponseDailyUpdateToJSON)(value['daily_update']), + 'operation_limits': (0, ProductV4GetUploadQuotaResponseOperationLimits_1.ProductV4GetUploadQuotaResponseOperationLimitsToJSON)(value['operation_limits']), + 'total': (0, GetUploadQuotaResponseTotal_1.GetUploadQuotaResponseTotalToJSON)(value['total']), + }; +} diff --git a/dist/models/V4Visibility.d.ts b/dist/models/V4Visibility.d.ts new file mode 100644 index 0000000..53b6f6d --- /dev/null +++ b/dist/models/V4Visibility.d.ts @@ -0,0 +1,79 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `BANNED` — заблокированные товары; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +export declare const V4Visibility: { + readonly ALL: "ALL"; + readonly VISIBLE: "VISIBLE"; + readonly INVISIBLE: "INVISIBLE"; + readonly EMPTY_STOCK: "EMPTY_STOCK"; + readonly NOT_MODERATED: "NOT_MODERATED"; + readonly MODERATED: "MODERATED"; + readonly DISABLED: "DISABLED"; + readonly STATE_FAILED: "STATE_FAILED"; + readonly READY_TO_SUPPLY: "READY_TO_SUPPLY"; + readonly VALIDATION_STATE_PENDING: "VALIDATION_STATE_PENDING"; + readonly VALIDATION_STATE_FAIL: "VALIDATION_STATE_FAIL"; + readonly VALIDATION_STATE_SUCCESS: "VALIDATION_STATE_SUCCESS"; + readonly TO_SUPPLY: "TO_SUPPLY"; + readonly IN_SALE: "IN_SALE"; + readonly REMOVED_FROM_SALE: "REMOVED_FROM_SALE"; + readonly BANNED: "BANNED"; + readonly OVERPRICED: "OVERPRICED"; + readonly CRITICALLY_OVERPRICED: "CRITICALLY_OVERPRICED"; + readonly EMPTY_BARCODE: "EMPTY_BARCODE"; + readonly BARCODE_EXISTS: "BARCODE_EXISTS"; + readonly QUARANTINE: "QUARANTINE"; + readonly ARCHIVED: "ARCHIVED"; + readonly OVERPRICED_WITH_STOCK: "OVERPRICED_WITH_STOCK"; + readonly PARTIAL_APPROVED: "PARTIAL_APPROVED"; + readonly AUTO_ARCHIVED: "AUTO_ARCHIVED"; + readonly MANUAL_ARCHIVED: "MANUAL_ARCHIVED"; + readonly SEASONAL_AUTO_ARCHIVED: "SEASONAL_AUTO_ARCHIVED"; + readonly VISIBLE_WITH_FBO_STOCK: "VISIBLE_WITH_FBO_STOCK"; +}; +export type V4Visibility = typeof V4Visibility[keyof typeof V4Visibility]; +export declare function instanceOfV4Visibility(value: any): boolean; +export declare function V4VisibilityFromJSON(json: any): V4Visibility; +export declare function V4VisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): V4Visibility; +export declare function V4VisibilityToJSON(value?: V4Visibility | null): any; diff --git a/dist/models/V4Visibility.js b/dist/models/V4Visibility.js new file mode 100644 index 0000000..e45aa82 --- /dev/null +++ b/dist/models/V4Visibility.js @@ -0,0 +1,102 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.V4Visibility = void 0; +exports.instanceOfV4Visibility = instanceOfV4Visibility; +exports.V4VisibilityFromJSON = V4VisibilityFromJSON; +exports.V4VisibilityFromJSONTyped = V4VisibilityFromJSONTyped; +exports.V4VisibilityToJSON = V4VisibilityToJSON; +/** + * Фильтр по видимости товара: + * - `ALL` — все товары, кроме архивных; + * - `VISIBLE` — товары, которые видны покупателям; + * - `INVISIBLE` — товары, которые не видны покупателям; + * - `EMPTY_STOCK` — товары, у которых не указано наличие; + * - `NOT_MODERATED` — товары, которые не прошли модерацию; + * - `MODERATED` — товары, которые прошли модерацию; + * - `DISABLED` — товары, которые видны покупателям, но недоступны к покупке; + * - `STATE_FAILED` — товары, создание которых завершилось ошибкой; + * - `READY_TO_SUPPLY` — товары, готовые к поставке; + * - `VALIDATION_STATE_PENDING` — товары, которые проходят проверку валидатором на премодерации; + * - `VALIDATION_STATE_FAIL` — товары, которые не прошли проверку валидатором на премодерации; + * - `VALIDATION_STATE_SUCCESS` — товары, которые прошли проверку валидатором на премодерации; + * - `TO_SUPPLY` — товары, готовые к продаже; + * - `IN_SALE` — товары в продаже; + * - `REMOVED_FROM_SALE` — товары, скрытые от покупателей; + * - `BANNED` — заблокированные товары; + * - `OVERPRICED` — товары с завышенной ценой; + * - `CRITICALLY_OVERPRICED` — товары со слишком завышенной ценой; + * - `EMPTY_BARCODE` — товары без штрихкода; + * - `BARCODE_EXISTS` — товары со штрихкодом; + * - `QUARANTINE` — товары на карантине после изменения цены более чем на 50%; + * - `ARCHIVED` — товары в архиве; + * - `OVERPRICED_WITH_STOCK` — товары в продаже со стоимостью выше, чем у конкурентов; + * - `PARTIAL_APPROVED` — товары в продаже с пустым или неполным описанием; + * - `AUTO_ARCHIVED` — товары, которые система перенесла в архив автоматически; + * - `MANUAL_ARCHIVED` — товары, которые продавец перенёс в архив вручную; + * - `SEASONAL_AUTO_ARCHIVED` — сезонные товары, которые система перенесла в архив автоматически; + * - `VISIBLE_WITH_FBO_STOCK` — товары с остатками на FBO, которые видят покупатели. + * + * @export + */ +exports.V4Visibility = { + ALL: 'ALL', + VISIBLE: 'VISIBLE', + INVISIBLE: 'INVISIBLE', + EMPTY_STOCK: 'EMPTY_STOCK', + NOT_MODERATED: 'NOT_MODERATED', + MODERATED: 'MODERATED', + DISABLED: 'DISABLED', + STATE_FAILED: 'STATE_FAILED', + READY_TO_SUPPLY: 'READY_TO_SUPPLY', + VALIDATION_STATE_PENDING: 'VALIDATION_STATE_PENDING', + VALIDATION_STATE_FAIL: 'VALIDATION_STATE_FAIL', + VALIDATION_STATE_SUCCESS: 'VALIDATION_STATE_SUCCESS', + TO_SUPPLY: 'TO_SUPPLY', + IN_SALE: 'IN_SALE', + REMOVED_FROM_SALE: 'REMOVED_FROM_SALE', + BANNED: 'BANNED', + OVERPRICED: 'OVERPRICED', + CRITICALLY_OVERPRICED: 'CRITICALLY_OVERPRICED', + EMPTY_BARCODE: 'EMPTY_BARCODE', + BARCODE_EXISTS: 'BARCODE_EXISTS', + QUARANTINE: 'QUARANTINE', + ARCHIVED: 'ARCHIVED', + OVERPRICED_WITH_STOCK: 'OVERPRICED_WITH_STOCK', + PARTIAL_APPROVED: 'PARTIAL_APPROVED', + AUTO_ARCHIVED: 'AUTO_ARCHIVED', + MANUAL_ARCHIVED: 'MANUAL_ARCHIVED', + SEASONAL_AUTO_ARCHIVED: 'SEASONAL_AUTO_ARCHIVED', + VISIBLE_WITH_FBO_STOCK: 'VISIBLE_WITH_FBO_STOCK' +}; +function instanceOfV4Visibility(value) { + for (const key in exports.V4Visibility) { + if (Object.prototype.hasOwnProperty.call(exports.V4Visibility, key)) { + if (exports.V4Visibility[key] === value) { + return true; + } + } + } + return false; +} +function V4VisibilityFromJSON(json) { + return V4VisibilityFromJSONTyped(json, false); +} +function V4VisibilityFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function V4VisibilityToJSON(value) { + return value; +} diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5Request.d.ts b/dist/models/V5FbsPostingProductExemplarStatusV5Request.d.ts new file mode 100644 index 0000000..6c1e31b --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5Request + */ +export interface V5FbsPostingProductExemplarStatusV5Request { + /** + * Номер отправления. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5Request + */ + posting_number: string; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5Request interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5Request(value: object): value is V5FbsPostingProductExemplarStatusV5Request; +export declare function V5FbsPostingProductExemplarStatusV5RequestFromJSON(json: any): V5FbsPostingProductExemplarStatusV5Request; +export declare function V5FbsPostingProductExemplarStatusV5RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5Request; +export declare function V5FbsPostingProductExemplarStatusV5RequestToJSON(value?: V5FbsPostingProductExemplarStatusV5Request | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5Request.js b/dist/models/V5FbsPostingProductExemplarStatusV5Request.js new file mode 100644 index 0000000..b5d9821 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5Request.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarStatusV5Request = instanceOfV5FbsPostingProductExemplarStatusV5Request; +exports.V5FbsPostingProductExemplarStatusV5RequestFromJSON = V5FbsPostingProductExemplarStatusV5RequestFromJSON; +exports.V5FbsPostingProductExemplarStatusV5RequestFromJSONTyped = V5FbsPostingProductExemplarStatusV5RequestFromJSONTyped; +exports.V5FbsPostingProductExemplarStatusV5RequestToJSON = V5FbsPostingProductExemplarStatusV5RequestToJSON; +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5Request interface. + */ +function instanceOfV5FbsPostingProductExemplarStatusV5Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V5FbsPostingProductExemplarStatusV5RequestFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5RequestFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarStatusV5RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V5FbsPostingProductExemplarStatusV5RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5Response.d.ts b/dist/models/V5FbsPostingProductExemplarStatusV5Response.d.ts new file mode 100644 index 0000000..2cdbb2d --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5Response.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarStatusV5ResponseProduct } from './V5FbsPostingProductExemplarStatusV5ResponseProduct'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5Response + */ +export interface V5FbsPostingProductExemplarStatusV5Response { + /** + * Номер отправления. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5Response + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5Response + */ + products?: Array; + /** + * Статус проверки всех экземпляров и доступности сборки: + * - `ship_available` — сборка доступна; + * - `ship_not_available` — сборка недоступна; + * - `validation_in_process` — экземпляры на проверке; + * - `update_available` — редактирование информации об экземплярах доступно; + * - `update_not_available` — редактирование информации об экземплярах недоступно. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5Response + */ + status?: string; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5Response interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5Response(value: object): value is V5FbsPostingProductExemplarStatusV5Response; +export declare function V5FbsPostingProductExemplarStatusV5ResponseFromJSON(json: any): V5FbsPostingProductExemplarStatusV5Response; +export declare function V5FbsPostingProductExemplarStatusV5ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5Response; +export declare function V5FbsPostingProductExemplarStatusV5ResponseToJSON(value?: V5FbsPostingProductExemplarStatusV5Response | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5Response.js b/dist/models/V5FbsPostingProductExemplarStatusV5Response.js new file mode 100644 index 0000000..2815723 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarStatusV5Response = instanceOfV5FbsPostingProductExemplarStatusV5Response; +exports.V5FbsPostingProductExemplarStatusV5ResponseFromJSON = V5FbsPostingProductExemplarStatusV5ResponseFromJSON; +exports.V5FbsPostingProductExemplarStatusV5ResponseFromJSONTyped = V5FbsPostingProductExemplarStatusV5ResponseFromJSONTyped; +exports.V5FbsPostingProductExemplarStatusV5ResponseToJSON = V5FbsPostingProductExemplarStatusV5ResponseToJSON; +const V5FbsPostingProductExemplarStatusV5ResponseProduct_1 = require("./V5FbsPostingProductExemplarStatusV5ResponseProduct"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5Response interface. + */ +function instanceOfV5FbsPostingProductExemplarStatusV5Response(value) { + return true; +} +function V5FbsPostingProductExemplarStatusV5ResponseFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5ResponseFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarStatusV5ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(V5FbsPostingProductExemplarStatusV5ResponseProduct_1.V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON)), + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function V5FbsPostingProductExemplarStatusV5ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(V5FbsPostingProductExemplarStatusV5ResponseProduct_1.V5FbsPostingProductExemplarStatusV5ResponseProductToJSON)), + 'status': value['status'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.d.ts b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.d.ts new file mode 100644 index 0000000..722bc3f --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarStatusV5ResponseProductExemplar } from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplar'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5ResponseProduct + */ +export interface V5FbsPostingProductExemplarStatusV5ResponseProduct { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProduct + */ + exemplars?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProduct + */ + product_id?: number; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProduct interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProduct(value: object): value is V5FbsPostingProductExemplarStatusV5ResponseProduct; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON(json: any): V5FbsPostingProductExemplarStatusV5ResponseProduct; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5ResponseProduct; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductToJSON(value?: V5FbsPostingProductExemplarStatusV5ResponseProduct | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.js b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.js new file mode 100644 index 0000000..9b60003 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProduct.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarStatusV5ResponseProduct = instanceOfV5FbsPostingProductExemplarStatusV5ResponseProduct; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON = V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductFromJSONTyped = V5FbsPostingProductExemplarStatusV5ResponseProductFromJSONTyped; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductToJSON = V5FbsPostingProductExemplarStatusV5ResponseProductToJSON; +const V5FbsPostingProductExemplarStatusV5ResponseProductExemplar_1 = require("./V5FbsPostingProductExemplarStatusV5ResponseProductExemplar"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProduct interface. + */ +function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProduct(value) { + return true; +} +function V5FbsPostingProductExemplarStatusV5ResponseProductFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5ResponseProductFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarStatusV5ResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(V5FbsPostingProductExemplarStatusV5ResponseProductExemplar_1.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON)), + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + }; +} +function V5FbsPostingProductExemplarStatusV5ResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(V5FbsPostingProductExemplarStatusV5ResponseProductExemplar_1.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON)), + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.d.ts b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.d.ts new file mode 100644 index 0000000..d12bbdc --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.d.ts @@ -0,0 +1,104 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark } from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ +export interface V5FbsPostingProductExemplarStatusV5ResponseProductExemplar { + /** + * Идентификатор экземпляра. + * @type {number} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + exemplar_id?: number; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + gtd?: string; + /** + * Статус проверки грузовой таможенной декларации. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + gtd_check_status?: string; + /** + * Коды ошибок при проверке грузовой таможенной декларации. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + gtd_error_codes?: Array; + /** + * Признак того, что не указан номер таможенной декларации (ГТД). + * @type {boolean} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + is_gtd_absent?: boolean; + /** + * Признак того, что не указан регистрационный номер партии товара (РНПТ). + * @type {boolean} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + is_rnpt_absent?: boolean; + /** + * Список контрольных идентификационных знаков (КИЗ) и других маркировок в одном экземпляре. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + rnpt?: string; + /** + * Статус проверки регистрационного номера партии товара. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + rnpt_check_status?: string; + /** + * Коды ошибок при проверке регистрационного номера партии товара. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + rnpt_error_codes?: Array; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + weight?: number; + /** + * Статус проверки фактического веса. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + weight_check_status?: string; + /** + * Коды ошибок при проверке фактического веса. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplar + */ + weight_error_codes?: Array; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProductExemplar interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplar(value: object): value is V5FbsPostingProductExemplarStatusV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON(json: any): V5FbsPostingProductExemplarStatusV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON(value?: V5FbsPostingProductExemplarStatusV5ResponseProductExemplar | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.js b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.js new file mode 100644 index 0000000..d43e49c --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplar.js @@ -0,0 +1,69 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplar = instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplar; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON = V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSONTyped = V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSONTyped; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON = V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON; +const V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark_1 = require("./V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProductExemplar interface. + */ +function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplar(value) { + return true; +} +function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplar_id': json['exemplar_id'] == null ? undefined : json['exemplar_id'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'gtd_check_status': json['gtd_check_status'] == null ? undefined : json['gtd_check_status'], + 'gtd_error_codes': json['gtd_error_codes'] == null ? undefined : json['gtd_error_codes'], + 'is_gtd_absent': json['is_gtd_absent'] == null ? undefined : json['is_gtd_absent'], + 'is_rnpt_absent': json['is_rnpt_absent'] == null ? undefined : json['is_rnpt_absent'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark_1.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'rnpt_check_status': json['rnpt_check_status'] == null ? undefined : json['rnpt_check_status'], + 'rnpt_error_codes': json['rnpt_error_codes'] == null ? undefined : json['rnpt_error_codes'], + 'weight': json['weight'] == null ? undefined : json['weight'], + 'weight_check_status': json['weight_check_status'] == null ? undefined : json['weight_check_status'], + 'weight_error_codes': json['weight_error_codes'] == null ? undefined : json['weight_error_codes'], + }; +} +function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplar_id': value['exemplar_id'], + 'gtd': value['gtd'], + 'gtd_check_status': value['gtd_check_status'], + 'gtd_error_codes': value['gtd_error_codes'], + 'is_gtd_absent': value['is_gtd_absent'], + 'is_rnpt_absent': value['is_rnpt_absent'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark_1.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON)), + 'rnpt': value['rnpt'], + 'rnpt_check_status': value['rnpt_check_status'], + 'rnpt_error_codes': value['rnpt_error_codes'], + 'weight': value['weight'], + 'weight_check_status': value['weight_check_status'], + 'weight_error_codes': value['weight_error_codes'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.d.ts b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.d.ts new file mode 100644 index 0000000..31b299e --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ +export interface V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark { + /** + * Статус проверки: + * - `processing` — на проверке; + * - `failed` — система не успела обработать запрос; + * - `passed` — заказ готов к сборке. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ + check_status?: string; + /** + * Ошибки при проверке контрольных идентификационных знаков (КИЗ) и других маркировок. + * @type {Array} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ + error_codes?: Array; + /** + * Значение кода маркировки. + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark + */ + mark_type?: string; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark(value: object): value is V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON(json: any): V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON(value?: V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.js b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.js new file mode 100644 index 0000000..4230a56 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark = instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON = V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSONTyped = V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSONTyped; +exports.V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON = V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON; +/** + * Check if a given object implements the V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark interface. + */ +function instanceOfV5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark(value) { + return true; +} +function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSON(json) { + return V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'check_status': json['check_status'] == null ? undefined : json['check_status'], + 'error_codes': json['error_codes'] == null ? undefined : json['error_codes'], + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + }; +} +function V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMarkToJSON(value) { + if (value == null) { + return value; + } + return { + 'check_status': value['check_status'], + 'error_codes': value['error_codes'], + 'mark': value['mark'], + 'mark_type': value['mark_type'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5Request.d.ts b/dist/models/V5FbsPostingProductExemplarValidateV5Request.d.ts new file mode 100644 index 0000000..11b5330 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5Request.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5RequestProduct } from './V5FbsPostingProductExemplarValidateV5RequestProduct'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5Request + */ +export interface V5FbsPostingProductExemplarValidateV5Request { + /** + * Номер отправления. + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5Request + */ + posting_number: string; + /** + * Список товаров. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5Request + */ + products: Array; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5Request interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5Request(value: object): value is V5FbsPostingProductExemplarValidateV5Request; +export declare function V5FbsPostingProductExemplarValidateV5RequestFromJSON(json: any): V5FbsPostingProductExemplarValidateV5Request; +export declare function V5FbsPostingProductExemplarValidateV5RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5Request; +export declare function V5FbsPostingProductExemplarValidateV5RequestToJSON(value?: V5FbsPostingProductExemplarValidateV5Request | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5Request.js b/dist/models/V5FbsPostingProductExemplarValidateV5Request.js new file mode 100644 index 0000000..e3ccbfc --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5Request.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarValidateV5Request = instanceOfV5FbsPostingProductExemplarValidateV5Request; +exports.V5FbsPostingProductExemplarValidateV5RequestFromJSON = V5FbsPostingProductExemplarValidateV5RequestFromJSON; +exports.V5FbsPostingProductExemplarValidateV5RequestFromJSONTyped = V5FbsPostingProductExemplarValidateV5RequestFromJSONTyped; +exports.V5FbsPostingProductExemplarValidateV5RequestToJSON = V5FbsPostingProductExemplarValidateV5RequestToJSON; +const V5FbsPostingProductExemplarValidateV5RequestProduct_1 = require("./V5FbsPostingProductExemplarValidateV5RequestProduct"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5Request interface. + */ +function instanceOfV5FbsPostingProductExemplarValidateV5Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +function V5FbsPostingProductExemplarValidateV5RequestFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5RequestFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarValidateV5RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + 'products': (json['products'].map(V5FbsPostingProductExemplarValidateV5RequestProduct_1.V5FbsPostingProductExemplarValidateV5RequestProductFromJSON)), + }; +} +function V5FbsPostingProductExemplarValidateV5RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + 'products': (value['products'].map(V5FbsPostingProductExemplarValidateV5RequestProduct_1.V5FbsPostingProductExemplarValidateV5RequestProductToJSON)), + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5RequestProduct.d.ts b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProduct.d.ts new file mode 100644 index 0000000..5d91d0d --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProduct.d.ts @@ -0,0 +1,38 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5RequestProductExemplar } from './V5FbsPostingProductExemplarValidateV5RequestProductExemplar'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5RequestProduct + */ +export interface V5FbsPostingProductExemplarValidateV5RequestProduct { + /** + * Информация об экземплярах. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProduct + */ + exemplars: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProduct + */ + product_id: number; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProduct interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5RequestProduct(value: object): value is V5FbsPostingProductExemplarValidateV5RequestProduct; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductFromJSON(json: any): V5FbsPostingProductExemplarValidateV5RequestProduct; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5RequestProduct; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductToJSON(value?: V5FbsPostingProductExemplarValidateV5RequestProduct | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5RequestProduct.js b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProduct.js new file mode 100644 index 0000000..36cbdc4 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProduct.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarValidateV5RequestProduct = instanceOfV5FbsPostingProductExemplarValidateV5RequestProduct; +exports.V5FbsPostingProductExemplarValidateV5RequestProductFromJSON = V5FbsPostingProductExemplarValidateV5RequestProductFromJSON; +exports.V5FbsPostingProductExemplarValidateV5RequestProductFromJSONTyped = V5FbsPostingProductExemplarValidateV5RequestProductFromJSONTyped; +exports.V5FbsPostingProductExemplarValidateV5RequestProductToJSON = V5FbsPostingProductExemplarValidateV5RequestProductToJSON; +const V5FbsPostingProductExemplarValidateV5RequestProductExemplar_1 = require("./V5FbsPostingProductExemplarValidateV5RequestProductExemplar"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProduct interface. + */ +function instanceOfV5FbsPostingProductExemplarValidateV5RequestProduct(value) { + if (!('exemplars' in value) || value['exemplars'] === undefined) + return false; + if (!('product_id' in value) || value['product_id'] === undefined) + return false; + return true; +} +function V5FbsPostingProductExemplarValidateV5RequestProductFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5RequestProductFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarValidateV5RequestProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'exemplars': (json['exemplars'].map(V5FbsPostingProductExemplarValidateV5RequestProductExemplar_1.V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON)), + 'product_id': json['product_id'], + }; +} +function V5FbsPostingProductExemplarValidateV5RequestProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'exemplars': (value['exemplars'].map(V5FbsPostingProductExemplarValidateV5RequestProductExemplar_1.V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON)), + 'product_id': value['product_id'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.d.ts b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.d.ts new file mode 100644 index 0000000..2e59489 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark } from './V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ +export interface V5FbsPostingProductExemplarValidateV5RequestProductExemplar { + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ + gtd?: string; + /** + * Список контрольных идентификационных знаков (КИЗ) и других маркировок в одном экземпляре. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ + rnpt?: string; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplar + */ + weight?: number; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProductExemplar interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplar(value: object): value is V5FbsPostingProductExemplarValidateV5RequestProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON(json: any): V5FbsPostingProductExemplarValidateV5RequestProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5RequestProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON(value?: V5FbsPostingProductExemplarValidateV5RequestProductExemplar | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.js b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.js new file mode 100644 index 0000000..0548213 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplar.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplar = instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplar; +exports.V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON = V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON; +exports.V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSONTyped = V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSONTyped; +exports.V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON = V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON; +const V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark_1 = require("./V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProductExemplar interface. + */ +function instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplar(value) { + return true; +} +function V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarValidateV5RequestProductExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark_1.V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function V5FbsPostingProductExemplarValidateV5RequestProductExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'gtd': value['gtd'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark_1.V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON)), + 'rnpt': value['rnpt'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.d.ts b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.d.ts new file mode 100644 index 0000000..63f4365 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark + */ +export interface V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark { + /** + * Значение кода маркировки. + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark + */ + mark_type?: string; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplarMark(value: object): value is V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON(json: any): V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON(value?: V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.js b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.js new file mode 100644 index 0000000..8aa3743 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplarMark = instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplarMark; +exports.V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON = V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON; +exports.V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSONTyped = V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSONTyped; +exports.V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON = V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON; +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark interface. + */ +function instanceOfV5FbsPostingProductExemplarValidateV5RequestProductExemplarMark(value) { + return true; +} +function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + }; +} +function V5FbsPostingProductExemplarValidateV5RequestProductExemplarMarkToJSON(value) { + if (value == null) { + return value; + } + return { + 'mark': value['mark'], + 'mark_type': value['mark_type'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5Response.d.ts b/dist/models/V5FbsPostingProductExemplarValidateV5Response.d.ts new file mode 100644 index 0000000..5ab428f --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5Response.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5ResponseProduct } from './V5FbsPostingProductExemplarValidateV5ResponseProduct'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5Response + */ +export interface V5FbsPostingProductExemplarValidateV5Response { + /** + * Список товаров. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5Response + */ + products?: Array; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5Response interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5Response(value: object): value is V5FbsPostingProductExemplarValidateV5Response; +export declare function V5FbsPostingProductExemplarValidateV5ResponseFromJSON(json: any): V5FbsPostingProductExemplarValidateV5Response; +export declare function V5FbsPostingProductExemplarValidateV5ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5Response; +export declare function V5FbsPostingProductExemplarValidateV5ResponseToJSON(value?: V5FbsPostingProductExemplarValidateV5Response | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5Response.js b/dist/models/V5FbsPostingProductExemplarValidateV5Response.js new file mode 100644 index 0000000..ea81186 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5Response.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarValidateV5Response = instanceOfV5FbsPostingProductExemplarValidateV5Response; +exports.V5FbsPostingProductExemplarValidateV5ResponseFromJSON = V5FbsPostingProductExemplarValidateV5ResponseFromJSON; +exports.V5FbsPostingProductExemplarValidateV5ResponseFromJSONTyped = V5FbsPostingProductExemplarValidateV5ResponseFromJSONTyped; +exports.V5FbsPostingProductExemplarValidateV5ResponseToJSON = V5FbsPostingProductExemplarValidateV5ResponseToJSON; +const V5FbsPostingProductExemplarValidateV5ResponseProduct_1 = require("./V5FbsPostingProductExemplarValidateV5ResponseProduct"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5Response interface. + */ +function instanceOfV5FbsPostingProductExemplarValidateV5Response(value) { + return true; +} +function V5FbsPostingProductExemplarValidateV5ResponseFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5ResponseFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarValidateV5ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'products': json['products'] == null ? undefined : (json['products'].map(V5FbsPostingProductExemplarValidateV5ResponseProduct_1.V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON)), + }; +} +function V5FbsPostingProductExemplarValidateV5ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'products': value['products'] == null ? undefined : (value['products'].map(V5FbsPostingProductExemplarValidateV5ResponseProduct_1.V5FbsPostingProductExemplarValidateV5ResponseProductToJSON)), + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.d.ts b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.d.ts new file mode 100644 index 0000000..6019a01 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5ResponseProductExemplar } from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplar'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5ResponseProduct + */ +export interface V5FbsPostingProductExemplarValidateV5ResponseProduct { + /** + * Код ошибки. + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProduct + */ + error?: string; + /** + * Информация об экземплярах. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProduct + */ + exemplars?: Array; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProduct + */ + product_id?: number; + /** + * Результат прохождения проверки. `true`, если коды всех экземпляров соответствуют требованиям. + * @type {boolean} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProduct + */ + valid?: boolean; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProduct interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProduct(value: object): value is V5FbsPostingProductExemplarValidateV5ResponseProduct; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON(json: any): V5FbsPostingProductExemplarValidateV5ResponseProduct; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5ResponseProduct; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductToJSON(value?: V5FbsPostingProductExemplarValidateV5ResponseProduct | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.js b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.js new file mode 100644 index 0000000..6382976 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProduct.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarValidateV5ResponseProduct = instanceOfV5FbsPostingProductExemplarValidateV5ResponseProduct; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON = V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductFromJSONTyped = V5FbsPostingProductExemplarValidateV5ResponseProductFromJSONTyped; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductToJSON = V5FbsPostingProductExemplarValidateV5ResponseProductToJSON; +const V5FbsPostingProductExemplarValidateV5ResponseProductExemplar_1 = require("./V5FbsPostingProductExemplarValidateV5ResponseProductExemplar"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProduct interface. + */ +function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProduct(value) { + return true; +} +function V5FbsPostingProductExemplarValidateV5ResponseProductFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5ResponseProductFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarValidateV5ResponseProductFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'error': json['error'] == null ? undefined : json['error'], + 'exemplars': json['exemplars'] == null ? undefined : (json['exemplars'].map(V5FbsPostingProductExemplarValidateV5ResponseProductExemplar_1.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON)), + 'product_id': json['product_id'] == null ? undefined : json['product_id'], + 'valid': json['valid'] == null ? undefined : json['valid'], + }; +} +function V5FbsPostingProductExemplarValidateV5ResponseProductToJSON(value) { + if (value == null) { + return value; + } + return { + 'error': value['error'], + 'exemplars': value['exemplars'] == null ? undefined : (value['exemplars'].map(V5FbsPostingProductExemplarValidateV5ResponseProductExemplar_1.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON)), + 'product_id': value['product_id'], + 'valid': value['valid'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.d.ts b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.d.ts new file mode 100644 index 0000000..00266e1 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark } from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark'; +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ +export interface V5FbsPostingProductExemplarValidateV5ResponseProductExemplar { + /** + * Ошибки валидации экземпляра. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + errors?: Array; + /** + * Номер грузовой таможенной декларации (ГТД). + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + gtd?: string; + /** + * Ошибки при проверке контрольных идентификационных знаков (КИЗ) и других маркировок. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + marks?: Array; + /** + * Регистрационный номер партии товара (РНПТ). + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + rnpt?: string; + /** + * Результат прохождения проверки. `true`, если код экземпляра соответствует требованиям. + * @type {boolean} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + valid?: boolean; + /** + * Фактический вес экземпляра. + * @type {number} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplar + */ + weight?: number; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProductExemplar interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplar(value: object): value is V5FbsPostingProductExemplarValidateV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON(json: any): V5FbsPostingProductExemplarValidateV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5ResponseProductExemplar; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON(value?: V5FbsPostingProductExemplarValidateV5ResponseProductExemplar | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.js b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.js new file mode 100644 index 0000000..18aa111 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplar.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplar = instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplar; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON = V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSONTyped = V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSONTyped; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON = V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON; +const V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark_1 = require("./V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark"); +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProductExemplar interface. + */ +function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplar(value) { + return true; +} +function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : json['errors'], + 'gtd': json['gtd'] == null ? undefined : json['gtd'], + 'marks': json['marks'] == null ? undefined : (json['marks'].map(V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark_1.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON)), + 'rnpt': json['rnpt'] == null ? undefined : json['rnpt'], + 'valid': json['valid'] == null ? undefined : json['valid'], + 'weight': json['weight'] == null ? undefined : json['weight'], + }; +} +function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'], + 'gtd': value['gtd'], + 'marks': value['marks'] == null ? undefined : (value['marks'].map(V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark_1.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON)), + 'rnpt': value['rnpt'], + 'valid': value['valid'], + 'weight': value['weight'], + }; +} diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.d.ts b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.d.ts new file mode 100644 index 0000000..a86374d --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.d.ts @@ -0,0 +1,53 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ +export interface V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark { + /** + * Ошибки при проверке контрольных идентификационных знаков (КИЗ) и других маркировок. + * @type {Array} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ + errors?: Array; + /** + * Значение кода маркировки. + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ + mark?: string; + /** + * Тип кода маркировки: + * - `mandatory_mark` — обязательная маркировка «Честный ЗНАК»; + * - `jw_uin` — уникальный идентификационный номер (УИН) ювелирного изделия; + * - `imei` — IMEI мобильного устройства. + * + * @type {string} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ + mark_type?: string; + /** + * Результат прохождения проверки. `true`, если контрольный идентификационный знак (КИЗ) и другие маркировки соответствуют требованиям. + * @type {boolean} + * @memberof V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark + */ + valid?: boolean; +} +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark interface. + */ +export declare function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark(value: object): value is V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON(json: any): V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSONTyped(json: any, ignoreDiscriminator: boolean): V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark; +export declare function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON(value?: V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark | null): any; diff --git a/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.js b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.js new file mode 100644 index 0000000..06579b1 --- /dev/null +++ b/dist/models/V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark = instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON = V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSONTyped = V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSONTyped; +exports.V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON = V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON; +/** + * Check if a given object implements the V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark interface. + */ +function instanceOfV5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark(value) { + return true; +} +function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSON(json) { + return V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSONTyped(json, false); +} +function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'errors': json['errors'] == null ? undefined : json['errors'], + 'mark': json['mark'] == null ? undefined : json['mark'], + 'mark_type': json['mark_type'] == null ? undefined : json['mark_type'], + 'valid': json['valid'] == null ? undefined : json['valid'], + }; +} +function V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMarkToJSON(value) { + if (value == null) { + return value; + } + return { + 'errors': value['errors'], + 'mark': value['mark'], + 'mark_type': value['mark_type'], + 'valid': value['valid'], + }; +} diff --git a/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Request.d.ts b/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Request.d.ts new file mode 100644 index 0000000..f33829a --- /dev/null +++ b/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Request.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface V6FbsPostingProductExemplarCreateOrGetV6Request + */ +export interface V6FbsPostingProductExemplarCreateOrGetV6Request { + /** + * Номер отправления. + * @type {string} + * @memberof V6FbsPostingProductExemplarCreateOrGetV6Request + */ + posting_number: string; +} +/** + * Check if a given object implements the V6FbsPostingProductExemplarCreateOrGetV6Request interface. + */ +export declare function instanceOfV6FbsPostingProductExemplarCreateOrGetV6Request(value: object): value is V6FbsPostingProductExemplarCreateOrGetV6Request; +export declare function V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSON(json: any): V6FbsPostingProductExemplarCreateOrGetV6Request; +export declare function V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V6FbsPostingProductExemplarCreateOrGetV6Request; +export declare function V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON(value?: V6FbsPostingProductExemplarCreateOrGetV6Request | null): any; diff --git a/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Request.js b/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Request.js new file mode 100644 index 0000000..d61e808 --- /dev/null +++ b/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Request.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV6FbsPostingProductExemplarCreateOrGetV6Request = instanceOfV6FbsPostingProductExemplarCreateOrGetV6Request; +exports.V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSON = V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSON; +exports.V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSONTyped = V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSONTyped; +exports.V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON = V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON; +/** + * Check if a given object implements the V6FbsPostingProductExemplarCreateOrGetV6Request interface. + */ +function instanceOfV6FbsPostingProductExemplarCreateOrGetV6Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + return true; +} +function V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSON(json) { + return V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSONTyped(json, false); +} +function V6FbsPostingProductExemplarCreateOrGetV6RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'posting_number': json['posting_number'], + }; +} +function V6FbsPostingProductExemplarCreateOrGetV6RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'posting_number': value['posting_number'], + }; +} diff --git a/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Response.d.ts b/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Response.d.ts new file mode 100644 index 0000000..fa562e2 --- /dev/null +++ b/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Response.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingProductExemplarCreateOrGetV6ResponseProduct } from './FbsPostingProductExemplarCreateOrGetV6ResponseProduct'; +/** + * + * @export + * @interface V6FbsPostingProductExemplarCreateOrGetV6Response + */ +export interface V6FbsPostingProductExemplarCreateOrGetV6Response { + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V6FbsPostingProductExemplarCreateOrGetV6Response + */ + multi_box_qty?: number; + /** + * Номер отправления. + * @type {string} + * @memberof V6FbsPostingProductExemplarCreateOrGetV6Response + */ + posting_number?: string; + /** + * Список товаров. + * @type {Array} + * @memberof V6FbsPostingProductExemplarCreateOrGetV6Response + */ + products?: Array; +} +/** + * Check if a given object implements the V6FbsPostingProductExemplarCreateOrGetV6Response interface. + */ +export declare function instanceOfV6FbsPostingProductExemplarCreateOrGetV6Response(value: object): value is V6FbsPostingProductExemplarCreateOrGetV6Response; +export declare function V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON(json: any): V6FbsPostingProductExemplarCreateOrGetV6Response; +export declare function V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V6FbsPostingProductExemplarCreateOrGetV6Response; +export declare function V6FbsPostingProductExemplarCreateOrGetV6ResponseToJSON(value?: V6FbsPostingProductExemplarCreateOrGetV6Response | null): any; diff --git a/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Response.js b/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Response.js new file mode 100644 index 0000000..0c2680c --- /dev/null +++ b/dist/models/V6FbsPostingProductExemplarCreateOrGetV6Response.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV6FbsPostingProductExemplarCreateOrGetV6Response = instanceOfV6FbsPostingProductExemplarCreateOrGetV6Response; +exports.V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON = V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON; +exports.V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSONTyped = V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSONTyped; +exports.V6FbsPostingProductExemplarCreateOrGetV6ResponseToJSON = V6FbsPostingProductExemplarCreateOrGetV6ResponseToJSON; +const FbsPostingProductExemplarCreateOrGetV6ResponseProduct_1 = require("./FbsPostingProductExemplarCreateOrGetV6ResponseProduct"); +/** + * Check if a given object implements the V6FbsPostingProductExemplarCreateOrGetV6Response interface. + */ +function instanceOfV6FbsPostingProductExemplarCreateOrGetV6Response(value) { + return true; +} +function V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSON(json) { + return V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSONTyped(json, false); +} +function V6FbsPostingProductExemplarCreateOrGetV6ResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'posting_number': json['posting_number'] == null ? undefined : json['posting_number'], + 'products': json['products'] == null ? undefined : (json['products'].map(FbsPostingProductExemplarCreateOrGetV6ResponseProduct_1.FbsPostingProductExemplarCreateOrGetV6ResponseProductFromJSON)), + }; +} +function V6FbsPostingProductExemplarCreateOrGetV6ResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'multi_box_qty': value['multi_box_qty'], + 'posting_number': value['posting_number'], + 'products': value['products'] == null ? undefined : (value['products'].map(FbsPostingProductExemplarCreateOrGetV6ResponseProduct_1.FbsPostingProductExemplarCreateOrGetV6ResponseProductToJSON)), + }; +} diff --git a/dist/models/V6FbsPostingProductExemplarSetV6Request.d.ts b/dist/models/V6FbsPostingProductExemplarSetV6Request.d.ts new file mode 100644 index 0000000..ad375ae --- /dev/null +++ b/dist/models/V6FbsPostingProductExemplarSetV6Request.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FbsPostingProductExemplarSetV6RequestProducts } from './FbsPostingProductExemplarSetV6RequestProducts'; +/** + * + * @export + * @interface V6FbsPostingProductExemplarSetV6Request + */ +export interface V6FbsPostingProductExemplarSetV6Request { + /** + * Количество коробок, в которые упакован товар. + * @type {number} + * @memberof V6FbsPostingProductExemplarSetV6Request + */ + multi_box_qty?: number; + /** + * Номер отправления. + * @type {string} + * @memberof V6FbsPostingProductExemplarSetV6Request + */ + posting_number: string; + /** + * Список товаров. + * @type {Array} + * @memberof V6FbsPostingProductExemplarSetV6Request + */ + products: Array; +} +/** + * Check if a given object implements the V6FbsPostingProductExemplarSetV6Request interface. + */ +export declare function instanceOfV6FbsPostingProductExemplarSetV6Request(value: object): value is V6FbsPostingProductExemplarSetV6Request; +export declare function V6FbsPostingProductExemplarSetV6RequestFromJSON(json: any): V6FbsPostingProductExemplarSetV6Request; +export declare function V6FbsPostingProductExemplarSetV6RequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V6FbsPostingProductExemplarSetV6Request; +export declare function V6FbsPostingProductExemplarSetV6RequestToJSON(value?: V6FbsPostingProductExemplarSetV6Request | null): any; diff --git a/dist/models/V6FbsPostingProductExemplarSetV6Request.js b/dist/models/V6FbsPostingProductExemplarSetV6Request.js new file mode 100644 index 0000000..19e5379 --- /dev/null +++ b/dist/models/V6FbsPostingProductExemplarSetV6Request.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV6FbsPostingProductExemplarSetV6Request = instanceOfV6FbsPostingProductExemplarSetV6Request; +exports.V6FbsPostingProductExemplarSetV6RequestFromJSON = V6FbsPostingProductExemplarSetV6RequestFromJSON; +exports.V6FbsPostingProductExemplarSetV6RequestFromJSONTyped = V6FbsPostingProductExemplarSetV6RequestFromJSONTyped; +exports.V6FbsPostingProductExemplarSetV6RequestToJSON = V6FbsPostingProductExemplarSetV6RequestToJSON; +const FbsPostingProductExemplarSetV6RequestProducts_1 = require("./FbsPostingProductExemplarSetV6RequestProducts"); +/** + * Check if a given object implements the V6FbsPostingProductExemplarSetV6Request interface. + */ +function instanceOfV6FbsPostingProductExemplarSetV6Request(value) { + if (!('posting_number' in value) || value['posting_number'] === undefined) + return false; + if (!('products' in value) || value['products'] === undefined) + return false; + return true; +} +function V6FbsPostingProductExemplarSetV6RequestFromJSON(json) { + return V6FbsPostingProductExemplarSetV6RequestFromJSONTyped(json, false); +} +function V6FbsPostingProductExemplarSetV6RequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'multi_box_qty': json['multi_box_qty'] == null ? undefined : json['multi_box_qty'], + 'posting_number': json['posting_number'], + 'products': (json['products'].map(FbsPostingProductExemplarSetV6RequestProducts_1.FbsPostingProductExemplarSetV6RequestProductsFromJSON)), + }; +} +function V6FbsPostingProductExemplarSetV6RequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'multi_box_qty': value['multi_box_qty'], + 'posting_number': value['posting_number'], + 'products': (value['products'].map(FbsPostingProductExemplarSetV6RequestProducts_1.FbsPostingProductExemplarSetV6RequestProductsToJSON)), + }; +} diff --git a/dist/models/ValidationErrorCharacteristicEnum.d.ts b/dist/models/ValidationErrorCharacteristicEnum.d.ts new file mode 100644 index 0000000..9f08cb3 --- /dev/null +++ b/dist/models/ValidationErrorCharacteristicEnum.d.ts @@ -0,0 +1,45 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Характеристика, по которой товар не прошёл проверку. + * + * Возможные ограничения: + * - `UNSPECIFIED` — не определено; + * - `LENGTH` — длина, + * - `WIDTH` — ширина, + * - `HEIGHT` — высота, + * - `WEIGHT` — вес, + * - `SUM_OF_DIMENSIONS` — сумма измерений, + * - `VOLUME_WEIGHT` — объёмный вес, + * - `VOLUME` — объём, + * - `PRICE` — цена, + * - `LONGEST_SIDE` — самая длинная сторона. + * + * @export + */ +export declare const ValidationErrorCharacteristicEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly LENGTH: "LENGTH"; + readonly WIDTH: "WIDTH"; + readonly HEIGHT: "HEIGHT"; + readonly WEIGHT: "WEIGHT"; + readonly SUM_OF_DIMENSIONS: "SUM_OF_DIMENSIONS"; + readonly VOLUME_WEIGHT: "VOLUME_WEIGHT"; + readonly VOLUME: "VOLUME"; + readonly PRICE: "PRICE"; + readonly LONGEST_SIDE: "LONGEST_SIDE"; +}; +export type ValidationErrorCharacteristicEnum = typeof ValidationErrorCharacteristicEnum[keyof typeof ValidationErrorCharacteristicEnum]; +export declare function instanceOfValidationErrorCharacteristicEnum(value: any): boolean; +export declare function ValidationErrorCharacteristicEnumFromJSON(json: any): ValidationErrorCharacteristicEnum; +export declare function ValidationErrorCharacteristicEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorCharacteristicEnum; +export declare function ValidationErrorCharacteristicEnumToJSON(value?: ValidationErrorCharacteristicEnum | null): any; diff --git a/dist/models/ValidationErrorCharacteristicEnum.js b/dist/models/ValidationErrorCharacteristicEnum.js new file mode 100644 index 0000000..5541e03 --- /dev/null +++ b/dist/models/ValidationErrorCharacteristicEnum.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ValidationErrorCharacteristicEnum = void 0; +exports.instanceOfValidationErrorCharacteristicEnum = instanceOfValidationErrorCharacteristicEnum; +exports.ValidationErrorCharacteristicEnumFromJSON = ValidationErrorCharacteristicEnumFromJSON; +exports.ValidationErrorCharacteristicEnumFromJSONTyped = ValidationErrorCharacteristicEnumFromJSONTyped; +exports.ValidationErrorCharacteristicEnumToJSON = ValidationErrorCharacteristicEnumToJSON; +/** + * Характеристика, по которой товар не прошёл проверку. + * + * Возможные ограничения: + * - `UNSPECIFIED` — не определено; + * - `LENGTH` — длина, + * - `WIDTH` — ширина, + * - `HEIGHT` — высота, + * - `WEIGHT` — вес, + * - `SUM_OF_DIMENSIONS` — сумма измерений, + * - `VOLUME_WEIGHT` — объёмный вес, + * - `VOLUME` — объём, + * - `PRICE` — цена, + * - `LONGEST_SIDE` — самая длинная сторона. + * + * @export + */ +exports.ValidationErrorCharacteristicEnum = { + UNSPECIFIED: 'UNSPECIFIED', + LENGTH: 'LENGTH', + WIDTH: 'WIDTH', + HEIGHT: 'HEIGHT', + WEIGHT: 'WEIGHT', + SUM_OF_DIMENSIONS: 'SUM_OF_DIMENSIONS', + VOLUME_WEIGHT: 'VOLUME_WEIGHT', + VOLUME: 'VOLUME', + PRICE: 'PRICE', + LONGEST_SIDE: 'LONGEST_SIDE' +}; +function instanceOfValidationErrorCharacteristicEnum(value) { + for (const key in exports.ValidationErrorCharacteristicEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ValidationErrorCharacteristicEnum, key)) { + if (exports.ValidationErrorCharacteristicEnum[key] === value) { + return true; + } + } + } + return false; +} +function ValidationErrorCharacteristicEnumFromJSON(json) { + return ValidationErrorCharacteristicEnumFromJSONTyped(json, false); +} +function ValidationErrorCharacteristicEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ValidationErrorCharacteristicEnumToJSON(value) { + return value; +} diff --git a/dist/models/ValidationResultItem.d.ts b/dist/models/ValidationResultItem.d.ts new file mode 100644 index 0000000..103a072 --- /dev/null +++ b/dist/models/ValidationResultItem.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ItemSize } from './ItemSize'; +/** + * Информация о товаре. + * @export + * @interface ValidationResultItem + */ +export interface ValidationResultItem { + /** + * + * @type {ItemSize} + * @memberof ValidationResultItem + */ + size?: ItemSize; + /** + * Идентификатор товара в системе Ozon — SKU. + * @type {number} + * @memberof ValidationResultItem + */ + sku?: number; + /** + * Вес товара в граммах. + * @type {number} + * @memberof ValidationResultItem + */ + weight_g?: number; +} +/** + * Check if a given object implements the ValidationResultItem interface. + */ +export declare function instanceOfValidationResultItem(value: object): value is ValidationResultItem; +export declare function ValidationResultItemFromJSON(json: any): ValidationResultItem; +export declare function ValidationResultItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResultItem; +export declare function ValidationResultItemToJSON(value?: ValidationResultItem | null): any; diff --git a/dist/models/ValidationResultItem.js b/dist/models/ValidationResultItem.js new file mode 100644 index 0000000..277c237 --- /dev/null +++ b/dist/models/ValidationResultItem.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfValidationResultItem = instanceOfValidationResultItem; +exports.ValidationResultItemFromJSON = ValidationResultItemFromJSON; +exports.ValidationResultItemFromJSONTyped = ValidationResultItemFromJSONTyped; +exports.ValidationResultItemToJSON = ValidationResultItemToJSON; +const ItemSize_1 = require("./ItemSize"); +/** + * Check if a given object implements the ValidationResultItem interface. + */ +function instanceOfValidationResultItem(value) { + return true; +} +function ValidationResultItemFromJSON(json) { + return ValidationResultItemFromJSONTyped(json, false); +} +function ValidationResultItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'size': json['size'] == null ? undefined : (0, ItemSize_1.ItemSizeFromJSON)(json['size']), + 'sku': json['sku'] == null ? undefined : json['sku'], + 'weight_g': json['weight_g'] == null ? undefined : json['weight_g'], + }; +} +function ValidationResultItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'size': (0, ItemSize_1.ItemSizeToJSON)(value['size']), + 'sku': value['sku'], + 'weight_g': value['weight_g'], + }; +} diff --git a/dist/models/ValidationResultItemStateEnum.d.ts b/dist/models/ValidationResultItemStateEnum.d.ts new file mode 100644 index 0000000..4ff0c90 --- /dev/null +++ b/dist/models/ValidationResultItemStateEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Статус проверки: + * - `UNSPECIFIED` — не определён; + * - `NOT_VALID` — товар не прошёл проверку. + * + * @export + */ +export declare const ValidationResultItemStateEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly NOT_VALID: "NOT_VALID"; +}; +export type ValidationResultItemStateEnum = typeof ValidationResultItemStateEnum[keyof typeof ValidationResultItemStateEnum]; +export declare function instanceOfValidationResultItemStateEnum(value: any): boolean; +export declare function ValidationResultItemStateEnumFromJSON(json: any): ValidationResultItemStateEnum; +export declare function ValidationResultItemStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResultItemStateEnum; +export declare function ValidationResultItemStateEnumToJSON(value?: ValidationResultItemStateEnum | null): any; diff --git a/dist/models/ValidationResultItemStateEnum.js b/dist/models/ValidationResultItemStateEnum.js new file mode 100644 index 0000000..5596d3a --- /dev/null +++ b/dist/models/ValidationResultItemStateEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ValidationResultItemStateEnum = void 0; +exports.instanceOfValidationResultItemStateEnum = instanceOfValidationResultItemStateEnum; +exports.ValidationResultItemStateEnumFromJSON = ValidationResultItemStateEnumFromJSON; +exports.ValidationResultItemStateEnumFromJSONTyped = ValidationResultItemStateEnumFromJSONTyped; +exports.ValidationResultItemStateEnumToJSON = ValidationResultItemStateEnumToJSON; +/** + * Статус проверки: + * - `UNSPECIFIED` — не определён; + * - `NOT_VALID` — товар не прошёл проверку. + * + * @export + */ +exports.ValidationResultItemStateEnum = { + UNSPECIFIED: 'UNSPECIFIED', + NOT_VALID: 'NOT_VALID' +}; +function instanceOfValidationResultItemStateEnum(value) { + for (const key in exports.ValidationResultItemStateEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ValidationResultItemStateEnum, key)) { + if (exports.ValidationResultItemStateEnum[key] === value) { + return true; + } + } + } + return false; +} +function ValidationResultItemStateEnumFromJSON(json) { + return ValidationResultItemStateEnumFromJSONTyped(json, false); +} +function ValidationResultItemStateEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ValidationResultItemStateEnumToJSON(value) { + return value; +} diff --git a/dist/models/ValidationResultValidationError.d.ts b/dist/models/ValidationResultValidationError.d.ts new file mode 100644 index 0000000..60d39de --- /dev/null +++ b/dist/models/ValidationResultValidationError.d.ts @@ -0,0 +1,58 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValidationErrorCharacteristicEnum } from './ValidationErrorCharacteristicEnum'; +import type { ValidationResultValidationErrorTypeEnum } from './ValidationResultValidationErrorTypeEnum'; +import type { V1Money } from './V1Money'; +/** + * + * @export + * @interface ValidationResultValidationError + */ +export interface ValidationResultValidationError { + /** + * + * @type {ValidationErrorCharacteristicEnum} + * @memberof ValidationResultValidationError + */ + characteristic?: ValidationErrorCharacteristicEnum; + /** + * + * @type {V1Money} + * @memberof ValidationResultValidationError + */ + restriction_price?: V1Money; + /** + * Значение ограничения по объёмно-весовым характеристикам — ОВХ. + * @type {number} + * @memberof ValidationResultValidationError + */ + restriction_vwc?: number; + /** + * Идентификатор услуги по доставке заказа, на которой установлено ограничение. + * @type {number} + * @memberof ValidationResultValidationError + */ + template_id?: number; + /** + * + * @type {ValidationResultValidationErrorTypeEnum} + * @memberof ValidationResultValidationError + */ + type?: ValidationResultValidationErrorTypeEnum; +} +/** + * Check if a given object implements the ValidationResultValidationError interface. + */ +export declare function instanceOfValidationResultValidationError(value: object): value is ValidationResultValidationError; +export declare function ValidationResultValidationErrorFromJSON(json: any): ValidationResultValidationError; +export declare function ValidationResultValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResultValidationError; +export declare function ValidationResultValidationErrorToJSON(value?: ValidationResultValidationError | null): any; diff --git a/dist/models/ValidationResultValidationError.js b/dist/models/ValidationResultValidationError.js new file mode 100644 index 0000000..8dd8cd4 --- /dev/null +++ b/dist/models/ValidationResultValidationError.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfValidationResultValidationError = instanceOfValidationResultValidationError; +exports.ValidationResultValidationErrorFromJSON = ValidationResultValidationErrorFromJSON; +exports.ValidationResultValidationErrorFromJSONTyped = ValidationResultValidationErrorFromJSONTyped; +exports.ValidationResultValidationErrorToJSON = ValidationResultValidationErrorToJSON; +const ValidationErrorCharacteristicEnum_1 = require("./ValidationErrorCharacteristicEnum"); +const ValidationResultValidationErrorTypeEnum_1 = require("./ValidationResultValidationErrorTypeEnum"); +const V1Money_1 = require("./V1Money"); +/** + * Check if a given object implements the ValidationResultValidationError interface. + */ +function instanceOfValidationResultValidationError(value) { + return true; +} +function ValidationResultValidationErrorFromJSON(json) { + return ValidationResultValidationErrorFromJSONTyped(json, false); +} +function ValidationResultValidationErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'characteristic': json['characteristic'] == null ? undefined : (0, ValidationErrorCharacteristicEnum_1.ValidationErrorCharacteristicEnumFromJSON)(json['characteristic']), + 'restriction_price': json['restriction_price'] == null ? undefined : (0, V1Money_1.V1MoneyFromJSON)(json['restriction_price']), + 'restriction_vwc': json['restriction_vwc'] == null ? undefined : json['restriction_vwc'], + 'template_id': json['template_id'] == null ? undefined : json['template_id'], + 'type': json['type'] == null ? undefined : (0, ValidationResultValidationErrorTypeEnum_1.ValidationResultValidationErrorTypeEnumFromJSON)(json['type']), + }; +} +function ValidationResultValidationErrorToJSON(value) { + if (value == null) { + return value; + } + return { + 'characteristic': (0, ValidationErrorCharacteristicEnum_1.ValidationErrorCharacteristicEnumToJSON)(value['characteristic']), + 'restriction_price': (0, V1Money_1.V1MoneyToJSON)(value['restriction_price']), + 'restriction_vwc': value['restriction_vwc'], + 'template_id': value['template_id'], + 'type': (0, ValidationResultValidationErrorTypeEnum_1.ValidationResultValidationErrorTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/ValidationResultValidationErrorTypeEnum.d.ts b/dist/models/ValidationResultValidationErrorTypeEnum.d.ts new file mode 100644 index 0000000..5f788e7 --- /dev/null +++ b/dist/models/ValidationResultValidationErrorTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип ошибки: + * - `UNSPECIFIED` — не определён; + * - `LESS_THAN_MIN` — меньше минимального значения; + * - `GREATER_THAN_MAX` — больше максимального значения. + * + * @export + */ +export declare const ValidationResultValidationErrorTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly LESS_THAN_MIN: "LESS_THAN_MIN"; + readonly GREATER_THAN_MAX: "GREATER_THAN_MAX"; +}; +export type ValidationResultValidationErrorTypeEnum = typeof ValidationResultValidationErrorTypeEnum[keyof typeof ValidationResultValidationErrorTypeEnum]; +export declare function instanceOfValidationResultValidationErrorTypeEnum(value: any): boolean; +export declare function ValidationResultValidationErrorTypeEnumFromJSON(json: any): ValidationResultValidationErrorTypeEnum; +export declare function ValidationResultValidationErrorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResultValidationErrorTypeEnum; +export declare function ValidationResultValidationErrorTypeEnumToJSON(value?: ValidationResultValidationErrorTypeEnum | null): any; diff --git a/dist/models/ValidationResultValidationErrorTypeEnum.js b/dist/models/ValidationResultValidationErrorTypeEnum.js new file mode 100644 index 0000000..3cd2f90 --- /dev/null +++ b/dist/models/ValidationResultValidationErrorTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ValidationResultValidationErrorTypeEnum = void 0; +exports.instanceOfValidationResultValidationErrorTypeEnum = instanceOfValidationResultValidationErrorTypeEnum; +exports.ValidationResultValidationErrorTypeEnumFromJSON = ValidationResultValidationErrorTypeEnumFromJSON; +exports.ValidationResultValidationErrorTypeEnumFromJSONTyped = ValidationResultValidationErrorTypeEnumFromJSONTyped; +exports.ValidationResultValidationErrorTypeEnumToJSON = ValidationResultValidationErrorTypeEnumToJSON; +/** + * Тип ошибки: + * - `UNSPECIFIED` — не определён; + * - `LESS_THAN_MIN` — меньше минимального значения; + * - `GREATER_THAN_MAX` — больше максимального значения. + * + * @export + */ +exports.ValidationResultValidationErrorTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + LESS_THAN_MIN: 'LESS_THAN_MIN', + GREATER_THAN_MAX: 'GREATER_THAN_MAX' +}; +function instanceOfValidationResultValidationErrorTypeEnum(value) { + for (const key in exports.ValidationResultValidationErrorTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.ValidationResultValidationErrorTypeEnum, key)) { + if (exports.ValidationResultValidationErrorTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function ValidationResultValidationErrorTypeEnumFromJSON(json) { + return ValidationResultValidationErrorTypeEnumFromJSONTyped(json, false); +} +function ValidationResultValidationErrorTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ValidationResultValidationErrorTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/ValueCargoType.d.ts b/dist/models/ValueCargoType.d.ts new file mode 100644 index 0000000..d999392 --- /dev/null +++ b/dist/models/ValueCargoType.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип грузоместа: + * - `BOX` — коробка. + * - `PALLET` — палета. + * + * @export + */ +export declare const ValueCargoType: { + readonly BOX: "BOX"; + readonly PALLET: "PALLET"; +}; +export type ValueCargoType = typeof ValueCargoType[keyof typeof ValueCargoType]; +export declare function instanceOfValueCargoType(value: any): boolean; +export declare function ValueCargoTypeFromJSON(json: any): ValueCargoType; +export declare function ValueCargoTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueCargoType; +export declare function ValueCargoTypeToJSON(value?: ValueCargoType | null): any; diff --git a/dist/models/ValueCargoType.js b/dist/models/ValueCargoType.js new file mode 100644 index 0000000..3aa9708 --- /dev/null +++ b/dist/models/ValueCargoType.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ValueCargoType = void 0; +exports.instanceOfValueCargoType = instanceOfValueCargoType; +exports.ValueCargoTypeFromJSON = ValueCargoTypeFromJSON; +exports.ValueCargoTypeFromJSONTyped = ValueCargoTypeFromJSONTyped; +exports.ValueCargoTypeToJSON = ValueCargoTypeToJSON; +/** + * Тип грузоместа: + * - `BOX` — коробка. + * - `PALLET` — палета. + * + * @export + */ +exports.ValueCargoType = { + BOX: 'BOX', + PALLET: 'PALLET' +}; +function instanceOfValueCargoType(value) { + for (const key in exports.ValueCargoType) { + if (Object.prototype.hasOwnProperty.call(exports.ValueCargoType, key)) { + if (exports.ValueCargoType[key] === value) { + return true; + } + } + } + return false; +} +function ValueCargoTypeFromJSON(json) { + return ValueCargoTypeFromJSONTyped(json, false); +} +function ValueCargoTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function ValueCargoTypeToJSON(value) { + return value; +} diff --git a/dist/models/ValueItem.d.ts b/dist/models/ValueItem.d.ts new file mode 100644 index 0000000..7937e66 --- /dev/null +++ b/dist/models/ValueItem.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ValueItem + */ +export interface ValueItem { + /** + * Штрихкод товара. Получите методом [/v3/product/info/list](#operation/ProductAPI_GetProductInfoList). + * @type {string} + * @memberof ValueItem + */ + barcode?: string; + /** + * Годен до. + * @type {string} + * @memberof ValueItem + */ + expires_at?: string; + /** + * Идентификатор товара в системе продавца — артикул. + * @type {string} + * @memberof ValueItem + */ + offer_id?: string; + /** + * Размер кванта. + * @type {number} + * @memberof ValueItem + */ + quant?: number; + /** + * Количество товара. + * @type {number} + * @memberof ValueItem + */ + quantity?: number; +} +/** + * Check if a given object implements the ValueItem interface. + */ +export declare function instanceOfValueItem(value: object): value is ValueItem; +export declare function ValueItemFromJSON(json: any): ValueItem; +export declare function ValueItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueItem; +export declare function ValueItemToJSON(value?: ValueItem | null): any; diff --git a/dist/models/ValueItem.js b/dist/models/ValueItem.js new file mode 100644 index 0000000..b59f773 --- /dev/null +++ b/dist/models/ValueItem.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfValueItem = instanceOfValueItem; +exports.ValueItemFromJSON = ValueItemFromJSON; +exports.ValueItemFromJSONTyped = ValueItemFromJSONTyped; +exports.ValueItemToJSON = ValueItemToJSON; +/** + * Check if a given object implements the ValueItem interface. + */ +function instanceOfValueItem(value) { + return true; +} +function ValueItemFromJSON(json) { + return ValueItemFromJSONTyped(json, false); +} +function ValueItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'barcode': json['barcode'] == null ? undefined : json['barcode'], + 'expires_at': json['expires_at'] == null ? undefined : json['expires_at'], + 'offer_id': json['offer_id'] == null ? undefined : json['offer_id'], + 'quant': json['quant'] == null ? undefined : json['quant'], + 'quantity': json['quantity'] == null ? undefined : json['quantity'], + }; +} +function ValueItemToJSON(value) { + if (value == null) { + return value; + } + return { + 'barcode': value['barcode'], + 'expires_at': value['expires_at'], + 'offer_id': value['offer_id'], + 'quant': value['quant'], + 'quantity': value['quantity'], + }; +} diff --git a/dist/models/ValueTimezoneInfo.d.ts b/dist/models/ValueTimezoneInfo.d.ts new file mode 100644 index 0000000..9899621 --- /dev/null +++ b/dist/models/ValueTimezoneInfo.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Часовой пояс. + * @export + * @interface ValueTimezoneInfo + */ +export interface ValueTimezoneInfo { + /** + * Название часового пояса. + * @type {string} + * @memberof ValueTimezoneInfo + */ + iana_name?: string; + /** + * Смещение часового пояса от UTC-0 в секундах. + * @type {string} + * @memberof ValueTimezoneInfo + */ + offset?: string; +} +/** + * Check if a given object implements the ValueTimezoneInfo interface. + */ +export declare function instanceOfValueTimezoneInfo(value: object): value is ValueTimezoneInfo; +export declare function ValueTimezoneInfoFromJSON(json: any): ValueTimezoneInfo; +export declare function ValueTimezoneInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueTimezoneInfo; +export declare function ValueTimezoneInfoToJSON(value?: ValueTimezoneInfo | null): any; diff --git a/dist/models/ValueTimezoneInfo.js b/dist/models/ValueTimezoneInfo.js new file mode 100644 index 0000000..f7eefdb --- /dev/null +++ b/dist/models/ValueTimezoneInfo.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfValueTimezoneInfo = instanceOfValueTimezoneInfo; +exports.ValueTimezoneInfoFromJSON = ValueTimezoneInfoFromJSON; +exports.ValueTimezoneInfoFromJSONTyped = ValueTimezoneInfoFromJSONTyped; +exports.ValueTimezoneInfoToJSON = ValueTimezoneInfoToJSON; +/** + * Check if a given object implements the ValueTimezoneInfo interface. + */ +function instanceOfValueTimezoneInfo(value) { + return true; +} +function ValueTimezoneInfoFromJSON(json) { + return ValueTimezoneInfoFromJSONTyped(json, false); +} +function ValueTimezoneInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'iana_name': json['iana_name'] == null ? undefined : json['iana_name'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function ValueTimezoneInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'iana_name': value['iana_name'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/VehicleCanNotSetVehicleReasonEnum.d.ts b/dist/models/VehicleCanNotSetVehicleReasonEnum.d.ts new file mode 100644 index 0000000..91c1ed2 --- /dev/null +++ b/dist/models/VehicleCanNotSetVehicleReasonEnum.d.ts @@ -0,0 +1,27 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const VehicleCanNotSetVehicleReasonEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly INVALID_ORDER_STATE: "INVALID_ORDER_STATE"; + readonly VEHICLE_NOT_REQUIRED: "VEHICLE_NOT_REQUIRED"; + readonly ORDER_DOES_NOT_BELONG_TO_COMPANY: "ORDER_DOES_NOT_BELONG_TO_COMPANY"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type VehicleCanNotSetVehicleReasonEnum = typeof VehicleCanNotSetVehicleReasonEnum[keyof typeof VehicleCanNotSetVehicleReasonEnum]; +export declare function instanceOfVehicleCanNotSetVehicleReasonEnum(value: any): boolean; +export declare function VehicleCanNotSetVehicleReasonEnumFromJSON(json: any): VehicleCanNotSetVehicleReasonEnum; +export declare function VehicleCanNotSetVehicleReasonEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): VehicleCanNotSetVehicleReasonEnum; +export declare function VehicleCanNotSetVehicleReasonEnumToJSON(value?: VehicleCanNotSetVehicleReasonEnum | null): any; diff --git a/dist/models/VehicleCanNotSetVehicleReasonEnum.js b/dist/models/VehicleCanNotSetVehicleReasonEnum.js new file mode 100644 index 0000000..f882c0e --- /dev/null +++ b/dist/models/VehicleCanNotSetVehicleReasonEnum.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VehicleCanNotSetVehicleReasonEnum = void 0; +exports.instanceOfVehicleCanNotSetVehicleReasonEnum = instanceOfVehicleCanNotSetVehicleReasonEnum; +exports.VehicleCanNotSetVehicleReasonEnumFromJSON = VehicleCanNotSetVehicleReasonEnumFromJSON; +exports.VehicleCanNotSetVehicleReasonEnumFromJSONTyped = VehicleCanNotSetVehicleReasonEnumFromJSONTyped; +exports.VehicleCanNotSetVehicleReasonEnumToJSON = VehicleCanNotSetVehicleReasonEnumToJSON; +/** + * + * @export + */ +exports.VehicleCanNotSetVehicleReasonEnum = { + UNSPECIFIED: 'UNSPECIFIED', + INVALID_ORDER_STATE: 'INVALID_ORDER_STATE', + VEHICLE_NOT_REQUIRED: 'VEHICLE_NOT_REQUIRED', + ORDER_DOES_NOT_BELONG_TO_COMPANY: 'ORDER_DOES_NOT_BELONG_TO_COMPANY', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfVehicleCanNotSetVehicleReasonEnum(value) { + for (const key in exports.VehicleCanNotSetVehicleReasonEnum) { + if (Object.prototype.hasOwnProperty.call(exports.VehicleCanNotSetVehicleReasonEnum, key)) { + if (exports.VehicleCanNotSetVehicleReasonEnum[key] === value) { + return true; + } + } + } + return false; +} +function VehicleCanNotSetVehicleReasonEnumFromJSON(json) { + return VehicleCanNotSetVehicleReasonEnumFromJSONTyped(json, false); +} +function VehicleCanNotSetVehicleReasonEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function VehicleCanNotSetVehicleReasonEnumToJSON(value) { + return value; +} diff --git a/dist/models/WarehouseAddress.d.ts b/dist/models/WarehouseAddress.d.ts new file mode 100644 index 0000000..39231e5 --- /dev/null +++ b/dist/models/WarehouseAddress.d.ts @@ -0,0 +1,68 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseAddressCoordinates } from './WarehouseAddressCoordinates'; +/** + * Информация об адресе склада продавца. + * @export + * @interface WarehouseAddress + */ +export interface WarehouseAddress { + /** + * Адрес. + * @type {string} + * @memberof WarehouseAddress + */ + address?: string; + /** + * Город. + * @type {string} + * @memberof WarehouseAddress + */ + city?: string; + /** + * + * @type {WarehouseAddressCoordinates} + * @memberof WarehouseAddress + */ + coordinates?: WarehouseAddressCoordinates; + /** + * Код страны в формате ISO 2. + * @type {string} + * @memberof WarehouseAddress + */ + country_code?: string; + /** + * Идентификатор кластера размещения. + * @type {number} + * @memberof WarehouseAddress + */ + macrolocal_cluster_id?: number; + /** + * Регион. + * @type {string} + * @memberof WarehouseAddress + */ + region?: string; + /** + * Часовой пояс. + * @type {string} + * @memberof WarehouseAddress + */ + timezone?: string; +} +/** + * Check if a given object implements the WarehouseAddress interface. + */ +export declare function instanceOfWarehouseAddress(value: object): value is WarehouseAddress; +export declare function WarehouseAddressFromJSON(json: any): WarehouseAddress; +export declare function WarehouseAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseAddress; +export declare function WarehouseAddressToJSON(value?: WarehouseAddress | null): any; diff --git a/dist/models/WarehouseAddress.js b/dist/models/WarehouseAddress.js new file mode 100644 index 0000000..4161be4 --- /dev/null +++ b/dist/models/WarehouseAddress.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseAddress = instanceOfWarehouseAddress; +exports.WarehouseAddressFromJSON = WarehouseAddressFromJSON; +exports.WarehouseAddressFromJSONTyped = WarehouseAddressFromJSONTyped; +exports.WarehouseAddressToJSON = WarehouseAddressToJSON; +const WarehouseAddressCoordinates_1 = require("./WarehouseAddressCoordinates"); +/** + * Check if a given object implements the WarehouseAddress interface. + */ +function instanceOfWarehouseAddress(value) { + return true; +} +function WarehouseAddressFromJSON(json) { + return WarehouseAddressFromJSONTyped(json, false); +} +function WarehouseAddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'city': json['city'] == null ? undefined : json['city'], + 'coordinates': json['coordinates'] == null ? undefined : (0, WarehouseAddressCoordinates_1.WarehouseAddressCoordinatesFromJSON)(json['coordinates']), + 'country_code': json['country_code'] == null ? undefined : json['country_code'], + 'macrolocal_cluster_id': json['macrolocal_cluster_id'] == null ? undefined : json['macrolocal_cluster_id'], + 'region': json['region'] == null ? undefined : json['region'], + 'timezone': json['timezone'] == null ? undefined : json['timezone'], + }; +} +function WarehouseAddressToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'city': value['city'], + 'coordinates': (0, WarehouseAddressCoordinates_1.WarehouseAddressCoordinatesToJSON)(value['coordinates']), + 'country_code': value['country_code'], + 'macrolocal_cluster_id': value['macrolocal_cluster_id'], + 'region': value['region'], + 'timezone': value['timezone'], + }; +} diff --git a/dist/models/WarehouseAddressCoordinates.d.ts b/dist/models/WarehouseAddressCoordinates.d.ts new file mode 100644 index 0000000..a34d257 --- /dev/null +++ b/dist/models/WarehouseAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты. + * @export + * @interface WarehouseAddressCoordinates + */ +export interface WarehouseAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof WarehouseAddressCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof WarehouseAddressCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the WarehouseAddressCoordinates interface. + */ +export declare function instanceOfWarehouseAddressCoordinates(value: object): value is WarehouseAddressCoordinates; +export declare function WarehouseAddressCoordinatesFromJSON(json: any): WarehouseAddressCoordinates; +export declare function WarehouseAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseAddressCoordinates; +export declare function WarehouseAddressCoordinatesToJSON(value?: WarehouseAddressCoordinates | null): any; diff --git a/dist/models/WarehouseAddressCoordinates.js b/dist/models/WarehouseAddressCoordinates.js new file mode 100644 index 0000000..73f6bb8 --- /dev/null +++ b/dist/models/WarehouseAddressCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseAddressCoordinates = instanceOfWarehouseAddressCoordinates; +exports.WarehouseAddressCoordinatesFromJSON = WarehouseAddressCoordinatesFromJSON; +exports.WarehouseAddressCoordinatesFromJSONTyped = WarehouseAddressCoordinatesFromJSONTyped; +exports.WarehouseAddressCoordinatesToJSON = WarehouseAddressCoordinatesToJSON; +/** + * Check if a given object implements the WarehouseAddressCoordinates interface. + */ +function instanceOfWarehouseAddressCoordinates(value) { + return true; +} +function WarehouseAddressCoordinatesFromJSON(json) { + return WarehouseAddressCoordinatesFromJSONTyped(json, false); +} +function WarehouseAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function WarehouseAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/WarehouseAddressInfo.d.ts b/dist/models/WarehouseAddressInfo.d.ts new file mode 100644 index 0000000..63884bc --- /dev/null +++ b/dist/models/WarehouseAddressInfo.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Информация о расположении склада. + * @export + * @interface WarehouseAddressInfo + */ +export interface WarehouseAddressInfo { + /** + * Адрес склада. + * @type {string} + * @memberof WarehouseAddressInfo + */ + address?: string; + /** + * Широта. + * @type {number} + * @memberof WarehouseAddressInfo + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof WarehouseAddressInfo + */ + longitude?: number; + /** + * Часовой пояс. + * @type {string} + * @memberof WarehouseAddressInfo + */ + utc?: string; +} +/** + * Check if a given object implements the WarehouseAddressInfo interface. + */ +export declare function instanceOfWarehouseAddressInfo(value: object): value is WarehouseAddressInfo; +export declare function WarehouseAddressInfoFromJSON(json: any): WarehouseAddressInfo; +export declare function WarehouseAddressInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseAddressInfo; +export declare function WarehouseAddressInfoToJSON(value?: WarehouseAddressInfo | null): any; diff --git a/dist/models/WarehouseAddressInfo.js b/dist/models/WarehouseAddressInfo.js new file mode 100644 index 0000000..d1c08b8 --- /dev/null +++ b/dist/models/WarehouseAddressInfo.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseAddressInfo = instanceOfWarehouseAddressInfo; +exports.WarehouseAddressInfoFromJSON = WarehouseAddressInfoFromJSON; +exports.WarehouseAddressInfoFromJSONTyped = WarehouseAddressInfoFromJSONTyped; +exports.WarehouseAddressInfoToJSON = WarehouseAddressInfoToJSON; +/** + * Check if a given object implements the WarehouseAddressInfo interface. + */ +function instanceOfWarehouseAddressInfo(value) { + return true; +} +function WarehouseAddressInfoFromJSON(json) { + return WarehouseAddressInfoFromJSONTyped(json, false); +} +function WarehouseAddressInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + 'utc': json['utc'] == null ? undefined : json['utc'], + }; +} +function WarehouseAddressInfoToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'latitude': value['latitude'], + 'longitude': value['longitude'], + 'utc': value['utc'], + }; +} diff --git a/dist/models/WarehouseAvailabilityStatus.d.ts b/dist/models/WarehouseAvailabilityStatus.d.ts new file mode 100644 index 0000000..62f2a8d --- /dev/null +++ b/dist/models/WarehouseAvailabilityStatus.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AvailabilityStatusInvalidReasonEnum } from './AvailabilityStatusInvalidReasonEnum'; +import type { AvailabilityStatusStateEnum } from './AvailabilityStatusStateEnum'; +/** + * Информация о доступности склада. + * @export + * @interface WarehouseAvailabilityStatus + */ +export interface WarehouseAvailabilityStatus { + /** + * + * @type {AvailabilityStatusInvalidReasonEnum} + * @memberof WarehouseAvailabilityStatus + */ + invalid_reason?: AvailabilityStatusInvalidReasonEnum; + /** + * + * @type {AvailabilityStatusStateEnum} + * @memberof WarehouseAvailabilityStatus + */ + state?: AvailabilityStatusStateEnum; +} +/** + * Check if a given object implements the WarehouseAvailabilityStatus interface. + */ +export declare function instanceOfWarehouseAvailabilityStatus(value: object): value is WarehouseAvailabilityStatus; +export declare function WarehouseAvailabilityStatusFromJSON(json: any): WarehouseAvailabilityStatus; +export declare function WarehouseAvailabilityStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseAvailabilityStatus; +export declare function WarehouseAvailabilityStatusToJSON(value?: WarehouseAvailabilityStatus | null): any; diff --git a/dist/models/WarehouseAvailabilityStatus.js b/dist/models/WarehouseAvailabilityStatus.js new file mode 100644 index 0000000..9e88eb0 --- /dev/null +++ b/dist/models/WarehouseAvailabilityStatus.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseAvailabilityStatus = instanceOfWarehouseAvailabilityStatus; +exports.WarehouseAvailabilityStatusFromJSON = WarehouseAvailabilityStatusFromJSON; +exports.WarehouseAvailabilityStatusFromJSONTyped = WarehouseAvailabilityStatusFromJSONTyped; +exports.WarehouseAvailabilityStatusToJSON = WarehouseAvailabilityStatusToJSON; +const AvailabilityStatusInvalidReasonEnum_1 = require("./AvailabilityStatusInvalidReasonEnum"); +const AvailabilityStatusStateEnum_1 = require("./AvailabilityStatusStateEnum"); +/** + * Check if a given object implements the WarehouseAvailabilityStatus interface. + */ +function instanceOfWarehouseAvailabilityStatus(value) { + return true; +} +function WarehouseAvailabilityStatusFromJSON(json) { + return WarehouseAvailabilityStatusFromJSONTyped(json, false); +} +function WarehouseAvailabilityStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'invalid_reason': json['invalid_reason'] == null ? undefined : (0, AvailabilityStatusInvalidReasonEnum_1.AvailabilityStatusInvalidReasonEnumFromJSON)(json['invalid_reason']), + 'state': json['state'] == null ? undefined : (0, AvailabilityStatusStateEnum_1.AvailabilityStatusStateEnumFromJSON)(json['state']), + }; +} +function WarehouseAvailabilityStatusToJSON(value) { + if (value == null) { + return value; + } + return { + 'invalid_reason': (0, AvailabilityStatusInvalidReasonEnum_1.AvailabilityStatusInvalidReasonEnumToJSON)(value['invalid_reason']), + 'state': (0, AvailabilityStatusStateEnum_1.AvailabilityStatusStateEnumToJSON)(value['state']), + }; +} diff --git a/dist/models/WarehouseCarriageLabelTypeEnum.d.ts b/dist/models/WarehouseCarriageLabelTypeEnum.d.ts new file mode 100644 index 0000000..ef0bd01 --- /dev/null +++ b/dist/models/WarehouseCarriageLabelTypeEnum.d.ts @@ -0,0 +1,29 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип этикетки: + * - `UNSPECIFIED` — неизвестный тип; + * - `BIG` — большая этикетка; + * - `SMALL` — маленькая этикетка. + * + * @export + */ +export declare const WarehouseCarriageLabelTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly BIG: "BIG"; + readonly SMALL: "SMALL"; +}; +export type WarehouseCarriageLabelTypeEnum = typeof WarehouseCarriageLabelTypeEnum[keyof typeof WarehouseCarriageLabelTypeEnum]; +export declare function instanceOfWarehouseCarriageLabelTypeEnum(value: any): boolean; +export declare function WarehouseCarriageLabelTypeEnumFromJSON(json: any): WarehouseCarriageLabelTypeEnum; +export declare function WarehouseCarriageLabelTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseCarriageLabelTypeEnum; +export declare function WarehouseCarriageLabelTypeEnumToJSON(value?: WarehouseCarriageLabelTypeEnum | null): any; diff --git a/dist/models/WarehouseCarriageLabelTypeEnum.js b/dist/models/WarehouseCarriageLabelTypeEnum.js new file mode 100644 index 0000000..1dfc813 --- /dev/null +++ b/dist/models/WarehouseCarriageLabelTypeEnum.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WarehouseCarriageLabelTypeEnum = void 0; +exports.instanceOfWarehouseCarriageLabelTypeEnum = instanceOfWarehouseCarriageLabelTypeEnum; +exports.WarehouseCarriageLabelTypeEnumFromJSON = WarehouseCarriageLabelTypeEnumFromJSON; +exports.WarehouseCarriageLabelTypeEnumFromJSONTyped = WarehouseCarriageLabelTypeEnumFromJSONTyped; +exports.WarehouseCarriageLabelTypeEnumToJSON = WarehouseCarriageLabelTypeEnumToJSON; +/** + * Тип этикетки: + * - `UNSPECIFIED` — неизвестный тип; + * - `BIG` — большая этикетка; + * - `SMALL` — маленькая этикетка. + * + * @export + */ +exports.WarehouseCarriageLabelTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + BIG: 'BIG', + SMALL: 'SMALL' +}; +function instanceOfWarehouseCarriageLabelTypeEnum(value) { + for (const key in exports.WarehouseCarriageLabelTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.WarehouseCarriageLabelTypeEnum, key)) { + if (exports.WarehouseCarriageLabelTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function WarehouseCarriageLabelTypeEnumFromJSON(json) { + return WarehouseCarriageLabelTypeEnumFromJSONTyped(json, false); +} +function WarehouseCarriageLabelTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WarehouseCarriageLabelTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/WarehouseContacts.d.ts b/dist/models/WarehouseContacts.d.ts new file mode 100644 index 0000000..68f32ae --- /dev/null +++ b/dist/models/WarehouseContacts.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Контакты. + * @export + * @interface WarehouseContacts + */ +export interface WarehouseContacts { + /** + * Номера телефонов. + * @type {Array} + * @memberof WarehouseContacts + */ + phone_numbers?: Array; +} +/** + * Check if a given object implements the WarehouseContacts interface. + */ +export declare function instanceOfWarehouseContacts(value: object): value is WarehouseContacts; +export declare function WarehouseContactsFromJSON(json: any): WarehouseContacts; +export declare function WarehouseContactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseContacts; +export declare function WarehouseContactsToJSON(value?: WarehouseContacts | null): any; diff --git a/dist/models/WarehouseContacts.js b/dist/models/WarehouseContacts.js new file mode 100644 index 0000000..eb4dd12 --- /dev/null +++ b/dist/models/WarehouseContacts.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseContacts = instanceOfWarehouseContacts; +exports.WarehouseContactsFromJSON = WarehouseContactsFromJSON; +exports.WarehouseContactsFromJSONTyped = WarehouseContactsFromJSONTyped; +exports.WarehouseContactsToJSON = WarehouseContactsToJSON; +/** + * Check if a given object implements the WarehouseContacts interface. + */ +function instanceOfWarehouseContacts(value) { + return true; +} +function WarehouseContactsFromJSON(json) { + return WarehouseContactsFromJSONTyped(json, false); +} +function WarehouseContactsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'phone_numbers': json['phone_numbers'] == null ? undefined : json['phone_numbers'], + }; +} +function WarehouseContactsToJSON(value) { + if (value == null) { + return value; + } + return { + 'phone_numbers': value['phone_numbers'], + }; +} diff --git a/dist/models/WarehouseDeliveryMethodListRequest.d.ts b/dist/models/WarehouseDeliveryMethodListRequest.d.ts new file mode 100644 index 0000000..7de51c7 --- /dev/null +++ b/dist/models/WarehouseDeliveryMethodListRequest.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodListRequestFilter } from './DeliveryMethodListRequestFilter'; +/** + * + * @export + * @interface WarehouseDeliveryMethodListRequest + */ +export interface WarehouseDeliveryMethodListRequest { + /** + * + * @type {DeliveryMethodListRequestFilter} + * @memberof WarehouseDeliveryMethodListRequest + */ + filter?: DeliveryMethodListRequestFilter; + /** + * Количество элементов в ответе. Максимум — 50, минимум — 1. + * @type {number} + * @memberof WarehouseDeliveryMethodListRequest + */ + limit: number; + /** + * Количество элементов, которое будет пропущено в ответе. Например, если `offset = 10`, то ответ начнётся с 11-го найденного элемента. + * @type {number} + * @memberof WarehouseDeliveryMethodListRequest + */ + offset?: number; +} +/** + * Check if a given object implements the WarehouseDeliveryMethodListRequest interface. + */ +export declare function instanceOfWarehouseDeliveryMethodListRequest(value: object): value is WarehouseDeliveryMethodListRequest; +export declare function WarehouseDeliveryMethodListRequestFromJSON(json: any): WarehouseDeliveryMethodListRequest; +export declare function WarehouseDeliveryMethodListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseDeliveryMethodListRequest; +export declare function WarehouseDeliveryMethodListRequestToJSON(value?: WarehouseDeliveryMethodListRequest | null): any; diff --git a/dist/models/WarehouseDeliveryMethodListRequest.js b/dist/models/WarehouseDeliveryMethodListRequest.js new file mode 100644 index 0000000..b760e54 --- /dev/null +++ b/dist/models/WarehouseDeliveryMethodListRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseDeliveryMethodListRequest = instanceOfWarehouseDeliveryMethodListRequest; +exports.WarehouseDeliveryMethodListRequestFromJSON = WarehouseDeliveryMethodListRequestFromJSON; +exports.WarehouseDeliveryMethodListRequestFromJSONTyped = WarehouseDeliveryMethodListRequestFromJSONTyped; +exports.WarehouseDeliveryMethodListRequestToJSON = WarehouseDeliveryMethodListRequestToJSON; +const DeliveryMethodListRequestFilter_1 = require("./DeliveryMethodListRequestFilter"); +/** + * Check if a given object implements the WarehouseDeliveryMethodListRequest interface. + */ +function instanceOfWarehouseDeliveryMethodListRequest(value) { + if (!('limit' in value) || value['limit'] === undefined) + return false; + return true; +} +function WarehouseDeliveryMethodListRequestFromJSON(json) { + return WarehouseDeliveryMethodListRequestFromJSONTyped(json, false); +} +function WarehouseDeliveryMethodListRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'filter': json['filter'] == null ? undefined : (0, DeliveryMethodListRequestFilter_1.DeliveryMethodListRequestFilterFromJSON)(json['filter']), + 'limit': json['limit'], + 'offset': json['offset'] == null ? undefined : json['offset'], + }; +} +function WarehouseDeliveryMethodListRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'filter': (0, DeliveryMethodListRequestFilter_1.DeliveryMethodListRequestFilterToJSON)(value['filter']), + 'limit': value['limit'], + 'offset': value['offset'], + }; +} diff --git a/dist/models/WarehouseDeliveryMethodListResponse.d.ts b/dist/models/WarehouseDeliveryMethodListResponse.d.ts new file mode 100644 index 0000000..d0c028e --- /dev/null +++ b/dist/models/WarehouseDeliveryMethodListResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeliveryMethodListResponseDeliveryMethod } from './DeliveryMethodListResponseDeliveryMethod'; +/** + * + * @export + * @interface WarehouseDeliveryMethodListResponse + */ +export interface WarehouseDeliveryMethodListResponse { + /** + * Признак, что в запросе вернулась только часть методов доставки: + * - `true` — сделайте повторный запрос с новым параметром `offset` для получения остальных методов; + * - `false` — ответ содержит все методы доставки по запросу. + * + * @type {boolean} + * @memberof WarehouseDeliveryMethodListResponse + */ + has_next?: boolean; + /** + * Результат запроса. + * @type {Array} + * @memberof WarehouseDeliveryMethodListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the WarehouseDeliveryMethodListResponse interface. + */ +export declare function instanceOfWarehouseDeliveryMethodListResponse(value: object): value is WarehouseDeliveryMethodListResponse; +export declare function WarehouseDeliveryMethodListResponseFromJSON(json: any): WarehouseDeliveryMethodListResponse; +export declare function WarehouseDeliveryMethodListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseDeliveryMethodListResponse; +export declare function WarehouseDeliveryMethodListResponseToJSON(value?: WarehouseDeliveryMethodListResponse | null): any; diff --git a/dist/models/WarehouseDeliveryMethodListResponse.js b/dist/models/WarehouseDeliveryMethodListResponse.js new file mode 100644 index 0000000..8c3fb2d --- /dev/null +++ b/dist/models/WarehouseDeliveryMethodListResponse.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseDeliveryMethodListResponse = instanceOfWarehouseDeliveryMethodListResponse; +exports.WarehouseDeliveryMethodListResponseFromJSON = WarehouseDeliveryMethodListResponseFromJSON; +exports.WarehouseDeliveryMethodListResponseFromJSONTyped = WarehouseDeliveryMethodListResponseFromJSONTyped; +exports.WarehouseDeliveryMethodListResponseToJSON = WarehouseDeliveryMethodListResponseToJSON; +const DeliveryMethodListResponseDeliveryMethod_1 = require("./DeliveryMethodListResponseDeliveryMethod"); +/** + * Check if a given object implements the WarehouseDeliveryMethodListResponse interface. + */ +function instanceOfWarehouseDeliveryMethodListResponse(value) { + return true; +} +function WarehouseDeliveryMethodListResponseFromJSON(json) { + return WarehouseDeliveryMethodListResponseFromJSONTyped(json, false); +} +function WarehouseDeliveryMethodListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_next': json['has_next'] == null ? undefined : json['has_next'], + 'result': json['result'] == null ? undefined : (json['result'].map(DeliveryMethodListResponseDeliveryMethod_1.DeliveryMethodListResponseDeliveryMethodFromJSON)), + }; +} +function WarehouseDeliveryMethodListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_next': value['has_next'], + 'result': value['result'] == null ? undefined : (value['result'].map(DeliveryMethodListResponseDeliveryMethod_1.DeliveryMethodListResponseDeliveryMethodToJSON)), + }; +} diff --git a/dist/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.d.ts b/dist/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.d.ts new file mode 100644 index 0000000..40f546d --- /dev/null +++ b/dist/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.d.ts @@ -0,0 +1,55 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Расходы на доставку, которые вы готовы оплатить. + * @export + * @interface WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ +export interface WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts { + /** + * Минимальный вес в килограммах. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + min_weight?: number; + /** + * Максимальный вес в килограммах. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + max_weight?: number; + /** + * Минимальная стоимость заказа в копейках. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + min_order_price?: number; + /** + * Максимальная стоимость заказа в копейках. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + max_order_price?: number; + /** + * Цена в копейках. + * @type {number} + * @memberof WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts + */ + seller_payment?: number; +} +/** + * Check if a given object implements the WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts interface. + */ +export declare function instanceOfWarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts(value: object): value is WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; +export declare function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON(json: any): WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; +export declare function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; +export declare function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON(value?: WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts | null): any; diff --git a/dist/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.js b/dist/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.js new file mode 100644 index 0000000..7861685 --- /dev/null +++ b/dist/models/WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts = instanceOfWarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts; +exports.WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON = WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON; +exports.WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSONTyped = WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSONTyped; +exports.WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON = WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON; +/** + * Check if a given object implements the WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts interface. + */ +function instanceOfWarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts(value) { + return true; +} +function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSON(json) { + return WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSONTyped(json, false); +} +function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'min_weight': json['min_weight'] == null ? undefined : json['min_weight'], + 'max_weight': json['max_weight'] == null ? undefined : json['max_weight'], + 'min_order_price': json['min_order_price'] == null ? undefined : json['min_order_price'], + 'max_order_price': json['max_order_price'] == null ? undefined : json['max_order_price'], + 'seller_payment': json['seller_payment'] == null ? undefined : json['seller_payment'], + }; +} +function WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCostsToJSON(value) { + if (value == null) { + return value; + } + return { + 'min_weight': value['min_weight'], + 'max_weight': value['max_weight'], + 'min_order_price': value['min_order_price'], + 'max_order_price': value['max_order_price'], + 'seller_payment': value['seller_payment'], + }; +} diff --git a/dist/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.d.ts b/dist/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.d.ts new file mode 100644 index 0000000..3681d69 --- /dev/null +++ b/dist/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V1WarehouseFBSReturnMileInfoResponseReturnPoint } from './V1WarehouseFBSReturnMileInfoResponseReturnPoint'; +/** + * + * @export + * @interface WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings + */ +export interface WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings { + /** + * Признак, что необходимо установить пункт возврата. + * @type {boolean} + * @memberof WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings + */ + is_return_mile_required?: boolean; + /** + * + * @type {V1WarehouseFBSReturnMileInfoResponseReturnPoint} + * @memberof WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings + */ + return_point?: V1WarehouseFBSReturnMileInfoResponseReturnPoint; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings interface. + */ +export declare function instanceOfWarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings(value: object): value is WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings; +export declare function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON(json: any): WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings; +export declare function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings; +export declare function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON(value?: WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings | null): any; diff --git a/dist/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.js b/dist/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.js new file mode 100644 index 0000000..a6fdf27 --- /dev/null +++ b/dist/models/WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings = instanceOfWarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings; +exports.WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON = WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON; +exports.WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSONTyped = WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSONTyped; +exports.WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON = WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON; +const V1WarehouseFBSReturnMileInfoResponseReturnPoint_1 = require("./V1WarehouseFBSReturnMileInfoResponseReturnPoint"); +/** + * Check if a given object implements the WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings interface. + */ +function instanceOfWarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings(value) { + return true; +} +function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSON(json) { + return WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSONTyped(json, false); +} +function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'is_return_mile_required': json['is_return_mile_required'] == null ? undefined : json['is_return_mile_required'], + 'return_point': json['return_point'] == null ? undefined : (0, V1WarehouseFBSReturnMileInfoResponseReturnPoint_1.V1WarehouseFBSReturnMileInfoResponseReturnPointFromJSON)(json['return_point']), + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettingsToJSON(value) { + if (value == null) { + return value; + } + return { + 'is_return_mile_required': value['is_return_mile_required'], + 'return_point': (0, V1WarehouseFBSReturnMileInfoResponseReturnPoint_1.V1WarehouseFBSReturnMileInfoResponseReturnPointToJSON)(value['return_point']), + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.d.ts b/dist/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.d.ts new file mode 100644 index 0000000..d3b7b54 --- /dev/null +++ b/dist/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.d.ts @@ -0,0 +1,67 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ +export interface WarehouseFbsPickUpHistoryListResponseHistoryEntity { + /** + * Дата отгрузки в формате `YYYY-MM-DD`. + * @type {string} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + planned_date?: string; + /** + * Статус отгрузки: + * - `courier_called` — продавец вызвал курьера самостоятельно; + * - `courier_cancelled` — продавец отменил курьера; + * - `courier_assigned` — Ozon назначил курьера автоматически; + * - `courier_not_assigned` — курьер не назначен. + * + * @type {string} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + status?: string; + /** + * Дата и время обновления отгрузки. + * @type {string} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + warehouse_name?: string; + /** + * `true`, если отгрузка запланирована. + * + * @type {boolean} + * @memberof WarehouseFbsPickUpHistoryListResponseHistoryEntity + */ + was_planned?: boolean; +} +/** + * Check if a given object implements the WarehouseFbsPickUpHistoryListResponseHistoryEntity interface. + */ +export declare function instanceOfWarehouseFbsPickUpHistoryListResponseHistoryEntity(value: object): value is WarehouseFbsPickUpHistoryListResponseHistoryEntity; +export declare function WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON(json: any): WarehouseFbsPickUpHistoryListResponseHistoryEntity; +export declare function WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFbsPickUpHistoryListResponseHistoryEntity; +export declare function WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON(value?: WarehouseFbsPickUpHistoryListResponseHistoryEntity | null): any; diff --git a/dist/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.js b/dist/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.js new file mode 100644 index 0000000..2095184 --- /dev/null +++ b/dist/models/WarehouseFbsPickUpHistoryListResponseHistoryEntity.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseFbsPickUpHistoryListResponseHistoryEntity = instanceOfWarehouseFbsPickUpHistoryListResponseHistoryEntity; +exports.WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON = WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON; +exports.WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSONTyped = WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSONTyped; +exports.WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON = WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON; +/** + * Check if a given object implements the WarehouseFbsPickUpHistoryListResponseHistoryEntity interface. + */ +function instanceOfWarehouseFbsPickUpHistoryListResponseHistoryEntity(value) { + return true; +} +function WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSON(json) { + return WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSONTyped(json, false); +} +function WarehouseFbsPickUpHistoryListResponseHistoryEntityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'planned_date': json['planned_date'] == null ? undefined : json['planned_date'], + 'status': json['status'] == null ? undefined : json['status'], + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + 'was_planned': json['was_planned'] == null ? undefined : json['was_planned'], + }; +} +function WarehouseFbsPickUpHistoryListResponseHistoryEntityToJSON(value) { + if (value == null) { + return value; + } + return { + 'planned_date': value['planned_date'], + 'status': value['status'], + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + 'was_planned': value['was_planned'], + }; +} diff --git a/dist/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.d.ts b/dist/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.d.ts new file mode 100644 index 0000000..662f526 --- /dev/null +++ b/dist/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.d.ts @@ -0,0 +1,64 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ +export interface WarehouseFbsPickUpPlanningListResponseResultWarehouse { + /** + * `true`, если можно изменить возможность планирования вызова курьера. + * + * @type {boolean} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + can_modify_pickup_plan?: boolean; + /** + * `true`, если есть отправления для отгрузки. + * + * @type {boolean} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + has_postings_to_be_planned?: boolean; + /** + * `true`, если запланирована отгрузка курьером. + * + * @type {boolean} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + is_pickup_planned?: boolean; + /** + * Дата и время окончания планирования выезда курьера. + * @type {string} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + last_pickup_plan_date_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + warehouse_id?: number; + /** + * Название склада. + * @type {string} + * @memberof WarehouseFbsPickUpPlanningListResponseResultWarehouse + */ + warehouse_name?: string; +} +/** + * Check if a given object implements the WarehouseFbsPickUpPlanningListResponseResultWarehouse interface. + */ +export declare function instanceOfWarehouseFbsPickUpPlanningListResponseResultWarehouse(value: object): value is WarehouseFbsPickUpPlanningListResponseResultWarehouse; +export declare function WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON(json: any): WarehouseFbsPickUpPlanningListResponseResultWarehouse; +export declare function WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFbsPickUpPlanningListResponseResultWarehouse; +export declare function WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON(value?: WarehouseFbsPickUpPlanningListResponseResultWarehouse | null): any; diff --git a/dist/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.js b/dist/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.js new file mode 100644 index 0000000..b63397a --- /dev/null +++ b/dist/models/WarehouseFbsPickUpPlanningListResponseResultWarehouse.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseFbsPickUpPlanningListResponseResultWarehouse = instanceOfWarehouseFbsPickUpPlanningListResponseResultWarehouse; +exports.WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON = WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON; +exports.WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSONTyped = WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSONTyped; +exports.WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON = WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON; +/** + * Check if a given object implements the WarehouseFbsPickUpPlanningListResponseResultWarehouse interface. + */ +function instanceOfWarehouseFbsPickUpPlanningListResponseResultWarehouse(value) { + return true; +} +function WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSON(json) { + return WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSONTyped(json, false); +} +function WarehouseFbsPickUpPlanningListResponseResultWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'can_modify_pickup_plan': json['can_modify_pickup_plan'] == null ? undefined : json['can_modify_pickup_plan'], + 'has_postings_to_be_planned': json['has_postings_to_be_planned'] == null ? undefined : json['has_postings_to_be_planned'], + 'is_pickup_planned': json['is_pickup_planned'] == null ? undefined : json['is_pickup_planned'], + 'last_pickup_plan_date_at': json['last_pickup_plan_date_at'] == null ? undefined : json['last_pickup_plan_date_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_name': json['warehouse_name'] == null ? undefined : json['warehouse_name'], + }; +} +function WarehouseFbsPickUpPlanningListResponseResultWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'can_modify_pickup_plan': value['can_modify_pickup_plan'], + 'has_postings_to_be_planned': value['has_postings_to_be_planned'], + 'is_pickup_planned': value['is_pickup_planned'], + 'last_pickup_plan_date_at': value['last_pickup_plan_date_at'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_name': value['warehouse_name'], + }; +} diff --git a/dist/models/WarehouseFirstMile.d.ts b/dist/models/WarehouseFirstMile.d.ts new file mode 100644 index 0000000..25dc728 --- /dev/null +++ b/dist/models/WarehouseFirstMile.d.ts @@ -0,0 +1,62 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FirstMileTypeEnum } from './FirstMileTypeEnum'; +/** + * Первая миля. + * @export + * @interface WarehouseFirstMile + */ +export interface WarehouseFirstMile { + /** + * Идентификатор drop-off пункта. + * @type {string} + * @memberof WarehouseFirstMile + */ + dropoff_point_id?: string; + /** + * Признак, что настройки склада обновляются. + * @type {boolean} + * @memberof WarehouseFirstMile + */ + first_mile_is_changing?: boolean; + /** + * Время начала таймслота. + * @type {string} + * @memberof WarehouseFirstMile + */ + timeslot_from?: string; + /** + * Идентификатор таймслота. + * @type {number} + * @memberof WarehouseFirstMile + */ + timeslot_id?: number; + /** + * Время окончания таймслота. + * @type {string} + * @memberof WarehouseFirstMile + */ + timeslot_to?: string; + /** + * + * @type {FirstMileTypeEnum} + * @memberof WarehouseFirstMile + */ + type?: FirstMileTypeEnum; +} +/** + * Check if a given object implements the WarehouseFirstMile interface. + */ +export declare function instanceOfWarehouseFirstMile(value: object): value is WarehouseFirstMile; +export declare function WarehouseFirstMileFromJSON(json: any): WarehouseFirstMile; +export declare function WarehouseFirstMileFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFirstMile; +export declare function WarehouseFirstMileToJSON(value?: WarehouseFirstMile | null): any; diff --git a/dist/models/WarehouseFirstMile.js b/dist/models/WarehouseFirstMile.js new file mode 100644 index 0000000..83bf938 --- /dev/null +++ b/dist/models/WarehouseFirstMile.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseFirstMile = instanceOfWarehouseFirstMile; +exports.WarehouseFirstMileFromJSON = WarehouseFirstMileFromJSON; +exports.WarehouseFirstMileFromJSONTyped = WarehouseFirstMileFromJSONTyped; +exports.WarehouseFirstMileToJSON = WarehouseFirstMileToJSON; +const FirstMileTypeEnum_1 = require("./FirstMileTypeEnum"); +/** + * Check if a given object implements the WarehouseFirstMile interface. + */ +function instanceOfWarehouseFirstMile(value) { + return true; +} +function WarehouseFirstMileFromJSON(json) { + return WarehouseFirstMileFromJSONTyped(json, false); +} +function WarehouseFirstMileFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'first_mile_is_changing': json['first_mile_is_changing'] == null ? undefined : json['first_mile_is_changing'], + 'timeslot_from': json['timeslot_from'] == null ? undefined : json['timeslot_from'], + 'timeslot_id': json['timeslot_id'] == null ? undefined : json['timeslot_id'], + 'timeslot_to': json['timeslot_to'] == null ? undefined : json['timeslot_to'], + 'type': json['type'] == null ? undefined : (0, FirstMileTypeEnum_1.FirstMileTypeEnumFromJSON)(json['type']), + }; +} +function WarehouseFirstMileToJSON(value) { + if (value == null) { + return value; + } + return { + 'dropoff_point_id': value['dropoff_point_id'], + 'first_mile_is_changing': value['first_mile_is_changing'], + 'timeslot_from': value['timeslot_from'], + 'timeslot_id': value['timeslot_id'], + 'timeslot_to': value['timeslot_to'], + 'type': (0, FirstMileTypeEnum_1.FirstMileTypeEnumToJSON)(value['type']), + }; +} diff --git a/dist/models/WarehouseFirstMileType.d.ts b/dist/models/WarehouseFirstMileType.d.ts new file mode 100644 index 0000000..a2635f6 --- /dev/null +++ b/dist/models/WarehouseFirstMileType.d.ts @@ -0,0 +1,57 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Первая миля FBS. + * @export + * @interface WarehouseFirstMileType + */ +export interface WarehouseFirstMileType { + /** + * Идентификатор DropOff-точки. + * @type {string} + * @memberof WarehouseFirstMileType + */ + dropoff_point_id?: string; + /** + * Идентификатор временного слота для DropOff. + * @type {number} + * @memberof WarehouseFirstMileType + */ + dropoff_timeslot_id?: number; + /** + * Признак, что настройки склада обновляются. + * @type {boolean} + * @memberof WarehouseFirstMileType + */ + first_mile_is_changing?: boolean; + /** + * Тип первой мили — `DropOff` или `Pickup`. + * @type {string} + * @memberof WarehouseFirstMileType + */ + first_mile_type?: WarehouseFirstMileTypeFirstMileTypeEnum; +} +/** + * @export + */ +export declare const WarehouseFirstMileTypeFirstMileTypeEnum: { + readonly DropOff: "DropOff"; + readonly Pickup: "Pickup"; +}; +export type WarehouseFirstMileTypeFirstMileTypeEnum = typeof WarehouseFirstMileTypeFirstMileTypeEnum[keyof typeof WarehouseFirstMileTypeFirstMileTypeEnum]; +/** + * Check if a given object implements the WarehouseFirstMileType interface. + */ +export declare function instanceOfWarehouseFirstMileType(value: object): value is WarehouseFirstMileType; +export declare function WarehouseFirstMileTypeFromJSON(json: any): WarehouseFirstMileType; +export declare function WarehouseFirstMileTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseFirstMileType; +export declare function WarehouseFirstMileTypeToJSON(value?: WarehouseFirstMileType | null): any; diff --git a/dist/models/WarehouseFirstMileType.js b/dist/models/WarehouseFirstMileType.js new file mode 100644 index 0000000..95e0632 --- /dev/null +++ b/dist/models/WarehouseFirstMileType.js @@ -0,0 +1,58 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WarehouseFirstMileTypeFirstMileTypeEnum = void 0; +exports.instanceOfWarehouseFirstMileType = instanceOfWarehouseFirstMileType; +exports.WarehouseFirstMileTypeFromJSON = WarehouseFirstMileTypeFromJSON; +exports.WarehouseFirstMileTypeFromJSONTyped = WarehouseFirstMileTypeFromJSONTyped; +exports.WarehouseFirstMileTypeToJSON = WarehouseFirstMileTypeToJSON; +/** + * @export + */ +exports.WarehouseFirstMileTypeFirstMileTypeEnum = { + DropOff: 'DropOff', + Pickup: 'Pickup' +}; +/** + * Check if a given object implements the WarehouseFirstMileType interface. + */ +function instanceOfWarehouseFirstMileType(value) { + return true; +} +function WarehouseFirstMileTypeFromJSON(json) { + return WarehouseFirstMileTypeFromJSONTyped(json, false); +} +function WarehouseFirstMileTypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dropoff_point_id': json['dropoff_point_id'] == null ? undefined : json['dropoff_point_id'], + 'dropoff_timeslot_id': json['dropoff_timeslot_id'] == null ? undefined : json['dropoff_timeslot_id'], + 'first_mile_is_changing': json['first_mile_is_changing'] == null ? undefined : json['first_mile_is_changing'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : json['first_mile_type'], + }; +} +function WarehouseFirstMileTypeToJSON(value) { + if (value == null) { + return value; + } + return { + 'dropoff_point_id': value['dropoff_point_id'], + 'dropoff_timeslot_id': value['dropoff_timeslot_id'], + 'first_mile_is_changing': value['first_mile_is_changing'], + 'first_mile_type': value['first_mile_type'], + }; +} diff --git a/dist/models/WarehouseInvalidProductsGetResponseValidationResult.d.ts b/dist/models/WarehouseInvalidProductsGetResponseValidationResult.d.ts new file mode 100644 index 0000000..ad49081 --- /dev/null +++ b/dist/models/WarehouseInvalidProductsGetResponseValidationResult.d.ts @@ -0,0 +1,46 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValidationResultItemStateEnum } from './ValidationResultItemStateEnum'; +import type { ValidationResultItem } from './ValidationResultItem'; +import type { ValidationResultValidationError } from './ValidationResultValidationError'; +/** + * + * @export + * @interface WarehouseInvalidProductsGetResponseValidationResult + */ +export interface WarehouseInvalidProductsGetResponseValidationResult { + /** + * + * @type {ValidationResultItem} + * @memberof WarehouseInvalidProductsGetResponseValidationResult + */ + item?: ValidationResultItem; + /** + * + * @type {ValidationResultItemStateEnum} + * @memberof WarehouseInvalidProductsGetResponseValidationResult + */ + state?: ValidationResultItemStateEnum; + /** + * Информация об ошибках. + * @type {Array} + * @memberof WarehouseInvalidProductsGetResponseValidationResult + */ + validation_errors?: Array; +} +/** + * Check if a given object implements the WarehouseInvalidProductsGetResponseValidationResult interface. + */ +export declare function instanceOfWarehouseInvalidProductsGetResponseValidationResult(value: object): value is WarehouseInvalidProductsGetResponseValidationResult; +export declare function WarehouseInvalidProductsGetResponseValidationResultFromJSON(json: any): WarehouseInvalidProductsGetResponseValidationResult; +export declare function WarehouseInvalidProductsGetResponseValidationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseInvalidProductsGetResponseValidationResult; +export declare function WarehouseInvalidProductsGetResponseValidationResultToJSON(value?: WarehouseInvalidProductsGetResponseValidationResult | null): any; diff --git a/dist/models/WarehouseInvalidProductsGetResponseValidationResult.js b/dist/models/WarehouseInvalidProductsGetResponseValidationResult.js new file mode 100644 index 0000000..b7e911f --- /dev/null +++ b/dist/models/WarehouseInvalidProductsGetResponseValidationResult.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseInvalidProductsGetResponseValidationResult = instanceOfWarehouseInvalidProductsGetResponseValidationResult; +exports.WarehouseInvalidProductsGetResponseValidationResultFromJSON = WarehouseInvalidProductsGetResponseValidationResultFromJSON; +exports.WarehouseInvalidProductsGetResponseValidationResultFromJSONTyped = WarehouseInvalidProductsGetResponseValidationResultFromJSONTyped; +exports.WarehouseInvalidProductsGetResponseValidationResultToJSON = WarehouseInvalidProductsGetResponseValidationResultToJSON; +const ValidationResultItemStateEnum_1 = require("./ValidationResultItemStateEnum"); +const ValidationResultItem_1 = require("./ValidationResultItem"); +const ValidationResultValidationError_1 = require("./ValidationResultValidationError"); +/** + * Check if a given object implements the WarehouseInvalidProductsGetResponseValidationResult interface. + */ +function instanceOfWarehouseInvalidProductsGetResponseValidationResult(value) { + return true; +} +function WarehouseInvalidProductsGetResponseValidationResultFromJSON(json) { + return WarehouseInvalidProductsGetResponseValidationResultFromJSONTyped(json, false); +} +function WarehouseInvalidProductsGetResponseValidationResultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'item': json['item'] == null ? undefined : (0, ValidationResultItem_1.ValidationResultItemFromJSON)(json['item']), + 'state': json['state'] == null ? undefined : (0, ValidationResultItemStateEnum_1.ValidationResultItemStateEnumFromJSON)(json['state']), + 'validation_errors': json['validation_errors'] == null ? undefined : (json['validation_errors'].map(ValidationResultValidationError_1.ValidationResultValidationErrorFromJSON)), + }; +} +function WarehouseInvalidProductsGetResponseValidationResultToJSON(value) { + if (value == null) { + return value; + } + return { + 'item': (0, ValidationResultItem_1.ValidationResultItemToJSON)(value['item']), + 'state': (0, ValidationResultItemStateEnum_1.ValidationResultItemStateEnumToJSON)(value['state']), + 'validation_errors': value['validation_errors'] == null ? undefined : (value['validation_errors'].map(ValidationResultValidationError_1.ValidationResultValidationErrorToJSON)), + }; +} diff --git a/dist/models/WarehouseListResponseWarehouse.d.ts b/dist/models/WarehouseListResponseWarehouse.d.ts new file mode 100644 index 0000000..47e0457 --- /dev/null +++ b/dist/models/WarehouseListResponseWarehouse.d.ts @@ -0,0 +1,165 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseFirstMileType } from './WarehouseFirstMileType'; +/** + * + * @export + * @interface WarehouseListResponseWarehouse + */ +export interface WarehouseListResponseWarehouse { + /** + * Признак доверительной приёмки. `true`, если доверительная приёмка включена на складе. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + has_entrusted_acceptance?: boolean; + /** + * Признак работы склада по схеме rFBS: + * - `true` — склад работает по схеме rFBS; + * - `false` — не работает по схеме rFBS. + * + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_rfbs?: boolean; + /** + * Название склада. + * @type {string} + * @memberof WarehouseListResponseWarehouse + */ + name?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseListResponseWarehouse + */ + warehouse_id?: number; + /** + * Возможность печати акта приёма-передачи заранее. `true`, если печатать заранее возможно. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + can_print_act_in_advance?: boolean; + /** + * + * @type {WarehouseFirstMileType} + * @memberof WarehouseListResponseWarehouse + */ + first_mile_type?: WarehouseFirstMileType; + /** + * Признак наличия лимита минимального количества заказов. `true`, если лимит есть. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + has_postings_limit?: boolean; + /** + * Признак, что склад не работает из-за карантина. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_karantin?: boolean; + /** + * Признак, что склад принимает крупногабаритные товары. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_kgt?: boolean; + /** + * `true`, если склад работает с эконом-товарами. + * + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_economy?: boolean; + /** + * `true`, если можно установить цену. + * + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_able_to_set_price?: boolean; + /** + * `true`, если отгрузка с предсортировкой. + * + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_presorted?: boolean; + /** + * Признак, что можно менять расписание работы складов. + * @type {boolean} + * @memberof WarehouseListResponseWarehouse + */ + is_timetable_editable?: boolean; + /** + * Минимальное значение лимита — количество заказов, которые можно привезти в одной поставке. + * @type {number} + * @memberof WarehouseListResponseWarehouse + */ + min_postings_limit?: number; + /** + * Значение лимита. `-1`, если лимита нет. + * @type {number} + * @memberof WarehouseListResponseWarehouse + */ + postings_limit?: number; + /** + * Количество рабочих дней склада. + * @type {number} + * @memberof WarehouseListResponseWarehouse + */ + min_working_days?: number; + /** + * Статус склада. + * + * Соответствие статусов склада со статусами с личном кабинете: + * + * | Статус Seller API | Статус в личном кабинете | + * |---|---| + * | `new` | Активируется | + * | `created` | Активный | + * | `disabled` | В архиве | + * | `blocked` | Заблокирован | + * | `disabled_due_to_limit` | На паузе | + * | `error` | Ошибка | + * + * @type {string} + * @memberof WarehouseListResponseWarehouse + */ + status?: string; + /** + * Рабочие дни склада. + * @type {Array} + * @memberof WarehouseListResponseWarehouse + */ + working_days?: Array; +} +/** + * @export + */ +export declare const WarehouseListResponseWarehouseWorkingDaysEnum: { + readonly _1: "1"; + readonly _2: "2"; + readonly _3: "3"; + readonly _4: "4"; + readonly _5: "5"; + readonly _6: "6"; + readonly _7: "7"; +}; +export type WarehouseListResponseWarehouseWorkingDaysEnum = typeof WarehouseListResponseWarehouseWorkingDaysEnum[keyof typeof WarehouseListResponseWarehouseWorkingDaysEnum]; +/** + * Check if a given object implements the WarehouseListResponseWarehouse interface. + */ +export declare function instanceOfWarehouseListResponseWarehouse(value: object): value is WarehouseListResponseWarehouse; +export declare function WarehouseListResponseWarehouseFromJSON(json: any): WarehouseListResponseWarehouse; +export declare function WarehouseListResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseListResponseWarehouse; +export declare function WarehouseListResponseWarehouseToJSON(value?: WarehouseListResponseWarehouse | null): any; diff --git a/dist/models/WarehouseListResponseWarehouse.js b/dist/models/WarehouseListResponseWarehouse.js new file mode 100644 index 0000000..84e98c9 --- /dev/null +++ b/dist/models/WarehouseListResponseWarehouse.js @@ -0,0 +1,92 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WarehouseListResponseWarehouseWorkingDaysEnum = void 0; +exports.instanceOfWarehouseListResponseWarehouse = instanceOfWarehouseListResponseWarehouse; +exports.WarehouseListResponseWarehouseFromJSON = WarehouseListResponseWarehouseFromJSON; +exports.WarehouseListResponseWarehouseFromJSONTyped = WarehouseListResponseWarehouseFromJSONTyped; +exports.WarehouseListResponseWarehouseToJSON = WarehouseListResponseWarehouseToJSON; +const WarehouseFirstMileType_1 = require("./WarehouseFirstMileType"); +/** + * @export + */ +exports.WarehouseListResponseWarehouseWorkingDaysEnum = { + _1: '1', + _2: '2', + _3: '3', + _4: '4', + _5: '5', + _6: '6', + _7: '7' +}; +/** + * Check if a given object implements the WarehouseListResponseWarehouse interface. + */ +function instanceOfWarehouseListResponseWarehouse(value) { + return true; +} +function WarehouseListResponseWarehouseFromJSON(json) { + return WarehouseListResponseWarehouseFromJSONTyped(json, false); +} +function WarehouseListResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'is_rfbs': json['is_rfbs'] == null ? undefined : json['is_rfbs'], + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'can_print_act_in_advance': json['can_print_act_in_advance'] == null ? undefined : json['can_print_act_in_advance'], + 'first_mile_type': json['first_mile_type'] == null ? undefined : (0, WarehouseFirstMileType_1.WarehouseFirstMileTypeFromJSON)(json['first_mile_type']), + 'has_postings_limit': json['has_postings_limit'] == null ? undefined : json['has_postings_limit'], + 'is_karantin': json['is_karantin'] == null ? undefined : json['is_karantin'], + 'is_kgt': json['is_kgt'] == null ? undefined : json['is_kgt'], + 'is_economy': json['is_economy'] == null ? undefined : json['is_economy'], + 'is_able_to_set_price': json['is_able_to_set_price'] == null ? undefined : json['is_able_to_set_price'], + 'is_presorted': json['is_presorted'] == null ? undefined : json['is_presorted'], + 'is_timetable_editable': json['is_timetable_editable'] == null ? undefined : json['is_timetable_editable'], + 'min_postings_limit': json['min_postings_limit'] == null ? undefined : json['min_postings_limit'], + 'postings_limit': json['postings_limit'] == null ? undefined : json['postings_limit'], + 'min_working_days': json['min_working_days'] == null ? undefined : json['min_working_days'], + 'status': json['status'] == null ? undefined : json['status'], + 'working_days': json['working_days'] == null ? undefined : json['working_days'], + }; +} +function WarehouseListResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'is_rfbs': value['is_rfbs'], + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + 'can_print_act_in_advance': value['can_print_act_in_advance'], + 'first_mile_type': (0, WarehouseFirstMileType_1.WarehouseFirstMileTypeToJSON)(value['first_mile_type']), + 'has_postings_limit': value['has_postings_limit'], + 'is_karantin': value['is_karantin'], + 'is_kgt': value['is_kgt'], + 'is_economy': value['is_economy'], + 'is_able_to_set_price': value['is_able_to_set_price'], + 'is_presorted': value['is_presorted'], + 'is_timetable_editable': value['is_timetable_editable'], + 'min_postings_limit': value['min_postings_limit'], + 'postings_limit': value['postings_limit'], + 'min_working_days': value['min_working_days'], + 'status': value['status'], + 'working_days': value['working_days'], + }; +} diff --git a/dist/models/WarehouseListV2ResponseWarehouse.d.ts b/dist/models/WarehouseListV2ResponseWarehouse.d.ts new file mode 100644 index 0000000..9246d77 --- /dev/null +++ b/dist/models/WarehouseListV2ResponseWarehouse.d.ts @@ -0,0 +1,207 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseCarriageLabelTypeEnum } from './WarehouseCarriageLabelTypeEnum'; +import type { WarehouseFirstMile } from './WarehouseFirstMile'; +import type { WarehouseWorkingDaysEnum } from './WarehouseWorkingDaysEnum'; +import type { WarehouseAddressInfo } from './WarehouseAddressInfo'; +import type { WarehouseTimetable } from './WarehouseTimetable'; +/** + * + * @export + * @interface WarehouseListV2ResponseWarehouse + */ +export interface WarehouseListV2ResponseWarehouse { + /** + * + * @type {WarehouseAddressInfo} + * @memberof WarehouseListV2ResponseWarehouse + */ + address_info?: WarehouseAddressInfo; + /** + * + * @type {WarehouseCarriageLabelTypeEnum} + * @memberof WarehouseListV2ResponseWarehouse + */ + carriage_label_type?: WarehouseCarriageLabelTypeEnum; + /** + * Комментарий для курьера. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + courier_comment?: string; + /** + * Номера телефонов для связи с курьером. + * @type {Array} + * @memberof WarehouseListV2ResponseWarehouse + */ + courier_phones?: Array; + /** + * Дата и время создания склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + created_at?: string; + /** + * Время на отгрузку в минутах. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + cut_in_time?: number; + /** + * + * @type {WarehouseFirstMile} + * @memberof WarehouseListV2ResponseWarehouse + */ + first_mile?: WarehouseFirstMile; + /** + * Признак подключения доверительной приемки. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + has_entrusted_acceptance?: boolean; + /** + * Признак наличия лимита минимального количества заказов. `true`, если лимит есть. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + has_postings_limit?: boolean; + /** + * Признак включённой автосборки. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_auto_assembly?: boolean; + /** + * Признак доставки comfort. Время доставки до покупателя от 60 минут. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_comfort?: boolean; + /** + * Признак доставки express. Время доставки до покупателя не больше 60 минут. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_express?: boolean; + /** + * Признак, что склад принимает крупногабаритные товары. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_kgt?: boolean; + /** + * Признак работы склада по схеме rFBS. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_rfbs?: boolean; + /** + * Признак включённой печати транспортной накладной. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + is_waybill_enabled?: boolean; + /** + * Минимальное количество заказов, которое можно привезти в одной поставке. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + min_postings_limit?: number; + /** + * Название склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + name?: string; + /** + * Дата, когда продавец поставил склад на паузу. Если значение `null`, склад активный. Только для rFBS-склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + pause_at?: string; + /** + * Номер телефона склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + phone?: string; + /** + * Лимит заказов. `-1`, если лимита нет. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + postings_limit?: number; + /** + * Минимальное время на сборку заказа в минутах. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + sla_cut_in?: number; + /** + * Статус склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + status?: string; + /** + * + * @type {WarehouseTimetable} + * @memberof WarehouseListV2ResponseWarehouse + */ + timetable?: WarehouseTimetable; + /** + * Дата и время последнего обновления данных склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + updated_at?: string; + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseListV2ResponseWarehouse + */ + warehouse_id?: number; + /** + * Тип склада. + * @type {string} + * @memberof WarehouseListV2ResponseWarehouse + */ + warehouse_type?: string; + /** + * Признак включённой печати листа подбора. + * @type {boolean} + * @memberof WarehouseListV2ResponseWarehouse + */ + with_item_list?: boolean; + /** + * Рабочие дни склада: + * - `UNSPECIFIED` — значение не определено; + * - `MONDAY` — понедельник; + * - `TUESDAY` — вторник; + * - `WEDNESDAY` — среда; + * - `THURSDAY` — четверг; + * - `FRIDAY` — пятница; + * - `SATURDAY` — суббота; + * - `SUNDAY` — воскресенье. + * + * @type {Array} + * @memberof WarehouseListV2ResponseWarehouse + */ + working_days?: Array; +} +/** + * Check if a given object implements the WarehouseListV2ResponseWarehouse interface. + */ +export declare function instanceOfWarehouseListV2ResponseWarehouse(value: object): value is WarehouseListV2ResponseWarehouse; +export declare function WarehouseListV2ResponseWarehouseFromJSON(json: any): WarehouseListV2ResponseWarehouse; +export declare function WarehouseListV2ResponseWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseListV2ResponseWarehouse; +export declare function WarehouseListV2ResponseWarehouseToJSON(value?: WarehouseListV2ResponseWarehouse | null): any; diff --git a/dist/models/WarehouseListV2ResponseWarehouse.js b/dist/models/WarehouseListV2ResponseWarehouse.js new file mode 100644 index 0000000..4a5ca69 --- /dev/null +++ b/dist/models/WarehouseListV2ResponseWarehouse.js @@ -0,0 +1,103 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseListV2ResponseWarehouse = instanceOfWarehouseListV2ResponseWarehouse; +exports.WarehouseListV2ResponseWarehouseFromJSON = WarehouseListV2ResponseWarehouseFromJSON; +exports.WarehouseListV2ResponseWarehouseFromJSONTyped = WarehouseListV2ResponseWarehouseFromJSONTyped; +exports.WarehouseListV2ResponseWarehouseToJSON = WarehouseListV2ResponseWarehouseToJSON; +const WarehouseCarriageLabelTypeEnum_1 = require("./WarehouseCarriageLabelTypeEnum"); +const WarehouseFirstMile_1 = require("./WarehouseFirstMile"); +const WarehouseWorkingDaysEnum_1 = require("./WarehouseWorkingDaysEnum"); +const WarehouseAddressInfo_1 = require("./WarehouseAddressInfo"); +const WarehouseTimetable_1 = require("./WarehouseTimetable"); +/** + * Check if a given object implements the WarehouseListV2ResponseWarehouse interface. + */ +function instanceOfWarehouseListV2ResponseWarehouse(value) { + return true; +} +function WarehouseListV2ResponseWarehouseFromJSON(json) { + return WarehouseListV2ResponseWarehouseFromJSONTyped(json, false); +} +function WarehouseListV2ResponseWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address_info': json['address_info'] == null ? undefined : (0, WarehouseAddressInfo_1.WarehouseAddressInfoFromJSON)(json['address_info']), + 'carriage_label_type': json['carriage_label_type'] == null ? undefined : (0, WarehouseCarriageLabelTypeEnum_1.WarehouseCarriageLabelTypeEnumFromJSON)(json['carriage_label_type']), + 'courier_comment': json['courier_comment'] == null ? undefined : json['courier_comment'], + 'courier_phones': json['courier_phones'] == null ? undefined : json['courier_phones'], + 'created_at': json['created_at'] == null ? undefined : json['created_at'], + 'cut_in_time': json['cut_in_time'] == null ? undefined : json['cut_in_time'], + 'first_mile': json['first_mile'] == null ? undefined : (0, WarehouseFirstMile_1.WarehouseFirstMileFromJSON)(json['first_mile']), + 'has_entrusted_acceptance': json['has_entrusted_acceptance'] == null ? undefined : json['has_entrusted_acceptance'], + 'has_postings_limit': json['has_postings_limit'] == null ? undefined : json['has_postings_limit'], + 'is_auto_assembly': json['is_auto_assembly'] == null ? undefined : json['is_auto_assembly'], + 'is_comfort': json['is_comfort'] == null ? undefined : json['is_comfort'], + 'is_express': json['is_express'] == null ? undefined : json['is_express'], + 'is_kgt': json['is_kgt'] == null ? undefined : json['is_kgt'], + 'is_rfbs': json['is_rfbs'] == null ? undefined : json['is_rfbs'], + 'is_waybill_enabled': json['is_waybill_enabled'] == null ? undefined : json['is_waybill_enabled'], + 'min_postings_limit': json['min_postings_limit'] == null ? undefined : json['min_postings_limit'], + 'name': json['name'] == null ? undefined : json['name'], + 'pause_at': json['pause_at'] == null ? undefined : json['pause_at'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'postings_limit': json['postings_limit'] == null ? undefined : json['postings_limit'], + 'sla_cut_in': json['sla_cut_in'] == null ? undefined : json['sla_cut_in'], + 'status': json['status'] == null ? undefined : json['status'], + 'timetable': json['timetable'] == null ? undefined : (0, WarehouseTimetable_1.WarehouseTimetableFromJSON)(json['timetable']), + 'updated_at': json['updated_at'] == null ? undefined : json['updated_at'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + 'warehouse_type': json['warehouse_type'] == null ? undefined : json['warehouse_type'], + 'with_item_list': json['with_item_list'] == null ? undefined : json['with_item_list'], + 'working_days': json['working_days'] == null ? undefined : (json['working_days'].map(WarehouseWorkingDaysEnum_1.WarehouseWorkingDaysEnumFromJSON)), + }; +} +function WarehouseListV2ResponseWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address_info': (0, WarehouseAddressInfo_1.WarehouseAddressInfoToJSON)(value['address_info']), + 'carriage_label_type': (0, WarehouseCarriageLabelTypeEnum_1.WarehouseCarriageLabelTypeEnumToJSON)(value['carriage_label_type']), + 'courier_comment': value['courier_comment'], + 'courier_phones': value['courier_phones'], + 'created_at': value['created_at'], + 'cut_in_time': value['cut_in_time'], + 'first_mile': (0, WarehouseFirstMile_1.WarehouseFirstMileToJSON)(value['first_mile']), + 'has_entrusted_acceptance': value['has_entrusted_acceptance'], + 'has_postings_limit': value['has_postings_limit'], + 'is_auto_assembly': value['is_auto_assembly'], + 'is_comfort': value['is_comfort'], + 'is_express': value['is_express'], + 'is_kgt': value['is_kgt'], + 'is_rfbs': value['is_rfbs'], + 'is_waybill_enabled': value['is_waybill_enabled'], + 'min_postings_limit': value['min_postings_limit'], + 'name': value['name'], + 'pause_at': value['pause_at'], + 'phone': value['phone'], + 'postings_limit': value['postings_limit'], + 'sla_cut_in': value['sla_cut_in'], + 'status': value['status'], + 'timetable': (0, WarehouseTimetable_1.WarehouseTimetableToJSON)(value['timetable']), + 'updated_at': value['updated_at'], + 'warehouse_id': value['warehouse_id'], + 'warehouse_type': value['warehouse_type'], + 'with_item_list': value['with_item_list'], + 'working_days': value['working_days'] == null ? undefined : (value['working_days'].map(WarehouseWorkingDaysEnum_1.WarehouseWorkingDaysEnumToJSON)), + }; +} diff --git a/dist/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.d.ts b/dist/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.d.ts new file mode 100644 index 0000000..47a3ff1 --- /dev/null +++ b/dist/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.d.ts @@ -0,0 +1,49 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Тип склада: + * - `UNSPECIFIED` — не указан; + * - `FULL_FILLMENT` — фулфилмент; + * - `FULL_FILLMENT_RETURNS` — склад возвратов; + * - `FULL_FILLMENT_DEFECT` — склад брака; + * - `EXPRESS_DARK_STORE` — фреш; + * - `CROSS_DOCK` — кросс-док; + * - `SORTING_CENTER` — сортировочный центр; + * - `PHARMACY` — склад аптеки; + * - `DISTRIBUTION_CENTER` — распределительный центр; + * - `ORDERS_RECEIVING_POINT` — пункты приёма заказов; + * - `OUTSOURCE_FF` — аутсорс-склады; + * - `B2B` — B2B-склад; + * - `EXTERNAL_FF` — склады партнёров. + * + * @export + */ +export declare const WarehouseOZONListResponseWarehouseWarehouseTypeEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly FULL_FILLMENT: "FULL_FILLMENT"; + readonly FULL_FILLMENT_RETURNS: "FULL_FILLMENT_RETURNS"; + readonly FULL_FILLMENT_DEFECT: "FULL_FILLMENT_DEFECT"; + readonly EXPRESS_DARK_STORE: "EXPRESS_DARK_STORE"; + readonly CROSS_DOCK: "CROSS_DOCK"; + readonly SORTING_CENTER: "SORTING_CENTER"; + readonly PHARMACY: "PHARMACY"; + readonly DISTRIBUTION_CENTER: "DISTRIBUTION_CENTER"; + readonly ORDERS_RECEIVING_POINT: "ORDERS_RECEIVING_POINT"; + readonly OUTSOURCE_FF: "OUTSOURCE_FF"; + readonly B2B: "B2B"; + readonly EXTERNAL_FF: "EXTERNAL_FF"; +}; +export type WarehouseOZONListResponseWarehouseWarehouseTypeEnum = typeof WarehouseOZONListResponseWarehouseWarehouseTypeEnum[keyof typeof WarehouseOZONListResponseWarehouseWarehouseTypeEnum]; +export declare function instanceOfWarehouseOZONListResponseWarehouseWarehouseTypeEnum(value: any): boolean; +export declare function WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON(json: any): WarehouseOZONListResponseWarehouseWarehouseTypeEnum; +export declare function WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseOZONListResponseWarehouseWarehouseTypeEnum; +export declare function WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON(value?: WarehouseOZONListResponseWarehouseWarehouseTypeEnum | null): any; diff --git a/dist/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.js b/dist/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.js new file mode 100644 index 0000000..b906d21 --- /dev/null +++ b/dist/models/WarehouseOZONListResponseWarehouseWarehouseTypeEnum.js @@ -0,0 +1,72 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WarehouseOZONListResponseWarehouseWarehouseTypeEnum = void 0; +exports.instanceOfWarehouseOZONListResponseWarehouseWarehouseTypeEnum = instanceOfWarehouseOZONListResponseWarehouseWarehouseTypeEnum; +exports.WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON = WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON; +exports.WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSONTyped = WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSONTyped; +exports.WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON = WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON; +/** + * Тип склада: + * - `UNSPECIFIED` — не указан; + * - `FULL_FILLMENT` — фулфилмент; + * - `FULL_FILLMENT_RETURNS` — склад возвратов; + * - `FULL_FILLMENT_DEFECT` — склад брака; + * - `EXPRESS_DARK_STORE` — фреш; + * - `CROSS_DOCK` — кросс-док; + * - `SORTING_CENTER` — сортировочный центр; + * - `PHARMACY` — склад аптеки; + * - `DISTRIBUTION_CENTER` — распределительный центр; + * - `ORDERS_RECEIVING_POINT` — пункты приёма заказов; + * - `OUTSOURCE_FF` — аутсорс-склады; + * - `B2B` — B2B-склад; + * - `EXTERNAL_FF` — склады партнёров. + * + * @export + */ +exports.WarehouseOZONListResponseWarehouseWarehouseTypeEnum = { + UNSPECIFIED: 'UNSPECIFIED', + FULL_FILLMENT: 'FULL_FILLMENT', + FULL_FILLMENT_RETURNS: 'FULL_FILLMENT_RETURNS', + FULL_FILLMENT_DEFECT: 'FULL_FILLMENT_DEFECT', + EXPRESS_DARK_STORE: 'EXPRESS_DARK_STORE', + CROSS_DOCK: 'CROSS_DOCK', + SORTING_CENTER: 'SORTING_CENTER', + PHARMACY: 'PHARMACY', + DISTRIBUTION_CENTER: 'DISTRIBUTION_CENTER', + ORDERS_RECEIVING_POINT: 'ORDERS_RECEIVING_POINT', + OUTSOURCE_FF: 'OUTSOURCE_FF', + B2B: 'B2B', + EXTERNAL_FF: 'EXTERNAL_FF' +}; +function instanceOfWarehouseOZONListResponseWarehouseWarehouseTypeEnum(value) { + for (const key in exports.WarehouseOZONListResponseWarehouseWarehouseTypeEnum) { + if (Object.prototype.hasOwnProperty.call(exports.WarehouseOZONListResponseWarehouseWarehouseTypeEnum, key)) { + if (exports.WarehouseOZONListResponseWarehouseWarehouseTypeEnum[key] === value) { + return true; + } + } + } + return false; +} +function WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSON(json) { + return WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSONTyped(json, false); +} +function WarehouseOZONListResponseWarehouseWarehouseTypeEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WarehouseOZONListResponseWarehouseWarehouseTypeEnumToJSON(value) { + return value; +} diff --git a/dist/models/WarehouseStorageWarehouse.d.ts b/dist/models/WarehouseStorageWarehouse.d.ts new file mode 100644 index 0000000..27b87b6 --- /dev/null +++ b/dist/models/WarehouseStorageWarehouse.d.ts @@ -0,0 +1,43 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Склад хранения для поставок с типом `DIRECT`. + * @export + * @interface WarehouseStorageWarehouse + */ +export interface WarehouseStorageWarehouse { + /** + * Адрес склада хранения. + * @type {string} + * @memberof WarehouseStorageWarehouse + */ + address?: string; + /** + * Название склада хранения. + * @type {string} + * @memberof WarehouseStorageWarehouse + */ + name?: string; + /** + * Идентификатор склада хранения. + * @type {number} + * @memberof WarehouseStorageWarehouse + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the WarehouseStorageWarehouse interface. + */ +export declare function instanceOfWarehouseStorageWarehouse(value: object): value is WarehouseStorageWarehouse; +export declare function WarehouseStorageWarehouseFromJSON(json: any): WarehouseStorageWarehouse; +export declare function WarehouseStorageWarehouseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseStorageWarehouse; +export declare function WarehouseStorageWarehouseToJSON(value?: WarehouseStorageWarehouse | null): any; diff --git a/dist/models/WarehouseStorageWarehouse.js b/dist/models/WarehouseStorageWarehouse.js new file mode 100644 index 0000000..81d19b5 --- /dev/null +++ b/dist/models/WarehouseStorageWarehouse.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseStorageWarehouse = instanceOfWarehouseStorageWarehouse; +exports.WarehouseStorageWarehouseFromJSON = WarehouseStorageWarehouseFromJSON; +exports.WarehouseStorageWarehouseFromJSONTyped = WarehouseStorageWarehouseFromJSONTyped; +exports.WarehouseStorageWarehouseToJSON = WarehouseStorageWarehouseToJSON; +/** + * Check if a given object implements the WarehouseStorageWarehouse interface. + */ +function instanceOfWarehouseStorageWarehouse(value) { + return true; +} +function WarehouseStorageWarehouseFromJSON(json) { + return WarehouseStorageWarehouseFromJSONTyped(json, false); +} +function WarehouseStorageWarehouseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'name': json['name'] == null ? undefined : json['name'], + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function WarehouseStorageWarehouseToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'name': value['name'], + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/WarehouseSupplyTagEnum.d.ts b/dist/models/WarehouseSupplyTagEnum.d.ts new file mode 100644 index 0000000..30ab64b --- /dev/null +++ b/dist/models/WarehouseSupplyTagEnum.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WarehouseSupplyTagEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly TRACEABLE: "TRACEABLE"; + readonly ETTN_REQUIRED: "ETTN_REQUIRED"; + readonly EVSD_REQUIRED: "EVSD_REQUIRED"; + readonly MARKING_REQUIRED: "MARKING_REQUIRED"; + readonly MARKING_POSSIBLE: "MARKING_POSSIBLE"; + readonly JEWELRY: "JEWELRY"; + readonly FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE: "FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE"; + readonly UTD_REQUIRED: "UTD_REQUIRED"; + readonly UNDEFINED: "UNDEFINED"; +}; +export type WarehouseSupplyTagEnum = typeof WarehouseSupplyTagEnum[keyof typeof WarehouseSupplyTagEnum]; +export declare function instanceOfWarehouseSupplyTagEnum(value: any): boolean; +export declare function WarehouseSupplyTagEnumFromJSON(json: any): WarehouseSupplyTagEnum; +export declare function WarehouseSupplyTagEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseSupplyTagEnum; +export declare function WarehouseSupplyTagEnumToJSON(value?: WarehouseSupplyTagEnum | null): any; diff --git a/dist/models/WarehouseSupplyTagEnum.js b/dist/models/WarehouseSupplyTagEnum.js new file mode 100644 index 0000000..64eb50e --- /dev/null +++ b/dist/models/WarehouseSupplyTagEnum.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WarehouseSupplyTagEnum = void 0; +exports.instanceOfWarehouseSupplyTagEnum = instanceOfWarehouseSupplyTagEnum; +exports.WarehouseSupplyTagEnumFromJSON = WarehouseSupplyTagEnumFromJSON; +exports.WarehouseSupplyTagEnumFromJSONTyped = WarehouseSupplyTagEnumFromJSONTyped; +exports.WarehouseSupplyTagEnumToJSON = WarehouseSupplyTagEnumToJSON; +/** + * + * @export + */ +exports.WarehouseSupplyTagEnum = { + UNSPECIFIED: 'UNSPECIFIED', + TRACEABLE: 'TRACEABLE', + ETTN_REQUIRED: 'ETTN_REQUIRED', + EVSD_REQUIRED: 'EVSD_REQUIRED', + MARKING_REQUIRED: 'MARKING_REQUIRED', + MARKING_POSSIBLE: 'MARKING_POSSIBLE', + JEWELRY: 'JEWELRY', + FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE: 'FREEZE_STOCK_FOR_MARKING_AFTER_ACCEPTANCE', + UTD_REQUIRED: 'UTD_REQUIRED', + UNDEFINED: 'UNDEFINED' +}; +function instanceOfWarehouseSupplyTagEnum(value) { + for (const key in exports.WarehouseSupplyTagEnum) { + if (Object.prototype.hasOwnProperty.call(exports.WarehouseSupplyTagEnum, key)) { + if (exports.WarehouseSupplyTagEnum[key] === value) { + return true; + } + } + } + return false; +} +function WarehouseSupplyTagEnumFromJSON(json) { + return WarehouseSupplyTagEnumFromJSONTyped(json, false); +} +function WarehouseSupplyTagEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WarehouseSupplyTagEnumToJSON(value) { + return value; +} diff --git a/dist/models/WarehouseTimetable.d.ts b/dist/models/WarehouseTimetable.d.ts new file mode 100644 index 0000000..a834ff7 --- /dev/null +++ b/dist/models/WarehouseTimetable.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TimetableWorkingHours } from './TimetableWorkingHours'; +/** + * Расписание работы склада. + * @export + * @interface WarehouseTimetable + */ +export interface WarehouseTimetable { + /** + * Дата начала работы склада. + * @type {string} + * @memberof WarehouseTimetable + */ + timetable_from?: string; + /** + * Дата окончания работы склада. + * @type {string} + * @memberof WarehouseTimetable + */ + timetable_to?: string; + /** + * Часы работы склада. + * @type {Array} + * @memberof WarehouseTimetable + */ + working_hours?: Array; +} +/** + * Check if a given object implements the WarehouseTimetable interface. + */ +export declare function instanceOfWarehouseTimetable(value: object): value is WarehouseTimetable; +export declare function WarehouseTimetableFromJSON(json: any): WarehouseTimetable; +export declare function WarehouseTimetableFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseTimetable; +export declare function WarehouseTimetableToJSON(value?: WarehouseTimetable | null): any; diff --git a/dist/models/WarehouseTimetable.js b/dist/models/WarehouseTimetable.js new file mode 100644 index 0000000..e2cffbc --- /dev/null +++ b/dist/models/WarehouseTimetable.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseTimetable = instanceOfWarehouseTimetable; +exports.WarehouseTimetableFromJSON = WarehouseTimetableFromJSON; +exports.WarehouseTimetableFromJSONTyped = WarehouseTimetableFromJSONTyped; +exports.WarehouseTimetableToJSON = WarehouseTimetableToJSON; +const TimetableWorkingHours_1 = require("./TimetableWorkingHours"); +/** + * Check if a given object implements the WarehouseTimetable interface. + */ +function instanceOfWarehouseTimetable(value) { + return true; +} +function WarehouseTimetableFromJSON(json) { + return WarehouseTimetableFromJSONTyped(json, false); +} +function WarehouseTimetableFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'timetable_from': json['timetable_from'] == null ? undefined : json['timetable_from'], + 'timetable_to': json['timetable_to'] == null ? undefined : json['timetable_to'], + 'working_hours': json['working_hours'] == null ? undefined : (json['working_hours'].map(TimetableWorkingHours_1.TimetableWorkingHoursFromJSON)), + }; +} +function WarehouseTimetableToJSON(value) { + if (value == null) { + return value; + } + return { + 'timetable_from': value['timetable_from'], + 'timetable_to': value['timetable_to'], + 'working_hours': value['working_hours'] == null ? undefined : (value['working_hours'].map(TimetableWorkingHours_1.TimetableWorkingHoursToJSON)), + }; +} diff --git a/dist/models/WarehouseV1WarehouseRfbsPauseRequest.d.ts b/dist/models/WarehouseV1WarehouseRfbsPauseRequest.d.ts new file mode 100644 index 0000000..fbf4d55 --- /dev/null +++ b/dist/models/WarehouseV1WarehouseRfbsPauseRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseV1WarehouseRfbsPauseRequest + */ +export interface WarehouseV1WarehouseRfbsPauseRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseV1WarehouseRfbsPauseRequest + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsPauseRequest interface. + */ +export declare function instanceOfWarehouseV1WarehouseRfbsPauseRequest(value: object): value is WarehouseV1WarehouseRfbsPauseRequest; +export declare function WarehouseV1WarehouseRfbsPauseRequestFromJSON(json: any): WarehouseV1WarehouseRfbsPauseRequest; +export declare function WarehouseV1WarehouseRfbsPauseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV1WarehouseRfbsPauseRequest; +export declare function WarehouseV1WarehouseRfbsPauseRequestToJSON(value?: WarehouseV1WarehouseRfbsPauseRequest | null): any; diff --git a/dist/models/WarehouseV1WarehouseRfbsPauseRequest.js b/dist/models/WarehouseV1WarehouseRfbsPauseRequest.js new file mode 100644 index 0000000..9a211a1 --- /dev/null +++ b/dist/models/WarehouseV1WarehouseRfbsPauseRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseV1WarehouseRfbsPauseRequest = instanceOfWarehouseV1WarehouseRfbsPauseRequest; +exports.WarehouseV1WarehouseRfbsPauseRequestFromJSON = WarehouseV1WarehouseRfbsPauseRequestFromJSON; +exports.WarehouseV1WarehouseRfbsPauseRequestFromJSONTyped = WarehouseV1WarehouseRfbsPauseRequestFromJSONTyped; +exports.WarehouseV1WarehouseRfbsPauseRequestToJSON = WarehouseV1WarehouseRfbsPauseRequestToJSON; +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsPauseRequest interface. + */ +function instanceOfWarehouseV1WarehouseRfbsPauseRequest(value) { + return true; +} +function WarehouseV1WarehouseRfbsPauseRequestFromJSON(json) { + return WarehouseV1WarehouseRfbsPauseRequestFromJSONTyped(json, false); +} +function WarehouseV1WarehouseRfbsPauseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function WarehouseV1WarehouseRfbsPauseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/WarehouseV1WarehouseRfbsPauseResponse.d.ts b/dist/models/WarehouseV1WarehouseRfbsPauseResponse.d.ts new file mode 100644 index 0000000..133f79b --- /dev/null +++ b/dist/models/WarehouseV1WarehouseRfbsPauseResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseV1WarehouseRfbsPauseResponse + */ +export interface WarehouseV1WarehouseRfbsPauseResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof WarehouseV1WarehouseRfbsPauseResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsPauseResponse interface. + */ +export declare function instanceOfWarehouseV1WarehouseRfbsPauseResponse(value: object): value is WarehouseV1WarehouseRfbsPauseResponse; +export declare function WarehouseV1WarehouseRfbsPauseResponseFromJSON(json: any): WarehouseV1WarehouseRfbsPauseResponse; +export declare function WarehouseV1WarehouseRfbsPauseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV1WarehouseRfbsPauseResponse; +export declare function WarehouseV1WarehouseRfbsPauseResponseToJSON(value?: WarehouseV1WarehouseRfbsPauseResponse | null): any; diff --git a/dist/models/WarehouseV1WarehouseRfbsPauseResponse.js b/dist/models/WarehouseV1WarehouseRfbsPauseResponse.js new file mode 100644 index 0000000..76547da --- /dev/null +++ b/dist/models/WarehouseV1WarehouseRfbsPauseResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseV1WarehouseRfbsPauseResponse = instanceOfWarehouseV1WarehouseRfbsPauseResponse; +exports.WarehouseV1WarehouseRfbsPauseResponseFromJSON = WarehouseV1WarehouseRfbsPauseResponseFromJSON; +exports.WarehouseV1WarehouseRfbsPauseResponseFromJSONTyped = WarehouseV1WarehouseRfbsPauseResponseFromJSONTyped; +exports.WarehouseV1WarehouseRfbsPauseResponseToJSON = WarehouseV1WarehouseRfbsPauseResponseToJSON; +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsPauseResponse interface. + */ +function instanceOfWarehouseV1WarehouseRfbsPauseResponse(value) { + return true; +} +function WarehouseV1WarehouseRfbsPauseResponseFromJSON(json) { + return WarehouseV1WarehouseRfbsPauseResponseFromJSONTyped(json, false); +} +function WarehouseV1WarehouseRfbsPauseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function WarehouseV1WarehouseRfbsPauseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/WarehouseV1WarehouseRfbsUnpauseRequest.d.ts b/dist/models/WarehouseV1WarehouseRfbsUnpauseRequest.d.ts new file mode 100644 index 0000000..f7260ac --- /dev/null +++ b/dist/models/WarehouseV1WarehouseRfbsUnpauseRequest.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseV1WarehouseRfbsUnpauseRequest + */ +export interface WarehouseV1WarehouseRfbsUnpauseRequest { + /** + * Идентификатор склада. + * @type {number} + * @memberof WarehouseV1WarehouseRfbsUnpauseRequest + */ + warehouse_id?: number; +} +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsUnpauseRequest interface. + */ +export declare function instanceOfWarehouseV1WarehouseRfbsUnpauseRequest(value: object): value is WarehouseV1WarehouseRfbsUnpauseRequest; +export declare function WarehouseV1WarehouseRfbsUnpauseRequestFromJSON(json: any): WarehouseV1WarehouseRfbsUnpauseRequest; +export declare function WarehouseV1WarehouseRfbsUnpauseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV1WarehouseRfbsUnpauseRequest; +export declare function WarehouseV1WarehouseRfbsUnpauseRequestToJSON(value?: WarehouseV1WarehouseRfbsUnpauseRequest | null): any; diff --git a/dist/models/WarehouseV1WarehouseRfbsUnpauseRequest.js b/dist/models/WarehouseV1WarehouseRfbsUnpauseRequest.js new file mode 100644 index 0000000..92932d7 --- /dev/null +++ b/dist/models/WarehouseV1WarehouseRfbsUnpauseRequest.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseV1WarehouseRfbsUnpauseRequest = instanceOfWarehouseV1WarehouseRfbsUnpauseRequest; +exports.WarehouseV1WarehouseRfbsUnpauseRequestFromJSON = WarehouseV1WarehouseRfbsUnpauseRequestFromJSON; +exports.WarehouseV1WarehouseRfbsUnpauseRequestFromJSONTyped = WarehouseV1WarehouseRfbsUnpauseRequestFromJSONTyped; +exports.WarehouseV1WarehouseRfbsUnpauseRequestToJSON = WarehouseV1WarehouseRfbsUnpauseRequestToJSON; +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsUnpauseRequest interface. + */ +function instanceOfWarehouseV1WarehouseRfbsUnpauseRequest(value) { + return true; +} +function WarehouseV1WarehouseRfbsUnpauseRequestFromJSON(json) { + return WarehouseV1WarehouseRfbsUnpauseRequestFromJSONTyped(json, false); +} +function WarehouseV1WarehouseRfbsUnpauseRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'warehouse_id': json['warehouse_id'] == null ? undefined : json['warehouse_id'], + }; +} +function WarehouseV1WarehouseRfbsUnpauseRequestToJSON(value) { + if (value == null) { + return value; + } + return { + 'warehouse_id': value['warehouse_id'], + }; +} diff --git a/dist/models/WarehouseV1WarehouseRfbsUnpauseResponse.d.ts b/dist/models/WarehouseV1WarehouseRfbsUnpauseResponse.d.ts new file mode 100644 index 0000000..eaeb739 --- /dev/null +++ b/dist/models/WarehouseV1WarehouseRfbsUnpauseResponse.d.ts @@ -0,0 +1,31 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WarehouseV1WarehouseRfbsUnpauseResponse + */ +export interface WarehouseV1WarehouseRfbsUnpauseResponse { + /** + * Идентификатор операции. Получите статус операции методом [/v1/warehouse/operation/status](#operation/GetWarehouseFBSOperationStatus). + * @type {string} + * @memberof WarehouseV1WarehouseRfbsUnpauseResponse + */ + operation_id?: string; +} +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsUnpauseResponse interface. + */ +export declare function instanceOfWarehouseV1WarehouseRfbsUnpauseResponse(value: object): value is WarehouseV1WarehouseRfbsUnpauseResponse; +export declare function WarehouseV1WarehouseRfbsUnpauseResponseFromJSON(json: any): WarehouseV1WarehouseRfbsUnpauseResponse; +export declare function WarehouseV1WarehouseRfbsUnpauseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV1WarehouseRfbsUnpauseResponse; +export declare function WarehouseV1WarehouseRfbsUnpauseResponseToJSON(value?: WarehouseV1WarehouseRfbsUnpauseResponse | null): any; diff --git a/dist/models/WarehouseV1WarehouseRfbsUnpauseResponse.js b/dist/models/WarehouseV1WarehouseRfbsUnpauseResponse.js new file mode 100644 index 0000000..83ac5e9 --- /dev/null +++ b/dist/models/WarehouseV1WarehouseRfbsUnpauseResponse.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseV1WarehouseRfbsUnpauseResponse = instanceOfWarehouseV1WarehouseRfbsUnpauseResponse; +exports.WarehouseV1WarehouseRfbsUnpauseResponseFromJSON = WarehouseV1WarehouseRfbsUnpauseResponseFromJSON; +exports.WarehouseV1WarehouseRfbsUnpauseResponseFromJSONTyped = WarehouseV1WarehouseRfbsUnpauseResponseFromJSONTyped; +exports.WarehouseV1WarehouseRfbsUnpauseResponseToJSON = WarehouseV1WarehouseRfbsUnpauseResponseToJSON; +/** + * Check if a given object implements the WarehouseV1WarehouseRfbsUnpauseResponse interface. + */ +function instanceOfWarehouseV1WarehouseRfbsUnpauseResponse(value) { + return true; +} +function WarehouseV1WarehouseRfbsUnpauseResponseFromJSON(json) { + return WarehouseV1WarehouseRfbsUnpauseResponseFromJSONTyped(json, false); +} +function WarehouseV1WarehouseRfbsUnpauseResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'operation_id': json['operation_id'] == null ? undefined : json['operation_id'], + }; +} +function WarehouseV1WarehouseRfbsUnpauseResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'operation_id': value['operation_id'], + }; +} diff --git a/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.d.ts b/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.d.ts new file mode 100644 index 0000000..4166979 --- /dev/null +++ b/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.d.ts @@ -0,0 +1,50 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates } from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates'; +/** + * Информация о drop-off пункте. + * @export + * @interface WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ +export interface WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint { + /** + * Адрес drop-off пункта. + * @type {string} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ + address?: string; + /** + * + * @type {WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ + address_coordinates?: WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; + /** + * Код drop-off пункта в системе транспортной компании. + * @type {string} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ + code?: string; + /** + * Название drop-off пункта. + * @type {string} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint + */ + name?: string; +} +/** + * Check if a given object implements the WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint interface. + */ +export declare function instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint(value: object): value is WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON(json: any): WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON(value?: WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint | null): any; diff --git a/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.js b/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.js new file mode 100644 index 0000000..1720573 --- /dev/null +++ b/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint = instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint; +exports.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON = WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON; +exports.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSONTyped = WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSONTyped; +exports.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON = WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON; +const WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates_1 = require("./WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates"); +/** + * Check if a given object implements the WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint interface. + */ +function instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint(value) { + return true; +} +function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSON(json) { + return WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSONTyped(json, false); +} +function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'] == null ? undefined : json['address'], + 'address_coordinates': json['address_coordinates'] == null ? undefined : (0, WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates_1.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON)(json['address_coordinates']), + 'code': json['code'] == null ? undefined : json['code'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} +function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointToJSON(value) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'address_coordinates': (0, WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates_1.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON)(value['address_coordinates']), + 'code': value['code'], + 'name': value['name'], + }; +} diff --git a/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.d.ts b/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.d.ts new file mode 100644 index 0000000..2a19af6 --- /dev/null +++ b/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.d.ts @@ -0,0 +1,37 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Координаты drop-off пункта. + * @export + * @interface WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates + */ +export interface WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates { + /** + * Широта. + * @type {number} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates + */ + latitude?: number; + /** + * Долгота. + * @type {number} + * @memberof WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates + */ + longitude?: number; +} +/** + * Check if a given object implements the WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates interface. + */ +export declare function instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates(value: object): value is WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON(json: any): WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; +export declare function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON(value?: WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates | null): any; diff --git a/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.js b/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.js new file mode 100644 index 0000000..f92f53b --- /dev/null +++ b/dist/models/WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates.js @@ -0,0 +1,46 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates = instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates; +exports.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON = WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON; +exports.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSONTyped = WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSONTyped; +exports.WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON = WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON; +/** + * Check if a given object implements the WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates interface. + */ +function instanceOfWarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates(value) { + return true; +} +function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSON(json) { + return WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSONTyped(json, false); +} +function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'latitude': json['latitude'] == null ? undefined : json['latitude'], + 'longitude': json['longitude'] == null ? undefined : json['longitude'], + }; +} +function WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinatesToJSON(value) { + if (value == null) { + return value; + } + return { + 'latitude': value['latitude'], + 'longitude': value['longitude'], + }; +} diff --git a/dist/models/WarehouseWarehouseListResponse.d.ts b/dist/models/WarehouseWarehouseListResponse.d.ts new file mode 100644 index 0000000..4ec9db4 --- /dev/null +++ b/dist/models/WarehouseWarehouseListResponse.d.ts @@ -0,0 +1,32 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseListResponseWarehouse } from './WarehouseListResponseWarehouse'; +/** + * + * @export + * @interface WarehouseWarehouseListResponse + */ +export interface WarehouseWarehouseListResponse { + /** + * Список складов. + * @type {Array} + * @memberof WarehouseWarehouseListResponse + */ + result?: Array; +} +/** + * Check if a given object implements the WarehouseWarehouseListResponse interface. + */ +export declare function instanceOfWarehouseWarehouseListResponse(value: object): value is WarehouseWarehouseListResponse; +export declare function WarehouseWarehouseListResponseFromJSON(json: any): WarehouseWarehouseListResponse; +export declare function WarehouseWarehouseListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseWarehouseListResponse; +export declare function WarehouseWarehouseListResponseToJSON(value?: WarehouseWarehouseListResponse | null): any; diff --git a/dist/models/WarehouseWarehouseListResponse.js b/dist/models/WarehouseWarehouseListResponse.js new file mode 100644 index 0000000..8a58e0c --- /dev/null +++ b/dist/models/WarehouseWarehouseListResponse.js @@ -0,0 +1,45 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseWarehouseListResponse = instanceOfWarehouseWarehouseListResponse; +exports.WarehouseWarehouseListResponseFromJSON = WarehouseWarehouseListResponseFromJSON; +exports.WarehouseWarehouseListResponseFromJSONTyped = WarehouseWarehouseListResponseFromJSONTyped; +exports.WarehouseWarehouseListResponseToJSON = WarehouseWarehouseListResponseToJSON; +const WarehouseListResponseWarehouse_1 = require("./WarehouseListResponseWarehouse"); +/** + * Check if a given object implements the WarehouseWarehouseListResponse interface. + */ +function instanceOfWarehouseWarehouseListResponse(value) { + return true; +} +function WarehouseWarehouseListResponseFromJSON(json) { + return WarehouseWarehouseListResponseFromJSONTyped(json, false); +} +function WarehouseWarehouseListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'result': json['result'] == null ? undefined : (json['result'].map(WarehouseListResponseWarehouse_1.WarehouseListResponseWarehouseFromJSON)), + }; +} +function WarehouseWarehouseListResponseToJSON(value) { + if (value == null) { + return value; + } + return { + 'result': value['result'] == null ? undefined : (value['result'].map(WarehouseListResponseWarehouse_1.WarehouseListResponseWarehouseToJSON)), + }; +} diff --git a/dist/models/WarehouseWorkingDay.d.ts b/dist/models/WarehouseWorkingDay.d.ts new file mode 100644 index 0000000..0eae4aa --- /dev/null +++ b/dist/models/WarehouseWorkingDay.d.ts @@ -0,0 +1,44 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WarehouseWorkingDayDayEnum } from './WarehouseWorkingDayDayEnum'; +/** + * + * @export + * @interface WarehouseWorkingDay + */ +export interface WarehouseWorkingDay { + /** + * + * @type {WarehouseWorkingDayDayEnum} + * @memberof WarehouseWorkingDay + */ + day?: WarehouseWorkingDayDayEnum; + /** + * Время начала работы. + * @type {string} + * @memberof WarehouseWorkingDay + */ + time_from_local?: string; + /** + * Время окончания работы. + * @type {string} + * @memberof WarehouseWorkingDay + */ + time_to_local?: string; +} +/** + * Check if a given object implements the WarehouseWorkingDay interface. + */ +export declare function instanceOfWarehouseWorkingDay(value: object): value is WarehouseWorkingDay; +export declare function WarehouseWorkingDayFromJSON(json: any): WarehouseWorkingDay; +export declare function WarehouseWorkingDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseWorkingDay; +export declare function WarehouseWorkingDayToJSON(value?: WarehouseWorkingDay | null): any; diff --git a/dist/models/WarehouseWorkingDay.js b/dist/models/WarehouseWorkingDay.js new file mode 100644 index 0000000..4ff85ac --- /dev/null +++ b/dist/models/WarehouseWorkingDay.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWarehouseWorkingDay = instanceOfWarehouseWorkingDay; +exports.WarehouseWorkingDayFromJSON = WarehouseWorkingDayFromJSON; +exports.WarehouseWorkingDayFromJSONTyped = WarehouseWorkingDayFromJSONTyped; +exports.WarehouseWorkingDayToJSON = WarehouseWorkingDayToJSON; +const WarehouseWorkingDayDayEnum_1 = require("./WarehouseWorkingDayDayEnum"); +/** + * Check if a given object implements the WarehouseWorkingDay interface. + */ +function instanceOfWarehouseWorkingDay(value) { + return true; +} +function WarehouseWorkingDayFromJSON(json) { + return WarehouseWorkingDayFromJSONTyped(json, false); +} +function WarehouseWorkingDayFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'day': json['day'] == null ? undefined : (0, WarehouseWorkingDayDayEnum_1.WarehouseWorkingDayDayEnumFromJSON)(json['day']), + 'time_from_local': json['time_from_local'] == null ? undefined : json['time_from_local'], + 'time_to_local': json['time_to_local'] == null ? undefined : json['time_to_local'], + }; +} +function WarehouseWorkingDayToJSON(value) { + if (value == null) { + return value; + } + return { + 'day': (0, WarehouseWorkingDayDayEnum_1.WarehouseWorkingDayDayEnumToJSON)(value['day']), + 'time_from_local': value['time_from_local'], + 'time_to_local': value['time_to_local'], + }; +} diff --git a/dist/models/WarehouseWorkingDayDayEnum.d.ts b/dist/models/WarehouseWorkingDayDayEnum.d.ts new file mode 100644 index 0000000..908e909 --- /dev/null +++ b/dist/models/WarehouseWorkingDayDayEnum.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +export declare const WarehouseWorkingDayDayEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type WarehouseWorkingDayDayEnum = typeof WarehouseWorkingDayDayEnum[keyof typeof WarehouseWorkingDayDayEnum]; +export declare function instanceOfWarehouseWorkingDayDayEnum(value: any): boolean; +export declare function WarehouseWorkingDayDayEnumFromJSON(json: any): WarehouseWorkingDayDayEnum; +export declare function WarehouseWorkingDayDayEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseWorkingDayDayEnum; +export declare function WarehouseWorkingDayDayEnumToJSON(value?: WarehouseWorkingDayDayEnum | null): any; diff --git a/dist/models/WarehouseWorkingDayDayEnum.js b/dist/models/WarehouseWorkingDayDayEnum.js new file mode 100644 index 0000000..cc10407 --- /dev/null +++ b/dist/models/WarehouseWorkingDayDayEnum.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WarehouseWorkingDayDayEnum = void 0; +exports.instanceOfWarehouseWorkingDayDayEnum = instanceOfWarehouseWorkingDayDayEnum; +exports.WarehouseWorkingDayDayEnumFromJSON = WarehouseWorkingDayDayEnumFromJSON; +exports.WarehouseWorkingDayDayEnumFromJSONTyped = WarehouseWorkingDayDayEnumFromJSONTyped; +exports.WarehouseWorkingDayDayEnumToJSON = WarehouseWorkingDayDayEnumToJSON; +/** + * Рабочий день: + * - `UNSPECIFIED` — не определён, + * - `MONDAY` — понедельник, + * - `TUESDAY` — вторник, + * - `WEDNESDAY` — среда, + * - `THURSDAY` — четверг, + * - `FRIDAY` — пятница, + * - `SATURDAY` — суббота, + * - `SUNDAY` — воскресенье. + * + * @export + */ +exports.WarehouseWorkingDayDayEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfWarehouseWorkingDayDayEnum(value) { + for (const key in exports.WarehouseWorkingDayDayEnum) { + if (Object.prototype.hasOwnProperty.call(exports.WarehouseWorkingDayDayEnum, key)) { + if (exports.WarehouseWorkingDayDayEnum[key] === value) { + return true; + } + } + } + return false; +} +function WarehouseWorkingDayDayEnumFromJSON(json) { + return WarehouseWorkingDayDayEnumFromJSONTyped(json, false); +} +function WarehouseWorkingDayDayEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WarehouseWorkingDayDayEnumToJSON(value) { + return value; +} diff --git a/dist/models/WarehouseWorkingDaysEnum.d.ts b/dist/models/WarehouseWorkingDaysEnum.d.ts new file mode 100644 index 0000000..ac89d74 --- /dev/null +++ b/dist/models/WarehouseWorkingDaysEnum.d.ts @@ -0,0 +1,30 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WarehouseWorkingDaysEnum: { + readonly UNSPECIFIED: "UNSPECIFIED"; + readonly MONDAY: "MONDAY"; + readonly TUESDAY: "TUESDAY"; + readonly WEDNESDAY: "WEDNESDAY"; + readonly THURSDAY: "THURSDAY"; + readonly FRIDAY: "FRIDAY"; + readonly SATURDAY: "SATURDAY"; + readonly SUNDAY: "SUNDAY"; +}; +export type WarehouseWorkingDaysEnum = typeof WarehouseWorkingDaysEnum[keyof typeof WarehouseWorkingDaysEnum]; +export declare function instanceOfWarehouseWorkingDaysEnum(value: any): boolean; +export declare function WarehouseWorkingDaysEnumFromJSON(json: any): WarehouseWorkingDaysEnum; +export declare function WarehouseWorkingDaysEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarehouseWorkingDaysEnum; +export declare function WarehouseWorkingDaysEnumToJSON(value?: WarehouseWorkingDaysEnum | null): any; diff --git a/dist/models/WarehouseWorkingDaysEnum.js b/dist/models/WarehouseWorkingDaysEnum.js new file mode 100644 index 0000000..5f63071 --- /dev/null +++ b/dist/models/WarehouseWorkingDaysEnum.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WarehouseWorkingDaysEnum = void 0; +exports.instanceOfWarehouseWorkingDaysEnum = instanceOfWarehouseWorkingDaysEnum; +exports.WarehouseWorkingDaysEnumFromJSON = WarehouseWorkingDaysEnumFromJSON; +exports.WarehouseWorkingDaysEnumFromJSONTyped = WarehouseWorkingDaysEnumFromJSONTyped; +exports.WarehouseWorkingDaysEnumToJSON = WarehouseWorkingDaysEnumToJSON; +/** + * + * @export + */ +exports.WarehouseWorkingDaysEnum = { + UNSPECIFIED: 'UNSPECIFIED', + MONDAY: 'MONDAY', + TUESDAY: 'TUESDAY', + WEDNESDAY: 'WEDNESDAY', + THURSDAY: 'THURSDAY', + FRIDAY: 'FRIDAY', + SATURDAY: 'SATURDAY', + SUNDAY: 'SUNDAY' +}; +function instanceOfWarehouseWorkingDaysEnum(value) { + for (const key in exports.WarehouseWorkingDaysEnum) { + if (Object.prototype.hasOwnProperty.call(exports.WarehouseWorkingDaysEnum, key)) { + if (exports.WarehouseWorkingDaysEnum[key] === value) { + return true; + } + } + } + return false; +} +function WarehouseWorkingDaysEnumFromJSON(json) { + return WarehouseWorkingDaysEnumFromJSONTyped(json, false); +} +function WarehouseWorkingDaysEnumFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WarehouseWorkingDaysEnumToJSON(value) { + return value; +} diff --git a/dist/models/WorkingHoursPeriods.d.ts b/dist/models/WorkingHoursPeriods.d.ts new file mode 100644 index 0000000..16cb128 --- /dev/null +++ b/dist/models/WorkingHoursPeriods.d.ts @@ -0,0 +1,39 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MaxPeriodsPeriod } from './MaxPeriodsPeriod'; +import type { MinPeriodsPeriod } from './MinPeriodsPeriod'; +/** + * + * @export + * @interface WorkingHoursPeriods + */ +export interface WorkingHoursPeriods { + /** + * + * @type {MaxPeriodsPeriod} + * @memberof WorkingHoursPeriods + */ + max?: MaxPeriodsPeriod; + /** + * + * @type {MinPeriodsPeriod} + * @memberof WorkingHoursPeriods + */ + min?: MinPeriodsPeriod; +} +/** + * Check if a given object implements the WorkingHoursPeriods interface. + */ +export declare function instanceOfWorkingHoursPeriods(value: object): value is WorkingHoursPeriods; +export declare function WorkingHoursPeriodsFromJSON(json: any): WorkingHoursPeriods; +export declare function WorkingHoursPeriodsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkingHoursPeriods; +export declare function WorkingHoursPeriodsToJSON(value?: WorkingHoursPeriods | null): any; diff --git a/dist/models/WorkingHoursPeriods.js b/dist/models/WorkingHoursPeriods.js new file mode 100644 index 0000000..672d7d5 --- /dev/null +++ b/dist/models/WorkingHoursPeriods.js @@ -0,0 +1,48 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWorkingHoursPeriods = instanceOfWorkingHoursPeriods; +exports.WorkingHoursPeriodsFromJSON = WorkingHoursPeriodsFromJSON; +exports.WorkingHoursPeriodsFromJSONTyped = WorkingHoursPeriodsFromJSONTyped; +exports.WorkingHoursPeriodsToJSON = WorkingHoursPeriodsToJSON; +const MaxPeriodsPeriod_1 = require("./MaxPeriodsPeriod"); +const MinPeriodsPeriod_1 = require("./MinPeriodsPeriod"); +/** + * Check if a given object implements the WorkingHoursPeriods interface. + */ +function instanceOfWorkingHoursPeriods(value) { + return true; +} +function WorkingHoursPeriodsFromJSON(json) { + return WorkingHoursPeriodsFromJSONTyped(json, false); +} +function WorkingHoursPeriodsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'max': json['max'] == null ? undefined : (0, MaxPeriodsPeriod_1.MaxPeriodsPeriodFromJSON)(json['max']), + 'min': json['min'] == null ? undefined : (0, MinPeriodsPeriod_1.MinPeriodsPeriodFromJSON)(json['min']), + }; +} +function WorkingHoursPeriodsToJSON(value) { + if (value == null) { + return value; + } + return { + 'max': (0, MaxPeriodsPeriod_1.MaxPeriodsPeriodToJSON)(value['max']), + 'min': (0, MinPeriodsPeriod_1.MinPeriodsPeriodToJSON)(value['min']), + }; +} diff --git a/dist/models/index.d.ts b/dist/models/index.d.ts new file mode 100644 index 0000000..06eb7e7 --- /dev/null +++ b/dist/models/index.d.ts @@ -0,0 +1,2122 @@ +export * from './ActionParameter'; +export * from './ActionParameterDiscountTypeEnum'; +export * from './ActionParameterVoucherParameter'; +export * from './ActionParameterVoucherParameterTypeEnum'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesRequest'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesResponse'; +export * from './ActionsV1ActionsAutoAddProductsCandidatesResponseProducts'; +export * from './ActionsV1ActionsAutoAddProductsDeleteRequest'; +export * from './ActionsV1ActionsAutoAddProductsDeleteResponse'; +export * from './ActionsV1ActionsAutoAddProductsListRequest'; +export * from './ActionsV1ActionsAutoAddProductsListResponse'; +export * from './ActionsV1ActionsAutoAddProductsListResponseProducts'; +export * from './ActionsV1ActionsAutoAddProductsUpdateRequest'; +export * from './ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponse'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseRejected'; +export * from './ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum'; +export * from './AddStrategyItemsResponseError'; +export * from './AnalyticsAnalyticsGetDataRequest'; +export * from './AnalyticsAnalyticsGetDataResponse'; +export * from './AnalyticsDataRow'; +export * from './AnalyticsDataRowDimension'; +export * from './AnalyticsFilter'; +export * from './AnalyticsGetDataResponseResult'; +export * from './AnalyticsGetStockOnWarehousesRequestWarehouseType'; +export * from './AnalyticsProductQueriesDetailsResponseQuery'; +export * from './AnalyticsProductQueriesRequestSortBy'; +export * from './AnalyticsProductQueriesRequestSortDir'; +export * from './AnalyticsProductQueriesResponseAnalyticsPeriod'; +export * from './AnalyticsSorting'; +export * from './AnalyticsStockOnWarehouseRequest'; +export * from './AnalyticsStockOnWarehouseResponse'; +export * from './AnalyticsStockOnWarehouseResponseResult'; +export * from './AnalyticsStockOnWarehouseResultRows'; +export * from './ApproveDeclineDiscountTasksResponseFailDetail'; +export * from './ArrivalPassListRequestFilter'; +export * from './ArrivalpassArrivalPassCreateRequest'; +export * from './ArrivalpassArrivalPassCreateRequestArrivalPass'; +export * from './ArrivalpassArrivalPassCreateResponse'; +export * from './ArrivalpassArrivalPassDeleteRequest'; +export * from './ArrivalpassArrivalPassListRequest'; +export * from './ArrivalpassArrivalPassListResponse'; +export * from './ArrivalpassArrivalPassListResponseArrivalPass'; +export * from './ArrivalpassArrivalPassUpdateRequest'; +export * from './ArrivalpassArrivalPassUpdateRequestArrivalPass'; +export * from './AssemblyFbsProductListResponseProducts'; +export * from './AvailabilityReason'; +export * from './AvailabilityStatusInvalidReasonEnum'; +export * from './AvailabilityStatusStateEnum'; +export * from './BrandBrandCompanyCertificationListRequest'; +export * from './BrandBrandCompanyCertificationListResponse'; +export * from './BrandCompanyCertificationListResponseBrandCertification'; +export * from './BrandCompanyCertificationListResponseBrandCertificationResult'; +export * from './CancelSupplyResultsCancelSupplyError'; +export * from './CancellationAllowabilityCanNotCancelSupplyReasonEnum'; +export * from './CancellationErrorCode'; +export * from './CancellationStateCancellationError'; +export * from './CargoInfoContentTypeEnum'; +export * from './CargoInfoPlacementZoneTypeEnum'; +export * from './CargoInfoTrackingInfo'; +export * from './CargoInfoTrackingInfoStatusEnum'; +export * from './CargoInfoTrackingInfoTypeEnum'; +export * from './CargoValue'; +export * from './CargoesCreateErrorsErrorReason'; +export * from './CargoesCreateErrorsItemValidation'; +export * from './CargoesCreateErrorsReasonEnum'; +export * from './CargoesCreateInfoV2ResponseResult'; +export * from './CargoesCreateInfoV2ResponseStatusEnum'; +export * from './CargoesCreateV2ErrorsItemValidation'; +export * from './CargoesDeleteStatusResponseStatusEnum'; +export * from './CargoesGetResponseSupply'; +export * from './CargoesPresentRuleCargoCountPerType'; +export * from './CargoesPresentRuleCargoCountPerTypeEnum'; +export * from './CargoesRulesGetResponseSupplyCheck'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateRequest'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateResponse'; +export * from './CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusRequest'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponse'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseResult'; +export * from './CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum'; +export * from './CargoesV1CargoesLabelTransportCreateRequest'; +export * from './CargoesV1CargoesLabelTransportCreateResponse'; +export * from './CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportStatusRequest'; +export * from './CargoesV1CargoesLabelTransportStatusResponse'; +export * from './CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesLabelTransportStatusResponseResult'; +export * from './CargoesV1CargoesLabelTransportStatusResponseStatusEnum'; +export * from './CargoesV1CargoesSuppliesGetRequest'; +export * from './CargoesV1CargoesSuppliesGetResponse'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes'; +export * from './CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportActivateRequest'; +export * from './CargoesV1CargoesTransportActivateResponse'; +export * from './CargoesV1CargoesTransportActivateStatusRequest'; +export * from './CargoesV1CargoesTransportActivateStatusResponse'; +export * from './CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportActivateStatusResponseStatusEnum'; +export * from './CargoesV1CargoesTransportBindRequest'; +export * from './CargoesV1CargoesTransportBindRequestTransportCargoBind'; +export * from './CargoesV1CargoesTransportBindResponse'; +export * from './CargoesV1CargoesTransportBindResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportBindStatusRequest'; +export * from './CargoesV1CargoesTransportBindStatusResponse'; +export * from './CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportBindStatusResponseStatusEnum'; +export * from './CargoesV1CargoesTransportCreateRequest'; +export * from './CargoesV1CargoesTransportCreateRequestTransportCargoes'; +export * from './CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportCreateResponse'; +export * from './CargoesV1CargoesTransportCreateResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportCreateStatusRequest'; +export * from './CargoesV1CargoesTransportCreateStatusResponse'; +export * from './CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResult'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes'; +export * from './CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum'; +export * from './CargoesV1CargoesTransportCreateStatusResponseStatusEnum'; +export * from './CargoesV2CargoesDeleteRequest'; +export * from './CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum'; +export * from './CargoesV2CargoesDeleteResponse'; +export * from './CargoesV2CargoesDeleteResponseErrors'; +export * from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusRequest'; +export * from './CargoesV2CargoesDeleteStatusResponse'; +export * from './CargoesV2CargoesDeleteStatusResponseErrors'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons'; +export * from './CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum'; +export * from './CargoesV2CargoesDeleteStatusResponseStatusEnum'; +export * from './CargoesV2CargoesGetRequest'; +export * from './CargoesV2CargoesGetRequestSupplies'; +export * from './CargoesV2CargoesGetResponse'; +export * from './CargoesV2CargoesGetResponseSupplies'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoes'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesLimits'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoes'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum'; +export * from './CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum'; +export * from './CarriageCarriageGetRequest'; +export * from './CarriageCarriageGetResponse'; +export * from './CarriageCarriageGetResponseCancelAvailability'; +export * from './CarriageDeliveryListV2RequestFilter'; +export * from './CarriageDeliveryListV2ResponseDeliveryMethod'; +export * from './CarriagePickupFee'; +export * from './Carriagev1CarriageContainerApproveRequest'; +export * from './Carriagev1CarriageContainerApproveResponse'; +export * from './Carriagev1CarriageContainerApproveResponseErrorContainers'; +export * from './Carriagev1CarriageContainerCancelRequest'; +export * from './Carriagev1CarriageContainerCancelResponse'; +export * from './Carriagev1CarriageContainerCancelResponseErrorContainers'; +export * from './Carriagev1CarriageContainerCreateRequest'; +export * from './Carriagev1CarriageContainerCreateResponse'; +export * from './Carriagev1CarriageContainerDocumentGetRequest'; +export * from './Carriagev1CarriageContainerDocumentGetResponse'; +export * from './Carriagev1CarriageContainerFillRequest'; +export * from './Carriagev1CarriageContainerFillResponse'; +export * from './Carriagev1CarriageContainerFillResponseErrorPostings'; +export * from './Carriagev1CarriageContainerGetRequest'; +export * from './Carriagev1CarriageContainerGetResponse'; +export * from './Carriagev1CarriageContainerGetResponsePostings'; +export * from './Carriagev1CarriageContainerGetResponsePostingsProducts'; +export * from './Carriagev1CarriageContainerLabelGetRequest'; +export * from './Carriagev1CarriageContainerLabelGetResponse'; +export * from './Carriagev1CarriageContainerLabelGetResponseContent'; +export * from './Carriagev1CarriageContainerLabelGetResponseErrorContainers'; +export * from './Carriagev1CarriageContainerListRequest'; +export * from './Carriagev1CarriageContainerListRequestFilter'; +export * from './Carriagev1CarriageContainerListRequestSortDirEnum'; +export * from './Carriagev1CarriageContainerListResponse'; +export * from './Carriagev1CarriageContainerListResponseContainers'; +export * from './Carriagev1CarriageContainerPlaceIntoRequest'; +export * from './Carriagev1CarriageContainerPlaceIntoResponse'; +export * from './Carriagev1CarriageContainerPlaceIntoResponseErrorContainers'; +export * from './Carriagev1CarriageContainerRemoveFromRequest'; +export * from './Carriagev1CarriageContainerRemoveFromResponse'; +export * from './Carriagev1CarriageContainerRemoveFromResponseErrorContainers'; +export * from './Carriagev1CarriageContainerRemovePostingsRequest'; +export * from './Carriagev1CarriageContainerRemovePostingsResponse'; +export * from './Carriagev1CarriageContainerRemovePostingsResponseErrorPostings'; +export * from './Carriagev1CarriageContainerStatusGetRequest'; +export * from './Carriagev1CarriageContainerStatusGetResponse'; +export * from './Carriagev1CarriageContainerStatusGetResponseContainers'; +export * from './Carriagev1CarriageContainerTaskInfoRequest'; +export * from './Carriagev1CarriageContainerTaskInfoResponse'; +export * from './CertificationV2ProductCertificateCreateRequest'; +export * from './CertificationV2ProductCertificateCreateRequestParams'; +export * from './CertificationV2ProductCertificateCreateResponse'; +export * from './CertificationV2ProductCertificateCreateResponseParam'; +export * from './CertificationV2ProductCertificateCreateResponseParamStateEnum'; +export * from './CertificationV2ProductCertificateCreateResponseStatusEnum'; +export * from './CertificationV2ProductCertificateOptionsResponse'; +export * from './CertificationV2ProductCertificateOptionsResponseOption'; +export * from './CertificationV2ProductCertificateParamsRequest'; +export * from './CertificationV2ProductCertificateParamsRequestParams'; +export * from './CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum'; +export * from './CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum'; +export * from './CertificationV2ProductCertificateParamsRequestParamsExpiredDate'; +export * from './CertificationV2ProductCertificateParamsRequestParamsFile'; +export * from './CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum'; +export * from './CertificationV2ProductCertificateParamsResponse'; +export * from './CertificationV2ProductCertificateParamsResponseParam'; +export * from './ChatChatSendFileRequest'; +export * from './ChatChatSendFileResponse'; +export * from './ChatChatSendMessageRequest'; +export * from './ChatChatSendMessageResponse'; +export * from './ChatChatStartRequest'; +export * from './ChatChatStartResponse'; +export * from './ChatHistoryRequestFilter'; +export * from './ChatInfoChatStatusEnum'; +export * from './ChatInfoChatTypeEnum'; +export * from './ChatMessageContext'; +export * from './ChatMessageModerateImageStatus'; +export * from './ChatRead'; +export * from './ChatStartResponseResult'; +export * from './ClientTimeslotDateRange'; +export * from './ClusterWarehouse'; +export * from './CommentListResponseComment'; +export * from './CommonCreateReportResponse'; +export * from './CompanyTaxSystemEnum'; +export * from './ContentCanNotEditSupplyContentReasonEnum'; +export * from './CourierCoordinates'; +export * from './CreateCompanyPostingsReportRequestWith'; +export * from './CreateDocumentB2BSalesJSONReportResponseBuyer'; +export * from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfo'; +export * from './CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation'; +export * from './CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType'; +export * from './CreateDocumentB2BSalesJSONReportResponseSellerInfo'; +export * from './CreateReportResponse'; +export * from './CreateReportResponseCode'; +export * from './CreateReportResponseCodeNoDeadline'; +export * from './CreateWarehouseFBSRequestAddressCoordinates'; +export * from './CreateWarehouseFBSRequestFirstMileTypeEnum'; +export * from './CreateWarehouseFBSRequestOptions'; +export * from './CreateWarehouseFBSRequestWorkingDaysEnum'; +export * from './CreatedAt'; +export * from './DataFulfillment'; +export * from './DataMacrolocalCluster'; +export * from './DeleteProductsRequestProduct'; +export * from './DeleteProductsResponseDeleteStatus'; +export * from './DeliveryCheckoutResponseSplit'; +export * from './DeliveryCheckoutResponseSplitCommissions'; +export * from './DeliveryCheckoutResponseSplitDeliveryMethod'; +export * from './DeliveryCheckoutResponseSplitItem'; +export * from './DeliveryCheckoutResponseUnavailableReasonEnum'; +export * from './DeliveryCheckoutResponseV2SplitDeliverySchemaEnum'; +export * from './DeliveryCourier'; +export * from './DeliveryDetailsDropOffPointDetails'; +export * from './DeliveryDetailsSupplyType'; +export * from './DeliveryMapRequestViewportCoordinatesLeft'; +export * from './DeliveryMapRequestViewportCoordinatesRight'; +export * from './DeliveryMapResponseCluster'; +export * from './DeliveryMapResponseClusterCoordinates'; +export * from './DeliveryMapResponseClusterCoordinatesLeft'; +export * from './DeliveryMapResponseClusterCoordinatesRight'; +export * from './DeliveryMapResponseClusterViewport'; +export * from './DeliveryMethodAddressDetails'; +export * from './DeliveryMethodCarriage'; +export * from './DeliveryMethodDateRange'; +export * from './DeliveryMethodDeliveryPolygon'; +export * from './DeliveryMethodDeliveryTypeEnum'; +export * from './DeliveryMethodError'; +export * from './DeliveryMethodHolidays'; +export * from './DeliveryMethodListRequestFilter'; +export * from './DeliveryMethodListResponseDeliveryMethod'; +export * from './DeliveryMethodListV2RequestFilter'; +export * from './DeliveryMethodListV2RequestSortDirEnum'; +export * from './DeliveryMethodListV2ResponseDeliveryMethod'; +export * from './DeliveryMethodProperties'; +export * from './DeliveryMethodTimeslot'; +export * from './DeliveryMethodWorkingHours'; +export * from './DeliveryPickUp'; +export * from './DeliveryPointInfoResponsePointDeliveryMethod'; +export * from './DeliveryPointInfoResponsePointDeliveryMethodDeliveryType'; +export * from './DeliveryPointListResponsePointCoordinates'; +export * from './DeliveryTypeCourier'; +export * from './DeliveryTypeCourierCoordinates'; +export * from './DeliveryTypeEnum'; +export * from './DeliveryTypePickUp'; +export * from './DetailsDeliveryDetails'; +export * from './DetailsOthers'; +export * from './DetailsPayment'; +export * from './DetailsReturnDetails'; +export * from './DetailsReturns'; +export * from './DetailsRfbsDetails'; +export * from './DetailsService'; +export * from './DetailsServices'; +export * from './DirEnum'; +export * from './DirectDetailsBySellerDetails'; +export * from './DirectDetailsByTplDetails'; +export * from './DirectDetailsTimeslotDetails'; +export * from './DraftClusterListResponseLogisticCluster'; +export * from './DraftCreateCommonResponseError'; +export * from './DraftCreateCommonResponseErrorItemsValidation'; +export * from './DraftCreateInfoResponseCluster'; +export * from './DraftCreateInfoResponseError'; +export * from './DraftCreateInfoResponseErrorErrorReasonEnum'; +export * from './DraftGetWarehouseFboListResponseCoordinate'; +export * from './DraftGetWarehouseFboListResponseSearch'; +export * from './DraftGetWarehouseFboListResponseWarehouseType'; +export * from './DraftTimeslotInfoResponseResult'; +export * from './DropOffPointCoordinates'; +export * from './DropOffWarehouseTimeslotsDay'; +export * from './DropOffWarehouseTimeslotsDayTimeslot'; +export * from './ErrorData'; +export * from './ErrorErrorLevel'; +export * from './ErrorErrorMessageEnum'; +export * from './ErrorErrorReasonEnum'; +export * from './ErrorHumanTexts'; +export * from './ErrorItemsValidation'; +export * from './ExemplarMark'; +export * from './ExemplarsMarks'; +export * from './FboPostingFboPostingAnalyticsData'; +export * from './FbpCheckActStateResponseErrorReason'; +export * from './FbpCheckConsignmentNoteStateResponseStateType'; +export * from './FbpCreateActResponseCreateActErrorReason'; +export * from './FbpDraftDropOffPointListResponseDropOffPoint'; +export * from './FbpDraftDropOffProvinceListResponseProvince'; +export * from './FbpDraftGetResponseDeclineReason'; +export * from './FbpGetLabelResponseLabelCreationStateTypeEnum'; +export * from './FbpWarehouseListResponseAddressDetailing'; +export * from './FbpWarehouseListResponseWarehouse'; +export * from './Fbpv1DeliveryDetails'; +export * from './Fbpv1Timeslot'; +export * from './FbsPostingBarcodes'; +export * from './FbsPostingDetailCourier'; +export * from './FbsPostingDetailPrrOption'; +export * from './FbsPostingMoveStatusResponseMoveStatus'; +export * from './FbsPostingProductExemplarCreateOrGetV6ResponseProduct'; +export * from './FbsPostingProductExemplarSetV6RequestExemplars'; +export * from './FbsPostingProductExemplarSetV6RequestProducts'; +export * from './FbsPostingShipV4RequestPackage'; +export * from './FbsPostingShipV4RequestPackageProduct'; +export * from './FbsPostingShipV4RequestWith'; +export * from './FbsPostingShipV4ResponseShipAdditionalData'; +export * from './FbsPostingTrackingNumberSetRequestTrackingNumber'; +export * from './Fbsv4FbsPostingShipV4Request'; +export * from './Fbsv4FbsPostingShipV4Response'; +export * from './Fbsv4PostingProductDetailWithoutDimensions'; +export * from './FilterPeriod'; +export * from './FilterStatusEnum'; +export * from './FilterTimeslotFromRange'; +export * from './FilterWithQuant'; +export * from './FinanceCashFlowStatementListResponseCashFlow'; +export * from './FinanceCashFlowStatementListResponseDeliveryService'; +export * from './FinanceCashFlowStatementListResponseDetails'; +export * from './FinanceCashFlowStatementListResponseDetailsOthers'; +export * from './FinanceCashFlowStatementListResponseReturnService'; +export * from './FinanceCashFlowStatementListResponseService'; +export * from './FinanceTransactionListV3RequestFilter'; +export * from './FinanceTransactionListV3ResponseOperation'; +export * from './FinanceTransactionTotalsV3RequestDate'; +export * from './FinanceV1GetFinanceAccrualByDayRequest'; +export * from './FinanceV1GetFinanceAccrualByDayResponse'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrual'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPosting'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery'; +export * from './FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService'; +export * from './FinanceV1GetFinanceAccrualPostingsRequest'; +export * from './FinanceV1GetFinanceAccrualPostingsResponse'; +export * from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals'; +export * from './FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual'; +export * from './FinanceV1GetFinanceAccrualTypesResponse'; +export * from './FinanceV1GetFinanceAccrualTypesResponseAccrualType'; +export * from './Financev3FinanceTransactionListV3Request'; +export * from './Financev3FinanceTransactionListV3Response'; +export * from './Financev3FinanceTransactionListV3ResponseResult'; +export * from './Financev3FinanceTransactionTotalsV3Request'; +export * from './Financev3FinanceTransactionTotalsV3Response'; +export * from './Financev3FinanceTransactionTotalsV3ResponseResult'; +export * from './Financev3Period'; +export * from './FirstMileTypeEnum'; +export * from './GetCarriageAvailableListResponseResult'; +export * from './GetCompetitorsResponseCompetitorInfo'; +export * from './GetConditionalCancellationListV2RequestFilters'; +export * from './GetConditionalCancellationListV2RequestWith'; +export * from './GetConditionalCancellationListV2ResponseCancellationReason'; +export * from './GetConditionalCancellationListV2ResponseResult'; +export * from './GetConditionalCancellationListV2ResponseState'; +export * from './GetDeliveryMethodReturnSettingsV1ResponseReturnSetting'; +export * from './GetDiscountTaskListV2ResponseTask'; +export * from './GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum'; +export * from './GetEtgbRequestDate'; +export * from './GetEtgbResponseResult'; +export * from './GetEtgbResponseResultEtgb'; +export * from './GetFBSRatingIndexInfoV1ResponseIndexDynamics'; +export * from './GetFinanceBalanceV1ResponseCashflows'; +export * from './GetFinanceBalanceV1ResponseReturns'; +export * from './GetFinanceBalanceV1ResponseReturnsDetails'; +export * from './GetFinanceBalanceV1ResponseSales'; +export * from './GetFinanceBalanceV1ResponseSalesDetails'; +export * from './GetFinanceBalanceV1ResponseService'; +export * from './GetFinanceBalanceV1ResponseTotal'; +export * from './GetFinanceProductsBuyoutResponseProduct'; +export * from './GetImportProductsInfoResponseResultItem'; +export * from './GetProductAttributesResponseImage'; +export * from './GetProductAttributesV3ResponseDictionaryValue'; +export * from './GetProductAttributesV4ResponseAttribute'; +export * from './GetProductInfoListResponseAvailability'; +export * from './GetProductInfoListResponseCommission'; +export * from './GetProductInfoListResponseError'; +export * from './GetProductInfoListResponseModelInfo'; +export * from './GetProductInfoListResponsePriceIndexes'; +export * from './GetProductInfoListResponseSource'; +export * from './GetProductInfoListResponseStatuses'; +export * from './GetProductInfoListResponseStocks'; +export * from './GetProductInfoListResponseStocksStock'; +export * from './GetProductInfoListResponseVisibilityDetails'; +export * from './GetProductInfoPricesResponseItemPriceIndexes'; +export * from './GetProductInfoStocksResponseStock'; +export * from './GetProductPlacementZoneInfoResponseProductPlacement'; +export * from './GetProductRatingBySkuResponseProductRating'; +export * from './GetProductRatingBySkuResponseRatingCondition'; +export * from './GetProductRatingBySkuResponseRatingGroup'; +export * from './GetProductRatingBySkuResponseRatingImproveAttribute'; +export * from './GetRealizationReportByDayResponse'; +export * from './GetRealizationReportByDayResponseRow'; +export * from './GetRealizationReportResponseV2Header'; +export * from './GetRealizationReportResponseV2Result'; +export * from './GetRealizationReportResponseV2Row'; +export * from './GetReturnsListRequestFilter'; +export * from './GetReturnsListResponseAdditionalInfo'; +export * from './GetReturnsListResponseCompensation'; +export * from './GetReturnsListResponseCompensationStatus'; +export * from './GetReturnsListResponseExemplar'; +export * from './GetReturnsListResponseLogistic'; +export * from './GetReturnsListResponsePlaceNow'; +export * from './GetReturnsListResponsePlaceTarget'; +export * from './GetReturnsListResponseProduct'; +export * from './GetReturnsListResponseReturnsItem'; +export * from './GetReturnsListResponseStorage'; +export * from './GetReturnsListResponseVisual'; +export * from './GetReturnsListResponseVisualStatus'; +export * from './GetSellerActionsV1ResponseAction'; +export * from './GetStrategyIDsByItemIDsResponseProductInfo'; +export * from './GetStrategyListResponseStrategy'; +export * from './GetSupplyOrderBundleRequestItemTagsCalculation'; +export * from './GetUploadQuotaResponseDailyCreate'; +export * from './GetUploadQuotaResponseDailyUpdate'; +export * from './GetUploadQuotaResponseTotal'; +export * from './GetWarehouseFBSOperationStatusResponseError'; +export * from './GetWarehouseFBSOperationStatusResponseResult'; +export * from './GetWarehouseFBSOperationStatusResponseStatusEnum'; +export * from './GetWarehouseFBSOperationStatusResponseTypeEnum'; +export * from './GiveoutInfoResponseArticleDetails'; +export * from './GiveoutListResponseGiveoutDetails'; +export * from './GoogleTypeDate'; +export * from './GooglerpcStatus'; +export * from './HumanTextsParam'; +export * from './ImportProductRequestPromotion'; +export * from './ImportProductsRequestPdfList'; +export * from './InvoiceGetV2ResponseResult'; +export * from './ItemBundleSummary'; +export * from './ItemCommissionsv5'; +export * from './ItemMarketing'; +export * from './ItemPricev5'; +export * from './ItemSize'; +export * from './ItemStatusError'; +export * from './ItemValidationErrorType'; +export * from './ItemsValidationRejectedItems'; +export * from './LanguageLanguage'; +export * from './ListDropOffPointsForCreateFBSWarehouseRequestSearch'; +export * from './ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +export * from './ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint'; +export * from './ListDropOffPointsForUpdateFBSWarehouseRequestSearch'; +export * from './ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum'; +export * from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint'; +export * from './ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum'; +export * from './ListFBSRatingIndexPostingsV1RequestFilter'; +export * from './ListFBSRatingIndexPostingsV1ResponseError'; +export * from './ListPostingCodesRequestFilter'; +export * from './ListPostingCodesRequestWithParams'; +export * from './ListPostingCodesResponsePosting'; +export * from './LogisticTimeslotDateRange'; +export * from './MacrolocalClusterCountry'; +export * from './MarketingAction'; +export * from './MaxPeriodsPeriod'; +export * from './MinPeriodsPeriod'; +export * from './MinUtilizationMoney'; +export * from './MoneyMoney'; +export * from './MoneyMoneyAccrued'; +export * from './MoneyMoneyBonus'; +export * from './MoneyMoneyCoinvestment'; +export * from './MoneyMoneyComissions'; +export * from './MoneyMoneyCommission'; +export * from './MoneyMoneyCurrentTariffCharge'; +export * from './MoneyMoneyCurrentTariffMinCharge'; +export * from './MoneyMoneyCustomerPrice'; +export * from './MoneyMoneyFBPget'; +export * from './MoneyMoneyNextTariffCharge'; +export * from './MoneyMoneyNextTariffMinCharge'; +export * from './MoneyMoneyPriceWithoutVat'; +export * from './MoneyMoneySaleAmount'; +export * from './MoneyMoneySaleCommission'; +export * from './MoneyMoneySalePrice'; +export * from './MoneyMoneySelf'; +export * from './MoneyMoneySellerPrice'; +export * from './MoneyMoneySplitCommission'; +export * from './MoneyMoneySupplyActAmount'; +export * from './MoneyMoneySupplyActAmountVat'; +export * from './MoneyMoneySupplyActAmountWithoutVat'; +export * from './MoneyMoneyTotalAccrued'; +export * from './MoneyMoneyTotalAmount'; +export * from './MoneyPostingMoney'; +export * from './NotificationV1CheckNotificationRequest'; +export * from './NotificationV1CheckNotificationResponse'; +export * from './NotificationV1CheckNotificationResponseError'; +export * from './NotificationV1CheckNotificationResponseErrorTypeEnum'; +export * from './NotificationV1DeleteNotificationRequest'; +export * from './NotificationV1EnableNotificationRequest'; +export * from './NotificationV1GetNotificationPushTypeListResponse'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationType'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint'; +export * from './NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum'; +export * from './NotificationV1NotificationListResponse'; +export * from './NotificationV1NotificationListResponseNotification'; +export * from './NotificationV1NotificationListResponseNotificationNotificationType'; +export * from './NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum'; +export * from './NotificationV1SetNotificationRequest'; +export * from './NotificationV1SetNotificationRequestTypeEnum'; +export * from './NotificationV1UpdateNotificationRequest'; +export * from './NotificationV1UpdateNotificationRequestTypeEnum'; +export * from './OperationItem'; +export * from './OperationPosting'; +export * from './OperationService'; +export * from './OrderCancelCheckResponsePosting'; +export * from './OrderCancelCheckResponsePostingGroup'; +export * from './OrderCreateRequestBuyer'; +export * from './OrderCreateRequestDelivery'; +export * from './OrderCreateRequestDeliveryPrice'; +export * from './OrderCreateRequestPrice'; +export * from './OrderCreateRequestRecipient'; +export * from './OrderCreateRequestSplit'; +export * from './OrderCreateRequestV2DeliverySchemaEnum'; +export * from './OrderDropOffWarehouse'; +export * from './OrderOrderStateEnum'; +export * from './OrderOrderTags'; +export * from './OrderSupply'; +export * from './OrderSupplyStateEnum'; +export * from './ParameterAutoStopActionReasonEnum'; +export * from './ParameterDiscountLevels'; +export * from './ParameterPickedSegment'; +export * from './PickedSegmentSegment'; +export * from './PickedSegmentSegmentTypeEnum'; +export * from './PointDeliveryMethodCoordinates'; +export * from './PolygonBindRequestpolygon'; +export * from './PolygonBindRequestwhLocation'; +export * from './PolygonListResponsePolygon'; +export * from './Polygonv1PolygonBindRequest'; +export * from './Polygonv1PolygonCreateRequest'; +export * from './Polygonv1PolygonCreateResponse'; +export * from './PostingAdditionalDataItem'; +export * from './PostingBooleanResponse'; +export * from './PostingCancelFbsPostingRequest'; +export * from './PostingCancelReason'; +export * from './PostingCancelReasonListResponse'; +export * from './PostingCancelReasonRequest'; +export * from './PostingCancelReasonResponse'; +export * from './PostingErrorTypeEnum'; +export * from './PostingExemplarInfoExemplarError'; +export * from './PostingFBSActCheckStatusResponseStatus'; +export * from './PostingFBSActCreateResponseAct'; +export * from './PostingFboPostingWithParams'; +export * from './PostingFbsPostingDeliveredRequest'; +export * from './PostingFbsPostingDeliveringRequest'; +export * from './PostingFbsPostingLastMileRequest'; +export * from './PostingFbsPostingMoveStatusResponse'; +export * from './PostingFbsPostingTrackingNumberSetRequest'; +export * from './PostingFbsTraceableSplitResponsePostingProduct'; +export * from './PostingFinancialDataProduct'; +export * from './PostingFinancialDataProductV2'; +export * from './PostingGetFboPostingListRequest'; +export * from './PostingGetFboPostingListRequestFilter'; +export * from './PostingGetFboPostingRequest'; +export * from './PostingGetFbsPostingByBarcodeRequest'; +export * from './PostingLegalInfo'; +export * from './PostingMarksResponseIssuedExemplar'; +export * from './PostingMarksResponseNonIssuedExemplar'; +export * from './PostingMovePostingRequest'; +export * from './PostingPostingAnalyticsData'; +export * from './PostingPostingFBSActCheckStatusRequest'; +export * from './PostingPostingFBSActCheckStatusResponse'; +export * from './PostingPostingFBSActCreateRequest'; +export * from './PostingPostingFBSActCreateResponse'; +export * from './PostingPostingFBSActGetContainerLabelsRequest'; +export * from './PostingPostingFBSActGetContainerLabelsResponse'; +export * from './PostingPostingFBSGetActRequest'; +export * from './PostingPostingFBSGetActResponse'; +export * from './PostingPostingFBSPackageLabelRequest'; +export * from './PostingPostingFBSPackageLabelResponse'; +export * from './PostingPostingFinancialData'; +export * from './PostingPostingProduct'; +export * from './PostingPostingProductCancelRequest'; +export * from './PostingPostingProductCancelResponse'; +export * from './PostingProductCancelRequestItem'; +export * from './PostingV1GetFbpPostingRequest'; +export * from './PostingV1GetFbpPostingResponse'; +export * from './PostingV1GetFbpPostingResponsePosting'; +export * from './PostingV1GetFbpPostingResponsePostingAnalyticsData'; +export * from './PostingV1GetFbpPostingResponsePostingCancellation'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialData'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProducts'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission'; +export * from './PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission'; +export * from './PostingV1GetFbpPostingResponsePostingProducts'; +export * from './PostingV1PostingFbpListRequest'; +export * from './PostingV1PostingFbpListRequestFilter'; +export * from './PostingV1PostingFbpListRequestSortDirEnum'; +export * from './PostingV1PostingFbpListResponse'; +export * from './PostingV1PostingFbpListResponsePostings'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialData'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProducts'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission'; +export * from './PostingV1PostingFbpListResponsePostingsProducts'; +export * from './PostingV2FboSinglePostingExternalOrder'; +export * from './PostingV2PostingDigitalListRequest'; +export * from './PostingV2PostingDigitalListRequestFilter'; +export * from './PostingV2PostingDigitalListRequestSortDirEnum'; +export * from './PostingV2PostingDigitalListRequestWith'; +export * from './PostingV2PostingDigitalListResponse'; +export * from './PostingV2PostingDigitalListResponsePostings'; +export * from './PostingV2PostingDigitalListResponsePostingsAdditionalData'; +export * from './PostingV2PostingDigitalListResponsePostingsAnalyticsData'; +export * from './PostingV2PostingDigitalListResponsePostingsCancellation'; +export * from './PostingV2PostingDigitalListResponsePostingsExternalOrder'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialData'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialDataProducts'; +export * from './PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV2PostingDigitalListResponsePostingsLegalInfo'; +export * from './PostingV2PostingDigitalListResponsePostingsProducts'; +export * from './PostingV3FbsPostingContainerCargoTypeEnum'; +export * from './PostingV3FbsPostingDetailExternalOrder'; +export * from './PostingV3FbsPostingDetailSortingCenter'; +export * from './PostingV3FbsPostingSortingCenter'; +export * from './PostingV3PostingFboListRequest'; +export * from './PostingV3PostingFboListRequestFilter'; +export * from './PostingV3PostingFboListRequestSortDirEnum'; +export * from './PostingV3PostingFboListRequestWith'; +export * from './PostingV3PostingFboListResponse'; +export * from './PostingV3PostingFboListResponsePostings'; +export * from './PostingV3PostingFboListResponsePostingsAdditionalData'; +export * from './PostingV3PostingFboListResponsePostingsAnalyticsData'; +export * from './PostingV3PostingFboListResponsePostingsCancellation'; +export * from './PostingV3PostingFboListResponsePostingsExternalOrder'; +export * from './PostingV3PostingFboListResponsePostingsFinancialData'; +export * from './PostingV3PostingFboListResponsePostingsFinancialDataProducts'; +export * from './PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV3PostingFboListResponsePostingsLegalInfo'; +export * from './PostingV3PostingFboListResponsePostingsProducts'; +export * from './PostingV4PostingFbsListRequest'; +export * from './PostingV4PostingFbsListRequestFilter'; +export * from './PostingV4PostingFbsListRequestFilterLastChangedStatusDate'; +export * from './PostingV4PostingFbsListRequestSortDirEnum'; +export * from './PostingV4PostingFbsListRequestWith'; +export * from './PostingV4PostingFbsListResponse'; +export * from './PostingV4PostingFbsListResponsePostings'; +export * from './PostingV4PostingFbsListResponsePostingsAddressee'; +export * from './PostingV4PostingFbsListResponsePostingsAnalyticsData'; +export * from './PostingV4PostingFbsListResponsePostingsBarcodes'; +export * from './PostingV4PostingFbsListResponsePostingsCancellation'; +export * from './PostingV4PostingFbsListResponsePostingsContainer'; +export * from './PostingV4PostingFbsListResponsePostingsCustomer'; +export * from './PostingV4PostingFbsListResponsePostingsCustomerAddress'; +export * from './PostingV4PostingFbsListResponsePostingsDeliveryMethod'; +export * from './PostingV4PostingFbsListResponsePostingsExternalOrder'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialData'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialDataProducts'; +export * from './PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV4PostingFbsListResponsePostingsLegalInfo'; +export * from './PostingV4PostingFbsListResponsePostingsOptional'; +export * from './PostingV4PostingFbsListResponsePostingsProducts'; +export * from './PostingV4PostingFbsListResponsePostingsRequirements'; +export * from './PostingV4PostingFbsListResponsePostingsSortingCenter'; +export * from './PostingV4PostingFbsListResponsePostingsTariffication'; +export * from './PostingV4PostingFbsListResponsePostingsTarifficationStep'; +export * from './PostingV4PostingFbsUnfulfilledListRequest'; +export * from './PostingV4PostingFbsUnfulfilledListRequestFilter'; +export * from './PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate'; +export * from './PostingV4PostingFbsUnfulfilledListRequestSortDirEnum'; +export * from './PostingV4PostingFbsUnfulfilledListRequestWith'; +export * from './PostingV4PostingFbsUnfulfilledListResponse'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostings'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainer'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsOptional'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsProducts'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication'; +export * from './PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep'; +export * from './PostinglistV3status'; +export * from './Postingv1GetCarriageAvailableListRequest'; +export * from './Postingv1GetCarriageAvailableListResponse'; +export * from './Postingv3FbsPostingWithParams'; +export * from './Postingv3FbsPostingWithParamsExamplars'; +export * from './Postingv3GetFbsPostingListRequest'; +export * from './Postingv3GetFbsPostingListRequestFilter'; +export * from './Postingv3GetFbsPostingRequest'; +export * from './Postingv3GetFbsPostingUnfulfilledListRequest'; +export * from './Postingv3GetFbsPostingUnfulfilledListRequestFilter'; +export * from './Postingv3GetFbsPostingUnfulfilledListResponse'; +export * from './Postingv3GetFbsPostingUnfulfilledListResponseResult'; +export * from './Postingv3PostingMultiBoxQtySetV3Request'; +export * from './Postingv3PostingMultiBoxQtySetV3Response'; +export * from './Postingv3PostingMultiBoxQtySetV3ResponseResult'; +export * from './PremiumScoresScore'; +export * from './PriceIndexesColorIndex'; +export * from './PriceIndexesIndexDataExternal'; +export * from './PriceIndexesIndexDataOzon'; +export * from './PriceIndexesIndexDataSelf'; +export * from './PriceIndexesIndexExternalData'; +export * from './PriceIndexesIndexOzonData'; +export * from './PriceIndexesIndexSelfData'; +export * from './ProductBooleanResponse'; +export * from './ProductCertificateProductsListResponseProduct'; +export * from './ProductCertificateUnbindResponseItem'; +export * from './ProductCertificationListResponseCertification'; +export * from './ProductCertificationListResponseCertificationResult'; +export * from './ProductCertificationListResponseCertificationv2'; +export * from './ProductCurrencyEnum'; +export * from './ProductExemplar'; +export * from './ProductGetImportProductsInfoRequest'; +export * from './ProductGetImportProductsInfoResponse'; +export * from './ProductGetImportProductsInfoResponseResult'; +export * from './ProductGetProductAttributesV3ResponseDictionaryValue'; +export * from './ProductGetProductAttributesV4ResponseAttribute'; +export * from './ProductGetProductInfoDescriptionRequest'; +export * from './ProductGetProductInfoDescriptionResponse'; +export * from './ProductGetProductInfoDescriptionResponseProduct'; +export * from './ProductGetProductInfoPricesV5ResponseItem'; +export * from './ProductImportProductsBySKURequest'; +export * from './ProductImportProductsBySKURequestItem'; +export * from './ProductImportProductsBySKUResponse'; +export * from './ProductImportProductsBySKUResponseResult'; +export * from './ProductImportProductsPricesRequest'; +export * from './ProductImportProductsPricesRequestPrice'; +export * from './ProductImportProductsPricesResponse'; +export * from './ProductImportProductsPricesResponseError'; +export * from './ProductImportProductsPricesResponseProcessResult'; +export * from './ProductInfoWarehouseStocksResponseStocks'; +export * from './ProductInfoWrongVolumeResponseWrongVolumeProduct'; +export * from './ProductPlacementPlacementZoneEnum'; +export * from './ProductProductArchiveRequest'; +export * from './ProductProductCertificateAccordanceTypesResponse'; +export * from './ProductProductCertificateAccordanceTypesResponseType'; +export * from './ProductProductCertificateBindRequest'; +export * from './ProductProductCertificateTypesResponse'; +export * from './ProductProductCertificateTypesResponseType'; +export * from './ProductProductCertificationListRequest'; +export * from './ProductProductCertificationListResponse'; +export * from './ProductProductInfoPicturesResponsePicture'; +export * from './ProductProductUnarchiveRequest'; +export * from './ProductUpdateOfferIdRequestUpdateOfferId'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboRequest'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboResponse'; +export * from './ProductV1GetProductInfoStocksByWarehouseFboResponseProduct'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndex'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData'; +export * from './ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf'; +export * from './ProductV1ProductVisibilityInfoRequest'; +export * from './ProductV1ProductVisibilityInfoResponse'; +export * from './ProductV1ProductVisibilityInfoResponseItem'; +export * from './ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum'; +export * from './ProductV1ProductVisibilitySetRequest'; +export * from './ProductV1ProductVisibilitySetRequestItemPlacement'; +export * from './ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum'; +export * from './ProductV1ProductVisibilitySetResponse'; +export * from './ProductV1ProductVisibilitySetResponseItems'; +export * from './ProductV1ProductVisibilitySetResponseItemsErrors'; +export * from './ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum'; +export * from './ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum'; +export * from './ProductV1QuantInfoRequest'; +export * from './ProductV1QuantInfoResponse'; +export * from './ProductV1QuantInfoResponseResultItems'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfo'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuants'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice'; +export * from './ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts'; +export * from './ProductV1QuantListRequest'; +export * from './ProductV1QuantListResponse'; +export * from './ProductV1QuantListResponseProducts'; +export * from './ProductV1QuantListResponseProductsQuants'; +export * from './ProductV4GetUploadQuotaResponseOperationLimits'; +export * from './ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum'; +export * from './ProductsPostings'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsRequest'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsResponse'; +export * from './Productsv1GetProductInfoStocksByWarehouseFbsResponseResult'; +export * from './Productv1ProductImportPicturesRequest'; +export * from './Productv1ProductInfoPicturesResponse'; +export * from './Productv1ProductInfoPicturesResponseResult'; +export * from './Productv2DeleteProductsRequest'; +export * from './Productv2DeleteProductsResponse'; +export * from './Productv2GetProductListRequestFilterFilterVisibility'; +export * from './Productv2ProductsStocksRequest'; +export * from './Productv2ProductsStocksRequestStock'; +export * from './Productv2ProductsStocksResponse'; +export * from './Productv2ProductsStocksResponseError'; +export * from './Productv2ProductsStocksResponseResult'; +export * from './Productv3GetProductListRequest'; +export * from './Productv3GetProductListRequestFilter'; +export * from './Productv3GetProductListRequestFilterFilterVisibility'; +export * from './Productv3GetProductListResponse'; +export * from './Productv3GetProductListResponseItem'; +export * from './Productv3GetProductListResponseItemQuant'; +export * from './Productv3GetProductListResponseResult'; +export * from './Productv4Filter'; +export * from './Productv4GetProductAttributesV4Request'; +export * from './Productv4GetProductAttributesV4Response'; +export * from './Productv4GetProductAttributesV4ResponseResult'; +export * from './Productv5Filter'; +export * from './Productv5GetProductInfoPricesV5Request'; +export * from './Productv5GetProductInfoPricesV5Response'; +export * from './Productv5GetProductListRequestFilterFilterVisibility'; +export * from './ProtobufAny'; +export * from './ProtobufAnyV2DeliveryCheckout'; +export * from './QuestionV1GetQuestionListRequestSortDirEnum'; +export * from './QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum'; +export * from './RatingItemChange'; +export * from './RatingStatusEnum'; +export * from './RatingSummaryV1ResponseGroup'; +export * from './RatingSummaryV1ResponseLocalIndex'; +export * from './RatingValue'; +export * from './RatingValueCurrent'; +export * from './RatingValuePast'; +export * from './ReasonHumanText'; +export * from './ReceiptsSellerListResponseReceipt'; +export * from './ReceiptsSellerListResponseReceiptOperationTypeEnum'; +export * from './ReceiptsSellerListResponseReceiptTypeEnum'; +export * from './RejectedItemsReasonEnum'; +export * from './RejectedItemsRejectionReasonEnum'; +export * from './RejectedItemsRestrictions'; +export * from './RelatedPostingCancelReason'; +export * from './RelatedPostingCancelReasons'; +export * from './ReportCommonReportAdditionalDataItem'; +export * from './ReportCreateCompanyPostingsReportRequest'; +export * from './ReportCreateCompanyPostingsReportRequestFilter'; +export * from './ReportCreateCompanyProductsReportRequest'; +export * from './ReportCreateCompanyProductsReportRequestVisibility'; +export * from './ReportCreateDiscountedResponse'; +export * from './ReportCreateReportResponse'; +export * from './ReportListResponseResult'; +export * from './ReportMarkedProductsSalesCreateRequestDate'; +export * from './ReportReport'; +export * from './ReportReportInfoRequest'; +export * from './ReportReportInfoResponse'; +export * from './ReportReportListRequest'; +export * from './ReportReportListResponse'; +export * from './ReportReportinfo'; +export * from './ReportV1CreateCompanyFinanceRealizationPostingReportRequest'; +export * from './ReportV1CreateCompanyFinanceRealizationPostingReportResponse'; +export * from './RestrictionsReasonEnum'; +export * from './ResultCargo'; +export * from './ResultData'; +export * from './ResultDropOffWarehouseTimeslots'; +export * from './ResultError'; +export * from './ResultUnprintedPosting'; +export * from './ReturnSettingCourierDetails'; +export * from './ReturnSettingTransportCompanyDetails'; +export * from './ReturnsCompanyFbsInfoRequestPagination'; +export * from './ReturnsCompanyFbsInfoResponseDropOffPoints'; +export * from './ReturnsCompanyFbsInfoResponsePassInfo'; +export * from './ReturnsRfbsGetResponseReturns'; +export * from './ReturnsRfbsGetV2ResponseAvailableAction'; +export * from './ReturnsRfbsGetV2ResponseClientReturnMethodType'; +export * from './ReturnsRfbsGetV2ResponseRejectionReason'; +export * from './ReturnsRfbsGetV2ResponseReturnReason'; +export * from './ReturnsRfbsListResponseReturns'; +export * from './ReturnsSettingsUtilizationHistoryResponseHistory'; +export * from './ReturnsSettingsUtilizationInfoResponseUtilizationSettings'; +export * from './ReturnsSettingsUtilizationUpdateRequestUtilizationPrice'; +export * from './ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects'; +export * from './ReviewInfoResponsePhoto'; +export * from './ReviewInfoResponseVideo'; +export * from './ReviewListResponseReview'; +export * from './ReviewV1CommentListRequestFilter'; +export * from './ReviewV2ReviewChangeStatusV2Request'; +export * from './ReviewV2ReviewChangeStatusV2RequestStatusEnum'; +export * from './ReviewV2ReviewCommentDeleteV2Request'; +export * from './ReviewV2ReviewCountV2Response'; +export * from './ReviewV2ReviewInfoV2Request'; +export * from './ReviewV2ReviewInfoV2Response'; +export * from './ReviewV2ReviewInfoV2ResponseOrderStatusEnum'; +export * from './ReviewV2ReviewInfoV2ResponsePhoto'; +export * from './ReviewV2ReviewInfoV2ResponseStatusEnum'; +export * from './ReviewV2ReviewInfoV2ResponseVideo'; +export * from './ReviewV2ReviewListV2Request'; +export * from './ReviewV2ReviewListV2RequestFilters'; +export * from './ReviewV2ReviewListV2RequestFiltersOrderStatusEnum'; +export * from './ReviewV2ReviewListV2RequestFiltersStatusEnum'; +export * from './ReviewV2ReviewListV2RequestSortDirEnum'; +export * from './ReviewV2ReviewListV2Response'; +export * from './ReviewV2ReviewListV2ResponseReview'; +export * from './ReviewV2ReviewListV2ResponseReviewOrderStatusEnum'; +export * from './ReviewV2ReviewListV2ResponseReviewStatusEnum'; +export * from './RolesByTokenResponseRoles'; +export * from './RowItem'; +export * from './RowItemCommission'; +export * from './RowItemCommissionReturn'; +export * from './RowItemLegalEntityDocument'; +export * from './RowItemOrder'; +export * from './RpcStatus'; +export * from './RpcStatusV1FinanceRealizationPosting'; +export * from './RpcStatusV1PolygonBind'; +export * from './RpcStatusV1PolygonCreate'; +export * from './RpcStatusV2DeliveryCheckout'; +export * from './SearchAttributeValuesResponseValue'; +export * from './SearchQueriesTextRequestSortBy'; +export * from './SearchQueriesTextRequestSortDir'; +export * from './SellerActionsListRequestActionTypeEnum'; +export * from './SellerActionsListRequestStatusEnum'; +export * from './SellerActionsListResponseAction'; +export * from './SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel'; +export * from './SellerApiActivateProductV1Request'; +export * from './SellerApiGetSellerActionsV1Response'; +export * from './SellerApiGetSellerProductV1Request'; +export * from './SellerApiGetSellerProductV1Response'; +export * from './SellerApiGetSellerProductV1ResponseResult'; +export * from './SellerApiProduct'; +export * from './SellerApiProductIDsV1Request'; +export * from './SellerApiProductPrice'; +export * from './SellerApiProductV1Response'; +export * from './SellerApiProductV1ResponseDeactivate'; +export * from './SellerApiProductV1ResponseProduct'; +export * from './SellerApiProductV1ResponseProductDeactivate'; +export * from './SellerApiProductV1ResponseResult'; +export * from './SellerApiProductV1ResponseResultDeactivate'; +export * from './SellerInfoResponseCompany'; +export * from './SellerInfoResponseRating'; +export * from './SellerInfoResponseRatingTypeEnum'; +export * from './SellerInfoResponseSubscription'; +export * from './SellerInfoResponseSubscriptionTypeEnum'; +export * from './SellerOzonLogisticsInfoResponseAvailableSchemasEnum'; +export * from './SellerReturnsv1MoneyCommission'; +export * from './SellerReturnsv1MoneyProduct'; +export * from './SellerReturnsv1MoneyStorage'; +export * from './SellerReturnsv1MoneyUtilization'; +export * from './SellerReturnsv1MoneyWithoutCommission'; +export * from './SellerSellerAPIArrivalPassCreateRequest'; +export * from './SellerSellerAPIArrivalPassCreateRequestArrivalPass'; +export * from './SellerSellerAPIArrivalPassCreateResponse'; +export * from './SellerSellerAPIArrivalPassDeleteRequest'; +export * from './SellerSellerAPIArrivalPassUpdateRequest'; +export * from './SellerSellerAPIArrivalPassUpdateRequestArrivalPass'; +export * from './SellerServiceanalyticsDimension'; +export * from './SetPostingsResponseResult'; +export * from './SourceShipmentType'; +export * from './SplitDeliveryMethod'; +export * from './SplitItem'; +export * from './StatusEnum'; +export * from './StockShipmentType'; +export * from './StocksImportRequestItemStock'; +export * from './StocksImportResponseItemStatus'; +export * from './SupplierAvailableWarehousesResponseCapacity'; +export * from './SupplierAvailableWarehousesResponseResult'; +export * from './SupplierAvailableWarehousesResponseSchedule'; +export * from './SupplierAvailableWarehousesResponseWarehouse'; +export * from './SupplyCancellationAllowability'; +export * from './SupplyCargoInfo'; +export * from './SupplyCargoInfoTypeEnum'; +export * from './SupplyCheckCargoesPresentRule'; +export * from './SupplyCheckEditDeadlineExpireRule'; +export * from './SupplyCheckExpireDatePresentedRule'; +export * from './SupplyCheckIsValidDistributionRule'; +export * from './SupplyCheckPackageUnitWithDistributionRule'; +export * from './SupplyCheckPlacementZoneRule'; +export * from './SupplyContent'; +export * from './SupplyETTN'; +export * from './SupplyOrderCancelStatusResponseCancelOrderError'; +export * from './SupplyOrderCancelStatusResponseCancelSupplyResults'; +export * from './SupplyOrderCancelStatusResponseResult'; +export * from './SupplyOrderContentUpdateStatusResponseStatusEnum'; +export * from './SupplyOrderContentUpdateValidationResponseApprovedItems'; +export * from './SupplyOrderContentUpdateValidationResponseEditingErrorEnum'; +export * from './SupplyOrderContentUpdateValidationResponseRejectedItems'; +export * from './SupplyOrderContentUpdateValidationResponseValidatedAssortment'; +export * from './SupplyOrderDetailsResponseOrderStateEnum'; +export * from './SupplyOrderDetailsResponseOrderTags'; +export * from './SupplyOrderDetailsResponseSupply'; +export * from './SupplyOrderDetailsResponseTimeslotValue'; +export * from './SupplyOrderDetailsResponseVehicle'; +export * from './SupplyOrderDetailsResponseVehicleValue'; +export * from './SupplyOrderGetResponseOrder'; +export * from './SupplyOrderGetResponseTimeslotTZ'; +export * from './SupplyOrderListRequestFilter'; +export * from './SupplyOrderListRequestFilterStateEnum'; +export * from './SupplyOrderListRequestSortByEnum'; +export * from './SupplyOrderListRequestSortDirEnum'; +export * from './SupplyOrderV1SupplyOrderActAcceptRequest'; +export * from './SupplyOrderV1SupplyOrderActAcceptResponse'; +export * from './SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusRequest'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusResponse'; +export * from './SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum'; +export * from './SupplyOrderV1SupplyOrderActProductGetRequest'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponse'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo'; +export * from './SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetRequest'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponse'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount'; +export * from './SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum'; +export * from './SupplyOrderV2SupplyOrderTimeslotListRequest'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponse'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots'; +export * from './SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone'; +export * from './SupplyOverdueReasonEnum'; +export * from './SupplyStateEnum'; +export * from './SupplyStorageWarehouse'; +export * from './SupplySupplyTags'; +export * from './SupplyTags'; +export * from './TaskAutoModeratedInfo'; +export * from './TimeslotCanNotSetTimeslotReasonEnum'; +export * from './TimeslotFromRangeTimeslotFilterTypeEnum'; +export * from './TimeslotTZTimeslot'; +export * from './TimeslotTZTimezoneInfo'; +export * from './TimeslotValueTimeslot'; +export * from './TimetableWorkingHours'; +export * from './TypeTimeOfDay'; +export * from './UploadPostingCodesRequestPostingLineExemplarInfo'; +export * from './UploadPostingCodesResponsePostingExemplarInfo'; +export * from './UtilizationDefectsMoney'; +export * from './UtilizationMoney'; +export * from './V1AddBarcodeRequest'; +export * from './V1AddBarcodeResponse'; +export * from './V1AddBarcodeResult'; +export * from './V1AddStrategyItemsRequest'; +export * from './V1AddStrategyItemsResponse'; +export * from './V1AddStrategyItemsResponseResult'; +export * from './V1AnalyticsManageStocksRequest'; +export * from './V1AnalyticsManageStocksRequestFilter'; +export * from './V1AnalyticsManageStocksResponse'; +export * from './V1AnalyticsManageStocksResponseItem'; +export * from './V1AnalyticsProductQueriesDetailsRequest'; +export * from './V1AnalyticsProductQueriesDetailsRequestSortBy'; +export * from './V1AnalyticsProductQueriesDetailsRequestSortDir'; +export * from './V1AnalyticsProductQueriesDetailsResponse'; +export * from './V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod'; +export * from './V1AnalyticsProductQueriesRequest'; +export * from './V1AnalyticsProductQueriesResponse'; +export * from './V1AnalyticsProductQueriesResponseItem'; +export * from './V1AnalyticsStocksRequest'; +export * from './V1AnalyticsStocksResponse'; +export * from './V1AnalyticsStocksResponseItem'; +export * from './V1AnalyticsTurnoverStocksRequest'; +export * from './V1AnalyticsTurnoverStocksResponse'; +export * from './V1AnalyticsTurnoverStocksResponseItem'; +export * from './V1ApproveDeclineDiscountTasksResponse'; +export * from './V1ApproveDeclineDiscountTasksResponseResult'; +export * from './V1ApproveDiscountTasksRequest'; +export * from './V1ApproveDiscountTasksRequestTask'; +export * from './V1ArchiveDeclineReason'; +export * from './V1ArchiveSkuSummary'; +export * from './V1ArchiveStatusEnum'; +export * from './V1ArchiveWarehouseFBSRequest'; +export * from './V1ArchiveWarehouseFBSResponse'; +export * from './V1AssemblyCarriagePostingListRequest'; +export * from './V1AssemblyCarriagePostingListRequestFilter'; +export * from './V1AssemblyCarriagePostingListResponse'; +export * from './V1AssemblyCarriagePostingListResponsePosting'; +export * from './V1AssemblyCarriagePostingListResponsePostingProduct'; +export * from './V1AssemblyCarriageProductListRequest'; +export * from './V1AssemblyCarriageProductListRequestFilter'; +export * from './V1AssemblyCarriageProductListResponse'; +export * from './V1AssemblyCarriageProductListResponseProduct'; +export * from './V1AssemblyFbsPostingListRequest'; +export * from './V1AssemblyFbsPostingListRequestFilter'; +export * from './V1AssemblyFbsPostingListRequestSortDirEnum'; +export * from './V1AssemblyFbsPostingListResponse'; +export * from './V1AssemblyFbsPostingListResponsePosting'; +export * from './V1AssemblyFbsPostingListResponsePostingProduct'; +export * from './V1AssemblyFbsProductListRequest'; +export * from './V1AssemblyFbsProductListRequestFilter'; +export * from './V1AssemblyFbsProductListRequestSortDirEnum'; +export * from './V1AssemblyFbsProductListResponse'; +export * from './V1Barcode'; +export * from './V1BundleItemErrorEnum'; +export * from './V1BundleItemShipmentType'; +export * from './V1CancelReasonListByOrderRequest'; +export * from './V1CancelReasonListByOrderResponse'; +export * from './V1CancelReasonListByOrderResponseReason'; +export * from './V1CancelReasonListByOrderResponseReasonFbo'; +export * from './V1CancelReasonListByPostingRequest'; +export * from './V1CancelReasonListByPostingResponse'; +export * from './V1CancelReasonListByPostingResponseReason'; +export * from './V1CancelReasonListResponse'; +export * from './V1CancelReasonListResponseFbo'; +export * from './V1CancellationState'; +export * from './V1CancellationStateStatus'; +export * from './V1CargoesCreateErrors'; +export * from './V1CargoesCreateRequest'; +export * from './V1CargoesCreateRequestCargo'; +export * from './V1CargoesCreateRequestCargoValue'; +export * from './V1CargoesCreateResponse'; +export * from './V1CargoesDeleteRequest'; +export * from './V1CargoesDeleteResponse'; +export * from './V1CargoesDeleteResponseError'; +export * from './V1CargoesDeleteResponseErrorCargoErrorReason'; +export * from './V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum'; +export * from './V1CargoesDeleteResponseErrorSupplyErrorReasonEnum'; +export * from './V1CargoesDeleteStatusRequest'; +export * from './V1CargoesDeleteStatusResponse'; +export * from './V1CargoesDeleteStatusResponseError'; +export * from './V1CargoesDeleteStatusResponseErrorCargoErrorReason'; +export * from './V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum'; +export * from './V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum'; +export * from './V1CargoesGetRequest'; +export * from './V1CargoesGetResponse'; +export * from './V1CargoesLabelCreateErrors'; +export * from './V1CargoesLabelCreateErrorsErrorReason'; +export * from './V1CargoesLabelCreateRequest'; +export * from './V1CargoesLabelCreateRequestCargo'; +export * from './V1CargoesLabelCreateResponse'; +export * from './V1CargoesLabelGetRequest'; +export * from './V1CargoesLabelGetResponse'; +export * from './V1CargoesLabelGetResponseResult'; +export * from './V1CargoesLabelGetResponseStatus'; +export * from './V1CargoesRulesGetRequest'; +export * from './V1CargoesRulesGetResponse'; +export * from './V1CarriageActDiscrepancyPDFRequest'; +export * from './V1CarriageActDiscrepancyPDFResponse'; +export * from './V1CarriageApproveRequest'; +export * from './V1CarriageCancelRequest'; +export * from './V1CarriageCancelResponse'; +export * from './V1CarriageCourierContactGetRequest'; +export * from './V1CarriageCourierContactGetResponse'; +export * from './V1CarriageCourierContactGetResponseContact'; +export * from './V1CarriageCourierContactSetRequest'; +export * from './V1CarriageCreateRequest'; +export * from './V1CarriageCreateResponse'; +export * from './V1CarriageDeliveryListRequest'; +export * from './V1CarriageDeliveryListResponse'; +export * from './V1CarriageDeliveryListResponseResult'; +export * from './V1CarriageDeliveryListResponseResultCarriages'; +export * from './V1CarriageDeliveryListResponseResultErrors'; +export * from './V1CarriageEttnStatusRequest'; +export * from './V1CarriageEttnStatusResponse'; +export * from './V1Certificate'; +export * from './V1ClusterType'; +export * from './V1CommentCreateRequest'; +export * from './V1CommentCreateResponse'; +export * from './V1CommentDeleteRequest'; +export * from './V1CommentListRequest'; +export * from './V1CommentListResponse'; +export * from './V1CommentSort'; +export * from './V1Competitor'; +export * from './V1CreateDocumentB2BSalesJSONReportRequest'; +export * from './V1CreateDocumentB2BSalesJSONReportResponse'; +export * from './V1CreateDocumentB2BSalesReportRequest'; +export * from './V1CreateLabelBatchRequest'; +export * from './V1CreateLabelBatchResponse'; +export * from './V1CreateLabelBatchResponseResult'; +export * from './V1CreateMutualSettlementReportRequest'; +export * from './V1CreatePlacementByProductsReportRequest'; +export * from './V1CreatePlacementByProductsReportResponse'; +export * from './V1CreatePlacementBySuppliesReportRequest'; +export * from './V1CreatePlacementBySuppliesReportResponse'; +export * from './V1CreatePricingStrategyRequest'; +export * from './V1CreatePricingStrategyResponse'; +export * from './V1CreatePricingStrategyResponseResult'; +export * from './V1CreateStockByWarehouseReportRequest'; +export * from './V1CreateType'; +export * from './V1CreateWarehouseFBSRequest'; +export * from './V1CreateWarehouseFBSResponse'; +export * from './V1DayOfWeek'; +export * from './V1DeclineDiscountTasksRequest'; +export * from './V1DeclineDiscountTasksRequestTask'; +export * from './V1DeleteStrategyItemsResponse'; +export * from './V1DeleteStrategyItemsResponseResult'; +export * from './V1DeliveryCheckRequest'; +export * from './V1DeliveryCheckResponse'; +export * from './V1DeliveryCheckoutRequest'; +export * from './V1DeliveryCheckoutRequestDeliveryType'; +export * from './V1DeliveryCheckoutRequestItem'; +export * from './V1DeliveryCheckoutResponse'; +export * from './V1DeliveryDetailsDirectDetails'; +export * from './V1DeliveryDetailsPickUpDetails'; +export * from './V1DeliveryMapRequest'; +export * from './V1DeliveryMapRequestViewport'; +export * from './V1DeliveryMapResponse'; +export * from './V1DeliveryPointInfoRequest'; +export * from './V1DeliveryPointInfoResponse'; +export * from './V1DeliveryPointInfoResponsePoint'; +export * from './V1DeliveryPointListResponse'; +export * from './V1DeliveryPointListResponsePoint'; +export * from './V1DiscountTaskStatus'; +export * from './V1DraftClusterListRequest'; +export * from './V1DraftClusterListResponse'; +export * from './V1DraftClusterListResponseCluster'; +export * from './V1DraftClusterListResponseWarehouse'; +export * from './V1DraftCreateCommonResponse'; +export * from './V1DraftCrossdockCreateRequest'; +export * from './V1DraftCrossdockCreateRequestClusterInfo'; +export * from './V1DraftCrossdockCreateRequestClusterInfoItem'; +export * from './V1DraftCrossdockCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfo'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +export * from './V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum'; +export * from './V1DraftDirectCreateRequest'; +export * from './V1DraftDirectCreateRequestClusterInfo'; +export * from './V1DraftDirectCreateRequestClusterInfoItem'; +export * from './V1DraftDirectCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftGetWarehouseFboListRequest'; +export * from './V1DraftGetWarehouseFboListResponse'; +export * from './V1DraftMultiClusterCreateRequest'; +export * from './V1DraftMultiClusterCreateRequestClusterInfo'; +export * from './V1DraftMultiClusterCreateRequestClusterInfoItem'; +export * from './V1DraftMultiClusterCreateRequestDeleteSkuModeEnum'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfo'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum'; +export * from './V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum'; +export * from './V1DraftStatusEnum'; +export * from './V1FbpArchiveGetRequest'; +export * from './V1FbpArchiveGetResponse'; +export * from './V1FbpArchiveListRequest'; +export * from './V1FbpArchiveListResponse'; +export * from './V1FbpArchiveListResponseItem'; +export * from './V1FbpAvailableTimeslotListRequest'; +export * from './V1FbpAvailableTimeslotListResponse'; +export * from './V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason'; +export * from './V1FbpCheckActStateRequest'; +export * from './V1FbpCheckActStateResponse'; +export * from './V1FbpCheckActStateResponseStatus'; +export * from './V1FbpCheckConsignmentNoteStateRequest'; +export * from './V1FbpCheckConsignmentNoteStateResponse'; +export * from './V1FbpCreateActRequest'; +export * from './V1FbpCreateActResponse'; +export * from './V1FbpCreateConsignmentNoteRequest'; +export * from './V1FbpCreateConsignmentNoteResponse'; +export * from './V1FbpCreateLabelRequest'; +export * from './V1FbpCreateLabelResponse'; +export * from './V1FbpDraftDirectCreateRequest'; +export * from './V1FbpDraftDirectCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectCreateResponse'; +export * from './V1FbpDraftDirectDeleteRequest'; +export * from './V1FbpDraftDirectDeleteResponse'; +export * from './V1FbpDraftDirectGetTimeslotRequest'; +export * from './V1FbpDraftDirectGetTimeslotResponse'; +export * from './V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason'; +export * from './V1FbpDraftDirectGetTimeslotResponseTimeslot'; +export * from './V1FbpDraftDirectProductValidateRequest'; +export * from './V1FbpDraftDirectProductValidateRequestSkuItem'; +export * from './V1FbpDraftDirectProductValidateResponse'; +export * from './V1FbpDraftDirectProductValidateResponseApprovedItem'; +export * from './V1FbpDraftDirectProductValidateResponseRejectedItem'; +export * from './V1FbpDraftDirectRegistrateRequest'; +export * from './V1FbpDraftDirectRegistrateResponse'; +export * from './V1FbpDraftDirectRegistrateResponseRegistrationError'; +export * from './V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftDirectSellerDlvCreateRequest'; +export * from './V1FbpDraftDirectSellerDlvCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectSellerDlvCreateResponse'; +export * from './V1FbpDraftDirectSellerDlvEditRequest'; +export * from './V1FbpDraftDirectSellerDlvEditResponse'; +export * from './V1FbpDraftDirectTimeslotEditRequest'; +export * from './V1FbpDraftDirectTimeslotEditResponse'; +export * from './V1FbpDraftDirectTimeslotEditResponseReserveFailureType'; +export * from './V1FbpDraftDirectTplDlvCreateRequest'; +export * from './V1FbpDraftDirectTplDlvCreateRequestDirectDetails'; +export * from './V1FbpDraftDirectTplDlvCreateResponse'; +export * from './V1FbpDraftDirectTplDlvEditRequest'; +export * from './V1FbpDraftDirectTplDlvEditResponse'; +export * from './V1FbpDraftDropOffCreateRequest'; +export * from './V1FbpDraftDropOffCreateRequestDeliveryDetails'; +export * from './V1FbpDraftDropOffCreateResponse'; +export * from './V1FbpDraftDropOffDeleteRequest'; +export * from './V1FbpDraftDropOffDeleteResponse'; +export * from './V1FbpDraftDropOffDlvEditRequest'; +export * from './V1FbpDraftDropOffDlvEditResponse'; +export * from './V1FbpDraftDropOffPointListRequest'; +export * from './V1FbpDraftDropOffPointListResponse'; +export * from './V1FbpDraftDropOffPointTimetableRequest'; +export * from './V1FbpDraftDropOffPointTimetableResponse'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendar'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime'; +export * from './V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening'; +export * from './V1FbpDraftDropOffProductValidateRequest'; +export * from './V1FbpDraftDropOffProductValidateRequestSkuItem'; +export * from './V1FbpDraftDropOffProductValidateResponse'; +export * from './V1FbpDraftDropOffProductValidateResponseApprovedItem'; +export * from './V1FbpDraftDropOffProductValidateResponseRejectedItem'; +export * from './V1FbpDraftDropOffProvinceListRequest'; +export * from './V1FbpDraftDropOffProvinceListResponse'; +export * from './V1FbpDraftDropOffRegistrateRequest'; +export * from './V1FbpDraftDropOffRegistrateResponse'; +export * from './V1FbpDraftDropOffRegistrateResponseRegistrationError'; +export * from './V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftGetRequest'; +export * from './V1FbpDraftGetResponse'; +export * from './V1FbpDraftListRequest'; +export * from './V1FbpDraftListResponse'; +export * from './V1FbpDraftListResponseItem'; +export * from './V1FbpDraftPickUpDeleteRequest'; +export * from './V1FbpDraftPickUpDeleteResponse'; +export * from './V1FbpDraftPickUpProductValidateRequest'; +export * from './V1FbpDraftPickUpProductValidateRequestSkuItem'; +export * from './V1FbpDraftPickUpProductValidateResponse'; +export * from './V1FbpDraftPickUpProductValidateResponseApprovedItem'; +export * from './V1FbpDraftPickUpProductValidateResponseRejectedItem'; +export * from './V1FbpDraftPickUpRegistrateRequest'; +export * from './V1FbpDraftPickUpRegistrateResponse'; +export * from './V1FbpDraftPickUpRegistrateResponseRegistrationError'; +export * from './V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError'; +export * from './V1FbpDraftPickupCreateRequest'; +export * from './V1FbpDraftPickupCreateRequestDeliveryDetails'; +export * from './V1FbpDraftPickupCreateResponse'; +export * from './V1FbpDraftPickupDlvEditRequest'; +export * from './V1FbpDraftPickupDlvEditRequestDeliveryDetails'; +export * from './V1FbpDraftPickupDlvEditResponse'; +export * from './V1FbpEditTimeslotRequest'; +export * from './V1FbpEditTimeslotResponse'; +export * from './V1FbpEditTimeslotResponseReserveFailureType'; +export * from './V1FbpGetLabelRequest'; +export * from './V1FbpGetLabelResponse'; +export * from './V1FbpOrderDirectCancelRequest'; +export * from './V1FbpOrderDirectCancelResponse'; +export * from './V1FbpOrderDirectSellerDlvEditRequest'; +export * from './V1FbpOrderDirectSellerDlvEditResponse'; +export * from './V1FbpOrderDropOffCancelRequest'; +export * from './V1FbpOrderDropOffCancelResponse'; +export * from './V1FbpOrderDropOffDlvEditRequest'; +export * from './V1FbpOrderDropOffDlvEditResponse'; +export * from './V1FbpOrderDropOffTimetableRequest'; +export * from './V1FbpOrderDropOffTimetableResponse'; +export * from './V1FbpOrderDropOffTimetableResponseCalendar'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItem'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime'; +export * from './V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak'; +export * from './V1FbpOrderGetRequest'; +export * from './V1FbpOrderGetResponse'; +export * from './V1FbpOrderListRequest'; +export * from './V1FbpOrderListResponse'; +export * from './V1FbpOrderListResponseItem'; +export * from './V1FbpOrderPickUpCancelRequest'; +export * from './V1FbpOrderPickUpCancelResponse'; +export * from './V1FbpOrderPickUpDlvEditRequest'; +export * from './V1FbpOrderPickUpDlvEditRequestPickUpDetails'; +export * from './V1FbpOrderPickUpDlvEditResponse'; +export * from './V1FbpWarehouseListResponse'; +export * from './V1FbsPostingProductExemplarUpdateRequest'; +export * from './V1GenerateBarcodeRequest'; +export * from './V1GenerateBarcodeResponse'; +export * from './V1GenerateBarcodeResult'; +export * from './V1GetAttributeValuesRequest'; +export * from './V1GetAttributeValuesResponse'; +export * from './V1GetAttributeValuesResponseDictionaryValue'; +export * from './V1GetAttributesRequest'; +export * from './V1GetAttributesResponse'; +export * from './V1GetAttributesResponseAttribute'; +export * from './V1GetCompensationReportRequest'; +export * from './V1GetCompetitorsRequest'; +export * from './V1GetCompetitorsResponse'; +export * from './V1GetDecompensationReportRequest'; +export * from './V1GetDeliveryMethodReturnSettingsV1Request'; +export * from './V1GetDeliveryMethodReturnSettingsV1Response'; +export * from './V1GetDiscountTaskListRequest'; +export * from './V1GetDiscountTaskListResponse'; +export * from './V1GetDiscountTaskListResponseTask'; +export * from './V1GetEtgbRequest'; +export * from './V1GetEtgbResponse'; +export * from './V1GetFBSRatingIndexInfoV1Response'; +export * from './V1GetFinanceBalanceV1Request'; +export * from './V1GetFinanceBalanceV1Response'; +export * from './V1GetFinanceBalanceV1ResponseAccruedMoney'; +export * from './V1GetFinanceBalanceV1ResponseClosingBalanceMoney'; +export * from './V1GetFinanceBalanceV1ResponseFeeMoney'; +export * from './V1GetFinanceBalanceV1ResponseOpeningBalanceMoney'; +export * from './V1GetFinanceBalanceV1ResponsePartnerMoney'; +export * from './V1GetFinanceBalanceV1ResponsePaymentsMoney'; +export * from './V1GetFinanceBalanceV1ResponseReturnsMoney'; +export * from './V1GetFinanceBalanceV1ResponseRevenueMoney'; +export * from './V1GetFinanceBalanceV1ResponseSalesMoney'; +export * from './V1GetFinanceBalanceV1ResponseServicesMoney'; +export * from './V1GetFinanceProductsBuyoutRequest'; +export * from './V1GetFinanceProductsBuyoutResponse'; +export * from './V1GetLabelBatchRequest'; +export * from './V1GetLabelBatchResponse'; +export * from './V1GetLabelBatchResponseResult'; +export * from './V1GetProductInfoDiscountedRequest'; +export * from './V1GetProductInfoDiscountedResponse'; +export * from './V1GetProductInfoDiscountedResponseItem'; +export * from './V1GetProductInfoSubscriptionRequest'; +export * from './V1GetProductInfoSubscriptionResponse'; +export * from './V1GetProductInfoSubscriptionResponseResult'; +export * from './V1GetProductPlacementZoneInfoRequest'; +export * from './V1GetProductPlacementZoneInfoResponse'; +export * from './V1GetProductRatingBySkuRequest'; +export * from './V1GetProductRatingBySkuResponse'; +export * from './V1GetProductStairwayDiscountByQuantityRequest'; +export * from './V1GetProductStairwayDiscountByQuantityResponse'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairways'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway'; +export * from './V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep'; +export * from './V1GetRealizationReportByDayRequest'; +export * from './V1GetRealizationReportPostingRequest'; +export * from './V1GetRealizationReportPostingResponse'; +export * from './V1GetRealizationReportPostingResponseRow'; +export * from './V1GetReceiptRequest'; +export * from './V1GetReceiptResponse'; +export * from './V1GetRestrictionsRequest'; +export * from './V1GetRestrictionsResponse'; +export * from './V1GetReturnsListRequest'; +export * from './V1GetReturnsListResponse'; +export * from './V1GetStrategyIDsByItemIDsResponse'; +export * from './V1GetStrategyIDsByItemIDsResponseResult'; +export * from './V1GetStrategyItemInfoRequest'; +export * from './V1GetStrategyItemInfoResponse'; +export * from './V1GetStrategyItemInfoResponseResult'; +export * from './V1GetStrategyItemsResponse'; +export * from './V1GetStrategyItemsResponseResult'; +export * from './V1GetStrategyListRequest'; +export * from './V1GetStrategyListResponse'; +export * from './V1GetStrategyResponse'; +export * from './V1GetStrategyResponseResult'; +export * from './V1GetSupplierReturnsSummaryReportRequest'; +export * from './V1GetSupplierReturnsSummaryReportResponse'; +export * from './V1GetSupplierReturnsSummaryReportResponseRow'; +export * from './V1GetSupplyOrderBundleRequest'; +export * from './V1GetSupplyOrderBundleResponse'; +export * from './V1GetSupplyOrderTimeslotStatusRequest'; +export * from './V1GetSupplyOrderTimeslotStatusResponse'; +export * from './V1GetSupplyOrderTimeslotStatusResponseStatus'; +export * from './V1GetSupplyOrderTimeslotsRequest'; +export * from './V1GetSupplyOrderTimeslotsResponse'; +export * from './V1GetSupplyReturnsSummaryReportRequest'; +export * from './V1GetSupplyReturnsSummaryReportResponse'; +export * from './V1GetSupplyReturnsSummaryReportResponseRow'; +export * from './V1GetTreeRequest'; +export * from './V1GetTreeResponse'; +export * from './V1GetTreeResponseItem'; +export * from './V1GetWarehouseFBSOperationStatusRequest'; +export * from './V1GetWarehouseFBSOperationStatusResponse'; +export * from './V1GiveoutBarcodeResetResponse'; +export * from './V1GiveoutGetBarcodeResponse'; +export * from './V1GiveoutGetPDFResponse'; +export * from './V1GiveoutGetPNGResponse'; +export * from './V1GiveoutInfoRequest'; +export * from './V1GiveoutInfoResponse'; +export * from './V1GiveoutIsEnabledResponse'; +export * from './V1GiveoutListRequest'; +export * from './V1GiveoutListResponse'; +export * from './V1InvoiceDeleteRequest'; +export * from './V1InvoiceDeleteResponse'; +export * from './V1InvoiceFileUploadRequest'; +export * from './V1InvoiceFileUploadResponse'; +export * from './V1InvoiceGetRequest'; +export * from './V1ItemError'; +export * from './V1ItemIDsRequest'; +export * from './V1ItemResponse'; +export * from './V1ItemSfboAttribute'; +export * from './V1ItemSortField'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseRequest'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponse'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates'; +export * from './V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum'; +export * from './V1ListDropOffPointsForUpdateFBSWarehouseRequest'; +export * from './V1ListDropOffPointsForUpdateFBSWarehouseResponse'; +export * from './V1ListFBSRatingIndexPostingsV1Request'; +export * from './V1ListFBSRatingIndexPostingsV1Response'; +export * from './V1ListPostingCodesRequest'; +export * from './V1ListPostingCodesResponse'; +export * from './V1Money'; +export * from './V1OrderAttentionTypeEnum'; +export * from './V1OrderCancelCheckRequest'; +export * from './V1OrderCancelCheckResponse'; +export * from './V1OrderCancelRequest'; +export * from './V1OrderCancelResponse'; +export * from './V1OrderCancelStatusRequest'; +export * from './V1OrderCancelStatusResponse'; +export * from './V1OrderCreateRequest'; +export * from './V1OrderCreateResponse'; +export * from './V1OrderDraftValidationError'; +export * from './V1OrderDraftValidationErrorErrorType'; +export * from './V1OrderErrorTypeEnum'; +export * from './V1OrderState'; +export * from './V1OrderStatusEnum'; +export * from './V1OrderValidationError'; +export * from './V1OrderValidationErrorErrorType'; +export * from './V1PolygonDeleteRequest'; +export * from './V1PolygonListRequest'; +export * from './V1PolygonListResponse'; +export * from './V1PolygonTimeCoordinatesUpdateRequest'; +export * from './V1PolygonTimeSetRequest'; +export * from './V1PostingCancelRequest'; +export * from './V1PostingCancelResponse'; +export * from './V1PostingCancelStatusRequest'; +export * from './V1PostingCancelStatusResponse'; +export * from './V1PostingFBSPickupCodeVerifyRequest'; +export * from './V1PostingFBSPickupCodeVerifyResponse'; +export * from './V1PostingFbsProductTraceableAttributeRequest'; +export * from './V1PostingFbsProductTraceableAttributeResponse'; +export * from './V1PostingFbsProductTraceableAttributeResponseProduct'; +export * from './V1PostingFbsSplitRequest'; +export * from './V1PostingFbsSplitRequestPosting'; +export * from './V1PostingFbsSplitResponse'; +export * from './V1PostingFbsSplitResponsePosting'; +export * from './V1PostingFbsSplitResponsePostingParent'; +export * from './V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval'; +export * from './V1PostingFbsTimeslotChangeRestrictionsRequest'; +export * from './V1PostingFbsTimeslotChangeRestrictionsResponse'; +export * from './V1PostingFbsTimeslotSetNewTimeslot'; +export * from './V1PostingFbsTimeslotSetRequest'; +export * from './V1PostingFbsTimeslotSetResponse'; +export * from './V1PostingFbsTraceableSplitRequest'; +export * from './V1PostingFbsTraceableSplitResponse'; +export * from './V1PostingFbsTraceableSplitResponsePosting'; +export * from './V1PostingMarksRequest'; +export * from './V1PostingMarksResponse'; +export * from './V1PostingUnpaidLegalProductListRequest'; +export * from './V1PostingUnpaidLegalProductListResponse'; +export * from './V1PostingUnpaidLegalProductListResponseProducts'; +export * from './V1PremiumScores'; +export * from './V1ProductActionTimerStatusRequest'; +export * from './V1ProductActionTimerStatusResponse'; +export * from './V1ProductActionTimerStatusResponseStatuses'; +export * from './V1ProductActionTimerUpdateRequest'; +export * from './V1ProductCertificateDeleteRequest'; +export * from './V1ProductCertificateDeleteResponse'; +export * from './V1ProductCertificateDeleteResponseResult'; +export * from './V1ProductCertificateInfoRequest'; +export * from './V1ProductCertificateInfoResponse'; +export * from './V1ProductCertificateListRequest'; +export * from './V1ProductCertificateListResponse'; +export * from './V1ProductCertificateListResponseResult'; +export * from './V1ProductCertificateProductStatusListResponse'; +export * from './V1ProductCertificateProductsListRequest'; +export * from './V1ProductCertificateProductsListResponse'; +export * from './V1ProductCertificateProductsListResponseResult'; +export * from './V1ProductCertificateRejectionReasonsListResponse'; +export * from './V1ProductCertificateStatusListResponse'; +export * from './V1ProductCertificateUnbindRequest'; +export * from './V1ProductCertificateUnbindResponse'; +export * from './V1ProductFbsSplit'; +export * from './V1ProductGetRelatedSKURequest'; +export * from './V1ProductGetRelatedSKUResponse'; +export * from './V1ProductGetRelatedSKUResponseError'; +export * from './V1ProductGetRelatedSKUResponseItem'; +export * from './V1ProductInfoWarehouseStocksRequest'; +export * from './V1ProductInfoWarehouseStocksResponse'; +export * from './V1ProductInfoWrongVolumeRequest'; +export * from './V1ProductInfoWrongVolumeResponse'; +export * from './V1ProductPricesDetailsRequest'; +export * from './V1ProductPricesDetailsResponse'; +export * from './V1ProductPricesDetailsResponsePrice'; +export * from './V1ProductUpdateAttributesRequest'; +export * from './V1ProductUpdateAttributesRequestAttribute'; +export * from './V1ProductUpdateAttributesRequestItem'; +export * from './V1ProductUpdateAttributesRequestValue'; +export * from './V1ProductUpdateAttributesResponse'; +export * from './V1ProductUpdateDiscountRequest'; +export * from './V1ProductUpdateDiscountResponse'; +export * from './V1ProductUpdateOfferIdRequest'; +export * from './V1ProductUpdateOfferIdResponse'; +export * from './V1ProductUpdateOfferIdResponseError'; +export * from './V1QuestionAnswerCreateDefault'; +export * from './V1QuestionAnswerCreateRequest'; +export * from './V1QuestionAnswerCreateResponse'; +export * from './V1QuestionAnswerDeleteRequest'; +export * from './V1QuestionAnswerListRequest'; +export * from './V1QuestionAnswerListResponse'; +export * from './V1QuestionAnswerListResponseAnswers'; +export * from './V1QuestionChangeStatusRequest'; +export * from './V1QuestionCountResponse'; +export * from './V1QuestionInfoRequest'; +export * from './V1QuestionInfoResponse'; +export * from './V1QuestionListRequest'; +export * from './V1QuestionListRequestFilter'; +export * from './V1QuestionListResponse'; +export * from './V1QuestionListResponseQuestions'; +export * from './V1QuestionTopSkuRequest'; +export * from './V1QuestionTopSkuResponse'; +export * from './V1Rating'; +export * from './V1RatingHistoryV1Request'; +export * from './V1RatingHistoryV1Response'; +export * from './V1RatingItem'; +export * from './V1RatingStatus'; +export * from './V1RatingSummaryV1Response'; +export * from './V1ReceiptsSellerListRequest'; +export * from './V1ReceiptsSellerListResponse'; +export * from './V1ReportMarkedProductsSalesCreateRequest'; +export * from './V1Restriction'; +export * from './V1ReturnsCompanyFbsInfoRequest'; +export * from './V1ReturnsCompanyFbsInfoRequestFilter'; +export * from './V1ReturnsCompanyFbsInfoResponse'; +export * from './V1ReturnsRfbsActionSetRequest'; +export * from './V1ReturnsSettingsUtilizationHistoryResponse'; +export * from './V1ReturnsSettingsUtilizationInfoResponse'; +export * from './V1ReturnsSettingsUtilizationUpdateRequest'; +export * from './V1ReviewChangeStatusRequest'; +export * from './V1ReviewCountResponse'; +export * from './V1ReviewInfoRequest'; +export * from './V1ReviewInfoResponse'; +export * from './V1ReviewListRequest'; +export * from './V1ReviewListResponse'; +export * from './V1RolesByTokenResponse'; +export * from './V1SearchAttributeValuesRequest'; +export * from './V1SearchAttributeValuesResponse'; +export * from './V1SearchQueriesTextRequest'; +export * from './V1SearchQueriesTextResponse'; +export * from './V1SearchQueriesTextResponseSearchQuery'; +export * from './V1SearchQueriesTopRequest'; +export * from './V1SearchQueriesTopResponse'; +export * from './V1SearchQueriesTopResponseSearchQuery'; +export * from './V1SellerActionsArchiveRequest'; +export * from './V1SellerActionsChangeActivityRequest'; +export * from './V1SellerActionsCreateDiscountRequest'; +export * from './V1SellerActionsCreateDiscountResponse'; +export * from './V1SellerActionsCreateDiscountWithConditionRequest'; +export * from './V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateDiscountWithConditionResponse'; +export * from './V1SellerActionsCreateInstallmentRequest'; +export * from './V1SellerActionsCreateInstallmentResponse'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequest'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel'; +export * from './V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateMultiLevelDiscountResponse'; +export * from './V1SellerActionsCreateVoucherRequest'; +export * from './V1SellerActionsCreateVoucherRequestDiscountTypeEnum'; +export * from './V1SellerActionsCreateVoucherRequestVoucherParameter'; +export * from './V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum'; +export * from './V1SellerActionsCreateVoucherResponse'; +export * from './V1SellerActionsListRequest'; +export * from './V1SellerActionsListResponse'; +export * from './V1SellerActionsProductsAddRequest'; +export * from './V1SellerActionsProductsAddRequestProduct'; +export * from './V1SellerActionsProductsCandidatesRequest'; +export * from './V1SellerActionsProductsCandidatesResponse'; +export * from './V1SellerActionsProductsCandidatesResponseProduct'; +export * from './V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum'; +export * from './V1SellerActionsProductsDeleteRequest'; +export * from './V1SellerActionsProductsListRequest'; +export * from './V1SellerActionsProductsListResponse'; +export * from './V1SellerActionsProductsListResponseProduct'; +export * from './V1SellerActionsUpdateDiscountRequest'; +export * from './V1SellerActionsUpdateDiscountRequestActionParameters'; +export * from './V1SellerActionsUpdateDiscountWithConditionRequest'; +export * from './V1SellerActionsUpdateDiscountWithConditionRequestActionParameters'; +export * from './V1SellerActionsUpdateInstallmentRequest'; +export * from './V1SellerActionsUpdateInstallmentRequestActionParameters'; +export * from './V1SellerActionsUpdateMultiLevelDiscountRequest'; +export * from './V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters'; +export * from './V1SellerActionsUpdateVoucherRequest'; +export * from './V1SellerActionsUpdateVoucherRequestActionParameters'; +export * from './V1SellerActionsVoucherGetRequest'; +export * from './V1SellerActionsVoucherGetResponse'; +export * from './V1SellerInfoResponse'; +export * from './V1SellerOzonLogisticsInfoResponse'; +export * from './V1SetPostingCutoffRequest'; +export * from './V1SetPostingCutoffResponse'; +export * from './V1SetPostingsRequest'; +export * from './V1SetPostingsResponse'; +export * from './V1SetProductStairwayDiscountByQuantityRequest'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairways'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway'; +export * from './V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep'; +export * from './V1SetProductStairwayDiscountByQuantityResponse'; +export * from './V1SetProductStairwayDiscountByQuantityResponseError'; +export * from './V1SetVehicleError'; +export * from './V1StatusCodeNamePair'; +export * from './V1StatusCodeNamePairRejection'; +export * from './V1StatusCodeNamePairStatuses'; +export * from './V1StocksImportRequest'; +export * from './V1StocksImportResponse'; +export * from './V1StrategyRequest'; +export * from './V1SupplierAvailableWarehousesResponse'; +export * from './V1SupplyOrderCancelRequest'; +export * from './V1SupplyOrderCancelResponse'; +export * from './V1SupplyOrderCancelStatusRequest'; +export * from './V1SupplyOrderCancelStatusResponse'; +export * from './V1SupplyOrderCancelStatusResponseStatus'; +export * from './V1SupplyOrderContentUpdateRequest'; +export * from './V1SupplyOrderContentUpdateRequestItem'; +export * from './V1SupplyOrderContentUpdateResponse'; +export * from './V1SupplyOrderContentUpdateResponseErrorEnum'; +export * from './V1SupplyOrderContentUpdateStatusRequest'; +export * from './V1SupplyOrderContentUpdateStatusResponse'; +export * from './V1SupplyOrderContentUpdateStatusResponseErrorEnum'; +export * from './V1SupplyOrderContentUpdateValidationRequest'; +export * from './V1SupplyOrderContentUpdateValidationResponse'; +export * from './V1SupplyOrderDetailsRequest'; +export * from './V1SupplyOrderDetailsResponse'; +export * from './V1SupplyOrderDetailsResponseTimeslot'; +export * from './V1SupplyOrderPassCreateRequest'; +export * from './V1SupplyOrderPassCreateResponse'; +export * from './V1SupplyOrderPassStatusRequest'; +export * from './V1SupplyOrderPassStatusResponse'; +export * from './V1SupplyOrderPassStatusResponseStatus'; +export * from './V1SupplyOrderStatusCounterResponse'; +export * from './V1SupplyOrderStatusCounterResponseItem'; +export * from './V1SupplyOrderTimeslot'; +export * from './V1TimeRangeReturnDate'; +export * from './V1TimeRangeStorageTariffication'; +export * from './V1TimeRangeVisualStatus'; +export * from './V1Timezone'; +export * from './V1UnarchiveWarehouseFBSRequest'; +export * from './V1UnarchiveWarehouseFBSResponse'; +export * from './V1UpdatePricingStrategyRequest'; +export * from './V1UpdateStatusStrategyRequest'; +export * from './V1UpdateSupplyOrderTimeslotRequest'; +export * from './V1UpdateSupplyOrderTimeslotResponse'; +export * from './V1UpdateTimeslotError'; +export * from './V1UpdateWarehouseFBSFirstMileRequest'; +export * from './V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum'; +export * from './V1UpdateWarehouseFBSFirstMileResponse'; +export * from './V1UpdateWarehouseFBSRequest'; +export * from './V1UpdateWarehouseFBSRequestAddressCoordinates'; +export * from './V1UpdateWarehouseFBSRequestOptions'; +export * from './V1UpdateWarehouseFBSRequestWorkingDaysEnum'; +export * from './V1UpdateWarehouseFBSResponse'; +export * from './V1UploadPostingCodesRequest'; +export * from './V1UploadPostingCodesResponse'; +export * from './V1UploadReceiptRequestTypeEnum'; +export * from './V1UploadReceiptResponse'; +export * from './V1VehicleInfo'; +export * from './V1WarehouseERFBSAggregatorCreateRequest'; +export * from './V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings'; +export * from './V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSAggregatorCreateRequestHolidays'; +export * from './V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSAggregatorCreateRequestWorkingDays'; +export * from './V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSAggregatorCreateResponse'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequest'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestHolidays'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays'; +export * from './V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSNonIntegratedCreateResponse'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum'; +export * from './V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse'; +export * from './V1WarehouseERFBSUpdateRequest'; +export * from './V1WarehouseERFBSUpdateRequestHolidays'; +export * from './V1WarehouseERFBSUpdateRequestTimetableWarehouse'; +export * from './V1WarehouseERFBSUpdateRequestWorkingDays'; +export * from './V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum'; +export * from './V1WarehouseERFBSUpdateResponse'; +export * from './V1WarehouseFBSCreateReturnPointListRequest'; +export * from './V1WarehouseFBSCreateReturnPointListRequestCoordinates'; +export * from './V1WarehouseFBSCreateReturnPointListRequestSearch'; +export * from './V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum'; +export * from './V1WarehouseFBSCreateReturnPointListResponse'; +export * from './V1WarehouseFBSCreateReturnPointListResponseCoordinates'; +export * from './V1WarehouseFBSCreateReturnPointListResponseReturnPoint'; +export * from './V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSCreateReturnPointListResponseWorkingDays'; +export * from './V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFBSReturnMileInfoRequest'; +export * from './V1WarehouseFBSReturnMileInfoResponse'; +export * from './V1WarehouseFBSReturnMileInfoResponseCoordinates'; +export * from './V1WarehouseFBSReturnMileInfoResponseReturnPoint'; +export * from './V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSReturnMileInfoResponseWorkingDays'; +export * from './V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListRequest'; +export * from './V1WarehouseFBSUpdateReturnPointListRequestSearch'; +export * from './V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListResponse'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseCoordinates'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseReturnPoint'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDays'; +export * from './V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum'; +export * from './V1WarehouseFboSellerListResponse'; +export * from './V1WarehouseFboSellerListResponseWarehouse'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListRequest'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListResponse'; +export * from './V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListRequest'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListResponse'; +export * from './V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsPickUpCourierCancelRequest'; +export * from './V1WarehouseFbsPickUpCourierCreateRequest'; +export * from './V1WarehouseFbsPickUpHistoryListRequest'; +export * from './V1WarehouseFbsPickUpHistoryListRequestFilter'; +export * from './V1WarehouseFbsPickUpHistoryListResponse'; +export * from './V1WarehouseFbsPickUpHistoryListResponseResult'; +export * from './V1WarehouseFbsPickUpPlanningListResponse'; +export * from './V1WarehouseFbsPickUpPlanningListResponseResult'; +export * from './V1WarehouseFbsReturnMileCheckRequest'; +export * from './V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum'; +export * from './V1WarehouseFbsReturnMileCheckResponse'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListRequest'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListResponse'; +export * from './V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListRequest'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListResponse'; +export * from './V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot'; +export * from './V1WarehouseInvalidProductsGetRequest'; +export * from './V1WarehouseInvalidProductsGetResponse'; +export * from './V1WarehouseListRequest'; +export * from './V1WarehouseListRequestWith'; +export * from './V1WarehouseOZONListRequest'; +export * from './V1WarehouseOZONListRequestWarehouseTypeEnum'; +export * from './V1WarehouseOZONListResponse'; +export * from './V1WarehouseOZONListResponseWarehouse'; +export * from './V1WarehouseWithInvalidProductsResponse'; +export * from './V1fbpDeliveryDetails'; +export * from './V1fbpTimeslot'; +export * from './V2AdditionalDataItem'; +export * from './V2CancellationInitiatorEnum'; +export * from './V2CancellationStateEnum'; +export * from './V2CancellationStateEnumFilters'; +export * from './V2CargoesCreateErrors'; +export * from './V2CargoesCreateInfoV2Request'; +export * from './V2CargoesCreateInfoV2Response'; +export * from './V2CarriageDeliveryListV2Request'; +export * from './V2CarriageDeliveryListV2Response'; +export * from './V2ChatReadResponse'; +export * from './V2ConditionalCancellationMoveV2Request'; +export * from './V2CreateLabelBatchResponse'; +export * from './V2CreateLabelBatchResponseResult'; +export * from './V2CreateLabelBatchResponseResultTasks'; +export * from './V2DeliveryCheckoutRequestV2DeliverySchemaEnum'; +export * from './V2DeliveryMethodListV2Request'; +export * from './V2DeliveryMethodListV2Response'; +export * from './V2DraftClusterListResponse'; +export * from './V2DraftClusterListResponseResult'; +export * from './V2DraftCreateInfoRequest'; +export * from './V2DraftCreateInfoResponse'; +export * from './V2DraftCreateInfoResponseStatusEnum'; +export * from './V2DraftSupplyCreateRequest'; +export * from './V2DraftSupplyCreateRequestSelectedClusterWarehouse'; +export * from './V2DraftSupplyCreateRequestTimeslot'; +export * from './V2DraftSupplyCreateResponse'; +export * from './V2DraftSupplyCreateResponseErrorReasonEnum'; +export * from './V2DraftSupplyCreateStatusRequest'; +export * from './V2DraftSupplyCreateStatusResponse'; +export * from './V2DraftSupplyCreateStatusResponseErrorReasonEnum'; +export * from './V2DraftSupplyCreateStatusResponseStatusEnum'; +export * from './V2DraftTimeslotInfoRequest'; +export * from './V2DraftTimeslotInfoRequestSelectedClusterWarehouse'; +export * from './V2DraftTimeslotInfoResponse'; +export * from './V2DraftTimeslotInfoResponseErrorReasonEnum'; +export * from './V2FboPosting'; +export * from './V2FboPostingListResponse'; +export * from './V2FboPostingResponse'; +export * from './V2FboPostingV2'; +export * from './V2FboSinglePostingLegalInfo'; +export * from './V2FbsPosting'; +export * from './V2FbsPostingProduct'; +export * from './V2FbsPostingProductCountryListRequest'; +export * from './V2FbsPostingProductCountryListResponse'; +export * from './V2FbsPostingProductCountryListResponseResult'; +export * from './V2FbsPostingProductCountrySetRequest'; +export * from './V2FbsPostingProductCountrySetResponse'; +export * from './V2FbsPostingResponse'; +export * from './V2GetConditionalCancellationListV2Request'; +export * from './V2GetConditionalCancellationListV2Response'; +export * from './V2GetDiscountTaskListV2Request'; +export * from './V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum'; +export * from './V2GetDiscountTaskListV2Response'; +export * from './V2GetProductInfoStocksByWarehouseFbsRequestV2'; +export * from './V2GetProductInfoStocksByWarehouseFbsResponseV2'; +export * from './V2GetProductInfoStocksByWarehouseFbsResponseV2Product'; +export * from './V2GetRealizationReportRequestV2'; +export * from './V2GetRealizationReportResponseV2'; +export * from './V2HsCode'; +export * from './V2InvoiceCreateOrUpdateV2Request'; +export * from './V2InvoiceCreateOrUpdateV2Response'; +export * from './V2InvoiceGetV2Response'; +export * from './V2MovePostingToAwaitingDeliveryRequest'; +export * from './V2PolygonBindRequest'; +export * from './V2PostingFBSActGetPostingsRequest'; +export * from './V2PostingFBSActGetPostingsResponse'; +export * from './V2PostingFBSActGetPostingsResult'; +export * from './V2PostingFBSActGetProducts'; +export * from './V2PostingFBSActListFilter'; +export * from './V2PostingFBSActListRelatedDocs'; +export * from './V2PostingFBSActListRelatedDocsActOfAcceptance'; +export * from './V2PostingFBSActListRelatedDocsActOfExcess'; +export * from './V2PostingFBSActListRelatedDocsActOfMismatch'; +export * from './V2PostingFBSActListRequest'; +export * from './V2PostingFBSActListResponse'; +export * from './V2PostingFBSActListResult'; +export * from './V2PostingFBSDigitalActCheckStatusRequest'; +export * from './V2PostingFBSDigitalActCheckStatusResponse'; +export * from './V2PostingFBSGetBarcodeRequest'; +export * from './V2PostingFBSGetBarcodeResponse'; +export * from './V2PostingFBSGetBarcodeTextResponse'; +export * from './V2PostingFBSGetDigitalActRequest'; +export * from './V2PostingFBSGetDigitalActResponse'; +export * from './V2PostingFinancialDataFBO'; +export * from './V2PostingFinancialDataFBOV2'; +export * from './V2PostingProduct'; +export * from './V2Product'; +export * from './V2ProductCertificateAccordanceTypesResponse'; +export * from './V2ProductCertificateAccordanceTypesResponseResult'; +export * from './V2ProductCertificateAccordanceTypesResponseType'; +export * from './V2ProductCertificationListRequest'; +export * from './V2ProductCertificationListResponse'; +export * from './V2ProductInfoPicturesRequest'; +export * from './V2ProductInfoPicturesResponse'; +export * from './V2ProductInfoPicturesResponseError'; +export * from './V2ProductInfoPicturesResponseItem'; +export * from './V2ReportReturnsCreateRequest'; +export * from './V2ReportReturnsCreateRequestFilter'; +export * from './V2ReportReturnsCreateResponse'; +export * from './V2ReturnsRfbsFilter'; +export * from './V2ReturnsRfbsGetRequest'; +export * from './V2ReturnsRfbsGetResponse'; +export * from './V2ReturnsRfbsGetV2ResponseState'; +export * from './V2ReturnsRfbsListRequest'; +export * from './V2ReturnsRfbsListResponse'; +export * from './V2ReturnsRfbsListV2ResponseState'; +export * from './V2WarehouseListV2Request'; +export * from './V2WarehouseListV2Response'; +export * from './V3AdditionalDataItem'; +export * from './V3Address'; +export * from './V3Addressee'; +export * from './V3AddresseeFbsLists'; +export * from './V3Barcodes'; +export * from './V3Cancellation'; +export * from './V3ChatDetailsInfo'; +export * from './V3ChatHistoryRequest'; +export * from './V3ChatHistoryResponse'; +export * from './V3ChatInfo'; +export * from './V3ChatList'; +export * from './V3ChatListRequestFilter'; +export * from './V3ChatListRequestFilterChatStatus'; +export * from './V3ChatListResponse'; +export * from './V3ChatMessage'; +export * from './V3Customer'; +export * from './V3CustomerFbsLists'; +export * from './V3DeliveryMethod'; +export * from './V3Dimensions'; +export * from './V3FbsPosting'; +export * from './V3FbsPostingAnalyticsData'; +export * from './V3FbsPostingDetail'; +export * from './V3FbsPostingDetailOptional'; +export * from './V3FbsPostingDetailRelatedPostings'; +export * from './V3FbsPostingExemplarProductV3'; +export * from './V3FbsPostingProduct'; +export * from './V3FbsPostingProductExemplarInfoV3'; +export * from './V3FbsPostingProductExemplarsV3'; +export * from './V3FbsPostingRequirementsV3'; +export * from './V3FbsTariffication'; +export * from './V3FinanceCashFlowStatementListRequest'; +export * from './V3FinanceCashFlowStatementListResponse'; +export * from './V3FinanceCashFlowStatementListResponsePeriod'; +export * from './V3FinanceCashFlowStatementListResponseResult'; +export * from './V3GetFbsPostingListResponseV3'; +export * from './V3GetFbsPostingListResponseV3Result'; +export * from './V3GetFbsPostingResponseV3'; +export * from './V3GetProductInfoListRequest'; +export * from './V3GetProductInfoListResponse'; +export * from './V3GetProductInfoListResponseItem'; +export * from './V3GetProductInfoListResponsePromotion'; +export * from './V3GetProductInfoListResponsePromotionType'; +export * from './V3ImportProductsRequest'; +export * from './V3ImportProductsRequestAttribute'; +export * from './V3ImportProductsRequestComplexAttribute'; +export * from './V3ImportProductsRequestDictionaryValue'; +export * from './V3ImportProductsRequestItem'; +export * from './V3ImportProductsResponse'; +export * from './V3ImportProductsResponseResult'; +export * from './V3PostingFinancialData'; +export * from './V3PostingProductDetail'; +export * from './V3ServiceType'; +export * from './V3SupplyOrderGetRequest'; +export * from './V3SupplyOrderGetResponse'; +export * from './V3SupplyOrderListRequest'; +export * from './V3SupplyOrderListResponse'; +export * from './V3TimeRange'; +export * from './V3User'; +export * from './V4FbsPostingShipPackageV4Request'; +export * from './V4FbsPostingShipPackageV4RequestProduct'; +export * from './V4FbsPostingShipPackageV4Response'; +export * from './V4GetProductAttributesResponseModelInfo'; +export * from './V4GetProductAttributesResponsePdf'; +export * from './V4GetProductInfoStocksRequest'; +export * from './V4GetProductInfoStocksRequestFilter'; +export * from './V4GetProductInfoStocksResponse'; +export * from './V4GetProductInfoStocksResponseItem'; +export * from './V4GetUploadQuotaResponse'; +export * from './V4Visibility'; +export * from './V5FbsPostingProductExemplarStatusV5Request'; +export * from './V5FbsPostingProductExemplarStatusV5Response'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProduct'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplar'; +export * from './V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark'; +export * from './V5FbsPostingProductExemplarValidateV5Request'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProduct'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProductExemplar'; +export * from './V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark'; +export * from './V5FbsPostingProductExemplarValidateV5Response'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProduct'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplar'; +export * from './V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark'; +export * from './V6FbsPostingProductExemplarCreateOrGetV6Request'; +export * from './V6FbsPostingProductExemplarCreateOrGetV6Response'; +export * from './V6FbsPostingProductExemplarSetV6Request'; +export * from './ValidationErrorCharacteristicEnum'; +export * from './ValidationResultItem'; +export * from './ValidationResultItemStateEnum'; +export * from './ValidationResultValidationError'; +export * from './ValidationResultValidationErrorTypeEnum'; +export * from './ValueCargoType'; +export * from './ValueItem'; +export * from './ValueTimezoneInfo'; +export * from './VehicleCanNotSetVehicleReasonEnum'; +export * from './WarehouseAddress'; +export * from './WarehouseAddressCoordinates'; +export * from './WarehouseAddressInfo'; +export * from './WarehouseAvailabilityStatus'; +export * from './WarehouseCarriageLabelTypeEnum'; +export * from './WarehouseContacts'; +export * from './WarehouseDeliveryMethodListRequest'; +export * from './WarehouseDeliveryMethodListResponse'; +export * from './WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts'; +export * from './WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings'; +export * from './WarehouseFbsPickUpHistoryListResponseHistoryEntity'; +export * from './WarehouseFbsPickUpPlanningListResponseResultWarehouse'; +export * from './WarehouseFirstMile'; +export * from './WarehouseFirstMileType'; +export * from './WarehouseInvalidProductsGetResponseValidationResult'; +export * from './WarehouseListResponseWarehouse'; +export * from './WarehouseListV2ResponseWarehouse'; +export * from './WarehouseOZONListResponseWarehouseWarehouseTypeEnum'; +export * from './WarehouseStorageWarehouse'; +export * from './WarehouseSupplyTagEnum'; +export * from './WarehouseTimetable'; +export * from './WarehouseV1WarehouseRfbsPauseRequest'; +export * from './WarehouseV1WarehouseRfbsPauseResponse'; +export * from './WarehouseV1WarehouseRfbsUnpauseRequest'; +export * from './WarehouseV1WarehouseRfbsUnpauseResponse'; +export * from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint'; +export * from './WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates'; +export * from './WarehouseWarehouseListResponse'; +export * from './WarehouseWorkingDay'; +export * from './WarehouseWorkingDayDayEnum'; +export * from './WarehouseWorkingDaysEnum'; +export * from './WorkingHoursPeriods'; diff --git a/dist/models/index.js b/dist/models/index.js new file mode 100644 index 0000000..b3e98cd --- /dev/null +++ b/dist/models/index.js @@ -0,0 +1,2140 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +/* tslint:disable */ +/* eslint-disable */ +__exportStar(require("./ActionParameter"), exports); +__exportStar(require("./ActionParameterDiscountTypeEnum"), exports); +__exportStar(require("./ActionParameterVoucherParameter"), exports); +__exportStar(require("./ActionParameterVoucherParameterTypeEnum"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsCandidatesRequest"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsCandidatesResponse"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsCandidatesResponseProducts"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsDeleteRequest"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsDeleteResponse"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsListRequest"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsListResponse"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsListResponseProducts"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsUpdateRequest"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsUpdateRequestToUpdate"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsUpdateResponse"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsUpdateResponseBelowMinPrice"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsUpdateResponseExtremelyLowPrice"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsUpdateResponseFailedPrice"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsUpdateResponseRejected"), exports); +__exportStar(require("./ActionsV1ActionsAutoAddProductsUpdateResponseRejectedCodeEnum"), exports); +__exportStar(require("./AddStrategyItemsResponseError"), exports); +__exportStar(require("./AnalyticsAnalyticsGetDataRequest"), exports); +__exportStar(require("./AnalyticsAnalyticsGetDataResponse"), exports); +__exportStar(require("./AnalyticsDataRow"), exports); +__exportStar(require("./AnalyticsDataRowDimension"), exports); +__exportStar(require("./AnalyticsFilter"), exports); +__exportStar(require("./AnalyticsGetDataResponseResult"), exports); +__exportStar(require("./AnalyticsGetStockOnWarehousesRequestWarehouseType"), exports); +__exportStar(require("./AnalyticsProductQueriesDetailsResponseQuery"), exports); +__exportStar(require("./AnalyticsProductQueriesRequestSortBy"), exports); +__exportStar(require("./AnalyticsProductQueriesRequestSortDir"), exports); +__exportStar(require("./AnalyticsProductQueriesResponseAnalyticsPeriod"), exports); +__exportStar(require("./AnalyticsSorting"), exports); +__exportStar(require("./AnalyticsStockOnWarehouseRequest"), exports); +__exportStar(require("./AnalyticsStockOnWarehouseResponse"), exports); +__exportStar(require("./AnalyticsStockOnWarehouseResponseResult"), exports); +__exportStar(require("./AnalyticsStockOnWarehouseResultRows"), exports); +__exportStar(require("./ApproveDeclineDiscountTasksResponseFailDetail"), exports); +__exportStar(require("./ArrivalPassListRequestFilter"), exports); +__exportStar(require("./ArrivalpassArrivalPassCreateRequest"), exports); +__exportStar(require("./ArrivalpassArrivalPassCreateRequestArrivalPass"), exports); +__exportStar(require("./ArrivalpassArrivalPassCreateResponse"), exports); +__exportStar(require("./ArrivalpassArrivalPassDeleteRequest"), exports); +__exportStar(require("./ArrivalpassArrivalPassListRequest"), exports); +__exportStar(require("./ArrivalpassArrivalPassListResponse"), exports); +__exportStar(require("./ArrivalpassArrivalPassListResponseArrivalPass"), exports); +__exportStar(require("./ArrivalpassArrivalPassUpdateRequest"), exports); +__exportStar(require("./ArrivalpassArrivalPassUpdateRequestArrivalPass"), exports); +__exportStar(require("./AssemblyFbsProductListResponseProducts"), exports); +__exportStar(require("./AvailabilityReason"), exports); +__exportStar(require("./AvailabilityStatusInvalidReasonEnum"), exports); +__exportStar(require("./AvailabilityStatusStateEnum"), exports); +__exportStar(require("./BrandBrandCompanyCertificationListRequest"), exports); +__exportStar(require("./BrandBrandCompanyCertificationListResponse"), exports); +__exportStar(require("./BrandCompanyCertificationListResponseBrandCertification"), exports); +__exportStar(require("./BrandCompanyCertificationListResponseBrandCertificationResult"), exports); +__exportStar(require("./CancelSupplyResultsCancelSupplyError"), exports); +__exportStar(require("./CancellationAllowabilityCanNotCancelSupplyReasonEnum"), exports); +__exportStar(require("./CancellationErrorCode"), exports); +__exportStar(require("./CancellationStateCancellationError"), exports); +__exportStar(require("./CargoInfoContentTypeEnum"), exports); +__exportStar(require("./CargoInfoPlacementZoneTypeEnum"), exports); +__exportStar(require("./CargoInfoTrackingInfo"), exports); +__exportStar(require("./CargoInfoTrackingInfoStatusEnum"), exports); +__exportStar(require("./CargoInfoTrackingInfoTypeEnum"), exports); +__exportStar(require("./CargoValue"), exports); +__exportStar(require("./CargoesCreateErrorsErrorReason"), exports); +__exportStar(require("./CargoesCreateErrorsItemValidation"), exports); +__exportStar(require("./CargoesCreateErrorsReasonEnum"), exports); +__exportStar(require("./CargoesCreateInfoV2ResponseResult"), exports); +__exportStar(require("./CargoesCreateInfoV2ResponseStatusEnum"), exports); +__exportStar(require("./CargoesCreateV2ErrorsItemValidation"), exports); +__exportStar(require("./CargoesDeleteStatusResponseStatusEnum"), exports); +__exportStar(require("./CargoesGetResponseSupply"), exports); +__exportStar(require("./CargoesPresentRuleCargoCountPerType"), exports); +__exportStar(require("./CargoesPresentRuleCargoCountPerTypeEnum"), exports); +__exportStar(require("./CargoesRulesGetResponseSupplyCheck"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportByOrderCreateRequest"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportByOrderCreateResponse"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportByOrderCreateResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportByOrderStatusRequest"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportByOrderStatusResponse"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportByOrderStatusResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportByOrderStatusResponseResult"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportByOrderStatusResponseStatusEnum"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportCreateRequest"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportCreateResponse"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportCreateResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportStatusRequest"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportStatusResponse"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportStatusResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportStatusResponseResult"), exports); +__exportStar(require("./CargoesV1CargoesLabelTransportStatusResponseStatusEnum"), exports); +__exportStar(require("./CargoesV1CargoesSuppliesGetRequest"), exports); +__exportStar(require("./CargoesV1CargoesSuppliesGetResponse"), exports); +__exportStar(require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoes"), exports); +__exportStar(require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoesCargoesWithoutTransportCargoes"), exports); +__exportStar(require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoes"), exports); +__exportStar(require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesCargoes"), exports); +__exportStar(require("./CargoesV1CargoesSuppliesGetResponseSuppliesCargoesTransportCargoesTypeEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportActivateRequest"), exports); +__exportStar(require("./CargoesV1CargoesTransportActivateResponse"), exports); +__exportStar(require("./CargoesV1CargoesTransportActivateStatusRequest"), exports); +__exportStar(require("./CargoesV1CargoesTransportActivateStatusResponse"), exports); +__exportStar(require("./CargoesV1CargoesTransportActivateStatusResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportActivateStatusResponseStatusEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportBindRequest"), exports); +__exportStar(require("./CargoesV1CargoesTransportBindRequestTransportCargoBind"), exports); +__exportStar(require("./CargoesV1CargoesTransportBindResponse"), exports); +__exportStar(require("./CargoesV1CargoesTransportBindResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportBindStatusRequest"), exports); +__exportStar(require("./CargoesV1CargoesTransportBindStatusResponse"), exports); +__exportStar(require("./CargoesV1CargoesTransportBindStatusResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportBindStatusResponseStatusEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateRequest"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateRequestTransportCargoes"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateRequestTransportCargoesTypeEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateResponse"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateStatusRequest"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateStatusResponse"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateStatusResponseErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateStatusResponseResult"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoes"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateStatusResponseResultTransportCargoesTypeEnum"), exports); +__exportStar(require("./CargoesV1CargoesTransportCreateStatusResponseStatusEnum"), exports); +__exportStar(require("./CargoesV2CargoesDeleteRequest"), exports); +__exportStar(require("./CargoesV2CargoesDeleteRequestTransportCargoDeletionTypeEnum"), exports); +__exportStar(require("./CargoesV2CargoesDeleteResponse"), exports); +__exportStar(require("./CargoesV2CargoesDeleteResponseErrors"), exports); +__exportStar(require("./CargoesV2CargoesDeleteResponseErrorsCargoErrorReasons"), exports); +__exportStar(require("./CargoesV2CargoesDeleteResponseErrorsCargoErrorReasonsErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV2CargoesDeleteResponseErrorsSupplyErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasons"), exports); +__exportStar(require("./CargoesV2CargoesDeleteResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusRequest"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusResponse"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusResponseErrors"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasons"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusResponseErrorsCargoErrorReasonsErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusResponseErrorsSupplyErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasons"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusResponseErrorsTransportCargoErrorReasonsErrorReasonsEnum"), exports); +__exportStar(require("./CargoesV2CargoesDeleteStatusResponseStatusEnum"), exports); +__exportStar(require("./CargoesV2CargoesGetRequest"), exports); +__exportStar(require("./CargoesV2CargoesGetRequestSupplies"), exports); +__exportStar(require("./CargoesV2CargoesGetResponse"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSupplies"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoes"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoesContentTypeEnum"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoesPlacementZoneTypeEnum"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfo"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAt"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoArrivalAtTimezoneInfo"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoStatusEnum"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoesTrackingInfoTypeEnum"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesCargoesTypeEnum"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesLimits"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesTransportCargoes"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfo"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAt"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoArrivalAtTimezone"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoStatusEnum"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTrackingInfoTypeEnum"), exports); +__exportStar(require("./CargoesV2CargoesGetResponseSuppliesTransportCargoesTypeEnum"), exports); +__exportStar(require("./CarriageCarriageGetRequest"), exports); +__exportStar(require("./CarriageCarriageGetResponse"), exports); +__exportStar(require("./CarriageCarriageGetResponseCancelAvailability"), exports); +__exportStar(require("./CarriageDeliveryListV2RequestFilter"), exports); +__exportStar(require("./CarriageDeliveryListV2ResponseDeliveryMethod"), exports); +__exportStar(require("./CarriagePickupFee"), exports); +__exportStar(require("./Carriagev1CarriageContainerApproveRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerApproveResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerApproveResponseErrorContainers"), exports); +__exportStar(require("./Carriagev1CarriageContainerCancelRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerCancelResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerCancelResponseErrorContainers"), exports); +__exportStar(require("./Carriagev1CarriageContainerCreateRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerCreateResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerDocumentGetRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerDocumentGetResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerFillRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerFillResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerFillResponseErrorPostings"), exports); +__exportStar(require("./Carriagev1CarriageContainerGetRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerGetResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerGetResponsePostings"), exports); +__exportStar(require("./Carriagev1CarriageContainerGetResponsePostingsProducts"), exports); +__exportStar(require("./Carriagev1CarriageContainerLabelGetRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerLabelGetResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerLabelGetResponseContent"), exports); +__exportStar(require("./Carriagev1CarriageContainerLabelGetResponseErrorContainers"), exports); +__exportStar(require("./Carriagev1CarriageContainerListRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerListRequestFilter"), exports); +__exportStar(require("./Carriagev1CarriageContainerListRequestSortDirEnum"), exports); +__exportStar(require("./Carriagev1CarriageContainerListResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerListResponseContainers"), exports); +__exportStar(require("./Carriagev1CarriageContainerPlaceIntoRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerPlaceIntoResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerPlaceIntoResponseErrorContainers"), exports); +__exportStar(require("./Carriagev1CarriageContainerRemoveFromRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerRemoveFromResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerRemoveFromResponseErrorContainers"), exports); +__exportStar(require("./Carriagev1CarriageContainerRemovePostingsRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerRemovePostingsResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerRemovePostingsResponseErrorPostings"), exports); +__exportStar(require("./Carriagev1CarriageContainerStatusGetRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerStatusGetResponse"), exports); +__exportStar(require("./Carriagev1CarriageContainerStatusGetResponseContainers"), exports); +__exportStar(require("./Carriagev1CarriageContainerTaskInfoRequest"), exports); +__exportStar(require("./Carriagev1CarriageContainerTaskInfoResponse"), exports); +__exportStar(require("./CertificationV2ProductCertificateCreateRequest"), exports); +__exportStar(require("./CertificationV2ProductCertificateCreateRequestParams"), exports); +__exportStar(require("./CertificationV2ProductCertificateCreateResponse"), exports); +__exportStar(require("./CertificationV2ProductCertificateCreateResponseParam"), exports); +__exportStar(require("./CertificationV2ProductCertificateCreateResponseParamStateEnum"), exports); +__exportStar(require("./CertificationV2ProductCertificateCreateResponseStatusEnum"), exports); +__exportStar(require("./CertificationV2ProductCertificateOptionsResponse"), exports); +__exportStar(require("./CertificationV2ProductCertificateOptionsResponseOption"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsRequest"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsRequestParams"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsRequestParamsAccordanceTypeEnum"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsRequestParamsCertificateTypeEnum"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsRequestParamsExpiredDate"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsRequestParamsFile"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsRequestParamsProductTypeEnum"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsResponse"), exports); +__exportStar(require("./CertificationV2ProductCertificateParamsResponseParam"), exports); +__exportStar(require("./ChatChatSendFileRequest"), exports); +__exportStar(require("./ChatChatSendFileResponse"), exports); +__exportStar(require("./ChatChatSendMessageRequest"), exports); +__exportStar(require("./ChatChatSendMessageResponse"), exports); +__exportStar(require("./ChatChatStartRequest"), exports); +__exportStar(require("./ChatChatStartResponse"), exports); +__exportStar(require("./ChatHistoryRequestFilter"), exports); +__exportStar(require("./ChatInfoChatStatusEnum"), exports); +__exportStar(require("./ChatInfoChatTypeEnum"), exports); +__exportStar(require("./ChatMessageContext"), exports); +__exportStar(require("./ChatMessageModerateImageStatus"), exports); +__exportStar(require("./ChatRead"), exports); +__exportStar(require("./ChatStartResponseResult"), exports); +__exportStar(require("./ClientTimeslotDateRange"), exports); +__exportStar(require("./ClusterWarehouse"), exports); +__exportStar(require("./CommentListResponseComment"), exports); +__exportStar(require("./CommonCreateReportResponse"), exports); +__exportStar(require("./CompanyTaxSystemEnum"), exports); +__exportStar(require("./ContentCanNotEditSupplyContentReasonEnum"), exports); +__exportStar(require("./CourierCoordinates"), exports); +__exportStar(require("./CreateCompanyPostingsReportRequestWith"), exports); +__exportStar(require("./CreateDocumentB2BSalesJSONReportResponseBuyer"), exports); +__exportStar(require("./CreateDocumentB2BSalesJSONReportResponseInvoiceInfo"), exports); +__exportStar(require("./CreateDocumentB2BSalesJSONReportResponseInvoiceInfoType"), exports); +__exportStar(require("./CreateDocumentB2BSalesJSONReportResponseLegalSaleInvoice"), exports); +__exportStar(require("./CreateDocumentB2BSalesJSONReportResponseLegalSaleOperation"), exports); +__exportStar(require("./CreateDocumentB2BSalesJSONReportResponseLegalSaleOperationType"), exports); +__exportStar(require("./CreateDocumentB2BSalesJSONReportResponseSellerInfo"), exports); +__exportStar(require("./CreateReportResponse"), exports); +__exportStar(require("./CreateReportResponseCode"), exports); +__exportStar(require("./CreateReportResponseCodeNoDeadline"), exports); +__exportStar(require("./CreateWarehouseFBSRequestAddressCoordinates"), exports); +__exportStar(require("./CreateWarehouseFBSRequestFirstMileTypeEnum"), exports); +__exportStar(require("./CreateWarehouseFBSRequestOptions"), exports); +__exportStar(require("./CreateWarehouseFBSRequestWorkingDaysEnum"), exports); +__exportStar(require("./CreatedAt"), exports); +__exportStar(require("./DataFulfillment"), exports); +__exportStar(require("./DataMacrolocalCluster"), exports); +__exportStar(require("./DeleteProductsRequestProduct"), exports); +__exportStar(require("./DeleteProductsResponseDeleteStatus"), exports); +__exportStar(require("./DeliveryCheckoutResponseSplit"), exports); +__exportStar(require("./DeliveryCheckoutResponseSplitCommissions"), exports); +__exportStar(require("./DeliveryCheckoutResponseSplitDeliveryMethod"), exports); +__exportStar(require("./DeliveryCheckoutResponseSplitItem"), exports); +__exportStar(require("./DeliveryCheckoutResponseUnavailableReasonEnum"), exports); +__exportStar(require("./DeliveryCheckoutResponseV2SplitDeliverySchemaEnum"), exports); +__exportStar(require("./DeliveryCourier"), exports); +__exportStar(require("./DeliveryDetailsDropOffPointDetails"), exports); +__exportStar(require("./DeliveryDetailsSupplyType"), exports); +__exportStar(require("./DeliveryMapRequestViewportCoordinatesLeft"), exports); +__exportStar(require("./DeliveryMapRequestViewportCoordinatesRight"), exports); +__exportStar(require("./DeliveryMapResponseCluster"), exports); +__exportStar(require("./DeliveryMapResponseClusterCoordinates"), exports); +__exportStar(require("./DeliveryMapResponseClusterCoordinatesLeft"), exports); +__exportStar(require("./DeliveryMapResponseClusterCoordinatesRight"), exports); +__exportStar(require("./DeliveryMapResponseClusterViewport"), exports); +__exportStar(require("./DeliveryMethodAddressDetails"), exports); +__exportStar(require("./DeliveryMethodCarriage"), exports); +__exportStar(require("./DeliveryMethodDateRange"), exports); +__exportStar(require("./DeliveryMethodDeliveryPolygon"), exports); +__exportStar(require("./DeliveryMethodDeliveryTypeEnum"), exports); +__exportStar(require("./DeliveryMethodError"), exports); +__exportStar(require("./DeliveryMethodHolidays"), exports); +__exportStar(require("./DeliveryMethodListRequestFilter"), exports); +__exportStar(require("./DeliveryMethodListResponseDeliveryMethod"), exports); +__exportStar(require("./DeliveryMethodListV2RequestFilter"), exports); +__exportStar(require("./DeliveryMethodListV2RequestSortDirEnum"), exports); +__exportStar(require("./DeliveryMethodListV2ResponseDeliveryMethod"), exports); +__exportStar(require("./DeliveryMethodProperties"), exports); +__exportStar(require("./DeliveryMethodTimeslot"), exports); +__exportStar(require("./DeliveryMethodWorkingHours"), exports); +__exportStar(require("./DeliveryPickUp"), exports); +__exportStar(require("./DeliveryPointInfoResponsePointDeliveryMethod"), exports); +__exportStar(require("./DeliveryPointInfoResponsePointDeliveryMethodDeliveryType"), exports); +__exportStar(require("./DeliveryPointListResponsePointCoordinates"), exports); +__exportStar(require("./DeliveryTypeCourier"), exports); +__exportStar(require("./DeliveryTypeCourierCoordinates"), exports); +__exportStar(require("./DeliveryTypeEnum"), exports); +__exportStar(require("./DeliveryTypePickUp"), exports); +__exportStar(require("./DetailsDeliveryDetails"), exports); +__exportStar(require("./DetailsOthers"), exports); +__exportStar(require("./DetailsPayment"), exports); +__exportStar(require("./DetailsReturnDetails"), exports); +__exportStar(require("./DetailsReturns"), exports); +__exportStar(require("./DetailsRfbsDetails"), exports); +__exportStar(require("./DetailsService"), exports); +__exportStar(require("./DetailsServices"), exports); +__exportStar(require("./DirEnum"), exports); +__exportStar(require("./DirectDetailsBySellerDetails"), exports); +__exportStar(require("./DirectDetailsByTplDetails"), exports); +__exportStar(require("./DirectDetailsTimeslotDetails"), exports); +__exportStar(require("./DraftClusterListResponseLogisticCluster"), exports); +__exportStar(require("./DraftCreateCommonResponseError"), exports); +__exportStar(require("./DraftCreateCommonResponseErrorItemsValidation"), exports); +__exportStar(require("./DraftCreateInfoResponseCluster"), exports); +__exportStar(require("./DraftCreateInfoResponseError"), exports); +__exportStar(require("./DraftCreateInfoResponseErrorErrorReasonEnum"), exports); +__exportStar(require("./DraftGetWarehouseFboListResponseCoordinate"), exports); +__exportStar(require("./DraftGetWarehouseFboListResponseSearch"), exports); +__exportStar(require("./DraftGetWarehouseFboListResponseWarehouseType"), exports); +__exportStar(require("./DraftTimeslotInfoResponseResult"), exports); +__exportStar(require("./DropOffPointCoordinates"), exports); +__exportStar(require("./DropOffWarehouseTimeslotsDay"), exports); +__exportStar(require("./DropOffWarehouseTimeslotsDayTimeslot"), exports); +__exportStar(require("./ErrorData"), exports); +__exportStar(require("./ErrorErrorLevel"), exports); +__exportStar(require("./ErrorErrorMessageEnum"), exports); +__exportStar(require("./ErrorErrorReasonEnum"), exports); +__exportStar(require("./ErrorHumanTexts"), exports); +__exportStar(require("./ErrorItemsValidation"), exports); +__exportStar(require("./ExemplarMark"), exports); +__exportStar(require("./ExemplarsMarks"), exports); +__exportStar(require("./FboPostingFboPostingAnalyticsData"), exports); +__exportStar(require("./FbpCheckActStateResponseErrorReason"), exports); +__exportStar(require("./FbpCheckConsignmentNoteStateResponseStateType"), exports); +__exportStar(require("./FbpCreateActResponseCreateActErrorReason"), exports); +__exportStar(require("./FbpDraftDropOffPointListResponseDropOffPoint"), exports); +__exportStar(require("./FbpDraftDropOffProvinceListResponseProvince"), exports); +__exportStar(require("./FbpDraftGetResponseDeclineReason"), exports); +__exportStar(require("./FbpGetLabelResponseLabelCreationStateTypeEnum"), exports); +__exportStar(require("./FbpWarehouseListResponseAddressDetailing"), exports); +__exportStar(require("./FbpWarehouseListResponseWarehouse"), exports); +__exportStar(require("./Fbpv1DeliveryDetails"), exports); +__exportStar(require("./Fbpv1Timeslot"), exports); +__exportStar(require("./FbsPostingBarcodes"), exports); +__exportStar(require("./FbsPostingDetailCourier"), exports); +__exportStar(require("./FbsPostingDetailPrrOption"), exports); +__exportStar(require("./FbsPostingMoveStatusResponseMoveStatus"), exports); +__exportStar(require("./FbsPostingProductExemplarCreateOrGetV6ResponseProduct"), exports); +__exportStar(require("./FbsPostingProductExemplarSetV6RequestExemplars"), exports); +__exportStar(require("./FbsPostingProductExemplarSetV6RequestProducts"), exports); +__exportStar(require("./FbsPostingShipV4RequestPackage"), exports); +__exportStar(require("./FbsPostingShipV4RequestPackageProduct"), exports); +__exportStar(require("./FbsPostingShipV4RequestWith"), exports); +__exportStar(require("./FbsPostingShipV4ResponseShipAdditionalData"), exports); +__exportStar(require("./FbsPostingTrackingNumberSetRequestTrackingNumber"), exports); +__exportStar(require("./Fbsv4FbsPostingShipV4Request"), exports); +__exportStar(require("./Fbsv4FbsPostingShipV4Response"), exports); +__exportStar(require("./Fbsv4PostingProductDetailWithoutDimensions"), exports); +__exportStar(require("./FilterPeriod"), exports); +__exportStar(require("./FilterStatusEnum"), exports); +__exportStar(require("./FilterTimeslotFromRange"), exports); +__exportStar(require("./FilterWithQuant"), exports); +__exportStar(require("./FinanceCashFlowStatementListResponseCashFlow"), exports); +__exportStar(require("./FinanceCashFlowStatementListResponseDeliveryService"), exports); +__exportStar(require("./FinanceCashFlowStatementListResponseDetails"), exports); +__exportStar(require("./FinanceCashFlowStatementListResponseDetailsOthers"), exports); +__exportStar(require("./FinanceCashFlowStatementListResponseReturnService"), exports); +__exportStar(require("./FinanceCashFlowStatementListResponseService"), exports); +__exportStar(require("./FinanceTransactionListV3RequestFilter"), exports); +__exportStar(require("./FinanceTransactionListV3ResponseOperation"), exports); +__exportStar(require("./FinanceTransactionTotalsV3RequestDate"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayRequest"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponse"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrual"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualAccruedCategoryEnum"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFees"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualContainerFeesContainerFee"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualItemFees"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFee"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualItemFeesItemFeeFee"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualNonItemFee"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPosting"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProduct"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductCommission"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDelivery"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualByDayResponseAccrualPostingProductDeliveryService"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualPostingsRequest"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualPostingsResponse"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualPostingsResponsePostingAccruals"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualPostingsResponsePostingAccrualsAccrual"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualTypesResponse"), exports); +__exportStar(require("./FinanceV1GetFinanceAccrualTypesResponseAccrualType"), exports); +__exportStar(require("./Financev3FinanceTransactionListV3Request"), exports); +__exportStar(require("./Financev3FinanceTransactionListV3Response"), exports); +__exportStar(require("./Financev3FinanceTransactionListV3ResponseResult"), exports); +__exportStar(require("./Financev3FinanceTransactionTotalsV3Request"), exports); +__exportStar(require("./Financev3FinanceTransactionTotalsV3Response"), exports); +__exportStar(require("./Financev3FinanceTransactionTotalsV3ResponseResult"), exports); +__exportStar(require("./Financev3Period"), exports); +__exportStar(require("./FirstMileTypeEnum"), exports); +__exportStar(require("./GetCarriageAvailableListResponseResult"), exports); +__exportStar(require("./GetCompetitorsResponseCompetitorInfo"), exports); +__exportStar(require("./GetConditionalCancellationListV2RequestFilters"), exports); +__exportStar(require("./GetConditionalCancellationListV2RequestWith"), exports); +__exportStar(require("./GetConditionalCancellationListV2ResponseCancellationReason"), exports); +__exportStar(require("./GetConditionalCancellationListV2ResponseResult"), exports); +__exportStar(require("./GetConditionalCancellationListV2ResponseState"), exports); +__exportStar(require("./GetDeliveryMethodReturnSettingsV1ResponseReturnSetting"), exports); +__exportStar(require("./GetDiscountTaskListV2ResponseTask"), exports); +__exportStar(require("./GetDiscountTaskListV2ResponseTaskDiscountTaskStatusEnum"), exports); +__exportStar(require("./GetEtgbRequestDate"), exports); +__exportStar(require("./GetEtgbResponseResult"), exports); +__exportStar(require("./GetEtgbResponseResultEtgb"), exports); +__exportStar(require("./GetFBSRatingIndexInfoV1ResponseIndexDynamics"), exports); +__exportStar(require("./GetFinanceBalanceV1ResponseCashflows"), exports); +__exportStar(require("./GetFinanceBalanceV1ResponseReturns"), exports); +__exportStar(require("./GetFinanceBalanceV1ResponseReturnsDetails"), exports); +__exportStar(require("./GetFinanceBalanceV1ResponseSales"), exports); +__exportStar(require("./GetFinanceBalanceV1ResponseSalesDetails"), exports); +__exportStar(require("./GetFinanceBalanceV1ResponseService"), exports); +__exportStar(require("./GetFinanceBalanceV1ResponseTotal"), exports); +__exportStar(require("./GetFinanceProductsBuyoutResponseProduct"), exports); +__exportStar(require("./GetImportProductsInfoResponseResultItem"), exports); +__exportStar(require("./GetProductAttributesResponseImage"), exports); +__exportStar(require("./GetProductAttributesV3ResponseDictionaryValue"), exports); +__exportStar(require("./GetProductAttributesV4ResponseAttribute"), exports); +__exportStar(require("./GetProductInfoListResponseAvailability"), exports); +__exportStar(require("./GetProductInfoListResponseCommission"), exports); +__exportStar(require("./GetProductInfoListResponseError"), exports); +__exportStar(require("./GetProductInfoListResponseModelInfo"), exports); +__exportStar(require("./GetProductInfoListResponsePriceIndexes"), exports); +__exportStar(require("./GetProductInfoListResponseSource"), exports); +__exportStar(require("./GetProductInfoListResponseStatuses"), exports); +__exportStar(require("./GetProductInfoListResponseStocks"), exports); +__exportStar(require("./GetProductInfoListResponseStocksStock"), exports); +__exportStar(require("./GetProductInfoListResponseVisibilityDetails"), exports); +__exportStar(require("./GetProductInfoPricesResponseItemPriceIndexes"), exports); +__exportStar(require("./GetProductInfoStocksResponseStock"), exports); +__exportStar(require("./GetProductPlacementZoneInfoResponseProductPlacement"), exports); +__exportStar(require("./GetProductRatingBySkuResponseProductRating"), exports); +__exportStar(require("./GetProductRatingBySkuResponseRatingCondition"), exports); +__exportStar(require("./GetProductRatingBySkuResponseRatingGroup"), exports); +__exportStar(require("./GetProductRatingBySkuResponseRatingImproveAttribute"), exports); +__exportStar(require("./GetRealizationReportByDayResponse"), exports); +__exportStar(require("./GetRealizationReportByDayResponseRow"), exports); +__exportStar(require("./GetRealizationReportResponseV2Header"), exports); +__exportStar(require("./GetRealizationReportResponseV2Result"), exports); +__exportStar(require("./GetRealizationReportResponseV2Row"), exports); +__exportStar(require("./GetReturnsListRequestFilter"), exports); +__exportStar(require("./GetReturnsListResponseAdditionalInfo"), exports); +__exportStar(require("./GetReturnsListResponseCompensation"), exports); +__exportStar(require("./GetReturnsListResponseCompensationStatus"), exports); +__exportStar(require("./GetReturnsListResponseExemplar"), exports); +__exportStar(require("./GetReturnsListResponseLogistic"), exports); +__exportStar(require("./GetReturnsListResponsePlaceNow"), exports); +__exportStar(require("./GetReturnsListResponsePlaceTarget"), exports); +__exportStar(require("./GetReturnsListResponseProduct"), exports); +__exportStar(require("./GetReturnsListResponseReturnsItem"), exports); +__exportStar(require("./GetReturnsListResponseStorage"), exports); +__exportStar(require("./GetReturnsListResponseVisual"), exports); +__exportStar(require("./GetReturnsListResponseVisualStatus"), exports); +__exportStar(require("./GetSellerActionsV1ResponseAction"), exports); +__exportStar(require("./GetStrategyIDsByItemIDsResponseProductInfo"), exports); +__exportStar(require("./GetStrategyListResponseStrategy"), exports); +__exportStar(require("./GetSupplyOrderBundleRequestItemTagsCalculation"), exports); +__exportStar(require("./GetUploadQuotaResponseDailyCreate"), exports); +__exportStar(require("./GetUploadQuotaResponseDailyUpdate"), exports); +__exportStar(require("./GetUploadQuotaResponseTotal"), exports); +__exportStar(require("./GetWarehouseFBSOperationStatusResponseError"), exports); +__exportStar(require("./GetWarehouseFBSOperationStatusResponseResult"), exports); +__exportStar(require("./GetWarehouseFBSOperationStatusResponseStatusEnum"), exports); +__exportStar(require("./GetWarehouseFBSOperationStatusResponseTypeEnum"), exports); +__exportStar(require("./GiveoutInfoResponseArticleDetails"), exports); +__exportStar(require("./GiveoutListResponseGiveoutDetails"), exports); +__exportStar(require("./GoogleTypeDate"), exports); +__exportStar(require("./GooglerpcStatus"), exports); +__exportStar(require("./HumanTextsParam"), exports); +__exportStar(require("./ImportProductRequestPromotion"), exports); +__exportStar(require("./ImportProductsRequestPdfList"), exports); +__exportStar(require("./InvoiceGetV2ResponseResult"), exports); +__exportStar(require("./ItemBundleSummary"), exports); +__exportStar(require("./ItemCommissionsv5"), exports); +__exportStar(require("./ItemMarketing"), exports); +__exportStar(require("./ItemPricev5"), exports); +__exportStar(require("./ItemSize"), exports); +__exportStar(require("./ItemStatusError"), exports); +__exportStar(require("./ItemValidationErrorType"), exports); +__exportStar(require("./ItemsValidationRejectedItems"), exports); +__exportStar(require("./LanguageLanguage"), exports); +__exportStar(require("./ListDropOffPointsForCreateFBSWarehouseRequestSearch"), exports); +__exportStar(require("./ListDropOffPointsForCreateFBSWarehouseRequestSearchDropOffPointTypeEnum"), exports); +__exportStar(require("./ListDropOffPointsForCreateFBSWarehouseResponseDropOffPoint"), exports); +__exportStar(require("./ListDropOffPointsForUpdateFBSWarehouseRequestSearch"), exports); +__exportStar(require("./ListDropOffPointsForUpdateFBSWarehouseRequestSearchDropOffPointTypeEnum"), exports); +__exportStar(require("./ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPoint"), exports); +__exportStar(require("./ListDropOffPointsForUpdateFBSWarehouseResponseDropOffPointDropOffPointTypeEnum"), exports); +__exportStar(require("./ListFBSRatingIndexPostingsV1RequestFilter"), exports); +__exportStar(require("./ListFBSRatingIndexPostingsV1ResponseError"), exports); +__exportStar(require("./ListPostingCodesRequestFilter"), exports); +__exportStar(require("./ListPostingCodesRequestWithParams"), exports); +__exportStar(require("./ListPostingCodesResponsePosting"), exports); +__exportStar(require("./LogisticTimeslotDateRange"), exports); +__exportStar(require("./MacrolocalClusterCountry"), exports); +__exportStar(require("./MarketingAction"), exports); +__exportStar(require("./MaxPeriodsPeriod"), exports); +__exportStar(require("./MinPeriodsPeriod"), exports); +__exportStar(require("./MinUtilizationMoney"), exports); +__exportStar(require("./MoneyMoney"), exports); +__exportStar(require("./MoneyMoneyAccrued"), exports); +__exportStar(require("./MoneyMoneyBonus"), exports); +__exportStar(require("./MoneyMoneyCoinvestment"), exports); +__exportStar(require("./MoneyMoneyComissions"), exports); +__exportStar(require("./MoneyMoneyCommission"), exports); +__exportStar(require("./MoneyMoneyCurrentTariffCharge"), exports); +__exportStar(require("./MoneyMoneyCurrentTariffMinCharge"), exports); +__exportStar(require("./MoneyMoneyCustomerPrice"), exports); +__exportStar(require("./MoneyMoneyFBPget"), exports); +__exportStar(require("./MoneyMoneyNextTariffCharge"), exports); +__exportStar(require("./MoneyMoneyNextTariffMinCharge"), exports); +__exportStar(require("./MoneyMoneyPriceWithoutVat"), exports); +__exportStar(require("./MoneyMoneySaleAmount"), exports); +__exportStar(require("./MoneyMoneySaleCommission"), exports); +__exportStar(require("./MoneyMoneySalePrice"), exports); +__exportStar(require("./MoneyMoneySelf"), exports); +__exportStar(require("./MoneyMoneySellerPrice"), exports); +__exportStar(require("./MoneyMoneySplitCommission"), exports); +__exportStar(require("./MoneyMoneySupplyActAmount"), exports); +__exportStar(require("./MoneyMoneySupplyActAmountVat"), exports); +__exportStar(require("./MoneyMoneySupplyActAmountWithoutVat"), exports); +__exportStar(require("./MoneyMoneyTotalAccrued"), exports); +__exportStar(require("./MoneyMoneyTotalAmount"), exports); +__exportStar(require("./MoneyPostingMoney"), exports); +__exportStar(require("./NotificationV1CheckNotificationRequest"), exports); +__exportStar(require("./NotificationV1CheckNotificationResponse"), exports); +__exportStar(require("./NotificationV1CheckNotificationResponseError"), exports); +__exportStar(require("./NotificationV1CheckNotificationResponseErrorTypeEnum"), exports); +__exportStar(require("./NotificationV1DeleteNotificationRequest"), exports); +__exportStar(require("./NotificationV1EnableNotificationRequest"), exports); +__exportStar(require("./NotificationV1GetNotificationPushTypeListResponse"), exports); +__exportStar(require("./NotificationV1GetNotificationPushTypeListResponseNotificationType"), exports); +__exportStar(require("./NotificationV1GetNotificationPushTypeListResponseNotificationTypeSellerEndpoint"), exports); +__exportStar(require("./NotificationV1GetNotificationPushTypeListResponseNotificationTypeTypeEnum"), exports); +__exportStar(require("./NotificationV1NotificationListResponse"), exports); +__exportStar(require("./NotificationV1NotificationListResponseNotification"), exports); +__exportStar(require("./NotificationV1NotificationListResponseNotificationNotificationType"), exports); +__exportStar(require("./NotificationV1NotificationListResponseNotificationNotificationTypeTypeEnum"), exports); +__exportStar(require("./NotificationV1SetNotificationRequest"), exports); +__exportStar(require("./NotificationV1SetNotificationRequestTypeEnum"), exports); +__exportStar(require("./NotificationV1UpdateNotificationRequest"), exports); +__exportStar(require("./NotificationV1UpdateNotificationRequestTypeEnum"), exports); +__exportStar(require("./OperationItem"), exports); +__exportStar(require("./OperationPosting"), exports); +__exportStar(require("./OperationService"), exports); +__exportStar(require("./OrderCancelCheckResponsePosting"), exports); +__exportStar(require("./OrderCancelCheckResponsePostingGroup"), exports); +__exportStar(require("./OrderCreateRequestBuyer"), exports); +__exportStar(require("./OrderCreateRequestDelivery"), exports); +__exportStar(require("./OrderCreateRequestDeliveryPrice"), exports); +__exportStar(require("./OrderCreateRequestPrice"), exports); +__exportStar(require("./OrderCreateRequestRecipient"), exports); +__exportStar(require("./OrderCreateRequestSplit"), exports); +__exportStar(require("./OrderCreateRequestV2DeliverySchemaEnum"), exports); +__exportStar(require("./OrderDropOffWarehouse"), exports); +__exportStar(require("./OrderOrderStateEnum"), exports); +__exportStar(require("./OrderOrderTags"), exports); +__exportStar(require("./OrderSupply"), exports); +__exportStar(require("./OrderSupplyStateEnum"), exports); +__exportStar(require("./ParameterAutoStopActionReasonEnum"), exports); +__exportStar(require("./ParameterDiscountLevels"), exports); +__exportStar(require("./ParameterPickedSegment"), exports); +__exportStar(require("./PickedSegmentSegment"), exports); +__exportStar(require("./PickedSegmentSegmentTypeEnum"), exports); +__exportStar(require("./PointDeliveryMethodCoordinates"), exports); +__exportStar(require("./PolygonBindRequestpolygon"), exports); +__exportStar(require("./PolygonBindRequestwhLocation"), exports); +__exportStar(require("./PolygonListResponsePolygon"), exports); +__exportStar(require("./Polygonv1PolygonBindRequest"), exports); +__exportStar(require("./Polygonv1PolygonCreateRequest"), exports); +__exportStar(require("./Polygonv1PolygonCreateResponse"), exports); +__exportStar(require("./PostingAdditionalDataItem"), exports); +__exportStar(require("./PostingBooleanResponse"), exports); +__exportStar(require("./PostingCancelFbsPostingRequest"), exports); +__exportStar(require("./PostingCancelReason"), exports); +__exportStar(require("./PostingCancelReasonListResponse"), exports); +__exportStar(require("./PostingCancelReasonRequest"), exports); +__exportStar(require("./PostingCancelReasonResponse"), exports); +__exportStar(require("./PostingErrorTypeEnum"), exports); +__exportStar(require("./PostingExemplarInfoExemplarError"), exports); +__exportStar(require("./PostingFBSActCheckStatusResponseStatus"), exports); +__exportStar(require("./PostingFBSActCreateResponseAct"), exports); +__exportStar(require("./PostingFboPostingWithParams"), exports); +__exportStar(require("./PostingFbsPostingDeliveredRequest"), exports); +__exportStar(require("./PostingFbsPostingDeliveringRequest"), exports); +__exportStar(require("./PostingFbsPostingLastMileRequest"), exports); +__exportStar(require("./PostingFbsPostingMoveStatusResponse"), exports); +__exportStar(require("./PostingFbsPostingTrackingNumberSetRequest"), exports); +__exportStar(require("./PostingFbsTraceableSplitResponsePostingProduct"), exports); +__exportStar(require("./PostingFinancialDataProduct"), exports); +__exportStar(require("./PostingFinancialDataProductV2"), exports); +__exportStar(require("./PostingGetFboPostingListRequest"), exports); +__exportStar(require("./PostingGetFboPostingListRequestFilter"), exports); +__exportStar(require("./PostingGetFboPostingRequest"), exports); +__exportStar(require("./PostingGetFbsPostingByBarcodeRequest"), exports); +__exportStar(require("./PostingLegalInfo"), exports); +__exportStar(require("./PostingMarksResponseIssuedExemplar"), exports); +__exportStar(require("./PostingMarksResponseNonIssuedExemplar"), exports); +__exportStar(require("./PostingMovePostingRequest"), exports); +__exportStar(require("./PostingPostingAnalyticsData"), exports); +__exportStar(require("./PostingPostingFBSActCheckStatusRequest"), exports); +__exportStar(require("./PostingPostingFBSActCheckStatusResponse"), exports); +__exportStar(require("./PostingPostingFBSActCreateRequest"), exports); +__exportStar(require("./PostingPostingFBSActCreateResponse"), exports); +__exportStar(require("./PostingPostingFBSActGetContainerLabelsRequest"), exports); +__exportStar(require("./PostingPostingFBSActGetContainerLabelsResponse"), exports); +__exportStar(require("./PostingPostingFBSGetActRequest"), exports); +__exportStar(require("./PostingPostingFBSGetActResponse"), exports); +__exportStar(require("./PostingPostingFBSPackageLabelRequest"), exports); +__exportStar(require("./PostingPostingFBSPackageLabelResponse"), exports); +__exportStar(require("./PostingPostingFinancialData"), exports); +__exportStar(require("./PostingPostingProduct"), exports); +__exportStar(require("./PostingPostingProductCancelRequest"), exports); +__exportStar(require("./PostingPostingProductCancelResponse"), exports); +__exportStar(require("./PostingProductCancelRequestItem"), exports); +__exportStar(require("./PostingV1GetFbpPostingRequest"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponse"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePosting"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePostingAnalyticsData"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePostingCancellation"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePostingFinancialData"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePostingFinancialDataProducts"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePostingFinancialDataProductsActions"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePostingFinancialDataProductsPostingCommission"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePostingFinancialDataProductsReturnCommission"), exports); +__exportStar(require("./PostingV1GetFbpPostingResponsePostingProducts"), exports); +__exportStar(require("./PostingV1PostingFbpListRequest"), exports); +__exportStar(require("./PostingV1PostingFbpListRequestFilter"), exports); +__exportStar(require("./PostingV1PostingFbpListRequestSortDirEnum"), exports); +__exportStar(require("./PostingV1PostingFbpListResponse"), exports); +__exportStar(require("./PostingV1PostingFbpListResponsePostings"), exports); +__exportStar(require("./PostingV1PostingFbpListResponsePostingsFinancialData"), exports); +__exportStar(require("./PostingV1PostingFbpListResponsePostingsFinancialDataProducts"), exports); +__exportStar(require("./PostingV1PostingFbpListResponsePostingsFinancialDataProductsActions"), exports); +__exportStar(require("./PostingV1PostingFbpListResponsePostingsFinancialDataProductsCommission"), exports); +__exportStar(require("./PostingV1PostingFbpListResponsePostingsFinancialDataProductsReturnCommission"), exports); +__exportStar(require("./PostingV1PostingFbpListResponsePostingsProducts"), exports); +__exportStar(require("./PostingV2FboSinglePostingExternalOrder"), exports); +__exportStar(require("./PostingV2PostingDigitalListRequest"), exports); +__exportStar(require("./PostingV2PostingDigitalListRequestFilter"), exports); +__exportStar(require("./PostingV2PostingDigitalListRequestSortDirEnum"), exports); +__exportStar(require("./PostingV2PostingDigitalListRequestWith"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponse"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostings"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsAdditionalData"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsAnalyticsData"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsCancellation"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsExternalOrder"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsFinancialData"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsFinancialDataProducts"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsFinancialDataProductsCommission"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsLegalInfo"), exports); +__exportStar(require("./PostingV2PostingDigitalListResponsePostingsProducts"), exports); +__exportStar(require("./PostingV3FbsPostingContainerCargoTypeEnum"), exports); +__exportStar(require("./PostingV3FbsPostingDetailExternalOrder"), exports); +__exportStar(require("./PostingV3FbsPostingDetailSortingCenter"), exports); +__exportStar(require("./PostingV3FbsPostingSortingCenter"), exports); +__exportStar(require("./PostingV3PostingFboListRequest"), exports); +__exportStar(require("./PostingV3PostingFboListRequestFilter"), exports); +__exportStar(require("./PostingV3PostingFboListRequestSortDirEnum"), exports); +__exportStar(require("./PostingV3PostingFboListRequestWith"), exports); +__exportStar(require("./PostingV3PostingFboListResponse"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostings"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsAdditionalData"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsAnalyticsData"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsCancellation"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsExternalOrder"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsFinancialData"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsFinancialDataProducts"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsFinancialDataProductsCommission"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsLegalInfo"), exports); +__exportStar(require("./PostingV3PostingFboListResponsePostingsProducts"), exports); +__exportStar(require("./PostingV4PostingFbsListRequest"), exports); +__exportStar(require("./PostingV4PostingFbsListRequestFilter"), exports); +__exportStar(require("./PostingV4PostingFbsListRequestFilterLastChangedStatusDate"), exports); +__exportStar(require("./PostingV4PostingFbsListRequestSortDirEnum"), exports); +__exportStar(require("./PostingV4PostingFbsListRequestWith"), exports); +__exportStar(require("./PostingV4PostingFbsListResponse"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostings"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsAddressee"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsAnalyticsData"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsBarcodes"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsCancellation"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsContainer"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsCustomer"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsCustomerAddress"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsDeliveryMethod"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsExternalOrder"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsFinancialData"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsFinancialDataProducts"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsFinancialDataProductsCommission"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsLegalInfo"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsOptional"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsProducts"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsRequirements"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsSortingCenter"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsTariffication"), exports); +__exportStar(require("./PostingV4PostingFbsListResponsePostingsTarifficationStep"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListRequest"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListRequestFilter"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListRequestFilterLastChangedStatusDate"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListRequestSortDirEnum"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListRequestWith"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponse"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostings"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsAddressee"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsAnalyticsData"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsBarcodes"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsCancellation"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsContainer"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsContainerCargoTypeEnum"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsCustomer"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsCustomerAddress"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsDeliveryMethod"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsExternalOrder"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialData"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProducts"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsFinancialDataProductsCommission"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsLegalInfo"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsOptional"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsProducts"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsRequirements"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsSortingCenter"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsTariffication"), exports); +__exportStar(require("./PostingV4PostingFbsUnfulfilledListResponsePostingsTarifficationStep"), exports); +__exportStar(require("./PostinglistV3status"), exports); +__exportStar(require("./Postingv1GetCarriageAvailableListRequest"), exports); +__exportStar(require("./Postingv1GetCarriageAvailableListResponse"), exports); +__exportStar(require("./Postingv3FbsPostingWithParams"), exports); +__exportStar(require("./Postingv3FbsPostingWithParamsExamplars"), exports); +__exportStar(require("./Postingv3GetFbsPostingListRequest"), exports); +__exportStar(require("./Postingv3GetFbsPostingListRequestFilter"), exports); +__exportStar(require("./Postingv3GetFbsPostingRequest"), exports); +__exportStar(require("./Postingv3GetFbsPostingUnfulfilledListRequest"), exports); +__exportStar(require("./Postingv3GetFbsPostingUnfulfilledListRequestFilter"), exports); +__exportStar(require("./Postingv3GetFbsPostingUnfulfilledListResponse"), exports); +__exportStar(require("./Postingv3GetFbsPostingUnfulfilledListResponseResult"), exports); +__exportStar(require("./Postingv3PostingMultiBoxQtySetV3Request"), exports); +__exportStar(require("./Postingv3PostingMultiBoxQtySetV3Response"), exports); +__exportStar(require("./Postingv3PostingMultiBoxQtySetV3ResponseResult"), exports); +__exportStar(require("./PremiumScoresScore"), exports); +__exportStar(require("./PriceIndexesColorIndex"), exports); +__exportStar(require("./PriceIndexesIndexDataExternal"), exports); +__exportStar(require("./PriceIndexesIndexDataOzon"), exports); +__exportStar(require("./PriceIndexesIndexDataSelf"), exports); +__exportStar(require("./PriceIndexesIndexExternalData"), exports); +__exportStar(require("./PriceIndexesIndexOzonData"), exports); +__exportStar(require("./PriceIndexesIndexSelfData"), exports); +__exportStar(require("./ProductBooleanResponse"), exports); +__exportStar(require("./ProductCertificateProductsListResponseProduct"), exports); +__exportStar(require("./ProductCertificateUnbindResponseItem"), exports); +__exportStar(require("./ProductCertificationListResponseCertification"), exports); +__exportStar(require("./ProductCertificationListResponseCertificationResult"), exports); +__exportStar(require("./ProductCertificationListResponseCertificationv2"), exports); +__exportStar(require("./ProductCurrencyEnum"), exports); +__exportStar(require("./ProductExemplar"), exports); +__exportStar(require("./ProductGetImportProductsInfoRequest"), exports); +__exportStar(require("./ProductGetImportProductsInfoResponse"), exports); +__exportStar(require("./ProductGetImportProductsInfoResponseResult"), exports); +__exportStar(require("./ProductGetProductAttributesV3ResponseDictionaryValue"), exports); +__exportStar(require("./ProductGetProductAttributesV4ResponseAttribute"), exports); +__exportStar(require("./ProductGetProductInfoDescriptionRequest"), exports); +__exportStar(require("./ProductGetProductInfoDescriptionResponse"), exports); +__exportStar(require("./ProductGetProductInfoDescriptionResponseProduct"), exports); +__exportStar(require("./ProductGetProductInfoPricesV5ResponseItem"), exports); +__exportStar(require("./ProductImportProductsBySKURequest"), exports); +__exportStar(require("./ProductImportProductsBySKURequestItem"), exports); +__exportStar(require("./ProductImportProductsBySKUResponse"), exports); +__exportStar(require("./ProductImportProductsBySKUResponseResult"), exports); +__exportStar(require("./ProductImportProductsPricesRequest"), exports); +__exportStar(require("./ProductImportProductsPricesRequestPrice"), exports); +__exportStar(require("./ProductImportProductsPricesResponse"), exports); +__exportStar(require("./ProductImportProductsPricesResponseError"), exports); +__exportStar(require("./ProductImportProductsPricesResponseProcessResult"), exports); +__exportStar(require("./ProductInfoWarehouseStocksResponseStocks"), exports); +__exportStar(require("./ProductInfoWrongVolumeResponseWrongVolumeProduct"), exports); +__exportStar(require("./ProductPlacementPlacementZoneEnum"), exports); +__exportStar(require("./ProductProductArchiveRequest"), exports); +__exportStar(require("./ProductProductCertificateAccordanceTypesResponse"), exports); +__exportStar(require("./ProductProductCertificateAccordanceTypesResponseType"), exports); +__exportStar(require("./ProductProductCertificateBindRequest"), exports); +__exportStar(require("./ProductProductCertificateTypesResponse"), exports); +__exportStar(require("./ProductProductCertificateTypesResponseType"), exports); +__exportStar(require("./ProductProductCertificationListRequest"), exports); +__exportStar(require("./ProductProductCertificationListResponse"), exports); +__exportStar(require("./ProductProductInfoPicturesResponsePicture"), exports); +__exportStar(require("./ProductProductUnarchiveRequest"), exports); +__exportStar(require("./ProductUpdateOfferIdRequestUpdateOfferId"), exports); +__exportStar(require("./ProductV1GetProductInfoStocksByWarehouseFboRequest"), exports); +__exportStar(require("./ProductV1GetProductInfoStocksByWarehouseFboResponse"), exports); +__exportStar(require("./ProductV1GetProductInfoStocksByWarehouseFboResponseProduct"), exports); +__exportStar(require("./ProductV1ProductPricesDetailsResponsePricePriceIndex"), exports); +__exportStar(require("./ProductV1ProductPricesDetailsResponsePricePriceIndexIndexData"), exports); +__exportStar(require("./ProductV1ProductPricesDetailsResponsePricePriceIndexIndexDataSelf"), exports); +__exportStar(require("./ProductV1ProductVisibilityInfoRequest"), exports); +__exportStar(require("./ProductV1ProductVisibilityInfoResponse"), exports); +__exportStar(require("./ProductV1ProductVisibilityInfoResponseItem"), exports); +__exportStar(require("./ProductV1ProductVisibilityInfoResponseItemShowcasesVisibilityEnum"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetRequest"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetRequestItemPlacement"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetRequestItemPlacementPlacementEnum"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetResponse"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetResponseItems"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetResponseItemsErrors"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetResponseItemsSelectPermissionEnum"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementEnum"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetResponseItemsSellerItemPlacementListEnum"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityEnum"), exports); +__exportStar(require("./ProductV1ProductVisibilitySetResponseItemsShowcasesVisibilityListEnum"), exports); +__exportStar(require("./ProductV1QuantInfoRequest"), exports); +__exportStar(require("./ProductV1QuantInfoResponse"), exports); +__exportStar(require("./ProductV1QuantInfoResponseResultItems"), exports); +__exportStar(require("./ProductV1QuantInfoResponseResultItemsQuantInfo"), exports); +__exportStar(require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuants"), exports); +__exportStar(require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuantsBarcodesExtended"), exports); +__exportStar(require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuantsDimensions"), exports); +__exportStar(require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuantsMarketingPrice"), exports); +__exportStar(require("./ProductV1QuantInfoResponseResultItemsQuantInfoQuantsTexts"), exports); +__exportStar(require("./ProductV1QuantListRequest"), exports); +__exportStar(require("./ProductV1QuantListResponse"), exports); +__exportStar(require("./ProductV1QuantListResponseProducts"), exports); +__exportStar(require("./ProductV1QuantListResponseProductsQuants"), exports); +__exportStar(require("./ProductV4GetUploadQuotaResponseOperationLimits"), exports); +__exportStar(require("./ProductV4GetUploadQuotaResponseOperationLimitsLimitTypeEnum"), exports); +__exportStar(require("./ProductsPostings"), exports); +__exportStar(require("./Productsv1GetProductInfoStocksByWarehouseFbsRequest"), exports); +__exportStar(require("./Productsv1GetProductInfoStocksByWarehouseFbsResponse"), exports); +__exportStar(require("./Productsv1GetProductInfoStocksByWarehouseFbsResponseResult"), exports); +__exportStar(require("./Productv1ProductImportPicturesRequest"), exports); +__exportStar(require("./Productv1ProductInfoPicturesResponse"), exports); +__exportStar(require("./Productv1ProductInfoPicturesResponseResult"), exports); +__exportStar(require("./Productv2DeleteProductsRequest"), exports); +__exportStar(require("./Productv2DeleteProductsResponse"), exports); +__exportStar(require("./Productv2GetProductListRequestFilterFilterVisibility"), exports); +__exportStar(require("./Productv2ProductsStocksRequest"), exports); +__exportStar(require("./Productv2ProductsStocksRequestStock"), exports); +__exportStar(require("./Productv2ProductsStocksResponse"), exports); +__exportStar(require("./Productv2ProductsStocksResponseError"), exports); +__exportStar(require("./Productv2ProductsStocksResponseResult"), exports); +__exportStar(require("./Productv3GetProductListRequest"), exports); +__exportStar(require("./Productv3GetProductListRequestFilter"), exports); +__exportStar(require("./Productv3GetProductListRequestFilterFilterVisibility"), exports); +__exportStar(require("./Productv3GetProductListResponse"), exports); +__exportStar(require("./Productv3GetProductListResponseItem"), exports); +__exportStar(require("./Productv3GetProductListResponseItemQuant"), exports); +__exportStar(require("./Productv3GetProductListResponseResult"), exports); +__exportStar(require("./Productv4Filter"), exports); +__exportStar(require("./Productv4GetProductAttributesV4Request"), exports); +__exportStar(require("./Productv4GetProductAttributesV4Response"), exports); +__exportStar(require("./Productv4GetProductAttributesV4ResponseResult"), exports); +__exportStar(require("./Productv5Filter"), exports); +__exportStar(require("./Productv5GetProductInfoPricesV5Request"), exports); +__exportStar(require("./Productv5GetProductInfoPricesV5Response"), exports); +__exportStar(require("./Productv5GetProductListRequestFilterFilterVisibility"), exports); +__exportStar(require("./ProtobufAny"), exports); +__exportStar(require("./ProtobufAnyV2DeliveryCheckout"), exports); +__exportStar(require("./QuestionV1GetQuestionListRequestSortDirEnum"), exports); +__exportStar(require("./QuestionV1QuestionAnswerListResponseAnswerStatusPublicationEnum"), exports); +__exportStar(require("./RatingItemChange"), exports); +__exportStar(require("./RatingStatusEnum"), exports); +__exportStar(require("./RatingSummaryV1ResponseGroup"), exports); +__exportStar(require("./RatingSummaryV1ResponseLocalIndex"), exports); +__exportStar(require("./RatingValue"), exports); +__exportStar(require("./RatingValueCurrent"), exports); +__exportStar(require("./RatingValuePast"), exports); +__exportStar(require("./ReasonHumanText"), exports); +__exportStar(require("./ReceiptsSellerListResponseReceipt"), exports); +__exportStar(require("./ReceiptsSellerListResponseReceiptOperationTypeEnum"), exports); +__exportStar(require("./ReceiptsSellerListResponseReceiptTypeEnum"), exports); +__exportStar(require("./RejectedItemsReasonEnum"), exports); +__exportStar(require("./RejectedItemsRejectionReasonEnum"), exports); +__exportStar(require("./RejectedItemsRestrictions"), exports); +__exportStar(require("./RelatedPostingCancelReason"), exports); +__exportStar(require("./RelatedPostingCancelReasons"), exports); +__exportStar(require("./ReportCommonReportAdditionalDataItem"), exports); +__exportStar(require("./ReportCreateCompanyPostingsReportRequest"), exports); +__exportStar(require("./ReportCreateCompanyPostingsReportRequestFilter"), exports); +__exportStar(require("./ReportCreateCompanyProductsReportRequest"), exports); +__exportStar(require("./ReportCreateCompanyProductsReportRequestVisibility"), exports); +__exportStar(require("./ReportCreateDiscountedResponse"), exports); +__exportStar(require("./ReportCreateReportResponse"), exports); +__exportStar(require("./ReportListResponseResult"), exports); +__exportStar(require("./ReportMarkedProductsSalesCreateRequestDate"), exports); +__exportStar(require("./ReportReport"), exports); +__exportStar(require("./ReportReportInfoRequest"), exports); +__exportStar(require("./ReportReportInfoResponse"), exports); +__exportStar(require("./ReportReportListRequest"), exports); +__exportStar(require("./ReportReportListResponse"), exports); +__exportStar(require("./ReportReportinfo"), exports); +__exportStar(require("./ReportV1CreateCompanyFinanceRealizationPostingReportRequest"), exports); +__exportStar(require("./ReportV1CreateCompanyFinanceRealizationPostingReportResponse"), exports); +__exportStar(require("./RestrictionsReasonEnum"), exports); +__exportStar(require("./ResultCargo"), exports); +__exportStar(require("./ResultData"), exports); +__exportStar(require("./ResultDropOffWarehouseTimeslots"), exports); +__exportStar(require("./ResultError"), exports); +__exportStar(require("./ResultUnprintedPosting"), exports); +__exportStar(require("./ReturnSettingCourierDetails"), exports); +__exportStar(require("./ReturnSettingTransportCompanyDetails"), exports); +__exportStar(require("./ReturnsCompanyFbsInfoRequestPagination"), exports); +__exportStar(require("./ReturnsCompanyFbsInfoResponseDropOffPoints"), exports); +__exportStar(require("./ReturnsCompanyFbsInfoResponsePassInfo"), exports); +__exportStar(require("./ReturnsRfbsGetResponseReturns"), exports); +__exportStar(require("./ReturnsRfbsGetV2ResponseAvailableAction"), exports); +__exportStar(require("./ReturnsRfbsGetV2ResponseClientReturnMethodType"), exports); +__exportStar(require("./ReturnsRfbsGetV2ResponseRejectionReason"), exports); +__exportStar(require("./ReturnsRfbsGetV2ResponseReturnReason"), exports); +__exportStar(require("./ReturnsRfbsListResponseReturns"), exports); +__exportStar(require("./ReturnsSettingsUtilizationHistoryResponseHistory"), exports); +__exportStar(require("./ReturnsSettingsUtilizationInfoResponseUtilizationSettings"), exports); +__exportStar(require("./ReturnsSettingsUtilizationUpdateRequestUtilizationPrice"), exports); +__exportStar(require("./ReturnsSettingsUtilizationUpdateRequestUtilizationPriceDefects"), exports); +__exportStar(require("./ReviewInfoResponsePhoto"), exports); +__exportStar(require("./ReviewInfoResponseVideo"), exports); +__exportStar(require("./ReviewListResponseReview"), exports); +__exportStar(require("./ReviewV1CommentListRequestFilter"), exports); +__exportStar(require("./ReviewV2ReviewChangeStatusV2Request"), exports); +__exportStar(require("./ReviewV2ReviewChangeStatusV2RequestStatusEnum"), exports); +__exportStar(require("./ReviewV2ReviewCommentDeleteV2Request"), exports); +__exportStar(require("./ReviewV2ReviewCountV2Response"), exports); +__exportStar(require("./ReviewV2ReviewInfoV2Request"), exports); +__exportStar(require("./ReviewV2ReviewInfoV2Response"), exports); +__exportStar(require("./ReviewV2ReviewInfoV2ResponseOrderStatusEnum"), exports); +__exportStar(require("./ReviewV2ReviewInfoV2ResponsePhoto"), exports); +__exportStar(require("./ReviewV2ReviewInfoV2ResponseStatusEnum"), exports); +__exportStar(require("./ReviewV2ReviewInfoV2ResponseVideo"), exports); +__exportStar(require("./ReviewV2ReviewListV2Request"), exports); +__exportStar(require("./ReviewV2ReviewListV2RequestFilters"), exports); +__exportStar(require("./ReviewV2ReviewListV2RequestFiltersOrderStatusEnum"), exports); +__exportStar(require("./ReviewV2ReviewListV2RequestFiltersStatusEnum"), exports); +__exportStar(require("./ReviewV2ReviewListV2RequestSortDirEnum"), exports); +__exportStar(require("./ReviewV2ReviewListV2Response"), exports); +__exportStar(require("./ReviewV2ReviewListV2ResponseReview"), exports); +__exportStar(require("./ReviewV2ReviewListV2ResponseReviewOrderStatusEnum"), exports); +__exportStar(require("./ReviewV2ReviewListV2ResponseReviewStatusEnum"), exports); +__exportStar(require("./RolesByTokenResponseRoles"), exports); +__exportStar(require("./RowItem"), exports); +__exportStar(require("./RowItemCommission"), exports); +__exportStar(require("./RowItemCommissionReturn"), exports); +__exportStar(require("./RowItemLegalEntityDocument"), exports); +__exportStar(require("./RowItemOrder"), exports); +__exportStar(require("./RpcStatus"), exports); +__exportStar(require("./RpcStatusV1FinanceRealizationPosting"), exports); +__exportStar(require("./RpcStatusV1PolygonBind"), exports); +__exportStar(require("./RpcStatusV1PolygonCreate"), exports); +__exportStar(require("./RpcStatusV2DeliveryCheckout"), exports); +__exportStar(require("./SearchAttributeValuesResponseValue"), exports); +__exportStar(require("./SearchQueriesTextRequestSortBy"), exports); +__exportStar(require("./SearchQueriesTextRequestSortDir"), exports); +__exportStar(require("./SellerActionsListRequestActionTypeEnum"), exports); +__exportStar(require("./SellerActionsListRequestStatusEnum"), exports); +__exportStar(require("./SellerActionsListResponseAction"), exports); +__exportStar(require("./SellerActionsUpdateMultiLevelDiscountRequestActionParametersDiscountLevel"), exports); +__exportStar(require("./SellerApiActivateProductV1Request"), exports); +__exportStar(require("./SellerApiGetSellerActionsV1Response"), exports); +__exportStar(require("./SellerApiGetSellerProductV1Request"), exports); +__exportStar(require("./SellerApiGetSellerProductV1Response"), exports); +__exportStar(require("./SellerApiGetSellerProductV1ResponseResult"), exports); +__exportStar(require("./SellerApiProduct"), exports); +__exportStar(require("./SellerApiProductIDsV1Request"), exports); +__exportStar(require("./SellerApiProductPrice"), exports); +__exportStar(require("./SellerApiProductV1Response"), exports); +__exportStar(require("./SellerApiProductV1ResponseDeactivate"), exports); +__exportStar(require("./SellerApiProductV1ResponseProduct"), exports); +__exportStar(require("./SellerApiProductV1ResponseProductDeactivate"), exports); +__exportStar(require("./SellerApiProductV1ResponseResult"), exports); +__exportStar(require("./SellerApiProductV1ResponseResultDeactivate"), exports); +__exportStar(require("./SellerInfoResponseCompany"), exports); +__exportStar(require("./SellerInfoResponseRating"), exports); +__exportStar(require("./SellerInfoResponseRatingTypeEnum"), exports); +__exportStar(require("./SellerInfoResponseSubscription"), exports); +__exportStar(require("./SellerInfoResponseSubscriptionTypeEnum"), exports); +__exportStar(require("./SellerOzonLogisticsInfoResponseAvailableSchemasEnum"), exports); +__exportStar(require("./SellerReturnsv1MoneyCommission"), exports); +__exportStar(require("./SellerReturnsv1MoneyProduct"), exports); +__exportStar(require("./SellerReturnsv1MoneyStorage"), exports); +__exportStar(require("./SellerReturnsv1MoneyUtilization"), exports); +__exportStar(require("./SellerReturnsv1MoneyWithoutCommission"), exports); +__exportStar(require("./SellerSellerAPIArrivalPassCreateRequest"), exports); +__exportStar(require("./SellerSellerAPIArrivalPassCreateRequestArrivalPass"), exports); +__exportStar(require("./SellerSellerAPIArrivalPassCreateResponse"), exports); +__exportStar(require("./SellerSellerAPIArrivalPassDeleteRequest"), exports); +__exportStar(require("./SellerSellerAPIArrivalPassUpdateRequest"), exports); +__exportStar(require("./SellerSellerAPIArrivalPassUpdateRequestArrivalPass"), exports); +__exportStar(require("./SellerServiceanalyticsDimension"), exports); +__exportStar(require("./SetPostingsResponseResult"), exports); +__exportStar(require("./SourceShipmentType"), exports); +__exportStar(require("./SplitDeliveryMethod"), exports); +__exportStar(require("./SplitItem"), exports); +__exportStar(require("./StatusEnum"), exports); +__exportStar(require("./StockShipmentType"), exports); +__exportStar(require("./StocksImportRequestItemStock"), exports); +__exportStar(require("./StocksImportResponseItemStatus"), exports); +__exportStar(require("./SupplierAvailableWarehousesResponseCapacity"), exports); +__exportStar(require("./SupplierAvailableWarehousesResponseResult"), exports); +__exportStar(require("./SupplierAvailableWarehousesResponseSchedule"), exports); +__exportStar(require("./SupplierAvailableWarehousesResponseWarehouse"), exports); +__exportStar(require("./SupplyCancellationAllowability"), exports); +__exportStar(require("./SupplyCargoInfo"), exports); +__exportStar(require("./SupplyCargoInfoTypeEnum"), exports); +__exportStar(require("./SupplyCheckCargoesPresentRule"), exports); +__exportStar(require("./SupplyCheckEditDeadlineExpireRule"), exports); +__exportStar(require("./SupplyCheckExpireDatePresentedRule"), exports); +__exportStar(require("./SupplyCheckIsValidDistributionRule"), exports); +__exportStar(require("./SupplyCheckPackageUnitWithDistributionRule"), exports); +__exportStar(require("./SupplyCheckPlacementZoneRule"), exports); +__exportStar(require("./SupplyContent"), exports); +__exportStar(require("./SupplyETTN"), exports); +__exportStar(require("./SupplyOrderCancelStatusResponseCancelOrderError"), exports); +__exportStar(require("./SupplyOrderCancelStatusResponseCancelSupplyResults"), exports); +__exportStar(require("./SupplyOrderCancelStatusResponseResult"), exports); +__exportStar(require("./SupplyOrderContentUpdateStatusResponseStatusEnum"), exports); +__exportStar(require("./SupplyOrderContentUpdateValidationResponseApprovedItems"), exports); +__exportStar(require("./SupplyOrderContentUpdateValidationResponseEditingErrorEnum"), exports); +__exportStar(require("./SupplyOrderContentUpdateValidationResponseRejectedItems"), exports); +__exportStar(require("./SupplyOrderContentUpdateValidationResponseValidatedAssortment"), exports); +__exportStar(require("./SupplyOrderDetailsResponseOrderStateEnum"), exports); +__exportStar(require("./SupplyOrderDetailsResponseOrderTags"), exports); +__exportStar(require("./SupplyOrderDetailsResponseSupply"), exports); +__exportStar(require("./SupplyOrderDetailsResponseTimeslotValue"), exports); +__exportStar(require("./SupplyOrderDetailsResponseVehicle"), exports); +__exportStar(require("./SupplyOrderDetailsResponseVehicleValue"), exports); +__exportStar(require("./SupplyOrderGetResponseOrder"), exports); +__exportStar(require("./SupplyOrderGetResponseTimeslotTZ"), exports); +__exportStar(require("./SupplyOrderListRequestFilter"), exports); +__exportStar(require("./SupplyOrderListRequestFilterStateEnum"), exports); +__exportStar(require("./SupplyOrderListRequestSortByEnum"), exports); +__exportStar(require("./SupplyOrderListRequestSortDirEnum"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActAcceptRequest"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActAcceptResponse"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActAcceptResponseErrorReasonsEnum"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActAcceptStatusRequest"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActAcceptStatusResponse"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActAcceptStatusResponseStatusEnum"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetRequest"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetResponse"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetResponseSkusDefects"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActs"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItems"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsApprovedAmount"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsFactAmount"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsItemsSkuInfo"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActProductGetResponseSupplyActsTypeEnum"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetRequest"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetResponse"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActs"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActs"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsActStateEnum"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummary"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryApprovedAmount"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsSummaryFactAmount"), exports); +__exportStar(require("./SupplyOrderV1SupplyOrderActSummaryGetResponseSuppliesActsSupplyActsTypeEnum"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListRequest"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListResponse"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListResponseLimitExceeded"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbidden"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotChangeForbiddenErrorReasonsEnum"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfo"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoLimitations"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimeslots"), exports); +__exportStar(require("./SupplyOrderV2SupplyOrderTimeslotListResponseTimeslotsInfoTimezone"), exports); +__exportStar(require("./SupplyOverdueReasonEnum"), exports); +__exportStar(require("./SupplyStateEnum"), exports); +__exportStar(require("./SupplyStorageWarehouse"), exports); +__exportStar(require("./SupplySupplyTags"), exports); +__exportStar(require("./SupplyTags"), exports); +__exportStar(require("./TaskAutoModeratedInfo"), exports); +__exportStar(require("./TimeslotCanNotSetTimeslotReasonEnum"), exports); +__exportStar(require("./TimeslotFromRangeTimeslotFilterTypeEnum"), exports); +__exportStar(require("./TimeslotTZTimeslot"), exports); +__exportStar(require("./TimeslotTZTimezoneInfo"), exports); +__exportStar(require("./TimeslotValueTimeslot"), exports); +__exportStar(require("./TimetableWorkingHours"), exports); +__exportStar(require("./TypeTimeOfDay"), exports); +__exportStar(require("./UploadPostingCodesRequestPostingLineExemplarInfo"), exports); +__exportStar(require("./UploadPostingCodesResponsePostingExemplarInfo"), exports); +__exportStar(require("./UtilizationDefectsMoney"), exports); +__exportStar(require("./UtilizationMoney"), exports); +__exportStar(require("./V1AddBarcodeRequest"), exports); +__exportStar(require("./V1AddBarcodeResponse"), exports); +__exportStar(require("./V1AddBarcodeResult"), exports); +__exportStar(require("./V1AddStrategyItemsRequest"), exports); +__exportStar(require("./V1AddStrategyItemsResponse"), exports); +__exportStar(require("./V1AddStrategyItemsResponseResult"), exports); +__exportStar(require("./V1AnalyticsManageStocksRequest"), exports); +__exportStar(require("./V1AnalyticsManageStocksRequestFilter"), exports); +__exportStar(require("./V1AnalyticsManageStocksResponse"), exports); +__exportStar(require("./V1AnalyticsManageStocksResponseItem"), exports); +__exportStar(require("./V1AnalyticsProductQueriesDetailsRequest"), exports); +__exportStar(require("./V1AnalyticsProductQueriesDetailsRequestSortBy"), exports); +__exportStar(require("./V1AnalyticsProductQueriesDetailsRequestSortDir"), exports); +__exportStar(require("./V1AnalyticsProductQueriesDetailsResponse"), exports); +__exportStar(require("./V1AnalyticsProductQueriesDetailsResponseAnalyticsPeriod"), exports); +__exportStar(require("./V1AnalyticsProductQueriesRequest"), exports); +__exportStar(require("./V1AnalyticsProductQueriesResponse"), exports); +__exportStar(require("./V1AnalyticsProductQueriesResponseItem"), exports); +__exportStar(require("./V1AnalyticsStocksRequest"), exports); +__exportStar(require("./V1AnalyticsStocksResponse"), exports); +__exportStar(require("./V1AnalyticsStocksResponseItem"), exports); +__exportStar(require("./V1AnalyticsTurnoverStocksRequest"), exports); +__exportStar(require("./V1AnalyticsTurnoverStocksResponse"), exports); +__exportStar(require("./V1AnalyticsTurnoverStocksResponseItem"), exports); +__exportStar(require("./V1ApproveDeclineDiscountTasksResponse"), exports); +__exportStar(require("./V1ApproveDeclineDiscountTasksResponseResult"), exports); +__exportStar(require("./V1ApproveDiscountTasksRequest"), exports); +__exportStar(require("./V1ApproveDiscountTasksRequestTask"), exports); +__exportStar(require("./V1ArchiveDeclineReason"), exports); +__exportStar(require("./V1ArchiveSkuSummary"), exports); +__exportStar(require("./V1ArchiveStatusEnum"), exports); +__exportStar(require("./V1ArchiveWarehouseFBSRequest"), exports); +__exportStar(require("./V1ArchiveWarehouseFBSResponse"), exports); +__exportStar(require("./V1AssemblyCarriagePostingListRequest"), exports); +__exportStar(require("./V1AssemblyCarriagePostingListRequestFilter"), exports); +__exportStar(require("./V1AssemblyCarriagePostingListResponse"), exports); +__exportStar(require("./V1AssemblyCarriagePostingListResponsePosting"), exports); +__exportStar(require("./V1AssemblyCarriagePostingListResponsePostingProduct"), exports); +__exportStar(require("./V1AssemblyCarriageProductListRequest"), exports); +__exportStar(require("./V1AssemblyCarriageProductListRequestFilter"), exports); +__exportStar(require("./V1AssemblyCarriageProductListResponse"), exports); +__exportStar(require("./V1AssemblyCarriageProductListResponseProduct"), exports); +__exportStar(require("./V1AssemblyFbsPostingListRequest"), exports); +__exportStar(require("./V1AssemblyFbsPostingListRequestFilter"), exports); +__exportStar(require("./V1AssemblyFbsPostingListRequestSortDirEnum"), exports); +__exportStar(require("./V1AssemblyFbsPostingListResponse"), exports); +__exportStar(require("./V1AssemblyFbsPostingListResponsePosting"), exports); +__exportStar(require("./V1AssemblyFbsPostingListResponsePostingProduct"), exports); +__exportStar(require("./V1AssemblyFbsProductListRequest"), exports); +__exportStar(require("./V1AssemblyFbsProductListRequestFilter"), exports); +__exportStar(require("./V1AssemblyFbsProductListRequestSortDirEnum"), exports); +__exportStar(require("./V1AssemblyFbsProductListResponse"), exports); +__exportStar(require("./V1Barcode"), exports); +__exportStar(require("./V1BundleItemErrorEnum"), exports); +__exportStar(require("./V1BundleItemShipmentType"), exports); +__exportStar(require("./V1CancelReasonListByOrderRequest"), exports); +__exportStar(require("./V1CancelReasonListByOrderResponse"), exports); +__exportStar(require("./V1CancelReasonListByOrderResponseReason"), exports); +__exportStar(require("./V1CancelReasonListByOrderResponseReasonFbo"), exports); +__exportStar(require("./V1CancelReasonListByPostingRequest"), exports); +__exportStar(require("./V1CancelReasonListByPostingResponse"), exports); +__exportStar(require("./V1CancelReasonListByPostingResponseReason"), exports); +__exportStar(require("./V1CancelReasonListResponse"), exports); +__exportStar(require("./V1CancelReasonListResponseFbo"), exports); +__exportStar(require("./V1CancellationState"), exports); +__exportStar(require("./V1CancellationStateStatus"), exports); +__exportStar(require("./V1CargoesCreateErrors"), exports); +__exportStar(require("./V1CargoesCreateRequest"), exports); +__exportStar(require("./V1CargoesCreateRequestCargo"), exports); +__exportStar(require("./V1CargoesCreateRequestCargoValue"), exports); +__exportStar(require("./V1CargoesCreateResponse"), exports); +__exportStar(require("./V1CargoesDeleteRequest"), exports); +__exportStar(require("./V1CargoesDeleteResponse"), exports); +__exportStar(require("./V1CargoesDeleteResponseError"), exports); +__exportStar(require("./V1CargoesDeleteResponseErrorCargoErrorReason"), exports); +__exportStar(require("./V1CargoesDeleteResponseErrorCargoErrorReasonErrorReasonEnum"), exports); +__exportStar(require("./V1CargoesDeleteResponseErrorSupplyErrorReasonEnum"), exports); +__exportStar(require("./V1CargoesDeleteStatusRequest"), exports); +__exportStar(require("./V1CargoesDeleteStatusResponse"), exports); +__exportStar(require("./V1CargoesDeleteStatusResponseError"), exports); +__exportStar(require("./V1CargoesDeleteStatusResponseErrorCargoErrorReason"), exports); +__exportStar(require("./V1CargoesDeleteStatusResponseErrorCargoErrorReasonErrorReasonEnum"), exports); +__exportStar(require("./V1CargoesDeleteStatusResponseErrorSupplyErrorReasonEnum"), exports); +__exportStar(require("./V1CargoesGetRequest"), exports); +__exportStar(require("./V1CargoesGetResponse"), exports); +__exportStar(require("./V1CargoesLabelCreateErrors"), exports); +__exportStar(require("./V1CargoesLabelCreateErrorsErrorReason"), exports); +__exportStar(require("./V1CargoesLabelCreateRequest"), exports); +__exportStar(require("./V1CargoesLabelCreateRequestCargo"), exports); +__exportStar(require("./V1CargoesLabelCreateResponse"), exports); +__exportStar(require("./V1CargoesLabelGetRequest"), exports); +__exportStar(require("./V1CargoesLabelGetResponse"), exports); +__exportStar(require("./V1CargoesLabelGetResponseResult"), exports); +__exportStar(require("./V1CargoesLabelGetResponseStatus"), exports); +__exportStar(require("./V1CargoesRulesGetRequest"), exports); +__exportStar(require("./V1CargoesRulesGetResponse"), exports); +__exportStar(require("./V1CarriageActDiscrepancyPDFRequest"), exports); +__exportStar(require("./V1CarriageActDiscrepancyPDFResponse"), exports); +__exportStar(require("./V1CarriageApproveRequest"), exports); +__exportStar(require("./V1CarriageCancelRequest"), exports); +__exportStar(require("./V1CarriageCancelResponse"), exports); +__exportStar(require("./V1CarriageCourierContactGetRequest"), exports); +__exportStar(require("./V1CarriageCourierContactGetResponse"), exports); +__exportStar(require("./V1CarriageCourierContactGetResponseContact"), exports); +__exportStar(require("./V1CarriageCourierContactSetRequest"), exports); +__exportStar(require("./V1CarriageCreateRequest"), exports); +__exportStar(require("./V1CarriageCreateResponse"), exports); +__exportStar(require("./V1CarriageDeliveryListRequest"), exports); +__exportStar(require("./V1CarriageDeliveryListResponse"), exports); +__exportStar(require("./V1CarriageDeliveryListResponseResult"), exports); +__exportStar(require("./V1CarriageDeliveryListResponseResultCarriages"), exports); +__exportStar(require("./V1CarriageDeliveryListResponseResultErrors"), exports); +__exportStar(require("./V1CarriageEttnStatusRequest"), exports); +__exportStar(require("./V1CarriageEttnStatusResponse"), exports); +__exportStar(require("./V1Certificate"), exports); +__exportStar(require("./V1ClusterType"), exports); +__exportStar(require("./V1CommentCreateRequest"), exports); +__exportStar(require("./V1CommentCreateResponse"), exports); +__exportStar(require("./V1CommentDeleteRequest"), exports); +__exportStar(require("./V1CommentListRequest"), exports); +__exportStar(require("./V1CommentListResponse"), exports); +__exportStar(require("./V1CommentSort"), exports); +__exportStar(require("./V1Competitor"), exports); +__exportStar(require("./V1CreateDocumentB2BSalesJSONReportRequest"), exports); +__exportStar(require("./V1CreateDocumentB2BSalesJSONReportResponse"), exports); +__exportStar(require("./V1CreateDocumentB2BSalesReportRequest"), exports); +__exportStar(require("./V1CreateLabelBatchRequest"), exports); +__exportStar(require("./V1CreateLabelBatchResponse"), exports); +__exportStar(require("./V1CreateLabelBatchResponseResult"), exports); +__exportStar(require("./V1CreateMutualSettlementReportRequest"), exports); +__exportStar(require("./V1CreatePlacementByProductsReportRequest"), exports); +__exportStar(require("./V1CreatePlacementByProductsReportResponse"), exports); +__exportStar(require("./V1CreatePlacementBySuppliesReportRequest"), exports); +__exportStar(require("./V1CreatePlacementBySuppliesReportResponse"), exports); +__exportStar(require("./V1CreatePricingStrategyRequest"), exports); +__exportStar(require("./V1CreatePricingStrategyResponse"), exports); +__exportStar(require("./V1CreatePricingStrategyResponseResult"), exports); +__exportStar(require("./V1CreateStockByWarehouseReportRequest"), exports); +__exportStar(require("./V1CreateType"), exports); +__exportStar(require("./V1CreateWarehouseFBSRequest"), exports); +__exportStar(require("./V1CreateWarehouseFBSResponse"), exports); +__exportStar(require("./V1DayOfWeek"), exports); +__exportStar(require("./V1DeclineDiscountTasksRequest"), exports); +__exportStar(require("./V1DeclineDiscountTasksRequestTask"), exports); +__exportStar(require("./V1DeleteStrategyItemsResponse"), exports); +__exportStar(require("./V1DeleteStrategyItemsResponseResult"), exports); +__exportStar(require("./V1DeliveryCheckRequest"), exports); +__exportStar(require("./V1DeliveryCheckResponse"), exports); +__exportStar(require("./V1DeliveryCheckoutRequest"), exports); +__exportStar(require("./V1DeliveryCheckoutRequestDeliveryType"), exports); +__exportStar(require("./V1DeliveryCheckoutRequestItem"), exports); +__exportStar(require("./V1DeliveryCheckoutResponse"), exports); +__exportStar(require("./V1DeliveryDetailsDirectDetails"), exports); +__exportStar(require("./V1DeliveryDetailsPickUpDetails"), exports); +__exportStar(require("./V1DeliveryMapRequest"), exports); +__exportStar(require("./V1DeliveryMapRequestViewport"), exports); +__exportStar(require("./V1DeliveryMapResponse"), exports); +__exportStar(require("./V1DeliveryPointInfoRequest"), exports); +__exportStar(require("./V1DeliveryPointInfoResponse"), exports); +__exportStar(require("./V1DeliveryPointInfoResponsePoint"), exports); +__exportStar(require("./V1DeliveryPointListResponse"), exports); +__exportStar(require("./V1DeliveryPointListResponsePoint"), exports); +__exportStar(require("./V1DiscountTaskStatus"), exports); +__exportStar(require("./V1DraftClusterListRequest"), exports); +__exportStar(require("./V1DraftClusterListResponse"), exports); +__exportStar(require("./V1DraftClusterListResponseCluster"), exports); +__exportStar(require("./V1DraftClusterListResponseWarehouse"), exports); +__exportStar(require("./V1DraftCreateCommonResponse"), exports); +__exportStar(require("./V1DraftCrossdockCreateRequest"), exports); +__exportStar(require("./V1DraftCrossdockCreateRequestClusterInfo"), exports); +__exportStar(require("./V1DraftCrossdockCreateRequestClusterInfoItem"), exports); +__exportStar(require("./V1DraftCrossdockCreateRequestDeleteSkuModeEnum"), exports); +__exportStar(require("./V1DraftCrossdockCreateRequestDeliveryInfo"), exports); +__exportStar(require("./V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouse"), exports); +__exportStar(require("./V1DraftCrossdockCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum"), exports); +__exportStar(require("./V1DraftCrossdockCreateRequestDeliveryInfoTypeEnum"), exports); +__exportStar(require("./V1DraftDirectCreateRequest"), exports); +__exportStar(require("./V1DraftDirectCreateRequestClusterInfo"), exports); +__exportStar(require("./V1DraftDirectCreateRequestClusterInfoItem"), exports); +__exportStar(require("./V1DraftDirectCreateRequestDeleteSkuModeEnum"), exports); +__exportStar(require("./V1DraftGetWarehouseFboListRequest"), exports); +__exportStar(require("./V1DraftGetWarehouseFboListResponse"), exports); +__exportStar(require("./V1DraftMultiClusterCreateRequest"), exports); +__exportStar(require("./V1DraftMultiClusterCreateRequestClusterInfo"), exports); +__exportStar(require("./V1DraftMultiClusterCreateRequestClusterInfoItem"), exports); +__exportStar(require("./V1DraftMultiClusterCreateRequestDeleteSkuModeEnum"), exports); +__exportStar(require("./V1DraftMultiClusterCreateRequestDeliveryInfo"), exports); +__exportStar(require("./V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouse"), exports); +__exportStar(require("./V1DraftMultiClusterCreateRequestDeliveryInfoDropOffWarehouseWarehouseTypeEnum"), exports); +__exportStar(require("./V1DraftMultiClusterCreateRequestDeliveryInfoTypeEnum"), exports); +__exportStar(require("./V1DraftStatusEnum"), exports); +__exportStar(require("./V1FbpArchiveGetRequest"), exports); +__exportStar(require("./V1FbpArchiveGetResponse"), exports); +__exportStar(require("./V1FbpArchiveListRequest"), exports); +__exportStar(require("./V1FbpArchiveListResponse"), exports); +__exportStar(require("./V1FbpArchiveListResponseItem"), exports); +__exportStar(require("./V1FbpAvailableTimeslotListRequest"), exports); +__exportStar(require("./V1FbpAvailableTimeslotListResponse"), exports); +__exportStar(require("./V1FbpAvailableTimeslotListResponseEmptyTimeslotsReason"), exports); +__exportStar(require("./V1FbpCheckActStateRequest"), exports); +__exportStar(require("./V1FbpCheckActStateResponse"), exports); +__exportStar(require("./V1FbpCheckActStateResponseStatus"), exports); +__exportStar(require("./V1FbpCheckConsignmentNoteStateRequest"), exports); +__exportStar(require("./V1FbpCheckConsignmentNoteStateResponse"), exports); +__exportStar(require("./V1FbpCreateActRequest"), exports); +__exportStar(require("./V1FbpCreateActResponse"), exports); +__exportStar(require("./V1FbpCreateConsignmentNoteRequest"), exports); +__exportStar(require("./V1FbpCreateConsignmentNoteResponse"), exports); +__exportStar(require("./V1FbpCreateLabelRequest"), exports); +__exportStar(require("./V1FbpCreateLabelResponse"), exports); +__exportStar(require("./V1FbpDraftDirectCreateRequest"), exports); +__exportStar(require("./V1FbpDraftDirectCreateRequestDirectDetails"), exports); +__exportStar(require("./V1FbpDraftDirectCreateResponse"), exports); +__exportStar(require("./V1FbpDraftDirectDeleteRequest"), exports); +__exportStar(require("./V1FbpDraftDirectDeleteResponse"), exports); +__exportStar(require("./V1FbpDraftDirectGetTimeslotRequest"), exports); +__exportStar(require("./V1FbpDraftDirectGetTimeslotResponse"), exports); +__exportStar(require("./V1FbpDraftDirectGetTimeslotResponseEmptyTimeslotsReason"), exports); +__exportStar(require("./V1FbpDraftDirectGetTimeslotResponseTimeslot"), exports); +__exportStar(require("./V1FbpDraftDirectProductValidateRequest"), exports); +__exportStar(require("./V1FbpDraftDirectProductValidateRequestSkuItem"), exports); +__exportStar(require("./V1FbpDraftDirectProductValidateResponse"), exports); +__exportStar(require("./V1FbpDraftDirectProductValidateResponseApprovedItem"), exports); +__exportStar(require("./V1FbpDraftDirectProductValidateResponseRejectedItem"), exports); +__exportStar(require("./V1FbpDraftDirectRegistrateRequest"), exports); +__exportStar(require("./V1FbpDraftDirectRegistrateResponse"), exports); +__exportStar(require("./V1FbpDraftDirectRegistrateResponseRegistrationError"), exports); +__exportStar(require("./V1FbpDraftDirectRegistrateResponseRegistrationErrorBundleError"), exports); +__exportStar(require("./V1FbpDraftDirectSellerDlvCreateRequest"), exports); +__exportStar(require("./V1FbpDraftDirectSellerDlvCreateRequestDirectDetails"), exports); +__exportStar(require("./V1FbpDraftDirectSellerDlvCreateResponse"), exports); +__exportStar(require("./V1FbpDraftDirectSellerDlvEditRequest"), exports); +__exportStar(require("./V1FbpDraftDirectSellerDlvEditResponse"), exports); +__exportStar(require("./V1FbpDraftDirectTimeslotEditRequest"), exports); +__exportStar(require("./V1FbpDraftDirectTimeslotEditResponse"), exports); +__exportStar(require("./V1FbpDraftDirectTimeslotEditResponseReserveFailureType"), exports); +__exportStar(require("./V1FbpDraftDirectTplDlvCreateRequest"), exports); +__exportStar(require("./V1FbpDraftDirectTplDlvCreateRequestDirectDetails"), exports); +__exportStar(require("./V1FbpDraftDirectTplDlvCreateResponse"), exports); +__exportStar(require("./V1FbpDraftDirectTplDlvEditRequest"), exports); +__exportStar(require("./V1FbpDraftDirectTplDlvEditResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffCreateRequest"), exports); +__exportStar(require("./V1FbpDraftDropOffCreateRequestDeliveryDetails"), exports); +__exportStar(require("./V1FbpDraftDropOffCreateResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffDeleteRequest"), exports); +__exportStar(require("./V1FbpDraftDropOffDeleteResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffDlvEditRequest"), exports); +__exportStar(require("./V1FbpDraftDropOffDlvEditResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffPointListRequest"), exports); +__exportStar(require("./V1FbpDraftDropOffPointListResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffPointTimetableRequest"), exports); +__exportStar(require("./V1FbpDraftDropOffPointTimetableResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffPointTimetableResponseCalendar"), exports); +__exportStar(require("./V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItem"), exports); +__exportStar(require("./V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTime"), exports); +__exportStar(require("./V1FbpDraftDropOffPointTimetableResponseCalendarCalendarItemTimeslotWithTimeOpening"), exports); +__exportStar(require("./V1FbpDraftDropOffProductValidateRequest"), exports); +__exportStar(require("./V1FbpDraftDropOffProductValidateRequestSkuItem"), exports); +__exportStar(require("./V1FbpDraftDropOffProductValidateResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffProductValidateResponseApprovedItem"), exports); +__exportStar(require("./V1FbpDraftDropOffProductValidateResponseRejectedItem"), exports); +__exportStar(require("./V1FbpDraftDropOffProvinceListRequest"), exports); +__exportStar(require("./V1FbpDraftDropOffProvinceListResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffRegistrateRequest"), exports); +__exportStar(require("./V1FbpDraftDropOffRegistrateResponse"), exports); +__exportStar(require("./V1FbpDraftDropOffRegistrateResponseRegistrationError"), exports); +__exportStar(require("./V1FbpDraftDropOffRegistrateResponseRegistrationErrorBundleError"), exports); +__exportStar(require("./V1FbpDraftGetRequest"), exports); +__exportStar(require("./V1FbpDraftGetResponse"), exports); +__exportStar(require("./V1FbpDraftListRequest"), exports); +__exportStar(require("./V1FbpDraftListResponse"), exports); +__exportStar(require("./V1FbpDraftListResponseItem"), exports); +__exportStar(require("./V1FbpDraftPickUpDeleteRequest"), exports); +__exportStar(require("./V1FbpDraftPickUpDeleteResponse"), exports); +__exportStar(require("./V1FbpDraftPickUpProductValidateRequest"), exports); +__exportStar(require("./V1FbpDraftPickUpProductValidateRequestSkuItem"), exports); +__exportStar(require("./V1FbpDraftPickUpProductValidateResponse"), exports); +__exportStar(require("./V1FbpDraftPickUpProductValidateResponseApprovedItem"), exports); +__exportStar(require("./V1FbpDraftPickUpProductValidateResponseRejectedItem"), exports); +__exportStar(require("./V1FbpDraftPickUpRegistrateRequest"), exports); +__exportStar(require("./V1FbpDraftPickUpRegistrateResponse"), exports); +__exportStar(require("./V1FbpDraftPickUpRegistrateResponseRegistrationError"), exports); +__exportStar(require("./V1FbpDraftPickUpRegistrateResponseRegistrationErrorBundleError"), exports); +__exportStar(require("./V1FbpDraftPickupCreateRequest"), exports); +__exportStar(require("./V1FbpDraftPickupCreateRequestDeliveryDetails"), exports); +__exportStar(require("./V1FbpDraftPickupCreateResponse"), exports); +__exportStar(require("./V1FbpDraftPickupDlvEditRequest"), exports); +__exportStar(require("./V1FbpDraftPickupDlvEditRequestDeliveryDetails"), exports); +__exportStar(require("./V1FbpDraftPickupDlvEditResponse"), exports); +__exportStar(require("./V1FbpEditTimeslotRequest"), exports); +__exportStar(require("./V1FbpEditTimeslotResponse"), exports); +__exportStar(require("./V1FbpEditTimeslotResponseReserveFailureType"), exports); +__exportStar(require("./V1FbpGetLabelRequest"), exports); +__exportStar(require("./V1FbpGetLabelResponse"), exports); +__exportStar(require("./V1FbpOrderDirectCancelRequest"), exports); +__exportStar(require("./V1FbpOrderDirectCancelResponse"), exports); +__exportStar(require("./V1FbpOrderDirectSellerDlvEditRequest"), exports); +__exportStar(require("./V1FbpOrderDirectSellerDlvEditResponse"), exports); +__exportStar(require("./V1FbpOrderDropOffCancelRequest"), exports); +__exportStar(require("./V1FbpOrderDropOffCancelResponse"), exports); +__exportStar(require("./V1FbpOrderDropOffDlvEditRequest"), exports); +__exportStar(require("./V1FbpOrderDropOffDlvEditResponse"), exports); +__exportStar(require("./V1FbpOrderDropOffTimetableRequest"), exports); +__exportStar(require("./V1FbpOrderDropOffTimetableResponse"), exports); +__exportStar(require("./V1FbpOrderDropOffTimetableResponseCalendar"), exports); +__exportStar(require("./V1FbpOrderDropOffTimetableResponseCalendarCalendarItem"), exports); +__exportStar(require("./V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTime"), exports); +__exportStar(require("./V1FbpOrderDropOffTimetableResponseCalendarCalendarItemTimeslotWithTimeBreak"), exports); +__exportStar(require("./V1FbpOrderGetRequest"), exports); +__exportStar(require("./V1FbpOrderGetResponse"), exports); +__exportStar(require("./V1FbpOrderListRequest"), exports); +__exportStar(require("./V1FbpOrderListResponse"), exports); +__exportStar(require("./V1FbpOrderListResponseItem"), exports); +__exportStar(require("./V1FbpOrderPickUpCancelRequest"), exports); +__exportStar(require("./V1FbpOrderPickUpCancelResponse"), exports); +__exportStar(require("./V1FbpOrderPickUpDlvEditRequest"), exports); +__exportStar(require("./V1FbpOrderPickUpDlvEditRequestPickUpDetails"), exports); +__exportStar(require("./V1FbpOrderPickUpDlvEditResponse"), exports); +__exportStar(require("./V1FbpWarehouseListResponse"), exports); +__exportStar(require("./V1FbsPostingProductExemplarUpdateRequest"), exports); +__exportStar(require("./V1GenerateBarcodeRequest"), exports); +__exportStar(require("./V1GenerateBarcodeResponse"), exports); +__exportStar(require("./V1GenerateBarcodeResult"), exports); +__exportStar(require("./V1GetAttributeValuesRequest"), exports); +__exportStar(require("./V1GetAttributeValuesResponse"), exports); +__exportStar(require("./V1GetAttributeValuesResponseDictionaryValue"), exports); +__exportStar(require("./V1GetAttributesRequest"), exports); +__exportStar(require("./V1GetAttributesResponse"), exports); +__exportStar(require("./V1GetAttributesResponseAttribute"), exports); +__exportStar(require("./V1GetCompensationReportRequest"), exports); +__exportStar(require("./V1GetCompetitorsRequest"), exports); +__exportStar(require("./V1GetCompetitorsResponse"), exports); +__exportStar(require("./V1GetDecompensationReportRequest"), exports); +__exportStar(require("./V1GetDeliveryMethodReturnSettingsV1Request"), exports); +__exportStar(require("./V1GetDeliveryMethodReturnSettingsV1Response"), exports); +__exportStar(require("./V1GetDiscountTaskListRequest"), exports); +__exportStar(require("./V1GetDiscountTaskListResponse"), exports); +__exportStar(require("./V1GetDiscountTaskListResponseTask"), exports); +__exportStar(require("./V1GetEtgbRequest"), exports); +__exportStar(require("./V1GetEtgbResponse"), exports); +__exportStar(require("./V1GetFBSRatingIndexInfoV1Response"), exports); +__exportStar(require("./V1GetFinanceBalanceV1Request"), exports); +__exportStar(require("./V1GetFinanceBalanceV1Response"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponseAccruedMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponseClosingBalanceMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponseFeeMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponseOpeningBalanceMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponsePartnerMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponsePaymentsMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponseReturnsMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponseRevenueMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponseSalesMoney"), exports); +__exportStar(require("./V1GetFinanceBalanceV1ResponseServicesMoney"), exports); +__exportStar(require("./V1GetFinanceProductsBuyoutRequest"), exports); +__exportStar(require("./V1GetFinanceProductsBuyoutResponse"), exports); +__exportStar(require("./V1GetLabelBatchRequest"), exports); +__exportStar(require("./V1GetLabelBatchResponse"), exports); +__exportStar(require("./V1GetLabelBatchResponseResult"), exports); +__exportStar(require("./V1GetProductInfoDiscountedRequest"), exports); +__exportStar(require("./V1GetProductInfoDiscountedResponse"), exports); +__exportStar(require("./V1GetProductInfoDiscountedResponseItem"), exports); +__exportStar(require("./V1GetProductInfoSubscriptionRequest"), exports); +__exportStar(require("./V1GetProductInfoSubscriptionResponse"), exports); +__exportStar(require("./V1GetProductInfoSubscriptionResponseResult"), exports); +__exportStar(require("./V1GetProductPlacementZoneInfoRequest"), exports); +__exportStar(require("./V1GetProductPlacementZoneInfoResponse"), exports); +__exportStar(require("./V1GetProductRatingBySkuRequest"), exports); +__exportStar(require("./V1GetProductRatingBySkuResponse"), exports); +__exportStar(require("./V1GetProductStairwayDiscountByQuantityRequest"), exports); +__exportStar(require("./V1GetProductStairwayDiscountByQuantityResponse"), exports); +__exportStar(require("./V1GetProductStairwayDiscountByQuantityResponseStairways"), exports); +__exportStar(require("./V1GetProductStairwayDiscountByQuantityResponseStairwaysStairway"), exports); +__exportStar(require("./V1GetProductStairwayDiscountByQuantityResponseStairwaysStairwayStep"), exports); +__exportStar(require("./V1GetRealizationReportByDayRequest"), exports); +__exportStar(require("./V1GetRealizationReportPostingRequest"), exports); +__exportStar(require("./V1GetRealizationReportPostingResponse"), exports); +__exportStar(require("./V1GetRealizationReportPostingResponseRow"), exports); +__exportStar(require("./V1GetReceiptRequest"), exports); +__exportStar(require("./V1GetReceiptResponse"), exports); +__exportStar(require("./V1GetRestrictionsRequest"), exports); +__exportStar(require("./V1GetRestrictionsResponse"), exports); +__exportStar(require("./V1GetReturnsListRequest"), exports); +__exportStar(require("./V1GetReturnsListResponse"), exports); +__exportStar(require("./V1GetStrategyIDsByItemIDsResponse"), exports); +__exportStar(require("./V1GetStrategyIDsByItemIDsResponseResult"), exports); +__exportStar(require("./V1GetStrategyItemInfoRequest"), exports); +__exportStar(require("./V1GetStrategyItemInfoResponse"), exports); +__exportStar(require("./V1GetStrategyItemInfoResponseResult"), exports); +__exportStar(require("./V1GetStrategyItemsResponse"), exports); +__exportStar(require("./V1GetStrategyItemsResponseResult"), exports); +__exportStar(require("./V1GetStrategyListRequest"), exports); +__exportStar(require("./V1GetStrategyListResponse"), exports); +__exportStar(require("./V1GetStrategyResponse"), exports); +__exportStar(require("./V1GetStrategyResponseResult"), exports); +__exportStar(require("./V1GetSupplierReturnsSummaryReportRequest"), exports); +__exportStar(require("./V1GetSupplierReturnsSummaryReportResponse"), exports); +__exportStar(require("./V1GetSupplierReturnsSummaryReportResponseRow"), exports); +__exportStar(require("./V1GetSupplyOrderBundleRequest"), exports); +__exportStar(require("./V1GetSupplyOrderBundleResponse"), exports); +__exportStar(require("./V1GetSupplyOrderTimeslotStatusRequest"), exports); +__exportStar(require("./V1GetSupplyOrderTimeslotStatusResponse"), exports); +__exportStar(require("./V1GetSupplyOrderTimeslotStatusResponseStatus"), exports); +__exportStar(require("./V1GetSupplyOrderTimeslotsRequest"), exports); +__exportStar(require("./V1GetSupplyOrderTimeslotsResponse"), exports); +__exportStar(require("./V1GetSupplyReturnsSummaryReportRequest"), exports); +__exportStar(require("./V1GetSupplyReturnsSummaryReportResponse"), exports); +__exportStar(require("./V1GetSupplyReturnsSummaryReportResponseRow"), exports); +__exportStar(require("./V1GetTreeRequest"), exports); +__exportStar(require("./V1GetTreeResponse"), exports); +__exportStar(require("./V1GetTreeResponseItem"), exports); +__exportStar(require("./V1GetWarehouseFBSOperationStatusRequest"), exports); +__exportStar(require("./V1GetWarehouseFBSOperationStatusResponse"), exports); +__exportStar(require("./V1GiveoutBarcodeResetResponse"), exports); +__exportStar(require("./V1GiveoutGetBarcodeResponse"), exports); +__exportStar(require("./V1GiveoutGetPDFResponse"), exports); +__exportStar(require("./V1GiveoutGetPNGResponse"), exports); +__exportStar(require("./V1GiveoutInfoRequest"), exports); +__exportStar(require("./V1GiveoutInfoResponse"), exports); +__exportStar(require("./V1GiveoutIsEnabledResponse"), exports); +__exportStar(require("./V1GiveoutListRequest"), exports); +__exportStar(require("./V1GiveoutListResponse"), exports); +__exportStar(require("./V1InvoiceDeleteRequest"), exports); +__exportStar(require("./V1InvoiceDeleteResponse"), exports); +__exportStar(require("./V1InvoiceFileUploadRequest"), exports); +__exportStar(require("./V1InvoiceFileUploadResponse"), exports); +__exportStar(require("./V1InvoiceGetRequest"), exports); +__exportStar(require("./V1ItemError"), exports); +__exportStar(require("./V1ItemIDsRequest"), exports); +__exportStar(require("./V1ItemResponse"), exports); +__exportStar(require("./V1ItemSfboAttribute"), exports); +__exportStar(require("./V1ItemSortField"), exports); +__exportStar(require("./V1ListDropOffPointsForCreateFBSWarehouseRequest"), exports); +__exportStar(require("./V1ListDropOffPointsForCreateFBSWarehouseRequestCoordinates"), exports); +__exportStar(require("./V1ListDropOffPointsForCreateFBSWarehouseResponse"), exports); +__exportStar(require("./V1ListDropOffPointsForCreateFBSWarehouseResponseCoordinates"), exports); +__exportStar(require("./V1ListDropOffPointsForCreateFBSWarehouseResponseDropOffPointTypeEnum"), exports); +__exportStar(require("./V1ListDropOffPointsForUpdateFBSWarehouseRequest"), exports); +__exportStar(require("./V1ListDropOffPointsForUpdateFBSWarehouseResponse"), exports); +__exportStar(require("./V1ListFBSRatingIndexPostingsV1Request"), exports); +__exportStar(require("./V1ListFBSRatingIndexPostingsV1Response"), exports); +__exportStar(require("./V1ListPostingCodesRequest"), exports); +__exportStar(require("./V1ListPostingCodesResponse"), exports); +__exportStar(require("./V1Money"), exports); +__exportStar(require("./V1OrderAttentionTypeEnum"), exports); +__exportStar(require("./V1OrderCancelCheckRequest"), exports); +__exportStar(require("./V1OrderCancelCheckResponse"), exports); +__exportStar(require("./V1OrderCancelRequest"), exports); +__exportStar(require("./V1OrderCancelResponse"), exports); +__exportStar(require("./V1OrderCancelStatusRequest"), exports); +__exportStar(require("./V1OrderCancelStatusResponse"), exports); +__exportStar(require("./V1OrderCreateRequest"), exports); +__exportStar(require("./V1OrderCreateResponse"), exports); +__exportStar(require("./V1OrderDraftValidationError"), exports); +__exportStar(require("./V1OrderDraftValidationErrorErrorType"), exports); +__exportStar(require("./V1OrderErrorTypeEnum"), exports); +__exportStar(require("./V1OrderState"), exports); +__exportStar(require("./V1OrderStatusEnum"), exports); +__exportStar(require("./V1OrderValidationError"), exports); +__exportStar(require("./V1OrderValidationErrorErrorType"), exports); +__exportStar(require("./V1PolygonDeleteRequest"), exports); +__exportStar(require("./V1PolygonListRequest"), exports); +__exportStar(require("./V1PolygonListResponse"), exports); +__exportStar(require("./V1PolygonTimeCoordinatesUpdateRequest"), exports); +__exportStar(require("./V1PolygonTimeSetRequest"), exports); +__exportStar(require("./V1PostingCancelRequest"), exports); +__exportStar(require("./V1PostingCancelResponse"), exports); +__exportStar(require("./V1PostingCancelStatusRequest"), exports); +__exportStar(require("./V1PostingCancelStatusResponse"), exports); +__exportStar(require("./V1PostingFBSPickupCodeVerifyRequest"), exports); +__exportStar(require("./V1PostingFBSPickupCodeVerifyResponse"), exports); +__exportStar(require("./V1PostingFbsProductTraceableAttributeRequest"), exports); +__exportStar(require("./V1PostingFbsProductTraceableAttributeResponse"), exports); +__exportStar(require("./V1PostingFbsProductTraceableAttributeResponseProduct"), exports); +__exportStar(require("./V1PostingFbsSplitRequest"), exports); +__exportStar(require("./V1PostingFbsSplitRequestPosting"), exports); +__exportStar(require("./V1PostingFbsSplitResponse"), exports); +__exportStar(require("./V1PostingFbsSplitResponsePosting"), exports); +__exportStar(require("./V1PostingFbsSplitResponsePostingParent"), exports); +__exportStar(require("./V1PostingFbsTimeslotChangeRestrictionsDeliveryInterval"), exports); +__exportStar(require("./V1PostingFbsTimeslotChangeRestrictionsRequest"), exports); +__exportStar(require("./V1PostingFbsTimeslotChangeRestrictionsResponse"), exports); +__exportStar(require("./V1PostingFbsTimeslotSetNewTimeslot"), exports); +__exportStar(require("./V1PostingFbsTimeslotSetRequest"), exports); +__exportStar(require("./V1PostingFbsTimeslotSetResponse"), exports); +__exportStar(require("./V1PostingFbsTraceableSplitRequest"), exports); +__exportStar(require("./V1PostingFbsTraceableSplitResponse"), exports); +__exportStar(require("./V1PostingFbsTraceableSplitResponsePosting"), exports); +__exportStar(require("./V1PostingMarksRequest"), exports); +__exportStar(require("./V1PostingMarksResponse"), exports); +__exportStar(require("./V1PostingUnpaidLegalProductListRequest"), exports); +__exportStar(require("./V1PostingUnpaidLegalProductListResponse"), exports); +__exportStar(require("./V1PostingUnpaidLegalProductListResponseProducts"), exports); +__exportStar(require("./V1PremiumScores"), exports); +__exportStar(require("./V1ProductActionTimerStatusRequest"), exports); +__exportStar(require("./V1ProductActionTimerStatusResponse"), exports); +__exportStar(require("./V1ProductActionTimerStatusResponseStatuses"), exports); +__exportStar(require("./V1ProductActionTimerUpdateRequest"), exports); +__exportStar(require("./V1ProductCertificateDeleteRequest"), exports); +__exportStar(require("./V1ProductCertificateDeleteResponse"), exports); +__exportStar(require("./V1ProductCertificateDeleteResponseResult"), exports); +__exportStar(require("./V1ProductCertificateInfoRequest"), exports); +__exportStar(require("./V1ProductCertificateInfoResponse"), exports); +__exportStar(require("./V1ProductCertificateListRequest"), exports); +__exportStar(require("./V1ProductCertificateListResponse"), exports); +__exportStar(require("./V1ProductCertificateListResponseResult"), exports); +__exportStar(require("./V1ProductCertificateProductStatusListResponse"), exports); +__exportStar(require("./V1ProductCertificateProductsListRequest"), exports); +__exportStar(require("./V1ProductCertificateProductsListResponse"), exports); +__exportStar(require("./V1ProductCertificateProductsListResponseResult"), exports); +__exportStar(require("./V1ProductCertificateRejectionReasonsListResponse"), exports); +__exportStar(require("./V1ProductCertificateStatusListResponse"), exports); +__exportStar(require("./V1ProductCertificateUnbindRequest"), exports); +__exportStar(require("./V1ProductCertificateUnbindResponse"), exports); +__exportStar(require("./V1ProductFbsSplit"), exports); +__exportStar(require("./V1ProductGetRelatedSKURequest"), exports); +__exportStar(require("./V1ProductGetRelatedSKUResponse"), exports); +__exportStar(require("./V1ProductGetRelatedSKUResponseError"), exports); +__exportStar(require("./V1ProductGetRelatedSKUResponseItem"), exports); +__exportStar(require("./V1ProductInfoWarehouseStocksRequest"), exports); +__exportStar(require("./V1ProductInfoWarehouseStocksResponse"), exports); +__exportStar(require("./V1ProductInfoWrongVolumeRequest"), exports); +__exportStar(require("./V1ProductInfoWrongVolumeResponse"), exports); +__exportStar(require("./V1ProductPricesDetailsRequest"), exports); +__exportStar(require("./V1ProductPricesDetailsResponse"), exports); +__exportStar(require("./V1ProductPricesDetailsResponsePrice"), exports); +__exportStar(require("./V1ProductUpdateAttributesRequest"), exports); +__exportStar(require("./V1ProductUpdateAttributesRequestAttribute"), exports); +__exportStar(require("./V1ProductUpdateAttributesRequestItem"), exports); +__exportStar(require("./V1ProductUpdateAttributesRequestValue"), exports); +__exportStar(require("./V1ProductUpdateAttributesResponse"), exports); +__exportStar(require("./V1ProductUpdateDiscountRequest"), exports); +__exportStar(require("./V1ProductUpdateDiscountResponse"), exports); +__exportStar(require("./V1ProductUpdateOfferIdRequest"), exports); +__exportStar(require("./V1ProductUpdateOfferIdResponse"), exports); +__exportStar(require("./V1ProductUpdateOfferIdResponseError"), exports); +__exportStar(require("./V1QuestionAnswerCreateDefault"), exports); +__exportStar(require("./V1QuestionAnswerCreateRequest"), exports); +__exportStar(require("./V1QuestionAnswerCreateResponse"), exports); +__exportStar(require("./V1QuestionAnswerDeleteRequest"), exports); +__exportStar(require("./V1QuestionAnswerListRequest"), exports); +__exportStar(require("./V1QuestionAnswerListResponse"), exports); +__exportStar(require("./V1QuestionAnswerListResponseAnswers"), exports); +__exportStar(require("./V1QuestionChangeStatusRequest"), exports); +__exportStar(require("./V1QuestionCountResponse"), exports); +__exportStar(require("./V1QuestionInfoRequest"), exports); +__exportStar(require("./V1QuestionInfoResponse"), exports); +__exportStar(require("./V1QuestionListRequest"), exports); +__exportStar(require("./V1QuestionListRequestFilter"), exports); +__exportStar(require("./V1QuestionListResponse"), exports); +__exportStar(require("./V1QuestionListResponseQuestions"), exports); +__exportStar(require("./V1QuestionTopSkuRequest"), exports); +__exportStar(require("./V1QuestionTopSkuResponse"), exports); +__exportStar(require("./V1Rating"), exports); +__exportStar(require("./V1RatingHistoryV1Request"), exports); +__exportStar(require("./V1RatingHistoryV1Response"), exports); +__exportStar(require("./V1RatingItem"), exports); +__exportStar(require("./V1RatingStatus"), exports); +__exportStar(require("./V1RatingSummaryV1Response"), exports); +__exportStar(require("./V1ReceiptsSellerListRequest"), exports); +__exportStar(require("./V1ReceiptsSellerListResponse"), exports); +__exportStar(require("./V1ReportMarkedProductsSalesCreateRequest"), exports); +__exportStar(require("./V1Restriction"), exports); +__exportStar(require("./V1ReturnsCompanyFbsInfoRequest"), exports); +__exportStar(require("./V1ReturnsCompanyFbsInfoRequestFilter"), exports); +__exportStar(require("./V1ReturnsCompanyFbsInfoResponse"), exports); +__exportStar(require("./V1ReturnsRfbsActionSetRequest"), exports); +__exportStar(require("./V1ReturnsSettingsUtilizationHistoryResponse"), exports); +__exportStar(require("./V1ReturnsSettingsUtilizationInfoResponse"), exports); +__exportStar(require("./V1ReturnsSettingsUtilizationUpdateRequest"), exports); +__exportStar(require("./V1ReviewChangeStatusRequest"), exports); +__exportStar(require("./V1ReviewCountResponse"), exports); +__exportStar(require("./V1ReviewInfoRequest"), exports); +__exportStar(require("./V1ReviewInfoResponse"), exports); +__exportStar(require("./V1ReviewListRequest"), exports); +__exportStar(require("./V1ReviewListResponse"), exports); +__exportStar(require("./V1RolesByTokenResponse"), exports); +__exportStar(require("./V1SearchAttributeValuesRequest"), exports); +__exportStar(require("./V1SearchAttributeValuesResponse"), exports); +__exportStar(require("./V1SearchQueriesTextRequest"), exports); +__exportStar(require("./V1SearchQueriesTextResponse"), exports); +__exportStar(require("./V1SearchQueriesTextResponseSearchQuery"), exports); +__exportStar(require("./V1SearchQueriesTopRequest"), exports); +__exportStar(require("./V1SearchQueriesTopResponse"), exports); +__exportStar(require("./V1SearchQueriesTopResponseSearchQuery"), exports); +__exportStar(require("./V1SellerActionsArchiveRequest"), exports); +__exportStar(require("./V1SellerActionsChangeActivityRequest"), exports); +__exportStar(require("./V1SellerActionsCreateDiscountRequest"), exports); +__exportStar(require("./V1SellerActionsCreateDiscountResponse"), exports); +__exportStar(require("./V1SellerActionsCreateDiscountWithConditionRequest"), exports); +__exportStar(require("./V1SellerActionsCreateDiscountWithConditionRequestDiscountTypeEnum"), exports); +__exportStar(require("./V1SellerActionsCreateDiscountWithConditionResponse"), exports); +__exportStar(require("./V1SellerActionsCreateInstallmentRequest"), exports); +__exportStar(require("./V1SellerActionsCreateInstallmentResponse"), exports); +__exportStar(require("./V1SellerActionsCreateMultiLevelDiscountRequest"), exports); +__exportStar(require("./V1SellerActionsCreateMultiLevelDiscountRequestDiscountLevel"), exports); +__exportStar(require("./V1SellerActionsCreateMultiLevelDiscountRequestDiscountTypeEnum"), exports); +__exportStar(require("./V1SellerActionsCreateMultiLevelDiscountResponse"), exports); +__exportStar(require("./V1SellerActionsCreateVoucherRequest"), exports); +__exportStar(require("./V1SellerActionsCreateVoucherRequestDiscountTypeEnum"), exports); +__exportStar(require("./V1SellerActionsCreateVoucherRequestVoucherParameter"), exports); +__exportStar(require("./V1SellerActionsCreateVoucherRequestVoucherParameterTypeEnum"), exports); +__exportStar(require("./V1SellerActionsCreateVoucherResponse"), exports); +__exportStar(require("./V1SellerActionsListRequest"), exports); +__exportStar(require("./V1SellerActionsListResponse"), exports); +__exportStar(require("./V1SellerActionsProductsAddRequest"), exports); +__exportStar(require("./V1SellerActionsProductsAddRequestProduct"), exports); +__exportStar(require("./V1SellerActionsProductsCandidatesRequest"), exports); +__exportStar(require("./V1SellerActionsProductsCandidatesResponse"), exports); +__exportStar(require("./V1SellerActionsProductsCandidatesResponseProduct"), exports); +__exportStar(require("./V1SellerActionsProductsCandidatesResponseProductQuantTypeEnum"), exports); +__exportStar(require("./V1SellerActionsProductsDeleteRequest"), exports); +__exportStar(require("./V1SellerActionsProductsListRequest"), exports); +__exportStar(require("./V1SellerActionsProductsListResponse"), exports); +__exportStar(require("./V1SellerActionsProductsListResponseProduct"), exports); +__exportStar(require("./V1SellerActionsUpdateDiscountRequest"), exports); +__exportStar(require("./V1SellerActionsUpdateDiscountRequestActionParameters"), exports); +__exportStar(require("./V1SellerActionsUpdateDiscountWithConditionRequest"), exports); +__exportStar(require("./V1SellerActionsUpdateDiscountWithConditionRequestActionParameters"), exports); +__exportStar(require("./V1SellerActionsUpdateInstallmentRequest"), exports); +__exportStar(require("./V1SellerActionsUpdateInstallmentRequestActionParameters"), exports); +__exportStar(require("./V1SellerActionsUpdateMultiLevelDiscountRequest"), exports); +__exportStar(require("./V1SellerActionsUpdateMultiLevelDiscountRequestActionParameters"), exports); +__exportStar(require("./V1SellerActionsUpdateVoucherRequest"), exports); +__exportStar(require("./V1SellerActionsUpdateVoucherRequestActionParameters"), exports); +__exportStar(require("./V1SellerActionsVoucherGetRequest"), exports); +__exportStar(require("./V1SellerActionsVoucherGetResponse"), exports); +__exportStar(require("./V1SellerInfoResponse"), exports); +__exportStar(require("./V1SellerOzonLogisticsInfoResponse"), exports); +__exportStar(require("./V1SetPostingCutoffRequest"), exports); +__exportStar(require("./V1SetPostingCutoffResponse"), exports); +__exportStar(require("./V1SetPostingsRequest"), exports); +__exportStar(require("./V1SetPostingsResponse"), exports); +__exportStar(require("./V1SetProductStairwayDiscountByQuantityRequest"), exports); +__exportStar(require("./V1SetProductStairwayDiscountByQuantityRequestStairways"), exports); +__exportStar(require("./V1SetProductStairwayDiscountByQuantityRequestStairwaysStairway"), exports); +__exportStar(require("./V1SetProductStairwayDiscountByQuantityRequestStairwaysStairwayStep"), exports); +__exportStar(require("./V1SetProductStairwayDiscountByQuantityResponse"), exports); +__exportStar(require("./V1SetProductStairwayDiscountByQuantityResponseError"), exports); +__exportStar(require("./V1SetVehicleError"), exports); +__exportStar(require("./V1StatusCodeNamePair"), exports); +__exportStar(require("./V1StatusCodeNamePairRejection"), exports); +__exportStar(require("./V1StatusCodeNamePairStatuses"), exports); +__exportStar(require("./V1StocksImportRequest"), exports); +__exportStar(require("./V1StocksImportResponse"), exports); +__exportStar(require("./V1StrategyRequest"), exports); +__exportStar(require("./V1SupplierAvailableWarehousesResponse"), exports); +__exportStar(require("./V1SupplyOrderCancelRequest"), exports); +__exportStar(require("./V1SupplyOrderCancelResponse"), exports); +__exportStar(require("./V1SupplyOrderCancelStatusRequest"), exports); +__exportStar(require("./V1SupplyOrderCancelStatusResponse"), exports); +__exportStar(require("./V1SupplyOrderCancelStatusResponseStatus"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateRequest"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateRequestItem"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateResponse"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateResponseErrorEnum"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateStatusRequest"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateStatusResponse"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateStatusResponseErrorEnum"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateValidationRequest"), exports); +__exportStar(require("./V1SupplyOrderContentUpdateValidationResponse"), exports); +__exportStar(require("./V1SupplyOrderDetailsRequest"), exports); +__exportStar(require("./V1SupplyOrderDetailsResponse"), exports); +__exportStar(require("./V1SupplyOrderDetailsResponseTimeslot"), exports); +__exportStar(require("./V1SupplyOrderPassCreateRequest"), exports); +__exportStar(require("./V1SupplyOrderPassCreateResponse"), exports); +__exportStar(require("./V1SupplyOrderPassStatusRequest"), exports); +__exportStar(require("./V1SupplyOrderPassStatusResponse"), exports); +__exportStar(require("./V1SupplyOrderPassStatusResponseStatus"), exports); +__exportStar(require("./V1SupplyOrderStatusCounterResponse"), exports); +__exportStar(require("./V1SupplyOrderStatusCounterResponseItem"), exports); +__exportStar(require("./V1SupplyOrderTimeslot"), exports); +__exportStar(require("./V1TimeRangeReturnDate"), exports); +__exportStar(require("./V1TimeRangeStorageTariffication"), exports); +__exportStar(require("./V1TimeRangeVisualStatus"), exports); +__exportStar(require("./V1Timezone"), exports); +__exportStar(require("./V1UnarchiveWarehouseFBSRequest"), exports); +__exportStar(require("./V1UnarchiveWarehouseFBSResponse"), exports); +__exportStar(require("./V1UpdatePricingStrategyRequest"), exports); +__exportStar(require("./V1UpdateStatusStrategyRequest"), exports); +__exportStar(require("./V1UpdateSupplyOrderTimeslotRequest"), exports); +__exportStar(require("./V1UpdateSupplyOrderTimeslotResponse"), exports); +__exportStar(require("./V1UpdateTimeslotError"), exports); +__exportStar(require("./V1UpdateWarehouseFBSFirstMileRequest"), exports); +__exportStar(require("./V1UpdateWarehouseFBSFirstMileRequestFirstMileTypeEnum"), exports); +__exportStar(require("./V1UpdateWarehouseFBSFirstMileResponse"), exports); +__exportStar(require("./V1UpdateWarehouseFBSRequest"), exports); +__exportStar(require("./V1UpdateWarehouseFBSRequestAddressCoordinates"), exports); +__exportStar(require("./V1UpdateWarehouseFBSRequestOptions"), exports); +__exportStar(require("./V1UpdateWarehouseFBSRequestWorkingDaysEnum"), exports); +__exportStar(require("./V1UpdateWarehouseFBSResponse"), exports); +__exportStar(require("./V1UploadPostingCodesRequest"), exports); +__exportStar(require("./V1UploadPostingCodesResponse"), exports); +__exportStar(require("./V1UploadReceiptRequestTypeEnum"), exports); +__exportStar(require("./V1UploadReceiptResponse"), exports); +__exportStar(require("./V1VehicleInfo"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequest"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequestAddressCoordinates"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequestDeliveryMethod"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettings"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequestHolidays"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequestTimetableWarehouse"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequestWorkingDays"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateRequestWorkingDaysDayEnum"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorCreateResponse"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequest"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestDeliveryCosts"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettings"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum"), exports); +__exportStar(require("./V1WarehouseERFBSAggregatorDeliveryMethodUpdateResponse"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequest"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequestAddressCoordinates"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethod"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettings"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequestDeliveryMethodReturnSettingsReturnMethodEnum"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequestHolidays"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequestTimetableWarehouse"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequestWorkingDays"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateRequestWorkingDaysDayEnum"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedCreateResponse"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequest"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettings"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateRequestReturnSettingsReturnMethodEnum"), exports); +__exportStar(require("./V1WarehouseERFBSNonIntegratedDeliveryMethodUpdateResponse"), exports); +__exportStar(require("./V1WarehouseERFBSUpdateRequest"), exports); +__exportStar(require("./V1WarehouseERFBSUpdateRequestHolidays"), exports); +__exportStar(require("./V1WarehouseERFBSUpdateRequestTimetableWarehouse"), exports); +__exportStar(require("./V1WarehouseERFBSUpdateRequestWorkingDays"), exports); +__exportStar(require("./V1WarehouseERFBSUpdateRequestWorkingDaysDayEnum"), exports); +__exportStar(require("./V1WarehouseERFBSUpdateResponse"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListRequest"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListRequestCoordinates"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListRequestSearch"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListRequestSearchReturnPointTypeEnum"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListResponse"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListResponseCoordinates"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListResponseReturnPoint"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListResponseReturnPointTypeEnum"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListResponseWorkingDays"), exports); +__exportStar(require("./V1WarehouseFBSCreateReturnPointListResponseWorkingDaysDayEnum"), exports); +__exportStar(require("./V1WarehouseFBSReturnMileInfoRequest"), exports); +__exportStar(require("./V1WarehouseFBSReturnMileInfoResponse"), exports); +__exportStar(require("./V1WarehouseFBSReturnMileInfoResponseCoordinates"), exports); +__exportStar(require("./V1WarehouseFBSReturnMileInfoResponseReturnPoint"), exports); +__exportStar(require("./V1WarehouseFBSReturnMileInfoResponseReturnPointTypeEnum"), exports); +__exportStar(require("./V1WarehouseFBSReturnMileInfoResponseWorkingDays"), exports); +__exportStar(require("./V1WarehouseFBSReturnMileInfoResponseWorkingDaysDayEnum"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListRequest"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListRequestSearch"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListRequestSearchReturnPointTypeEnum"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListResponse"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListResponseCoordinates"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListResponseReturnPoint"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListResponseReturnPointTypeEnum"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListResponseWorkingDays"), exports); +__exportStar(require("./V1WarehouseFBSUpdateReturnPointListResponseWorkingDaysDayEnum"), exports); +__exportStar(require("./V1WarehouseFboSellerListResponse"), exports); +__exportStar(require("./V1WarehouseFboSellerListResponseWarehouse"), exports); +__exportStar(require("./V1WarehouseFbsCreateDropOffTimeslotListRequest"), exports); +__exportStar(require("./V1WarehouseFbsCreateDropOffTimeslotListResponse"), exports); +__exportStar(require("./V1WarehouseFbsCreateDropOffTimeslotListResponseTimeslot"), exports); +__exportStar(require("./V1WarehouseFbsCreatePickUpTimeslotListRequest"), exports); +__exportStar(require("./V1WarehouseFbsCreatePickUpTimeslotListRequestAddressCoordinates"), exports); +__exportStar(require("./V1WarehouseFbsCreatePickUpTimeslotListResponse"), exports); +__exportStar(require("./V1WarehouseFbsCreatePickUpTimeslotListResponseTimeslot"), exports); +__exportStar(require("./V1WarehouseFbsPickUpCourierCancelRequest"), exports); +__exportStar(require("./V1WarehouseFbsPickUpCourierCreateRequest"), exports); +__exportStar(require("./V1WarehouseFbsPickUpHistoryListRequest"), exports); +__exportStar(require("./V1WarehouseFbsPickUpHistoryListRequestFilter"), exports); +__exportStar(require("./V1WarehouseFbsPickUpHistoryListResponse"), exports); +__exportStar(require("./V1WarehouseFbsPickUpHistoryListResponseResult"), exports); +__exportStar(require("./V1WarehouseFbsPickUpPlanningListResponse"), exports); +__exportStar(require("./V1WarehouseFbsPickUpPlanningListResponseResult"), exports); +__exportStar(require("./V1WarehouseFbsReturnMileCheckRequest"), exports); +__exportStar(require("./V1WarehouseFbsReturnMileCheckRequestFirstMileTypeEnum"), exports); +__exportStar(require("./V1WarehouseFbsReturnMileCheckResponse"), exports); +__exportStar(require("./V1WarehouseFbsUpdateDropOffTimeslotListRequest"), exports); +__exportStar(require("./V1WarehouseFbsUpdateDropOffTimeslotListResponse"), exports); +__exportStar(require("./V1WarehouseFbsUpdateDropOffTimeslotListResponseTimeslot"), exports); +__exportStar(require("./V1WarehouseFbsUpdatePickUpTimeslotListRequest"), exports); +__exportStar(require("./V1WarehouseFbsUpdatePickUpTimeslotListResponse"), exports); +__exportStar(require("./V1WarehouseFbsUpdatePickUpTimeslotListResponseTimeslot"), exports); +__exportStar(require("./V1WarehouseInvalidProductsGetRequest"), exports); +__exportStar(require("./V1WarehouseInvalidProductsGetResponse"), exports); +__exportStar(require("./V1WarehouseListRequest"), exports); +__exportStar(require("./V1WarehouseListRequestWith"), exports); +__exportStar(require("./V1WarehouseOZONListRequest"), exports); +__exportStar(require("./V1WarehouseOZONListRequestWarehouseTypeEnum"), exports); +__exportStar(require("./V1WarehouseOZONListResponse"), exports); +__exportStar(require("./V1WarehouseOZONListResponseWarehouse"), exports); +__exportStar(require("./V1WarehouseWithInvalidProductsResponse"), exports); +__exportStar(require("./V1fbpDeliveryDetails"), exports); +__exportStar(require("./V1fbpTimeslot"), exports); +__exportStar(require("./V2AdditionalDataItem"), exports); +__exportStar(require("./V2CancellationInitiatorEnum"), exports); +__exportStar(require("./V2CancellationStateEnum"), exports); +__exportStar(require("./V2CancellationStateEnumFilters"), exports); +__exportStar(require("./V2CargoesCreateErrors"), exports); +__exportStar(require("./V2CargoesCreateInfoV2Request"), exports); +__exportStar(require("./V2CargoesCreateInfoV2Response"), exports); +__exportStar(require("./V2CarriageDeliveryListV2Request"), exports); +__exportStar(require("./V2CarriageDeliveryListV2Response"), exports); +__exportStar(require("./V2ChatReadResponse"), exports); +__exportStar(require("./V2ConditionalCancellationMoveV2Request"), exports); +__exportStar(require("./V2CreateLabelBatchResponse"), exports); +__exportStar(require("./V2CreateLabelBatchResponseResult"), exports); +__exportStar(require("./V2CreateLabelBatchResponseResultTasks"), exports); +__exportStar(require("./V2DeliveryCheckoutRequestV2DeliverySchemaEnum"), exports); +__exportStar(require("./V2DeliveryMethodListV2Request"), exports); +__exportStar(require("./V2DeliveryMethodListV2Response"), exports); +__exportStar(require("./V2DraftClusterListResponse"), exports); +__exportStar(require("./V2DraftClusterListResponseResult"), exports); +__exportStar(require("./V2DraftCreateInfoRequest"), exports); +__exportStar(require("./V2DraftCreateInfoResponse"), exports); +__exportStar(require("./V2DraftCreateInfoResponseStatusEnum"), exports); +__exportStar(require("./V2DraftSupplyCreateRequest"), exports); +__exportStar(require("./V2DraftSupplyCreateRequestSelectedClusterWarehouse"), exports); +__exportStar(require("./V2DraftSupplyCreateRequestTimeslot"), exports); +__exportStar(require("./V2DraftSupplyCreateResponse"), exports); +__exportStar(require("./V2DraftSupplyCreateResponseErrorReasonEnum"), exports); +__exportStar(require("./V2DraftSupplyCreateStatusRequest"), exports); +__exportStar(require("./V2DraftSupplyCreateStatusResponse"), exports); +__exportStar(require("./V2DraftSupplyCreateStatusResponseErrorReasonEnum"), exports); +__exportStar(require("./V2DraftSupplyCreateStatusResponseStatusEnum"), exports); +__exportStar(require("./V2DraftTimeslotInfoRequest"), exports); +__exportStar(require("./V2DraftTimeslotInfoRequestSelectedClusterWarehouse"), exports); +__exportStar(require("./V2DraftTimeslotInfoResponse"), exports); +__exportStar(require("./V2DraftTimeslotInfoResponseErrorReasonEnum"), exports); +__exportStar(require("./V2FboPosting"), exports); +__exportStar(require("./V2FboPostingListResponse"), exports); +__exportStar(require("./V2FboPostingResponse"), exports); +__exportStar(require("./V2FboPostingV2"), exports); +__exportStar(require("./V2FboSinglePostingLegalInfo"), exports); +__exportStar(require("./V2FbsPosting"), exports); +__exportStar(require("./V2FbsPostingProduct"), exports); +__exportStar(require("./V2FbsPostingProductCountryListRequest"), exports); +__exportStar(require("./V2FbsPostingProductCountryListResponse"), exports); +__exportStar(require("./V2FbsPostingProductCountryListResponseResult"), exports); +__exportStar(require("./V2FbsPostingProductCountrySetRequest"), exports); +__exportStar(require("./V2FbsPostingProductCountrySetResponse"), exports); +__exportStar(require("./V2FbsPostingResponse"), exports); +__exportStar(require("./V2GetConditionalCancellationListV2Request"), exports); +__exportStar(require("./V2GetConditionalCancellationListV2Response"), exports); +__exportStar(require("./V2GetDiscountTaskListV2Request"), exports); +__exportStar(require("./V2GetDiscountTaskListV2RequestDiscountTaskStatusEnum"), exports); +__exportStar(require("./V2GetDiscountTaskListV2Response"), exports); +__exportStar(require("./V2GetProductInfoStocksByWarehouseFbsRequestV2"), exports); +__exportStar(require("./V2GetProductInfoStocksByWarehouseFbsResponseV2"), exports); +__exportStar(require("./V2GetProductInfoStocksByWarehouseFbsResponseV2Product"), exports); +__exportStar(require("./V2GetRealizationReportRequestV2"), exports); +__exportStar(require("./V2GetRealizationReportResponseV2"), exports); +__exportStar(require("./V2HsCode"), exports); +__exportStar(require("./V2InvoiceCreateOrUpdateV2Request"), exports); +__exportStar(require("./V2InvoiceCreateOrUpdateV2Response"), exports); +__exportStar(require("./V2InvoiceGetV2Response"), exports); +__exportStar(require("./V2MovePostingToAwaitingDeliveryRequest"), exports); +__exportStar(require("./V2PolygonBindRequest"), exports); +__exportStar(require("./V2PostingFBSActGetPostingsRequest"), exports); +__exportStar(require("./V2PostingFBSActGetPostingsResponse"), exports); +__exportStar(require("./V2PostingFBSActGetPostingsResult"), exports); +__exportStar(require("./V2PostingFBSActGetProducts"), exports); +__exportStar(require("./V2PostingFBSActListFilter"), exports); +__exportStar(require("./V2PostingFBSActListRelatedDocs"), exports); +__exportStar(require("./V2PostingFBSActListRelatedDocsActOfAcceptance"), exports); +__exportStar(require("./V2PostingFBSActListRelatedDocsActOfExcess"), exports); +__exportStar(require("./V2PostingFBSActListRelatedDocsActOfMismatch"), exports); +__exportStar(require("./V2PostingFBSActListRequest"), exports); +__exportStar(require("./V2PostingFBSActListResponse"), exports); +__exportStar(require("./V2PostingFBSActListResult"), exports); +__exportStar(require("./V2PostingFBSDigitalActCheckStatusRequest"), exports); +__exportStar(require("./V2PostingFBSDigitalActCheckStatusResponse"), exports); +__exportStar(require("./V2PostingFBSGetBarcodeRequest"), exports); +__exportStar(require("./V2PostingFBSGetBarcodeResponse"), exports); +__exportStar(require("./V2PostingFBSGetBarcodeTextResponse"), exports); +__exportStar(require("./V2PostingFBSGetDigitalActRequest"), exports); +__exportStar(require("./V2PostingFBSGetDigitalActResponse"), exports); +__exportStar(require("./V2PostingFinancialDataFBO"), exports); +__exportStar(require("./V2PostingFinancialDataFBOV2"), exports); +__exportStar(require("./V2PostingProduct"), exports); +__exportStar(require("./V2Product"), exports); +__exportStar(require("./V2ProductCertificateAccordanceTypesResponse"), exports); +__exportStar(require("./V2ProductCertificateAccordanceTypesResponseResult"), exports); +__exportStar(require("./V2ProductCertificateAccordanceTypesResponseType"), exports); +__exportStar(require("./V2ProductCertificationListRequest"), exports); +__exportStar(require("./V2ProductCertificationListResponse"), exports); +__exportStar(require("./V2ProductInfoPicturesRequest"), exports); +__exportStar(require("./V2ProductInfoPicturesResponse"), exports); +__exportStar(require("./V2ProductInfoPicturesResponseError"), exports); +__exportStar(require("./V2ProductInfoPicturesResponseItem"), exports); +__exportStar(require("./V2ReportReturnsCreateRequest"), exports); +__exportStar(require("./V2ReportReturnsCreateRequestFilter"), exports); +__exportStar(require("./V2ReportReturnsCreateResponse"), exports); +__exportStar(require("./V2ReturnsRfbsFilter"), exports); +__exportStar(require("./V2ReturnsRfbsGetRequest"), exports); +__exportStar(require("./V2ReturnsRfbsGetResponse"), exports); +__exportStar(require("./V2ReturnsRfbsGetV2ResponseState"), exports); +__exportStar(require("./V2ReturnsRfbsListRequest"), exports); +__exportStar(require("./V2ReturnsRfbsListResponse"), exports); +__exportStar(require("./V2ReturnsRfbsListV2ResponseState"), exports); +__exportStar(require("./V2WarehouseListV2Request"), exports); +__exportStar(require("./V2WarehouseListV2Response"), exports); +__exportStar(require("./V3AdditionalDataItem"), exports); +__exportStar(require("./V3Address"), exports); +__exportStar(require("./V3Addressee"), exports); +__exportStar(require("./V3AddresseeFbsLists"), exports); +__exportStar(require("./V3Barcodes"), exports); +__exportStar(require("./V3Cancellation"), exports); +__exportStar(require("./V3ChatDetailsInfo"), exports); +__exportStar(require("./V3ChatHistoryRequest"), exports); +__exportStar(require("./V3ChatHistoryResponse"), exports); +__exportStar(require("./V3ChatInfo"), exports); +__exportStar(require("./V3ChatList"), exports); +__exportStar(require("./V3ChatListRequestFilter"), exports); +__exportStar(require("./V3ChatListRequestFilterChatStatus"), exports); +__exportStar(require("./V3ChatListResponse"), exports); +__exportStar(require("./V3ChatMessage"), exports); +__exportStar(require("./V3Customer"), exports); +__exportStar(require("./V3CustomerFbsLists"), exports); +__exportStar(require("./V3DeliveryMethod"), exports); +__exportStar(require("./V3Dimensions"), exports); +__exportStar(require("./V3FbsPosting"), exports); +__exportStar(require("./V3FbsPostingAnalyticsData"), exports); +__exportStar(require("./V3FbsPostingDetail"), exports); +__exportStar(require("./V3FbsPostingDetailOptional"), exports); +__exportStar(require("./V3FbsPostingDetailRelatedPostings"), exports); +__exportStar(require("./V3FbsPostingExemplarProductV3"), exports); +__exportStar(require("./V3FbsPostingProduct"), exports); +__exportStar(require("./V3FbsPostingProductExemplarInfoV3"), exports); +__exportStar(require("./V3FbsPostingProductExemplarsV3"), exports); +__exportStar(require("./V3FbsPostingRequirementsV3"), exports); +__exportStar(require("./V3FbsTariffication"), exports); +__exportStar(require("./V3FinanceCashFlowStatementListRequest"), exports); +__exportStar(require("./V3FinanceCashFlowStatementListResponse"), exports); +__exportStar(require("./V3FinanceCashFlowStatementListResponsePeriod"), exports); +__exportStar(require("./V3FinanceCashFlowStatementListResponseResult"), exports); +__exportStar(require("./V3GetFbsPostingListResponseV3"), exports); +__exportStar(require("./V3GetFbsPostingListResponseV3Result"), exports); +__exportStar(require("./V3GetFbsPostingResponseV3"), exports); +__exportStar(require("./V3GetProductInfoListRequest"), exports); +__exportStar(require("./V3GetProductInfoListResponse"), exports); +__exportStar(require("./V3GetProductInfoListResponseItem"), exports); +__exportStar(require("./V3GetProductInfoListResponsePromotion"), exports); +__exportStar(require("./V3GetProductInfoListResponsePromotionType"), exports); +__exportStar(require("./V3ImportProductsRequest"), exports); +__exportStar(require("./V3ImportProductsRequestAttribute"), exports); +__exportStar(require("./V3ImportProductsRequestComplexAttribute"), exports); +__exportStar(require("./V3ImportProductsRequestDictionaryValue"), exports); +__exportStar(require("./V3ImportProductsRequestItem"), exports); +__exportStar(require("./V3ImportProductsResponse"), exports); +__exportStar(require("./V3ImportProductsResponseResult"), exports); +__exportStar(require("./V3PostingFinancialData"), exports); +__exportStar(require("./V3PostingProductDetail"), exports); +__exportStar(require("./V3ServiceType"), exports); +__exportStar(require("./V3SupplyOrderGetRequest"), exports); +__exportStar(require("./V3SupplyOrderGetResponse"), exports); +__exportStar(require("./V3SupplyOrderListRequest"), exports); +__exportStar(require("./V3SupplyOrderListResponse"), exports); +__exportStar(require("./V3TimeRange"), exports); +__exportStar(require("./V3User"), exports); +__exportStar(require("./V4FbsPostingShipPackageV4Request"), exports); +__exportStar(require("./V4FbsPostingShipPackageV4RequestProduct"), exports); +__exportStar(require("./V4FbsPostingShipPackageV4Response"), exports); +__exportStar(require("./V4GetProductAttributesResponseModelInfo"), exports); +__exportStar(require("./V4GetProductAttributesResponsePdf"), exports); +__exportStar(require("./V4GetProductInfoStocksRequest"), exports); +__exportStar(require("./V4GetProductInfoStocksRequestFilter"), exports); +__exportStar(require("./V4GetProductInfoStocksResponse"), exports); +__exportStar(require("./V4GetProductInfoStocksResponseItem"), exports); +__exportStar(require("./V4GetUploadQuotaResponse"), exports); +__exportStar(require("./V4Visibility"), exports); +__exportStar(require("./V5FbsPostingProductExemplarStatusV5Request"), exports); +__exportStar(require("./V5FbsPostingProductExemplarStatusV5Response"), exports); +__exportStar(require("./V5FbsPostingProductExemplarStatusV5ResponseProduct"), exports); +__exportStar(require("./V5FbsPostingProductExemplarStatusV5ResponseProductExemplar"), exports); +__exportStar(require("./V5FbsPostingProductExemplarStatusV5ResponseProductExemplarMark"), exports); +__exportStar(require("./V5FbsPostingProductExemplarValidateV5Request"), exports); +__exportStar(require("./V5FbsPostingProductExemplarValidateV5RequestProduct"), exports); +__exportStar(require("./V5FbsPostingProductExemplarValidateV5RequestProductExemplar"), exports); +__exportStar(require("./V5FbsPostingProductExemplarValidateV5RequestProductExemplarMark"), exports); +__exportStar(require("./V5FbsPostingProductExemplarValidateV5Response"), exports); +__exportStar(require("./V5FbsPostingProductExemplarValidateV5ResponseProduct"), exports); +__exportStar(require("./V5FbsPostingProductExemplarValidateV5ResponseProductExemplar"), exports); +__exportStar(require("./V5FbsPostingProductExemplarValidateV5ResponseProductExemplarMark"), exports); +__exportStar(require("./V6FbsPostingProductExemplarCreateOrGetV6Request"), exports); +__exportStar(require("./V6FbsPostingProductExemplarCreateOrGetV6Response"), exports); +__exportStar(require("./V6FbsPostingProductExemplarSetV6Request"), exports); +__exportStar(require("./ValidationErrorCharacteristicEnum"), exports); +__exportStar(require("./ValidationResultItem"), exports); +__exportStar(require("./ValidationResultItemStateEnum"), exports); +__exportStar(require("./ValidationResultValidationError"), exports); +__exportStar(require("./ValidationResultValidationErrorTypeEnum"), exports); +__exportStar(require("./ValueCargoType"), exports); +__exportStar(require("./ValueItem"), exports); +__exportStar(require("./ValueTimezoneInfo"), exports); +__exportStar(require("./VehicleCanNotSetVehicleReasonEnum"), exports); +__exportStar(require("./WarehouseAddress"), exports); +__exportStar(require("./WarehouseAddressCoordinates"), exports); +__exportStar(require("./WarehouseAddressInfo"), exports); +__exportStar(require("./WarehouseAvailabilityStatus"), exports); +__exportStar(require("./WarehouseCarriageLabelTypeEnum"), exports); +__exportStar(require("./WarehouseContacts"), exports); +__exportStar(require("./WarehouseDeliveryMethodListRequest"), exports); +__exportStar(require("./WarehouseDeliveryMethodListResponse"), exports); +__exportStar(require("./WarehouseERFBSAggregatorCreateRequestDeliveryMethodDeliveryCosts"), exports); +__exportStar(require("./WarehouseFBSReturnMileInfoResponseWarehouseReturnMileSettings"), exports); +__exportStar(require("./WarehouseFbsPickUpHistoryListResponseHistoryEntity"), exports); +__exportStar(require("./WarehouseFbsPickUpPlanningListResponseResultWarehouse"), exports); +__exportStar(require("./WarehouseFirstMile"), exports); +__exportStar(require("./WarehouseFirstMileType"), exports); +__exportStar(require("./WarehouseInvalidProductsGetResponseValidationResult"), exports); +__exportStar(require("./WarehouseListResponseWarehouse"), exports); +__exportStar(require("./WarehouseListV2ResponseWarehouse"), exports); +__exportStar(require("./WarehouseOZONListResponseWarehouseWarehouseTypeEnum"), exports); +__exportStar(require("./WarehouseStorageWarehouse"), exports); +__exportStar(require("./WarehouseSupplyTagEnum"), exports); +__exportStar(require("./WarehouseTimetable"), exports); +__exportStar(require("./WarehouseV1WarehouseRfbsPauseRequest"), exports); +__exportStar(require("./WarehouseV1WarehouseRfbsPauseResponse"), exports); +__exportStar(require("./WarehouseV1WarehouseRfbsUnpauseRequest"), exports); +__exportStar(require("./WarehouseV1WarehouseRfbsUnpauseResponse"), exports); +__exportStar(require("./WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPoint"), exports); +__exportStar(require("./WarehouseV2DeliveryMethodListV2ResponseDeliveryMethodTPLDropOffPointAddressCoordinates"), exports); +__exportStar(require("./WarehouseWarehouseListResponse"), exports); +__exportStar(require("./WarehouseWorkingDay"), exports); +__exportStar(require("./WarehouseWorkingDayDayEnum"), exports); +__exportStar(require("./WarehouseWorkingDaysEnum"), exports); +__exportStar(require("./WorkingHoursPeriods"), exports); diff --git a/dist/runtime.d.ts b/dist/runtime.d.ts new file mode 100644 index 0000000..59b5797 --- /dev/null +++ b/dist/runtime.d.ts @@ -0,0 +1,181 @@ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export declare const BASE_PATH: string; +export interface ConfigurationParameters { + basePath?: string; + fetchApi?: FetchAPI; + middleware?: Middleware[]; + queryParamsStringify?: (params: HTTPQuery) => string; + username?: string; + password?: string; + apiKey?: string | Promise | ((name: string) => string | Promise); + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); + headers?: HTTPHeaders; + credentials?: RequestCredentials; +} +export declare class Configuration { + private configuration; + constructor(configuration?: ConfigurationParameters); + set config(configuration: Configuration); + get basePath(): string; + get fetchApi(): FetchAPI | undefined; + get middleware(): Middleware[]; + get queryParamsStringify(): (params: HTTPQuery) => string; + get username(): string | undefined; + get password(): string | undefined; + get apiKey(): ((name: string) => string | Promise) | undefined; + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; + get headers(): HTTPHeaders | undefined; + get credentials(): RequestCredentials | undefined; +} +export declare const DefaultConfig: Configuration; +/** + * This is the base class for all generated API classes. + */ +export declare class BaseAPI { + protected configuration: Configuration; + private static readonly jsonRegex; + private middleware; + constructor(configuration?: Configuration); + withMiddleware(this: T, ...middlewares: Middleware[]): T; + withPreMiddleware(this: T, ...preMiddlewares: Array): T; + withPostMiddleware(this: T, ...postMiddlewares: Array): T; + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean; + protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise; + private createFetchParams; + private fetchApi; + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone; +} +export declare class ResponseError extends Error { + response: Response; + name: "ResponseError"; + constructor(response: Response, msg?: string); +} +export declare class FetchError extends Error { + cause: Error; + name: "FetchError"; + constructor(cause: Error, msg?: string); +} +export declare class RequiredError extends Error { + field: string; + name: "RequiredError"; + constructor(field: string, msg?: string); +} +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { + [key: string]: string; +}; +export type HTTPQuery = { + [key: string]: string | number | null | boolean | Array | Set | HTTPQuery; +}; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { + headers?: HTTPHeaders; + method: HTTPMethod; + credentials?: RequestCredentials; + body?: HTTPBody; +}; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; +export type InitOverrideFunction = (requestContext: { + init: HTTPRequestInit; + context: RequestOpts; +}) => Promise; +export interface FetchParams { + url: string; + init: RequestInit; +} +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} +export declare function querystring(params: HTTPQuery, prefix?: string): string; +export declare function mapValues(data: any, fn: (item: any) => any): {}; +export declare function canConsumeForm(consumes: Consume[]): boolean; +export interface Consume { + contentType: string; +} +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} +export interface ApiResponse { + raw: Response; + value(): Promise; +} +export interface ResponseTransformer { + (json: any): T; +} +export declare class JSONApiResponse { + raw: Response; + private transformer; + constructor(raw: Response, transformer?: ResponseTransformer); + value(): Promise; +} +export declare class VoidApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class BlobApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class TextApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} diff --git a/dist/runtime.js b/dist/runtime.js new file mode 100644 index 0000000..6a0a508 --- /dev/null +++ b/dist/runtime.js @@ -0,0 +1,341 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Документация Ozon Seller API + * По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/) + * + * The version of the OpenAPI document: 2.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0; +exports.querystring = querystring; +exports.mapValues = mapValues; +exports.canConsumeForm = canConsumeForm; +exports.BASE_PATH = "http://api-seller.ozon.ru".replace(/\/+$/, ""); +class Configuration { + constructor(configuration = {}) { + this.configuration = configuration; + } + set config(configuration) { + this.configuration = configuration; + } + get basePath() { + return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH; + } + get fetchApi() { + return this.configuration.fetchApi; + } + get middleware() { + return this.configuration.middleware || []; + } + get queryParamsStringify() { + return this.configuration.queryParamsStringify || querystring; + } + get username() { + return this.configuration.username; + } + get password() { + return this.configuration.password; + } + get apiKey() { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + get accessToken() { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; }); + } + return undefined; + } + get headers() { + return this.configuration.headers; + } + get credentials() { + return this.configuration.credentials; + } +} +exports.Configuration = Configuration; +exports.DefaultConfig = new Configuration(); +/** + * This is the base class for all generated API classes. + */ +class BaseAPI { + constructor(configuration = exports.DefaultConfig) { + this.configuration = configuration; + this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams; + } + } + let response = undefined; + try { + response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } + catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = (yield middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + })) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); + } + else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = (yield middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + })) || response; + } + } + return response; + }); + this.middleware = configuration.middleware; + } + withMiddleware(...middlewares) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + withPreMiddleware(...preMiddlewares) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + withPostMiddleware(...postMiddlewares) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + request(context, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + const { url, init } = yield this.createFetchParams(context, initOverrides); + const response = yield this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + }); + } + createFetchParams(context, initOverrides) { + return __awaiter(this, void 0, void 0, function* () { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + const initOverrideFn = typeof initOverrides === "function" + ? initOverrides + : () => __awaiter(this, void 0, void 0, function* () { return initOverrides; }); + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({ + init: initParams, + context, + }))); + let body; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } + else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } + else { + body = overriddenInit.body; + } + const init = Object.assign(Object.assign({}, overriddenInit), { body }); + return { url, init }; + }); + } + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + clone() { + const constructor = this.constructor; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +} +exports.BaseAPI = BaseAPI; +BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); +; +function isBlob(value) { + return typeof Blob !== 'undefined' && value instanceof Blob; +} +function isFormData(value) { + return typeof FormData !== "undefined" && value instanceof FormData; +} +class ResponseError extends Error { + constructor(response, msg) { + super(msg); + this.response = response; + this.name = "ResponseError"; + } +} +exports.ResponseError = ResponseError; +class FetchError extends Error { + constructor(cause, msg) { + super(msg); + this.cause = cause; + this.name = "FetchError"; + } +} +exports.FetchError = FetchError; +class RequiredError extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } +} +exports.RequiredError = RequiredError; +exports.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +function querystring(params, prefix = '') { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} +function querystringSingleKey(key, value, keyPrefix = '') { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} +function mapValues(data, fn) { + return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {}); +} +function canConsumeForm(consumes) { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} +class JSONApiResponse { + constructor(raw, transformer = (jsonValue) => jsonValue) { + this.raw = raw; + this.transformer = transformer; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return this.transformer(yield this.raw.json()); + }); + } +} +exports.JSONApiResponse = JSONApiResponse; +class VoidApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return undefined; + }); + } +} +exports.VoidApiResponse = VoidApiResponse; +class BlobApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return yield this.raw.blob(); + }); + } + ; +} +exports.BlobApiResponse = BlobApiResponse; +class TextApiResponse { + constructor(raw) { + this.raw = raw; + } + value() { + return __awaiter(this, void 0, void 0, function* () { + return yield this.raw.text(); + }); + } + ; +} +exports.TextApiResponse = TextApiResponse; diff --git a/package.json b/package.json new file mode 100644 index 0000000..2a69c01 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "@apilki/ozon-seller", + "version": "0.1.0", + "description": "OpenAPI client for @apilki/ozon-seller", + "author": "OpenAPI-Generator", + "repository": { + "type": "git", + "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" + }, + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", + "module": "./dist/esm/index.js", + "sideEffects": false, + "scripts": { + "build": "tsc && tsc -p tsconfig.esm.json", + "prepare": "npm run build" + }, + "devDependencies": { + "typescript": "^4.0 || ^5.0", + "@types/node": "^20.0.0" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org" + } +}